|
10 | 10 | "type": "string" |
11 | 11 | }, |
12 | 12 | "visibility": { |
13 | | - "required": true, |
| 13 | + "required": false, |
14 | 14 | "desc": "The function visibility.", |
15 | 15 | "type": "enum" |
16 | 16 | }, |
|
19 | 19 | "example": "['U00000001', 'U00000002', 'U00000003']", |
20 | 20 | "desc": "List of user IDs to allow for named_entities visibility.", |
21 | 21 | "type": "array" |
| 22 | + }, |
| 23 | + "permissions": { |
| 24 | + "required": false, |
| 25 | + "desc": "Array of permissions for the function.", |
| 26 | + "type": "array" |
22 | 27 | } |
23 | 28 | }, |
24 | 29 | "response": { |
|
37 | 42 | "invalid_array_arg": "The method was passed an array as an argument. Please only input valid strings.", |
38 | 43 | "invalid_charset": "The method was called via a POST request, but the charset specified in the Content-Type header was invalid. Valid charset names are: utf-8 iso-8859-1.", |
39 | 44 | "invalid_form_data": "The method was called via a POST request with Content-Type application/x-www-form-urlencoded or multipart/form-data, but the form data was either missing or syntactically invalid.", |
| 45 | + "invalid_permission": "Invalid value for permission", |
| 46 | + "invalid_permission_type": "Invalid value for permission type.", |
40 | 47 | "invalid_post_type": "The method was called via a POST request, but the specified Content-Type was invalid. Valid types are: application/json application/x-www-form-urlencoded multipart/form-data text/plain.", |
41 | | - "invalid_setting": "The app_collaborators setting is not allowed for apps not owned by your team/org.", |
| 48 | + "invalid_setting": "The `app_collaborators` setting is not allowed for apps not owned by your team/org.", |
42 | 49 | "invalid_visibility": "Invalid value for visibility.", |
43 | 50 | "is_bot": "This method cannot be called by a legacy bot.", |
44 | 51 | "method_deprecated": "The method has been deprecated.", |
|
0 commit comments