@frogbotai/piece-slack 0.26.0 → 0.28.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 +355 -114
- package/dist/actions.d.ts.map +1 -1
- package/dist/actions.js +25 -27
- package/dist/actions.js.map +1 -1
- package/dist/config.d.ts +1 -0
- package/dist/config.d.ts.map +1 -1
- package/dist/config.js.map +1 -1
- package/dist/define.d.ts +148 -0
- package/dist/define.d.ts.map +1 -0
- package/dist/define.js +3 -0
- package/dist/define.js.map +1 -0
- package/dist/index.d.ts +873 -139
- package/dist/index.d.ts.map +1 -1
- package/dist/triggers.d.ts +1349 -590
- package/dist/triggers.d.ts.map +1 -1
- package/dist/triggers.js +14 -16
- package/dist/triggers.js.map +1 -1
- package/package.json +4 -4
package/dist/index.d.ts
CHANGED
|
@@ -2,8 +2,8 @@ import type { z } from 'zod';
|
|
|
2
2
|
import { createSlackClient } from './client.js';
|
|
3
3
|
import { slackScopes } from './config.js';
|
|
4
4
|
import { verifySlackWebhook } from './webhook.js';
|
|
5
|
-
export declare const slackActionNames:
|
|
6
|
-
export declare const slackTriggerNames:
|
|
5
|
+
export declare const slackActionNames: ("sendDirectMessage" | "sendChannelMessage" | "addReaction" | "uploadFile" | "getFile" | "searchMessages" | "findUserByEmail" | "findUserByHandle" | "findUserById" | "listUsers" | "updateMessage" | "deleteMessage" | "createChannel" | "updateProfile" | "getChannelHistory" | "setUserStatus" | "markdownToSlack" | "listThreadMessages" | "setChannelTopic" | "getMessage" | "inviteUserToChannel" | "getUserGroupByHandle" | "updateUserGroupMembers" | "customApiCall")[];
|
|
6
|
+
export declare const slackTriggerNames: ("messageCreated" | "channelMessageCreated" | "directMessageCreated" | "channelMentionCreated" | "reactionAdded" | "reactionRemoved" | "channelCreated" | "channelCommandCreated" | "directMentionCreated" | "directCommandCreated" | "userJoined" | "messageSaved" | "customEmojiAdded" | "modalInteraction")[];
|
|
7
7
|
export { slackScopes };
|
|
8
8
|
export declare const createSlack: import("frogbot").PieceFactory<{
|
|
9
9
|
readonly slug: "slack";
|
|
@@ -157,7 +157,7 @@ export declare const createSlack: import("frogbot").PieceFactory<{
|
|
|
157
157
|
workspaceId: () => Promise<string>;
|
|
158
158
|
}>;
|
|
159
159
|
};
|
|
160
|
-
readonly actions: (import("frogbot").PieceActionDefinition<z.ZodObject<{
|
|
160
|
+
readonly actions: ((import("frogbot").PieceActionDefinition<z.ZodObject<{
|
|
161
161
|
text: z.ZodString;
|
|
162
162
|
username: z.ZodOptional<z.ZodString>;
|
|
163
163
|
profilePicture: z.ZodOptional<z.ZodURL>;
|
|
@@ -170,7 +170,7 @@ export declare const createSlack: import("frogbot").PieceFactory<{
|
|
|
170
170
|
channel: z.ZodOptional<z.ZodString>;
|
|
171
171
|
ts: z.ZodOptional<z.ZodString>;
|
|
172
172
|
}, z.core.$catchall<z.ZodUnknown>>, {
|
|
173
|
-
signingSecret?: string;
|
|
173
|
+
signingSecret?: string | undefined;
|
|
174
174
|
}, {
|
|
175
175
|
request: (path: string, body?: Record<string, unknown>, tokenKind?: import("./client.js").SlackToken) => Promise<{
|
|
176
176
|
[x: string]: unknown;
|
|
@@ -203,7 +203,9 @@ export declare const createSlack: import("frogbot").PieceFactory<{
|
|
|
203
203
|
ok: true;
|
|
204
204
|
channel?: string | undefined;
|
|
205
205
|
ts?: string | undefined;
|
|
206
|
-
}>
|
|
206
|
+
}> & {
|
|
207
|
+
slug: "sendDirectMessage";
|
|
208
|
+
}) | (import("frogbot").PieceActionDefinition<z.ZodObject<{
|
|
207
209
|
channel: z.ZodString;
|
|
208
210
|
text: z.ZodOptional<z.ZodString>;
|
|
209
211
|
sendAsBot: z.ZodDefault<z.ZodBoolean>;
|
|
@@ -221,7 +223,7 @@ export declare const createSlack: import("frogbot").PieceFactory<{
|
|
|
221
223
|
}, z.core.$strip>, z.ZodObject<{
|
|
222
224
|
ok: z.ZodLiteral<true>;
|
|
223
225
|
}, z.core.$catchall<z.ZodUnknown>>, {
|
|
224
|
-
signingSecret?: string;
|
|
226
|
+
signingSecret?: string | undefined;
|
|
225
227
|
}, {
|
|
226
228
|
request: (path: string, body?: Record<string, unknown>, tokenKind?: import("./client.js").SlackToken) => Promise<{
|
|
227
229
|
[x: string]: unknown;
|
|
@@ -252,7 +254,50 @@ export declare const createSlack: import("frogbot").PieceFactory<{
|
|
|
252
254
|
}, {
|
|
253
255
|
[x: string]: unknown;
|
|
254
256
|
ok: true;
|
|
255
|
-
}>
|
|
257
|
+
}> & {
|
|
258
|
+
slug: "sendChannelMessage";
|
|
259
|
+
}) | (import("frogbot").PieceActionDefinition<z.ZodObject<{
|
|
260
|
+
channel: z.ZodString;
|
|
261
|
+
timestamp: z.ZodString;
|
|
262
|
+
reaction: z.ZodString;
|
|
263
|
+
reactAsUser: z.ZodDefault<z.ZodBoolean>;
|
|
264
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
265
|
+
ok: z.ZodLiteral<true>;
|
|
266
|
+
}, z.core.$catchall<z.ZodUnknown>>, {
|
|
267
|
+
signingSecret?: string | undefined;
|
|
268
|
+
}, {
|
|
269
|
+
request: (path: string, body?: Record<string, unknown>, tokenKind?: import("./client.js").SlackToken) => Promise<{
|
|
270
|
+
[x: string]: unknown;
|
|
271
|
+
ok: true;
|
|
272
|
+
}>;
|
|
273
|
+
raw: ({ path, method, body, headers, token: tokenKind, }: {
|
|
274
|
+
path: string;
|
|
275
|
+
method?: string;
|
|
276
|
+
body?: BodyInit | Record<string, unknown>;
|
|
277
|
+
headers?: HeadersInit;
|
|
278
|
+
token?: import("./client.js").SlackToken;
|
|
279
|
+
}) => Promise<{
|
|
280
|
+
status: number;
|
|
281
|
+
headers: {
|
|
282
|
+
[k: string]: string;
|
|
283
|
+
};
|
|
284
|
+
body: any;
|
|
285
|
+
}>;
|
|
286
|
+
paginate: ({ path, body, item, token: tokenKind, limit, }: {
|
|
287
|
+
path: string;
|
|
288
|
+
body?: Record<string, unknown>;
|
|
289
|
+
item: string;
|
|
290
|
+
token?: import("./client.js").SlackToken;
|
|
291
|
+
limit?: number;
|
|
292
|
+
}) => Promise<Record<string, unknown>[]>;
|
|
293
|
+
token: (kind?: import("./client.js").SlackToken) => string | undefined;
|
|
294
|
+
workspaceId: () => Promise<string>;
|
|
295
|
+
}, {
|
|
296
|
+
[x: string]: unknown;
|
|
297
|
+
ok: true;
|
|
298
|
+
}> & {
|
|
299
|
+
slug: "addReaction";
|
|
300
|
+
}) | (import("frogbot").PieceActionDefinition<z.ZodObject<{
|
|
256
301
|
file: z.ZodObject<{
|
|
257
302
|
fileId: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
|
|
258
303
|
name: z.ZodOptional<z.ZodString>;
|
|
@@ -263,7 +308,7 @@ export declare const createSlack: import("frogbot").PieceFactory<{
|
|
|
263
308
|
}, z.core.$strip>, z.ZodObject<{
|
|
264
309
|
ok: z.ZodLiteral<true>;
|
|
265
310
|
}, z.core.$catchall<z.ZodUnknown>>, {
|
|
266
|
-
signingSecret?: string;
|
|
311
|
+
signingSecret?: string | undefined;
|
|
267
312
|
}, {
|
|
268
313
|
request: (path: string, body?: Record<string, unknown>, tokenKind?: import("./client.js").SlackToken) => Promise<{
|
|
269
314
|
[x: string]: unknown;
|
|
@@ -294,10 +339,12 @@ export declare const createSlack: import("frogbot").PieceFactory<{
|
|
|
294
339
|
}, {
|
|
295
340
|
[x: string]: unknown;
|
|
296
341
|
ok: true;
|
|
297
|
-
}>
|
|
342
|
+
}> & {
|
|
343
|
+
slug: "uploadFile";
|
|
344
|
+
}) | (import("frogbot").PieceActionDefinition<z.ZodObject<{
|
|
298
345
|
fileId: z.ZodString;
|
|
299
346
|
}, z.core.$strip>, z.ZodRecord<z.ZodString, z.ZodUnknown>, {
|
|
300
|
-
signingSecret?: string;
|
|
347
|
+
signingSecret?: string | undefined;
|
|
301
348
|
}, {
|
|
302
349
|
request: (path: string, body?: Record<string, unknown>, tokenKind?: import("./client.js").SlackToken) => Promise<{
|
|
303
350
|
[x: string]: unknown;
|
|
@@ -325,10 +372,12 @@ export declare const createSlack: import("frogbot").PieceFactory<{
|
|
|
325
372
|
}) => Promise<Record<string, unknown>[]>;
|
|
326
373
|
token: (kind?: import("./client.js").SlackToken) => string | undefined;
|
|
327
374
|
workspaceId: () => Promise<string>;
|
|
328
|
-
}, Record<string, unknown>>
|
|
375
|
+
}, Record<string, unknown>> & {
|
|
376
|
+
slug: "getFile";
|
|
377
|
+
}) | (import("frogbot").PieceActionDefinition<z.ZodObject<{
|
|
329
378
|
query: z.ZodString;
|
|
330
379
|
}, z.core.$strip>, z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>, {
|
|
331
|
-
signingSecret?: string;
|
|
380
|
+
signingSecret?: string | undefined;
|
|
332
381
|
}, {
|
|
333
382
|
request: (path: string, body?: Record<string, unknown>, tokenKind?: import("./client.js").SlackToken) => Promise<{
|
|
334
383
|
[x: string]: unknown;
|
|
@@ -356,12 +405,14 @@ export declare const createSlack: import("frogbot").PieceFactory<{
|
|
|
356
405
|
}) => Promise<Record<string, unknown>[]>;
|
|
357
406
|
token: (kind?: import("./client.js").SlackToken) => string | undefined;
|
|
358
407
|
workspaceId: () => Promise<string>;
|
|
359
|
-
}, Record<string, unknown>[]>
|
|
408
|
+
}, Record<string, unknown>[]> & {
|
|
409
|
+
slug: "searchMessages";
|
|
410
|
+
}) | (import("frogbot").PieceActionDefinition<z.ZodObject<{
|
|
360
411
|
email: z.ZodEmail;
|
|
361
412
|
}, z.core.$strip>, z.ZodObject<{
|
|
362
413
|
ok: z.ZodLiteral<true>;
|
|
363
414
|
}, z.core.$catchall<z.ZodUnknown>>, {
|
|
364
|
-
signingSecret?: string;
|
|
415
|
+
signingSecret?: string | undefined;
|
|
365
416
|
}, {
|
|
366
417
|
request: (path: string, body?: Record<string, unknown>, tokenKind?: import("./client.js").SlackToken) => Promise<{
|
|
367
418
|
[x: string]: unknown;
|
|
@@ -392,10 +443,12 @@ export declare const createSlack: import("frogbot").PieceFactory<{
|
|
|
392
443
|
}, {
|
|
393
444
|
[x: string]: unknown;
|
|
394
445
|
ok: true;
|
|
395
|
-
}>
|
|
446
|
+
}> & {
|
|
447
|
+
slug: "findUserByEmail";
|
|
448
|
+
}) | (import("frogbot").PieceActionDefinition<z.ZodObject<{
|
|
396
449
|
handle: z.ZodString;
|
|
397
450
|
}, z.core.$strip>, z.ZodRecord<z.ZodString, z.ZodUnknown>, {
|
|
398
|
-
signingSecret?: string;
|
|
451
|
+
signingSecret?: string | undefined;
|
|
399
452
|
}, {
|
|
400
453
|
request: (path: string, body?: Record<string, unknown>, tokenKind?: import("./client.js").SlackToken) => Promise<{
|
|
401
454
|
[x: string]: unknown;
|
|
@@ -423,12 +476,14 @@ export declare const createSlack: import("frogbot").PieceFactory<{
|
|
|
423
476
|
}) => Promise<Record<string, unknown>[]>;
|
|
424
477
|
token: (kind?: import("./client.js").SlackToken) => string | undefined;
|
|
425
478
|
workspaceId: () => Promise<string>;
|
|
426
|
-
}, Record<string, unknown>>
|
|
479
|
+
}, Record<string, unknown>> & {
|
|
480
|
+
slug: "findUserByHandle";
|
|
481
|
+
}) | (import("frogbot").PieceActionDefinition<z.ZodObject<{
|
|
427
482
|
id: z.ZodString;
|
|
428
483
|
}, z.core.$strip>, z.ZodObject<{
|
|
429
484
|
ok: z.ZodLiteral<true>;
|
|
430
485
|
}, z.core.$catchall<z.ZodUnknown>>, {
|
|
431
|
-
signingSecret?: string;
|
|
486
|
+
signingSecret?: string | undefined;
|
|
432
487
|
}, {
|
|
433
488
|
request: (path: string, body?: Record<string, unknown>, tokenKind?: import("./client.js").SlackToken) => Promise<{
|
|
434
489
|
[x: string]: unknown;
|
|
@@ -459,11 +514,51 @@ export declare const createSlack: import("frogbot").PieceFactory<{
|
|
|
459
514
|
}, {
|
|
460
515
|
[x: string]: unknown;
|
|
461
516
|
ok: true;
|
|
462
|
-
}>
|
|
517
|
+
}> & {
|
|
518
|
+
slug: "findUserById";
|
|
519
|
+
}) | (import("frogbot").PieceActionDefinition<z.ZodObject<{
|
|
463
520
|
includeBots: z.ZodDefault<z.ZodBoolean>;
|
|
464
521
|
includeDisabled: z.ZodDefault<z.ZodBoolean>;
|
|
465
522
|
}, z.core.$strip>, z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>, {
|
|
466
|
-
signingSecret?: string;
|
|
523
|
+
signingSecret?: string | undefined;
|
|
524
|
+
}, {
|
|
525
|
+
request: (path: string, body?: Record<string, unknown>, tokenKind?: import("./client.js").SlackToken) => Promise<{
|
|
526
|
+
[x: string]: unknown;
|
|
527
|
+
ok: true;
|
|
528
|
+
}>;
|
|
529
|
+
raw: ({ path, method, body, headers, token: tokenKind, }: {
|
|
530
|
+
path: string;
|
|
531
|
+
method?: string;
|
|
532
|
+
body?: BodyInit | Record<string, unknown>;
|
|
533
|
+
headers?: HeadersInit;
|
|
534
|
+
token?: import("./client.js").SlackToken;
|
|
535
|
+
}) => Promise<{
|
|
536
|
+
status: number;
|
|
537
|
+
headers: {
|
|
538
|
+
[k: string]: string;
|
|
539
|
+
};
|
|
540
|
+
body: any;
|
|
541
|
+
}>;
|
|
542
|
+
paginate: ({ path, body, item, token: tokenKind, limit, }: {
|
|
543
|
+
path: string;
|
|
544
|
+
body?: Record<string, unknown>;
|
|
545
|
+
item: string;
|
|
546
|
+
token?: import("./client.js").SlackToken;
|
|
547
|
+
limit?: number;
|
|
548
|
+
}) => Promise<Record<string, unknown>[]>;
|
|
549
|
+
token: (kind?: import("./client.js").SlackToken) => string | undefined;
|
|
550
|
+
workspaceId: () => Promise<string>;
|
|
551
|
+
}, Record<string, unknown>[]> & {
|
|
552
|
+
slug: "listUsers";
|
|
553
|
+
}) | (import("frogbot").PieceActionDefinition<z.ZodObject<{
|
|
554
|
+
channel: z.ZodString;
|
|
555
|
+
timestamp: z.ZodString;
|
|
556
|
+
text: z.ZodString;
|
|
557
|
+
blocks: z.ZodDefault<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
558
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
559
|
+
ok: z.ZodLiteral<true>;
|
|
560
|
+
}, z.core.$catchall<z.ZodUnknown>>, {
|
|
561
|
+
signingSecret?: string | undefined;
|
|
467
562
|
}, {
|
|
468
563
|
request: (path: string, body?: Record<string, unknown>, tokenKind?: import("./client.js").SlackToken) => Promise<{
|
|
469
564
|
[x: string]: unknown;
|
|
@@ -491,13 +586,18 @@ export declare const createSlack: import("frogbot").PieceFactory<{
|
|
|
491
586
|
}) => Promise<Record<string, unknown>[]>;
|
|
492
587
|
token: (kind?: import("./client.js").SlackToken) => string | undefined;
|
|
493
588
|
workspaceId: () => Promise<string>;
|
|
494
|
-
},
|
|
589
|
+
}, {
|
|
590
|
+
[x: string]: unknown;
|
|
591
|
+
ok: true;
|
|
592
|
+
}> & {
|
|
593
|
+
slug: "updateMessage";
|
|
594
|
+
}) | (import("frogbot").PieceActionDefinition<z.ZodObject<{
|
|
495
595
|
channel: z.ZodString;
|
|
496
596
|
timestamp: z.ZodString;
|
|
497
597
|
}, z.core.$strip>, z.ZodObject<{
|
|
498
598
|
ok: z.ZodLiteral<true>;
|
|
499
599
|
}, z.core.$catchall<z.ZodUnknown>>, {
|
|
500
|
-
signingSecret?: string;
|
|
600
|
+
signingSecret?: string | undefined;
|
|
501
601
|
}, {
|
|
502
602
|
request: (path: string, body?: Record<string, unknown>, tokenKind?: import("./client.js").SlackToken) => Promise<{
|
|
503
603
|
[x: string]: unknown;
|
|
@@ -528,13 +628,15 @@ export declare const createSlack: import("frogbot").PieceFactory<{
|
|
|
528
628
|
}, {
|
|
529
629
|
[x: string]: unknown;
|
|
530
630
|
ok: true;
|
|
531
|
-
}>
|
|
631
|
+
}> & {
|
|
632
|
+
slug: "deleteMessage";
|
|
633
|
+
}) | (import("frogbot").PieceActionDefinition<z.ZodObject<{
|
|
532
634
|
channelName: z.ZodString;
|
|
533
635
|
isPrivate: z.ZodDefault<z.ZodBoolean>;
|
|
534
636
|
}, z.core.$strip>, z.ZodObject<{
|
|
535
637
|
ok: z.ZodLiteral<true>;
|
|
536
638
|
}, z.core.$catchall<z.ZodUnknown>>, {
|
|
537
|
-
signingSecret?: string;
|
|
639
|
+
signingSecret?: string | undefined;
|
|
538
640
|
}, {
|
|
539
641
|
request: (path: string, body?: Record<string, unknown>, tokenKind?: import("./client.js").SlackToken) => Promise<{
|
|
540
642
|
[x: string]: unknown;
|
|
@@ -565,7 +667,9 @@ export declare const createSlack: import("frogbot").PieceFactory<{
|
|
|
565
667
|
}, {
|
|
566
668
|
[x: string]: unknown;
|
|
567
669
|
ok: true;
|
|
568
|
-
}>
|
|
670
|
+
}> & {
|
|
671
|
+
slug: "createChannel";
|
|
672
|
+
}) | (import("frogbot").PieceActionDefinition<z.ZodObject<{
|
|
569
673
|
firstName: z.ZodOptional<z.ZodString>;
|
|
570
674
|
lastName: z.ZodOptional<z.ZodString>;
|
|
571
675
|
email: z.ZodOptional<z.ZodEmail>;
|
|
@@ -573,7 +677,7 @@ export declare const createSlack: import("frogbot").PieceFactory<{
|
|
|
573
677
|
}, z.core.$strip>, z.ZodObject<{
|
|
574
678
|
ok: z.ZodLiteral<true>;
|
|
575
679
|
}, z.core.$catchall<z.ZodUnknown>>, {
|
|
576
|
-
signingSecret?: string;
|
|
680
|
+
signingSecret?: string | undefined;
|
|
577
681
|
}, {
|
|
578
682
|
request: (path: string, body?: Record<string, unknown>, tokenKind?: import("./client.js").SlackToken) => Promise<{
|
|
579
683
|
[x: string]: unknown;
|
|
@@ -604,14 +708,16 @@ export declare const createSlack: import("frogbot").PieceFactory<{
|
|
|
604
708
|
}, {
|
|
605
709
|
[x: string]: unknown;
|
|
606
710
|
ok: true;
|
|
607
|
-
}>
|
|
711
|
+
}> & {
|
|
712
|
+
slug: "updateProfile";
|
|
713
|
+
}) | (import("frogbot").PieceActionDefinition<z.ZodObject<{
|
|
608
714
|
channel: z.ZodString;
|
|
609
715
|
oldest: z.ZodOptional<z.ZodNumber>;
|
|
610
716
|
latest: z.ZodOptional<z.ZodNumber>;
|
|
611
717
|
inclusive: z.ZodDefault<z.ZodBoolean>;
|
|
612
718
|
includeAllMetadata: z.ZodDefault<z.ZodBoolean>;
|
|
613
719
|
}, z.core.$strip>, z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>, {
|
|
614
|
-
signingSecret?: string;
|
|
720
|
+
signingSecret?: string | undefined;
|
|
615
721
|
}, {
|
|
616
722
|
request: (path: string, body?: Record<string, unknown>, tokenKind?: import("./client.js").SlackToken) => Promise<{
|
|
617
723
|
[x: string]: unknown;
|
|
@@ -639,14 +745,16 @@ export declare const createSlack: import("frogbot").PieceFactory<{
|
|
|
639
745
|
}) => Promise<Record<string, unknown>[]>;
|
|
640
746
|
token: (kind?: import("./client.js").SlackToken) => string | undefined;
|
|
641
747
|
workspaceId: () => Promise<string>;
|
|
642
|
-
}, Record<string, unknown>[]>
|
|
748
|
+
}, Record<string, unknown>[]> & {
|
|
749
|
+
slug: "getChannelHistory";
|
|
750
|
+
}) | (import("frogbot").PieceActionDefinition<z.ZodObject<{
|
|
643
751
|
text: z.ZodString;
|
|
644
752
|
emoji: z.ZodOptional<z.ZodString>;
|
|
645
753
|
expiration: z.ZodOptional<z.ZodNumber>;
|
|
646
754
|
}, z.core.$strip>, z.ZodObject<{
|
|
647
755
|
ok: z.ZodLiteral<true>;
|
|
648
756
|
}, z.core.$catchall<z.ZodUnknown>>, {
|
|
649
|
-
signingSecret?: string;
|
|
757
|
+
signingSecret?: string | undefined;
|
|
650
758
|
}, {
|
|
651
759
|
request: (path: string, body?: Record<string, unknown>, tokenKind?: import("./client.js").SlackToken) => Promise<{
|
|
652
760
|
[x: string]: unknown;
|
|
@@ -677,12 +785,14 @@ export declare const createSlack: import("frogbot").PieceFactory<{
|
|
|
677
785
|
}, {
|
|
678
786
|
[x: string]: unknown;
|
|
679
787
|
ok: true;
|
|
680
|
-
}>
|
|
788
|
+
}> & {
|
|
789
|
+
slug: "setUserStatus";
|
|
790
|
+
}) | (import("frogbot").PieceActionDefinition<z.ZodObject<{
|
|
681
791
|
markdown: z.ZodString;
|
|
682
792
|
}, z.core.$strip>, z.ZodObject<{
|
|
683
793
|
text: z.ZodString;
|
|
684
794
|
}, z.core.$strip>, {
|
|
685
|
-
signingSecret?: string;
|
|
795
|
+
signingSecret?: string | undefined;
|
|
686
796
|
}, {
|
|
687
797
|
request: (path: string, body?: Record<string, unknown>, tokenKind?: import("./client.js").SlackToken) => Promise<{
|
|
688
798
|
[x: string]: unknown;
|
|
@@ -712,11 +822,13 @@ export declare const createSlack: import("frogbot").PieceFactory<{
|
|
|
712
822
|
workspaceId: () => Promise<string>;
|
|
713
823
|
}, {
|
|
714
824
|
text: string;
|
|
715
|
-
}>
|
|
825
|
+
}> & {
|
|
826
|
+
slug: "markdownToSlack";
|
|
827
|
+
}) | (import("frogbot").PieceActionDefinition<z.ZodObject<{
|
|
716
828
|
channel: z.ZodString;
|
|
717
829
|
threadTimestamp: z.ZodString;
|
|
718
830
|
}, z.core.$strip>, z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>, {
|
|
719
|
-
signingSecret?: string;
|
|
831
|
+
signingSecret?: string | undefined;
|
|
720
832
|
}, {
|
|
721
833
|
request: (path: string, body?: Record<string, unknown>, tokenKind?: import("./client.js").SlackToken) => Promise<{
|
|
722
834
|
[x: string]: unknown;
|
|
@@ -744,13 +856,15 @@ export declare const createSlack: import("frogbot").PieceFactory<{
|
|
|
744
856
|
}) => Promise<Record<string, unknown>[]>;
|
|
745
857
|
token: (kind?: import("./client.js").SlackToken) => string | undefined;
|
|
746
858
|
workspaceId: () => Promise<string>;
|
|
747
|
-
}, Record<string, unknown>[]>
|
|
859
|
+
}, Record<string, unknown>[]> & {
|
|
860
|
+
slug: "listThreadMessages";
|
|
861
|
+
}) | (import("frogbot").PieceActionDefinition<z.ZodObject<{
|
|
748
862
|
channel: z.ZodString;
|
|
749
863
|
topic: z.ZodString;
|
|
750
864
|
}, z.core.$strip>, z.ZodObject<{
|
|
751
865
|
ok: z.ZodLiteral<true>;
|
|
752
866
|
}, z.core.$catchall<z.ZodUnknown>>, {
|
|
753
|
-
signingSecret?: string;
|
|
867
|
+
signingSecret?: string | undefined;
|
|
754
868
|
}, {
|
|
755
869
|
request: (path: string, body?: Record<string, unknown>, tokenKind?: import("./client.js").SlackToken) => Promise<{
|
|
756
870
|
[x: string]: unknown;
|
|
@@ -781,13 +895,15 @@ export declare const createSlack: import("frogbot").PieceFactory<{
|
|
|
781
895
|
}, {
|
|
782
896
|
[x: string]: unknown;
|
|
783
897
|
ok: true;
|
|
784
|
-
}>
|
|
898
|
+
}> & {
|
|
899
|
+
slug: "setChannelTopic";
|
|
900
|
+
}) | (import("frogbot").PieceActionDefinition<z.ZodObject<{
|
|
785
901
|
channel: z.ZodString;
|
|
786
|
-
|
|
902
|
+
timestamp: z.ZodString;
|
|
787
903
|
}, z.core.$strip>, z.ZodObject<{
|
|
788
904
|
ok: z.ZodLiteral<true>;
|
|
789
905
|
}, z.core.$catchall<z.ZodUnknown>>, {
|
|
790
|
-
signingSecret?: string;
|
|
906
|
+
signingSecret?: string | undefined;
|
|
791
907
|
}, {
|
|
792
908
|
request: (path: string, body?: Record<string, unknown>, tokenKind?: import("./client.js").SlackToken) => Promise<{
|
|
793
909
|
[x: string]: unknown;
|
|
@@ -818,14 +934,15 @@ export declare const createSlack: import("frogbot").PieceFactory<{
|
|
|
818
934
|
}, {
|
|
819
935
|
[x: string]: unknown;
|
|
820
936
|
ok: true;
|
|
821
|
-
}>
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
937
|
+
}> & {
|
|
938
|
+
slug: "getMessage";
|
|
939
|
+
}) | (import("frogbot").PieceActionDefinition<z.ZodObject<{
|
|
940
|
+
channel: z.ZodString;
|
|
941
|
+
userId: z.ZodString;
|
|
825
942
|
}, z.core.$strip>, z.ZodObject<{
|
|
826
943
|
ok: z.ZodLiteral<true>;
|
|
827
944
|
}, z.core.$catchall<z.ZodUnknown>>, {
|
|
828
|
-
signingSecret?: string;
|
|
945
|
+
signingSecret?: string | undefined;
|
|
829
946
|
}, {
|
|
830
947
|
request: (path: string, body?: Record<string, unknown>, tokenKind?: import("./client.js").SlackToken) => Promise<{
|
|
831
948
|
[x: string]: unknown;
|
|
@@ -856,61 +973,12 @@ export declare const createSlack: import("frogbot").PieceFactory<{
|
|
|
856
973
|
}, {
|
|
857
974
|
[x: string]: unknown;
|
|
858
975
|
ok: true;
|
|
859
|
-
}>
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
PUT: "PUT";
|
|
864
|
-
PATCH: "PATCH";
|
|
865
|
-
DELETE: "DELETE";
|
|
866
|
-
}>;
|
|
867
|
-
path: z.ZodString;
|
|
868
|
-
headers: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
869
|
-
queryParams: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>>;
|
|
870
|
-
body: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
871
|
-
useUserToken: z.ZodDefault<z.ZodBoolean>;
|
|
872
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
873
|
-
status: z.ZodNumber;
|
|
874
|
-
headers: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
875
|
-
body: z.ZodUnknown;
|
|
876
|
-
}, z.core.$strip>, {
|
|
877
|
-
signingSecret?: string;
|
|
878
|
-
}, {
|
|
879
|
-
request: (path: string, body?: Record<string, unknown>, tokenKind?: import("./client.js").SlackToken) => Promise<{
|
|
880
|
-
[x: string]: unknown;
|
|
881
|
-
ok: true;
|
|
882
|
-
}>;
|
|
883
|
-
raw: ({ path, method, body, headers, token: tokenKind, }: {
|
|
884
|
-
path: string;
|
|
885
|
-
method?: string;
|
|
886
|
-
body?: BodyInit | Record<string, unknown>;
|
|
887
|
-
headers?: HeadersInit;
|
|
888
|
-
token?: import("./client.js").SlackToken;
|
|
889
|
-
}) => Promise<{
|
|
890
|
-
status: number;
|
|
891
|
-
headers: {
|
|
892
|
-
[k: string]: string;
|
|
893
|
-
};
|
|
894
|
-
body: any;
|
|
895
|
-
}>;
|
|
896
|
-
paginate: ({ path, body, item, token: tokenKind, limit, }: {
|
|
897
|
-
path: string;
|
|
898
|
-
body?: Record<string, unknown>;
|
|
899
|
-
item: string;
|
|
900
|
-
token?: import("./client.js").SlackToken;
|
|
901
|
-
limit?: number;
|
|
902
|
-
}) => Promise<Record<string, unknown>[]>;
|
|
903
|
-
token: (kind?: import("./client.js").SlackToken) => string | undefined;
|
|
904
|
-
workspaceId: () => Promise<string>;
|
|
905
|
-
}, {
|
|
906
|
-
status: number;
|
|
907
|
-
headers: Record<string, string>;
|
|
908
|
-
body: unknown;
|
|
909
|
-
}>)[];
|
|
910
|
-
readonly triggers: (import("frogbot").PieceAppTrigger<z.ZodObject<{
|
|
911
|
-
ignoreBots: z.ZodDefault<z.ZodBoolean>;
|
|
976
|
+
}> & {
|
|
977
|
+
slug: "inviteUserToChannel";
|
|
978
|
+
}) | (import("frogbot").PieceActionDefinition<z.ZodObject<{
|
|
979
|
+
handle: z.ZodString;
|
|
912
980
|
}, z.core.$strip>, z.ZodRecord<z.ZodString, z.ZodUnknown>, {
|
|
913
|
-
signingSecret?: string;
|
|
981
|
+
signingSecret?: string | undefined;
|
|
914
982
|
}, {
|
|
915
983
|
request: (path: string, body?: Record<string, unknown>, tokenKind?: import("./client.js").SlackToken) => Promise<{
|
|
916
984
|
[x: string]: unknown;
|
|
@@ -938,12 +1006,16 @@ export declare const createSlack: import("frogbot").PieceFactory<{
|
|
|
938
1006
|
}) => Promise<Record<string, unknown>[]>;
|
|
939
1007
|
token: (kind?: import("./client.js").SlackToken) => string | undefined;
|
|
940
1008
|
workspaceId: () => Promise<string>;
|
|
941
|
-
}
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
|
|
1009
|
+
}, Record<string, unknown>> & {
|
|
1010
|
+
slug: "getUserGroupByHandle";
|
|
1011
|
+
}) | (import("frogbot").PieceActionDefinition<z.ZodObject<{
|
|
1012
|
+
handle: z.ZodString;
|
|
1013
|
+
userIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1014
|
+
appendUsers: z.ZodDefault<z.ZodBoolean>;
|
|
1015
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1016
|
+
ok: z.ZodLiteral<true>;
|
|
1017
|
+
}, z.core.$catchall<z.ZodUnknown>>, {
|
|
1018
|
+
signingSecret?: string | undefined;
|
|
947
1019
|
}, {
|
|
948
1020
|
request: (path: string, body?: Record<string, unknown>, tokenKind?: import("./client.js").SlackToken) => Promise<{
|
|
949
1021
|
[x: string]: unknown;
|
|
@@ -971,42 +1043,30 @@ export declare const createSlack: import("frogbot").PieceFactory<{
|
|
|
971
1043
|
}) => Promise<Record<string, unknown>[]>;
|
|
972
1044
|
token: (kind?: import("./client.js").SlackToken) => string | undefined;
|
|
973
1045
|
workspaceId: () => Promise<string>;
|
|
974
|
-
}> | import("frogbot").PieceAppTrigger<z.ZodObject<{}, z.core.$strip>, z.ZodRecord<z.ZodString, z.ZodUnknown>, {
|
|
975
|
-
signingSecret?: string;
|
|
976
1046
|
}, {
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
status: number;
|
|
989
|
-
headers: {
|
|
990
|
-
[k: string]: string;
|
|
991
|
-
};
|
|
992
|
-
body: any;
|
|
1047
|
+
[x: string]: unknown;
|
|
1048
|
+
ok: true;
|
|
1049
|
+
}> & {
|
|
1050
|
+
slug: "updateUserGroupMembers";
|
|
1051
|
+
}) | (import("frogbot").PieceActionDefinition<z.ZodObject<{
|
|
1052
|
+
method: z.ZodEnum<{
|
|
1053
|
+
GET: "GET";
|
|
1054
|
+
POST: "POST";
|
|
1055
|
+
PUT: "PUT";
|
|
1056
|
+
PATCH: "PATCH";
|
|
1057
|
+
DELETE: "DELETE";
|
|
993
1058
|
}>;
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
}
|
|
1004
|
-
|
|
1005
|
-
view_submission: "view_submission";
|
|
1006
|
-
view_closed: "view_closed";
|
|
1007
|
-
}>>;
|
|
1008
|
-
}, z.core.$strip>, z.ZodRecord<z.ZodString, z.ZodUnknown>, {
|
|
1009
|
-
signingSecret?: string;
|
|
1059
|
+
path: z.ZodString;
|
|
1060
|
+
headers: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1061
|
+
queryParams: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>>;
|
|
1062
|
+
body: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1063
|
+
useUserToken: z.ZodDefault<z.ZodBoolean>;
|
|
1064
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1065
|
+
status: z.ZodNumber;
|
|
1066
|
+
headers: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
1067
|
+
body: z.ZodUnknown;
|
|
1068
|
+
}, z.core.$strip>, {
|
|
1069
|
+
signingSecret?: string | undefined;
|
|
1010
1070
|
}, {
|
|
1011
1071
|
request: (path: string, body?: Record<string, unknown>, tokenKind?: import("./client.js").SlackToken) => Promise<{
|
|
1012
1072
|
[x: string]: unknown;
|
|
@@ -1034,6 +1094,680 @@ export declare const createSlack: import("frogbot").PieceFactory<{
|
|
|
1034
1094
|
}) => Promise<Record<string, unknown>[]>;
|
|
1035
1095
|
token: (kind?: import("./client.js").SlackToken) => string | undefined;
|
|
1036
1096
|
workspaceId: () => Promise<string>;
|
|
1037
|
-
}
|
|
1097
|
+
}, {
|
|
1098
|
+
status: number;
|
|
1099
|
+
headers: Record<string, string>;
|
|
1100
|
+
body: unknown;
|
|
1101
|
+
}> & {
|
|
1102
|
+
slug: "customApiCall";
|
|
1103
|
+
}))[];
|
|
1104
|
+
readonly triggers: (({
|
|
1105
|
+
slug: string;
|
|
1106
|
+
label?: string;
|
|
1107
|
+
description: string;
|
|
1108
|
+
input: z.ZodObject<{
|
|
1109
|
+
ignoreBots: z.ZodDefault<z.ZodBoolean>;
|
|
1110
|
+
}, z.core.$strip>;
|
|
1111
|
+
output?: z.ZodRecord<z.ZodString, z.ZodUnknown> | undefined;
|
|
1112
|
+
sample?: Record<string, unknown> | undefined;
|
|
1113
|
+
} & {
|
|
1114
|
+
type: "app";
|
|
1115
|
+
event: string;
|
|
1116
|
+
run(args: import("frogbot").PieceRunArgs<{
|
|
1117
|
+
ignoreBots: boolean;
|
|
1118
|
+
}, {
|
|
1119
|
+
signingSecret?: string | undefined;
|
|
1120
|
+
}, {
|
|
1121
|
+
request: (path: string, body?: Record<string, unknown>, tokenKind?: import("./client.js").SlackToken) => Promise<{
|
|
1122
|
+
[x: string]: unknown;
|
|
1123
|
+
ok: true;
|
|
1124
|
+
}>;
|
|
1125
|
+
raw: ({ path, method, body, headers, token: tokenKind, }: {
|
|
1126
|
+
path: string;
|
|
1127
|
+
method?: string;
|
|
1128
|
+
body?: BodyInit | Record<string, unknown>;
|
|
1129
|
+
headers?: HeadersInit;
|
|
1130
|
+
token?: import("./client.js").SlackToken;
|
|
1131
|
+
}) => Promise<{
|
|
1132
|
+
status: number;
|
|
1133
|
+
headers: {
|
|
1134
|
+
[k: string]: string;
|
|
1135
|
+
};
|
|
1136
|
+
body: any;
|
|
1137
|
+
}>;
|
|
1138
|
+
paginate: ({ path, body, item, token: tokenKind, limit, }: {
|
|
1139
|
+
path: string;
|
|
1140
|
+
body?: Record<string, unknown>;
|
|
1141
|
+
item: string;
|
|
1142
|
+
token?: import("./client.js").SlackToken;
|
|
1143
|
+
limit?: number;
|
|
1144
|
+
}) => Promise<Record<string, unknown>[]>;
|
|
1145
|
+
token: (kind?: import("./client.js").SlackToken) => string | undefined;
|
|
1146
|
+
workspaceId: () => Promise<string>;
|
|
1147
|
+
}>): Promise<import("frogbot").TriggerEvent<Record<string, unknown>>[]>;
|
|
1148
|
+
} & {
|
|
1149
|
+
slug: "messageCreated";
|
|
1150
|
+
}) | ({
|
|
1151
|
+
slug: string;
|
|
1152
|
+
label?: string;
|
|
1153
|
+
description: string;
|
|
1154
|
+
input: z.ZodObject<{
|
|
1155
|
+
ignoreBots: z.ZodDefault<z.ZodBoolean>;
|
|
1156
|
+
channel: z.ZodString;
|
|
1157
|
+
}, z.core.$strip>;
|
|
1158
|
+
output?: z.ZodRecord<z.ZodString, z.ZodUnknown> | undefined;
|
|
1159
|
+
sample?: Record<string, unknown> | undefined;
|
|
1160
|
+
} & {
|
|
1161
|
+
type: "app";
|
|
1162
|
+
event: string;
|
|
1163
|
+
run(args: import("frogbot").PieceRunArgs<{
|
|
1164
|
+
ignoreBots: boolean;
|
|
1165
|
+
channel: string;
|
|
1166
|
+
}, {
|
|
1167
|
+
signingSecret?: string | undefined;
|
|
1168
|
+
}, {
|
|
1169
|
+
request: (path: string, body?: Record<string, unknown>, tokenKind?: import("./client.js").SlackToken) => Promise<{
|
|
1170
|
+
[x: string]: unknown;
|
|
1171
|
+
ok: true;
|
|
1172
|
+
}>;
|
|
1173
|
+
raw: ({ path, method, body, headers, token: tokenKind, }: {
|
|
1174
|
+
path: string;
|
|
1175
|
+
method?: string;
|
|
1176
|
+
body?: BodyInit | Record<string, unknown>;
|
|
1177
|
+
headers?: HeadersInit;
|
|
1178
|
+
token?: import("./client.js").SlackToken;
|
|
1179
|
+
}) => Promise<{
|
|
1180
|
+
status: number;
|
|
1181
|
+
headers: {
|
|
1182
|
+
[k: string]: string;
|
|
1183
|
+
};
|
|
1184
|
+
body: any;
|
|
1185
|
+
}>;
|
|
1186
|
+
paginate: ({ path, body, item, token: tokenKind, limit, }: {
|
|
1187
|
+
path: string;
|
|
1188
|
+
body?: Record<string, unknown>;
|
|
1189
|
+
item: string;
|
|
1190
|
+
token?: import("./client.js").SlackToken;
|
|
1191
|
+
limit?: number;
|
|
1192
|
+
}) => Promise<Record<string, unknown>[]>;
|
|
1193
|
+
token: (kind?: import("./client.js").SlackToken) => string | undefined;
|
|
1194
|
+
workspaceId: () => Promise<string>;
|
|
1195
|
+
}>): Promise<import("frogbot").TriggerEvent<Record<string, unknown>>[]>;
|
|
1196
|
+
} & {
|
|
1197
|
+
slug: "channelMessageCreated";
|
|
1198
|
+
}) | ({
|
|
1199
|
+
slug: string;
|
|
1200
|
+
label?: string;
|
|
1201
|
+
description: string;
|
|
1202
|
+
input: z.ZodObject<{
|
|
1203
|
+
ignoreSelfMessages: z.ZodDefault<z.ZodBoolean>;
|
|
1204
|
+
ignoreBots: z.ZodDefault<z.ZodBoolean>;
|
|
1205
|
+
}, z.core.$strip>;
|
|
1206
|
+
output?: z.ZodRecord<z.ZodString, z.ZodUnknown> | undefined;
|
|
1207
|
+
sample?: Record<string, unknown> | undefined;
|
|
1208
|
+
} & {
|
|
1209
|
+
type: "app";
|
|
1210
|
+
event: string;
|
|
1211
|
+
run(args: import("frogbot").PieceRunArgs<{
|
|
1212
|
+
ignoreSelfMessages: boolean;
|
|
1213
|
+
ignoreBots: boolean;
|
|
1214
|
+
}, {
|
|
1215
|
+
signingSecret?: string | undefined;
|
|
1216
|
+
}, {
|
|
1217
|
+
request: (path: string, body?: Record<string, unknown>, tokenKind?: import("./client.js").SlackToken) => Promise<{
|
|
1218
|
+
[x: string]: unknown;
|
|
1219
|
+
ok: true;
|
|
1220
|
+
}>;
|
|
1221
|
+
raw: ({ path, method, body, headers, token: tokenKind, }: {
|
|
1222
|
+
path: string;
|
|
1223
|
+
method?: string;
|
|
1224
|
+
body?: BodyInit | Record<string, unknown>;
|
|
1225
|
+
headers?: HeadersInit;
|
|
1226
|
+
token?: import("./client.js").SlackToken;
|
|
1227
|
+
}) => Promise<{
|
|
1228
|
+
status: number;
|
|
1229
|
+
headers: {
|
|
1230
|
+
[k: string]: string;
|
|
1231
|
+
};
|
|
1232
|
+
body: any;
|
|
1233
|
+
}>;
|
|
1234
|
+
paginate: ({ path, body, item, token: tokenKind, limit, }: {
|
|
1235
|
+
path: string;
|
|
1236
|
+
body?: Record<string, unknown>;
|
|
1237
|
+
item: string;
|
|
1238
|
+
token?: import("./client.js").SlackToken;
|
|
1239
|
+
limit?: number;
|
|
1240
|
+
}) => Promise<Record<string, unknown>[]>;
|
|
1241
|
+
token: (kind?: import("./client.js").SlackToken) => string | undefined;
|
|
1242
|
+
workspaceId: () => Promise<string>;
|
|
1243
|
+
}>): Promise<import("frogbot").TriggerEvent<Record<string, unknown>>[]>;
|
|
1244
|
+
} & {
|
|
1245
|
+
slug: "directMessageCreated";
|
|
1246
|
+
}) | ({
|
|
1247
|
+
slug: string;
|
|
1248
|
+
label?: string;
|
|
1249
|
+
description: string;
|
|
1250
|
+
input: z.ZodObject<{
|
|
1251
|
+
users: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
1252
|
+
userGroups: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
1253
|
+
channels: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
1254
|
+
ignoreBots: z.ZodDefault<z.ZodBoolean>;
|
|
1255
|
+
removeMention: z.ZodDefault<z.ZodBoolean>;
|
|
1256
|
+
}, z.core.$strip>;
|
|
1257
|
+
output?: z.ZodRecord<z.ZodString, z.ZodUnknown> | undefined;
|
|
1258
|
+
sample?: Record<string, unknown> | undefined;
|
|
1259
|
+
} & {
|
|
1260
|
+
type: "app";
|
|
1261
|
+
event: string;
|
|
1262
|
+
run(args: import("frogbot").PieceRunArgs<{
|
|
1263
|
+
users: string[];
|
|
1264
|
+
userGroups: string[];
|
|
1265
|
+
channels: string[];
|
|
1266
|
+
ignoreBots: boolean;
|
|
1267
|
+
removeMention: boolean;
|
|
1268
|
+
}, {
|
|
1269
|
+
signingSecret?: string | undefined;
|
|
1270
|
+
}, {
|
|
1271
|
+
request: (path: string, body?: Record<string, unknown>, tokenKind?: import("./client.js").SlackToken) => Promise<{
|
|
1272
|
+
[x: string]: unknown;
|
|
1273
|
+
ok: true;
|
|
1274
|
+
}>;
|
|
1275
|
+
raw: ({ path, method, body, headers, token: tokenKind, }: {
|
|
1276
|
+
path: string;
|
|
1277
|
+
method?: string;
|
|
1278
|
+
body?: BodyInit | Record<string, unknown>;
|
|
1279
|
+
headers?: HeadersInit;
|
|
1280
|
+
token?: import("./client.js").SlackToken;
|
|
1281
|
+
}) => Promise<{
|
|
1282
|
+
status: number;
|
|
1283
|
+
headers: {
|
|
1284
|
+
[k: string]: string;
|
|
1285
|
+
};
|
|
1286
|
+
body: any;
|
|
1287
|
+
}>;
|
|
1288
|
+
paginate: ({ path, body, item, token: tokenKind, limit, }: {
|
|
1289
|
+
path: string;
|
|
1290
|
+
body?: Record<string, unknown>;
|
|
1291
|
+
item: string;
|
|
1292
|
+
token?: import("./client.js").SlackToken;
|
|
1293
|
+
limit?: number;
|
|
1294
|
+
}) => Promise<Record<string, unknown>[]>;
|
|
1295
|
+
token: (kind?: import("./client.js").SlackToken) => string | undefined;
|
|
1296
|
+
workspaceId: () => Promise<string>;
|
|
1297
|
+
}>): Promise<import("frogbot").TriggerEvent<Record<string, unknown>>[]>;
|
|
1298
|
+
} & {
|
|
1299
|
+
slug: "channelMentionCreated";
|
|
1300
|
+
}) | ({
|
|
1301
|
+
slug: string;
|
|
1302
|
+
label?: string;
|
|
1303
|
+
description: string;
|
|
1304
|
+
input: z.ZodObject<{
|
|
1305
|
+
emojis: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
1306
|
+
user: z.ZodOptional<z.ZodString>;
|
|
1307
|
+
channels: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
1308
|
+
}, z.core.$strip>;
|
|
1309
|
+
output?: z.ZodRecord<z.ZodString, z.ZodUnknown> | undefined;
|
|
1310
|
+
sample?: Record<string, unknown> | undefined;
|
|
1311
|
+
} & {
|
|
1312
|
+
type: "app";
|
|
1313
|
+
event: string;
|
|
1314
|
+
run(args: import("frogbot").PieceRunArgs<{
|
|
1315
|
+
emojis: string[];
|
|
1316
|
+
channels: string[];
|
|
1317
|
+
user?: string | undefined;
|
|
1318
|
+
}, {
|
|
1319
|
+
signingSecret?: string | undefined;
|
|
1320
|
+
}, {
|
|
1321
|
+
request: (path: string, body?: Record<string, unknown>, tokenKind?: import("./client.js").SlackToken) => Promise<{
|
|
1322
|
+
[x: string]: unknown;
|
|
1323
|
+
ok: true;
|
|
1324
|
+
}>;
|
|
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
|
+
paginate: ({ path, body, item, token: tokenKind, limit, }: {
|
|
1339
|
+
path: string;
|
|
1340
|
+
body?: Record<string, unknown>;
|
|
1341
|
+
item: string;
|
|
1342
|
+
token?: import("./client.js").SlackToken;
|
|
1343
|
+
limit?: number;
|
|
1344
|
+
}) => Promise<Record<string, unknown>[]>;
|
|
1345
|
+
token: (kind?: import("./client.js").SlackToken) => string | undefined;
|
|
1346
|
+
workspaceId: () => Promise<string>;
|
|
1347
|
+
}>): Promise<import("frogbot").TriggerEvent<Record<string, unknown>>[]>;
|
|
1348
|
+
} & {
|
|
1349
|
+
slug: "reactionAdded";
|
|
1350
|
+
}) | ({
|
|
1351
|
+
slug: string;
|
|
1352
|
+
label?: string;
|
|
1353
|
+
description: string;
|
|
1354
|
+
input: z.ZodObject<{
|
|
1355
|
+
emojis: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
1356
|
+
user: z.ZodOptional<z.ZodString>;
|
|
1357
|
+
channels: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
1358
|
+
}, z.core.$strip>;
|
|
1359
|
+
output?: z.ZodRecord<z.ZodString, z.ZodUnknown> | undefined;
|
|
1360
|
+
sample?: Record<string, unknown> | undefined;
|
|
1361
|
+
} & {
|
|
1362
|
+
type: "app";
|
|
1363
|
+
event: string;
|
|
1364
|
+
run(args: import("frogbot").PieceRunArgs<{
|
|
1365
|
+
emojis: string[];
|
|
1366
|
+
channels: string[];
|
|
1367
|
+
user?: string | undefined;
|
|
1368
|
+
}, {
|
|
1369
|
+
signingSecret?: string | undefined;
|
|
1370
|
+
}, {
|
|
1371
|
+
request: (path: string, body?: Record<string, unknown>, tokenKind?: import("./client.js").SlackToken) => Promise<{
|
|
1372
|
+
[x: string]: unknown;
|
|
1373
|
+
ok: true;
|
|
1374
|
+
}>;
|
|
1375
|
+
raw: ({ path, method, body, headers, token: tokenKind, }: {
|
|
1376
|
+
path: string;
|
|
1377
|
+
method?: string;
|
|
1378
|
+
body?: BodyInit | Record<string, unknown>;
|
|
1379
|
+
headers?: HeadersInit;
|
|
1380
|
+
token?: import("./client.js").SlackToken;
|
|
1381
|
+
}) => Promise<{
|
|
1382
|
+
status: number;
|
|
1383
|
+
headers: {
|
|
1384
|
+
[k: string]: string;
|
|
1385
|
+
};
|
|
1386
|
+
body: any;
|
|
1387
|
+
}>;
|
|
1388
|
+
paginate: ({ path, body, item, token: tokenKind, limit, }: {
|
|
1389
|
+
path: string;
|
|
1390
|
+
body?: Record<string, unknown>;
|
|
1391
|
+
item: string;
|
|
1392
|
+
token?: import("./client.js").SlackToken;
|
|
1393
|
+
limit?: number;
|
|
1394
|
+
}) => Promise<Record<string, unknown>[]>;
|
|
1395
|
+
token: (kind?: import("./client.js").SlackToken) => string | undefined;
|
|
1396
|
+
workspaceId: () => Promise<string>;
|
|
1397
|
+
}>): Promise<import("frogbot").TriggerEvent<Record<string, unknown>>[]>;
|
|
1398
|
+
} & {
|
|
1399
|
+
slug: "reactionRemoved";
|
|
1400
|
+
}) | ({
|
|
1401
|
+
slug: string;
|
|
1402
|
+
label?: string;
|
|
1403
|
+
description: string;
|
|
1404
|
+
input: z.ZodObject<{}, z.core.$strip>;
|
|
1405
|
+
output?: z.ZodRecord<z.ZodString, z.ZodUnknown> | undefined;
|
|
1406
|
+
sample?: Record<string, unknown> | undefined;
|
|
1407
|
+
} & {
|
|
1408
|
+
type: "app";
|
|
1409
|
+
event: string;
|
|
1410
|
+
run(args: import("frogbot").PieceRunArgs<Record<string, never>, {
|
|
1411
|
+
signingSecret?: string | undefined;
|
|
1412
|
+
}, {
|
|
1413
|
+
request: (path: string, body?: Record<string, unknown>, tokenKind?: import("./client.js").SlackToken) => Promise<{
|
|
1414
|
+
[x: string]: unknown;
|
|
1415
|
+
ok: true;
|
|
1416
|
+
}>;
|
|
1417
|
+
raw: ({ path, method, body, headers, token: tokenKind, }: {
|
|
1418
|
+
path: string;
|
|
1419
|
+
method?: string;
|
|
1420
|
+
body?: BodyInit | Record<string, unknown>;
|
|
1421
|
+
headers?: HeadersInit;
|
|
1422
|
+
token?: import("./client.js").SlackToken;
|
|
1423
|
+
}) => Promise<{
|
|
1424
|
+
status: number;
|
|
1425
|
+
headers: {
|
|
1426
|
+
[k: string]: string;
|
|
1427
|
+
};
|
|
1428
|
+
body: any;
|
|
1429
|
+
}>;
|
|
1430
|
+
paginate: ({ path, body, item, token: tokenKind, limit, }: {
|
|
1431
|
+
path: string;
|
|
1432
|
+
body?: Record<string, unknown>;
|
|
1433
|
+
item: string;
|
|
1434
|
+
token?: import("./client.js").SlackToken;
|
|
1435
|
+
limit?: number;
|
|
1436
|
+
}) => Promise<Record<string, unknown>[]>;
|
|
1437
|
+
token: (kind?: import("./client.js").SlackToken) => string | undefined;
|
|
1438
|
+
workspaceId: () => Promise<string>;
|
|
1439
|
+
}>): Promise<import("frogbot").TriggerEvent<Record<string, unknown>>[]>;
|
|
1440
|
+
} & {
|
|
1441
|
+
slug: "channelCreated";
|
|
1442
|
+
}) | ({
|
|
1443
|
+
slug: string;
|
|
1444
|
+
label?: string;
|
|
1445
|
+
description: string;
|
|
1446
|
+
input: z.ZodObject<{
|
|
1447
|
+
user: z.ZodString;
|
|
1448
|
+
commands: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
1449
|
+
channels: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
1450
|
+
ignoreBots: z.ZodDefault<z.ZodBoolean>;
|
|
1451
|
+
}, z.core.$strip>;
|
|
1452
|
+
output?: z.ZodRecord<z.ZodString, z.ZodUnknown> | undefined;
|
|
1453
|
+
sample?: Record<string, unknown> | undefined;
|
|
1454
|
+
} & {
|
|
1455
|
+
type: "app";
|
|
1456
|
+
event: string;
|
|
1457
|
+
run(args: import("frogbot").PieceRunArgs<{
|
|
1458
|
+
user: string;
|
|
1459
|
+
commands: string[];
|
|
1460
|
+
channels: string[];
|
|
1461
|
+
ignoreBots: boolean;
|
|
1462
|
+
}, {
|
|
1463
|
+
signingSecret?: string | undefined;
|
|
1464
|
+
}, {
|
|
1465
|
+
request: (path: string, body?: Record<string, unknown>, tokenKind?: import("./client.js").SlackToken) => Promise<{
|
|
1466
|
+
[x: string]: unknown;
|
|
1467
|
+
ok: true;
|
|
1468
|
+
}>;
|
|
1469
|
+
raw: ({ path, method, body, headers, token: tokenKind, }: {
|
|
1470
|
+
path: string;
|
|
1471
|
+
method?: string;
|
|
1472
|
+
body?: BodyInit | Record<string, unknown>;
|
|
1473
|
+
headers?: HeadersInit;
|
|
1474
|
+
token?: import("./client.js").SlackToken;
|
|
1475
|
+
}) => Promise<{
|
|
1476
|
+
status: number;
|
|
1477
|
+
headers: {
|
|
1478
|
+
[k: string]: string;
|
|
1479
|
+
};
|
|
1480
|
+
body: any;
|
|
1481
|
+
}>;
|
|
1482
|
+
paginate: ({ path, body, item, token: tokenKind, limit, }: {
|
|
1483
|
+
path: string;
|
|
1484
|
+
body?: Record<string, unknown>;
|
|
1485
|
+
item: string;
|
|
1486
|
+
token?: import("./client.js").SlackToken;
|
|
1487
|
+
limit?: number;
|
|
1488
|
+
}) => Promise<Record<string, unknown>[]>;
|
|
1489
|
+
token: (kind?: import("./client.js").SlackToken) => string | undefined;
|
|
1490
|
+
workspaceId: () => Promise<string>;
|
|
1491
|
+
}>): Promise<import("frogbot").TriggerEvent<Record<string, unknown>>[]>;
|
|
1492
|
+
} & {
|
|
1493
|
+
slug: "channelCommandCreated";
|
|
1494
|
+
}) | ({
|
|
1495
|
+
slug: string;
|
|
1496
|
+
label?: string;
|
|
1497
|
+
description: string;
|
|
1498
|
+
input: z.ZodObject<{
|
|
1499
|
+
ignoreSelfMessages: z.ZodDefault<z.ZodBoolean>;
|
|
1500
|
+
ignoreBots: z.ZodDefault<z.ZodBoolean>;
|
|
1501
|
+
user: z.ZodString;
|
|
1502
|
+
}, z.core.$strip>;
|
|
1503
|
+
output?: z.ZodRecord<z.ZodString, z.ZodUnknown> | undefined;
|
|
1504
|
+
sample?: Record<string, unknown> | undefined;
|
|
1505
|
+
} & {
|
|
1506
|
+
type: "app";
|
|
1507
|
+
event: string;
|
|
1508
|
+
run(args: import("frogbot").PieceRunArgs<{
|
|
1509
|
+
ignoreSelfMessages: boolean;
|
|
1510
|
+
ignoreBots: boolean;
|
|
1511
|
+
user: string;
|
|
1512
|
+
}, {
|
|
1513
|
+
signingSecret?: string | undefined;
|
|
1514
|
+
}, {
|
|
1515
|
+
request: (path: string, body?: Record<string, unknown>, tokenKind?: import("./client.js").SlackToken) => Promise<{
|
|
1516
|
+
[x: string]: unknown;
|
|
1517
|
+
ok: true;
|
|
1518
|
+
}>;
|
|
1519
|
+
raw: ({ path, method, body, headers, token: tokenKind, }: {
|
|
1520
|
+
path: string;
|
|
1521
|
+
method?: string;
|
|
1522
|
+
body?: BodyInit | Record<string, unknown>;
|
|
1523
|
+
headers?: HeadersInit;
|
|
1524
|
+
token?: import("./client.js").SlackToken;
|
|
1525
|
+
}) => Promise<{
|
|
1526
|
+
status: number;
|
|
1527
|
+
headers: {
|
|
1528
|
+
[k: string]: string;
|
|
1529
|
+
};
|
|
1530
|
+
body: any;
|
|
1531
|
+
}>;
|
|
1532
|
+
paginate: ({ path, body, item, token: tokenKind, limit, }: {
|
|
1533
|
+
path: string;
|
|
1534
|
+
body?: Record<string, unknown>;
|
|
1535
|
+
item: string;
|
|
1536
|
+
token?: import("./client.js").SlackToken;
|
|
1537
|
+
limit?: number;
|
|
1538
|
+
}) => Promise<Record<string, unknown>[]>;
|
|
1539
|
+
token: (kind?: import("./client.js").SlackToken) => string | undefined;
|
|
1540
|
+
workspaceId: () => Promise<string>;
|
|
1541
|
+
}>): Promise<import("frogbot").TriggerEvent<Record<string, unknown>>[]>;
|
|
1542
|
+
} & {
|
|
1543
|
+
slug: "directMentionCreated";
|
|
1544
|
+
}) | ({
|
|
1545
|
+
slug: string;
|
|
1546
|
+
label?: string;
|
|
1547
|
+
description: string;
|
|
1548
|
+
input: z.ZodObject<{
|
|
1549
|
+
user: z.ZodString;
|
|
1550
|
+
ignoreBots: z.ZodDefault<z.ZodBoolean>;
|
|
1551
|
+
commands: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
1552
|
+
ignoreSelfMessages: z.ZodDefault<z.ZodBoolean>;
|
|
1553
|
+
}, z.core.$strip>;
|
|
1554
|
+
output?: z.ZodRecord<z.ZodString, z.ZodUnknown> | undefined;
|
|
1555
|
+
sample?: Record<string, unknown> | undefined;
|
|
1556
|
+
} & {
|
|
1557
|
+
type: "app";
|
|
1558
|
+
event: string;
|
|
1559
|
+
run(args: import("frogbot").PieceRunArgs<{
|
|
1560
|
+
user: string;
|
|
1561
|
+
ignoreBots: boolean;
|
|
1562
|
+
commands: string[];
|
|
1563
|
+
ignoreSelfMessages: boolean;
|
|
1564
|
+
}, {
|
|
1565
|
+
signingSecret?: string | undefined;
|
|
1566
|
+
}, {
|
|
1567
|
+
request: (path: string, body?: Record<string, unknown>, tokenKind?: import("./client.js").SlackToken) => Promise<{
|
|
1568
|
+
[x: string]: unknown;
|
|
1569
|
+
ok: true;
|
|
1570
|
+
}>;
|
|
1571
|
+
raw: ({ path, method, body, headers, token: tokenKind, }: {
|
|
1572
|
+
path: string;
|
|
1573
|
+
method?: string;
|
|
1574
|
+
body?: BodyInit | Record<string, unknown>;
|
|
1575
|
+
headers?: HeadersInit;
|
|
1576
|
+
token?: import("./client.js").SlackToken;
|
|
1577
|
+
}) => Promise<{
|
|
1578
|
+
status: number;
|
|
1579
|
+
headers: {
|
|
1580
|
+
[k: string]: string;
|
|
1581
|
+
};
|
|
1582
|
+
body: any;
|
|
1583
|
+
}>;
|
|
1584
|
+
paginate: ({ path, body, item, token: tokenKind, limit, }: {
|
|
1585
|
+
path: string;
|
|
1586
|
+
body?: Record<string, unknown>;
|
|
1587
|
+
item: string;
|
|
1588
|
+
token?: import("./client.js").SlackToken;
|
|
1589
|
+
limit?: number;
|
|
1590
|
+
}) => Promise<Record<string, unknown>[]>;
|
|
1591
|
+
token: (kind?: import("./client.js").SlackToken) => string | undefined;
|
|
1592
|
+
workspaceId: () => Promise<string>;
|
|
1593
|
+
}>): Promise<import("frogbot").TriggerEvent<Record<string, unknown>>[]>;
|
|
1594
|
+
} & {
|
|
1595
|
+
slug: "directCommandCreated";
|
|
1596
|
+
}) | ({
|
|
1597
|
+
slug: string;
|
|
1598
|
+
label?: string;
|
|
1599
|
+
description: string;
|
|
1600
|
+
input: z.ZodObject<{}, z.core.$strip>;
|
|
1601
|
+
output?: z.ZodRecord<z.ZodString, z.ZodUnknown> | undefined;
|
|
1602
|
+
sample?: Record<string, unknown> | undefined;
|
|
1603
|
+
} & {
|
|
1604
|
+
type: "app";
|
|
1605
|
+
event: string;
|
|
1606
|
+
run(args: import("frogbot").PieceRunArgs<Record<string, never>, {
|
|
1607
|
+
signingSecret?: string | undefined;
|
|
1608
|
+
}, {
|
|
1609
|
+
request: (path: string, body?: Record<string, unknown>, tokenKind?: import("./client.js").SlackToken) => Promise<{
|
|
1610
|
+
[x: string]: unknown;
|
|
1611
|
+
ok: true;
|
|
1612
|
+
}>;
|
|
1613
|
+
raw: ({ path, method, body, headers, token: tokenKind, }: {
|
|
1614
|
+
path: string;
|
|
1615
|
+
method?: string;
|
|
1616
|
+
body?: BodyInit | Record<string, unknown>;
|
|
1617
|
+
headers?: HeadersInit;
|
|
1618
|
+
token?: import("./client.js").SlackToken;
|
|
1619
|
+
}) => Promise<{
|
|
1620
|
+
status: number;
|
|
1621
|
+
headers: {
|
|
1622
|
+
[k: string]: string;
|
|
1623
|
+
};
|
|
1624
|
+
body: any;
|
|
1625
|
+
}>;
|
|
1626
|
+
paginate: ({ path, body, item, token: tokenKind, limit, }: {
|
|
1627
|
+
path: string;
|
|
1628
|
+
body?: Record<string, unknown>;
|
|
1629
|
+
item: string;
|
|
1630
|
+
token?: import("./client.js").SlackToken;
|
|
1631
|
+
limit?: number;
|
|
1632
|
+
}) => Promise<Record<string, unknown>[]>;
|
|
1633
|
+
token: (kind?: import("./client.js").SlackToken) => string | undefined;
|
|
1634
|
+
workspaceId: () => Promise<string>;
|
|
1635
|
+
}>): Promise<import("frogbot").TriggerEvent<Record<string, unknown>>[]>;
|
|
1636
|
+
} & {
|
|
1637
|
+
slug: "userJoined";
|
|
1638
|
+
}) | ({
|
|
1639
|
+
slug: string;
|
|
1640
|
+
label?: string;
|
|
1641
|
+
description: string;
|
|
1642
|
+
input: z.ZodObject<{}, z.core.$strip>;
|
|
1643
|
+
output?: z.ZodRecord<z.ZodString, z.ZodUnknown> | undefined;
|
|
1644
|
+
sample?: Record<string, unknown> | undefined;
|
|
1645
|
+
} & {
|
|
1646
|
+
type: "app";
|
|
1647
|
+
event: string;
|
|
1648
|
+
run(args: import("frogbot").PieceRunArgs<Record<string, never>, {
|
|
1649
|
+
signingSecret?: string | undefined;
|
|
1650
|
+
}, {
|
|
1651
|
+
request: (path: string, body?: Record<string, unknown>, tokenKind?: import("./client.js").SlackToken) => Promise<{
|
|
1652
|
+
[x: string]: unknown;
|
|
1653
|
+
ok: true;
|
|
1654
|
+
}>;
|
|
1655
|
+
raw: ({ path, method, body, headers, token: tokenKind, }: {
|
|
1656
|
+
path: string;
|
|
1657
|
+
method?: string;
|
|
1658
|
+
body?: BodyInit | Record<string, unknown>;
|
|
1659
|
+
headers?: HeadersInit;
|
|
1660
|
+
token?: import("./client.js").SlackToken;
|
|
1661
|
+
}) => Promise<{
|
|
1662
|
+
status: number;
|
|
1663
|
+
headers: {
|
|
1664
|
+
[k: string]: string;
|
|
1665
|
+
};
|
|
1666
|
+
body: any;
|
|
1667
|
+
}>;
|
|
1668
|
+
paginate: ({ path, body, item, token: tokenKind, limit, }: {
|
|
1669
|
+
path: string;
|
|
1670
|
+
body?: Record<string, unknown>;
|
|
1671
|
+
item: string;
|
|
1672
|
+
token?: import("./client.js").SlackToken;
|
|
1673
|
+
limit?: number;
|
|
1674
|
+
}) => Promise<Record<string, unknown>[]>;
|
|
1675
|
+
token: (kind?: import("./client.js").SlackToken) => string | undefined;
|
|
1676
|
+
workspaceId: () => Promise<string>;
|
|
1677
|
+
}>): Promise<import("frogbot").TriggerEvent<Record<string, unknown>>[]>;
|
|
1678
|
+
} & {
|
|
1679
|
+
slug: "messageSaved";
|
|
1680
|
+
}) | ({
|
|
1681
|
+
slug: string;
|
|
1682
|
+
label?: string;
|
|
1683
|
+
description: string;
|
|
1684
|
+
input: z.ZodObject<{}, z.core.$strip>;
|
|
1685
|
+
output?: z.ZodRecord<z.ZodString, z.ZodUnknown> | undefined;
|
|
1686
|
+
sample?: Record<string, unknown> | undefined;
|
|
1687
|
+
} & {
|
|
1688
|
+
type: "app";
|
|
1689
|
+
event: string;
|
|
1690
|
+
run(args: import("frogbot").PieceRunArgs<Record<string, never>, {
|
|
1691
|
+
signingSecret?: string | undefined;
|
|
1692
|
+
}, {
|
|
1693
|
+
request: (path: string, body?: Record<string, unknown>, tokenKind?: import("./client.js").SlackToken) => Promise<{
|
|
1694
|
+
[x: string]: unknown;
|
|
1695
|
+
ok: true;
|
|
1696
|
+
}>;
|
|
1697
|
+
raw: ({ path, method, body, headers, token: tokenKind, }: {
|
|
1698
|
+
path: string;
|
|
1699
|
+
method?: string;
|
|
1700
|
+
body?: BodyInit | Record<string, unknown>;
|
|
1701
|
+
headers?: HeadersInit;
|
|
1702
|
+
token?: import("./client.js").SlackToken;
|
|
1703
|
+
}) => Promise<{
|
|
1704
|
+
status: number;
|
|
1705
|
+
headers: {
|
|
1706
|
+
[k: string]: string;
|
|
1707
|
+
};
|
|
1708
|
+
body: any;
|
|
1709
|
+
}>;
|
|
1710
|
+
paginate: ({ path, body, item, token: tokenKind, limit, }: {
|
|
1711
|
+
path: string;
|
|
1712
|
+
body?: Record<string, unknown>;
|
|
1713
|
+
item: string;
|
|
1714
|
+
token?: import("./client.js").SlackToken;
|
|
1715
|
+
limit?: number;
|
|
1716
|
+
}) => Promise<Record<string, unknown>[]>;
|
|
1717
|
+
token: (kind?: import("./client.js").SlackToken) => string | undefined;
|
|
1718
|
+
workspaceId: () => Promise<string>;
|
|
1719
|
+
}>): Promise<import("frogbot").TriggerEvent<Record<string, unknown>>[]>;
|
|
1720
|
+
} & {
|
|
1721
|
+
slug: "customEmojiAdded";
|
|
1722
|
+
}) | ({
|
|
1723
|
+
slug: string;
|
|
1724
|
+
label?: string;
|
|
1725
|
+
description: string;
|
|
1726
|
+
input: z.ZodObject<{
|
|
1727
|
+
interactionType: z.ZodDefault<z.ZodEnum<{
|
|
1728
|
+
view_submission: "view_submission";
|
|
1729
|
+
view_closed: "view_closed";
|
|
1730
|
+
}>>;
|
|
1731
|
+
}, z.core.$strip>;
|
|
1732
|
+
output?: z.ZodRecord<z.ZodString, z.ZodUnknown> | undefined;
|
|
1733
|
+
sample?: Record<string, unknown> | undefined;
|
|
1734
|
+
} & {
|
|
1735
|
+
type: "app";
|
|
1736
|
+
event: string;
|
|
1737
|
+
run(args: import("frogbot").PieceRunArgs<{
|
|
1738
|
+
interactionType: "view_submission" | "view_closed";
|
|
1739
|
+
}, {
|
|
1740
|
+
signingSecret?: string | undefined;
|
|
1741
|
+
}, {
|
|
1742
|
+
request: (path: string, body?: Record<string, unknown>, tokenKind?: import("./client.js").SlackToken) => Promise<{
|
|
1743
|
+
[x: string]: unknown;
|
|
1744
|
+
ok: true;
|
|
1745
|
+
}>;
|
|
1746
|
+
raw: ({ path, method, body, headers, token: tokenKind, }: {
|
|
1747
|
+
path: string;
|
|
1748
|
+
method?: string;
|
|
1749
|
+
body?: BodyInit | Record<string, unknown>;
|
|
1750
|
+
headers?: HeadersInit;
|
|
1751
|
+
token?: import("./client.js").SlackToken;
|
|
1752
|
+
}) => Promise<{
|
|
1753
|
+
status: number;
|
|
1754
|
+
headers: {
|
|
1755
|
+
[k: string]: string;
|
|
1756
|
+
};
|
|
1757
|
+
body: any;
|
|
1758
|
+
}>;
|
|
1759
|
+
paginate: ({ path, body, item, token: tokenKind, limit, }: {
|
|
1760
|
+
path: string;
|
|
1761
|
+
body?: Record<string, unknown>;
|
|
1762
|
+
item: string;
|
|
1763
|
+
token?: import("./client.js").SlackToken;
|
|
1764
|
+
limit?: number;
|
|
1765
|
+
}) => Promise<Record<string, unknown>[]>;
|
|
1766
|
+
token: (kind?: import("./client.js").SlackToken) => string | undefined;
|
|
1767
|
+
workspaceId: () => Promise<string>;
|
|
1768
|
+
}>): Promise<import("frogbot").TriggerEvent<Record<string, unknown>>[]>;
|
|
1769
|
+
} & {
|
|
1770
|
+
slug: "modalInteraction";
|
|
1771
|
+
}))[];
|
|
1038
1772
|
}>;
|
|
1039
1773
|
//# sourceMappingURL=index.d.ts.map
|