@distilled.cloud/slack 1.0.0-rc.15 → 1.0.0-rc.16

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