@frogbotai/piece-trello 0.22.0 → 0.24.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/index.d.ts CHANGED
@@ -1,24 +1,658 @@
1
- import { type PieceFactoryConfig } from 'frogbot/pieces';
2
- export declare const trelloActions: readonly ["create_card", "get_card", "update_card", "delete_card", "get_card_attachments", "add_card_attachment"];
1
+ import { createTrelloClient } from './client.js';
2
+ export declare const trelloActions: readonly ["createCard", "getCard", "updateCard", "deleteCard", "listCardAttachments", "addCardAttachment", "getCardAttachment", "deleteCardAttachment", "customApiCall"];
3
+ export declare const trelloTriggers: readonly ["cardCreated", "cardMovedToList", "cardDeadline"];
3
4
  export declare const trelloScopes: readonly [];
4
- export declare function createTrello(config?: PieceFactoryConfig): import("frogbot/pieces").Piece & {
5
- /** Create Card: Create a new card in Trello */
6
- createCard: import("node_modules/frogbot/dist/tools/types").AnyTool;
7
- /** Get Card: Gets a card by ID. */
8
- getCard: import("node_modules/frogbot/dist/tools/types").AnyTool;
9
- /** Update Card: Updates an existing card. */
10
- updateCard: import("node_modules/frogbot/dist/tools/types").AnyTool;
11
- /** Delete Card: Deletes an existing card. */
12
- deleteCard: import("node_modules/frogbot/dist/tools/types").AnyTool;
13
- /** Get All Card Attachments: Gets all attachments on a card. */
14
- getCardAttachments: import("node_modules/frogbot/dist/tools/types").AnyTool;
15
- /** Add Card Attachment: Adds an attachment to a card. */
16
- addCardAttachment: import("node_modules/frogbot/dist/tools/types").AnyTool;
17
- /** Get Card Attachment: Gets a specific attachment on a card. */
18
- getCardAttachment: import("node_modules/frogbot/dist/tools/types").AnyTool;
19
- /** Delete Card Attachment: Deletes an attachment from a card. */
20
- deleteCardAttachment: import("node_modules/frogbot/dist/tools/types").AnyTool;
21
- /** Custom API Call: Make a custom API call to a specific endpoint */
22
- customApiCall: import("node_modules/frogbot/dist/tools/types").AnyTool;
23
- };
5
+ export declare const createTrello: import("frogbot").PieceFactory<{
6
+ readonly slug: "trello";
7
+ readonly label: "Trello";
8
+ readonly admin: {
9
+ readonly description: "Manage Trello cards, attachments, and card events";
10
+ readonly group: "Productivity";
11
+ };
12
+ readonly auth: import("zod").ZodObject<{
13
+ username: import("zod").ZodString;
14
+ password: import("zod").ZodString;
15
+ applicationSecret: import("zod").ZodString;
16
+ }, import("zod/v4/core").$strip>;
17
+ readonly client: typeof createTrelloClient;
18
+ readonly webhook: {
19
+ readonly verify: () => Promise<true>;
20
+ readonly handshake: ({ req }: {
21
+ req: import("frogbot").FrogbotRequest;
22
+ options: object;
23
+ }) => Promise<Response | null>;
24
+ };
25
+ readonly actions: readonly [{
26
+ slug: string;
27
+ description: string;
28
+ input: import("zod").ZodObject<{
29
+ boardId: import("zod").ZodString;
30
+ listId: import("zod").ZodString;
31
+ name: import("zod").ZodString;
32
+ description: import("zod").ZodOptional<import("zod").ZodString>;
33
+ position: import("zod").ZodOptional<import("zod").ZodEnum<{
34
+ top: "top";
35
+ bottom: "bottom";
36
+ }>>;
37
+ labelIds: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString>>;
38
+ }, import("zod/v4/core").$strip>;
39
+ output: import("zod").ZodObject<{
40
+ id: import("zod").ZodString;
41
+ name: import("zod").ZodString;
42
+ desc: import("zod").ZodOptional<import("zod").ZodString>;
43
+ idBoard: import("zod").ZodOptional<import("zod").ZodString>;
44
+ idList: import("zod").ZodOptional<import("zod").ZodString>;
45
+ due: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
46
+ dueComplete: import("zod").ZodOptional<import("zod").ZodBoolean>;
47
+ dateLastActivity: import("zod").ZodOptional<import("zod").ZodString>;
48
+ url: import("zod").ZodOptional<import("zod").ZodString>;
49
+ }, import("zod/v4/core").$loose>;
50
+ idempotent: boolean;
51
+ options: {
52
+ boardId: typeof import("./options.js").boardOptions;
53
+ listId: typeof import("./options.js").listOptions;
54
+ labelIds: typeof import("./options.js").labelOptions;
55
+ };
56
+ run({ client, input, }: {
57
+ input: {
58
+ boardId: string;
59
+ description?: string;
60
+ labelIds?: string[];
61
+ listId: string;
62
+ name: string;
63
+ position?: "bottom" | "top";
64
+ };
65
+ client: {
66
+ request: <T>(path: string, init?: RequestInit & {
67
+ query?: {
68
+ [x: string]: string | number | boolean | undefined;
69
+ };
70
+ }) => Promise<T>;
71
+ verifyWebhook(body: Buffer, signature: string | null, webhookUrl: string): boolean;
72
+ listAll<T extends {
73
+ id: string;
74
+ }>(path: string): Promise<T[]>;
75
+ getCard: (cardId: string) => Promise<Record<string, unknown>>;
76
+ listBoards: () => Promise<{
77
+ id: string;
78
+ name: string;
79
+ }[]>;
80
+ listLists: (boardId: string) => Promise<{
81
+ id: string;
82
+ name: string;
83
+ }[]>;
84
+ listLabels: (boardId: string) => Promise<{
85
+ color: string;
86
+ id: string;
87
+ name: string;
88
+ }[]>;
89
+ listWebhooks: () => Promise<import("./client.js").TrelloWebhook[]>;
90
+ createWebhook: (idModel: string, callbackURL: string) => Promise<import("./client.js").TrelloWebhook>;
91
+ deleteWebhook: (id: string) => Promise<unknown>;
92
+ };
93
+ options: Record<string, never>;
94
+ req: import("frogbot").FrogbotRequest;
95
+ }): Promise<unknown>;
96
+ }, {
97
+ slug: string;
98
+ description: string;
99
+ input: import("zod").ZodObject<{
100
+ cardId: import("zod").ZodString;
101
+ }, import("zod/v4/core").$strip>;
102
+ output: import("zod").ZodObject<{
103
+ id: import("zod").ZodString;
104
+ name: import("zod").ZodString;
105
+ desc: import("zod").ZodOptional<import("zod").ZodString>;
106
+ idBoard: import("zod").ZodOptional<import("zod").ZodString>;
107
+ idList: import("zod").ZodOptional<import("zod").ZodString>;
108
+ due: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
109
+ dueComplete: import("zod").ZodOptional<import("zod").ZodBoolean>;
110
+ dateLastActivity: import("zod").ZodOptional<import("zod").ZodString>;
111
+ url: import("zod").ZodOptional<import("zod").ZodString>;
112
+ }, import("zod/v4/core").$loose>;
113
+ idempotent: boolean;
114
+ run({ client, input }: {
115
+ input: {
116
+ cardId: string;
117
+ };
118
+ client: {
119
+ request: <T>(path: string, init?: RequestInit & {
120
+ query?: {
121
+ [x: string]: string | number | boolean | undefined;
122
+ };
123
+ }) => Promise<T>;
124
+ verifyWebhook(body: Buffer, signature: string | null, webhookUrl: string): boolean;
125
+ listAll<T extends {
126
+ id: string;
127
+ }>(path: string): Promise<T[]>;
128
+ getCard: (cardId: string) => Promise<Record<string, unknown>>;
129
+ listBoards: () => Promise<{
130
+ id: string;
131
+ name: string;
132
+ }[]>;
133
+ listLists: (boardId: string) => Promise<{
134
+ id: string;
135
+ name: string;
136
+ }[]>;
137
+ listLabels: (boardId: string) => Promise<{
138
+ color: string;
139
+ id: string;
140
+ name: string;
141
+ }[]>;
142
+ listWebhooks: () => Promise<import("./client.js").TrelloWebhook[]>;
143
+ createWebhook: (idModel: string, callbackURL: string) => Promise<import("./client.js").TrelloWebhook>;
144
+ deleteWebhook: (id: string) => Promise<unknown>;
145
+ };
146
+ options: Record<string, never>;
147
+ req: import("frogbot").FrogbotRequest;
148
+ }): Promise<Record<string, unknown>>;
149
+ }, {
150
+ slug: string;
151
+ description: string;
152
+ input: import("zod").ZodObject<{
153
+ cardId: import("zod").ZodString;
154
+ boardId: import("zod").ZodOptional<import("zod").ZodString>;
155
+ listId: import("zod").ZodOptional<import("zod").ZodString>;
156
+ name: import("zod").ZodOptional<import("zod").ZodString>;
157
+ description: import("zod").ZodOptional<import("zod").ZodString>;
158
+ position: import("zod").ZodOptional<import("zod").ZodEnum<{
159
+ top: "top";
160
+ bottom: "bottom";
161
+ }>>;
162
+ labelIds: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString>>;
163
+ archived: import("zod").ZodOptional<import("zod").ZodBoolean>;
164
+ due: import("zod").ZodOptional<import("zod").ZodString>;
165
+ }, import("zod/v4/core").$strip>;
166
+ output: import("zod").ZodObject<{
167
+ id: import("zod").ZodString;
168
+ name: import("zod").ZodString;
169
+ desc: import("zod").ZodOptional<import("zod").ZodString>;
170
+ idBoard: import("zod").ZodOptional<import("zod").ZodString>;
171
+ idList: import("zod").ZodOptional<import("zod").ZodString>;
172
+ due: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
173
+ dueComplete: import("zod").ZodOptional<import("zod").ZodBoolean>;
174
+ dateLastActivity: import("zod").ZodOptional<import("zod").ZodString>;
175
+ url: import("zod").ZodOptional<import("zod").ZodString>;
176
+ }, import("zod/v4/core").$loose>;
177
+ idempotent: boolean;
178
+ options: {
179
+ boardId: typeof import("./options.js").boardOptions;
180
+ listId: typeof import("./options.js").listOptions;
181
+ labelIds: typeof import("./options.js").labelOptions;
182
+ };
183
+ run({ client, input }: {
184
+ input: Record<string, unknown> & {
185
+ cardId: string;
186
+ };
187
+ client: {
188
+ request: <T>(path: string, init?: RequestInit & {
189
+ query?: {
190
+ [x: string]: string | number | boolean | undefined;
191
+ };
192
+ }) => Promise<T>;
193
+ verifyWebhook(body: Buffer, signature: string | null, webhookUrl: string): boolean;
194
+ listAll<T extends {
195
+ id: string;
196
+ }>(path: string): Promise<T[]>;
197
+ getCard: (cardId: string) => Promise<Record<string, unknown>>;
198
+ listBoards: () => Promise<{
199
+ id: string;
200
+ name: string;
201
+ }[]>;
202
+ listLists: (boardId: string) => Promise<{
203
+ id: string;
204
+ name: string;
205
+ }[]>;
206
+ listLabels: (boardId: string) => Promise<{
207
+ color: string;
208
+ id: string;
209
+ name: string;
210
+ }[]>;
211
+ listWebhooks: () => Promise<import("./client.js").TrelloWebhook[]>;
212
+ createWebhook: (idModel: string, callbackURL: string) => Promise<import("./client.js").TrelloWebhook>;
213
+ deleteWebhook: (id: string) => Promise<unknown>;
214
+ };
215
+ options: Record<string, never>;
216
+ req: import("frogbot").FrogbotRequest;
217
+ }): Promise<unknown>;
218
+ }, {
219
+ slug: string;
220
+ description: string;
221
+ input: import("zod").ZodObject<{
222
+ cardId: import("zod").ZodString;
223
+ }, import("zod/v4/core").$strip>;
224
+ output: import("zod").ZodObject<{}, import("zod/v4/core").$loose>;
225
+ idempotent: boolean;
226
+ run({ client, input }: {
227
+ input: {
228
+ cardId: string;
229
+ };
230
+ client: {
231
+ request: <T>(path: string, init?: RequestInit & {
232
+ query?: {
233
+ [x: string]: string | number | boolean | undefined;
234
+ };
235
+ }) => Promise<T>;
236
+ verifyWebhook(body: Buffer, signature: string | null, webhookUrl: string): boolean;
237
+ listAll<T extends {
238
+ id: string;
239
+ }>(path: string): Promise<T[]>;
240
+ getCard: (cardId: string) => Promise<Record<string, unknown>>;
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
+ options: Record<string, never>;
259
+ req: import("frogbot").FrogbotRequest;
260
+ }): Promise<unknown>;
261
+ }, {
262
+ slug: string;
263
+ description: string;
264
+ input: import("zod").ZodObject<{
265
+ cardId: import("zod").ZodString;
266
+ }, import("zod/v4/core").$strip>;
267
+ output: import("zod").ZodArray<import("zod").ZodObject<{
268
+ id: import("zod").ZodString;
269
+ name: import("zod").ZodString;
270
+ url: import("zod").ZodString;
271
+ mimeType: import("zod").ZodOptional<import("zod").ZodString>;
272
+ }, import("zod/v4/core").$loose>>;
273
+ idempotent: boolean;
274
+ run({ client, input }: {
275
+ input: {
276
+ cardId: string;
277
+ };
278
+ client: {
279
+ request: <T>(path: string, init?: RequestInit & {
280
+ query?: {
281
+ [x: string]: string | number | boolean | undefined;
282
+ };
283
+ }) => Promise<T>;
284
+ verifyWebhook(body: Buffer, signature: string | null, webhookUrl: string): boolean;
285
+ listAll<T extends {
286
+ id: string;
287
+ }>(path: string): Promise<T[]>;
288
+ getCard: (cardId: string) => Promise<Record<string, unknown>>;
289
+ listBoards: () => Promise<{
290
+ id: string;
291
+ name: string;
292
+ }[]>;
293
+ listLists: (boardId: string) => Promise<{
294
+ id: string;
295
+ name: string;
296
+ }[]>;
297
+ listLabels: (boardId: string) => Promise<{
298
+ color: string;
299
+ id: string;
300
+ name: string;
301
+ }[]>;
302
+ listWebhooks: () => Promise<import("./client.js").TrelloWebhook[]>;
303
+ createWebhook: (idModel: string, callbackURL: string) => Promise<import("./client.js").TrelloWebhook>;
304
+ deleteWebhook: (id: string) => Promise<unknown>;
305
+ };
306
+ options: Record<string, never>;
307
+ req: import("frogbot").FrogbotRequest;
308
+ }): Promise<unknown>;
309
+ }, {
310
+ slug: string;
311
+ description: string;
312
+ input: import("zod").ZodObject<{
313
+ cardId: import("zod").ZodString;
314
+ attachment: import("zod").ZodObject<{
315
+ fileId: import("zod").ZodUnion<readonly [import("zod").ZodString, import("zod").ZodNumber]>;
316
+ name: import("zod").ZodOptional<import("zod").ZodString>;
317
+ }, import("zod/v4/core").$strip>;
318
+ name: import("zod").ZodOptional<import("zod").ZodString>;
319
+ mimeType: import("zod").ZodOptional<import("zod").ZodString>;
320
+ setCover: import("zod").ZodOptional<import("zod").ZodBoolean>;
321
+ }, import("zod/v4/core").$strip>;
322
+ output: import("zod").ZodObject<{
323
+ id: import("zod").ZodString;
324
+ name: import("zod").ZodString;
325
+ url: import("zod").ZodString;
326
+ mimeType: import("zod").ZodOptional<import("zod").ZodString>;
327
+ }, import("zod/v4/core").$loose>;
328
+ idempotent: boolean;
329
+ run({ client, input, req, }: {
330
+ input: {
331
+ attachment: {
332
+ fileId: number | string;
333
+ name?: string;
334
+ };
335
+ cardId: string;
336
+ mimeType?: string;
337
+ name?: string;
338
+ setCover?: boolean;
339
+ };
340
+ client: {
341
+ request: <T>(path: string, init?: RequestInit & {
342
+ query?: {
343
+ [x: string]: string | number | boolean | undefined;
344
+ };
345
+ }) => Promise<T>;
346
+ verifyWebhook(body: Buffer, signature: string | null, webhookUrl: string): boolean;
347
+ listAll<T extends {
348
+ id: string;
349
+ }>(path: string): Promise<T[]>;
350
+ getCard: (cardId: string) => Promise<Record<string, unknown>>;
351
+ listBoards: () => Promise<{
352
+ id: string;
353
+ name: string;
354
+ }[]>;
355
+ listLists: (boardId: string) => Promise<{
356
+ id: string;
357
+ name: string;
358
+ }[]>;
359
+ listLabels: (boardId: string) => Promise<{
360
+ color: string;
361
+ id: string;
362
+ name: string;
363
+ }[]>;
364
+ listWebhooks: () => Promise<import("./client.js").TrelloWebhook[]>;
365
+ createWebhook: (idModel: string, callbackURL: string) => Promise<import("./client.js").TrelloWebhook>;
366
+ deleteWebhook: (id: string) => Promise<unknown>;
367
+ };
368
+ options: Record<string, never>;
369
+ req: import("frogbot").FrogbotRequest;
370
+ }): Promise<unknown>;
371
+ }, {
372
+ slug: string;
373
+ description: string;
374
+ input: import("zod").ZodObject<{
375
+ cardId: import("zod").ZodString;
376
+ attachmentId: import("zod").ZodString;
377
+ }, import("zod/v4/core").$strip>;
378
+ output: import("zod").ZodObject<{
379
+ id: import("zod").ZodString;
380
+ name: import("zod").ZodString;
381
+ url: import("zod").ZodString;
382
+ mimeType: import("zod").ZodOptional<import("zod").ZodString>;
383
+ }, import("zod/v4/core").$loose>;
384
+ idempotent: boolean;
385
+ run({ client, input }: {
386
+ input: {
387
+ attachmentId: string;
388
+ cardId: string;
389
+ };
390
+ client: {
391
+ request: <T>(path: string, init?: RequestInit & {
392
+ query?: {
393
+ [x: string]: string | number | boolean | undefined;
394
+ };
395
+ }) => Promise<T>;
396
+ verifyWebhook(body: Buffer, signature: string | null, webhookUrl: string): boolean;
397
+ listAll<T extends {
398
+ id: string;
399
+ }>(path: string): Promise<T[]>;
400
+ getCard: (cardId: string) => Promise<Record<string, unknown>>;
401
+ listBoards: () => Promise<{
402
+ id: string;
403
+ name: string;
404
+ }[]>;
405
+ listLists: (boardId: string) => Promise<{
406
+ id: string;
407
+ name: string;
408
+ }[]>;
409
+ listLabels: (boardId: string) => Promise<{
410
+ color: string;
411
+ id: string;
412
+ name: string;
413
+ }[]>;
414
+ listWebhooks: () => Promise<import("./client.js").TrelloWebhook[]>;
415
+ createWebhook: (idModel: string, callbackURL: string) => Promise<import("./client.js").TrelloWebhook>;
416
+ deleteWebhook: (id: string) => Promise<unknown>;
417
+ };
418
+ options: Record<string, never>;
419
+ req: import("frogbot").FrogbotRequest;
420
+ }): Promise<unknown>;
421
+ }, {
422
+ slug: string;
423
+ description: string;
424
+ input: import("zod").ZodObject<{
425
+ cardId: import("zod").ZodString;
426
+ attachmentId: import("zod").ZodString;
427
+ }, import("zod/v4/core").$strip>;
428
+ output: import("zod").ZodObject<{}, import("zod/v4/core").$loose>;
429
+ idempotent: boolean;
430
+ run({ client, input }: {
431
+ input: {
432
+ attachmentId: string;
433
+ cardId: string;
434
+ };
435
+ client: {
436
+ request: <T>(path: string, init?: RequestInit & {
437
+ query?: {
438
+ [x: string]: string | number | boolean | undefined;
439
+ };
440
+ }) => Promise<T>;
441
+ verifyWebhook(body: Buffer, signature: string | null, webhookUrl: string): boolean;
442
+ listAll<T extends {
443
+ id: string;
444
+ }>(path: string): Promise<T[]>;
445
+ getCard: (cardId: string) => Promise<Record<string, unknown>>;
446
+ listBoards: () => Promise<{
447
+ id: string;
448
+ name: string;
449
+ }[]>;
450
+ listLists: (boardId: string) => Promise<{
451
+ id: string;
452
+ name: string;
453
+ }[]>;
454
+ listLabels: (boardId: string) => Promise<{
455
+ color: string;
456
+ id: string;
457
+ name: string;
458
+ }[]>;
459
+ listWebhooks: () => Promise<import("./client.js").TrelloWebhook[]>;
460
+ createWebhook: (idModel: string, callbackURL: string) => Promise<import("./client.js").TrelloWebhook>;
461
+ deleteWebhook: (id: string) => Promise<unknown>;
462
+ };
463
+ options: Record<string, never>;
464
+ req: import("frogbot").FrogbotRequest;
465
+ }): Promise<unknown>;
466
+ }, {
467
+ slug: string;
468
+ description: string;
469
+ input: import("zod").ZodObject<{
470
+ method: import("zod").ZodEnum<{
471
+ POST: "POST";
472
+ DELETE: "DELETE";
473
+ GET: "GET";
474
+ PUT: "PUT";
475
+ PATCH: "PATCH";
476
+ }>;
477
+ path: import("zod").ZodString;
478
+ headers: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>>;
479
+ query: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnion<readonly [import("zod").ZodString, import("zod").ZodNumber, import("zod").ZodBoolean]>>>;
480
+ body: import("zod").ZodOptional<import("zod").ZodJSONSchema>;
481
+ }, import("zod/v4/core").$strip>;
482
+ output: import("zod").ZodJSONSchema;
483
+ idempotent: boolean;
484
+ run({ client, input }: {
485
+ input: {
486
+ method: "POST" | "DELETE" | "GET" | "PUT" | "PATCH";
487
+ path: string;
488
+ headers?: Record<string, string> | undefined;
489
+ query?: Record<string, string | number | boolean> | undefined;
490
+ body?: import("zod").JSONType | undefined;
491
+ };
492
+ client: {
493
+ request: <T>(path: string, init?: RequestInit & {
494
+ query?: {
495
+ [x: string]: string | number | boolean | undefined;
496
+ };
497
+ }) => Promise<T>;
498
+ verifyWebhook(body: Buffer, signature: string | null, webhookUrl: string): boolean;
499
+ listAll<T extends {
500
+ id: string;
501
+ }>(path: string): Promise<T[]>;
502
+ getCard: (cardId: string) => Promise<Record<string, unknown>>;
503
+ listBoards: () => Promise<{
504
+ id: string;
505
+ name: string;
506
+ }[]>;
507
+ listLists: (boardId: string) => Promise<{
508
+ id: string;
509
+ name: string;
510
+ }[]>;
511
+ listLabels: (boardId: string) => Promise<{
512
+ color: string;
513
+ id: string;
514
+ name: string;
515
+ }[]>;
516
+ listWebhooks: () => Promise<import("./client.js").TrelloWebhook[]>;
517
+ createWebhook: (idModel: string, callbackURL: string) => Promise<import("./client.js").TrelloWebhook>;
518
+ deleteWebhook: (id: string) => Promise<unknown>;
519
+ };
520
+ options: Record<string, never>;
521
+ req: import("frogbot").FrogbotRequest;
522
+ }): Promise<unknown>;
523
+ }];
524
+ readonly triggers: readonly [import("frogbot").PieceWebhookTrigger<import("zod").ZodObject<import("zod/v4/core").$ZodLooseShape, import("zod/v4/core").$strip>, import("zod").ZodObject<{
525
+ id: import("zod").ZodString;
526
+ name: import("zod").ZodString;
527
+ desc: import("zod").ZodOptional<import("zod").ZodString>;
528
+ idBoard: import("zod").ZodOptional<import("zod").ZodString>;
529
+ idList: import("zod").ZodOptional<import("zod").ZodString>;
530
+ due: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
531
+ dueComplete: import("zod").ZodOptional<import("zod").ZodBoolean>;
532
+ dateLastActivity: import("zod").ZodOptional<import("zod").ZodString>;
533
+ url: import("zod").ZodOptional<import("zod").ZodString>;
534
+ }, import("zod/v4/core").$loose>, Record<string, never>, {
535
+ request: <T>(path: string, init?: RequestInit & {
536
+ query?: {
537
+ [x: string]: string | number | boolean | undefined;
538
+ };
539
+ }) => Promise<T>;
540
+ verifyWebhook(body: Buffer, signature: string | null, webhookUrl: string): boolean;
541
+ listAll<T extends {
542
+ id: string;
543
+ }>(path: string): Promise<T[]>;
544
+ getCard: (cardId: string) => Promise<Record<string, unknown>>;
545
+ listBoards: () => Promise<{
546
+ id: string;
547
+ name: string;
548
+ }[]>;
549
+ listLists: (boardId: string) => Promise<{
550
+ id: string;
551
+ name: string;
552
+ }[]>;
553
+ listLabels: (boardId: string) => Promise<{
554
+ color: string;
555
+ id: string;
556
+ name: string;
557
+ }[]>;
558
+ listWebhooks: () => Promise<import("./client.js").TrelloWebhook[]>;
559
+ createWebhook: (idModel: string, callbackURL: string) => Promise<import("./client.js").TrelloWebhook>;
560
+ deleteWebhook: (id: string) => Promise<unknown>;
561
+ }, {
562
+ webhookId: string;
563
+ webhookUrl: string;
564
+ owned: boolean;
565
+ }>, import("frogbot").PieceWebhookTrigger<import("zod").ZodObject<import("zod/v4/core").$ZodLooseShape, import("zod/v4/core").$strip>, import("zod").ZodObject<{
566
+ id: import("zod").ZodString;
567
+ name: import("zod").ZodString;
568
+ desc: import("zod").ZodOptional<import("zod").ZodString>;
569
+ idBoard: import("zod").ZodOptional<import("zod").ZodString>;
570
+ idList: import("zod").ZodOptional<import("zod").ZodString>;
571
+ due: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
572
+ dueComplete: import("zod").ZodOptional<import("zod").ZodBoolean>;
573
+ dateLastActivity: import("zod").ZodOptional<import("zod").ZodString>;
574
+ url: import("zod").ZodOptional<import("zod").ZodString>;
575
+ }, import("zod/v4/core").$loose>, Record<string, never>, {
576
+ request: <T>(path: string, init?: RequestInit & {
577
+ query?: {
578
+ [x: string]: string | number | boolean | undefined;
579
+ };
580
+ }) => Promise<T>;
581
+ verifyWebhook(body: Buffer, signature: string | null, webhookUrl: string): boolean;
582
+ listAll<T extends {
583
+ id: string;
584
+ }>(path: string): Promise<T[]>;
585
+ getCard: (cardId: string) => Promise<Record<string, unknown>>;
586
+ listBoards: () => Promise<{
587
+ id: string;
588
+ name: string;
589
+ }[]>;
590
+ listLists: (boardId: string) => Promise<{
591
+ id: string;
592
+ name: string;
593
+ }[]>;
594
+ listLabels: (boardId: string) => Promise<{
595
+ color: string;
596
+ id: string;
597
+ name: string;
598
+ }[]>;
599
+ listWebhooks: () => Promise<import("./client.js").TrelloWebhook[]>;
600
+ createWebhook: (idModel: string, callbackURL: string) => Promise<import("./client.js").TrelloWebhook>;
601
+ deleteWebhook: (id: string) => Promise<unknown>;
602
+ }, {
603
+ webhookId: string;
604
+ webhookUrl: string;
605
+ owned: boolean;
606
+ }>, {
607
+ slug: string;
608
+ description: string;
609
+ type: "polling";
610
+ schedule: string;
611
+ input: import("zod").ZodObject<{
612
+ boardId: import("zod").ZodString;
613
+ listId: import("zod").ZodOptional<import("zod").ZodString>;
614
+ timeUnit: import("zod").ZodDefault<import("zod").ZodEnum<{
615
+ minutes: "minutes";
616
+ hours: "hours";
617
+ }>>;
618
+ timeBeforeDue: import("zod").ZodDefault<import("zod").ZodNumber>;
619
+ }, import("zod/v4/core").$strip>;
620
+ output: import("zod").ZodObject<{
621
+ id: import("zod").ZodString;
622
+ name: import("zod").ZodString;
623
+ desc: import("zod").ZodOptional<import("zod").ZodString>;
624
+ idBoard: import("zod").ZodOptional<import("zod").ZodString>;
625
+ idList: import("zod").ZodOptional<import("zod").ZodString>;
626
+ due: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
627
+ dueComplete: import("zod").ZodOptional<import("zod").ZodBoolean>;
628
+ dateLastActivity: import("zod").ZodOptional<import("zod").ZodString>;
629
+ url: import("zod").ZodOptional<import("zod").ZodString>;
630
+ }, import("zod/v4/core").$loose>;
631
+ run({ client, input, cursor, }: import("frogbot").PieceRunArgs<import("zod").infer<import("zod").ZodObject<{
632
+ boardId: import("zod").ZodString;
633
+ listId: import("zod").ZodOptional<import("zod").ZodString>;
634
+ timeUnit: import("zod").ZodDefault<import("zod").ZodEnum<{
635
+ minutes: "minutes";
636
+ hours: "hours";
637
+ }>>;
638
+ timeBeforeDue: import("zod").ZodDefault<import("zod").ZodNumber>;
639
+ }, import("zod/v4/core").$strip>>, Record<string, never>, import("./client.js").Trello> & {
640
+ cursor?: number;
641
+ }): Promise<{
642
+ events: {
643
+ [x: string]: unknown;
644
+ id: string;
645
+ name: string;
646
+ desc?: string | undefined;
647
+ idBoard?: string | undefined;
648
+ idList?: string | undefined;
649
+ due?: string | null | undefined;
650
+ dueComplete?: boolean | undefined;
651
+ dateLastActivity?: string | undefined;
652
+ url?: string | undefined;
653
+ }[];
654
+ cursor: number;
655
+ }>;
656
+ }];
657
+ }>;
24
658
  //# sourceMappingURL=index.d.ts.map