@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.
@@ -32,88 +32,51 @@ export declare const cardCreated: {
32
32
  } | undefined;
33
33
  } & {
34
34
  type: "webhook";
35
- onEnable(args: import("frogbot").PieceRunArgs<{
36
- boardId: string;
37
- listId?: string | undefined;
38
- }, Record<string, never>, {
39
- request: <T>(path: string, init?: RequestInit & {
40
- query?: {
41
- [x: string]: string | number | boolean | undefined;
42
- };
43
- }) => Promise<T>;
44
- authorize(url: URL): void;
45
- verifyWebhook(body: Buffer, signature: string | null, webhookUrl: string): boolean;
46
- listAll<T extends {
47
- id: string;
48
- }>(path: string): Promise<T[]>;
49
- getCard: <T = Record<string, unknown>>(cardId: string) => Promise<T>;
50
- listBoards: () => Promise<{
51
- id: string;
52
- name: string;
53
- }[]>;
54
- listLists: (boardId: string) => Promise<{
55
- id: string;
56
- name: string;
57
- }[]>;
58
- listLabels: (boardId: string) => Promise<{
59
- color: string;
60
- id: string;
61
- name: string;
62
- }[]>;
63
- listWebhooks: () => Promise<import("./client.js").TrelloWebhook[]>;
64
- createWebhook: (idModel: string, callbackURL: string) => Promise<import("./client.js").TrelloWebhook>;
65
- deleteWebhook: (id: string) => Promise<unknown>;
66
- }> & {
35
+ onEnable(args: {
36
+ client: {
37
+ request: <T>(path: string, init?: RequestInit & {
38
+ query?: {
39
+ [x: string]: string | number | boolean | undefined;
40
+ };
41
+ }) => Promise<T>;
42
+ authorize(url: URL): void;
43
+ verifyWebhook(body: Buffer, signature: string | null, webhookUrl: string): boolean;
44
+ listAll<T extends {
45
+ id: string;
46
+ }>(path: string): Promise<T[]>;
47
+ getCard: <T = Record<string, unknown>>(cardId: string) => Promise<T>;
48
+ listBoards: () => Promise<{
49
+ id: string;
50
+ name: string;
51
+ }[]>;
52
+ listLists: (boardId: string) => Promise<{
53
+ id: string;
54
+ name: string;
55
+ }[]>;
56
+ listLabels: (boardId: string) => Promise<{
57
+ color: string;
58
+ id: string;
59
+ name: string;
60
+ }[]>;
61
+ listWebhooks: () => Promise<import("./client.js").TrelloWebhook[]>;
62
+ createWebhook: (idModel: string, callbackURL: string) => Promise<import("./client.js").TrelloWebhook>;
63
+ deleteWebhook: (id: string) => Promise<unknown>;
64
+ };
65
+ input: {
66
+ boardId: string;
67
+ listId?: string | undefined;
68
+ };
69
+ options: Record<string, never>;
70
+ req: import("frogbot").FrogBotRequest;
71
+ } & {
67
72
  webhookUrl: string;
68
73
  }): Promise<{
69
74
  webhookId: string;
70
75
  webhookUrl: string;
71
76
  owned: boolean;
72
77
  }>;
73
- onDisable(args: import("frogbot").PieceRunArgs<{
74
- boardId: string;
75
- listId?: string | undefined;
76
- }, Record<string, never>, {
77
- request: <T>(path: string, init?: RequestInit & {
78
- query?: {
79
- [x: string]: string | number | boolean | undefined;
80
- };
81
- }) => Promise<T>;
82
- authorize(url: URL): void;
83
- verifyWebhook(body: Buffer, signature: string | null, webhookUrl: string): boolean;
84
- listAll<T extends {
85
- id: string;
86
- }>(path: string): Promise<T[]>;
87
- getCard: <T = Record<string, unknown>>(cardId: string) => Promise<T>;
88
- listBoards: () => Promise<{
89
- id: string;
90
- name: string;
91
- }[]>;
92
- listLists: (boardId: string) => Promise<{
93
- id: string;
94
- name: string;
95
- }[]>;
96
- listLabels: (boardId: string) => Promise<{
97
- color: string;
98
- id: string;
99
- name: string;
100
- }[]>;
101
- listWebhooks: () => Promise<import("./client.js").TrelloWebhook[]>;
102
- createWebhook: (idModel: string, callbackURL: string) => Promise<import("./client.js").TrelloWebhook>;
103
- deleteWebhook: (id: string) => Promise<unknown>;
104
- }> & {
105
- state: {
106
- webhookId: string;
107
- webhookUrl: string;
108
- owned: boolean;
109
- };
110
- }): Promise<void>;
111
- renew?: {
112
- schedule: string;
113
- run(args: import("frogbot").PieceRunArgs<{
114
- boardId: string;
115
- listId?: string | undefined;
116
- }, Record<string, never>, {
78
+ onDisable(args: {
79
+ client: {
117
80
  request: <T>(path: string, init?: RequestInit & {
118
81
  query?: {
119
82
  [x: string]: string | number | boolean | undefined;
@@ -141,7 +104,59 @@ export declare const cardCreated: {
141
104
  listWebhooks: () => Promise<import("./client.js").TrelloWebhook[]>;
142
105
  createWebhook: (idModel: string, callbackURL: string) => Promise<import("./client.js").TrelloWebhook>;
143
106
  deleteWebhook: (id: string) => Promise<unknown>;
144
- }> & {
107
+ };
108
+ input: {
109
+ boardId: string;
110
+ listId?: string | undefined;
111
+ };
112
+ options: Record<string, never>;
113
+ req: import("frogbot").FrogBotRequest;
114
+ } & {
115
+ state: {
116
+ webhookId: string;
117
+ webhookUrl: string;
118
+ owned: boolean;
119
+ };
120
+ }): Promise<void>;
121
+ renew?: {
122
+ schedule: string;
123
+ run(args: {
124
+ client: {
125
+ request: <T>(path: string, init?: RequestInit & {
126
+ query?: {
127
+ [x: string]: string | number | boolean | undefined;
128
+ };
129
+ }) => Promise<T>;
130
+ authorize(url: URL): void;
131
+ verifyWebhook(body: Buffer, signature: string | null, webhookUrl: string): boolean;
132
+ listAll<T extends {
133
+ id: string;
134
+ }>(path: string): Promise<T[]>;
135
+ getCard: <T = Record<string, unknown>>(cardId: string) => Promise<T>;
136
+ listBoards: () => Promise<{
137
+ id: string;
138
+ name: string;
139
+ }[]>;
140
+ listLists: (boardId: string) => Promise<{
141
+ id: string;
142
+ name: string;
143
+ }[]>;
144
+ listLabels: (boardId: string) => Promise<{
145
+ color: string;
146
+ id: string;
147
+ name: string;
148
+ }[]>;
149
+ listWebhooks: () => Promise<import("./client.js").TrelloWebhook[]>;
150
+ createWebhook: (idModel: string, callbackURL: string) => Promise<import("./client.js").TrelloWebhook>;
151
+ deleteWebhook: (id: string) => Promise<unknown>;
152
+ };
153
+ input: {
154
+ boardId: string;
155
+ listId?: string | undefined;
156
+ };
157
+ options: Record<string, never>;
158
+ req: import("frogbot").FrogBotRequest;
159
+ } & {
145
160
  state: {
146
161
  webhookId: string;
147
162
  webhookUrl: string;
@@ -154,38 +169,43 @@ export declare const cardCreated: {
154
169
  owned: boolean;
155
170
  }>;
156
171
  } | undefined;
157
- run(args: import("frogbot").PieceRunArgs<{
158
- boardId: string;
159
- listId?: string | undefined;
160
- }, Record<string, never>, {
161
- request: <T>(path: string, init?: RequestInit & {
162
- query?: {
163
- [x: string]: string | number | boolean | undefined;
164
- };
165
- }) => Promise<T>;
166
- authorize(url: URL): void;
167
- verifyWebhook(body: Buffer, signature: string | null, webhookUrl: string): boolean;
168
- listAll<T extends {
169
- id: string;
170
- }>(path: string): Promise<T[]>;
171
- getCard: <T = Record<string, unknown>>(cardId: string) => Promise<T>;
172
- listBoards: () => Promise<{
173
- id: string;
174
- name: string;
175
- }[]>;
176
- listLists: (boardId: string) => Promise<{
177
- id: string;
178
- name: string;
179
- }[]>;
180
- listLabels: (boardId: string) => Promise<{
181
- color: string;
182
- id: string;
183
- name: string;
184
- }[]>;
185
- listWebhooks: () => Promise<import("./client.js").TrelloWebhook[]>;
186
- createWebhook: (idModel: string, callbackURL: string) => Promise<import("./client.js").TrelloWebhook>;
187
- deleteWebhook: (id: string) => Promise<unknown>;
188
- }> & {
172
+ run(args: {
173
+ client: {
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
+ };
202
+ input: {
203
+ boardId: string;
204
+ listId?: string | undefined;
205
+ };
206
+ options: Record<string, never>;
207
+ req: import("frogbot").FrogBotRequest;
208
+ } & {
189
209
  state: {
190
210
  webhookId: string;
191
211
  webhookUrl: string;
@@ -203,6 +223,61 @@ export declare const cardCreated: {
203
223
  dateLastActivity?: string | undefined;
204
224
  url?: string | undefined;
205
225
  }>[]>;
226
+ reply?(args: {
227
+ client: {
228
+ request: <T>(path: string, init?: RequestInit & {
229
+ query?: {
230
+ [x: string]: string | number | boolean | undefined;
231
+ };
232
+ }) => Promise<T>;
233
+ authorize(url: URL): void;
234
+ verifyWebhook(body: Buffer, signature: string | null, webhookUrl: string): boolean;
235
+ listAll<T extends {
236
+ id: string;
237
+ }>(path: string): Promise<T[]>;
238
+ getCard: <T = Record<string, unknown>>(cardId: string) => Promise<T>;
239
+ listBoards: () => Promise<{
240
+ id: string;
241
+ name: string;
242
+ }[]>;
243
+ listLists: (boardId: string) => Promise<{
244
+ id: string;
245
+ name: string;
246
+ }[]>;
247
+ listLabels: (boardId: string) => Promise<{
248
+ color: string;
249
+ id: string;
250
+ name: string;
251
+ }[]>;
252
+ listWebhooks: () => Promise<import("./client.js").TrelloWebhook[]>;
253
+ createWebhook: (idModel: string, callbackURL: string) => Promise<import("./client.js").TrelloWebhook>;
254
+ deleteWebhook: (id: string) => Promise<unknown>;
255
+ };
256
+ input: {
257
+ boardId: string;
258
+ listId?: string | undefined;
259
+ };
260
+ options: Record<string, never>;
261
+ req: import("frogbot").FrogBotRequest;
262
+ } & {
263
+ state: {
264
+ webhookId: string;
265
+ webhookUrl: string;
266
+ owned: boolean;
267
+ };
268
+ events: import("frogbot").TriggerEvent<{
269
+ [x: string]: unknown;
270
+ id: string;
271
+ name: string;
272
+ desc?: string | undefined;
273
+ idBoard?: string | undefined;
274
+ idList?: string | undefined;
275
+ due?: string | null | undefined;
276
+ dueComplete?: boolean | undefined;
277
+ dateLastActivity?: string | undefined;
278
+ url?: string | undefined;
279
+ }>[];
280
+ }): Response | Promise<Response>;
206
281
  } & {
207
282
  slug: "cardCreated";
208
283
  };
@@ -239,88 +314,51 @@ export declare const cardMovedToList: {
239
314
  } | undefined;
240
315
  } & {
241
316
  type: "webhook";
242
- onEnable(args: import("frogbot").PieceRunArgs<{
243
- boardId: string;
244
- listId: string;
245
- }, Record<string, never>, {
246
- request: <T>(path: string, init?: RequestInit & {
247
- query?: {
248
- [x: string]: string | number | boolean | undefined;
249
- };
250
- }) => Promise<T>;
251
- authorize(url: URL): void;
252
- verifyWebhook(body: Buffer, signature: string | null, webhookUrl: string): boolean;
253
- listAll<T extends {
254
- id: string;
255
- }>(path: string): Promise<T[]>;
256
- getCard: <T = Record<string, unknown>>(cardId: string) => Promise<T>;
257
- listBoards: () => Promise<{
258
- id: string;
259
- name: string;
260
- }[]>;
261
- listLists: (boardId: string) => Promise<{
262
- id: string;
263
- name: string;
264
- }[]>;
265
- listLabels: (boardId: string) => Promise<{
266
- color: string;
267
- id: string;
268
- name: string;
269
- }[]>;
270
- listWebhooks: () => Promise<import("./client.js").TrelloWebhook[]>;
271
- createWebhook: (idModel: string, callbackURL: string) => Promise<import("./client.js").TrelloWebhook>;
272
- deleteWebhook: (id: string) => Promise<unknown>;
273
- }> & {
317
+ onEnable(args: {
318
+ client: {
319
+ request: <T>(path: string, init?: RequestInit & {
320
+ query?: {
321
+ [x: string]: string | number | boolean | undefined;
322
+ };
323
+ }) => Promise<T>;
324
+ authorize(url: URL): void;
325
+ verifyWebhook(body: Buffer, signature: string | null, webhookUrl: string): boolean;
326
+ listAll<T extends {
327
+ id: string;
328
+ }>(path: string): Promise<T[]>;
329
+ getCard: <T = Record<string, unknown>>(cardId: string) => Promise<T>;
330
+ listBoards: () => Promise<{
331
+ id: string;
332
+ name: string;
333
+ }[]>;
334
+ listLists: (boardId: string) => Promise<{
335
+ id: string;
336
+ name: string;
337
+ }[]>;
338
+ listLabels: (boardId: string) => Promise<{
339
+ color: string;
340
+ id: string;
341
+ name: string;
342
+ }[]>;
343
+ listWebhooks: () => Promise<import("./client.js").TrelloWebhook[]>;
344
+ createWebhook: (idModel: string, callbackURL: string) => Promise<import("./client.js").TrelloWebhook>;
345
+ deleteWebhook: (id: string) => Promise<unknown>;
346
+ };
347
+ input: {
348
+ boardId: string;
349
+ listId: string;
350
+ };
351
+ options: Record<string, never>;
352
+ req: import("frogbot").FrogBotRequest;
353
+ } & {
274
354
  webhookUrl: string;
275
355
  }): Promise<{
276
356
  webhookId: string;
277
357
  webhookUrl: string;
278
358
  owned: boolean;
279
359
  }>;
280
- onDisable(args: import("frogbot").PieceRunArgs<{
281
- boardId: string;
282
- listId: string;
283
- }, Record<string, never>, {
284
- request: <T>(path: string, init?: RequestInit & {
285
- query?: {
286
- [x: string]: string | number | boolean | undefined;
287
- };
288
- }) => Promise<T>;
289
- authorize(url: URL): void;
290
- verifyWebhook(body: Buffer, signature: string | null, webhookUrl: string): boolean;
291
- listAll<T extends {
292
- id: string;
293
- }>(path: string): Promise<T[]>;
294
- getCard: <T = Record<string, unknown>>(cardId: string) => Promise<T>;
295
- listBoards: () => Promise<{
296
- id: string;
297
- name: string;
298
- }[]>;
299
- listLists: (boardId: string) => Promise<{
300
- id: string;
301
- name: string;
302
- }[]>;
303
- listLabels: (boardId: string) => Promise<{
304
- color: string;
305
- id: string;
306
- name: string;
307
- }[]>;
308
- listWebhooks: () => Promise<import("./client.js").TrelloWebhook[]>;
309
- createWebhook: (idModel: string, callbackURL: string) => Promise<import("./client.js").TrelloWebhook>;
310
- deleteWebhook: (id: string) => Promise<unknown>;
311
- }> & {
312
- state: {
313
- webhookId: string;
314
- webhookUrl: string;
315
- owned: boolean;
316
- };
317
- }): Promise<void>;
318
- renew?: {
319
- schedule: string;
320
- run(args: import("frogbot").PieceRunArgs<{
321
- boardId: string;
322
- listId: string;
323
- }, Record<string, never>, {
360
+ onDisable(args: {
361
+ client: {
324
362
  request: <T>(path: string, init?: RequestInit & {
325
363
  query?: {
326
364
  [x: string]: string | number | boolean | undefined;
@@ -348,7 +386,59 @@ export declare const cardMovedToList: {
348
386
  listWebhooks: () => Promise<import("./client.js").TrelloWebhook[]>;
349
387
  createWebhook: (idModel: string, callbackURL: string) => Promise<import("./client.js").TrelloWebhook>;
350
388
  deleteWebhook: (id: string) => Promise<unknown>;
351
- }> & {
389
+ };
390
+ input: {
391
+ boardId: string;
392
+ listId: string;
393
+ };
394
+ options: Record<string, never>;
395
+ req: import("frogbot").FrogBotRequest;
396
+ } & {
397
+ state: {
398
+ webhookId: string;
399
+ webhookUrl: string;
400
+ owned: boolean;
401
+ };
402
+ }): Promise<void>;
403
+ renew?: {
404
+ schedule: string;
405
+ run(args: {
406
+ client: {
407
+ request: <T>(path: string, init?: RequestInit & {
408
+ query?: {
409
+ [x: string]: string | number | boolean | undefined;
410
+ };
411
+ }) => Promise<T>;
412
+ authorize(url: URL): void;
413
+ verifyWebhook(body: Buffer, signature: string | null, webhookUrl: string): boolean;
414
+ listAll<T extends {
415
+ id: string;
416
+ }>(path: string): Promise<T[]>;
417
+ getCard: <T = Record<string, unknown>>(cardId: string) => Promise<T>;
418
+ listBoards: () => Promise<{
419
+ id: string;
420
+ name: string;
421
+ }[]>;
422
+ listLists: (boardId: string) => Promise<{
423
+ id: string;
424
+ name: string;
425
+ }[]>;
426
+ listLabels: (boardId: string) => Promise<{
427
+ color: string;
428
+ id: string;
429
+ name: string;
430
+ }[]>;
431
+ listWebhooks: () => Promise<import("./client.js").TrelloWebhook[]>;
432
+ createWebhook: (idModel: string, callbackURL: string) => Promise<import("./client.js").TrelloWebhook>;
433
+ deleteWebhook: (id: string) => Promise<unknown>;
434
+ };
435
+ input: {
436
+ boardId: string;
437
+ listId: string;
438
+ };
439
+ options: Record<string, never>;
440
+ req: import("frogbot").FrogBotRequest;
441
+ } & {
352
442
  state: {
353
443
  webhookId: string;
354
444
  webhookUrl: string;
@@ -361,38 +451,43 @@ export declare const cardMovedToList: {
361
451
  owned: boolean;
362
452
  }>;
363
453
  } | undefined;
364
- run(args: import("frogbot").PieceRunArgs<{
365
- boardId: string;
366
- listId: string;
367
- }, Record<string, never>, {
368
- request: <T>(path: string, init?: RequestInit & {
369
- query?: {
370
- [x: string]: string | number | boolean | undefined;
371
- };
372
- }) => Promise<T>;
373
- authorize(url: URL): void;
374
- verifyWebhook(body: Buffer, signature: string | null, webhookUrl: string): boolean;
375
- listAll<T extends {
376
- id: string;
377
- }>(path: string): Promise<T[]>;
378
- getCard: <T = Record<string, unknown>>(cardId: string) => Promise<T>;
379
- listBoards: () => Promise<{
380
- id: string;
381
- name: string;
382
- }[]>;
383
- listLists: (boardId: string) => Promise<{
384
- id: string;
385
- name: string;
386
- }[]>;
387
- listLabels: (boardId: string) => Promise<{
388
- color: string;
389
- id: string;
390
- name: string;
391
- }[]>;
392
- listWebhooks: () => Promise<import("./client.js").TrelloWebhook[]>;
393
- createWebhook: (idModel: string, callbackURL: string) => Promise<import("./client.js").TrelloWebhook>;
394
- deleteWebhook: (id: string) => Promise<unknown>;
395
- }> & {
454
+ run(args: {
455
+ client: {
456
+ request: <T>(path: string, init?: RequestInit & {
457
+ query?: {
458
+ [x: string]: string | number | boolean | undefined;
459
+ };
460
+ }) => Promise<T>;
461
+ authorize(url: URL): void;
462
+ verifyWebhook(body: Buffer, signature: string | null, webhookUrl: string): boolean;
463
+ listAll<T extends {
464
+ id: string;
465
+ }>(path: string): Promise<T[]>;
466
+ getCard: <T = Record<string, unknown>>(cardId: string) => Promise<T>;
467
+ listBoards: () => Promise<{
468
+ id: string;
469
+ name: string;
470
+ }[]>;
471
+ listLists: (boardId: string) => Promise<{
472
+ id: string;
473
+ name: string;
474
+ }[]>;
475
+ listLabels: (boardId: string) => Promise<{
476
+ color: string;
477
+ id: string;
478
+ name: string;
479
+ }[]>;
480
+ listWebhooks: () => Promise<import("./client.js").TrelloWebhook[]>;
481
+ createWebhook: (idModel: string, callbackURL: string) => Promise<import("./client.js").TrelloWebhook>;
482
+ deleteWebhook: (id: string) => Promise<unknown>;
483
+ };
484
+ input: {
485
+ boardId: string;
486
+ listId: string;
487
+ };
488
+ options: Record<string, never>;
489
+ req: import("frogbot").FrogBotRequest;
490
+ } & {
396
491
  state: {
397
492
  webhookId: string;
398
493
  webhookUrl: string;
@@ -410,6 +505,61 @@ export declare const cardMovedToList: {
410
505
  dateLastActivity?: string | undefined;
411
506
  url?: string | undefined;
412
507
  }>[]>;
508
+ reply?(args: {
509
+ client: {
510
+ request: <T>(path: string, init?: RequestInit & {
511
+ query?: {
512
+ [x: string]: string | number | boolean | undefined;
513
+ };
514
+ }) => Promise<T>;
515
+ authorize(url: URL): void;
516
+ verifyWebhook(body: Buffer, signature: string | null, webhookUrl: string): boolean;
517
+ listAll<T extends {
518
+ id: string;
519
+ }>(path: string): Promise<T[]>;
520
+ getCard: <T = Record<string, unknown>>(cardId: string) => Promise<T>;
521
+ listBoards: () => Promise<{
522
+ id: string;
523
+ name: string;
524
+ }[]>;
525
+ listLists: (boardId: string) => Promise<{
526
+ id: string;
527
+ name: string;
528
+ }[]>;
529
+ listLabels: (boardId: string) => Promise<{
530
+ color: string;
531
+ id: string;
532
+ name: string;
533
+ }[]>;
534
+ listWebhooks: () => Promise<import("./client.js").TrelloWebhook[]>;
535
+ createWebhook: (idModel: string, callbackURL: string) => Promise<import("./client.js").TrelloWebhook>;
536
+ deleteWebhook: (id: string) => Promise<unknown>;
537
+ };
538
+ input: {
539
+ boardId: string;
540
+ listId: string;
541
+ };
542
+ options: Record<string, never>;
543
+ req: import("frogbot").FrogBotRequest;
544
+ } & {
545
+ state: {
546
+ webhookId: string;
547
+ webhookUrl: string;
548
+ owned: boolean;
549
+ };
550
+ events: import("frogbot").TriggerEvent<{
551
+ [x: string]: unknown;
552
+ id: string;
553
+ name: string;
554
+ desc?: string | undefined;
555
+ idBoard?: string | undefined;
556
+ idList?: string | undefined;
557
+ due?: string | null | undefined;
558
+ dueComplete?: boolean | undefined;
559
+ dateLastActivity?: string | undefined;
560
+ url?: string | undefined;
561
+ }>[];
562
+ }): Response | Promise<Response>;
413
563
  } & {
414
564
  slug: "cardMovedToList";
415
565
  };
@@ -452,40 +602,45 @@ export declare const cardDeadline: {
452
602
  } & {
453
603
  type: "polling";
454
604
  schedule?: string;
455
- run(args: import("frogbot").PieceRunArgs<{
456
- boardId: string;
457
- timeUnit: "minutes" | "hours";
458
- timeBeforeDue: number;
459
- listId?: string | undefined;
460
- }, Record<string, never>, {
461
- request: <T>(path: string, init?: RequestInit & {
462
- query?: {
463
- [x: string]: string | number | boolean | undefined;
464
- };
465
- }) => Promise<T>;
466
- authorize(url: URL): void;
467
- verifyWebhook(body: Buffer, signature: string | null, webhookUrl: string): boolean;
468
- listAll<T extends {
469
- id: string;
470
- }>(path: string): Promise<T[]>;
471
- getCard: <T = Record<string, unknown>>(cardId: string) => Promise<T>;
472
- listBoards: () => Promise<{
473
- id: string;
474
- name: string;
475
- }[]>;
476
- listLists: (boardId: string) => Promise<{
477
- id: string;
478
- name: string;
479
- }[]>;
480
- listLabels: (boardId: string) => Promise<{
481
- color: string;
482
- id: string;
483
- name: string;
484
- }[]>;
485
- listWebhooks: () => Promise<import("./client.js").TrelloWebhook[]>;
486
- createWebhook: (idModel: string, callbackURL: string) => Promise<import("./client.js").TrelloWebhook>;
487
- deleteWebhook: (id: string) => Promise<unknown>;
488
- }> & {
605
+ run(args: {
606
+ client: {
607
+ request: <T>(path: string, init?: RequestInit & {
608
+ query?: {
609
+ [x: string]: string | number | boolean | undefined;
610
+ };
611
+ }) => Promise<T>;
612
+ authorize(url: URL): void;
613
+ verifyWebhook(body: Buffer, signature: string | null, webhookUrl: string): boolean;
614
+ listAll<T extends {
615
+ id: string;
616
+ }>(path: string): Promise<T[]>;
617
+ getCard: <T = Record<string, unknown>>(cardId: string) => Promise<T>;
618
+ listBoards: () => Promise<{
619
+ id: string;
620
+ name: string;
621
+ }[]>;
622
+ listLists: (boardId: string) => Promise<{
623
+ id: string;
624
+ name: string;
625
+ }[]>;
626
+ listLabels: (boardId: string) => Promise<{
627
+ color: string;
628
+ id: string;
629
+ name: string;
630
+ }[]>;
631
+ listWebhooks: () => Promise<import("./client.js").TrelloWebhook[]>;
632
+ createWebhook: (idModel: string, callbackURL: string) => Promise<import("./client.js").TrelloWebhook>;
633
+ deleteWebhook: (id: string) => Promise<unknown>;
634
+ };
635
+ input: {
636
+ boardId: string;
637
+ timeUnit: "minutes" | "hours";
638
+ timeBeforeDue: number;
639
+ listId?: string | undefined;
640
+ };
641
+ options: Record<string, never>;
642
+ req: import("frogbot").FrogBotRequest;
643
+ } & {
489
644
  cursor?: import("frogbot").PieceJSON | undefined;
490
645
  }): Promise<{
491
646
  events: {