@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/index.d.ts CHANGED
@@ -24,7 +24,65 @@ export declare const createSlack: import("frogbot").PieceFactory<{
24
24
  readonly oauth: {
25
25
  readonly authorizationUrl: "https://slack.com/oauth/v2/authorize";
26
26
  readonly tokenUrl: "https://slack.com/api/oauth.v2.access";
27
- readonly scopes: string[];
27
+ readonly scopes: {
28
+ readonly catalog: {
29
+ readonly 'app_mentions:read': "app_mentions:read";
30
+ readonly 'assistant:write': "assistant:write";
31
+ readonly 'bookmarks:read': "bookmarks:read";
32
+ readonly 'bookmarks:write': "bookmarks:write";
33
+ readonly 'bots:read': "bots:read";
34
+ readonly 'calls:read': "calls:read";
35
+ readonly 'calls:write': "calls:write";
36
+ readonly 'channels:history': "channels:history";
37
+ readonly 'channels:join': "channels:join";
38
+ readonly 'channels:manage': "channels:manage";
39
+ readonly 'channels:read': "channels:read";
40
+ readonly 'channels:write.invites': "channels:write.invites";
41
+ readonly 'chat:write': "chat:write";
42
+ readonly 'chat:write.customize': "chat:write.customize";
43
+ readonly 'chat:write.public': "chat:write.public";
44
+ readonly commands: "commands";
45
+ readonly 'conversations.connect:manage': "conversations.connect:manage";
46
+ readonly 'conversations.connect:read': "conversations.connect:read";
47
+ readonly 'conversations.connect:write': "conversations.connect:write";
48
+ readonly 'dnd:read': "dnd:read";
49
+ readonly 'emoji:read': "emoji:read";
50
+ readonly 'files:read': "files:read";
51
+ readonly 'files:write': "files:write";
52
+ readonly 'groups:history': "groups:history";
53
+ readonly 'groups:read': "groups:read";
54
+ readonly 'groups:write': "groups:write";
55
+ readonly 'groups:write.invites': "groups:write.invites";
56
+ readonly 'im:history': "im:history";
57
+ readonly 'im:read': "im:read";
58
+ readonly 'im:write': "im:write";
59
+ readonly 'incoming-webhook': "incoming-webhook";
60
+ readonly 'links.embed:write': "links.embed:write";
61
+ readonly 'links:read': "links:read";
62
+ readonly 'links:write': "links:write";
63
+ readonly 'metadata.message:read': "metadata.message:read";
64
+ readonly 'mpim:history': "mpim:history";
65
+ readonly 'mpim:read': "mpim:read";
66
+ readonly 'mpim:write': "mpim:write";
67
+ readonly 'pins:read': "pins:read";
68
+ readonly 'pins:write': "pins:write";
69
+ readonly 'reactions:read': "reactions:read";
70
+ readonly 'reactions:write': "reactions:write";
71
+ readonly 'reminders:read': "reminders:read";
72
+ readonly 'reminders:write': "reminders:write";
73
+ readonly 'remote_files:read': "remote_files:read";
74
+ readonly 'remote_files:share': "remote_files:share";
75
+ readonly 'remote_files:write': "remote_files:write";
76
+ readonly 'team:read': "team:read";
77
+ readonly 'usergroups:read': "usergroups:read";
78
+ readonly 'usergroups:write': "usergroups:write";
79
+ readonly 'users.profile:read': "users.profile:read";
80
+ readonly 'users:read': "users:read";
81
+ readonly 'users:read.email': "users:read.email";
82
+ readonly 'users:write': "users:write";
83
+ };
84
+ readonly defaults: readonly ["channels:history", "channels:join", "channels:manage", "channels:read", "channels:write.invites", "chat:write", "chat:write.customize", "conversations.connect:write", "emoji:read", "files:read", "files:write", "groups:history", "groups:read", "groups:write", "groups:write.invites", "im:history", "im:read", "im:write", "links:read", "links:write", "mpim:history", "mpim:read", "mpim:write", "reactions:read", "reactions:write", "usergroups:read", "usergroups:write", "users.profile:read", "users:read", "users:read.email"];
85
+ };
28
86
  readonly params: {
29
87
  readonly user_scope: "search:read,users.profile:write,reactions:read,reactions:write,im:history,stars:read,channels:write,groups:write,im:write,mpim:write,channels:write.invites,groups:write.invites,channels:history,groups:history,chat:write,users:read,usergroups:write";
30
88
  };
@@ -42,19 +100,6 @@ export declare const createSlack: import("frogbot").PieceFactory<{
42
100
  [x: string]: unknown;
43
101
  ok: true;
44
102
  }>;
45
- raw: ({ path, method, body, headers, token: tokenKind, }: {
46
- path: string;
47
- method?: string;
48
- body?: BodyInit | Record<string, unknown>;
49
- headers?: HeadersInit;
50
- token?: import("./client.js").SlackToken;
51
- }) => Promise<{
52
- status: number;
53
- headers: {
54
- [k: string]: string;
55
- };
56
- body: any;
57
- }>;
58
103
  paginate: ({ path, body, item, token: tokenKind, limit, }: {
59
104
  path: string;
60
105
  body?: Record<string, unknown>;
@@ -64,6 +109,7 @@ export declare const createSlack: import("frogbot").PieceFactory<{
64
109
  }) => Promise<Record<string, unknown>[]>;
65
110
  token: (kind?: import("./client.js").SlackToken) => string | undefined;
66
111
  workspaceId: () => Promise<string>;
112
+ authorize: (headers: Headers) => void;
67
113
  };
68
114
  req: import("frogbot").FrogBotRequest;
69
115
  }) => Promise<import("frogbot").PieceOAuthAccount>;
@@ -100,19 +146,6 @@ export declare const createSlack: import("frogbot").PieceFactory<{
100
146
  [x: string]: unknown;
101
147
  ok: true;
102
148
  }>;
103
- raw: ({ path, method, body, headers, token: tokenKind, }: {
104
- path: string;
105
- method?: string;
106
- body?: BodyInit | Record<string, unknown>;
107
- headers?: HeadersInit;
108
- token?: import("./client.js").SlackToken;
109
- }) => Promise<{
110
- status: number;
111
- headers: {
112
- [k: string]: string;
113
- };
114
- body: any;
115
- }>;
116
149
  paginate: ({ path, body, item, token: tokenKind, limit, }: {
117
150
  path: string;
118
151
  body?: Record<string, unknown>;
@@ -122,6 +155,7 @@ export declare const createSlack: import("frogbot").PieceFactory<{
122
155
  }) => Promise<Record<string, unknown>[]>;
123
156
  token: (kind?: import("./client.js").SlackToken) => string | undefined;
124
157
  workspaceId: () => Promise<string>;
158
+ authorize: (headers: Headers) => void;
125
159
  };
126
160
  req: import("frogbot").FrogBotRequest;
127
161
  }): Promise<(Record<string, unknown> & import("frogbot").TypeWithID) | null>;
@@ -130,19 +164,6 @@ export declare const createSlack: import("frogbot").PieceFactory<{
130
164
  [x: string]: unknown;
131
165
  ok: true;
132
166
  }>;
133
- raw: ({ path, method, body, headers, token: tokenKind, }: {
134
- path: string;
135
- method?: string;
136
- body?: BodyInit | Record<string, unknown>;
137
- headers?: HeadersInit;
138
- token?: import("./client.js").SlackToken;
139
- }) => Promise<{
140
- status: number;
141
- headers: {
142
- [k: string]: string;
143
- };
144
- body: any;
145
- }>;
146
167
  paginate: ({ path, body, item, token: tokenKind, limit, }: {
147
168
  path: string;
148
169
  body?: Record<string, unknown>;
@@ -152,6 +173,7 @@ export declare const createSlack: import("frogbot").PieceFactory<{
152
173
  }) => Promise<Record<string, unknown>[]>;
153
174
  token: (kind?: import("./client.js").SlackToken) => string | undefined;
154
175
  workspaceId: () => Promise<string>;
176
+ authorize: (headers: Headers) => void;
155
177
  }>;
156
178
  };
157
179
  readonly actions: ((import("frogbot").PieceActionDefinition<z.ZodObject<{
@@ -173,19 +195,6 @@ export declare const createSlack: import("frogbot").PieceFactory<{
173
195
  [x: string]: unknown;
174
196
  ok: true;
175
197
  }>;
176
- raw: ({ path, method, body, headers, token: tokenKind, }: {
177
- path: string;
178
- method?: string;
179
- body?: BodyInit | Record<string, unknown>;
180
- headers?: HeadersInit;
181
- token?: import("./client.js").SlackToken;
182
- }) => Promise<{
183
- status: number;
184
- headers: {
185
- [k: string]: string;
186
- };
187
- body: any;
188
- }>;
189
198
  paginate: ({ path, body, item, token: tokenKind, limit, }: {
190
199
  path: string;
191
200
  body?: Record<string, unknown>;
@@ -195,6 +204,7 @@ export declare const createSlack: import("frogbot").PieceFactory<{
195
204
  }) => Promise<Record<string, unknown>[]>;
196
205
  token: (kind?: import("./client.js").SlackToken) => string | undefined;
197
206
  workspaceId: () => Promise<string>;
207
+ authorize: (headers: Headers) => void;
198
208
  }, {
199
209
  [x: string]: unknown;
200
210
  ok: true;
@@ -226,19 +236,6 @@ export declare const createSlack: import("frogbot").PieceFactory<{
226
236
  [x: string]: unknown;
227
237
  ok: true;
228
238
  }>;
229
- raw: ({ path, method, body, headers, token: tokenKind, }: {
230
- path: string;
231
- method?: string;
232
- body?: BodyInit | Record<string, unknown>;
233
- headers?: HeadersInit;
234
- token?: import("./client.js").SlackToken;
235
- }) => Promise<{
236
- status: number;
237
- headers: {
238
- [k: string]: string;
239
- };
240
- body: any;
241
- }>;
242
239
  paginate: ({ path, body, item, token: tokenKind, limit, }: {
243
240
  path: string;
244
241
  body?: Record<string, unknown>;
@@ -248,6 +245,7 @@ export declare const createSlack: import("frogbot").PieceFactory<{
248
245
  }) => Promise<Record<string, unknown>[]>;
249
246
  token: (kind?: import("./client.js").SlackToken) => string | undefined;
250
247
  workspaceId: () => Promise<string>;
248
+ authorize: (headers: Headers) => void;
251
249
  }, {
252
250
  [x: string]: unknown;
253
251
  ok: true;
@@ -267,19 +265,6 @@ export declare const createSlack: import("frogbot").PieceFactory<{
267
265
  [x: string]: unknown;
268
266
  ok: true;
269
267
  }>;
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?: import("./client.js").SlackToken;
276
- }) => Promise<{
277
- status: number;
278
- headers: {
279
- [k: string]: string;
280
- };
281
- body: any;
282
- }>;
283
268
  paginate: ({ path, body, item, token: tokenKind, limit, }: {
284
269
  path: string;
285
270
  body?: Record<string, unknown>;
@@ -289,6 +274,7 @@ export declare const createSlack: import("frogbot").PieceFactory<{
289
274
  }) => Promise<Record<string, unknown>[]>;
290
275
  token: (kind?: import("./client.js").SlackToken) => string | undefined;
291
276
  workspaceId: () => Promise<string>;
277
+ authorize: (headers: Headers) => void;
292
278
  }, {
293
279
  [x: string]: unknown;
294
280
  ok: true;
@@ -311,19 +297,6 @@ export declare const createSlack: import("frogbot").PieceFactory<{
311
297
  [x: string]: unknown;
312
298
  ok: true;
313
299
  }>;
314
- raw: ({ path, method, body, headers, token: tokenKind, }: {
315
- path: string;
316
- method?: string;
317
- body?: BodyInit | Record<string, unknown>;
318
- headers?: HeadersInit;
319
- token?: import("./client.js").SlackToken;
320
- }) => Promise<{
321
- status: number;
322
- headers: {
323
- [k: string]: string;
324
- };
325
- body: any;
326
- }>;
327
300
  paginate: ({ path, body, item, token: tokenKind, limit, }: {
328
301
  path: string;
329
302
  body?: Record<string, unknown>;
@@ -333,6 +306,7 @@ export declare const createSlack: import("frogbot").PieceFactory<{
333
306
  }) => Promise<Record<string, unknown>[]>;
334
307
  token: (kind?: import("./client.js").SlackToken) => string | undefined;
335
308
  workspaceId: () => Promise<string>;
309
+ authorize: (headers: Headers) => void;
336
310
  }, {
337
311
  [x: string]: unknown;
338
312
  ok: true;
@@ -347,19 +321,6 @@ export declare const createSlack: import("frogbot").PieceFactory<{
347
321
  [x: string]: unknown;
348
322
  ok: true;
349
323
  }>;
350
- raw: ({ path, method, body, headers, token: tokenKind, }: {
351
- path: string;
352
- method?: string;
353
- body?: BodyInit | Record<string, unknown>;
354
- headers?: HeadersInit;
355
- token?: import("./client.js").SlackToken;
356
- }) => Promise<{
357
- status: number;
358
- headers: {
359
- [k: string]: string;
360
- };
361
- body: any;
362
- }>;
363
324
  paginate: ({ path, body, item, token: tokenKind, limit, }: {
364
325
  path: string;
365
326
  body?: Record<string, unknown>;
@@ -369,6 +330,7 @@ export declare const createSlack: import("frogbot").PieceFactory<{
369
330
  }) => Promise<Record<string, unknown>[]>;
370
331
  token: (kind?: import("./client.js").SlackToken) => string | undefined;
371
332
  workspaceId: () => Promise<string>;
333
+ authorize: (headers: Headers) => void;
372
334
  }, Record<string, unknown>> & {
373
335
  slug: "getFile";
374
336
  }) | (import("frogbot").PieceActionDefinition<z.ZodObject<{
@@ -380,19 +342,6 @@ export declare const createSlack: import("frogbot").PieceFactory<{
380
342
  [x: string]: unknown;
381
343
  ok: true;
382
344
  }>;
383
- raw: ({ path, method, body, headers, token: tokenKind, }: {
384
- path: string;
385
- method?: string;
386
- body?: BodyInit | Record<string, unknown>;
387
- headers?: HeadersInit;
388
- token?: import("./client.js").SlackToken;
389
- }) => Promise<{
390
- status: number;
391
- headers: {
392
- [k: string]: string;
393
- };
394
- body: any;
395
- }>;
396
345
  paginate: ({ path, body, item, token: tokenKind, limit, }: {
397
346
  path: string;
398
347
  body?: Record<string, unknown>;
@@ -402,6 +351,7 @@ export declare const createSlack: import("frogbot").PieceFactory<{
402
351
  }) => Promise<Record<string, unknown>[]>;
403
352
  token: (kind?: import("./client.js").SlackToken) => string | undefined;
404
353
  workspaceId: () => Promise<string>;
354
+ authorize: (headers: Headers) => void;
405
355
  }, Record<string, unknown>[]> & {
406
356
  slug: "searchMessages";
407
357
  }) | (import("frogbot").PieceActionDefinition<z.ZodObject<{
@@ -415,19 +365,6 @@ export declare const createSlack: import("frogbot").PieceFactory<{
415
365
  [x: string]: unknown;
416
366
  ok: true;
417
367
  }>;
418
- raw: ({ path, method, body, headers, token: tokenKind, }: {
419
- path: string;
420
- method?: string;
421
- body?: BodyInit | Record<string, unknown>;
422
- headers?: HeadersInit;
423
- token?: import("./client.js").SlackToken;
424
- }) => Promise<{
425
- status: number;
426
- headers: {
427
- [k: string]: string;
428
- };
429
- body: any;
430
- }>;
431
368
  paginate: ({ path, body, item, token: tokenKind, limit, }: {
432
369
  path: string;
433
370
  body?: Record<string, unknown>;
@@ -437,6 +374,7 @@ export declare const createSlack: import("frogbot").PieceFactory<{
437
374
  }) => Promise<Record<string, unknown>[]>;
438
375
  token: (kind?: import("./client.js").SlackToken) => string | undefined;
439
376
  workspaceId: () => Promise<string>;
377
+ authorize: (headers: Headers) => void;
440
378
  }, {
441
379
  [x: string]: unknown;
442
380
  ok: true;
@@ -451,19 +389,6 @@ export declare const createSlack: import("frogbot").PieceFactory<{
451
389
  [x: string]: unknown;
452
390
  ok: true;
453
391
  }>;
454
- raw: ({ path, method, body, headers, token: tokenKind, }: {
455
- path: string;
456
- method?: string;
457
- body?: BodyInit | Record<string, unknown>;
458
- headers?: HeadersInit;
459
- token?: import("./client.js").SlackToken;
460
- }) => Promise<{
461
- status: number;
462
- headers: {
463
- [k: string]: string;
464
- };
465
- body: any;
466
- }>;
467
392
  paginate: ({ path, body, item, token: tokenKind, limit, }: {
468
393
  path: string;
469
394
  body?: Record<string, unknown>;
@@ -473,6 +398,7 @@ export declare const createSlack: import("frogbot").PieceFactory<{
473
398
  }) => Promise<Record<string, unknown>[]>;
474
399
  token: (kind?: import("./client.js").SlackToken) => string | undefined;
475
400
  workspaceId: () => Promise<string>;
401
+ authorize: (headers: Headers) => void;
476
402
  }, Record<string, unknown>> & {
477
403
  slug: "findUserByHandle";
478
404
  }) | (import("frogbot").PieceActionDefinition<z.ZodObject<{
@@ -486,19 +412,6 @@ export declare const createSlack: import("frogbot").PieceFactory<{
486
412
  [x: string]: unknown;
487
413
  ok: true;
488
414
  }>;
489
- raw: ({ path, method, body, headers, token: tokenKind, }: {
490
- path: string;
491
- method?: string;
492
- body?: BodyInit | Record<string, unknown>;
493
- headers?: HeadersInit;
494
- token?: import("./client.js").SlackToken;
495
- }) => Promise<{
496
- status: number;
497
- headers: {
498
- [k: string]: string;
499
- };
500
- body: any;
501
- }>;
502
415
  paginate: ({ path, body, item, token: tokenKind, limit, }: {
503
416
  path: string;
504
417
  body?: Record<string, unknown>;
@@ -508,6 +421,7 @@ export declare const createSlack: import("frogbot").PieceFactory<{
508
421
  }) => Promise<Record<string, unknown>[]>;
509
422
  token: (kind?: import("./client.js").SlackToken) => string | undefined;
510
423
  workspaceId: () => Promise<string>;
424
+ authorize: (headers: Headers) => void;
511
425
  }, {
512
426
  [x: string]: unknown;
513
427
  ok: true;
@@ -523,19 +437,6 @@ export declare const createSlack: import("frogbot").PieceFactory<{
523
437
  [x: string]: unknown;
524
438
  ok: true;
525
439
  }>;
526
- raw: ({ path, method, body, headers, token: tokenKind, }: {
527
- path: string;
528
- method?: string;
529
- body?: BodyInit | Record<string, unknown>;
530
- headers?: HeadersInit;
531
- token?: import("./client.js").SlackToken;
532
- }) => Promise<{
533
- status: number;
534
- headers: {
535
- [k: string]: string;
536
- };
537
- body: any;
538
- }>;
539
440
  paginate: ({ path, body, item, token: tokenKind, limit, }: {
540
441
  path: string;
541
442
  body?: Record<string, unknown>;
@@ -545,6 +446,7 @@ export declare const createSlack: import("frogbot").PieceFactory<{
545
446
  }) => Promise<Record<string, unknown>[]>;
546
447
  token: (kind?: import("./client.js").SlackToken) => string | undefined;
547
448
  workspaceId: () => Promise<string>;
449
+ authorize: (headers: Headers) => void;
548
450
  }, Record<string, unknown>[]> & {
549
451
  slug: "listUsers";
550
452
  }) | (import("frogbot").PieceActionDefinition<z.ZodObject<{
@@ -561,19 +463,6 @@ export declare const createSlack: import("frogbot").PieceFactory<{
561
463
  [x: string]: unknown;
562
464
  ok: true;
563
465
  }>;
564
- raw: ({ path, method, body, headers, token: tokenKind, }: {
565
- path: string;
566
- method?: string;
567
- body?: BodyInit | Record<string, unknown>;
568
- headers?: HeadersInit;
569
- token?: import("./client.js").SlackToken;
570
- }) => Promise<{
571
- status: number;
572
- headers: {
573
- [k: string]: string;
574
- };
575
- body: any;
576
- }>;
577
466
  paginate: ({ path, body, item, token: tokenKind, limit, }: {
578
467
  path: string;
579
468
  body?: Record<string, unknown>;
@@ -583,6 +472,7 @@ export declare const createSlack: import("frogbot").PieceFactory<{
583
472
  }) => Promise<Record<string, unknown>[]>;
584
473
  token: (kind?: import("./client.js").SlackToken) => string | undefined;
585
474
  workspaceId: () => Promise<string>;
475
+ authorize: (headers: Headers) => void;
586
476
  }, {
587
477
  [x: string]: unknown;
588
478
  ok: true;
@@ -600,19 +490,6 @@ export declare const createSlack: import("frogbot").PieceFactory<{
600
490
  [x: string]: unknown;
601
491
  ok: true;
602
492
  }>;
603
- raw: ({ path, method, body, headers, token: tokenKind, }: {
604
- path: string;
605
- method?: string;
606
- body?: BodyInit | Record<string, unknown>;
607
- headers?: HeadersInit;
608
- token?: import("./client.js").SlackToken;
609
- }) => Promise<{
610
- status: number;
611
- headers: {
612
- [k: string]: string;
613
- };
614
- body: any;
615
- }>;
616
493
  paginate: ({ path, body, item, token: tokenKind, limit, }: {
617
494
  path: string;
618
495
  body?: Record<string, unknown>;
@@ -622,6 +499,7 @@ export declare const createSlack: import("frogbot").PieceFactory<{
622
499
  }) => Promise<Record<string, unknown>[]>;
623
500
  token: (kind?: import("./client.js").SlackToken) => string | undefined;
624
501
  workspaceId: () => Promise<string>;
502
+ authorize: (headers: Headers) => void;
625
503
  }, {
626
504
  [x: string]: unknown;
627
505
  ok: true;
@@ -639,19 +517,6 @@ export declare const createSlack: import("frogbot").PieceFactory<{
639
517
  [x: string]: unknown;
640
518
  ok: true;
641
519
  }>;
642
- raw: ({ path, method, body, headers, token: tokenKind, }: {
643
- path: string;
644
- method?: string;
645
- body?: BodyInit | Record<string, unknown>;
646
- headers?: HeadersInit;
647
- token?: import("./client.js").SlackToken;
648
- }) => Promise<{
649
- status: number;
650
- headers: {
651
- [k: string]: string;
652
- };
653
- body: any;
654
- }>;
655
520
  paginate: ({ path, body, item, token: tokenKind, limit, }: {
656
521
  path: string;
657
522
  body?: Record<string, unknown>;
@@ -661,6 +526,7 @@ export declare const createSlack: import("frogbot").PieceFactory<{
661
526
  }) => Promise<Record<string, unknown>[]>;
662
527
  token: (kind?: import("./client.js").SlackToken) => string | undefined;
663
528
  workspaceId: () => Promise<string>;
529
+ authorize: (headers: Headers) => void;
664
530
  }, {
665
531
  [x: string]: unknown;
666
532
  ok: true;
@@ -680,19 +546,6 @@ export declare const createSlack: import("frogbot").PieceFactory<{
680
546
  [x: string]: unknown;
681
547
  ok: true;
682
548
  }>;
683
- raw: ({ path, method, body, headers, token: tokenKind, }: {
684
- path: string;
685
- method?: string;
686
- body?: BodyInit | Record<string, unknown>;
687
- headers?: HeadersInit;
688
- token?: import("./client.js").SlackToken;
689
- }) => Promise<{
690
- status: number;
691
- headers: {
692
- [k: string]: string;
693
- };
694
- body: any;
695
- }>;
696
549
  paginate: ({ path, body, item, token: tokenKind, limit, }: {
697
550
  path: string;
698
551
  body?: Record<string, unknown>;
@@ -702,6 +555,7 @@ export declare const createSlack: import("frogbot").PieceFactory<{
702
555
  }) => Promise<Record<string, unknown>[]>;
703
556
  token: (kind?: import("./client.js").SlackToken) => string | undefined;
704
557
  workspaceId: () => Promise<string>;
558
+ authorize: (headers: Headers) => void;
705
559
  }, {
706
560
  [x: string]: unknown;
707
561
  ok: true;
@@ -720,19 +574,6 @@ export declare const createSlack: import("frogbot").PieceFactory<{
720
574
  [x: string]: unknown;
721
575
  ok: true;
722
576
  }>;
723
- raw: ({ path, method, body, headers, token: tokenKind, }: {
724
- path: string;
725
- method?: string;
726
- body?: BodyInit | Record<string, unknown>;
727
- headers?: HeadersInit;
728
- token?: import("./client.js").SlackToken;
729
- }) => Promise<{
730
- status: number;
731
- headers: {
732
- [k: string]: string;
733
- };
734
- body: any;
735
- }>;
736
577
  paginate: ({ path, body, item, token: tokenKind, limit, }: {
737
578
  path: string;
738
579
  body?: Record<string, unknown>;
@@ -742,6 +583,7 @@ export declare const createSlack: import("frogbot").PieceFactory<{
742
583
  }) => Promise<Record<string, unknown>[]>;
743
584
  token: (kind?: import("./client.js").SlackToken) => string | undefined;
744
585
  workspaceId: () => Promise<string>;
586
+ authorize: (headers: Headers) => void;
745
587
  }, Record<string, unknown>[]> & {
746
588
  slug: "getChannelHistory";
747
589
  }) | (import("frogbot").PieceActionDefinition<z.ZodObject<{
@@ -757,19 +599,6 @@ export declare const createSlack: import("frogbot").PieceFactory<{
757
599
  [x: string]: unknown;
758
600
  ok: true;
759
601
  }>;
760
- raw: ({ path, method, body, headers, token: tokenKind, }: {
761
- path: string;
762
- method?: string;
763
- body?: BodyInit | Record<string, unknown>;
764
- headers?: HeadersInit;
765
- token?: import("./client.js").SlackToken;
766
- }) => Promise<{
767
- status: number;
768
- headers: {
769
- [k: string]: string;
770
- };
771
- body: any;
772
- }>;
773
602
  paginate: ({ path, body, item, token: tokenKind, limit, }: {
774
603
  path: string;
775
604
  body?: Record<string, unknown>;
@@ -779,6 +608,7 @@ export declare const createSlack: import("frogbot").PieceFactory<{
779
608
  }) => Promise<Record<string, unknown>[]>;
780
609
  token: (kind?: import("./client.js").SlackToken) => string | undefined;
781
610
  workspaceId: () => Promise<string>;
611
+ authorize: (headers: Headers) => void;
782
612
  }, {
783
613
  [x: string]: unknown;
784
614
  ok: true;
@@ -795,19 +625,6 @@ export declare const createSlack: import("frogbot").PieceFactory<{
795
625
  [x: string]: unknown;
796
626
  ok: true;
797
627
  }>;
798
- raw: ({ path, method, body, headers, token: tokenKind, }: {
799
- path: string;
800
- method?: string;
801
- body?: BodyInit | Record<string, unknown>;
802
- headers?: HeadersInit;
803
- token?: import("./client.js").SlackToken;
804
- }) => Promise<{
805
- status: number;
806
- headers: {
807
- [k: string]: string;
808
- };
809
- body: any;
810
- }>;
811
628
  paginate: ({ path, body, item, token: tokenKind, limit, }: {
812
629
  path: string;
813
630
  body?: Record<string, unknown>;
@@ -817,6 +634,7 @@ export declare const createSlack: import("frogbot").PieceFactory<{
817
634
  }) => Promise<Record<string, unknown>[]>;
818
635
  token: (kind?: import("./client.js").SlackToken) => string | undefined;
819
636
  workspaceId: () => Promise<string>;
637
+ authorize: (headers: Headers) => void;
820
638
  }, {
821
639
  text: string;
822
640
  }> & {
@@ -831,19 +649,6 @@ export declare const createSlack: import("frogbot").PieceFactory<{
831
649
  [x: string]: unknown;
832
650
  ok: true;
833
651
  }>;
834
- raw: ({ path, method, body, headers, token: tokenKind, }: {
835
- path: string;
836
- method?: string;
837
- body?: BodyInit | Record<string, unknown>;
838
- headers?: HeadersInit;
839
- token?: import("./client.js").SlackToken;
840
- }) => Promise<{
841
- status: number;
842
- headers: {
843
- [k: string]: string;
844
- };
845
- body: any;
846
- }>;
847
652
  paginate: ({ path, body, item, token: tokenKind, limit, }: {
848
653
  path: string;
849
654
  body?: Record<string, unknown>;
@@ -853,6 +658,7 @@ export declare const createSlack: import("frogbot").PieceFactory<{
853
658
  }) => Promise<Record<string, unknown>[]>;
854
659
  token: (kind?: import("./client.js").SlackToken) => string | undefined;
855
660
  workspaceId: () => Promise<string>;
661
+ authorize: (headers: Headers) => void;
856
662
  }, Record<string, unknown>[]> & {
857
663
  slug: "listThreadMessages";
858
664
  }) | (import("frogbot").PieceActionDefinition<z.ZodObject<{
@@ -867,19 +673,6 @@ export declare const createSlack: import("frogbot").PieceFactory<{
867
673
  [x: string]: unknown;
868
674
  ok: true;
869
675
  }>;
870
- raw: ({ path, method, body, headers, token: tokenKind, }: {
871
- path: string;
872
- method?: string;
873
- body?: BodyInit | Record<string, unknown>;
874
- headers?: HeadersInit;
875
- token?: import("./client.js").SlackToken;
876
- }) => Promise<{
877
- status: number;
878
- headers: {
879
- [k: string]: string;
880
- };
881
- body: any;
882
- }>;
883
676
  paginate: ({ path, body, item, token: tokenKind, limit, }: {
884
677
  path: string;
885
678
  body?: Record<string, unknown>;
@@ -889,6 +682,7 @@ export declare const createSlack: import("frogbot").PieceFactory<{
889
682
  }) => Promise<Record<string, unknown>[]>;
890
683
  token: (kind?: import("./client.js").SlackToken) => string | undefined;
891
684
  workspaceId: () => Promise<string>;
685
+ authorize: (headers: Headers) => void;
892
686
  }, {
893
687
  [x: string]: unknown;
894
688
  ok: true;
@@ -906,19 +700,6 @@ export declare const createSlack: import("frogbot").PieceFactory<{
906
700
  [x: string]: unknown;
907
701
  ok: true;
908
702
  }>;
909
- raw: ({ path, method, body, headers, token: tokenKind, }: {
910
- path: string;
911
- method?: string;
912
- body?: BodyInit | Record<string, unknown>;
913
- headers?: HeadersInit;
914
- token?: import("./client.js").SlackToken;
915
- }) => Promise<{
916
- status: number;
917
- headers: {
918
- [k: string]: string;
919
- };
920
- body: any;
921
- }>;
922
703
  paginate: ({ path, body, item, token: tokenKind, limit, }: {
923
704
  path: string;
924
705
  body?: Record<string, unknown>;
@@ -928,6 +709,7 @@ export declare const createSlack: import("frogbot").PieceFactory<{
928
709
  }) => Promise<Record<string, unknown>[]>;
929
710
  token: (kind?: import("./client.js").SlackToken) => string | undefined;
930
711
  workspaceId: () => Promise<string>;
712
+ authorize: (headers: Headers) => void;
931
713
  }, {
932
714
  [x: string]: unknown;
933
715
  ok: true;
@@ -945,19 +727,6 @@ export declare const createSlack: import("frogbot").PieceFactory<{
945
727
  [x: string]: unknown;
946
728
  ok: true;
947
729
  }>;
948
- raw: ({ path, method, body, headers, token: tokenKind, }: {
949
- path: string;
950
- method?: string;
951
- body?: BodyInit | Record<string, unknown>;
952
- headers?: HeadersInit;
953
- token?: import("./client.js").SlackToken;
954
- }) => Promise<{
955
- status: number;
956
- headers: {
957
- [k: string]: string;
958
- };
959
- body: any;
960
- }>;
961
730
  paginate: ({ path, body, item, token: tokenKind, limit, }: {
962
731
  path: string;
963
732
  body?: Record<string, unknown>;
@@ -967,6 +736,7 @@ export declare const createSlack: import("frogbot").PieceFactory<{
967
736
  }) => Promise<Record<string, unknown>[]>;
968
737
  token: (kind?: import("./client.js").SlackToken) => string | undefined;
969
738
  workspaceId: () => Promise<string>;
739
+ authorize: (headers: Headers) => void;
970
740
  }, {
971
741
  [x: string]: unknown;
972
742
  ok: true;
@@ -981,19 +751,6 @@ export declare const createSlack: import("frogbot").PieceFactory<{
981
751
  [x: string]: unknown;
982
752
  ok: true;
983
753
  }>;
984
- raw: ({ path, method, body, headers, token: tokenKind, }: {
985
- path: string;
986
- method?: string;
987
- body?: BodyInit | Record<string, unknown>;
988
- headers?: HeadersInit;
989
- token?: import("./client.js").SlackToken;
990
- }) => Promise<{
991
- status: number;
992
- headers: {
993
- [k: string]: string;
994
- };
995
- body: any;
996
- }>;
997
754
  paginate: ({ path, body, item, token: tokenKind, limit, }: {
998
755
  path: string;
999
756
  body?: Record<string, unknown>;
@@ -1003,6 +760,7 @@ export declare const createSlack: import("frogbot").PieceFactory<{
1003
760
  }) => Promise<Record<string, unknown>[]>;
1004
761
  token: (kind?: import("./client.js").SlackToken) => string | undefined;
1005
762
  workspaceId: () => Promise<string>;
763
+ authorize: (headers: Headers) => void;
1006
764
  }, Record<string, unknown>> & {
1007
765
  slug: "getUserGroupByHandle";
1008
766
  }) | (import("frogbot").PieceActionDefinition<z.ZodObject<{
@@ -1018,19 +776,6 @@ export declare const createSlack: import("frogbot").PieceFactory<{
1018
776
  [x: string]: unknown;
1019
777
  ok: true;
1020
778
  }>;
1021
- raw: ({ path, method, body, headers, token: tokenKind, }: {
1022
- path: string;
1023
- method?: string;
1024
- body?: BodyInit | Record<string, unknown>;
1025
- headers?: HeadersInit;
1026
- token?: import("./client.js").SlackToken;
1027
- }) => Promise<{
1028
- status: number;
1029
- headers: {
1030
- [k: string]: string;
1031
- };
1032
- body: any;
1033
- }>;
1034
779
  paginate: ({ path, body, item, token: tokenKind, limit, }: {
1035
780
  path: string;
1036
781
  body?: Record<string, unknown>;
@@ -1040,48 +785,19 @@ export declare const createSlack: import("frogbot").PieceFactory<{
1040
785
  }) => Promise<Record<string, unknown>[]>;
1041
786
  token: (kind?: import("./client.js").SlackToken) => string | undefined;
1042
787
  workspaceId: () => Promise<string>;
788
+ authorize: (headers: Headers) => void;
1043
789
  }, {
1044
790
  [x: string]: unknown;
1045
791
  ok: true;
1046
792
  }> & {
1047
793
  slug: "updateUserGroupMembers";
1048
- }) | (import("frogbot").PieceActionDefinition<z.ZodObject<{
1049
- method: z.ZodEnum<{
1050
- POST: "POST";
1051
- GET: "GET";
1052
- PUT: "PUT";
1053
- PATCH: "PATCH";
1054
- DELETE: "DELETE";
1055
- }>;
1056
- path: z.ZodString;
1057
- headers: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
1058
- queryParams: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>>;
1059
- body: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1060
- useUserToken: z.ZodDefault<z.ZodBoolean>;
1061
- }, z.core.$strip>, z.ZodObject<{
1062
- status: z.ZodNumber;
1063
- headers: z.ZodRecord<z.ZodString, z.ZodString>;
1064
- body: z.ZodUnknown;
1065
- }, z.core.$strip>, {
794
+ }) | import("frogbot/pieces").CustomApiCallAction<{
1066
795
  signingSecret?: string | undefined;
1067
796
  }, {
1068
797
  request: (path: string, body?: Record<string, unknown>, tokenKind?: import("./client.js").SlackToken) => Promise<{
1069
798
  [x: string]: unknown;
1070
799
  ok: true;
1071
800
  }>;
1072
- raw: ({ path, method, body, headers, token: tokenKind, }: {
1073
- path: string;
1074
- method?: string;
1075
- body?: BodyInit | Record<string, unknown>;
1076
- headers?: HeadersInit;
1077
- token?: import("./client.js").SlackToken;
1078
- }) => Promise<{
1079
- status: number;
1080
- headers: {
1081
- [k: string]: string;
1082
- };
1083
- body: any;
1084
- }>;
1085
801
  paginate: ({ path, body, item, token: tokenKind, limit, }: {
1086
802
  path: string;
1087
803
  body?: Record<string, unknown>;
@@ -1091,13 +807,8 @@ export declare const createSlack: import("frogbot").PieceFactory<{
1091
807
  }) => Promise<Record<string, unknown>[]>;
1092
808
  token: (kind?: import("./client.js").SlackToken) => string | undefined;
1093
809
  workspaceId: () => Promise<string>;
1094
- }, {
1095
- status: number;
1096
- headers: Record<string, string>;
1097
- body: unknown;
1098
- }> & {
1099
- slug: "customApiCall";
1100
- }))[];
810
+ authorize: (headers: Headers) => void;
811
+ }>)[];
1101
812
  readonly triggers: (({
1102
813
  slug: string;
1103
814
  label?: string;
@@ -1119,19 +830,6 @@ export declare const createSlack: import("frogbot").PieceFactory<{
1119
830
  [x: string]: unknown;
1120
831
  ok: true;
1121
832
  }>;
1122
- raw: ({ path, method, body, headers, token: tokenKind, }: {
1123
- path: string;
1124
- method?: string;
1125
- body?: BodyInit | Record<string, unknown>;
1126
- headers?: HeadersInit;
1127
- token?: import("./client.js").SlackToken;
1128
- }) => Promise<{
1129
- status: number;
1130
- headers: {
1131
- [k: string]: string;
1132
- };
1133
- body: any;
1134
- }>;
1135
833
  paginate: ({ path, body, item, token: tokenKind, limit, }: {
1136
834
  path: string;
1137
835
  body?: Record<string, unknown>;
@@ -1141,6 +839,7 @@ export declare const createSlack: import("frogbot").PieceFactory<{
1141
839
  }) => Promise<Record<string, unknown>[]>;
1142
840
  token: (kind?: import("./client.js").SlackToken) => string | undefined;
1143
841
  workspaceId: () => Promise<string>;
842
+ authorize: (headers: Headers) => void;
1144
843
  }>): Promise<import("frogbot").TriggerEvent<Record<string, unknown>>[]>;
1145
844
  } & {
1146
845
  slug: "messageCreated";
@@ -1167,19 +866,6 @@ export declare const createSlack: import("frogbot").PieceFactory<{
1167
866
  [x: string]: unknown;
1168
867
  ok: true;
1169
868
  }>;
1170
- raw: ({ path, method, body, headers, token: tokenKind, }: {
1171
- path: string;
1172
- method?: string;
1173
- body?: BodyInit | Record<string, unknown>;
1174
- headers?: HeadersInit;
1175
- token?: import("./client.js").SlackToken;
1176
- }) => Promise<{
1177
- status: number;
1178
- headers: {
1179
- [k: string]: string;
1180
- };
1181
- body: any;
1182
- }>;
1183
869
  paginate: ({ path, body, item, token: tokenKind, limit, }: {
1184
870
  path: string;
1185
871
  body?: Record<string, unknown>;
@@ -1189,6 +875,7 @@ export declare const createSlack: import("frogbot").PieceFactory<{
1189
875
  }) => Promise<Record<string, unknown>[]>;
1190
876
  token: (kind?: import("./client.js").SlackToken) => string | undefined;
1191
877
  workspaceId: () => Promise<string>;
878
+ authorize: (headers: Headers) => void;
1192
879
  }>): Promise<import("frogbot").TriggerEvent<Record<string, unknown>>[]>;
1193
880
  } & {
1194
881
  slug: "channelMessageCreated";
@@ -1215,19 +902,6 @@ export declare const createSlack: import("frogbot").PieceFactory<{
1215
902
  [x: string]: unknown;
1216
903
  ok: true;
1217
904
  }>;
1218
- raw: ({ path, method, body, headers, token: tokenKind, }: {
1219
- path: string;
1220
- method?: string;
1221
- body?: BodyInit | Record<string, unknown>;
1222
- headers?: HeadersInit;
1223
- token?: import("./client.js").SlackToken;
1224
- }) => Promise<{
1225
- status: number;
1226
- headers: {
1227
- [k: string]: string;
1228
- };
1229
- body: any;
1230
- }>;
1231
905
  paginate: ({ path, body, item, token: tokenKind, limit, }: {
1232
906
  path: string;
1233
907
  body?: Record<string, unknown>;
@@ -1237,6 +911,7 @@ export declare const createSlack: import("frogbot").PieceFactory<{
1237
911
  }) => Promise<Record<string, unknown>[]>;
1238
912
  token: (kind?: import("./client.js").SlackToken) => string | undefined;
1239
913
  workspaceId: () => Promise<string>;
914
+ authorize: (headers: Headers) => void;
1240
915
  }>): Promise<import("frogbot").TriggerEvent<Record<string, unknown>>[]>;
1241
916
  } & {
1242
917
  slug: "directMessageCreated";
@@ -1269,19 +944,6 @@ export declare const createSlack: import("frogbot").PieceFactory<{
1269
944
  [x: string]: unknown;
1270
945
  ok: true;
1271
946
  }>;
1272
- raw: ({ path, method, body, headers, token: tokenKind, }: {
1273
- path: string;
1274
- method?: string;
1275
- body?: BodyInit | Record<string, unknown>;
1276
- headers?: HeadersInit;
1277
- token?: import("./client.js").SlackToken;
1278
- }) => Promise<{
1279
- status: number;
1280
- headers: {
1281
- [k: string]: string;
1282
- };
1283
- body: any;
1284
- }>;
1285
947
  paginate: ({ path, body, item, token: tokenKind, limit, }: {
1286
948
  path: string;
1287
949
  body?: Record<string, unknown>;
@@ -1291,6 +953,7 @@ export declare const createSlack: import("frogbot").PieceFactory<{
1291
953
  }) => Promise<Record<string, unknown>[]>;
1292
954
  token: (kind?: import("./client.js").SlackToken) => string | undefined;
1293
955
  workspaceId: () => Promise<string>;
956
+ authorize: (headers: Headers) => void;
1294
957
  }>): Promise<import("frogbot").TriggerEvent<Record<string, unknown>>[]>;
1295
958
  } & {
1296
959
  slug: "channelMentionCreated";
@@ -1319,19 +982,6 @@ export declare const createSlack: import("frogbot").PieceFactory<{
1319
982
  [x: string]: unknown;
1320
983
  ok: true;
1321
984
  }>;
1322
- raw: ({ path, method, body, headers, token: tokenKind, }: {
1323
- path: string;
1324
- method?: string;
1325
- body?: BodyInit | Record<string, unknown>;
1326
- headers?: HeadersInit;
1327
- token?: import("./client.js").SlackToken;
1328
- }) => Promise<{
1329
- status: number;
1330
- headers: {
1331
- [k: string]: string;
1332
- };
1333
- body: any;
1334
- }>;
1335
985
  paginate: ({ path, body, item, token: tokenKind, limit, }: {
1336
986
  path: string;
1337
987
  body?: Record<string, unknown>;
@@ -1341,6 +991,7 @@ export declare const createSlack: import("frogbot").PieceFactory<{
1341
991
  }) => Promise<Record<string, unknown>[]>;
1342
992
  token: (kind?: import("./client.js").SlackToken) => string | undefined;
1343
993
  workspaceId: () => Promise<string>;
994
+ authorize: (headers: Headers) => void;
1344
995
  }>): Promise<import("frogbot").TriggerEvent<Record<string, unknown>>[]>;
1345
996
  } & {
1346
997
  slug: "reactionAdded";
@@ -1369,19 +1020,6 @@ export declare const createSlack: import("frogbot").PieceFactory<{
1369
1020
  [x: string]: unknown;
1370
1021
  ok: true;
1371
1022
  }>;
1372
- raw: ({ path, method, body, headers, token: tokenKind, }: {
1373
- path: string;
1374
- method?: string;
1375
- body?: BodyInit | Record<string, unknown>;
1376
- headers?: HeadersInit;
1377
- token?: import("./client.js").SlackToken;
1378
- }) => Promise<{
1379
- status: number;
1380
- headers: {
1381
- [k: string]: string;
1382
- };
1383
- body: any;
1384
- }>;
1385
1023
  paginate: ({ path, body, item, token: tokenKind, limit, }: {
1386
1024
  path: string;
1387
1025
  body?: Record<string, unknown>;
@@ -1391,6 +1029,7 @@ export declare const createSlack: import("frogbot").PieceFactory<{
1391
1029
  }) => Promise<Record<string, unknown>[]>;
1392
1030
  token: (kind?: import("./client.js").SlackToken) => string | undefined;
1393
1031
  workspaceId: () => Promise<string>;
1032
+ authorize: (headers: Headers) => void;
1394
1033
  }>): Promise<import("frogbot").TriggerEvent<Record<string, unknown>>[]>;
1395
1034
  } & {
1396
1035
  slug: "reactionRemoved";
@@ -1411,19 +1050,6 @@ export declare const createSlack: import("frogbot").PieceFactory<{
1411
1050
  [x: string]: unknown;
1412
1051
  ok: true;
1413
1052
  }>;
1414
- raw: ({ path, method, body, headers, token: tokenKind, }: {
1415
- path: string;
1416
- method?: string;
1417
- body?: BodyInit | Record<string, unknown>;
1418
- headers?: HeadersInit;
1419
- token?: import("./client.js").SlackToken;
1420
- }) => Promise<{
1421
- status: number;
1422
- headers: {
1423
- [k: string]: string;
1424
- };
1425
- body: any;
1426
- }>;
1427
1053
  paginate: ({ path, body, item, token: tokenKind, limit, }: {
1428
1054
  path: string;
1429
1055
  body?: Record<string, unknown>;
@@ -1433,6 +1059,7 @@ export declare const createSlack: import("frogbot").PieceFactory<{
1433
1059
  }) => Promise<Record<string, unknown>[]>;
1434
1060
  token: (kind?: import("./client.js").SlackToken) => string | undefined;
1435
1061
  workspaceId: () => Promise<string>;
1062
+ authorize: (headers: Headers) => void;
1436
1063
  }>): Promise<import("frogbot").TriggerEvent<Record<string, unknown>>[]>;
1437
1064
  } & {
1438
1065
  slug: "channelCreated";
@@ -1463,19 +1090,6 @@ export declare const createSlack: import("frogbot").PieceFactory<{
1463
1090
  [x: string]: unknown;
1464
1091
  ok: true;
1465
1092
  }>;
1466
- raw: ({ path, method, body, headers, token: tokenKind, }: {
1467
- path: string;
1468
- method?: string;
1469
- body?: BodyInit | Record<string, unknown>;
1470
- headers?: HeadersInit;
1471
- token?: import("./client.js").SlackToken;
1472
- }) => Promise<{
1473
- status: number;
1474
- headers: {
1475
- [k: string]: string;
1476
- };
1477
- body: any;
1478
- }>;
1479
1093
  paginate: ({ path, body, item, token: tokenKind, limit, }: {
1480
1094
  path: string;
1481
1095
  body?: Record<string, unknown>;
@@ -1485,6 +1099,7 @@ export declare const createSlack: import("frogbot").PieceFactory<{
1485
1099
  }) => Promise<Record<string, unknown>[]>;
1486
1100
  token: (kind?: import("./client.js").SlackToken) => string | undefined;
1487
1101
  workspaceId: () => Promise<string>;
1102
+ authorize: (headers: Headers) => void;
1488
1103
  }>): Promise<import("frogbot").TriggerEvent<Record<string, unknown>>[]>;
1489
1104
  } & {
1490
1105
  slug: "channelCommandCreated";
@@ -1513,19 +1128,6 @@ export declare const createSlack: import("frogbot").PieceFactory<{
1513
1128
  [x: string]: unknown;
1514
1129
  ok: true;
1515
1130
  }>;
1516
- raw: ({ path, method, body, headers, token: tokenKind, }: {
1517
- path: string;
1518
- method?: string;
1519
- body?: BodyInit | Record<string, unknown>;
1520
- headers?: HeadersInit;
1521
- token?: import("./client.js").SlackToken;
1522
- }) => Promise<{
1523
- status: number;
1524
- headers: {
1525
- [k: string]: string;
1526
- };
1527
- body: any;
1528
- }>;
1529
1131
  paginate: ({ path, body, item, token: tokenKind, limit, }: {
1530
1132
  path: string;
1531
1133
  body?: Record<string, unknown>;
@@ -1535,6 +1137,7 @@ export declare const createSlack: import("frogbot").PieceFactory<{
1535
1137
  }) => Promise<Record<string, unknown>[]>;
1536
1138
  token: (kind?: import("./client.js").SlackToken) => string | undefined;
1537
1139
  workspaceId: () => Promise<string>;
1140
+ authorize: (headers: Headers) => void;
1538
1141
  }>): Promise<import("frogbot").TriggerEvent<Record<string, unknown>>[]>;
1539
1142
  } & {
1540
1143
  slug: "directMentionCreated";
@@ -1565,19 +1168,6 @@ export declare const createSlack: import("frogbot").PieceFactory<{
1565
1168
  [x: string]: unknown;
1566
1169
  ok: true;
1567
1170
  }>;
1568
- raw: ({ path, method, body, headers, token: tokenKind, }: {
1569
- path: string;
1570
- method?: string;
1571
- body?: BodyInit | Record<string, unknown>;
1572
- headers?: HeadersInit;
1573
- token?: import("./client.js").SlackToken;
1574
- }) => Promise<{
1575
- status: number;
1576
- headers: {
1577
- [k: string]: string;
1578
- };
1579
- body: any;
1580
- }>;
1581
1171
  paginate: ({ path, body, item, token: tokenKind, limit, }: {
1582
1172
  path: string;
1583
1173
  body?: Record<string, unknown>;
@@ -1587,6 +1177,7 @@ export declare const createSlack: import("frogbot").PieceFactory<{
1587
1177
  }) => Promise<Record<string, unknown>[]>;
1588
1178
  token: (kind?: import("./client.js").SlackToken) => string | undefined;
1589
1179
  workspaceId: () => Promise<string>;
1180
+ authorize: (headers: Headers) => void;
1590
1181
  }>): Promise<import("frogbot").TriggerEvent<Record<string, unknown>>[]>;
1591
1182
  } & {
1592
1183
  slug: "directCommandCreated";
@@ -1607,19 +1198,6 @@ export declare const createSlack: import("frogbot").PieceFactory<{
1607
1198
  [x: string]: unknown;
1608
1199
  ok: true;
1609
1200
  }>;
1610
- raw: ({ path, method, body, headers, token: tokenKind, }: {
1611
- path: string;
1612
- method?: string;
1613
- body?: BodyInit | Record<string, unknown>;
1614
- headers?: HeadersInit;
1615
- token?: import("./client.js").SlackToken;
1616
- }) => Promise<{
1617
- status: number;
1618
- headers: {
1619
- [k: string]: string;
1620
- };
1621
- body: any;
1622
- }>;
1623
1201
  paginate: ({ path, body, item, token: tokenKind, limit, }: {
1624
1202
  path: string;
1625
1203
  body?: Record<string, unknown>;
@@ -1629,6 +1207,7 @@ export declare const createSlack: import("frogbot").PieceFactory<{
1629
1207
  }) => Promise<Record<string, unknown>[]>;
1630
1208
  token: (kind?: import("./client.js").SlackToken) => string | undefined;
1631
1209
  workspaceId: () => Promise<string>;
1210
+ authorize: (headers: Headers) => void;
1632
1211
  }>): Promise<import("frogbot").TriggerEvent<Record<string, unknown>>[]>;
1633
1212
  } & {
1634
1213
  slug: "userJoined";
@@ -1649,19 +1228,6 @@ export declare const createSlack: import("frogbot").PieceFactory<{
1649
1228
  [x: string]: unknown;
1650
1229
  ok: true;
1651
1230
  }>;
1652
- raw: ({ path, method, body, headers, token: tokenKind, }: {
1653
- path: string;
1654
- method?: string;
1655
- body?: BodyInit | Record<string, unknown>;
1656
- headers?: HeadersInit;
1657
- token?: import("./client.js").SlackToken;
1658
- }) => Promise<{
1659
- status: number;
1660
- headers: {
1661
- [k: string]: string;
1662
- };
1663
- body: any;
1664
- }>;
1665
1231
  paginate: ({ path, body, item, token: tokenKind, limit, }: {
1666
1232
  path: string;
1667
1233
  body?: Record<string, unknown>;
@@ -1671,6 +1237,7 @@ export declare const createSlack: import("frogbot").PieceFactory<{
1671
1237
  }) => Promise<Record<string, unknown>[]>;
1672
1238
  token: (kind?: import("./client.js").SlackToken) => string | undefined;
1673
1239
  workspaceId: () => Promise<string>;
1240
+ authorize: (headers: Headers) => void;
1674
1241
  }>): Promise<import("frogbot").TriggerEvent<Record<string, unknown>>[]>;
1675
1242
  } & {
1676
1243
  slug: "messageSaved";
@@ -1691,19 +1258,6 @@ export declare const createSlack: import("frogbot").PieceFactory<{
1691
1258
  [x: string]: unknown;
1692
1259
  ok: true;
1693
1260
  }>;
1694
- raw: ({ path, method, body, headers, token: tokenKind, }: {
1695
- path: string;
1696
- method?: string;
1697
- body?: BodyInit | Record<string, unknown>;
1698
- headers?: HeadersInit;
1699
- token?: import("./client.js").SlackToken;
1700
- }) => Promise<{
1701
- status: number;
1702
- headers: {
1703
- [k: string]: string;
1704
- };
1705
- body: any;
1706
- }>;
1707
1261
  paginate: ({ path, body, item, token: tokenKind, limit, }: {
1708
1262
  path: string;
1709
1263
  body?: Record<string, unknown>;
@@ -1713,6 +1267,7 @@ export declare const createSlack: import("frogbot").PieceFactory<{
1713
1267
  }) => Promise<Record<string, unknown>[]>;
1714
1268
  token: (kind?: import("./client.js").SlackToken) => string | undefined;
1715
1269
  workspaceId: () => Promise<string>;
1270
+ authorize: (headers: Headers) => void;
1716
1271
  }>): Promise<import("frogbot").TriggerEvent<Record<string, unknown>>[]>;
1717
1272
  } & {
1718
1273
  slug: "customEmojiAdded";
@@ -1740,19 +1295,6 @@ export declare const createSlack: import("frogbot").PieceFactory<{
1740
1295
  [x: string]: unknown;
1741
1296
  ok: true;
1742
1297
  }>;
1743
- raw: ({ path, method, body, headers, token: tokenKind, }: {
1744
- path: string;
1745
- method?: string;
1746
- body?: BodyInit | Record<string, unknown>;
1747
- headers?: HeadersInit;
1748
- token?: import("./client.js").SlackToken;
1749
- }) => Promise<{
1750
- status: number;
1751
- headers: {
1752
- [k: string]: string;
1753
- };
1754
- body: any;
1755
- }>;
1756
1298
  paginate: ({ path, body, item, token: tokenKind, limit, }: {
1757
1299
  path: string;
1758
1300
  body?: Record<string, unknown>;
@@ -1762,6 +1304,7 @@ export declare const createSlack: import("frogbot").PieceFactory<{
1762
1304
  }) => Promise<Record<string, unknown>[]>;
1763
1305
  token: (kind?: import("./client.js").SlackToken) => string | undefined;
1764
1306
  workspaceId: () => Promise<string>;
1307
+ authorize: (headers: Headers) => void;
1765
1308
  }>): Promise<import("frogbot").TriggerEvent<Record<string, unknown>>[]>;
1766
1309
  } & {
1767
1310
  slug: "modalInteraction";