@frogbotai/piece-trello 0.39.0 → 0.40.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 +5 -5
- package/dist/actions.js +2 -2
- package/dist/actions.js.map +1 -1
- package/dist/define.d.ts +368 -244
- package/dist/define.d.ts.map +1 -1
- package/dist/files.d.ts +1 -1
- package/dist/files.d.ts.map +1 -1
- package/dist/files.js +2 -2
- package/dist/files.js.map +1 -1
- package/dist/index.d.ts +407 -252
- package/dist/index.d.ts.map +1 -1
- package/dist/triggers.d.ts +407 -252
- package/dist/triggers.d.ts.map +1 -1
- package/dist/triggers.js +7 -3
- package/dist/triggers.js.map +1 -1
- package/package.json +3 -3
package/dist/define.d.ts
CHANGED
|
@@ -124,35 +124,40 @@ export declare const defineAction: <const TSlug extends string, TInput extends i
|
|
|
124
124
|
} & {
|
|
125
125
|
type: "polling";
|
|
126
126
|
schedule?: string;
|
|
127
|
-
run(args:
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
127
|
+
run(args: {
|
|
128
|
+
client: {
|
|
129
|
+
request: <T>(path: string, init?: RequestInit & {
|
|
130
|
+
query?: {
|
|
131
|
+
[x: string]: string | number | boolean | undefined;
|
|
132
|
+
};
|
|
133
|
+
}) => Promise<T>;
|
|
134
|
+
authorize(url: URL): void;
|
|
135
|
+
verifyWebhook(body: Buffer, signature: string | null, webhookUrl: string): boolean;
|
|
136
|
+
listAll<T extends {
|
|
137
|
+
id: string;
|
|
138
|
+
}>(path: string): Promise<T[]>;
|
|
139
|
+
getCard: <T = Record<string, unknown>>(cardId: string) => Promise<T>;
|
|
140
|
+
listBoards: () => Promise<{
|
|
141
|
+
id: string;
|
|
142
|
+
name: string;
|
|
143
|
+
}[]>;
|
|
144
|
+
listLists: (boardId: string) => Promise<{
|
|
145
|
+
id: string;
|
|
146
|
+
name: string;
|
|
147
|
+
}[]>;
|
|
148
|
+
listLabels: (boardId: string) => Promise<{
|
|
149
|
+
color: string;
|
|
150
|
+
id: string;
|
|
151
|
+
name: string;
|
|
152
|
+
}[]>;
|
|
153
|
+
listWebhooks: () => Promise<import("./client.js").TrelloWebhook[]>;
|
|
154
|
+
createWebhook: (idModel: string, callbackURL: string) => Promise<import("./client.js").TrelloWebhook>;
|
|
155
|
+
deleteWebhook: (id: string) => Promise<unknown>;
|
|
156
|
+
};
|
|
157
|
+
input: import("zod").infer<TInput>;
|
|
158
|
+
options: Record<string, never>;
|
|
159
|
+
req: import("frogbot").FrogBotRequest;
|
|
160
|
+
} & {
|
|
156
161
|
cursor?: import("frogbot").PieceJSON | undefined;
|
|
157
162
|
}): Promise<{
|
|
158
163
|
events: (TOutput extends import("zod").ZodType<unknown, unknown, import("zod/v4/core").$ZodTypeInternals<unknown, unknown>> ? import("zod").infer<TOutput> : import("frogbot").PieceJSON)[];
|
|
@@ -170,35 +175,40 @@ export declare const defineAction: <const TSlug extends string, TInput extends i
|
|
|
170
175
|
} & {
|
|
171
176
|
type: "polling";
|
|
172
177
|
schedule?: string;
|
|
173
|
-
run(args:
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
178
|
+
run(args: {
|
|
179
|
+
client: {
|
|
180
|
+
request: <T>(path: string, init?: RequestInit & {
|
|
181
|
+
query?: {
|
|
182
|
+
[x: string]: string | number | boolean | undefined;
|
|
183
|
+
};
|
|
184
|
+
}) => Promise<T>;
|
|
185
|
+
authorize(url: URL): void;
|
|
186
|
+
verifyWebhook(body: Buffer, signature: string | null, webhookUrl: string): boolean;
|
|
187
|
+
listAll<T extends {
|
|
188
|
+
id: string;
|
|
189
|
+
}>(path: string): Promise<T[]>;
|
|
190
|
+
getCard: <T = Record<string, unknown>>(cardId: string) => Promise<T>;
|
|
191
|
+
listBoards: () => Promise<{
|
|
192
|
+
id: string;
|
|
193
|
+
name: string;
|
|
194
|
+
}[]>;
|
|
195
|
+
listLists: (boardId: string) => Promise<{
|
|
196
|
+
id: string;
|
|
197
|
+
name: string;
|
|
198
|
+
}[]>;
|
|
199
|
+
listLabels: (boardId: string) => Promise<{
|
|
200
|
+
color: string;
|
|
201
|
+
id: string;
|
|
202
|
+
name: string;
|
|
203
|
+
}[]>;
|
|
204
|
+
listWebhooks: () => Promise<import("./client.js").TrelloWebhook[]>;
|
|
205
|
+
createWebhook: (idModel: string, callbackURL: string) => Promise<import("./client.js").TrelloWebhook>;
|
|
206
|
+
deleteWebhook: (id: string) => Promise<unknown>;
|
|
207
|
+
};
|
|
208
|
+
input: import("zod").infer<TInput>;
|
|
209
|
+
options: Record<string, never>;
|
|
210
|
+
req: import("frogbot").FrogBotRequest;
|
|
211
|
+
} & {
|
|
202
212
|
cursor?: import("frogbot").PieceJSON | undefined;
|
|
203
213
|
}): Promise<{
|
|
204
214
|
events: (TOutput extends import("zod").ZodType<unknown, unknown, import("zod/v4/core").$ZodTypeInternals<unknown, unknown>> ? import("zod").infer<TOutput> : import("frogbot").PieceJSON)[];
|
|
@@ -215,71 +225,44 @@ export declare const defineAction: <const TSlug extends string, TInput extends i
|
|
|
215
225
|
sample?: (TOutput extends import("zod").ZodType<unknown, unknown, import("zod/v4/core").$ZodTypeInternals<unknown, unknown>> ? import("zod").infer<TOutput> : import("frogbot").PieceJSON) | undefined;
|
|
216
226
|
} & {
|
|
217
227
|
type: "webhook";
|
|
218
|
-
onEnable(args:
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
228
|
+
onEnable(args: {
|
|
229
|
+
client: {
|
|
230
|
+
request: <T>(path: string, init?: RequestInit & {
|
|
231
|
+
query?: {
|
|
232
|
+
[x: string]: string | number | boolean | undefined;
|
|
233
|
+
};
|
|
234
|
+
}) => Promise<T>;
|
|
235
|
+
authorize(url: URL): void;
|
|
236
|
+
verifyWebhook(body: Buffer, signature: string | null, webhookUrl: string): boolean;
|
|
237
|
+
listAll<T extends {
|
|
238
|
+
id: string;
|
|
239
|
+
}>(path: string): Promise<T[]>;
|
|
240
|
+
getCard: <T = Record<string, unknown>>(cardId: string) => Promise<T>;
|
|
241
|
+
listBoards: () => Promise<{
|
|
242
|
+
id: string;
|
|
243
|
+
name: string;
|
|
244
|
+
}[]>;
|
|
245
|
+
listLists: (boardId: string) => Promise<{
|
|
246
|
+
id: string;
|
|
247
|
+
name: string;
|
|
248
|
+
}[]>;
|
|
249
|
+
listLabels: (boardId: string) => Promise<{
|
|
250
|
+
color: string;
|
|
251
|
+
id: string;
|
|
252
|
+
name: string;
|
|
253
|
+
}[]>;
|
|
254
|
+
listWebhooks: () => Promise<import("./client.js").TrelloWebhook[]>;
|
|
255
|
+
createWebhook: (idModel: string, callbackURL: string) => Promise<import("./client.js").TrelloWebhook>;
|
|
256
|
+
deleteWebhook: (id: string) => Promise<unknown>;
|
|
257
|
+
};
|
|
258
|
+
input: import("zod").infer<TInput>;
|
|
259
|
+
options: Record<string, never>;
|
|
260
|
+
req: import("frogbot").FrogBotRequest;
|
|
261
|
+
} & {
|
|
247
262
|
webhookUrl: string;
|
|
248
263
|
}): Promise<TState>;
|
|
249
|
-
onDisable(args:
|
|
250
|
-
|
|
251
|
-
query?: {
|
|
252
|
-
[x: string]: string | number | boolean | undefined;
|
|
253
|
-
};
|
|
254
|
-
}) => Promise<T>;
|
|
255
|
-
authorize(url: URL): void;
|
|
256
|
-
verifyWebhook(body: Buffer, signature: string | null, webhookUrl: string): boolean;
|
|
257
|
-
listAll<T extends {
|
|
258
|
-
id: string;
|
|
259
|
-
}>(path: string): Promise<T[]>;
|
|
260
|
-
getCard: <T = Record<string, unknown>>(cardId: string) => Promise<T>;
|
|
261
|
-
listBoards: () => Promise<{
|
|
262
|
-
id: string;
|
|
263
|
-
name: string;
|
|
264
|
-
}[]>;
|
|
265
|
-
listLists: (boardId: string) => Promise<{
|
|
266
|
-
id: string;
|
|
267
|
-
name: string;
|
|
268
|
-
}[]>;
|
|
269
|
-
listLabels: (boardId: string) => Promise<{
|
|
270
|
-
color: string;
|
|
271
|
-
id: string;
|
|
272
|
-
name: string;
|
|
273
|
-
}[]>;
|
|
274
|
-
listWebhooks: () => Promise<import("./client.js").TrelloWebhook[]>;
|
|
275
|
-
createWebhook: (idModel: string, callbackURL: string) => Promise<import("./client.js").TrelloWebhook>;
|
|
276
|
-
deleteWebhook: (id: string) => Promise<unknown>;
|
|
277
|
-
}> & {
|
|
278
|
-
state: TState;
|
|
279
|
-
}): Promise<void>;
|
|
280
|
-
renew?: {
|
|
281
|
-
schedule: string;
|
|
282
|
-
run(args: import("frogbot").PieceRunArgs<import("zod").infer<TInput>, Record<string, never>, {
|
|
264
|
+
onDisable(args: {
|
|
265
|
+
client: {
|
|
283
266
|
request: <T>(path: string, init?: RequestInit & {
|
|
284
267
|
query?: {
|
|
285
268
|
[x: string]: string | number | boolean | undefined;
|
|
@@ -307,42 +290,126 @@ export declare const defineAction: <const TSlug extends string, TInput extends i
|
|
|
307
290
|
listWebhooks: () => Promise<import("./client.js").TrelloWebhook[]>;
|
|
308
291
|
createWebhook: (idModel: string, callbackURL: string) => Promise<import("./client.js").TrelloWebhook>;
|
|
309
292
|
deleteWebhook: (id: string) => Promise<unknown>;
|
|
310
|
-
}
|
|
293
|
+
};
|
|
294
|
+
input: import("zod").infer<TInput>;
|
|
295
|
+
options: Record<string, never>;
|
|
296
|
+
req: import("frogbot").FrogBotRequest;
|
|
297
|
+
} & {
|
|
298
|
+
state: TState;
|
|
299
|
+
}): Promise<void>;
|
|
300
|
+
renew?: {
|
|
301
|
+
schedule: string;
|
|
302
|
+
run(args: {
|
|
303
|
+
client: {
|
|
304
|
+
request: <T>(path: string, init?: RequestInit & {
|
|
305
|
+
query?: {
|
|
306
|
+
[x: string]: string | number | boolean | undefined;
|
|
307
|
+
};
|
|
308
|
+
}) => Promise<T>;
|
|
309
|
+
authorize(url: URL): void;
|
|
310
|
+
verifyWebhook(body: Buffer, signature: string | null, webhookUrl: string): boolean;
|
|
311
|
+
listAll<T extends {
|
|
312
|
+
id: string;
|
|
313
|
+
}>(path: string): Promise<T[]>;
|
|
314
|
+
getCard: <T = Record<string, unknown>>(cardId: string) => Promise<T>;
|
|
315
|
+
listBoards: () => Promise<{
|
|
316
|
+
id: string;
|
|
317
|
+
name: string;
|
|
318
|
+
}[]>;
|
|
319
|
+
listLists: (boardId: string) => Promise<{
|
|
320
|
+
id: string;
|
|
321
|
+
name: string;
|
|
322
|
+
}[]>;
|
|
323
|
+
listLabels: (boardId: string) => Promise<{
|
|
324
|
+
color: string;
|
|
325
|
+
id: string;
|
|
326
|
+
name: string;
|
|
327
|
+
}[]>;
|
|
328
|
+
listWebhooks: () => Promise<import("./client.js").TrelloWebhook[]>;
|
|
329
|
+
createWebhook: (idModel: string, callbackURL: string) => Promise<import("./client.js").TrelloWebhook>;
|
|
330
|
+
deleteWebhook: (id: string) => Promise<unknown>;
|
|
331
|
+
};
|
|
332
|
+
input: import("zod").infer<TInput>;
|
|
333
|
+
options: Record<string, never>;
|
|
334
|
+
req: import("frogbot").FrogBotRequest;
|
|
335
|
+
} & {
|
|
311
336
|
state: TState;
|
|
312
337
|
webhookUrl: string;
|
|
313
338
|
}): Promise<TState>;
|
|
314
339
|
} | undefined;
|
|
315
|
-
run(args:
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
340
|
+
run(args: {
|
|
341
|
+
client: {
|
|
342
|
+
request: <T>(path: string, init?: RequestInit & {
|
|
343
|
+
query?: {
|
|
344
|
+
[x: string]: string | number | boolean | undefined;
|
|
345
|
+
};
|
|
346
|
+
}) => Promise<T>;
|
|
347
|
+
authorize(url: URL): void;
|
|
348
|
+
verifyWebhook(body: Buffer, signature: string | null, webhookUrl: string): boolean;
|
|
349
|
+
listAll<T extends {
|
|
350
|
+
id: string;
|
|
351
|
+
}>(path: string): Promise<T[]>;
|
|
352
|
+
getCard: <T = Record<string, unknown>>(cardId: string) => Promise<T>;
|
|
353
|
+
listBoards: () => Promise<{
|
|
354
|
+
id: string;
|
|
355
|
+
name: string;
|
|
356
|
+
}[]>;
|
|
357
|
+
listLists: (boardId: string) => Promise<{
|
|
358
|
+
id: string;
|
|
359
|
+
name: string;
|
|
360
|
+
}[]>;
|
|
361
|
+
listLabels: (boardId: string) => Promise<{
|
|
362
|
+
color: string;
|
|
363
|
+
id: string;
|
|
364
|
+
name: string;
|
|
365
|
+
}[]>;
|
|
366
|
+
listWebhooks: () => Promise<import("./client.js").TrelloWebhook[]>;
|
|
367
|
+
createWebhook: (idModel: string, callbackURL: string) => Promise<import("./client.js").TrelloWebhook>;
|
|
368
|
+
deleteWebhook: (id: string) => Promise<unknown>;
|
|
369
|
+
};
|
|
370
|
+
input: import("zod").infer<TInput>;
|
|
371
|
+
options: Record<string, never>;
|
|
372
|
+
req: import("frogbot").FrogBotRequest;
|
|
373
|
+
} & {
|
|
344
374
|
state: TState;
|
|
345
375
|
}): Promise<import("frogbot").TriggerEvent<TOutput extends import("zod").ZodType<unknown, unknown, import("zod/v4/core").$ZodTypeInternals<unknown, unknown>> ? import("zod").infer<TOutput> : import("frogbot").PieceJSON>[]>;
|
|
376
|
+
reply?(args: {
|
|
377
|
+
client: {
|
|
378
|
+
request: <T>(path: string, init?: RequestInit & {
|
|
379
|
+
query?: {
|
|
380
|
+
[x: string]: string | number | boolean | undefined;
|
|
381
|
+
};
|
|
382
|
+
}) => Promise<T>;
|
|
383
|
+
authorize(url: URL): void;
|
|
384
|
+
verifyWebhook(body: Buffer, signature: string | null, webhookUrl: string): boolean;
|
|
385
|
+
listAll<T extends {
|
|
386
|
+
id: string;
|
|
387
|
+
}>(path: string): Promise<T[]>;
|
|
388
|
+
getCard: <T = Record<string, unknown>>(cardId: string) => Promise<T>;
|
|
389
|
+
listBoards: () => Promise<{
|
|
390
|
+
id: string;
|
|
391
|
+
name: string;
|
|
392
|
+
}[]>;
|
|
393
|
+
listLists: (boardId: string) => Promise<{
|
|
394
|
+
id: string;
|
|
395
|
+
name: string;
|
|
396
|
+
}[]>;
|
|
397
|
+
listLabels: (boardId: string) => Promise<{
|
|
398
|
+
color: string;
|
|
399
|
+
id: string;
|
|
400
|
+
name: string;
|
|
401
|
+
}[]>;
|
|
402
|
+
listWebhooks: () => Promise<import("./client.js").TrelloWebhook[]>;
|
|
403
|
+
createWebhook: (idModel: string, callbackURL: string) => Promise<import("./client.js").TrelloWebhook>;
|
|
404
|
+
deleteWebhook: (id: string) => Promise<unknown>;
|
|
405
|
+
};
|
|
406
|
+
input: import("zod").infer<TInput>;
|
|
407
|
+
options: Record<string, never>;
|
|
408
|
+
req: import("frogbot").FrogBotRequest;
|
|
409
|
+
} & {
|
|
410
|
+
state: TState;
|
|
411
|
+
events: import("frogbot").TriggerEvent<TOutput extends import("zod").ZodType<unknown, unknown, import("zod/v4/core").$ZodTypeInternals<unknown, unknown>> ? import("zod").infer<TOutput> : import("frogbot").PieceJSON>[];
|
|
412
|
+
}): Response | Promise<Response>;
|
|
346
413
|
} & {
|
|
347
414
|
slug: TSlug;
|
|
348
415
|
}) => {
|
|
@@ -354,71 +421,44 @@ export declare const defineAction: <const TSlug extends string, TInput extends i
|
|
|
354
421
|
sample?: (TOutput extends import("zod").ZodType<unknown, unknown, import("zod/v4/core").$ZodTypeInternals<unknown, unknown>> ? import("zod").infer<TOutput> : import("frogbot").PieceJSON) | undefined;
|
|
355
422
|
} & {
|
|
356
423
|
type: "webhook";
|
|
357
|
-
onEnable(args:
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
424
|
+
onEnable(args: {
|
|
425
|
+
client: {
|
|
426
|
+
request: <T>(path: string, init?: RequestInit & {
|
|
427
|
+
query?: {
|
|
428
|
+
[x: string]: string | number | boolean | undefined;
|
|
429
|
+
};
|
|
430
|
+
}) => Promise<T>;
|
|
431
|
+
authorize(url: URL): void;
|
|
432
|
+
verifyWebhook(body: Buffer, signature: string | null, webhookUrl: string): boolean;
|
|
433
|
+
listAll<T extends {
|
|
434
|
+
id: string;
|
|
435
|
+
}>(path: string): Promise<T[]>;
|
|
436
|
+
getCard: <T = Record<string, unknown>>(cardId: string) => Promise<T>;
|
|
437
|
+
listBoards: () => Promise<{
|
|
438
|
+
id: string;
|
|
439
|
+
name: string;
|
|
440
|
+
}[]>;
|
|
441
|
+
listLists: (boardId: string) => Promise<{
|
|
442
|
+
id: string;
|
|
443
|
+
name: string;
|
|
444
|
+
}[]>;
|
|
445
|
+
listLabels: (boardId: string) => Promise<{
|
|
446
|
+
color: string;
|
|
447
|
+
id: string;
|
|
448
|
+
name: string;
|
|
449
|
+
}[]>;
|
|
450
|
+
listWebhooks: () => Promise<import("./client.js").TrelloWebhook[]>;
|
|
451
|
+
createWebhook: (idModel: string, callbackURL: string) => Promise<import("./client.js").TrelloWebhook>;
|
|
452
|
+
deleteWebhook: (id: string) => Promise<unknown>;
|
|
453
|
+
};
|
|
454
|
+
input: import("zod").infer<TInput>;
|
|
455
|
+
options: Record<string, never>;
|
|
456
|
+
req: import("frogbot").FrogBotRequest;
|
|
457
|
+
} & {
|
|
386
458
|
webhookUrl: string;
|
|
387
459
|
}): Promise<TState>;
|
|
388
|
-
onDisable(args:
|
|
389
|
-
|
|
390
|
-
query?: {
|
|
391
|
-
[x: string]: string | number | boolean | undefined;
|
|
392
|
-
};
|
|
393
|
-
}) => Promise<T>;
|
|
394
|
-
authorize(url: URL): void;
|
|
395
|
-
verifyWebhook(body: Buffer, signature: string | null, webhookUrl: string): boolean;
|
|
396
|
-
listAll<T extends {
|
|
397
|
-
id: string;
|
|
398
|
-
}>(path: string): Promise<T[]>;
|
|
399
|
-
getCard: <T = Record<string, unknown>>(cardId: string) => Promise<T>;
|
|
400
|
-
listBoards: () => Promise<{
|
|
401
|
-
id: string;
|
|
402
|
-
name: string;
|
|
403
|
-
}[]>;
|
|
404
|
-
listLists: (boardId: string) => Promise<{
|
|
405
|
-
id: string;
|
|
406
|
-
name: string;
|
|
407
|
-
}[]>;
|
|
408
|
-
listLabels: (boardId: string) => Promise<{
|
|
409
|
-
color: string;
|
|
410
|
-
id: string;
|
|
411
|
-
name: string;
|
|
412
|
-
}[]>;
|
|
413
|
-
listWebhooks: () => Promise<import("./client.js").TrelloWebhook[]>;
|
|
414
|
-
createWebhook: (idModel: string, callbackURL: string) => Promise<import("./client.js").TrelloWebhook>;
|
|
415
|
-
deleteWebhook: (id: string) => Promise<unknown>;
|
|
416
|
-
}> & {
|
|
417
|
-
state: TState;
|
|
418
|
-
}): Promise<void>;
|
|
419
|
-
renew?: {
|
|
420
|
-
schedule: string;
|
|
421
|
-
run(args: import("frogbot").PieceRunArgs<import("zod").infer<TInput>, Record<string, never>, {
|
|
460
|
+
onDisable(args: {
|
|
461
|
+
client: {
|
|
422
462
|
request: <T>(path: string, init?: RequestInit & {
|
|
423
463
|
query?: {
|
|
424
464
|
[x: string]: string | number | boolean | undefined;
|
|
@@ -446,42 +486,126 @@ export declare const defineAction: <const TSlug extends string, TInput extends i
|
|
|
446
486
|
listWebhooks: () => Promise<import("./client.js").TrelloWebhook[]>;
|
|
447
487
|
createWebhook: (idModel: string, callbackURL: string) => Promise<import("./client.js").TrelloWebhook>;
|
|
448
488
|
deleteWebhook: (id: string) => Promise<unknown>;
|
|
449
|
-
}
|
|
489
|
+
};
|
|
490
|
+
input: import("zod").infer<TInput>;
|
|
491
|
+
options: Record<string, never>;
|
|
492
|
+
req: import("frogbot").FrogBotRequest;
|
|
493
|
+
} & {
|
|
494
|
+
state: TState;
|
|
495
|
+
}): Promise<void>;
|
|
496
|
+
renew?: {
|
|
497
|
+
schedule: string;
|
|
498
|
+
run(args: {
|
|
499
|
+
client: {
|
|
500
|
+
request: <T>(path: string, init?: RequestInit & {
|
|
501
|
+
query?: {
|
|
502
|
+
[x: string]: string | number | boolean | undefined;
|
|
503
|
+
};
|
|
504
|
+
}) => Promise<T>;
|
|
505
|
+
authorize(url: URL): void;
|
|
506
|
+
verifyWebhook(body: Buffer, signature: string | null, webhookUrl: string): boolean;
|
|
507
|
+
listAll<T extends {
|
|
508
|
+
id: string;
|
|
509
|
+
}>(path: string): Promise<T[]>;
|
|
510
|
+
getCard: <T = Record<string, unknown>>(cardId: string) => Promise<T>;
|
|
511
|
+
listBoards: () => Promise<{
|
|
512
|
+
id: string;
|
|
513
|
+
name: string;
|
|
514
|
+
}[]>;
|
|
515
|
+
listLists: (boardId: string) => Promise<{
|
|
516
|
+
id: string;
|
|
517
|
+
name: string;
|
|
518
|
+
}[]>;
|
|
519
|
+
listLabels: (boardId: string) => Promise<{
|
|
520
|
+
color: string;
|
|
521
|
+
id: string;
|
|
522
|
+
name: string;
|
|
523
|
+
}[]>;
|
|
524
|
+
listWebhooks: () => Promise<import("./client.js").TrelloWebhook[]>;
|
|
525
|
+
createWebhook: (idModel: string, callbackURL: string) => Promise<import("./client.js").TrelloWebhook>;
|
|
526
|
+
deleteWebhook: (id: string) => Promise<unknown>;
|
|
527
|
+
};
|
|
528
|
+
input: import("zod").infer<TInput>;
|
|
529
|
+
options: Record<string, never>;
|
|
530
|
+
req: import("frogbot").FrogBotRequest;
|
|
531
|
+
} & {
|
|
450
532
|
state: TState;
|
|
451
533
|
webhookUrl: string;
|
|
452
534
|
}): Promise<TState>;
|
|
453
535
|
} | undefined;
|
|
454
|
-
run(args:
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
536
|
+
run(args: {
|
|
537
|
+
client: {
|
|
538
|
+
request: <T>(path: string, init?: RequestInit & {
|
|
539
|
+
query?: {
|
|
540
|
+
[x: string]: string | number | boolean | undefined;
|
|
541
|
+
};
|
|
542
|
+
}) => Promise<T>;
|
|
543
|
+
authorize(url: URL): void;
|
|
544
|
+
verifyWebhook(body: Buffer, signature: string | null, webhookUrl: string): boolean;
|
|
545
|
+
listAll<T extends {
|
|
546
|
+
id: string;
|
|
547
|
+
}>(path: string): Promise<T[]>;
|
|
548
|
+
getCard: <T = Record<string, unknown>>(cardId: string) => Promise<T>;
|
|
549
|
+
listBoards: () => Promise<{
|
|
550
|
+
id: string;
|
|
551
|
+
name: string;
|
|
552
|
+
}[]>;
|
|
553
|
+
listLists: (boardId: string) => Promise<{
|
|
554
|
+
id: string;
|
|
555
|
+
name: string;
|
|
556
|
+
}[]>;
|
|
557
|
+
listLabels: (boardId: string) => Promise<{
|
|
558
|
+
color: string;
|
|
559
|
+
id: string;
|
|
560
|
+
name: string;
|
|
561
|
+
}[]>;
|
|
562
|
+
listWebhooks: () => Promise<import("./client.js").TrelloWebhook[]>;
|
|
563
|
+
createWebhook: (idModel: string, callbackURL: string) => Promise<import("./client.js").TrelloWebhook>;
|
|
564
|
+
deleteWebhook: (id: string) => Promise<unknown>;
|
|
565
|
+
};
|
|
566
|
+
input: import("zod").infer<TInput>;
|
|
567
|
+
options: Record<string, never>;
|
|
568
|
+
req: import("frogbot").FrogBotRequest;
|
|
569
|
+
} & {
|
|
483
570
|
state: TState;
|
|
484
571
|
}): Promise<import("frogbot").TriggerEvent<TOutput extends import("zod").ZodType<unknown, unknown, import("zod/v4/core").$ZodTypeInternals<unknown, unknown>> ? import("zod").infer<TOutput> : import("frogbot").PieceJSON>[]>;
|
|
572
|
+
reply?(args: {
|
|
573
|
+
client: {
|
|
574
|
+
request: <T>(path: string, init?: RequestInit & {
|
|
575
|
+
query?: {
|
|
576
|
+
[x: string]: string | number | boolean | undefined;
|
|
577
|
+
};
|
|
578
|
+
}) => Promise<T>;
|
|
579
|
+
authorize(url: URL): void;
|
|
580
|
+
verifyWebhook(body: Buffer, signature: string | null, webhookUrl: string): boolean;
|
|
581
|
+
listAll<T extends {
|
|
582
|
+
id: string;
|
|
583
|
+
}>(path: string): Promise<T[]>;
|
|
584
|
+
getCard: <T = Record<string, unknown>>(cardId: string) => Promise<T>;
|
|
585
|
+
listBoards: () => Promise<{
|
|
586
|
+
id: string;
|
|
587
|
+
name: string;
|
|
588
|
+
}[]>;
|
|
589
|
+
listLists: (boardId: string) => Promise<{
|
|
590
|
+
id: string;
|
|
591
|
+
name: string;
|
|
592
|
+
}[]>;
|
|
593
|
+
listLabels: (boardId: string) => Promise<{
|
|
594
|
+
color: string;
|
|
595
|
+
id: string;
|
|
596
|
+
name: string;
|
|
597
|
+
}[]>;
|
|
598
|
+
listWebhooks: () => Promise<import("./client.js").TrelloWebhook[]>;
|
|
599
|
+
createWebhook: (idModel: string, callbackURL: string) => Promise<import("./client.js").TrelloWebhook>;
|
|
600
|
+
deleteWebhook: (id: string) => Promise<unknown>;
|
|
601
|
+
};
|
|
602
|
+
input: import("zod").infer<TInput>;
|
|
603
|
+
options: Record<string, never>;
|
|
604
|
+
req: import("frogbot").FrogBotRequest;
|
|
605
|
+
} & {
|
|
606
|
+
state: TState;
|
|
607
|
+
events: import("frogbot").TriggerEvent<TOutput extends import("zod").ZodType<unknown, unknown, import("zod/v4/core").$ZodTypeInternals<unknown, unknown>> ? import("zod").infer<TOutput> : import("frogbot").PieceJSON>[];
|
|
608
|
+
}): Response | Promise<Response>;
|
|
485
609
|
} & {
|
|
486
610
|
slug: TSlug;
|
|
487
611
|
};
|