@distilled.cloud/slack 0.0.0 → 1.0.0-rc.10

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 (212) hide show
  1. package/LICENSE +201 -0
  2. package/lib/credentials.d.ts +27 -0
  3. package/lib/credentials.d.ts.map +1 -0
  4. package/lib/credentials.js +53 -0
  5. package/lib/credentials.js.map +1 -0
  6. package/lib/errors.d.ts +83 -0
  7. package/lib/errors.d.ts.map +1 -0
  8. package/lib/errors.js +59 -0
  9. package/lib/errors.js.map +1 -0
  10. package/lib/index.d.ts +17 -0
  11. package/lib/index.d.ts.map +1 -0
  12. package/lib/index.js +17 -0
  13. package/lib/index.js.map +1 -0
  14. package/lib/pagination.d.ts +31 -0
  15. package/lib/pagination.d.ts.map +1 -0
  16. package/lib/pagination.js +31 -0
  17. package/lib/pagination.js.map +1 -0
  18. package/lib/protocol.d.ts +18 -0
  19. package/lib/protocol.d.ts.map +1 -0
  20. package/lib/protocol.js +230 -0
  21. package/lib/protocol.js.map +1 -0
  22. package/lib/retry.d.ts +52 -0
  23. package/lib/retry.d.ts.map +1 -0
  24. package/lib/retry.js +45 -0
  25. package/lib/retry.js.map +1 -0
  26. package/lib/services/admin.d.ts +2796 -0
  27. package/lib/services/admin.d.ts.map +1 -0
  28. package/lib/services/admin.js +3217 -0
  29. package/lib/services/admin.js.map +1 -0
  30. package/lib/services/api.d.ts +23 -0
  31. package/lib/services/api.d.ts.map +1 -0
  32. package/lib/services/api.js +26 -0
  33. package/lib/services/api.js.map +1 -0
  34. package/lib/services/apps.d.ts +568 -0
  35. package/lib/services/apps.d.ts.map +1 -0
  36. package/lib/services/apps.js +584 -0
  37. package/lib/services/apps.js.map +1 -0
  38. package/lib/services/assistant.d.ts +290 -0
  39. package/lib/services/assistant.d.ts.map +1 -0
  40. package/lib/services/assistant.js +232 -0
  41. package/lib/services/assistant.js.map +1 -0
  42. package/lib/services/auth.d.ts +90 -0
  43. package/lib/services/auth.d.ts.map +1 -0
  44. package/lib/services/auth.js +114 -0
  45. package/lib/services/auth.js.map +1 -0
  46. package/lib/services/blocks.d.ts +31 -0
  47. package/lib/services/blocks.d.ts.map +1 -0
  48. package/lib/services/blocks.js +31 -0
  49. package/lib/services/blocks.js.map +1 -0
  50. package/lib/services/bookmarks.d.ts +91 -0
  51. package/lib/services/bookmarks.d.ts.map +1 -0
  52. package/lib/services/bookmarks.js +98 -0
  53. package/lib/services/bookmarks.js.map +1 -0
  54. package/lib/services/bots.d.ts +60 -0
  55. package/lib/services/bots.d.ts.map +1 -0
  56. package/lib/services/bots.js +68 -0
  57. package/lib/services/bots.js.map +1 -0
  58. package/lib/services/calls.d.ts +124 -0
  59. package/lib/services/calls.d.ts.map +1 -0
  60. package/lib/services/calls.js +136 -0
  61. package/lib/services/calls.js.map +1 -0
  62. package/lib/services/canvases.d.ts +152 -0
  63. package/lib/services/canvases.d.ts.map +1 -0
  64. package/lib/services/canvases.js +152 -0
  65. package/lib/services/canvases.js.map +1 -0
  66. package/lib/services/chat.d.ts +525 -0
  67. package/lib/services/chat.d.ts.map +1 -0
  68. package/lib/services/chat.js +436 -0
  69. package/lib/services/chat.js.map +1 -0
  70. package/lib/services/conversations.d.ts +642 -0
  71. package/lib/services/conversations.d.ts.map +1 -0
  72. package/lib/services/conversations.js +769 -0
  73. package/lib/services/conversations.js.map +1 -0
  74. package/lib/services/dialog.d.ts +20 -0
  75. package/lib/services/dialog.d.ts.map +1 -0
  76. package/lib/services/dialog.js +27 -0
  77. package/lib/services/dialog.js.map +1 -0
  78. package/lib/services/dnd.d.ts +94 -0
  79. package/lib/services/dnd.d.ts.map +1 -0
  80. package/lib/services/dnd.js +111 -0
  81. package/lib/services/dnd.js.map +1 -0
  82. package/lib/services/emoji.d.ts +35 -0
  83. package/lib/services/emoji.d.ts.map +1 -0
  84. package/lib/services/emoji.js +40 -0
  85. package/lib/services/emoji.js.map +1 -0
  86. package/lib/services/entity.d.ts +93 -0
  87. package/lib/services/entity.d.ts.map +1 -0
  88. package/lib/services/entity.js +89 -0
  89. package/lib/services/entity.js.map +1 -0
  90. package/lib/services/files.d.ts +473 -0
  91. package/lib/services/files.d.ts.map +1 -0
  92. package/lib/services/files.js +510 -0
  93. package/lib/services/files.js.map +1 -0
  94. package/lib/services/functions.d.ts +235 -0
  95. package/lib/services/functions.d.ts.map +1 -0
  96. package/lib/services/functions.js +256 -0
  97. package/lib/services/functions.js.map +1 -0
  98. package/lib/services/index.d.ts +35 -0
  99. package/lib/services/index.d.ts.map +1 -0
  100. package/lib/services/index.js +36 -0
  101. package/lib/services/index.js.map +1 -0
  102. package/lib/services/lists.d.ts +300 -0
  103. package/lib/services/lists.d.ts.map +1 -0
  104. package/lib/services/lists.js +366 -0
  105. package/lib/services/lists.js.map +1 -0
  106. package/lib/services/migration.d.ts +34 -0
  107. package/lib/services/migration.d.ts.map +1 -0
  108. package/lib/services/migration.js +36 -0
  109. package/lib/services/migration.js.map +1 -0
  110. package/lib/services/oauth.d.ts +307 -0
  111. package/lib/services/oauth.d.ts.map +1 -0
  112. package/lib/services/oauth.js +278 -0
  113. package/lib/services/oauth.js.map +1 -0
  114. package/lib/services/openid.d.ts +86 -0
  115. package/lib/services/openid.d.ts.map +1 -0
  116. package/lib/services/openid.js +93 -0
  117. package/lib/services/openid.js.map +1 -0
  118. package/lib/services/pins.d.ts +64 -0
  119. package/lib/services/pins.d.ts.map +1 -0
  120. package/lib/services/pins.js +75 -0
  121. package/lib/services/pins.js.map +1 -0
  122. package/lib/services/reactions.d.ts +108 -0
  123. package/lib/services/reactions.d.ts.map +1 -0
  124. package/lib/services/reactions.js +119 -0
  125. package/lib/services/reactions.js.map +1 -0
  126. package/lib/services/reminders.d.ts +89 -0
  127. package/lib/services/reminders.d.ts.map +1 -0
  128. package/lib/services/reminders.js +109 -0
  129. package/lib/services/reminders.js.map +1 -0
  130. package/lib/services/rtm.d.ts +68 -0
  131. package/lib/services/rtm.d.ts.map +1 -0
  132. package/lib/services/rtm.js +74 -0
  133. package/lib/services/rtm.js.map +1 -0
  134. package/lib/services/search.d.ts +239 -0
  135. package/lib/services/search.d.ts.map +1 -0
  136. package/lib/services/search.js +190 -0
  137. package/lib/services/search.js.map +1 -0
  138. package/lib/services/stars.d.ts +126 -0
  139. package/lib/services/stars.d.ts.map +1 -0
  140. package/lib/services/stars.js +145 -0
  141. package/lib/services/stars.js.map +1 -0
  142. package/lib/services/team.d.ts +309 -0
  143. package/lib/services/team.d.ts.map +1 -0
  144. package/lib/services/team.js +333 -0
  145. package/lib/services/team.js.map +1 -0
  146. package/lib/services/tooling.d.ts +31 -0
  147. package/lib/services/tooling.d.ts.map +1 -0
  148. package/lib/services/tooling.js +38 -0
  149. package/lib/services/tooling.js.map +1 -0
  150. package/lib/services/usergroups.d.ts +183 -0
  151. package/lib/services/usergroups.d.ts.map +1 -0
  152. package/lib/services/usergroups.js +180 -0
  153. package/lib/services/usergroups.js.map +1 -0
  154. package/lib/services/users.d.ts +246 -0
  155. package/lib/services/users.d.ts.map +1 -0
  156. package/lib/services/users.js +309 -0
  157. package/lib/services/users.js.map +1 -0
  158. package/lib/services/views.d.ts +84 -0
  159. package/lib/services/views.d.ts.map +1 -0
  160. package/lib/services/views.js +95 -0
  161. package/lib/services/views.js.map +1 -0
  162. package/lib/services/workflows.d.ts +231 -0
  163. package/lib/services/workflows.d.ts.map +1 -0
  164. package/lib/services/workflows.js +238 -0
  165. package/lib/services/workflows.js.map +1 -0
  166. package/lib/traits.d.ts +11 -0
  167. package/lib/traits.d.ts.map +1 -0
  168. package/lib/traits.js +12 -0
  169. package/lib/traits.js.map +1 -0
  170. package/package.json +82 -4
  171. package/src/credentials.ts +86 -0
  172. package/src/errors.ts +101 -0
  173. package/src/index.ts +20 -0
  174. package/src/pagination.ts +35 -0
  175. package/src/protocol.ts +326 -0
  176. package/src/retry.ts +76 -0
  177. package/src/services/admin.ts +7722 -0
  178. package/src/services/api.ts +58 -0
  179. package/src/services/apps.ts +1441 -0
  180. package/src/services/assistant.ts +639 -0
  181. package/src/services/auth.ts +241 -0
  182. package/src/services/blocks.ts +80 -0
  183. package/src/services/bookmarks.ts +223 -0
  184. package/src/services/bots.ts +144 -0
  185. package/src/services/calls.ts +318 -0
  186. package/src/services/canvases.ts +392 -0
  187. package/src/services/chat.ts +1191 -0
  188. package/src/services/conversations.ts +1754 -0
  189. package/src/services/dialog.ts +55 -0
  190. package/src/services/dnd.ts +246 -0
  191. package/src/services/emoji.ts +91 -0
  192. package/src/services/entity.ts +225 -0
  193. package/src/services/files.ts +1192 -0
  194. package/src/services/functions.ts +642 -0
  195. package/src/services/index.ts +35 -0
  196. package/src/services/lists.ts +832 -0
  197. package/src/services/migration.ts +85 -0
  198. package/src/services/oauth.ts +658 -0
  199. package/src/services/openid.ts +243 -0
  200. package/src/services/pins.ts +167 -0
  201. package/src/services/reactions.ts +272 -0
  202. package/src/services/reminders.ts +240 -0
  203. package/src/services/rtm.ts +162 -0
  204. package/src/services/search.ts +507 -0
  205. package/src/services/stars.ts +323 -0
  206. package/src/services/team.ts +834 -0
  207. package/src/services/tooling.ts +78 -0
  208. package/src/services/usergroups.ts +441 -0
  209. package/src/services/users.ts +685 -0
  210. package/src/services/views.ts +212 -0
  211. package/src/services/workflows.ts +605 -0
  212. package/src/traits.ts +45 -0
@@ -0,0 +1,2796 @@
1
+ import * as S from "@distilled.cloud/core/schema";
2
+ import * as API from "@distilled.cloud/core/api";
3
+ import { type SlackOpError, type SlackOpContext } from "../protocol.ts";
4
+ export type { SlackOpError, SlackOpContext };
5
+ export interface AddAliasRequest {
6
+ /** The new alias for the specified emoji. Any wrapping whitespace or colons will be automatically trimmed. */
7
+ name: string;
8
+ /** Name of the emoji for which the alias is being made. Any wrapping whitespace or colons will be automatically trimmed. */
9
+ alias_for: string;
10
+ }
11
+ export declare const AddAliasRequest: S.Schema<AddAliasRequest>;
12
+ export interface AddAliasResponse {
13
+ /** Always `true` (a failed call raises a typed error instead). */
14
+ ok: boolean;
15
+ }
16
+ export declare const AddAliasResponse: S.Schema<AddAliasResponse>;
17
+ /** List of user IDs to allow for named_entities visibility */
18
+ export type AddAppsPermissionsRequestUserIdsList = Array<string>;
19
+ export declare const AddAppsPermissionsRequestUserIdsList: S.Schema<AddAppsPermissionsRequestUserIdsList>;
20
+ /** List of encoded usergroup IDs */
21
+ export type AddAppsPermissionsRequestUsergroupIdsList = Array<string>;
22
+ export declare const AddAppsPermissionsRequestUsergroupIdsList: S.Schema<AddAppsPermissionsRequestUsergroupIdsList>;
23
+ export interface AddAppsPermissionsRequest {
24
+ /** Encoded ID of the app */
25
+ app_id: string;
26
+ /** List of user IDs to allow for named_entities visibility */
27
+ user_ids?: AddAppsPermissionsRequestUserIdsList;
28
+ /** List of encoded usergroup IDs */
29
+ usergroup_ids?: AddAppsPermissionsRequestUsergroupIdsList;
30
+ }
31
+ export declare const AddAppsPermissionsRequest: S.Schema<AddAppsPermissionsRequest>;
32
+ export interface AddAppsPermissionsResponse {
33
+ /** Always `true` (a failed call raises a typed error instead). */
34
+ ok: boolean;
35
+ }
36
+ export declare const AddAppsPermissionsResponse: S.Schema<AddAppsPermissionsResponse>;
37
+ /** List of the entity IDs for which roles will be assigned. These can be Org IDs, Team IDs or Channel IDs */
38
+ export type AddAssignmentsRequestEntityIdsList = Array<string>;
39
+ export declare const AddAssignmentsRequestEntityIdsList: S.Schema<AddAssignmentsRequestEntityIdsList>;
40
+ /** List of IDs from the users to be added to the given role */
41
+ export type AddAssignmentsRequestUserIdsList = Array<string>;
42
+ export declare const AddAssignmentsRequestUserIdsList: S.Schema<AddAssignmentsRequestUserIdsList>;
43
+ export interface AddAssignmentsRequest {
44
+ /** ID of the role to which users will be assigned */
45
+ role_id: string;
46
+ /** List of the entity IDs for which roles will be assigned. These can be Org IDs, Team IDs or Channel IDs */
47
+ entity_ids: AddAssignmentsRequestEntityIdsList;
48
+ /** List of IDs from the users to be added to the given role */
49
+ user_ids: AddAssignmentsRequestUserIdsList;
50
+ }
51
+ export declare const AddAssignmentsRequest: S.Schema<AddAssignmentsRequest>;
52
+ export interface AddAssignmentsResponse {
53
+ /** Always `true` (a failed call raises a typed error instead). */
54
+ ok: boolean;
55
+ /** A string representation of the error type */
56
+ error?: string;
57
+ }
58
+ export declare const AddAssignmentsResponse: S.Schema<AddAssignmentsResponse>;
59
+ /** Comma separated string of channel IDs. */
60
+ export type AddChannelsRequestChannelIdsList = Array<string>;
61
+ export declare const AddChannelsRequestChannelIdsList: S.Schema<AddChannelsRequestChannelIdsList>;
62
+ export interface AddChannelsRequest {
63
+ /** ID of the IDP group to add default channels for. */
64
+ usergroup_id: string;
65
+ /** The workspace to add default channels in. */
66
+ team_id?: string;
67
+ /** Comma separated string of channel IDs. */
68
+ channel_ids: AddChannelsRequestChannelIdsList;
69
+ }
70
+ export declare const AddChannelsRequest: S.Schema<AddChannelsRequest>;
71
+ /** List of channel IDs that are not valid for this action */
72
+ export type AddChannelsResponseInvalidChannelsList = Array<string>;
73
+ export declare const AddChannelsResponseInvalidChannelsList: S.Schema<AddChannelsResponseInvalidChannelsList>;
74
+ /** List of user IDs who would exceed their channel limit */
75
+ export type AddChannelsResponseChannelLimitUserIdsList = Array<string>;
76
+ export declare const AddChannelsResponseChannelLimitUserIdsList: S.Schema<AddChannelsResponseChannelLimitUserIdsList>;
77
+ export interface AddChannelsResponse {
78
+ /** Always `true` (a failed call raises a typed error instead). */
79
+ ok: boolean;
80
+ /** A string representation of the error type */
81
+ error?: string;
82
+ /** List of channel IDs that are not valid for this action */
83
+ invalid_channels?: AddChannelsResponseInvalidChannelsList;
84
+ /** List of user IDs who would exceed their channel limit */
85
+ channel_limit_user_ids?: AddChannelsResponseChannelLimitUserIdsList;
86
+ }
87
+ export declare const AddChannelsResponse: S.Schema<AddChannelsResponse>;
88
+ export interface AddEmojiRequest {
89
+ /** The name of the emoji to be added (using lower-case letters only). Colons (`:myemoji:`) around the value are not required, although they may be included. */
90
+ name: string;
91
+ /** The URL of a file to use as an image for the emoji. Square images under 128KB and with transparent backgrounds work best. */
92
+ url?: string;
93
+ }
94
+ export declare const AddEmojiRequest: S.Schema<AddEmojiRequest>;
95
+ export interface AddEmojiResponse {
96
+ /** Always `true` (a failed call raises a typed error instead). */
97
+ ok: boolean;
98
+ }
99
+ export declare const AddEmojiResponse: S.Schema<AddEmojiResponse>;
100
+ export interface AddGroupRequest {
101
+ /** The workspace where the channel exists. This argument is required for channels only tied to one workspace, and optional for channels that are shared across an organization. */
102
+ team_id?: string;
103
+ /** The [IDP Group](https://slack.com/help/articles/115001435788-Connect-identity-provider-groups-to-your-Enterprise-organization) ID to be an allowlist for the private channel. */
104
+ group_id: string;
105
+ /** The channel to link this group to. */
106
+ channel_id: string;
107
+ }
108
+ export declare const AddGroupRequest: S.Schema<AddGroupRequest>;
109
+ export interface AddGroupResponse {
110
+ ok: boolean;
111
+ }
112
+ export declare const AddGroupResponse: S.Schema<AddGroupResponse>;
113
+ /** A comma separated list of encoded team (workspace) IDs. Each workspace *MUST* belong to the organization associated with the token. */
114
+ export type AddTeamsRequestTeamIdsList = Array<string>;
115
+ export declare const AddTeamsRequestTeamIdsList: S.Schema<AddTeamsRequestTeamIdsList>;
116
+ export interface AddTeamsRequest {
117
+ /** An encoded usergroup (IDP Group) ID. */
118
+ usergroup_id: string;
119
+ /** A comma separated list of encoded team (workspace) IDs. Each workspace *MUST* belong to the organization associated with the token. */
120
+ team_ids: AddTeamsRequestTeamIdsList;
121
+ /** When `true`, this method automatically creates new workspace accounts for the IDP group members. */
122
+ auto_provision?: boolean;
123
+ }
124
+ export declare const AddTeamsRequest: S.Schema<AddTeamsRequest>;
125
+ export interface AddTeamsResponse {
126
+ /** Always `true` (a failed call raises a typed error instead). */
127
+ ok: boolean;
128
+ }
129
+ export declare const AddTeamsResponse: S.Schema<AddTeamsResponse>;
130
+ /** Array of workflow IDs to edit; max 50 */
131
+ export type AddWorkflowsCollaboratorRequestWorkflowIdsList = Array<string>;
132
+ export declare const AddWorkflowsCollaboratorRequestWorkflowIdsList: S.Schema<AddWorkflowsCollaboratorRequestWorkflowIdsList>;
133
+ /** Array of collaborators (encoded user IDs) to add; max 50 */
134
+ export type AddWorkflowsCollaboratorRequestCollaboratorIdsList = Array<string>;
135
+ export declare const AddWorkflowsCollaboratorRequestCollaboratorIdsList: S.Schema<AddWorkflowsCollaboratorRequestCollaboratorIdsList>;
136
+ export interface AddWorkflowsCollaboratorRequest {
137
+ /** Array of workflow IDs to edit; max 50 */
138
+ workflow_ids: AddWorkflowsCollaboratorRequestWorkflowIdsList;
139
+ /** Array of collaborators (encoded user IDs) to add; max 50 */
140
+ collaborator_ids: AddWorkflowsCollaboratorRequestCollaboratorIdsList;
141
+ }
142
+ export declare const AddWorkflowsCollaboratorRequest: S.Schema<AddWorkflowsCollaboratorRequest>;
143
+ export interface AddWorkflowsCollaboratorResponse {
144
+ /** Always `true` (a failed call raises a typed error instead). */
145
+ ok: boolean;
146
+ }
147
+ export declare const AddWorkflowsCollaboratorResponse: S.Schema<AddWorkflowsCollaboratorResponse>;
148
+ export interface AnalyticsMessagesActivityRequest {
149
+ /** Channel ID for channel of the message activity to query. */
150
+ channel: string;
151
+ /** Oldest timestamp to include in the results. Defaults to 7 days before current time. If not passed while still passing the `latest_ts` parameter, defaults to 7 days before `latest_ts`. */
152
+ oldest_ts?: string;
153
+ /** Most recent timestamp to include in results. Defaults to current time. If not passed while still passing the `oldest_ts` parameter, defaults to 7 days after `oldest_ts`. */
154
+ latest_ts?: string;
155
+ /** 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. */
156
+ cursor?: string;
157
+ /** Maximum number of entries to return. The maximum limit is 100. */
158
+ limit?: number;
159
+ }
160
+ export declare const AnalyticsMessagesActivityRequest: S.Schema<AnalyticsMessagesActivityRequest>;
161
+ /** Pagination metadata. An empty `next_cursor` means the last page. */
162
+ export interface AnalyticsMessagesActivityResponseResponseMetadata {
163
+ /** Cursor for the next page — pass as `cursor` on the next call. */
164
+ next_cursor?: string;
165
+ }
166
+ export declare const AnalyticsMessagesActivityResponseResponseMetadata: S.Schema<AnalyticsMessagesActivityResponseResponseMetadata>;
167
+ export interface AnalyticsMessagesActivityResponse {
168
+ /** Always `true` (a failed call raises a typed error instead). */
169
+ ok: boolean;
170
+ /** Pagination metadata. An empty `next_cursor` means the last page. */
171
+ response_metadata?: AnalyticsMessagesActivityResponseResponseMetadata;
172
+ message_activities: unknown;
173
+ }
174
+ export declare const AnalyticsMessagesActivityResponse: S.Schema<AnalyticsMessagesActivityResponse>;
175
+ export interface AnalyticsMessagesMetadataRequest {
176
+ /** Channel ID for channel containing the messages to query. */
177
+ channel: string;
178
+ /** Oldest timestamp to include in the results */
179
+ oldest_ts?: string;
180
+ /** Most recent timestamp to include in the results. If not passed, defaults to current time. */
181
+ latest_ts?: string;
182
+ /** 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. See [pagination](#pagination) for more details. */
183
+ cursor?: string;
184
+ }
185
+ export declare const AnalyticsMessagesMetadataRequest: S.Schema<AnalyticsMessagesMetadataRequest>;
186
+ /** Pagination metadata. An empty `next_cursor` means the last page. */
187
+ export type AnalyticsMessagesMetadataResponseResponseMetadata = AnalyticsMessagesActivityResponseResponseMetadata;
188
+ export declare const AnalyticsMessagesMetadataResponseResponseMetadata: S.Schema<AnalyticsMessagesActivityResponseResponseMetadata>;
189
+ export interface AnalyticsMessagesMetadataResponseMessagesItemReactionsItem {
190
+ /** Name of the reaction emoji */
191
+ name: string;
192
+ /** Number of times this reaction was used */
193
+ count: number;
194
+ }
195
+ export declare const AnalyticsMessagesMetadataResponseMessagesItemReactionsItem: S.Schema<AnalyticsMessagesMetadataResponseMessagesItemReactionsItem>;
196
+ /** An array of reaction counts */
197
+ export type AnalyticsMessagesMetadataResponseMessagesItemReactionsList = Array<AnalyticsMessagesMetadataResponseMessagesItemReactionsItem>;
198
+ export declare const AnalyticsMessagesMetadataResponseMessagesItemReactionsList: S.Schema<AnalyticsMessagesMetadataResponseMessagesItemReactionsList>;
199
+ export interface AnalyticsMessagesMetadataResponseMessagesItemFilesItem {
200
+ /** Encoded file ID */
201
+ id: string;
202
+ /** Unix timestamp when file was created */
203
+ created: number;
204
+ /** Unix timestamp of the file */
205
+ timestamp: number;
206
+ /** MIME type of the file */
207
+ mimetype?: string;
208
+ /** File type */
209
+ filetype?: string;
210
+ /** File subtype */
211
+ subtype?: string;
212
+ /** Human-readable file type */
213
+ pretty_type?: string;
214
+ /** Whether the file is external */
215
+ is_external?: boolean;
216
+ /** Type of external file */
217
+ external_type?: string;
218
+ /** Whether the file is public */
219
+ is_public?: boolean;
220
+ /** Whether the public URL is shared */
221
+ public_url_shared?: boolean;
222
+ /** Whether to display as bot */
223
+ display_as_bot?: boolean;
224
+ /** Duration in milliseconds for media files */
225
+ duration_ms?: number;
226
+ /** Display type for media files */
227
+ media_display_type?: string;
228
+ }
229
+ export declare const AnalyticsMessagesMetadataResponseMessagesItemFilesItem: S.Schema<AnalyticsMessagesMetadataResponseMessagesItemFilesItem>;
230
+ /** An array of files attached to the message */
231
+ export type AnalyticsMessagesMetadataResponseMessagesItemFilesList = Array<AnalyticsMessagesMetadataResponseMessagesItemFilesItem>;
232
+ export declare const AnalyticsMessagesMetadataResponseMessagesItemFilesList: S.Schema<AnalyticsMessagesMetadataResponseMessagesItemFilesList>;
233
+ export interface AnalyticsMessagesMetadataResponseMessagesItem {
234
+ /** Encoded ID of user who authored message */
235
+ user_id?: string;
236
+ type: string;
237
+ subtype?: string;
238
+ /** Timestamp of the message */
239
+ ts: string;
240
+ /** Timestamp of message at the root of the thread */
241
+ thread_ts?: string;
242
+ display_as_bot?: boolean;
243
+ client_msg_id?: string;
244
+ /** Number of characters in the message text */
245
+ text_character_count?: number;
246
+ /** An array of reaction counts */
247
+ reactions?: AnalyticsMessagesMetadataResponseMessagesItemReactionsList;
248
+ /** An array of files attached to the message */
249
+ files?: AnalyticsMessagesMetadataResponseMessagesItemFilesList;
250
+ }
251
+ export declare const AnalyticsMessagesMetadataResponseMessagesItem: S.Schema<AnalyticsMessagesMetadataResponseMessagesItem>;
252
+ /** An array of message metadata */
253
+ export type AnalyticsMessagesMetadataResponseMessagesList = Array<AnalyticsMessagesMetadataResponseMessagesItem>;
254
+ export declare const AnalyticsMessagesMetadataResponseMessagesList: S.Schema<AnalyticsMessagesMetadataResponseMessagesList>;
255
+ export interface AnalyticsMessagesMetadataResponse {
256
+ /** Always `true` (a failed call raises a typed error instead). */
257
+ ok: boolean;
258
+ /** Pagination metadata. An empty `next_cursor` means the last page. */
259
+ response_metadata?: AnalyticsMessagesActivityResponseResponseMetadata;
260
+ /** An array of message metadata */
261
+ messages: AnalyticsMessagesMetadataResponseMessagesList;
262
+ }
263
+ export declare const AnalyticsMessagesMetadataResponse: S.Schema<AnalyticsMessagesMetadataResponse>;
264
+ export interface ApproveAppRequest {
265
+ /** Auto-create an Admin-Approved App automation rule that pre-approves future child app installs from this manager app. */
266
+ allow_child_auto_install?: boolean;
267
+ /** The id of the app to approve. */
268
+ app_id?: string;
269
+ /** The id of the request to approve. */
270
+ request_id?: string;
271
+ /** The ID of the workspace to approve the app on */
272
+ team_id?: string;
273
+ /** The ID of the enterprise to approve the app on */
274
+ enterprise_id?: string;
275
+ /** User scopes to approve for the app */
276
+ user_scopes?: string;
277
+ /** Bot scopes to approve for the app */
278
+ bot_scopes?: string;
279
+ }
280
+ export declare const ApproveAppRequest: S.Schema<ApproveAppRequest>;
281
+ export interface ApproveAppResponse {
282
+ /** Always `true` (a failed call raises a typed error instead). */
283
+ ok: boolean;
284
+ }
285
+ export declare const ApproveAppResponse: S.Schema<ApproveAppResponse>;
286
+ export interface ApproveInviteRequestRequest {
287
+ /** ID for the workspace where the invite request was made. */
288
+ team_id?: string;
289
+ /** ID of the request to invite. */
290
+ invite_request_id: string;
291
+ }
292
+ export declare const ApproveInviteRequestRequest: S.Schema<ApproveInviteRequestRequest>;
293
+ export interface ApproveInviteRequestResponse {
294
+ /** Always `true` (a failed call raises a typed error instead). */
295
+ ok: boolean;
296
+ }
297
+ export declare const ApproveInviteRequestResponse: S.Schema<ApproveInviteRequestResponse>;
298
+ export interface AppsRestrictRequest {
299
+ /** The id of the app to restrict. */
300
+ app_id?: string;
301
+ /** The id of the request to restrict. */
302
+ request_id?: string;
303
+ /** The ID of the workspace to approve the app on */
304
+ team_id?: string;
305
+ /** The ID of the enterprise to approve the app on */
306
+ enterprise_id?: string;
307
+ }
308
+ export declare const AppsRestrictRequest: S.Schema<AppsRestrictRequest>;
309
+ export interface AppsRestrictResponse {
310
+ /** Always `true` (a failed call raises a typed error instead). */
311
+ ok: boolean;
312
+ }
313
+ export declare const AppsRestrictResponse: S.Schema<AppsRestrictResponse>;
314
+ export interface ArchiveConversationRequest {
315
+ /** The channel to archive. */
316
+ channel_id: string;
317
+ }
318
+ export declare const ArchiveConversationRequest: S.Schema<ArchiveConversationRequest>;
319
+ export interface ArchiveConversationResponse {
320
+ ok: boolean;
321
+ }
322
+ export declare const ArchiveConversationResponse: S.Schema<ArchiveConversationResponse>;
323
+ /** Array of IDs to assign to the policy. */
324
+ export type AssignEntitiesRequestEntityIdsList = Array<string>;
325
+ export declare const AssignEntitiesRequestEntityIdsList: S.Schema<AssignEntitiesRequestEntityIdsList>;
326
+ export interface AssignEntitiesRequest {
327
+ /** The name of the authentication policy to assign the entities to. Currently, `email_password` is the only policy that may be used with this method. */
328
+ policy_name: string;
329
+ /** The type of entity to assign to the policy. Currently, `USER` is supported. */
330
+ entity_type: unknown;
331
+ /** Array of IDs to assign to the policy. */
332
+ entity_ids: AssignEntitiesRequestEntityIdsList;
333
+ }
334
+ export declare const AssignEntitiesRequest: S.Schema<AssignEntitiesRequest>;
335
+ export interface AssignEntitiesResponse {
336
+ /** Always `true` (a failed call raises a typed error instead). */
337
+ ok: boolean;
338
+ /** Count of entities under the policy and provided filter conditions */
339
+ entity_total_count: number;
340
+ }
341
+ export declare const AssignEntitiesResponse: S.Schema<AssignEntitiesResponse>;
342
+ export interface AssignUserRequest {
343
+ /** The ID (`T1234`) of the workspace. */
344
+ team_id: string;
345
+ /** The ID of the user to add to the workspace. */
346
+ user_id: string;
347
+ /** True if user should be added to the workspace as a guest. */
348
+ is_restricted?: boolean;
349
+ /** True if user should be added to the workspace as a single-channel guest. */
350
+ is_ultra_restricted?: boolean;
351
+ /** Comma separated values of channel IDs to add user in the new workspace. */
352
+ channel_ids?: string;
353
+ }
354
+ export declare const AssignUserRequest: S.Schema<AssignUserRequest>;
355
+ export interface AssignUserResponse {
356
+ /** Always `true` (a failed call raises a typed error instead). */
357
+ ok: boolean;
358
+ }
359
+ export declare const AssignUserResponse: S.Schema<AssignUserResponse>;
360
+ /** An array of channel IDs to archive. No more than 100 items are allowed. */
361
+ export type BulkArchiveRequestChannelIdsList = Array<string>;
362
+ export declare const BulkArchiveRequestChannelIdsList: S.Schema<BulkArchiveRequestChannelIdsList>;
363
+ export interface BulkArchiveRequest {
364
+ /** An array of channel IDs to archive. No more than 100 items are allowed. */
365
+ channel_ids: BulkArchiveRequestChannelIdsList;
366
+ }
367
+ export declare const BulkArchiveRequest: S.Schema<BulkArchiveRequest>;
368
+ /** The reason the channel was not added */
369
+ export type BulkArchiveResponseNotAddedItemErrorsList = Array<string>;
370
+ export declare const BulkArchiveResponseNotAddedItemErrorsList: S.Schema<BulkArchiveResponseNotAddedItemErrorsList>;
371
+ export interface BulkArchiveResponseNotAddedItem {
372
+ channel_id: string;
373
+ /** The reason the channel was not added */
374
+ errors: BulkArchiveResponseNotAddedItemErrorsList;
375
+ }
376
+ export declare const BulkArchiveResponseNotAddedItem: S.Schema<BulkArchiveResponseNotAddedItem>;
377
+ /** The channel ID and reason it could not be archived. */
378
+ export type BulkArchiveResponseNotAddedList = Array<BulkArchiveResponseNotAddedItem>;
379
+ export declare const BulkArchiveResponseNotAddedList: S.Schema<BulkArchiveResponseNotAddedList>;
380
+ export interface BulkArchiveResponse {
381
+ /** Always `true` (a failed call raises a typed error instead). */
382
+ ok: boolean;
383
+ bulk_action_id: string;
384
+ /** The channel ID and reason it could not be archived. */
385
+ not_added: BulkArchiveResponseNotAddedList;
386
+ }
387
+ export declare const BulkArchiveResponse: S.Schema<BulkArchiveResponse>;
388
+ /** An array of channel IDs. */
389
+ export type BulkDeleteRequestChannelIdsList = Array<string>;
390
+ export declare const BulkDeleteRequestChannelIdsList: S.Schema<BulkDeleteRequestChannelIdsList>;
391
+ export interface BulkDeleteRequest {
392
+ /** An array of channel IDs. */
393
+ channel_ids: BulkDeleteRequestChannelIdsList;
394
+ }
395
+ export declare const BulkDeleteRequest: S.Schema<BulkDeleteRequest>;
396
+ /** The reason the channel was not added */
397
+ export type BulkDeleteResponseNotAddedItemErrorsList = Array<string>;
398
+ export declare const BulkDeleteResponseNotAddedItemErrorsList: S.Schema<BulkDeleteResponseNotAddedItemErrorsList>;
399
+ export interface BulkDeleteResponseNotAddedItem {
400
+ channel_id: string;
401
+ /** The reason the channel was not added */
402
+ errors: BulkDeleteResponseNotAddedItemErrorsList;
403
+ }
404
+ export declare const BulkDeleteResponseNotAddedItem: S.Schema<BulkDeleteResponseNotAddedItem>;
405
+ /** The channel ID and reason it could not be deleted. */
406
+ export type BulkDeleteResponseNotAddedList = Array<BulkDeleteResponseNotAddedItem>;
407
+ export declare const BulkDeleteResponseNotAddedList: S.Schema<BulkDeleteResponseNotAddedList>;
408
+ export interface BulkDeleteResponse {
409
+ /** Always `true` (a failed call raises a typed error instead). */
410
+ ok: boolean;
411
+ bulk_action_id: string;
412
+ /** The channel ID and reason it could not be deleted. */
413
+ not_added: BulkDeleteResponseNotAddedList;
414
+ }
415
+ export declare const BulkDeleteResponse: S.Schema<BulkDeleteResponse>;
416
+ /** An array of channel IDs. */
417
+ export type BulkMoveRequestChannelIdsList = Array<string>;
418
+ export declare const BulkMoveRequestChannelIdsList: S.Schema<BulkMoveRequestChannelIdsList>;
419
+ export interface BulkMoveRequest {
420
+ /** Target team ID */
421
+ target_team_id: string;
422
+ /** An array of channel IDs. */
423
+ channel_ids: BulkMoveRequestChannelIdsList;
424
+ }
425
+ export declare const BulkMoveRequest: S.Schema<BulkMoveRequest>;
426
+ /** The reason the channel was not added */
427
+ export type BulkMoveResponseNotAddedItemErrorsList = Array<string>;
428
+ export declare const BulkMoveResponseNotAddedItemErrorsList: S.Schema<BulkMoveResponseNotAddedItemErrorsList>;
429
+ export interface BulkMoveResponseNotAddedItem {
430
+ channel_id: string;
431
+ /** The reason the channel was not added */
432
+ errors: BulkMoveResponseNotAddedItemErrorsList;
433
+ }
434
+ export declare const BulkMoveResponseNotAddedItem: S.Schema<BulkMoveResponseNotAddedItem>;
435
+ /** The channel ID and reason it could not be moved. */
436
+ export type BulkMoveResponseNotAddedList = Array<BulkMoveResponseNotAddedItem>;
437
+ export declare const BulkMoveResponseNotAddedList: S.Schema<BulkMoveResponseNotAddedList>;
438
+ export interface BulkMoveResponse {
439
+ /** Always `true` (a failed call raises a typed error instead). */
440
+ ok: boolean;
441
+ bulk_action_id: string;
442
+ /** The channel ID and reason it could not be moved. */
443
+ not_added: BulkMoveResponseNotAddedList;
444
+ }
445
+ export declare const BulkMoveResponse: S.Schema<BulkMoveResponse>;
446
+ export type BulkSetExcludeFromSlackAiRequestChannelIdsList = Array<string>;
447
+ export declare const BulkSetExcludeFromSlackAiRequestChannelIdsList: S.Schema<BulkSetExcludeFromSlackAiRequestChannelIdsList>;
448
+ export interface BulkSetExcludeFromSlackAiRequest {
449
+ /** An array of channel IDs to exclude from Slack AI. */
450
+ channel_ids: BulkSetExcludeFromSlackAiRequestChannelIdsList;
451
+ /** Whether the channels should be excluded from Slack AI. */
452
+ exclude: boolean;
453
+ }
454
+ export declare const BulkSetExcludeFromSlackAiRequest: S.Schema<BulkSetExcludeFromSlackAiRequest>;
455
+ /** The reason the channel was not added */
456
+ export type BulkSetExcludeFromSlackAiResponseNotAddedItemErrorsList = Array<string>;
457
+ export declare const BulkSetExcludeFromSlackAiResponseNotAddedItemErrorsList: S.Schema<BulkSetExcludeFromSlackAiResponseNotAddedItemErrorsList>;
458
+ export interface BulkSetExcludeFromSlackAiResponseNotAddedItem {
459
+ channel_id: string;
460
+ /** The reason the channel was not added */
461
+ errors: BulkSetExcludeFromSlackAiResponseNotAddedItemErrorsList;
462
+ }
463
+ export declare const BulkSetExcludeFromSlackAiResponseNotAddedItem: S.Schema<BulkSetExcludeFromSlackAiResponseNotAddedItem>;
464
+ /** The channel ID and reason it could not be excluded from Slack AI */
465
+ export type BulkSetExcludeFromSlackAiResponseNotAddedList = Array<BulkSetExcludeFromSlackAiResponseNotAddedItem>;
466
+ export declare const BulkSetExcludeFromSlackAiResponseNotAddedList: S.Schema<BulkSetExcludeFromSlackAiResponseNotAddedList>;
467
+ export interface BulkSetExcludeFromSlackAiResponse {
468
+ /** Always `true` (a failed call raises a typed error instead). */
469
+ ok: boolean;
470
+ bulk_action_id: string;
471
+ /** The channel ID and reason it could not be excluded from Slack AI */
472
+ not_added: BulkSetExcludeFromSlackAiResponseNotAddedList;
473
+ }
474
+ export declare const BulkSetExcludeFromSlackAiResponse: S.Schema<BulkSetExcludeFromSlackAiResponse>;
475
+ export interface CancelAppsRequestRequest {
476
+ /** The id of the request to cancel. */
477
+ request_id: string;
478
+ /** The ID of the workspace where this request belongs */
479
+ team_id?: string;
480
+ /** The ID of the enterprise where this request belongs */
481
+ enterprise_id?: string;
482
+ }
483
+ export declare const CancelAppsRequestRequest: S.Schema<CancelAppsRequestRequest>;
484
+ export interface CancelAppsRequestResponse {
485
+ /** Always `true` (a failed call raises a typed error instead). */
486
+ ok: boolean;
487
+ }
488
+ export declare const CancelAppsRequestResponse: S.Schema<CancelAppsRequestResponse>;
489
+ export interface ClearResolutionRequest {
490
+ /** The id of the app whose resolution you want to clear/undo. */
491
+ app_id: string;
492
+ /** The workspace to clear the app resolution from */
493
+ team_id?: string;
494
+ /** The enterprise to clear the app resolution from */
495
+ enterprise_id?: string;
496
+ }
497
+ export declare const ClearResolutionRequest: S.Schema<ClearResolutionRequest>;
498
+ export interface ClearResolutionResponse {
499
+ /** Always `true` (a failed call raises a typed error instead). */
500
+ ok: boolean;
501
+ }
502
+ export declare const ClearResolutionResponse: S.Schema<ClearResolutionResponse>;
503
+ /** The IDs of users you'd like to clear session settings for. */
504
+ export type ClearSettingsRequestUserIdsList = Array<string>;
505
+ export declare const ClearSettingsRequestUserIdsList: S.Schema<ClearSettingsRequestUserIdsList>;
506
+ export interface ClearSettingsRequest {
507
+ /** The IDs of users you'd like to clear session settings for. */
508
+ user_ids: ClearSettingsRequestUserIdsList;
509
+ }
510
+ export declare const ClearSettingsRequest: S.Schema<ClearSettingsRequest>;
511
+ export interface ClearSettingsResponse {
512
+ ok: boolean;
513
+ }
514
+ export declare const ClearSettingsResponse: S.Schema<ClearSettingsResponse>;
515
+ export interface ConvertToPrivateRequest {
516
+ /** The channel to convert to private. */
517
+ channel_id: string;
518
+ /** Name of private channel to create. Only respected when converting an MPIM. */
519
+ name?: string;
520
+ }
521
+ export declare const ConvertToPrivateRequest: S.Schema<ConvertToPrivateRequest>;
522
+ export interface ConvertToPrivateResponse {
523
+ ok: boolean;
524
+ }
525
+ export declare const ConvertToPrivateResponse: S.Schema<ConvertToPrivateResponse>;
526
+ export interface ConvertToPublicRequest {
527
+ /** The channel to convert to public. */
528
+ channel_id: string;
529
+ }
530
+ export declare const ConvertToPublicRequest: S.Schema<ConvertToPublicRequest>;
531
+ export interface ConvertToPublicResponse {
532
+ ok: boolean;
533
+ }
534
+ export declare const ConvertToPublicResponse: S.Schema<ConvertToPublicResponse>;
535
+ /** A list of [IDP Groups](https://slack.com/help/articles/115001435788-Connect-identity-provider-groups-to-your-Enterprise-organization) ids that the primary usergroup is to be barriered from. */
536
+ export type CreateBarrierRequestBarrieredFromUsergroupIdsList = Array<string>;
537
+ export declare const CreateBarrierRequestBarrieredFromUsergroupIdsList: S.Schema<CreateBarrierRequestBarrieredFromUsergroupIdsList>;
538
+ export type CreateBarrierRequestRestrictedSubjectsItem = "im" | "mpim" | "call";
539
+ export declare const CreateBarrierRequestRestrictedSubjectsItem: any;
540
+ /** What kind of interactions are blocked by this barrier? For v1, we only support a list of all 3, eg `im, mpim, call` */
541
+ export type CreateBarrierRequestRestrictedSubjectsList = Array<CreateBarrierRequestRestrictedSubjectsItem | (string & {})>;
542
+ export declare const CreateBarrierRequestRestrictedSubjectsList: S.Schema<CreateBarrierRequestRestrictedSubjectsList>;
543
+ export interface CreateBarrierRequest {
544
+ /** The id of the primary [IDP Group](https://slack.com/help/articles/115001435788-Connect-identity-provider-groups-to-your-Enterprise-organization) */
545
+ primary_usergroup_id: string;
546
+ /** A list of [IDP Groups](https://slack.com/help/articles/115001435788-Connect-identity-provider-groups-to-your-Enterprise-organization) ids that the primary usergroup is to be barriered from. */
547
+ barriered_from_usergroup_ids: CreateBarrierRequestBarrieredFromUsergroupIdsList;
548
+ /** What kind of interactions are blocked by this barrier? For v1, we only support a list of all 3, eg `im, mpim, call` */
549
+ restricted_subjects: CreateBarrierRequestRestrictedSubjectsList;
550
+ }
551
+ export declare const CreateBarrierRequest: S.Schema<CreateBarrierRequest>;
552
+ export interface CreateBarrierResponse {
553
+ ok: boolean;
554
+ barrier: unknown;
555
+ }
556
+ export declare const CreateBarrierResponse: S.Schema<CreateBarrierResponse>;
557
+ export interface CreateConversationRequest {
558
+ /** Name of the public or private channel to create. */
559
+ name: string;
560
+ /** Description of the public or private channel to create. */
561
+ description?: string;
562
+ /** When `true`, creates a private channel instead of a public channel */
563
+ is_private: boolean;
564
+ /** When `true`, the channel will be available org-wide. Note: if the channel is not `org_wide=true`, you must specify a `team_id` for this channel */
565
+ org_wide?: boolean;
566
+ /** The workspace to create the channel in. Note: this argument is required unless you set `org_wide=true`. */
567
+ team_id?: string;
568
+ }
569
+ export declare const CreateConversationRequest: S.Schema<CreateConversationRequest>;
570
+ export interface CreateConversationResponse {
571
+ ok: boolean;
572
+ channel_id?: string;
573
+ }
574
+ export declare const CreateConversationResponse: S.Schema<CreateConversationResponse>;
575
+ export interface CreateForObjectsRequest {
576
+ /** Object / Record ID (15 or 18 digit accepted). See [here](https://help.salesforce.com/s/articleView?id=000385008&type=1) for how to look up an ID. */
577
+ object_id: string;
578
+ /** Salesforce org ID (15 or 18 digit accepted). See [here](https://help.salesforce.com/s/articleView?id=000385215&type=1) for how to look up Salesforce org ID. */
579
+ salesforce_org_id: string;
580
+ /** Optional flag to add all team members related to the object to the newly created Salesforce channel. When true, adds a maximum of 100 team members to the channel. */
581
+ invite_object_team?: boolean;
582
+ }
583
+ export declare const CreateForObjectsRequest: S.Schema<CreateForObjectsRequest>;
584
+ export interface CreateForObjectsResponse {
585
+ /** Always `true` (a failed call raises a typed error instead). */
586
+ ok: boolean;
587
+ /** Slack Channel ID, in the format of an alphanumeric string starting with C */
588
+ channel_id: string;
589
+ }
590
+ export declare const CreateForObjectsResponse: S.Schema<CreateForObjectsResponse>;
591
+ export interface CreateTeamRequest {
592
+ /** Team domain (for example, slacksoftballteam). Domains are limited to 21 characters. */
593
+ team_domain: string;
594
+ /** Team name (for example, Slack Softball Team). */
595
+ team_name: string;
596
+ /** Description for the team. */
597
+ team_description?: string;
598
+ /** Who can join the team. A team's discoverability can be `open`, `closed`, `invite_only`, or `unlisted`. */
599
+ team_discoverability?: string;
600
+ }
601
+ export declare const CreateTeamRequest: S.Schema<CreateTeamRequest>;
602
+ export interface CreateTeamResponse {
603
+ /** Always `true` (a failed call raises a typed error instead). */
604
+ ok: boolean;
605
+ team: string;
606
+ }
607
+ export declare const CreateTeamResponse: S.Schema<CreateTeamResponse>;
608
+ export interface DeleteBarrierRequest {
609
+ /** The ID of the barrier you're trying to delete */
610
+ barrier_id: string;
611
+ }
612
+ export declare const DeleteBarrierRequest: S.Schema<DeleteBarrierRequest>;
613
+ export interface DeleteBarrierResponse {
614
+ ok: boolean;
615
+ }
616
+ export declare const DeleteBarrierResponse: S.Schema<DeleteBarrierResponse>;
617
+ export interface DeleteConversationRequest {
618
+ /** The channel to delete. */
619
+ channel_id: string;
620
+ }
621
+ export declare const DeleteConversationRequest: S.Schema<DeleteConversationRequest>;
622
+ export interface DeleteConversationResponse {
623
+ ok: boolean;
624
+ }
625
+ export declare const DeleteConversationResponse: S.Schema<DeleteConversationResponse>;
626
+ /** Used for disconnecting a team from a shared channel. Only one team ID may be passed at a time. */
627
+ export type DisconnectSharedRequestLeavingTeamIdsList = Array<string>;
628
+ export declare const DisconnectSharedRequestLeavingTeamIdsList: S.Schema<DisconnectSharedRequestLeavingTeamIdsList>;
629
+ export interface DisconnectSharedRequest {
630
+ /** The channel to be disconnected from some workspaces. */
631
+ channel_id: string;
632
+ /** Used for disconnecting a team from a shared channel. Only one team ID may be passed at a time. */
633
+ leaving_team_ids?: DisconnectSharedRequestLeavingTeamIdsList;
634
+ }
635
+ export declare const DisconnectSharedRequest: S.Schema<DisconnectSharedRequest>;
636
+ export interface DisconnectSharedResponse {
637
+ ok: boolean;
638
+ }
639
+ export declare const DisconnectSharedResponse: S.Schema<DisconnectSharedResponse>;
640
+ export interface ExportUsersUnsupportedVersionRequest {
641
+ /** Unix timestamp of a date to start looking for user sessions. If not provided will start six months ago. */
642
+ date_sessions_started?: number;
643
+ /** Unix timestamp of the date of past or upcoming end of support cycles. If not provided will include all announced end of support cycles. */
644
+ date_end_of_support?: number;
645
+ }
646
+ export declare const ExportUsersUnsupportedVersionRequest: S.Schema<ExportUsersUnsupportedVersionRequest>;
647
+ export interface ExportUsersUnsupportedVersionResponse {
648
+ /** Always `true` (a failed call raises a typed error instead). */
649
+ ok: boolean;
650
+ }
651
+ export declare const ExportUsersUnsupportedVersionResponse: S.Schema<ExportUsersUnsupportedVersionResponse>;
652
+ export interface GetConversationPrefsRequest {
653
+ /** The channel to get preferences for. */
654
+ channel_id: string;
655
+ }
656
+ export declare const GetConversationPrefsRequest: S.Schema<GetConversationPrefsRequest>;
657
+ /** Comma separated string of user types */
658
+ export type GetConversationPrefsResponsePrefsWhoCanPostTypeList = Array<string>;
659
+ export declare const GetConversationPrefsResponsePrefsWhoCanPostTypeList: S.Schema<GetConversationPrefsResponsePrefsWhoCanPostTypeList>;
660
+ /** Comma separated string of user IDs */
661
+ export type GetConversationPrefsResponsePrefsWhoCanPostUserList = Array<string>;
662
+ export declare const GetConversationPrefsResponsePrefsWhoCanPostUserList: S.Schema<GetConversationPrefsResponsePrefsWhoCanPostUserList>;
663
+ export interface GetConversationPrefsResponsePrefsWhoCanPost {
664
+ /** Comma separated string of user types */
665
+ type?: GetConversationPrefsResponsePrefsWhoCanPostTypeList;
666
+ /** Comma separated string of user IDs */
667
+ user?: GetConversationPrefsResponsePrefsWhoCanPostUserList;
668
+ }
669
+ export declare const GetConversationPrefsResponsePrefsWhoCanPost: S.Schema<GetConversationPrefsResponsePrefsWhoCanPost>;
670
+ /** Comma separated string of user types */
671
+ export type GetConversationPrefsResponsePrefsCanThreadTypeList = Array<string>;
672
+ export declare const GetConversationPrefsResponsePrefsCanThreadTypeList: S.Schema<GetConversationPrefsResponsePrefsCanThreadTypeList>;
673
+ /** Comma separated string of user IDs */
674
+ export type GetConversationPrefsResponsePrefsCanThreadUserList = Array<string>;
675
+ export declare const GetConversationPrefsResponsePrefsCanThreadUserList: S.Schema<GetConversationPrefsResponsePrefsCanThreadUserList>;
676
+ export interface GetConversationPrefsResponsePrefsCanThread {
677
+ /** Comma separated string of user types */
678
+ type?: GetConversationPrefsResponsePrefsCanThreadTypeList;
679
+ /** Comma separated string of user IDs */
680
+ user?: GetConversationPrefsResponsePrefsCanThreadUserList;
681
+ }
682
+ export declare const GetConversationPrefsResponsePrefsCanThread: S.Schema<GetConversationPrefsResponsePrefsCanThread>;
683
+ export interface GetConversationPrefsResponsePrefsMembershipLimit {
684
+ /** Membership limit value */
685
+ value?: number;
686
+ }
687
+ export declare const GetConversationPrefsResponsePrefsMembershipLimit: S.Schema<GetConversationPrefsResponsePrefsMembershipLimit>;
688
+ export interface GetConversationPrefsResponsePrefsCanHuddle {
689
+ /** Can start a huddle */
690
+ enabled?: boolean;
691
+ }
692
+ export declare const GetConversationPrefsResponsePrefsCanHuddle: S.Schema<GetConversationPrefsResponsePrefsCanHuddle>;
693
+ export interface GetConversationPrefsResponsePrefsEnableAtChannel {
694
+ /** Enable channel mentions in channel. */
695
+ enabled?: boolean;
696
+ }
697
+ export declare const GetConversationPrefsResponsePrefsEnableAtChannel: S.Schema<GetConversationPrefsResponsePrefsEnableAtChannel>;
698
+ export interface GetConversationPrefsResponsePrefsEnableAtHere {
699
+ /** Enable here mentions in channel. */
700
+ enabled?: boolean;
701
+ }
702
+ export declare const GetConversationPrefsResponsePrefsEnableAtHere: S.Schema<GetConversationPrefsResponsePrefsEnableAtHere>;
703
+ export interface GetConversationPrefsResponsePrefs {
704
+ who_can_post?: GetConversationPrefsResponsePrefsWhoCanPost;
705
+ can_thread?: GetConversationPrefsResponsePrefsCanThread;
706
+ membership_limit?: GetConversationPrefsResponsePrefsMembershipLimit;
707
+ can_huddle?: GetConversationPrefsResponsePrefsCanHuddle;
708
+ enable_at_channel?: GetConversationPrefsResponsePrefsEnableAtChannel;
709
+ enable_at_here?: GetConversationPrefsResponsePrefsEnableAtHere;
710
+ }
711
+ export declare const GetConversationPrefsResponsePrefs: S.Schema<GetConversationPrefsResponsePrefs>;
712
+ export interface GetConversationPrefsResponse {
713
+ ok: boolean;
714
+ prefs?: GetConversationPrefsResponsePrefs;
715
+ }
716
+ export declare const GetConversationPrefsResponse: S.Schema<GetConversationPrefsResponse>;
717
+ export interface GetCustomRetentionRequest {
718
+ /** The conversation to get the retention policy for. */
719
+ channel_id: string;
720
+ }
721
+ export declare const GetCustomRetentionRequest: S.Schema<GetCustomRetentionRequest>;
722
+ export interface GetCustomRetentionResponse {
723
+ /** Always `true` (a failed call raises a typed error instead). */
724
+ ok: boolean;
725
+ /** Is there a policy set on this conversation that overrides the default retention policy. */
726
+ is_policy_enabled: boolean;
727
+ /** The message retention duration in days to set for this conversation */
728
+ duration_days: number;
729
+ }
730
+ export declare const GetCustomRetentionResponse: S.Schema<GetCustomRetentionResponse>;
731
+ export interface GetEntitiesRequest {
732
+ /** The name of the policy to fetch entities for. Currently, `email_password` is the only policy that may be used with this method. */
733
+ policy_name: string;
734
+ /** The type of entity to assign to the policy. Currently, `USER` is supported. */
735
+ entity_type?: unknown;
736
+ /** The maximum number of items to return. Must be between 1 and 1000, both inclusive. */
737
+ limit?: number;
738
+ /** Set `cursor` to `next_cursor` returned by the previous call to list items in the next page. */
739
+ cursor?: string;
740
+ }
741
+ export declare const GetEntitiesRequest: S.Schema<GetEntitiesRequest>;
742
+ /** Pagination metadata. An empty `next_cursor` means the last page. */
743
+ export type GetEntitiesResponseResponseMetadata = AnalyticsMessagesActivityResponseResponseMetadata;
744
+ export declare const GetEntitiesResponseResponseMetadata: S.Schema<AnalyticsMessagesActivityResponseResponseMetadata>;
745
+ export interface GetEntitiesResponseEntitiesItem {
746
+ /** The type of entity assigned to the policy. Informs the meaning of the entity_id. */
747
+ entity_type: string;
748
+ /** Encoded ID of the assigned entity. user_id if the entity_type = USER */
749
+ entity_id: string;
750
+ /** The date this entity was assigned to this policy. */
751
+ date_added: number;
752
+ }
753
+ export declare const GetEntitiesResponseEntitiesItem: S.Schema<GetEntitiesResponseEntitiesItem>;
754
+ /** Entities assigned to the policy */
755
+ export type GetEntitiesResponseEntitiesList = Array<GetEntitiesResponseEntitiesItem>;
756
+ export declare const GetEntitiesResponseEntitiesList: S.Schema<GetEntitiesResponseEntitiesList>;
757
+ export interface GetEntitiesResponse {
758
+ /** Always `true` (a failed call raises a typed error instead). */
759
+ ok: boolean;
760
+ /** Pagination metadata. An empty `next_cursor` means the last page. */
761
+ response_metadata?: AnalyticsMessagesActivityResponseResponseMetadata;
762
+ /** Entities assigned to the policy */
763
+ entities: GetEntitiesResponseEntitiesList;
764
+ /** Count of entities under the policy and provided filter conditions */
765
+ entity_total_count: number;
766
+ }
767
+ export declare const GetEntitiesResponse: S.Schema<GetEntitiesResponse>;
768
+ export interface GetExpirationRequest {
769
+ /** The ID of the guest user to get the expiration for. */
770
+ user_id?: string;
771
+ /** If an org token is passed in and this team is on the org, it will operate on the workspace level on the specified team. Otherwise it will operate on the org or team in context. */
772
+ target_team?: string;
773
+ }
774
+ export declare const GetExpirationRequest: S.Schema<GetExpirationRequest>;
775
+ export interface GetExpirationResponse {
776
+ /** Always `true` (a failed call raises a typed error instead). */
777
+ ok: boolean;
778
+ }
779
+ export declare const GetExpirationResponse: S.Schema<GetExpirationResponse>;
780
+ export interface GetFileRequest {
781
+ /** Date to retrieve the analytics data for, expressed as `YYYY-MM-DD` in UTC. Required unless `metadata_only` is set to true. */
782
+ date?: string;
783
+ /** The type of analytics to retrieve. The options are currently limited to `member` (for Enterprise org member analytics) and `public_channel` (for public channel analytics). */
784
+ type: string;
785
+ /** Retrieve metadata for the `type` of analytics indicated. Can be used only with `type` set to `public_channel` analytics. See [detail below](#metadata_only). Omit the `date` parameter when using this argument. */
786
+ metadata_only?: boolean;
787
+ }
788
+ export declare const GetFileRequest: S.Schema<GetFileRequest>;
789
+ export type GetFileResponse = unknown;
790
+ export declare const GetFileResponse: S.Schema<GetFileResponse>;
791
+ export interface GetItemRequest {
792
+ }
793
+ export declare const GetItemRequest: S.Schema<GetItemRequest>;
794
+ /** allow list of IPv4 addresses using cidr notation in the Enterprise organization configuration */
795
+ export type GetItemResponseTrustedCidrList = Array<string>;
796
+ export declare const GetItemResponseTrustedCidrList: S.Schema<GetItemResponseTrustedCidrList>;
797
+ /** allow list of Autonomous System Numbers (ASN) in the Enterprise organization configuration */
798
+ export type GetItemResponseTrustedAsnsList = Array<number>;
799
+ export declare const GetItemResponseTrustedAsnsList: S.Schema<GetItemResponseTrustedAsnsList>;
800
+ export interface GetItemResponse {
801
+ /** Always `true` (a failed call raises a typed error instead). */
802
+ ok: boolean;
803
+ /** allow list of IPv4 addresses using cidr notation in the Enterprise organization configuration */
804
+ trusted_cidr?: GetItemResponseTrustedCidrList;
805
+ /** allow list of Autonomous System Numbers (ASN) in the Enterprise organization configuration */
806
+ trusted_asns?: GetItemResponseTrustedAsnsList;
807
+ }
808
+ export declare const GetItemResponse: S.Schema<GetItemResponse>;
809
+ /** The IDs of users you'd like to fetch session settings for. Note: if a user does not have any active sessions, they will not be returned in the response. */
810
+ export type GetSettingsRequestUserIdsList = Array<string>;
811
+ export declare const GetSettingsRequestUserIdsList: S.Schema<GetSettingsRequestUserIdsList>;
812
+ export interface GetSettingsRequest {
813
+ /** The IDs of users you'd like to fetch session settings for. Note: if a user does not have any active sessions, they will not be returned in the response. */
814
+ user_ids: GetSettingsRequestUserIdsList;
815
+ }
816
+ export declare const GetSettingsRequest: S.Schema<GetSettingsRequest>;
817
+ export interface GetSettingsResponseSessionSettingsItem {
818
+ /** Encoded ID of the user */
819
+ user_id: string;
820
+ desktop_app_browser_quit: unknown;
821
+ duration: unknown;
822
+ }
823
+ export declare const GetSettingsResponseSessionSettingsItem: S.Schema<GetSettingsResponseSessionSettingsItem>;
824
+ /** User specific session settings */
825
+ export type GetSettingsResponseSessionSettingsList = Array<GetSettingsResponseSessionSettingsItem>;
826
+ export declare const GetSettingsResponseSessionSettingsList: S.Schema<GetSettingsResponseSessionSettingsList>;
827
+ /** The IDs of users requested that do not have any user session settings applied. */
828
+ export type GetSettingsResponseNoSettingsAppliedList = Array<string>;
829
+ export declare const GetSettingsResponseNoSettingsAppliedList: S.Schema<GetSettingsResponseNoSettingsAppliedList>;
830
+ export interface GetSettingsResponse {
831
+ /** Always `true` (a failed call raises a typed error instead). */
832
+ ok: boolean;
833
+ /** User specific session settings */
834
+ session_settings?: GetSettingsResponseSessionSettingsList;
835
+ /** The IDs of users requested that do not have any user session settings applied. */
836
+ no_settings_applied?: GetSettingsResponseNoSettingsAppliedList;
837
+ }
838
+ export declare const GetSettingsResponse: S.Schema<GetSettingsResponse>;
839
+ export interface GetTeamsRequest {
840
+ /** The channel to determine connected workspaces within the organization for. */
841
+ channel_id: string;
842
+ /** Set `cursor` to `next_cursor` returned by the previous call to list items in the next page */
843
+ cursor?: string;
844
+ /** The maximum number of items to return. Must be between 1 - 1000 both inclusive. */
845
+ limit?: number;
846
+ }
847
+ export declare const GetTeamsRequest: S.Schema<GetTeamsRequest>;
848
+ /** Pagination metadata. An empty `next_cursor` means the last page. */
849
+ export type GetTeamsResponseResponseMetadata = AnalyticsMessagesActivityResponseResponseMetadata;
850
+ export declare const GetTeamsResponseResponseMetadata: S.Schema<AnalyticsMessagesActivityResponseResponseMetadata>;
851
+ export interface GetTeamsResponse {
852
+ ok: boolean;
853
+ /** Pagination metadata. An empty `next_cursor` means the last page. */
854
+ response_metadata?: AnalyticsMessagesActivityResponseResponseMetadata;
855
+ }
856
+ export declare const GetTeamsResponse: S.Schema<GetTeamsResponse>;
857
+ export interface InvalidateUsersSessionRequest {
858
+ /** ID of the workspace that the session belongs to. */
859
+ team_id?: string;
860
+ /** ID of the user that the session belongs to. */
861
+ user_id: string;
862
+ /** ID of the session to invalidate. */
863
+ session_id: number;
864
+ }
865
+ export declare const InvalidateUsersSessionRequest: S.Schema<InvalidateUsersSessionRequest>;
866
+ export interface InvalidateUsersSessionResponse {
867
+ /** Always `true` (a failed call raises a typed error instead). */
868
+ ok: boolean;
869
+ }
870
+ export declare const InvalidateUsersSessionResponse: S.Schema<InvalidateUsersSessionResponse>;
871
+ /** The users to invite. */
872
+ export type InviteConversationRequestUserIdsList = Array<string>;
873
+ export declare const InviteConversationRequestUserIdsList: S.Schema<InviteConversationRequestUserIdsList>;
874
+ export interface InviteConversationRequest {
875
+ /** The users to invite. */
876
+ user_ids: InviteConversationRequestUserIdsList;
877
+ /** The channel that the users will be invited to. */
878
+ channel_id: string;
879
+ }
880
+ export declare const InviteConversationRequest: S.Schema<InviteConversationRequest>;
881
+ export interface InviteConversationResponse {
882
+ ok: boolean;
883
+ }
884
+ export declare const InviteConversationResponse: S.Schema<InviteConversationResponse>;
885
+ export interface InviteRequestsDenyRequest {
886
+ /** ID for the workspace where the invite request was made. */
887
+ team_id?: string;
888
+ /** ID of the request to invite. */
889
+ invite_request_id: string;
890
+ }
891
+ export declare const InviteRequestsDenyRequest: S.Schema<InviteRequestsDenyRequest>;
892
+ export interface InviteRequestsDenyResponse {
893
+ /** Always `true` (a failed call raises a typed error instead). */
894
+ ok: boolean;
895
+ }
896
+ export declare const InviteRequestsDenyResponse: S.Schema<InviteRequestsDenyResponse>;
897
+ export interface InviteUserRequest {
898
+ /** The ID (`T1234`) of the workspace. */
899
+ team_id: string;
900
+ /** The email address of the person to invite. */
901
+ email: string;
902
+ /** A comma-separated list of `channel_id`s for this user to join. At least one channel is required. */
903
+ channel_ids: string;
904
+ /** An optional message to send to the user in the invite email. */
905
+ custom_message?: string;
906
+ /** Full name of the user. */
907
+ real_name?: string;
908
+ /** Allow this invite to be resent in the future if a user has not signed up yet. Resending can only be done via the UI and has no expiration. (default: false) */
909
+ resend?: boolean;
910
+ /** Is this user a multi-channel guest user? (default: false) */
911
+ is_restricted?: boolean;
912
+ /** Is this user a single channel guest user? (default: false) */
913
+ is_ultra_restricted?: boolean;
914
+ /** Timestamp when guest account should be disabled. Only include this timestamp if you are inviting a guest user and you want their account to expire on a certain date. */
915
+ guest_expiration_ts?: string;
916
+ /** Allow invited user to sign in via email and password. Only available for Enterprise org teams via admin invite. */
917
+ email_password_policy_enabled?: boolean;
918
+ }
919
+ export declare const InviteUserRequest: S.Schema<InviteUserRequest>;
920
+ export interface InviteUserResponse {
921
+ ok: boolean;
922
+ }
923
+ export declare const InviteUserResponse: S.Schema<InviteUserResponse>;
924
+ export interface LinkObjectsRequest {
925
+ /** Channel ID for Slack channel that will be linked to a Salesforce record. */
926
+ channel: string;
927
+ /** Salesforce record ID (15 or 18 digit accepted). See [here](https://help.salesforce.com/s/articleView?id=000385008&type=1) for how to look up record ID. */
928
+ record_id: string;
929
+ /** Salesforce org ID (15 or 18 digit accepted). See [here](https://help.salesforce.com/s/articleView?id=000385215&type=1) for how to look up Salesforce org ID. */
930
+ salesforce_org_id: string;
931
+ }
932
+ export declare const LinkObjectsRequest: S.Schema<LinkObjectsRequest>;
933
+ export interface LinkObjectsResponse {
934
+ /** Always `true` (a failed call raises a typed error instead). */
935
+ ok: boolean;
936
+ }
937
+ export declare const LinkObjectsResponse: S.Schema<LinkObjectsResponse>;
938
+ /** The direction you want the data sorted by (always by timestamp) */
939
+ export type ListAppsActivitiesRequestSortDirection = "asc" | "desc";
940
+ export declare const ListAppsActivitiesRequestSortDirection: any;
941
+ export interface ListAppsActivitiesRequest {
942
+ /** The ID of the app to get activities from. */
943
+ app_id?: string;
944
+ /** The team who owns this log. */
945
+ team_id?: string;
946
+ /** Paginate through collections of data by setting the `cursor` parameter to a `next_cursor` attribute returned by a previous request's `response_metadata`. See [pagination](/apis/web-api/pagination) for more detail. */
947
+ cursor?: string;
948
+ /** The maximum number of items to return. */
949
+ limit?: number;
950
+ /** The minimum log level of the log events to be returned. Defaults to `info`. Acceptable values (in order of relative importance from smallest to largest) are `trace`, `debug`, `info`, `warn`, `error` and `fatal`. */
951
+ min_log_level?: string;
952
+ /** The event type of log events to be returned. */
953
+ log_event_type?: string;
954
+ /** The source of log events to be returned. Acceptable values are `slack` and `developer`. */
955
+ source?: string;
956
+ /** The component type of log events to be returned. Acceptable values are `events_api`, `workflows`, `functions` and `tables`. */
957
+ component_type?: string;
958
+ /** The component ID of log events to be returned. Will be `FnXXXXXX` for functions, and `WfXXXXXX` for workflows */
959
+ component_id?: string;
960
+ /** The trace ID of log events to be returned. */
961
+ trace_id?: string;
962
+ /** The earliest timestamp of the log to retrieve (epoch microseconds). */
963
+ min_date_created?: number;
964
+ /** The latest timestamp of the log to retrieve (epoch microseconds). */
965
+ max_date_created?: number;
966
+ /** The direction you want the data sorted by (always by timestamp) */
967
+ sort_direction?: ListAppsActivitiesRequestSortDirection | (string & {});
968
+ }
969
+ export declare const ListAppsActivitiesRequest: S.Schema<ListAppsActivitiesRequest>;
970
+ export type ListAppsActivitiesResponseActivitiesList = Array<unknown>;
971
+ export declare const ListAppsActivitiesResponseActivitiesList: S.Schema<ListAppsActivitiesResponseActivitiesList>;
972
+ /** Pagination metadata. An empty `next_cursor` means the last page. */
973
+ export type ListAppsActivitiesResponseResponseMetadata = AnalyticsMessagesActivityResponseResponseMetadata;
974
+ export declare const ListAppsActivitiesResponseResponseMetadata: S.Schema<AnalyticsMessagesActivityResponseResponseMetadata>;
975
+ export interface ListAppsActivitiesResponse {
976
+ /** Always `true` (a failed call raises a typed error instead). */
977
+ ok: boolean;
978
+ activities: ListAppsActivitiesResponseActivitiesList;
979
+ /** Pagination metadata. An empty `next_cursor` means the last page. */
980
+ response_metadata?: AnalyticsMessagesActivityResponseResponseMetadata;
981
+ }
982
+ export declare const ListAppsActivitiesResponse: S.Schema<ListAppsActivitiesResponse>;
983
+ export interface ListAppsApprovedRequest {
984
+ /** The maximum number of items to return. Must be between 1 - 1000 both inclusive. */
985
+ limit?: number;
986
+ /** Set `cursor` to `next_cursor` returned by the previous call to list items in the next page */
987
+ cursor?: string;
988
+ team_id?: string;
989
+ enterprise_id?: string;
990
+ /** Limit the results to only include certified apps. When false, no certified apps will appear in the result */
991
+ certified?: boolean;
992
+ }
993
+ export declare const ListAppsApprovedRequest: S.Schema<ListAppsApprovedRequest>;
994
+ export type ListAppsApprovedResponseApprovedAppsList = Array<unknown>;
995
+ export declare const ListAppsApprovedResponseApprovedAppsList: S.Schema<ListAppsApprovedResponseApprovedAppsList>;
996
+ /** Pagination metadata. An empty `next_cursor` means the last page. */
997
+ export type ListAppsApprovedResponseResponseMetadata = AnalyticsMessagesActivityResponseResponseMetadata;
998
+ export declare const ListAppsApprovedResponseResponseMetadata: S.Schema<AnalyticsMessagesActivityResponseResponseMetadata>;
999
+ export interface ListAppsApprovedResponse {
1000
+ /** Always `true` (a failed call raises a typed error instead). */
1001
+ ok: boolean;
1002
+ approved_apps: ListAppsApprovedResponseApprovedAppsList;
1003
+ /** Pagination metadata. An empty `next_cursor` means the last page. */
1004
+ response_metadata?: AnalyticsMessagesActivityResponseResponseMetadata;
1005
+ }
1006
+ export declare const ListAppsApprovedResponse: S.Schema<ListAppsApprovedResponse>;
1007
+ export interface ListAppsMcpServersRequest {
1008
+ /** The maximum number of items to return. Must be between 1 - 1000 both inclusive. */
1009
+ limit?: number;
1010
+ /** Set `cursor` to `next_cursor` returned by the previous call to list items in the next page */
1011
+ cursor?: string;
1012
+ }
1013
+ export declare const ListAppsMcpServersRequest: S.Schema<ListAppsMcpServersRequest>;
1014
+ export interface ListAppsMcpServersResponseServersItem {
1015
+ /** Encoded ID of the MCP server */
1016
+ server_id: string;
1017
+ /** Name of the MCP server */
1018
+ server_name: string;
1019
+ /** The URL of the MCP server */
1020
+ url: string;
1021
+ /** The authentication type for the MCP server */
1022
+ auth_type: unknown;
1023
+ /** Encoded ID of the app that provides this MCP server */
1024
+ app_id: string;
1025
+ /** Name of the app that provides this MCP server */
1026
+ app_name: string;
1027
+ }
1028
+ export declare const ListAppsMcpServersResponseServersItem: S.Schema<ListAppsMcpServersResponseServersItem>;
1029
+ export type ListAppsMcpServersResponseServersList = Array<ListAppsMcpServersResponseServersItem>;
1030
+ export declare const ListAppsMcpServersResponseServersList: S.Schema<ListAppsMcpServersResponseServersList>;
1031
+ /** Pagination metadata. An empty `next_cursor` means the last page. */
1032
+ export type ListAppsMcpServersResponseResponseMetadata = AnalyticsMessagesActivityResponseResponseMetadata;
1033
+ export declare const ListAppsMcpServersResponseResponseMetadata: S.Schema<AnalyticsMessagesActivityResponseResponseMetadata>;
1034
+ export interface ListAppsMcpServersResponse {
1035
+ /** Always `true` (a failed call raises a typed error instead). */
1036
+ ok: boolean;
1037
+ servers: ListAppsMcpServersResponseServersList;
1038
+ /** Pagination metadata. An empty `next_cursor` means the last page. */
1039
+ response_metadata?: AnalyticsMessagesActivityResponseResponseMetadata;
1040
+ }
1041
+ export declare const ListAppsMcpServersResponse: S.Schema<ListAppsMcpServersResponse>;
1042
+ export interface ListAppsMcpServersPermissionsRequest {
1043
+ /** Encoded ID of the app */
1044
+ app_id: string;
1045
+ }
1046
+ export declare const ListAppsMcpServersPermissionsRequest: S.Schema<ListAppsMcpServersPermissionsRequest>;
1047
+ export type ListAppsMcpServersPermissionsResponseServersList = Array<unknown>;
1048
+ export declare const ListAppsMcpServersPermissionsResponseServersList: S.Schema<ListAppsMcpServersPermissionsResponseServersList>;
1049
+ export interface ListAppsMcpServersPermissionsResponse {
1050
+ /** Always `true` (a failed call raises a typed error instead). */
1051
+ ok: boolean;
1052
+ servers: ListAppsMcpServersPermissionsResponseServersList;
1053
+ }
1054
+ export declare const ListAppsMcpServersPermissionsResponse: S.Schema<ListAppsMcpServersPermissionsResponse>;
1055
+ export interface ListAppsPermissionsRequest {
1056
+ /** Encoded ID of the app */
1057
+ app_id: string;
1058
+ }
1059
+ export declare const ListAppsPermissionsRequest: S.Schema<ListAppsPermissionsRequest>;
1060
+ export interface ListAppsPermissionsResponse {
1061
+ /** Always `true` (a failed call raises a typed error instead). */
1062
+ ok: boolean;
1063
+ }
1064
+ export declare const ListAppsPermissionsResponse: S.Schema<ListAppsPermissionsResponse>;
1065
+ export interface ListAppsRequestsRequest {
1066
+ /** The maximum number of items to return. Must be between 1 - 1000 both inclusive. */
1067
+ limit?: number;
1068
+ /** Set `cursor` to `next_cursor` returned by the previous call to list items in the next page */
1069
+ cursor?: string;
1070
+ team_id?: string;
1071
+ enterprise_id?: string;
1072
+ /** Include requests for certified apps */
1073
+ certified?: boolean;
1074
+ }
1075
+ export declare const ListAppsRequestsRequest: S.Schema<ListAppsRequestsRequest>;
1076
+ export type ListAppsRequestsResponseAppRequestsList = Array<unknown>;
1077
+ export declare const ListAppsRequestsResponseAppRequestsList: S.Schema<ListAppsRequestsResponseAppRequestsList>;
1078
+ /** Pagination metadata. An empty `next_cursor` means the last page. */
1079
+ export type ListAppsRequestsResponseResponseMetadata = AnalyticsMessagesActivityResponseResponseMetadata;
1080
+ export declare const ListAppsRequestsResponseResponseMetadata: S.Schema<AnalyticsMessagesActivityResponseResponseMetadata>;
1081
+ export interface ListAppsRequestsResponse {
1082
+ /** Always `true` (a failed call raises a typed error instead). */
1083
+ ok: boolean;
1084
+ app_requests: ListAppsRequestsResponseAppRequestsList;
1085
+ /** Pagination metadata. An empty `next_cursor` means the last page. */
1086
+ response_metadata?: AnalyticsMessagesActivityResponseResponseMetadata;
1087
+ }
1088
+ export declare const ListAppsRequestsResponse: S.Schema<ListAppsRequestsResponse>;
1089
+ export interface ListAppsRestrictedRequest {
1090
+ /** The maximum number of items to return. Must be between 1 - 1000 both inclusive. */
1091
+ limit?: number;
1092
+ /** Set `cursor` to `next_cursor` returned by the previous call to list items in the next page */
1093
+ cursor?: string;
1094
+ team_id?: string;
1095
+ enterprise_id?: string;
1096
+ /** Limit the results to only include certified apps. When false, no certified apps will appear in the result */
1097
+ certified?: boolean;
1098
+ }
1099
+ export declare const ListAppsRestrictedRequest: S.Schema<ListAppsRestrictedRequest>;
1100
+ export type ListAppsRestrictedResponseRestrictedAppsList = Array<unknown>;
1101
+ export declare const ListAppsRestrictedResponseRestrictedAppsList: S.Schema<ListAppsRestrictedResponseRestrictedAppsList>;
1102
+ /** Pagination metadata. An empty `next_cursor` means the last page. */
1103
+ export type ListAppsRestrictedResponseResponseMetadata = AnalyticsMessagesActivityResponseResponseMetadata;
1104
+ export declare const ListAppsRestrictedResponseResponseMetadata: S.Schema<AnalyticsMessagesActivityResponseResponseMetadata>;
1105
+ export interface ListAppsRestrictedResponse {
1106
+ /** Always `true` (a failed call raises a typed error instead). */
1107
+ ok: boolean;
1108
+ restricted_apps: ListAppsRestrictedResponseRestrictedAppsList;
1109
+ /** Pagination metadata. An empty `next_cursor` means the last page. */
1110
+ response_metadata?: AnalyticsMessagesActivityResponseResponseMetadata;
1111
+ }
1112
+ export declare const ListAppsRestrictedResponse: S.Schema<ListAppsRestrictedResponse>;
1113
+ export type ListAssignmentsRequestRoleIdsList = Array<string>;
1114
+ export declare const ListAssignmentsRequestRoleIdsList: S.Schema<ListAssignmentsRequestRoleIdsList>;
1115
+ export type ListAssignmentsRequestEntityIdsList = Array<string>;
1116
+ export declare const ListAssignmentsRequestEntityIdsList: S.Schema<ListAssignmentsRequestEntityIdsList>;
1117
+ export interface ListAssignmentsRequest {
1118
+ /** Set `cursor` to `next_cursor` returned by the previous call to list items in the next page */
1119
+ cursor?: string;
1120
+ /** The maximum number of items to return. Must be between 1 - 200 both inclusive. */
1121
+ limit?: number;
1122
+ /** collection of role ids to scope results by */
1123
+ role_ids?: ListAssignmentsRequestRoleIdsList;
1124
+ /** The entities for which the roles apply */
1125
+ entity_ids?: ListAssignmentsRequestEntityIdsList;
1126
+ /** Sort direction. Default is descending on date_create, can be either ASC or DESC */
1127
+ sort_dir?: string;
1128
+ }
1129
+ export declare const ListAssignmentsRequest: S.Schema<ListAssignmentsRequest>;
1130
+ export interface ListAssignmentsResponseRoleAssignmentsItem {
1131
+ /** ID of the role that is assigned */
1132
+ role_id: string;
1133
+ /** ID of entity for which the role is assigned */
1134
+ entity_id: string;
1135
+ /** ID of the user for which the role is assigned */
1136
+ user_id: string;
1137
+ /** Timestamp of when the membership was created. */
1138
+ date_create: number;
1139
+ }
1140
+ export declare const ListAssignmentsResponseRoleAssignmentsItem: S.Schema<ListAssignmentsResponseRoleAssignmentsItem>;
1141
+ export type ListAssignmentsResponseRoleAssignmentsList = Array<ListAssignmentsResponseRoleAssignmentsItem>;
1142
+ export declare const ListAssignmentsResponseRoleAssignmentsList: S.Schema<ListAssignmentsResponseRoleAssignmentsList>;
1143
+ /** Pagination metadata. An empty `next_cursor` means the last page. */
1144
+ export type ListAssignmentsResponseResponseMetadata = AnalyticsMessagesActivityResponseResponseMetadata;
1145
+ export declare const ListAssignmentsResponseResponseMetadata: S.Schema<AnalyticsMessagesActivityResponseResponseMetadata>;
1146
+ export interface ListAssignmentsResponse {
1147
+ /** Always `true` (a failed call raises a typed error instead). */
1148
+ ok: boolean;
1149
+ /** A string representation of the error type */
1150
+ error?: string;
1151
+ role_assignments: ListAssignmentsResponseRoleAssignmentsList;
1152
+ /** Pagination metadata. An empty `next_cursor` means the last page. */
1153
+ response_metadata?: AnalyticsMessagesActivityResponseResponseMetadata;
1154
+ }
1155
+ export declare const ListAssignmentsResponse: S.Schema<ListAssignmentsResponse>;
1156
+ export interface ListBarriersRequest {
1157
+ /** The maximum number of items to return. Must be between 1 - 1000 both inclusive */
1158
+ limit?: number;
1159
+ /** Set `cursor` to `next_cursor` returned by the previous call to list items in the next page */
1160
+ cursor?: string;
1161
+ }
1162
+ export declare const ListBarriersRequest: S.Schema<ListBarriersRequest>;
1163
+ export type ListBarriersResponseBarriersList = Array<unknown>;
1164
+ export declare const ListBarriersResponseBarriersList: S.Schema<ListBarriersResponseBarriersList>;
1165
+ /** Pagination metadata. An empty `next_cursor` means the last page. */
1166
+ export type ListBarriersResponseResponseMetadata = AnalyticsMessagesActivityResponseResponseMetadata;
1167
+ export declare const ListBarriersResponseResponseMetadata: S.Schema<AnalyticsMessagesActivityResponseResponseMetadata>;
1168
+ export interface ListBarriersResponse {
1169
+ ok: boolean;
1170
+ barriers: ListBarriersResponseBarriersList;
1171
+ /** Pagination metadata. An empty `next_cursor` means the last page. */
1172
+ response_metadata?: AnalyticsMessagesActivityResponseResponseMetadata;
1173
+ }
1174
+ export declare const ListBarriersResponse: S.Schema<ListBarriersResponse>;
1175
+ export interface ListChannelsRequest {
1176
+ /** ID of the IDP group to list default channels for. */
1177
+ usergroup_id: string;
1178
+ /** ID of the the workspace. */
1179
+ team_id?: string;
1180
+ /** Flag to include or exclude the count of members per channel. */
1181
+ include_num_members?: boolean;
1182
+ }
1183
+ export declare const ListChannelsRequest: S.Schema<ListChannelsRequest>;
1184
+ export type ListChannelsResponseChannelsList = Array<string>;
1185
+ export declare const ListChannelsResponseChannelsList: S.Schema<ListChannelsResponseChannelsList>;
1186
+ export interface ListChannelsResponse {
1187
+ /** Always `true` (a failed call raises a typed error instead). */
1188
+ ok: boolean;
1189
+ channels: ListChannelsResponseChannelsList;
1190
+ /** A string representation of the error type */
1191
+ error?: string;
1192
+ }
1193
+ export declare const ListChannelsResponse: S.Schema<ListChannelsResponse>;
1194
+ export interface ListEmojiRequest {
1195
+ /** Set `cursor` to `next_cursor` returned by the previous call to list items in the next page */
1196
+ cursor?: string;
1197
+ /** The maximum number of items to return. Must be between 1 - 1000 both inclusive. */
1198
+ limit?: number;
1199
+ }
1200
+ export declare const ListEmojiRequest: S.Schema<ListEmojiRequest>;
1201
+ export type ListEmojiResponseEmojiMap = {
1202
+ [key: string]: unknown | undefined;
1203
+ };
1204
+ export declare const ListEmojiResponseEmojiMap: S.Schema<ListEmojiResponseEmojiMap>;
1205
+ /** Pagination metadata. An empty `next_cursor` means the last page. */
1206
+ export type ListEmojiResponseResponseMetadata = AnalyticsMessagesActivityResponseResponseMetadata;
1207
+ export declare const ListEmojiResponseResponseMetadata: S.Schema<AnalyticsMessagesActivityResponseResponseMetadata>;
1208
+ export interface ListEmojiResponse {
1209
+ /** Always `true` (a failed call raises a typed error instead). */
1210
+ ok: boolean;
1211
+ emoji: ListEmojiResponseEmojiMap;
1212
+ /** Pagination metadata. An empty `next_cursor` means the last page. */
1213
+ response_metadata?: AnalyticsMessagesActivityResponseResponseMetadata;
1214
+ }
1215
+ export declare const ListEmojiResponse: S.Schema<ListEmojiResponse>;
1216
+ /** Comma-separated array of app IDs to get functions for; max 50. */
1217
+ export type ListFunctionsRequestAppIdsList = Array<string>;
1218
+ export declare const ListFunctionsRequestAppIdsList: S.Schema<ListFunctionsRequestAppIdsList>;
1219
+ export interface ListFunctionsRequest {
1220
+ /** The team context to retrieve functions from. */
1221
+ team_id?: string;
1222
+ /** Comma-separated array of app IDs to get functions for; max 50. */
1223
+ app_ids: ListFunctionsRequestAppIdsList;
1224
+ /** Whether to also include functions that are not yet distributed to any users in the function count. This is needed for admins that are approving an app request and will only work if the team owns the app. */
1225
+ include_non_distributed_functions?: boolean;
1226
+ /** Set `cursor` to `next_cursor` returned by the previous call to list items in the next page. */
1227
+ cursor?: string;
1228
+ /** The number of results that will be returned by the API on each invocation. Must be between 1 and 1000, both inclusive. */
1229
+ limit?: number;
1230
+ }
1231
+ export declare const ListFunctionsRequest: S.Schema<ListFunctionsRequest>;
1232
+ export type ListFunctionsResponseFunctionsList = Array<unknown>;
1233
+ export declare const ListFunctionsResponseFunctionsList: S.Schema<ListFunctionsResponseFunctionsList>;
1234
+ /** Pagination metadata. An empty `next_cursor` means the last page. */
1235
+ export type ListFunctionsResponseResponseMetadata = AnalyticsMessagesActivityResponseResponseMetadata;
1236
+ export declare const ListFunctionsResponseResponseMetadata: S.Schema<AnalyticsMessagesActivityResponseResponseMetadata>;
1237
+ export interface ListFunctionsResponse {
1238
+ /** Always `true` (a failed call raises a typed error instead). */
1239
+ ok: boolean;
1240
+ functions: ListFunctionsResponseFunctionsList;
1241
+ /** Pagination metadata. An empty `next_cursor` means the last page. */
1242
+ response_metadata?: AnalyticsMessagesActivityResponseResponseMetadata;
1243
+ }
1244
+ export declare const ListFunctionsResponse: S.Schema<ListFunctionsResponse>;
1245
+ export interface ListGroupsRequest {
1246
+ channel_id: string;
1247
+ /** The workspace where the channel exists. This argument is required for channels only tied to one workspace, and optional for channels that are shared across an organization. */
1248
+ team_id?: string;
1249
+ }
1250
+ export declare const ListGroupsRequest: S.Schema<ListGroupsRequest>;
1251
+ export type ListGroupsResponseGroupIdsList = Array<string>;
1252
+ export declare const ListGroupsResponseGroupIdsList: S.Schema<ListGroupsResponseGroupIdsList>;
1253
+ export interface ListGroupsResponse {
1254
+ ok: boolean;
1255
+ group_ids: ListGroupsResponseGroupIdsList;
1256
+ }
1257
+ export declare const ListGroupsResponse: S.Schema<ListGroupsResponse>;
1258
+ export interface ListInviteRequestsRequest {
1259
+ /** ID for the workspace where the invite requests were made. */
1260
+ team_id?: string;
1261
+ /** Value of the `next_cursor` field sent as part of the previous API response */
1262
+ cursor?: string;
1263
+ /** The number of results that will be returned by the API on each invocation. Must be between 1 - 1000, both inclusive */
1264
+ limit?: number;
1265
+ }
1266
+ export declare const ListInviteRequestsRequest: S.Schema<ListInviteRequestsRequest>;
1267
+ /** Pagination metadata. An empty `next_cursor` means the last page. */
1268
+ export type ListInviteRequestsResponseResponseMetadata = AnalyticsMessagesActivityResponseResponseMetadata;
1269
+ export declare const ListInviteRequestsResponseResponseMetadata: S.Schema<AnalyticsMessagesActivityResponseResponseMetadata>;
1270
+ export type ListInviteRequestsResponseInviteRequestsList = Array<unknown>;
1271
+ export declare const ListInviteRequestsResponseInviteRequestsList: S.Schema<ListInviteRequestsResponseInviteRequestsList>;
1272
+ export interface ListInviteRequestsResponse {
1273
+ /** Always `true` (a failed call raises a typed error instead). */
1274
+ ok: boolean;
1275
+ /** Pagination metadata. An empty `next_cursor` means the last page. */
1276
+ response_metadata?: AnalyticsMessagesActivityResponseResponseMetadata;
1277
+ invite_requests: ListInviteRequestsResponseInviteRequestsList;
1278
+ }
1279
+ export declare const ListInviteRequestsResponse: S.Schema<ListInviteRequestsResponse>;
1280
+ export interface ListInviteRequestsApprovedRequest {
1281
+ /** ID for the workspace where the invite requests were made. */
1282
+ team_id?: string;
1283
+ /** Value of the `next_cursor` field sent as part of the previous API response */
1284
+ cursor?: string;
1285
+ /** The number of results that will be returned by the API on each invocation. Must be between 1 - 1000, both inclusive */
1286
+ limit?: number;
1287
+ }
1288
+ export declare const ListInviteRequestsApprovedRequest: S.Schema<ListInviteRequestsApprovedRequest>;
1289
+ /** Pagination metadata. An empty `next_cursor` means the last page. */
1290
+ export type ListInviteRequestsApprovedResponseResponseMetadata = AnalyticsMessagesActivityResponseResponseMetadata;
1291
+ export declare const ListInviteRequestsApprovedResponseResponseMetadata: S.Schema<AnalyticsMessagesActivityResponseResponseMetadata>;
1292
+ export type ListInviteRequestsApprovedResponseApprovedRequestsList = Array<unknown>;
1293
+ export declare const ListInviteRequestsApprovedResponseApprovedRequestsList: S.Schema<ListInviteRequestsApprovedResponseApprovedRequestsList>;
1294
+ export interface ListInviteRequestsApprovedResponse {
1295
+ /** Always `true` (a failed call raises a typed error instead). */
1296
+ ok: boolean;
1297
+ /** Pagination metadata. An empty `next_cursor` means the last page. */
1298
+ response_metadata?: AnalyticsMessagesActivityResponseResponseMetadata;
1299
+ approved_requests: ListInviteRequestsApprovedResponseApprovedRequestsList;
1300
+ }
1301
+ export declare const ListInviteRequestsApprovedResponse: S.Schema<ListInviteRequestsApprovedResponse>;
1302
+ export interface ListInviteRequestsDeniedRequest {
1303
+ /** ID for the workspace where the invite requests were made */
1304
+ team_id?: string;
1305
+ /** Value of the `next_cursor` field sent as part of the previous api response */
1306
+ cursor?: string;
1307
+ /** The number of results that will be returned by the API on each invocation. Must be between 1 - 1000 both inclusive */
1308
+ limit?: number;
1309
+ }
1310
+ export declare const ListInviteRequestsDeniedRequest: S.Schema<ListInviteRequestsDeniedRequest>;
1311
+ /** Pagination metadata. An empty `next_cursor` means the last page. */
1312
+ export type ListInviteRequestsDeniedResponseResponseMetadata = AnalyticsMessagesActivityResponseResponseMetadata;
1313
+ export declare const ListInviteRequestsDeniedResponseResponseMetadata: S.Schema<AnalyticsMessagesActivityResponseResponseMetadata>;
1314
+ export type ListInviteRequestsDeniedResponseDeniedRequestsList = Array<unknown>;
1315
+ export declare const ListInviteRequestsDeniedResponseDeniedRequestsList: S.Schema<ListInviteRequestsDeniedResponseDeniedRequestsList>;
1316
+ export interface ListInviteRequestsDeniedResponse {
1317
+ /** Always `true` (a failed call raises a typed error instead). */
1318
+ ok: boolean;
1319
+ /** Pagination metadata. An empty `next_cursor` means the last page. */
1320
+ response_metadata?: AnalyticsMessagesActivityResponseResponseMetadata;
1321
+ denied_requests: ListInviteRequestsDeniedResponseDeniedRequestsList;
1322
+ }
1323
+ export declare const ListInviteRequestsDeniedResponse: S.Schema<ListInviteRequestsDeniedResponse>;
1324
+ export interface ListOriginalConnectedChannelInfoRequest {
1325
+ /** A comma-separated list of channels to filter to. */
1326
+ channel_ids?: string;
1327
+ /** A comma-separated list of the workspaces to which the channels you would like returned belong. */
1328
+ team_ids?: string;
1329
+ /** The maximum number of items to return. Must be between 1 - 1000 both inclusive. */
1330
+ limit?: number;
1331
+ /** Set `cursor` to `next_cursor` returned by the previous call to list items in the next page. */
1332
+ cursor?: string;
1333
+ }
1334
+ export declare const ListOriginalConnectedChannelInfoRequest: S.Schema<ListOriginalConnectedChannelInfoRequest>;
1335
+ /** Pagination metadata. An empty `next_cursor` means the last page. */
1336
+ export type ListOriginalConnectedChannelInfoResponseResponseMetadata = AnalyticsMessagesActivityResponseResponseMetadata;
1337
+ export declare const ListOriginalConnectedChannelInfoResponseResponseMetadata: S.Schema<AnalyticsMessagesActivityResponseResponseMetadata>;
1338
+ export type ListOriginalConnectedChannelInfoResponseChannelsItemInternalTeamIdsList = Array<string>;
1339
+ export declare const ListOriginalConnectedChannelInfoResponseChannelsItemInternalTeamIdsList: S.Schema<ListOriginalConnectedChannelInfoResponseChannelsItemInternalTeamIdsList>;
1340
+ export interface ListOriginalConnectedChannelInfoResponseChannelsItem {
1341
+ id: string;
1342
+ internal_team_ids: ListOriginalConnectedChannelInfoResponseChannelsItemInternalTeamIdsList;
1343
+ original_connected_host_id: string;
1344
+ original_connected_channel_id: string;
1345
+ }
1346
+ export declare const ListOriginalConnectedChannelInfoResponseChannelsItem: S.Schema<ListOriginalConnectedChannelInfoResponseChannelsItem>;
1347
+ export type ListOriginalConnectedChannelInfoResponseChannelsList = Array<ListOriginalConnectedChannelInfoResponseChannelsItem>;
1348
+ export declare const ListOriginalConnectedChannelInfoResponseChannelsList: S.Schema<ListOriginalConnectedChannelInfoResponseChannelsList>;
1349
+ export interface ListOriginalConnectedChannelInfoResponse {
1350
+ /** Always `true` (a failed call raises a typed error instead). */
1351
+ ok: boolean;
1352
+ /** Pagination metadata. An empty `next_cursor` means the last page. */
1353
+ response_metadata?: AnalyticsMessagesActivityResponseResponseMetadata;
1354
+ channels: ListOriginalConnectedChannelInfoResponseChannelsList;
1355
+ }
1356
+ export declare const ListOriginalConnectedChannelInfoResponse: S.Schema<ListOriginalConnectedChannelInfoResponse>;
1357
+ export interface ListTeamsRequest {
1358
+ /** The maximum number of items to return. Must be a positive integer no larger than 1000. */
1359
+ limit?: number;
1360
+ /** Set `cursor` to `next_cursor` returned by the previous call to list items in the next page. */
1361
+ cursor?: string;
1362
+ }
1363
+ export declare const ListTeamsRequest: S.Schema<ListTeamsRequest>;
1364
+ export interface ListTeamsResponseTeamsItemPrimaryOwner {
1365
+ /** Encoded user ID of the primary owner of the workspace */
1366
+ user_id: string;
1367
+ /** Email of the primary owner of the workspace */
1368
+ email: string;
1369
+ }
1370
+ export declare const ListTeamsResponseTeamsItemPrimaryOwner: S.Schema<ListTeamsResponseTeamsItemPrimaryOwner>;
1371
+ export interface ListTeamsResponseTeamsItem {
1372
+ /** Encoded ID of the workspace */
1373
+ id?: string;
1374
+ /** Name of the workspace */
1375
+ name: string;
1376
+ /** Who is able to join this workspace */
1377
+ discoverability: string;
1378
+ primary_owner: ListTeamsResponseTeamsItemPrimaryOwner;
1379
+ /** The URL of the workspace */
1380
+ team_url: string;
1381
+ }
1382
+ export declare const ListTeamsResponseTeamsItem: S.Schema<ListTeamsResponseTeamsItem>;
1383
+ export type ListTeamsResponseTeamsList = Array<ListTeamsResponseTeamsItem>;
1384
+ export declare const ListTeamsResponseTeamsList: S.Schema<ListTeamsResponseTeamsList>;
1385
+ /** Pagination metadata. An empty `next_cursor` means the last page. */
1386
+ export type ListTeamsResponseResponseMetadata = AnalyticsMessagesActivityResponseResponseMetadata;
1387
+ export declare const ListTeamsResponseResponseMetadata: S.Schema<AnalyticsMessagesActivityResponseResponseMetadata>;
1388
+ export interface ListTeamsResponse {
1389
+ /** Always `true` (a failed call raises a typed error instead). */
1390
+ ok: boolean;
1391
+ teams: ListTeamsResponseTeamsList;
1392
+ /** Pagination metadata. An empty `next_cursor` means the last page. */
1393
+ response_metadata?: AnalyticsMessagesActivityResponseResponseMetadata;
1394
+ }
1395
+ export declare const ListTeamsResponse: S.Schema<ListTeamsResponse>;
1396
+ export interface ListTeamsAdminsRequest {
1397
+ /** The maximum number of items to return. */
1398
+ limit?: number;
1399
+ /** Set `cursor` to `next_cursor` returned by the previous call to list items in the next page. */
1400
+ cursor?: string;
1401
+ team_id: string;
1402
+ }
1403
+ export declare const ListTeamsAdminsRequest: S.Schema<ListTeamsAdminsRequest>;
1404
+ export type ListTeamsAdminsResponseAdminIdsList = Array<string>;
1405
+ export declare const ListTeamsAdminsResponseAdminIdsList: S.Schema<ListTeamsAdminsResponseAdminIdsList>;
1406
+ /** Pagination metadata. An empty `next_cursor` means the last page. */
1407
+ export type ListTeamsAdminsResponseResponseMetadata = AnalyticsMessagesActivityResponseResponseMetadata;
1408
+ export declare const ListTeamsAdminsResponseResponseMetadata: S.Schema<AnalyticsMessagesActivityResponseResponseMetadata>;
1409
+ export interface ListTeamsAdminsResponse {
1410
+ /** Always `true` (a failed call raises a typed error instead). */
1411
+ ok: boolean;
1412
+ admin_ids: ListTeamsAdminsResponseAdminIdsList;
1413
+ /** Pagination metadata. An empty `next_cursor` means the last page. */
1414
+ response_metadata?: AnalyticsMessagesActivityResponseResponseMetadata;
1415
+ }
1416
+ export declare const ListTeamsAdminsResponse: S.Schema<ListTeamsAdminsResponse>;
1417
+ export interface ListTeamsOwnersRequest {
1418
+ team_id: string;
1419
+ /** The maximum number of items to return. Must be between 1 - 1000 both inclusive. */
1420
+ limit?: number;
1421
+ /** Set `cursor` to `next_cursor` returned by the previous call to list items in the next page. */
1422
+ cursor?: string;
1423
+ }
1424
+ export declare const ListTeamsOwnersRequest: S.Schema<ListTeamsOwnersRequest>;
1425
+ export type ListTeamsOwnersResponseOwnerIdsList = Array<string>;
1426
+ export declare const ListTeamsOwnersResponseOwnerIdsList: S.Schema<ListTeamsOwnersResponseOwnerIdsList>;
1427
+ /** Pagination metadata. An empty `next_cursor` means the last page. */
1428
+ export type ListTeamsOwnersResponseResponseMetadata = AnalyticsMessagesActivityResponseResponseMetadata;
1429
+ export declare const ListTeamsOwnersResponseResponseMetadata: S.Schema<AnalyticsMessagesActivityResponseResponseMetadata>;
1430
+ export interface ListTeamsOwnersResponse {
1431
+ /** Always `true` (a failed call raises a typed error instead). */
1432
+ ok: boolean;
1433
+ owner_ids: ListTeamsOwnersResponseOwnerIdsList;
1434
+ /** Pagination metadata. An empty `next_cursor` means the last page. */
1435
+ response_metadata?: AnalyticsMessagesActivityResponseResponseMetadata;
1436
+ }
1437
+ export declare const ListTeamsOwnersResponse: S.Schema<ListTeamsOwnersResponse>;
1438
+ export interface ListUsersRequest {
1439
+ /** The ID (T1234) of a workspace. Filters results to just the specified workspace. */
1440
+ team_id?: string;
1441
+ /** Set `cursor` to `next_cursor` returned by the previous call to list items in the next page. */
1442
+ cursor?: string;
1443
+ /** If true, only active users will be returned. If false, only deactivated users will be returned. Default is true. */
1444
+ is_active?: boolean;
1445
+ /** Only applies with org token and no team_id. If true, return `workspaces` for a user even if they may be deactivated on them. If false, return `workspaces` for a user only when user is active on them. Default is false. */
1446
+ include_deactivated_user_workspaces?: boolean;
1447
+ /** If true, returns only guests and their expiration dates that belong to the team_id */
1448
+ only_guests?: boolean;
1449
+ /** If true, only admin users will be returned (excludes owners). Returns all admins and owners when combined with `include_owners`. Cannot be used together with `only_guests`. */
1450
+ include_admins?: boolean;
1451
+ /** If true, only owner users will be returned. Cannot be used together with `only_guests`. */
1452
+ include_owners?: boolean;
1453
+ /** Limit for how many users to be retrieved per page */
1454
+ limit?: number;
1455
+ }
1456
+ export declare const ListUsersRequest: S.Schema<ListUsersRequest>;
1457
+ /** Roles that a user has */
1458
+ export type ListUsersResponseUsersItemRolesList = Array<string>;
1459
+ export declare const ListUsersResponseUsersItemRolesList: S.Schema<ListUsersResponseUsersItemRolesList>;
1460
+ /** IDs of the workspaces that a user belongs to */
1461
+ export type ListUsersResponseUsersItemWorkspacesList = Array<string>;
1462
+ export declare const ListUsersResponseUsersItemWorkspacesList: S.Schema<ListUsersResponseUsersItemWorkspacesList>;
1463
+ export interface ListUsersResponseUsersItem {
1464
+ /** Encoded user ID */
1465
+ id: string;
1466
+ /** Username of user */
1467
+ username?: string;
1468
+ /** Full name of user */
1469
+ full_name?: string;
1470
+ /** If 2FA is enabled. Only returned with org token and no team_id. */
1471
+ has_2fa?: boolean;
1472
+ /** If SSO is enabled. Only returned with org token and no team_id. */
1473
+ has_sso?: boolean;
1474
+ /** Email address of user */
1475
+ email: string;
1476
+ /** Is this user an admin? */
1477
+ is_admin: boolean;
1478
+ /** Is this user an owner? */
1479
+ is_owner: boolean;
1480
+ /** Is this user the primary owner of the workspace? */
1481
+ is_primary_owner: boolean;
1482
+ /** Is this user a restricted (guest) user? */
1483
+ is_restricted: boolean;
1484
+ /** Is this user an ultra-restricted user? */
1485
+ is_ultra_restricted: boolean;
1486
+ /** Is this user a bot user? */
1487
+ is_bot: boolean;
1488
+ /** For a guest user, what is their expiration timestamp? (On workspaces only.) */
1489
+ expiration_ts?: number;
1490
+ /** Roles that a user has */
1491
+ roles?: ListUsersResponseUsersItemRolesList;
1492
+ /** Last active timestamp for a user. Only applies with org token and no team_id */
1493
+ last_active_ts?: number;
1494
+ /** IDs of the workspaces that a user belongs to */
1495
+ workspaces?: ListUsersResponseUsersItemWorkspacesList;
1496
+ /** Is this user active? */
1497
+ is_active?: boolean;
1498
+ /** date of when the user was created, returned as epoch seconds */
1499
+ date_created?: number;
1500
+ /** date of when the user was deactivated, returned as epoch seconds */
1501
+ deactivated_ts?: number;
1502
+ }
1503
+ export declare const ListUsersResponseUsersItem: S.Schema<ListUsersResponseUsersItem>;
1504
+ export type ListUsersResponseUsersList = Array<ListUsersResponseUsersItem>;
1505
+ export declare const ListUsersResponseUsersList: S.Schema<ListUsersResponseUsersList>;
1506
+ /** Pagination metadata. An empty `next_cursor` means the last page. */
1507
+ export type ListUsersResponseResponseMetadata = AnalyticsMessagesActivityResponseResponseMetadata;
1508
+ export declare const ListUsersResponseResponseMetadata: S.Schema<AnalyticsMessagesActivityResponseResponseMetadata>;
1509
+ export interface ListUsersResponse {
1510
+ /** Always `true` (a failed call raises a typed error instead). */
1511
+ ok: boolean;
1512
+ users: ListUsersResponseUsersList;
1513
+ /** Pagination metadata. An empty `next_cursor` means the last page. */
1514
+ response_metadata?: AnalyticsMessagesActivityResponseResponseMetadata;
1515
+ }
1516
+ export declare const ListUsersResponse: S.Schema<ListUsersResponse>;
1517
+ export interface ListUsersSessionRequest {
1518
+ /** 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. */
1519
+ team_id?: string;
1520
+ /** The ID of user you'd like active sessions for. If you pass a `user_id`, you'll need to pass a `team_id` as well. */
1521
+ user_id?: string;
1522
+ /** The maximum number of items to return. Must be between 1 - 1000 both inclusive. */
1523
+ limit?: number;
1524
+ /** Set `cursor` to `next_cursor` returned by the previous call to list items in the next page. */
1525
+ cursor?: string;
1526
+ }
1527
+ export declare const ListUsersSessionRequest: S.Schema<ListUsersSessionRequest>;
1528
+ /** Pagination metadata. An empty `next_cursor` means the last page. */
1529
+ export type ListUsersSessionResponseResponseMetadata = AnalyticsMessagesActivityResponseResponseMetadata;
1530
+ export declare const ListUsersSessionResponseResponseMetadata: S.Schema<AnalyticsMessagesActivityResponseResponseMetadata>;
1531
+ export interface ListUsersSessionResponseActiveSessionsItemRecent {
1532
+ /** Type of device */
1533
+ device_hardware?: string;
1534
+ /** Type of OS */
1535
+ os?: string;
1536
+ /** Version of the OS */
1537
+ os_version?: string;
1538
+ /** Version of the Slack client (if available) */
1539
+ slack_client_version?: string;
1540
+ /** IP address */
1541
+ ip?: string;
1542
+ }
1543
+ export declare const ListUsersSessionResponseActiveSessionsItemRecent: S.Schema<ListUsersSessionResponseActiveSessionsItemRecent>;
1544
+ export interface ListUsersSessionResponseActiveSessionsItemCreated {
1545
+ /** Type of device used when session was created */
1546
+ device_hardware?: string;
1547
+ /** Type of OS used when session was created */
1548
+ os?: string;
1549
+ /** Version of the OS used when session was created */
1550
+ os_version?: string;
1551
+ /** Version of the Slack client (if available) used when session was created */
1552
+ slack_client_version?: string;
1553
+ /** IP address used when session was created */
1554
+ ip?: string;
1555
+ }
1556
+ export declare const ListUsersSessionResponseActiveSessionsItemCreated: S.Schema<ListUsersSessionResponseActiveSessionsItemCreated>;
1557
+ export interface ListUsersSessionResponseActiveSessionsItem {
1558
+ /** Encoded ID of the user */
1559
+ user_id: string;
1560
+ /** Encoded ID of the team */
1561
+ team_id: string;
1562
+ /** ID of the session */
1563
+ session_id: number;
1564
+ recent?: ListUsersSessionResponseActiveSessionsItemRecent;
1565
+ created: ListUsersSessionResponseActiveSessionsItemCreated;
1566
+ }
1567
+ export declare const ListUsersSessionResponseActiveSessionsItem: S.Schema<ListUsersSessionResponseActiveSessionsItem>;
1568
+ /** Active user session data */
1569
+ export type ListUsersSessionResponseActiveSessionsList = Array<ListUsersSessionResponseActiveSessionsItem>;
1570
+ export declare const ListUsersSessionResponseActiveSessionsList: S.Schema<ListUsersSessionResponseActiveSessionsList>;
1571
+ export interface ListUsersSessionResponse {
1572
+ /** Always `true` (a failed call raises a typed error instead). */
1573
+ ok: boolean;
1574
+ /** Pagination metadata. An empty `next_cursor` means the last page. */
1575
+ response_metadata?: AnalyticsMessagesActivityResponseResponseMetadata;
1576
+ /** Active user session data */
1577
+ active_sessions: ListUsersSessionResponseActiveSessionsList;
1578
+ }
1579
+ export declare const ListUsersSessionResponse: S.Schema<ListUsersSessionResponse>;
1580
+ /** An array of app IDs to get app configs for */
1581
+ export type LookupAppsConfigRequestAppIdsList = Array<string>;
1582
+ export declare const LookupAppsConfigRequestAppIdsList: S.Schema<LookupAppsConfigRequestAppIdsList>;
1583
+ export type LookupAppsConfigRequestRichLinkPreviewTypesItem = "all_details" | "limited_details" | "no_preview" | "default_to_global_setting";
1584
+ export declare const LookupAppsConfigRequestRichLinkPreviewTypesItem: any;
1585
+ /** return apps with the corresponding rich link preview layouts */
1586
+ export type LookupAppsConfigRequestRichLinkPreviewTypesList = Array<LookupAppsConfigRequestRichLinkPreviewTypesItem | (string & {})>;
1587
+ export declare const LookupAppsConfigRequestRichLinkPreviewTypesList: S.Schema<LookupAppsConfigRequestRichLinkPreviewTypesList>;
1588
+ export interface LookupAppsConfigRequest {
1589
+ /** An array of app IDs to get app configs for */
1590
+ app_ids?: LookupAppsConfigRequestAppIdsList;
1591
+ /** return apps with the corresponding rich link preview layouts */
1592
+ rich_link_preview_types?: LookupAppsConfigRequestRichLinkPreviewTypesList;
1593
+ }
1594
+ export declare const LookupAppsConfigRequest: S.Schema<LookupAppsConfigRequest>;
1595
+ export type LookupAppsConfigResponseConfigsItemWorkflowAuthStrategy = "builder_choice" | "end_user_only";
1596
+ export declare const LookupAppsConfigResponseConfigsItemWorkflowAuthStrategy: any;
1597
+ export interface LookupAppsConfigResponseConfigsItem {
1598
+ app_id: string;
1599
+ workflow_auth_strategy: LookupAppsConfigResponseConfigsItemWorkflowAuthStrategy;
1600
+ domain_restrictions: unknown;
1601
+ }
1602
+ export declare const LookupAppsConfigResponseConfigsItem: S.Schema<LookupAppsConfigResponseConfigsItem>;
1603
+ export type LookupAppsConfigResponseConfigsList = Array<LookupAppsConfigResponseConfigsItem>;
1604
+ export declare const LookupAppsConfigResponseConfigsList: S.Schema<LookupAppsConfigResponseConfigsList>;
1605
+ export interface LookupAppsConfigResponse {
1606
+ /** Always `true` (a failed call raises a typed error instead). */
1607
+ ok: boolean;
1608
+ configs: LookupAppsConfigResponseConfigsList;
1609
+ }
1610
+ export declare const LookupAppsConfigResponse: S.Schema<LookupAppsConfigResponse>;
1611
+ /** Array of team IDs to filter by */
1612
+ export type LookupConversationRequestTeamIdsList = Array<string>;
1613
+ export declare const LookupConversationRequestTeamIdsList: S.Schema<LookupConversationRequestTeamIdsList>;
1614
+ export interface LookupConversationRequest {
1615
+ /** Array of team IDs to filter by */
1616
+ team_ids: LookupConversationRequestTeamIdsList;
1617
+ /** Filter by *public* channels with member count *equal to or less than* the specified number */
1618
+ max_member_count?: number;
1619
+ /** Filter by *public* channels where the most recent message was sent *before* last_message_activity */
1620
+ last_message_activity_before: number;
1621
+ /** Set `cursor` to `next_cursor` returned in the previous call, to fetch the next page. */
1622
+ cursor?: string;
1623
+ /** Maximum number of results */
1624
+ limit?: number;
1625
+ }
1626
+ export declare const LookupConversationRequest: S.Schema<LookupConversationRequest>;
1627
+ export type LookupConversationResponseChannelIdsList = Array<string>;
1628
+ export declare const LookupConversationResponseChannelIdsList: S.Schema<LookupConversationResponseChannelIdsList>;
1629
+ /** Pagination metadata. An empty `next_cursor` means the last page. */
1630
+ export type LookupConversationResponseResponseMetadata = AnalyticsMessagesActivityResponseResponseMetadata;
1631
+ export declare const LookupConversationResponseResponseMetadata: S.Schema<AnalyticsMessagesActivityResponseResponseMetadata>;
1632
+ export interface LookupConversationResponse {
1633
+ /** Always `true` (a failed call raises a typed error instead). */
1634
+ ok: boolean;
1635
+ channel_ids: LookupConversationResponseChannelIdsList;
1636
+ /** Pagination metadata. An empty `next_cursor` means the last page. */
1637
+ response_metadata?: AnalyticsMessagesActivityResponseResponseMetadata;
1638
+ }
1639
+ export declare const LookupConversationResponse: S.Schema<LookupConversationResponse>;
1640
+ /** An array of function IDs to get permissions for */
1641
+ export type LookupFunctionsPermissionsRequestFunctionIdsList = Array<string>;
1642
+ export declare const LookupFunctionsPermissionsRequestFunctionIdsList: S.Schema<LookupFunctionsPermissionsRequestFunctionIdsList>;
1643
+ export interface LookupFunctionsPermissionsRequest {
1644
+ /** An array of function IDs to get permissions for */
1645
+ function_ids: LookupFunctionsPermissionsRequestFunctionIdsList;
1646
+ }
1647
+ export declare const LookupFunctionsPermissionsRequest: S.Schema<LookupFunctionsPermissionsRequest>;
1648
+ export type LookupFunctionsPermissionsResponsePermissionsMap = {
1649
+ [key: string]: unknown | undefined;
1650
+ };
1651
+ export declare const LookupFunctionsPermissionsResponsePermissionsMap: S.Schema<LookupFunctionsPermissionsResponsePermissionsMap>;
1652
+ export type LookupFunctionsPermissionsResponseMetadataMap = {
1653
+ [key: string]: unknown | undefined;
1654
+ };
1655
+ export declare const LookupFunctionsPermissionsResponseMetadataMap: S.Schema<LookupFunctionsPermissionsResponseMetadataMap>;
1656
+ export type LookupFunctionsPermissionsResponseErrorsMap = {
1657
+ [key: string]: unknown | undefined;
1658
+ };
1659
+ export declare const LookupFunctionsPermissionsResponseErrorsMap: S.Schema<LookupFunctionsPermissionsResponseErrorsMap>;
1660
+ export interface LookupFunctionsPermissionsResponse {
1661
+ /** Always `true` (a failed call raises a typed error instead). */
1662
+ ok: boolean;
1663
+ permissions: LookupFunctionsPermissionsResponsePermissionsMap;
1664
+ metadata: LookupFunctionsPermissionsResponseMetadataMap;
1665
+ errors: LookupFunctionsPermissionsResponseErrorsMap;
1666
+ }
1667
+ export declare const LookupFunctionsPermissionsResponse: S.Schema<LookupFunctionsPermissionsResponse>;
1668
+ /** An array of workflow IDs to look up permissions for */
1669
+ export type LookupWorkflowsPermissionsRequestWorkflowIdsList = Array<string>;
1670
+ export declare const LookupWorkflowsPermissionsRequestWorkflowIdsList: S.Schema<LookupWorkflowsPermissionsRequestWorkflowIdsList>;
1671
+ export interface LookupWorkflowsPermissionsRequest {
1672
+ /** An array of workflow IDs to look up permissions for */
1673
+ workflow_ids: LookupWorkflowsPermissionsRequestWorkflowIdsList;
1674
+ /** Maximum number of triggers to fetch for each workflow when determining overall run permissions; max 1000 */
1675
+ max_workflow_triggers?: number;
1676
+ }
1677
+ export declare const LookupWorkflowsPermissionsRequest: S.Schema<LookupWorkflowsPermissionsRequest>;
1678
+ export interface LookupWorkflowsPermissionsResponse {
1679
+ /** Always `true` (a failed call raises a typed error instead). */
1680
+ ok: boolean;
1681
+ }
1682
+ export declare const LookupWorkflowsPermissionsResponse: S.Schema<LookupWorkflowsPermissionsResponse>;
1683
+ /** The trigger type IDs for which to get the permissions. */
1684
+ export type LookupWorkflowsTriggersTypesPermissionsRequestTriggerTypeIdsList = Array<string>;
1685
+ export declare const LookupWorkflowsTriggersTypesPermissionsRequestTriggerTypeIdsList: S.Schema<LookupWorkflowsTriggersTypesPermissionsRequestTriggerTypeIdsList>;
1686
+ export interface LookupWorkflowsTriggersTypesPermissionsRequest {
1687
+ /** The trigger type IDs for which to get the permissions. */
1688
+ trigger_type_ids: LookupWorkflowsTriggersTypesPermissionsRequestTriggerTypeIdsList;
1689
+ }
1690
+ export declare const LookupWorkflowsTriggersTypesPermissionsRequest: S.Schema<LookupWorkflowsTriggersTypesPermissionsRequest>;
1691
+ export type LookupWorkflowsTriggersTypesPermissionsResponsePermissionsMap = {
1692
+ [key: string]: unknown | undefined;
1693
+ };
1694
+ export declare const LookupWorkflowsTriggersTypesPermissionsResponsePermissionsMap: S.Schema<LookupWorkflowsTriggersTypesPermissionsResponsePermissionsMap>;
1695
+ export type LookupWorkflowsTriggersTypesPermissionsResponseMetadataMap = {
1696
+ [key: string]: unknown | undefined;
1697
+ };
1698
+ export declare const LookupWorkflowsTriggersTypesPermissionsResponseMetadataMap: S.Schema<LookupWorkflowsTriggersTypesPermissionsResponseMetadataMap>;
1699
+ export interface LookupWorkflowsTriggersTypesPermissionsResponse {
1700
+ /** Always `true` (a failed call raises a typed error instead). */
1701
+ ok: boolean;
1702
+ permissions: LookupWorkflowsTriggersTypesPermissionsResponsePermissionsMap;
1703
+ metadata: LookupWorkflowsTriggersTypesPermissionsResponseMetadataMap;
1704
+ }
1705
+ export declare const LookupWorkflowsTriggersTypesPermissionsResponse: S.Schema<LookupWorkflowsTriggersTypesPermissionsResponse>;
1706
+ /** List of user IDs whose named_entities access will be revoked */
1707
+ export type RemoveAppsPermissionsRequestUserIdsList = Array<string>;
1708
+ export declare const RemoveAppsPermissionsRequestUserIdsList: S.Schema<RemoveAppsPermissionsRequestUserIdsList>;
1709
+ /** List of encoded usergroup IDs */
1710
+ export type RemoveAppsPermissionsRequestUsergroupIdsList = Array<string>;
1711
+ export declare const RemoveAppsPermissionsRequestUsergroupIdsList: S.Schema<RemoveAppsPermissionsRequestUsergroupIdsList>;
1712
+ export interface RemoveAppsPermissionsRequest {
1713
+ /** Encoded ID of the app */
1714
+ app_id: string;
1715
+ /** List of user IDs whose named_entities access will be revoked */
1716
+ user_ids?: RemoveAppsPermissionsRequestUserIdsList;
1717
+ /** List of encoded usergroup IDs */
1718
+ usergroup_ids?: RemoveAppsPermissionsRequestUsergroupIdsList;
1719
+ }
1720
+ export declare const RemoveAppsPermissionsRequest: S.Schema<RemoveAppsPermissionsRequest>;
1721
+ export interface RemoveAppsPermissionsResponse {
1722
+ /** Always `true` (a failed call raises a typed error instead). */
1723
+ ok: boolean;
1724
+ }
1725
+ export declare const RemoveAppsPermissionsResponse: S.Schema<RemoveAppsPermissionsResponse>;
1726
+ /** List of the entity IDs for which roles will be revoked. These can be Org IDs, Team IDs or Channel IDs */
1727
+ export type RemoveAssignmentsRequestEntityIdsList = Array<string>;
1728
+ export declare const RemoveAssignmentsRequestEntityIdsList: S.Schema<RemoveAssignmentsRequestEntityIdsList>;
1729
+ /** List of IDs of the users whose roles will be revoked */
1730
+ export type RemoveAssignmentsRequestUserIdsList = Array<string>;
1731
+ export declare const RemoveAssignmentsRequestUserIdsList: S.Schema<RemoveAssignmentsRequestUserIdsList>;
1732
+ export interface RemoveAssignmentsRequest {
1733
+ /** ID of the role to which users will be assigned */
1734
+ role_id: string;
1735
+ /** List of the entity IDs for which roles will be revoked. These can be Org IDs, Team IDs or Channel IDs */
1736
+ entity_ids: RemoveAssignmentsRequestEntityIdsList;
1737
+ /** List of IDs of the users whose roles will be revoked */
1738
+ user_ids: RemoveAssignmentsRequestUserIdsList;
1739
+ }
1740
+ export declare const RemoveAssignmentsRequest: S.Schema<RemoveAssignmentsRequest>;
1741
+ export interface RemoveAssignmentsResponse {
1742
+ /** Always `true` (a failed call raises a typed error instead). */
1743
+ ok: boolean;
1744
+ /** A string representation of the error type */
1745
+ error?: string;
1746
+ }
1747
+ export declare const RemoveAssignmentsResponse: S.Schema<RemoveAssignmentsResponse>;
1748
+ /** Comma-separated string of channel IDs */
1749
+ export type RemoveChannelsRequestChannelIdsList = Array<string>;
1750
+ export declare const RemoveChannelsRequestChannelIdsList: S.Schema<RemoveChannelsRequestChannelIdsList>;
1751
+ export interface RemoveChannelsRequest {
1752
+ /** ID of the IDP Group */
1753
+ usergroup_id: string;
1754
+ /** Comma-separated string of channel IDs */
1755
+ channel_ids: RemoveChannelsRequestChannelIdsList;
1756
+ }
1757
+ export declare const RemoveChannelsRequest: S.Schema<RemoveChannelsRequest>;
1758
+ /** List of channel IDs that are not valid for this action */
1759
+ export type RemoveChannelsResponseInvalidChannelsList = Array<string>;
1760
+ export declare const RemoveChannelsResponseInvalidChannelsList: S.Schema<RemoveChannelsResponseInvalidChannelsList>;
1761
+ export interface RemoveChannelsResponse {
1762
+ /** Always `true` (a failed call raises a typed error instead). */
1763
+ ok: boolean;
1764
+ /** A string representation of the error type */
1765
+ error?: string;
1766
+ /** List of channel IDs that are not valid for this action */
1767
+ invalid_channels?: RemoveChannelsResponseInvalidChannelsList;
1768
+ }
1769
+ export declare const RemoveChannelsResponse: S.Schema<RemoveChannelsResponse>;
1770
+ export interface RemoveCustomRetentionRequest {
1771
+ /** The conversation to set the retention policy for. */
1772
+ channel_id: string;
1773
+ }
1774
+ export declare const RemoveCustomRetentionRequest: S.Schema<RemoveCustomRetentionRequest>;
1775
+ export interface RemoveCustomRetentionResponse {
1776
+ /** Always `true` (a failed call raises a typed error instead). */
1777
+ ok: boolean;
1778
+ }
1779
+ export declare const RemoveCustomRetentionResponse: S.Schema<RemoveCustomRetentionResponse>;
1780
+ export interface RemoveEmojiRequest {
1781
+ /** The name of the emoji to be removed. Colons (`:myemoji:`) around the value are not required, although they may be included. */
1782
+ name: string;
1783
+ }
1784
+ export declare const RemoveEmojiRequest: S.Schema<RemoveEmojiRequest>;
1785
+ export interface RemoveEmojiResponse {
1786
+ /** Always `true` (a failed call raises a typed error instead). */
1787
+ ok: boolean;
1788
+ }
1789
+ export declare const RemoveEmojiResponse: S.Schema<RemoveEmojiResponse>;
1790
+ /** Encoded IDs of the entities you'd like to remove from the policy. */
1791
+ export type RemoveEntitiesRequestEntityIdsList = Array<string>;
1792
+ export declare const RemoveEntitiesRequestEntityIdsList: S.Schema<RemoveEntitiesRequestEntityIdsList>;
1793
+ export interface RemoveEntitiesRequest {
1794
+ /** The name of the policy to remove entities from. Currently, `email_password` is the only policy that may be used with this method. */
1795
+ policy_name: string;
1796
+ /** The type of entity to assign to the policy. Currently, `USER` is supported. */
1797
+ entity_type: unknown;
1798
+ /** Encoded IDs of the entities you'd like to remove from the policy. */
1799
+ entity_ids: RemoveEntitiesRequestEntityIdsList;
1800
+ }
1801
+ export declare const RemoveEntitiesRequest: S.Schema<RemoveEntitiesRequest>;
1802
+ export interface RemoveEntitiesResponse {
1803
+ /** Always `true` (a failed call raises a typed error instead). */
1804
+ ok: boolean;
1805
+ /** Count of entities under the policy and provided filter conditions */
1806
+ entity_total_count: number;
1807
+ }
1808
+ export declare const RemoveEntitiesResponse: S.Schema<RemoveEntitiesResponse>;
1809
+ export interface RemoveGroupRequest {
1810
+ /** The workspace where the channel exists. This argument is required for channels only tied to one workspace, and optional for channels that are shared across an organization. */
1811
+ team_id: string;
1812
+ /** The [IDP Group](https://slack.com/help/articles/115001435788-Connect-identity-provider-groups-to-your-Enterprise-organization) ID to remove from the private channel. */
1813
+ group_id: string;
1814
+ /** The channel to remove the linked group from. */
1815
+ channel_id: string;
1816
+ }
1817
+ export declare const RemoveGroupRequest: S.Schema<RemoveGroupRequest>;
1818
+ export interface RemoveGroupResponse {
1819
+ ok: boolean;
1820
+ }
1821
+ export declare const RemoveGroupResponse: S.Schema<RemoveGroupResponse>;
1822
+ export interface RemoveUserRequest {
1823
+ /** The ID (`T1234`) of the workspace. */
1824
+ team_id: string;
1825
+ /** The ID of the user to remove. */
1826
+ user_id: string;
1827
+ }
1828
+ export declare const RemoveUserRequest: S.Schema<RemoveUserRequest>;
1829
+ export interface RemoveUserResponse {
1830
+ /** Always `true` (a failed call raises a typed error instead). */
1831
+ ok: boolean;
1832
+ }
1833
+ export declare const RemoveUserResponse: S.Schema<RemoveUserResponse>;
1834
+ /** Array of workflow IDs to edit; max 50 */
1835
+ export type RemoveWorkflowsCollaboratorRequestWorkflowIdsList = Array<string>;
1836
+ export declare const RemoveWorkflowsCollaboratorRequestWorkflowIdsList: S.Schema<RemoveWorkflowsCollaboratorRequestWorkflowIdsList>;
1837
+ /** Array of collaborators (encoded user IDs) to remove; max 50 */
1838
+ export type RemoveWorkflowsCollaboratorRequestCollaboratorIdsList = Array<string>;
1839
+ export declare const RemoveWorkflowsCollaboratorRequestCollaboratorIdsList: S.Schema<RemoveWorkflowsCollaboratorRequestCollaboratorIdsList>;
1840
+ export interface RemoveWorkflowsCollaboratorRequest {
1841
+ /** Array of workflow IDs to edit; max 50 */
1842
+ workflow_ids: RemoveWorkflowsCollaboratorRequestWorkflowIdsList;
1843
+ /** Array of collaborators (encoded user IDs) to remove; max 50 */
1844
+ collaborator_ids: RemoveWorkflowsCollaboratorRequestCollaboratorIdsList;
1845
+ }
1846
+ export declare const RemoveWorkflowsCollaboratorRequest: S.Schema<RemoveWorkflowsCollaboratorRequest>;
1847
+ export interface RemoveWorkflowsCollaboratorResponse {
1848
+ /** Always `true` (a failed call raises a typed error instead). */
1849
+ ok: boolean;
1850
+ }
1851
+ export declare const RemoveWorkflowsCollaboratorResponse: S.Schema<RemoveWorkflowsCollaboratorResponse>;
1852
+ export interface RenameConversationRequest {
1853
+ /** The channel to rename. */
1854
+ channel_id: string;
1855
+ name: string;
1856
+ }
1857
+ export declare const RenameConversationRequest: S.Schema<RenameConversationRequest>;
1858
+ export interface RenameConversationResponse {
1859
+ ok: boolean;
1860
+ }
1861
+ export declare const RenameConversationResponse: S.Schema<RenameConversationResponse>;
1862
+ export interface RenameEmojiRequest {
1863
+ /** The name of the emoji to be renamed. Colons (`:myemoji:`) around the value are not required, although they may be included. */
1864
+ name: string;
1865
+ /** The new name of the emoji. */
1866
+ new_name: string;
1867
+ }
1868
+ export declare const RenameEmojiRequest: S.Schema<RenameEmojiRequest>;
1869
+ export interface RenameEmojiResponse {
1870
+ /** Always `true` (a failed call raises a typed error instead). */
1871
+ ok: boolean;
1872
+ }
1873
+ export declare const RenameEmojiResponse: S.Schema<RenameEmojiResponse>;
1874
+ /** The list of up to 1,000 user IDs to wipe sessions for */
1875
+ export type ResetBulkRequestUserIdsList = Array<string>;
1876
+ export declare const ResetBulkRequestUserIdsList: S.Schema<ResetBulkRequestUserIdsList>;
1877
+ export interface ResetBulkRequest {
1878
+ /** The list of up to 1,000 user IDs to wipe sessions for */
1879
+ user_ids: ResetBulkRequestUserIdsList;
1880
+ /** Only expire mobile sessions (default: false) */
1881
+ mobile_only?: boolean;
1882
+ /** Only expire web sessions (default: false) */
1883
+ web_only?: boolean;
1884
+ }
1885
+ export declare const ResetBulkRequest: S.Schema<ResetBulkRequest>;
1886
+ export interface ResetBulkResponse {
1887
+ /** Always `true` (a failed call raises a typed error instead). */
1888
+ ok: boolean;
1889
+ }
1890
+ export declare const ResetBulkResponse: S.Schema<ResetBulkResponse>;
1891
+ export interface ResetUsersSessionRequest {
1892
+ /** The ID of the user to wipe sessions for */
1893
+ user_id: string;
1894
+ /** Only expire mobile sessions (default: false) */
1895
+ mobile_only?: boolean;
1896
+ /** Only expire web sessions (default: false) */
1897
+ web_only?: boolean;
1898
+ }
1899
+ export declare const ResetUsersSessionRequest: S.Schema<ResetUsersSessionRequest>;
1900
+ export interface ResetUsersSessionResponse {
1901
+ /** Always `true` (a failed call raises a typed error instead). */
1902
+ ok: boolean;
1903
+ }
1904
+ export declare const ResetUsersSessionResponse: S.Schema<ResetUsersSessionResponse>;
1905
+ /** Comma separated string of team IDs, signifying the internal workspaces to search through. */
1906
+ export type SearchConversationRequestTeamIdsList = Array<string>;
1907
+ export declare const SearchConversationRequestTeamIdsList: S.Schema<SearchConversationRequestTeamIdsList>;
1908
+ /** Array of encoded team IDs, signifying the external orgs to search through. */
1909
+ export type SearchConversationRequestConnectedTeamIdsList = Array<string>;
1910
+ export declare const SearchConversationRequestConnectedTeamIdsList: S.Schema<SearchConversationRequestConnectedTeamIdsList>;
1911
+ /** The type of channel to include or exclude in the search. For example `private` will search private channels, while `private_exclude` will exclude them. For a full list of types, check the [Types section](#types). */
1912
+ export type SearchConversationRequestSearchChannelTypesList = Array<string>;
1913
+ export declare const SearchConversationRequestSearchChannelTypesList: S.Schema<SearchConversationRequestSearchChannelTypesList>;
1914
+ export interface SearchConversationRequest {
1915
+ /** Comma separated string of team IDs, signifying the internal workspaces to search through. */
1916
+ team_ids?: SearchConversationRequestTeamIdsList;
1917
+ /** Array of encoded team IDs, signifying the external orgs to search through. */
1918
+ connected_team_ids?: SearchConversationRequestConnectedTeamIdsList;
1919
+ /** Name of the the channel to query by. */
1920
+ query?: string;
1921
+ /** Maximum number of items to be returned. Must be between 1 - 20 both inclusive. Default is 10. */
1922
+ limit?: number;
1923
+ /** Set `cursor` to `next_cursor` returned by the previous call to list items in the next page. */
1924
+ cursor?: string;
1925
+ /** The type of channel to include or exclude in the search. For example `private` will search private channels, while `private_exclude` will exclude them. For a full list of types, check the [Types section](#types). */
1926
+ search_channel_types?: SearchConversationRequestSearchChannelTypesList;
1927
+ /** Possible values are `relevant` (search ranking based on what we think is closest), `name` (alphabetical), `member_count` (number of users in the channel), and `created` (date channel was created). You can optionally pair this with the `sort_dir` arg to change how it is sorted */
1928
+ sort?: string;
1929
+ /** Sort direction. Possible values are `asc` for ascending order like (1, 2, 3) or (a, b, c), and `desc` for descending order like (3, 2, 1) or (c, b, a) */
1930
+ sort_dir?: string;
1931
+ /** Only return the total_count of channels. Omits channel data and allows access for admins without channel manager permissions. */
1932
+ total_count_only?: boolean;
1933
+ }
1934
+ export declare const SearchConversationRequest: S.Schema<SearchConversationRequest>;
1935
+ export type SearchConversationResponseConversationsList = Array<string>;
1936
+ export declare const SearchConversationResponseConversationsList: S.Schema<SearchConversationResponseConversationsList>;
1937
+ /** Pagination metadata. An empty `next_cursor` means the last page. */
1938
+ export type SearchConversationResponseResponseMetadata = AnalyticsMessagesActivityResponseResponseMetadata;
1939
+ export declare const SearchConversationResponseResponseMetadata: S.Schema<AnalyticsMessagesActivityResponseResponseMetadata>;
1940
+ export interface SearchConversationResponse {
1941
+ /** Always `true` (a failed call raises a typed error instead). */
1942
+ ok: boolean;
1943
+ conversations: SearchConversationResponseConversationsList;
1944
+ /** Encoded string for the next cursor value */
1945
+ next_cursor: string;
1946
+ /** Total number of channels that exist in the search index and match the query string */
1947
+ total_count: number;
1948
+ /** A string representation of the error type */
1949
+ error?: string;
1950
+ /** Pagination metadata. An empty `next_cursor` means the last page. */
1951
+ response_metadata?: AnalyticsMessagesActivityResponseResponseMetadata;
1952
+ }
1953
+ export declare const SearchConversationResponse: S.Schema<SearchConversationResponse>;
1954
+ /** Only include workflows where all of the provided user IDs are a manager/collaborator of that workflow */
1955
+ export type SearchWorkflowRequestCollaboratorIdsList = Array<string>;
1956
+ export declare const SearchWorkflowRequestCollaboratorIdsList: S.Schema<SearchWorkflowRequestCollaboratorIdsList>;
1957
+ /** Source of workflow creation, either from code or workflow builder */
1958
+ export type SearchWorkflowRequestSource = "code" | "workflow_builder" | "sales_home" | "agent";
1959
+ export declare const SearchWorkflowRequestSource: any;
1960
+ /** The field used to sort the returned workflows */
1961
+ export type SearchWorkflowRequestSort = "name";
1962
+ export declare const SearchWorkflowRequestSort: any;
1963
+ /** Sort direction. Possible values are `asc` for ascending order like (1, 2, 3) or (a, b, c), and `desc` for descending order like (3, 2, 1) or (c, b, a) */
1964
+ export type SearchWorkflowRequestSortDir = "asc" | "desc";
1965
+ export declare const SearchWorkflowRequestSortDir: any;
1966
+ /** Filter workflows by their published status */
1967
+ export type SearchWorkflowRequestPublishStatus = "all" | "published" | "unpublished";
1968
+ export declare const SearchWorkflowRequestPublishStatus: any;
1969
+ /** Only include workflows that use all of the provided step function ids */
1970
+ export type SearchWorkflowRequestStepFunctionIdsList = Array<string>;
1971
+ export declare const SearchWorkflowRequestStepFunctionIdsList: S.Schema<SearchWorkflowRequestStepFunctionIdsList>;
1972
+ export interface SearchWorkflowRequest {
1973
+ /** A search query to filter for workflow name or description */
1974
+ query?: string;
1975
+ /** The parent app ID for which to return workflows */
1976
+ app_id?: string;
1977
+ /** Set `cursor` to `next_cursor` returned by the previous call to list items in the next page */
1978
+ cursor?: string;
1979
+ /** The number of results that will be returned by the API on each invocation */
1980
+ limit?: number;
1981
+ /** Only include workflows with no collaborators in the result; default is false */
1982
+ no_collaborators?: boolean;
1983
+ /** Only include workflows where all of the provided user IDs are a manager/collaborator of that workflow */
1984
+ collaborator_ids?: SearchWorkflowRequestCollaboratorIdsList;
1985
+ /** Number of trigger IDs to fetch for each workflow; default is 10 */
1986
+ num_trigger_ids?: number;
1987
+ /** Filter workflows by their Sales Elevate status */
1988
+ is_sales_elevate?: boolean;
1989
+ /** Source of workflow creation, either from code or workflow builder */
1990
+ source?: SearchWorkflowRequestSource | (string & {});
1991
+ /** The field used to sort the returned workflows */
1992
+ sort?: SearchWorkflowRequestSort | (string & {});
1993
+ /** Sort direction. Possible values are `asc` for ascending order like (1, 2, 3) or (a, b, c), and `desc` for descending order like (3, 2, 1) or (c, b, a) */
1994
+ sort_dir?: SearchWorkflowRequestSortDir | (string & {});
1995
+ /** Only include workflows with this trigger type */
1996
+ trigger_type_id?: string;
1997
+ /** Filter workflows by their published status */
1998
+ publish_status?: SearchWorkflowRequestPublishStatus | (string & {});
1999
+ /** Only include workflows that use all of the provided step function ids */
2000
+ step_function_ids?: SearchWorkflowRequestStepFunctionIdsList;
2001
+ }
2002
+ export declare const SearchWorkflowRequest: S.Schema<SearchWorkflowRequest>;
2003
+ export type SearchWorkflowResponseWorkflowsList = Array<unknown>;
2004
+ export declare const SearchWorkflowResponseWorkflowsList: S.Schema<SearchWorkflowResponseWorkflowsList>;
2005
+ /** Pagination metadata. An empty `next_cursor` means the last page. */
2006
+ export type SearchWorkflowResponseResponseMetadata = AnalyticsMessagesActivityResponseResponseMetadata;
2007
+ export declare const SearchWorkflowResponseResponseMetadata: S.Schema<AnalyticsMessagesActivityResponseResponseMetadata>;
2008
+ export interface SearchWorkflowResponse {
2009
+ /** Always `true` (a failed call raises a typed error instead). */
2010
+ ok: boolean;
2011
+ workflows: SearchWorkflowResponseWorkflowsList;
2012
+ /** Pagination metadata. An empty `next_cursor` means the last page. */
2013
+ response_metadata?: AnalyticsMessagesActivityResponseResponseMetadata;
2014
+ /** The total number of workflows that match this search criteria */
2015
+ total_found: number;
2016
+ }
2017
+ export declare const SearchWorkflowResponse: S.Schema<SearchWorkflowResponse>;
2018
+ export interface SetAdminRequest {
2019
+ /** The ID of the workspace or organization. */
2020
+ team_id: string;
2021
+ /** The ID of the user to designate as an admin. */
2022
+ user_id: string;
2023
+ }
2024
+ export declare const SetAdminRequest: S.Schema<SetAdminRequest>;
2025
+ export interface SetAdminResponse {
2026
+ /** Always `true` (a failed call raises a typed error instead). */
2027
+ ok: boolean;
2028
+ }
2029
+ export declare const SetAdminResponse: S.Schema<SetAdminResponse>;
2030
+ /** The workflow auth permission. Can be one of `builder_choice` or `end_user_only`. */
2031
+ export type SetAppsConfigRequestWorkflowAuthStrategy = "builder_choice" | "end_user_only";
2032
+ export declare const SetAppsConfigRequestWorkflowAuthStrategy: any;
2033
+ /** Indicates the app-level override for rich link preview. Unsupported for free teams. */
2034
+ export type SetAppsConfigRequestRichLinkPreviewType = "all_details" | "limited_details" | "no_preview" | "default_to_global_setting";
2035
+ export declare const SetAppsConfigRequestRichLinkPreviewType: any;
2036
+ /** List of URLs for allowed connector authorization */
2037
+ export type SetAppsConfigRequestDomainRestrictionsUrlsList = Array<string>;
2038
+ export declare const SetAppsConfigRequestDomainRestrictionsUrlsList: S.Schema<SetAppsConfigRequestDomainRestrictionsUrlsList>;
2039
+ /** List of emails for allowed connector authorization */
2040
+ export type SetAppsConfigRequestDomainRestrictionsEmailsList = Array<string>;
2041
+ export declare const SetAppsConfigRequestDomainRestrictionsEmailsList: S.Schema<SetAppsConfigRequestDomainRestrictionsEmailsList>;
2042
+ /** Domain restrictions for the app. Should be an object with two properties: `urls` and `emails`. Each is an array of strings, and each sets the allowed URLs and emails for connector authorization, respectively. */
2043
+ export interface SetAppsConfigRequestDomainRestrictions {
2044
+ /** List of URLs for allowed connector authorization */
2045
+ urls?: SetAppsConfigRequestDomainRestrictionsUrlsList;
2046
+ /** List of emails for allowed connector authorization */
2047
+ emails?: SetAppsConfigRequestDomainRestrictionsEmailsList;
2048
+ }
2049
+ export declare const SetAppsConfigRequestDomainRestrictions: S.Schema<SetAppsConfigRequestDomainRestrictions>;
2050
+ export interface SetAppsConfigRequest {
2051
+ /** The encoded app ID to set the app config for */
2052
+ app_id: string;
2053
+ /** The workflow auth permission. Can be one of `builder_choice` or `end_user_only`. */
2054
+ workflow_auth_strategy?: SetAppsConfigRequestWorkflowAuthStrategy | (string & {});
2055
+ /** Indicates the app-level override for rich link preview. Unsupported for free teams. */
2056
+ rich_link_preview_type?: SetAppsConfigRequestRichLinkPreviewType | (string & {});
2057
+ /** Domain restrictions for the app. Should be an object with two properties: `urls` and `emails`. Each is an array of strings, and each sets the allowed URLs and emails for connector authorization, respectively. */
2058
+ domain_restrictions?: SetAppsConfigRequestDomainRestrictions;
2059
+ }
2060
+ export declare const SetAppsConfigRequest: S.Schema<SetAppsConfigRequest>;
2061
+ export interface SetAppsConfigResponse {
2062
+ /** Always `true` (a failed call raises a typed error instead). */
2063
+ ok: boolean;
2064
+ }
2065
+ export declare const SetAppsConfigResponse: S.Schema<SetAppsConfigResponse>;
2066
+ /** The type of permission that defines who can use this MCP server */
2067
+ export type SetAppsMcpServersPermissionsRequestPermissionType = "everyone" | "no_one" | "named_entities" | "named_entities_exclude";
2068
+ export declare const SetAppsMcpServersPermissionsRequestPermissionType: any;
2069
+ /** List of user IDs to set for named_entities or named_entities_exclude */
2070
+ export type SetAppsMcpServersPermissionsRequestUserIdsList = Array<string>;
2071
+ export declare const SetAppsMcpServersPermissionsRequestUserIdsList: S.Schema<SetAppsMcpServersPermissionsRequestUserIdsList>;
2072
+ /** List of encoded usergroup IDs */
2073
+ export type SetAppsMcpServersPermissionsRequestUsergroupIdsList = Array<string>;
2074
+ export declare const SetAppsMcpServersPermissionsRequestUsergroupIdsList: S.Schema<SetAppsMcpServersPermissionsRequestUsergroupIdsList>;
2075
+ export interface SetAppsMcpServersPermissionsRequest {
2076
+ /** Encoded ID of the app */
2077
+ app_id: string;
2078
+ /** Encoded ID of the MCP server */
2079
+ server_id: string;
2080
+ /** The type of permission that defines who can use this MCP server */
2081
+ permission_type: SetAppsMcpServersPermissionsRequestPermissionType | (string & {});
2082
+ /** List of user IDs to set for named_entities or named_entities_exclude */
2083
+ user_ids?: SetAppsMcpServersPermissionsRequestUserIdsList;
2084
+ /** List of encoded usergroup IDs */
2085
+ usergroup_ids?: SetAppsMcpServersPermissionsRequestUsergroupIdsList;
2086
+ }
2087
+ export declare const SetAppsMcpServersPermissionsRequest: S.Schema<SetAppsMcpServersPermissionsRequest>;
2088
+ export interface SetAppsMcpServersPermissionsResponse {
2089
+ /** Always `true` (a failed call raises a typed error instead). */
2090
+ ok: boolean;
2091
+ }
2092
+ export declare const SetAppsMcpServersPermissionsResponse: S.Schema<SetAppsMcpServersPermissionsResponse>;
2093
+ /** The type of permission that defines who can access the app */
2094
+ export type SetAppsPermissionsRequestPermissionType = "everyone" | "named_entities" | "no_one";
2095
+ export declare const SetAppsPermissionsRequestPermissionType: any;
2096
+ /** List of user IDs to allow for named_entities visibility */
2097
+ export type SetAppsPermissionsRequestUserIdsList = Array<string>;
2098
+ export declare const SetAppsPermissionsRequestUserIdsList: S.Schema<SetAppsPermissionsRequestUserIdsList>;
2099
+ /** List of encoded usergroup IDs */
2100
+ export type SetAppsPermissionsRequestUsergroupIdsList = Array<string>;
2101
+ export declare const SetAppsPermissionsRequestUsergroupIdsList: S.Schema<SetAppsPermissionsRequestUsergroupIdsList>;
2102
+ export interface SetAppsPermissionsRequest {
2103
+ /** Encoded ID of the app */
2104
+ app_id: string;
2105
+ /** The type of permission that defines who can access the app */
2106
+ permission_type: SetAppsPermissionsRequestPermissionType | (string & {});
2107
+ /** List of user IDs to allow for named_entities visibility */
2108
+ user_ids?: SetAppsPermissionsRequestUserIdsList;
2109
+ /** List of encoded usergroup IDs */
2110
+ usergroup_ids?: SetAppsPermissionsRequestUsergroupIdsList;
2111
+ }
2112
+ export declare const SetAppsPermissionsRequest: S.Schema<SetAppsPermissionsRequest>;
2113
+ export interface SetAppsPermissionsResponse {
2114
+ /** Always `true` (a failed call raises a typed error instead). */
2115
+ ok: boolean;
2116
+ }
2117
+ export declare const SetAppsPermissionsResponse: S.Schema<SetAppsPermissionsResponse>;
2118
+ export interface SetConversationPrefsRequest {
2119
+ /** The channel to set the prefs for */
2120
+ channel_id: string;
2121
+ /** The prefs for this channel in a stringified JSON format. */
2122
+ prefs: string;
2123
+ }
2124
+ export declare const SetConversationPrefsRequest: S.Schema<SetConversationPrefsRequest>;
2125
+ export interface SetConversationPrefsResponse {
2126
+ ok: boolean;
2127
+ }
2128
+ export declare const SetConversationPrefsResponse: S.Schema<SetConversationPrefsResponse>;
2129
+ export interface SetCustomRetentionRequest {
2130
+ /** The conversation to set the retention policy for. */
2131
+ channel_id: string;
2132
+ /** The message retention duration in days to set for this conversation */
2133
+ duration_days: number;
2134
+ }
2135
+ export declare const SetCustomRetentionRequest: S.Schema<SetCustomRetentionRequest>;
2136
+ export interface SetCustomRetentionResponse {
2137
+ /** Always `true` (a failed call raises a typed error instead). */
2138
+ ok: boolean;
2139
+ }
2140
+ export declare const SetCustomRetentionResponse: S.Schema<SetCustomRetentionResponse>;
2141
+ export type SetDefaultChannelsRequestChannelIdsList = Array<string>;
2142
+ export declare const SetDefaultChannelsRequestChannelIdsList: S.Schema<SetDefaultChannelsRequestChannelIdsList>;
2143
+ export interface SetDefaultChannelsRequest {
2144
+ /** ID for the workspace to set the default channel for. */
2145
+ team_id: string;
2146
+ /** An array of channel IDs. */
2147
+ channel_ids: SetDefaultChannelsRequestChannelIdsList;
2148
+ }
2149
+ export declare const SetDefaultChannelsRequest: S.Schema<SetDefaultChannelsRequest>;
2150
+ export interface SetDefaultChannelsResponse {
2151
+ /** Always `true` (a failed call raises a typed error instead). */
2152
+ ok: boolean;
2153
+ }
2154
+ export declare const SetDefaultChannelsResponse: S.Schema<SetDefaultChannelsResponse>;
2155
+ export interface SetDescriptionRequest {
2156
+ /** ID for the workspace to set the description for. */
2157
+ team_id: string;
2158
+ /** The new description for the workspace. */
2159
+ description: string;
2160
+ }
2161
+ export declare const SetDescriptionRequest: S.Schema<SetDescriptionRequest>;
2162
+ export interface SetDescriptionResponse {
2163
+ ok: boolean;
2164
+ }
2165
+ export declare const SetDescriptionResponse: S.Schema<SetDescriptionResponse>;
2166
+ export interface SetDiscoverabilityRequest {
2167
+ /** The ID of the workspace to set discoverability on. */
2168
+ team_id: string;
2169
+ /** This workspace's discovery setting. It must be set to one of `open`, `invite_only`, `closed`, or `unlisted`. */
2170
+ discoverability: string;
2171
+ }
2172
+ export declare const SetDiscoverabilityRequest: S.Schema<SetDiscoverabilityRequest>;
2173
+ export interface SetDiscoverabilityResponse {
2174
+ ok: boolean;
2175
+ }
2176
+ export declare const SetDiscoverabilityResponse: S.Schema<SetDiscoverabilityResponse>;
2177
+ export interface SetExpirationRequest {
2178
+ /** The ID (`T1234`) of the workspace. */
2179
+ team_id?: string;
2180
+ /** The ID of the user to set an expiration for. */
2181
+ user_id: string;
2182
+ /** Epoch timestamp in seconds when guest account should be disabled. */
2183
+ expiration_ts: number;
2184
+ }
2185
+ export declare const SetExpirationRequest: S.Schema<SetExpirationRequest>;
2186
+ export interface SetExpirationResponse {
2187
+ ok: boolean;
2188
+ }
2189
+ export declare const SetExpirationResponse: S.Schema<SetExpirationResponse>;
2190
+ /** The function visibility. */
2191
+ export type SetFunctionsPermissionsRequestVisibility = "everyone" | "app_collaborators" | "named_entities" | "no_one";
2192
+ export declare const SetFunctionsPermissionsRequestVisibility: any;
2193
+ /** List of user IDs to allow for `named_entities` visibility. */
2194
+ export type SetFunctionsPermissionsRequestUserIdsList = Array<unknown>;
2195
+ export declare const SetFunctionsPermissionsRequestUserIdsList: S.Schema<SetFunctionsPermissionsRequestUserIdsList>;
2196
+ export type SetFunctionsPermissionsRequestPermissionsItemVisibility = "everyone" | "named_entities" | "no_one";
2197
+ export declare const SetFunctionsPermissionsRequestPermissionsItemVisibility: any;
2198
+ export type SetFunctionsPermissionsRequestPermissionsItemPermissionType = "slack_function" | "private_channel_access";
2199
+ export declare const SetFunctionsPermissionsRequestPermissionsItemPermissionType: any;
2200
+ /** List of user IDs to allow for `named_entities` visibility. */
2201
+ export type SetFunctionsPermissionsRequestPermissionsItemUserIdsList = Array<unknown>;
2202
+ export declare const SetFunctionsPermissionsRequestPermissionsItemUserIdsList: S.Schema<SetFunctionsPermissionsRequestPermissionsItemUserIdsList>;
2203
+ export interface SetFunctionsPermissionsRequestPermissionsItem {
2204
+ visibility: SetFunctionsPermissionsRequestPermissionsItemVisibility | (string & {});
2205
+ permission_type: SetFunctionsPermissionsRequestPermissionsItemPermissionType | (string & {});
2206
+ /** List of user IDs to allow for `named_entities` visibility. */
2207
+ user_ids?: SetFunctionsPermissionsRequestPermissionsItemUserIdsList;
2208
+ }
2209
+ export declare const SetFunctionsPermissionsRequestPermissionsItem: S.Schema<SetFunctionsPermissionsRequestPermissionsItem>;
2210
+ /** Array of permissions for the function. */
2211
+ export type SetFunctionsPermissionsRequestPermissionsList = Array<SetFunctionsPermissionsRequestPermissionsItem>;
2212
+ export declare const SetFunctionsPermissionsRequestPermissionsList: S.Schema<SetFunctionsPermissionsRequestPermissionsList>;
2213
+ export interface SetFunctionsPermissionsRequest {
2214
+ /** The function ID to set permissions for. */
2215
+ function_id: string;
2216
+ /** The function visibility. */
2217
+ visibility?: SetFunctionsPermissionsRequestVisibility | (string & {});
2218
+ /** List of user IDs to allow for `named_entities` visibility. */
2219
+ user_ids?: SetFunctionsPermissionsRequestUserIdsList;
2220
+ /** Array of permissions for the function. */
2221
+ permissions?: SetFunctionsPermissionsRequestPermissionsList;
2222
+ }
2223
+ export declare const SetFunctionsPermissionsRequest: S.Schema<SetFunctionsPermissionsRequest>;
2224
+ export interface SetFunctionsPermissionsResponse {
2225
+ /** Always `true` (a failed call raises a typed error instead). */
2226
+ ok: boolean;
2227
+ }
2228
+ export declare const SetFunctionsPermissionsResponse: S.Schema<SetFunctionsPermissionsResponse>;
2229
+ export interface SetIconRequest {
2230
+ /** Image URL for the icon */
2231
+ image_url: string;
2232
+ /** ID for the workspace to set the icon for. */
2233
+ team_id: string;
2234
+ }
2235
+ export declare const SetIconRequest: S.Schema<SetIconRequest>;
2236
+ export interface SetIconResponse {
2237
+ /** Always `true` (a failed call raises a typed error instead). */
2238
+ ok: boolean;
2239
+ }
2240
+ export declare const SetIconResponse: S.Schema<SetIconResponse>;
2241
+ export interface SetNameRequest {
2242
+ /** ID for the workspace to set the name for. */
2243
+ team_id: string;
2244
+ /** The new name of the workspace. */
2245
+ name: string;
2246
+ }
2247
+ export declare const SetNameRequest: S.Schema<SetNameRequest>;
2248
+ export interface SetNameResponse {
2249
+ ok: boolean;
2250
+ }
2251
+ export declare const SetNameResponse: S.Schema<SetNameResponse>;
2252
+ export interface SetOwnerRequest {
2253
+ /** The ID of the workspace or organization. */
2254
+ team_id: string;
2255
+ /** ID of the user to promote to owner. */
2256
+ user_id: string;
2257
+ }
2258
+ export declare const SetOwnerRequest: S.Schema<SetOwnerRequest>;
2259
+ export interface SetOwnerResponse {
2260
+ /** Always `true` (a failed call raises a typed error instead). */
2261
+ ok: boolean;
2262
+ }
2263
+ export declare const SetOwnerResponse: S.Schema<SetOwnerResponse>;
2264
+ export interface SetRegularRequest {
2265
+ /** The ID of the workspace or organization. */
2266
+ team_id: string;
2267
+ /** The ID of the user to designate as a regular user. */
2268
+ user_id: string;
2269
+ }
2270
+ export declare const SetRegularRequest: S.Schema<SetRegularRequest>;
2271
+ export interface SetRegularResponse {
2272
+ /** Always `true` (a failed call raises a typed error instead). */
2273
+ ok: boolean;
2274
+ }
2275
+ export declare const SetRegularResponse: S.Schema<SetRegularResponse>;
2276
+ /** The list of up to 1,000 user IDs to apply the session settings for */
2277
+ export type SetSettingsRequestUserIdsList = Array<string>;
2278
+ export declare const SetSettingsRequestUserIdsList: S.Schema<SetSettingsRequestUserIdsList>;
2279
+ export interface SetSettingsRequest {
2280
+ /** The list of up to 1,000 user IDs to apply the session settings for */
2281
+ user_ids: SetSettingsRequestUserIdsList;
2282
+ /** The session duration, in seconds. The minimum value is 28800, which represents 8 hours; the max value is 315569520 or 10 years (that's a long Slack session). */
2283
+ duration?: number;
2284
+ /** Terminate the session when the client—either the desktop app or a browser window—is closed. */
2285
+ desktop_app_browser_quit?: boolean;
2286
+ }
2287
+ export declare const SetSettingsRequest: S.Schema<SetSettingsRequest>;
2288
+ export interface SetSettingsResponse {
2289
+ ok: boolean;
2290
+ }
2291
+ export declare const SetSettingsResponse: S.Schema<SetSettingsResponse>;
2292
+ /** A comma-separated list of workspaces to which the channel should be shared. Not required if the channel is being shared org-wide. */
2293
+ export type SetTeamsRequestTargetTeamIdsList = Array<string>;
2294
+ export declare const SetTeamsRequestTargetTeamIdsList: S.Schema<SetTeamsRequestTargetTeamIdsList>;
2295
+ export interface SetTeamsRequest {
2296
+ /** The encoded `channel_id` to add or remove to workspaces. */
2297
+ channel_id: string;
2298
+ /** The workspace to which the channel belongs if the channel is a local workspace channel. Omit this argument if the channel is a cross-workspace or org-wide shared channel. */
2299
+ team_id?: string;
2300
+ /** A comma-separated list of workspaces to which the channel should be shared. Not required if the channel is being shared org-wide. */
2301
+ target_team_ids?: SetTeamsRequestTargetTeamIdsList;
2302
+ /** True if channel has to be converted to an org channel */
2303
+ org_channel?: boolean;
2304
+ }
2305
+ export declare const SetTeamsRequest: S.Schema<SetTeamsRequest>;
2306
+ export interface SetTeamsResponse {
2307
+ /** Always `true` (a failed call raises a typed error instead). */
2308
+ ok: boolean;
2309
+ channel: string;
2310
+ }
2311
+ export declare const SetTeamsResponse: S.Schema<SetTeamsResponse>;
2312
+ /** The function visibility */
2313
+ export type SetWorkflowsTriggersTypesPermissionsRequestVisibility = "everyone" | "named_entities" | "no_one";
2314
+ export declare const SetWorkflowsTriggersTypesPermissionsRequestVisibility: any;
2315
+ /** List of user IDs to allow for named_entities visibility */
2316
+ export type SetWorkflowsTriggersTypesPermissionsRequestUserIdsList = Array<string>;
2317
+ export declare const SetWorkflowsTriggersTypesPermissionsRequestUserIdsList: S.Schema<SetWorkflowsTriggersTypesPermissionsRequestUserIdsList>;
2318
+ /** Dict of permissions keyed by permission type ID. */
2319
+ export type SetWorkflowsTriggersTypesPermissionsRequestPermissionsPermissionsMap = {
2320
+ [key: string]: unknown | undefined;
2321
+ };
2322
+ export declare const SetWorkflowsTriggersTypesPermissionsRequestPermissionsPermissionsMap: S.Schema<SetWorkflowsTriggersTypesPermissionsRequestPermissionsPermissionsMap>;
2323
+ export interface SetWorkflowsTriggersTypesPermissionsRequestPermissions {
2324
+ /** Dict of permissions keyed by permission type ID. */
2325
+ permissions?: SetWorkflowsTriggersTypesPermissionsRequestPermissionsPermissionsMap;
2326
+ }
2327
+ export declare const SetWorkflowsTriggersTypesPermissionsRequestPermissions: S.Schema<SetWorkflowsTriggersTypesPermissionsRequestPermissions>;
2328
+ export interface SetWorkflowsTriggersTypesPermissionsRequest {
2329
+ /** The trigger type ID for which to set the permissions */
2330
+ id: string;
2331
+ /** The function visibility */
2332
+ visibility?: SetWorkflowsTriggersTypesPermissionsRequestVisibility | (string & {});
2333
+ /** List of user IDs to allow for named_entities visibility */
2334
+ user_ids?: SetWorkflowsTriggersTypesPermissionsRequestUserIdsList;
2335
+ permissions?: SetWorkflowsTriggersTypesPermissionsRequestPermissions;
2336
+ }
2337
+ export declare const SetWorkflowsTriggersTypesPermissionsRequest: S.Schema<SetWorkflowsTriggersTypesPermissionsRequest>;
2338
+ export interface SetWorkflowsTriggersTypesPermissionsResponse {
2339
+ /** Always `true` (a failed call raises a typed error instead). */
2340
+ ok: boolean;
2341
+ }
2342
+ export declare const SetWorkflowsTriggersTypesPermissionsResponse: S.Schema<SetWorkflowsTriggersTypesPermissionsResponse>;
2343
+ export interface TeamsSettingsInfoRequest {
2344
+ team_id: string;
2345
+ }
2346
+ export declare const TeamsSettingsInfoRequest: S.Schema<TeamsSettingsInfoRequest>;
2347
+ export type TeamsSettingsInfoResponseTeamItemDefaultChannelsList = Array<unknown>;
2348
+ export declare const TeamsSettingsInfoResponseTeamItemDefaultChannelsList: S.Schema<TeamsSettingsInfoResponseTeamItemDefaultChannelsList>;
2349
+ export interface TeamsSettingsInfoResponseTeamItem {
2350
+ id?: string;
2351
+ name?: string;
2352
+ domain?: string;
2353
+ email_domain?: string;
2354
+ icon?: unknown;
2355
+ enterprise_id?: string;
2356
+ enterprise_name?: string;
2357
+ default_channels?: TeamsSettingsInfoResponseTeamItemDefaultChannelsList;
2358
+ }
2359
+ export declare const TeamsSettingsInfoResponseTeamItem: S.Schema<TeamsSettingsInfoResponseTeamItem>;
2360
+ export type TeamsSettingsInfoResponseTeamList = Array<TeamsSettingsInfoResponseTeamItem>;
2361
+ export declare const TeamsSettingsInfoResponseTeamList: S.Schema<TeamsSettingsInfoResponseTeamList>;
2362
+ export interface TeamsSettingsInfoResponse {
2363
+ ok: boolean;
2364
+ team: TeamsSettingsInfoResponseTeamList;
2365
+ }
2366
+ export declare const TeamsSettingsInfoResponse: S.Schema<TeamsSettingsInfoResponse>;
2367
+ export interface UnarchiveConversationRequest {
2368
+ /** The channel to unarchive. */
2369
+ channel_id: string;
2370
+ }
2371
+ export declare const UnarchiveConversationRequest: S.Schema<UnarchiveConversationRequest>;
2372
+ export interface UnarchiveConversationResponse {
2373
+ ok: boolean;
2374
+ }
2375
+ export declare const UnarchiveConversationResponse: S.Schema<UnarchiveConversationResponse>;
2376
+ export interface UninstallAppRequest {
2377
+ /** The ID of the app to uninstall. */
2378
+ app_id: string;
2379
+ /** IDs of the teams to uninstall from (max 100). With an org-level token, this or `enterprise_id` is required. */
2380
+ team_ids?: string;
2381
+ /** The enterprise to completely uninstall the application from (across all workspaces). With an org-level token, this or `team_ids` is required. */
2382
+ enterprise_id?: string;
2383
+ }
2384
+ export declare const UninstallAppRequest: S.Schema<UninstallAppRequest>;
2385
+ export interface UninstallAppResponse {
2386
+ /** Always `true` (a failed call raises a typed error instead). */
2387
+ ok: boolean;
2388
+ }
2389
+ export declare const UninstallAppResponse: S.Schema<UninstallAppResponse>;
2390
+ export interface UnlinkObjectsRequest {
2391
+ /** Channel ID for Slack channel that will be unlinked from the Salesforce record. */
2392
+ channel: string;
2393
+ /** Channel name you would like to give to the channel that is being unlinked from the Salesforce record. */
2394
+ new_name: string;
2395
+ }
2396
+ export declare const UnlinkObjectsRequest: S.Schema<UnlinkObjectsRequest>;
2397
+ export interface UnlinkObjectsResponse {
2398
+ /** Always `true` (a failed call raises a typed error instead). */
2399
+ ok: boolean;
2400
+ }
2401
+ export declare const UnlinkObjectsResponse: S.Schema<UnlinkObjectsResponse>;
2402
+ /** Array of workflow IDs to unpublish */
2403
+ export type UnpublishWorkflowRequestWorkflowIdsList = Array<string>;
2404
+ export declare const UnpublishWorkflowRequestWorkflowIdsList: S.Schema<UnpublishWorkflowRequestWorkflowIdsList>;
2405
+ export interface UnpublishWorkflowRequest {
2406
+ /** Array of workflow IDs to unpublish */
2407
+ workflow_ids: UnpublishWorkflowRequestWorkflowIdsList;
2408
+ }
2409
+ export declare const UnpublishWorkflowRequest: S.Schema<UnpublishWorkflowRequest>;
2410
+ export interface UnpublishWorkflowResponse {
2411
+ /** Always `true` (a failed call raises a typed error instead). */
2412
+ ok: boolean;
2413
+ }
2414
+ export declare const UnpublishWorkflowResponse: S.Schema<UnpublishWorkflowResponse>;
2415
+ /** A list of [IDP Groups](https://slack.com/help/articles/115001435788-Connect-identity-provider-groups-to-your-Enterprise-organization) ids that the primary usergroup is to be barriered from. */
2416
+ export type UpdateBarrierRequestBarrieredFromUsergroupIdsList = Array<string>;
2417
+ export declare const UpdateBarrierRequestBarrieredFromUsergroupIdsList: S.Schema<UpdateBarrierRequestBarrieredFromUsergroupIdsList>;
2418
+ export type UpdateBarrierRequestRestrictedSubjectsItem = "im" | "mpim" | "call";
2419
+ export declare const UpdateBarrierRequestRestrictedSubjectsItem: any;
2420
+ /** What kind of interactions are blocked by this barrier? For v1, we only support a list of all 3, eg `im, mpim, call` */
2421
+ export type UpdateBarrierRequestRestrictedSubjectsList = Array<UpdateBarrierRequestRestrictedSubjectsItem | (string & {})>;
2422
+ export declare const UpdateBarrierRequestRestrictedSubjectsList: S.Schema<UpdateBarrierRequestRestrictedSubjectsList>;
2423
+ export interface UpdateBarrierRequest {
2424
+ /** The ID of the barrier you're trying to modify */
2425
+ barrier_id: string;
2426
+ /** The id of the primary [IDP Group](https://slack.com/help/articles/115001435788-Connect-identity-provider-groups-to-your-Enterprise-organization) */
2427
+ primary_usergroup_id: string;
2428
+ /** A list of [IDP Groups](https://slack.com/help/articles/115001435788-Connect-identity-provider-groups-to-your-Enterprise-organization) ids that the primary usergroup is to be barriered from. */
2429
+ barriered_from_usergroup_ids: UpdateBarrierRequestBarrieredFromUsergroupIdsList;
2430
+ /** What kind of interactions are blocked by this barrier? For v1, we only support a list of all 3, eg `im, mpim, call` */
2431
+ restricted_subjects: UpdateBarrierRequestRestrictedSubjectsList;
2432
+ }
2433
+ export declare const UpdateBarrierRequest: S.Schema<UpdateBarrierRequest>;
2434
+ export interface UpdateBarrierResponse {
2435
+ ok: boolean;
2436
+ barrier: unknown;
2437
+ }
2438
+ export declare const UpdateBarrierResponse: S.Schema<UpdateBarrierResponse>;
2439
+ /** allow list of IPv4 addresses using cidr notation in the Enterprise organization configuration */
2440
+ export type UpdateItemRequestTrustedCidrList = Array<string>;
2441
+ export declare const UpdateItemRequestTrustedCidrList: S.Schema<UpdateItemRequestTrustedCidrList>;
2442
+ /** allow list of Autonomous System Numbers (ASN) in the Enterprise organization configuration */
2443
+ export type UpdateItemRequestTrustedAsnsList = Array<number>;
2444
+ export declare const UpdateItemRequestTrustedAsnsList: S.Schema<UpdateItemRequestTrustedAsnsList>;
2445
+ export interface UpdateItemRequest {
2446
+ /** allow list of IPv4 addresses using cidr notation in the Enterprise organization configuration */
2447
+ trusted_cidr?: UpdateItemRequestTrustedCidrList;
2448
+ /** allow list of Autonomous System Numbers (ASN) in the Enterprise organization configuration */
2449
+ trusted_asns?: UpdateItemRequestTrustedAsnsList;
2450
+ }
2451
+ export declare const UpdateItemRequest: S.Schema<UpdateItemRequest>;
2452
+ export interface UpdateItemResponse {
2453
+ /** Always `true` (a failed call raises a typed error instead). */
2454
+ ok: boolean;
2455
+ }
2456
+ export declare const UpdateItemResponse: S.Schema<UpdateItemResponse>;
2457
+ export type AddAliasError = SlackOpError;
2458
+ /** 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 */
2459
+ export declare const addAlias: API.OperationMethod<AddAliasRequest, AddAliasResponse, AddAliasError, SlackOpContext>;
2460
+ export type AddAppsPermissionsError = SlackOpError;
2461
+ /** 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. - `failed_to_update_channels` — An error occurred while updating the channel restriction list. See https://docs.slack.dev/reference/methods/admin.apps.permissions.add */
2462
+ export declare const addAppsPermissions: API.OperationMethod<AddAppsPermissionsRequest, AddAppsPermissionsResponse, AddAppsPermissionsError, SlackOpContext>;
2463
+ export type AddAssignmentsError = SlackOpError;
2464
+ /** 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 */
2465
+ export declare const addAssignments: API.OperationMethod<AddAssignmentsRequest, AddAssignmentsResponse, AddAssignmentsError, SlackOpContext>;
2466
+ export type AddChannelsError = SlackOpError;
2467
+ /** 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 */
2468
+ export declare const addChannels: API.OperationMethod<AddChannelsRequest, AddChannelsResponse, AddChannelsError, SlackOpContext>;
2469
+ export type AddEmojiError = SlackOpError;
2470
+ /** 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 */
2471
+ export declare const addEmoji: API.OperationMethod<AddEmojiRequest, AddEmojiResponse, AddEmojiError, SlackOpContext>;
2472
+ export type AddGroupError = SlackOpError;
2473
+ /** 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 */
2474
+ export declare const addGroup: API.OperationMethod<AddGroupRequest, AddGroupResponse, AddGroupError, SlackOpContext>;
2475
+ export type AddTeamsError = SlackOpError;
2476
+ /** Associate one or more default workspaces with an organization-wide IDP group. Required scopes — user: `admin.teams:write` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `auto_provision_failure` — A failure occurred while assigning IDP group members to a specific workspace; see `errors` element for a list of failed team IDs. - `internal_error` — An unexpected error occurred. - `invalid_team_ids` — One or more team IDs provided were invalid; see the `errors` field in the response for the list of invalid team IDs. - `multi_workspace_restriction` — The IDP group has members that cannot be linked to more than one workspace. - `no_team_ids_given` — The `team_ids` parameter was empty. - `restricted_action` — The calling user cannot update the specified usergroup. - `team_limit_exceeded` — The number of teams associated with the org group would exceed the limit. - `usergroup_not_found` — `usergroup_id` wasn't found. See https://docs.slack.dev/reference/methods/admin.usergroups.addTeams */
2477
+ export declare const addTeams: API.OperationMethod<AddTeamsRequest, AddTeamsResponse, AddTeamsError, SlackOpContext>;
2478
+ export type AddWorkflowsCollaboratorError = SlackOpError;
2479
+ /** 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 */
2480
+ export declare const addWorkflowsCollaborator: API.OperationMethod<AddWorkflowsCollaboratorRequest, AddWorkflowsCollaboratorResponse, AddWorkflowsCollaboratorError, SlackOpContext>;
2481
+ export type AnalyticsMessagesActivityError = SlackOpError;
2482
+ /** Retrieves activity metrics for messages from a given channel. 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. - `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. See https://docs.slack.dev/reference/methods/admin.analytics.messages.activity */
2483
+ export declare const analyticsMessagesActivity: API.OperationMethod<AnalyticsMessagesActivityRequest, AnalyticsMessagesActivityResponse, AnalyticsMessagesActivityError, SlackOpContext>;
2484
+ export type AnalyticsMessagesMetadataError = SlackOpError;
2485
+ /** Retrieves metadata for a list of messages from a given channel. Required scopes — user: `admin.analytics:read` 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. See https://docs.slack.dev/reference/methods/admin.analytics.messages.metadata */
2486
+ export declare const analyticsMessagesMetadata: API.PaginatedOperationMethod<AnalyticsMessagesMetadataRequest, AnalyticsMessagesMetadataResponse, AnalyticsMessagesMetadataError, SlackOpContext, AnalyticsMessagesMetadataResponseMessagesItem>;
2487
+ export type ApproveAppError = SlackOpError;
2488
+ /** 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`. See https://docs.slack.dev/reference/methods/admin.apps.approve */
2489
+ export declare const approveApp: API.OperationMethod<ApproveAppRequest, ApproveAppResponse, ApproveAppError, SlackOpContext>;
2490
+ export type ApproveInviteRequestError = SlackOpError;
2491
+ /** Approve 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. - `failed_to_send_invite` — The actual invite (separate from approval) failed to process. This may happen because the user is disabled, already in the team, etc. - `feature_not_enabled` — The Invite Request Admin APIs are not enabled for this team. - `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.approve */
2492
+ export declare const approveInviteRequest: API.OperationMethod<ApproveInviteRequestRequest, ApproveInviteRequestResponse, ApproveInviteRequestError, SlackOpContext>;
2493
+ export type AppsRestrictError = SlackOpError;
2494
+ /** Restrict 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. - `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. - `invalid_scopes` — Some of the provided scopes do not exist - `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` See https://docs.slack.dev/reference/methods/admin.apps.restrict */
2495
+ export declare const appsRestrict: API.OperationMethod<AppsRestrictRequest, AppsRestrictResponse, AppsRestrictError, SlackOpContext>;
2496
+ export type ArchiveConversationError = SlackOpError;
2497
+ /** Archive a public or private channel. Required scopes — user: `admin.conversations:write` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `already_archived` — This channel has already been archived. - `cant_archive_general` — You cannot archive the 'general' channel. - `channel_not_found` — The value passed for `channel` was invalid. - `channel_type_not_supported` — The value passed for `channel` was an MPDM, DM, or the 'general' channel. - `could_not_archive_channel` — The provided channel could not be archived. - `default_org_wide_channel` — The default org-wide channel cannot be archived. - `feature_not_enabled` — The token provided does not have access to this method. - `restricted_action` — A workspace preference prevents the authenticated user from archiving this channel. See https://docs.slack.dev/reference/methods/admin.conversations.archive */
2498
+ export declare const archiveConversation: API.OperationMethod<ArchiveConversationRequest, ArchiveConversationResponse, ArchiveConversationError, SlackOpContext>;
2499
+ export type AssignEntitiesError = SlackOpError;
2500
+ /** 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 */
2501
+ export declare const assignEntities: API.OperationMethod<AssignEntitiesRequest, AssignEntitiesResponse, AssignEntitiesError, SlackOpContext>;
2502
+ export type AssignUserError = SlackOpError;
2503
+ /** 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. - `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. See https://docs.slack.dev/reference/methods/admin.users.assign */
2504
+ export declare const assignUser: API.OperationMethod<AssignUserRequest, AssignUserResponse, AssignUserError, SlackOpContext>;
2505
+ export type BulkArchiveError = SlackOpError;
2506
+ /** 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 */
2507
+ export declare const bulkArchive: API.OperationMethod<BulkArchiveRequest, BulkArchiveResponse, BulkArchiveError, SlackOpContext>;
2508
+ export type BulkDeleteError = SlackOpError;
2509
+ /** 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 */
2510
+ export declare const bulkDelete: API.OperationMethod<BulkDeleteRequest, BulkDeleteResponse, BulkDeleteError, SlackOpContext>;
2511
+ export type BulkMoveError = SlackOpError;
2512
+ /** 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 */
2513
+ export declare const bulkMove: API.OperationMethod<BulkMoveRequest, BulkMoveResponse, BulkMoveError, SlackOpContext>;
2514
+ export type BulkSetExcludeFromSlackAiError = SlackOpError;
2515
+ /** 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 See https://docs.slack.dev/reference/methods/admin.conversations.bulkSetExcludeFromSlackAi */
2516
+ export declare const bulkSetExcludeFromSlackAi: API.OperationMethod<BulkSetExcludeFromSlackAiRequest, BulkSetExcludeFromSlackAiResponse, BulkSetExcludeFromSlackAiError, SlackOpContext>;
2517
+ export type CancelAppsRequestError = SlackOpError;
2518
+ /** 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 */
2519
+ export declare const cancelAppsRequest: API.OperationMethod<CancelAppsRequestRequest, CancelAppsRequestResponse, CancelAppsRequestError, SlackOpContext>;
2520
+ export type ClearResolutionError = SlackOpError;
2521
+ /** Clear an app resolution 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_app_id` — The `app_id` passed is invalid. - `no_resolution_found` — No existing resolutions were found for the given `team` and `app_id`. - `not_an_admin` — This method is only accessible by org owners and admins - `access_denied` — This actor does not have access to the permissions on this resource. - `team_not_found` — Returned when team id is not found. - `too_many_teams_provided` — Please provide only `team_id` OR `enterprise_id` - `restricted_action` — This actor does not have access to the permissions on this resource. See https://docs.slack.dev/reference/methods/admin.apps.clearResolution */
2522
+ export declare const clearResolution: API.OperationMethod<ClearResolutionRequest, ClearResolutionResponse, ClearResolutionError, SlackOpContext>;
2523
+ export type ClearSettingsError = SlackOpError;
2524
+ /** 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 */
2525
+ export declare const clearSettings: API.OperationMethod<ClearSettingsRequest, ClearSettingsResponse, ClearSettingsError, SlackOpContext>;
2526
+ export type ConvertToPrivateError = SlackOpError;
2527
+ /** 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 */
2528
+ export declare const convertToPrivate: API.OperationMethod<ConvertToPrivateRequest, ConvertToPrivateResponse, ConvertToPrivateError, SlackOpContext>;
2529
+ export type ConvertToPublicError = SlackOpError;
2530
+ /** Convert a private channel to a public channel. Required scopes — user: `admin.conversations:write` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `feature_not_enabled` — The feature has not been enabled for this Organization - `channel_not_found` — The channel requested for conversion to public could not be found. - `not_supported` — Conversion to public channel is not supported for this channel. - `restricted_action` — This user is not able to convert this channel to public. - `missing_scope` — This user is either not an owner or the app does not have the correct scope. - `could_not_convert_channel` — This channel could not be converted to public. - `not_an_enterprise` — Only enterprises can convert channel to public. - `invalid_user` — Value passed for `user_id` was not valid - `external_limited_restriction` — away-side SC conversion fails due to being under Limited Access (“external_limited” aka “can only post”) - `channel_owner_restriction` — away-side SC conversion fails due to home-side being private - `is_idp_managed` — The channel cannot be converted because it is IDP Managed See https://docs.slack.dev/reference/methods/admin.conversations.convertToPublic */
2531
+ export declare const convertToPublic: API.OperationMethod<ConvertToPublicRequest, ConvertToPublicResponse, ConvertToPublicError, SlackOpContext>;
2532
+ export type CreateBarrierError = SlackOpError;
2533
+ /** 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 */
2534
+ export declare const createBarrier: API.OperationMethod<CreateBarrierRequest, CreateBarrierResponse, CreateBarrierError, SlackOpContext>;
2535
+ export type CreateConversationError = SlackOpError;
2536
+ /** 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 */
2537
+ export declare const createConversation: API.OperationMethod<CreateConversationRequest, CreateConversationResponse, CreateConversationError, SlackOpContext>;
2538
+ export type CreateForObjectsError = SlackOpError;
2539
+ /** 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 `object_id` is invalid. - `invalid_org_id` — Value passed for `salesforce_org_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 */
2540
+ export declare const createForObjects: API.OperationMethod<CreateForObjectsRequest, CreateForObjectsResponse, CreateForObjectsError, SlackOpContext>;
2541
+ export type CreateTeamError = SlackOpError;
2542
+ /** 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 */
2543
+ export declare const createTeam: API.OperationMethod<CreateTeamRequest, CreateTeamResponse, CreateTeamError, SlackOpContext>;
2544
+ export type DeleteBarrierError = SlackOpError;
2545
+ /** Delete an existing Information Barrier Required scopes — user: `admin.barriers:write` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `barrier_not_found` — The barrier you're trying to delete cannot be found. - `feature_not_enabled` — The information barrier feature is not enabled, please reach out to your CSM. - `not_an_admin` — The token provided is not associated with an org admin. See https://docs.slack.dev/reference/methods/admin.barriers.delete */
2546
+ export declare const deleteBarrier: API.OperationMethod<DeleteBarrierRequest, DeleteBarrierResponse, DeleteBarrierError, SlackOpContext>;
2547
+ export type DeleteConversationError = SlackOpError;
2548
+ /** 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 */
2549
+ export declare const deleteConversation: API.OperationMethod<DeleteConversationRequest, DeleteConversationResponse, DeleteConversationError, SlackOpContext>;
2550
+ export type DisconnectSharedError = SlackOpError;
2551
+ /** 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. See https://docs.slack.dev/reference/methods/admin.conversations.disconnectShared */
2552
+ export declare const disconnectShared: API.OperationMethod<DisconnectSharedRequest, DisconnectSharedResponse, DisconnectSharedError, SlackOpContext>;
2553
+ export type ExportUsersUnsupportedVersionError = SlackOpError;
2554
+ /** 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 */
2555
+ export declare const exportUsersUnsupportedVersion: API.OperationMethod<ExportUsersUnsupportedVersionRequest, ExportUsersUnsupportedVersionResponse, ExportUsersUnsupportedVersionError, SlackOpContext>;
2556
+ export type GetConversationPrefsError = SlackOpError;
2557
+ /** Get conversation preferences for a public or private channel. Required scopes — user: `admin.conversations:read` 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_get_conversation_prefs` — There was an error getting the conversation preferences for this channel. - `feature_not_enabled` — The token provided does not have access to this method. - `missing_scope` — The token provided doesn't have the required scopes. - `not_an_admin` — The token provided is not associated with an Org Admin or Owner. - `not_an_enterprise` — This endpoint can only be called by an Enterprise organization. - `restricted_action` — A workspace preference prevents the authenticated user from listing preferences. See https://docs.slack.dev/reference/methods/admin.conversations.getConversationPrefs */
2558
+ export declare const getConversationPrefs: API.OperationMethod<GetConversationPrefsRequest, GetConversationPrefsResponse, GetConversationPrefsError, SlackOpContext>;
2559
+ export type GetCustomRetentionError = SlackOpError;
2560
+ /** This API endpoint can be used by any admin to get a conversation's retention policy. Required scopes — user: `admin.conversations:read` 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_get_retention` — The retention policy could not be retrieved. - `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 org admin. - `restricted_action` — A team preference prevents the authenticated user from modifying the retention policy of this channel. - `retention_override_not_allowed` — The current org retention policy disallows modifying the retention policy of this channel. See https://docs.slack.dev/reference/methods/admin.conversations.getCustomRetention */
2561
+ export declare const getCustomRetention: API.OperationMethod<GetCustomRetentionRequest, GetCustomRetentionResponse, GetCustomRetentionError, SlackOpContext>;
2562
+ export type GetEntitiesError = SlackOpError;
2563
+ /** Fetch all the entities assigned to a particular authentication policy by name. Required scopes — user: `admin.users:read` Rate limit tier: 4 Method-specific errors (the `error` slug on the SlackError): - `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. - `invalid_cursor` — The cursor passed was invalid. - `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.getEntities */
2564
+ export declare const getEntities: API.PaginatedOperationMethod<GetEntitiesRequest, GetEntitiesResponse, GetEntitiesError, SlackOpContext, GetEntitiesResponseEntitiesItem>;
2565
+ export type GetExpirationError = SlackOpError;
2566
+ /** Fetches the expiration timestamp for a guest Required scopes — user: `admin.users:read` Rate limit tier: 4 Method-specific errors (the `error` slug on the SlackError): - `paid_teams_only` — This feature is only accessible to paid teams - `no_perms` — User does not have appropriate permissions. - `team_not_found` — Team not found - `user_not_found` — User not found - `not_permitted` — This action is not permitted - `target_team_not_on_org` — Target team specified is not on the org in context - `user_is_not_guest` — The user is not a guest See https://docs.slack.dev/reference/methods/admin.users.getExpiration */
2567
+ export declare const getExpiration: API.OperationMethod<GetExpirationRequest, GetExpirationResponse, GetExpirationError, SlackOpContext>;
2568
+ export type GetFileError = SlackOpError;
2569
+ /** 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 */
2570
+ export declare const getFile: API.OperationMethod<GetFileRequest, GetFileResponse, GetFileError, SlackOpContext>;
2571
+ export type GetItemError = SlackOpError;
2572
+ /** 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 */
2573
+ export declare const getItem: API.OperationMethod<GetItemRequest, GetItemResponse, GetItemError, SlackOpContext>;
2574
+ export type GetSettingsError = SlackOpError;
2575
+ /** 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 */
2576
+ export declare const getSettings: API.OperationMethod<GetSettingsRequest, GetSettingsResponse, GetSettingsError, SlackOpContext>;
2577
+ export type GetTeamsError = SlackOpError;
2578
+ /** Get all the workspaces a given public or private channel is connected to within this Enterprise org. Required scopes — user: `admin.conversations:read` Rate limit tier: 3 Method-specific errors (the `error` slug on the SlackError): - `channel_not_found` — The channel wasn't found or isn't connected to multiple workspaces. - `channel_type_not_supported` — The `channel_id` provided was a DM, MPDM, or the 'general' channel. - `could_not_get_teams` — Could not fetch the workspaces that the channel is shared with in this organization. - `external_channel_migrating` — The channel is actively being migrated - `feature_not_enabled` — The token provided doesn't have access to this method. - `invalid_cursor` — The provided cursor wasn't valid. - `invalid_limit` — The value passed for `limit` wasn't valid. - `restricted_action` — A workspace preference prevents the authenticated user from listing the workspaces connected to a channel. - `unsupported_team_type` — This endpoint can only called by Enterprise organizations. See https://docs.slack.dev/reference/methods/admin.conversations.getTeams */
2579
+ export declare const getTeams: API.OperationMethod<GetTeamsRequest, GetTeamsResponse, GetTeamsError, SlackOpContext>;
2580
+ export type InvalidateUsersSessionError = SlackOpError;
2581
+ /** 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 */
2582
+ export declare const invalidateUsersSession: API.OperationMethod<InvalidateUsersSessionRequest, InvalidateUsersSessionResponse, InvalidateUsersSessionError, SlackOpContext>;
2583
+ export type InviteConversationError = SlackOpError;
2584
+ /** 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 */
2585
+ export declare const inviteConversation: API.OperationMethod<InviteConversationRequest, InviteConversationResponse, InviteConversationError, SlackOpContext>;
2586
+ export type InviteRequestsDenyError = SlackOpError;
2587
+ /** 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 */
2588
+ export declare const inviteRequestsDeny: API.OperationMethod<InviteRequestsDenyRequest, InviteRequestsDenyResponse, InviteRequestsDenyError, SlackOpContext>;
2589
+ export type InviteUserError = SlackOpError;
2590
+ /** Invite a user to a workspace. Required scopes — user: `admin.users:write` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `already_in_team` — The user is already on the team. - `already_in_team_invited_user` — The user has already been invited to the team. - `failed_looking_up_user` — We couldn't find the requested user. - `failed_to_send_invite` — The invite failed to send. - `failed_to_validate_caller` — The token calling this method doesn't have permission to invite a user. - `failed_to_validate_channels` — `channel_ids` was invalid. - `failed_to_validate_custom_message` — `extra_message` was invalid. - `failed_to_validate_expiration` — `expiration_ts` was invalid. - `failed_to_validate_team` — The team calling this method was invalid. - `feature_not_enabled` — The Admin APIs feature is not enabled for this team. - `invalid_email` — Email address was not valid. - `not_an_admin` — The user token does not have admin privileges. - `team_not_found` — `team_id` was not found. - `user_disabled` — The user is disabled. See https://docs.slack.dev/reference/methods/admin.users.invite */
2591
+ export declare const inviteUser: API.OperationMethod<InviteUserRequest, InviteUserResponse, InviteUserError, SlackOpContext>;
2592
+ export type LinkObjectsError = SlackOpError;
2593
+ /** Link a Salesforce record to a channel Required scopes — user: `admin.conversations:manage_objects` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `channel_already_exists` — Object is linked to a different channel. - `channel_conversion_incomplete` — An active channel conversion is preventing linking. - `channel_is_archived` — Channel is archived. - `channel_not_found` — Value passed for `channel` is invalid. - `channel_not_org_wide_shared` — Channel is not Org-wide shared. - `channel_shared_with_nonapproved_team` — Channel is shared with a non-approved external team. - `config_not_found` — Missing record configuration. - `invalid_channel_type` — Channel type cannot be linked. - `name_taken` — A channel cannot be created with the given name. - `not_allowed_for_grid_workspace` — Channel type is not allowed for this Enterprise org workspace. - `restricted_action` — User does not have access to perform this action. - `record_channel_already_exists` — Record is linked to a different channel. - `record_channel_cannot_be_externally_shared` — Channel cannot be linked because it is externally shared. - `record_not_found` — Value passed for `record_id` is invalid. See https://docs.slack.dev/reference/methods/admin.conversations.linkObjects */
2594
+ export declare const linkObjects: API.OperationMethod<LinkObjectsRequest, LinkObjectsResponse, LinkObjectsError, SlackOpContext>;
2595
+ export type ListAppsActivitiesError = SlackOpError;
2596
+ /** Get logs for a specified team/org Required scopes — user: `admin.app_activities:read` Rate limit tier: 3 Method-specific errors (the `error` slug on the SlackError): - `internal_error` — Something went wrong on our end, please try again. - `invalid_app_id` — App ID provided is not valid. - `invalid_app` — App ID provided is not valid for team and user. - `invalid_args` — Required arguments either were not provided or contain invalid values. - `invalid_cursor` — Value passed for `cursor` was not valid or is no longer valid. - `invalid_team` — Team ID provided is not valid See https://docs.slack.dev/reference/methods/admin.apps.activities.list */
2597
+ export declare const listAppsActivities: API.PaginatedOperationMethod<ListAppsActivitiesRequest, ListAppsActivitiesResponse, ListAppsActivitiesError, SlackOpContext, unknown>;
2598
+ export type ListAppsApprovedError = SlackOpError;
2599
+ /** 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 */
2600
+ export declare const listAppsApproved: API.PaginatedOperationMethod<ListAppsApprovedRequest, ListAppsApprovedResponse, ListAppsApprovedError, SlackOpContext, unknown>;
2601
+ export type ListAppsMcpServersError = SlackOpError;
2602
+ /** 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 */
2603
+ export declare const listAppsMcpServers: API.PaginatedOperationMethod<ListAppsMcpServersRequest, ListAppsMcpServersResponse, ListAppsMcpServersError, SlackOpContext, ListAppsMcpServersResponseServersItem>;
2604
+ export type ListAppsMcpServersPermissionsError = SlackOpError;
2605
+ /** 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. - `feature_not_enabled` — The MCP server ACL feature is not enabled for this team. - `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 */
2606
+ export declare const listAppsMcpServersPermissions: API.OperationMethod<ListAppsMcpServersPermissionsRequest, ListAppsMcpServersPermissionsResponse, ListAppsMcpServersPermissionsError, SlackOpContext>;
2607
+ export type ListAppsPermissionsError = SlackOpError;
2608
+ /** Returns the permission type of an app and if applicable, includes the entities that have been granted access 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 - `access_denied` — This actor does not have access to the permissions on this resource. - `app_not_found` — This app does not exist. - `not_an_enterprise` — This feature is only available on Enterprise Grid plans. - `invalid_permission_type` — The ACL has an invalid permission type. See https://docs.slack.dev/reference/methods/admin.apps.permissions.list */
2609
+ export declare const listAppsPermissions: API.OperationMethod<ListAppsPermissionsRequest, ListAppsPermissionsResponse, ListAppsPermissionsError, SlackOpContext>;
2610
+ export type ListAppsRequestsError = SlackOpError;
2611
+ /** List app requests for a team/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. - `enterprise_not_found` — Returned when enterprise id is not found. - `feature_not_enabled` — Returned when the Admin APIs feature is not enabled for this team - `invalid_cursor` — Value passed for `cursor` was not valid or is no longer valid. - `invalid_auth` — invalid token or actor does not have access - `not_allowed` — The user is not allowed to access this API method - `not_an_admin` — This method is only accessible by org owners and admins - `restricted_action` — The action is restricted for this team - `user_is_restricted` — This method is only accessible by org owners, admins, and integration managers - `no_team_or_enterprise_provided` — Must provide team ID or enterprise ID - `team_not_found` — Returned when team id is not found. - `too_many_teams_provided` — Please provide only `team_id` OR `enterprise_id` See https://docs.slack.dev/reference/methods/admin.apps.requests.list */
2612
+ export declare const listAppsRequests: API.PaginatedOperationMethod<ListAppsRequestsRequest, ListAppsRequestsResponse, ListAppsRequestsError, SlackOpContext, unknown>;
2613
+ export type ListAppsRestrictedError = SlackOpError;
2614
+ /** List restricted 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.restricted.list */
2615
+ export declare const listAppsRestricted: API.PaginatedOperationMethod<ListAppsRestrictedRequest, ListAppsRestrictedResponse, ListAppsRestrictedError, SlackOpContext, unknown>;
2616
+ export type ListAssignmentsError = SlackOpError;
2617
+ /** Lists assignments for all roles across entities. Options to scope results by any combination of roles or entities Required scopes — user: `admin.roles:read` Rate limit tier: 3 Method-specific errors (the `error` slug on the SlackError): - `feature_not_enabled` — This API is currently not enabled. - `invalid_actor` — This API is only enabled for the Admins/Owners. - `invalid_arguments` — Required arguments either were not provided or contain invalid values. - `invalid_cursor` — The passed cursor was invalid. - `invalid_sort` — Sort parameters are invalid. - `invalid_role_id` — One or more role IDs could not be validated. See https://docs.slack.dev/reference/methods/admin.roles.listAssignments */
2618
+ export declare const listAssignments: API.PaginatedOperationMethod<ListAssignmentsRequest, ListAssignmentsResponse, ListAssignmentsError, SlackOpContext, ListAssignmentsResponseRoleAssignmentsItem>;
2619
+ export type ListBarriersError = SlackOpError;
2620
+ /** Get all Information Barriers for your organization Required scopes — user: `admin.barriers:read` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `feature_not_enabled` — Feature not enabled - `invalid_cursor` — Value passed for `cursor` was not valid or is no longer valid. - `not_an_admin` — The token provided is not associated with an org admin See https://docs.slack.dev/reference/methods/admin.barriers.list */
2621
+ export declare const listBarriers: API.PaginatedOperationMethod<ListBarriersRequest, ListBarriersResponse, ListBarriersError, SlackOpContext, unknown>;
2622
+ export type ListChannelsError = SlackOpError;
2623
+ /** List the channels linked to an org-level IDP group (user group). Required scopes — user: `admin.usergroups:read` 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 Enterprise organization. - `invalid_user` — The calling user is not valid. - `not_allowed` — The calling user is not an admin or does not have necessary role - `not_an_admin` — The token provided is not associated with an Org Admin or Owner. - `not_an_enterprise` — The token passed in does not belong to an Enterprise organization. - `team_not_found` — The workspace was not found. - `usergroup_not_found` — The IDP group provided was not found. - `usergroup_not_linked_to_team` — The IDP group provided is not linked to the specified workspace. See https://docs.slack.dev/reference/methods/admin.usergroups.listChannels */
2624
+ export declare const listChannels: API.OperationMethod<ListChannelsRequest, ListChannelsResponse, ListChannelsError, SlackOpContext>;
2625
+ export type ListEmojiError = SlackOpError;
2626
+ /** List emoji for an Enterprise organization. Required scopes — user: `admin.teams:read` 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_cursor` — Value passed for `cursor` was not valid or is no longer valid. - `not_an_admin` — This method is only accessible by org owners and Admins. See https://docs.slack.dev/reference/methods/admin.emoji.list */
2627
+ export declare const listEmoji: API.OperationMethod<ListEmojiRequest, ListEmojiResponse, ListEmojiError, SlackOpContext>;
2628
+ export type ListFunctionsError = SlackOpError;
2629
+ /** Look up functions by a set of apps. Required scopes — user: `admin.workflows:read` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `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. - `restricted_action` — The user is not allowed to access this API method. See https://docs.slack.dev/reference/methods/admin.functions.list */
2630
+ export declare const listFunctions: API.PaginatedOperationMethod<ListFunctionsRequest, ListFunctionsResponse, ListFunctionsError, SlackOpContext, unknown>;
2631
+ export type ListGroupsError = SlackOpError;
2632
+ /** List all IDP Groups linked to a channel Required scopes — user: `admin.conversations:read` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `channel_not_found` — `channel_id` wasn't found. - `feature_not_enabled` — Feature not enabled - `invalid_auth` — Token does not belong to enterprise or team id passed in not part of this enterprise - `invalid_channel` — The requested channel couldn’t be linked to an IDP group. It might be a public channel or an externally-shared channel. - `not_an_admin` — This token doesn't belong to an Org Admin or Owner. - `team_not_found` — `team_id` wasn't found. See https://docs.slack.dev/reference/methods/admin.conversations.restrictAccess.listGroups */
2633
+ export declare const listGroups: API.OperationMethod<ListGroupsRequest, ListGroupsResponse, ListGroupsError, SlackOpContext>;
2634
+ export type ListInviteRequestsError = SlackOpError;
2635
+ /** List all pending workspace invite requests. Required scopes — user: `admin.invites:read` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `feature_not_enabled` — The Invite Request Admin APIs feature is not enabled - `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.list */
2636
+ export declare const listInviteRequests: API.PaginatedOperationMethod<ListInviteRequestsRequest, ListInviteRequestsResponse, ListInviteRequestsError, SlackOpContext, unknown>;
2637
+ export type ListInviteRequestsApprovedError = SlackOpError;
2638
+ /** List all approved workspace invite requests. Required scopes — user: `admin.invites:read` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `feature_not_enabled` — The Invite Requests admin APIs feature is not enabled - `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.approved.list */
2639
+ export declare const listInviteRequestsApproved: API.PaginatedOperationMethod<ListInviteRequestsApprovedRequest, ListInviteRequestsApprovedResponse, ListInviteRequestsApprovedError, SlackOpContext, unknown>;
2640
+ export type ListInviteRequestsDeniedError = SlackOpError;
2641
+ /** List all denied workspace invite requests. Required scopes — user: `admin.invites:read` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `feature_not_enabled` — The Invite Request admin APIs feature is not enabled - `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.denied.list */
2642
+ export declare const listInviteRequestsDenied: API.PaginatedOperationMethod<ListInviteRequestsDeniedRequest, ListInviteRequestsDeniedResponse, ListInviteRequestsDeniedError, SlackOpContext, unknown>;
2643
+ export type ListOriginalConnectedChannelInfoError = SlackOpError;
2644
+ /** List all disconnected channels—i.e., channels that were once connected to other workspaces and then disconnected—and the corresponding original channel IDs for key revocation with EKM. Required scopes — user: `admin.conversations:read` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `invalid_cursor` — Invalid cursor. - `invalid_limit` — The value passed for `limit` was not valid. - `not_an_admin` — This method is only accessible by Org owners and Admins. - `not_enabled` — The API endpoint is not enabled for your team. - `restricted_action` — The caller of this API is not allowed to perform this operation. - `unsupported_arguments` — The provided method arguments are not supported. See https://docs.slack.dev/reference/methods/admin.conversations.ekm.listOriginalConnectedChannelInfo */
2645
+ export declare const listOriginalConnectedChannelInfo: API.PaginatedOperationMethod<ListOriginalConnectedChannelInfoRequest, ListOriginalConnectedChannelInfoResponse, ListOriginalConnectedChannelInfoError, SlackOpContext, ListOriginalConnectedChannelInfoResponseChannelsItem>;
2646
+ export type ListTeamsError = SlackOpError;
2647
+ /** List all teams in an Enterprise organization Required scopes — user: `admin.teams:read` Rate limit tier: 3 Method-specific errors (the `error` slug on the SlackError): - `feature_not_enabled` — The Admin APIs feature is not enabled for this team. - `invalid_cursor` — Invalid cursor. - `invalid_limit` — Value passed for `limit` was not valid. - `not_an_admin` — This method is only accessible by org owners and admins. See https://docs.slack.dev/reference/methods/admin.teams.list */
2648
+ export declare const listTeams: API.PaginatedOperationMethod<ListTeamsRequest, ListTeamsResponse, ListTeamsError, SlackOpContext, ListTeamsResponseTeamsItem>;
2649
+ export type ListTeamsAdminsError = SlackOpError;
2650
+ /** List all of the admins on a given workspace. Required scopes — user: `admin.teams:read` Rate limit tier: 3 Method-specific errors (the `error` slug on the SlackError): - `feature_not_enabled` — The Admin APIs feature is not enabled for this team. - `invalid_auth` — The given token is not authorized for the requested `team_id`. - `invalid_cursor` — Invalid cursor. - `invalid_limit` — Limit must be between 1 and 1000 inclusive. - `not_an_admin` — This method is only accessible by org owners and admins. - `team_not_found` — `team_id` was not found. See https://docs.slack.dev/reference/methods/admin.teams.admins.list */
2651
+ export declare const listTeamsAdmins: API.PaginatedOperationMethod<ListTeamsAdminsRequest, ListTeamsAdminsResponse, ListTeamsAdminsError, SlackOpContext, string>;
2652
+ export type ListTeamsOwnersError = SlackOpError;
2653
+ /** List all of the owners on a given workspace. Required scopes — user: `admin.teams:read` Rate limit tier: 3 Method-specific errors (the `error` slug on the SlackError): - `feature_not_enabled` — The Admin APIs feature is not enabled for this team. - `invalid_auth` — The given token is not authorized for the requested team. - `invalid_cursor` — Invalid cursor. - `not_an_admin` — This method is only accessible by org owners and admins. - `team_not_found` — `team_id was not found. See https://docs.slack.dev/reference/methods/admin.teams.owners.list */
2654
+ export declare const listTeamsOwners: API.PaginatedOperationMethod<ListTeamsOwnersRequest, ListTeamsOwnersResponse, ListTeamsOwnersError, SlackOpContext, string>;
2655
+ export type ListUsersError = SlackOpError;
2656
+ /** List users on a workspace Required scopes — user: `admin.users:read` Rate limit tier: 4 Method-specific errors (the `error` slug on the SlackError): - `feature_not_enabled` — The Admin APIs feature is not enabled for this team. - `invalid_arguments` — The passed arguments were invalid. - `invalid_auth` — This request could not be authorized. - `invalid_cursor` — The passed cursor could not be validated. - `team_not_found` — `team_id` was not found. - `include_deactivated_user_workspaces_invalid` — `include_deactivated_user_workspaces` only applies with org token and no team_id. See https://docs.slack.dev/reference/methods/admin.users.list */
2657
+ export declare const listUsers: API.PaginatedOperationMethod<ListUsersRequest, ListUsersResponse, ListUsersError, SlackOpContext, ListUsersResponseUsersItem>;
2658
+ export type ListUsersSessionError = SlackOpError;
2659
+ /** List active user sessions for an organization Required scopes — user: `admin.users:read` Rate limit tier: 2 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. - `invalid_auth` — The provided token doesn't have access to this endpoint. - `invalid_cursor` — The cursor passed was invalid. - `no_active_sessions` — No active sessions were found. - `not_an_admin` — The owner of this token isn't an Org Owner or Admin. - `missing_team` — A `team_id` must be provided with a `user_id`. - `missing_user` — A `user_id` must be provided with a `team_id`. - `team_not_found` — There was an error finding the requested workspace. - `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.list */
2660
+ export declare const listUsersSession: API.PaginatedOperationMethod<ListUsersSessionRequest, ListUsersSessionResponse, ListUsersSessionError, SlackOpContext, ListUsersSessionResponseActiveSessionsItem>;
2661
+ export type LookupAppsConfigError = SlackOpError;
2662
+ /** 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 */
2663
+ export declare const lookupAppsConfig: API.OperationMethod<LookupAppsConfigRequest, LookupAppsConfigResponse, LookupAppsConfigError, SlackOpContext>;
2664
+ export type LookupConversationError = SlackOpError;
2665
+ /** 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 */
2666
+ export declare const lookupConversation: API.PaginatedOperationMethod<LookupConversationRequest, LookupConversationResponse, LookupConversationError, SlackOpContext, string>;
2667
+ export type LookupFunctionsPermissionsError = SlackOpError;
2668
+ /** 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 */
2669
+ export declare const lookupFunctionsPermissions: API.OperationMethod<LookupFunctionsPermissionsRequest, LookupFunctionsPermissionsResponse, LookupFunctionsPermissionsError, SlackOpContext>;
2670
+ export type LookupWorkflowsPermissionsError = SlackOpError;
2671
+ /** Look up the permissions for a set of workflows Required scopes — user: `admin.workflows:read` Rate limit tier: 2 See https://docs.slack.dev/reference/methods/admin.workflows.permissions.lookup */
2672
+ export declare const lookupWorkflowsPermissions: API.OperationMethod<LookupWorkflowsPermissionsRequest, LookupWorkflowsPermissionsResponse, LookupWorkflowsPermissionsError, SlackOpContext>;
2673
+ export type LookupWorkflowsTriggersTypesPermissionsError = SlackOpError;
2674
+ /** List the permissions for using each trigger type. Required scopes — user: `client` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `restricted_action` — This actor does not have access to view the permissions on this resource - `trigger_type_id_not_found` — The given trigger type ID(s) do not map to valid trigger types See https://docs.slack.dev/reference/methods/admin.workflows.triggers.types.permissions.lookup */
2675
+ export declare const lookupWorkflowsTriggersTypesPermissions: API.OperationMethod<LookupWorkflowsTriggersTypesPermissionsRequest, LookupWorkflowsTriggersTypesPermissionsResponse, LookupWorkflowsTriggersTypesPermissionsError, SlackOpContext>;
2676
+ export type RemoveAppsPermissionsError = SlackOpError;
2677
+ /** 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. See https://docs.slack.dev/reference/methods/admin.apps.permissions.remove */
2678
+ export declare const removeAppsPermissions: API.OperationMethod<RemoveAppsPermissionsRequest, RemoveAppsPermissionsResponse, RemoveAppsPermissionsError, SlackOpContext>;
2679
+ export type RemoveAssignmentsError = SlackOpError;
2680
+ /** 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` — Cannot modify role admin. See https://docs.slack.dev/reference/methods/admin.roles.removeAssignments */
2681
+ export declare const removeAssignments: API.OperationMethod<RemoveAssignmentsRequest, RemoveAssignmentsResponse, RemoveAssignmentsError, SlackOpContext>;
2682
+ export type RemoveChannelsError = SlackOpError;
2683
+ /** 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 */
2684
+ export declare const removeChannels: API.OperationMethod<RemoveChannelsRequest, RemoveChannelsResponse, RemoveChannelsError, SlackOpContext>;
2685
+ export type RemoveCustomRetentionError = SlackOpError;
2686
+ /** 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. See https://docs.slack.dev/reference/methods/admin.conversations.removeCustomRetention */
2687
+ export declare const removeCustomRetention: API.OperationMethod<RemoveCustomRetentionRequest, RemoveCustomRetentionResponse, RemoveCustomRetentionError, SlackOpContext>;
2688
+ export type RemoveEmojiError = SlackOpError;
2689
+ /** 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 */
2690
+ export declare const removeEmoji: API.OperationMethod<RemoveEmojiRequest, RemoveEmojiResponse, RemoveEmojiError, SlackOpContext>;
2691
+ export type RemoveEntitiesError = SlackOpError;
2692
+ /** 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 */
2693
+ export declare const removeEntities: API.OperationMethod<RemoveEntitiesRequest, RemoveEntitiesResponse, RemoveEntitiesError, SlackOpContext>;
2694
+ export type RemoveGroupError = SlackOpError;
2695
+ /** Remove a linked IDP group linked from a private channel Required scopes — user: `admin.conversations:write` Rate limit tier: 1 Method-specific errors (the `error` slug on the SlackError): - `channel_not_found` — `channel_id` can’t be found. - `failed_to_remove_group_users` — Returned when could not remove the users in the channel of the group being removed - `failed_to_unlink_channel` — Removing the link in the database failed. Please retry. - `feature_not_enabled` — Feature not enabled - `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 could not be linked to an IDP group (i.e., it's a public channel or external shared channel). - `link_not_found` — There was no link found between the specified channel and the IDP group. - `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_unlink_idp_group_and_channel` — The IDP group and channel cannot be unlinked. See https://docs.slack.dev/reference/methods/admin.conversations.restrictAccess.removeGroup */
2696
+ export declare const removeGroup: API.OperationMethod<RemoveGroupRequest, RemoveGroupResponse, RemoveGroupError, SlackOpContext>;
2697
+ export type RemoveUserError = SlackOpError;
2698
+ /** Remove a user from a workspace. 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_remove_user_from_workspace` — Removing this user from the workspace failed. - `feature_not_enabled` — The Admin APIs feature is not enabled for this team. - `invalid_auth` — The request could not be authorized - `invalid_permissions` — This method is only accessible by org owners and admins. - `team_not_found` — `team_id` was not found. - `user_already_deleted` — The requested user has already been marked as deleted. - `user_not_found` — The user was not found. See https://docs.slack.dev/reference/methods/admin.users.remove */
2699
+ export declare const removeUser: API.OperationMethod<RemoveUserRequest, RemoveUserResponse, RemoveUserError, SlackOpContext>;
2700
+ export type RemoveWorkflowsCollaboratorError = SlackOpError;
2701
+ /** Remove collaborators from 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_removing_collaborators` — There were one or more errors adding workflow collaborators See https://docs.slack.dev/reference/methods/admin.workflows.collaborators.remove */
2702
+ export declare const removeWorkflowsCollaborator: API.OperationMethod<RemoveWorkflowsCollaboratorRequest, RemoveWorkflowsCollaboratorResponse, RemoveWorkflowsCollaboratorError, SlackOpContext>;
2703
+ export type RenameConversationError = SlackOpError;
2704
+ /** 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. See https://docs.slack.dev/reference/methods/admin.conversations.rename */
2705
+ export declare const renameConversation: API.OperationMethod<RenameConversationRequest, RenameConversationResponse, RenameConversationError, SlackOpContext>;
2706
+ export type RenameEmojiError = SlackOpError;
2707
+ /** 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 */
2708
+ export declare const renameEmoji: API.OperationMethod<RenameEmojiRequest, RenameEmojiResponse, RenameEmojiError, SlackOpContext>;
2709
+ export type ResetBulkError = SlackOpError;
2710
+ /** 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 */
2711
+ export declare const resetBulk: API.OperationMethod<ResetBulkRequest, ResetBulkResponse, ResetBulkError, SlackOpContext>;
2712
+ export type ResetUsersSessionError = SlackOpError;
2713
+ /** Wipes all valid sessions on all devices for a given user 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 - `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 - `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. See https://docs.slack.dev/reference/methods/admin.users.session.reset */
2714
+ export declare const resetUsersSession: API.OperationMethod<ResetUsersSessionRequest, ResetUsersSessionResponse, ResetUsersSessionError, SlackOpContext>;
2715
+ export type SearchConversationError = SlackOpError;
2716
+ /** Search for public or private channels in an Enterprise organization. Required scopes — user: `admin.conversations:read` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `connected_team_passed_in_is_not_top_level_team` — One of the orgs provided in the external connected teams filter is not a top level team. - `external_team_not_connected_to_this_org` — One of the teams provided in the external connected teams filter is not connected to the org. - `feature_not_enabled` — The token provided doesn't have access to this method. - `invalid_auth` — The token provided does not belong to an Enterprise organization, or a specified workspace wasn't part of this Enterprise. - `invalid_cursor` — The provided cursor is not valid, often due to not urlencoding query parameters. - `invalid_search_channel_type` — An invalid `search_channel_types` arg was passed. Make sure there are no spaces between your args and that each is one of the enumerated options listed above. - `invalid_sort` — The provided `sort` argument wasn't valid. - `invalid_sort_dir` — The provided `sort_dir` argument wasn't valid. - `not_allowed` — The authenticated user does not have the permission to call this method. - `not_an_admin` — The token provided is not associated with an Org Admin or Owner. - `not_an_enterprise` — This endpoint can only be called by an Enterprise organization. - `team_not_found` — One of the workspaces provided in the list wasn't found. See https://docs.slack.dev/reference/methods/admin.conversations.search */
2717
+ export declare const searchConversation: API.PaginatedOperationMethod<SearchConversationRequest, SearchConversationResponse, SearchConversationError, SlackOpContext, string>;
2718
+ export type SearchWorkflowError = SlackOpError;
2719
+ /** Search workflows within the team or enterprise Required scopes — user: `admin.workflows:read` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `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. See https://docs.slack.dev/reference/methods/admin.workflows.search */
2720
+ export declare const searchWorkflow: API.PaginatedOperationMethod<SearchWorkflowRequest, SearchWorkflowResponse, SearchWorkflowError, SlackOpContext, unknown>;
2721
+ export type SetAdminError = SlackOpError;
2722
+ /** Set an existing regular user or owner to be a workspace or org admin. 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_admin` — Designating this user as an admin failed. - `failed_to_set_admin_on_workspaces` — Failed to set the user as an admin on all workspaces. - `feature_not_enabled` — The Admin APIs feature is not enabled for this team. - `invalid_permissions` — This method is only accessible by org owners and admins. - `invalid_role_for_user` — The user cannot be made into an admin. - `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 user was not found. See https://docs.slack.dev/reference/methods/admin.users.setAdmin */
2723
+ export declare const setAdmin: API.OperationMethod<SetAdminRequest, SetAdminResponse, SetAdminError, SlackOpContext>;
2724
+ export type SetAppsConfigError = SlackOpError;
2725
+ /** Set the app config for a connector Required scopes — user: `admin.apps:write` 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. - `no_domains_provided` — At least one allowed domain must be specified if populating the argument - `too_many_domains_provided` — Too many domains provided. Please provide 50 or less for each type of domain - `url_restriction_not_supported` — URL restriction is not supported for this app. - `invalid_domains` — At least one URL or email is invalid - `invalid_app` — App is invalid - `invalid_workflow_auth_strategy` — workflow auth strategy is invalid - `restricted_plan_level` — The given parameter is not supported on this team. - `unknown_method` — This method does not exist. See https://docs.slack.dev/reference/methods/admin.apps.config.set */
2726
+ export declare const setAppsConfig: API.OperationMethod<SetAppsConfigRequest, SetAppsConfigResponse, SetAppsConfigError, SlackOpContext>;
2727
+ export type SetAppsMcpServersPermissionsError = SlackOpError;
2728
+ /** 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. - `feature_not_enabled` — The MCP server ACL feature is not enabled for this team. - `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. - `too_many_named_entities` — Too many named entities provided. - `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. See https://docs.slack.dev/reference/methods/admin.apps.mcp.servers.permissions.set */
2729
+ export declare const setAppsMcpServersPermissions: API.OperationMethod<SetAppsMcpServersPermissionsRequest, SetAppsMcpServersPermissionsResponse, SetAppsMcpServersPermissionsError, SlackOpContext>;
2730
+ export type SetAppsPermissionsError = SlackOpError;
2731
+ /** 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. See https://docs.slack.dev/reference/methods/admin.apps.permissions.set */
2732
+ export declare const setAppsPermissions: API.OperationMethod<SetAppsPermissionsRequest, SetAppsPermissionsResponse, SetAppsPermissionsError, SlackOpContext>;
2733
+ export type SetConversationPrefsError = SlackOpError;
2734
+ /** 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 */
2735
+ export declare const setConversationPrefs: API.OperationMethod<SetConversationPrefsRequest, SetConversationPrefsResponse, SetConversationPrefsError, SlackOpContext>;
2736
+ export type SetCustomRetentionError = SlackOpError;
2737
+ /** 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. See https://docs.slack.dev/reference/methods/admin.conversations.setCustomRetention */
2738
+ export declare const setCustomRetention: API.OperationMethod<SetCustomRetentionRequest, SetCustomRetentionResponse, SetCustomRetentionError, SlackOpContext>;
2739
+ export type SetDefaultChannelsError = SlackOpError;
2740
+ /** Set the default channels of a workspace. Required scopes — user: `admin.teams:write` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `failed_to_set_default_channels` — We encountered an error while trying to set the default channel. - `feature_not_enabled` — The Admin APIs feature is not enabled for this team. - `invalid_auth` — The given token is not authorized for the requested `team_id`. - `not_an_admin` — This method is only accessible by org owners and admins. - `one_or_more_invalid_channels` — One or more of the passed channel IDs was invalid. - `restricted_action` — The actor does not have admin permissions for the team in context - `team_not_found` — `team_id` was not found. See https://docs.slack.dev/reference/methods/admin.teams.settings.setDefaultChannels */
2741
+ export declare const setDefaultChannels: API.OperationMethod<SetDefaultChannelsRequest, SetDefaultChannelsResponse, SetDefaultChannelsError, SlackOpContext>;
2742
+ export type SetDescriptionError = SlackOpError;
2743
+ /** Set the description of a given workspace. Required scopes — user: `admin.teams:write` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `failed_to_set_description` — There was an error setting the description. - `feature_not_enabled` — The Admin APIs feature is not enabled for this team. - `team_not_found` — The requested `team_id` can't be found. See https://docs.slack.dev/reference/methods/admin.teams.settings.setDescription */
2744
+ export declare const setDescription: API.OperationMethod<SetDescriptionRequest, SetDescriptionResponse, SetDescriptionError, SlackOpContext>;
2745
+ export type SetDiscoverabilityError = SlackOpError;
2746
+ /** An API method that allows admins to set the discoverability of a given workspace Required scopes — user: `admin.teams:write` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `discoverability_setting_invalid` — The discovery setting must be set to one of `open`, `invite_only`, `closed`, or `unlisted`. - `failed_to_set_discoverability` — There was an error setting the discoverability of this workspace. - `feature_not_enabled` — The Admin APIs feature is not enabled for this team. - `team_not_found` — The `team_id` was not found. See https://docs.slack.dev/reference/methods/admin.teams.settings.setDiscoverability */
2747
+ export declare const setDiscoverability: API.OperationMethod<SetDiscoverabilityRequest, SetDiscoverabilityResponse, SetDiscoverabilityError, SlackOpContext>;
2748
+ export type SetExpirationError = SlackOpError;
2749
+ /** Set an expiration for a guest user Required scopes — user: `admin.users:write` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `failed_looking_up_user` — We couldn't find the requested user. - `failed_to_set_expiration` — The expiration could not be set for the user. - `failed_to_validate_caller` — The token calling this method doesn't have permission to invite a user. - `failed_to_validate_expiration` — `expiration_ts` was invalid. - `failed_to_validate_team` — The team calling this method was invalid. - `feature_not_enabled` — The Admin APIs feature is not enabled for this team. - `invalid_arguments` — The passed arguments were invalid. - `invalid_auth` — This action could not be authorized. - `team_id_required_for_enterprise` — Team ID required. - `team_not_found` — `team_id` was not found. - `user_is_already_deleted` — The user has already been deleted and disabled. - `user_is_deactivated` — User has been deactivated. - `user_is_not_a_guest` — The passed user_id does not belong to a guest user. - `user_not_found` — The user could not be found. See https://docs.slack.dev/reference/methods/admin.users.setExpiration */
2750
+ export declare const setExpiration: API.OperationMethod<SetExpirationRequest, SetExpirationResponse, SetExpirationError, SlackOpContext>;
2751
+ export type SetFunctionsPermissionsError = SlackOpError;
2752
+ /** Set the visibility of a Slack function and define the users or workspaces if it is set to 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. - `function_not_found` — The referenced function does not exist. - `invalid_visibility` — Invalid value for visibility. - `invalid_permission_type` — Invalid value for permission type. - `invalid_permission` — Invalid value for permission - `unknown_method` — This method does not exist. - `invalid_setting` — The `app_collaborators` setting is not allowed for apps not owned by your team/org. - `restricted_action` — This actor does not have access to the permissions on this resource. See https://docs.slack.dev/reference/methods/admin.functions.permissions.set */
2753
+ export declare const setFunctionsPermissions: API.OperationMethod<SetFunctionsPermissionsRequest, SetFunctionsPermissionsResponse, SetFunctionsPermissionsError, SlackOpContext>;
2754
+ export type SetIconError = SlackOpError;
2755
+ /** Sets the icon of a workspace. Required scopes — user: `admin.teams:write` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `failed_to_set_icon` — Setting the url in the database failed. This may be transient, please try again soon. - `feature_not_enabled` — The Admin APIs feature is not enabled for this team. - `invalid_auth` — The given token is not authorized for the requested `team_id`. - `invalid_url` — Invalid url. - `not_an_admin` — This method is only accessible by org owners and admins. - `team_not_found` — `team_id` was not found. See https://docs.slack.dev/reference/methods/admin.teams.settings.setIcon */
2756
+ export declare const setIcon: API.OperationMethod<SetIconRequest, SetIconResponse, SetIconError, SlackOpContext>;
2757
+ export type SetNameError = SlackOpError;
2758
+ /** 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 */
2759
+ export declare const setName: API.OperationMethod<SetNameRequest, SetNameResponse, SetNameError, SlackOpContext>;
2760
+ export type SetOwnerError = SlackOpError;
2761
+ /** 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_an_owner` — This method can only be accessed by org owners. The app's installing user must retain org owner status for this method to function. - `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 */
2762
+ export declare const setOwner: API.OperationMethod<SetOwnerRequest, SetOwnerResponse, SetOwnerError, SlackOpContext>;
2763
+ export type SetRegularError = SlackOpError;
2764
+ /** 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. See https://docs.slack.dev/reference/methods/admin.users.setRegular */
2765
+ export declare const setRegular: API.OperationMethod<SetRegularRequest, SetRegularResponse, SetRegularError, SlackOpContext>;
2766
+ export type SetSettingsError = SlackOpError;
2767
+ /** 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 */
2768
+ export declare const setSettings: API.OperationMethod<SetSettingsRequest, SetSettingsResponse, SetSettingsError, SlackOpContext>;
2769
+ export type SetTeamsError = SlackOpError;
2770
+ /** Set the workspaces in an Enterprise org that connect 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): - `cannot_add_legacy_disconnected_channel_to_workspaces` — Cannot add legacy disconnected channel to workspaces - `cannot_move_local_channel` — This API cannot be used to move a local channel from one workspace to another. - `channel_cannot_be_unshared` — Channel cannot be unshared from this workspace. - `channel_not_found` — The channel wasn't found or isn't shared to this workspace. - `channel_type_not_supported` — The requested `channel_id` is not a supported type of channel. - `could_not_set_teams_for_channel` — The requested `channel_id` has not been shared with the target workspace. - `default_org_wide_channel` — Default org wide channel cannot be unshared from a workspace. - `externally_shared_or_disconnected_channel` — The channel is or was externally shared. - `invalid_channel_id` — `channel_id` was invalid. - `invalid_target_team` — Target workspace is invalid. - `managed_channel_not_supported` — Cannot unshare a managed channel - `name_taken` — The proposed new name for the channel is already in use within your organization. - `not_allowed_for_grid_workspace` — Slack Connect is not allowed for this Enterprise org workspace - `not_enabled` — The API endpoint is not enabled for your team. - `restricted_action` — The caller of this API is not allowed to perform this operation. - `too_many_target_teams` — Too many `target_team_ids` were provided. - `unsupported_arguments` — The provided method arguments are not supported. See https://docs.slack.dev/reference/methods/admin.conversations.setTeams */
2771
+ export declare const setTeams: API.OperationMethod<SetTeamsRequest, SetTeamsResponse, SetTeamsError, SlackOpContext>;
2772
+ export type SetWorkflowsTriggersTypesPermissionsError = SlackOpError;
2773
+ /** Set the permissions for using a trigger type Required scopes — user: `client` Rate limit tier: 3 Method-specific errors (the `error` slug on the SlackError): - `invalid_named_entities` — Named entities visibility requires a valid set of named entities to be specified - `invalid_permission_type` — This permission type is invalid. - `invalid_permission_set` — This permission set is invalid. - `required_visibility` — Visibility is required on this resource. - `restricted_action` — This actor does not have access to the permissions on this resource. - `trigger_type_id_not_found` — The referenced trigger type ID does not exist. - `visibility_is_not_named_entities` — The visibility should be named entities when the user_ids, team_ids, or org_ids args are set See https://docs.slack.dev/reference/methods/admin.workflows.triggers.types.permissions.set */
2774
+ export declare const setWorkflowsTriggersTypesPermissions: API.OperationMethod<SetWorkflowsTriggersTypesPermissionsRequest, SetWorkflowsTriggersTypesPermissionsResponse, SetWorkflowsTriggersTypesPermissionsError, SlackOpContext>;
2775
+ export type TeamsSettingsInfoError = SlackOpError;
2776
+ /** Fetch information about settings in a workspace Required scopes — user: `admin.teams:read` Rate limit tier: 3 Method-specific errors (the `error` slug on the SlackError): - `failed_to_fetch_info` — There was an error fetching info for this workspace. - `feature_not_enabled` — The Admin APIs feature is not enabled for this team. - `team_not_found` — The `team_id` was not found. See https://docs.slack.dev/reference/methods/admin.teams.settings.info */
2777
+ export declare const teamsSettingsInfo: API.OperationMethod<TeamsSettingsInfoRequest, TeamsSettingsInfoResponse, TeamsSettingsInfoError, SlackOpContext>;
2778
+ export type UnarchiveConversationError = SlackOpError;
2779
+ /** Unarchive 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_archived` — The passed channel is not currently archived. - `channel_not_found` — The value passed for `channel_id` was invalid. - `channel_type_not_supported` — The value passed for `channel` was a DM, MPDM, or the 'general' channel - `could_not_unarchive_channel` — The channel could not be unarchived. - `default_org_wide_channel` — You can't unarchive a default org-wide channel. - `feature_not_enabled` — The token provided doesn't have access to this method. - `missing_scope` — The token provided doesn't have the required scopes. - `restricted_action` — A workspace preference prevents the authenticated user from unarchiving. See https://docs.slack.dev/reference/methods/admin.conversations.unarchive */
2780
+ export declare const unarchiveConversation: API.OperationMethod<UnarchiveConversationRequest, UnarchiveConversationResponse, UnarchiveConversationError, SlackOpContext>;
2781
+ export type UninstallAppError = SlackOpError;
2782
+ /** Uninstall an app from one or many workspaces, or an entire enterprise organization. Required scopes — user: `admin.apps:write` Rate limit tier: 1 Method-specific errors (the `error` slug on the SlackError): - `app_not_found` — The provided `app_id` was not found. - `can_not_uninstall` — This application can not be uninstalled via the API. - `enterprise_not_found` — The provided `enterprise_id` was not found. - `feature_not_enabled` — The Admin APIs feature is not enabled for this team. - `must_revoke_access` — Organization-deployed apps cannot be uninstalled from specific workspaces using this API. - `permission_denied` — You do not have permission to uninstall applications from the reqeusted org or workspaces. - `specify_enterprise_or_teams` — Provide exactly one of `enterprise_id` or `team_ids`. - `teams_not_found` — One or more of the provided `team_ids` were not found. - `too_many_teams` — Too many IDs are present in `team_ids`. - `restricted_action` — the user is not authorized to perform this action See https://docs.slack.dev/reference/methods/admin.apps.uninstall */
2783
+ export declare const uninstallApp: API.OperationMethod<UninstallAppRequest, UninstallAppResponse, UninstallAppError, SlackOpContext>;
2784
+ export type UnlinkObjectsError = SlackOpError;
2785
+ /** Unlink a Salesforce record from a channel Required scopes — user: `admin.conversations:manage_objects` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `channel_not_found` — Value passed for `channel` is invalid. - `restricted_action` — User does not have access to perform this action. - `invalid_name_specials` — Value passed for `name` contained unallowed special characters or upper case characters. - `name_taken` — A channel cannot be created with the given name. See https://docs.slack.dev/reference/methods/admin.conversations.unlinkObjects */
2786
+ export declare const unlinkObjects: API.OperationMethod<UnlinkObjectsRequest, UnlinkObjectsResponse, UnlinkObjectsError, SlackOpContext>;
2787
+ export type UnpublishWorkflowError = SlackOpError;
2788
+ /** Unpublish 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_unpublishing_workflows` — There were one or more errors unpublishing workflows See https://docs.slack.dev/reference/methods/admin.workflows.unpublish */
2789
+ export declare const unpublishWorkflow: API.OperationMethod<UnpublishWorkflowRequest, UnpublishWorkflowResponse, UnpublishWorkflowError, SlackOpContext>;
2790
+ export type UpdateBarrierError = SlackOpError;
2791
+ /** 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 */
2792
+ export declare const updateBarrier: API.OperationMethod<UpdateBarrierRequest, UpdateBarrierResponse, UpdateBarrierError, SlackOpContext>;
2793
+ export type UpdateItemError = SlackOpError;
2794
+ /** 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 */
2795
+ export declare const updateItem: API.OperationMethod<UpdateItemRequest, UpdateItemResponse, UpdateItemError, SlackOpContext>;
2796
+ //# sourceMappingURL=admin.d.ts.map