@alter-ai/slack 0.0.0-stage → 0.1.2

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.
package/dist/index.js ADDED
@@ -0,0 +1,4265 @@
1
+ // src/runtime.ts
2
+ import {
3
+ IntegrationCall as CoreCall,
4
+ IntegrationResult as CoreResult,
5
+ BackendError,
6
+ ManagedOperationError
7
+ } from "@alter-ai/sdk";
8
+
9
+ // src/contracts.ts
10
+ import { z } from "zod";
11
+ import { AlterValueError } from "@alter-ai/sdk";
12
+ var outputVersion = "2026-10-28";
13
+ var cachedOutputs;
14
+ function getOutputs() {
15
+ if (cachedOutputs) return cachedOutputs;
16
+ const definitions = {};
17
+ definitions["Outputdefs_ok_true"] = z.intersection(
18
+ z.boolean(),
19
+ z.literal(true)
20
+ );
21
+ definitions["Outputdefs_bot_id"] = z.string();
22
+ definitions["Outputdefs_team"] = z.string();
23
+ definitions["Outputdefs_user_id"] = z.string();
24
+ definitions["Outputdefs_app_id"] = z.string();
25
+ definitions["Outputdefs_channel"] = z.string();
26
+ definitions["Outputdefs_ts"] = z.string();
27
+ definitions["Outputobjs_message"] = z.object({
28
+ attachments: z.array(
29
+ z.object({
30
+ fallback: z.string().optional(),
31
+ id: z.union([
32
+ z.number().int(),
33
+ z.string().regex(
34
+ new RegExp(
35
+ "^-?[0-9]+(?:\\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$"
36
+ )
37
+ )
38
+ ]).optional(),
39
+ image_bytes: z.union([
40
+ z.number().int(),
41
+ z.string().regex(
42
+ new RegExp(
43
+ "^-?[0-9]+(?:\\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$"
44
+ )
45
+ )
46
+ ]).optional(),
47
+ image_height: z.union([
48
+ z.number().int(),
49
+ z.string().regex(
50
+ new RegExp(
51
+ "^-?[0-9]+(?:\\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$"
52
+ )
53
+ )
54
+ ]).optional(),
55
+ image_url: z.string().optional(),
56
+ image_width: z.union([
57
+ z.number().int(),
58
+ z.string().regex(
59
+ new RegExp(
60
+ "^-?[0-9]+(?:\\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$"
61
+ )
62
+ )
63
+ ]).optional()
64
+ }).passthrough()
65
+ ).optional(),
66
+ blocks: z.lazy(() => definitions["Outputblocks"]).optional(),
67
+ bot_id: z.union([z.lazy(() => definitions["Outputdefs_bot_id"]), z.null()]).optional(),
68
+ bot_profile: z.lazy(() => definitions["Outputobjs_bot_profile"]).optional(),
69
+ client_msg_id: z.string().optional(),
70
+ comment: z.lazy(() => definitions["Outputobjs_comment"]).optional(),
71
+ display_as_bot: z.boolean().optional(),
72
+ file: z.lazy(() => definitions["Outputobjs_file"]).optional(),
73
+ files: z.array(z.lazy(() => definitions["Outputobjs_file"])).optional(),
74
+ icons: z.object({
75
+ emoji: z.string().optional(),
76
+ image_64: z.string().optional()
77
+ }).passthrough().optional(),
78
+ inviter: z.lazy(() => definitions["Outputdefs_user_id"]).optional(),
79
+ is_delayed_message: z.boolean().optional(),
80
+ is_intro: z.boolean().optional(),
81
+ is_starred: z.boolean().optional(),
82
+ last_read: z.lazy(() => definitions["Outputdefs_ts"]).optional(),
83
+ latest_reply: z.lazy(() => definitions["Outputdefs_ts"]).optional(),
84
+ name: z.string().optional(),
85
+ old_name: z.string().optional(),
86
+ parent_user_id: z.lazy(() => definitions["Outputdefs_user_id"]).optional(),
87
+ permalink: z.string().optional(),
88
+ pinned_to: z.array(z.lazy(() => definitions["Outputdefs_channel"])).optional(),
89
+ purpose: z.string().optional(),
90
+ reactions: z.array(z.lazy(() => definitions["Outputobjs_reaction"])).optional(),
91
+ reply_count: z.union([
92
+ z.number().int(),
93
+ z.string().regex(new RegExp("^-?[0-9]+(?:\\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$"))
94
+ ]).optional(),
95
+ reply_users: z.array(z.lazy(() => definitions["Outputdefs_user_id"])).optional(),
96
+ reply_users_count: z.union([
97
+ z.number().int(),
98
+ z.string().regex(new RegExp("^-?[0-9]+(?:\\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$"))
99
+ ]).optional(),
100
+ source_team: z.lazy(() => definitions["Outputdefs_workspace_id"]).optional(),
101
+ subscribed: z.boolean().optional(),
102
+ subtype: z.string().optional(),
103
+ team: z.lazy(() => definitions["Outputdefs_workspace_id"]).optional(),
104
+ text: z.string().optional(),
105
+ thread_ts: z.lazy(() => definitions["Outputdefs_ts"]).optional(),
106
+ topic: z.string().optional(),
107
+ ts: z.lazy(() => definitions["Outputdefs_ts"]).optional(),
108
+ type: z.string().optional(),
109
+ unread_count: z.union([
110
+ z.number().int(),
111
+ z.string().regex(new RegExp("^-?[0-9]+(?:\\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$"))
112
+ ]).optional(),
113
+ upload: z.boolean().optional(),
114
+ user: z.lazy(() => definitions["Outputdefs_user_id"]).optional(),
115
+ user_profile: z.lazy(() => definitions["Outputobjs_user_profile_short"]).optional(),
116
+ user_team: z.lazy(() => definitions["Outputdefs_workspace_id"]).optional(),
117
+ username: z.string().optional()
118
+ }).passthrough();
119
+ definitions["Outputblocks"] = z.array(
120
+ z.object({ type: z.string().optional() }).passthrough()
121
+ );
122
+ definitions["Outputobjs_bot_profile"] = z.object({
123
+ app_id: z.lazy(() => definitions["Outputdefs_app_id"]).optional(),
124
+ deleted: z.boolean().optional(),
125
+ icons: z.object({
126
+ image_36: z.string().optional(),
127
+ image_48: z.string().optional(),
128
+ image_72: z.string().optional()
129
+ }).passthrough().optional(),
130
+ id: z.lazy(() => definitions["Outputdefs_bot_id"]).optional(),
131
+ name: z.string().optional(),
132
+ team_id: z.lazy(() => definitions["Outputdefs_team"]).optional(),
133
+ updated: z.union([
134
+ z.number().int(),
135
+ z.string().regex(new RegExp("^-?[0-9]+(?:\\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$"))
136
+ ]).optional()
137
+ }).passthrough();
138
+ definitions["Outputobjs_comment"] = z.object({
139
+ comment: z.string().optional(),
140
+ created: z.union([
141
+ z.number().int(),
142
+ z.string().regex(new RegExp("^-?[0-9]+(?:\\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$"))
143
+ ]).optional(),
144
+ id: z.lazy(() => definitions["Outputdefs_comment_id"]).optional(),
145
+ is_intro: z.boolean().optional(),
146
+ is_starred: z.boolean().optional(),
147
+ num_stars: z.union([
148
+ z.number().int(),
149
+ z.string().regex(new RegExp("^-?[0-9]+(?:\\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$"))
150
+ ]).optional(),
151
+ pinned_info: z.lazy(() => definitions["Outputdefs_pinned_info"]).optional(),
152
+ pinned_to: z.array(z.lazy(() => definitions["Outputdefs_channel"])).optional(),
153
+ reactions: z.array(z.lazy(() => definitions["Outputobjs_reaction"])).optional(),
154
+ timestamp: z.union([
155
+ z.number().int(),
156
+ z.string().regex(new RegExp("^-?[0-9]+(?:\\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$"))
157
+ ]).optional(),
158
+ user: z.lazy(() => definitions["Outputdefs_user_id"]).optional()
159
+ }).passthrough();
160
+ definitions["Outputdefs_comment_id"] = z.string();
161
+ definitions["Outputdefs_pinned_info"] = z.object({}).passthrough();
162
+ definitions["Outputobjs_reaction"] = z.object({
163
+ count: z.union([
164
+ z.number().int(),
165
+ z.string().regex(new RegExp("^-?[0-9]+(?:\\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$"))
166
+ ]).optional(),
167
+ name: z.string().optional(),
168
+ users: z.array(z.lazy(() => definitions["Outputdefs_user_id"])).optional()
169
+ }).passthrough();
170
+ definitions["Outputobjs_file"] = z.object({
171
+ channels: z.array(z.lazy(() => definitions["Outputdefs_channel_id"])).optional(),
172
+ comments_count: z.union([
173
+ z.number().int(),
174
+ z.string().regex(new RegExp("^-?[0-9]+(?:\\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$"))
175
+ ]).optional(),
176
+ created: z.union([
177
+ z.number().int(),
178
+ z.string().regex(new RegExp("^-?[0-9]+(?:\\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$"))
179
+ ]).optional(),
180
+ date_delete: z.union([
181
+ z.number().int(),
182
+ z.string().regex(new RegExp("^-?[0-9]+(?:\\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$"))
183
+ ]).optional(),
184
+ display_as_bot: z.boolean().optional(),
185
+ editable: z.boolean().optional(),
186
+ editor: z.lazy(() => definitions["Outputdefs_user_id"]).optional(),
187
+ external_id: z.string().optional(),
188
+ external_type: z.string().optional(),
189
+ external_url: z.string().optional(),
190
+ filetype: z.string().optional(),
191
+ groups: z.array(z.lazy(() => definitions["Outputdefs_group_id"])).optional(),
192
+ has_rich_preview: z.boolean().optional(),
193
+ id: z.lazy(() => definitions["Outputdefs_file_id"]).optional(),
194
+ image_exif_rotation: z.union([
195
+ z.number().int(),
196
+ z.string().regex(new RegExp("^-?[0-9]+(?:\\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$"))
197
+ ]).optional(),
198
+ ims: z.array(z.lazy(() => definitions["Outputdefs_dm_id"])).optional(),
199
+ is_external: z.boolean().optional(),
200
+ is_public: z.boolean().optional(),
201
+ is_starred: z.boolean().optional(),
202
+ is_tombstoned: z.boolean().optional(),
203
+ last_editor: z.lazy(() => definitions["Outputdefs_user_id"]).optional(),
204
+ mimetype: z.string().optional(),
205
+ mode: z.string().optional(),
206
+ name: z.string().optional(),
207
+ non_owner_editable: z.boolean().optional(),
208
+ num_stars: z.union([
209
+ z.number().int(),
210
+ z.string().regex(new RegExp("^-?[0-9]+(?:\\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$"))
211
+ ]).optional(),
212
+ original_h: z.union([
213
+ z.number().int(),
214
+ z.string().regex(new RegExp("^-?[0-9]+(?:\\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$"))
215
+ ]).optional(),
216
+ original_w: z.union([
217
+ z.number().int(),
218
+ z.string().regex(new RegExp("^-?[0-9]+(?:\\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$"))
219
+ ]).optional(),
220
+ permalink: z.string().optional(),
221
+ permalink_public: z.string().optional(),
222
+ pinned_info: z.lazy(() => definitions["Outputdefs_pinned_info"]).optional(),
223
+ pinned_to: z.array(z.lazy(() => definitions["Outputdefs_channel"])).optional(),
224
+ pretty_type: z.string().optional(),
225
+ preview: z.string().optional(),
226
+ public_url_shared: z.boolean().optional(),
227
+ reactions: z.array(z.lazy(() => definitions["Outputobjs_reaction"])).optional(),
228
+ shares: z.object({
229
+ private: z.unknown().optional(),
230
+ public: z.unknown().optional()
231
+ }).passthrough().optional(),
232
+ size: z.union([
233
+ z.number().int(),
234
+ z.string().regex(new RegExp("^-?[0-9]+(?:\\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$"))
235
+ ]).optional(),
236
+ source_team: z.lazy(() => definitions["Outputdefs_team"]).optional(),
237
+ state: z.string().optional(),
238
+ thumb_1024: z.string().optional(),
239
+ thumb_1024_h: z.union([
240
+ z.number().int(),
241
+ z.string().regex(new RegExp("^-?[0-9]+(?:\\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$"))
242
+ ]).optional(),
243
+ thumb_1024_w: z.union([
244
+ z.number().int(),
245
+ z.string().regex(new RegExp("^-?[0-9]+(?:\\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$"))
246
+ ]).optional(),
247
+ thumb_160: z.string().optional(),
248
+ thumb_360: z.string().optional(),
249
+ thumb_360_h: z.union([
250
+ z.number().int(),
251
+ z.string().regex(new RegExp("^-?[0-9]+(?:\\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$"))
252
+ ]).optional(),
253
+ thumb_360_w: z.union([
254
+ z.number().int(),
255
+ z.string().regex(new RegExp("^-?[0-9]+(?:\\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$"))
256
+ ]).optional(),
257
+ thumb_480: z.string().optional(),
258
+ thumb_480_h: z.union([
259
+ z.number().int(),
260
+ z.string().regex(new RegExp("^-?[0-9]+(?:\\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$"))
261
+ ]).optional(),
262
+ thumb_480_w: z.union([
263
+ z.number().int(),
264
+ z.string().regex(new RegExp("^-?[0-9]+(?:\\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$"))
265
+ ]).optional(),
266
+ thumb_64: z.string().optional(),
267
+ thumb_720: z.string().optional(),
268
+ thumb_720_h: z.union([
269
+ z.number().int(),
270
+ z.string().regex(new RegExp("^-?[0-9]+(?:\\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$"))
271
+ ]).optional(),
272
+ thumb_720_w: z.union([
273
+ z.number().int(),
274
+ z.string().regex(new RegExp("^-?[0-9]+(?:\\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$"))
275
+ ]).optional(),
276
+ thumb_80: z.string().optional(),
277
+ thumb_800: z.string().optional(),
278
+ thumb_800_h: z.union([
279
+ z.number().int(),
280
+ z.string().regex(new RegExp("^-?[0-9]+(?:\\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$"))
281
+ ]).optional(),
282
+ thumb_800_w: z.union([
283
+ z.number().int(),
284
+ z.string().regex(new RegExp("^-?[0-9]+(?:\\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$"))
285
+ ]).optional(),
286
+ thumb_960: z.string().optional(),
287
+ thumb_960_h: z.union([
288
+ z.number().int(),
289
+ z.string().regex(new RegExp("^-?[0-9]+(?:\\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$"))
290
+ ]).optional(),
291
+ thumb_960_w: z.union([
292
+ z.number().int(),
293
+ z.string().regex(new RegExp("^-?[0-9]+(?:\\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$"))
294
+ ]).optional(),
295
+ thumb_tiny: z.string().optional(),
296
+ timestamp: z.union([
297
+ z.number().int(),
298
+ z.string().regex(new RegExp("^-?[0-9]+(?:\\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$"))
299
+ ]).optional(),
300
+ title: z.string().optional(),
301
+ updated: z.union([
302
+ z.number().int(),
303
+ z.string().regex(new RegExp("^-?[0-9]+(?:\\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$"))
304
+ ]).optional(),
305
+ url_private: z.string().optional(),
306
+ url_private_download: z.string().optional(),
307
+ user: z.string().optional(),
308
+ user_team: z.lazy(() => definitions["Outputdefs_team"]).optional(),
309
+ username: z.string().optional()
310
+ }).passthrough();
311
+ definitions["Outputdefs_channel_id"] = z.string();
312
+ definitions["Outputdefs_group_id"] = z.string();
313
+ definitions["Outputdefs_file_id"] = z.string();
314
+ definitions["Outputdefs_dm_id"] = z.string();
315
+ definitions["Outputdefs_workspace_id"] = z.string();
316
+ definitions["Outputobjs_user_profile_short"] = z.object({
317
+ avatar_hash: z.string().optional(),
318
+ display_name: z.string().optional(),
319
+ display_name_normalized: z.string().optional(),
320
+ first_name: z.union([z.string(), z.null()]).optional(),
321
+ image_72: z.string().optional(),
322
+ is_restricted: z.boolean().optional(),
323
+ is_ultra_restricted: z.boolean().optional(),
324
+ name: z.string().optional(),
325
+ real_name: z.string().optional(),
326
+ real_name_normalized: z.string().optional(),
327
+ team: z.lazy(() => definitions["Outputdefs_workspace_id"]).optional()
328
+ }).passthrough();
329
+ definitions["Outputobjs_conversation"] = z.union([
330
+ z.object({
331
+ accepted_user: z.lazy(() => definitions["Outputdefs_user_id"]).optional(),
332
+ connected_team_ids: z.array(z.lazy(() => definitions["Outputdefs_workspace_id"])).optional(),
333
+ conversation_host_id: z.lazy(() => definitions["Outputdefs_workspace_id"]).optional(),
334
+ created: z.union([
335
+ z.number().int(),
336
+ z.string().regex(
337
+ new RegExp("^-?[0-9]+(?:\\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$")
338
+ )
339
+ ]).optional(),
340
+ creator: z.lazy(() => definitions["Outputdefs_user_id"]).optional(),
341
+ display_counts: z.object({
342
+ display_counts: z.union([
343
+ z.number().int(),
344
+ z.string().regex(
345
+ new RegExp("^-?[0-9]+(?:\\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$")
346
+ )
347
+ ]).optional(),
348
+ guest_counts: z.union([
349
+ z.number().int(),
350
+ z.string().regex(
351
+ new RegExp("^-?[0-9]+(?:\\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$")
352
+ )
353
+ ]).optional()
354
+ }).passthrough().optional(),
355
+ enterprise_id: z.lazy(() => definitions["Outputdefs_enterprise_id"]).optional(),
356
+ has_pins: z.boolean().optional(),
357
+ id: z.lazy(() => definitions["Outputdefs_channel"]).optional(),
358
+ internal_team_ids: z.array(z.lazy(() => definitions["Outputdefs_team"])).optional(),
359
+ is_archived: z.boolean().optional(),
360
+ is_channel: z.boolean().optional(),
361
+ is_ext_shared: z.boolean().optional(),
362
+ is_frozen: z.boolean().optional(),
363
+ is_general: z.boolean().optional(),
364
+ is_global_shared: z.boolean().optional(),
365
+ is_group: z.boolean().optional(),
366
+ is_im: z.boolean().optional(),
367
+ is_member: z.boolean().optional(),
368
+ is_moved: z.union([
369
+ z.number().int(),
370
+ z.string().regex(
371
+ new RegExp("^-?[0-9]+(?:\\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$")
372
+ )
373
+ ]).optional(),
374
+ is_mpim: z.boolean().optional(),
375
+ is_non_threadable: z.boolean().optional(),
376
+ is_open: z.boolean().optional(),
377
+ is_org_default: z.boolean().optional(),
378
+ is_org_mandatory: z.boolean().optional(),
379
+ is_org_shared: z.boolean().optional(),
380
+ is_pending_ext_shared: z.boolean().optional(),
381
+ is_private: z.boolean().optional(),
382
+ is_read_only: z.boolean().optional(),
383
+ is_shared: z.boolean().optional(),
384
+ is_starred: z.boolean().optional(),
385
+ is_thread_only: z.boolean().optional(),
386
+ last_read: z.lazy(() => definitions["Outputdefs_ts"]).optional(),
387
+ latest: z.union([z.lazy(() => definitions["Outputobjs_message"]), z.null()]).optional(),
388
+ members: z.array(z.lazy(() => definitions["Outputdefs_user_id"])).optional(),
389
+ name: z.string().optional(),
390
+ name_normalized: z.string().optional(),
391
+ num_members: z.union([
392
+ z.number().int(),
393
+ z.string().regex(
394
+ new RegExp("^-?[0-9]+(?:\\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$")
395
+ )
396
+ ]).optional(),
397
+ parent_conversation: z.union([z.lazy(() => definitions["Outputdefs_channel"]), z.null()]).optional(),
398
+ pending_connected_team_ids: z.array(z.lazy(() => definitions["Outputdefs_team"])).optional(),
399
+ pending_shared: z.array(z.lazy(() => definitions["Outputdefs_team"])).optional(),
400
+ pin_count: z.union([
401
+ z.number().int(),
402
+ z.string().regex(
403
+ new RegExp("^-?[0-9]+(?:\\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$")
404
+ )
405
+ ]).optional(),
406
+ previous_names: z.array(z.lazy(() => definitions["Outputdefs_channel_name"])).optional(),
407
+ priority: z.union([
408
+ z.number().finite(),
409
+ z.string().regex(
410
+ new RegExp("^-?[0-9]+(?:\\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$")
411
+ )
412
+ ]).optional(),
413
+ purpose: z.object({
414
+ creator: z.lazy(() => definitions["Outputdefs_topic_purpose_creator"]).optional(),
415
+ last_set: z.union([
416
+ z.number().int(),
417
+ z.string().regex(
418
+ new RegExp("^-?[0-9]+(?:\\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$")
419
+ )
420
+ ]).optional(),
421
+ value: z.string().optional()
422
+ }).passthrough().optional(),
423
+ shared_team_ids: z.array(z.lazy(() => definitions["Outputdefs_team"])).optional(),
424
+ shares: z.array(
425
+ z.object({
426
+ accepted_user: z.lazy(() => definitions["Outputdefs_user_id"]).optional(),
427
+ is_active: z.boolean().optional(),
428
+ team: z.lazy(() => definitions["Outputobjs_team"]).optional(),
429
+ user: z.lazy(() => definitions["Outputdefs_user_id"]).optional()
430
+ }).passthrough()
431
+ ).optional(),
432
+ timezone_count: z.union([
433
+ z.number().int(),
434
+ z.string().regex(
435
+ new RegExp("^-?[0-9]+(?:\\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$")
436
+ )
437
+ ]).optional(),
438
+ topic: z.object({
439
+ creator: z.lazy(() => definitions["Outputdefs_topic_purpose_creator"]).optional(),
440
+ last_set: z.union([
441
+ z.number().int(),
442
+ z.string().regex(
443
+ new RegExp("^-?[0-9]+(?:\\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$")
444
+ )
445
+ ]).optional(),
446
+ value: z.string().optional()
447
+ }).passthrough().optional(),
448
+ unlinked: z.union([
449
+ z.number().int(),
450
+ z.string().regex(
451
+ new RegExp("^-?[0-9]+(?:\\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$")
452
+ )
453
+ ]).optional(),
454
+ unread_count: z.union([
455
+ z.number().int(),
456
+ z.string().regex(
457
+ new RegExp("^-?[0-9]+(?:\\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$")
458
+ )
459
+ ]).optional(),
460
+ unread_count_display: z.union([
461
+ z.number().int(),
462
+ z.string().regex(
463
+ new RegExp("^-?[0-9]+(?:\\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$")
464
+ )
465
+ ]).optional(),
466
+ use_case: z.string().optional(),
467
+ user: z.lazy(() => definitions["Outputdefs_user_id"]).optional(),
468
+ version: z.union([
469
+ z.number().int(),
470
+ z.string().regex(
471
+ new RegExp("^-?[0-9]+(?:\\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$")
472
+ )
473
+ ]).optional()
474
+ }).passthrough(),
475
+ z.object({
476
+ accepted_user: z.lazy(() => definitions["Outputdefs_user_id"]).optional(),
477
+ connected_team_ids: z.array(z.lazy(() => definitions["Outputdefs_team"])).optional(),
478
+ conversation_host_id: z.lazy(() => definitions["Outputdefs_workspace_id"]).optional(),
479
+ created: z.union([
480
+ z.number().int(),
481
+ z.string().regex(
482
+ new RegExp("^-?[0-9]+(?:\\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$")
483
+ )
484
+ ]).optional(),
485
+ creator: z.lazy(() => definitions["Outputdefs_user_id"]).optional(),
486
+ display_counts: z.object({
487
+ display_counts: z.union([
488
+ z.number().int(),
489
+ z.string().regex(
490
+ new RegExp("^-?[0-9]+(?:\\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$")
491
+ )
492
+ ]).optional(),
493
+ guest_counts: z.union([
494
+ z.number().int(),
495
+ z.string().regex(
496
+ new RegExp("^-?[0-9]+(?:\\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$")
497
+ )
498
+ ]).optional()
499
+ }).passthrough().optional(),
500
+ id: z.lazy(() => definitions["Outputdefs_channel"]).optional(),
501
+ internal_team_ids: z.array(z.lazy(() => definitions["Outputdefs_team"])).optional(),
502
+ is_archived: z.boolean().optional(),
503
+ is_channel: z.boolean().optional(),
504
+ is_ext_shared: z.boolean().optional(),
505
+ is_frozen: z.boolean().optional(),
506
+ is_general: z.boolean().optional(),
507
+ is_group: z.boolean().optional(),
508
+ is_im: z.boolean().optional(),
509
+ is_member: z.boolean().optional(),
510
+ is_moved: z.union([
511
+ z.number().int(),
512
+ z.string().regex(
513
+ new RegExp("^-?[0-9]+(?:\\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$")
514
+ )
515
+ ]).optional(),
516
+ is_mpim: z.boolean().optional(),
517
+ is_non_threadable: z.boolean().optional(),
518
+ is_open: z.boolean().optional(),
519
+ is_org_shared: z.boolean().optional(),
520
+ is_pending_ext_shared: z.boolean().optional(),
521
+ is_private: z.boolean().optional(),
522
+ is_read_only: z.boolean().optional(),
523
+ is_shared: z.boolean().optional(),
524
+ is_starred: z.boolean().optional(),
525
+ is_thread_only: z.boolean().optional(),
526
+ last_read: z.lazy(() => definitions["Outputdefs_ts"]).optional(),
527
+ latest: z.union([z.lazy(() => definitions["Outputobjs_message"]), z.null()]).optional(),
528
+ members: z.array(z.lazy(() => definitions["Outputdefs_user_id"])).optional(),
529
+ name: z.string().optional(),
530
+ name_normalized: z.string().optional(),
531
+ num_members: z.union([
532
+ z.number().int(),
533
+ z.string().regex(
534
+ new RegExp("^-?[0-9]+(?:\\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$")
535
+ )
536
+ ]).optional(),
537
+ parent_conversation: z.union([z.lazy(() => definitions["Outputdefs_channel"]), z.null()]).optional(),
538
+ pending_connected_team_ids: z.array(z.lazy(() => definitions["Outputdefs_team"])).optional(),
539
+ pending_shared: z.array(z.lazy(() => definitions["Outputdefs_team"])).optional(),
540
+ pin_count: z.union([
541
+ z.number().int(),
542
+ z.string().regex(
543
+ new RegExp("^-?[0-9]+(?:\\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$")
544
+ )
545
+ ]).optional(),
546
+ previous_names: z.array(z.lazy(() => definitions["Outputdefs_channel_name"])).optional(),
547
+ priority: z.union([
548
+ z.number().finite(),
549
+ z.string().regex(
550
+ new RegExp("^-?[0-9]+(?:\\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$")
551
+ )
552
+ ]).optional(),
553
+ purpose: z.object({
554
+ creator: z.lazy(() => definitions["Outputdefs_topic_purpose_creator"]).optional(),
555
+ last_set: z.union([
556
+ z.number().int(),
557
+ z.string().regex(
558
+ new RegExp("^-?[0-9]+(?:\\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$")
559
+ )
560
+ ]).optional(),
561
+ value: z.string().optional()
562
+ }).passthrough().optional(),
563
+ shared_team_ids: z.array(z.lazy(() => definitions["Outputdefs_team"])).optional(),
564
+ shares: z.array(
565
+ z.object({
566
+ accepted_user: z.lazy(() => definitions["Outputdefs_user_id"]).optional(),
567
+ is_active: z.boolean().optional(),
568
+ team: z.lazy(() => definitions["Outputobjs_team"]).optional(),
569
+ user: z.lazy(() => definitions["Outputdefs_user_id"]).optional()
570
+ }).passthrough()
571
+ ).optional(),
572
+ timezone_count: z.union([
573
+ z.number().int(),
574
+ z.string().regex(
575
+ new RegExp("^-?[0-9]+(?:\\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$")
576
+ )
577
+ ]).optional(),
578
+ topic: z.object({
579
+ creator: z.lazy(() => definitions["Outputdefs_topic_purpose_creator"]).optional(),
580
+ last_set: z.union([
581
+ z.number().int(),
582
+ z.string().regex(
583
+ new RegExp("^-?[0-9]+(?:\\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$")
584
+ )
585
+ ]).optional(),
586
+ value: z.string().optional()
587
+ }).passthrough().optional(),
588
+ unlinked: z.union([
589
+ z.number().int(),
590
+ z.string().regex(
591
+ new RegExp("^-?[0-9]+(?:\\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$")
592
+ )
593
+ ]).optional(),
594
+ unread_count: z.union([
595
+ z.number().int(),
596
+ z.string().regex(
597
+ new RegExp("^-?[0-9]+(?:\\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$")
598
+ )
599
+ ]).optional(),
600
+ unread_count_display: z.union([
601
+ z.number().int(),
602
+ z.string().regex(
603
+ new RegExp("^-?[0-9]+(?:\\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$")
604
+ )
605
+ ]).optional(),
606
+ user: z.lazy(() => definitions["Outputdefs_user_id"]).optional(),
607
+ version: z.union([
608
+ z.number().int(),
609
+ z.string().regex(
610
+ new RegExp("^-?[0-9]+(?:\\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$")
611
+ )
612
+ ]).optional()
613
+ }).passthrough(),
614
+ z.object({
615
+ created: z.union([
616
+ z.number().int(),
617
+ z.string().regex(
618
+ new RegExp("^-?[0-9]+(?:\\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$")
619
+ )
620
+ ]).optional(),
621
+ has_pins: z.boolean().optional(),
622
+ id: z.lazy(() => definitions["Outputdefs_dm_id"]).optional(),
623
+ is_archived: z.boolean().optional(),
624
+ is_ext_shared: z.boolean().optional(),
625
+ is_frozen: z.boolean().optional(),
626
+ is_im: z.boolean().optional(),
627
+ is_open: z.boolean().optional(),
628
+ is_org_shared: z.boolean().optional(),
629
+ is_shared: z.boolean().optional(),
630
+ is_starred: z.boolean().optional(),
631
+ is_user_deleted: z.boolean().optional(),
632
+ last_read: z.lazy(() => definitions["Outputdefs_ts"]).optional(),
633
+ latest: z.union([z.lazy(() => definitions["Outputobjs_message"]), z.null()]).optional(),
634
+ parent_conversation: z.union([z.lazy(() => definitions["Outputdefs_channel"]), z.null()]).optional(),
635
+ pin_count: z.union([
636
+ z.number().int(),
637
+ z.string().regex(
638
+ new RegExp("^-?[0-9]+(?:\\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$")
639
+ )
640
+ ]).optional(),
641
+ priority: z.union([
642
+ z.number().finite(),
643
+ z.string().regex(
644
+ new RegExp("^-?[0-9]+(?:\\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$")
645
+ )
646
+ ]).optional(),
647
+ shares: z.array(
648
+ z.object({
649
+ date_create: z.union([
650
+ z.number().int(),
651
+ z.string().regex(
652
+ new RegExp(
653
+ "^-?[0-9]+(?:\\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$"
654
+ )
655
+ )
656
+ ]).optional(),
657
+ id: z.lazy(() => definitions["Outputdefs_team"]).optional(),
658
+ is_active: z.boolean().optional(),
659
+ name: z.string().optional(),
660
+ team: z.lazy(() => definitions["Outputobjs_team"]).optional()
661
+ }).passthrough()
662
+ ).optional(),
663
+ unread_count: z.union([
664
+ z.number().int(),
665
+ z.string().regex(
666
+ new RegExp("^-?[0-9]+(?:\\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$")
667
+ )
668
+ ]).optional(),
669
+ unread_count_display: z.union([
670
+ z.number().int(),
671
+ z.string().regex(
672
+ new RegExp("^-?[0-9]+(?:\\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$")
673
+ )
674
+ ]).optional(),
675
+ user: z.lazy(() => definitions["Outputdefs_user_id"]).optional(),
676
+ version: z.union([
677
+ z.number().int(),
678
+ z.string().regex(
679
+ new RegExp("^-?[0-9]+(?:\\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$")
680
+ )
681
+ ]).optional()
682
+ }).passthrough()
683
+ ]);
684
+ definitions["Outputdefs_enterprise_id"] = z.string();
685
+ definitions["Outputdefs_channel_name"] = z.string();
686
+ definitions["Outputdefs_topic_purpose_creator"] = z.string();
687
+ definitions["Outputobjs_team"] = z.object({
688
+ archived: z.boolean().optional(),
689
+ avatar_base_url: z.string().optional(),
690
+ created: z.union([
691
+ z.number().int(),
692
+ z.string().regex(new RegExp("^-?[0-9]+(?:\\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$"))
693
+ ]).optional(),
694
+ date_create: z.union([
695
+ z.number().int(),
696
+ z.string().regex(new RegExp("^-?[0-9]+(?:\\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$"))
697
+ ]).optional(),
698
+ deleted: z.boolean().optional(),
699
+ description: z.union([z.null(), z.string()]).optional(),
700
+ discoverable: z.union([z.null(), z.string()]).optional(),
701
+ domain: z.string().optional(),
702
+ email_domain: z.string().optional(),
703
+ enterprise_id: z.lazy(() => definitions["Outputdefs_enterprise_id"]).optional(),
704
+ enterprise_name: z.lazy(() => definitions["Outputdefs_enterprise_name"]).optional(),
705
+ external_org_migrations: z.lazy(() => definitions["Outputobjs_external_org_migrations"]).optional(),
706
+ has_compliance_export: z.boolean().optional(),
707
+ icon: z.lazy(() => definitions["Outputobjs_icon"]).optional(),
708
+ id: z.lazy(() => definitions["Outputdefs_workspace_id"]).optional(),
709
+ is_assigned: z.boolean().optional(),
710
+ is_enterprise: z.union([
711
+ z.number().int(),
712
+ z.string().regex(new RegExp("^-?[0-9]+(?:\\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$"))
713
+ ]).optional(),
714
+ is_over_storage_limit: z.boolean().optional(),
715
+ limit_ts: z.union([
716
+ z.number().int(),
717
+ z.string().regex(new RegExp("^-?[0-9]+(?:\\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$"))
718
+ ]).optional(),
719
+ locale: z.string().optional(),
720
+ messages_count: z.union([
721
+ z.number().int(),
722
+ z.string().regex(new RegExp("^-?[0-9]+(?:\\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$"))
723
+ ]).optional(),
724
+ msg_edit_window_mins: z.union([
725
+ z.number().int(),
726
+ z.string().regex(new RegExp("^-?[0-9]+(?:\\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$"))
727
+ ]).optional(),
728
+ name: z.string().optional(),
729
+ over_integrations_limit: z.boolean().optional(),
730
+ over_storage_limit: z.boolean().optional(),
731
+ pay_prod_cur: z.string().optional(),
732
+ plan: z.string().optional(),
733
+ primary_owner: z.lazy(() => definitions["Outputobjs_primary_owner"]).optional(),
734
+ sso_provider: z.object({
735
+ label: z.string().optional(),
736
+ name: z.string().optional(),
737
+ type: z.string().optional()
738
+ }).passthrough().optional()
739
+ }).passthrough();
740
+ definitions["Outputdefs_enterprise_name"] = z.string();
741
+ definitions["Outputobjs_external_org_migrations"] = z.object({
742
+ current: z.array(
743
+ z.object({
744
+ date_started: z.union([
745
+ z.number().int(),
746
+ z.string().regex(
747
+ new RegExp(
748
+ "^-?[0-9]+(?:\\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$"
749
+ )
750
+ )
751
+ ]).optional(),
752
+ team_id: z.string().optional()
753
+ }).passthrough()
754
+ ).optional(),
755
+ date_updated: z.union([
756
+ z.number().int(),
757
+ z.string().regex(new RegExp("^-?[0-9]+(?:\\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$"))
758
+ ]).optional()
759
+ }).passthrough();
760
+ definitions["Outputobjs_icon"] = z.object({
761
+ image_102: z.string().optional(),
762
+ image_132: z.string().optional(),
763
+ image_230: z.string().optional(),
764
+ image_34: z.string().optional(),
765
+ image_44: z.string().optional(),
766
+ image_68: z.string().optional(),
767
+ image_88: z.string().optional(),
768
+ image_default: z.boolean().optional()
769
+ }).passthrough();
770
+ definitions["Outputobjs_primary_owner"] = z.object({ email: z.string().optional(), id: z.string().optional() }).passthrough();
771
+ definitions["Outputobjs_comments"] = z.array(z.unknown());
772
+ definitions["Outputobjs_paging"] = z.object({
773
+ count: z.union([
774
+ z.number().int(),
775
+ z.string().regex(new RegExp("^-?[0-9]+(?:\\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$"))
776
+ ]).optional(),
777
+ page: z.union([
778
+ z.number().int(),
779
+ z.string().regex(new RegExp("^-?[0-9]+(?:\\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$"))
780
+ ]).optional(),
781
+ pages: z.union([
782
+ z.number().int(),
783
+ z.string().regex(new RegExp("^-?[0-9]+(?:\\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$"))
784
+ ]).optional(),
785
+ per_page: z.union([
786
+ z.number().int(),
787
+ z.string().regex(new RegExp("^-?[0-9]+(?:\\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$"))
788
+ ]).optional(),
789
+ spill: z.union([
790
+ z.number().int(),
791
+ z.string().regex(new RegExp("^-?[0-9]+(?:\\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$"))
792
+ ]).optional(),
793
+ total: z.union([
794
+ z.number().int(),
795
+ z.string().regex(new RegExp("^-?[0-9]+(?:\\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$"))
796
+ ]).optional()
797
+ }).passthrough();
798
+ definitions["Outputobjs_response_metadata"] = z.union([
799
+ z.object({ next_cursor: z.string().optional() }).passthrough(),
800
+ z.object({
801
+ messages: z.array(z.string()).optional(),
802
+ warnings: z.array(z.string()).optional()
803
+ }).passthrough(),
804
+ z.object({
805
+ messages: z.array(z.string()).optional(),
806
+ next_cursor: z.string().optional(),
807
+ warnings: z.array(z.string()).optional()
808
+ }).passthrough()
809
+ ]);
810
+ definitions["Outputobjs_team_profile_field"] = z.object({
811
+ field_name: z.union([z.null(), z.string()]).optional(),
812
+ hint: z.string().optional(),
813
+ id: z.string().optional(),
814
+ is_hidden: z.boolean().optional(),
815
+ label: z.string().optional(),
816
+ options: z.union([
817
+ z.null(),
818
+ z.lazy(() => definitions["Outputobjs_team_profile_field_option"])
819
+ ]).optional(),
820
+ ordering: z.union([
821
+ z.number().finite(),
822
+ z.string().regex(new RegExp("^-?[0-9]+(?:\\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$"))
823
+ ]).optional(),
824
+ possible_values: z.union([z.null(), z.array(z.string())]).optional(),
825
+ type: z.string().optional()
826
+ }).passthrough();
827
+ definitions["Outputobjs_team_profile_field_option"] = z.object({
828
+ is_custom: z.union([z.null(), z.boolean()]).optional(),
829
+ is_multiple_entry: z.union([z.null(), z.boolean()]).optional(),
830
+ is_protected: z.union([z.null(), z.boolean()]).optional(),
831
+ is_scim: z.union([z.null(), z.boolean()]).optional()
832
+ }).passthrough();
833
+ definitions["Outputobjs_subteam"] = z.object({
834
+ auto_provision: z.boolean().optional(),
835
+ auto_type: z.union([z.null(), z.string()]).optional(),
836
+ channel_count: z.union([
837
+ z.number().int(),
838
+ z.string().regex(new RegExp("^-?[0-9]+(?:\\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$"))
839
+ ]).optional(),
840
+ created_by: z.lazy(() => definitions["Outputdefs_user_id"]).optional(),
841
+ date_create: z.union([
842
+ z.number().int(),
843
+ z.string().regex(new RegExp("^-?[0-9]+(?:\\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$"))
844
+ ]).optional(),
845
+ date_delete: z.union([
846
+ z.number().int(),
847
+ z.string().regex(new RegExp("^-?[0-9]+(?:\\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$"))
848
+ ]).optional(),
849
+ date_update: z.union([
850
+ z.number().int(),
851
+ z.string().regex(new RegExp("^-?[0-9]+(?:\\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$"))
852
+ ]).optional(),
853
+ deleted_by: z.union([z.null(), z.lazy(() => definitions["Outputdefs_user_id"])]).optional(),
854
+ description: z.string().optional(),
855
+ enterprise_subteam_id: z.string().optional(),
856
+ handle: z.string().optional(),
857
+ id: z.lazy(() => definitions["Outputdefs_subteam_id"]).optional(),
858
+ is_external: z.boolean().optional(),
859
+ is_subteam: z.boolean().optional(),
860
+ is_usergroup: z.boolean().optional(),
861
+ name: z.string().optional(),
862
+ prefs: z.object({
863
+ channels: z.array(z.lazy(() => definitions["Outputdefs_channel_id"])).optional(),
864
+ groups: z.array(z.lazy(() => definitions["Outputdefs_group_id"])).optional()
865
+ }).passthrough().optional(),
866
+ team_id: z.lazy(() => definitions["Outputdefs_team"]).optional(),
867
+ updated_by: z.lazy(() => definitions["Outputdefs_user_id"]).optional(),
868
+ user_count: z.union([
869
+ z.number().int(),
870
+ z.string().regex(new RegExp("^-?[0-9]+(?:\\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$"))
871
+ ]).optional(),
872
+ users: z.array(z.lazy(() => definitions["Outputdefs_user_id"])).optional()
873
+ }).passthrough();
874
+ definitions["Outputdefs_subteam_id"] = z.string();
875
+ definitions["Outputobjs_user"] = z.union([
876
+ z.object({
877
+ color: z.string().optional(),
878
+ deleted: z.boolean().optional(),
879
+ enterprise_user: z.lazy(() => definitions["Outputobjs_enterprise_user"]).optional(),
880
+ has_2fa: z.boolean().optional(),
881
+ id: z.lazy(() => definitions["Outputdefs_user_id"]).optional(),
882
+ is_admin: z.boolean().optional(),
883
+ is_app_user: z.boolean().optional(),
884
+ is_bot: z.boolean().optional(),
885
+ is_external: z.boolean().optional(),
886
+ is_forgotten: z.boolean().optional(),
887
+ is_invited_user: z.boolean().optional(),
888
+ is_owner: z.boolean().optional(),
889
+ is_primary_owner: z.boolean().optional(),
890
+ is_restricted: z.boolean().optional(),
891
+ is_stranger: z.boolean().optional(),
892
+ is_ultra_restricted: z.boolean().optional(),
893
+ locale: z.string().optional(),
894
+ name: z.string().optional(),
895
+ presence: z.string().optional(),
896
+ profile: z.lazy(() => definitions["Outputobjs_user_profile"]).optional(),
897
+ real_name: z.string().optional(),
898
+ team: z.lazy(() => definitions["Outputdefs_workspace_id"]).optional(),
899
+ team_id: z.lazy(() => definitions["Outputdefs_workspace_id"]).optional(),
900
+ team_profile: z.object({
901
+ fields: z.array(
902
+ z.lazy(() => definitions["Outputobjs_team_profile_field"])
903
+ ).optional()
904
+ }).passthrough().optional(),
905
+ two_factor_type: z.string().optional(),
906
+ tz: z.union([z.null(), z.string()]).optional(),
907
+ tz_label: z.string().optional(),
908
+ tz_offset: z.union([
909
+ z.number().finite(),
910
+ z.string().regex(
911
+ new RegExp("^-?[0-9]+(?:\\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$")
912
+ )
913
+ ]).optional(),
914
+ updated: z.union([
915
+ z.number().finite(),
916
+ z.string().regex(
917
+ new RegExp("^-?[0-9]+(?:\\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$")
918
+ )
919
+ ]).optional()
920
+ }).passthrough(),
921
+ z.object({
922
+ color: z.string().optional(),
923
+ deleted: z.boolean().optional(),
924
+ enterprise_user: z.lazy(() => definitions["Outputobjs_enterprise_user"]).optional(),
925
+ has_2fa: z.boolean().optional(),
926
+ id: z.lazy(() => definitions["Outputdefs_user_id"]).optional(),
927
+ is_admin: z.boolean().optional(),
928
+ is_app_user: z.boolean().optional(),
929
+ is_bot: z.boolean().optional(),
930
+ is_external: z.boolean().optional(),
931
+ is_forgotten: z.boolean().optional(),
932
+ is_owner: z.boolean().optional(),
933
+ is_primary_owner: z.boolean().optional(),
934
+ is_restricted: z.boolean().optional(),
935
+ is_stranger: z.boolean().optional(),
936
+ is_ultra_restricted: z.boolean().optional(),
937
+ locale: z.string().optional(),
938
+ name: z.string().optional(),
939
+ presence: z.string().optional(),
940
+ profile: z.lazy(() => definitions["Outputobjs_user_profile"]).optional(),
941
+ real_name: z.string().optional(),
942
+ team_id: z.lazy(() => definitions["Outputdefs_workspace_id"]).optional(),
943
+ team_profile: z.object({
944
+ fields: z.array(
945
+ z.lazy(() => definitions["Outputobjs_team_profile_field"])
946
+ ).optional()
947
+ }).passthrough().optional(),
948
+ teams: z.array(z.lazy(() => definitions["Outputdefs_workspace_id"])).optional(),
949
+ two_factor_type: z.string().optional(),
950
+ tz: z.union([z.null(), z.string()]).optional(),
951
+ tz_label: z.string().optional(),
952
+ tz_offset: z.union([
953
+ z.number().finite(),
954
+ z.string().regex(
955
+ new RegExp("^-?[0-9]+(?:\\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$")
956
+ )
957
+ ]).optional(),
958
+ updated: z.union([
959
+ z.number().finite(),
960
+ z.string().regex(
961
+ new RegExp("^-?[0-9]+(?:\\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$")
962
+ )
963
+ ]).optional()
964
+ }).passthrough()
965
+ ]);
966
+ definitions["Outputobjs_enterprise_user"] = z.object({
967
+ enterprise_id: z.lazy(() => definitions["Outputdefs_enterprise_id"]).optional(),
968
+ enterprise_name: z.lazy(() => definitions["Outputdefs_enterprise_name"]).optional(),
969
+ id: z.lazy(() => definitions["Outputdefs_enterprise_user_id"]).optional(),
970
+ is_admin: z.boolean().optional(),
971
+ is_owner: z.boolean().optional(),
972
+ teams: z.array(z.lazy(() => definitions["Outputdefs_team"])).optional()
973
+ }).passthrough();
974
+ definitions["Outputdefs_enterprise_user_id"] = z.string();
975
+ definitions["Outputobjs_user_profile"] = z.object({
976
+ always_active: z.boolean().optional(),
977
+ api_app_id: z.lazy(() => definitions["Outputdefs_optional_app_id"]).optional(),
978
+ avatar_hash: z.string().optional(),
979
+ bot_id: z.lazy(() => definitions["Outputdefs_bot_id"]).optional(),
980
+ display_name: z.string().optional(),
981
+ display_name_normalized: z.string().optional(),
982
+ email: z.union([z.null(), z.string()]).optional(),
983
+ fields: z.union([
984
+ z.object({}).passthrough(),
985
+ z.null(),
986
+ z.array(z.object({}).passthrough())
987
+ ]).optional(),
988
+ first_name: z.union([z.null(), z.string()]).optional(),
989
+ guest_expiration_ts: z.union([
990
+ z.null(),
991
+ z.union([
992
+ z.number().int(),
993
+ z.string().regex(
994
+ new RegExp("^-?[0-9]+(?:\\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$")
995
+ )
996
+ ])
997
+ ]).optional(),
998
+ guest_invited_by: z.union([z.null(), z.string()]).optional(),
999
+ image_1024: z.union([z.null(), z.string()]).optional(),
1000
+ image_192: z.union([z.null(), z.string()]).optional(),
1001
+ image_24: z.union([z.null(), z.string()]).optional(),
1002
+ image_32: z.union([z.null(), z.string()]).optional(),
1003
+ image_48: z.union([z.null(), z.string()]).optional(),
1004
+ image_512: z.union([z.null(), z.string()]).optional(),
1005
+ image_72: z.union([z.null(), z.string()]).optional(),
1006
+ image_original: z.union([z.null(), z.string()]).optional(),
1007
+ is_app_user: z.boolean().optional(),
1008
+ is_custom_image: z.boolean().optional(),
1009
+ is_restricted: z.union([z.null(), z.boolean()]).optional(),
1010
+ is_ultra_restricted: z.union([z.null(), z.boolean()]).optional(),
1011
+ last_avatar_image_hash: z.string().optional(),
1012
+ last_name: z.union([z.null(), z.string()]).optional(),
1013
+ memberships_count: z.union([
1014
+ z.number().int(),
1015
+ z.string().regex(new RegExp("^-?[0-9]+(?:\\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$"))
1016
+ ]).optional(),
1017
+ name: z.union([z.null(), z.string()]).optional(),
1018
+ phone: z.string().optional(),
1019
+ pronouns: z.string().optional(),
1020
+ real_name: z.string().optional(),
1021
+ real_name_normalized: z.string().optional(),
1022
+ skype: z.string().optional(),
1023
+ status_default_emoji: z.string().optional(),
1024
+ status_default_text: z.string().optional(),
1025
+ status_default_text_canonical: z.union([z.null(), z.string()]).optional(),
1026
+ status_emoji: z.string().optional(),
1027
+ status_expiration: z.union([
1028
+ z.number().int(),
1029
+ z.string().regex(new RegExp("^-?[0-9]+(?:\\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$"))
1030
+ ]).optional(),
1031
+ status_text: z.string().optional(),
1032
+ status_text_canonical: z.union([z.null(), z.string()]).optional(),
1033
+ team: z.lazy(() => definitions["Outputdefs_workspace_id"]).optional(),
1034
+ title: z.string().optional(),
1035
+ updated: z.union([
1036
+ z.number().int(),
1037
+ z.string().regex(new RegExp("^-?[0-9]+(?:\\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$"))
1038
+ ]).optional(),
1039
+ user_id: z.string().optional(),
1040
+ username: z.union([z.null(), z.string()]).optional()
1041
+ }).passthrough();
1042
+ definitions["Outputdefs_optional_app_id"] = z.string();
1043
+ const outputs = {
1044
+ "slack.api_test": {
1045
+ accept: "application/json",
1046
+ noContentStatuses: [],
1047
+ schema: z.object({ ok: z.lazy(() => definitions["Outputdefs_ok_true"]) }).catchall(z.object({}).passthrough()),
1048
+ inputSchema: z.object({
1049
+ query: z.object({ error: z.string().optional() }).strict().optional()
1050
+ }).strict()
1051
+ },
1052
+ "slack.auth_test": {
1053
+ accept: "application/json",
1054
+ noContentStatuses: [],
1055
+ schema: z.object({
1056
+ bot_id: z.lazy(() => definitions["Outputdefs_bot_id"]).optional(),
1057
+ is_enterprise_install: z.boolean().optional(),
1058
+ ok: z.lazy(() => definitions["Outputdefs_ok_true"]),
1059
+ team: z.string().optional(),
1060
+ team_id: z.lazy(() => definitions["Outputdefs_team"]).optional(),
1061
+ url: z.string().optional(),
1062
+ user: z.string().optional(),
1063
+ user_id: z.lazy(() => definitions["Outputdefs_user_id"]).optional()
1064
+ }).passthrough(),
1065
+ inputSchema: z.object({}).strict()
1066
+ },
1067
+ "slack.bots_info": {
1068
+ accept: "application/json",
1069
+ noContentStatuses: [],
1070
+ schema: z.object({
1071
+ bot: z.object({
1072
+ app_id: z.lazy(() => definitions["Outputdefs_app_id"]).optional(),
1073
+ deleted: z.boolean().optional(),
1074
+ icons: z.object({
1075
+ image_36: z.string().optional(),
1076
+ image_48: z.string().optional(),
1077
+ image_72: z.string().optional()
1078
+ }).passthrough().optional(),
1079
+ id: z.lazy(() => definitions["Outputdefs_bot_id"]).optional(),
1080
+ name: z.string().optional(),
1081
+ updated: z.union([
1082
+ z.number().int(),
1083
+ z.string().regex(
1084
+ new RegExp(
1085
+ "^-?[0-9]+(?:\\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$"
1086
+ )
1087
+ )
1088
+ ]).optional(),
1089
+ user_id: z.lazy(() => definitions["Outputdefs_user_id"]).optional()
1090
+ }).passthrough().optional(),
1091
+ ok: z.lazy(() => definitions["Outputdefs_ok_true"])
1092
+ }).passthrough(),
1093
+ inputSchema: z.object({
1094
+ query: z.object({
1095
+ bot: z.string().optional(),
1096
+ team_id: z.string().optional()
1097
+ }).strict().optional()
1098
+ }).strict()
1099
+ },
1100
+ "slack.calls_add": {
1101
+ accept: "application/json",
1102
+ noContentStatuses: [],
1103
+ schema: z.object({ ok: z.lazy(() => definitions["Outputdefs_ok_true"]) }).passthrough(),
1104
+ inputSchema: z.object({
1105
+ body: z.object({
1106
+ created_by: z.string().optional(),
1107
+ date_start: z.number().int().optional(),
1108
+ desktop_app_join_url: z.string().optional(),
1109
+ external_display_id: z.string().optional(),
1110
+ external_unique_id: z.string(),
1111
+ join_url: z.string(),
1112
+ title: z.string().optional(),
1113
+ users: z.string().optional()
1114
+ }).passthrough()
1115
+ }).strict()
1116
+ },
1117
+ "slack.calls_end": {
1118
+ accept: "application/json",
1119
+ noContentStatuses: [],
1120
+ schema: z.object({ ok: z.lazy(() => definitions["Outputdefs_ok_true"]) }).passthrough(),
1121
+ inputSchema: z.object({
1122
+ body: z.object({ duration: z.number().int().optional(), id: z.string() }).passthrough()
1123
+ }).strict()
1124
+ },
1125
+ "slack.calls_info": {
1126
+ accept: "application/json",
1127
+ noContentStatuses: [],
1128
+ schema: z.object({ ok: z.lazy(() => definitions["Outputdefs_ok_true"]) }).passthrough(),
1129
+ inputSchema: z.object({ query: z.object({ id: z.string() }).strict() }).strict()
1130
+ },
1131
+ "slack.calls_participants_add": {
1132
+ accept: "application/json",
1133
+ noContentStatuses: [],
1134
+ schema: z.object({ ok: z.lazy(() => definitions["Outputdefs_ok_true"]) }).passthrough(),
1135
+ inputSchema: z.object({
1136
+ body: z.object({ id: z.string(), users: z.string() }).passthrough()
1137
+ }).strict()
1138
+ },
1139
+ "slack.calls_participants_remove": {
1140
+ accept: "application/json",
1141
+ noContentStatuses: [],
1142
+ schema: z.object({ ok: z.lazy(() => definitions["Outputdefs_ok_true"]) }).passthrough(),
1143
+ inputSchema: z.object({
1144
+ body: z.object({ id: z.string(), users: z.string() }).passthrough()
1145
+ }).strict()
1146
+ },
1147
+ "slack.calls_update": {
1148
+ accept: "application/json",
1149
+ noContentStatuses: [],
1150
+ schema: z.object({ ok: z.lazy(() => definitions["Outputdefs_ok_true"]) }).passthrough(),
1151
+ inputSchema: z.object({
1152
+ body: z.object({
1153
+ desktop_app_join_url: z.string().optional(),
1154
+ id: z.string(),
1155
+ join_url: z.string().optional(),
1156
+ title: z.string().optional()
1157
+ }).passthrough()
1158
+ }).strict()
1159
+ },
1160
+ "slack.chat_delete": {
1161
+ accept: "application/json",
1162
+ noContentStatuses: [],
1163
+ schema: z.object({
1164
+ channel: z.lazy(() => definitions["Outputdefs_channel"]).optional(),
1165
+ ok: z.lazy(() => definitions["Outputdefs_ok_true"]),
1166
+ ts: z.lazy(() => definitions["Outputdefs_ts"]).optional()
1167
+ }).passthrough(),
1168
+ inputSchema: z.object({
1169
+ body: z.object({
1170
+ as_user: z.boolean().optional(),
1171
+ channel: z.string(),
1172
+ ts: z.string()
1173
+ }).passthrough()
1174
+ }).strict()
1175
+ },
1176
+ "slack.chat_deletescheduledmessage": {
1177
+ accept: "application/json",
1178
+ noContentStatuses: [],
1179
+ schema: z.object({ ok: z.lazy(() => definitions["Outputdefs_ok_true"]) }).passthrough(),
1180
+ inputSchema: z.object({
1181
+ body: z.object({
1182
+ as_user: z.boolean().optional(),
1183
+ channel: z.string(),
1184
+ scheduled_message_id: z.string()
1185
+ }).passthrough()
1186
+ }).strict()
1187
+ },
1188
+ "slack.chat_getpermalink": {
1189
+ accept: "application/json",
1190
+ noContentStatuses: [],
1191
+ schema: z.object({
1192
+ channel: z.lazy(() => definitions["Outputdefs_channel"]).optional(),
1193
+ ok: z.lazy(() => definitions["Outputdefs_ok_true"]),
1194
+ permalink: z.string().optional()
1195
+ }).passthrough(),
1196
+ inputSchema: z.object({
1197
+ query: z.object({ channel: z.string(), message_ts: z.string() }).strict()
1198
+ }).strict()
1199
+ },
1200
+ "slack.chat_memessage": {
1201
+ accept: "application/json",
1202
+ noContentStatuses: [],
1203
+ schema: z.object({
1204
+ channel: z.lazy(() => definitions["Outputdefs_channel"]).optional(),
1205
+ ok: z.lazy(() => definitions["Outputdefs_ok_true"]),
1206
+ ts: z.lazy(() => definitions["Outputdefs_ts"]).optional()
1207
+ }).passthrough(),
1208
+ inputSchema: z.object({
1209
+ body: z.object({ channel: z.string(), text: z.string() }).passthrough()
1210
+ }).strict()
1211
+ },
1212
+ "slack.chat_postephemeral": {
1213
+ accept: "application/json",
1214
+ noContentStatuses: [],
1215
+ schema: z.object({
1216
+ message_ts: z.lazy(() => definitions["Outputdefs_ts"]).optional(),
1217
+ ok: z.lazy(() => definitions["Outputdefs_ok_true"])
1218
+ }).passthrough(),
1219
+ inputSchema: z.object({
1220
+ body: z.object({
1221
+ as_user: z.boolean().optional(),
1222
+ attachments: z.string().optional(),
1223
+ blocks: z.string().optional(),
1224
+ channel: z.string(),
1225
+ icon_emoji: z.string().optional(),
1226
+ icon_url: z.string().optional(),
1227
+ link_names: z.boolean().optional(),
1228
+ markdown_text: z.string().optional(),
1229
+ metadata: z.string().optional(),
1230
+ parse: z.string().optional(),
1231
+ text: z.string().optional(),
1232
+ thread_ts: z.string().optional(),
1233
+ user: z.string(),
1234
+ username: z.string().optional()
1235
+ }).passthrough()
1236
+ }).strict()
1237
+ },
1238
+ "slack.chat_postmessage": {
1239
+ accept: "application/json",
1240
+ noContentStatuses: [],
1241
+ schema: z.object({
1242
+ channel: z.lazy(() => definitions["Outputdefs_channel"]).optional(),
1243
+ message: z.lazy(() => definitions["Outputobjs_message"]).optional(),
1244
+ ok: z.lazy(() => definitions["Outputdefs_ok_true"]),
1245
+ ts: z.lazy(() => definitions["Outputdefs_ts"]).optional()
1246
+ }).passthrough(),
1247
+ inputSchema: z.object({
1248
+ body: z.object({
1249
+ as_user: z.boolean().optional(),
1250
+ attachments: z.string().optional(),
1251
+ blocks: z.string().optional(),
1252
+ channel: z.string(),
1253
+ current_draft_last_updated_ts: z.string().optional(),
1254
+ icon_emoji: z.string().optional(),
1255
+ icon_url: z.string().optional(),
1256
+ link_names: z.boolean().optional(),
1257
+ markdown_text: z.string().optional(),
1258
+ metadata: z.string().optional(),
1259
+ mrkdwn: z.boolean().optional(),
1260
+ parse: z.string().optional(),
1261
+ reply_broadcast: z.boolean().optional(),
1262
+ text: z.string().optional(),
1263
+ thread_ts: z.string().optional(),
1264
+ unfurl_app_links: z.boolean().optional(),
1265
+ unfurl_links: z.boolean().optional(),
1266
+ unfurl_media: z.boolean().optional(),
1267
+ username: z.string().optional()
1268
+ }).passthrough()
1269
+ }).strict()
1270
+ },
1271
+ "slack.chat_scheduledmessages_list": {
1272
+ accept: "application/json",
1273
+ noContentStatuses: [],
1274
+ schema: z.object({
1275
+ ok: z.lazy(() => definitions["Outputdefs_ok_true"]),
1276
+ response_metadata: z.object({ next_cursor: z.string().optional() }).passthrough().optional(),
1277
+ scheduled_messages: z.array(
1278
+ z.object({
1279
+ channel_id: z.lazy(() => definitions["Outputdefs_channel_id"]).optional(),
1280
+ date_created: z.union([
1281
+ z.number().int(),
1282
+ z.string().regex(
1283
+ new RegExp(
1284
+ "^-?[0-9]+(?:\\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$"
1285
+ )
1286
+ )
1287
+ ]).optional(),
1288
+ id: z.string().optional(),
1289
+ post_at: z.union([
1290
+ z.number().int(),
1291
+ z.string().regex(
1292
+ new RegExp(
1293
+ "^-?[0-9]+(?:\\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$"
1294
+ )
1295
+ )
1296
+ ]).optional(),
1297
+ text: z.string().optional()
1298
+ }).passthrough()
1299
+ ).optional()
1300
+ }).passthrough(),
1301
+ inputSchema: z.object({
1302
+ query: z.object({
1303
+ channel: z.string().optional(),
1304
+ cursor: z.string().optional(),
1305
+ latest: z.string().optional(),
1306
+ limit: z.number().int().optional(),
1307
+ oldest: z.string().optional(),
1308
+ team_id: z.string().optional()
1309
+ }).strict().optional()
1310
+ }).strict()
1311
+ },
1312
+ "slack.chat_schedulemessage": {
1313
+ accept: "application/json",
1314
+ noContentStatuses: [],
1315
+ schema: z.object({
1316
+ channel: z.lazy(() => definitions["Outputdefs_channel"]).optional(),
1317
+ message: z.object({
1318
+ bot_id: z.lazy(() => definitions["Outputdefs_bot_id"]).optional(),
1319
+ bot_profile: z.lazy(() => definitions["Outputobjs_bot_profile"]).optional(),
1320
+ team: z.lazy(() => definitions["Outputdefs_team"]).optional(),
1321
+ text: z.string().optional(),
1322
+ type: z.string().optional(),
1323
+ user: z.lazy(() => definitions["Outputdefs_user_id"]).optional(),
1324
+ username: z.string().optional()
1325
+ }).passthrough().optional(),
1326
+ ok: z.lazy(() => definitions["Outputdefs_ok_true"]),
1327
+ post_at: z.union([
1328
+ z.number().int(),
1329
+ z.string().regex(
1330
+ new RegExp("^-?[0-9]+(?:\\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$")
1331
+ )
1332
+ ]).optional(),
1333
+ scheduled_message_id: z.string().optional()
1334
+ }).passthrough(),
1335
+ inputSchema: z.object({
1336
+ body: z.object({
1337
+ as_user: z.boolean().optional(),
1338
+ attachments: z.string().optional(),
1339
+ blocks: z.string().optional(),
1340
+ channel: z.string(),
1341
+ link_names: z.boolean().optional(),
1342
+ markdown_text: z.string().optional(),
1343
+ metadata: z.string().optional(),
1344
+ parse: z.string().optional(),
1345
+ post_at: z.number().int(),
1346
+ reply_broadcast: z.boolean().optional(),
1347
+ text: z.string().optional(),
1348
+ thread_ts: z.string().optional(),
1349
+ unfurl_links: z.boolean().optional(),
1350
+ unfurl_media: z.boolean().optional()
1351
+ }).passthrough()
1352
+ }).strict()
1353
+ },
1354
+ "slack.chat_unfurl": {
1355
+ accept: "application/json",
1356
+ noContentStatuses: [],
1357
+ schema: z.object({ ok: z.lazy(() => definitions["Outputdefs_ok_true"]) }).passthrough(),
1358
+ inputSchema: z.object({
1359
+ body: z.object({
1360
+ channel: z.string().optional(),
1361
+ source: z.string().optional(),
1362
+ ts: z.string().optional(),
1363
+ unfurl_id: z.string().optional(),
1364
+ unfurls: z.string().optional(),
1365
+ user_auth_blocks: z.string().optional(),
1366
+ user_auth_message: z.string().optional(),
1367
+ user_auth_required: z.boolean().optional(),
1368
+ user_auth_url: z.string().optional()
1369
+ }).passthrough().optional()
1370
+ }).strict()
1371
+ },
1372
+ "slack.chat_update": {
1373
+ accept: "application/json",
1374
+ noContentStatuses: [],
1375
+ schema: z.object({
1376
+ channel: z.string().optional(),
1377
+ message: z.object({
1378
+ attachments: z.array(z.object({}).passthrough()).optional(),
1379
+ blocks: z.object({}).passthrough().optional(),
1380
+ text: z.string().optional()
1381
+ }).passthrough().optional(),
1382
+ ok: z.lazy(() => definitions["Outputdefs_ok_true"]),
1383
+ text: z.string().optional(),
1384
+ ts: z.string().optional()
1385
+ }).passthrough(),
1386
+ inputSchema: z.object({
1387
+ body: z.object({
1388
+ as_user: z.boolean().optional(),
1389
+ attachments: z.string().optional(),
1390
+ blocks: z.string().optional(),
1391
+ channel: z.string(),
1392
+ file_ids: z.string().optional(),
1393
+ link_names: z.boolean().optional(),
1394
+ markdown_text: z.string().optional(),
1395
+ metadata: z.string().optional(),
1396
+ parse: z.string().optional(),
1397
+ reply_broadcast: z.boolean().optional(),
1398
+ text: z.string().optional(),
1399
+ ts: z.string(),
1400
+ unfurled_attachments: z.string().optional()
1401
+ }).passthrough()
1402
+ }).strict()
1403
+ },
1404
+ "slack.conversations_archive": {
1405
+ accept: "application/json",
1406
+ noContentStatuses: [],
1407
+ schema: z.object({ ok: z.lazy(() => definitions["Outputdefs_ok_true"]) }).passthrough(),
1408
+ inputSchema: z.object({ body: z.object({ channel: z.string() }).passthrough() }).strict()
1409
+ },
1410
+ "slack.conversations_close": {
1411
+ accept: "application/json",
1412
+ noContentStatuses: [],
1413
+ schema: z.object({
1414
+ already_closed: z.boolean().optional(),
1415
+ no_op: z.boolean().optional(),
1416
+ ok: z.lazy(() => definitions["Outputdefs_ok_true"])
1417
+ }).passthrough(),
1418
+ inputSchema: z.object({ body: z.object({ channel: z.string() }).passthrough() }).strict()
1419
+ },
1420
+ "slack.conversations_create": {
1421
+ accept: "application/json",
1422
+ noContentStatuses: [],
1423
+ schema: z.object({
1424
+ channel: z.lazy(() => definitions["Outputobjs_conversation"]).optional(),
1425
+ ok: z.lazy(() => definitions["Outputdefs_ok_true"])
1426
+ }).passthrough(),
1427
+ inputSchema: z.object({
1428
+ body: z.object({
1429
+ is_private: z.boolean().optional(),
1430
+ name: z.string(),
1431
+ team_id: z.string().optional()
1432
+ }).passthrough()
1433
+ }).strict()
1434
+ },
1435
+ "slack.conversations_history": {
1436
+ accept: "application/json",
1437
+ noContentStatuses: [],
1438
+ schema: z.object({
1439
+ channel_actions_count: z.union([
1440
+ z.number().int(),
1441
+ z.string().regex(
1442
+ new RegExp("^-?[0-9]+(?:\\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$")
1443
+ )
1444
+ ]).optional(),
1445
+ channel_actions_ts: z.union([
1446
+ z.union([
1447
+ z.number().int(),
1448
+ z.string().regex(
1449
+ new RegExp("^-?[0-9]+(?:\\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$")
1450
+ )
1451
+ ]),
1452
+ z.null()
1453
+ ]).optional(),
1454
+ has_more: z.boolean().optional(),
1455
+ messages: z.array(z.lazy(() => definitions["Outputobjs_message"])).optional(),
1456
+ ok: z.lazy(() => definitions["Outputdefs_ok_true"]),
1457
+ pin_count: z.union([
1458
+ z.number().int(),
1459
+ z.string().regex(
1460
+ new RegExp("^-?[0-9]+(?:\\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$")
1461
+ )
1462
+ ]).optional()
1463
+ }).passthrough(),
1464
+ inputSchema: z.object({
1465
+ query: z.object({
1466
+ channel: z.string(),
1467
+ cursor: z.string().optional(),
1468
+ include_all_metadata: z.boolean().optional(),
1469
+ inclusive: z.boolean().optional(),
1470
+ latest: z.string().optional(),
1471
+ limit: z.number().finite().optional(),
1472
+ oldest: z.string().optional()
1473
+ }).strict()
1474
+ }).strict()
1475
+ },
1476
+ "slack.conversations_info": {
1477
+ accept: "application/json",
1478
+ noContentStatuses: [],
1479
+ schema: z.object({
1480
+ channel: z.lazy(() => definitions["Outputobjs_conversation"]).optional(),
1481
+ ok: z.lazy(() => definitions["Outputdefs_ok_true"])
1482
+ }).passthrough(),
1483
+ inputSchema: z.object({
1484
+ query: z.object({
1485
+ channel: z.string(),
1486
+ include_locale: z.boolean().optional(),
1487
+ include_num_members: z.boolean().optional()
1488
+ }).strict()
1489
+ }).strict()
1490
+ },
1491
+ "slack.conversations_invite": {
1492
+ accept: "application/json",
1493
+ noContentStatuses: [],
1494
+ schema: z.object({
1495
+ channel: z.lazy(() => definitions["Outputobjs_conversation"]).optional(),
1496
+ ok: z.lazy(() => definitions["Outputdefs_ok_true"])
1497
+ }).passthrough(),
1498
+ inputSchema: z.object({
1499
+ body: z.object({
1500
+ channel: z.string(),
1501
+ force: z.boolean().optional(),
1502
+ users: z.string()
1503
+ }).passthrough()
1504
+ }).strict()
1505
+ },
1506
+ "slack.conversations_join": {
1507
+ accept: "application/json",
1508
+ noContentStatuses: [],
1509
+ schema: z.object({
1510
+ channel: z.lazy(() => definitions["Outputobjs_conversation"]).optional(),
1511
+ ok: z.lazy(() => definitions["Outputdefs_ok_true"]),
1512
+ response_metadata: z.object({ warnings: z.array(z.string()).optional() }).passthrough().optional(),
1513
+ warning: z.string().optional()
1514
+ }).passthrough(),
1515
+ inputSchema: z.object({ body: z.object({ channel: z.string() }).passthrough() }).strict()
1516
+ },
1517
+ "slack.conversations_kick": {
1518
+ accept: "application/json",
1519
+ noContentStatuses: [],
1520
+ schema: z.object({ ok: z.lazy(() => definitions["Outputdefs_ok_true"]) }).passthrough(),
1521
+ inputSchema: z.object({
1522
+ body: z.object({ channel: z.string(), user: z.string().optional() }).passthrough()
1523
+ }).strict()
1524
+ },
1525
+ "slack.conversations_leave": {
1526
+ accept: "application/json",
1527
+ noContentStatuses: [],
1528
+ schema: z.object({
1529
+ not_in_channel: z.boolean().optional(),
1530
+ ok: z.lazy(() => definitions["Outputdefs_ok_true"])
1531
+ }).passthrough(),
1532
+ inputSchema: z.object({ body: z.object({ channel: z.string() }).passthrough() }).strict()
1533
+ },
1534
+ "slack.conversations_list": {
1535
+ accept: "application/json",
1536
+ noContentStatuses: [],
1537
+ schema: z.object({
1538
+ channels: z.array(z.lazy(() => definitions["Outputobjs_conversation"])).optional(),
1539
+ ok: z.lazy(() => definitions["Outputdefs_ok_true"]),
1540
+ response_metadata: z.object({ next_cursor: z.string().optional() }).passthrough().optional()
1541
+ }).passthrough(),
1542
+ inputSchema: z.object({
1543
+ query: z.object({
1544
+ cursor: z.string().optional(),
1545
+ exclude_archived: z.boolean().optional(),
1546
+ limit: z.number().finite().optional(),
1547
+ team_id: z.string().optional(),
1548
+ types: z.string().optional()
1549
+ }).strict().optional()
1550
+ }).strict()
1551
+ },
1552
+ "slack.conversations_mark": {
1553
+ accept: "application/json",
1554
+ noContentStatuses: [],
1555
+ schema: z.object({ ok: z.lazy(() => definitions["Outputdefs_ok_true"]) }).passthrough(),
1556
+ inputSchema: z.object({
1557
+ body: z.object({ channel: z.string(), ts: z.string() }).passthrough()
1558
+ }).strict()
1559
+ },
1560
+ "slack.conversations_members": {
1561
+ accept: "application/json",
1562
+ noContentStatuses: [],
1563
+ schema: z.object({
1564
+ members: z.array(z.lazy(() => definitions["Outputdefs_user_id"])).optional(),
1565
+ ok: z.lazy(() => definitions["Outputdefs_ok_true"]),
1566
+ response_metadata: z.object({ next_cursor: z.string().optional() }).passthrough().optional()
1567
+ }).passthrough(),
1568
+ inputSchema: z.object({
1569
+ query: z.object({
1570
+ channel: z.string(),
1571
+ cursor: z.string().optional(),
1572
+ limit: z.number().finite().optional()
1573
+ }).strict()
1574
+ }).strict()
1575
+ },
1576
+ "slack.conversations_open": {
1577
+ accept: "application/json",
1578
+ noContentStatuses: [],
1579
+ schema: z.object({
1580
+ already_open: z.boolean().optional(),
1581
+ channel: z.union([
1582
+ z.lazy(() => definitions["Outputobjs_conversation"]),
1583
+ z.object({
1584
+ created: z.string().optional(),
1585
+ id: z.lazy(() => definitions["Outputdefs_dm_id"]).optional(),
1586
+ is_im: z.boolean().optional(),
1587
+ is_open: z.boolean().optional(),
1588
+ last_read: z.lazy(() => definitions["Outputdefs_ts"]).optional(),
1589
+ latest: z.lazy(() => definitions["Outputobjs_message"]).optional(),
1590
+ unread_count: z.union([
1591
+ z.number().finite(),
1592
+ z.string().regex(
1593
+ new RegExp(
1594
+ "^-?[0-9]+(?:\\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$"
1595
+ )
1596
+ )
1597
+ ]).optional(),
1598
+ unread_count_display: z.union([
1599
+ z.number().finite(),
1600
+ z.string().regex(
1601
+ new RegExp(
1602
+ "^-?[0-9]+(?:\\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$"
1603
+ )
1604
+ )
1605
+ ]).optional(),
1606
+ user: z.lazy(() => definitions["Outputdefs_user_id"]).optional()
1607
+ }).passthrough()
1608
+ ]).optional(),
1609
+ no_op: z.boolean().optional(),
1610
+ ok: z.lazy(() => definitions["Outputdefs_ok_true"])
1611
+ }).passthrough(),
1612
+ inputSchema: z.object({
1613
+ body: z.object({
1614
+ channel: z.string().optional(),
1615
+ prevent_creation: z.boolean().optional(),
1616
+ return_im: z.boolean().optional(),
1617
+ users: z.string().optional()
1618
+ }).passthrough().optional()
1619
+ }).strict()
1620
+ },
1621
+ "slack.conversations_rename": {
1622
+ accept: "application/json",
1623
+ noContentStatuses: [],
1624
+ schema: z.object({
1625
+ channel: z.lazy(() => definitions["Outputobjs_conversation"]).optional(),
1626
+ ok: z.lazy(() => definitions["Outputdefs_ok_true"])
1627
+ }).passthrough(),
1628
+ inputSchema: z.object({
1629
+ body: z.object({ channel: z.string(), name: z.string() }).passthrough()
1630
+ }).strict()
1631
+ },
1632
+ "slack.conversations_replies": {
1633
+ accept: "application/json",
1634
+ noContentStatuses: [],
1635
+ schema: z.object({
1636
+ has_more: z.boolean().optional(),
1637
+ messages: z.array(
1638
+ z.union([
1639
+ z.object({
1640
+ last_read: z.lazy(() => definitions["Outputdefs_ts"]).optional(),
1641
+ latest_reply: z.lazy(() => definitions["Outputdefs_ts"]).optional(),
1642
+ reply_count: z.union([
1643
+ z.number().int(),
1644
+ z.string().regex(
1645
+ new RegExp(
1646
+ "^-?[0-9]+(?:\\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$"
1647
+ )
1648
+ )
1649
+ ]).optional(),
1650
+ reply_users: z.array(z.lazy(() => definitions["Outputdefs_user_id"])).optional(),
1651
+ reply_users_count: z.union([
1652
+ z.number().int(),
1653
+ z.string().regex(
1654
+ new RegExp(
1655
+ "^-?[0-9]+(?:\\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$"
1656
+ )
1657
+ )
1658
+ ]).optional(),
1659
+ source_team: z.lazy(() => definitions["Outputdefs_team"]).optional(),
1660
+ subscribed: z.boolean().optional(),
1661
+ team: z.lazy(() => definitions["Outputdefs_team"]).optional(),
1662
+ text: z.string().optional(),
1663
+ thread_ts: z.lazy(() => definitions["Outputdefs_ts"]).optional(),
1664
+ ts: z.lazy(() => definitions["Outputdefs_ts"]).optional(),
1665
+ type: z.string().optional(),
1666
+ unread_count: z.union([
1667
+ z.number().int(),
1668
+ z.string().regex(
1669
+ new RegExp(
1670
+ "^-?[0-9]+(?:\\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$"
1671
+ )
1672
+ )
1673
+ ]).optional(),
1674
+ user: z.lazy(() => definitions["Outputdefs_user_id"]).optional(),
1675
+ user_profile: z.lazy(() => definitions["Outputobjs_user_profile_short"]).optional(),
1676
+ user_team: z.lazy(() => definitions["Outputdefs_team"]).optional()
1677
+ }).passthrough(),
1678
+ z.object({
1679
+ is_starred: z.boolean().optional(),
1680
+ parent_user_id: z.lazy(() => definitions["Outputdefs_user_id"]).optional(),
1681
+ source_team: z.lazy(() => definitions["Outputdefs_team"]).optional(),
1682
+ team: z.lazy(() => definitions["Outputdefs_team"]).optional(),
1683
+ text: z.string().optional(),
1684
+ thread_ts: z.lazy(() => definitions["Outputdefs_ts"]).optional(),
1685
+ ts: z.lazy(() => definitions["Outputdefs_ts"]).optional(),
1686
+ type: z.string().optional(),
1687
+ user: z.lazy(() => definitions["Outputdefs_user_id"]).optional(),
1688
+ user_profile: z.lazy(() => definitions["Outputobjs_user_profile_short"]).optional(),
1689
+ user_team: z.lazy(() => definitions["Outputdefs_team"]).optional()
1690
+ }).passthrough()
1691
+ ])
1692
+ ).optional(),
1693
+ ok: z.lazy(() => definitions["Outputdefs_ok_true"])
1694
+ }).passthrough(),
1695
+ inputSchema: z.object({
1696
+ query: z.object({
1697
+ channel: z.string(),
1698
+ cursor: z.string().optional(),
1699
+ include_all_metadata: z.boolean().optional(),
1700
+ inclusive: z.boolean().optional(),
1701
+ latest: z.string().optional(),
1702
+ limit: z.number().finite().optional(),
1703
+ oldest: z.string().optional(),
1704
+ ts: z.string()
1705
+ }).strict()
1706
+ }).strict()
1707
+ },
1708
+ "slack.conversations_setpurpose": {
1709
+ accept: "application/json",
1710
+ noContentStatuses: [],
1711
+ schema: z.object({
1712
+ channel: z.lazy(() => definitions["Outputobjs_conversation"]).optional(),
1713
+ ok: z.lazy(() => definitions["Outputdefs_ok_true"])
1714
+ }).passthrough(),
1715
+ inputSchema: z.object({
1716
+ body: z.object({ channel: z.string(), purpose: z.string() }).passthrough()
1717
+ }).strict()
1718
+ },
1719
+ "slack.conversations_settopic": {
1720
+ accept: "application/json",
1721
+ noContentStatuses: [],
1722
+ schema: z.object({
1723
+ channel: z.lazy(() => definitions["Outputobjs_conversation"]).optional(),
1724
+ ok: z.lazy(() => definitions["Outputdefs_ok_true"])
1725
+ }).passthrough(),
1726
+ inputSchema: z.object({
1727
+ body: z.object({ channel: z.string(), topic: z.string() }).passthrough()
1728
+ }).strict()
1729
+ },
1730
+ "slack.conversations_unarchive": {
1731
+ accept: "application/json",
1732
+ noContentStatuses: [],
1733
+ schema: z.object({ ok: z.lazy(() => definitions["Outputdefs_ok_true"]) }).passthrough(),
1734
+ inputSchema: z.object({ body: z.object({ channel: z.string() }).passthrough() }).strict()
1735
+ },
1736
+ "slack.dialog_open": {
1737
+ accept: "application/json",
1738
+ noContentStatuses: [],
1739
+ schema: z.object({ ok: z.lazy(() => definitions["Outputdefs_ok_true"]) }).passthrough(),
1740
+ inputSchema: z.object({
1741
+ body: z.object({ dialog: z.string(), trigger_id: z.string() }).passthrough()
1742
+ }).strict()
1743
+ },
1744
+ "slack.dnd_info": {
1745
+ accept: "application/json",
1746
+ noContentStatuses: [],
1747
+ schema: z.object({
1748
+ dnd_enabled: z.boolean().optional(),
1749
+ next_dnd_end_ts: z.union([
1750
+ z.number().int(),
1751
+ z.string().regex(
1752
+ new RegExp("^-?[0-9]+(?:\\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$")
1753
+ )
1754
+ ]).optional(),
1755
+ next_dnd_start_ts: z.union([
1756
+ z.number().int(),
1757
+ z.string().regex(
1758
+ new RegExp("^-?[0-9]+(?:\\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$")
1759
+ )
1760
+ ]).optional(),
1761
+ ok: z.lazy(() => definitions["Outputdefs_ok_true"]),
1762
+ snooze_enabled: z.boolean().optional(),
1763
+ snooze_endtime: z.union([
1764
+ z.number().int(),
1765
+ z.string().regex(
1766
+ new RegExp("^-?[0-9]+(?:\\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$")
1767
+ )
1768
+ ]).optional(),
1769
+ snooze_remaining: z.union([
1770
+ z.number().int(),
1771
+ z.string().regex(
1772
+ new RegExp("^-?[0-9]+(?:\\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$")
1773
+ )
1774
+ ]).optional()
1775
+ }).passthrough(),
1776
+ inputSchema: z.object({
1777
+ query: z.object({
1778
+ team_id: z.string().optional(),
1779
+ user: z.string().optional()
1780
+ }).strict().optional()
1781
+ }).strict()
1782
+ },
1783
+ "slack.dnd_teaminfo": {
1784
+ accept: "application/json",
1785
+ noContentStatuses: [],
1786
+ schema: z.object({ ok: z.lazy(() => definitions["Outputdefs_ok_true"]) }).passthrough(),
1787
+ inputSchema: z.object({
1788
+ query: z.object({ team_id: z.string().optional(), users: z.string() }).strict()
1789
+ }).strict()
1790
+ },
1791
+ "slack.emoji_list": {
1792
+ accept: "application/json",
1793
+ noContentStatuses: [],
1794
+ schema: z.object({ ok: z.lazy(() => definitions["Outputdefs_ok_true"]) }).passthrough(),
1795
+ inputSchema: z.object({
1796
+ query: z.object({ include_categories: z.boolean().optional() }).strict().optional()
1797
+ }).strict()
1798
+ },
1799
+ "slack.files_comments_delete": {
1800
+ accept: "application/json",
1801
+ noContentStatuses: [],
1802
+ schema: z.object({ ok: z.lazy(() => definitions["Outputdefs_ok_true"]) }).passthrough(),
1803
+ inputSchema: z.object({
1804
+ body: z.object({ file: z.string(), id: z.string() }).passthrough()
1805
+ }).strict()
1806
+ },
1807
+ "slack.files_delete": {
1808
+ accept: "application/json",
1809
+ noContentStatuses: [],
1810
+ schema: z.object({ ok: z.lazy(() => definitions["Outputdefs_ok_true"]) }).passthrough(),
1811
+ inputSchema: z.object({ body: z.object({ file: z.string() }).passthrough() }).strict()
1812
+ },
1813
+ "slack.files_info": {
1814
+ accept: "application/json",
1815
+ noContentStatuses: [],
1816
+ schema: z.object({
1817
+ comments: z.lazy(() => definitions["Outputobjs_comments"]).optional(),
1818
+ content_html: z.null().optional(),
1819
+ editor: z.lazy(() => definitions["Outputdefs_user_id"]).optional(),
1820
+ file: z.lazy(() => definitions["Outputobjs_file"]).optional(),
1821
+ ok: z.lazy(() => definitions["Outputdefs_ok_true"]),
1822
+ paging: z.lazy(() => definitions["Outputobjs_paging"]).optional(),
1823
+ response_metadata: z.lazy(() => definitions["Outputobjs_response_metadata"]).optional()
1824
+ }).passthrough(),
1825
+ inputSchema: z.object({
1826
+ query: z.object({
1827
+ count: z.number().int().optional(),
1828
+ cursor: z.string().optional(),
1829
+ file: z.string(),
1830
+ limit: z.number().int().optional(),
1831
+ page: z.number().int().optional()
1832
+ }).strict()
1833
+ }).strict()
1834
+ },
1835
+ "slack.files_list": {
1836
+ accept: "application/json",
1837
+ noContentStatuses: [],
1838
+ schema: z.object({
1839
+ files: z.array(z.lazy(() => definitions["Outputobjs_file"])).optional(),
1840
+ ok: z.lazy(() => definitions["Outputdefs_ok_true"]),
1841
+ paging: z.lazy(() => definitions["Outputobjs_paging"]).optional()
1842
+ }).passthrough(),
1843
+ inputSchema: z.object({
1844
+ query: z.object({
1845
+ channel: z.string().optional(),
1846
+ count: z.string().optional(),
1847
+ page: z.string().optional(),
1848
+ show_files_hidden_by_limit: z.boolean().optional(),
1849
+ team_id: z.string().optional(),
1850
+ ts_from: z.string().optional(),
1851
+ ts_to: z.string().optional(),
1852
+ types: z.string().optional(),
1853
+ user: z.string().optional()
1854
+ }).strict().optional()
1855
+ }).strict()
1856
+ },
1857
+ "slack.files_remote_add": {
1858
+ accept: "application/json",
1859
+ noContentStatuses: [],
1860
+ schema: z.object({ ok: z.lazy(() => definitions["Outputdefs_ok_true"]) }).passthrough(),
1861
+ inputSchema: z.object({
1862
+ body: z.object({
1863
+ external_id: z.string(),
1864
+ external_url: z.string(),
1865
+ filetype: z.string().optional(),
1866
+ indexable_file_contents: z.object({
1867
+ filename: z.string().min(1),
1868
+ content_type: z.string().min(1),
1869
+ content_base64: z.string()
1870
+ }).strict().optional(),
1871
+ preview_image: z.object({
1872
+ filename: z.string().min(1),
1873
+ content_type: z.string().min(1),
1874
+ content_base64: z.string()
1875
+ }).strict().optional(),
1876
+ title: z.string()
1877
+ }).passthrough()
1878
+ }).strict()
1879
+ },
1880
+ "slack.files_remote_info": {
1881
+ accept: "application/json",
1882
+ noContentStatuses: [],
1883
+ schema: z.object({ ok: z.lazy(() => definitions["Outputdefs_ok_true"]) }).passthrough(),
1884
+ inputSchema: z.object({
1885
+ query: z.object({
1886
+ external_id: z.string().optional(),
1887
+ file: z.string().optional()
1888
+ }).strict().optional()
1889
+ }).strict()
1890
+ },
1891
+ "slack.files_remote_list": {
1892
+ accept: "application/json",
1893
+ noContentStatuses: [],
1894
+ schema: z.object({ ok: z.lazy(() => definitions["Outputdefs_ok_true"]) }).passthrough(),
1895
+ inputSchema: z.object({
1896
+ query: z.object({
1897
+ channel: z.string().optional(),
1898
+ cursor: z.string().optional(),
1899
+ limit: z.number().int().optional(),
1900
+ ts_from: z.string().optional(),
1901
+ ts_to: z.string().optional()
1902
+ }).strict().optional()
1903
+ }).strict()
1904
+ },
1905
+ "slack.files_remote_remove": {
1906
+ accept: "application/json",
1907
+ noContentStatuses: [],
1908
+ schema: z.object({ ok: z.lazy(() => definitions["Outputdefs_ok_true"]) }).passthrough(),
1909
+ inputSchema: z.object({
1910
+ body: z.object({
1911
+ external_id: z.string().optional(),
1912
+ file: z.string().optional()
1913
+ }).passthrough().optional()
1914
+ }).strict()
1915
+ },
1916
+ "slack.files_remote_share": {
1917
+ accept: "application/json",
1918
+ noContentStatuses: [],
1919
+ schema: z.object({ ok: z.lazy(() => definitions["Outputdefs_ok_true"]) }).passthrough(),
1920
+ inputSchema: z.object({
1921
+ query: z.object({
1922
+ channels: z.string(),
1923
+ external_id: z.string().optional(),
1924
+ file: z.string().optional()
1925
+ }).strict()
1926
+ }).strict()
1927
+ },
1928
+ "slack.files_remote_update": {
1929
+ accept: "application/json",
1930
+ noContentStatuses: [],
1931
+ schema: z.object({ ok: z.lazy(() => definitions["Outputdefs_ok_true"]) }).passthrough(),
1932
+ inputSchema: z.object({
1933
+ body: z.object({
1934
+ external_id: z.string().optional(),
1935
+ external_url: z.string().optional(),
1936
+ file: z.string().optional(),
1937
+ filetype: z.string().optional(),
1938
+ indexable_file_contents: z.object({
1939
+ filename: z.string().min(1),
1940
+ content_type: z.string().min(1),
1941
+ content_base64: z.string()
1942
+ }).strict().optional(),
1943
+ preview_image: z.object({
1944
+ filename: z.string().min(1),
1945
+ content_type: z.string().min(1),
1946
+ content_base64: z.string()
1947
+ }).strict().optional(),
1948
+ title: z.string().optional()
1949
+ }).passthrough().optional()
1950
+ }).strict()
1951
+ },
1952
+ "slack.files_revokepublicurl": {
1953
+ accept: "application/json",
1954
+ noContentStatuses: [],
1955
+ schema: z.object({
1956
+ file: z.lazy(() => definitions["Outputobjs_file"]).optional(),
1957
+ ok: z.lazy(() => definitions["Outputdefs_ok_true"])
1958
+ }).passthrough(),
1959
+ inputSchema: z.object({ body: z.object({ file: z.string() }).passthrough() }).strict()
1960
+ },
1961
+ "slack.migration_exchange": {
1962
+ accept: "application/json",
1963
+ noContentStatuses: [],
1964
+ schema: z.object({
1965
+ enterprise_id: z.string().optional(),
1966
+ invalid_user_ids: z.array(z.string()).optional(),
1967
+ ok: z.lazy(() => definitions["Outputdefs_ok_true"]),
1968
+ team_id: z.lazy(() => definitions["Outputdefs_team"]).optional(),
1969
+ user_id_map: z.object({}).passthrough().optional()
1970
+ }).passthrough(),
1971
+ inputSchema: z.object({
1972
+ query: z.object({
1973
+ team_id: z.string().optional(),
1974
+ to_old: z.boolean().optional(),
1975
+ users: z.string()
1976
+ }).strict()
1977
+ }).strict()
1978
+ },
1979
+ "slack.pins_add": {
1980
+ accept: "application/json",
1981
+ noContentStatuses: [],
1982
+ schema: z.object({ ok: z.lazy(() => definitions["Outputdefs_ok_true"]) }).passthrough(),
1983
+ inputSchema: z.object({
1984
+ body: z.object({ channel: z.string(), timestamp: z.string().optional() }).passthrough()
1985
+ }).strict()
1986
+ },
1987
+ "slack.pins_list": {
1988
+ accept: "application/json",
1989
+ noContentStatuses: [],
1990
+ schema: z.union([
1991
+ z.object({
1992
+ items: z.array(
1993
+ z.union([
1994
+ z.object({
1995
+ created: z.union([
1996
+ z.number().int(),
1997
+ z.string().regex(
1998
+ new RegExp(
1999
+ "^-?[0-9]+(?:\\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$"
2000
+ )
2001
+ )
2002
+ ]).optional(),
2003
+ created_by: z.lazy(() => definitions["Outputdefs_user_id"]).optional(),
2004
+ file: z.lazy(() => definitions["Outputobjs_file"]).optional(),
2005
+ type: z.string().optional()
2006
+ }).passthrough(),
2007
+ z.object({
2008
+ channel: z.lazy(() => definitions["Outputdefs_channel"]).optional(),
2009
+ created: z.union([
2010
+ z.number().int(),
2011
+ z.string().regex(
2012
+ new RegExp(
2013
+ "^-?[0-9]+(?:\\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$"
2014
+ )
2015
+ )
2016
+ ]).optional(),
2017
+ created_by: z.lazy(() => definitions["Outputdefs_user_id"]).optional(),
2018
+ message: z.lazy(() => definitions["Outputobjs_message"]).optional(),
2019
+ type: z.string().optional()
2020
+ }).passthrough()
2021
+ ])
2022
+ ).optional(),
2023
+ ok: z.lazy(() => definitions["Outputdefs_ok_true"]).optional()
2024
+ }).passthrough(),
2025
+ z.object({
2026
+ count: z.union([
2027
+ z.number().int(),
2028
+ z.string().regex(
2029
+ new RegExp("^-?[0-9]+(?:\\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$")
2030
+ )
2031
+ ]).optional(),
2032
+ ok: z.lazy(() => definitions["Outputdefs_ok_true"]).optional()
2033
+ }).passthrough()
2034
+ ]),
2035
+ inputSchema: z.object({ query: z.object({ channel: z.string() }).strict() }).strict()
2036
+ },
2037
+ "slack.pins_remove": {
2038
+ accept: "application/json",
2039
+ noContentStatuses: [],
2040
+ schema: z.object({ ok: z.lazy(() => definitions["Outputdefs_ok_true"]) }).passthrough(),
2041
+ inputSchema: z.object({
2042
+ body: z.object({ channel: z.string(), timestamp: z.string().optional() }).passthrough()
2043
+ }).strict()
2044
+ },
2045
+ "slack.reactions_add": {
2046
+ accept: "application/json",
2047
+ noContentStatuses: [],
2048
+ schema: z.object({ ok: z.lazy(() => definitions["Outputdefs_ok_true"]) }).passthrough(),
2049
+ inputSchema: z.object({
2050
+ body: z.object({
2051
+ channel: z.string(),
2052
+ name: z.string(),
2053
+ timestamp: z.string()
2054
+ }).passthrough()
2055
+ }).strict()
2056
+ },
2057
+ "slack.reactions_get": {
2058
+ accept: "application/json",
2059
+ noContentStatuses: [],
2060
+ schema: z.intersection(
2061
+ z.object({}).passthrough(),
2062
+ z.union([z.unknown(), z.unknown(), z.unknown()])
2063
+ ),
2064
+ inputSchema: z.object({
2065
+ query: z.object({
2066
+ channel: z.string().optional(),
2067
+ file: z.string().optional(),
2068
+ file_comment: z.string().optional(),
2069
+ full: z.boolean().optional(),
2070
+ timestamp: z.string().optional()
2071
+ }).strict().optional()
2072
+ }).strict()
2073
+ },
2074
+ "slack.reactions_list": {
2075
+ accept: "application/json",
2076
+ noContentStatuses: [],
2077
+ schema: z.object({
2078
+ items: z.array(
2079
+ z.union([
2080
+ z.object({
2081
+ channel: z.lazy(() => definitions["Outputdefs_channel"]).optional(),
2082
+ message: z.lazy(() => definitions["Outputobjs_message"]).optional(),
2083
+ type: z.string().optional()
2084
+ }).passthrough(),
2085
+ z.object({
2086
+ file: z.lazy(() => definitions["Outputobjs_file"]).optional(),
2087
+ type: z.string().optional()
2088
+ }).passthrough(),
2089
+ z.object({
2090
+ comment: z.lazy(() => definitions["Outputobjs_comment"]).optional(),
2091
+ file: z.lazy(() => definitions["Outputobjs_file"]).optional(),
2092
+ type: z.string().optional()
2093
+ }).passthrough()
2094
+ ])
2095
+ ).optional(),
2096
+ ok: z.lazy(() => definitions["Outputdefs_ok_true"]),
2097
+ paging: z.lazy(() => definitions["Outputobjs_paging"]).optional(),
2098
+ response_metadata: z.lazy(() => definitions["Outputobjs_response_metadata"]).optional()
2099
+ }).passthrough(),
2100
+ inputSchema: z.object({
2101
+ query: z.object({
2102
+ count: z.number().int().optional(),
2103
+ cursor: z.string().optional(),
2104
+ full: z.boolean().optional(),
2105
+ limit: z.number().int().optional(),
2106
+ page: z.number().int().optional(),
2107
+ team_id: z.string().optional(),
2108
+ user: z.string().optional()
2109
+ }).strict().optional()
2110
+ }).strict()
2111
+ },
2112
+ "slack.reactions_remove": {
2113
+ accept: "application/json",
2114
+ noContentStatuses: [],
2115
+ schema: z.object({ ok: z.lazy(() => definitions["Outputdefs_ok_true"]) }).passthrough(),
2116
+ inputSchema: z.object({
2117
+ body: z.object({
2118
+ channel: z.string().optional(),
2119
+ file: z.string().optional(),
2120
+ file_comment: z.string().optional(),
2121
+ name: z.string(),
2122
+ timestamp: z.string().optional()
2123
+ }).passthrough()
2124
+ }).strict()
2125
+ },
2126
+ "slack.team_info": {
2127
+ accept: "application/json",
2128
+ noContentStatuses: [],
2129
+ schema: z.object({
2130
+ ok: z.lazy(() => definitions["Outputdefs_ok_true"]),
2131
+ team: z.lazy(() => definitions["Outputobjs_team"]).optional()
2132
+ }).passthrough(),
2133
+ inputSchema: z.object({
2134
+ query: z.object({
2135
+ domain: z.string().optional(),
2136
+ team: z.string().optional()
2137
+ }).strict().optional()
2138
+ }).strict()
2139
+ },
2140
+ "slack.team_profile_get": {
2141
+ accept: "application/json",
2142
+ noContentStatuses: [],
2143
+ schema: z.object({
2144
+ ok: z.lazy(() => definitions["Outputdefs_ok_true"]),
2145
+ profile: z.object({
2146
+ fields: z.array(
2147
+ z.lazy(() => definitions["Outputobjs_team_profile_field"])
2148
+ ).optional()
2149
+ }).passthrough().optional()
2150
+ }).passthrough(),
2151
+ inputSchema: z.object({
2152
+ query: z.object({ visibility: z.string().optional() }).strict().optional()
2153
+ }).strict()
2154
+ },
2155
+ "slack.usergroups_create": {
2156
+ accept: "application/json",
2157
+ noContentStatuses: [],
2158
+ schema: z.object({
2159
+ ok: z.lazy(() => definitions["Outputdefs_ok_true"]),
2160
+ usergroup: z.lazy(() => definitions["Outputobjs_subteam"]).optional()
2161
+ }).passthrough(),
2162
+ inputSchema: z.object({
2163
+ body: z.object({
2164
+ additional_channels: z.string().optional(),
2165
+ channels: z.string().optional(),
2166
+ description: z.string().optional(),
2167
+ enable_section: z.boolean().optional(),
2168
+ handle: z.string().optional(),
2169
+ include_count: z.boolean().optional(),
2170
+ name: z.string(),
2171
+ team_id: z.string().optional()
2172
+ }).passthrough()
2173
+ }).strict()
2174
+ },
2175
+ "slack.usergroups_disable": {
2176
+ accept: "application/json",
2177
+ noContentStatuses: [],
2178
+ schema: z.object({
2179
+ ok: z.lazy(() => definitions["Outputdefs_ok_true"]),
2180
+ usergroup: z.lazy(() => definitions["Outputobjs_subteam"]).optional()
2181
+ }).passthrough(),
2182
+ inputSchema: z.object({
2183
+ body: z.object({
2184
+ include_count: z.boolean().optional(),
2185
+ team_id: z.string().optional(),
2186
+ usergroup: z.string()
2187
+ }).passthrough()
2188
+ }).strict()
2189
+ },
2190
+ "slack.usergroups_enable": {
2191
+ accept: "application/json",
2192
+ noContentStatuses: [],
2193
+ schema: z.object({
2194
+ ok: z.lazy(() => definitions["Outputdefs_ok_true"]),
2195
+ usergroup: z.lazy(() => definitions["Outputobjs_subteam"]).optional()
2196
+ }).passthrough(),
2197
+ inputSchema: z.object({
2198
+ body: z.object({
2199
+ include_count: z.boolean().optional(),
2200
+ team_id: z.string().optional(),
2201
+ usergroup: z.string()
2202
+ }).passthrough()
2203
+ }).strict()
2204
+ },
2205
+ "slack.usergroups_list": {
2206
+ accept: "application/json",
2207
+ noContentStatuses: [],
2208
+ schema: z.object({
2209
+ ok: z.lazy(() => definitions["Outputdefs_ok_true"]),
2210
+ usergroups: z.array(z.lazy(() => definitions["Outputobjs_subteam"])).optional()
2211
+ }).passthrough(),
2212
+ inputSchema: z.object({
2213
+ query: z.object({
2214
+ include_count: z.boolean().optional(),
2215
+ include_disabled: z.boolean().optional(),
2216
+ include_users: z.boolean().optional(),
2217
+ team_id: z.string().optional()
2218
+ }).strict().optional()
2219
+ }).strict()
2220
+ },
2221
+ "slack.usergroups_update": {
2222
+ accept: "application/json",
2223
+ noContentStatuses: [],
2224
+ schema: z.object({
2225
+ ok: z.lazy(() => definitions["Outputdefs_ok_true"]),
2226
+ usergroup: z.lazy(() => definitions["Outputobjs_subteam"]).optional()
2227
+ }).passthrough(),
2228
+ inputSchema: z.object({
2229
+ body: z.object({
2230
+ additional_channels: z.string().optional(),
2231
+ channels: z.string().optional(),
2232
+ description: z.string().optional(),
2233
+ enable_section: z.boolean().optional(),
2234
+ handle: z.string().optional(),
2235
+ include_count: z.boolean().optional(),
2236
+ name: z.string().optional(),
2237
+ team_id: z.string().optional(),
2238
+ usergroup: z.string()
2239
+ }).passthrough()
2240
+ }).strict()
2241
+ },
2242
+ "slack.usergroups_users_list": {
2243
+ accept: "application/json",
2244
+ noContentStatuses: [],
2245
+ schema: z.object({
2246
+ ok: z.lazy(() => definitions["Outputdefs_ok_true"]),
2247
+ users: z.array(z.lazy(() => definitions["Outputdefs_user_id"])).optional()
2248
+ }).passthrough(),
2249
+ inputSchema: z.object({
2250
+ query: z.object({
2251
+ include_disabled: z.boolean().optional(),
2252
+ team_id: z.string().optional(),
2253
+ usergroup: z.string()
2254
+ }).strict()
2255
+ }).strict()
2256
+ },
2257
+ "slack.usergroups_users_update": {
2258
+ accept: "application/json",
2259
+ noContentStatuses: [],
2260
+ schema: z.object({
2261
+ ok: z.lazy(() => definitions["Outputdefs_ok_true"]),
2262
+ usergroup: z.lazy(() => definitions["Outputobjs_subteam"]).optional()
2263
+ }).passthrough(),
2264
+ inputSchema: z.object({
2265
+ body: z.object({
2266
+ additional_channels: z.string().optional(),
2267
+ include_count: z.boolean().optional(),
2268
+ is_shared: z.boolean().optional(),
2269
+ team_id: z.string().optional(),
2270
+ usergroup: z.string(),
2271
+ users: z.string()
2272
+ }).passthrough()
2273
+ }).strict()
2274
+ },
2275
+ "slack.users_conversations": {
2276
+ accept: "application/json",
2277
+ noContentStatuses: [],
2278
+ schema: z.object({
2279
+ channels: z.array(z.lazy(() => definitions["Outputobjs_conversation"])).optional(),
2280
+ ok: z.lazy(() => definitions["Outputdefs_ok_true"]),
2281
+ response_metadata: z.object({ next_cursor: z.string().optional() }).passthrough().optional()
2282
+ }).passthrough(),
2283
+ inputSchema: z.object({
2284
+ query: z.object({
2285
+ cursor: z.string().optional(),
2286
+ exclude_archived: z.boolean().optional(),
2287
+ exclude_muted: z.boolean().optional(),
2288
+ limit: z.number().finite().optional(),
2289
+ team_id: z.string().optional(),
2290
+ types: z.string().optional(),
2291
+ user: z.string().optional()
2292
+ }).strict().optional()
2293
+ }).strict()
2294
+ },
2295
+ "slack.users_getpresence": {
2296
+ accept: "application/json",
2297
+ noContentStatuses: [],
2298
+ schema: z.object({
2299
+ auto_away: z.boolean().optional(),
2300
+ connection_count: z.union([
2301
+ z.number().int(),
2302
+ z.string().regex(
2303
+ new RegExp("^-?[0-9]+(?:\\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$")
2304
+ )
2305
+ ]).optional(),
2306
+ last_activity: z.union([
2307
+ z.number().int(),
2308
+ z.string().regex(
2309
+ new RegExp("^-?[0-9]+(?:\\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$")
2310
+ )
2311
+ ]).optional(),
2312
+ manual_away: z.boolean().optional(),
2313
+ ok: z.lazy(() => definitions["Outputdefs_ok_true"]),
2314
+ online: z.boolean().optional(),
2315
+ presence: z.string().optional()
2316
+ }).passthrough(),
2317
+ inputSchema: z.object({
2318
+ query: z.object({ user: z.string().optional() }).strict().optional()
2319
+ }).strict()
2320
+ },
2321
+ "slack.users_info": {
2322
+ accept: "application/json",
2323
+ noContentStatuses: [],
2324
+ schema: z.object({
2325
+ ok: z.lazy(() => definitions["Outputdefs_ok_true"]),
2326
+ user: z.lazy(() => definitions["Outputobjs_user"]).optional()
2327
+ }).passthrough(),
2328
+ inputSchema: z.object({
2329
+ query: z.object({
2330
+ include_locale: z.boolean().optional(),
2331
+ user: z.string().optional()
2332
+ }).strict().optional()
2333
+ }).strict()
2334
+ },
2335
+ "slack.users_list": {
2336
+ accept: "application/json",
2337
+ noContentStatuses: [],
2338
+ schema: z.object({
2339
+ cache_ts: z.union([
2340
+ z.number().int(),
2341
+ z.string().regex(
2342
+ new RegExp("^-?[0-9]+(?:\\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$")
2343
+ )
2344
+ ]).optional(),
2345
+ members: z.array(z.lazy(() => definitions["Outputobjs_user"])).optional(),
2346
+ ok: z.lazy(() => definitions["Outputdefs_ok_true"]),
2347
+ response_metadata: z.lazy(() => definitions["Outputobjs_response_metadata"]).optional()
2348
+ }).passthrough(),
2349
+ inputSchema: z.object({
2350
+ query: z.object({
2351
+ cursor: z.string().optional(),
2352
+ include_locale: z.boolean().optional(),
2353
+ limit: z.number().finite().optional(),
2354
+ team_id: z.string().optional()
2355
+ }).strict().optional()
2356
+ }).strict()
2357
+ },
2358
+ "slack.users_lookupbyemail": {
2359
+ accept: "application/json",
2360
+ noContentStatuses: [],
2361
+ schema: z.object({
2362
+ ok: z.lazy(() => definitions["Outputdefs_ok_true"]),
2363
+ user: z.lazy(() => definitions["Outputobjs_user"]).optional()
2364
+ }).passthrough(),
2365
+ inputSchema: z.object({ query: z.object({ email: z.string() }).strict() }).strict()
2366
+ },
2367
+ "slack.users_profile_get": {
2368
+ accept: "application/json",
2369
+ noContentStatuses: [],
2370
+ schema: z.object({
2371
+ ok: z.lazy(() => definitions["Outputdefs_ok_true"]),
2372
+ profile: z.lazy(() => definitions["Outputobjs_user_profile"]).optional()
2373
+ }).passthrough(),
2374
+ inputSchema: z.object({
2375
+ query: z.object({
2376
+ include_labels: z.boolean().optional(),
2377
+ user: z.string().optional()
2378
+ }).strict().optional()
2379
+ }).strict()
2380
+ },
2381
+ "slack.users_setpresence": {
2382
+ accept: "application/json",
2383
+ noContentStatuses: [],
2384
+ schema: z.object({ ok: z.lazy(() => definitions["Outputdefs_ok_true"]) }).passthrough(),
2385
+ inputSchema: z.object({ body: z.object({ presence: z.string() }).passthrough() }).strict()
2386
+ },
2387
+ "slack.views_open": {
2388
+ accept: "application/json",
2389
+ noContentStatuses: [],
2390
+ schema: z.object({ ok: z.lazy(() => definitions["Outputdefs_ok_true"]) }).passthrough(),
2391
+ inputSchema: z.object({
2392
+ body: z.object({
2393
+ interactivity_pointer: z.string().optional(),
2394
+ trigger_id: z.string().optional(),
2395
+ view: z.string()
2396
+ }).passthrough()
2397
+ }).strict()
2398
+ },
2399
+ "slack.views_publish": {
2400
+ accept: "application/json",
2401
+ noContentStatuses: [],
2402
+ schema: z.object({ ok: z.lazy(() => definitions["Outputdefs_ok_true"]) }).passthrough(),
2403
+ inputSchema: z.object({
2404
+ body: z.object({
2405
+ hash: z.string().optional(),
2406
+ user_id: z.string(),
2407
+ view: z.string()
2408
+ }).passthrough()
2409
+ }).strict()
2410
+ },
2411
+ "slack.views_push": {
2412
+ accept: "application/json",
2413
+ noContentStatuses: [],
2414
+ schema: z.object({ ok: z.lazy(() => definitions["Outputdefs_ok_true"]) }).passthrough(),
2415
+ inputSchema: z.object({
2416
+ body: z.object({
2417
+ interactivity_pointer: z.string().optional(),
2418
+ trigger_id: z.string().optional(),
2419
+ view: z.string()
2420
+ }).passthrough()
2421
+ }).strict()
2422
+ },
2423
+ "slack.views_update": {
2424
+ accept: "application/json",
2425
+ noContentStatuses: [],
2426
+ schema: z.object({ ok: z.lazy(() => definitions["Outputdefs_ok_true"]) }).passthrough(),
2427
+ inputSchema: z.object({
2428
+ body: z.object({
2429
+ external_id: z.string().optional(),
2430
+ hash: z.string().optional(),
2431
+ view: z.string(),
2432
+ view_id: z.string().optional()
2433
+ }).passthrough()
2434
+ }).strict()
2435
+ }
2436
+ };
2437
+ cachedOutputs = outputs;
2438
+ return cachedOutputs;
2439
+ }
2440
+ function validateArguments(operation, value) {
2441
+ if (!getOutputs()[operation]?.inputSchema.safeParse(value).success)
2442
+ throw new AlterValueError(
2443
+ "arguments must be an object matching the selected operation"
2444
+ );
2445
+ }
2446
+
2447
+ // src/runtime.ts
2448
+ function hasFault(value) {
2449
+ if (!value || typeof value !== "object" || Array.isArray(value)) return false;
2450
+ const body = value;
2451
+ if ([].some(
2452
+ (key) => body[key] !== void 0 && body[key] !== null
2453
+ ))
2454
+ return true;
2455
+ if ([].some(
2456
+ (key) => Array.isArray(body[key]) && body[key].length > 0
2457
+ ))
2458
+ return true;
2459
+ return [].some((key) => {
2460
+ const children = body[key];
2461
+ return Array.isArray(children) ? children.some(hasFault) : hasFault(children);
2462
+ });
2463
+ }
2464
+ var faultRules = {
2465
+ "slack.api_test": [{ path: ["ok"], test: "false" }],
2466
+ "slack.auth_test": [{ path: ["ok"], test: "false" }],
2467
+ "slack.bots_info": [{ path: ["ok"], test: "false" }],
2468
+ "slack.calls_add": [{ path: ["ok"], test: "false" }],
2469
+ "slack.calls_end": [{ path: ["ok"], test: "false" }],
2470
+ "slack.calls_info": [{ path: ["ok"], test: "false" }],
2471
+ "slack.calls_participants_add": [{ path: ["ok"], test: "false" }],
2472
+ "slack.calls_participants_remove": [{ path: ["ok"], test: "false" }],
2473
+ "slack.calls_update": [{ path: ["ok"], test: "false" }],
2474
+ "slack.chat_delete": [{ path: ["ok"], test: "false" }],
2475
+ "slack.chat_deletescheduledmessage": [{ path: ["ok"], test: "false" }],
2476
+ "slack.chat_getpermalink": [{ path: ["ok"], test: "false" }],
2477
+ "slack.chat_memessage": [{ path: ["ok"], test: "false" }],
2478
+ "slack.chat_postephemeral": [{ path: ["ok"], test: "false" }],
2479
+ "slack.chat_postmessage": [{ path: ["ok"], test: "false" }],
2480
+ "slack.chat_scheduledmessages_list": [{ path: ["ok"], test: "false" }],
2481
+ "slack.chat_schedulemessage": [{ path: ["ok"], test: "false" }],
2482
+ "slack.chat_unfurl": [{ path: ["ok"], test: "false" }],
2483
+ "slack.chat_update": [{ path: ["ok"], test: "false" }],
2484
+ "slack.conversations_archive": [{ path: ["ok"], test: "false" }],
2485
+ "slack.conversations_close": [{ path: ["ok"], test: "false" }],
2486
+ "slack.conversations_create": [{ path: ["ok"], test: "false" }],
2487
+ "slack.conversations_history": [{ path: ["ok"], test: "false" }],
2488
+ "slack.conversations_info": [{ path: ["ok"], test: "false" }],
2489
+ "slack.conversations_invite": [{ path: ["ok"], test: "false" }],
2490
+ "slack.conversations_join": [{ path: ["ok"], test: "false" }],
2491
+ "slack.conversations_kick": [{ path: ["ok"], test: "false" }],
2492
+ "slack.conversations_leave": [{ path: ["ok"], test: "false" }],
2493
+ "slack.conversations_list": [{ path: ["ok"], test: "false" }],
2494
+ "slack.conversations_mark": [{ path: ["ok"], test: "false" }],
2495
+ "slack.conversations_members": [{ path: ["ok"], test: "false" }],
2496
+ "slack.conversations_open": [{ path: ["ok"], test: "false" }],
2497
+ "slack.conversations_rename": [{ path: ["ok"], test: "false" }],
2498
+ "slack.conversations_replies": [{ path: ["ok"], test: "false" }],
2499
+ "slack.conversations_setpurpose": [{ path: ["ok"], test: "false" }],
2500
+ "slack.conversations_settopic": [{ path: ["ok"], test: "false" }],
2501
+ "slack.conversations_unarchive": [{ path: ["ok"], test: "false" }],
2502
+ "slack.dialog_open": [{ path: ["ok"], test: "false" }],
2503
+ "slack.dnd_info": [{ path: ["ok"], test: "false" }],
2504
+ "slack.dnd_teaminfo": [{ path: ["ok"], test: "false" }],
2505
+ "slack.emoji_list": [{ path: ["ok"], test: "false" }],
2506
+ "slack.files_comments_delete": [{ path: ["ok"], test: "false" }],
2507
+ "slack.files_delete": [{ path: ["ok"], test: "false" }],
2508
+ "slack.files_info": [{ path: ["ok"], test: "false" }],
2509
+ "slack.files_list": [{ path: ["ok"], test: "false" }],
2510
+ "slack.files_remote_add": [{ path: ["ok"], test: "false" }],
2511
+ "slack.files_remote_info": [{ path: ["ok"], test: "false" }],
2512
+ "slack.files_remote_list": [{ path: ["ok"], test: "false" }],
2513
+ "slack.files_remote_remove": [{ path: ["ok"], test: "false" }],
2514
+ "slack.files_remote_share": [{ path: ["ok"], test: "false" }],
2515
+ "slack.files_remote_update": [{ path: ["ok"], test: "false" }],
2516
+ "slack.files_revokepublicurl": [{ path: ["ok"], test: "false" }],
2517
+ "slack.migration_exchange": [{ path: ["ok"], test: "false" }],
2518
+ "slack.pins_add": [{ path: ["ok"], test: "false" }],
2519
+ "slack.pins_list": [{ path: ["ok"], test: "false" }],
2520
+ "slack.pins_remove": [{ path: ["ok"], test: "false" }],
2521
+ "slack.reactions_add": [{ path: ["ok"], test: "false" }],
2522
+ "slack.reactions_get": [{ path: ["ok"], test: "false" }],
2523
+ "slack.reactions_list": [{ path: ["ok"], test: "false" }],
2524
+ "slack.reactions_remove": [{ path: ["ok"], test: "false" }],
2525
+ "slack.team_info": [{ path: ["ok"], test: "false" }],
2526
+ "slack.team_profile_get": [{ path: ["ok"], test: "false" }],
2527
+ "slack.usergroups_create": [{ path: ["ok"], test: "false" }],
2528
+ "slack.usergroups_disable": [{ path: ["ok"], test: "false" }],
2529
+ "slack.usergroups_enable": [{ path: ["ok"], test: "false" }],
2530
+ "slack.usergroups_list": [{ path: ["ok"], test: "false" }],
2531
+ "slack.usergroups_update": [{ path: ["ok"], test: "false" }],
2532
+ "slack.usergroups_users_list": [{ path: ["ok"], test: "false" }],
2533
+ "slack.usergroups_users_update": [{ path: ["ok"], test: "false" }],
2534
+ "slack.users_conversations": [{ path: ["ok"], test: "false" }],
2535
+ "slack.users_getpresence": [{ path: ["ok"], test: "false" }],
2536
+ "slack.users_info": [{ path: ["ok"], test: "false" }],
2537
+ "slack.users_list": [{ path: ["ok"], test: "false" }],
2538
+ "slack.users_lookupbyemail": [{ path: ["ok"], test: "false" }],
2539
+ "slack.users_profile_get": [{ path: ["ok"], test: "false" }],
2540
+ "slack.users_setpresence": [{ path: ["ok"], test: "false" }],
2541
+ "slack.views_open": [{ path: ["ok"], test: "false" }],
2542
+ "slack.views_publish": [{ path: ["ok"], test: "false" }],
2543
+ "slack.views_push": [{ path: ["ok"], test: "false" }],
2544
+ "slack.views_update": [{ path: ["ok"], test: "false" }]
2545
+ };
2546
+ function matchesRule(value, path, test, expected) {
2547
+ if (!path.length && test === "equals") return value === expected;
2548
+ if (!path.length)
2549
+ return test === "false" ? value === false : value !== null && value !== void 0 && value !== false && value !== "" && (Array.isArray(value) ? value.length > 0 : typeof value !== "object" || Object.keys(value).length > 0);
2550
+ const [head, ...tail] = path;
2551
+ if (head === void 0) return false;
2552
+ if (head === "**")
2553
+ return Array.isArray(value) && value.length > 0 && value.every((item) => matchesRule(item, tail, test, expected));
2554
+ if (head === "*")
2555
+ return Array.isArray(value) && value.some((item) => matchesRule(item, tail, test, expected));
2556
+ return !!value && typeof value === "object" && !Array.isArray(value) && matchesRule(value[head], tail, test, expected);
2557
+ }
2558
+ function responseContract(operation, version) {
2559
+ const selected = getOutputs()[operation];
2560
+ if (version !== outputVersion || !selected)
2561
+ throw new BackendError(
2562
+ "Selected managed response contract is not installed"
2563
+ );
2564
+ return {
2565
+ ...selected,
2566
+ hasFault: (value) => hasFault(value) || (faultRules[operation] ?? []).some(
2567
+ (rule) => matchesRule(value, rule.path, rule.test, rule.value)
2568
+ )
2569
+ };
2570
+ }
2571
+ var IntegrationCall = class extends CoreCall {
2572
+ constructor(client, response, operation, version) {
2573
+ super(
2574
+ client,
2575
+ response,
2576
+ operation,
2577
+ version,
2578
+ responseContract(operation, version)
2579
+ );
2580
+ }
2581
+ };
2582
+ var IntegrationResult = class extends CoreResult {
2583
+ constructor(response, operation, version) {
2584
+ super(response, operation, version, responseContract(operation, version));
2585
+ }
2586
+ };
2587
+ async function resumeCall(client, approvalId, provider, version) {
2588
+ if (!client.integrations.resume)
2589
+ throw new ManagedOperationError(
2590
+ "managed_resume_unsupported",
2591
+ "Core transport does not support managed resume",
2592
+ 409
2593
+ );
2594
+ const call = await client.integrations.resume(approvalId);
2595
+ if (call.provider !== provider || call.version !== version)
2596
+ throw new ManagedOperationError(
2597
+ "managed_approval_contract_mismatch",
2598
+ "Approval belongs to a different provider or contract version",
2599
+ 409
2600
+ );
2601
+ if (!getOutputs()[call.operation])
2602
+ throw new ManagedOperationError(
2603
+ "managed_approval_operation_mismatch",
2604
+ "Approval operation is absent from this installed publication",
2605
+ 409
2606
+ );
2607
+ return new IntegrationCall(
2608
+ client,
2609
+ { approvalId: call.approvalId },
2610
+ call.operation,
2611
+ call.version
2612
+ );
2613
+ }
2614
+
2615
+ // src/client.ts
2616
+ var SlackApi = class {
2617
+ #client;
2618
+ #connection;
2619
+ constructor(client, connection) {
2620
+ this.#client = client;
2621
+ this.#connection = { ...connection };
2622
+ }
2623
+ /** Checks API calling code. Source: https://docs.slack.dev/reference/methods/api.test */
2624
+ async test(input = {}) {
2625
+ validateArguments("slack.api_test", input);
2626
+ const response = await this.#client.integrations.execute({
2627
+ ...this.#connection,
2628
+ integration: "slack",
2629
+ version: "2026-10-28",
2630
+ operation: "slack.api_test",
2631
+ arguments: input
2632
+ });
2633
+ return new IntegrationCall(
2634
+ this.#client,
2635
+ response,
2636
+ "slack.api_test",
2637
+ "2026-10-28"
2638
+ );
2639
+ }
2640
+ };
2641
+ var SlackAuth = class {
2642
+ #client;
2643
+ #connection;
2644
+ constructor(client, connection) {
2645
+ this.#client = client;
2646
+ this.#connection = { ...connection };
2647
+ }
2648
+ /** Checks authentication & identity. Source: https://docs.slack.dev/reference/methods/auth.test */
2649
+ async test(input = {}) {
2650
+ validateArguments("slack.auth_test", input);
2651
+ const response = await this.#client.integrations.execute({
2652
+ ...this.#connection,
2653
+ integration: "slack",
2654
+ version: "2026-10-28",
2655
+ operation: "slack.auth_test",
2656
+ arguments: input
2657
+ });
2658
+ return new IntegrationCall(
2659
+ this.#client,
2660
+ response,
2661
+ "slack.auth_test",
2662
+ "2026-10-28"
2663
+ );
2664
+ }
2665
+ };
2666
+ var SlackBots = class {
2667
+ #client;
2668
+ #connection;
2669
+ constructor(client, connection) {
2670
+ this.#client = client;
2671
+ this.#connection = { ...connection };
2672
+ }
2673
+ /** Gets information about a bot user. Source: https://docs.slack.dev/reference/methods/bots.info */
2674
+ async info(input = {}) {
2675
+ validateArguments("slack.bots_info", input);
2676
+ const response = await this.#client.integrations.execute({
2677
+ ...this.#connection,
2678
+ integration: "slack",
2679
+ version: "2026-10-28",
2680
+ operation: "slack.bots_info",
2681
+ arguments: input
2682
+ });
2683
+ return new IntegrationCall(
2684
+ this.#client,
2685
+ response,
2686
+ "slack.bots_info",
2687
+ "2026-10-28"
2688
+ );
2689
+ }
2690
+ };
2691
+ var SlackCalls = class {
2692
+ #client;
2693
+ #connection;
2694
+ constructor(client, connection) {
2695
+ this.#client = client;
2696
+ this.#connection = { ...connection };
2697
+ }
2698
+ /** Registers a new Call. Source: https://docs.slack.dev/reference/methods/calls.add */
2699
+ async add(input) {
2700
+ validateArguments("slack.calls_add", input);
2701
+ const response = await this.#client.integrations.execute({
2702
+ ...this.#connection,
2703
+ integration: "slack",
2704
+ version: "2026-10-28",
2705
+ operation: "slack.calls_add",
2706
+ arguments: input
2707
+ });
2708
+ return new IntegrationCall(
2709
+ this.#client,
2710
+ response,
2711
+ "slack.calls_add",
2712
+ "2026-10-28"
2713
+ );
2714
+ }
2715
+ /** Ends a Call. Source: https://docs.slack.dev/reference/methods/calls.end */
2716
+ async end(input) {
2717
+ validateArguments("slack.calls_end", input);
2718
+ const response = await this.#client.integrations.execute({
2719
+ ...this.#connection,
2720
+ integration: "slack",
2721
+ version: "2026-10-28",
2722
+ operation: "slack.calls_end",
2723
+ arguments: input
2724
+ });
2725
+ return new IntegrationCall(
2726
+ this.#client,
2727
+ response,
2728
+ "slack.calls_end",
2729
+ "2026-10-28"
2730
+ );
2731
+ }
2732
+ /** Returns information about a Call. Source: https://docs.slack.dev/reference/methods/calls.info */
2733
+ async info(input) {
2734
+ validateArguments("slack.calls_info", input);
2735
+ const response = await this.#client.integrations.execute({
2736
+ ...this.#connection,
2737
+ integration: "slack",
2738
+ version: "2026-10-28",
2739
+ operation: "slack.calls_info",
2740
+ arguments: input
2741
+ });
2742
+ return new IntegrationCall(
2743
+ this.#client,
2744
+ response,
2745
+ "slack.calls_info",
2746
+ "2026-10-28"
2747
+ );
2748
+ }
2749
+ /** Updates information about a Call. Source: https://docs.slack.dev/reference/methods/calls.update */
2750
+ async update(input) {
2751
+ validateArguments("slack.calls_update", input);
2752
+ const response = await this.#client.integrations.execute({
2753
+ ...this.#connection,
2754
+ integration: "slack",
2755
+ version: "2026-10-28",
2756
+ operation: "slack.calls_update",
2757
+ arguments: input
2758
+ });
2759
+ return new IntegrationCall(
2760
+ this.#client,
2761
+ response,
2762
+ "slack.calls_update",
2763
+ "2026-10-28"
2764
+ );
2765
+ }
2766
+ };
2767
+ var SlackCallsParticipants = class {
2768
+ #client;
2769
+ #connection;
2770
+ constructor(client, connection) {
2771
+ this.#client = client;
2772
+ this.#connection = { ...connection };
2773
+ }
2774
+ /** Registers new participants added to a Call. Source: https://docs.slack.dev/reference/methods/calls.participants.add */
2775
+ async add(input) {
2776
+ validateArguments("slack.calls_participants_add", input);
2777
+ const response = await this.#client.integrations.execute({
2778
+ ...this.#connection,
2779
+ integration: "slack",
2780
+ version: "2026-10-28",
2781
+ operation: "slack.calls_participants_add",
2782
+ arguments: input
2783
+ });
2784
+ return new IntegrationCall(
2785
+ this.#client,
2786
+ response,
2787
+ "slack.calls_participants_add",
2788
+ "2026-10-28"
2789
+ );
2790
+ }
2791
+ /** Registers participants removed from a Call. Source: https://docs.slack.dev/reference/methods/calls.participants.remove */
2792
+ async remove(input) {
2793
+ validateArguments("slack.calls_participants_remove", input);
2794
+ const response = await this.#client.integrations.execute({
2795
+ ...this.#connection,
2796
+ integration: "slack",
2797
+ version: "2026-10-28",
2798
+ operation: "slack.calls_participants_remove",
2799
+ arguments: input
2800
+ });
2801
+ return new IntegrationCall(
2802
+ this.#client,
2803
+ response,
2804
+ "slack.calls_participants_remove",
2805
+ "2026-10-28"
2806
+ );
2807
+ }
2808
+ };
2809
+ var SlackChat = class {
2810
+ #client;
2811
+ #connection;
2812
+ constructor(client, connection) {
2813
+ this.#client = client;
2814
+ this.#connection = { ...connection };
2815
+ }
2816
+ /** Deletes a message. Source: https://docs.slack.dev/reference/methods/chat.delete */
2817
+ async delete(input) {
2818
+ validateArguments("slack.chat_delete", input);
2819
+ const response = await this.#client.integrations.execute({
2820
+ ...this.#connection,
2821
+ integration: "slack",
2822
+ version: "2026-10-28",
2823
+ operation: "slack.chat_delete",
2824
+ arguments: input
2825
+ });
2826
+ return new IntegrationCall(
2827
+ this.#client,
2828
+ response,
2829
+ "slack.chat_delete",
2830
+ "2026-10-28"
2831
+ );
2832
+ }
2833
+ /** Deletes a pending scheduled message from the queue. Source: https://docs.slack.dev/reference/methods/chat.deleteScheduledMessage */
2834
+ async deleteScheduledMessage(input) {
2835
+ validateArguments("slack.chat_deletescheduledmessage", input);
2836
+ const response = await this.#client.integrations.execute({
2837
+ ...this.#connection,
2838
+ integration: "slack",
2839
+ version: "2026-10-28",
2840
+ operation: "slack.chat_deletescheduledmessage",
2841
+ arguments: input
2842
+ });
2843
+ return new IntegrationCall(
2844
+ this.#client,
2845
+ response,
2846
+ "slack.chat_deletescheduledmessage",
2847
+ "2026-10-28"
2848
+ );
2849
+ }
2850
+ /** Retrieve a permalink URL for a specific extant message. Source: https://docs.slack.dev/reference/methods/chat.getPermalink */
2851
+ async getPermalink(input) {
2852
+ validateArguments("slack.chat_getpermalink", input);
2853
+ const response = await this.#client.integrations.execute({
2854
+ ...this.#connection,
2855
+ integration: "slack",
2856
+ version: "2026-10-28",
2857
+ operation: "slack.chat_getpermalink",
2858
+ arguments: input
2859
+ });
2860
+ return new IntegrationCall(
2861
+ this.#client,
2862
+ response,
2863
+ "slack.chat_getpermalink",
2864
+ "2026-10-28"
2865
+ );
2866
+ }
2867
+ /** Share a me message into a channel. Source: https://docs.slack.dev/reference/methods/chat.meMessage */
2868
+ async meMessage(input) {
2869
+ validateArguments("slack.chat_memessage", input);
2870
+ const response = await this.#client.integrations.execute({
2871
+ ...this.#connection,
2872
+ integration: "slack",
2873
+ version: "2026-10-28",
2874
+ operation: "slack.chat_memessage",
2875
+ arguments: input
2876
+ });
2877
+ return new IntegrationCall(
2878
+ this.#client,
2879
+ response,
2880
+ "slack.chat_memessage",
2881
+ "2026-10-28"
2882
+ );
2883
+ }
2884
+ /** Sends an ephemeral message to a user in a channel. Source: https://docs.slack.dev/reference/methods/chat.postEphemeral */
2885
+ async postEphemeral(input) {
2886
+ validateArguments("slack.chat_postephemeral", input);
2887
+ const response = await this.#client.integrations.execute({
2888
+ ...this.#connection,
2889
+ integration: "slack",
2890
+ version: "2026-10-28",
2891
+ operation: "slack.chat_postephemeral",
2892
+ arguments: input
2893
+ });
2894
+ return new IntegrationCall(
2895
+ this.#client,
2896
+ response,
2897
+ "slack.chat_postephemeral",
2898
+ "2026-10-28"
2899
+ );
2900
+ }
2901
+ /** Sends a message to a channel. Source: https://docs.slack.dev/reference/methods/chat.postMessage */
2902
+ async postMessage(input) {
2903
+ validateArguments("slack.chat_postmessage", input);
2904
+ const response = await this.#client.integrations.execute({
2905
+ ...this.#connection,
2906
+ integration: "slack",
2907
+ version: "2026-10-28",
2908
+ operation: "slack.chat_postmessage",
2909
+ arguments: input
2910
+ });
2911
+ return new IntegrationCall(
2912
+ this.#client,
2913
+ response,
2914
+ "slack.chat_postmessage",
2915
+ "2026-10-28"
2916
+ );
2917
+ }
2918
+ /** Schedules a message to be sent to a channel. Source: https://docs.slack.dev/reference/methods/chat.scheduleMessage */
2919
+ async scheduleMessage(input) {
2920
+ validateArguments("slack.chat_schedulemessage", input);
2921
+ const response = await this.#client.integrations.execute({
2922
+ ...this.#connection,
2923
+ integration: "slack",
2924
+ version: "2026-10-28",
2925
+ operation: "slack.chat_schedulemessage",
2926
+ arguments: input
2927
+ });
2928
+ return new IntegrationCall(
2929
+ this.#client,
2930
+ response,
2931
+ "slack.chat_schedulemessage",
2932
+ "2026-10-28"
2933
+ );
2934
+ }
2935
+ /** Provide custom unfurl behavior for user-posted URLs. Source: https://docs.slack.dev/reference/methods/chat.unfurl */
2936
+ async unfurl(input = {}) {
2937
+ validateArguments("slack.chat_unfurl", input);
2938
+ const response = await this.#client.integrations.execute({
2939
+ ...this.#connection,
2940
+ integration: "slack",
2941
+ version: "2026-10-28",
2942
+ operation: "slack.chat_unfurl",
2943
+ arguments: input
2944
+ });
2945
+ return new IntegrationCall(
2946
+ this.#client,
2947
+ response,
2948
+ "slack.chat_unfurl",
2949
+ "2026-10-28"
2950
+ );
2951
+ }
2952
+ /** Updates a message. Source: https://docs.slack.dev/reference/methods/chat.update */
2953
+ async update(input) {
2954
+ validateArguments("slack.chat_update", input);
2955
+ const response = await this.#client.integrations.execute({
2956
+ ...this.#connection,
2957
+ integration: "slack",
2958
+ version: "2026-10-28",
2959
+ operation: "slack.chat_update",
2960
+ arguments: input
2961
+ });
2962
+ return new IntegrationCall(
2963
+ this.#client,
2964
+ response,
2965
+ "slack.chat_update",
2966
+ "2026-10-28"
2967
+ );
2968
+ }
2969
+ };
2970
+ var SlackChatScheduledMessages = class {
2971
+ #client;
2972
+ #connection;
2973
+ constructor(client, connection) {
2974
+ this.#client = client;
2975
+ this.#connection = { ...connection };
2976
+ }
2977
+ /** Returns a list of scheduled messages. Source: https://docs.slack.dev/reference/methods/chat.scheduledMessages.list */
2978
+ async list(input = {}) {
2979
+ validateArguments("slack.chat_scheduledmessages_list", input);
2980
+ const response = await this.#client.integrations.execute({
2981
+ ...this.#connection,
2982
+ integration: "slack",
2983
+ version: "2026-10-28",
2984
+ operation: "slack.chat_scheduledmessages_list",
2985
+ arguments: input
2986
+ });
2987
+ return new IntegrationCall(
2988
+ this.#client,
2989
+ response,
2990
+ "slack.chat_scheduledmessages_list",
2991
+ "2026-10-28"
2992
+ );
2993
+ }
2994
+ };
2995
+ var SlackConversations = class {
2996
+ #client;
2997
+ #connection;
2998
+ constructor(client, connection) {
2999
+ this.#client = client;
3000
+ this.#connection = { ...connection };
3001
+ }
3002
+ /** Archives a conversation. Source: https://docs.slack.dev/reference/methods/conversations.archive */
3003
+ async archive(input) {
3004
+ validateArguments("slack.conversations_archive", input);
3005
+ const response = await this.#client.integrations.execute({
3006
+ ...this.#connection,
3007
+ integration: "slack",
3008
+ version: "2026-10-28",
3009
+ operation: "slack.conversations_archive",
3010
+ arguments: input
3011
+ });
3012
+ return new IntegrationCall(
3013
+ this.#client,
3014
+ response,
3015
+ "slack.conversations_archive",
3016
+ "2026-10-28"
3017
+ );
3018
+ }
3019
+ /** Closes a direct message or multi-person direct message. Source: https://docs.slack.dev/reference/methods/conversations.close */
3020
+ async close(input) {
3021
+ validateArguments("slack.conversations_close", input);
3022
+ const response = await this.#client.integrations.execute({
3023
+ ...this.#connection,
3024
+ integration: "slack",
3025
+ version: "2026-10-28",
3026
+ operation: "slack.conversations_close",
3027
+ arguments: input
3028
+ });
3029
+ return new IntegrationCall(
3030
+ this.#client,
3031
+ response,
3032
+ "slack.conversations_close",
3033
+ "2026-10-28"
3034
+ );
3035
+ }
3036
+ /** Initiates a public or private channel-based conversation. Source: https://docs.slack.dev/reference/methods/conversations.create */
3037
+ async create(input) {
3038
+ validateArguments("slack.conversations_create", input);
3039
+ const response = await this.#client.integrations.execute({
3040
+ ...this.#connection,
3041
+ integration: "slack",
3042
+ version: "2026-10-28",
3043
+ operation: "slack.conversations_create",
3044
+ arguments: input
3045
+ });
3046
+ return new IntegrationCall(
3047
+ this.#client,
3048
+ response,
3049
+ "slack.conversations_create",
3050
+ "2026-10-28"
3051
+ );
3052
+ }
3053
+ /** Fetches a conversation's history of messages and events. Source: https://docs.slack.dev/reference/methods/conversations.history */
3054
+ async history(input) {
3055
+ validateArguments("slack.conversations_history", input);
3056
+ const response = await this.#client.integrations.execute({
3057
+ ...this.#connection,
3058
+ integration: "slack",
3059
+ version: "2026-10-28",
3060
+ operation: "slack.conversations_history",
3061
+ arguments: input
3062
+ });
3063
+ return new IntegrationCall(
3064
+ this.#client,
3065
+ response,
3066
+ "slack.conversations_history",
3067
+ "2026-10-28"
3068
+ );
3069
+ }
3070
+ /** Retrieve information about a conversation. Source: https://docs.slack.dev/reference/methods/conversations.info */
3071
+ async info(input) {
3072
+ validateArguments("slack.conversations_info", input);
3073
+ const response = await this.#client.integrations.execute({
3074
+ ...this.#connection,
3075
+ integration: "slack",
3076
+ version: "2026-10-28",
3077
+ operation: "slack.conversations_info",
3078
+ arguments: input
3079
+ });
3080
+ return new IntegrationCall(
3081
+ this.#client,
3082
+ response,
3083
+ "slack.conversations_info",
3084
+ "2026-10-28"
3085
+ );
3086
+ }
3087
+ /** Invites users to a channel. Source: https://docs.slack.dev/reference/methods/conversations.invite */
3088
+ async invite(input) {
3089
+ validateArguments("slack.conversations_invite", input);
3090
+ const response = await this.#client.integrations.execute({
3091
+ ...this.#connection,
3092
+ integration: "slack",
3093
+ version: "2026-10-28",
3094
+ operation: "slack.conversations_invite",
3095
+ arguments: input
3096
+ });
3097
+ return new IntegrationCall(
3098
+ this.#client,
3099
+ response,
3100
+ "slack.conversations_invite",
3101
+ "2026-10-28"
3102
+ );
3103
+ }
3104
+ /** Joins an existing conversation. Source: https://docs.slack.dev/reference/methods/conversations.join */
3105
+ async join(input) {
3106
+ validateArguments("slack.conversations_join", input);
3107
+ const response = await this.#client.integrations.execute({
3108
+ ...this.#connection,
3109
+ integration: "slack",
3110
+ version: "2026-10-28",
3111
+ operation: "slack.conversations_join",
3112
+ arguments: input
3113
+ });
3114
+ return new IntegrationCall(
3115
+ this.#client,
3116
+ response,
3117
+ "slack.conversations_join",
3118
+ "2026-10-28"
3119
+ );
3120
+ }
3121
+ /** Removes a user from a conversation. Source: https://docs.slack.dev/reference/methods/conversations.kick */
3122
+ async kick(input) {
3123
+ validateArguments("slack.conversations_kick", input);
3124
+ const response = await this.#client.integrations.execute({
3125
+ ...this.#connection,
3126
+ integration: "slack",
3127
+ version: "2026-10-28",
3128
+ operation: "slack.conversations_kick",
3129
+ arguments: input
3130
+ });
3131
+ return new IntegrationCall(
3132
+ this.#client,
3133
+ response,
3134
+ "slack.conversations_kick",
3135
+ "2026-10-28"
3136
+ );
3137
+ }
3138
+ /** Leaves a conversation. Source: https://docs.slack.dev/reference/methods/conversations.leave */
3139
+ async leave(input) {
3140
+ validateArguments("slack.conversations_leave", input);
3141
+ const response = await this.#client.integrations.execute({
3142
+ ...this.#connection,
3143
+ integration: "slack",
3144
+ version: "2026-10-28",
3145
+ operation: "slack.conversations_leave",
3146
+ arguments: input
3147
+ });
3148
+ return new IntegrationCall(
3149
+ this.#client,
3150
+ response,
3151
+ "slack.conversations_leave",
3152
+ "2026-10-28"
3153
+ );
3154
+ }
3155
+ /** Lists all channels in a Slack team. Source: https://docs.slack.dev/reference/methods/conversations.list */
3156
+ async list(input = {}) {
3157
+ validateArguments("slack.conversations_list", input);
3158
+ const response = await this.#client.integrations.execute({
3159
+ ...this.#connection,
3160
+ integration: "slack",
3161
+ version: "2026-10-28",
3162
+ operation: "slack.conversations_list",
3163
+ arguments: input
3164
+ });
3165
+ return new IntegrationCall(
3166
+ this.#client,
3167
+ response,
3168
+ "slack.conversations_list",
3169
+ "2026-10-28"
3170
+ );
3171
+ }
3172
+ /** Sets the read cursor in a channel. Source: https://docs.slack.dev/reference/methods/conversations.mark */
3173
+ async mark(input) {
3174
+ validateArguments("slack.conversations_mark", input);
3175
+ const response = await this.#client.integrations.execute({
3176
+ ...this.#connection,
3177
+ integration: "slack",
3178
+ version: "2026-10-28",
3179
+ operation: "slack.conversations_mark",
3180
+ arguments: input
3181
+ });
3182
+ return new IntegrationCall(
3183
+ this.#client,
3184
+ response,
3185
+ "slack.conversations_mark",
3186
+ "2026-10-28"
3187
+ );
3188
+ }
3189
+ /** Retrieve members of a conversation. Source: https://docs.slack.dev/reference/methods/conversations.members */
3190
+ async members(input) {
3191
+ validateArguments("slack.conversations_members", input);
3192
+ const response = await this.#client.integrations.execute({
3193
+ ...this.#connection,
3194
+ integration: "slack",
3195
+ version: "2026-10-28",
3196
+ operation: "slack.conversations_members",
3197
+ arguments: input
3198
+ });
3199
+ return new IntegrationCall(
3200
+ this.#client,
3201
+ response,
3202
+ "slack.conversations_members",
3203
+ "2026-10-28"
3204
+ );
3205
+ }
3206
+ /** Opens or resumes a direct message or multi-person direct message. Source: https://docs.slack.dev/reference/methods/conversations.open */
3207
+ async open(input = {}) {
3208
+ validateArguments("slack.conversations_open", input);
3209
+ const response = await this.#client.integrations.execute({
3210
+ ...this.#connection,
3211
+ integration: "slack",
3212
+ version: "2026-10-28",
3213
+ operation: "slack.conversations_open",
3214
+ arguments: input
3215
+ });
3216
+ return new IntegrationCall(
3217
+ this.#client,
3218
+ response,
3219
+ "slack.conversations_open",
3220
+ "2026-10-28"
3221
+ );
3222
+ }
3223
+ /** Renames a conversation. Source: https://docs.slack.dev/reference/methods/conversations.rename */
3224
+ async rename(input) {
3225
+ validateArguments("slack.conversations_rename", input);
3226
+ const response = await this.#client.integrations.execute({
3227
+ ...this.#connection,
3228
+ integration: "slack",
3229
+ version: "2026-10-28",
3230
+ operation: "slack.conversations_rename",
3231
+ arguments: input
3232
+ });
3233
+ return new IntegrationCall(
3234
+ this.#client,
3235
+ response,
3236
+ "slack.conversations_rename",
3237
+ "2026-10-28"
3238
+ );
3239
+ }
3240
+ /** Retrieve a thread of messages posted to a conversation. Source: https://docs.slack.dev/reference/methods/conversations.replies */
3241
+ async replies(input) {
3242
+ validateArguments("slack.conversations_replies", input);
3243
+ const response = await this.#client.integrations.execute({
3244
+ ...this.#connection,
3245
+ integration: "slack",
3246
+ version: "2026-10-28",
3247
+ operation: "slack.conversations_replies",
3248
+ arguments: input
3249
+ });
3250
+ return new IntegrationCall(
3251
+ this.#client,
3252
+ response,
3253
+ "slack.conversations_replies",
3254
+ "2026-10-28"
3255
+ );
3256
+ }
3257
+ /** Sets the channel description. Source: https://docs.slack.dev/reference/methods/conversations.setPurpose */
3258
+ async setPurpose(input) {
3259
+ validateArguments("slack.conversations_setpurpose", input);
3260
+ const response = await this.#client.integrations.execute({
3261
+ ...this.#connection,
3262
+ integration: "slack",
3263
+ version: "2026-10-28",
3264
+ operation: "slack.conversations_setpurpose",
3265
+ arguments: input
3266
+ });
3267
+ return new IntegrationCall(
3268
+ this.#client,
3269
+ response,
3270
+ "slack.conversations_setpurpose",
3271
+ "2026-10-28"
3272
+ );
3273
+ }
3274
+ /** Sets the topic for a conversation. Source: https://docs.slack.dev/reference/methods/conversations.setTopic */
3275
+ async setTopic(input) {
3276
+ validateArguments("slack.conversations_settopic", input);
3277
+ const response = await this.#client.integrations.execute({
3278
+ ...this.#connection,
3279
+ integration: "slack",
3280
+ version: "2026-10-28",
3281
+ operation: "slack.conversations_settopic",
3282
+ arguments: input
3283
+ });
3284
+ return new IntegrationCall(
3285
+ this.#client,
3286
+ response,
3287
+ "slack.conversations_settopic",
3288
+ "2026-10-28"
3289
+ );
3290
+ }
3291
+ /** Reverses conversation archival. Source: https://docs.slack.dev/reference/methods/conversations.unarchive */
3292
+ async unarchive(input) {
3293
+ validateArguments("slack.conversations_unarchive", input);
3294
+ const response = await this.#client.integrations.execute({
3295
+ ...this.#connection,
3296
+ integration: "slack",
3297
+ version: "2026-10-28",
3298
+ operation: "slack.conversations_unarchive",
3299
+ arguments: input
3300
+ });
3301
+ return new IntegrationCall(
3302
+ this.#client,
3303
+ response,
3304
+ "slack.conversations_unarchive",
3305
+ "2026-10-28"
3306
+ );
3307
+ }
3308
+ };
3309
+ var SlackDialog = class {
3310
+ #client;
3311
+ #connection;
3312
+ constructor(client, connection) {
3313
+ this.#client = client;
3314
+ this.#connection = { ...connection };
3315
+ }
3316
+ /** Open a dialog with a user. Source: https://docs.slack.dev/reference/methods/dialog.open */
3317
+ async open(input) {
3318
+ validateArguments("slack.dialog_open", input);
3319
+ const response = await this.#client.integrations.execute({
3320
+ ...this.#connection,
3321
+ integration: "slack",
3322
+ version: "2026-10-28",
3323
+ operation: "slack.dialog_open",
3324
+ arguments: input
3325
+ });
3326
+ return new IntegrationCall(
3327
+ this.#client,
3328
+ response,
3329
+ "slack.dialog_open",
3330
+ "2026-10-28"
3331
+ );
3332
+ }
3333
+ };
3334
+ var SlackDnd = class {
3335
+ #client;
3336
+ #connection;
3337
+ constructor(client, connection) {
3338
+ this.#client = client;
3339
+ this.#connection = { ...connection };
3340
+ }
3341
+ /** Retrieves a user's current Do Not Disturb status. Source: https://docs.slack.dev/reference/methods/dnd.info */
3342
+ async info(input = {}) {
3343
+ validateArguments("slack.dnd_info", input);
3344
+ const response = await this.#client.integrations.execute({
3345
+ ...this.#connection,
3346
+ integration: "slack",
3347
+ version: "2026-10-28",
3348
+ operation: "slack.dnd_info",
3349
+ arguments: input
3350
+ });
3351
+ return new IntegrationCall(
3352
+ this.#client,
3353
+ response,
3354
+ "slack.dnd_info",
3355
+ "2026-10-28"
3356
+ );
3357
+ }
3358
+ /** Retrieves the Do Not Disturb status for up to 50 users on a team. Source: https://docs.slack.dev/reference/methods/dnd.teamInfo */
3359
+ async teamInfo(input) {
3360
+ validateArguments("slack.dnd_teaminfo", input);
3361
+ const response = await this.#client.integrations.execute({
3362
+ ...this.#connection,
3363
+ integration: "slack",
3364
+ version: "2026-10-28",
3365
+ operation: "slack.dnd_teaminfo",
3366
+ arguments: input
3367
+ });
3368
+ return new IntegrationCall(
3369
+ this.#client,
3370
+ response,
3371
+ "slack.dnd_teaminfo",
3372
+ "2026-10-28"
3373
+ );
3374
+ }
3375
+ };
3376
+ var SlackEmoji = class {
3377
+ #client;
3378
+ #connection;
3379
+ constructor(client, connection) {
3380
+ this.#client = client;
3381
+ this.#connection = { ...connection };
3382
+ }
3383
+ /** Lists custom emoji for a team. Source: https://docs.slack.dev/reference/methods/emoji.list */
3384
+ async list(input = {}) {
3385
+ validateArguments("slack.emoji_list", input);
3386
+ const response = await this.#client.integrations.execute({
3387
+ ...this.#connection,
3388
+ integration: "slack",
3389
+ version: "2026-10-28",
3390
+ operation: "slack.emoji_list",
3391
+ arguments: input
3392
+ });
3393
+ return new IntegrationCall(
3394
+ this.#client,
3395
+ response,
3396
+ "slack.emoji_list",
3397
+ "2026-10-28"
3398
+ );
3399
+ }
3400
+ };
3401
+ var SlackFiles = class {
3402
+ #client;
3403
+ #connection;
3404
+ constructor(client, connection) {
3405
+ this.#client = client;
3406
+ this.#connection = { ...connection };
3407
+ }
3408
+ /** Deletes a file. Source: https://docs.slack.dev/reference/methods/files.delete */
3409
+ async delete(input) {
3410
+ validateArguments("slack.files_delete", input);
3411
+ const response = await this.#client.integrations.execute({
3412
+ ...this.#connection,
3413
+ integration: "slack",
3414
+ version: "2026-10-28",
3415
+ operation: "slack.files_delete",
3416
+ arguments: input
3417
+ });
3418
+ return new IntegrationCall(
3419
+ this.#client,
3420
+ response,
3421
+ "slack.files_delete",
3422
+ "2026-10-28"
3423
+ );
3424
+ }
3425
+ /** Gets information about a file. Source: https://docs.slack.dev/reference/methods/files.info */
3426
+ async info(input) {
3427
+ validateArguments("slack.files_info", input);
3428
+ const response = await this.#client.integrations.execute({
3429
+ ...this.#connection,
3430
+ integration: "slack",
3431
+ version: "2026-10-28",
3432
+ operation: "slack.files_info",
3433
+ arguments: input
3434
+ });
3435
+ return new IntegrationCall(
3436
+ this.#client,
3437
+ response,
3438
+ "slack.files_info",
3439
+ "2026-10-28"
3440
+ );
3441
+ }
3442
+ /** List for a team, in a channel, or from a user with applied filters. Source: https://docs.slack.dev/reference/methods/files.list */
3443
+ async list(input = {}) {
3444
+ validateArguments("slack.files_list", input);
3445
+ const response = await this.#client.integrations.execute({
3446
+ ...this.#connection,
3447
+ integration: "slack",
3448
+ version: "2026-10-28",
3449
+ operation: "slack.files_list",
3450
+ arguments: input
3451
+ });
3452
+ return new IntegrationCall(
3453
+ this.#client,
3454
+ response,
3455
+ "slack.files_list",
3456
+ "2026-10-28"
3457
+ );
3458
+ }
3459
+ /** Revokes public/external sharing access for a file. Source: https://docs.slack.dev/reference/methods/files.revokePublicURL */
3460
+ async revokePublicUrl(input) {
3461
+ validateArguments("slack.files_revokepublicurl", input);
3462
+ const response = await this.#client.integrations.execute({
3463
+ ...this.#connection,
3464
+ integration: "slack",
3465
+ version: "2026-10-28",
3466
+ operation: "slack.files_revokepublicurl",
3467
+ arguments: input
3468
+ });
3469
+ return new IntegrationCall(
3470
+ this.#client,
3471
+ response,
3472
+ "slack.files_revokepublicurl",
3473
+ "2026-10-28"
3474
+ );
3475
+ }
3476
+ };
3477
+ var SlackFilesComments = class {
3478
+ #client;
3479
+ #connection;
3480
+ constructor(client, connection) {
3481
+ this.#client = client;
3482
+ this.#connection = { ...connection };
3483
+ }
3484
+ /** Deletes an existing comment on a file. Source: https://docs.slack.dev/reference/methods/files.comments.delete */
3485
+ async delete(input) {
3486
+ validateArguments("slack.files_comments_delete", input);
3487
+ const response = await this.#client.integrations.execute({
3488
+ ...this.#connection,
3489
+ integration: "slack",
3490
+ version: "2026-10-28",
3491
+ operation: "slack.files_comments_delete",
3492
+ arguments: input
3493
+ });
3494
+ return new IntegrationCall(
3495
+ this.#client,
3496
+ response,
3497
+ "slack.files_comments_delete",
3498
+ "2026-10-28"
3499
+ );
3500
+ }
3501
+ };
3502
+ var SlackFilesRemote = class {
3503
+ #client;
3504
+ #connection;
3505
+ constructor(client, connection) {
3506
+ this.#client = client;
3507
+ this.#connection = { ...connection };
3508
+ }
3509
+ /** Adds a file from a remote service. Source: https://docs.slack.dev/reference/methods/files.remote.add */
3510
+ async add(input) {
3511
+ validateArguments("slack.files_remote_add", input);
3512
+ const response = await this.#client.integrations.execute({
3513
+ ...this.#connection,
3514
+ integration: "slack",
3515
+ version: "2026-10-28",
3516
+ operation: "slack.files_remote_add",
3517
+ arguments: input
3518
+ });
3519
+ return new IntegrationCall(
3520
+ this.#client,
3521
+ response,
3522
+ "slack.files_remote_add",
3523
+ "2026-10-28"
3524
+ );
3525
+ }
3526
+ /** Retrieve information about a remote file added to Slack. Source: https://docs.slack.dev/reference/methods/files.remote.info */
3527
+ async info(input = {}) {
3528
+ validateArguments("slack.files_remote_info", input);
3529
+ const response = await this.#client.integrations.execute({
3530
+ ...this.#connection,
3531
+ integration: "slack",
3532
+ version: "2026-10-28",
3533
+ operation: "slack.files_remote_info",
3534
+ arguments: input
3535
+ });
3536
+ return new IntegrationCall(
3537
+ this.#client,
3538
+ response,
3539
+ "slack.files_remote_info",
3540
+ "2026-10-28"
3541
+ );
3542
+ }
3543
+ /** Retrieve information about a remote file added to Slack. Source: https://docs.slack.dev/reference/methods/files.remote.list */
3544
+ async list(input = {}) {
3545
+ validateArguments("slack.files_remote_list", input);
3546
+ const response = await this.#client.integrations.execute({
3547
+ ...this.#connection,
3548
+ integration: "slack",
3549
+ version: "2026-10-28",
3550
+ operation: "slack.files_remote_list",
3551
+ arguments: input
3552
+ });
3553
+ return new IntegrationCall(
3554
+ this.#client,
3555
+ response,
3556
+ "slack.files_remote_list",
3557
+ "2026-10-28"
3558
+ );
3559
+ }
3560
+ /** Remove a remote file. Source: https://docs.slack.dev/reference/methods/files.remote.remove */
3561
+ async remove(input = {}) {
3562
+ validateArguments("slack.files_remote_remove", input);
3563
+ const response = await this.#client.integrations.execute({
3564
+ ...this.#connection,
3565
+ integration: "slack",
3566
+ version: "2026-10-28",
3567
+ operation: "slack.files_remote_remove",
3568
+ arguments: input
3569
+ });
3570
+ return new IntegrationCall(
3571
+ this.#client,
3572
+ response,
3573
+ "slack.files_remote_remove",
3574
+ "2026-10-28"
3575
+ );
3576
+ }
3577
+ /** Share a remote file into a channel. Source: https://docs.slack.dev/reference/methods/files.remote.share */
3578
+ async share(input) {
3579
+ validateArguments("slack.files_remote_share", input);
3580
+ const response = await this.#client.integrations.execute({
3581
+ ...this.#connection,
3582
+ integration: "slack",
3583
+ version: "2026-10-28",
3584
+ operation: "slack.files_remote_share",
3585
+ arguments: input
3586
+ });
3587
+ return new IntegrationCall(
3588
+ this.#client,
3589
+ response,
3590
+ "slack.files_remote_share",
3591
+ "2026-10-28"
3592
+ );
3593
+ }
3594
+ /** Updates an existing remote file. Source: https://docs.slack.dev/reference/methods/files.remote.update */
3595
+ async update(input = {}) {
3596
+ validateArguments("slack.files_remote_update", input);
3597
+ const response = await this.#client.integrations.execute({
3598
+ ...this.#connection,
3599
+ integration: "slack",
3600
+ version: "2026-10-28",
3601
+ operation: "slack.files_remote_update",
3602
+ arguments: input
3603
+ });
3604
+ return new IntegrationCall(
3605
+ this.#client,
3606
+ response,
3607
+ "slack.files_remote_update",
3608
+ "2026-10-28"
3609
+ );
3610
+ }
3611
+ };
3612
+ var SlackMigration = class {
3613
+ #client;
3614
+ #connection;
3615
+ constructor(client, connection) {
3616
+ this.#client = client;
3617
+ this.#connection = { ...connection };
3618
+ }
3619
+ /** For Enterprise organization workspaces, map local user IDs to global user IDs. Source: https://docs.slack.dev/reference/methods/migration.exchange */
3620
+ async exchange(input) {
3621
+ validateArguments("slack.migration_exchange", input);
3622
+ const response = await this.#client.integrations.execute({
3623
+ ...this.#connection,
3624
+ integration: "slack",
3625
+ version: "2026-10-28",
3626
+ operation: "slack.migration_exchange",
3627
+ arguments: input
3628
+ });
3629
+ return new IntegrationCall(
3630
+ this.#client,
3631
+ response,
3632
+ "slack.migration_exchange",
3633
+ "2026-10-28"
3634
+ );
3635
+ }
3636
+ };
3637
+ var SlackPins = class {
3638
+ #client;
3639
+ #connection;
3640
+ constructor(client, connection) {
3641
+ this.#client = client;
3642
+ this.#connection = { ...connection };
3643
+ }
3644
+ /** Pins an item to a channel. Source: https://docs.slack.dev/reference/methods/pins.add */
3645
+ async add(input) {
3646
+ validateArguments("slack.pins_add", input);
3647
+ const response = await this.#client.integrations.execute({
3648
+ ...this.#connection,
3649
+ integration: "slack",
3650
+ version: "2026-10-28",
3651
+ operation: "slack.pins_add",
3652
+ arguments: input
3653
+ });
3654
+ return new IntegrationCall(
3655
+ this.#client,
3656
+ response,
3657
+ "slack.pins_add",
3658
+ "2026-10-28"
3659
+ );
3660
+ }
3661
+ /** Lists items pinned to a channel. Source: https://docs.slack.dev/reference/methods/pins.list */
3662
+ async list(input) {
3663
+ validateArguments("slack.pins_list", input);
3664
+ const response = await this.#client.integrations.execute({
3665
+ ...this.#connection,
3666
+ integration: "slack",
3667
+ version: "2026-10-28",
3668
+ operation: "slack.pins_list",
3669
+ arguments: input
3670
+ });
3671
+ return new IntegrationCall(
3672
+ this.#client,
3673
+ response,
3674
+ "slack.pins_list",
3675
+ "2026-10-28"
3676
+ );
3677
+ }
3678
+ /** Un-pins an item from a channel. Source: https://docs.slack.dev/reference/methods/pins.remove */
3679
+ async remove(input) {
3680
+ validateArguments("slack.pins_remove", input);
3681
+ const response = await this.#client.integrations.execute({
3682
+ ...this.#connection,
3683
+ integration: "slack",
3684
+ version: "2026-10-28",
3685
+ operation: "slack.pins_remove",
3686
+ arguments: input
3687
+ });
3688
+ return new IntegrationCall(
3689
+ this.#client,
3690
+ response,
3691
+ "slack.pins_remove",
3692
+ "2026-10-28"
3693
+ );
3694
+ }
3695
+ };
3696
+ var SlackReactions = class {
3697
+ #client;
3698
+ #connection;
3699
+ constructor(client, connection) {
3700
+ this.#client = client;
3701
+ this.#connection = { ...connection };
3702
+ }
3703
+ /** Adds a reaction to an item. Source: https://docs.slack.dev/reference/methods/reactions.add */
3704
+ async add(input) {
3705
+ validateArguments("slack.reactions_add", input);
3706
+ const response = await this.#client.integrations.execute({
3707
+ ...this.#connection,
3708
+ integration: "slack",
3709
+ version: "2026-10-28",
3710
+ operation: "slack.reactions_add",
3711
+ arguments: input
3712
+ });
3713
+ return new IntegrationCall(
3714
+ this.#client,
3715
+ response,
3716
+ "slack.reactions_add",
3717
+ "2026-10-28"
3718
+ );
3719
+ }
3720
+ /** Gets reactions for an item. Source: https://docs.slack.dev/reference/methods/reactions.get */
3721
+ async get(input = {}) {
3722
+ validateArguments("slack.reactions_get", input);
3723
+ const response = await this.#client.integrations.execute({
3724
+ ...this.#connection,
3725
+ integration: "slack",
3726
+ version: "2026-10-28",
3727
+ operation: "slack.reactions_get",
3728
+ arguments: input
3729
+ });
3730
+ return new IntegrationCall(
3731
+ this.#client,
3732
+ response,
3733
+ "slack.reactions_get",
3734
+ "2026-10-28"
3735
+ );
3736
+ }
3737
+ /** Lists reactions made by a user. Source: https://docs.slack.dev/reference/methods/reactions.list */
3738
+ async list(input = {}) {
3739
+ validateArguments("slack.reactions_list", input);
3740
+ const response = await this.#client.integrations.execute({
3741
+ ...this.#connection,
3742
+ integration: "slack",
3743
+ version: "2026-10-28",
3744
+ operation: "slack.reactions_list",
3745
+ arguments: input
3746
+ });
3747
+ return new IntegrationCall(
3748
+ this.#client,
3749
+ response,
3750
+ "slack.reactions_list",
3751
+ "2026-10-28"
3752
+ );
3753
+ }
3754
+ /** Removes a reaction from an item. Source: https://docs.slack.dev/reference/methods/reactions.remove */
3755
+ async remove(input) {
3756
+ validateArguments("slack.reactions_remove", input);
3757
+ const response = await this.#client.integrations.execute({
3758
+ ...this.#connection,
3759
+ integration: "slack",
3760
+ version: "2026-10-28",
3761
+ operation: "slack.reactions_remove",
3762
+ arguments: input
3763
+ });
3764
+ return new IntegrationCall(
3765
+ this.#client,
3766
+ response,
3767
+ "slack.reactions_remove",
3768
+ "2026-10-28"
3769
+ );
3770
+ }
3771
+ };
3772
+ var SlackTeam = class {
3773
+ #client;
3774
+ #connection;
3775
+ constructor(client, connection) {
3776
+ this.#client = client;
3777
+ this.#connection = { ...connection };
3778
+ }
3779
+ /** Gets information about the current team. Source: https://docs.slack.dev/reference/methods/team.info */
3780
+ async info(input = {}) {
3781
+ validateArguments("slack.team_info", input);
3782
+ const response = await this.#client.integrations.execute({
3783
+ ...this.#connection,
3784
+ integration: "slack",
3785
+ version: "2026-10-28",
3786
+ operation: "slack.team_info",
3787
+ arguments: input
3788
+ });
3789
+ return new IntegrationCall(
3790
+ this.#client,
3791
+ response,
3792
+ "slack.team_info",
3793
+ "2026-10-28"
3794
+ );
3795
+ }
3796
+ };
3797
+ var SlackTeamProfile = class {
3798
+ #client;
3799
+ #connection;
3800
+ constructor(client, connection) {
3801
+ this.#client = client;
3802
+ this.#connection = { ...connection };
3803
+ }
3804
+ /** Retrieve a team's profile. Source: https://docs.slack.dev/reference/methods/team.profile.get */
3805
+ async get(input = {}) {
3806
+ validateArguments("slack.team_profile_get", input);
3807
+ const response = await this.#client.integrations.execute({
3808
+ ...this.#connection,
3809
+ integration: "slack",
3810
+ version: "2026-10-28",
3811
+ operation: "slack.team_profile_get",
3812
+ arguments: input
3813
+ });
3814
+ return new IntegrationCall(
3815
+ this.#client,
3816
+ response,
3817
+ "slack.team_profile_get",
3818
+ "2026-10-28"
3819
+ );
3820
+ }
3821
+ };
3822
+ var SlackUsergroups = class {
3823
+ #client;
3824
+ #connection;
3825
+ constructor(client, connection) {
3826
+ this.#client = client;
3827
+ this.#connection = { ...connection };
3828
+ }
3829
+ /** Create a User Group. Source: https://docs.slack.dev/reference/methods/usergroups.create */
3830
+ async create(input) {
3831
+ validateArguments("slack.usergroups_create", input);
3832
+ const response = await this.#client.integrations.execute({
3833
+ ...this.#connection,
3834
+ integration: "slack",
3835
+ version: "2026-10-28",
3836
+ operation: "slack.usergroups_create",
3837
+ arguments: input
3838
+ });
3839
+ return new IntegrationCall(
3840
+ this.#client,
3841
+ response,
3842
+ "slack.usergroups_create",
3843
+ "2026-10-28"
3844
+ );
3845
+ }
3846
+ /** Disable an existing User Group. Source: https://docs.slack.dev/reference/methods/usergroups.disable */
3847
+ async disable(input) {
3848
+ validateArguments("slack.usergroups_disable", input);
3849
+ const response = await this.#client.integrations.execute({
3850
+ ...this.#connection,
3851
+ integration: "slack",
3852
+ version: "2026-10-28",
3853
+ operation: "slack.usergroups_disable",
3854
+ arguments: input
3855
+ });
3856
+ return new IntegrationCall(
3857
+ this.#client,
3858
+ response,
3859
+ "slack.usergroups_disable",
3860
+ "2026-10-28"
3861
+ );
3862
+ }
3863
+ /** Enable a User Group. Source: https://docs.slack.dev/reference/methods/usergroups.enable */
3864
+ async enable(input) {
3865
+ validateArguments("slack.usergroups_enable", input);
3866
+ const response = await this.#client.integrations.execute({
3867
+ ...this.#connection,
3868
+ integration: "slack",
3869
+ version: "2026-10-28",
3870
+ operation: "slack.usergroups_enable",
3871
+ arguments: input
3872
+ });
3873
+ return new IntegrationCall(
3874
+ this.#client,
3875
+ response,
3876
+ "slack.usergroups_enable",
3877
+ "2026-10-28"
3878
+ );
3879
+ }
3880
+ /** List all User Groups for a team. Source: https://docs.slack.dev/reference/methods/usergroups.list */
3881
+ async list(input = {}) {
3882
+ validateArguments("slack.usergroups_list", input);
3883
+ const response = await this.#client.integrations.execute({
3884
+ ...this.#connection,
3885
+ integration: "slack",
3886
+ version: "2026-10-28",
3887
+ operation: "slack.usergroups_list",
3888
+ arguments: input
3889
+ });
3890
+ return new IntegrationCall(
3891
+ this.#client,
3892
+ response,
3893
+ "slack.usergroups_list",
3894
+ "2026-10-28"
3895
+ );
3896
+ }
3897
+ /** Update an existing User Group. Source: https://docs.slack.dev/reference/methods/usergroups.update */
3898
+ async update(input) {
3899
+ validateArguments("slack.usergroups_update", input);
3900
+ const response = await this.#client.integrations.execute({
3901
+ ...this.#connection,
3902
+ integration: "slack",
3903
+ version: "2026-10-28",
3904
+ operation: "slack.usergroups_update",
3905
+ arguments: input
3906
+ });
3907
+ return new IntegrationCall(
3908
+ this.#client,
3909
+ response,
3910
+ "slack.usergroups_update",
3911
+ "2026-10-28"
3912
+ );
3913
+ }
3914
+ };
3915
+ var SlackUsergroupsUsers = class {
3916
+ #client;
3917
+ #connection;
3918
+ constructor(client, connection) {
3919
+ this.#client = client;
3920
+ this.#connection = { ...connection };
3921
+ }
3922
+ /** List all users in a User Group. Source: https://docs.slack.dev/reference/methods/usergroups.users.list */
3923
+ async list(input) {
3924
+ validateArguments("slack.usergroups_users_list", input);
3925
+ const response = await this.#client.integrations.execute({
3926
+ ...this.#connection,
3927
+ integration: "slack",
3928
+ version: "2026-10-28",
3929
+ operation: "slack.usergroups_users_list",
3930
+ arguments: input
3931
+ });
3932
+ return new IntegrationCall(
3933
+ this.#client,
3934
+ response,
3935
+ "slack.usergroups_users_list",
3936
+ "2026-10-28"
3937
+ );
3938
+ }
3939
+ /** Update the list of users for a user group. Source: https://docs.slack.dev/reference/methods/usergroups.users.update */
3940
+ async update(input) {
3941
+ validateArguments("slack.usergroups_users_update", input);
3942
+ const response = await this.#client.integrations.execute({
3943
+ ...this.#connection,
3944
+ integration: "slack",
3945
+ version: "2026-10-28",
3946
+ operation: "slack.usergroups_users_update",
3947
+ arguments: input
3948
+ });
3949
+ return new IntegrationCall(
3950
+ this.#client,
3951
+ response,
3952
+ "slack.usergroups_users_update",
3953
+ "2026-10-28"
3954
+ );
3955
+ }
3956
+ };
3957
+ var SlackUsers = class {
3958
+ #client;
3959
+ #connection;
3960
+ constructor(client, connection) {
3961
+ this.#client = client;
3962
+ this.#connection = { ...connection };
3963
+ }
3964
+ /** List conversations the calling user is a member of. Source: https://docs.slack.dev/reference/methods/users.conversations */
3965
+ async conversations(input = {}) {
3966
+ validateArguments("slack.users_conversations", input);
3967
+ const response = await this.#client.integrations.execute({
3968
+ ...this.#connection,
3969
+ integration: "slack",
3970
+ version: "2026-10-28",
3971
+ operation: "slack.users_conversations",
3972
+ arguments: input
3973
+ });
3974
+ return new IntegrationCall(
3975
+ this.#client,
3976
+ response,
3977
+ "slack.users_conversations",
3978
+ "2026-10-28"
3979
+ );
3980
+ }
3981
+ /** Gets user presence information. Source: https://docs.slack.dev/reference/methods/users.getPresence */
3982
+ async getPresence(input = {}) {
3983
+ validateArguments("slack.users_getpresence", input);
3984
+ const response = await this.#client.integrations.execute({
3985
+ ...this.#connection,
3986
+ integration: "slack",
3987
+ version: "2026-10-28",
3988
+ operation: "slack.users_getpresence",
3989
+ arguments: input
3990
+ });
3991
+ return new IntegrationCall(
3992
+ this.#client,
3993
+ response,
3994
+ "slack.users_getpresence",
3995
+ "2026-10-28"
3996
+ );
3997
+ }
3998
+ /** Gets information about a user. Source: https://docs.slack.dev/reference/methods/users.info */
3999
+ async info(input = {}) {
4000
+ validateArguments("slack.users_info", input);
4001
+ const response = await this.#client.integrations.execute({
4002
+ ...this.#connection,
4003
+ integration: "slack",
4004
+ version: "2026-10-28",
4005
+ operation: "slack.users_info",
4006
+ arguments: input
4007
+ });
4008
+ return new IntegrationCall(
4009
+ this.#client,
4010
+ response,
4011
+ "slack.users_info",
4012
+ "2026-10-28"
4013
+ );
4014
+ }
4015
+ /** Lists all users in a Slack team. Source: https://docs.slack.dev/reference/methods/users.list */
4016
+ async list(input = {}) {
4017
+ validateArguments("slack.users_list", input);
4018
+ const response = await this.#client.integrations.execute({
4019
+ ...this.#connection,
4020
+ integration: "slack",
4021
+ version: "2026-10-28",
4022
+ operation: "slack.users_list",
4023
+ arguments: input
4024
+ });
4025
+ return new IntegrationCall(
4026
+ this.#client,
4027
+ response,
4028
+ "slack.users_list",
4029
+ "2026-10-28"
4030
+ );
4031
+ }
4032
+ /** Find a user with an email address. Source: https://docs.slack.dev/reference/methods/users.lookupByEmail */
4033
+ async lookupByEmail(input) {
4034
+ validateArguments("slack.users_lookupbyemail", input);
4035
+ const response = await this.#client.integrations.execute({
4036
+ ...this.#connection,
4037
+ integration: "slack",
4038
+ version: "2026-10-28",
4039
+ operation: "slack.users_lookupbyemail",
4040
+ arguments: input
4041
+ });
4042
+ return new IntegrationCall(
4043
+ this.#client,
4044
+ response,
4045
+ "slack.users_lookupbyemail",
4046
+ "2026-10-28"
4047
+ );
4048
+ }
4049
+ /** Manually sets user presence. Source: https://docs.slack.dev/reference/methods/users.setPresence */
4050
+ async setPresence(input) {
4051
+ validateArguments("slack.users_setpresence", input);
4052
+ const response = await this.#client.integrations.execute({
4053
+ ...this.#connection,
4054
+ integration: "slack",
4055
+ version: "2026-10-28",
4056
+ operation: "slack.users_setpresence",
4057
+ arguments: input
4058
+ });
4059
+ return new IntegrationCall(
4060
+ this.#client,
4061
+ response,
4062
+ "slack.users_setpresence",
4063
+ "2026-10-28"
4064
+ );
4065
+ }
4066
+ };
4067
+ var SlackUsersProfile = class {
4068
+ #client;
4069
+ #connection;
4070
+ constructor(client, connection) {
4071
+ this.#client = client;
4072
+ this.#connection = { ...connection };
4073
+ }
4074
+ /** Retrieve a user's profile information, including their custom status. Source: https://docs.slack.dev/reference/methods/users.profile.get */
4075
+ async get(input = {}) {
4076
+ validateArguments("slack.users_profile_get", input);
4077
+ const response = await this.#client.integrations.execute({
4078
+ ...this.#connection,
4079
+ integration: "slack",
4080
+ version: "2026-10-28",
4081
+ operation: "slack.users_profile_get",
4082
+ arguments: input
4083
+ });
4084
+ return new IntegrationCall(
4085
+ this.#client,
4086
+ response,
4087
+ "slack.users_profile_get",
4088
+ "2026-10-28"
4089
+ );
4090
+ }
4091
+ };
4092
+ var SlackViews = class {
4093
+ #client;
4094
+ #connection;
4095
+ constructor(client, connection) {
4096
+ this.#client = client;
4097
+ this.#connection = { ...connection };
4098
+ }
4099
+ /** Open a view for a user. Source: https://docs.slack.dev/reference/methods/views.open */
4100
+ async open(input) {
4101
+ validateArguments("slack.views_open", input);
4102
+ const response = await this.#client.integrations.execute({
4103
+ ...this.#connection,
4104
+ integration: "slack",
4105
+ version: "2026-10-28",
4106
+ operation: "slack.views_open",
4107
+ arguments: input
4108
+ });
4109
+ return new IntegrationCall(
4110
+ this.#client,
4111
+ response,
4112
+ "slack.views_open",
4113
+ "2026-10-28"
4114
+ );
4115
+ }
4116
+ /** Publish a static view for a User. Source: https://docs.slack.dev/reference/methods/views.publish */
4117
+ async publish(input) {
4118
+ validateArguments("slack.views_publish", input);
4119
+ const response = await this.#client.integrations.execute({
4120
+ ...this.#connection,
4121
+ integration: "slack",
4122
+ version: "2026-10-28",
4123
+ operation: "slack.views_publish",
4124
+ arguments: input
4125
+ });
4126
+ return new IntegrationCall(
4127
+ this.#client,
4128
+ response,
4129
+ "slack.views_publish",
4130
+ "2026-10-28"
4131
+ );
4132
+ }
4133
+ /** Push a view onto the stack of a root view. Source: https://docs.slack.dev/reference/methods/views.push */
4134
+ async push(input) {
4135
+ validateArguments("slack.views_push", input);
4136
+ const response = await this.#client.integrations.execute({
4137
+ ...this.#connection,
4138
+ integration: "slack",
4139
+ version: "2026-10-28",
4140
+ operation: "slack.views_push",
4141
+ arguments: input
4142
+ });
4143
+ return new IntegrationCall(
4144
+ this.#client,
4145
+ response,
4146
+ "slack.views_push",
4147
+ "2026-10-28"
4148
+ );
4149
+ }
4150
+ /** Update an existing view. Source: https://docs.slack.dev/reference/methods/views.update */
4151
+ async update(input) {
4152
+ validateArguments("slack.views_update", input);
4153
+ const response = await this.#client.integrations.execute({
4154
+ ...this.#connection,
4155
+ integration: "slack",
4156
+ version: "2026-10-28",
4157
+ operation: "slack.views_update",
4158
+ arguments: input
4159
+ });
4160
+ return new IntegrationCall(
4161
+ this.#client,
4162
+ response,
4163
+ "slack.views_update",
4164
+ "2026-10-28"
4165
+ );
4166
+ }
4167
+ };
4168
+ var SlackIntegration = class {
4169
+ #client;
4170
+ api;
4171
+ auth;
4172
+ bots;
4173
+ calls;
4174
+ callsParticipants;
4175
+ chat;
4176
+ chatScheduledMessages;
4177
+ conversations;
4178
+ dialog;
4179
+ dnd;
4180
+ emoji;
4181
+ files;
4182
+ filesComments;
4183
+ filesRemote;
4184
+ migration;
4185
+ pins;
4186
+ reactions;
4187
+ team;
4188
+ teamProfile;
4189
+ usergroups;
4190
+ usergroupsUsers;
4191
+ users;
4192
+ usersProfile;
4193
+ views;
4194
+ constructor(client, connection = {}) {
4195
+ this.#client = client;
4196
+ this.api = new SlackApi(client, connection);
4197
+ this.auth = new SlackAuth(client, connection);
4198
+ this.bots = new SlackBots(client, connection);
4199
+ this.calls = new SlackCalls(client, connection);
4200
+ this.callsParticipants = new SlackCallsParticipants(client, connection);
4201
+ this.chat = new SlackChat(client, connection);
4202
+ this.chatScheduledMessages = new SlackChatScheduledMessages(
4203
+ client,
4204
+ connection
4205
+ );
4206
+ this.conversations = new SlackConversations(client, connection);
4207
+ this.dialog = new SlackDialog(client, connection);
4208
+ this.dnd = new SlackDnd(client, connection);
4209
+ this.emoji = new SlackEmoji(client, connection);
4210
+ this.files = new SlackFiles(client, connection);
4211
+ this.filesComments = new SlackFilesComments(client, connection);
4212
+ this.filesRemote = new SlackFilesRemote(client, connection);
4213
+ this.migration = new SlackMigration(client, connection);
4214
+ this.pins = new SlackPins(client, connection);
4215
+ this.reactions = new SlackReactions(client, connection);
4216
+ this.team = new SlackTeam(client, connection);
4217
+ this.teamProfile = new SlackTeamProfile(client, connection);
4218
+ this.usergroups = new SlackUsergroups(client, connection);
4219
+ this.usergroupsUsers = new SlackUsergroupsUsers(client, connection);
4220
+ this.users = new SlackUsers(client, connection);
4221
+ this.usersProfile = new SlackUsersProfile(client, connection);
4222
+ this.views = new SlackViews(client, connection);
4223
+ }
4224
+ async resume(approvalId) {
4225
+ return await resumeCall(
4226
+ this.#client,
4227
+ approvalId,
4228
+ "slack",
4229
+ "2026-10-28"
4230
+ );
4231
+ }
4232
+ };
4233
+
4234
+ // src/index.ts
4235
+ var contractVersion = "2026-10-28";
4236
+ export {
4237
+ IntegrationCall,
4238
+ IntegrationResult,
4239
+ SlackApi,
4240
+ SlackAuth,
4241
+ SlackBots,
4242
+ SlackCalls,
4243
+ SlackCallsParticipants,
4244
+ SlackChat,
4245
+ SlackChatScheduledMessages,
4246
+ SlackConversations,
4247
+ SlackDialog,
4248
+ SlackDnd,
4249
+ SlackEmoji,
4250
+ SlackFiles,
4251
+ SlackFilesComments,
4252
+ SlackFilesRemote,
4253
+ SlackIntegration,
4254
+ SlackMigration,
4255
+ SlackPins,
4256
+ SlackReactions,
4257
+ SlackTeam,
4258
+ SlackTeamProfile,
4259
+ SlackUsergroups,
4260
+ SlackUsergroupsUsers,
4261
+ SlackUsers,
4262
+ SlackUsersProfile,
4263
+ SlackViews,
4264
+ contractVersion
4265
+ };