@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,28 +1,26 @@
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.js";
5
- import { SlackProtocol, } from "../protocol.js";
6
- import { slackPaginate } from "../pagination.js";
7
4
  import { SlackError, SlackRateLimited } from "../errors.js";
5
+ import { slackPaginate } from "../pagination.js";
6
+ import { SlackProtocol } from "../protocol.js";
8
7
  import * as Retry from "../retry.js";
8
+ import * as T from "../traits.js";
9
9
  export const AddAliasRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
10
10
  name: S.String.pipe(T.Query()),
11
11
  alias_for: S.String.pipe(T.Query()),
12
- }).pipe(T.Http({ method: "GET", uri: "/admin.emoji.addAlias", code: 200 }))).annotate({
13
- identifier: "AddAliasRequest",
14
- });
12
+ }).pipe(T.Http({ method: "GET", uri: "/admin.emoji.addAlias", code: 200 }))).annotate({ identifier: "AddAliasRequest" });
15
13
  export const AddAliasResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
16
14
  ok: S.Boolean,
17
- })).annotate({
18
- identifier: "AddAliasResponse",
19
- });
15
+ })).annotate({ identifier: "AddAliasResponse" });
20
16
  export const AddAppsPermissionsRequestUserIdsList = /*@__PURE__*/ S.Array(S.String);
21
17
  export const AddAppsPermissionsRequestUsergroupIdsList = /*@__PURE__*/ S.Array(S.String);
18
+ export const AddAppsPermissionsRequestChannelIdsList = /*@__PURE__*/ S.Array(S.String);
22
19
  export const AddAppsPermissionsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
23
20
  app_id: S.String,
24
21
  user_ids: S.optional(AddAppsPermissionsRequestUserIdsList),
25
22
  usergroup_ids: S.optional(AddAppsPermissionsRequestUsergroupIdsList),
23
+ channel_ids: S.optional(AddAppsPermissionsRequestChannelIdsList),
26
24
  }).pipe(T.Http({ method: "POST", uri: "/admin.apps.permissions.add", code: 200 }))).annotate({
27
25
  identifier: "AddAppsPermissionsRequest",
28
26
  });
@@ -37,85 +35,71 @@ export const AddAssignmentsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
37
35
  role_id: S.String,
38
36
  entity_ids: AddAssignmentsRequestEntityIdsList,
39
37
  user_ids: AddAssignmentsRequestUserIdsList,
40
- }).pipe(T.Http({ method: "POST", uri: "/admin.roles.addAssignments", code: 200 }))).annotate({
41
- identifier: "AddAssignmentsRequest",
42
- });
38
+ }).pipe(T.Http({ method: "POST", uri: "/admin.roles.addAssignments", code: 200 }))).annotate({ identifier: "AddAssignmentsRequest" });
43
39
  export const AddAssignmentsResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
44
40
  ok: S.Boolean,
45
41
  error: S.optional(S.String),
46
- })).annotate({
47
- identifier: "AddAssignmentsResponse",
48
- });
42
+ })).annotate({ identifier: "AddAssignmentsResponse" });
49
43
  export const AddChannelsRequestChannelIdsList = /*@__PURE__*/ S.Array(S.String);
50
44
  export const AddChannelsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
51
45
  usergroup_id: S.String,
52
46
  team_id: S.optional(S.String),
53
47
  channel_ids: AddChannelsRequestChannelIdsList,
54
- }).pipe(T.Http({ method: "POST", uri: "/admin.usergroups.addChannels", code: 200 }))).annotate({
55
- identifier: "AddChannelsRequest",
56
- });
48
+ }).pipe(T.Http({ method: "POST", uri: "/admin.usergroups.addChannels", code: 200 }))).annotate({ identifier: "AddChannelsRequest" });
57
49
  export const AddChannelsResponseInvalidChannelsList = /*@__PURE__*/ S.Array(S.String);
58
- export const AddChannelsResponseChannelLimitUserIdsList = /*@__PURE__*/ S.Array(S.String);
59
50
  export const AddChannelsResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
60
51
  ok: S.Boolean,
61
52
  error: S.optional(S.String),
62
53
  invalid_channels: S.optional(AddChannelsResponseInvalidChannelsList),
63
- channel_limit_user_ids: S.optional(AddChannelsResponseChannelLimitUserIdsList),
64
- })).annotate({
65
- identifier: "AddChannelsResponse",
66
- });
54
+ })).annotate({ identifier: "AddChannelsResponse" });
67
55
  export const AddEmojiRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
68
56
  name: S.String.pipe(T.Query()),
69
57
  url: S.optional(S.String.pipe(T.Query())),
70
- }).pipe(T.Http({ method: "GET", uri: "/admin.emoji.add", code: 200 }))).annotate({
71
- identifier: "AddEmojiRequest",
72
- });
58
+ }).pipe(T.Http({ method: "GET", uri: "/admin.emoji.add", code: 200 }))).annotate({ identifier: "AddEmojiRequest" });
73
59
  export const AddEmojiResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
74
60
  ok: S.Boolean,
75
- })).annotate({
76
- identifier: "AddEmojiResponse",
77
- });
61
+ })).annotate({ identifier: "AddEmojiResponse" });
78
62
  export const AddGroupRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
79
63
  team_id: S.optional(S.String.pipe(T.Query())),
80
64
  group_id: S.String.pipe(T.Query()),
81
65
  channel_id: S.String.pipe(T.Query()),
82
- }).pipe(T.Http({
83
- method: "GET",
84
- uri: "/admin.conversations.restrictAccess.addGroup",
85
- code: 200,
86
- }))).annotate({
87
- identifier: "AddGroupRequest",
88
- });
66
+ }).pipe(T.Http({ method: "GET", uri: "/admin.conversations.restrictAccess.addGroup", code: 200 }))).annotate({ identifier: "AddGroupRequest" });
89
67
  export const AddGroupResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
90
68
  ok: S.Boolean,
91
- })).annotate({
92
- identifier: "AddGroupResponse",
93
- });
69
+ })).annotate({ identifier: "AddGroupResponse" });
94
70
  export const AddTeamsRequestTeamIdsList = /*@__PURE__*/ S.Array(S.String);
95
71
  export const AddTeamsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
96
72
  usergroup_id: S.String,
97
73
  team_ids: AddTeamsRequestTeamIdsList,
98
74
  auto_provision: S.optional(S.Boolean),
99
- }).pipe(T.Http({ method: "POST", uri: "/admin.usergroups.addTeams", code: 200 }))).annotate({
100
- identifier: "AddTeamsRequest",
101
- });
75
+ }).pipe(T.Http({ method: "POST", uri: "/admin.usergroups.addTeams", code: 200 }))).annotate({ identifier: "AddTeamsRequest" });
102
76
  export const AddTeamsResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
103
77
  ok: S.Boolean,
78
+ })).annotate({ identifier: "AddTeamsResponse" });
79
+ export const AddUsersRequestUsersList = /*@__PURE__*/ S.Array(S.String);
80
+ export const AddUsersRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
81
+ id: S.String,
82
+ users: AddUsersRequestUsersList,
83
+ }).pipe(T.Http({ method: "POST", uri: "/admin.usergroups.addUsers", code: 200 }))).annotate({ identifier: "AddUsersRequest" });
84
+ export const AddUsersResponseInvalidUsersItemReason = S.String;
85
+ export const AddUsersResponseInvalidUsersItem = /*@__PURE__*/ S.suspend(() => S.Struct({
86
+ user_id: S.String,
87
+ reason: AddUsersResponseInvalidUsersItemReason,
104
88
  })).annotate({
105
- identifier: "AddTeamsResponse",
89
+ identifier: "AddUsersResponseInvalidUsersItem",
106
90
  });
107
- export const AddWorkflowsCollaboratorRequestWorkflowIdsList =
108
- /*@__PURE__*/ S.Array(S.String);
109
- export const AddWorkflowsCollaboratorRequestCollaboratorIdsList =
110
- /*@__PURE__*/ S.Array(S.String);
91
+ export const AddUsersResponseInvalidUsersList = /*@__PURE__*/ S.Array(AddUsersResponseInvalidUsersItem);
92
+ export const AddUsersResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
93
+ ok: S.Boolean,
94
+ error: S.optional(S.String),
95
+ invalid_users: S.optional(AddUsersResponseInvalidUsersList),
96
+ })).annotate({ identifier: "AddUsersResponse" });
97
+ export const AddWorkflowsCollaboratorRequestWorkflowIdsList = /*@__PURE__*/ S.Array(S.String);
98
+ export const AddWorkflowsCollaboratorRequestCollaboratorIdsList = /*@__PURE__*/ S.Array(S.String);
111
99
  export const AddWorkflowsCollaboratorRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
112
100
  workflow_ids: AddWorkflowsCollaboratorRequestWorkflowIdsList,
113
101
  collaborator_ids: AddWorkflowsCollaboratorRequestCollaboratorIdsList,
114
- }).pipe(T.Http({
115
- method: "POST",
116
- uri: "/admin.workflows.collaborators.add",
117
- code: 200,
118
- }))).annotate({
102
+ }).pipe(T.Http({ method: "POST", uri: "/admin.workflows.collaborators.add", code: 200 }))).annotate({
119
103
  identifier: "AddWorkflowsCollaboratorRequest",
120
104
  });
121
105
  export const AddWorkflowsCollaboratorResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
@@ -129,15 +113,10 @@ export const AnalyticsMessagesActivityRequest = /*@__PURE__*/ S.suspend(() => S.
129
113
  latest_ts: S.optional(S.String.pipe(T.Query())),
130
114
  cursor: S.optional(S.String.pipe(T.Query())),
131
115
  limit: S.optional(S.Number.pipe(T.Query())),
132
- }).pipe(T.Http({
133
- method: "GET",
134
- uri: "/admin.analytics.messages.activity",
135
- code: 200,
136
- }))).annotate({
116
+ }).pipe(T.Http({ method: "GET", uri: "/admin.analytics.messages.activity", code: 200 }))).annotate({
137
117
  identifier: "AnalyticsMessagesActivityRequest",
138
118
  });
139
- export const AnalyticsMessagesActivityResponseResponseMetadata =
140
- /*@__PURE__*/ S.suspend(() => S.Struct({
119
+ export const AnalyticsMessagesActivityResponseResponseMetadata = /*@__PURE__*/ S.suspend(() => S.Struct({
141
120
  next_cursor: S.optional(S.String),
142
121
  })).annotate({
143
122
  identifier: "AnalyticsMessagesActivityResponseResponseMetadata",
@@ -154,25 +133,18 @@ export const AnalyticsMessagesMetadataRequest = /*@__PURE__*/ S.suspend(() => S.
154
133
  oldest_ts: S.optional(S.String.pipe(T.Query())),
155
134
  latest_ts: S.optional(S.String.pipe(T.Query())),
156
135
  cursor: S.optional(S.String.pipe(T.Query())),
157
- }).pipe(T.Http({
158
- method: "GET",
159
- uri: "/admin.analytics.messages.metadata",
160
- code: 200,
161
- }))).annotate({
136
+ }).pipe(T.Http({ method: "GET", uri: "/admin.analytics.messages.metadata", code: 200 }))).annotate({
162
137
  identifier: "AnalyticsMessagesMetadataRequest",
163
138
  });
164
139
  export const AnalyticsMessagesMetadataResponseResponseMetadata = AnalyticsMessagesActivityResponseResponseMetadata;
165
- export const AnalyticsMessagesMetadataResponseMessagesItemReactionsItem =
166
- /*@__PURE__*/ S.suspend(() => S.Struct({
140
+ export const AnalyticsMessagesMetadataResponseMessagesItemReactionsItem = /*@__PURE__*/ S.suspend(() => S.Struct({
167
141
  name: S.String,
168
142
  count: S.Number,
169
143
  })).annotate({
170
144
  identifier: "AnalyticsMessagesMetadataResponseMessagesItemReactionsItem",
171
145
  });
172
- export const AnalyticsMessagesMetadataResponseMessagesItemReactionsList =
173
- /*@__PURE__*/ S.Array(AnalyticsMessagesMetadataResponseMessagesItemReactionsItem);
174
- export const AnalyticsMessagesMetadataResponseMessagesItemFilesItem =
175
- /*@__PURE__*/ S.suspend(() => S.Struct({
146
+ export const AnalyticsMessagesMetadataResponseMessagesItemReactionsList = /*@__PURE__*/ S.Array(AnalyticsMessagesMetadataResponseMessagesItemReactionsItem);
147
+ export const AnalyticsMessagesMetadataResponseMessagesItemFilesItem = /*@__PURE__*/ S.suspend(() => S.Struct({
176
148
  id: S.String,
177
149
  created: S.Number,
178
150
  timestamp: S.Number,
@@ -190,10 +162,8 @@ export const AnalyticsMessagesMetadataResponseMessagesItemFilesItem =
190
162
  })).annotate({
191
163
  identifier: "AnalyticsMessagesMetadataResponseMessagesItemFilesItem",
192
164
  });
193
- export const AnalyticsMessagesMetadataResponseMessagesItemFilesList =
194
- /*@__PURE__*/ S.Array(AnalyticsMessagesMetadataResponseMessagesItemFilesItem);
195
- export const AnalyticsMessagesMetadataResponseMessagesItem =
196
- /*@__PURE__*/ S.suspend(() => S.Struct({
165
+ export const AnalyticsMessagesMetadataResponseMessagesItemFilesList = /*@__PURE__*/ S.Array(AnalyticsMessagesMetadataResponseMessagesItemFilesItem);
166
+ export const AnalyticsMessagesMetadataResponseMessagesItem = /*@__PURE__*/ S.suspend(() => S.Struct({
197
167
  user_id: S.optional(S.String),
198
168
  type: S.String,
199
169
  subtype: S.optional(S.String),
@@ -207,8 +177,7 @@ export const AnalyticsMessagesMetadataResponseMessagesItem =
207
177
  })).annotate({
208
178
  identifier: "AnalyticsMessagesMetadataResponseMessagesItem",
209
179
  });
210
- export const AnalyticsMessagesMetadataResponseMessagesList =
211
- /*@__PURE__*/ S.Array(AnalyticsMessagesMetadataResponseMessagesItem);
180
+ export const AnalyticsMessagesMetadataResponseMessagesList = /*@__PURE__*/ S.Array(AnalyticsMessagesMetadataResponseMessagesItem);
212
181
  export const AnalyticsMessagesMetadataResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
213
182
  ok: S.Boolean,
214
183
  response_metadata: S.optional(AnalyticsMessagesActivityResponseResponseMetadata),
@@ -224,14 +193,10 @@ export const ApproveAppRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
224
193
  enterprise_id: S.optional(S.String),
225
194
  user_scopes: S.optional(S.String),
226
195
  bot_scopes: S.optional(S.String),
227
- }).pipe(T.Http({ method: "POST", uri: "/admin.apps.approve", code: 200 }))).annotate({
228
- identifier: "ApproveAppRequest",
229
- });
196
+ }).pipe(T.Http({ method: "POST", uri: "/admin.apps.approve", code: 200 }))).annotate({ identifier: "ApproveAppRequest" });
230
197
  export const ApproveAppResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
231
198
  ok: S.Boolean,
232
- })).annotate({
233
- identifier: "ApproveAppResponse",
234
- });
199
+ })).annotate({ identifier: "ApproveAppResponse" });
235
200
  export const ApproveInviteRequestRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
236
201
  team_id: S.optional(S.String),
237
202
  invite_request_id: S.String,
@@ -248,14 +213,10 @@ export const AppsRestrictRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
248
213
  request_id: S.optional(S.String),
249
214
  team_id: S.optional(S.String),
250
215
  enterprise_id: S.optional(S.String),
251
- }).pipe(T.Http({ method: "POST", uri: "/admin.apps.restrict", code: 200 }))).annotate({
252
- identifier: "AppsRestrictRequest",
253
- });
216
+ }).pipe(T.Http({ method: "POST", uri: "/admin.apps.restrict", code: 200 }))).annotate({ identifier: "AppsRestrictRequest" });
254
217
  export const AppsRestrictResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
255
218
  ok: S.Boolean,
256
- })).annotate({
257
- identifier: "AppsRestrictResponse",
258
- });
219
+ })).annotate({ identifier: "AppsRestrictResponse" });
259
220
  export const ArchiveConversationRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
260
221
  channel_id: S.String,
261
222
  }).pipe(T.Http({ method: "POST", uri: "/admin.conversations.archive", code: 200 }))).annotate({
@@ -271,33 +232,21 @@ export const AssignEntitiesRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
271
232
  policy_name: S.String,
272
233
  entity_type: S.Unknown,
273
234
  entity_ids: AssignEntitiesRequestEntityIdsList,
274
- }).pipe(T.Http({
275
- method: "POST",
276
- uri: "/admin.auth.policy.assignEntities",
277
- code: 200,
278
- }))).annotate({
279
- identifier: "AssignEntitiesRequest",
280
- });
235
+ }).pipe(T.Http({ method: "POST", uri: "/admin.auth.policy.assignEntities", code: 200 }))).annotate({ identifier: "AssignEntitiesRequest" });
281
236
  export const AssignEntitiesResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
282
237
  ok: S.Boolean,
283
238
  entity_total_count: S.Number,
284
- })).annotate({
285
- identifier: "AssignEntitiesResponse",
286
- });
239
+ })).annotate({ identifier: "AssignEntitiesResponse" });
287
240
  export const AssignUserRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
288
241
  team_id: S.String,
289
242
  user_id: S.String,
290
243
  is_restricted: S.optional(S.Boolean),
291
244
  is_ultra_restricted: S.optional(S.Boolean),
292
245
  channel_ids: S.optional(S.String),
293
- }).pipe(T.Http({ method: "POST", uri: "/admin.users.assign", code: 200 }))).annotate({
294
- identifier: "AssignUserRequest",
295
- });
246
+ }).pipe(T.Http({ method: "POST", uri: "/admin.users.assign", code: 200 }))).annotate({ identifier: "AssignUserRequest" });
296
247
  export const AssignUserResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
297
248
  ok: S.Boolean,
298
- })).annotate({
299
- identifier: "AssignUserResponse",
300
- });
249
+ })).annotate({ identifier: "AssignUserResponse" });
301
250
  export const BulkArchiveRequestChannelIdsList = /*@__PURE__*/ S.Array(S.String);
302
251
  export const BulkArchiveRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
303
252
  channel_ids: BulkArchiveRequestChannelIdsList,
@@ -306,9 +255,7 @@ export const BulkArchiveRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
306
255
  uri: "/admin.conversations.bulkArchive",
307
256
  code: 200,
308
257
  contentType: "form-urlencoded",
309
- }))).annotate({
310
- identifier: "BulkArchiveRequest",
311
- });
258
+ }))).annotate({ identifier: "BulkArchiveRequest" });
312
259
  export const BulkArchiveResponseNotAddedItemErrorsList = /*@__PURE__*/ S.Array(S.String);
313
260
  export const BulkArchiveResponseNotAddedItem = /*@__PURE__*/ S.suspend(() => S.Struct({
314
261
  channel_id: S.String,
@@ -321,9 +268,7 @@ export const BulkArchiveResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
321
268
  ok: S.Boolean,
322
269
  bulk_action_id: S.String,
323
270
  not_added: BulkArchiveResponseNotAddedList,
324
- })).annotate({
325
- identifier: "BulkArchiveResponse",
326
- });
271
+ })).annotate({ identifier: "BulkArchiveResponse" });
327
272
  export const BulkDeleteRequestChannelIdsList = /*@__PURE__*/ S.Array(S.String);
328
273
  export const BulkDeleteRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
329
274
  channel_ids: BulkDeleteRequestChannelIdsList,
@@ -332,9 +277,7 @@ export const BulkDeleteRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
332
277
  uri: "/admin.conversations.bulkDelete",
333
278
  code: 200,
334
279
  contentType: "form-urlencoded",
335
- }))).annotate({
336
- identifier: "BulkDeleteRequest",
337
- });
280
+ }))).annotate({ identifier: "BulkDeleteRequest" });
338
281
  export const BulkDeleteResponseNotAddedItemErrorsList = /*@__PURE__*/ S.Array(S.String);
339
282
  export const BulkDeleteResponseNotAddedItem = /*@__PURE__*/ S.suspend(() => S.Struct({
340
283
  channel_id: S.String,
@@ -347,9 +290,7 @@ export const BulkDeleteResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
347
290
  ok: S.Boolean,
348
291
  bulk_action_id: S.String,
349
292
  not_added: BulkDeleteResponseNotAddedList,
350
- })).annotate({
351
- identifier: "BulkDeleteResponse",
352
- });
293
+ })).annotate({ identifier: "BulkDeleteResponse" });
353
294
  export const BulkMoveRequestChannelIdsList = /*@__PURE__*/ S.Array(S.String);
354
295
  export const BulkMoveRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
355
296
  target_team_id: S.String,
@@ -359,9 +300,7 @@ export const BulkMoveRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
359
300
  uri: "/admin.conversations.bulkMove",
360
301
  code: 200,
361
302
  contentType: "form-urlencoded",
362
- }))).annotate({
363
- identifier: "BulkMoveRequest",
364
- });
303
+ }))).annotate({ identifier: "BulkMoveRequest" });
365
304
  export const BulkMoveResponseNotAddedItemErrorsList = /*@__PURE__*/ S.Array(S.String);
366
305
  export const BulkMoveResponseNotAddedItem = /*@__PURE__*/ S.suspend(() => S.Struct({
367
306
  channel_id: S.String,
@@ -374,32 +313,22 @@ export const BulkMoveResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
374
313
  ok: S.Boolean,
375
314
  bulk_action_id: S.String,
376
315
  not_added: BulkMoveResponseNotAddedList,
377
- })).annotate({
378
- identifier: "BulkMoveResponse",
379
- });
380
- export const BulkSetExcludeFromSlackAiRequestChannelIdsList =
381
- /*@__PURE__*/ S.Array(S.String);
316
+ })).annotate({ identifier: "BulkMoveResponse" });
317
+ export const BulkSetExcludeFromSlackAiRequestChannelIdsList = /*@__PURE__*/ S.Array(S.String);
382
318
  export const BulkSetExcludeFromSlackAiRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
383
319
  channel_ids: BulkSetExcludeFromSlackAiRequestChannelIdsList.pipe(T.Query()),
384
320
  exclude: S.Boolean.pipe(T.Query()),
385
- }).pipe(T.Http({
386
- method: "GET",
387
- uri: "/admin.conversations.bulkSetExcludeFromSlackAi",
388
- code: 200,
389
- }))).annotate({
321
+ }).pipe(T.Http({ method: "GET", uri: "/admin.conversations.bulkSetExcludeFromSlackAi", code: 200 }))).annotate({
390
322
  identifier: "BulkSetExcludeFromSlackAiRequest",
391
323
  });
392
- export const BulkSetExcludeFromSlackAiResponseNotAddedItemErrorsList =
393
- /*@__PURE__*/ S.Array(S.String);
394
- export const BulkSetExcludeFromSlackAiResponseNotAddedItem =
395
- /*@__PURE__*/ S.suspend(() => S.Struct({
324
+ export const BulkSetExcludeFromSlackAiResponseNotAddedItemErrorsList = /*@__PURE__*/ S.Array(S.String);
325
+ export const BulkSetExcludeFromSlackAiResponseNotAddedItem = /*@__PURE__*/ S.suspend(() => S.Struct({
396
326
  channel_id: S.String,
397
327
  errors: BulkSetExcludeFromSlackAiResponseNotAddedItemErrorsList,
398
328
  })).annotate({
399
329
  identifier: "BulkSetExcludeFromSlackAiResponseNotAddedItem",
400
330
  });
401
- export const BulkSetExcludeFromSlackAiResponseNotAddedList =
402
- /*@__PURE__*/ S.Array(BulkSetExcludeFromSlackAiResponseNotAddedItem);
331
+ export const BulkSetExcludeFromSlackAiResponseNotAddedList = /*@__PURE__*/ S.Array(BulkSetExcludeFromSlackAiResponseNotAddedItem);
403
332
  export const BulkSetExcludeFromSlackAiResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
404
333
  ok: S.Boolean,
405
334
  bulk_action_id: S.String,
@@ -407,13 +336,36 @@ export const BulkSetExcludeFromSlackAiResponse = /*@__PURE__*/ S.suspend(() => S
407
336
  })).annotate({
408
337
  identifier: "BulkSetExcludeFromSlackAiResponse",
409
338
  });
339
+ export const BulkSetPropertiesRequestChannelIdsList = /*@__PURE__*/ S.Array(S.String);
340
+ export const BulkSetPropertiesRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
341
+ channel_ids: BulkSetPropertiesRequestChannelIdsList,
342
+ property: S.String,
343
+ }).pipe(T.Http({
344
+ method: "POST",
345
+ uri: "/admin.conversations.bulkSetProperties",
346
+ code: 200,
347
+ contentType: "form-urlencoded",
348
+ }))).annotate({ identifier: "BulkSetPropertiesRequest" });
349
+ export const BulkSetPropertiesResponseNotUpdatedItemErrorsList = /*@__PURE__*/ S.Array(S.String);
350
+ export const BulkSetPropertiesResponseNotUpdatedItem = /*@__PURE__*/ S.suspend(() => S.Struct({
351
+ channel_id: S.String,
352
+ errors: BulkSetPropertiesResponseNotUpdatedItemErrorsList,
353
+ })).annotate({
354
+ identifier: "BulkSetPropertiesResponseNotUpdatedItem",
355
+ });
356
+ export const BulkSetPropertiesResponseNotUpdatedList = /*@__PURE__*/ S.Array(BulkSetPropertiesResponseNotUpdatedItem);
357
+ export const BulkSetPropertiesResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
358
+ ok: S.Boolean,
359
+ bulk_action_id: S.String,
360
+ not_updated: BulkSetPropertiesResponseNotUpdatedList,
361
+ })).annotate({
362
+ identifier: "BulkSetPropertiesResponse",
363
+ });
410
364
  export const CancelAppsRequestRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
411
365
  request_id: S.String,
412
366
  team_id: S.optional(S.String),
413
367
  enterprise_id: S.optional(S.String),
414
- }).pipe(T.Http({ method: "POST", uri: "/admin.apps.requests.cancel", code: 200 }))).annotate({
415
- identifier: "CancelAppsRequestRequest",
416
- });
368
+ }).pipe(T.Http({ method: "POST", uri: "/admin.apps.requests.cancel", code: 200 }))).annotate({ identifier: "CancelAppsRequestRequest" });
417
369
  export const CancelAppsRequestResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
418
370
  ok: S.Boolean,
419
371
  })).annotate({
@@ -423,60 +375,31 @@ export const ClearResolutionRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
423
375
  app_id: S.String,
424
376
  team_id: S.optional(S.String),
425
377
  enterprise_id: S.optional(S.String),
426
- }).pipe(T.Http({ method: "POST", uri: "/admin.apps.clearResolution", code: 200 }))).annotate({
427
- identifier: "ClearResolutionRequest",
428
- });
378
+ }).pipe(T.Http({ method: "POST", uri: "/admin.apps.clearResolution", code: 200 }))).annotate({ identifier: "ClearResolutionRequest" });
429
379
  export const ClearResolutionResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
430
380
  ok: S.Boolean,
431
- })).annotate({
432
- identifier: "ClearResolutionResponse",
433
- });
381
+ })).annotate({ identifier: "ClearResolutionResponse" });
434
382
  export const ClearSettingsRequestUserIdsList = /*@__PURE__*/ S.Array(S.String);
435
383
  export const ClearSettingsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
436
384
  user_ids: ClearSettingsRequestUserIdsList,
437
- }).pipe(T.Http({
438
- method: "POST",
439
- uri: "/admin.users.session.clearSettings",
440
- code: 200,
441
- }))).annotate({
442
- identifier: "ClearSettingsRequest",
443
- });
385
+ }).pipe(T.Http({ method: "POST", uri: "/admin.users.session.clearSettings", code: 200 }))).annotate({ identifier: "ClearSettingsRequest" });
444
386
  export const ClearSettingsResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
445
387
  ok: S.Boolean,
446
- })).annotate({
447
- identifier: "ClearSettingsResponse",
448
- });
388
+ })).annotate({ identifier: "ClearSettingsResponse" });
449
389
  export const ConvertToPrivateRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
450
390
  channel_id: S.String,
451
391
  name: S.optional(S.String),
452
- }).pipe(T.Http({
453
- method: "POST",
454
- uri: "/admin.conversations.convertToPrivate",
455
- code: 200,
456
- }))).annotate({
457
- identifier: "ConvertToPrivateRequest",
458
- });
392
+ }).pipe(T.Http({ method: "POST", uri: "/admin.conversations.convertToPrivate", code: 200 }))).annotate({ identifier: "ConvertToPrivateRequest" });
459
393
  export const ConvertToPrivateResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
460
394
  ok: S.Boolean,
461
- })).annotate({
462
- identifier: "ConvertToPrivateResponse",
463
- });
395
+ })).annotate({ identifier: "ConvertToPrivateResponse" });
464
396
  export const ConvertToPublicRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
465
397
  channel_id: S.String,
466
- }).pipe(T.Http({
467
- method: "POST",
468
- uri: "/admin.conversations.convertToPublic",
469
- code: 200,
470
- }))).annotate({
471
- identifier: "ConvertToPublicRequest",
472
- });
398
+ }).pipe(T.Http({ method: "POST", uri: "/admin.conversations.convertToPublic", code: 200 }))).annotate({ identifier: "ConvertToPublicRequest" });
473
399
  export const ConvertToPublicResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
474
400
  ok: S.Boolean,
475
- })).annotate({
476
- identifier: "ConvertToPublicResponse",
477
- });
478
- export const CreateBarrierRequestBarrieredFromUsergroupIdsList =
479
- /*@__PURE__*/ S.Array(S.String);
401
+ })).annotate({ identifier: "ConvertToPublicResponse" });
402
+ export const CreateBarrierRequestBarrieredFromUsergroupIdsList = /*@__PURE__*/ S.Array(S.String);
480
403
  export const CreateBarrierRequestRestrictedSubjectsItem = S.String;
481
404
  export const CreateBarrierRequestRestrictedSubjectsList = /*@__PURE__*/ S.Array(CreateBarrierRequestRestrictedSubjectsItem);
482
405
  export const CreateBarrierRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
@@ -488,15 +411,11 @@ export const CreateBarrierRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
488
411
  uri: "/admin.barriers.create",
489
412
  code: 200,
490
413
  contentType: "form-urlencoded",
491
- }))).annotate({
492
- identifier: "CreateBarrierRequest",
493
- });
414
+ }))).annotate({ identifier: "CreateBarrierRequest" });
494
415
  export const CreateBarrierResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
495
416
  ok: S.Boolean,
496
417
  barrier: S.Unknown,
497
- })).annotate({
498
- identifier: "CreateBarrierResponse",
499
- });
418
+ })).annotate({ identifier: "CreateBarrierResponse" });
500
419
  export const CreateConversationRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
501
420
  name: S.String,
502
421
  description: S.optional(S.String),
@@ -516,33 +435,32 @@ export const CreateForObjectsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
516
435
  object_id: S.String,
517
436
  salesforce_org_id: S.String,
518
437
  invite_object_team: S.optional(S.Boolean),
519
- }).pipe(T.Http({
520
- method: "POST",
521
- uri: "/admin.conversations.createForObjects",
522
- code: 200,
523
- }))).annotate({
524
- identifier: "CreateForObjectsRequest",
525
- });
438
+ }).pipe(T.Http({ method: "POST", uri: "/admin.conversations.createForObjects", code: 200 }))).annotate({ identifier: "CreateForObjectsRequest" });
526
439
  export const CreateForObjectsResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
527
440
  ok: S.Boolean,
528
441
  channel_id: S.String,
529
- })).annotate({
530
- identifier: "CreateForObjectsResponse",
531
- });
442
+ })).annotate({ identifier: "CreateForObjectsResponse" });
532
443
  export const CreateTeamRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
533
444
  team_domain: S.String,
534
445
  team_name: S.String,
535
446
  team_description: S.optional(S.String),
536
447
  team_discoverability: S.optional(S.String),
537
- }).pipe(T.Http({ method: "POST", uri: "/admin.teams.create", code: 200 }))).annotate({
538
- identifier: "CreateTeamRequest",
539
- });
448
+ }).pipe(T.Http({ method: "POST", uri: "/admin.teams.create", code: 200 }))).annotate({ identifier: "CreateTeamRequest" });
540
449
  export const CreateTeamResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
541
450
  ok: S.Boolean,
542
451
  team: S.String,
543
- })).annotate({
544
- identifier: "CreateTeamResponse",
545
- });
452
+ })).annotate({ identifier: "CreateTeamResponse" });
453
+ export const CreateUsergroupRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
454
+ name: S.String,
455
+ handle: S.optional(S.String),
456
+ purpose: S.optional(S.String),
457
+ is_visible: S.optional(S.Boolean),
458
+ }).pipe(T.Http({ method: "POST", uri: "/admin.usergroups.create", code: 200 }))).annotate({ identifier: "CreateUsergroupRequest" });
459
+ export const CreateUsergroupResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
460
+ ok: S.Boolean,
461
+ error: S.optional(S.String),
462
+ subteam: S.optional(S.Unknown),
463
+ })).annotate({ identifier: "CreateUsergroupResponse" });
546
464
  export const DeleteBarrierRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
547
465
  barrier_id: S.String,
548
466
  }).pipe(T.Http({
@@ -550,14 +468,10 @@ export const DeleteBarrierRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
550
468
  uri: "/admin.barriers.delete",
551
469
  code: 200,
552
470
  contentType: "form-urlencoded",
553
- }))).annotate({
554
- identifier: "DeleteBarrierRequest",
555
- });
471
+ }))).annotate({ identifier: "DeleteBarrierRequest" });
556
472
  export const DeleteBarrierResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
557
473
  ok: S.Boolean,
558
- })).annotate({
559
- identifier: "DeleteBarrierResponse",
560
- });
474
+ })).annotate({ identifier: "DeleteBarrierResponse" });
561
475
  export const DeleteConversationRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
562
476
  channel_id: S.String,
563
477
  }).pipe(T.Http({ method: "POST", uri: "/admin.conversations.delete", code: 200 }))).annotate({
@@ -572,18 +486,10 @@ export const DisconnectSharedRequestLeavingTeamIdsList = /*@__PURE__*/ S.Array(S
572
486
  export const DisconnectSharedRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
573
487
  channel_id: S.String,
574
488
  leaving_team_ids: S.optional(DisconnectSharedRequestLeavingTeamIdsList),
575
- }).pipe(T.Http({
576
- method: "POST",
577
- uri: "/admin.conversations.disconnectShared",
578
- code: 200,
579
- }))).annotate({
580
- identifier: "DisconnectSharedRequest",
581
- });
489
+ }).pipe(T.Http({ method: "POST", uri: "/admin.conversations.disconnectShared", code: 200 }))).annotate({ identifier: "DisconnectSharedRequest" });
582
490
  export const DisconnectSharedResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
583
491
  ok: S.Boolean,
584
- })).annotate({
585
- identifier: "DisconnectSharedResponse",
586
- });
492
+ })).annotate({ identifier: "DisconnectSharedResponse" });
587
493
  export const ExportUsersUnsupportedVersionRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
588
494
  date_sessions_started: S.optional(S.Number),
589
495
  date_end_of_support: S.optional(S.Number),
@@ -600,57 +506,50 @@ export const ExportUsersUnsupportedVersionResponse = /*@__PURE__*/ S.suspend(()
600
506
  })).annotate({
601
507
  identifier: "ExportUsersUnsupportedVersionResponse",
602
508
  });
509
+ export const FetchUsergroupRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
510
+ id: S.String,
511
+ }).pipe(T.Http({ method: "POST", uri: "/admin.usergroups.fetch", code: 200 }))).annotate({ identifier: "FetchUsergroupRequest" });
512
+ export const FetchUsergroupResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
513
+ ok: S.Boolean,
514
+ subteam: S.Unknown,
515
+ })).annotate({ identifier: "FetchUsergroupResponse" });
603
516
  export const GetConversationPrefsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
604
517
  channel_id: S.String,
605
- }).pipe(T.Http({
606
- method: "POST",
607
- uri: "/admin.conversations.getConversationPrefs",
608
- code: 200,
609
- }))).annotate({
518
+ }).pipe(T.Http({ method: "POST", uri: "/admin.conversations.getConversationPrefs", code: 200 }))).annotate({
610
519
  identifier: "GetConversationPrefsRequest",
611
520
  });
612
- export const GetConversationPrefsResponsePrefsWhoCanPostTypeList =
613
- /*@__PURE__*/ S.Array(S.String);
614
- export const GetConversationPrefsResponsePrefsWhoCanPostUserList =
615
- /*@__PURE__*/ S.Array(S.String);
616
- export const GetConversationPrefsResponsePrefsWhoCanPost =
617
- /*@__PURE__*/ S.suspend(() => S.Struct({
521
+ export const GetConversationPrefsResponsePrefsWhoCanPostTypeList = /*@__PURE__*/ S.Array(S.String);
522
+ export const GetConversationPrefsResponsePrefsWhoCanPostUserList = /*@__PURE__*/ S.Array(S.String);
523
+ export const GetConversationPrefsResponsePrefsWhoCanPost = /*@__PURE__*/ S.suspend(() => S.Struct({
618
524
  type: S.optional(GetConversationPrefsResponsePrefsWhoCanPostTypeList),
619
525
  user: S.optional(GetConversationPrefsResponsePrefsWhoCanPostUserList),
620
526
  })).annotate({
621
527
  identifier: "GetConversationPrefsResponsePrefsWhoCanPost",
622
528
  });
623
- export const GetConversationPrefsResponsePrefsCanThreadTypeList =
624
- /*@__PURE__*/ S.Array(S.String);
625
- export const GetConversationPrefsResponsePrefsCanThreadUserList =
626
- /*@__PURE__*/ S.Array(S.String);
627
- export const GetConversationPrefsResponsePrefsCanThread =
628
- /*@__PURE__*/ S.suspend(() => S.Struct({
529
+ export const GetConversationPrefsResponsePrefsCanThreadTypeList = /*@__PURE__*/ S.Array(S.String);
530
+ export const GetConversationPrefsResponsePrefsCanThreadUserList = /*@__PURE__*/ S.Array(S.String);
531
+ export const GetConversationPrefsResponsePrefsCanThread = /*@__PURE__*/ S.suspend(() => S.Struct({
629
532
  type: S.optional(GetConversationPrefsResponsePrefsCanThreadTypeList),
630
533
  user: S.optional(GetConversationPrefsResponsePrefsCanThreadUserList),
631
534
  })).annotate({
632
535
  identifier: "GetConversationPrefsResponsePrefsCanThread",
633
536
  });
634
- export const GetConversationPrefsResponsePrefsMembershipLimit =
635
- /*@__PURE__*/ S.suspend(() => S.Struct({
537
+ export const GetConversationPrefsResponsePrefsMembershipLimit = /*@__PURE__*/ S.suspend(() => S.Struct({
636
538
  value: S.optional(S.Number),
637
539
  })).annotate({
638
540
  identifier: "GetConversationPrefsResponsePrefsMembershipLimit",
639
541
  });
640
- export const GetConversationPrefsResponsePrefsCanHuddle =
641
- /*@__PURE__*/ S.suspend(() => S.Struct({
542
+ export const GetConversationPrefsResponsePrefsCanHuddle = /*@__PURE__*/ S.suspend(() => S.Struct({
642
543
  enabled: S.optional(S.Boolean),
643
544
  })).annotate({
644
545
  identifier: "GetConversationPrefsResponsePrefsCanHuddle",
645
546
  });
646
- export const GetConversationPrefsResponsePrefsEnableAtChannel =
647
- /*@__PURE__*/ S.suspend(() => S.Struct({
547
+ export const GetConversationPrefsResponsePrefsEnableAtChannel = /*@__PURE__*/ S.suspend(() => S.Struct({
648
548
  enabled: S.optional(S.Boolean),
649
549
  })).annotate({
650
550
  identifier: "GetConversationPrefsResponsePrefsEnableAtChannel",
651
551
  });
652
- export const GetConversationPrefsResponsePrefsEnableAtHere =
653
- /*@__PURE__*/ S.suspend(() => S.Struct({
552
+ export const GetConversationPrefsResponsePrefsEnableAtHere = /*@__PURE__*/ S.suspend(() => S.Struct({
654
553
  enabled: S.optional(S.Boolean),
655
554
  })).annotate({
656
555
  identifier: "GetConversationPrefsResponsePrefsEnableAtHere",
@@ -673,11 +572,7 @@ export const GetConversationPrefsResponse = /*@__PURE__*/ S.suspend(() => S.Stru
673
572
  });
674
573
  export const GetCustomRetentionRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
675
574
  channel_id: S.String,
676
- }).pipe(T.Http({
677
- method: "POST",
678
- uri: "/admin.conversations.getCustomRetention",
679
- code: 200,
680
- }))).annotate({
575
+ }).pipe(T.Http({ method: "POST", uri: "/admin.conversations.getCustomRetention", code: 200 }))).annotate({
681
576
  identifier: "GetCustomRetentionRequest",
682
577
  });
683
578
  export const GetCustomRetentionResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
@@ -692,13 +587,7 @@ export const GetEntitiesRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
692
587
  entity_type: S.optional(S.Unknown),
693
588
  limit: S.optional(S.Number),
694
589
  cursor: S.optional(S.String),
695
- }).pipe(T.Http({
696
- method: "POST",
697
- uri: "/admin.auth.policy.getEntities",
698
- code: 200,
699
- }))).annotate({
700
- identifier: "GetEntitiesRequest",
701
- });
590
+ }).pipe(T.Http({ method: "POST", uri: "/admin.auth.policy.getEntities", code: 200 }))).annotate({ identifier: "GetEntitiesRequest" });
702
591
  export const GetEntitiesResponseResponseMetadata = AnalyticsMessagesActivityResponseResponseMetadata;
703
592
  export const GetEntitiesResponseEntitiesItem = /*@__PURE__*/ S.suspend(() => S.Struct({
704
593
  entity_type: S.String,
@@ -713,52 +602,32 @@ export const GetEntitiesResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
713
602
  response_metadata: S.optional(AnalyticsMessagesActivityResponseResponseMetadata),
714
603
  entities: GetEntitiesResponseEntitiesList,
715
604
  entity_total_count: S.Number,
716
- })).annotate({
717
- identifier: "GetEntitiesResponse",
718
- });
605
+ })).annotate({ identifier: "GetEntitiesResponse" });
719
606
  export const GetExpirationRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
720
- user_id: S.optional(S.String.pipe(T.Query())),
607
+ user_id: S.String.pipe(T.Query()),
721
608
  target_team: S.optional(S.String.pipe(T.Query())),
722
- }).pipe(T.Http({ method: "GET", uri: "/admin.users.getExpiration", code: 200 }))).annotate({
723
- identifier: "GetExpirationRequest",
724
- });
609
+ }).pipe(T.Http({ method: "GET", uri: "/admin.users.getExpiration", code: 200 }))).annotate({ identifier: "GetExpirationRequest" });
725
610
  export const GetExpirationResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
726
611
  ok: S.Boolean,
727
- })).annotate({
728
- identifier: "GetExpirationResponse",
729
- });
612
+ })).annotate({ identifier: "GetExpirationResponse" });
730
613
  export const GetFileRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
731
614
  date: S.optional(S.String.pipe(T.Query())),
732
615
  type: S.String.pipe(T.Query()),
733
616
  metadata_only: S.optional(S.Boolean.pipe(T.Query())),
734
617
  }).pipe(T.Http({ method: "GET", uri: "/admin.analytics.getFile", code: 200 }))).annotate({ identifier: "GetFileRequest" });
735
- export const GetFileResponse = /*@__PURE__*/ S.suspend(() => S.Unknown.pipe(T.RawResponseRoot())).annotate({
736
- identifier: "GetFileResponse",
737
- });
738
- export const GetItemRequest = /*@__PURE__*/ S.suspend(() => S.Struct({}).pipe(T.Http({
739
- method: "POST",
740
- uri: "/admin.audit.anomaly.allow.getItem",
741
- code: 200,
742
- }))).annotate({ identifier: "GetItemRequest" });
618
+ export const GetFileResponse = /*@__PURE__*/ S.suspend(() => S.Unknown.pipe(T.RawResponseRoot())).annotate({ identifier: "GetFileResponse" });
619
+ export const GetItemRequest = /*@__PURE__*/ S.suspend(() => S.Struct({}).pipe(T.Http({ method: "POST", uri: "/admin.audit.anomaly.allow.getItem", code: 200 }))).annotate({ identifier: "GetItemRequest" });
743
620
  export const GetItemResponseTrustedCidrList = /*@__PURE__*/ S.Array(S.String);
744
621
  export const GetItemResponseTrustedAsnsList = /*@__PURE__*/ S.Array(S.Number);
745
622
  export const GetItemResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
746
623
  ok: S.Boolean,
747
624
  trusted_cidr: S.optional(GetItemResponseTrustedCidrList),
748
625
  trusted_asns: S.optional(GetItemResponseTrustedAsnsList),
749
- })).annotate({
750
- identifier: "GetItemResponse",
751
- });
626
+ })).annotate({ identifier: "GetItemResponse" });
752
627
  export const GetSettingsRequestUserIdsList = /*@__PURE__*/ S.Array(S.String);
753
628
  export const GetSettingsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
754
629
  user_ids: GetSettingsRequestUserIdsList,
755
- }).pipe(T.Http({
756
- method: "POST",
757
- uri: "/admin.users.session.getSettings",
758
- code: 200,
759
- }))).annotate({
760
- identifier: "GetSettingsRequest",
761
- });
630
+ }).pipe(T.Http({ method: "POST", uri: "/admin.users.session.getSettings", code: 200 }))).annotate({ identifier: "GetSettingsRequest" });
762
631
  export const GetSettingsResponseSessionSettingsItem = /*@__PURE__*/ S.suspend(() => S.Struct({
763
632
  user_id: S.String,
764
633
  desktop_app_browser_quit: S.Unknown,
@@ -772,32 +641,21 @@ export const GetSettingsResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
772
641
  ok: S.Boolean,
773
642
  session_settings: S.optional(GetSettingsResponseSessionSettingsList),
774
643
  no_settings_applied: S.optional(GetSettingsResponseNoSettingsAppliedList),
775
- })).annotate({
776
- identifier: "GetSettingsResponse",
777
- });
644
+ })).annotate({ identifier: "GetSettingsResponse" });
778
645
  export const GetTeamsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
779
646
  channel_id: S.String,
780
647
  cursor: S.optional(S.String),
781
648
  limit: S.optional(S.Number),
782
- }).pipe(T.Http({ method: "POST", uri: "/admin.conversations.getTeams", code: 200 }))).annotate({
783
- identifier: "GetTeamsRequest",
784
- });
649
+ }).pipe(T.Http({ method: "POST", uri: "/admin.conversations.getTeams", code: 200 }))).annotate({ identifier: "GetTeamsRequest" });
785
650
  export const GetTeamsResponseResponseMetadata = AnalyticsMessagesActivityResponseResponseMetadata;
786
651
  export const GetTeamsResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
787
652
  ok: S.Boolean,
788
653
  response_metadata: S.optional(AnalyticsMessagesActivityResponseResponseMetadata),
789
- })).annotate({
790
- identifier: "GetTeamsResponse",
791
- });
654
+ })).annotate({ identifier: "GetTeamsResponse" });
792
655
  export const InvalidateUsersSessionRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
793
- team_id: S.optional(S.String),
794
656
  user_id: S.String,
795
657
  session_id: S.Number,
796
- }).pipe(T.Http({
797
- method: "POST",
798
- uri: "/admin.users.session.invalidate",
799
- code: 200,
800
- }))).annotate({
658
+ }).pipe(T.Http({ method: "POST", uri: "/admin.users.session.invalidate", code: 200 }))).annotate({
801
659
  identifier: "InvalidateUsersSessionRequest",
802
660
  });
803
661
  export const InvalidateUsersSessionResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
@@ -839,30 +697,18 @@ export const InviteUserRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
839
697
  is_ultra_restricted: S.optional(S.Boolean),
840
698
  guest_expiration_ts: S.optional(S.String),
841
699
  email_password_policy_enabled: S.optional(S.Boolean),
842
- }).pipe(T.Http({ method: "POST", uri: "/admin.users.invite", code: 200 }))).annotate({
843
- identifier: "InviteUserRequest",
844
- });
700
+ }).pipe(T.Http({ method: "POST", uri: "/admin.users.invite", code: 200 }))).annotate({ identifier: "InviteUserRequest" });
845
701
  export const InviteUserResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
846
702
  ok: S.Boolean,
847
- })).annotate({
848
- identifier: "InviteUserResponse",
849
- });
703
+ })).annotate({ identifier: "InviteUserResponse" });
850
704
  export const LinkObjectsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
851
705
  channel: S.String,
852
706
  record_id: S.String,
853
707
  salesforce_org_id: S.String,
854
- }).pipe(T.Http({
855
- method: "POST",
856
- uri: "/admin.conversations.linkObjects",
857
- code: 200,
858
- }))).annotate({
859
- identifier: "LinkObjectsRequest",
860
- });
708
+ }).pipe(T.Http({ method: "POST", uri: "/admin.conversations.linkObjects", code: 200 }))).annotate({ identifier: "LinkObjectsRequest" });
861
709
  export const LinkObjectsResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
862
710
  ok: S.Boolean,
863
- })).annotate({
864
- identifier: "LinkObjectsResponse",
865
- });
711
+ })).annotate({ identifier: "LinkObjectsResponse" });
866
712
  export const ListAppsActivitiesRequestSortDirection = S.String;
867
713
  export const ListAppsActivitiesRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
868
714
  app_id: S.optional(S.String),
@@ -901,18 +747,14 @@ export const ListAppsApprovedRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
901
747
  team_id: S.optional(S.String.pipe(T.Query())),
902
748
  enterprise_id: S.optional(S.String.pipe(T.Query())),
903
749
  certified: S.optional(S.Boolean.pipe(T.Query())),
904
- }).pipe(T.Http({ method: "GET", uri: "/admin.apps.approved.list", code: 200 }))).annotate({
905
- identifier: "ListAppsApprovedRequest",
906
- });
750
+ }).pipe(T.Http({ method: "GET", uri: "/admin.apps.approved.list", code: 200 }))).annotate({ identifier: "ListAppsApprovedRequest" });
907
751
  export const ListAppsApprovedResponseApprovedAppsList = /*@__PURE__*/ S.Array(S.Unknown);
908
752
  export const ListAppsApprovedResponseResponseMetadata = AnalyticsMessagesActivityResponseResponseMetadata;
909
753
  export const ListAppsApprovedResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
910
754
  ok: S.Boolean,
911
755
  approved_apps: ListAppsApprovedResponseApprovedAppsList,
912
756
  response_metadata: S.optional(AnalyticsMessagesActivityResponseResponseMetadata),
913
- })).annotate({
914
- identifier: "ListAppsApprovedResponse",
915
- });
757
+ })).annotate({ identifier: "ListAppsApprovedResponse" });
916
758
  export const ListAppsMcpServersRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
917
759
  limit: S.optional(S.Number),
918
760
  cursor: S.optional(S.String),
@@ -940,15 +782,10 @@ export const ListAppsMcpServersResponse = /*@__PURE__*/ S.suspend(() => S.Struct
940
782
  });
941
783
  export const ListAppsMcpServersPermissionsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
942
784
  app_id: S.String,
943
- }).pipe(T.Http({
944
- method: "POST",
945
- uri: "/admin.apps.mcp.servers.permissions.list",
946
- code: 200,
947
- }))).annotate({
785
+ }).pipe(T.Http({ method: "POST", uri: "/admin.apps.mcp.servers.permissions.list", code: 200 }))).annotate({
948
786
  identifier: "ListAppsMcpServersPermissionsRequest",
949
787
  });
950
- export const ListAppsMcpServersPermissionsResponseServersList =
951
- /*@__PURE__*/ S.Array(S.Unknown);
788
+ export const ListAppsMcpServersPermissionsResponseServersList = /*@__PURE__*/ S.Array(S.Unknown);
952
789
  export const ListAppsMcpServersPermissionsResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
953
790
  ok: S.Boolean,
954
791
  servers: ListAppsMcpServersPermissionsResponseServersList,
@@ -971,18 +808,14 @@ export const ListAppsRequestsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
971
808
  team_id: S.optional(S.String.pipe(T.Query())),
972
809
  enterprise_id: S.optional(S.String.pipe(T.Query())),
973
810
  certified: S.optional(S.Boolean.pipe(T.Query())),
974
- }).pipe(T.Http({ method: "GET", uri: "/admin.apps.requests.list", code: 200 }))).annotate({
975
- identifier: "ListAppsRequestsRequest",
976
- });
811
+ }).pipe(T.Http({ method: "GET", uri: "/admin.apps.requests.list", code: 200 }))).annotate({ identifier: "ListAppsRequestsRequest" });
977
812
  export const ListAppsRequestsResponseAppRequestsList = /*@__PURE__*/ S.Array(S.Unknown);
978
813
  export const ListAppsRequestsResponseResponseMetadata = AnalyticsMessagesActivityResponseResponseMetadata;
979
814
  export const ListAppsRequestsResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
980
815
  ok: S.Boolean,
981
816
  app_requests: ListAppsRequestsResponseAppRequestsList,
982
817
  response_metadata: S.optional(AnalyticsMessagesActivityResponseResponseMetadata),
983
- })).annotate({
984
- identifier: "ListAppsRequestsResponse",
985
- });
818
+ })).annotate({ identifier: "ListAppsRequestsResponse" });
986
819
  export const ListAppsRestrictedRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
987
820
  limit: S.optional(S.Number.pipe(T.Query())),
988
821
  cursor: S.optional(S.String.pipe(T.Query())),
@@ -992,8 +825,7 @@ export const ListAppsRestrictedRequest = /*@__PURE__*/ S.suspend(() => S.Struct(
992
825
  }).pipe(T.Http({ method: "GET", uri: "/admin.apps.restricted.list", code: 200 }))).annotate({
993
826
  identifier: "ListAppsRestrictedRequest",
994
827
  });
995
- export const ListAppsRestrictedResponseRestrictedAppsList =
996
- /*@__PURE__*/ S.Array(S.Unknown);
828
+ export const ListAppsRestrictedResponseRestrictedAppsList = /*@__PURE__*/ S.Array(S.Unknown);
997
829
  export const ListAppsRestrictedResponseResponseMetadata = AnalyticsMessagesActivityResponseResponseMetadata;
998
830
  export const ListAppsRestrictedResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
999
831
  ok: S.Boolean,
@@ -1010,11 +842,8 @@ export const ListAssignmentsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
1010
842
  role_ids: S.optional(ListAssignmentsRequestRoleIdsList.pipe(T.Query())),
1011
843
  entity_ids: S.optional(ListAssignmentsRequestEntityIdsList.pipe(T.Query())),
1012
844
  sort_dir: S.optional(S.String.pipe(T.Query())),
1013
- }).pipe(T.Http({ method: "GET", uri: "/admin.roles.listAssignments", code: 200 }))).annotate({
1014
- identifier: "ListAssignmentsRequest",
1015
- });
1016
- export const ListAssignmentsResponseRoleAssignmentsItem =
1017
- /*@__PURE__*/ S.suspend(() => S.Struct({
845
+ }).pipe(T.Http({ method: "GET", uri: "/admin.roles.listAssignments", code: 200 }))).annotate({ identifier: "ListAssignmentsRequest" });
846
+ export const ListAssignmentsResponseRoleAssignmentsItem = /*@__PURE__*/ S.suspend(() => S.Struct({
1018
847
  role_id: S.String,
1019
848
  entity_id: S.String,
1020
849
  user_id: S.String,
@@ -1029,58 +858,40 @@ export const ListAssignmentsResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
1029
858
  error: S.optional(S.String),
1030
859
  role_assignments: ListAssignmentsResponseRoleAssignmentsList,
1031
860
  response_metadata: S.optional(AnalyticsMessagesActivityResponseResponseMetadata),
1032
- })).annotate({
1033
- identifier: "ListAssignmentsResponse",
1034
- });
861
+ })).annotate({ identifier: "ListAssignmentsResponse" });
1035
862
  export const ListBarriersRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
1036
863
  limit: S.optional(S.Number.pipe(T.Query())),
1037
864
  cursor: S.optional(S.String.pipe(T.Query())),
1038
- }).pipe(T.Http({ method: "GET", uri: "/admin.barriers.list", code: 200 }))).annotate({
1039
- identifier: "ListBarriersRequest",
1040
- });
865
+ }).pipe(T.Http({ method: "GET", uri: "/admin.barriers.list", code: 200 }))).annotate({ identifier: "ListBarriersRequest" });
1041
866
  export const ListBarriersResponseBarriersList = /*@__PURE__*/ S.Array(S.Unknown);
1042
867
  export const ListBarriersResponseResponseMetadata = AnalyticsMessagesActivityResponseResponseMetadata;
1043
868
  export const ListBarriersResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
1044
869
  ok: S.Boolean,
1045
870
  barriers: ListBarriersResponseBarriersList,
1046
871
  response_metadata: S.optional(AnalyticsMessagesActivityResponseResponseMetadata),
1047
- })).annotate({
1048
- identifier: "ListBarriersResponse",
1049
- });
872
+ })).annotate({ identifier: "ListBarriersResponse" });
1050
873
  export const ListChannelsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
1051
874
  usergroup_id: S.String,
1052
875
  team_id: S.optional(S.String),
1053
876
  include_num_members: S.optional(S.Boolean),
1054
- }).pipe(T.Http({
1055
- method: "POST",
1056
- uri: "/admin.usergroups.listChannels",
1057
- code: 200,
1058
- }))).annotate({
1059
- identifier: "ListChannelsRequest",
1060
- });
877
+ }).pipe(T.Http({ method: "POST", uri: "/admin.usergroups.listChannels", code: 200 }))).annotate({ identifier: "ListChannelsRequest" });
1061
878
  export const ListChannelsResponseChannelsList = /*@__PURE__*/ S.Array(S.String);
1062
879
  export const ListChannelsResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
1063
880
  ok: S.Boolean,
1064
881
  channels: ListChannelsResponseChannelsList,
1065
882
  error: S.optional(S.String),
1066
- })).annotate({
1067
- identifier: "ListChannelsResponse",
1068
- });
883
+ })).annotate({ identifier: "ListChannelsResponse" });
1069
884
  export const ListEmojiRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
1070
885
  cursor: S.optional(S.String.pipe(T.Query())),
1071
886
  limit: S.optional(S.Number.pipe(T.Query())),
1072
- }).pipe(T.Http({ method: "GET", uri: "/admin.emoji.list", code: 200 }))).annotate({
1073
- identifier: "ListEmojiRequest",
1074
- });
887
+ }).pipe(T.Http({ method: "GET", uri: "/admin.emoji.list", code: 200 }))).annotate({ identifier: "ListEmojiRequest" });
1075
888
  export const ListEmojiResponseEmojiMap = /*@__PURE__*/ S.Record(S.String, S.Unknown);
1076
889
  export const ListEmojiResponseResponseMetadata = AnalyticsMessagesActivityResponseResponseMetadata;
1077
890
  export const ListEmojiResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
1078
891
  ok: S.Boolean,
1079
892
  emoji: ListEmojiResponseEmojiMap,
1080
893
  response_metadata: S.optional(AnalyticsMessagesActivityResponseResponseMetadata),
1081
- })).annotate({
1082
- identifier: "ListEmojiResponse",
1083
- });
894
+ })).annotate({ identifier: "ListEmojiResponse" });
1084
895
  export const ListFunctionsRequestAppIdsList = /*@__PURE__*/ S.Array(S.String);
1085
896
  export const ListFunctionsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
1086
897
  team_id: S.optional(S.String),
@@ -1088,35 +899,23 @@ export const ListFunctionsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
1088
899
  include_non_distributed_functions: S.optional(S.Boolean),
1089
900
  cursor: S.optional(S.String),
1090
901
  limit: S.optional(S.Number),
1091
- }).pipe(T.Http({ method: "POST", uri: "/admin.functions.list", code: 200 }))).annotate({
1092
- identifier: "ListFunctionsRequest",
1093
- });
902
+ }).pipe(T.Http({ method: "POST", uri: "/admin.functions.list", code: 200 }))).annotate({ identifier: "ListFunctionsRequest" });
1094
903
  export const ListFunctionsResponseFunctionsList = /*@__PURE__*/ S.Array(S.Unknown);
1095
904
  export const ListFunctionsResponseResponseMetadata = AnalyticsMessagesActivityResponseResponseMetadata;
1096
905
  export const ListFunctionsResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
1097
906
  ok: S.Boolean,
1098
907
  functions: ListFunctionsResponseFunctionsList,
1099
908
  response_metadata: S.optional(AnalyticsMessagesActivityResponseResponseMetadata),
1100
- })).annotate({
1101
- identifier: "ListFunctionsResponse",
1102
- });
909
+ })).annotate({ identifier: "ListFunctionsResponse" });
1103
910
  export const ListGroupsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
1104
911
  channel_id: S.String.pipe(T.Query()),
1105
912
  team_id: S.optional(S.String.pipe(T.Query())),
1106
- }).pipe(T.Http({
1107
- method: "GET",
1108
- uri: "/admin.conversations.restrictAccess.listGroups",
1109
- code: 200,
1110
- }))).annotate({
1111
- identifier: "ListGroupsRequest",
1112
- });
913
+ }).pipe(T.Http({ method: "GET", uri: "/admin.conversations.restrictAccess.listGroups", code: 200 }))).annotate({ identifier: "ListGroupsRequest" });
1113
914
  export const ListGroupsResponseGroupIdsList = /*@__PURE__*/ S.Array(S.String);
1114
915
  export const ListGroupsResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
1115
916
  ok: S.Boolean,
1116
917
  group_ids: ListGroupsResponseGroupIdsList,
1117
- })).annotate({
1118
- identifier: "ListGroupsResponse",
1119
- });
918
+ })).annotate({ identifier: "ListGroupsResponse" });
1120
919
  export const ListInviteRequestsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
1121
920
  team_id: S.optional(S.String),
1122
921
  cursor: S.optional(S.String),
@@ -1125,8 +924,7 @@ export const ListInviteRequestsRequest = /*@__PURE__*/ S.suspend(() => S.Struct(
1125
924
  identifier: "ListInviteRequestsRequest",
1126
925
  });
1127
926
  export const ListInviteRequestsResponseResponseMetadata = AnalyticsMessagesActivityResponseResponseMetadata;
1128
- export const ListInviteRequestsResponseInviteRequestsList =
1129
- /*@__PURE__*/ S.Array(S.Unknown);
927
+ export const ListInviteRequestsResponseInviteRequestsList = /*@__PURE__*/ S.Array(S.Unknown);
1130
928
  export const ListInviteRequestsResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
1131
929
  ok: S.Boolean,
1132
930
  response_metadata: S.optional(AnalyticsMessagesActivityResponseResponseMetadata),
@@ -1138,16 +936,11 @@ export const ListInviteRequestsApprovedRequest = /*@__PURE__*/ S.suspend(() => S
1138
936
  team_id: S.optional(S.String),
1139
937
  cursor: S.optional(S.String),
1140
938
  limit: S.optional(S.Number),
1141
- }).pipe(T.Http({
1142
- method: "POST",
1143
- uri: "/admin.inviteRequests.approved.list",
1144
- code: 200,
1145
- }))).annotate({
939
+ }).pipe(T.Http({ method: "POST", uri: "/admin.inviteRequests.approved.list", code: 200 }))).annotate({
1146
940
  identifier: "ListInviteRequestsApprovedRequest",
1147
941
  });
1148
942
  export const ListInviteRequestsApprovedResponseResponseMetadata = AnalyticsMessagesActivityResponseResponseMetadata;
1149
- export const ListInviteRequestsApprovedResponseApprovedRequestsList =
1150
- /*@__PURE__*/ S.Array(S.Unknown);
943
+ export const ListInviteRequestsApprovedResponseApprovedRequestsList = /*@__PURE__*/ S.Array(S.Unknown);
1151
944
  export const ListInviteRequestsApprovedResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
1152
945
  ok: S.Boolean,
1153
946
  response_metadata: S.optional(AnalyticsMessagesActivityResponseResponseMetadata),
@@ -1159,16 +952,11 @@ export const ListInviteRequestsDeniedRequest = /*@__PURE__*/ S.suspend(() => S.S
1159
952
  team_id: S.optional(S.String),
1160
953
  cursor: S.optional(S.String),
1161
954
  limit: S.optional(S.Number),
1162
- }).pipe(T.Http({
1163
- method: "POST",
1164
- uri: "/admin.inviteRequests.denied.list",
1165
- code: 200,
1166
- }))).annotate({
955
+ }).pipe(T.Http({ method: "POST", uri: "/admin.inviteRequests.denied.list", code: 200 }))).annotate({
1167
956
  identifier: "ListInviteRequestsDeniedRequest",
1168
957
  });
1169
958
  export const ListInviteRequestsDeniedResponseResponseMetadata = AnalyticsMessagesActivityResponseResponseMetadata;
1170
- export const ListInviteRequestsDeniedResponseDeniedRequestsList =
1171
- /*@__PURE__*/ S.Array(S.Unknown);
959
+ export const ListInviteRequestsDeniedResponseDeniedRequestsList = /*@__PURE__*/ S.Array(S.Unknown);
1172
960
  export const ListInviteRequestsDeniedResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
1173
961
  ok: S.Boolean,
1174
962
  response_metadata: S.optional(AnalyticsMessagesActivityResponseResponseMetadata),
@@ -1192,8 +980,7 @@ export const ListOriginalConnectedChannelInfoRequest = /*@__PURE__*/ S.suspend((
1192
980
  export const ListOriginalConnectedChannelInfoResponseResponseMetadata = AnalyticsMessagesActivityResponseResponseMetadata;
1193
981
  export const ListOriginalConnectedChannelInfoResponseChannelsItemInternalTeamIdsList =
1194
982
  /*@__PURE__*/ S.Array(S.String);
1195
- export const ListOriginalConnectedChannelInfoResponseChannelsItem =
1196
- /*@__PURE__*/ S.suspend(() => S.Struct({
983
+ export const ListOriginalConnectedChannelInfoResponseChannelsItem = /*@__PURE__*/ S.suspend(() => S.Struct({
1197
984
  id: S.String,
1198
985
  internal_team_ids: ListOriginalConnectedChannelInfoResponseChannelsItemInternalTeamIdsList,
1199
986
  original_connected_host_id: S.String,
@@ -1201,8 +988,7 @@ export const ListOriginalConnectedChannelInfoResponseChannelsItem =
1201
988
  })).annotate({
1202
989
  identifier: "ListOriginalConnectedChannelInfoResponseChannelsItem",
1203
990
  });
1204
- export const ListOriginalConnectedChannelInfoResponseChannelsList =
1205
- /*@__PURE__*/ S.Array(ListOriginalConnectedChannelInfoResponseChannelsItem);
991
+ export const ListOriginalConnectedChannelInfoResponseChannelsList = /*@__PURE__*/ S.Array(ListOriginalConnectedChannelInfoResponseChannelsItem);
1206
992
  export const ListOriginalConnectedChannelInfoResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
1207
993
  ok: S.Boolean,
1208
994
  response_metadata: S.optional(AnalyticsMessagesActivityResponseResponseMetadata),
@@ -1213,9 +999,7 @@ export const ListOriginalConnectedChannelInfoResponse = /*@__PURE__*/ S.suspend(
1213
999
  export const ListTeamsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
1214
1000
  limit: S.optional(S.Number),
1215
1001
  cursor: S.optional(S.String),
1216
- }).pipe(T.Http({ method: "POST", uri: "/admin.teams.list", code: 200 }))).annotate({
1217
- identifier: "ListTeamsRequest",
1218
- });
1002
+ }).pipe(T.Http({ method: "POST", uri: "/admin.teams.list", code: 200 }))).annotate({ identifier: "ListTeamsRequest" });
1219
1003
  export const ListTeamsResponseTeamsItemPrimaryOwner = /*@__PURE__*/ S.suspend(() => S.Struct({
1220
1004
  user_id: S.String,
1221
1005
  email: S.String,
@@ -1237,41 +1021,31 @@ export const ListTeamsResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
1237
1021
  ok: S.Boolean,
1238
1022
  teams: ListTeamsResponseTeamsList,
1239
1023
  response_metadata: S.optional(AnalyticsMessagesActivityResponseResponseMetadata),
1240
- })).annotate({
1241
- identifier: "ListTeamsResponse",
1242
- });
1024
+ })).annotate({ identifier: "ListTeamsResponse" });
1243
1025
  export const ListTeamsAdminsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
1244
1026
  limit: S.optional(S.Number.pipe(T.Query())),
1245
1027
  cursor: S.optional(S.String.pipe(T.Query())),
1246
1028
  team_id: S.String.pipe(T.Query()),
1247
- }).pipe(T.Http({ method: "GET", uri: "/admin.teams.admins.list", code: 200 }))).annotate({
1248
- identifier: "ListTeamsAdminsRequest",
1249
- });
1029
+ }).pipe(T.Http({ method: "GET", uri: "/admin.teams.admins.list", code: 200 }))).annotate({ identifier: "ListTeamsAdminsRequest" });
1250
1030
  export const ListTeamsAdminsResponseAdminIdsList = /*@__PURE__*/ S.Array(S.String);
1251
1031
  export const ListTeamsAdminsResponseResponseMetadata = AnalyticsMessagesActivityResponseResponseMetadata;
1252
1032
  export const ListTeamsAdminsResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
1253
1033
  ok: S.Boolean,
1254
1034
  admin_ids: ListTeamsAdminsResponseAdminIdsList,
1255
1035
  response_metadata: S.optional(AnalyticsMessagesActivityResponseResponseMetadata),
1256
- })).annotate({
1257
- identifier: "ListTeamsAdminsResponse",
1258
- });
1036
+ })).annotate({ identifier: "ListTeamsAdminsResponse" });
1259
1037
  export const ListTeamsOwnersRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
1260
1038
  team_id: S.String.pipe(T.Query()),
1261
1039
  limit: S.optional(S.Number.pipe(T.Query())),
1262
1040
  cursor: S.optional(S.String.pipe(T.Query())),
1263
- }).pipe(T.Http({ method: "GET", uri: "/admin.teams.owners.list", code: 200 }))).annotate({
1264
- identifier: "ListTeamsOwnersRequest",
1265
- });
1041
+ }).pipe(T.Http({ method: "GET", uri: "/admin.teams.owners.list", code: 200 }))).annotate({ identifier: "ListTeamsOwnersRequest" });
1266
1042
  export const ListTeamsOwnersResponseOwnerIdsList = /*@__PURE__*/ S.Array(S.String);
1267
1043
  export const ListTeamsOwnersResponseResponseMetadata = AnalyticsMessagesActivityResponseResponseMetadata;
1268
1044
  export const ListTeamsOwnersResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
1269
1045
  ok: S.Boolean,
1270
1046
  owner_ids: ListTeamsOwnersResponseOwnerIdsList,
1271
1047
  response_metadata: S.optional(AnalyticsMessagesActivityResponseResponseMetadata),
1272
- })).annotate({
1273
- identifier: "ListTeamsOwnersResponse",
1274
- });
1048
+ })).annotate({ identifier: "ListTeamsOwnersResponse" });
1275
1049
  export const ListUsersRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
1276
1050
  team_id: S.optional(S.String),
1277
1051
  cursor: S.optional(S.String),
@@ -1281,9 +1055,7 @@ export const ListUsersRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
1281
1055
  include_admins: S.optional(S.Boolean),
1282
1056
  include_owners: S.optional(S.Boolean),
1283
1057
  limit: S.optional(S.Number),
1284
- }).pipe(T.Http({ method: "POST", uri: "/admin.users.list", code: 200 }))).annotate({
1285
- identifier: "ListUsersRequest",
1286
- });
1058
+ }).pipe(T.Http({ method: "POST", uri: "/admin.users.list", code: 200 }))).annotate({ identifier: "ListUsersRequest" });
1287
1059
  export const ListUsersResponseUsersItemRolesList = /*@__PURE__*/ S.Array(S.String);
1288
1060
  export const ListUsersResponseUsersItemWorkspacesList = /*@__PURE__*/ S.Array(S.String);
1289
1061
  export const ListUsersResponseUsersItem = /*@__PURE__*/ S.suspend(() => S.Struct({
@@ -1315,20 +1087,15 @@ export const ListUsersResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
1315
1087
  ok: S.Boolean,
1316
1088
  users: ListUsersResponseUsersList,
1317
1089
  response_metadata: S.optional(AnalyticsMessagesActivityResponseResponseMetadata),
1318
- })).annotate({
1319
- identifier: "ListUsersResponse",
1320
- });
1090
+ })).annotate({ identifier: "ListUsersResponse" });
1321
1091
  export const ListUsersSessionRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
1322
1092
  team_id: S.optional(S.String),
1323
1093
  user_id: S.optional(S.String),
1324
1094
  limit: S.optional(S.Number),
1325
1095
  cursor: S.optional(S.String),
1326
- }).pipe(T.Http({ method: "POST", uri: "/admin.users.session.list", code: 200 }))).annotate({
1327
- identifier: "ListUsersSessionRequest",
1328
- });
1096
+ }).pipe(T.Http({ method: "POST", uri: "/admin.users.session.list", code: 200 }))).annotate({ identifier: "ListUsersSessionRequest" });
1329
1097
  export const ListUsersSessionResponseResponseMetadata = AnalyticsMessagesActivityResponseResponseMetadata;
1330
- export const ListUsersSessionResponseActiveSessionsItemRecent =
1331
- /*@__PURE__*/ S.suspend(() => S.Struct({
1098
+ export const ListUsersSessionResponseActiveSessionsItemRecent = /*@__PURE__*/ S.suspend(() => S.Struct({
1332
1099
  device_hardware: S.optional(S.String),
1333
1100
  os: S.optional(S.String),
1334
1101
  os_version: S.optional(S.String),
@@ -1337,8 +1104,7 @@ export const ListUsersSessionResponseActiveSessionsItemRecent =
1337
1104
  })).annotate({
1338
1105
  identifier: "ListUsersSessionResponseActiveSessionsItemRecent",
1339
1106
  });
1340
- export const ListUsersSessionResponseActiveSessionsItemCreated =
1341
- /*@__PURE__*/ S.suspend(() => S.Struct({
1107
+ export const ListUsersSessionResponseActiveSessionsItemCreated = /*@__PURE__*/ S.suspend(() => S.Struct({
1342
1108
  device_hardware: S.optional(S.String),
1343
1109
  os: S.optional(S.String),
1344
1110
  os_version: S.optional(S.String),
@@ -1347,8 +1113,7 @@ export const ListUsersSessionResponseActiveSessionsItemCreated =
1347
1113
  })).annotate({
1348
1114
  identifier: "ListUsersSessionResponseActiveSessionsItemCreated",
1349
1115
  });
1350
- export const ListUsersSessionResponseActiveSessionsItem =
1351
- /*@__PURE__*/ S.suspend(() => S.Struct({
1116
+ export const ListUsersSessionResponseActiveSessionsItem = /*@__PURE__*/ S.suspend(() => S.Struct({
1352
1117
  user_id: S.String,
1353
1118
  team_id: S.String,
1354
1119
  session_id: S.Number,
@@ -1362,19 +1127,14 @@ export const ListUsersSessionResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
1362
1127
  ok: S.Boolean,
1363
1128
  response_metadata: S.optional(AnalyticsMessagesActivityResponseResponseMetadata),
1364
1129
  active_sessions: ListUsersSessionResponseActiveSessionsList,
1365
- })).annotate({
1366
- identifier: "ListUsersSessionResponse",
1367
- });
1130
+ })).annotate({ identifier: "ListUsersSessionResponse" });
1368
1131
  export const LookupAppsConfigRequestAppIdsList = /*@__PURE__*/ S.Array(S.String);
1369
1132
  export const LookupAppsConfigRequestRichLinkPreviewTypesItem = S.String;
1370
- export const LookupAppsConfigRequestRichLinkPreviewTypesList =
1371
- /*@__PURE__*/ S.Array(LookupAppsConfigRequestRichLinkPreviewTypesItem);
1133
+ export const LookupAppsConfigRequestRichLinkPreviewTypesList = /*@__PURE__*/ S.Array(LookupAppsConfigRequestRichLinkPreviewTypesItem);
1372
1134
  export const LookupAppsConfigRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
1373
1135
  app_ids: S.optional(LookupAppsConfigRequestAppIdsList),
1374
1136
  rich_link_preview_types: S.optional(LookupAppsConfigRequestRichLinkPreviewTypesList),
1375
- }).pipe(T.Http({ method: "POST", uri: "/admin.apps.config.lookup", code: 200 }))).annotate({
1376
- identifier: "LookupAppsConfigRequest",
1377
- });
1137
+ }).pipe(T.Http({ method: "POST", uri: "/admin.apps.config.lookup", code: 200 }))).annotate({ identifier: "LookupAppsConfigRequest" });
1378
1138
  export const LookupAppsConfigResponseConfigsItemWorkflowAuthStrategy = S.String;
1379
1139
  export const LookupAppsConfigResponseConfigsItem = /*@__PURE__*/ S.suspend(() => S.Struct({
1380
1140
  app_id: S.String,
@@ -1387,9 +1147,7 @@ export const LookupAppsConfigResponseConfigsList = /*@__PURE__*/ S.Array(LookupA
1387
1147
  export const LookupAppsConfigResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
1388
1148
  ok: S.Boolean,
1389
1149
  configs: LookupAppsConfigResponseConfigsList,
1390
- })).annotate({
1391
- identifier: "LookupAppsConfigResponse",
1392
- });
1150
+ })).annotate({ identifier: "LookupAppsConfigResponse" });
1393
1151
  export const LookupConversationRequestTeamIdsList = /*@__PURE__*/ S.Array(S.String);
1394
1152
  export const LookupConversationRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
1395
1153
  team_ids: LookupConversationRequestTeamIdsList,
@@ -1414,23 +1172,15 @@ export const LookupConversationResponse = /*@__PURE__*/ S.suspend(() => S.Struct
1414
1172
  })).annotate({
1415
1173
  identifier: "LookupConversationResponse",
1416
1174
  });
1417
- export const LookupFunctionsPermissionsRequestFunctionIdsList =
1418
- /*@__PURE__*/ S.Array(S.String);
1175
+ export const LookupFunctionsPermissionsRequestFunctionIdsList = /*@__PURE__*/ S.Array(S.String);
1419
1176
  export const LookupFunctionsPermissionsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
1420
1177
  function_ids: LookupFunctionsPermissionsRequestFunctionIdsList,
1421
- }).pipe(T.Http({
1422
- method: "POST",
1423
- uri: "/admin.functions.permissions.lookup",
1424
- code: 200,
1425
- }))).annotate({
1178
+ }).pipe(T.Http({ method: "POST", uri: "/admin.functions.permissions.lookup", code: 200 }))).annotate({
1426
1179
  identifier: "LookupFunctionsPermissionsRequest",
1427
1180
  });
1428
- export const LookupFunctionsPermissionsResponsePermissionsMap =
1429
- /*@__PURE__*/ S.Record(S.String, S.Unknown);
1430
- export const LookupFunctionsPermissionsResponseMetadataMap =
1431
- /*@__PURE__*/ S.Record(S.String, S.Unknown);
1432
- export const LookupFunctionsPermissionsResponseErrorsMap =
1433
- /*@__PURE__*/ S.Record(S.String, S.Unknown);
1181
+ export const LookupFunctionsPermissionsResponsePermissionsMap = /*@__PURE__*/ S.Record(S.String, S.Unknown);
1182
+ export const LookupFunctionsPermissionsResponseMetadataMap = /*@__PURE__*/ S.Record(S.String, S.Unknown);
1183
+ export const LookupFunctionsPermissionsResponseErrorsMap = /*@__PURE__*/ S.Record(S.String, S.Unknown);
1434
1184
  export const LookupFunctionsPermissionsResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
1435
1185
  ok: S.Boolean,
1436
1186
  permissions: LookupFunctionsPermissionsResponsePermissionsMap,
@@ -1439,27 +1189,23 @@ export const LookupFunctionsPermissionsResponse = /*@__PURE__*/ S.suspend(() =>
1439
1189
  })).annotate({
1440
1190
  identifier: "LookupFunctionsPermissionsResponse",
1441
1191
  });
1442
- export const LookupWorkflowsPermissionsRequestWorkflowIdsList =
1443
- /*@__PURE__*/ S.Array(S.String);
1192
+ export const LookupWorkflowsPermissionsRequestWorkflowIdsList = /*@__PURE__*/ S.Array(S.String);
1444
1193
  export const LookupWorkflowsPermissionsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
1445
1194
  workflow_ids: LookupWorkflowsPermissionsRequestWorkflowIdsList,
1446
1195
  max_workflow_triggers: S.optional(S.Number),
1447
- }).pipe(T.Http({
1448
- method: "POST",
1449
- uri: "/admin.workflows.permissions.lookup",
1450
- code: 200,
1451
- }))).annotate({
1196
+ }).pipe(T.Http({ method: "POST", uri: "/admin.workflows.permissions.lookup", code: 200 }))).annotate({
1452
1197
  identifier: "LookupWorkflowsPermissionsRequest",
1453
1198
  });
1199
+ export const LookupWorkflowsPermissionsResponsePermissionsMap = /*@__PURE__*/ S.Record(S.String, S.Unknown);
1454
1200
  export const LookupWorkflowsPermissionsResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
1455
1201
  ok: S.Boolean,
1202
+ permissions: LookupWorkflowsPermissionsResponsePermissionsMap,
1456
1203
  })).annotate({
1457
1204
  identifier: "LookupWorkflowsPermissionsResponse",
1458
1205
  });
1459
1206
  export const LookupWorkflowsTriggersTypesPermissionsRequestTriggerTypeIdsList =
1460
1207
  /*@__PURE__*/ S.Array(S.String);
1461
- export const LookupWorkflowsTriggersTypesPermissionsRequest =
1462
- /*@__PURE__*/ S.suspend(() => S.Struct({
1208
+ export const LookupWorkflowsTriggersTypesPermissionsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
1463
1209
  trigger_type_ids: LookupWorkflowsTriggersTypesPermissionsRequestTriggerTypeIdsList,
1464
1210
  }).pipe(T.Http({
1465
1211
  method: "POST",
@@ -1468,12 +1214,9 @@ export const LookupWorkflowsTriggersTypesPermissionsRequest =
1468
1214
  }))).annotate({
1469
1215
  identifier: "LookupWorkflowsTriggersTypesPermissionsRequest",
1470
1216
  });
1471
- export const LookupWorkflowsTriggersTypesPermissionsResponsePermissionsMap =
1472
- /*@__PURE__*/ S.Record(S.String, S.Unknown);
1473
- export const LookupWorkflowsTriggersTypesPermissionsResponseMetadataMap =
1474
- /*@__PURE__*/ S.Record(S.String, S.Unknown);
1475
- export const LookupWorkflowsTriggersTypesPermissionsResponse =
1476
- /*@__PURE__*/ S.suspend(() => S.Struct({
1217
+ export const LookupWorkflowsTriggersTypesPermissionsResponsePermissionsMap = /*@__PURE__*/ S.Record(S.String, S.Unknown);
1218
+ export const LookupWorkflowsTriggersTypesPermissionsResponseMetadataMap = /*@__PURE__*/ S.Record(S.String, S.Unknown);
1219
+ export const LookupWorkflowsTriggersTypesPermissionsResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
1477
1220
  ok: S.Boolean,
1478
1221
  permissions: LookupWorkflowsTriggersTypesPermissionsResponsePermissionsMap,
1479
1222
  metadata: LookupWorkflowsTriggersTypesPermissionsResponseMetadataMap,
@@ -1481,17 +1224,14 @@ export const LookupWorkflowsTriggersTypesPermissionsResponse =
1481
1224
  identifier: "LookupWorkflowsTriggersTypesPermissionsResponse",
1482
1225
  });
1483
1226
  export const RemoveAppsPermissionsRequestUserIdsList = /*@__PURE__*/ S.Array(S.String);
1484
- export const RemoveAppsPermissionsRequestUsergroupIdsList =
1485
- /*@__PURE__*/ S.Array(S.String);
1227
+ export const RemoveAppsPermissionsRequestUsergroupIdsList = /*@__PURE__*/ S.Array(S.String);
1228
+ export const RemoveAppsPermissionsRequestChannelIdsList = /*@__PURE__*/ S.Array(S.String);
1486
1229
  export const RemoveAppsPermissionsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
1487
1230
  app_id: S.String,
1488
1231
  user_ids: S.optional(RemoveAppsPermissionsRequestUserIdsList),
1489
1232
  usergroup_ids: S.optional(RemoveAppsPermissionsRequestUsergroupIdsList),
1490
- }).pipe(T.Http({
1491
- method: "POST",
1492
- uri: "/admin.apps.permissions.remove",
1493
- code: 200,
1494
- }))).annotate({
1233
+ channel_ids: S.optional(RemoveAppsPermissionsRequestChannelIdsList),
1234
+ }).pipe(T.Http({ method: "POST", uri: "/admin.apps.permissions.remove", code: 200 }))).annotate({
1495
1235
  identifier: "RemoveAppsPermissionsRequest",
1496
1236
  });
1497
1237
  export const RemoveAppsPermissionsResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
@@ -1505,13 +1245,7 @@ export const RemoveAssignmentsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
1505
1245
  role_id: S.String,
1506
1246
  entity_ids: RemoveAssignmentsRequestEntityIdsList,
1507
1247
  user_ids: RemoveAssignmentsRequestUserIdsList,
1508
- }).pipe(T.Http({
1509
- method: "POST",
1510
- uri: "/admin.roles.removeAssignments",
1511
- code: 200,
1512
- }))).annotate({
1513
- identifier: "RemoveAssignmentsRequest",
1514
- });
1248
+ }).pipe(T.Http({ method: "POST", uri: "/admin.roles.removeAssignments", code: 200 }))).annotate({ identifier: "RemoveAssignmentsRequest" });
1515
1249
  export const RemoveAssignmentsResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
1516
1250
  ok: S.Boolean,
1517
1251
  error: S.optional(S.String),
@@ -1522,28 +1256,16 @@ export const RemoveChannelsRequestChannelIdsList = /*@__PURE__*/ S.Array(S.Strin
1522
1256
  export const RemoveChannelsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
1523
1257
  usergroup_id: S.String,
1524
1258
  channel_ids: RemoveChannelsRequestChannelIdsList,
1525
- }).pipe(T.Http({
1526
- method: "POST",
1527
- uri: "/admin.usergroups.removeChannels",
1528
- code: 200,
1529
- }))).annotate({
1530
- identifier: "RemoveChannelsRequest",
1531
- });
1259
+ }).pipe(T.Http({ method: "POST", uri: "/admin.usergroups.removeChannels", code: 200 }))).annotate({ identifier: "RemoveChannelsRequest" });
1532
1260
  export const RemoveChannelsResponseInvalidChannelsList = /*@__PURE__*/ S.Array(S.String);
1533
1261
  export const RemoveChannelsResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
1534
1262
  ok: S.Boolean,
1535
1263
  error: S.optional(S.String),
1536
1264
  invalid_channels: S.optional(RemoveChannelsResponseInvalidChannelsList),
1537
- })).annotate({
1538
- identifier: "RemoveChannelsResponse",
1539
- });
1265
+ })).annotate({ identifier: "RemoveChannelsResponse" });
1540
1266
  export const RemoveCustomRetentionRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
1541
1267
  channel_id: S.String,
1542
- }).pipe(T.Http({
1543
- method: "POST",
1544
- uri: "/admin.conversations.removeCustomRetention",
1545
- code: 200,
1546
- }))).annotate({
1268
+ }).pipe(T.Http({ method: "POST", uri: "/admin.conversations.removeCustomRetention", code: 200 }))).annotate({
1547
1269
  identifier: "RemoveCustomRetentionRequest",
1548
1270
  });
1549
1271
  export const RemoveCustomRetentionResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
@@ -1553,71 +1275,57 @@ export const RemoveCustomRetentionResponse = /*@__PURE__*/ S.suspend(() => S.Str
1553
1275
  });
1554
1276
  export const RemoveEmojiRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
1555
1277
  name: S.String.pipe(T.Query()),
1556
- }).pipe(T.Http({ method: "GET", uri: "/admin.emoji.remove", code: 200 }))).annotate({
1557
- identifier: "RemoveEmojiRequest",
1558
- });
1278
+ }).pipe(T.Http({ method: "GET", uri: "/admin.emoji.remove", code: 200 }))).annotate({ identifier: "RemoveEmojiRequest" });
1559
1279
  export const RemoveEmojiResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
1560
1280
  ok: S.Boolean,
1561
- })).annotate({
1562
- identifier: "RemoveEmojiResponse",
1563
- });
1281
+ })).annotate({ identifier: "RemoveEmojiResponse" });
1564
1282
  export const RemoveEntitiesRequestEntityIdsList = /*@__PURE__*/ S.Array(S.String);
1565
1283
  export const RemoveEntitiesRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
1566
1284
  policy_name: S.String,
1567
1285
  entity_type: S.Unknown,
1568
1286
  entity_ids: RemoveEntitiesRequestEntityIdsList,
1569
- }).pipe(T.Http({
1570
- method: "POST",
1571
- uri: "/admin.auth.policy.removeEntities",
1572
- code: 200,
1573
- }))).annotate({
1574
- identifier: "RemoveEntitiesRequest",
1575
- });
1287
+ }).pipe(T.Http({ method: "POST", uri: "/admin.auth.policy.removeEntities", code: 200 }))).annotate({ identifier: "RemoveEntitiesRequest" });
1576
1288
  export const RemoveEntitiesResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
1577
1289
  ok: S.Boolean,
1578
1290
  entity_total_count: S.Number,
1579
- })).annotate({
1580
- identifier: "RemoveEntitiesResponse",
1581
- });
1291
+ })).annotate({ identifier: "RemoveEntitiesResponse" });
1582
1292
  export const RemoveGroupRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
1583
1293
  team_id: S.String.pipe(T.Query()),
1584
1294
  group_id: S.String.pipe(T.Query()),
1585
1295
  channel_id: S.String.pipe(T.Query()),
1586
- }).pipe(T.Http({
1587
- method: "GET",
1588
- uri: "/admin.conversations.restrictAccess.removeGroup",
1589
- code: 200,
1590
- }))).annotate({
1591
- identifier: "RemoveGroupRequest",
1592
- });
1296
+ }).pipe(T.Http({ method: "GET", uri: "/admin.conversations.restrictAccess.removeGroup", code: 200 }))).annotate({ identifier: "RemoveGroupRequest" });
1593
1297
  export const RemoveGroupResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
1594
1298
  ok: S.Boolean,
1595
- })).annotate({
1596
- identifier: "RemoveGroupResponse",
1597
- });
1299
+ })).annotate({ identifier: "RemoveGroupResponse" });
1300
+ export const RemoveTeamsRequestTeamIdsList = /*@__PURE__*/ S.Array(S.String);
1301
+ export const RemoveTeamsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
1302
+ usergroup_id: S.String,
1303
+ team_ids: RemoveTeamsRequestTeamIdsList,
1304
+ }).pipe(T.Http({ method: "POST", uri: "/admin.usergroups.removeTeams", code: 200 }))).annotate({ identifier: "RemoveTeamsRequest" });
1305
+ export const RemoveTeamsResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
1306
+ ok: S.Boolean,
1307
+ })).annotate({ identifier: "RemoveTeamsResponse" });
1598
1308
  export const RemoveUserRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
1599
1309
  team_id: S.String,
1600
1310
  user_id: S.String,
1601
- }).pipe(T.Http({ method: "POST", uri: "/admin.users.remove", code: 200 }))).annotate({
1602
- identifier: "RemoveUserRequest",
1603
- });
1311
+ }).pipe(T.Http({ method: "POST", uri: "/admin.users.remove", code: 200 }))).annotate({ identifier: "RemoveUserRequest" });
1604
1312
  export const RemoveUserResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
1605
1313
  ok: S.Boolean,
1606
- })).annotate({
1607
- identifier: "RemoveUserResponse",
1608
- });
1609
- export const RemoveWorkflowsCollaboratorRequestWorkflowIdsList =
1610
- /*@__PURE__*/ S.Array(S.String);
1611
- export const RemoveWorkflowsCollaboratorRequestCollaboratorIdsList =
1612
- /*@__PURE__*/ S.Array(S.String);
1314
+ })).annotate({ identifier: "RemoveUserResponse" });
1315
+ export const RemoveUsersRequestUsersList = /*@__PURE__*/ S.Array(S.String);
1316
+ export const RemoveUsersRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
1317
+ id: S.String,
1318
+ users: RemoveUsersRequestUsersList,
1319
+ }).pipe(T.Http({ method: "POST", uri: "/admin.usergroups.removeUsers", code: 200 }))).annotate({ identifier: "RemoveUsersRequest" });
1320
+ export const RemoveUsersResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
1321
+ ok: S.Boolean,
1322
+ })).annotate({ identifier: "RemoveUsersResponse" });
1323
+ export const RemoveWorkflowsCollaboratorRequestWorkflowIdsList = /*@__PURE__*/ S.Array(S.String);
1324
+ export const RemoveWorkflowsCollaboratorRequestCollaboratorIdsList = /*@__PURE__*/ S.Array(S.String);
1613
1325
  export const RemoveWorkflowsCollaboratorRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
1614
1326
  workflow_ids: RemoveWorkflowsCollaboratorRequestWorkflowIdsList,
1615
1327
  collaborator_ids: RemoveWorkflowsCollaboratorRequestCollaboratorIdsList,
1616
- }).pipe(T.Http({
1617
- method: "POST",
1618
- uri: "/admin.workflows.collaborators.remove",
1619
- code: 200,
1620
- }))).annotate({
1328
+ }).pipe(T.Http({ method: "POST", uri: "/admin.workflows.collaborators.remove", code: 200 }))).annotate({
1621
1329
  identifier: "RemoveWorkflowsCollaboratorRequest",
1622
1330
  });
1623
1331
  export const RemoveWorkflowsCollaboratorResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
@@ -1639,48 +1347,32 @@ export const RenameConversationResponse = /*@__PURE__*/ S.suspend(() => S.Struct
1639
1347
  export const RenameEmojiRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
1640
1348
  name: S.String.pipe(T.Query()),
1641
1349
  new_name: S.String.pipe(T.Query()),
1642
- }).pipe(T.Http({ method: "GET", uri: "/admin.emoji.rename", code: 200 }))).annotate({
1643
- identifier: "RenameEmojiRequest",
1644
- });
1350
+ }).pipe(T.Http({ method: "GET", uri: "/admin.emoji.rename", code: 200 }))).annotate({ identifier: "RenameEmojiRequest" });
1645
1351
  export const RenameEmojiResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
1646
1352
  ok: S.Boolean,
1647
- })).annotate({
1648
- identifier: "RenameEmojiResponse",
1649
- });
1353
+ })).annotate({ identifier: "RenameEmojiResponse" });
1650
1354
  export const ResetBulkRequestUserIdsList = /*@__PURE__*/ S.Array(S.String);
1651
1355
  export const ResetBulkRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
1652
1356
  user_ids: ResetBulkRequestUserIdsList,
1653
1357
  mobile_only: S.optional(S.Boolean),
1654
1358
  web_only: S.optional(S.Boolean),
1655
- }).pipe(T.Http({
1656
- method: "POST",
1657
- uri: "/admin.users.session.resetBulk",
1658
- code: 200,
1659
- }))).annotate({
1660
- identifier: "ResetBulkRequest",
1661
- });
1359
+ }).pipe(T.Http({ method: "POST", uri: "/admin.users.session.resetBulk", code: 200 }))).annotate({ identifier: "ResetBulkRequest" });
1662
1360
  export const ResetBulkResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
1663
1361
  ok: S.Boolean,
1664
- })).annotate({
1665
- identifier: "ResetBulkResponse",
1666
- });
1362
+ })).annotate({ identifier: "ResetBulkResponse" });
1667
1363
  export const ResetUsersSessionRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
1668
1364
  user_id: S.String,
1669
1365
  mobile_only: S.optional(S.Boolean),
1670
1366
  web_only: S.optional(S.Boolean),
1671
- }).pipe(T.Http({ method: "POST", uri: "/admin.users.session.reset", code: 200 }))).annotate({
1672
- identifier: "ResetUsersSessionRequest",
1673
- });
1367
+ }).pipe(T.Http({ method: "POST", uri: "/admin.users.session.reset", code: 200 }))).annotate({ identifier: "ResetUsersSessionRequest" });
1674
1368
  export const ResetUsersSessionResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
1675
1369
  ok: S.Boolean,
1676
1370
  })).annotate({
1677
1371
  identifier: "ResetUsersSessionResponse",
1678
1372
  });
1679
1373
  export const SearchConversationRequestTeamIdsList = /*@__PURE__*/ S.Array(S.String);
1680
- export const SearchConversationRequestConnectedTeamIdsList =
1681
- /*@__PURE__*/ S.Array(S.String);
1682
- export const SearchConversationRequestSearchChannelTypesList =
1683
- /*@__PURE__*/ S.Array(S.String);
1374
+ export const SearchConversationRequestConnectedTeamIdsList = /*@__PURE__*/ S.Array(S.String);
1375
+ export const SearchConversationRequestSearchChannelTypesList = /*@__PURE__*/ S.Array(S.String);
1684
1376
  export const SearchConversationRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
1685
1377
  team_ids: S.optional(SearchConversationRequestTeamIdsList),
1686
1378
  connected_team_ids: S.optional(SearchConversationRequestConnectedTeamIdsList),
@@ -1694,8 +1386,7 @@ export const SearchConversationRequest = /*@__PURE__*/ S.suspend(() => S.Struct(
1694
1386
  }).pipe(T.Http({ method: "POST", uri: "/admin.conversations.search", code: 200 }))).annotate({
1695
1387
  identifier: "SearchConversationRequest",
1696
1388
  });
1697
- export const SearchConversationResponseConversationsList =
1698
- /*@__PURE__*/ S.Array(S.String);
1389
+ export const SearchConversationResponseConversationsList = /*@__PURE__*/ S.Array(S.String);
1699
1390
  export const SearchConversationResponseResponseMetadata = AnalyticsMessagesActivityResponseResponseMetadata;
1700
1391
  export const SearchConversationResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
1701
1392
  ok: S.Boolean,
@@ -1728,9 +1419,7 @@ export const SearchWorkflowRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
1728
1419
  trigger_type_id: S.optional(S.String),
1729
1420
  publish_status: S.optional(SearchWorkflowRequestPublishStatus),
1730
1421
  step_function_ids: S.optional(SearchWorkflowRequestStepFunctionIdsList),
1731
- }).pipe(T.Http({ method: "POST", uri: "/admin.workflows.search", code: 200 }))).annotate({
1732
- identifier: "SearchWorkflowRequest",
1733
- });
1422
+ }).pipe(T.Http({ method: "POST", uri: "/admin.workflows.search", code: 200 }))).annotate({ identifier: "SearchWorkflowRequest" });
1734
1423
  export const SearchWorkflowResponseWorkflowsList = /*@__PURE__*/ S.Array(S.Unknown);
1735
1424
  export const SearchWorkflowResponseResponseMetadata = AnalyticsMessagesActivityResponseResponseMetadata;
1736
1425
  export const SearchWorkflowResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
@@ -1738,26 +1427,18 @@ export const SearchWorkflowResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
1738
1427
  workflows: SearchWorkflowResponseWorkflowsList,
1739
1428
  response_metadata: S.optional(AnalyticsMessagesActivityResponseResponseMetadata),
1740
1429
  total_found: S.Number,
1741
- })).annotate({
1742
- identifier: "SearchWorkflowResponse",
1743
- });
1430
+ })).annotate({ identifier: "SearchWorkflowResponse" });
1744
1431
  export const SetAdminRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
1745
1432
  team_id: S.String,
1746
1433
  user_id: S.String,
1747
- }).pipe(T.Http({ method: "POST", uri: "/admin.users.setAdmin", code: 200 }))).annotate({
1748
- identifier: "SetAdminRequest",
1749
- });
1434
+ }).pipe(T.Http({ method: "POST", uri: "/admin.users.setAdmin", code: 200 }))).annotate({ identifier: "SetAdminRequest" });
1750
1435
  export const SetAdminResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
1751
1436
  ok: S.Boolean,
1752
- })).annotate({
1753
- identifier: "SetAdminResponse",
1754
- });
1437
+ })).annotate({ identifier: "SetAdminResponse" });
1755
1438
  export const SetAppsConfigRequestWorkflowAuthStrategy = S.String;
1756
1439
  export const SetAppsConfigRequestRichLinkPreviewType = S.String;
1757
- export const SetAppsConfigRequestDomainRestrictionsUrlsList =
1758
- /*@__PURE__*/ S.Array(S.String);
1759
- export const SetAppsConfigRequestDomainRestrictionsEmailsList =
1760
- /*@__PURE__*/ S.Array(S.String);
1440
+ export const SetAppsConfigRequestDomainRestrictionsUrlsList = /*@__PURE__*/ S.Array(S.String);
1441
+ export const SetAppsConfigRequestDomainRestrictionsEmailsList = /*@__PURE__*/ S.Array(S.String);
1761
1442
  export const SetAppsConfigRequestDomainRestrictions = /*@__PURE__*/ S.suspend(() => S.Struct({
1762
1443
  urls: S.optional(SetAppsConfigRequestDomainRestrictionsUrlsList),
1763
1444
  emails: S.optional(SetAppsConfigRequestDomainRestrictionsEmailsList),
@@ -1769,30 +1450,20 @@ export const SetAppsConfigRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
1769
1450
  workflow_auth_strategy: S.optional(SetAppsConfigRequestWorkflowAuthStrategy),
1770
1451
  rich_link_preview_type: S.optional(SetAppsConfigRequestRichLinkPreviewType),
1771
1452
  domain_restrictions: S.optional(SetAppsConfigRequestDomainRestrictions),
1772
- }).pipe(T.Http({ method: "POST", uri: "/admin.apps.config.set", code: 200 }))).annotate({
1773
- identifier: "SetAppsConfigRequest",
1774
- });
1453
+ }).pipe(T.Http({ method: "POST", uri: "/admin.apps.config.set", code: 200 }))).annotate({ identifier: "SetAppsConfigRequest" });
1775
1454
  export const SetAppsConfigResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
1776
1455
  ok: S.Boolean,
1777
- })).annotate({
1778
- identifier: "SetAppsConfigResponse",
1779
- });
1456
+ })).annotate({ identifier: "SetAppsConfigResponse" });
1780
1457
  export const SetAppsMcpServersPermissionsRequestPermissionType = S.String;
1781
- export const SetAppsMcpServersPermissionsRequestUserIdsList =
1782
- /*@__PURE__*/ S.Array(S.String);
1783
- export const SetAppsMcpServersPermissionsRequestUsergroupIdsList =
1784
- /*@__PURE__*/ S.Array(S.String);
1458
+ export const SetAppsMcpServersPermissionsRequestUserIdsList = /*@__PURE__*/ S.Array(S.String);
1459
+ export const SetAppsMcpServersPermissionsRequestUsergroupIdsList = /*@__PURE__*/ S.Array(S.String);
1785
1460
  export const SetAppsMcpServersPermissionsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
1786
1461
  app_id: S.String,
1787
1462
  server_id: S.String,
1788
1463
  permission_type: SetAppsMcpServersPermissionsRequestPermissionType,
1789
1464
  user_ids: S.optional(SetAppsMcpServersPermissionsRequestUserIdsList),
1790
1465
  usergroup_ids: S.optional(SetAppsMcpServersPermissionsRequestUsergroupIdsList),
1791
- }).pipe(T.Http({
1792
- method: "POST",
1793
- uri: "/admin.apps.mcp.servers.permissions.set",
1794
- code: 200,
1795
- }))).annotate({
1466
+ }).pipe(T.Http({ method: "POST", uri: "/admin.apps.mcp.servers.permissions.set", code: 200 }))).annotate({
1796
1467
  identifier: "SetAppsMcpServersPermissionsRequest",
1797
1468
  });
1798
1469
  export const SetAppsMcpServersPermissionsResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
@@ -1803,11 +1474,15 @@ export const SetAppsMcpServersPermissionsResponse = /*@__PURE__*/ S.suspend(() =
1803
1474
  export const SetAppsPermissionsRequestPermissionType = S.String;
1804
1475
  export const SetAppsPermissionsRequestUserIdsList = /*@__PURE__*/ S.Array(S.String);
1805
1476
  export const SetAppsPermissionsRequestUsergroupIdsList = /*@__PURE__*/ S.Array(S.String);
1477
+ export const SetAppsPermissionsRequestChannelRestrictionMode = S.String;
1478
+ export const SetAppsPermissionsRequestChannelIdsList = /*@__PURE__*/ S.Array(S.String);
1806
1479
  export const SetAppsPermissionsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
1807
1480
  app_id: S.String,
1808
1481
  permission_type: SetAppsPermissionsRequestPermissionType,
1809
1482
  user_ids: S.optional(SetAppsPermissionsRequestUserIdsList),
1810
1483
  usergroup_ids: S.optional(SetAppsPermissionsRequestUsergroupIdsList),
1484
+ channel_restriction_mode: S.optional(SetAppsPermissionsRequestChannelRestrictionMode),
1485
+ channel_ids: S.optional(SetAppsPermissionsRequestChannelIdsList),
1811
1486
  }).pipe(T.Http({ method: "POST", uri: "/admin.apps.permissions.set", code: 200 }))).annotate({
1812
1487
  identifier: "SetAppsPermissionsRequest",
1813
1488
  });
@@ -1819,11 +1494,7 @@ export const SetAppsPermissionsResponse = /*@__PURE__*/ S.suspend(() => S.Struct
1819
1494
  export const SetConversationPrefsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
1820
1495
  channel_id: S.String,
1821
1496
  prefs: S.String,
1822
- }).pipe(T.Http({
1823
- method: "POST",
1824
- uri: "/admin.conversations.setConversationPrefs",
1825
- code: 200,
1826
- }))).annotate({
1497
+ }).pipe(T.Http({ method: "POST", uri: "/admin.conversations.setConversationPrefs", code: 200 }))).annotate({
1827
1498
  identifier: "SetConversationPrefsRequest",
1828
1499
  });
1829
1500
  export const SetConversationPrefsResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
@@ -1834,11 +1505,7 @@ export const SetConversationPrefsResponse = /*@__PURE__*/ S.suspend(() => S.Stru
1834
1505
  export const SetCustomRetentionRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
1835
1506
  channel_id: S.String,
1836
1507
  duration_days: S.Number,
1837
- }).pipe(T.Http({
1838
- method: "POST",
1839
- uri: "/admin.conversations.setCustomRetention",
1840
- code: 200,
1841
- }))).annotate({
1508
+ }).pipe(T.Http({ method: "POST", uri: "/admin.conversations.setCustomRetention", code: 200 }))).annotate({
1842
1509
  identifier: "SetCustomRetentionRequest",
1843
1510
  });
1844
1511
  export const SetCustomRetentionResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
@@ -1850,11 +1517,7 @@ export const SetDefaultChannelsRequestChannelIdsList = /*@__PURE__*/ S.Array(S.S
1850
1517
  export const SetDefaultChannelsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
1851
1518
  team_id: S.String.pipe(T.Query()),
1852
1519
  channel_ids: SetDefaultChannelsRequestChannelIdsList.pipe(T.Query()),
1853
- }).pipe(T.Http({
1854
- method: "GET",
1855
- uri: "/admin.teams.settings.setDefaultChannels",
1856
- code: 200,
1857
- }))).annotate({
1520
+ }).pipe(T.Http({ method: "GET", uri: "/admin.teams.settings.setDefaultChannels", code: 200 }))).annotate({
1858
1521
  identifier: "SetDefaultChannelsRequest",
1859
1522
  });
1860
1523
  export const SetDefaultChannelsResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
@@ -1865,26 +1528,14 @@ export const SetDefaultChannelsResponse = /*@__PURE__*/ S.suspend(() => S.Struct
1865
1528
  export const SetDescriptionRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
1866
1529
  team_id: S.String,
1867
1530
  description: S.String,
1868
- }).pipe(T.Http({
1869
- method: "POST",
1870
- uri: "/admin.teams.settings.setDescription",
1871
- code: 200,
1872
- }))).annotate({
1873
- identifier: "SetDescriptionRequest",
1874
- });
1531
+ }).pipe(T.Http({ method: "POST", uri: "/admin.teams.settings.setDescription", code: 200 }))).annotate({ identifier: "SetDescriptionRequest" });
1875
1532
  export const SetDescriptionResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
1876
1533
  ok: S.Boolean,
1877
- })).annotate({
1878
- identifier: "SetDescriptionResponse",
1879
- });
1534
+ })).annotate({ identifier: "SetDescriptionResponse" });
1880
1535
  export const SetDiscoverabilityRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
1881
1536
  team_id: S.String,
1882
1537
  discoverability: S.String,
1883
- }).pipe(T.Http({
1884
- method: "POST",
1885
- uri: "/admin.teams.settings.setDiscoverability",
1886
- code: 200,
1887
- }))).annotate({
1538
+ }).pipe(T.Http({ method: "POST", uri: "/admin.teams.settings.setDiscoverability", code: 200 }))).annotate({
1888
1539
  identifier: "SetDiscoverabilityRequest",
1889
1540
  });
1890
1541
  export const SetDiscoverabilityResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
@@ -1896,40 +1547,29 @@ export const SetExpirationRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
1896
1547
  team_id: S.optional(S.String),
1897
1548
  user_id: S.String,
1898
1549
  expiration_ts: S.Number,
1899
- }).pipe(T.Http({ method: "POST", uri: "/admin.users.setExpiration", code: 200 }))).annotate({
1900
- identifier: "SetExpirationRequest",
1901
- });
1550
+ }).pipe(T.Http({ method: "POST", uri: "/admin.users.setExpiration", code: 200 }))).annotate({ identifier: "SetExpirationRequest" });
1902
1551
  export const SetExpirationResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
1903
1552
  ok: S.Boolean,
1904
- })).annotate({
1905
- identifier: "SetExpirationResponse",
1906
- });
1553
+ })).annotate({ identifier: "SetExpirationResponse" });
1907
1554
  export const SetFunctionsPermissionsRequestVisibility = S.String;
1908
- export const SetFunctionsPermissionsRequestUserIdsList = /*@__PURE__*/ S.Array(S.Unknown);
1555
+ export const SetFunctionsPermissionsRequestUserIdsList = /*@__PURE__*/ S.Array(S.String);
1909
1556
  export const SetFunctionsPermissionsRequestPermissionsItemVisibility = S.String;
1910
1557
  export const SetFunctionsPermissionsRequestPermissionsItemPermissionType = S.String;
1911
- export const SetFunctionsPermissionsRequestPermissionsItemUserIdsList =
1912
- /*@__PURE__*/ S.Array(S.Unknown);
1913
- export const SetFunctionsPermissionsRequestPermissionsItem =
1914
- /*@__PURE__*/ S.suspend(() => S.Struct({
1558
+ export const SetFunctionsPermissionsRequestPermissionsItemUserIdsList = /*@__PURE__*/ S.Array(S.String);
1559
+ export const SetFunctionsPermissionsRequestPermissionsItem = /*@__PURE__*/ S.suspend(() => S.Struct({
1915
1560
  visibility: SetFunctionsPermissionsRequestPermissionsItemVisibility,
1916
1561
  permission_type: SetFunctionsPermissionsRequestPermissionsItemPermissionType,
1917
1562
  user_ids: S.optional(SetFunctionsPermissionsRequestPermissionsItemUserIdsList),
1918
1563
  })).annotate({
1919
1564
  identifier: "SetFunctionsPermissionsRequestPermissionsItem",
1920
1565
  });
1921
- export const SetFunctionsPermissionsRequestPermissionsList =
1922
- /*@__PURE__*/ S.Array(SetFunctionsPermissionsRequestPermissionsItem);
1566
+ export const SetFunctionsPermissionsRequestPermissionsList = /*@__PURE__*/ S.Array(SetFunctionsPermissionsRequestPermissionsItem);
1923
1567
  export const SetFunctionsPermissionsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
1924
1568
  function_id: S.String,
1925
1569
  visibility: S.optional(SetFunctionsPermissionsRequestVisibility),
1926
1570
  user_ids: S.optional(SetFunctionsPermissionsRequestUserIdsList),
1927
1571
  permissions: S.optional(SetFunctionsPermissionsRequestPermissionsList),
1928
- }).pipe(T.Http({
1929
- method: "POST",
1930
- uri: "/admin.functions.permissions.set",
1931
- code: 200,
1932
- }))).annotate({
1572
+ }).pipe(T.Http({ method: "POST", uri: "/admin.functions.permissions.set", code: 200 }))).annotate({
1933
1573
  identifier: "SetFunctionsPermissionsRequest",
1934
1574
  });
1935
1575
  export const SetFunctionsPermissionsResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
@@ -1943,109 +1583,74 @@ export const SetIconRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
1943
1583
  }).pipe(T.Http({ method: "GET", uri: "/admin.teams.settings.setIcon", code: 200 }))).annotate({ identifier: "SetIconRequest" });
1944
1584
  export const SetIconResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
1945
1585
  ok: S.Boolean,
1946
- })).annotate({
1947
- identifier: "SetIconResponse",
1948
- });
1586
+ })).annotate({ identifier: "SetIconResponse" });
1949
1587
  export const SetNameRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
1950
1588
  team_id: S.String,
1951
1589
  name: S.String,
1952
1590
  }).pipe(T.Http({ method: "POST", uri: "/admin.teams.settings.setName", code: 200 }))).annotate({ identifier: "SetNameRequest" });
1953
1591
  export const SetNameResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
1954
1592
  ok: S.Boolean,
1955
- })).annotate({
1956
- identifier: "SetNameResponse",
1957
- });
1593
+ })).annotate({ identifier: "SetNameResponse" });
1958
1594
  export const SetOwnerRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
1959
1595
  team_id: S.String,
1960
1596
  user_id: S.String,
1961
- }).pipe(T.Http({ method: "POST", uri: "/admin.users.setOwner", code: 200 }))).annotate({
1962
- identifier: "SetOwnerRequest",
1963
- });
1597
+ }).pipe(T.Http({ method: "POST", uri: "/admin.users.setOwner", code: 200 }))).annotate({ identifier: "SetOwnerRequest" });
1964
1598
  export const SetOwnerResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
1965
1599
  ok: S.Boolean,
1966
- })).annotate({
1967
- identifier: "SetOwnerResponse",
1968
- });
1600
+ })).annotate({ identifier: "SetOwnerResponse" });
1969
1601
  export const SetRegularRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
1970
1602
  team_id: S.String,
1971
1603
  user_id: S.String,
1972
- }).pipe(T.Http({ method: "POST", uri: "/admin.users.setRegular", code: 200 }))).annotate({
1973
- identifier: "SetRegularRequest",
1974
- });
1604
+ }).pipe(T.Http({ method: "POST", uri: "/admin.users.setRegular", code: 200 }))).annotate({ identifier: "SetRegularRequest" });
1975
1605
  export const SetRegularResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
1976
1606
  ok: S.Boolean,
1977
- })).annotate({
1978
- identifier: "SetRegularResponse",
1979
- });
1607
+ })).annotate({ identifier: "SetRegularResponse" });
1980
1608
  export const SetSettingsRequestUserIdsList = /*@__PURE__*/ S.Array(S.String);
1981
1609
  export const SetSettingsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
1982
1610
  user_ids: SetSettingsRequestUserIdsList,
1983
1611
  duration: S.optional(S.Number),
1984
1612
  desktop_app_browser_quit: S.optional(S.Boolean),
1985
- }).pipe(T.Http({
1986
- method: "POST",
1987
- uri: "/admin.users.session.setSettings",
1988
- code: 200,
1989
- }))).annotate({
1990
- identifier: "SetSettingsRequest",
1991
- });
1613
+ }).pipe(T.Http({ method: "POST", uri: "/admin.users.session.setSettings", code: 200 }))).annotate({ identifier: "SetSettingsRequest" });
1992
1614
  export const SetSettingsResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
1993
1615
  ok: S.Boolean,
1994
- })).annotate({
1995
- identifier: "SetSettingsResponse",
1996
- });
1616
+ })).annotate({ identifier: "SetSettingsResponse" });
1997
1617
  export const SetTeamsRequestTargetTeamIdsList = /*@__PURE__*/ S.Array(S.String);
1998
1618
  export const SetTeamsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
1999
1619
  channel_id: S.String,
2000
1620
  team_id: S.optional(S.String),
2001
1621
  target_team_ids: S.optional(SetTeamsRequestTargetTeamIdsList),
2002
1622
  org_channel: S.optional(S.Boolean),
2003
- }).pipe(T.Http({ method: "POST", uri: "/admin.conversations.setTeams", code: 200 }))).annotate({
2004
- identifier: "SetTeamsRequest",
2005
- });
1623
+ }).pipe(T.Http({ method: "POST", uri: "/admin.conversations.setTeams", code: 200 }))).annotate({ identifier: "SetTeamsRequest" });
2006
1624
  export const SetTeamsResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
2007
1625
  ok: S.Boolean,
2008
1626
  channel: S.String,
2009
- })).annotate({
2010
- identifier: "SetTeamsResponse",
2011
- });
1627
+ })).annotate({ identifier: "SetTeamsResponse" });
2012
1628
  export const SetWorkflowsTriggersTypesPermissionsRequestVisibility = S.String;
2013
- export const SetWorkflowsTriggersTypesPermissionsRequestUserIdsList =
2014
- /*@__PURE__*/ S.Array(S.String);
1629
+ export const SetWorkflowsTriggersTypesPermissionsRequestUserIdsList = /*@__PURE__*/ S.Array(S.String);
2015
1630
  export const SetWorkflowsTriggersTypesPermissionsRequestPermissionsPermissionsMap =
2016
1631
  /*@__PURE__*/ S.Record(S.String, S.Unknown);
2017
- export const SetWorkflowsTriggersTypesPermissionsRequestPermissions =
2018
- /*@__PURE__*/ S.suspend(() => S.Struct({
1632
+ export const SetWorkflowsTriggersTypesPermissionsRequestPermissions = /*@__PURE__*/ S.suspend(() => S.Struct({
2019
1633
  permissions: S.optional(SetWorkflowsTriggersTypesPermissionsRequestPermissionsPermissionsMap),
2020
1634
  })).annotate({
2021
1635
  identifier: "SetWorkflowsTriggersTypesPermissionsRequestPermissions",
2022
1636
  });
2023
- export const SetWorkflowsTriggersTypesPermissionsRequest =
2024
- /*@__PURE__*/ S.suspend(() => S.Struct({
1637
+ export const SetWorkflowsTriggersTypesPermissionsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
2025
1638
  id: S.String,
2026
1639
  visibility: S.optional(SetWorkflowsTriggersTypesPermissionsRequestVisibility),
2027
1640
  user_ids: S.optional(SetWorkflowsTriggersTypesPermissionsRequestUserIdsList),
2028
1641
  permissions: S.optional(SetWorkflowsTriggersTypesPermissionsRequestPermissions),
2029
- }).pipe(T.Http({
2030
- method: "POST",
2031
- uri: "/admin.workflows.triggers.types.permissions.set",
2032
- code: 200,
2033
- }))).annotate({
1642
+ }).pipe(T.Http({ method: "POST", uri: "/admin.workflows.triggers.types.permissions.set", code: 200 }))).annotate({
2034
1643
  identifier: "SetWorkflowsTriggersTypesPermissionsRequest",
2035
1644
  });
2036
- export const SetWorkflowsTriggersTypesPermissionsResponse =
2037
- /*@__PURE__*/ S.suspend(() => S.Struct({
1645
+ export const SetWorkflowsTriggersTypesPermissionsResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
2038
1646
  ok: S.Boolean,
2039
1647
  })).annotate({
2040
1648
  identifier: "SetWorkflowsTriggersTypesPermissionsResponse",
2041
1649
  });
2042
1650
  export const TeamsSettingsInfoRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
2043
1651
  team_id: S.String,
2044
- }).pipe(T.Http({ method: "POST", uri: "/admin.teams.settings.info", code: 200 }))).annotate({
2045
- identifier: "TeamsSettingsInfoRequest",
2046
- });
2047
- export const TeamsSettingsInfoResponseTeamItemDefaultChannelsList =
2048
- /*@__PURE__*/ S.Array(S.Unknown);
1652
+ }).pipe(T.Http({ method: "POST", uri: "/admin.teams.settings.info", code: 200 }))).annotate({ identifier: "TeamsSettingsInfoRequest" });
1653
+ export const TeamsSettingsInfoResponseTeamItemDefaultChannelsList = /*@__PURE__*/ S.Array(S.Unknown);
2049
1654
  export const TeamsSettingsInfoResponseTeamItem = /*@__PURE__*/ S.suspend(() => S.Struct({
2050
1655
  id: S.optional(S.String),
2051
1656
  name: S.optional(S.String),
@@ -2067,11 +1672,7 @@ export const TeamsSettingsInfoResponse = /*@__PURE__*/ S.suspend(() => S.Struct(
2067
1672
  });
2068
1673
  export const UnarchiveConversationRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
2069
1674
  channel_id: S.String,
2070
- }).pipe(T.Http({
2071
- method: "POST",
2072
- uri: "/admin.conversations.unarchive",
2073
- code: 200,
2074
- }))).annotate({
1675
+ }).pipe(T.Http({ method: "POST", uri: "/admin.conversations.unarchive", code: 200 }))).annotate({
2075
1676
  identifier: "UnarchiveConversationRequest",
2076
1677
  });
2077
1678
  export const UnarchiveConversationResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
@@ -2083,42 +1684,27 @@ export const UninstallAppRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
2083
1684
  app_id: S.String,
2084
1685
  team_ids: S.optional(S.String),
2085
1686
  enterprise_id: S.optional(S.String),
2086
- }).pipe(T.Http({ method: "POST", uri: "/admin.apps.uninstall", code: 200 }))).annotate({
2087
- identifier: "UninstallAppRequest",
2088
- });
1687
+ }).pipe(T.Http({ method: "POST", uri: "/admin.apps.uninstall", code: 200 }))).annotate({ identifier: "UninstallAppRequest" });
2089
1688
  export const UninstallAppResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
2090
1689
  ok: S.Boolean,
2091
- })).annotate({
2092
- identifier: "UninstallAppResponse",
2093
- });
1690
+ })).annotate({ identifier: "UninstallAppResponse" });
2094
1691
  export const UnlinkObjectsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
2095
1692
  channel: S.String,
2096
1693
  new_name: S.String,
2097
- }).pipe(T.Http({
2098
- method: "POST",
2099
- uri: "/admin.conversations.unlinkObjects",
2100
- code: 200,
2101
- }))).annotate({
2102
- identifier: "UnlinkObjectsRequest",
2103
- });
1694
+ }).pipe(T.Http({ method: "POST", uri: "/admin.conversations.unlinkObjects", code: 200 }))).annotate({ identifier: "UnlinkObjectsRequest" });
2104
1695
  export const UnlinkObjectsResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
2105
1696
  ok: S.Boolean,
2106
- })).annotate({
2107
- identifier: "UnlinkObjectsResponse",
2108
- });
1697
+ })).annotate({ identifier: "UnlinkObjectsResponse" });
2109
1698
  export const UnpublishWorkflowRequestWorkflowIdsList = /*@__PURE__*/ S.Array(S.String);
2110
1699
  export const UnpublishWorkflowRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
2111
1700
  workflow_ids: UnpublishWorkflowRequestWorkflowIdsList,
2112
- }).pipe(T.Http({ method: "POST", uri: "/admin.workflows.unpublish", code: 200 }))).annotate({
2113
- identifier: "UnpublishWorkflowRequest",
2114
- });
1701
+ }).pipe(T.Http({ method: "POST", uri: "/admin.workflows.unpublish", code: 200 }))).annotate({ identifier: "UnpublishWorkflowRequest" });
2115
1702
  export const UnpublishWorkflowResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
2116
1703
  ok: S.Boolean,
2117
1704
  })).annotate({
2118
1705
  identifier: "UnpublishWorkflowResponse",
2119
1706
  });
2120
- export const UpdateBarrierRequestBarrieredFromUsergroupIdsList =
2121
- /*@__PURE__*/ S.Array(S.String);
1707
+ export const UpdateBarrierRequestBarrieredFromUsergroupIdsList = /*@__PURE__*/ S.Array(S.String);
2122
1708
  export const UpdateBarrierRequestRestrictedSubjectsItem = S.String;
2123
1709
  export const UpdateBarrierRequestRestrictedSubjectsList = /*@__PURE__*/ S.Array(UpdateBarrierRequestRestrictedSubjectsItem);
2124
1710
  export const UpdateBarrierRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
@@ -2131,32 +1717,50 @@ export const UpdateBarrierRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
2131
1717
  uri: "/admin.barriers.update",
2132
1718
  code: 200,
2133
1719
  contentType: "form-urlencoded",
2134
- }))).annotate({
2135
- identifier: "UpdateBarrierRequest",
2136
- });
1720
+ }))).annotate({ identifier: "UpdateBarrierRequest" });
2137
1721
  export const UpdateBarrierResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
2138
1722
  ok: S.Boolean,
2139
1723
  barrier: S.Unknown,
2140
- })).annotate({
2141
- identifier: "UpdateBarrierResponse",
2142
- });
1724
+ })).annotate({ identifier: "UpdateBarrierResponse" });
2143
1725
  export const UpdateItemRequestTrustedCidrList = /*@__PURE__*/ S.Array(S.String);
2144
1726
  export const UpdateItemRequestTrustedAsnsList = /*@__PURE__*/ S.Array(S.Number);
2145
1727
  export const UpdateItemRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
2146
1728
  trusted_cidr: S.optional(UpdateItemRequestTrustedCidrList),
2147
1729
  trusted_asns: S.optional(UpdateItemRequestTrustedAsnsList),
2148
- }).pipe(T.Http({
2149
- method: "POST",
2150
- uri: "/admin.audit.anomaly.allow.updateItem",
2151
- code: 200,
2152
- }))).annotate({
2153
- identifier: "UpdateItemRequest",
2154
- });
1730
+ }).pipe(T.Http({ method: "POST", uri: "/admin.audit.anomaly.allow.updateItem", code: 200 }))).annotate({ identifier: "UpdateItemRequest" });
2155
1731
  export const UpdateItemResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
2156
1732
  ok: S.Boolean,
1733
+ })).annotate({ identifier: "UpdateItemResponse" });
1734
+ export const UpdateUsergroupRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
1735
+ id: S.String,
1736
+ name: S.optional(S.String),
1737
+ handle: S.optional(S.String),
1738
+ description: S.optional(S.String),
1739
+ is_visible: S.optional(S.Boolean),
1740
+ }).pipe(T.Http({ method: "POST", uri: "/admin.usergroups.update", code: 200 }))).annotate({ identifier: "UpdateUsergroupRequest" });
1741
+ export const UpdateUsergroupResponseChannelLimitUserIdsList = /*@__PURE__*/ S.Array(S.String);
1742
+ export const UpdateUsergroupResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
1743
+ ok: S.Boolean,
1744
+ subteam: S.optional(S.Unknown),
1745
+ channel_limit_user_ids: S.optional(UpdateUsergroupResponseChannelLimitUserIdsList),
1746
+ })).annotate({ identifier: "UpdateUsergroupResponse" });
1747
+ export const UploadUsersRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
1748
+ id: S.String,
1749
+ file: S.optional(S.Unknown),
1750
+ }).pipe(T.Http({ method: "POST", uri: "/admin.usergroups.uploadUsers", code: 200 }))).annotate({ identifier: "UploadUsersRequest" });
1751
+ export const UploadUsersResponseInvalidUsersItemReason = S.String;
1752
+ export const UploadUsersResponseInvalidUsersItem = /*@__PURE__*/ S.suspend(() => S.Struct({
1753
+ user_id: S.String,
1754
+ reason: UploadUsersResponseInvalidUsersItemReason,
2157
1755
  })).annotate({
2158
- identifier: "UpdateItemResponse",
1756
+ identifier: "UploadUsersResponseInvalidUsersItem",
2159
1757
  });
1758
+ export const UploadUsersResponseInvalidUsersList = /*@__PURE__*/ S.Array(UploadUsersResponseInvalidUsersItem);
1759
+ export const UploadUsersResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
1760
+ ok: S.Boolean,
1761
+ successful_user_count: S.Number,
1762
+ invalid_users: S.optional(UploadUsersResponseInvalidUsersList),
1763
+ })).annotate({ identifier: "UploadUsersResponse" });
2160
1764
  /** Add an emoji alias. Required scopes — user: `admin.teams:write` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `emoji_limit_reached` — Unable to add emoji due to limit reached. - `error_bad_name_i18n` — Value passed for `name` was invalid. - `error_invalid_alias` — Value passed for `alias_for` does not exist. - `error_missing_name` — Value passed for `name` is missing or empty. - `error_name_taken` — Value passed for `name` already exists. - `error_name_taken_i18n` — The name has already been taken by another emoji, in the international set. Emoji must have unique names. - `failed_to_alias_emoji` — Failed to alias the specified emoji. - `feature_not_enabled` — The Admin APIs feature is not enabled for this team. - `no_alias_selected` — Value passed for `alias_for` was invalid. - `not_an_admin` — This method is only accessible by org owners and Admins. See https://docs.slack.dev/reference/methods/admin.emoji.addAlias */
2161
1765
  export const addAlias = /*@__PURE__*/ API.make(() => ({
2162
1766
  input: AddAliasRequest,
@@ -2165,7 +1769,7 @@ export const addAlias = /*@__PURE__*/ API.make(() => ({
2165
1769
  protocol: SlackProtocol,
2166
1770
  retry: Retry.Retry,
2167
1771
  }));
2168
- /** Grant permission for entities to access an app that has its permission type set to named_entities Required scopes — user: `admin.apps:write` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `invalid_auth` — Invalid authorization token - `access_denied` — This actor does not have access to the permissions on this resource. - `invalid_permission_type` — This app requires permission_type to be set as named_entities before adding users. - `no_valid_named_entities` — None of the provided named entities were valid - `too_many_named_entities` — Too many named entities passed into the app permissions setting. - `app_not_found` — This app does not exist. - `not_an_enterprise` — This feature is only available on Enterprise Grid plans. - `app_acl_not_found` — This app does not have an ACL. - `internal_error` — Internal error - `user_not_found` — Value passed for `user_ids` was invalid. - `invalid_entities` — Invalid entities. - `invalid_channel_restriction_mode` — Cannot add channels when channel_restriction_mode is all_channels. Use set to configure a restriction mode first. - `channel_not_found` — One or more channel IDs are not valid. - `failed_to_update_channels` — An error occurred while updating the channel restriction list. See https://docs.slack.dev/reference/methods/admin.apps.permissions.add */
1772
+ /** 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 */
2169
1773
  export const addAppsPermissions = /*@__PURE__*/ API.make(() => ({
2170
1774
  input: AddAppsPermissionsRequest,
2171
1775
  output: AddAppsPermissionsResponse,
@@ -2205,7 +1809,7 @@ export const addGroup = /*@__PURE__*/ API.make(() => ({
2205
1809
  protocol: SlackProtocol,
2206
1810
  retry: Retry.Retry,
2207
1811
  }));
2208
- /** Associate one or more default workspaces with an organization-wide IDP group. Required scopes — user: `admin.teams:write` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `auto_provision_failure` — A failure occurred while assigning IDP group members to a specific workspace; see `errors` element for a list of failed team IDs. - `internal_error` — An unexpected error occurred. - `invalid_team_ids` — One or more team IDs provided were invalid; see the `errors` field in the response for the list of invalid team IDs. - `multi_workspace_restriction` — The IDP group has members that cannot be linked to more than one workspace. - `no_team_ids_given` — The `team_ids` parameter was empty. - `restricted_action` — The calling user cannot update the specified usergroup. - `team_limit_exceeded` — The number of teams associated with the org group would exceed the limit. - `usergroup_not_found` — `usergroup_id` wasn't found. See https://docs.slack.dev/reference/methods/admin.usergroups.addTeams */
1812
+ /** 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 */
2209
1813
  export const addTeams = /*@__PURE__*/ API.make(() => ({
2210
1814
  input: AddTeamsRequest,
2211
1815
  output: AddTeamsResponse,
@@ -2213,6 +1817,14 @@ export const addTeams = /*@__PURE__*/ API.make(() => ({
2213
1817
  protocol: SlackProtocol,
2214
1818
  retry: Retry.Retry,
2215
1819
  }));
1820
+ /** 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 */
1821
+ export const addUsers = /*@__PURE__*/ API.make(() => ({
1822
+ input: AddUsersRequest,
1823
+ output: AddUsersResponse,
1824
+ errors: [SlackError, SlackRateLimited],
1825
+ protocol: SlackProtocol,
1826
+ retry: Retry.Retry,
1827
+ }));
2216
1828
  /** Add collaborators to workflows within the team or enterprise Required scopes — user: `admin.workflows:write` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `not_allowed` — The user is not allowed to access this API method - `error_adding_collaborators` — There were one or more errors adding workflow collaborators See https://docs.slack.dev/reference/methods/admin.workflows.collaborators.add */
2217
1829
  export const addWorkflowsCollaborator = /*@__PURE__*/ API.make(() => ({
2218
1830
  input: AddWorkflowsCollaboratorRequest,
@@ -2221,7 +1833,7 @@ export const addWorkflowsCollaborator = /*@__PURE__*/ API.make(() => ({
2221
1833
  protocol: SlackProtocol,
2222
1834
  retry: Retry.Retry,
2223
1835
  }));
2224
- /** Retrieves activity metrics for messages from a given channel. Required scopes — user: `admin.analytics:read` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `channel_not_found` — The specified channel was not found. - `invalid_arguments` — Required arguments either were not provided or contain invalid values. - `restricted_action` — The token does not have permission to access this resource. - `not_an_enterprise` — The user token does not belong to an enterprise. - `restricted_plan_level` — The enterprise plan level does not have access to this feature. See https://docs.slack.dev/reference/methods/admin.analytics.messages.activity */
1836
+ /** 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 */
2225
1837
  export const analyticsMessagesActivity = /*@__PURE__*/ API.make(() => ({
2226
1838
  input: AnalyticsMessagesActivityRequest,
2227
1839
  output: AnalyticsMessagesActivityResponse,
@@ -2229,7 +1841,7 @@ export const analyticsMessagesActivity = /*@__PURE__*/ API.make(() => ({
2229
1841
  protocol: SlackProtocol,
2230
1842
  retry: Retry.Retry,
2231
1843
  }));
2232
- /** Retrieves metadata for a list of messages from a given channel. Required scopes — user: `admin.analytics:read` Method-specific errors (the `error` slug on the SlackError): - `channel_not_found` — The specified channel was not found - `invalid_arguments` — Required arguments either were not provided or contain invalid values. - `not_an_enterprise` — The user token does not belong to an enterprise. - `analytics_unavailable` — We were unable to find analytics for you. - `admin_analytics_disabled` — We're having issues returning your analytics. Please wait and try again. - `restricted_plan_level` — This feature is not available for your current product plan. - `different_team_owns_message_metadata_for_channel` — Message metadata must be accessed by an actor from the same team that owns the channel. This may be the org or a specific enterprise workspace. See https://docs.slack.dev/reference/methods/admin.analytics.messages.metadata */
1844
+ /** 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 */
2233
1845
  export const analyticsMessagesMetadata = /*@__PURE__*/ API.makePaginated(() => ({
2234
1846
  input: AnalyticsMessagesMetadataRequest,
2235
1847
  output: AnalyticsMessagesMetadataResponse,
@@ -2283,7 +1895,7 @@ export const assignEntities = /*@__PURE__*/ API.make(() => ({
2283
1895
  protocol: SlackProtocol,
2284
1896
  retry: Retry.Retry,
2285
1897
  }));
2286
- /** Add an Enterprise user to a workspace. Required scopes — user: `admin.users:write` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `feature_not_enabled` — The Admin APIs feature is not enabled for this team - `invalid_role_for_user` — The requested status is incompatible with the user's role on another workspace. - `invited_user_not_created` — The invited user could not be created. - `invited_user_not_reactivated` — The invited user could not be reactivated. - `invitor_cannot_see_channel` — The invitor is not part of one or many channels that the user was requested to be added to - `not_an_admin` — This method wasn't called by an admin. - `team_not_found` — `team_id was not found. - `user_already_team_member` — The given user is already active on the given team. - `user_is_bot` — The given user is a bot from an app. This api only works with humans. - `user_not_found` — `user_id` was not found. See https://docs.slack.dev/reference/methods/admin.users.assign */
1898
+ /** 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 */
2287
1899
  export const assignUser = /*@__PURE__*/ API.make(() => ({
2288
1900
  input: AssignUserRequest,
2289
1901
  output: AssignUserResponse,
@@ -2315,7 +1927,7 @@ export const bulkMove = /*@__PURE__*/ API.make(() => ({
2315
1927
  protocol: SlackProtocol,
2316
1928
  retry: Retry.Retry,
2317
1929
  }));
2318
- /** Exclude channels from Slack AI in bulk Required scopes — user: `admin.conversations:write` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `action_already_in_progress` — Another bulk action request is currently in progress - `internal_error` — Something unexpected happened, try again in a little bit. Sorry for that! - `no_valid_channels` — All input channels are invalid - `restricted_action` — User does not have permission to perform this action - `feature_not_enabled` — The feature is not enabled See https://docs.slack.dev/reference/methods/admin.conversations.bulkSetExcludeFromSlackAi */
1930
+ /** 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 */
2319
1931
  export const bulkSetExcludeFromSlackAi = /*@__PURE__*/ API.make(() => ({
2320
1932
  input: BulkSetExcludeFromSlackAiRequest,
2321
1933
  output: BulkSetExcludeFromSlackAiResponse,
@@ -2323,6 +1935,14 @@ export const bulkSetExcludeFromSlackAi = /*@__PURE__*/ API.make(() => ({
2323
1935
  protocol: SlackProtocol,
2324
1936
  retry: Retry.Retry,
2325
1937
  }));
1938
+ /** 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 */
1939
+ export const bulkSetProperties = /*@__PURE__*/ API.make(() => ({
1940
+ input: BulkSetPropertiesRequest,
1941
+ output: BulkSetPropertiesResponse,
1942
+ errors: [SlackError, SlackRateLimited],
1943
+ protocol: SlackProtocol,
1944
+ retry: Retry.Retry,
1945
+ }));
2326
1946
  /** Cancel app request for team Required scopes — user: `admin.apps:write` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `app_management_app_not_installed_on_org` — The app management app must be installed on the org. - `feature_not_enabled` — Returned when the Admin APIs feature is not enabled for this team - `invalid_request_id` — The `request_id` passed is invalid. - `not_an_admin` — This method is only accessible by org owners and admins - `request_already_resolved` — The app request has already been resolved - `team_not_found` — Returned when team id is not found. - `too_many_teams_provided` — Please provide only `team_id` OR `enterprise_id` - `restricted_action` — User is not authorized to perform this action - `invalid_auth` — invalid token or actor does not have access See https://docs.slack.dev/reference/methods/admin.apps.requests.cancel */
2327
1947
  export const cancelAppsRequest = /*@__PURE__*/ API.make(() => ({
2328
1948
  input: CancelAppsRequestRequest,
@@ -2379,7 +1999,7 @@ export const createConversation = /*@__PURE__*/ API.make(() => ({
2379
1999
  protocol: SlackProtocol,
2380
2000
  retry: Retry.Retry,
2381
2001
  }));
2382
- /** Create a Salesforce channel for the corresponding object provided. Required scopes — user: `admin.conversations:manage_objects` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `restricted_action` — User does not have access to perform this action. - `record_not_found` — Value passed for `object_id` is invalid. - `invalid_org_id` — Value passed for `salesforce_org_id` is invalid. - `feature_not_enabled` — Feature not enabled. - `channel_already_exists` — Object is linked to a different channel. - `missing_record_channel_config` — Record Channels are not enabled for the given object type. See https://docs.slack.dev/reference/methods/admin.conversations.createForObjects */
2002
+ /** 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 */
2383
2003
  export const createForObjects = /*@__PURE__*/ API.make(() => ({
2384
2004
  input: CreateForObjectsRequest,
2385
2005
  output: CreateForObjectsResponse,
@@ -2395,6 +2015,14 @@ export const createTeam = /*@__PURE__*/ API.make(() => ({
2395
2015
  protocol: SlackProtocol,
2396
2016
  retry: Retry.Retry,
2397
2017
  }));
2018
+ /** 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 */
2019
+ export const createUsergroup = /*@__PURE__*/ API.make(() => ({
2020
+ input: CreateUsergroupRequest,
2021
+ output: CreateUsergroupResponse,
2022
+ errors: [SlackError, SlackRateLimited],
2023
+ protocol: SlackProtocol,
2024
+ retry: Retry.Retry,
2025
+ }));
2398
2026
  /** Delete an existing Information Barrier Required scopes — user: `admin.barriers:write` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `barrier_not_found` — The barrier you're trying to delete cannot be found. - `feature_not_enabled` — The information barrier feature is not enabled, please reach out to your CSM. - `not_an_admin` — The token provided is not associated with an org admin. See https://docs.slack.dev/reference/methods/admin.barriers.delete */
2399
2027
  export const deleteBarrier = /*@__PURE__*/ API.make(() => ({
2400
2028
  input: DeleteBarrierRequest,
@@ -2427,6 +2055,14 @@ export const exportUsersUnsupportedVersion = /*@__PURE__*/ API.make(() => ({
2427
2055
  protocol: SlackProtocol,
2428
2056
  retry: Retry.Retry,
2429
2057
  }));
2058
+ /** 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 */
2059
+ export const fetchUsergroup = /*@__PURE__*/ API.make(() => ({
2060
+ input: FetchUsergroupRequest,
2061
+ output: FetchUsergroupResponse,
2062
+ errors: [SlackError, SlackRateLimited],
2063
+ protocol: SlackProtocol,
2064
+ retry: Retry.Retry,
2065
+ }));
2430
2066
  /** Get conversation preferences for a public or private channel. Required scopes — user: `admin.conversations:read` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `channel_not_found` — The value passed for `channel_id` was invalid. - `channel_type_not_supported` — The provided `channel_id` was a DM, MPDM, or the 'general' channel. - `could_not_get_conversation_prefs` — There was an error getting the conversation preferences for this channel. - `feature_not_enabled` — The token provided does not have access to this method. - `missing_scope` — The token provided doesn't have the required scopes. - `not_an_admin` — The token provided is not associated with an Org Admin or Owner. - `not_an_enterprise` — This endpoint can only be called by an Enterprise organization. - `restricted_action` — A workspace preference prevents the authenticated user from listing preferences. See https://docs.slack.dev/reference/methods/admin.conversations.getConversationPrefs */
2431
2067
  export const getConversationPrefs = /*@__PURE__*/ API.make(() => ({
2432
2068
  input: GetConversationPrefsRequest,
@@ -2599,7 +2235,7 @@ export const listAppsPermissions = /*@__PURE__*/ API.make(() => ({
2599
2235
  protocol: SlackProtocol,
2600
2236
  retry: Retry.Retry,
2601
2237
  }));
2602
- /** List app requests for a team/workspace. Required scopes — user: `admin.apps:read` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `app_management_app_not_installed_on_org` — The app management app must be installed on the org. - `enterprise_not_found` — Returned when enterprise id is not found. - `feature_not_enabled` — Returned when the Admin APIs feature is not enabled for this team - `invalid_cursor` — Value passed for `cursor` was not valid or is no longer valid. - `invalid_auth` — invalid token or actor does not have access - `not_allowed` — The user is not allowed to access this API method - `not_an_admin` — This method is only accessible by org owners and admins - `restricted_action` — The action is restricted for this team - `user_is_restricted` — This method is only accessible by org owners, admins, and integration managers - `no_team_or_enterprise_provided` — Must provide team ID or enterprise ID - `team_not_found` — Returned when team id is not found. - `too_many_teams_provided` — Please provide only `team_id` OR `enterprise_id` See https://docs.slack.dev/reference/methods/admin.apps.requests.list */
2238
+ /** 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 */
2603
2239
  export const listAppsRequests = /*@__PURE__*/ API.makePaginated(() => ({
2604
2240
  input: ListAppsRequestsRequest,
2605
2241
  output: ListAppsRequestsResponse,
@@ -2880,7 +2516,7 @@ export const lookupWorkflowsTriggersTypesPermissions = /*@__PURE__*/ API.make(()
2880
2516
  protocol: SlackProtocol,
2881
2517
  retry: Retry.Retry,
2882
2518
  }));
2883
- /** Revoke an entity's access to an app that has its permission type set to named_entities Required scopes — user: `admin.apps:write` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `invalid_auth` — Invalid authorization token - `access_denied` — This actor does not have access to the permissions on this resource. - `named_entities_cannot_be_empty` — There must be at least one valid named entity - `app_not_found` — This app does not exist. - `not_an_enterprise` — This feature is only available on Enterprise Grid plans. - `invalid_permission_type` — This app requires permission_type to be set as named_entities before removing users. - `too_many_named_entities` — Too many named entities passed into the app permissions setting. - `app_acl_not_found` — This app does not have an ACL. - `internal_error` — Internal error - `user_not_found` — Value passed for `user_ids` was invalid. - `invalid_channel_restriction_mode` — Cannot remove channels when channel_restriction_mode is all_channels. - `channel_not_found` — One or more channel IDs are not valid. - `failed_to_update_channels` — An error occurred while updating the channel restriction list. See https://docs.slack.dev/reference/methods/admin.apps.permissions.remove */
2519
+ /** 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 */
2884
2520
  export const removeAppsPermissions = /*@__PURE__*/ API.make(() => ({
2885
2521
  input: RemoveAppsPermissionsRequest,
2886
2522
  output: RemoveAppsPermissionsResponse,
@@ -2888,7 +2524,7 @@ export const removeAppsPermissions = /*@__PURE__*/ API.make(() => ({
2888
2524
  protocol: SlackProtocol,
2889
2525
  retry: Retry.Retry,
2890
2526
  }));
2891
- /** Removes a set of users from a role for the given scopes and entities Required scopes — user: `admin.roles:write` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `failed_for_some_entities` — At least one role scope ID was invalid - `failed_for_some_users` — At least one user ID was invalid - `failed_for_some_users_and_entities` — At least one role scope ID was invalid - `feature_not_enabled` — This API is currently not enabled. - `invalid_actor` — This API is only enabled for the Admins/Owners. - `invalid_role_id` — The role type passed does not exist. - `no_valid_entities` — None of the entities passed were valid. - `no_valid_users` — None of the users passed were valid. - `too_many_entities` — More than 10 role scopes were passed. - `too_many_users` — More than 10 users were passed. - `cannot_modify_role_admin` — Cannot modify role admin. See https://docs.slack.dev/reference/methods/admin.roles.removeAssignments */
2527
+ /** 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 */
2892
2528
  export const removeAssignments = /*@__PURE__*/ API.make(() => ({
2893
2529
  input: RemoveAssignmentsRequest,
2894
2530
  output: RemoveAssignmentsResponse,
@@ -2936,6 +2572,14 @@ export const removeGroup = /*@__PURE__*/ API.make(() => ({
2936
2572
  protocol: SlackProtocol,
2937
2573
  retry: Retry.Retry,
2938
2574
  }));
2575
+ /** 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 */
2576
+ export const removeTeams = /*@__PURE__*/ API.make(() => ({
2577
+ input: RemoveTeamsRequest,
2578
+ output: RemoveTeamsResponse,
2579
+ errors: [SlackError, SlackRateLimited],
2580
+ protocol: SlackProtocol,
2581
+ retry: Retry.Retry,
2582
+ }));
2939
2583
  /** Remove a user from a workspace. Required scopes — user: `admin.users:write` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `cannot_modify_primary_owner` — The primary owner cannot be modified. - `failed_to_remove_user_from_workspace` — Removing this user from the workspace failed. - `feature_not_enabled` — The Admin APIs feature is not enabled for this team. - `invalid_auth` — The request could not be authorized - `invalid_permissions` — This method is only accessible by org owners and admins. - `team_not_found` — `team_id` was not found. - `user_already_deleted` — The requested user has already been marked as deleted. - `user_not_found` — The user was not found. See https://docs.slack.dev/reference/methods/admin.users.remove */
2940
2584
  export const removeUser = /*@__PURE__*/ API.make(() => ({
2941
2585
  input: RemoveUserRequest,
@@ -2944,6 +2588,14 @@ export const removeUser = /*@__PURE__*/ API.make(() => ({
2944
2588
  protocol: SlackProtocol,
2945
2589
  retry: Retry.Retry,
2946
2590
  }));
2591
+ /** 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 */
2592
+ export const removeUsers = /*@__PURE__*/ API.make(() => ({
2593
+ input: RemoveUsersRequest,
2594
+ output: RemoveUsersResponse,
2595
+ errors: [SlackError, SlackRateLimited],
2596
+ protocol: SlackProtocol,
2597
+ retry: Retry.Retry,
2598
+ }));
2947
2599
  /** Remove collaborators from workflows within the team or enterprise Required scopes — user: `admin.workflows:write` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `not_allowed` — The user is not allowed to access this API method - `error_removing_collaborators` — There were one or more errors adding workflow collaborators See https://docs.slack.dev/reference/methods/admin.workflows.collaborators.remove */
2948
2600
  export const removeWorkflowsCollaborator = /*@__PURE__*/ API.make(() => ({
2949
2601
  input: RemoveWorkflowsCollaboratorRequest,
@@ -2952,7 +2604,7 @@ export const removeWorkflowsCollaborator = /*@__PURE__*/ API.make(() => ({
2952
2604
  protocol: SlackProtocol,
2953
2605
  retry: Retry.Retry,
2954
2606
  }));
2955
- /** Rename a public or private channel. Required scopes — user: `admin.conversations:write` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `channel_not_found` — The value passed for `channel_id` was invalid. - `channel_type_not_supported` — The provided `channel_id` was a DM, MPDM, or the 'general' channel. - `could_not_rename_channel` — The channel could not be renamed. - `default_org_wide_channel` — The default org-wide channel can't be renamed. - `feature_not_enabled` — The token provided doesn't have access to this method. - `invalid_name_maxlength` — The channel name exceeds the maximum allowed length. - `name_taken` — The channel's name is already being used elsewhere. - `restricted_action` — A workspace preference prevents the authenticated user from renaming a channel. See https://docs.slack.dev/reference/methods/admin.conversations.rename */
2607
+ /** 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 */
2956
2608
  export const renameConversation = /*@__PURE__*/ API.make(() => ({
2957
2609
  input: RenameConversationRequest,
2958
2610
  output: RenameConversationResponse,
@@ -3038,7 +2690,7 @@ export const setAppsMcpServersPermissions = /*@__PURE__*/ API.make(() => ({
3038
2690
  protocol: SlackProtocol,
3039
2691
  retry: Retry.Retry,
3040
2692
  }));
3041
- /** Set the permission type for who can access an app Required scopes — user: `admin.apps:write` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `invalid_auth` — Invalid authorization token - `access_denied` — This actor does not have access to the permissions on this resource. - `invalid_permission_type` — This app requires permission_type to be set as named_entities before adding users. - `named_entities_cannot_be_empty` — Must pass at least one valid named entity. - `no_valid_named_entities` — None of the provided named entities were valid - `too_many_named_entities` — Too many named_entities passed into the app permissions setting. - `app_not_found` — This app does not exist. - `not_an_enterprise` — This feature is only available on Enterprise Grid plans. - `user_not_found` — This actor does not have access to at least one valid named entity. - `usergroup_not_found` — The usergroup is not valid. - `invalid_channel_restriction_mode` — The channel_restriction_mode value is not valid. - `channel_ids_required` — channel_ids is required when channel_restriction_mode is specific_channels or all_channels_except. - `channel_not_found` — One or more channel IDs are not valid. See https://docs.slack.dev/reference/methods/admin.apps.permissions.set */
2693
+ /** 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 */
3042
2694
  export const setAppsPermissions = /*@__PURE__*/ API.make(() => ({
3043
2695
  input: SetAppsPermissionsRequest,
3044
2696
  output: SetAppsPermissionsResponse,
@@ -3118,7 +2770,7 @@ export const setName = /*@__PURE__*/ API.make(() => ({
3118
2770
  protocol: SlackProtocol,
3119
2771
  retry: Retry.Retry,
3120
2772
  }));
3121
- /** Set an existing regular user or admin to be a workspace or org owner. Required scopes — user: `admin.users:write` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `cannot_modify_primary_owner` — The primary owner cannot be modified. - `failed_to_set_user_to_owner` — The change to the user's role failed. - `failed_to_set_owner_on_workspaces` — Failed to set the user as an owner on all workspaces. - `feature_not_enabled` — The Admin APIs feature is not enabled for this team. - `invalid_role_for_user` — The user cannot be made into an owner. - `not_an_admin` — This method can only be accessed by org owners and admins. - `not_an_owner` — This method can only be accessed by org owners. The app's installing user must retain org owner status for this method to function. - `not_supported` — This is not a supported action. - `team_not_found` — `team_id` was not found. - `user_must_be_in_workspace` — This user must be a member of at least one workspace. - `user_not_found` — The requested user was not found. See https://docs.slack.dev/reference/methods/admin.users.setOwner */
2773
+ /** 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 */
3122
2774
  export const setOwner = /*@__PURE__*/ API.make(() => ({
3123
2775
  input: SetOwnerRequest,
3124
2776
  output: SetOwnerResponse,
@@ -3214,4 +2866,20 @@ export const updateItem = /*@__PURE__*/ API.make(() => ({
3214
2866
  protocol: SlackProtocol,
3215
2867
  retry: Retry.Retry,
3216
2868
  }));
2869
+ /** 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 */
2870
+ export const updateUsergroup = /*@__PURE__*/ API.make(() => ({
2871
+ input: UpdateUsergroupRequest,
2872
+ output: UpdateUsergroupResponse,
2873
+ errors: [SlackError, SlackRateLimited],
2874
+ protocol: SlackProtocol,
2875
+ retry: Retry.Retry,
2876
+ }));
2877
+ /** 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 */
2878
+ export const uploadUsers = /*@__PURE__*/ API.make(() => ({
2879
+ input: UploadUsersRequest,
2880
+ output: UploadUsersResponse,
2881
+ errors: [SlackError, SlackRateLimited],
2882
+ protocol: SlackProtocol,
2883
+ retry: Retry.Retry,
2884
+ }));
3217
2885
  //# sourceMappingURL=admin.js.map