@frogbotai/piece-trello 0.38.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/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: import("frogbot").PieceRunArgs<import("zod").infer<TInput>, Record<string, never>, {
128
- request: <T>(path: string, init?: RequestInit & {
129
- query?: {
130
- [x: string]: string | number | boolean | undefined;
131
- };
132
- }) => Promise<T>;
133
- authorize(url: URL): void;
134
- verifyWebhook(body: Buffer, signature: string | null, webhookUrl: string): boolean;
135
- listAll<T extends {
136
- id: string;
137
- }>(path: string): Promise<T[]>;
138
- getCard: <T = Record<string, unknown>>(cardId: string) => Promise<T>;
139
- listBoards: () => Promise<{
140
- id: string;
141
- name: string;
142
- }[]>;
143
- listLists: (boardId: string) => Promise<{
144
- id: string;
145
- name: string;
146
- }[]>;
147
- listLabels: (boardId: string) => Promise<{
148
- color: string;
149
- id: string;
150
- name: string;
151
- }[]>;
152
- listWebhooks: () => Promise<import("./client.js").TrelloWebhook[]>;
153
- createWebhook: (idModel: string, callbackURL: string) => Promise<import("./client.js").TrelloWebhook>;
154
- deleteWebhook: (id: string) => Promise<unknown>;
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: import("frogbot").PieceRunArgs<import("zod").infer<TInput>, Record<string, never>, {
174
- request: <T>(path: string, init?: RequestInit & {
175
- query?: {
176
- [x: string]: string | number | boolean | undefined;
177
- };
178
- }) => Promise<T>;
179
- authorize(url: URL): void;
180
- verifyWebhook(body: Buffer, signature: string | null, webhookUrl: string): boolean;
181
- listAll<T extends {
182
- id: string;
183
- }>(path: string): Promise<T[]>;
184
- getCard: <T = Record<string, unknown>>(cardId: string) => Promise<T>;
185
- listBoards: () => Promise<{
186
- id: string;
187
- name: string;
188
- }[]>;
189
- listLists: (boardId: string) => Promise<{
190
- id: string;
191
- name: string;
192
- }[]>;
193
- listLabels: (boardId: string) => Promise<{
194
- color: string;
195
- id: string;
196
- name: string;
197
- }[]>;
198
- listWebhooks: () => Promise<import("./client.js").TrelloWebhook[]>;
199
- createWebhook: (idModel: string, callbackURL: string) => Promise<import("./client.js").TrelloWebhook>;
200
- deleteWebhook: (id: string) => Promise<unknown>;
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: import("frogbot").PieceRunArgs<import("zod").infer<TInput>, Record<string, never>, {
219
- request: <T>(path: string, init?: RequestInit & {
220
- query?: {
221
- [x: string]: string | number | boolean | undefined;
222
- };
223
- }) => Promise<T>;
224
- authorize(url: URL): void;
225
- verifyWebhook(body: Buffer, signature: string | null, webhookUrl: string): boolean;
226
- listAll<T extends {
227
- id: string;
228
- }>(path: string): Promise<T[]>;
229
- getCard: <T = Record<string, unknown>>(cardId: string) => Promise<T>;
230
- listBoards: () => Promise<{
231
- id: string;
232
- name: string;
233
- }[]>;
234
- listLists: (boardId: string) => Promise<{
235
- id: string;
236
- name: string;
237
- }[]>;
238
- listLabels: (boardId: string) => Promise<{
239
- color: string;
240
- id: string;
241
- name: string;
242
- }[]>;
243
- listWebhooks: () => Promise<import("./client.js").TrelloWebhook[]>;
244
- createWebhook: (idModel: string, callbackURL: string) => Promise<import("./client.js").TrelloWebhook>;
245
- deleteWebhook: (id: string) => Promise<unknown>;
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: import("frogbot").PieceRunArgs<import("zod").infer<TInput>, Record<string, never>, {
250
- request: <T>(path: string, init?: RequestInit & {
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: import("frogbot").PieceRunArgs<import("zod").infer<TInput>, Record<string, never>, {
316
- request: <T>(path: string, init?: RequestInit & {
317
- query?: {
318
- [x: string]: string | number | boolean | undefined;
319
- };
320
- }) => Promise<T>;
321
- authorize(url: URL): void;
322
- verifyWebhook(body: Buffer, signature: string | null, webhookUrl: string): boolean;
323
- listAll<T extends {
324
- id: string;
325
- }>(path: string): Promise<T[]>;
326
- getCard: <T = Record<string, unknown>>(cardId: string) => Promise<T>;
327
- listBoards: () => Promise<{
328
- id: string;
329
- name: string;
330
- }[]>;
331
- listLists: (boardId: string) => Promise<{
332
- id: string;
333
- name: string;
334
- }[]>;
335
- listLabels: (boardId: string) => Promise<{
336
- color: string;
337
- id: string;
338
- name: string;
339
- }[]>;
340
- listWebhooks: () => Promise<import("./client.js").TrelloWebhook[]>;
341
- createWebhook: (idModel: string, callbackURL: string) => Promise<import("./client.js").TrelloWebhook>;
342
- deleteWebhook: (id: string) => Promise<unknown>;
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: import("frogbot").PieceRunArgs<import("zod").infer<TInput>, Record<string, never>, {
358
- request: <T>(path: string, init?: RequestInit & {
359
- query?: {
360
- [x: string]: string | number | boolean | undefined;
361
- };
362
- }) => Promise<T>;
363
- authorize(url: URL): void;
364
- verifyWebhook(body: Buffer, signature: string | null, webhookUrl: string): boolean;
365
- listAll<T extends {
366
- id: string;
367
- }>(path: string): Promise<T[]>;
368
- getCard: <T = Record<string, unknown>>(cardId: string) => Promise<T>;
369
- listBoards: () => Promise<{
370
- id: string;
371
- name: string;
372
- }[]>;
373
- listLists: (boardId: string) => Promise<{
374
- id: string;
375
- name: string;
376
- }[]>;
377
- listLabels: (boardId: string) => Promise<{
378
- color: string;
379
- id: string;
380
- name: string;
381
- }[]>;
382
- listWebhooks: () => Promise<import("./client.js").TrelloWebhook[]>;
383
- createWebhook: (idModel: string, callbackURL: string) => Promise<import("./client.js").TrelloWebhook>;
384
- deleteWebhook: (id: string) => Promise<unknown>;
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: import("frogbot").PieceRunArgs<import("zod").infer<TInput>, Record<string, never>, {
389
- request: <T>(path: string, init?: RequestInit & {
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: import("frogbot").PieceRunArgs<import("zod").infer<TInput>, Record<string, never>, {
455
- request: <T>(path: string, init?: RequestInit & {
456
- query?: {
457
- [x: string]: string | number | boolean | undefined;
458
- };
459
- }) => Promise<T>;
460
- authorize(url: URL): void;
461
- verifyWebhook(body: Buffer, signature: string | null, webhookUrl: string): boolean;
462
- listAll<T extends {
463
- id: string;
464
- }>(path: string): Promise<T[]>;
465
- getCard: <T = Record<string, unknown>>(cardId: string) => Promise<T>;
466
- listBoards: () => Promise<{
467
- id: string;
468
- name: string;
469
- }[]>;
470
- listLists: (boardId: string) => Promise<{
471
- id: string;
472
- name: string;
473
- }[]>;
474
- listLabels: (boardId: string) => Promise<{
475
- color: string;
476
- id: string;
477
- name: string;
478
- }[]>;
479
- listWebhooks: () => Promise<import("./client.js").TrelloWebhook[]>;
480
- createWebhook: (idModel: string, callbackURL: string) => Promise<import("./client.js").TrelloWebhook>;
481
- deleteWebhook: (id: string) => Promise<unknown>;
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
  };