@frogbotai/piece-slack 0.22.0 → 0.24.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -1,62 +1,1011 @@
1
- import { type PieceFactoryConfig } from 'frogbot/pieces';
2
- export declare const slackActions: readonly ["slack-add-reaction-to-message", "send_direct_message", "send_channel_message", "uploadFile", "get-file", "searchMessages", "slack-find-user-by-email", "find-user-by-id", "updateMessage", "delete-message"];
3
- export declare const slackScopes: readonly ["channels:read", "channels:manage", "channels:history", "chat:write", "groups:read", "groups:write", "groups:history", "reactions:read", "mpim:read", "mpim:write", "mpim:history", "im:write", "im:read", "im:history", "users:read", "files:write", "files:read", "users:read.email", "reactions:write", "usergroups:read", "usergroups:write", "chat:write.customize", "links:read", "links:write", "emoji:read", "users.profile:read", "channels:write.invites", "groups:write.invites", "channels:join", "conversations.connect:write"];
4
- export declare function createSlack(config?: PieceFactoryConfig): import("frogbot/pieces").Piece & {
5
- /** Add Reaction to Message: Add an emoji reaction to a message. */
6
- slackAddReactionToMessage: import("node_modules/frogbot/dist/tools/types").AnyTool;
7
- /** Send Message To A User: Send message to a user */
8
- sendDirectMessage: import("node_modules/frogbot/dist/tools/types").AnyTool;
9
- /** Send Message To A Channel: Send message to a channel */
10
- sendChannelMessage: import("node_modules/frogbot/dist/tools/types").AnyTool;
11
- /** Request Approval from A User: Send approval message to a user and then wait until the message is approved or disapproved */
12
- requestApprovalDirectMessage: import("node_modules/frogbot/dist/tools/types").AnyTool;
13
- /** Request Approval in a Channel: Send approval message to a channel and then wait until the message is approved or disapproved */
14
- requestApprovalMessage: import("node_modules/frogbot/dist/tools/types").AnyTool;
15
- /** Request Action from A User: Send a message to a user and wait until the user selects an action */
16
- requestActionDirectMessage: import("node_modules/frogbot/dist/tools/types").AnyTool;
17
- /** Request Action in A Channel: Send a message in a channel and wait until an action is selected */
18
- requestActionMessage: import("node_modules/frogbot/dist/tools/types").AnyTool;
19
- /** Upload file: Upload file without sharing it to a channel or user */
20
- uploadFile: import("node_modules/frogbot/dist/tools/types").AnyTool;
21
- /** Get File: Return information about a given file ID. */
22
- getFile: import("node_modules/frogbot/dist/tools/types").AnyTool;
23
- /** Search messages: Searches for messages matching a query */
24
- searchMessages: import("node_modules/frogbot/dist/tools/types").AnyTool;
25
- /** Find User by Email: Finds a user by matching against their email address. */
26
- slackFindUserByEmail: import("node_modules/frogbot/dist/tools/types").AnyTool;
27
- /** Find User by Handle: Finds a user by matching against their Slack handle. */
28
- slackFindUserByHandle: import("node_modules/frogbot/dist/tools/types").AnyTool;
29
- /** Find User by ID: Finds a user by their ID. */
30
- findUserById: import("node_modules/frogbot/dist/tools/types").AnyTool;
31
- /** List users: List all users of the workspace */
32
- listUsers: import("node_modules/frogbot/dist/tools/types").AnyTool;
33
- /** Update message: Update an existing message */
34
- updateMessage: import("node_modules/frogbot/dist/tools/types").AnyTool;
35
- /** Delete Message: Deletes a specific message from a channel using the message's timestamp. */
36
- deleteMessage: import("node_modules/frogbot/dist/tools/types").AnyTool;
37
- /** Create Channel: Creates a new channel. */
38
- slackCreateChannel: import("node_modules/frogbot/dist/tools/types").AnyTool;
39
- /** Update Profile: Update basic profile field such as name or title. */
40
- slackUpdateProfile: import("node_modules/frogbot/dist/tools/types").AnyTool;
41
- /** Get channel history: Retrieve all messages from a specific channel ("conversation") between specified timestamps */
42
- getChannelHistory: import("node_modules/frogbot/dist/tools/types").AnyTool;
43
- /** Set User Status: Sets a user's custom status */
44
- slackSetUserStatus: import("node_modules/frogbot/dist/tools/types").AnyTool;
45
- /** Markdown to Slack format: Convert Markdown-formatted text to Slack's pseudo - markdown syntax */
46
- markdownToSlackFormat: import("node_modules/frogbot/dist/tools/types").AnyTool;
47
- /** Retrieve Thread Messages: Retrieves thread messages by channel and thread timestamp. */
48
- retrieveThreadMessages: import("node_modules/frogbot/dist/tools/types").AnyTool;
49
- /** Set Channel Topic: Sets the topic on a selected channel. */
50
- setChannelTopic: import("node_modules/frogbot/dist/tools/types").AnyTool;
51
- /** Get Message by Timestamp: Retrieves a specific message from a channel history using the message's timestamp. */
52
- getMessage: import("node_modules/frogbot/dist/tools/types").AnyTool;
53
- /** Invite User to Channel: Invites an existing User to an existing channel. */
54
- inviteUserToChannel: import("node_modules/frogbot/dist/tools/types").AnyTool;
55
- /** Get User Group by Handle: Finds a Slack user group by its handle (e.g., @user-group) and returns its details. To mention this group in a message, map the returned ID using the syntax <!subteam^ID>. Read more: https://api.slack.com/reference/surfaces/formatting#mentioning-groups */
56
- getGroupByHandle: import("node_modules/frogbot/dist/tools/types").AnyTool;
57
- /** Update User Group Members: Add users to or overwrite the member list of a Slack user group. */
58
- updateGroupUsers: import("node_modules/frogbot/dist/tools/types").AnyTool;
59
- /** Custom API Call: Make a custom API call to a specific endpoint */
60
- customApiCall: import("node_modules/frogbot/dist/tools/types").AnyTool;
61
- };
1
+ import type { z } from 'zod';
2
+ import { createSlackClient } from './client.js';
3
+ import { slackScopes } from './config.js';
4
+ import { verifySlackWebhook } from './webhook.js';
5
+ export declare const slackActionNames: string[];
6
+ export declare const slackTriggerNames: string[];
7
+ export { slackScopes };
8
+ export declare const createSlack: import("frogbot").PieceFactory<{
9
+ readonly slug: "slack";
10
+ readonly label: "Slack";
11
+ readonly admin: {
12
+ readonly description: "Manage Slack messages, files, channels, users, groups, and workspace events";
13
+ readonly group: "Communication";
14
+ };
15
+ readonly auth: z.ZodObject<{
16
+ botToken: z.ZodString;
17
+ userToken: z.ZodOptional<z.ZodString>;
18
+ teamId: z.ZodOptional<z.ZodString>;
19
+ }, z.core.$strip>;
20
+ readonly options: z.ZodObject<{
21
+ signingSecret: z.ZodOptional<z.ZodString>;
22
+ }, z.core.$strip>;
23
+ readonly client: typeof createSlackClient;
24
+ readonly oauth: {
25
+ readonly authorizationUrl: "https://slack.com/oauth/v2/authorize";
26
+ readonly tokenUrl: "https://slack.com/api/oauth.v2.access";
27
+ readonly scopes: string[];
28
+ readonly params: {
29
+ readonly user_scope: "search:read,users.profile:write,reactions:read,reactions:write,im:history,stars:read,channels:write,groups:write,im:write,mpim:write,channels:write.invites,groups:write.invites,channels:history,groups:history,chat:write,users:read,usergroups:write";
30
+ };
31
+ readonly toAuth: ({ tokens }: {
32
+ tokens: import("frogbot").OAuthTokens;
33
+ }) => {
34
+ botToken: string;
35
+ userToken: string | undefined;
36
+ teamId: string | undefined;
37
+ };
38
+ readonly account: (args: {
39
+ tokens: import("frogbot").OAuthTokens;
40
+ client: {
41
+ request: (path: string, body?: Record<string, unknown>, tokenKind?: import("./client.js").SlackToken) => Promise<{
42
+ [x: string]: unknown;
43
+ ok: true;
44
+ }>;
45
+ raw: ({ path, method, body, headers, token: tokenKind, }: {
46
+ path: string;
47
+ method?: string;
48
+ body?: BodyInit | Record<string, unknown>;
49
+ headers?: HeadersInit;
50
+ token?: import("./client.js").SlackToken;
51
+ }) => Promise<{
52
+ status: number;
53
+ headers: {
54
+ [k: string]: string;
55
+ };
56
+ body: any;
57
+ }>;
58
+ paginate: ({ path, body, item, token: tokenKind, limit, }: {
59
+ path: string;
60
+ body?: Record<string, unknown>;
61
+ item: string;
62
+ token?: import("./client.js").SlackToken;
63
+ limit?: number;
64
+ }) => Promise<Record<string, unknown>[]>;
65
+ token: (kind?: import("./client.js").SlackToken) => string | undefined;
66
+ workspaceId: () => Promise<string>;
67
+ };
68
+ req: import("frogbot").FrogbotRequest;
69
+ }) => Promise<import("frogbot").PieceOAuthAccount>;
70
+ };
71
+ readonly webhook: {
72
+ verify: typeof verifySlackWebhook;
73
+ handshake({ req }: {
74
+ req: import("frogbot").FrogbotRequest;
75
+ options: {
76
+ signingSecret?: string | undefined;
77
+ };
78
+ }): Promise<Response | null>;
79
+ parse({ req }: {
80
+ req: import("frogbot").FrogbotRequest;
81
+ }): {
82
+ event: string;
83
+ };
84
+ };
85
+ readonly channel: {
86
+ adapter({ auth, options }: {
87
+ auth: {
88
+ botToken: string;
89
+ userToken?: string | undefined;
90
+ teamId?: string | undefined;
91
+ };
92
+ options: {
93
+ signingSecret?: string | undefined;
94
+ };
95
+ }): import("@chat-adapter/slack").SlackAdapter;
96
+ identity({ author, client, req }: {
97
+ author: import("chat").Author;
98
+ client: {
99
+ request: (path: string, body?: Record<string, unknown>, tokenKind?: import("./client.js").SlackToken) => Promise<{
100
+ [x: string]: unknown;
101
+ ok: true;
102
+ }>;
103
+ raw: ({ path, method, body, headers, token: tokenKind, }: {
104
+ path: string;
105
+ method?: string;
106
+ body?: BodyInit | Record<string, unknown>;
107
+ headers?: HeadersInit;
108
+ token?: import("./client.js").SlackToken;
109
+ }) => Promise<{
110
+ status: number;
111
+ headers: {
112
+ [k: string]: string;
113
+ };
114
+ body: any;
115
+ }>;
116
+ paginate: ({ path, body, item, token: tokenKind, limit, }: {
117
+ path: string;
118
+ body?: Record<string, unknown>;
119
+ item: string;
120
+ token?: import("./client.js").SlackToken;
121
+ limit?: number;
122
+ }) => Promise<Record<string, unknown>[]>;
123
+ token: (kind?: import("./client.js").SlackToken) => string | undefined;
124
+ workspaceId: () => Promise<string>;
125
+ };
126
+ req: import("frogbot").FrogbotRequest;
127
+ }): Promise<{
128
+ collection: string;
129
+ id: string | number;
130
+ } | null>;
131
+ };
132
+ readonly actions: (import("frogbot").PieceActionDefinition<z.ZodObject<{
133
+ text: z.ZodString;
134
+ username: z.ZodOptional<z.ZodString>;
135
+ profilePicture: z.ZodOptional<z.ZodURL>;
136
+ iconEmoji: z.ZodOptional<z.ZodString>;
137
+ blocks: z.ZodDefault<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
138
+ unfurlLinks: z.ZodDefault<z.ZodBoolean>;
139
+ userId: z.ZodString;
140
+ }, z.core.$strip>, z.ZodObject<{
141
+ ok: z.ZodLiteral<true>;
142
+ channel: z.ZodOptional<z.ZodString>;
143
+ ts: z.ZodOptional<z.ZodString>;
144
+ }, z.core.$catchall<z.ZodUnknown>>, {
145
+ signingSecret?: string;
146
+ }, {
147
+ request: (path: string, body?: Record<string, unknown>, tokenKind?: import("./client.js").SlackToken) => Promise<{
148
+ [x: string]: unknown;
149
+ ok: true;
150
+ }>;
151
+ raw: ({ path, method, body, headers, token: tokenKind, }: {
152
+ path: string;
153
+ method?: string;
154
+ body?: BodyInit | Record<string, unknown>;
155
+ headers?: HeadersInit;
156
+ token?: import("./client.js").SlackToken;
157
+ }) => Promise<{
158
+ status: number;
159
+ headers: {
160
+ [k: string]: string;
161
+ };
162
+ body: any;
163
+ }>;
164
+ paginate: ({ path, body, item, token: tokenKind, limit, }: {
165
+ path: string;
166
+ body?: Record<string, unknown>;
167
+ item: string;
168
+ token?: import("./client.js").SlackToken;
169
+ limit?: number;
170
+ }) => Promise<Record<string, unknown>[]>;
171
+ token: (kind?: import("./client.js").SlackToken) => string | undefined;
172
+ workspaceId: () => Promise<string>;
173
+ }, {
174
+ [x: string]: unknown;
175
+ ok: true;
176
+ channel?: string | undefined;
177
+ ts?: string | undefined;
178
+ }> | import("frogbot").PieceActionDefinition<z.ZodObject<{
179
+ channel: z.ZodString;
180
+ text: z.ZodOptional<z.ZodString>;
181
+ sendAsBot: z.ZodDefault<z.ZodBoolean>;
182
+ threadTimestamp: z.ZodOptional<z.ZodString>;
183
+ username: z.ZodOptional<z.ZodString>;
184
+ profilePicture: z.ZodOptional<z.ZodURL>;
185
+ iconEmoji: z.ZodOptional<z.ZodString>;
186
+ file: z.ZodOptional<z.ZodObject<{
187
+ fileId: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
188
+ name: z.ZodOptional<z.ZodString>;
189
+ }, z.core.$strip>>;
190
+ replyBroadcast: z.ZodDefault<z.ZodBoolean>;
191
+ unfurlLinks: z.ZodDefault<z.ZodBoolean>;
192
+ blocks: z.ZodDefault<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
193
+ }, z.core.$strip>, z.ZodObject<{
194
+ ok: z.ZodLiteral<true>;
195
+ }, z.core.$catchall<z.ZodUnknown>>, {
196
+ signingSecret?: string;
197
+ }, {
198
+ request: (path: string, body?: Record<string, unknown>, tokenKind?: import("./client.js").SlackToken) => Promise<{
199
+ [x: string]: unknown;
200
+ ok: true;
201
+ }>;
202
+ raw: ({ path, method, body, headers, token: tokenKind, }: {
203
+ path: string;
204
+ method?: string;
205
+ body?: BodyInit | Record<string, unknown>;
206
+ headers?: HeadersInit;
207
+ token?: import("./client.js").SlackToken;
208
+ }) => Promise<{
209
+ status: number;
210
+ headers: {
211
+ [k: string]: string;
212
+ };
213
+ body: any;
214
+ }>;
215
+ paginate: ({ path, body, item, token: tokenKind, limit, }: {
216
+ path: string;
217
+ body?: Record<string, unknown>;
218
+ item: string;
219
+ token?: import("./client.js").SlackToken;
220
+ limit?: number;
221
+ }) => Promise<Record<string, unknown>[]>;
222
+ token: (kind?: import("./client.js").SlackToken) => string | undefined;
223
+ workspaceId: () => Promise<string>;
224
+ }, {
225
+ [x: string]: unknown;
226
+ ok: true;
227
+ }> | import("frogbot").PieceActionDefinition<z.ZodObject<{
228
+ file: z.ZodObject<{
229
+ fileId: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
230
+ name: z.ZodOptional<z.ZodString>;
231
+ }, z.core.$strip>;
232
+ title: z.ZodOptional<z.ZodString>;
233
+ filename: z.ZodOptional<z.ZodString>;
234
+ channel: z.ZodOptional<z.ZodString>;
235
+ }, z.core.$strip>, z.ZodObject<{
236
+ ok: z.ZodLiteral<true>;
237
+ }, z.core.$catchall<z.ZodUnknown>>, {
238
+ signingSecret?: string;
239
+ }, {
240
+ request: (path: string, body?: Record<string, unknown>, tokenKind?: import("./client.js").SlackToken) => Promise<{
241
+ [x: string]: unknown;
242
+ ok: true;
243
+ }>;
244
+ raw: ({ path, method, body, headers, token: tokenKind, }: {
245
+ path: string;
246
+ method?: string;
247
+ body?: BodyInit | Record<string, unknown>;
248
+ headers?: HeadersInit;
249
+ token?: import("./client.js").SlackToken;
250
+ }) => Promise<{
251
+ status: number;
252
+ headers: {
253
+ [k: string]: string;
254
+ };
255
+ body: any;
256
+ }>;
257
+ paginate: ({ path, body, item, token: tokenKind, limit, }: {
258
+ path: string;
259
+ body?: Record<string, unknown>;
260
+ item: string;
261
+ token?: import("./client.js").SlackToken;
262
+ limit?: number;
263
+ }) => Promise<Record<string, unknown>[]>;
264
+ token: (kind?: import("./client.js").SlackToken) => string | undefined;
265
+ workspaceId: () => Promise<string>;
266
+ }, {
267
+ [x: string]: unknown;
268
+ ok: true;
269
+ }> | import("frogbot").PieceActionDefinition<z.ZodObject<{
270
+ fileId: z.ZodString;
271
+ }, z.core.$strip>, z.ZodRecord<z.ZodString, z.ZodUnknown>, {
272
+ signingSecret?: string;
273
+ }, {
274
+ request: (path: string, body?: Record<string, unknown>, tokenKind?: import("./client.js").SlackToken) => Promise<{
275
+ [x: string]: unknown;
276
+ ok: true;
277
+ }>;
278
+ raw: ({ path, method, body, headers, token: tokenKind, }: {
279
+ path: string;
280
+ method?: string;
281
+ body?: BodyInit | Record<string, unknown>;
282
+ headers?: HeadersInit;
283
+ token?: import("./client.js").SlackToken;
284
+ }) => Promise<{
285
+ status: number;
286
+ headers: {
287
+ [k: string]: string;
288
+ };
289
+ body: any;
290
+ }>;
291
+ paginate: ({ path, body, item, token: tokenKind, limit, }: {
292
+ path: string;
293
+ body?: Record<string, unknown>;
294
+ item: string;
295
+ token?: import("./client.js").SlackToken;
296
+ limit?: number;
297
+ }) => Promise<Record<string, unknown>[]>;
298
+ token: (kind?: import("./client.js").SlackToken) => string | undefined;
299
+ workspaceId: () => Promise<string>;
300
+ }, Record<string, unknown>> | import("frogbot").PieceActionDefinition<z.ZodObject<{
301
+ query: z.ZodString;
302
+ }, z.core.$strip>, z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>, {
303
+ signingSecret?: string;
304
+ }, {
305
+ request: (path: string, body?: Record<string, unknown>, tokenKind?: import("./client.js").SlackToken) => Promise<{
306
+ [x: string]: unknown;
307
+ ok: true;
308
+ }>;
309
+ raw: ({ path, method, body, headers, token: tokenKind, }: {
310
+ path: string;
311
+ method?: string;
312
+ body?: BodyInit | Record<string, unknown>;
313
+ headers?: HeadersInit;
314
+ token?: import("./client.js").SlackToken;
315
+ }) => Promise<{
316
+ status: number;
317
+ headers: {
318
+ [k: string]: string;
319
+ };
320
+ body: any;
321
+ }>;
322
+ paginate: ({ path, body, item, token: tokenKind, limit, }: {
323
+ path: string;
324
+ body?: Record<string, unknown>;
325
+ item: string;
326
+ token?: import("./client.js").SlackToken;
327
+ limit?: number;
328
+ }) => Promise<Record<string, unknown>[]>;
329
+ token: (kind?: import("./client.js").SlackToken) => string | undefined;
330
+ workspaceId: () => Promise<string>;
331
+ }, Record<string, unknown>[]> | import("frogbot").PieceActionDefinition<z.ZodObject<{
332
+ email: z.ZodEmail;
333
+ }, z.core.$strip>, z.ZodObject<{
334
+ ok: z.ZodLiteral<true>;
335
+ }, z.core.$catchall<z.ZodUnknown>>, {
336
+ signingSecret?: string;
337
+ }, {
338
+ request: (path: string, body?: Record<string, unknown>, tokenKind?: import("./client.js").SlackToken) => Promise<{
339
+ [x: string]: unknown;
340
+ ok: true;
341
+ }>;
342
+ raw: ({ path, method, body, headers, token: tokenKind, }: {
343
+ path: string;
344
+ method?: string;
345
+ body?: BodyInit | Record<string, unknown>;
346
+ headers?: HeadersInit;
347
+ token?: import("./client.js").SlackToken;
348
+ }) => Promise<{
349
+ status: number;
350
+ headers: {
351
+ [k: string]: string;
352
+ };
353
+ body: any;
354
+ }>;
355
+ paginate: ({ path, body, item, token: tokenKind, limit, }: {
356
+ path: string;
357
+ body?: Record<string, unknown>;
358
+ item: string;
359
+ token?: import("./client.js").SlackToken;
360
+ limit?: number;
361
+ }) => Promise<Record<string, unknown>[]>;
362
+ token: (kind?: import("./client.js").SlackToken) => string | undefined;
363
+ workspaceId: () => Promise<string>;
364
+ }, {
365
+ [x: string]: unknown;
366
+ ok: true;
367
+ }> | import("frogbot").PieceActionDefinition<z.ZodObject<{
368
+ handle: z.ZodString;
369
+ }, z.core.$strip>, z.ZodRecord<z.ZodString, z.ZodUnknown>, {
370
+ signingSecret?: string;
371
+ }, {
372
+ request: (path: string, body?: Record<string, unknown>, tokenKind?: import("./client.js").SlackToken) => Promise<{
373
+ [x: string]: unknown;
374
+ ok: true;
375
+ }>;
376
+ raw: ({ path, method, body, headers, token: tokenKind, }: {
377
+ path: string;
378
+ method?: string;
379
+ body?: BodyInit | Record<string, unknown>;
380
+ headers?: HeadersInit;
381
+ token?: import("./client.js").SlackToken;
382
+ }) => Promise<{
383
+ status: number;
384
+ headers: {
385
+ [k: string]: string;
386
+ };
387
+ body: any;
388
+ }>;
389
+ paginate: ({ path, body, item, token: tokenKind, limit, }: {
390
+ path: string;
391
+ body?: Record<string, unknown>;
392
+ item: string;
393
+ token?: import("./client.js").SlackToken;
394
+ limit?: number;
395
+ }) => Promise<Record<string, unknown>[]>;
396
+ token: (kind?: import("./client.js").SlackToken) => string | undefined;
397
+ workspaceId: () => Promise<string>;
398
+ }, Record<string, unknown>> | import("frogbot").PieceActionDefinition<z.ZodObject<{
399
+ id: z.ZodString;
400
+ }, z.core.$strip>, z.ZodObject<{
401
+ ok: z.ZodLiteral<true>;
402
+ }, z.core.$catchall<z.ZodUnknown>>, {
403
+ signingSecret?: string;
404
+ }, {
405
+ request: (path: string, body?: Record<string, unknown>, tokenKind?: import("./client.js").SlackToken) => Promise<{
406
+ [x: string]: unknown;
407
+ ok: true;
408
+ }>;
409
+ raw: ({ path, method, body, headers, token: tokenKind, }: {
410
+ path: string;
411
+ method?: string;
412
+ body?: BodyInit | Record<string, unknown>;
413
+ headers?: HeadersInit;
414
+ token?: import("./client.js").SlackToken;
415
+ }) => Promise<{
416
+ status: number;
417
+ headers: {
418
+ [k: string]: string;
419
+ };
420
+ body: any;
421
+ }>;
422
+ paginate: ({ path, body, item, token: tokenKind, limit, }: {
423
+ path: string;
424
+ body?: Record<string, unknown>;
425
+ item: string;
426
+ token?: import("./client.js").SlackToken;
427
+ limit?: number;
428
+ }) => Promise<Record<string, unknown>[]>;
429
+ token: (kind?: import("./client.js").SlackToken) => string | undefined;
430
+ workspaceId: () => Promise<string>;
431
+ }, {
432
+ [x: string]: unknown;
433
+ ok: true;
434
+ }> | import("frogbot").PieceActionDefinition<z.ZodObject<{
435
+ includeBots: z.ZodDefault<z.ZodBoolean>;
436
+ includeDisabled: z.ZodDefault<z.ZodBoolean>;
437
+ }, z.core.$strip>, z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>, {
438
+ signingSecret?: string;
439
+ }, {
440
+ request: (path: string, body?: Record<string, unknown>, tokenKind?: import("./client.js").SlackToken) => Promise<{
441
+ [x: string]: unknown;
442
+ ok: true;
443
+ }>;
444
+ raw: ({ path, method, body, headers, token: tokenKind, }: {
445
+ path: string;
446
+ method?: string;
447
+ body?: BodyInit | Record<string, unknown>;
448
+ headers?: HeadersInit;
449
+ token?: import("./client.js").SlackToken;
450
+ }) => Promise<{
451
+ status: number;
452
+ headers: {
453
+ [k: string]: string;
454
+ };
455
+ body: any;
456
+ }>;
457
+ paginate: ({ path, body, item, token: tokenKind, limit, }: {
458
+ path: string;
459
+ body?: Record<string, unknown>;
460
+ item: string;
461
+ token?: import("./client.js").SlackToken;
462
+ limit?: number;
463
+ }) => Promise<Record<string, unknown>[]>;
464
+ token: (kind?: import("./client.js").SlackToken) => string | undefined;
465
+ workspaceId: () => Promise<string>;
466
+ }, Record<string, unknown>[]> | import("frogbot").PieceActionDefinition<z.ZodObject<{
467
+ channel: z.ZodString;
468
+ timestamp: z.ZodString;
469
+ }, z.core.$strip>, z.ZodObject<{
470
+ ok: z.ZodLiteral<true>;
471
+ }, z.core.$catchall<z.ZodUnknown>>, {
472
+ signingSecret?: string;
473
+ }, {
474
+ request: (path: string, body?: Record<string, unknown>, tokenKind?: import("./client.js").SlackToken) => Promise<{
475
+ [x: string]: unknown;
476
+ ok: true;
477
+ }>;
478
+ raw: ({ path, method, body, headers, token: tokenKind, }: {
479
+ path: string;
480
+ method?: string;
481
+ body?: BodyInit | Record<string, unknown>;
482
+ headers?: HeadersInit;
483
+ token?: import("./client.js").SlackToken;
484
+ }) => Promise<{
485
+ status: number;
486
+ headers: {
487
+ [k: string]: string;
488
+ };
489
+ body: any;
490
+ }>;
491
+ paginate: ({ path, body, item, token: tokenKind, limit, }: {
492
+ path: string;
493
+ body?: Record<string, unknown>;
494
+ item: string;
495
+ token?: import("./client.js").SlackToken;
496
+ limit?: number;
497
+ }) => Promise<Record<string, unknown>[]>;
498
+ token: (kind?: import("./client.js").SlackToken) => string | undefined;
499
+ workspaceId: () => Promise<string>;
500
+ }, {
501
+ [x: string]: unknown;
502
+ ok: true;
503
+ }> | import("frogbot").PieceActionDefinition<z.ZodObject<{
504
+ channelName: z.ZodString;
505
+ isPrivate: z.ZodDefault<z.ZodBoolean>;
506
+ }, z.core.$strip>, z.ZodObject<{
507
+ ok: z.ZodLiteral<true>;
508
+ }, z.core.$catchall<z.ZodUnknown>>, {
509
+ signingSecret?: string;
510
+ }, {
511
+ request: (path: string, body?: Record<string, unknown>, tokenKind?: import("./client.js").SlackToken) => Promise<{
512
+ [x: string]: unknown;
513
+ ok: true;
514
+ }>;
515
+ raw: ({ path, method, body, headers, token: tokenKind, }: {
516
+ path: string;
517
+ method?: string;
518
+ body?: BodyInit | Record<string, unknown>;
519
+ headers?: HeadersInit;
520
+ token?: import("./client.js").SlackToken;
521
+ }) => Promise<{
522
+ status: number;
523
+ headers: {
524
+ [k: string]: string;
525
+ };
526
+ body: any;
527
+ }>;
528
+ paginate: ({ path, body, item, token: tokenKind, limit, }: {
529
+ path: string;
530
+ body?: Record<string, unknown>;
531
+ item: string;
532
+ token?: import("./client.js").SlackToken;
533
+ limit?: number;
534
+ }) => Promise<Record<string, unknown>[]>;
535
+ token: (kind?: import("./client.js").SlackToken) => string | undefined;
536
+ workspaceId: () => Promise<string>;
537
+ }, {
538
+ [x: string]: unknown;
539
+ ok: true;
540
+ }> | import("frogbot").PieceActionDefinition<z.ZodObject<{
541
+ firstName: z.ZodOptional<z.ZodString>;
542
+ lastName: z.ZodOptional<z.ZodString>;
543
+ email: z.ZodOptional<z.ZodEmail>;
544
+ userId: z.ZodOptional<z.ZodString>;
545
+ }, z.core.$strip>, z.ZodObject<{
546
+ ok: z.ZodLiteral<true>;
547
+ }, z.core.$catchall<z.ZodUnknown>>, {
548
+ signingSecret?: string;
549
+ }, {
550
+ request: (path: string, body?: Record<string, unknown>, tokenKind?: import("./client.js").SlackToken) => Promise<{
551
+ [x: string]: unknown;
552
+ ok: true;
553
+ }>;
554
+ raw: ({ path, method, body, headers, token: tokenKind, }: {
555
+ path: string;
556
+ method?: string;
557
+ body?: BodyInit | Record<string, unknown>;
558
+ headers?: HeadersInit;
559
+ token?: import("./client.js").SlackToken;
560
+ }) => Promise<{
561
+ status: number;
562
+ headers: {
563
+ [k: string]: string;
564
+ };
565
+ body: any;
566
+ }>;
567
+ paginate: ({ path, body, item, token: tokenKind, limit, }: {
568
+ path: string;
569
+ body?: Record<string, unknown>;
570
+ item: string;
571
+ token?: import("./client.js").SlackToken;
572
+ limit?: number;
573
+ }) => Promise<Record<string, unknown>[]>;
574
+ token: (kind?: import("./client.js").SlackToken) => string | undefined;
575
+ workspaceId: () => Promise<string>;
576
+ }, {
577
+ [x: string]: unknown;
578
+ ok: true;
579
+ }> | import("frogbot").PieceActionDefinition<z.ZodObject<{
580
+ channel: z.ZodString;
581
+ oldest: z.ZodOptional<z.ZodNumber>;
582
+ latest: z.ZodOptional<z.ZodNumber>;
583
+ inclusive: z.ZodDefault<z.ZodBoolean>;
584
+ includeAllMetadata: z.ZodDefault<z.ZodBoolean>;
585
+ }, z.core.$strip>, z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>, {
586
+ signingSecret?: string;
587
+ }, {
588
+ request: (path: string, body?: Record<string, unknown>, tokenKind?: import("./client.js").SlackToken) => Promise<{
589
+ [x: string]: unknown;
590
+ ok: true;
591
+ }>;
592
+ raw: ({ path, method, body, headers, token: tokenKind, }: {
593
+ path: string;
594
+ method?: string;
595
+ body?: BodyInit | Record<string, unknown>;
596
+ headers?: HeadersInit;
597
+ token?: import("./client.js").SlackToken;
598
+ }) => Promise<{
599
+ status: number;
600
+ headers: {
601
+ [k: string]: string;
602
+ };
603
+ body: any;
604
+ }>;
605
+ paginate: ({ path, body, item, token: tokenKind, limit, }: {
606
+ path: string;
607
+ body?: Record<string, unknown>;
608
+ item: string;
609
+ token?: import("./client.js").SlackToken;
610
+ limit?: number;
611
+ }) => Promise<Record<string, unknown>[]>;
612
+ token: (kind?: import("./client.js").SlackToken) => string | undefined;
613
+ workspaceId: () => Promise<string>;
614
+ }, Record<string, unknown>[]> | import("frogbot").PieceActionDefinition<z.ZodObject<{
615
+ text: z.ZodString;
616
+ emoji: z.ZodOptional<z.ZodString>;
617
+ expiration: z.ZodOptional<z.ZodNumber>;
618
+ }, z.core.$strip>, z.ZodObject<{
619
+ ok: z.ZodLiteral<true>;
620
+ }, z.core.$catchall<z.ZodUnknown>>, {
621
+ signingSecret?: string;
622
+ }, {
623
+ request: (path: string, body?: Record<string, unknown>, tokenKind?: import("./client.js").SlackToken) => Promise<{
624
+ [x: string]: unknown;
625
+ ok: true;
626
+ }>;
627
+ raw: ({ path, method, body, headers, token: tokenKind, }: {
628
+ path: string;
629
+ method?: string;
630
+ body?: BodyInit | Record<string, unknown>;
631
+ headers?: HeadersInit;
632
+ token?: import("./client.js").SlackToken;
633
+ }) => Promise<{
634
+ status: number;
635
+ headers: {
636
+ [k: string]: string;
637
+ };
638
+ body: any;
639
+ }>;
640
+ paginate: ({ path, body, item, token: tokenKind, limit, }: {
641
+ path: string;
642
+ body?: Record<string, unknown>;
643
+ item: string;
644
+ token?: import("./client.js").SlackToken;
645
+ limit?: number;
646
+ }) => Promise<Record<string, unknown>[]>;
647
+ token: (kind?: import("./client.js").SlackToken) => string | undefined;
648
+ workspaceId: () => Promise<string>;
649
+ }, {
650
+ [x: string]: unknown;
651
+ ok: true;
652
+ }> | import("frogbot").PieceActionDefinition<z.ZodObject<{
653
+ markdown: z.ZodString;
654
+ }, z.core.$strip>, z.ZodObject<{
655
+ text: z.ZodString;
656
+ }, z.core.$strip>, {
657
+ signingSecret?: string;
658
+ }, {
659
+ request: (path: string, body?: Record<string, unknown>, tokenKind?: import("./client.js").SlackToken) => Promise<{
660
+ [x: string]: unknown;
661
+ ok: true;
662
+ }>;
663
+ raw: ({ path, method, body, headers, token: tokenKind, }: {
664
+ path: string;
665
+ method?: string;
666
+ body?: BodyInit | Record<string, unknown>;
667
+ headers?: HeadersInit;
668
+ token?: import("./client.js").SlackToken;
669
+ }) => Promise<{
670
+ status: number;
671
+ headers: {
672
+ [k: string]: string;
673
+ };
674
+ body: any;
675
+ }>;
676
+ paginate: ({ path, body, item, token: tokenKind, limit, }: {
677
+ path: string;
678
+ body?: Record<string, unknown>;
679
+ item: string;
680
+ token?: import("./client.js").SlackToken;
681
+ limit?: number;
682
+ }) => Promise<Record<string, unknown>[]>;
683
+ token: (kind?: import("./client.js").SlackToken) => string | undefined;
684
+ workspaceId: () => Promise<string>;
685
+ }, {
686
+ text: string;
687
+ }> | import("frogbot").PieceActionDefinition<z.ZodObject<{
688
+ channel: z.ZodString;
689
+ threadTimestamp: z.ZodString;
690
+ }, z.core.$strip>, z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>, {
691
+ signingSecret?: string;
692
+ }, {
693
+ request: (path: string, body?: Record<string, unknown>, tokenKind?: import("./client.js").SlackToken) => Promise<{
694
+ [x: string]: unknown;
695
+ ok: true;
696
+ }>;
697
+ raw: ({ path, method, body, headers, token: tokenKind, }: {
698
+ path: string;
699
+ method?: string;
700
+ body?: BodyInit | Record<string, unknown>;
701
+ headers?: HeadersInit;
702
+ token?: import("./client.js").SlackToken;
703
+ }) => Promise<{
704
+ status: number;
705
+ headers: {
706
+ [k: string]: string;
707
+ };
708
+ body: any;
709
+ }>;
710
+ paginate: ({ path, body, item, token: tokenKind, limit, }: {
711
+ path: string;
712
+ body?: Record<string, unknown>;
713
+ item: string;
714
+ token?: import("./client.js").SlackToken;
715
+ limit?: number;
716
+ }) => Promise<Record<string, unknown>[]>;
717
+ token: (kind?: import("./client.js").SlackToken) => string | undefined;
718
+ workspaceId: () => Promise<string>;
719
+ }, Record<string, unknown>[]> | import("frogbot").PieceActionDefinition<z.ZodObject<{
720
+ channel: z.ZodString;
721
+ topic: z.ZodString;
722
+ }, z.core.$strip>, z.ZodObject<{
723
+ ok: z.ZodLiteral<true>;
724
+ }, z.core.$catchall<z.ZodUnknown>>, {
725
+ signingSecret?: string;
726
+ }, {
727
+ request: (path: string, body?: Record<string, unknown>, tokenKind?: import("./client.js").SlackToken) => Promise<{
728
+ [x: string]: unknown;
729
+ ok: true;
730
+ }>;
731
+ raw: ({ path, method, body, headers, token: tokenKind, }: {
732
+ path: string;
733
+ method?: string;
734
+ body?: BodyInit | Record<string, unknown>;
735
+ headers?: HeadersInit;
736
+ token?: import("./client.js").SlackToken;
737
+ }) => Promise<{
738
+ status: number;
739
+ headers: {
740
+ [k: string]: string;
741
+ };
742
+ body: any;
743
+ }>;
744
+ paginate: ({ path, body, item, token: tokenKind, limit, }: {
745
+ path: string;
746
+ body?: Record<string, unknown>;
747
+ item: string;
748
+ token?: import("./client.js").SlackToken;
749
+ limit?: number;
750
+ }) => Promise<Record<string, unknown>[]>;
751
+ token: (kind?: import("./client.js").SlackToken) => string | undefined;
752
+ workspaceId: () => Promise<string>;
753
+ }, {
754
+ [x: string]: unknown;
755
+ ok: true;
756
+ }> | import("frogbot").PieceActionDefinition<z.ZodObject<{
757
+ channel: z.ZodString;
758
+ userId: z.ZodString;
759
+ }, z.core.$strip>, z.ZodObject<{
760
+ ok: z.ZodLiteral<true>;
761
+ }, z.core.$catchall<z.ZodUnknown>>, {
762
+ signingSecret?: string;
763
+ }, {
764
+ request: (path: string, body?: Record<string, unknown>, tokenKind?: import("./client.js").SlackToken) => Promise<{
765
+ [x: string]: unknown;
766
+ ok: true;
767
+ }>;
768
+ raw: ({ path, method, body, headers, token: tokenKind, }: {
769
+ path: string;
770
+ method?: string;
771
+ body?: BodyInit | Record<string, unknown>;
772
+ headers?: HeadersInit;
773
+ token?: import("./client.js").SlackToken;
774
+ }) => Promise<{
775
+ status: number;
776
+ headers: {
777
+ [k: string]: string;
778
+ };
779
+ body: any;
780
+ }>;
781
+ paginate: ({ path, body, item, token: tokenKind, limit, }: {
782
+ path: string;
783
+ body?: Record<string, unknown>;
784
+ item: string;
785
+ token?: import("./client.js").SlackToken;
786
+ limit?: number;
787
+ }) => Promise<Record<string, unknown>[]>;
788
+ token: (kind?: import("./client.js").SlackToken) => string | undefined;
789
+ workspaceId: () => Promise<string>;
790
+ }, {
791
+ [x: string]: unknown;
792
+ ok: true;
793
+ }> | import("frogbot").PieceActionDefinition<z.ZodObject<{
794
+ handle: z.ZodString;
795
+ userIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
796
+ appendUsers: z.ZodDefault<z.ZodBoolean>;
797
+ }, z.core.$strip>, z.ZodObject<{
798
+ ok: z.ZodLiteral<true>;
799
+ }, z.core.$catchall<z.ZodUnknown>>, {
800
+ signingSecret?: string;
801
+ }, {
802
+ request: (path: string, body?: Record<string, unknown>, tokenKind?: import("./client.js").SlackToken) => Promise<{
803
+ [x: string]: unknown;
804
+ ok: true;
805
+ }>;
806
+ raw: ({ path, method, body, headers, token: tokenKind, }: {
807
+ path: string;
808
+ method?: string;
809
+ body?: BodyInit | Record<string, unknown>;
810
+ headers?: HeadersInit;
811
+ token?: import("./client.js").SlackToken;
812
+ }) => Promise<{
813
+ status: number;
814
+ headers: {
815
+ [k: string]: string;
816
+ };
817
+ body: any;
818
+ }>;
819
+ paginate: ({ path, body, item, token: tokenKind, limit, }: {
820
+ path: string;
821
+ body?: Record<string, unknown>;
822
+ item: string;
823
+ token?: import("./client.js").SlackToken;
824
+ limit?: number;
825
+ }) => Promise<Record<string, unknown>[]>;
826
+ token: (kind?: import("./client.js").SlackToken) => string | undefined;
827
+ workspaceId: () => Promise<string>;
828
+ }, {
829
+ [x: string]: unknown;
830
+ ok: true;
831
+ }> | import("frogbot").PieceActionDefinition<z.ZodObject<{
832
+ method: z.ZodEnum<{
833
+ GET: "GET";
834
+ POST: "POST";
835
+ PUT: "PUT";
836
+ PATCH: "PATCH";
837
+ DELETE: "DELETE";
838
+ }>;
839
+ path: z.ZodString;
840
+ headers: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
841
+ queryParams: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>>;
842
+ body: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
843
+ useUserToken: z.ZodDefault<z.ZodBoolean>;
844
+ }, z.core.$strip>, z.ZodObject<{
845
+ status: z.ZodNumber;
846
+ headers: z.ZodRecord<z.ZodString, z.ZodString>;
847
+ body: z.ZodUnknown;
848
+ }, z.core.$strip>, {
849
+ signingSecret?: string;
850
+ }, {
851
+ request: (path: string, body?: Record<string, unknown>, tokenKind?: import("./client.js").SlackToken) => Promise<{
852
+ [x: string]: unknown;
853
+ ok: true;
854
+ }>;
855
+ raw: ({ path, method, body, headers, token: tokenKind, }: {
856
+ path: string;
857
+ method?: string;
858
+ body?: BodyInit | Record<string, unknown>;
859
+ headers?: HeadersInit;
860
+ token?: import("./client.js").SlackToken;
861
+ }) => Promise<{
862
+ status: number;
863
+ headers: {
864
+ [k: string]: string;
865
+ };
866
+ body: any;
867
+ }>;
868
+ paginate: ({ path, body, item, token: tokenKind, limit, }: {
869
+ path: string;
870
+ body?: Record<string, unknown>;
871
+ item: string;
872
+ token?: import("./client.js").SlackToken;
873
+ limit?: number;
874
+ }) => Promise<Record<string, unknown>[]>;
875
+ token: (kind?: import("./client.js").SlackToken) => string | undefined;
876
+ workspaceId: () => Promise<string>;
877
+ }, {
878
+ status: number;
879
+ headers: Record<string, string>;
880
+ body: unknown;
881
+ }>)[];
882
+ readonly triggers: (import("frogbot").PieceAppTrigger<z.ZodObject<{
883
+ ignoreBots: z.ZodDefault<z.ZodBoolean>;
884
+ }, z.core.$strip>, z.ZodRecord<z.ZodString, z.ZodUnknown>, {
885
+ signingSecret?: string;
886
+ }, {
887
+ request: (path: string, body?: Record<string, unknown>, tokenKind?: import("./client.js").SlackToken) => Promise<{
888
+ [x: string]: unknown;
889
+ ok: true;
890
+ }>;
891
+ raw: ({ path, method, body, headers, token: tokenKind, }: {
892
+ path: string;
893
+ method?: string;
894
+ body?: BodyInit | Record<string, unknown>;
895
+ headers?: HeadersInit;
896
+ token?: import("./client.js").SlackToken;
897
+ }) => Promise<{
898
+ status: number;
899
+ headers: {
900
+ [k: string]: string;
901
+ };
902
+ body: any;
903
+ }>;
904
+ paginate: ({ path, body, item, token: tokenKind, limit, }: {
905
+ path: string;
906
+ body?: Record<string, unknown>;
907
+ item: string;
908
+ token?: import("./client.js").SlackToken;
909
+ limit?: number;
910
+ }) => Promise<Record<string, unknown>[]>;
911
+ token: (kind?: import("./client.js").SlackToken) => string | undefined;
912
+ workspaceId: () => Promise<string>;
913
+ }> | import("frogbot").PieceAppTrigger<z.ZodObject<{
914
+ emojis: z.ZodDefault<z.ZodArray<z.ZodString>>;
915
+ user: z.ZodOptional<z.ZodString>;
916
+ channels: z.ZodDefault<z.ZodArray<z.ZodString>>;
917
+ }, z.core.$strip>, z.ZodRecord<z.ZodString, z.ZodUnknown>, {
918
+ signingSecret?: string;
919
+ }, {
920
+ request: (path: string, body?: Record<string, unknown>, tokenKind?: import("./client.js").SlackToken) => Promise<{
921
+ [x: string]: unknown;
922
+ ok: true;
923
+ }>;
924
+ raw: ({ path, method, body, headers, token: tokenKind, }: {
925
+ path: string;
926
+ method?: string;
927
+ body?: BodyInit | Record<string, unknown>;
928
+ headers?: HeadersInit;
929
+ token?: import("./client.js").SlackToken;
930
+ }) => Promise<{
931
+ status: number;
932
+ headers: {
933
+ [k: string]: string;
934
+ };
935
+ body: any;
936
+ }>;
937
+ paginate: ({ path, body, item, token: tokenKind, limit, }: {
938
+ path: string;
939
+ body?: Record<string, unknown>;
940
+ item: string;
941
+ token?: import("./client.js").SlackToken;
942
+ limit?: number;
943
+ }) => Promise<Record<string, unknown>[]>;
944
+ token: (kind?: import("./client.js").SlackToken) => string | undefined;
945
+ workspaceId: () => Promise<string>;
946
+ }> | import("frogbot").PieceAppTrigger<z.ZodObject<{}, z.core.$strip>, z.ZodRecord<z.ZodString, z.ZodUnknown>, {
947
+ signingSecret?: string;
948
+ }, {
949
+ request: (path: string, body?: Record<string, unknown>, tokenKind?: import("./client.js").SlackToken) => Promise<{
950
+ [x: string]: unknown;
951
+ ok: true;
952
+ }>;
953
+ raw: ({ path, method, body, headers, token: tokenKind, }: {
954
+ path: string;
955
+ method?: string;
956
+ body?: BodyInit | Record<string, unknown>;
957
+ headers?: HeadersInit;
958
+ token?: import("./client.js").SlackToken;
959
+ }) => Promise<{
960
+ status: number;
961
+ headers: {
962
+ [k: string]: string;
963
+ };
964
+ body: any;
965
+ }>;
966
+ paginate: ({ path, body, item, token: tokenKind, limit, }: {
967
+ path: string;
968
+ body?: Record<string, unknown>;
969
+ item: string;
970
+ token?: import("./client.js").SlackToken;
971
+ limit?: number;
972
+ }) => Promise<Record<string, unknown>[]>;
973
+ token: (kind?: import("./client.js").SlackToken) => string | undefined;
974
+ workspaceId: () => Promise<string>;
975
+ }> | import("frogbot").PieceAppTrigger<z.ZodObject<{
976
+ interactionType: z.ZodDefault<z.ZodEnum<{
977
+ view_submission: "view_submission";
978
+ view_closed: "view_closed";
979
+ }>>;
980
+ }, z.core.$strip>, z.ZodRecord<z.ZodString, z.ZodUnknown>, {
981
+ signingSecret?: string;
982
+ }, {
983
+ request: (path: string, body?: Record<string, unknown>, tokenKind?: import("./client.js").SlackToken) => Promise<{
984
+ [x: string]: unknown;
985
+ ok: true;
986
+ }>;
987
+ raw: ({ path, method, body, headers, token: tokenKind, }: {
988
+ path: string;
989
+ method?: string;
990
+ body?: BodyInit | Record<string, unknown>;
991
+ headers?: HeadersInit;
992
+ token?: import("./client.js").SlackToken;
993
+ }) => Promise<{
994
+ status: number;
995
+ headers: {
996
+ [k: string]: string;
997
+ };
998
+ body: any;
999
+ }>;
1000
+ paginate: ({ path, body, item, token: tokenKind, limit, }: {
1001
+ path: string;
1002
+ body?: Record<string, unknown>;
1003
+ item: string;
1004
+ token?: import("./client.js").SlackToken;
1005
+ limit?: number;
1006
+ }) => Promise<Record<string, unknown>[]>;
1007
+ token: (kind?: import("./client.js").SlackToken) => string | undefined;
1008
+ workspaceId: () => Promise<string>;
1009
+ }>)[];
1010
+ }>;
62
1011
  //# sourceMappingURL=index.d.ts.map