@frogbotai/piece-slack 0.30.0 → 0.32.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/actions.d.ts CHANGED
@@ -19,19 +19,6 @@ export declare const sendDirectMessage: import("frogbot").PieceActionDefinition<
19
19
  [x: string]: unknown;
20
20
  ok: true;
21
21
  }>;
22
- raw: ({ path, method, body, headers, token: tokenKind, }: {
23
- path: string;
24
- method?: string;
25
- body?: BodyInit | Record<string, unknown>;
26
- headers?: HeadersInit;
27
- token?: SlackToken;
28
- }) => Promise<{
29
- status: number;
30
- headers: {
31
- [k: string]: string;
32
- };
33
- body: any;
34
- }>;
35
22
  paginate: ({ path, body, item, token: tokenKind, limit, }: {
36
23
  path: string;
37
24
  body?: Record<string, unknown>;
@@ -41,6 +28,7 @@ export declare const sendDirectMessage: import("frogbot").PieceActionDefinition<
41
28
  }) => Promise<Record<string, unknown>[]>;
42
29
  token: (kind?: SlackToken) => string | undefined;
43
30
  workspaceId: () => Promise<string>;
31
+ authorize: (headers: Headers) => void;
44
32
  }, {
45
33
  [x: string]: unknown;
46
34
  ok: true;
@@ -73,19 +61,6 @@ export declare const sendChannelMessage: import("frogbot").PieceActionDefinition
73
61
  [x: string]: unknown;
74
62
  ok: true;
75
63
  }>;
76
- raw: ({ path, method, body, headers, token: tokenKind, }: {
77
- path: string;
78
- method?: string;
79
- body?: BodyInit | Record<string, unknown>;
80
- headers?: HeadersInit;
81
- token?: SlackToken;
82
- }) => Promise<{
83
- status: number;
84
- headers: {
85
- [k: string]: string;
86
- };
87
- body: any;
88
- }>;
89
64
  paginate: ({ path, body, item, token: tokenKind, limit, }: {
90
65
  path: string;
91
66
  body?: Record<string, unknown>;
@@ -95,6 +70,7 @@ export declare const sendChannelMessage: import("frogbot").PieceActionDefinition
95
70
  }) => Promise<Record<string, unknown>[]>;
96
71
  token: (kind?: SlackToken) => string | undefined;
97
72
  workspaceId: () => Promise<string>;
73
+ authorize: (headers: Headers) => void;
98
74
  }, {
99
75
  [x: string]: unknown;
100
76
  ok: true;
@@ -115,19 +91,6 @@ export declare const addReaction: import("frogbot").PieceActionDefinition<z.ZodO
115
91
  [x: string]: unknown;
116
92
  ok: true;
117
93
  }>;
118
- raw: ({ path, method, body, headers, token: tokenKind, }: {
119
- path: string;
120
- method?: string;
121
- body?: BodyInit | Record<string, unknown>;
122
- headers?: HeadersInit;
123
- token?: SlackToken;
124
- }) => Promise<{
125
- status: number;
126
- headers: {
127
- [k: string]: string;
128
- };
129
- body: any;
130
- }>;
131
94
  paginate: ({ path, body, item, token: tokenKind, limit, }: {
132
95
  path: string;
133
96
  body?: Record<string, unknown>;
@@ -137,6 +100,7 @@ export declare const addReaction: import("frogbot").PieceActionDefinition<z.ZodO
137
100
  }) => Promise<Record<string, unknown>[]>;
138
101
  token: (kind?: SlackToken) => string | undefined;
139
102
  workspaceId: () => Promise<string>;
103
+ authorize: (headers: Headers) => void;
140
104
  }, {
141
105
  [x: string]: unknown;
142
106
  ok: true;
@@ -160,19 +124,6 @@ export declare const uploadFile: import("frogbot").PieceActionDefinition<z.ZodOb
160
124
  [x: string]: unknown;
161
125
  ok: true;
162
126
  }>;
163
- raw: ({ path, method, body, headers, token: tokenKind, }: {
164
- path: string;
165
- method?: string;
166
- body?: BodyInit | Record<string, unknown>;
167
- headers?: HeadersInit;
168
- token?: SlackToken;
169
- }) => Promise<{
170
- status: number;
171
- headers: {
172
- [k: string]: string;
173
- };
174
- body: any;
175
- }>;
176
127
  paginate: ({ path, body, item, token: tokenKind, limit, }: {
177
128
  path: string;
178
129
  body?: Record<string, unknown>;
@@ -182,6 +133,7 @@ export declare const uploadFile: import("frogbot").PieceActionDefinition<z.ZodOb
182
133
  }) => Promise<Record<string, unknown>[]>;
183
134
  token: (kind?: SlackToken) => string | undefined;
184
135
  workspaceId: () => Promise<string>;
136
+ authorize: (headers: Headers) => void;
185
137
  }, {
186
138
  [x: string]: unknown;
187
139
  ok: true;
@@ -197,19 +149,6 @@ export declare const getFile: import("frogbot").PieceActionDefinition<z.ZodObjec
197
149
  [x: string]: unknown;
198
150
  ok: true;
199
151
  }>;
200
- raw: ({ path, method, body, headers, token: tokenKind, }: {
201
- path: string;
202
- method?: string;
203
- body?: BodyInit | Record<string, unknown>;
204
- headers?: HeadersInit;
205
- token?: SlackToken;
206
- }) => Promise<{
207
- status: number;
208
- headers: {
209
- [k: string]: string;
210
- };
211
- body: any;
212
- }>;
213
152
  paginate: ({ path, body, item, token: tokenKind, limit, }: {
214
153
  path: string;
215
154
  body?: Record<string, unknown>;
@@ -219,6 +158,7 @@ export declare const getFile: import("frogbot").PieceActionDefinition<z.ZodObjec
219
158
  }) => Promise<Record<string, unknown>[]>;
220
159
  token: (kind?: SlackToken) => string | undefined;
221
160
  workspaceId: () => Promise<string>;
161
+ authorize: (headers: Headers) => void;
222
162
  }, Record<string, unknown>> & {
223
163
  slug: "getFile";
224
164
  };
@@ -231,19 +171,6 @@ export declare const searchMessages: import("frogbot").PieceActionDefinition<z.Z
231
171
  [x: string]: unknown;
232
172
  ok: true;
233
173
  }>;
234
- raw: ({ path, method, body, headers, token: tokenKind, }: {
235
- path: string;
236
- method?: string;
237
- body?: BodyInit | Record<string, unknown>;
238
- headers?: HeadersInit;
239
- token?: SlackToken;
240
- }) => Promise<{
241
- status: number;
242
- headers: {
243
- [k: string]: string;
244
- };
245
- body: any;
246
- }>;
247
174
  paginate: ({ path, body, item, token: tokenKind, limit, }: {
248
175
  path: string;
249
176
  body?: Record<string, unknown>;
@@ -253,6 +180,7 @@ export declare const searchMessages: import("frogbot").PieceActionDefinition<z.Z
253
180
  }) => Promise<Record<string, unknown>[]>;
254
181
  token: (kind?: SlackToken) => string | undefined;
255
182
  workspaceId: () => Promise<string>;
183
+ authorize: (headers: Headers) => void;
256
184
  }, Record<string, unknown>[]> & {
257
185
  slug: "searchMessages";
258
186
  };
@@ -267,19 +195,6 @@ export declare const findUserByEmail: import("frogbot").PieceActionDefinition<z.
267
195
  [x: string]: unknown;
268
196
  ok: true;
269
197
  }>;
270
- raw: ({ path, method, body, headers, token: tokenKind, }: {
271
- path: string;
272
- method?: string;
273
- body?: BodyInit | Record<string, unknown>;
274
- headers?: HeadersInit;
275
- token?: SlackToken;
276
- }) => Promise<{
277
- status: number;
278
- headers: {
279
- [k: string]: string;
280
- };
281
- body: any;
282
- }>;
283
198
  paginate: ({ path, body, item, token: tokenKind, limit, }: {
284
199
  path: string;
285
200
  body?: Record<string, unknown>;
@@ -289,6 +204,7 @@ export declare const findUserByEmail: import("frogbot").PieceActionDefinition<z.
289
204
  }) => Promise<Record<string, unknown>[]>;
290
205
  token: (kind?: SlackToken) => string | undefined;
291
206
  workspaceId: () => Promise<string>;
207
+ authorize: (headers: Headers) => void;
292
208
  }, {
293
209
  [x: string]: unknown;
294
210
  ok: true;
@@ -304,19 +220,6 @@ export declare const findUserByHandle: import("frogbot").PieceActionDefinition<z
304
220
  [x: string]: unknown;
305
221
  ok: true;
306
222
  }>;
307
- raw: ({ path, method, body, headers, token: tokenKind, }: {
308
- path: string;
309
- method?: string;
310
- body?: BodyInit | Record<string, unknown>;
311
- headers?: HeadersInit;
312
- token?: SlackToken;
313
- }) => Promise<{
314
- status: number;
315
- headers: {
316
- [k: string]: string;
317
- };
318
- body: any;
319
- }>;
320
223
  paginate: ({ path, body, item, token: tokenKind, limit, }: {
321
224
  path: string;
322
225
  body?: Record<string, unknown>;
@@ -326,6 +229,7 @@ export declare const findUserByHandle: import("frogbot").PieceActionDefinition<z
326
229
  }) => Promise<Record<string, unknown>[]>;
327
230
  token: (kind?: SlackToken) => string | undefined;
328
231
  workspaceId: () => Promise<string>;
232
+ authorize: (headers: Headers) => void;
329
233
  }, Record<string, unknown>> & {
330
234
  slug: "findUserByHandle";
331
235
  };
@@ -340,19 +244,6 @@ export declare const findUserById: import("frogbot").PieceActionDefinition<z.Zod
340
244
  [x: string]: unknown;
341
245
  ok: true;
342
246
  }>;
343
- raw: ({ path, method, body, headers, token: tokenKind, }: {
344
- path: string;
345
- method?: string;
346
- body?: BodyInit | Record<string, unknown>;
347
- headers?: HeadersInit;
348
- token?: SlackToken;
349
- }) => Promise<{
350
- status: number;
351
- headers: {
352
- [k: string]: string;
353
- };
354
- body: any;
355
- }>;
356
247
  paginate: ({ path, body, item, token: tokenKind, limit, }: {
357
248
  path: string;
358
249
  body?: Record<string, unknown>;
@@ -362,6 +253,7 @@ export declare const findUserById: import("frogbot").PieceActionDefinition<z.Zod
362
253
  }) => Promise<Record<string, unknown>[]>;
363
254
  token: (kind?: SlackToken) => string | undefined;
364
255
  workspaceId: () => Promise<string>;
256
+ authorize: (headers: Headers) => void;
365
257
  }, {
366
258
  [x: string]: unknown;
367
259
  ok: true;
@@ -378,19 +270,6 @@ export declare const listUsers: import("frogbot").PieceActionDefinition<z.ZodObj
378
270
  [x: string]: unknown;
379
271
  ok: true;
380
272
  }>;
381
- raw: ({ path, method, body, headers, token: tokenKind, }: {
382
- path: string;
383
- method?: string;
384
- body?: BodyInit | Record<string, unknown>;
385
- headers?: HeadersInit;
386
- token?: SlackToken;
387
- }) => Promise<{
388
- status: number;
389
- headers: {
390
- [k: string]: string;
391
- };
392
- body: any;
393
- }>;
394
273
  paginate: ({ path, body, item, token: tokenKind, limit, }: {
395
274
  path: string;
396
275
  body?: Record<string, unknown>;
@@ -400,6 +279,7 @@ export declare const listUsers: import("frogbot").PieceActionDefinition<z.ZodObj
400
279
  }) => Promise<Record<string, unknown>[]>;
401
280
  token: (kind?: SlackToken) => string | undefined;
402
281
  workspaceId: () => Promise<string>;
282
+ authorize: (headers: Headers) => void;
403
283
  }, Record<string, unknown>[]> & {
404
284
  slug: "listUsers";
405
285
  };
@@ -417,19 +297,6 @@ export declare const updateMessage: import("frogbot").PieceActionDefinition<z.Zo
417
297
  [x: string]: unknown;
418
298
  ok: true;
419
299
  }>;
420
- raw: ({ path, method, body, headers, token: tokenKind, }: {
421
- path: string;
422
- method?: string;
423
- body?: BodyInit | Record<string, unknown>;
424
- headers?: HeadersInit;
425
- token?: SlackToken;
426
- }) => Promise<{
427
- status: number;
428
- headers: {
429
- [k: string]: string;
430
- };
431
- body: any;
432
- }>;
433
300
  paginate: ({ path, body, item, token: tokenKind, limit, }: {
434
301
  path: string;
435
302
  body?: Record<string, unknown>;
@@ -439,6 +306,7 @@ export declare const updateMessage: import("frogbot").PieceActionDefinition<z.Zo
439
306
  }) => Promise<Record<string, unknown>[]>;
440
307
  token: (kind?: SlackToken) => string | undefined;
441
308
  workspaceId: () => Promise<string>;
309
+ authorize: (headers: Headers) => void;
442
310
  }, {
443
311
  [x: string]: unknown;
444
312
  ok: true;
@@ -457,19 +325,6 @@ export declare const deleteMessage: import("frogbot").PieceActionDefinition<z.Zo
457
325
  [x: string]: unknown;
458
326
  ok: true;
459
327
  }>;
460
- raw: ({ path, method, body, headers, token: tokenKind, }: {
461
- path: string;
462
- method?: string;
463
- body?: BodyInit | Record<string, unknown>;
464
- headers?: HeadersInit;
465
- token?: SlackToken;
466
- }) => Promise<{
467
- status: number;
468
- headers: {
469
- [k: string]: string;
470
- };
471
- body: any;
472
- }>;
473
328
  paginate: ({ path, body, item, token: tokenKind, limit, }: {
474
329
  path: string;
475
330
  body?: Record<string, unknown>;
@@ -479,6 +334,7 @@ export declare const deleteMessage: import("frogbot").PieceActionDefinition<z.Zo
479
334
  }) => Promise<Record<string, unknown>[]>;
480
335
  token: (kind?: SlackToken) => string | undefined;
481
336
  workspaceId: () => Promise<string>;
337
+ authorize: (headers: Headers) => void;
482
338
  }, {
483
339
  [x: string]: unknown;
484
340
  ok: true;
@@ -497,19 +353,6 @@ export declare const createChannel: import("frogbot").PieceActionDefinition<z.Zo
497
353
  [x: string]: unknown;
498
354
  ok: true;
499
355
  }>;
500
- raw: ({ path, method, body, headers, token: tokenKind, }: {
501
- path: string;
502
- method?: string;
503
- body?: BodyInit | Record<string, unknown>;
504
- headers?: HeadersInit;
505
- token?: SlackToken;
506
- }) => Promise<{
507
- status: number;
508
- headers: {
509
- [k: string]: string;
510
- };
511
- body: any;
512
- }>;
513
356
  paginate: ({ path, body, item, token: tokenKind, limit, }: {
514
357
  path: string;
515
358
  body?: Record<string, unknown>;
@@ -519,6 +362,7 @@ export declare const createChannel: import("frogbot").PieceActionDefinition<z.Zo
519
362
  }) => Promise<Record<string, unknown>[]>;
520
363
  token: (kind?: SlackToken) => string | undefined;
521
364
  workspaceId: () => Promise<string>;
365
+ authorize: (headers: Headers) => void;
522
366
  }, {
523
367
  [x: string]: unknown;
524
368
  ok: true;
@@ -539,19 +383,6 @@ export declare const updateProfile: import("frogbot").PieceActionDefinition<z.Zo
539
383
  [x: string]: unknown;
540
384
  ok: true;
541
385
  }>;
542
- raw: ({ path, method, body, headers, token: tokenKind, }: {
543
- path: string;
544
- method?: string;
545
- body?: BodyInit | Record<string, unknown>;
546
- headers?: HeadersInit;
547
- token?: SlackToken;
548
- }) => Promise<{
549
- status: number;
550
- headers: {
551
- [k: string]: string;
552
- };
553
- body: any;
554
- }>;
555
386
  paginate: ({ path, body, item, token: tokenKind, limit, }: {
556
387
  path: string;
557
388
  body?: Record<string, unknown>;
@@ -561,6 +392,7 @@ export declare const updateProfile: import("frogbot").PieceActionDefinition<z.Zo
561
392
  }) => Promise<Record<string, unknown>[]>;
562
393
  token: (kind?: SlackToken) => string | undefined;
563
394
  workspaceId: () => Promise<string>;
395
+ authorize: (headers: Headers) => void;
564
396
  }, {
565
397
  [x: string]: unknown;
566
398
  ok: true;
@@ -580,19 +412,6 @@ export declare const getChannelHistory: import("frogbot").PieceActionDefinition<
580
412
  [x: string]: unknown;
581
413
  ok: true;
582
414
  }>;
583
- raw: ({ path, method, body, headers, token: tokenKind, }: {
584
- path: string;
585
- method?: string;
586
- body?: BodyInit | Record<string, unknown>;
587
- headers?: HeadersInit;
588
- token?: SlackToken;
589
- }) => Promise<{
590
- status: number;
591
- headers: {
592
- [k: string]: string;
593
- };
594
- body: any;
595
- }>;
596
415
  paginate: ({ path, body, item, token: tokenKind, limit, }: {
597
416
  path: string;
598
417
  body?: Record<string, unknown>;
@@ -602,6 +421,7 @@ export declare const getChannelHistory: import("frogbot").PieceActionDefinition<
602
421
  }) => Promise<Record<string, unknown>[]>;
603
422
  token: (kind?: SlackToken) => string | undefined;
604
423
  workspaceId: () => Promise<string>;
424
+ authorize: (headers: Headers) => void;
605
425
  }, Record<string, unknown>[]> & {
606
426
  slug: "getChannelHistory";
607
427
  };
@@ -618,19 +438,6 @@ export declare const setUserStatus: import("frogbot").PieceActionDefinition<z.Zo
618
438
  [x: string]: unknown;
619
439
  ok: true;
620
440
  }>;
621
- raw: ({ path, method, body, headers, token: tokenKind, }: {
622
- path: string;
623
- method?: string;
624
- body?: BodyInit | Record<string, unknown>;
625
- headers?: HeadersInit;
626
- token?: SlackToken;
627
- }) => Promise<{
628
- status: number;
629
- headers: {
630
- [k: string]: string;
631
- };
632
- body: any;
633
- }>;
634
441
  paginate: ({ path, body, item, token: tokenKind, limit, }: {
635
442
  path: string;
636
443
  body?: Record<string, unknown>;
@@ -640,6 +447,7 @@ export declare const setUserStatus: import("frogbot").PieceActionDefinition<z.Zo
640
447
  }) => Promise<Record<string, unknown>[]>;
641
448
  token: (kind?: SlackToken) => string | undefined;
642
449
  workspaceId: () => Promise<string>;
450
+ authorize: (headers: Headers) => void;
643
451
  }, {
644
452
  [x: string]: unknown;
645
453
  ok: true;
@@ -657,19 +465,6 @@ export declare const markdownToSlack: import("frogbot").PieceActionDefinition<z.
657
465
  [x: string]: unknown;
658
466
  ok: true;
659
467
  }>;
660
- raw: ({ path, method, body, headers, token: tokenKind, }: {
661
- path: string;
662
- method?: string;
663
- body?: BodyInit | Record<string, unknown>;
664
- headers?: HeadersInit;
665
- token?: SlackToken;
666
- }) => Promise<{
667
- status: number;
668
- headers: {
669
- [k: string]: string;
670
- };
671
- body: any;
672
- }>;
673
468
  paginate: ({ path, body, item, token: tokenKind, limit, }: {
674
469
  path: string;
675
470
  body?: Record<string, unknown>;
@@ -679,6 +474,7 @@ export declare const markdownToSlack: import("frogbot").PieceActionDefinition<z.
679
474
  }) => Promise<Record<string, unknown>[]>;
680
475
  token: (kind?: SlackToken) => string | undefined;
681
476
  workspaceId: () => Promise<string>;
477
+ authorize: (headers: Headers) => void;
682
478
  }, {
683
479
  text: string;
684
480
  }> & {
@@ -694,19 +490,6 @@ export declare const listThreadMessages: import("frogbot").PieceActionDefinition
694
490
  [x: string]: unknown;
695
491
  ok: true;
696
492
  }>;
697
- raw: ({ path, method, body, headers, token: tokenKind, }: {
698
- path: string;
699
- method?: string;
700
- body?: BodyInit | Record<string, unknown>;
701
- headers?: HeadersInit;
702
- token?: SlackToken;
703
- }) => Promise<{
704
- status: number;
705
- headers: {
706
- [k: string]: string;
707
- };
708
- body: any;
709
- }>;
710
493
  paginate: ({ path, body, item, token: tokenKind, limit, }: {
711
494
  path: string;
712
495
  body?: Record<string, unknown>;
@@ -716,6 +499,7 @@ export declare const listThreadMessages: import("frogbot").PieceActionDefinition
716
499
  }) => Promise<Record<string, unknown>[]>;
717
500
  token: (kind?: SlackToken) => string | undefined;
718
501
  workspaceId: () => Promise<string>;
502
+ authorize: (headers: Headers) => void;
719
503
  }, Record<string, unknown>[]> & {
720
504
  slug: "listThreadMessages";
721
505
  };
@@ -731,19 +515,6 @@ export declare const setChannelTopic: import("frogbot").PieceActionDefinition<z.
731
515
  [x: string]: unknown;
732
516
  ok: true;
733
517
  }>;
734
- raw: ({ path, method, body, headers, token: tokenKind, }: {
735
- path: string;
736
- method?: string;
737
- body?: BodyInit | Record<string, unknown>;
738
- headers?: HeadersInit;
739
- token?: SlackToken;
740
- }) => Promise<{
741
- status: number;
742
- headers: {
743
- [k: string]: string;
744
- };
745
- body: any;
746
- }>;
747
518
  paginate: ({ path, body, item, token: tokenKind, limit, }: {
748
519
  path: string;
749
520
  body?: Record<string, unknown>;
@@ -753,6 +524,7 @@ export declare const setChannelTopic: import("frogbot").PieceActionDefinition<z.
753
524
  }) => Promise<Record<string, unknown>[]>;
754
525
  token: (kind?: SlackToken) => string | undefined;
755
526
  workspaceId: () => Promise<string>;
527
+ authorize: (headers: Headers) => void;
756
528
  }, {
757
529
  [x: string]: unknown;
758
530
  ok: true;
@@ -771,19 +543,6 @@ export declare const getMessage: import("frogbot").PieceActionDefinition<z.ZodOb
771
543
  [x: string]: unknown;
772
544
  ok: true;
773
545
  }>;
774
- raw: ({ path, method, body, headers, token: tokenKind, }: {
775
- path: string;
776
- method?: string;
777
- body?: BodyInit | Record<string, unknown>;
778
- headers?: HeadersInit;
779
- token?: SlackToken;
780
- }) => Promise<{
781
- status: number;
782
- headers: {
783
- [k: string]: string;
784
- };
785
- body: any;
786
- }>;
787
546
  paginate: ({ path, body, item, token: tokenKind, limit, }: {
788
547
  path: string;
789
548
  body?: Record<string, unknown>;
@@ -793,6 +552,7 @@ export declare const getMessage: import("frogbot").PieceActionDefinition<z.ZodOb
793
552
  }) => Promise<Record<string, unknown>[]>;
794
553
  token: (kind?: SlackToken) => string | undefined;
795
554
  workspaceId: () => Promise<string>;
555
+ authorize: (headers: Headers) => void;
796
556
  }, {
797
557
  [x: string]: unknown;
798
558
  ok: true;
@@ -811,19 +571,6 @@ export declare const inviteUserToChannel: import("frogbot").PieceActionDefinitio
811
571
  [x: string]: unknown;
812
572
  ok: true;
813
573
  }>;
814
- raw: ({ path, method, body, headers, token: tokenKind, }: {
815
- path: string;
816
- method?: string;
817
- body?: BodyInit | Record<string, unknown>;
818
- headers?: HeadersInit;
819
- token?: SlackToken;
820
- }) => Promise<{
821
- status: number;
822
- headers: {
823
- [k: string]: string;
824
- };
825
- body: any;
826
- }>;
827
574
  paginate: ({ path, body, item, token: tokenKind, limit, }: {
828
575
  path: string;
829
576
  body?: Record<string, unknown>;
@@ -833,6 +580,7 @@ export declare const inviteUserToChannel: import("frogbot").PieceActionDefinitio
833
580
  }) => Promise<Record<string, unknown>[]>;
834
581
  token: (kind?: SlackToken) => string | undefined;
835
582
  workspaceId: () => Promise<string>;
583
+ authorize: (headers: Headers) => void;
836
584
  }, {
837
585
  [x: string]: unknown;
838
586
  ok: true;
@@ -848,19 +596,6 @@ export declare const getUserGroupByHandle: import("frogbot").PieceActionDefiniti
848
596
  [x: string]: unknown;
849
597
  ok: true;
850
598
  }>;
851
- raw: ({ path, method, body, headers, token: tokenKind, }: {
852
- path: string;
853
- method?: string;
854
- body?: BodyInit | Record<string, unknown>;
855
- headers?: HeadersInit;
856
- token?: SlackToken;
857
- }) => Promise<{
858
- status: number;
859
- headers: {
860
- [k: string]: string;
861
- };
862
- body: any;
863
- }>;
864
599
  paginate: ({ path, body, item, token: tokenKind, limit, }: {
865
600
  path: string;
866
601
  body?: Record<string, unknown>;
@@ -870,6 +605,7 @@ export declare const getUserGroupByHandle: import("frogbot").PieceActionDefiniti
870
605
  }) => Promise<Record<string, unknown>[]>;
871
606
  token: (kind?: SlackToken) => string | undefined;
872
607
  workspaceId: () => Promise<string>;
608
+ authorize: (headers: Headers) => void;
873
609
  }, Record<string, unknown>> & {
874
610
  slug: "getUserGroupByHandle";
875
611
  };
@@ -886,19 +622,6 @@ export declare const updateUserGroupMembers: import("frogbot").PieceActionDefini
886
622
  [x: string]: unknown;
887
623
  ok: true;
888
624
  }>;
889
- raw: ({ path, method, body, headers, token: tokenKind, }: {
890
- path: string;
891
- method?: string;
892
- body?: BodyInit | Record<string, unknown>;
893
- headers?: HeadersInit;
894
- token?: SlackToken;
895
- }) => Promise<{
896
- status: number;
897
- headers: {
898
- [k: string]: string;
899
- };
900
- body: any;
901
- }>;
902
625
  paginate: ({ path, body, item, token: tokenKind, limit, }: {
903
626
  path: string;
904
627
  body?: Record<string, unknown>;
@@ -908,48 +631,37 @@ export declare const updateUserGroupMembers: import("frogbot").PieceActionDefini
908
631
  }) => Promise<Record<string, unknown>[]>;
909
632
  token: (kind?: SlackToken) => string | undefined;
910
633
  workspaceId: () => Promise<string>;
634
+ authorize: (headers: Headers) => void;
911
635
  }, {
912
636
  [x: string]: unknown;
913
637
  ok: true;
914
638
  }> & {
915
639
  slug: "updateUserGroupMembers";
916
640
  };
917
- export declare const customApiCall: import("frogbot").PieceActionDefinition<z.ZodObject<{
918
- method: z.ZodEnum<{
919
- POST: "POST";
920
- GET: "GET";
921
- PUT: "PUT";
922
- PATCH: "PATCH";
923
- DELETE: "DELETE";
924
- }>;
925
- path: z.ZodString;
926
- headers: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
927
- queryParams: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>>;
928
- body: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
929
- useUserToken: z.ZodDefault<z.ZodBoolean>;
930
- }, z.core.$strip>, z.ZodObject<{
931
- status: z.ZodNumber;
932
- headers: z.ZodRecord<z.ZodString, z.ZodString>;
933
- body: z.ZodUnknown;
934
- }, z.core.$strip>, {
641
+ export declare const customApiCall: import("frogbot/pieces").CustomApiCallAction<{
935
642
  signingSecret?: string | undefined;
936
643
  }, {
937
644
  request: (path: string, body?: Record<string, unknown>, tokenKind?: SlackToken) => Promise<{
938
645
  [x: string]: unknown;
939
646
  ok: true;
940
647
  }>;
941
- raw: ({ path, method, body, headers, token: tokenKind, }: {
648
+ paginate: ({ path, body, item, token: tokenKind, limit, }: {
942
649
  path: string;
943
- method?: string;
944
- body?: BodyInit | Record<string, unknown>;
945
- headers?: HeadersInit;
650
+ body?: Record<string, unknown>;
651
+ item: string;
946
652
  token?: SlackToken;
947
- }) => Promise<{
948
- status: number;
949
- headers: {
950
- [k: string]: string;
951
- };
952
- body: any;
653
+ limit?: number;
654
+ }) => Promise<Record<string, unknown>[]>;
655
+ token: (kind?: SlackToken) => string | undefined;
656
+ workspaceId: () => Promise<string>;
657
+ authorize: (headers: Headers) => void;
658
+ }>;
659
+ export declare const slackActions: (import("frogbot/pieces").CustomApiCallAction<{
660
+ signingSecret?: string | undefined;
661
+ }, {
662
+ request: (path: string, body?: Record<string, unknown>, tokenKind?: SlackToken) => Promise<{
663
+ [x: string]: unknown;
664
+ ok: true;
953
665
  }>;
954
666
  paginate: ({ path, body, item, token: tokenKind, limit, }: {
955
667
  path: string;
@@ -960,14 +672,8 @@ export declare const customApiCall: import("frogbot").PieceActionDefinition<z.Zo
960
672
  }) => Promise<Record<string, unknown>[]>;
961
673
  token: (kind?: SlackToken) => string | undefined;
962
674
  workspaceId: () => Promise<string>;
963
- }, {
964
- status: number;
965
- headers: Record<string, string>;
966
- body: unknown;
967
- }> & {
968
- slug: "customApiCall";
969
- };
970
- export declare const slackActions: ((import("frogbot").PieceActionDefinition<z.ZodObject<{
675
+ authorize: (headers: Headers) => void;
676
+ }> | (import("frogbot").PieceActionDefinition<z.ZodObject<{
971
677
  text: z.ZodString;
972
678
  username: z.ZodOptional<z.ZodString>;
973
679
  profilePicture: z.ZodOptional<z.ZodURL>;
@@ -986,19 +692,6 @@ export declare const slackActions: ((import("frogbot").PieceActionDefinition<z.Z
986
692
  [x: string]: unknown;
987
693
  ok: true;
988
694
  }>;
989
- raw: ({ path, method, body, headers, token: tokenKind, }: {
990
- path: string;
991
- method?: string;
992
- body?: BodyInit | Record<string, unknown>;
993
- headers?: HeadersInit;
994
- token?: SlackToken;
995
- }) => Promise<{
996
- status: number;
997
- headers: {
998
- [k: string]: string;
999
- };
1000
- body: any;
1001
- }>;
1002
695
  paginate: ({ path, body, item, token: tokenKind, limit, }: {
1003
696
  path: string;
1004
697
  body?: Record<string, unknown>;
@@ -1008,6 +701,7 @@ export declare const slackActions: ((import("frogbot").PieceActionDefinition<z.Z
1008
701
  }) => Promise<Record<string, unknown>[]>;
1009
702
  token: (kind?: SlackToken) => string | undefined;
1010
703
  workspaceId: () => Promise<string>;
704
+ authorize: (headers: Headers) => void;
1011
705
  }, {
1012
706
  [x: string]: unknown;
1013
707
  ok: true;
@@ -1039,19 +733,6 @@ export declare const slackActions: ((import("frogbot").PieceActionDefinition<z.Z
1039
733
  [x: string]: unknown;
1040
734
  ok: true;
1041
735
  }>;
1042
- raw: ({ path, method, body, headers, token: tokenKind, }: {
1043
- path: string;
1044
- method?: string;
1045
- body?: BodyInit | Record<string, unknown>;
1046
- headers?: HeadersInit;
1047
- token?: SlackToken;
1048
- }) => Promise<{
1049
- status: number;
1050
- headers: {
1051
- [k: string]: string;
1052
- };
1053
- body: any;
1054
- }>;
1055
736
  paginate: ({ path, body, item, token: tokenKind, limit, }: {
1056
737
  path: string;
1057
738
  body?: Record<string, unknown>;
@@ -1061,6 +742,7 @@ export declare const slackActions: ((import("frogbot").PieceActionDefinition<z.Z
1061
742
  }) => Promise<Record<string, unknown>[]>;
1062
743
  token: (kind?: SlackToken) => string | undefined;
1063
744
  workspaceId: () => Promise<string>;
745
+ authorize: (headers: Headers) => void;
1064
746
  }, {
1065
747
  [x: string]: unknown;
1066
748
  ok: true;
@@ -1080,19 +762,6 @@ export declare const slackActions: ((import("frogbot").PieceActionDefinition<z.Z
1080
762
  [x: string]: unknown;
1081
763
  ok: true;
1082
764
  }>;
1083
- raw: ({ path, method, body, headers, token: tokenKind, }: {
1084
- path: string;
1085
- method?: string;
1086
- body?: BodyInit | Record<string, unknown>;
1087
- headers?: HeadersInit;
1088
- token?: SlackToken;
1089
- }) => Promise<{
1090
- status: number;
1091
- headers: {
1092
- [k: string]: string;
1093
- };
1094
- body: any;
1095
- }>;
1096
765
  paginate: ({ path, body, item, token: tokenKind, limit, }: {
1097
766
  path: string;
1098
767
  body?: Record<string, unknown>;
@@ -1102,6 +771,7 @@ export declare const slackActions: ((import("frogbot").PieceActionDefinition<z.Z
1102
771
  }) => Promise<Record<string, unknown>[]>;
1103
772
  token: (kind?: SlackToken) => string | undefined;
1104
773
  workspaceId: () => Promise<string>;
774
+ authorize: (headers: Headers) => void;
1105
775
  }, {
1106
776
  [x: string]: unknown;
1107
777
  ok: true;
@@ -1124,19 +794,6 @@ export declare const slackActions: ((import("frogbot").PieceActionDefinition<z.Z
1124
794
  [x: string]: unknown;
1125
795
  ok: true;
1126
796
  }>;
1127
- raw: ({ path, method, body, headers, token: tokenKind, }: {
1128
- path: string;
1129
- method?: string;
1130
- body?: BodyInit | Record<string, unknown>;
1131
- headers?: HeadersInit;
1132
- token?: SlackToken;
1133
- }) => Promise<{
1134
- status: number;
1135
- headers: {
1136
- [k: string]: string;
1137
- };
1138
- body: any;
1139
- }>;
1140
797
  paginate: ({ path, body, item, token: tokenKind, limit, }: {
1141
798
  path: string;
1142
799
  body?: Record<string, unknown>;
@@ -1146,6 +803,7 @@ export declare const slackActions: ((import("frogbot").PieceActionDefinition<z.Z
1146
803
  }) => Promise<Record<string, unknown>[]>;
1147
804
  token: (kind?: SlackToken) => string | undefined;
1148
805
  workspaceId: () => Promise<string>;
806
+ authorize: (headers: Headers) => void;
1149
807
  }, {
1150
808
  [x: string]: unknown;
1151
809
  ok: true;
@@ -1160,19 +818,6 @@ export declare const slackActions: ((import("frogbot").PieceActionDefinition<z.Z
1160
818
  [x: string]: unknown;
1161
819
  ok: true;
1162
820
  }>;
1163
- raw: ({ path, method, body, headers, token: tokenKind, }: {
1164
- path: string;
1165
- method?: string;
1166
- body?: BodyInit | Record<string, unknown>;
1167
- headers?: HeadersInit;
1168
- token?: SlackToken;
1169
- }) => Promise<{
1170
- status: number;
1171
- headers: {
1172
- [k: string]: string;
1173
- };
1174
- body: any;
1175
- }>;
1176
821
  paginate: ({ path, body, item, token: tokenKind, limit, }: {
1177
822
  path: string;
1178
823
  body?: Record<string, unknown>;
@@ -1182,6 +827,7 @@ export declare const slackActions: ((import("frogbot").PieceActionDefinition<z.Z
1182
827
  }) => Promise<Record<string, unknown>[]>;
1183
828
  token: (kind?: SlackToken) => string | undefined;
1184
829
  workspaceId: () => Promise<string>;
830
+ authorize: (headers: Headers) => void;
1185
831
  }, Record<string, unknown>> & {
1186
832
  slug: "getFile";
1187
833
  }) | (import("frogbot").PieceActionDefinition<z.ZodObject<{
@@ -1193,19 +839,6 @@ export declare const slackActions: ((import("frogbot").PieceActionDefinition<z.Z
1193
839
  [x: string]: unknown;
1194
840
  ok: true;
1195
841
  }>;
1196
- raw: ({ path, method, body, headers, token: tokenKind, }: {
1197
- path: string;
1198
- method?: string;
1199
- body?: BodyInit | Record<string, unknown>;
1200
- headers?: HeadersInit;
1201
- token?: SlackToken;
1202
- }) => Promise<{
1203
- status: number;
1204
- headers: {
1205
- [k: string]: string;
1206
- };
1207
- body: any;
1208
- }>;
1209
842
  paginate: ({ path, body, item, token: tokenKind, limit, }: {
1210
843
  path: string;
1211
844
  body?: Record<string, unknown>;
@@ -1215,6 +848,7 @@ export declare const slackActions: ((import("frogbot").PieceActionDefinition<z.Z
1215
848
  }) => Promise<Record<string, unknown>[]>;
1216
849
  token: (kind?: SlackToken) => string | undefined;
1217
850
  workspaceId: () => Promise<string>;
851
+ authorize: (headers: Headers) => void;
1218
852
  }, Record<string, unknown>[]> & {
1219
853
  slug: "searchMessages";
1220
854
  }) | (import("frogbot").PieceActionDefinition<z.ZodObject<{
@@ -1228,19 +862,6 @@ export declare const slackActions: ((import("frogbot").PieceActionDefinition<z.Z
1228
862
  [x: string]: unknown;
1229
863
  ok: true;
1230
864
  }>;
1231
- raw: ({ path, method, body, headers, token: tokenKind, }: {
1232
- path: string;
1233
- method?: string;
1234
- body?: BodyInit | Record<string, unknown>;
1235
- headers?: HeadersInit;
1236
- token?: SlackToken;
1237
- }) => Promise<{
1238
- status: number;
1239
- headers: {
1240
- [k: string]: string;
1241
- };
1242
- body: any;
1243
- }>;
1244
865
  paginate: ({ path, body, item, token: tokenKind, limit, }: {
1245
866
  path: string;
1246
867
  body?: Record<string, unknown>;
@@ -1250,6 +871,7 @@ export declare const slackActions: ((import("frogbot").PieceActionDefinition<z.Z
1250
871
  }) => Promise<Record<string, unknown>[]>;
1251
872
  token: (kind?: SlackToken) => string | undefined;
1252
873
  workspaceId: () => Promise<string>;
874
+ authorize: (headers: Headers) => void;
1253
875
  }, {
1254
876
  [x: string]: unknown;
1255
877
  ok: true;
@@ -1264,19 +886,6 @@ export declare const slackActions: ((import("frogbot").PieceActionDefinition<z.Z
1264
886
  [x: string]: unknown;
1265
887
  ok: true;
1266
888
  }>;
1267
- raw: ({ path, method, body, headers, token: tokenKind, }: {
1268
- path: string;
1269
- method?: string;
1270
- body?: BodyInit | Record<string, unknown>;
1271
- headers?: HeadersInit;
1272
- token?: SlackToken;
1273
- }) => Promise<{
1274
- status: number;
1275
- headers: {
1276
- [k: string]: string;
1277
- };
1278
- body: any;
1279
- }>;
1280
889
  paginate: ({ path, body, item, token: tokenKind, limit, }: {
1281
890
  path: string;
1282
891
  body?: Record<string, unknown>;
@@ -1286,6 +895,7 @@ export declare const slackActions: ((import("frogbot").PieceActionDefinition<z.Z
1286
895
  }) => Promise<Record<string, unknown>[]>;
1287
896
  token: (kind?: SlackToken) => string | undefined;
1288
897
  workspaceId: () => Promise<string>;
898
+ authorize: (headers: Headers) => void;
1289
899
  }, Record<string, unknown>> & {
1290
900
  slug: "findUserByHandle";
1291
901
  }) | (import("frogbot").PieceActionDefinition<z.ZodObject<{
@@ -1299,19 +909,6 @@ export declare const slackActions: ((import("frogbot").PieceActionDefinition<z.Z
1299
909
  [x: string]: unknown;
1300
910
  ok: true;
1301
911
  }>;
1302
- raw: ({ path, method, body, headers, token: tokenKind, }: {
1303
- path: string;
1304
- method?: string;
1305
- body?: BodyInit | Record<string, unknown>;
1306
- headers?: HeadersInit;
1307
- token?: SlackToken;
1308
- }) => Promise<{
1309
- status: number;
1310
- headers: {
1311
- [k: string]: string;
1312
- };
1313
- body: any;
1314
- }>;
1315
912
  paginate: ({ path, body, item, token: tokenKind, limit, }: {
1316
913
  path: string;
1317
914
  body?: Record<string, unknown>;
@@ -1321,6 +918,7 @@ export declare const slackActions: ((import("frogbot").PieceActionDefinition<z.Z
1321
918
  }) => Promise<Record<string, unknown>[]>;
1322
919
  token: (kind?: SlackToken) => string | undefined;
1323
920
  workspaceId: () => Promise<string>;
921
+ authorize: (headers: Headers) => void;
1324
922
  }, {
1325
923
  [x: string]: unknown;
1326
924
  ok: true;
@@ -1336,19 +934,6 @@ export declare const slackActions: ((import("frogbot").PieceActionDefinition<z.Z
1336
934
  [x: string]: unknown;
1337
935
  ok: true;
1338
936
  }>;
1339
- raw: ({ path, method, body, headers, token: tokenKind, }: {
1340
- path: string;
1341
- method?: string;
1342
- body?: BodyInit | Record<string, unknown>;
1343
- headers?: HeadersInit;
1344
- token?: SlackToken;
1345
- }) => Promise<{
1346
- status: number;
1347
- headers: {
1348
- [k: string]: string;
1349
- };
1350
- body: any;
1351
- }>;
1352
937
  paginate: ({ path, body, item, token: tokenKind, limit, }: {
1353
938
  path: string;
1354
939
  body?: Record<string, unknown>;
@@ -1358,6 +943,7 @@ export declare const slackActions: ((import("frogbot").PieceActionDefinition<z.Z
1358
943
  }) => Promise<Record<string, unknown>[]>;
1359
944
  token: (kind?: SlackToken) => string | undefined;
1360
945
  workspaceId: () => Promise<string>;
946
+ authorize: (headers: Headers) => void;
1361
947
  }, Record<string, unknown>[]> & {
1362
948
  slug: "listUsers";
1363
949
  }) | (import("frogbot").PieceActionDefinition<z.ZodObject<{
@@ -1374,19 +960,6 @@ export declare const slackActions: ((import("frogbot").PieceActionDefinition<z.Z
1374
960
  [x: string]: unknown;
1375
961
  ok: true;
1376
962
  }>;
1377
- raw: ({ path, method, body, headers, token: tokenKind, }: {
1378
- path: string;
1379
- method?: string;
1380
- body?: BodyInit | Record<string, unknown>;
1381
- headers?: HeadersInit;
1382
- token?: SlackToken;
1383
- }) => Promise<{
1384
- status: number;
1385
- headers: {
1386
- [k: string]: string;
1387
- };
1388
- body: any;
1389
- }>;
1390
963
  paginate: ({ path, body, item, token: tokenKind, limit, }: {
1391
964
  path: string;
1392
965
  body?: Record<string, unknown>;
@@ -1396,6 +969,7 @@ export declare const slackActions: ((import("frogbot").PieceActionDefinition<z.Z
1396
969
  }) => Promise<Record<string, unknown>[]>;
1397
970
  token: (kind?: SlackToken) => string | undefined;
1398
971
  workspaceId: () => Promise<string>;
972
+ authorize: (headers: Headers) => void;
1399
973
  }, {
1400
974
  [x: string]: unknown;
1401
975
  ok: true;
@@ -1413,19 +987,6 @@ export declare const slackActions: ((import("frogbot").PieceActionDefinition<z.Z
1413
987
  [x: string]: unknown;
1414
988
  ok: true;
1415
989
  }>;
1416
- raw: ({ path, method, body, headers, token: tokenKind, }: {
1417
- path: string;
1418
- method?: string;
1419
- body?: BodyInit | Record<string, unknown>;
1420
- headers?: HeadersInit;
1421
- token?: SlackToken;
1422
- }) => Promise<{
1423
- status: number;
1424
- headers: {
1425
- [k: string]: string;
1426
- };
1427
- body: any;
1428
- }>;
1429
990
  paginate: ({ path, body, item, token: tokenKind, limit, }: {
1430
991
  path: string;
1431
992
  body?: Record<string, unknown>;
@@ -1435,6 +996,7 @@ export declare const slackActions: ((import("frogbot").PieceActionDefinition<z.Z
1435
996
  }) => Promise<Record<string, unknown>[]>;
1436
997
  token: (kind?: SlackToken) => string | undefined;
1437
998
  workspaceId: () => Promise<string>;
999
+ authorize: (headers: Headers) => void;
1438
1000
  }, {
1439
1001
  [x: string]: unknown;
1440
1002
  ok: true;
@@ -1452,19 +1014,6 @@ export declare const slackActions: ((import("frogbot").PieceActionDefinition<z.Z
1452
1014
  [x: string]: unknown;
1453
1015
  ok: true;
1454
1016
  }>;
1455
- raw: ({ path, method, body, headers, token: tokenKind, }: {
1456
- path: string;
1457
- method?: string;
1458
- body?: BodyInit | Record<string, unknown>;
1459
- headers?: HeadersInit;
1460
- token?: SlackToken;
1461
- }) => Promise<{
1462
- status: number;
1463
- headers: {
1464
- [k: string]: string;
1465
- };
1466
- body: any;
1467
- }>;
1468
1017
  paginate: ({ path, body, item, token: tokenKind, limit, }: {
1469
1018
  path: string;
1470
1019
  body?: Record<string, unknown>;
@@ -1474,6 +1023,7 @@ export declare const slackActions: ((import("frogbot").PieceActionDefinition<z.Z
1474
1023
  }) => Promise<Record<string, unknown>[]>;
1475
1024
  token: (kind?: SlackToken) => string | undefined;
1476
1025
  workspaceId: () => Promise<string>;
1026
+ authorize: (headers: Headers) => void;
1477
1027
  }, {
1478
1028
  [x: string]: unknown;
1479
1029
  ok: true;
@@ -1493,19 +1043,6 @@ export declare const slackActions: ((import("frogbot").PieceActionDefinition<z.Z
1493
1043
  [x: string]: unknown;
1494
1044
  ok: true;
1495
1045
  }>;
1496
- raw: ({ path, method, body, headers, token: tokenKind, }: {
1497
- path: string;
1498
- method?: string;
1499
- body?: BodyInit | Record<string, unknown>;
1500
- headers?: HeadersInit;
1501
- token?: SlackToken;
1502
- }) => Promise<{
1503
- status: number;
1504
- headers: {
1505
- [k: string]: string;
1506
- };
1507
- body: any;
1508
- }>;
1509
1046
  paginate: ({ path, body, item, token: tokenKind, limit, }: {
1510
1047
  path: string;
1511
1048
  body?: Record<string, unknown>;
@@ -1515,6 +1052,7 @@ export declare const slackActions: ((import("frogbot").PieceActionDefinition<z.Z
1515
1052
  }) => Promise<Record<string, unknown>[]>;
1516
1053
  token: (kind?: SlackToken) => string | undefined;
1517
1054
  workspaceId: () => Promise<string>;
1055
+ authorize: (headers: Headers) => void;
1518
1056
  }, {
1519
1057
  [x: string]: unknown;
1520
1058
  ok: true;
@@ -1533,19 +1071,6 @@ export declare const slackActions: ((import("frogbot").PieceActionDefinition<z.Z
1533
1071
  [x: string]: unknown;
1534
1072
  ok: true;
1535
1073
  }>;
1536
- raw: ({ path, method, body, headers, token: tokenKind, }: {
1537
- path: string;
1538
- method?: string;
1539
- body?: BodyInit | Record<string, unknown>;
1540
- headers?: HeadersInit;
1541
- token?: SlackToken;
1542
- }) => Promise<{
1543
- status: number;
1544
- headers: {
1545
- [k: string]: string;
1546
- };
1547
- body: any;
1548
- }>;
1549
1074
  paginate: ({ path, body, item, token: tokenKind, limit, }: {
1550
1075
  path: string;
1551
1076
  body?: Record<string, unknown>;
@@ -1555,6 +1080,7 @@ export declare const slackActions: ((import("frogbot").PieceActionDefinition<z.Z
1555
1080
  }) => Promise<Record<string, unknown>[]>;
1556
1081
  token: (kind?: SlackToken) => string | undefined;
1557
1082
  workspaceId: () => Promise<string>;
1083
+ authorize: (headers: Headers) => void;
1558
1084
  }, Record<string, unknown>[]> & {
1559
1085
  slug: "getChannelHistory";
1560
1086
  }) | (import("frogbot").PieceActionDefinition<z.ZodObject<{
@@ -1570,19 +1096,6 @@ export declare const slackActions: ((import("frogbot").PieceActionDefinition<z.Z
1570
1096
  [x: string]: unknown;
1571
1097
  ok: true;
1572
1098
  }>;
1573
- raw: ({ path, method, body, headers, token: tokenKind, }: {
1574
- path: string;
1575
- method?: string;
1576
- body?: BodyInit | Record<string, unknown>;
1577
- headers?: HeadersInit;
1578
- token?: SlackToken;
1579
- }) => Promise<{
1580
- status: number;
1581
- headers: {
1582
- [k: string]: string;
1583
- };
1584
- body: any;
1585
- }>;
1586
1099
  paginate: ({ path, body, item, token: tokenKind, limit, }: {
1587
1100
  path: string;
1588
1101
  body?: Record<string, unknown>;
@@ -1592,6 +1105,7 @@ export declare const slackActions: ((import("frogbot").PieceActionDefinition<z.Z
1592
1105
  }) => Promise<Record<string, unknown>[]>;
1593
1106
  token: (kind?: SlackToken) => string | undefined;
1594
1107
  workspaceId: () => Promise<string>;
1108
+ authorize: (headers: Headers) => void;
1595
1109
  }, {
1596
1110
  [x: string]: unknown;
1597
1111
  ok: true;
@@ -1608,19 +1122,6 @@ export declare const slackActions: ((import("frogbot").PieceActionDefinition<z.Z
1608
1122
  [x: string]: unknown;
1609
1123
  ok: true;
1610
1124
  }>;
1611
- raw: ({ path, method, body, headers, token: tokenKind, }: {
1612
- path: string;
1613
- method?: string;
1614
- body?: BodyInit | Record<string, unknown>;
1615
- headers?: HeadersInit;
1616
- token?: SlackToken;
1617
- }) => Promise<{
1618
- status: number;
1619
- headers: {
1620
- [k: string]: string;
1621
- };
1622
- body: any;
1623
- }>;
1624
1125
  paginate: ({ path, body, item, token: tokenKind, limit, }: {
1625
1126
  path: string;
1626
1127
  body?: Record<string, unknown>;
@@ -1630,6 +1131,7 @@ export declare const slackActions: ((import("frogbot").PieceActionDefinition<z.Z
1630
1131
  }) => Promise<Record<string, unknown>[]>;
1631
1132
  token: (kind?: SlackToken) => string | undefined;
1632
1133
  workspaceId: () => Promise<string>;
1134
+ authorize: (headers: Headers) => void;
1633
1135
  }, {
1634
1136
  text: string;
1635
1137
  }> & {
@@ -1644,19 +1146,6 @@ export declare const slackActions: ((import("frogbot").PieceActionDefinition<z.Z
1644
1146
  [x: string]: unknown;
1645
1147
  ok: true;
1646
1148
  }>;
1647
- raw: ({ path, method, body, headers, token: tokenKind, }: {
1648
- path: string;
1649
- method?: string;
1650
- body?: BodyInit | Record<string, unknown>;
1651
- headers?: HeadersInit;
1652
- token?: SlackToken;
1653
- }) => Promise<{
1654
- status: number;
1655
- headers: {
1656
- [k: string]: string;
1657
- };
1658
- body: any;
1659
- }>;
1660
1149
  paginate: ({ path, body, item, token: tokenKind, limit, }: {
1661
1150
  path: string;
1662
1151
  body?: Record<string, unknown>;
@@ -1666,6 +1155,7 @@ export declare const slackActions: ((import("frogbot").PieceActionDefinition<z.Z
1666
1155
  }) => Promise<Record<string, unknown>[]>;
1667
1156
  token: (kind?: SlackToken) => string | undefined;
1668
1157
  workspaceId: () => Promise<string>;
1158
+ authorize: (headers: Headers) => void;
1669
1159
  }, Record<string, unknown>[]> & {
1670
1160
  slug: "listThreadMessages";
1671
1161
  }) | (import("frogbot").PieceActionDefinition<z.ZodObject<{
@@ -1680,19 +1170,6 @@ export declare const slackActions: ((import("frogbot").PieceActionDefinition<z.Z
1680
1170
  [x: string]: unknown;
1681
1171
  ok: true;
1682
1172
  }>;
1683
- raw: ({ path, method, body, headers, token: tokenKind, }: {
1684
- path: string;
1685
- method?: string;
1686
- body?: BodyInit | Record<string, unknown>;
1687
- headers?: HeadersInit;
1688
- token?: SlackToken;
1689
- }) => Promise<{
1690
- status: number;
1691
- headers: {
1692
- [k: string]: string;
1693
- };
1694
- body: any;
1695
- }>;
1696
1173
  paginate: ({ path, body, item, token: tokenKind, limit, }: {
1697
1174
  path: string;
1698
1175
  body?: Record<string, unknown>;
@@ -1702,6 +1179,7 @@ export declare const slackActions: ((import("frogbot").PieceActionDefinition<z.Z
1702
1179
  }) => Promise<Record<string, unknown>[]>;
1703
1180
  token: (kind?: SlackToken) => string | undefined;
1704
1181
  workspaceId: () => Promise<string>;
1182
+ authorize: (headers: Headers) => void;
1705
1183
  }, {
1706
1184
  [x: string]: unknown;
1707
1185
  ok: true;
@@ -1719,19 +1197,6 @@ export declare const slackActions: ((import("frogbot").PieceActionDefinition<z.Z
1719
1197
  [x: string]: unknown;
1720
1198
  ok: true;
1721
1199
  }>;
1722
- raw: ({ path, method, body, headers, token: tokenKind, }: {
1723
- path: string;
1724
- method?: string;
1725
- body?: BodyInit | Record<string, unknown>;
1726
- headers?: HeadersInit;
1727
- token?: SlackToken;
1728
- }) => Promise<{
1729
- status: number;
1730
- headers: {
1731
- [k: string]: string;
1732
- };
1733
- body: any;
1734
- }>;
1735
1200
  paginate: ({ path, body, item, token: tokenKind, limit, }: {
1736
1201
  path: string;
1737
1202
  body?: Record<string, unknown>;
@@ -1741,6 +1206,7 @@ export declare const slackActions: ((import("frogbot").PieceActionDefinition<z.Z
1741
1206
  }) => Promise<Record<string, unknown>[]>;
1742
1207
  token: (kind?: SlackToken) => string | undefined;
1743
1208
  workspaceId: () => Promise<string>;
1209
+ authorize: (headers: Headers) => void;
1744
1210
  }, {
1745
1211
  [x: string]: unknown;
1746
1212
  ok: true;
@@ -1758,19 +1224,6 @@ export declare const slackActions: ((import("frogbot").PieceActionDefinition<z.Z
1758
1224
  [x: string]: unknown;
1759
1225
  ok: true;
1760
1226
  }>;
1761
- raw: ({ path, method, body, headers, token: tokenKind, }: {
1762
- path: string;
1763
- method?: string;
1764
- body?: BodyInit | Record<string, unknown>;
1765
- headers?: HeadersInit;
1766
- token?: SlackToken;
1767
- }) => Promise<{
1768
- status: number;
1769
- headers: {
1770
- [k: string]: string;
1771
- };
1772
- body: any;
1773
- }>;
1774
1227
  paginate: ({ path, body, item, token: tokenKind, limit, }: {
1775
1228
  path: string;
1776
1229
  body?: Record<string, unknown>;
@@ -1780,6 +1233,7 @@ export declare const slackActions: ((import("frogbot").PieceActionDefinition<z.Z
1780
1233
  }) => Promise<Record<string, unknown>[]>;
1781
1234
  token: (kind?: SlackToken) => string | undefined;
1782
1235
  workspaceId: () => Promise<string>;
1236
+ authorize: (headers: Headers) => void;
1783
1237
  }, {
1784
1238
  [x: string]: unknown;
1785
1239
  ok: true;
@@ -1794,19 +1248,6 @@ export declare const slackActions: ((import("frogbot").PieceActionDefinition<z.Z
1794
1248
  [x: string]: unknown;
1795
1249
  ok: true;
1796
1250
  }>;
1797
- raw: ({ path, method, body, headers, token: tokenKind, }: {
1798
- path: string;
1799
- method?: string;
1800
- body?: BodyInit | Record<string, unknown>;
1801
- headers?: HeadersInit;
1802
- token?: SlackToken;
1803
- }) => Promise<{
1804
- status: number;
1805
- headers: {
1806
- [k: string]: string;
1807
- };
1808
- body: any;
1809
- }>;
1810
1251
  paginate: ({ path, body, item, token: tokenKind, limit, }: {
1811
1252
  path: string;
1812
1253
  body?: Record<string, unknown>;
@@ -1816,6 +1257,7 @@ export declare const slackActions: ((import("frogbot").PieceActionDefinition<z.Z
1816
1257
  }) => Promise<Record<string, unknown>[]>;
1817
1258
  token: (kind?: SlackToken) => string | undefined;
1818
1259
  workspaceId: () => Promise<string>;
1260
+ authorize: (headers: Headers) => void;
1819
1261
  }, Record<string, unknown>> & {
1820
1262
  slug: "getUserGroupByHandle";
1821
1263
  }) | (import("frogbot").PieceActionDefinition<z.ZodObject<{
@@ -1831,19 +1273,6 @@ export declare const slackActions: ((import("frogbot").PieceActionDefinition<z.Z
1831
1273
  [x: string]: unknown;
1832
1274
  ok: true;
1833
1275
  }>;
1834
- raw: ({ path, method, body, headers, token: tokenKind, }: {
1835
- path: string;
1836
- method?: string;
1837
- body?: BodyInit | Record<string, unknown>;
1838
- headers?: HeadersInit;
1839
- token?: SlackToken;
1840
- }) => Promise<{
1841
- status: number;
1842
- headers: {
1843
- [k: string]: string;
1844
- };
1845
- body: any;
1846
- }>;
1847
1276
  paginate: ({ path, body, item, token: tokenKind, limit, }: {
1848
1277
  path: string;
1849
1278
  body?: Record<string, unknown>;
@@ -1853,62 +1282,11 @@ export declare const slackActions: ((import("frogbot").PieceActionDefinition<z.Z
1853
1282
  }) => Promise<Record<string, unknown>[]>;
1854
1283
  token: (kind?: SlackToken) => string | undefined;
1855
1284
  workspaceId: () => Promise<string>;
1285
+ authorize: (headers: Headers) => void;
1856
1286
  }, {
1857
1287
  [x: string]: unknown;
1858
1288
  ok: true;
1859
1289
  }> & {
1860
1290
  slug: "updateUserGroupMembers";
1861
- }) | (import("frogbot").PieceActionDefinition<z.ZodObject<{
1862
- method: z.ZodEnum<{
1863
- POST: "POST";
1864
- GET: "GET";
1865
- PUT: "PUT";
1866
- PATCH: "PATCH";
1867
- DELETE: "DELETE";
1868
- }>;
1869
- path: z.ZodString;
1870
- headers: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
1871
- queryParams: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>>;
1872
- body: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1873
- useUserToken: z.ZodDefault<z.ZodBoolean>;
1874
- }, z.core.$strip>, z.ZodObject<{
1875
- status: z.ZodNumber;
1876
- headers: z.ZodRecord<z.ZodString, z.ZodString>;
1877
- body: z.ZodUnknown;
1878
- }, z.core.$strip>, {
1879
- signingSecret?: string | undefined;
1880
- }, {
1881
- request: (path: string, body?: Record<string, unknown>, tokenKind?: SlackToken) => Promise<{
1882
- [x: string]: unknown;
1883
- ok: true;
1884
- }>;
1885
- raw: ({ path, method, body, headers, token: tokenKind, }: {
1886
- path: string;
1887
- method?: string;
1888
- body?: BodyInit | Record<string, unknown>;
1889
- headers?: HeadersInit;
1890
- token?: SlackToken;
1891
- }) => Promise<{
1892
- status: number;
1893
- headers: {
1894
- [k: string]: string;
1895
- };
1896
- body: any;
1897
- }>;
1898
- paginate: ({ path, body, item, token: tokenKind, limit, }: {
1899
- path: string;
1900
- body?: Record<string, unknown>;
1901
- item: string;
1902
- token?: SlackToken;
1903
- limit?: number;
1904
- }) => Promise<Record<string, unknown>[]>;
1905
- token: (kind?: SlackToken) => string | undefined;
1906
- workspaceId: () => Promise<string>;
1907
- }, {
1908
- status: number;
1909
- headers: Record<string, string>;
1910
- body: unknown;
1911
- }> & {
1912
- slug: "customApiCall";
1913
1291
  }))[];
1914
1292
  //# sourceMappingURL=actions.d.ts.map