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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (209) hide show
  1. package/lib/credentials.d.ts +1 -1
  2. package/lib/credentials.d.ts.map +1 -1
  3. package/lib/credentials.js +39 -34
  4. package/lib/credentials.js.map +1 -1
  5. package/lib/errors.d.ts +31 -31
  6. package/lib/errors.d.ts.map +1 -1
  7. package/lib/errors.js +41 -41
  8. package/lib/errors.js.map +1 -1
  9. package/lib/index.d.ts +1 -1
  10. package/lib/index.js +9 -9
  11. package/lib/pagination.d.ts +2 -2
  12. package/lib/pagination.js +28 -28
  13. package/lib/protocol.d.ts.map +1 -1
  14. package/lib/protocol.js +61 -59
  15. package/lib/protocol.js.map +1 -1
  16. package/lib/retry.d.ts +2 -2
  17. package/lib/retry.d.ts.map +1 -1
  18. package/lib/retry.js +34 -33
  19. package/lib/retry.js.map +1 -1
  20. package/lib/services/admin.d.ts +123 -575
  21. package/lib/services/admin.d.ts.map +1 -1
  22. package/lib/services/admin.js +304 -2878
  23. package/lib/services/agents.d.ts +13 -55
  24. package/lib/services/agents.d.ts.map +1 -1
  25. package/lib/services/agents.js +48 -309
  26. package/lib/services/api.d.ts +0 -4
  27. package/lib/services/api.d.ts.map +1 -1
  28. package/lib/services/api.js +16 -18
  29. package/lib/services/apps.d.ts +25 -106
  30. package/lib/services/apps.d.ts.map +1 -1
  31. package/lib/services/apps.js +84 -509
  32. package/lib/services/assistant.d.ts +6 -40
  33. package/lib/services/assistant.d.ts.map +1 -1
  34. package/lib/services/assistant.js +33 -204
  35. package/lib/services/auth.d.ts +4 -15
  36. package/lib/services/auth.d.ts.map +1 -1
  37. package/lib/services/auth.js +22 -90
  38. package/lib/services/blocks.d.ts +1 -7
  39. package/lib/services/blocks.d.ts.map +1 -1
  40. package/lib/services/blocks.js +16 -21
  41. package/lib/services/bookmarks.d.ts +4 -15
  42. package/lib/services/bookmarks.d.ts.map +1 -1
  43. package/lib/services/bookmarks.js +27 -76
  44. package/lib/services/bots.d.ts +1 -9
  45. package/lib/services/bots.d.ts.map +1 -1
  46. package/lib/services/bots.js +17 -54
  47. package/lib/services/calls.d.ts +6 -22
  48. package/lib/services/calls.d.ts.map +1 -1
  49. package/lib/services/calls.js +35 -110
  50. package/lib/services/canvases.d.ts +7 -35
  51. package/lib/services/canvases.d.ts.map +1 -1
  52. package/lib/services/canvases.js +39 -135
  53. package/lib/services/chat.d.ts +14 -83
  54. package/lib/services/chat.d.ts.map +1 -1
  55. package/lib/services/chat.js +59 -381
  56. package/lib/services/conversations.d.ts +31 -116
  57. package/lib/services/conversations.d.ts.map +1 -1
  58. package/lib/services/conversations.js +94 -690
  59. package/lib/services/dialog.d.ts +1 -4
  60. package/lib/services/dialog.d.ts.map +1 -1
  61. package/lib/services/dialog.js +13 -17
  62. package/lib/services/dnd.d.ts +5 -17
  63. package/lib/services/dnd.d.ts.map +1 -1
  64. package/lib/services/dnd.js +26 -91
  65. package/lib/services/emoji.d.ts +1 -8
  66. package/lib/services/emoji.d.ts.map +1 -1
  67. package/lib/services/emoji.js +18 -29
  68. package/lib/services/entity.d.ts +4 -16
  69. package/lib/services/entity.d.ts.map +1 -1
  70. package/lib/services/entity.js +29 -71
  71. package/lib/services/files.d.ts +16 -80
  72. package/lib/services/files.d.ts.map +1 -1
  73. package/lib/services/files.js +75 -433
  74. package/lib/services/functions.d.ts +8 -49
  75. package/lib/services/functions.d.ts.map +1 -1
  76. package/lib/services/functions.js +45 -203
  77. package/lib/services/lists.d.ts +13 -55
  78. package/lib/services/lists.d.ts.map +1 -1
  79. package/lib/services/lists.js +53 -248
  80. package/lib/services/migration.d.ts +1 -7
  81. package/lib/services/migration.d.ts.map +1 -1
  82. package/lib/services/migration.js +18 -27
  83. package/lib/services/oauth.d.ts +7 -43
  84. package/lib/services/oauth.d.ts.map +1 -1
  85. package/lib/services/oauth.js +34 -289
  86. package/lib/services/openid.d.ts +3 -10
  87. package/lib/services/openid.d.ts.map +1 -1
  88. package/lib/services/openid.js +19 -79
  89. package/lib/services/pins.d.ts +3 -13
  90. package/lib/services/pins.d.ts.map +1 -1
  91. package/lib/services/pins.js +27 -61
  92. package/lib/services/reactions.d.ts +5 -17
  93. package/lib/services/reactions.d.ts.map +1 -1
  94. package/lib/services/reactions.js +30 -96
  95. package/lib/services/reminders.d.ts +5 -17
  96. package/lib/services/reminders.d.ts.map +1 -1
  97. package/lib/services/reminders.js +33 -83
  98. package/lib/services/rtm.d.ts +2 -11
  99. package/lib/services/rtm.d.ts.map +1 -1
  100. package/lib/services/rtm.js +22 -56
  101. package/lib/services/search.d.ts +4 -35
  102. package/lib/services/search.d.ts.map +1 -1
  103. package/lib/services/search.js +28 -167
  104. package/lib/services/stars.d.ts +4 -26
  105. package/lib/services/stars.d.ts.map +1 -1
  106. package/lib/services/stars.js +28 -128
  107. package/lib/services/team.d.ts +11 -63
  108. package/lib/services/team.d.ts.map +1 -1
  109. package/lib/services/team.js +45 -289
  110. package/lib/services/tooling.d.ts +2 -5
  111. package/lib/services/tooling.d.ts.map +1 -1
  112. package/lib/services/tooling.js +15 -28
  113. package/lib/services/usergroups.d.ts +7 -31
  114. package/lib/services/usergroups.d.ts.map +1 -1
  115. package/lib/services/usergroups.js +40 -146
  116. package/lib/services/users.d.ts +14 -48
  117. package/lib/services/users.d.ts.map +1 -1
  118. package/lib/services/users.js +54 -249
  119. package/lib/services/views.d.ts +4 -14
  120. package/lib/services/views.d.ts.map +1 -1
  121. package/lib/services/views.js +28 -73
  122. package/lib/services/workflows.d.ts +8 -51
  123. package/lib/services/workflows.d.ts.map +1 -1
  124. package/lib/services/workflows.js +37 -188
  125. package/lib/traits.d.ts +1 -1
  126. package/lib/traits.js +8 -8
  127. package/package.json +14 -10
  128. package/src/credentials.ts +20 -21
  129. package/src/errors.ts +31 -27
  130. package/src/index.ts +1 -1
  131. package/src/pagination.ts +2 -2
  132. package/src/protocol.ts +30 -29
  133. package/src/retry.ts +6 -6
  134. package/src/services/admin.ts +2717 -3451
  135. package/src/services/agents.ts +380 -370
  136. package/src/services/api.ts +31 -21
  137. package/src/services/apps.ts +569 -621
  138. package/src/services/assistant.ts +235 -270
  139. package/src/services/auth.ts +118 -100
  140. package/src/services/blocks.ts +33 -29
  141. package/src/services/bookmarks.ts +101 -83
  142. package/src/services/bots.ts +74 -67
  143. package/src/services/calls.ts +118 -124
  144. package/src/services/canvases.ts +171 -178
  145. package/src/services/chat.ts +428 -496
  146. package/src/services/conversations.ts +675 -761
  147. package/src/services/dialog.ts +30 -17
  148. package/src/services/dnd.ts +125 -99
  149. package/src/services/emoji.ts +46 -42
  150. package/src/services/entity.ts +94 -92
  151. package/src/services/files.ts +536 -531
  152. package/src/services/functions.ts +209 -274
  153. package/src/services/lists.ts +289 -304
  154. package/src/services/migration.ts +39 -37
  155. package/src/services/oauth.ts +345 -361
  156. package/src/services/openid.ts +137 -122
  157. package/src/services/pins.ts +83 -70
  158. package/src/services/reactions.ts +119 -103
  159. package/src/services/reminders.ts +112 -90
  160. package/src/services/rtm.ts +73 -65
  161. package/src/services/search.ts +193 -244
  162. package/src/services/stars.ts +101 -160
  163. package/src/services/team.ts +333 -369
  164. package/src/services/tooling.ts +43 -30
  165. package/src/services/usergroups.ts +175 -179
  166. package/src/services/users.ts +301 -268
  167. package/src/services/views.ts +85 -80
  168. package/src/services/workflows.ts +184 -269
  169. package/src/traits.ts +1 -1
  170. package/lib/protocol.test.d.ts +0 -2
  171. package/lib/protocol.test.d.ts.map +0 -1
  172. package/lib/protocol.test.js +0 -288
  173. package/lib/protocol.test.js.map +0 -1
  174. package/lib/services/admin.js.map +0 -1
  175. package/lib/services/agents.js.map +0 -1
  176. package/lib/services/api.js.map +0 -1
  177. package/lib/services/apps.js.map +0 -1
  178. package/lib/services/assistant.js.map +0 -1
  179. package/lib/services/auth.js.map +0 -1
  180. package/lib/services/blocks.js.map +0 -1
  181. package/lib/services/bookmarks.js.map +0 -1
  182. package/lib/services/bots.js.map +0 -1
  183. package/lib/services/calls.js.map +0 -1
  184. package/lib/services/canvases.js.map +0 -1
  185. package/lib/services/chat.js.map +0 -1
  186. package/lib/services/conversations.js.map +0 -1
  187. package/lib/services/dialog.js.map +0 -1
  188. package/lib/services/dnd.js.map +0 -1
  189. package/lib/services/emoji.js.map +0 -1
  190. package/lib/services/entity.js.map +0 -1
  191. package/lib/services/files.js.map +0 -1
  192. package/lib/services/functions.js.map +0 -1
  193. package/lib/services/lists.js.map +0 -1
  194. package/lib/services/migration.js.map +0 -1
  195. package/lib/services/oauth.js.map +0 -1
  196. package/lib/services/openid.js.map +0 -1
  197. package/lib/services/pins.js.map +0 -1
  198. package/lib/services/reactions.js.map +0 -1
  199. package/lib/services/reminders.js.map +0 -1
  200. package/lib/services/rtm.js.map +0 -1
  201. package/lib/services/search.js.map +0 -1
  202. package/lib/services/stars.js.map +0 -1
  203. package/lib/services/team.js.map +0 -1
  204. package/lib/services/tooling.js.map +0 -1
  205. package/lib/services/usergroups.js.map +0 -1
  206. package/lib/services/users.js.map +0 -1
  207. package/lib/services/views.js.map +0 -1
  208. package/lib/services/workflows.js.map +0 -1
  209. package/src/protocol.test.ts +0 -372
@@ -1,2885 +1,311 @@
1
1
  import * as API from "@distilled.cloud/core/api";
2
2
  // AUTO-GENERATED by scripts/generate.ts from .generated-specs (docs.slack.dev JSON twins). Do not edit.
3
- import * as S from "@distilled.cloud/core/schema";
3
+ import * as S from "@distilled.cloud/core/schema-lite";
4
+ import * as __L from "@distilled.cloud/core/schema-lite";
4
5
  import { SlackError, SlackRateLimited } from "../errors.js";
5
6
  import { slackPaginate } from "../pagination.js";
6
7
  import { SlackProtocol } from "../protocol.js";
7
8
  import * as Retry from "../retry.js";
8
9
  import * as T from "../traits.js";
9
- export const AddAliasRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
10
- name: S.String.pipe(T.Query()),
11
- alias_for: S.String.pipe(T.Query()),
12
- }).pipe(T.Http({ method: "GET", uri: "/admin.emoji.addAlias", code: 200 }))).annotate({ identifier: "AddAliasRequest" });
13
- export const AddAliasResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
14
- ok: S.Boolean,
15
- })).annotate({ identifier: "AddAliasResponse" });
16
- export const AddAppsPermissionsRequestUserIdsList = /*@__PURE__*/ S.Array(S.String);
17
- export const AddAppsPermissionsRequestUsergroupIdsList = /*@__PURE__*/ S.Array(S.String);
18
- export const AddAppsPermissionsRequestChannelIdsList = /*@__PURE__*/ S.Array(S.String);
19
- export const AddAppsPermissionsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
20
- app_id: S.String,
21
- user_ids: S.optional(AddAppsPermissionsRequestUserIdsList),
22
- usergroup_ids: S.optional(AddAppsPermissionsRequestUsergroupIdsList),
23
- channel_ids: S.optional(AddAppsPermissionsRequestChannelIdsList),
24
- }).pipe(T.Http({ method: "POST", uri: "/admin.apps.permissions.add", code: 200 }))).annotate({
25
- identifier: "AddAppsPermissionsRequest",
26
- });
27
- export const AddAppsPermissionsResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
28
- ok: S.Boolean,
29
- })).annotate({
30
- identifier: "AddAppsPermissionsResponse",
31
- });
32
- export const AddAssignmentsRequestEntityIdsList = /*@__PURE__*/ S.Array(S.String);
33
- export const AddAssignmentsRequestUserIdsList = /*@__PURE__*/ S.Array(S.String);
34
- export const AddAssignmentsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
35
- role_id: S.String,
36
- entity_ids: AddAssignmentsRequestEntityIdsList,
37
- user_ids: AddAssignmentsRequestUserIdsList,
38
- }).pipe(T.Http({ method: "POST", uri: "/admin.roles.addAssignments", code: 200 }))).annotate({ identifier: "AddAssignmentsRequest" });
39
- export const AddAssignmentsResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
40
- ok: S.Boolean,
41
- error: S.optional(S.String),
42
- })).annotate({ identifier: "AddAssignmentsResponse" });
43
- export const AddChannelsRequestChannelIdsList = /*@__PURE__*/ S.Array(S.String);
44
- export const AddChannelsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
45
- usergroup_id: S.String,
46
- team_id: S.optional(S.String),
47
- channel_ids: AddChannelsRequestChannelIdsList,
48
- }).pipe(T.Http({ method: "POST", uri: "/admin.usergroups.addChannels", code: 200 }))).annotate({ identifier: "AddChannelsRequest" });
49
- export const AddChannelsResponseInvalidChannelsList = /*@__PURE__*/ S.Array(S.String);
50
- export const AddChannelsResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
51
- ok: S.Boolean,
52
- error: S.optional(S.String),
53
- invalid_channels: S.optional(AddChannelsResponseInvalidChannelsList),
54
- })).annotate({ identifier: "AddChannelsResponse" });
55
- export const AddEmojiRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
56
- name: S.String.pipe(T.Query()),
57
- url: S.optional(S.String.pipe(T.Query())),
58
- }).pipe(T.Http({ method: "GET", uri: "/admin.emoji.add", code: 200 }))).annotate({ identifier: "AddEmojiRequest" });
59
- export const AddEmojiResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
60
- ok: S.Boolean,
61
- })).annotate({ identifier: "AddEmojiResponse" });
62
- export const AddGroupRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
63
- team_id: S.optional(S.String.pipe(T.Query())),
64
- group_id: S.String.pipe(T.Query()),
65
- channel_id: S.String.pipe(T.Query()),
66
- }).pipe(T.Http({ method: "GET", uri: "/admin.conversations.restrictAccess.addGroup", code: 200 }))).annotate({ identifier: "AddGroupRequest" });
67
- export const AddGroupResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
68
- ok: S.Boolean,
69
- })).annotate({ identifier: "AddGroupResponse" });
70
- export const AddTeamsRequestTeamIdsList = /*@__PURE__*/ S.Array(S.String);
71
- export const AddTeamsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
72
- usergroup_id: S.String,
73
- team_ids: AddTeamsRequestTeamIdsList,
74
- auto_provision: S.optional(S.Boolean),
75
- }).pipe(T.Http({ method: "POST", uri: "/admin.usergroups.addTeams", code: 200 }))).annotate({ identifier: "AddTeamsRequest" });
76
- export const AddTeamsResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
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,
88
- })).annotate({
89
- identifier: "AddUsersResponseInvalidUsersItem",
90
- });
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);
99
- export const AddWorkflowsCollaboratorRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
100
- workflow_ids: AddWorkflowsCollaboratorRequestWorkflowIdsList,
101
- collaborator_ids: AddWorkflowsCollaboratorRequestCollaboratorIdsList,
102
- }).pipe(T.Http({ method: "POST", uri: "/admin.workflows.collaborators.add", code: 200 }))).annotate({
103
- identifier: "AddWorkflowsCollaboratorRequest",
104
- });
105
- export const AddWorkflowsCollaboratorResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
106
- ok: S.Boolean,
107
- })).annotate({
108
- identifier: "AddWorkflowsCollaboratorResponse",
109
- });
110
- export const AnalyticsMessagesActivityRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
111
- channel: S.String.pipe(T.Query()),
112
- oldest_ts: S.optional(S.String.pipe(T.Query())),
113
- latest_ts: S.optional(S.String.pipe(T.Query())),
114
- cursor: S.optional(S.String.pipe(T.Query())),
115
- limit: S.optional(S.Number.pipe(T.Query())),
116
- }).pipe(T.Http({ method: "GET", uri: "/admin.analytics.messages.activity", code: 200 }))).annotate({
117
- identifier: "AnalyticsMessagesActivityRequest",
118
- });
119
- export const AnalyticsMessagesActivityResponseResponseMetadata = /*@__PURE__*/ S.suspend(() => S.Struct({
120
- next_cursor: S.optional(S.String),
121
- })).annotate({
122
- identifier: "AnalyticsMessagesActivityResponseResponseMetadata",
123
- });
124
- export const AnalyticsMessagesActivityResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
125
- ok: S.Boolean,
126
- response_metadata: S.optional(AnalyticsMessagesActivityResponseResponseMetadata),
127
- message_activities: S.Unknown,
128
- })).annotate({
129
- identifier: "AnalyticsMessagesActivityResponse",
130
- });
131
- export const AnalyticsMessagesMetadataRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
132
- channel: S.String.pipe(T.Query()),
133
- oldest_ts: S.optional(S.String.pipe(T.Query())),
134
- latest_ts: S.optional(S.String.pipe(T.Query())),
135
- cursor: S.optional(S.String.pipe(T.Query())),
136
- }).pipe(T.Http({ method: "GET", uri: "/admin.analytics.messages.metadata", code: 200 }))).annotate({
137
- identifier: "AnalyticsMessagesMetadataRequest",
138
- });
139
- export const AnalyticsMessagesMetadataResponseResponseMetadata = AnalyticsMessagesActivityResponseResponseMetadata;
140
- export const AnalyticsMessagesMetadataResponseMessagesItemReactionsItem = /*@__PURE__*/ S.suspend(() => S.Struct({
141
- name: S.String,
142
- count: S.Number,
143
- })).annotate({
144
- identifier: "AnalyticsMessagesMetadataResponseMessagesItemReactionsItem",
145
- });
146
- export const AnalyticsMessagesMetadataResponseMessagesItemReactionsList = /*@__PURE__*/ S.Array(AnalyticsMessagesMetadataResponseMessagesItemReactionsItem);
147
- export const AnalyticsMessagesMetadataResponseMessagesItemFilesItem = /*@__PURE__*/ S.suspend(() => S.Struct({
148
- id: S.String,
149
- created: S.Number,
150
- timestamp: S.Number,
151
- mimetype: S.optional(S.String),
152
- filetype: S.optional(S.String),
153
- subtype: S.optional(S.String),
154
- pretty_type: S.optional(S.String),
155
- is_external: S.optional(S.Boolean),
156
- external_type: S.optional(S.String),
157
- is_public: S.optional(S.Boolean),
158
- public_url_shared: S.optional(S.Boolean),
159
- display_as_bot: S.optional(S.Boolean),
160
- duration_ms: S.optional(S.Number),
161
- media_display_type: S.optional(S.String),
162
- })).annotate({
163
- identifier: "AnalyticsMessagesMetadataResponseMessagesItemFilesItem",
164
- });
165
- export const AnalyticsMessagesMetadataResponseMessagesItemFilesList = /*@__PURE__*/ S.Array(AnalyticsMessagesMetadataResponseMessagesItemFilesItem);
166
- export const AnalyticsMessagesMetadataResponseMessagesItem = /*@__PURE__*/ S.suspend(() => S.Struct({
167
- user_id: S.optional(S.String),
168
- type: S.String,
169
- subtype: S.optional(S.String),
170
- ts: S.String,
171
- thread_ts: S.optional(S.String),
172
- display_as_bot: S.optional(S.Boolean),
173
- client_msg_id: S.optional(S.String),
174
- text_character_count: S.optional(S.Number),
175
- reactions: S.optional(AnalyticsMessagesMetadataResponseMessagesItemReactionsList),
176
- files: S.optional(AnalyticsMessagesMetadataResponseMessagesItemFilesList),
177
- })).annotate({
178
- identifier: "AnalyticsMessagesMetadataResponseMessagesItem",
179
- });
180
- export const AnalyticsMessagesMetadataResponseMessagesList = /*@__PURE__*/ S.Array(AnalyticsMessagesMetadataResponseMessagesItem);
181
- export const AnalyticsMessagesMetadataResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
182
- ok: S.Boolean,
183
- response_metadata: S.optional(AnalyticsMessagesActivityResponseResponseMetadata),
184
- messages: AnalyticsMessagesMetadataResponseMessagesList,
185
- })).annotate({
186
- identifier: "AnalyticsMessagesMetadataResponse",
187
- });
188
- export const ApproveAppRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
189
- allow_child_auto_install: S.optional(S.Boolean),
190
- app_id: S.optional(S.String),
191
- request_id: S.optional(S.String),
192
- team_id: S.optional(S.String),
193
- enterprise_id: S.optional(S.String),
194
- user_scopes: S.optional(S.String),
195
- bot_scopes: S.optional(S.String),
196
- }).pipe(T.Http({ method: "POST", uri: "/admin.apps.approve", code: 200 }))).annotate({ identifier: "ApproveAppRequest" });
197
- export const ApproveAppResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
198
- ok: S.Boolean,
199
- })).annotate({ identifier: "ApproveAppResponse" });
200
- export const ApproveInviteRequestRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
201
- team_id: S.optional(S.String),
202
- invite_request_id: S.String,
203
- }).pipe(T.Http({ method: "POST", uri: "/admin.inviteRequests.approve", code: 200 }))).annotate({
204
- identifier: "ApproveInviteRequestRequest",
205
- });
206
- export const ApproveInviteRequestResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
207
- ok: S.Boolean,
208
- })).annotate({
209
- identifier: "ApproveInviteRequestResponse",
210
- });
211
- export const AppsRestrictRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
212
- app_id: S.optional(S.String),
213
- request_id: S.optional(S.String),
214
- team_id: S.optional(S.String),
215
- enterprise_id: S.optional(S.String),
216
- }).pipe(T.Http({ method: "POST", uri: "/admin.apps.restrict", code: 200 }))).annotate({ identifier: "AppsRestrictRequest" });
217
- export const AppsRestrictResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
218
- ok: S.Boolean,
219
- })).annotate({ identifier: "AppsRestrictResponse" });
220
- export const ArchiveConversationRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
221
- channel_id: S.String,
222
- }).pipe(T.Http({ method: "POST", uri: "/admin.conversations.archive", code: 200 }))).annotate({
223
- identifier: "ArchiveConversationRequest",
224
- });
225
- export const ArchiveConversationResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
226
- ok: S.Boolean,
227
- })).annotate({
228
- identifier: "ArchiveConversationResponse",
229
- });
230
- export const AssignEntitiesRequestEntityIdsList = /*@__PURE__*/ S.Array(S.String);
231
- export const AssignEntitiesRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
232
- policy_name: S.String,
233
- entity_type: S.Unknown,
234
- entity_ids: AssignEntitiesRequestEntityIdsList,
235
- }).pipe(T.Http({ method: "POST", uri: "/admin.auth.policy.assignEntities", code: 200 }))).annotate({ identifier: "AssignEntitiesRequest" });
236
- export const AssignEntitiesResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
237
- ok: S.Boolean,
238
- entity_total_count: S.Number,
239
- })).annotate({ identifier: "AssignEntitiesResponse" });
240
- export const AssignUserRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
241
- team_id: S.String,
242
- user_id: S.String,
243
- is_restricted: S.optional(S.Boolean),
244
- is_ultra_restricted: S.optional(S.Boolean),
245
- channel_ids: S.optional(S.String),
246
- }).pipe(T.Http({ method: "POST", uri: "/admin.users.assign", code: 200 }))).annotate({ identifier: "AssignUserRequest" });
247
- export const AssignUserResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
248
- ok: S.Boolean,
249
- })).annotate({ identifier: "AssignUserResponse" });
250
- export const BulkArchiveRequestChannelIdsList = /*@__PURE__*/ S.Array(S.String);
251
- export const BulkArchiveRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
252
- channel_ids: BulkArchiveRequestChannelIdsList,
253
- }).pipe(T.Http({
254
- method: "POST",
255
- uri: "/admin.conversations.bulkArchive",
256
- code: 200,
257
- contentType: "form-urlencoded",
258
- }))).annotate({ identifier: "BulkArchiveRequest" });
259
- export const BulkArchiveResponseNotAddedItemErrorsList = /*@__PURE__*/ S.Array(S.String);
260
- export const BulkArchiveResponseNotAddedItem = /*@__PURE__*/ S.suspend(() => S.Struct({
261
- channel_id: S.String,
262
- errors: BulkArchiveResponseNotAddedItemErrorsList,
263
- })).annotate({
264
- identifier: "BulkArchiveResponseNotAddedItem",
265
- });
266
- export const BulkArchiveResponseNotAddedList = /*@__PURE__*/ S.Array(BulkArchiveResponseNotAddedItem);
267
- export const BulkArchiveResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
268
- ok: S.Boolean,
269
- bulk_action_id: S.String,
270
- not_added: BulkArchiveResponseNotAddedList,
271
- })).annotate({ identifier: "BulkArchiveResponse" });
272
- export const BulkDeleteRequestChannelIdsList = /*@__PURE__*/ S.Array(S.String);
273
- export const BulkDeleteRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
274
- channel_ids: BulkDeleteRequestChannelIdsList,
275
- }).pipe(T.Http({
276
- method: "POST",
277
- uri: "/admin.conversations.bulkDelete",
278
- code: 200,
279
- contentType: "form-urlencoded",
280
- }))).annotate({ identifier: "BulkDeleteRequest" });
281
- export const BulkDeleteResponseNotAddedItemErrorsList = /*@__PURE__*/ S.Array(S.String);
282
- export const BulkDeleteResponseNotAddedItem = /*@__PURE__*/ S.suspend(() => S.Struct({
283
- channel_id: S.String,
284
- errors: BulkDeleteResponseNotAddedItemErrorsList,
285
- })).annotate({
286
- identifier: "BulkDeleteResponseNotAddedItem",
287
- });
288
- export const BulkDeleteResponseNotAddedList = /*@__PURE__*/ S.Array(BulkDeleteResponseNotAddedItem);
289
- export const BulkDeleteResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
290
- ok: S.Boolean,
291
- bulk_action_id: S.String,
292
- not_added: BulkDeleteResponseNotAddedList,
293
- })).annotate({ identifier: "BulkDeleteResponse" });
294
- export const BulkMoveRequestChannelIdsList = /*@__PURE__*/ S.Array(S.String);
295
- export const BulkMoveRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
296
- target_team_id: S.String,
297
- channel_ids: BulkMoveRequestChannelIdsList,
298
- }).pipe(T.Http({
299
- method: "POST",
300
- uri: "/admin.conversations.bulkMove",
301
- code: 200,
302
- contentType: "form-urlencoded",
303
- }))).annotate({ identifier: "BulkMoveRequest" });
304
- export const BulkMoveResponseNotAddedItemErrorsList = /*@__PURE__*/ S.Array(S.String);
305
- export const BulkMoveResponseNotAddedItem = /*@__PURE__*/ S.suspend(() => S.Struct({
306
- channel_id: S.String,
307
- errors: BulkMoveResponseNotAddedItemErrorsList,
308
- })).annotate({
309
- identifier: "BulkMoveResponseNotAddedItem",
310
- });
311
- export const BulkMoveResponseNotAddedList = /*@__PURE__*/ S.Array(BulkMoveResponseNotAddedItem);
312
- export const BulkMoveResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
313
- ok: S.Boolean,
314
- bulk_action_id: S.String,
315
- not_added: BulkMoveResponseNotAddedList,
316
- })).annotate({ identifier: "BulkMoveResponse" });
317
- export const BulkSetExcludeFromSlackAiRequestChannelIdsList = /*@__PURE__*/ S.Array(S.String);
318
- export const BulkSetExcludeFromSlackAiRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
319
- channel_ids: BulkSetExcludeFromSlackAiRequestChannelIdsList.pipe(T.Query()),
320
- exclude: S.Boolean.pipe(T.Query()),
321
- }).pipe(T.Http({ method: "GET", uri: "/admin.conversations.bulkSetExcludeFromSlackAi", code: 200 }))).annotate({
322
- identifier: "BulkSetExcludeFromSlackAiRequest",
323
- });
324
- export const BulkSetExcludeFromSlackAiResponseNotAddedItemErrorsList = /*@__PURE__*/ S.Array(S.String);
325
- export const BulkSetExcludeFromSlackAiResponseNotAddedItem = /*@__PURE__*/ S.suspend(() => S.Struct({
326
- channel_id: S.String,
327
- errors: BulkSetExcludeFromSlackAiResponseNotAddedItemErrorsList,
328
- })).annotate({
329
- identifier: "BulkSetExcludeFromSlackAiResponseNotAddedItem",
330
- });
331
- export const BulkSetExcludeFromSlackAiResponseNotAddedList = /*@__PURE__*/ S.Array(BulkSetExcludeFromSlackAiResponseNotAddedItem);
332
- export const BulkSetExcludeFromSlackAiResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
333
- ok: S.Boolean,
334
- bulk_action_id: S.String,
335
- not_added: BulkSetExcludeFromSlackAiResponseNotAddedList,
336
- })).annotate({
337
- identifier: "BulkSetExcludeFromSlackAiResponse",
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
- });
364
- export const CancelAppsRequestRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
365
- request_id: S.String,
366
- team_id: S.optional(S.String),
367
- enterprise_id: S.optional(S.String),
368
- }).pipe(T.Http({ method: "POST", uri: "/admin.apps.requests.cancel", code: 200 }))).annotate({ identifier: "CancelAppsRequestRequest" });
369
- export const CancelAppsRequestResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
370
- ok: S.Boolean,
371
- })).annotate({
372
- identifier: "CancelAppsRequestResponse",
373
- });
374
- export const ClearResolutionRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
375
- app_id: S.String,
376
- team_id: S.optional(S.String),
377
- enterprise_id: S.optional(S.String),
378
- }).pipe(T.Http({ method: "POST", uri: "/admin.apps.clearResolution", code: 200 }))).annotate({ identifier: "ClearResolutionRequest" });
379
- export const ClearResolutionResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
380
- ok: S.Boolean,
381
- })).annotate({ identifier: "ClearResolutionResponse" });
382
- export const ClearSettingsRequestUserIdsList = /*@__PURE__*/ S.Array(S.String);
383
- export const ClearSettingsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
384
- user_ids: ClearSettingsRequestUserIdsList,
385
- }).pipe(T.Http({ method: "POST", uri: "/admin.users.session.clearSettings", code: 200 }))).annotate({ identifier: "ClearSettingsRequest" });
386
- export const ClearSettingsResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
387
- ok: S.Boolean,
388
- })).annotate({ identifier: "ClearSettingsResponse" });
389
- export const ConvertToPrivateRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
390
- channel_id: S.String,
391
- name: S.optional(S.String),
392
- }).pipe(T.Http({ method: "POST", uri: "/admin.conversations.convertToPrivate", code: 200 }))).annotate({ identifier: "ConvertToPrivateRequest" });
393
- export const ConvertToPrivateResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
394
- ok: S.Boolean,
395
- })).annotate({ identifier: "ConvertToPrivateResponse" });
396
- export const ConvertToPublicRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
397
- channel_id: S.String,
398
- }).pipe(T.Http({ method: "POST", uri: "/admin.conversations.convertToPublic", code: 200 }))).annotate({ identifier: "ConvertToPublicRequest" });
399
- export const ConvertToPublicResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
400
- ok: S.Boolean,
401
- })).annotate({ identifier: "ConvertToPublicResponse" });
402
- export const CreateBarrierRequestBarrieredFromUsergroupIdsList = /*@__PURE__*/ S.Array(S.String);
403
- export const CreateBarrierRequestRestrictedSubjectsItem = S.String;
404
- export const CreateBarrierRequestRestrictedSubjectsList = /*@__PURE__*/ S.Array(CreateBarrierRequestRestrictedSubjectsItem);
405
- export const CreateBarrierRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
406
- primary_usergroup_id: S.String,
407
- barriered_from_usergroup_ids: CreateBarrierRequestBarrieredFromUsergroupIdsList,
408
- restricted_subjects: CreateBarrierRequestRestrictedSubjectsList,
409
- }).pipe(T.Http({
410
- method: "POST",
411
- uri: "/admin.barriers.create",
412
- code: 200,
413
- contentType: "form-urlencoded",
414
- }))).annotate({ identifier: "CreateBarrierRequest" });
415
- export const CreateBarrierResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
416
- ok: S.Boolean,
417
- barrier: S.Unknown,
418
- })).annotate({ identifier: "CreateBarrierResponse" });
419
- export const CreateConversationRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
420
- name: S.String,
421
- description: S.optional(S.String),
422
- is_private: S.Boolean,
423
- org_wide: S.optional(S.Boolean),
424
- team_id: S.optional(S.String),
425
- }).pipe(T.Http({ method: "POST", uri: "/admin.conversations.create", code: 200 }))).annotate({
426
- identifier: "CreateConversationRequest",
427
- });
428
- export const CreateConversationResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
429
- ok: S.Boolean,
430
- channel_id: S.optional(S.String),
431
- })).annotate({
432
- identifier: "CreateConversationResponse",
433
- });
434
- export const CreateForObjectsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
435
- object_id: S.String,
436
- salesforce_org_id: S.String,
437
- invite_object_team: S.optional(S.Boolean),
438
- }).pipe(T.Http({ method: "POST", uri: "/admin.conversations.createForObjects", code: 200 }))).annotate({ identifier: "CreateForObjectsRequest" });
439
- export const CreateForObjectsResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
440
- ok: S.Boolean,
441
- channel_id: S.String,
442
- })).annotate({ identifier: "CreateForObjectsResponse" });
443
- export const CreateTeamRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
444
- team_domain: S.String,
445
- team_name: S.String,
446
- team_description: S.optional(S.String),
447
- team_discoverability: S.optional(S.String),
448
- }).pipe(T.Http({ method: "POST", uri: "/admin.teams.create", code: 200 }))).annotate({ identifier: "CreateTeamRequest" });
449
- export const CreateTeamResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
450
- ok: S.Boolean,
451
- team: S.String,
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" });
464
- export const DeleteBarrierRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
465
- barrier_id: S.String,
466
- }).pipe(T.Http({
467
- method: "POST",
468
- uri: "/admin.barriers.delete",
469
- code: 200,
470
- contentType: "form-urlencoded",
471
- }))).annotate({ identifier: "DeleteBarrierRequest" });
472
- export const DeleteBarrierResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
473
- ok: S.Boolean,
474
- })).annotate({ identifier: "DeleteBarrierResponse" });
475
- export const DeleteConversationRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
476
- channel_id: S.String,
477
- }).pipe(T.Http({ method: "POST", uri: "/admin.conversations.delete", code: 200 }))).annotate({
478
- identifier: "DeleteConversationRequest",
479
- });
480
- export const DeleteConversationResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
481
- ok: S.Boolean,
482
- })).annotate({
483
- identifier: "DeleteConversationResponse",
484
- });
485
- export const DisconnectSharedRequestLeavingTeamIdsList = /*@__PURE__*/ S.Array(S.String);
486
- export const DisconnectSharedRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
487
- channel_id: S.String,
488
- leaving_team_ids: S.optional(DisconnectSharedRequestLeavingTeamIdsList),
489
- }).pipe(T.Http({ method: "POST", uri: "/admin.conversations.disconnectShared", code: 200 }))).annotate({ identifier: "DisconnectSharedRequest" });
490
- export const DisconnectSharedResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
491
- ok: S.Boolean,
492
- })).annotate({ identifier: "DisconnectSharedResponse" });
493
- export const ExportUsersUnsupportedVersionRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
494
- date_sessions_started: S.optional(S.Number),
495
- date_end_of_support: S.optional(S.Number),
496
- }).pipe(T.Http({
497
- method: "POST",
498
- uri: "/admin.users.unsupportedVersions.export",
499
- code: 200,
500
- contentType: "form-urlencoded",
501
- }))).annotate({
502
- identifier: "ExportUsersUnsupportedVersionRequest",
503
- });
504
- export const ExportUsersUnsupportedVersionResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
505
- ok: S.Boolean,
506
- })).annotate({
507
- identifier: "ExportUsersUnsupportedVersionResponse",
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" });
516
- export const GetConversationPrefsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
517
- channel_id: S.String,
518
- }).pipe(T.Http({ method: "POST", uri: "/admin.conversations.getConversationPrefs", code: 200 }))).annotate({
519
- identifier: "GetConversationPrefsRequest",
520
- });
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({
524
- type: S.optional(GetConversationPrefsResponsePrefsWhoCanPostTypeList),
525
- user: S.optional(GetConversationPrefsResponsePrefsWhoCanPostUserList),
526
- })).annotate({
527
- identifier: "GetConversationPrefsResponsePrefsWhoCanPost",
528
- });
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({
532
- type: S.optional(GetConversationPrefsResponsePrefsCanThreadTypeList),
533
- user: S.optional(GetConversationPrefsResponsePrefsCanThreadUserList),
534
- })).annotate({
535
- identifier: "GetConversationPrefsResponsePrefsCanThread",
536
- });
537
- export const GetConversationPrefsResponsePrefsMembershipLimit = /*@__PURE__*/ S.suspend(() => S.Struct({
538
- value: S.optional(S.Number),
539
- })).annotate({
540
- identifier: "GetConversationPrefsResponsePrefsMembershipLimit",
541
- });
542
- export const GetConversationPrefsResponsePrefsCanHuddle = /*@__PURE__*/ S.suspend(() => S.Struct({
543
- enabled: S.optional(S.Boolean),
544
- })).annotate({
545
- identifier: "GetConversationPrefsResponsePrefsCanHuddle",
546
- });
547
- export const GetConversationPrefsResponsePrefsEnableAtChannel = /*@__PURE__*/ S.suspend(() => S.Struct({
548
- enabled: S.optional(S.Boolean),
549
- })).annotate({
550
- identifier: "GetConversationPrefsResponsePrefsEnableAtChannel",
551
- });
552
- export const GetConversationPrefsResponsePrefsEnableAtHere = /*@__PURE__*/ S.suspend(() => S.Struct({
553
- enabled: S.optional(S.Boolean),
554
- })).annotate({
555
- identifier: "GetConversationPrefsResponsePrefsEnableAtHere",
556
- });
557
- export const GetConversationPrefsResponsePrefs = /*@__PURE__*/ S.suspend(() => S.Struct({
558
- who_can_post: S.optional(GetConversationPrefsResponsePrefsWhoCanPost),
559
- can_thread: S.optional(GetConversationPrefsResponsePrefsCanThread),
560
- membership_limit: S.optional(GetConversationPrefsResponsePrefsMembershipLimit),
561
- can_huddle: S.optional(GetConversationPrefsResponsePrefsCanHuddle),
562
- enable_at_channel: S.optional(GetConversationPrefsResponsePrefsEnableAtChannel),
563
- enable_at_here: S.optional(GetConversationPrefsResponsePrefsEnableAtHere),
564
- })).annotate({
565
- identifier: "GetConversationPrefsResponsePrefs",
566
- });
567
- export const GetConversationPrefsResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
568
- ok: S.Boolean,
569
- prefs: S.optional(GetConversationPrefsResponsePrefs),
570
- })).annotate({
571
- identifier: "GetConversationPrefsResponse",
572
- });
573
- export const GetCustomRetentionRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
574
- channel_id: S.String,
575
- }).pipe(T.Http({ method: "POST", uri: "/admin.conversations.getCustomRetention", code: 200 }))).annotate({
576
- identifier: "GetCustomRetentionRequest",
577
- });
578
- export const GetCustomRetentionResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
579
- ok: S.Boolean,
580
- is_policy_enabled: S.Boolean,
581
- duration_days: S.Number,
582
- })).annotate({
583
- identifier: "GetCustomRetentionResponse",
584
- });
585
- export const GetEntitiesRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
586
- policy_name: S.String,
587
- entity_type: S.optional(S.Unknown),
588
- limit: S.optional(S.Number),
589
- cursor: S.optional(S.String),
590
- }).pipe(T.Http({ method: "POST", uri: "/admin.auth.policy.getEntities", code: 200 }))).annotate({ identifier: "GetEntitiesRequest" });
591
- export const GetEntitiesResponseResponseMetadata = AnalyticsMessagesActivityResponseResponseMetadata;
592
- export const GetEntitiesResponseEntitiesItem = /*@__PURE__*/ S.suspend(() => S.Struct({
593
- entity_type: S.String,
594
- entity_id: S.String,
595
- date_added: S.Number,
596
- })).annotate({
597
- identifier: "GetEntitiesResponseEntitiesItem",
598
- });
599
- export const GetEntitiesResponseEntitiesList = /*@__PURE__*/ S.Array(GetEntitiesResponseEntitiesItem);
600
- export const GetEntitiesResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
601
- ok: S.Boolean,
602
- response_metadata: S.optional(AnalyticsMessagesActivityResponseResponseMetadata),
603
- entities: GetEntitiesResponseEntitiesList,
604
- entity_total_count: S.Number,
605
- })).annotate({ identifier: "GetEntitiesResponse" });
606
- export const GetExpirationRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
607
- user_id: S.String.pipe(T.Query()),
608
- target_team: S.optional(S.String.pipe(T.Query())),
609
- }).pipe(T.Http({ method: "GET", uri: "/admin.users.getExpiration", code: 200 }))).annotate({ identifier: "GetExpirationRequest" });
610
- export const GetExpirationResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
611
- ok: S.Boolean,
612
- })).annotate({ identifier: "GetExpirationResponse" });
613
- export const GetFileRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
614
- date: S.optional(S.String.pipe(T.Query())),
615
- type: S.String.pipe(T.Query()),
616
- metadata_only: S.optional(S.Boolean.pipe(T.Query())),
617
- }).pipe(T.Http({ method: "GET", uri: "/admin.analytics.getFile", code: 200 }))).annotate({ identifier: "GetFileRequest" });
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" });
620
- export const GetItemResponseTrustedCidrList = /*@__PURE__*/ S.Array(S.String);
621
- export const GetItemResponseTrustedAsnsList = /*@__PURE__*/ S.Array(S.Number);
622
- export const GetItemResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
623
- ok: S.Boolean,
624
- trusted_cidr: S.optional(GetItemResponseTrustedCidrList),
625
- trusted_asns: S.optional(GetItemResponseTrustedAsnsList),
626
- })).annotate({ identifier: "GetItemResponse" });
627
- export const GetSettingsRequestUserIdsList = /*@__PURE__*/ S.Array(S.String);
628
- export const GetSettingsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
629
- user_ids: GetSettingsRequestUserIdsList,
630
- }).pipe(T.Http({ method: "POST", uri: "/admin.users.session.getSettings", code: 200 }))).annotate({ identifier: "GetSettingsRequest" });
631
- export const GetSettingsResponseSessionSettingsItem = /*@__PURE__*/ S.suspend(() => S.Struct({
632
- user_id: S.String,
633
- desktop_app_browser_quit: S.Unknown,
634
- duration: S.Unknown,
635
- })).annotate({
636
- identifier: "GetSettingsResponseSessionSettingsItem",
637
- });
638
- export const GetSettingsResponseSessionSettingsList = /*@__PURE__*/ S.Array(GetSettingsResponseSessionSettingsItem);
639
- export const GetSettingsResponseNoSettingsAppliedList = /*@__PURE__*/ S.Array(S.String);
640
- export const GetSettingsResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
641
- ok: S.Boolean,
642
- session_settings: S.optional(GetSettingsResponseSessionSettingsList),
643
- no_settings_applied: S.optional(GetSettingsResponseNoSettingsAppliedList),
644
- })).annotate({ identifier: "GetSettingsResponse" });
645
- export const GetTeamsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
646
- channel_id: S.String,
647
- cursor: S.optional(S.String),
648
- limit: S.optional(S.Number),
649
- }).pipe(T.Http({ method: "POST", uri: "/admin.conversations.getTeams", code: 200 }))).annotate({ identifier: "GetTeamsRequest" });
650
- export const GetTeamsResponseResponseMetadata = AnalyticsMessagesActivityResponseResponseMetadata;
651
- export const GetTeamsResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
652
- ok: S.Boolean,
653
- response_metadata: S.optional(AnalyticsMessagesActivityResponseResponseMetadata),
654
- })).annotate({ identifier: "GetTeamsResponse" });
655
- export const InvalidateUsersSessionRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
656
- user_id: S.String,
657
- session_id: S.Number,
658
- }).pipe(T.Http({ method: "POST", uri: "/admin.users.session.invalidate", code: 200 }))).annotate({
659
- identifier: "InvalidateUsersSessionRequest",
660
- });
661
- export const InvalidateUsersSessionResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
662
- ok: S.Boolean,
663
- })).annotate({
664
- identifier: "InvalidateUsersSessionResponse",
665
- });
666
- export const InviteConversationRequestUserIdsList = /*@__PURE__*/ S.Array(S.String);
667
- export const InviteConversationRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
668
- user_ids: InviteConversationRequestUserIdsList,
669
- channel_id: S.String,
670
- }).pipe(T.Http({ method: "POST", uri: "/admin.conversations.invite", code: 200 }))).annotate({
671
- identifier: "InviteConversationRequest",
672
- });
673
- export const InviteConversationResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
674
- ok: S.Boolean,
675
- })).annotate({
676
- identifier: "InviteConversationResponse",
677
- });
678
- export const InviteRequestsDenyRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
679
- team_id: S.optional(S.String),
680
- invite_request_id: S.String,
681
- }).pipe(T.Http({ method: "POST", uri: "/admin.inviteRequests.deny", code: 200 }))).annotate({
682
- identifier: "InviteRequestsDenyRequest",
683
- });
684
- export const InviteRequestsDenyResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
685
- ok: S.Boolean,
686
- })).annotate({
687
- identifier: "InviteRequestsDenyResponse",
688
- });
689
- export const InviteUserRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
690
- team_id: S.String,
691
- email: S.String,
692
- channel_ids: S.String,
693
- custom_message: S.optional(S.String),
694
- real_name: S.optional(S.String),
695
- resend: S.optional(S.Boolean),
696
- is_restricted: S.optional(S.Boolean),
697
- is_ultra_restricted: S.optional(S.Boolean),
698
- guest_expiration_ts: S.optional(S.String),
699
- email_password_policy_enabled: S.optional(S.Boolean),
700
- }).pipe(T.Http({ method: "POST", uri: "/admin.users.invite", code: 200 }))).annotate({ identifier: "InviteUserRequest" });
701
- export const InviteUserResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
702
- ok: S.Boolean,
703
- })).annotate({ identifier: "InviteUserResponse" });
704
- export const LinkObjectsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
705
- channel: S.String,
706
- record_id: S.String,
707
- salesforce_org_id: S.String,
708
- }).pipe(T.Http({ method: "POST", uri: "/admin.conversations.linkObjects", code: 200 }))).annotate({ identifier: "LinkObjectsRequest" });
709
- export const LinkObjectsResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
710
- ok: S.Boolean,
711
- })).annotate({ identifier: "LinkObjectsResponse" });
712
- export const ListAppsActivitiesRequestSortDirection = S.String;
713
- export const ListAppsActivitiesRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
714
- app_id: S.optional(S.String),
715
- team_id: S.optional(S.String),
716
- cursor: S.optional(S.String),
717
- limit: S.optional(S.Number),
718
- min_log_level: S.optional(S.String),
719
- log_event_type: S.optional(S.String),
720
- source: S.optional(S.String),
721
- component_type: S.optional(S.String),
722
- component_id: S.optional(S.String),
723
- trace_id: S.optional(S.String),
724
- min_date_created: S.optional(S.Number),
725
- max_date_created: S.optional(S.Number),
726
- sort_direction: S.optional(ListAppsActivitiesRequestSortDirection),
727
- }).pipe(T.Http({
728
- method: "POST",
729
- uri: "/admin.apps.activities.list",
730
- code: 200,
731
- contentType: "form-urlencoded",
732
- }))).annotate({
733
- identifier: "ListAppsActivitiesRequest",
734
- });
735
- export const ListAppsActivitiesResponseActivitiesList = /*@__PURE__*/ S.Array(S.Unknown);
736
- export const ListAppsActivitiesResponseResponseMetadata = AnalyticsMessagesActivityResponseResponseMetadata;
737
- export const ListAppsActivitiesResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
738
- ok: S.Boolean,
739
- activities: ListAppsActivitiesResponseActivitiesList,
740
- response_metadata: S.optional(AnalyticsMessagesActivityResponseResponseMetadata),
741
- })).annotate({
742
- identifier: "ListAppsActivitiesResponse",
743
- });
744
- export const ListAppsApprovedRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
745
- limit: S.optional(S.Number.pipe(T.Query())),
746
- cursor: S.optional(S.String.pipe(T.Query())),
747
- team_id: S.optional(S.String.pipe(T.Query())),
748
- enterprise_id: S.optional(S.String.pipe(T.Query())),
749
- certified: S.optional(S.Boolean.pipe(T.Query())),
750
- }).pipe(T.Http({ method: "GET", uri: "/admin.apps.approved.list", code: 200 }))).annotate({ identifier: "ListAppsApprovedRequest" });
751
- export const ListAppsApprovedResponseApprovedAppsList = /*@__PURE__*/ S.Array(S.Unknown);
752
- export const ListAppsApprovedResponseResponseMetadata = AnalyticsMessagesActivityResponseResponseMetadata;
753
- export const ListAppsApprovedResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
754
- ok: S.Boolean,
755
- approved_apps: ListAppsApprovedResponseApprovedAppsList,
756
- response_metadata: S.optional(AnalyticsMessagesActivityResponseResponseMetadata),
757
- })).annotate({ identifier: "ListAppsApprovedResponse" });
758
- export const ListAppsMcpServersRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
759
- limit: S.optional(S.Number),
760
- cursor: S.optional(S.String),
761
- }).pipe(T.Http({ method: "POST", uri: "/admin.apps.mcp.servers.list", code: 200 }))).annotate({
762
- identifier: "ListAppsMcpServersRequest",
763
- });
764
- export const ListAppsMcpServersResponseServersItem = /*@__PURE__*/ S.suspend(() => S.Struct({
765
- server_id: S.String,
766
- server_name: S.String,
767
- url: S.String,
768
- auth_type: S.Unknown,
769
- app_id: S.String,
770
- app_name: S.String,
771
- })).annotate({
772
- identifier: "ListAppsMcpServersResponseServersItem",
773
- });
774
- export const ListAppsMcpServersResponseServersList = /*@__PURE__*/ S.Array(ListAppsMcpServersResponseServersItem);
775
- export const ListAppsMcpServersResponseResponseMetadata = AnalyticsMessagesActivityResponseResponseMetadata;
776
- export const ListAppsMcpServersResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
777
- ok: S.Boolean,
778
- servers: ListAppsMcpServersResponseServersList,
779
- response_metadata: S.optional(AnalyticsMessagesActivityResponseResponseMetadata),
780
- })).annotate({
781
- identifier: "ListAppsMcpServersResponse",
782
- });
783
- export const ListAppsMcpServersPermissionsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
784
- app_id: S.String,
785
- }).pipe(T.Http({ method: "POST", uri: "/admin.apps.mcp.servers.permissions.list", code: 200 }))).annotate({
786
- identifier: "ListAppsMcpServersPermissionsRequest",
787
- });
788
- export const ListAppsMcpServersPermissionsResponseServersList = /*@__PURE__*/ S.Array(S.Unknown);
789
- export const ListAppsMcpServersPermissionsResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
790
- ok: S.Boolean,
791
- servers: ListAppsMcpServersPermissionsResponseServersList,
792
- })).annotate({
793
- identifier: "ListAppsMcpServersPermissionsResponse",
794
- });
795
- export const ListAppsPermissionsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
796
- app_id: S.String,
797
- }).pipe(T.Http({ method: "POST", uri: "/admin.apps.permissions.list", code: 200 }))).annotate({
798
- identifier: "ListAppsPermissionsRequest",
799
- });
800
- export const ListAppsPermissionsResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
801
- ok: S.Boolean,
802
- })).annotate({
803
- identifier: "ListAppsPermissionsResponse",
804
- });
805
- export const ListAppsRequestsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
806
- limit: S.optional(S.Number.pipe(T.Query())),
807
- cursor: S.optional(S.String.pipe(T.Query())),
808
- team_id: S.optional(S.String.pipe(T.Query())),
809
- enterprise_id: S.optional(S.String.pipe(T.Query())),
810
- certified: S.optional(S.Boolean.pipe(T.Query())),
811
- }).pipe(T.Http({ method: "GET", uri: "/admin.apps.requests.list", code: 200 }))).annotate({ identifier: "ListAppsRequestsRequest" });
812
- export const ListAppsRequestsResponseAppRequestsList = /*@__PURE__*/ S.Array(S.Unknown);
813
- export const ListAppsRequestsResponseResponseMetadata = AnalyticsMessagesActivityResponseResponseMetadata;
814
- export const ListAppsRequestsResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
815
- ok: S.Boolean,
816
- app_requests: ListAppsRequestsResponseAppRequestsList,
817
- response_metadata: S.optional(AnalyticsMessagesActivityResponseResponseMetadata),
818
- })).annotate({ identifier: "ListAppsRequestsResponse" });
819
- export const ListAppsRestrictedRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
820
- limit: S.optional(S.Number.pipe(T.Query())),
821
- cursor: S.optional(S.String.pipe(T.Query())),
822
- team_id: S.optional(S.String.pipe(T.Query())),
823
- enterprise_id: S.optional(S.String.pipe(T.Query())),
824
- certified: S.optional(S.Boolean.pipe(T.Query())),
825
- }).pipe(T.Http({ method: "GET", uri: "/admin.apps.restricted.list", code: 200 }))).annotate({
826
- identifier: "ListAppsRestrictedRequest",
827
- });
828
- export const ListAppsRestrictedResponseRestrictedAppsList = /*@__PURE__*/ S.Array(S.Unknown);
829
- export const ListAppsRestrictedResponseResponseMetadata = AnalyticsMessagesActivityResponseResponseMetadata;
830
- export const ListAppsRestrictedResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
831
- ok: S.Boolean,
832
- restricted_apps: ListAppsRestrictedResponseRestrictedAppsList,
833
- response_metadata: S.optional(AnalyticsMessagesActivityResponseResponseMetadata),
834
- })).annotate({
835
- identifier: "ListAppsRestrictedResponse",
836
- });
837
- export const ListAssignmentsRequestRoleIdsList = /*@__PURE__*/ S.Array(S.String);
838
- export const ListAssignmentsRequestEntityIdsList = /*@__PURE__*/ S.Array(S.String);
839
- export const ListAssignmentsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
840
- cursor: S.optional(S.String.pipe(T.Query())),
841
- limit: S.optional(S.Number.pipe(T.Query())),
842
- role_ids: S.optional(ListAssignmentsRequestRoleIdsList.pipe(T.Query())),
843
- entity_ids: S.optional(ListAssignmentsRequestEntityIdsList.pipe(T.Query())),
844
- sort_dir: S.optional(S.String.pipe(T.Query())),
845
- }).pipe(T.Http({ method: "GET", uri: "/admin.roles.listAssignments", code: 200 }))).annotate({ identifier: "ListAssignmentsRequest" });
846
- export const ListAssignmentsResponseRoleAssignmentsItem = /*@__PURE__*/ S.suspend(() => S.Struct({
847
- role_id: S.String,
848
- entity_id: S.String,
849
- user_id: S.String,
850
- date_create: S.Number,
851
- })).annotate({
852
- identifier: "ListAssignmentsResponseRoleAssignmentsItem",
853
- });
854
- export const ListAssignmentsResponseRoleAssignmentsList = /*@__PURE__*/ S.Array(ListAssignmentsResponseRoleAssignmentsItem);
855
- export const ListAssignmentsResponseResponseMetadata = AnalyticsMessagesActivityResponseResponseMetadata;
856
- export const ListAssignmentsResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
857
- ok: S.Boolean,
858
- error: S.optional(S.String),
859
- role_assignments: ListAssignmentsResponseRoleAssignmentsList,
860
- response_metadata: S.optional(AnalyticsMessagesActivityResponseResponseMetadata),
861
- })).annotate({ identifier: "ListAssignmentsResponse" });
862
- export const ListBarriersRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
863
- limit: S.optional(S.Number.pipe(T.Query())),
864
- cursor: S.optional(S.String.pipe(T.Query())),
865
- }).pipe(T.Http({ method: "GET", uri: "/admin.barriers.list", code: 200 }))).annotate({ identifier: "ListBarriersRequest" });
866
- export const ListBarriersResponseBarriersList = /*@__PURE__*/ S.Array(S.Unknown);
867
- export const ListBarriersResponseResponseMetadata = AnalyticsMessagesActivityResponseResponseMetadata;
868
- export const ListBarriersResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
869
- ok: S.Boolean,
870
- barriers: ListBarriersResponseBarriersList,
871
- response_metadata: S.optional(AnalyticsMessagesActivityResponseResponseMetadata),
872
- })).annotate({ identifier: "ListBarriersResponse" });
873
- export const ListChannelsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
874
- usergroup_id: S.String,
875
- team_id: S.optional(S.String),
876
- include_num_members: S.optional(S.Boolean),
877
- }).pipe(T.Http({ method: "POST", uri: "/admin.usergroups.listChannels", code: 200 }))).annotate({ identifier: "ListChannelsRequest" });
878
- export const ListChannelsResponseChannelsList = /*@__PURE__*/ S.Array(S.String);
879
- export const ListChannelsResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
880
- ok: S.Boolean,
881
- channels: ListChannelsResponseChannelsList,
882
- error: S.optional(S.String),
883
- })).annotate({ identifier: "ListChannelsResponse" });
884
- export const ListEmojiRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
885
- cursor: S.optional(S.String.pipe(T.Query())),
886
- limit: S.optional(S.Number.pipe(T.Query())),
887
- }).pipe(T.Http({ method: "GET", uri: "/admin.emoji.list", code: 200 }))).annotate({ identifier: "ListEmojiRequest" });
888
- export const ListEmojiResponseEmojiMap = /*@__PURE__*/ S.Record(S.String, S.Unknown);
889
- export const ListEmojiResponseResponseMetadata = AnalyticsMessagesActivityResponseResponseMetadata;
890
- export const ListEmojiResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
891
- ok: S.Boolean,
892
- emoji: ListEmojiResponseEmojiMap,
893
- response_metadata: S.optional(AnalyticsMessagesActivityResponseResponseMetadata),
894
- })).annotate({ identifier: "ListEmojiResponse" });
895
- export const ListFunctionsRequestAppIdsList = /*@__PURE__*/ S.Array(S.String);
896
- export const ListFunctionsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
897
- team_id: S.optional(S.String),
898
- app_ids: ListFunctionsRequestAppIdsList,
899
- include_non_distributed_functions: S.optional(S.Boolean),
900
- cursor: S.optional(S.String),
901
- limit: S.optional(S.Number),
902
- }).pipe(T.Http({ method: "POST", uri: "/admin.functions.list", code: 200 }))).annotate({ identifier: "ListFunctionsRequest" });
903
- export const ListFunctionsResponseFunctionsList = /*@__PURE__*/ S.Array(S.Unknown);
904
- export const ListFunctionsResponseResponseMetadata = AnalyticsMessagesActivityResponseResponseMetadata;
905
- export const ListFunctionsResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
906
- ok: S.Boolean,
907
- functions: ListFunctionsResponseFunctionsList,
908
- response_metadata: S.optional(AnalyticsMessagesActivityResponseResponseMetadata),
909
- })).annotate({ identifier: "ListFunctionsResponse" });
910
- export const ListGroupsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
911
- channel_id: S.String.pipe(T.Query()),
912
- team_id: S.optional(S.String.pipe(T.Query())),
913
- }).pipe(T.Http({ method: "GET", uri: "/admin.conversations.restrictAccess.listGroups", code: 200 }))).annotate({ identifier: "ListGroupsRequest" });
914
- export const ListGroupsResponseGroupIdsList = /*@__PURE__*/ S.Array(S.String);
915
- export const ListGroupsResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
916
- ok: S.Boolean,
917
- group_ids: ListGroupsResponseGroupIdsList,
918
- })).annotate({ identifier: "ListGroupsResponse" });
919
- export const ListInviteRequestsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
920
- team_id: S.optional(S.String),
921
- cursor: S.optional(S.String),
922
- limit: S.optional(S.Number),
923
- }).pipe(T.Http({ method: "POST", uri: "/admin.inviteRequests.list", code: 200 }))).annotate({
924
- identifier: "ListInviteRequestsRequest",
925
- });
926
- export const ListInviteRequestsResponseResponseMetadata = AnalyticsMessagesActivityResponseResponseMetadata;
927
- export const ListInviteRequestsResponseInviteRequestsList = /*@__PURE__*/ S.Array(S.Unknown);
928
- export const ListInviteRequestsResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
929
- ok: S.Boolean,
930
- response_metadata: S.optional(AnalyticsMessagesActivityResponseResponseMetadata),
931
- invite_requests: ListInviteRequestsResponseInviteRequestsList,
932
- })).annotate({
933
- identifier: "ListInviteRequestsResponse",
934
- });
935
- export const ListInviteRequestsApprovedRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
936
- team_id: S.optional(S.String),
937
- cursor: S.optional(S.String),
938
- limit: S.optional(S.Number),
939
- }).pipe(T.Http({ method: "POST", uri: "/admin.inviteRequests.approved.list", code: 200 }))).annotate({
940
- identifier: "ListInviteRequestsApprovedRequest",
941
- });
942
- export const ListInviteRequestsApprovedResponseResponseMetadata = AnalyticsMessagesActivityResponseResponseMetadata;
943
- export const ListInviteRequestsApprovedResponseApprovedRequestsList = /*@__PURE__*/ S.Array(S.Unknown);
944
- export const ListInviteRequestsApprovedResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
945
- ok: S.Boolean,
946
- response_metadata: S.optional(AnalyticsMessagesActivityResponseResponseMetadata),
947
- approved_requests: ListInviteRequestsApprovedResponseApprovedRequestsList,
948
- })).annotate({
949
- identifier: "ListInviteRequestsApprovedResponse",
950
- });
951
- export const ListInviteRequestsDeniedRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
952
- team_id: S.optional(S.String),
953
- cursor: S.optional(S.String),
954
- limit: S.optional(S.Number),
955
- }).pipe(T.Http({ method: "POST", uri: "/admin.inviteRequests.denied.list", code: 200 }))).annotate({
956
- identifier: "ListInviteRequestsDeniedRequest",
957
- });
958
- export const ListInviteRequestsDeniedResponseResponseMetadata = AnalyticsMessagesActivityResponseResponseMetadata;
959
- export const ListInviteRequestsDeniedResponseDeniedRequestsList = /*@__PURE__*/ S.Array(S.Unknown);
960
- export const ListInviteRequestsDeniedResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
961
- ok: S.Boolean,
962
- response_metadata: S.optional(AnalyticsMessagesActivityResponseResponseMetadata),
963
- denied_requests: ListInviteRequestsDeniedResponseDeniedRequestsList,
964
- })).annotate({
965
- identifier: "ListInviteRequestsDeniedResponse",
966
- });
967
- export const ListOriginalConnectedChannelInfoRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
968
- channel_ids: S.optional(S.String),
969
- team_ids: S.optional(S.String),
970
- limit: S.optional(S.Number),
971
- cursor: S.optional(S.String),
972
- }).pipe(T.Http({
973
- method: "POST",
974
- uri: "/admin.conversations.ekm.listOriginalConnectedChannelInfo",
975
- code: 200,
976
- contentType: "form-urlencoded",
977
- }))).annotate({
978
- identifier: "ListOriginalConnectedChannelInfoRequest",
979
- });
980
- export const ListOriginalConnectedChannelInfoResponseResponseMetadata = AnalyticsMessagesActivityResponseResponseMetadata;
981
- export const ListOriginalConnectedChannelInfoResponseChannelsItemInternalTeamIdsList =
982
- /*@__PURE__*/ S.Array(S.String);
983
- export const ListOriginalConnectedChannelInfoResponseChannelsItem = /*@__PURE__*/ S.suspend(() => S.Struct({
984
- id: S.String,
985
- internal_team_ids: ListOriginalConnectedChannelInfoResponseChannelsItemInternalTeamIdsList,
986
- original_connected_host_id: S.String,
987
- original_connected_channel_id: S.String,
988
- })).annotate({
989
- identifier: "ListOriginalConnectedChannelInfoResponseChannelsItem",
990
- });
991
- export const ListOriginalConnectedChannelInfoResponseChannelsList = /*@__PURE__*/ S.Array(ListOriginalConnectedChannelInfoResponseChannelsItem);
992
- export const ListOriginalConnectedChannelInfoResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
993
- ok: S.Boolean,
994
- response_metadata: S.optional(AnalyticsMessagesActivityResponseResponseMetadata),
995
- channels: ListOriginalConnectedChannelInfoResponseChannelsList,
996
- })).annotate({
997
- identifier: "ListOriginalConnectedChannelInfoResponse",
998
- });
999
- export const ListTeamsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
1000
- limit: S.optional(S.Number),
1001
- cursor: S.optional(S.String),
1002
- }).pipe(T.Http({ method: "POST", uri: "/admin.teams.list", code: 200 }))).annotate({ identifier: "ListTeamsRequest" });
1003
- export const ListTeamsResponseTeamsItemPrimaryOwner = /*@__PURE__*/ S.suspend(() => S.Struct({
1004
- user_id: S.String,
1005
- email: S.String,
1006
- })).annotate({
1007
- identifier: "ListTeamsResponseTeamsItemPrimaryOwner",
1008
- });
1009
- export const ListTeamsResponseTeamsItem = /*@__PURE__*/ S.suspend(() => S.Struct({
1010
- id: S.optional(S.String),
1011
- name: S.String,
1012
- discoverability: S.String,
1013
- primary_owner: ListTeamsResponseTeamsItemPrimaryOwner,
1014
- team_url: S.String,
1015
- })).annotate({
1016
- identifier: "ListTeamsResponseTeamsItem",
1017
- });
1018
- export const ListTeamsResponseTeamsList = /*@__PURE__*/ S.Array(ListTeamsResponseTeamsItem);
1019
- export const ListTeamsResponseResponseMetadata = AnalyticsMessagesActivityResponseResponseMetadata;
1020
- export const ListTeamsResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
1021
- ok: S.Boolean,
1022
- teams: ListTeamsResponseTeamsList,
1023
- response_metadata: S.optional(AnalyticsMessagesActivityResponseResponseMetadata),
1024
- })).annotate({ identifier: "ListTeamsResponse" });
1025
- export const ListTeamsAdminsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
1026
- limit: S.optional(S.Number.pipe(T.Query())),
1027
- cursor: S.optional(S.String.pipe(T.Query())),
1028
- team_id: S.String.pipe(T.Query()),
1029
- }).pipe(T.Http({ method: "GET", uri: "/admin.teams.admins.list", code: 200 }))).annotate({ identifier: "ListTeamsAdminsRequest" });
1030
- export const ListTeamsAdminsResponseAdminIdsList = /*@__PURE__*/ S.Array(S.String);
1031
- export const ListTeamsAdminsResponseResponseMetadata = AnalyticsMessagesActivityResponseResponseMetadata;
1032
- export const ListTeamsAdminsResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
1033
- ok: S.Boolean,
1034
- admin_ids: ListTeamsAdminsResponseAdminIdsList,
1035
- response_metadata: S.optional(AnalyticsMessagesActivityResponseResponseMetadata),
1036
- })).annotate({ identifier: "ListTeamsAdminsResponse" });
1037
- export const ListTeamsOwnersRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
1038
- team_id: S.String.pipe(T.Query()),
1039
- limit: S.optional(S.Number.pipe(T.Query())),
1040
- cursor: S.optional(S.String.pipe(T.Query())),
1041
- }).pipe(T.Http({ method: "GET", uri: "/admin.teams.owners.list", code: 200 }))).annotate({ identifier: "ListTeamsOwnersRequest" });
1042
- export const ListTeamsOwnersResponseOwnerIdsList = /*@__PURE__*/ S.Array(S.String);
1043
- export const ListTeamsOwnersResponseResponseMetadata = AnalyticsMessagesActivityResponseResponseMetadata;
1044
- export const ListTeamsOwnersResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
1045
- ok: S.Boolean,
1046
- owner_ids: ListTeamsOwnersResponseOwnerIdsList,
1047
- response_metadata: S.optional(AnalyticsMessagesActivityResponseResponseMetadata),
1048
- })).annotate({ identifier: "ListTeamsOwnersResponse" });
1049
- export const ListUsersRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
1050
- team_id: S.optional(S.String),
1051
- cursor: S.optional(S.String),
1052
- is_active: S.optional(S.Boolean),
1053
- include_deactivated_user_workspaces: S.optional(S.Boolean),
1054
- only_guests: S.optional(S.Boolean),
1055
- include_admins: S.optional(S.Boolean),
1056
- include_owners: S.optional(S.Boolean),
1057
- limit: S.optional(S.Number),
1058
- }).pipe(T.Http({ method: "POST", uri: "/admin.users.list", code: 200 }))).annotate({ identifier: "ListUsersRequest" });
1059
- export const ListUsersResponseUsersItemRolesList = /*@__PURE__*/ S.Array(S.String);
1060
- export const ListUsersResponseUsersItemWorkspacesList = /*@__PURE__*/ S.Array(S.String);
1061
- export const ListUsersResponseUsersItem = /*@__PURE__*/ S.suspend(() => S.Struct({
1062
- id: S.String,
1063
- username: S.optional(S.String),
1064
- full_name: S.optional(S.String),
1065
- has_2fa: S.optional(S.Boolean),
1066
- has_sso: S.optional(S.Boolean),
1067
- email: S.String,
1068
- is_admin: S.Boolean,
1069
- is_owner: S.Boolean,
1070
- is_primary_owner: S.Boolean,
1071
- is_restricted: S.Boolean,
1072
- is_ultra_restricted: S.Boolean,
1073
- is_bot: S.Boolean,
1074
- expiration_ts: S.optional(S.Number),
1075
- roles: S.optional(ListUsersResponseUsersItemRolesList),
1076
- last_active_ts: S.optional(S.Number),
1077
- workspaces: S.optional(ListUsersResponseUsersItemWorkspacesList),
1078
- is_active: S.optional(S.Boolean),
1079
- date_created: S.optional(S.Number),
1080
- deactivated_ts: S.optional(S.Number),
1081
- })).annotate({
1082
- identifier: "ListUsersResponseUsersItem",
1083
- });
1084
- export const ListUsersResponseUsersList = /*@__PURE__*/ S.Array(ListUsersResponseUsersItem);
1085
- export const ListUsersResponseResponseMetadata = AnalyticsMessagesActivityResponseResponseMetadata;
1086
- export const ListUsersResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
1087
- ok: S.Boolean,
1088
- users: ListUsersResponseUsersList,
1089
- response_metadata: S.optional(AnalyticsMessagesActivityResponseResponseMetadata),
1090
- })).annotate({ identifier: "ListUsersResponse" });
1091
- export const ListUsersSessionRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
1092
- team_id: S.optional(S.String),
1093
- user_id: S.optional(S.String),
1094
- limit: S.optional(S.Number),
1095
- cursor: S.optional(S.String),
1096
- }).pipe(T.Http({ method: "POST", uri: "/admin.users.session.list", code: 200 }))).annotate({ identifier: "ListUsersSessionRequest" });
1097
- export const ListUsersSessionResponseResponseMetadata = AnalyticsMessagesActivityResponseResponseMetadata;
1098
- export const ListUsersSessionResponseActiveSessionsItemRecent = /*@__PURE__*/ S.suspend(() => S.Struct({
1099
- device_hardware: S.optional(S.String),
1100
- os: S.optional(S.String),
1101
- os_version: S.optional(S.String),
1102
- slack_client_version: S.optional(S.String),
1103
- ip: S.optional(S.String),
1104
- })).annotate({
1105
- identifier: "ListUsersSessionResponseActiveSessionsItemRecent",
1106
- });
1107
- export const ListUsersSessionResponseActiveSessionsItemCreated = /*@__PURE__*/ S.suspend(() => S.Struct({
1108
- device_hardware: S.optional(S.String),
1109
- os: S.optional(S.String),
1110
- os_version: S.optional(S.String),
1111
- slack_client_version: S.optional(S.String),
1112
- ip: S.optional(S.String),
1113
- })).annotate({
1114
- identifier: "ListUsersSessionResponseActiveSessionsItemCreated",
1115
- });
1116
- export const ListUsersSessionResponseActiveSessionsItem = /*@__PURE__*/ S.suspend(() => S.Struct({
1117
- user_id: S.String,
1118
- team_id: S.String,
1119
- session_id: S.Number,
1120
- recent: S.optional(ListUsersSessionResponseActiveSessionsItemRecent),
1121
- created: ListUsersSessionResponseActiveSessionsItemCreated,
1122
- })).annotate({
1123
- identifier: "ListUsersSessionResponseActiveSessionsItem",
1124
- });
1125
- export const ListUsersSessionResponseActiveSessionsList = /*@__PURE__*/ S.Array(ListUsersSessionResponseActiveSessionsItem);
1126
- export const ListUsersSessionResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
1127
- ok: S.Boolean,
1128
- response_metadata: S.optional(AnalyticsMessagesActivityResponseResponseMetadata),
1129
- active_sessions: ListUsersSessionResponseActiveSessionsList,
1130
- })).annotate({ identifier: "ListUsersSessionResponse" });
1131
- export const LookupAppsConfigRequestAppIdsList = /*@__PURE__*/ S.Array(S.String);
1132
- export const LookupAppsConfigRequestRichLinkPreviewTypesItem = S.String;
1133
- export const LookupAppsConfigRequestRichLinkPreviewTypesList = /*@__PURE__*/ S.Array(LookupAppsConfigRequestRichLinkPreviewTypesItem);
1134
- export const LookupAppsConfigRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
1135
- app_ids: S.optional(LookupAppsConfigRequestAppIdsList),
1136
- rich_link_preview_types: S.optional(LookupAppsConfigRequestRichLinkPreviewTypesList),
1137
- }).pipe(T.Http({ method: "POST", uri: "/admin.apps.config.lookup", code: 200 }))).annotate({ identifier: "LookupAppsConfigRequest" });
1138
- export const LookupAppsConfigResponseConfigsItemWorkflowAuthStrategy = S.String;
1139
- export const LookupAppsConfigResponseConfigsItem = /*@__PURE__*/ S.suspend(() => S.Struct({
1140
- app_id: S.String,
1141
- workflow_auth_strategy: LookupAppsConfigResponseConfigsItemWorkflowAuthStrategy,
1142
- domain_restrictions: S.Unknown,
1143
- })).annotate({
1144
- identifier: "LookupAppsConfigResponseConfigsItem",
1145
- });
1146
- export const LookupAppsConfigResponseConfigsList = /*@__PURE__*/ S.Array(LookupAppsConfigResponseConfigsItem);
1147
- export const LookupAppsConfigResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
1148
- ok: S.Boolean,
1149
- configs: LookupAppsConfigResponseConfigsList,
1150
- })).annotate({ identifier: "LookupAppsConfigResponse" });
1151
- export const LookupConversationRequestTeamIdsList = /*@__PURE__*/ S.Array(S.String);
1152
- export const LookupConversationRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
1153
- team_ids: LookupConversationRequestTeamIdsList,
1154
- max_member_count: S.optional(S.Number),
1155
- last_message_activity_before: S.Number,
1156
- cursor: S.optional(S.String),
1157
- limit: S.optional(S.Number),
1158
- }).pipe(T.Http({
1159
- method: "POST",
1160
- uri: "/admin.conversations.lookup",
1161
- code: 200,
1162
- contentType: "form-urlencoded",
1163
- }))).annotate({
1164
- identifier: "LookupConversationRequest",
1165
- });
1166
- export const LookupConversationResponseChannelIdsList = /*@__PURE__*/ S.Array(S.String);
1167
- export const LookupConversationResponseResponseMetadata = AnalyticsMessagesActivityResponseResponseMetadata;
1168
- export const LookupConversationResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
1169
- ok: S.Boolean,
1170
- channel_ids: LookupConversationResponseChannelIdsList,
1171
- response_metadata: S.optional(AnalyticsMessagesActivityResponseResponseMetadata),
1172
- })).annotate({
1173
- identifier: "LookupConversationResponse",
1174
- });
1175
- export const LookupFunctionsPermissionsRequestFunctionIdsList = /*@__PURE__*/ S.Array(S.String);
1176
- export const LookupFunctionsPermissionsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
1177
- function_ids: LookupFunctionsPermissionsRequestFunctionIdsList,
1178
- }).pipe(T.Http({ method: "POST", uri: "/admin.functions.permissions.lookup", code: 200 }))).annotate({
1179
- identifier: "LookupFunctionsPermissionsRequest",
1180
- });
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);
1184
- export const LookupFunctionsPermissionsResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
1185
- ok: S.Boolean,
1186
- permissions: LookupFunctionsPermissionsResponsePermissionsMap,
1187
- metadata: LookupFunctionsPermissionsResponseMetadataMap,
1188
- errors: LookupFunctionsPermissionsResponseErrorsMap,
1189
- })).annotate({
1190
- identifier: "LookupFunctionsPermissionsResponse",
1191
- });
1192
- export const LookupWorkflowsPermissionsRequestWorkflowIdsList = /*@__PURE__*/ S.Array(S.String);
1193
- export const LookupWorkflowsPermissionsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
1194
- workflow_ids: LookupWorkflowsPermissionsRequestWorkflowIdsList,
1195
- max_workflow_triggers: S.optional(S.Number),
1196
- }).pipe(T.Http({ method: "POST", uri: "/admin.workflows.permissions.lookup", code: 200 }))).annotate({
1197
- identifier: "LookupWorkflowsPermissionsRequest",
1198
- });
1199
- export const LookupWorkflowsPermissionsResponsePermissionsMap = /*@__PURE__*/ S.Record(S.String, S.Unknown);
1200
- export const LookupWorkflowsPermissionsResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
1201
- ok: S.Boolean,
1202
- permissions: LookupWorkflowsPermissionsResponsePermissionsMap,
1203
- })).annotate({
1204
- identifier: "LookupWorkflowsPermissionsResponse",
1205
- });
1206
- export const LookupWorkflowsTriggersTypesPermissionsRequestTriggerTypeIdsList =
1207
- /*@__PURE__*/ S.Array(S.String);
1208
- export const LookupWorkflowsTriggersTypesPermissionsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
1209
- trigger_type_ids: LookupWorkflowsTriggersTypesPermissionsRequestTriggerTypeIdsList,
1210
- }).pipe(T.Http({
1211
- method: "POST",
1212
- uri: "/admin.workflows.triggers.types.permissions.lookup",
1213
- code: 200,
1214
- }))).annotate({
1215
- identifier: "LookupWorkflowsTriggersTypesPermissionsRequest",
1216
- });
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({
1220
- ok: S.Boolean,
1221
- permissions: LookupWorkflowsTriggersTypesPermissionsResponsePermissionsMap,
1222
- metadata: LookupWorkflowsTriggersTypesPermissionsResponseMetadataMap,
1223
- })).annotate({
1224
- identifier: "LookupWorkflowsTriggersTypesPermissionsResponse",
1225
- });
1226
- export const RemoveAppsPermissionsRequestUserIdsList = /*@__PURE__*/ S.Array(S.String);
1227
- export const RemoveAppsPermissionsRequestUsergroupIdsList = /*@__PURE__*/ S.Array(S.String);
1228
- export const RemoveAppsPermissionsRequestChannelIdsList = /*@__PURE__*/ S.Array(S.String);
1229
- export const RemoveAppsPermissionsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
1230
- app_id: S.String,
1231
- user_ids: S.optional(RemoveAppsPermissionsRequestUserIdsList),
1232
- usergroup_ids: S.optional(RemoveAppsPermissionsRequestUsergroupIdsList),
1233
- channel_ids: S.optional(RemoveAppsPermissionsRequestChannelIdsList),
1234
- }).pipe(T.Http({ method: "POST", uri: "/admin.apps.permissions.remove", code: 200 }))).annotate({
1235
- identifier: "RemoveAppsPermissionsRequest",
1236
- });
1237
- export const RemoveAppsPermissionsResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
1238
- ok: S.Boolean,
1239
- })).annotate({
1240
- identifier: "RemoveAppsPermissionsResponse",
1241
- });
1242
- export const RemoveAssignmentsRequestEntityIdsList = /*@__PURE__*/ S.Array(S.String);
1243
- export const RemoveAssignmentsRequestUserIdsList = /*@__PURE__*/ S.Array(S.String);
1244
- export const RemoveAssignmentsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
1245
- role_id: S.String,
1246
- entity_ids: RemoveAssignmentsRequestEntityIdsList,
1247
- user_ids: RemoveAssignmentsRequestUserIdsList,
1248
- }).pipe(T.Http({ method: "POST", uri: "/admin.roles.removeAssignments", code: 200 }))).annotate({ identifier: "RemoveAssignmentsRequest" });
1249
- export const RemoveAssignmentsResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
1250
- ok: S.Boolean,
1251
- error: S.optional(S.String),
1252
- })).annotate({
1253
- identifier: "RemoveAssignmentsResponse",
1254
- });
1255
- export const RemoveChannelsRequestChannelIdsList = /*@__PURE__*/ S.Array(S.String);
1256
- export const RemoveChannelsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
1257
- usergroup_id: S.String,
1258
- channel_ids: RemoveChannelsRequestChannelIdsList,
1259
- }).pipe(T.Http({ method: "POST", uri: "/admin.usergroups.removeChannels", code: 200 }))).annotate({ identifier: "RemoveChannelsRequest" });
1260
- export const RemoveChannelsResponseInvalidChannelsList = /*@__PURE__*/ S.Array(S.String);
1261
- export const RemoveChannelsResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
1262
- ok: S.Boolean,
1263
- error: S.optional(S.String),
1264
- invalid_channels: S.optional(RemoveChannelsResponseInvalidChannelsList),
1265
- })).annotate({ identifier: "RemoveChannelsResponse" });
1266
- export const RemoveCustomRetentionRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
1267
- channel_id: S.String,
1268
- }).pipe(T.Http({ method: "POST", uri: "/admin.conversations.removeCustomRetention", code: 200 }))).annotate({
1269
- identifier: "RemoveCustomRetentionRequest",
1270
- });
1271
- export const RemoveCustomRetentionResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
1272
- ok: S.Boolean,
1273
- })).annotate({
1274
- identifier: "RemoveCustomRetentionResponse",
1275
- });
1276
- export const RemoveEmojiRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
1277
- name: S.String.pipe(T.Query()),
1278
- }).pipe(T.Http({ method: "GET", uri: "/admin.emoji.remove", code: 200 }))).annotate({ identifier: "RemoveEmojiRequest" });
1279
- export const RemoveEmojiResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
1280
- ok: S.Boolean,
1281
- })).annotate({ identifier: "RemoveEmojiResponse" });
1282
- export const RemoveEntitiesRequestEntityIdsList = /*@__PURE__*/ S.Array(S.String);
1283
- export const RemoveEntitiesRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
1284
- policy_name: S.String,
1285
- entity_type: S.Unknown,
1286
- entity_ids: RemoveEntitiesRequestEntityIdsList,
1287
- }).pipe(T.Http({ method: "POST", uri: "/admin.auth.policy.removeEntities", code: 200 }))).annotate({ identifier: "RemoveEntitiesRequest" });
1288
- export const RemoveEntitiesResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
1289
- ok: S.Boolean,
1290
- entity_total_count: S.Number,
1291
- })).annotate({ identifier: "RemoveEntitiesResponse" });
1292
- export const RemoveGroupRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
1293
- team_id: S.String.pipe(T.Query()),
1294
- group_id: S.String.pipe(T.Query()),
1295
- channel_id: S.String.pipe(T.Query()),
1296
- }).pipe(T.Http({ method: "GET", uri: "/admin.conversations.restrictAccess.removeGroup", code: 200 }))).annotate({ identifier: "RemoveGroupRequest" });
1297
- export const RemoveGroupResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
1298
- ok: S.Boolean,
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" });
1308
- export const RemoveUserRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
1309
- team_id: S.String,
1310
- user_id: S.String,
1311
- }).pipe(T.Http({ method: "POST", uri: "/admin.users.remove", code: 200 }))).annotate({ identifier: "RemoveUserRequest" });
1312
- export const RemoveUserResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
1313
- ok: S.Boolean,
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);
1325
- export const RemoveWorkflowsCollaboratorRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
1326
- workflow_ids: RemoveWorkflowsCollaboratorRequestWorkflowIdsList,
1327
- collaborator_ids: RemoveWorkflowsCollaboratorRequestCollaboratorIdsList,
1328
- }).pipe(T.Http({ method: "POST", uri: "/admin.workflows.collaborators.remove", code: 200 }))).annotate({
1329
- identifier: "RemoveWorkflowsCollaboratorRequest",
1330
- });
1331
- export const RemoveWorkflowsCollaboratorResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
1332
- ok: S.Boolean,
1333
- })).annotate({
1334
- identifier: "RemoveWorkflowsCollaboratorResponse",
1335
- });
1336
- export const RenameConversationRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
1337
- channel_id: S.String,
1338
- name: S.String,
1339
- }).pipe(T.Http({ method: "POST", uri: "/admin.conversations.rename", code: 200 }))).annotate({
1340
- identifier: "RenameConversationRequest",
1341
- });
1342
- export const RenameConversationResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
1343
- ok: S.Boolean,
1344
- })).annotate({
1345
- identifier: "RenameConversationResponse",
1346
- });
1347
- export const RenameEmojiRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
1348
- name: S.String.pipe(T.Query()),
1349
- new_name: S.String.pipe(T.Query()),
1350
- }).pipe(T.Http({ method: "GET", uri: "/admin.emoji.rename", code: 200 }))).annotate({ identifier: "RenameEmojiRequest" });
1351
- export const RenameEmojiResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
1352
- ok: S.Boolean,
1353
- })).annotate({ identifier: "RenameEmojiResponse" });
1354
- export const ResetBulkRequestUserIdsList = /*@__PURE__*/ S.Array(S.String);
1355
- export const ResetBulkRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
1356
- user_ids: ResetBulkRequestUserIdsList,
1357
- mobile_only: S.optional(S.Boolean),
1358
- web_only: S.optional(S.Boolean),
1359
- }).pipe(T.Http({ method: "POST", uri: "/admin.users.session.resetBulk", code: 200 }))).annotate({ identifier: "ResetBulkRequest" });
1360
- export const ResetBulkResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
1361
- ok: S.Boolean,
1362
- })).annotate({ identifier: "ResetBulkResponse" });
1363
- export const ResetUsersSessionRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
1364
- user_id: S.String,
1365
- mobile_only: S.optional(S.Boolean),
1366
- web_only: S.optional(S.Boolean),
1367
- }).pipe(T.Http({ method: "POST", uri: "/admin.users.session.reset", code: 200 }))).annotate({ identifier: "ResetUsersSessionRequest" });
1368
- export const ResetUsersSessionResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
1369
- ok: S.Boolean,
1370
- })).annotate({
1371
- identifier: "ResetUsersSessionResponse",
1372
- });
1373
- export const SearchConversationRequestTeamIdsList = /*@__PURE__*/ S.Array(S.String);
1374
- export const SearchConversationRequestConnectedTeamIdsList = /*@__PURE__*/ S.Array(S.String);
1375
- export const SearchConversationRequestSearchChannelTypesList = /*@__PURE__*/ S.Array(S.String);
1376
- export const SearchConversationRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
1377
- team_ids: S.optional(SearchConversationRequestTeamIdsList),
1378
- connected_team_ids: S.optional(SearchConversationRequestConnectedTeamIdsList),
1379
- query: S.optional(S.String),
1380
- limit: S.optional(S.Number),
1381
- cursor: S.optional(S.String),
1382
- search_channel_types: S.optional(SearchConversationRequestSearchChannelTypesList),
1383
- sort: S.optional(S.String),
1384
- sort_dir: S.optional(S.String),
1385
- total_count_only: S.optional(S.Boolean),
1386
- }).pipe(T.Http({ method: "POST", uri: "/admin.conversations.search", code: 200 }))).annotate({
1387
- identifier: "SearchConversationRequest",
1388
- });
1389
- export const SearchConversationResponseConversationsList = /*@__PURE__*/ S.Array(S.String);
1390
- export const SearchConversationResponseResponseMetadata = AnalyticsMessagesActivityResponseResponseMetadata;
1391
- export const SearchConversationResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
1392
- ok: S.Boolean,
1393
- conversations: SearchConversationResponseConversationsList,
1394
- next_cursor: S.String,
1395
- total_count: S.Number,
1396
- error: S.optional(S.String),
1397
- response_metadata: S.optional(AnalyticsMessagesActivityResponseResponseMetadata),
1398
- })).annotate({
1399
- identifier: "SearchConversationResponse",
1400
- });
1401
- export const SearchWorkflowRequestCollaboratorIdsList = /*@__PURE__*/ S.Array(S.String);
1402
- export const SearchWorkflowRequestSource = S.String;
1403
- export const SearchWorkflowRequestSort = S.String;
1404
- export const SearchWorkflowRequestSortDir = S.String;
1405
- export const SearchWorkflowRequestPublishStatus = S.String;
1406
- export const SearchWorkflowRequestStepFunctionIdsList = /*@__PURE__*/ S.Array(S.String);
1407
- export const SearchWorkflowRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
1408
- query: S.optional(S.String),
1409
- app_id: S.optional(S.String),
1410
- cursor: S.optional(S.String),
1411
- limit: S.optional(S.Number),
1412
- no_collaborators: S.optional(S.Boolean),
1413
- collaborator_ids: S.optional(SearchWorkflowRequestCollaboratorIdsList),
1414
- num_trigger_ids: S.optional(S.Number),
1415
- is_sales_elevate: S.optional(S.Boolean),
1416
- source: S.optional(SearchWorkflowRequestSource),
1417
- sort: S.optional(SearchWorkflowRequestSort),
1418
- sort_dir: S.optional(SearchWorkflowRequestSortDir),
1419
- trigger_type_id: S.optional(S.String),
1420
- publish_status: S.optional(SearchWorkflowRequestPublishStatus),
1421
- step_function_ids: S.optional(SearchWorkflowRequestStepFunctionIdsList),
1422
- }).pipe(T.Http({ method: "POST", uri: "/admin.workflows.search", code: 200 }))).annotate({ identifier: "SearchWorkflowRequest" });
1423
- export const SearchWorkflowResponseWorkflowsList = /*@__PURE__*/ S.Array(S.Unknown);
1424
- export const SearchWorkflowResponseResponseMetadata = AnalyticsMessagesActivityResponseResponseMetadata;
1425
- export const SearchWorkflowResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
1426
- ok: S.Boolean,
1427
- workflows: SearchWorkflowResponseWorkflowsList,
1428
- response_metadata: S.optional(AnalyticsMessagesActivityResponseResponseMetadata),
1429
- total_found: S.Number,
1430
- })).annotate({ identifier: "SearchWorkflowResponse" });
1431
- export const SetAdminRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
1432
- team_id: S.String,
1433
- user_id: S.String,
1434
- }).pipe(T.Http({ method: "POST", uri: "/admin.users.setAdmin", code: 200 }))).annotate({ identifier: "SetAdminRequest" });
1435
- export const SetAdminResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
1436
- ok: S.Boolean,
1437
- })).annotate({ identifier: "SetAdminResponse" });
1438
- export const SetAppsConfigRequestWorkflowAuthStrategy = S.String;
1439
- export const SetAppsConfigRequestRichLinkPreviewType = S.String;
1440
- export const SetAppsConfigRequestDomainRestrictionsUrlsList = /*@__PURE__*/ S.Array(S.String);
1441
- export const SetAppsConfigRequestDomainRestrictionsEmailsList = /*@__PURE__*/ S.Array(S.String);
1442
- export const SetAppsConfigRequestDomainRestrictions = /*@__PURE__*/ S.suspend(() => S.Struct({
1443
- urls: S.optional(SetAppsConfigRequestDomainRestrictionsUrlsList),
1444
- emails: S.optional(SetAppsConfigRequestDomainRestrictionsEmailsList),
1445
- })).annotate({
1446
- identifier: "SetAppsConfigRequestDomainRestrictions",
1447
- });
1448
- export const SetAppsConfigRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
1449
- app_id: S.String,
1450
- workflow_auth_strategy: S.optional(SetAppsConfigRequestWorkflowAuthStrategy),
1451
- rich_link_preview_type: S.optional(SetAppsConfigRequestRichLinkPreviewType),
1452
- domain_restrictions: S.optional(SetAppsConfigRequestDomainRestrictions),
1453
- }).pipe(T.Http({ method: "POST", uri: "/admin.apps.config.set", code: 200 }))).annotate({ identifier: "SetAppsConfigRequest" });
1454
- export const SetAppsConfigResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
1455
- ok: S.Boolean,
1456
- })).annotate({ identifier: "SetAppsConfigResponse" });
1457
- export const SetAppsMcpServersPermissionsRequestPermissionType = S.String;
1458
- export const SetAppsMcpServersPermissionsRequestUserIdsList = /*@__PURE__*/ S.Array(S.String);
1459
- export const SetAppsMcpServersPermissionsRequestUsergroupIdsList = /*@__PURE__*/ S.Array(S.String);
1460
- export const SetAppsMcpServersPermissionsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
1461
- app_id: S.String,
1462
- server_id: S.String,
1463
- permission_type: SetAppsMcpServersPermissionsRequestPermissionType,
1464
- user_ids: S.optional(SetAppsMcpServersPermissionsRequestUserIdsList),
1465
- usergroup_ids: S.optional(SetAppsMcpServersPermissionsRequestUsergroupIdsList),
1466
- }).pipe(T.Http({ method: "POST", uri: "/admin.apps.mcp.servers.permissions.set", code: 200 }))).annotate({
1467
- identifier: "SetAppsMcpServersPermissionsRequest",
1468
- });
1469
- export const SetAppsMcpServersPermissionsResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
1470
- ok: S.Boolean,
1471
- })).annotate({
1472
- identifier: "SetAppsMcpServersPermissionsResponse",
1473
- });
1474
- export const SetAppsPermissionsRequestPermissionType = S.String;
1475
- export const SetAppsPermissionsRequestUserIdsList = /*@__PURE__*/ S.Array(S.String);
1476
- export const SetAppsPermissionsRequestUsergroupIdsList = /*@__PURE__*/ S.Array(S.String);
1477
- export const SetAppsPermissionsRequestChannelRestrictionMode = S.String;
1478
- export const SetAppsPermissionsRequestChannelIdsList = /*@__PURE__*/ S.Array(S.String);
1479
- export const SetAppsPermissionsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
1480
- app_id: S.String,
1481
- permission_type: SetAppsPermissionsRequestPermissionType,
1482
- user_ids: S.optional(SetAppsPermissionsRequestUserIdsList),
1483
- usergroup_ids: S.optional(SetAppsPermissionsRequestUsergroupIdsList),
1484
- channel_restriction_mode: S.optional(SetAppsPermissionsRequestChannelRestrictionMode),
1485
- channel_ids: S.optional(SetAppsPermissionsRequestChannelIdsList),
1486
- }).pipe(T.Http({ method: "POST", uri: "/admin.apps.permissions.set", code: 200 }))).annotate({
1487
- identifier: "SetAppsPermissionsRequest",
1488
- });
1489
- export const SetAppsPermissionsResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
1490
- ok: S.Boolean,
1491
- })).annotate({
1492
- identifier: "SetAppsPermissionsResponse",
1493
- });
1494
- export const SetConversationPrefsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
1495
- channel_id: S.String,
1496
- prefs: S.String,
1497
- }).pipe(T.Http({ method: "POST", uri: "/admin.conversations.setConversationPrefs", code: 200 }))).annotate({
1498
- identifier: "SetConversationPrefsRequest",
1499
- });
1500
- export const SetConversationPrefsResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
1501
- ok: S.Boolean,
1502
- })).annotate({
1503
- identifier: "SetConversationPrefsResponse",
1504
- });
1505
- export const SetCustomRetentionRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
1506
- channel_id: S.String,
1507
- duration_days: S.Number,
1508
- }).pipe(T.Http({ method: "POST", uri: "/admin.conversations.setCustomRetention", code: 200 }))).annotate({
1509
- identifier: "SetCustomRetentionRequest",
1510
- });
1511
- export const SetCustomRetentionResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
1512
- ok: S.Boolean,
1513
- })).annotate({
1514
- identifier: "SetCustomRetentionResponse",
1515
- });
1516
- export const SetDefaultChannelsRequestChannelIdsList = /*@__PURE__*/ S.Array(S.String);
1517
- export const SetDefaultChannelsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
1518
- team_id: S.String.pipe(T.Query()),
1519
- channel_ids: SetDefaultChannelsRequestChannelIdsList.pipe(T.Query()),
1520
- }).pipe(T.Http({ method: "GET", uri: "/admin.teams.settings.setDefaultChannels", code: 200 }))).annotate({
1521
- identifier: "SetDefaultChannelsRequest",
1522
- });
1523
- export const SetDefaultChannelsResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
1524
- ok: S.Boolean,
1525
- })).annotate({
1526
- identifier: "SetDefaultChannelsResponse",
1527
- });
1528
- export const SetDescriptionRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
1529
- team_id: S.String,
1530
- description: S.String,
1531
- }).pipe(T.Http({ method: "POST", uri: "/admin.teams.settings.setDescription", code: 200 }))).annotate({ identifier: "SetDescriptionRequest" });
1532
- export const SetDescriptionResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
1533
- ok: S.Boolean,
1534
- })).annotate({ identifier: "SetDescriptionResponse" });
1535
- export const SetDiscoverabilityRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
1536
- team_id: S.String,
1537
- discoverability: S.String,
1538
- }).pipe(T.Http({ method: "POST", uri: "/admin.teams.settings.setDiscoverability", code: 200 }))).annotate({
1539
- identifier: "SetDiscoverabilityRequest",
1540
- });
1541
- export const SetDiscoverabilityResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
1542
- ok: S.Boolean,
1543
- })).annotate({
1544
- identifier: "SetDiscoverabilityResponse",
1545
- });
1546
- export const SetExpirationRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
1547
- team_id: S.optional(S.String),
1548
- user_id: S.String,
1549
- expiration_ts: S.Number,
1550
- }).pipe(T.Http({ method: "POST", uri: "/admin.users.setExpiration", code: 200 }))).annotate({ identifier: "SetExpirationRequest" });
1551
- export const SetExpirationResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
1552
- ok: S.Boolean,
1553
- })).annotate({ identifier: "SetExpirationResponse" });
1554
- export const SetFunctionsPermissionsRequestVisibility = S.String;
1555
- export const SetFunctionsPermissionsRequestUserIdsList = /*@__PURE__*/ S.Array(S.String);
1556
- export const SetFunctionsPermissionsRequestPermissionsItemVisibility = S.String;
1557
- export const SetFunctionsPermissionsRequestPermissionsItemPermissionType = S.String;
1558
- export const SetFunctionsPermissionsRequestPermissionsItemUserIdsList = /*@__PURE__*/ S.Array(S.String);
1559
- export const SetFunctionsPermissionsRequestPermissionsItem = /*@__PURE__*/ S.suspend(() => S.Struct({
1560
- visibility: SetFunctionsPermissionsRequestPermissionsItemVisibility,
1561
- permission_type: SetFunctionsPermissionsRequestPermissionsItemPermissionType,
1562
- user_ids: S.optional(SetFunctionsPermissionsRequestPermissionsItemUserIdsList),
1563
- })).annotate({
1564
- identifier: "SetFunctionsPermissionsRequestPermissionsItem",
1565
- });
1566
- export const SetFunctionsPermissionsRequestPermissionsList = /*@__PURE__*/ S.Array(SetFunctionsPermissionsRequestPermissionsItem);
1567
- export const SetFunctionsPermissionsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
1568
- function_id: S.String,
1569
- visibility: S.optional(SetFunctionsPermissionsRequestVisibility),
1570
- user_ids: S.optional(SetFunctionsPermissionsRequestUserIdsList),
1571
- permissions: S.optional(SetFunctionsPermissionsRequestPermissionsList),
1572
- }).pipe(T.Http({ method: "POST", uri: "/admin.functions.permissions.set", code: 200 }))).annotate({
1573
- identifier: "SetFunctionsPermissionsRequest",
1574
- });
1575
- export const SetFunctionsPermissionsResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
1576
- ok: S.Boolean,
1577
- })).annotate({
1578
- identifier: "SetFunctionsPermissionsResponse",
1579
- });
1580
- export const SetIconRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
1581
- image_url: S.String.pipe(T.Query()),
1582
- team_id: S.String.pipe(T.Query()),
1583
- }).pipe(T.Http({ method: "GET", uri: "/admin.teams.settings.setIcon", code: 200 }))).annotate({ identifier: "SetIconRequest" });
1584
- export const SetIconResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
1585
- ok: S.Boolean,
1586
- })).annotate({ identifier: "SetIconResponse" });
1587
- export const SetNameRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
1588
- team_id: S.String,
1589
- name: S.String,
1590
- }).pipe(T.Http({ method: "POST", uri: "/admin.teams.settings.setName", code: 200 }))).annotate({ identifier: "SetNameRequest" });
1591
- export const SetNameResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
1592
- ok: S.Boolean,
1593
- })).annotate({ identifier: "SetNameResponse" });
1594
- export const SetOwnerRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
1595
- team_id: S.String,
1596
- user_id: S.String,
1597
- }).pipe(T.Http({ method: "POST", uri: "/admin.users.setOwner", code: 200 }))).annotate({ identifier: "SetOwnerRequest" });
1598
- export const SetOwnerResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
1599
- ok: S.Boolean,
1600
- })).annotate({ identifier: "SetOwnerResponse" });
1601
- export const SetRegularRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
1602
- team_id: S.String,
1603
- user_id: S.String,
1604
- }).pipe(T.Http({ method: "POST", uri: "/admin.users.setRegular", code: 200 }))).annotate({ identifier: "SetRegularRequest" });
1605
- export const SetRegularResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
1606
- ok: S.Boolean,
1607
- })).annotate({ identifier: "SetRegularResponse" });
1608
- export const SetSettingsRequestUserIdsList = /*@__PURE__*/ S.Array(S.String);
1609
- export const SetSettingsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
1610
- user_ids: SetSettingsRequestUserIdsList,
1611
- duration: S.optional(S.Number),
1612
- desktop_app_browser_quit: S.optional(S.Boolean),
1613
- }).pipe(T.Http({ method: "POST", uri: "/admin.users.session.setSettings", code: 200 }))).annotate({ identifier: "SetSettingsRequest" });
1614
- export const SetSettingsResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
1615
- ok: S.Boolean,
1616
- })).annotate({ identifier: "SetSettingsResponse" });
1617
- export const SetTeamsRequestTargetTeamIdsList = /*@__PURE__*/ S.Array(S.String);
1618
- export const SetTeamsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
1619
- channel_id: S.String,
1620
- team_id: S.optional(S.String),
1621
- target_team_ids: S.optional(SetTeamsRequestTargetTeamIdsList),
1622
- org_channel: S.optional(S.Boolean),
1623
- }).pipe(T.Http({ method: "POST", uri: "/admin.conversations.setTeams", code: 200 }))).annotate({ identifier: "SetTeamsRequest" });
1624
- export const SetTeamsResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
1625
- ok: S.Boolean,
1626
- channel: S.String,
1627
- })).annotate({ identifier: "SetTeamsResponse" });
1628
- export const SetWorkflowsTriggersTypesPermissionsRequestVisibility = S.String;
1629
- export const SetWorkflowsTriggersTypesPermissionsRequestUserIdsList = /*@__PURE__*/ S.Array(S.String);
1630
- export const SetWorkflowsTriggersTypesPermissionsRequestPermissionsPermissionsMap =
1631
- /*@__PURE__*/ S.Record(S.String, S.Unknown);
1632
- export const SetWorkflowsTriggersTypesPermissionsRequestPermissions = /*@__PURE__*/ S.suspend(() => S.Struct({
1633
- permissions: S.optional(SetWorkflowsTriggersTypesPermissionsRequestPermissionsPermissionsMap),
1634
- })).annotate({
1635
- identifier: "SetWorkflowsTriggersTypesPermissionsRequestPermissions",
1636
- });
1637
- export const SetWorkflowsTriggersTypesPermissionsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
1638
- id: S.String,
1639
- visibility: S.optional(SetWorkflowsTriggersTypesPermissionsRequestVisibility),
1640
- user_ids: S.optional(SetWorkflowsTriggersTypesPermissionsRequestUserIdsList),
1641
- permissions: S.optional(SetWorkflowsTriggersTypesPermissionsRequestPermissions),
1642
- }).pipe(T.Http({ method: "POST", uri: "/admin.workflows.triggers.types.permissions.set", code: 200 }))).annotate({
1643
- identifier: "SetWorkflowsTriggersTypesPermissionsRequest",
1644
- });
1645
- export const SetWorkflowsTriggersTypesPermissionsResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
1646
- ok: S.Boolean,
1647
- })).annotate({
1648
- identifier: "SetWorkflowsTriggersTypesPermissionsResponse",
1649
- });
1650
- export const TeamsSettingsInfoRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
1651
- team_id: S.String,
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);
1654
- export const TeamsSettingsInfoResponseTeamItem = /*@__PURE__*/ S.suspend(() => S.Struct({
1655
- id: S.optional(S.String),
1656
- name: S.optional(S.String),
1657
- domain: S.optional(S.String),
1658
- email_domain: S.optional(S.String),
1659
- icon: S.optional(S.Unknown),
1660
- enterprise_id: S.optional(S.String),
1661
- enterprise_name: S.optional(S.String),
1662
- default_channels: S.optional(TeamsSettingsInfoResponseTeamItemDefaultChannelsList),
1663
- })).annotate({
1664
- identifier: "TeamsSettingsInfoResponseTeamItem",
1665
- });
1666
- export const TeamsSettingsInfoResponseTeamList = /*@__PURE__*/ S.Array(TeamsSettingsInfoResponseTeamItem);
1667
- export const TeamsSettingsInfoResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
1668
- ok: S.Boolean,
1669
- team: TeamsSettingsInfoResponseTeamList,
1670
- })).annotate({
1671
- identifier: "TeamsSettingsInfoResponse",
1672
- });
1673
- export const UnarchiveConversationRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
1674
- channel_id: S.String,
1675
- }).pipe(T.Http({ method: "POST", uri: "/admin.conversations.unarchive", code: 200 }))).annotate({
1676
- identifier: "UnarchiveConversationRequest",
1677
- });
1678
- export const UnarchiveConversationResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
1679
- ok: S.Boolean,
1680
- })).annotate({
1681
- identifier: "UnarchiveConversationResponse",
1682
- });
1683
- export const UninstallAppRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
1684
- app_id: S.String,
1685
- team_ids: S.optional(S.String),
1686
- enterprise_id: S.optional(S.String),
1687
- }).pipe(T.Http({ method: "POST", uri: "/admin.apps.uninstall", code: 200 }))).annotate({ identifier: "UninstallAppRequest" });
1688
- export const UninstallAppResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
1689
- ok: S.Boolean,
1690
- })).annotate({ identifier: "UninstallAppResponse" });
1691
- export const UnlinkObjectsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
1692
- channel: S.String,
1693
- new_name: S.String,
1694
- }).pipe(T.Http({ method: "POST", uri: "/admin.conversations.unlinkObjects", code: 200 }))).annotate({ identifier: "UnlinkObjectsRequest" });
1695
- export const UnlinkObjectsResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
1696
- ok: S.Boolean,
1697
- })).annotate({ identifier: "UnlinkObjectsResponse" });
1698
- export const UnpublishWorkflowRequestWorkflowIdsList = /*@__PURE__*/ S.Array(S.String);
1699
- export const UnpublishWorkflowRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
1700
- workflow_ids: UnpublishWorkflowRequestWorkflowIdsList,
1701
- }).pipe(T.Http({ method: "POST", uri: "/admin.workflows.unpublish", code: 200 }))).annotate({ identifier: "UnpublishWorkflowRequest" });
1702
- export const UnpublishWorkflowResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
1703
- ok: S.Boolean,
1704
- })).annotate({
1705
- identifier: "UnpublishWorkflowResponse",
1706
- });
1707
- export const UpdateBarrierRequestBarrieredFromUsergroupIdsList = /*@__PURE__*/ S.Array(S.String);
1708
- export const UpdateBarrierRequestRestrictedSubjectsItem = S.String;
1709
- export const UpdateBarrierRequestRestrictedSubjectsList = /*@__PURE__*/ S.Array(UpdateBarrierRequestRestrictedSubjectsItem);
1710
- export const UpdateBarrierRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
1711
- barrier_id: S.String,
1712
- primary_usergroup_id: S.String,
1713
- barriered_from_usergroup_ids: UpdateBarrierRequestBarrieredFromUsergroupIdsList,
1714
- restricted_subjects: UpdateBarrierRequestRestrictedSubjectsList,
1715
- }).pipe(T.Http({
1716
- method: "POST",
1717
- uri: "/admin.barriers.update",
1718
- code: 200,
1719
- contentType: "form-urlencoded",
1720
- }))).annotate({ identifier: "UpdateBarrierRequest" });
1721
- export const UpdateBarrierResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
1722
- ok: S.Boolean,
1723
- barrier: S.Unknown,
1724
- })).annotate({ identifier: "UpdateBarrierResponse" });
1725
- export const UpdateItemRequestTrustedCidrList = /*@__PURE__*/ S.Array(S.String);
1726
- export const UpdateItemRequestTrustedAsnsList = /*@__PURE__*/ S.Array(S.Number);
1727
- export const UpdateItemRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
1728
- trusted_cidr: S.optional(UpdateItemRequestTrustedCidrList),
1729
- trusted_asns: S.optional(UpdateItemRequestTrustedAsnsList),
1730
- }).pipe(T.Http({ method: "POST", uri: "/admin.audit.anomaly.allow.updateItem", code: 200 }))).annotate({ identifier: "UpdateItemRequest" });
1731
- export const UpdateItemResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
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,
1755
- })).annotate({
1756
- identifier: "UploadUsersResponseInvalidUsersItem",
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" });
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 */
1765
- export const addAlias = /*@__PURE__*/ API.make(() => ({
1766
- input: AddAliasRequest,
1767
- output: AddAliasResponse,
1768
- errors: [SlackError, SlackRateLimited],
1769
- protocol: SlackProtocol,
1770
- retry: Retry.Retry,
1771
- }));
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 */
1773
- export const addAppsPermissions = /*@__PURE__*/ API.make(() => ({
1774
- input: AddAppsPermissionsRequest,
1775
- output: AddAppsPermissionsResponse,
1776
- errors: [SlackError, SlackRateLimited],
1777
- protocol: SlackProtocol,
1778
- retry: Retry.Retry,
1779
- }));
1780
- /** Adds members to the specified role with the specified scopes Required scopes — user: `admin.roles:write` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `cannot_modify_role_admin` — The user does not have permission to modify the admin role. - `failed_for_some_entities` — At least one role scope ID was invalid - `failed_for_some_users` — At least one user ID was invalid - `failed_for_some_users_and_entities` — At least one role scope ID was invalid - `feature_not_enabled` — This API is currently not enabled. - `invalid_actor` — This API is only enabled for the Admins/Owners. - `invalid_role_id` — The role type passed does not exist. - `no_valid_entities` — None of the entities passed were valid. - `no_valid_users` — None of the users passed were valid. - `too_many_entities` — More than 10 role scopes were passed. - `too_many_users` — More than 10 users were passed. See https://docs.slack.dev/reference/methods/admin.roles.addAssignments */
1781
- export const addAssignments = /*@__PURE__*/ API.make(() => ({
1782
- input: AddAssignmentsRequest,
1783
- output: AddAssignmentsResponse,
1784
- errors: [SlackError, SlackRateLimited],
1785
- protocol: SlackProtocol,
1786
- retry: Retry.Retry,
1787
- }));
1788
- /** Add up to one hundred default channels to an IDP group. Required scopes — user: `admin.usergroups:write` Rate limit tier: 1 Method-specific errors (the `error` slug on the SlackError): - `channel_not_found` — At least one of the provided channel IDs could not be found, or one of the channels has a type that is not supported. - `feature_not_enabled` — The Admin APIs feature is not enabled for this workspace. - `invalid_auth` — The workspace specified is not part of this organization. - `invalid_channels_limit` — The number of channel IDs passed in is larger than 100. - `not_an_admin` — The calling user cannot update the specified usergroup. - `not_an_enterprise` — The token passed in does not belong to an Enterprise organization. - `team_not_found` — The workspace provided was not found. - `user_channel_limit_exceeded` — Adding these channels would cause one or more members to exceed their channel limit. - `usergroup_not_found` — The IDP group provided was not found. - `usergroup_not_linked_to_team` — The IDP group provided is not linked to the workspace. - `usergroup_team_not_provisioned` — The IDP group provided is linked to a workspace that has auto-provision disabled. See https://docs.slack.dev/reference/methods/admin.usergroups.addChannels */
1789
- export const addChannels = /*@__PURE__*/ API.make(() => ({
1790
- input: AddChannelsRequest,
1791
- output: AddChannelsResponse,
1792
- errors: [SlackError, SlackRateLimited],
1793
- protocol: SlackProtocol,
1794
- retry: Retry.Retry,
1795
- }));
1796
- /** Add an emoji. Required scopes — user: `admin.teams:write` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `emoji_limit_reached` — Unable to add emoji due to limit reached. - `error_bad_format` — Invalid image data was provided. - `error_bad_name_i18n` — Value passed for `name` was invalid. - `error_bad_upload` — There was an error uploading the image. - `error_bad_wide` — The image width or height is too large. - `error_missing_name` — Value passed for `name` is missing or empty. - `error_name_taken` — Value passed for `name` already exists. - `error_name_taken_i18n` — Value passed for `name` already exists. - `error_no_image` — Empty image data was provided. - `error_too_big` — The image file size is too large. - `error_lower_case_names_only` — Capital letters are not allowed in emoji names. - `failed_to_add_emoji` — Failed to add the specified emoji. - `failed_to_fetch_active_team` — There are no active teams on the org and we need at least one. - `feature_not_enabled` — The Admin APIs feature is not enabled for this team. - `no_image_uploaded` — No image data was provided. - `not_an_admin` — This method is only accessible by org owners and Admins. - `ratelimited` — Too many api calls in a time period. - `resized_but_still_too_large` — The image is still too large after resizing. - `too_many_frames` — The image has too many frames. See https://docs.slack.dev/reference/methods/admin.emoji.add */
1797
- export const addEmoji = /*@__PURE__*/ API.make(() => ({
1798
- input: AddEmojiRequest,
1799
- output: AddEmojiResponse,
1800
- errors: [SlackError, SlackRateLimited],
1801
- protocol: SlackProtocol,
1802
- retry: Retry.Retry,
1803
- }));
1804
- /** Add an allowlist of IDP groups for accessing a channel Required scopes — user: `admin.conversations:write` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `cannot_add_more_channels_to_group` — The maximum number of channels have already been linked to the group. - `cannot_add_more_groups_to_channel` — The maximum number of groups have already been linked to the channel. - `channel_is_not_private` — The channel is a public channel, a multi-party direct message, a direct message, or is externally-shared. - `channel_not_found` — `channel_id` can’t be found. - `default_channel_restricted` — The channel is a default channel on the workspace. - `feature_not_enabled` — Feature not enabled - `group_already_linked_to_channel` — The IDP group is already linked to the channel - `group_must_not_be_empty` — The IDP group is currently empty. - `group_not_found` — `group_id` can’t be found. - `invalid_auth` — Token does not belong to enterprise or team id passed in not part of this enterprise - `invalid_channel` — The channel can’t be linked to an IDP group (i.e., it's a public channel or external shared channel). - `invalid_channel_type` — The channel is a public channel, a multi-party direct message, a direct message, or is externally-shared. - `no_channel_memberships` — The channel has no members. - `not_an_admin` — This token does not belong to an Org Admin or Owner. - `team_not_found` — `team_id` can’t be found. - `unable_to_link_idp_group_and_channel` — The IDP group and the channel cannot be linked. See https://docs.slack.dev/reference/methods/admin.conversations.restrictAccess.addGroup */
1805
- export const addGroup = /*@__PURE__*/ API.make(() => ({
1806
- input: AddGroupRequest,
1807
- output: AddGroupResponse,
1808
- errors: [SlackError, SlackRateLimited],
1809
- protocol: SlackProtocol,
1810
- retry: Retry.Retry,
1811
- }));
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 */
1813
- export const addTeams = /*@__PURE__*/ API.make(() => ({
1814
- input: AddTeamsRequest,
1815
- output: AddTeamsResponse,
1816
- errors: [SlackError, SlackRateLimited],
1817
- protocol: SlackProtocol,
1818
- retry: Retry.Retry,
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
- }));
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 */
1829
- export const addWorkflowsCollaborator = /*@__PURE__*/ API.make(() => ({
1830
- input: AddWorkflowsCollaboratorRequest,
1831
- output: AddWorkflowsCollaboratorResponse,
1832
- errors: [SlackError, SlackRateLimited],
1833
- protocol: SlackProtocol,
1834
- retry: Retry.Retry,
1835
- }));
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 */
1837
- export const analyticsMessagesActivity = /*@__PURE__*/ API.make(() => ({
1838
- input: AnalyticsMessagesActivityRequest,
1839
- output: AnalyticsMessagesActivityResponse,
1840
- errors: [SlackError, SlackRateLimited],
1841
- protocol: SlackProtocol,
1842
- retry: Retry.Retry,
1843
- }));
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 */
1845
- export const analyticsMessagesMetadata = /*@__PURE__*/ API.makePaginated(() => ({
1846
- input: AnalyticsMessagesMetadataRequest,
1847
- output: AnalyticsMessagesMetadataResponse,
1848
- errors: [SlackError, SlackRateLimited],
1849
- protocol: SlackProtocol,
1850
- retry: Retry.Retry,
1851
- pagination: {
1852
- mode: "cursor",
1853
- inputToken: "cursor",
1854
- outputToken: "response_metadata.next_cursor",
1855
- items: "messages",
1856
- },
1857
- }), slackPaginate);
1858
- /** Approve an app for installation on a workspace. Required scopes — user: `admin.apps:write` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `app_management_app_not_installed_on_org` — The app management app must be installed on the org. - `app_not_eligible_for_auto_install` — The app does not have the required scope to be eligible for auto-install rule creation. - `app_restricted_org_wide` — The app is already restricted org wide. - `auto_install_rule_creation_failed` — The app was approved successfully, but the auto-install AAA rule could not be created. Please create the rule manually. - `custom_integration_not_allowed_at_enterprise` — Returned when the install request is for custom integration app. - `feature_not_enabled` — Returned when the Admin APIs feature is not enabled for this team. - `invalid_request_id` — The `request_id` passed is invalid. - `invalid_app_id` — The `app_id` passed is invalid. - `org_resolution_required` — The `team_id` is in an Enterprise org while `app_id` is certified. - `invalid_scopes` — Some of the provided scopes do not exist. - `not_allowed_to_create_automation_rule` — The actor does not have permission to create AAA automation rules. The app was approved but the auto-install rule was not created. - `not_an_admin` — This method is only accessible by org owners and admins. - `request_already_resolved` — The app request has already been resolved. - `request_id_or_app_id_is_required` — Must include a `request_id` or `app_id`. - `request_id_required_for_custom_integrations` — A `request_id` is required for custom integrations. - `team_not_found` — Returned when team id is not found. - `too_many_ids_provided` — Please provide only `app_id` OR `request_id`. - `too_many_teams_provided` — Please provide only `team_id` OR `enterprise_id`. See https://docs.slack.dev/reference/methods/admin.apps.approve */
1859
- export const approveApp = /*@__PURE__*/ API.make(() => ({
1860
- input: ApproveAppRequest,
1861
- output: ApproveAppResponse,
1862
- errors: [SlackError, SlackRateLimited],
1863
- protocol: SlackProtocol,
1864
- retry: Retry.Retry,
1865
- }));
1866
- /** Approve a workspace invite request. Required scopes — user: `admin.invites:write` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `already_processed` — The `invite_request_id` passed has already been approved or denied. - `failed_to_send_invite` — The actual invite (separate from approval) failed to process. This may happen because the user is disabled, already in the team, etc. - `feature_not_enabled` — The Invite Request Admin APIs are not enabled for this team. - `invalid_request` — The `invite_request_id` passed is invalid. - `missing_scope` — This token doesn't have the scope required. - `not_an_admin` — This token doesn't have admin privileges. - `team_not_found` — The `team_id` specified wasn't found. See https://docs.slack.dev/reference/methods/admin.inviteRequests.approve */
1867
- export const approveInviteRequest = /*@__PURE__*/ API.make(() => ({
1868
- input: ApproveInviteRequestRequest,
1869
- output: ApproveInviteRequestResponse,
1870
- errors: [SlackError, SlackRateLimited],
1871
- protocol: SlackProtocol,
1872
- retry: Retry.Retry,
1873
- }));
1874
- /** Restrict an app for installation on a workspace. Required scopes — user: `admin.apps:write` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `app_management_app_not_installed_on_org` — The app management app must be installed on the org. - `custom_integration_not_allowed_at_enterprise` — Returned when the install request is for custom integration app. - `feature_not_enabled` — Returned when the Admin APIs feature is not enabled for this team - `invalid_request_id` — The `request_id` passed is invalid. - `invalid_app_id` — The `app_id` passed is invalid. - `invalid_scopes` — Some of the provided scopes do not exist - `not_an_admin` — This method is only accessible by org owners and admins - `request_already_resolved` — The app request has already been resolved - `request_id_or_app_id_is_required` — Must include a `request_id` or `app_id` - `request_id_required_for_custom_integrations` — A `request_id` is required for custom integrations - `team_not_found` — Returned when team id is not found. - `too_many_ids_provided` — Please provide only `app_id` OR `request_id` - `too_many_teams_provided` — Please provide only `team_id` OR `enterprise_id` See https://docs.slack.dev/reference/methods/admin.apps.restrict */
1875
- export const appsRestrict = /*@__PURE__*/ API.make(() => ({
1876
- input: AppsRestrictRequest,
1877
- output: AppsRestrictResponse,
1878
- errors: [SlackError, SlackRateLimited],
1879
- protocol: SlackProtocol,
1880
- retry: Retry.Retry,
1881
- }));
1882
- /** Archive a public or private channel. Required scopes — user: `admin.conversations:write` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `already_archived` — This channel has already been archived. - `cant_archive_general` — You cannot archive the 'general' channel. - `channel_not_found` — The value passed for `channel` was invalid. - `channel_type_not_supported` — The value passed for `channel` was an MPDM, DM, or the 'general' channel. - `could_not_archive_channel` — The provided channel could not be archived. - `default_org_wide_channel` — The default org-wide channel cannot be archived. - `feature_not_enabled` — The token provided does not have access to this method. - `restricted_action` — A workspace preference prevents the authenticated user from archiving this channel. See https://docs.slack.dev/reference/methods/admin.conversations.archive */
1883
- export const archiveConversation = /*@__PURE__*/ API.make(() => ({
1884
- input: ArchiveConversationRequest,
1885
- output: ArchiveConversationResponse,
1886
- errors: [SlackError, SlackRateLimited],
1887
- protocol: SlackProtocol,
1888
- retry: Retry.Retry,
1889
- }));
1890
- /** Assign entities to a particular authentication policy. Required scopes — user: `admin.users:write` Rate limit tier: 4 Method-specific errors (the `error` slug on the SlackError): - `admin_unauthorized` — The token provided doesn't have permission to revoke a session. - `entity_not_found` — At least one `entity_id` was not found. - `feature_not_enabled` — This method is only available for Enterprise organizations. - `internal_error` — There was an internal error processing this request—please retry. - `invalid_arguments` — Required arguments either were not provided or contain invalid values. - `invalid_auth` — The token doesn't have access to this endpoint. - `not_an_admin` — This method is only accessible by Org Owners and Admins. - `over_max_entity_limit` — The number of entities assigned to this policy has reached its upper limit. - `policy_not_found` — The policy name doesn't match any of the existing org policies. - `ratelimited` — The rate limit for this endpoint has been reached. - `unknown_method` — This method is currently not available. See https://docs.slack.dev/reference/methods/admin.auth.policy.assignEntities */
1891
- export const assignEntities = /*@__PURE__*/ API.make(() => ({
1892
- input: AssignEntitiesRequest,
1893
- output: AssignEntitiesResponse,
1894
- errors: [SlackError, SlackRateLimited],
1895
- protocol: SlackProtocol,
1896
- retry: Retry.Retry,
1897
- }));
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 */
1899
- export const assignUser = /*@__PURE__*/ API.make(() => ({
1900
- input: AssignUserRequest,
1901
- output: AssignUserResponse,
1902
- errors: [SlackError, SlackRateLimited],
1903
- protocol: SlackProtocol,
1904
- retry: Retry.Retry,
1905
- }));
1906
- /** Archive public or private channels in bulk. Required scopes — user: `admin.conversations:write` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `action_already_in_progress` — Another bulk action request is currently in progress - `internal_error` — Something unexpected happened, try again in a little bit. Sorry for that! - `invalid_enterprise` — Enterprise does not exist - `no_valid_channels` — All input channels are invalid - `team_not_found` — Team ID provided does not exist - `restricted_action` — User does not have permission to perform this action See https://docs.slack.dev/reference/methods/admin.conversations.bulkArchive */
1907
- export const bulkArchive = /*@__PURE__*/ API.make(() => ({
1908
- input: BulkArchiveRequest,
1909
- output: BulkArchiveResponse,
1910
- errors: [SlackError, SlackRateLimited],
1911
- protocol: SlackProtocol,
1912
- retry: Retry.Retry,
1913
- }));
1914
- /** Delete public or private channels in bulk Required scopes — user: `admin.conversations:write` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `action_already_in_progress` — Another bulk action request is currently in progress - `internal_error` — Something unexpected happened, try again in a little bit. Sorry for that! - `no_valid_channels` — All input channels are invalid - `restricted_action` — User does not have permission to perform this action See https://docs.slack.dev/reference/methods/admin.conversations.bulkDelete */
1915
- export const bulkDelete = /*@__PURE__*/ API.make(() => ({
1916
- input: BulkDeleteRequest,
1917
- output: BulkDeleteResponse,
1918
- errors: [SlackError, SlackRateLimited],
1919
- protocol: SlackProtocol,
1920
- retry: Retry.Retry,
1921
- }));
1922
- /** Move public or private channels in bulk. Required scopes — user: `admin.conversations:write` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `action_already_in_progress` — Another bulk action request is currently in progress - `team_not_found` — Target team cannot be found - `internal_error` — Something unexpected happened, try again in a little bit. Sorry for that! - `no_valid_channels` — All input channels are invalid - `target_team_not_found` — Target team ID provided does not exist - `restricted_action` — User does not have permission to perform this action See https://docs.slack.dev/reference/methods/admin.conversations.bulkMove */
1923
- export const bulkMove = /*@__PURE__*/ API.make(() => ({
1924
- input: BulkMoveRequest,
1925
- output: BulkMoveResponse,
1926
- errors: [SlackError, SlackRateLimited],
1927
- protocol: SlackProtocol,
1928
- retry: Retry.Retry,
1929
- }));
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 */
1931
- export const bulkSetExcludeFromSlackAi = /*@__PURE__*/ API.make(() => ({
1932
- input: BulkSetExcludeFromSlackAiRequest,
1933
- output: BulkSetExcludeFromSlackAiResponse,
1934
- errors: [SlackError, SlackRateLimited],
1935
- protocol: SlackProtocol,
1936
- retry: Retry.Retry,
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
- }));
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 */
1947
- export const cancelAppsRequest = /*@__PURE__*/ API.make(() => ({
1948
- input: CancelAppsRequestRequest,
1949
- output: CancelAppsRequestResponse,
1950
- errors: [SlackError, SlackRateLimited],
1951
- protocol: SlackProtocol,
1952
- retry: Retry.Retry,
1953
- }));
1954
- /** Clear an app resolution Required scopes — user: `admin.apps:write` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `app_management_app_not_installed_on_org` — The app management app must be installed on the org. - `feature_not_enabled` — Returned when the Admin APIs feature is not enabled for this team - `invalid_app_id` — The `app_id` passed is invalid. - `no_resolution_found` — No existing resolutions were found for the given `team` and `app_id`. - `not_an_admin` — This method is only accessible by org owners and admins - `access_denied` — This actor does not have access to the permissions on this resource. - `team_not_found` — Returned when team id is not found. - `too_many_teams_provided` — Please provide only `team_id` OR `enterprise_id` - `restricted_action` — This actor does not have access to the permissions on this resource. See https://docs.slack.dev/reference/methods/admin.apps.clearResolution */
1955
- export const clearResolution = /*@__PURE__*/ API.make(() => ({
1956
- input: ClearResolutionRequest,
1957
- output: ClearResolutionResponse,
1958
- errors: [SlackError, SlackRateLimited],
1959
- protocol: SlackProtocol,
1960
- retry: Retry.Retry,
1961
- }));
1962
- /** Clear user-specific session settings—the session duration and what happens when the client closes—for a list of users. Required scopes — user: `admin.users:write` Rate limit tier: 4 Method-specific errors (the `error` slug on the SlackError): - `admin_unauthorized` — The owner of this token isn't authorized to clear sessions. - `bots_not_allowed` — Bot users may not have their settings cleared. - `feature_not_enabled` — This method is only available to Enterprise customers. - `internal_error` — There was an internal error processing this request—please retry. - `invalid_arguments` — Required arguments either were not provided or contain invalid values. - `invalid_auth` — The provided token doesn't have access to this endpoint. - `not_an_admin` — The owner of this token isn't an Org Owner or Admin. - `unknown_method` — This method is currently not available. - `user_not_found` — There was an error finding a requested user. See https://docs.slack.dev/reference/methods/admin.users.session.clearSettings */
1963
- export const clearSettings = /*@__PURE__*/ API.make(() => ({
1964
- input: ClearSettingsRequest,
1965
- output: ClearSettingsResponse,
1966
- errors: [SlackError, SlackRateLimited],
1967
- protocol: SlackProtocol,
1968
- retry: Retry.Retry,
1969
- }));
1970
- /** Convert a public channel to a private channel. Required scopes — user: `admin.conversations:write` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `channel_not_found` — The value passed for `channel` was invalid. - `channel_type_not_supported` — The value passed for `channel` was a DM, MPDM, private, or the 'general' channel. - `could_not_convert_channel` — This channel could not be converted to private. - `default_org_wide_channel` — The default org-wide channel cannot be converted to private. - `external_channel_migrating` — This external channel is migrating, so it can't be converted to private. - `feature_not_enabled` — The provided token doesn't have access to this method. - `method_not_supported_for_channel_type` — This type of conversation cannot be used with this method. - `name_taken` — A private channel cannot be created with the given name. - `restricted_action` — A workspace preference prevents the authenticated user from creating private channels. See https://docs.slack.dev/reference/methods/admin.conversations.convertToPrivate */
1971
- export const convertToPrivate = /*@__PURE__*/ API.make(() => ({
1972
- input: ConvertToPrivateRequest,
1973
- output: ConvertToPrivateResponse,
1974
- errors: [SlackError, SlackRateLimited],
1975
- protocol: SlackProtocol,
1976
- retry: Retry.Retry,
1977
- }));
1978
- /** Convert a private channel to a public channel. Required scopes — user: `admin.conversations:write` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `feature_not_enabled` — The feature has not been enabled for this Organization - `channel_not_found` — The channel requested for conversion to public could not be found. - `not_supported` — Conversion to public channel is not supported for this channel. - `restricted_action` — This user is not able to convert this channel to public. - `missing_scope` — This user is either not an owner or the app does not have the correct scope. - `could_not_convert_channel` — This channel could not be converted to public. - `not_an_enterprise` — Only enterprises can convert channel to public. - `invalid_user` — Value passed for `user_id` was not valid - `external_limited_restriction` — away-side SC conversion fails due to being under Limited Access (“external_limited” aka “can only post”) - `channel_owner_restriction` — away-side SC conversion fails due to home-side being private - `is_idp_managed` — The channel cannot be converted because it is IDP Managed See https://docs.slack.dev/reference/methods/admin.conversations.convertToPublic */
1979
- export const convertToPublic = /*@__PURE__*/ API.make(() => ({
1980
- input: ConvertToPublicRequest,
1981
- output: ConvertToPublicResponse,
1982
- errors: [SlackError, SlackRateLimited],
1983
- protocol: SlackProtocol,
1984
- retry: Retry.Retry,
1985
- }));
1986
- /** Create an Information Barrier Required scopes — user: `admin.barriers:write` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `barrier_already_exists` — There already exists another barrier restricting activity between two or more of your requested usergroups. - `barriered_from_usergroups_not_found` — One or more of the ids passed in for barriered_from_usergroup_ids can’t be found. - `feature_not_enabled` — The information barrier feature is not enabled, please reach out to your CSM. - `invalid_restricted_subjects` — The restricted subjects provided are invalid or not currently supported. - `not_an_admin` — The token provided is not associated with an org admin. - `primary_usergroup_not_found` — The id passed in for primary_usergroup_id can’t be found. See https://docs.slack.dev/reference/methods/admin.barriers.create */
1987
- export const createBarrier = /*@__PURE__*/ API.make(() => ({
1988
- input: CreateBarrierRequest,
1989
- output: CreateBarrierResponse,
1990
- errors: [SlackError, SlackRateLimited],
1991
- protocol: SlackProtocol,
1992
- retry: Retry.Retry,
1993
- }));
1994
- /** Create a public or private channel-based conversation. Required scopes — user: `admin.conversations:write` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `could_not_create_channel` — The channel could not be created. - `feature_not_enabled` — The token provided doesn't have access to this method. - `invalid_name` — The value passed for `name` was invalid. - `invalid_team` — The provided workspace is invalid. - `name_taken` — A channel cannot be created with the given name. - `no_local_user_on_team` — The workspace provided had no users. - `restricted_action` — A workspace preference prevents the authenticated user from creating channels. - `team_id_or_org_required` — You must provide a `team_id` or set `org_wide` to `true`. - `team_not_found` — No workspace was found for the `team_id` provided. See https://docs.slack.dev/reference/methods/admin.conversations.create */
1995
- export const createConversation = /*@__PURE__*/ API.make(() => ({
1996
- input: CreateConversationRequest,
1997
- output: CreateConversationResponse,
1998
- errors: [SlackError, SlackRateLimited],
1999
- protocol: SlackProtocol,
2000
- retry: Retry.Retry,
2001
- }));
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 */
2003
- export const createForObjects = /*@__PURE__*/ API.make(() => ({
2004
- input: CreateForObjectsRequest,
2005
- output: CreateForObjectsResponse,
2006
- errors: [SlackError, SlackRateLimited],
2007
- protocol: SlackProtocol,
2008
- retry: Retry.Retry,
2009
- }));
2010
- /** Create an Enterprise team. Required scopes — user: `admin.teams:write` Rate limit tier: 1 Method-specific errors (the `error` slug on the SlackError): - `bad_url` — Invalid URL. Note that domains can be at most 21 characters. - `could_not_create_workspace` — The workspace could not be created. - `discoverability_setting_invalid` — The given discoverability setting is invalid. - `domain_taken` — The requested domain is taken. - `feature_not_enabled` — The Admin APIs feature is not enabled for this team. - `must_provide_team_domain` — No team domain has been provided. - `must_provide_team_name` — No team name has been provided. - `name_taken_in_org` — The team with the specified name already exists in the org. - `not_an_admin` — This method is only accessible by org owners and admins. See https://docs.slack.dev/reference/methods/admin.teams.create */
2011
- export const createTeam = /*@__PURE__*/ API.make(() => ({
2012
- input: CreateTeamRequest,
2013
- output: CreateTeamResponse,
2014
- errors: [SlackError, SlackRateLimited],
2015
- protocol: SlackProtocol,
2016
- retry: Retry.Retry,
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
- }));
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 */
2027
- export const deleteBarrier = /*@__PURE__*/ API.make(() => ({
2028
- input: DeleteBarrierRequest,
2029
- output: DeleteBarrierResponse,
2030
- errors: [SlackError, SlackRateLimited],
2031
- protocol: SlackProtocol,
2032
- retry: Retry.Retry,
2033
- }));
2034
- /** Delete a public or private channel. Required scopes — user: `admin.conversations:write` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `channel_not_found` — The value passed for `channel_id` was invalid. - `channel_type_not_supported` — The provided `channel_id` was a DM, MPDM, or the 'general' channel. - `could_not_delete_channel` — The channel could not be deleted. - `default_org_wide_channel` — The default org-wide channel cannot be deleted. - `feature_not_enabled` — The token provided doesn't have access to this method. - `missing_scope` — The provided token hasn't obtained the necessary scopes to use this method. - `not_an_admin` — The token provided is not associated with an Org Owner or Admin. - `restricted_action` — A workspace preference prevents the authenticated user from deleting this channel. See https://docs.slack.dev/reference/methods/admin.conversations.delete */
2035
- export const deleteConversation = /*@__PURE__*/ API.make(() => ({
2036
- input: DeleteConversationRequest,
2037
- output: DeleteConversationResponse,
2038
- errors: [SlackError, SlackRateLimited],
2039
- protocol: SlackProtocol,
2040
- retry: Retry.Retry,
2041
- }));
2042
- /** Disconnect a connected channel from one or more workspaces. Required scopes — user: `admin.conversations:write` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `cannot_kick_home_team` — The originating workspace cannot be kicked from the channel. - `cannot_kick_team` — Only the originating workspace for a connected channel may remove other workspaces from the channel. - `channel_not_found` — The value passed for `channel_id` was invalid. - `channel_type_not_supported` — The value passed for `channel_id` was an MPDM, DM, or the 'general' channel. - `feature_not_enabled` — The token provided does not have access to this method. - `leaving_team_not_in_channel` — The workspace being removed is not connected to the channel. - `leaving_team_required` — There are more than two teams in the channel—you must supplied a `leaving_team_id` parameter. - `missing_scope` — The provided token does not have the required scopes to use this method. - `no_teams_to_disconnect` — This channel is not shared, so there are no workspaces to disconnect. - `not_an_admin` — The token provided is not associated with an Org Admin or Owner. - `not_an_enterprise` — This endpoint can only be called for an Enterprise organization. - `not_supported` — The passed `channel_id` was a DM, MPDM, or the 'general' channel. - `restricted_action` — A workspace preference prevents the authenticated user from disconnecting a channel. - `team_not_found` — At least one of the supplied `leaving_team_ids` are invalid. See https://docs.slack.dev/reference/methods/admin.conversations.disconnectShared */
2043
- export const disconnectShared = /*@__PURE__*/ API.make(() => ({
2044
- input: DisconnectSharedRequest,
2045
- output: DisconnectSharedResponse,
2046
- errors: [SlackError, SlackRateLimited],
2047
- protocol: SlackProtocol,
2048
- retry: Retry.Retry,
2049
- }));
2050
- /** Ask Slackbot to send you an export listing all workspace members using unsupported software, presented as a zipped CSV file. Required scopes — user: `admin.users:read` Rate limit tier: 1 Method-specific errors (the `error` slug on the SlackError): - `could_not_export` — For some reason, the export could not be started - `invalid_auth` — Invalid authentication token provided. - `invalid_team_id` — The team ID passed is invalid - `missing_scope` — The calling token is not granted the necessary scopes to complete this operation. - `not_authed` — No authentication token provided. - `not_an_enterprise` — Only enterprises are supported. See https://docs.slack.dev/reference/methods/admin.users.unsupportedVersions.export */
2051
- export const exportUsersUnsupportedVersion = /*@__PURE__*/ API.make(() => ({
2052
- input: ExportUsersUnsupportedVersionRequest,
2053
- output: ExportUsersUnsupportedVersionResponse,
2054
- errors: [SlackError, SlackRateLimited],
2055
- protocol: SlackProtocol,
2056
- retry: Retry.Retry,
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
- }));
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 */
2067
- export const getConversationPrefs = /*@__PURE__*/ API.make(() => ({
2068
- input: GetConversationPrefsRequest,
2069
- output: GetConversationPrefsResponse,
2070
- errors: [SlackError, SlackRateLimited],
2071
- protocol: SlackProtocol,
2072
- retry: Retry.Retry,
2073
- }));
2074
- /** This API endpoint can be used by any admin to get a conversation's retention policy. Required scopes — user: `admin.conversations:read` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `channel_not_found` — Value given for `channel_id` was invalid. - `channel_type_not_supported` — Value given for `channel_id` was a #general channel. - `could_not_get_retention` — The retention policy could not be retrieved. - `default_org_wide_channel` — The channel given is a default org-wide channel. - `feature_not_enabled` — The Admin APIs feature is not enabled for this team. - `not_an_admin` — The token provided is not associated with an org admin. - `restricted_action` — A team preference prevents the authenticated user from modifying the retention policy of this channel. - `retention_override_not_allowed` — The current org retention policy disallows modifying the retention policy of this channel. See https://docs.slack.dev/reference/methods/admin.conversations.getCustomRetention */
2075
- export const getCustomRetention = /*@__PURE__*/ API.make(() => ({
2076
- input: GetCustomRetentionRequest,
2077
- output: GetCustomRetentionResponse,
2078
- errors: [SlackError, SlackRateLimited],
2079
- protocol: SlackProtocol,
2080
- retry: Retry.Retry,
2081
- }));
2082
- /** Fetch all the entities assigned to a particular authentication policy by name. Required scopes — user: `admin.users:read` Rate limit tier: 4 Method-specific errors (the `error` slug on the SlackError): - `feature_not_enabled` — This method is only available for Enterprise organizations. - `internal_error` — There was an internal error processing this request—please retry. - `invalid_arguments` — Required arguments either were not provided or contain invalid values. - `invalid_auth` — The token doesn't have access to this endpoint. - `invalid_cursor` — The cursor passed was invalid. - `not_an_admin` — This method is only accessible by Org Owners and Admins. - `policy_not_found` — The `policy_name` could not be found. - `ratelimited` — The rate limit for this endpoint has been reached. See https://docs.slack.dev/reference/methods/admin.auth.policy.getEntities */
2083
- export const getEntities = /*@__PURE__*/ API.makePaginated(() => ({
2084
- input: GetEntitiesRequest,
2085
- output: GetEntitiesResponse,
2086
- errors: [SlackError, SlackRateLimited],
2087
- protocol: SlackProtocol,
2088
- retry: Retry.Retry,
2089
- pagination: {
2090
- mode: "cursor",
2091
- inputToken: "cursor",
2092
- outputToken: "response_metadata.next_cursor",
2093
- items: "entities",
2094
- pageSize: "limit",
2095
- },
2096
- }), slackPaginate);
2097
- /** Fetches the expiration timestamp for a guest Required scopes — user: `admin.users:read` Rate limit tier: 4 Method-specific errors (the `error` slug on the SlackError): - `paid_teams_only` — This feature is only accessible to paid teams - `no_perms` — User does not have appropriate permissions. - `team_not_found` — Team not found - `user_not_found` — User not found - `not_permitted` — This action is not permitted - `target_team_not_on_org` — Target team specified is not on the org in context - `user_is_not_guest` — The user is not a guest See https://docs.slack.dev/reference/methods/admin.users.getExpiration */
2098
- export const getExpiration = /*@__PURE__*/ API.make(() => ({
2099
- input: GetExpirationRequest,
2100
- output: GetExpirationResponse,
2101
- errors: [SlackError, SlackRateLimited],
2102
- protocol: SlackProtocol,
2103
- retry: Retry.Retry,
2104
- }));
2105
- /** Retrieve analytics data for a given date, presented as a compressed JSON file Required scopes — user: `admin.analytics:read` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `data_not_available` — The `date` was before the API became available. - `feature_not_available` — The user token does not belong to an Enterprise or Business+ team. - `feature_not_enabled` — This feature is not enabled on your workspace. - `file_not_found` — The analytics data for the `date` specified weren't found. - `file_not_yet_available` — The analytics data for the `date` isn't available yet. - `invalid_arguments` — Arguments weren't fully provided. For example, the `date` argument wasn't passed. - `invalid_date` — The `date` argument was invalid. - `invalid_type` — The analytics data for the `type` specified weren't found. - `member_analytics_disabled` — Member analytics are disabled for your organization. - `metadata_not_available` — Metadata not available for the analytics `type` you provided. - `metadata_only_does_not_support_date` — The `metadata_only` field gets the latest metadata file. The `date` field is not supported. - `missing_scope` — This token doesn't have the scope required. - `not_an_admin` — The user token does not have admin privileges. - `org_level_email_display_disabled` — This API is unavailable for organizations with a _'Hide email addresses'_ policy. - `user_cannot_manage_public_channels` — The user must have permissions to manage public channels at the Enterprise level. See https://docs.slack.dev/reference/methods/admin.analytics.getFile */
2106
- export const getFile = /*@__PURE__*/ API.make(() => ({
2107
- input: GetFileRequest,
2108
- output: GetFileResponse,
2109
- errors: [SlackError, SlackRateLimited],
2110
- protocol: SlackProtocol,
2111
- retry: Retry.Retry,
2112
- }));
2113
- /** API to allow Enterprise org admins to read the allow list of IP blocks and ASNs from the enterprise configuration. Required scopes — user: `admin` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `endpoint_unavailable` — The requested endpoint is currently unavailable. - `not_an_enterprise` — The user is not an enterprise admin. - `not_authed` — auth token is not valid. - `unsupported_action_describe` — The user specified action is unsupported - `unsupported_action_put` — The user specified action is unsupported See https://docs.slack.dev/reference/methods/admin.audit.anomaly.allow.getItem */
2114
- export const getItem = /*@__PURE__*/ API.make(() => ({
2115
- input: GetItemRequest,
2116
- output: GetItemResponse,
2117
- errors: [SlackError, SlackRateLimited],
2118
- protocol: SlackProtocol,
2119
- retry: Retry.Retry,
2120
- }));
2121
- /** Get user-specific session settings—the session duration and what happens when the client closes—given a list of users. Required scopes — user: `admin.users:read` Rate limit tier: 4 Method-specific errors (the `error` slug on the SlackError): - `admin_unauthorized` — The owner of this token isn't authorized to list sessions. - `bots_not_allowed` — Bot sessions are not listed by this method. - `feature_not_enabled` — This method is only available to Enterprise customers. - `internal_error` — There was an internal error processing this request—please retry. - `invalid_arguments` — Required arguments either were not provided or contain invalid values. - `invalid_auth` — The provided token doesn't have access to this endpoint. - `restricted_action` — The owner of this token isn't an Org Owner or Admin. - `not_an_admin` — The owner of this token isn't an Org Owner or Admin. - `unknown_method` — This method is currently not available. - `user_not_found` — There was an error finding the requested user. See https://docs.slack.dev/reference/methods/admin.users.session.getSettings */
2122
- export const getSettings = /*@__PURE__*/ API.make(() => ({
2123
- input: GetSettingsRequest,
2124
- output: GetSettingsResponse,
2125
- errors: [SlackError, SlackRateLimited],
2126
- protocol: SlackProtocol,
2127
- retry: Retry.Retry,
2128
- }));
2129
- /** Get all the workspaces a given public or private channel is connected to within this Enterprise org. Required scopes — user: `admin.conversations:read` Rate limit tier: 3 Method-specific errors (the `error` slug on the SlackError): - `channel_not_found` — The channel wasn't found or isn't connected to multiple workspaces. - `channel_type_not_supported` — The `channel_id` provided was a DM, MPDM, or the 'general' channel. - `could_not_get_teams` — Could not fetch the workspaces that the channel is shared with in this organization. - `external_channel_migrating` — The channel is actively being migrated - `feature_not_enabled` — The token provided doesn't have access to this method. - `invalid_cursor` — The provided cursor wasn't valid. - `invalid_limit` — The value passed for `limit` wasn't valid. - `restricted_action` — A workspace preference prevents the authenticated user from listing the workspaces connected to a channel. - `unsupported_team_type` — This endpoint can only called by Enterprise organizations. See https://docs.slack.dev/reference/methods/admin.conversations.getTeams */
2130
- export const getTeams = /*@__PURE__*/ API.make(() => ({
2131
- input: GetTeamsRequest,
2132
- output: GetTeamsResponse,
2133
- errors: [SlackError, SlackRateLimited],
2134
- protocol: SlackProtocol,
2135
- retry: Retry.Retry,
2136
- }));
2137
- /** Revoke a single session for a user. The user will be forced to login to Slack. Required scopes — user: `admin.users:write` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `admin_unauthorized` — The token provided doesn't have permission to revoke a session. - `cannot_invalidate_primary_owner` — Only the primary owner of an organization can invalidate a primary owner's sessions. - `feature_not_enabled` — The token provided can't call this method. - `invalid_auth` — The provided token doesn't have access to this endpoint. - `not_an_admin` — This method must be called by an Org Owner or Admin. - `session_invalidation_failed` — There was an error invalidating the session. - `session_not_found` — The requested session wasn't found. - `unknown_method` — This method is currently not available. - `user_not_found` — The requested user wasn't found. See https://docs.slack.dev/reference/methods/admin.users.session.invalidate */
2138
- export const invalidateUsersSession = /*@__PURE__*/ API.make(() => ({
2139
- input: InvalidateUsersSessionRequest,
2140
- output: InvalidateUsersSessionResponse,
2141
- errors: [SlackError, SlackRateLimited],
2142
- protocol: SlackProtocol,
2143
- retry: Retry.Retry,
2144
- }));
2145
- /** Invite a user to a public or private channel. Required scopes — user: `admin.conversations:write` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `channel_not_found` — The value passed for `channel_id` was invalid. - `channel_type_not_supported` — The provided `channel_id` was a DM, MPDM, or the 'general' channel. - `default_org_wide_channel` — Users may not be invited to the default org-wide channel. - `failed_for_some_users` — The method failed for a subset of the users passed. - `feature_not_enabled` — The token provided doesn't have access to this method. - `restricted_action` — A workspace preference prevents the authenticated user from inviting. - `user_must_be_admin` — The token provided must be associated with an Org Admin or Owner. See https://docs.slack.dev/reference/methods/admin.conversations.invite */
2146
- export const inviteConversation = /*@__PURE__*/ API.make(() => ({
2147
- input: InviteConversationRequest,
2148
- output: InviteConversationResponse,
2149
- errors: [SlackError, SlackRateLimited],
2150
- protocol: SlackProtocol,
2151
- retry: Retry.Retry,
2152
- }));
2153
- /** Deny a workspace invite request. Required scopes — user: `admin.invites:write` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `already_processed` — The `invite_request_id` passed has already been approved or denied. - `feature_not_enabled` — The Invite Request Admin APIs feature is not enabled - `invalid_request` — The `invite_request_id` passed is invalid. - `missing_scope` — This token doesn't have the scope required. - `not_an_admin` — This token doesn't have admin privileges. - `team_not_found` — The `team_id` specified wasn't found. See https://docs.slack.dev/reference/methods/admin.inviteRequests.deny */
2154
- export const inviteRequestsDeny = /*@__PURE__*/ API.make(() => ({
2155
- input: InviteRequestsDenyRequest,
2156
- output: InviteRequestsDenyResponse,
2157
- errors: [SlackError, SlackRateLimited],
2158
- protocol: SlackProtocol,
2159
- retry: Retry.Retry,
2160
- }));
2161
- /** Invite a user to a workspace. Required scopes — user: `admin.users:write` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `already_in_team` — The user is already on the team. - `already_in_team_invited_user` — The user has already been invited to the team. - `failed_looking_up_user` — We couldn't find the requested user. - `failed_to_send_invite` — The invite failed to send. - `failed_to_validate_caller` — The token calling this method doesn't have permission to invite a user. - `failed_to_validate_channels` — `channel_ids` was invalid. - `failed_to_validate_custom_message` — `extra_message` was invalid. - `failed_to_validate_expiration` — `expiration_ts` was invalid. - `failed_to_validate_team` — The team calling this method was invalid. - `feature_not_enabled` — The Admin APIs feature is not enabled for this team. - `invalid_email` — Email address was not valid. - `not_an_admin` — The user token does not have admin privileges. - `team_not_found` — `team_id` was not found. - `user_disabled` — The user is disabled. See https://docs.slack.dev/reference/methods/admin.users.invite */
2162
- export const inviteUser = /*@__PURE__*/ API.make(() => ({
2163
- input: InviteUserRequest,
2164
- output: InviteUserResponse,
2165
- errors: [SlackError, SlackRateLimited],
2166
- protocol: SlackProtocol,
2167
- retry: Retry.Retry,
2168
- }));
2169
- /** Link a Salesforce record to a channel Required scopes — user: `admin.conversations:manage_objects` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `channel_already_exists` — Object is linked to a different channel. - `channel_conversion_incomplete` — An active channel conversion is preventing linking. - `channel_is_archived` — Channel is archived. - `channel_not_found` — Value passed for `channel` is invalid. - `channel_not_org_wide_shared` — Channel is not Org-wide shared. - `channel_shared_with_nonapproved_team` — Channel is shared with a non-approved external team. - `config_not_found` — Missing record configuration. - `invalid_channel_type` — Channel type cannot be linked. - `name_taken` — A channel cannot be created with the given name. - `not_allowed_for_grid_workspace` — Channel type is not allowed for this Enterprise org workspace. - `restricted_action` — User does not have access to perform this action. - `record_channel_already_exists` — Record is linked to a different channel. - `record_channel_cannot_be_externally_shared` — Channel cannot be linked because it is externally shared. - `record_not_found` — Value passed for `record_id` is invalid. See https://docs.slack.dev/reference/methods/admin.conversations.linkObjects */
2170
- export const linkObjects = /*@__PURE__*/ API.make(() => ({
2171
- input: LinkObjectsRequest,
2172
- output: LinkObjectsResponse,
2173
- errors: [SlackError, SlackRateLimited],
2174
- protocol: SlackProtocol,
2175
- retry: Retry.Retry,
2176
- }));
2177
- /** Get logs for a specified team/org Required scopes — user: `admin.app_activities:read` Rate limit tier: 3 Method-specific errors (the `error` slug on the SlackError): - `internal_error` — Something went wrong on our end, please try again. - `invalid_app_id` — App ID provided is not valid. - `invalid_app` — App ID provided is not valid for team and user. - `invalid_args` — Required arguments either were not provided or contain invalid values. - `invalid_cursor` — Value passed for `cursor` was not valid or is no longer valid. - `invalid_team` — Team ID provided is not valid See https://docs.slack.dev/reference/methods/admin.apps.activities.list */
2178
- export const listAppsActivities = /*@__PURE__*/ API.makePaginated(() => ({
2179
- input: ListAppsActivitiesRequest,
2180
- output: ListAppsActivitiesResponse,
2181
- errors: [SlackError, SlackRateLimited],
2182
- protocol: SlackProtocol,
2183
- retry: Retry.Retry,
2184
- pagination: {
2185
- mode: "cursor",
2186
- inputToken: "cursor",
2187
- outputToken: "response_metadata.next_cursor",
2188
- items: "activities",
2189
- pageSize: "limit",
2190
- },
2191
- }), slackPaginate);
2192
- /** List approved apps for an org or workspace. Required scopes — user: `admin.apps:read` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `app_management_app_not_installed_on_org` — The app management app must be installed on the org. - `feature_not_enabled` — Returned when the Admin APIs feature is not enabled for this team - `invalid_actor` — The provided actor_id is not a valid user or application - `invalid_cursor` — Value passed for `cursor` was not valid or is no longer valid. - `not_allowed` — The user is not allowed to access this API method - `not_an_admin` — This method is only accessible by org/workspace owners and admins - `team_not_found` — Returned when team id is not found. - `too_many_teams_provided` — Please provide only `team_id` OR `enterprise_id`. - `restricted_action` — User does not have permission to access method See https://docs.slack.dev/reference/methods/admin.apps.approved.list */
2193
- export const listAppsApproved = /*@__PURE__*/ API.makePaginated(() => ({
2194
- input: ListAppsApprovedRequest,
2195
- output: ListAppsApprovedResponse,
2196
- errors: [SlackError, SlackRateLimited],
2197
- protocol: SlackProtocol,
2198
- retry: Retry.Retry,
2199
- pagination: {
2200
- mode: "cursor",
2201
- inputToken: "cursor",
2202
- outputToken: "response_metadata.next_cursor",
2203
- items: "approved_apps",
2204
- pageSize: "limit",
2205
- },
2206
- }), slackPaginate);
2207
- /** List third-party app MCP servers approved for an organization, derived from the org's MCP server allowlist. Entries reflect allowlist state, not install/scope liveness: servers of apps that are uninstalled (but not deleted) are still listed. Required scopes — user: `admin.apps:read` Rate limit tier: 3 Method-specific errors (the `error` slug on the SlackError): - `restricted_action` — User does not have permission to perform this action. - `invalid_auth` — Invalid authorization token - `invalid_cursor` — Value passed for `cursor` was not valid or is no longer valid. - `not_an_enterprise` — This feature is only available on Enterprise Grid plans. - `internal_error` — Internal error - `feature_not_enabled` — The MCP server admin API feature is not enabled for this team. See https://docs.slack.dev/reference/methods/admin.apps.mcp.servers.list */
2208
- export const listAppsMcpServers = /*@__PURE__*/ API.makePaginated(() => ({
2209
- input: ListAppsMcpServersRequest,
2210
- output: ListAppsMcpServersResponse,
2211
- errors: [SlackError, SlackRateLimited],
2212
- protocol: SlackProtocol,
2213
- retry: Retry.Retry,
2214
- pagination: {
2215
- mode: "cursor",
2216
- inputToken: "cursor",
2217
- outputToken: "response_metadata.next_cursor",
2218
- items: "servers",
2219
- pageSize: "limit",
2220
- },
2221
- }), slackPaginate);
2222
- /** List MCP servers for an app with their access control permissions Required scopes — user: `admin.apps:read` Rate limit tier: 3 Method-specific errors (the `error` slug on the SlackError): - `restricted_action` — User does not have permission to perform this action. - `invalid_auth` — Invalid authorization token - `app_not_found` — This app does not exist. - `not_an_enterprise` — This feature is only available on Enterprise Grid plans. - `feature_not_enabled` — The MCP server ACL feature is not enabled for this team. - `internal_error` — An internal error occurred while resolving the app's approved domains or ACLs. Retry the request. See https://docs.slack.dev/reference/methods/admin.apps.mcp.servers.permissions.list */
2223
- export const listAppsMcpServersPermissions = /*@__PURE__*/ API.make(() => ({
2224
- input: ListAppsMcpServersPermissionsRequest,
2225
- output: ListAppsMcpServersPermissionsResponse,
2226
- errors: [SlackError, SlackRateLimited],
2227
- protocol: SlackProtocol,
2228
- retry: Retry.Retry,
2229
- }));
2230
- /** Returns the permission type of an app and if applicable, includes the entities that have been granted access Required scopes — user: `admin.apps:read` Rate limit tier: 3 Method-specific errors (the `error` slug on the SlackError): - `restricted_action` — User does not have permission to perform this action. - `invalid_auth` — Invalid authorization token - `access_denied` — This actor does not have access to the permissions on this resource. - `app_not_found` — This app does not exist. - `not_an_enterprise` — This feature is only available on Enterprise Grid plans. - `invalid_permission_type` — The ACL has an invalid permission type. See https://docs.slack.dev/reference/methods/admin.apps.permissions.list */
2231
- export const listAppsPermissions = /*@__PURE__*/ API.make(() => ({
2232
- input: ListAppsPermissionsRequest,
2233
- output: ListAppsPermissionsResponse,
2234
- errors: [SlackError, SlackRateLimited],
2235
- protocol: SlackProtocol,
2236
- retry: Retry.Retry,
2237
- }));
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 */
2239
- export const listAppsRequests = /*@__PURE__*/ API.makePaginated(() => ({
2240
- input: ListAppsRequestsRequest,
2241
- output: ListAppsRequestsResponse,
2242
- errors: [SlackError, SlackRateLimited],
2243
- protocol: SlackProtocol,
2244
- retry: Retry.Retry,
2245
- pagination: {
2246
- mode: "cursor",
2247
- inputToken: "cursor",
2248
- outputToken: "response_metadata.next_cursor",
2249
- items: "app_requests",
2250
- pageSize: "limit",
2251
- },
2252
- }), slackPaginate);
2253
- /** List restricted apps for an org or workspace. Required scopes — user: `admin.apps:read` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `app_management_app_not_installed_on_org` — The app management app must be installed on the org. - `feature_not_enabled` — Returned when the Admin APIs feature is not enabled for this team - `invalid_actor` — The provided actor_id is not a valid user or application - `invalid_cursor` — Value passed for `cursor` was not valid or is no longer valid. - `not_allowed` — The user is not allowed to access this API method - `not_an_admin` — This method is only accessible by org/workspace owners and admins - `team_not_found` — Returned when team id is not found. - `too_many_teams_provided` — Please provide only `team_id` OR `enterprise_id`. - `restricted_action` — User does not have permission to access method See https://docs.slack.dev/reference/methods/admin.apps.restricted.list */
2254
- export const listAppsRestricted = /*@__PURE__*/ API.makePaginated(() => ({
2255
- input: ListAppsRestrictedRequest,
2256
- output: ListAppsRestrictedResponse,
2257
- errors: [SlackError, SlackRateLimited],
2258
- protocol: SlackProtocol,
2259
- retry: Retry.Retry,
2260
- pagination: {
2261
- mode: "cursor",
2262
- inputToken: "cursor",
2263
- outputToken: "response_metadata.next_cursor",
2264
- items: "restricted_apps",
2265
- pageSize: "limit",
2266
- },
2267
- }), slackPaginate);
2268
- /** Lists assignments for all roles across entities. Options to scope results by any combination of roles or entities Required scopes — user: `admin.roles:read` Rate limit tier: 3 Method-specific errors (the `error` slug on the SlackError): - `feature_not_enabled` — This API is currently not enabled. - `invalid_actor` — This API is only enabled for the Admins/Owners. - `invalid_arguments` — Required arguments either were not provided or contain invalid values. - `invalid_cursor` — The passed cursor was invalid. - `invalid_sort` — Sort parameters are invalid. - `invalid_role_id` — One or more role IDs could not be validated. See https://docs.slack.dev/reference/methods/admin.roles.listAssignments */
2269
- export const listAssignments = /*@__PURE__*/ API.makePaginated(() => ({
2270
- input: ListAssignmentsRequest,
2271
- output: ListAssignmentsResponse,
2272
- errors: [SlackError, SlackRateLimited],
2273
- protocol: SlackProtocol,
2274
- retry: Retry.Retry,
2275
- pagination: {
2276
- mode: "cursor",
2277
- inputToken: "cursor",
2278
- outputToken: "response_metadata.next_cursor",
2279
- items: "role_assignments",
2280
- pageSize: "limit",
2281
- },
2282
- }), slackPaginate);
2283
- /** Get all Information Barriers for your organization Required scopes — user: `admin.barriers:read` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `feature_not_enabled` — Feature not enabled - `invalid_cursor` — Value passed for `cursor` was not valid or is no longer valid. - `not_an_admin` — The token provided is not associated with an org admin See https://docs.slack.dev/reference/methods/admin.barriers.list */
2284
- export const listBarriers = /*@__PURE__*/ API.makePaginated(() => ({
2285
- input: ListBarriersRequest,
2286
- output: ListBarriersResponse,
2287
- errors: [SlackError, SlackRateLimited],
2288
- protocol: SlackProtocol,
2289
- retry: Retry.Retry,
2290
- pagination: {
2291
- mode: "cursor",
2292
- inputToken: "cursor",
2293
- outputToken: "response_metadata.next_cursor",
2294
- items: "barriers",
2295
- pageSize: "limit",
2296
- },
2297
- }), slackPaginate);
2298
- /** List the channels linked to an org-level IDP group (user group). Required scopes — user: `admin.usergroups:read` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `feature_not_enabled` — The Admin APIs feature is not enabled for this workspace. - `invalid_auth` — The workspace specified is not part of this Enterprise organization. - `invalid_user` — The calling user is not valid. - `not_allowed` — The calling user is not an admin or does not have necessary role - `not_an_admin` — The token provided is not associated with an Org Admin or Owner. - `not_an_enterprise` — The token passed in does not belong to an Enterprise organization. - `team_not_found` — The workspace was not found. - `usergroup_not_found` — The IDP group provided was not found. - `usergroup_not_linked_to_team` — The IDP group provided is not linked to the specified workspace. See https://docs.slack.dev/reference/methods/admin.usergroups.listChannels */
2299
- export const listChannels = /*@__PURE__*/ API.make(() => ({
2300
- input: ListChannelsRequest,
2301
- output: ListChannelsResponse,
2302
- errors: [SlackError, SlackRateLimited],
2303
- protocol: SlackProtocol,
2304
- retry: Retry.Retry,
2305
- }));
2306
- /** List emoji for an Enterprise organization. Required scopes — user: `admin.teams:read` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `feature_not_enabled` — The Admin APIs feature is not enabled for this team. - `invalid_cursor` — Value passed for `cursor` was not valid or is no longer valid. - `not_an_admin` — This method is only accessible by org owners and Admins. See https://docs.slack.dev/reference/methods/admin.emoji.list */
2307
- export const listEmoji = /*@__PURE__*/ API.make(() => ({
2308
- input: ListEmojiRequest,
2309
- output: ListEmojiResponse,
2310
- errors: [SlackError, SlackRateLimited],
2311
- protocol: SlackProtocol,
2312
- retry: Retry.Retry,
2313
- }));
2314
- /** Look up functions by a set of apps. Required scopes — user: `admin.workflows:read` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `invalid_cursor` — Value passed for `cursor` was not valid or is no longer valid. - `not_allowed` — The user is not allowed to access this API method. - `restricted_action` — The user is not allowed to access this API method. See https://docs.slack.dev/reference/methods/admin.functions.list */
2315
- export const listFunctions = /*@__PURE__*/ API.makePaginated(() => ({
2316
- input: ListFunctionsRequest,
2317
- output: ListFunctionsResponse,
2318
- errors: [SlackError, SlackRateLimited],
2319
- protocol: SlackProtocol,
2320
- retry: Retry.Retry,
2321
- pagination: {
2322
- mode: "cursor",
2323
- inputToken: "cursor",
2324
- outputToken: "response_metadata.next_cursor",
2325
- items: "functions",
2326
- pageSize: "limit",
2327
- },
2328
- }), slackPaginate);
2329
- /** List all IDP Groups linked to a channel Required scopes — user: `admin.conversations:read` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `channel_not_found` — `channel_id` wasn't found. - `feature_not_enabled` — Feature not enabled - `invalid_auth` — Token does not belong to enterprise or team id passed in not part of this enterprise - `invalid_channel` — The requested channel couldn’t be linked to an IDP group. It might be a public channel or an externally-shared channel. - `not_an_admin` — This token doesn't belong to an Org Admin or Owner. - `team_not_found` — `team_id` wasn't found. See https://docs.slack.dev/reference/methods/admin.conversations.restrictAccess.listGroups */
2330
- export const listGroups = /*@__PURE__*/ API.make(() => ({
2331
- input: ListGroupsRequest,
2332
- output: ListGroupsResponse,
2333
- errors: [SlackError, SlackRateLimited],
2334
- protocol: SlackProtocol,
2335
- retry: Retry.Retry,
2336
- }));
2337
- /** List all pending workspace invite requests. Required scopes — user: `admin.invites:read` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `feature_not_enabled` — The Invite Request Admin APIs feature is not enabled - `missing_scope` — This token doesn't have the scope required. - `not_an_admin` — This token doesn't have admin privileges. - `team_not_found` — The `team_id` specified wasn't found. See https://docs.slack.dev/reference/methods/admin.inviteRequests.list */
2338
- export const listInviteRequests = /*@__PURE__*/ API.makePaginated(() => ({
2339
- input: ListInviteRequestsRequest,
2340
- output: ListInviteRequestsResponse,
2341
- errors: [SlackError, SlackRateLimited],
2342
- protocol: SlackProtocol,
2343
- retry: Retry.Retry,
2344
- pagination: {
2345
- mode: "cursor",
2346
- inputToken: "cursor",
2347
- outputToken: "response_metadata.next_cursor",
2348
- items: "invite_requests",
2349
- pageSize: "limit",
2350
- },
2351
- }), slackPaginate);
2352
- /** List all approved workspace invite requests. Required scopes — user: `admin.invites:read` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `feature_not_enabled` — The Invite Requests admin APIs feature is not enabled - `missing_scope` — This token doesn't have the scope required. - `not_an_admin` — This token doesn't have admin privileges. - `team_not_found` — The `team_id` specified wasn't found. See https://docs.slack.dev/reference/methods/admin.inviteRequests.approved.list */
2353
- export const listInviteRequestsApproved = /*@__PURE__*/ API.makePaginated(() => ({
2354
- input: ListInviteRequestsApprovedRequest,
2355
- output: ListInviteRequestsApprovedResponse,
2356
- errors: [SlackError, SlackRateLimited],
2357
- protocol: SlackProtocol,
2358
- retry: Retry.Retry,
2359
- pagination: {
2360
- mode: "cursor",
2361
- inputToken: "cursor",
2362
- outputToken: "response_metadata.next_cursor",
2363
- items: "approved_requests",
2364
- pageSize: "limit",
2365
- },
2366
- }), slackPaginate);
2367
- /** List all denied workspace invite requests. Required scopes — user: `admin.invites:read` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `feature_not_enabled` — The Invite Request admin APIs feature is not enabled - `missing_scope` — This token doesn't have the scope required. - `not_an_admin` — This token doesn't have admin privileges. - `team_not_found` — The `team_id` specified wasn't found. See https://docs.slack.dev/reference/methods/admin.inviteRequests.denied.list */
2368
- export const listInviteRequestsDenied = /*@__PURE__*/ API.makePaginated(() => ({
2369
- input: ListInviteRequestsDeniedRequest,
2370
- output: ListInviteRequestsDeniedResponse,
2371
- errors: [SlackError, SlackRateLimited],
2372
- protocol: SlackProtocol,
2373
- retry: Retry.Retry,
2374
- pagination: {
2375
- mode: "cursor",
2376
- inputToken: "cursor",
2377
- outputToken: "response_metadata.next_cursor",
2378
- items: "denied_requests",
2379
- pageSize: "limit",
2380
- },
2381
- }), slackPaginate);
2382
- /** List all disconnected channels—i.e., channels that were once connected to other workspaces and then disconnected—and the corresponding original channel IDs for key revocation with EKM. Required scopes — user: `admin.conversations:read` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `invalid_cursor` — Invalid cursor. - `invalid_limit` — The value passed for `limit` was not valid. - `not_an_admin` — This method is only accessible by Org owners and Admins. - `not_enabled` — The API endpoint is not enabled for your team. - `restricted_action` — The caller of this API is not allowed to perform this operation. - `unsupported_arguments` — The provided method arguments are not supported. See https://docs.slack.dev/reference/methods/admin.conversations.ekm.listOriginalConnectedChannelInfo */
2383
- export const listOriginalConnectedChannelInfo = /*@__PURE__*/ API.makePaginated(() => ({
2384
- input: ListOriginalConnectedChannelInfoRequest,
2385
- output: ListOriginalConnectedChannelInfoResponse,
2386
- errors: [SlackError, SlackRateLimited],
2387
- protocol: SlackProtocol,
2388
- retry: Retry.Retry,
2389
- pagination: {
2390
- mode: "cursor",
2391
- inputToken: "cursor",
2392
- outputToken: "response_metadata.next_cursor",
2393
- items: "channels",
2394
- pageSize: "limit",
2395
- },
2396
- }), slackPaginate);
2397
- /** List all teams in an Enterprise organization Required scopes — user: `admin.teams:read` Rate limit tier: 3 Method-specific errors (the `error` slug on the SlackError): - `feature_not_enabled` — The Admin APIs feature is not enabled for this team. - `invalid_cursor` — Invalid cursor. - `invalid_limit` — Value passed for `limit` was not valid. - `not_an_admin` — This method is only accessible by org owners and admins. See https://docs.slack.dev/reference/methods/admin.teams.list */
2398
- export const listTeams = /*@__PURE__*/ API.makePaginated(() => ({
2399
- input: ListTeamsRequest,
2400
- output: ListTeamsResponse,
2401
- errors: [SlackError, SlackRateLimited],
2402
- protocol: SlackProtocol,
2403
- retry: Retry.Retry,
2404
- pagination: {
2405
- mode: "cursor",
2406
- inputToken: "cursor",
2407
- outputToken: "response_metadata.next_cursor",
2408
- items: "teams",
2409
- pageSize: "limit",
2410
- },
2411
- }), slackPaginate);
2412
- /** List all of the admins on a given workspace. Required scopes — user: `admin.teams:read` Rate limit tier: 3 Method-specific errors (the `error` slug on the SlackError): - `feature_not_enabled` — The Admin APIs feature is not enabled for this team. - `invalid_auth` — The given token is not authorized for the requested `team_id`. - `invalid_cursor` — Invalid cursor. - `invalid_limit` — Limit must be between 1 and 1000 inclusive. - `not_an_admin` — This method is only accessible by org owners and admins. - `team_not_found` — `team_id` was not found. See https://docs.slack.dev/reference/methods/admin.teams.admins.list */
2413
- export const listTeamsAdmins = /*@__PURE__*/ API.makePaginated(() => ({
2414
- input: ListTeamsAdminsRequest,
2415
- output: ListTeamsAdminsResponse,
2416
- errors: [SlackError, SlackRateLimited],
2417
- protocol: SlackProtocol,
2418
- retry: Retry.Retry,
2419
- pagination: {
2420
- mode: "cursor",
2421
- inputToken: "cursor",
2422
- outputToken: "response_metadata.next_cursor",
2423
- items: "admin_ids",
2424
- pageSize: "limit",
2425
- },
2426
- }), slackPaginate);
2427
- /** List all of the owners on a given workspace. Required scopes — user: `admin.teams:read` Rate limit tier: 3 Method-specific errors (the `error` slug on the SlackError): - `feature_not_enabled` — The Admin APIs feature is not enabled for this team. - `invalid_auth` — The given token is not authorized for the requested team. - `invalid_cursor` — Invalid cursor. - `not_an_admin` — This method is only accessible by org owners and admins. - `team_not_found` — `team_id was not found. See https://docs.slack.dev/reference/methods/admin.teams.owners.list */
2428
- export const listTeamsOwners = /*@__PURE__*/ API.makePaginated(() => ({
2429
- input: ListTeamsOwnersRequest,
2430
- output: ListTeamsOwnersResponse,
2431
- errors: [SlackError, SlackRateLimited],
2432
- protocol: SlackProtocol,
2433
- retry: Retry.Retry,
2434
- pagination: {
2435
- mode: "cursor",
2436
- inputToken: "cursor",
2437
- outputToken: "response_metadata.next_cursor",
2438
- items: "owner_ids",
2439
- pageSize: "limit",
2440
- },
2441
- }), slackPaginate);
2442
- /** List users on a workspace Required scopes — user: `admin.users:read` Rate limit tier: 4 Method-specific errors (the `error` slug on the SlackError): - `feature_not_enabled` — The Admin APIs feature is not enabled for this team. - `invalid_arguments` — The passed arguments were invalid. - `invalid_auth` — This request could not be authorized. - `invalid_cursor` — The passed cursor could not be validated. - `team_not_found` — `team_id` was not found. - `include_deactivated_user_workspaces_invalid` — `include_deactivated_user_workspaces` only applies with org token and no team_id. See https://docs.slack.dev/reference/methods/admin.users.list */
2443
- export const listUsers = /*@__PURE__*/ API.makePaginated(() => ({
2444
- input: ListUsersRequest,
2445
- output: ListUsersResponse,
2446
- errors: [SlackError, SlackRateLimited],
2447
- protocol: SlackProtocol,
2448
- retry: Retry.Retry,
2449
- pagination: {
2450
- mode: "cursor",
2451
- inputToken: "cursor",
2452
- outputToken: "response_metadata.next_cursor",
2453
- items: "users",
2454
- pageSize: "limit",
2455
- },
2456
- }), slackPaginate);
2457
- /** List active user sessions for an organization Required scopes — user: `admin.users:read` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `admin_unauthorized` — The owner of this token isn't authorized to list sessions. - `bots_not_allowed` — Bot sessions are not listed by this method. - `feature_not_enabled` — This method is only available to Enterprise customers. - `invalid_auth` — The provided token doesn't have access to this endpoint. - `invalid_cursor` — The cursor passed was invalid. - `no_active_sessions` — No active sessions were found. - `not_an_admin` — The owner of this token isn't an Org Owner or Admin. - `missing_team` — A `team_id` must be provided with a `user_id`. - `missing_user` — A `user_id` must be provided with a `team_id`. - `team_not_found` — There was an error finding the requested workspace. - `unknown_method` — This method is currently not available. - `user_not_found` — There was an error finding the requested user. See https://docs.slack.dev/reference/methods/admin.users.session.list */
2458
- export const listUsersSession = /*@__PURE__*/ API.makePaginated(() => ({
2459
- input: ListUsersSessionRequest,
2460
- output: ListUsersSessionResponse,
2461
- errors: [SlackError, SlackRateLimited],
2462
- protocol: SlackProtocol,
2463
- retry: Retry.Retry,
2464
- pagination: {
2465
- mode: "cursor",
2466
- inputToken: "cursor",
2467
- outputToken: "response_metadata.next_cursor",
2468
- items: "active_sessions",
2469
- pageSize: "limit",
2470
- },
2471
- }), slackPaginate);
2472
- /** Look up the app config for connectors by their IDs Required scopes — user: `admin.apps:read` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `missing_args` — Either app_ids or rich_link_preview_types must be provided See https://docs.slack.dev/reference/methods/admin.apps.config.lookup */
2473
- export const lookupAppsConfig = /*@__PURE__*/ API.make(() => ({
2474
- input: LookupAppsConfigRequest,
2475
- output: LookupAppsConfigResponse,
2476
- errors: [SlackError, SlackRateLimited],
2477
- protocol: SlackProtocol,
2478
- retry: Retry.Retry,
2479
- }));
2480
- /** Returns channels on the given team using the filters. Required scopes — user: `admin.conversations:read` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `internal_error` — Something unexpected happened, try again in a little bit. Sorry for that! - `feature_not_enabled` — The feature is not enabled - `no_valid_teams` — The team_ids argument doesn't contain any valid teams - `invalid_cursor` — Value passed for `cursor` was not valid or is no longer valid. See https://docs.slack.dev/reference/methods/admin.conversations.lookup */
2481
- export const lookupConversation = /*@__PURE__*/ API.makePaginated(() => ({
2482
- input: LookupConversationRequest,
2483
- output: LookupConversationResponse,
2484
- errors: [SlackError, SlackRateLimited],
2485
- protocol: SlackProtocol,
2486
- retry: Retry.Retry,
2487
- pagination: {
2488
- mode: "cursor",
2489
- inputToken: "cursor",
2490
- outputToken: "response_metadata.next_cursor",
2491
- items: "channel_ids",
2492
- pageSize: "limit",
2493
- },
2494
- }), slackPaginate);
2495
- /** Lookup the visibility of multiple Slack functions and include the users if it is limited to particular named entities. Required scopes — user: `admin.workflows:read` Rate limit tier: 3 Method-specific errors (the `error` slug on the SlackError): - `access_denied` — This actor does not have access to the permissions on this resource. - `restricted_action` — User does not have access to this API. See https://docs.slack.dev/reference/methods/admin.functions.permissions.lookup */
2496
- export const lookupFunctionsPermissions = /*@__PURE__*/ API.make(() => ({
2497
- input: LookupFunctionsPermissionsRequest,
2498
- output: LookupFunctionsPermissionsResponse,
2499
- errors: [SlackError, SlackRateLimited],
2500
- protocol: SlackProtocol,
2501
- retry: Retry.Retry,
2502
- }));
2503
- /** Look up the permissions for a set of workflows Required scopes — user: `admin.workflows:read` Rate limit tier: 2 See https://docs.slack.dev/reference/methods/admin.workflows.permissions.lookup */
2504
- export const lookupWorkflowsPermissions = /*@__PURE__*/ API.make(() => ({
2505
- input: LookupWorkflowsPermissionsRequest,
2506
- output: LookupWorkflowsPermissionsResponse,
2507
- errors: [SlackError, SlackRateLimited],
2508
- protocol: SlackProtocol,
2509
- retry: Retry.Retry,
2510
- }));
2511
- /** List the permissions for using each trigger type. Required scopes — user: `client` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `restricted_action` — This actor does not have access to view the permissions on this resource - `trigger_type_id_not_found` — The given trigger type ID(s) do not map to valid trigger types See https://docs.slack.dev/reference/methods/admin.workflows.triggers.types.permissions.lookup */
2512
- export const lookupWorkflowsTriggersTypesPermissions = /*@__PURE__*/ API.make(() => ({
2513
- input: LookupWorkflowsTriggersTypesPermissionsRequest,
2514
- output: LookupWorkflowsTriggersTypesPermissionsResponse,
2515
- errors: [SlackError, SlackRateLimited],
2516
- protocol: SlackProtocol,
2517
- retry: Retry.Retry,
2518
- }));
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 */
2520
- export const removeAppsPermissions = /*@__PURE__*/ API.make(() => ({
2521
- input: RemoveAppsPermissionsRequest,
2522
- output: RemoveAppsPermissionsResponse,
2523
- errors: [SlackError, SlackRateLimited],
2524
- protocol: SlackProtocol,
2525
- retry: Retry.Retry,
2526
- }));
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 */
2528
- export const removeAssignments = /*@__PURE__*/ API.make(() => ({
2529
- input: RemoveAssignmentsRequest,
2530
- output: RemoveAssignmentsResponse,
2531
- errors: [SlackError, SlackRateLimited],
2532
- protocol: SlackProtocol,
2533
- retry: Retry.Retry,
2534
- }));
2535
- /** Remove one or more default channels from an org-level IDP group (user group). Required scopes — user: `admin.usergroups:write` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `channel_not_found` — At least one of the provided channel IDs could not be found, or one of those channels has a type that is not supported. - `feature_not_enabled` — The Admin APIs feature is not enabled for this workspace. - `invalid_auth` — The workspace specified is not part of this Enterprise organization. - `invalid_channels_limit` — The number of channel IDs passed in is larger than 100. - `not_an_admin` — The calling user cannot update the specified usergroup. - `not_an_enterprise` — The token passed in does not belong to an Enterprise organization. - `usergroup_not_found` — The IDP group provided was not found. - `internal_error` — There was an internal error processing this request—please retry. See https://docs.slack.dev/reference/methods/admin.usergroups.removeChannels */
2536
- export const removeChannels = /*@__PURE__*/ API.make(() => ({
2537
- input: RemoveChannelsRequest,
2538
- output: RemoveChannelsResponse,
2539
- errors: [SlackError, SlackRateLimited],
2540
- protocol: SlackProtocol,
2541
- retry: Retry.Retry,
2542
- }));
2543
- /** This API endpoint can be used by any admin to remove a conversation's retention policy. Required scopes — user: `admin.conversations:write` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `channel_not_found` — Value given for `channel_id` was invalid. - `channel_type_not_supported` — Value given for `channel_id` was a #general channel. - `could_not_remove_retention` — The retention policy could not be removed. - `default_org_wide_channel` — The channel given is a default org-wide channel. - `feature_not_enabled` — The Admin APIs feature is not enabled for this team. - `not_an_admin` — The token provided is not associated with an admin. - `restricted_action` — A team preference prevents the authenticated user from modifying the retention policy of this channel. - `retention_override_not_allowed` — The current retention policy disallows modifying the retention policy of this channel. See https://docs.slack.dev/reference/methods/admin.conversations.removeCustomRetention */
2544
- export const removeCustomRetention = /*@__PURE__*/ API.make(() => ({
2545
- input: RemoveCustomRetentionRequest,
2546
- output: RemoveCustomRetentionResponse,
2547
- errors: [SlackError, SlackRateLimited],
2548
- protocol: SlackProtocol,
2549
- retry: Retry.Retry,
2550
- }));
2551
- /** Remove an emoji across an Enterprise organization Required scopes — user: `admin.teams:write` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `emoji_not_found` — Value passed for `name` was invalid. - `failed_to_remove_emoji` — Failed to remove the specified emoji. - `failure_removing_emoji` — This emoji could not be removed. It might be part of the standard Unicode set or the default Slack package. - `feature_not_enabled` — The Admin APIs feature is not enabled for this team. - `not_an_admin` — This method is only accessible by org owners and Admins. See https://docs.slack.dev/reference/methods/admin.emoji.remove */
2552
- export const removeEmoji = /*@__PURE__*/ API.make(() => ({
2553
- input: RemoveEmojiRequest,
2554
- output: RemoveEmojiResponse,
2555
- errors: [SlackError, SlackRateLimited],
2556
- protocol: SlackProtocol,
2557
- retry: Retry.Retry,
2558
- }));
2559
- /** Remove specified entities from a specified authentication policy. Required scopes — user: `admin.users:write` Rate limit tier: 4 Method-specific errors (the `error` slug on the SlackError): - `entity_not_found` — At least one `entity_id` was not found - `feature_not_enabled` — This method is only available to Enterprise customers. - `internal_error` — There was an internal error processing this request—please retry. - `invalid_arguments` — Required arguments either were not provided or contain invalid values. - `invalid_auth` — The provided token doesn't have access to this endpoint. - `not_an_admin` — This method is only accessible by Org Owners and Admins. - `policy_not_found` — The `policy_name` could not be found. - `ratelimited` — The rate limit for this endpoint has been reached. See https://docs.slack.dev/reference/methods/admin.auth.policy.removeEntities */
2560
- export const removeEntities = /*@__PURE__*/ API.make(() => ({
2561
- input: RemoveEntitiesRequest,
2562
- output: RemoveEntitiesResponse,
2563
- errors: [SlackError, SlackRateLimited],
2564
- protocol: SlackProtocol,
2565
- retry: Retry.Retry,
2566
- }));
2567
- /** Remove a linked IDP group linked from a private channel Required scopes — user: `admin.conversations:write` Rate limit tier: 1 Method-specific errors (the `error` slug on the SlackError): - `channel_not_found` — `channel_id` can’t be found. - `failed_to_remove_group_users` — Returned when could not remove the users in the channel of the group being removed - `failed_to_unlink_channel` — Removing the link in the database failed. Please retry. - `feature_not_enabled` — Feature not enabled - `group_not_found` — `group_id` can’t be found. - `invalid_auth` — Token does not belong to enterprise or team id passed in not part of this enterprise - `invalid_channel` — The channel could not be linked to an IDP group (i.e., it's a public channel or external shared channel). - `link_not_found` — There was no link found between the specified channel and the IDP group. - `not_an_admin` — This token does not belong to an Org Admin or Owner. - `team_not_found` — `team_id` can’t be found. - `unable_to_unlink_idp_group_and_channel` — The IDP group and channel cannot be unlinked. See https://docs.slack.dev/reference/methods/admin.conversations.restrictAccess.removeGroup */
2568
- export const removeGroup = /*@__PURE__*/ API.make(() => ({
2569
- input: RemoveGroupRequest,
2570
- output: RemoveGroupResponse,
2571
- errors: [SlackError, SlackRateLimited],
2572
- protocol: SlackProtocol,
2573
- retry: Retry.Retry,
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
- }));
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 */
2584
- export const removeUser = /*@__PURE__*/ API.make(() => ({
2585
- input: RemoveUserRequest,
2586
- output: RemoveUserResponse,
2587
- errors: [SlackError, SlackRateLimited],
2588
- protocol: SlackProtocol,
2589
- retry: Retry.Retry,
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
- }));
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 */
2600
- export const removeWorkflowsCollaborator = /*@__PURE__*/ API.make(() => ({
2601
- input: RemoveWorkflowsCollaboratorRequest,
2602
- output: RemoveWorkflowsCollaboratorResponse,
2603
- errors: [SlackError, SlackRateLimited],
2604
- protocol: SlackProtocol,
2605
- retry: Retry.Retry,
2606
- }));
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 */
2608
- export const renameConversation = /*@__PURE__*/ API.make(() => ({
2609
- input: RenameConversationRequest,
2610
- output: RenameConversationResponse,
2611
- errors: [SlackError, SlackRateLimited],
2612
- protocol: SlackProtocol,
2613
- retry: Retry.Retry,
2614
- }));
2615
- /** Rename an emoji. Required scopes — user: `admin.teams:write` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `cannot_resolve_alias` — The alias emoji could not be resolved - `error_bad_name_i18n` — Value passed for `new_name` was invalid. - `error_invalid_emoji_to_rename` — Value passed for `name` was invalid. - `error_missing_name` — Value passed for `name` is missing or empty. - `error_name_taken` — Value passed for `name` already exists. - `error_name_taken_i18n` — The name has already been taken by another emoji, in the international set. Emoji must have unique names. - `failed_to_fetch_active_team` — There are no active teams on the org and we need at least one. - `failed_to_rename_emoji` — The emoji could not be renamed. - `feature_not_enabled` — The Admin APIs feature is not enabled for this team. - `not_an_admin` — This method is only accessible by org owners and Admins. See https://docs.slack.dev/reference/methods/admin.emoji.rename */
2616
- export const renameEmoji = /*@__PURE__*/ API.make(() => ({
2617
- input: RenameEmojiRequest,
2618
- output: RenameEmojiResponse,
2619
- errors: [SlackError, SlackRateLimited],
2620
- protocol: SlackProtocol,
2621
- retry: Retry.Retry,
2622
- }));
2623
- /** Enqueues an asynchronous job to wipe all valid sessions on all devices for a given list of users Required scopes — user: `admin.users:write` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `cannot_reset_bot` — Cannot reset bot users - `cannot_reset_primary_owner` — Only primary owner can reset primary owner's sessions - `failed_for_some_users` — Some user ids failed to have their session invalidated. Details in extended comments - `feature_not_enabled` — This method is not available for this product level - `internal_error` — There was an internal error processing this request! Please try again. - `invalid_auth` — The token doesn't have access to this endpoint - `not_an_admin` — This method is only accessible by org/compliance team owners and admins - `session_reset_not_allowed` — Only primary owner can reset primary owner's sessions - `unknown_method` — This method is currently not available - `user_not_found` — Error fetching user - `user_session_reset_failed` — There was an error starting the session reset. Try again. - `restricted_action` — Restricted action. See https://docs.slack.dev/reference/methods/admin.users.session.resetBulk */
2624
- export const resetBulk = /*@__PURE__*/ API.make(() => ({
2625
- input: ResetBulkRequest,
2626
- output: ResetBulkResponse,
2627
- errors: [SlackError, SlackRateLimited],
2628
- protocol: SlackProtocol,
2629
- retry: Retry.Retry,
2630
- }));
2631
- /** Wipes all valid sessions on all devices for a given user Required scopes — user: `admin.users:write` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `cannot_reset_bot` — Cannot reset bot users - `cannot_reset_primary_owner` — Only primary owner can reset primary owner's sessions - `feature_not_enabled` — This method is not available for this product level - `internal_error` — There was an internal error processing this request! Please try again. - `invalid_auth` — The token doesn't have access to this endpoint - `not_an_admin` — This method is only accessible by org/compliance team owners and admins - `unknown_method` — This method is currently not available - `user_not_found` — Error fetching user - `user_session_reset_failed` — There was an error starting the session reset. Try again. See https://docs.slack.dev/reference/methods/admin.users.session.reset */
2632
- export const resetUsersSession = /*@__PURE__*/ API.make(() => ({
2633
- input: ResetUsersSessionRequest,
2634
- output: ResetUsersSessionResponse,
2635
- errors: [SlackError, SlackRateLimited],
2636
- protocol: SlackProtocol,
2637
- retry: Retry.Retry,
2638
- }));
2639
- /** Search for public or private channels in an Enterprise organization. Required scopes — user: `admin.conversations:read` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `connected_team_passed_in_is_not_top_level_team` — One of the orgs provided in the external connected teams filter is not a top level team. - `external_team_not_connected_to_this_org` — One of the teams provided in the external connected teams filter is not connected to the org. - `feature_not_enabled` — The token provided doesn't have access to this method. - `invalid_auth` — The token provided does not belong to an Enterprise organization, or a specified workspace wasn't part of this Enterprise. - `invalid_cursor` — The provided cursor is not valid, often due to not urlencoding query parameters. - `invalid_search_channel_type` — An invalid `search_channel_types` arg was passed. Make sure there are no spaces between your args and that each is one of the enumerated options listed above. - `invalid_sort` — The provided `sort` argument wasn't valid. - `invalid_sort_dir` — The provided `sort_dir` argument wasn't valid. - `not_allowed` — The authenticated user does not have the permission to call this method. - `not_an_admin` — The token provided is not associated with an Org Admin or Owner. - `not_an_enterprise` — This endpoint can only be called by an Enterprise organization. - `team_not_found` — One of the workspaces provided in the list wasn't found. See https://docs.slack.dev/reference/methods/admin.conversations.search */
2640
- export const searchConversation = /*@__PURE__*/ API.makePaginated(() => ({
2641
- input: SearchConversationRequest,
2642
- output: SearchConversationResponse,
2643
- errors: [SlackError, SlackRateLimited],
2644
- protocol: SlackProtocol,
2645
- retry: Retry.Retry,
2646
- pagination: {
2647
- mode: "cursor",
2648
- inputToken: "cursor",
2649
- outputToken: "response_metadata.next_cursor",
2650
- items: "conversations",
2651
- pageSize: "limit",
2652
- },
2653
- }), slackPaginate);
2654
- /** Search workflows within the team or enterprise Required scopes — user: `admin.workflows:read` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `invalid_cursor` — Value passed for `cursor` was not valid or is no longer valid. - `not_allowed` — The user is not allowed to access this API method. See https://docs.slack.dev/reference/methods/admin.workflows.search */
2655
- export const searchWorkflow = /*@__PURE__*/ API.makePaginated(() => ({
2656
- input: SearchWorkflowRequest,
2657
- output: SearchWorkflowResponse,
2658
- errors: [SlackError, SlackRateLimited],
2659
- protocol: SlackProtocol,
2660
- retry: Retry.Retry,
2661
- pagination: {
2662
- mode: "cursor",
2663
- inputToken: "cursor",
2664
- outputToken: "response_metadata.next_cursor",
2665
- items: "workflows",
2666
- pageSize: "limit",
2667
- },
2668
- }), slackPaginate);
2669
- /** Set an existing regular user or owner to be a workspace or org admin. Required scopes — user: `admin.users:write` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `cannot_modify_primary_owner` — The primary owner cannot be modified. - `failed_to_set_user_to_admin` — Designating this user as an admin failed. - `failed_to_set_admin_on_workspaces` — Failed to set the user as an admin on all workspaces. - `feature_not_enabled` — The Admin APIs feature is not enabled for this team. - `invalid_permissions` — This method is only accessible by org owners and admins. - `invalid_role_for_user` — The user cannot be made into an admin. - `not_an_admin` — This method can only be accessed by org owners and admins. - `team_not_found` — `team_id` was not found. - `user_not_found` — The user was not found. See https://docs.slack.dev/reference/methods/admin.users.setAdmin */
2670
- export const setAdmin = /*@__PURE__*/ API.make(() => ({
2671
- input: SetAdminRequest,
2672
- output: SetAdminResponse,
2673
- errors: [SlackError, SlackRateLimited],
2674
- protocol: SlackProtocol,
2675
- retry: Retry.Retry,
2676
- }));
2677
- /** Set the app config for a connector Required scopes — user: `admin.apps:write` Rate limit tier: 3 Method-specific errors (the `error` slug on the SlackError): - `access_denied` — This actor does not have access to the permissions on this resource. - `no_domains_provided` — At least one allowed domain must be specified if populating the argument - `too_many_domains_provided` — Too many domains provided. Please provide 50 or less for each type of domain - `url_restriction_not_supported` — URL restriction is not supported for this app. - `invalid_domains` — At least one URL or email is invalid - `invalid_app` — App is invalid - `invalid_workflow_auth_strategy` — workflow auth strategy is invalid - `restricted_plan_level` — The given parameter is not supported on this team. - `unknown_method` — This method does not exist. See https://docs.slack.dev/reference/methods/admin.apps.config.set */
2678
- export const setAppsConfig = /*@__PURE__*/ API.make(() => ({
2679
- input: SetAppsConfigRequest,
2680
- output: SetAppsConfigResponse,
2681
- errors: [SlackError, SlackRateLimited],
2682
- protocol: SlackProtocol,
2683
- retry: Retry.Retry,
2684
- }));
2685
- /** Set the access control permission for who can use an MCP server Required scopes — user: `admin.apps:write` Rate limit tier: 3 Method-specific errors (the `error` slug on the SlackError): - `restricted_action` — User does not have permission to perform this action. - `invalid_auth` — Invalid authorization token - `app_not_found` — This app does not exist. - `server_not_found` — The specified MCP server does not exist for this app. - `not_an_enterprise` — This feature is only available on Enterprise Grid plans. - `feature_not_enabled` — The MCP server ACL feature is not enabled for this team. - `invalid_permission_type` — The permission_type value is not valid. - `named_entities_cannot_be_empty` — Must pass at least one valid named entity when permission_type is named_entities or named_entities_exclude. - `no_valid_named_entities` — None of the provided named entities were valid. - `too_many_named_entities` — Too many named entities provided. - `user_not_found` — One or more user IDs are not valid. - `usergroup_not_found` — One or more usergroup IDs are not valid. - `server_acl_type_broader_than_app` — The chosen permission type is broader than the app-level ACL allows. - `server_acl_entities_not_in_scope` — One or more entities in the server ACL are not in scope of the app-level ACL. See https://docs.slack.dev/reference/methods/admin.apps.mcp.servers.permissions.set */
2686
- export const setAppsMcpServersPermissions = /*@__PURE__*/ API.make(() => ({
2687
- input: SetAppsMcpServersPermissionsRequest,
2688
- output: SetAppsMcpServersPermissionsResponse,
2689
- errors: [SlackError, SlackRateLimited],
2690
- protocol: SlackProtocol,
2691
- retry: Retry.Retry,
2692
- }));
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 */
2694
- export const setAppsPermissions = /*@__PURE__*/ API.make(() => ({
2695
- input: SetAppsPermissionsRequest,
2696
- output: SetAppsPermissionsResponse,
2697
- errors: [SlackError, SlackRateLimited],
2698
- protocol: SlackProtocol,
2699
- retry: Retry.Retry,
2700
- }));
2701
- /** Set the posting permissions for a public or private channel. Required scopes — user: `admin.conversations:write` Rate limit tier: 3 Method-specific errors (the `error` slug on the SlackError): - `channel_mention_sync_required` — If setting channel mention restriction prefs, both mention prefs must be passed and they must be the same value. - `channel_not_found` — Value passed for `channel` was invalid. - `channel_type_not_supported` — Value given for `channel_id` was a #general channel. - `could_not_set_channel_pref` — Setting the preference or permission failed. - `default_org_wide_channel` — Returned when you try to modify a default org wide channel. - `feature_not_enabled` — The Admin APIs feature is not enabled for this team. - `invalid_value` — Value passed for the preferences are invalid - `missing_scope` — The calling token is not granted the necessary scopes to complete this operation. - `not_an_admin` — The token provided is not associated with an org admin. - `restricted_action` — A workspace preference prevents the authenticated user from archiving. See https://docs.slack.dev/reference/methods/admin.conversations.setConversationPrefs */
2702
- export const setConversationPrefs = /*@__PURE__*/ API.make(() => ({
2703
- input: SetConversationPrefsRequest,
2704
- output: SetConversationPrefsResponse,
2705
- errors: [SlackError, SlackRateLimited],
2706
- protocol: SlackProtocol,
2707
- retry: Retry.Retry,
2708
- }));
2709
- /** This API endpoint can be used by any admin to set a conversation's retention policy. Required scopes — user: `admin.conversations:write` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `channel_not_found` — Value given for `channel_id` was invalid. - `channel_type_not_supported` — Value given for `channel_id` was a group dm, direct message, or #general channel. - `could_not_set_retention` — The retention policy could not be set. - `default_org_wide_channel` — The channel given is a default org-wide channel. - `feature_not_enabled` — The Admin APIs feature is not enabled for this team. - `invalid_duration` — Retention `duration_days` must be an integer greater than 0 days and less than 36500 days (100 years). - `not_an_admin` — The token provided is not associated with an admin. - `restricted_action` — A team preference prevents the authenticated user from modifying the retention policy of this channel. - `retention_override_not_allowed` — The current retention policy disallows modifying the retention policy of this channel. See https://docs.slack.dev/reference/methods/admin.conversations.setCustomRetention */
2710
- export const setCustomRetention = /*@__PURE__*/ API.make(() => ({
2711
- input: SetCustomRetentionRequest,
2712
- output: SetCustomRetentionResponse,
2713
- errors: [SlackError, SlackRateLimited],
2714
- protocol: SlackProtocol,
2715
- retry: Retry.Retry,
2716
- }));
2717
- /** Set the default channels of a workspace. Required scopes — user: `admin.teams:write` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `failed_to_set_default_channels` — We encountered an error while trying to set the default channel. - `feature_not_enabled` — The Admin APIs feature is not enabled for this team. - `invalid_auth` — The given token is not authorized for the requested `team_id`. - `not_an_admin` — This method is only accessible by org owners and admins. - `one_or_more_invalid_channels` — One or more of the passed channel IDs was invalid. - `restricted_action` — The actor does not have admin permissions for the team in context - `team_not_found` — `team_id` was not found. See https://docs.slack.dev/reference/methods/admin.teams.settings.setDefaultChannels */
2718
- export const setDefaultChannels = /*@__PURE__*/ API.make(() => ({
2719
- input: SetDefaultChannelsRequest,
2720
- output: SetDefaultChannelsResponse,
2721
- errors: [SlackError, SlackRateLimited],
2722
- protocol: SlackProtocol,
2723
- retry: Retry.Retry,
2724
- }));
2725
- /** Set the description of a given workspace. Required scopes — user: `admin.teams:write` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `failed_to_set_description` — There was an error setting the description. - `feature_not_enabled` — The Admin APIs feature is not enabled for this team. - `team_not_found` — The requested `team_id` can't be found. See https://docs.slack.dev/reference/methods/admin.teams.settings.setDescription */
2726
- export const setDescription = /*@__PURE__*/ API.make(() => ({
2727
- input: SetDescriptionRequest,
2728
- output: SetDescriptionResponse,
2729
- errors: [SlackError, SlackRateLimited],
2730
- protocol: SlackProtocol,
2731
- retry: Retry.Retry,
2732
- }));
2733
- /** An API method that allows admins to set the discoverability of a given workspace Required scopes — user: `admin.teams:write` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `discoverability_setting_invalid` — The discovery setting must be set to one of `open`, `invite_only`, `closed`, or `unlisted`. - `failed_to_set_discoverability` — There was an error setting the discoverability of this workspace. - `feature_not_enabled` — The Admin APIs feature is not enabled for this team. - `team_not_found` — The `team_id` was not found. See https://docs.slack.dev/reference/methods/admin.teams.settings.setDiscoverability */
2734
- export const setDiscoverability = /*@__PURE__*/ API.make(() => ({
2735
- input: SetDiscoverabilityRequest,
2736
- output: SetDiscoverabilityResponse,
2737
- errors: [SlackError, SlackRateLimited],
2738
- protocol: SlackProtocol,
2739
- retry: Retry.Retry,
2740
- }));
2741
- /** Set an expiration for a guest user Required scopes — user: `admin.users:write` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `failed_looking_up_user` — We couldn't find the requested user. - `failed_to_set_expiration` — The expiration could not be set for the user. - `failed_to_validate_caller` — The token calling this method doesn't have permission to invite a user. - `failed_to_validate_expiration` — `expiration_ts` was invalid. - `failed_to_validate_team` — The team calling this method was invalid. - `feature_not_enabled` — The Admin APIs feature is not enabled for this team. - `invalid_arguments` — The passed arguments were invalid. - `invalid_auth` — This action could not be authorized. - `team_id_required_for_enterprise` — Team ID required. - `team_not_found` — `team_id` was not found. - `user_is_already_deleted` — The user has already been deleted and disabled. - `user_is_deactivated` — User has been deactivated. - `user_is_not_a_guest` — The passed user_id does not belong to a guest user. - `user_not_found` — The user could not be found. See https://docs.slack.dev/reference/methods/admin.users.setExpiration */
2742
- export const setExpiration = /*@__PURE__*/ API.make(() => ({
2743
- input: SetExpirationRequest,
2744
- output: SetExpirationResponse,
2745
- errors: [SlackError, SlackRateLimited],
2746
- protocol: SlackProtocol,
2747
- retry: Retry.Retry,
2748
- }));
2749
- /** Set the visibility of a Slack function and define the users or workspaces if it is set to named_entities. Required scopes — user: `admin.workflows:read` Rate limit tier: 3 Method-specific errors (the `error` slug on the SlackError): - `access_denied` — This actor does not have access to the permissions on this resource. - `function_not_found` — The referenced function does not exist. - `invalid_visibility` — Invalid value for visibility. - `invalid_permission_type` — Invalid value for permission type. - `invalid_permission` — Invalid value for permission - `unknown_method` — This method does not exist. - `invalid_setting` — The `app_collaborators` setting is not allowed for apps not owned by your team/org. - `restricted_action` — This actor does not have access to the permissions on this resource. See https://docs.slack.dev/reference/methods/admin.functions.permissions.set */
2750
- export const setFunctionsPermissions = /*@__PURE__*/ API.make(() => ({
2751
- input: SetFunctionsPermissionsRequest,
2752
- output: SetFunctionsPermissionsResponse,
2753
- errors: [SlackError, SlackRateLimited],
2754
- protocol: SlackProtocol,
2755
- retry: Retry.Retry,
2756
- }));
2757
- /** Sets the icon of a workspace. Required scopes — user: `admin.teams:write` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `failed_to_set_icon` — Setting the url in the database failed. This may be transient, please try again soon. - `feature_not_enabled` — The Admin APIs feature is not enabled for this team. - `invalid_auth` — The given token is not authorized for the requested `team_id`. - `invalid_url` — Invalid url. - `not_an_admin` — This method is only accessible by org owners and admins. - `team_not_found` — `team_id` was not found. See https://docs.slack.dev/reference/methods/admin.teams.settings.setIcon */
2758
- export const setIcon = /*@__PURE__*/ API.make(() => ({
2759
- input: SetIconRequest,
2760
- output: SetIconResponse,
2761
- errors: [SlackError, SlackRateLimited],
2762
- protocol: SlackProtocol,
2763
- retry: Retry.Retry,
2764
- }));
2765
- /** Set the name of a given workspace. Required scopes — user: `admin.teams:write` Rate limit tier: 3 Method-specific errors (the `error` slug on the SlackError): - `failed_to_set_name` — Returned when there is an error to set the name - `feature_not_enabled` — The Admin APIs feature is not enabled for this team. - `team_not_found` — Returned when team_id can’t be resolved See https://docs.slack.dev/reference/methods/admin.teams.settings.setName */
2766
- export const setName = /*@__PURE__*/ API.make(() => ({
2767
- input: SetNameRequest,
2768
- output: SetNameResponse,
2769
- errors: [SlackError, SlackRateLimited],
2770
- protocol: SlackProtocol,
2771
- retry: Retry.Retry,
2772
- }));
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 */
2774
- export const setOwner = /*@__PURE__*/ API.make(() => ({
2775
- input: SetOwnerRequest,
2776
- output: SetOwnerResponse,
2777
- errors: [SlackError, SlackRateLimited],
2778
- protocol: SlackProtocol,
2779
- retry: Retry.Retry,
2780
- }));
2781
- /** Set an existing guest user, admin user, or owner to be a regular user. Required scopes — user: `admin.users:write` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `cannot_set_org_admin_to_regular_at_workspace_level` — Org admins cannot be set to regular at the workspace level. Change their user type at the org level instead. - `cannot_set_this_guest_to_regular_at_team_level` — This guest cannot be set to regular because they are active on multiple workspaces. - `cannot_modify_primary_owner` — The primary owner cannot be modified. - `failed_to_set_user_to_regular` — Changing a user to a regular member failed. - `feature_not_enabled` — The Admin APIs feature is not enabled for this team. - `invalid_role_for_user` — The user's current role does not allow this change. - `not_an_admin` — This method can only be accessed by org owners and admins. - `team_not_found` — `team_id` was not found. - `user_not_found` — The requested user was not found. See https://docs.slack.dev/reference/methods/admin.users.setRegular */
2782
- export const setRegular = /*@__PURE__*/ API.make(() => ({
2783
- input: SetRegularRequest,
2784
- output: SetRegularResponse,
2785
- errors: [SlackError, SlackRateLimited],
2786
- protocol: SlackProtocol,
2787
- retry: Retry.Retry,
2788
- }));
2789
- /** Configure the user-level session settings—the session duration and what happens when the client closes—for one or more users. Required scopes — user: `admin.users:write` Rate limit tier: 4 Method-specific errors (the `error` slug on the SlackError): - `admin_unauthorized` — The token provided doesn't have permission to revoke a session. - `at_least_one_session_setting_required` — At least one session setting is required. - `bots_not_allowed` — Bot sessions are not listed by this method. - `feature_not_enabled` — This method is only available for Enterprise organizations. - `internal_error` — There was an internal error processing this request—please retry. - `invalid_arguments` — Required arguments either were not provided or contain invalid values. - `invalid_auth` — The token doesn't have access to this endpoint. - `not_an_admin` — This method is only accessible by Org Owners and Admins - `ratelimited` — The rate limit for this endpoint has been reached. - `unable_to_update_existing_sessions` — The session settings could not be applied to users' existing sessions. - `unknown_method` — This method is currently not available. - `user_not_found` — At least one of the requested users doesn't exist. See https://docs.slack.dev/reference/methods/admin.users.session.setSettings */
2790
- export const setSettings = /*@__PURE__*/ API.make(() => ({
2791
- input: SetSettingsRequest,
2792
- output: SetSettingsResponse,
2793
- errors: [SlackError, SlackRateLimited],
2794
- protocol: SlackProtocol,
2795
- retry: Retry.Retry,
2796
- }));
2797
- /** Set the workspaces in an Enterprise org that connect to a public or private channel. Required scopes — user: `admin.conversations:write` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `cannot_add_legacy_disconnected_channel_to_workspaces` — Cannot add legacy disconnected channel to workspaces - `cannot_move_local_channel` — This API cannot be used to move a local channel from one workspace to another. - `channel_cannot_be_unshared` — Channel cannot be unshared from this workspace. - `channel_not_found` — The channel wasn't found or isn't shared to this workspace. - `channel_type_not_supported` — The requested `channel_id` is not a supported type of channel. - `could_not_set_teams_for_channel` — The requested `channel_id` has not been shared with the target workspace. - `default_org_wide_channel` — Default org wide channel cannot be unshared from a workspace. - `externally_shared_or_disconnected_channel` — The channel is or was externally shared. - `invalid_channel_id` — `channel_id` was invalid. - `invalid_target_team` — Target workspace is invalid. - `managed_channel_not_supported` — Cannot unshare a managed channel - `name_taken` — The proposed new name for the channel is already in use within your organization. - `not_allowed_for_grid_workspace` — Slack Connect is not allowed for this Enterprise org workspace - `not_enabled` — The API endpoint is not enabled for your team. - `restricted_action` — The caller of this API is not allowed to perform this operation. - `too_many_target_teams` — Too many `target_team_ids` were provided. - `unsupported_arguments` — The provided method arguments are not supported. See https://docs.slack.dev/reference/methods/admin.conversations.setTeams */
2798
- export const setTeams = /*@__PURE__*/ API.make(() => ({
2799
- input: SetTeamsRequest,
2800
- output: SetTeamsResponse,
2801
- errors: [SlackError, SlackRateLimited],
2802
- protocol: SlackProtocol,
2803
- retry: Retry.Retry,
2804
- }));
2805
- /** Set the permissions for using a trigger type Required scopes — user: `client` Rate limit tier: 3 Method-specific errors (the `error` slug on the SlackError): - `invalid_named_entities` — Named entities visibility requires a valid set of named entities to be specified - `invalid_permission_type` — This permission type is invalid. - `invalid_permission_set` — This permission set is invalid. - `required_visibility` — Visibility is required on this resource. - `restricted_action` — This actor does not have access to the permissions on this resource. - `trigger_type_id_not_found` — The referenced trigger type ID does not exist. - `visibility_is_not_named_entities` — The visibility should be named entities when the user_ids, team_ids, or org_ids args are set See https://docs.slack.dev/reference/methods/admin.workflows.triggers.types.permissions.set */
2806
- export const setWorkflowsTriggersTypesPermissions = /*@__PURE__*/ API.make(() => ({
2807
- input: SetWorkflowsTriggersTypesPermissionsRequest,
2808
- output: SetWorkflowsTriggersTypesPermissionsResponse,
2809
- errors: [SlackError, SlackRateLimited],
2810
- protocol: SlackProtocol,
2811
- retry: Retry.Retry,
2812
- }));
2813
- /** Fetch information about settings in a workspace Required scopes — user: `admin.teams:read` Rate limit tier: 3 Method-specific errors (the `error` slug on the SlackError): - `failed_to_fetch_info` — There was an error fetching info for this workspace. - `feature_not_enabled` — The Admin APIs feature is not enabled for this team. - `team_not_found` — The `team_id` was not found. See https://docs.slack.dev/reference/methods/admin.teams.settings.info */
2814
- export const teamsSettingsInfo = /*@__PURE__*/ API.make(() => ({
2815
- input: TeamsSettingsInfoRequest,
2816
- output: TeamsSettingsInfoResponse,
2817
- errors: [SlackError, SlackRateLimited],
2818
- protocol: SlackProtocol,
2819
- retry: Retry.Retry,
2820
- }));
2821
- /** Unarchive a public or private channel. Required scopes — user: `admin.conversations:write` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `channel_not_archived` — The passed channel is not currently archived. - `channel_not_found` — The value passed for `channel_id` was invalid. - `channel_type_not_supported` — The value passed for `channel` was a DM, MPDM, or the 'general' channel - `could_not_unarchive_channel` — The channel could not be unarchived. - `default_org_wide_channel` — You can't unarchive a default org-wide channel. - `feature_not_enabled` — The token provided doesn't have access to this method. - `missing_scope` — The token provided doesn't have the required scopes. - `restricted_action` — A workspace preference prevents the authenticated user from unarchiving. See https://docs.slack.dev/reference/methods/admin.conversations.unarchive */
2822
- export const unarchiveConversation = /*@__PURE__*/ API.make(() => ({
2823
- input: UnarchiveConversationRequest,
2824
- output: UnarchiveConversationResponse,
2825
- errors: [SlackError, SlackRateLimited],
2826
- protocol: SlackProtocol,
2827
- retry: Retry.Retry,
2828
- }));
2829
- /** Uninstall an app from one or many workspaces, or an entire enterprise organization. Required scopes — user: `admin.apps:write` Rate limit tier: 1 Method-specific errors (the `error` slug on the SlackError): - `app_not_found` — The provided `app_id` was not found. - `can_not_uninstall` — This application can not be uninstalled via the API. - `enterprise_not_found` — The provided `enterprise_id` was not found. - `feature_not_enabled` — The Admin APIs feature is not enabled for this team. - `must_revoke_access` — Organization-deployed apps cannot be uninstalled from specific workspaces using this API. - `permission_denied` — You do not have permission to uninstall applications from the reqeusted org or workspaces. - `specify_enterprise_or_teams` — Provide exactly one of `enterprise_id` or `team_ids`. - `teams_not_found` — One or more of the provided `team_ids` were not found. - `too_many_teams` — Too many IDs are present in `team_ids`. - `restricted_action` — the user is not authorized to perform this action See https://docs.slack.dev/reference/methods/admin.apps.uninstall */
2830
- export const uninstallApp = /*@__PURE__*/ API.make(() => ({
2831
- input: UninstallAppRequest,
2832
- output: UninstallAppResponse,
2833
- errors: [SlackError, SlackRateLimited],
2834
- protocol: SlackProtocol,
2835
- retry: Retry.Retry,
2836
- }));
2837
- /** Unlink a Salesforce record from a channel Required scopes — user: `admin.conversations:manage_objects` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `channel_not_found` — Value passed for `channel` is invalid. - `restricted_action` — User does not have access to perform this action. - `invalid_name_specials` — Value passed for `name` contained unallowed special characters or upper case characters. - `name_taken` — A channel cannot be created with the given name. See https://docs.slack.dev/reference/methods/admin.conversations.unlinkObjects */
2838
- export const unlinkObjects = /*@__PURE__*/ API.make(() => ({
2839
- input: UnlinkObjectsRequest,
2840
- output: UnlinkObjectsResponse,
2841
- errors: [SlackError, SlackRateLimited],
2842
- protocol: SlackProtocol,
2843
- retry: Retry.Retry,
2844
- }));
2845
- /** Unpublish workflows within the team or enterprise Required scopes — user: `admin.workflows:write` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `not_allowed` — The user is not allowed to access this API method - `error_unpublishing_workflows` — There were one or more errors unpublishing workflows See https://docs.slack.dev/reference/methods/admin.workflows.unpublish */
2846
- export const unpublishWorkflow = /*@__PURE__*/ API.make(() => ({
2847
- input: UnpublishWorkflowRequest,
2848
- output: UnpublishWorkflowResponse,
2849
- errors: [SlackError, SlackRateLimited],
2850
- protocol: SlackProtocol,
2851
- retry: Retry.Retry,
2852
- }));
2853
- /** Update an existing Information Barrier Required scopes — user: `admin.barriers:write` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `barrier_already_exists` — There already exists another barrier restricting activity between two or more of your requested usergroups. - `barrier_not_found` — The barrier you're trying to update cannot be found. - `barriered_from_usergroups_not_found` — One or more of the ids passed in for barriered_from_usergroup_ids can’t be found. - `feature_not_enabled` — The information barrier feature is not enabled, please reach out to your CSM. - `invalid_restricted_subjects` — The restricted subjects provided are invalid or not currently supported. - `not_an_admin` — The token provided is not associated with an org admin. - `primary_usergroup_not_found` — The id passed in for primary_usergroup_id can’t be found. See https://docs.slack.dev/reference/methods/admin.barriers.update */
2854
- export const updateBarrier = /*@__PURE__*/ API.make(() => ({
2855
- input: UpdateBarrierRequest,
2856
- output: UpdateBarrierResponse,
2857
- errors: [SlackError, SlackRateLimited],
2858
- protocol: SlackProtocol,
2859
- retry: Retry.Retry,
2860
- }));
2861
- /** API to allow Enterprise org admins to write/overwrite the allow list of IP blocks and ASNs from the enterprise configuration. Required scopes — user: `admin` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `endpoint_unavailable` — The requested endpoint is currently unavailable. - `invalid_field_or_data` — user attempted to write and invalid field or data to the team config - `unable_to_process_post_request` — The user sent a malformed post request - `unsupported_action_describe` — The user specified describe action is unsupported - `unsupported_action_put` — The user specified put action is unsupported See https://docs.slack.dev/reference/methods/admin.audit.anomaly.allow.updateItem */
2862
- export const updateItem = /*@__PURE__*/ API.make(() => ({
2863
- input: UpdateItemRequest,
2864
- output: UpdateItemResponse,
2865
- errors: [SlackError, SlackRateLimited],
2866
- protocol: SlackProtocol,
2867
- retry: Retry.Retry,
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
- }));
2885
- //# sourceMappingURL=admin.js.map
10
+ const __0 = __L.at;
11
+ const __1 = T.Http;
12
+ const __2 = T.Query;
13
+ const __3 = S.String;
14
+ const __4 = S.Struct;
15
+ const __5 = S.suspend;
16
+ const __6 = S.Boolean;
17
+ const __7 = S.optional;
18
+ const __8 = S.Array;
19
+ const __9 = S.Number;
20
+ const __10 = S.Unknown;
21
+ const __11 = T.RawResponseRoot;
22
+ const __12 = S.Record;
23
+
24
+ export const addAlias = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#6:0,errors:[$7,$8],protocol:$9,retry:$10};$5(>2)@"AddAliasRequest";$4({name:$3.pipe($2()),alias_for:$3.pipe($2())}).pipe($1({method:"GET",uri:"/admin.emoji.addAlias",code:200}))', [__0, __1, __2, __3, __4, __5, __d0, SlackError, SlackRateLimited, SlackProtocol, Retry.Retry]] : API.call(addAlias, i));
25
+
26
+ export const addAppsPermissions = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#7:0,errors:[$8,$9],protocol:$10,retry:$11};$6(>2)@"AddAppsPermissionsRequest";$5({app_id:$2,user_ids:$4(#3:0),usergroup_ids:$4(#3:0),channel_ids:$4(#3:0)}).pipe($1({method:"POST",uri:"/admin.apps.permissions.add",code:200}))', [__0, __1, __3, __d1, __7, __4, __5, __d0, SlackError, SlackRateLimited, SlackProtocol, Retry.Retry]] : API.call(addAppsPermissions, i));
27
+
28
+ export const addAssignments = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#6:0,errors:[$7,$8],protocol:$9,retry:$10};$5(>2)@"AddAssignmentsRequest";$4({role_id:$2,entity_ids:#3:0,user_ids:#3:0}).pipe($1({method:"POST",uri:"/admin.roles.addAssignments",code:200}))', [__0, __1, __3, __d1, __4, __5, __d5, SlackError, SlackRateLimited, SlackProtocol, Retry.Retry]] : API.call(addAssignments, i));
29
+
30
+ export const addChannels = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#7:0,errors:[$8,$9],protocol:$10,retry:$11};$6(>2)@"AddChannelsRequest";$5({usergroup_id:$2,team_id:$3($2),channel_ids:#4:0}).pipe($1({method:"POST",uri:"/admin.usergroups.addChannels",code:200}))', [__0, __1, __3, __7, __d1, __4, __5, __d8, SlackError, SlackRateLimited, SlackProtocol, Retry.Retry]] : API.call(addChannels, i));
31
+
32
+ export const addEmoji = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#7:0,errors:[$8,$9],protocol:$10,retry:$11};$6(>2)@"AddEmojiRequest";$5({name:$3.pipe($2()),url:$4($3.pipe($2()))}).pipe($1({method:"GET",uri:"/admin.emoji.add",code:200}))', [__0, __1, __2, __3, __7, __4, __5, __d0, SlackError, SlackRateLimited, SlackProtocol, Retry.Retry]] : API.call(addEmoji, i));
33
+
34
+ export const addGroup = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#7:0,errors:[$8,$9],protocol:$10,retry:$11};$6(>2)@"AddGroupRequest";$5({team_id:$4($3.pipe($2())),group_id:$3.pipe($2()),channel_id:$3.pipe($2())}).pipe($1({method:"GET",uri:"/admin.conversations.restrictAccess.addGroup",code:200}))', [__0, __1, __2, __3, __7, __4, __5, __d0, SlackError, SlackRateLimited, SlackProtocol, Retry.Retry]] : API.call(addGroup, i));
35
+
36
+ export const addTeams = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#8:0,errors:[$9,$10],protocol:$11,retry:$12};$7(>2)@"AddTeamsRequest";$6({usergroup_id:$2,team_ids:#3:0,auto_provision:$5($4)}).pipe($1({method:"POST",uri:"/admin.usergroups.addTeams",code:200}))', [__0, __1, __3, __d1, __6, __7, __4, __5, __d0, SlackError, SlackRateLimited, SlackProtocol, Retry.Retry]] : API.call(addTeams, i));
37
+
38
+ export const addUsers = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#2,errors:[$9,$10],protocol:$11,retry:$12};$5(>3)@"AddUsersRequest";$5(>4)@"AddUsersResponse";$4({id:$2,users:#3:0}).pipe($1({method:"POST",uri:"/admin.usergroups.addUsers",code:200}));$4({ok:$6,error:$7($2),invalid_users:$7(#8:1)})', [__0, __1, __3, __d1, __4, __5, __6, __7, __d12, SlackError, SlackRateLimited, SlackProtocol, Retry.Retry]] : API.call(addUsers, i));
39
+
40
+ export const addWorkflowsCollaborator = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#5:0,errors:[$6,$7],protocol:$8,retry:$9};$4(>2)@"AddWorkflowsCollaboratorRequest";$3({workflow_ids:#2:0,collaborator_ids:#2:0}).pipe($1({method:"POST",uri:"/admin.workflows.collaborators.add",code:200}))', [__0, __1, __d1, __4, __5, __d0, SlackError, SlackRateLimited, SlackProtocol, Retry.Retry]] : API.call(addWorkflowsCollaborator, i));
41
+
42
+ export const analyticsMessagesActivity = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#2,errors:[$11,$12],protocol:$13,retry:$14};$7(>3)@"AnalyticsMessagesActivityRequest";$7(>4)@"AnalyticsMessagesActivityResponse";$6({channel:$3.pipe($2()),oldest_ts:$4($3.pipe($2())),latest_ts:$4($3.pipe($2())),cursor:$4($3.pipe($2())),limit:$4($5.pipe($2()))}).pipe($1({method:"GET",uri:"/admin.analytics.messages.activity",code:200}));$6({ok:$8,response_metadata:$4(#9:0),message_activities:$10})', [__0, __1, __2, __3, __7, __9, __4, __5, __6, __d13, __10, SlackError, SlackRateLimited, SlackProtocol, Retry.Retry]] : API.call(analyticsMessagesActivity, i));
43
+
44
+ export const analyticsMessagesMetadata = /*@__PURE__*/ API.opPaginated((i) => i === API.D ? API.named("AnalyticsMessagesMetadataResponse", '{input:#1,output:#8,errors:[$11,$12],protocol:$13,retry:$14,pagination:{mode:"cursor",inputToken:"cursor",outputToken:"response_metadata.next_cursor",items:"messages"},strategy:$15};$6(>9)@"AnalyticsMessagesMetadataRequest";$6(>10)@"%MessagesItemReactionsItem";$8(#2);$6(>11)@"%MessagesItemFilesItem";$8(#4);$6(>12)@"%MessagesItem";$8(#6);$6(>13)@"%";$5({channel:$3.pipe($2()),oldest_ts:$4($3.pipe($2())),latest_ts:$4($3.pipe($2())),cursor:$4($3.pipe($2()))}).pipe($1({method:"GET",uri:"/admin.analytics.messages.metadata",code:200}));$5({name:$3,count:$7});$5({id:$3,created:$7,timestamp:$7,mimetype:$4($3),filetype:$4($3),subtype:$4($3),pretty_type:$4($3),is_external:$4($9),external_type:$4($3),is_public:$4($9),public_url_shared:$4($9),display_as_bot:$4($9),duration_ms:$4($7),media_display_type:$4($3)});$5({user_id:$4($3),type:$3,subtype:$4($3),ts:$3,thread_ts:$4($3),display_as_bot:$4($9),client_msg_id:$4($3),text_character_count:$4($7),reactions:$4(#3),files:$4(#5)});$5({ok:$9,response_metadata:$4(#10:0),messages:#7})', [__0, __1, __2, __3, __7, __4, __5, __9, __8, __6, __d13, SlackError, SlackRateLimited, SlackProtocol, Retry.Retry, slackPaginate]) : API.call(analyticsMessagesMetadata, i));
45
+
46
+ export const approveApp = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#7:0,errors:[$8,$9],protocol:$10,retry:$11};$6(>2)@"ApproveAppRequest";$5({allow_child_auto_install:$3($2),app_id:$3($4),request_id:$3($4),team_id:$3($4),enterprise_id:$3($4),user_scopes:$3($4),bot_scopes:$3($4)}).pipe($1({method:"POST",uri:"/admin.apps.approve",code:200}))', [__0, __1, __6, __7, __3, __4, __5, __d0, SlackError, SlackRateLimited, SlackProtocol, Retry.Retry]] : API.call(approveApp, i));
47
+
48
+ export const approveInviteRequest = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#6:0,errors:[$7,$8],protocol:$9,retry:$10};$5(>2)@"ApproveInviteRequestRequest";$4({team_id:$3($2),invite_request_id:$2}).pipe($1({method:"POST",uri:"/admin.inviteRequests.approve",code:200}))', [__0, __1, __3, __7, __4, __5, __d0, SlackError, SlackRateLimited, SlackProtocol, Retry.Retry]] : API.call(approveInviteRequest, i));
49
+
50
+ export const appsRestrict = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#6:0,errors:[$7,$8],protocol:$9,retry:$10};$5(>2)@"AppsRestrictRequest";$4({app_id:$3($2),request_id:$3($2),team_id:$3($2),enterprise_id:$3($2)}).pipe($1({method:"POST",uri:"/admin.apps.restrict",code:200}))', [__0, __1, __3, __7, __4, __5, __d0, SlackError, SlackRateLimited, SlackProtocol, Retry.Retry]] : API.call(appsRestrict, i));
51
+
52
+ export const archiveConversation = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#5:0,errors:[$6,$7],protocol:$8,retry:$9};$4(>2)@"ArchiveConversationRequest";$3({channel_id:$2}).pipe($1({method:"POST",uri:"/admin.conversations.archive",code:200}))', [__0, __1, __3, __4, __5, __d0, SlackError, SlackRateLimited, SlackProtocol, Retry.Retry]] : API.call(archiveConversation, i));
53
+
54
+ export const assignEntities = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#7:0,errors:[$8,$9],protocol:$10,retry:$11};$6(>2)@"AssignEntitiesRequest";$5({policy_name:$2,entity_type:$3,entity_ids:#4:0}).pipe($1({method:"POST",uri:"/admin.auth.policy.assignEntities",code:200}))', [__0, __1, __3, __10, __d1, __4, __5, __d2, SlackError, SlackRateLimited, SlackProtocol, Retry.Retry]] : API.call(assignEntities, i));
55
+
56
+ export const assignUser = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#7:0,errors:[$8,$9],protocol:$10,retry:$11};$6(>2)@"AssignUserRequest";$5({team_id:$2,user_id:$2,is_restricted:$4($3),is_ultra_restricted:$4($3),channel_ids:$4($2)}).pipe($1({method:"POST",uri:"/admin.users.assign",code:200}))', [__0, __1, __3, __6, __7, __4, __5, __d0, SlackError, SlackRateLimited, SlackProtocol, Retry.Retry]] : API.call(assignUser, i));
57
+
58
+ export const bulkArchive = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#5:0,errors:[$6,$7],protocol:$8,retry:$9};$4(>2)@"BulkArchiveRequest";$3({channel_ids:#2:0}).pipe($1({method:"POST",uri:"/admin.conversations.bulkArchive",code:200,contentType:"form-urlencoded"}))', [__0, __1, __d1, __4, __5, __d3, SlackError, SlackRateLimited, SlackProtocol, Retry.Retry]] : API.call(bulkArchive, i));
59
+
60
+ export const bulkDelete = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#5:0,errors:[$6,$7],protocol:$8,retry:$9};$4(>2)@"BulkDeleteRequest";$3({channel_ids:#2:0}).pipe($1({method:"POST",uri:"/admin.conversations.bulkDelete",code:200,contentType:"form-urlencoded"}))', [__0, __1, __d1, __4, __5, __d3, SlackError, SlackRateLimited, SlackProtocol, Retry.Retry]] : API.call(bulkDelete, i));
61
+
62
+ export const bulkMove = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#6:0,errors:[$7,$8],protocol:$9,retry:$10};$5(>2)@"BulkMoveRequest";$4({target_team_id:$2,channel_ids:#3:0}).pipe($1({method:"POST",uri:"/admin.conversations.bulkMove",code:200,contentType:"form-urlencoded"}))', [__0, __1, __3, __d1, __4, __5, __d3, SlackError, SlackRateLimited, SlackProtocol, Retry.Retry]] : API.call(bulkMove, i));
63
+
64
+ export const bulkSetExcludeFromSlackAi = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#7:0,errors:[$8,$9],protocol:$10,retry:$11};$6(>2)@"BulkSetExcludeFromSlackAiRequest";$5({channel_ids:#3:0.pipe($2()),exclude:$4.pipe($2())}).pipe($1({method:"GET",uri:"/admin.conversations.bulkSetExcludeFromSlackAi",code:200}))', [__0, __1, __2, __d1, __6, __4, __5, __d3, SlackError, SlackRateLimited, SlackProtocol, Retry.Retry]] : API.call(bulkSetExcludeFromSlackAi, i));
65
+
66
+ export const bulkSetProperties = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#2,errors:[$8,$9],protocol:$10,retry:$11};$5(>3)@"BulkSetPropertiesRequest";$5(>4)@"BulkSetPropertiesResponse";$4({channel_ids:#2:0,property:$3}).pipe($1({method:"POST",uri:"/admin.conversations.bulkSetProperties",code:200,contentType:"form-urlencoded"}));$4({ok:$6,bulk_action_id:$3,not_updated:#7:1})', [__0, __1, __d1, __3, __4, __5, __6, __d4, SlackError, SlackRateLimited, SlackProtocol, Retry.Retry]] : API.call(bulkSetProperties, i));
67
+
68
+ export const cancelAppsRequest = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#6:0,errors:[$7,$8],protocol:$9,retry:$10};$5(>2)@"CancelAppsRequestRequest";$4({request_id:$2,team_id:$3($2),enterprise_id:$3($2)}).pipe($1({method:"POST",uri:"/admin.apps.requests.cancel",code:200}))', [__0, __1, __3, __7, __4, __5, __d0, SlackError, SlackRateLimited, SlackProtocol, Retry.Retry]] : API.call(cancelAppsRequest, i));
69
+
70
+ export const clearResolution = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#6:0,errors:[$7,$8],protocol:$9,retry:$10};$5(>2)@"ClearResolutionRequest";$4({app_id:$2,team_id:$3($2),enterprise_id:$3($2)}).pipe($1({method:"POST",uri:"/admin.apps.clearResolution",code:200}))', [__0, __1, __3, __7, __4, __5, __d0, SlackError, SlackRateLimited, SlackProtocol, Retry.Retry]] : API.call(clearResolution, i));
71
+
72
+ export const clearSettings = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#5:0,errors:[$6,$7],protocol:$8,retry:$9};$4(>2)@"ClearSettingsRequest";$3({user_ids:#2:0}).pipe($1({method:"POST",uri:"/admin.users.session.clearSettings",code:200}))', [__0, __1, __d1, __4, __5, __d0, SlackError, SlackRateLimited, SlackProtocol, Retry.Retry]] : API.call(clearSettings, i));
73
+
74
+ export const convertToPrivate = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#6:0,errors:[$7,$8],protocol:$9,retry:$10};$5(>2)@"ConvertToPrivateRequest";$4({channel_id:$2,name:$3($2)}).pipe($1({method:"POST",uri:"/admin.conversations.convertToPrivate",code:200}))', [__0, __1, __3, __7, __4, __5, __d0, SlackError, SlackRateLimited, SlackProtocol, Retry.Retry]] : API.call(convertToPrivate, i));
75
+
76
+ export const convertToPublic = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#5:0,errors:[$6,$7],protocol:$8,retry:$9};$4(>2)@"ConvertToPublicRequest";$3({channel_id:$2}).pipe($1({method:"POST",uri:"/admin.conversations.convertToPublic",code:200}))', [__0, __1, __3, __4, __5, __d0, SlackError, SlackRateLimited, SlackProtocol, Retry.Retry]] : API.call(convertToPublic, i));
77
+
78
+ export const createBarrier = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#7:0,errors:[$8,$9],protocol:$10,retry:$11};$6(>2)@"CreateBarrierRequest";$5({primary_usergroup_id:$2,barriered_from_usergroup_ids:#3:0,restricted_subjects:#4:0}).pipe($1({method:"POST",uri:"/admin.barriers.create",code:200,contentType:"form-urlencoded"}))', [__0, __1, __3, __d1, __d7, __4, __5, __d6, SlackError, SlackRateLimited, SlackProtocol, Retry.Retry]] : API.call(createBarrier, i));
79
+
80
+ export const createConversation = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#2,errors:[$7,$8],protocol:$9,retry:$10};$6(>3)@"CreateConversationRequest";$6(>4)@"CreateConversationResponse";$5({name:$2,description:$3($2),is_private:$4,org_wide:$3($4),team_id:$3($2)}).pipe($1({method:"POST",uri:"/admin.conversations.create",code:200}));$5({ok:$4,channel_id:$3($2)})', [__0, __1, __3, __7, __6, __4, __5, SlackError, SlackRateLimited, SlackProtocol, Retry.Retry]] : API.call(createConversation, i));
81
+
82
+ export const createForObjects = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#2,errors:[$7,$8],protocol:$9,retry:$10};$6(>3)@"CreateForObjectsRequest";$6(>4)@"CreateForObjectsResponse";$5({object_id:$2,salesforce_org_id:$2,invite_object_team:$4($3)}).pipe($1({method:"POST",uri:"/admin.conversations.createForObjects",code:200}));$5({ok:$3,channel_id:$2})', [__0, __1, __3, __6, __7, __4, __5, SlackError, SlackRateLimited, SlackProtocol, Retry.Retry]] : API.call(createForObjects, i));
83
+
84
+ export const createTeam = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#2,errors:[$7,$8],protocol:$9,retry:$10};$5(>3)@"CreateTeamRequest";$5(>4)@"CreateTeamResponse";$4({team_domain:$2,team_name:$2,team_description:$3($2),team_discoverability:$3($2)}).pipe($1({method:"POST",uri:"/admin.teams.create",code:200}));$4({ok:$6,team:$2})', [__0, __1, __3, __7, __4, __5, __6, SlackError, SlackRateLimited, SlackProtocol, Retry.Retry]] : API.call(createTeam, i));
85
+
86
+ export const createUsergroup = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#2,errors:[$8,$9],protocol:$10,retry:$11};$6(>3)@"CreateUsergroupRequest";$6(>4)@"CreateUsergroupResponse";$5({name:$2,handle:$3($2),purpose:$3($2),is_visible:$3($4)}).pipe($1({method:"POST",uri:"/admin.usergroups.create",code:200}));$5({ok:$4,error:$3($2),subteam:$3($7)})', [__0, __1, __3, __7, __6, __4, __5, __10, SlackError, SlackRateLimited, SlackProtocol, Retry.Retry]] : API.call(createUsergroup, i));
87
+
88
+ export const deleteBarrier = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#5:0,errors:[$6,$7],protocol:$8,retry:$9};$4(>2)@"DeleteBarrierRequest";$3({barrier_id:$2}).pipe($1({method:"POST",uri:"/admin.barriers.delete",code:200,contentType:"form-urlencoded"}))', [__0, __1, __3, __4, __5, __d0, SlackError, SlackRateLimited, SlackProtocol, Retry.Retry]] : API.call(deleteBarrier, i));
89
+
90
+ export const deleteConversation = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#5:0,errors:[$6,$7],protocol:$8,retry:$9};$4(>2)@"DeleteConversationRequest";$3({channel_id:$2}).pipe($1({method:"POST",uri:"/admin.conversations.delete",code:200}))', [__0, __1, __3, __4, __5, __d0, SlackError, SlackRateLimited, SlackProtocol, Retry.Retry]] : API.call(deleteConversation, i));
91
+
92
+ export const disconnectShared = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#7:0,errors:[$8,$9],protocol:$10,retry:$11};$6(>2)@"DisconnectSharedRequest";$5({channel_id:$2,leaving_team_ids:$4(#3:0)}).pipe($1({method:"POST",uri:"/admin.conversations.disconnectShared",code:200}))', [__0, __1, __3, __d1, __7, __4, __5, __d0, SlackError, SlackRateLimited, SlackProtocol, Retry.Retry]] : API.call(disconnectShared, i));
93
+
94
+ export const exportUsersUnsupportedVersion = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#6:0,errors:[$7,$8],protocol:$9,retry:$10};$5(>2)@"ExportUsersUnsupportedVersionRequest";$4({date_sessions_started:$3($2),date_end_of_support:$3($2)}).pipe($1({method:"POST",uri:"/admin.users.unsupportedVersions.export",code:200,contentType:"form-urlencoded"}))', [__0, __1, __9, __7, __4, __5, __d0, SlackError, SlackRateLimited, SlackProtocol, Retry.Retry]] : API.call(exportUsersUnsupportedVersion, i));
95
+
96
+ export const fetchUsergroup = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#2,errors:[$7,$8],protocol:$9,retry:$10};$4(>3)@"FetchUsergroupRequest";$4(>4)@"FetchUsergroupResponse";$3({id:$2}).pipe($1({method:"POST",uri:"/admin.usergroups.fetch",code:200}));$3({ok:$5,subteam:$6})', [__0, __1, __3, __4, __5, __6, __10, SlackError, SlackRateLimited, SlackProtocol, Retry.Retry]] : API.call(fetchUsergroup, i));
97
+
98
+ export const getConversationPrefs = /*@__PURE__*/ API.op((i) => i === API.D ? API.named("GetConversationPrefsResponse", '{input:#1,output:#6,errors:[$9,$10],protocol:$11,retry:$12};$4(>7)@"GetConversationPrefsRequest";$4(>8)@"%PrefsWhoCanPost";$4(>9)@"%PrefsMembershipLimit";$4(>10)@"%PrefsCanHuddle";$4(>11)@"%Prefs";$4(>12)@"%";$3({channel_id:$2}).pipe($1({method:"POST",uri:"/admin.conversations.getConversationPrefs",code:200}));$3({type:$6(#5:0),user:$6(#5:0)});$3({value:$6($7)});$3({enabled:$6($8)});$3({who_can_post:$6(#2),can_thread:$6(#2),membership_limit:$6(#3),can_huddle:$6(#4),enable_at_channel:$6(#4),enable_at_here:$6(#4)});$3({ok:$8,prefs:$6(#5)})', [__0, __1, __3, __4, __5, __d1, __7, __9, __6, SlackError, SlackRateLimited, SlackProtocol, Retry.Retry]) : API.call(getConversationPrefs, i));
99
+
100
+ export const getCustomRetention = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#2,errors:[$7,$8],protocol:$9,retry:$10};$4(>3)@"GetCustomRetentionRequest";$4(>4)@"GetCustomRetentionResponse";$3({channel_id:$2}).pipe($1({method:"POST",uri:"/admin.conversations.getCustomRetention",code:200}));$3({ok:$5,is_policy_enabled:$5,duration_days:$6})', [__0, __1, __3, __4, __5, __6, __9, SlackError, SlackRateLimited, SlackProtocol, Retry.Retry]] : API.call(getCustomRetention, i));
101
+
102
+ export const getEntities = /*@__PURE__*/ API.opPaginated((i) => i === API.D ? API.named("GetEntitiesResponse", '{input:#1,output:#4,errors:[$11,$12],protocol:$13,retry:$14,pagination:{mode:"cursor",inputToken:"cursor",outputToken:"response_metadata.next_cursor",items:"entities",pageSize:"limit"},strategy:$15};$7(>5)@"GetEntitiesRequest";$7(>6)@"%EntitiesItem";$8(#2);$7(>7)@"%";$6({policy_name:$2,entity_type:$4($3),limit:$4($5),cursor:$4($2)}).pipe($1({method:"POST",uri:"/admin.auth.policy.getEntities",code:200}));$6({entity_type:$2,entity_id:$2,date_added:$5});$6({ok:$9,response_metadata:$4(#10:0),entities:#3,entity_total_count:$5})', [__0, __1, __3, __10, __7, __9, __4, __5, __8, __6, __d13, SlackError, SlackRateLimited, SlackProtocol, Retry.Retry, slackPaginate]) : API.call(getEntities, i));
103
+
104
+ export const getExpiration = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#7:0,errors:[$8,$9],protocol:$10,retry:$11};$6(>2)@"GetExpirationRequest";$5({user_id:$3.pipe($2()),target_team:$4($3.pipe($2()))}).pipe($1({method:"GET",uri:"/admin.users.getExpiration",code:200}))', [__0, __1, __2, __3, __7, __4, __5, __d0, SlackError, SlackRateLimited, SlackProtocol, Retry.Retry]] : API.call(getExpiration, i));
105
+
106
+ export const getFile = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#2,errors:[$10,$11],protocol:$12,retry:$13};$7(>3)@"GetFileRequest";$7(>4)@"GetFileResponse";$6({date:$4($3.pipe($2())),type:$3.pipe($2()),metadata_only:$4($5.pipe($2()))}).pipe($1({method:"GET",uri:"/admin.analytics.getFile",code:200}));$9.pipe($8())', [__0, __1, __2, __3, __7, __6, __4, __5, __11, __10, SlackError, SlackRateLimited, SlackProtocol, Retry.Retry]] : API.call(getFile, i));
107
+
108
+ export const getItem = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#2,errors:[$8,$9],protocol:$10,retry:$11};$3(>3)@"GetItemRequest";$3(>4)@"GetItemResponse";$2({}).pipe($1({method:"POST",uri:"/admin.audit.anomaly.allow.getItem",code:200}));$2({ok:$4,trusted_cidr:$6(#5:0),trusted_asns:$6(#7:0)})', [__0, __1, __4, __5, __6, __d1, __7, __d9, SlackError, SlackRateLimited, SlackProtocol, Retry.Retry]] : API.call(getItem, i));
109
+
110
+ export const getSettings = /*@__PURE__*/ API.op((i) => i === API.D ? API.named("GetSettingsResponse", '{input:#1,output:#4,errors:[$10,$11],protocol:$12,retry:$13};$4(>5)@"GetSettingsRequest";$4(>6)@"%SessionSettingsItem";$7(#2);$4(>7)@"%";$3({user_ids:#2:0}).pipe($1({method:"POST",uri:"/admin.users.session.getSettings",code:200}));$3({user_id:$5,desktop_app_browser_quit:$6,duration:$6});$3({ok:$8,session_settings:$9(#3),no_settings_applied:$9(#2:0)})', [__0, __1, __d1, __4, __5, __3, __10, __8, __6, __7, SlackError, SlackRateLimited, SlackProtocol, Retry.Retry]) : API.call(getSettings, i));
111
+
112
+ export const getTeams = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#2,errors:[$9,$10],protocol:$11,retry:$12};$6(>3)@"GetTeamsRequest";$6(>4)@"GetTeamsResponse";$5({channel_id:$2,cursor:$3($2),limit:$3($4)}).pipe($1({method:"POST",uri:"/admin.conversations.getTeams",code:200}));$5({ok:$7,response_metadata:$3(#8:0)})', [__0, __1, __3, __7, __9, __4, __5, __6, __d13, SlackError, SlackRateLimited, SlackProtocol, Retry.Retry]] : API.call(getTeams, i));
113
+
114
+ export const invalidateUsersSession = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#6:0,errors:[$7,$8],protocol:$9,retry:$10};$5(>2)@"InvalidateUsersSessionRequest";$4({user_id:$2,session_id:$3}).pipe($1({method:"POST",uri:"/admin.users.session.invalidate",code:200}))', [__0, __1, __3, __9, __4, __5, __d0, SlackError, SlackRateLimited, SlackProtocol, Retry.Retry]] : API.call(invalidateUsersSession, i));
115
+
116
+ export const inviteConversation = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#6:0,errors:[$7,$8],protocol:$9,retry:$10};$5(>2)@"InviteConversationRequest";$4({user_ids:#2:0,channel_id:$3}).pipe($1({method:"POST",uri:"/admin.conversations.invite",code:200}))', [__0, __1, __d1, __3, __4, __5, __d0, SlackError, SlackRateLimited, SlackProtocol, Retry.Retry]] : API.call(inviteConversation, i));
117
+
118
+ export const inviteRequestsDeny = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#6:0,errors:[$7,$8],protocol:$9,retry:$10};$5(>2)@"InviteRequestsDenyRequest";$4({team_id:$3($2),invite_request_id:$2}).pipe($1({method:"POST",uri:"/admin.inviteRequests.deny",code:200}))', [__0, __1, __3, __7, __4, __5, __d0, SlackError, SlackRateLimited, SlackProtocol, Retry.Retry]] : API.call(inviteRequestsDeny, i));
119
+
120
+ export const inviteUser = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#7:0,errors:[$8,$9],protocol:$10,retry:$11};$6(>2)@"InviteUserRequest";$5({team_id:$2,email:$2,channel_ids:$2,custom_message:$3($2),real_name:$3($2),resend:$3($4),is_restricted:$3($4),is_ultra_restricted:$3($4),guest_expiration_ts:$3($2),email_password_policy_enabled:$3($4)}).pipe($1({method:"POST",uri:"/admin.users.invite",code:200}))', [__0, __1, __3, __7, __6, __4, __5, __d0, SlackError, SlackRateLimited, SlackProtocol, Retry.Retry]] : API.call(inviteUser, i));
121
+
122
+ export const linkObjects = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#5:0,errors:[$6,$7],protocol:$8,retry:$9};$4(>2)@"LinkObjectsRequest";$3({channel:$2,record_id:$2,salesforce_org_id:$2}).pipe($1({method:"POST",uri:"/admin.conversations.linkObjects",code:200}))', [__0, __1, __3, __4, __5, __d0, SlackError, SlackRateLimited, SlackProtocol, Retry.Retry]] : API.call(linkObjects, i));
123
+
124
+ export const listAppsActivities = /*@__PURE__*/ API.opPaginated((i) => i === API.D ? API.named("cursor", '{input:#1,output:#2,errors:[$10,$11],protocol:$12,retry:$13,pagination:{mode:"%",inputToken:"%",outputToken:"response_metadata.next_%",items:"activities",pageSize:"limit"},strategy:$14};$6(>3)@"ListAppsActivitiesRequest";$6(>4)@"ListAppsActivitiesResponse";$5({app_id:$3($2),team_id:$3($2),cursor:$3($2),limit:$3($4),min_log_level:$3($2),log_event_type:$3($2),source:$3($2),component_type:$3($2),component_id:$3($2),trace_id:$3($2),min_date_created:$3($4),max_date_created:$3($4),sort_direction:$3($2)}).pipe($1({method:"POST",uri:"/admin.apps.activities.list",code:200,contentType:"form-urlencoded"}));$5({ok:$7,activities:#8:0,response_metadata:$3(#9:0)})', [__0, __1, __3, __7, __9, __4, __5, __6, __d10, __d13, SlackError, SlackRateLimited, SlackProtocol, Retry.Retry, slackPaginate]) : API.call(listAppsActivities, i));
125
+
126
+ export const listAppsApproved = /*@__PURE__*/ API.opPaginated((i) => i === API.D ? API.named("cursor", '{input:#1,output:#2,errors:[$11,$12],protocol:$13,retry:$14,pagination:{mode:"%",inputToken:"%",outputToken:"response_metadata.next_%",items:"approved_apps",pageSize:"limit"},strategy:$15};$8(>3)@"ListAppsApprovedRequest";$8(>4)@"ListAppsApprovedResponse";$7({limit:$4($3.pipe($2())),cursor:$4($5.pipe($2())),team_id:$4($5.pipe($2())),enterprise_id:$4($5.pipe($2())),certified:$4($6.pipe($2()))}).pipe($1({method:"GET",uri:"/admin.apps.approved.list",code:200}));$7({ok:$6,approved_apps:#9:0,response_metadata:$4(#10:0)})', [__0, __1, __2, __9, __7, __3, __6, __4, __5, __d10, __d13, SlackError, SlackRateLimited, SlackProtocol, Retry.Retry, slackPaginate]) : API.call(listAppsApproved, i));
127
+
128
+ export const listAppsMcpServers = /*@__PURE__*/ API.opPaginated((i) => i === API.D ? API.named("ListAppsMcpServersResponse", '{input:#1,output:#4,errors:[$11,$12],protocol:$13,retry:$14,pagination:{mode:"cursor",inputToken:"cursor",outputToken:"response_metadata.next_cursor",items:"servers",pageSize:"limit"},strategy:$15};$6(>5)@"ListAppsMcpServersRequest";$6(>6)@"%ServersItem";$8(#2);$6(>7)@"%";$5({limit:$3($2),cursor:$3($4)}).pipe($1({method:"POST",uri:"/admin.apps.mcp.servers.list",code:200}));$5({server_id:$4,server_name:$4,url:$4,auth_type:$7,app_id:$4,app_name:$4});$5({ok:$9,servers:#3,response_metadata:$3(#10:0)})', [__0, __1, __9, __7, __3, __4, __5, __10, __8, __6, __d13, SlackError, SlackRateLimited, SlackProtocol, Retry.Retry, slackPaginate]) : API.call(listAppsMcpServers, i));
129
+
130
+ export const listAppsMcpServersPermissions = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#2,errors:[$7,$8],protocol:$9,retry:$10};$4(>3)@"ListAppsMcpServersPermissionsRequest";$4(>4)@"ListAppsMcpServersPermissionsResponse";$3({app_id:$2}).pipe($1({method:"POST",uri:"/admin.apps.mcp.servers.permissions.list",code:200}));$3({ok:$5,servers:#6:0})', [__0, __1, __3, __4, __5, __6, __d10, SlackError, SlackRateLimited, SlackProtocol, Retry.Retry]] : API.call(listAppsMcpServersPermissions, i));
131
+
132
+ export const listAppsPermissions = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#5:0,errors:[$6,$7],protocol:$8,retry:$9};$4(>2)@"ListAppsPermissionsRequest";$3({app_id:$2}).pipe($1({method:"POST",uri:"/admin.apps.permissions.list",code:200}))', [__0, __1, __3, __4, __5, __d0, SlackError, SlackRateLimited, SlackProtocol, Retry.Retry]] : API.call(listAppsPermissions, i));
133
+
134
+ export const listAppsRequests = /*@__PURE__*/ API.opPaginated((i) => i === API.D ? API.named("cursor", '{input:#1,output:#2,errors:[$11,$12],protocol:$13,retry:$14,pagination:{mode:"%",inputToken:"%",outputToken:"response_metadata.next_%",items:"app_requests",pageSize:"limit"},strategy:$15};$8(>3)@"ListAppsRequestsRequest";$8(>4)@"ListAppsRequestsResponse";$7({limit:$4($3.pipe($2())),cursor:$4($5.pipe($2())),team_id:$4($5.pipe($2())),enterprise_id:$4($5.pipe($2())),certified:$4($6.pipe($2()))}).pipe($1({method:"GET",uri:"/admin.apps.requests.list",code:200}));$7({ok:$6,app_requests:#9:0,response_metadata:$4(#10:0)})', [__0, __1, __2, __9, __7, __3, __6, __4, __5, __d10, __d13, SlackError, SlackRateLimited, SlackProtocol, Retry.Retry, slackPaginate]) : API.call(listAppsRequests, i));
135
+
136
+ export const listAppsRestricted = /*@__PURE__*/ API.opPaginated((i) => i === API.D ? API.named("cursor", '{input:#1,output:#2,errors:[$11,$12],protocol:$13,retry:$14,pagination:{mode:"%",inputToken:"%",outputToken:"response_metadata.next_%",items:"restricted_apps",pageSize:"limit"},strategy:$15};$8(>3)@"ListAppsRestrictedRequest";$8(>4)@"ListAppsRestrictedResponse";$7({limit:$4($3.pipe($2())),cursor:$4($5.pipe($2())),team_id:$4($5.pipe($2())),enterprise_id:$4($5.pipe($2())),certified:$4($6.pipe($2()))}).pipe($1({method:"GET",uri:"/admin.apps.restricted.list",code:200}));$7({ok:$6,restricted_apps:#9:0,response_metadata:$4(#10:0)})', [__0, __1, __2, __9, __7, __3, __6, __4, __5, __d10, __d13, SlackError, SlackRateLimited, SlackProtocol, Retry.Retry, slackPaginate]) : API.call(listAppsRestricted, i));
137
+
138
+ export const listAssignments = /*@__PURE__*/ API.opPaginated((i) => i === API.D ? API.named("ListAssignmentsResponse", '{input:#1,output:#4,errors:[$12,$13],protocol:$14,retry:$15,pagination:{mode:"cursor",inputToken:"cursor",outputToken:"response_metadata.next_cursor",items:"role_assignments",pageSize:"limit"},strategy:$16};$8(>5)@"ListAssignmentsRequest";$8(>6)@"%RoleAssignmentsItem";$9(#2);$8(>7)@"%";$7({cursor:$4($3.pipe($2())),limit:$4($5.pipe($2())),role_ids:$4(#6:0.pipe($2())),entity_ids:$4(#6:0.pipe($2())),sort_dir:$4($3.pipe($2()))}).pipe($1({method:"GET",uri:"/admin.roles.listAssignments",code:200}));$7({role_id:$3,entity_id:$3,user_id:$3,date_create:$5});$7({ok:$10,error:$4($3),role_assignments:#3,response_metadata:$4(#11:0)})', [__0, __1, __2, __3, __7, __9, __d1, __4, __5, __8, __6, __d13, SlackError, SlackRateLimited, SlackProtocol, Retry.Retry, slackPaginate]) : API.call(listAssignments, i));
139
+
140
+ export const listBarriers = /*@__PURE__*/ API.opPaginated((i) => i === API.D ? API.named("cursor", '{input:#1,output:#2,errors:[$11,$12],protocol:$13,retry:$14,pagination:{mode:"%",inputToken:"%",outputToken:"response_metadata.next_%",items:"barriers",pageSize:"limit"},strategy:$15};$7(>3)@"ListBarriersRequest";$7(>4)@"ListBarriersResponse";$6({limit:$4($3.pipe($2())),cursor:$4($5.pipe($2()))}).pipe($1({method:"GET",uri:"/admin.barriers.list",code:200}));$6({ok:$8,barriers:#9:0,response_metadata:$4(#10:0)})', [__0, __1, __2, __9, __7, __3, __4, __5, __6, __d10, __d13, SlackError, SlackRateLimited, SlackProtocol, Retry.Retry, slackPaginate]) : API.call(listBarriers, i));
141
+
142
+ export const listChannels = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#2,errors:[$8,$9],protocol:$10,retry:$11};$6(>3)@"ListChannelsRequest";$6(>4)@"ListChannelsResponse";$5({usergroup_id:$2,team_id:$3($2),include_num_members:$3($4)}).pipe($1({method:"POST",uri:"/admin.usergroups.listChannels",code:200}));$5({ok:$4,channels:#7:0,error:$3($2)})', [__0, __1, __3, __7, __6, __4, __5, __d1, SlackError, SlackRateLimited, SlackProtocol, Retry.Retry]] : API.call(listChannels, i));
143
+
144
+ export const listEmoji = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#2,errors:[$11,$12],protocol:$13,retry:$14};$7(>3)@"ListEmojiRequest";$7(>4)@"ListEmojiResponse";$6({cursor:$4($3.pipe($2())),limit:$4($5.pipe($2()))}).pipe($1({method:"GET",uri:"/admin.emoji.list",code:200}));$6({ok:$8,emoji:#9:0,response_metadata:$4(#10:0)})', [__0, __1, __2, __3, __7, __9, __4, __5, __6, __d11, __d13, SlackError, SlackRateLimited, SlackProtocol, Retry.Retry]] : API.call(listEmoji, i));
145
+
146
+ export const listFunctions = /*@__PURE__*/ API.opPaginated((i) => i === API.D ? API.named("cursor", '{input:#1,output:#2,errors:[$11,$12],protocol:$13,retry:$14,pagination:{mode:"%",inputToken:"%",outputToken:"response_metadata.next_%",items:"functions",pageSize:"limit"},strategy:$15};$8(>3)@"ListFunctionsRequest";$8(>4)@"ListFunctionsResponse";$7({team_id:$3($2),app_ids:#4:0,include_non_distributed_functions:$3($5),cursor:$3($2),limit:$3($6)}).pipe($1({method:"POST",uri:"/admin.functions.list",code:200}));$7({ok:$5,functions:#9:0,response_metadata:$3(#10:0)})', [__0, __1, __3, __7, __d1, __6, __9, __4, __5, __d10, __d13, SlackError, SlackRateLimited, SlackProtocol, Retry.Retry, slackPaginate]) : API.call(listFunctions, i));
147
+
148
+ export const listGroups = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#2,errors:[$9,$10],protocol:$11,retry:$12};$6(>3)@"ListGroupsRequest";$6(>4)@"ListGroupsResponse";$5({channel_id:$3.pipe($2()),team_id:$4($3.pipe($2()))}).pipe($1({method:"GET",uri:"/admin.conversations.restrictAccess.listGroups",code:200}));$5({ok:$7,group_ids:#8:0})', [__0, __1, __2, __3, __7, __4, __5, __6, __d1, SlackError, SlackRateLimited, SlackProtocol, Retry.Retry]] : API.call(listGroups, i));
149
+
150
+ export const listInviteRequests = /*@__PURE__*/ API.opPaginated((i) => i === API.D ? API.named("cursor", '{input:#1,output:#2,errors:[$10,$11],protocol:$12,retry:$13,pagination:{mode:"%",inputToken:"%",outputToken:"response_metadata.next_%",items:"invite_requests",pageSize:"limit"},strategy:$14};$6(>3)@"ListInviteRequestsRequest";$6(>4)@"ListInviteRequestsResponse";$5({team_id:$3($2),cursor:$3($2),limit:$3($4)}).pipe($1({method:"POST",uri:"/admin.inviteRequests.list",code:200}));$5({ok:$7,response_metadata:$3(#8:0),invite_requests:#9:0})', [__0, __1, __3, __7, __9, __4, __5, __6, __d13, __d10, SlackError, SlackRateLimited, SlackProtocol, Retry.Retry, slackPaginate]) : API.call(listInviteRequests, i));
151
+
152
+ export const listInviteRequestsApproved = /*@__PURE__*/ API.opPaginated((i) => i === API.D ? API.named("cursor", '{input:#1,output:#2,errors:[$10,$11],protocol:$12,retry:$13,pagination:{mode:"%",inputToken:"%",outputToken:"response_metadata.next_%",items:"approved_requests",pageSize:"limit"},strategy:$14};$6(>3)@"ListInviteRequestsApprovedRequest";$6(>4)@"ListInviteRequestsApprovedResponse";$5({team_id:$3($2),cursor:$3($2),limit:$3($4)}).pipe($1({method:"POST",uri:"/admin.inviteRequests.approved.list",code:200}));$5({ok:$7,response_metadata:$3(#8:0),approved_requests:#9:0})', [__0, __1, __3, __7, __9, __4, __5, __6, __d13, __d10, SlackError, SlackRateLimited, SlackProtocol, Retry.Retry, slackPaginate]) : API.call(listInviteRequestsApproved, i));
153
+
154
+ export const listInviteRequestsDenied = /*@__PURE__*/ API.opPaginated((i) => i === API.D ? API.named("cursor", '{input:#1,output:#2,errors:[$10,$11],protocol:$12,retry:$13,pagination:{mode:"%",inputToken:"%",outputToken:"response_metadata.next_%",items:"denied_requests",pageSize:"limit"},strategy:$14};$6(>3)@"ListInviteRequestsDeniedRequest";$6(>4)@"ListInviteRequestsDeniedResponse";$5({team_id:$3($2),cursor:$3($2),limit:$3($4)}).pipe($1({method:"POST",uri:"/admin.inviteRequests.denied.list",code:200}));$5({ok:$7,response_metadata:$3(#8:0),denied_requests:#9:0})', [__0, __1, __3, __7, __9, __4, __5, __6, __d13, __d10, SlackError, SlackRateLimited, SlackProtocol, Retry.Retry, slackPaginate]) : API.call(listInviteRequestsDenied, i));
155
+
156
+ export const listOriginalConnectedChannelInfo = /*@__PURE__*/ API.opPaginated((i) => i === API.D ? API.named("ListOriginalConnectedChannelInfoResponse", '{input:#1,output:#4,errors:[$11,$12],protocol:$13,retry:$14,pagination:{mode:"cursor",inputToken:"cursor",outputToken:"response_metadata.next_cursor",items:"channels",pageSize:"limit"},strategy:$15};$6(>5)@"ListOriginalConnectedChannelInfoRequest";$6(>6)@"%ChannelsItem";$8(#2);$6(>7)@"%";$5({channel_ids:$3($2),team_ids:$3($2),limit:$3($4),cursor:$3($2)}).pipe($1({method:"POST",uri:"/admin.conversations.ekm.listOriginalConnectedChannelInfo",code:200,contentType:"form-urlencoded"}));$5({id:$2,internal_team_ids:#7:0,original_connected_host_id:$2,original_connected_channel_id:$2});$5({ok:$9,response_metadata:$3(#10:0),channels:#3})', [__0, __1, __3, __7, __9, __4, __5, __d1, __8, __6, __d13, SlackError, SlackRateLimited, SlackProtocol, Retry.Retry, slackPaginate]) : API.call(listOriginalConnectedChannelInfo, i));
157
+
158
+ export const listTeams = /*@__PURE__*/ API.opPaginated((i) => i === API.D ? API.named("ListTeamsResponse", '{input:#1,output:#5,errors:[$10,$11],protocol:$12,retry:$13,pagination:{mode:"cursor",inputToken:"cursor",outputToken:"response_metadata.next_cursor",items:"teams",pageSize:"limit"},strategy:$14};$6(>6)@"ListTeamsRequest";$6(>7)@"%TeamsItemPrimaryOwner";$6(>8)@"%TeamsItem";$7(#3);$6(>9)@"%";$5({limit:$3($2),cursor:$3($4)}).pipe($1({method:"POST",uri:"/admin.teams.list",code:200}));$5({user_id:$4,email:$4});$5({id:$3($4),name:$4,discoverability:$4,primary_owner:#2,team_url:$4});$5({ok:$8,teams:#4,response_metadata:$3(#9:0)})', [__0, __1, __9, __7, __3, __4, __5, __8, __6, __d13, SlackError, SlackRateLimited, SlackProtocol, Retry.Retry, slackPaginate]) : API.call(listTeams, i));
159
+
160
+ export const listTeamsAdmins = /*@__PURE__*/ API.opPaginated((i) => i === API.D ? API.named("cursor", '{input:#1,output:#2,errors:[$11,$12],protocol:$13,retry:$14,pagination:{mode:"%",inputToken:"%",outputToken:"response_metadata.next_%",items:"admin_ids",pageSize:"limit"},strategy:$15};$7(>3)@"ListTeamsAdminsRequest";$7(>4)@"ListTeamsAdminsResponse";$6({limit:$4($3.pipe($2())),cursor:$4($5.pipe($2())),team_id:$5.pipe($2())}).pipe($1({method:"GET",uri:"/admin.teams.admins.list",code:200}));$6({ok:$8,admin_ids:#9:0,response_metadata:$4(#10:0)})', [__0, __1, __2, __9, __7, __3, __4, __5, __6, __d1, __d13, SlackError, SlackRateLimited, SlackProtocol, Retry.Retry, slackPaginate]) : API.call(listTeamsAdmins, i));
161
+
162
+ export const listTeamsOwners = /*@__PURE__*/ API.opPaginated((i) => i === API.D ? API.named("cursor", '{input:#1,output:#2,errors:[$11,$12],protocol:$13,retry:$14,pagination:{mode:"%",inputToken:"%",outputToken:"response_metadata.next_%",items:"owner_ids",pageSize:"limit"},strategy:$15};$7(>3)@"ListTeamsOwnersRequest";$7(>4)@"ListTeamsOwnersResponse";$6({team_id:$3.pipe($2()),limit:$5($4.pipe($2())),cursor:$5($3.pipe($2()))}).pipe($1({method:"GET",uri:"/admin.teams.owners.list",code:200}));$6({ok:$8,owner_ids:#9:0,response_metadata:$5(#10:0)})', [__0, __1, __2, __3, __9, __7, __4, __5, __6, __d1, __d13, SlackError, SlackRateLimited, SlackProtocol, Retry.Retry, slackPaginate]) : API.call(listTeamsOwners, i));
163
+
164
+ export const listUsers = /*@__PURE__*/ API.opPaginated((i) => i === API.D ? API.named("ListUsersResponse", '{input:#1,output:#4,errors:[$11,$12],protocol:$13,retry:$14,pagination:{mode:"cursor",inputToken:"cursor",outputToken:"response_metadata.next_cursor",items:"users",pageSize:"limit"},strategy:$15};$7(>5)@"ListUsersRequest";$7(>6)@"%UsersItem";$9(#2);$7(>7)@"%";$6({team_id:$3($2),cursor:$3($2),is_active:$3($4),include_deactivated_user_workspaces:$3($4),only_guests:$3($4),include_admins:$3($4),include_owners:$3($4),limit:$3($5)}).pipe($1({method:"POST",uri:"/admin.users.list",code:200}));$6({id:$2,username:$3($2),full_name:$3($2),has_2fa:$3($4),has_sso:$3($4),email:$2,is_admin:$4,is_owner:$4,is_primary_owner:$4,is_restricted:$4,is_ultra_restricted:$4,is_bot:$4,expiration_ts:$3($5),roles:$3(#8:0),last_active_ts:$3($5),workspaces:$3(#8:0),is_active:$3($4),date_created:$3($5),deactivated_ts:$3($5)});$6({ok:$4,users:#3,response_metadata:$3(#10:0)})', [__0, __1, __3, __7, __6, __9, __4, __5, __d1, __8, __d13, SlackError, SlackRateLimited, SlackProtocol, Retry.Retry, slackPaginate]) : API.call(listUsers, i));
165
+
166
+ export const listUsersSession = /*@__PURE__*/ API.opPaginated((i) => i === API.D ? API.named("ListUsersSessionResponse", '{input:#1,output:#5,errors:[$10,$11],protocol:$12,retry:$13,pagination:{mode:"cursor",inputToken:"cursor",outputToken:"response_metadata.next_cursor",items:"active_sessions",pageSize:"limit"},strategy:$14};$6(>6)@"ListUsersSessionRequest";$6(>7)@"%ActiveSessionsItemRecent";$6(>8)@"%ActiveSessionsItem";$7(#3);$6(>9)@"%";$5({team_id:$3($2),user_id:$3($2),limit:$3($4),cursor:$3($2)}).pipe($1({method:"POST",uri:"/admin.users.session.list",code:200}));$5({device_hardware:$3($2),os:$3($2),os_version:$3($2),slack_client_version:$3($2),ip:$3($2)});$5({user_id:$2,team_id:$2,session_id:$4,recent:$3(#2),created:#2});$5({ok:$8,response_metadata:$3(#9:0),active_sessions:#4})', [__0, __1, __3, __7, __9, __4, __5, __8, __6, __d13, SlackError, SlackRateLimited, SlackProtocol, Retry.Retry, slackPaginate]) : API.call(listUsersSession, i));
167
+
168
+ export const lookupAppsConfig = /*@__PURE__*/ API.op((i) => i === API.D ? API.named("LookupAppsConfigResponse", '{input:#1,output:#4,errors:[$11,$12],protocol:$13,retry:$14};$6(>5)@"LookupAppsConfigRequest";$6(>6)@"%ConfigsItem";$9(#2);$6(>7)@"%";$5({app_ids:$3(#2:0),rich_link_preview_types:$3(#4:0)}).pipe($1({method:"POST",uri:"/admin.apps.config.lookup",code:200}));$5({app_id:$7,workflow_auth_strategy:$7,domain_restrictions:$8});$5({ok:$10,configs:#3})', [__0, __1, __d1, __7, __d7, __4, __5, __3, __10, __8, __6, SlackError, SlackRateLimited, SlackProtocol, Retry.Retry]) : API.call(lookupAppsConfig, i));
169
+
170
+ export const lookupConversation = /*@__PURE__*/ API.opPaginated((i) => i === API.D ? API.named("cursor", '{input:#1,output:#2,errors:[$10,$11],protocol:$12,retry:$13,pagination:{mode:"%",inputToken:"%",outputToken:"response_metadata.next_%",items:"channel_ids",pageSize:"limit"},strategy:$14};$7(>3)@"LookupConversationRequest";$7(>4)@"LookupConversationResponse";$6({team_ids:#2:0,max_member_count:$4($3),last_message_activity_before:$3,cursor:$4($5),limit:$4($3)}).pipe($1({method:"POST",uri:"/admin.conversations.lookup",code:200,contentType:"form-urlencoded"}));$6({ok:$8,channel_ids:#2:0,response_metadata:$4(#9:0)})', [__0, __1, __d1, __9, __7, __3, __4, __5, __6, __d13, SlackError, SlackRateLimited, SlackProtocol, Retry.Retry, slackPaginate]) : API.call(lookupConversation, i));
171
+
172
+ export const lookupFunctionsPermissions = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#2,errors:[$7,$8],protocol:$9,retry:$10};$4(>3)@"LookupFunctionsPermissionsRequest";$4(>4)@"LookupFunctionsPermissionsResponse";$3({function_ids:#2:0}).pipe($1({method:"POST",uri:"/admin.functions.permissions.lookup",code:200}));$3({ok:$5,permissions:#6:0,metadata:#6:0,errors:#6:0})', [__0, __1, __d1, __4, __5, __6, __d11, SlackError, SlackRateLimited, SlackProtocol, Retry.Retry]] : API.call(lookupFunctionsPermissions, i));
173
+
174
+ export const lookupWorkflowsPermissions = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#2,errors:[$9,$10],protocol:$11,retry:$12};$6(>3)@"LookupWorkflowsPermissionsRequest";$6(>4)@"LookupWorkflowsPermissionsResponse";$5({workflow_ids:#2:0,max_workflow_triggers:$4($3)}).pipe($1({method:"POST",uri:"/admin.workflows.permissions.lookup",code:200}));$5({ok:$7,permissions:#8:0})', [__0, __1, __d1, __9, __7, __4, __5, __6, __d11, SlackError, SlackRateLimited, SlackProtocol, Retry.Retry]] : API.call(lookupWorkflowsPermissions, i));
175
+
176
+ export const lookupWorkflowsTriggersTypesPermissions = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#2,errors:[$7,$8],protocol:$9,retry:$10};$4(>3)@"LookupWorkflowsTriggersTypesPermissionsRequest";$4(>4)@"LookupWorkflowsTriggersTypesPermissionsResponse";$3({trigger_type_ids:#2:0}).pipe($1({method:"POST",uri:"/admin.workflows.triggers.types.permissions.lookup",code:200}));$3({ok:$5,permissions:#6:0,metadata:#6:0})', [__0, __1, __d1, __4, __5, __6, __d11, SlackError, SlackRateLimited, SlackProtocol, Retry.Retry]] : API.call(lookupWorkflowsTriggersTypesPermissions, i));
177
+
178
+ export const removeAppsPermissions = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#7:0,errors:[$8,$9],protocol:$10,retry:$11};$6(>2)@"RemoveAppsPermissionsRequest";$5({app_id:$2,user_ids:$4(#3:0),usergroup_ids:$4(#3:0),channel_ids:$4(#3:0)}).pipe($1({method:"POST",uri:"/admin.apps.permissions.remove",code:200}))', [__0, __1, __3, __d1, __7, __4, __5, __d0, SlackError, SlackRateLimited, SlackProtocol, Retry.Retry]] : API.call(removeAppsPermissions, i));
179
+
180
+ export const removeAssignments = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#6:0,errors:[$7,$8],protocol:$9,retry:$10};$5(>2)@"RemoveAssignmentsRequest";$4({role_id:$2,entity_ids:#3:0,user_ids:#3:0}).pipe($1({method:"POST",uri:"/admin.roles.removeAssignments",code:200}))', [__0, __1, __3, __d1, __4, __5, __d5, SlackError, SlackRateLimited, SlackProtocol, Retry.Retry]] : API.call(removeAssignments, i));
181
+
182
+ export const removeChannels = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#6:0,errors:[$7,$8],protocol:$9,retry:$10};$5(>2)@"RemoveChannelsRequest";$4({usergroup_id:$2,channel_ids:#3:0}).pipe($1({method:"POST",uri:"/admin.usergroups.removeChannels",code:200}))', [__0, __1, __3, __d1, __4, __5, __d8, SlackError, SlackRateLimited, SlackProtocol, Retry.Retry]] : API.call(removeChannels, i));
183
+
184
+ export const removeCustomRetention = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#5:0,errors:[$6,$7],protocol:$8,retry:$9};$4(>2)@"RemoveCustomRetentionRequest";$3({channel_id:$2}).pipe($1({method:"POST",uri:"/admin.conversations.removeCustomRetention",code:200}))', [__0, __1, __3, __4, __5, __d0, SlackError, SlackRateLimited, SlackProtocol, Retry.Retry]] : API.call(removeCustomRetention, i));
185
+
186
+ export const removeEmoji = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#6:0,errors:[$7,$8],protocol:$9,retry:$10};$5(>2)@"RemoveEmojiRequest";$4({name:$3.pipe($2())}).pipe($1({method:"GET",uri:"/admin.emoji.remove",code:200}))', [__0, __1, __2, __3, __4, __5, __d0, SlackError, SlackRateLimited, SlackProtocol, Retry.Retry]] : API.call(removeEmoji, i));
187
+
188
+ export const removeEntities = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#7:0,errors:[$8,$9],protocol:$10,retry:$11};$6(>2)@"RemoveEntitiesRequest";$5({policy_name:$2,entity_type:$3,entity_ids:#4:0}).pipe($1({method:"POST",uri:"/admin.auth.policy.removeEntities",code:200}))', [__0, __1, __3, __10, __d1, __4, __5, __d2, SlackError, SlackRateLimited, SlackProtocol, Retry.Retry]] : API.call(removeEntities, i));
189
+
190
+ export const removeGroup = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#6:0,errors:[$7,$8],protocol:$9,retry:$10};$5(>2)@"RemoveGroupRequest";$4({team_id:$3.pipe($2()),group_id:$3.pipe($2()),channel_id:$3.pipe($2())}).pipe($1({method:"GET",uri:"/admin.conversations.restrictAccess.removeGroup",code:200}))', [__0, __1, __2, __3, __4, __5, __d0, SlackError, SlackRateLimited, SlackProtocol, Retry.Retry]] : API.call(removeGroup, i));
191
+
192
+ export const removeTeams = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#6:0,errors:[$7,$8],protocol:$9,retry:$10};$5(>2)@"RemoveTeamsRequest";$4({usergroup_id:$2,team_ids:#3:0}).pipe($1({method:"POST",uri:"/admin.usergroups.removeTeams",code:200}))', [__0, __1, __3, __d1, __4, __5, __d0, SlackError, SlackRateLimited, SlackProtocol, Retry.Retry]] : API.call(removeTeams, i));
193
+
194
+ export const removeUser = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#5:0,errors:[$6,$7],protocol:$8,retry:$9};$4(>2)@"RemoveUserRequest";$3({team_id:$2,user_id:$2}).pipe($1({method:"POST",uri:"/admin.users.remove",code:200}))', [__0, __1, __3, __4, __5, __d0, SlackError, SlackRateLimited, SlackProtocol, Retry.Retry]] : API.call(removeUser, i));
195
+
196
+ export const removeUsers = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#6:0,errors:[$7,$8],protocol:$9,retry:$10};$5(>2)@"RemoveUsersRequest";$4({id:$2,users:#3:0}).pipe($1({method:"POST",uri:"/admin.usergroups.removeUsers",code:200}))', [__0, __1, __3, __d1, __4, __5, __d0, SlackError, SlackRateLimited, SlackProtocol, Retry.Retry]] : API.call(removeUsers, i));
197
+
198
+ export const removeWorkflowsCollaborator = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#5:0,errors:[$6,$7],protocol:$8,retry:$9};$4(>2)@"RemoveWorkflowsCollaboratorRequest";$3({workflow_ids:#2:0,collaborator_ids:#2:0}).pipe($1({method:"POST",uri:"/admin.workflows.collaborators.remove",code:200}))', [__0, __1, __d1, __4, __5, __d0, SlackError, SlackRateLimited, SlackProtocol, Retry.Retry]] : API.call(removeWorkflowsCollaborator, i));
199
+
200
+ export const renameConversation = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#5:0,errors:[$6,$7],protocol:$8,retry:$9};$4(>2)@"RenameConversationRequest";$3({channel_id:$2,name:$2}).pipe($1({method:"POST",uri:"/admin.conversations.rename",code:200}))', [__0, __1, __3, __4, __5, __d0, SlackError, SlackRateLimited, SlackProtocol, Retry.Retry]] : API.call(renameConversation, i));
201
+
202
+ export const renameEmoji = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#6:0,errors:[$7,$8],protocol:$9,retry:$10};$5(>2)@"RenameEmojiRequest";$4({name:$3.pipe($2()),new_name:$3.pipe($2())}).pipe($1({method:"GET",uri:"/admin.emoji.rename",code:200}))', [__0, __1, __2, __3, __4, __5, __d0, SlackError, SlackRateLimited, SlackProtocol, Retry.Retry]] : API.call(renameEmoji, i));
203
+
204
+ export const resetBulk = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#7:0,errors:[$8,$9],protocol:$10,retry:$11};$6(>2)@"ResetBulkRequest";$5({user_ids:#2:0,mobile_only:$4($3),web_only:$4($3)}).pipe($1({method:"POST",uri:"/admin.users.session.resetBulk",code:200}))', [__0, __1, __d1, __6, __7, __4, __5, __d0, SlackError, SlackRateLimited, SlackProtocol, Retry.Retry]] : API.call(resetBulk, i));
205
+
206
+ export const resetUsersSession = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#7:0,errors:[$8,$9],protocol:$10,retry:$11};$6(>2)@"ResetUsersSessionRequest";$5({user_id:$2,mobile_only:$4($3),web_only:$4($3)}).pipe($1({method:"POST",uri:"/admin.users.session.reset",code:200}))', [__0, __1, __3, __6, __7, __4, __5, __d0, SlackError, SlackRateLimited, SlackProtocol, Retry.Retry]] : API.call(resetUsersSession, i));
207
+
208
+ export const searchConversation = /*@__PURE__*/ API.opPaginated((i) => i === API.D ? API.named("conversations", '{input:#1,output:#2,errors:[$10,$11],protocol:$12,retry:$13,pagination:{mode:"cursor",inputToken:"cursor",outputToken:"response_metadata.next_cursor",items:"%",pageSize:"limit"},strategy:$14};$8(>3)@"SearchConversationRequest";$8(>4)@"SearchConversationResponse";$7({team_ids:$3(#2:0),connected_team_ids:$3(#2:0),query:$3($4),limit:$3($5),cursor:$3($4),search_channel_types:$3(#2:0),sort:$3($4),sort_dir:$3($4),total_count_only:$3($6)}).pipe($1({method:"POST",uri:"/admin.%.search",code:200}));$7({ok:$6,conversations:#2:0,next_cursor:$4,total_count:$5,error:$3($4),response_metadata:$3(#9:0)})', [__0, __1, __d1, __7, __3, __9, __6, __4, __5, __d13, SlackError, SlackRateLimited, SlackProtocol, Retry.Retry, slackPaginate]) : API.call(searchConversation, i));
209
+
210
+ export const searchWorkflow = /*@__PURE__*/ API.opPaginated((i) => i === API.D ? API.named("cursor", '{input:#1,output:#2,errors:[$11,$12],protocol:$13,retry:$14,pagination:{mode:"%",inputToken:"%",outputToken:"response_metadata.next_%",items:"workflows",pageSize:"limit"},strategy:$15};$8(>3)@"SearchWorkflowRequest";$8(>4)@"SearchWorkflowResponse";$7({query:$3($2),app_id:$3($2),cursor:$3($2),limit:$3($4),no_collaborators:$3($5),collaborator_ids:$3(#6:0),num_trigger_ids:$3($4),is_sales_elevate:$3($5),source:$3($2),sort:$3($2),sort_dir:$3($2),trigger_type_id:$3($2),publish_status:$3($2),step_function_ids:$3(#6:0)}).pipe($1({method:"POST",uri:"/admin.workflows.search",code:200}));$7({ok:$5,workflows:#9:0,response_metadata:$3(#10:0),total_found:$4})', [__0, __1, __3, __7, __9, __6, __d1, __4, __5, __d10, __d13, SlackError, SlackRateLimited, SlackProtocol, Retry.Retry, slackPaginate]) : API.call(searchWorkflow, i));
211
+
212
+ export const setAdmin = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#5:0,errors:[$6,$7],protocol:$8,retry:$9};$4(>2)@"SetAdminRequest";$3({team_id:$2,user_id:$2}).pipe($1({method:"POST",uri:"/admin.users.setAdmin",code:200}))', [__0, __1, __3, __4, __5, __d0, SlackError, SlackRateLimited, SlackProtocol, Retry.Retry]] : API.call(setAdmin, i));
213
+
214
+ export const setAppsConfig = /*@__PURE__*/ API.op((i) => i === API.D ? API.named("SetAppsConfigRequest", '{input:#2,output:#7:0,errors:[$8,$9],protocol:$10,retry:$11};$4(>3)@"%DomainRestrictions";$4(>4)@"%";$3({urls:$2(#1:0),emails:$2(#1:0)});$3({app_id:$6,workflow_auth_strategy:$2($6),rich_link_preview_type:$2($6),domain_restrictions:$2(#1)}).pipe($5({method:"POST",uri:"/admin.apps.config.set",code:200}))', [__0, __d1, __7, __4, __5, __1, __3, __d0, SlackError, SlackRateLimited, SlackProtocol, Retry.Retry]) : API.call(setAppsConfig, i));
215
+
216
+ export const setAppsMcpServersPermissions = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#7:0,errors:[$8,$9],protocol:$10,retry:$11};$6(>2)@"SetAppsMcpServersPermissionsRequest";$5({app_id:$2,server_id:$2,permission_type:$2,user_ids:$4(#3:0),usergroup_ids:$4(#3:0)}).pipe($1({method:"POST",uri:"/admin.apps.mcp.servers.permissions.set",code:200}))', [__0, __1, __3, __d1, __7, __4, __5, __d0, SlackError, SlackRateLimited, SlackProtocol, Retry.Retry]] : API.call(setAppsMcpServersPermissions, i));
217
+
218
+ export const setAppsPermissions = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#7:0,errors:[$8,$9],protocol:$10,retry:$11};$6(>2)@"SetAppsPermissionsRequest";$5({app_id:$2,permission_type:$2,user_ids:$4(#3:0),usergroup_ids:$4(#3:0),channel_restriction_mode:$4($2),channel_ids:$4(#3:0)}).pipe($1({method:"POST",uri:"/admin.apps.permissions.set",code:200}))', [__0, __1, __3, __d1, __7, __4, __5, __d0, SlackError, SlackRateLimited, SlackProtocol, Retry.Retry]] : API.call(setAppsPermissions, i));
219
+
220
+ export const setConversationPrefs = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#5:0,errors:[$6,$7],protocol:$8,retry:$9};$4(>2)@"SetConversationPrefsRequest";$3({channel_id:$2,prefs:$2}).pipe($1({method:"POST",uri:"/admin.conversations.setConversationPrefs",code:200}))', [__0, __1, __3, __4, __5, __d0, SlackError, SlackRateLimited, SlackProtocol, Retry.Retry]] : API.call(setConversationPrefs, i));
221
+
222
+ export const setCustomRetention = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#6:0,errors:[$7,$8],protocol:$9,retry:$10};$5(>2)@"SetCustomRetentionRequest";$4({channel_id:$2,duration_days:$3}).pipe($1({method:"POST",uri:"/admin.conversations.setCustomRetention",code:200}))', [__0, __1, __3, __9, __4, __5, __d0, SlackError, SlackRateLimited, SlackProtocol, Retry.Retry]] : API.call(setCustomRetention, i));
223
+
224
+ export const setDefaultChannels = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#7:0,errors:[$8,$9],protocol:$10,retry:$11};$6(>2)@"SetDefaultChannelsRequest";$5({team_id:$3.pipe($2()),channel_ids:#4:0.pipe($2())}).pipe($1({method:"GET",uri:"/admin.teams.settings.setDefaultChannels",code:200}))', [__0, __1, __2, __3, __d1, __4, __5, __d0, SlackError, SlackRateLimited, SlackProtocol, Retry.Retry]] : API.call(setDefaultChannels, i));
225
+
226
+ export const setDescription = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#5:0,errors:[$6,$7],protocol:$8,retry:$9};$4(>2)@"SetDescriptionRequest";$3({team_id:$2,description:$2}).pipe($1({method:"POST",uri:"/admin.teams.settings.setDescription",code:200}))', [__0, __1, __3, __4, __5, __d0, SlackError, SlackRateLimited, SlackProtocol, Retry.Retry]] : API.call(setDescription, i));
227
+
228
+ export const setDiscoverability = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#5:0,errors:[$6,$7],protocol:$8,retry:$9};$4(>2)@"SetDiscoverabilityRequest";$3({team_id:$2,discoverability:$2}).pipe($1({method:"POST",uri:"/admin.teams.settings.setDiscoverability",code:200}))', [__0, __1, __3, __4, __5, __d0, SlackError, SlackRateLimited, SlackProtocol, Retry.Retry]] : API.call(setDiscoverability, i));
229
+
230
+ export const setExpiration = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#7:0,errors:[$8,$9],protocol:$10,retry:$11};$6(>2)@"SetExpirationRequest";$5({team_id:$3($2),user_id:$2,expiration_ts:$4}).pipe($1({method:"POST",uri:"/admin.users.setExpiration",code:200}))', [__0, __1, __3, __7, __9, __4, __5, __d0, SlackError, SlackRateLimited, SlackProtocol, Retry.Retry]] : API.call(setExpiration, i));
231
+
232
+ export const setFunctionsPermissions = /*@__PURE__*/ API.op((i) => i === API.D ? API.named("SetFunctionsPermissionsRequest", '{input:#3,output:#8:0,errors:[$9,$10],protocol:$11,retry:$12};$5(>4)@"%PermissionsItem";$6(#1);$5(>5)@"%";$4({visibility:$1,permission_type:$1,user_ids:$3(#2:0)});$4({function_id:$1,visibility:$3($1),user_ids:$3(#2:0),permissions:$3(#2)}).pipe($7({method:"POST",uri:"/admin.functions.permissions.set",code:200}))', [__0, __3, __d1, __7, __4, __5, __8, __1, __d0, SlackError, SlackRateLimited, SlackProtocol, Retry.Retry]) : API.call(setFunctionsPermissions, i));
233
+
234
+ export const setIcon = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#6:0,errors:[$7,$8],protocol:$9,retry:$10};$5(>2)@"SetIconRequest";$4({image_url:$3.pipe($2()),team_id:$3.pipe($2())}).pipe($1({method:"GET",uri:"/admin.teams.settings.setIcon",code:200}))', [__0, __1, __2, __3, __4, __5, __d0, SlackError, SlackRateLimited, SlackProtocol, Retry.Retry]] : API.call(setIcon, i));
235
+
236
+ export const setName = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#5:0,errors:[$6,$7],protocol:$8,retry:$9};$4(>2)@"SetNameRequest";$3({team_id:$2,name:$2}).pipe($1({method:"POST",uri:"/admin.teams.settings.setName",code:200}))', [__0, __1, __3, __4, __5, __d0, SlackError, SlackRateLimited, SlackProtocol, Retry.Retry]] : API.call(setName, i));
237
+
238
+ export const setOwner = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#5:0,errors:[$6,$7],protocol:$8,retry:$9};$4(>2)@"SetOwnerRequest";$3({team_id:$2,user_id:$2}).pipe($1({method:"POST",uri:"/admin.users.setOwner",code:200}))', [__0, __1, __3, __4, __5, __d0, SlackError, SlackRateLimited, SlackProtocol, Retry.Retry]] : API.call(setOwner, i));
239
+
240
+ export const setRegular = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#5:0,errors:[$6,$7],protocol:$8,retry:$9};$4(>2)@"SetRegularRequest";$3({team_id:$2,user_id:$2}).pipe($1({method:"POST",uri:"/admin.users.setRegular",code:200}))', [__0, __1, __3, __4, __5, __d0, SlackError, SlackRateLimited, SlackProtocol, Retry.Retry]] : API.call(setRegular, i));
241
+
242
+ export const setSettings = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#8:0,errors:[$9,$10],protocol:$11,retry:$12};$7(>2)@"SetSettingsRequest";$6({user_ids:#2:0,duration:$4($3),desktop_app_browser_quit:$4($5)}).pipe($1({method:"POST",uri:"/admin.users.session.setSettings",code:200}))', [__0, __1, __d1, __9, __7, __6, __4, __5, __d0, SlackError, SlackRateLimited, SlackProtocol, Retry.Retry]] : API.call(setSettings, i));
243
+
244
+ export const setTeams = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#2,errors:[$8,$9],protocol:$10,retry:$11};$7(>3)@"SetTeamsRequest";$7(>4)@"SetTeamsResponse";$6({channel_id:$2,team_id:$3($2),target_team_ids:$3(#4:0),org_channel:$3($5)}).pipe($1({method:"POST",uri:"/admin.conversations.setTeams",code:200}));$6({ok:$5,channel:$2})', [__0, __1, __3, __7, __d1, __6, __4, __5, SlackError, SlackRateLimited, SlackProtocol, Retry.Retry]] : API.call(setTeams, i));
245
+
246
+ export const setWorkflowsTriggersTypesPermissions = /*@__PURE__*/ API.op((i) => i === API.D ? API.named("SetWorkflowsTriggersTypesPermissionsRequest", '{input:#2,output:#8:0,errors:[$9,$10],protocol:$11,retry:$12};$4(>3)@"%Permissions";$4(>4)@"%";$3({permissions:$2(#1:0)});$3({id:$6,visibility:$2($6),user_ids:$2(#7:0),permissions:$2(#1)}).pipe($5({method:"POST",uri:"/admin.workflows.triggers.types.permissions.set",code:200}))', [__0, __d11, __7, __4, __5, __1, __3, __d1, __d0, SlackError, SlackRateLimited, SlackProtocol, Retry.Retry]) : API.call(setWorkflowsTriggersTypesPermissions, i));
247
+
248
+ export const teamsSettingsInfo = /*@__PURE__*/ API.op((i) => i === API.D ? API.named("TeamsSettingsInfoResponse", '{input:#1,output:#4,errors:[$10,$11],protocol:$12,retry:$13};$4(>5)@"TeamsSettingsInfoRequest";$4(>6)@"%TeamItem";$8(#2);$4(>7)@"%";$3({team_id:$2}).pipe($1({method:"POST",uri:"/admin.teams.settings.info",code:200}));$3({id:$5($2),name:$5($2),domain:$5($2),email_domain:$5($2),icon:$5($6),enterprise_id:$5($2),enterprise_name:$5($2),default_channels:$5(#7:0)});$3({ok:$9,team:#3})', [__0, __1, __3, __4, __5, __7, __10, __d10, __8, __6, SlackError, SlackRateLimited, SlackProtocol, Retry.Retry]) : API.call(teamsSettingsInfo, i));
249
+
250
+ export const unarchiveConversation = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#5:0,errors:[$6,$7],protocol:$8,retry:$9};$4(>2)@"UnarchiveConversationRequest";$3({channel_id:$2}).pipe($1({method:"POST",uri:"/admin.conversations.unarchive",code:200}))', [__0, __1, __3, __4, __5, __d0, SlackError, SlackRateLimited, SlackProtocol, Retry.Retry]] : API.call(unarchiveConversation, i));
251
+
252
+ export const uninstallApp = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#6:0,errors:[$7,$8],protocol:$9,retry:$10};$5(>2)@"UninstallAppRequest";$4({app_id:$2,team_ids:$3($2),enterprise_id:$3($2)}).pipe($1({method:"POST",uri:"/admin.apps.uninstall",code:200}))', [__0, __1, __3, __7, __4, __5, __d0, SlackError, SlackRateLimited, SlackProtocol, Retry.Retry]] : API.call(uninstallApp, i));
253
+
254
+ export const unlinkObjects = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#5:0,errors:[$6,$7],protocol:$8,retry:$9};$4(>2)@"UnlinkObjectsRequest";$3({channel:$2,new_name:$2}).pipe($1({method:"POST",uri:"/admin.conversations.unlinkObjects",code:200}))', [__0, __1, __3, __4, __5, __d0, SlackError, SlackRateLimited, SlackProtocol, Retry.Retry]] : API.call(unlinkObjects, i));
255
+
256
+ export const unpublishWorkflow = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#5:0,errors:[$6,$7],protocol:$8,retry:$9};$4(>2)@"UnpublishWorkflowRequest";$3({workflow_ids:#2:0}).pipe($1({method:"POST",uri:"/admin.workflows.unpublish",code:200}))', [__0, __1, __d1, __4, __5, __d0, SlackError, SlackRateLimited, SlackProtocol, Retry.Retry]] : API.call(unpublishWorkflow, i));
257
+
258
+ export const updateBarrier = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#7:0,errors:[$8,$9],protocol:$10,retry:$11};$6(>2)@"UpdateBarrierRequest";$5({barrier_id:$2,primary_usergroup_id:$2,barriered_from_usergroup_ids:#3:0,restricted_subjects:#4:0}).pipe($1({method:"POST",uri:"/admin.barriers.update",code:200,contentType:"form-urlencoded"}))', [__0, __1, __3, __d1, __d7, __4, __5, __d6, SlackError, SlackRateLimited, SlackProtocol, Retry.Retry]] : API.call(updateBarrier, i));
259
+
260
+ export const updateItem = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#7:0,errors:[$8,$9],protocol:$10,retry:$11};$6(>2)@"UpdateItemRequest";$5({trusted_cidr:$3(#2:0),trusted_asns:$3(#4:0)}).pipe($1({method:"POST",uri:"/admin.audit.anomaly.allow.updateItem",code:200}))', [__0, __1, __d1, __7, __d9, __4, __5, __d0, SlackError, SlackRateLimited, SlackProtocol, Retry.Retry]] : API.call(updateItem, i));
261
+
262
+ export const updateUsergroup = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#2,errors:[$9,$10],protocol:$11,retry:$12};$6(>3)@"UpdateUsergroupRequest";$6(>4)@"UpdateUsergroupResponse";$5({id:$2,name:$3($2),handle:$3($2),description:$3($2),is_visible:$3($4)}).pipe($1({method:"POST",uri:"/admin.usergroups.update",code:200}));$5({ok:$4,subteam:$3($7),channel_limit_user_ids:$3(#8:0)})', [__0, __1, __3, __7, __6, __4, __5, __10, __d1, SlackError, SlackRateLimited, SlackProtocol, Retry.Retry]] : API.call(updateUsergroup, i));
263
+
264
+ export const uploadUsers = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#2,errors:[$10,$11],protocol:$12,retry:$13};$6(>3)@"UploadUsersRequest";$6(>4)@"UploadUsersResponse";$5({id:$2,file:$4($3)}).pipe($1({method:"POST",uri:"/admin.usergroups.uploadUsers",code:200}));$5({ok:$7,successful_user_count:$8,invalid_users:$4(#9:1)})', [__0, __1, __3, __10, __7, __4, __5, __6, __9, __d12, SlackError, SlackRateLimited, SlackProtocol, Retry.Retry]] : API.call(uploadUsers, i));
265
+ // Schema builders: each runs one schema initializer, on that schema's first use.
266
+ // Schema table: entry i is schema j of builder f, made on first reach.
267
+
268
+
269
+ // Shared schema data (see `op` in core/api).
270
+ function __d0() {
271
+ return ['$3(>1)@"AddAliasResponse";$2({ok:$1})', [__0, __6, __4, __5]];
272
+ }
273
+ function __d1() {
274
+ return ['$2($1)', [__0, __3, __8]];
275
+ }
276
+ function __d2() {
277
+ return ['$4(>1)@"AssignEntitiesResponse";$3({ok:$1,entity_total_count:$2})', [__0, __6, __9, __4, __5]];
278
+ }
279
+ function __d3() {
280
+ return ['$5(>1)@"BulkArchiveResponse";$4({ok:$1,bulk_action_id:$2,not_added:#3:1})', [__0, __6, __3, __d4, __4, __5]];
281
+ }
282
+ function __d4() {
283
+ return ['$4(>2)@"BulkArchiveResponseNotAddedItem";$5(#0);$3({channel_id:$1,errors:#2:0})', [__0, __3, __d1, __4, __5, __8]];
284
+ }
285
+ function __d5() {
286
+ return ['$5(>1)@"AddAssignmentsResponse";$4({ok:$1,error:$3($2)})', [__0, __6, __3, __7, __4, __5]];
287
+ }
288
+ function __d6() {
289
+ return ['$4(>1)@"CreateBarrierResponse";$3({ok:$1,barrier:$2})', [__0, __6, __10, __4, __5]];
290
+ }
291
+ function __d7() {
292
+ return ['$2($1)', [__0, __3, __8]];
293
+ }
294
+ function __d8() {
295
+ return ['$6(>1)@"AddChannelsResponse";$5({ok:$1,error:$3($2),invalid_channels:$3(#4:0)})', [__0, __6, __3, __7, __d1, __4, __5]];
296
+ }
297
+ function __d9() {
298
+ return ['$2($1)', [__0, __9, __8]];
299
+ }
300
+ function __d10() {
301
+ return ['$2($1)', [__0, __10, __8]];
302
+ }
303
+ function __d11() {
304
+ return ['$3($1,$2)', [__0, __3, __10, __12]];
305
+ }
306
+ function __d12() {
307
+ return ['$3(>2)@"AddUsersResponseInvalidUsersItem";$4(#0);$2({user_id:$1,reason:$1})', [__0, __3, __4, __5, __8]];
308
+ }
309
+ function __d13() {
310
+ return ['$4(>1)@"AnalyticsMessagesActivityResponseResponseMetadata";$3({next_cursor:$2($1)})', [__0, __3, __7, __4, __5]];
311
+ }