@frogbotai/piece-slack 0.30.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 +16 -51
- 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/files.d.ts.map +1 -1
- package/dist/files.js +2 -4
- package/dist/files.js.map +1 -1
- package/dist/index.d.ts +151 -611
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +9 -25
- package/dist/index.js.map +1 -1
- package/dist/questions/blocks.js.map +1 -1
- package/dist/questions/parse.js.map +1 -1
- package/dist/triggers.d.ts +61 -397
- package/dist/triggers.d.ts.map +1 -1
- package/dist/triggers.js.map +1 -1
- package/dist/webhook.d.ts.map +1 -1
- package/dist/webhook.js.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,30 +155,15 @@ 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
|
-
}): Promise<
|
|
128
|
-
collection: string;
|
|
129
|
-
id: string | number;
|
|
130
|
-
} | null>;
|
|
161
|
+
}): Promise<(Record<string, unknown> & import("frogbot").TypeWithID) | null>;
|
|
131
162
|
questions: import("frogbot/pieces").PieceChannelQuestions<{
|
|
132
163
|
request: (path: string, body?: Record<string, unknown>, tokenKind?: import("./client.js").SlackToken) => Promise<{
|
|
133
164
|
[x: string]: unknown;
|
|
134
165
|
ok: true;
|
|
135
166
|
}>;
|
|
136
|
-
raw: ({ path, method, body, headers, token: tokenKind, }: {
|
|
137
|
-
path: string;
|
|
138
|
-
method?: string;
|
|
139
|
-
body?: BodyInit | Record<string, unknown>;
|
|
140
|
-
headers?: HeadersInit;
|
|
141
|
-
token?: import("./client.js").SlackToken;
|
|
142
|
-
}) => Promise<{
|
|
143
|
-
status: number;
|
|
144
|
-
headers: {
|
|
145
|
-
[k: string]: string;
|
|
146
|
-
};
|
|
147
|
-
body: any;
|
|
148
|
-
}>;
|
|
149
167
|
paginate: ({ path, body, item, token: tokenKind, limit, }: {
|
|
150
168
|
path: string;
|
|
151
169
|
body?: Record<string, unknown>;
|
|
@@ -155,9 +173,27 @@ export declare const createSlack: import("frogbot").PieceFactory<{
|
|
|
155
173
|
}) => Promise<Record<string, unknown>[]>;
|
|
156
174
|
token: (kind?: import("./client.js").SlackToken) => string | undefined;
|
|
157
175
|
workspaceId: () => Promise<string>;
|
|
176
|
+
authorize: (headers: Headers) => void;
|
|
158
177
|
}>;
|
|
159
178
|
};
|
|
160
|
-
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<{
|
|
161
197
|
text: z.ZodString;
|
|
162
198
|
username: z.ZodOptional<z.ZodString>;
|
|
163
199
|
profilePicture: z.ZodOptional<z.ZodURL>;
|
|
@@ -176,19 +212,6 @@ export declare const createSlack: import("frogbot").PieceFactory<{
|
|
|
176
212
|
[x: string]: unknown;
|
|
177
213
|
ok: true;
|
|
178
214
|
}>;
|
|
179
|
-
raw: ({ path, method, body, headers, token: tokenKind, }: {
|
|
180
|
-
path: string;
|
|
181
|
-
method?: string;
|
|
182
|
-
body?: BodyInit | Record<string, unknown>;
|
|
183
|
-
headers?: HeadersInit;
|
|
184
|
-
token?: import("./client.js").SlackToken;
|
|
185
|
-
}) => Promise<{
|
|
186
|
-
status: number;
|
|
187
|
-
headers: {
|
|
188
|
-
[k: string]: string;
|
|
189
|
-
};
|
|
190
|
-
body: any;
|
|
191
|
-
}>;
|
|
192
215
|
paginate: ({ path, body, item, token: tokenKind, limit, }: {
|
|
193
216
|
path: string;
|
|
194
217
|
body?: Record<string, unknown>;
|
|
@@ -198,6 +221,7 @@ export declare const createSlack: import("frogbot").PieceFactory<{
|
|
|
198
221
|
}) => Promise<Record<string, unknown>[]>;
|
|
199
222
|
token: (kind?: import("./client.js").SlackToken) => string | undefined;
|
|
200
223
|
workspaceId: () => Promise<string>;
|
|
224
|
+
authorize: (headers: Headers) => void;
|
|
201
225
|
}, {
|
|
202
226
|
[x: string]: unknown;
|
|
203
227
|
ok: true;
|
|
@@ -229,19 +253,6 @@ export declare const createSlack: import("frogbot").PieceFactory<{
|
|
|
229
253
|
[x: string]: unknown;
|
|
230
254
|
ok: true;
|
|
231
255
|
}>;
|
|
232
|
-
raw: ({ path, method, body, headers, token: tokenKind, }: {
|
|
233
|
-
path: string;
|
|
234
|
-
method?: string;
|
|
235
|
-
body?: BodyInit | Record<string, unknown>;
|
|
236
|
-
headers?: HeadersInit;
|
|
237
|
-
token?: import("./client.js").SlackToken;
|
|
238
|
-
}) => Promise<{
|
|
239
|
-
status: number;
|
|
240
|
-
headers: {
|
|
241
|
-
[k: string]: string;
|
|
242
|
-
};
|
|
243
|
-
body: any;
|
|
244
|
-
}>;
|
|
245
256
|
paginate: ({ path, body, item, token: tokenKind, limit, }: {
|
|
246
257
|
path: string;
|
|
247
258
|
body?: Record<string, unknown>;
|
|
@@ -251,6 +262,7 @@ export declare const createSlack: import("frogbot").PieceFactory<{
|
|
|
251
262
|
}) => Promise<Record<string, unknown>[]>;
|
|
252
263
|
token: (kind?: import("./client.js").SlackToken) => string | undefined;
|
|
253
264
|
workspaceId: () => Promise<string>;
|
|
265
|
+
authorize: (headers: Headers) => void;
|
|
254
266
|
}, {
|
|
255
267
|
[x: string]: unknown;
|
|
256
268
|
ok: true;
|
|
@@ -270,19 +282,6 @@ export declare const createSlack: import("frogbot").PieceFactory<{
|
|
|
270
282
|
[x: string]: unknown;
|
|
271
283
|
ok: true;
|
|
272
284
|
}>;
|
|
273
|
-
raw: ({ path, method, body, headers, token: tokenKind, }: {
|
|
274
|
-
path: string;
|
|
275
|
-
method?: string;
|
|
276
|
-
body?: BodyInit | Record<string, unknown>;
|
|
277
|
-
headers?: HeadersInit;
|
|
278
|
-
token?: import("./client.js").SlackToken;
|
|
279
|
-
}) => Promise<{
|
|
280
|
-
status: number;
|
|
281
|
-
headers: {
|
|
282
|
-
[k: string]: string;
|
|
283
|
-
};
|
|
284
|
-
body: any;
|
|
285
|
-
}>;
|
|
286
285
|
paginate: ({ path, body, item, token: tokenKind, limit, }: {
|
|
287
286
|
path: string;
|
|
288
287
|
body?: Record<string, unknown>;
|
|
@@ -292,6 +291,7 @@ export declare const createSlack: import("frogbot").PieceFactory<{
|
|
|
292
291
|
}) => Promise<Record<string, unknown>[]>;
|
|
293
292
|
token: (kind?: import("./client.js").SlackToken) => string | undefined;
|
|
294
293
|
workspaceId: () => Promise<string>;
|
|
294
|
+
authorize: (headers: Headers) => void;
|
|
295
295
|
}, {
|
|
296
296
|
[x: string]: unknown;
|
|
297
297
|
ok: true;
|
|
@@ -314,19 +314,6 @@ export declare const createSlack: import("frogbot").PieceFactory<{
|
|
|
314
314
|
[x: string]: unknown;
|
|
315
315
|
ok: true;
|
|
316
316
|
}>;
|
|
317
|
-
raw: ({ path, method, body, headers, token: tokenKind, }: {
|
|
318
|
-
path: string;
|
|
319
|
-
method?: string;
|
|
320
|
-
body?: BodyInit | Record<string, unknown>;
|
|
321
|
-
headers?: HeadersInit;
|
|
322
|
-
token?: import("./client.js").SlackToken;
|
|
323
|
-
}) => Promise<{
|
|
324
|
-
status: number;
|
|
325
|
-
headers: {
|
|
326
|
-
[k: string]: string;
|
|
327
|
-
};
|
|
328
|
-
body: any;
|
|
329
|
-
}>;
|
|
330
317
|
paginate: ({ path, body, item, token: tokenKind, limit, }: {
|
|
331
318
|
path: string;
|
|
332
319
|
body?: Record<string, unknown>;
|
|
@@ -336,6 +323,7 @@ export declare const createSlack: import("frogbot").PieceFactory<{
|
|
|
336
323
|
}) => Promise<Record<string, unknown>[]>;
|
|
337
324
|
token: (kind?: import("./client.js").SlackToken) => string | undefined;
|
|
338
325
|
workspaceId: () => Promise<string>;
|
|
326
|
+
authorize: (headers: Headers) => void;
|
|
339
327
|
}, {
|
|
340
328
|
[x: string]: unknown;
|
|
341
329
|
ok: true;
|
|
@@ -350,19 +338,6 @@ export declare const createSlack: import("frogbot").PieceFactory<{
|
|
|
350
338
|
[x: string]: unknown;
|
|
351
339
|
ok: true;
|
|
352
340
|
}>;
|
|
353
|
-
raw: ({ path, method, body, headers, token: tokenKind, }: {
|
|
354
|
-
path: string;
|
|
355
|
-
method?: string;
|
|
356
|
-
body?: BodyInit | Record<string, unknown>;
|
|
357
|
-
headers?: HeadersInit;
|
|
358
|
-
token?: import("./client.js").SlackToken;
|
|
359
|
-
}) => Promise<{
|
|
360
|
-
status: number;
|
|
361
|
-
headers: {
|
|
362
|
-
[k: string]: string;
|
|
363
|
-
};
|
|
364
|
-
body: any;
|
|
365
|
-
}>;
|
|
366
341
|
paginate: ({ path, body, item, token: tokenKind, limit, }: {
|
|
367
342
|
path: string;
|
|
368
343
|
body?: Record<string, unknown>;
|
|
@@ -372,6 +347,7 @@ export declare const createSlack: import("frogbot").PieceFactory<{
|
|
|
372
347
|
}) => Promise<Record<string, unknown>[]>;
|
|
373
348
|
token: (kind?: import("./client.js").SlackToken) => string | undefined;
|
|
374
349
|
workspaceId: () => Promise<string>;
|
|
350
|
+
authorize: (headers: Headers) => void;
|
|
375
351
|
}, Record<string, unknown>> & {
|
|
376
352
|
slug: "getFile";
|
|
377
353
|
}) | (import("frogbot").PieceActionDefinition<z.ZodObject<{
|
|
@@ -383,19 +359,6 @@ export declare const createSlack: import("frogbot").PieceFactory<{
|
|
|
383
359
|
[x: string]: unknown;
|
|
384
360
|
ok: true;
|
|
385
361
|
}>;
|
|
386
|
-
raw: ({ path, method, body, headers, token: tokenKind, }: {
|
|
387
|
-
path: string;
|
|
388
|
-
method?: string;
|
|
389
|
-
body?: BodyInit | Record<string, unknown>;
|
|
390
|
-
headers?: HeadersInit;
|
|
391
|
-
token?: import("./client.js").SlackToken;
|
|
392
|
-
}) => Promise<{
|
|
393
|
-
status: number;
|
|
394
|
-
headers: {
|
|
395
|
-
[k: string]: string;
|
|
396
|
-
};
|
|
397
|
-
body: any;
|
|
398
|
-
}>;
|
|
399
362
|
paginate: ({ path, body, item, token: tokenKind, limit, }: {
|
|
400
363
|
path: string;
|
|
401
364
|
body?: Record<string, unknown>;
|
|
@@ -405,6 +368,7 @@ export declare const createSlack: import("frogbot").PieceFactory<{
|
|
|
405
368
|
}) => Promise<Record<string, unknown>[]>;
|
|
406
369
|
token: (kind?: import("./client.js").SlackToken) => string | undefined;
|
|
407
370
|
workspaceId: () => Promise<string>;
|
|
371
|
+
authorize: (headers: Headers) => void;
|
|
408
372
|
}, Record<string, unknown>[]> & {
|
|
409
373
|
slug: "searchMessages";
|
|
410
374
|
}) | (import("frogbot").PieceActionDefinition<z.ZodObject<{
|
|
@@ -418,19 +382,6 @@ export declare const createSlack: import("frogbot").PieceFactory<{
|
|
|
418
382
|
[x: string]: unknown;
|
|
419
383
|
ok: true;
|
|
420
384
|
}>;
|
|
421
|
-
raw: ({ path, method, body, headers, token: tokenKind, }: {
|
|
422
|
-
path: string;
|
|
423
|
-
method?: string;
|
|
424
|
-
body?: BodyInit | Record<string, unknown>;
|
|
425
|
-
headers?: HeadersInit;
|
|
426
|
-
token?: import("./client.js").SlackToken;
|
|
427
|
-
}) => Promise<{
|
|
428
|
-
status: number;
|
|
429
|
-
headers: {
|
|
430
|
-
[k: string]: string;
|
|
431
|
-
};
|
|
432
|
-
body: any;
|
|
433
|
-
}>;
|
|
434
385
|
paginate: ({ path, body, item, token: tokenKind, limit, }: {
|
|
435
386
|
path: string;
|
|
436
387
|
body?: Record<string, unknown>;
|
|
@@ -440,6 +391,7 @@ export declare const createSlack: import("frogbot").PieceFactory<{
|
|
|
440
391
|
}) => Promise<Record<string, unknown>[]>;
|
|
441
392
|
token: (kind?: import("./client.js").SlackToken) => string | undefined;
|
|
442
393
|
workspaceId: () => Promise<string>;
|
|
394
|
+
authorize: (headers: Headers) => void;
|
|
443
395
|
}, {
|
|
444
396
|
[x: string]: unknown;
|
|
445
397
|
ok: true;
|
|
@@ -454,19 +406,6 @@ export declare const createSlack: import("frogbot").PieceFactory<{
|
|
|
454
406
|
[x: string]: unknown;
|
|
455
407
|
ok: true;
|
|
456
408
|
}>;
|
|
457
|
-
raw: ({ path, method, body, headers, token: tokenKind, }: {
|
|
458
|
-
path: string;
|
|
459
|
-
method?: string;
|
|
460
|
-
body?: BodyInit | Record<string, unknown>;
|
|
461
|
-
headers?: HeadersInit;
|
|
462
|
-
token?: import("./client.js").SlackToken;
|
|
463
|
-
}) => Promise<{
|
|
464
|
-
status: number;
|
|
465
|
-
headers: {
|
|
466
|
-
[k: string]: string;
|
|
467
|
-
};
|
|
468
|
-
body: any;
|
|
469
|
-
}>;
|
|
470
409
|
paginate: ({ path, body, item, token: tokenKind, limit, }: {
|
|
471
410
|
path: string;
|
|
472
411
|
body?: Record<string, unknown>;
|
|
@@ -476,6 +415,7 @@ export declare const createSlack: import("frogbot").PieceFactory<{
|
|
|
476
415
|
}) => Promise<Record<string, unknown>[]>;
|
|
477
416
|
token: (kind?: import("./client.js").SlackToken) => string | undefined;
|
|
478
417
|
workspaceId: () => Promise<string>;
|
|
418
|
+
authorize: (headers: Headers) => void;
|
|
479
419
|
}, Record<string, unknown>> & {
|
|
480
420
|
slug: "findUserByHandle";
|
|
481
421
|
}) | (import("frogbot").PieceActionDefinition<z.ZodObject<{
|
|
@@ -489,19 +429,6 @@ export declare const createSlack: import("frogbot").PieceFactory<{
|
|
|
489
429
|
[x: string]: unknown;
|
|
490
430
|
ok: true;
|
|
491
431
|
}>;
|
|
492
|
-
raw: ({ path, method, body, headers, token: tokenKind, }: {
|
|
493
|
-
path: string;
|
|
494
|
-
method?: string;
|
|
495
|
-
body?: BodyInit | Record<string, unknown>;
|
|
496
|
-
headers?: HeadersInit;
|
|
497
|
-
token?: import("./client.js").SlackToken;
|
|
498
|
-
}) => Promise<{
|
|
499
|
-
status: number;
|
|
500
|
-
headers: {
|
|
501
|
-
[k: string]: string;
|
|
502
|
-
};
|
|
503
|
-
body: any;
|
|
504
|
-
}>;
|
|
505
432
|
paginate: ({ path, body, item, token: tokenKind, limit, }: {
|
|
506
433
|
path: string;
|
|
507
434
|
body?: Record<string, unknown>;
|
|
@@ -511,6 +438,7 @@ export declare const createSlack: import("frogbot").PieceFactory<{
|
|
|
511
438
|
}) => Promise<Record<string, unknown>[]>;
|
|
512
439
|
token: (kind?: import("./client.js").SlackToken) => string | undefined;
|
|
513
440
|
workspaceId: () => Promise<string>;
|
|
441
|
+
authorize: (headers: Headers) => void;
|
|
514
442
|
}, {
|
|
515
443
|
[x: string]: unknown;
|
|
516
444
|
ok: true;
|
|
@@ -526,19 +454,6 @@ export declare const createSlack: import("frogbot").PieceFactory<{
|
|
|
526
454
|
[x: string]: unknown;
|
|
527
455
|
ok: true;
|
|
528
456
|
}>;
|
|
529
|
-
raw: ({ path, method, body, headers, token: tokenKind, }: {
|
|
530
|
-
path: string;
|
|
531
|
-
method?: string;
|
|
532
|
-
body?: BodyInit | Record<string, unknown>;
|
|
533
|
-
headers?: HeadersInit;
|
|
534
|
-
token?: import("./client.js").SlackToken;
|
|
535
|
-
}) => Promise<{
|
|
536
|
-
status: number;
|
|
537
|
-
headers: {
|
|
538
|
-
[k: string]: string;
|
|
539
|
-
};
|
|
540
|
-
body: any;
|
|
541
|
-
}>;
|
|
542
457
|
paginate: ({ path, body, item, token: tokenKind, limit, }: {
|
|
543
458
|
path: string;
|
|
544
459
|
body?: Record<string, unknown>;
|
|
@@ -548,6 +463,7 @@ export declare const createSlack: import("frogbot").PieceFactory<{
|
|
|
548
463
|
}) => Promise<Record<string, unknown>[]>;
|
|
549
464
|
token: (kind?: import("./client.js").SlackToken) => string | undefined;
|
|
550
465
|
workspaceId: () => Promise<string>;
|
|
466
|
+
authorize: (headers: Headers) => void;
|
|
551
467
|
}, Record<string, unknown>[]> & {
|
|
552
468
|
slug: "listUsers";
|
|
553
469
|
}) | (import("frogbot").PieceActionDefinition<z.ZodObject<{
|
|
@@ -564,19 +480,6 @@ export declare const createSlack: import("frogbot").PieceFactory<{
|
|
|
564
480
|
[x: string]: unknown;
|
|
565
481
|
ok: true;
|
|
566
482
|
}>;
|
|
567
|
-
raw: ({ path, method, body, headers, token: tokenKind, }: {
|
|
568
|
-
path: string;
|
|
569
|
-
method?: string;
|
|
570
|
-
body?: BodyInit | Record<string, unknown>;
|
|
571
|
-
headers?: HeadersInit;
|
|
572
|
-
token?: import("./client.js").SlackToken;
|
|
573
|
-
}) => Promise<{
|
|
574
|
-
status: number;
|
|
575
|
-
headers: {
|
|
576
|
-
[k: string]: string;
|
|
577
|
-
};
|
|
578
|
-
body: any;
|
|
579
|
-
}>;
|
|
580
483
|
paginate: ({ path, body, item, token: tokenKind, limit, }: {
|
|
581
484
|
path: string;
|
|
582
485
|
body?: Record<string, unknown>;
|
|
@@ -586,6 +489,7 @@ export declare const createSlack: import("frogbot").PieceFactory<{
|
|
|
586
489
|
}) => Promise<Record<string, unknown>[]>;
|
|
587
490
|
token: (kind?: import("./client.js").SlackToken) => string | undefined;
|
|
588
491
|
workspaceId: () => Promise<string>;
|
|
492
|
+
authorize: (headers: Headers) => void;
|
|
589
493
|
}, {
|
|
590
494
|
[x: string]: unknown;
|
|
591
495
|
ok: true;
|
|
@@ -603,19 +507,6 @@ export declare const createSlack: import("frogbot").PieceFactory<{
|
|
|
603
507
|
[x: string]: unknown;
|
|
604
508
|
ok: true;
|
|
605
509
|
}>;
|
|
606
|
-
raw: ({ path, method, body, headers, token: tokenKind, }: {
|
|
607
|
-
path: string;
|
|
608
|
-
method?: string;
|
|
609
|
-
body?: BodyInit | Record<string, unknown>;
|
|
610
|
-
headers?: HeadersInit;
|
|
611
|
-
token?: import("./client.js").SlackToken;
|
|
612
|
-
}) => Promise<{
|
|
613
|
-
status: number;
|
|
614
|
-
headers: {
|
|
615
|
-
[k: string]: string;
|
|
616
|
-
};
|
|
617
|
-
body: any;
|
|
618
|
-
}>;
|
|
619
510
|
paginate: ({ path, body, item, token: tokenKind, limit, }: {
|
|
620
511
|
path: string;
|
|
621
512
|
body?: Record<string, unknown>;
|
|
@@ -625,6 +516,7 @@ export declare const createSlack: import("frogbot").PieceFactory<{
|
|
|
625
516
|
}) => Promise<Record<string, unknown>[]>;
|
|
626
517
|
token: (kind?: import("./client.js").SlackToken) => string | undefined;
|
|
627
518
|
workspaceId: () => Promise<string>;
|
|
519
|
+
authorize: (headers: Headers) => void;
|
|
628
520
|
}, {
|
|
629
521
|
[x: string]: unknown;
|
|
630
522
|
ok: true;
|
|
@@ -642,19 +534,6 @@ export declare const createSlack: import("frogbot").PieceFactory<{
|
|
|
642
534
|
[x: string]: unknown;
|
|
643
535
|
ok: true;
|
|
644
536
|
}>;
|
|
645
|
-
raw: ({ path, method, body, headers, token: tokenKind, }: {
|
|
646
|
-
path: string;
|
|
647
|
-
method?: string;
|
|
648
|
-
body?: BodyInit | Record<string, unknown>;
|
|
649
|
-
headers?: HeadersInit;
|
|
650
|
-
token?: import("./client.js").SlackToken;
|
|
651
|
-
}) => Promise<{
|
|
652
|
-
status: number;
|
|
653
|
-
headers: {
|
|
654
|
-
[k: string]: string;
|
|
655
|
-
};
|
|
656
|
-
body: any;
|
|
657
|
-
}>;
|
|
658
537
|
paginate: ({ path, body, item, token: tokenKind, limit, }: {
|
|
659
538
|
path: string;
|
|
660
539
|
body?: Record<string, unknown>;
|
|
@@ -664,6 +543,7 @@ export declare const createSlack: import("frogbot").PieceFactory<{
|
|
|
664
543
|
}) => Promise<Record<string, unknown>[]>;
|
|
665
544
|
token: (kind?: import("./client.js").SlackToken) => string | undefined;
|
|
666
545
|
workspaceId: () => Promise<string>;
|
|
546
|
+
authorize: (headers: Headers) => void;
|
|
667
547
|
}, {
|
|
668
548
|
[x: string]: unknown;
|
|
669
549
|
ok: true;
|
|
@@ -683,19 +563,6 @@ export declare const createSlack: import("frogbot").PieceFactory<{
|
|
|
683
563
|
[x: string]: unknown;
|
|
684
564
|
ok: true;
|
|
685
565
|
}>;
|
|
686
|
-
raw: ({ path, method, body, headers, token: tokenKind, }: {
|
|
687
|
-
path: string;
|
|
688
|
-
method?: string;
|
|
689
|
-
body?: BodyInit | Record<string, unknown>;
|
|
690
|
-
headers?: HeadersInit;
|
|
691
|
-
token?: import("./client.js").SlackToken;
|
|
692
|
-
}) => Promise<{
|
|
693
|
-
status: number;
|
|
694
|
-
headers: {
|
|
695
|
-
[k: string]: string;
|
|
696
|
-
};
|
|
697
|
-
body: any;
|
|
698
|
-
}>;
|
|
699
566
|
paginate: ({ path, body, item, token: tokenKind, limit, }: {
|
|
700
567
|
path: string;
|
|
701
568
|
body?: Record<string, unknown>;
|
|
@@ -705,6 +572,7 @@ export declare const createSlack: import("frogbot").PieceFactory<{
|
|
|
705
572
|
}) => Promise<Record<string, unknown>[]>;
|
|
706
573
|
token: (kind?: import("./client.js").SlackToken) => string | undefined;
|
|
707
574
|
workspaceId: () => Promise<string>;
|
|
575
|
+
authorize: (headers: Headers) => void;
|
|
708
576
|
}, {
|
|
709
577
|
[x: string]: unknown;
|
|
710
578
|
ok: true;
|
|
@@ -723,19 +591,6 @@ export declare const createSlack: import("frogbot").PieceFactory<{
|
|
|
723
591
|
[x: string]: unknown;
|
|
724
592
|
ok: true;
|
|
725
593
|
}>;
|
|
726
|
-
raw: ({ path, method, body, headers, token: tokenKind, }: {
|
|
727
|
-
path: string;
|
|
728
|
-
method?: string;
|
|
729
|
-
body?: BodyInit | Record<string, unknown>;
|
|
730
|
-
headers?: HeadersInit;
|
|
731
|
-
token?: import("./client.js").SlackToken;
|
|
732
|
-
}) => Promise<{
|
|
733
|
-
status: number;
|
|
734
|
-
headers: {
|
|
735
|
-
[k: string]: string;
|
|
736
|
-
};
|
|
737
|
-
body: any;
|
|
738
|
-
}>;
|
|
739
594
|
paginate: ({ path, body, item, token: tokenKind, limit, }: {
|
|
740
595
|
path: string;
|
|
741
596
|
body?: Record<string, unknown>;
|
|
@@ -745,6 +600,7 @@ export declare const createSlack: import("frogbot").PieceFactory<{
|
|
|
745
600
|
}) => Promise<Record<string, unknown>[]>;
|
|
746
601
|
token: (kind?: import("./client.js").SlackToken) => string | undefined;
|
|
747
602
|
workspaceId: () => Promise<string>;
|
|
603
|
+
authorize: (headers: Headers) => void;
|
|
748
604
|
}, Record<string, unknown>[]> & {
|
|
749
605
|
slug: "getChannelHistory";
|
|
750
606
|
}) | (import("frogbot").PieceActionDefinition<z.ZodObject<{
|
|
@@ -760,19 +616,6 @@ export declare const createSlack: import("frogbot").PieceFactory<{
|
|
|
760
616
|
[x: string]: unknown;
|
|
761
617
|
ok: true;
|
|
762
618
|
}>;
|
|
763
|
-
raw: ({ path, method, body, headers, token: tokenKind, }: {
|
|
764
|
-
path: string;
|
|
765
|
-
method?: string;
|
|
766
|
-
body?: BodyInit | Record<string, unknown>;
|
|
767
|
-
headers?: HeadersInit;
|
|
768
|
-
token?: import("./client.js").SlackToken;
|
|
769
|
-
}) => Promise<{
|
|
770
|
-
status: number;
|
|
771
|
-
headers: {
|
|
772
|
-
[k: string]: string;
|
|
773
|
-
};
|
|
774
|
-
body: any;
|
|
775
|
-
}>;
|
|
776
619
|
paginate: ({ path, body, item, token: tokenKind, limit, }: {
|
|
777
620
|
path: string;
|
|
778
621
|
body?: Record<string, unknown>;
|
|
@@ -782,6 +625,7 @@ export declare const createSlack: import("frogbot").PieceFactory<{
|
|
|
782
625
|
}) => Promise<Record<string, unknown>[]>;
|
|
783
626
|
token: (kind?: import("./client.js").SlackToken) => string | undefined;
|
|
784
627
|
workspaceId: () => Promise<string>;
|
|
628
|
+
authorize: (headers: Headers) => void;
|
|
785
629
|
}, {
|
|
786
630
|
[x: string]: unknown;
|
|
787
631
|
ok: true;
|
|
@@ -798,19 +642,6 @@ export declare const createSlack: import("frogbot").PieceFactory<{
|
|
|
798
642
|
[x: string]: unknown;
|
|
799
643
|
ok: true;
|
|
800
644
|
}>;
|
|
801
|
-
raw: ({ path, method, body, headers, token: tokenKind, }: {
|
|
802
|
-
path: string;
|
|
803
|
-
method?: string;
|
|
804
|
-
body?: BodyInit | Record<string, unknown>;
|
|
805
|
-
headers?: HeadersInit;
|
|
806
|
-
token?: import("./client.js").SlackToken;
|
|
807
|
-
}) => Promise<{
|
|
808
|
-
status: number;
|
|
809
|
-
headers: {
|
|
810
|
-
[k: string]: string;
|
|
811
|
-
};
|
|
812
|
-
body: any;
|
|
813
|
-
}>;
|
|
814
645
|
paginate: ({ path, body, item, token: tokenKind, limit, }: {
|
|
815
646
|
path: string;
|
|
816
647
|
body?: Record<string, unknown>;
|
|
@@ -820,6 +651,7 @@ export declare const createSlack: import("frogbot").PieceFactory<{
|
|
|
820
651
|
}) => Promise<Record<string, unknown>[]>;
|
|
821
652
|
token: (kind?: import("./client.js").SlackToken) => string | undefined;
|
|
822
653
|
workspaceId: () => Promise<string>;
|
|
654
|
+
authorize: (headers: Headers) => void;
|
|
823
655
|
}, {
|
|
824
656
|
text: string;
|
|
825
657
|
}> & {
|
|
@@ -834,19 +666,6 @@ export declare const createSlack: import("frogbot").PieceFactory<{
|
|
|
834
666
|
[x: string]: unknown;
|
|
835
667
|
ok: true;
|
|
836
668
|
}>;
|
|
837
|
-
raw: ({ path, method, body, headers, token: tokenKind, }: {
|
|
838
|
-
path: string;
|
|
839
|
-
method?: string;
|
|
840
|
-
body?: BodyInit | Record<string, unknown>;
|
|
841
|
-
headers?: HeadersInit;
|
|
842
|
-
token?: import("./client.js").SlackToken;
|
|
843
|
-
}) => Promise<{
|
|
844
|
-
status: number;
|
|
845
|
-
headers: {
|
|
846
|
-
[k: string]: string;
|
|
847
|
-
};
|
|
848
|
-
body: any;
|
|
849
|
-
}>;
|
|
850
669
|
paginate: ({ path, body, item, token: tokenKind, limit, }: {
|
|
851
670
|
path: string;
|
|
852
671
|
body?: Record<string, unknown>;
|
|
@@ -856,6 +675,7 @@ export declare const createSlack: import("frogbot").PieceFactory<{
|
|
|
856
675
|
}) => Promise<Record<string, unknown>[]>;
|
|
857
676
|
token: (kind?: import("./client.js").SlackToken) => string | undefined;
|
|
858
677
|
workspaceId: () => Promise<string>;
|
|
678
|
+
authorize: (headers: Headers) => void;
|
|
859
679
|
}, Record<string, unknown>[]> & {
|
|
860
680
|
slug: "listThreadMessages";
|
|
861
681
|
}) | (import("frogbot").PieceActionDefinition<z.ZodObject<{
|
|
@@ -870,19 +690,6 @@ export declare const createSlack: import("frogbot").PieceFactory<{
|
|
|
870
690
|
[x: string]: unknown;
|
|
871
691
|
ok: true;
|
|
872
692
|
}>;
|
|
873
|
-
raw: ({ path, method, body, headers, token: tokenKind, }: {
|
|
874
|
-
path: string;
|
|
875
|
-
method?: string;
|
|
876
|
-
body?: BodyInit | Record<string, unknown>;
|
|
877
|
-
headers?: HeadersInit;
|
|
878
|
-
token?: import("./client.js").SlackToken;
|
|
879
|
-
}) => Promise<{
|
|
880
|
-
status: number;
|
|
881
|
-
headers: {
|
|
882
|
-
[k: string]: string;
|
|
883
|
-
};
|
|
884
|
-
body: any;
|
|
885
|
-
}>;
|
|
886
693
|
paginate: ({ path, body, item, token: tokenKind, limit, }: {
|
|
887
694
|
path: string;
|
|
888
695
|
body?: Record<string, unknown>;
|
|
@@ -892,6 +699,7 @@ export declare const createSlack: import("frogbot").PieceFactory<{
|
|
|
892
699
|
}) => Promise<Record<string, unknown>[]>;
|
|
893
700
|
token: (kind?: import("./client.js").SlackToken) => string | undefined;
|
|
894
701
|
workspaceId: () => Promise<string>;
|
|
702
|
+
authorize: (headers: Headers) => void;
|
|
895
703
|
}, {
|
|
896
704
|
[x: string]: unknown;
|
|
897
705
|
ok: true;
|
|
@@ -909,19 +717,6 @@ export declare const createSlack: import("frogbot").PieceFactory<{
|
|
|
909
717
|
[x: string]: unknown;
|
|
910
718
|
ok: true;
|
|
911
719
|
}>;
|
|
912
|
-
raw: ({ path, method, body, headers, token: tokenKind, }: {
|
|
913
|
-
path: string;
|
|
914
|
-
method?: string;
|
|
915
|
-
body?: BodyInit | Record<string, unknown>;
|
|
916
|
-
headers?: HeadersInit;
|
|
917
|
-
token?: import("./client.js").SlackToken;
|
|
918
|
-
}) => Promise<{
|
|
919
|
-
status: number;
|
|
920
|
-
headers: {
|
|
921
|
-
[k: string]: string;
|
|
922
|
-
};
|
|
923
|
-
body: any;
|
|
924
|
-
}>;
|
|
925
720
|
paginate: ({ path, body, item, token: tokenKind, limit, }: {
|
|
926
721
|
path: string;
|
|
927
722
|
body?: Record<string, unknown>;
|
|
@@ -931,6 +726,7 @@ export declare const createSlack: import("frogbot").PieceFactory<{
|
|
|
931
726
|
}) => Promise<Record<string, unknown>[]>;
|
|
932
727
|
token: (kind?: import("./client.js").SlackToken) => string | undefined;
|
|
933
728
|
workspaceId: () => Promise<string>;
|
|
729
|
+
authorize: (headers: Headers) => void;
|
|
934
730
|
}, {
|
|
935
731
|
[x: string]: unknown;
|
|
936
732
|
ok: true;
|
|
@@ -948,19 +744,6 @@ export declare const createSlack: import("frogbot").PieceFactory<{
|
|
|
948
744
|
[x: string]: unknown;
|
|
949
745
|
ok: true;
|
|
950
746
|
}>;
|
|
951
|
-
raw: ({ path, method, body, headers, token: tokenKind, }: {
|
|
952
|
-
path: string;
|
|
953
|
-
method?: string;
|
|
954
|
-
body?: BodyInit | Record<string, unknown>;
|
|
955
|
-
headers?: HeadersInit;
|
|
956
|
-
token?: import("./client.js").SlackToken;
|
|
957
|
-
}) => Promise<{
|
|
958
|
-
status: number;
|
|
959
|
-
headers: {
|
|
960
|
-
[k: string]: string;
|
|
961
|
-
};
|
|
962
|
-
body: any;
|
|
963
|
-
}>;
|
|
964
747
|
paginate: ({ path, body, item, token: tokenKind, limit, }: {
|
|
965
748
|
path: string;
|
|
966
749
|
body?: Record<string, unknown>;
|
|
@@ -970,6 +753,7 @@ export declare const createSlack: import("frogbot").PieceFactory<{
|
|
|
970
753
|
}) => Promise<Record<string, unknown>[]>;
|
|
971
754
|
token: (kind?: import("./client.js").SlackToken) => string | undefined;
|
|
972
755
|
workspaceId: () => Promise<string>;
|
|
756
|
+
authorize: (headers: Headers) => void;
|
|
973
757
|
}, {
|
|
974
758
|
[x: string]: unknown;
|
|
975
759
|
ok: true;
|
|
@@ -984,19 +768,6 @@ export declare const createSlack: import("frogbot").PieceFactory<{
|
|
|
984
768
|
[x: string]: unknown;
|
|
985
769
|
ok: true;
|
|
986
770
|
}>;
|
|
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
771
|
paginate: ({ path, body, item, token: tokenKind, limit, }: {
|
|
1001
772
|
path: string;
|
|
1002
773
|
body?: Record<string, unknown>;
|
|
@@ -1006,6 +777,7 @@ export declare const createSlack: import("frogbot").PieceFactory<{
|
|
|
1006
777
|
}) => Promise<Record<string, unknown>[]>;
|
|
1007
778
|
token: (kind?: import("./client.js").SlackToken) => string | undefined;
|
|
1008
779
|
workspaceId: () => Promise<string>;
|
|
780
|
+
authorize: (headers: Headers) => void;
|
|
1009
781
|
}, Record<string, unknown>> & {
|
|
1010
782
|
slug: "getUserGroupByHandle";
|
|
1011
783
|
}) | (import("frogbot").PieceActionDefinition<z.ZodObject<{
|
|
@@ -1021,19 +793,6 @@ export declare const createSlack: import("frogbot").PieceFactory<{
|
|
|
1021
793
|
[x: string]: unknown;
|
|
1022
794
|
ok: true;
|
|
1023
795
|
}>;
|
|
1024
|
-
raw: ({ path, method, body, headers, token: tokenKind, }: {
|
|
1025
|
-
path: string;
|
|
1026
|
-
method?: string;
|
|
1027
|
-
body?: BodyInit | Record<string, unknown>;
|
|
1028
|
-
headers?: HeadersInit;
|
|
1029
|
-
token?: import("./client.js").SlackToken;
|
|
1030
|
-
}) => Promise<{
|
|
1031
|
-
status: number;
|
|
1032
|
-
headers: {
|
|
1033
|
-
[k: string]: string;
|
|
1034
|
-
};
|
|
1035
|
-
body: any;
|
|
1036
|
-
}>;
|
|
1037
796
|
paginate: ({ path, body, item, token: tokenKind, limit, }: {
|
|
1038
797
|
path: string;
|
|
1039
798
|
body?: Record<string, unknown>;
|
|
@@ -1043,63 +802,12 @@ export declare const createSlack: import("frogbot").PieceFactory<{
|
|
|
1043
802
|
}) => Promise<Record<string, unknown>[]>;
|
|
1044
803
|
token: (kind?: import("./client.js").SlackToken) => string | undefined;
|
|
1045
804
|
workspaceId: () => Promise<string>;
|
|
805
|
+
authorize: (headers: Headers) => void;
|
|
1046
806
|
}, {
|
|
1047
807
|
[x: string]: unknown;
|
|
1048
808
|
ok: true;
|
|
1049
809
|
}> & {
|
|
1050
810
|
slug: "updateUserGroupMembers";
|
|
1051
|
-
}) | (import("frogbot").PieceActionDefinition<z.ZodObject<{
|
|
1052
|
-
method: z.ZodEnum<{
|
|
1053
|
-
POST: "POST";
|
|
1054
|
-
GET: "GET";
|
|
1055
|
-
PUT: "PUT";
|
|
1056
|
-
PATCH: "PATCH";
|
|
1057
|
-
DELETE: "DELETE";
|
|
1058
|
-
}>;
|
|
1059
|
-
path: z.ZodString;
|
|
1060
|
-
headers: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1061
|
-
queryParams: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>>;
|
|
1062
|
-
body: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1063
|
-
useUserToken: z.ZodDefault<z.ZodBoolean>;
|
|
1064
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
1065
|
-
status: z.ZodNumber;
|
|
1066
|
-
headers: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
1067
|
-
body: z.ZodUnknown;
|
|
1068
|
-
}, z.core.$strip>, {
|
|
1069
|
-
signingSecret?: string | undefined;
|
|
1070
|
-
}, {
|
|
1071
|
-
request: (path: string, body?: Record<string, unknown>, tokenKind?: import("./client.js").SlackToken) => Promise<{
|
|
1072
|
-
[x: string]: unknown;
|
|
1073
|
-
ok: true;
|
|
1074
|
-
}>;
|
|
1075
|
-
raw: ({ path, method, body, headers, token: tokenKind, }: {
|
|
1076
|
-
path: string;
|
|
1077
|
-
method?: string;
|
|
1078
|
-
body?: BodyInit | Record<string, unknown>;
|
|
1079
|
-
headers?: HeadersInit;
|
|
1080
|
-
token?: import("./client.js").SlackToken;
|
|
1081
|
-
}) => Promise<{
|
|
1082
|
-
status: number;
|
|
1083
|
-
headers: {
|
|
1084
|
-
[k: string]: string;
|
|
1085
|
-
};
|
|
1086
|
-
body: any;
|
|
1087
|
-
}>;
|
|
1088
|
-
paginate: ({ path, body, item, token: tokenKind, limit, }: {
|
|
1089
|
-
path: string;
|
|
1090
|
-
body?: Record<string, unknown>;
|
|
1091
|
-
item: string;
|
|
1092
|
-
token?: import("./client.js").SlackToken;
|
|
1093
|
-
limit?: number;
|
|
1094
|
-
}) => Promise<Record<string, unknown>[]>;
|
|
1095
|
-
token: (kind?: import("./client.js").SlackToken) => string | undefined;
|
|
1096
|
-
workspaceId: () => Promise<string>;
|
|
1097
|
-
}, {
|
|
1098
|
-
status: number;
|
|
1099
|
-
headers: Record<string, string>;
|
|
1100
|
-
body: unknown;
|
|
1101
|
-
}> & {
|
|
1102
|
-
slug: "customApiCall";
|
|
1103
811
|
}))[];
|
|
1104
812
|
readonly triggers: (({
|
|
1105
813
|
slug: string;
|
|
@@ -1122,19 +830,6 @@ export declare const createSlack: import("frogbot").PieceFactory<{
|
|
|
1122
830
|
[x: string]: unknown;
|
|
1123
831
|
ok: true;
|
|
1124
832
|
}>;
|
|
1125
|
-
raw: ({ path, method, body, headers, token: tokenKind, }: {
|
|
1126
|
-
path: string;
|
|
1127
|
-
method?: string;
|
|
1128
|
-
body?: BodyInit | Record<string, unknown>;
|
|
1129
|
-
headers?: HeadersInit;
|
|
1130
|
-
token?: import("./client.js").SlackToken;
|
|
1131
|
-
}) => Promise<{
|
|
1132
|
-
status: number;
|
|
1133
|
-
headers: {
|
|
1134
|
-
[k: string]: string;
|
|
1135
|
-
};
|
|
1136
|
-
body: any;
|
|
1137
|
-
}>;
|
|
1138
833
|
paginate: ({ path, body, item, token: tokenKind, limit, }: {
|
|
1139
834
|
path: string;
|
|
1140
835
|
body?: Record<string, unknown>;
|
|
@@ -1144,6 +839,7 @@ export declare const createSlack: import("frogbot").PieceFactory<{
|
|
|
1144
839
|
}) => Promise<Record<string, unknown>[]>;
|
|
1145
840
|
token: (kind?: import("./client.js").SlackToken) => string | undefined;
|
|
1146
841
|
workspaceId: () => Promise<string>;
|
|
842
|
+
authorize: (headers: Headers) => void;
|
|
1147
843
|
}>): Promise<import("frogbot").TriggerEvent<Record<string, unknown>>[]>;
|
|
1148
844
|
} & {
|
|
1149
845
|
slug: "messageCreated";
|
|
@@ -1170,19 +866,6 @@ export declare const createSlack: import("frogbot").PieceFactory<{
|
|
|
1170
866
|
[x: string]: unknown;
|
|
1171
867
|
ok: true;
|
|
1172
868
|
}>;
|
|
1173
|
-
raw: ({ path, method, body, headers, token: tokenKind, }: {
|
|
1174
|
-
path: string;
|
|
1175
|
-
method?: string;
|
|
1176
|
-
body?: BodyInit | Record<string, unknown>;
|
|
1177
|
-
headers?: HeadersInit;
|
|
1178
|
-
token?: import("./client.js").SlackToken;
|
|
1179
|
-
}) => Promise<{
|
|
1180
|
-
status: number;
|
|
1181
|
-
headers: {
|
|
1182
|
-
[k: string]: string;
|
|
1183
|
-
};
|
|
1184
|
-
body: any;
|
|
1185
|
-
}>;
|
|
1186
869
|
paginate: ({ path, body, item, token: tokenKind, limit, }: {
|
|
1187
870
|
path: string;
|
|
1188
871
|
body?: Record<string, unknown>;
|
|
@@ -1192,6 +875,7 @@ export declare const createSlack: import("frogbot").PieceFactory<{
|
|
|
1192
875
|
}) => Promise<Record<string, unknown>[]>;
|
|
1193
876
|
token: (kind?: import("./client.js").SlackToken) => string | undefined;
|
|
1194
877
|
workspaceId: () => Promise<string>;
|
|
878
|
+
authorize: (headers: Headers) => void;
|
|
1195
879
|
}>): Promise<import("frogbot").TriggerEvent<Record<string, unknown>>[]>;
|
|
1196
880
|
} & {
|
|
1197
881
|
slug: "channelMessageCreated";
|
|
@@ -1218,19 +902,6 @@ export declare const createSlack: import("frogbot").PieceFactory<{
|
|
|
1218
902
|
[x: string]: unknown;
|
|
1219
903
|
ok: true;
|
|
1220
904
|
}>;
|
|
1221
|
-
raw: ({ path, method, body, headers, token: tokenKind, }: {
|
|
1222
|
-
path: string;
|
|
1223
|
-
method?: string;
|
|
1224
|
-
body?: BodyInit | Record<string, unknown>;
|
|
1225
|
-
headers?: HeadersInit;
|
|
1226
|
-
token?: import("./client.js").SlackToken;
|
|
1227
|
-
}) => Promise<{
|
|
1228
|
-
status: number;
|
|
1229
|
-
headers: {
|
|
1230
|
-
[k: string]: string;
|
|
1231
|
-
};
|
|
1232
|
-
body: any;
|
|
1233
|
-
}>;
|
|
1234
905
|
paginate: ({ path, body, item, token: tokenKind, limit, }: {
|
|
1235
906
|
path: string;
|
|
1236
907
|
body?: Record<string, unknown>;
|
|
@@ -1240,6 +911,7 @@ export declare const createSlack: import("frogbot").PieceFactory<{
|
|
|
1240
911
|
}) => Promise<Record<string, unknown>[]>;
|
|
1241
912
|
token: (kind?: import("./client.js").SlackToken) => string | undefined;
|
|
1242
913
|
workspaceId: () => Promise<string>;
|
|
914
|
+
authorize: (headers: Headers) => void;
|
|
1243
915
|
}>): Promise<import("frogbot").TriggerEvent<Record<string, unknown>>[]>;
|
|
1244
916
|
} & {
|
|
1245
917
|
slug: "directMessageCreated";
|
|
@@ -1272,19 +944,6 @@ export declare const createSlack: import("frogbot").PieceFactory<{
|
|
|
1272
944
|
[x: string]: unknown;
|
|
1273
945
|
ok: true;
|
|
1274
946
|
}>;
|
|
1275
|
-
raw: ({ path, method, body, headers, token: tokenKind, }: {
|
|
1276
|
-
path: string;
|
|
1277
|
-
method?: string;
|
|
1278
|
-
body?: BodyInit | Record<string, unknown>;
|
|
1279
|
-
headers?: HeadersInit;
|
|
1280
|
-
token?: import("./client.js").SlackToken;
|
|
1281
|
-
}) => Promise<{
|
|
1282
|
-
status: number;
|
|
1283
|
-
headers: {
|
|
1284
|
-
[k: string]: string;
|
|
1285
|
-
};
|
|
1286
|
-
body: any;
|
|
1287
|
-
}>;
|
|
1288
947
|
paginate: ({ path, body, item, token: tokenKind, limit, }: {
|
|
1289
948
|
path: string;
|
|
1290
949
|
body?: Record<string, unknown>;
|
|
@@ -1294,6 +953,7 @@ export declare const createSlack: import("frogbot").PieceFactory<{
|
|
|
1294
953
|
}) => Promise<Record<string, unknown>[]>;
|
|
1295
954
|
token: (kind?: import("./client.js").SlackToken) => string | undefined;
|
|
1296
955
|
workspaceId: () => Promise<string>;
|
|
956
|
+
authorize: (headers: Headers) => void;
|
|
1297
957
|
}>): Promise<import("frogbot").TriggerEvent<Record<string, unknown>>[]>;
|
|
1298
958
|
} & {
|
|
1299
959
|
slug: "channelMentionCreated";
|
|
@@ -1302,9 +962,9 @@ export declare const createSlack: import("frogbot").PieceFactory<{
|
|
|
1302
962
|
label?: string;
|
|
1303
963
|
description: string;
|
|
1304
964
|
input: z.ZodObject<{
|
|
1305
|
-
|
|
1306
|
-
|
|
1307
|
-
|
|
965
|
+
ignoreSelfMessages: z.ZodDefault<z.ZodBoolean>;
|
|
966
|
+
ignoreBots: z.ZodDefault<z.ZodBoolean>;
|
|
967
|
+
user: z.ZodString;
|
|
1308
968
|
}, z.core.$strip>;
|
|
1309
969
|
output?: z.ZodRecord<z.ZodString, z.ZodUnknown> | undefined;
|
|
1310
970
|
sample?: Record<string, unknown> | undefined;
|
|
@@ -1312,9 +972,9 @@ export declare const createSlack: import("frogbot").PieceFactory<{
|
|
|
1312
972
|
type: "app";
|
|
1313
973
|
event: string;
|
|
1314
974
|
run(args: import("frogbot").PieceRunArgs<{
|
|
1315
|
-
|
|
1316
|
-
|
|
1317
|
-
user
|
|
975
|
+
ignoreSelfMessages: boolean;
|
|
976
|
+
ignoreBots: boolean;
|
|
977
|
+
user: string;
|
|
1318
978
|
}, {
|
|
1319
979
|
signingSecret?: string | undefined;
|
|
1320
980
|
}, {
|
|
@@ -1322,19 +982,6 @@ export declare const createSlack: import("frogbot").PieceFactory<{
|
|
|
1322
982
|
[x: string]: unknown;
|
|
1323
983
|
ok: true;
|
|
1324
984
|
}>;
|
|
1325
|
-
raw: ({ path, method, body, headers, token: tokenKind, }: {
|
|
1326
|
-
path: string;
|
|
1327
|
-
method?: string;
|
|
1328
|
-
body?: BodyInit | Record<string, unknown>;
|
|
1329
|
-
headers?: HeadersInit;
|
|
1330
|
-
token?: import("./client.js").SlackToken;
|
|
1331
|
-
}) => Promise<{
|
|
1332
|
-
status: number;
|
|
1333
|
-
headers: {
|
|
1334
|
-
[k: string]: string;
|
|
1335
|
-
};
|
|
1336
|
-
body: any;
|
|
1337
|
-
}>;
|
|
1338
985
|
paginate: ({ path, body, item, token: tokenKind, limit, }: {
|
|
1339
986
|
path: string;
|
|
1340
987
|
body?: Record<string, unknown>;
|
|
@@ -1344,9 +991,10 @@ export declare const createSlack: import("frogbot").PieceFactory<{
|
|
|
1344
991
|
}) => Promise<Record<string, unknown>[]>;
|
|
1345
992
|
token: (kind?: import("./client.js").SlackToken) => string | undefined;
|
|
1346
993
|
workspaceId: () => Promise<string>;
|
|
994
|
+
authorize: (headers: Headers) => void;
|
|
1347
995
|
}>): Promise<import("frogbot").TriggerEvent<Record<string, unknown>>[]>;
|
|
1348
996
|
} & {
|
|
1349
|
-
slug: "
|
|
997
|
+
slug: "directMentionCreated";
|
|
1350
998
|
}) | ({
|
|
1351
999
|
slug: string;
|
|
1352
1000
|
label?: string;
|
|
@@ -1372,19 +1020,6 @@ export declare const createSlack: import("frogbot").PieceFactory<{
|
|
|
1372
1020
|
[x: string]: unknown;
|
|
1373
1021
|
ok: true;
|
|
1374
1022
|
}>;
|
|
1375
|
-
raw: ({ path, method, body, headers, token: tokenKind, }: {
|
|
1376
|
-
path: string;
|
|
1377
|
-
method?: string;
|
|
1378
|
-
body?: BodyInit | Record<string, unknown>;
|
|
1379
|
-
headers?: HeadersInit;
|
|
1380
|
-
token?: import("./client.js").SlackToken;
|
|
1381
|
-
}) => Promise<{
|
|
1382
|
-
status: number;
|
|
1383
|
-
headers: {
|
|
1384
|
-
[k: string]: string;
|
|
1385
|
-
};
|
|
1386
|
-
body: any;
|
|
1387
|
-
}>;
|
|
1388
1023
|
paginate: ({ path, body, item, token: tokenKind, limit, }: {
|
|
1389
1024
|
path: string;
|
|
1390
1025
|
body?: Record<string, unknown>;
|
|
@@ -1394,39 +1029,35 @@ export declare const createSlack: import("frogbot").PieceFactory<{
|
|
|
1394
1029
|
}) => Promise<Record<string, unknown>[]>;
|
|
1395
1030
|
token: (kind?: import("./client.js").SlackToken) => string | undefined;
|
|
1396
1031
|
workspaceId: () => Promise<string>;
|
|
1032
|
+
authorize: (headers: Headers) => void;
|
|
1397
1033
|
}>): Promise<import("frogbot").TriggerEvent<Record<string, unknown>>[]>;
|
|
1398
1034
|
} & {
|
|
1399
|
-
slug: "
|
|
1035
|
+
slug: "reactionAdded";
|
|
1400
1036
|
}) | ({
|
|
1401
1037
|
slug: string;
|
|
1402
1038
|
label?: string;
|
|
1403
1039
|
description: string;
|
|
1404
|
-
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>;
|
|
1405
1045
|
output?: z.ZodRecord<z.ZodString, z.ZodUnknown> | undefined;
|
|
1406
1046
|
sample?: Record<string, unknown> | undefined;
|
|
1407
1047
|
} & {
|
|
1408
1048
|
type: "app";
|
|
1409
1049
|
event: string;
|
|
1410
|
-
run(args: import("frogbot").PieceRunArgs<
|
|
1050
|
+
run(args: import("frogbot").PieceRunArgs<{
|
|
1051
|
+
emojis: string[];
|
|
1052
|
+
channels: string[];
|
|
1053
|
+
user?: string | undefined;
|
|
1054
|
+
}, {
|
|
1411
1055
|
signingSecret?: string | undefined;
|
|
1412
1056
|
}, {
|
|
1413
1057
|
request: (path: string, body?: Record<string, unknown>, tokenKind?: import("./client.js").SlackToken) => Promise<{
|
|
1414
1058
|
[x: string]: unknown;
|
|
1415
1059
|
ok: true;
|
|
1416
1060
|
}>;
|
|
1417
|
-
raw: ({ path, method, body, headers, token: tokenKind, }: {
|
|
1418
|
-
path: string;
|
|
1419
|
-
method?: string;
|
|
1420
|
-
body?: BodyInit | Record<string, unknown>;
|
|
1421
|
-
headers?: HeadersInit;
|
|
1422
|
-
token?: import("./client.js").SlackToken;
|
|
1423
|
-
}) => Promise<{
|
|
1424
|
-
status: number;
|
|
1425
|
-
headers: {
|
|
1426
|
-
[k: string]: string;
|
|
1427
|
-
};
|
|
1428
|
-
body: any;
|
|
1429
|
-
}>;
|
|
1430
1061
|
paginate: ({ path, body, item, token: tokenKind, limit, }: {
|
|
1431
1062
|
path: string;
|
|
1432
1063
|
body?: Record<string, unknown>;
|
|
@@ -1436,49 +1067,27 @@ export declare const createSlack: import("frogbot").PieceFactory<{
|
|
|
1436
1067
|
}) => Promise<Record<string, unknown>[]>;
|
|
1437
1068
|
token: (kind?: import("./client.js").SlackToken) => string | undefined;
|
|
1438
1069
|
workspaceId: () => Promise<string>;
|
|
1070
|
+
authorize: (headers: Headers) => void;
|
|
1439
1071
|
}>): Promise<import("frogbot").TriggerEvent<Record<string, unknown>>[]>;
|
|
1440
1072
|
} & {
|
|
1441
|
-
slug: "
|
|
1073
|
+
slug: "reactionRemoved";
|
|
1442
1074
|
}) | ({
|
|
1443
1075
|
slug: string;
|
|
1444
1076
|
label?: string;
|
|
1445
1077
|
description: string;
|
|
1446
|
-
input: z.ZodObject<{
|
|
1447
|
-
user: z.ZodString;
|
|
1448
|
-
commands: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
1449
|
-
channels: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
1450
|
-
ignoreBots: z.ZodDefault<z.ZodBoolean>;
|
|
1451
|
-
}, z.core.$strip>;
|
|
1078
|
+
input: z.ZodObject<{}, z.core.$strip>;
|
|
1452
1079
|
output?: z.ZodRecord<z.ZodString, z.ZodUnknown> | undefined;
|
|
1453
1080
|
sample?: Record<string, unknown> | undefined;
|
|
1454
1081
|
} & {
|
|
1455
1082
|
type: "app";
|
|
1456
1083
|
event: string;
|
|
1457
|
-
run(args: import("frogbot").PieceRunArgs<{
|
|
1458
|
-
user: string;
|
|
1459
|
-
commands: string[];
|
|
1460
|
-
channels: string[];
|
|
1461
|
-
ignoreBots: boolean;
|
|
1462
|
-
}, {
|
|
1084
|
+
run(args: import("frogbot").PieceRunArgs<Record<string, never>, {
|
|
1463
1085
|
signingSecret?: string | undefined;
|
|
1464
1086
|
}, {
|
|
1465
1087
|
request: (path: string, body?: Record<string, unknown>, tokenKind?: import("./client.js").SlackToken) => Promise<{
|
|
1466
1088
|
[x: string]: unknown;
|
|
1467
1089
|
ok: true;
|
|
1468
1090
|
}>;
|
|
1469
|
-
raw: ({ path, method, body, headers, token: tokenKind, }: {
|
|
1470
|
-
path: string;
|
|
1471
|
-
method?: string;
|
|
1472
|
-
body?: BodyInit | Record<string, unknown>;
|
|
1473
|
-
headers?: HeadersInit;
|
|
1474
|
-
token?: import("./client.js").SlackToken;
|
|
1475
|
-
}) => Promise<{
|
|
1476
|
-
status: number;
|
|
1477
|
-
headers: {
|
|
1478
|
-
[k: string]: string;
|
|
1479
|
-
};
|
|
1480
|
-
body: any;
|
|
1481
|
-
}>;
|
|
1482
1091
|
paginate: ({ path, body, item, token: tokenKind, limit, }: {
|
|
1483
1092
|
path: string;
|
|
1484
1093
|
body?: Record<string, unknown>;
|
|
@@ -1488,17 +1097,19 @@ export declare const createSlack: import("frogbot").PieceFactory<{
|
|
|
1488
1097
|
}) => Promise<Record<string, unknown>[]>;
|
|
1489
1098
|
token: (kind?: import("./client.js").SlackToken) => string | undefined;
|
|
1490
1099
|
workspaceId: () => Promise<string>;
|
|
1100
|
+
authorize: (headers: Headers) => void;
|
|
1491
1101
|
}>): Promise<import("frogbot").TriggerEvent<Record<string, unknown>>[]>;
|
|
1492
1102
|
} & {
|
|
1493
|
-
slug: "
|
|
1103
|
+
slug: "channelCreated";
|
|
1494
1104
|
}) | ({
|
|
1495
1105
|
slug: string;
|
|
1496
1106
|
label?: string;
|
|
1497
1107
|
description: string;
|
|
1498
1108
|
input: z.ZodObject<{
|
|
1499
|
-
ignoreSelfMessages: z.ZodDefault<z.ZodBoolean>;
|
|
1500
|
-
ignoreBots: z.ZodDefault<z.ZodBoolean>;
|
|
1501
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>;
|
|
1502
1113
|
}, z.core.$strip>;
|
|
1503
1114
|
output?: z.ZodRecord<z.ZodString, z.ZodUnknown> | undefined;
|
|
1504
1115
|
sample?: Record<string, unknown> | undefined;
|
|
@@ -1506,9 +1117,10 @@ export declare const createSlack: import("frogbot").PieceFactory<{
|
|
|
1506
1117
|
type: "app";
|
|
1507
1118
|
event: string;
|
|
1508
1119
|
run(args: import("frogbot").PieceRunArgs<{
|
|
1509
|
-
ignoreSelfMessages: boolean;
|
|
1510
|
-
ignoreBots: boolean;
|
|
1511
1120
|
user: string;
|
|
1121
|
+
commands: string[];
|
|
1122
|
+
channels: string[];
|
|
1123
|
+
ignoreBots: boolean;
|
|
1512
1124
|
}, {
|
|
1513
1125
|
signingSecret?: string | undefined;
|
|
1514
1126
|
}, {
|
|
@@ -1516,19 +1128,6 @@ export declare const createSlack: import("frogbot").PieceFactory<{
|
|
|
1516
1128
|
[x: string]: unknown;
|
|
1517
1129
|
ok: true;
|
|
1518
1130
|
}>;
|
|
1519
|
-
raw: ({ path, method, body, headers, token: tokenKind, }: {
|
|
1520
|
-
path: string;
|
|
1521
|
-
method?: string;
|
|
1522
|
-
body?: BodyInit | Record<string, unknown>;
|
|
1523
|
-
headers?: HeadersInit;
|
|
1524
|
-
token?: import("./client.js").SlackToken;
|
|
1525
|
-
}) => Promise<{
|
|
1526
|
-
status: number;
|
|
1527
|
-
headers: {
|
|
1528
|
-
[k: string]: string;
|
|
1529
|
-
};
|
|
1530
|
-
body: any;
|
|
1531
|
-
}>;
|
|
1532
1131
|
paginate: ({ path, body, item, token: tokenKind, limit, }: {
|
|
1533
1132
|
path: string;
|
|
1534
1133
|
body?: Record<string, unknown>;
|
|
@@ -1538,17 +1137,18 @@ export declare const createSlack: import("frogbot").PieceFactory<{
|
|
|
1538
1137
|
}) => Promise<Record<string, unknown>[]>;
|
|
1539
1138
|
token: (kind?: import("./client.js").SlackToken) => string | undefined;
|
|
1540
1139
|
workspaceId: () => Promise<string>;
|
|
1140
|
+
authorize: (headers: Headers) => void;
|
|
1541
1141
|
}>): Promise<import("frogbot").TriggerEvent<Record<string, unknown>>[]>;
|
|
1542
1142
|
} & {
|
|
1543
|
-
slug: "
|
|
1143
|
+
slug: "channelCommandCreated";
|
|
1544
1144
|
}) | ({
|
|
1545
1145
|
slug: string;
|
|
1546
1146
|
label?: string;
|
|
1547
1147
|
description: string;
|
|
1548
1148
|
input: z.ZodObject<{
|
|
1149
|
+
commands: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
1549
1150
|
user: z.ZodString;
|
|
1550
1151
|
ignoreBots: z.ZodDefault<z.ZodBoolean>;
|
|
1551
|
-
commands: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
1552
1152
|
ignoreSelfMessages: z.ZodDefault<z.ZodBoolean>;
|
|
1553
1153
|
}, z.core.$strip>;
|
|
1554
1154
|
output?: z.ZodRecord<z.ZodString, z.ZodUnknown> | undefined;
|
|
@@ -1557,9 +1157,9 @@ export declare const createSlack: import("frogbot").PieceFactory<{
|
|
|
1557
1157
|
type: "app";
|
|
1558
1158
|
event: string;
|
|
1559
1159
|
run(args: import("frogbot").PieceRunArgs<{
|
|
1160
|
+
commands: string[];
|
|
1560
1161
|
user: string;
|
|
1561
1162
|
ignoreBots: boolean;
|
|
1562
|
-
commands: string[];
|
|
1563
1163
|
ignoreSelfMessages: boolean;
|
|
1564
1164
|
}, {
|
|
1565
1165
|
signingSecret?: string | undefined;
|
|
@@ -1568,19 +1168,6 @@ export declare const createSlack: import("frogbot").PieceFactory<{
|
|
|
1568
1168
|
[x: string]: unknown;
|
|
1569
1169
|
ok: true;
|
|
1570
1170
|
}>;
|
|
1571
|
-
raw: ({ path, method, body, headers, token: tokenKind, }: {
|
|
1572
|
-
path: string;
|
|
1573
|
-
method?: string;
|
|
1574
|
-
body?: BodyInit | Record<string, unknown>;
|
|
1575
|
-
headers?: HeadersInit;
|
|
1576
|
-
token?: import("./client.js").SlackToken;
|
|
1577
|
-
}) => Promise<{
|
|
1578
|
-
status: number;
|
|
1579
|
-
headers: {
|
|
1580
|
-
[k: string]: string;
|
|
1581
|
-
};
|
|
1582
|
-
body: any;
|
|
1583
|
-
}>;
|
|
1584
1171
|
paginate: ({ path, body, item, token: tokenKind, limit, }: {
|
|
1585
1172
|
path: string;
|
|
1586
1173
|
body?: Record<string, unknown>;
|
|
@@ -1590,6 +1177,7 @@ export declare const createSlack: import("frogbot").PieceFactory<{
|
|
|
1590
1177
|
}) => Promise<Record<string, unknown>[]>;
|
|
1591
1178
|
token: (kind?: import("./client.js").SlackToken) => string | undefined;
|
|
1592
1179
|
workspaceId: () => Promise<string>;
|
|
1180
|
+
authorize: (headers: Headers) => void;
|
|
1593
1181
|
}>): Promise<import("frogbot").TriggerEvent<Record<string, unknown>>[]>;
|
|
1594
1182
|
} & {
|
|
1595
1183
|
slug: "directCommandCreated";
|
|
@@ -1610,19 +1198,6 @@ export declare const createSlack: import("frogbot").PieceFactory<{
|
|
|
1610
1198
|
[x: string]: unknown;
|
|
1611
1199
|
ok: true;
|
|
1612
1200
|
}>;
|
|
1613
|
-
raw: ({ path, method, body, headers, token: tokenKind, }: {
|
|
1614
|
-
path: string;
|
|
1615
|
-
method?: string;
|
|
1616
|
-
body?: BodyInit | Record<string, unknown>;
|
|
1617
|
-
headers?: HeadersInit;
|
|
1618
|
-
token?: import("./client.js").SlackToken;
|
|
1619
|
-
}) => Promise<{
|
|
1620
|
-
status: number;
|
|
1621
|
-
headers: {
|
|
1622
|
-
[k: string]: string;
|
|
1623
|
-
};
|
|
1624
|
-
body: any;
|
|
1625
|
-
}>;
|
|
1626
1201
|
paginate: ({ path, body, item, token: tokenKind, limit, }: {
|
|
1627
1202
|
path: string;
|
|
1628
1203
|
body?: Record<string, unknown>;
|
|
@@ -1632,6 +1207,7 @@ export declare const createSlack: import("frogbot").PieceFactory<{
|
|
|
1632
1207
|
}) => Promise<Record<string, unknown>[]>;
|
|
1633
1208
|
token: (kind?: import("./client.js").SlackToken) => string | undefined;
|
|
1634
1209
|
workspaceId: () => Promise<string>;
|
|
1210
|
+
authorize: (headers: Headers) => void;
|
|
1635
1211
|
}>): Promise<import("frogbot").TriggerEvent<Record<string, unknown>>[]>;
|
|
1636
1212
|
} & {
|
|
1637
1213
|
slug: "userJoined";
|
|
@@ -1652,19 +1228,6 @@ export declare const createSlack: import("frogbot").PieceFactory<{
|
|
|
1652
1228
|
[x: string]: unknown;
|
|
1653
1229
|
ok: true;
|
|
1654
1230
|
}>;
|
|
1655
|
-
raw: ({ path, method, body, headers, token: tokenKind, }: {
|
|
1656
|
-
path: string;
|
|
1657
|
-
method?: string;
|
|
1658
|
-
body?: BodyInit | Record<string, unknown>;
|
|
1659
|
-
headers?: HeadersInit;
|
|
1660
|
-
token?: import("./client.js").SlackToken;
|
|
1661
|
-
}) => Promise<{
|
|
1662
|
-
status: number;
|
|
1663
|
-
headers: {
|
|
1664
|
-
[k: string]: string;
|
|
1665
|
-
};
|
|
1666
|
-
body: any;
|
|
1667
|
-
}>;
|
|
1668
1231
|
paginate: ({ path, body, item, token: tokenKind, limit, }: {
|
|
1669
1232
|
path: string;
|
|
1670
1233
|
body?: Record<string, unknown>;
|
|
@@ -1674,6 +1237,7 @@ export declare const createSlack: import("frogbot").PieceFactory<{
|
|
|
1674
1237
|
}) => Promise<Record<string, unknown>[]>;
|
|
1675
1238
|
token: (kind?: import("./client.js").SlackToken) => string | undefined;
|
|
1676
1239
|
workspaceId: () => Promise<string>;
|
|
1240
|
+
authorize: (headers: Headers) => void;
|
|
1677
1241
|
}>): Promise<import("frogbot").TriggerEvent<Record<string, unknown>>[]>;
|
|
1678
1242
|
} & {
|
|
1679
1243
|
slug: "messageSaved";
|
|
@@ -1694,19 +1258,6 @@ export declare const createSlack: import("frogbot").PieceFactory<{
|
|
|
1694
1258
|
[x: string]: unknown;
|
|
1695
1259
|
ok: true;
|
|
1696
1260
|
}>;
|
|
1697
|
-
raw: ({ path, method, body, headers, token: tokenKind, }: {
|
|
1698
|
-
path: string;
|
|
1699
|
-
method?: string;
|
|
1700
|
-
body?: BodyInit | Record<string, unknown>;
|
|
1701
|
-
headers?: HeadersInit;
|
|
1702
|
-
token?: import("./client.js").SlackToken;
|
|
1703
|
-
}) => Promise<{
|
|
1704
|
-
status: number;
|
|
1705
|
-
headers: {
|
|
1706
|
-
[k: string]: string;
|
|
1707
|
-
};
|
|
1708
|
-
body: any;
|
|
1709
|
-
}>;
|
|
1710
1261
|
paginate: ({ path, body, item, token: tokenKind, limit, }: {
|
|
1711
1262
|
path: string;
|
|
1712
1263
|
body?: Record<string, unknown>;
|
|
@@ -1716,6 +1267,7 @@ export declare const createSlack: import("frogbot").PieceFactory<{
|
|
|
1716
1267
|
}) => Promise<Record<string, unknown>[]>;
|
|
1717
1268
|
token: (kind?: import("./client.js").SlackToken) => string | undefined;
|
|
1718
1269
|
workspaceId: () => Promise<string>;
|
|
1270
|
+
authorize: (headers: Headers) => void;
|
|
1719
1271
|
}>): Promise<import("frogbot").TriggerEvent<Record<string, unknown>>[]>;
|
|
1720
1272
|
} & {
|
|
1721
1273
|
slug: "customEmojiAdded";
|
|
@@ -1743,19 +1295,6 @@ export declare const createSlack: import("frogbot").PieceFactory<{
|
|
|
1743
1295
|
[x: string]: unknown;
|
|
1744
1296
|
ok: true;
|
|
1745
1297
|
}>;
|
|
1746
|
-
raw: ({ path, method, body, headers, token: tokenKind, }: {
|
|
1747
|
-
path: string;
|
|
1748
|
-
method?: string;
|
|
1749
|
-
body?: BodyInit | Record<string, unknown>;
|
|
1750
|
-
headers?: HeadersInit;
|
|
1751
|
-
token?: import("./client.js").SlackToken;
|
|
1752
|
-
}) => Promise<{
|
|
1753
|
-
status: number;
|
|
1754
|
-
headers: {
|
|
1755
|
-
[k: string]: string;
|
|
1756
|
-
};
|
|
1757
|
-
body: any;
|
|
1758
|
-
}>;
|
|
1759
1298
|
paginate: ({ path, body, item, token: tokenKind, limit, }: {
|
|
1760
1299
|
path: string;
|
|
1761
1300
|
body?: Record<string, unknown>;
|
|
@@ -1765,6 +1304,7 @@ export declare const createSlack: import("frogbot").PieceFactory<{
|
|
|
1765
1304
|
}) => Promise<Record<string, unknown>[]>;
|
|
1766
1305
|
token: (kind?: import("./client.js").SlackToken) => string | undefined;
|
|
1767
1306
|
workspaceId: () => Promise<string>;
|
|
1307
|
+
authorize: (headers: Headers) => void;
|
|
1768
1308
|
}>): Promise<import("frogbot").TriggerEvent<Record<string, unknown>>[]>;
|
|
1769
1309
|
} & {
|
|
1770
1310
|
slug: "modalInteraction";
|