@frogbotai/piece-slack 0.31.0 → 0.32.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +40 -30
- package/dist/actions.d.ts +64 -686
- package/dist/actions.d.ts.map +1 -1
- package/dist/actions.js +10 -43
- package/dist/actions.js.map +1 -1
- package/dist/client.d.ts +1 -18
- package/dist/client.d.ts.map +1 -1
- package/dist/client.js +12 -42
- package/dist/client.js.map +1 -1
- package/dist/config.d.ts +57 -1
- package/dist/config.d.ts.map +1 -1
- package/dist/config.js +57 -1
- package/dist/config.js.map +1 -1
- package/dist/define.d.ts +37 -53
- package/dist/define.d.ts.map +1 -1
- package/dist/define.js +1 -1
- package/dist/define.js.map +1 -1
- package/dist/index.d.ts +150 -607
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +5 -4
- package/dist/index.js.map +1 -1
- package/dist/triggers.d.ts +61 -397
- package/dist/triggers.d.ts.map +1 -1
- package/package.json +3 -3
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: ("sendDirectMessage" | "sendChannelMessage" | "addReaction" | "uploadFile" | "getFile" | "searchMessages" | "findUserByEmail" | "findUserByHandle" | "findUserById" | "listUsers" | "updateMessage" | "deleteMessage" | "createChannel" | "updateProfile" | "getChannelHistory" | "setUserStatus" | "markdownToSlack" | "listThreadMessages" | "setChannelTopic" | "getMessage" | "inviteUserToChannel" | "getUserGroupByHandle" | "updateUserGroupMembers"
|
|
6
|
-
export declare const slackTriggerNames: ("messageCreated" | "channelMessageCreated" | "directMessageCreated" | "channelMentionCreated" | "
|
|
5
|
+
export declare const slackActionNames: ("customApiCall" | "sendDirectMessage" | "sendChannelMessage" | "addReaction" | "uploadFile" | "getFile" | "searchMessages" | "findUserByEmail" | "findUserByHandle" | "findUserById" | "listUsers" | "updateMessage" | "deleteMessage" | "createChannel" | "updateProfile" | "getChannelHistory" | "setUserStatus" | "markdownToSlack" | "listThreadMessages" | "setChannelTopic" | "getMessage" | "inviteUserToChannel" | "getUserGroupByHandle" | "updateUserGroupMembers")[];
|
|
6
|
+
export declare const slackTriggerNames: ("messageCreated" | "channelMessageCreated" | "directMessageCreated" | "channelMentionCreated" | "directMentionCreated" | "reactionAdded" | "reactionRemoved" | "channelCreated" | "channelCommandCreated" | "directCommandCreated" | "userJoined" | "messageSaved" | "customEmojiAdded" | "modalInteraction")[];
|
|
7
7
|
export { slackScopes };
|
|
8
8
|
export declare const createSlack: import("frogbot").PieceFactory<{
|
|
9
9
|
readonly slug: "slack";
|
|
@@ -24,7 +24,65 @@ export declare const createSlack: import("frogbot").PieceFactory<{
|
|
|
24
24
|
readonly oauth: {
|
|
25
25
|
readonly authorizationUrl: "https://slack.com/oauth/v2/authorize";
|
|
26
26
|
readonly tokenUrl: "https://slack.com/api/oauth.v2.access";
|
|
27
|
-
readonly scopes:
|
|
27
|
+
readonly scopes: {
|
|
28
|
+
readonly catalog: {
|
|
29
|
+
readonly 'app_mentions:read': "app_mentions:read";
|
|
30
|
+
readonly 'assistant:write': "assistant:write";
|
|
31
|
+
readonly 'bookmarks:read': "bookmarks:read";
|
|
32
|
+
readonly 'bookmarks:write': "bookmarks:write";
|
|
33
|
+
readonly 'bots:read': "bots:read";
|
|
34
|
+
readonly 'calls:read': "calls:read";
|
|
35
|
+
readonly 'calls:write': "calls:write";
|
|
36
|
+
readonly 'channels:history': "channels:history";
|
|
37
|
+
readonly 'channels:join': "channels:join";
|
|
38
|
+
readonly 'channels:manage': "channels:manage";
|
|
39
|
+
readonly 'channels:read': "channels:read";
|
|
40
|
+
readonly 'channels:write.invites': "channels:write.invites";
|
|
41
|
+
readonly 'chat:write': "chat:write";
|
|
42
|
+
readonly 'chat:write.customize': "chat:write.customize";
|
|
43
|
+
readonly 'chat:write.public': "chat:write.public";
|
|
44
|
+
readonly commands: "commands";
|
|
45
|
+
readonly 'conversations.connect:manage': "conversations.connect:manage";
|
|
46
|
+
readonly 'conversations.connect:read': "conversations.connect:read";
|
|
47
|
+
readonly 'conversations.connect:write': "conversations.connect:write";
|
|
48
|
+
readonly 'dnd:read': "dnd:read";
|
|
49
|
+
readonly 'emoji:read': "emoji:read";
|
|
50
|
+
readonly 'files:read': "files:read";
|
|
51
|
+
readonly 'files:write': "files:write";
|
|
52
|
+
readonly 'groups:history': "groups:history";
|
|
53
|
+
readonly 'groups:read': "groups:read";
|
|
54
|
+
readonly 'groups:write': "groups:write";
|
|
55
|
+
readonly 'groups:write.invites': "groups:write.invites";
|
|
56
|
+
readonly 'im:history': "im:history";
|
|
57
|
+
readonly 'im:read': "im:read";
|
|
58
|
+
readonly 'im:write': "im:write";
|
|
59
|
+
readonly 'incoming-webhook': "incoming-webhook";
|
|
60
|
+
readonly 'links.embed:write': "links.embed:write";
|
|
61
|
+
readonly 'links:read': "links:read";
|
|
62
|
+
readonly 'links:write': "links:write";
|
|
63
|
+
readonly 'metadata.message:read': "metadata.message:read";
|
|
64
|
+
readonly 'mpim:history': "mpim:history";
|
|
65
|
+
readonly 'mpim:read': "mpim:read";
|
|
66
|
+
readonly 'mpim:write': "mpim:write";
|
|
67
|
+
readonly 'pins:read': "pins:read";
|
|
68
|
+
readonly 'pins:write': "pins:write";
|
|
69
|
+
readonly 'reactions:read': "reactions:read";
|
|
70
|
+
readonly 'reactions:write': "reactions:write";
|
|
71
|
+
readonly 'reminders:read': "reminders:read";
|
|
72
|
+
readonly 'reminders:write': "reminders:write";
|
|
73
|
+
readonly 'remote_files:read': "remote_files:read";
|
|
74
|
+
readonly 'remote_files:share': "remote_files:share";
|
|
75
|
+
readonly 'remote_files:write': "remote_files:write";
|
|
76
|
+
readonly 'team:read': "team:read";
|
|
77
|
+
readonly 'usergroups:read': "usergroups:read";
|
|
78
|
+
readonly 'usergroups:write': "usergroups:write";
|
|
79
|
+
readonly 'users.profile:read': "users.profile:read";
|
|
80
|
+
readonly 'users:read': "users:read";
|
|
81
|
+
readonly 'users:read.email': "users:read.email";
|
|
82
|
+
readonly 'users:write': "users:write";
|
|
83
|
+
};
|
|
84
|
+
readonly defaults: readonly ["channels:history", "channels:join", "channels:manage", "channels:read", "channels:write.invites", "chat:write", "chat:write.customize", "conversations.connect:write", "emoji:read", "files:read", "files:write", "groups:history", "groups:read", "groups:write", "groups:write.invites", "im:history", "im:read", "im:write", "links:read", "links:write", "mpim:history", "mpim:read", "mpim:write", "reactions:read", "reactions:write", "usergroups:read", "usergroups:write", "users.profile:read", "users:read", "users:read.email"];
|
|
85
|
+
};
|
|
28
86
|
readonly params: {
|
|
29
87
|
readonly user_scope: "search:read,users.profile:write,reactions:read,reactions:write,im:history,stars:read,channels:write,groups:write,im:write,mpim:write,channels:write.invites,groups:write.invites,channels:history,groups:history,chat:write,users:read,usergroups:write";
|
|
30
88
|
};
|
|
@@ -42,19 +100,6 @@ export declare const createSlack: import("frogbot").PieceFactory<{
|
|
|
42
100
|
[x: string]: unknown;
|
|
43
101
|
ok: true;
|
|
44
102
|
}>;
|
|
45
|
-
raw: ({ path, method, body, headers, token: tokenKind, }: {
|
|
46
|
-
path: string;
|
|
47
|
-
method?: string;
|
|
48
|
-
body?: BodyInit | Record<string, unknown>;
|
|
49
|
-
headers?: HeadersInit;
|
|
50
|
-
token?: import("./client.js").SlackToken;
|
|
51
|
-
}) => Promise<{
|
|
52
|
-
status: number;
|
|
53
|
-
headers: {
|
|
54
|
-
[k: string]: string;
|
|
55
|
-
};
|
|
56
|
-
body: any;
|
|
57
|
-
}>;
|
|
58
103
|
paginate: ({ path, body, item, token: tokenKind, limit, }: {
|
|
59
104
|
path: string;
|
|
60
105
|
body?: Record<string, unknown>;
|
|
@@ -64,6 +109,7 @@ export declare const createSlack: import("frogbot").PieceFactory<{
|
|
|
64
109
|
}) => Promise<Record<string, unknown>[]>;
|
|
65
110
|
token: (kind?: import("./client.js").SlackToken) => string | undefined;
|
|
66
111
|
workspaceId: () => Promise<string>;
|
|
112
|
+
authorize: (headers: Headers) => void;
|
|
67
113
|
};
|
|
68
114
|
req: import("frogbot").FrogBotRequest;
|
|
69
115
|
}) => Promise<import("frogbot").PieceOAuthAccount>;
|
|
@@ -100,19 +146,6 @@ export declare const createSlack: import("frogbot").PieceFactory<{
|
|
|
100
146
|
[x: string]: unknown;
|
|
101
147
|
ok: true;
|
|
102
148
|
}>;
|
|
103
|
-
raw: ({ path, method, body, headers, token: tokenKind, }: {
|
|
104
|
-
path: string;
|
|
105
|
-
method?: string;
|
|
106
|
-
body?: BodyInit | Record<string, unknown>;
|
|
107
|
-
headers?: HeadersInit;
|
|
108
|
-
token?: import("./client.js").SlackToken;
|
|
109
|
-
}) => Promise<{
|
|
110
|
-
status: number;
|
|
111
|
-
headers: {
|
|
112
|
-
[k: string]: string;
|
|
113
|
-
};
|
|
114
|
-
body: any;
|
|
115
|
-
}>;
|
|
116
149
|
paginate: ({ path, body, item, token: tokenKind, limit, }: {
|
|
117
150
|
path: string;
|
|
118
151
|
body?: Record<string, unknown>;
|
|
@@ -122,6 +155,7 @@ export declare const createSlack: import("frogbot").PieceFactory<{
|
|
|
122
155
|
}) => Promise<Record<string, unknown>[]>;
|
|
123
156
|
token: (kind?: import("./client.js").SlackToken) => string | undefined;
|
|
124
157
|
workspaceId: () => Promise<string>;
|
|
158
|
+
authorize: (headers: Headers) => void;
|
|
125
159
|
};
|
|
126
160
|
req: import("frogbot").FrogBotRequest;
|
|
127
161
|
}): Promise<(Record<string, unknown> & import("frogbot").TypeWithID) | null>;
|
|
@@ -130,19 +164,6 @@ export declare const createSlack: import("frogbot").PieceFactory<{
|
|
|
130
164
|
[x: string]: unknown;
|
|
131
165
|
ok: true;
|
|
132
166
|
}>;
|
|
133
|
-
raw: ({ path, method, body, headers, token: tokenKind, }: {
|
|
134
|
-
path: string;
|
|
135
|
-
method?: string;
|
|
136
|
-
body?: BodyInit | Record<string, unknown>;
|
|
137
|
-
headers?: HeadersInit;
|
|
138
|
-
token?: import("./client.js").SlackToken;
|
|
139
|
-
}) => Promise<{
|
|
140
|
-
status: number;
|
|
141
|
-
headers: {
|
|
142
|
-
[k: string]: string;
|
|
143
|
-
};
|
|
144
|
-
body: any;
|
|
145
|
-
}>;
|
|
146
167
|
paginate: ({ path, body, item, token: tokenKind, limit, }: {
|
|
147
168
|
path: string;
|
|
148
169
|
body?: Record<string, unknown>;
|
|
@@ -152,9 +173,27 @@ export declare const createSlack: import("frogbot").PieceFactory<{
|
|
|
152
173
|
}) => Promise<Record<string, unknown>[]>;
|
|
153
174
|
token: (kind?: import("./client.js").SlackToken) => string | undefined;
|
|
154
175
|
workspaceId: () => Promise<string>;
|
|
176
|
+
authorize: (headers: Headers) => void;
|
|
155
177
|
}>;
|
|
156
178
|
};
|
|
157
|
-
readonly actions: (
|
|
179
|
+
readonly actions: (import("frogbot/pieces").CustomApiCallAction<{
|
|
180
|
+
signingSecret?: string | undefined;
|
|
181
|
+
}, {
|
|
182
|
+
request: (path: string, body?: Record<string, unknown>, tokenKind?: import("./client.js").SlackToken) => Promise<{
|
|
183
|
+
[x: string]: unknown;
|
|
184
|
+
ok: true;
|
|
185
|
+
}>;
|
|
186
|
+
paginate: ({ path, body, item, token: tokenKind, limit, }: {
|
|
187
|
+
path: string;
|
|
188
|
+
body?: Record<string, unknown>;
|
|
189
|
+
item: string;
|
|
190
|
+
token?: import("./client.js").SlackToken;
|
|
191
|
+
limit?: number;
|
|
192
|
+
}) => Promise<Record<string, unknown>[]>;
|
|
193
|
+
token: (kind?: import("./client.js").SlackToken) => string | undefined;
|
|
194
|
+
workspaceId: () => Promise<string>;
|
|
195
|
+
authorize: (headers: Headers) => void;
|
|
196
|
+
}> | (import("frogbot").PieceActionDefinition<z.ZodObject<{
|
|
158
197
|
text: z.ZodString;
|
|
159
198
|
username: z.ZodOptional<z.ZodString>;
|
|
160
199
|
profilePicture: z.ZodOptional<z.ZodURL>;
|
|
@@ -173,19 +212,6 @@ export declare const createSlack: import("frogbot").PieceFactory<{
|
|
|
173
212
|
[x: string]: unknown;
|
|
174
213
|
ok: true;
|
|
175
214
|
}>;
|
|
176
|
-
raw: ({ path, method, body, headers, token: tokenKind, }: {
|
|
177
|
-
path: string;
|
|
178
|
-
method?: string;
|
|
179
|
-
body?: BodyInit | Record<string, unknown>;
|
|
180
|
-
headers?: HeadersInit;
|
|
181
|
-
token?: import("./client.js").SlackToken;
|
|
182
|
-
}) => Promise<{
|
|
183
|
-
status: number;
|
|
184
|
-
headers: {
|
|
185
|
-
[k: string]: string;
|
|
186
|
-
};
|
|
187
|
-
body: any;
|
|
188
|
-
}>;
|
|
189
215
|
paginate: ({ path, body, item, token: tokenKind, limit, }: {
|
|
190
216
|
path: string;
|
|
191
217
|
body?: Record<string, unknown>;
|
|
@@ -195,6 +221,7 @@ export declare const createSlack: import("frogbot").PieceFactory<{
|
|
|
195
221
|
}) => Promise<Record<string, unknown>[]>;
|
|
196
222
|
token: (kind?: import("./client.js").SlackToken) => string | undefined;
|
|
197
223
|
workspaceId: () => Promise<string>;
|
|
224
|
+
authorize: (headers: Headers) => void;
|
|
198
225
|
}, {
|
|
199
226
|
[x: string]: unknown;
|
|
200
227
|
ok: true;
|
|
@@ -226,19 +253,6 @@ export declare const createSlack: import("frogbot").PieceFactory<{
|
|
|
226
253
|
[x: string]: unknown;
|
|
227
254
|
ok: true;
|
|
228
255
|
}>;
|
|
229
|
-
raw: ({ path, method, body, headers, token: tokenKind, }: {
|
|
230
|
-
path: string;
|
|
231
|
-
method?: string;
|
|
232
|
-
body?: BodyInit | Record<string, unknown>;
|
|
233
|
-
headers?: HeadersInit;
|
|
234
|
-
token?: import("./client.js").SlackToken;
|
|
235
|
-
}) => Promise<{
|
|
236
|
-
status: number;
|
|
237
|
-
headers: {
|
|
238
|
-
[k: string]: string;
|
|
239
|
-
};
|
|
240
|
-
body: any;
|
|
241
|
-
}>;
|
|
242
256
|
paginate: ({ path, body, item, token: tokenKind, limit, }: {
|
|
243
257
|
path: string;
|
|
244
258
|
body?: Record<string, unknown>;
|
|
@@ -248,6 +262,7 @@ export declare const createSlack: import("frogbot").PieceFactory<{
|
|
|
248
262
|
}) => Promise<Record<string, unknown>[]>;
|
|
249
263
|
token: (kind?: import("./client.js").SlackToken) => string | undefined;
|
|
250
264
|
workspaceId: () => Promise<string>;
|
|
265
|
+
authorize: (headers: Headers) => void;
|
|
251
266
|
}, {
|
|
252
267
|
[x: string]: unknown;
|
|
253
268
|
ok: true;
|
|
@@ -267,19 +282,6 @@ export declare const createSlack: import("frogbot").PieceFactory<{
|
|
|
267
282
|
[x: string]: unknown;
|
|
268
283
|
ok: true;
|
|
269
284
|
}>;
|
|
270
|
-
raw: ({ path, method, body, headers, token: tokenKind, }: {
|
|
271
|
-
path: string;
|
|
272
|
-
method?: string;
|
|
273
|
-
body?: BodyInit | Record<string, unknown>;
|
|
274
|
-
headers?: HeadersInit;
|
|
275
|
-
token?: import("./client.js").SlackToken;
|
|
276
|
-
}) => Promise<{
|
|
277
|
-
status: number;
|
|
278
|
-
headers: {
|
|
279
|
-
[k: string]: string;
|
|
280
|
-
};
|
|
281
|
-
body: any;
|
|
282
|
-
}>;
|
|
283
285
|
paginate: ({ path, body, item, token: tokenKind, limit, }: {
|
|
284
286
|
path: string;
|
|
285
287
|
body?: Record<string, unknown>;
|
|
@@ -289,6 +291,7 @@ export declare const createSlack: import("frogbot").PieceFactory<{
|
|
|
289
291
|
}) => Promise<Record<string, unknown>[]>;
|
|
290
292
|
token: (kind?: import("./client.js").SlackToken) => string | undefined;
|
|
291
293
|
workspaceId: () => Promise<string>;
|
|
294
|
+
authorize: (headers: Headers) => void;
|
|
292
295
|
}, {
|
|
293
296
|
[x: string]: unknown;
|
|
294
297
|
ok: true;
|
|
@@ -311,19 +314,6 @@ export declare const createSlack: import("frogbot").PieceFactory<{
|
|
|
311
314
|
[x: string]: unknown;
|
|
312
315
|
ok: true;
|
|
313
316
|
}>;
|
|
314
|
-
raw: ({ path, method, body, headers, token: tokenKind, }: {
|
|
315
|
-
path: string;
|
|
316
|
-
method?: string;
|
|
317
|
-
body?: BodyInit | Record<string, unknown>;
|
|
318
|
-
headers?: HeadersInit;
|
|
319
|
-
token?: import("./client.js").SlackToken;
|
|
320
|
-
}) => Promise<{
|
|
321
|
-
status: number;
|
|
322
|
-
headers: {
|
|
323
|
-
[k: string]: string;
|
|
324
|
-
};
|
|
325
|
-
body: any;
|
|
326
|
-
}>;
|
|
327
317
|
paginate: ({ path, body, item, token: tokenKind, limit, }: {
|
|
328
318
|
path: string;
|
|
329
319
|
body?: Record<string, unknown>;
|
|
@@ -333,6 +323,7 @@ export declare const createSlack: import("frogbot").PieceFactory<{
|
|
|
333
323
|
}) => Promise<Record<string, unknown>[]>;
|
|
334
324
|
token: (kind?: import("./client.js").SlackToken) => string | undefined;
|
|
335
325
|
workspaceId: () => Promise<string>;
|
|
326
|
+
authorize: (headers: Headers) => void;
|
|
336
327
|
}, {
|
|
337
328
|
[x: string]: unknown;
|
|
338
329
|
ok: true;
|
|
@@ -347,19 +338,6 @@ export declare const createSlack: import("frogbot").PieceFactory<{
|
|
|
347
338
|
[x: string]: unknown;
|
|
348
339
|
ok: true;
|
|
349
340
|
}>;
|
|
350
|
-
raw: ({ path, method, body, headers, token: tokenKind, }: {
|
|
351
|
-
path: string;
|
|
352
|
-
method?: string;
|
|
353
|
-
body?: BodyInit | Record<string, unknown>;
|
|
354
|
-
headers?: HeadersInit;
|
|
355
|
-
token?: import("./client.js").SlackToken;
|
|
356
|
-
}) => Promise<{
|
|
357
|
-
status: number;
|
|
358
|
-
headers: {
|
|
359
|
-
[k: string]: string;
|
|
360
|
-
};
|
|
361
|
-
body: any;
|
|
362
|
-
}>;
|
|
363
341
|
paginate: ({ path, body, item, token: tokenKind, limit, }: {
|
|
364
342
|
path: string;
|
|
365
343
|
body?: Record<string, unknown>;
|
|
@@ -369,6 +347,7 @@ export declare const createSlack: import("frogbot").PieceFactory<{
|
|
|
369
347
|
}) => Promise<Record<string, unknown>[]>;
|
|
370
348
|
token: (kind?: import("./client.js").SlackToken) => string | undefined;
|
|
371
349
|
workspaceId: () => Promise<string>;
|
|
350
|
+
authorize: (headers: Headers) => void;
|
|
372
351
|
}, Record<string, unknown>> & {
|
|
373
352
|
slug: "getFile";
|
|
374
353
|
}) | (import("frogbot").PieceActionDefinition<z.ZodObject<{
|
|
@@ -380,19 +359,6 @@ export declare const createSlack: import("frogbot").PieceFactory<{
|
|
|
380
359
|
[x: string]: unknown;
|
|
381
360
|
ok: true;
|
|
382
361
|
}>;
|
|
383
|
-
raw: ({ path, method, body, headers, token: tokenKind, }: {
|
|
384
|
-
path: string;
|
|
385
|
-
method?: string;
|
|
386
|
-
body?: BodyInit | Record<string, unknown>;
|
|
387
|
-
headers?: HeadersInit;
|
|
388
|
-
token?: import("./client.js").SlackToken;
|
|
389
|
-
}) => Promise<{
|
|
390
|
-
status: number;
|
|
391
|
-
headers: {
|
|
392
|
-
[k: string]: string;
|
|
393
|
-
};
|
|
394
|
-
body: any;
|
|
395
|
-
}>;
|
|
396
362
|
paginate: ({ path, body, item, token: tokenKind, limit, }: {
|
|
397
363
|
path: string;
|
|
398
364
|
body?: Record<string, unknown>;
|
|
@@ -402,6 +368,7 @@ export declare const createSlack: import("frogbot").PieceFactory<{
|
|
|
402
368
|
}) => Promise<Record<string, unknown>[]>;
|
|
403
369
|
token: (kind?: import("./client.js").SlackToken) => string | undefined;
|
|
404
370
|
workspaceId: () => Promise<string>;
|
|
371
|
+
authorize: (headers: Headers) => void;
|
|
405
372
|
}, Record<string, unknown>[]> & {
|
|
406
373
|
slug: "searchMessages";
|
|
407
374
|
}) | (import("frogbot").PieceActionDefinition<z.ZodObject<{
|
|
@@ -415,19 +382,6 @@ export declare const createSlack: import("frogbot").PieceFactory<{
|
|
|
415
382
|
[x: string]: unknown;
|
|
416
383
|
ok: true;
|
|
417
384
|
}>;
|
|
418
|
-
raw: ({ path, method, body, headers, token: tokenKind, }: {
|
|
419
|
-
path: string;
|
|
420
|
-
method?: string;
|
|
421
|
-
body?: BodyInit | Record<string, unknown>;
|
|
422
|
-
headers?: HeadersInit;
|
|
423
|
-
token?: import("./client.js").SlackToken;
|
|
424
|
-
}) => Promise<{
|
|
425
|
-
status: number;
|
|
426
|
-
headers: {
|
|
427
|
-
[k: string]: string;
|
|
428
|
-
};
|
|
429
|
-
body: any;
|
|
430
|
-
}>;
|
|
431
385
|
paginate: ({ path, body, item, token: tokenKind, limit, }: {
|
|
432
386
|
path: string;
|
|
433
387
|
body?: Record<string, unknown>;
|
|
@@ -437,6 +391,7 @@ export declare const createSlack: import("frogbot").PieceFactory<{
|
|
|
437
391
|
}) => Promise<Record<string, unknown>[]>;
|
|
438
392
|
token: (kind?: import("./client.js").SlackToken) => string | undefined;
|
|
439
393
|
workspaceId: () => Promise<string>;
|
|
394
|
+
authorize: (headers: Headers) => void;
|
|
440
395
|
}, {
|
|
441
396
|
[x: string]: unknown;
|
|
442
397
|
ok: true;
|
|
@@ -451,19 +406,6 @@ export declare const createSlack: import("frogbot").PieceFactory<{
|
|
|
451
406
|
[x: string]: unknown;
|
|
452
407
|
ok: true;
|
|
453
408
|
}>;
|
|
454
|
-
raw: ({ path, method, body, headers, token: tokenKind, }: {
|
|
455
|
-
path: string;
|
|
456
|
-
method?: string;
|
|
457
|
-
body?: BodyInit | Record<string, unknown>;
|
|
458
|
-
headers?: HeadersInit;
|
|
459
|
-
token?: import("./client.js").SlackToken;
|
|
460
|
-
}) => Promise<{
|
|
461
|
-
status: number;
|
|
462
|
-
headers: {
|
|
463
|
-
[k: string]: string;
|
|
464
|
-
};
|
|
465
|
-
body: any;
|
|
466
|
-
}>;
|
|
467
409
|
paginate: ({ path, body, item, token: tokenKind, limit, }: {
|
|
468
410
|
path: string;
|
|
469
411
|
body?: Record<string, unknown>;
|
|
@@ -473,6 +415,7 @@ export declare const createSlack: import("frogbot").PieceFactory<{
|
|
|
473
415
|
}) => Promise<Record<string, unknown>[]>;
|
|
474
416
|
token: (kind?: import("./client.js").SlackToken) => string | undefined;
|
|
475
417
|
workspaceId: () => Promise<string>;
|
|
418
|
+
authorize: (headers: Headers) => void;
|
|
476
419
|
}, Record<string, unknown>> & {
|
|
477
420
|
slug: "findUserByHandle";
|
|
478
421
|
}) | (import("frogbot").PieceActionDefinition<z.ZodObject<{
|
|
@@ -486,19 +429,6 @@ export declare const createSlack: import("frogbot").PieceFactory<{
|
|
|
486
429
|
[x: string]: unknown;
|
|
487
430
|
ok: true;
|
|
488
431
|
}>;
|
|
489
|
-
raw: ({ path, method, body, headers, token: tokenKind, }: {
|
|
490
|
-
path: string;
|
|
491
|
-
method?: string;
|
|
492
|
-
body?: BodyInit | Record<string, unknown>;
|
|
493
|
-
headers?: HeadersInit;
|
|
494
|
-
token?: import("./client.js").SlackToken;
|
|
495
|
-
}) => Promise<{
|
|
496
|
-
status: number;
|
|
497
|
-
headers: {
|
|
498
|
-
[k: string]: string;
|
|
499
|
-
};
|
|
500
|
-
body: any;
|
|
501
|
-
}>;
|
|
502
432
|
paginate: ({ path, body, item, token: tokenKind, limit, }: {
|
|
503
433
|
path: string;
|
|
504
434
|
body?: Record<string, unknown>;
|
|
@@ -508,6 +438,7 @@ export declare const createSlack: import("frogbot").PieceFactory<{
|
|
|
508
438
|
}) => Promise<Record<string, unknown>[]>;
|
|
509
439
|
token: (kind?: import("./client.js").SlackToken) => string | undefined;
|
|
510
440
|
workspaceId: () => Promise<string>;
|
|
441
|
+
authorize: (headers: Headers) => void;
|
|
511
442
|
}, {
|
|
512
443
|
[x: string]: unknown;
|
|
513
444
|
ok: true;
|
|
@@ -523,19 +454,6 @@ export declare const createSlack: import("frogbot").PieceFactory<{
|
|
|
523
454
|
[x: string]: unknown;
|
|
524
455
|
ok: true;
|
|
525
456
|
}>;
|
|
526
|
-
raw: ({ path, method, body, headers, token: tokenKind, }: {
|
|
527
|
-
path: string;
|
|
528
|
-
method?: string;
|
|
529
|
-
body?: BodyInit | Record<string, unknown>;
|
|
530
|
-
headers?: HeadersInit;
|
|
531
|
-
token?: import("./client.js").SlackToken;
|
|
532
|
-
}) => Promise<{
|
|
533
|
-
status: number;
|
|
534
|
-
headers: {
|
|
535
|
-
[k: string]: string;
|
|
536
|
-
};
|
|
537
|
-
body: any;
|
|
538
|
-
}>;
|
|
539
457
|
paginate: ({ path, body, item, token: tokenKind, limit, }: {
|
|
540
458
|
path: string;
|
|
541
459
|
body?: Record<string, unknown>;
|
|
@@ -545,6 +463,7 @@ export declare const createSlack: import("frogbot").PieceFactory<{
|
|
|
545
463
|
}) => Promise<Record<string, unknown>[]>;
|
|
546
464
|
token: (kind?: import("./client.js").SlackToken) => string | undefined;
|
|
547
465
|
workspaceId: () => Promise<string>;
|
|
466
|
+
authorize: (headers: Headers) => void;
|
|
548
467
|
}, Record<string, unknown>[]> & {
|
|
549
468
|
slug: "listUsers";
|
|
550
469
|
}) | (import("frogbot").PieceActionDefinition<z.ZodObject<{
|
|
@@ -561,19 +480,6 @@ export declare const createSlack: import("frogbot").PieceFactory<{
|
|
|
561
480
|
[x: string]: unknown;
|
|
562
481
|
ok: true;
|
|
563
482
|
}>;
|
|
564
|
-
raw: ({ path, method, body, headers, token: tokenKind, }: {
|
|
565
|
-
path: string;
|
|
566
|
-
method?: string;
|
|
567
|
-
body?: BodyInit | Record<string, unknown>;
|
|
568
|
-
headers?: HeadersInit;
|
|
569
|
-
token?: import("./client.js").SlackToken;
|
|
570
|
-
}) => Promise<{
|
|
571
|
-
status: number;
|
|
572
|
-
headers: {
|
|
573
|
-
[k: string]: string;
|
|
574
|
-
};
|
|
575
|
-
body: any;
|
|
576
|
-
}>;
|
|
577
483
|
paginate: ({ path, body, item, token: tokenKind, limit, }: {
|
|
578
484
|
path: string;
|
|
579
485
|
body?: Record<string, unknown>;
|
|
@@ -583,6 +489,7 @@ export declare const createSlack: import("frogbot").PieceFactory<{
|
|
|
583
489
|
}) => Promise<Record<string, unknown>[]>;
|
|
584
490
|
token: (kind?: import("./client.js").SlackToken) => string | undefined;
|
|
585
491
|
workspaceId: () => Promise<string>;
|
|
492
|
+
authorize: (headers: Headers) => void;
|
|
586
493
|
}, {
|
|
587
494
|
[x: string]: unknown;
|
|
588
495
|
ok: true;
|
|
@@ -600,19 +507,6 @@ export declare const createSlack: import("frogbot").PieceFactory<{
|
|
|
600
507
|
[x: string]: unknown;
|
|
601
508
|
ok: true;
|
|
602
509
|
}>;
|
|
603
|
-
raw: ({ path, method, body, headers, token: tokenKind, }: {
|
|
604
|
-
path: string;
|
|
605
|
-
method?: string;
|
|
606
|
-
body?: BodyInit | Record<string, unknown>;
|
|
607
|
-
headers?: HeadersInit;
|
|
608
|
-
token?: import("./client.js").SlackToken;
|
|
609
|
-
}) => Promise<{
|
|
610
|
-
status: number;
|
|
611
|
-
headers: {
|
|
612
|
-
[k: string]: string;
|
|
613
|
-
};
|
|
614
|
-
body: any;
|
|
615
|
-
}>;
|
|
616
510
|
paginate: ({ path, body, item, token: tokenKind, limit, }: {
|
|
617
511
|
path: string;
|
|
618
512
|
body?: Record<string, unknown>;
|
|
@@ -622,6 +516,7 @@ export declare const createSlack: import("frogbot").PieceFactory<{
|
|
|
622
516
|
}) => Promise<Record<string, unknown>[]>;
|
|
623
517
|
token: (kind?: import("./client.js").SlackToken) => string | undefined;
|
|
624
518
|
workspaceId: () => Promise<string>;
|
|
519
|
+
authorize: (headers: Headers) => void;
|
|
625
520
|
}, {
|
|
626
521
|
[x: string]: unknown;
|
|
627
522
|
ok: true;
|
|
@@ -639,19 +534,6 @@ export declare const createSlack: import("frogbot").PieceFactory<{
|
|
|
639
534
|
[x: string]: unknown;
|
|
640
535
|
ok: true;
|
|
641
536
|
}>;
|
|
642
|
-
raw: ({ path, method, body, headers, token: tokenKind, }: {
|
|
643
|
-
path: string;
|
|
644
|
-
method?: string;
|
|
645
|
-
body?: BodyInit | Record<string, unknown>;
|
|
646
|
-
headers?: HeadersInit;
|
|
647
|
-
token?: import("./client.js").SlackToken;
|
|
648
|
-
}) => Promise<{
|
|
649
|
-
status: number;
|
|
650
|
-
headers: {
|
|
651
|
-
[k: string]: string;
|
|
652
|
-
};
|
|
653
|
-
body: any;
|
|
654
|
-
}>;
|
|
655
537
|
paginate: ({ path, body, item, token: tokenKind, limit, }: {
|
|
656
538
|
path: string;
|
|
657
539
|
body?: Record<string, unknown>;
|
|
@@ -661,6 +543,7 @@ export declare const createSlack: import("frogbot").PieceFactory<{
|
|
|
661
543
|
}) => Promise<Record<string, unknown>[]>;
|
|
662
544
|
token: (kind?: import("./client.js").SlackToken) => string | undefined;
|
|
663
545
|
workspaceId: () => Promise<string>;
|
|
546
|
+
authorize: (headers: Headers) => void;
|
|
664
547
|
}, {
|
|
665
548
|
[x: string]: unknown;
|
|
666
549
|
ok: true;
|
|
@@ -680,19 +563,6 @@ export declare const createSlack: import("frogbot").PieceFactory<{
|
|
|
680
563
|
[x: string]: unknown;
|
|
681
564
|
ok: true;
|
|
682
565
|
}>;
|
|
683
|
-
raw: ({ path, method, body, headers, token: tokenKind, }: {
|
|
684
|
-
path: string;
|
|
685
|
-
method?: string;
|
|
686
|
-
body?: BodyInit | Record<string, unknown>;
|
|
687
|
-
headers?: HeadersInit;
|
|
688
|
-
token?: import("./client.js").SlackToken;
|
|
689
|
-
}) => Promise<{
|
|
690
|
-
status: number;
|
|
691
|
-
headers: {
|
|
692
|
-
[k: string]: string;
|
|
693
|
-
};
|
|
694
|
-
body: any;
|
|
695
|
-
}>;
|
|
696
566
|
paginate: ({ path, body, item, token: tokenKind, limit, }: {
|
|
697
567
|
path: string;
|
|
698
568
|
body?: Record<string, unknown>;
|
|
@@ -702,6 +572,7 @@ export declare const createSlack: import("frogbot").PieceFactory<{
|
|
|
702
572
|
}) => Promise<Record<string, unknown>[]>;
|
|
703
573
|
token: (kind?: import("./client.js").SlackToken) => string | undefined;
|
|
704
574
|
workspaceId: () => Promise<string>;
|
|
575
|
+
authorize: (headers: Headers) => void;
|
|
705
576
|
}, {
|
|
706
577
|
[x: string]: unknown;
|
|
707
578
|
ok: true;
|
|
@@ -720,19 +591,6 @@ export declare const createSlack: import("frogbot").PieceFactory<{
|
|
|
720
591
|
[x: string]: unknown;
|
|
721
592
|
ok: true;
|
|
722
593
|
}>;
|
|
723
|
-
raw: ({ path, method, body, headers, token: tokenKind, }: {
|
|
724
|
-
path: string;
|
|
725
|
-
method?: string;
|
|
726
|
-
body?: BodyInit | Record<string, unknown>;
|
|
727
|
-
headers?: HeadersInit;
|
|
728
|
-
token?: import("./client.js").SlackToken;
|
|
729
|
-
}) => Promise<{
|
|
730
|
-
status: number;
|
|
731
|
-
headers: {
|
|
732
|
-
[k: string]: string;
|
|
733
|
-
};
|
|
734
|
-
body: any;
|
|
735
|
-
}>;
|
|
736
594
|
paginate: ({ path, body, item, token: tokenKind, limit, }: {
|
|
737
595
|
path: string;
|
|
738
596
|
body?: Record<string, unknown>;
|
|
@@ -742,6 +600,7 @@ export declare const createSlack: import("frogbot").PieceFactory<{
|
|
|
742
600
|
}) => Promise<Record<string, unknown>[]>;
|
|
743
601
|
token: (kind?: import("./client.js").SlackToken) => string | undefined;
|
|
744
602
|
workspaceId: () => Promise<string>;
|
|
603
|
+
authorize: (headers: Headers) => void;
|
|
745
604
|
}, Record<string, unknown>[]> & {
|
|
746
605
|
slug: "getChannelHistory";
|
|
747
606
|
}) | (import("frogbot").PieceActionDefinition<z.ZodObject<{
|
|
@@ -757,19 +616,6 @@ export declare const createSlack: import("frogbot").PieceFactory<{
|
|
|
757
616
|
[x: string]: unknown;
|
|
758
617
|
ok: true;
|
|
759
618
|
}>;
|
|
760
|
-
raw: ({ path, method, body, headers, token: tokenKind, }: {
|
|
761
|
-
path: string;
|
|
762
|
-
method?: string;
|
|
763
|
-
body?: BodyInit | Record<string, unknown>;
|
|
764
|
-
headers?: HeadersInit;
|
|
765
|
-
token?: import("./client.js").SlackToken;
|
|
766
|
-
}) => Promise<{
|
|
767
|
-
status: number;
|
|
768
|
-
headers: {
|
|
769
|
-
[k: string]: string;
|
|
770
|
-
};
|
|
771
|
-
body: any;
|
|
772
|
-
}>;
|
|
773
619
|
paginate: ({ path, body, item, token: tokenKind, limit, }: {
|
|
774
620
|
path: string;
|
|
775
621
|
body?: Record<string, unknown>;
|
|
@@ -779,6 +625,7 @@ export declare const createSlack: import("frogbot").PieceFactory<{
|
|
|
779
625
|
}) => Promise<Record<string, unknown>[]>;
|
|
780
626
|
token: (kind?: import("./client.js").SlackToken) => string | undefined;
|
|
781
627
|
workspaceId: () => Promise<string>;
|
|
628
|
+
authorize: (headers: Headers) => void;
|
|
782
629
|
}, {
|
|
783
630
|
[x: string]: unknown;
|
|
784
631
|
ok: true;
|
|
@@ -795,19 +642,6 @@ export declare const createSlack: import("frogbot").PieceFactory<{
|
|
|
795
642
|
[x: string]: unknown;
|
|
796
643
|
ok: true;
|
|
797
644
|
}>;
|
|
798
|
-
raw: ({ path, method, body, headers, token: tokenKind, }: {
|
|
799
|
-
path: string;
|
|
800
|
-
method?: string;
|
|
801
|
-
body?: BodyInit | Record<string, unknown>;
|
|
802
|
-
headers?: HeadersInit;
|
|
803
|
-
token?: import("./client.js").SlackToken;
|
|
804
|
-
}) => Promise<{
|
|
805
|
-
status: number;
|
|
806
|
-
headers: {
|
|
807
|
-
[k: string]: string;
|
|
808
|
-
};
|
|
809
|
-
body: any;
|
|
810
|
-
}>;
|
|
811
645
|
paginate: ({ path, body, item, token: tokenKind, limit, }: {
|
|
812
646
|
path: string;
|
|
813
647
|
body?: Record<string, unknown>;
|
|
@@ -817,6 +651,7 @@ export declare const createSlack: import("frogbot").PieceFactory<{
|
|
|
817
651
|
}) => Promise<Record<string, unknown>[]>;
|
|
818
652
|
token: (kind?: import("./client.js").SlackToken) => string | undefined;
|
|
819
653
|
workspaceId: () => Promise<string>;
|
|
654
|
+
authorize: (headers: Headers) => void;
|
|
820
655
|
}, {
|
|
821
656
|
text: string;
|
|
822
657
|
}> & {
|
|
@@ -831,19 +666,6 @@ export declare const createSlack: import("frogbot").PieceFactory<{
|
|
|
831
666
|
[x: string]: unknown;
|
|
832
667
|
ok: true;
|
|
833
668
|
}>;
|
|
834
|
-
raw: ({ path, method, body, headers, token: tokenKind, }: {
|
|
835
|
-
path: string;
|
|
836
|
-
method?: string;
|
|
837
|
-
body?: BodyInit | Record<string, unknown>;
|
|
838
|
-
headers?: HeadersInit;
|
|
839
|
-
token?: import("./client.js").SlackToken;
|
|
840
|
-
}) => Promise<{
|
|
841
|
-
status: number;
|
|
842
|
-
headers: {
|
|
843
|
-
[k: string]: string;
|
|
844
|
-
};
|
|
845
|
-
body: any;
|
|
846
|
-
}>;
|
|
847
669
|
paginate: ({ path, body, item, token: tokenKind, limit, }: {
|
|
848
670
|
path: string;
|
|
849
671
|
body?: Record<string, unknown>;
|
|
@@ -853,6 +675,7 @@ export declare const createSlack: import("frogbot").PieceFactory<{
|
|
|
853
675
|
}) => Promise<Record<string, unknown>[]>;
|
|
854
676
|
token: (kind?: import("./client.js").SlackToken) => string | undefined;
|
|
855
677
|
workspaceId: () => Promise<string>;
|
|
678
|
+
authorize: (headers: Headers) => void;
|
|
856
679
|
}, Record<string, unknown>[]> & {
|
|
857
680
|
slug: "listThreadMessages";
|
|
858
681
|
}) | (import("frogbot").PieceActionDefinition<z.ZodObject<{
|
|
@@ -867,19 +690,6 @@ export declare const createSlack: import("frogbot").PieceFactory<{
|
|
|
867
690
|
[x: string]: unknown;
|
|
868
691
|
ok: true;
|
|
869
692
|
}>;
|
|
870
|
-
raw: ({ path, method, body, headers, token: tokenKind, }: {
|
|
871
|
-
path: string;
|
|
872
|
-
method?: string;
|
|
873
|
-
body?: BodyInit | Record<string, unknown>;
|
|
874
|
-
headers?: HeadersInit;
|
|
875
|
-
token?: import("./client.js").SlackToken;
|
|
876
|
-
}) => Promise<{
|
|
877
|
-
status: number;
|
|
878
|
-
headers: {
|
|
879
|
-
[k: string]: string;
|
|
880
|
-
};
|
|
881
|
-
body: any;
|
|
882
|
-
}>;
|
|
883
693
|
paginate: ({ path, body, item, token: tokenKind, limit, }: {
|
|
884
694
|
path: string;
|
|
885
695
|
body?: Record<string, unknown>;
|
|
@@ -889,6 +699,7 @@ export declare const createSlack: import("frogbot").PieceFactory<{
|
|
|
889
699
|
}) => Promise<Record<string, unknown>[]>;
|
|
890
700
|
token: (kind?: import("./client.js").SlackToken) => string | undefined;
|
|
891
701
|
workspaceId: () => Promise<string>;
|
|
702
|
+
authorize: (headers: Headers) => void;
|
|
892
703
|
}, {
|
|
893
704
|
[x: string]: unknown;
|
|
894
705
|
ok: true;
|
|
@@ -906,19 +717,6 @@ export declare const createSlack: import("frogbot").PieceFactory<{
|
|
|
906
717
|
[x: string]: unknown;
|
|
907
718
|
ok: true;
|
|
908
719
|
}>;
|
|
909
|
-
raw: ({ path, method, body, headers, token: tokenKind, }: {
|
|
910
|
-
path: string;
|
|
911
|
-
method?: string;
|
|
912
|
-
body?: BodyInit | Record<string, unknown>;
|
|
913
|
-
headers?: HeadersInit;
|
|
914
|
-
token?: import("./client.js").SlackToken;
|
|
915
|
-
}) => Promise<{
|
|
916
|
-
status: number;
|
|
917
|
-
headers: {
|
|
918
|
-
[k: string]: string;
|
|
919
|
-
};
|
|
920
|
-
body: any;
|
|
921
|
-
}>;
|
|
922
720
|
paginate: ({ path, body, item, token: tokenKind, limit, }: {
|
|
923
721
|
path: string;
|
|
924
722
|
body?: Record<string, unknown>;
|
|
@@ -928,6 +726,7 @@ export declare const createSlack: import("frogbot").PieceFactory<{
|
|
|
928
726
|
}) => Promise<Record<string, unknown>[]>;
|
|
929
727
|
token: (kind?: import("./client.js").SlackToken) => string | undefined;
|
|
930
728
|
workspaceId: () => Promise<string>;
|
|
729
|
+
authorize: (headers: Headers) => void;
|
|
931
730
|
}, {
|
|
932
731
|
[x: string]: unknown;
|
|
933
732
|
ok: true;
|
|
@@ -945,19 +744,6 @@ export declare const createSlack: import("frogbot").PieceFactory<{
|
|
|
945
744
|
[x: string]: unknown;
|
|
946
745
|
ok: true;
|
|
947
746
|
}>;
|
|
948
|
-
raw: ({ path, method, body, headers, token: tokenKind, }: {
|
|
949
|
-
path: string;
|
|
950
|
-
method?: string;
|
|
951
|
-
body?: BodyInit | Record<string, unknown>;
|
|
952
|
-
headers?: HeadersInit;
|
|
953
|
-
token?: import("./client.js").SlackToken;
|
|
954
|
-
}) => Promise<{
|
|
955
|
-
status: number;
|
|
956
|
-
headers: {
|
|
957
|
-
[k: string]: string;
|
|
958
|
-
};
|
|
959
|
-
body: any;
|
|
960
|
-
}>;
|
|
961
747
|
paginate: ({ path, body, item, token: tokenKind, limit, }: {
|
|
962
748
|
path: string;
|
|
963
749
|
body?: Record<string, unknown>;
|
|
@@ -967,6 +753,7 @@ export declare const createSlack: import("frogbot").PieceFactory<{
|
|
|
967
753
|
}) => Promise<Record<string, unknown>[]>;
|
|
968
754
|
token: (kind?: import("./client.js").SlackToken) => string | undefined;
|
|
969
755
|
workspaceId: () => Promise<string>;
|
|
756
|
+
authorize: (headers: Headers) => void;
|
|
970
757
|
}, {
|
|
971
758
|
[x: string]: unknown;
|
|
972
759
|
ok: true;
|
|
@@ -981,19 +768,6 @@ export declare const createSlack: import("frogbot").PieceFactory<{
|
|
|
981
768
|
[x: string]: unknown;
|
|
982
769
|
ok: true;
|
|
983
770
|
}>;
|
|
984
|
-
raw: ({ path, method, body, headers, token: tokenKind, }: {
|
|
985
|
-
path: string;
|
|
986
|
-
method?: string;
|
|
987
|
-
body?: BodyInit | Record<string, unknown>;
|
|
988
|
-
headers?: HeadersInit;
|
|
989
|
-
token?: import("./client.js").SlackToken;
|
|
990
|
-
}) => Promise<{
|
|
991
|
-
status: number;
|
|
992
|
-
headers: {
|
|
993
|
-
[k: string]: string;
|
|
994
|
-
};
|
|
995
|
-
body: any;
|
|
996
|
-
}>;
|
|
997
771
|
paginate: ({ path, body, item, token: tokenKind, limit, }: {
|
|
998
772
|
path: string;
|
|
999
773
|
body?: Record<string, unknown>;
|
|
@@ -1003,6 +777,7 @@ export declare const createSlack: import("frogbot").PieceFactory<{
|
|
|
1003
777
|
}) => Promise<Record<string, unknown>[]>;
|
|
1004
778
|
token: (kind?: import("./client.js").SlackToken) => string | undefined;
|
|
1005
779
|
workspaceId: () => Promise<string>;
|
|
780
|
+
authorize: (headers: Headers) => void;
|
|
1006
781
|
}, Record<string, unknown>> & {
|
|
1007
782
|
slug: "getUserGroupByHandle";
|
|
1008
783
|
}) | (import("frogbot").PieceActionDefinition<z.ZodObject<{
|
|
@@ -1018,19 +793,6 @@ export declare const createSlack: import("frogbot").PieceFactory<{
|
|
|
1018
793
|
[x: string]: unknown;
|
|
1019
794
|
ok: true;
|
|
1020
795
|
}>;
|
|
1021
|
-
raw: ({ path, method, body, headers, token: tokenKind, }: {
|
|
1022
|
-
path: string;
|
|
1023
|
-
method?: string;
|
|
1024
|
-
body?: BodyInit | Record<string, unknown>;
|
|
1025
|
-
headers?: HeadersInit;
|
|
1026
|
-
token?: import("./client.js").SlackToken;
|
|
1027
|
-
}) => Promise<{
|
|
1028
|
-
status: number;
|
|
1029
|
-
headers: {
|
|
1030
|
-
[k: string]: string;
|
|
1031
|
-
};
|
|
1032
|
-
body: any;
|
|
1033
|
-
}>;
|
|
1034
796
|
paginate: ({ path, body, item, token: tokenKind, limit, }: {
|
|
1035
797
|
path: string;
|
|
1036
798
|
body?: Record<string, unknown>;
|
|
@@ -1040,63 +802,12 @@ export declare const createSlack: import("frogbot").PieceFactory<{
|
|
|
1040
802
|
}) => Promise<Record<string, unknown>[]>;
|
|
1041
803
|
token: (kind?: import("./client.js").SlackToken) => string | undefined;
|
|
1042
804
|
workspaceId: () => Promise<string>;
|
|
805
|
+
authorize: (headers: Headers) => void;
|
|
1043
806
|
}, {
|
|
1044
807
|
[x: string]: unknown;
|
|
1045
808
|
ok: true;
|
|
1046
809
|
}> & {
|
|
1047
810
|
slug: "updateUserGroupMembers";
|
|
1048
|
-
}) | (import("frogbot").PieceActionDefinition<z.ZodObject<{
|
|
1049
|
-
method: z.ZodEnum<{
|
|
1050
|
-
POST: "POST";
|
|
1051
|
-
GET: "GET";
|
|
1052
|
-
PUT: "PUT";
|
|
1053
|
-
PATCH: "PATCH";
|
|
1054
|
-
DELETE: "DELETE";
|
|
1055
|
-
}>;
|
|
1056
|
-
path: z.ZodString;
|
|
1057
|
-
headers: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1058
|
-
queryParams: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>>;
|
|
1059
|
-
body: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1060
|
-
useUserToken: z.ZodDefault<z.ZodBoolean>;
|
|
1061
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
1062
|
-
status: z.ZodNumber;
|
|
1063
|
-
headers: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
1064
|
-
body: z.ZodUnknown;
|
|
1065
|
-
}, z.core.$strip>, {
|
|
1066
|
-
signingSecret?: string | undefined;
|
|
1067
|
-
}, {
|
|
1068
|
-
request: (path: string, body?: Record<string, unknown>, tokenKind?: import("./client.js").SlackToken) => Promise<{
|
|
1069
|
-
[x: string]: unknown;
|
|
1070
|
-
ok: true;
|
|
1071
|
-
}>;
|
|
1072
|
-
raw: ({ path, method, body, headers, token: tokenKind, }: {
|
|
1073
|
-
path: string;
|
|
1074
|
-
method?: string;
|
|
1075
|
-
body?: BodyInit | Record<string, unknown>;
|
|
1076
|
-
headers?: HeadersInit;
|
|
1077
|
-
token?: import("./client.js").SlackToken;
|
|
1078
|
-
}) => Promise<{
|
|
1079
|
-
status: number;
|
|
1080
|
-
headers: {
|
|
1081
|
-
[k: string]: string;
|
|
1082
|
-
};
|
|
1083
|
-
body: any;
|
|
1084
|
-
}>;
|
|
1085
|
-
paginate: ({ path, body, item, token: tokenKind, limit, }: {
|
|
1086
|
-
path: string;
|
|
1087
|
-
body?: Record<string, unknown>;
|
|
1088
|
-
item: string;
|
|
1089
|
-
token?: import("./client.js").SlackToken;
|
|
1090
|
-
limit?: number;
|
|
1091
|
-
}) => Promise<Record<string, unknown>[]>;
|
|
1092
|
-
token: (kind?: import("./client.js").SlackToken) => string | undefined;
|
|
1093
|
-
workspaceId: () => Promise<string>;
|
|
1094
|
-
}, {
|
|
1095
|
-
status: number;
|
|
1096
|
-
headers: Record<string, string>;
|
|
1097
|
-
body: unknown;
|
|
1098
|
-
}> & {
|
|
1099
|
-
slug: "customApiCall";
|
|
1100
811
|
}))[];
|
|
1101
812
|
readonly triggers: (({
|
|
1102
813
|
slug: string;
|
|
@@ -1119,19 +830,6 @@ export declare const createSlack: import("frogbot").PieceFactory<{
|
|
|
1119
830
|
[x: string]: unknown;
|
|
1120
831
|
ok: true;
|
|
1121
832
|
}>;
|
|
1122
|
-
raw: ({ path, method, body, headers, token: tokenKind, }: {
|
|
1123
|
-
path: string;
|
|
1124
|
-
method?: string;
|
|
1125
|
-
body?: BodyInit | Record<string, unknown>;
|
|
1126
|
-
headers?: HeadersInit;
|
|
1127
|
-
token?: import("./client.js").SlackToken;
|
|
1128
|
-
}) => Promise<{
|
|
1129
|
-
status: number;
|
|
1130
|
-
headers: {
|
|
1131
|
-
[k: string]: string;
|
|
1132
|
-
};
|
|
1133
|
-
body: any;
|
|
1134
|
-
}>;
|
|
1135
833
|
paginate: ({ path, body, item, token: tokenKind, limit, }: {
|
|
1136
834
|
path: string;
|
|
1137
835
|
body?: Record<string, unknown>;
|
|
@@ -1141,6 +839,7 @@ export declare const createSlack: import("frogbot").PieceFactory<{
|
|
|
1141
839
|
}) => Promise<Record<string, unknown>[]>;
|
|
1142
840
|
token: (kind?: import("./client.js").SlackToken) => string | undefined;
|
|
1143
841
|
workspaceId: () => Promise<string>;
|
|
842
|
+
authorize: (headers: Headers) => void;
|
|
1144
843
|
}>): Promise<import("frogbot").TriggerEvent<Record<string, unknown>>[]>;
|
|
1145
844
|
} & {
|
|
1146
845
|
slug: "messageCreated";
|
|
@@ -1167,19 +866,6 @@ export declare const createSlack: import("frogbot").PieceFactory<{
|
|
|
1167
866
|
[x: string]: unknown;
|
|
1168
867
|
ok: true;
|
|
1169
868
|
}>;
|
|
1170
|
-
raw: ({ path, method, body, headers, token: tokenKind, }: {
|
|
1171
|
-
path: string;
|
|
1172
|
-
method?: string;
|
|
1173
|
-
body?: BodyInit | Record<string, unknown>;
|
|
1174
|
-
headers?: HeadersInit;
|
|
1175
|
-
token?: import("./client.js").SlackToken;
|
|
1176
|
-
}) => Promise<{
|
|
1177
|
-
status: number;
|
|
1178
|
-
headers: {
|
|
1179
|
-
[k: string]: string;
|
|
1180
|
-
};
|
|
1181
|
-
body: any;
|
|
1182
|
-
}>;
|
|
1183
869
|
paginate: ({ path, body, item, token: tokenKind, limit, }: {
|
|
1184
870
|
path: string;
|
|
1185
871
|
body?: Record<string, unknown>;
|
|
@@ -1189,6 +875,7 @@ export declare const createSlack: import("frogbot").PieceFactory<{
|
|
|
1189
875
|
}) => Promise<Record<string, unknown>[]>;
|
|
1190
876
|
token: (kind?: import("./client.js").SlackToken) => string | undefined;
|
|
1191
877
|
workspaceId: () => Promise<string>;
|
|
878
|
+
authorize: (headers: Headers) => void;
|
|
1192
879
|
}>): Promise<import("frogbot").TriggerEvent<Record<string, unknown>>[]>;
|
|
1193
880
|
} & {
|
|
1194
881
|
slug: "channelMessageCreated";
|
|
@@ -1215,19 +902,6 @@ export declare const createSlack: import("frogbot").PieceFactory<{
|
|
|
1215
902
|
[x: string]: unknown;
|
|
1216
903
|
ok: true;
|
|
1217
904
|
}>;
|
|
1218
|
-
raw: ({ path, method, body, headers, token: tokenKind, }: {
|
|
1219
|
-
path: string;
|
|
1220
|
-
method?: string;
|
|
1221
|
-
body?: BodyInit | Record<string, unknown>;
|
|
1222
|
-
headers?: HeadersInit;
|
|
1223
|
-
token?: import("./client.js").SlackToken;
|
|
1224
|
-
}) => Promise<{
|
|
1225
|
-
status: number;
|
|
1226
|
-
headers: {
|
|
1227
|
-
[k: string]: string;
|
|
1228
|
-
};
|
|
1229
|
-
body: any;
|
|
1230
|
-
}>;
|
|
1231
905
|
paginate: ({ path, body, item, token: tokenKind, limit, }: {
|
|
1232
906
|
path: string;
|
|
1233
907
|
body?: Record<string, unknown>;
|
|
@@ -1237,6 +911,7 @@ export declare const createSlack: import("frogbot").PieceFactory<{
|
|
|
1237
911
|
}) => Promise<Record<string, unknown>[]>;
|
|
1238
912
|
token: (kind?: import("./client.js").SlackToken) => string | undefined;
|
|
1239
913
|
workspaceId: () => Promise<string>;
|
|
914
|
+
authorize: (headers: Headers) => void;
|
|
1240
915
|
}>): Promise<import("frogbot").TriggerEvent<Record<string, unknown>>[]>;
|
|
1241
916
|
} & {
|
|
1242
917
|
slug: "directMessageCreated";
|
|
@@ -1269,19 +944,6 @@ export declare const createSlack: import("frogbot").PieceFactory<{
|
|
|
1269
944
|
[x: string]: unknown;
|
|
1270
945
|
ok: true;
|
|
1271
946
|
}>;
|
|
1272
|
-
raw: ({ path, method, body, headers, token: tokenKind, }: {
|
|
1273
|
-
path: string;
|
|
1274
|
-
method?: string;
|
|
1275
|
-
body?: BodyInit | Record<string, unknown>;
|
|
1276
|
-
headers?: HeadersInit;
|
|
1277
|
-
token?: import("./client.js").SlackToken;
|
|
1278
|
-
}) => Promise<{
|
|
1279
|
-
status: number;
|
|
1280
|
-
headers: {
|
|
1281
|
-
[k: string]: string;
|
|
1282
|
-
};
|
|
1283
|
-
body: any;
|
|
1284
|
-
}>;
|
|
1285
947
|
paginate: ({ path, body, item, token: tokenKind, limit, }: {
|
|
1286
948
|
path: string;
|
|
1287
949
|
body?: Record<string, unknown>;
|
|
@@ -1291,6 +953,7 @@ export declare const createSlack: import("frogbot").PieceFactory<{
|
|
|
1291
953
|
}) => Promise<Record<string, unknown>[]>;
|
|
1292
954
|
token: (kind?: import("./client.js").SlackToken) => string | undefined;
|
|
1293
955
|
workspaceId: () => Promise<string>;
|
|
956
|
+
authorize: (headers: Headers) => void;
|
|
1294
957
|
}>): Promise<import("frogbot").TriggerEvent<Record<string, unknown>>[]>;
|
|
1295
958
|
} & {
|
|
1296
959
|
slug: "channelMentionCreated";
|
|
@@ -1299,9 +962,9 @@ export declare const createSlack: import("frogbot").PieceFactory<{
|
|
|
1299
962
|
label?: string;
|
|
1300
963
|
description: string;
|
|
1301
964
|
input: z.ZodObject<{
|
|
1302
|
-
|
|
1303
|
-
|
|
1304
|
-
|
|
965
|
+
ignoreSelfMessages: z.ZodDefault<z.ZodBoolean>;
|
|
966
|
+
ignoreBots: z.ZodDefault<z.ZodBoolean>;
|
|
967
|
+
user: z.ZodString;
|
|
1305
968
|
}, z.core.$strip>;
|
|
1306
969
|
output?: z.ZodRecord<z.ZodString, z.ZodUnknown> | undefined;
|
|
1307
970
|
sample?: Record<string, unknown> | undefined;
|
|
@@ -1309,9 +972,9 @@ export declare const createSlack: import("frogbot").PieceFactory<{
|
|
|
1309
972
|
type: "app";
|
|
1310
973
|
event: string;
|
|
1311
974
|
run(args: import("frogbot").PieceRunArgs<{
|
|
1312
|
-
|
|
1313
|
-
|
|
1314
|
-
user
|
|
975
|
+
ignoreSelfMessages: boolean;
|
|
976
|
+
ignoreBots: boolean;
|
|
977
|
+
user: string;
|
|
1315
978
|
}, {
|
|
1316
979
|
signingSecret?: string | undefined;
|
|
1317
980
|
}, {
|
|
@@ -1319,19 +982,6 @@ export declare const createSlack: import("frogbot").PieceFactory<{
|
|
|
1319
982
|
[x: string]: unknown;
|
|
1320
983
|
ok: true;
|
|
1321
984
|
}>;
|
|
1322
|
-
raw: ({ path, method, body, headers, token: tokenKind, }: {
|
|
1323
|
-
path: string;
|
|
1324
|
-
method?: string;
|
|
1325
|
-
body?: BodyInit | Record<string, unknown>;
|
|
1326
|
-
headers?: HeadersInit;
|
|
1327
|
-
token?: import("./client.js").SlackToken;
|
|
1328
|
-
}) => Promise<{
|
|
1329
|
-
status: number;
|
|
1330
|
-
headers: {
|
|
1331
|
-
[k: string]: string;
|
|
1332
|
-
};
|
|
1333
|
-
body: any;
|
|
1334
|
-
}>;
|
|
1335
985
|
paginate: ({ path, body, item, token: tokenKind, limit, }: {
|
|
1336
986
|
path: string;
|
|
1337
987
|
body?: Record<string, unknown>;
|
|
@@ -1341,9 +991,10 @@ export declare const createSlack: import("frogbot").PieceFactory<{
|
|
|
1341
991
|
}) => Promise<Record<string, unknown>[]>;
|
|
1342
992
|
token: (kind?: import("./client.js").SlackToken) => string | undefined;
|
|
1343
993
|
workspaceId: () => Promise<string>;
|
|
994
|
+
authorize: (headers: Headers) => void;
|
|
1344
995
|
}>): Promise<import("frogbot").TriggerEvent<Record<string, unknown>>[]>;
|
|
1345
996
|
} & {
|
|
1346
|
-
slug: "
|
|
997
|
+
slug: "directMentionCreated";
|
|
1347
998
|
}) | ({
|
|
1348
999
|
slug: string;
|
|
1349
1000
|
label?: string;
|
|
@@ -1369,19 +1020,6 @@ export declare const createSlack: import("frogbot").PieceFactory<{
|
|
|
1369
1020
|
[x: string]: unknown;
|
|
1370
1021
|
ok: true;
|
|
1371
1022
|
}>;
|
|
1372
|
-
raw: ({ path, method, body, headers, token: tokenKind, }: {
|
|
1373
|
-
path: string;
|
|
1374
|
-
method?: string;
|
|
1375
|
-
body?: BodyInit | Record<string, unknown>;
|
|
1376
|
-
headers?: HeadersInit;
|
|
1377
|
-
token?: import("./client.js").SlackToken;
|
|
1378
|
-
}) => Promise<{
|
|
1379
|
-
status: number;
|
|
1380
|
-
headers: {
|
|
1381
|
-
[k: string]: string;
|
|
1382
|
-
};
|
|
1383
|
-
body: any;
|
|
1384
|
-
}>;
|
|
1385
1023
|
paginate: ({ path, body, item, token: tokenKind, limit, }: {
|
|
1386
1024
|
path: string;
|
|
1387
1025
|
body?: Record<string, unknown>;
|
|
@@ -1391,39 +1029,35 @@ export declare const createSlack: import("frogbot").PieceFactory<{
|
|
|
1391
1029
|
}) => Promise<Record<string, unknown>[]>;
|
|
1392
1030
|
token: (kind?: import("./client.js").SlackToken) => string | undefined;
|
|
1393
1031
|
workspaceId: () => Promise<string>;
|
|
1032
|
+
authorize: (headers: Headers) => void;
|
|
1394
1033
|
}>): Promise<import("frogbot").TriggerEvent<Record<string, unknown>>[]>;
|
|
1395
1034
|
} & {
|
|
1396
|
-
slug: "
|
|
1035
|
+
slug: "reactionAdded";
|
|
1397
1036
|
}) | ({
|
|
1398
1037
|
slug: string;
|
|
1399
1038
|
label?: string;
|
|
1400
1039
|
description: string;
|
|
1401
|
-
input: z.ZodObject<{
|
|
1040
|
+
input: z.ZodObject<{
|
|
1041
|
+
emojis: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
1042
|
+
user: z.ZodOptional<z.ZodString>;
|
|
1043
|
+
channels: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
1044
|
+
}, z.core.$strip>;
|
|
1402
1045
|
output?: z.ZodRecord<z.ZodString, z.ZodUnknown> | undefined;
|
|
1403
1046
|
sample?: Record<string, unknown> | undefined;
|
|
1404
1047
|
} & {
|
|
1405
1048
|
type: "app";
|
|
1406
1049
|
event: string;
|
|
1407
|
-
run(args: import("frogbot").PieceRunArgs<
|
|
1050
|
+
run(args: import("frogbot").PieceRunArgs<{
|
|
1051
|
+
emojis: string[];
|
|
1052
|
+
channels: string[];
|
|
1053
|
+
user?: string | undefined;
|
|
1054
|
+
}, {
|
|
1408
1055
|
signingSecret?: string | undefined;
|
|
1409
1056
|
}, {
|
|
1410
1057
|
request: (path: string, body?: Record<string, unknown>, tokenKind?: import("./client.js").SlackToken) => Promise<{
|
|
1411
1058
|
[x: string]: unknown;
|
|
1412
1059
|
ok: true;
|
|
1413
1060
|
}>;
|
|
1414
|
-
raw: ({ path, method, body, headers, token: tokenKind, }: {
|
|
1415
|
-
path: string;
|
|
1416
|
-
method?: string;
|
|
1417
|
-
body?: BodyInit | Record<string, unknown>;
|
|
1418
|
-
headers?: HeadersInit;
|
|
1419
|
-
token?: import("./client.js").SlackToken;
|
|
1420
|
-
}) => Promise<{
|
|
1421
|
-
status: number;
|
|
1422
|
-
headers: {
|
|
1423
|
-
[k: string]: string;
|
|
1424
|
-
};
|
|
1425
|
-
body: any;
|
|
1426
|
-
}>;
|
|
1427
1061
|
paginate: ({ path, body, item, token: tokenKind, limit, }: {
|
|
1428
1062
|
path: string;
|
|
1429
1063
|
body?: Record<string, unknown>;
|
|
@@ -1433,49 +1067,27 @@ export declare const createSlack: import("frogbot").PieceFactory<{
|
|
|
1433
1067
|
}) => Promise<Record<string, unknown>[]>;
|
|
1434
1068
|
token: (kind?: import("./client.js").SlackToken) => string | undefined;
|
|
1435
1069
|
workspaceId: () => Promise<string>;
|
|
1070
|
+
authorize: (headers: Headers) => void;
|
|
1436
1071
|
}>): Promise<import("frogbot").TriggerEvent<Record<string, unknown>>[]>;
|
|
1437
1072
|
} & {
|
|
1438
|
-
slug: "
|
|
1073
|
+
slug: "reactionRemoved";
|
|
1439
1074
|
}) | ({
|
|
1440
1075
|
slug: string;
|
|
1441
1076
|
label?: string;
|
|
1442
1077
|
description: string;
|
|
1443
|
-
input: z.ZodObject<{
|
|
1444
|
-
user: z.ZodString;
|
|
1445
|
-
commands: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
1446
|
-
channels: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
1447
|
-
ignoreBots: z.ZodDefault<z.ZodBoolean>;
|
|
1448
|
-
}, z.core.$strip>;
|
|
1078
|
+
input: z.ZodObject<{}, z.core.$strip>;
|
|
1449
1079
|
output?: z.ZodRecord<z.ZodString, z.ZodUnknown> | undefined;
|
|
1450
1080
|
sample?: Record<string, unknown> | undefined;
|
|
1451
1081
|
} & {
|
|
1452
1082
|
type: "app";
|
|
1453
1083
|
event: string;
|
|
1454
|
-
run(args: import("frogbot").PieceRunArgs<{
|
|
1455
|
-
user: string;
|
|
1456
|
-
commands: string[];
|
|
1457
|
-
channels: string[];
|
|
1458
|
-
ignoreBots: boolean;
|
|
1459
|
-
}, {
|
|
1084
|
+
run(args: import("frogbot").PieceRunArgs<Record<string, never>, {
|
|
1460
1085
|
signingSecret?: string | undefined;
|
|
1461
1086
|
}, {
|
|
1462
1087
|
request: (path: string, body?: Record<string, unknown>, tokenKind?: import("./client.js").SlackToken) => Promise<{
|
|
1463
1088
|
[x: string]: unknown;
|
|
1464
1089
|
ok: true;
|
|
1465
1090
|
}>;
|
|
1466
|
-
raw: ({ path, method, body, headers, token: tokenKind, }: {
|
|
1467
|
-
path: string;
|
|
1468
|
-
method?: string;
|
|
1469
|
-
body?: BodyInit | Record<string, unknown>;
|
|
1470
|
-
headers?: HeadersInit;
|
|
1471
|
-
token?: import("./client.js").SlackToken;
|
|
1472
|
-
}) => Promise<{
|
|
1473
|
-
status: number;
|
|
1474
|
-
headers: {
|
|
1475
|
-
[k: string]: string;
|
|
1476
|
-
};
|
|
1477
|
-
body: any;
|
|
1478
|
-
}>;
|
|
1479
1091
|
paginate: ({ path, body, item, token: tokenKind, limit, }: {
|
|
1480
1092
|
path: string;
|
|
1481
1093
|
body?: Record<string, unknown>;
|
|
@@ -1485,17 +1097,19 @@ export declare const createSlack: import("frogbot").PieceFactory<{
|
|
|
1485
1097
|
}) => Promise<Record<string, unknown>[]>;
|
|
1486
1098
|
token: (kind?: import("./client.js").SlackToken) => string | undefined;
|
|
1487
1099
|
workspaceId: () => Promise<string>;
|
|
1100
|
+
authorize: (headers: Headers) => void;
|
|
1488
1101
|
}>): Promise<import("frogbot").TriggerEvent<Record<string, unknown>>[]>;
|
|
1489
1102
|
} & {
|
|
1490
|
-
slug: "
|
|
1103
|
+
slug: "channelCreated";
|
|
1491
1104
|
}) | ({
|
|
1492
1105
|
slug: string;
|
|
1493
1106
|
label?: string;
|
|
1494
1107
|
description: string;
|
|
1495
1108
|
input: z.ZodObject<{
|
|
1496
|
-
ignoreSelfMessages: z.ZodDefault<z.ZodBoolean>;
|
|
1497
|
-
ignoreBots: z.ZodDefault<z.ZodBoolean>;
|
|
1498
1109
|
user: z.ZodString;
|
|
1110
|
+
commands: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
1111
|
+
channels: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
1112
|
+
ignoreBots: z.ZodDefault<z.ZodBoolean>;
|
|
1499
1113
|
}, z.core.$strip>;
|
|
1500
1114
|
output?: z.ZodRecord<z.ZodString, z.ZodUnknown> | undefined;
|
|
1501
1115
|
sample?: Record<string, unknown> | undefined;
|
|
@@ -1503,9 +1117,10 @@ export declare const createSlack: import("frogbot").PieceFactory<{
|
|
|
1503
1117
|
type: "app";
|
|
1504
1118
|
event: string;
|
|
1505
1119
|
run(args: import("frogbot").PieceRunArgs<{
|
|
1506
|
-
ignoreSelfMessages: boolean;
|
|
1507
|
-
ignoreBots: boolean;
|
|
1508
1120
|
user: string;
|
|
1121
|
+
commands: string[];
|
|
1122
|
+
channels: string[];
|
|
1123
|
+
ignoreBots: boolean;
|
|
1509
1124
|
}, {
|
|
1510
1125
|
signingSecret?: string | undefined;
|
|
1511
1126
|
}, {
|
|
@@ -1513,19 +1128,6 @@ export declare const createSlack: import("frogbot").PieceFactory<{
|
|
|
1513
1128
|
[x: string]: unknown;
|
|
1514
1129
|
ok: true;
|
|
1515
1130
|
}>;
|
|
1516
|
-
raw: ({ path, method, body, headers, token: tokenKind, }: {
|
|
1517
|
-
path: string;
|
|
1518
|
-
method?: string;
|
|
1519
|
-
body?: BodyInit | Record<string, unknown>;
|
|
1520
|
-
headers?: HeadersInit;
|
|
1521
|
-
token?: import("./client.js").SlackToken;
|
|
1522
|
-
}) => Promise<{
|
|
1523
|
-
status: number;
|
|
1524
|
-
headers: {
|
|
1525
|
-
[k: string]: string;
|
|
1526
|
-
};
|
|
1527
|
-
body: any;
|
|
1528
|
-
}>;
|
|
1529
1131
|
paginate: ({ path, body, item, token: tokenKind, limit, }: {
|
|
1530
1132
|
path: string;
|
|
1531
1133
|
body?: Record<string, unknown>;
|
|
@@ -1535,17 +1137,18 @@ export declare const createSlack: import("frogbot").PieceFactory<{
|
|
|
1535
1137
|
}) => Promise<Record<string, unknown>[]>;
|
|
1536
1138
|
token: (kind?: import("./client.js").SlackToken) => string | undefined;
|
|
1537
1139
|
workspaceId: () => Promise<string>;
|
|
1140
|
+
authorize: (headers: Headers) => void;
|
|
1538
1141
|
}>): Promise<import("frogbot").TriggerEvent<Record<string, unknown>>[]>;
|
|
1539
1142
|
} & {
|
|
1540
|
-
slug: "
|
|
1143
|
+
slug: "channelCommandCreated";
|
|
1541
1144
|
}) | ({
|
|
1542
1145
|
slug: string;
|
|
1543
1146
|
label?: string;
|
|
1544
1147
|
description: string;
|
|
1545
1148
|
input: z.ZodObject<{
|
|
1149
|
+
commands: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
1546
1150
|
user: z.ZodString;
|
|
1547
1151
|
ignoreBots: z.ZodDefault<z.ZodBoolean>;
|
|
1548
|
-
commands: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
1549
1152
|
ignoreSelfMessages: z.ZodDefault<z.ZodBoolean>;
|
|
1550
1153
|
}, z.core.$strip>;
|
|
1551
1154
|
output?: z.ZodRecord<z.ZodString, z.ZodUnknown> | undefined;
|
|
@@ -1554,9 +1157,9 @@ export declare const createSlack: import("frogbot").PieceFactory<{
|
|
|
1554
1157
|
type: "app";
|
|
1555
1158
|
event: string;
|
|
1556
1159
|
run(args: import("frogbot").PieceRunArgs<{
|
|
1160
|
+
commands: string[];
|
|
1557
1161
|
user: string;
|
|
1558
1162
|
ignoreBots: boolean;
|
|
1559
|
-
commands: string[];
|
|
1560
1163
|
ignoreSelfMessages: boolean;
|
|
1561
1164
|
}, {
|
|
1562
1165
|
signingSecret?: string | undefined;
|
|
@@ -1565,19 +1168,6 @@ export declare const createSlack: import("frogbot").PieceFactory<{
|
|
|
1565
1168
|
[x: string]: unknown;
|
|
1566
1169
|
ok: true;
|
|
1567
1170
|
}>;
|
|
1568
|
-
raw: ({ path, method, body, headers, token: tokenKind, }: {
|
|
1569
|
-
path: string;
|
|
1570
|
-
method?: string;
|
|
1571
|
-
body?: BodyInit | Record<string, unknown>;
|
|
1572
|
-
headers?: HeadersInit;
|
|
1573
|
-
token?: import("./client.js").SlackToken;
|
|
1574
|
-
}) => Promise<{
|
|
1575
|
-
status: number;
|
|
1576
|
-
headers: {
|
|
1577
|
-
[k: string]: string;
|
|
1578
|
-
};
|
|
1579
|
-
body: any;
|
|
1580
|
-
}>;
|
|
1581
1171
|
paginate: ({ path, body, item, token: tokenKind, limit, }: {
|
|
1582
1172
|
path: string;
|
|
1583
1173
|
body?: Record<string, unknown>;
|
|
@@ -1587,6 +1177,7 @@ export declare const createSlack: import("frogbot").PieceFactory<{
|
|
|
1587
1177
|
}) => Promise<Record<string, unknown>[]>;
|
|
1588
1178
|
token: (kind?: import("./client.js").SlackToken) => string | undefined;
|
|
1589
1179
|
workspaceId: () => Promise<string>;
|
|
1180
|
+
authorize: (headers: Headers) => void;
|
|
1590
1181
|
}>): Promise<import("frogbot").TriggerEvent<Record<string, unknown>>[]>;
|
|
1591
1182
|
} & {
|
|
1592
1183
|
slug: "directCommandCreated";
|
|
@@ -1607,19 +1198,6 @@ export declare const createSlack: import("frogbot").PieceFactory<{
|
|
|
1607
1198
|
[x: string]: unknown;
|
|
1608
1199
|
ok: true;
|
|
1609
1200
|
}>;
|
|
1610
|
-
raw: ({ path, method, body, headers, token: tokenKind, }: {
|
|
1611
|
-
path: string;
|
|
1612
|
-
method?: string;
|
|
1613
|
-
body?: BodyInit | Record<string, unknown>;
|
|
1614
|
-
headers?: HeadersInit;
|
|
1615
|
-
token?: import("./client.js").SlackToken;
|
|
1616
|
-
}) => Promise<{
|
|
1617
|
-
status: number;
|
|
1618
|
-
headers: {
|
|
1619
|
-
[k: string]: string;
|
|
1620
|
-
};
|
|
1621
|
-
body: any;
|
|
1622
|
-
}>;
|
|
1623
1201
|
paginate: ({ path, body, item, token: tokenKind, limit, }: {
|
|
1624
1202
|
path: string;
|
|
1625
1203
|
body?: Record<string, unknown>;
|
|
@@ -1629,6 +1207,7 @@ export declare const createSlack: import("frogbot").PieceFactory<{
|
|
|
1629
1207
|
}) => Promise<Record<string, unknown>[]>;
|
|
1630
1208
|
token: (kind?: import("./client.js").SlackToken) => string | undefined;
|
|
1631
1209
|
workspaceId: () => Promise<string>;
|
|
1210
|
+
authorize: (headers: Headers) => void;
|
|
1632
1211
|
}>): Promise<import("frogbot").TriggerEvent<Record<string, unknown>>[]>;
|
|
1633
1212
|
} & {
|
|
1634
1213
|
slug: "userJoined";
|
|
@@ -1649,19 +1228,6 @@ export declare const createSlack: import("frogbot").PieceFactory<{
|
|
|
1649
1228
|
[x: string]: unknown;
|
|
1650
1229
|
ok: true;
|
|
1651
1230
|
}>;
|
|
1652
|
-
raw: ({ path, method, body, headers, token: tokenKind, }: {
|
|
1653
|
-
path: string;
|
|
1654
|
-
method?: string;
|
|
1655
|
-
body?: BodyInit | Record<string, unknown>;
|
|
1656
|
-
headers?: HeadersInit;
|
|
1657
|
-
token?: import("./client.js").SlackToken;
|
|
1658
|
-
}) => Promise<{
|
|
1659
|
-
status: number;
|
|
1660
|
-
headers: {
|
|
1661
|
-
[k: string]: string;
|
|
1662
|
-
};
|
|
1663
|
-
body: any;
|
|
1664
|
-
}>;
|
|
1665
1231
|
paginate: ({ path, body, item, token: tokenKind, limit, }: {
|
|
1666
1232
|
path: string;
|
|
1667
1233
|
body?: Record<string, unknown>;
|
|
@@ -1671,6 +1237,7 @@ export declare const createSlack: import("frogbot").PieceFactory<{
|
|
|
1671
1237
|
}) => Promise<Record<string, unknown>[]>;
|
|
1672
1238
|
token: (kind?: import("./client.js").SlackToken) => string | undefined;
|
|
1673
1239
|
workspaceId: () => Promise<string>;
|
|
1240
|
+
authorize: (headers: Headers) => void;
|
|
1674
1241
|
}>): Promise<import("frogbot").TriggerEvent<Record<string, unknown>>[]>;
|
|
1675
1242
|
} & {
|
|
1676
1243
|
slug: "messageSaved";
|
|
@@ -1691,19 +1258,6 @@ export declare const createSlack: import("frogbot").PieceFactory<{
|
|
|
1691
1258
|
[x: string]: unknown;
|
|
1692
1259
|
ok: true;
|
|
1693
1260
|
}>;
|
|
1694
|
-
raw: ({ path, method, body, headers, token: tokenKind, }: {
|
|
1695
|
-
path: string;
|
|
1696
|
-
method?: string;
|
|
1697
|
-
body?: BodyInit | Record<string, unknown>;
|
|
1698
|
-
headers?: HeadersInit;
|
|
1699
|
-
token?: import("./client.js").SlackToken;
|
|
1700
|
-
}) => Promise<{
|
|
1701
|
-
status: number;
|
|
1702
|
-
headers: {
|
|
1703
|
-
[k: string]: string;
|
|
1704
|
-
};
|
|
1705
|
-
body: any;
|
|
1706
|
-
}>;
|
|
1707
1261
|
paginate: ({ path, body, item, token: tokenKind, limit, }: {
|
|
1708
1262
|
path: string;
|
|
1709
1263
|
body?: Record<string, unknown>;
|
|
@@ -1713,6 +1267,7 @@ export declare const createSlack: import("frogbot").PieceFactory<{
|
|
|
1713
1267
|
}) => Promise<Record<string, unknown>[]>;
|
|
1714
1268
|
token: (kind?: import("./client.js").SlackToken) => string | undefined;
|
|
1715
1269
|
workspaceId: () => Promise<string>;
|
|
1270
|
+
authorize: (headers: Headers) => void;
|
|
1716
1271
|
}>): Promise<import("frogbot").TriggerEvent<Record<string, unknown>>[]>;
|
|
1717
1272
|
} & {
|
|
1718
1273
|
slug: "customEmojiAdded";
|
|
@@ -1740,19 +1295,6 @@ export declare const createSlack: import("frogbot").PieceFactory<{
|
|
|
1740
1295
|
[x: string]: unknown;
|
|
1741
1296
|
ok: true;
|
|
1742
1297
|
}>;
|
|
1743
|
-
raw: ({ path, method, body, headers, token: tokenKind, }: {
|
|
1744
|
-
path: string;
|
|
1745
|
-
method?: string;
|
|
1746
|
-
body?: BodyInit | Record<string, unknown>;
|
|
1747
|
-
headers?: HeadersInit;
|
|
1748
|
-
token?: import("./client.js").SlackToken;
|
|
1749
|
-
}) => Promise<{
|
|
1750
|
-
status: number;
|
|
1751
|
-
headers: {
|
|
1752
|
-
[k: string]: string;
|
|
1753
|
-
};
|
|
1754
|
-
body: any;
|
|
1755
|
-
}>;
|
|
1756
1298
|
paginate: ({ path, body, item, token: tokenKind, limit, }: {
|
|
1757
1299
|
path: string;
|
|
1758
1300
|
body?: Record<string, unknown>;
|
|
@@ -1762,6 +1304,7 @@ export declare const createSlack: import("frogbot").PieceFactory<{
|
|
|
1762
1304
|
}) => Promise<Record<string, unknown>[]>;
|
|
1763
1305
|
token: (kind?: import("./client.js").SlackToken) => string | undefined;
|
|
1764
1306
|
workspaceId: () => Promise<string>;
|
|
1307
|
+
authorize: (headers: Headers) => void;
|
|
1765
1308
|
}>): Promise<import("frogbot").TriggerEvent<Record<string, unknown>>[]>;
|
|
1766
1309
|
} & {
|
|
1767
1310
|
slug: "modalInteraction";
|