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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (212) hide show
  1. package/LICENSE +201 -0
  2. package/lib/credentials.d.ts +27 -0
  3. package/lib/credentials.d.ts.map +1 -0
  4. package/lib/credentials.js +53 -0
  5. package/lib/credentials.js.map +1 -0
  6. package/lib/errors.d.ts +83 -0
  7. package/lib/errors.d.ts.map +1 -0
  8. package/lib/errors.js +59 -0
  9. package/lib/errors.js.map +1 -0
  10. package/lib/index.d.ts +17 -0
  11. package/lib/index.d.ts.map +1 -0
  12. package/lib/index.js +17 -0
  13. package/lib/index.js.map +1 -0
  14. package/lib/pagination.d.ts +31 -0
  15. package/lib/pagination.d.ts.map +1 -0
  16. package/lib/pagination.js +31 -0
  17. package/lib/pagination.js.map +1 -0
  18. package/lib/protocol.d.ts +18 -0
  19. package/lib/protocol.d.ts.map +1 -0
  20. package/lib/protocol.js +230 -0
  21. package/lib/protocol.js.map +1 -0
  22. package/lib/retry.d.ts +52 -0
  23. package/lib/retry.d.ts.map +1 -0
  24. package/lib/retry.js +45 -0
  25. package/lib/retry.js.map +1 -0
  26. package/lib/services/admin.d.ts +2796 -0
  27. package/lib/services/admin.d.ts.map +1 -0
  28. package/lib/services/admin.js +3217 -0
  29. package/lib/services/admin.js.map +1 -0
  30. package/lib/services/api.d.ts +23 -0
  31. package/lib/services/api.d.ts.map +1 -0
  32. package/lib/services/api.js +26 -0
  33. package/lib/services/api.js.map +1 -0
  34. package/lib/services/apps.d.ts +568 -0
  35. package/lib/services/apps.d.ts.map +1 -0
  36. package/lib/services/apps.js +584 -0
  37. package/lib/services/apps.js.map +1 -0
  38. package/lib/services/assistant.d.ts +290 -0
  39. package/lib/services/assistant.d.ts.map +1 -0
  40. package/lib/services/assistant.js +232 -0
  41. package/lib/services/assistant.js.map +1 -0
  42. package/lib/services/auth.d.ts +90 -0
  43. package/lib/services/auth.d.ts.map +1 -0
  44. package/lib/services/auth.js +114 -0
  45. package/lib/services/auth.js.map +1 -0
  46. package/lib/services/blocks.d.ts +31 -0
  47. package/lib/services/blocks.d.ts.map +1 -0
  48. package/lib/services/blocks.js +31 -0
  49. package/lib/services/blocks.js.map +1 -0
  50. package/lib/services/bookmarks.d.ts +91 -0
  51. package/lib/services/bookmarks.d.ts.map +1 -0
  52. package/lib/services/bookmarks.js +98 -0
  53. package/lib/services/bookmarks.js.map +1 -0
  54. package/lib/services/bots.d.ts +60 -0
  55. package/lib/services/bots.d.ts.map +1 -0
  56. package/lib/services/bots.js +68 -0
  57. package/lib/services/bots.js.map +1 -0
  58. package/lib/services/calls.d.ts +124 -0
  59. package/lib/services/calls.d.ts.map +1 -0
  60. package/lib/services/calls.js +136 -0
  61. package/lib/services/calls.js.map +1 -0
  62. package/lib/services/canvases.d.ts +152 -0
  63. package/lib/services/canvases.d.ts.map +1 -0
  64. package/lib/services/canvases.js +152 -0
  65. package/lib/services/canvases.js.map +1 -0
  66. package/lib/services/chat.d.ts +525 -0
  67. package/lib/services/chat.d.ts.map +1 -0
  68. package/lib/services/chat.js +436 -0
  69. package/lib/services/chat.js.map +1 -0
  70. package/lib/services/conversations.d.ts +642 -0
  71. package/lib/services/conversations.d.ts.map +1 -0
  72. package/lib/services/conversations.js +769 -0
  73. package/lib/services/conversations.js.map +1 -0
  74. package/lib/services/dialog.d.ts +20 -0
  75. package/lib/services/dialog.d.ts.map +1 -0
  76. package/lib/services/dialog.js +27 -0
  77. package/lib/services/dialog.js.map +1 -0
  78. package/lib/services/dnd.d.ts +94 -0
  79. package/lib/services/dnd.d.ts.map +1 -0
  80. package/lib/services/dnd.js +111 -0
  81. package/lib/services/dnd.js.map +1 -0
  82. package/lib/services/emoji.d.ts +35 -0
  83. package/lib/services/emoji.d.ts.map +1 -0
  84. package/lib/services/emoji.js +40 -0
  85. package/lib/services/emoji.js.map +1 -0
  86. package/lib/services/entity.d.ts +93 -0
  87. package/lib/services/entity.d.ts.map +1 -0
  88. package/lib/services/entity.js +89 -0
  89. package/lib/services/entity.js.map +1 -0
  90. package/lib/services/files.d.ts +473 -0
  91. package/lib/services/files.d.ts.map +1 -0
  92. package/lib/services/files.js +510 -0
  93. package/lib/services/files.js.map +1 -0
  94. package/lib/services/functions.d.ts +235 -0
  95. package/lib/services/functions.d.ts.map +1 -0
  96. package/lib/services/functions.js +256 -0
  97. package/lib/services/functions.js.map +1 -0
  98. package/lib/services/index.d.ts +35 -0
  99. package/lib/services/index.d.ts.map +1 -0
  100. package/lib/services/index.js +36 -0
  101. package/lib/services/index.js.map +1 -0
  102. package/lib/services/lists.d.ts +300 -0
  103. package/lib/services/lists.d.ts.map +1 -0
  104. package/lib/services/lists.js +366 -0
  105. package/lib/services/lists.js.map +1 -0
  106. package/lib/services/migration.d.ts +34 -0
  107. package/lib/services/migration.d.ts.map +1 -0
  108. package/lib/services/migration.js +36 -0
  109. package/lib/services/migration.js.map +1 -0
  110. package/lib/services/oauth.d.ts +307 -0
  111. package/lib/services/oauth.d.ts.map +1 -0
  112. package/lib/services/oauth.js +278 -0
  113. package/lib/services/oauth.js.map +1 -0
  114. package/lib/services/openid.d.ts +86 -0
  115. package/lib/services/openid.d.ts.map +1 -0
  116. package/lib/services/openid.js +93 -0
  117. package/lib/services/openid.js.map +1 -0
  118. package/lib/services/pins.d.ts +64 -0
  119. package/lib/services/pins.d.ts.map +1 -0
  120. package/lib/services/pins.js +75 -0
  121. package/lib/services/pins.js.map +1 -0
  122. package/lib/services/reactions.d.ts +108 -0
  123. package/lib/services/reactions.d.ts.map +1 -0
  124. package/lib/services/reactions.js +119 -0
  125. package/lib/services/reactions.js.map +1 -0
  126. package/lib/services/reminders.d.ts +89 -0
  127. package/lib/services/reminders.d.ts.map +1 -0
  128. package/lib/services/reminders.js +109 -0
  129. package/lib/services/reminders.js.map +1 -0
  130. package/lib/services/rtm.d.ts +68 -0
  131. package/lib/services/rtm.d.ts.map +1 -0
  132. package/lib/services/rtm.js +74 -0
  133. package/lib/services/rtm.js.map +1 -0
  134. package/lib/services/search.d.ts +239 -0
  135. package/lib/services/search.d.ts.map +1 -0
  136. package/lib/services/search.js +190 -0
  137. package/lib/services/search.js.map +1 -0
  138. package/lib/services/stars.d.ts +126 -0
  139. package/lib/services/stars.d.ts.map +1 -0
  140. package/lib/services/stars.js +145 -0
  141. package/lib/services/stars.js.map +1 -0
  142. package/lib/services/team.d.ts +309 -0
  143. package/lib/services/team.d.ts.map +1 -0
  144. package/lib/services/team.js +333 -0
  145. package/lib/services/team.js.map +1 -0
  146. package/lib/services/tooling.d.ts +31 -0
  147. package/lib/services/tooling.d.ts.map +1 -0
  148. package/lib/services/tooling.js +38 -0
  149. package/lib/services/tooling.js.map +1 -0
  150. package/lib/services/usergroups.d.ts +183 -0
  151. package/lib/services/usergroups.d.ts.map +1 -0
  152. package/lib/services/usergroups.js +180 -0
  153. package/lib/services/usergroups.js.map +1 -0
  154. package/lib/services/users.d.ts +246 -0
  155. package/lib/services/users.d.ts.map +1 -0
  156. package/lib/services/users.js +309 -0
  157. package/lib/services/users.js.map +1 -0
  158. package/lib/services/views.d.ts +84 -0
  159. package/lib/services/views.d.ts.map +1 -0
  160. package/lib/services/views.js +95 -0
  161. package/lib/services/views.js.map +1 -0
  162. package/lib/services/workflows.d.ts +231 -0
  163. package/lib/services/workflows.d.ts.map +1 -0
  164. package/lib/services/workflows.js +238 -0
  165. package/lib/services/workflows.js.map +1 -0
  166. package/lib/traits.d.ts +11 -0
  167. package/lib/traits.d.ts.map +1 -0
  168. package/lib/traits.js +12 -0
  169. package/lib/traits.js.map +1 -0
  170. package/package.json +82 -4
  171. package/src/credentials.ts +86 -0
  172. package/src/errors.ts +101 -0
  173. package/src/index.ts +20 -0
  174. package/src/pagination.ts +35 -0
  175. package/src/protocol.ts +326 -0
  176. package/src/retry.ts +76 -0
  177. package/src/services/admin.ts +7722 -0
  178. package/src/services/api.ts +58 -0
  179. package/src/services/apps.ts +1441 -0
  180. package/src/services/assistant.ts +639 -0
  181. package/src/services/auth.ts +241 -0
  182. package/src/services/blocks.ts +80 -0
  183. package/src/services/bookmarks.ts +223 -0
  184. package/src/services/bots.ts +144 -0
  185. package/src/services/calls.ts +318 -0
  186. package/src/services/canvases.ts +392 -0
  187. package/src/services/chat.ts +1191 -0
  188. package/src/services/conversations.ts +1754 -0
  189. package/src/services/dialog.ts +55 -0
  190. package/src/services/dnd.ts +246 -0
  191. package/src/services/emoji.ts +91 -0
  192. package/src/services/entity.ts +225 -0
  193. package/src/services/files.ts +1192 -0
  194. package/src/services/functions.ts +642 -0
  195. package/src/services/index.ts +35 -0
  196. package/src/services/lists.ts +832 -0
  197. package/src/services/migration.ts +85 -0
  198. package/src/services/oauth.ts +658 -0
  199. package/src/services/openid.ts +243 -0
  200. package/src/services/pins.ts +167 -0
  201. package/src/services/reactions.ts +272 -0
  202. package/src/services/reminders.ts +240 -0
  203. package/src/services/rtm.ts +162 -0
  204. package/src/services/search.ts +507 -0
  205. package/src/services/stars.ts +323 -0
  206. package/src/services/team.ts +834 -0
  207. package/src/services/tooling.ts +78 -0
  208. package/src/services/usergroups.ts +441 -0
  209. package/src/services/users.ts +685 -0
  210. package/src/services/views.ts +212 -0
  211. package/src/services/workflows.ts +605 -0
  212. package/src/traits.ts +45 -0
@@ -0,0 +1,3217 @@
1
+ // AUTO-GENERATED by scripts/generate.ts from .generated-specs (docs.slack.dev JSON twins). Do not edit.
2
+ import * as S from "@distilled.cloud/core/schema";
3
+ import * as API from "@distilled.cloud/core/api";
4
+ import * as T from "../traits.js";
5
+ import { SlackProtocol, } from "../protocol.js";
6
+ import { slackPaginate } from "../pagination.js";
7
+ import { SlackError, SlackRateLimited } from "../errors.js";
8
+ import * as Retry from "../retry.js";
9
+ export const AddAliasRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
10
+ name: S.String.pipe(T.Query()),
11
+ alias_for: S.String.pipe(T.Query()),
12
+ }).pipe(T.Http({ method: "GET", uri: "/admin.emoji.addAlias", code: 200 }))).annotate({
13
+ identifier: "AddAliasRequest",
14
+ });
15
+ export const AddAliasResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
16
+ ok: S.Boolean,
17
+ })).annotate({
18
+ identifier: "AddAliasResponse",
19
+ });
20
+ export const AddAppsPermissionsRequestUserIdsList = /*@__PURE__*/ S.Array(S.String);
21
+ export const AddAppsPermissionsRequestUsergroupIdsList = /*@__PURE__*/ S.Array(S.String);
22
+ export const AddAppsPermissionsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
23
+ app_id: S.String,
24
+ user_ids: S.optional(AddAppsPermissionsRequestUserIdsList),
25
+ usergroup_ids: S.optional(AddAppsPermissionsRequestUsergroupIdsList),
26
+ }).pipe(T.Http({ method: "POST", uri: "/admin.apps.permissions.add", code: 200 }))).annotate({
27
+ identifier: "AddAppsPermissionsRequest",
28
+ });
29
+ export const AddAppsPermissionsResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
30
+ ok: S.Boolean,
31
+ })).annotate({
32
+ identifier: "AddAppsPermissionsResponse",
33
+ });
34
+ export const AddAssignmentsRequestEntityIdsList = /*@__PURE__*/ S.Array(S.String);
35
+ export const AddAssignmentsRequestUserIdsList = /*@__PURE__*/ S.Array(S.String);
36
+ export const AddAssignmentsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
37
+ role_id: S.String,
38
+ entity_ids: AddAssignmentsRequestEntityIdsList,
39
+ user_ids: AddAssignmentsRequestUserIdsList,
40
+ }).pipe(T.Http({ method: "POST", uri: "/admin.roles.addAssignments", code: 200 }))).annotate({
41
+ identifier: "AddAssignmentsRequest",
42
+ });
43
+ export const AddAssignmentsResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
44
+ ok: S.Boolean,
45
+ error: S.optional(S.String),
46
+ })).annotate({
47
+ identifier: "AddAssignmentsResponse",
48
+ });
49
+ export const AddChannelsRequestChannelIdsList = /*@__PURE__*/ S.Array(S.String);
50
+ export const AddChannelsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
51
+ usergroup_id: S.String,
52
+ team_id: S.optional(S.String),
53
+ channel_ids: AddChannelsRequestChannelIdsList,
54
+ }).pipe(T.Http({ method: "POST", uri: "/admin.usergroups.addChannels", code: 200 }))).annotate({
55
+ identifier: "AddChannelsRequest",
56
+ });
57
+ export const AddChannelsResponseInvalidChannelsList = /*@__PURE__*/ S.Array(S.String);
58
+ export const AddChannelsResponseChannelLimitUserIdsList = /*@__PURE__*/ S.Array(S.String);
59
+ export const AddChannelsResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
60
+ ok: S.Boolean,
61
+ error: S.optional(S.String),
62
+ invalid_channels: S.optional(AddChannelsResponseInvalidChannelsList),
63
+ channel_limit_user_ids: S.optional(AddChannelsResponseChannelLimitUserIdsList),
64
+ })).annotate({
65
+ identifier: "AddChannelsResponse",
66
+ });
67
+ export const AddEmojiRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
68
+ name: S.String.pipe(T.Query()),
69
+ url: S.optional(S.String.pipe(T.Query())),
70
+ }).pipe(T.Http({ method: "GET", uri: "/admin.emoji.add", code: 200 }))).annotate({
71
+ identifier: "AddEmojiRequest",
72
+ });
73
+ export const AddEmojiResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
74
+ ok: S.Boolean,
75
+ })).annotate({
76
+ identifier: "AddEmojiResponse",
77
+ });
78
+ export const AddGroupRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
79
+ team_id: S.optional(S.String.pipe(T.Query())),
80
+ group_id: S.String.pipe(T.Query()),
81
+ channel_id: S.String.pipe(T.Query()),
82
+ }).pipe(T.Http({
83
+ method: "GET",
84
+ uri: "/admin.conversations.restrictAccess.addGroup",
85
+ code: 200,
86
+ }))).annotate({
87
+ identifier: "AddGroupRequest",
88
+ });
89
+ export const AddGroupResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
90
+ ok: S.Boolean,
91
+ })).annotate({
92
+ identifier: "AddGroupResponse",
93
+ });
94
+ export const AddTeamsRequestTeamIdsList = /*@__PURE__*/ S.Array(S.String);
95
+ export const AddTeamsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
96
+ usergroup_id: S.String,
97
+ team_ids: AddTeamsRequestTeamIdsList,
98
+ auto_provision: S.optional(S.Boolean),
99
+ }).pipe(T.Http({ method: "POST", uri: "/admin.usergroups.addTeams", code: 200 }))).annotate({
100
+ identifier: "AddTeamsRequest",
101
+ });
102
+ export const AddTeamsResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
103
+ ok: S.Boolean,
104
+ })).annotate({
105
+ identifier: "AddTeamsResponse",
106
+ });
107
+ export const AddWorkflowsCollaboratorRequestWorkflowIdsList =
108
+ /*@__PURE__*/ S.Array(S.String);
109
+ export const AddWorkflowsCollaboratorRequestCollaboratorIdsList =
110
+ /*@__PURE__*/ S.Array(S.String);
111
+ export const AddWorkflowsCollaboratorRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
112
+ workflow_ids: AddWorkflowsCollaboratorRequestWorkflowIdsList,
113
+ collaborator_ids: AddWorkflowsCollaboratorRequestCollaboratorIdsList,
114
+ }).pipe(T.Http({
115
+ method: "POST",
116
+ uri: "/admin.workflows.collaborators.add",
117
+ code: 200,
118
+ }))).annotate({
119
+ identifier: "AddWorkflowsCollaboratorRequest",
120
+ });
121
+ export const AddWorkflowsCollaboratorResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
122
+ ok: S.Boolean,
123
+ })).annotate({
124
+ identifier: "AddWorkflowsCollaboratorResponse",
125
+ });
126
+ export const AnalyticsMessagesActivityRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
127
+ channel: S.String.pipe(T.Query()),
128
+ oldest_ts: S.optional(S.String.pipe(T.Query())),
129
+ latest_ts: S.optional(S.String.pipe(T.Query())),
130
+ cursor: S.optional(S.String.pipe(T.Query())),
131
+ limit: S.optional(S.Number.pipe(T.Query())),
132
+ }).pipe(T.Http({
133
+ method: "GET",
134
+ uri: "/admin.analytics.messages.activity",
135
+ code: 200,
136
+ }))).annotate({
137
+ identifier: "AnalyticsMessagesActivityRequest",
138
+ });
139
+ export const AnalyticsMessagesActivityResponseResponseMetadata =
140
+ /*@__PURE__*/ S.suspend(() => S.Struct({
141
+ next_cursor: S.optional(S.String),
142
+ })).annotate({
143
+ identifier: "AnalyticsMessagesActivityResponseResponseMetadata",
144
+ });
145
+ export const AnalyticsMessagesActivityResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
146
+ ok: S.Boolean,
147
+ response_metadata: S.optional(AnalyticsMessagesActivityResponseResponseMetadata),
148
+ message_activities: S.Unknown,
149
+ })).annotate({
150
+ identifier: "AnalyticsMessagesActivityResponse",
151
+ });
152
+ export const AnalyticsMessagesMetadataRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
153
+ channel: S.String.pipe(T.Query()),
154
+ oldest_ts: S.optional(S.String.pipe(T.Query())),
155
+ latest_ts: S.optional(S.String.pipe(T.Query())),
156
+ cursor: S.optional(S.String.pipe(T.Query())),
157
+ }).pipe(T.Http({
158
+ method: "GET",
159
+ uri: "/admin.analytics.messages.metadata",
160
+ code: 200,
161
+ }))).annotate({
162
+ identifier: "AnalyticsMessagesMetadataRequest",
163
+ });
164
+ export const AnalyticsMessagesMetadataResponseResponseMetadata = AnalyticsMessagesActivityResponseResponseMetadata;
165
+ export const AnalyticsMessagesMetadataResponseMessagesItemReactionsItem =
166
+ /*@__PURE__*/ S.suspend(() => S.Struct({
167
+ name: S.String,
168
+ count: S.Number,
169
+ })).annotate({
170
+ identifier: "AnalyticsMessagesMetadataResponseMessagesItemReactionsItem",
171
+ });
172
+ export const AnalyticsMessagesMetadataResponseMessagesItemReactionsList =
173
+ /*@__PURE__*/ S.Array(AnalyticsMessagesMetadataResponseMessagesItemReactionsItem);
174
+ export const AnalyticsMessagesMetadataResponseMessagesItemFilesItem =
175
+ /*@__PURE__*/ S.suspend(() => S.Struct({
176
+ id: S.String,
177
+ created: S.Number,
178
+ timestamp: S.Number,
179
+ mimetype: S.optional(S.String),
180
+ filetype: S.optional(S.String),
181
+ subtype: S.optional(S.String),
182
+ pretty_type: S.optional(S.String),
183
+ is_external: S.optional(S.Boolean),
184
+ external_type: S.optional(S.String),
185
+ is_public: S.optional(S.Boolean),
186
+ public_url_shared: S.optional(S.Boolean),
187
+ display_as_bot: S.optional(S.Boolean),
188
+ duration_ms: S.optional(S.Number),
189
+ media_display_type: S.optional(S.String),
190
+ })).annotate({
191
+ identifier: "AnalyticsMessagesMetadataResponseMessagesItemFilesItem",
192
+ });
193
+ export const AnalyticsMessagesMetadataResponseMessagesItemFilesList =
194
+ /*@__PURE__*/ S.Array(AnalyticsMessagesMetadataResponseMessagesItemFilesItem);
195
+ export const AnalyticsMessagesMetadataResponseMessagesItem =
196
+ /*@__PURE__*/ S.suspend(() => S.Struct({
197
+ user_id: S.optional(S.String),
198
+ type: S.String,
199
+ subtype: S.optional(S.String),
200
+ ts: S.String,
201
+ thread_ts: S.optional(S.String),
202
+ display_as_bot: S.optional(S.Boolean),
203
+ client_msg_id: S.optional(S.String),
204
+ text_character_count: S.optional(S.Number),
205
+ reactions: S.optional(AnalyticsMessagesMetadataResponseMessagesItemReactionsList),
206
+ files: S.optional(AnalyticsMessagesMetadataResponseMessagesItemFilesList),
207
+ })).annotate({
208
+ identifier: "AnalyticsMessagesMetadataResponseMessagesItem",
209
+ });
210
+ export const AnalyticsMessagesMetadataResponseMessagesList =
211
+ /*@__PURE__*/ S.Array(AnalyticsMessagesMetadataResponseMessagesItem);
212
+ export const AnalyticsMessagesMetadataResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
213
+ ok: S.Boolean,
214
+ response_metadata: S.optional(AnalyticsMessagesActivityResponseResponseMetadata),
215
+ messages: AnalyticsMessagesMetadataResponseMessagesList,
216
+ })).annotate({
217
+ identifier: "AnalyticsMessagesMetadataResponse",
218
+ });
219
+ export const ApproveAppRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
220
+ allow_child_auto_install: S.optional(S.Boolean),
221
+ app_id: S.optional(S.String),
222
+ request_id: S.optional(S.String),
223
+ team_id: S.optional(S.String),
224
+ enterprise_id: S.optional(S.String),
225
+ user_scopes: S.optional(S.String),
226
+ bot_scopes: S.optional(S.String),
227
+ }).pipe(T.Http({ method: "POST", uri: "/admin.apps.approve", code: 200 }))).annotate({
228
+ identifier: "ApproveAppRequest",
229
+ });
230
+ export const ApproveAppResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
231
+ ok: S.Boolean,
232
+ })).annotate({
233
+ identifier: "ApproveAppResponse",
234
+ });
235
+ export const ApproveInviteRequestRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
236
+ team_id: S.optional(S.String),
237
+ invite_request_id: S.String,
238
+ }).pipe(T.Http({ method: "POST", uri: "/admin.inviteRequests.approve", code: 200 }))).annotate({
239
+ identifier: "ApproveInviteRequestRequest",
240
+ });
241
+ export const ApproveInviteRequestResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
242
+ ok: S.Boolean,
243
+ })).annotate({
244
+ identifier: "ApproveInviteRequestResponse",
245
+ });
246
+ export const AppsRestrictRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
247
+ app_id: S.optional(S.String),
248
+ request_id: S.optional(S.String),
249
+ team_id: S.optional(S.String),
250
+ enterprise_id: S.optional(S.String),
251
+ }).pipe(T.Http({ method: "POST", uri: "/admin.apps.restrict", code: 200 }))).annotate({
252
+ identifier: "AppsRestrictRequest",
253
+ });
254
+ export const AppsRestrictResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
255
+ ok: S.Boolean,
256
+ })).annotate({
257
+ identifier: "AppsRestrictResponse",
258
+ });
259
+ export const ArchiveConversationRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
260
+ channel_id: S.String,
261
+ }).pipe(T.Http({ method: "POST", uri: "/admin.conversations.archive", code: 200 }))).annotate({
262
+ identifier: "ArchiveConversationRequest",
263
+ });
264
+ export const ArchiveConversationResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
265
+ ok: S.Boolean,
266
+ })).annotate({
267
+ identifier: "ArchiveConversationResponse",
268
+ });
269
+ export const AssignEntitiesRequestEntityIdsList = /*@__PURE__*/ S.Array(S.String);
270
+ export const AssignEntitiesRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
271
+ policy_name: S.String,
272
+ entity_type: S.Unknown,
273
+ entity_ids: AssignEntitiesRequestEntityIdsList,
274
+ }).pipe(T.Http({
275
+ method: "POST",
276
+ uri: "/admin.auth.policy.assignEntities",
277
+ code: 200,
278
+ }))).annotate({
279
+ identifier: "AssignEntitiesRequest",
280
+ });
281
+ export const AssignEntitiesResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
282
+ ok: S.Boolean,
283
+ entity_total_count: S.Number,
284
+ })).annotate({
285
+ identifier: "AssignEntitiesResponse",
286
+ });
287
+ export const AssignUserRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
288
+ team_id: S.String,
289
+ user_id: S.String,
290
+ is_restricted: S.optional(S.Boolean),
291
+ is_ultra_restricted: S.optional(S.Boolean),
292
+ channel_ids: S.optional(S.String),
293
+ }).pipe(T.Http({ method: "POST", uri: "/admin.users.assign", code: 200 }))).annotate({
294
+ identifier: "AssignUserRequest",
295
+ });
296
+ export const AssignUserResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
297
+ ok: S.Boolean,
298
+ })).annotate({
299
+ identifier: "AssignUserResponse",
300
+ });
301
+ export const BulkArchiveRequestChannelIdsList = /*@__PURE__*/ S.Array(S.String);
302
+ export const BulkArchiveRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
303
+ channel_ids: BulkArchiveRequestChannelIdsList,
304
+ }).pipe(T.Http({
305
+ method: "POST",
306
+ uri: "/admin.conversations.bulkArchive",
307
+ code: 200,
308
+ contentType: "form-urlencoded",
309
+ }))).annotate({
310
+ identifier: "BulkArchiveRequest",
311
+ });
312
+ export const BulkArchiveResponseNotAddedItemErrorsList = /*@__PURE__*/ S.Array(S.String);
313
+ export const BulkArchiveResponseNotAddedItem = /*@__PURE__*/ S.suspend(() => S.Struct({
314
+ channel_id: S.String,
315
+ errors: BulkArchiveResponseNotAddedItemErrorsList,
316
+ })).annotate({
317
+ identifier: "BulkArchiveResponseNotAddedItem",
318
+ });
319
+ export const BulkArchiveResponseNotAddedList = /*@__PURE__*/ S.Array(BulkArchiveResponseNotAddedItem);
320
+ export const BulkArchiveResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
321
+ ok: S.Boolean,
322
+ bulk_action_id: S.String,
323
+ not_added: BulkArchiveResponseNotAddedList,
324
+ })).annotate({
325
+ identifier: "BulkArchiveResponse",
326
+ });
327
+ export const BulkDeleteRequestChannelIdsList = /*@__PURE__*/ S.Array(S.String);
328
+ export const BulkDeleteRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
329
+ channel_ids: BulkDeleteRequestChannelIdsList,
330
+ }).pipe(T.Http({
331
+ method: "POST",
332
+ uri: "/admin.conversations.bulkDelete",
333
+ code: 200,
334
+ contentType: "form-urlencoded",
335
+ }))).annotate({
336
+ identifier: "BulkDeleteRequest",
337
+ });
338
+ export const BulkDeleteResponseNotAddedItemErrorsList = /*@__PURE__*/ S.Array(S.String);
339
+ export const BulkDeleteResponseNotAddedItem = /*@__PURE__*/ S.suspend(() => S.Struct({
340
+ channel_id: S.String,
341
+ errors: BulkDeleteResponseNotAddedItemErrorsList,
342
+ })).annotate({
343
+ identifier: "BulkDeleteResponseNotAddedItem",
344
+ });
345
+ export const BulkDeleteResponseNotAddedList = /*@__PURE__*/ S.Array(BulkDeleteResponseNotAddedItem);
346
+ export const BulkDeleteResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
347
+ ok: S.Boolean,
348
+ bulk_action_id: S.String,
349
+ not_added: BulkDeleteResponseNotAddedList,
350
+ })).annotate({
351
+ identifier: "BulkDeleteResponse",
352
+ });
353
+ export const BulkMoveRequestChannelIdsList = /*@__PURE__*/ S.Array(S.String);
354
+ export const BulkMoveRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
355
+ target_team_id: S.String,
356
+ channel_ids: BulkMoveRequestChannelIdsList,
357
+ }).pipe(T.Http({
358
+ method: "POST",
359
+ uri: "/admin.conversations.bulkMove",
360
+ code: 200,
361
+ contentType: "form-urlencoded",
362
+ }))).annotate({
363
+ identifier: "BulkMoveRequest",
364
+ });
365
+ export const BulkMoveResponseNotAddedItemErrorsList = /*@__PURE__*/ S.Array(S.String);
366
+ export const BulkMoveResponseNotAddedItem = /*@__PURE__*/ S.suspend(() => S.Struct({
367
+ channel_id: S.String,
368
+ errors: BulkMoveResponseNotAddedItemErrorsList,
369
+ })).annotate({
370
+ identifier: "BulkMoveResponseNotAddedItem",
371
+ });
372
+ export const BulkMoveResponseNotAddedList = /*@__PURE__*/ S.Array(BulkMoveResponseNotAddedItem);
373
+ export const BulkMoveResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
374
+ ok: S.Boolean,
375
+ bulk_action_id: S.String,
376
+ not_added: BulkMoveResponseNotAddedList,
377
+ })).annotate({
378
+ identifier: "BulkMoveResponse",
379
+ });
380
+ export const BulkSetExcludeFromSlackAiRequestChannelIdsList =
381
+ /*@__PURE__*/ S.Array(S.String);
382
+ export const BulkSetExcludeFromSlackAiRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
383
+ channel_ids: BulkSetExcludeFromSlackAiRequestChannelIdsList.pipe(T.Query()),
384
+ exclude: S.Boolean.pipe(T.Query()),
385
+ }).pipe(T.Http({
386
+ method: "GET",
387
+ uri: "/admin.conversations.bulkSetExcludeFromSlackAi",
388
+ code: 200,
389
+ }))).annotate({
390
+ identifier: "BulkSetExcludeFromSlackAiRequest",
391
+ });
392
+ export const BulkSetExcludeFromSlackAiResponseNotAddedItemErrorsList =
393
+ /*@__PURE__*/ S.Array(S.String);
394
+ export const BulkSetExcludeFromSlackAiResponseNotAddedItem =
395
+ /*@__PURE__*/ S.suspend(() => S.Struct({
396
+ channel_id: S.String,
397
+ errors: BulkSetExcludeFromSlackAiResponseNotAddedItemErrorsList,
398
+ })).annotate({
399
+ identifier: "BulkSetExcludeFromSlackAiResponseNotAddedItem",
400
+ });
401
+ export const BulkSetExcludeFromSlackAiResponseNotAddedList =
402
+ /*@__PURE__*/ S.Array(BulkSetExcludeFromSlackAiResponseNotAddedItem);
403
+ export const BulkSetExcludeFromSlackAiResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
404
+ ok: S.Boolean,
405
+ bulk_action_id: S.String,
406
+ not_added: BulkSetExcludeFromSlackAiResponseNotAddedList,
407
+ })).annotate({
408
+ identifier: "BulkSetExcludeFromSlackAiResponse",
409
+ });
410
+ export const CancelAppsRequestRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
411
+ request_id: S.String,
412
+ team_id: S.optional(S.String),
413
+ enterprise_id: S.optional(S.String),
414
+ }).pipe(T.Http({ method: "POST", uri: "/admin.apps.requests.cancel", code: 200 }))).annotate({
415
+ identifier: "CancelAppsRequestRequest",
416
+ });
417
+ export const CancelAppsRequestResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
418
+ ok: S.Boolean,
419
+ })).annotate({
420
+ identifier: "CancelAppsRequestResponse",
421
+ });
422
+ export const ClearResolutionRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
423
+ app_id: S.String,
424
+ team_id: S.optional(S.String),
425
+ enterprise_id: S.optional(S.String),
426
+ }).pipe(T.Http({ method: "POST", uri: "/admin.apps.clearResolution", code: 200 }))).annotate({
427
+ identifier: "ClearResolutionRequest",
428
+ });
429
+ export const ClearResolutionResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
430
+ ok: S.Boolean,
431
+ })).annotate({
432
+ identifier: "ClearResolutionResponse",
433
+ });
434
+ export const ClearSettingsRequestUserIdsList = /*@__PURE__*/ S.Array(S.String);
435
+ export const ClearSettingsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
436
+ user_ids: ClearSettingsRequestUserIdsList,
437
+ }).pipe(T.Http({
438
+ method: "POST",
439
+ uri: "/admin.users.session.clearSettings",
440
+ code: 200,
441
+ }))).annotate({
442
+ identifier: "ClearSettingsRequest",
443
+ });
444
+ export const ClearSettingsResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
445
+ ok: S.Boolean,
446
+ })).annotate({
447
+ identifier: "ClearSettingsResponse",
448
+ });
449
+ export const ConvertToPrivateRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
450
+ channel_id: S.String,
451
+ name: S.optional(S.String),
452
+ }).pipe(T.Http({
453
+ method: "POST",
454
+ uri: "/admin.conversations.convertToPrivate",
455
+ code: 200,
456
+ }))).annotate({
457
+ identifier: "ConvertToPrivateRequest",
458
+ });
459
+ export const ConvertToPrivateResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
460
+ ok: S.Boolean,
461
+ })).annotate({
462
+ identifier: "ConvertToPrivateResponse",
463
+ });
464
+ export const ConvertToPublicRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
465
+ channel_id: S.String,
466
+ }).pipe(T.Http({
467
+ method: "POST",
468
+ uri: "/admin.conversations.convertToPublic",
469
+ code: 200,
470
+ }))).annotate({
471
+ identifier: "ConvertToPublicRequest",
472
+ });
473
+ export const ConvertToPublicResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
474
+ ok: S.Boolean,
475
+ })).annotate({
476
+ identifier: "ConvertToPublicResponse",
477
+ });
478
+ export const CreateBarrierRequestBarrieredFromUsergroupIdsList =
479
+ /*@__PURE__*/ S.Array(S.String);
480
+ export const CreateBarrierRequestRestrictedSubjectsItem = S.String;
481
+ export const CreateBarrierRequestRestrictedSubjectsList = /*@__PURE__*/ S.Array(CreateBarrierRequestRestrictedSubjectsItem);
482
+ export const CreateBarrierRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
483
+ primary_usergroup_id: S.String,
484
+ barriered_from_usergroup_ids: CreateBarrierRequestBarrieredFromUsergroupIdsList,
485
+ restricted_subjects: CreateBarrierRequestRestrictedSubjectsList,
486
+ }).pipe(T.Http({
487
+ method: "POST",
488
+ uri: "/admin.barriers.create",
489
+ code: 200,
490
+ contentType: "form-urlencoded",
491
+ }))).annotate({
492
+ identifier: "CreateBarrierRequest",
493
+ });
494
+ export const CreateBarrierResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
495
+ ok: S.Boolean,
496
+ barrier: S.Unknown,
497
+ })).annotate({
498
+ identifier: "CreateBarrierResponse",
499
+ });
500
+ export const CreateConversationRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
501
+ name: S.String,
502
+ description: S.optional(S.String),
503
+ is_private: S.Boolean,
504
+ org_wide: S.optional(S.Boolean),
505
+ team_id: S.optional(S.String),
506
+ }).pipe(T.Http({ method: "POST", uri: "/admin.conversations.create", code: 200 }))).annotate({
507
+ identifier: "CreateConversationRequest",
508
+ });
509
+ export const CreateConversationResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
510
+ ok: S.Boolean,
511
+ channel_id: S.optional(S.String),
512
+ })).annotate({
513
+ identifier: "CreateConversationResponse",
514
+ });
515
+ export const CreateForObjectsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
516
+ object_id: S.String,
517
+ salesforce_org_id: S.String,
518
+ invite_object_team: S.optional(S.Boolean),
519
+ }).pipe(T.Http({
520
+ method: "POST",
521
+ uri: "/admin.conversations.createForObjects",
522
+ code: 200,
523
+ }))).annotate({
524
+ identifier: "CreateForObjectsRequest",
525
+ });
526
+ export const CreateForObjectsResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
527
+ ok: S.Boolean,
528
+ channel_id: S.String,
529
+ })).annotate({
530
+ identifier: "CreateForObjectsResponse",
531
+ });
532
+ export const CreateTeamRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
533
+ team_domain: S.String,
534
+ team_name: S.String,
535
+ team_description: S.optional(S.String),
536
+ team_discoverability: S.optional(S.String),
537
+ }).pipe(T.Http({ method: "POST", uri: "/admin.teams.create", code: 200 }))).annotate({
538
+ identifier: "CreateTeamRequest",
539
+ });
540
+ export const CreateTeamResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
541
+ ok: S.Boolean,
542
+ team: S.String,
543
+ })).annotate({
544
+ identifier: "CreateTeamResponse",
545
+ });
546
+ export const DeleteBarrierRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
547
+ barrier_id: S.String,
548
+ }).pipe(T.Http({
549
+ method: "POST",
550
+ uri: "/admin.barriers.delete",
551
+ code: 200,
552
+ contentType: "form-urlencoded",
553
+ }))).annotate({
554
+ identifier: "DeleteBarrierRequest",
555
+ });
556
+ export const DeleteBarrierResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
557
+ ok: S.Boolean,
558
+ })).annotate({
559
+ identifier: "DeleteBarrierResponse",
560
+ });
561
+ export const DeleteConversationRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
562
+ channel_id: S.String,
563
+ }).pipe(T.Http({ method: "POST", uri: "/admin.conversations.delete", code: 200 }))).annotate({
564
+ identifier: "DeleteConversationRequest",
565
+ });
566
+ export const DeleteConversationResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
567
+ ok: S.Boolean,
568
+ })).annotate({
569
+ identifier: "DeleteConversationResponse",
570
+ });
571
+ export const DisconnectSharedRequestLeavingTeamIdsList = /*@__PURE__*/ S.Array(S.String);
572
+ export const DisconnectSharedRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
573
+ channel_id: S.String,
574
+ leaving_team_ids: S.optional(DisconnectSharedRequestLeavingTeamIdsList),
575
+ }).pipe(T.Http({
576
+ method: "POST",
577
+ uri: "/admin.conversations.disconnectShared",
578
+ code: 200,
579
+ }))).annotate({
580
+ identifier: "DisconnectSharedRequest",
581
+ });
582
+ export const DisconnectSharedResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
583
+ ok: S.Boolean,
584
+ })).annotate({
585
+ identifier: "DisconnectSharedResponse",
586
+ });
587
+ export const ExportUsersUnsupportedVersionRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
588
+ date_sessions_started: S.optional(S.Number),
589
+ date_end_of_support: S.optional(S.Number),
590
+ }).pipe(T.Http({
591
+ method: "POST",
592
+ uri: "/admin.users.unsupportedVersions.export",
593
+ code: 200,
594
+ contentType: "form-urlencoded",
595
+ }))).annotate({
596
+ identifier: "ExportUsersUnsupportedVersionRequest",
597
+ });
598
+ export const ExportUsersUnsupportedVersionResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
599
+ ok: S.Boolean,
600
+ })).annotate({
601
+ identifier: "ExportUsersUnsupportedVersionResponse",
602
+ });
603
+ export const GetConversationPrefsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
604
+ channel_id: S.String,
605
+ }).pipe(T.Http({
606
+ method: "POST",
607
+ uri: "/admin.conversations.getConversationPrefs",
608
+ code: 200,
609
+ }))).annotate({
610
+ identifier: "GetConversationPrefsRequest",
611
+ });
612
+ export const GetConversationPrefsResponsePrefsWhoCanPostTypeList =
613
+ /*@__PURE__*/ S.Array(S.String);
614
+ export const GetConversationPrefsResponsePrefsWhoCanPostUserList =
615
+ /*@__PURE__*/ S.Array(S.String);
616
+ export const GetConversationPrefsResponsePrefsWhoCanPost =
617
+ /*@__PURE__*/ S.suspend(() => S.Struct({
618
+ type: S.optional(GetConversationPrefsResponsePrefsWhoCanPostTypeList),
619
+ user: S.optional(GetConversationPrefsResponsePrefsWhoCanPostUserList),
620
+ })).annotate({
621
+ identifier: "GetConversationPrefsResponsePrefsWhoCanPost",
622
+ });
623
+ export const GetConversationPrefsResponsePrefsCanThreadTypeList =
624
+ /*@__PURE__*/ S.Array(S.String);
625
+ export const GetConversationPrefsResponsePrefsCanThreadUserList =
626
+ /*@__PURE__*/ S.Array(S.String);
627
+ export const GetConversationPrefsResponsePrefsCanThread =
628
+ /*@__PURE__*/ S.suspend(() => S.Struct({
629
+ type: S.optional(GetConversationPrefsResponsePrefsCanThreadTypeList),
630
+ user: S.optional(GetConversationPrefsResponsePrefsCanThreadUserList),
631
+ })).annotate({
632
+ identifier: "GetConversationPrefsResponsePrefsCanThread",
633
+ });
634
+ export const GetConversationPrefsResponsePrefsMembershipLimit =
635
+ /*@__PURE__*/ S.suspend(() => S.Struct({
636
+ value: S.optional(S.Number),
637
+ })).annotate({
638
+ identifier: "GetConversationPrefsResponsePrefsMembershipLimit",
639
+ });
640
+ export const GetConversationPrefsResponsePrefsCanHuddle =
641
+ /*@__PURE__*/ S.suspend(() => S.Struct({
642
+ enabled: S.optional(S.Boolean),
643
+ })).annotate({
644
+ identifier: "GetConversationPrefsResponsePrefsCanHuddle",
645
+ });
646
+ export const GetConversationPrefsResponsePrefsEnableAtChannel =
647
+ /*@__PURE__*/ S.suspend(() => S.Struct({
648
+ enabled: S.optional(S.Boolean),
649
+ })).annotate({
650
+ identifier: "GetConversationPrefsResponsePrefsEnableAtChannel",
651
+ });
652
+ export const GetConversationPrefsResponsePrefsEnableAtHere =
653
+ /*@__PURE__*/ S.suspend(() => S.Struct({
654
+ enabled: S.optional(S.Boolean),
655
+ })).annotate({
656
+ identifier: "GetConversationPrefsResponsePrefsEnableAtHere",
657
+ });
658
+ export const GetConversationPrefsResponsePrefs = /*@__PURE__*/ S.suspend(() => S.Struct({
659
+ who_can_post: S.optional(GetConversationPrefsResponsePrefsWhoCanPost),
660
+ can_thread: S.optional(GetConversationPrefsResponsePrefsCanThread),
661
+ membership_limit: S.optional(GetConversationPrefsResponsePrefsMembershipLimit),
662
+ can_huddle: S.optional(GetConversationPrefsResponsePrefsCanHuddle),
663
+ enable_at_channel: S.optional(GetConversationPrefsResponsePrefsEnableAtChannel),
664
+ enable_at_here: S.optional(GetConversationPrefsResponsePrefsEnableAtHere),
665
+ })).annotate({
666
+ identifier: "GetConversationPrefsResponsePrefs",
667
+ });
668
+ export const GetConversationPrefsResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
669
+ ok: S.Boolean,
670
+ prefs: S.optional(GetConversationPrefsResponsePrefs),
671
+ })).annotate({
672
+ identifier: "GetConversationPrefsResponse",
673
+ });
674
+ export const GetCustomRetentionRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
675
+ channel_id: S.String,
676
+ }).pipe(T.Http({
677
+ method: "POST",
678
+ uri: "/admin.conversations.getCustomRetention",
679
+ code: 200,
680
+ }))).annotate({
681
+ identifier: "GetCustomRetentionRequest",
682
+ });
683
+ export const GetCustomRetentionResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
684
+ ok: S.Boolean,
685
+ is_policy_enabled: S.Boolean,
686
+ duration_days: S.Number,
687
+ })).annotate({
688
+ identifier: "GetCustomRetentionResponse",
689
+ });
690
+ export const GetEntitiesRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
691
+ policy_name: S.String,
692
+ entity_type: S.optional(S.Unknown),
693
+ limit: S.optional(S.Number),
694
+ cursor: S.optional(S.String),
695
+ }).pipe(T.Http({
696
+ method: "POST",
697
+ uri: "/admin.auth.policy.getEntities",
698
+ code: 200,
699
+ }))).annotate({
700
+ identifier: "GetEntitiesRequest",
701
+ });
702
+ export const GetEntitiesResponseResponseMetadata = AnalyticsMessagesActivityResponseResponseMetadata;
703
+ export const GetEntitiesResponseEntitiesItem = /*@__PURE__*/ S.suspend(() => S.Struct({
704
+ entity_type: S.String,
705
+ entity_id: S.String,
706
+ date_added: S.Number,
707
+ })).annotate({
708
+ identifier: "GetEntitiesResponseEntitiesItem",
709
+ });
710
+ export const GetEntitiesResponseEntitiesList = /*@__PURE__*/ S.Array(GetEntitiesResponseEntitiesItem);
711
+ export const GetEntitiesResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
712
+ ok: S.Boolean,
713
+ response_metadata: S.optional(AnalyticsMessagesActivityResponseResponseMetadata),
714
+ entities: GetEntitiesResponseEntitiesList,
715
+ entity_total_count: S.Number,
716
+ })).annotate({
717
+ identifier: "GetEntitiesResponse",
718
+ });
719
+ export const GetExpirationRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
720
+ user_id: S.optional(S.String.pipe(T.Query())),
721
+ target_team: S.optional(S.String.pipe(T.Query())),
722
+ }).pipe(T.Http({ method: "GET", uri: "/admin.users.getExpiration", code: 200 }))).annotate({
723
+ identifier: "GetExpirationRequest",
724
+ });
725
+ export const GetExpirationResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
726
+ ok: S.Boolean,
727
+ })).annotate({
728
+ identifier: "GetExpirationResponse",
729
+ });
730
+ export const GetFileRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
731
+ date: S.optional(S.String.pipe(T.Query())),
732
+ type: S.String.pipe(T.Query()),
733
+ metadata_only: S.optional(S.Boolean.pipe(T.Query())),
734
+ }).pipe(T.Http({ method: "GET", uri: "/admin.analytics.getFile", code: 200 }))).annotate({ identifier: "GetFileRequest" });
735
+ export const GetFileResponse = /*@__PURE__*/ S.suspend(() => S.Unknown.pipe(T.RawResponseRoot())).annotate({
736
+ identifier: "GetFileResponse",
737
+ });
738
+ export const GetItemRequest = /*@__PURE__*/ S.suspend(() => S.Struct({}).pipe(T.Http({
739
+ method: "POST",
740
+ uri: "/admin.audit.anomaly.allow.getItem",
741
+ code: 200,
742
+ }))).annotate({ identifier: "GetItemRequest" });
743
+ export const GetItemResponseTrustedCidrList = /*@__PURE__*/ S.Array(S.String);
744
+ export const GetItemResponseTrustedAsnsList = /*@__PURE__*/ S.Array(S.Number);
745
+ export const GetItemResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
746
+ ok: S.Boolean,
747
+ trusted_cidr: S.optional(GetItemResponseTrustedCidrList),
748
+ trusted_asns: S.optional(GetItemResponseTrustedAsnsList),
749
+ })).annotate({
750
+ identifier: "GetItemResponse",
751
+ });
752
+ export const GetSettingsRequestUserIdsList = /*@__PURE__*/ S.Array(S.String);
753
+ export const GetSettingsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
754
+ user_ids: GetSettingsRequestUserIdsList,
755
+ }).pipe(T.Http({
756
+ method: "POST",
757
+ uri: "/admin.users.session.getSettings",
758
+ code: 200,
759
+ }))).annotate({
760
+ identifier: "GetSettingsRequest",
761
+ });
762
+ export const GetSettingsResponseSessionSettingsItem = /*@__PURE__*/ S.suspend(() => S.Struct({
763
+ user_id: S.String,
764
+ desktop_app_browser_quit: S.Unknown,
765
+ duration: S.Unknown,
766
+ })).annotate({
767
+ identifier: "GetSettingsResponseSessionSettingsItem",
768
+ });
769
+ export const GetSettingsResponseSessionSettingsList = /*@__PURE__*/ S.Array(GetSettingsResponseSessionSettingsItem);
770
+ export const GetSettingsResponseNoSettingsAppliedList = /*@__PURE__*/ S.Array(S.String);
771
+ export const GetSettingsResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
772
+ ok: S.Boolean,
773
+ session_settings: S.optional(GetSettingsResponseSessionSettingsList),
774
+ no_settings_applied: S.optional(GetSettingsResponseNoSettingsAppliedList),
775
+ })).annotate({
776
+ identifier: "GetSettingsResponse",
777
+ });
778
+ export const GetTeamsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
779
+ channel_id: S.String,
780
+ cursor: S.optional(S.String),
781
+ limit: S.optional(S.Number),
782
+ }).pipe(T.Http({ method: "POST", uri: "/admin.conversations.getTeams", code: 200 }))).annotate({
783
+ identifier: "GetTeamsRequest",
784
+ });
785
+ export const GetTeamsResponseResponseMetadata = AnalyticsMessagesActivityResponseResponseMetadata;
786
+ export const GetTeamsResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
787
+ ok: S.Boolean,
788
+ response_metadata: S.optional(AnalyticsMessagesActivityResponseResponseMetadata),
789
+ })).annotate({
790
+ identifier: "GetTeamsResponse",
791
+ });
792
+ export const InvalidateUsersSessionRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
793
+ team_id: S.optional(S.String),
794
+ user_id: S.String,
795
+ session_id: S.Number,
796
+ }).pipe(T.Http({
797
+ method: "POST",
798
+ uri: "/admin.users.session.invalidate",
799
+ code: 200,
800
+ }))).annotate({
801
+ identifier: "InvalidateUsersSessionRequest",
802
+ });
803
+ export const InvalidateUsersSessionResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
804
+ ok: S.Boolean,
805
+ })).annotate({
806
+ identifier: "InvalidateUsersSessionResponse",
807
+ });
808
+ export const InviteConversationRequestUserIdsList = /*@__PURE__*/ S.Array(S.String);
809
+ export const InviteConversationRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
810
+ user_ids: InviteConversationRequestUserIdsList,
811
+ channel_id: S.String,
812
+ }).pipe(T.Http({ method: "POST", uri: "/admin.conversations.invite", code: 200 }))).annotate({
813
+ identifier: "InviteConversationRequest",
814
+ });
815
+ export const InviteConversationResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
816
+ ok: S.Boolean,
817
+ })).annotate({
818
+ identifier: "InviteConversationResponse",
819
+ });
820
+ export const InviteRequestsDenyRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
821
+ team_id: S.optional(S.String),
822
+ invite_request_id: S.String,
823
+ }).pipe(T.Http({ method: "POST", uri: "/admin.inviteRequests.deny", code: 200 }))).annotate({
824
+ identifier: "InviteRequestsDenyRequest",
825
+ });
826
+ export const InviteRequestsDenyResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
827
+ ok: S.Boolean,
828
+ })).annotate({
829
+ identifier: "InviteRequestsDenyResponse",
830
+ });
831
+ export const InviteUserRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
832
+ team_id: S.String,
833
+ email: S.String,
834
+ channel_ids: S.String,
835
+ custom_message: S.optional(S.String),
836
+ real_name: S.optional(S.String),
837
+ resend: S.optional(S.Boolean),
838
+ is_restricted: S.optional(S.Boolean),
839
+ is_ultra_restricted: S.optional(S.Boolean),
840
+ guest_expiration_ts: S.optional(S.String),
841
+ email_password_policy_enabled: S.optional(S.Boolean),
842
+ }).pipe(T.Http({ method: "POST", uri: "/admin.users.invite", code: 200 }))).annotate({
843
+ identifier: "InviteUserRequest",
844
+ });
845
+ export const InviteUserResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
846
+ ok: S.Boolean,
847
+ })).annotate({
848
+ identifier: "InviteUserResponse",
849
+ });
850
+ export const LinkObjectsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
851
+ channel: S.String,
852
+ record_id: S.String,
853
+ salesforce_org_id: S.String,
854
+ }).pipe(T.Http({
855
+ method: "POST",
856
+ uri: "/admin.conversations.linkObjects",
857
+ code: 200,
858
+ }))).annotate({
859
+ identifier: "LinkObjectsRequest",
860
+ });
861
+ export const LinkObjectsResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
862
+ ok: S.Boolean,
863
+ })).annotate({
864
+ identifier: "LinkObjectsResponse",
865
+ });
866
+ export const ListAppsActivitiesRequestSortDirection = S.String;
867
+ export const ListAppsActivitiesRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
868
+ app_id: S.optional(S.String),
869
+ team_id: S.optional(S.String),
870
+ cursor: S.optional(S.String),
871
+ limit: S.optional(S.Number),
872
+ min_log_level: S.optional(S.String),
873
+ log_event_type: S.optional(S.String),
874
+ source: S.optional(S.String),
875
+ component_type: S.optional(S.String),
876
+ component_id: S.optional(S.String),
877
+ trace_id: S.optional(S.String),
878
+ min_date_created: S.optional(S.Number),
879
+ max_date_created: S.optional(S.Number),
880
+ sort_direction: S.optional(ListAppsActivitiesRequestSortDirection),
881
+ }).pipe(T.Http({
882
+ method: "POST",
883
+ uri: "/admin.apps.activities.list",
884
+ code: 200,
885
+ contentType: "form-urlencoded",
886
+ }))).annotate({
887
+ identifier: "ListAppsActivitiesRequest",
888
+ });
889
+ export const ListAppsActivitiesResponseActivitiesList = /*@__PURE__*/ S.Array(S.Unknown);
890
+ export const ListAppsActivitiesResponseResponseMetadata = AnalyticsMessagesActivityResponseResponseMetadata;
891
+ export const ListAppsActivitiesResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
892
+ ok: S.Boolean,
893
+ activities: ListAppsActivitiesResponseActivitiesList,
894
+ response_metadata: S.optional(AnalyticsMessagesActivityResponseResponseMetadata),
895
+ })).annotate({
896
+ identifier: "ListAppsActivitiesResponse",
897
+ });
898
+ export const ListAppsApprovedRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
899
+ limit: S.optional(S.Number.pipe(T.Query())),
900
+ cursor: S.optional(S.String.pipe(T.Query())),
901
+ team_id: S.optional(S.String.pipe(T.Query())),
902
+ enterprise_id: S.optional(S.String.pipe(T.Query())),
903
+ certified: S.optional(S.Boolean.pipe(T.Query())),
904
+ }).pipe(T.Http({ method: "GET", uri: "/admin.apps.approved.list", code: 200 }))).annotate({
905
+ identifier: "ListAppsApprovedRequest",
906
+ });
907
+ export const ListAppsApprovedResponseApprovedAppsList = /*@__PURE__*/ S.Array(S.Unknown);
908
+ export const ListAppsApprovedResponseResponseMetadata = AnalyticsMessagesActivityResponseResponseMetadata;
909
+ export const ListAppsApprovedResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
910
+ ok: S.Boolean,
911
+ approved_apps: ListAppsApprovedResponseApprovedAppsList,
912
+ response_metadata: S.optional(AnalyticsMessagesActivityResponseResponseMetadata),
913
+ })).annotate({
914
+ identifier: "ListAppsApprovedResponse",
915
+ });
916
+ export const ListAppsMcpServersRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
917
+ limit: S.optional(S.Number),
918
+ cursor: S.optional(S.String),
919
+ }).pipe(T.Http({ method: "POST", uri: "/admin.apps.mcp.servers.list", code: 200 }))).annotate({
920
+ identifier: "ListAppsMcpServersRequest",
921
+ });
922
+ export const ListAppsMcpServersResponseServersItem = /*@__PURE__*/ S.suspend(() => S.Struct({
923
+ server_id: S.String,
924
+ server_name: S.String,
925
+ url: S.String,
926
+ auth_type: S.Unknown,
927
+ app_id: S.String,
928
+ app_name: S.String,
929
+ })).annotate({
930
+ identifier: "ListAppsMcpServersResponseServersItem",
931
+ });
932
+ export const ListAppsMcpServersResponseServersList = /*@__PURE__*/ S.Array(ListAppsMcpServersResponseServersItem);
933
+ export const ListAppsMcpServersResponseResponseMetadata = AnalyticsMessagesActivityResponseResponseMetadata;
934
+ export const ListAppsMcpServersResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
935
+ ok: S.Boolean,
936
+ servers: ListAppsMcpServersResponseServersList,
937
+ response_metadata: S.optional(AnalyticsMessagesActivityResponseResponseMetadata),
938
+ })).annotate({
939
+ identifier: "ListAppsMcpServersResponse",
940
+ });
941
+ export const ListAppsMcpServersPermissionsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
942
+ app_id: S.String,
943
+ }).pipe(T.Http({
944
+ method: "POST",
945
+ uri: "/admin.apps.mcp.servers.permissions.list",
946
+ code: 200,
947
+ }))).annotate({
948
+ identifier: "ListAppsMcpServersPermissionsRequest",
949
+ });
950
+ export const ListAppsMcpServersPermissionsResponseServersList =
951
+ /*@__PURE__*/ S.Array(S.Unknown);
952
+ export const ListAppsMcpServersPermissionsResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
953
+ ok: S.Boolean,
954
+ servers: ListAppsMcpServersPermissionsResponseServersList,
955
+ })).annotate({
956
+ identifier: "ListAppsMcpServersPermissionsResponse",
957
+ });
958
+ export const ListAppsPermissionsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
959
+ app_id: S.String,
960
+ }).pipe(T.Http({ method: "POST", uri: "/admin.apps.permissions.list", code: 200 }))).annotate({
961
+ identifier: "ListAppsPermissionsRequest",
962
+ });
963
+ export const ListAppsPermissionsResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
964
+ ok: S.Boolean,
965
+ })).annotate({
966
+ identifier: "ListAppsPermissionsResponse",
967
+ });
968
+ export const ListAppsRequestsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
969
+ limit: S.optional(S.Number.pipe(T.Query())),
970
+ cursor: S.optional(S.String.pipe(T.Query())),
971
+ team_id: S.optional(S.String.pipe(T.Query())),
972
+ enterprise_id: S.optional(S.String.pipe(T.Query())),
973
+ certified: S.optional(S.Boolean.pipe(T.Query())),
974
+ }).pipe(T.Http({ method: "GET", uri: "/admin.apps.requests.list", code: 200 }))).annotate({
975
+ identifier: "ListAppsRequestsRequest",
976
+ });
977
+ export const ListAppsRequestsResponseAppRequestsList = /*@__PURE__*/ S.Array(S.Unknown);
978
+ export const ListAppsRequestsResponseResponseMetadata = AnalyticsMessagesActivityResponseResponseMetadata;
979
+ export const ListAppsRequestsResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
980
+ ok: S.Boolean,
981
+ app_requests: ListAppsRequestsResponseAppRequestsList,
982
+ response_metadata: S.optional(AnalyticsMessagesActivityResponseResponseMetadata),
983
+ })).annotate({
984
+ identifier: "ListAppsRequestsResponse",
985
+ });
986
+ export const ListAppsRestrictedRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
987
+ limit: S.optional(S.Number.pipe(T.Query())),
988
+ cursor: S.optional(S.String.pipe(T.Query())),
989
+ team_id: S.optional(S.String.pipe(T.Query())),
990
+ enterprise_id: S.optional(S.String.pipe(T.Query())),
991
+ certified: S.optional(S.Boolean.pipe(T.Query())),
992
+ }).pipe(T.Http({ method: "GET", uri: "/admin.apps.restricted.list", code: 200 }))).annotate({
993
+ identifier: "ListAppsRestrictedRequest",
994
+ });
995
+ export const ListAppsRestrictedResponseRestrictedAppsList =
996
+ /*@__PURE__*/ S.Array(S.Unknown);
997
+ export const ListAppsRestrictedResponseResponseMetadata = AnalyticsMessagesActivityResponseResponseMetadata;
998
+ export const ListAppsRestrictedResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
999
+ ok: S.Boolean,
1000
+ restricted_apps: ListAppsRestrictedResponseRestrictedAppsList,
1001
+ response_metadata: S.optional(AnalyticsMessagesActivityResponseResponseMetadata),
1002
+ })).annotate({
1003
+ identifier: "ListAppsRestrictedResponse",
1004
+ });
1005
+ export const ListAssignmentsRequestRoleIdsList = /*@__PURE__*/ S.Array(S.String);
1006
+ export const ListAssignmentsRequestEntityIdsList = /*@__PURE__*/ S.Array(S.String);
1007
+ export const ListAssignmentsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
1008
+ cursor: S.optional(S.String.pipe(T.Query())),
1009
+ limit: S.optional(S.Number.pipe(T.Query())),
1010
+ role_ids: S.optional(ListAssignmentsRequestRoleIdsList.pipe(T.Query())),
1011
+ entity_ids: S.optional(ListAssignmentsRequestEntityIdsList.pipe(T.Query())),
1012
+ sort_dir: S.optional(S.String.pipe(T.Query())),
1013
+ }).pipe(T.Http({ method: "GET", uri: "/admin.roles.listAssignments", code: 200 }))).annotate({
1014
+ identifier: "ListAssignmentsRequest",
1015
+ });
1016
+ export const ListAssignmentsResponseRoleAssignmentsItem =
1017
+ /*@__PURE__*/ S.suspend(() => S.Struct({
1018
+ role_id: S.String,
1019
+ entity_id: S.String,
1020
+ user_id: S.String,
1021
+ date_create: S.Number,
1022
+ })).annotate({
1023
+ identifier: "ListAssignmentsResponseRoleAssignmentsItem",
1024
+ });
1025
+ export const ListAssignmentsResponseRoleAssignmentsList = /*@__PURE__*/ S.Array(ListAssignmentsResponseRoleAssignmentsItem);
1026
+ export const ListAssignmentsResponseResponseMetadata = AnalyticsMessagesActivityResponseResponseMetadata;
1027
+ export const ListAssignmentsResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
1028
+ ok: S.Boolean,
1029
+ error: S.optional(S.String),
1030
+ role_assignments: ListAssignmentsResponseRoleAssignmentsList,
1031
+ response_metadata: S.optional(AnalyticsMessagesActivityResponseResponseMetadata),
1032
+ })).annotate({
1033
+ identifier: "ListAssignmentsResponse",
1034
+ });
1035
+ export const ListBarriersRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
1036
+ limit: S.optional(S.Number.pipe(T.Query())),
1037
+ cursor: S.optional(S.String.pipe(T.Query())),
1038
+ }).pipe(T.Http({ method: "GET", uri: "/admin.barriers.list", code: 200 }))).annotate({
1039
+ identifier: "ListBarriersRequest",
1040
+ });
1041
+ export const ListBarriersResponseBarriersList = /*@__PURE__*/ S.Array(S.Unknown);
1042
+ export const ListBarriersResponseResponseMetadata = AnalyticsMessagesActivityResponseResponseMetadata;
1043
+ export const ListBarriersResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
1044
+ ok: S.Boolean,
1045
+ barriers: ListBarriersResponseBarriersList,
1046
+ response_metadata: S.optional(AnalyticsMessagesActivityResponseResponseMetadata),
1047
+ })).annotate({
1048
+ identifier: "ListBarriersResponse",
1049
+ });
1050
+ export const ListChannelsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
1051
+ usergroup_id: S.String,
1052
+ team_id: S.optional(S.String),
1053
+ include_num_members: S.optional(S.Boolean),
1054
+ }).pipe(T.Http({
1055
+ method: "POST",
1056
+ uri: "/admin.usergroups.listChannels",
1057
+ code: 200,
1058
+ }))).annotate({
1059
+ identifier: "ListChannelsRequest",
1060
+ });
1061
+ export const ListChannelsResponseChannelsList = /*@__PURE__*/ S.Array(S.String);
1062
+ export const ListChannelsResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
1063
+ ok: S.Boolean,
1064
+ channels: ListChannelsResponseChannelsList,
1065
+ error: S.optional(S.String),
1066
+ })).annotate({
1067
+ identifier: "ListChannelsResponse",
1068
+ });
1069
+ export const ListEmojiRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
1070
+ cursor: S.optional(S.String.pipe(T.Query())),
1071
+ limit: S.optional(S.Number.pipe(T.Query())),
1072
+ }).pipe(T.Http({ method: "GET", uri: "/admin.emoji.list", code: 200 }))).annotate({
1073
+ identifier: "ListEmojiRequest",
1074
+ });
1075
+ export const ListEmojiResponseEmojiMap = /*@__PURE__*/ S.Record(S.String, S.Unknown);
1076
+ export const ListEmojiResponseResponseMetadata = AnalyticsMessagesActivityResponseResponseMetadata;
1077
+ export const ListEmojiResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
1078
+ ok: S.Boolean,
1079
+ emoji: ListEmojiResponseEmojiMap,
1080
+ response_metadata: S.optional(AnalyticsMessagesActivityResponseResponseMetadata),
1081
+ })).annotate({
1082
+ identifier: "ListEmojiResponse",
1083
+ });
1084
+ export const ListFunctionsRequestAppIdsList = /*@__PURE__*/ S.Array(S.String);
1085
+ export const ListFunctionsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
1086
+ team_id: S.optional(S.String),
1087
+ app_ids: ListFunctionsRequestAppIdsList,
1088
+ include_non_distributed_functions: S.optional(S.Boolean),
1089
+ cursor: S.optional(S.String),
1090
+ limit: S.optional(S.Number),
1091
+ }).pipe(T.Http({ method: "POST", uri: "/admin.functions.list", code: 200 }))).annotate({
1092
+ identifier: "ListFunctionsRequest",
1093
+ });
1094
+ export const ListFunctionsResponseFunctionsList = /*@__PURE__*/ S.Array(S.Unknown);
1095
+ export const ListFunctionsResponseResponseMetadata = AnalyticsMessagesActivityResponseResponseMetadata;
1096
+ export const ListFunctionsResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
1097
+ ok: S.Boolean,
1098
+ functions: ListFunctionsResponseFunctionsList,
1099
+ response_metadata: S.optional(AnalyticsMessagesActivityResponseResponseMetadata),
1100
+ })).annotate({
1101
+ identifier: "ListFunctionsResponse",
1102
+ });
1103
+ export const ListGroupsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
1104
+ channel_id: S.String.pipe(T.Query()),
1105
+ team_id: S.optional(S.String.pipe(T.Query())),
1106
+ }).pipe(T.Http({
1107
+ method: "GET",
1108
+ uri: "/admin.conversations.restrictAccess.listGroups",
1109
+ code: 200,
1110
+ }))).annotate({
1111
+ identifier: "ListGroupsRequest",
1112
+ });
1113
+ export const ListGroupsResponseGroupIdsList = /*@__PURE__*/ S.Array(S.String);
1114
+ export const ListGroupsResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
1115
+ ok: S.Boolean,
1116
+ group_ids: ListGroupsResponseGroupIdsList,
1117
+ })).annotate({
1118
+ identifier: "ListGroupsResponse",
1119
+ });
1120
+ export const ListInviteRequestsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
1121
+ team_id: S.optional(S.String),
1122
+ cursor: S.optional(S.String),
1123
+ limit: S.optional(S.Number),
1124
+ }).pipe(T.Http({ method: "POST", uri: "/admin.inviteRequests.list", code: 200 }))).annotate({
1125
+ identifier: "ListInviteRequestsRequest",
1126
+ });
1127
+ export const ListInviteRequestsResponseResponseMetadata = AnalyticsMessagesActivityResponseResponseMetadata;
1128
+ export const ListInviteRequestsResponseInviteRequestsList =
1129
+ /*@__PURE__*/ S.Array(S.Unknown);
1130
+ export const ListInviteRequestsResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
1131
+ ok: S.Boolean,
1132
+ response_metadata: S.optional(AnalyticsMessagesActivityResponseResponseMetadata),
1133
+ invite_requests: ListInviteRequestsResponseInviteRequestsList,
1134
+ })).annotate({
1135
+ identifier: "ListInviteRequestsResponse",
1136
+ });
1137
+ export const ListInviteRequestsApprovedRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
1138
+ team_id: S.optional(S.String),
1139
+ cursor: S.optional(S.String),
1140
+ limit: S.optional(S.Number),
1141
+ }).pipe(T.Http({
1142
+ method: "POST",
1143
+ uri: "/admin.inviteRequests.approved.list",
1144
+ code: 200,
1145
+ }))).annotate({
1146
+ identifier: "ListInviteRequestsApprovedRequest",
1147
+ });
1148
+ export const ListInviteRequestsApprovedResponseResponseMetadata = AnalyticsMessagesActivityResponseResponseMetadata;
1149
+ export const ListInviteRequestsApprovedResponseApprovedRequestsList =
1150
+ /*@__PURE__*/ S.Array(S.Unknown);
1151
+ export const ListInviteRequestsApprovedResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
1152
+ ok: S.Boolean,
1153
+ response_metadata: S.optional(AnalyticsMessagesActivityResponseResponseMetadata),
1154
+ approved_requests: ListInviteRequestsApprovedResponseApprovedRequestsList,
1155
+ })).annotate({
1156
+ identifier: "ListInviteRequestsApprovedResponse",
1157
+ });
1158
+ export const ListInviteRequestsDeniedRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
1159
+ team_id: S.optional(S.String),
1160
+ cursor: S.optional(S.String),
1161
+ limit: S.optional(S.Number),
1162
+ }).pipe(T.Http({
1163
+ method: "POST",
1164
+ uri: "/admin.inviteRequests.denied.list",
1165
+ code: 200,
1166
+ }))).annotate({
1167
+ identifier: "ListInviteRequestsDeniedRequest",
1168
+ });
1169
+ export const ListInviteRequestsDeniedResponseResponseMetadata = AnalyticsMessagesActivityResponseResponseMetadata;
1170
+ export const ListInviteRequestsDeniedResponseDeniedRequestsList =
1171
+ /*@__PURE__*/ S.Array(S.Unknown);
1172
+ export const ListInviteRequestsDeniedResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
1173
+ ok: S.Boolean,
1174
+ response_metadata: S.optional(AnalyticsMessagesActivityResponseResponseMetadata),
1175
+ denied_requests: ListInviteRequestsDeniedResponseDeniedRequestsList,
1176
+ })).annotate({
1177
+ identifier: "ListInviteRequestsDeniedResponse",
1178
+ });
1179
+ export const ListOriginalConnectedChannelInfoRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
1180
+ channel_ids: S.optional(S.String),
1181
+ team_ids: S.optional(S.String),
1182
+ limit: S.optional(S.Number),
1183
+ cursor: S.optional(S.String),
1184
+ }).pipe(T.Http({
1185
+ method: "POST",
1186
+ uri: "/admin.conversations.ekm.listOriginalConnectedChannelInfo",
1187
+ code: 200,
1188
+ contentType: "form-urlencoded",
1189
+ }))).annotate({
1190
+ identifier: "ListOriginalConnectedChannelInfoRequest",
1191
+ });
1192
+ export const ListOriginalConnectedChannelInfoResponseResponseMetadata = AnalyticsMessagesActivityResponseResponseMetadata;
1193
+ export const ListOriginalConnectedChannelInfoResponseChannelsItemInternalTeamIdsList =
1194
+ /*@__PURE__*/ S.Array(S.String);
1195
+ export const ListOriginalConnectedChannelInfoResponseChannelsItem =
1196
+ /*@__PURE__*/ S.suspend(() => S.Struct({
1197
+ id: S.String,
1198
+ internal_team_ids: ListOriginalConnectedChannelInfoResponseChannelsItemInternalTeamIdsList,
1199
+ original_connected_host_id: S.String,
1200
+ original_connected_channel_id: S.String,
1201
+ })).annotate({
1202
+ identifier: "ListOriginalConnectedChannelInfoResponseChannelsItem",
1203
+ });
1204
+ export const ListOriginalConnectedChannelInfoResponseChannelsList =
1205
+ /*@__PURE__*/ S.Array(ListOriginalConnectedChannelInfoResponseChannelsItem);
1206
+ export const ListOriginalConnectedChannelInfoResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
1207
+ ok: S.Boolean,
1208
+ response_metadata: S.optional(AnalyticsMessagesActivityResponseResponseMetadata),
1209
+ channels: ListOriginalConnectedChannelInfoResponseChannelsList,
1210
+ })).annotate({
1211
+ identifier: "ListOriginalConnectedChannelInfoResponse",
1212
+ });
1213
+ export const ListTeamsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
1214
+ limit: S.optional(S.Number),
1215
+ cursor: S.optional(S.String),
1216
+ }).pipe(T.Http({ method: "POST", uri: "/admin.teams.list", code: 200 }))).annotate({
1217
+ identifier: "ListTeamsRequest",
1218
+ });
1219
+ export const ListTeamsResponseTeamsItemPrimaryOwner = /*@__PURE__*/ S.suspend(() => S.Struct({
1220
+ user_id: S.String,
1221
+ email: S.String,
1222
+ })).annotate({
1223
+ identifier: "ListTeamsResponseTeamsItemPrimaryOwner",
1224
+ });
1225
+ export const ListTeamsResponseTeamsItem = /*@__PURE__*/ S.suspend(() => S.Struct({
1226
+ id: S.optional(S.String),
1227
+ name: S.String,
1228
+ discoverability: S.String,
1229
+ primary_owner: ListTeamsResponseTeamsItemPrimaryOwner,
1230
+ team_url: S.String,
1231
+ })).annotate({
1232
+ identifier: "ListTeamsResponseTeamsItem",
1233
+ });
1234
+ export const ListTeamsResponseTeamsList = /*@__PURE__*/ S.Array(ListTeamsResponseTeamsItem);
1235
+ export const ListTeamsResponseResponseMetadata = AnalyticsMessagesActivityResponseResponseMetadata;
1236
+ export const ListTeamsResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
1237
+ ok: S.Boolean,
1238
+ teams: ListTeamsResponseTeamsList,
1239
+ response_metadata: S.optional(AnalyticsMessagesActivityResponseResponseMetadata),
1240
+ })).annotate({
1241
+ identifier: "ListTeamsResponse",
1242
+ });
1243
+ export const ListTeamsAdminsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
1244
+ limit: S.optional(S.Number.pipe(T.Query())),
1245
+ cursor: S.optional(S.String.pipe(T.Query())),
1246
+ team_id: S.String.pipe(T.Query()),
1247
+ }).pipe(T.Http({ method: "GET", uri: "/admin.teams.admins.list", code: 200 }))).annotate({
1248
+ identifier: "ListTeamsAdminsRequest",
1249
+ });
1250
+ export const ListTeamsAdminsResponseAdminIdsList = /*@__PURE__*/ S.Array(S.String);
1251
+ export const ListTeamsAdminsResponseResponseMetadata = AnalyticsMessagesActivityResponseResponseMetadata;
1252
+ export const ListTeamsAdminsResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
1253
+ ok: S.Boolean,
1254
+ admin_ids: ListTeamsAdminsResponseAdminIdsList,
1255
+ response_metadata: S.optional(AnalyticsMessagesActivityResponseResponseMetadata),
1256
+ })).annotate({
1257
+ identifier: "ListTeamsAdminsResponse",
1258
+ });
1259
+ export const ListTeamsOwnersRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
1260
+ team_id: S.String.pipe(T.Query()),
1261
+ limit: S.optional(S.Number.pipe(T.Query())),
1262
+ cursor: S.optional(S.String.pipe(T.Query())),
1263
+ }).pipe(T.Http({ method: "GET", uri: "/admin.teams.owners.list", code: 200 }))).annotate({
1264
+ identifier: "ListTeamsOwnersRequest",
1265
+ });
1266
+ export const ListTeamsOwnersResponseOwnerIdsList = /*@__PURE__*/ S.Array(S.String);
1267
+ export const ListTeamsOwnersResponseResponseMetadata = AnalyticsMessagesActivityResponseResponseMetadata;
1268
+ export const ListTeamsOwnersResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
1269
+ ok: S.Boolean,
1270
+ owner_ids: ListTeamsOwnersResponseOwnerIdsList,
1271
+ response_metadata: S.optional(AnalyticsMessagesActivityResponseResponseMetadata),
1272
+ })).annotate({
1273
+ identifier: "ListTeamsOwnersResponse",
1274
+ });
1275
+ export const ListUsersRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
1276
+ team_id: S.optional(S.String),
1277
+ cursor: S.optional(S.String),
1278
+ is_active: S.optional(S.Boolean),
1279
+ include_deactivated_user_workspaces: S.optional(S.Boolean),
1280
+ only_guests: S.optional(S.Boolean),
1281
+ include_admins: S.optional(S.Boolean),
1282
+ include_owners: S.optional(S.Boolean),
1283
+ limit: S.optional(S.Number),
1284
+ }).pipe(T.Http({ method: "POST", uri: "/admin.users.list", code: 200 }))).annotate({
1285
+ identifier: "ListUsersRequest",
1286
+ });
1287
+ export const ListUsersResponseUsersItemRolesList = /*@__PURE__*/ S.Array(S.String);
1288
+ export const ListUsersResponseUsersItemWorkspacesList = /*@__PURE__*/ S.Array(S.String);
1289
+ export const ListUsersResponseUsersItem = /*@__PURE__*/ S.suspend(() => S.Struct({
1290
+ id: S.String,
1291
+ username: S.optional(S.String),
1292
+ full_name: S.optional(S.String),
1293
+ has_2fa: S.optional(S.Boolean),
1294
+ has_sso: S.optional(S.Boolean),
1295
+ email: S.String,
1296
+ is_admin: S.Boolean,
1297
+ is_owner: S.Boolean,
1298
+ is_primary_owner: S.Boolean,
1299
+ is_restricted: S.Boolean,
1300
+ is_ultra_restricted: S.Boolean,
1301
+ is_bot: S.Boolean,
1302
+ expiration_ts: S.optional(S.Number),
1303
+ roles: S.optional(ListUsersResponseUsersItemRolesList),
1304
+ last_active_ts: S.optional(S.Number),
1305
+ workspaces: S.optional(ListUsersResponseUsersItemWorkspacesList),
1306
+ is_active: S.optional(S.Boolean),
1307
+ date_created: S.optional(S.Number),
1308
+ deactivated_ts: S.optional(S.Number),
1309
+ })).annotate({
1310
+ identifier: "ListUsersResponseUsersItem",
1311
+ });
1312
+ export const ListUsersResponseUsersList = /*@__PURE__*/ S.Array(ListUsersResponseUsersItem);
1313
+ export const ListUsersResponseResponseMetadata = AnalyticsMessagesActivityResponseResponseMetadata;
1314
+ export const ListUsersResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
1315
+ ok: S.Boolean,
1316
+ users: ListUsersResponseUsersList,
1317
+ response_metadata: S.optional(AnalyticsMessagesActivityResponseResponseMetadata),
1318
+ })).annotate({
1319
+ identifier: "ListUsersResponse",
1320
+ });
1321
+ export const ListUsersSessionRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
1322
+ team_id: S.optional(S.String),
1323
+ user_id: S.optional(S.String),
1324
+ limit: S.optional(S.Number),
1325
+ cursor: S.optional(S.String),
1326
+ }).pipe(T.Http({ method: "POST", uri: "/admin.users.session.list", code: 200 }))).annotate({
1327
+ identifier: "ListUsersSessionRequest",
1328
+ });
1329
+ export const ListUsersSessionResponseResponseMetadata = AnalyticsMessagesActivityResponseResponseMetadata;
1330
+ export const ListUsersSessionResponseActiveSessionsItemRecent =
1331
+ /*@__PURE__*/ S.suspend(() => S.Struct({
1332
+ device_hardware: S.optional(S.String),
1333
+ os: S.optional(S.String),
1334
+ os_version: S.optional(S.String),
1335
+ slack_client_version: S.optional(S.String),
1336
+ ip: S.optional(S.String),
1337
+ })).annotate({
1338
+ identifier: "ListUsersSessionResponseActiveSessionsItemRecent",
1339
+ });
1340
+ export const ListUsersSessionResponseActiveSessionsItemCreated =
1341
+ /*@__PURE__*/ S.suspend(() => S.Struct({
1342
+ device_hardware: S.optional(S.String),
1343
+ os: S.optional(S.String),
1344
+ os_version: S.optional(S.String),
1345
+ slack_client_version: S.optional(S.String),
1346
+ ip: S.optional(S.String),
1347
+ })).annotate({
1348
+ identifier: "ListUsersSessionResponseActiveSessionsItemCreated",
1349
+ });
1350
+ export const ListUsersSessionResponseActiveSessionsItem =
1351
+ /*@__PURE__*/ S.suspend(() => S.Struct({
1352
+ user_id: S.String,
1353
+ team_id: S.String,
1354
+ session_id: S.Number,
1355
+ recent: S.optional(ListUsersSessionResponseActiveSessionsItemRecent),
1356
+ created: ListUsersSessionResponseActiveSessionsItemCreated,
1357
+ })).annotate({
1358
+ identifier: "ListUsersSessionResponseActiveSessionsItem",
1359
+ });
1360
+ export const ListUsersSessionResponseActiveSessionsList = /*@__PURE__*/ S.Array(ListUsersSessionResponseActiveSessionsItem);
1361
+ export const ListUsersSessionResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
1362
+ ok: S.Boolean,
1363
+ response_metadata: S.optional(AnalyticsMessagesActivityResponseResponseMetadata),
1364
+ active_sessions: ListUsersSessionResponseActiveSessionsList,
1365
+ })).annotate({
1366
+ identifier: "ListUsersSessionResponse",
1367
+ });
1368
+ export const LookupAppsConfigRequestAppIdsList = /*@__PURE__*/ S.Array(S.String);
1369
+ export const LookupAppsConfigRequestRichLinkPreviewTypesItem = S.String;
1370
+ export const LookupAppsConfigRequestRichLinkPreviewTypesList =
1371
+ /*@__PURE__*/ S.Array(LookupAppsConfigRequestRichLinkPreviewTypesItem);
1372
+ export const LookupAppsConfigRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
1373
+ app_ids: S.optional(LookupAppsConfigRequestAppIdsList),
1374
+ rich_link_preview_types: S.optional(LookupAppsConfigRequestRichLinkPreviewTypesList),
1375
+ }).pipe(T.Http({ method: "POST", uri: "/admin.apps.config.lookup", code: 200 }))).annotate({
1376
+ identifier: "LookupAppsConfigRequest",
1377
+ });
1378
+ export const LookupAppsConfigResponseConfigsItemWorkflowAuthStrategy = S.String;
1379
+ export const LookupAppsConfigResponseConfigsItem = /*@__PURE__*/ S.suspend(() => S.Struct({
1380
+ app_id: S.String,
1381
+ workflow_auth_strategy: LookupAppsConfigResponseConfigsItemWorkflowAuthStrategy,
1382
+ domain_restrictions: S.Unknown,
1383
+ })).annotate({
1384
+ identifier: "LookupAppsConfigResponseConfigsItem",
1385
+ });
1386
+ export const LookupAppsConfigResponseConfigsList = /*@__PURE__*/ S.Array(LookupAppsConfigResponseConfigsItem);
1387
+ export const LookupAppsConfigResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
1388
+ ok: S.Boolean,
1389
+ configs: LookupAppsConfigResponseConfigsList,
1390
+ })).annotate({
1391
+ identifier: "LookupAppsConfigResponse",
1392
+ });
1393
+ export const LookupConversationRequestTeamIdsList = /*@__PURE__*/ S.Array(S.String);
1394
+ export const LookupConversationRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
1395
+ team_ids: LookupConversationRequestTeamIdsList,
1396
+ max_member_count: S.optional(S.Number),
1397
+ last_message_activity_before: S.Number,
1398
+ cursor: S.optional(S.String),
1399
+ limit: S.optional(S.Number),
1400
+ }).pipe(T.Http({
1401
+ method: "POST",
1402
+ uri: "/admin.conversations.lookup",
1403
+ code: 200,
1404
+ contentType: "form-urlencoded",
1405
+ }))).annotate({
1406
+ identifier: "LookupConversationRequest",
1407
+ });
1408
+ export const LookupConversationResponseChannelIdsList = /*@__PURE__*/ S.Array(S.String);
1409
+ export const LookupConversationResponseResponseMetadata = AnalyticsMessagesActivityResponseResponseMetadata;
1410
+ export const LookupConversationResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
1411
+ ok: S.Boolean,
1412
+ channel_ids: LookupConversationResponseChannelIdsList,
1413
+ response_metadata: S.optional(AnalyticsMessagesActivityResponseResponseMetadata),
1414
+ })).annotate({
1415
+ identifier: "LookupConversationResponse",
1416
+ });
1417
+ export const LookupFunctionsPermissionsRequestFunctionIdsList =
1418
+ /*@__PURE__*/ S.Array(S.String);
1419
+ export const LookupFunctionsPermissionsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
1420
+ function_ids: LookupFunctionsPermissionsRequestFunctionIdsList,
1421
+ }).pipe(T.Http({
1422
+ method: "POST",
1423
+ uri: "/admin.functions.permissions.lookup",
1424
+ code: 200,
1425
+ }))).annotate({
1426
+ identifier: "LookupFunctionsPermissionsRequest",
1427
+ });
1428
+ export const LookupFunctionsPermissionsResponsePermissionsMap =
1429
+ /*@__PURE__*/ S.Record(S.String, S.Unknown);
1430
+ export const LookupFunctionsPermissionsResponseMetadataMap =
1431
+ /*@__PURE__*/ S.Record(S.String, S.Unknown);
1432
+ export const LookupFunctionsPermissionsResponseErrorsMap =
1433
+ /*@__PURE__*/ S.Record(S.String, S.Unknown);
1434
+ export const LookupFunctionsPermissionsResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
1435
+ ok: S.Boolean,
1436
+ permissions: LookupFunctionsPermissionsResponsePermissionsMap,
1437
+ metadata: LookupFunctionsPermissionsResponseMetadataMap,
1438
+ errors: LookupFunctionsPermissionsResponseErrorsMap,
1439
+ })).annotate({
1440
+ identifier: "LookupFunctionsPermissionsResponse",
1441
+ });
1442
+ export const LookupWorkflowsPermissionsRequestWorkflowIdsList =
1443
+ /*@__PURE__*/ S.Array(S.String);
1444
+ export const LookupWorkflowsPermissionsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
1445
+ workflow_ids: LookupWorkflowsPermissionsRequestWorkflowIdsList,
1446
+ max_workflow_triggers: S.optional(S.Number),
1447
+ }).pipe(T.Http({
1448
+ method: "POST",
1449
+ uri: "/admin.workflows.permissions.lookup",
1450
+ code: 200,
1451
+ }))).annotate({
1452
+ identifier: "LookupWorkflowsPermissionsRequest",
1453
+ });
1454
+ export const LookupWorkflowsPermissionsResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
1455
+ ok: S.Boolean,
1456
+ })).annotate({
1457
+ identifier: "LookupWorkflowsPermissionsResponse",
1458
+ });
1459
+ export const LookupWorkflowsTriggersTypesPermissionsRequestTriggerTypeIdsList =
1460
+ /*@__PURE__*/ S.Array(S.String);
1461
+ export const LookupWorkflowsTriggersTypesPermissionsRequest =
1462
+ /*@__PURE__*/ S.suspend(() => S.Struct({
1463
+ trigger_type_ids: LookupWorkflowsTriggersTypesPermissionsRequestTriggerTypeIdsList,
1464
+ }).pipe(T.Http({
1465
+ method: "POST",
1466
+ uri: "/admin.workflows.triggers.types.permissions.lookup",
1467
+ code: 200,
1468
+ }))).annotate({
1469
+ identifier: "LookupWorkflowsTriggersTypesPermissionsRequest",
1470
+ });
1471
+ export const LookupWorkflowsTriggersTypesPermissionsResponsePermissionsMap =
1472
+ /*@__PURE__*/ S.Record(S.String, S.Unknown);
1473
+ export const LookupWorkflowsTriggersTypesPermissionsResponseMetadataMap =
1474
+ /*@__PURE__*/ S.Record(S.String, S.Unknown);
1475
+ export const LookupWorkflowsTriggersTypesPermissionsResponse =
1476
+ /*@__PURE__*/ S.suspend(() => S.Struct({
1477
+ ok: S.Boolean,
1478
+ permissions: LookupWorkflowsTriggersTypesPermissionsResponsePermissionsMap,
1479
+ metadata: LookupWorkflowsTriggersTypesPermissionsResponseMetadataMap,
1480
+ })).annotate({
1481
+ identifier: "LookupWorkflowsTriggersTypesPermissionsResponse",
1482
+ });
1483
+ export const RemoveAppsPermissionsRequestUserIdsList = /*@__PURE__*/ S.Array(S.String);
1484
+ export const RemoveAppsPermissionsRequestUsergroupIdsList =
1485
+ /*@__PURE__*/ S.Array(S.String);
1486
+ export const RemoveAppsPermissionsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
1487
+ app_id: S.String,
1488
+ user_ids: S.optional(RemoveAppsPermissionsRequestUserIdsList),
1489
+ usergroup_ids: S.optional(RemoveAppsPermissionsRequestUsergroupIdsList),
1490
+ }).pipe(T.Http({
1491
+ method: "POST",
1492
+ uri: "/admin.apps.permissions.remove",
1493
+ code: 200,
1494
+ }))).annotate({
1495
+ identifier: "RemoveAppsPermissionsRequest",
1496
+ });
1497
+ export const RemoveAppsPermissionsResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
1498
+ ok: S.Boolean,
1499
+ })).annotate({
1500
+ identifier: "RemoveAppsPermissionsResponse",
1501
+ });
1502
+ export const RemoveAssignmentsRequestEntityIdsList = /*@__PURE__*/ S.Array(S.String);
1503
+ export const RemoveAssignmentsRequestUserIdsList = /*@__PURE__*/ S.Array(S.String);
1504
+ export const RemoveAssignmentsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
1505
+ role_id: S.String,
1506
+ entity_ids: RemoveAssignmentsRequestEntityIdsList,
1507
+ user_ids: RemoveAssignmentsRequestUserIdsList,
1508
+ }).pipe(T.Http({
1509
+ method: "POST",
1510
+ uri: "/admin.roles.removeAssignments",
1511
+ code: 200,
1512
+ }))).annotate({
1513
+ identifier: "RemoveAssignmentsRequest",
1514
+ });
1515
+ export const RemoveAssignmentsResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
1516
+ ok: S.Boolean,
1517
+ error: S.optional(S.String),
1518
+ })).annotate({
1519
+ identifier: "RemoveAssignmentsResponse",
1520
+ });
1521
+ export const RemoveChannelsRequestChannelIdsList = /*@__PURE__*/ S.Array(S.String);
1522
+ export const RemoveChannelsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
1523
+ usergroup_id: S.String,
1524
+ channel_ids: RemoveChannelsRequestChannelIdsList,
1525
+ }).pipe(T.Http({
1526
+ method: "POST",
1527
+ uri: "/admin.usergroups.removeChannels",
1528
+ code: 200,
1529
+ }))).annotate({
1530
+ identifier: "RemoveChannelsRequest",
1531
+ });
1532
+ export const RemoveChannelsResponseInvalidChannelsList = /*@__PURE__*/ S.Array(S.String);
1533
+ export const RemoveChannelsResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
1534
+ ok: S.Boolean,
1535
+ error: S.optional(S.String),
1536
+ invalid_channels: S.optional(RemoveChannelsResponseInvalidChannelsList),
1537
+ })).annotate({
1538
+ identifier: "RemoveChannelsResponse",
1539
+ });
1540
+ export const RemoveCustomRetentionRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
1541
+ channel_id: S.String,
1542
+ }).pipe(T.Http({
1543
+ method: "POST",
1544
+ uri: "/admin.conversations.removeCustomRetention",
1545
+ code: 200,
1546
+ }))).annotate({
1547
+ identifier: "RemoveCustomRetentionRequest",
1548
+ });
1549
+ export const RemoveCustomRetentionResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
1550
+ ok: S.Boolean,
1551
+ })).annotate({
1552
+ identifier: "RemoveCustomRetentionResponse",
1553
+ });
1554
+ export const RemoveEmojiRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
1555
+ name: S.String.pipe(T.Query()),
1556
+ }).pipe(T.Http({ method: "GET", uri: "/admin.emoji.remove", code: 200 }))).annotate({
1557
+ identifier: "RemoveEmojiRequest",
1558
+ });
1559
+ export const RemoveEmojiResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
1560
+ ok: S.Boolean,
1561
+ })).annotate({
1562
+ identifier: "RemoveEmojiResponse",
1563
+ });
1564
+ export const RemoveEntitiesRequestEntityIdsList = /*@__PURE__*/ S.Array(S.String);
1565
+ export const RemoveEntitiesRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
1566
+ policy_name: S.String,
1567
+ entity_type: S.Unknown,
1568
+ entity_ids: RemoveEntitiesRequestEntityIdsList,
1569
+ }).pipe(T.Http({
1570
+ method: "POST",
1571
+ uri: "/admin.auth.policy.removeEntities",
1572
+ code: 200,
1573
+ }))).annotate({
1574
+ identifier: "RemoveEntitiesRequest",
1575
+ });
1576
+ export const RemoveEntitiesResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
1577
+ ok: S.Boolean,
1578
+ entity_total_count: S.Number,
1579
+ })).annotate({
1580
+ identifier: "RemoveEntitiesResponse",
1581
+ });
1582
+ export const RemoveGroupRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
1583
+ team_id: S.String.pipe(T.Query()),
1584
+ group_id: S.String.pipe(T.Query()),
1585
+ channel_id: S.String.pipe(T.Query()),
1586
+ }).pipe(T.Http({
1587
+ method: "GET",
1588
+ uri: "/admin.conversations.restrictAccess.removeGroup",
1589
+ code: 200,
1590
+ }))).annotate({
1591
+ identifier: "RemoveGroupRequest",
1592
+ });
1593
+ export const RemoveGroupResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
1594
+ ok: S.Boolean,
1595
+ })).annotate({
1596
+ identifier: "RemoveGroupResponse",
1597
+ });
1598
+ export const RemoveUserRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
1599
+ team_id: S.String,
1600
+ user_id: S.String,
1601
+ }).pipe(T.Http({ method: "POST", uri: "/admin.users.remove", code: 200 }))).annotate({
1602
+ identifier: "RemoveUserRequest",
1603
+ });
1604
+ export const RemoveUserResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
1605
+ ok: S.Boolean,
1606
+ })).annotate({
1607
+ identifier: "RemoveUserResponse",
1608
+ });
1609
+ export const RemoveWorkflowsCollaboratorRequestWorkflowIdsList =
1610
+ /*@__PURE__*/ S.Array(S.String);
1611
+ export const RemoveWorkflowsCollaboratorRequestCollaboratorIdsList =
1612
+ /*@__PURE__*/ S.Array(S.String);
1613
+ export const RemoveWorkflowsCollaboratorRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
1614
+ workflow_ids: RemoveWorkflowsCollaboratorRequestWorkflowIdsList,
1615
+ collaborator_ids: RemoveWorkflowsCollaboratorRequestCollaboratorIdsList,
1616
+ }).pipe(T.Http({
1617
+ method: "POST",
1618
+ uri: "/admin.workflows.collaborators.remove",
1619
+ code: 200,
1620
+ }))).annotate({
1621
+ identifier: "RemoveWorkflowsCollaboratorRequest",
1622
+ });
1623
+ export const RemoveWorkflowsCollaboratorResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
1624
+ ok: S.Boolean,
1625
+ })).annotate({
1626
+ identifier: "RemoveWorkflowsCollaboratorResponse",
1627
+ });
1628
+ export const RenameConversationRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
1629
+ channel_id: S.String,
1630
+ name: S.String,
1631
+ }).pipe(T.Http({ method: "POST", uri: "/admin.conversations.rename", code: 200 }))).annotate({
1632
+ identifier: "RenameConversationRequest",
1633
+ });
1634
+ export const RenameConversationResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
1635
+ ok: S.Boolean,
1636
+ })).annotate({
1637
+ identifier: "RenameConversationResponse",
1638
+ });
1639
+ export const RenameEmojiRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
1640
+ name: S.String.pipe(T.Query()),
1641
+ new_name: S.String.pipe(T.Query()),
1642
+ }).pipe(T.Http({ method: "GET", uri: "/admin.emoji.rename", code: 200 }))).annotate({
1643
+ identifier: "RenameEmojiRequest",
1644
+ });
1645
+ export const RenameEmojiResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
1646
+ ok: S.Boolean,
1647
+ })).annotate({
1648
+ identifier: "RenameEmojiResponse",
1649
+ });
1650
+ export const ResetBulkRequestUserIdsList = /*@__PURE__*/ S.Array(S.String);
1651
+ export const ResetBulkRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
1652
+ user_ids: ResetBulkRequestUserIdsList,
1653
+ mobile_only: S.optional(S.Boolean),
1654
+ web_only: S.optional(S.Boolean),
1655
+ }).pipe(T.Http({
1656
+ method: "POST",
1657
+ uri: "/admin.users.session.resetBulk",
1658
+ code: 200,
1659
+ }))).annotate({
1660
+ identifier: "ResetBulkRequest",
1661
+ });
1662
+ export const ResetBulkResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
1663
+ ok: S.Boolean,
1664
+ })).annotate({
1665
+ identifier: "ResetBulkResponse",
1666
+ });
1667
+ export const ResetUsersSessionRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
1668
+ user_id: S.String,
1669
+ mobile_only: S.optional(S.Boolean),
1670
+ web_only: S.optional(S.Boolean),
1671
+ }).pipe(T.Http({ method: "POST", uri: "/admin.users.session.reset", code: 200 }))).annotate({
1672
+ identifier: "ResetUsersSessionRequest",
1673
+ });
1674
+ export const ResetUsersSessionResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
1675
+ ok: S.Boolean,
1676
+ })).annotate({
1677
+ identifier: "ResetUsersSessionResponse",
1678
+ });
1679
+ export const SearchConversationRequestTeamIdsList = /*@__PURE__*/ S.Array(S.String);
1680
+ export const SearchConversationRequestConnectedTeamIdsList =
1681
+ /*@__PURE__*/ S.Array(S.String);
1682
+ export const SearchConversationRequestSearchChannelTypesList =
1683
+ /*@__PURE__*/ S.Array(S.String);
1684
+ export const SearchConversationRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
1685
+ team_ids: S.optional(SearchConversationRequestTeamIdsList),
1686
+ connected_team_ids: S.optional(SearchConversationRequestConnectedTeamIdsList),
1687
+ query: S.optional(S.String),
1688
+ limit: S.optional(S.Number),
1689
+ cursor: S.optional(S.String),
1690
+ search_channel_types: S.optional(SearchConversationRequestSearchChannelTypesList),
1691
+ sort: S.optional(S.String),
1692
+ sort_dir: S.optional(S.String),
1693
+ total_count_only: S.optional(S.Boolean),
1694
+ }).pipe(T.Http({ method: "POST", uri: "/admin.conversations.search", code: 200 }))).annotate({
1695
+ identifier: "SearchConversationRequest",
1696
+ });
1697
+ export const SearchConversationResponseConversationsList =
1698
+ /*@__PURE__*/ S.Array(S.String);
1699
+ export const SearchConversationResponseResponseMetadata = AnalyticsMessagesActivityResponseResponseMetadata;
1700
+ export const SearchConversationResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
1701
+ ok: S.Boolean,
1702
+ conversations: SearchConversationResponseConversationsList,
1703
+ next_cursor: S.String,
1704
+ total_count: S.Number,
1705
+ error: S.optional(S.String),
1706
+ response_metadata: S.optional(AnalyticsMessagesActivityResponseResponseMetadata),
1707
+ })).annotate({
1708
+ identifier: "SearchConversationResponse",
1709
+ });
1710
+ export const SearchWorkflowRequestCollaboratorIdsList = /*@__PURE__*/ S.Array(S.String);
1711
+ export const SearchWorkflowRequestSource = S.String;
1712
+ export const SearchWorkflowRequestSort = S.String;
1713
+ export const SearchWorkflowRequestSortDir = S.String;
1714
+ export const SearchWorkflowRequestPublishStatus = S.String;
1715
+ export const SearchWorkflowRequestStepFunctionIdsList = /*@__PURE__*/ S.Array(S.String);
1716
+ export const SearchWorkflowRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
1717
+ query: S.optional(S.String),
1718
+ app_id: S.optional(S.String),
1719
+ cursor: S.optional(S.String),
1720
+ limit: S.optional(S.Number),
1721
+ no_collaborators: S.optional(S.Boolean),
1722
+ collaborator_ids: S.optional(SearchWorkflowRequestCollaboratorIdsList),
1723
+ num_trigger_ids: S.optional(S.Number),
1724
+ is_sales_elevate: S.optional(S.Boolean),
1725
+ source: S.optional(SearchWorkflowRequestSource),
1726
+ sort: S.optional(SearchWorkflowRequestSort),
1727
+ sort_dir: S.optional(SearchWorkflowRequestSortDir),
1728
+ trigger_type_id: S.optional(S.String),
1729
+ publish_status: S.optional(SearchWorkflowRequestPublishStatus),
1730
+ step_function_ids: S.optional(SearchWorkflowRequestStepFunctionIdsList),
1731
+ }).pipe(T.Http({ method: "POST", uri: "/admin.workflows.search", code: 200 }))).annotate({
1732
+ identifier: "SearchWorkflowRequest",
1733
+ });
1734
+ export const SearchWorkflowResponseWorkflowsList = /*@__PURE__*/ S.Array(S.Unknown);
1735
+ export const SearchWorkflowResponseResponseMetadata = AnalyticsMessagesActivityResponseResponseMetadata;
1736
+ export const SearchWorkflowResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
1737
+ ok: S.Boolean,
1738
+ workflows: SearchWorkflowResponseWorkflowsList,
1739
+ response_metadata: S.optional(AnalyticsMessagesActivityResponseResponseMetadata),
1740
+ total_found: S.Number,
1741
+ })).annotate({
1742
+ identifier: "SearchWorkflowResponse",
1743
+ });
1744
+ export const SetAdminRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
1745
+ team_id: S.String,
1746
+ user_id: S.String,
1747
+ }).pipe(T.Http({ method: "POST", uri: "/admin.users.setAdmin", code: 200 }))).annotate({
1748
+ identifier: "SetAdminRequest",
1749
+ });
1750
+ export const SetAdminResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
1751
+ ok: S.Boolean,
1752
+ })).annotate({
1753
+ identifier: "SetAdminResponse",
1754
+ });
1755
+ export const SetAppsConfigRequestWorkflowAuthStrategy = S.String;
1756
+ export const SetAppsConfigRequestRichLinkPreviewType = S.String;
1757
+ export const SetAppsConfigRequestDomainRestrictionsUrlsList =
1758
+ /*@__PURE__*/ S.Array(S.String);
1759
+ export const SetAppsConfigRequestDomainRestrictionsEmailsList =
1760
+ /*@__PURE__*/ S.Array(S.String);
1761
+ export const SetAppsConfigRequestDomainRestrictions = /*@__PURE__*/ S.suspend(() => S.Struct({
1762
+ urls: S.optional(SetAppsConfigRequestDomainRestrictionsUrlsList),
1763
+ emails: S.optional(SetAppsConfigRequestDomainRestrictionsEmailsList),
1764
+ })).annotate({
1765
+ identifier: "SetAppsConfigRequestDomainRestrictions",
1766
+ });
1767
+ export const SetAppsConfigRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
1768
+ app_id: S.String,
1769
+ workflow_auth_strategy: S.optional(SetAppsConfigRequestWorkflowAuthStrategy),
1770
+ rich_link_preview_type: S.optional(SetAppsConfigRequestRichLinkPreviewType),
1771
+ domain_restrictions: S.optional(SetAppsConfigRequestDomainRestrictions),
1772
+ }).pipe(T.Http({ method: "POST", uri: "/admin.apps.config.set", code: 200 }))).annotate({
1773
+ identifier: "SetAppsConfigRequest",
1774
+ });
1775
+ export const SetAppsConfigResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
1776
+ ok: S.Boolean,
1777
+ })).annotate({
1778
+ identifier: "SetAppsConfigResponse",
1779
+ });
1780
+ export const SetAppsMcpServersPermissionsRequestPermissionType = S.String;
1781
+ export const SetAppsMcpServersPermissionsRequestUserIdsList =
1782
+ /*@__PURE__*/ S.Array(S.String);
1783
+ export const SetAppsMcpServersPermissionsRequestUsergroupIdsList =
1784
+ /*@__PURE__*/ S.Array(S.String);
1785
+ export const SetAppsMcpServersPermissionsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
1786
+ app_id: S.String,
1787
+ server_id: S.String,
1788
+ permission_type: SetAppsMcpServersPermissionsRequestPermissionType,
1789
+ user_ids: S.optional(SetAppsMcpServersPermissionsRequestUserIdsList),
1790
+ usergroup_ids: S.optional(SetAppsMcpServersPermissionsRequestUsergroupIdsList),
1791
+ }).pipe(T.Http({
1792
+ method: "POST",
1793
+ uri: "/admin.apps.mcp.servers.permissions.set",
1794
+ code: 200,
1795
+ }))).annotate({
1796
+ identifier: "SetAppsMcpServersPermissionsRequest",
1797
+ });
1798
+ export const SetAppsMcpServersPermissionsResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
1799
+ ok: S.Boolean,
1800
+ })).annotate({
1801
+ identifier: "SetAppsMcpServersPermissionsResponse",
1802
+ });
1803
+ export const SetAppsPermissionsRequestPermissionType = S.String;
1804
+ export const SetAppsPermissionsRequestUserIdsList = /*@__PURE__*/ S.Array(S.String);
1805
+ export const SetAppsPermissionsRequestUsergroupIdsList = /*@__PURE__*/ S.Array(S.String);
1806
+ export const SetAppsPermissionsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
1807
+ app_id: S.String,
1808
+ permission_type: SetAppsPermissionsRequestPermissionType,
1809
+ user_ids: S.optional(SetAppsPermissionsRequestUserIdsList),
1810
+ usergroup_ids: S.optional(SetAppsPermissionsRequestUsergroupIdsList),
1811
+ }).pipe(T.Http({ method: "POST", uri: "/admin.apps.permissions.set", code: 200 }))).annotate({
1812
+ identifier: "SetAppsPermissionsRequest",
1813
+ });
1814
+ export const SetAppsPermissionsResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
1815
+ ok: S.Boolean,
1816
+ })).annotate({
1817
+ identifier: "SetAppsPermissionsResponse",
1818
+ });
1819
+ export const SetConversationPrefsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
1820
+ channel_id: S.String,
1821
+ prefs: S.String,
1822
+ }).pipe(T.Http({
1823
+ method: "POST",
1824
+ uri: "/admin.conversations.setConversationPrefs",
1825
+ code: 200,
1826
+ }))).annotate({
1827
+ identifier: "SetConversationPrefsRequest",
1828
+ });
1829
+ export const SetConversationPrefsResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
1830
+ ok: S.Boolean,
1831
+ })).annotate({
1832
+ identifier: "SetConversationPrefsResponse",
1833
+ });
1834
+ export const SetCustomRetentionRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
1835
+ channel_id: S.String,
1836
+ duration_days: S.Number,
1837
+ }).pipe(T.Http({
1838
+ method: "POST",
1839
+ uri: "/admin.conversations.setCustomRetention",
1840
+ code: 200,
1841
+ }))).annotate({
1842
+ identifier: "SetCustomRetentionRequest",
1843
+ });
1844
+ export const SetCustomRetentionResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
1845
+ ok: S.Boolean,
1846
+ })).annotate({
1847
+ identifier: "SetCustomRetentionResponse",
1848
+ });
1849
+ export const SetDefaultChannelsRequestChannelIdsList = /*@__PURE__*/ S.Array(S.String);
1850
+ export const SetDefaultChannelsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
1851
+ team_id: S.String.pipe(T.Query()),
1852
+ channel_ids: SetDefaultChannelsRequestChannelIdsList.pipe(T.Query()),
1853
+ }).pipe(T.Http({
1854
+ method: "GET",
1855
+ uri: "/admin.teams.settings.setDefaultChannels",
1856
+ code: 200,
1857
+ }))).annotate({
1858
+ identifier: "SetDefaultChannelsRequest",
1859
+ });
1860
+ export const SetDefaultChannelsResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
1861
+ ok: S.Boolean,
1862
+ })).annotate({
1863
+ identifier: "SetDefaultChannelsResponse",
1864
+ });
1865
+ export const SetDescriptionRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
1866
+ team_id: S.String,
1867
+ description: S.String,
1868
+ }).pipe(T.Http({
1869
+ method: "POST",
1870
+ uri: "/admin.teams.settings.setDescription",
1871
+ code: 200,
1872
+ }))).annotate({
1873
+ identifier: "SetDescriptionRequest",
1874
+ });
1875
+ export const SetDescriptionResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
1876
+ ok: S.Boolean,
1877
+ })).annotate({
1878
+ identifier: "SetDescriptionResponse",
1879
+ });
1880
+ export const SetDiscoverabilityRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
1881
+ team_id: S.String,
1882
+ discoverability: S.String,
1883
+ }).pipe(T.Http({
1884
+ method: "POST",
1885
+ uri: "/admin.teams.settings.setDiscoverability",
1886
+ code: 200,
1887
+ }))).annotate({
1888
+ identifier: "SetDiscoverabilityRequest",
1889
+ });
1890
+ export const SetDiscoverabilityResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
1891
+ ok: S.Boolean,
1892
+ })).annotate({
1893
+ identifier: "SetDiscoverabilityResponse",
1894
+ });
1895
+ export const SetExpirationRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
1896
+ team_id: S.optional(S.String),
1897
+ user_id: S.String,
1898
+ expiration_ts: S.Number,
1899
+ }).pipe(T.Http({ method: "POST", uri: "/admin.users.setExpiration", code: 200 }))).annotate({
1900
+ identifier: "SetExpirationRequest",
1901
+ });
1902
+ export const SetExpirationResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
1903
+ ok: S.Boolean,
1904
+ })).annotate({
1905
+ identifier: "SetExpirationResponse",
1906
+ });
1907
+ export const SetFunctionsPermissionsRequestVisibility = S.String;
1908
+ export const SetFunctionsPermissionsRequestUserIdsList = /*@__PURE__*/ S.Array(S.Unknown);
1909
+ export const SetFunctionsPermissionsRequestPermissionsItemVisibility = S.String;
1910
+ export const SetFunctionsPermissionsRequestPermissionsItemPermissionType = S.String;
1911
+ export const SetFunctionsPermissionsRequestPermissionsItemUserIdsList =
1912
+ /*@__PURE__*/ S.Array(S.Unknown);
1913
+ export const SetFunctionsPermissionsRequestPermissionsItem =
1914
+ /*@__PURE__*/ S.suspend(() => S.Struct({
1915
+ visibility: SetFunctionsPermissionsRequestPermissionsItemVisibility,
1916
+ permission_type: SetFunctionsPermissionsRequestPermissionsItemPermissionType,
1917
+ user_ids: S.optional(SetFunctionsPermissionsRequestPermissionsItemUserIdsList),
1918
+ })).annotate({
1919
+ identifier: "SetFunctionsPermissionsRequestPermissionsItem",
1920
+ });
1921
+ export const SetFunctionsPermissionsRequestPermissionsList =
1922
+ /*@__PURE__*/ S.Array(SetFunctionsPermissionsRequestPermissionsItem);
1923
+ export const SetFunctionsPermissionsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
1924
+ function_id: S.String,
1925
+ visibility: S.optional(SetFunctionsPermissionsRequestVisibility),
1926
+ user_ids: S.optional(SetFunctionsPermissionsRequestUserIdsList),
1927
+ permissions: S.optional(SetFunctionsPermissionsRequestPermissionsList),
1928
+ }).pipe(T.Http({
1929
+ method: "POST",
1930
+ uri: "/admin.functions.permissions.set",
1931
+ code: 200,
1932
+ }))).annotate({
1933
+ identifier: "SetFunctionsPermissionsRequest",
1934
+ });
1935
+ export const SetFunctionsPermissionsResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
1936
+ ok: S.Boolean,
1937
+ })).annotate({
1938
+ identifier: "SetFunctionsPermissionsResponse",
1939
+ });
1940
+ export const SetIconRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
1941
+ image_url: S.String.pipe(T.Query()),
1942
+ team_id: S.String.pipe(T.Query()),
1943
+ }).pipe(T.Http({ method: "GET", uri: "/admin.teams.settings.setIcon", code: 200 }))).annotate({ identifier: "SetIconRequest" });
1944
+ export const SetIconResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
1945
+ ok: S.Boolean,
1946
+ })).annotate({
1947
+ identifier: "SetIconResponse",
1948
+ });
1949
+ export const SetNameRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
1950
+ team_id: S.String,
1951
+ name: S.String,
1952
+ }).pipe(T.Http({ method: "POST", uri: "/admin.teams.settings.setName", code: 200 }))).annotate({ identifier: "SetNameRequest" });
1953
+ export const SetNameResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
1954
+ ok: S.Boolean,
1955
+ })).annotate({
1956
+ identifier: "SetNameResponse",
1957
+ });
1958
+ export const SetOwnerRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
1959
+ team_id: S.String,
1960
+ user_id: S.String,
1961
+ }).pipe(T.Http({ method: "POST", uri: "/admin.users.setOwner", code: 200 }))).annotate({
1962
+ identifier: "SetOwnerRequest",
1963
+ });
1964
+ export const SetOwnerResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
1965
+ ok: S.Boolean,
1966
+ })).annotate({
1967
+ identifier: "SetOwnerResponse",
1968
+ });
1969
+ export const SetRegularRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
1970
+ team_id: S.String,
1971
+ user_id: S.String,
1972
+ }).pipe(T.Http({ method: "POST", uri: "/admin.users.setRegular", code: 200 }))).annotate({
1973
+ identifier: "SetRegularRequest",
1974
+ });
1975
+ export const SetRegularResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
1976
+ ok: S.Boolean,
1977
+ })).annotate({
1978
+ identifier: "SetRegularResponse",
1979
+ });
1980
+ export const SetSettingsRequestUserIdsList = /*@__PURE__*/ S.Array(S.String);
1981
+ export const SetSettingsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
1982
+ user_ids: SetSettingsRequestUserIdsList,
1983
+ duration: S.optional(S.Number),
1984
+ desktop_app_browser_quit: S.optional(S.Boolean),
1985
+ }).pipe(T.Http({
1986
+ method: "POST",
1987
+ uri: "/admin.users.session.setSettings",
1988
+ code: 200,
1989
+ }))).annotate({
1990
+ identifier: "SetSettingsRequest",
1991
+ });
1992
+ export const SetSettingsResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
1993
+ ok: S.Boolean,
1994
+ })).annotate({
1995
+ identifier: "SetSettingsResponse",
1996
+ });
1997
+ export const SetTeamsRequestTargetTeamIdsList = /*@__PURE__*/ S.Array(S.String);
1998
+ export const SetTeamsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
1999
+ channel_id: S.String,
2000
+ team_id: S.optional(S.String),
2001
+ target_team_ids: S.optional(SetTeamsRequestTargetTeamIdsList),
2002
+ org_channel: S.optional(S.Boolean),
2003
+ }).pipe(T.Http({ method: "POST", uri: "/admin.conversations.setTeams", code: 200 }))).annotate({
2004
+ identifier: "SetTeamsRequest",
2005
+ });
2006
+ export const SetTeamsResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
2007
+ ok: S.Boolean,
2008
+ channel: S.String,
2009
+ })).annotate({
2010
+ identifier: "SetTeamsResponse",
2011
+ });
2012
+ export const SetWorkflowsTriggersTypesPermissionsRequestVisibility = S.String;
2013
+ export const SetWorkflowsTriggersTypesPermissionsRequestUserIdsList =
2014
+ /*@__PURE__*/ S.Array(S.String);
2015
+ export const SetWorkflowsTriggersTypesPermissionsRequestPermissionsPermissionsMap =
2016
+ /*@__PURE__*/ S.Record(S.String, S.Unknown);
2017
+ export const SetWorkflowsTriggersTypesPermissionsRequestPermissions =
2018
+ /*@__PURE__*/ S.suspend(() => S.Struct({
2019
+ permissions: S.optional(SetWorkflowsTriggersTypesPermissionsRequestPermissionsPermissionsMap),
2020
+ })).annotate({
2021
+ identifier: "SetWorkflowsTriggersTypesPermissionsRequestPermissions",
2022
+ });
2023
+ export const SetWorkflowsTriggersTypesPermissionsRequest =
2024
+ /*@__PURE__*/ S.suspend(() => S.Struct({
2025
+ id: S.String,
2026
+ visibility: S.optional(SetWorkflowsTriggersTypesPermissionsRequestVisibility),
2027
+ user_ids: S.optional(SetWorkflowsTriggersTypesPermissionsRequestUserIdsList),
2028
+ permissions: S.optional(SetWorkflowsTriggersTypesPermissionsRequestPermissions),
2029
+ }).pipe(T.Http({
2030
+ method: "POST",
2031
+ uri: "/admin.workflows.triggers.types.permissions.set",
2032
+ code: 200,
2033
+ }))).annotate({
2034
+ identifier: "SetWorkflowsTriggersTypesPermissionsRequest",
2035
+ });
2036
+ export const SetWorkflowsTriggersTypesPermissionsResponse =
2037
+ /*@__PURE__*/ S.suspend(() => S.Struct({
2038
+ ok: S.Boolean,
2039
+ })).annotate({
2040
+ identifier: "SetWorkflowsTriggersTypesPermissionsResponse",
2041
+ });
2042
+ export const TeamsSettingsInfoRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
2043
+ team_id: S.String,
2044
+ }).pipe(T.Http({ method: "POST", uri: "/admin.teams.settings.info", code: 200 }))).annotate({
2045
+ identifier: "TeamsSettingsInfoRequest",
2046
+ });
2047
+ export const TeamsSettingsInfoResponseTeamItemDefaultChannelsList =
2048
+ /*@__PURE__*/ S.Array(S.Unknown);
2049
+ export const TeamsSettingsInfoResponseTeamItem = /*@__PURE__*/ S.suspend(() => S.Struct({
2050
+ id: S.optional(S.String),
2051
+ name: S.optional(S.String),
2052
+ domain: S.optional(S.String),
2053
+ email_domain: S.optional(S.String),
2054
+ icon: S.optional(S.Unknown),
2055
+ enterprise_id: S.optional(S.String),
2056
+ enterprise_name: S.optional(S.String),
2057
+ default_channels: S.optional(TeamsSettingsInfoResponseTeamItemDefaultChannelsList),
2058
+ })).annotate({
2059
+ identifier: "TeamsSettingsInfoResponseTeamItem",
2060
+ });
2061
+ export const TeamsSettingsInfoResponseTeamList = /*@__PURE__*/ S.Array(TeamsSettingsInfoResponseTeamItem);
2062
+ export const TeamsSettingsInfoResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
2063
+ ok: S.Boolean,
2064
+ team: TeamsSettingsInfoResponseTeamList,
2065
+ })).annotate({
2066
+ identifier: "TeamsSettingsInfoResponse",
2067
+ });
2068
+ export const UnarchiveConversationRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
2069
+ channel_id: S.String,
2070
+ }).pipe(T.Http({
2071
+ method: "POST",
2072
+ uri: "/admin.conversations.unarchive",
2073
+ code: 200,
2074
+ }))).annotate({
2075
+ identifier: "UnarchiveConversationRequest",
2076
+ });
2077
+ export const UnarchiveConversationResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
2078
+ ok: S.Boolean,
2079
+ })).annotate({
2080
+ identifier: "UnarchiveConversationResponse",
2081
+ });
2082
+ export const UninstallAppRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
2083
+ app_id: S.String,
2084
+ team_ids: S.optional(S.String),
2085
+ enterprise_id: S.optional(S.String),
2086
+ }).pipe(T.Http({ method: "POST", uri: "/admin.apps.uninstall", code: 200 }))).annotate({
2087
+ identifier: "UninstallAppRequest",
2088
+ });
2089
+ export const UninstallAppResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
2090
+ ok: S.Boolean,
2091
+ })).annotate({
2092
+ identifier: "UninstallAppResponse",
2093
+ });
2094
+ export const UnlinkObjectsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
2095
+ channel: S.String,
2096
+ new_name: S.String,
2097
+ }).pipe(T.Http({
2098
+ method: "POST",
2099
+ uri: "/admin.conversations.unlinkObjects",
2100
+ code: 200,
2101
+ }))).annotate({
2102
+ identifier: "UnlinkObjectsRequest",
2103
+ });
2104
+ export const UnlinkObjectsResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
2105
+ ok: S.Boolean,
2106
+ })).annotate({
2107
+ identifier: "UnlinkObjectsResponse",
2108
+ });
2109
+ export const UnpublishWorkflowRequestWorkflowIdsList = /*@__PURE__*/ S.Array(S.String);
2110
+ export const UnpublishWorkflowRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
2111
+ workflow_ids: UnpublishWorkflowRequestWorkflowIdsList,
2112
+ }).pipe(T.Http({ method: "POST", uri: "/admin.workflows.unpublish", code: 200 }))).annotate({
2113
+ identifier: "UnpublishWorkflowRequest",
2114
+ });
2115
+ export const UnpublishWorkflowResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
2116
+ ok: S.Boolean,
2117
+ })).annotate({
2118
+ identifier: "UnpublishWorkflowResponse",
2119
+ });
2120
+ export const UpdateBarrierRequestBarrieredFromUsergroupIdsList =
2121
+ /*@__PURE__*/ S.Array(S.String);
2122
+ export const UpdateBarrierRequestRestrictedSubjectsItem = S.String;
2123
+ export const UpdateBarrierRequestRestrictedSubjectsList = /*@__PURE__*/ S.Array(UpdateBarrierRequestRestrictedSubjectsItem);
2124
+ export const UpdateBarrierRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
2125
+ barrier_id: S.String,
2126
+ primary_usergroup_id: S.String,
2127
+ barriered_from_usergroup_ids: UpdateBarrierRequestBarrieredFromUsergroupIdsList,
2128
+ restricted_subjects: UpdateBarrierRequestRestrictedSubjectsList,
2129
+ }).pipe(T.Http({
2130
+ method: "POST",
2131
+ uri: "/admin.barriers.update",
2132
+ code: 200,
2133
+ contentType: "form-urlencoded",
2134
+ }))).annotate({
2135
+ identifier: "UpdateBarrierRequest",
2136
+ });
2137
+ export const UpdateBarrierResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
2138
+ ok: S.Boolean,
2139
+ barrier: S.Unknown,
2140
+ })).annotate({
2141
+ identifier: "UpdateBarrierResponse",
2142
+ });
2143
+ export const UpdateItemRequestTrustedCidrList = /*@__PURE__*/ S.Array(S.String);
2144
+ export const UpdateItemRequestTrustedAsnsList = /*@__PURE__*/ S.Array(S.Number);
2145
+ export const UpdateItemRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
2146
+ trusted_cidr: S.optional(UpdateItemRequestTrustedCidrList),
2147
+ trusted_asns: S.optional(UpdateItemRequestTrustedAsnsList),
2148
+ }).pipe(T.Http({
2149
+ method: "POST",
2150
+ uri: "/admin.audit.anomaly.allow.updateItem",
2151
+ code: 200,
2152
+ }))).annotate({
2153
+ identifier: "UpdateItemRequest",
2154
+ });
2155
+ export const UpdateItemResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
2156
+ ok: S.Boolean,
2157
+ })).annotate({
2158
+ identifier: "UpdateItemResponse",
2159
+ });
2160
+ /** 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 */
2161
+ export const addAlias = /*@__PURE__*/ API.make(() => ({
2162
+ input: AddAliasRequest,
2163
+ output: AddAliasResponse,
2164
+ errors: [SlackError, SlackRateLimited],
2165
+ protocol: SlackProtocol,
2166
+ retry: Retry.Retry,
2167
+ }));
2168
+ /** Grant permission for entities to access an app that has its permission type set to named_entities Required scopes — user: `admin.apps:write` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `invalid_auth` — Invalid authorization token - `access_denied` — This actor does not have access to the permissions on this resource. - `invalid_permission_type` — This app requires permission_type to be set as named_entities before adding users. - `no_valid_named_entities` — None of the provided named entities were valid - `too_many_named_entities` — Too many named entities passed into the app permissions setting. - `app_not_found` — This app does not exist. - `not_an_enterprise` — This feature is only available on Enterprise Grid plans. - `app_acl_not_found` — This app does not have an ACL. - `internal_error` — Internal error - `user_not_found` — Value passed for `user_ids` was invalid. - `invalid_entities` — Invalid entities. - `invalid_channel_restriction_mode` — Cannot add channels when channel_restriction_mode is all_channels. Use set to configure a restriction mode first. - `channel_not_found` — One or more channel IDs are not valid. - `failed_to_update_channels` — An error occurred while updating the channel restriction list. See https://docs.slack.dev/reference/methods/admin.apps.permissions.add */
2169
+ export const addAppsPermissions = /*@__PURE__*/ API.make(() => ({
2170
+ input: AddAppsPermissionsRequest,
2171
+ output: AddAppsPermissionsResponse,
2172
+ errors: [SlackError, SlackRateLimited],
2173
+ protocol: SlackProtocol,
2174
+ retry: Retry.Retry,
2175
+ }));
2176
+ /** 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 */
2177
+ export const addAssignments = /*@__PURE__*/ API.make(() => ({
2178
+ input: AddAssignmentsRequest,
2179
+ output: AddAssignmentsResponse,
2180
+ errors: [SlackError, SlackRateLimited],
2181
+ protocol: SlackProtocol,
2182
+ retry: Retry.Retry,
2183
+ }));
2184
+ /** 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 */
2185
+ export const addChannels = /*@__PURE__*/ API.make(() => ({
2186
+ input: AddChannelsRequest,
2187
+ output: AddChannelsResponse,
2188
+ errors: [SlackError, SlackRateLimited],
2189
+ protocol: SlackProtocol,
2190
+ retry: Retry.Retry,
2191
+ }));
2192
+ /** 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 */
2193
+ export const addEmoji = /*@__PURE__*/ API.make(() => ({
2194
+ input: AddEmojiRequest,
2195
+ output: AddEmojiResponse,
2196
+ errors: [SlackError, SlackRateLimited],
2197
+ protocol: SlackProtocol,
2198
+ retry: Retry.Retry,
2199
+ }));
2200
+ /** 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 */
2201
+ export const addGroup = /*@__PURE__*/ API.make(() => ({
2202
+ input: AddGroupRequest,
2203
+ output: AddGroupResponse,
2204
+ errors: [SlackError, SlackRateLimited],
2205
+ protocol: SlackProtocol,
2206
+ retry: Retry.Retry,
2207
+ }));
2208
+ /** Associate one or more default workspaces with an organization-wide IDP group. Required scopes — user: `admin.teams:write` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `auto_provision_failure` — A failure occurred while assigning IDP group members to a specific workspace; see `errors` element for a list of failed team IDs. - `internal_error` — An unexpected error occurred. - `invalid_team_ids` — One or more team IDs provided were invalid; see the `errors` field in the response for the list of invalid team IDs. - `multi_workspace_restriction` — The IDP group has members that cannot be linked to more than one workspace. - `no_team_ids_given` — The `team_ids` parameter was empty. - `restricted_action` — The calling user cannot update the specified usergroup. - `team_limit_exceeded` — The number of teams associated with the org group would exceed the limit. - `usergroup_not_found` — `usergroup_id` wasn't found. See https://docs.slack.dev/reference/methods/admin.usergroups.addTeams */
2209
+ export const addTeams = /*@__PURE__*/ API.make(() => ({
2210
+ input: AddTeamsRequest,
2211
+ output: AddTeamsResponse,
2212
+ errors: [SlackError, SlackRateLimited],
2213
+ protocol: SlackProtocol,
2214
+ retry: Retry.Retry,
2215
+ }));
2216
+ /** 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 */
2217
+ export const addWorkflowsCollaborator = /*@__PURE__*/ API.make(() => ({
2218
+ input: AddWorkflowsCollaboratorRequest,
2219
+ output: AddWorkflowsCollaboratorResponse,
2220
+ errors: [SlackError, SlackRateLimited],
2221
+ protocol: SlackProtocol,
2222
+ retry: Retry.Retry,
2223
+ }));
2224
+ /** Retrieves activity metrics for messages from a given channel. Required scopes — user: `admin.analytics:read` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `channel_not_found` — The specified channel was not found. - `invalid_arguments` — Required arguments either were not provided or contain invalid values. - `restricted_action` — The token does not have permission to access this resource. - `not_an_enterprise` — The user token does not belong to an enterprise. - `restricted_plan_level` — The enterprise plan level does not have access to this feature. See https://docs.slack.dev/reference/methods/admin.analytics.messages.activity */
2225
+ export const analyticsMessagesActivity = /*@__PURE__*/ API.make(() => ({
2226
+ input: AnalyticsMessagesActivityRequest,
2227
+ output: AnalyticsMessagesActivityResponse,
2228
+ errors: [SlackError, SlackRateLimited],
2229
+ protocol: SlackProtocol,
2230
+ retry: Retry.Retry,
2231
+ }));
2232
+ /** Retrieves metadata for a list of messages from a given channel. Required scopes — user: `admin.analytics:read` Method-specific errors (the `error` slug on the SlackError): - `channel_not_found` — The specified channel was not found - `invalid_arguments` — Required arguments either were not provided or contain invalid values. - `not_an_enterprise` — The user token does not belong to an enterprise. - `analytics_unavailable` — We were unable to find analytics for you. - `admin_analytics_disabled` — We're having issues returning your analytics. Please wait and try again. - `restricted_plan_level` — This feature is not available for your current product plan. - `different_team_owns_message_metadata_for_channel` — Message metadata must be accessed by an actor from the same team that owns the channel. This may be the org or a specific enterprise workspace. See https://docs.slack.dev/reference/methods/admin.analytics.messages.metadata */
2233
+ export const analyticsMessagesMetadata = /*@__PURE__*/ API.makePaginated(() => ({
2234
+ input: AnalyticsMessagesMetadataRequest,
2235
+ output: AnalyticsMessagesMetadataResponse,
2236
+ errors: [SlackError, SlackRateLimited],
2237
+ protocol: SlackProtocol,
2238
+ retry: Retry.Retry,
2239
+ pagination: {
2240
+ mode: "cursor",
2241
+ inputToken: "cursor",
2242
+ outputToken: "response_metadata.next_cursor",
2243
+ items: "messages",
2244
+ },
2245
+ }), slackPaginate);
2246
+ /** 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 */
2247
+ export const approveApp = /*@__PURE__*/ API.make(() => ({
2248
+ input: ApproveAppRequest,
2249
+ output: ApproveAppResponse,
2250
+ errors: [SlackError, SlackRateLimited],
2251
+ protocol: SlackProtocol,
2252
+ retry: Retry.Retry,
2253
+ }));
2254
+ /** 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 */
2255
+ export const approveInviteRequest = /*@__PURE__*/ API.make(() => ({
2256
+ input: ApproveInviteRequestRequest,
2257
+ output: ApproveInviteRequestResponse,
2258
+ errors: [SlackError, SlackRateLimited],
2259
+ protocol: SlackProtocol,
2260
+ retry: Retry.Retry,
2261
+ }));
2262
+ /** 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 */
2263
+ export const appsRestrict = /*@__PURE__*/ API.make(() => ({
2264
+ input: AppsRestrictRequest,
2265
+ output: AppsRestrictResponse,
2266
+ errors: [SlackError, SlackRateLimited],
2267
+ protocol: SlackProtocol,
2268
+ retry: Retry.Retry,
2269
+ }));
2270
+ /** 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 */
2271
+ export const archiveConversation = /*@__PURE__*/ API.make(() => ({
2272
+ input: ArchiveConversationRequest,
2273
+ output: ArchiveConversationResponse,
2274
+ errors: [SlackError, SlackRateLimited],
2275
+ protocol: SlackProtocol,
2276
+ retry: Retry.Retry,
2277
+ }));
2278
+ /** 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 */
2279
+ export const assignEntities = /*@__PURE__*/ API.make(() => ({
2280
+ input: AssignEntitiesRequest,
2281
+ output: AssignEntitiesResponse,
2282
+ errors: [SlackError, SlackRateLimited],
2283
+ protocol: SlackProtocol,
2284
+ retry: Retry.Retry,
2285
+ }));
2286
+ /** Add an Enterprise user to a workspace. Required scopes — user: `admin.users:write` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `feature_not_enabled` — The Admin APIs feature is not enabled for this team - `invalid_role_for_user` — The requested status is incompatible with the user's role on another workspace. - `invited_user_not_created` — The invited user could not be created. - `invited_user_not_reactivated` — The invited user could not be reactivated. - `invitor_cannot_see_channel` — The invitor is not part of one or many channels that the user was requested to be added to - `not_an_admin` — This method wasn't called by an admin. - `team_not_found` — `team_id was not found. - `user_already_team_member` — The given user is already active on the given team. - `user_is_bot` — The given user is a bot from an app. This api only works with humans. - `user_not_found` — `user_id` was not found. See https://docs.slack.dev/reference/methods/admin.users.assign */
2287
+ export const assignUser = /*@__PURE__*/ API.make(() => ({
2288
+ input: AssignUserRequest,
2289
+ output: AssignUserResponse,
2290
+ errors: [SlackError, SlackRateLimited],
2291
+ protocol: SlackProtocol,
2292
+ retry: Retry.Retry,
2293
+ }));
2294
+ /** 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 */
2295
+ export const bulkArchive = /*@__PURE__*/ API.make(() => ({
2296
+ input: BulkArchiveRequest,
2297
+ output: BulkArchiveResponse,
2298
+ errors: [SlackError, SlackRateLimited],
2299
+ protocol: SlackProtocol,
2300
+ retry: Retry.Retry,
2301
+ }));
2302
+ /** 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 */
2303
+ export const bulkDelete = /*@__PURE__*/ API.make(() => ({
2304
+ input: BulkDeleteRequest,
2305
+ output: BulkDeleteResponse,
2306
+ errors: [SlackError, SlackRateLimited],
2307
+ protocol: SlackProtocol,
2308
+ retry: Retry.Retry,
2309
+ }));
2310
+ /** 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 */
2311
+ export const bulkMove = /*@__PURE__*/ API.make(() => ({
2312
+ input: BulkMoveRequest,
2313
+ output: BulkMoveResponse,
2314
+ errors: [SlackError, SlackRateLimited],
2315
+ protocol: SlackProtocol,
2316
+ retry: Retry.Retry,
2317
+ }));
2318
+ /** Exclude channels from Slack AI in bulk Required scopes — user: `admin.conversations:write` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `action_already_in_progress` — Another bulk action request is currently in progress - `internal_error` — Something unexpected happened, try again in a little bit. Sorry for that! - `no_valid_channels` — All input channels are invalid - `restricted_action` — User does not have permission to perform this action - `feature_not_enabled` — The feature is not enabled See https://docs.slack.dev/reference/methods/admin.conversations.bulkSetExcludeFromSlackAi */
2319
+ export const bulkSetExcludeFromSlackAi = /*@__PURE__*/ API.make(() => ({
2320
+ input: BulkSetExcludeFromSlackAiRequest,
2321
+ output: BulkSetExcludeFromSlackAiResponse,
2322
+ errors: [SlackError, SlackRateLimited],
2323
+ protocol: SlackProtocol,
2324
+ retry: Retry.Retry,
2325
+ }));
2326
+ /** 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 */
2327
+ export const cancelAppsRequest = /*@__PURE__*/ API.make(() => ({
2328
+ input: CancelAppsRequestRequest,
2329
+ output: CancelAppsRequestResponse,
2330
+ errors: [SlackError, SlackRateLimited],
2331
+ protocol: SlackProtocol,
2332
+ retry: Retry.Retry,
2333
+ }));
2334
+ /** 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 */
2335
+ export const clearResolution = /*@__PURE__*/ API.make(() => ({
2336
+ input: ClearResolutionRequest,
2337
+ output: ClearResolutionResponse,
2338
+ errors: [SlackError, SlackRateLimited],
2339
+ protocol: SlackProtocol,
2340
+ retry: Retry.Retry,
2341
+ }));
2342
+ /** 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 */
2343
+ export const clearSettings = /*@__PURE__*/ API.make(() => ({
2344
+ input: ClearSettingsRequest,
2345
+ output: ClearSettingsResponse,
2346
+ errors: [SlackError, SlackRateLimited],
2347
+ protocol: SlackProtocol,
2348
+ retry: Retry.Retry,
2349
+ }));
2350
+ /** 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 */
2351
+ export const convertToPrivate = /*@__PURE__*/ API.make(() => ({
2352
+ input: ConvertToPrivateRequest,
2353
+ output: ConvertToPrivateResponse,
2354
+ errors: [SlackError, SlackRateLimited],
2355
+ protocol: SlackProtocol,
2356
+ retry: Retry.Retry,
2357
+ }));
2358
+ /** 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 */
2359
+ export const convertToPublic = /*@__PURE__*/ API.make(() => ({
2360
+ input: ConvertToPublicRequest,
2361
+ output: ConvertToPublicResponse,
2362
+ errors: [SlackError, SlackRateLimited],
2363
+ protocol: SlackProtocol,
2364
+ retry: Retry.Retry,
2365
+ }));
2366
+ /** 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 */
2367
+ export const createBarrier = /*@__PURE__*/ API.make(() => ({
2368
+ input: CreateBarrierRequest,
2369
+ output: CreateBarrierResponse,
2370
+ errors: [SlackError, SlackRateLimited],
2371
+ protocol: SlackProtocol,
2372
+ retry: Retry.Retry,
2373
+ }));
2374
+ /** 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 */
2375
+ export const createConversation = /*@__PURE__*/ API.make(() => ({
2376
+ input: CreateConversationRequest,
2377
+ output: CreateConversationResponse,
2378
+ errors: [SlackError, SlackRateLimited],
2379
+ protocol: SlackProtocol,
2380
+ retry: Retry.Retry,
2381
+ }));
2382
+ /** Create a Salesforce channel for the corresponding object provided. Required scopes — user: `admin.conversations:manage_objects` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `restricted_action` — User does not have access to perform this action. - `record_not_found` — Value passed for `object_id` is invalid. - `invalid_org_id` — Value passed for `salesforce_org_id` is invalid. - `feature_not_enabled` — Feature not enabled. - `channel_already_exists` — Object is linked to a different channel. - `missing_record_channel_config` — Record Channels are not enabled for the given object type. See https://docs.slack.dev/reference/methods/admin.conversations.createForObjects */
2383
+ export const createForObjects = /*@__PURE__*/ API.make(() => ({
2384
+ input: CreateForObjectsRequest,
2385
+ output: CreateForObjectsResponse,
2386
+ errors: [SlackError, SlackRateLimited],
2387
+ protocol: SlackProtocol,
2388
+ retry: Retry.Retry,
2389
+ }));
2390
+ /** 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 */
2391
+ export const createTeam = /*@__PURE__*/ API.make(() => ({
2392
+ input: CreateTeamRequest,
2393
+ output: CreateTeamResponse,
2394
+ errors: [SlackError, SlackRateLimited],
2395
+ protocol: SlackProtocol,
2396
+ retry: Retry.Retry,
2397
+ }));
2398
+ /** 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 */
2399
+ export const deleteBarrier = /*@__PURE__*/ API.make(() => ({
2400
+ input: DeleteBarrierRequest,
2401
+ output: DeleteBarrierResponse,
2402
+ errors: [SlackError, SlackRateLimited],
2403
+ protocol: SlackProtocol,
2404
+ retry: Retry.Retry,
2405
+ }));
2406
+ /** 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 */
2407
+ export const deleteConversation = /*@__PURE__*/ API.make(() => ({
2408
+ input: DeleteConversationRequest,
2409
+ output: DeleteConversationResponse,
2410
+ errors: [SlackError, SlackRateLimited],
2411
+ protocol: SlackProtocol,
2412
+ retry: Retry.Retry,
2413
+ }));
2414
+ /** 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 */
2415
+ export const disconnectShared = /*@__PURE__*/ API.make(() => ({
2416
+ input: DisconnectSharedRequest,
2417
+ output: DisconnectSharedResponse,
2418
+ errors: [SlackError, SlackRateLimited],
2419
+ protocol: SlackProtocol,
2420
+ retry: Retry.Retry,
2421
+ }));
2422
+ /** 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 */
2423
+ export const exportUsersUnsupportedVersion = /*@__PURE__*/ API.make(() => ({
2424
+ input: ExportUsersUnsupportedVersionRequest,
2425
+ output: ExportUsersUnsupportedVersionResponse,
2426
+ errors: [SlackError, SlackRateLimited],
2427
+ protocol: SlackProtocol,
2428
+ retry: Retry.Retry,
2429
+ }));
2430
+ /** 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 */
2431
+ export const getConversationPrefs = /*@__PURE__*/ API.make(() => ({
2432
+ input: GetConversationPrefsRequest,
2433
+ output: GetConversationPrefsResponse,
2434
+ errors: [SlackError, SlackRateLimited],
2435
+ protocol: SlackProtocol,
2436
+ retry: Retry.Retry,
2437
+ }));
2438
+ /** 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 */
2439
+ export const getCustomRetention = /*@__PURE__*/ API.make(() => ({
2440
+ input: GetCustomRetentionRequest,
2441
+ output: GetCustomRetentionResponse,
2442
+ errors: [SlackError, SlackRateLimited],
2443
+ protocol: SlackProtocol,
2444
+ retry: Retry.Retry,
2445
+ }));
2446
+ /** 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 */
2447
+ export const getEntities = /*@__PURE__*/ API.makePaginated(() => ({
2448
+ input: GetEntitiesRequest,
2449
+ output: GetEntitiesResponse,
2450
+ errors: [SlackError, SlackRateLimited],
2451
+ protocol: SlackProtocol,
2452
+ retry: Retry.Retry,
2453
+ pagination: {
2454
+ mode: "cursor",
2455
+ inputToken: "cursor",
2456
+ outputToken: "response_metadata.next_cursor",
2457
+ items: "entities",
2458
+ pageSize: "limit",
2459
+ },
2460
+ }), slackPaginate);
2461
+ /** 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 */
2462
+ export const getExpiration = /*@__PURE__*/ API.make(() => ({
2463
+ input: GetExpirationRequest,
2464
+ output: GetExpirationResponse,
2465
+ errors: [SlackError, SlackRateLimited],
2466
+ protocol: SlackProtocol,
2467
+ retry: Retry.Retry,
2468
+ }));
2469
+ /** 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 */
2470
+ export const getFile = /*@__PURE__*/ API.make(() => ({
2471
+ input: GetFileRequest,
2472
+ output: GetFileResponse,
2473
+ errors: [SlackError, SlackRateLimited],
2474
+ protocol: SlackProtocol,
2475
+ retry: Retry.Retry,
2476
+ }));
2477
+ /** 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 */
2478
+ export const getItem = /*@__PURE__*/ API.make(() => ({
2479
+ input: GetItemRequest,
2480
+ output: GetItemResponse,
2481
+ errors: [SlackError, SlackRateLimited],
2482
+ protocol: SlackProtocol,
2483
+ retry: Retry.Retry,
2484
+ }));
2485
+ /** 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 */
2486
+ export const getSettings = /*@__PURE__*/ API.make(() => ({
2487
+ input: GetSettingsRequest,
2488
+ output: GetSettingsResponse,
2489
+ errors: [SlackError, SlackRateLimited],
2490
+ protocol: SlackProtocol,
2491
+ retry: Retry.Retry,
2492
+ }));
2493
+ /** 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 */
2494
+ export const getTeams = /*@__PURE__*/ API.make(() => ({
2495
+ input: GetTeamsRequest,
2496
+ output: GetTeamsResponse,
2497
+ errors: [SlackError, SlackRateLimited],
2498
+ protocol: SlackProtocol,
2499
+ retry: Retry.Retry,
2500
+ }));
2501
+ /** 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 */
2502
+ export const invalidateUsersSession = /*@__PURE__*/ API.make(() => ({
2503
+ input: InvalidateUsersSessionRequest,
2504
+ output: InvalidateUsersSessionResponse,
2505
+ errors: [SlackError, SlackRateLimited],
2506
+ protocol: SlackProtocol,
2507
+ retry: Retry.Retry,
2508
+ }));
2509
+ /** 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 */
2510
+ export const inviteConversation = /*@__PURE__*/ API.make(() => ({
2511
+ input: InviteConversationRequest,
2512
+ output: InviteConversationResponse,
2513
+ errors: [SlackError, SlackRateLimited],
2514
+ protocol: SlackProtocol,
2515
+ retry: Retry.Retry,
2516
+ }));
2517
+ /** 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 */
2518
+ export const inviteRequestsDeny = /*@__PURE__*/ API.make(() => ({
2519
+ input: InviteRequestsDenyRequest,
2520
+ output: InviteRequestsDenyResponse,
2521
+ errors: [SlackError, SlackRateLimited],
2522
+ protocol: SlackProtocol,
2523
+ retry: Retry.Retry,
2524
+ }));
2525
+ /** 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 */
2526
+ export const inviteUser = /*@__PURE__*/ API.make(() => ({
2527
+ input: InviteUserRequest,
2528
+ output: InviteUserResponse,
2529
+ errors: [SlackError, SlackRateLimited],
2530
+ protocol: SlackProtocol,
2531
+ retry: Retry.Retry,
2532
+ }));
2533
+ /** 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 */
2534
+ export const linkObjects = /*@__PURE__*/ API.make(() => ({
2535
+ input: LinkObjectsRequest,
2536
+ output: LinkObjectsResponse,
2537
+ errors: [SlackError, SlackRateLimited],
2538
+ protocol: SlackProtocol,
2539
+ retry: Retry.Retry,
2540
+ }));
2541
+ /** 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 */
2542
+ export const listAppsActivities = /*@__PURE__*/ API.makePaginated(() => ({
2543
+ input: ListAppsActivitiesRequest,
2544
+ output: ListAppsActivitiesResponse,
2545
+ errors: [SlackError, SlackRateLimited],
2546
+ protocol: SlackProtocol,
2547
+ retry: Retry.Retry,
2548
+ pagination: {
2549
+ mode: "cursor",
2550
+ inputToken: "cursor",
2551
+ outputToken: "response_metadata.next_cursor",
2552
+ items: "activities",
2553
+ pageSize: "limit",
2554
+ },
2555
+ }), slackPaginate);
2556
+ /** 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 */
2557
+ export const listAppsApproved = /*@__PURE__*/ API.makePaginated(() => ({
2558
+ input: ListAppsApprovedRequest,
2559
+ output: ListAppsApprovedResponse,
2560
+ errors: [SlackError, SlackRateLimited],
2561
+ protocol: SlackProtocol,
2562
+ retry: Retry.Retry,
2563
+ pagination: {
2564
+ mode: "cursor",
2565
+ inputToken: "cursor",
2566
+ outputToken: "response_metadata.next_cursor",
2567
+ items: "approved_apps",
2568
+ pageSize: "limit",
2569
+ },
2570
+ }), slackPaginate);
2571
+ /** 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 */
2572
+ export const listAppsMcpServers = /*@__PURE__*/ API.makePaginated(() => ({
2573
+ input: ListAppsMcpServersRequest,
2574
+ output: ListAppsMcpServersResponse,
2575
+ errors: [SlackError, SlackRateLimited],
2576
+ protocol: SlackProtocol,
2577
+ retry: Retry.Retry,
2578
+ pagination: {
2579
+ mode: "cursor",
2580
+ inputToken: "cursor",
2581
+ outputToken: "response_metadata.next_cursor",
2582
+ items: "servers",
2583
+ pageSize: "limit",
2584
+ },
2585
+ }), slackPaginate);
2586
+ /** 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 */
2587
+ export const listAppsMcpServersPermissions = /*@__PURE__*/ API.make(() => ({
2588
+ input: ListAppsMcpServersPermissionsRequest,
2589
+ output: ListAppsMcpServersPermissionsResponse,
2590
+ errors: [SlackError, SlackRateLimited],
2591
+ protocol: SlackProtocol,
2592
+ retry: Retry.Retry,
2593
+ }));
2594
+ /** 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 */
2595
+ export const listAppsPermissions = /*@__PURE__*/ API.make(() => ({
2596
+ input: ListAppsPermissionsRequest,
2597
+ output: ListAppsPermissionsResponse,
2598
+ errors: [SlackError, SlackRateLimited],
2599
+ protocol: SlackProtocol,
2600
+ retry: Retry.Retry,
2601
+ }));
2602
+ /** List app requests for a team/workspace. Required scopes — user: `admin.apps:read` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `app_management_app_not_installed_on_org` — The app management app must be installed on the org. - `enterprise_not_found` — Returned when enterprise id is not found. - `feature_not_enabled` — Returned when the Admin APIs feature is not enabled for this team - `invalid_cursor` — Value passed for `cursor` was not valid or is no longer valid. - `invalid_auth` — invalid token or actor does not have access - `not_allowed` — The user is not allowed to access this API method - `not_an_admin` — This method is only accessible by org owners and admins - `restricted_action` — The action is restricted for this team - `user_is_restricted` — This method is only accessible by org owners, admins, and integration managers - `no_team_or_enterprise_provided` — Must provide team ID or enterprise ID - `team_not_found` — Returned when team id is not found. - `too_many_teams_provided` — Please provide only `team_id` OR `enterprise_id` See https://docs.slack.dev/reference/methods/admin.apps.requests.list */
2603
+ export const listAppsRequests = /*@__PURE__*/ API.makePaginated(() => ({
2604
+ input: ListAppsRequestsRequest,
2605
+ output: ListAppsRequestsResponse,
2606
+ errors: [SlackError, SlackRateLimited],
2607
+ protocol: SlackProtocol,
2608
+ retry: Retry.Retry,
2609
+ pagination: {
2610
+ mode: "cursor",
2611
+ inputToken: "cursor",
2612
+ outputToken: "response_metadata.next_cursor",
2613
+ items: "app_requests",
2614
+ pageSize: "limit",
2615
+ },
2616
+ }), slackPaginate);
2617
+ /** 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 */
2618
+ export const listAppsRestricted = /*@__PURE__*/ API.makePaginated(() => ({
2619
+ input: ListAppsRestrictedRequest,
2620
+ output: ListAppsRestrictedResponse,
2621
+ errors: [SlackError, SlackRateLimited],
2622
+ protocol: SlackProtocol,
2623
+ retry: Retry.Retry,
2624
+ pagination: {
2625
+ mode: "cursor",
2626
+ inputToken: "cursor",
2627
+ outputToken: "response_metadata.next_cursor",
2628
+ items: "restricted_apps",
2629
+ pageSize: "limit",
2630
+ },
2631
+ }), slackPaginate);
2632
+ /** 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 */
2633
+ export const listAssignments = /*@__PURE__*/ API.makePaginated(() => ({
2634
+ input: ListAssignmentsRequest,
2635
+ output: ListAssignmentsResponse,
2636
+ errors: [SlackError, SlackRateLimited],
2637
+ protocol: SlackProtocol,
2638
+ retry: Retry.Retry,
2639
+ pagination: {
2640
+ mode: "cursor",
2641
+ inputToken: "cursor",
2642
+ outputToken: "response_metadata.next_cursor",
2643
+ items: "role_assignments",
2644
+ pageSize: "limit",
2645
+ },
2646
+ }), slackPaginate);
2647
+ /** 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 */
2648
+ export const listBarriers = /*@__PURE__*/ API.makePaginated(() => ({
2649
+ input: ListBarriersRequest,
2650
+ output: ListBarriersResponse,
2651
+ errors: [SlackError, SlackRateLimited],
2652
+ protocol: SlackProtocol,
2653
+ retry: Retry.Retry,
2654
+ pagination: {
2655
+ mode: "cursor",
2656
+ inputToken: "cursor",
2657
+ outputToken: "response_metadata.next_cursor",
2658
+ items: "barriers",
2659
+ pageSize: "limit",
2660
+ },
2661
+ }), slackPaginate);
2662
+ /** 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 */
2663
+ export const listChannels = /*@__PURE__*/ API.make(() => ({
2664
+ input: ListChannelsRequest,
2665
+ output: ListChannelsResponse,
2666
+ errors: [SlackError, SlackRateLimited],
2667
+ protocol: SlackProtocol,
2668
+ retry: Retry.Retry,
2669
+ }));
2670
+ /** 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 */
2671
+ export const listEmoji = /*@__PURE__*/ API.make(() => ({
2672
+ input: ListEmojiRequest,
2673
+ output: ListEmojiResponse,
2674
+ errors: [SlackError, SlackRateLimited],
2675
+ protocol: SlackProtocol,
2676
+ retry: Retry.Retry,
2677
+ }));
2678
+ /** 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 */
2679
+ export const listFunctions = /*@__PURE__*/ API.makePaginated(() => ({
2680
+ input: ListFunctionsRequest,
2681
+ output: ListFunctionsResponse,
2682
+ errors: [SlackError, SlackRateLimited],
2683
+ protocol: SlackProtocol,
2684
+ retry: Retry.Retry,
2685
+ pagination: {
2686
+ mode: "cursor",
2687
+ inputToken: "cursor",
2688
+ outputToken: "response_metadata.next_cursor",
2689
+ items: "functions",
2690
+ pageSize: "limit",
2691
+ },
2692
+ }), slackPaginate);
2693
+ /** 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 */
2694
+ export const listGroups = /*@__PURE__*/ API.make(() => ({
2695
+ input: ListGroupsRequest,
2696
+ output: ListGroupsResponse,
2697
+ errors: [SlackError, SlackRateLimited],
2698
+ protocol: SlackProtocol,
2699
+ retry: Retry.Retry,
2700
+ }));
2701
+ /** 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 */
2702
+ export const listInviteRequests = /*@__PURE__*/ API.makePaginated(() => ({
2703
+ input: ListInviteRequestsRequest,
2704
+ output: ListInviteRequestsResponse,
2705
+ errors: [SlackError, SlackRateLimited],
2706
+ protocol: SlackProtocol,
2707
+ retry: Retry.Retry,
2708
+ pagination: {
2709
+ mode: "cursor",
2710
+ inputToken: "cursor",
2711
+ outputToken: "response_metadata.next_cursor",
2712
+ items: "invite_requests",
2713
+ pageSize: "limit",
2714
+ },
2715
+ }), slackPaginate);
2716
+ /** 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 */
2717
+ export const listInviteRequestsApproved = /*@__PURE__*/ API.makePaginated(() => ({
2718
+ input: ListInviteRequestsApprovedRequest,
2719
+ output: ListInviteRequestsApprovedResponse,
2720
+ errors: [SlackError, SlackRateLimited],
2721
+ protocol: SlackProtocol,
2722
+ retry: Retry.Retry,
2723
+ pagination: {
2724
+ mode: "cursor",
2725
+ inputToken: "cursor",
2726
+ outputToken: "response_metadata.next_cursor",
2727
+ items: "approved_requests",
2728
+ pageSize: "limit",
2729
+ },
2730
+ }), slackPaginate);
2731
+ /** 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 */
2732
+ export const listInviteRequestsDenied = /*@__PURE__*/ API.makePaginated(() => ({
2733
+ input: ListInviteRequestsDeniedRequest,
2734
+ output: ListInviteRequestsDeniedResponse,
2735
+ errors: [SlackError, SlackRateLimited],
2736
+ protocol: SlackProtocol,
2737
+ retry: Retry.Retry,
2738
+ pagination: {
2739
+ mode: "cursor",
2740
+ inputToken: "cursor",
2741
+ outputToken: "response_metadata.next_cursor",
2742
+ items: "denied_requests",
2743
+ pageSize: "limit",
2744
+ },
2745
+ }), slackPaginate);
2746
+ /** 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 */
2747
+ export const listOriginalConnectedChannelInfo = /*@__PURE__*/ API.makePaginated(() => ({
2748
+ input: ListOriginalConnectedChannelInfoRequest,
2749
+ output: ListOriginalConnectedChannelInfoResponse,
2750
+ errors: [SlackError, SlackRateLimited],
2751
+ protocol: SlackProtocol,
2752
+ retry: Retry.Retry,
2753
+ pagination: {
2754
+ mode: "cursor",
2755
+ inputToken: "cursor",
2756
+ outputToken: "response_metadata.next_cursor",
2757
+ items: "channels",
2758
+ pageSize: "limit",
2759
+ },
2760
+ }), slackPaginate);
2761
+ /** 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 */
2762
+ export const listTeams = /*@__PURE__*/ API.makePaginated(() => ({
2763
+ input: ListTeamsRequest,
2764
+ output: ListTeamsResponse,
2765
+ errors: [SlackError, SlackRateLimited],
2766
+ protocol: SlackProtocol,
2767
+ retry: Retry.Retry,
2768
+ pagination: {
2769
+ mode: "cursor",
2770
+ inputToken: "cursor",
2771
+ outputToken: "response_metadata.next_cursor",
2772
+ items: "teams",
2773
+ pageSize: "limit",
2774
+ },
2775
+ }), slackPaginate);
2776
+ /** 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 */
2777
+ export const listTeamsAdmins = /*@__PURE__*/ API.makePaginated(() => ({
2778
+ input: ListTeamsAdminsRequest,
2779
+ output: ListTeamsAdminsResponse,
2780
+ errors: [SlackError, SlackRateLimited],
2781
+ protocol: SlackProtocol,
2782
+ retry: Retry.Retry,
2783
+ pagination: {
2784
+ mode: "cursor",
2785
+ inputToken: "cursor",
2786
+ outputToken: "response_metadata.next_cursor",
2787
+ items: "admin_ids",
2788
+ pageSize: "limit",
2789
+ },
2790
+ }), slackPaginate);
2791
+ /** 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 */
2792
+ export const listTeamsOwners = /*@__PURE__*/ API.makePaginated(() => ({
2793
+ input: ListTeamsOwnersRequest,
2794
+ output: ListTeamsOwnersResponse,
2795
+ errors: [SlackError, SlackRateLimited],
2796
+ protocol: SlackProtocol,
2797
+ retry: Retry.Retry,
2798
+ pagination: {
2799
+ mode: "cursor",
2800
+ inputToken: "cursor",
2801
+ outputToken: "response_metadata.next_cursor",
2802
+ items: "owner_ids",
2803
+ pageSize: "limit",
2804
+ },
2805
+ }), slackPaginate);
2806
+ /** 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 */
2807
+ export const listUsers = /*@__PURE__*/ API.makePaginated(() => ({
2808
+ input: ListUsersRequest,
2809
+ output: ListUsersResponse,
2810
+ errors: [SlackError, SlackRateLimited],
2811
+ protocol: SlackProtocol,
2812
+ retry: Retry.Retry,
2813
+ pagination: {
2814
+ mode: "cursor",
2815
+ inputToken: "cursor",
2816
+ outputToken: "response_metadata.next_cursor",
2817
+ items: "users",
2818
+ pageSize: "limit",
2819
+ },
2820
+ }), slackPaginate);
2821
+ /** 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 */
2822
+ export const listUsersSession = /*@__PURE__*/ API.makePaginated(() => ({
2823
+ input: ListUsersSessionRequest,
2824
+ output: ListUsersSessionResponse,
2825
+ errors: [SlackError, SlackRateLimited],
2826
+ protocol: SlackProtocol,
2827
+ retry: Retry.Retry,
2828
+ pagination: {
2829
+ mode: "cursor",
2830
+ inputToken: "cursor",
2831
+ outputToken: "response_metadata.next_cursor",
2832
+ items: "active_sessions",
2833
+ pageSize: "limit",
2834
+ },
2835
+ }), slackPaginate);
2836
+ /** 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 */
2837
+ export const lookupAppsConfig = /*@__PURE__*/ API.make(() => ({
2838
+ input: LookupAppsConfigRequest,
2839
+ output: LookupAppsConfigResponse,
2840
+ errors: [SlackError, SlackRateLimited],
2841
+ protocol: SlackProtocol,
2842
+ retry: Retry.Retry,
2843
+ }));
2844
+ /** 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 */
2845
+ export const lookupConversation = /*@__PURE__*/ API.makePaginated(() => ({
2846
+ input: LookupConversationRequest,
2847
+ output: LookupConversationResponse,
2848
+ errors: [SlackError, SlackRateLimited],
2849
+ protocol: SlackProtocol,
2850
+ retry: Retry.Retry,
2851
+ pagination: {
2852
+ mode: "cursor",
2853
+ inputToken: "cursor",
2854
+ outputToken: "response_metadata.next_cursor",
2855
+ items: "channel_ids",
2856
+ pageSize: "limit",
2857
+ },
2858
+ }), slackPaginate);
2859
+ /** 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 */
2860
+ export const lookupFunctionsPermissions = /*@__PURE__*/ API.make(() => ({
2861
+ input: LookupFunctionsPermissionsRequest,
2862
+ output: LookupFunctionsPermissionsResponse,
2863
+ errors: [SlackError, SlackRateLimited],
2864
+ protocol: SlackProtocol,
2865
+ retry: Retry.Retry,
2866
+ }));
2867
+ /** 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 */
2868
+ export const lookupWorkflowsPermissions = /*@__PURE__*/ API.make(() => ({
2869
+ input: LookupWorkflowsPermissionsRequest,
2870
+ output: LookupWorkflowsPermissionsResponse,
2871
+ errors: [SlackError, SlackRateLimited],
2872
+ protocol: SlackProtocol,
2873
+ retry: Retry.Retry,
2874
+ }));
2875
+ /** 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 */
2876
+ export const lookupWorkflowsTriggersTypesPermissions = /*@__PURE__*/ API.make(() => ({
2877
+ input: LookupWorkflowsTriggersTypesPermissionsRequest,
2878
+ output: LookupWorkflowsTriggersTypesPermissionsResponse,
2879
+ errors: [SlackError, SlackRateLimited],
2880
+ protocol: SlackProtocol,
2881
+ retry: Retry.Retry,
2882
+ }));
2883
+ /** Revoke an entity's access to an app that has its permission type set to named_entities Required scopes — user: `admin.apps:write` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `invalid_auth` — Invalid authorization token - `access_denied` — This actor does not have access to the permissions on this resource. - `named_entities_cannot_be_empty` — There must be at least one valid named entity - `app_not_found` — This app does not exist. - `not_an_enterprise` — This feature is only available on Enterprise Grid plans. - `invalid_permission_type` — This app requires permission_type to be set as named_entities before removing users. - `too_many_named_entities` — Too many named entities passed into the app permissions setting. - `app_acl_not_found` — This app does not have an ACL. - `internal_error` — Internal error - `user_not_found` — Value passed for `user_ids` was invalid. - `invalid_channel_restriction_mode` — Cannot remove channels when channel_restriction_mode is all_channels. - `channel_not_found` — One or more channel IDs are not valid. - `failed_to_update_channels` — An error occurred while updating the channel restriction list. See https://docs.slack.dev/reference/methods/admin.apps.permissions.remove */
2884
+ export const removeAppsPermissions = /*@__PURE__*/ API.make(() => ({
2885
+ input: RemoveAppsPermissionsRequest,
2886
+ output: RemoveAppsPermissionsResponse,
2887
+ errors: [SlackError, SlackRateLimited],
2888
+ protocol: SlackProtocol,
2889
+ retry: Retry.Retry,
2890
+ }));
2891
+ /** Removes a set of users from a role for the given scopes and entities Required scopes — user: `admin.roles:write` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `failed_for_some_entities` — At least one role scope ID was invalid - `failed_for_some_users` — At least one user ID was invalid - `failed_for_some_users_and_entities` — At least one role scope ID was invalid - `feature_not_enabled` — This API is currently not enabled. - `invalid_actor` — This API is only enabled for the Admins/Owners. - `invalid_role_id` — The role type passed does not exist. - `no_valid_entities` — None of the entities passed were valid. - `no_valid_users` — None of the users passed were valid. - `too_many_entities` — More than 10 role scopes were passed. - `too_many_users` — More than 10 users were passed. - `cannot_modify_role_admin` — Cannot modify role admin. See https://docs.slack.dev/reference/methods/admin.roles.removeAssignments */
2892
+ export const removeAssignments = /*@__PURE__*/ API.make(() => ({
2893
+ input: RemoveAssignmentsRequest,
2894
+ output: RemoveAssignmentsResponse,
2895
+ errors: [SlackError, SlackRateLimited],
2896
+ protocol: SlackProtocol,
2897
+ retry: Retry.Retry,
2898
+ }));
2899
+ /** 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 */
2900
+ export const removeChannels = /*@__PURE__*/ API.make(() => ({
2901
+ input: RemoveChannelsRequest,
2902
+ output: RemoveChannelsResponse,
2903
+ errors: [SlackError, SlackRateLimited],
2904
+ protocol: SlackProtocol,
2905
+ retry: Retry.Retry,
2906
+ }));
2907
+ /** 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 */
2908
+ export const removeCustomRetention = /*@__PURE__*/ API.make(() => ({
2909
+ input: RemoveCustomRetentionRequest,
2910
+ output: RemoveCustomRetentionResponse,
2911
+ errors: [SlackError, SlackRateLimited],
2912
+ protocol: SlackProtocol,
2913
+ retry: Retry.Retry,
2914
+ }));
2915
+ /** 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 */
2916
+ export const removeEmoji = /*@__PURE__*/ API.make(() => ({
2917
+ input: RemoveEmojiRequest,
2918
+ output: RemoveEmojiResponse,
2919
+ errors: [SlackError, SlackRateLimited],
2920
+ protocol: SlackProtocol,
2921
+ retry: Retry.Retry,
2922
+ }));
2923
+ /** 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 */
2924
+ export const removeEntities = /*@__PURE__*/ API.make(() => ({
2925
+ input: RemoveEntitiesRequest,
2926
+ output: RemoveEntitiesResponse,
2927
+ errors: [SlackError, SlackRateLimited],
2928
+ protocol: SlackProtocol,
2929
+ retry: Retry.Retry,
2930
+ }));
2931
+ /** 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 */
2932
+ export const removeGroup = /*@__PURE__*/ API.make(() => ({
2933
+ input: RemoveGroupRequest,
2934
+ output: RemoveGroupResponse,
2935
+ errors: [SlackError, SlackRateLimited],
2936
+ protocol: SlackProtocol,
2937
+ retry: Retry.Retry,
2938
+ }));
2939
+ /** 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 */
2940
+ export const removeUser = /*@__PURE__*/ API.make(() => ({
2941
+ input: RemoveUserRequest,
2942
+ output: RemoveUserResponse,
2943
+ errors: [SlackError, SlackRateLimited],
2944
+ protocol: SlackProtocol,
2945
+ retry: Retry.Retry,
2946
+ }));
2947
+ /** 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 */
2948
+ export const removeWorkflowsCollaborator = /*@__PURE__*/ API.make(() => ({
2949
+ input: RemoveWorkflowsCollaboratorRequest,
2950
+ output: RemoveWorkflowsCollaboratorResponse,
2951
+ errors: [SlackError, SlackRateLimited],
2952
+ protocol: SlackProtocol,
2953
+ retry: Retry.Retry,
2954
+ }));
2955
+ /** Rename a public or private channel. Required scopes — user: `admin.conversations:write` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `channel_not_found` — The value passed for `channel_id` was invalid. - `channel_type_not_supported` — The provided `channel_id` was a DM, MPDM, or the 'general' channel. - `could_not_rename_channel` — The channel could not be renamed. - `default_org_wide_channel` — The default org-wide channel can't be renamed. - `feature_not_enabled` — The token provided doesn't have access to this method. - `invalid_name_maxlength` — The channel name exceeds the maximum allowed length. - `name_taken` — The channel's name is already being used elsewhere. - `restricted_action` — A workspace preference prevents the authenticated user from renaming a channel. See https://docs.slack.dev/reference/methods/admin.conversations.rename */
2956
+ export const renameConversation = /*@__PURE__*/ API.make(() => ({
2957
+ input: RenameConversationRequest,
2958
+ output: RenameConversationResponse,
2959
+ errors: [SlackError, SlackRateLimited],
2960
+ protocol: SlackProtocol,
2961
+ retry: Retry.Retry,
2962
+ }));
2963
+ /** 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 */
2964
+ export const renameEmoji = /*@__PURE__*/ API.make(() => ({
2965
+ input: RenameEmojiRequest,
2966
+ output: RenameEmojiResponse,
2967
+ errors: [SlackError, SlackRateLimited],
2968
+ protocol: SlackProtocol,
2969
+ retry: Retry.Retry,
2970
+ }));
2971
+ /** 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 */
2972
+ export const resetBulk = /*@__PURE__*/ API.make(() => ({
2973
+ input: ResetBulkRequest,
2974
+ output: ResetBulkResponse,
2975
+ errors: [SlackError, SlackRateLimited],
2976
+ protocol: SlackProtocol,
2977
+ retry: Retry.Retry,
2978
+ }));
2979
+ /** 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 */
2980
+ export const resetUsersSession = /*@__PURE__*/ API.make(() => ({
2981
+ input: ResetUsersSessionRequest,
2982
+ output: ResetUsersSessionResponse,
2983
+ errors: [SlackError, SlackRateLimited],
2984
+ protocol: SlackProtocol,
2985
+ retry: Retry.Retry,
2986
+ }));
2987
+ /** 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 */
2988
+ export const searchConversation = /*@__PURE__*/ API.makePaginated(() => ({
2989
+ input: SearchConversationRequest,
2990
+ output: SearchConversationResponse,
2991
+ errors: [SlackError, SlackRateLimited],
2992
+ protocol: SlackProtocol,
2993
+ retry: Retry.Retry,
2994
+ pagination: {
2995
+ mode: "cursor",
2996
+ inputToken: "cursor",
2997
+ outputToken: "response_metadata.next_cursor",
2998
+ items: "conversations",
2999
+ pageSize: "limit",
3000
+ },
3001
+ }), slackPaginate);
3002
+ /** 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 */
3003
+ export const searchWorkflow = /*@__PURE__*/ API.makePaginated(() => ({
3004
+ input: SearchWorkflowRequest,
3005
+ output: SearchWorkflowResponse,
3006
+ errors: [SlackError, SlackRateLimited],
3007
+ protocol: SlackProtocol,
3008
+ retry: Retry.Retry,
3009
+ pagination: {
3010
+ mode: "cursor",
3011
+ inputToken: "cursor",
3012
+ outputToken: "response_metadata.next_cursor",
3013
+ items: "workflows",
3014
+ pageSize: "limit",
3015
+ },
3016
+ }), slackPaginate);
3017
+ /** 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 */
3018
+ export const setAdmin = /*@__PURE__*/ API.make(() => ({
3019
+ input: SetAdminRequest,
3020
+ output: SetAdminResponse,
3021
+ errors: [SlackError, SlackRateLimited],
3022
+ protocol: SlackProtocol,
3023
+ retry: Retry.Retry,
3024
+ }));
3025
+ /** 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 */
3026
+ export const setAppsConfig = /*@__PURE__*/ API.make(() => ({
3027
+ input: SetAppsConfigRequest,
3028
+ output: SetAppsConfigResponse,
3029
+ errors: [SlackError, SlackRateLimited],
3030
+ protocol: SlackProtocol,
3031
+ retry: Retry.Retry,
3032
+ }));
3033
+ /** 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 */
3034
+ export const setAppsMcpServersPermissions = /*@__PURE__*/ API.make(() => ({
3035
+ input: SetAppsMcpServersPermissionsRequest,
3036
+ output: SetAppsMcpServersPermissionsResponse,
3037
+ errors: [SlackError, SlackRateLimited],
3038
+ protocol: SlackProtocol,
3039
+ retry: Retry.Retry,
3040
+ }));
3041
+ /** Set the permission type for who can access an app Required scopes — user: `admin.apps:write` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `invalid_auth` — Invalid authorization token - `access_denied` — This actor does not have access to the permissions on this resource. - `invalid_permission_type` — This app requires permission_type to be set as named_entities before adding users. - `named_entities_cannot_be_empty` — Must pass at least one valid named entity. - `no_valid_named_entities` — None of the provided named entities were valid - `too_many_named_entities` — Too many named_entities passed into the app permissions setting. - `app_not_found` — This app does not exist. - `not_an_enterprise` — This feature is only available on Enterprise Grid plans. - `user_not_found` — This actor does not have access to at least one valid named entity. - `usergroup_not_found` — The usergroup is not valid. - `invalid_channel_restriction_mode` — The channel_restriction_mode value is not valid. - `channel_ids_required` — channel_ids is required when channel_restriction_mode is specific_channels or all_channels_except. - `channel_not_found` — One or more channel IDs are not valid. See https://docs.slack.dev/reference/methods/admin.apps.permissions.set */
3042
+ export const setAppsPermissions = /*@__PURE__*/ API.make(() => ({
3043
+ input: SetAppsPermissionsRequest,
3044
+ output: SetAppsPermissionsResponse,
3045
+ errors: [SlackError, SlackRateLimited],
3046
+ protocol: SlackProtocol,
3047
+ retry: Retry.Retry,
3048
+ }));
3049
+ /** 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 */
3050
+ export const setConversationPrefs = /*@__PURE__*/ API.make(() => ({
3051
+ input: SetConversationPrefsRequest,
3052
+ output: SetConversationPrefsResponse,
3053
+ errors: [SlackError, SlackRateLimited],
3054
+ protocol: SlackProtocol,
3055
+ retry: Retry.Retry,
3056
+ }));
3057
+ /** 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 */
3058
+ export const setCustomRetention = /*@__PURE__*/ API.make(() => ({
3059
+ input: SetCustomRetentionRequest,
3060
+ output: SetCustomRetentionResponse,
3061
+ errors: [SlackError, SlackRateLimited],
3062
+ protocol: SlackProtocol,
3063
+ retry: Retry.Retry,
3064
+ }));
3065
+ /** 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 */
3066
+ export const setDefaultChannels = /*@__PURE__*/ API.make(() => ({
3067
+ input: SetDefaultChannelsRequest,
3068
+ output: SetDefaultChannelsResponse,
3069
+ errors: [SlackError, SlackRateLimited],
3070
+ protocol: SlackProtocol,
3071
+ retry: Retry.Retry,
3072
+ }));
3073
+ /** 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 */
3074
+ export const setDescription = /*@__PURE__*/ API.make(() => ({
3075
+ input: SetDescriptionRequest,
3076
+ output: SetDescriptionResponse,
3077
+ errors: [SlackError, SlackRateLimited],
3078
+ protocol: SlackProtocol,
3079
+ retry: Retry.Retry,
3080
+ }));
3081
+ /** 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 */
3082
+ export const setDiscoverability = /*@__PURE__*/ API.make(() => ({
3083
+ input: SetDiscoverabilityRequest,
3084
+ output: SetDiscoverabilityResponse,
3085
+ errors: [SlackError, SlackRateLimited],
3086
+ protocol: SlackProtocol,
3087
+ retry: Retry.Retry,
3088
+ }));
3089
+ /** 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 */
3090
+ export const setExpiration = /*@__PURE__*/ API.make(() => ({
3091
+ input: SetExpirationRequest,
3092
+ output: SetExpirationResponse,
3093
+ errors: [SlackError, SlackRateLimited],
3094
+ protocol: SlackProtocol,
3095
+ retry: Retry.Retry,
3096
+ }));
3097
+ /** 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 */
3098
+ export const setFunctionsPermissions = /*@__PURE__*/ API.make(() => ({
3099
+ input: SetFunctionsPermissionsRequest,
3100
+ output: SetFunctionsPermissionsResponse,
3101
+ errors: [SlackError, SlackRateLimited],
3102
+ protocol: SlackProtocol,
3103
+ retry: Retry.Retry,
3104
+ }));
3105
+ /** 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 */
3106
+ export const setIcon = /*@__PURE__*/ API.make(() => ({
3107
+ input: SetIconRequest,
3108
+ output: SetIconResponse,
3109
+ errors: [SlackError, SlackRateLimited],
3110
+ protocol: SlackProtocol,
3111
+ retry: Retry.Retry,
3112
+ }));
3113
+ /** 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 */
3114
+ export const setName = /*@__PURE__*/ API.make(() => ({
3115
+ input: SetNameRequest,
3116
+ output: SetNameResponse,
3117
+ errors: [SlackError, SlackRateLimited],
3118
+ protocol: SlackProtocol,
3119
+ retry: Retry.Retry,
3120
+ }));
3121
+ /** Set an existing regular user or admin to be a workspace or org owner. Required scopes — user: `admin.users:write` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `cannot_modify_primary_owner` — The primary owner cannot be modified. - `failed_to_set_user_to_owner` — The change to the user's role failed. - `failed_to_set_owner_on_workspaces` — Failed to set the user as an owner on all workspaces. - `feature_not_enabled` — The Admin APIs feature is not enabled for this team. - `invalid_role_for_user` — The user cannot be made into an owner. - `not_an_admin` — This method can only be accessed by org owners and admins. - `not_an_owner` — This method can only be accessed by org owners. The app's installing user must retain org owner status for this method to function. - `not_supported` — This is not a supported action. - `team_not_found` — `team_id` was not found. - `user_must_be_in_workspace` — This user must be a member of at least one workspace. - `user_not_found` — The requested user was not found. See https://docs.slack.dev/reference/methods/admin.users.setOwner */
3122
+ export const setOwner = /*@__PURE__*/ API.make(() => ({
3123
+ input: SetOwnerRequest,
3124
+ output: SetOwnerResponse,
3125
+ errors: [SlackError, SlackRateLimited],
3126
+ protocol: SlackProtocol,
3127
+ retry: Retry.Retry,
3128
+ }));
3129
+ /** 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 */
3130
+ export const setRegular = /*@__PURE__*/ API.make(() => ({
3131
+ input: SetRegularRequest,
3132
+ output: SetRegularResponse,
3133
+ errors: [SlackError, SlackRateLimited],
3134
+ protocol: SlackProtocol,
3135
+ retry: Retry.Retry,
3136
+ }));
3137
+ /** 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 */
3138
+ export const setSettings = /*@__PURE__*/ API.make(() => ({
3139
+ input: SetSettingsRequest,
3140
+ output: SetSettingsResponse,
3141
+ errors: [SlackError, SlackRateLimited],
3142
+ protocol: SlackProtocol,
3143
+ retry: Retry.Retry,
3144
+ }));
3145
+ /** 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 */
3146
+ export const setTeams = /*@__PURE__*/ API.make(() => ({
3147
+ input: SetTeamsRequest,
3148
+ output: SetTeamsResponse,
3149
+ errors: [SlackError, SlackRateLimited],
3150
+ protocol: SlackProtocol,
3151
+ retry: Retry.Retry,
3152
+ }));
3153
+ /** 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 */
3154
+ export const setWorkflowsTriggersTypesPermissions = /*@__PURE__*/ API.make(() => ({
3155
+ input: SetWorkflowsTriggersTypesPermissionsRequest,
3156
+ output: SetWorkflowsTriggersTypesPermissionsResponse,
3157
+ errors: [SlackError, SlackRateLimited],
3158
+ protocol: SlackProtocol,
3159
+ retry: Retry.Retry,
3160
+ }));
3161
+ /** 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 */
3162
+ export const teamsSettingsInfo = /*@__PURE__*/ API.make(() => ({
3163
+ input: TeamsSettingsInfoRequest,
3164
+ output: TeamsSettingsInfoResponse,
3165
+ errors: [SlackError, SlackRateLimited],
3166
+ protocol: SlackProtocol,
3167
+ retry: Retry.Retry,
3168
+ }));
3169
+ /** 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 */
3170
+ export const unarchiveConversation = /*@__PURE__*/ API.make(() => ({
3171
+ input: UnarchiveConversationRequest,
3172
+ output: UnarchiveConversationResponse,
3173
+ errors: [SlackError, SlackRateLimited],
3174
+ protocol: SlackProtocol,
3175
+ retry: Retry.Retry,
3176
+ }));
3177
+ /** 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 */
3178
+ export const uninstallApp = /*@__PURE__*/ API.make(() => ({
3179
+ input: UninstallAppRequest,
3180
+ output: UninstallAppResponse,
3181
+ errors: [SlackError, SlackRateLimited],
3182
+ protocol: SlackProtocol,
3183
+ retry: Retry.Retry,
3184
+ }));
3185
+ /** 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 */
3186
+ export const unlinkObjects = /*@__PURE__*/ API.make(() => ({
3187
+ input: UnlinkObjectsRequest,
3188
+ output: UnlinkObjectsResponse,
3189
+ errors: [SlackError, SlackRateLimited],
3190
+ protocol: SlackProtocol,
3191
+ retry: Retry.Retry,
3192
+ }));
3193
+ /** 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 */
3194
+ export const unpublishWorkflow = /*@__PURE__*/ API.make(() => ({
3195
+ input: UnpublishWorkflowRequest,
3196
+ output: UnpublishWorkflowResponse,
3197
+ errors: [SlackError, SlackRateLimited],
3198
+ protocol: SlackProtocol,
3199
+ retry: Retry.Retry,
3200
+ }));
3201
+ /** 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 */
3202
+ export const updateBarrier = /*@__PURE__*/ API.make(() => ({
3203
+ input: UpdateBarrierRequest,
3204
+ output: UpdateBarrierResponse,
3205
+ errors: [SlackError, SlackRateLimited],
3206
+ protocol: SlackProtocol,
3207
+ retry: Retry.Retry,
3208
+ }));
3209
+ /** 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 */
3210
+ export const updateItem = /*@__PURE__*/ API.make(() => ({
3211
+ input: UpdateItemRequest,
3212
+ output: UpdateItemResponse,
3213
+ errors: [SlackError, SlackRateLimited],
3214
+ protocol: SlackProtocol,
3215
+ retry: Retry.Retry,
3216
+ }));
3217
+ //# sourceMappingURL=admin.js.map