@distilled.cloud/slack 1.0.0-rc.13 → 1.0.0-rc.14

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 (218) hide show
  1. package/lib/credentials.d.ts +2 -2
  2. package/lib/credentials.d.ts.map +1 -1
  3. package/lib/credentials.js +3 -3
  4. package/lib/credentials.js.map +1 -1
  5. package/lib/errors.d.ts.map +1 -1
  6. package/lib/errors.js +1 -1
  7. package/lib/errors.js.map +1 -1
  8. package/lib/index.d.ts +3 -3
  9. package/lib/index.d.ts.map +1 -1
  10. package/lib/index.js +3 -3
  11. package/lib/index.js.map +1 -1
  12. package/lib/pagination.d.ts.map +1 -1
  13. package/lib/pagination.js.map +1 -1
  14. package/lib/protocol.d.ts +3 -3
  15. package/lib/protocol.d.ts.map +1 -1
  16. package/lib/protocol.js +12 -18
  17. package/lib/protocol.js.map +1 -1
  18. package/lib/protocol.test.d.ts +2 -0
  19. package/lib/protocol.test.d.ts.map +1 -0
  20. package/lib/protocol.test.js +288 -0
  21. package/lib/protocol.test.js.map +1 -0
  22. package/lib/retry.d.ts +1 -1
  23. package/lib/retry.d.ts.map +1 -1
  24. package/lib/retry.js +1 -1
  25. package/lib/retry.js.map +1 -1
  26. package/lib/services/admin.d.ts +236 -29
  27. package/lib/services/admin.d.ts.map +1 -1
  28. package/lib/services/admin.js +417 -749
  29. package/lib/services/admin.js.map +1 -1
  30. package/lib/services/agents.d.ts +423 -0
  31. package/lib/services/agents.d.ts.map +1 -0
  32. package/lib/services/agents.js +315 -0
  33. package/lib/services/agents.js.map +1 -0
  34. package/lib/services/api.d.ts +1 -1
  35. package/lib/services/api.d.ts.map +1 -1
  36. package/lib/services/api.js +4 -6
  37. package/lib/services/api.js.map +1 -1
  38. package/lib/services/apps.d.ts +21 -3
  39. package/lib/services/apps.d.ts.map +1 -1
  40. package/lib/services/apps.js +65 -133
  41. package/lib/services/apps.js.map +1 -1
  42. package/lib/services/assistant.d.ts +4 -4
  43. package/lib/services/assistant.d.ts.map +1 -1
  44. package/lib/services/assistant.js +16 -38
  45. package/lib/services/assistant.js.map +1 -1
  46. package/lib/services/auth.d.ts +2 -2
  47. package/lib/services/auth.d.ts.map +1 -1
  48. package/lib/services/auth.js +11 -28
  49. package/lib/services/auth.js.map +1 -1
  50. package/lib/services/blocks.d.ts +1 -1
  51. package/lib/services/blocks.d.ts.map +1 -1
  52. package/lib/services/blocks.js +5 -9
  53. package/lib/services/blocks.js.map +1 -1
  54. package/lib/services/bookmarks.d.ts +4 -4
  55. package/lib/services/bookmarks.d.ts.map +1 -1
  56. package/lib/services/bookmarks.js +14 -30
  57. package/lib/services/bookmarks.js.map +1 -1
  58. package/lib/services/bots.d.ts +1 -1
  59. package/lib/services/bots.d.ts.map +1 -1
  60. package/lib/services/bots.js +7 -15
  61. package/lib/services/bots.js.map +1 -1
  62. package/lib/services/calls.d.ts +1 -1
  63. package/lib/services/calls.d.ts.map +1 -1
  64. package/lib/services/calls.js +13 -33
  65. package/lib/services/calls.js.map +1 -1
  66. package/lib/services/canvases.d.ts +22 -2
  67. package/lib/services/canvases.d.ts.map +1 -1
  68. package/lib/services/canvases.js +37 -48
  69. package/lib/services/canvases.js.map +1 -1
  70. package/lib/services/chat.d.ts +29 -25
  71. package/lib/services/chat.d.ts.map +1 -1
  72. package/lib/services/chat.js +47 -95
  73. package/lib/services/chat.js.map +1 -1
  74. package/lib/services/conversations.d.ts +10 -8
  75. package/lib/services/conversations.d.ts.map +1 -1
  76. package/lib/services/conversations.js +43 -115
  77. package/lib/services/conversations.js.map +1 -1
  78. package/lib/services/dialog.d.ts +1 -1
  79. package/lib/services/dialog.d.ts.map +1 -1
  80. package/lib/services/dialog.js +5 -9
  81. package/lib/services/dialog.js.map +1 -1
  82. package/lib/services/dnd.d.ts +1 -1
  83. package/lib/services/dnd.d.ts.map +1 -1
  84. package/lib/services/dnd.js +10 -24
  85. package/lib/services/dnd.js.map +1 -1
  86. package/lib/services/emoji.d.ts +1 -1
  87. package/lib/services/emoji.d.ts.map +1 -1
  88. package/lib/services/emoji.js +6 -11
  89. package/lib/services/emoji.js.map +1 -1
  90. package/lib/services/entity.d.ts +1 -1
  91. package/lib/services/entity.d.ts.map +1 -1
  92. package/lib/services/entity.js +8 -20
  93. package/lib/services/entity.js.map +1 -1
  94. package/lib/services/files.d.ts +5 -5
  95. package/lib/services/files.d.ts.map +1 -1
  96. package/lib/services/files.js +39 -109
  97. package/lib/services/files.js.map +1 -1
  98. package/lib/services/functions.d.ts +1 -1
  99. package/lib/services/functions.d.ts.map +1 -1
  100. package/lib/services/functions.js +28 -75
  101. package/lib/services/functions.js.map +1 -1
  102. package/lib/services/index.d.ts +1 -0
  103. package/lib/services/index.d.ts.map +1 -1
  104. package/lib/services/index.js +1 -0
  105. package/lib/services/index.js.map +1 -1
  106. package/lib/services/lists.d.ts +5 -1
  107. package/lib/services/lists.d.ts.map +1 -1
  108. package/lib/services/lists.js +35 -146
  109. package/lib/services/lists.js.map +1 -1
  110. package/lib/services/migration.d.ts +1 -1
  111. package/lib/services/migration.d.ts.map +1 -1
  112. package/lib/services/migration.js +5 -8
  113. package/lib/services/migration.js.map +1 -1
  114. package/lib/services/oauth.d.ts +38 -2
  115. package/lib/services/oauth.d.ts.map +1 -1
  116. package/lib/services/oauth.js +67 -50
  117. package/lib/services/oauth.js.map +1 -1
  118. package/lib/services/openid.d.ts +1 -1
  119. package/lib/services/openid.d.ts.map +1 -1
  120. package/lib/services/openid.js +7 -15
  121. package/lib/services/openid.js.map +1 -1
  122. package/lib/services/pins.d.ts +1 -1
  123. package/lib/services/pins.d.ts.map +1 -1
  124. package/lib/services/pins.js +7 -15
  125. package/lib/services/pins.js.map +1 -1
  126. package/lib/services/reactions.d.ts +2 -2
  127. package/lib/services/reactions.d.ts.map +1 -1
  128. package/lib/services/reactions.js +13 -29
  129. package/lib/services/reactions.js.map +1 -1
  130. package/lib/services/reminders.d.ts +1 -1
  131. package/lib/services/reminders.d.ts.map +1 -1
  132. package/lib/services/reminders.js +13 -33
  133. package/lib/services/reminders.js.map +1 -1
  134. package/lib/services/rtm.d.ts +1 -1
  135. package/lib/services/rtm.d.ts.map +1 -1
  136. package/lib/services/rtm.js +9 -21
  137. package/lib/services/rtm.js.map +1 -1
  138. package/lib/services/search.d.ts +1 -1
  139. package/lib/services/search.d.ts.map +1 -1
  140. package/lib/services/search.js +13 -30
  141. package/lib/services/search.js.map +1 -1
  142. package/lib/services/stars.d.ts +1 -1
  143. package/lib/services/stars.d.ts.map +1 -1
  144. package/lib/services/stars.js +10 -20
  145. package/lib/services/stars.js.map +1 -1
  146. package/lib/services/team.d.ts +1 -1
  147. package/lib/services/team.d.ts.map +1 -1
  148. package/lib/services/team.js +25 -62
  149. package/lib/services/team.js.map +1 -1
  150. package/lib/services/tooling.d.ts +1 -1
  151. package/lib/services/tooling.d.ts.map +1 -1
  152. package/lib/services/tooling.js +5 -9
  153. package/lib/services/tooling.js.map +1 -1
  154. package/lib/services/usergroups.d.ts +8 -3
  155. package/lib/services/usergroups.d.ts.map +1 -1
  156. package/lib/services/usergroups.js +23 -51
  157. package/lib/services/usergroups.js.map +1 -1
  158. package/lib/services/users.d.ts +2 -2
  159. package/lib/services/users.d.ts.map +1 -1
  160. package/lib/services/users.js +28 -81
  161. package/lib/services/users.js.map +1 -1
  162. package/lib/services/views.d.ts +1 -1
  163. package/lib/services/views.d.ts.map +1 -1
  164. package/lib/services/views.js +11 -27
  165. package/lib/services/views.js.map +1 -1
  166. package/lib/services/workflows.d.ts +1 -1
  167. package/lib/services/workflows.d.ts.map +1 -1
  168. package/lib/services/workflows.js +27 -71
  169. package/lib/services/workflows.js.map +1 -1
  170. package/package.json +15 -11
  171. package/src/credentials.ts +8 -10
  172. package/src/errors.ts +17 -31
  173. package/src/index.ts +3 -7
  174. package/src/pagination.ts +2 -5
  175. package/src/protocol.test.ts +372 -0
  176. package/src/protocol.ts +34 -66
  177. package/src/retry.ts +4 -9
  178. package/src/services/admin.ts +1241 -1557
  179. package/src/services/agents.ts +853 -0
  180. package/src/services/api.ts +4 -10
  181. package/src/services/apps.ts +146 -243
  182. package/src/services/assistant.ts +93 -144
  183. package/src/services/auth.ts +12 -33
  184. package/src/services/blocks.ts +9 -24
  185. package/src/services/bookmarks.ts +14 -34
  186. package/src/services/bots.ts +7 -19
  187. package/src/services/calls.ts +15 -43
  188. package/src/services/canvases.ts +82 -85
  189. package/src/services/chat.ts +134 -254
  190. package/src/services/conversations.ts +101 -217
  191. package/src/services/dialog.ts +5 -13
  192. package/src/services/dnd.ts +11 -31
  193. package/src/services/emoji.ts +9 -19
  194. package/src/services/entity.ts +17 -45
  195. package/src/services/files.ts +72 -165
  196. package/src/services/functions.ts +95 -168
  197. package/src/services/index.ts +1 -0
  198. package/src/services/lists.ts +65 -208
  199. package/src/services/migration.ts +8 -17
  200. package/src/services/oauth.ts +127 -60
  201. package/src/services/openid.ts +12 -34
  202. package/src/services/pins.ts +7 -19
  203. package/src/services/reactions.ts +19 -43
  204. package/src/services/reminders.ts +13 -37
  205. package/src/services/rtm.ts +9 -25
  206. package/src/services/search.ts +51 -92
  207. package/src/services/stars.ts +20 -31
  208. package/src/services/team.ts +81 -155
  209. package/src/services/tooling.ts +5 -13
  210. package/src/services/usergroups.ts +37 -68
  211. package/src/services/users.ts +35 -102
  212. package/src/services/views.ts +11 -31
  213. package/src/services/workflows.ts +65 -129
  214. package/lib/response-validation.test.d.ts +0 -4
  215. package/lib/response-validation.test.d.ts.map +0 -1
  216. package/lib/response-validation.test.js +0 -40
  217. package/lib/response-validation.test.js.map +0 -1
  218. package/src/response-validation.test.ts +0 -54
@@ -1,15 +1,11 @@
1
+ import * as API from "@distilled.cloud/core/api";
1
2
  // AUTO-GENERATED by scripts/generate.ts from .generated-specs (docs.slack.dev JSON twins). Do not edit.
2
3
  import * as S from "@distilled.cloud/core/schema";
3
- import * as API from "@distilled.cloud/core/api";
4
- import * as T from "../traits.ts";
5
- import {
6
- SlackProtocol,
7
- type SlackOpError,
8
- type SlackOpContext,
9
- } from "../protocol.ts";
10
- import { slackPaginate } from "../pagination.ts";
11
4
  import { SlackError, SlackRateLimited } from "../errors.ts";
5
+ import { slackPaginate } from "../pagination.ts";
6
+ import { SlackProtocol, type SlackOpError, type SlackOpContext } from "../protocol.ts";
12
7
  import * as Retry from "../retry.ts";
8
+ import * as T from "../traits.ts";
13
9
 
14
10
  export type { SlackOpError, SlackOpContext };
15
11
 
@@ -24,9 +20,7 @@ export const AddAliasRequest = /*@__PURE__*/ S.suspend(() =>
24
20
  name: S.String.pipe(T.Query()),
25
21
  alias_for: S.String.pipe(T.Query()),
26
22
  }).pipe(T.Http({ method: "GET", uri: "/admin.emoji.addAlias", code: 200 })),
27
- ).annotate({
28
- identifier: "AddAliasRequest",
29
- }) as any as S.Schema<AddAliasRequest>;
23
+ ).annotate({ identifier: "AddAliasRequest" }) as any as S.Schema<AddAliasRequest>;
30
24
 
31
25
  export interface AddAliasResponse {
32
26
  /** Always `true` (a failed call raises a typed error instead). */
@@ -36,9 +30,7 @@ export const AddAliasResponse = /*@__PURE__*/ S.suspend(() =>
36
30
  S.Struct({
37
31
  ok: S.Boolean,
38
32
  }),
39
- ).annotate({
40
- identifier: "AddAliasResponse",
41
- }) as any as S.Schema<AddAliasResponse>;
33
+ ).annotate({ identifier: "AddAliasResponse" }) as any as S.Schema<AddAliasResponse>;
42
34
 
43
35
  /** List of user IDs to allow for named_entities visibility */
44
36
  export type AddAppsPermissionsRequestUserIdsList = Array<string>;
@@ -52,6 +44,12 @@ export const AddAppsPermissionsRequestUsergroupIdsList = /*@__PURE__*/ S.Array(
52
44
  S.String,
53
45
  ) as any as S.Schema<AddAppsPermissionsRequestUsergroupIdsList>;
54
46
 
47
+ /** List of encoded channel IDs to add to the channel restriction list. Interpretation depends on the app's `channel_restriction_mode`, which is configured via the `admin.apps.permissions.set` method. */
48
+ export type AddAppsPermissionsRequestChannelIdsList = Array<string>;
49
+ export const AddAppsPermissionsRequestChannelIdsList = /*@__PURE__*/ S.Array(
50
+ S.String,
51
+ ) as any as S.Schema<AddAppsPermissionsRequestChannelIdsList>;
52
+
55
53
  export interface AddAppsPermissionsRequest {
56
54
  /** Encoded ID of the app */
57
55
  app_id: string;
@@ -59,15 +57,16 @@ export interface AddAppsPermissionsRequest {
59
57
  user_ids?: AddAppsPermissionsRequestUserIdsList;
60
58
  /** List of encoded usergroup IDs */
61
59
  usergroup_ids?: AddAppsPermissionsRequestUsergroupIdsList;
60
+ /** List of encoded channel IDs to add to the channel restriction list. Interpretation depends on the app's `channel_restriction_mode`, which is configured via the `admin.apps.permissions.set` method. */
61
+ channel_ids?: AddAppsPermissionsRequestChannelIdsList;
62
62
  }
63
63
  export const AddAppsPermissionsRequest = /*@__PURE__*/ S.suspend(() =>
64
64
  S.Struct({
65
65
  app_id: S.String,
66
66
  user_ids: S.optional(AddAppsPermissionsRequestUserIdsList),
67
67
  usergroup_ids: S.optional(AddAppsPermissionsRequestUsergroupIdsList),
68
- }).pipe(
69
- T.Http({ method: "POST", uri: "/admin.apps.permissions.add", code: 200 }),
70
- ),
68
+ channel_ids: S.optional(AddAppsPermissionsRequestChannelIdsList),
69
+ }).pipe(T.Http({ method: "POST", uri: "/admin.apps.permissions.add", code: 200 })),
71
70
  ).annotate({
72
71
  identifier: "AddAppsPermissionsRequest",
73
72
  }) as any as S.Schema<AddAppsPermissionsRequest>;
@@ -109,12 +108,8 @@ export const AddAssignmentsRequest = /*@__PURE__*/ S.suspend(() =>
109
108
  role_id: S.String,
110
109
  entity_ids: AddAssignmentsRequestEntityIdsList,
111
110
  user_ids: AddAssignmentsRequestUserIdsList,
112
- }).pipe(
113
- T.Http({ method: "POST", uri: "/admin.roles.addAssignments", code: 200 }),
114
- ),
115
- ).annotate({
116
- identifier: "AddAssignmentsRequest",
117
- }) as any as S.Schema<AddAssignmentsRequest>;
111
+ }).pipe(T.Http({ method: "POST", uri: "/admin.roles.addAssignments", code: 200 })),
112
+ ).annotate({ identifier: "AddAssignmentsRequest" }) as any as S.Schema<AddAssignmentsRequest>;
118
113
 
119
114
  export interface AddAssignmentsResponse {
120
115
  /** Always `true` (a failed call raises a typed error instead). */
@@ -127,9 +122,7 @@ export const AddAssignmentsResponse = /*@__PURE__*/ S.suspend(() =>
127
122
  ok: S.Boolean,
128
123
  error: S.optional(S.String),
129
124
  }),
130
- ).annotate({
131
- identifier: "AddAssignmentsResponse",
132
- }) as any as S.Schema<AddAssignmentsResponse>;
125
+ ).annotate({ identifier: "AddAssignmentsResponse" }) as any as S.Schema<AddAssignmentsResponse>;
133
126
 
134
127
  /** Comma separated string of channel IDs. */
135
128
  export type AddChannelsRequestChannelIdsList = Array<string>;
@@ -150,12 +143,8 @@ export const AddChannelsRequest = /*@__PURE__*/ S.suspend(() =>
150
143
  usergroup_id: S.String,
151
144
  team_id: S.optional(S.String),
152
145
  channel_ids: AddChannelsRequestChannelIdsList,
153
- }).pipe(
154
- T.Http({ method: "POST", uri: "/admin.usergroups.addChannels", code: 200 }),
155
- ),
156
- ).annotate({
157
- identifier: "AddChannelsRequest",
158
- }) as any as S.Schema<AddChannelsRequest>;
146
+ }).pipe(T.Http({ method: "POST", uri: "/admin.usergroups.addChannels", code: 200 })),
147
+ ).annotate({ identifier: "AddChannelsRequest" }) as any as S.Schema<AddChannelsRequest>;
159
148
 
160
149
  /** List of channel IDs that are not valid for this action */
161
150
  export type AddChannelsResponseInvalidChannelsList = Array<string>;
@@ -163,12 +152,6 @@ export const AddChannelsResponseInvalidChannelsList = /*@__PURE__*/ S.Array(
163
152
  S.String,
164
153
  ) as any as S.Schema<AddChannelsResponseInvalidChannelsList>;
165
154
 
166
- /** List of user IDs who would exceed their channel limit */
167
- export type AddChannelsResponseChannelLimitUserIdsList = Array<string>;
168
- export const AddChannelsResponseChannelLimitUserIdsList = /*@__PURE__*/ S.Array(
169
- S.String,
170
- ) as any as S.Schema<AddChannelsResponseChannelLimitUserIdsList>;
171
-
172
155
  export interface AddChannelsResponse {
173
156
  /** Always `true` (a failed call raises a typed error instead). */
174
157
  ok: boolean;
@@ -176,21 +159,14 @@ export interface AddChannelsResponse {
176
159
  error?: string;
177
160
  /** List of channel IDs that are not valid for this action */
178
161
  invalid_channels?: AddChannelsResponseInvalidChannelsList;
179
- /** List of user IDs who would exceed their channel limit */
180
- channel_limit_user_ids?: AddChannelsResponseChannelLimitUserIdsList;
181
162
  }
182
163
  export const AddChannelsResponse = /*@__PURE__*/ S.suspend(() =>
183
164
  S.Struct({
184
165
  ok: S.Boolean,
185
166
  error: S.optional(S.String),
186
167
  invalid_channels: S.optional(AddChannelsResponseInvalidChannelsList),
187
- channel_limit_user_ids: S.optional(
188
- AddChannelsResponseChannelLimitUserIdsList,
189
- ),
190
168
  }),
191
- ).annotate({
192
- identifier: "AddChannelsResponse",
193
- }) as any as S.Schema<AddChannelsResponse>;
169
+ ).annotate({ identifier: "AddChannelsResponse" }) as any as S.Schema<AddChannelsResponse>;
194
170
 
195
171
  export interface AddEmojiRequest {
196
172
  /** The name of the emoji to be added (using lower-case letters only). Colons (`:myemoji:`) around the value are not required, although they may be included. */
@@ -203,9 +179,7 @@ export const AddEmojiRequest = /*@__PURE__*/ S.suspend(() =>
203
179
  name: S.String.pipe(T.Query()),
204
180
  url: S.optional(S.String.pipe(T.Query())),
205
181
  }).pipe(T.Http({ method: "GET", uri: "/admin.emoji.add", code: 200 })),
206
- ).annotate({
207
- identifier: "AddEmojiRequest",
208
- }) as any as S.Schema<AddEmojiRequest>;
182
+ ).annotate({ identifier: "AddEmojiRequest" }) as any as S.Schema<AddEmojiRequest>;
209
183
 
210
184
  export interface AddEmojiResponse {
211
185
  /** Always `true` (a failed call raises a typed error instead). */
@@ -215,9 +189,7 @@ export const AddEmojiResponse = /*@__PURE__*/ S.suspend(() =>
215
189
  S.Struct({
216
190
  ok: S.Boolean,
217
191
  }),
218
- ).annotate({
219
- identifier: "AddEmojiResponse",
220
- }) as any as S.Schema<AddEmojiResponse>;
192
+ ).annotate({ identifier: "AddEmojiResponse" }) as any as S.Schema<AddEmojiResponse>;
221
193
 
222
194
  export interface AddGroupRequest {
223
195
  /** The workspace where the channel exists. This argument is required for channels only tied to one workspace, and optional for channels that are shared across an organization. */
@@ -233,15 +205,9 @@ export const AddGroupRequest = /*@__PURE__*/ S.suspend(() =>
233
205
  group_id: S.String.pipe(T.Query()),
234
206
  channel_id: S.String.pipe(T.Query()),
235
207
  }).pipe(
236
- T.Http({
237
- method: "GET",
238
- uri: "/admin.conversations.restrictAccess.addGroup",
239
- code: 200,
240
- }),
208
+ T.Http({ method: "GET", uri: "/admin.conversations.restrictAccess.addGroup", code: 200 }),
241
209
  ),
242
- ).annotate({
243
- identifier: "AddGroupRequest",
244
- }) as any as S.Schema<AddGroupRequest>;
210
+ ).annotate({ identifier: "AddGroupRequest" }) as any as S.Schema<AddGroupRequest>;
245
211
 
246
212
  export interface AddGroupResponse {
247
213
  ok: boolean;
@@ -250,9 +216,7 @@ export const AddGroupResponse = /*@__PURE__*/ S.suspend(() =>
250
216
  S.Struct({
251
217
  ok: S.Boolean,
252
218
  }),
253
- ).annotate({
254
- identifier: "AddGroupResponse",
255
- }) as any as S.Schema<AddGroupResponse>;
219
+ ).annotate({ identifier: "AddGroupResponse" }) as any as S.Schema<AddGroupResponse>;
256
220
 
257
221
  /** A comma separated list of encoded team (workspace) IDs. Each workspace *MUST* belong to the organization associated with the token. */
258
222
  export type AddTeamsRequestTeamIdsList = Array<string>;
@@ -273,12 +237,8 @@ export const AddTeamsRequest = /*@__PURE__*/ S.suspend(() =>
273
237
  usergroup_id: S.String,
274
238
  team_ids: AddTeamsRequestTeamIdsList,
275
239
  auto_provision: S.optional(S.Boolean),
276
- }).pipe(
277
- T.Http({ method: "POST", uri: "/admin.usergroups.addTeams", code: 200 }),
278
- ),
279
- ).annotate({
280
- identifier: "AddTeamsRequest",
281
- }) as any as S.Schema<AddTeamsRequest>;
240
+ }).pipe(T.Http({ method: "POST", uri: "/admin.usergroups.addTeams", code: 200 })),
241
+ ).annotate({ identifier: "AddTeamsRequest" }) as any as S.Schema<AddTeamsRequest>;
282
242
 
283
243
  export interface AddTeamsResponse {
284
244
  /** Always `true` (a failed call raises a typed error instead). */
@@ -288,23 +248,81 @@ export const AddTeamsResponse = /*@__PURE__*/ S.suspend(() =>
288
248
  S.Struct({
289
249
  ok: S.Boolean,
290
250
  }),
251
+ ).annotate({ identifier: "AddTeamsResponse" }) as any as S.Schema<AddTeamsResponse>;
252
+
253
+ /** The encoded user IDs to add to the usergroup, provided as a JSON array or a comma-separated string. */
254
+ export type AddUsersRequestUsersList = Array<string>;
255
+ export const AddUsersRequestUsersList = /*@__PURE__*/ S.Array(
256
+ S.String,
257
+ ) as any as S.Schema<AddUsersRequestUsersList>;
258
+
259
+ export interface AddUsersRequest {
260
+ /** ID of the usergroup to add users to */
261
+ id: string;
262
+ /** The encoded user IDs to add to the usergroup, provided as a JSON array or a comma-separated string. */
263
+ users: AddUsersRequestUsersList;
264
+ }
265
+ export const AddUsersRequest = /*@__PURE__*/ S.suspend(() =>
266
+ S.Struct({
267
+ id: S.String,
268
+ users: AddUsersRequestUsersList,
269
+ }).pipe(T.Http({ method: "POST", uri: "/admin.usergroups.addUsers", code: 200 })),
270
+ ).annotate({ identifier: "AddUsersRequest" }) as any as S.Schema<AddUsersRequest>;
271
+
272
+ export type AddUsersResponseInvalidUsersItemReason =
273
+ | "guest_user"
274
+ | "deleted_user"
275
+ | "user_not_found"
276
+ | "insert_failed"
277
+ | "channel_limit_exceeded"
278
+ | "multi_workspace_idp_group"
279
+ | "usergroup_limit_exceeded";
280
+ export const AddUsersResponseInvalidUsersItemReason = S.String;
281
+
282
+ export interface AddUsersResponseInvalidUsersItem {
283
+ user_id: string;
284
+ reason: AddUsersResponseInvalidUsersItemReason;
285
+ }
286
+ export const AddUsersResponseInvalidUsersItem = /*@__PURE__*/ S.suspend(() =>
287
+ S.Struct({
288
+ user_id: S.String,
289
+ reason: AddUsersResponseInvalidUsersItemReason,
290
+ }),
291
291
  ).annotate({
292
- identifier: "AddTeamsResponse",
293
- }) as any as S.Schema<AddTeamsResponse>;
292
+ identifier: "AddUsersResponseInvalidUsersItem",
293
+ }) as any as S.Schema<AddUsersResponseInvalidUsersItem>;
294
+
295
+ export type AddUsersResponseInvalidUsersList = Array<AddUsersResponseInvalidUsersItem>;
296
+ export const AddUsersResponseInvalidUsersList = /*@__PURE__*/ S.Array(
297
+ AddUsersResponseInvalidUsersItem,
298
+ ) as any as S.Schema<AddUsersResponseInvalidUsersList>;
299
+
300
+ export interface AddUsersResponse {
301
+ /** Always `true` (a failed call raises a typed error instead). */
302
+ ok: boolean;
303
+ /** A string representation of the error type */
304
+ error?: string;
305
+ invalid_users?: AddUsersResponseInvalidUsersList;
306
+ }
307
+ export const AddUsersResponse = /*@__PURE__*/ S.suspend(() =>
308
+ S.Struct({
309
+ ok: S.Boolean,
310
+ error: S.optional(S.String),
311
+ invalid_users: S.optional(AddUsersResponseInvalidUsersList),
312
+ }),
313
+ ).annotate({ identifier: "AddUsersResponse" }) as any as S.Schema<AddUsersResponse>;
294
314
 
295
315
  /** Array of workflow IDs to edit; max 50 */
296
316
  export type AddWorkflowsCollaboratorRequestWorkflowIdsList = Array<string>;
297
- export const AddWorkflowsCollaboratorRequestWorkflowIdsList =
298
- /*@__PURE__*/ S.Array(
299
- S.String,
300
- ) as any as S.Schema<AddWorkflowsCollaboratorRequestWorkflowIdsList>;
317
+ export const AddWorkflowsCollaboratorRequestWorkflowIdsList = /*@__PURE__*/ S.Array(
318
+ S.String,
319
+ ) as any as S.Schema<AddWorkflowsCollaboratorRequestWorkflowIdsList>;
301
320
 
302
321
  /** Array of collaborators (encoded user IDs) to add; max 50 */
303
322
  export type AddWorkflowsCollaboratorRequestCollaboratorIdsList = Array<string>;
304
- export const AddWorkflowsCollaboratorRequestCollaboratorIdsList =
305
- /*@__PURE__*/ S.Array(
306
- S.String,
307
- ) as any as S.Schema<AddWorkflowsCollaboratorRequestCollaboratorIdsList>;
323
+ export const AddWorkflowsCollaboratorRequestCollaboratorIdsList = /*@__PURE__*/ S.Array(
324
+ S.String,
325
+ ) as any as S.Schema<AddWorkflowsCollaboratorRequestCollaboratorIdsList>;
308
326
 
309
327
  export interface AddWorkflowsCollaboratorRequest {
310
328
  /** Array of workflow IDs to edit; max 50 */
@@ -316,13 +334,7 @@ export const AddWorkflowsCollaboratorRequest = /*@__PURE__*/ S.suspend(() =>
316
334
  S.Struct({
317
335
  workflow_ids: AddWorkflowsCollaboratorRequestWorkflowIdsList,
318
336
  collaborator_ids: AddWorkflowsCollaboratorRequestCollaboratorIdsList,
319
- }).pipe(
320
- T.Http({
321
- method: "POST",
322
- uri: "/admin.workflows.collaborators.add",
323
- code: 200,
324
- }),
325
- ),
337
+ }).pipe(T.Http({ method: "POST", uri: "/admin.workflows.collaborators.add", code: 200 })),
326
338
  ).annotate({
327
339
  identifier: "AddWorkflowsCollaboratorRequest",
328
340
  }) as any as S.Schema<AddWorkflowsCollaboratorRequest>;
@@ -348,7 +360,7 @@ export interface AnalyticsMessagesActivityRequest {
348
360
  latest_ts?: string;
349
361
  /** Paginate through collections of data by setting the `cursor` parameter to a `next_cursor` attribute returned by a previous request's `response_metadata`. Default value fetches the first "page" of the collection. */
350
362
  cursor?: string;
351
- /** Maximum number of entries to return. The maximum limit is 100. */
363
+ /** Maximum number of entries to return. Defaults to 50 if not passed. Max allowed is 100. */
352
364
  limit?: number;
353
365
  }
354
366
  export const AnalyticsMessagesActivityRequest = /*@__PURE__*/ S.suspend(() =>
@@ -358,13 +370,7 @@ export const AnalyticsMessagesActivityRequest = /*@__PURE__*/ S.suspend(() =>
358
370
  latest_ts: S.optional(S.String.pipe(T.Query())),
359
371
  cursor: S.optional(S.String.pipe(T.Query())),
360
372
  limit: S.optional(S.Number.pipe(T.Query())),
361
- }).pipe(
362
- T.Http({
363
- method: "GET",
364
- uri: "/admin.analytics.messages.activity",
365
- code: 200,
366
- }),
367
- ),
373
+ }).pipe(T.Http({ method: "GET", uri: "/admin.analytics.messages.activity", code: 200 })),
368
374
  ).annotate({
369
375
  identifier: "AnalyticsMessagesActivityRequest",
370
376
  }) as any as S.Schema<AnalyticsMessagesActivityRequest>;
@@ -374,14 +380,13 @@ export interface AnalyticsMessagesActivityResponseResponseMetadata {
374
380
  /** Cursor for the next page — pass as `cursor` on the next call. */
375
381
  next_cursor?: string;
376
382
  }
377
- export const AnalyticsMessagesActivityResponseResponseMetadata =
378
- /*@__PURE__*/ S.suspend(() =>
379
- S.Struct({
380
- next_cursor: S.optional(S.String),
381
- }),
382
- ).annotate({
383
- identifier: "AnalyticsMessagesActivityResponseResponseMetadata",
384
- }) as any as S.Schema<AnalyticsMessagesActivityResponseResponseMetadata>;
383
+ export const AnalyticsMessagesActivityResponseResponseMetadata = /*@__PURE__*/ S.suspend(() =>
384
+ S.Struct({
385
+ next_cursor: S.optional(S.String),
386
+ }),
387
+ ).annotate({
388
+ identifier: "AnalyticsMessagesActivityResponseResponseMetadata",
389
+ }) as any as S.Schema<AnalyticsMessagesActivityResponseResponseMetadata>;
385
390
 
386
391
  export interface AnalyticsMessagesActivityResponse {
387
392
  /** Always `true` (a failed call raises a typed error instead). */
@@ -393,9 +398,7 @@ export interface AnalyticsMessagesActivityResponse {
393
398
  export const AnalyticsMessagesActivityResponse = /*@__PURE__*/ S.suspend(() =>
394
399
  S.Struct({
395
400
  ok: S.Boolean,
396
- response_metadata: S.optional(
397
- AnalyticsMessagesActivityResponseResponseMetadata,
398
- ),
401
+ response_metadata: S.optional(AnalyticsMessagesActivityResponseResponseMetadata),
399
402
  message_activities: S.Unknown,
400
403
  }),
401
404
  ).annotate({
@@ -409,7 +412,7 @@ export interface AnalyticsMessagesMetadataRequest {
409
412
  oldest_ts?: string;
410
413
  /** Most recent timestamp to include in the results. If not passed, defaults to current time. */
411
414
  latest_ts?: string;
412
- /** Paginate through collections of data by setting the `cursor` parameter to a `next_cursor` attribute returned by a previous request's `response_metadata`. Default value fetches the first "page" of the collection. See [pagination](#pagination) for more details. */
415
+ /** Paginate through collections of data by setting the `cursor` parameter to a `next_cursor` attribute returned by a previous request's `response_metadata`. Default value fetches the first "page" of the collection. See [pagination](https://docs.slack.dev/apis/web-api/pagination) for more detail. */
413
416
  cursor?: string;
414
417
  }
415
418
  export const AnalyticsMessagesMetadataRequest = /*@__PURE__*/ S.suspend(() =>
@@ -418,13 +421,7 @@ export const AnalyticsMessagesMetadataRequest = /*@__PURE__*/ S.suspend(() =>
418
421
  oldest_ts: S.optional(S.String.pipe(T.Query())),
419
422
  latest_ts: S.optional(S.String.pipe(T.Query())),
420
423
  cursor: S.optional(S.String.pipe(T.Query())),
421
- }).pipe(
422
- T.Http({
423
- method: "GET",
424
- uri: "/admin.analytics.messages.metadata",
425
- code: 200,
426
- }),
427
- ),
424
+ }).pipe(T.Http({ method: "GET", uri: "/admin.analytics.messages.metadata", code: 200 })),
428
425
  ).annotate({
429
426
  identifier: "AnalyticsMessagesMetadataRequest",
430
427
  }) as any as S.Schema<AnalyticsMessagesMetadataRequest>;
@@ -441,23 +438,22 @@ export interface AnalyticsMessagesMetadataResponseMessagesItemReactionsItem {
441
438
  /** Number of times this reaction was used */
442
439
  count: number;
443
440
  }
444
- export const AnalyticsMessagesMetadataResponseMessagesItemReactionsItem =
445
- /*@__PURE__*/ S.suspend(() =>
441
+ export const AnalyticsMessagesMetadataResponseMessagesItemReactionsItem = /*@__PURE__*/ S.suspend(
442
+ () =>
446
443
  S.Struct({
447
444
  name: S.String,
448
445
  count: S.Number,
449
446
  }),
450
- ).annotate({
451
- identifier: "AnalyticsMessagesMetadataResponseMessagesItemReactionsItem",
452
- }) as any as S.Schema<AnalyticsMessagesMetadataResponseMessagesItemReactionsItem>;
447
+ ).annotate({
448
+ identifier: "AnalyticsMessagesMetadataResponseMessagesItemReactionsItem",
449
+ }) as any as S.Schema<AnalyticsMessagesMetadataResponseMessagesItemReactionsItem>;
453
450
 
454
451
  /** An array of reaction counts */
455
452
  export type AnalyticsMessagesMetadataResponseMessagesItemReactionsList =
456
453
  Array<AnalyticsMessagesMetadataResponseMessagesItemReactionsItem>;
457
- export const AnalyticsMessagesMetadataResponseMessagesItemReactionsList =
458
- /*@__PURE__*/ S.Array(
459
- AnalyticsMessagesMetadataResponseMessagesItemReactionsItem,
460
- ) as any as S.Schema<AnalyticsMessagesMetadataResponseMessagesItemReactionsList>;
454
+ export const AnalyticsMessagesMetadataResponseMessagesItemReactionsList = /*@__PURE__*/ S.Array(
455
+ AnalyticsMessagesMetadataResponseMessagesItemReactionsItem,
456
+ ) as any as S.Schema<AnalyticsMessagesMetadataResponseMessagesItemReactionsList>;
461
457
 
462
458
  export interface AnalyticsMessagesMetadataResponseMessagesItemFilesItem {
463
459
  /** Encoded file ID */
@@ -489,35 +485,33 @@ export interface AnalyticsMessagesMetadataResponseMessagesItemFilesItem {
489
485
  /** Display type for media files */
490
486
  media_display_type?: string;
491
487
  }
492
- export const AnalyticsMessagesMetadataResponseMessagesItemFilesItem =
493
- /*@__PURE__*/ S.suspend(() =>
494
- S.Struct({
495
- id: S.String,
496
- created: S.Number,
497
- timestamp: S.Number,
498
- mimetype: S.optional(S.String),
499
- filetype: S.optional(S.String),
500
- subtype: S.optional(S.String),
501
- pretty_type: S.optional(S.String),
502
- is_external: S.optional(S.Boolean),
503
- external_type: S.optional(S.String),
504
- is_public: S.optional(S.Boolean),
505
- public_url_shared: S.optional(S.Boolean),
506
- display_as_bot: S.optional(S.Boolean),
507
- duration_ms: S.optional(S.Number),
508
- media_display_type: S.optional(S.String),
509
- }),
510
- ).annotate({
511
- identifier: "AnalyticsMessagesMetadataResponseMessagesItemFilesItem",
512
- }) as any as S.Schema<AnalyticsMessagesMetadataResponseMessagesItemFilesItem>;
488
+ export const AnalyticsMessagesMetadataResponseMessagesItemFilesItem = /*@__PURE__*/ S.suspend(() =>
489
+ S.Struct({
490
+ id: S.String,
491
+ created: S.Number,
492
+ timestamp: S.Number,
493
+ mimetype: S.optional(S.String),
494
+ filetype: S.optional(S.String),
495
+ subtype: S.optional(S.String),
496
+ pretty_type: S.optional(S.String),
497
+ is_external: S.optional(S.Boolean),
498
+ external_type: S.optional(S.String),
499
+ is_public: S.optional(S.Boolean),
500
+ public_url_shared: S.optional(S.Boolean),
501
+ display_as_bot: S.optional(S.Boolean),
502
+ duration_ms: S.optional(S.Number),
503
+ media_display_type: S.optional(S.String),
504
+ }),
505
+ ).annotate({
506
+ identifier: "AnalyticsMessagesMetadataResponseMessagesItemFilesItem",
507
+ }) as any as S.Schema<AnalyticsMessagesMetadataResponseMessagesItemFilesItem>;
513
508
 
514
509
  /** An array of files attached to the message */
515
510
  export type AnalyticsMessagesMetadataResponseMessagesItemFilesList =
516
511
  Array<AnalyticsMessagesMetadataResponseMessagesItemFilesItem>;
517
- export const AnalyticsMessagesMetadataResponseMessagesItemFilesList =
518
- /*@__PURE__*/ S.Array(
519
- AnalyticsMessagesMetadataResponseMessagesItemFilesItem,
520
- ) as any as S.Schema<AnalyticsMessagesMetadataResponseMessagesItemFilesList>;
512
+ export const AnalyticsMessagesMetadataResponseMessagesItemFilesList = /*@__PURE__*/ S.Array(
513
+ AnalyticsMessagesMetadataResponseMessagesItemFilesItem,
514
+ ) as any as S.Schema<AnalyticsMessagesMetadataResponseMessagesItemFilesList>;
521
515
 
522
516
  export interface AnalyticsMessagesMetadataResponseMessagesItem {
523
517
  /** Encoded ID of user who authored message */
@@ -537,33 +531,29 @@ export interface AnalyticsMessagesMetadataResponseMessagesItem {
537
531
  /** An array of files attached to the message */
538
532
  files?: AnalyticsMessagesMetadataResponseMessagesItemFilesList;
539
533
  }
540
- export const AnalyticsMessagesMetadataResponseMessagesItem =
541
- /*@__PURE__*/ S.suspend(() =>
542
- S.Struct({
543
- user_id: S.optional(S.String),
544
- type: S.String,
545
- subtype: S.optional(S.String),
546
- ts: S.String,
547
- thread_ts: S.optional(S.String),
548
- display_as_bot: S.optional(S.Boolean),
549
- client_msg_id: S.optional(S.String),
550
- text_character_count: S.optional(S.Number),
551
- reactions: S.optional(
552
- AnalyticsMessagesMetadataResponseMessagesItemReactionsList,
553
- ),
554
- files: S.optional(AnalyticsMessagesMetadataResponseMessagesItemFilesList),
555
- }),
556
- ).annotate({
557
- identifier: "AnalyticsMessagesMetadataResponseMessagesItem",
558
- }) as any as S.Schema<AnalyticsMessagesMetadataResponseMessagesItem>;
534
+ export const AnalyticsMessagesMetadataResponseMessagesItem = /*@__PURE__*/ S.suspend(() =>
535
+ S.Struct({
536
+ user_id: S.optional(S.String),
537
+ type: S.String,
538
+ subtype: S.optional(S.String),
539
+ ts: S.String,
540
+ thread_ts: S.optional(S.String),
541
+ display_as_bot: S.optional(S.Boolean),
542
+ client_msg_id: S.optional(S.String),
543
+ text_character_count: S.optional(S.Number),
544
+ reactions: S.optional(AnalyticsMessagesMetadataResponseMessagesItemReactionsList),
545
+ files: S.optional(AnalyticsMessagesMetadataResponseMessagesItemFilesList),
546
+ }),
547
+ ).annotate({
548
+ identifier: "AnalyticsMessagesMetadataResponseMessagesItem",
549
+ }) as any as S.Schema<AnalyticsMessagesMetadataResponseMessagesItem>;
559
550
 
560
551
  /** An array of message metadata */
561
552
  export type AnalyticsMessagesMetadataResponseMessagesList =
562
553
  Array<AnalyticsMessagesMetadataResponseMessagesItem>;
563
- export const AnalyticsMessagesMetadataResponseMessagesList =
564
- /*@__PURE__*/ S.Array(
565
- AnalyticsMessagesMetadataResponseMessagesItem,
566
- ) as any as S.Schema<AnalyticsMessagesMetadataResponseMessagesList>;
554
+ export const AnalyticsMessagesMetadataResponseMessagesList = /*@__PURE__*/ S.Array(
555
+ AnalyticsMessagesMetadataResponseMessagesItem,
556
+ ) as any as S.Schema<AnalyticsMessagesMetadataResponseMessagesList>;
567
557
 
568
558
  export interface AnalyticsMessagesMetadataResponse {
569
559
  /** Always `true` (a failed call raises a typed error instead). */
@@ -576,9 +566,7 @@ export interface AnalyticsMessagesMetadataResponse {
576
566
  export const AnalyticsMessagesMetadataResponse = /*@__PURE__*/ S.suspend(() =>
577
567
  S.Struct({
578
568
  ok: S.Boolean,
579
- response_metadata: S.optional(
580
- AnalyticsMessagesActivityResponseResponseMetadata,
581
- ),
569
+ response_metadata: S.optional(AnalyticsMessagesActivityResponseResponseMetadata),
582
570
  messages: AnalyticsMessagesMetadataResponseMessagesList,
583
571
  }),
584
572
  ).annotate({
@@ -611,9 +599,7 @@ export const ApproveAppRequest = /*@__PURE__*/ S.suspend(() =>
611
599
  user_scopes: S.optional(S.String),
612
600
  bot_scopes: S.optional(S.String),
613
601
  }).pipe(T.Http({ method: "POST", uri: "/admin.apps.approve", code: 200 })),
614
- ).annotate({
615
- identifier: "ApproveAppRequest",
616
- }) as any as S.Schema<ApproveAppRequest>;
602
+ ).annotate({ identifier: "ApproveAppRequest" }) as any as S.Schema<ApproveAppRequest>;
617
603
 
618
604
  export interface ApproveAppResponse {
619
605
  /** Always `true` (a failed call raises a typed error instead). */
@@ -623,9 +609,7 @@ export const ApproveAppResponse = /*@__PURE__*/ S.suspend(() =>
623
609
  S.Struct({
624
610
  ok: S.Boolean,
625
611
  }),
626
- ).annotate({
627
- identifier: "ApproveAppResponse",
628
- }) as any as S.Schema<ApproveAppResponse>;
612
+ ).annotate({ identifier: "ApproveAppResponse" }) as any as S.Schema<ApproveAppResponse>;
629
613
 
630
614
  export interface ApproveInviteRequestRequest {
631
615
  /** ID for the workspace where the invite request was made. */
@@ -637,9 +621,7 @@ export const ApproveInviteRequestRequest = /*@__PURE__*/ S.suspend(() =>
637
621
  S.Struct({
638
622
  team_id: S.optional(S.String),
639
623
  invite_request_id: S.String,
640
- }).pipe(
641
- T.Http({ method: "POST", uri: "/admin.inviteRequests.approve", code: 200 }),
642
- ),
624
+ }).pipe(T.Http({ method: "POST", uri: "/admin.inviteRequests.approve", code: 200 })),
643
625
  ).annotate({
644
626
  identifier: "ApproveInviteRequestRequest",
645
627
  }) as any as S.Schema<ApproveInviteRequestRequest>;
@@ -673,9 +655,7 @@ export const AppsRestrictRequest = /*@__PURE__*/ S.suspend(() =>
673
655
  team_id: S.optional(S.String),
674
656
  enterprise_id: S.optional(S.String),
675
657
  }).pipe(T.Http({ method: "POST", uri: "/admin.apps.restrict", code: 200 })),
676
- ).annotate({
677
- identifier: "AppsRestrictRequest",
678
- }) as any as S.Schema<AppsRestrictRequest>;
658
+ ).annotate({ identifier: "AppsRestrictRequest" }) as any as S.Schema<AppsRestrictRequest>;
679
659
 
680
660
  export interface AppsRestrictResponse {
681
661
  /** Always `true` (a failed call raises a typed error instead). */
@@ -685,9 +665,7 @@ export const AppsRestrictResponse = /*@__PURE__*/ S.suspend(() =>
685
665
  S.Struct({
686
666
  ok: S.Boolean,
687
667
  }),
688
- ).annotate({
689
- identifier: "AppsRestrictResponse",
690
- }) as any as S.Schema<AppsRestrictResponse>;
668
+ ).annotate({ identifier: "AppsRestrictResponse" }) as any as S.Schema<AppsRestrictResponse>;
691
669
 
692
670
  export interface ArchiveConversationRequest {
693
671
  /** The channel to archive. */
@@ -696,9 +674,7 @@ export interface ArchiveConversationRequest {
696
674
  export const ArchiveConversationRequest = /*@__PURE__*/ S.suspend(() =>
697
675
  S.Struct({
698
676
  channel_id: S.String,
699
- }).pipe(
700
- T.Http({ method: "POST", uri: "/admin.conversations.archive", code: 200 }),
701
- ),
677
+ }).pipe(T.Http({ method: "POST", uri: "/admin.conversations.archive", code: 200 })),
702
678
  ).annotate({
703
679
  identifier: "ArchiveConversationRequest",
704
680
  }) as any as S.Schema<ArchiveConversationRequest>;
@@ -733,16 +709,8 @@ export const AssignEntitiesRequest = /*@__PURE__*/ S.suspend(() =>
733
709
  policy_name: S.String,
734
710
  entity_type: S.Unknown,
735
711
  entity_ids: AssignEntitiesRequestEntityIdsList,
736
- }).pipe(
737
- T.Http({
738
- method: "POST",
739
- uri: "/admin.auth.policy.assignEntities",
740
- code: 200,
741
- }),
742
- ),
743
- ).annotate({
744
- identifier: "AssignEntitiesRequest",
745
- }) as any as S.Schema<AssignEntitiesRequest>;
712
+ }).pipe(T.Http({ method: "POST", uri: "/admin.auth.policy.assignEntities", code: 200 })),
713
+ ).annotate({ identifier: "AssignEntitiesRequest" }) as any as S.Schema<AssignEntitiesRequest>;
746
714
 
747
715
  export interface AssignEntitiesResponse {
748
716
  /** Always `true` (a failed call raises a typed error instead). */
@@ -755,9 +723,7 @@ export const AssignEntitiesResponse = /*@__PURE__*/ S.suspend(() =>
755
723
  ok: S.Boolean,
756
724
  entity_total_count: S.Number,
757
725
  }),
758
- ).annotate({
759
- identifier: "AssignEntitiesResponse",
760
- }) as any as S.Schema<AssignEntitiesResponse>;
726
+ ).annotate({ identifier: "AssignEntitiesResponse" }) as any as S.Schema<AssignEntitiesResponse>;
761
727
 
762
728
  export interface AssignUserRequest {
763
729
  /** The ID (`T1234`) of the workspace. */
@@ -779,9 +745,7 @@ export const AssignUserRequest = /*@__PURE__*/ S.suspend(() =>
779
745
  is_ultra_restricted: S.optional(S.Boolean),
780
746
  channel_ids: S.optional(S.String),
781
747
  }).pipe(T.Http({ method: "POST", uri: "/admin.users.assign", code: 200 })),
782
- ).annotate({
783
- identifier: "AssignUserRequest",
784
- }) as any as S.Schema<AssignUserRequest>;
748
+ ).annotate({ identifier: "AssignUserRequest" }) as any as S.Schema<AssignUserRequest>;
785
749
 
786
750
  export interface AssignUserResponse {
787
751
  /** Always `true` (a failed call raises a typed error instead). */
@@ -791,9 +755,7 @@ export const AssignUserResponse = /*@__PURE__*/ S.suspend(() =>
791
755
  S.Struct({
792
756
  ok: S.Boolean,
793
757
  }),
794
- ).annotate({
795
- identifier: "AssignUserResponse",
796
- }) as any as S.Schema<AssignUserResponse>;
758
+ ).annotate({ identifier: "AssignUserResponse" }) as any as S.Schema<AssignUserResponse>;
797
759
 
798
760
  /** An array of channel IDs to archive. No more than 100 items are allowed. */
799
761
  export type BulkArchiveRequestChannelIdsList = Array<string>;
@@ -816,9 +778,7 @@ export const BulkArchiveRequest = /*@__PURE__*/ S.suspend(() =>
816
778
  contentType: "form-urlencoded",
817
779
  }),
818
780
  ),
819
- ).annotate({
820
- identifier: "BulkArchiveRequest",
821
- }) as any as S.Schema<BulkArchiveRequest>;
781
+ ).annotate({ identifier: "BulkArchiveRequest" }) as any as S.Schema<BulkArchiveRequest>;
822
782
 
823
783
  /** The reason the channel was not added */
824
784
  export type BulkArchiveResponseNotAddedItemErrorsList = Array<string>;
@@ -841,8 +801,7 @@ export const BulkArchiveResponseNotAddedItem = /*@__PURE__*/ S.suspend(() =>
841
801
  }) as any as S.Schema<BulkArchiveResponseNotAddedItem>;
842
802
 
843
803
  /** The channel ID and reason it could not be archived. */
844
- export type BulkArchiveResponseNotAddedList =
845
- Array<BulkArchiveResponseNotAddedItem>;
804
+ export type BulkArchiveResponseNotAddedList = Array<BulkArchiveResponseNotAddedItem>;
846
805
  export const BulkArchiveResponseNotAddedList = /*@__PURE__*/ S.Array(
847
806
  BulkArchiveResponseNotAddedItem,
848
807
  ) as any as S.Schema<BulkArchiveResponseNotAddedList>;
@@ -860,9 +819,7 @@ export const BulkArchiveResponse = /*@__PURE__*/ S.suspend(() =>
860
819
  bulk_action_id: S.String,
861
820
  not_added: BulkArchiveResponseNotAddedList,
862
821
  }),
863
- ).annotate({
864
- identifier: "BulkArchiveResponse",
865
- }) as any as S.Schema<BulkArchiveResponse>;
822
+ ).annotate({ identifier: "BulkArchiveResponse" }) as any as S.Schema<BulkArchiveResponse>;
866
823
 
867
824
  /** An array of channel IDs. */
868
825
  export type BulkDeleteRequestChannelIdsList = Array<string>;
@@ -885,9 +842,7 @@ export const BulkDeleteRequest = /*@__PURE__*/ S.suspend(() =>
885
842
  contentType: "form-urlencoded",
886
843
  }),
887
844
  ),
888
- ).annotate({
889
- identifier: "BulkDeleteRequest",
890
- }) as any as S.Schema<BulkDeleteRequest>;
845
+ ).annotate({ identifier: "BulkDeleteRequest" }) as any as S.Schema<BulkDeleteRequest>;
891
846
 
892
847
  /** The reason the channel was not added */
893
848
  export type BulkDeleteResponseNotAddedItemErrorsList = Array<string>;
@@ -910,8 +865,7 @@ export const BulkDeleteResponseNotAddedItem = /*@__PURE__*/ S.suspend(() =>
910
865
  }) as any as S.Schema<BulkDeleteResponseNotAddedItem>;
911
866
 
912
867
  /** The channel ID and reason it could not be deleted. */
913
- export type BulkDeleteResponseNotAddedList =
914
- Array<BulkDeleteResponseNotAddedItem>;
868
+ export type BulkDeleteResponseNotAddedList = Array<BulkDeleteResponseNotAddedItem>;
915
869
  export const BulkDeleteResponseNotAddedList = /*@__PURE__*/ S.Array(
916
870
  BulkDeleteResponseNotAddedItem,
917
871
  ) as any as S.Schema<BulkDeleteResponseNotAddedList>;
@@ -929,9 +883,7 @@ export const BulkDeleteResponse = /*@__PURE__*/ S.suspend(() =>
929
883
  bulk_action_id: S.String,
930
884
  not_added: BulkDeleteResponseNotAddedList,
931
885
  }),
932
- ).annotate({
933
- identifier: "BulkDeleteResponse",
934
- }) as any as S.Schema<BulkDeleteResponse>;
886
+ ).annotate({ identifier: "BulkDeleteResponse" }) as any as S.Schema<BulkDeleteResponse>;
935
887
 
936
888
  /** An array of channel IDs. */
937
889
  export type BulkMoveRequestChannelIdsList = Array<string>;
@@ -957,9 +909,7 @@ export const BulkMoveRequest = /*@__PURE__*/ S.suspend(() =>
957
909
  contentType: "form-urlencoded",
958
910
  }),
959
911
  ),
960
- ).annotate({
961
- identifier: "BulkMoveRequest",
962
- }) as any as S.Schema<BulkMoveRequest>;
912
+ ).annotate({ identifier: "BulkMoveRequest" }) as any as S.Schema<BulkMoveRequest>;
963
913
 
964
914
  /** The reason the channel was not added */
965
915
  export type BulkMoveResponseNotAddedItemErrorsList = Array<string>;
@@ -1000,15 +950,12 @@ export const BulkMoveResponse = /*@__PURE__*/ S.suspend(() =>
1000
950
  bulk_action_id: S.String,
1001
951
  not_added: BulkMoveResponseNotAddedList,
1002
952
  }),
1003
- ).annotate({
1004
- identifier: "BulkMoveResponse",
1005
- }) as any as S.Schema<BulkMoveResponse>;
953
+ ).annotate({ identifier: "BulkMoveResponse" }) as any as S.Schema<BulkMoveResponse>;
1006
954
 
1007
955
  export type BulkSetExcludeFromSlackAiRequestChannelIdsList = Array<string>;
1008
- export const BulkSetExcludeFromSlackAiRequestChannelIdsList =
1009
- /*@__PURE__*/ S.Array(
1010
- S.String,
1011
- ) as any as S.Schema<BulkSetExcludeFromSlackAiRequestChannelIdsList>;
956
+ export const BulkSetExcludeFromSlackAiRequestChannelIdsList = /*@__PURE__*/ S.Array(
957
+ S.String,
958
+ ) as any as S.Schema<BulkSetExcludeFromSlackAiRequestChannelIdsList>;
1012
959
 
1013
960
  export interface BulkSetExcludeFromSlackAiRequest {
1014
961
  /** An array of channel IDs to exclude from Slack AI. */
@@ -1021,46 +968,38 @@ export const BulkSetExcludeFromSlackAiRequest = /*@__PURE__*/ S.suspend(() =>
1021
968
  channel_ids: BulkSetExcludeFromSlackAiRequestChannelIdsList.pipe(T.Query()),
1022
969
  exclude: S.Boolean.pipe(T.Query()),
1023
970
  }).pipe(
1024
- T.Http({
1025
- method: "GET",
1026
- uri: "/admin.conversations.bulkSetExcludeFromSlackAi",
1027
- code: 200,
1028
- }),
971
+ T.Http({ method: "GET", uri: "/admin.conversations.bulkSetExcludeFromSlackAi", code: 200 }),
1029
972
  ),
1030
973
  ).annotate({
1031
974
  identifier: "BulkSetExcludeFromSlackAiRequest",
1032
975
  }) as any as S.Schema<BulkSetExcludeFromSlackAiRequest>;
1033
976
 
1034
977
  /** The reason the channel was not added */
1035
- export type BulkSetExcludeFromSlackAiResponseNotAddedItemErrorsList =
1036
- Array<string>;
1037
- export const BulkSetExcludeFromSlackAiResponseNotAddedItemErrorsList =
1038
- /*@__PURE__*/ S.Array(
1039
- S.String,
1040
- ) as any as S.Schema<BulkSetExcludeFromSlackAiResponseNotAddedItemErrorsList>;
978
+ export type BulkSetExcludeFromSlackAiResponseNotAddedItemErrorsList = Array<string>;
979
+ export const BulkSetExcludeFromSlackAiResponseNotAddedItemErrorsList = /*@__PURE__*/ S.Array(
980
+ S.String,
981
+ ) as any as S.Schema<BulkSetExcludeFromSlackAiResponseNotAddedItemErrorsList>;
1041
982
 
1042
983
  export interface BulkSetExcludeFromSlackAiResponseNotAddedItem {
1043
984
  channel_id: string;
1044
985
  /** The reason the channel was not added */
1045
986
  errors: BulkSetExcludeFromSlackAiResponseNotAddedItemErrorsList;
1046
987
  }
1047
- export const BulkSetExcludeFromSlackAiResponseNotAddedItem =
1048
- /*@__PURE__*/ S.suspend(() =>
1049
- S.Struct({
1050
- channel_id: S.String,
1051
- errors: BulkSetExcludeFromSlackAiResponseNotAddedItemErrorsList,
1052
- }),
1053
- ).annotate({
1054
- identifier: "BulkSetExcludeFromSlackAiResponseNotAddedItem",
1055
- }) as any as S.Schema<BulkSetExcludeFromSlackAiResponseNotAddedItem>;
988
+ export const BulkSetExcludeFromSlackAiResponseNotAddedItem = /*@__PURE__*/ S.suspend(() =>
989
+ S.Struct({
990
+ channel_id: S.String,
991
+ errors: BulkSetExcludeFromSlackAiResponseNotAddedItemErrorsList,
992
+ }),
993
+ ).annotate({
994
+ identifier: "BulkSetExcludeFromSlackAiResponseNotAddedItem",
995
+ }) as any as S.Schema<BulkSetExcludeFromSlackAiResponseNotAddedItem>;
1056
996
 
1057
997
  /** The channel ID and reason it could not be excluded from Slack AI */
1058
998
  export type BulkSetExcludeFromSlackAiResponseNotAddedList =
1059
999
  Array<BulkSetExcludeFromSlackAiResponseNotAddedItem>;
1060
- export const BulkSetExcludeFromSlackAiResponseNotAddedList =
1061
- /*@__PURE__*/ S.Array(
1062
- BulkSetExcludeFromSlackAiResponseNotAddedItem,
1063
- ) as any as S.Schema<BulkSetExcludeFromSlackAiResponseNotAddedList>;
1000
+ export const BulkSetExcludeFromSlackAiResponseNotAddedList = /*@__PURE__*/ S.Array(
1001
+ BulkSetExcludeFromSlackAiResponseNotAddedItem,
1002
+ ) as any as S.Schema<BulkSetExcludeFromSlackAiResponseNotAddedList>;
1064
1003
 
1065
1004
  export interface BulkSetExcludeFromSlackAiResponse {
1066
1005
  /** Always `true` (a failed call raises a typed error instead). */
@@ -1079,6 +1018,76 @@ export const BulkSetExcludeFromSlackAiResponse = /*@__PURE__*/ S.suspend(() =>
1079
1018
  identifier: "BulkSetExcludeFromSlackAiResponse",
1080
1019
  }) as any as S.Schema<BulkSetExcludeFromSlackAiResponse>;
1081
1020
 
1021
+ /** An array of channel IDs on which to set the property. */
1022
+ export type BulkSetPropertiesRequestChannelIdsList = Array<string>;
1023
+ export const BulkSetPropertiesRequestChannelIdsList = /*@__PURE__*/ S.Array(
1024
+ S.String,
1025
+ ) as any as S.Schema<BulkSetPropertiesRequestChannelIdsList>;
1026
+
1027
+ export interface BulkSetPropertiesRequest {
1028
+ /** An array of channel IDs on which to set the property. */
1029
+ channel_ids: BulkSetPropertiesRequestChannelIdsList;
1030
+ /** The property for this channel in a key value format. Only one property can be updated at a time */
1031
+ property: string;
1032
+ }
1033
+ export const BulkSetPropertiesRequest = /*@__PURE__*/ S.suspend(() =>
1034
+ S.Struct({
1035
+ channel_ids: BulkSetPropertiesRequestChannelIdsList,
1036
+ property: S.String,
1037
+ }).pipe(
1038
+ T.Http({
1039
+ method: "POST",
1040
+ uri: "/admin.conversations.bulkSetProperties",
1041
+ code: 200,
1042
+ contentType: "form-urlencoded",
1043
+ }),
1044
+ ),
1045
+ ).annotate({ identifier: "BulkSetPropertiesRequest" }) as any as S.Schema<BulkSetPropertiesRequest>;
1046
+
1047
+ /** The reasons the channel was not updated */
1048
+ export type BulkSetPropertiesResponseNotUpdatedItemErrorsList = Array<string>;
1049
+ export const BulkSetPropertiesResponseNotUpdatedItemErrorsList = /*@__PURE__*/ S.Array(
1050
+ S.String,
1051
+ ) as any as S.Schema<BulkSetPropertiesResponseNotUpdatedItemErrorsList>;
1052
+
1053
+ export interface BulkSetPropertiesResponseNotUpdatedItem {
1054
+ channel_id: string;
1055
+ /** The reasons the channel was not updated */
1056
+ errors: BulkSetPropertiesResponseNotUpdatedItemErrorsList;
1057
+ }
1058
+ export const BulkSetPropertiesResponseNotUpdatedItem = /*@__PURE__*/ S.suspend(() =>
1059
+ S.Struct({
1060
+ channel_id: S.String,
1061
+ errors: BulkSetPropertiesResponseNotUpdatedItemErrorsList,
1062
+ }),
1063
+ ).annotate({
1064
+ identifier: "BulkSetPropertiesResponseNotUpdatedItem",
1065
+ }) as any as S.Schema<BulkSetPropertiesResponseNotUpdatedItem>;
1066
+
1067
+ /** Channels that could not be updated, with reasons */
1068
+ export type BulkSetPropertiesResponseNotUpdatedList =
1069
+ Array<BulkSetPropertiesResponseNotUpdatedItem>;
1070
+ export const BulkSetPropertiesResponseNotUpdatedList = /*@__PURE__*/ S.Array(
1071
+ BulkSetPropertiesResponseNotUpdatedItem,
1072
+ ) as any as S.Schema<BulkSetPropertiesResponseNotUpdatedList>;
1073
+
1074
+ export interface BulkSetPropertiesResponse {
1075
+ /** Always `true` (a failed call raises a typed error instead). */
1076
+ ok: boolean;
1077
+ bulk_action_id: string;
1078
+ /** Channels that could not be updated, with reasons */
1079
+ not_updated: BulkSetPropertiesResponseNotUpdatedList;
1080
+ }
1081
+ export const BulkSetPropertiesResponse = /*@__PURE__*/ S.suspend(() =>
1082
+ S.Struct({
1083
+ ok: S.Boolean,
1084
+ bulk_action_id: S.String,
1085
+ not_updated: BulkSetPropertiesResponseNotUpdatedList,
1086
+ }),
1087
+ ).annotate({
1088
+ identifier: "BulkSetPropertiesResponse",
1089
+ }) as any as S.Schema<BulkSetPropertiesResponse>;
1090
+
1082
1091
  export interface CancelAppsRequestRequest {
1083
1092
  /** The id of the request to cancel. */
1084
1093
  request_id: string;
@@ -1092,12 +1101,8 @@ export const CancelAppsRequestRequest = /*@__PURE__*/ S.suspend(() =>
1092
1101
  request_id: S.String,
1093
1102
  team_id: S.optional(S.String),
1094
1103
  enterprise_id: S.optional(S.String),
1095
- }).pipe(
1096
- T.Http({ method: "POST", uri: "/admin.apps.requests.cancel", code: 200 }),
1097
- ),
1098
- ).annotate({
1099
- identifier: "CancelAppsRequestRequest",
1100
- }) as any as S.Schema<CancelAppsRequestRequest>;
1104
+ }).pipe(T.Http({ method: "POST", uri: "/admin.apps.requests.cancel", code: 200 })),
1105
+ ).annotate({ identifier: "CancelAppsRequestRequest" }) as any as S.Schema<CancelAppsRequestRequest>;
1101
1106
 
1102
1107
  export interface CancelAppsRequestResponse {
1103
1108
  /** Always `true` (a failed call raises a typed error instead). */
@@ -1124,12 +1129,8 @@ export const ClearResolutionRequest = /*@__PURE__*/ S.suspend(() =>
1124
1129
  app_id: S.String,
1125
1130
  team_id: S.optional(S.String),
1126
1131
  enterprise_id: S.optional(S.String),
1127
- }).pipe(
1128
- T.Http({ method: "POST", uri: "/admin.apps.clearResolution", code: 200 }),
1129
- ),
1130
- ).annotate({
1131
- identifier: "ClearResolutionRequest",
1132
- }) as any as S.Schema<ClearResolutionRequest>;
1132
+ }).pipe(T.Http({ method: "POST", uri: "/admin.apps.clearResolution", code: 200 })),
1133
+ ).annotate({ identifier: "ClearResolutionRequest" }) as any as S.Schema<ClearResolutionRequest>;
1133
1134
 
1134
1135
  export interface ClearResolutionResponse {
1135
1136
  /** Always `true` (a failed call raises a typed error instead). */
@@ -1139,9 +1140,7 @@ export const ClearResolutionResponse = /*@__PURE__*/ S.suspend(() =>
1139
1140
  S.Struct({
1140
1141
  ok: S.Boolean,
1141
1142
  }),
1142
- ).annotate({
1143
- identifier: "ClearResolutionResponse",
1144
- }) as any as S.Schema<ClearResolutionResponse>;
1143
+ ).annotate({ identifier: "ClearResolutionResponse" }) as any as S.Schema<ClearResolutionResponse>;
1145
1144
 
1146
1145
  /** The IDs of users you'd like to clear session settings for. */
1147
1146
  export type ClearSettingsRequestUserIdsList = Array<string>;
@@ -1156,16 +1155,8 @@ export interface ClearSettingsRequest {
1156
1155
  export const ClearSettingsRequest = /*@__PURE__*/ S.suspend(() =>
1157
1156
  S.Struct({
1158
1157
  user_ids: ClearSettingsRequestUserIdsList,
1159
- }).pipe(
1160
- T.Http({
1161
- method: "POST",
1162
- uri: "/admin.users.session.clearSettings",
1163
- code: 200,
1164
- }),
1165
- ),
1166
- ).annotate({
1167
- identifier: "ClearSettingsRequest",
1168
- }) as any as S.Schema<ClearSettingsRequest>;
1158
+ }).pipe(T.Http({ method: "POST", uri: "/admin.users.session.clearSettings", code: 200 })),
1159
+ ).annotate({ identifier: "ClearSettingsRequest" }) as any as S.Schema<ClearSettingsRequest>;
1169
1160
 
1170
1161
  export interface ClearSettingsResponse {
1171
1162
  ok: boolean;
@@ -1174,9 +1165,7 @@ export const ClearSettingsResponse = /*@__PURE__*/ S.suspend(() =>
1174
1165
  S.Struct({
1175
1166
  ok: S.Boolean,
1176
1167
  }),
1177
- ).annotate({
1178
- identifier: "ClearSettingsResponse",
1179
- }) as any as S.Schema<ClearSettingsResponse>;
1168
+ ).annotate({ identifier: "ClearSettingsResponse" }) as any as S.Schema<ClearSettingsResponse>;
1180
1169
 
1181
1170
  export interface ConvertToPrivateRequest {
1182
1171
  /** The channel to convert to private. */
@@ -1188,16 +1177,8 @@ export const ConvertToPrivateRequest = /*@__PURE__*/ S.suspend(() =>
1188
1177
  S.Struct({
1189
1178
  channel_id: S.String,
1190
1179
  name: S.optional(S.String),
1191
- }).pipe(
1192
- T.Http({
1193
- method: "POST",
1194
- uri: "/admin.conversations.convertToPrivate",
1195
- code: 200,
1196
- }),
1197
- ),
1198
- ).annotate({
1199
- identifier: "ConvertToPrivateRequest",
1200
- }) as any as S.Schema<ConvertToPrivateRequest>;
1180
+ }).pipe(T.Http({ method: "POST", uri: "/admin.conversations.convertToPrivate", code: 200 })),
1181
+ ).annotate({ identifier: "ConvertToPrivateRequest" }) as any as S.Schema<ConvertToPrivateRequest>;
1201
1182
 
1202
1183
  export interface ConvertToPrivateResponse {
1203
1184
  ok: boolean;
@@ -1206,9 +1187,7 @@ export const ConvertToPrivateResponse = /*@__PURE__*/ S.suspend(() =>
1206
1187
  S.Struct({
1207
1188
  ok: S.Boolean,
1208
1189
  }),
1209
- ).annotate({
1210
- identifier: "ConvertToPrivateResponse",
1211
- }) as any as S.Schema<ConvertToPrivateResponse>;
1190
+ ).annotate({ identifier: "ConvertToPrivateResponse" }) as any as S.Schema<ConvertToPrivateResponse>;
1212
1191
 
1213
1192
  export interface ConvertToPublicRequest {
1214
1193
  /** The channel to convert to public. */
@@ -1217,16 +1196,8 @@ export interface ConvertToPublicRequest {
1217
1196
  export const ConvertToPublicRequest = /*@__PURE__*/ S.suspend(() =>
1218
1197
  S.Struct({
1219
1198
  channel_id: S.String,
1220
- }).pipe(
1221
- T.Http({
1222
- method: "POST",
1223
- uri: "/admin.conversations.convertToPublic",
1224
- code: 200,
1225
- }),
1226
- ),
1227
- ).annotate({
1228
- identifier: "ConvertToPublicRequest",
1229
- }) as any as S.Schema<ConvertToPublicRequest>;
1199
+ }).pipe(T.Http({ method: "POST", uri: "/admin.conversations.convertToPublic", code: 200 })),
1200
+ ).annotate({ identifier: "ConvertToPublicRequest" }) as any as S.Schema<ConvertToPublicRequest>;
1230
1201
 
1231
1202
  export interface ConvertToPublicResponse {
1232
1203
  ok: boolean;
@@ -1235,16 +1206,13 @@ export const ConvertToPublicResponse = /*@__PURE__*/ S.suspend(() =>
1235
1206
  S.Struct({
1236
1207
  ok: S.Boolean,
1237
1208
  }),
1238
- ).annotate({
1239
- identifier: "ConvertToPublicResponse",
1240
- }) as any as S.Schema<ConvertToPublicResponse>;
1209
+ ).annotate({ identifier: "ConvertToPublicResponse" }) as any as S.Schema<ConvertToPublicResponse>;
1241
1210
 
1242
1211
  /** A list of [IDP Groups](https://slack.com/help/articles/115001435788-Connect-identity-provider-groups-to-your-Enterprise-organization) ids that the primary usergroup is to be barriered from. */
1243
1212
  export type CreateBarrierRequestBarrieredFromUsergroupIdsList = Array<string>;
1244
- export const CreateBarrierRequestBarrieredFromUsergroupIdsList =
1245
- /*@__PURE__*/ S.Array(
1246
- S.String,
1247
- ) as any as S.Schema<CreateBarrierRequestBarrieredFromUsergroupIdsList>;
1213
+ export const CreateBarrierRequestBarrieredFromUsergroupIdsList = /*@__PURE__*/ S.Array(
1214
+ S.String,
1215
+ ) as any as S.Schema<CreateBarrierRequestBarrieredFromUsergroupIdsList>;
1248
1216
 
1249
1217
  export type CreateBarrierRequestRestrictedSubjectsItem = "im" | "mpim" | "call";
1250
1218
  export const CreateBarrierRequestRestrictedSubjectsItem = S.String;
@@ -1268,8 +1236,7 @@ export interface CreateBarrierRequest {
1268
1236
  export const CreateBarrierRequest = /*@__PURE__*/ S.suspend(() =>
1269
1237
  S.Struct({
1270
1238
  primary_usergroup_id: S.String,
1271
- barriered_from_usergroup_ids:
1272
- CreateBarrierRequestBarrieredFromUsergroupIdsList,
1239
+ barriered_from_usergroup_ids: CreateBarrierRequestBarrieredFromUsergroupIdsList,
1273
1240
  restricted_subjects: CreateBarrierRequestRestrictedSubjectsList,
1274
1241
  }).pipe(
1275
1242
  T.Http({
@@ -1279,9 +1246,7 @@ export const CreateBarrierRequest = /*@__PURE__*/ S.suspend(() =>
1279
1246
  contentType: "form-urlencoded",
1280
1247
  }),
1281
1248
  ),
1282
- ).annotate({
1283
- identifier: "CreateBarrierRequest",
1284
- }) as any as S.Schema<CreateBarrierRequest>;
1249
+ ).annotate({ identifier: "CreateBarrierRequest" }) as any as S.Schema<CreateBarrierRequest>;
1285
1250
 
1286
1251
  export interface CreateBarrierResponse {
1287
1252
  ok: boolean;
@@ -1292,9 +1257,7 @@ export const CreateBarrierResponse = /*@__PURE__*/ S.suspend(() =>
1292
1257
  ok: S.Boolean,
1293
1258
  barrier: S.Unknown,
1294
1259
  }),
1295
- ).annotate({
1296
- identifier: "CreateBarrierResponse",
1297
- }) as any as S.Schema<CreateBarrierResponse>;
1260
+ ).annotate({ identifier: "CreateBarrierResponse" }) as any as S.Schema<CreateBarrierResponse>;
1298
1261
 
1299
1262
  export interface CreateConversationRequest {
1300
1263
  /** Name of the public or private channel to create. */
@@ -1315,9 +1278,7 @@ export const CreateConversationRequest = /*@__PURE__*/ S.suspend(() =>
1315
1278
  is_private: S.Boolean,
1316
1279
  org_wide: S.optional(S.Boolean),
1317
1280
  team_id: S.optional(S.String),
1318
- }).pipe(
1319
- T.Http({ method: "POST", uri: "/admin.conversations.create", code: 200 }),
1320
- ),
1281
+ }).pipe(T.Http({ method: "POST", uri: "/admin.conversations.create", code: 200 })),
1321
1282
  ).annotate({
1322
1283
  identifier: "CreateConversationRequest",
1323
1284
  }) as any as S.Schema<CreateConversationRequest>;
@@ -1348,16 +1309,8 @@ export const CreateForObjectsRequest = /*@__PURE__*/ S.suspend(() =>
1348
1309
  object_id: S.String,
1349
1310
  salesforce_org_id: S.String,
1350
1311
  invite_object_team: S.optional(S.Boolean),
1351
- }).pipe(
1352
- T.Http({
1353
- method: "POST",
1354
- uri: "/admin.conversations.createForObjects",
1355
- code: 200,
1356
- }),
1357
- ),
1358
- ).annotate({
1359
- identifier: "CreateForObjectsRequest",
1360
- }) as any as S.Schema<CreateForObjectsRequest>;
1312
+ }).pipe(T.Http({ method: "POST", uri: "/admin.conversations.createForObjects", code: 200 })),
1313
+ ).annotate({ identifier: "CreateForObjectsRequest" }) as any as S.Schema<CreateForObjectsRequest>;
1361
1314
 
1362
1315
  export interface CreateForObjectsResponse {
1363
1316
  /** Always `true` (a failed call raises a typed error instead). */
@@ -1370,9 +1323,7 @@ export const CreateForObjectsResponse = /*@__PURE__*/ S.suspend(() =>
1370
1323
  ok: S.Boolean,
1371
1324
  channel_id: S.String,
1372
1325
  }),
1373
- ).annotate({
1374
- identifier: "CreateForObjectsResponse",
1375
- }) as any as S.Schema<CreateForObjectsResponse>;
1326
+ ).annotate({ identifier: "CreateForObjectsResponse" }) as any as S.Schema<CreateForObjectsResponse>;
1376
1327
 
1377
1328
  export interface CreateTeamRequest {
1378
1329
  /** Team domain (for example, slacksoftballteam). Domains are limited to 21 characters. */
@@ -1391,9 +1342,7 @@ export const CreateTeamRequest = /*@__PURE__*/ S.suspend(() =>
1391
1342
  team_description: S.optional(S.String),
1392
1343
  team_discoverability: S.optional(S.String),
1393
1344
  }).pipe(T.Http({ method: "POST", uri: "/admin.teams.create", code: 200 })),
1394
- ).annotate({
1395
- identifier: "CreateTeamRequest",
1396
- }) as any as S.Schema<CreateTeamRequest>;
1345
+ ).annotate({ identifier: "CreateTeamRequest" }) as any as S.Schema<CreateTeamRequest>;
1397
1346
 
1398
1347
  export interface CreateTeamResponse {
1399
1348
  /** Always `true` (a failed call raises a typed error instead). */
@@ -1405,9 +1354,41 @@ export const CreateTeamResponse = /*@__PURE__*/ S.suspend(() =>
1405
1354
  ok: S.Boolean,
1406
1355
  team: S.String,
1407
1356
  }),
1408
- ).annotate({
1409
- identifier: "CreateTeamResponse",
1410
- }) as any as S.Schema<CreateTeamResponse>;
1357
+ ).annotate({ identifier: "CreateTeamResponse" }) as any as S.Schema<CreateTeamResponse>;
1358
+
1359
+ export interface CreateUsergroupRequest {
1360
+ /** Unique name for the usergroup */
1361
+ name: string;
1362
+ /** Optional handle used to mention the usergroup in channel, must be unique */
1363
+ handle?: string;
1364
+ /** Optional purpose that describes what the usergroup is about */
1365
+ purpose?: string;
1366
+ /** Configure whether or not this usergroup should be visible in the client */
1367
+ is_visible?: boolean;
1368
+ }
1369
+ export const CreateUsergroupRequest = /*@__PURE__*/ S.suspend(() =>
1370
+ S.Struct({
1371
+ name: S.String,
1372
+ handle: S.optional(S.String),
1373
+ purpose: S.optional(S.String),
1374
+ is_visible: S.optional(S.Boolean),
1375
+ }).pipe(T.Http({ method: "POST", uri: "/admin.usergroups.create", code: 200 })),
1376
+ ).annotate({ identifier: "CreateUsergroupRequest" }) as any as S.Schema<CreateUsergroupRequest>;
1377
+
1378
+ export interface CreateUsergroupResponse {
1379
+ /** Always `true` (a failed call raises a typed error instead). */
1380
+ ok: boolean;
1381
+ /** A string representation of the error type */
1382
+ error?: string;
1383
+ subteam?: unknown;
1384
+ }
1385
+ export const CreateUsergroupResponse = /*@__PURE__*/ S.suspend(() =>
1386
+ S.Struct({
1387
+ ok: S.Boolean,
1388
+ error: S.optional(S.String),
1389
+ subteam: S.optional(S.Unknown),
1390
+ }),
1391
+ ).annotate({ identifier: "CreateUsergroupResponse" }) as any as S.Schema<CreateUsergroupResponse>;
1411
1392
 
1412
1393
  export interface DeleteBarrierRequest {
1413
1394
  /** The ID of the barrier you're trying to delete */
@@ -1424,9 +1405,7 @@ export const DeleteBarrierRequest = /*@__PURE__*/ S.suspend(() =>
1424
1405
  contentType: "form-urlencoded",
1425
1406
  }),
1426
1407
  ),
1427
- ).annotate({
1428
- identifier: "DeleteBarrierRequest",
1429
- }) as any as S.Schema<DeleteBarrierRequest>;
1408
+ ).annotate({ identifier: "DeleteBarrierRequest" }) as any as S.Schema<DeleteBarrierRequest>;
1430
1409
 
1431
1410
  export interface DeleteBarrierResponse {
1432
1411
  ok: boolean;
@@ -1435,9 +1414,7 @@ export const DeleteBarrierResponse = /*@__PURE__*/ S.suspend(() =>
1435
1414
  S.Struct({
1436
1415
  ok: S.Boolean,
1437
1416
  }),
1438
- ).annotate({
1439
- identifier: "DeleteBarrierResponse",
1440
- }) as any as S.Schema<DeleteBarrierResponse>;
1417
+ ).annotate({ identifier: "DeleteBarrierResponse" }) as any as S.Schema<DeleteBarrierResponse>;
1441
1418
 
1442
1419
  export interface DeleteConversationRequest {
1443
1420
  /** The channel to delete. */
@@ -1446,9 +1423,7 @@ export interface DeleteConversationRequest {
1446
1423
  export const DeleteConversationRequest = /*@__PURE__*/ S.suspend(() =>
1447
1424
  S.Struct({
1448
1425
  channel_id: S.String,
1449
- }).pipe(
1450
- T.Http({ method: "POST", uri: "/admin.conversations.delete", code: 200 }),
1451
- ),
1426
+ }).pipe(T.Http({ method: "POST", uri: "/admin.conversations.delete", code: 200 })),
1452
1427
  ).annotate({
1453
1428
  identifier: "DeleteConversationRequest",
1454
1429
  }) as any as S.Schema<DeleteConversationRequest>;
@@ -1480,16 +1455,8 @@ export const DisconnectSharedRequest = /*@__PURE__*/ S.suspend(() =>
1480
1455
  S.Struct({
1481
1456
  channel_id: S.String,
1482
1457
  leaving_team_ids: S.optional(DisconnectSharedRequestLeavingTeamIdsList),
1483
- }).pipe(
1484
- T.Http({
1485
- method: "POST",
1486
- uri: "/admin.conversations.disconnectShared",
1487
- code: 200,
1488
- }),
1489
- ),
1490
- ).annotate({
1491
- identifier: "DisconnectSharedRequest",
1492
- }) as any as S.Schema<DisconnectSharedRequest>;
1458
+ }).pipe(T.Http({ method: "POST", uri: "/admin.conversations.disconnectShared", code: 200 })),
1459
+ ).annotate({ identifier: "DisconnectSharedRequest" }) as any as S.Schema<DisconnectSharedRequest>;
1493
1460
 
1494
1461
  export interface DisconnectSharedResponse {
1495
1462
  ok: boolean;
@@ -1498,9 +1465,7 @@ export const DisconnectSharedResponse = /*@__PURE__*/ S.suspend(() =>
1498
1465
  S.Struct({
1499
1466
  ok: S.Boolean,
1500
1467
  }),
1501
- ).annotate({
1502
- identifier: "DisconnectSharedResponse",
1503
- }) as any as S.Schema<DisconnectSharedResponse>;
1468
+ ).annotate({ identifier: "DisconnectSharedResponse" }) as any as S.Schema<DisconnectSharedResponse>;
1504
1469
 
1505
1470
  export interface ExportUsersUnsupportedVersionRequest {
1506
1471
  /** Unix timestamp of a date to start looking for user sessions. If not provided will start six months ago. */
@@ -1508,19 +1473,18 @@ export interface ExportUsersUnsupportedVersionRequest {
1508
1473
  /** Unix timestamp of the date of past or upcoming end of support cycles. If not provided will include all announced end of support cycles. */
1509
1474
  date_end_of_support?: number;
1510
1475
  }
1511
- export const ExportUsersUnsupportedVersionRequest = /*@__PURE__*/ S.suspend(
1512
- () =>
1513
- S.Struct({
1514
- date_sessions_started: S.optional(S.Number),
1515
- date_end_of_support: S.optional(S.Number),
1516
- }).pipe(
1517
- T.Http({
1518
- method: "POST",
1519
- uri: "/admin.users.unsupportedVersions.export",
1520
- code: 200,
1521
- contentType: "form-urlencoded",
1522
- }),
1523
- ),
1476
+ export const ExportUsersUnsupportedVersionRequest = /*@__PURE__*/ S.suspend(() =>
1477
+ S.Struct({
1478
+ date_sessions_started: S.optional(S.Number),
1479
+ date_end_of_support: S.optional(S.Number),
1480
+ }).pipe(
1481
+ T.Http({
1482
+ method: "POST",
1483
+ uri: "/admin.users.unsupportedVersions.export",
1484
+ code: 200,
1485
+ contentType: "form-urlencoded",
1486
+ }),
1487
+ ),
1524
1488
  ).annotate({
1525
1489
  identifier: "ExportUsersUnsupportedVersionRequest",
1526
1490
  }) as any as S.Schema<ExportUsersUnsupportedVersionRequest>;
@@ -1529,15 +1493,36 @@ export interface ExportUsersUnsupportedVersionResponse {
1529
1493
  /** Always `true` (a failed call raises a typed error instead). */
1530
1494
  ok: boolean;
1531
1495
  }
1532
- export const ExportUsersUnsupportedVersionResponse = /*@__PURE__*/ S.suspend(
1533
- () =>
1534
- S.Struct({
1535
- ok: S.Boolean,
1536
- }),
1496
+ export const ExportUsersUnsupportedVersionResponse = /*@__PURE__*/ S.suspend(() =>
1497
+ S.Struct({
1498
+ ok: S.Boolean,
1499
+ }),
1537
1500
  ).annotate({
1538
1501
  identifier: "ExportUsersUnsupportedVersionResponse",
1539
1502
  }) as any as S.Schema<ExportUsersUnsupportedVersionResponse>;
1540
1503
 
1504
+ export interface FetchUsergroupRequest {
1505
+ /** ID of the usergroup to fetch */
1506
+ id: string;
1507
+ }
1508
+ export const FetchUsergroupRequest = /*@__PURE__*/ S.suspend(() =>
1509
+ S.Struct({
1510
+ id: S.String,
1511
+ }).pipe(T.Http({ method: "POST", uri: "/admin.usergroups.fetch", code: 200 })),
1512
+ ).annotate({ identifier: "FetchUsergroupRequest" }) as any as S.Schema<FetchUsergroupRequest>;
1513
+
1514
+ export interface FetchUsergroupResponse {
1515
+ /** Always `true` (a failed call raises a typed error instead). */
1516
+ ok: boolean;
1517
+ subteam: unknown;
1518
+ }
1519
+ export const FetchUsergroupResponse = /*@__PURE__*/ S.suspend(() =>
1520
+ S.Struct({
1521
+ ok: S.Boolean,
1522
+ subteam: S.Unknown,
1523
+ }),
1524
+ ).annotate({ identifier: "FetchUsergroupResponse" }) as any as S.Schema<FetchUsergroupResponse>;
1525
+
1541
1526
  export interface GetConversationPrefsRequest {
1542
1527
  /** The channel to get preferences for. */
1543
1528
  channel_id: string;
@@ -1545,30 +1530,22 @@ export interface GetConversationPrefsRequest {
1545
1530
  export const GetConversationPrefsRequest = /*@__PURE__*/ S.suspend(() =>
1546
1531
  S.Struct({
1547
1532
  channel_id: S.String,
1548
- }).pipe(
1549
- T.Http({
1550
- method: "POST",
1551
- uri: "/admin.conversations.getConversationPrefs",
1552
- code: 200,
1553
- }),
1554
- ),
1533
+ }).pipe(T.Http({ method: "POST", uri: "/admin.conversations.getConversationPrefs", code: 200 })),
1555
1534
  ).annotate({
1556
1535
  identifier: "GetConversationPrefsRequest",
1557
1536
  }) as any as S.Schema<GetConversationPrefsRequest>;
1558
1537
 
1559
1538
  /** Comma separated string of user types */
1560
1539
  export type GetConversationPrefsResponsePrefsWhoCanPostTypeList = Array<string>;
1561
- export const GetConversationPrefsResponsePrefsWhoCanPostTypeList =
1562
- /*@__PURE__*/ S.Array(
1563
- S.String,
1564
- ) as any as S.Schema<GetConversationPrefsResponsePrefsWhoCanPostTypeList>;
1540
+ export const GetConversationPrefsResponsePrefsWhoCanPostTypeList = /*@__PURE__*/ S.Array(
1541
+ S.String,
1542
+ ) as any as S.Schema<GetConversationPrefsResponsePrefsWhoCanPostTypeList>;
1565
1543
 
1566
1544
  /** Comma separated string of user IDs */
1567
1545
  export type GetConversationPrefsResponsePrefsWhoCanPostUserList = Array<string>;
1568
- export const GetConversationPrefsResponsePrefsWhoCanPostUserList =
1569
- /*@__PURE__*/ S.Array(
1570
- S.String,
1571
- ) as any as S.Schema<GetConversationPrefsResponsePrefsWhoCanPostUserList>;
1546
+ export const GetConversationPrefsResponsePrefsWhoCanPostUserList = /*@__PURE__*/ S.Array(
1547
+ S.String,
1548
+ ) as any as S.Schema<GetConversationPrefsResponsePrefsWhoCanPostUserList>;
1572
1549
 
1573
1550
  export interface GetConversationPrefsResponsePrefsWhoCanPost {
1574
1551
  /** Comma separated string of user types */
@@ -1576,29 +1553,26 @@ export interface GetConversationPrefsResponsePrefsWhoCanPost {
1576
1553
  /** Comma separated string of user IDs */
1577
1554
  user?: GetConversationPrefsResponsePrefsWhoCanPostUserList;
1578
1555
  }
1579
- export const GetConversationPrefsResponsePrefsWhoCanPost =
1580
- /*@__PURE__*/ S.suspend(() =>
1581
- S.Struct({
1582
- type: S.optional(GetConversationPrefsResponsePrefsWhoCanPostTypeList),
1583
- user: S.optional(GetConversationPrefsResponsePrefsWhoCanPostUserList),
1584
- }),
1585
- ).annotate({
1586
- identifier: "GetConversationPrefsResponsePrefsWhoCanPost",
1587
- }) as any as S.Schema<GetConversationPrefsResponsePrefsWhoCanPost>;
1556
+ export const GetConversationPrefsResponsePrefsWhoCanPost = /*@__PURE__*/ S.suspend(() =>
1557
+ S.Struct({
1558
+ type: S.optional(GetConversationPrefsResponsePrefsWhoCanPostTypeList),
1559
+ user: S.optional(GetConversationPrefsResponsePrefsWhoCanPostUserList),
1560
+ }),
1561
+ ).annotate({
1562
+ identifier: "GetConversationPrefsResponsePrefsWhoCanPost",
1563
+ }) as any as S.Schema<GetConversationPrefsResponsePrefsWhoCanPost>;
1588
1564
 
1589
1565
  /** Comma separated string of user types */
1590
1566
  export type GetConversationPrefsResponsePrefsCanThreadTypeList = Array<string>;
1591
- export const GetConversationPrefsResponsePrefsCanThreadTypeList =
1592
- /*@__PURE__*/ S.Array(
1593
- S.String,
1594
- ) as any as S.Schema<GetConversationPrefsResponsePrefsCanThreadTypeList>;
1567
+ export const GetConversationPrefsResponsePrefsCanThreadTypeList = /*@__PURE__*/ S.Array(
1568
+ S.String,
1569
+ ) as any as S.Schema<GetConversationPrefsResponsePrefsCanThreadTypeList>;
1595
1570
 
1596
1571
  /** Comma separated string of user IDs */
1597
1572
  export type GetConversationPrefsResponsePrefsCanThreadUserList = Array<string>;
1598
- export const GetConversationPrefsResponsePrefsCanThreadUserList =
1599
- /*@__PURE__*/ S.Array(
1600
- S.String,
1601
- ) as any as S.Schema<GetConversationPrefsResponsePrefsCanThreadUserList>;
1573
+ export const GetConversationPrefsResponsePrefsCanThreadUserList = /*@__PURE__*/ S.Array(
1574
+ S.String,
1575
+ ) as any as S.Schema<GetConversationPrefsResponsePrefsCanThreadUserList>;
1602
1576
 
1603
1577
  export interface GetConversationPrefsResponsePrefsCanThread {
1604
1578
  /** Comma separated string of user types */
@@ -1606,67 +1580,62 @@ export interface GetConversationPrefsResponsePrefsCanThread {
1606
1580
  /** Comma separated string of user IDs */
1607
1581
  user?: GetConversationPrefsResponsePrefsCanThreadUserList;
1608
1582
  }
1609
- export const GetConversationPrefsResponsePrefsCanThread =
1610
- /*@__PURE__*/ S.suspend(() =>
1611
- S.Struct({
1612
- type: S.optional(GetConversationPrefsResponsePrefsCanThreadTypeList),
1613
- user: S.optional(GetConversationPrefsResponsePrefsCanThreadUserList),
1614
- }),
1615
- ).annotate({
1616
- identifier: "GetConversationPrefsResponsePrefsCanThread",
1617
- }) as any as S.Schema<GetConversationPrefsResponsePrefsCanThread>;
1583
+ export const GetConversationPrefsResponsePrefsCanThread = /*@__PURE__*/ S.suspend(() =>
1584
+ S.Struct({
1585
+ type: S.optional(GetConversationPrefsResponsePrefsCanThreadTypeList),
1586
+ user: S.optional(GetConversationPrefsResponsePrefsCanThreadUserList),
1587
+ }),
1588
+ ).annotate({
1589
+ identifier: "GetConversationPrefsResponsePrefsCanThread",
1590
+ }) as any as S.Schema<GetConversationPrefsResponsePrefsCanThread>;
1618
1591
 
1619
1592
  export interface GetConversationPrefsResponsePrefsMembershipLimit {
1620
1593
  /** Membership limit value */
1621
1594
  value?: number;
1622
1595
  }
1623
- export const GetConversationPrefsResponsePrefsMembershipLimit =
1624
- /*@__PURE__*/ S.suspend(() =>
1625
- S.Struct({
1626
- value: S.optional(S.Number),
1627
- }),
1628
- ).annotate({
1629
- identifier: "GetConversationPrefsResponsePrefsMembershipLimit",
1630
- }) as any as S.Schema<GetConversationPrefsResponsePrefsMembershipLimit>;
1596
+ export const GetConversationPrefsResponsePrefsMembershipLimit = /*@__PURE__*/ S.suspend(() =>
1597
+ S.Struct({
1598
+ value: S.optional(S.Number),
1599
+ }),
1600
+ ).annotate({
1601
+ identifier: "GetConversationPrefsResponsePrefsMembershipLimit",
1602
+ }) as any as S.Schema<GetConversationPrefsResponsePrefsMembershipLimit>;
1631
1603
 
1632
1604
  export interface GetConversationPrefsResponsePrefsCanHuddle {
1633
1605
  /** Can start a huddle */
1634
1606
  enabled?: boolean;
1635
1607
  }
1636
- export const GetConversationPrefsResponsePrefsCanHuddle =
1637
- /*@__PURE__*/ S.suspend(() =>
1638
- S.Struct({
1639
- enabled: S.optional(S.Boolean),
1640
- }),
1641
- ).annotate({
1642
- identifier: "GetConversationPrefsResponsePrefsCanHuddle",
1643
- }) as any as S.Schema<GetConversationPrefsResponsePrefsCanHuddle>;
1608
+ export const GetConversationPrefsResponsePrefsCanHuddle = /*@__PURE__*/ S.suspend(() =>
1609
+ S.Struct({
1610
+ enabled: S.optional(S.Boolean),
1611
+ }),
1612
+ ).annotate({
1613
+ identifier: "GetConversationPrefsResponsePrefsCanHuddle",
1614
+ }) as any as S.Schema<GetConversationPrefsResponsePrefsCanHuddle>;
1644
1615
 
1645
1616
  export interface GetConversationPrefsResponsePrefsEnableAtChannel {
1646
1617
  /** Enable channel mentions in channel. */
1647
1618
  enabled?: boolean;
1648
1619
  }
1649
- export const GetConversationPrefsResponsePrefsEnableAtChannel =
1650
- /*@__PURE__*/ S.suspend(() =>
1651
- S.Struct({
1652
- enabled: S.optional(S.Boolean),
1653
- }),
1654
- ).annotate({
1655
- identifier: "GetConversationPrefsResponsePrefsEnableAtChannel",
1656
- }) as any as S.Schema<GetConversationPrefsResponsePrefsEnableAtChannel>;
1620
+ export const GetConversationPrefsResponsePrefsEnableAtChannel = /*@__PURE__*/ S.suspend(() =>
1621
+ S.Struct({
1622
+ enabled: S.optional(S.Boolean),
1623
+ }),
1624
+ ).annotate({
1625
+ identifier: "GetConversationPrefsResponsePrefsEnableAtChannel",
1626
+ }) as any as S.Schema<GetConversationPrefsResponsePrefsEnableAtChannel>;
1657
1627
 
1658
1628
  export interface GetConversationPrefsResponsePrefsEnableAtHere {
1659
1629
  /** Enable here mentions in channel. */
1660
1630
  enabled?: boolean;
1661
1631
  }
1662
- export const GetConversationPrefsResponsePrefsEnableAtHere =
1663
- /*@__PURE__*/ S.suspend(() =>
1664
- S.Struct({
1665
- enabled: S.optional(S.Boolean),
1666
- }),
1667
- ).annotate({
1668
- identifier: "GetConversationPrefsResponsePrefsEnableAtHere",
1669
- }) as any as S.Schema<GetConversationPrefsResponsePrefsEnableAtHere>;
1632
+ export const GetConversationPrefsResponsePrefsEnableAtHere = /*@__PURE__*/ S.suspend(() =>
1633
+ S.Struct({
1634
+ enabled: S.optional(S.Boolean),
1635
+ }),
1636
+ ).annotate({
1637
+ identifier: "GetConversationPrefsResponsePrefsEnableAtHere",
1638
+ }) as any as S.Schema<GetConversationPrefsResponsePrefsEnableAtHere>;
1670
1639
 
1671
1640
  export interface GetConversationPrefsResponsePrefs {
1672
1641
  who_can_post?: GetConversationPrefsResponsePrefsWhoCanPost;
@@ -1680,13 +1649,9 @@ export const GetConversationPrefsResponsePrefs = /*@__PURE__*/ S.suspend(() =>
1680
1649
  S.Struct({
1681
1650
  who_can_post: S.optional(GetConversationPrefsResponsePrefsWhoCanPost),
1682
1651
  can_thread: S.optional(GetConversationPrefsResponsePrefsCanThread),
1683
- membership_limit: S.optional(
1684
- GetConversationPrefsResponsePrefsMembershipLimit,
1685
- ),
1652
+ membership_limit: S.optional(GetConversationPrefsResponsePrefsMembershipLimit),
1686
1653
  can_huddle: S.optional(GetConversationPrefsResponsePrefsCanHuddle),
1687
- enable_at_channel: S.optional(
1688
- GetConversationPrefsResponsePrefsEnableAtChannel,
1689
- ),
1654
+ enable_at_channel: S.optional(GetConversationPrefsResponsePrefsEnableAtChannel),
1690
1655
  enable_at_here: S.optional(GetConversationPrefsResponsePrefsEnableAtHere),
1691
1656
  }),
1692
1657
  ).annotate({
@@ -1713,13 +1678,7 @@ export interface GetCustomRetentionRequest {
1713
1678
  export const GetCustomRetentionRequest = /*@__PURE__*/ S.suspend(() =>
1714
1679
  S.Struct({
1715
1680
  channel_id: S.String,
1716
- }).pipe(
1717
- T.Http({
1718
- method: "POST",
1719
- uri: "/admin.conversations.getCustomRetention",
1720
- code: 200,
1721
- }),
1722
- ),
1681
+ }).pipe(T.Http({ method: "POST", uri: "/admin.conversations.getCustomRetention", code: 200 })),
1723
1682
  ).annotate({
1724
1683
  identifier: "GetCustomRetentionRequest",
1725
1684
  }) as any as S.Schema<GetCustomRetentionRequest>;
@@ -1758,20 +1717,11 @@ export const GetEntitiesRequest = /*@__PURE__*/ S.suspend(() =>
1758
1717
  entity_type: S.optional(S.Unknown),
1759
1718
  limit: S.optional(S.Number),
1760
1719
  cursor: S.optional(S.String),
1761
- }).pipe(
1762
- T.Http({
1763
- method: "POST",
1764
- uri: "/admin.auth.policy.getEntities",
1765
- code: 200,
1766
- }),
1767
- ),
1768
- ).annotate({
1769
- identifier: "GetEntitiesRequest",
1770
- }) as any as S.Schema<GetEntitiesRequest>;
1720
+ }).pipe(T.Http({ method: "POST", uri: "/admin.auth.policy.getEntities", code: 200 })),
1721
+ ).annotate({ identifier: "GetEntitiesRequest" }) as any as S.Schema<GetEntitiesRequest>;
1771
1722
 
1772
1723
  /** Pagination metadata. An empty `next_cursor` means the last page. */
1773
- export type GetEntitiesResponseResponseMetadata =
1774
- AnalyticsMessagesActivityResponseResponseMetadata;
1724
+ export type GetEntitiesResponseResponseMetadata = AnalyticsMessagesActivityResponseResponseMetadata;
1775
1725
  export const GetEntitiesResponseResponseMetadata =
1776
1726
  AnalyticsMessagesActivityResponseResponseMetadata;
1777
1727
 
@@ -1794,8 +1744,7 @@ export const GetEntitiesResponseEntitiesItem = /*@__PURE__*/ S.suspend(() =>
1794
1744
  }) as any as S.Schema<GetEntitiesResponseEntitiesItem>;
1795
1745
 
1796
1746
  /** Entities assigned to the policy */
1797
- export type GetEntitiesResponseEntitiesList =
1798
- Array<GetEntitiesResponseEntitiesItem>;
1747
+ export type GetEntitiesResponseEntitiesList = Array<GetEntitiesResponseEntitiesItem>;
1799
1748
  export const GetEntitiesResponseEntitiesList = /*@__PURE__*/ S.Array(
1800
1749
  GetEntitiesResponseEntitiesItem,
1801
1750
  ) as any as S.Schema<GetEntitiesResponseEntitiesList>;
@@ -1813,32 +1762,24 @@ export interface GetEntitiesResponse {
1813
1762
  export const GetEntitiesResponse = /*@__PURE__*/ S.suspend(() =>
1814
1763
  S.Struct({
1815
1764
  ok: S.Boolean,
1816
- response_metadata: S.optional(
1817
- AnalyticsMessagesActivityResponseResponseMetadata,
1818
- ),
1765
+ response_metadata: S.optional(AnalyticsMessagesActivityResponseResponseMetadata),
1819
1766
  entities: GetEntitiesResponseEntitiesList,
1820
1767
  entity_total_count: S.Number,
1821
1768
  }),
1822
- ).annotate({
1823
- identifier: "GetEntitiesResponse",
1824
- }) as any as S.Schema<GetEntitiesResponse>;
1769
+ ).annotate({ identifier: "GetEntitiesResponse" }) as any as S.Schema<GetEntitiesResponse>;
1825
1770
 
1826
1771
  export interface GetExpirationRequest {
1827
1772
  /** The ID of the guest user to get the expiration for. */
1828
- user_id?: string;
1773
+ user_id: string;
1829
1774
  /** If an org token is passed in and this team is on the org, it will operate on the workspace level on the specified team. Otherwise it will operate on the org or team in context. */
1830
1775
  target_team?: string;
1831
1776
  }
1832
1777
  export const GetExpirationRequest = /*@__PURE__*/ S.suspend(() =>
1833
1778
  S.Struct({
1834
- user_id: S.optional(S.String.pipe(T.Query())),
1779
+ user_id: S.String.pipe(T.Query()),
1835
1780
  target_team: S.optional(S.String.pipe(T.Query())),
1836
- }).pipe(
1837
- T.Http({ method: "GET", uri: "/admin.users.getExpiration", code: 200 }),
1838
- ),
1839
- ).annotate({
1840
- identifier: "GetExpirationRequest",
1841
- }) as any as S.Schema<GetExpirationRequest>;
1781
+ }).pipe(T.Http({ method: "GET", uri: "/admin.users.getExpiration", code: 200 })),
1782
+ ).annotate({ identifier: "GetExpirationRequest" }) as any as S.Schema<GetExpirationRequest>;
1842
1783
 
1843
1784
  export interface GetExpirationResponse {
1844
1785
  /** Always `true` (a failed call raises a typed error instead). */
@@ -1848,9 +1789,7 @@ export const GetExpirationResponse = /*@__PURE__*/ S.suspend(() =>
1848
1789
  S.Struct({
1849
1790
  ok: S.Boolean,
1850
1791
  }),
1851
- ).annotate({
1852
- identifier: "GetExpirationResponse",
1853
- }) as any as S.Schema<GetExpirationResponse>;
1792
+ ).annotate({ identifier: "GetExpirationResponse" }) as any as S.Schema<GetExpirationResponse>;
1854
1793
 
1855
1794
  export interface GetFileRequest {
1856
1795
  /** Date to retrieve the analytics data for, expressed as `YYYY-MM-DD` in UTC. Required unless `metadata_only` is set to true. */
@@ -1865,26 +1804,18 @@ export const GetFileRequest = /*@__PURE__*/ S.suspend(() =>
1865
1804
  date: S.optional(S.String.pipe(T.Query())),
1866
1805
  type: S.String.pipe(T.Query()),
1867
1806
  metadata_only: S.optional(S.Boolean.pipe(T.Query())),
1868
- }).pipe(
1869
- T.Http({ method: "GET", uri: "/admin.analytics.getFile", code: 200 }),
1870
- ),
1807
+ }).pipe(T.Http({ method: "GET", uri: "/admin.analytics.getFile", code: 200 })),
1871
1808
  ).annotate({ identifier: "GetFileRequest" }) as any as S.Schema<GetFileRequest>;
1872
1809
 
1873
1810
  export type GetFileResponse = unknown;
1874
1811
  export const GetFileResponse = /*@__PURE__*/ S.suspend(() =>
1875
1812
  S.Unknown.pipe(T.RawResponseRoot()),
1876
- ).annotate({
1877
- identifier: "GetFileResponse",
1878
- }) as any as S.Schema<GetFileResponse>;
1813
+ ).annotate({ identifier: "GetFileResponse" }) as any as S.Schema<GetFileResponse>;
1879
1814
 
1880
1815
  export interface GetItemRequest {}
1881
1816
  export const GetItemRequest = /*@__PURE__*/ S.suspend(() =>
1882
1817
  S.Struct({}).pipe(
1883
- T.Http({
1884
- method: "POST",
1885
- uri: "/admin.audit.anomaly.allow.getItem",
1886
- code: 200,
1887
- }),
1818
+ T.Http({ method: "POST", uri: "/admin.audit.anomaly.allow.getItem", code: 200 }),
1888
1819
  ),
1889
1820
  ).annotate({ identifier: "GetItemRequest" }) as any as S.Schema<GetItemRequest>;
1890
1821
 
@@ -1914,9 +1845,7 @@ export const GetItemResponse = /*@__PURE__*/ S.suspend(() =>
1914
1845
  trusted_cidr: S.optional(GetItemResponseTrustedCidrList),
1915
1846
  trusted_asns: S.optional(GetItemResponseTrustedAsnsList),
1916
1847
  }),
1917
- ).annotate({
1918
- identifier: "GetItemResponse",
1919
- }) as any as S.Schema<GetItemResponse>;
1848
+ ).annotate({ identifier: "GetItemResponse" }) as any as S.Schema<GetItemResponse>;
1920
1849
 
1921
1850
  /** The IDs of users you'd like to fetch session settings for. Note: if a user does not have any active sessions, they will not be returned in the response. */
1922
1851
  export type GetSettingsRequestUserIdsList = Array<string>;
@@ -1931,16 +1860,8 @@ export interface GetSettingsRequest {
1931
1860
  export const GetSettingsRequest = /*@__PURE__*/ S.suspend(() =>
1932
1861
  S.Struct({
1933
1862
  user_ids: GetSettingsRequestUserIdsList,
1934
- }).pipe(
1935
- T.Http({
1936
- method: "POST",
1937
- uri: "/admin.users.session.getSettings",
1938
- code: 200,
1939
- }),
1940
- ),
1941
- ).annotate({
1942
- identifier: "GetSettingsRequest",
1943
- }) as any as S.Schema<GetSettingsRequest>;
1863
+ }).pipe(T.Http({ method: "POST", uri: "/admin.users.session.getSettings", code: 200 })),
1864
+ ).annotate({ identifier: "GetSettingsRequest" }) as any as S.Schema<GetSettingsRequest>;
1944
1865
 
1945
1866
  export interface GetSettingsResponseSessionSettingsItem {
1946
1867
  /** Encoded ID of the user */
@@ -1948,20 +1869,18 @@ export interface GetSettingsResponseSessionSettingsItem {
1948
1869
  desktop_app_browser_quit: unknown;
1949
1870
  duration: unknown;
1950
1871
  }
1951
- export const GetSettingsResponseSessionSettingsItem = /*@__PURE__*/ S.suspend(
1952
- () =>
1953
- S.Struct({
1954
- user_id: S.String,
1955
- desktop_app_browser_quit: S.Unknown,
1956
- duration: S.Unknown,
1957
- }),
1872
+ export const GetSettingsResponseSessionSettingsItem = /*@__PURE__*/ S.suspend(() =>
1873
+ S.Struct({
1874
+ user_id: S.String,
1875
+ desktop_app_browser_quit: S.Unknown,
1876
+ duration: S.Unknown,
1877
+ }),
1958
1878
  ).annotate({
1959
1879
  identifier: "GetSettingsResponseSessionSettingsItem",
1960
1880
  }) as any as S.Schema<GetSettingsResponseSessionSettingsItem>;
1961
1881
 
1962
1882
  /** User specific session settings */
1963
- export type GetSettingsResponseSessionSettingsList =
1964
- Array<GetSettingsResponseSessionSettingsItem>;
1883
+ export type GetSettingsResponseSessionSettingsList = Array<GetSettingsResponseSessionSettingsItem>;
1965
1884
  export const GetSettingsResponseSessionSettingsList = /*@__PURE__*/ S.Array(
1966
1885
  GetSettingsResponseSessionSettingsItem,
1967
1886
  ) as any as S.Schema<GetSettingsResponseSessionSettingsList>;
@@ -1986,9 +1905,7 @@ export const GetSettingsResponse = /*@__PURE__*/ S.suspend(() =>
1986
1905
  session_settings: S.optional(GetSettingsResponseSessionSettingsList),
1987
1906
  no_settings_applied: S.optional(GetSettingsResponseNoSettingsAppliedList),
1988
1907
  }),
1989
- ).annotate({
1990
- identifier: "GetSettingsResponse",
1991
- }) as any as S.Schema<GetSettingsResponse>;
1908
+ ).annotate({ identifier: "GetSettingsResponse" }) as any as S.Schema<GetSettingsResponse>;
1992
1909
 
1993
1910
  export interface GetTeamsRequest {
1994
1911
  /** The channel to determine connected workspaces within the organization for. */
@@ -2003,18 +1920,12 @@ export const GetTeamsRequest = /*@__PURE__*/ S.suspend(() =>
2003
1920
  channel_id: S.String,
2004
1921
  cursor: S.optional(S.String),
2005
1922
  limit: S.optional(S.Number),
2006
- }).pipe(
2007
- T.Http({ method: "POST", uri: "/admin.conversations.getTeams", code: 200 }),
2008
- ),
2009
- ).annotate({
2010
- identifier: "GetTeamsRequest",
2011
- }) as any as S.Schema<GetTeamsRequest>;
1923
+ }).pipe(T.Http({ method: "POST", uri: "/admin.conversations.getTeams", code: 200 })),
1924
+ ).annotate({ identifier: "GetTeamsRequest" }) as any as S.Schema<GetTeamsRequest>;
2012
1925
 
2013
1926
  /** Pagination metadata. An empty `next_cursor` means the last page. */
2014
- export type GetTeamsResponseResponseMetadata =
2015
- AnalyticsMessagesActivityResponseResponseMetadata;
2016
- export const GetTeamsResponseResponseMetadata =
2017
- AnalyticsMessagesActivityResponseResponseMetadata;
1927
+ export type GetTeamsResponseResponseMetadata = AnalyticsMessagesActivityResponseResponseMetadata;
1928
+ export const GetTeamsResponseResponseMetadata = AnalyticsMessagesActivityResponseResponseMetadata;
2018
1929
 
2019
1930
  export interface GetTeamsResponse {
2020
1931
  ok: boolean;
@@ -2024,17 +1935,11 @@ export interface GetTeamsResponse {
2024
1935
  export const GetTeamsResponse = /*@__PURE__*/ S.suspend(() =>
2025
1936
  S.Struct({
2026
1937
  ok: S.Boolean,
2027
- response_metadata: S.optional(
2028
- AnalyticsMessagesActivityResponseResponseMetadata,
2029
- ),
1938
+ response_metadata: S.optional(AnalyticsMessagesActivityResponseResponseMetadata),
2030
1939
  }),
2031
- ).annotate({
2032
- identifier: "GetTeamsResponse",
2033
- }) as any as S.Schema<GetTeamsResponse>;
1940
+ ).annotate({ identifier: "GetTeamsResponse" }) as any as S.Schema<GetTeamsResponse>;
2034
1941
 
2035
1942
  export interface InvalidateUsersSessionRequest {
2036
- /** ID of the workspace that the session belongs to. */
2037
- team_id?: string;
2038
1943
  /** ID of the user that the session belongs to. */
2039
1944
  user_id: string;
2040
1945
  /** ID of the session to invalidate. */
@@ -2042,16 +1947,9 @@ export interface InvalidateUsersSessionRequest {
2042
1947
  }
2043
1948
  export const InvalidateUsersSessionRequest = /*@__PURE__*/ S.suspend(() =>
2044
1949
  S.Struct({
2045
- team_id: S.optional(S.String),
2046
1950
  user_id: S.String,
2047
1951
  session_id: S.Number,
2048
- }).pipe(
2049
- T.Http({
2050
- method: "POST",
2051
- uri: "/admin.users.session.invalidate",
2052
- code: 200,
2053
- }),
2054
- ),
1952
+ }).pipe(T.Http({ method: "POST", uri: "/admin.users.session.invalidate", code: 200 })),
2055
1953
  ).annotate({
2056
1954
  identifier: "InvalidateUsersSessionRequest",
2057
1955
  }) as any as S.Schema<InvalidateUsersSessionRequest>;
@@ -2084,9 +1982,7 @@ export const InviteConversationRequest = /*@__PURE__*/ S.suspend(() =>
2084
1982
  S.Struct({
2085
1983
  user_ids: InviteConversationRequestUserIdsList,
2086
1984
  channel_id: S.String,
2087
- }).pipe(
2088
- T.Http({ method: "POST", uri: "/admin.conversations.invite", code: 200 }),
2089
- ),
1985
+ }).pipe(T.Http({ method: "POST", uri: "/admin.conversations.invite", code: 200 })),
2090
1986
  ).annotate({
2091
1987
  identifier: "InviteConversationRequest",
2092
1988
  }) as any as S.Schema<InviteConversationRequest>;
@@ -2112,9 +2008,7 @@ export const InviteRequestsDenyRequest = /*@__PURE__*/ S.suspend(() =>
2112
2008
  S.Struct({
2113
2009
  team_id: S.optional(S.String),
2114
2010
  invite_request_id: S.String,
2115
- }).pipe(
2116
- T.Http({ method: "POST", uri: "/admin.inviteRequests.deny", code: 200 }),
2117
- ),
2011
+ }).pipe(T.Http({ method: "POST", uri: "/admin.inviteRequests.deny", code: 200 })),
2118
2012
  ).annotate({
2119
2013
  identifier: "InviteRequestsDenyRequest",
2120
2014
  }) as any as S.Schema<InviteRequestsDenyRequest>;
@@ -2166,9 +2060,7 @@ export const InviteUserRequest = /*@__PURE__*/ S.suspend(() =>
2166
2060
  guest_expiration_ts: S.optional(S.String),
2167
2061
  email_password_policy_enabled: S.optional(S.Boolean),
2168
2062
  }).pipe(T.Http({ method: "POST", uri: "/admin.users.invite", code: 200 })),
2169
- ).annotate({
2170
- identifier: "InviteUserRequest",
2171
- }) as any as S.Schema<InviteUserRequest>;
2063
+ ).annotate({ identifier: "InviteUserRequest" }) as any as S.Schema<InviteUserRequest>;
2172
2064
 
2173
2065
  export interface InviteUserResponse {
2174
2066
  ok: boolean;
@@ -2177,9 +2069,7 @@ export const InviteUserResponse = /*@__PURE__*/ S.suspend(() =>
2177
2069
  S.Struct({
2178
2070
  ok: S.Boolean,
2179
2071
  }),
2180
- ).annotate({
2181
- identifier: "InviteUserResponse",
2182
- }) as any as S.Schema<InviteUserResponse>;
2072
+ ).annotate({ identifier: "InviteUserResponse" }) as any as S.Schema<InviteUserResponse>;
2183
2073
 
2184
2074
  export interface LinkObjectsRequest {
2185
2075
  /** Channel ID for Slack channel that will be linked to a Salesforce record. */
@@ -2194,16 +2084,8 @@ export const LinkObjectsRequest = /*@__PURE__*/ S.suspend(() =>
2194
2084
  channel: S.String,
2195
2085
  record_id: S.String,
2196
2086
  salesforce_org_id: S.String,
2197
- }).pipe(
2198
- T.Http({
2199
- method: "POST",
2200
- uri: "/admin.conversations.linkObjects",
2201
- code: 200,
2202
- }),
2203
- ),
2204
- ).annotate({
2205
- identifier: "LinkObjectsRequest",
2206
- }) as any as S.Schema<LinkObjectsRequest>;
2087
+ }).pipe(T.Http({ method: "POST", uri: "/admin.conversations.linkObjects", code: 200 })),
2088
+ ).annotate({ identifier: "LinkObjectsRequest" }) as any as S.Schema<LinkObjectsRequest>;
2207
2089
 
2208
2090
  export interface LinkObjectsResponse {
2209
2091
  /** Always `true` (a failed call raises a typed error instead). */
@@ -2213,9 +2095,7 @@ export const LinkObjectsResponse = /*@__PURE__*/ S.suspend(() =>
2213
2095
  S.Struct({
2214
2096
  ok: S.Boolean,
2215
2097
  }),
2216
- ).annotate({
2217
- identifier: "LinkObjectsResponse",
2218
- }) as any as S.Schema<LinkObjectsResponse>;
2098
+ ).annotate({ identifier: "LinkObjectsResponse" }) as any as S.Schema<LinkObjectsResponse>;
2219
2099
 
2220
2100
  /** The direction you want the data sorted by (always by timestamp) */
2221
2101
  export type ListAppsActivitiesRequestSortDirection = "asc" | "desc";
@@ -2298,9 +2178,7 @@ export const ListAppsActivitiesResponse = /*@__PURE__*/ S.suspend(() =>
2298
2178
  S.Struct({
2299
2179
  ok: S.Boolean,
2300
2180
  activities: ListAppsActivitiesResponseActivitiesList,
2301
- response_metadata: S.optional(
2302
- AnalyticsMessagesActivityResponseResponseMetadata,
2303
- ),
2181
+ response_metadata: S.optional(AnalyticsMessagesActivityResponseResponseMetadata),
2304
2182
  }),
2305
2183
  ).annotate({
2306
2184
  identifier: "ListAppsActivitiesResponse",
@@ -2323,12 +2201,8 @@ export const ListAppsApprovedRequest = /*@__PURE__*/ S.suspend(() =>
2323
2201
  team_id: S.optional(S.String.pipe(T.Query())),
2324
2202
  enterprise_id: S.optional(S.String.pipe(T.Query())),
2325
2203
  certified: S.optional(S.Boolean.pipe(T.Query())),
2326
- }).pipe(
2327
- T.Http({ method: "GET", uri: "/admin.apps.approved.list", code: 200 }),
2328
- ),
2329
- ).annotate({
2330
- identifier: "ListAppsApprovedRequest",
2331
- }) as any as S.Schema<ListAppsApprovedRequest>;
2204
+ }).pipe(T.Http({ method: "GET", uri: "/admin.apps.approved.list", code: 200 })),
2205
+ ).annotate({ identifier: "ListAppsApprovedRequest" }) as any as S.Schema<ListAppsApprovedRequest>;
2332
2206
 
2333
2207
  export type ListAppsApprovedResponseApprovedAppsList = Array<unknown>;
2334
2208
  export const ListAppsApprovedResponseApprovedAppsList = /*@__PURE__*/ S.Array(
@@ -2352,13 +2226,9 @@ export const ListAppsApprovedResponse = /*@__PURE__*/ S.suspend(() =>
2352
2226
  S.Struct({
2353
2227
  ok: S.Boolean,
2354
2228
  approved_apps: ListAppsApprovedResponseApprovedAppsList,
2355
- response_metadata: S.optional(
2356
- AnalyticsMessagesActivityResponseResponseMetadata,
2357
- ),
2229
+ response_metadata: S.optional(AnalyticsMessagesActivityResponseResponseMetadata),
2358
2230
  }),
2359
- ).annotate({
2360
- identifier: "ListAppsApprovedResponse",
2361
- }) as any as S.Schema<ListAppsApprovedResponse>;
2231
+ ).annotate({ identifier: "ListAppsApprovedResponse" }) as any as S.Schema<ListAppsApprovedResponse>;
2362
2232
 
2363
2233
  export interface ListAppsMcpServersRequest {
2364
2234
  /** The maximum number of items to return. Must be between 1 - 1000 both inclusive. */
@@ -2370,9 +2240,7 @@ export const ListAppsMcpServersRequest = /*@__PURE__*/ S.suspend(() =>
2370
2240
  S.Struct({
2371
2241
  limit: S.optional(S.Number),
2372
2242
  cursor: S.optional(S.String),
2373
- }).pipe(
2374
- T.Http({ method: "POST", uri: "/admin.apps.mcp.servers.list", code: 200 }),
2375
- ),
2243
+ }).pipe(T.Http({ method: "POST", uri: "/admin.apps.mcp.servers.list", code: 200 })),
2376
2244
  ).annotate({
2377
2245
  identifier: "ListAppsMcpServersRequest",
2378
2246
  }) as any as S.Schema<ListAppsMcpServersRequest>;
@@ -2391,22 +2259,20 @@ export interface ListAppsMcpServersResponseServersItem {
2391
2259
  /** Name of the app that provides this MCP server */
2392
2260
  app_name: string;
2393
2261
  }
2394
- export const ListAppsMcpServersResponseServersItem = /*@__PURE__*/ S.suspend(
2395
- () =>
2396
- S.Struct({
2397
- server_id: S.String,
2398
- server_name: S.String,
2399
- url: S.String,
2400
- auth_type: S.Unknown,
2401
- app_id: S.String,
2402
- app_name: S.String,
2403
- }),
2262
+ export const ListAppsMcpServersResponseServersItem = /*@__PURE__*/ S.suspend(() =>
2263
+ S.Struct({
2264
+ server_id: S.String,
2265
+ server_name: S.String,
2266
+ url: S.String,
2267
+ auth_type: S.Unknown,
2268
+ app_id: S.String,
2269
+ app_name: S.String,
2270
+ }),
2404
2271
  ).annotate({
2405
2272
  identifier: "ListAppsMcpServersResponseServersItem",
2406
2273
  }) as any as S.Schema<ListAppsMcpServersResponseServersItem>;
2407
2274
 
2408
- export type ListAppsMcpServersResponseServersList =
2409
- Array<ListAppsMcpServersResponseServersItem>;
2275
+ export type ListAppsMcpServersResponseServersList = Array<ListAppsMcpServersResponseServersItem>;
2410
2276
  export const ListAppsMcpServersResponseServersList = /*@__PURE__*/ S.Array(
2411
2277
  ListAppsMcpServersResponseServersItem,
2412
2278
  ) as any as S.Schema<ListAppsMcpServersResponseServersList>;
@@ -2428,9 +2294,7 @@ export const ListAppsMcpServersResponse = /*@__PURE__*/ S.suspend(() =>
2428
2294
  S.Struct({
2429
2295
  ok: S.Boolean,
2430
2296
  servers: ListAppsMcpServersResponseServersList,
2431
- response_metadata: S.optional(
2432
- AnalyticsMessagesActivityResponseResponseMetadata,
2433
- ),
2297
+ response_metadata: S.optional(AnalyticsMessagesActivityResponseResponseMetadata),
2434
2298
  }),
2435
2299
  ).annotate({
2436
2300
  identifier: "ListAppsMcpServersResponse",
@@ -2440,38 +2304,29 @@ export interface ListAppsMcpServersPermissionsRequest {
2440
2304
  /** Encoded ID of the app */
2441
2305
  app_id: string;
2442
2306
  }
2443
- export const ListAppsMcpServersPermissionsRequest = /*@__PURE__*/ S.suspend(
2444
- () =>
2445
- S.Struct({
2446
- app_id: S.String,
2447
- }).pipe(
2448
- T.Http({
2449
- method: "POST",
2450
- uri: "/admin.apps.mcp.servers.permissions.list",
2451
- code: 200,
2452
- }),
2453
- ),
2307
+ export const ListAppsMcpServersPermissionsRequest = /*@__PURE__*/ S.suspend(() =>
2308
+ S.Struct({
2309
+ app_id: S.String,
2310
+ }).pipe(T.Http({ method: "POST", uri: "/admin.apps.mcp.servers.permissions.list", code: 200 })),
2454
2311
  ).annotate({
2455
2312
  identifier: "ListAppsMcpServersPermissionsRequest",
2456
2313
  }) as any as S.Schema<ListAppsMcpServersPermissionsRequest>;
2457
2314
 
2458
2315
  export type ListAppsMcpServersPermissionsResponseServersList = Array<unknown>;
2459
- export const ListAppsMcpServersPermissionsResponseServersList =
2460
- /*@__PURE__*/ S.Array(
2461
- S.Unknown,
2462
- ) as any as S.Schema<ListAppsMcpServersPermissionsResponseServersList>;
2316
+ export const ListAppsMcpServersPermissionsResponseServersList = /*@__PURE__*/ S.Array(
2317
+ S.Unknown,
2318
+ ) as any as S.Schema<ListAppsMcpServersPermissionsResponseServersList>;
2463
2319
 
2464
2320
  export interface ListAppsMcpServersPermissionsResponse {
2465
2321
  /** Always `true` (a failed call raises a typed error instead). */
2466
2322
  ok: boolean;
2467
2323
  servers: ListAppsMcpServersPermissionsResponseServersList;
2468
2324
  }
2469
- export const ListAppsMcpServersPermissionsResponse = /*@__PURE__*/ S.suspend(
2470
- () =>
2471
- S.Struct({
2472
- ok: S.Boolean,
2473
- servers: ListAppsMcpServersPermissionsResponseServersList,
2474
- }),
2325
+ export const ListAppsMcpServersPermissionsResponse = /*@__PURE__*/ S.suspend(() =>
2326
+ S.Struct({
2327
+ ok: S.Boolean,
2328
+ servers: ListAppsMcpServersPermissionsResponseServersList,
2329
+ }),
2475
2330
  ).annotate({
2476
2331
  identifier: "ListAppsMcpServersPermissionsResponse",
2477
2332
  }) as any as S.Schema<ListAppsMcpServersPermissionsResponse>;
@@ -2483,9 +2338,7 @@ export interface ListAppsPermissionsRequest {
2483
2338
  export const ListAppsPermissionsRequest = /*@__PURE__*/ S.suspend(() =>
2484
2339
  S.Struct({
2485
2340
  app_id: S.String,
2486
- }).pipe(
2487
- T.Http({ method: "POST", uri: "/admin.apps.permissions.list", code: 200 }),
2488
- ),
2341
+ }).pipe(T.Http({ method: "POST", uri: "/admin.apps.permissions.list", code: 200 })),
2489
2342
  ).annotate({
2490
2343
  identifier: "ListAppsPermissionsRequest",
2491
2344
  }) as any as S.Schema<ListAppsPermissionsRequest>;
@@ -2519,12 +2372,8 @@ export const ListAppsRequestsRequest = /*@__PURE__*/ S.suspend(() =>
2519
2372
  team_id: S.optional(S.String.pipe(T.Query())),
2520
2373
  enterprise_id: S.optional(S.String.pipe(T.Query())),
2521
2374
  certified: S.optional(S.Boolean.pipe(T.Query())),
2522
- }).pipe(
2523
- T.Http({ method: "GET", uri: "/admin.apps.requests.list", code: 200 }),
2524
- ),
2525
- ).annotate({
2526
- identifier: "ListAppsRequestsRequest",
2527
- }) as any as S.Schema<ListAppsRequestsRequest>;
2375
+ }).pipe(T.Http({ method: "GET", uri: "/admin.apps.requests.list", code: 200 })),
2376
+ ).annotate({ identifier: "ListAppsRequestsRequest" }) as any as S.Schema<ListAppsRequestsRequest>;
2528
2377
 
2529
2378
  export type ListAppsRequestsResponseAppRequestsList = Array<unknown>;
2530
2379
  export const ListAppsRequestsResponseAppRequestsList = /*@__PURE__*/ S.Array(
@@ -2548,13 +2397,9 @@ export const ListAppsRequestsResponse = /*@__PURE__*/ S.suspend(() =>
2548
2397
  S.Struct({
2549
2398
  ok: S.Boolean,
2550
2399
  app_requests: ListAppsRequestsResponseAppRequestsList,
2551
- response_metadata: S.optional(
2552
- AnalyticsMessagesActivityResponseResponseMetadata,
2553
- ),
2400
+ response_metadata: S.optional(AnalyticsMessagesActivityResponseResponseMetadata),
2554
2401
  }),
2555
- ).annotate({
2556
- identifier: "ListAppsRequestsResponse",
2557
- }) as any as S.Schema<ListAppsRequestsResponse>;
2402
+ ).annotate({ identifier: "ListAppsRequestsResponse" }) as any as S.Schema<ListAppsRequestsResponse>;
2558
2403
 
2559
2404
  export interface ListAppsRestrictedRequest {
2560
2405
  /** The maximum number of items to return. Must be between 1 - 1000 both inclusive. */
@@ -2573,18 +2418,15 @@ export const ListAppsRestrictedRequest = /*@__PURE__*/ S.suspend(() =>
2573
2418
  team_id: S.optional(S.String.pipe(T.Query())),
2574
2419
  enterprise_id: S.optional(S.String.pipe(T.Query())),
2575
2420
  certified: S.optional(S.Boolean.pipe(T.Query())),
2576
- }).pipe(
2577
- T.Http({ method: "GET", uri: "/admin.apps.restricted.list", code: 200 }),
2578
- ),
2421
+ }).pipe(T.Http({ method: "GET", uri: "/admin.apps.restricted.list", code: 200 })),
2579
2422
  ).annotate({
2580
2423
  identifier: "ListAppsRestrictedRequest",
2581
2424
  }) as any as S.Schema<ListAppsRestrictedRequest>;
2582
2425
 
2583
2426
  export type ListAppsRestrictedResponseRestrictedAppsList = Array<unknown>;
2584
- export const ListAppsRestrictedResponseRestrictedAppsList =
2585
- /*@__PURE__*/ S.Array(
2586
- S.Unknown,
2587
- ) as any as S.Schema<ListAppsRestrictedResponseRestrictedAppsList>;
2427
+ export const ListAppsRestrictedResponseRestrictedAppsList = /*@__PURE__*/ S.Array(
2428
+ S.Unknown,
2429
+ ) as any as S.Schema<ListAppsRestrictedResponseRestrictedAppsList>;
2588
2430
 
2589
2431
  /** Pagination metadata. An empty `next_cursor` means the last page. */
2590
2432
  export type ListAppsRestrictedResponseResponseMetadata =
@@ -2603,9 +2445,7 @@ export const ListAppsRestrictedResponse = /*@__PURE__*/ S.suspend(() =>
2603
2445
  S.Struct({
2604
2446
  ok: S.Boolean,
2605
2447
  restricted_apps: ListAppsRestrictedResponseRestrictedAppsList,
2606
- response_metadata: S.optional(
2607
- AnalyticsMessagesActivityResponseResponseMetadata,
2608
- ),
2448
+ response_metadata: S.optional(AnalyticsMessagesActivityResponseResponseMetadata),
2609
2449
  }),
2610
2450
  ).annotate({
2611
2451
  identifier: "ListAppsRestrictedResponse",
@@ -2640,12 +2480,8 @@ export const ListAssignmentsRequest = /*@__PURE__*/ S.suspend(() =>
2640
2480
  role_ids: S.optional(ListAssignmentsRequestRoleIdsList.pipe(T.Query())),
2641
2481
  entity_ids: S.optional(ListAssignmentsRequestEntityIdsList.pipe(T.Query())),
2642
2482
  sort_dir: S.optional(S.String.pipe(T.Query())),
2643
- }).pipe(
2644
- T.Http({ method: "GET", uri: "/admin.roles.listAssignments", code: 200 }),
2645
- ),
2646
- ).annotate({
2647
- identifier: "ListAssignmentsRequest",
2648
- }) as any as S.Schema<ListAssignmentsRequest>;
2483
+ }).pipe(T.Http({ method: "GET", uri: "/admin.roles.listAssignments", code: 200 })),
2484
+ ).annotate({ identifier: "ListAssignmentsRequest" }) as any as S.Schema<ListAssignmentsRequest>;
2649
2485
 
2650
2486
  export interface ListAssignmentsResponseRoleAssignmentsItem {
2651
2487
  /** ID of the role that is assigned */
@@ -2657,17 +2493,16 @@ export interface ListAssignmentsResponseRoleAssignmentsItem {
2657
2493
  /** Timestamp of when the membership was created. */
2658
2494
  date_create: number;
2659
2495
  }
2660
- export const ListAssignmentsResponseRoleAssignmentsItem =
2661
- /*@__PURE__*/ S.suspend(() =>
2662
- S.Struct({
2663
- role_id: S.String,
2664
- entity_id: S.String,
2665
- user_id: S.String,
2666
- date_create: S.Number,
2667
- }),
2668
- ).annotate({
2669
- identifier: "ListAssignmentsResponseRoleAssignmentsItem",
2670
- }) as any as S.Schema<ListAssignmentsResponseRoleAssignmentsItem>;
2496
+ export const ListAssignmentsResponseRoleAssignmentsItem = /*@__PURE__*/ S.suspend(() =>
2497
+ S.Struct({
2498
+ role_id: S.String,
2499
+ entity_id: S.String,
2500
+ user_id: S.String,
2501
+ date_create: S.Number,
2502
+ }),
2503
+ ).annotate({
2504
+ identifier: "ListAssignmentsResponseRoleAssignmentsItem",
2505
+ }) as any as S.Schema<ListAssignmentsResponseRoleAssignmentsItem>;
2671
2506
 
2672
2507
  export type ListAssignmentsResponseRoleAssignmentsList =
2673
2508
  Array<ListAssignmentsResponseRoleAssignmentsItem>;
@@ -2695,13 +2530,9 @@ export const ListAssignmentsResponse = /*@__PURE__*/ S.suspend(() =>
2695
2530
  ok: S.Boolean,
2696
2531
  error: S.optional(S.String),
2697
2532
  role_assignments: ListAssignmentsResponseRoleAssignmentsList,
2698
- response_metadata: S.optional(
2699
- AnalyticsMessagesActivityResponseResponseMetadata,
2700
- ),
2533
+ response_metadata: S.optional(AnalyticsMessagesActivityResponseResponseMetadata),
2701
2534
  }),
2702
- ).annotate({
2703
- identifier: "ListAssignmentsResponse",
2704
- }) as any as S.Schema<ListAssignmentsResponse>;
2535
+ ).annotate({ identifier: "ListAssignmentsResponse" }) as any as S.Schema<ListAssignmentsResponse>;
2705
2536
 
2706
2537
  export interface ListBarriersRequest {
2707
2538
  /** The maximum number of items to return. Must be between 1 - 1000 both inclusive */
@@ -2714,9 +2545,7 @@ export const ListBarriersRequest = /*@__PURE__*/ S.suspend(() =>
2714
2545
  limit: S.optional(S.Number.pipe(T.Query())),
2715
2546
  cursor: S.optional(S.String.pipe(T.Query())),
2716
2547
  }).pipe(T.Http({ method: "GET", uri: "/admin.barriers.list", code: 200 })),
2717
- ).annotate({
2718
- identifier: "ListBarriersRequest",
2719
- }) as any as S.Schema<ListBarriersRequest>;
2548
+ ).annotate({ identifier: "ListBarriersRequest" }) as any as S.Schema<ListBarriersRequest>;
2720
2549
 
2721
2550
  export type ListBarriersResponseBarriersList = Array<unknown>;
2722
2551
  export const ListBarriersResponseBarriersList = /*@__PURE__*/ S.Array(
@@ -2739,13 +2568,9 @@ export const ListBarriersResponse = /*@__PURE__*/ S.suspend(() =>
2739
2568
  S.Struct({
2740
2569
  ok: S.Boolean,
2741
2570
  barriers: ListBarriersResponseBarriersList,
2742
- response_metadata: S.optional(
2743
- AnalyticsMessagesActivityResponseResponseMetadata,
2744
- ),
2571
+ response_metadata: S.optional(AnalyticsMessagesActivityResponseResponseMetadata),
2745
2572
  }),
2746
- ).annotate({
2747
- identifier: "ListBarriersResponse",
2748
- }) as any as S.Schema<ListBarriersResponse>;
2573
+ ).annotate({ identifier: "ListBarriersResponse" }) as any as S.Schema<ListBarriersResponse>;
2749
2574
 
2750
2575
  export interface ListChannelsRequest {
2751
2576
  /** ID of the IDP group to list default channels for. */
@@ -2760,16 +2585,8 @@ export const ListChannelsRequest = /*@__PURE__*/ S.suspend(() =>
2760
2585
  usergroup_id: S.String,
2761
2586
  team_id: S.optional(S.String),
2762
2587
  include_num_members: S.optional(S.Boolean),
2763
- }).pipe(
2764
- T.Http({
2765
- method: "POST",
2766
- uri: "/admin.usergroups.listChannels",
2767
- code: 200,
2768
- }),
2769
- ),
2770
- ).annotate({
2771
- identifier: "ListChannelsRequest",
2772
- }) as any as S.Schema<ListChannelsRequest>;
2588
+ }).pipe(T.Http({ method: "POST", uri: "/admin.usergroups.listChannels", code: 200 })),
2589
+ ).annotate({ identifier: "ListChannelsRequest" }) as any as S.Schema<ListChannelsRequest>;
2773
2590
 
2774
2591
  export type ListChannelsResponseChannelsList = Array<string>;
2775
2592
  export const ListChannelsResponseChannelsList = /*@__PURE__*/ S.Array(
@@ -2789,9 +2606,7 @@ export const ListChannelsResponse = /*@__PURE__*/ S.suspend(() =>
2789
2606
  channels: ListChannelsResponseChannelsList,
2790
2607
  error: S.optional(S.String),
2791
2608
  }),
2792
- ).annotate({
2793
- identifier: "ListChannelsResponse",
2794
- }) as any as S.Schema<ListChannelsResponse>;
2609
+ ).annotate({ identifier: "ListChannelsResponse" }) as any as S.Schema<ListChannelsResponse>;
2795
2610
 
2796
2611
  export interface ListEmojiRequest {
2797
2612
  /** Set `cursor` to `next_cursor` returned by the previous call to list items in the next page */
@@ -2804,9 +2619,7 @@ export const ListEmojiRequest = /*@__PURE__*/ S.suspend(() =>
2804
2619
  cursor: S.optional(S.String.pipe(T.Query())),
2805
2620
  limit: S.optional(S.Number.pipe(T.Query())),
2806
2621
  }).pipe(T.Http({ method: "GET", uri: "/admin.emoji.list", code: 200 })),
2807
- ).annotate({
2808
- identifier: "ListEmojiRequest",
2809
- }) as any as S.Schema<ListEmojiRequest>;
2622
+ ).annotate({ identifier: "ListEmojiRequest" }) as any as S.Schema<ListEmojiRequest>;
2810
2623
 
2811
2624
  export type ListEmojiResponseEmojiMap = { [key: string]: unknown | undefined };
2812
2625
  export const ListEmojiResponseEmojiMap = /*@__PURE__*/ S.Record(
@@ -2815,10 +2628,8 @@ export const ListEmojiResponseEmojiMap = /*@__PURE__*/ S.Record(
2815
2628
  ) as any as S.Schema<ListEmojiResponseEmojiMap>;
2816
2629
 
2817
2630
  /** Pagination metadata. An empty `next_cursor` means the last page. */
2818
- export type ListEmojiResponseResponseMetadata =
2819
- AnalyticsMessagesActivityResponseResponseMetadata;
2820
- export const ListEmojiResponseResponseMetadata =
2821
- AnalyticsMessagesActivityResponseResponseMetadata;
2631
+ export type ListEmojiResponseResponseMetadata = AnalyticsMessagesActivityResponseResponseMetadata;
2632
+ export const ListEmojiResponseResponseMetadata = AnalyticsMessagesActivityResponseResponseMetadata;
2822
2633
 
2823
2634
  export interface ListEmojiResponse {
2824
2635
  /** Always `true` (a failed call raises a typed error instead). */
@@ -2831,13 +2642,9 @@ export const ListEmojiResponse = /*@__PURE__*/ S.suspend(() =>
2831
2642
  S.Struct({
2832
2643
  ok: S.Boolean,
2833
2644
  emoji: ListEmojiResponseEmojiMap,
2834
- response_metadata: S.optional(
2835
- AnalyticsMessagesActivityResponseResponseMetadata,
2836
- ),
2645
+ response_metadata: S.optional(AnalyticsMessagesActivityResponseResponseMetadata),
2837
2646
  }),
2838
- ).annotate({
2839
- identifier: "ListEmojiResponse",
2840
- }) as any as S.Schema<ListEmojiResponse>;
2647
+ ).annotate({ identifier: "ListEmojiResponse" }) as any as S.Schema<ListEmojiResponse>;
2841
2648
 
2842
2649
  /** Comma-separated array of app IDs to get functions for; max 50. */
2843
2650
  export type ListFunctionsRequestAppIdsList = Array<string>;
@@ -2850,7 +2657,7 @@ export interface ListFunctionsRequest {
2850
2657
  team_id?: string;
2851
2658
  /** Comma-separated array of app IDs to get functions for; max 50. */
2852
2659
  app_ids: ListFunctionsRequestAppIdsList;
2853
- /** Whether to also include functions that are not yet distributed to any users in the function count. This is needed for admins that are approving an app request and will only work if the team owns the app. */
2660
+ /** Whether to also include functions that are not yet distributed to any users in the function list. This is needed for admins that are approving an app request and will only work if the team owns the app. */
2854
2661
  include_non_distributed_functions?: boolean;
2855
2662
  /** Set `cursor` to `next_cursor` returned by the previous call to list items in the next page. */
2856
2663
  cursor?: string;
@@ -2865,9 +2672,7 @@ export const ListFunctionsRequest = /*@__PURE__*/ S.suspend(() =>
2865
2672
  cursor: S.optional(S.String),
2866
2673
  limit: S.optional(S.Number),
2867
2674
  }).pipe(T.Http({ method: "POST", uri: "/admin.functions.list", code: 200 })),
2868
- ).annotate({
2869
- identifier: "ListFunctionsRequest",
2870
- }) as any as S.Schema<ListFunctionsRequest>;
2675
+ ).annotate({ identifier: "ListFunctionsRequest" }) as any as S.Schema<ListFunctionsRequest>;
2871
2676
 
2872
2677
  export type ListFunctionsResponseFunctionsList = Array<unknown>;
2873
2678
  export const ListFunctionsResponseFunctionsList = /*@__PURE__*/ S.Array(
@@ -2891,13 +2696,9 @@ export const ListFunctionsResponse = /*@__PURE__*/ S.suspend(() =>
2891
2696
  S.Struct({
2892
2697
  ok: S.Boolean,
2893
2698
  functions: ListFunctionsResponseFunctionsList,
2894
- response_metadata: S.optional(
2895
- AnalyticsMessagesActivityResponseResponseMetadata,
2896
- ),
2699
+ response_metadata: S.optional(AnalyticsMessagesActivityResponseResponseMetadata),
2897
2700
  }),
2898
- ).annotate({
2899
- identifier: "ListFunctionsResponse",
2900
- }) as any as S.Schema<ListFunctionsResponse>;
2701
+ ).annotate({ identifier: "ListFunctionsResponse" }) as any as S.Schema<ListFunctionsResponse>;
2901
2702
 
2902
2703
  export interface ListGroupsRequest {
2903
2704
  channel_id: string;
@@ -2909,15 +2710,9 @@ export const ListGroupsRequest = /*@__PURE__*/ S.suspend(() =>
2909
2710
  channel_id: S.String.pipe(T.Query()),
2910
2711
  team_id: S.optional(S.String.pipe(T.Query())),
2911
2712
  }).pipe(
2912
- T.Http({
2913
- method: "GET",
2914
- uri: "/admin.conversations.restrictAccess.listGroups",
2915
- code: 200,
2916
- }),
2713
+ T.Http({ method: "GET", uri: "/admin.conversations.restrictAccess.listGroups", code: 200 }),
2917
2714
  ),
2918
- ).annotate({
2919
- identifier: "ListGroupsRequest",
2920
- }) as any as S.Schema<ListGroupsRequest>;
2715
+ ).annotate({ identifier: "ListGroupsRequest" }) as any as S.Schema<ListGroupsRequest>;
2921
2716
 
2922
2717
  export type ListGroupsResponseGroupIdsList = Array<string>;
2923
2718
  export const ListGroupsResponseGroupIdsList = /*@__PURE__*/ S.Array(
@@ -2933,9 +2728,7 @@ export const ListGroupsResponse = /*@__PURE__*/ S.suspend(() =>
2933
2728
  ok: S.Boolean,
2934
2729
  group_ids: ListGroupsResponseGroupIdsList,
2935
2730
  }),
2936
- ).annotate({
2937
- identifier: "ListGroupsResponse",
2938
- }) as any as S.Schema<ListGroupsResponse>;
2731
+ ).annotate({ identifier: "ListGroupsResponse" }) as any as S.Schema<ListGroupsResponse>;
2939
2732
 
2940
2733
  export interface ListInviteRequestsRequest {
2941
2734
  /** ID for the workspace where the invite requests were made. */
@@ -2950,9 +2743,7 @@ export const ListInviteRequestsRequest = /*@__PURE__*/ S.suspend(() =>
2950
2743
  team_id: S.optional(S.String),
2951
2744
  cursor: S.optional(S.String),
2952
2745
  limit: S.optional(S.Number),
2953
- }).pipe(
2954
- T.Http({ method: "POST", uri: "/admin.inviteRequests.list", code: 200 }),
2955
- ),
2746
+ }).pipe(T.Http({ method: "POST", uri: "/admin.inviteRequests.list", code: 200 })),
2956
2747
  ).annotate({
2957
2748
  identifier: "ListInviteRequestsRequest",
2958
2749
  }) as any as S.Schema<ListInviteRequestsRequest>;
@@ -2964,10 +2755,9 @@ export const ListInviteRequestsResponseResponseMetadata =
2964
2755
  AnalyticsMessagesActivityResponseResponseMetadata;
2965
2756
 
2966
2757
  export type ListInviteRequestsResponseInviteRequestsList = Array<unknown>;
2967
- export const ListInviteRequestsResponseInviteRequestsList =
2968
- /*@__PURE__*/ S.Array(
2969
- S.Unknown,
2970
- ) as any as S.Schema<ListInviteRequestsResponseInviteRequestsList>;
2758
+ export const ListInviteRequestsResponseInviteRequestsList = /*@__PURE__*/ S.Array(
2759
+ S.Unknown,
2760
+ ) as any as S.Schema<ListInviteRequestsResponseInviteRequestsList>;
2971
2761
 
2972
2762
  export interface ListInviteRequestsResponse {
2973
2763
  /** Always `true` (a failed call raises a typed error instead). */
@@ -2979,9 +2769,7 @@ export interface ListInviteRequestsResponse {
2979
2769
  export const ListInviteRequestsResponse = /*@__PURE__*/ S.suspend(() =>
2980
2770
  S.Struct({
2981
2771
  ok: S.Boolean,
2982
- response_metadata: S.optional(
2983
- AnalyticsMessagesActivityResponseResponseMetadata,
2984
- ),
2772
+ response_metadata: S.optional(AnalyticsMessagesActivityResponseResponseMetadata),
2985
2773
  invite_requests: ListInviteRequestsResponseInviteRequestsList,
2986
2774
  }),
2987
2775
  ).annotate({
@@ -3001,13 +2789,7 @@ export const ListInviteRequestsApprovedRequest = /*@__PURE__*/ S.suspend(() =>
3001
2789
  team_id: S.optional(S.String),
3002
2790
  cursor: S.optional(S.String),
3003
2791
  limit: S.optional(S.Number),
3004
- }).pipe(
3005
- T.Http({
3006
- method: "POST",
3007
- uri: "/admin.inviteRequests.approved.list",
3008
- code: 200,
3009
- }),
3010
- ),
2792
+ }).pipe(T.Http({ method: "POST", uri: "/admin.inviteRequests.approved.list", code: 200 })),
3011
2793
  ).annotate({
3012
2794
  identifier: "ListInviteRequestsApprovedRequest",
3013
2795
  }) as any as S.Schema<ListInviteRequestsApprovedRequest>;
@@ -3018,12 +2800,10 @@ export type ListInviteRequestsApprovedResponseResponseMetadata =
3018
2800
  export const ListInviteRequestsApprovedResponseResponseMetadata =
3019
2801
  AnalyticsMessagesActivityResponseResponseMetadata;
3020
2802
 
3021
- export type ListInviteRequestsApprovedResponseApprovedRequestsList =
3022
- Array<unknown>;
3023
- export const ListInviteRequestsApprovedResponseApprovedRequestsList =
3024
- /*@__PURE__*/ S.Array(
3025
- S.Unknown,
3026
- ) as any as S.Schema<ListInviteRequestsApprovedResponseApprovedRequestsList>;
2803
+ export type ListInviteRequestsApprovedResponseApprovedRequestsList = Array<unknown>;
2804
+ export const ListInviteRequestsApprovedResponseApprovedRequestsList = /*@__PURE__*/ S.Array(
2805
+ S.Unknown,
2806
+ ) as any as S.Schema<ListInviteRequestsApprovedResponseApprovedRequestsList>;
3027
2807
 
3028
2808
  export interface ListInviteRequestsApprovedResponse {
3029
2809
  /** Always `true` (a failed call raises a typed error instead). */
@@ -3035,9 +2815,7 @@ export interface ListInviteRequestsApprovedResponse {
3035
2815
  export const ListInviteRequestsApprovedResponse = /*@__PURE__*/ S.suspend(() =>
3036
2816
  S.Struct({
3037
2817
  ok: S.Boolean,
3038
- response_metadata: S.optional(
3039
- AnalyticsMessagesActivityResponseResponseMetadata,
3040
- ),
2818
+ response_metadata: S.optional(AnalyticsMessagesActivityResponseResponseMetadata),
3041
2819
  approved_requests: ListInviteRequestsApprovedResponseApprovedRequestsList,
3042
2820
  }),
3043
2821
  ).annotate({
@@ -3057,13 +2835,7 @@ export const ListInviteRequestsDeniedRequest = /*@__PURE__*/ S.suspend(() =>
3057
2835
  team_id: S.optional(S.String),
3058
2836
  cursor: S.optional(S.String),
3059
2837
  limit: S.optional(S.Number),
3060
- }).pipe(
3061
- T.Http({
3062
- method: "POST",
3063
- uri: "/admin.inviteRequests.denied.list",
3064
- code: 200,
3065
- }),
3066
- ),
2838
+ }).pipe(T.Http({ method: "POST", uri: "/admin.inviteRequests.denied.list", code: 200 })),
3067
2839
  ).annotate({
3068
2840
  identifier: "ListInviteRequestsDeniedRequest",
3069
2841
  }) as any as S.Schema<ListInviteRequestsDeniedRequest>;
@@ -3075,10 +2847,9 @@ export const ListInviteRequestsDeniedResponseResponseMetadata =
3075
2847
  AnalyticsMessagesActivityResponseResponseMetadata;
3076
2848
 
3077
2849
  export type ListInviteRequestsDeniedResponseDeniedRequestsList = Array<unknown>;
3078
- export const ListInviteRequestsDeniedResponseDeniedRequestsList =
3079
- /*@__PURE__*/ S.Array(
3080
- S.Unknown,
3081
- ) as any as S.Schema<ListInviteRequestsDeniedResponseDeniedRequestsList>;
2850
+ export const ListInviteRequestsDeniedResponseDeniedRequestsList = /*@__PURE__*/ S.Array(
2851
+ S.Unknown,
2852
+ ) as any as S.Schema<ListInviteRequestsDeniedResponseDeniedRequestsList>;
3082
2853
 
3083
2854
  export interface ListInviteRequestsDeniedResponse {
3084
2855
  /** Always `true` (a failed call raises a typed error instead). */
@@ -3090,9 +2861,7 @@ export interface ListInviteRequestsDeniedResponse {
3090
2861
  export const ListInviteRequestsDeniedResponse = /*@__PURE__*/ S.suspend(() =>
3091
2862
  S.Struct({
3092
2863
  ok: S.Boolean,
3093
- response_metadata: S.optional(
3094
- AnalyticsMessagesActivityResponseResponseMetadata,
3095
- ),
2864
+ response_metadata: S.optional(AnalyticsMessagesActivityResponseResponseMetadata),
3096
2865
  denied_requests: ListInviteRequestsDeniedResponseDeniedRequestsList,
3097
2866
  }),
3098
2867
  ).annotate({
@@ -3109,21 +2878,20 @@ export interface ListOriginalConnectedChannelInfoRequest {
3109
2878
  /** Set `cursor` to `next_cursor` returned by the previous call to list items in the next page. */
3110
2879
  cursor?: string;
3111
2880
  }
3112
- export const ListOriginalConnectedChannelInfoRequest = /*@__PURE__*/ S.suspend(
3113
- () =>
3114
- S.Struct({
3115
- channel_ids: S.optional(S.String),
3116
- team_ids: S.optional(S.String),
3117
- limit: S.optional(S.Number),
3118
- cursor: S.optional(S.String),
3119
- }).pipe(
3120
- T.Http({
3121
- method: "POST",
3122
- uri: "/admin.conversations.ekm.listOriginalConnectedChannelInfo",
3123
- code: 200,
3124
- contentType: "form-urlencoded",
3125
- }),
3126
- ),
2881
+ export const ListOriginalConnectedChannelInfoRequest = /*@__PURE__*/ S.suspend(() =>
2882
+ S.Struct({
2883
+ channel_ids: S.optional(S.String),
2884
+ team_ids: S.optional(S.String),
2885
+ limit: S.optional(S.Number),
2886
+ cursor: S.optional(S.String),
2887
+ }).pipe(
2888
+ T.Http({
2889
+ method: "POST",
2890
+ uri: "/admin.conversations.ekm.listOriginalConnectedChannelInfo",
2891
+ code: 200,
2892
+ contentType: "form-urlencoded",
2893
+ }),
2894
+ ),
3127
2895
  ).annotate({
3128
2896
  identifier: "ListOriginalConnectedChannelInfoRequest",
3129
2897
  }) as any as S.Schema<ListOriginalConnectedChannelInfoRequest>;
@@ -3134,8 +2902,7 @@ export type ListOriginalConnectedChannelInfoResponseResponseMetadata =
3134
2902
  export const ListOriginalConnectedChannelInfoResponseResponseMetadata =
3135
2903
  AnalyticsMessagesActivityResponseResponseMetadata;
3136
2904
 
3137
- export type ListOriginalConnectedChannelInfoResponseChannelsItemInternalTeamIdsList =
3138
- Array<string>;
2905
+ export type ListOriginalConnectedChannelInfoResponseChannelsItemInternalTeamIdsList = Array<string>;
3139
2906
  export const ListOriginalConnectedChannelInfoResponseChannelsItemInternalTeamIdsList =
3140
2907
  /*@__PURE__*/ S.Array(
3141
2908
  S.String,
@@ -3147,25 +2914,22 @@ export interface ListOriginalConnectedChannelInfoResponseChannelsItem {
3147
2914
  original_connected_host_id: string;
3148
2915
  original_connected_channel_id: string;
3149
2916
  }
3150
- export const ListOriginalConnectedChannelInfoResponseChannelsItem =
3151
- /*@__PURE__*/ S.suspend(() =>
3152
- S.Struct({
3153
- id: S.String,
3154
- internal_team_ids:
3155
- ListOriginalConnectedChannelInfoResponseChannelsItemInternalTeamIdsList,
3156
- original_connected_host_id: S.String,
3157
- original_connected_channel_id: S.String,
3158
- }),
3159
- ).annotate({
3160
- identifier: "ListOriginalConnectedChannelInfoResponseChannelsItem",
3161
- }) as any as S.Schema<ListOriginalConnectedChannelInfoResponseChannelsItem>;
2917
+ export const ListOriginalConnectedChannelInfoResponseChannelsItem = /*@__PURE__*/ S.suspend(() =>
2918
+ S.Struct({
2919
+ id: S.String,
2920
+ internal_team_ids: ListOriginalConnectedChannelInfoResponseChannelsItemInternalTeamIdsList,
2921
+ original_connected_host_id: S.String,
2922
+ original_connected_channel_id: S.String,
2923
+ }),
2924
+ ).annotate({
2925
+ identifier: "ListOriginalConnectedChannelInfoResponseChannelsItem",
2926
+ }) as any as S.Schema<ListOriginalConnectedChannelInfoResponseChannelsItem>;
3162
2927
 
3163
2928
  export type ListOriginalConnectedChannelInfoResponseChannelsList =
3164
2929
  Array<ListOriginalConnectedChannelInfoResponseChannelsItem>;
3165
- export const ListOriginalConnectedChannelInfoResponseChannelsList =
3166
- /*@__PURE__*/ S.Array(
3167
- ListOriginalConnectedChannelInfoResponseChannelsItem,
3168
- ) as any as S.Schema<ListOriginalConnectedChannelInfoResponseChannelsList>;
2930
+ export const ListOriginalConnectedChannelInfoResponseChannelsList = /*@__PURE__*/ S.Array(
2931
+ ListOriginalConnectedChannelInfoResponseChannelsItem,
2932
+ ) as any as S.Schema<ListOriginalConnectedChannelInfoResponseChannelsList>;
3169
2933
 
3170
2934
  export interface ListOriginalConnectedChannelInfoResponse {
3171
2935
  /** Always `true` (a failed call raises a typed error instead). */
@@ -3174,15 +2938,12 @@ export interface ListOriginalConnectedChannelInfoResponse {
3174
2938
  response_metadata?: AnalyticsMessagesActivityResponseResponseMetadata;
3175
2939
  channels: ListOriginalConnectedChannelInfoResponseChannelsList;
3176
2940
  }
3177
- export const ListOriginalConnectedChannelInfoResponse = /*@__PURE__*/ S.suspend(
3178
- () =>
3179
- S.Struct({
3180
- ok: S.Boolean,
3181
- response_metadata: S.optional(
3182
- AnalyticsMessagesActivityResponseResponseMetadata,
3183
- ),
3184
- channels: ListOriginalConnectedChannelInfoResponseChannelsList,
3185
- }),
2941
+ export const ListOriginalConnectedChannelInfoResponse = /*@__PURE__*/ S.suspend(() =>
2942
+ S.Struct({
2943
+ ok: S.Boolean,
2944
+ response_metadata: S.optional(AnalyticsMessagesActivityResponseResponseMetadata),
2945
+ channels: ListOriginalConnectedChannelInfoResponseChannelsList,
2946
+ }),
3186
2947
  ).annotate({
3187
2948
  identifier: "ListOriginalConnectedChannelInfoResponse",
3188
2949
  }) as any as S.Schema<ListOriginalConnectedChannelInfoResponse>;
@@ -3198,9 +2959,7 @@ export const ListTeamsRequest = /*@__PURE__*/ S.suspend(() =>
3198
2959
  limit: S.optional(S.Number),
3199
2960
  cursor: S.optional(S.String),
3200
2961
  }).pipe(T.Http({ method: "POST", uri: "/admin.teams.list", code: 200 })),
3201
- ).annotate({
3202
- identifier: "ListTeamsRequest",
3203
- }) as any as S.Schema<ListTeamsRequest>;
2962
+ ).annotate({ identifier: "ListTeamsRequest" }) as any as S.Schema<ListTeamsRequest>;
3204
2963
 
3205
2964
  export interface ListTeamsResponseTeamsItemPrimaryOwner {
3206
2965
  /** Encoded user ID of the primary owner of the workspace */
@@ -3208,12 +2967,11 @@ export interface ListTeamsResponseTeamsItemPrimaryOwner {
3208
2967
  /** Email of the primary owner of the workspace */
3209
2968
  email: string;
3210
2969
  }
3211
- export const ListTeamsResponseTeamsItemPrimaryOwner = /*@__PURE__*/ S.suspend(
3212
- () =>
3213
- S.Struct({
3214
- user_id: S.String,
3215
- email: S.String,
3216
- }),
2970
+ export const ListTeamsResponseTeamsItemPrimaryOwner = /*@__PURE__*/ S.suspend(() =>
2971
+ S.Struct({
2972
+ user_id: S.String,
2973
+ email: S.String,
2974
+ }),
3217
2975
  ).annotate({
3218
2976
  identifier: "ListTeamsResponseTeamsItemPrimaryOwner",
3219
2977
  }) as any as S.Schema<ListTeamsResponseTeamsItemPrimaryOwner>;
@@ -3247,10 +3005,8 @@ export const ListTeamsResponseTeamsList = /*@__PURE__*/ S.Array(
3247
3005
  ) as any as S.Schema<ListTeamsResponseTeamsList>;
3248
3006
 
3249
3007
  /** Pagination metadata. An empty `next_cursor` means the last page. */
3250
- export type ListTeamsResponseResponseMetadata =
3251
- AnalyticsMessagesActivityResponseResponseMetadata;
3252
- export const ListTeamsResponseResponseMetadata =
3253
- AnalyticsMessagesActivityResponseResponseMetadata;
3008
+ export type ListTeamsResponseResponseMetadata = AnalyticsMessagesActivityResponseResponseMetadata;
3009
+ export const ListTeamsResponseResponseMetadata = AnalyticsMessagesActivityResponseResponseMetadata;
3254
3010
 
3255
3011
  export interface ListTeamsResponse {
3256
3012
  /** Always `true` (a failed call raises a typed error instead). */
@@ -3263,13 +3019,9 @@ export const ListTeamsResponse = /*@__PURE__*/ S.suspend(() =>
3263
3019
  S.Struct({
3264
3020
  ok: S.Boolean,
3265
3021
  teams: ListTeamsResponseTeamsList,
3266
- response_metadata: S.optional(
3267
- AnalyticsMessagesActivityResponseResponseMetadata,
3268
- ),
3022
+ response_metadata: S.optional(AnalyticsMessagesActivityResponseResponseMetadata),
3269
3023
  }),
3270
- ).annotate({
3271
- identifier: "ListTeamsResponse",
3272
- }) as any as S.Schema<ListTeamsResponse>;
3024
+ ).annotate({ identifier: "ListTeamsResponse" }) as any as S.Schema<ListTeamsResponse>;
3273
3025
 
3274
3026
  export interface ListTeamsAdminsRequest {
3275
3027
  /** The maximum number of items to return. */
@@ -3283,12 +3035,8 @@ export const ListTeamsAdminsRequest = /*@__PURE__*/ S.suspend(() =>
3283
3035
  limit: S.optional(S.Number.pipe(T.Query())),
3284
3036
  cursor: S.optional(S.String.pipe(T.Query())),
3285
3037
  team_id: S.String.pipe(T.Query()),
3286
- }).pipe(
3287
- T.Http({ method: "GET", uri: "/admin.teams.admins.list", code: 200 }),
3288
- ),
3289
- ).annotate({
3290
- identifier: "ListTeamsAdminsRequest",
3291
- }) as any as S.Schema<ListTeamsAdminsRequest>;
3038
+ }).pipe(T.Http({ method: "GET", uri: "/admin.teams.admins.list", code: 200 })),
3039
+ ).annotate({ identifier: "ListTeamsAdminsRequest" }) as any as S.Schema<ListTeamsAdminsRequest>;
3292
3040
 
3293
3041
  export type ListTeamsAdminsResponseAdminIdsList = Array<string>;
3294
3042
  export const ListTeamsAdminsResponseAdminIdsList = /*@__PURE__*/ S.Array(
@@ -3312,13 +3060,9 @@ export const ListTeamsAdminsResponse = /*@__PURE__*/ S.suspend(() =>
3312
3060
  S.Struct({
3313
3061
  ok: S.Boolean,
3314
3062
  admin_ids: ListTeamsAdminsResponseAdminIdsList,
3315
- response_metadata: S.optional(
3316
- AnalyticsMessagesActivityResponseResponseMetadata,
3317
- ),
3063
+ response_metadata: S.optional(AnalyticsMessagesActivityResponseResponseMetadata),
3318
3064
  }),
3319
- ).annotate({
3320
- identifier: "ListTeamsAdminsResponse",
3321
- }) as any as S.Schema<ListTeamsAdminsResponse>;
3065
+ ).annotate({ identifier: "ListTeamsAdminsResponse" }) as any as S.Schema<ListTeamsAdminsResponse>;
3322
3066
 
3323
3067
  export interface ListTeamsOwnersRequest {
3324
3068
  team_id: string;
@@ -3332,12 +3076,8 @@ export const ListTeamsOwnersRequest = /*@__PURE__*/ S.suspend(() =>
3332
3076
  team_id: S.String.pipe(T.Query()),
3333
3077
  limit: S.optional(S.Number.pipe(T.Query())),
3334
3078
  cursor: S.optional(S.String.pipe(T.Query())),
3335
- }).pipe(
3336
- T.Http({ method: "GET", uri: "/admin.teams.owners.list", code: 200 }),
3337
- ),
3338
- ).annotate({
3339
- identifier: "ListTeamsOwnersRequest",
3340
- }) as any as S.Schema<ListTeamsOwnersRequest>;
3079
+ }).pipe(T.Http({ method: "GET", uri: "/admin.teams.owners.list", code: 200 })),
3080
+ ).annotate({ identifier: "ListTeamsOwnersRequest" }) as any as S.Schema<ListTeamsOwnersRequest>;
3341
3081
 
3342
3082
  export type ListTeamsOwnersResponseOwnerIdsList = Array<string>;
3343
3083
  export const ListTeamsOwnersResponseOwnerIdsList = /*@__PURE__*/ S.Array(
@@ -3361,13 +3101,9 @@ export const ListTeamsOwnersResponse = /*@__PURE__*/ S.suspend(() =>
3361
3101
  S.Struct({
3362
3102
  ok: S.Boolean,
3363
3103
  owner_ids: ListTeamsOwnersResponseOwnerIdsList,
3364
- response_metadata: S.optional(
3365
- AnalyticsMessagesActivityResponseResponseMetadata,
3366
- ),
3104
+ response_metadata: S.optional(AnalyticsMessagesActivityResponseResponseMetadata),
3367
3105
  }),
3368
- ).annotate({
3369
- identifier: "ListTeamsOwnersResponse",
3370
- }) as any as S.Schema<ListTeamsOwnersResponse>;
3106
+ ).annotate({ identifier: "ListTeamsOwnersResponse" }) as any as S.Schema<ListTeamsOwnersResponse>;
3371
3107
 
3372
3108
  export interface ListUsersRequest {
3373
3109
  /** The ID (T1234) of a workspace. Filters results to just the specified workspace. */
@@ -3378,7 +3114,7 @@ export interface ListUsersRequest {
3378
3114
  is_active?: boolean;
3379
3115
  /** Only applies with org token and no team_id. If true, return `workspaces` for a user even if they may be deactivated on them. If false, return `workspaces` for a user only when user is active on them. Default is false. */
3380
3116
  include_deactivated_user_workspaces?: boolean;
3381
- /** If true, returns only guests and their expiration dates that belong to the team_id */
3117
+ /** If true, returns only guests and their expiration dates that belong to the team_id. */
3382
3118
  only_guests?: boolean;
3383
3119
  /** If true, only admin users will be returned (excludes owners). Returns all admins and owners when combined with `include_owners`. Cannot be used together with `only_guests`. */
3384
3120
  include_admins?: boolean;
@@ -3398,9 +3134,7 @@ export const ListUsersRequest = /*@__PURE__*/ S.suspend(() =>
3398
3134
  include_owners: S.optional(S.Boolean),
3399
3135
  limit: S.optional(S.Number),
3400
3136
  }).pipe(T.Http({ method: "POST", uri: "/admin.users.list", code: 200 })),
3401
- ).annotate({
3402
- identifier: "ListUsersRequest",
3403
- }) as any as S.Schema<ListUsersRequest>;
3137
+ ).annotate({ identifier: "ListUsersRequest" }) as any as S.Schema<ListUsersRequest>;
3404
3138
 
3405
3139
  /** Roles that a user has */
3406
3140
  export type ListUsersResponseUsersItemRolesList = Array<string>;
@@ -3486,10 +3220,8 @@ export const ListUsersResponseUsersList = /*@__PURE__*/ S.Array(
3486
3220
  ) as any as S.Schema<ListUsersResponseUsersList>;
3487
3221
 
3488
3222
  /** Pagination metadata. An empty `next_cursor` means the last page. */
3489
- export type ListUsersResponseResponseMetadata =
3490
- AnalyticsMessagesActivityResponseResponseMetadata;
3491
- export const ListUsersResponseResponseMetadata =
3492
- AnalyticsMessagesActivityResponseResponseMetadata;
3223
+ export type ListUsersResponseResponseMetadata = AnalyticsMessagesActivityResponseResponseMetadata;
3224
+ export const ListUsersResponseResponseMetadata = AnalyticsMessagesActivityResponseResponseMetadata;
3493
3225
 
3494
3226
  export interface ListUsersResponse {
3495
3227
  /** Always `true` (a failed call raises a typed error instead). */
@@ -3502,13 +3234,9 @@ export const ListUsersResponse = /*@__PURE__*/ S.suspend(() =>
3502
3234
  S.Struct({
3503
3235
  ok: S.Boolean,
3504
3236
  users: ListUsersResponseUsersList,
3505
- response_metadata: S.optional(
3506
- AnalyticsMessagesActivityResponseResponseMetadata,
3507
- ),
3237
+ response_metadata: S.optional(AnalyticsMessagesActivityResponseResponseMetadata),
3508
3238
  }),
3509
- ).annotate({
3510
- identifier: "ListUsersResponse",
3511
- }) as any as S.Schema<ListUsersResponse>;
3239
+ ).annotate({ identifier: "ListUsersResponse" }) as any as S.Schema<ListUsersResponse>;
3512
3240
 
3513
3241
  export interface ListUsersSessionRequest {
3514
3242
  /** The ID of the workspace you'd like active sessions for. If you pass a `team_id`, you'll need to pass a `user_id` as well. */
@@ -3526,12 +3254,8 @@ export const ListUsersSessionRequest = /*@__PURE__*/ S.suspend(() =>
3526
3254
  user_id: S.optional(S.String),
3527
3255
  limit: S.optional(S.Number),
3528
3256
  cursor: S.optional(S.String),
3529
- }).pipe(
3530
- T.Http({ method: "POST", uri: "/admin.users.session.list", code: 200 }),
3531
- ),
3532
- ).annotate({
3533
- identifier: "ListUsersSessionRequest",
3534
- }) as any as S.Schema<ListUsersSessionRequest>;
3257
+ }).pipe(T.Http({ method: "POST", uri: "/admin.users.session.list", code: 200 })),
3258
+ ).annotate({ identifier: "ListUsersSessionRequest" }) as any as S.Schema<ListUsersSessionRequest>;
3535
3259
 
3536
3260
  /** Pagination metadata. An empty `next_cursor` means the last page. */
3537
3261
  export type ListUsersSessionResponseResponseMetadata =
@@ -3551,18 +3275,17 @@ export interface ListUsersSessionResponseActiveSessionsItemRecent {
3551
3275
  /** IP address */
3552
3276
  ip?: string;
3553
3277
  }
3554
- export const ListUsersSessionResponseActiveSessionsItemRecent =
3555
- /*@__PURE__*/ S.suspend(() =>
3556
- S.Struct({
3557
- device_hardware: S.optional(S.String),
3558
- os: S.optional(S.String),
3559
- os_version: S.optional(S.String),
3560
- slack_client_version: S.optional(S.String),
3561
- ip: S.optional(S.String),
3562
- }),
3563
- ).annotate({
3564
- identifier: "ListUsersSessionResponseActiveSessionsItemRecent",
3565
- }) as any as S.Schema<ListUsersSessionResponseActiveSessionsItemRecent>;
3278
+ export const ListUsersSessionResponseActiveSessionsItemRecent = /*@__PURE__*/ S.suspend(() =>
3279
+ S.Struct({
3280
+ device_hardware: S.optional(S.String),
3281
+ os: S.optional(S.String),
3282
+ os_version: S.optional(S.String),
3283
+ slack_client_version: S.optional(S.String),
3284
+ ip: S.optional(S.String),
3285
+ }),
3286
+ ).annotate({
3287
+ identifier: "ListUsersSessionResponseActiveSessionsItemRecent",
3288
+ }) as any as S.Schema<ListUsersSessionResponseActiveSessionsItemRecent>;
3566
3289
 
3567
3290
  export interface ListUsersSessionResponseActiveSessionsItemCreated {
3568
3291
  /** Type of device used when session was created */
@@ -3576,18 +3299,17 @@ export interface ListUsersSessionResponseActiveSessionsItemCreated {
3576
3299
  /** IP address used when session was created */
3577
3300
  ip?: string;
3578
3301
  }
3579
- export const ListUsersSessionResponseActiveSessionsItemCreated =
3580
- /*@__PURE__*/ S.suspend(() =>
3581
- S.Struct({
3582
- device_hardware: S.optional(S.String),
3583
- os: S.optional(S.String),
3584
- os_version: S.optional(S.String),
3585
- slack_client_version: S.optional(S.String),
3586
- ip: S.optional(S.String),
3587
- }),
3588
- ).annotate({
3589
- identifier: "ListUsersSessionResponseActiveSessionsItemCreated",
3590
- }) as any as S.Schema<ListUsersSessionResponseActiveSessionsItemCreated>;
3302
+ export const ListUsersSessionResponseActiveSessionsItemCreated = /*@__PURE__*/ S.suspend(() =>
3303
+ S.Struct({
3304
+ device_hardware: S.optional(S.String),
3305
+ os: S.optional(S.String),
3306
+ os_version: S.optional(S.String),
3307
+ slack_client_version: S.optional(S.String),
3308
+ ip: S.optional(S.String),
3309
+ }),
3310
+ ).annotate({
3311
+ identifier: "ListUsersSessionResponseActiveSessionsItemCreated",
3312
+ }) as any as S.Schema<ListUsersSessionResponseActiveSessionsItemCreated>;
3591
3313
 
3592
3314
  export interface ListUsersSessionResponseActiveSessionsItem {
3593
3315
  /** Encoded ID of the user */
@@ -3599,18 +3321,17 @@ export interface ListUsersSessionResponseActiveSessionsItem {
3599
3321
  recent?: ListUsersSessionResponseActiveSessionsItemRecent;
3600
3322
  created: ListUsersSessionResponseActiveSessionsItemCreated;
3601
3323
  }
3602
- export const ListUsersSessionResponseActiveSessionsItem =
3603
- /*@__PURE__*/ S.suspend(() =>
3604
- S.Struct({
3605
- user_id: S.String,
3606
- team_id: S.String,
3607
- session_id: S.Number,
3608
- recent: S.optional(ListUsersSessionResponseActiveSessionsItemRecent),
3609
- created: ListUsersSessionResponseActiveSessionsItemCreated,
3610
- }),
3611
- ).annotate({
3612
- identifier: "ListUsersSessionResponseActiveSessionsItem",
3613
- }) as any as S.Schema<ListUsersSessionResponseActiveSessionsItem>;
3324
+ export const ListUsersSessionResponseActiveSessionsItem = /*@__PURE__*/ S.suspend(() =>
3325
+ S.Struct({
3326
+ user_id: S.String,
3327
+ team_id: S.String,
3328
+ session_id: S.Number,
3329
+ recent: S.optional(ListUsersSessionResponseActiveSessionsItemRecent),
3330
+ created: ListUsersSessionResponseActiveSessionsItemCreated,
3331
+ }),
3332
+ ).annotate({
3333
+ identifier: "ListUsersSessionResponseActiveSessionsItem",
3334
+ }) as any as S.Schema<ListUsersSessionResponseActiveSessionsItem>;
3614
3335
 
3615
3336
  /** Active user session data */
3616
3337
  export type ListUsersSessionResponseActiveSessionsList =
@@ -3630,14 +3351,10 @@ export interface ListUsersSessionResponse {
3630
3351
  export const ListUsersSessionResponse = /*@__PURE__*/ S.suspend(() =>
3631
3352
  S.Struct({
3632
3353
  ok: S.Boolean,
3633
- response_metadata: S.optional(
3634
- AnalyticsMessagesActivityResponseResponseMetadata,
3635
- ),
3354
+ response_metadata: S.optional(AnalyticsMessagesActivityResponseResponseMetadata),
3636
3355
  active_sessions: ListUsersSessionResponseActiveSessionsList,
3637
3356
  }),
3638
- ).annotate({
3639
- identifier: "ListUsersSessionResponse",
3640
- }) as any as S.Schema<ListUsersSessionResponse>;
3357
+ ).annotate({ identifier: "ListUsersSessionResponse" }) as any as S.Schema<ListUsersSessionResponse>;
3641
3358
 
3642
3359
  /** An array of app IDs to get app configs for */
3643
3360
  export type LookupAppsConfigRequestAppIdsList = Array<string>;
@@ -3656,10 +3373,9 @@ export const LookupAppsConfigRequestRichLinkPreviewTypesItem = S.String;
3656
3373
  export type LookupAppsConfigRequestRichLinkPreviewTypesList = Array<
3657
3374
  LookupAppsConfigRequestRichLinkPreviewTypesItem | (string & {})
3658
3375
  >;
3659
- export const LookupAppsConfigRequestRichLinkPreviewTypesList =
3660
- /*@__PURE__*/ S.Array(
3661
- LookupAppsConfigRequestRichLinkPreviewTypesItem,
3662
- ) as any as S.Schema<LookupAppsConfigRequestRichLinkPreviewTypesList>;
3376
+ export const LookupAppsConfigRequestRichLinkPreviewTypesList = /*@__PURE__*/ S.Array(
3377
+ LookupAppsConfigRequestRichLinkPreviewTypesItem,
3378
+ ) as any as S.Schema<LookupAppsConfigRequestRichLinkPreviewTypesList>;
3663
3379
 
3664
3380
  export interface LookupAppsConfigRequest {
3665
3381
  /** An array of app IDs to get app configs for */
@@ -3670,15 +3386,9 @@ export interface LookupAppsConfigRequest {
3670
3386
  export const LookupAppsConfigRequest = /*@__PURE__*/ S.suspend(() =>
3671
3387
  S.Struct({
3672
3388
  app_ids: S.optional(LookupAppsConfigRequestAppIdsList),
3673
- rich_link_preview_types: S.optional(
3674
- LookupAppsConfigRequestRichLinkPreviewTypesList,
3675
- ),
3676
- }).pipe(
3677
- T.Http({ method: "POST", uri: "/admin.apps.config.lookup", code: 200 }),
3678
- ),
3679
- ).annotate({
3680
- identifier: "LookupAppsConfigRequest",
3681
- }) as any as S.Schema<LookupAppsConfigRequest>;
3389
+ rich_link_preview_types: S.optional(LookupAppsConfigRequestRichLinkPreviewTypesList),
3390
+ }).pipe(T.Http({ method: "POST", uri: "/admin.apps.config.lookup", code: 200 })),
3391
+ ).annotate({ identifier: "LookupAppsConfigRequest" }) as any as S.Schema<LookupAppsConfigRequest>;
3682
3392
 
3683
3393
  export type LookupAppsConfigResponseConfigsItemWorkflowAuthStrategy =
3684
3394
  | "builder_choice"
@@ -3693,16 +3403,14 @@ export interface LookupAppsConfigResponseConfigsItem {
3693
3403
  export const LookupAppsConfigResponseConfigsItem = /*@__PURE__*/ S.suspend(() =>
3694
3404
  S.Struct({
3695
3405
  app_id: S.String,
3696
- workflow_auth_strategy:
3697
- LookupAppsConfigResponseConfigsItemWorkflowAuthStrategy,
3406
+ workflow_auth_strategy: LookupAppsConfigResponseConfigsItemWorkflowAuthStrategy,
3698
3407
  domain_restrictions: S.Unknown,
3699
3408
  }),
3700
3409
  ).annotate({
3701
3410
  identifier: "LookupAppsConfigResponseConfigsItem",
3702
3411
  }) as any as S.Schema<LookupAppsConfigResponseConfigsItem>;
3703
3412
 
3704
- export type LookupAppsConfigResponseConfigsList =
3705
- Array<LookupAppsConfigResponseConfigsItem>;
3413
+ export type LookupAppsConfigResponseConfigsList = Array<LookupAppsConfigResponseConfigsItem>;
3706
3414
  export const LookupAppsConfigResponseConfigsList = /*@__PURE__*/ S.Array(
3707
3415
  LookupAppsConfigResponseConfigsItem,
3708
3416
  ) as any as S.Schema<LookupAppsConfigResponseConfigsList>;
@@ -3717,9 +3425,7 @@ export const LookupAppsConfigResponse = /*@__PURE__*/ S.suspend(() =>
3717
3425
  ok: S.Boolean,
3718
3426
  configs: LookupAppsConfigResponseConfigsList,
3719
3427
  }),
3720
- ).annotate({
3721
- identifier: "LookupAppsConfigResponse",
3722
- }) as any as S.Schema<LookupAppsConfigResponse>;
3428
+ ).annotate({ identifier: "LookupAppsConfigResponse" }) as any as S.Schema<LookupAppsConfigResponse>;
3723
3429
 
3724
3430
  /** Array of team IDs to filter by */
3725
3431
  export type LookupConversationRequestTeamIdsList = Array<string>;
@@ -3780,9 +3486,7 @@ export const LookupConversationResponse = /*@__PURE__*/ S.suspend(() =>
3780
3486
  S.Struct({
3781
3487
  ok: S.Boolean,
3782
3488
  channel_ids: LookupConversationResponseChannelIdsList,
3783
- response_metadata: S.optional(
3784
- AnalyticsMessagesActivityResponseResponseMetadata,
3785
- ),
3489
+ response_metadata: S.optional(AnalyticsMessagesActivityResponseResponseMetadata),
3786
3490
  }),
3787
3491
  ).annotate({
3788
3492
  identifier: "LookupConversationResponse",
@@ -3790,10 +3494,9 @@ export const LookupConversationResponse = /*@__PURE__*/ S.suspend(() =>
3790
3494
 
3791
3495
  /** An array of function IDs to get permissions for */
3792
3496
  export type LookupFunctionsPermissionsRequestFunctionIdsList = Array<string>;
3793
- export const LookupFunctionsPermissionsRequestFunctionIdsList =
3794
- /*@__PURE__*/ S.Array(
3795
- S.String,
3796
- ) as any as S.Schema<LookupFunctionsPermissionsRequestFunctionIdsList>;
3497
+ export const LookupFunctionsPermissionsRequestFunctionIdsList = /*@__PURE__*/ S.Array(
3498
+ S.String,
3499
+ ) as any as S.Schema<LookupFunctionsPermissionsRequestFunctionIdsList>;
3797
3500
 
3798
3501
  export interface LookupFunctionsPermissionsRequest {
3799
3502
  /** An array of function IDs to get permissions for */
@@ -3802,13 +3505,7 @@ export interface LookupFunctionsPermissionsRequest {
3802
3505
  export const LookupFunctionsPermissionsRequest = /*@__PURE__*/ S.suspend(() =>
3803
3506
  S.Struct({
3804
3507
  function_ids: LookupFunctionsPermissionsRequestFunctionIdsList,
3805
- }).pipe(
3806
- T.Http({
3807
- method: "POST",
3808
- uri: "/admin.functions.permissions.lookup",
3809
- code: 200,
3810
- }),
3811
- ),
3508
+ }).pipe(T.Http({ method: "POST", uri: "/admin.functions.permissions.lookup", code: 200 })),
3812
3509
  ).annotate({
3813
3510
  identifier: "LookupFunctionsPermissionsRequest",
3814
3511
  }) as any as S.Schema<LookupFunctionsPermissionsRequest>;
@@ -3816,29 +3513,22 @@ export const LookupFunctionsPermissionsRequest = /*@__PURE__*/ S.suspend(() =>
3816
3513
  export type LookupFunctionsPermissionsResponsePermissionsMap = {
3817
3514
  [key: string]: unknown | undefined;
3818
3515
  };
3819
- export const LookupFunctionsPermissionsResponsePermissionsMap =
3820
- /*@__PURE__*/ S.Record(
3821
- S.String,
3822
- S.Unknown,
3823
- ) as any as S.Schema<LookupFunctionsPermissionsResponsePermissionsMap>;
3516
+ export const LookupFunctionsPermissionsResponsePermissionsMap = /*@__PURE__*/ S.Record(
3517
+ S.String,
3518
+ S.Unknown,
3519
+ ) as any as S.Schema<LookupFunctionsPermissionsResponsePermissionsMap>;
3824
3520
 
3825
- export type LookupFunctionsPermissionsResponseMetadataMap = {
3826
- [key: string]: unknown | undefined;
3827
- };
3828
- export const LookupFunctionsPermissionsResponseMetadataMap =
3829
- /*@__PURE__*/ S.Record(
3830
- S.String,
3831
- S.Unknown,
3832
- ) as any as S.Schema<LookupFunctionsPermissionsResponseMetadataMap>;
3521
+ export type LookupFunctionsPermissionsResponseMetadataMap = { [key: string]: unknown | undefined };
3522
+ export const LookupFunctionsPermissionsResponseMetadataMap = /*@__PURE__*/ S.Record(
3523
+ S.String,
3524
+ S.Unknown,
3525
+ ) as any as S.Schema<LookupFunctionsPermissionsResponseMetadataMap>;
3833
3526
 
3834
- export type LookupFunctionsPermissionsResponseErrorsMap = {
3835
- [key: string]: unknown | undefined;
3836
- };
3837
- export const LookupFunctionsPermissionsResponseErrorsMap =
3838
- /*@__PURE__*/ S.Record(
3839
- S.String,
3840
- S.Unknown,
3841
- ) as any as S.Schema<LookupFunctionsPermissionsResponseErrorsMap>;
3527
+ export type LookupFunctionsPermissionsResponseErrorsMap = { [key: string]: unknown | undefined };
3528
+ export const LookupFunctionsPermissionsResponseErrorsMap = /*@__PURE__*/ S.Record(
3529
+ S.String,
3530
+ S.Unknown,
3531
+ ) as any as S.Schema<LookupFunctionsPermissionsResponseErrorsMap>;
3842
3532
 
3843
3533
  export interface LookupFunctionsPermissionsResponse {
3844
3534
  /** Always `true` (a failed call raises a typed error instead). */
@@ -3860,10 +3550,9 @@ export const LookupFunctionsPermissionsResponse = /*@__PURE__*/ S.suspend(() =>
3860
3550
 
3861
3551
  /** An array of workflow IDs to look up permissions for */
3862
3552
  export type LookupWorkflowsPermissionsRequestWorkflowIdsList = Array<string>;
3863
- export const LookupWorkflowsPermissionsRequestWorkflowIdsList =
3864
- /*@__PURE__*/ S.Array(
3865
- S.String,
3866
- ) as any as S.Schema<LookupWorkflowsPermissionsRequestWorkflowIdsList>;
3553
+ export const LookupWorkflowsPermissionsRequestWorkflowIdsList = /*@__PURE__*/ S.Array(
3554
+ S.String,
3555
+ ) as any as S.Schema<LookupWorkflowsPermissionsRequestWorkflowIdsList>;
3867
3556
 
3868
3557
  export interface LookupWorkflowsPermissionsRequest {
3869
3558
  /** An array of workflow IDs to look up permissions for */
@@ -3875,32 +3564,35 @@ export const LookupWorkflowsPermissionsRequest = /*@__PURE__*/ S.suspend(() =>
3875
3564
  S.Struct({
3876
3565
  workflow_ids: LookupWorkflowsPermissionsRequestWorkflowIdsList,
3877
3566
  max_workflow_triggers: S.optional(S.Number),
3878
- }).pipe(
3879
- T.Http({
3880
- method: "POST",
3881
- uri: "/admin.workflows.permissions.lookup",
3882
- code: 200,
3883
- }),
3884
- ),
3567
+ }).pipe(T.Http({ method: "POST", uri: "/admin.workflows.permissions.lookup", code: 200 })),
3885
3568
  ).annotate({
3886
3569
  identifier: "LookupWorkflowsPermissionsRequest",
3887
3570
  }) as any as S.Schema<LookupWorkflowsPermissionsRequest>;
3888
3571
 
3572
+ export type LookupWorkflowsPermissionsResponsePermissionsMap = {
3573
+ [key: string]: unknown | undefined;
3574
+ };
3575
+ export const LookupWorkflowsPermissionsResponsePermissionsMap = /*@__PURE__*/ S.Record(
3576
+ S.String,
3577
+ S.Unknown,
3578
+ ) as any as S.Schema<LookupWorkflowsPermissionsResponsePermissionsMap>;
3579
+
3889
3580
  export interface LookupWorkflowsPermissionsResponse {
3890
3581
  /** Always `true` (a failed call raises a typed error instead). */
3891
3582
  ok: boolean;
3583
+ permissions: LookupWorkflowsPermissionsResponsePermissionsMap;
3892
3584
  }
3893
3585
  export const LookupWorkflowsPermissionsResponse = /*@__PURE__*/ S.suspend(() =>
3894
3586
  S.Struct({
3895
3587
  ok: S.Boolean,
3588
+ permissions: LookupWorkflowsPermissionsResponsePermissionsMap,
3896
3589
  }),
3897
3590
  ).annotate({
3898
3591
  identifier: "LookupWorkflowsPermissionsResponse",
3899
3592
  }) as any as S.Schema<LookupWorkflowsPermissionsResponse>;
3900
3593
 
3901
3594
  /** The trigger type IDs for which to get the permissions. */
3902
- export type LookupWorkflowsTriggersTypesPermissionsRequestTriggerTypeIdsList =
3903
- Array<string>;
3595
+ export type LookupWorkflowsTriggersTypesPermissionsRequestTriggerTypeIdsList = Array<string>;
3904
3596
  export const LookupWorkflowsTriggersTypesPermissionsRequestTriggerTypeIdsList =
3905
3597
  /*@__PURE__*/ S.Array(
3906
3598
  S.String,
@@ -3910,39 +3602,35 @@ export interface LookupWorkflowsTriggersTypesPermissionsRequest {
3910
3602
  /** The trigger type IDs for which to get the permissions. */
3911
3603
  trigger_type_ids: LookupWorkflowsTriggersTypesPermissionsRequestTriggerTypeIdsList;
3912
3604
  }
3913
- export const LookupWorkflowsTriggersTypesPermissionsRequest =
3914
- /*@__PURE__*/ S.suspend(() =>
3915
- S.Struct({
3916
- trigger_type_ids:
3917
- LookupWorkflowsTriggersTypesPermissionsRequestTriggerTypeIdsList,
3918
- }).pipe(
3919
- T.Http({
3920
- method: "POST",
3921
- uri: "/admin.workflows.triggers.types.permissions.lookup",
3922
- code: 200,
3923
- }),
3924
- ),
3925
- ).annotate({
3926
- identifier: "LookupWorkflowsTriggersTypesPermissionsRequest",
3927
- }) as any as S.Schema<LookupWorkflowsTriggersTypesPermissionsRequest>;
3605
+ export const LookupWorkflowsTriggersTypesPermissionsRequest = /*@__PURE__*/ S.suspend(() =>
3606
+ S.Struct({
3607
+ trigger_type_ids: LookupWorkflowsTriggersTypesPermissionsRequestTriggerTypeIdsList,
3608
+ }).pipe(
3609
+ T.Http({
3610
+ method: "POST",
3611
+ uri: "/admin.workflows.triggers.types.permissions.lookup",
3612
+ code: 200,
3613
+ }),
3614
+ ),
3615
+ ).annotate({
3616
+ identifier: "LookupWorkflowsTriggersTypesPermissionsRequest",
3617
+ }) as any as S.Schema<LookupWorkflowsTriggersTypesPermissionsRequest>;
3928
3618
 
3929
3619
  export type LookupWorkflowsTriggersTypesPermissionsResponsePermissionsMap = {
3930
3620
  [key: string]: unknown | undefined;
3931
3621
  };
3932
- export const LookupWorkflowsTriggersTypesPermissionsResponsePermissionsMap =
3933
- /*@__PURE__*/ S.Record(
3934
- S.String,
3935
- S.Unknown,
3936
- ) as any as S.Schema<LookupWorkflowsTriggersTypesPermissionsResponsePermissionsMap>;
3622
+ export const LookupWorkflowsTriggersTypesPermissionsResponsePermissionsMap = /*@__PURE__*/ S.Record(
3623
+ S.String,
3624
+ S.Unknown,
3625
+ ) as any as S.Schema<LookupWorkflowsTriggersTypesPermissionsResponsePermissionsMap>;
3937
3626
 
3938
3627
  export type LookupWorkflowsTriggersTypesPermissionsResponseMetadataMap = {
3939
3628
  [key: string]: unknown | undefined;
3940
3629
  };
3941
- export const LookupWorkflowsTriggersTypesPermissionsResponseMetadataMap =
3942
- /*@__PURE__*/ S.Record(
3943
- S.String,
3944
- S.Unknown,
3945
- ) as any as S.Schema<LookupWorkflowsTriggersTypesPermissionsResponseMetadataMap>;
3630
+ export const LookupWorkflowsTriggersTypesPermissionsResponseMetadataMap = /*@__PURE__*/ S.Record(
3631
+ S.String,
3632
+ S.Unknown,
3633
+ ) as any as S.Schema<LookupWorkflowsTriggersTypesPermissionsResponseMetadataMap>;
3946
3634
 
3947
3635
  export interface LookupWorkflowsTriggersTypesPermissionsResponse {
3948
3636
  /** Always `true` (a failed call raises a typed error instead). */
@@ -3950,17 +3638,15 @@ export interface LookupWorkflowsTriggersTypesPermissionsResponse {
3950
3638
  permissions: LookupWorkflowsTriggersTypesPermissionsResponsePermissionsMap;
3951
3639
  metadata: LookupWorkflowsTriggersTypesPermissionsResponseMetadataMap;
3952
3640
  }
3953
- export const LookupWorkflowsTriggersTypesPermissionsResponse =
3954
- /*@__PURE__*/ S.suspend(() =>
3955
- S.Struct({
3956
- ok: S.Boolean,
3957
- permissions:
3958
- LookupWorkflowsTriggersTypesPermissionsResponsePermissionsMap,
3959
- metadata: LookupWorkflowsTriggersTypesPermissionsResponseMetadataMap,
3960
- }),
3961
- ).annotate({
3962
- identifier: "LookupWorkflowsTriggersTypesPermissionsResponse",
3963
- }) as any as S.Schema<LookupWorkflowsTriggersTypesPermissionsResponse>;
3641
+ export const LookupWorkflowsTriggersTypesPermissionsResponse = /*@__PURE__*/ S.suspend(() =>
3642
+ S.Struct({
3643
+ ok: S.Boolean,
3644
+ permissions: LookupWorkflowsTriggersTypesPermissionsResponsePermissionsMap,
3645
+ metadata: LookupWorkflowsTriggersTypesPermissionsResponseMetadataMap,
3646
+ }),
3647
+ ).annotate({
3648
+ identifier: "LookupWorkflowsTriggersTypesPermissionsResponse",
3649
+ }) as any as S.Schema<LookupWorkflowsTriggersTypesPermissionsResponse>;
3964
3650
 
3965
3651
  /** List of user IDs whose named_entities access will be revoked */
3966
3652
  export type RemoveAppsPermissionsRequestUserIdsList = Array<string>;
@@ -3970,10 +3656,15 @@ export const RemoveAppsPermissionsRequestUserIdsList = /*@__PURE__*/ S.Array(
3970
3656
 
3971
3657
  /** List of encoded usergroup IDs */
3972
3658
  export type RemoveAppsPermissionsRequestUsergroupIdsList = Array<string>;
3973
- export const RemoveAppsPermissionsRequestUsergroupIdsList =
3974
- /*@__PURE__*/ S.Array(
3975
- S.String,
3976
- ) as any as S.Schema<RemoveAppsPermissionsRequestUsergroupIdsList>;
3659
+ export const RemoveAppsPermissionsRequestUsergroupIdsList = /*@__PURE__*/ S.Array(
3660
+ S.String,
3661
+ ) as any as S.Schema<RemoveAppsPermissionsRequestUsergroupIdsList>;
3662
+
3663
+ /** List of encoded channel IDs to remove from the channel restriction list. Interpretation depends on the app's `channel_restriction_mode`, which is configured via the `admin.apps.permissions.set` method. */
3664
+ export type RemoveAppsPermissionsRequestChannelIdsList = Array<string>;
3665
+ export const RemoveAppsPermissionsRequestChannelIdsList = /*@__PURE__*/ S.Array(
3666
+ S.String,
3667
+ ) as any as S.Schema<RemoveAppsPermissionsRequestChannelIdsList>;
3977
3668
 
3978
3669
  export interface RemoveAppsPermissionsRequest {
3979
3670
  /** Encoded ID of the app */
@@ -3982,19 +3673,16 @@ export interface RemoveAppsPermissionsRequest {
3982
3673
  user_ids?: RemoveAppsPermissionsRequestUserIdsList;
3983
3674
  /** List of encoded usergroup IDs */
3984
3675
  usergroup_ids?: RemoveAppsPermissionsRequestUsergroupIdsList;
3676
+ /** List of encoded channel IDs to remove from the channel restriction list. Interpretation depends on the app's `channel_restriction_mode`, which is configured via the `admin.apps.permissions.set` method. */
3677
+ channel_ids?: RemoveAppsPermissionsRequestChannelIdsList;
3985
3678
  }
3986
3679
  export const RemoveAppsPermissionsRequest = /*@__PURE__*/ S.suspend(() =>
3987
3680
  S.Struct({
3988
3681
  app_id: S.String,
3989
3682
  user_ids: S.optional(RemoveAppsPermissionsRequestUserIdsList),
3990
3683
  usergroup_ids: S.optional(RemoveAppsPermissionsRequestUsergroupIdsList),
3991
- }).pipe(
3992
- T.Http({
3993
- method: "POST",
3994
- uri: "/admin.apps.permissions.remove",
3995
- code: 200,
3996
- }),
3997
- ),
3684
+ channel_ids: S.optional(RemoveAppsPermissionsRequestChannelIdsList),
3685
+ }).pipe(T.Http({ method: "POST", uri: "/admin.apps.permissions.remove", code: 200 })),
3998
3686
  ).annotate({
3999
3687
  identifier: "RemoveAppsPermissionsRequest",
4000
3688
  }) as any as S.Schema<RemoveAppsPermissionsRequest>;
@@ -4036,16 +3724,8 @@ export const RemoveAssignmentsRequest = /*@__PURE__*/ S.suspend(() =>
4036
3724
  role_id: S.String,
4037
3725
  entity_ids: RemoveAssignmentsRequestEntityIdsList,
4038
3726
  user_ids: RemoveAssignmentsRequestUserIdsList,
4039
- }).pipe(
4040
- T.Http({
4041
- method: "POST",
4042
- uri: "/admin.roles.removeAssignments",
4043
- code: 200,
4044
- }),
4045
- ),
4046
- ).annotate({
4047
- identifier: "RemoveAssignmentsRequest",
4048
- }) as any as S.Schema<RemoveAssignmentsRequest>;
3727
+ }).pipe(T.Http({ method: "POST", uri: "/admin.roles.removeAssignments", code: 200 })),
3728
+ ).annotate({ identifier: "RemoveAssignmentsRequest" }) as any as S.Schema<RemoveAssignmentsRequest>;
4049
3729
 
4050
3730
  export interface RemoveAssignmentsResponse {
4051
3731
  /** Always `true` (a failed call raises a typed error instead). */
@@ -4078,16 +3758,8 @@ export const RemoveChannelsRequest = /*@__PURE__*/ S.suspend(() =>
4078
3758
  S.Struct({
4079
3759
  usergroup_id: S.String,
4080
3760
  channel_ids: RemoveChannelsRequestChannelIdsList,
4081
- }).pipe(
4082
- T.Http({
4083
- method: "POST",
4084
- uri: "/admin.usergroups.removeChannels",
4085
- code: 200,
4086
- }),
4087
- ),
4088
- ).annotate({
4089
- identifier: "RemoveChannelsRequest",
4090
- }) as any as S.Schema<RemoveChannelsRequest>;
3761
+ }).pipe(T.Http({ method: "POST", uri: "/admin.usergroups.removeChannels", code: 200 })),
3762
+ ).annotate({ identifier: "RemoveChannelsRequest" }) as any as S.Schema<RemoveChannelsRequest>;
4091
3763
 
4092
3764
  /** List of channel IDs that are not valid for this action */
4093
3765
  export type RemoveChannelsResponseInvalidChannelsList = Array<string>;
@@ -4109,9 +3781,7 @@ export const RemoveChannelsResponse = /*@__PURE__*/ S.suspend(() =>
4109
3781
  error: S.optional(S.String),
4110
3782
  invalid_channels: S.optional(RemoveChannelsResponseInvalidChannelsList),
4111
3783
  }),
4112
- ).annotate({
4113
- identifier: "RemoveChannelsResponse",
4114
- }) as any as S.Schema<RemoveChannelsResponse>;
3784
+ ).annotate({ identifier: "RemoveChannelsResponse" }) as any as S.Schema<RemoveChannelsResponse>;
4115
3785
 
4116
3786
  export interface RemoveCustomRetentionRequest {
4117
3787
  /** The conversation to set the retention policy for. */
@@ -4120,13 +3790,7 @@ export interface RemoveCustomRetentionRequest {
4120
3790
  export const RemoveCustomRetentionRequest = /*@__PURE__*/ S.suspend(() =>
4121
3791
  S.Struct({
4122
3792
  channel_id: S.String,
4123
- }).pipe(
4124
- T.Http({
4125
- method: "POST",
4126
- uri: "/admin.conversations.removeCustomRetention",
4127
- code: 200,
4128
- }),
4129
- ),
3793
+ }).pipe(T.Http({ method: "POST", uri: "/admin.conversations.removeCustomRetention", code: 200 })),
4130
3794
  ).annotate({
4131
3795
  identifier: "RemoveCustomRetentionRequest",
4132
3796
  }) as any as S.Schema<RemoveCustomRetentionRequest>;
@@ -4151,9 +3815,7 @@ export const RemoveEmojiRequest = /*@__PURE__*/ S.suspend(() =>
4151
3815
  S.Struct({
4152
3816
  name: S.String.pipe(T.Query()),
4153
3817
  }).pipe(T.Http({ method: "GET", uri: "/admin.emoji.remove", code: 200 })),
4154
- ).annotate({
4155
- identifier: "RemoveEmojiRequest",
4156
- }) as any as S.Schema<RemoveEmojiRequest>;
3818
+ ).annotate({ identifier: "RemoveEmojiRequest" }) as any as S.Schema<RemoveEmojiRequest>;
4157
3819
 
4158
3820
  export interface RemoveEmojiResponse {
4159
3821
  /** Always `true` (a failed call raises a typed error instead). */
@@ -4163,9 +3825,7 @@ export const RemoveEmojiResponse = /*@__PURE__*/ S.suspend(() =>
4163
3825
  S.Struct({
4164
3826
  ok: S.Boolean,
4165
3827
  }),
4166
- ).annotate({
4167
- identifier: "RemoveEmojiResponse",
4168
- }) as any as S.Schema<RemoveEmojiResponse>;
3828
+ ).annotate({ identifier: "RemoveEmojiResponse" }) as any as S.Schema<RemoveEmojiResponse>;
4169
3829
 
4170
3830
  /** Encoded IDs of the entities you'd like to remove from the policy. */
4171
3831
  export type RemoveEntitiesRequestEntityIdsList = Array<string>;
@@ -4186,16 +3846,8 @@ export const RemoveEntitiesRequest = /*@__PURE__*/ S.suspend(() =>
4186
3846
  policy_name: S.String,
4187
3847
  entity_type: S.Unknown,
4188
3848
  entity_ids: RemoveEntitiesRequestEntityIdsList,
4189
- }).pipe(
4190
- T.Http({
4191
- method: "POST",
4192
- uri: "/admin.auth.policy.removeEntities",
4193
- code: 200,
4194
- }),
4195
- ),
4196
- ).annotate({
4197
- identifier: "RemoveEntitiesRequest",
4198
- }) as any as S.Schema<RemoveEntitiesRequest>;
3849
+ }).pipe(T.Http({ method: "POST", uri: "/admin.auth.policy.removeEntities", code: 200 })),
3850
+ ).annotate({ identifier: "RemoveEntitiesRequest" }) as any as S.Schema<RemoveEntitiesRequest>;
4199
3851
 
4200
3852
  export interface RemoveEntitiesResponse {
4201
3853
  /** Always `true` (a failed call raises a typed error instead). */
@@ -4208,9 +3860,7 @@ export const RemoveEntitiesResponse = /*@__PURE__*/ S.suspend(() =>
4208
3860
  ok: S.Boolean,
4209
3861
  entity_total_count: S.Number,
4210
3862
  }),
4211
- ).annotate({
4212
- identifier: "RemoveEntitiesResponse",
4213
- }) as any as S.Schema<RemoveEntitiesResponse>;
3863
+ ).annotate({ identifier: "RemoveEntitiesResponse" }) as any as S.Schema<RemoveEntitiesResponse>;
4214
3864
 
4215
3865
  export interface RemoveGroupRequest {
4216
3866
  /** The workspace where the channel exists. This argument is required for channels only tied to one workspace, and optional for channels that are shared across an organization. */
@@ -4226,15 +3876,9 @@ export const RemoveGroupRequest = /*@__PURE__*/ S.suspend(() =>
4226
3876
  group_id: S.String.pipe(T.Query()),
4227
3877
  channel_id: S.String.pipe(T.Query()),
4228
3878
  }).pipe(
4229
- T.Http({
4230
- method: "GET",
4231
- uri: "/admin.conversations.restrictAccess.removeGroup",
4232
- code: 200,
4233
- }),
3879
+ T.Http({ method: "GET", uri: "/admin.conversations.restrictAccess.removeGroup", code: 200 }),
4234
3880
  ),
4235
- ).annotate({
4236
- identifier: "RemoveGroupRequest",
4237
- }) as any as S.Schema<RemoveGroupRequest>;
3881
+ ).annotate({ identifier: "RemoveGroupRequest" }) as any as S.Schema<RemoveGroupRequest>;
4238
3882
 
4239
3883
  export interface RemoveGroupResponse {
4240
3884
  ok: boolean;
@@ -4243,9 +3887,36 @@ export const RemoveGroupResponse = /*@__PURE__*/ S.suspend(() =>
4243
3887
  S.Struct({
4244
3888
  ok: S.Boolean,
4245
3889
  }),
4246
- ).annotate({
4247
- identifier: "RemoveGroupResponse",
4248
- }) as any as S.Schema<RemoveGroupResponse>;
3890
+ ).annotate({ identifier: "RemoveGroupResponse" }) as any as S.Schema<RemoveGroupResponse>;
3891
+
3892
+ /** A comma separated list of encoded team (workspace) IDs. Each workspace *MUST* belong to the organization associated with the token. */
3893
+ export type RemoveTeamsRequestTeamIdsList = Array<string>;
3894
+ export const RemoveTeamsRequestTeamIdsList = /*@__PURE__*/ S.Array(
3895
+ S.String,
3896
+ ) as any as S.Schema<RemoveTeamsRequestTeamIdsList>;
3897
+
3898
+ export interface RemoveTeamsRequest {
3899
+ /** An encoded usergroup (IDP Group) ID. */
3900
+ usergroup_id: string;
3901
+ /** A comma separated list of encoded team (workspace) IDs. Each workspace *MUST* belong to the organization associated with the token. */
3902
+ team_ids: RemoveTeamsRequestTeamIdsList;
3903
+ }
3904
+ export const RemoveTeamsRequest = /*@__PURE__*/ S.suspend(() =>
3905
+ S.Struct({
3906
+ usergroup_id: S.String,
3907
+ team_ids: RemoveTeamsRequestTeamIdsList,
3908
+ }).pipe(T.Http({ method: "POST", uri: "/admin.usergroups.removeTeams", code: 200 })),
3909
+ ).annotate({ identifier: "RemoveTeamsRequest" }) as any as S.Schema<RemoveTeamsRequest>;
3910
+
3911
+ export interface RemoveTeamsResponse {
3912
+ /** Always `true` (a failed call raises a typed error instead). */
3913
+ ok: boolean;
3914
+ }
3915
+ export const RemoveTeamsResponse = /*@__PURE__*/ S.suspend(() =>
3916
+ S.Struct({
3917
+ ok: S.Boolean,
3918
+ }),
3919
+ ).annotate({ identifier: "RemoveTeamsResponse" }) as any as S.Schema<RemoveTeamsResponse>;
4249
3920
 
4250
3921
  export interface RemoveUserRequest {
4251
3922
  /** The ID (`T1234`) of the workspace. */
@@ -4258,9 +3929,7 @@ export const RemoveUserRequest = /*@__PURE__*/ S.suspend(() =>
4258
3929
  team_id: S.String,
4259
3930
  user_id: S.String,
4260
3931
  }).pipe(T.Http({ method: "POST", uri: "/admin.users.remove", code: 200 })),
4261
- ).annotate({
4262
- identifier: "RemoveUserRequest",
4263
- }) as any as S.Schema<RemoveUserRequest>;
3932
+ ).annotate({ identifier: "RemoveUserRequest" }) as any as S.Schema<RemoveUserRequest>;
4264
3933
 
4265
3934
  export interface RemoveUserResponse {
4266
3935
  /** Always `true` (a failed call raises a typed error instead). */
@@ -4270,24 +3939,48 @@ export const RemoveUserResponse = /*@__PURE__*/ S.suspend(() =>
4270
3939
  S.Struct({
4271
3940
  ok: S.Boolean,
4272
3941
  }),
4273
- ).annotate({
4274
- identifier: "RemoveUserResponse",
4275
- }) as any as S.Schema<RemoveUserResponse>;
3942
+ ).annotate({ identifier: "RemoveUserResponse" }) as any as S.Schema<RemoveUserResponse>;
3943
+
3944
+ /** The encoded user IDs to remove from the usergroup, provided as a JSON array or a comma-separated string. */
3945
+ export type RemoveUsersRequestUsersList = Array<string>;
3946
+ export const RemoveUsersRequestUsersList = /*@__PURE__*/ S.Array(
3947
+ S.String,
3948
+ ) as any as S.Schema<RemoveUsersRequestUsersList>;
3949
+
3950
+ export interface RemoveUsersRequest {
3951
+ /** ID of the usergroup to remove users from */
3952
+ id: string;
3953
+ /** The encoded user IDs to remove from the usergroup, provided as a JSON array or a comma-separated string. */
3954
+ users: RemoveUsersRequestUsersList;
3955
+ }
3956
+ export const RemoveUsersRequest = /*@__PURE__*/ S.suspend(() =>
3957
+ S.Struct({
3958
+ id: S.String,
3959
+ users: RemoveUsersRequestUsersList,
3960
+ }).pipe(T.Http({ method: "POST", uri: "/admin.usergroups.removeUsers", code: 200 })),
3961
+ ).annotate({ identifier: "RemoveUsersRequest" }) as any as S.Schema<RemoveUsersRequest>;
3962
+
3963
+ export interface RemoveUsersResponse {
3964
+ /** Always `true` (a failed call raises a typed error instead). */
3965
+ ok: boolean;
3966
+ }
3967
+ export const RemoveUsersResponse = /*@__PURE__*/ S.suspend(() =>
3968
+ S.Struct({
3969
+ ok: S.Boolean,
3970
+ }),
3971
+ ).annotate({ identifier: "RemoveUsersResponse" }) as any as S.Schema<RemoveUsersResponse>;
4276
3972
 
4277
3973
  /** Array of workflow IDs to edit; max 50 */
4278
3974
  export type RemoveWorkflowsCollaboratorRequestWorkflowIdsList = Array<string>;
4279
- export const RemoveWorkflowsCollaboratorRequestWorkflowIdsList =
4280
- /*@__PURE__*/ S.Array(
4281
- S.String,
4282
- ) as any as S.Schema<RemoveWorkflowsCollaboratorRequestWorkflowIdsList>;
3975
+ export const RemoveWorkflowsCollaboratorRequestWorkflowIdsList = /*@__PURE__*/ S.Array(
3976
+ S.String,
3977
+ ) as any as S.Schema<RemoveWorkflowsCollaboratorRequestWorkflowIdsList>;
4283
3978
 
4284
3979
  /** Array of collaborators (encoded user IDs) to remove; max 50 */
4285
- export type RemoveWorkflowsCollaboratorRequestCollaboratorIdsList =
4286
- Array<string>;
4287
- export const RemoveWorkflowsCollaboratorRequestCollaboratorIdsList =
4288
- /*@__PURE__*/ S.Array(
4289
- S.String,
4290
- ) as any as S.Schema<RemoveWorkflowsCollaboratorRequestCollaboratorIdsList>;
3980
+ export type RemoveWorkflowsCollaboratorRequestCollaboratorIdsList = Array<string>;
3981
+ export const RemoveWorkflowsCollaboratorRequestCollaboratorIdsList = /*@__PURE__*/ S.Array(
3982
+ S.String,
3983
+ ) as any as S.Schema<RemoveWorkflowsCollaboratorRequestCollaboratorIdsList>;
4291
3984
 
4292
3985
  export interface RemoveWorkflowsCollaboratorRequest {
4293
3986
  /** Array of workflow IDs to edit; max 50 */
@@ -4299,13 +3992,7 @@ export const RemoveWorkflowsCollaboratorRequest = /*@__PURE__*/ S.suspend(() =>
4299
3992
  S.Struct({
4300
3993
  workflow_ids: RemoveWorkflowsCollaboratorRequestWorkflowIdsList,
4301
3994
  collaborator_ids: RemoveWorkflowsCollaboratorRequestCollaboratorIdsList,
4302
- }).pipe(
4303
- T.Http({
4304
- method: "POST",
4305
- uri: "/admin.workflows.collaborators.remove",
4306
- code: 200,
4307
- }),
4308
- ),
3995
+ }).pipe(T.Http({ method: "POST", uri: "/admin.workflows.collaborators.remove", code: 200 })),
4309
3996
  ).annotate({
4310
3997
  identifier: "RemoveWorkflowsCollaboratorRequest",
4311
3998
  }) as any as S.Schema<RemoveWorkflowsCollaboratorRequest>;
@@ -4331,9 +4018,7 @@ export const RenameConversationRequest = /*@__PURE__*/ S.suspend(() =>
4331
4018
  S.Struct({
4332
4019
  channel_id: S.String,
4333
4020
  name: S.String,
4334
- }).pipe(
4335
- T.Http({ method: "POST", uri: "/admin.conversations.rename", code: 200 }),
4336
- ),
4021
+ }).pipe(T.Http({ method: "POST", uri: "/admin.conversations.rename", code: 200 })),
4337
4022
  ).annotate({
4338
4023
  identifier: "RenameConversationRequest",
4339
4024
  }) as any as S.Schema<RenameConversationRequest>;
@@ -4360,9 +4045,7 @@ export const RenameEmojiRequest = /*@__PURE__*/ S.suspend(() =>
4360
4045
  name: S.String.pipe(T.Query()),
4361
4046
  new_name: S.String.pipe(T.Query()),
4362
4047
  }).pipe(T.Http({ method: "GET", uri: "/admin.emoji.rename", code: 200 })),
4363
- ).annotate({
4364
- identifier: "RenameEmojiRequest",
4365
- }) as any as S.Schema<RenameEmojiRequest>;
4048
+ ).annotate({ identifier: "RenameEmojiRequest" }) as any as S.Schema<RenameEmojiRequest>;
4366
4049
 
4367
4050
  export interface RenameEmojiResponse {
4368
4051
  /** Always `true` (a failed call raises a typed error instead). */
@@ -4372,9 +4055,7 @@ export const RenameEmojiResponse = /*@__PURE__*/ S.suspend(() =>
4372
4055
  S.Struct({
4373
4056
  ok: S.Boolean,
4374
4057
  }),
4375
- ).annotate({
4376
- identifier: "RenameEmojiResponse",
4377
- }) as any as S.Schema<RenameEmojiResponse>;
4058
+ ).annotate({ identifier: "RenameEmojiResponse" }) as any as S.Schema<RenameEmojiResponse>;
4378
4059
 
4379
4060
  /** The list of up to 1,000 user IDs to wipe sessions for */
4380
4061
  export type ResetBulkRequestUserIdsList = Array<string>;
@@ -4395,16 +4076,8 @@ export const ResetBulkRequest = /*@__PURE__*/ S.suspend(() =>
4395
4076
  user_ids: ResetBulkRequestUserIdsList,
4396
4077
  mobile_only: S.optional(S.Boolean),
4397
4078
  web_only: S.optional(S.Boolean),
4398
- }).pipe(
4399
- T.Http({
4400
- method: "POST",
4401
- uri: "/admin.users.session.resetBulk",
4402
- code: 200,
4403
- }),
4404
- ),
4405
- ).annotate({
4406
- identifier: "ResetBulkRequest",
4407
- }) as any as S.Schema<ResetBulkRequest>;
4079
+ }).pipe(T.Http({ method: "POST", uri: "/admin.users.session.resetBulk", code: 200 })),
4080
+ ).annotate({ identifier: "ResetBulkRequest" }) as any as S.Schema<ResetBulkRequest>;
4408
4081
 
4409
4082
  export interface ResetBulkResponse {
4410
4083
  /** Always `true` (a failed call raises a typed error instead). */
@@ -4414,9 +4087,7 @@ export const ResetBulkResponse = /*@__PURE__*/ S.suspend(() =>
4414
4087
  S.Struct({
4415
4088
  ok: S.Boolean,
4416
4089
  }),
4417
- ).annotate({
4418
- identifier: "ResetBulkResponse",
4419
- }) as any as S.Schema<ResetBulkResponse>;
4090
+ ).annotate({ identifier: "ResetBulkResponse" }) as any as S.Schema<ResetBulkResponse>;
4420
4091
 
4421
4092
  export interface ResetUsersSessionRequest {
4422
4093
  /** The ID of the user to wipe sessions for */
@@ -4431,12 +4102,8 @@ export const ResetUsersSessionRequest = /*@__PURE__*/ S.suspend(() =>
4431
4102
  user_id: S.String,
4432
4103
  mobile_only: S.optional(S.Boolean),
4433
4104
  web_only: S.optional(S.Boolean),
4434
- }).pipe(
4435
- T.Http({ method: "POST", uri: "/admin.users.session.reset", code: 200 }),
4436
- ),
4437
- ).annotate({
4438
- identifier: "ResetUsersSessionRequest",
4439
- }) as any as S.Schema<ResetUsersSessionRequest>;
4105
+ }).pipe(T.Http({ method: "POST", uri: "/admin.users.session.reset", code: 200 })),
4106
+ ).annotate({ identifier: "ResetUsersSessionRequest" }) as any as S.Schema<ResetUsersSessionRequest>;
4440
4107
 
4441
4108
  export interface ResetUsersSessionResponse {
4442
4109
  /** Always `true` (a failed call raises a typed error instead). */
@@ -4458,17 +4125,15 @@ export const SearchConversationRequestTeamIdsList = /*@__PURE__*/ S.Array(
4458
4125
 
4459
4126
  /** Array of encoded team IDs, signifying the external orgs to search through. */
4460
4127
  export type SearchConversationRequestConnectedTeamIdsList = Array<string>;
4461
- export const SearchConversationRequestConnectedTeamIdsList =
4462
- /*@__PURE__*/ S.Array(
4463
- S.String,
4464
- ) as any as S.Schema<SearchConversationRequestConnectedTeamIdsList>;
4128
+ export const SearchConversationRequestConnectedTeamIdsList = /*@__PURE__*/ S.Array(
4129
+ S.String,
4130
+ ) as any as S.Schema<SearchConversationRequestConnectedTeamIdsList>;
4465
4131
 
4466
4132
  /** The type of channel to include or exclude in the search. For example `private` will search private channels, while `private_exclude` will exclude them. For a full list of types, check the [Types section](#types). */
4467
4133
  export type SearchConversationRequestSearchChannelTypesList = Array<string>;
4468
- export const SearchConversationRequestSearchChannelTypesList =
4469
- /*@__PURE__*/ S.Array(
4470
- S.String,
4471
- ) as any as S.Schema<SearchConversationRequestSearchChannelTypesList>;
4134
+ export const SearchConversationRequestSearchChannelTypesList = /*@__PURE__*/ S.Array(
4135
+ S.String,
4136
+ ) as any as S.Schema<SearchConversationRequestSearchChannelTypesList>;
4472
4137
 
4473
4138
  export interface SearchConversationRequest {
4474
4139
  /** Comma separated string of team IDs, signifying the internal workspaces to search through. */
@@ -4493,30 +4158,23 @@ export interface SearchConversationRequest {
4493
4158
  export const SearchConversationRequest = /*@__PURE__*/ S.suspend(() =>
4494
4159
  S.Struct({
4495
4160
  team_ids: S.optional(SearchConversationRequestTeamIdsList),
4496
- connected_team_ids: S.optional(
4497
- SearchConversationRequestConnectedTeamIdsList,
4498
- ),
4161
+ connected_team_ids: S.optional(SearchConversationRequestConnectedTeamIdsList),
4499
4162
  query: S.optional(S.String),
4500
4163
  limit: S.optional(S.Number),
4501
4164
  cursor: S.optional(S.String),
4502
- search_channel_types: S.optional(
4503
- SearchConversationRequestSearchChannelTypesList,
4504
- ),
4165
+ search_channel_types: S.optional(SearchConversationRequestSearchChannelTypesList),
4505
4166
  sort: S.optional(S.String),
4506
4167
  sort_dir: S.optional(S.String),
4507
4168
  total_count_only: S.optional(S.Boolean),
4508
- }).pipe(
4509
- T.Http({ method: "POST", uri: "/admin.conversations.search", code: 200 }),
4510
- ),
4169
+ }).pipe(T.Http({ method: "POST", uri: "/admin.conversations.search", code: 200 })),
4511
4170
  ).annotate({
4512
4171
  identifier: "SearchConversationRequest",
4513
4172
  }) as any as S.Schema<SearchConversationRequest>;
4514
4173
 
4515
4174
  export type SearchConversationResponseConversationsList = Array<string>;
4516
- export const SearchConversationResponseConversationsList =
4517
- /*@__PURE__*/ S.Array(
4518
- S.String,
4519
- ) as any as S.Schema<SearchConversationResponseConversationsList>;
4175
+ export const SearchConversationResponseConversationsList = /*@__PURE__*/ S.Array(
4176
+ S.String,
4177
+ ) as any as S.Schema<SearchConversationResponseConversationsList>;
4520
4178
 
4521
4179
  /** Pagination metadata. An empty `next_cursor` means the last page. */
4522
4180
  export type SearchConversationResponseResponseMetadata =
@@ -4544,9 +4202,7 @@ export const SearchConversationResponse = /*@__PURE__*/ S.suspend(() =>
4544
4202
  next_cursor: S.String,
4545
4203
  total_count: S.Number,
4546
4204
  error: S.optional(S.String),
4547
- response_metadata: S.optional(
4548
- AnalyticsMessagesActivityResponseResponseMetadata,
4549
- ),
4205
+ response_metadata: S.optional(AnalyticsMessagesActivityResponseResponseMetadata),
4550
4206
  }),
4551
4207
  ).annotate({
4552
4208
  identifier: "SearchConversationResponse",
@@ -4559,11 +4215,7 @@ export const SearchWorkflowRequestCollaboratorIdsList = /*@__PURE__*/ S.Array(
4559
4215
  ) as any as S.Schema<SearchWorkflowRequestCollaboratorIdsList>;
4560
4216
 
4561
4217
  /** Source of workflow creation, either from code or workflow builder */
4562
- export type SearchWorkflowRequestSource =
4563
- | "code"
4564
- | "workflow_builder"
4565
- | "sales_home"
4566
- | "agent";
4218
+ export type SearchWorkflowRequestSource = "code" | "workflow_builder" | "sales_home" | "agent";
4567
4219
  export const SearchWorkflowRequestSource = S.String;
4568
4220
 
4569
4221
  /** The field used to sort the returned workflows */
@@ -4575,10 +4227,7 @@ export type SearchWorkflowRequestSortDir = "asc" | "desc";
4575
4227
  export const SearchWorkflowRequestSortDir = S.String;
4576
4228
 
4577
4229
  /** Filter workflows by their published status */
4578
- export type SearchWorkflowRequestPublishStatus =
4579
- | "all"
4580
- | "published"
4581
- | "unpublished";
4230
+ export type SearchWorkflowRequestPublishStatus = "all" | "published" | "unpublished";
4582
4231
  export const SearchWorkflowRequestPublishStatus = S.String;
4583
4232
 
4584
4233
  /** Only include workflows that use all of the provided step function ids */
@@ -4633,12 +4282,8 @@ export const SearchWorkflowRequest = /*@__PURE__*/ S.suspend(() =>
4633
4282
  trigger_type_id: S.optional(S.String),
4634
4283
  publish_status: S.optional(SearchWorkflowRequestPublishStatus),
4635
4284
  step_function_ids: S.optional(SearchWorkflowRequestStepFunctionIdsList),
4636
- }).pipe(
4637
- T.Http({ method: "POST", uri: "/admin.workflows.search", code: 200 }),
4638
- ),
4639
- ).annotate({
4640
- identifier: "SearchWorkflowRequest",
4641
- }) as any as S.Schema<SearchWorkflowRequest>;
4285
+ }).pipe(T.Http({ method: "POST", uri: "/admin.workflows.search", code: 200 })),
4286
+ ).annotate({ identifier: "SearchWorkflowRequest" }) as any as S.Schema<SearchWorkflowRequest>;
4642
4287
 
4643
4288
  export type SearchWorkflowResponseWorkflowsList = Array<unknown>;
4644
4289
  export const SearchWorkflowResponseWorkflowsList = /*@__PURE__*/ S.Array(
@@ -4664,14 +4309,10 @@ export const SearchWorkflowResponse = /*@__PURE__*/ S.suspend(() =>
4664
4309
  S.Struct({
4665
4310
  ok: S.Boolean,
4666
4311
  workflows: SearchWorkflowResponseWorkflowsList,
4667
- response_metadata: S.optional(
4668
- AnalyticsMessagesActivityResponseResponseMetadata,
4669
- ),
4312
+ response_metadata: S.optional(AnalyticsMessagesActivityResponseResponseMetadata),
4670
4313
  total_found: S.Number,
4671
4314
  }),
4672
- ).annotate({
4673
- identifier: "SearchWorkflowResponse",
4674
- }) as any as S.Schema<SearchWorkflowResponse>;
4315
+ ).annotate({ identifier: "SearchWorkflowResponse" }) as any as S.Schema<SearchWorkflowResponse>;
4675
4316
 
4676
4317
  export interface SetAdminRequest {
4677
4318
  /** The ID of the workspace or organization. */
@@ -4684,9 +4325,7 @@ export const SetAdminRequest = /*@__PURE__*/ S.suspend(() =>
4684
4325
  team_id: S.String,
4685
4326
  user_id: S.String,
4686
4327
  }).pipe(T.Http({ method: "POST", uri: "/admin.users.setAdmin", code: 200 })),
4687
- ).annotate({
4688
- identifier: "SetAdminRequest",
4689
- }) as any as S.Schema<SetAdminRequest>;
4328
+ ).annotate({ identifier: "SetAdminRequest" }) as any as S.Schema<SetAdminRequest>;
4690
4329
 
4691
4330
  export interface SetAdminResponse {
4692
4331
  /** Always `true` (a failed call raises a typed error instead). */
@@ -4696,14 +4335,10 @@ export const SetAdminResponse = /*@__PURE__*/ S.suspend(() =>
4696
4335
  S.Struct({
4697
4336
  ok: S.Boolean,
4698
4337
  }),
4699
- ).annotate({
4700
- identifier: "SetAdminResponse",
4701
- }) as any as S.Schema<SetAdminResponse>;
4338
+ ).annotate({ identifier: "SetAdminResponse" }) as any as S.Schema<SetAdminResponse>;
4702
4339
 
4703
4340
  /** The workflow auth permission. Can be one of `builder_choice` or `end_user_only`. */
4704
- export type SetAppsConfigRequestWorkflowAuthStrategy =
4705
- | "builder_choice"
4706
- | "end_user_only";
4341
+ export type SetAppsConfigRequestWorkflowAuthStrategy = "builder_choice" | "end_user_only";
4707
4342
  export const SetAppsConfigRequestWorkflowAuthStrategy = S.String;
4708
4343
 
4709
4344
  /** Indicates the app-level override for rich link preview. Unsupported for free teams. */
@@ -4716,17 +4351,15 @@ export const SetAppsConfigRequestRichLinkPreviewType = S.String;
4716
4351
 
4717
4352
  /** List of URLs for allowed connector authorization */
4718
4353
  export type SetAppsConfigRequestDomainRestrictionsUrlsList = Array<string>;
4719
- export const SetAppsConfigRequestDomainRestrictionsUrlsList =
4720
- /*@__PURE__*/ S.Array(
4721
- S.String,
4722
- ) as any as S.Schema<SetAppsConfigRequestDomainRestrictionsUrlsList>;
4354
+ export const SetAppsConfigRequestDomainRestrictionsUrlsList = /*@__PURE__*/ S.Array(
4355
+ S.String,
4356
+ ) as any as S.Schema<SetAppsConfigRequestDomainRestrictionsUrlsList>;
4723
4357
 
4724
4358
  /** List of emails for allowed connector authorization */
4725
4359
  export type SetAppsConfigRequestDomainRestrictionsEmailsList = Array<string>;
4726
- export const SetAppsConfigRequestDomainRestrictionsEmailsList =
4727
- /*@__PURE__*/ S.Array(
4728
- S.String,
4729
- ) as any as S.Schema<SetAppsConfigRequestDomainRestrictionsEmailsList>;
4360
+ export const SetAppsConfigRequestDomainRestrictionsEmailsList = /*@__PURE__*/ S.Array(
4361
+ S.String,
4362
+ ) as any as S.Schema<SetAppsConfigRequestDomainRestrictionsEmailsList>;
4730
4363
 
4731
4364
  /** Domain restrictions for the app. Should be an object with two properties: `urls` and `emails`. Each is an array of strings, and each sets the allowed URLs and emails for connector authorization, respectively. */
4732
4365
  export interface SetAppsConfigRequestDomainRestrictions {
@@ -4735,12 +4368,11 @@ export interface SetAppsConfigRequestDomainRestrictions {
4735
4368
  /** List of emails for allowed connector authorization */
4736
4369
  emails?: SetAppsConfigRequestDomainRestrictionsEmailsList;
4737
4370
  }
4738
- export const SetAppsConfigRequestDomainRestrictions = /*@__PURE__*/ S.suspend(
4739
- () =>
4740
- S.Struct({
4741
- urls: S.optional(SetAppsConfigRequestDomainRestrictionsUrlsList),
4742
- emails: S.optional(SetAppsConfigRequestDomainRestrictionsEmailsList),
4743
- }),
4371
+ export const SetAppsConfigRequestDomainRestrictions = /*@__PURE__*/ S.suspend(() =>
4372
+ S.Struct({
4373
+ urls: S.optional(SetAppsConfigRequestDomainRestrictionsUrlsList),
4374
+ emails: S.optional(SetAppsConfigRequestDomainRestrictionsEmailsList),
4375
+ }),
4744
4376
  ).annotate({
4745
4377
  identifier: "SetAppsConfigRequestDomainRestrictions",
4746
4378
  }) as any as S.Schema<SetAppsConfigRequestDomainRestrictions>;
@@ -4749,28 +4381,20 @@ export interface SetAppsConfigRequest {
4749
4381
  /** The encoded app ID to set the app config for */
4750
4382
  app_id: string;
4751
4383
  /** The workflow auth permission. Can be one of `builder_choice` or `end_user_only`. */
4752
- workflow_auth_strategy?:
4753
- | SetAppsConfigRequestWorkflowAuthStrategy
4754
- | (string & {});
4384
+ workflow_auth_strategy?: SetAppsConfigRequestWorkflowAuthStrategy | (string & {});
4755
4385
  /** Indicates the app-level override for rich link preview. Unsupported for free teams. */
4756
- rich_link_preview_type?:
4757
- | SetAppsConfigRequestRichLinkPreviewType
4758
- | (string & {});
4386
+ rich_link_preview_type?: SetAppsConfigRequestRichLinkPreviewType | (string & {});
4759
4387
  /** Domain restrictions for the app. Should be an object with two properties: `urls` and `emails`. Each is an array of strings, and each sets the allowed URLs and emails for connector authorization, respectively. */
4760
4388
  domain_restrictions?: SetAppsConfigRequestDomainRestrictions;
4761
4389
  }
4762
4390
  export const SetAppsConfigRequest = /*@__PURE__*/ S.suspend(() =>
4763
4391
  S.Struct({
4764
4392
  app_id: S.String,
4765
- workflow_auth_strategy: S.optional(
4766
- SetAppsConfigRequestWorkflowAuthStrategy,
4767
- ),
4393
+ workflow_auth_strategy: S.optional(SetAppsConfigRequestWorkflowAuthStrategy),
4768
4394
  rich_link_preview_type: S.optional(SetAppsConfigRequestRichLinkPreviewType),
4769
4395
  domain_restrictions: S.optional(SetAppsConfigRequestDomainRestrictions),
4770
4396
  }).pipe(T.Http({ method: "POST", uri: "/admin.apps.config.set", code: 200 })),
4771
- ).annotate({
4772
- identifier: "SetAppsConfigRequest",
4773
- }) as any as S.Schema<SetAppsConfigRequest>;
4397
+ ).annotate({ identifier: "SetAppsConfigRequest" }) as any as S.Schema<SetAppsConfigRequest>;
4774
4398
 
4775
4399
  export interface SetAppsConfigResponse {
4776
4400
  /** Always `true` (a failed call raises a typed error instead). */
@@ -4780,9 +4404,7 @@ export const SetAppsConfigResponse = /*@__PURE__*/ S.suspend(() =>
4780
4404
  S.Struct({
4781
4405
  ok: S.Boolean,
4782
4406
  }),
4783
- ).annotate({
4784
- identifier: "SetAppsConfigResponse",
4785
- }) as any as S.Schema<SetAppsConfigResponse>;
4407
+ ).annotate({ identifier: "SetAppsConfigResponse" }) as any as S.Schema<SetAppsConfigResponse>;
4786
4408
 
4787
4409
  /** The type of permission that defines who can use this MCP server */
4788
4410
  export type SetAppsMcpServersPermissionsRequestPermissionType =
@@ -4794,17 +4416,15 @@ export const SetAppsMcpServersPermissionsRequestPermissionType = S.String;
4794
4416
 
4795
4417
  /** List of user IDs to set for named_entities or named_entities_exclude */
4796
4418
  export type SetAppsMcpServersPermissionsRequestUserIdsList = Array<string>;
4797
- export const SetAppsMcpServersPermissionsRequestUserIdsList =
4798
- /*@__PURE__*/ S.Array(
4799
- S.String,
4800
- ) as any as S.Schema<SetAppsMcpServersPermissionsRequestUserIdsList>;
4419
+ export const SetAppsMcpServersPermissionsRequestUserIdsList = /*@__PURE__*/ S.Array(
4420
+ S.String,
4421
+ ) as any as S.Schema<SetAppsMcpServersPermissionsRequestUserIdsList>;
4801
4422
 
4802
4423
  /** List of encoded usergroup IDs */
4803
4424
  export type SetAppsMcpServersPermissionsRequestUsergroupIdsList = Array<string>;
4804
- export const SetAppsMcpServersPermissionsRequestUsergroupIdsList =
4805
- /*@__PURE__*/ S.Array(
4806
- S.String,
4807
- ) as any as S.Schema<SetAppsMcpServersPermissionsRequestUsergroupIdsList>;
4425
+ export const SetAppsMcpServersPermissionsRequestUsergroupIdsList = /*@__PURE__*/ S.Array(
4426
+ S.String,
4427
+ ) as any as S.Schema<SetAppsMcpServersPermissionsRequestUsergroupIdsList>;
4808
4428
 
4809
4429
  export interface SetAppsMcpServersPermissionsRequest {
4810
4430
  /** Encoded ID of the app */
@@ -4812,9 +4432,7 @@ export interface SetAppsMcpServersPermissionsRequest {
4812
4432
  /** Encoded ID of the MCP server */
4813
4433
  server_id: string;
4814
4434
  /** The type of permission that defines who can use this MCP server */
4815
- permission_type:
4816
- | SetAppsMcpServersPermissionsRequestPermissionType
4817
- | (string & {});
4435
+ permission_type: SetAppsMcpServersPermissionsRequestPermissionType | (string & {});
4818
4436
  /** List of user IDs to set for named_entities or named_entities_exclude */
4819
4437
  user_ids?: SetAppsMcpServersPermissionsRequestUserIdsList;
4820
4438
  /** List of encoded usergroup IDs */
@@ -4826,16 +4444,8 @@ export const SetAppsMcpServersPermissionsRequest = /*@__PURE__*/ S.suspend(() =>
4826
4444
  server_id: S.String,
4827
4445
  permission_type: SetAppsMcpServersPermissionsRequestPermissionType,
4828
4446
  user_ids: S.optional(SetAppsMcpServersPermissionsRequestUserIdsList),
4829
- usergroup_ids: S.optional(
4830
- SetAppsMcpServersPermissionsRequestUsergroupIdsList,
4831
- ),
4832
- }).pipe(
4833
- T.Http({
4834
- method: "POST",
4835
- uri: "/admin.apps.mcp.servers.permissions.set",
4836
- code: 200,
4837
- }),
4838
- ),
4447
+ usergroup_ids: S.optional(SetAppsMcpServersPermissionsRequestUsergroupIdsList),
4448
+ }).pipe(T.Http({ method: "POST", uri: "/admin.apps.mcp.servers.permissions.set", code: 200 })),
4839
4449
  ).annotate({
4840
4450
  identifier: "SetAppsMcpServersPermissionsRequest",
4841
4451
  }) as any as S.Schema<SetAppsMcpServersPermissionsRequest>;
@@ -4844,20 +4454,16 @@ export interface SetAppsMcpServersPermissionsResponse {
4844
4454
  /** Always `true` (a failed call raises a typed error instead). */
4845
4455
  ok: boolean;
4846
4456
  }
4847
- export const SetAppsMcpServersPermissionsResponse = /*@__PURE__*/ S.suspend(
4848
- () =>
4849
- S.Struct({
4850
- ok: S.Boolean,
4851
- }),
4457
+ export const SetAppsMcpServersPermissionsResponse = /*@__PURE__*/ S.suspend(() =>
4458
+ S.Struct({
4459
+ ok: S.Boolean,
4460
+ }),
4852
4461
  ).annotate({
4853
4462
  identifier: "SetAppsMcpServersPermissionsResponse",
4854
4463
  }) as any as S.Schema<SetAppsMcpServersPermissionsResponse>;
4855
4464
 
4856
4465
  /** The type of permission that defines who can access the app */
4857
- export type SetAppsPermissionsRequestPermissionType =
4858
- | "everyone"
4859
- | "named_entities"
4860
- | "no_one";
4466
+ export type SetAppsPermissionsRequestPermissionType = "everyone" | "named_entities" | "no_one";
4861
4467
  export const SetAppsPermissionsRequestPermissionType = S.String;
4862
4468
 
4863
4469
  /** List of user IDs to allow for named_entities visibility */
@@ -4872,6 +4478,19 @@ export const SetAppsPermissionsRequestUsergroupIdsList = /*@__PURE__*/ S.Array(
4872
4478
  S.String,
4873
4479
  ) as any as S.Schema<SetAppsPermissionsRequestUsergroupIdsList>;
4874
4480
 
4481
+ /** The mode that defines where the app can be used in channels */
4482
+ export type SetAppsPermissionsRequestChannelRestrictionMode =
4483
+ | "all_channels"
4484
+ | "specific_channels"
4485
+ | "all_channels_except";
4486
+ export const SetAppsPermissionsRequestChannelRestrictionMode = S.String;
4487
+
4488
+ /** List of encoded channel IDs for channel restrictions. Semantics depend on channel_restriction_mode: allowlist for specific_channels, exclusion list for all_channels_except */
4489
+ export type SetAppsPermissionsRequestChannelIdsList = Array<string>;
4490
+ export const SetAppsPermissionsRequestChannelIdsList = /*@__PURE__*/ S.Array(
4491
+ S.String,
4492
+ ) as any as S.Schema<SetAppsPermissionsRequestChannelIdsList>;
4493
+
4875
4494
  export interface SetAppsPermissionsRequest {
4876
4495
  /** Encoded ID of the app */
4877
4496
  app_id: string;
@@ -4881,6 +4500,10 @@ export interface SetAppsPermissionsRequest {
4881
4500
  user_ids?: SetAppsPermissionsRequestUserIdsList;
4882
4501
  /** List of encoded usergroup IDs */
4883
4502
  usergroup_ids?: SetAppsPermissionsRequestUsergroupIdsList;
4503
+ /** The mode that defines where the app can be used in channels */
4504
+ channel_restriction_mode?: SetAppsPermissionsRequestChannelRestrictionMode | (string & {});
4505
+ /** List of encoded channel IDs for channel restrictions. Semantics depend on channel_restriction_mode: allowlist for specific_channels, exclusion list for all_channels_except */
4506
+ channel_ids?: SetAppsPermissionsRequestChannelIdsList;
4884
4507
  }
4885
4508
  export const SetAppsPermissionsRequest = /*@__PURE__*/ S.suspend(() =>
4886
4509
  S.Struct({
@@ -4888,9 +4511,9 @@ export const SetAppsPermissionsRequest = /*@__PURE__*/ S.suspend(() =>
4888
4511
  permission_type: SetAppsPermissionsRequestPermissionType,
4889
4512
  user_ids: S.optional(SetAppsPermissionsRequestUserIdsList),
4890
4513
  usergroup_ids: S.optional(SetAppsPermissionsRequestUsergroupIdsList),
4891
- }).pipe(
4892
- T.Http({ method: "POST", uri: "/admin.apps.permissions.set", code: 200 }),
4893
- ),
4514
+ channel_restriction_mode: S.optional(SetAppsPermissionsRequestChannelRestrictionMode),
4515
+ channel_ids: S.optional(SetAppsPermissionsRequestChannelIdsList),
4516
+ }).pipe(T.Http({ method: "POST", uri: "/admin.apps.permissions.set", code: 200 })),
4894
4517
  ).annotate({
4895
4518
  identifier: "SetAppsPermissionsRequest",
4896
4519
  }) as any as S.Schema<SetAppsPermissionsRequest>;
@@ -4917,13 +4540,7 @@ export const SetConversationPrefsRequest = /*@__PURE__*/ S.suspend(() =>
4917
4540
  S.Struct({
4918
4541
  channel_id: S.String,
4919
4542
  prefs: S.String,
4920
- }).pipe(
4921
- T.Http({
4922
- method: "POST",
4923
- uri: "/admin.conversations.setConversationPrefs",
4924
- code: 200,
4925
- }),
4926
- ),
4543
+ }).pipe(T.Http({ method: "POST", uri: "/admin.conversations.setConversationPrefs", code: 200 })),
4927
4544
  ).annotate({
4928
4545
  identifier: "SetConversationPrefsRequest",
4929
4546
  }) as any as S.Schema<SetConversationPrefsRequest>;
@@ -4949,13 +4566,7 @@ export const SetCustomRetentionRequest = /*@__PURE__*/ S.suspend(() =>
4949
4566
  S.Struct({
4950
4567
  channel_id: S.String,
4951
4568
  duration_days: S.Number,
4952
- }).pipe(
4953
- T.Http({
4954
- method: "POST",
4955
- uri: "/admin.conversations.setCustomRetention",
4956
- code: 200,
4957
- }),
4958
- ),
4569
+ }).pipe(T.Http({ method: "POST", uri: "/admin.conversations.setCustomRetention", code: 200 })),
4959
4570
  ).annotate({
4960
4571
  identifier: "SetCustomRetentionRequest",
4961
4572
  }) as any as S.Schema<SetCustomRetentionRequest>;
@@ -4987,13 +4598,7 @@ export const SetDefaultChannelsRequest = /*@__PURE__*/ S.suspend(() =>
4987
4598
  S.Struct({
4988
4599
  team_id: S.String.pipe(T.Query()),
4989
4600
  channel_ids: SetDefaultChannelsRequestChannelIdsList.pipe(T.Query()),
4990
- }).pipe(
4991
- T.Http({
4992
- method: "GET",
4993
- uri: "/admin.teams.settings.setDefaultChannels",
4994
- code: 200,
4995
- }),
4996
- ),
4601
+ }).pipe(T.Http({ method: "GET", uri: "/admin.teams.settings.setDefaultChannels", code: 200 })),
4997
4602
  ).annotate({
4998
4603
  identifier: "SetDefaultChannelsRequest",
4999
4604
  }) as any as S.Schema<SetDefaultChannelsRequest>;
@@ -5020,16 +4625,8 @@ export const SetDescriptionRequest = /*@__PURE__*/ S.suspend(() =>
5020
4625
  S.Struct({
5021
4626
  team_id: S.String,
5022
4627
  description: S.String,
5023
- }).pipe(
5024
- T.Http({
5025
- method: "POST",
5026
- uri: "/admin.teams.settings.setDescription",
5027
- code: 200,
5028
- }),
5029
- ),
5030
- ).annotate({
5031
- identifier: "SetDescriptionRequest",
5032
- }) as any as S.Schema<SetDescriptionRequest>;
4628
+ }).pipe(T.Http({ method: "POST", uri: "/admin.teams.settings.setDescription", code: 200 })),
4629
+ ).annotate({ identifier: "SetDescriptionRequest" }) as any as S.Schema<SetDescriptionRequest>;
5033
4630
 
5034
4631
  export interface SetDescriptionResponse {
5035
4632
  ok: boolean;
@@ -5038,9 +4635,7 @@ export const SetDescriptionResponse = /*@__PURE__*/ S.suspend(() =>
5038
4635
  S.Struct({
5039
4636
  ok: S.Boolean,
5040
4637
  }),
5041
- ).annotate({
5042
- identifier: "SetDescriptionResponse",
5043
- }) as any as S.Schema<SetDescriptionResponse>;
4638
+ ).annotate({ identifier: "SetDescriptionResponse" }) as any as S.Schema<SetDescriptionResponse>;
5044
4639
 
5045
4640
  export interface SetDiscoverabilityRequest {
5046
4641
  /** The ID of the workspace to set discoverability on. */
@@ -5052,13 +4647,7 @@ export const SetDiscoverabilityRequest = /*@__PURE__*/ S.suspend(() =>
5052
4647
  S.Struct({
5053
4648
  team_id: S.String,
5054
4649
  discoverability: S.String,
5055
- }).pipe(
5056
- T.Http({
5057
- method: "POST",
5058
- uri: "/admin.teams.settings.setDiscoverability",
5059
- code: 200,
5060
- }),
5061
- ),
4650
+ }).pipe(T.Http({ method: "POST", uri: "/admin.teams.settings.setDiscoverability", code: 200 })),
5062
4651
  ).annotate({
5063
4652
  identifier: "SetDiscoverabilityRequest",
5064
4653
  }) as any as S.Schema<SetDiscoverabilityRequest>;
@@ -5087,12 +4676,8 @@ export const SetExpirationRequest = /*@__PURE__*/ S.suspend(() =>
5087
4676
  team_id: S.optional(S.String),
5088
4677
  user_id: S.String,
5089
4678
  expiration_ts: S.Number,
5090
- }).pipe(
5091
- T.Http({ method: "POST", uri: "/admin.users.setExpiration", code: 200 }),
5092
- ),
5093
- ).annotate({
5094
- identifier: "SetExpirationRequest",
5095
- }) as any as S.Schema<SetExpirationRequest>;
4679
+ }).pipe(T.Http({ method: "POST", uri: "/admin.users.setExpiration", code: 200 })),
4680
+ ).annotate({ identifier: "SetExpirationRequest" }) as any as S.Schema<SetExpirationRequest>;
5096
4681
 
5097
4682
  export interface SetExpirationResponse {
5098
4683
  ok: boolean;
@@ -5101,9 +4686,7 @@ export const SetExpirationResponse = /*@__PURE__*/ S.suspend(() =>
5101
4686
  S.Struct({
5102
4687
  ok: S.Boolean,
5103
4688
  }),
5104
- ).annotate({
5105
- identifier: "SetExpirationResponse",
5106
- }) as any as S.Schema<SetExpirationResponse>;
4689
+ ).annotate({ identifier: "SetExpirationResponse" }) as any as S.Schema<SetExpirationResponse>;
5107
4690
 
5108
4691
  /** The function visibility. */
5109
4692
  export type SetFunctionsPermissionsRequestVisibility =
@@ -5114,9 +4697,9 @@ export type SetFunctionsPermissionsRequestVisibility =
5114
4697
  export const SetFunctionsPermissionsRequestVisibility = S.String;
5115
4698
 
5116
4699
  /** List of user IDs to allow for `named_entities` visibility. */
5117
- export type SetFunctionsPermissionsRequestUserIdsList = Array<unknown>;
4700
+ export type SetFunctionsPermissionsRequestUserIdsList = Array<string>;
5118
4701
  export const SetFunctionsPermissionsRequestUserIdsList = /*@__PURE__*/ S.Array(
5119
- S.Unknown,
4702
+ S.String,
5120
4703
  ) as any as S.Schema<SetFunctionsPermissionsRequestUserIdsList>;
5121
4704
 
5122
4705
  export type SetFunctionsPermissionsRequestPermissionsItemVisibility =
@@ -5127,49 +4710,38 @@ export const SetFunctionsPermissionsRequestPermissionsItemVisibility = S.String;
5127
4710
 
5128
4711
  export type SetFunctionsPermissionsRequestPermissionsItemPermissionType =
5129
4712
  | "slack_function"
5130
- | "private_channel_access";
5131
- export const SetFunctionsPermissionsRequestPermissionsItemPermissionType =
5132
- S.String;
4713
+ | "private_channel_access"
4714
+ | "connector_resource";
4715
+ export const SetFunctionsPermissionsRequestPermissionsItemPermissionType = S.String;
5133
4716
 
5134
4717
  /** List of user IDs to allow for `named_entities` visibility. */
5135
- export type SetFunctionsPermissionsRequestPermissionsItemUserIdsList =
5136
- Array<unknown>;
5137
- export const SetFunctionsPermissionsRequestPermissionsItemUserIdsList =
5138
- /*@__PURE__*/ S.Array(
5139
- S.Unknown,
5140
- ) as any as S.Schema<SetFunctionsPermissionsRequestPermissionsItemUserIdsList>;
4718
+ export type SetFunctionsPermissionsRequestPermissionsItemUserIdsList = Array<string>;
4719
+ export const SetFunctionsPermissionsRequestPermissionsItemUserIdsList = /*@__PURE__*/ S.Array(
4720
+ S.String,
4721
+ ) as any as S.Schema<SetFunctionsPermissionsRequestPermissionsItemUserIdsList>;
5141
4722
 
5142
4723
  export interface SetFunctionsPermissionsRequestPermissionsItem {
5143
- visibility:
5144
- | SetFunctionsPermissionsRequestPermissionsItemVisibility
5145
- | (string & {});
5146
- permission_type:
5147
- | SetFunctionsPermissionsRequestPermissionsItemPermissionType
5148
- | (string & {});
4724
+ visibility: SetFunctionsPermissionsRequestPermissionsItemVisibility | (string & {});
4725
+ permission_type: SetFunctionsPermissionsRequestPermissionsItemPermissionType | (string & {});
5149
4726
  /** List of user IDs to allow for `named_entities` visibility. */
5150
4727
  user_ids?: SetFunctionsPermissionsRequestPermissionsItemUserIdsList;
5151
4728
  }
5152
- export const SetFunctionsPermissionsRequestPermissionsItem =
5153
- /*@__PURE__*/ S.suspend(() =>
5154
- S.Struct({
5155
- visibility: SetFunctionsPermissionsRequestPermissionsItemVisibility,
5156
- permission_type:
5157
- SetFunctionsPermissionsRequestPermissionsItemPermissionType,
5158
- user_ids: S.optional(
5159
- SetFunctionsPermissionsRequestPermissionsItemUserIdsList,
5160
- ),
5161
- }),
5162
- ).annotate({
5163
- identifier: "SetFunctionsPermissionsRequestPermissionsItem",
5164
- }) as any as S.Schema<SetFunctionsPermissionsRequestPermissionsItem>;
4729
+ export const SetFunctionsPermissionsRequestPermissionsItem = /*@__PURE__*/ S.suspend(() =>
4730
+ S.Struct({
4731
+ visibility: SetFunctionsPermissionsRequestPermissionsItemVisibility,
4732
+ permission_type: SetFunctionsPermissionsRequestPermissionsItemPermissionType,
4733
+ user_ids: S.optional(SetFunctionsPermissionsRequestPermissionsItemUserIdsList),
4734
+ }),
4735
+ ).annotate({
4736
+ identifier: "SetFunctionsPermissionsRequestPermissionsItem",
4737
+ }) as any as S.Schema<SetFunctionsPermissionsRequestPermissionsItem>;
5165
4738
 
5166
4739
  /** Array of permissions for the function. */
5167
4740
  export type SetFunctionsPermissionsRequestPermissionsList =
5168
4741
  Array<SetFunctionsPermissionsRequestPermissionsItem>;
5169
- export const SetFunctionsPermissionsRequestPermissionsList =
5170
- /*@__PURE__*/ S.Array(
5171
- SetFunctionsPermissionsRequestPermissionsItem,
5172
- ) as any as S.Schema<SetFunctionsPermissionsRequestPermissionsList>;
4742
+ export const SetFunctionsPermissionsRequestPermissionsList = /*@__PURE__*/ S.Array(
4743
+ SetFunctionsPermissionsRequestPermissionsItem,
4744
+ ) as any as S.Schema<SetFunctionsPermissionsRequestPermissionsList>;
5173
4745
 
5174
4746
  export interface SetFunctionsPermissionsRequest {
5175
4747
  /** The function ID to set permissions for. */
@@ -5187,13 +4759,7 @@ export const SetFunctionsPermissionsRequest = /*@__PURE__*/ S.suspend(() =>
5187
4759
  visibility: S.optional(SetFunctionsPermissionsRequestVisibility),
5188
4760
  user_ids: S.optional(SetFunctionsPermissionsRequestUserIdsList),
5189
4761
  permissions: S.optional(SetFunctionsPermissionsRequestPermissionsList),
5190
- }).pipe(
5191
- T.Http({
5192
- method: "POST",
5193
- uri: "/admin.functions.permissions.set",
5194
- code: 200,
5195
- }),
5196
- ),
4762
+ }).pipe(T.Http({ method: "POST", uri: "/admin.functions.permissions.set", code: 200 })),
5197
4763
  ).annotate({
5198
4764
  identifier: "SetFunctionsPermissionsRequest",
5199
4765
  }) as any as S.Schema<SetFunctionsPermissionsRequest>;
@@ -5220,9 +4786,7 @@ export const SetIconRequest = /*@__PURE__*/ S.suspend(() =>
5220
4786
  S.Struct({
5221
4787
  image_url: S.String.pipe(T.Query()),
5222
4788
  team_id: S.String.pipe(T.Query()),
5223
- }).pipe(
5224
- T.Http({ method: "GET", uri: "/admin.teams.settings.setIcon", code: 200 }),
5225
- ),
4789
+ }).pipe(T.Http({ method: "GET", uri: "/admin.teams.settings.setIcon", code: 200 })),
5226
4790
  ).annotate({ identifier: "SetIconRequest" }) as any as S.Schema<SetIconRequest>;
5227
4791
 
5228
4792
  export interface SetIconResponse {
@@ -5233,9 +4797,7 @@ export const SetIconResponse = /*@__PURE__*/ S.suspend(() =>
5233
4797
  S.Struct({
5234
4798
  ok: S.Boolean,
5235
4799
  }),
5236
- ).annotate({
5237
- identifier: "SetIconResponse",
5238
- }) as any as S.Schema<SetIconResponse>;
4800
+ ).annotate({ identifier: "SetIconResponse" }) as any as S.Schema<SetIconResponse>;
5239
4801
 
5240
4802
  export interface SetNameRequest {
5241
4803
  /** ID for the workspace to set the name for. */
@@ -5247,9 +4809,7 @@ export const SetNameRequest = /*@__PURE__*/ S.suspend(() =>
5247
4809
  S.Struct({
5248
4810
  team_id: S.String,
5249
4811
  name: S.String,
5250
- }).pipe(
5251
- T.Http({ method: "POST", uri: "/admin.teams.settings.setName", code: 200 }),
5252
- ),
4812
+ }).pipe(T.Http({ method: "POST", uri: "/admin.teams.settings.setName", code: 200 })),
5253
4813
  ).annotate({ identifier: "SetNameRequest" }) as any as S.Schema<SetNameRequest>;
5254
4814
 
5255
4815
  export interface SetNameResponse {
@@ -5259,9 +4819,7 @@ export const SetNameResponse = /*@__PURE__*/ S.suspend(() =>
5259
4819
  S.Struct({
5260
4820
  ok: S.Boolean,
5261
4821
  }),
5262
- ).annotate({
5263
- identifier: "SetNameResponse",
5264
- }) as any as S.Schema<SetNameResponse>;
4822
+ ).annotate({ identifier: "SetNameResponse" }) as any as S.Schema<SetNameResponse>;
5265
4823
 
5266
4824
  export interface SetOwnerRequest {
5267
4825
  /** The ID of the workspace or organization. */
@@ -5274,9 +4832,7 @@ export const SetOwnerRequest = /*@__PURE__*/ S.suspend(() =>
5274
4832
  team_id: S.String,
5275
4833
  user_id: S.String,
5276
4834
  }).pipe(T.Http({ method: "POST", uri: "/admin.users.setOwner", code: 200 })),
5277
- ).annotate({
5278
- identifier: "SetOwnerRequest",
5279
- }) as any as S.Schema<SetOwnerRequest>;
4835
+ ).annotate({ identifier: "SetOwnerRequest" }) as any as S.Schema<SetOwnerRequest>;
5280
4836
 
5281
4837
  export interface SetOwnerResponse {
5282
4838
  /** Always `true` (a failed call raises a typed error instead). */
@@ -5286,9 +4842,7 @@ export const SetOwnerResponse = /*@__PURE__*/ S.suspend(() =>
5286
4842
  S.Struct({
5287
4843
  ok: S.Boolean,
5288
4844
  }),
5289
- ).annotate({
5290
- identifier: "SetOwnerResponse",
5291
- }) as any as S.Schema<SetOwnerResponse>;
4845
+ ).annotate({ identifier: "SetOwnerResponse" }) as any as S.Schema<SetOwnerResponse>;
5292
4846
 
5293
4847
  export interface SetRegularRequest {
5294
4848
  /** The ID of the workspace or organization. */
@@ -5300,12 +4854,8 @@ export const SetRegularRequest = /*@__PURE__*/ S.suspend(() =>
5300
4854
  S.Struct({
5301
4855
  team_id: S.String,
5302
4856
  user_id: S.String,
5303
- }).pipe(
5304
- T.Http({ method: "POST", uri: "/admin.users.setRegular", code: 200 }),
5305
- ),
5306
- ).annotate({
5307
- identifier: "SetRegularRequest",
5308
- }) as any as S.Schema<SetRegularRequest>;
4857
+ }).pipe(T.Http({ method: "POST", uri: "/admin.users.setRegular", code: 200 })),
4858
+ ).annotate({ identifier: "SetRegularRequest" }) as any as S.Schema<SetRegularRequest>;
5309
4859
 
5310
4860
  export interface SetRegularResponse {
5311
4861
  /** Always `true` (a failed call raises a typed error instead). */
@@ -5315,9 +4865,7 @@ export const SetRegularResponse = /*@__PURE__*/ S.suspend(() =>
5315
4865
  S.Struct({
5316
4866
  ok: S.Boolean,
5317
4867
  }),
5318
- ).annotate({
5319
- identifier: "SetRegularResponse",
5320
- }) as any as S.Schema<SetRegularResponse>;
4868
+ ).annotate({ identifier: "SetRegularResponse" }) as any as S.Schema<SetRegularResponse>;
5321
4869
 
5322
4870
  /** The list of up to 1,000 user IDs to apply the session settings for */
5323
4871
  export type SetSettingsRequestUserIdsList = Array<string>;
@@ -5338,16 +4886,8 @@ export const SetSettingsRequest = /*@__PURE__*/ S.suspend(() =>
5338
4886
  user_ids: SetSettingsRequestUserIdsList,
5339
4887
  duration: S.optional(S.Number),
5340
4888
  desktop_app_browser_quit: S.optional(S.Boolean),
5341
- }).pipe(
5342
- T.Http({
5343
- method: "POST",
5344
- uri: "/admin.users.session.setSettings",
5345
- code: 200,
5346
- }),
5347
- ),
5348
- ).annotate({
5349
- identifier: "SetSettingsRequest",
5350
- }) as any as S.Schema<SetSettingsRequest>;
4889
+ }).pipe(T.Http({ method: "POST", uri: "/admin.users.session.setSettings", code: 200 })),
4890
+ ).annotate({ identifier: "SetSettingsRequest" }) as any as S.Schema<SetSettingsRequest>;
5351
4891
 
5352
4892
  export interface SetSettingsResponse {
5353
4893
  ok: boolean;
@@ -5356,9 +4896,7 @@ export const SetSettingsResponse = /*@__PURE__*/ S.suspend(() =>
5356
4896
  S.Struct({
5357
4897
  ok: S.Boolean,
5358
4898
  }),
5359
- ).annotate({
5360
- identifier: "SetSettingsResponse",
5361
- }) as any as S.Schema<SetSettingsResponse>;
4899
+ ).annotate({ identifier: "SetSettingsResponse" }) as any as S.Schema<SetSettingsResponse>;
5362
4900
 
5363
4901
  /** A comma-separated list of workspaces to which the channel should be shared. Not required if the channel is being shared org-wide. */
5364
4902
  export type SetTeamsRequestTargetTeamIdsList = Array<string>;
@@ -5382,12 +4920,8 @@ export const SetTeamsRequest = /*@__PURE__*/ S.suspend(() =>
5382
4920
  team_id: S.optional(S.String),
5383
4921
  target_team_ids: S.optional(SetTeamsRequestTargetTeamIdsList),
5384
4922
  org_channel: S.optional(S.Boolean),
5385
- }).pipe(
5386
- T.Http({ method: "POST", uri: "/admin.conversations.setTeams", code: 200 }),
5387
- ),
5388
- ).annotate({
5389
- identifier: "SetTeamsRequest",
5390
- }) as any as S.Schema<SetTeamsRequest>;
4923
+ }).pipe(T.Http({ method: "POST", uri: "/admin.conversations.setTeams", code: 200 })),
4924
+ ).annotate({ identifier: "SetTeamsRequest" }) as any as S.Schema<SetTeamsRequest>;
5391
4925
 
5392
4926
  export interface SetTeamsResponse {
5393
4927
  /** Always `true` (a failed call raises a typed error instead). */
@@ -5399,9 +4933,7 @@ export const SetTeamsResponse = /*@__PURE__*/ S.suspend(() =>
5399
4933
  ok: S.Boolean,
5400
4934
  channel: S.String,
5401
4935
  }),
5402
- ).annotate({
5403
- identifier: "SetTeamsResponse",
5404
- }) as any as S.Schema<SetTeamsResponse>;
4936
+ ).annotate({ identifier: "SetTeamsResponse" }) as any as S.Schema<SetTeamsResponse>;
5405
4937
 
5406
4938
  /** The function visibility */
5407
4939
  export type SetWorkflowsTriggersTypesPermissionsRequestVisibility =
@@ -5411,16 +4943,15 @@ export type SetWorkflowsTriggersTypesPermissionsRequestVisibility =
5411
4943
  export const SetWorkflowsTriggersTypesPermissionsRequestVisibility = S.String;
5412
4944
 
5413
4945
  /** List of user IDs to allow for named_entities visibility */
5414
- export type SetWorkflowsTriggersTypesPermissionsRequestUserIdsList =
5415
- Array<string>;
5416
- export const SetWorkflowsTriggersTypesPermissionsRequestUserIdsList =
5417
- /*@__PURE__*/ S.Array(
5418
- S.String,
5419
- ) as any as S.Schema<SetWorkflowsTriggersTypesPermissionsRequestUserIdsList>;
4946
+ export type SetWorkflowsTriggersTypesPermissionsRequestUserIdsList = Array<string>;
4947
+ export const SetWorkflowsTriggersTypesPermissionsRequestUserIdsList = /*@__PURE__*/ S.Array(
4948
+ S.String,
4949
+ ) as any as S.Schema<SetWorkflowsTriggersTypesPermissionsRequestUserIdsList>;
5420
4950
 
5421
4951
  /** Dict of permissions keyed by permission type ID. */
5422
- export type SetWorkflowsTriggersTypesPermissionsRequestPermissionsPermissionsMap =
5423
- { [key: string]: unknown | undefined };
4952
+ export type SetWorkflowsTriggersTypesPermissionsRequestPermissionsPermissionsMap = {
4953
+ [key: string]: unknown | undefined;
4954
+ };
5424
4955
  export const SetWorkflowsTriggersTypesPermissionsRequestPermissionsPermissionsMap =
5425
4956
  /*@__PURE__*/ S.Record(
5426
4957
  S.String,
@@ -5431,64 +4962,47 @@ export interface SetWorkflowsTriggersTypesPermissionsRequestPermissions {
5431
4962
  /** Dict of permissions keyed by permission type ID. */
5432
4963
  permissions?: SetWorkflowsTriggersTypesPermissionsRequestPermissionsPermissionsMap;
5433
4964
  }
5434
- export const SetWorkflowsTriggersTypesPermissionsRequestPermissions =
5435
- /*@__PURE__*/ S.suspend(() =>
5436
- S.Struct({
5437
- permissions: S.optional(
5438
- SetWorkflowsTriggersTypesPermissionsRequestPermissionsPermissionsMap,
5439
- ),
5440
- }),
5441
- ).annotate({
5442
- identifier: "SetWorkflowsTriggersTypesPermissionsRequestPermissions",
5443
- }) as any as S.Schema<SetWorkflowsTriggersTypesPermissionsRequestPermissions>;
4965
+ export const SetWorkflowsTriggersTypesPermissionsRequestPermissions = /*@__PURE__*/ S.suspend(() =>
4966
+ S.Struct({
4967
+ permissions: S.optional(SetWorkflowsTriggersTypesPermissionsRequestPermissionsPermissionsMap),
4968
+ }),
4969
+ ).annotate({
4970
+ identifier: "SetWorkflowsTriggersTypesPermissionsRequestPermissions",
4971
+ }) as any as S.Schema<SetWorkflowsTriggersTypesPermissionsRequestPermissions>;
5444
4972
 
5445
4973
  export interface SetWorkflowsTriggersTypesPermissionsRequest {
5446
4974
  /** The trigger type ID for which to set the permissions */
5447
4975
  id: string;
5448
4976
  /** The function visibility */
5449
- visibility?:
5450
- | SetWorkflowsTriggersTypesPermissionsRequestVisibility
5451
- | (string & {});
4977
+ visibility?: SetWorkflowsTriggersTypesPermissionsRequestVisibility | (string & {});
5452
4978
  /** List of user IDs to allow for named_entities visibility */
5453
4979
  user_ids?: SetWorkflowsTriggersTypesPermissionsRequestUserIdsList;
5454
4980
  permissions?: SetWorkflowsTriggersTypesPermissionsRequestPermissions;
5455
4981
  }
5456
- export const SetWorkflowsTriggersTypesPermissionsRequest =
5457
- /*@__PURE__*/ S.suspend(() =>
5458
- S.Struct({
5459
- id: S.String,
5460
- visibility: S.optional(
5461
- SetWorkflowsTriggersTypesPermissionsRequestVisibility,
5462
- ),
5463
- user_ids: S.optional(
5464
- SetWorkflowsTriggersTypesPermissionsRequestUserIdsList,
5465
- ),
5466
- permissions: S.optional(
5467
- SetWorkflowsTriggersTypesPermissionsRequestPermissions,
5468
- ),
5469
- }).pipe(
5470
- T.Http({
5471
- method: "POST",
5472
- uri: "/admin.workflows.triggers.types.permissions.set",
5473
- code: 200,
5474
- }),
5475
- ),
5476
- ).annotate({
5477
- identifier: "SetWorkflowsTriggersTypesPermissionsRequest",
5478
- }) as any as S.Schema<SetWorkflowsTriggersTypesPermissionsRequest>;
4982
+ export const SetWorkflowsTriggersTypesPermissionsRequest = /*@__PURE__*/ S.suspend(() =>
4983
+ S.Struct({
4984
+ id: S.String,
4985
+ visibility: S.optional(SetWorkflowsTriggersTypesPermissionsRequestVisibility),
4986
+ user_ids: S.optional(SetWorkflowsTriggersTypesPermissionsRequestUserIdsList),
4987
+ permissions: S.optional(SetWorkflowsTriggersTypesPermissionsRequestPermissions),
4988
+ }).pipe(
4989
+ T.Http({ method: "POST", uri: "/admin.workflows.triggers.types.permissions.set", code: 200 }),
4990
+ ),
4991
+ ).annotate({
4992
+ identifier: "SetWorkflowsTriggersTypesPermissionsRequest",
4993
+ }) as any as S.Schema<SetWorkflowsTriggersTypesPermissionsRequest>;
5479
4994
 
5480
4995
  export interface SetWorkflowsTriggersTypesPermissionsResponse {
5481
4996
  /** Always `true` (a failed call raises a typed error instead). */
5482
4997
  ok: boolean;
5483
4998
  }
5484
- export const SetWorkflowsTriggersTypesPermissionsResponse =
5485
- /*@__PURE__*/ S.suspend(() =>
5486
- S.Struct({
5487
- ok: S.Boolean,
5488
- }),
5489
- ).annotate({
5490
- identifier: "SetWorkflowsTriggersTypesPermissionsResponse",
5491
- }) as any as S.Schema<SetWorkflowsTriggersTypesPermissionsResponse>;
4999
+ export const SetWorkflowsTriggersTypesPermissionsResponse = /*@__PURE__*/ S.suspend(() =>
5000
+ S.Struct({
5001
+ ok: S.Boolean,
5002
+ }),
5003
+ ).annotate({
5004
+ identifier: "SetWorkflowsTriggersTypesPermissionsResponse",
5005
+ }) as any as S.Schema<SetWorkflowsTriggersTypesPermissionsResponse>;
5492
5006
 
5493
5007
  export interface TeamsSettingsInfoRequest {
5494
5008
  team_id: string;
@@ -5496,19 +5010,13 @@ export interface TeamsSettingsInfoRequest {
5496
5010
  export const TeamsSettingsInfoRequest = /*@__PURE__*/ S.suspend(() =>
5497
5011
  S.Struct({
5498
5012
  team_id: S.String,
5499
- }).pipe(
5500
- T.Http({ method: "POST", uri: "/admin.teams.settings.info", code: 200 }),
5501
- ),
5502
- ).annotate({
5503
- identifier: "TeamsSettingsInfoRequest",
5504
- }) as any as S.Schema<TeamsSettingsInfoRequest>;
5013
+ }).pipe(T.Http({ method: "POST", uri: "/admin.teams.settings.info", code: 200 })),
5014
+ ).annotate({ identifier: "TeamsSettingsInfoRequest" }) as any as S.Schema<TeamsSettingsInfoRequest>;
5505
5015
 
5506
- export type TeamsSettingsInfoResponseTeamItemDefaultChannelsList =
5507
- Array<unknown>;
5508
- export const TeamsSettingsInfoResponseTeamItemDefaultChannelsList =
5509
- /*@__PURE__*/ S.Array(
5510
- S.Unknown,
5511
- ) as any as S.Schema<TeamsSettingsInfoResponseTeamItemDefaultChannelsList>;
5016
+ export type TeamsSettingsInfoResponseTeamItemDefaultChannelsList = Array<unknown>;
5017
+ export const TeamsSettingsInfoResponseTeamItemDefaultChannelsList = /*@__PURE__*/ S.Array(
5018
+ S.Unknown,
5019
+ ) as any as S.Schema<TeamsSettingsInfoResponseTeamItemDefaultChannelsList>;
5512
5020
 
5513
5021
  export interface TeamsSettingsInfoResponseTeamItem {
5514
5022
  id?: string;
@@ -5529,16 +5037,13 @@ export const TeamsSettingsInfoResponseTeamItem = /*@__PURE__*/ S.suspend(() =>
5529
5037
  icon: S.optional(S.Unknown),
5530
5038
  enterprise_id: S.optional(S.String),
5531
5039
  enterprise_name: S.optional(S.String),
5532
- default_channels: S.optional(
5533
- TeamsSettingsInfoResponseTeamItemDefaultChannelsList,
5534
- ),
5040
+ default_channels: S.optional(TeamsSettingsInfoResponseTeamItemDefaultChannelsList),
5535
5041
  }),
5536
5042
  ).annotate({
5537
5043
  identifier: "TeamsSettingsInfoResponseTeamItem",
5538
5044
  }) as any as S.Schema<TeamsSettingsInfoResponseTeamItem>;
5539
5045
 
5540
- export type TeamsSettingsInfoResponseTeamList =
5541
- Array<TeamsSettingsInfoResponseTeamItem>;
5046
+ export type TeamsSettingsInfoResponseTeamList = Array<TeamsSettingsInfoResponseTeamItem>;
5542
5047
  export const TeamsSettingsInfoResponseTeamList = /*@__PURE__*/ S.Array(
5543
5048
  TeamsSettingsInfoResponseTeamItem,
5544
5049
  ) as any as S.Schema<TeamsSettingsInfoResponseTeamList>;
@@ -5563,13 +5068,7 @@ export interface UnarchiveConversationRequest {
5563
5068
  export const UnarchiveConversationRequest = /*@__PURE__*/ S.suspend(() =>
5564
5069
  S.Struct({
5565
5070
  channel_id: S.String,
5566
- }).pipe(
5567
- T.Http({
5568
- method: "POST",
5569
- uri: "/admin.conversations.unarchive",
5570
- code: 200,
5571
- }),
5572
- ),
5071
+ }).pipe(T.Http({ method: "POST", uri: "/admin.conversations.unarchive", code: 200 })),
5573
5072
  ).annotate({
5574
5073
  identifier: "UnarchiveConversationRequest",
5575
5074
  }) as any as S.Schema<UnarchiveConversationRequest>;
@@ -5599,9 +5098,7 @@ export const UninstallAppRequest = /*@__PURE__*/ S.suspend(() =>
5599
5098
  team_ids: S.optional(S.String),
5600
5099
  enterprise_id: S.optional(S.String),
5601
5100
  }).pipe(T.Http({ method: "POST", uri: "/admin.apps.uninstall", code: 200 })),
5602
- ).annotate({
5603
- identifier: "UninstallAppRequest",
5604
- }) as any as S.Schema<UninstallAppRequest>;
5101
+ ).annotate({ identifier: "UninstallAppRequest" }) as any as S.Schema<UninstallAppRequest>;
5605
5102
 
5606
5103
  export interface UninstallAppResponse {
5607
5104
  /** Always `true` (a failed call raises a typed error instead). */
@@ -5611,9 +5108,7 @@ export const UninstallAppResponse = /*@__PURE__*/ S.suspend(() =>
5611
5108
  S.Struct({
5612
5109
  ok: S.Boolean,
5613
5110
  }),
5614
- ).annotate({
5615
- identifier: "UninstallAppResponse",
5616
- }) as any as S.Schema<UninstallAppResponse>;
5111
+ ).annotate({ identifier: "UninstallAppResponse" }) as any as S.Schema<UninstallAppResponse>;
5617
5112
 
5618
5113
  export interface UnlinkObjectsRequest {
5619
5114
  /** Channel ID for Slack channel that will be unlinked from the Salesforce record. */
@@ -5625,16 +5120,8 @@ export const UnlinkObjectsRequest = /*@__PURE__*/ S.suspend(() =>
5625
5120
  S.Struct({
5626
5121
  channel: S.String,
5627
5122
  new_name: S.String,
5628
- }).pipe(
5629
- T.Http({
5630
- method: "POST",
5631
- uri: "/admin.conversations.unlinkObjects",
5632
- code: 200,
5633
- }),
5634
- ),
5635
- ).annotate({
5636
- identifier: "UnlinkObjectsRequest",
5637
- }) as any as S.Schema<UnlinkObjectsRequest>;
5123
+ }).pipe(T.Http({ method: "POST", uri: "/admin.conversations.unlinkObjects", code: 200 })),
5124
+ ).annotate({ identifier: "UnlinkObjectsRequest" }) as any as S.Schema<UnlinkObjectsRequest>;
5638
5125
 
5639
5126
  export interface UnlinkObjectsResponse {
5640
5127
  /** Always `true` (a failed call raises a typed error instead). */
@@ -5644,9 +5131,7 @@ export const UnlinkObjectsResponse = /*@__PURE__*/ S.suspend(() =>
5644
5131
  S.Struct({
5645
5132
  ok: S.Boolean,
5646
5133
  }),
5647
- ).annotate({
5648
- identifier: "UnlinkObjectsResponse",
5649
- }) as any as S.Schema<UnlinkObjectsResponse>;
5134
+ ).annotate({ identifier: "UnlinkObjectsResponse" }) as any as S.Schema<UnlinkObjectsResponse>;
5650
5135
 
5651
5136
  /** Array of workflow IDs to unpublish */
5652
5137
  export type UnpublishWorkflowRequestWorkflowIdsList = Array<string>;
@@ -5661,12 +5146,8 @@ export interface UnpublishWorkflowRequest {
5661
5146
  export const UnpublishWorkflowRequest = /*@__PURE__*/ S.suspend(() =>
5662
5147
  S.Struct({
5663
5148
  workflow_ids: UnpublishWorkflowRequestWorkflowIdsList,
5664
- }).pipe(
5665
- T.Http({ method: "POST", uri: "/admin.workflows.unpublish", code: 200 }),
5666
- ),
5667
- ).annotate({
5668
- identifier: "UnpublishWorkflowRequest",
5669
- }) as any as S.Schema<UnpublishWorkflowRequest>;
5149
+ }).pipe(T.Http({ method: "POST", uri: "/admin.workflows.unpublish", code: 200 })),
5150
+ ).annotate({ identifier: "UnpublishWorkflowRequest" }) as any as S.Schema<UnpublishWorkflowRequest>;
5670
5151
 
5671
5152
  export interface UnpublishWorkflowResponse {
5672
5153
  /** Always `true` (a failed call raises a typed error instead). */
@@ -5682,10 +5163,9 @@ export const UnpublishWorkflowResponse = /*@__PURE__*/ S.suspend(() =>
5682
5163
 
5683
5164
  /** A list of [IDP Groups](https://slack.com/help/articles/115001435788-Connect-identity-provider-groups-to-your-Enterprise-organization) ids that the primary usergroup is to be barriered from. */
5684
5165
  export type UpdateBarrierRequestBarrieredFromUsergroupIdsList = Array<string>;
5685
- export const UpdateBarrierRequestBarrieredFromUsergroupIdsList =
5686
- /*@__PURE__*/ S.Array(
5687
- S.String,
5688
- ) as any as S.Schema<UpdateBarrierRequestBarrieredFromUsergroupIdsList>;
5166
+ export const UpdateBarrierRequestBarrieredFromUsergroupIdsList = /*@__PURE__*/ S.Array(
5167
+ S.String,
5168
+ ) as any as S.Schema<UpdateBarrierRequestBarrieredFromUsergroupIdsList>;
5689
5169
 
5690
5170
  export type UpdateBarrierRequestRestrictedSubjectsItem = "im" | "mpim" | "call";
5691
5171
  export const UpdateBarrierRequestRestrictedSubjectsItem = S.String;
@@ -5712,8 +5192,7 @@ export const UpdateBarrierRequest = /*@__PURE__*/ S.suspend(() =>
5712
5192
  S.Struct({
5713
5193
  barrier_id: S.String,
5714
5194
  primary_usergroup_id: S.String,
5715
- barriered_from_usergroup_ids:
5716
- UpdateBarrierRequestBarrieredFromUsergroupIdsList,
5195
+ barriered_from_usergroup_ids: UpdateBarrierRequestBarrieredFromUsergroupIdsList,
5717
5196
  restricted_subjects: UpdateBarrierRequestRestrictedSubjectsList,
5718
5197
  }).pipe(
5719
5198
  T.Http({
@@ -5723,9 +5202,7 @@ export const UpdateBarrierRequest = /*@__PURE__*/ S.suspend(() =>
5723
5202
  contentType: "form-urlencoded",
5724
5203
  }),
5725
5204
  ),
5726
- ).annotate({
5727
- identifier: "UpdateBarrierRequest",
5728
- }) as any as S.Schema<UpdateBarrierRequest>;
5205
+ ).annotate({ identifier: "UpdateBarrierRequest" }) as any as S.Schema<UpdateBarrierRequest>;
5729
5206
 
5730
5207
  export interface UpdateBarrierResponse {
5731
5208
  ok: boolean;
@@ -5736,9 +5213,7 @@ export const UpdateBarrierResponse = /*@__PURE__*/ S.suspend(() =>
5736
5213
  ok: S.Boolean,
5737
5214
  barrier: S.Unknown,
5738
5215
  }),
5739
- ).annotate({
5740
- identifier: "UpdateBarrierResponse",
5741
- }) as any as S.Schema<UpdateBarrierResponse>;
5216
+ ).annotate({ identifier: "UpdateBarrierResponse" }) as any as S.Schema<UpdateBarrierResponse>;
5742
5217
 
5743
5218
  /** allow list of IPv4 addresses using cidr notation in the Enterprise organization configuration */
5744
5219
  export type UpdateItemRequestTrustedCidrList = Array<string>;
@@ -5762,16 +5237,8 @@ export const UpdateItemRequest = /*@__PURE__*/ S.suspend(() =>
5762
5237
  S.Struct({
5763
5238
  trusted_cidr: S.optional(UpdateItemRequestTrustedCidrList),
5764
5239
  trusted_asns: S.optional(UpdateItemRequestTrustedAsnsList),
5765
- }).pipe(
5766
- T.Http({
5767
- method: "POST",
5768
- uri: "/admin.audit.anomaly.allow.updateItem",
5769
- code: 200,
5770
- }),
5771
- ),
5772
- ).annotate({
5773
- identifier: "UpdateItemRequest",
5774
- }) as any as S.Schema<UpdateItemRequest>;
5240
+ }).pipe(T.Http({ method: "POST", uri: "/admin.audit.anomaly.allow.updateItem", code: 200 })),
5241
+ ).annotate({ identifier: "UpdateItemRequest" }) as any as S.Schema<UpdateItemRequest>;
5775
5242
 
5776
5243
  export interface UpdateItemResponse {
5777
5244
  /** Always `true` (a failed call raises a typed error instead). */
@@ -5781,9 +5248,106 @@ export const UpdateItemResponse = /*@__PURE__*/ S.suspend(() =>
5781
5248
  S.Struct({
5782
5249
  ok: S.Boolean,
5783
5250
  }),
5251
+ ).annotate({ identifier: "UpdateItemResponse" }) as any as S.Schema<UpdateItemResponse>;
5252
+
5253
+ export interface UpdateUsergroupRequest {
5254
+ /** ID of the usergroup to update */
5255
+ id: string;
5256
+ /** The name of the group. */
5257
+ name?: string;
5258
+ /** The handle used for mentioning the group in a channel, must be unique. */
5259
+ handle?: string;
5260
+ /** The usergroup's purpose or description. */
5261
+ description?: string;
5262
+ /** Configure whether or not this usergroup should be visible in the client. */
5263
+ is_visible?: boolean;
5264
+ }
5265
+ export const UpdateUsergroupRequest = /*@__PURE__*/ S.suspend(() =>
5266
+ S.Struct({
5267
+ id: S.String,
5268
+ name: S.optional(S.String),
5269
+ handle: S.optional(S.String),
5270
+ description: S.optional(S.String),
5271
+ is_visible: S.optional(S.Boolean),
5272
+ }).pipe(T.Http({ method: "POST", uri: "/admin.usergroups.update", code: 200 })),
5273
+ ).annotate({ identifier: "UpdateUsergroupRequest" }) as any as S.Schema<UpdateUsergroupRequest>;
5274
+
5275
+ /** List of user IDs who would exceed their channel limit */
5276
+ export type UpdateUsergroupResponseChannelLimitUserIdsList = Array<string>;
5277
+ export const UpdateUsergroupResponseChannelLimitUserIdsList = /*@__PURE__*/ S.Array(
5278
+ S.String,
5279
+ ) as any as S.Schema<UpdateUsergroupResponseChannelLimitUserIdsList>;
5280
+
5281
+ export interface UpdateUsergroupResponse {
5282
+ /** Always `true` (a failed call raises a typed error instead). */
5283
+ ok: boolean;
5284
+ subteam?: unknown;
5285
+ /** List of user IDs who would exceed their channel limit */
5286
+ channel_limit_user_ids?: UpdateUsergroupResponseChannelLimitUserIdsList;
5287
+ }
5288
+ export const UpdateUsergroupResponse = /*@__PURE__*/ S.suspend(() =>
5289
+ S.Struct({
5290
+ ok: S.Boolean,
5291
+ subteam: S.optional(S.Unknown),
5292
+ channel_limit_user_ids: S.optional(UpdateUsergroupResponseChannelLimitUserIdsList),
5293
+ }),
5294
+ ).annotate({ identifier: "UpdateUsergroupResponse" }) as any as S.Schema<UpdateUsergroupResponse>;
5295
+
5296
+ export interface UploadUsersRequest {
5297
+ /** ID of the usergroup to upload users to */
5298
+ id: string;
5299
+ /** Csv of users to upload in format member id, email */
5300
+ file?: unknown;
5301
+ }
5302
+ export const UploadUsersRequest = /*@__PURE__*/ S.suspend(() =>
5303
+ S.Struct({
5304
+ id: S.String,
5305
+ file: S.optional(S.Unknown),
5306
+ }).pipe(T.Http({ method: "POST", uri: "/admin.usergroups.uploadUsers", code: 200 })),
5307
+ ).annotate({ identifier: "UploadUsersRequest" }) as any as S.Schema<UploadUsersRequest>;
5308
+
5309
+ export type UploadUsersResponseInvalidUsersItemReason =
5310
+ | "guest_user"
5311
+ | "deleted_user"
5312
+ | "user_not_found"
5313
+ | "insert_failed"
5314
+ | "channel_limit_exceeded"
5315
+ | "multi_workspace_idp_group"
5316
+ | "usergroup_limit_exceeded";
5317
+ export const UploadUsersResponseInvalidUsersItemReason = S.String;
5318
+
5319
+ export interface UploadUsersResponseInvalidUsersItem {
5320
+ user_id: string;
5321
+ reason: UploadUsersResponseInvalidUsersItemReason;
5322
+ }
5323
+ export const UploadUsersResponseInvalidUsersItem = /*@__PURE__*/ S.suspend(() =>
5324
+ S.Struct({
5325
+ user_id: S.String,
5326
+ reason: UploadUsersResponseInvalidUsersItemReason,
5327
+ }),
5784
5328
  ).annotate({
5785
- identifier: "UpdateItemResponse",
5786
- }) as any as S.Schema<UpdateItemResponse>;
5329
+ identifier: "UploadUsersResponseInvalidUsersItem",
5330
+ }) as any as S.Schema<UploadUsersResponseInvalidUsersItem>;
5331
+
5332
+ export type UploadUsersResponseInvalidUsersList = Array<UploadUsersResponseInvalidUsersItem>;
5333
+ export const UploadUsersResponseInvalidUsersList = /*@__PURE__*/ S.Array(
5334
+ UploadUsersResponseInvalidUsersItem,
5335
+ ) as any as S.Schema<UploadUsersResponseInvalidUsersList>;
5336
+
5337
+ export interface UploadUsersResponse {
5338
+ /** Always `true` (a failed call raises a typed error instead). */
5339
+ ok: boolean;
5340
+ /** How many users were successfully added */
5341
+ successful_user_count: number;
5342
+ invalid_users?: UploadUsersResponseInvalidUsersList;
5343
+ }
5344
+ export const UploadUsersResponse = /*@__PURE__*/ S.suspend(() =>
5345
+ S.Struct({
5346
+ ok: S.Boolean,
5347
+ successful_user_count: S.Number,
5348
+ invalid_users: S.optional(UploadUsersResponseInvalidUsersList),
5349
+ }),
5350
+ ).annotate({ identifier: "UploadUsersResponse" }) as any as S.Schema<UploadUsersResponse>;
5787
5351
 
5788
5352
  export type AddAliasError = SlackOpError;
5789
5353
  /** 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 */
@@ -5801,7 +5365,7 @@ export const addAlias: API.OperationMethod<
5801
5365
  }));
5802
5366
 
5803
5367
  export type AddAppsPermissionsError = SlackOpError;
5804
- /** 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 */
5368
+ /** Grant permission for entities to access an app that has its permission type set to named_entities Required scopes — user: `admin.apps:write` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `invalid_auth` — Invalid authorization token - `access_denied` — This actor does not have access to the permissions on this resource. - `invalid_permission_type` — This app requires permission_type to be set as named_entities before adding users. - `no_valid_named_entities` — None of the provided named entities were valid - `too_many_named_entities` — Too many named entities passed into the app permissions setting. - `app_not_found` — This app does not exist. - `not_an_enterprise` — This feature is only available on Enterprise Grid plans. - `app_acl_not_found` — This app does not have an ACL. - `internal_error` — Internal error - `user_not_found` — Value passed for `user_ids` was invalid. - `invalid_entities` — Invalid entities. - `invalid_channel_restriction_mode` — Cannot add channels when channel_restriction_mode is all_channels. Use set to configure a restriction mode first. - `channel_not_found` — One or more channel IDs are not valid. - `failed_to_update_channels` — An error occurred while updating the channel restriction list. - `restricted_action` — User does not have permission to perform this action. See https://docs.slack.dev/reference/methods/admin.apps.permissions.add */
5805
5369
  export const addAppsPermissions: API.OperationMethod<
5806
5370
  AddAppsPermissionsRequest,
5807
5371
  AddAppsPermissionsResponse,
@@ -5876,7 +5440,7 @@ export const addGroup: API.OperationMethod<
5876
5440
  }));
5877
5441
 
5878
5442
  export type AddTeamsError = SlackOpError;
5879
- /** 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 */
5443
+ /** Associate one or more default workspaces with an organization-wide IDP group. Required scopes — user: `admin.teams:write` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `auto_provision_failure` — A failure occurred while assigning IDP group members to a specific workspace; see `errors` element for a list of failed team IDs. - `internal_error` — An unexpected error occurred. - `invalid_team_ids` — One or more team IDs provided were invalid; see the `errors` field in the response for the list of invalid team IDs. - `multi_workspace_restriction` — The IDP group has members that cannot be linked to more than one workspace. - `no_team_ids_given` — The `team_ids` parameter was empty. - `restricted_action` — The calling user cannot update the specified usergroup. - `team_limit_exceeded` — The number of teams associated with the org group would exceed the limit. - `usergroup_not_found` — `usergroup_id` wasn't found. - `auto_provision_required` — The IDP group requires a mandatory workspace link, so `auto_provision` must be `true`. - `workspace_not_eligible` — The workspace is not eligible to be linked to this IDP group; it is not on the org's allow-list of eligible workspaces. See https://docs.slack.dev/reference/methods/admin.usergroups.addTeams */
5880
5444
  export const addTeams: API.OperationMethod<
5881
5445
  AddTeamsRequest,
5882
5446
  AddTeamsResponse,
@@ -5890,6 +5454,21 @@ export const addTeams: API.OperationMethod<
5890
5454
  retry: Retry.Retry,
5891
5455
  }));
5892
5456
 
5457
+ export type AddUsersError = SlackOpError;
5458
+ /** Add members to an existing organizational usergroup. This method is only available to Enterprise Grid organizations. Required scopes — user: `admin.usergroups:write` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `feature_not_enabled` — The Admin APIs feature is not enabled for this workspace. - `invalid_auth` — The workspace specified is not part of this organization. - `restricted_action` — The calling user cannot modify the specified usergroup, or the usergroup's membership is managed by an identity provider (IdP) and can only be changed through SCIM. - `not_an_enterprise` — The token passed in does not belong to an Enterprise organization. - `invalid_usergroup` — A usergroup with the specified ID does not exist. - `invalid_users` — One or more users provided can not be added to the usergroup. - `user_not_found` — One or more users provided are invalid or are not a member of the organization. - `member_count_would_exceed_visible_limit` — The usergroup is visible and the member count would exceed the limit. - `cannot_modify_role_admin` — The user does not have permission to modify the roles admin role. See https://docs.slack.dev/reference/methods/admin.usergroups.addUsers */
5459
+ export const addUsers: API.OperationMethod<
5460
+ AddUsersRequest,
5461
+ AddUsersResponse,
5462
+ AddUsersError,
5463
+ SlackOpContext
5464
+ > = /*@__PURE__*/ API.make(() => ({
5465
+ input: AddUsersRequest,
5466
+ output: AddUsersResponse,
5467
+ errors: [SlackError, SlackRateLimited],
5468
+ protocol: SlackProtocol,
5469
+ retry: Retry.Retry,
5470
+ }));
5471
+
5893
5472
  export type AddWorkflowsCollaboratorError = SlackOpError;
5894
5473
  /** 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 */
5895
5474
  export const addWorkflowsCollaborator: API.OperationMethod<
@@ -5906,7 +5485,7 @@ export const addWorkflowsCollaborator: API.OperationMethod<
5906
5485
  }));
5907
5486
 
5908
5487
  export type AnalyticsMessagesActivityError = SlackOpError;
5909
- /** 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 */
5488
+ /** Retrieves activity metrics for messages from a given channel. Required scopes — user: `admin.analytics:read` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `channel_not_found` — The specified channel was not found. - `invalid_arguments` — Required arguments either were not provided or contain invalid values. - `restricted_action` — The token does not have permission to access this resource. - `not_an_enterprise` — The user token does not belong to an enterprise. - `restricted_plan_level` — The enterprise plan level does not have access to this feature. - `rate_limited` — Too many requests in a short amount of time. See https://docs.slack.dev/reference/methods/admin.analytics.messages.activity */
5910
5489
  export const analyticsMessagesActivity: API.OperationMethod<
5911
5490
  AnalyticsMessagesActivityRequest,
5912
5491
  AnalyticsMessagesActivityResponse,
@@ -5921,7 +5500,7 @@ export const analyticsMessagesActivity: API.OperationMethod<
5921
5500
  }));
5922
5501
 
5923
5502
  export type AnalyticsMessagesMetadataError = SlackOpError;
5924
- /** 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 */
5503
+ /** Retrieves metadata for a list of messages from a given channel. Required scopes — user: `admin.analytics:read` Method-specific errors (the `error` slug on the SlackError): - `channel_not_found` — The specified channel was not found - `invalid_arguments` — Required arguments either were not provided or contain invalid values. - `not_an_enterprise` — The user token does not belong to an enterprise. - `analytics_unavailable` — We were unable to find analytics for you. - `admin_analytics_disabled` — We're having issues returning your analytics. Please wait and try again. - `restricted_plan_level` — This feature is not available for your current product plan. - `different_team_owns_message_metadata_for_channel` — Message metadata must be accessed by an actor from the same team that owns the channel. This may be the org or a specific enterprise workspace. - `rate_limited` — Too many requests in a short amount of time. See https://docs.slack.dev/reference/methods/admin.analytics.messages.metadata */
5925
5504
  export const analyticsMessagesMetadata: API.PaginatedOperationMethod<
5926
5505
  AnalyticsMessagesMetadataRequest,
5927
5506
  AnalyticsMessagesMetadataResponse,
@@ -6021,7 +5600,7 @@ export const assignEntities: API.OperationMethod<
6021
5600
  }));
6022
5601
 
6023
5602
  export type AssignUserError = SlackOpError;
6024
- /** 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 */
5603
+ /** Add an Enterprise user to a workspace. Required scopes — user: `admin.users:write` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `feature_not_enabled` — The Admin APIs feature is not enabled for this team - `invalid_role_for_user` — The requested status is incompatible with the user's role on another workspace. - `invited_user_not_created` — The invited user could not be created. - `invited_user_not_reactivated` — The invited user could not be reactivated. - `invitor_cannot_see_channel` — The invitor is not part of one or many channels that the user was requested to be added to - `not_an_admin` — This method wasn't called by an admin. - `team_not_found` — `team_id was not found. - `too_many_channels` — The user was requested to be added to more channels than is allowed. - `user_already_team_member` — The given user is already active on the given team. - `user_is_bot` — The given user is a bot from an app. This api only works with humans. - `user_not_found` — `user_id` was not found. - `user_cannot_be_added_to_workspace` — The user can't be added to this workspace because of their account type or the workspace's configuration. See https://docs.slack.dev/reference/methods/admin.users.assign */
6025
5604
  export const assignUser: API.OperationMethod<
6026
5605
  AssignUserRequest,
6027
5606
  AssignUserResponse,
@@ -6081,7 +5660,7 @@ export const bulkMove: API.OperationMethod<
6081
5660
  }));
6082
5661
 
6083
5662
  export type BulkSetExcludeFromSlackAiError = SlackOpError;
6084
- /** 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 */
5663
+ /** Exclude channels from Slack AI in bulk. Required scopes — user: `admin.conversations:write` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `action_already_in_progress` — Another bulk action request is currently in progress - `internal_error` — Something unexpected happened, try again in a little bit. Sorry for that! - `no_valid_channels` — All input channels are invalid - `restricted_action` — User does not have permission to perform this action - `feature_not_enabled` — The feature is not enabled - `disallowed_action` — This property cannot be set on DMs or MPDMs. See https://docs.slack.dev/reference/methods/admin.conversations.bulkSetExcludeFromSlackAi */
6085
5664
  export const bulkSetExcludeFromSlackAi: API.OperationMethod<
6086
5665
  BulkSetExcludeFromSlackAiRequest,
6087
5666
  BulkSetExcludeFromSlackAiResponse,
@@ -6095,6 +5674,21 @@ export const bulkSetExcludeFromSlackAi: API.OperationMethod<
6095
5674
  retry: Retry.Retry,
6096
5675
  }));
6097
5676
 
5677
+ export type BulkSetPropertiesError = SlackOpError;
5678
+ /** Set properties on channels in bulk. Required scopes — user: `admin.conversations:write` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `action_already_in_progress` — Another bulk action request is currently in progress - `invalid_arguments` — The property argument is not a valid JSON object representing a channel property. - `internal_error` — Something unexpected happened, try again in a little bit. Sorry for that! - `no_valid_channels` — All input channels are invalid - `restricted_action` — User does not have permission to perform this action - `feature_not_enabled` — The feature is not enabled - `disallowed_action` — This property cannot be set on this channel type. - `restricted_plan_level` — This API is only available to Enterprise+ customers. - `too_many_properties` — Only one channel property can be updated at a time. - `property_not_allowed` — The property passed in is not allowed to be updated. See https://docs.slack.dev/reference/methods/admin.conversations.bulkSetProperties */
5679
+ export const bulkSetProperties: API.OperationMethod<
5680
+ BulkSetPropertiesRequest,
5681
+ BulkSetPropertiesResponse,
5682
+ BulkSetPropertiesError,
5683
+ SlackOpContext
5684
+ > = /*@__PURE__*/ API.make(() => ({
5685
+ input: BulkSetPropertiesRequest,
5686
+ output: BulkSetPropertiesResponse,
5687
+ errors: [SlackError, SlackRateLimited],
5688
+ protocol: SlackProtocol,
5689
+ retry: Retry.Retry,
5690
+ }));
5691
+
6098
5692
  export type CancelAppsRequestError = SlackOpError;
6099
5693
  /** 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 */
6100
5694
  export const cancelAppsRequest: API.OperationMethod<
@@ -6201,7 +5795,7 @@ export const createConversation: API.OperationMethod<
6201
5795
  }));
6202
5796
 
6203
5797
  export type CreateForObjectsError = SlackOpError;
6204
- /** 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 */
5798
+ /** Create a Salesforce channel for the corresponding object provided. Required scopes — user: `admin.conversations:manage_objects` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `restricted_action` — User does not have access to perform this action. - `record_not_found` — Value passed for `salesforce_org_id` or `object_id` is invalid. - `feature_not_enabled` — Feature not enabled. - `channel_already_exists` — Object is linked to a different channel. - `missing_record_channel_config` — Record Channels are not enabled for the given object type. See https://docs.slack.dev/reference/methods/admin.conversations.createForObjects */
6205
5799
  export const createForObjects: API.OperationMethod<
6206
5800
  CreateForObjectsRequest,
6207
5801
  CreateForObjectsResponse,
@@ -6230,6 +5824,21 @@ export const createTeam: API.OperationMethod<
6230
5824
  retry: Retry.Retry,
6231
5825
  }));
6232
5826
 
5827
+ export type CreateUsergroupError = SlackOpError;
5828
+ /** Create a new organizational usergroup. This method is only available to Enterprise Grid organizations. Required scopes — user: `admin.usergroups:write` Rate limit tier: 1 Method-specific errors (the `error` slug on the SlackError): - `feature_not_enabled` — The Admin APIs feature is not enabled for this workspace. - `invalid_auth` — The workspace specified is not part of this organization. - `restricted_action` — The calling user is not allowed to create usergroups. - `not_an_enterprise` — The token passed in does not belong to an Enterprise organization. - `name_already_exists` — The name specified is used by another usergroup and cannot be created. - `handle_already_exists` — The handle specified is used by another usergroup or entity and cannot be created. See https://docs.slack.dev/reference/methods/admin.usergroups.create */
5829
+ export const createUsergroup: API.OperationMethod<
5830
+ CreateUsergroupRequest,
5831
+ CreateUsergroupResponse,
5832
+ CreateUsergroupError,
5833
+ SlackOpContext
5834
+ > = /*@__PURE__*/ API.make(() => ({
5835
+ input: CreateUsergroupRequest,
5836
+ output: CreateUsergroupResponse,
5837
+ errors: [SlackError, SlackRateLimited],
5838
+ protocol: SlackProtocol,
5839
+ retry: Retry.Retry,
5840
+ }));
5841
+
6233
5842
  export type DeleteBarrierError = SlackOpError;
6234
5843
  /** 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 */
6235
5844
  export const deleteBarrier: API.OperationMethod<
@@ -6290,6 +5899,21 @@ export const exportUsersUnsupportedVersion: API.OperationMethod<
6290
5899
  retry: Retry.Retry,
6291
5900
  }));
6292
5901
 
5902
+ export type FetchUsergroupError = SlackOpError;
5903
+ /** Fetch an organizational usergroup. Required scopes — user: `admin.usergroups:read` Rate limit tier: 1 Method-specific errors (the `error` slug on the SlackError): - `feature_not_enabled` — The Admin APIs feature is not enabled for this workspace. - `invalid_auth` — The workspace specified is not part of this organization. - `restricted_action` — The calling user is not allowed to view the specified usergroup. - `not_an_enterprise` — The token passed in does not belong to an Enterprise organization. - `invalid_usergroup` — A usergroup with the specified ID does not exist. See https://docs.slack.dev/reference/methods/admin.usergroups.fetch */
5904
+ export const fetchUsergroup: API.OperationMethod<
5905
+ FetchUsergroupRequest,
5906
+ FetchUsergroupResponse,
5907
+ FetchUsergroupError,
5908
+ SlackOpContext
5909
+ > = /*@__PURE__*/ API.make(() => ({
5910
+ input: FetchUsergroupRequest,
5911
+ output: FetchUsergroupResponse,
5912
+ errors: [SlackError, SlackRateLimited],
5913
+ protocol: SlackProtocol,
5914
+ retry: Retry.Retry,
5915
+ }));
5916
+
6293
5917
  export type GetConversationPrefsError = SlackOpError;
6294
5918
  /** 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 */
6295
5919
  export const getConversationPrefs: API.OperationMethod<
@@ -6605,7 +6229,7 @@ export const listAppsPermissions: API.OperationMethod<
6605
6229
  }));
6606
6230
 
6607
6231
  export type ListAppsRequestsError = SlackOpError;
6608
- /** 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 */
6232
+ /** List app requests for a team/workspace. Required scopes — user: `admin.apps:read` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `app_management_app_not_installed_on_org` — The app management app must be installed on the org. - `enterprise_not_found` — Returned when enterprise id is not found. - `feature_not_enabled` — Returned when the Admin APIs feature is not enabled for this team - `invalid_cursor` — Value passed for `cursor` was not valid or is no longer valid. - `invalid_auth` — invalid token or actor does not have access - `not_allowed` — The user is not allowed to access this API method - `not_an_admin` — This method is only accessible by org owners and admins - `restricted_action` — The action is restricted for this team - `user_is_restricted` — This method is only accessible by org owners, admins, and integration managers - `no_team_or_enterprise_provided` — Must provide team ID or enterprise ID - `team_not_found` — Returned when team id is not found. - `too_many_teams_provided` — Please provide only `team_id` OR `enterprise_id` - `invalid_scopes` — One or more of the given scopes is not a recognized OAuth scope See https://docs.slack.dev/reference/methods/admin.apps.requests.list */
6609
6233
  export const listAppsRequests: API.PaginatedOperationMethod<
6610
6234
  ListAppsRequestsRequest,
6611
6235
  ListAppsRequestsResponse,
@@ -7100,7 +6724,7 @@ export const lookupWorkflowsTriggersTypesPermissions: API.OperationMethod<
7100
6724
  }));
7101
6725
 
7102
6726
  export type RemoveAppsPermissionsError = SlackOpError;
7103
- /** 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 */
6727
+ /** Revoke an entity's access to an app that has its permission type set to named_entities Required scopes — user: `admin.apps:write` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `invalid_auth` — Invalid authorization token - `access_denied` — This actor does not have access to the permissions on this resource. - `named_entities_cannot_be_empty` — There must be at least one valid named entity - `app_not_found` — This app does not exist. - `not_an_enterprise` — This feature is only available on Enterprise Grid plans. - `invalid_permission_type` — This app requires permission_type to be set as named_entities before removing users. - `too_many_named_entities` — Too many named entities passed into the app permissions setting. - `app_acl_not_found` — This app does not have an ACL. - `internal_error` — Internal error - `user_not_found` — Value passed for `user_ids` was invalid. - `invalid_channel_restriction_mode` — Cannot remove channels when channel_restriction_mode is all_channels. - `channel_not_found` — One or more channel IDs are not valid. - `failed_to_update_channels` — An error occurred while updating the channel restriction list. - `restricted_action` — User does not have permission to perform this action. See https://docs.slack.dev/reference/methods/admin.apps.permissions.remove */
7104
6728
  export const removeAppsPermissions: API.OperationMethod<
7105
6729
  RemoveAppsPermissionsRequest,
7106
6730
  RemoveAppsPermissionsResponse,
@@ -7115,7 +6739,7 @@ export const removeAppsPermissions: API.OperationMethod<
7115
6739
  }));
7116
6740
 
7117
6741
  export type RemoveAssignmentsError = SlackOpError;
7118
- /** 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 */
6742
+ /** Removes a set of users from a role for the given scopes and entities Required scopes — user: `admin.roles:write` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `failed_for_some_entities` — At least one role scope ID was invalid - `failed_for_some_users` — At least one user ID was invalid - `failed_for_some_users_and_entities` — At least one role scope ID was invalid - `feature_not_enabled` — This API is currently not enabled. - `invalid_actor` — This API is only enabled for the Admins/Owners. - `invalid_role_id` — The role type passed does not exist. - `no_valid_entities` — None of the entities passed were valid. - `no_valid_users` — None of the users passed were valid. - `too_many_entities` — More than 10 role scopes were passed. - `too_many_users` — More than 10 users were passed. - `cannot_modify_role_admin` — The user does not have permission to modify the admin role. See https://docs.slack.dev/reference/methods/admin.roles.removeAssignments */
7119
6743
  export const removeAssignments: API.OperationMethod<
7120
6744
  RemoveAssignmentsRequest,
7121
6745
  RemoveAssignmentsResponse,
@@ -7204,6 +6828,21 @@ export const removeGroup: API.OperationMethod<
7204
6828
  retry: Retry.Retry,
7205
6829
  }));
7206
6830
 
6831
+ export type RemoveTeamsError = SlackOpError;
6832
+ /** Remove one or more default workspaces from an organization-wide IDP Group or Admin Group. Required scopes — user: `admin.teams:write` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `internal_error` — An unexpected error occurred. - `invalid_team_ids` — One or more team IDs provided were invalid; see the `errors` field in the response for the list of invalid team IDs. - `no_team_ids_given` — The `team_ids` parameter was empty. - `usergroup_not_found` — `usergroup_id` wasn't found. - `restricted_action` — The calling user cannot update the specified usergroup. See https://docs.slack.dev/reference/methods/admin.usergroups.removeTeams */
6833
+ export const removeTeams: API.OperationMethod<
6834
+ RemoveTeamsRequest,
6835
+ RemoveTeamsResponse,
6836
+ RemoveTeamsError,
6837
+ SlackOpContext
6838
+ > = /*@__PURE__*/ API.make(() => ({
6839
+ input: RemoveTeamsRequest,
6840
+ output: RemoveTeamsResponse,
6841
+ errors: [SlackError, SlackRateLimited],
6842
+ protocol: SlackProtocol,
6843
+ retry: Retry.Retry,
6844
+ }));
6845
+
7207
6846
  export type RemoveUserError = SlackOpError;
7208
6847
  /** 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 */
7209
6848
  export const removeUser: API.OperationMethod<
@@ -7219,6 +6858,21 @@ export const removeUser: API.OperationMethod<
7219
6858
  retry: Retry.Retry,
7220
6859
  }));
7221
6860
 
6861
+ export type RemoveUsersError = SlackOpError;
6862
+ /** Remove members from an existing organizational usergroup. This method is only available to Enterprise Grid organizations. Required scopes — user: `admin.usergroups:write` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `feature_not_enabled` — The Admin APIs feature is not enabled for this workspace. - `invalid_auth` — The workspace specified is not part of this organization. - `restricted_action` — The calling user cannot modify the specified usergroup, or the usergroup's membership is managed by an identity provider (IdP) and can only be changed through SCIM. - `not_an_enterprise` — The token passed in does not belong to an Enterprise organization. - `invalid_usergroup` — A usergroup with the specified ID does not exist. - `invalid_users` — One or more users provided can not be removed from the usergroup. - `user_not_found` — One or more users provided are invalid or are not a member of the organization. See https://docs.slack.dev/reference/methods/admin.usergroups.removeUsers */
6863
+ export const removeUsers: API.OperationMethod<
6864
+ RemoveUsersRequest,
6865
+ RemoveUsersResponse,
6866
+ RemoveUsersError,
6867
+ SlackOpContext
6868
+ > = /*@__PURE__*/ API.make(() => ({
6869
+ input: RemoveUsersRequest,
6870
+ output: RemoveUsersResponse,
6871
+ errors: [SlackError, SlackRateLimited],
6872
+ protocol: SlackProtocol,
6873
+ retry: Retry.Retry,
6874
+ }));
6875
+
7222
6876
  export type RemoveWorkflowsCollaboratorError = SlackOpError;
7223
6877
  /** 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 */
7224
6878
  export const removeWorkflowsCollaborator: API.OperationMethod<
@@ -7235,7 +6889,7 @@ export const removeWorkflowsCollaborator: API.OperationMethod<
7235
6889
  }));
7236
6890
 
7237
6891
  export type RenameConversationError = SlackOpError;
7238
- /** 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 */
6892
+ /** Rename a public or private channel. Required scopes — user: `admin.conversations:write` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `channel_not_found` — The value passed for `channel_id` was invalid. - `channel_type_not_supported` — The provided `channel_id` was a DM, MPDM, or the 'general' channel. - `could_not_rename_channel` — The channel could not be renamed. - `default_org_wide_channel` — The default org-wide channel can't be renamed. - `feature_not_enabled` — The token provided doesn't have access to this method. - `invalid_name_maxlength` — The channel name exceeds the maximum allowed length. - `name_taken` — The channel's name is already being used elsewhere. - `restricted_action` — A workspace preference prevents the authenticated user from renaming a channel. - `external_channel_migrating` — The channel is an externally shared channel that is currently being migrated and can't be renamed. - `not_supported` — This type of channel doesn't support renaming through this method. See https://docs.slack.dev/reference/methods/admin.conversations.rename */
7239
6893
  export const renameConversation: API.OperationMethod<
7240
6894
  RenameConversationRequest,
7241
6895
  RenameConversationResponse,
@@ -7392,7 +7046,7 @@ export const setAppsMcpServersPermissions: API.OperationMethod<
7392
7046
  }));
7393
7047
 
7394
7048
  export type SetAppsPermissionsError = SlackOpError;
7395
- /** 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 */
7049
+ /** Set the permission type for who can access an app Required scopes — user: `admin.apps:write` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `invalid_auth` — Invalid authorization token - `access_denied` — This actor does not have access to the permissions on this resource. - `invalid_permission_type` — This app requires permission_type to be set as named_entities before adding users. - `named_entities_cannot_be_empty` — Must pass at least one valid named entity. - `no_valid_named_entities` — None of the provided named entities were valid - `too_many_named_entities` — Too many named_entities passed into the app permissions setting. - `app_not_found` — This app does not exist. - `not_an_enterprise` — This feature is only available on Enterprise Grid plans. - `user_not_found` — This actor does not have access to at least one valid named entity. - `usergroup_not_found` — The usergroup is not valid. - `invalid_channel_restriction_mode` — The channel_restriction_mode value is not valid. - `channel_ids_required` — channel_ids is required when channel_restriction_mode is specific_channels or all_channels_except. - `channel_not_found` — One or more channel IDs are not valid. - `restricted_action` — User does not have permission to perform this action. - `channel_restrictions_not_available` — Channel restrictions are not available for this workspace. - `channel_restriction_requires_app_access` — Channel access cannot be configured while the app is set to no_one, since the app can't be used in any channel. See https://docs.slack.dev/reference/methods/admin.apps.permissions.set */
7396
7050
  export const setAppsPermissions: API.OperationMethod<
7397
7051
  SetAppsPermissionsRequest,
7398
7052
  SetAppsPermissionsResponse,
@@ -7542,7 +7196,7 @@ export const setName: API.OperationMethod<
7542
7196
  }));
7543
7197
 
7544
7198
  export type SetOwnerError = SlackOpError;
7545
- /** 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 */
7199
+ /** Set an existing regular user or admin to be a workspace or org owner. Required scopes — user: `admin.users:write` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `cannot_modify_primary_owner` — The primary owner cannot be modified. - `failed_to_set_user_to_owner` — The change to the user's role failed. - `failed_to_set_owner_on_workspaces` — Failed to set the user as an owner on all workspaces. - `feature_not_enabled` — The Admin APIs feature is not enabled for this team. - `invalid_role_for_user` — The user cannot be made into an owner. - `not_an_admin` — This method can only be accessed by org owners and admins. - `not_supported` — This is not a supported action. - `team_not_found` — `team_id` was not found. - `user_must_be_in_workspace` — This user must be a member of at least one workspace. - `user_not_found` — The requested user was not found. See https://docs.slack.dev/reference/methods/admin.users.setOwner */
7546
7200
  export const setOwner: API.OperationMethod<
7547
7201
  SetOwnerRequest,
7548
7202
  SetOwnerResponse,
@@ -7720,3 +7374,33 @@ export const updateItem: API.OperationMethod<
7720
7374
  protocol: SlackProtocol,
7721
7375
  retry: Retry.Retry,
7722
7376
  }));
7377
+
7378
+ export type UpdateUsergroupError = SlackOpError;
7379
+ /** Update one or more properties of an existing organizational usergroup. Required scopes — user: `admin.usergroups:write` Rate limit tier: 1 Method-specific errors (the `error` slug on the SlackError): - `feature_not_enabled` — The Admin APIs feature is not enabled for this workspace. - `invalid_auth` — The workspace specified is not part of this organization. - `restricted_action` — The calling user cannot modify the specified usergroup, or the usergroup is managed by an identity provider (IdP) and its name cannot be changed through this API. - `not_an_enterprise` — The token passed in does not belong to an Enterprise organization. - `invalid_usergroup` — A usergroup with the specified ID does not exist. - `name_already_exists` — The name specified is used by another usergroup and cannot be updated. - `handle_already_exists` — The handle specified is used by another usergroup or entity and cannot be updated. - `visible_group_needs_handle` — Tried to set the group to visible but did not provide a handle. - `too_many_usergroup_members_to_make_visible` — Tried to set the group to visible but the group has too many members - `user_channel_limit_exceeded` — Adding these channels would cause one or more members to exceed their channel limit. - `cannot_modify_pref_after_creation` — This preference can only be set when the group is created and cannot be changed afterward. See https://docs.slack.dev/reference/methods/admin.usergroups.update */
7380
+ export const updateUsergroup: API.OperationMethod<
7381
+ UpdateUsergroupRequest,
7382
+ UpdateUsergroupResponse,
7383
+ UpdateUsergroupError,
7384
+ SlackOpContext
7385
+ > = /*@__PURE__*/ API.make(() => ({
7386
+ input: UpdateUsergroupRequest,
7387
+ output: UpdateUsergroupResponse,
7388
+ errors: [SlackError, SlackRateLimited],
7389
+ protocol: SlackProtocol,
7390
+ retry: Retry.Retry,
7391
+ }));
7392
+
7393
+ export type UploadUsersError = SlackOpError;
7394
+ /** Add members to an existing organizational usergroup in bulk via CSV upload. This method is only available to Enterprise Grid organizations. Required scopes — user: `admin.usergroups:write` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `feature_not_enabled` — The Admin APIs feature is not enabled for this workspace. - `invalid_auth` — The workspace specified is not part of this organization. - `restricted_action` — The calling user cannot modify the specified usergroup, or the usergroup's membership is managed by an identity provider (IdP) and can only be changed through SCIM. - `not_an_enterprise` — The token passed in does not belong to an Enterprise organization. - `invalid_usergroup` — A usergroup with the specified ID does not exist. - `no_valid_users` — There were no valid users provided in the csv. - `unable_to_parse_csv` — Could not parse the uploaded csv. - `member_count_would_exceed_visible_limit` — The usergroup is visible and the member count would exceed the limit. - `cannot_modify_role_admin` — The user does not have permission to modify the roles admin role. See https://docs.slack.dev/reference/methods/admin.usergroups.uploadUsers */
7395
+ export const uploadUsers: API.OperationMethod<
7396
+ UploadUsersRequest,
7397
+ UploadUsersResponse,
7398
+ UploadUsersError,
7399
+ SlackOpContext
7400
+ > = /*@__PURE__*/ API.make(() => ({
7401
+ input: UploadUsersRequest,
7402
+ output: UploadUsersResponse,
7403
+ errors: [SlackError, SlackRateLimited],
7404
+ protocol: SlackProtocol,
7405
+ retry: Retry.Retry,
7406
+ }));