@distilled.cloud/slack 1.0.0-rc.18 → 1.0.0-rc.19

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (190) hide show
  1. package/lib/_bundle/sdk.js +1 -1
  2. package/lib/_bundle/sdk.js.map +1 -1
  3. package/lib/protocol.d.ts +2 -1
  4. package/lib/protocol.d.ts.map +1 -1
  5. package/lib/services/admin.d.ts +594 -356
  6. package/lib/services/admin.d.ts.map +1 -1
  7. package/lib/services/admin.js +149 -140
  8. package/lib/services/admin.js.map +1 -1
  9. package/lib/services/agents.d.ts +89 -97
  10. package/lib/services/agents.d.ts.map +1 -1
  11. package/lib/services/agents.js +1 -1
  12. package/lib/services/agents.js.map +1 -1
  13. package/lib/services/api.d.ts +2 -2
  14. package/lib/services/api.d.ts.map +1 -1
  15. package/lib/services/api.js +1 -1
  16. package/lib/services/api.js.map +1 -1
  17. package/lib/services/apps.d.ts +74 -74
  18. package/lib/services/apps.d.ts.map +1 -1
  19. package/lib/services/apps.js +32 -32
  20. package/lib/services/apps.js.map +1 -1
  21. package/lib/services/assistant.d.ts +55 -46
  22. package/lib/services/assistant.d.ts.map +1 -1
  23. package/lib/services/assistant.js +1 -1
  24. package/lib/services/assistant.js.map +1 -1
  25. package/lib/services/auth.d.ts +27 -27
  26. package/lib/services/auth.d.ts.map +1 -1
  27. package/lib/services/auth.js +1 -1
  28. package/lib/services/auth.js.map +1 -1
  29. package/lib/services/blocks.d.ts +3 -3
  30. package/lib/services/blocks.d.ts.map +1 -1
  31. package/lib/services/blocks.js +1 -1
  32. package/lib/services/blocks.js.map +1 -1
  33. package/lib/services/bookmarks.d.ts +19 -19
  34. package/lib/services/bookmarks.d.ts.map +1 -1
  35. package/lib/services/bookmarks.js +1 -1
  36. package/lib/services/bookmarks.js.map +1 -1
  37. package/lib/services/bots.d.ts +23 -23
  38. package/lib/services/bots.d.ts.map +1 -1
  39. package/lib/services/bots.js +1 -1
  40. package/lib/services/bots.js.map +1 -1
  41. package/lib/services/calls.d.ts +10 -10
  42. package/lib/services/calls.d.ts.map +1 -1
  43. package/lib/services/calls.js +1 -1
  44. package/lib/services/calls.js.map +1 -1
  45. package/lib/services/canvases.d.ts +18 -18
  46. package/lib/services/canvases.d.ts.map +1 -1
  47. package/lib/services/canvases.js +1 -1
  48. package/lib/services/canvases.js.map +1 -1
  49. package/lib/services/chat.d.ts +103 -103
  50. package/lib/services/chat.d.ts.map +1 -1
  51. package/lib/services/chat.js +1 -1
  52. package/lib/services/chat.js.map +1 -1
  53. package/lib/services/conversations.d.ts +109 -103
  54. package/lib/services/conversations.d.ts.map +1 -1
  55. package/lib/services/conversations.js +38 -38
  56. package/lib/services/conversations.js.map +1 -1
  57. package/lib/services/dialog.js +1 -1
  58. package/lib/services/dialog.js.map +1 -1
  59. package/lib/services/dnd.d.ts +14 -14
  60. package/lib/services/dnd.d.ts.map +1 -1
  61. package/lib/services/dnd.js +1 -1
  62. package/lib/services/dnd.js.map +1 -1
  63. package/lib/services/emoji.d.ts +6 -6
  64. package/lib/services/emoji.d.ts.map +1 -1
  65. package/lib/services/emoji.js +1 -1
  66. package/lib/services/emoji.js.map +1 -1
  67. package/lib/services/entity.d.ts +14 -14
  68. package/lib/services/entity.d.ts.map +1 -1
  69. package/lib/services/entity.js +1 -1
  70. package/lib/services/entity.js.map +1 -1
  71. package/lib/services/files.d.ts +106 -106
  72. package/lib/services/files.d.ts.map +1 -1
  73. package/lib/services/files.js +26 -26
  74. package/lib/services/files.js.map +1 -1
  75. package/lib/services/functions.d.ts +37 -37
  76. package/lib/services/functions.d.ts.map +1 -1
  77. package/lib/services/functions.js +1 -1
  78. package/lib/services/functions.js.map +1 -1
  79. package/lib/services/index.d.ts +1 -0
  80. package/lib/services/index.d.ts.map +1 -1
  81. package/lib/services/index.js +1 -0
  82. package/lib/services/lists.d.ts +47 -45
  83. package/lib/services/lists.d.ts.map +1 -1
  84. package/lib/services/lists.js +1 -1
  85. package/lib/services/lists.js.map +1 -1
  86. package/lib/services/migration.d.ts +3 -3
  87. package/lib/services/migration.d.ts.map +1 -1
  88. package/lib/services/migration.js +1 -1
  89. package/lib/services/migration.js.map +1 -1
  90. package/lib/services/oauth.d.ts +102 -102
  91. package/lib/services/oauth.d.ts.map +1 -1
  92. package/lib/services/oauth.js +1 -1
  93. package/lib/services/oauth.js.map +1 -1
  94. package/lib/services/openid.d.ts +40 -40
  95. package/lib/services/openid.d.ts.map +1 -1
  96. package/lib/services/openid.js +1 -1
  97. package/lib/services/openid.js.map +1 -1
  98. package/lib/services/pins.d.ts +9 -9
  99. package/lib/services/pins.d.ts.map +1 -1
  100. package/lib/services/pins.js +1 -1
  101. package/lib/services/pins.js.map +1 -1
  102. package/lib/services/reactions.d.ts +23 -23
  103. package/lib/services/reactions.d.ts.map +1 -1
  104. package/lib/services/reactions.js +1 -1
  105. package/lib/services/reactions.js.map +1 -1
  106. package/lib/services/reminders.d.ts +8 -8
  107. package/lib/services/reminders.d.ts.map +1 -1
  108. package/lib/services/reminders.js +1 -1
  109. package/lib/services/reminders.js.map +1 -1
  110. package/lib/services/rtm.d.ts +11 -11
  111. package/lib/services/rtm.d.ts.map +1 -1
  112. package/lib/services/rtm.js +1 -1
  113. package/lib/services/rtm.js.map +1 -1
  114. package/lib/services/search.d.ts +84 -80
  115. package/lib/services/search.d.ts.map +1 -1
  116. package/lib/services/search.js +1 -1
  117. package/lib/services/search.js.map +1 -1
  118. package/lib/services/slackbot.d.ts +366 -0
  119. package/lib/services/slackbot.d.ts.map +1 -0
  120. package/lib/services/slackbot.js +2 -0
  121. package/lib/services/slackbot.js.map +1 -0
  122. package/lib/services/stars.d.ts +16 -16
  123. package/lib/services/stars.d.ts.map +1 -1
  124. package/lib/services/stars.js +1 -1
  125. package/lib/services/stars.js.map +1 -1
  126. package/lib/services/team.d.ts +39 -37
  127. package/lib/services/team.d.ts.map +1 -1
  128. package/lib/services/team.js +1 -1
  129. package/lib/services/team.js.map +1 -1
  130. package/lib/services/tooling.js +1 -1
  131. package/lib/services/tooling.js.map +1 -1
  132. package/lib/services/usergroups.d.ts +30 -30
  133. package/lib/services/usergroups.d.ts.map +1 -1
  134. package/lib/services/usergroups.js +1 -1
  135. package/lib/services/usergroups.js.map +1 -1
  136. package/lib/services/users.d.ts +37 -37
  137. package/lib/services/users.d.ts.map +1 -1
  138. package/lib/services/users.js +1 -1
  139. package/lib/services/users.js.map +1 -1
  140. package/lib/services/views.d.ts +9 -9
  141. package/lib/services/views.d.ts.map +1 -1
  142. package/lib/services/views.js +1 -1
  143. package/lib/services/views.js.map +1 -1
  144. package/lib/services/workflows.d.ts +16 -16
  145. package/lib/services/workflows.d.ts.map +1 -1
  146. package/lib/services/workflows.js +1 -1
  147. package/lib/services/workflows.js.map +1 -1
  148. package/lib/services.lazy/admin.js +2 -2
  149. package/lib/services.lazy/apps.js +1 -1
  150. package/lib/services.lazy/conversations.js +1 -1
  151. package/lib/services.lazy/files.js +1 -1
  152. package/lib/services.lazy/index.js +2 -2
  153. package/lib/services.lazy/slackbot.js +1 -0
  154. package/package.json +6 -6
  155. package/src/protocol.ts +3 -5
  156. package/src/services/admin.ts +1609 -1016
  157. package/src/services/agents.ts +93 -103
  158. package/src/services/api.ts +2 -2
  159. package/src/services/apps.ts +74 -74
  160. package/src/services/assistant.ts +88 -56
  161. package/src/services/auth.ts +27 -27
  162. package/src/services/blocks.ts +3 -3
  163. package/src/services/bookmarks.ts +19 -19
  164. package/src/services/bots.ts +23 -23
  165. package/src/services/calls.ts +10 -10
  166. package/src/services/canvases.ts +50 -46
  167. package/src/services/chat.ts +103 -103
  168. package/src/services/conversations.ts +126 -115
  169. package/src/services/dnd.ts +14 -14
  170. package/src/services/emoji.ts +6 -6
  171. package/src/services/entity.ts +14 -14
  172. package/src/services/files.ts +106 -106
  173. package/src/services/functions.ts +37 -37
  174. package/src/services/index.ts +1 -0
  175. package/src/services/lists.ts +49 -46
  176. package/src/services/migration.ts +3 -3
  177. package/src/services/oauth.ts +102 -102
  178. package/src/services/openid.ts +40 -40
  179. package/src/services/pins.ts +9 -9
  180. package/src/services/reactions.ts +23 -23
  181. package/src/services/reminders.ts +8 -8
  182. package/src/services/rtm.ts +11 -11
  183. package/src/services/search.ts +123 -130
  184. package/src/services/slackbot.ts +766 -0
  185. package/src/services/stars.ts +16 -16
  186. package/src/services/team.ts +42 -37
  187. package/src/services/usergroups.ts +30 -30
  188. package/src/services/users.ts +37 -37
  189. package/src/services/views.ts +9 -9
  190. package/src/services/workflows.ts +16 -16
@@ -28,13 +28,13 @@ const TELEMETRY = {
28
28
  export type AddDistributionsPermissionsRequestUserIdsList = Array<string>;
29
29
  export interface AddDistributionsPermissionsRequest {
30
30
  /** The encoded ID of the function */
31
- function_id?: string;
31
+ function_id?: string | undefined;
32
32
  /** The callback ID defined in the function's definition file */
33
- function_callback_id?: string;
33
+ function_callback_id?: string | undefined;
34
34
  /** The encoded ID of the app */
35
- function_app_id?: string;
35
+ function_app_id?: string | undefined;
36
36
  /** List of encoded user IDs */
37
- user_ids?: AddDistributionsPermissionsRequestUserIdsList;
37
+ user_ids?: AddDistributionsPermissionsRequestUserIdsList | undefined;
38
38
  }
39
39
  export type AddDistributionsPermissionsResponsePermissionType =
40
40
  | "everyone"
@@ -42,9 +42,9 @@ export type AddDistributionsPermissionsResponsePermissionType =
42
42
  | "named_entities"
43
43
  | "system";
44
44
  export interface AddDistributionsPermissionsResponseUsersItem {
45
- user_id?: string;
46
- username?: string;
47
- email?: string;
45
+ user_id?: string | undefined;
46
+ username?: string | undefined;
47
+ email?: string | undefined;
48
48
  }
49
49
  export type AddDistributionsPermissionsResponseUsersList =
50
50
  Array<AddDistributionsPermissionsResponseUsersItem>;
@@ -52,7 +52,7 @@ export interface AddDistributionsPermissionsResponse {
52
52
  /** Always `true` (a failed call raises a typed error instead). */
53
53
  ok: boolean;
54
54
  permission_type: AddDistributionsPermissionsResponsePermissionType;
55
- users?: AddDistributionsPermissionsResponseUsersList;
55
+ users?: AddDistributionsPermissionsResponseUsersList | undefined;
56
56
  }
57
57
  export interface CompleteErrorRequest {
58
58
  /** Context identifier that maps to the executed function */
@@ -78,11 +78,11 @@ export interface CompleteSuccessResponse {
78
78
  }
79
79
  export interface ExportWorkflowsStepsResponseRequest {
80
80
  /** The workflow ID, starts with Wf* */
81
- workflow_id?: string;
81
+ workflow_id?: string | undefined;
82
82
  /** The workflow encoded ID or workflow reference */
83
- workflow?: string;
83
+ workflow?: string | undefined;
84
84
  /** The app tied to the workflow reference. */
85
- workflow_app_id?: string;
85
+ workflow_app_id?: string | undefined;
86
86
  /** The ID of the OpenForm step to export. */
87
87
  step_id: string;
88
88
  }
@@ -92,11 +92,11 @@ export interface ExportWorkflowsStepsResponseResponse {
92
92
  }
93
93
  export interface ListDistributionsPermissionsRequest {
94
94
  /** The encoded ID of the function */
95
- function_id?: string;
95
+ function_id?: string | undefined;
96
96
  /** The callback ID defined in the function's definition file */
97
- function_callback_id?: string;
97
+ function_callback_id?: string | undefined;
98
98
  /** The encoded ID of the app */
99
- function_app_id?: string;
99
+ function_app_id?: string | undefined;
100
100
  }
101
101
  export type ListDistributionsPermissionsResponsePermissionType =
102
102
  | "everyone"
@@ -115,19 +115,19 @@ export interface ListDistributionsPermissionsResponse {
115
115
  /** Always `true` (a failed call raises a typed error instead). */
116
116
  ok: boolean;
117
117
  permission_type: ListDistributionsPermissionsResponsePermissionType;
118
- users?: ListDistributionsPermissionsResponseUsersList;
118
+ users?: ListDistributionsPermissionsResponseUsersList | undefined;
119
119
  /** List of team IDs allowed with named_entities permission. */
120
- team_ids?: ListDistributionsPermissionsResponseTeamIdsList;
120
+ team_ids?: ListDistributionsPermissionsResponseTeamIdsList | undefined;
121
121
  /** List of org IDs allowed with named_entities permission. */
122
- org_ids?: ListDistributionsPermissionsResponseOrgIdsList;
122
+ org_ids?: ListDistributionsPermissionsResponseOrgIdsList | undefined;
123
123
  }
124
124
  export interface ListWorkflowsStepsRequest {
125
125
  /** The workflow ID, starts with Wf* */
126
- workflow_id?: string;
126
+ workflow_id?: string | undefined;
127
127
  /** The workflow encoded ID or workflow reference */
128
- workflow?: string;
128
+ workflow?: string | undefined;
129
129
  /** The app tied to the workflow reference. */
130
- workflow_app_id?: string;
130
+ workflow_app_id?: string | undefined;
131
131
  /** The ID of the function to query */
132
132
  function_id: string;
133
133
  }
@@ -141,13 +141,13 @@ export interface ListWorkflowsStepsResponse {
141
141
  export type RemoveDistributionsPermissionsRequestUserIdsList = Array<string>;
142
142
  export interface RemoveDistributionsPermissionsRequest {
143
143
  /** The encoded ID of the function */
144
- function_id?: string;
144
+ function_id?: string | undefined;
145
145
  /** The callback ID defined in the function's definition file */
146
- function_callback_id?: string;
146
+ function_callback_id?: string | undefined;
147
147
  /** The encoded ID of the app. */
148
- function_app_id?: string;
148
+ function_app_id?: string | undefined;
149
149
  /** List of encoded user IDs */
150
- user_ids?: RemoveDistributionsPermissionsRequestUserIdsList;
150
+ user_ids?: RemoveDistributionsPermissionsRequestUserIdsList | undefined;
151
151
  }
152
152
  export type RemoveDistributionsPermissionsResponsePermissionType =
153
153
  | "everyone"
@@ -162,7 +162,7 @@ export interface RemoveDistributionsPermissionsResponse {
162
162
  /** Always `true` (a failed call raises a typed error instead). */
163
163
  ok: boolean;
164
164
  permission_type: RemoveDistributionsPermissionsResponsePermissionType;
165
- users?: RemoveDistributionsPermissionsResponseUsersList;
165
+ users?: RemoveDistributionsPermissionsResponseUsersList | undefined;
166
166
  }
167
167
  /** The type of permission that defines how the function can be distributed */
168
168
  export type SetDistributionsPermissionsRequestPermissionType =
@@ -178,19 +178,19 @@ export type SetDistributionsPermissionsRequestTeamIdsList = Array<string>;
178
178
  export type SetDistributionsPermissionsRequestOrgIdsList = Array<string>;
179
179
  export interface SetDistributionsPermissionsRequest {
180
180
  /** The encoded ID of the function */
181
- function_id?: string;
181
+ function_id?: string | undefined;
182
182
  /** The callback ID defined in the function's definition file */
183
- function_callback_id?: string;
183
+ function_callback_id?: string | undefined;
184
184
  /** The encoded ID of the app */
185
- function_app_id?: string;
185
+ function_app_id?: string | undefined;
186
186
  /** The type of permission that defines how the function can be distributed */
187
- permission_type?: SetDistributionsPermissionsRequestPermissionType | (string & {});
187
+ permission_type?: SetDistributionsPermissionsRequestPermissionType | (string & {}) | undefined;
188
188
  /** List of encoded user IDs */
189
- user_ids?: SetDistributionsPermissionsRequestUserIdsList;
189
+ user_ids?: SetDistributionsPermissionsRequestUserIdsList | undefined;
190
190
  /** List of team IDs to allow for named_entities permission */
191
- team_ids?: SetDistributionsPermissionsRequestTeamIdsList;
191
+ team_ids?: SetDistributionsPermissionsRequestTeamIdsList | undefined;
192
192
  /** List of org IDs to allow for named_entities permission */
193
- org_ids?: SetDistributionsPermissionsRequestOrgIdsList;
193
+ org_ids?: SetDistributionsPermissionsRequestOrgIdsList | undefined;
194
194
  }
195
195
  export type SetDistributionsPermissionsResponsePermissionType =
196
196
  | "everyone"
@@ -209,14 +209,14 @@ export interface SetDistributionsPermissionsResponse {
209
209
  /** Always `true` (a failed call raises a typed error instead). */
210
210
  ok: boolean;
211
211
  permission_type: SetDistributionsPermissionsResponsePermissionType;
212
- users?: SetDistributionsPermissionsResponseUsersList;
212
+ users?: SetDistributionsPermissionsResponseUsersList | undefined;
213
213
  /** List of team IDs allowed with named_entities permission. */
214
- team_ids?: SetDistributionsPermissionsResponseTeamIdsList;
214
+ team_ids?: SetDistributionsPermissionsResponseTeamIdsList | undefined;
215
215
  /** List of org IDs allowed with named_entities permission. */
216
- org_ids?: SetDistributionsPermissionsResponseOrgIdsList;
216
+ org_ids?: SetDistributionsPermissionsResponseOrgIdsList | undefined;
217
217
  }
218
218
  export type AddDistributionsPermissionsError = SlackOpError;
219
- /** Grant users access to a custom slack function if its permission_type is set to named_entities Required scopes -- configuration: `app_configurations:write` Rate limit tier: 3 Method-specific errors (the `error` slug on the SlackError): - `unknown_method` -- This method does not exist. - `access_denied` -- This actor does not have access to the permissions on this resource. - `function_not_found` -- This function does not exist. - `invalid_permission_type` -- This function requires permission_type to be set as named_entities before adding users. - `user_not_found` -- One or more of the named entities was not found. - `app_not_found` -- This app does not exist. See https://docs.slack.dev/reference/methods/functions.distributions.permissions.add */
219
+ /** Grant users access to a custom slack function if its permission_type is set to named_entities Required scopes -- configuration: `app_configurations:write` Rate limit tier: 3 Method-specific errors (the `error` slug on the SlackError): - `unknown_method` -- This method does not exist. - `access_denied` -- This actor does not have access to the permissions on this resource. - `function_not_found` -- This function does not exist. - `invalid_permission_type` -- This function requires permission_type to be set as named_entities before adding users. - `user_not_found` -- One or more of the named entities was not found. - `app_not_found` -- This app does not exist. - `app_edit_disabled` -- The app is managed in Salesforce, so access to its functions can't be changed here. See https://docs.slack.dev/reference/methods/functions.distributions.permissions.add */
220
220
  export const addDistributionsPermissions: API.OperationMethod<
221
221
  AddDistributionsPermissionsRequest,
222
222
  AddDistributionsPermissionsResponse,
@@ -335,7 +335,7 @@ export const removeDistributionsPermissions: API.OperationMethod<
335
335
  }));
336
336
 
337
337
  export type SetDistributionsPermissionsError = SlackOpError;
338
- /** Set the access type of a custom slack function and define the users, team or org ids to be granted access if permission_type is set to named_entities Required scopes -- configuration: `app_configurations:write` Rate limit tier: 3 Method-specific errors (the `error` slug on the SlackError): - `unknown_method` -- This method does not exist. - `access_denied` -- This actor does not have access to the permissions on this resource. - `function_not_found` -- This function does not exist. - `invalid_named_entities` -- One or more of the named entities was not found - `invalid_permission_type` -- This function requires permission_type to be set as named_entities before adding users. - `user_not_found` -- One or more of the named entities was not found. - `app_not_found` -- This app does not exist. - `permission_type_required` -- `permission_type` is a required input. See https://docs.slack.dev/reference/methods/functions.distributions.permissions.set */
338
+ /** Set the access type of a custom slack function and define the users, team or org ids to be granted access if permission_type is set to named_entities Required scopes -- configuration: `app_configurations:write` Rate limit tier: 3 Method-specific errors (the `error` slug on the SlackError): - `unknown_method` -- This method does not exist. - `access_denied` -- This actor does not have access to the permissions on this resource. - `function_not_found` -- This function does not exist. - `invalid_named_entities` -- One or more of the named entities was not found - `invalid_permission_type` -- This function requires permission_type to be set as named_entities before adding users. - `user_not_found` -- One or more of the named entities was not found. - `app_not_found` -- This app does not exist. - `permission_type_required` -- `permission_type` is a required input. - `app_edit_disabled` -- The app is managed in Salesforce, so access to its functions can't be changed here. See https://docs.slack.dev/reference/methods/functions.distributions.permissions.set */
339
339
  export const setDistributionsPermissions: API.OperationMethod<
340
340
  SetDistributionsPermissionsRequest,
341
341
  SetDistributionsPermissionsResponse,
@@ -27,6 +27,7 @@ export * as reactions from "./reactions.ts";
27
27
  export * as reminders from "./reminders.ts";
28
28
  export * as rtm from "./rtm.ts";
29
29
  export * as search from "./search.ts";
30
+ export * as slackbot from "./slackbot.ts";
30
31
  export * as stars from "./stars.ts";
31
32
  export * as team from "./team.ts";
32
33
  export * as tooling from "./tooling.ts";
@@ -31,11 +31,11 @@ export interface CreateItemRequest {
31
31
  /** ID of the List to add the item to. */
32
32
  list_id: string;
33
33
  /** ID of the record to make a copy of. */
34
- duplicated_item_id?: string;
34
+ duplicated_item_id?: string | undefined;
35
35
  /** ID of the parent record for this subtask. */
36
- parent_item_id?: string;
36
+ parent_item_id?: string | undefined;
37
37
  /** Initial item data. */
38
- initial_fields?: CreateItemRequestInitialFieldsList;
38
+ initial_fields?: CreateItemRequestInitialFieldsList | undefined;
39
39
  }
40
40
  export interface CreateItemResponse {
41
41
  /** Always `true` (a failed call raises a typed error instead). */
@@ -50,15 +50,15 @@ export interface CreateSlackListRequest {
50
50
  /** Name of the List. */
51
51
  name: string;
52
52
  /** A rich text description of the List. */
53
- description_blocks?: CreateSlackListRequestDescriptionBlocksList;
53
+ description_blocks?: CreateSlackListRequestDescriptionBlocksList | undefined;
54
54
  /** Column definition for the List. */
55
- schema?: CreateSlackListRequestSchemaList;
55
+ schema?: CreateSlackListRequestSchemaList | undefined;
56
56
  /** ID of the List to copy. */
57
- copy_from_list_id?: string;
57
+ copy_from_list_id?: string | undefined;
58
58
  /** Boolean indicating whether to include records when a List is copied. */
59
- include_copied_list_records?: boolean;
59
+ include_copied_list_records?: boolean | undefined;
60
60
  /** Boolean indicating whether the List should be used to track todo tasks. */
61
- todo_mode?: boolean;
61
+ todo_mode?: boolean | undefined;
62
62
  }
63
63
  export interface CreateSlackListResponse {
64
64
  /** Always `true` (a failed call raises a typed error instead). */
@@ -66,7 +66,7 @@ export interface CreateSlackListResponse {
66
66
  /** The ID of the List created. */
67
67
  list_id: string;
68
68
  /** The metadata of the List created. */
69
- list_metadata?: unknown;
69
+ list_metadata?: unknown | undefined;
70
70
  }
71
71
  /** List of channels you wish to update access for. Can only be used if `user_ids` is not provided. */
72
72
  export type DeleteAccessRequestChannelIdsList = Array<string>;
@@ -76,9 +76,9 @@ export interface DeleteAccessRequest {
76
76
  /** Encoded ID of the List. */
77
77
  list_id: string;
78
78
  /** List of channels you wish to update access for. Can only be used if `user_ids` is not provided. */
79
- channel_ids?: DeleteAccessRequestChannelIdsList;
79
+ channel_ids?: DeleteAccessRequestChannelIdsList | undefined;
80
80
  /** List of users you wish to update access for. Can only be used if `channel_ids` is not provided. */
81
- user_ids?: DeleteAccessRequestUserIdsList;
81
+ user_ids?: DeleteAccessRequestUserIdsList | undefined;
82
82
  }
83
83
  /** The channel IDs that could not be updated. */
84
84
  export type DeleteAccessResponseFailedToUpdateChannelIdsList = Array<string>;
@@ -88,9 +88,9 @@ export interface DeleteAccessResponse {
88
88
  /** Always `true` (a failed call raises a typed error instead). */
89
89
  ok: boolean;
90
90
  /** The channel IDs that could not be updated. */
91
- failed_to_update_channel_ids?: DeleteAccessResponseFailedToUpdateChannelIdsList;
91
+ failed_to_update_channel_ids?: DeleteAccessResponseFailedToUpdateChannelIdsList | undefined;
92
92
  /** The user IDs that could not be updated. */
93
- failed_to_update_user_ids?: DeleteAccessResponseFailedToUpdateUserIdsList;
93
+ failed_to_update_user_ids?: DeleteAccessResponseFailedToUpdateUserIdsList | undefined;
94
94
  }
95
95
  export interface DeleteItemRequest {
96
96
  /** ID of the List containing the item. */
@@ -118,11 +118,13 @@ export interface DownloadGetRequest {
118
118
  /** The ID of the recently started job to export the List. */
119
119
  job_id: string;
120
120
  /** Format the export was started with. Must match the `format` passed to `slackLists.download.start`. Defaults to `csv`. */
121
- format?: string;
121
+ format?: string | undefined;
122
122
  /** Must match the `include_threads` passed to `slackLists.download.start`. The returned `download_url` carries this through so the served export matches what was generated. Only applies when `format` is `json`. */
123
- include_threads?: boolean;
123
+ include_threads?: boolean | undefined;
124
124
  /** Must match the `include_attachments` passed to `slackLists.download.start`. The returned `download_url` carries this through so the served export matches what was generated. Only applies when `format` is `json`. */
125
- include_attachments?: boolean;
125
+ include_attachments?: boolean | undefined;
126
+ /** Must match the `include_archived` passed to `slackLists.download.start`. The returned `download_url` carries this through so the served export includes archived items when they were requested. */
127
+ include_archived?: boolean | undefined;
126
128
  }
127
129
  export interface DownloadGetResponse {
128
130
  /** Always `true` (a failed call raises a typed error instead). */
@@ -130,24 +132,24 @@ export interface DownloadGetResponse {
130
132
  /** Current status of the export job. */
131
133
  status: unknown;
132
134
  /** The URL at which to download the CSV. */
133
- download_url?: string;
135
+ download_url?: string | undefined;
134
136
  }
135
137
  export interface DownloadStartRequest {
136
138
  /** ID of the List to export. */
137
139
  list_id: string;
138
- include_archived?: boolean;
140
+ include_archived?: boolean | undefined;
139
141
  /** Format of the export. Defaults to `csv` for backward compatibility. Use `json` for a complete, hierarchical export. */
140
- format?: string;
142
+ format?: string | undefined;
141
143
  /** Include each item's conversation thread in the export. Only applies when `format` is `json`. */
142
- include_threads?: boolean;
144
+ include_threads?: boolean | undefined;
143
145
  /** Include file attachment metadata and access paths in the export. Only applies when `format` is `json`. */
144
- include_attachments?: boolean;
146
+ include_attachments?: boolean | undefined;
145
147
  }
146
148
  export interface DownloadStartResponse {
147
149
  /** Always `true` (a failed call raises a typed error instead). */
148
150
  ok: boolean;
149
151
  /** The ID of the recently started job to export the List. */
150
- job_id: number;
152
+ job_id: string;
151
153
  }
152
154
  export interface ItemsInfoRequest {
153
155
  /** ID of the List. */
@@ -155,7 +157,7 @@ export interface ItemsInfoRequest {
155
157
  /** ID of the row to get. */
156
158
  id: string;
157
159
  /** Set to `true` to include `is_subscribed` data for the returned List row. */
158
- include_is_subscribed?: boolean;
160
+ include_is_subscribed?: boolean | undefined;
159
161
  }
160
162
  export type ItemsInfoResponseSubtasksList = Array<unknown>;
161
163
  export interface ItemsInfoResponse {
@@ -163,35 +165,35 @@ export interface ItemsInfoResponse {
163
165
  ok: boolean;
164
166
  list: unknown;
165
167
  record: unknown;
166
- parent_task?: unknown;
167
- subtasks?: ItemsInfoResponseSubtasksList;
168
+ parent_task?: unknown | undefined;
169
+ subtasks?: ItemsInfoResponseSubtasksList | undefined;
168
170
  }
169
171
  export interface ListItemsRequest {
170
172
  /** ID of the List. */
171
173
  list_id: string;
172
- /** The maximum number of records to return. */
173
- limit?: number;
174
+ /** The maximum number of records to return, up to the list row limit of 5000. */
175
+ limit?: number | undefined;
174
176
  /** Next cursor for pagination. */
175
- cursor?: string;
177
+ cursor?: string | undefined;
176
178
  /** Boolean indicating whether archived items or normal items should be returned. */
177
- archived?: boolean;
179
+ archived?: boolean | undefined;
178
180
  /** Set to `true` to also return the parent `list` object, including its title, column schema, and total row count. Defaults to `false` to keep the response small. */
179
- include_list?: boolean;
181
+ include_list?: boolean | undefined;
180
182
  }
181
183
  export type ListItemsResponseItemsList = Array<unknown>;
182
184
  /** Pagination metadata. An empty `next_cursor` means the last page. */
183
185
  export interface ListItemsResponseResponseMetadata {
184
186
  /** Cursor for the next page -- pass as `cursor` on the next call. */
185
- next_cursor?: string;
187
+ next_cursor?: string | undefined;
186
188
  }
187
189
  export interface ListItemsResponse {
188
190
  /** Always `true` (a failed call raises a typed error instead). */
189
191
  ok: boolean;
190
192
  items: ListItemsResponseItemsList;
191
193
  /** Pagination metadata. An empty `next_cursor` means the last page. */
192
- response_metadata?: ListItemsResponseResponseMetadata;
194
+ response_metadata?: ListItemsResponseResponseMetadata | undefined;
193
195
  /** The parent list. Only returned when `include_list` is `true`. `list_limits` carries `row_count` and no other key: the number of items matching this request's `archived` value, counting Slack-suggested items that `items` itself does not return, so it can exceed the number of items you can page through. Sharing and access fields (`channels`, `groups`, `ims`, `access`) are omitted; call `files.info` if you need those or the full set of list limits. */
194
- list?: unknown;
196
+ list?: unknown | undefined;
195
197
  }
196
198
  /** List of channels you wish to update access for. Can only be used if `user_ids` is not provided. */
197
199
  export type SetAccessRequestChannelIdsList = Array<string>;
@@ -203,9 +205,9 @@ export interface SetAccessRequest {
203
205
  /** Desired level of access. */
204
206
  access_level: string;
205
207
  /** List of channels you wish to update access for. Can only be used if `user_ids` is not provided. */
206
- channel_ids?: SetAccessRequestChannelIdsList;
208
+ channel_ids?: SetAccessRequestChannelIdsList | undefined;
207
209
  /** List of users you wish to update access for. Can only be used if `channel_ids` is not provided. */
208
- user_ids?: SetAccessRequestUserIdsList;
210
+ user_ids?: SetAccessRequestUserIdsList | undefined;
209
211
  }
210
212
  /** The channel IDs that could not be updated. */
211
213
  export type SetAccessResponseFailedToUpdateChannelIdsList = Array<string>;
@@ -215,9 +217,9 @@ export interface SetAccessResponse {
215
217
  /** Always `true` (a failed call raises a typed error instead). */
216
218
  ok: boolean;
217
219
  /** The channel IDs that could not be updated. */
218
- failed_to_update_channel_ids?: SetAccessResponseFailedToUpdateChannelIdsList;
220
+ failed_to_update_channel_ids?: SetAccessResponseFailedToUpdateChannelIdsList | undefined;
219
221
  /** The user IDs that could not be updated. */
220
- failed_to_update_user_ids?: SetAccessResponseFailedToUpdateUserIdsList;
222
+ failed_to_update_user_ids?: SetAccessResponseFailedToUpdateUserIdsList | undefined;
221
223
  }
222
224
  /** Cells to update. */
223
225
  export type UpdateItemRequestCellsList = Array<unknown>;
@@ -237,18 +239,18 @@ export interface UpdateSlackListRequest {
237
239
  /** The ID of the List to update. */
238
240
  id: string;
239
241
  /** The updated name of the List. */
240
- name?: string;
242
+ name?: string | undefined;
241
243
  /** A rich text description of the List. */
242
- description_blocks?: UpdateSlackListRequestDescriptionBlocksList;
244
+ description_blocks?: UpdateSlackListRequestDescriptionBlocksList | undefined;
243
245
  /** Boolean indicating whether the List should be in todo mode. */
244
- todo_mode?: boolean;
246
+ todo_mode?: boolean | undefined;
245
247
  }
246
248
  export interface UpdateSlackListResponse {
247
249
  /** Always `true` (a failed call raises a typed error instead). */
248
250
  ok: boolean;
249
251
  }
250
252
  export type CreateItemError = SlackOpError;
251
- /** Add a new item to an existing List. Required scopes -- bot: `lists:write`; user: `lists:write` Rate limit tier: 3 Method-specific errors (the `error` slug on the SlackError): - `list_not_found` -- The List was not found. - `over_row_maximum` -- Cannot create more items over the maximum. - `team_not_found` -- The team cannot be found. - `user_not_found` -- The user cannot be found. - `duplicated_item_not_found` -- The item to duplicate cannot be found. - `invalid_option_id` -- Option ID provided does not match column definition. - `invalid_args` -- The provided arguments are invalid. - `uneditable_column` -- Initial values provided for an uneditable column. - `invalid_input_type` -- The field value type does not match the column type. - `invalid_column_id` -- The column ID provided does not exist in the List. - `over_cell_fields_limit` -- Too many values provided for a single field. - `file_not_found` -- The attachment file could not be found. - `invalid_vote_value` -- Invalid value provided for a vote column. See https://docs.slack.dev/reference/methods/slackLists.items.create */
253
+ /** Add a new item to an existing List. Required scopes -- bot: `lists:write`; user: `lists:write` Rate limit tier: 3 Method-specific errors (the `error` slug on the SlackError): - `list_not_found` -- The List was not found. - `over_row_maximum` -- Cannot create more items over the maximum. - `team_not_found` -- The team cannot be found. - `user_not_found` -- The user cannot be found. - `duplicated_item_not_found` -- The item to duplicate cannot be found. - `invalid_option_id` -- Option ID provided does not match column definition. - `invalid_args` -- The provided arguments are invalid. - `uneditable_column` -- Initial values provided for an uneditable column. - `invalid_input_type` -- The field value type does not match the column type. - `invalid_column_id` -- The column ID provided does not exist in the List. - `over_cell_fields_limit` -- Too many values provided for a single field. - `file_not_found` -- The attachment file could not be found. - `invalid_vote_value` -- Invalid value provided for a vote column. - `invalid_date` -- Date supplied is invalid. - `invalid_email` -- Email supplied is invalid. - `invalid_phone_number` -- Invalid phone number provided. - `invalid_message` -- Invalid message provided. - `invalid_attachment` -- Invalid attachment provided. - `invalid_text_block` -- Rich text payload supplied is invalid. - `invalid_timestamp` -- Timestamp supplied is invalid. - `invalid_reference` -- Invalid reference provided; a reference cell holds one record or message. - `channel_not_found` -- The channel cannot be found. - `restricted_action` -- A team preference prevents this action. - `permission_denied` -- The user does not have permission to perform this action (for example, frontline members cannot create List items). See https://docs.slack.dev/reference/methods/slackLists.items.create */
252
254
  export const createItem: API.OperationMethod<
253
255
  CreateItemRequest,
254
256
  CreateItemResponse,
@@ -265,7 +267,7 @@ export const createItem: API.OperationMethod<
265
267
  }));
266
268
 
267
269
  export type CreateSlackListError = SlackOpError;
268
- /** Create a List. Required scopes -- bot: `lists:write`; user: `lists:write` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `permission_denied` -- The user does not have permission to perform this action. - `invalid_schema` -- The schema was invalid. - `invalid_primary_column` -- Missing or more than one primary column. - `team_not_found` -- The team cannot be found. - `user_not_found` -- The user cannot be found. - `over_list_file_maximum` -- Cannot create any more List files. - `over_title_length_maximum` -- Title can not exceed defined length. - `invalid_column_type` -- Column type not allowed. - `missing_arg_copy_from_list_id` -- Missing argument `copy_from_list_id`. - `invalid_copy_and_schema_args` -- Cannot provide both `copy_from_list_id` and `schema`. - `over_column_maximum` -- Cannot create List with more than allowed column count. See https://docs.slack.dev/reference/methods/slackLists.create */
270
+ /** Create a List. Required scopes -- bot: `lists:write`; user: `lists:write` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `permission_denied` -- The user does not have permission to perform this action. - `invalid_schema` -- The schema was invalid. - `invalid_primary_column` -- Missing or more than one primary column. - `team_not_found` -- The team cannot be found. - `user_not_found` -- The user cannot be found. - `over_list_file_maximum` -- Cannot create any more List files. - `over_title_length_maximum` -- Title can not exceed defined length. - `invalid_column_type` -- Column type not allowed. - `missing_arg_copy_from_list_id` -- Missing argument `copy_from_list_id`. - `invalid_copy_and_schema_args` -- Cannot provide both `copy_from_list_id` and `schema`. - `over_column_maximum` -- Cannot create List with more than allowed column count. - `list_not_found` -- The List was not found. - `invalid_view_metadata` -- A view on the List to copy has settings that cannot be read, so the List cannot be copied. See https://docs.slack.dev/reference/methods/slackLists.create */
269
271
  export const createSlackList: API.OperationMethod<
270
272
  CreateSlackListRequest,
271
273
  CreateSlackListResponse,
@@ -299,7 +301,7 @@ export const deleteAccess: API.OperationMethod<
299
301
  }));
300
302
 
301
303
  export type DeleteItemError = SlackOpError;
302
- /** Deletes an item from an existing List. Required scopes -- bot: `lists:write`; user: `lists:write` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `list_not_found` -- The List was not found. - `record_not_found` -- The record was not found in the List. - `team_not_found` -- The team cannot be found. - `user_not_found` -- The user cannot be found. See https://docs.slack.dev/reference/methods/slackLists.items.delete */
304
+ /** Deletes an item from an existing List. Required scopes -- bot: `lists:write`; user: `lists:write` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `list_not_found` -- The List was not found. - `record_not_found` -- The record was not found in the List. - `team_not_found` -- The team cannot be found. - `user_not_found` -- The user cannot be found. - `permission_denied` -- The user does not have permission to perform this action (for example, frontline members cannot delete List items). See https://docs.slack.dev/reference/methods/slackLists.items.delete */
303
305
  export const deleteItem: API.OperationMethod<
304
306
  DeleteItemRequest,
305
307
  DeleteItemResponse,
@@ -316,7 +318,7 @@ export const deleteItem: API.OperationMethod<
316
318
  }));
317
319
 
318
320
  export type DeleteMultipleError = SlackOpError;
319
- /** Deletes multiple items from an existing List. Required scopes -- bot: `lists:write`; user: `lists:write` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `list_not_found` -- The List was not found. - `team_not_found` -- The team cannot be found. - `user_not_found` -- The user cannot be found. See https://docs.slack.dev/reference/methods/slackLists.items.deleteMultiple */
321
+ /** Deletes multiple items from an existing List. Required scopes -- bot: `lists:write`; user: `lists:write` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `list_not_found` -- The List was not found. - `team_not_found` -- The team cannot be found. - `user_not_found` -- The user cannot be found. - `permission_denied` -- The user does not have permission to perform this action (for example, frontline members cannot delete List items). See https://docs.slack.dev/reference/methods/slackLists.items.deleteMultiple */
320
322
  export const deleteMultiple: API.OperationMethod<
321
323
  DeleteMultipleRequest,
322
324
  DeleteMultipleResponse,
@@ -446,7 +448,7 @@ export const updateItem: API.OperationMethod<
446
448
  }));
447
449
 
448
450
  export type UpdateSlackListError = SlackOpError;
449
- /** Update a List. Required scopes -- bot: `lists:write`; user: `lists:write` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `list_not_found` -- The List was not found. - `team_not_found` -- The team cannot be found. - `user_not_found` -- The user cannot be found. - `list_edits_update_error` -- Failed to update List metadata. - `list_editor_upsert_error` -- Failed to upsert List editor. - `over_title_length_maximum` -- Title can not exceed defined length. - `file_channel_rename_error` -- Failed to rename file channel based on file title. - `unexpected_description_blocks_arg` -- Unexpected description blocks argument. - `missing_arguments` -- No arguments were provided to update the List. See https://docs.slack.dev/reference/methods/slackLists.update */
451
+ /** Update a List. Required scopes -- bot: `lists:write`; user: `lists:write` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `list_not_found` -- The List was not found. - `team_not_found` -- The team cannot be found. - `user_not_found` -- The user cannot be found. - `list_edits_update_error` -- Failed to update List metadata. - `list_editor_upsert_error` -- Failed to upsert List editor. - `over_title_length_maximum` -- Title can not exceed defined length. - `file_channel_rename_error` -- Failed to rename file channel based on file title. - `unexpected_description_blocks_arg` -- Unexpected description blocks argument. - `missing_arguments` -- No arguments were provided to update the List. - `permission_denied` -- The user does not have permission to perform this action. See https://docs.slack.dev/reference/methods/slackLists.update */
450
452
  export const updateSlackList: API.OperationMethod<
451
453
  UpdateSlackListRequest,
452
454
  UpdateSlackListResponse,
@@ -608,6 +610,7 @@ function __c11(j: number): any {
608
610
  format: S.optional(S.String),
609
611
  include_threads: S.optional(S.Boolean),
610
612
  include_attachments: S.optional(S.Boolean),
613
+ include_archived: S.optional(S.Boolean),
611
614
  }).pipe(T.Http({ method: "POST", uri: "/slackLists.download.get", code: 200 })),
612
615
  ).annotate({ identifier: "DownloadGetRequest" });
613
616
  case 1:
@@ -636,7 +639,7 @@ function __c12(j: number): any {
636
639
  return S.suspend(() =>
637
640
  S.Struct({
638
641
  ok: S.Boolean,
639
- job_id: S.Number,
642
+ job_id: S.String,
640
643
  }),
641
644
  ).annotate({ identifier: "DownloadStartResponse" });
642
645
  }
@@ -29,9 +29,9 @@ export interface MigrationExchangeRequest {
29
29
  /** A comma-separated list of user ids, up to 400 per request */
30
30
  users: MigrationExchangeRequestUsersList;
31
31
  /** Specify team_id starts with `T` in case of Org Token */
32
- team_id?: string;
32
+ team_id?: string | undefined;
33
33
  /** Specify `true` to convert `W` global user IDs to workspace-specific `U` IDs. Defaults to `false`. */
34
- to_old?: boolean;
34
+ to_old?: boolean | undefined;
35
35
  }
36
36
  export type MigrationExchangeResponseUserIdMapMap = { [key: string]: unknown | undefined };
37
37
  export type MigrationExchangeResponseInvalidUserIdsList = Array<string>;
@@ -41,7 +41,7 @@ export interface MigrationExchangeResponse {
41
41
  team_id: string;
42
42
  enterprise_id: string;
43
43
  user_id_map: MigrationExchangeResponseUserIdMapMap;
44
- invalid_user_ids?: MigrationExchangeResponseInvalidUserIdsList;
44
+ invalid_user_ids?: MigrationExchangeResponseInvalidUserIdsList | undefined;
45
45
  }
46
46
  export type MigrationExchangeError = SlackOpError;
47
47
  /** For Enterprise organization workspaces, map local user IDs to global user IDs Required scopes -- bot: `tokens.basic`; user: `tokens.basic` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `not_enterprise_team` -- The workspace associated with the token is not part of an Enterprise organization. User IDs have not changed and there is nothing to map. - `too_many_users` -- Too many user IDs provided in `users`. Up to 400 user IDs are allowed per request. See https://docs.slack.dev/reference/methods/migration.exchange */