@frogbotai/piece-slack 0.31.0 → 0.32.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -20,19 +20,6 @@ export declare const messageCreated: {
20
20
  [x: string]: unknown;
21
21
  ok: true;
22
22
  }>;
23
- raw: ({ path, method, body, headers, token: tokenKind, }: {
24
- path: string;
25
- method?: string;
26
- body?: BodyInit | Record<string, unknown>;
27
- headers?: HeadersInit;
28
- token?: import("./client.js").SlackToken;
29
- }) => Promise<{
30
- status: number;
31
- headers: {
32
- [k: string]: string;
33
- };
34
- body: any;
35
- }>;
36
23
  paginate: ({ path, body, item, token: tokenKind, limit, }: {
37
24
  path: string;
38
25
  body?: Record<string, unknown>;
@@ -42,6 +29,7 @@ export declare const messageCreated: {
42
29
  }) => Promise<Record<string, unknown>[]>;
43
30
  token: (kind?: import("./client.js").SlackToken) => string | undefined;
44
31
  workspaceId: () => Promise<string>;
32
+ authorize: (headers: Headers) => void;
45
33
  }>): Promise<import("frogbot").TriggerEvent<Record<string, unknown>>[]>;
46
34
  } & {
47
35
  slug: "messageCreated";
@@ -69,19 +57,6 @@ export declare const channelMessageCreated: {
69
57
  [x: string]: unknown;
70
58
  ok: true;
71
59
  }>;
72
- raw: ({ path, method, body, headers, token: tokenKind, }: {
73
- path: string;
74
- method?: string;
75
- body?: BodyInit | Record<string, unknown>;
76
- headers?: HeadersInit;
77
- token?: import("./client.js").SlackToken;
78
- }) => Promise<{
79
- status: number;
80
- headers: {
81
- [k: string]: string;
82
- };
83
- body: any;
84
- }>;
85
60
  paginate: ({ path, body, item, token: tokenKind, limit, }: {
86
61
  path: string;
87
62
  body?: Record<string, unknown>;
@@ -91,6 +66,7 @@ export declare const channelMessageCreated: {
91
66
  }) => Promise<Record<string, unknown>[]>;
92
67
  token: (kind?: import("./client.js").SlackToken) => string | undefined;
93
68
  workspaceId: () => Promise<string>;
69
+ authorize: (headers: Headers) => void;
94
70
  }>): Promise<import("frogbot").TriggerEvent<Record<string, unknown>>[]>;
95
71
  } & {
96
72
  slug: "channelMessageCreated";
@@ -118,19 +94,6 @@ export declare const directMessageCreated: {
118
94
  [x: string]: unknown;
119
95
  ok: true;
120
96
  }>;
121
- raw: ({ path, method, body, headers, token: tokenKind, }: {
122
- path: string;
123
- method?: string;
124
- body?: BodyInit | Record<string, unknown>;
125
- headers?: HeadersInit;
126
- token?: import("./client.js").SlackToken;
127
- }) => Promise<{
128
- status: number;
129
- headers: {
130
- [k: string]: string;
131
- };
132
- body: any;
133
- }>;
134
97
  paginate: ({ path, body, item, token: tokenKind, limit, }: {
135
98
  path: string;
136
99
  body?: Record<string, unknown>;
@@ -140,6 +103,7 @@ export declare const directMessageCreated: {
140
103
  }) => Promise<Record<string, unknown>[]>;
141
104
  token: (kind?: import("./client.js").SlackToken) => string | undefined;
142
105
  workspaceId: () => Promise<string>;
106
+ authorize: (headers: Headers) => void;
143
107
  }>): Promise<import("frogbot").TriggerEvent<Record<string, unknown>>[]>;
144
108
  } & {
145
109
  slug: "directMessageCreated";
@@ -173,19 +137,6 @@ export declare const channelMentionCreated: {
173
137
  [x: string]: unknown;
174
138
  ok: true;
175
139
  }>;
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
140
  paginate: ({ path, body, item, token: tokenKind, limit, }: {
190
141
  path: string;
191
142
  body?: Record<string, unknown>;
@@ -195,6 +146,7 @@ export declare const channelMentionCreated: {
195
146
  }) => Promise<Record<string, unknown>[]>;
196
147
  token: (kind?: import("./client.js").SlackToken) => string | undefined;
197
148
  workspaceId: () => Promise<string>;
149
+ authorize: (headers: Headers) => void;
198
150
  }>): Promise<import("frogbot").TriggerEvent<Record<string, unknown>>[]>;
199
151
  } & {
200
152
  slug: "channelMentionCreated";
@@ -224,19 +176,6 @@ export declare const reactionAdded: {
224
176
  [x: string]: unknown;
225
177
  ok: true;
226
178
  }>;
227
- raw: ({ path, method, body, headers, token: tokenKind, }: {
228
- path: string;
229
- method?: string;
230
- body?: BodyInit | Record<string, unknown>;
231
- headers?: HeadersInit;
232
- token?: import("./client.js").SlackToken;
233
- }) => Promise<{
234
- status: number;
235
- headers: {
236
- [k: string]: string;
237
- };
238
- body: any;
239
- }>;
240
179
  paginate: ({ path, body, item, token: tokenKind, limit, }: {
241
180
  path: string;
242
181
  body?: Record<string, unknown>;
@@ -246,6 +185,7 @@ export declare const reactionAdded: {
246
185
  }) => Promise<Record<string, unknown>[]>;
247
186
  token: (kind?: import("./client.js").SlackToken) => string | undefined;
248
187
  workspaceId: () => Promise<string>;
188
+ authorize: (headers: Headers) => void;
249
189
  }>): Promise<import("frogbot").TriggerEvent<Record<string, unknown>>[]>;
250
190
  } & {
251
191
  slug: "reactionAdded";
@@ -275,19 +215,6 @@ export declare const reactionRemoved: {
275
215
  [x: string]: unknown;
276
216
  ok: true;
277
217
  }>;
278
- raw: ({ path, method, body, headers, token: tokenKind, }: {
279
- path: string;
280
- method?: string;
281
- body?: BodyInit | Record<string, unknown>;
282
- headers?: HeadersInit;
283
- token?: import("./client.js").SlackToken;
284
- }) => Promise<{
285
- status: number;
286
- headers: {
287
- [k: string]: string;
288
- };
289
- body: any;
290
- }>;
291
218
  paginate: ({ path, body, item, token: tokenKind, limit, }: {
292
219
  path: string;
293
220
  body?: Record<string, unknown>;
@@ -297,6 +224,7 @@ export declare const reactionRemoved: {
297
224
  }) => Promise<Record<string, unknown>[]>;
298
225
  token: (kind?: import("./client.js").SlackToken) => string | undefined;
299
226
  workspaceId: () => Promise<string>;
227
+ authorize: (headers: Headers) => void;
300
228
  }>): Promise<import("frogbot").TriggerEvent<Record<string, unknown>>[]>;
301
229
  } & {
302
230
  slug: "reactionRemoved";
@@ -318,19 +246,6 @@ export declare const channelCreated: {
318
246
  [x: string]: unknown;
319
247
  ok: true;
320
248
  }>;
321
- raw: ({ path, method, body, headers, token: tokenKind, }: {
322
- path: string;
323
- method?: string;
324
- body?: BodyInit | Record<string, unknown>;
325
- headers?: HeadersInit;
326
- token?: import("./client.js").SlackToken;
327
- }) => Promise<{
328
- status: number;
329
- headers: {
330
- [k: string]: string;
331
- };
332
- body: any;
333
- }>;
334
249
  paginate: ({ path, body, item, token: tokenKind, limit, }: {
335
250
  path: string;
336
251
  body?: Record<string, unknown>;
@@ -340,6 +255,7 @@ export declare const channelCreated: {
340
255
  }) => Promise<Record<string, unknown>[]>;
341
256
  token: (kind?: import("./client.js").SlackToken) => string | undefined;
342
257
  workspaceId: () => Promise<string>;
258
+ authorize: (headers: Headers) => void;
343
259
  }>): Promise<import("frogbot").TriggerEvent<Record<string, unknown>>[]>;
344
260
  } & {
345
261
  slug: "channelCreated";
@@ -371,19 +287,6 @@ export declare const channelCommandCreated: {
371
287
  [x: string]: unknown;
372
288
  ok: true;
373
289
  }>;
374
- raw: ({ path, method, body, headers, token: tokenKind, }: {
375
- path: string;
376
- method?: string;
377
- body?: BodyInit | Record<string, unknown>;
378
- headers?: HeadersInit;
379
- token?: import("./client.js").SlackToken;
380
- }) => Promise<{
381
- status: number;
382
- headers: {
383
- [k: string]: string;
384
- };
385
- body: any;
386
- }>;
387
290
  paginate: ({ path, body, item, token: tokenKind, limit, }: {
388
291
  path: string;
389
292
  body?: Record<string, unknown>;
@@ -393,6 +296,7 @@ export declare const channelCommandCreated: {
393
296
  }) => Promise<Record<string, unknown>[]>;
394
297
  token: (kind?: import("./client.js").SlackToken) => string | undefined;
395
298
  workspaceId: () => Promise<string>;
299
+ authorize: (headers: Headers) => void;
396
300
  }>): Promise<import("frogbot").TriggerEvent<Record<string, unknown>>[]>;
397
301
  } & {
398
302
  slug: "channelCommandCreated";
@@ -422,19 +326,6 @@ export declare const directMentionCreated: {
422
326
  [x: string]: unknown;
423
327
  ok: true;
424
328
  }>;
425
- raw: ({ path, method, body, headers, token: tokenKind, }: {
426
- path: string;
427
- method?: string;
428
- body?: BodyInit | Record<string, unknown>;
429
- headers?: HeadersInit;
430
- token?: import("./client.js").SlackToken;
431
- }) => Promise<{
432
- status: number;
433
- headers: {
434
- [k: string]: string;
435
- };
436
- body: any;
437
- }>;
438
329
  paginate: ({ path, body, item, token: tokenKind, limit, }: {
439
330
  path: string;
440
331
  body?: Record<string, unknown>;
@@ -444,6 +335,7 @@ export declare const directMentionCreated: {
444
335
  }) => Promise<Record<string, unknown>[]>;
445
336
  token: (kind?: import("./client.js").SlackToken) => string | undefined;
446
337
  workspaceId: () => Promise<string>;
338
+ authorize: (headers: Headers) => void;
447
339
  }>): Promise<import("frogbot").TriggerEvent<Record<string, unknown>>[]>;
448
340
  } & {
449
341
  slug: "directMentionCreated";
@@ -453,9 +345,9 @@ export declare const directCommandCreated: {
453
345
  label?: string;
454
346
  description: string;
455
347
  input: z.ZodObject<{
348
+ commands: z.ZodDefault<z.ZodArray<z.ZodString>>;
456
349
  user: z.ZodString;
457
350
  ignoreBots: z.ZodDefault<z.ZodBoolean>;
458
- commands: z.ZodDefault<z.ZodArray<z.ZodString>>;
459
351
  ignoreSelfMessages: z.ZodDefault<z.ZodBoolean>;
460
352
  }, z.core.$strip>;
461
353
  output?: z.ZodRecord<z.ZodString, z.ZodUnknown> | undefined;
@@ -464,9 +356,9 @@ export declare const directCommandCreated: {
464
356
  type: "app";
465
357
  event: string;
466
358
  run(args: import("frogbot").PieceRunArgs<{
359
+ commands: string[];
467
360
  user: string;
468
361
  ignoreBots: boolean;
469
- commands: string[];
470
362
  ignoreSelfMessages: boolean;
471
363
  }, {
472
364
  signingSecret?: string | undefined;
@@ -475,19 +367,6 @@ export declare const directCommandCreated: {
475
367
  [x: string]: unknown;
476
368
  ok: true;
477
369
  }>;
478
- raw: ({ path, method, body, headers, token: tokenKind, }: {
479
- path: string;
480
- method?: string;
481
- body?: BodyInit | Record<string, unknown>;
482
- headers?: HeadersInit;
483
- token?: import("./client.js").SlackToken;
484
- }) => Promise<{
485
- status: number;
486
- headers: {
487
- [k: string]: string;
488
- };
489
- body: any;
490
- }>;
491
370
  paginate: ({ path, body, item, token: tokenKind, limit, }: {
492
371
  path: string;
493
372
  body?: Record<string, unknown>;
@@ -497,6 +376,7 @@ export declare const directCommandCreated: {
497
376
  }) => Promise<Record<string, unknown>[]>;
498
377
  token: (kind?: import("./client.js").SlackToken) => string | undefined;
499
378
  workspaceId: () => Promise<string>;
379
+ authorize: (headers: Headers) => void;
500
380
  }>): Promise<import("frogbot").TriggerEvent<Record<string, unknown>>[]>;
501
381
  } & {
502
382
  slug: "directCommandCreated";
@@ -518,19 +398,6 @@ export declare const userJoined: {
518
398
  [x: string]: unknown;
519
399
  ok: true;
520
400
  }>;
521
- raw: ({ path, method, body, headers, token: tokenKind, }: {
522
- path: string;
523
- method?: string;
524
- body?: BodyInit | Record<string, unknown>;
525
- headers?: HeadersInit;
526
- token?: import("./client.js").SlackToken;
527
- }) => Promise<{
528
- status: number;
529
- headers: {
530
- [k: string]: string;
531
- };
532
- body: any;
533
- }>;
534
401
  paginate: ({ path, body, item, token: tokenKind, limit, }: {
535
402
  path: string;
536
403
  body?: Record<string, unknown>;
@@ -540,6 +407,7 @@ export declare const userJoined: {
540
407
  }) => Promise<Record<string, unknown>[]>;
541
408
  token: (kind?: import("./client.js").SlackToken) => string | undefined;
542
409
  workspaceId: () => Promise<string>;
410
+ authorize: (headers: Headers) => void;
543
411
  }>): Promise<import("frogbot").TriggerEvent<Record<string, unknown>>[]>;
544
412
  } & {
545
413
  slug: "userJoined";
@@ -561,19 +429,6 @@ export declare const messageSaved: {
561
429
  [x: string]: unknown;
562
430
  ok: true;
563
431
  }>;
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
432
  paginate: ({ path, body, item, token: tokenKind, limit, }: {
578
433
  path: string;
579
434
  body?: Record<string, unknown>;
@@ -583,6 +438,7 @@ export declare const messageSaved: {
583
438
  }) => Promise<Record<string, unknown>[]>;
584
439
  token: (kind?: import("./client.js").SlackToken) => string | undefined;
585
440
  workspaceId: () => Promise<string>;
441
+ authorize: (headers: Headers) => void;
586
442
  }>): Promise<import("frogbot").TriggerEvent<Record<string, unknown>>[]>;
587
443
  } & {
588
444
  slug: "messageSaved";
@@ -604,19 +460,6 @@ export declare const customEmojiAdded: {
604
460
  [x: string]: unknown;
605
461
  ok: true;
606
462
  }>;
607
- raw: ({ path, method, body, headers, token: tokenKind, }: {
608
- path: string;
609
- method?: string;
610
- body?: BodyInit | Record<string, unknown>;
611
- headers?: HeadersInit;
612
- token?: import("./client.js").SlackToken;
613
- }) => Promise<{
614
- status: number;
615
- headers: {
616
- [k: string]: string;
617
- };
618
- body: any;
619
- }>;
620
463
  paginate: ({ path, body, item, token: tokenKind, limit, }: {
621
464
  path: string;
622
465
  body?: Record<string, unknown>;
@@ -626,6 +469,7 @@ export declare const customEmojiAdded: {
626
469
  }) => Promise<Record<string, unknown>[]>;
627
470
  token: (kind?: import("./client.js").SlackToken) => string | undefined;
628
471
  workspaceId: () => Promise<string>;
472
+ authorize: (headers: Headers) => void;
629
473
  }>): Promise<import("frogbot").TriggerEvent<Record<string, unknown>>[]>;
630
474
  } & {
631
475
  slug: "customEmojiAdded";
@@ -654,19 +498,6 @@ export declare const modalInteraction: {
654
498
  [x: string]: unknown;
655
499
  ok: true;
656
500
  }>;
657
- raw: ({ path, method, body, headers, token: tokenKind, }: {
658
- path: string;
659
- method?: string;
660
- body?: BodyInit | Record<string, unknown>;
661
- headers?: HeadersInit;
662
- token?: import("./client.js").SlackToken;
663
- }) => Promise<{
664
- status: number;
665
- headers: {
666
- [k: string]: string;
667
- };
668
- body: any;
669
- }>;
670
501
  paginate: ({ path, body, item, token: tokenKind, limit, }: {
671
502
  path: string;
672
503
  body?: Record<string, unknown>;
@@ -676,6 +507,7 @@ export declare const modalInteraction: {
676
507
  }) => Promise<Record<string, unknown>[]>;
677
508
  token: (kind?: import("./client.js").SlackToken) => string | undefined;
678
509
  workspaceId: () => Promise<string>;
510
+ authorize: (headers: Headers) => void;
679
511
  }>): Promise<import("frogbot").TriggerEvent<Record<string, unknown>>[]>;
680
512
  } & {
681
513
  slug: "modalInteraction";
@@ -701,19 +533,6 @@ export declare const slackTriggers: (({
701
533
  [x: string]: unknown;
702
534
  ok: true;
703
535
  }>;
704
- raw: ({ path, method, body, headers, token: tokenKind, }: {
705
- path: string;
706
- method?: string;
707
- body?: BodyInit | Record<string, unknown>;
708
- headers?: HeadersInit;
709
- token?: import("./client.js").SlackToken;
710
- }) => Promise<{
711
- status: number;
712
- headers: {
713
- [k: string]: string;
714
- };
715
- body: any;
716
- }>;
717
536
  paginate: ({ path, body, item, token: tokenKind, limit, }: {
718
537
  path: string;
719
538
  body?: Record<string, unknown>;
@@ -723,6 +542,7 @@ export declare const slackTriggers: (({
723
542
  }) => Promise<Record<string, unknown>[]>;
724
543
  token: (kind?: import("./client.js").SlackToken) => string | undefined;
725
544
  workspaceId: () => Promise<string>;
545
+ authorize: (headers: Headers) => void;
726
546
  }>): Promise<import("frogbot").TriggerEvent<Record<string, unknown>>[]>;
727
547
  } & {
728
548
  slug: "messageCreated";
@@ -749,19 +569,6 @@ export declare const slackTriggers: (({
749
569
  [x: string]: unknown;
750
570
  ok: true;
751
571
  }>;
752
- raw: ({ path, method, body, headers, token: tokenKind, }: {
753
- path: string;
754
- method?: string;
755
- body?: BodyInit | Record<string, unknown>;
756
- headers?: HeadersInit;
757
- token?: import("./client.js").SlackToken;
758
- }) => Promise<{
759
- status: number;
760
- headers: {
761
- [k: string]: string;
762
- };
763
- body: any;
764
- }>;
765
572
  paginate: ({ path, body, item, token: tokenKind, limit, }: {
766
573
  path: string;
767
574
  body?: Record<string, unknown>;
@@ -771,6 +578,7 @@ export declare const slackTriggers: (({
771
578
  }) => Promise<Record<string, unknown>[]>;
772
579
  token: (kind?: import("./client.js").SlackToken) => string | undefined;
773
580
  workspaceId: () => Promise<string>;
581
+ authorize: (headers: Headers) => void;
774
582
  }>): Promise<import("frogbot").TriggerEvent<Record<string, unknown>>[]>;
775
583
  } & {
776
584
  slug: "channelMessageCreated";
@@ -797,19 +605,6 @@ export declare const slackTriggers: (({
797
605
  [x: string]: unknown;
798
606
  ok: true;
799
607
  }>;
800
- raw: ({ path, method, body, headers, token: tokenKind, }: {
801
- path: string;
802
- method?: string;
803
- body?: BodyInit | Record<string, unknown>;
804
- headers?: HeadersInit;
805
- token?: import("./client.js").SlackToken;
806
- }) => Promise<{
807
- status: number;
808
- headers: {
809
- [k: string]: string;
810
- };
811
- body: any;
812
- }>;
813
608
  paginate: ({ path, body, item, token: tokenKind, limit, }: {
814
609
  path: string;
815
610
  body?: Record<string, unknown>;
@@ -819,6 +614,7 @@ export declare const slackTriggers: (({
819
614
  }) => Promise<Record<string, unknown>[]>;
820
615
  token: (kind?: import("./client.js").SlackToken) => string | undefined;
821
616
  workspaceId: () => Promise<string>;
617
+ authorize: (headers: Headers) => void;
822
618
  }>): Promise<import("frogbot").TriggerEvent<Record<string, unknown>>[]>;
823
619
  } & {
824
620
  slug: "directMessageCreated";
@@ -851,19 +647,6 @@ export declare const slackTriggers: (({
851
647
  [x: string]: unknown;
852
648
  ok: true;
853
649
  }>;
854
- raw: ({ path, method, body, headers, token: tokenKind, }: {
855
- path: string;
856
- method?: string;
857
- body?: BodyInit | Record<string, unknown>;
858
- headers?: HeadersInit;
859
- token?: import("./client.js").SlackToken;
860
- }) => Promise<{
861
- status: number;
862
- headers: {
863
- [k: string]: string;
864
- };
865
- body: any;
866
- }>;
867
650
  paginate: ({ path, body, item, token: tokenKind, limit, }: {
868
651
  path: string;
869
652
  body?: Record<string, unknown>;
@@ -873,6 +656,7 @@ export declare const slackTriggers: (({
873
656
  }) => Promise<Record<string, unknown>[]>;
874
657
  token: (kind?: import("./client.js").SlackToken) => string | undefined;
875
658
  workspaceId: () => Promise<string>;
659
+ authorize: (headers: Headers) => void;
876
660
  }>): Promise<import("frogbot").TriggerEvent<Record<string, unknown>>[]>;
877
661
  } & {
878
662
  slug: "channelMentionCreated";
@@ -881,9 +665,9 @@ export declare const slackTriggers: (({
881
665
  label?: string;
882
666
  description: string;
883
667
  input: z.ZodObject<{
884
- emojis: z.ZodDefault<z.ZodArray<z.ZodString>>;
885
- user: z.ZodOptional<z.ZodString>;
886
- channels: z.ZodDefault<z.ZodArray<z.ZodString>>;
668
+ ignoreSelfMessages: z.ZodDefault<z.ZodBoolean>;
669
+ ignoreBots: z.ZodDefault<z.ZodBoolean>;
670
+ user: z.ZodString;
887
671
  }, z.core.$strip>;
888
672
  output?: z.ZodRecord<z.ZodString, z.ZodUnknown> | undefined;
889
673
  sample?: Record<string, unknown> | undefined;
@@ -891,9 +675,9 @@ export declare const slackTriggers: (({
891
675
  type: "app";
892
676
  event: string;
893
677
  run(args: import("frogbot").PieceRunArgs<{
894
- emojis: string[];
895
- channels: string[];
896
- user?: string | undefined;
678
+ ignoreSelfMessages: boolean;
679
+ ignoreBots: boolean;
680
+ user: string;
897
681
  }, {
898
682
  signingSecret?: string | undefined;
899
683
  }, {
@@ -901,19 +685,6 @@ export declare const slackTriggers: (({
901
685
  [x: string]: unknown;
902
686
  ok: true;
903
687
  }>;
904
- raw: ({ path, method, body, headers, token: tokenKind, }: {
905
- path: string;
906
- method?: string;
907
- body?: BodyInit | Record<string, unknown>;
908
- headers?: HeadersInit;
909
- token?: import("./client.js").SlackToken;
910
- }) => Promise<{
911
- status: number;
912
- headers: {
913
- [k: string]: string;
914
- };
915
- body: any;
916
- }>;
917
688
  paginate: ({ path, body, item, token: tokenKind, limit, }: {
918
689
  path: string;
919
690
  body?: Record<string, unknown>;
@@ -923,9 +694,10 @@ export declare const slackTriggers: (({
923
694
  }) => Promise<Record<string, unknown>[]>;
924
695
  token: (kind?: import("./client.js").SlackToken) => string | undefined;
925
696
  workspaceId: () => Promise<string>;
697
+ authorize: (headers: Headers) => void;
926
698
  }>): Promise<import("frogbot").TriggerEvent<Record<string, unknown>>[]>;
927
699
  } & {
928
- slug: "reactionAdded";
700
+ slug: "directMentionCreated";
929
701
  }) | ({
930
702
  slug: string;
931
703
  label?: string;
@@ -951,19 +723,6 @@ export declare const slackTriggers: (({
951
723
  [x: string]: unknown;
952
724
  ok: true;
953
725
  }>;
954
- raw: ({ path, method, body, headers, token: tokenKind, }: {
955
- path: string;
956
- method?: string;
957
- body?: BodyInit | Record<string, unknown>;
958
- headers?: HeadersInit;
959
- token?: import("./client.js").SlackToken;
960
- }) => Promise<{
961
- status: number;
962
- headers: {
963
- [k: string]: string;
964
- };
965
- body: any;
966
- }>;
967
726
  paginate: ({ path, body, item, token: tokenKind, limit, }: {
968
727
  path: string;
969
728
  body?: Record<string, unknown>;
@@ -973,39 +732,35 @@ export declare const slackTriggers: (({
973
732
  }) => Promise<Record<string, unknown>[]>;
974
733
  token: (kind?: import("./client.js").SlackToken) => string | undefined;
975
734
  workspaceId: () => Promise<string>;
735
+ authorize: (headers: Headers) => void;
976
736
  }>): Promise<import("frogbot").TriggerEvent<Record<string, unknown>>[]>;
977
737
  } & {
978
- slug: "reactionRemoved";
738
+ slug: "reactionAdded";
979
739
  }) | ({
980
740
  slug: string;
981
741
  label?: string;
982
742
  description: string;
983
- input: z.ZodObject<{}, z.core.$strip>;
743
+ input: z.ZodObject<{
744
+ emojis: z.ZodDefault<z.ZodArray<z.ZodString>>;
745
+ user: z.ZodOptional<z.ZodString>;
746
+ channels: z.ZodDefault<z.ZodArray<z.ZodString>>;
747
+ }, z.core.$strip>;
984
748
  output?: z.ZodRecord<z.ZodString, z.ZodUnknown> | undefined;
985
749
  sample?: Record<string, unknown> | undefined;
986
750
  } & {
987
751
  type: "app";
988
752
  event: string;
989
- run(args: import("frogbot").PieceRunArgs<Record<string, never>, {
753
+ run(args: import("frogbot").PieceRunArgs<{
754
+ emojis: string[];
755
+ channels: string[];
756
+ user?: string | undefined;
757
+ }, {
990
758
  signingSecret?: string | undefined;
991
759
  }, {
992
760
  request: (path: string, body?: Record<string, unknown>, tokenKind?: import("./client.js").SlackToken) => Promise<{
993
761
  [x: string]: unknown;
994
762
  ok: true;
995
763
  }>;
996
- raw: ({ path, method, body, headers, token: tokenKind, }: {
997
- path: string;
998
- method?: string;
999
- body?: BodyInit | Record<string, unknown>;
1000
- headers?: HeadersInit;
1001
- token?: import("./client.js").SlackToken;
1002
- }) => Promise<{
1003
- status: number;
1004
- headers: {
1005
- [k: string]: string;
1006
- };
1007
- body: any;
1008
- }>;
1009
764
  paginate: ({ path, body, item, token: tokenKind, limit, }: {
1010
765
  path: string;
1011
766
  body?: Record<string, unknown>;
@@ -1015,49 +770,27 @@ export declare const slackTriggers: (({
1015
770
  }) => Promise<Record<string, unknown>[]>;
1016
771
  token: (kind?: import("./client.js").SlackToken) => string | undefined;
1017
772
  workspaceId: () => Promise<string>;
773
+ authorize: (headers: Headers) => void;
1018
774
  }>): Promise<import("frogbot").TriggerEvent<Record<string, unknown>>[]>;
1019
775
  } & {
1020
- slug: "channelCreated";
776
+ slug: "reactionRemoved";
1021
777
  }) | ({
1022
778
  slug: string;
1023
779
  label?: string;
1024
780
  description: string;
1025
- input: z.ZodObject<{
1026
- user: z.ZodString;
1027
- commands: z.ZodDefault<z.ZodArray<z.ZodString>>;
1028
- channels: z.ZodDefault<z.ZodArray<z.ZodString>>;
1029
- ignoreBots: z.ZodDefault<z.ZodBoolean>;
1030
- }, z.core.$strip>;
781
+ input: z.ZodObject<{}, z.core.$strip>;
1031
782
  output?: z.ZodRecord<z.ZodString, z.ZodUnknown> | undefined;
1032
783
  sample?: Record<string, unknown> | undefined;
1033
784
  } & {
1034
785
  type: "app";
1035
786
  event: string;
1036
- run(args: import("frogbot").PieceRunArgs<{
1037
- user: string;
1038
- commands: string[];
1039
- channels: string[];
1040
- ignoreBots: boolean;
1041
- }, {
787
+ run(args: import("frogbot").PieceRunArgs<Record<string, never>, {
1042
788
  signingSecret?: string | undefined;
1043
789
  }, {
1044
790
  request: (path: string, body?: Record<string, unknown>, tokenKind?: import("./client.js").SlackToken) => Promise<{
1045
791
  [x: string]: unknown;
1046
792
  ok: true;
1047
793
  }>;
1048
- raw: ({ path, method, body, headers, token: tokenKind, }: {
1049
- path: string;
1050
- method?: string;
1051
- body?: BodyInit | Record<string, unknown>;
1052
- headers?: HeadersInit;
1053
- token?: import("./client.js").SlackToken;
1054
- }) => Promise<{
1055
- status: number;
1056
- headers: {
1057
- [k: string]: string;
1058
- };
1059
- body: any;
1060
- }>;
1061
794
  paginate: ({ path, body, item, token: tokenKind, limit, }: {
1062
795
  path: string;
1063
796
  body?: Record<string, unknown>;
@@ -1067,17 +800,19 @@ export declare const slackTriggers: (({
1067
800
  }) => Promise<Record<string, unknown>[]>;
1068
801
  token: (kind?: import("./client.js").SlackToken) => string | undefined;
1069
802
  workspaceId: () => Promise<string>;
803
+ authorize: (headers: Headers) => void;
1070
804
  }>): Promise<import("frogbot").TriggerEvent<Record<string, unknown>>[]>;
1071
805
  } & {
1072
- slug: "channelCommandCreated";
806
+ slug: "channelCreated";
1073
807
  }) | ({
1074
808
  slug: string;
1075
809
  label?: string;
1076
810
  description: string;
1077
811
  input: z.ZodObject<{
1078
- ignoreSelfMessages: z.ZodDefault<z.ZodBoolean>;
1079
- ignoreBots: z.ZodDefault<z.ZodBoolean>;
1080
812
  user: z.ZodString;
813
+ commands: z.ZodDefault<z.ZodArray<z.ZodString>>;
814
+ channels: z.ZodDefault<z.ZodArray<z.ZodString>>;
815
+ ignoreBots: z.ZodDefault<z.ZodBoolean>;
1081
816
  }, z.core.$strip>;
1082
817
  output?: z.ZodRecord<z.ZodString, z.ZodUnknown> | undefined;
1083
818
  sample?: Record<string, unknown> | undefined;
@@ -1085,9 +820,10 @@ export declare const slackTriggers: (({
1085
820
  type: "app";
1086
821
  event: string;
1087
822
  run(args: import("frogbot").PieceRunArgs<{
1088
- ignoreSelfMessages: boolean;
1089
- ignoreBots: boolean;
1090
823
  user: string;
824
+ commands: string[];
825
+ channels: string[];
826
+ ignoreBots: boolean;
1091
827
  }, {
1092
828
  signingSecret?: string | undefined;
1093
829
  }, {
@@ -1095,19 +831,6 @@ export declare const slackTriggers: (({
1095
831
  [x: string]: unknown;
1096
832
  ok: true;
1097
833
  }>;
1098
- raw: ({ path, method, body, headers, token: tokenKind, }: {
1099
- path: string;
1100
- method?: string;
1101
- body?: BodyInit | Record<string, unknown>;
1102
- headers?: HeadersInit;
1103
- token?: import("./client.js").SlackToken;
1104
- }) => Promise<{
1105
- status: number;
1106
- headers: {
1107
- [k: string]: string;
1108
- };
1109
- body: any;
1110
- }>;
1111
834
  paginate: ({ path, body, item, token: tokenKind, limit, }: {
1112
835
  path: string;
1113
836
  body?: Record<string, unknown>;
@@ -1117,17 +840,18 @@ export declare const slackTriggers: (({
1117
840
  }) => Promise<Record<string, unknown>[]>;
1118
841
  token: (kind?: import("./client.js").SlackToken) => string | undefined;
1119
842
  workspaceId: () => Promise<string>;
843
+ authorize: (headers: Headers) => void;
1120
844
  }>): Promise<import("frogbot").TriggerEvent<Record<string, unknown>>[]>;
1121
845
  } & {
1122
- slug: "directMentionCreated";
846
+ slug: "channelCommandCreated";
1123
847
  }) | ({
1124
848
  slug: string;
1125
849
  label?: string;
1126
850
  description: string;
1127
851
  input: z.ZodObject<{
852
+ commands: z.ZodDefault<z.ZodArray<z.ZodString>>;
1128
853
  user: z.ZodString;
1129
854
  ignoreBots: z.ZodDefault<z.ZodBoolean>;
1130
- commands: z.ZodDefault<z.ZodArray<z.ZodString>>;
1131
855
  ignoreSelfMessages: z.ZodDefault<z.ZodBoolean>;
1132
856
  }, z.core.$strip>;
1133
857
  output?: z.ZodRecord<z.ZodString, z.ZodUnknown> | undefined;
@@ -1136,9 +860,9 @@ export declare const slackTriggers: (({
1136
860
  type: "app";
1137
861
  event: string;
1138
862
  run(args: import("frogbot").PieceRunArgs<{
863
+ commands: string[];
1139
864
  user: string;
1140
865
  ignoreBots: boolean;
1141
- commands: string[];
1142
866
  ignoreSelfMessages: boolean;
1143
867
  }, {
1144
868
  signingSecret?: string | undefined;
@@ -1147,19 +871,6 @@ export declare const slackTriggers: (({
1147
871
  [x: string]: unknown;
1148
872
  ok: true;
1149
873
  }>;
1150
- raw: ({ path, method, body, headers, token: tokenKind, }: {
1151
- path: string;
1152
- method?: string;
1153
- body?: BodyInit | Record<string, unknown>;
1154
- headers?: HeadersInit;
1155
- token?: import("./client.js").SlackToken;
1156
- }) => Promise<{
1157
- status: number;
1158
- headers: {
1159
- [k: string]: string;
1160
- };
1161
- body: any;
1162
- }>;
1163
874
  paginate: ({ path, body, item, token: tokenKind, limit, }: {
1164
875
  path: string;
1165
876
  body?: Record<string, unknown>;
@@ -1169,6 +880,7 @@ export declare const slackTriggers: (({
1169
880
  }) => Promise<Record<string, unknown>[]>;
1170
881
  token: (kind?: import("./client.js").SlackToken) => string | undefined;
1171
882
  workspaceId: () => Promise<string>;
883
+ authorize: (headers: Headers) => void;
1172
884
  }>): Promise<import("frogbot").TriggerEvent<Record<string, unknown>>[]>;
1173
885
  } & {
1174
886
  slug: "directCommandCreated";
@@ -1189,19 +901,6 @@ export declare const slackTriggers: (({
1189
901
  [x: string]: unknown;
1190
902
  ok: true;
1191
903
  }>;
1192
- raw: ({ path, method, body, headers, token: tokenKind, }: {
1193
- path: string;
1194
- method?: string;
1195
- body?: BodyInit | Record<string, unknown>;
1196
- headers?: HeadersInit;
1197
- token?: import("./client.js").SlackToken;
1198
- }) => Promise<{
1199
- status: number;
1200
- headers: {
1201
- [k: string]: string;
1202
- };
1203
- body: any;
1204
- }>;
1205
904
  paginate: ({ path, body, item, token: tokenKind, limit, }: {
1206
905
  path: string;
1207
906
  body?: Record<string, unknown>;
@@ -1211,6 +910,7 @@ export declare const slackTriggers: (({
1211
910
  }) => Promise<Record<string, unknown>[]>;
1212
911
  token: (kind?: import("./client.js").SlackToken) => string | undefined;
1213
912
  workspaceId: () => Promise<string>;
913
+ authorize: (headers: Headers) => void;
1214
914
  }>): Promise<import("frogbot").TriggerEvent<Record<string, unknown>>[]>;
1215
915
  } & {
1216
916
  slug: "userJoined";
@@ -1231,19 +931,6 @@ export declare const slackTriggers: (({
1231
931
  [x: string]: unknown;
1232
932
  ok: true;
1233
933
  }>;
1234
- raw: ({ path, method, body, headers, token: tokenKind, }: {
1235
- path: string;
1236
- method?: string;
1237
- body?: BodyInit | Record<string, unknown>;
1238
- headers?: HeadersInit;
1239
- token?: import("./client.js").SlackToken;
1240
- }) => Promise<{
1241
- status: number;
1242
- headers: {
1243
- [k: string]: string;
1244
- };
1245
- body: any;
1246
- }>;
1247
934
  paginate: ({ path, body, item, token: tokenKind, limit, }: {
1248
935
  path: string;
1249
936
  body?: Record<string, unknown>;
@@ -1253,6 +940,7 @@ export declare const slackTriggers: (({
1253
940
  }) => Promise<Record<string, unknown>[]>;
1254
941
  token: (kind?: import("./client.js").SlackToken) => string | undefined;
1255
942
  workspaceId: () => Promise<string>;
943
+ authorize: (headers: Headers) => void;
1256
944
  }>): Promise<import("frogbot").TriggerEvent<Record<string, unknown>>[]>;
1257
945
  } & {
1258
946
  slug: "messageSaved";
@@ -1273,19 +961,6 @@ export declare const slackTriggers: (({
1273
961
  [x: string]: unknown;
1274
962
  ok: true;
1275
963
  }>;
1276
- raw: ({ path, method, body, headers, token: tokenKind, }: {
1277
- path: string;
1278
- method?: string;
1279
- body?: BodyInit | Record<string, unknown>;
1280
- headers?: HeadersInit;
1281
- token?: import("./client.js").SlackToken;
1282
- }) => Promise<{
1283
- status: number;
1284
- headers: {
1285
- [k: string]: string;
1286
- };
1287
- body: any;
1288
- }>;
1289
964
  paginate: ({ path, body, item, token: tokenKind, limit, }: {
1290
965
  path: string;
1291
966
  body?: Record<string, unknown>;
@@ -1295,6 +970,7 @@ export declare const slackTriggers: (({
1295
970
  }) => Promise<Record<string, unknown>[]>;
1296
971
  token: (kind?: import("./client.js").SlackToken) => string | undefined;
1297
972
  workspaceId: () => Promise<string>;
973
+ authorize: (headers: Headers) => void;
1298
974
  }>): Promise<import("frogbot").TriggerEvent<Record<string, unknown>>[]>;
1299
975
  } & {
1300
976
  slug: "customEmojiAdded";
@@ -1322,19 +998,6 @@ export declare const slackTriggers: (({
1322
998
  [x: string]: unknown;
1323
999
  ok: true;
1324
1000
  }>;
1325
- raw: ({ path, method, body, headers, token: tokenKind, }: {
1326
- path: string;
1327
- method?: string;
1328
- body?: BodyInit | Record<string, unknown>;
1329
- headers?: HeadersInit;
1330
- token?: import("./client.js").SlackToken;
1331
- }) => Promise<{
1332
- status: number;
1333
- headers: {
1334
- [k: string]: string;
1335
- };
1336
- body: any;
1337
- }>;
1338
1001
  paginate: ({ path, body, item, token: tokenKind, limit, }: {
1339
1002
  path: string;
1340
1003
  body?: Record<string, unknown>;
@@ -1344,6 +1007,7 @@ export declare const slackTriggers: (({
1344
1007
  }) => Promise<Record<string, unknown>[]>;
1345
1008
  token: (kind?: import("./client.js").SlackToken) => string | undefined;
1346
1009
  workspaceId: () => Promise<string>;
1010
+ authorize: (headers: Headers) => void;
1347
1011
  }>): Promise<import("frogbot").TriggerEvent<Record<string, unknown>>[]>;
1348
1012
  } & {
1349
1013
  slug: "modalInteraction";