effect-slack 0.1.0

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 (167) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +322 -0
  3. package/dist/Errors.d.ts +103 -0
  4. package/dist/Errors.d.ts.map +1 -0
  5. package/dist/Errors.js +84 -0
  6. package/dist/Errors.js.map +1 -0
  7. package/dist/Retry.d.ts +63 -0
  8. package/dist/Retry.d.ts.map +1 -0
  9. package/dist/Retry.js +77 -0
  10. package/dist/Retry.js.map +1 -0
  11. package/dist/SlackClient.d.ts +19 -0
  12. package/dist/SlackClient.d.ts.map +1 -0
  13. package/dist/SlackClient.js +21 -0
  14. package/dist/SlackClient.js.map +1 -0
  15. package/dist/SlackConfig.d.ts +26 -0
  16. package/dist/SlackConfig.d.ts.map +1 -0
  17. package/dist/SlackConfig.js +19 -0
  18. package/dist/SlackConfig.js.map +1 -0
  19. package/dist/SlackService.d.ts +32 -0
  20. package/dist/SlackService.d.ts.map +1 -0
  21. package/dist/SlackService.js +135 -0
  22. package/dist/SlackService.js.map +1 -0
  23. package/dist/generated/AdminService.d.ts +174 -0
  24. package/dist/generated/AdminService.d.ts.map +1 -0
  25. package/dist/generated/AdminService.js +1029 -0
  26. package/dist/generated/AdminService.js.map +1 -0
  27. package/dist/generated/ApiService.d.ts +18 -0
  28. package/dist/generated/ApiService.d.ts.map +1 -0
  29. package/dist/generated/ApiService.js +27 -0
  30. package/dist/generated/ApiService.js.map +1 -0
  31. package/dist/generated/AppsService.d.ts +33 -0
  32. package/dist/generated/AppsService.d.ts.map +1 -0
  33. package/dist/generated/AppsService.js +105 -0
  34. package/dist/generated/AppsService.js.map +1 -0
  35. package/dist/generated/AssistantService.d.ts +22 -0
  36. package/dist/generated/AssistantService.d.ts.map +1 -0
  37. package/dist/generated/AssistantService.js +49 -0
  38. package/dist/generated/AssistantService.js.map +1 -0
  39. package/dist/generated/AuthService.d.ts +22 -0
  40. package/dist/generated/AuthService.d.ts.map +1 -0
  41. package/dist/generated/AuthService.js +46 -0
  42. package/dist/generated/AuthService.js.map +1 -0
  43. package/dist/generated/BookmarksService.d.ts +21 -0
  44. package/dist/generated/BookmarksService.d.ts.map +1 -0
  45. package/dist/generated/BookmarksService.js +57 -0
  46. package/dist/generated/BookmarksService.js.map +1 -0
  47. package/dist/generated/BotsService.d.ts +18 -0
  48. package/dist/generated/BotsService.d.ts.map +1 -0
  49. package/dist/generated/BotsService.js +27 -0
  50. package/dist/generated/BotsService.js.map +1 -0
  51. package/dist/generated/CallsService.d.ts +25 -0
  52. package/dist/generated/CallsService.d.ts.map +1 -0
  53. package/dist/generated/CallsService.js +76 -0
  54. package/dist/generated/CallsService.js.map +1 -0
  55. package/dist/generated/CanvasesService.d.ts +27 -0
  56. package/dist/generated/CanvasesService.d.ts.map +1 -0
  57. package/dist/generated/CanvasesService.js +81 -0
  58. package/dist/generated/CanvasesService.js.map +1 -0
  59. package/dist/generated/ChatService.d.ts +32 -0
  60. package/dist/generated/ChatService.d.ts.map +1 -0
  61. package/dist/generated/ChatService.js +149 -0
  62. package/dist/generated/ChatService.js.map +1 -0
  63. package/dist/generated/ConversationsService.d.ts +51 -0
  64. package/dist/generated/ConversationsService.d.ts.map +1 -0
  65. package/dist/generated/ConversationsService.js +303 -0
  66. package/dist/generated/ConversationsService.js.map +1 -0
  67. package/dist/generated/DialogService.d.ts +18 -0
  68. package/dist/generated/DialogService.d.ts.map +1 -0
  69. package/dist/generated/DialogService.js +27 -0
  70. package/dist/generated/DialogService.js.map +1 -0
  71. package/dist/generated/DndService.d.ts +22 -0
  72. package/dist/generated/DndService.d.ts.map +1 -0
  73. package/dist/generated/DndService.js +67 -0
  74. package/dist/generated/DndService.js.map +1 -0
  75. package/dist/generated/EmojiService.d.ts +18 -0
  76. package/dist/generated/EmojiService.d.ts.map +1 -0
  77. package/dist/generated/EmojiService.js +27 -0
  78. package/dist/generated/EmojiService.js.map +1 -0
  79. package/dist/generated/EntityService.d.ts +18 -0
  80. package/dist/generated/EntityService.d.ts.map +1 -0
  81. package/dist/generated/EntityService.js +27 -0
  82. package/dist/generated/EntityService.js.map +1 -0
  83. package/dist/generated/FilesService.d.ts +37 -0
  84. package/dist/generated/FilesService.d.ts.map +1 -0
  85. package/dist/generated/FilesService.js +182 -0
  86. package/dist/generated/FilesService.js.map +1 -0
  87. package/dist/generated/FunctionsService.d.ts +19 -0
  88. package/dist/generated/FunctionsService.d.ts.map +1 -0
  89. package/dist/generated/FunctionsService.js +37 -0
  90. package/dist/generated/FunctionsService.js.map +1 -0
  91. package/dist/generated/MigrationService.d.ts +18 -0
  92. package/dist/generated/MigrationService.d.ts.map +1 -0
  93. package/dist/generated/MigrationService.js +27 -0
  94. package/dist/generated/MigrationService.js.map +1 -0
  95. package/dist/generated/OauthService.d.ts +22 -0
  96. package/dist/generated/OauthService.d.ts.map +1 -0
  97. package/dist/generated/OauthService.js +50 -0
  98. package/dist/generated/OauthService.js.map +1 -0
  99. package/dist/generated/OpenidService.d.ts +21 -0
  100. package/dist/generated/OpenidService.d.ts.map +1 -0
  101. package/dist/generated/OpenidService.js +39 -0
  102. package/dist/generated/OpenidService.js.map +1 -0
  103. package/dist/generated/PinsService.d.ts +20 -0
  104. package/dist/generated/PinsService.d.ts.map +1 -0
  105. package/dist/generated/PinsService.js +47 -0
  106. package/dist/generated/PinsService.js.map +1 -0
  107. package/dist/generated/ReactionsService.d.ts +21 -0
  108. package/dist/generated/ReactionsService.d.ts.map +1 -0
  109. package/dist/generated/ReactionsService.js +57 -0
  110. package/dist/generated/ReactionsService.js.map +1 -0
  111. package/dist/generated/RemindersService.d.ts +22 -0
  112. package/dist/generated/RemindersService.d.ts.map +1 -0
  113. package/dist/generated/RemindersService.js +67 -0
  114. package/dist/generated/RemindersService.js.map +1 -0
  115. package/dist/generated/RtmService.d.ts +19 -0
  116. package/dist/generated/RtmService.d.ts.map +1 -0
  117. package/dist/generated/RtmService.js +38 -0
  118. package/dist/generated/RtmService.js.map +1 -0
  119. package/dist/generated/SearchService.d.ts +20 -0
  120. package/dist/generated/SearchService.d.ts.map +1 -0
  121. package/dist/generated/SearchService.js +47 -0
  122. package/dist/generated/SearchService.js.map +1 -0
  123. package/dist/generated/SlackListsService.d.ts +35 -0
  124. package/dist/generated/SlackListsService.d.ts.map +1 -0
  125. package/dist/generated/SlackListsService.js +143 -0
  126. package/dist/generated/SlackListsService.js.map +1 -0
  127. package/dist/generated/StarsService.d.ts +20 -0
  128. package/dist/generated/StarsService.d.ts.map +1 -0
  129. package/dist/generated/StarsService.js +50 -0
  130. package/dist/generated/StarsService.js.map +1 -0
  131. package/dist/generated/TeamService.d.ts +34 -0
  132. package/dist/generated/TeamService.d.ts.map +1 -0
  133. package/dist/generated/TeamService.js +115 -0
  134. package/dist/generated/TeamService.js.map +1 -0
  135. package/dist/generated/ToolingService.d.ts +20 -0
  136. package/dist/generated/ToolingService.d.ts.map +1 -0
  137. package/dist/generated/ToolingService.js +29 -0
  138. package/dist/generated/ToolingService.js.map +1 -0
  139. package/dist/generated/UsergroupsService.d.ts +26 -0
  140. package/dist/generated/UsergroupsService.d.ts.map +1 -0
  141. package/dist/generated/UsergroupsService.js +89 -0
  142. package/dist/generated/UsergroupsService.js.map +1 -0
  143. package/dist/generated/UsersService.d.ts +33 -0
  144. package/dist/generated/UsersService.d.ts.map +1 -0
  145. package/dist/generated/UsersService.js +141 -0
  146. package/dist/generated/UsersService.js.map +1 -0
  147. package/dist/generated/ViewsService.d.ts +21 -0
  148. package/dist/generated/ViewsService.d.ts.map +1 -0
  149. package/dist/generated/ViewsService.js +57 -0
  150. package/dist/generated/ViewsService.js.map +1 -0
  151. package/dist/generated/WorkflowsService.d.ts +26 -0
  152. package/dist/generated/WorkflowsService.d.ts.map +1 -0
  153. package/dist/generated/WorkflowsService.js +92 -0
  154. package/dist/generated/WorkflowsService.js.map +1 -0
  155. package/dist/generated/index.d.ts +38 -0
  156. package/dist/generated/index.d.ts.map +1 -0
  157. package/dist/generated/index.js +38 -0
  158. package/dist/generated/index.js.map +1 -0
  159. package/dist/index.d.ts +8 -0
  160. package/dist/index.d.ts.map +1 -0
  161. package/dist/index.js +11 -0
  162. package/dist/index.js.map +1 -0
  163. package/dist/internal/errors.d.ts +13 -0
  164. package/dist/internal/errors.d.ts.map +1 -0
  165. package/dist/internal/errors.js +68 -0
  166. package/dist/internal/errors.js.map +1 -0
  167. package/package.json +80 -0
@@ -0,0 +1,1029 @@
1
+ /**
2
+ * Generated Slack Admin Service
3
+ * DO NOT EDIT - This file is auto-generated by scripts/generate-services.ts
4
+ */
5
+ import { Effect } from "effect";
6
+ import { SlackClient } from "../SlackClient.js";
7
+ import { mapSlackError, annotateSpanWithError } from "../internal/errors.js";
8
+ export class AdminService extends Effect.Service()("effect-slack/AdminService", {
9
+ effect: Effect.gen(function* () {
10
+ const client = yield* SlackClient;
11
+ /**
12
+ * Retrieve analytics data for a given date, presented as a compressed JSON file.
13
+ */
14
+ const AnalyticsGetFile = (args) => Effect.tryPromise({
15
+ try: () => client.admin.analytics.getFile(args),
16
+ catch: mapSlackError
17
+ }).pipe(Effect.tapError(annotateSpanWithError), Effect.withSpan("AdminService.analytics.getFile", {
18
+ attributes: { "slack.method": "admin.analytics.getFile" }
19
+ }));
20
+ /**
21
+ * Approve an app for installation on a workspace.
22
+ */
23
+ const AppsApprove = (args) => Effect.tryPromise({
24
+ try: () => client.admin.apps.approve(args),
25
+ catch: mapSlackError
26
+ }).pipe(Effect.tapError(annotateSpanWithError), Effect.withSpan("AdminService.apps.approve", {
27
+ attributes: { "slack.method": "admin.apps.approve" }
28
+ }));
29
+ /**
30
+ * Clear an app resolution.
31
+ */
32
+ const AppsClearResolution = (args) => Effect.tryPromise({
33
+ try: () => client.admin.apps.clearResolution(args),
34
+ catch: mapSlackError
35
+ }).pipe(Effect.tapError(annotateSpanWithError), Effect.withSpan("AdminService.apps.clearResolution", {
36
+ attributes: { "slack.method": "admin.apps.clearResolution" }
37
+ }));
38
+ /**
39
+ * Restrict an app for installation on a workspace.
40
+ */
41
+ const AppsRestrict = (args) => Effect.tryPromise({
42
+ try: () => client.admin.apps.restrict(args),
43
+ catch: mapSlackError
44
+ }).pipe(Effect.tapError(annotateSpanWithError), Effect.withSpan("AdminService.apps.restrict", {
45
+ attributes: { "slack.method": "admin.apps.restrict" }
46
+ }));
47
+ /**
48
+ * Uninstall an app from one or many workspaces, or an entire enterprise organization.
49
+ */
50
+ const AppsUninstall = (args) => Effect.tryPromise({
51
+ try: () => client.admin.apps.uninstall(args),
52
+ catch: mapSlackError
53
+ }).pipe(Effect.tapError(annotateSpanWithError), Effect.withSpan("AdminService.apps.uninstall", {
54
+ attributes: { "slack.method": "admin.apps.uninstall" }
55
+ }));
56
+ /**
57
+ * Get logs for a specified team/org.
58
+ */
59
+ const AppsActivitiesList = (args) => Effect.tryPromise({
60
+ try: () => client.admin.apps.activities.list(args),
61
+ catch: mapSlackError
62
+ }).pipe(Effect.tapError(annotateSpanWithError), Effect.withSpan("AdminService.apps.activities.list", {
63
+ attributes: { "slack.method": "admin.apps.activities.list" }
64
+ }));
65
+ /**
66
+ * List approved apps for an org or workspace.
67
+ */
68
+ const AppsApprovedList = (args) => Effect.tryPromise({
69
+ try: () => client.admin.apps.approved.list(args),
70
+ catch: mapSlackError
71
+ }).pipe(Effect.tapError(annotateSpanWithError), Effect.withSpan("AdminService.apps.approved.list", {
72
+ attributes: { "slack.method": "admin.apps.approved.list" }
73
+ }));
74
+ /**
75
+ * Look up the app config for connectors by their IDs.
76
+ */
77
+ const AppsConfigLookup = (args) => Effect.tryPromise({
78
+ try: () => client.admin.apps.config.lookup(args),
79
+ catch: mapSlackError
80
+ }).pipe(Effect.tapError(annotateSpanWithError), Effect.withSpan("AdminService.apps.config.lookup", {
81
+ attributes: { "slack.method": "admin.apps.config.lookup" }
82
+ }));
83
+ /**
84
+ * Set the app config for a connector.
85
+ */
86
+ const AppsConfigSet = (args) => Effect.tryPromise({
87
+ try: () => client.admin.apps.config.set(args),
88
+ catch: mapSlackError
89
+ }).pipe(Effect.tapError(annotateSpanWithError), Effect.withSpan("AdminService.apps.config.set", {
90
+ attributes: { "slack.method": "admin.apps.config.set" }
91
+ }));
92
+ /**
93
+ * Cancel app request for team.
94
+ */
95
+ const AppsRequestsCancel = (args) => Effect.tryPromise({
96
+ try: () => client.admin.apps.requests.cancel(args),
97
+ catch: mapSlackError
98
+ }).pipe(Effect.tapError(annotateSpanWithError), Effect.withSpan("AdminService.apps.requests.cancel", {
99
+ attributes: { "slack.method": "admin.apps.requests.cancel" }
100
+ }));
101
+ /**
102
+ * List app requests for a team/workspace.
103
+ */
104
+ const AppsRequestsList = (args) => Effect.tryPromise({
105
+ try: () => client.admin.apps.requests.list(args),
106
+ catch: mapSlackError
107
+ }).pipe(Effect.tapError(annotateSpanWithError), Effect.withSpan("AdminService.apps.requests.list", {
108
+ attributes: { "slack.method": "admin.apps.requests.list" }
109
+ }));
110
+ /**
111
+ * List restricted apps for an org or workspace.
112
+ */
113
+ const AppsRestrictedList = (args) => Effect.tryPromise({
114
+ try: () => client.admin.apps.restricted.list(args),
115
+ catch: mapSlackError
116
+ }).pipe(Effect.tapError(annotateSpanWithError), Effect.withSpan("AdminService.apps.restricted.list", {
117
+ attributes: { "slack.method": "admin.apps.restricted.list" }
118
+ }));
119
+ /**
120
+ * Assign entities to a particular authentication policy.
121
+ */
122
+ const AuthPolicyAssignEntities = (args) => Effect.tryPromise({
123
+ try: () => client.admin.auth.policy.assignEntities(args),
124
+ catch: mapSlackError
125
+ }).pipe(Effect.tapError(annotateSpanWithError), Effect.withSpan("AdminService.auth.policy.assignEntities", {
126
+ attributes: { "slack.method": "admin.auth.policy.assignEntities" }
127
+ }));
128
+ /**
129
+ * Fetch all the entities assigned to a particular authentication policy by name.
130
+ */
131
+ const AuthPolicyGetEntities = (args) => Effect.tryPromise({
132
+ try: () => client.admin.auth.policy.getEntities(args),
133
+ catch: mapSlackError
134
+ }).pipe(Effect.tapError(annotateSpanWithError), Effect.withSpan("AdminService.auth.policy.getEntities", {
135
+ attributes: { "slack.method": "admin.auth.policy.getEntities" }
136
+ }));
137
+ /**
138
+ * Remove specified entities from a specified authentication policy.
139
+ */
140
+ const AuthPolicyRemoveEntities = (args) => Effect.tryPromise({
141
+ try: () => client.admin.auth.policy.removeEntities(args),
142
+ catch: mapSlackError
143
+ }).pipe(Effect.tapError(annotateSpanWithError), Effect.withSpan("AdminService.auth.policy.removeEntities", {
144
+ attributes: { "slack.method": "admin.auth.policy.removeEntities" }
145
+ }));
146
+ /**
147
+ * Create an Information Barrier.
148
+ */
149
+ const BarriersCreate = (args) => Effect.tryPromise({
150
+ try: () => client.admin.barriers.create(args),
151
+ catch: mapSlackError
152
+ }).pipe(Effect.tapError(annotateSpanWithError), Effect.withSpan("AdminService.barriers.create", {
153
+ attributes: { "slack.method": "admin.barriers.create" }
154
+ }));
155
+ /**
156
+ * Delete an existing Information Barrier.
157
+ */
158
+ const BarriersDelete_ = (args) => Effect.tryPromise({
159
+ try: () => client.admin.barriers.delete(args),
160
+ catch: mapSlackError
161
+ }).pipe(Effect.tapError(annotateSpanWithError), Effect.withSpan("AdminService.barriers.delete_", {
162
+ attributes: { "slack.method": "admin.barriers.delete" }
163
+ }));
164
+ /**
165
+ * Get all Information Barriers for your organization.
166
+ */
167
+ const BarriersList = (args) => Effect.tryPromise({
168
+ try: () => client.admin.barriers.list(args),
169
+ catch: mapSlackError
170
+ }).pipe(Effect.tapError(annotateSpanWithError), Effect.withSpan("AdminService.barriers.list", {
171
+ attributes: { "slack.method": "admin.barriers.list" }
172
+ }));
173
+ /**
174
+ * Update an existing Information Barrier.
175
+ */
176
+ const BarriersUpdate = (args) => Effect.tryPromise({
177
+ try: () => client.admin.barriers.update(args),
178
+ catch: mapSlackError
179
+ }).pipe(Effect.tapError(annotateSpanWithError), Effect.withSpan("AdminService.barriers.update", {
180
+ attributes: { "slack.method": "admin.barriers.update" }
181
+ }));
182
+ /**
183
+ * Archive a public or private channel.
184
+ */
185
+ const ConversationsArchive = (args) => Effect.tryPromise({
186
+ try: () => client.admin.conversations.archive(args),
187
+ catch: mapSlackError
188
+ }).pipe(Effect.tapError(annotateSpanWithError), Effect.withSpan("AdminService.conversations.archive", {
189
+ attributes: { "slack.method": "admin.conversations.archive" }
190
+ }));
191
+ /**
192
+ * Archive public or private channels in bulk.
193
+ */
194
+ const ConversationsBulkArchive = (args) => Effect.tryPromise({
195
+ try: () => client.admin.conversations.bulkArchive(args),
196
+ catch: mapSlackError
197
+ }).pipe(Effect.tapError(annotateSpanWithError), Effect.withSpan("AdminService.conversations.bulkArchive", {
198
+ attributes: { "slack.method": "admin.conversations.bulkArchive" }
199
+ }));
200
+ /**
201
+ * Delete public or private channels in bulk.
202
+ */
203
+ const ConversationsBulkDelete = (args) => Effect.tryPromise({
204
+ try: () => client.admin.conversations.bulkDelete(args),
205
+ catch: mapSlackError
206
+ }).pipe(Effect.tapError(annotateSpanWithError), Effect.withSpan("AdminService.conversations.bulkDelete", {
207
+ attributes: { "slack.method": "admin.conversations.bulkDelete" }
208
+ }));
209
+ /**
210
+ * Move public or private channels in bulk.
211
+ */
212
+ const ConversationsBulkMove = (args) => Effect.tryPromise({
213
+ try: () => client.admin.conversations.bulkMove(args),
214
+ catch: mapSlackError
215
+ }).pipe(Effect.tapError(annotateSpanWithError), Effect.withSpan("AdminService.conversations.bulkMove", {
216
+ attributes: { "slack.method": "admin.conversations.bulkMove" }
217
+ }));
218
+ /**
219
+ * Convert a public channel to a private channel.
220
+ */
221
+ const ConversationsConvertToPrivate = (args) => Effect.tryPromise({
222
+ try: () => client.admin.conversations.convertToPrivate(args),
223
+ catch: mapSlackError
224
+ }).pipe(Effect.tapError(annotateSpanWithError), Effect.withSpan("AdminService.conversations.convertToPrivate", {
225
+ attributes: { "slack.method": "admin.conversations.convertToPrivate" }
226
+ }));
227
+ /**
228
+ * Convert a private channel to a public channel.
229
+ */
230
+ const ConversationsConvertToPublic = (args) => Effect.tryPromise({
231
+ try: () => client.admin.conversations.convertToPublic(args),
232
+ catch: mapSlackError
233
+ }).pipe(Effect.tapError(annotateSpanWithError), Effect.withSpan("AdminService.conversations.convertToPublic", {
234
+ attributes: { "slack.method": "admin.conversations.convertToPublic" }
235
+ }));
236
+ /**
237
+ * Create a public or private channel-based conversation.
238
+ */
239
+ const ConversationsCreate = (args) => Effect.tryPromise({
240
+ try: () => client.admin.conversations.create(args),
241
+ catch: mapSlackError
242
+ }).pipe(Effect.tapError(annotateSpanWithError), Effect.withSpan("AdminService.conversations.create", {
243
+ attributes: { "slack.method": "admin.conversations.create" }
244
+ }));
245
+ /**
246
+ * Delete a public or private channel.
247
+ */
248
+ const ConversationsDelete_ = (args) => Effect.tryPromise({
249
+ try: () => client.admin.conversations.delete(args),
250
+ catch: mapSlackError
251
+ }).pipe(Effect.tapError(annotateSpanWithError), Effect.withSpan("AdminService.conversations.delete_", {
252
+ attributes: { "slack.method": "admin.conversations.delete" }
253
+ }));
254
+ /**
255
+ * Disconnect a connected channel from one or more workspaces.
256
+ */
257
+ const ConversationsDisconnectShared = (args) => Effect.tryPromise({
258
+ try: () => client.admin.conversations.disconnectShared(args),
259
+ catch: mapSlackError
260
+ }).pipe(Effect.tapError(annotateSpanWithError), Effect.withSpan("AdminService.conversations.disconnectShared", {
261
+ attributes: { "slack.method": "admin.conversations.disconnectShared" }
262
+ }));
263
+ /**
264
+ * Get conversation preferences for a public or private channel.
265
+ */
266
+ const ConversationsGetConversationPrefs = (args) => Effect.tryPromise({
267
+ try: () => client.admin.conversations.getConversationPrefs(args),
268
+ catch: mapSlackError
269
+ }).pipe(Effect.tapError(annotateSpanWithError), Effect.withSpan("AdminService.conversations.getConversationPrefs", {
270
+ attributes: { "slack.method": "admin.conversations.getConversationPrefs" }
271
+ }));
272
+ /**
273
+ * Get a conversation's retention policy.
274
+ */
275
+ const ConversationsGetCustomRetention = (args) => Effect.tryPromise({
276
+ try: () => client.admin.conversations.getCustomRetention(args),
277
+ catch: mapSlackError
278
+ }).pipe(Effect.tapError(annotateSpanWithError), Effect.withSpan("AdminService.conversations.getCustomRetention", {
279
+ attributes: { "slack.method": "admin.conversations.getCustomRetention" }
280
+ }));
281
+ /**
282
+ * Get all the workspaces a given public or private channel is connected to within this Enterprise org.
283
+ */
284
+ const ConversationsGetTeams = (args) => Effect.tryPromise({
285
+ try: () => client.admin.conversations.getTeams(args),
286
+ catch: mapSlackError
287
+ }).pipe(Effect.tapError(annotateSpanWithError), Effect.withSpan("AdminService.conversations.getTeams", {
288
+ attributes: { "slack.method": "admin.conversations.getTeams" }
289
+ }));
290
+ /**
291
+ * Invite a user to a public or private channel.
292
+ */
293
+ const ConversationsInvite = (args) => Effect.tryPromise({
294
+ try: () => client.admin.conversations.invite(args),
295
+ catch: mapSlackError
296
+ }).pipe(Effect.tapError(annotateSpanWithError), Effect.withSpan("AdminService.conversations.invite", {
297
+ attributes: { "slack.method": "admin.conversations.invite" }
298
+ }));
299
+ /**
300
+ * Returns channels on the given team using the filters.
301
+ */
302
+ const ConversationsLookup = (args) => Effect.tryPromise({
303
+ try: () => client.admin.conversations.lookup(args),
304
+ catch: mapSlackError
305
+ }).pipe(Effect.tapError(annotateSpanWithError), Effect.withSpan("AdminService.conversations.lookup", {
306
+ attributes: { "slack.method": "admin.conversations.lookup" }
307
+ }));
308
+ /**
309
+ * Remove a conversation's retention policy.
310
+ */
311
+ const ConversationsRemoveCustomRetention = (args) => Effect.tryPromise({
312
+ try: () => client.admin.conversations.removeCustomRetention(args),
313
+ catch: mapSlackError
314
+ }).pipe(Effect.tapError(annotateSpanWithError), Effect.withSpan("AdminService.conversations.removeCustomRetention", {
315
+ attributes: { "slack.method": "admin.conversations.removeCustomRetention" }
316
+ }));
317
+ /**
318
+ * Rename a public or private channel.
319
+ */
320
+ const ConversationsRename = (args) => Effect.tryPromise({
321
+ try: () => client.admin.conversations.rename(args),
322
+ catch: mapSlackError
323
+ }).pipe(Effect.tapError(annotateSpanWithError), Effect.withSpan("AdminService.conversations.rename", {
324
+ attributes: { "slack.method": "admin.conversations.rename" }
325
+ }));
326
+ /**
327
+ * Search for public or private channels in an Enterprise organization.
328
+ */
329
+ const ConversationsSearch = (args) => Effect.tryPromise({
330
+ try: () => client.admin.conversations.search(args),
331
+ catch: mapSlackError
332
+ }).pipe(Effect.tapError(annotateSpanWithError), Effect.withSpan("AdminService.conversations.search", {
333
+ attributes: { "slack.method": "admin.conversations.search" }
334
+ }));
335
+ /**
336
+ * Set the posting permissions for a public or private channel.
337
+ */
338
+ const ConversationsSetConversationPrefs = (args) => Effect.tryPromise({
339
+ try: () => client.admin.conversations.setConversationPrefs(args),
340
+ catch: mapSlackError
341
+ }).pipe(Effect.tapError(annotateSpanWithError), Effect.withSpan("AdminService.conversations.setConversationPrefs", {
342
+ attributes: { "slack.method": "admin.conversations.setConversationPrefs" }
343
+ }));
344
+ /**
345
+ * Set a conversation's retention policy.
346
+ */
347
+ const ConversationsSetCustomRetention = (args) => Effect.tryPromise({
348
+ try: () => client.admin.conversations.setCustomRetention(args),
349
+ catch: mapSlackError
350
+ }).pipe(Effect.tapError(annotateSpanWithError), Effect.withSpan("AdminService.conversations.setCustomRetention", {
351
+ attributes: { "slack.method": "admin.conversations.setCustomRetention" }
352
+ }));
353
+ /**
354
+ * Set the workspaces in an Enterprise grid org that connect to a public or private channel.
355
+ */
356
+ const ConversationsSetTeams = (args) => Effect.tryPromise({
357
+ try: () => client.admin.conversations.setTeams(args),
358
+ catch: mapSlackError
359
+ }).pipe(Effect.tapError(annotateSpanWithError), Effect.withSpan("AdminService.conversations.setTeams", {
360
+ attributes: { "slack.method": "admin.conversations.setTeams" }
361
+ }));
362
+ /**
363
+ * Unarchive a public or private channel.
364
+ */
365
+ const ConversationsUnarchive = (args) => Effect.tryPromise({
366
+ try: () => client.admin.conversations.unarchive(args),
367
+ catch: mapSlackError
368
+ }).pipe(Effect.tapError(annotateSpanWithError), Effect.withSpan("AdminService.conversations.unarchive", {
369
+ attributes: { "slack.method": "admin.conversations.unarchive" }
370
+ }));
371
+ /**
372
+ * 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.
373
+ */
374
+ const ConversationsEkmListOriginalConnectedChannelInfo = (args) => Effect.tryPromise({
375
+ try: () => client.admin.conversations.ekm.listOriginalConnectedChannelInfo(args),
376
+ catch: mapSlackError
377
+ }).pipe(Effect.tapError(annotateSpanWithError), Effect.withSpan("AdminService.conversations.ekm.listOriginalConnectedChannelInfo", {
378
+ attributes: { "slack.method": "admin.conversations.ekm.listOriginalConnectedChannelInfo" }
379
+ }));
380
+ /**
381
+ * Add an allowlist of IDP groups for accessing a channel.
382
+ */
383
+ const ConversationsRestrictAccessAddGroup = (args) => Effect.tryPromise({
384
+ try: () => client.admin.conversations.restrictAccess.addGroup(args),
385
+ catch: mapSlackError
386
+ }).pipe(Effect.tapError(annotateSpanWithError), Effect.withSpan("AdminService.conversations.restrictAccess.addGroup", {
387
+ attributes: { "slack.method": "admin.conversations.restrictAccess.addGroup" }
388
+ }));
389
+ /**
390
+ * List all IDP Groups linked to a channel.
391
+ */
392
+ const ConversationsRestrictAccessListGroups = (args) => Effect.tryPromise({
393
+ try: () => client.admin.conversations.restrictAccess.listGroups(args),
394
+ catch: mapSlackError
395
+ }).pipe(Effect.tapError(annotateSpanWithError), Effect.withSpan("AdminService.conversations.restrictAccess.listGroups", {
396
+ attributes: { "slack.method": "admin.conversations.restrictAccess.listGroups" }
397
+ }));
398
+ /**
399
+ * Remove a linked IDP group linked from a private channel.
400
+ */
401
+ const ConversationsRestrictAccessRemoveGroup = (args) => Effect.tryPromise({
402
+ try: () => client.admin.conversations.restrictAccess.removeGroup(args),
403
+ catch: mapSlackError
404
+ }).pipe(Effect.tapError(annotateSpanWithError), Effect.withSpan("AdminService.conversations.restrictAccess.removeGroup", {
405
+ attributes: { "slack.method": "admin.conversations.restrictAccess.removeGroup" }
406
+ }));
407
+ /**
408
+ * Add an emoji.
409
+ */
410
+ const EmojiAdd = (args) => Effect.tryPromise({
411
+ try: () => client.admin.emoji.add(args),
412
+ catch: mapSlackError
413
+ }).pipe(Effect.tapError(annotateSpanWithError), Effect.withSpan("AdminService.emoji.add", {
414
+ attributes: { "slack.method": "admin.emoji.add" }
415
+ }));
416
+ /**
417
+ * Add an emoji alias.
418
+ */
419
+ const EmojiAddAlias = (args) => Effect.tryPromise({
420
+ try: () => client.admin.emoji.addAlias(args),
421
+ catch: mapSlackError
422
+ }).pipe(Effect.tapError(annotateSpanWithError), Effect.withSpan("AdminService.emoji.addAlias", {
423
+ attributes: { "slack.method": "admin.emoji.addAlias" }
424
+ }));
425
+ /**
426
+ * List emoji for an Enterprise Grid organization.
427
+ */
428
+ const EmojiList = (args) => Effect.tryPromise({
429
+ try: () => client.admin.emoji.list(args),
430
+ catch: mapSlackError
431
+ }).pipe(Effect.tapError(annotateSpanWithError), Effect.withSpan("AdminService.emoji.list", {
432
+ attributes: { "slack.method": "admin.emoji.list" }
433
+ }));
434
+ /**
435
+ * Remove an emoji across an Enterprise Grid organization.
436
+ */
437
+ const EmojiRemove = (args) => Effect.tryPromise({
438
+ try: () => client.admin.emoji.remove(args),
439
+ catch: mapSlackError
440
+ }).pipe(Effect.tapError(annotateSpanWithError), Effect.withSpan("AdminService.emoji.remove", {
441
+ attributes: { "slack.method": "admin.emoji.remove" }
442
+ }));
443
+ /**
444
+ * Rename an emoji.
445
+ */
446
+ const EmojiRename = (args) => Effect.tryPromise({
447
+ try: () => client.admin.emoji.rename(args),
448
+ catch: mapSlackError
449
+ }).pipe(Effect.tapError(annotateSpanWithError), Effect.withSpan("AdminService.emoji.rename", {
450
+ attributes: { "slack.method": "admin.emoji.rename" }
451
+ }));
452
+ /**
453
+ * Look up functions by a set of apps.
454
+ */
455
+ const FunctionsList = (args) => Effect.tryPromise({
456
+ try: () => client.admin.functions.list(args),
457
+ catch: mapSlackError
458
+ }).pipe(Effect.tapError(annotateSpanWithError), Effect.withSpan("AdminService.functions.list", {
459
+ attributes: { "slack.method": "admin.functions.list" }
460
+ }));
461
+ /**
462
+ * Lookup the visibility of multiple Slack functions and include the users if it is limited to particular named entities.
463
+ */
464
+ const FunctionsPermissionsLookup = (args) => Effect.tryPromise({
465
+ try: () => client.admin.functions.permissions.lookup(args),
466
+ catch: mapSlackError
467
+ }).pipe(Effect.tapError(annotateSpanWithError), Effect.withSpan("AdminService.functions.permissions.lookup", {
468
+ attributes: { "slack.method": "admin.functions.permissions.lookup" }
469
+ }));
470
+ /**
471
+ * Set the visibility of a Slack function and define the users or workspaces if it is set to named_entities.
472
+ */
473
+ const FunctionsPermissionsSet = (args) => Effect.tryPromise({
474
+ try: () => client.admin.functions.permissions.set(args),
475
+ catch: mapSlackError
476
+ }).pipe(Effect.tapError(annotateSpanWithError), Effect.withSpan("AdminService.functions.permissions.set", {
477
+ attributes: { "slack.method": "admin.functions.permissions.set" }
478
+ }));
479
+ /**
480
+ * Approve a workspace invite request.
481
+ */
482
+ const InviteRequestsApprove = (args) => Effect.tryPromise({
483
+ try: () => client.admin.inviteRequests.approve(args),
484
+ catch: mapSlackError
485
+ }).pipe(Effect.tapError(annotateSpanWithError), Effect.withSpan("AdminService.inviteRequests.approve", {
486
+ attributes: { "slack.method": "admin.inviteRequests.approve" }
487
+ }));
488
+ /**
489
+ * Deny a workspace invite request.
490
+ */
491
+ const InviteRequestsDeny = (args) => Effect.tryPromise({
492
+ try: () => client.admin.inviteRequests.deny(args),
493
+ catch: mapSlackError
494
+ }).pipe(Effect.tapError(annotateSpanWithError), Effect.withSpan("AdminService.inviteRequests.deny", {
495
+ attributes: { "slack.method": "admin.inviteRequests.deny" }
496
+ }));
497
+ /**
498
+ * List all pending workspace invite requests.
499
+ */
500
+ const InviteRequestsList = (args) => Effect.tryPromise({
501
+ try: () => client.admin.inviteRequests.list(args),
502
+ catch: mapSlackError
503
+ }).pipe(Effect.tapError(annotateSpanWithError), Effect.withSpan("AdminService.inviteRequests.list", {
504
+ attributes: { "slack.method": "admin.inviteRequests.list" }
505
+ }));
506
+ /**
507
+ * List all approved workspace invite requests.
508
+ */
509
+ const InviteRequestsApprovedList = (args) => Effect.tryPromise({
510
+ try: () => client.admin.inviteRequests.approved.list(args),
511
+ catch: mapSlackError
512
+ }).pipe(Effect.tapError(annotateSpanWithError), Effect.withSpan("AdminService.inviteRequests.approved.list", {
513
+ attributes: { "slack.method": "admin.inviteRequests.approved.list" }
514
+ }));
515
+ /**
516
+ * List all denied workspace invite requests.
517
+ */
518
+ const InviteRequestsDeniedList = (args) => Effect.tryPromise({
519
+ try: () => client.admin.inviteRequests.denied.list(args),
520
+ catch: mapSlackError
521
+ }).pipe(Effect.tapError(annotateSpanWithError), Effect.withSpan("AdminService.inviteRequests.denied.list", {
522
+ attributes: { "slack.method": "admin.inviteRequests.denied.list" }
523
+ }));
524
+ /**
525
+ * Adds members to the specified role with the specified scopes.
526
+ */
527
+ const RolesAddAssignments = (args) => Effect.tryPromise({
528
+ try: () => client.admin.roles.addAssignments(args),
529
+ catch: mapSlackError
530
+ }).pipe(Effect.tapError(annotateSpanWithError), Effect.withSpan("AdminService.roles.addAssignments", {
531
+ attributes: { "slack.method": "admin.roles.addAssignments" }
532
+ }));
533
+ /**
534
+ * Lists assignments for all roles across entities. Options to scope results by any combination of roles or entities.
535
+ */
536
+ const RolesListAssignments = (args) => Effect.tryPromise({
537
+ try: () => client.admin.roles.listAssignments(args),
538
+ catch: mapSlackError
539
+ }).pipe(Effect.tapError(annotateSpanWithError), Effect.withSpan("AdminService.roles.listAssignments", {
540
+ attributes: { "slack.method": "admin.roles.listAssignments" }
541
+ }));
542
+ /**
543
+ * Removes a set of users from a role for the given scopes and entities.
544
+ */
545
+ const RolesRemoveAssignments = (args) => Effect.tryPromise({
546
+ try: () => client.admin.roles.removeAssignments(args),
547
+ catch: mapSlackError
548
+ }).pipe(Effect.tapError(annotateSpanWithError), Effect.withSpan("AdminService.roles.removeAssignments", {
549
+ attributes: { "slack.method": "admin.roles.removeAssignments" }
550
+ }));
551
+ /**
552
+ * Create an Enterprise team.
553
+ */
554
+ const TeamsCreate = (args) => Effect.tryPromise({
555
+ try: () => client.admin.teams.create(args),
556
+ catch: mapSlackError
557
+ }).pipe(Effect.tapError(annotateSpanWithError), Effect.withSpan("AdminService.teams.create", {
558
+ attributes: { "slack.method": "admin.teams.create" }
559
+ }));
560
+ /**
561
+ * List all teams on an Enterprise organization.
562
+ */
563
+ const TeamsList = (args) => Effect.tryPromise({
564
+ try: () => client.admin.teams.list(args),
565
+ catch: mapSlackError
566
+ }).pipe(Effect.tapError(annotateSpanWithError), Effect.withSpan("AdminService.teams.list", {
567
+ attributes: { "slack.method": "admin.teams.list" }
568
+ }));
569
+ /**
570
+ * List all of the admins on a given workspace.
571
+ */
572
+ const TeamsAdminsList = (args) => Effect.tryPromise({
573
+ try: () => client.admin.teams.admins.list(args),
574
+ catch: mapSlackError
575
+ }).pipe(Effect.tapError(annotateSpanWithError), Effect.withSpan("AdminService.teams.admins.list", {
576
+ attributes: { "slack.method": "admin.teams.admins.list" }
577
+ }));
578
+ /**
579
+ * List all of the owners on a given workspace.
580
+ */
581
+ const TeamsOwnersList = (args) => Effect.tryPromise({
582
+ try: () => client.admin.teams.owners.list(args),
583
+ catch: mapSlackError
584
+ }).pipe(Effect.tapError(annotateSpanWithError), Effect.withSpan("AdminService.teams.owners.list", {
585
+ attributes: { "slack.method": "admin.teams.owners.list" }
586
+ }));
587
+ /**
588
+ * Fetch information about settings in a workspace.
589
+ */
590
+ const TeamsSettingsInfo = (args) => Effect.tryPromise({
591
+ try: () => client.admin.teams.settings.info(args),
592
+ catch: mapSlackError
593
+ }).pipe(Effect.tapError(annotateSpanWithError), Effect.withSpan("AdminService.teams.settings.info", {
594
+ attributes: { "slack.method": "admin.teams.settings.info" }
595
+ }));
596
+ /**
597
+ * Set the default channels of a workspace.
598
+ */
599
+ const TeamsSettingsSetDefaultChannels = (args) => Effect.tryPromise({
600
+ try: () => client.admin.teams.settings.setDefaultChannels(args),
601
+ catch: mapSlackError
602
+ }).pipe(Effect.tapError(annotateSpanWithError), Effect.withSpan("AdminService.teams.settings.setDefaultChannels", {
603
+ attributes: { "slack.method": "admin.teams.settings.setDefaultChannels" }
604
+ }));
605
+ /**
606
+ * Set the description of a given workspace.
607
+ */
608
+ const TeamsSettingsSetDescription = (args) => Effect.tryPromise({
609
+ try: () => client.admin.teams.settings.setDescription(args),
610
+ catch: mapSlackError
611
+ }).pipe(Effect.tapError(annotateSpanWithError), Effect.withSpan("AdminService.teams.settings.setDescription", {
612
+ attributes: { "slack.method": "admin.teams.settings.setDescription" }
613
+ }));
614
+ /**
615
+ * Set the discoverability of a given workspace.
616
+ */
617
+ const TeamsSettingsSetDiscoverability = (args) => Effect.tryPromise({
618
+ try: () => client.admin.teams.settings.setDiscoverability(args),
619
+ catch: mapSlackError
620
+ }).pipe(Effect.tapError(annotateSpanWithError), Effect.withSpan("AdminService.teams.settings.setDiscoverability", {
621
+ attributes: { "slack.method": "admin.teams.settings.setDiscoverability" }
622
+ }));
623
+ /**
624
+ * Sets the icon of a workspace.
625
+ */
626
+ const TeamsSettingsSetIcon = (args) => Effect.tryPromise({
627
+ try: () => client.admin.teams.settings.setIcon(args),
628
+ catch: mapSlackError
629
+ }).pipe(Effect.tapError(annotateSpanWithError), Effect.withSpan("AdminService.teams.settings.setIcon", {
630
+ attributes: { "slack.method": "admin.teams.settings.setIcon" }
631
+ }));
632
+ /**
633
+ * Set the name of a given workspace.
634
+ */
635
+ const TeamsSettingsSetName = (args) => Effect.tryPromise({
636
+ try: () => client.admin.teams.settings.setName(args),
637
+ catch: mapSlackError
638
+ }).pipe(Effect.tapError(annotateSpanWithError), Effect.withSpan("AdminService.teams.settings.setName", {
639
+ attributes: { "slack.method": "admin.teams.settings.setName" }
640
+ }));
641
+ /**
642
+ * Add up to one hundred default channels to an IDP group.
643
+ */
644
+ const UsergroupsAddChannels = (args) => Effect.tryPromise({
645
+ try: () => client.admin.usergroups.addChannels(args),
646
+ catch: mapSlackError
647
+ }).pipe(Effect.tapError(annotateSpanWithError), Effect.withSpan("AdminService.usergroups.addChannels", {
648
+ attributes: { "slack.method": "admin.usergroups.addChannels" }
649
+ }));
650
+ /**
651
+ * Associate one or more default workspaces with an organization-wide IDP group.
652
+ */
653
+ const UsergroupsAddTeams = (args) => Effect.tryPromise({
654
+ try: () => client.admin.usergroups.addTeams(args),
655
+ catch: mapSlackError
656
+ }).pipe(Effect.tapError(annotateSpanWithError), Effect.withSpan("AdminService.usergroups.addTeams", {
657
+ attributes: { "slack.method": "admin.usergroups.addTeams" }
658
+ }));
659
+ /**
660
+ * List the channels linked to an org-level IDP group (user group).
661
+ */
662
+ const UsergroupsListChannels = (args) => Effect.tryPromise({
663
+ try: () => client.admin.usergroups.listChannels(args),
664
+ catch: mapSlackError
665
+ }).pipe(Effect.tapError(annotateSpanWithError), Effect.withSpan("AdminService.usergroups.listChannels", {
666
+ attributes: { "slack.method": "admin.usergroups.listChannels" }
667
+ }));
668
+ /**
669
+ * Remove one or more default channels from an org-level IDP group (user group).
670
+ */
671
+ const UsergroupsRemoveChannels = (args) => Effect.tryPromise({
672
+ try: () => client.admin.usergroups.removeChannels(args),
673
+ catch: mapSlackError
674
+ }).pipe(Effect.tapError(annotateSpanWithError), Effect.withSpan("AdminService.usergroups.removeChannels", {
675
+ attributes: { "slack.method": "admin.usergroups.removeChannels" }
676
+ }));
677
+ /**
678
+ * Add an Enterprise user to a workspace.
679
+ */
680
+ const UsersAssign = (args) => Effect.tryPromise({
681
+ try: () => client.admin.users.assign(args),
682
+ catch: mapSlackError
683
+ }).pipe(Effect.tapError(annotateSpanWithError), Effect.withSpan("AdminService.users.assign", {
684
+ attributes: { "slack.method": "admin.users.assign" }
685
+ }));
686
+ /**
687
+ * Invite a user to a workspace.
688
+ */
689
+ const UsersInvite = (args) => Effect.tryPromise({
690
+ try: () => client.admin.users.invite(args),
691
+ catch: mapSlackError
692
+ }).pipe(Effect.tapError(annotateSpanWithError), Effect.withSpan("AdminService.users.invite", {
693
+ attributes: { "slack.method": "admin.users.invite" }
694
+ }));
695
+ /**
696
+ * List users on a workspace.
697
+ */
698
+ const UsersList = (args) => Effect.tryPromise({
699
+ try: () => client.admin.users.list(args),
700
+ catch: mapSlackError
701
+ }).pipe(Effect.tapError(annotateSpanWithError), Effect.withSpan("AdminService.users.list", {
702
+ attributes: { "slack.method": "admin.users.list" }
703
+ }));
704
+ /**
705
+ * Remove a user from a workspace.
706
+ */
707
+ const UsersRemove = (args) => Effect.tryPromise({
708
+ try: () => client.admin.users.remove(args),
709
+ catch: mapSlackError
710
+ }).pipe(Effect.tapError(annotateSpanWithError), Effect.withSpan("AdminService.users.remove", {
711
+ attributes: { "slack.method": "admin.users.remove" }
712
+ }));
713
+ /**
714
+ * Set an existing guest, regular user, or owner to be an admin user.
715
+ */
716
+ const UsersSetAdmin = (args) => Effect.tryPromise({
717
+ try: () => client.admin.users.setAdmin(args),
718
+ catch: mapSlackError
719
+ }).pipe(Effect.tapError(annotateSpanWithError), Effect.withSpan("AdminService.users.setAdmin", {
720
+ attributes: { "slack.method": "admin.users.setAdmin" }
721
+ }));
722
+ /**
723
+ * Set an expiration for a guest user.
724
+ */
725
+ const UsersSetExpiration = (args) => Effect.tryPromise({
726
+ try: () => client.admin.users.setExpiration(args),
727
+ catch: mapSlackError
728
+ }).pipe(Effect.tapError(annotateSpanWithError), Effect.withSpan("AdminService.users.setExpiration", {
729
+ attributes: { "slack.method": "admin.users.setExpiration" }
730
+ }));
731
+ /**
732
+ * Set an existing guest, regular user, or admin user to be a workspace owner.
733
+ */
734
+ const UsersSetOwner = (args) => Effect.tryPromise({
735
+ try: () => client.admin.users.setOwner(args),
736
+ catch: mapSlackError
737
+ }).pipe(Effect.tapError(annotateSpanWithError), Effect.withSpan("AdminService.users.setOwner", {
738
+ attributes: { "slack.method": "admin.users.setOwner" }
739
+ }));
740
+ /**
741
+ * Set an existing guest user, admin user, or owner to be a regular user.
742
+ */
743
+ const UsersSetRegular = (args) => Effect.tryPromise({
744
+ try: () => client.admin.users.setRegular(args),
745
+ catch: mapSlackError
746
+ }).pipe(Effect.tapError(annotateSpanWithError), Effect.withSpan("AdminService.users.setRegular", {
747
+ attributes: { "slack.method": "admin.users.setRegular" }
748
+ }));
749
+ /**
750
+ * Clear user-specific session settings—the session duration and what happens when the client closes—for a list of users.
751
+ */
752
+ const UsersSessionClearSettings = (args) => Effect.tryPromise({
753
+ try: () => client.admin.users.session.clearSettings(args),
754
+ catch: mapSlackError
755
+ }).pipe(Effect.tapError(annotateSpanWithError), Effect.withSpan("AdminService.users.session.clearSettings", {
756
+ attributes: { "slack.method": "admin.users.session.clearSettings" }
757
+ }));
758
+ /**
759
+ * Get user-specific session settings—the session duration and what happens when the client closes—given a list of users.
760
+ */
761
+ const UsersSessionGetSettings = (args) => Effect.tryPromise({
762
+ try: () => client.admin.users.session.getSettings(args),
763
+ catch: mapSlackError
764
+ }).pipe(Effect.tapError(annotateSpanWithError), Effect.withSpan("AdminService.users.session.getSettings", {
765
+ attributes: { "slack.method": "admin.users.session.getSettings" }
766
+ }));
767
+ /**
768
+ * Revoke a single session for a user. The user will be forced to login to Slack.
769
+ */
770
+ const UsersSessionInvalidate = (args) => Effect.tryPromise({
771
+ try: () => client.admin.users.session.invalidate(args),
772
+ catch: mapSlackError
773
+ }).pipe(Effect.tapError(annotateSpanWithError), Effect.withSpan("AdminService.users.session.invalidate", {
774
+ attributes: { "slack.method": "admin.users.session.invalidate" }
775
+ }));
776
+ /**
777
+ * List active user sessions for an organization.
778
+ */
779
+ const UsersSessionList = (args) => Effect.tryPromise({
780
+ try: () => client.admin.users.session.list(args),
781
+ catch: mapSlackError
782
+ }).pipe(Effect.tapError(annotateSpanWithError), Effect.withSpan("AdminService.users.session.list", {
783
+ attributes: { "slack.method": "admin.users.session.list" }
784
+ }));
785
+ /**
786
+ * Wipes all valid sessions on all devices for a given user.
787
+ */
788
+ const UsersSessionReset = (args) => Effect.tryPromise({
789
+ try: () => client.admin.users.session.reset(args),
790
+ catch: mapSlackError
791
+ }).pipe(Effect.tapError(annotateSpanWithError), Effect.withSpan("AdminService.users.session.reset", {
792
+ attributes: { "slack.method": "admin.users.session.reset" }
793
+ }));
794
+ /**
795
+ * Enqueues an asynchronous job to wipe all valid sessions on all devices for a given user list.
796
+ */
797
+ const UsersSessionResetBulk = (args) => Effect.tryPromise({
798
+ try: () => client.admin.users.session.resetBulk(args),
799
+ catch: mapSlackError
800
+ }).pipe(Effect.tapError(annotateSpanWithError), Effect.withSpan("AdminService.users.session.resetBulk", {
801
+ attributes: { "slack.method": "admin.users.session.resetBulk" }
802
+ }));
803
+ /**
804
+ * Configure the user-level session settings—the session duration and what happens when the client closes—for one or more users.
805
+ */
806
+ const UsersSessionSetSettings = (args) => Effect.tryPromise({
807
+ try: () => client.admin.users.session.setSettings(args),
808
+ catch: mapSlackError
809
+ }).pipe(Effect.tapError(annotateSpanWithError), Effect.withSpan("AdminService.users.session.setSettings", {
810
+ attributes: { "slack.method": "admin.users.session.setSettings" }
811
+ }));
812
+ /**
813
+ * Ask Slackbot to send you an export listing all workspace members using unsupported software, presented as a zipped CSV file.
814
+ */
815
+ const UsersUnsupportedVersionsExport_ = (args) => Effect.tryPromise({
816
+ try: () => client.admin.users.unsupportedVersions.export(args),
817
+ catch: mapSlackError
818
+ }).pipe(Effect.tapError(annotateSpanWithError), Effect.withSpan("AdminService.users.unsupportedVersions.export_", {
819
+ attributes: { "slack.method": "admin.users.unsupportedVersions.export" }
820
+ }));
821
+ /**
822
+ * Search workflows within the team or enterprise.
823
+ */
824
+ const WorkflowsSearch = (args) => Effect.tryPromise({
825
+ try: () => client.admin.workflows.search(args),
826
+ catch: mapSlackError
827
+ }).pipe(Effect.tapError(annotateSpanWithError), Effect.withSpan("AdminService.workflows.search", {
828
+ attributes: { "slack.method": "admin.workflows.search" }
829
+ }));
830
+ /**
831
+ * Unpublish workflows within the team or enterprise.
832
+ */
833
+ const WorkflowsUnpublish = (args) => Effect.tryPromise({
834
+ try: () => client.admin.workflows.unpublish(args),
835
+ catch: mapSlackError
836
+ }).pipe(Effect.tapError(annotateSpanWithError), Effect.withSpan("AdminService.workflows.unpublish", {
837
+ attributes: { "slack.method": "admin.workflows.unpublish" }
838
+ }));
839
+ /**
840
+ * Add collaborators to workflows within the team or enterprise.
841
+ */
842
+ const WorkflowsCollaboratorsAdd = (args) => Effect.tryPromise({
843
+ try: () => client.admin.workflows.collaborators.add(args),
844
+ catch: mapSlackError
845
+ }).pipe(Effect.tapError(annotateSpanWithError), Effect.withSpan("AdminService.workflows.collaborators.add", {
846
+ attributes: { "slack.method": "admin.workflows.collaborators.add" }
847
+ }));
848
+ /**
849
+ * Remove collaborators from workflows within the team or enterprise.
850
+ */
851
+ const WorkflowsCollaboratorsRemove = (args) => Effect.tryPromise({
852
+ try: () => client.admin.workflows.collaborators.remove(args),
853
+ catch: mapSlackError
854
+ }).pipe(Effect.tapError(annotateSpanWithError), Effect.withSpan("AdminService.workflows.collaborators.remove", {
855
+ attributes: { "slack.method": "admin.workflows.collaborators.remove" }
856
+ }));
857
+ /**
858
+ * Look up the permissions for a set of workflows.
859
+ */
860
+ const WorkflowsPermissionsLookup = (args) => Effect.tryPromise({
861
+ try: () => client.admin.workflows.permissions.lookup(args),
862
+ catch: mapSlackError
863
+ }).pipe(Effect.tapError(annotateSpanWithError), Effect.withSpan("AdminService.workflows.permissions.lookup", {
864
+ attributes: { "slack.method": "admin.workflows.permissions.lookup" }
865
+ }));
866
+ return {
867
+ analytics: {
868
+ getFile: AnalyticsGetFile
869
+ },
870
+ apps: {
871
+ approve: AppsApprove,
872
+ clearResolution: AppsClearResolution,
873
+ restrict: AppsRestrict,
874
+ uninstall: AppsUninstall,
875
+ activities: {
876
+ list: AppsActivitiesList
877
+ },
878
+ approved: {
879
+ list: AppsApprovedList
880
+ },
881
+ config: {
882
+ lookup: AppsConfigLookup,
883
+ set: AppsConfigSet
884
+ },
885
+ requests: {
886
+ cancel: AppsRequestsCancel,
887
+ list: AppsRequestsList
888
+ },
889
+ restricted: {
890
+ list: AppsRestrictedList
891
+ }
892
+ },
893
+ auth: {
894
+ policy: {
895
+ assignEntities: AuthPolicyAssignEntities,
896
+ getEntities: AuthPolicyGetEntities,
897
+ removeEntities: AuthPolicyRemoveEntities
898
+ }
899
+ },
900
+ barriers: {
901
+ create: BarriersCreate,
902
+ delete_: BarriersDelete_,
903
+ list: BarriersList,
904
+ update: BarriersUpdate
905
+ },
906
+ conversations: {
907
+ archive: ConversationsArchive,
908
+ bulkArchive: ConversationsBulkArchive,
909
+ bulkDelete: ConversationsBulkDelete,
910
+ bulkMove: ConversationsBulkMove,
911
+ convertToPrivate: ConversationsConvertToPrivate,
912
+ convertToPublic: ConversationsConvertToPublic,
913
+ create: ConversationsCreate,
914
+ delete_: ConversationsDelete_,
915
+ disconnectShared: ConversationsDisconnectShared,
916
+ getConversationPrefs: ConversationsGetConversationPrefs,
917
+ getCustomRetention: ConversationsGetCustomRetention,
918
+ getTeams: ConversationsGetTeams,
919
+ invite: ConversationsInvite,
920
+ lookup: ConversationsLookup,
921
+ removeCustomRetention: ConversationsRemoveCustomRetention,
922
+ rename: ConversationsRename,
923
+ search: ConversationsSearch,
924
+ setConversationPrefs: ConversationsSetConversationPrefs,
925
+ setCustomRetention: ConversationsSetCustomRetention,
926
+ setTeams: ConversationsSetTeams,
927
+ unarchive: ConversationsUnarchive,
928
+ ekm: {
929
+ listOriginalConnectedChannelInfo: ConversationsEkmListOriginalConnectedChannelInfo
930
+ },
931
+ restrictAccess: {
932
+ addGroup: ConversationsRestrictAccessAddGroup,
933
+ listGroups: ConversationsRestrictAccessListGroups,
934
+ removeGroup: ConversationsRestrictAccessRemoveGroup
935
+ }
936
+ },
937
+ emoji: {
938
+ add: EmojiAdd,
939
+ addAlias: EmojiAddAlias,
940
+ list: EmojiList,
941
+ remove: EmojiRemove,
942
+ rename: EmojiRename
943
+ },
944
+ functions: {
945
+ list: FunctionsList,
946
+ permissions: {
947
+ lookup: FunctionsPermissionsLookup,
948
+ set: FunctionsPermissionsSet
949
+ }
950
+ },
951
+ inviteRequests: {
952
+ approve: InviteRequestsApprove,
953
+ deny: InviteRequestsDeny,
954
+ list: InviteRequestsList,
955
+ approved: {
956
+ list: InviteRequestsApprovedList
957
+ },
958
+ denied: {
959
+ list: InviteRequestsDeniedList
960
+ }
961
+ },
962
+ roles: {
963
+ addAssignments: RolesAddAssignments,
964
+ listAssignments: RolesListAssignments,
965
+ removeAssignments: RolesRemoveAssignments
966
+ },
967
+ teams: {
968
+ create: TeamsCreate,
969
+ list: TeamsList,
970
+ admins: {
971
+ list: TeamsAdminsList
972
+ },
973
+ owners: {
974
+ list: TeamsOwnersList
975
+ },
976
+ settings: {
977
+ info: TeamsSettingsInfo,
978
+ setDefaultChannels: TeamsSettingsSetDefaultChannels,
979
+ setDescription: TeamsSettingsSetDescription,
980
+ setDiscoverability: TeamsSettingsSetDiscoverability,
981
+ setIcon: TeamsSettingsSetIcon,
982
+ setName: TeamsSettingsSetName
983
+ }
984
+ },
985
+ usergroups: {
986
+ addChannels: UsergroupsAddChannels,
987
+ addTeams: UsergroupsAddTeams,
988
+ listChannels: UsergroupsListChannels,
989
+ removeChannels: UsergroupsRemoveChannels
990
+ },
991
+ users: {
992
+ assign: UsersAssign,
993
+ invite: UsersInvite,
994
+ list: UsersList,
995
+ remove: UsersRemove,
996
+ setAdmin: UsersSetAdmin,
997
+ setExpiration: UsersSetExpiration,
998
+ setOwner: UsersSetOwner,
999
+ setRegular: UsersSetRegular,
1000
+ session: {
1001
+ clearSettings: UsersSessionClearSettings,
1002
+ getSettings: UsersSessionGetSettings,
1003
+ invalidate: UsersSessionInvalidate,
1004
+ list: UsersSessionList,
1005
+ reset: UsersSessionReset,
1006
+ resetBulk: UsersSessionResetBulk,
1007
+ setSettings: UsersSessionSetSettings
1008
+ },
1009
+ unsupportedVersions: {
1010
+ export_: UsersUnsupportedVersionsExport_
1011
+ }
1012
+ },
1013
+ workflows: {
1014
+ search: WorkflowsSearch,
1015
+ unpublish: WorkflowsUnpublish,
1016
+ collaborators: {
1017
+ add: WorkflowsCollaboratorsAdd,
1018
+ remove: WorkflowsCollaboratorsRemove
1019
+ },
1020
+ permissions: {
1021
+ lookup: WorkflowsPermissionsLookup
1022
+ }
1023
+ }
1024
+ };
1025
+ }),
1026
+ dependencies: [SlackClient.Default]
1027
+ }) {
1028
+ }
1029
+ //# sourceMappingURL=AdminService.js.map