|
1 | 1 | { |
2 | | - "desc": "Look up functions by a set of apps", |
| 2 | + "desc": "Look up functions by a set of apps.", |
3 | 3 | "http_method": "POST", |
4 | 4 | "scope": { |
5 | 5 | "user": [ |
6 | 6 | "admin.workflows:read" |
7 | 7 | ] |
8 | 8 | }, |
9 | | - "json_input_supported": true, |
10 | 9 | "rate_limits": "t2", |
| 10 | + "json_input_supported": true, |
11 | 11 | "args": { |
12 | 12 | "type": "object", |
13 | 13 | "required": [ |
|
22 | 22 | "example": "xxxx-xxxxxxxxx-xxxx" |
23 | 23 | }, |
24 | 24 | "team_id": { |
25 | | - "desc": "The team context to retrieve functions from", |
26 | | - "example": "T00000001", |
27 | | - "schema": "workspace_id" |
| 25 | + "schema": "workspace_id", |
| 26 | + "desc": "The team context to retrieve functions from.", |
| 27 | + "example": "T00000001" |
28 | 28 | }, |
29 | 29 | "app_ids": { |
30 | 30 | "type": "array", |
31 | | - "desc": "Comma-separated array of app IDs to get functions for; max 50", |
| 31 | + "desc": "Comma-separated array of app IDs to get functions for; max 50.", |
32 | 32 | "example": "A02,A1234", |
33 | 33 | "items": { |
34 | 34 | "schema": "app_id" |
35 | 35 | }, |
36 | | - "maxItems": 50 |
| 36 | + "maxItems": 50, |
| 37 | + "uniqueItems": true |
| 38 | + }, |
| 39 | + "include_non_distributed_functions": { |
| 40 | + "type": "boolean", |
| 41 | + "default": false, |
| 42 | + "desc": "Whether to also include functions that are not yet distributed to any users in the function count. This is needed for admins that are approving an app request and will only work if the team owns the app." |
37 | 43 | }, |
38 | 44 | "cursor": { |
39 | | - "desc": "Set `cursor` to `next_cursor` returned by the previous call to list items in the next page", |
| 45 | + "desc": "Set `cursor` to `next_cursor` returned by the previous call to list items in the next page.", |
40 | 46 | "example": "dXNlcjpVMDYxTkZUVDI=", |
41 | 47 | "type": "string" |
42 | 48 | }, |
43 | 49 | "limit": { |
44 | | - "desc": "The number of results that will be returned by the API on each invocation. Must be between 1 and 1000, both inclusive", |
| 50 | + "desc": "The number of results that will be returned by the API on each invocation. Must be between 1 and 1000, both inclusive.", |
45 | 51 | "example": "20", |
46 | 52 | "type": "integer", |
47 | 53 | "default": 100, |
|
72 | 78 | "desc": "Value passed for `cursor` was not valid or is no longer valid." |
73 | 79 | }, |
74 | 80 | "not_allowed": { |
75 | | - "desc": "The user is not allowed to access this API method" |
| 81 | + "desc": "The user is not allowed to access this API method." |
76 | 82 | }, |
77 | 83 | "restricted_action": { |
78 | | - "desc": "The user is not allowed to access this API method" |
| 84 | + "desc": "The user is not allowed to access this API method." |
79 | 85 | } |
80 | 86 | }, |
81 | 87 | "examples": { |
|
89 | 95 | "id": "123ABC456DE", |
90 | 96 | "callback_id": "sample_function", |
91 | 97 | "title": "Sample function", |
92 | | - "description": "A sample function", |
| 98 | + "description": "A sample function.", |
93 | 99 | "type": "app", |
94 | 100 | "input_parameters": [ |
95 | 101 | { |
96 | 102 | "type": "string", |
97 | 103 | "name": "message", |
98 | | - "description": "Message to be posted", |
| 104 | + "description": "Message to be posted.", |
99 | 105 | "title": "Message", |
100 | 106 | "is_required": true |
101 | 107 | }, |
102 | 108 | { |
103 | 109 | "type": "slack#/reference/objects/user-object_id", |
104 | 110 | "name": "user", |
105 | | - "description": "The user invoking the workflow", |
| 111 | + "description": "The user invoking the workflow.", |
106 | 112 | "title": "User", |
107 | 113 | "is_required": false |
108 | 114 | } |
|
111 | 117 | { |
112 | 118 | "type": "string", |
113 | 119 | "name": "updatedMsg", |
114 | | - "description": "Updated message to be posted", |
| 120 | + "description": "Updated message to be posted.", |
115 | 121 | "title": "Updated Msg", |
116 | 122 | "is_required": true |
117 | 123 | } |
|
0 commit comments