@frogbotai/piece-slack 0.31.0 → 0.33.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,49 +631,20 @@ 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, }: {
942
- path: string;
943
- method?: string;
944
- body?: BodyInit | Record<string, unknown>;
945
- headers?: HeadersInit;
946
- token?: SlackToken;
947
- }) => Promise<{
948
- status: number;
949
- headers: {
950
- [k: string]: string;
951
- };
952
- body: any;
953
- }>;
954
648
  paginate: ({ path, body, item, token: tokenKind, limit, }: {
955
649
  path: string;
956
650
  body?: Record<string, unknown>;
@@ -960,13 +654,8 @@ export declare const customApiCall: import("frogbot").PieceActionDefinition<z.Zo
960
654
  }) => Promise<Record<string, unknown>[]>;
961
655
  token: (kind?: SlackToken) => string | undefined;
962
656
  workspaceId: () => Promise<string>;
963
- }, {
964
- status: number;
965
- headers: Record<string, string>;
966
- body: unknown;
967
- }> & {
968
- slug: "customApiCall";
969
- };
657
+ authorize: (headers: Headers) => void;
658
+ }>;
970
659
  export declare const slackActions: ((import("frogbot").PieceActionDefinition<z.ZodObject<{
971
660
  text: z.ZodString;
972
661
  username: z.ZodOptional<z.ZodString>;
@@ -986,19 +675,6 @@ export declare const slackActions: ((import("frogbot").PieceActionDefinition<z.Z
986
675
  [x: string]: unknown;
987
676
  ok: true;
988
677
  }>;
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
678
  paginate: ({ path, body, item, token: tokenKind, limit, }: {
1003
679
  path: string;
1004
680
  body?: Record<string, unknown>;
@@ -1008,6 +684,7 @@ export declare const slackActions: ((import("frogbot").PieceActionDefinition<z.Z
1008
684
  }) => Promise<Record<string, unknown>[]>;
1009
685
  token: (kind?: SlackToken) => string | undefined;
1010
686
  workspaceId: () => Promise<string>;
687
+ authorize: (headers: Headers) => void;
1011
688
  }, {
1012
689
  [x: string]: unknown;
1013
690
  ok: true;
@@ -1039,19 +716,6 @@ export declare const slackActions: ((import("frogbot").PieceActionDefinition<z.Z
1039
716
  [x: string]: unknown;
1040
717
  ok: true;
1041
718
  }>;
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
719
  paginate: ({ path, body, item, token: tokenKind, limit, }: {
1056
720
  path: string;
1057
721
  body?: Record<string, unknown>;
@@ -1061,6 +725,7 @@ export declare const slackActions: ((import("frogbot").PieceActionDefinition<z.Z
1061
725
  }) => Promise<Record<string, unknown>[]>;
1062
726
  token: (kind?: SlackToken) => string | undefined;
1063
727
  workspaceId: () => Promise<string>;
728
+ authorize: (headers: Headers) => void;
1064
729
  }, {
1065
730
  [x: string]: unknown;
1066
731
  ok: true;
@@ -1080,19 +745,6 @@ export declare const slackActions: ((import("frogbot").PieceActionDefinition<z.Z
1080
745
  [x: string]: unknown;
1081
746
  ok: true;
1082
747
  }>;
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
748
  paginate: ({ path, body, item, token: tokenKind, limit, }: {
1097
749
  path: string;
1098
750
  body?: Record<string, unknown>;
@@ -1102,6 +754,7 @@ export declare const slackActions: ((import("frogbot").PieceActionDefinition<z.Z
1102
754
  }) => Promise<Record<string, unknown>[]>;
1103
755
  token: (kind?: SlackToken) => string | undefined;
1104
756
  workspaceId: () => Promise<string>;
757
+ authorize: (headers: Headers) => void;
1105
758
  }, {
1106
759
  [x: string]: unknown;
1107
760
  ok: true;
@@ -1124,19 +777,6 @@ export declare const slackActions: ((import("frogbot").PieceActionDefinition<z.Z
1124
777
  [x: string]: unknown;
1125
778
  ok: true;
1126
779
  }>;
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
780
  paginate: ({ path, body, item, token: tokenKind, limit, }: {
1141
781
  path: string;
1142
782
  body?: Record<string, unknown>;
@@ -1146,6 +786,7 @@ export declare const slackActions: ((import("frogbot").PieceActionDefinition<z.Z
1146
786
  }) => Promise<Record<string, unknown>[]>;
1147
787
  token: (kind?: SlackToken) => string | undefined;
1148
788
  workspaceId: () => Promise<string>;
789
+ authorize: (headers: Headers) => void;
1149
790
  }, {
1150
791
  [x: string]: unknown;
1151
792
  ok: true;
@@ -1160,19 +801,6 @@ export declare const slackActions: ((import("frogbot").PieceActionDefinition<z.Z
1160
801
  [x: string]: unknown;
1161
802
  ok: true;
1162
803
  }>;
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
804
  paginate: ({ path, body, item, token: tokenKind, limit, }: {
1177
805
  path: string;
1178
806
  body?: Record<string, unknown>;
@@ -1182,6 +810,7 @@ export declare const slackActions: ((import("frogbot").PieceActionDefinition<z.Z
1182
810
  }) => Promise<Record<string, unknown>[]>;
1183
811
  token: (kind?: SlackToken) => string | undefined;
1184
812
  workspaceId: () => Promise<string>;
813
+ authorize: (headers: Headers) => void;
1185
814
  }, Record<string, unknown>> & {
1186
815
  slug: "getFile";
1187
816
  }) | (import("frogbot").PieceActionDefinition<z.ZodObject<{
@@ -1193,19 +822,6 @@ export declare const slackActions: ((import("frogbot").PieceActionDefinition<z.Z
1193
822
  [x: string]: unknown;
1194
823
  ok: true;
1195
824
  }>;
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
825
  paginate: ({ path, body, item, token: tokenKind, limit, }: {
1210
826
  path: string;
1211
827
  body?: Record<string, unknown>;
@@ -1215,6 +831,7 @@ export declare const slackActions: ((import("frogbot").PieceActionDefinition<z.Z
1215
831
  }) => Promise<Record<string, unknown>[]>;
1216
832
  token: (kind?: SlackToken) => string | undefined;
1217
833
  workspaceId: () => Promise<string>;
834
+ authorize: (headers: Headers) => void;
1218
835
  }, Record<string, unknown>[]> & {
1219
836
  slug: "searchMessages";
1220
837
  }) | (import("frogbot").PieceActionDefinition<z.ZodObject<{
@@ -1228,19 +845,6 @@ export declare const slackActions: ((import("frogbot").PieceActionDefinition<z.Z
1228
845
  [x: string]: unknown;
1229
846
  ok: true;
1230
847
  }>;
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
848
  paginate: ({ path, body, item, token: tokenKind, limit, }: {
1245
849
  path: string;
1246
850
  body?: Record<string, unknown>;
@@ -1250,6 +854,7 @@ export declare const slackActions: ((import("frogbot").PieceActionDefinition<z.Z
1250
854
  }) => Promise<Record<string, unknown>[]>;
1251
855
  token: (kind?: SlackToken) => string | undefined;
1252
856
  workspaceId: () => Promise<string>;
857
+ authorize: (headers: Headers) => void;
1253
858
  }, {
1254
859
  [x: string]: unknown;
1255
860
  ok: true;
@@ -1264,19 +869,6 @@ export declare const slackActions: ((import("frogbot").PieceActionDefinition<z.Z
1264
869
  [x: string]: unknown;
1265
870
  ok: true;
1266
871
  }>;
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
872
  paginate: ({ path, body, item, token: tokenKind, limit, }: {
1281
873
  path: string;
1282
874
  body?: Record<string, unknown>;
@@ -1286,6 +878,7 @@ export declare const slackActions: ((import("frogbot").PieceActionDefinition<z.Z
1286
878
  }) => Promise<Record<string, unknown>[]>;
1287
879
  token: (kind?: SlackToken) => string | undefined;
1288
880
  workspaceId: () => Promise<string>;
881
+ authorize: (headers: Headers) => void;
1289
882
  }, Record<string, unknown>> & {
1290
883
  slug: "findUserByHandle";
1291
884
  }) | (import("frogbot").PieceActionDefinition<z.ZodObject<{
@@ -1299,19 +892,6 @@ export declare const slackActions: ((import("frogbot").PieceActionDefinition<z.Z
1299
892
  [x: string]: unknown;
1300
893
  ok: true;
1301
894
  }>;
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
895
  paginate: ({ path, body, item, token: tokenKind, limit, }: {
1316
896
  path: string;
1317
897
  body?: Record<string, unknown>;
@@ -1321,6 +901,7 @@ export declare const slackActions: ((import("frogbot").PieceActionDefinition<z.Z
1321
901
  }) => Promise<Record<string, unknown>[]>;
1322
902
  token: (kind?: SlackToken) => string | undefined;
1323
903
  workspaceId: () => Promise<string>;
904
+ authorize: (headers: Headers) => void;
1324
905
  }, {
1325
906
  [x: string]: unknown;
1326
907
  ok: true;
@@ -1336,19 +917,6 @@ export declare const slackActions: ((import("frogbot").PieceActionDefinition<z.Z
1336
917
  [x: string]: unknown;
1337
918
  ok: true;
1338
919
  }>;
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
920
  paginate: ({ path, body, item, token: tokenKind, limit, }: {
1353
921
  path: string;
1354
922
  body?: Record<string, unknown>;
@@ -1358,6 +926,7 @@ export declare const slackActions: ((import("frogbot").PieceActionDefinition<z.Z
1358
926
  }) => Promise<Record<string, unknown>[]>;
1359
927
  token: (kind?: SlackToken) => string | undefined;
1360
928
  workspaceId: () => Promise<string>;
929
+ authorize: (headers: Headers) => void;
1361
930
  }, Record<string, unknown>[]> & {
1362
931
  slug: "listUsers";
1363
932
  }) | (import("frogbot").PieceActionDefinition<z.ZodObject<{
@@ -1374,19 +943,6 @@ export declare const slackActions: ((import("frogbot").PieceActionDefinition<z.Z
1374
943
  [x: string]: unknown;
1375
944
  ok: true;
1376
945
  }>;
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
946
  paginate: ({ path, body, item, token: tokenKind, limit, }: {
1391
947
  path: string;
1392
948
  body?: Record<string, unknown>;
@@ -1396,6 +952,7 @@ export declare const slackActions: ((import("frogbot").PieceActionDefinition<z.Z
1396
952
  }) => Promise<Record<string, unknown>[]>;
1397
953
  token: (kind?: SlackToken) => string | undefined;
1398
954
  workspaceId: () => Promise<string>;
955
+ authorize: (headers: Headers) => void;
1399
956
  }, {
1400
957
  [x: string]: unknown;
1401
958
  ok: true;
@@ -1413,19 +970,6 @@ export declare const slackActions: ((import("frogbot").PieceActionDefinition<z.Z
1413
970
  [x: string]: unknown;
1414
971
  ok: true;
1415
972
  }>;
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
973
  paginate: ({ path, body, item, token: tokenKind, limit, }: {
1430
974
  path: string;
1431
975
  body?: Record<string, unknown>;
@@ -1435,6 +979,7 @@ export declare const slackActions: ((import("frogbot").PieceActionDefinition<z.Z
1435
979
  }) => Promise<Record<string, unknown>[]>;
1436
980
  token: (kind?: SlackToken) => string | undefined;
1437
981
  workspaceId: () => Promise<string>;
982
+ authorize: (headers: Headers) => void;
1438
983
  }, {
1439
984
  [x: string]: unknown;
1440
985
  ok: true;
@@ -1452,19 +997,6 @@ export declare const slackActions: ((import("frogbot").PieceActionDefinition<z.Z
1452
997
  [x: string]: unknown;
1453
998
  ok: true;
1454
999
  }>;
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
1000
  paginate: ({ path, body, item, token: tokenKind, limit, }: {
1469
1001
  path: string;
1470
1002
  body?: Record<string, unknown>;
@@ -1474,6 +1006,7 @@ export declare const slackActions: ((import("frogbot").PieceActionDefinition<z.Z
1474
1006
  }) => Promise<Record<string, unknown>[]>;
1475
1007
  token: (kind?: SlackToken) => string | undefined;
1476
1008
  workspaceId: () => Promise<string>;
1009
+ authorize: (headers: Headers) => void;
1477
1010
  }, {
1478
1011
  [x: string]: unknown;
1479
1012
  ok: true;
@@ -1493,19 +1026,6 @@ export declare const slackActions: ((import("frogbot").PieceActionDefinition<z.Z
1493
1026
  [x: string]: unknown;
1494
1027
  ok: true;
1495
1028
  }>;
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
1029
  paginate: ({ path, body, item, token: tokenKind, limit, }: {
1510
1030
  path: string;
1511
1031
  body?: Record<string, unknown>;
@@ -1515,6 +1035,7 @@ export declare const slackActions: ((import("frogbot").PieceActionDefinition<z.Z
1515
1035
  }) => Promise<Record<string, unknown>[]>;
1516
1036
  token: (kind?: SlackToken) => string | undefined;
1517
1037
  workspaceId: () => Promise<string>;
1038
+ authorize: (headers: Headers) => void;
1518
1039
  }, {
1519
1040
  [x: string]: unknown;
1520
1041
  ok: true;
@@ -1533,19 +1054,6 @@ export declare const slackActions: ((import("frogbot").PieceActionDefinition<z.Z
1533
1054
  [x: string]: unknown;
1534
1055
  ok: true;
1535
1056
  }>;
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
1057
  paginate: ({ path, body, item, token: tokenKind, limit, }: {
1550
1058
  path: string;
1551
1059
  body?: Record<string, unknown>;
@@ -1555,6 +1063,7 @@ export declare const slackActions: ((import("frogbot").PieceActionDefinition<z.Z
1555
1063
  }) => Promise<Record<string, unknown>[]>;
1556
1064
  token: (kind?: SlackToken) => string | undefined;
1557
1065
  workspaceId: () => Promise<string>;
1066
+ authorize: (headers: Headers) => void;
1558
1067
  }, Record<string, unknown>[]> & {
1559
1068
  slug: "getChannelHistory";
1560
1069
  }) | (import("frogbot").PieceActionDefinition<z.ZodObject<{
@@ -1570,19 +1079,6 @@ export declare const slackActions: ((import("frogbot").PieceActionDefinition<z.Z
1570
1079
  [x: string]: unknown;
1571
1080
  ok: true;
1572
1081
  }>;
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
1082
  paginate: ({ path, body, item, token: tokenKind, limit, }: {
1587
1083
  path: string;
1588
1084
  body?: Record<string, unknown>;
@@ -1592,6 +1088,7 @@ export declare const slackActions: ((import("frogbot").PieceActionDefinition<z.Z
1592
1088
  }) => Promise<Record<string, unknown>[]>;
1593
1089
  token: (kind?: SlackToken) => string | undefined;
1594
1090
  workspaceId: () => Promise<string>;
1091
+ authorize: (headers: Headers) => void;
1595
1092
  }, {
1596
1093
  [x: string]: unknown;
1597
1094
  ok: true;
@@ -1608,19 +1105,6 @@ export declare const slackActions: ((import("frogbot").PieceActionDefinition<z.Z
1608
1105
  [x: string]: unknown;
1609
1106
  ok: true;
1610
1107
  }>;
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
1108
  paginate: ({ path, body, item, token: tokenKind, limit, }: {
1625
1109
  path: string;
1626
1110
  body?: Record<string, unknown>;
@@ -1630,6 +1114,7 @@ export declare const slackActions: ((import("frogbot").PieceActionDefinition<z.Z
1630
1114
  }) => Promise<Record<string, unknown>[]>;
1631
1115
  token: (kind?: SlackToken) => string | undefined;
1632
1116
  workspaceId: () => Promise<string>;
1117
+ authorize: (headers: Headers) => void;
1633
1118
  }, {
1634
1119
  text: string;
1635
1120
  }> & {
@@ -1644,19 +1129,6 @@ export declare const slackActions: ((import("frogbot").PieceActionDefinition<z.Z
1644
1129
  [x: string]: unknown;
1645
1130
  ok: true;
1646
1131
  }>;
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
1132
  paginate: ({ path, body, item, token: tokenKind, limit, }: {
1661
1133
  path: string;
1662
1134
  body?: Record<string, unknown>;
@@ -1666,6 +1138,7 @@ export declare const slackActions: ((import("frogbot").PieceActionDefinition<z.Z
1666
1138
  }) => Promise<Record<string, unknown>[]>;
1667
1139
  token: (kind?: SlackToken) => string | undefined;
1668
1140
  workspaceId: () => Promise<string>;
1141
+ authorize: (headers: Headers) => void;
1669
1142
  }, Record<string, unknown>[]> & {
1670
1143
  slug: "listThreadMessages";
1671
1144
  }) | (import("frogbot").PieceActionDefinition<z.ZodObject<{
@@ -1680,19 +1153,6 @@ export declare const slackActions: ((import("frogbot").PieceActionDefinition<z.Z
1680
1153
  [x: string]: unknown;
1681
1154
  ok: true;
1682
1155
  }>;
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
1156
  paginate: ({ path, body, item, token: tokenKind, limit, }: {
1697
1157
  path: string;
1698
1158
  body?: Record<string, unknown>;
@@ -1702,6 +1162,7 @@ export declare const slackActions: ((import("frogbot").PieceActionDefinition<z.Z
1702
1162
  }) => Promise<Record<string, unknown>[]>;
1703
1163
  token: (kind?: SlackToken) => string | undefined;
1704
1164
  workspaceId: () => Promise<string>;
1165
+ authorize: (headers: Headers) => void;
1705
1166
  }, {
1706
1167
  [x: string]: unknown;
1707
1168
  ok: true;
@@ -1719,19 +1180,6 @@ export declare const slackActions: ((import("frogbot").PieceActionDefinition<z.Z
1719
1180
  [x: string]: unknown;
1720
1181
  ok: true;
1721
1182
  }>;
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
1183
  paginate: ({ path, body, item, token: tokenKind, limit, }: {
1736
1184
  path: string;
1737
1185
  body?: Record<string, unknown>;
@@ -1741,6 +1189,7 @@ export declare const slackActions: ((import("frogbot").PieceActionDefinition<z.Z
1741
1189
  }) => Promise<Record<string, unknown>[]>;
1742
1190
  token: (kind?: SlackToken) => string | undefined;
1743
1191
  workspaceId: () => Promise<string>;
1192
+ authorize: (headers: Headers) => void;
1744
1193
  }, {
1745
1194
  [x: string]: unknown;
1746
1195
  ok: true;
@@ -1758,19 +1207,6 @@ export declare const slackActions: ((import("frogbot").PieceActionDefinition<z.Z
1758
1207
  [x: string]: unknown;
1759
1208
  ok: true;
1760
1209
  }>;
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
1210
  paginate: ({ path, body, item, token: tokenKind, limit, }: {
1775
1211
  path: string;
1776
1212
  body?: Record<string, unknown>;
@@ -1780,6 +1216,7 @@ export declare const slackActions: ((import("frogbot").PieceActionDefinition<z.Z
1780
1216
  }) => Promise<Record<string, unknown>[]>;
1781
1217
  token: (kind?: SlackToken) => string | undefined;
1782
1218
  workspaceId: () => Promise<string>;
1219
+ authorize: (headers: Headers) => void;
1783
1220
  }, {
1784
1221
  [x: string]: unknown;
1785
1222
  ok: true;
@@ -1794,19 +1231,6 @@ export declare const slackActions: ((import("frogbot").PieceActionDefinition<z.Z
1794
1231
  [x: string]: unknown;
1795
1232
  ok: true;
1796
1233
  }>;
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
1234
  paginate: ({ path, body, item, token: tokenKind, limit, }: {
1811
1235
  path: string;
1812
1236
  body?: Record<string, unknown>;
@@ -1816,6 +1240,7 @@ export declare const slackActions: ((import("frogbot").PieceActionDefinition<z.Z
1816
1240
  }) => Promise<Record<string, unknown>[]>;
1817
1241
  token: (kind?: SlackToken) => string | undefined;
1818
1242
  workspaceId: () => Promise<string>;
1243
+ authorize: (headers: Headers) => void;
1819
1244
  }, Record<string, unknown>> & {
1820
1245
  slug: "getUserGroupByHandle";
1821
1246
  }) | (import("frogbot").PieceActionDefinition<z.ZodObject<{
@@ -1831,19 +1256,6 @@ export declare const slackActions: ((import("frogbot").PieceActionDefinition<z.Z
1831
1256
  [x: string]: unknown;
1832
1257
  ok: true;
1833
1258
  }>;
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
1259
  paginate: ({ path, body, item, token: tokenKind, limit, }: {
1848
1260
  path: string;
1849
1261
  body?: Record<string, unknown>;
@@ -1853,48 +1265,19 @@ export declare const slackActions: ((import("frogbot").PieceActionDefinition<z.Z
1853
1265
  }) => Promise<Record<string, unknown>[]>;
1854
1266
  token: (kind?: SlackToken) => string | undefined;
1855
1267
  workspaceId: () => Promise<string>;
1268
+ authorize: (headers: Headers) => void;
1856
1269
  }, {
1857
1270
  [x: string]: unknown;
1858
1271
  ok: true;
1859
1272
  }> & {
1860
1273
  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>, {
1274
+ }) | import("frogbot/pieces").CustomApiCallAction<{
1879
1275
  signingSecret?: string | undefined;
1880
1276
  }, {
1881
1277
  request: (path: string, body?: Record<string, unknown>, tokenKind?: SlackToken) => Promise<{
1882
1278
  [x: string]: unknown;
1883
1279
  ok: true;
1884
1280
  }>;
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
1281
  paginate: ({ path, body, item, token: tokenKind, limit, }: {
1899
1282
  path: string;
1900
1283
  body?: Record<string, unknown>;
@@ -1904,11 +1287,6 @@ export declare const slackActions: ((import("frogbot").PieceActionDefinition<z.Z
1904
1287
  }) => Promise<Record<string, unknown>[]>;
1905
1288
  token: (kind?: SlackToken) => string | undefined;
1906
1289
  workspaceId: () => Promise<string>;
1907
- }, {
1908
- status: number;
1909
- headers: Record<string, string>;
1910
- body: unknown;
1911
- }> & {
1912
- slug: "customApiCall";
1913
- }))[];
1290
+ authorize: (headers: Headers) => void;
1291
+ }>)[];
1914
1292
  //# sourceMappingURL=actions.d.ts.map