@frogbotai/piece-slack 0.27.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 +3 -3
package/dist/actions.d.ts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import type { PieceActionDefinition } from 'frogbot/pieces';
|
|
2
1
|
import { z } from 'zod';
|
|
3
2
|
import { type SlackToken } from './client.js';
|
|
4
|
-
export declare const sendDirectMessage: PieceActionDefinition<z.ZodObject<{
|
|
3
|
+
export declare const sendDirectMessage: import("frogbot").PieceActionDefinition<z.ZodObject<{
|
|
5
4
|
text: z.ZodString;
|
|
6
5
|
username: z.ZodOptional<z.ZodString>;
|
|
7
6
|
profilePicture: z.ZodOptional<z.ZodURL>;
|
|
@@ -14,7 +13,7 @@ export declare const sendDirectMessage: PieceActionDefinition<z.ZodObject<{
|
|
|
14
13
|
channel: z.ZodOptional<z.ZodString>;
|
|
15
14
|
ts: z.ZodOptional<z.ZodString>;
|
|
16
15
|
}, z.core.$catchall<z.ZodUnknown>>, {
|
|
17
|
-
signingSecret?: string;
|
|
16
|
+
signingSecret?: string | undefined;
|
|
18
17
|
}, {
|
|
19
18
|
request: (path: string, body?: Record<string, unknown>, tokenKind?: SlackToken) => Promise<{
|
|
20
19
|
[x: string]: unknown;
|
|
@@ -47,8 +46,10 @@ export declare const sendDirectMessage: PieceActionDefinition<z.ZodObject<{
|
|
|
47
46
|
ok: true;
|
|
48
47
|
channel?: string | undefined;
|
|
49
48
|
ts?: string | undefined;
|
|
50
|
-
}
|
|
51
|
-
|
|
49
|
+
}> & {
|
|
50
|
+
slug: "sendDirectMessage";
|
|
51
|
+
};
|
|
52
|
+
export declare const sendChannelMessage: import("frogbot").PieceActionDefinition<z.ZodObject<{
|
|
52
53
|
channel: z.ZodString;
|
|
53
54
|
text: z.ZodOptional<z.ZodString>;
|
|
54
55
|
sendAsBot: z.ZodDefault<z.ZodBoolean>;
|
|
@@ -66,7 +67,7 @@ export declare const sendChannelMessage: PieceActionDefinition<z.ZodObject<{
|
|
|
66
67
|
}, z.core.$strip>, z.ZodObject<{
|
|
67
68
|
ok: z.ZodLiteral<true>;
|
|
68
69
|
}, z.core.$catchall<z.ZodUnknown>>, {
|
|
69
|
-
signingSecret?: string;
|
|
70
|
+
signingSecret?: string | undefined;
|
|
70
71
|
}, {
|
|
71
72
|
request: (path: string, body?: Record<string, unknown>, tokenKind?: SlackToken) => Promise<{
|
|
72
73
|
[x: string]: unknown;
|
|
@@ -97,8 +98,10 @@ export declare const sendChannelMessage: PieceActionDefinition<z.ZodObject<{
|
|
|
97
98
|
}, {
|
|
98
99
|
[x: string]: unknown;
|
|
99
100
|
ok: true;
|
|
100
|
-
}
|
|
101
|
-
|
|
101
|
+
}> & {
|
|
102
|
+
slug: "sendChannelMessage";
|
|
103
|
+
};
|
|
104
|
+
export declare const addReaction: import("frogbot").PieceActionDefinition<z.ZodObject<{
|
|
102
105
|
channel: z.ZodString;
|
|
103
106
|
timestamp: z.ZodString;
|
|
104
107
|
reaction: z.ZodString;
|
|
@@ -106,7 +109,7 @@ export declare const addReaction: PieceActionDefinition<z.ZodObject<{
|
|
|
106
109
|
}, z.core.$strip>, z.ZodObject<{
|
|
107
110
|
ok: z.ZodLiteral<true>;
|
|
108
111
|
}, z.core.$catchall<z.ZodUnknown>>, {
|
|
109
|
-
signingSecret?: string;
|
|
112
|
+
signingSecret?: string | undefined;
|
|
110
113
|
}, {
|
|
111
114
|
request: (path: string, body?: Record<string, unknown>, tokenKind?: SlackToken) => Promise<{
|
|
112
115
|
[x: string]: unknown;
|
|
@@ -137,8 +140,10 @@ export declare const addReaction: PieceActionDefinition<z.ZodObject<{
|
|
|
137
140
|
}, {
|
|
138
141
|
[x: string]: unknown;
|
|
139
142
|
ok: true;
|
|
140
|
-
}
|
|
141
|
-
|
|
143
|
+
}> & {
|
|
144
|
+
slug: "addReaction";
|
|
145
|
+
};
|
|
146
|
+
export declare const uploadFile: import("frogbot").PieceActionDefinition<z.ZodObject<{
|
|
142
147
|
file: z.ZodObject<{
|
|
143
148
|
fileId: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
|
|
144
149
|
name: z.ZodOptional<z.ZodString>;
|
|
@@ -149,7 +154,7 @@ export declare const uploadFile: PieceActionDefinition<z.ZodObject<{
|
|
|
149
154
|
}, z.core.$strip>, z.ZodObject<{
|
|
150
155
|
ok: z.ZodLiteral<true>;
|
|
151
156
|
}, z.core.$catchall<z.ZodUnknown>>, {
|
|
152
|
-
signingSecret?: string;
|
|
157
|
+
signingSecret?: string | undefined;
|
|
153
158
|
}, {
|
|
154
159
|
request: (path: string, body?: Record<string, unknown>, tokenKind?: SlackToken) => Promise<{
|
|
155
160
|
[x: string]: unknown;
|
|
@@ -180,11 +185,13 @@ export declare const uploadFile: PieceActionDefinition<z.ZodObject<{
|
|
|
180
185
|
}, {
|
|
181
186
|
[x: string]: unknown;
|
|
182
187
|
ok: true;
|
|
183
|
-
}
|
|
184
|
-
|
|
188
|
+
}> & {
|
|
189
|
+
slug: "uploadFile";
|
|
190
|
+
};
|
|
191
|
+
export declare const getFile: import("frogbot").PieceActionDefinition<z.ZodObject<{
|
|
185
192
|
fileId: z.ZodString;
|
|
186
193
|
}, z.core.$strip>, z.ZodRecord<z.ZodString, z.ZodUnknown>, {
|
|
187
|
-
signingSecret?: string;
|
|
194
|
+
signingSecret?: string | undefined;
|
|
188
195
|
}, {
|
|
189
196
|
request: (path: string, body?: Record<string, unknown>, tokenKind?: SlackToken) => Promise<{
|
|
190
197
|
[x: string]: unknown;
|
|
@@ -212,11 +219,13 @@ export declare const getFile: PieceActionDefinition<z.ZodObject<{
|
|
|
212
219
|
}) => Promise<Record<string, unknown>[]>;
|
|
213
220
|
token: (kind?: SlackToken) => string | undefined;
|
|
214
221
|
workspaceId: () => Promise<string>;
|
|
215
|
-
}, Record<string, unknown
|
|
216
|
-
|
|
222
|
+
}, Record<string, unknown>> & {
|
|
223
|
+
slug: "getFile";
|
|
224
|
+
};
|
|
225
|
+
export declare const searchMessages: import("frogbot").PieceActionDefinition<z.ZodObject<{
|
|
217
226
|
query: z.ZodString;
|
|
218
227
|
}, z.core.$strip>, z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>, {
|
|
219
|
-
signingSecret?: string;
|
|
228
|
+
signingSecret?: string | undefined;
|
|
220
229
|
}, {
|
|
221
230
|
request: (path: string, body?: Record<string, unknown>, tokenKind?: SlackToken) => Promise<{
|
|
222
231
|
[x: string]: unknown;
|
|
@@ -244,13 +253,15 @@ export declare const searchMessages: PieceActionDefinition<z.ZodObject<{
|
|
|
244
253
|
}) => Promise<Record<string, unknown>[]>;
|
|
245
254
|
token: (kind?: SlackToken) => string | undefined;
|
|
246
255
|
workspaceId: () => Promise<string>;
|
|
247
|
-
}, Record<string, unknown>[]
|
|
248
|
-
|
|
256
|
+
}, Record<string, unknown>[]> & {
|
|
257
|
+
slug: "searchMessages";
|
|
258
|
+
};
|
|
259
|
+
export declare const findUserByEmail: import("frogbot").PieceActionDefinition<z.ZodObject<{
|
|
249
260
|
email: z.ZodEmail;
|
|
250
261
|
}, z.core.$strip>, z.ZodObject<{
|
|
251
262
|
ok: z.ZodLiteral<true>;
|
|
252
263
|
}, z.core.$catchall<z.ZodUnknown>>, {
|
|
253
|
-
signingSecret?: string;
|
|
264
|
+
signingSecret?: string | undefined;
|
|
254
265
|
}, {
|
|
255
266
|
request: (path: string, body?: Record<string, unknown>, tokenKind?: SlackToken) => Promise<{
|
|
256
267
|
[x: string]: unknown;
|
|
@@ -281,11 +292,13 @@ export declare const findUserByEmail: PieceActionDefinition<z.ZodObject<{
|
|
|
281
292
|
}, {
|
|
282
293
|
[x: string]: unknown;
|
|
283
294
|
ok: true;
|
|
284
|
-
}
|
|
285
|
-
|
|
295
|
+
}> & {
|
|
296
|
+
slug: "findUserByEmail";
|
|
297
|
+
};
|
|
298
|
+
export declare const findUserByHandle: import("frogbot").PieceActionDefinition<z.ZodObject<{
|
|
286
299
|
handle: z.ZodString;
|
|
287
300
|
}, z.core.$strip>, z.ZodRecord<z.ZodString, z.ZodUnknown>, {
|
|
288
|
-
signingSecret?: string;
|
|
301
|
+
signingSecret?: string | undefined;
|
|
289
302
|
}, {
|
|
290
303
|
request: (path: string, body?: Record<string, unknown>, tokenKind?: SlackToken) => Promise<{
|
|
291
304
|
[x: string]: unknown;
|
|
@@ -313,13 +326,15 @@ export declare const findUserByHandle: PieceActionDefinition<z.ZodObject<{
|
|
|
313
326
|
}) => Promise<Record<string, unknown>[]>;
|
|
314
327
|
token: (kind?: SlackToken) => string | undefined;
|
|
315
328
|
workspaceId: () => Promise<string>;
|
|
316
|
-
}, Record<string, unknown
|
|
317
|
-
|
|
329
|
+
}, Record<string, unknown>> & {
|
|
330
|
+
slug: "findUserByHandle";
|
|
331
|
+
};
|
|
332
|
+
export declare const findUserById: import("frogbot").PieceActionDefinition<z.ZodObject<{
|
|
318
333
|
id: z.ZodString;
|
|
319
334
|
}, z.core.$strip>, z.ZodObject<{
|
|
320
335
|
ok: z.ZodLiteral<true>;
|
|
321
336
|
}, z.core.$catchall<z.ZodUnknown>>, {
|
|
322
|
-
signingSecret?: string;
|
|
337
|
+
signingSecret?: string | undefined;
|
|
323
338
|
}, {
|
|
324
339
|
request: (path: string, body?: Record<string, unknown>, tokenKind?: SlackToken) => Promise<{
|
|
325
340
|
[x: string]: unknown;
|
|
@@ -350,12 +365,14 @@ export declare const findUserById: PieceActionDefinition<z.ZodObject<{
|
|
|
350
365
|
}, {
|
|
351
366
|
[x: string]: unknown;
|
|
352
367
|
ok: true;
|
|
353
|
-
}
|
|
354
|
-
|
|
368
|
+
}> & {
|
|
369
|
+
slug: "findUserById";
|
|
370
|
+
};
|
|
371
|
+
export declare const listUsers: import("frogbot").PieceActionDefinition<z.ZodObject<{
|
|
355
372
|
includeBots: z.ZodDefault<z.ZodBoolean>;
|
|
356
373
|
includeDisabled: z.ZodDefault<z.ZodBoolean>;
|
|
357
374
|
}, z.core.$strip>, z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>, {
|
|
358
|
-
signingSecret?: string;
|
|
375
|
+
signingSecret?: string | undefined;
|
|
359
376
|
}, {
|
|
360
377
|
request: (path: string, body?: Record<string, unknown>, tokenKind?: SlackToken) => Promise<{
|
|
361
378
|
[x: string]: unknown;
|
|
@@ -383,8 +400,10 @@ export declare const listUsers: PieceActionDefinition<z.ZodObject<{
|
|
|
383
400
|
}) => Promise<Record<string, unknown>[]>;
|
|
384
401
|
token: (kind?: SlackToken) => string | undefined;
|
|
385
402
|
workspaceId: () => Promise<string>;
|
|
386
|
-
}, Record<string, unknown>[]
|
|
387
|
-
|
|
403
|
+
}, Record<string, unknown>[]> & {
|
|
404
|
+
slug: "listUsers";
|
|
405
|
+
};
|
|
406
|
+
export declare const updateMessage: import("frogbot").PieceActionDefinition<z.ZodObject<{
|
|
388
407
|
channel: z.ZodString;
|
|
389
408
|
timestamp: z.ZodString;
|
|
390
409
|
text: z.ZodString;
|
|
@@ -392,7 +411,7 @@ export declare const updateMessage: PieceActionDefinition<z.ZodObject<{
|
|
|
392
411
|
}, z.core.$strip>, z.ZodObject<{
|
|
393
412
|
ok: z.ZodLiteral<true>;
|
|
394
413
|
}, z.core.$catchall<z.ZodUnknown>>, {
|
|
395
|
-
signingSecret?: string;
|
|
414
|
+
signingSecret?: string | undefined;
|
|
396
415
|
}, {
|
|
397
416
|
request: (path: string, body?: Record<string, unknown>, tokenKind?: SlackToken) => Promise<{
|
|
398
417
|
[x: string]: unknown;
|
|
@@ -423,14 +442,16 @@ export declare const updateMessage: PieceActionDefinition<z.ZodObject<{
|
|
|
423
442
|
}, {
|
|
424
443
|
[x: string]: unknown;
|
|
425
444
|
ok: true;
|
|
426
|
-
}
|
|
427
|
-
|
|
445
|
+
}> & {
|
|
446
|
+
slug: "updateMessage";
|
|
447
|
+
};
|
|
448
|
+
export declare const deleteMessage: import("frogbot").PieceActionDefinition<z.ZodObject<{
|
|
428
449
|
channel: z.ZodString;
|
|
429
450
|
timestamp: z.ZodString;
|
|
430
451
|
}, z.core.$strip>, z.ZodObject<{
|
|
431
452
|
ok: z.ZodLiteral<true>;
|
|
432
453
|
}, z.core.$catchall<z.ZodUnknown>>, {
|
|
433
|
-
signingSecret?: string;
|
|
454
|
+
signingSecret?: string | undefined;
|
|
434
455
|
}, {
|
|
435
456
|
request: (path: string, body?: Record<string, unknown>, tokenKind?: SlackToken) => Promise<{
|
|
436
457
|
[x: string]: unknown;
|
|
@@ -461,14 +482,16 @@ export declare const deleteMessage: PieceActionDefinition<z.ZodObject<{
|
|
|
461
482
|
}, {
|
|
462
483
|
[x: string]: unknown;
|
|
463
484
|
ok: true;
|
|
464
|
-
}
|
|
465
|
-
|
|
485
|
+
}> & {
|
|
486
|
+
slug: "deleteMessage";
|
|
487
|
+
};
|
|
488
|
+
export declare const createChannel: import("frogbot").PieceActionDefinition<z.ZodObject<{
|
|
466
489
|
channelName: z.ZodString;
|
|
467
490
|
isPrivate: z.ZodDefault<z.ZodBoolean>;
|
|
468
491
|
}, z.core.$strip>, z.ZodObject<{
|
|
469
492
|
ok: z.ZodLiteral<true>;
|
|
470
493
|
}, z.core.$catchall<z.ZodUnknown>>, {
|
|
471
|
-
signingSecret?: string;
|
|
494
|
+
signingSecret?: string | undefined;
|
|
472
495
|
}, {
|
|
473
496
|
request: (path: string, body?: Record<string, unknown>, tokenKind?: SlackToken) => Promise<{
|
|
474
497
|
[x: string]: unknown;
|
|
@@ -499,8 +522,10 @@ export declare const createChannel: PieceActionDefinition<z.ZodObject<{
|
|
|
499
522
|
}, {
|
|
500
523
|
[x: string]: unknown;
|
|
501
524
|
ok: true;
|
|
502
|
-
}
|
|
503
|
-
|
|
525
|
+
}> & {
|
|
526
|
+
slug: "createChannel";
|
|
527
|
+
};
|
|
528
|
+
export declare const updateProfile: import("frogbot").PieceActionDefinition<z.ZodObject<{
|
|
504
529
|
firstName: z.ZodOptional<z.ZodString>;
|
|
505
530
|
lastName: z.ZodOptional<z.ZodString>;
|
|
506
531
|
email: z.ZodOptional<z.ZodEmail>;
|
|
@@ -508,7 +533,7 @@ export declare const updateProfile: PieceActionDefinition<z.ZodObject<{
|
|
|
508
533
|
}, z.core.$strip>, z.ZodObject<{
|
|
509
534
|
ok: z.ZodLiteral<true>;
|
|
510
535
|
}, z.core.$catchall<z.ZodUnknown>>, {
|
|
511
|
-
signingSecret?: string;
|
|
536
|
+
signingSecret?: string | undefined;
|
|
512
537
|
}, {
|
|
513
538
|
request: (path: string, body?: Record<string, unknown>, tokenKind?: SlackToken) => Promise<{
|
|
514
539
|
[x: string]: unknown;
|
|
@@ -539,15 +564,17 @@ export declare const updateProfile: PieceActionDefinition<z.ZodObject<{
|
|
|
539
564
|
}, {
|
|
540
565
|
[x: string]: unknown;
|
|
541
566
|
ok: true;
|
|
542
|
-
}
|
|
543
|
-
|
|
567
|
+
}> & {
|
|
568
|
+
slug: "updateProfile";
|
|
569
|
+
};
|
|
570
|
+
export declare const getChannelHistory: import("frogbot").PieceActionDefinition<z.ZodObject<{
|
|
544
571
|
channel: z.ZodString;
|
|
545
572
|
oldest: z.ZodOptional<z.ZodNumber>;
|
|
546
573
|
latest: z.ZodOptional<z.ZodNumber>;
|
|
547
574
|
inclusive: z.ZodDefault<z.ZodBoolean>;
|
|
548
575
|
includeAllMetadata: z.ZodDefault<z.ZodBoolean>;
|
|
549
576
|
}, z.core.$strip>, z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>, {
|
|
550
|
-
signingSecret?: string;
|
|
577
|
+
signingSecret?: string | undefined;
|
|
551
578
|
}, {
|
|
552
579
|
request: (path: string, body?: Record<string, unknown>, tokenKind?: SlackToken) => Promise<{
|
|
553
580
|
[x: string]: unknown;
|
|
@@ -575,15 +602,17 @@ export declare const getChannelHistory: PieceActionDefinition<z.ZodObject<{
|
|
|
575
602
|
}) => Promise<Record<string, unknown>[]>;
|
|
576
603
|
token: (kind?: SlackToken) => string | undefined;
|
|
577
604
|
workspaceId: () => Promise<string>;
|
|
578
|
-
}, Record<string, unknown>[]
|
|
579
|
-
|
|
605
|
+
}, Record<string, unknown>[]> & {
|
|
606
|
+
slug: "getChannelHistory";
|
|
607
|
+
};
|
|
608
|
+
export declare const setUserStatus: import("frogbot").PieceActionDefinition<z.ZodObject<{
|
|
580
609
|
text: z.ZodString;
|
|
581
610
|
emoji: z.ZodOptional<z.ZodString>;
|
|
582
611
|
expiration: z.ZodOptional<z.ZodNumber>;
|
|
583
612
|
}, z.core.$strip>, z.ZodObject<{
|
|
584
613
|
ok: z.ZodLiteral<true>;
|
|
585
614
|
}, z.core.$catchall<z.ZodUnknown>>, {
|
|
586
|
-
signingSecret?: string;
|
|
615
|
+
signingSecret?: string | undefined;
|
|
587
616
|
}, {
|
|
588
617
|
request: (path: string, body?: Record<string, unknown>, tokenKind?: SlackToken) => Promise<{
|
|
589
618
|
[x: string]: unknown;
|
|
@@ -614,13 +643,15 @@ export declare const setUserStatus: PieceActionDefinition<z.ZodObject<{
|
|
|
614
643
|
}, {
|
|
615
644
|
[x: string]: unknown;
|
|
616
645
|
ok: true;
|
|
617
|
-
}
|
|
618
|
-
|
|
646
|
+
}> & {
|
|
647
|
+
slug: "setUserStatus";
|
|
648
|
+
};
|
|
649
|
+
export declare const markdownToSlack: import("frogbot").PieceActionDefinition<z.ZodObject<{
|
|
619
650
|
markdown: z.ZodString;
|
|
620
651
|
}, z.core.$strip>, z.ZodObject<{
|
|
621
652
|
text: z.ZodString;
|
|
622
653
|
}, z.core.$strip>, {
|
|
623
|
-
signingSecret?: string;
|
|
654
|
+
signingSecret?: string | undefined;
|
|
624
655
|
}, {
|
|
625
656
|
request: (path: string, body?: Record<string, unknown>, tokenKind?: SlackToken) => Promise<{
|
|
626
657
|
[x: string]: unknown;
|
|
@@ -650,12 +681,14 @@ export declare const markdownToSlack: PieceActionDefinition<z.ZodObject<{
|
|
|
650
681
|
workspaceId: () => Promise<string>;
|
|
651
682
|
}, {
|
|
652
683
|
text: string;
|
|
653
|
-
}
|
|
654
|
-
|
|
684
|
+
}> & {
|
|
685
|
+
slug: "markdownToSlack";
|
|
686
|
+
};
|
|
687
|
+
export declare const listThreadMessages: import("frogbot").PieceActionDefinition<z.ZodObject<{
|
|
655
688
|
channel: z.ZodString;
|
|
656
689
|
threadTimestamp: z.ZodString;
|
|
657
690
|
}, z.core.$strip>, z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>, {
|
|
658
|
-
signingSecret?: string;
|
|
691
|
+
signingSecret?: string | undefined;
|
|
659
692
|
}, {
|
|
660
693
|
request: (path: string, body?: Record<string, unknown>, tokenKind?: SlackToken) => Promise<{
|
|
661
694
|
[x: string]: unknown;
|
|
@@ -683,14 +716,16 @@ export declare const listThreadMessages: PieceActionDefinition<z.ZodObject<{
|
|
|
683
716
|
}) => Promise<Record<string, unknown>[]>;
|
|
684
717
|
token: (kind?: SlackToken) => string | undefined;
|
|
685
718
|
workspaceId: () => Promise<string>;
|
|
686
|
-
}, Record<string, unknown>[]
|
|
687
|
-
|
|
719
|
+
}, Record<string, unknown>[]> & {
|
|
720
|
+
slug: "listThreadMessages";
|
|
721
|
+
};
|
|
722
|
+
export declare const setChannelTopic: import("frogbot").PieceActionDefinition<z.ZodObject<{
|
|
688
723
|
channel: z.ZodString;
|
|
689
724
|
topic: z.ZodString;
|
|
690
725
|
}, z.core.$strip>, z.ZodObject<{
|
|
691
726
|
ok: z.ZodLiteral<true>;
|
|
692
727
|
}, z.core.$catchall<z.ZodUnknown>>, {
|
|
693
|
-
signingSecret?: string;
|
|
728
|
+
signingSecret?: string | undefined;
|
|
694
729
|
}, {
|
|
695
730
|
request: (path: string, body?: Record<string, unknown>, tokenKind?: SlackToken) => Promise<{
|
|
696
731
|
[x: string]: unknown;
|
|
@@ -721,14 +756,16 @@ export declare const setChannelTopic: PieceActionDefinition<z.ZodObject<{
|
|
|
721
756
|
}, {
|
|
722
757
|
[x: string]: unknown;
|
|
723
758
|
ok: true;
|
|
724
|
-
}
|
|
725
|
-
|
|
759
|
+
}> & {
|
|
760
|
+
slug: "setChannelTopic";
|
|
761
|
+
};
|
|
762
|
+
export declare const getMessage: import("frogbot").PieceActionDefinition<z.ZodObject<{
|
|
726
763
|
channel: z.ZodString;
|
|
727
764
|
timestamp: z.ZodString;
|
|
728
765
|
}, z.core.$strip>, z.ZodObject<{
|
|
729
766
|
ok: z.ZodLiteral<true>;
|
|
730
767
|
}, z.core.$catchall<z.ZodUnknown>>, {
|
|
731
|
-
signingSecret?: string;
|
|
768
|
+
signingSecret?: string | undefined;
|
|
732
769
|
}, {
|
|
733
770
|
request: (path: string, body?: Record<string, unknown>, tokenKind?: SlackToken) => Promise<{
|
|
734
771
|
[x: string]: unknown;
|
|
@@ -759,14 +796,16 @@ export declare const getMessage: PieceActionDefinition<z.ZodObject<{
|
|
|
759
796
|
}, {
|
|
760
797
|
[x: string]: unknown;
|
|
761
798
|
ok: true;
|
|
762
|
-
}
|
|
763
|
-
|
|
799
|
+
}> & {
|
|
800
|
+
slug: "getMessage";
|
|
801
|
+
};
|
|
802
|
+
export declare const inviteUserToChannel: import("frogbot").PieceActionDefinition<z.ZodObject<{
|
|
764
803
|
channel: z.ZodString;
|
|
765
804
|
userId: z.ZodString;
|
|
766
805
|
}, z.core.$strip>, z.ZodObject<{
|
|
767
806
|
ok: z.ZodLiteral<true>;
|
|
768
807
|
}, z.core.$catchall<z.ZodUnknown>>, {
|
|
769
|
-
signingSecret?: string;
|
|
808
|
+
signingSecret?: string | undefined;
|
|
770
809
|
}, {
|
|
771
810
|
request: (path: string, body?: Record<string, unknown>, tokenKind?: SlackToken) => Promise<{
|
|
772
811
|
[x: string]: unknown;
|
|
@@ -797,11 +836,13 @@ export declare const inviteUserToChannel: PieceActionDefinition<z.ZodObject<{
|
|
|
797
836
|
}, {
|
|
798
837
|
[x: string]: unknown;
|
|
799
838
|
ok: true;
|
|
800
|
-
}
|
|
801
|
-
|
|
839
|
+
}> & {
|
|
840
|
+
slug: "inviteUserToChannel";
|
|
841
|
+
};
|
|
842
|
+
export declare const getUserGroupByHandle: import("frogbot").PieceActionDefinition<z.ZodObject<{
|
|
802
843
|
handle: z.ZodString;
|
|
803
844
|
}, z.core.$strip>, z.ZodRecord<z.ZodString, z.ZodUnknown>, {
|
|
804
|
-
signingSecret?: string;
|
|
845
|
+
signingSecret?: string | undefined;
|
|
805
846
|
}, {
|
|
806
847
|
request: (path: string, body?: Record<string, unknown>, tokenKind?: SlackToken) => Promise<{
|
|
807
848
|
[x: string]: unknown;
|
|
@@ -829,15 +870,17 @@ export declare const getUserGroupByHandle: PieceActionDefinition<z.ZodObject<{
|
|
|
829
870
|
}) => Promise<Record<string, unknown>[]>;
|
|
830
871
|
token: (kind?: SlackToken) => string | undefined;
|
|
831
872
|
workspaceId: () => Promise<string>;
|
|
832
|
-
}, Record<string, unknown
|
|
833
|
-
|
|
873
|
+
}, Record<string, unknown>> & {
|
|
874
|
+
slug: "getUserGroupByHandle";
|
|
875
|
+
};
|
|
876
|
+
export declare const updateUserGroupMembers: import("frogbot").PieceActionDefinition<z.ZodObject<{
|
|
834
877
|
handle: z.ZodString;
|
|
835
878
|
userIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
836
879
|
appendUsers: z.ZodDefault<z.ZodBoolean>;
|
|
837
880
|
}, z.core.$strip>, z.ZodObject<{
|
|
838
881
|
ok: z.ZodLiteral<true>;
|
|
839
882
|
}, z.core.$catchall<z.ZodUnknown>>, {
|
|
840
|
-
signingSecret?: string;
|
|
883
|
+
signingSecret?: string | undefined;
|
|
841
884
|
}, {
|
|
842
885
|
request: (path: string, body?: Record<string, unknown>, tokenKind?: SlackToken) => Promise<{
|
|
843
886
|
[x: string]: unknown;
|
|
@@ -868,8 +911,10 @@ export declare const updateUserGroupMembers: PieceActionDefinition<z.ZodObject<{
|
|
|
868
911
|
}, {
|
|
869
912
|
[x: string]: unknown;
|
|
870
913
|
ok: true;
|
|
871
|
-
}
|
|
872
|
-
|
|
914
|
+
}> & {
|
|
915
|
+
slug: "updateUserGroupMembers";
|
|
916
|
+
};
|
|
917
|
+
export declare const customApiCall: import("frogbot").PieceActionDefinition<z.ZodObject<{
|
|
873
918
|
method: z.ZodEnum<{
|
|
874
919
|
GET: "GET";
|
|
875
920
|
POST: "POST";
|
|
@@ -887,7 +932,7 @@ export declare const customApiCall: PieceActionDefinition<z.ZodObject<{
|
|
|
887
932
|
headers: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
888
933
|
body: z.ZodUnknown;
|
|
889
934
|
}, z.core.$strip>, {
|
|
890
|
-
signingSecret?: string;
|
|
935
|
+
signingSecret?: string | undefined;
|
|
891
936
|
}, {
|
|
892
937
|
request: (path: string, body?: Record<string, unknown>, tokenKind?: SlackToken) => Promise<{
|
|
893
938
|
[x: string]: unknown;
|
|
@@ -919,8 +964,10 @@ export declare const customApiCall: PieceActionDefinition<z.ZodObject<{
|
|
|
919
964
|
status: number;
|
|
920
965
|
headers: Record<string, string>;
|
|
921
966
|
body: unknown;
|
|
922
|
-
}
|
|
923
|
-
|
|
967
|
+
}> & {
|
|
968
|
+
slug: "customApiCall";
|
|
969
|
+
};
|
|
970
|
+
export declare const slackActions: ((import("frogbot").PieceActionDefinition<z.ZodObject<{
|
|
924
971
|
text: z.ZodString;
|
|
925
972
|
username: z.ZodOptional<z.ZodString>;
|
|
926
973
|
profilePicture: z.ZodOptional<z.ZodURL>;
|
|
@@ -933,7 +980,7 @@ export declare const slackActions: (PieceActionDefinition<z.ZodObject<{
|
|
|
933
980
|
channel: z.ZodOptional<z.ZodString>;
|
|
934
981
|
ts: z.ZodOptional<z.ZodString>;
|
|
935
982
|
}, z.core.$catchall<z.ZodUnknown>>, {
|
|
936
|
-
signingSecret?: string;
|
|
983
|
+
signingSecret?: string | undefined;
|
|
937
984
|
}, {
|
|
938
985
|
request: (path: string, body?: Record<string, unknown>, tokenKind?: SlackToken) => Promise<{
|
|
939
986
|
[x: string]: unknown;
|
|
@@ -966,7 +1013,9 @@ export declare const slackActions: (PieceActionDefinition<z.ZodObject<{
|
|
|
966
1013
|
ok: true;
|
|
967
1014
|
channel?: string | undefined;
|
|
968
1015
|
ts?: string | undefined;
|
|
969
|
-
}>
|
|
1016
|
+
}> & {
|
|
1017
|
+
slug: "sendDirectMessage";
|
|
1018
|
+
}) | (import("frogbot").PieceActionDefinition<z.ZodObject<{
|
|
970
1019
|
channel: z.ZodString;
|
|
971
1020
|
text: z.ZodOptional<z.ZodString>;
|
|
972
1021
|
sendAsBot: z.ZodDefault<z.ZodBoolean>;
|
|
@@ -984,7 +1033,7 @@ export declare const slackActions: (PieceActionDefinition<z.ZodObject<{
|
|
|
984
1033
|
}, z.core.$strip>, z.ZodObject<{
|
|
985
1034
|
ok: z.ZodLiteral<true>;
|
|
986
1035
|
}, z.core.$catchall<z.ZodUnknown>>, {
|
|
987
|
-
signingSecret?: string;
|
|
1036
|
+
signingSecret?: string | undefined;
|
|
988
1037
|
}, {
|
|
989
1038
|
request: (path: string, body?: Record<string, unknown>, tokenKind?: SlackToken) => Promise<{
|
|
990
1039
|
[x: string]: unknown;
|
|
@@ -1015,7 +1064,50 @@ export declare const slackActions: (PieceActionDefinition<z.ZodObject<{
|
|
|
1015
1064
|
}, {
|
|
1016
1065
|
[x: string]: unknown;
|
|
1017
1066
|
ok: true;
|
|
1018
|
-
}>
|
|
1067
|
+
}> & {
|
|
1068
|
+
slug: "sendChannelMessage";
|
|
1069
|
+
}) | (import("frogbot").PieceActionDefinition<z.ZodObject<{
|
|
1070
|
+
channel: z.ZodString;
|
|
1071
|
+
timestamp: z.ZodString;
|
|
1072
|
+
reaction: z.ZodString;
|
|
1073
|
+
reactAsUser: z.ZodDefault<z.ZodBoolean>;
|
|
1074
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1075
|
+
ok: z.ZodLiteral<true>;
|
|
1076
|
+
}, z.core.$catchall<z.ZodUnknown>>, {
|
|
1077
|
+
signingSecret?: string | undefined;
|
|
1078
|
+
}, {
|
|
1079
|
+
request: (path: string, body?: Record<string, unknown>, tokenKind?: SlackToken) => Promise<{
|
|
1080
|
+
[x: string]: unknown;
|
|
1081
|
+
ok: true;
|
|
1082
|
+
}>;
|
|
1083
|
+
raw: ({ path, method, body, headers, token: tokenKind, }: {
|
|
1084
|
+
path: string;
|
|
1085
|
+
method?: string;
|
|
1086
|
+
body?: BodyInit | Record<string, unknown>;
|
|
1087
|
+
headers?: HeadersInit;
|
|
1088
|
+
token?: SlackToken;
|
|
1089
|
+
}) => Promise<{
|
|
1090
|
+
status: number;
|
|
1091
|
+
headers: {
|
|
1092
|
+
[k: string]: string;
|
|
1093
|
+
};
|
|
1094
|
+
body: any;
|
|
1095
|
+
}>;
|
|
1096
|
+
paginate: ({ path, body, item, token: tokenKind, limit, }: {
|
|
1097
|
+
path: string;
|
|
1098
|
+
body?: Record<string, unknown>;
|
|
1099
|
+
item: string;
|
|
1100
|
+
token?: SlackToken;
|
|
1101
|
+
limit?: number;
|
|
1102
|
+
}) => Promise<Record<string, unknown>[]>;
|
|
1103
|
+
token: (kind?: SlackToken) => string | undefined;
|
|
1104
|
+
workspaceId: () => Promise<string>;
|
|
1105
|
+
}, {
|
|
1106
|
+
[x: string]: unknown;
|
|
1107
|
+
ok: true;
|
|
1108
|
+
}> & {
|
|
1109
|
+
slug: "addReaction";
|
|
1110
|
+
}) | (import("frogbot").PieceActionDefinition<z.ZodObject<{
|
|
1019
1111
|
file: z.ZodObject<{
|
|
1020
1112
|
fileId: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
|
|
1021
1113
|
name: z.ZodOptional<z.ZodString>;
|
|
@@ -1026,7 +1118,7 @@ export declare const slackActions: (PieceActionDefinition<z.ZodObject<{
|
|
|
1026
1118
|
}, z.core.$strip>, z.ZodObject<{
|
|
1027
1119
|
ok: z.ZodLiteral<true>;
|
|
1028
1120
|
}, z.core.$catchall<z.ZodUnknown>>, {
|
|
1029
|
-
signingSecret?: string;
|
|
1121
|
+
signingSecret?: string | undefined;
|
|
1030
1122
|
}, {
|
|
1031
1123
|
request: (path: string, body?: Record<string, unknown>, tokenKind?: SlackToken) => Promise<{
|
|
1032
1124
|
[x: string]: unknown;
|
|
@@ -1057,10 +1149,12 @@ export declare const slackActions: (PieceActionDefinition<z.ZodObject<{
|
|
|
1057
1149
|
}, {
|
|
1058
1150
|
[x: string]: unknown;
|
|
1059
1151
|
ok: true;
|
|
1060
|
-
}>
|
|
1152
|
+
}> & {
|
|
1153
|
+
slug: "uploadFile";
|
|
1154
|
+
}) | (import("frogbot").PieceActionDefinition<z.ZodObject<{
|
|
1061
1155
|
fileId: z.ZodString;
|
|
1062
1156
|
}, z.core.$strip>, z.ZodRecord<z.ZodString, z.ZodUnknown>, {
|
|
1063
|
-
signingSecret?: string;
|
|
1157
|
+
signingSecret?: string | undefined;
|
|
1064
1158
|
}, {
|
|
1065
1159
|
request: (path: string, body?: Record<string, unknown>, tokenKind?: SlackToken) => Promise<{
|
|
1066
1160
|
[x: string]: unknown;
|
|
@@ -1088,10 +1182,12 @@ export declare const slackActions: (PieceActionDefinition<z.ZodObject<{
|
|
|
1088
1182
|
}) => Promise<Record<string, unknown>[]>;
|
|
1089
1183
|
token: (kind?: SlackToken) => string | undefined;
|
|
1090
1184
|
workspaceId: () => Promise<string>;
|
|
1091
|
-
}, Record<string, unknown>>
|
|
1185
|
+
}, Record<string, unknown>> & {
|
|
1186
|
+
slug: "getFile";
|
|
1187
|
+
}) | (import("frogbot").PieceActionDefinition<z.ZodObject<{
|
|
1092
1188
|
query: z.ZodString;
|
|
1093
1189
|
}, z.core.$strip>, z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>, {
|
|
1094
|
-
signingSecret?: string;
|
|
1190
|
+
signingSecret?: string | undefined;
|
|
1095
1191
|
}, {
|
|
1096
1192
|
request: (path: string, body?: Record<string, unknown>, tokenKind?: SlackToken) => Promise<{
|
|
1097
1193
|
[x: string]: unknown;
|
|
@@ -1119,12 +1215,14 @@ export declare const slackActions: (PieceActionDefinition<z.ZodObject<{
|
|
|
1119
1215
|
}) => Promise<Record<string, unknown>[]>;
|
|
1120
1216
|
token: (kind?: SlackToken) => string | undefined;
|
|
1121
1217
|
workspaceId: () => Promise<string>;
|
|
1122
|
-
}, Record<string, unknown>[]>
|
|
1218
|
+
}, Record<string, unknown>[]> & {
|
|
1219
|
+
slug: "searchMessages";
|
|
1220
|
+
}) | (import("frogbot").PieceActionDefinition<z.ZodObject<{
|
|
1123
1221
|
email: z.ZodEmail;
|
|
1124
1222
|
}, z.core.$strip>, z.ZodObject<{
|
|
1125
1223
|
ok: z.ZodLiteral<true>;
|
|
1126
1224
|
}, z.core.$catchall<z.ZodUnknown>>, {
|
|
1127
|
-
signingSecret?: string;
|
|
1225
|
+
signingSecret?: string | undefined;
|
|
1128
1226
|
}, {
|
|
1129
1227
|
request: (path: string, body?: Record<string, unknown>, tokenKind?: SlackToken) => Promise<{
|
|
1130
1228
|
[x: string]: unknown;
|
|
@@ -1155,10 +1253,12 @@ export declare const slackActions: (PieceActionDefinition<z.ZodObject<{
|
|
|
1155
1253
|
}, {
|
|
1156
1254
|
[x: string]: unknown;
|
|
1157
1255
|
ok: true;
|
|
1158
|
-
}>
|
|
1256
|
+
}> & {
|
|
1257
|
+
slug: "findUserByEmail";
|
|
1258
|
+
}) | (import("frogbot").PieceActionDefinition<z.ZodObject<{
|
|
1159
1259
|
handle: z.ZodString;
|
|
1160
1260
|
}, z.core.$strip>, z.ZodRecord<z.ZodString, z.ZodUnknown>, {
|
|
1161
|
-
signingSecret?: string;
|
|
1261
|
+
signingSecret?: string | undefined;
|
|
1162
1262
|
}, {
|
|
1163
1263
|
request: (path: string, body?: Record<string, unknown>, tokenKind?: SlackToken) => Promise<{
|
|
1164
1264
|
[x: string]: unknown;
|
|
@@ -1186,12 +1286,14 @@ export declare const slackActions: (PieceActionDefinition<z.ZodObject<{
|
|
|
1186
1286
|
}) => Promise<Record<string, unknown>[]>;
|
|
1187
1287
|
token: (kind?: SlackToken) => string | undefined;
|
|
1188
1288
|
workspaceId: () => Promise<string>;
|
|
1189
|
-
}, Record<string, unknown>>
|
|
1289
|
+
}, Record<string, unknown>> & {
|
|
1290
|
+
slug: "findUserByHandle";
|
|
1291
|
+
}) | (import("frogbot").PieceActionDefinition<z.ZodObject<{
|
|
1190
1292
|
id: z.ZodString;
|
|
1191
1293
|
}, z.core.$strip>, z.ZodObject<{
|
|
1192
1294
|
ok: z.ZodLiteral<true>;
|
|
1193
1295
|
}, z.core.$catchall<z.ZodUnknown>>, {
|
|
1194
|
-
signingSecret?: string;
|
|
1296
|
+
signingSecret?: string | undefined;
|
|
1195
1297
|
}, {
|
|
1196
1298
|
request: (path: string, body?: Record<string, unknown>, tokenKind?: SlackToken) => Promise<{
|
|
1197
1299
|
[x: string]: unknown;
|
|
@@ -1222,11 +1324,51 @@ export declare const slackActions: (PieceActionDefinition<z.ZodObject<{
|
|
|
1222
1324
|
}, {
|
|
1223
1325
|
[x: string]: unknown;
|
|
1224
1326
|
ok: true;
|
|
1225
|
-
}>
|
|
1327
|
+
}> & {
|
|
1328
|
+
slug: "findUserById";
|
|
1329
|
+
}) | (import("frogbot").PieceActionDefinition<z.ZodObject<{
|
|
1226
1330
|
includeBots: z.ZodDefault<z.ZodBoolean>;
|
|
1227
1331
|
includeDisabled: z.ZodDefault<z.ZodBoolean>;
|
|
1228
1332
|
}, z.core.$strip>, z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>, {
|
|
1229
|
-
signingSecret?: string;
|
|
1333
|
+
signingSecret?: string | undefined;
|
|
1334
|
+
}, {
|
|
1335
|
+
request: (path: string, body?: Record<string, unknown>, tokenKind?: SlackToken) => Promise<{
|
|
1336
|
+
[x: string]: unknown;
|
|
1337
|
+
ok: true;
|
|
1338
|
+
}>;
|
|
1339
|
+
raw: ({ path, method, body, headers, token: tokenKind, }: {
|
|
1340
|
+
path: string;
|
|
1341
|
+
method?: string;
|
|
1342
|
+
body?: BodyInit | Record<string, unknown>;
|
|
1343
|
+
headers?: HeadersInit;
|
|
1344
|
+
token?: SlackToken;
|
|
1345
|
+
}) => Promise<{
|
|
1346
|
+
status: number;
|
|
1347
|
+
headers: {
|
|
1348
|
+
[k: string]: string;
|
|
1349
|
+
};
|
|
1350
|
+
body: any;
|
|
1351
|
+
}>;
|
|
1352
|
+
paginate: ({ path, body, item, token: tokenKind, limit, }: {
|
|
1353
|
+
path: string;
|
|
1354
|
+
body?: Record<string, unknown>;
|
|
1355
|
+
item: string;
|
|
1356
|
+
token?: SlackToken;
|
|
1357
|
+
limit?: number;
|
|
1358
|
+
}) => Promise<Record<string, unknown>[]>;
|
|
1359
|
+
token: (kind?: SlackToken) => string | undefined;
|
|
1360
|
+
workspaceId: () => Promise<string>;
|
|
1361
|
+
}, Record<string, unknown>[]> & {
|
|
1362
|
+
slug: "listUsers";
|
|
1363
|
+
}) | (import("frogbot").PieceActionDefinition<z.ZodObject<{
|
|
1364
|
+
channel: z.ZodString;
|
|
1365
|
+
timestamp: z.ZodString;
|
|
1366
|
+
text: z.ZodString;
|
|
1367
|
+
blocks: z.ZodDefault<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
1368
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1369
|
+
ok: z.ZodLiteral<true>;
|
|
1370
|
+
}, z.core.$catchall<z.ZodUnknown>>, {
|
|
1371
|
+
signingSecret?: string | undefined;
|
|
1230
1372
|
}, {
|
|
1231
1373
|
request: (path: string, body?: Record<string, unknown>, tokenKind?: SlackToken) => Promise<{
|
|
1232
1374
|
[x: string]: unknown;
|
|
@@ -1254,13 +1396,18 @@ export declare const slackActions: (PieceActionDefinition<z.ZodObject<{
|
|
|
1254
1396
|
}) => Promise<Record<string, unknown>[]>;
|
|
1255
1397
|
token: (kind?: SlackToken) => string | undefined;
|
|
1256
1398
|
workspaceId: () => Promise<string>;
|
|
1257
|
-
},
|
|
1399
|
+
}, {
|
|
1400
|
+
[x: string]: unknown;
|
|
1401
|
+
ok: true;
|
|
1402
|
+
}> & {
|
|
1403
|
+
slug: "updateMessage";
|
|
1404
|
+
}) | (import("frogbot").PieceActionDefinition<z.ZodObject<{
|
|
1258
1405
|
channel: z.ZodString;
|
|
1259
1406
|
timestamp: z.ZodString;
|
|
1260
1407
|
}, z.core.$strip>, z.ZodObject<{
|
|
1261
1408
|
ok: z.ZodLiteral<true>;
|
|
1262
1409
|
}, z.core.$catchall<z.ZodUnknown>>, {
|
|
1263
|
-
signingSecret?: string;
|
|
1410
|
+
signingSecret?: string | undefined;
|
|
1264
1411
|
}, {
|
|
1265
1412
|
request: (path: string, body?: Record<string, unknown>, tokenKind?: SlackToken) => Promise<{
|
|
1266
1413
|
[x: string]: unknown;
|
|
@@ -1291,13 +1438,15 @@ export declare const slackActions: (PieceActionDefinition<z.ZodObject<{
|
|
|
1291
1438
|
}, {
|
|
1292
1439
|
[x: string]: unknown;
|
|
1293
1440
|
ok: true;
|
|
1294
|
-
}>
|
|
1441
|
+
}> & {
|
|
1442
|
+
slug: "deleteMessage";
|
|
1443
|
+
}) | (import("frogbot").PieceActionDefinition<z.ZodObject<{
|
|
1295
1444
|
channelName: z.ZodString;
|
|
1296
1445
|
isPrivate: z.ZodDefault<z.ZodBoolean>;
|
|
1297
1446
|
}, z.core.$strip>, z.ZodObject<{
|
|
1298
1447
|
ok: z.ZodLiteral<true>;
|
|
1299
1448
|
}, z.core.$catchall<z.ZodUnknown>>, {
|
|
1300
|
-
signingSecret?: string;
|
|
1449
|
+
signingSecret?: string | undefined;
|
|
1301
1450
|
}, {
|
|
1302
1451
|
request: (path: string, body?: Record<string, unknown>, tokenKind?: SlackToken) => Promise<{
|
|
1303
1452
|
[x: string]: unknown;
|
|
@@ -1328,7 +1477,9 @@ export declare const slackActions: (PieceActionDefinition<z.ZodObject<{
|
|
|
1328
1477
|
}, {
|
|
1329
1478
|
[x: string]: unknown;
|
|
1330
1479
|
ok: true;
|
|
1331
|
-
}>
|
|
1480
|
+
}> & {
|
|
1481
|
+
slug: "createChannel";
|
|
1482
|
+
}) | (import("frogbot").PieceActionDefinition<z.ZodObject<{
|
|
1332
1483
|
firstName: z.ZodOptional<z.ZodString>;
|
|
1333
1484
|
lastName: z.ZodOptional<z.ZodString>;
|
|
1334
1485
|
email: z.ZodOptional<z.ZodEmail>;
|
|
@@ -1336,7 +1487,7 @@ export declare const slackActions: (PieceActionDefinition<z.ZodObject<{
|
|
|
1336
1487
|
}, z.core.$strip>, z.ZodObject<{
|
|
1337
1488
|
ok: z.ZodLiteral<true>;
|
|
1338
1489
|
}, z.core.$catchall<z.ZodUnknown>>, {
|
|
1339
|
-
signingSecret?: string;
|
|
1490
|
+
signingSecret?: string | undefined;
|
|
1340
1491
|
}, {
|
|
1341
1492
|
request: (path: string, body?: Record<string, unknown>, tokenKind?: SlackToken) => Promise<{
|
|
1342
1493
|
[x: string]: unknown;
|
|
@@ -1367,14 +1518,16 @@ export declare const slackActions: (PieceActionDefinition<z.ZodObject<{
|
|
|
1367
1518
|
}, {
|
|
1368
1519
|
[x: string]: unknown;
|
|
1369
1520
|
ok: true;
|
|
1370
|
-
}>
|
|
1521
|
+
}> & {
|
|
1522
|
+
slug: "updateProfile";
|
|
1523
|
+
}) | (import("frogbot").PieceActionDefinition<z.ZodObject<{
|
|
1371
1524
|
channel: z.ZodString;
|
|
1372
1525
|
oldest: z.ZodOptional<z.ZodNumber>;
|
|
1373
1526
|
latest: z.ZodOptional<z.ZodNumber>;
|
|
1374
1527
|
inclusive: z.ZodDefault<z.ZodBoolean>;
|
|
1375
1528
|
includeAllMetadata: z.ZodDefault<z.ZodBoolean>;
|
|
1376
1529
|
}, z.core.$strip>, z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>, {
|
|
1377
|
-
signingSecret?: string;
|
|
1530
|
+
signingSecret?: string | undefined;
|
|
1378
1531
|
}, {
|
|
1379
1532
|
request: (path: string, body?: Record<string, unknown>, tokenKind?: SlackToken) => Promise<{
|
|
1380
1533
|
[x: string]: unknown;
|
|
@@ -1402,14 +1555,16 @@ export declare const slackActions: (PieceActionDefinition<z.ZodObject<{
|
|
|
1402
1555
|
}) => Promise<Record<string, unknown>[]>;
|
|
1403
1556
|
token: (kind?: SlackToken) => string | undefined;
|
|
1404
1557
|
workspaceId: () => Promise<string>;
|
|
1405
|
-
}, Record<string, unknown>[]>
|
|
1558
|
+
}, Record<string, unknown>[]> & {
|
|
1559
|
+
slug: "getChannelHistory";
|
|
1560
|
+
}) | (import("frogbot").PieceActionDefinition<z.ZodObject<{
|
|
1406
1561
|
text: z.ZodString;
|
|
1407
1562
|
emoji: z.ZodOptional<z.ZodString>;
|
|
1408
1563
|
expiration: z.ZodOptional<z.ZodNumber>;
|
|
1409
1564
|
}, z.core.$strip>, z.ZodObject<{
|
|
1410
1565
|
ok: z.ZodLiteral<true>;
|
|
1411
1566
|
}, z.core.$catchall<z.ZodUnknown>>, {
|
|
1412
|
-
signingSecret?: string;
|
|
1567
|
+
signingSecret?: string | undefined;
|
|
1413
1568
|
}, {
|
|
1414
1569
|
request: (path: string, body?: Record<string, unknown>, tokenKind?: SlackToken) => Promise<{
|
|
1415
1570
|
[x: string]: unknown;
|
|
@@ -1440,12 +1595,14 @@ export declare const slackActions: (PieceActionDefinition<z.ZodObject<{
|
|
|
1440
1595
|
}, {
|
|
1441
1596
|
[x: string]: unknown;
|
|
1442
1597
|
ok: true;
|
|
1443
|
-
}>
|
|
1598
|
+
}> & {
|
|
1599
|
+
slug: "setUserStatus";
|
|
1600
|
+
}) | (import("frogbot").PieceActionDefinition<z.ZodObject<{
|
|
1444
1601
|
markdown: z.ZodString;
|
|
1445
1602
|
}, z.core.$strip>, z.ZodObject<{
|
|
1446
1603
|
text: z.ZodString;
|
|
1447
1604
|
}, z.core.$strip>, {
|
|
1448
|
-
signingSecret?: string;
|
|
1605
|
+
signingSecret?: string | undefined;
|
|
1449
1606
|
}, {
|
|
1450
1607
|
request: (path: string, body?: Record<string, unknown>, tokenKind?: SlackToken) => Promise<{
|
|
1451
1608
|
[x: string]: unknown;
|
|
@@ -1475,11 +1632,13 @@ export declare const slackActions: (PieceActionDefinition<z.ZodObject<{
|
|
|
1475
1632
|
workspaceId: () => Promise<string>;
|
|
1476
1633
|
}, {
|
|
1477
1634
|
text: string;
|
|
1478
|
-
}>
|
|
1635
|
+
}> & {
|
|
1636
|
+
slug: "markdownToSlack";
|
|
1637
|
+
}) | (import("frogbot").PieceActionDefinition<z.ZodObject<{
|
|
1479
1638
|
channel: z.ZodString;
|
|
1480
1639
|
threadTimestamp: z.ZodString;
|
|
1481
1640
|
}, z.core.$strip>, z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>, {
|
|
1482
|
-
signingSecret?: string;
|
|
1641
|
+
signingSecret?: string | undefined;
|
|
1483
1642
|
}, {
|
|
1484
1643
|
request: (path: string, body?: Record<string, unknown>, tokenKind?: SlackToken) => Promise<{
|
|
1485
1644
|
[x: string]: unknown;
|
|
@@ -1507,13 +1666,15 @@ export declare const slackActions: (PieceActionDefinition<z.ZodObject<{
|
|
|
1507
1666
|
}) => Promise<Record<string, unknown>[]>;
|
|
1508
1667
|
token: (kind?: SlackToken) => string | undefined;
|
|
1509
1668
|
workspaceId: () => Promise<string>;
|
|
1510
|
-
}, Record<string, unknown>[]>
|
|
1669
|
+
}, Record<string, unknown>[]> & {
|
|
1670
|
+
slug: "listThreadMessages";
|
|
1671
|
+
}) | (import("frogbot").PieceActionDefinition<z.ZodObject<{
|
|
1511
1672
|
channel: z.ZodString;
|
|
1512
1673
|
topic: z.ZodString;
|
|
1513
1674
|
}, z.core.$strip>, z.ZodObject<{
|
|
1514
1675
|
ok: z.ZodLiteral<true>;
|
|
1515
1676
|
}, z.core.$catchall<z.ZodUnknown>>, {
|
|
1516
|
-
signingSecret?: string;
|
|
1677
|
+
signingSecret?: string | undefined;
|
|
1517
1678
|
}, {
|
|
1518
1679
|
request: (path: string, body?: Record<string, unknown>, tokenKind?: SlackToken) => Promise<{
|
|
1519
1680
|
[x: string]: unknown;
|
|
@@ -1544,13 +1705,54 @@ export declare const slackActions: (PieceActionDefinition<z.ZodObject<{
|
|
|
1544
1705
|
}, {
|
|
1545
1706
|
[x: string]: unknown;
|
|
1546
1707
|
ok: true;
|
|
1547
|
-
}>
|
|
1708
|
+
}> & {
|
|
1709
|
+
slug: "setChannelTopic";
|
|
1710
|
+
}) | (import("frogbot").PieceActionDefinition<z.ZodObject<{
|
|
1711
|
+
channel: z.ZodString;
|
|
1712
|
+
timestamp: z.ZodString;
|
|
1713
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1714
|
+
ok: z.ZodLiteral<true>;
|
|
1715
|
+
}, z.core.$catchall<z.ZodUnknown>>, {
|
|
1716
|
+
signingSecret?: string | undefined;
|
|
1717
|
+
}, {
|
|
1718
|
+
request: (path: string, body?: Record<string, unknown>, tokenKind?: SlackToken) => Promise<{
|
|
1719
|
+
[x: string]: unknown;
|
|
1720
|
+
ok: true;
|
|
1721
|
+
}>;
|
|
1722
|
+
raw: ({ path, method, body, headers, token: tokenKind, }: {
|
|
1723
|
+
path: string;
|
|
1724
|
+
method?: string;
|
|
1725
|
+
body?: BodyInit | Record<string, unknown>;
|
|
1726
|
+
headers?: HeadersInit;
|
|
1727
|
+
token?: SlackToken;
|
|
1728
|
+
}) => Promise<{
|
|
1729
|
+
status: number;
|
|
1730
|
+
headers: {
|
|
1731
|
+
[k: string]: string;
|
|
1732
|
+
};
|
|
1733
|
+
body: any;
|
|
1734
|
+
}>;
|
|
1735
|
+
paginate: ({ path, body, item, token: tokenKind, limit, }: {
|
|
1736
|
+
path: string;
|
|
1737
|
+
body?: Record<string, unknown>;
|
|
1738
|
+
item: string;
|
|
1739
|
+
token?: SlackToken;
|
|
1740
|
+
limit?: number;
|
|
1741
|
+
}) => Promise<Record<string, unknown>[]>;
|
|
1742
|
+
token: (kind?: SlackToken) => string | undefined;
|
|
1743
|
+
workspaceId: () => Promise<string>;
|
|
1744
|
+
}, {
|
|
1745
|
+
[x: string]: unknown;
|
|
1746
|
+
ok: true;
|
|
1747
|
+
}> & {
|
|
1748
|
+
slug: "getMessage";
|
|
1749
|
+
}) | (import("frogbot").PieceActionDefinition<z.ZodObject<{
|
|
1548
1750
|
channel: z.ZodString;
|
|
1549
1751
|
userId: z.ZodString;
|
|
1550
1752
|
}, z.core.$strip>, z.ZodObject<{
|
|
1551
1753
|
ok: z.ZodLiteral<true>;
|
|
1552
1754
|
}, z.core.$catchall<z.ZodUnknown>>, {
|
|
1553
|
-
signingSecret?: string;
|
|
1755
|
+
signingSecret?: string | undefined;
|
|
1554
1756
|
}, {
|
|
1555
1757
|
request: (path: string, body?: Record<string, unknown>, tokenKind?: SlackToken) => Promise<{
|
|
1556
1758
|
[x: string]: unknown;
|
|
@@ -1581,14 +1783,49 @@ export declare const slackActions: (PieceActionDefinition<z.ZodObject<{
|
|
|
1581
1783
|
}, {
|
|
1582
1784
|
[x: string]: unknown;
|
|
1583
1785
|
ok: true;
|
|
1584
|
-
}>
|
|
1786
|
+
}> & {
|
|
1787
|
+
slug: "inviteUserToChannel";
|
|
1788
|
+
}) | (import("frogbot").PieceActionDefinition<z.ZodObject<{
|
|
1789
|
+
handle: z.ZodString;
|
|
1790
|
+
}, z.core.$strip>, z.ZodRecord<z.ZodString, z.ZodUnknown>, {
|
|
1791
|
+
signingSecret?: string | undefined;
|
|
1792
|
+
}, {
|
|
1793
|
+
request: (path: string, body?: Record<string, unknown>, tokenKind?: SlackToken) => Promise<{
|
|
1794
|
+
[x: string]: unknown;
|
|
1795
|
+
ok: true;
|
|
1796
|
+
}>;
|
|
1797
|
+
raw: ({ path, method, body, headers, token: tokenKind, }: {
|
|
1798
|
+
path: string;
|
|
1799
|
+
method?: string;
|
|
1800
|
+
body?: BodyInit | Record<string, unknown>;
|
|
1801
|
+
headers?: HeadersInit;
|
|
1802
|
+
token?: SlackToken;
|
|
1803
|
+
}) => Promise<{
|
|
1804
|
+
status: number;
|
|
1805
|
+
headers: {
|
|
1806
|
+
[k: string]: string;
|
|
1807
|
+
};
|
|
1808
|
+
body: any;
|
|
1809
|
+
}>;
|
|
1810
|
+
paginate: ({ path, body, item, token: tokenKind, limit, }: {
|
|
1811
|
+
path: string;
|
|
1812
|
+
body?: Record<string, unknown>;
|
|
1813
|
+
item: string;
|
|
1814
|
+
token?: SlackToken;
|
|
1815
|
+
limit?: number;
|
|
1816
|
+
}) => Promise<Record<string, unknown>[]>;
|
|
1817
|
+
token: (kind?: SlackToken) => string | undefined;
|
|
1818
|
+
workspaceId: () => Promise<string>;
|
|
1819
|
+
}, Record<string, unknown>> & {
|
|
1820
|
+
slug: "getUserGroupByHandle";
|
|
1821
|
+
}) | (import("frogbot").PieceActionDefinition<z.ZodObject<{
|
|
1585
1822
|
handle: z.ZodString;
|
|
1586
1823
|
userIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1587
1824
|
appendUsers: z.ZodDefault<z.ZodBoolean>;
|
|
1588
1825
|
}, z.core.$strip>, z.ZodObject<{
|
|
1589
1826
|
ok: z.ZodLiteral<true>;
|
|
1590
1827
|
}, z.core.$catchall<z.ZodUnknown>>, {
|
|
1591
|
-
signingSecret?: string;
|
|
1828
|
+
signingSecret?: string | undefined;
|
|
1592
1829
|
}, {
|
|
1593
1830
|
request: (path: string, body?: Record<string, unknown>, tokenKind?: SlackToken) => Promise<{
|
|
1594
1831
|
[x: string]: unknown;
|
|
@@ -1619,7 +1856,9 @@ export declare const slackActions: (PieceActionDefinition<z.ZodObject<{
|
|
|
1619
1856
|
}, {
|
|
1620
1857
|
[x: string]: unknown;
|
|
1621
1858
|
ok: true;
|
|
1622
|
-
}>
|
|
1859
|
+
}> & {
|
|
1860
|
+
slug: "updateUserGroupMembers";
|
|
1861
|
+
}) | (import("frogbot").PieceActionDefinition<z.ZodObject<{
|
|
1623
1862
|
method: z.ZodEnum<{
|
|
1624
1863
|
GET: "GET";
|
|
1625
1864
|
POST: "POST";
|
|
@@ -1637,7 +1876,7 @@ export declare const slackActions: (PieceActionDefinition<z.ZodObject<{
|
|
|
1637
1876
|
headers: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
1638
1877
|
body: z.ZodUnknown;
|
|
1639
1878
|
}, z.core.$strip>, {
|
|
1640
|
-
signingSecret?: string;
|
|
1879
|
+
signingSecret?: string | undefined;
|
|
1641
1880
|
}, {
|
|
1642
1881
|
request: (path: string, body?: Record<string, unknown>, tokenKind?: SlackToken) => Promise<{
|
|
1643
1882
|
[x: string]: unknown;
|
|
@@ -1669,5 +1908,7 @@ export declare const slackActions: (PieceActionDefinition<z.ZodObject<{
|
|
|
1669
1908
|
status: number;
|
|
1670
1909
|
headers: Record<string, string>;
|
|
1671
1910
|
body: unknown;
|
|
1672
|
-
}>
|
|
1911
|
+
}> & {
|
|
1912
|
+
slug: "customApiCall";
|
|
1913
|
+
}))[];
|
|
1673
1914
|
//# sourceMappingURL=actions.d.ts.map
|