@distilled.cloud/slack 1.0.0-rc.20 → 1.0.0-rc.21

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 (188) hide show
  1. package/README.md +2 -2
  2. package/lib/.lazy.json +1 -1
  3. package/lib/_bundle/sdk.js +1 -1
  4. package/lib/_bundle/sdk.js.map +1 -1
  5. package/lib/credentials.d.ts +6 -2
  6. package/lib/credentials.d.ts.map +1 -1
  7. package/lib/errors.d.ts +10 -0
  8. package/lib/errors.d.ts.map +1 -1
  9. package/lib/errors.js +1 -1
  10. package/lib/index.d.ts +0 -1
  11. package/lib/index.d.ts.map +1 -1
  12. package/lib/index.js +0 -1
  13. package/lib/pagination.d.ts.map +1 -1
  14. package/lib/protocol.d.ts +47 -12
  15. package/lib/protocol.d.ts.map +1 -1
  16. package/lib/retry.d.ts +1 -2
  17. package/lib/retry.d.ts.map +1 -1
  18. package/lib/services/admin.d.ts +264 -83
  19. package/lib/services/admin.d.ts.map +1 -1
  20. package/lib/services/admin.js +154 -149
  21. package/lib/services/admin.js.map +1 -1
  22. package/lib/services/agents.d.ts.map +1 -1
  23. package/lib/services/agents.js +1 -1
  24. package/lib/services/agents.js.map +1 -1
  25. package/lib/services/api.d.ts.map +1 -1
  26. package/lib/services/api.js +1 -1
  27. package/lib/services/api.js.map +1 -1
  28. package/lib/services/apps.d.ts +7 -7
  29. package/lib/services/apps.d.ts.map +1 -1
  30. package/lib/services/apps.js +34 -34
  31. package/lib/services/apps.js.map +1 -1
  32. package/lib/services/assistant.d.ts +4 -1
  33. package/lib/services/assistant.d.ts.map +1 -1
  34. package/lib/services/assistant.js +1 -1
  35. package/lib/services/assistant.js.map +1 -1
  36. package/lib/services/auth.d.ts.map +1 -1
  37. package/lib/services/auth.js +1 -1
  38. package/lib/services/auth.js.map +1 -1
  39. package/lib/services/blocks.d.ts.map +1 -1
  40. package/lib/services/blocks.js +1 -1
  41. package/lib/services/blocks.js.map +1 -1
  42. package/lib/services/bookmarks.d.ts.map +1 -1
  43. package/lib/services/bookmarks.js +1 -1
  44. package/lib/services/bookmarks.js.map +1 -1
  45. package/lib/services/bots.d.ts.map +1 -1
  46. package/lib/services/bots.js +1 -1
  47. package/lib/services/bots.js.map +1 -1
  48. package/lib/services/calls.d.ts.map +1 -1
  49. package/lib/services/calls.js +1 -1
  50. package/lib/services/calls.js.map +1 -1
  51. package/lib/services/canvases.d.ts +1 -1
  52. package/lib/services/canvases.d.ts.map +1 -1
  53. package/lib/services/canvases.js +1 -1
  54. package/lib/services/canvases.js.map +1 -1
  55. package/lib/services/chat.d.ts.map +1 -1
  56. package/lib/services/chat.js +1 -1
  57. package/lib/services/chat.js.map +1 -1
  58. package/lib/services/conversations.d.ts +5 -5
  59. package/lib/services/conversations.d.ts.map +1 -1
  60. package/lib/services/conversations.js +39 -39
  61. package/lib/services/conversations.js.map +1 -1
  62. package/lib/services/dialog.d.ts.map +1 -1
  63. package/lib/services/dialog.js +1 -1
  64. package/lib/services/dialog.js.map +1 -1
  65. package/lib/services/dnd.d.ts.map +1 -1
  66. package/lib/services/dnd.js +1 -1
  67. package/lib/services/dnd.js.map +1 -1
  68. package/lib/services/emoji.d.ts.map +1 -1
  69. package/lib/services/emoji.js +1 -1
  70. package/lib/services/emoji.js.map +1 -1
  71. package/lib/services/entity.d.ts.map +1 -1
  72. package/lib/services/entity.js +1 -1
  73. package/lib/services/entity.js.map +1 -1
  74. package/lib/services/files.d.ts +1 -1
  75. package/lib/services/files.d.ts.map +1 -1
  76. package/lib/services/files.js +28 -28
  77. package/lib/services/files.js.map +1 -1
  78. package/lib/services/functions.d.ts.map +1 -1
  79. package/lib/services/functions.js +1 -1
  80. package/lib/services/functions.js.map +1 -1
  81. package/lib/services/index.d.ts.map +1 -1
  82. package/lib/services/lists.d.ts.map +1 -1
  83. package/lib/services/lists.js +1 -1
  84. package/lib/services/lists.js.map +1 -1
  85. package/lib/services/migration.d.ts.map +1 -1
  86. package/lib/services/migration.js +1 -1
  87. package/lib/services/migration.js.map +1 -1
  88. package/lib/services/oauth.d.ts +6 -6
  89. package/lib/services/oauth.d.ts.map +1 -1
  90. package/lib/services/oauth.js +1 -1
  91. package/lib/services/oauth.js.map +1 -1
  92. package/lib/services/openid.d.ts +2 -2
  93. package/lib/services/openid.d.ts.map +1 -1
  94. package/lib/services/openid.js +1 -1
  95. package/lib/services/openid.js.map +1 -1
  96. package/lib/services/pins.d.ts.map +1 -1
  97. package/lib/services/pins.js +1 -1
  98. package/lib/services/pins.js.map +1 -1
  99. package/lib/services/reactions.d.ts.map +1 -1
  100. package/lib/services/reactions.js +1 -1
  101. package/lib/services/reactions.js.map +1 -1
  102. package/lib/services/reminders.d.ts.map +1 -1
  103. package/lib/services/reminders.js +1 -1
  104. package/lib/services/reminders.js.map +1 -1
  105. package/lib/services/rtm.d.ts.map +1 -1
  106. package/lib/services/rtm.js +1 -1
  107. package/lib/services/rtm.js.map +1 -1
  108. package/lib/services/search.d.ts.map +1 -1
  109. package/lib/services/search.js +1 -1
  110. package/lib/services/search.js.map +1 -1
  111. package/lib/services/slackbot.d.ts +2 -2
  112. package/lib/services/slackbot.d.ts.map +1 -1
  113. package/lib/services/slackbot.js +1 -1
  114. package/lib/services/slackbot.js.map +1 -1
  115. package/lib/services/stars.d.ts.map +1 -1
  116. package/lib/services/stars.js +1 -1
  117. package/lib/services/stars.js.map +1 -1
  118. package/lib/services/team.d.ts +1 -1
  119. package/lib/services/team.d.ts.map +1 -1
  120. package/lib/services/team.js +1 -1
  121. package/lib/services/team.js.map +1 -1
  122. package/lib/services/tooling.d.ts +1 -1
  123. package/lib/services/tooling.d.ts.map +1 -1
  124. package/lib/services/tooling.js +1 -1
  125. package/lib/services/tooling.js.map +1 -1
  126. package/lib/services/usergroups.d.ts.map +1 -1
  127. package/lib/services/usergroups.js +1 -1
  128. package/lib/services/usergroups.js.map +1 -1
  129. package/lib/services/users.d.ts +73 -1
  130. package/lib/services/users.d.ts.map +1 -1
  131. package/lib/services/users.js +1 -1
  132. package/lib/services/users.js.map +1 -1
  133. package/lib/services/views.d.ts.map +1 -1
  134. package/lib/services/views.js +1 -1
  135. package/lib/services/views.js.map +1 -1
  136. package/lib/services/workflows.d.ts +4 -4
  137. package/lib/services/workflows.d.ts.map +1 -1
  138. package/lib/services/workflows.js +1 -1
  139. package/lib/services/workflows.js.map +1 -1
  140. package/lib/services.lazy/admin.js +2 -2
  141. package/lib/services.lazy/apps.js +1 -1
  142. package/lib/services.lazy/conversations.js +1 -1
  143. package/lib/services.lazy/files.js +1 -1
  144. package/lib/traits.d.ts.map +1 -1
  145. package/package.json +6 -7
  146. package/src/credentials.ts +20 -15
  147. package/src/errors.ts +12 -1
  148. package/src/index.ts +0 -1
  149. package/src/protocol.ts +96 -86
  150. package/src/retry.ts +1 -2
  151. package/src/services/admin.ts +1523 -951
  152. package/src/services/agents.ts +23 -12
  153. package/src/services/api.ts +3 -2
  154. package/src/services/apps.ts +57 -34
  155. package/src/services/assistant.ts +17 -8
  156. package/src/services/auth.ts +7 -4
  157. package/src/services/blocks.ts +3 -2
  158. package/src/services/bookmarks.ts +9 -5
  159. package/src/services/bots.ts +3 -2
  160. package/src/services/calls.ts +13 -7
  161. package/src/services/canvases.ts +16 -9
  162. package/src/services/chat.ts +27 -14
  163. package/src/services/conversations.ts +62 -34
  164. package/src/services/dialog.ts +3 -2
  165. package/src/services/dnd.ts +11 -6
  166. package/src/services/emoji.ts +3 -2
  167. package/src/services/entity.ts +7 -4
  168. package/src/services/files.ts +32 -17
  169. package/src/services/functions.ts +17 -9
  170. package/src/services/lists.ts +25 -13
  171. package/src/services/migration.ts +3 -2
  172. package/src/services/oauth.ts +23 -17
  173. package/src/services/openid.ts +8 -6
  174. package/src/services/pins.ts +7 -4
  175. package/src/services/reactions.ts +9 -5
  176. package/src/services/reminders.ts +11 -6
  177. package/src/services/rtm.ts +5 -3
  178. package/src/services/search.ts +7 -4
  179. package/src/services/slackbot.ts +17 -10
  180. package/src/services/stars.ts +7 -4
  181. package/src/services/team.ts +20 -11
  182. package/src/services/tooling.ts +5 -4
  183. package/src/services/usergroups.ts +15 -8
  184. package/src/services/users.ts +136 -17
  185. package/src/services/views.ts +9 -5
  186. package/src/services/workflows.ts +21 -13
  187. package/lib/index.lazy.js +0 -7
  188. package/lib/index.lazy.js.map +0 -1
@@ -139,6 +139,75 @@ export interface AddWorkflowsCollaboratorResponse {
139
139
  /** Always `true` (a failed call raises a typed error instead). */
140
140
  ok: boolean;
141
141
  }
142
+ export type AnalyticsMembersActivityRequestMemberTypesItem = "regular_members" | "single_channel_guests" | "multi_channel_guests" | "frontline_members" | "org_owners" | "org_admins" | "workspace_owners" | "workspace_admins" | "invited";
143
+ export type AnalyticsMembersActivityRequestMemberTypesList = Array<AnalyticsMembersActivityRequestMemberTypesItem | (string & {})>;
144
+ export type AnalyticsMembersActivityRequestUserIdsList = Array<string>;
145
+ export interface AnalyticsMembersActivityRequest {
146
+ /** The day to report on, as `YYYY-MM-DD` in UTC. Each metric counts that day's activity. Defaults to the most recent day with data. The response's `available_date_range` gives the earliest and latest days you can request. */
147
+ date?: string | undefined;
148
+ /** Workspace ID to scope the results to. With an organization-level token, omit it for organization-wide results. A workspace-level token may only pass its own workspace. */
149
+ team_id?: string | undefined;
150
+ /** Comma-separated list of member types to include. Omit to include every member type. */
151
+ member_types?: AnalyticsMembersActivityRequestMemberTypesList | undefined;
152
+ /** Comma-separated list of user IDs to return. Use `admin.analytics.members.metadata`, which supports searching by name and email, to find them; this method never returns names or email addresses. Up to 500 IDs. Deactivated members may be included. Omit to return every member. */
153
+ user_ids?: AnalyticsMembersActivityRequestUserIdsList | undefined;
154
+ /** Paginate through collections of data by setting the `cursor` parameter to a `next_cursor` attribute returned by a previous request's `response_metadata`. Default value fetches the first "page" of the collection. */
155
+ cursor?: string | undefined;
156
+ /** Maximum number of members to return. Max allowed is 500. */
157
+ limit?: number | undefined;
158
+ }
159
+ /** The days this method has data for. `start_date` is the earliest `date` it accepts and `end_date` the most recent, which is also the default. */
160
+ export interface AnalyticsMembersActivityResponseAvailableDateRange {
161
+ /** The earliest day with data, as `YYYY-MM-DD` in UTC (inclusive). */
162
+ start_date: string;
163
+ /** The most recent day with data, as `YYYY-MM-DD` in UTC (inclusive). */
164
+ end_date: string;
165
+ }
166
+ /** Pagination metadata. An empty `next_cursor` means the last page. */
167
+ export interface AnalyticsMembersActivityResponseResponseMetadata {
168
+ /** Cursor for the next page -- pass as `cursor` on the next call. */
169
+ next_cursor?: string | undefined;
170
+ }
171
+ export interface AnalyticsMembersActivityResponse {
172
+ /** Always `true` (a failed call raises a typed error instead). */
173
+ ok: boolean;
174
+ /** The day the metrics cover, as `YYYY-MM-DD` in UTC: the `date` argument, or the most recent day with data when it was omitted. */
175
+ date: string;
176
+ /** The days this method has data for. `start_date` is the earliest `date` it accepts and `end_date` the most recent, which is also the default. */
177
+ available_date_range: AnalyticsMembersActivityResponseAvailableDateRange;
178
+ members: unknown;
179
+ /** Total number of members that match the request, across all pages. */
180
+ total_count: number;
181
+ /** Pagination metadata. An empty `next_cursor` means the last page. */
182
+ response_metadata?: AnalyticsMembersActivityResponseResponseMetadata | undefined;
183
+ }
184
+ export type AnalyticsMembersMetadataRequestMemberTypesItem = "regular_members" | "single_channel_guests" | "multi_channel_guests" | "frontline_members" | "org_owners" | "org_admins" | "workspace_owners" | "workspace_admins" | "invited";
185
+ export type AnalyticsMembersMetadataRequestMemberTypesList = Array<AnalyticsMembersMetadataRequestMemberTypesItem | (string & {})>;
186
+ export interface AnalyticsMembersMetadataRequest {
187
+ /** Also return members deactivated on or after this day, as `YYYY-MM-DD` in UTC. Without it, only active members are returned. */
188
+ include_deactivated_since?: string | undefined;
189
+ /** Workspace ID to scope the results to. With an organization-level token, omit it for organization-wide results. A workspace-level token may only pass its own workspace. */
190
+ team_id?: string | undefined;
191
+ /** Comma-separated list of member types to include. Omit to include every member type. */
192
+ member_types?: AnalyticsMembersMetadataRequestMemberTypesList | undefined;
193
+ /** Space-delimited search terms matched against member names, and against email addresses when the organization shows them. When the organization hides email addresses, or hides guest email addresses, the search does not match on email at all, so a hidden address cannot be recovered by searching for it. Only matching members are returned. */
194
+ query?: string | undefined;
195
+ /** Paginate through collections of data by setting the `cursor` parameter to a `next_cursor` attribute returned by a previous request's `response_metadata`. Default value fetches the first "page" of the collection. */
196
+ cursor?: string | undefined;
197
+ /** Maximum number of members to return. Max allowed is 500. */
198
+ limit?: number | undefined;
199
+ }
200
+ /** Pagination metadata. An empty `next_cursor` means the last page. */
201
+ export type AnalyticsMembersMetadataResponseResponseMetadata = AnalyticsMembersActivityResponseResponseMetadata;
202
+ export interface AnalyticsMembersMetadataResponse {
203
+ /** Always `true` (a failed call raises a typed error instead). */
204
+ ok: boolean;
205
+ members: unknown;
206
+ /** Total number of members that match the request, across all pages. */
207
+ total_count: number;
208
+ /** Pagination metadata. An empty `next_cursor` means the last page. */
209
+ response_metadata?: AnalyticsMembersActivityResponseResponseMetadata | undefined;
210
+ }
142
211
  export interface AnalyticsMessagesActivityRequest {
143
212
  /** Channel ID for channel of the message activity to query. */
144
213
  channel: string;
@@ -152,15 +221,12 @@ export interface AnalyticsMessagesActivityRequest {
152
221
  limit?: number | undefined;
153
222
  }
154
223
  /** Pagination metadata. An empty `next_cursor` means the last page. */
155
- export interface AnalyticsMessagesActivityResponseResponseMetadata {
156
- /** Cursor for the next page -- pass as `cursor` on the next call. */
157
- next_cursor?: string | undefined;
158
- }
224
+ export type AnalyticsMessagesActivityResponseResponseMetadata = AnalyticsMembersActivityResponseResponseMetadata;
159
225
  export interface AnalyticsMessagesActivityResponse {
160
226
  /** Always `true` (a failed call raises a typed error instead). */
161
227
  ok: boolean;
162
228
  /** Pagination metadata. An empty `next_cursor` means the last page. */
163
- response_metadata?: AnalyticsMessagesActivityResponseResponseMetadata | undefined;
229
+ response_metadata?: AnalyticsMembersActivityResponseResponseMetadata | undefined;
164
230
  message_activities: unknown;
165
231
  }
166
232
  export interface AnalyticsMessagesMetadataRequest {
@@ -174,7 +240,7 @@ export interface AnalyticsMessagesMetadataRequest {
174
240
  cursor?: string | undefined;
175
241
  }
176
242
  /** Pagination metadata. An empty `next_cursor` means the last page. */
177
- export type AnalyticsMessagesMetadataResponseResponseMetadata = AnalyticsMessagesActivityResponseResponseMetadata;
243
+ export type AnalyticsMessagesMetadataResponseResponseMetadata = AnalyticsMembersActivityResponseResponseMetadata;
178
244
  export interface AnalyticsMessagesMetadataResponseMessagesItemReactionsItem {
179
245
  /** Name of the reaction emoji */
180
246
  name: string;
@@ -239,10 +305,113 @@ export interface AnalyticsMessagesMetadataResponse {
239
305
  /** Always `true` (a failed call raises a typed error instead). */
240
306
  ok: boolean;
241
307
  /** Pagination metadata. An empty `next_cursor` means the last page. */
242
- response_metadata?: AnalyticsMessagesActivityResponseResponseMetadata | undefined;
308
+ response_metadata?: AnalyticsMembersActivityResponseResponseMetadata | undefined;
243
309
  /** An array of message metadata */
244
310
  messages: AnalyticsMessagesMetadataResponseMessagesList;
245
311
  }
312
+ export interface AnalyticsSlackbotSkillsRequest {
313
+ /** The date to retrieve the analytics data for, expressed as `YYYY-MM-DD` in UTC. If not provided, defaults to the latest date with available data. The response's `available_date_range` gives the earliest and latest dates you can request. */
314
+ date?: string | undefined;
315
+ /** Paginate through collections of data by setting the `cursor` parameter to a `next_cursor` attribute returned by a previous request's `response_metadata`. Default value fetches the first "page" of the collection. */
316
+ cursor?: string | undefined;
317
+ /** Maximum number of skill entries to return per page, counted across all rows. Defaults to 500. Max allowed is 1000. */
318
+ limit?: number | undefined;
319
+ }
320
+ /** The dates this method has data for. `start_date` is the earliest `date` it accepts and `end_date` the latest, which is also the default. Omitted when no Slackbot analytics data is available yet. */
321
+ export interface AnalyticsSlackbotSkillsResponseAvailableDateRange {
322
+ /** The earliest date with data, as `YYYY-MM-DD` in UTC (inclusive). */
323
+ start_date: string;
324
+ /** The latest date with data, as `YYYY-MM-DD` in UTC (inclusive). */
325
+ end_date: string;
326
+ }
327
+ export interface AnalyticsSlackbotSkillsResponseSkillUsageItemSkillsItem {
328
+ /** The file ID of the skill, stable across renames */
329
+ id: string;
330
+ /** The name of the skill. Empty when the skill has been deleted. */
331
+ name?: string | undefined;
332
+ /** Number of times the user invoked the skill with Slackbot on this date */
333
+ use_count: number;
334
+ /** Number of times the user added the skill on this date */
335
+ added_count: number;
336
+ /** Number of times the user shared the skill on this date */
337
+ shared_count: number;
338
+ }
339
+ /** Skills the user used, added, or shared with Slackbot on this date */
340
+ export type AnalyticsSlackbotSkillsResponseSkillUsageItemSkillsList = Array<AnalyticsSlackbotSkillsResponseSkillUsageItemSkillsItem>;
341
+ export interface AnalyticsSlackbotSkillsResponseSkillUsageItem {
342
+ /** The date this row of data is representative of, expressed as `YYYY-MM-DD` in UTC. */
343
+ date: string;
344
+ /** Unique ID of the involved Enterprise organization */
345
+ enterprise_id: string;
346
+ /** The canonical, organization-wide user ID this row concerns */
347
+ user_id: string;
348
+ /** The email address of record for the same user. Omitted when the organization hides email addresses, and for guests when the organization hides guest email addresses. */
349
+ email_address?: string | undefined;
350
+ /** Skills the user used, added, or shared with Slackbot on this date */
351
+ skills: AnalyticsSlackbotSkillsResponseSkillUsageItemSkillsList;
352
+ }
353
+ /** One row per user who used, added, or shared at least one skill on the date. When a page ends partway through a user's skills, the rest continue in a row with the same `user_id` at the start of the next page, so merge rows that share it. */
354
+ export type AnalyticsSlackbotSkillsResponseSkillUsageList = Array<AnalyticsSlackbotSkillsResponseSkillUsageItem>;
355
+ /** Pagination metadata. An empty `next_cursor` means the last page. */
356
+ export type AnalyticsSlackbotSkillsResponseResponseMetadata = AnalyticsMembersActivityResponseResponseMetadata;
357
+ export interface AnalyticsSlackbotSkillsResponse {
358
+ /** Always `true` (a failed call raises a typed error instead). */
359
+ ok: boolean;
360
+ /** The date the rows cover, as `YYYY-MM-DD` in UTC: the `date` argument, the date the `cursor` was issued for, or the latest date with available data when both were omitted. Omitted when no Slackbot analytics data is available yet. */
361
+ date?: string | undefined;
362
+ /** The dates this method has data for. `start_date` is the earliest `date` it accepts and `end_date` the latest, which is also the default. Omitted when no Slackbot analytics data is available yet. */
363
+ available_date_range?: AnalyticsSlackbotSkillsResponseAvailableDateRange | undefined;
364
+ /** One row per user who used, added, or shared at least one skill on the date. When a page ends partway through a user's skills, the rest continue in a row with the same `user_id` at the start of the next page, so merge rows that share it. */
365
+ skill_usage: AnalyticsSlackbotSkillsResponseSkillUsageList;
366
+ /** Pagination metadata. An empty `next_cursor` means the last page. */
367
+ response_metadata?: AnalyticsMembersActivityResponseResponseMetadata | undefined;
368
+ }
369
+ export interface AnalyticsSlackbotToolsRequest {
370
+ /** The date to retrieve the analytics data for, expressed as `YYYY-MM-DD` in UTC. If not provided, defaults to the latest date with available data. The response's `available_date_range` gives the earliest and latest dates you can request. */
371
+ date?: string | undefined;
372
+ /** Paginate through collections of data by setting the `cursor` parameter to a `next_cursor` attribute returned by a previous request's `response_metadata`. Default value fetches the first "page" of the collection. */
373
+ cursor?: string | undefined;
374
+ /** Maximum number of tool entries to return per page, counted across all rows. Defaults to 500. Max allowed is 1000. */
375
+ limit?: number | undefined;
376
+ }
377
+ /** The dates this method has data for. `start_date` is the earliest `date` it accepts and `end_date` the latest, which is also the default. Omitted when no Slackbot analytics data is available yet. */
378
+ export type AnalyticsSlackbotToolsResponseAvailableDateRange = AnalyticsSlackbotSkillsResponseAvailableDateRange;
379
+ export interface AnalyticsSlackbotToolsResponseToolUsageItemToolsItem {
380
+ /** The display name of the tool */
381
+ name: string;
382
+ /** Number of times Slackbot used the tool for the user on this date */
383
+ use_count: number;
384
+ }
385
+ /** User-facing tools Slackbot used on the user's behalf on this date */
386
+ export type AnalyticsSlackbotToolsResponseToolUsageItemToolsList = Array<AnalyticsSlackbotToolsResponseToolUsageItemToolsItem>;
387
+ export interface AnalyticsSlackbotToolsResponseToolUsageItem {
388
+ /** The date this row of data is representative of, expressed as `YYYY-MM-DD` in UTC. */
389
+ date: string;
390
+ /** Unique ID of the involved Enterprise organization */
391
+ enterprise_id: string;
392
+ /** The canonical, organization-wide user ID this row concerns */
393
+ user_id: string;
394
+ /** The email address of record for the same user. Omitted when the organization hides email addresses, and for guests when the organization hides guest email addresses. */
395
+ email_address?: string | undefined;
396
+ /** User-facing tools Slackbot used on the user's behalf on this date */
397
+ tools: AnalyticsSlackbotToolsResponseToolUsageItemToolsList;
398
+ }
399
+ /** One row per user for whom Slackbot used at least one user-facing tool on the date. When a page ends partway through a user's tools, the rest continue in a row with the same `user_id` at the start of the next page, so merge rows that share it. */
400
+ export type AnalyticsSlackbotToolsResponseToolUsageList = Array<AnalyticsSlackbotToolsResponseToolUsageItem>;
401
+ /** Pagination metadata. An empty `next_cursor` means the last page. */
402
+ export type AnalyticsSlackbotToolsResponseResponseMetadata = AnalyticsMembersActivityResponseResponseMetadata;
403
+ export interface AnalyticsSlackbotToolsResponse {
404
+ /** Always `true` (a failed call raises a typed error instead). */
405
+ ok: boolean;
406
+ /** The date the rows cover, as `YYYY-MM-DD` in UTC: the `date` argument, the date the `cursor` was issued for, or the latest date with available data when both were omitted. Omitted when no Slackbot analytics data is available yet. */
407
+ date?: string | undefined;
408
+ /** The dates this method has data for. `start_date` is the earliest `date` it accepts and `end_date` the latest, which is also the default. Omitted when no Slackbot analytics data is available yet. */
409
+ available_date_range?: AnalyticsSlackbotSkillsResponseAvailableDateRange | undefined;
410
+ /** One row per user for whom Slackbot used at least one user-facing tool on the date. When a page ends partway through a user's tools, the rest continue in a row with the same `user_id` at the start of the next page, so merge rows that share it. */
411
+ tool_usage: AnalyticsSlackbotToolsResponseToolUsageList;
412
+ /** Pagination metadata. An empty `next_cursor` means the last page. */
413
+ response_metadata?: AnalyticsMembersActivityResponseResponseMetadata | undefined;
414
+ }
246
415
  export interface ApproveAppRequest {
247
416
  /** Auto-create an Admin-Approved App automation rule that pre-approves future child app installs from this manager app. */
248
417
  allow_child_auto_install?: boolean | undefined;
@@ -721,7 +890,7 @@ export interface GetEntitiesRequest {
721
890
  cursor?: string | undefined;
722
891
  }
723
892
  /** Pagination metadata. An empty `next_cursor` means the last page. */
724
- export type GetEntitiesResponseResponseMetadata = AnalyticsMessagesActivityResponseResponseMetadata;
893
+ export type GetEntitiesResponseResponseMetadata = AnalyticsMembersActivityResponseResponseMetadata;
725
894
  export interface GetEntitiesResponseEntitiesItem {
726
895
  /** The type of entity assigned to the policy. Informs the meaning of the entity_id. */
727
896
  entity_type: string;
@@ -736,7 +905,7 @@ export interface GetEntitiesResponse {
736
905
  /** Always `true` (a failed call raises a typed error instead). */
737
906
  ok: boolean;
738
907
  /** Pagination metadata. An empty `next_cursor` means the last page. */
739
- response_metadata?: AnalyticsMessagesActivityResponseResponseMetadata | undefined;
908
+ response_metadata?: AnalyticsMembersActivityResponseResponseMetadata | undefined;
740
909
  /** Entities assigned to the policy */
741
910
  entities: GetEntitiesResponseEntitiesList;
742
911
  /** Count of entities under the policy and provided filter conditions */
@@ -823,11 +992,11 @@ export interface GetTeamsRequest {
823
992
  limit?: number | undefined;
824
993
  }
825
994
  /** Pagination metadata. An empty `next_cursor` means the last page. */
826
- export type GetTeamsResponseResponseMetadata = AnalyticsMessagesActivityResponseResponseMetadata;
995
+ export type GetTeamsResponseResponseMetadata = AnalyticsMembersActivityResponseResponseMetadata;
827
996
  export interface GetTeamsResponse {
828
997
  ok: boolean;
829
998
  /** Pagination metadata. An empty `next_cursor` means the last page. */
830
- response_metadata?: AnalyticsMessagesActivityResponseResponseMetadata | undefined;
999
+ response_metadata?: AnalyticsMembersActivityResponseResponseMetadata | undefined;
831
1000
  }
832
1001
  export interface InvalidateUsersSessionRequest {
833
1002
  /** ID of the user that the session belongs to. */
@@ -929,13 +1098,13 @@ export interface ListAppsActivitiesRequest {
929
1098
  }
930
1099
  export type ListAppsActivitiesResponseActivitiesList = Array<unknown>;
931
1100
  /** Pagination metadata. An empty `next_cursor` means the last page. */
932
- export type ListAppsActivitiesResponseResponseMetadata = AnalyticsMessagesActivityResponseResponseMetadata;
1101
+ export type ListAppsActivitiesResponseResponseMetadata = AnalyticsMembersActivityResponseResponseMetadata;
933
1102
  export interface ListAppsActivitiesResponse {
934
1103
  /** Always `true` (a failed call raises a typed error instead). */
935
1104
  ok: boolean;
936
1105
  activities: ListAppsActivitiesResponseActivitiesList;
937
1106
  /** Pagination metadata. An empty `next_cursor` means the last page. */
938
- response_metadata?: AnalyticsMessagesActivityResponseResponseMetadata | undefined;
1107
+ response_metadata?: AnalyticsMembersActivityResponseResponseMetadata | undefined;
939
1108
  }
940
1109
  export interface ListAppsApprovedRequest {
941
1110
  /** The maximum number of items to return. Must be between 1 - 1000 both inclusive. */
@@ -949,13 +1118,13 @@ export interface ListAppsApprovedRequest {
949
1118
  }
950
1119
  export type ListAppsApprovedResponseApprovedAppsList = Array<unknown>;
951
1120
  /** Pagination metadata. An empty `next_cursor` means the last page. */
952
- export type ListAppsApprovedResponseResponseMetadata = AnalyticsMessagesActivityResponseResponseMetadata;
1121
+ export type ListAppsApprovedResponseResponseMetadata = AnalyticsMembersActivityResponseResponseMetadata;
953
1122
  export interface ListAppsApprovedResponse {
954
1123
  /** Always `true` (a failed call raises a typed error instead). */
955
1124
  ok: boolean;
956
1125
  approved_apps: ListAppsApprovedResponseApprovedAppsList;
957
1126
  /** Pagination metadata. An empty `next_cursor` means the last page. */
958
- response_metadata?: AnalyticsMessagesActivityResponseResponseMetadata | undefined;
1127
+ response_metadata?: AnalyticsMembersActivityResponseResponseMetadata | undefined;
959
1128
  }
960
1129
  export interface ListAppsMcpServersRequest {
961
1130
  /** The maximum number of items to return. Must be between 1 - 1000 both inclusive. */
@@ -979,13 +1148,13 @@ export interface ListAppsMcpServersResponseServersItem {
979
1148
  }
980
1149
  export type ListAppsMcpServersResponseServersList = Array<ListAppsMcpServersResponseServersItem>;
981
1150
  /** Pagination metadata. An empty `next_cursor` means the last page. */
982
- export type ListAppsMcpServersResponseResponseMetadata = AnalyticsMessagesActivityResponseResponseMetadata;
1151
+ export type ListAppsMcpServersResponseResponseMetadata = AnalyticsMembersActivityResponseResponseMetadata;
983
1152
  export interface ListAppsMcpServersResponse {
984
1153
  /** Always `true` (a failed call raises a typed error instead). */
985
1154
  ok: boolean;
986
1155
  servers: ListAppsMcpServersResponseServersList;
987
1156
  /** Pagination metadata. An empty `next_cursor` means the last page. */
988
- response_metadata?: AnalyticsMessagesActivityResponseResponseMetadata | undefined;
1157
+ response_metadata?: AnalyticsMembersActivityResponseResponseMetadata | undefined;
989
1158
  }
990
1159
  export interface ListAppsMcpServersPermissionsRequest {
991
1160
  /** Encoded ID of the app */
@@ -1017,13 +1186,13 @@ export interface ListAppsRequestsRequest {
1017
1186
  }
1018
1187
  export type ListAppsRequestsResponseAppRequestsList = Array<unknown>;
1019
1188
  /** Pagination metadata. An empty `next_cursor` means the last page. */
1020
- export type ListAppsRequestsResponseResponseMetadata = AnalyticsMessagesActivityResponseResponseMetadata;
1189
+ export type ListAppsRequestsResponseResponseMetadata = AnalyticsMembersActivityResponseResponseMetadata;
1021
1190
  export interface ListAppsRequestsResponse {
1022
1191
  /** Always `true` (a failed call raises a typed error instead). */
1023
1192
  ok: boolean;
1024
1193
  app_requests: ListAppsRequestsResponseAppRequestsList;
1025
1194
  /** Pagination metadata. An empty `next_cursor` means the last page. */
1026
- response_metadata?: AnalyticsMessagesActivityResponseResponseMetadata | undefined;
1195
+ response_metadata?: AnalyticsMembersActivityResponseResponseMetadata | undefined;
1027
1196
  }
1028
1197
  export interface ListAppsRestrictedRequest {
1029
1198
  /** The maximum number of items to return. Must be between 1 - 1000 both inclusive. */
@@ -1037,13 +1206,13 @@ export interface ListAppsRestrictedRequest {
1037
1206
  }
1038
1207
  export type ListAppsRestrictedResponseRestrictedAppsList = Array<unknown>;
1039
1208
  /** Pagination metadata. An empty `next_cursor` means the last page. */
1040
- export type ListAppsRestrictedResponseResponseMetadata = AnalyticsMessagesActivityResponseResponseMetadata;
1209
+ export type ListAppsRestrictedResponseResponseMetadata = AnalyticsMembersActivityResponseResponseMetadata;
1041
1210
  export interface ListAppsRestrictedResponse {
1042
1211
  /** Always `true` (a failed call raises a typed error instead). */
1043
1212
  ok: boolean;
1044
1213
  restricted_apps: ListAppsRestrictedResponseRestrictedAppsList;
1045
1214
  /** Pagination metadata. An empty `next_cursor` means the last page. */
1046
- response_metadata?: AnalyticsMessagesActivityResponseResponseMetadata | undefined;
1215
+ response_metadata?: AnalyticsMembersActivityResponseResponseMetadata | undefined;
1047
1216
  }
1048
1217
  export type ListAssignmentsRequestRoleIdsList = Array<string>;
1049
1218
  export type ListAssignmentsRequestEntityIdsList = Array<string>;
@@ -1071,7 +1240,7 @@ export interface ListAssignmentsResponseRoleAssignmentsItem {
1071
1240
  }
1072
1241
  export type ListAssignmentsResponseRoleAssignmentsList = Array<ListAssignmentsResponseRoleAssignmentsItem>;
1073
1242
  /** Pagination metadata. An empty `next_cursor` means the last page. */
1074
- export type ListAssignmentsResponseResponseMetadata = AnalyticsMessagesActivityResponseResponseMetadata;
1243
+ export type ListAssignmentsResponseResponseMetadata = AnalyticsMembersActivityResponseResponseMetadata;
1075
1244
  export interface ListAssignmentsResponse {
1076
1245
  /** Always `true` (a failed call raises a typed error instead). */
1077
1246
  ok: boolean;
@@ -1079,7 +1248,7 @@ export interface ListAssignmentsResponse {
1079
1248
  error?: string | undefined;
1080
1249
  role_assignments: ListAssignmentsResponseRoleAssignmentsList;
1081
1250
  /** Pagination metadata. An empty `next_cursor` means the last page. */
1082
- response_metadata?: AnalyticsMessagesActivityResponseResponseMetadata | undefined;
1251
+ response_metadata?: AnalyticsMembersActivityResponseResponseMetadata | undefined;
1083
1252
  }
1084
1253
  export interface ListBarriersRequest {
1085
1254
  /** The maximum number of items to return. Must be between 1 - 1000 both inclusive */
@@ -1089,12 +1258,12 @@ export interface ListBarriersRequest {
1089
1258
  }
1090
1259
  export type ListBarriersResponseBarriersList = Array<unknown>;
1091
1260
  /** Pagination metadata. An empty `next_cursor` means the last page. */
1092
- export type ListBarriersResponseResponseMetadata = AnalyticsMessagesActivityResponseResponseMetadata;
1261
+ export type ListBarriersResponseResponseMetadata = AnalyticsMembersActivityResponseResponseMetadata;
1093
1262
  export interface ListBarriersResponse {
1094
1263
  ok: boolean;
1095
1264
  barriers: ListBarriersResponseBarriersList;
1096
1265
  /** Pagination metadata. An empty `next_cursor` means the last page. */
1097
- response_metadata?: AnalyticsMessagesActivityResponseResponseMetadata | undefined;
1266
+ response_metadata?: AnalyticsMembersActivityResponseResponseMetadata | undefined;
1098
1267
  }
1099
1268
  export interface ListChannelsRequest {
1100
1269
  /** ID of the IDP group to list default channels for. */
@@ -1122,13 +1291,13 @@ export type ListEmojiResponseEmojiMap = {
1122
1291
  [key: string]: unknown | undefined;
1123
1292
  };
1124
1293
  /** Pagination metadata. An empty `next_cursor` means the last page. */
1125
- export type ListEmojiResponseResponseMetadata = AnalyticsMessagesActivityResponseResponseMetadata;
1294
+ export type ListEmojiResponseResponseMetadata = AnalyticsMembersActivityResponseResponseMetadata;
1126
1295
  export interface ListEmojiResponse {
1127
1296
  /** Always `true` (a failed call raises a typed error instead). */
1128
1297
  ok: boolean;
1129
1298
  emoji: ListEmojiResponseEmojiMap;
1130
1299
  /** Pagination metadata. An empty `next_cursor` means the last page. */
1131
- response_metadata?: AnalyticsMessagesActivityResponseResponseMetadata | undefined;
1300
+ response_metadata?: AnalyticsMembersActivityResponseResponseMetadata | undefined;
1132
1301
  }
1133
1302
  /** Comma-separated array of app IDs to get functions for; max 50. */
1134
1303
  export type ListFunctionsRequestAppIdsList = Array<string>;
@@ -1146,13 +1315,13 @@ export interface ListFunctionsRequest {
1146
1315
  }
1147
1316
  export type ListFunctionsResponseFunctionsList = Array<unknown>;
1148
1317
  /** Pagination metadata. An empty `next_cursor` means the last page. */
1149
- export type ListFunctionsResponseResponseMetadata = AnalyticsMessagesActivityResponseResponseMetadata;
1318
+ export type ListFunctionsResponseResponseMetadata = AnalyticsMembersActivityResponseResponseMetadata;
1150
1319
  export interface ListFunctionsResponse {
1151
1320
  /** Always `true` (a failed call raises a typed error instead). */
1152
1321
  ok: boolean;
1153
1322
  functions: ListFunctionsResponseFunctionsList;
1154
1323
  /** Pagination metadata. An empty `next_cursor` means the last page. */
1155
- response_metadata?: AnalyticsMessagesActivityResponseResponseMetadata | undefined;
1324
+ response_metadata?: AnalyticsMembersActivityResponseResponseMetadata | undefined;
1156
1325
  }
1157
1326
  export interface ListGroupsRequest {
1158
1327
  channel_id: string;
@@ -1173,13 +1342,13 @@ export interface ListInviteRequestsRequest {
1173
1342
  limit?: number | undefined;
1174
1343
  }
1175
1344
  /** Pagination metadata. An empty `next_cursor` means the last page. */
1176
- export type ListInviteRequestsResponseResponseMetadata = AnalyticsMessagesActivityResponseResponseMetadata;
1345
+ export type ListInviteRequestsResponseResponseMetadata = AnalyticsMembersActivityResponseResponseMetadata;
1177
1346
  export type ListInviteRequestsResponseInviteRequestsList = Array<unknown>;
1178
1347
  export interface ListInviteRequestsResponse {
1179
1348
  /** Always `true` (a failed call raises a typed error instead). */
1180
1349
  ok: boolean;
1181
1350
  /** Pagination metadata. An empty `next_cursor` means the last page. */
1182
- response_metadata?: AnalyticsMessagesActivityResponseResponseMetadata | undefined;
1351
+ response_metadata?: AnalyticsMembersActivityResponseResponseMetadata | undefined;
1183
1352
  invite_requests: ListInviteRequestsResponseInviteRequestsList;
1184
1353
  }
1185
1354
  export interface ListInviteRequestsApprovedRequest {
@@ -1191,13 +1360,13 @@ export interface ListInviteRequestsApprovedRequest {
1191
1360
  limit?: number | undefined;
1192
1361
  }
1193
1362
  /** Pagination metadata. An empty `next_cursor` means the last page. */
1194
- export type ListInviteRequestsApprovedResponseResponseMetadata = AnalyticsMessagesActivityResponseResponseMetadata;
1363
+ export type ListInviteRequestsApprovedResponseResponseMetadata = AnalyticsMembersActivityResponseResponseMetadata;
1195
1364
  export type ListInviteRequestsApprovedResponseApprovedRequestsList = Array<unknown>;
1196
1365
  export interface ListInviteRequestsApprovedResponse {
1197
1366
  /** Always `true` (a failed call raises a typed error instead). */
1198
1367
  ok: boolean;
1199
1368
  /** Pagination metadata. An empty `next_cursor` means the last page. */
1200
- response_metadata?: AnalyticsMessagesActivityResponseResponseMetadata | undefined;
1369
+ response_metadata?: AnalyticsMembersActivityResponseResponseMetadata | undefined;
1201
1370
  approved_requests: ListInviteRequestsApprovedResponseApprovedRequestsList;
1202
1371
  }
1203
1372
  export interface ListInviteRequestsDeniedRequest {
@@ -1209,13 +1378,13 @@ export interface ListInviteRequestsDeniedRequest {
1209
1378
  limit?: number | undefined;
1210
1379
  }
1211
1380
  /** Pagination metadata. An empty `next_cursor` means the last page. */
1212
- export type ListInviteRequestsDeniedResponseResponseMetadata = AnalyticsMessagesActivityResponseResponseMetadata;
1381
+ export type ListInviteRequestsDeniedResponseResponseMetadata = AnalyticsMembersActivityResponseResponseMetadata;
1213
1382
  export type ListInviteRequestsDeniedResponseDeniedRequestsList = Array<unknown>;
1214
1383
  export interface ListInviteRequestsDeniedResponse {
1215
1384
  /** Always `true` (a failed call raises a typed error instead). */
1216
1385
  ok: boolean;
1217
1386
  /** Pagination metadata. An empty `next_cursor` means the last page. */
1218
- response_metadata?: AnalyticsMessagesActivityResponseResponseMetadata | undefined;
1387
+ response_metadata?: AnalyticsMembersActivityResponseResponseMetadata | undefined;
1219
1388
  denied_requests: ListInviteRequestsDeniedResponseDeniedRequestsList;
1220
1389
  }
1221
1390
  export interface ListOriginalConnectedChannelInfoRequest {
@@ -1229,7 +1398,7 @@ export interface ListOriginalConnectedChannelInfoRequest {
1229
1398
  cursor?: string | undefined;
1230
1399
  }
1231
1400
  /** Pagination metadata. An empty `next_cursor` means the last page. */
1232
- export type ListOriginalConnectedChannelInfoResponseResponseMetadata = AnalyticsMessagesActivityResponseResponseMetadata;
1401
+ export type ListOriginalConnectedChannelInfoResponseResponseMetadata = AnalyticsMembersActivityResponseResponseMetadata;
1233
1402
  export type ListOriginalConnectedChannelInfoResponseChannelsItemInternalTeamIdsList = Array<string>;
1234
1403
  export interface ListOriginalConnectedChannelInfoResponseChannelsItem {
1235
1404
  id: string;
@@ -1242,7 +1411,7 @@ export interface ListOriginalConnectedChannelInfoResponse {
1242
1411
  /** Always `true` (a failed call raises a typed error instead). */
1243
1412
  ok: boolean;
1244
1413
  /** Pagination metadata. An empty `next_cursor` means the last page. */
1245
- response_metadata?: AnalyticsMessagesActivityResponseResponseMetadata | undefined;
1414
+ response_metadata?: AnalyticsMembersActivityResponseResponseMetadata | undefined;
1246
1415
  channels: ListOriginalConnectedChannelInfoResponseChannelsList;
1247
1416
  }
1248
1417
  /** Only return skills in this category. */
@@ -1317,13 +1486,13 @@ export interface ListSlackbotSkillsResponseSkillsItem {
1317
1486
  }
1318
1487
  export type ListSlackbotSkillsResponseSkillsList = Array<ListSlackbotSkillsResponseSkillsItem>;
1319
1488
  /** Pagination metadata. An empty `next_cursor` means the last page. */
1320
- export type ListSlackbotSkillsResponseResponseMetadata = AnalyticsMessagesActivityResponseResponseMetadata;
1489
+ export type ListSlackbotSkillsResponseResponseMetadata = AnalyticsMembersActivityResponseResponseMetadata;
1321
1490
  export interface ListSlackbotSkillsResponse {
1322
1491
  /** Always `true` (a failed call raises a typed error instead). */
1323
1492
  ok: boolean;
1324
1493
  skills: ListSlackbotSkillsResponseSkillsList;
1325
1494
  /** Pagination metadata. An empty `next_cursor` means the last page. */
1326
- response_metadata?: AnalyticsMessagesActivityResponseResponseMetadata | undefined;
1495
+ response_metadata?: AnalyticsMembersActivityResponseResponseMetadata | undefined;
1327
1496
  }
1328
1497
  export interface ListTeamsRequest {
1329
1498
  /** The maximum number of items to return. Must be a positive integer no larger than 1000. */
@@ -1350,13 +1519,13 @@ export interface ListTeamsResponseTeamsItem {
1350
1519
  }
1351
1520
  export type ListTeamsResponseTeamsList = Array<ListTeamsResponseTeamsItem>;
1352
1521
  /** Pagination metadata. An empty `next_cursor` means the last page. */
1353
- export type ListTeamsResponseResponseMetadata = AnalyticsMessagesActivityResponseResponseMetadata;
1522
+ export type ListTeamsResponseResponseMetadata = AnalyticsMembersActivityResponseResponseMetadata;
1354
1523
  export interface ListTeamsResponse {
1355
1524
  /** Always `true` (a failed call raises a typed error instead). */
1356
1525
  ok: boolean;
1357
1526
  teams: ListTeamsResponseTeamsList;
1358
1527
  /** Pagination metadata. An empty `next_cursor` means the last page. */
1359
- response_metadata?: AnalyticsMessagesActivityResponseResponseMetadata | undefined;
1528
+ response_metadata?: AnalyticsMembersActivityResponseResponseMetadata | undefined;
1360
1529
  }
1361
1530
  export interface ListTeamsAdminsRequest {
1362
1531
  /** The maximum number of items to return. */
@@ -1367,13 +1536,13 @@ export interface ListTeamsAdminsRequest {
1367
1536
  }
1368
1537
  export type ListTeamsAdminsResponseAdminIdsList = Array<string>;
1369
1538
  /** Pagination metadata. An empty `next_cursor` means the last page. */
1370
- export type ListTeamsAdminsResponseResponseMetadata = AnalyticsMessagesActivityResponseResponseMetadata;
1539
+ export type ListTeamsAdminsResponseResponseMetadata = AnalyticsMembersActivityResponseResponseMetadata;
1371
1540
  export interface ListTeamsAdminsResponse {
1372
1541
  /** Always `true` (a failed call raises a typed error instead). */
1373
1542
  ok: boolean;
1374
1543
  admin_ids: ListTeamsAdminsResponseAdminIdsList;
1375
1544
  /** Pagination metadata. An empty `next_cursor` means the last page. */
1376
- response_metadata?: AnalyticsMessagesActivityResponseResponseMetadata | undefined;
1545
+ response_metadata?: AnalyticsMembersActivityResponseResponseMetadata | undefined;
1377
1546
  }
1378
1547
  export interface ListTeamsOwnersRequest {
1379
1548
  team_id: string;
@@ -1384,13 +1553,13 @@ export interface ListTeamsOwnersRequest {
1384
1553
  }
1385
1554
  export type ListTeamsOwnersResponseOwnerIdsList = Array<string>;
1386
1555
  /** Pagination metadata. An empty `next_cursor` means the last page. */
1387
- export type ListTeamsOwnersResponseResponseMetadata = AnalyticsMessagesActivityResponseResponseMetadata;
1556
+ export type ListTeamsOwnersResponseResponseMetadata = AnalyticsMembersActivityResponseResponseMetadata;
1388
1557
  export interface ListTeamsOwnersResponse {
1389
1558
  /** Always `true` (a failed call raises a typed error instead). */
1390
1559
  ok: boolean;
1391
1560
  owner_ids: ListTeamsOwnersResponseOwnerIdsList;
1392
1561
  /** Pagination metadata. An empty `next_cursor` means the last page. */
1393
- response_metadata?: AnalyticsMessagesActivityResponseResponseMetadata | undefined;
1562
+ response_metadata?: AnalyticsMembersActivityResponseResponseMetadata | undefined;
1394
1563
  }
1395
1564
  export interface ListUsersRequest {
1396
1565
  /** The ID (T1234) of a workspace. Filters results to just the specified workspace. */
@@ -1456,13 +1625,13 @@ export interface ListUsersResponseUsersItem {
1456
1625
  }
1457
1626
  export type ListUsersResponseUsersList = Array<ListUsersResponseUsersItem>;
1458
1627
  /** Pagination metadata. An empty `next_cursor` means the last page. */
1459
- export type ListUsersResponseResponseMetadata = AnalyticsMessagesActivityResponseResponseMetadata;
1628
+ export type ListUsersResponseResponseMetadata = AnalyticsMembersActivityResponseResponseMetadata;
1460
1629
  export interface ListUsersResponse {
1461
1630
  /** Always `true` (a failed call raises a typed error instead). */
1462
1631
  ok: boolean;
1463
1632
  users: ListUsersResponseUsersList;
1464
1633
  /** Pagination metadata. An empty `next_cursor` means the last page. */
1465
- response_metadata?: AnalyticsMessagesActivityResponseResponseMetadata | undefined;
1634
+ response_metadata?: AnalyticsMembersActivityResponseResponseMetadata | undefined;
1466
1635
  }
1467
1636
  export interface ListUsersSessionRequest {
1468
1637
  /** The ID of the workspace you'd like active sessions for. If you pass a `team_id`, you'll need to pass a `user_id` as well. */
@@ -1475,7 +1644,7 @@ export interface ListUsersSessionRequest {
1475
1644
  cursor?: string | undefined;
1476
1645
  }
1477
1646
  /** Pagination metadata. An empty `next_cursor` means the last page. */
1478
- export type ListUsersSessionResponseResponseMetadata = AnalyticsMessagesActivityResponseResponseMetadata;
1647
+ export type ListUsersSessionResponseResponseMetadata = AnalyticsMembersActivityResponseResponseMetadata;
1479
1648
  export interface ListUsersSessionResponseActiveSessionsItemRecent {
1480
1649
  /** Type of device */
1481
1650
  device_hardware?: string | undefined;
@@ -1516,7 +1685,7 @@ export interface ListUsersSessionResponse {
1516
1685
  /** Always `true` (a failed call raises a typed error instead). */
1517
1686
  ok: boolean;
1518
1687
  /** Pagination metadata. An empty `next_cursor` means the last page. */
1519
- response_metadata?: AnalyticsMessagesActivityResponseResponseMetadata | undefined;
1688
+ response_metadata?: AnalyticsMembersActivityResponseResponseMetadata | undefined;
1520
1689
  /** Active user session data */
1521
1690
  active_sessions: ListUsersSessionResponseActiveSessionsList;
1522
1691
  }
@@ -1561,13 +1730,13 @@ export interface LookupConversationRequest {
1561
1730
  }
1562
1731
  export type LookupConversationResponseChannelIdsList = Array<string>;
1563
1732
  /** Pagination metadata. An empty `next_cursor` means the last page. */
1564
- export type LookupConversationResponseResponseMetadata = AnalyticsMessagesActivityResponseResponseMetadata;
1733
+ export type LookupConversationResponseResponseMetadata = AnalyticsMembersActivityResponseResponseMetadata;
1565
1734
  export interface LookupConversationResponse {
1566
1735
  /** Always `true` (a failed call raises a typed error instead). */
1567
1736
  ok: boolean;
1568
1737
  channel_ids: LookupConversationResponseChannelIdsList;
1569
1738
  /** Pagination metadata. An empty `next_cursor` means the last page. */
1570
- response_metadata?: AnalyticsMessagesActivityResponseResponseMetadata | undefined;
1739
+ response_metadata?: AnalyticsMembersActivityResponseResponseMetadata | undefined;
1571
1740
  }
1572
1741
  /** An array of function IDs to get permissions for */
1573
1742
  export type LookupFunctionsPermissionsRequestFunctionIdsList = Array<string>;
@@ -1896,7 +2065,7 @@ export interface SearchConversationRequest {
1896
2065
  }
1897
2066
  export type SearchConversationResponseConversationsList = Array<string>;
1898
2067
  /** Pagination metadata. An empty `next_cursor` means the last page. */
1899
- export type SearchConversationResponseResponseMetadata = AnalyticsMessagesActivityResponseResponseMetadata;
2068
+ export type SearchConversationResponseResponseMetadata = AnalyticsMembersActivityResponseResponseMetadata;
1900
2069
  export interface SearchConversationResponse {
1901
2070
  /** Always `true` (a failed call raises a typed error instead). */
1902
2071
  ok: boolean;
@@ -1908,7 +2077,7 @@ export interface SearchConversationResponse {
1908
2077
  /** A string representation of the error type */
1909
2078
  error?: string | undefined;
1910
2079
  /** Pagination metadata. An empty `next_cursor` means the last page. */
1911
- response_metadata?: AnalyticsMessagesActivityResponseResponseMetadata | undefined;
2080
+ response_metadata?: AnalyticsMembersActivityResponseResponseMetadata | undefined;
1912
2081
  }
1913
2082
  /** Only include workflows where all of the provided user IDs are a manager/collaborator of that workflow */
1914
2083
  export type SearchWorkflowRequestCollaboratorIdsList = Array<string>;
@@ -1954,13 +2123,13 @@ export interface SearchWorkflowRequest {
1954
2123
  }
1955
2124
  export type SearchWorkflowResponseWorkflowsList = Array<unknown>;
1956
2125
  /** Pagination metadata. An empty `next_cursor` means the last page. */
1957
- export type SearchWorkflowResponseResponseMetadata = AnalyticsMessagesActivityResponseResponseMetadata;
2126
+ export type SearchWorkflowResponseResponseMetadata = AnalyticsMembersActivityResponseResponseMetadata;
1958
2127
  export interface SearchWorkflowResponse {
1959
2128
  /** Always `true` (a failed call raises a typed error instead). */
1960
2129
  ok: boolean;
1961
2130
  workflows: SearchWorkflowResponseWorkflowsList;
1962
2131
  /** Pagination metadata. An empty `next_cursor` means the last page. */
1963
- response_metadata?: AnalyticsMessagesActivityResponseResponseMetadata | undefined;
2132
+ response_metadata?: AnalyticsMembersActivityResponseResponseMetadata | undefined;
1964
2133
  /** The total number of workflows that match this search criteria */
1965
2134
  total_found: number;
1966
2135
  }
@@ -2400,19 +2569,19 @@ export interface UploadUsersResponse {
2400
2569
  invalid_users?: UploadUsersResponseInvalidUsersList | undefined;
2401
2570
  }
2402
2571
  export type AddAliasError = SlackOpError;
2403
- /** Add an emoji alias. Required scopes -- user: `admin.teams:write` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `emoji_limit_reached` -- Unable to add emoji due to limit reached. - `error_bad_name_i18n` -- Value passed for `name` was invalid. - `error_invalid_alias` -- Value passed for `alias_for` does not exist. - `error_missing_name` -- Value passed for `name` is missing or empty. - `error_name_taken` -- Value passed for `name` already exists. - `error_name_taken_i18n` -- The name has already been taken by another emoji, in the international set. Emoji must have unique names. - `failed_to_alias_emoji` -- Failed to alias the specified emoji. - `feature_not_enabled` -- The Admin APIs feature is not enabled for this team. - `no_alias_selected` -- Value passed for `alias_for` was invalid. - `not_an_admin` -- This method is only accessible by org owners and Admins. See https://docs.slack.dev/reference/methods/admin.emoji.addAlias */
2572
+ /** Add an emoji alias. Required scopes -- user: `admin.teams:write` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `emoji_limit_reached` -- Unable to add emoji due to limit reached. - `error_bad_name_i18n` -- Value passed for `name` was invalid. - `error_invalid_alias` -- Value passed for `alias_for` does not exist. - `error_missing_name` -- Value passed for `name` is missing or empty. - `error_name_taken` -- Value passed for `name` already exists. - `error_name_taken_i18n` -- The name has already been taken by another emoji, in the international set. Emoji must have unique names. - `failed_to_alias_emoji` -- Failed to alias the specified emoji. - `feature_not_enabled` -- The Admin APIs feature is not enabled for this team. - `no_alias_selected` -- Value passed for `alias_for` was invalid. - `not_an_enterprise` -- The workspace is not an Enterprise organization, or an Enterprise+ workspace with Admin API access. - `not_an_admin` -- This method is only accessible by org owners and Admins. See https://docs.slack.dev/reference/methods/admin.emoji.addAlias */
2404
2573
  export declare const addAlias: API.OperationMethod<AddAliasRequest, AddAliasResponse, AddAliasError, SlackOpContext>;
2405
2574
  export type AddAppsPermissionsError = SlackOpError;
2406
2575
  /** Grant permission for entities to access an app that has its permission type set to named_entities Required scopes -- user: `admin.apps:write` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `invalid_auth` -- Invalid authorization token - `access_denied` -- This actor does not have access to the permissions on this resource. - `invalid_permission_type` -- This app requires permission_type to be set as named_entities before adding users. - `no_valid_named_entities` -- None of the provided named entities were valid - `too_many_named_entities` -- Too many named entities passed into the app permissions setting. - `app_not_found` -- This app does not exist. - `not_an_enterprise` -- This feature is only available on Enterprise Grid plans. - `app_acl_not_found` -- This app does not have an ACL. - `internal_error` -- Internal error - `user_not_found` -- Value passed for `user_ids` was invalid. - `invalid_entities` -- Invalid entities. - `invalid_channel_restriction_mode` -- Cannot add channels when channel_restriction_mode is all_channels. Use set to configure a restriction mode first. - `channel_not_found` -- One or more channel IDs are not valid, are not in this organization, or name a private channel the caller is neither a member of nor permitted to manage. - `failed_to_update_channels` -- An error occurred while updating the channel restriction list. - `restricted_action` -- User does not have permission to perform this action. See https://docs.slack.dev/reference/methods/admin.apps.permissions.add */
2407
2576
  export declare const addAppsPermissions: API.OperationMethod<AddAppsPermissionsRequest, AddAppsPermissionsResponse, AddAppsPermissionsError, SlackOpContext>;
2408
2577
  export type AddAssignmentsError = SlackOpError;
2409
- /** Adds members to the specified role with the specified scopes Required scopes -- user: `admin.roles:write` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `cannot_modify_role_admin` -- The user does not have permission to modify the admin role. - `failed_for_some_entities` -- At least one role scope ID was invalid - `failed_for_some_users` -- At least one user ID was invalid - `failed_for_some_users_and_entities` -- At least one role scope ID was invalid - `feature_not_enabled` -- This API is currently not enabled. - `invalid_actor` -- This API is only enabled for the Admins/Owners. - `invalid_role_id` -- The role type passed does not exist. - `no_valid_entities` -- None of the entities passed were valid. - `no_valid_users` -- None of the users passed were valid. - `too_many_entities` -- More than 10 role scopes were passed. - `too_many_users` -- More than 10 users were passed. See https://docs.slack.dev/reference/methods/admin.roles.addAssignments */
2578
+ /** Adds members to the specified role with the specified scopes Required scopes -- user: `admin.roles:write` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `cannot_modify_role_admin` -- The user does not have permission to modify the admin role. - `failed_for_some_entities` -- At least one role scope ID was invalid - `failed_for_some_users` -- At least one user ID was invalid - `failed_for_some_users_and_entities` -- At least one role scope ID was invalid - `feature_not_enabled` -- This API is currently not enabled. - `invalid_actor` -- This API is only enabled for the Admins/Owners. - `invalid_role_id` -- The role type passed does not exist. - `no_valid_entities` -- None of the entities passed were valid. - `no_valid_users` -- None of the users passed were valid. - `too_many_entities` -- More than 10 role scopes were passed. - `too_many_users` -- More than 10 users were passed. - `not_permitted` -- Users cannot be assigned directly to a permission set. Assign a user group with admin.roles.addUsergroups instead. See https://docs.slack.dev/reference/methods/admin.roles.addAssignments */
2410
2579
  export declare const addAssignments: API.OperationMethod<AddAssignmentsRequest, AddAssignmentsResponse, AddAssignmentsError, SlackOpContext>;
2411
2580
  export type AddChannelsError = SlackOpError;
2412
2581
  /** Add up to one hundred default channels to an IDP group. Required scopes -- user: `admin.usergroups:write` Rate limit tier: 1 Method-specific errors (the `error` slug on the SlackError): - `channel_not_found` -- At least one of the provided channel IDs could not be found, or one of the channels has a type that is not supported. - `feature_not_enabled` -- The Admin APIs feature is not enabled for this workspace. - `invalid_auth` -- The workspace specified is not part of this organization. - `invalid_channels_limit` -- The number of channel IDs passed in is larger than 100. - `not_an_admin` -- The calling user cannot update the specified usergroup. - `not_an_enterprise` -- The token passed in does not belong to an Enterprise organization. - `team_not_found` -- The workspace provided was not found. - `user_channel_limit_exceeded` -- Adding these channels would cause one or more members to exceed their channel limit. - `usergroup_not_found` -- The IDP group provided was not found. - `usergroup_not_linked_to_team` -- The IDP group provided is not linked to the workspace. - `usergroup_team_not_provisioned` -- The IDP group provided is linked to a workspace that has auto-provision disabled. See https://docs.slack.dev/reference/methods/admin.usergroups.addChannels */
2413
2582
  export declare const addChannels: API.OperationMethod<AddChannelsRequest, AddChannelsResponse, AddChannelsError, SlackOpContext>;
2414
2583
  export type AddEmojiError = SlackOpError;
2415
- /** Add an emoji. Required scopes -- user: `admin.teams:write` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `emoji_limit_reached` -- Unable to add emoji due to limit reached. - `error_bad_format` -- Invalid image data was provided. - `error_bad_name_i18n` -- Value passed for `name` was invalid. - `error_bad_upload` -- There was an error uploading the image. - `error_bad_wide` -- The image width or height is too large. - `error_missing_name` -- Value passed for `name` is missing or empty. - `error_name_taken` -- Value passed for `name` already exists. - `error_name_taken_i18n` -- Value passed for `name` already exists. - `error_no_image` -- Empty image data was provided. - `error_too_big` -- The image file size is too large. - `error_lower_case_names_only` -- Capital letters are not allowed in emoji names. - `failed_to_add_emoji` -- Failed to add the specified emoji. - `failed_to_fetch_active_team` -- There are no active teams on the org and we need at least one. - `feature_not_enabled` -- The Admin APIs feature is not enabled for this team. - `no_image_uploaded` -- No image data was provided. - `not_an_admin` -- This method is only accessible by org owners and Admins. - `ratelimited` -- Too many api calls in a time period. - `resized_but_still_too_large` -- The image is still too large after resizing. - `too_many_frames` -- The image has too many frames. See https://docs.slack.dev/reference/methods/admin.emoji.add */
2584
+ /** Add an emoji. Required scopes -- user: `admin.teams:write` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `emoji_limit_reached` -- Unable to add emoji due to limit reached. - `error_bad_format` -- Invalid image data was provided. - `error_bad_name_i18n` -- Value passed for `name` was invalid. - `error_bad_upload` -- There was an error uploading the image. - `error_bad_wide` -- The image width or height is too large. - `error_missing_name` -- Value passed for `name` is missing or empty. - `error_name_taken` -- Value passed for `name` already exists. - `error_name_taken_i18n` -- Value passed for `name` already exists. - `error_no_image` -- Empty image data was provided. - `error_too_big` -- The image file size is too large. - `error_lower_case_names_only` -- Capital letters are not allowed in emoji names. - `failed_to_add_emoji` -- Failed to add the specified emoji. - `failed_to_fetch_active_team` -- There are no active teams on the org and we need at least one. - `feature_not_enabled` -- The Admin APIs feature is not enabled for this team. - `no_image_uploaded` -- No image data was provided. - `not_an_enterprise` -- The workspace is not an Enterprise organization, or an Enterprise+ workspace with Admin API access. - `not_an_admin` -- This method is only accessible by org owners and Admins. - `ratelimited` -- Too many api calls in a time period. - `resized_but_still_too_large` -- The image is still too large after resizing. - `too_many_frames` -- The image has too many frames. See https://docs.slack.dev/reference/methods/admin.emoji.add */
2416
2585
  export declare const addEmoji: API.OperationMethod<AddEmojiRequest, AddEmojiResponse, AddEmojiError, SlackOpContext>;
2417
2586
  export type AddGroupError = SlackOpError;
2418
2587
  /** Add an allowlist of IDP groups for accessing a channel Required scopes -- user: `admin.conversations:write` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `cannot_add_more_channels_to_group` -- The maximum number of channels have already been linked to the group. - `cannot_add_more_groups_to_channel` -- The maximum number of groups have already been linked to the channel. - `channel_is_not_private` -- The channel is a public channel, a multi-party direct message, a direct message, or is externally-shared. - `channel_not_found` -- `channel_id` can't be found. - `default_channel_restricted` -- The channel is a default channel on the workspace. - `feature_not_enabled` -- Feature not enabled - `group_already_linked_to_channel` -- The IDP group is already linked to the channel - `group_must_not_be_empty` -- The IDP group is currently empty. - `group_not_found` -- `group_id` can't be found. - `invalid_auth` -- Token does not belong to enterprise or team id passed in not part of this enterprise - `invalid_channel` -- The channel can't be linked to an IDP group (i.e., it's a public channel or external shared channel). - `invalid_channel_type` -- The channel is a public channel, a multi-party direct message, a direct message, or is externally-shared. - `no_channel_memberships` -- The channel has no members. - `not_an_admin` -- This token does not belong to an Org Admin or Owner. - `team_not_found` -- `team_id` can't be found. - `unable_to_link_idp_group_and_channel` -- The IDP group and the channel cannot be linked. See https://docs.slack.dev/reference/methods/admin.conversations.restrictAccess.addGroup */
@@ -2426,12 +2595,24 @@ export declare const addUsers: API.OperationMethod<AddUsersRequest, AddUsersResp
2426
2595
  export type AddWorkflowsCollaboratorError = SlackOpError;
2427
2596
  /** Add collaborators to workflows within the team or enterprise Required scopes -- user: `admin.workflows:write` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `not_allowed` -- The user is not allowed to access this API method - `error_adding_collaborators` -- There were one or more errors adding workflow collaborators See https://docs.slack.dev/reference/methods/admin.workflows.collaborators.add */
2428
2597
  export declare const addWorkflowsCollaborator: API.OperationMethod<AddWorkflowsCollaboratorRequest, AddWorkflowsCollaboratorResponse, AddWorkflowsCollaboratorError, SlackOpContext>;
2598
+ export type AnalyticsMembersActivityError = SlackOpError;
2599
+ /** Retrieves activity metrics for each member of an organization or workspace for one day. Returns the same metrics as the member analytics dashboard, sorted by user ID. Required scopes -- user: `admin.analytics:read` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `invalid_arguments` -- Required arguments either were not provided or contain invalid values, including a `date` that is not a real calendar day. - `invalid_cursor` -- The `cursor` value is not valid. - `not_an_admin` -- The token's user is not an owner or admin, and does not have permission to access the analytics API. - `feature_not_available` -- The team's plan does not include analytics API access. - `member_analytics_disabled` -- Member analytics are disabled for the team. - `team_not_on_org` -- `team_id` is not a workspace the token can access: it is not part of the token's organization, or the token is workspace-level and `team_id` is another workspace. - `date_before_created_date` -- `date` is before the team or organization was created. - `data_not_available_for_date` -- Analytics are not available for `date`. Call the method without `date` and use `available_date_range` from the response to find the supported days. - `analytics_unavailable` -- Analytics could not be found for the team. - `admin_analytics_disabled` -- Analytics are temporarily unavailable. Wait and try again. - `incomplete_analytics` -- The full set of results could not be retrieved. Wait and try again. - `rate_limited` -- The organization has made too many calls to this method in a short amount of time. Wait and try again. See https://docs.slack.dev/reference/methods/admin.analytics.members.activity */
2600
+ export declare const analyticsMembersActivity: API.OperationMethod<AnalyticsMembersActivityRequest, AnalyticsMembersActivityResponse, AnalyticsMembersActivityError, SlackOpContext>;
2601
+ export type AnalyticsMembersMetadataError = SlackOpError;
2602
+ /** Retrieves profile metadata for each member of an organization or workspace. Returns the same profile fields as the member analytics dashboard, sorted by user ID, as the companion of `admin.analytics.members.activity`. Required scopes -- user: `admin.analytics:read` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `invalid_arguments` -- Required arguments either were not provided or contain invalid values, including an `include_deactivated_since` that is not a real day or is in the future. - `invalid_cursor` -- The `cursor` value is not valid. - `not_an_admin` -- The token's user is not an owner or admin, and does not have permission to access the analytics API. - `feature_not_available` -- The team's plan does not include analytics API access. - `member_analytics_disabled` -- Member analytics are disabled for the team. - `team_not_on_org` -- `team_id` is not a workspace the token can access: it is not part of the token's organization, or the token is workspace-level and `team_id` is another workspace. - `too_many_search_results` -- The search returned too many members. Narrow the `query`. - `incomplete_analytics` -- The full set of results could not be retrieved. Wait and try again. - `admin_analytics_disabled` -- Analytics are temporarily unavailable. Wait and try again. - `rate_limited` -- The organization has made too many calls to this method in a short amount of time. Wait and try again. See https://docs.slack.dev/reference/methods/admin.analytics.members.metadata */
2603
+ export declare const analyticsMembersMetadata: API.OperationMethod<AnalyticsMembersMetadataRequest, AnalyticsMembersMetadataResponse, AnalyticsMembersMetadataError, SlackOpContext>;
2429
2604
  export type AnalyticsMessagesActivityError = SlackOpError;
2430
- /** Retrieves activity metrics for messages from a given channel, created between oldest_ts and latest_ts Required scopes -- user: `admin.analytics:read` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `channel_not_found` -- The specified channel was not found. - `invalid_arguments` -- Required arguments either were not provided or contain invalid values. - `restricted_action` -- The token does not have permission to access this resource, or the channel is not public and the organization has disabled private channel analytics. - `not_an_enterprise` -- The user token does not belong to an enterprise. - `restricted_plan_level` -- The enterprise plan level does not have access to this feature. - `rate_limited` -- Too many requests in a short amount of time. See https://docs.slack.dev/reference/methods/admin.analytics.messages.activity */
2605
+ /** Retrieves activity metrics for messages from a given channel, created between oldest_ts and latest_ts Required scopes -- user: `admin.analytics:read` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `channel_not_found` -- The specified channel was not found. - `invalid_arguments` -- Required arguments either were not provided or contain invalid values. - `restricted_action` -- The token does not have permission to access this resource, or the channel is not public and the organization has disabled private channel analytics. - `not_an_enterprise` -- The user token does not belong to an enterprise. - `restricted_plan_level` -- The enterprise plan level does not have access to this feature. - `rate_limited` -- Too many requests in a short amount of time. - `not_an_admin` -- This method is only accessible by org owners and Admins. - `two_factor_setup_required` -- Two factor authentication needs to be set up. See https://docs.slack.dev/reference/methods/admin.analytics.messages.activity */
2431
2606
  export declare const analyticsMessagesActivity: API.OperationMethod<AnalyticsMessagesActivityRequest, AnalyticsMessagesActivityResponse, AnalyticsMessagesActivityError, SlackOpContext>;
2432
2607
  export type AnalyticsMessagesMetadataError = SlackOpError;
2433
- /** Retrieves metadata for a list of messages from a given channel. Required scopes -- user: `admin.analytics:read` Rate limit tier: 5 Method-specific errors (the `error` slug on the SlackError): - `channel_not_found` -- The specified channel was not found - `invalid_arguments` -- Required arguments either were not provided or contain invalid values. - `not_an_enterprise` -- The user token does not belong to an enterprise. - `analytics_unavailable` -- We were unable to find analytics for you. - `admin_analytics_disabled` -- We're having issues returning your analytics. Please wait and try again. - `restricted_plan_level` -- This feature is not available for your current product plan. - `different_team_owns_message_metadata_for_channel` -- Message metadata must be accessed by an actor from the same team that owns the channel. This may be the org or a specific enterprise workspace. - `rate_limited` -- Too many requests in a short amount of time. - `restricted_action` -- The token does not have permission to access this resource, or the channel is not public and the organization has disabled private channel analytics. See https://docs.slack.dev/reference/methods/admin.analytics.messages.metadata */
2608
+ /** Retrieves metadata for a list of messages from a given channel. Required scopes -- user: `admin.analytics:read` Rate limit tier: 5 Method-specific errors (the `error` slug on the SlackError): - `channel_not_found` -- The specified channel was not found - `invalid_arguments` -- Required arguments either were not provided or contain invalid values. - `not_an_enterprise` -- The user token does not belong to an enterprise. - `analytics_unavailable` -- We were unable to find analytics for you. - `admin_analytics_disabled` -- We're having issues returning your analytics. Please wait and try again. - `restricted_plan_level` -- This feature is not available for your current product plan. - `different_team_owns_message_metadata_for_channel` -- Message metadata must be accessed by an actor from the same team that owns the channel. This may be the org or a specific enterprise workspace. - `rate_limited` -- Too many requests in a short amount of time. - `restricted_action` -- The token does not have permission to access this resource, or the channel is not public and the organization has disabled private channel analytics. - `not_an_admin` -- This method is only accessible by org owners and Admins. - `two_factor_setup_required` -- Two factor authentication needs to be set up. See https://docs.slack.dev/reference/methods/admin.analytics.messages.metadata */
2434
2609
  export declare const analyticsMessagesMetadata: API.PaginatedOperationMethod<AnalyticsMessagesMetadataRequest, AnalyticsMessagesMetadataResponse, AnalyticsMessagesMetadataError, SlackOpContext, AnalyticsMessagesMetadataResponseMessagesItem>;
2610
+ export type AnalyticsSlackbotSkillsError = SlackOpError;
2611
+ /** Retrieve per-user Slackbot skill usage for an Enterprise organization on a single date, returned as paginated JSON. Required scopes -- user: `admin.analytics:read` Rate limit tier: 3 Method-specific errors (the `error` slug on the SlackError): - `feature_not_available` -- Slackbot analytics is not available for this organization. - `invalid_arguments` -- Required arguments either were not provided or contain invalid values, including a `date` that is not a real calendar day. - `invalid_cursor` -- Value passed for `cursor` was not valid, or was issued for a different `date`. - `date_before_created_date` -- `date` is before the organization was created. - `data_not_available_for_date` -- Analytics are not available for `date`. Call the method without `date` and use `available_date_range` from the response to find the supported dates. - `not_an_enterprise` -- The token does not belong to an Enterprise organization. - `restricted_plan_level` -- The enterprise plan level does not have access to this feature. - `restricted_action` -- The token does not have permission to access Slackbot analytics. - `internal_error` -- Something went wrong on our end, please try again. See https://docs.slack.dev/reference/methods/admin.analytics.slackbot.skills */
2612
+ export declare const analyticsSlackbotSkills: API.PaginatedOperationMethod<AnalyticsSlackbotSkillsRequest, AnalyticsSlackbotSkillsResponse, AnalyticsSlackbotSkillsError, SlackOpContext, AnalyticsSlackbotSkillsResponseSkillUsageItem>;
2613
+ export type AnalyticsSlackbotToolsError = SlackOpError;
2614
+ /** Retrieve per-user Slackbot tool usage for an Enterprise organization on a single date, returned as paginated JSON. Required scopes -- user: `admin.analytics:read` Rate limit tier: 3 Method-specific errors (the `error` slug on the SlackError): - `feature_not_available` -- Slackbot analytics is not available for this organization. - `invalid_arguments` -- Required arguments either were not provided or contain invalid values, including a `date` that is not a real calendar day. - `invalid_cursor` -- Value passed for `cursor` was not valid, or was issued for a different `date`. - `date_before_created_date` -- `date` is before the organization was created. - `data_not_available_for_date` -- Analytics are not available for `date`. Call the method without `date` and use `available_date_range` from the response to find the supported dates. - `not_an_enterprise` -- The token does not belong to an Enterprise organization. - `restricted_plan_level` -- The enterprise plan level does not have access to this feature. - `restricted_action` -- The token does not have permission to access Slackbot analytics. - `internal_error` -- Something went wrong on our end, please try again. See https://docs.slack.dev/reference/methods/admin.analytics.slackbot.tools */
2615
+ export declare const analyticsSlackbotTools: API.PaginatedOperationMethod<AnalyticsSlackbotToolsRequest, AnalyticsSlackbotToolsResponse, AnalyticsSlackbotToolsError, SlackOpContext, AnalyticsSlackbotToolsResponseToolUsageItem>;
2435
2616
  export type ApproveAppError = SlackOpError;
2436
2617
  /** Approve an app for installation on a workspace. Required scopes -- user: `admin.apps:write` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `app_management_app_not_installed_on_org` -- The app management app must be installed on the org. - `app_not_eligible_for_auto_install` -- The app does not have the required scope to be eligible for auto-install rule creation. - `app_restricted_org_wide` -- The app is already restricted org wide. - `auto_install_rule_creation_failed` -- The app was approved successfully, but the auto-install AAA rule could not be created. Please create the rule manually. - `custom_integration_not_allowed_at_enterprise` -- Returned when the install request is for custom integration app. - `feature_not_enabled` -- Returned when the Admin APIs feature is not enabled for this team. - `invalid_request_id` -- The `request_id` passed is invalid. - `invalid_app_id` -- The `app_id` passed is invalid. - `org_resolution_required` -- The `team_id` is in an Enterprise org while `app_id` is certified. - `invalid_scopes` -- Some of the provided scopes do not exist. - `not_allowed_to_create_automation_rule` -- The actor does not have permission to create AAA automation rules. The app was approved but the auto-install rule was not created. - `not_an_admin` -- This method is only accessible by org owners and admins. - `request_already_resolved` -- The app request has already been resolved. - `request_id_or_app_id_is_required` -- Must include a `request_id` or `app_id`. - `request_id_required_for_custom_integrations` -- A `request_id` is required for custom integrations. - `team_not_found` -- Returned when team id is not found. - `too_many_ids_provided` -- Please provide only `app_id` OR `request_id`. - `too_many_teams_provided` -- Please provide only `team_id` OR `enterprise_id`. - `invalid_approved_acl` -- The `approved_acl` passed is invalid, or can't be applied to this request. The app was not approved. See https://docs.slack.dev/reference/methods/admin.apps.approve */
2437
2618
  export declare const approveApp: API.OperationMethod<ApproveAppRequest, ApproveAppResponse, ApproveAppError, SlackOpContext>;
@@ -2448,22 +2629,22 @@ export type AssignEntitiesError = SlackOpError;
2448
2629
  /** Assign entities to a particular authentication policy. Required scopes -- user: `admin.users:write` Rate limit tier: 4 Method-specific errors (the `error` slug on the SlackError): - `admin_unauthorized` -- The token provided doesn't have permission to revoke a session. - `entity_not_found` -- At least one `entity_id` was not found. - `feature_not_enabled` -- This method is only available for Enterprise organizations. - `internal_error` -- There was an internal error processing this request--please retry. - `invalid_arguments` -- Required arguments either were not provided or contain invalid values. - `invalid_auth` -- The token doesn't have access to this endpoint. - `not_an_admin` -- This method is only accessible by Org Owners and Admins. - `over_max_entity_limit` -- The number of entities assigned to this policy has reached its upper limit. - `policy_not_found` -- The policy name doesn't match any of the existing org policies. - `ratelimited` -- The rate limit for this endpoint has been reached. - `unknown_method` -- This method is currently not available. See https://docs.slack.dev/reference/methods/admin.auth.policy.assignEntities */
2449
2630
  export declare const assignEntities: API.OperationMethod<AssignEntitiesRequest, AssignEntitiesResponse, AssignEntitiesError, SlackOpContext>;
2450
2631
  export type AssignUserError = SlackOpError;
2451
- /** Add an Enterprise user to a workspace. Required scopes -- user: `admin.users:write` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `feature_not_enabled` -- The Admin APIs feature is not enabled for this team - `invalid_role_for_user` -- The requested status is incompatible with the user's role on another workspace. - `invited_user_not_created` -- The invited user could not be created. - `invited_user_not_reactivated` -- The invited user could not be reactivated. - `invitor_cannot_see_channel` -- The invitor is not part of one or many channels that the user was requested to be added to - `not_an_admin` -- This method wasn't called by an admin. - `team_not_found` -- `team_id was not found. - `too_many_channels` -- The user was requested to be added to more channels than is allowed. - `user_already_team_member` -- The given user is already active on the given team. - `user_is_bot` -- The given user is a bot from an app. This api only works with humans. - `user_not_found` -- `user_id` was not found. - `user_cannot_be_added_to_workspace` -- The user can't be added to this workspace because of their account type or the workspace's configuration. - `inviter_email_not_verified` -- The user is still invited, and the user whose token is calling this method has not verified the email address on their own account. They must verify it before adding an invited user to a workspace. See https://docs.slack.dev/reference/methods/admin.users.assign */
2632
+ /** Add an Enterprise user to a workspace. Required scopes -- user: `admin.users:write` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `feature_not_enabled` -- The Admin APIs feature is not enabled for this team - `invalid_role_for_user` -- The requested status is incompatible with the user's role on another workspace. - `invited_user_not_created` -- The invited user could not be created. - `invited_user_not_reactivated` -- The invited user could not be reactivated. - `invitor_cannot_see_channel` -- The invitor is not part of one or many channels that the user was requested to be added to - `not_an_admin` -- This method wasn't called by an admin. - `team_not_found` -- `team_id was not found. - `too_many_channels` -- The user was requested to be added to more channels than is allowed. - `user_already_team_member` -- The given user is already active on the given team. - `user_is_bot` -- The given user is a bot from an app. This api only works with humans. - `user_not_found` -- `user_id` was not found. - `user_cannot_be_added_to_workspace` -- The user can't be added to this workspace because of their account type or the workspace's configuration. - `inviter_email_not_verified` -- The user is still invited, and the user whose token is calling this method has not verified the email address on their own account. They must verify it before adding an invited user to a workspace. - `invalid_channel_for_ura` -- `is_ultra_restricted` is true and `channel_ids` doesn't name exactly one channel the single-channel guest can join. See https://docs.slack.dev/reference/methods/admin.users.assign */
2452
2633
  export declare const assignUser: API.OperationMethod<AssignUserRequest, AssignUserResponse, AssignUserError, SlackOpContext>;
2453
2634
  export type BulkArchiveError = SlackOpError;
2454
- /** Archive public or private channels in bulk. Required scopes -- user: `admin.conversations:write` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `action_already_in_progress` -- Another bulk action request is currently in progress - `internal_error` -- Something unexpected happened, try again in a little bit. Sorry for that! - `invalid_enterprise` -- Enterprise does not exist - `no_valid_channels` -- All input channels are invalid - `team_not_found` -- Team ID provided does not exist - `restricted_action` -- User does not have permission to perform this action See https://docs.slack.dev/reference/methods/admin.conversations.bulkArchive */
2635
+ /** Archive public or private channels in bulk. Required scopes -- user: `admin.conversations:write` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `action_already_in_progress` -- Another bulk action request is currently in progress - `internal_error` -- Something unexpected happened, try again in a little bit. Sorry for that! - `invalid_enterprise` -- Enterprise does not exist - `no_valid_channels` -- All input channels are invalid - `not_an_admin` -- This method is only accessible by org owners and Admins. - `not_an_enterprise` -- The workspace is not an Enterprise organization, or an Enterprise+ workspace with Admin API access. - `two_factor_setup_required` -- Two factor authentication needs to be set up. - `team_not_found` -- Team ID provided does not exist - `restricted_action` -- User does not have permission to perform this action See https://docs.slack.dev/reference/methods/admin.conversations.bulkArchive */
2455
2636
  export declare const bulkArchive: API.OperationMethod<BulkArchiveRequest, BulkArchiveResponse, BulkArchiveError, SlackOpContext>;
2456
2637
  export type BulkDeleteError = SlackOpError;
2457
- /** Delete public or private channels in bulk Required scopes -- user: `admin.conversations:write` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `action_already_in_progress` -- Another bulk action request is currently in progress - `internal_error` -- Something unexpected happened, try again in a little bit. Sorry for that! - `no_valid_channels` -- All input channels are invalid - `restricted_action` -- User does not have permission to perform this action See https://docs.slack.dev/reference/methods/admin.conversations.bulkDelete */
2638
+ /** Delete public or private channels in bulk Required scopes -- user: `admin.conversations:write` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `action_already_in_progress` -- Another bulk action request is currently in progress - `internal_error` -- Something unexpected happened, try again in a little bit. Sorry for that! - `no_valid_channels` -- All input channels are invalid - `not_an_admin` -- This method is only accessible by org owners and Admins. - `not_an_enterprise` -- The workspace is not an Enterprise organization, or an Enterprise+ workspace with Admin API access. - `two_factor_setup_required` -- Two factor authentication needs to be set up. - `restricted_action` -- User does not have permission to perform this action See https://docs.slack.dev/reference/methods/admin.conversations.bulkDelete */
2458
2639
  export declare const bulkDelete: API.OperationMethod<BulkDeleteRequest, BulkDeleteResponse, BulkDeleteError, SlackOpContext>;
2459
2640
  export type BulkMoveError = SlackOpError;
2460
2641
  /** Move public or private channels in bulk. Required scopes -- user: `admin.conversations:write` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `action_already_in_progress` -- Another bulk action request is currently in progress - `team_not_found` -- Target team cannot be found - `internal_error` -- Something unexpected happened, try again in a little bit. Sorry for that! - `no_valid_channels` -- All input channels are invalid - `target_team_not_found` -- Target team ID provided does not exist - `restricted_action` -- User does not have permission to perform this action See https://docs.slack.dev/reference/methods/admin.conversations.bulkMove */
2461
2642
  export declare const bulkMove: API.OperationMethod<BulkMoveRequest, BulkMoveResponse, BulkMoveError, SlackOpContext>;
2462
2643
  export type BulkSetExcludeFromSlackAiError = SlackOpError;
2463
- /** Exclude channels from Slack AI in bulk. Required scopes -- user: `admin.conversations:write` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `action_already_in_progress` -- Another bulk action request is currently in progress - `internal_error` -- Something unexpected happened, try again in a little bit. Sorry for that! - `no_valid_channels` -- All input channels are invalid - `restricted_action` -- User does not have permission to perform this action - `feature_not_enabled` -- The feature is not enabled - `disallowed_action` -- This property cannot be set on DMs or MPDMs. See https://docs.slack.dev/reference/methods/admin.conversations.bulkSetExcludeFromSlackAi */
2644
+ /** Exclude channels from Slack AI in bulk. Required scopes -- user: `admin.conversations:write` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `action_already_in_progress` -- Another bulk action request is currently in progress - `internal_error` -- Something unexpected happened, try again in a little bit. Sorry for that! - `no_valid_channels` -- All input channels are invalid - `not_an_admin` -- This method is only accessible by org owners and Admins. - `not_an_enterprise` -- The workspace is not an Enterprise organization, or an Enterprise+ workspace with Admin API access. - `two_factor_setup_required` -- Two factor authentication needs to be set up. - `restricted_action` -- User does not have permission to perform this action - `disallowed_action` -- This property cannot be set on DMs or MPDMs. - `toggle_check_failed` -- Excluding channels from Slack AI is not available for this team. - `restricted_plan_level` -- Excluding channels from Slack AI is only available to Enterprise+ customers. - `unsupported_environment_variant` -- Excluding channels from Slack AI is not available in this environment. See https://docs.slack.dev/reference/methods/admin.conversations.bulkSetExcludeFromSlackAi */
2464
2645
  export declare const bulkSetExcludeFromSlackAi: API.OperationMethod<BulkSetExcludeFromSlackAiRequest, BulkSetExcludeFromSlackAiResponse, BulkSetExcludeFromSlackAiError, SlackOpContext>;
2465
2646
  export type BulkSetPropertiesError = SlackOpError;
2466
- /** Set properties on channels in bulk. Required scopes -- user: `admin.conversations:write` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `action_already_in_progress` -- Another bulk action request is currently in progress - `invalid_arguments` -- The property argument is not a valid JSON object representing a channel property. - `internal_error` -- Something unexpected happened, try again in a little bit. Sorry for that! - `no_valid_channels` -- All input channels are invalid - `restricted_action` -- User does not have permission to perform this action - `feature_not_enabled` -- The feature is not enabled - `disallowed_action` -- This property cannot be set on this channel type. - `restricted_plan_level` -- This API is only available to Enterprise+ customers. - `too_many_properties` -- Only one channel property can be updated at a time. - `property_not_allowed` -- The property passed in is not allowed to be updated. See https://docs.slack.dev/reference/methods/admin.conversations.bulkSetProperties */
2647
+ /** Set properties on channels in bulk. Required scopes -- user: `admin.conversations:write` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `action_already_in_progress` -- Another bulk action request is currently in progress - `invalid_arguments` -- The property argument is not a valid JSON object representing a channel property. - `internal_error` -- Something unexpected happened, try again in a little bit. Sorry for that! - `no_valid_channels` -- All input channels are invalid - `not_an_admin` -- This method is only accessible by org owners and Admins. - `not_an_enterprise` -- The workspace is not an Enterprise organization, or an Enterprise+ workspace with Admin API access. - `two_factor_setup_required` -- Two factor authentication needs to be set up. - `restricted_action` -- User does not have permission to perform this action - `feature_not_enabled` -- The feature is not enabled - `disallowed_action` -- This property cannot be set on this channel type. - `restricted_plan_level` -- This API is only available to Enterprise+ customers. - `too_many_properties` -- Only one channel property can be updated at a time. - `property_not_allowed` -- The property passed in is not allowed to be updated. See https://docs.slack.dev/reference/methods/admin.conversations.bulkSetProperties */
2467
2648
  export declare const bulkSetProperties: API.OperationMethod<BulkSetPropertiesRequest, BulkSetPropertiesResponse, BulkSetPropertiesError, SlackOpContext>;
2468
2649
  export type CancelAppsRequestError = SlackOpError;
2469
2650
  /** Cancel app request for team Required scopes -- user: `admin.apps:write` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `app_management_app_not_installed_on_org` -- The app management app must be installed on the org. - `feature_not_enabled` -- Returned when the Admin APIs feature is not enabled for this team - `invalid_request_id` -- The `request_id` passed is invalid. - `not_an_admin` -- This method is only accessible by org owners and admins - `request_already_resolved` -- The app request has already been resolved - `team_not_found` -- Returned when team id is not found. - `too_many_teams_provided` -- Please provide only `team_id` OR `enterprise_id` - `restricted_action` -- User is not authorized to perform this action - `invalid_auth` -- invalid token or actor does not have access See https://docs.slack.dev/reference/methods/admin.apps.requests.cancel */
@@ -2475,7 +2656,7 @@ export type ClearSettingsError = SlackOpError;
2475
2656
  /** Clear user-specific session settings--the session duration and what happens when the client closes--for a list of users. Required scopes -- user: `admin.users:write` Rate limit tier: 4 Method-specific errors (the `error` slug on the SlackError): - `admin_unauthorized` -- The owner of this token isn't authorized to clear sessions. - `bots_not_allowed` -- Bot users may not have their settings cleared. - `feature_not_enabled` -- This method is only available to Enterprise customers. - `internal_error` -- There was an internal error processing this request--please retry. - `invalid_arguments` -- Required arguments either were not provided or contain invalid values. - `invalid_auth` -- The provided token doesn't have access to this endpoint. - `not_an_admin` -- The owner of this token isn't an Org Owner or Admin. - `unknown_method` -- This method is currently not available. - `user_not_found` -- There was an error finding a requested user. See https://docs.slack.dev/reference/methods/admin.users.session.clearSettings */
2476
2657
  export declare const clearSettings: API.OperationMethod<ClearSettingsRequest, ClearSettingsResponse, ClearSettingsError, SlackOpContext>;
2477
2658
  export type ConversationsKickError = SlackOpError;
2478
- /** Remove multiple users from a conversation. Admin version of conversations.kick with support for bulk user removal. Required scopes -- user: `admin.conversations:write` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `channel_not_found` -- The value passed for `channel_id` was invalid. - `channel_type_not_supported` -- The provided `channel_id` is a DM, MPDM, or cannot be used with this method. - `external_channel_migrating` -- The channel is an externally shared channel that is currently being migrated and members can't be removed. - `failed_for_all_users` -- All users could not be removed from the channel. Check `failed_user_ids` for details. - `not_supported` -- This type of channel doesn't support removing members through this method. - `restricted_action` -- The authenticated user lacks channel management permissions for this channel type, or a team preference prevents them from removing members. - `too_many_users` -- Too many user IDs provided (maximum 100). - `permission_denied` -- The user does not have permission to remove members from the channel. See https://docs.slack.dev/reference/methods/admin.conversations.kick */
2659
+ /** Remove multiple users from a conversation. Admin version of conversations.kick with support for bulk user removal. Required scopes -- user: `admin.conversations:write` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `channel_not_found` -- The value passed for `channel_id` was invalid. It is also returned when the channel belongs to a workspace other than the token's workspace and isn't shared with it. - `channel_type_not_supported` -- The provided `channel_id` is a DM, MPDM, or cannot be used with this method. - `external_channel_migrating` -- The channel is an externally shared channel that is currently being migrated and members can't be removed. - `failed_for_all_users` -- All users could not be removed from the channel. Check `failed_user_ids` for details. - `not_supported` -- This type of channel doesn't support removing members through this method. - `restricted_action` -- The authenticated user lacks channel management permissions for this channel type, or a team preference prevents them from removing members. - `too_many_users` -- Too many user IDs provided (maximum 100). - `permission_denied` -- The user does not have permission to remove members from the channel. - `target_team_not_on_org` -- The specified target_team is not part of the organization. See https://docs.slack.dev/reference/methods/admin.conversations.kick */
2479
2660
  export declare const conversationsKick: API.OperationMethod<ConversationsKickRequest, ConversationsKickResponse, ConversationsKickError, SlackOpContext>;
2480
2661
  export type ConvertToPrivateError = SlackOpError;
2481
2662
  /** Convert a public channel to a private channel. Required scopes -- user: `admin.conversations:write` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `channel_not_found` -- The value passed for `channel` was invalid. - `channel_type_not_supported` -- The value passed for `channel` was a DM, MPDM, private, or the 'general' channel. - `could_not_convert_channel` -- This channel could not be converted to private. - `default_org_wide_channel` -- The default org-wide channel cannot be converted to private. - `external_channel_migrating` -- This external channel is migrating, so it can't be converted to private. - `feature_not_enabled` -- The provided token doesn't have access to this method. - `method_not_supported_for_channel_type` -- This type of conversation cannot be used with this method. - `name_taken` -- A private channel cannot be created with the given name. - `restricted_action` -- A workspace preference prevents the authenticated user from creating private channels. See https://docs.slack.dev/reference/methods/admin.conversations.convertToPrivate */
@@ -2487,7 +2668,7 @@ export type CreateBarrierError = SlackOpError;
2487
2668
  /** Create an Information Barrier Required scopes -- user: `admin.barriers:write` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `barrier_already_exists` -- There already exists another barrier restricting activity between two or more of your requested usergroups. - `barriered_from_usergroups_not_found` -- One or more of the ids passed in for barriered_from_usergroup_ids can't be found. - `feature_not_enabled` -- The information barrier feature is not enabled, please reach out to your CSM. - `invalid_restricted_subjects` -- The restricted subjects provided are invalid or not currently supported. - `not_an_admin` -- The token provided is not associated with an org admin. - `primary_usergroup_not_found` -- The id passed in for primary_usergroup_id can't be found. See https://docs.slack.dev/reference/methods/admin.barriers.create */
2488
2669
  export declare const createBarrier: API.OperationMethod<CreateBarrierRequest, CreateBarrierResponse, CreateBarrierError, SlackOpContext>;
2489
2670
  export type CreateConversationError = SlackOpError;
2490
- /** Create a public or private channel-based conversation. Required scopes -- user: `admin.conversations:write` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `could_not_create_channel` -- The channel could not be created. - `feature_not_enabled` -- The token provided doesn't have access to this method. - `invalid_name` -- The value passed for `name` was invalid. - `invalid_team` -- The provided workspace is invalid. - `name_taken` -- A channel cannot be created with the given name. - `no_local_user_on_team` -- The workspace provided had no users. - `restricted_action` -- A workspace preference prevents the authenticated user from creating channels. - `team_id_or_org_required` -- You must provide a `team_id` or set `org_wide` to `true`. - `team_not_found` -- No workspace was found for the `team_id` provided. See https://docs.slack.dev/reference/methods/admin.conversations.create */
2671
+ /** Create a public or private channel-based conversation. Required scopes -- user: `admin.conversations:write` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `could_not_create_channel` -- The channel could not be created. - `feature_not_enabled` -- The token provided doesn't have access to this method. - `invalid_name` -- The value passed for `name` was invalid. - `invalid_team` -- The provided workspace is invalid. - `name_taken` -- A channel cannot be created with the given name. - `no_local_user_on_team` -- The workspace provided had no users. - `restricted_action` -- A workspace preference prevents the authenticated user from creating channels. - `team_id_or_org_required` -- You must provide a `team_id` or set `org_wide` to `true`. - `team_not_found` -- No workspace was found for the `team_id` provided. - `target_team_not_on_org` -- The specified target_team is not part of the organization. See https://docs.slack.dev/reference/methods/admin.conversations.create */
2491
2672
  export declare const createConversation: API.OperationMethod<CreateConversationRequest, CreateConversationResponse, CreateConversationError, SlackOpContext>;
2492
2673
  export type CreateForObjectsError = SlackOpError;
2493
2674
  /** Create a Salesforce channel for the corresponding object provided. Required scopes -- user: `admin.conversations:manage_objects` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `restricted_action` -- User does not have access to perform this action. - `record_not_found` -- Value passed for `salesforce_org_id` or `object_id` is invalid. - `feature_not_enabled` -- Feature not enabled. - `channel_already_exists` -- Object is linked to a different channel. - `missing_record_channel_config` -- Record Channels are not enabled for the given object type. See https://docs.slack.dev/reference/methods/admin.conversations.createForObjects */
@@ -2496,7 +2677,7 @@ export type CreateTeamError = SlackOpError;
2496
2677
  /** Create an Enterprise team. Required scopes -- user: `admin.teams:write` Rate limit tier: 1 Method-specific errors (the `error` slug on the SlackError): - `bad_url` -- Invalid URL. Note that domains can be at most 21 characters. - `could_not_create_workspace` -- The workspace could not be created. - `discoverability_setting_invalid` -- The given discoverability setting is invalid. - `domain_taken` -- The requested domain is taken. - `feature_not_enabled` -- The Admin APIs feature is not enabled for this team. - `must_provide_team_domain` -- No team domain has been provided. - `must_provide_team_name` -- No team name has been provided. - `name_taken_in_org` -- The team with the specified name already exists in the org. - `not_an_admin` -- This method is only accessible by org owners and admins. See https://docs.slack.dev/reference/methods/admin.teams.create */
2497
2678
  export declare const createTeam: API.OperationMethod<CreateTeamRequest, CreateTeamResponse, CreateTeamError, SlackOpContext>;
2498
2679
  export type CreateUsergroupError = SlackOpError;
2499
- /** Create a new organizational usergroup. This method is only available to Enterprise Grid organizations. Required scopes -- user: `admin.usergroups:write` Rate limit tier: 1 Method-specific errors (the `error` slug on the SlackError): - `feature_not_enabled` -- The Admin APIs feature is not enabled for this workspace. - `invalid_auth` -- The workspace specified is not part of this organization. - `restricted_action` -- The calling user is not allowed to create usergroups. - `not_an_enterprise` -- The token passed in does not belong to an Enterprise organization. - `name_already_exists` -- The name specified is used by another usergroup and cannot be created. - `handle_already_exists` -- The handle specified is used by another usergroup or entity and cannot be created. See https://docs.slack.dev/reference/methods/admin.usergroups.create */
2680
+ /** Create a new organizational usergroup. This method is only available to Enterprise Grid organizations. Required scopes -- user: `admin.usergroups:write` Rate limit tier: 1 Method-specific errors (the `error` slug on the SlackError): - `feature_not_enabled` -- The Admin APIs feature is not enabled for this workspace. - `invalid_auth` -- The workspace specified is not part of this organization. - `restricted_action` -- The calling user is not allowed to create usergroups. - `not_an_enterprise` -- The token passed in does not belong to an Enterprise organization. - `name_already_exists` -- The name specified is used by another usergroup and cannot be created. - `handle_already_exists` -- The handle specified is used by another usergroup or entity and cannot be created. - `missing_subteam_name` -- The name specified is empty. - `empty_name` -- The name specified is empty once invalid characters are removed. - `name_too_long` -- The name specified is longer than 100 characters. - `forbidden_name` -- The name specified is not allowed (reserved names such as `team admins` or `team owners` cannot be used). - `handle_too_long` -- The handle specified is longer than 100 characters. - `forbidden_handle` -- The handle specified is not allowed (reserved handles such as `admins` or `owners` cannot be used). - `bad_handle` -- The handle specified is not valid. Handles must be lowercase, may only contain letters, numbers, periods, hyphens and underscores (no spaces, accented letters or other punctuation), and must start with a letter, number or hyphen. - `description_too_long` -- The purpose specified is longer than 140 characters. See https://docs.slack.dev/reference/methods/admin.usergroups.create */
2500
2681
  export declare const createUsergroup: API.OperationMethod<CreateUsergroupRequest, CreateUsergroupResponse, CreateUsergroupError, SlackOpContext>;
2501
2682
  export type DeactivateUserError = SlackOpError;
2502
2683
  /** Deactivate a user from an enterprise organization and all its workspaces. Required scopes -- user: `admin.users:write` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `restricted_action` -- The caller does not have permission to perform this action. Must be an org admin or owner. - `user_not_found` -- The user was not found or does not belong to this enterprise. - `invalid_user` -- The user was not found or is not a valid target for deactivation. - `deactivation_failed` -- The deactivation operation failed. - `user_is_team_primary_owner` -- The user is a primary owner of one or more workspaces and cannot be deactivated. See https://docs.slack.dev/reference/methods/admin.users.deactivate */
@@ -2508,10 +2689,10 @@ export type DeleteConversationError = SlackOpError;
2508
2689
  /** Delete a public or private channel. Required scopes -- user: `admin.conversations:write` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `channel_not_found` -- The value passed for `channel_id` was invalid. - `channel_type_not_supported` -- The provided `channel_id` was a DM, MPDM, or the 'general' channel. - `could_not_delete_channel` -- The channel could not be deleted. - `default_org_wide_channel` -- The default org-wide channel cannot be deleted. - `feature_not_enabled` -- The token provided doesn't have access to this method. - `missing_scope` -- The provided token hasn't obtained the necessary scopes to use this method. - `not_an_admin` -- The token provided is not associated with an Org Owner or Admin. - `restricted_action` -- A workspace preference prevents the authenticated user from deleting this channel. See https://docs.slack.dev/reference/methods/admin.conversations.delete */
2509
2690
  export declare const deleteConversation: API.OperationMethod<DeleteConversationRequest, DeleteConversationResponse, DeleteConversationError, SlackOpContext>;
2510
2691
  export type DisconnectSharedError = SlackOpError;
2511
- /** Disconnect a connected channel from one or more workspaces. Required scopes -- user: `admin.conversations:write` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `cannot_kick_home_team` -- The originating workspace cannot be kicked from the channel. - `cannot_kick_team` -- Only the originating workspace for a connected channel may remove other workspaces from the channel. - `channel_not_found` -- The value passed for `channel_id` was invalid. - `channel_type_not_supported` -- The value passed for `channel_id` was an MPDM, DM, or the 'general' channel. - `feature_not_enabled` -- The token provided does not have access to this method. - `leaving_team_not_in_channel` -- The workspace being removed is not connected to the channel. - `leaving_team_required` -- There are more than two teams in the channel--you must supplied a `leaving_team_id` parameter. - `missing_scope` -- The provided token does not have the required scopes to use this method. - `no_teams_to_disconnect` -- This channel is not shared, so there are no workspaces to disconnect. - `not_an_admin` -- The token provided is not associated with an Org Admin or Owner. - `not_an_enterprise` -- This endpoint can only be called for an Enterprise organization. - `not_supported` -- The passed `channel_id` was a DM, MPDM, or the 'general' channel. - `restricted_action` -- A workspace preference prevents the authenticated user from disconnecting a channel. - `team_not_found` -- At least one of the supplied `leaving_team_ids` are invalid. - `external_channel_migrating` -- The channel is an externally shared channel that is currently being migrated. - `default_org_wide_channel` -- The channel is a default org-wide channel, which isn't supported by this method. See https://docs.slack.dev/reference/methods/admin.conversations.disconnectShared */
2692
+ /** Disconnect a connected channel from one or more workspaces. Required scopes -- user: `admin.conversations:write` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `cannot_kick_home_team` -- The originating workspace cannot be kicked from the channel. - `cannot_kick_team` -- Only the originating workspace for a connected channel may remove other workspaces from the channel. - `channel_not_found` -- The value passed for `channel_id` was invalid. It is also returned when the channel belongs to a workspace other than the token's workspace and isn't shared with it. - `channel_type_not_supported` -- The value passed for `channel_id` was an MPDM, DM, or the 'general' channel. - `feature_not_enabled` -- The token provided does not have access to this method. - `leaving_team_not_in_channel` -- The workspace being removed is not connected to the channel. - `leaving_team_required` -- There are more than two teams in the channel--you must supplied a `leaving_team_id` parameter. - `missing_scope` -- The provided token does not have the required scopes to use this method. - `no_teams_to_disconnect` -- This channel is not shared, so there are no workspaces to disconnect. - `not_an_admin` -- The token provided is not associated with an Org Admin or Owner. - `not_an_enterprise` -- This endpoint can only be called for an Enterprise organization. - `not_supported` -- The passed `channel_id` was a DM, MPDM, or the 'general' channel. - `restricted_action` -- A workspace preference prevents the authenticated user from disconnecting a channel. - `team_not_found` -- At least one of the supplied `leaving_team_ids` are invalid. - `external_channel_migrating` -- The channel is an externally shared channel that is currently being migrated. - `default_org_wide_channel` -- The channel is a default org-wide channel, which isn't supported by this method. - `target_team_not_on_org` -- The specified target_team is not part of the organization. See https://docs.slack.dev/reference/methods/admin.conversations.disconnectShared */
2512
2693
  export declare const disconnectShared: API.OperationMethod<DisconnectSharedRequest, DisconnectSharedResponse, DisconnectSharedError, SlackOpContext>;
2513
2694
  export type ExportUsersUnsupportedVersionError = SlackOpError;
2514
- /** Ask Slackbot to send you an export listing all workspace members using unsupported software, presented as a zipped CSV file. Required scopes -- user: `admin.users:read` Rate limit tier: 1 Method-specific errors (the `error` slug on the SlackError): - `could_not_export` -- For some reason, the export could not be started - `invalid_auth` -- Invalid authentication token provided. - `invalid_team_id` -- The team ID passed is invalid - `missing_scope` -- The calling token is not granted the necessary scopes to complete this operation. - `not_authed` -- No authentication token provided. - `not_an_enterprise` -- Only enterprises are supported. See https://docs.slack.dev/reference/methods/admin.users.unsupportedVersions.export */
2695
+ /** Ask Slackbot to send you an export listing all workspace members using unsupported software, presented as a zipped CSV file. Required scopes -- user: `admin.users:read` Rate limit tier: 1 Method-specific errors (the `error` slug on the SlackError): - `could_not_export` -- For some reason, the export could not be started - `invalid_auth` -- Invalid authentication token provided. - `invalid_team_id` -- The team ID passed is invalid - `missing_scope` -- The calling token is not granted the necessary scopes to complete this operation. - `not_authed` -- No authentication token provided. - `not_an_enterprise` -- Only enterprises are supported. - `not_an_admin` -- This method is only accessible by org owners and admins, or by workspace owners and admins on an Enterprise+ workspace. - `two_factor_setup_required` -- Two factor authentication needs to be set up. See https://docs.slack.dev/reference/methods/admin.users.unsupportedVersions.export */
2515
2696
  export declare const exportUsersUnsupportedVersion: API.OperationMethod<ExportUsersUnsupportedVersionRequest, ExportUsersUnsupportedVersionResponse, ExportUsersUnsupportedVersionError, SlackOpContext>;
2516
2697
  export type FetchUsergroupError = SlackOpError;
2517
2698
  /** Fetch an organizational usergroup. Required scopes -- user: `admin.usergroups:read` Rate limit tier: 1 Method-specific errors (the `error` slug on the SlackError): - `feature_not_enabled` -- The Admin APIs feature is not enabled for this workspace. - `invalid_auth` -- The workspace specified is not part of this organization. - `restricted_action` -- The calling user is not allowed to view the specified usergroup. - `not_an_enterprise` -- The token passed in does not belong to an Enterprise organization. - `invalid_usergroup` -- A usergroup with the specified ID does not exist. See https://docs.slack.dev/reference/methods/admin.usergroups.fetch */
@@ -2532,7 +2713,7 @@ export type GetFileError = SlackOpError;
2532
2713
  /** Retrieve analytics data for a given date, presented as a compressed JSON file Required scopes -- user: `admin.analytics:read` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `data_not_available` -- The `date` was before the API became available. - `feature_not_available` -- The user token does not belong to an Enterprise or Business+ team. - `feature_not_enabled` -- This feature is not enabled on your workspace. - `file_not_found` -- The analytics data for the `date` specified weren't found. - `file_not_yet_available` -- The analytics data for the `date` isn't available yet. - `invalid_arguments` -- Arguments weren't fully provided. For example, the `date` argument wasn't passed. - `invalid_date` -- The `date` argument was invalid. - `invalid_type` -- The analytics data for the `type` specified weren't found. - `member_analytics_disabled` -- Member analytics are disabled for your organization. - `metadata_not_available` -- Metadata not available for the analytics `type` you provided. - `metadata_only_does_not_support_date` -- The `metadata_only` field gets the latest metadata file. The `date` field is not supported. - `missing_scope` -- This token doesn't have the scope required. - `not_an_admin` -- The user token does not have admin privileges. - `org_level_email_display_disabled` -- This API is unavailable for organizations with a _'Hide email addresses'_ policy. - `user_cannot_manage_public_channels` -- The user must have permissions to manage public channels at the Enterprise level. See https://docs.slack.dev/reference/methods/admin.analytics.getFile */
2533
2714
  export declare const getFile: API.OperationMethod<GetFileRequest, GetFileResponse, GetFileError, SlackOpContext>;
2534
2715
  export type GetItemError = SlackOpError;
2535
- /** API to allow Enterprise org admins to read the allow list of IP blocks and ASNs from the enterprise configuration. Required scopes -- user: `admin` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `endpoint_unavailable` -- The requested endpoint is currently unavailable. - `not_an_enterprise` -- The user is not an enterprise admin. - `not_authed` -- auth token is not valid. - `unsupported_action_describe` -- The user specified action is unsupported - `unsupported_action_put` -- The user specified action is unsupported See https://docs.slack.dev/reference/methods/admin.audit.anomaly.allow.getItem */
2716
+ /** API to allow Enterprise org admins to read the allow list of IP blocks and ASNs from the enterprise configuration. Required scopes -- user: `admin` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `endpoint_unavailable` -- The requested endpoint is currently unavailable. - `not_an_enterprise` -- The user is not an enterprise admin. - `not_authed` -- auth token is not valid. - `unsupported_action_describe` -- The user specified action is unsupported - `unsupported_action_put` -- The user specified action is unsupported - `insufficient_permissions` -- This method is only accessible by org owners and Admins. - `not_an_admin` -- This method is only accessible by workspace owners and Admins. - `team_is_restricted` -- The token belongs to a workspace on an Enterprise organization. Use an org-level token. - `two_factor_setup_required` -- Two factor authentication needs to be set up. See https://docs.slack.dev/reference/methods/admin.audit.anomaly.allow.getItem */
2536
2717
  export declare const getItem: API.OperationMethod<GetItemRequest, GetItemResponse, GetItemError, SlackOpContext>;
2537
2718
  export type GetSettingsError = SlackOpError;
2538
2719
  /** Get user-specific session settings--the session duration and what happens when the client closes--given a list of users. Required scopes -- user: `admin.users:read` Rate limit tier: 4 Method-specific errors (the `error` slug on the SlackError): - `admin_unauthorized` -- The owner of this token isn't authorized to list sessions. - `bots_not_allowed` -- Bot sessions are not listed by this method. - `feature_not_enabled` -- This method is only available to Enterprise customers. - `internal_error` -- There was an internal error processing this request--please retry. - `invalid_arguments` -- Required arguments either were not provided or contain invalid values. - `invalid_auth` -- The provided token doesn't have access to this endpoint. - `restricted_action` -- The owner of this token isn't an Org Owner or Admin. - `not_an_admin` -- The owner of this token isn't an Org Owner or Admin. - `unknown_method` -- This method is currently not available. - `user_not_found` -- There was an error finding the requested user. See https://docs.slack.dev/reference/methods/admin.users.session.getSettings */
@@ -2544,7 +2725,7 @@ export type InvalidateUsersSessionError = SlackOpError;
2544
2725
  /** Revoke a single session for a user. The user will be forced to login to Slack. Required scopes -- user: `admin.users:write` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `admin_unauthorized` -- The token provided doesn't have permission to revoke a session. - `cannot_invalidate_primary_owner` -- Only the primary owner of an organization can invalidate a primary owner's sessions. - `feature_not_enabled` -- The token provided can't call this method. - `invalid_auth` -- The provided token doesn't have access to this endpoint. - `not_an_admin` -- This method must be called by an Org Owner or Admin. - `session_invalidation_failed` -- There was an error invalidating the session. - `session_not_found` -- The requested session wasn't found. - `unknown_method` -- This method is currently not available. - `user_not_found` -- The requested user wasn't found. See https://docs.slack.dev/reference/methods/admin.users.session.invalidate */
2545
2726
  export declare const invalidateUsersSession: API.OperationMethod<InvalidateUsersSessionRequest, InvalidateUsersSessionResponse, InvalidateUsersSessionError, SlackOpContext>;
2546
2727
  export type InviteConversationError = SlackOpError;
2547
- /** Invite a user to a public or private channel. Required scopes -- user: `admin.conversations:write` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `channel_not_found` -- The value passed for `channel_id` was invalid. - `channel_type_not_supported` -- The provided `channel_id` was a DM, MPDM, or the 'general' channel. - `default_org_wide_channel` -- Users may not be invited to the default org-wide channel. - `failed_for_some_users` -- The method failed for a subset of the users passed. - `feature_not_enabled` -- The token provided doesn't have access to this method. - `restricted_action` -- A workspace preference prevents the authenticated user from inviting. - `user_must_be_admin` -- The token provided must be associated with an Org Admin or Owner. See https://docs.slack.dev/reference/methods/admin.conversations.invite */
2728
+ /** Invite a user to a public or private channel. Required scopes -- user: `admin.conversations:write` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `channel_not_found` -- The value passed for `channel_id` was invalid. It is also returned when the channel belongs to a workspace other than the token's workspace and isn't shared with it. - `channel_type_not_supported` -- The provided `channel_id` was a DM, MPDM, or the 'general' channel. - `default_org_wide_channel` -- Users may not be invited to the default org-wide channel. - `failed_for_some_users` -- The method failed for a subset of the users passed. - `feature_not_enabled` -- The token provided doesn't have access to this method. - `restricted_action` -- A workspace preference prevents the authenticated user from inviting. - `user_must_be_admin` -- The token provided must be associated with an Org Admin or Owner. - `target_team_not_on_org` -- The specified target_team is not part of the organization. See https://docs.slack.dev/reference/methods/admin.conversations.invite */
2548
2729
  export declare const inviteConversation: API.OperationMethod<InviteConversationRequest, InviteConversationResponse, InviteConversationError, SlackOpContext>;
2549
2730
  export type InviteRequestsDenyError = SlackOpError;
2550
2731
  /** Deny a workspace invite request. Required scopes -- user: `admin.invites:write` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `already_processed` -- The `invite_request_id` passed has already been approved or denied. - `feature_not_enabled` -- The Invite Request Admin APIs feature is not enabled - `invalid_request` -- The `invite_request_id` passed is invalid. - `missing_scope` -- This token doesn't have the scope required. - `not_an_admin` -- This token doesn't have admin privileges. - `team_not_found` -- The `team_id` specified wasn't found. See https://docs.slack.dev/reference/methods/admin.inviteRequests.deny */
@@ -2562,7 +2743,7 @@ export type ListAppsApprovedError = SlackOpError;
2562
2743
  /** List approved apps for an org or workspace. Required scopes -- user: `admin.apps:read` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `app_management_app_not_installed_on_org` -- The app management app must be installed on the org. - `feature_not_enabled` -- Returned when the Admin APIs feature is not enabled for this team - `invalid_actor` -- The provided actor_id is not a valid user or application - `invalid_cursor` -- Value passed for `cursor` was not valid or is no longer valid. - `not_allowed` -- The user is not allowed to access this API method - `not_an_admin` -- This method is only accessible by org/workspace owners and admins - `team_not_found` -- Returned when team id is not found. - `too_many_teams_provided` -- Please provide only `team_id` OR `enterprise_id`. - `restricted_action` -- User does not have permission to access method See https://docs.slack.dev/reference/methods/admin.apps.approved.list */
2563
2744
  export declare const listAppsApproved: API.PaginatedOperationMethod<ListAppsApprovedRequest, ListAppsApprovedResponse, ListAppsApprovedError, SlackOpContext, unknown>;
2564
2745
  export type ListAppsMcpServersError = SlackOpError;
2565
- /** List third-party app MCP servers approved for an organization, derived from the org's MCP server allowlist. Entries reflect allowlist state, not install/scope liveness: servers of apps that are uninstalled (but not deleted) are still listed. Required scopes -- user: `admin.apps:read` Rate limit tier: 3 Method-specific errors (the `error` slug on the SlackError): - `restricted_action` -- User does not have permission to perform this action. - `invalid_auth` -- Invalid authorization token - `invalid_cursor` -- Value passed for `cursor` was not valid or is no longer valid. - `not_an_enterprise` -- This feature is only available on Enterprise Grid plans. - `internal_error` -- Internal error - `feature_not_enabled` -- The MCP server admin API feature is not enabled for this team. See https://docs.slack.dev/reference/methods/admin.apps.mcp.servers.list */
2746
+ /** List third-party app MCP servers approved for an organization, derived from the org's MCP server allowlist. Entries reflect allowlist state, not install/scope liveness: servers of apps that are uninstalled (but not deleted) are still listed. Required scopes -- user: `admin.apps:read` Rate limit tier: 3 Method-specific errors (the `error` slug on the SlackError): - `restricted_action` -- User does not have permission to perform this action. - `invalid_auth` -- Invalid authorization token - `invalid_cursor` -- Value passed for `cursor` was not valid or is no longer valid. - `not_an_enterprise` -- This feature is only available on Enterprise Grid plans. - `not_an_admin` -- This method is only accessible by org owners and Admins. - `two_factor_setup_required` -- Two factor authentication needs to be set up. - `internal_error` -- Internal error - `feature_not_enabled` -- The MCP server admin API feature is not enabled for this team, or this workspace's plan doesn't include the Admin APIs. See https://docs.slack.dev/reference/methods/admin.apps.mcp.servers.list */
2566
2747
  export declare const listAppsMcpServers: API.PaginatedOperationMethod<ListAppsMcpServersRequest, ListAppsMcpServersResponse, ListAppsMcpServersError, SlackOpContext, ListAppsMcpServersResponseServersItem>;
2567
2748
  export type ListAppsMcpServersPermissionsError = SlackOpError;
2568
2749
  /** List MCP servers for an app with their access control permissions Required scopes -- user: `admin.apps:read` Rate limit tier: 3 Method-specific errors (the `error` slug on the SlackError): - `restricted_action` -- User does not have permission to perform this action. - `invalid_auth` -- Invalid authorization token - `app_not_found` -- This app does not exist. - `not_an_enterprise` -- This feature is only available on Enterprise Grid plans. - `internal_error` -- An internal error occurred while resolving the app's approved domains or ACLs. Retry the request. See https://docs.slack.dev/reference/methods/admin.apps.mcp.servers.permissions.list */
@@ -2628,7 +2809,7 @@ export type LookupAppsConfigError = SlackOpError;
2628
2809
  /** Look up the app config for connectors by their IDs Required scopes -- user: `admin.apps:read` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `missing_args` -- Either app_ids or rich_link_preview_types must be provided See https://docs.slack.dev/reference/methods/admin.apps.config.lookup */
2629
2810
  export declare const lookupAppsConfig: API.OperationMethod<LookupAppsConfigRequest, LookupAppsConfigResponse, LookupAppsConfigError, SlackOpContext>;
2630
2811
  export type LookupConversationError = SlackOpError;
2631
- /** Returns channels on the given team using the filters. Required scopes -- user: `admin.conversations:read` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `internal_error` -- Something unexpected happened, try again in a little bit. Sorry for that! - `feature_not_enabled` -- The feature is not enabled - `no_valid_teams` -- The team_ids argument doesn't contain any valid teams - `invalid_cursor` -- Value passed for `cursor` was not valid or is no longer valid. See https://docs.slack.dev/reference/methods/admin.conversations.lookup */
2812
+ /** Returns channels on the given team using the filters. Required scopes -- user: `admin.conversations:read` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `internal_error` -- Something unexpected happened, try again in a little bit. Sorry for that! - `feature_not_enabled` -- The feature is not enabled - `no_valid_teams` -- The team_ids argument doesn't contain any valid teams - `not_an_admin` -- This method is only accessible by org owners and Admins. - `not_an_enterprise` -- The workspace is not an Enterprise organization, or an Enterprise+ workspace with Admin API access. - `two_factor_setup_required` -- Two factor authentication needs to be set up. - `restricted_action` -- The caller isn't an admin or owner of the workspace or organization. - `invalid_cursor` -- Value passed for `cursor` was not valid or is no longer valid. See https://docs.slack.dev/reference/methods/admin.conversations.lookup */
2632
2813
  export declare const lookupConversation: API.PaginatedOperationMethod<LookupConversationRequest, LookupConversationResponse, LookupConversationError, SlackOpContext, string>;
2633
2814
  export type LookupFunctionsPermissionsError = SlackOpError;
2634
2815
  /** Lookup the visibility of multiple Slack functions and include the users if it is limited to particular named entities. Required scopes -- user: `admin.workflows:read` Rate limit tier: 3 Method-specific errors (the `error` slug on the SlackError): - `access_denied` -- This actor does not have access to the permissions on this resource. - `restricted_action` -- User does not have access to this API. See https://docs.slack.dev/reference/methods/admin.functions.permissions.lookup */
@@ -2649,7 +2830,7 @@ export type RemoveAppsPermissionsError = SlackOpError;
2649
2830
  /** Revoke an entity's access to an app that has its permission type set to named_entities Required scopes -- user: `admin.apps:write` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `invalid_auth` -- Invalid authorization token - `access_denied` -- This actor does not have access to the permissions on this resource. - `named_entities_cannot_be_empty` -- There must be at least one valid named entity - `app_not_found` -- This app does not exist. - `not_an_enterprise` -- This feature is only available on Enterprise Grid plans. - `invalid_permission_type` -- This app requires permission_type to be set as named_entities before removing users. - `too_many_named_entities` -- Too many named entities passed into the app permissions setting. - `app_acl_not_found` -- This app does not have an ACL. - `internal_error` -- Internal error - `user_not_found` -- Value passed for `user_ids` was invalid. - `invalid_channel_restriction_mode` -- Cannot remove channels when channel_restriction_mode is all_channels. - `channel_not_found` -- One or more channel IDs are not valid. - `failed_to_update_channels` -- An error occurred while updating the channel restriction list. - `restricted_action` -- User does not have permission to perform this action. - `app_acl_write_failed` -- A transient database error (e.g. a deadlock) prevented the permission change from being saved. No change was applied; retry the request. See https://docs.slack.dev/reference/methods/admin.apps.permissions.remove */
2650
2831
  export declare const removeAppsPermissions: API.OperationMethod<RemoveAppsPermissionsRequest, RemoveAppsPermissionsResponse, RemoveAppsPermissionsError, SlackOpContext>;
2651
2832
  export type RemoveAssignmentsError = SlackOpError;
2652
- /** Removes a set of users from a role for the given scopes and entities Required scopes -- user: `admin.roles:write` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `failed_for_some_entities` -- At least one role scope ID was invalid - `failed_for_some_users` -- At least one user ID was invalid - `failed_for_some_users_and_entities` -- At least one role scope ID was invalid - `feature_not_enabled` -- This API is currently not enabled. - `invalid_actor` -- This API is only enabled for the Admins/Owners. - `invalid_role_id` -- The role type passed does not exist. - `no_valid_entities` -- None of the entities passed were valid. - `no_valid_users` -- None of the users passed were valid. - `too_many_entities` -- More than 10 role scopes were passed. - `too_many_users` -- More than 10 users were passed. - `cannot_modify_role_admin` -- The user does not have permission to modify the admin role. See https://docs.slack.dev/reference/methods/admin.roles.removeAssignments */
2833
+ /** Removes a set of users from a role for the given scopes and entities Required scopes -- user: `admin.roles:write` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `failed_for_some_entities` -- At least one role scope ID was invalid - `failed_for_some_users` -- At least one user ID was invalid - `failed_for_some_users_and_entities` -- At least one role scope ID was invalid - `feature_not_enabled` -- This API is currently not enabled. - `invalid_actor` -- This API is only enabled for the Admins/Owners. - `invalid_role_id` -- The role type passed does not exist. - `no_valid_entities` -- None of the entities passed were valid. - `no_valid_users` -- None of the users passed were valid. - `too_many_entities` -- More than 10 role scopes were passed. - `too_many_users` -- More than 10 users were passed. - `cannot_modify_role_admin` -- The user does not have permission to modify the admin role. - `not_permitted` -- Users cannot be assigned to or removed from a permission set. See https://docs.slack.dev/reference/methods/admin.roles.removeAssignments */
2653
2834
  export declare const removeAssignments: API.OperationMethod<RemoveAssignmentsRequest, RemoveAssignmentsResponse, RemoveAssignmentsError, SlackOpContext>;
2654
2835
  export type RemoveChannelsError = SlackOpError;
2655
2836
  /** Remove one or more default channels from an org-level IDP group (user group). Required scopes -- user: `admin.usergroups:write` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `channel_not_found` -- At least one of the provided channel IDs could not be found, or one of those channels has a type that is not supported. - `feature_not_enabled` -- The Admin APIs feature is not enabled for this workspace. - `invalid_auth` -- The workspace specified is not part of this Enterprise organization. - `invalid_channels_limit` -- The number of channel IDs passed in is larger than 100. - `not_an_admin` -- The calling user cannot update the specified usergroup. - `not_an_enterprise` -- The token passed in does not belong to an Enterprise organization. - `usergroup_not_found` -- The IDP group provided was not found. - `internal_error` -- There was an internal error processing this request--please retry. See https://docs.slack.dev/reference/methods/admin.usergroups.removeChannels */
@@ -2658,7 +2839,7 @@ export type RemoveCustomRetentionError = SlackOpError;
2658
2839
  /** This API endpoint can be used by any admin to remove a conversation's retention policy. Required scopes -- user: `admin.conversations:write` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `channel_not_found` -- Value given for `channel_id` was invalid. - `channel_type_not_supported` -- Value given for `channel_id` was a #general channel. - `could_not_remove_retention` -- The retention policy could not be removed. - `default_org_wide_channel` -- The channel given is a default org-wide channel. - `feature_not_enabled` -- The Admin APIs feature is not enabled for this team. - `not_an_admin` -- The token provided is not associated with an admin. - `restricted_action` -- A team preference prevents the authenticated user from modifying the retention policy of this channel. - `retention_override_not_allowed` -- The current retention policy disallows modifying the retention policy of this channel. - `not_supported` -- This type of channel isn't supported by this method. - `external_channel_migrating` -- The channel is an externally shared channel that is currently being migrated. See https://docs.slack.dev/reference/methods/admin.conversations.removeCustomRetention */
2659
2840
  export declare const removeCustomRetention: API.OperationMethod<RemoveCustomRetentionRequest, RemoveCustomRetentionResponse, RemoveCustomRetentionError, SlackOpContext>;
2660
2841
  export type RemoveEmojiError = SlackOpError;
2661
- /** Remove an emoji across an Enterprise organization Required scopes -- user: `admin.teams:write` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `emoji_not_found` -- Value passed for `name` was invalid. - `failed_to_remove_emoji` -- Failed to remove the specified emoji. - `failure_removing_emoji` -- This emoji could not be removed. It might be part of the standard Unicode set or the default Slack package. - `feature_not_enabled` -- The Admin APIs feature is not enabled for this team. - `not_an_admin` -- This method is only accessible by org owners and Admins. See https://docs.slack.dev/reference/methods/admin.emoji.remove */
2842
+ /** Remove an emoji across an Enterprise organization Required scopes -- user: `admin.teams:write` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `emoji_not_found` -- Value passed for `name` was invalid. - `failed_to_remove_emoji` -- Failed to remove the specified emoji. - `failure_removing_emoji` -- This emoji could not be removed. It might be part of the standard Unicode set or the default Slack package. - `feature_not_enabled` -- The Admin APIs feature is not enabled for this team. - `not_an_enterprise` -- The workspace is not an Enterprise organization, or an Enterprise+ workspace with Admin API access. - `not_an_admin` -- This method is only accessible by org owners and Admins. See https://docs.slack.dev/reference/methods/admin.emoji.remove */
2662
2843
  export declare const removeEmoji: API.OperationMethod<RemoveEmojiRequest, RemoveEmojiResponse, RemoveEmojiError, SlackOpContext>;
2663
2844
  export type RemoveEntitiesError = SlackOpError;
2664
2845
  /** Remove specified entities from a specified authentication policy. Required scopes -- user: `admin.users:write` Rate limit tier: 4 Method-specific errors (the `error` slug on the SlackError): - `entity_not_found` -- At least one `entity_id` was not found - `feature_not_enabled` -- This method is only available to Enterprise customers. - `internal_error` -- There was an internal error processing this request--please retry. - `invalid_arguments` -- Required arguments either were not provided or contain invalid values. - `invalid_auth` -- The provided token doesn't have access to this endpoint. - `not_an_admin` -- This method is only accessible by Org Owners and Admins. - `policy_not_found` -- The `policy_name` could not be found. - `ratelimited` -- The rate limit for this endpoint has been reached. See https://docs.slack.dev/reference/methods/admin.auth.policy.removeEntities */
@@ -2682,7 +2863,7 @@ export type RenameConversationError = SlackOpError;
2682
2863
  /** Rename a public or private channel. Required scopes -- user: `admin.conversations:write` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `channel_not_found` -- The value passed for `channel_id` was invalid. - `channel_type_not_supported` -- The provided `channel_id` was a DM, MPDM, or the 'general' channel. - `could_not_rename_channel` -- The channel could not be renamed. - `default_org_wide_channel` -- The default org-wide channel can't be renamed. - `feature_not_enabled` -- The token provided doesn't have access to this method. - `invalid_name_maxlength` -- The channel name exceeds the maximum allowed length. - `name_taken` -- The channel's name is already being used elsewhere. - `restricted_action` -- A workspace preference prevents the authenticated user from renaming a channel. - `external_channel_migrating` -- The channel is an externally shared channel that is currently being migrated and can't be renamed. - `not_supported` -- This type of channel doesn't support renaming through this method. See https://docs.slack.dev/reference/methods/admin.conversations.rename */
2683
2864
  export declare const renameConversation: API.OperationMethod<RenameConversationRequest, RenameConversationResponse, RenameConversationError, SlackOpContext>;
2684
2865
  export type RenameEmojiError = SlackOpError;
2685
- /** Rename an emoji. Required scopes -- user: `admin.teams:write` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `cannot_resolve_alias` -- The alias emoji could not be resolved - `error_bad_name_i18n` -- Value passed for `new_name` was invalid. - `error_invalid_emoji_to_rename` -- Value passed for `name` was invalid. - `error_missing_name` -- Value passed for `name` is missing or empty. - `error_name_taken` -- Value passed for `name` already exists. - `error_name_taken_i18n` -- The name has already been taken by another emoji, in the international set. Emoji must have unique names. - `failed_to_fetch_active_team` -- There are no active teams on the org and we need at least one. - `failed_to_rename_emoji` -- The emoji could not be renamed. - `feature_not_enabled` -- The Admin APIs feature is not enabled for this team. - `not_an_admin` -- This method is only accessible by org owners and Admins. See https://docs.slack.dev/reference/methods/admin.emoji.rename */
2866
+ /** Rename an emoji. Required scopes -- user: `admin.teams:write` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `cannot_resolve_alias` -- The alias emoji could not be resolved - `error_bad_name_i18n` -- Value passed for `new_name` was invalid. - `error_invalid_emoji_to_rename` -- Value passed for `name` was invalid. - `error_missing_name` -- Value passed for `name` is missing or empty. - `error_name_taken` -- Value passed for `name` already exists. - `error_name_taken_i18n` -- The name has already been taken by another emoji, in the international set. Emoji must have unique names. - `failed_to_fetch_active_team` -- There are no active teams on the org and we need at least one. - `failed_to_rename_emoji` -- The emoji could not be renamed. - `feature_not_enabled` -- The Admin APIs feature is not enabled for this team. - `not_an_enterprise` -- The workspace is not an Enterprise organization, or an Enterprise+ workspace with Admin API access. - `not_an_admin` -- This method is only accessible by org owners and Admins. See https://docs.slack.dev/reference/methods/admin.emoji.rename */
2686
2867
  export declare const renameEmoji: API.OperationMethod<RenameEmojiRequest, RenameEmojiResponse, RenameEmojiError, SlackOpContext>;
2687
2868
  export type ResetBulkError = SlackOpError;
2688
2869
  /** Enqueues an asynchronous job to wipe all valid sessions on all devices for a given list of users Required scopes -- user: `admin.users:write` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `cannot_reset_bot` -- Cannot reset bot users - `cannot_reset_primary_owner` -- Only primary owner can reset primary owner's sessions - `failed_for_some_users` -- Some user ids failed to have their session invalidated. Details in extended comments - `feature_not_enabled` -- This method is not available for this product level - `internal_error` -- There was an internal error processing this request! Please try again. - `invalid_auth` -- The token doesn't have access to this endpoint - `not_an_admin` -- This method is only accessible by org/compliance team owners and admins - `session_reset_not_allowed` -- Only primary owner can reset primary owner's sessions - `unknown_method` -- This method is currently not available - `user_not_found` -- Error fetching user - `user_session_reset_failed` -- There was an error starting the session reset. Try again. - `restricted_action` -- Restricted action. See https://docs.slack.dev/reference/methods/admin.users.session.resetBulk */
@@ -2709,13 +2890,13 @@ export type SetAppsMcpServersPermissionsError = SlackOpError;
2709
2890
  /** Set the access control permission for who can use an MCP server Required scopes -- user: `admin.apps:write` Rate limit tier: 3 Method-specific errors (the `error` slug on the SlackError): - `restricted_action` -- User does not have permission to perform this action. - `invalid_auth` -- Invalid authorization token - `app_not_found` -- This app does not exist. - `server_not_found` -- The specified MCP server does not exist for this app. - `not_an_enterprise` -- This feature is only available on Enterprise Grid plans. - `invalid_permission_type` -- The permission_type value is not valid. - `named_entities_cannot_be_empty` -- Must pass at least one valid named entity when permission_type is named_entities or named_entities_exclude. - `no_valid_named_entities` -- None of the provided named entities were valid. - `user_not_found` -- One or more user IDs are not valid. - `usergroup_not_found` -- One or more usergroup IDs are not valid. - `server_acl_type_broader_than_app` -- The chosen permission type is broader than the app-level ACL allows. - `server_acl_entities_not_in_scope` -- One or more entities in the server ACL are not in scope of the app-level ACL. - `entities_not_supported` -- user_ids or usergroup_ids were provided, but the permission_type does not accept named entities. Only named_entities and named_entities_exclude do. See https://docs.slack.dev/reference/methods/admin.apps.mcp.servers.permissions.set */
2710
2891
  export declare const setAppsMcpServersPermissions: API.OperationMethod<SetAppsMcpServersPermissionsRequest, SetAppsMcpServersPermissionsResponse, SetAppsMcpServersPermissionsError, SlackOpContext>;
2711
2892
  export type SetAppsPermissionsError = SlackOpError;
2712
- /** Set the permission type for who can access an app Required scopes -- user: `admin.apps:write` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `invalid_auth` -- Invalid authorization token - `access_denied` -- This actor does not have access to the permissions on this resource. - `invalid_permission_type` -- This app requires permission_type to be set as named_entities before adding users. - `named_entities_cannot_be_empty` -- Must pass at least one valid named entity. - `no_valid_named_entities` -- None of the provided named entities were valid - `too_many_named_entities` -- Too many named_entities passed into the app permissions setting. - `app_not_found` -- This app does not exist. - `not_an_enterprise` -- This feature is only available on Enterprise Grid plans. - `user_not_found` -- This actor does not have access to at least one valid named entity. - `usergroup_not_found` -- The usergroup is not valid. - `invalid_channel_restriction_mode` -- The channel_restriction_mode value is not valid. - `channel_ids_required` -- channel_ids is required when channel_restriction_mode is specific_channels or all_channels_except. - `channel_not_found` -- One or more channel IDs are not valid, are not in this organization, or name a private channel that is not already set on the app and that the caller is neither a member of nor permitted to manage. - `restricted_action` -- User does not have permission to perform this action. - `channel_restrictions_not_available` -- Channel restrictions are not available for this workspace. - `channel_restriction_requires_app_access` -- Channel access cannot be configured while the app is set to no_one, since the app can't be used in any channel. - `app_acl_write_failed` -- A transient database error (e.g. a deadlock) prevented the permission change from being saved. No change was applied; retry the request. See https://docs.slack.dev/reference/methods/admin.apps.permissions.set */
2893
+ /** Set the permission type for who can access an app Required scopes -- user: `admin.apps:write` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `invalid_auth` -- Invalid authorization token - `access_denied` -- This actor does not have access to the permissions on this resource. - `invalid_permission_type` -- This app requires permission_type to be set as named_entities before adding users. - `named_entities_cannot_be_empty` -- Must pass at least one valid named entity. - `no_valid_named_entities` -- None of the provided named entities were valid - `too_many_named_entities` -- Too many named_entities passed into the app permissions setting. - `app_not_found` -- This app does not exist. - `not_an_enterprise` -- This feature is only available on Enterprise Grid plans. - `user_not_found` -- This actor does not have access to at least one valid named entity. A user ID that is already set on the app under the same permission_type is kept even if it no longer resolves, for example a deactivated user. - `usergroup_not_found` -- The usergroup is not valid. - `invalid_channel_restriction_mode` -- The channel_restriction_mode value is not valid. - `channel_ids_required` -- channel_ids is required when channel_restriction_mode is specific_channels or all_channels_except. - `channel_not_found` -- One or more channel IDs are not valid, are not in this organization, or name a private channel that is not already set on the app and that the caller is neither a member of nor permitted to manage. - `restricted_action` -- User does not have permission to perform this action. - `channel_restrictions_not_available` -- Channel restrictions are not available for this workspace. - `channel_restriction_requires_app_access` -- Channel access cannot be configured while the app is set to no_one, since the app can't be used in any channel. - `app_acl_write_failed` -- A transient database error (e.g. a deadlock) prevented the permission change from being saved. No change was applied; retry the request. See https://docs.slack.dev/reference/methods/admin.apps.permissions.set */
2713
2894
  export declare const setAppsPermissions: API.OperationMethod<SetAppsPermissionsRequest, SetAppsPermissionsResponse, SetAppsPermissionsError, SlackOpContext>;
2714
2895
  export type SetAutoEnabledError = SlackOpError;
2715
2896
  /** Sets who a Slackbot skill is automatically turned on for. Required scopes -- user: `admin.skills:write` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `feature_not_enabled` -- The Skills API is not enabled for this organization or workspace. - `restricted_action` -- The caller must be an org admin or owner with permission to manage skills. - `internal_error` -- The operation could not be completed. Retry the request. - `skill_not_found` -- The skill is missing, deleted, no longer a skill, or outside this organization or workspace. - `method_not_supported_for_skill_type` -- Only canvas skills can be deployed. - `skill_not_visible_to_audience` -- Share the skill first. usergroup_ids lists the groups that cannot view it. - `audience_too_large` -- Validating this audience requires more than 1,000 member checks across the requested groups. Overlapping members count once per group. Select a smaller audience, or share the canvas org-wide if that access is intended, before retrying. - `named_entities_cannot_be_empty` -- Provide at least one user group for named_entities. - `usergroup_not_found` -- invalid_usergroup_ids lists missing, deleted or foreign user groups. - `too_many_named_entities` -- Provide at most 100 user groups. - `invalid_permission_type` -- Use everyone, named_entities or no_one. - `usergroup_ids_not_allowed` -- Only named_entities accepts usergroup_ids. See https://docs.slack.dev/reference/methods/admin.slackbot.skills.setAutoEnabled */
2716
2897
  export declare const setAutoEnabled: API.OperationMethod<SetAutoEnabledRequest, SetAutoEnabledResponse, SetAutoEnabledError, SlackOpContext>;
2717
2898
  export type SetConversationPrefsError = SlackOpError;
2718
- /** Set the posting permissions for a public or private channel. Required scopes -- user: `admin.conversations:write` Rate limit tier: 3 Method-specific errors (the `error` slug on the SlackError): - `channel_mention_sync_required` -- If setting channel mention restriction prefs, both mention prefs must be passed and they must be the same value. - `channel_not_found` -- Value passed for `channel` was invalid. - `channel_type_not_supported` -- Value given for `channel_id` was a #general channel. - `could_not_set_channel_pref` -- Setting the preference or permission failed. - `default_org_wide_channel` -- Returned when you try to modify a default org wide channel. - `feature_not_enabled` -- The Admin APIs feature is not enabled for this team. - `invalid_value` -- Value passed for the preferences are invalid - `missing_scope` -- The calling token is not granted the necessary scopes to complete this operation. - `not_an_admin` -- The token provided is not associated with an org admin. - `restricted_action` -- A workspace preference prevents the authenticated user from archiving. See https://docs.slack.dev/reference/methods/admin.conversations.setConversationPrefs */
2899
+ /** Set the posting permissions for a public or private channel. Required scopes -- user: `admin.conversations:write` Rate limit tier: 3 Method-specific errors (the `error` slug on the SlackError): - `channel_mention_sync_required` -- If setting channel mention restriction prefs, both mention prefs must be passed and they must be the same value. - `channel_not_found` -- Value passed for `channel` was invalid. - `channel_type_not_supported` -- Value given for `channel_id` was a #general channel. - `could_not_set_channel_pref` -- Setting the preference or permission failed. - `default_org_wide_channel` -- Returned when you try to modify a default org wide channel. - `feature_not_enabled` -- The Admin APIs feature is not enabled for this team. - `invalid_value` -- Value passed for the preferences are invalid - `missing_scope` -- The calling token is not granted the necessary scopes to complete this operation. - `not_an_admin` -- The token provided is not associated with an org admin. - `restricted_action` -- A workspace preference prevents the authenticated user from archiving. - `target_team_not_on_org` -- The specified target_team is not part of the organization. See https://docs.slack.dev/reference/methods/admin.conversations.setConversationPrefs */
2719
2900
  export declare const setConversationPrefs: API.OperationMethod<SetConversationPrefsRequest, SetConversationPrefsResponse, SetConversationPrefsError, SlackOpContext>;
2720
2901
  export type SetCustomRetentionError = SlackOpError;
2721
2902
  /** This API endpoint can be used by any admin to set a conversation's retention policy. Required scopes -- user: `admin.conversations:write` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `channel_not_found` -- Value given for `channel_id` was invalid. - `channel_type_not_supported` -- Value given for `channel_id` was a group dm, direct message, or #general channel. - `could_not_set_retention` -- The retention policy could not be set. - `default_org_wide_channel` -- The channel given is a default org-wide channel. - `feature_not_enabled` -- The Admin APIs feature is not enabled for this team. - `invalid_duration` -- Retention `duration_days` must be an integer greater than 0 days and less than 36500 days (100 years). - `not_an_admin` -- The token provided is not associated with an admin. - `restricted_action` -- A team preference prevents the authenticated user from modifying the retention policy of this channel. - `retention_override_not_allowed` -- The current retention policy disallows modifying the retention policy of this channel. - `not_supported` -- This type of channel isn't supported by this method. - `external_channel_migrating` -- The channel is an externally shared channel that is currently being migrated. See https://docs.slack.dev/reference/methods/admin.conversations.setCustomRetention */
@@ -2742,10 +2923,10 @@ export type SetNameError = SlackOpError;
2742
2923
  /** Set the name of a given workspace. Required scopes -- user: `admin.teams:write` Rate limit tier: 3 Method-specific errors (the `error` slug on the SlackError): - `failed_to_set_name` -- Returned when there is an error to set the name - `feature_not_enabled` -- The Admin APIs feature is not enabled for this team. - `team_not_found` -- Returned when team_id can't be resolved See https://docs.slack.dev/reference/methods/admin.teams.settings.setName */
2743
2924
  export declare const setName: API.OperationMethod<SetNameRequest, SetNameResponse, SetNameError, SlackOpContext>;
2744
2925
  export type SetOwnerError = SlackOpError;
2745
- /** Set an existing regular user or admin to be a workspace or org owner. Required scopes -- user: `admin.users:write` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `cannot_modify_primary_owner` -- The primary owner cannot be modified. - `failed_to_set_user_to_owner` -- The change to the user's role failed. - `failed_to_set_owner_on_workspaces` -- Failed to set the user as an owner on all workspaces. - `feature_not_enabled` -- The Admin APIs feature is not enabled for this team. - `invalid_role_for_user` -- The user cannot be made into an owner. - `not_an_admin` -- This method can only be accessed by org owners and admins. - `not_supported` -- This is not a supported action. - `team_not_found` -- `team_id` was not found. - `user_must_be_in_workspace` -- This user must be a member of at least one workspace. - `user_not_found` -- The requested user was not found. See https://docs.slack.dev/reference/methods/admin.users.setOwner */
2926
+ /** Set an existing regular user or admin to be a workspace or org owner. Required scopes -- user: `admin.users:write` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `cannot_modify_primary_owner` -- The primary owner cannot be modified. - `failed_to_set_user_to_owner` -- The change to the user's role failed. - `failed_to_set_owner_on_workspaces` -- Failed to set the user as an owner on all workspaces. - `feature_not_enabled` -- The Admin APIs feature is not enabled for this team. - `invalid_role_for_user` -- The user cannot be made into an owner. - `not_an_enterprise` -- The workspace is not an Enterprise organization, or an Enterprise+ workspace with Admin API access. - `not_an_admin` -- This method can only be accessed by org owners and admins. - `not_supported` -- This is not a supported action. - `restricted_action` -- `team_id` is not in the authed organization or workspace, or `user_id` is not in it. - `team_not_found` -- `team_id` was not found. - `user_must_be_in_workspace` -- This user must be a member of at least one workspace. - `user_not_found` -- The requested user was not found. See https://docs.slack.dev/reference/methods/admin.users.setOwner */
2746
2927
  export declare const setOwner: API.OperationMethod<SetOwnerRequest, SetOwnerResponse, SetOwnerError, SlackOpContext>;
2747
2928
  export type SetRegularError = SlackOpError;
2748
- /** Set an existing guest user, admin user, or owner to be a regular user. Required scopes -- user: `admin.users:write` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `cannot_set_org_admin_to_regular_at_workspace_level` -- Org admins cannot be set to regular at the workspace level. Change their user type at the org level instead. - `cannot_set_this_guest_to_regular_at_team_level` -- This guest cannot be set to regular because they are active on multiple workspaces. - `cannot_modify_primary_owner` -- The primary owner cannot be modified. - `failed_to_set_user_to_regular` -- Changing a user to a regular member failed. - `feature_not_enabled` -- The Admin APIs feature is not enabled for this team. - `invalid_role_for_user` -- The user's current role does not allow this change. - `not_an_admin` -- This method can only be accessed by org owners and admins. - `team_not_found` -- `team_id` was not found. - `user_not_found` -- The requested user was not found. - `inviter_email_not_verified` -- The target is an invited user, and the user whose token is calling this method has not verified the email address on their own account. They must verify it before changing an invited user's account type. See https://docs.slack.dev/reference/methods/admin.users.setRegular */
2929
+ /** Set an existing guest user, admin user, or owner to be a regular user. When `team_id` is an organization, the user is also set to a regular user on every workspace where they are a workspace owner, including workspaces where they were an owner before becoming an org admin or owner. Required scopes -- user: `admin.users:write` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `cannot_set_org_admin_to_regular_at_workspace_level` -- Org admins cannot be set to regular at the workspace level. Change their user type at the org level instead. - `cannot_set_this_guest_to_regular_at_team_level` -- This guest cannot be set to regular because they are active on multiple workspaces. - `cannot_modify_primary_owner` -- The primary owner cannot be modified. - `failed_to_set_user_to_regular` -- Changing a user to a regular member failed. - `failed_to_set_regular_on_workspaces` -- The user was set to a regular member of the org, but removing their Workspace Owner role failed on one or more workspaces. Call the method again to retry. - `feature_not_enabled` -- The Admin APIs feature is not enabled for this team. - `invalid_role_for_user` -- The user's current role does not allow this change. - `not_an_admin` -- This method can only be accessed by org owners and admins. - `team_not_found` -- `team_id` was not found. - `user_not_found` -- The requested user was not found. - `inviter_email_not_verified` -- The target is an invited user, and the user whose token is calling this method has not verified the email address on their own account. They must verify it before changing an invited user's account type. See https://docs.slack.dev/reference/methods/admin.users.setRegular */
2749
2930
  export declare const setRegular: API.OperationMethod<SetRegularRequest, SetRegularResponse, SetRegularError, SlackOpContext>;
2750
2931
  export type SetSettingsError = SlackOpError;
2751
2932
  /** Configure the user-level session settings--the session duration and what happens when the client closes--for one or more users. Required scopes -- user: `admin.users:write` Rate limit tier: 4 Method-specific errors (the `error` slug on the SlackError): - `admin_unauthorized` -- The token provided doesn't have permission to revoke a session. - `at_least_one_session_setting_required` -- At least one session setting is required. - `bots_not_allowed` -- Bot sessions are not listed by this method. - `feature_not_enabled` -- This method is only available for Enterprise organizations. - `internal_error` -- There was an internal error processing this request--please retry. - `invalid_arguments` -- Required arguments either were not provided or contain invalid values. - `invalid_auth` -- The token doesn't have access to this endpoint. - `not_an_admin` -- This method is only accessible by Org Owners and Admins - `ratelimited` -- The rate limit for this endpoint has been reached. - `unable_to_update_existing_sessions` -- The session settings could not be applied to users' existing sessions. - `unknown_method` -- This method is currently not available. - `user_not_found` -- At least one of the requested users doesn't exist. See https://docs.slack.dev/reference/methods/admin.users.session.setSettings */
@@ -2778,10 +2959,10 @@ export type UpdateBarrierError = SlackOpError;
2778
2959
  /** Update an existing Information Barrier Required scopes -- user: `admin.barriers:write` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `barrier_already_exists` -- There already exists another barrier restricting activity between two or more of your requested usergroups. - `barrier_not_found` -- The barrier you're trying to update cannot be found. - `barriered_from_usergroups_not_found` -- One or more of the ids passed in for barriered_from_usergroup_ids can't be found. - `feature_not_enabled` -- The information barrier feature is not enabled, please reach out to your CSM. - `invalid_restricted_subjects` -- The restricted subjects provided are invalid or not currently supported. - `not_an_admin` -- The token provided is not associated with an org admin. - `primary_usergroup_not_found` -- The id passed in for primary_usergroup_id can't be found. See https://docs.slack.dev/reference/methods/admin.barriers.update */
2779
2960
  export declare const updateBarrier: API.OperationMethod<UpdateBarrierRequest, UpdateBarrierResponse, UpdateBarrierError, SlackOpContext>;
2780
2961
  export type UpdateItemError = SlackOpError;
2781
- /** API to allow Enterprise org admins to write/overwrite the allow list of IP blocks and ASNs from the enterprise configuration. Required scopes -- user: `admin` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `endpoint_unavailable` -- The requested endpoint is currently unavailable. - `invalid_field_or_data` -- user attempted to write and invalid field or data to the team config - `unable_to_process_post_request` -- The user sent a malformed post request - `unsupported_action_describe` -- The user specified describe action is unsupported - `unsupported_action_put` -- The user specified put action is unsupported See https://docs.slack.dev/reference/methods/admin.audit.anomaly.allow.updateItem */
2962
+ /** API to allow Enterprise org admins to write/overwrite the allow list of IP blocks and ASNs from the enterprise configuration. Required scopes -- user: `admin` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `endpoint_unavailable` -- The requested endpoint is currently unavailable. - `invalid_field_or_data` -- user attempted to write and invalid field or data to the team config - `unable_to_process_post_request` -- The user sent a malformed post request - `unsupported_action_describe` -- The user specified describe action is unsupported - `unsupported_action_put` -- The user specified put action is unsupported - `insufficient_permissions` -- This method is only accessible by org owners and Admins. - `not_an_admin` -- This method is only accessible by workspace owners and Admins. - `not_an_enterprise` -- The workspace is not an Enterprise organization, or an Enterprise+ workspace with Admin API access. - `team_is_restricted` -- The token belongs to a workspace on an Enterprise organization. Use an org-level token. - `two_factor_setup_required` -- Two factor authentication needs to be set up. See https://docs.slack.dev/reference/methods/admin.audit.anomaly.allow.updateItem */
2782
2963
  export declare const updateItem: API.OperationMethod<UpdateItemRequest, UpdateItemResponse, UpdateItemError, SlackOpContext>;
2783
2964
  export type UpdateUsergroupError = SlackOpError;
2784
- /** Update one or more properties of an existing organizational usergroup. Required scopes -- user: `admin.usergroups:write` Rate limit tier: 1 Method-specific errors (the `error` slug on the SlackError): - `feature_not_enabled` -- The Admin APIs feature is not enabled for this workspace. - `invalid_auth` -- The workspace specified is not part of this organization. - `restricted_action` -- The calling user cannot modify the specified usergroup, or the usergroup is managed by an identity provider (IdP) and its name cannot be changed through this API. - `not_an_enterprise` -- The token passed in does not belong to an Enterprise organization. - `invalid_usergroup` -- A usergroup with the specified ID does not exist. - `name_already_exists` -- The name specified is used by another usergroup and cannot be updated. - `handle_already_exists` -- The handle specified is used by another usergroup or entity and cannot be updated. - `visible_group_needs_handle` -- Tried to set the group to visible but did not provide a handle. - `too_many_usergroup_members_to_make_visible` -- Tried to set the group to visible but the group has too many members - `user_channel_limit_exceeded` -- Adding these channels would cause one or more members to exceed their channel limit. - `cannot_modify_pref_after_creation` -- This preference can only be set when the group is created and cannot be changed afterward. See https://docs.slack.dev/reference/methods/admin.usergroups.update */
2965
+ /** Update one or more properties of an existing organizational usergroup. Required scopes -- user: `admin.usergroups:write` Rate limit tier: 1 Method-specific errors (the `error` slug on the SlackError): - `feature_not_enabled` -- The Admin APIs feature is not enabled for this workspace. - `invalid_auth` -- The workspace specified is not part of this organization. - `restricted_action` -- The calling user cannot modify the specified usergroup, or the usergroup is managed by an identity provider (IdP) and its name cannot be changed through this API. - `not_an_enterprise` -- The token passed in does not belong to an Enterprise organization. - `invalid_usergroup` -- A usergroup with the specified ID does not exist. - `name_already_exists` -- The name specified is used by another usergroup and cannot be updated. - `handle_already_exists` -- The handle specified is used by another usergroup or entity and cannot be updated. - `empty_name` -- The name specified is empty once invalid characters are removed. - `name_too_long` -- The name specified is longer than 100 characters. - `forbidden_name` -- The name specified is not allowed (reserved names such as `team admins` or `team owners` cannot be used). - `handle_too_long` -- The handle specified is longer than 100 characters. - `forbidden_handle` -- The handle specified is not allowed (reserved handles such as `admins` or `owners` cannot be used). - `bad_handle` -- The handle specified is not valid. Handles must be lowercase, may only contain letters, numbers, periods, hyphens and underscores (no spaces, accented letters or other punctuation), and must start with a letter, number or hyphen. - `description_too_long` -- The description specified is longer than 140 characters. - `visible_group_needs_handle` -- Tried to set the group to visible but did not provide a handle. - `too_many_usergroup_members_to_make_visible` -- Tried to set the group to visible but the group has too many members - `user_channel_limit_exceeded` -- Adding these channels would cause one or more members to exceed their channel limit. - `cannot_modify_pref_after_creation` -- This preference can only be set when the group is created and cannot be changed afterward. See https://docs.slack.dev/reference/methods/admin.usergroups.update */
2785
2966
  export declare const updateUsergroup: API.OperationMethod<UpdateUsergroupRequest, UpdateUsergroupResponse, UpdateUsergroupError, SlackOpContext>;
2786
2967
  export type UploadUsersError = SlackOpError;
2787
2968
  /** Add members to an existing organizational usergroup in bulk via CSV upload. This method is only available to Enterprise Grid organizations. Required scopes -- user: `admin.usergroups:write` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `feature_not_enabled` -- The Admin APIs feature is not enabled for this workspace. - `invalid_auth` -- The workspace specified is not part of this organization. - `restricted_action` -- The calling user cannot modify the specified usergroup, or the usergroup's membership is managed by an identity provider (IdP) and can only be changed through SCIM. - `not_an_enterprise` -- The token passed in does not belong to an Enterprise organization. - `invalid_usergroup` -- A usergroup with the specified ID does not exist. - `no_valid_users` -- There were no valid users provided in the csv. - `unable_to_parse_csv` -- Could not parse the uploaded csv. - `member_count_would_exceed_visible_limit` -- The usergroup is visible and the member count would exceed the limit. - `cannot_modify_role_admin` -- The user does not have permission to modify the roles admin role. - `subteam_limit_exceeded` -- A csv upload can only contain at most 15k users. See https://docs.slack.dev/reference/methods/admin.usergroups.uploadUsers */