@frogbotai/piece-trello 0.27.0 → 0.29.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
@@ -22,322 +22,537 @@ export declare const createTrello: import("frogbot").PieceFactory<{
22
22
  options: object;
23
23
  }) => Promise<Response | null>;
24
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>;
25
+ readonly actions: readonly [import("frogbot").PieceActionDefinition<import("zod").ZodObject<{
26
+ boardId: import("zod").ZodString;
27
+ listId: import("zod").ZodString;
28
+ name: import("zod").ZodString;
29
+ description: import("zod").ZodOptional<import("zod").ZodString>;
30
+ position: import("zod").ZodOptional<import("zod").ZodEnum<{
31
+ top: "top";
32
+ bottom: "bottom";
33
+ }>>;
34
+ labelIds: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString>>;
35
+ }, import("zod/v4/core").$strip>, import("zod").ZodObject<{
36
+ id: import("zod").ZodString;
37
+ name: import("zod").ZodString;
38
+ desc: import("zod").ZodOptional<import("zod").ZodString>;
39
+ idBoard: import("zod").ZodOptional<import("zod").ZodString>;
40
+ idList: import("zod").ZodOptional<import("zod").ZodString>;
41
+ due: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
42
+ dueComplete: import("zod").ZodOptional<import("zod").ZodBoolean>;
43
+ dateLastActivity: import("zod").ZodOptional<import("zod").ZodString>;
44
+ url: import("zod").ZodOptional<import("zod").ZodString>;
45
+ }, import("zod/v4/core").$loose>, Record<string, never>, {
46
+ request: <T>(path: string, init?: RequestInit & {
47
+ query?: {
48
+ [x: string]: string | number | boolean | undefined;
92
49
  };
93
- options: Record<string, never>;
94
- req: import("frogbot").FrogBotRequest;
95
- }): Promise<unknown>;
50
+ }) => Promise<T>;
51
+ verifyWebhook(body: Buffer, signature: string | null, webhookUrl: string): boolean;
52
+ listAll<T extends {
53
+ id: string;
54
+ }>(path: string): Promise<T[]>;
55
+ getCard: <T = Record<string, unknown>>(cardId: string) => Promise<T>;
56
+ listBoards: () => Promise<{
57
+ id: string;
58
+ name: string;
59
+ }[]>;
60
+ listLists: (boardId: string) => Promise<{
61
+ id: string;
62
+ name: string;
63
+ }[]>;
64
+ listLabels: (boardId: string) => Promise<{
65
+ color: string;
66
+ id: string;
67
+ name: string;
68
+ }[]>;
69
+ listWebhooks: () => Promise<import("./client.js").TrelloWebhook[]>;
70
+ createWebhook: (idModel: string, callbackURL: string) => Promise<import("./client.js").TrelloWebhook>;
71
+ deleteWebhook: (id: string) => Promise<unknown>;
96
72
  }, {
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;
73
+ [x: string]: unknown;
74
+ id: string;
75
+ name: string;
76
+ desc?: string | undefined;
77
+ idBoard?: string | undefined;
78
+ idList?: string | undefined;
79
+ due?: string | null | undefined;
80
+ dueComplete?: boolean | undefined;
81
+ dateLastActivity?: string | undefined;
82
+ url?: string | undefined;
83
+ }> & {
84
+ slug: "createCard";
85
+ }, import("frogbot").PieceActionDefinition<import("zod").ZodObject<{
86
+ cardId: import("zod").ZodString;
87
+ }, import("zod/v4/core").$strip>, import("zod").ZodObject<{
88
+ id: import("zod").ZodString;
89
+ name: import("zod").ZodString;
90
+ desc: import("zod").ZodOptional<import("zod").ZodString>;
91
+ idBoard: import("zod").ZodOptional<import("zod").ZodString>;
92
+ idList: import("zod").ZodOptional<import("zod").ZodString>;
93
+ due: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
94
+ dueComplete: import("zod").ZodOptional<import("zod").ZodBoolean>;
95
+ dateLastActivity: import("zod").ZodOptional<import("zod").ZodString>;
96
+ url: import("zod").ZodOptional<import("zod").ZodString>;
97
+ }, import("zod/v4/core").$loose>, Record<string, never>, {
98
+ request: <T>(path: string, init?: RequestInit & {
99
+ query?: {
100
+ [x: string]: string | number | boolean | undefined;
117
101
  };
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>;
102
+ }) => Promise<T>;
103
+ verifyWebhook(body: Buffer, signature: string | null, webhookUrl: string): boolean;
104
+ listAll<T extends {
105
+ id: string;
106
+ }>(path: string): Promise<T[]>;
107
+ getCard: <T = Record<string, unknown>>(cardId: string) => Promise<T>;
108
+ listBoards: () => Promise<{
109
+ id: string;
110
+ name: string;
111
+ }[]>;
112
+ listLists: (boardId: string) => Promise<{
113
+ id: string;
114
+ name: string;
115
+ }[]>;
116
+ listLabels: (boardId: string) => Promise<{
117
+ color: string;
118
+ id: string;
119
+ name: string;
120
+ }[]>;
121
+ listWebhooks: () => Promise<import("./client.js").TrelloWebhook[]>;
122
+ createWebhook: (idModel: string, callbackURL: string) => Promise<import("./client.js").TrelloWebhook>;
123
+ deleteWebhook: (id: string) => Promise<unknown>;
124
+ }, {
125
+ [x: string]: unknown;
126
+ id: string;
127
+ name: string;
128
+ desc?: string | undefined;
129
+ idBoard?: string | undefined;
130
+ idList?: string | undefined;
131
+ due?: string | null | undefined;
132
+ dueComplete?: boolean | undefined;
133
+ dateLastActivity?: string | undefined;
134
+ url?: string | undefined;
135
+ }> & {
136
+ slug: "getCard";
137
+ }, import("frogbot").PieceActionDefinition<import("zod").ZodObject<{
138
+ cardId: import("zod").ZodString;
139
+ boardId: import("zod").ZodOptional<import("zod").ZodString>;
140
+ listId: import("zod").ZodOptional<import("zod").ZodString>;
141
+ name: import("zod").ZodOptional<import("zod").ZodString>;
142
+ description: import("zod").ZodOptional<import("zod").ZodString>;
143
+ position: import("zod").ZodOptional<import("zod").ZodEnum<{
144
+ top: "top";
145
+ bottom: "bottom";
146
+ }>>;
147
+ labelIds: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString>>;
148
+ archived: import("zod").ZodOptional<import("zod").ZodBoolean>;
149
+ due: import("zod").ZodOptional<import("zod").ZodString>;
150
+ }, import("zod/v4/core").$strip>, import("zod").ZodObject<{
151
+ id: import("zod").ZodString;
152
+ name: import("zod").ZodString;
153
+ desc: import("zod").ZodOptional<import("zod").ZodString>;
154
+ idBoard: import("zod").ZodOptional<import("zod").ZodString>;
155
+ idList: import("zod").ZodOptional<import("zod").ZodString>;
156
+ due: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
157
+ dueComplete: import("zod").ZodOptional<import("zod").ZodBoolean>;
158
+ dateLastActivity: import("zod").ZodOptional<import("zod").ZodString>;
159
+ url: import("zod").ZodOptional<import("zod").ZodString>;
160
+ }, import("zod/v4/core").$loose>, Record<string, never>, {
161
+ request: <T>(path: string, init?: RequestInit & {
162
+ query?: {
163
+ [x: string]: string | number | boolean | undefined;
145
164
  };
146
- options: Record<string, never>;
147
- req: import("frogbot").FrogBotRequest;
148
- }): Promise<Record<string, unknown>>;
165
+ }) => Promise<T>;
166
+ verifyWebhook(body: Buffer, signature: string | null, webhookUrl: string): boolean;
167
+ listAll<T extends {
168
+ id: string;
169
+ }>(path: string): Promise<T[]>;
170
+ getCard: <T = Record<string, unknown>>(cardId: string) => Promise<T>;
171
+ listBoards: () => Promise<{
172
+ id: string;
173
+ name: string;
174
+ }[]>;
175
+ listLists: (boardId: string) => Promise<{
176
+ id: string;
177
+ name: string;
178
+ }[]>;
179
+ listLabels: (boardId: string) => Promise<{
180
+ color: string;
181
+ id: string;
182
+ name: string;
183
+ }[]>;
184
+ listWebhooks: () => Promise<import("./client.js").TrelloWebhook[]>;
185
+ createWebhook: (idModel: string, callbackURL: string) => Promise<import("./client.js").TrelloWebhook>;
186
+ deleteWebhook: (id: string) => Promise<unknown>;
149
187
  }, {
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;
188
+ [x: string]: unknown;
189
+ id: string;
190
+ name: string;
191
+ desc?: string | undefined;
192
+ idBoard?: string | undefined;
193
+ idList?: string | undefined;
194
+ due?: string | null | undefined;
195
+ dueComplete?: boolean | undefined;
196
+ dateLastActivity?: string | undefined;
197
+ url?: string | undefined;
198
+ }> & {
199
+ slug: "updateCard";
200
+ }, import("frogbot").PieceActionDefinition<import("zod").ZodObject<{
201
+ cardId: import("zod").ZodString;
202
+ }, import("zod/v4/core").$strip>, import("zod").ZodObject<{}, import("zod/v4/core").$loose>, Record<string, never>, {
203
+ request: <T>(path: string, init?: RequestInit & {
204
+ query?: {
205
+ [x: string]: string | number | boolean | undefined;
186
206
  };
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>;
207
+ }) => Promise<T>;
208
+ verifyWebhook(body: Buffer, signature: string | null, webhookUrl: string): boolean;
209
+ listAll<T extends {
210
+ id: string;
211
+ }>(path: string): Promise<T[]>;
212
+ getCard: <T = Record<string, unknown>>(cardId: string) => Promise<T>;
213
+ listBoards: () => Promise<{
214
+ id: string;
215
+ name: string;
216
+ }[]>;
217
+ listLists: (boardId: string) => Promise<{
218
+ id: string;
219
+ name: string;
220
+ }[]>;
221
+ listLabels: (boardId: string) => Promise<{
222
+ color: string;
223
+ id: string;
224
+ name: string;
225
+ }[]>;
226
+ listWebhooks: () => Promise<import("./client.js").TrelloWebhook[]>;
227
+ createWebhook: (idModel: string, callbackURL: string) => Promise<import("./client.js").TrelloWebhook>;
228
+ deleteWebhook: (id: string) => Promise<unknown>;
229
+ }, {
230
+ [x: string]: unknown;
231
+ }> & {
232
+ slug: "deleteCard";
233
+ }, import("frogbot").PieceActionDefinition<import("zod").ZodObject<{
234
+ cardId: import("zod").ZodString;
235
+ }, import("zod/v4/core").$strip>, import("zod").ZodArray<import("zod").ZodObject<{
236
+ id: import("zod").ZodString;
237
+ name: import("zod").ZodString;
238
+ url: import("zod").ZodString;
239
+ mimeType: import("zod").ZodOptional<import("zod").ZodString>;
240
+ }, import("zod/v4/core").$loose>>, Record<string, never>, {
241
+ request: <T>(path: string, init?: RequestInit & {
242
+ query?: {
243
+ [x: string]: string | number | boolean | undefined;
214
244
  };
215
- options: Record<string, never>;
216
- req: import("frogbot").FrogBotRequest;
217
- }): Promise<unknown>;
245
+ }) => Promise<T>;
246
+ verifyWebhook(body: Buffer, signature: string | null, webhookUrl: string): boolean;
247
+ listAll<T extends {
248
+ id: string;
249
+ }>(path: string): Promise<T[]>;
250
+ getCard: <T = Record<string, unknown>>(cardId: string) => Promise<T>;
251
+ listBoards: () => Promise<{
252
+ id: string;
253
+ name: string;
254
+ }[]>;
255
+ listLists: (boardId: string) => Promise<{
256
+ id: string;
257
+ name: string;
258
+ }[]>;
259
+ listLabels: (boardId: string) => Promise<{
260
+ color: string;
261
+ id: string;
262
+ name: string;
263
+ }[]>;
264
+ listWebhooks: () => Promise<import("./client.js").TrelloWebhook[]>;
265
+ createWebhook: (idModel: string, callbackURL: string) => Promise<import("./client.js").TrelloWebhook>;
266
+ deleteWebhook: (id: string) => Promise<unknown>;
218
267
  }, {
219
- slug: string;
220
- description: string;
221
- input: import("zod").ZodObject<{
222
- cardId: import("zod").ZodString;
268
+ [x: string]: unknown;
269
+ id: string;
270
+ name: string;
271
+ url: string;
272
+ mimeType?: string | undefined;
273
+ }[]> & {
274
+ slug: "listCardAttachments";
275
+ }, import("frogbot").PieceActionDefinition<import("zod").ZodObject<{
276
+ cardId: import("zod").ZodString;
277
+ attachment: import("zod").ZodObject<{
278
+ fileId: import("zod").ZodUnion<readonly [import("zod").ZodString, import("zod").ZodNumber]>;
279
+ name: import("zod").ZodOptional<import("zod").ZodString>;
223
280
  }, 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>;
281
+ name: import("zod").ZodOptional<import("zod").ZodString>;
282
+ mimeType: import("zod").ZodOptional<import("zod").ZodString>;
283
+ setCover: import("zod").ZodOptional<import("zod").ZodBoolean>;
284
+ }, import("zod/v4/core").$strip>, import("zod").ZodObject<{
285
+ id: import("zod").ZodString;
286
+ name: import("zod").ZodString;
287
+ url: import("zod").ZodString;
288
+ mimeType: import("zod").ZodOptional<import("zod").ZodString>;
289
+ }, import("zod/v4/core").$loose>, Record<string, never>, {
290
+ request: <T>(path: string, init?: RequestInit & {
291
+ query?: {
292
+ [x: string]: string | number | boolean | undefined;
257
293
  };
258
- options: Record<string, never>;
259
- req: import("frogbot").FrogBotRequest;
260
- }): Promise<unknown>;
294
+ }) => Promise<T>;
295
+ verifyWebhook(body: Buffer, signature: string | null, webhookUrl: string): boolean;
296
+ listAll<T extends {
297
+ id: string;
298
+ }>(path: string): Promise<T[]>;
299
+ getCard: <T = Record<string, unknown>>(cardId: string) => Promise<T>;
300
+ listBoards: () => Promise<{
301
+ id: string;
302
+ name: string;
303
+ }[]>;
304
+ listLists: (boardId: string) => Promise<{
305
+ id: string;
306
+ name: string;
307
+ }[]>;
308
+ listLabels: (boardId: string) => Promise<{
309
+ color: string;
310
+ id: string;
311
+ name: string;
312
+ }[]>;
313
+ listWebhooks: () => Promise<import("./client.js").TrelloWebhook[]>;
314
+ createWebhook: (idModel: string, callbackURL: string) => Promise<import("./client.js").TrelloWebhook>;
315
+ deleteWebhook: (id: string) => Promise<unknown>;
261
316
  }, {
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;
317
+ [x: string]: unknown;
318
+ id: string;
319
+ name: string;
320
+ url: string;
321
+ mimeType?: string | undefined;
322
+ }> & {
323
+ slug: "addCardAttachment";
324
+ }, import("frogbot").PieceActionDefinition<import("zod").ZodObject<{
325
+ cardId: import("zod").ZodString;
326
+ attachmentId: import("zod").ZodString;
327
+ }, import("zod/v4/core").$strip>, import("zod").ZodObject<{
328
+ id: import("zod").ZodString;
329
+ name: import("zod").ZodString;
330
+ url: import("zod").ZodString;
331
+ mimeType: import("zod").ZodOptional<import("zod").ZodString>;
332
+ }, import("zod/v4/core").$loose>, Record<string, never>, {
333
+ request: <T>(path: string, init?: RequestInit & {
334
+ query?: {
335
+ [x: string]: string | number | boolean | undefined;
277
336
  };
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>;
337
+ }) => Promise<T>;
338
+ verifyWebhook(body: Buffer, signature: string | null, webhookUrl: string): boolean;
339
+ listAll<T extends {
340
+ id: string;
341
+ }>(path: string): Promise<T[]>;
342
+ getCard: <T = Record<string, unknown>>(cardId: string) => Promise<T>;
343
+ listBoards: () => Promise<{
344
+ id: string;
345
+ name: string;
346
+ }[]>;
347
+ listLists: (boardId: string) => Promise<{
348
+ id: string;
349
+ name: string;
350
+ }[]>;
351
+ listLabels: (boardId: string) => Promise<{
352
+ color: string;
353
+ id: string;
354
+ name: string;
355
+ }[]>;
356
+ listWebhooks: () => Promise<import("./client.js").TrelloWebhook[]>;
357
+ createWebhook: (idModel: string, callbackURL: string) => Promise<import("./client.js").TrelloWebhook>;
358
+ deleteWebhook: (id: string) => Promise<unknown>;
359
+ }, {
360
+ [x: string]: unknown;
361
+ id: string;
362
+ name: string;
363
+ url: string;
364
+ mimeType?: string | undefined;
365
+ }> & {
366
+ slug: "getCardAttachment";
367
+ }, import("frogbot").PieceActionDefinition<import("zod").ZodObject<{
368
+ cardId: import("zod").ZodString;
369
+ attachmentId: import("zod").ZodString;
370
+ }, import("zod/v4/core").$strip>, import("zod").ZodObject<{}, import("zod/v4/core").$loose>, Record<string, never>, {
371
+ request: <T>(path: string, init?: RequestInit & {
372
+ query?: {
373
+ [x: string]: string | number | boolean | undefined;
305
374
  };
306
- options: Record<string, never>;
307
- req: import("frogbot").FrogBotRequest;
308
- }): Promise<unknown>;
375
+ }) => Promise<T>;
376
+ verifyWebhook(body: Buffer, signature: string | null, webhookUrl: string): boolean;
377
+ listAll<T extends {
378
+ id: string;
379
+ }>(path: string): Promise<T[]>;
380
+ getCard: <T = Record<string, unknown>>(cardId: string) => Promise<T>;
381
+ listBoards: () => Promise<{
382
+ id: string;
383
+ name: string;
384
+ }[]>;
385
+ listLists: (boardId: string) => Promise<{
386
+ id: string;
387
+ name: string;
388
+ }[]>;
389
+ listLabels: (boardId: string) => Promise<{
390
+ color: string;
391
+ id: string;
392
+ name: string;
393
+ }[]>;
394
+ listWebhooks: () => Promise<import("./client.js").TrelloWebhook[]>;
395
+ createWebhook: (idModel: string, callbackURL: string) => Promise<import("./client.js").TrelloWebhook>;
396
+ deleteWebhook: (id: string) => Promise<unknown>;
309
397
  }, {
398
+ [x: string]: unknown;
399
+ }> & {
400
+ slug: "deleteCardAttachment";
401
+ }, import("frogbot").PieceActionDefinition<import("zod").ZodObject<{
402
+ method: import("zod").ZodEnum<{
403
+ POST: "POST";
404
+ DELETE: "DELETE";
405
+ PUT: "PUT";
406
+ GET: "GET";
407
+ PATCH: "PATCH";
408
+ }>;
409
+ path: import("zod").ZodString;
410
+ headers: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>>;
411
+ query: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnion<readonly [import("zod").ZodString, import("zod").ZodNumber, import("zod").ZodBoolean]>>>;
412
+ body: import("zod").ZodOptional<import("zod").ZodJSONSchema>;
413
+ }, import("zod/v4/core").$strip>, import("zod").ZodJSONSchema, Record<string, never>, {
414
+ request: <T>(path: string, init?: RequestInit & {
415
+ query?: {
416
+ [x: string]: string | number | boolean | undefined;
417
+ };
418
+ }) => Promise<T>;
419
+ verifyWebhook(body: Buffer, signature: string | null, webhookUrl: string): boolean;
420
+ listAll<T extends {
421
+ id: string;
422
+ }>(path: string): Promise<T[]>;
423
+ getCard: <T = Record<string, unknown>>(cardId: string) => Promise<T>;
424
+ listBoards: () => Promise<{
425
+ id: string;
426
+ name: string;
427
+ }[]>;
428
+ listLists: (boardId: string) => Promise<{
429
+ id: string;
430
+ name: string;
431
+ }[]>;
432
+ listLabels: (boardId: string) => Promise<{
433
+ color: string;
434
+ id: string;
435
+ name: string;
436
+ }[]>;
437
+ listWebhooks: () => Promise<import("./client.js").TrelloWebhook[]>;
438
+ createWebhook: (idModel: string, callbackURL: string) => Promise<import("./client.js").TrelloWebhook>;
439
+ deleteWebhook: (id: string) => Promise<unknown>;
440
+ }, import("zod").JSONType> & {
441
+ slug: "customApiCall";
442
+ }];
443
+ readonly triggers: readonly [{
310
444
  slug: string;
445
+ label?: string;
311
446
  description: string;
312
447
  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>;
448
+ boardId: import("zod").ZodString;
449
+ listId: import("zod").ZodOptional<import("zod").ZodString>;
321
450
  }, import("zod/v4/core").$strip>;
322
- output: import("zod").ZodObject<{
451
+ output?: import("zod").ZodObject<{
323
452
  id: import("zod").ZodString;
324
453
  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;
454
+ desc: import("zod").ZodOptional<import("zod").ZodString>;
455
+ idBoard: import("zod").ZodOptional<import("zod").ZodString>;
456
+ idList: import("zod").ZodOptional<import("zod").ZodString>;
457
+ due: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
458
+ dueComplete: import("zod").ZodOptional<import("zod").ZodBoolean>;
459
+ dateLastActivity: import("zod").ZodOptional<import("zod").ZodString>;
460
+ url: import("zod").ZodOptional<import("zod").ZodString>;
461
+ }, import("zod/v4/core").$loose> | undefined;
462
+ sample?: {
463
+ [x: string]: unknown;
464
+ id: string;
465
+ name: string;
466
+ desc?: string | undefined;
467
+ idBoard?: string | undefined;
468
+ idList?: string | undefined;
469
+ due?: string | null | undefined;
470
+ dueComplete?: boolean | undefined;
471
+ dateLastActivity?: string | undefined;
472
+ url?: string | undefined;
473
+ } | undefined;
474
+ } & {
475
+ type: "webhook";
476
+ onEnable(args: import("frogbot").PieceRunArgs<{
477
+ boardId: string;
478
+ listId?: string | undefined;
479
+ }, Record<string, never>, {
480
+ request: <T>(path: string, init?: RequestInit & {
481
+ query?: {
482
+ [x: string]: string | number | boolean | undefined;
483
+ };
484
+ }) => Promise<T>;
485
+ verifyWebhook(body: Buffer, signature: string | null, webhookUrl: string): boolean;
486
+ listAll<T extends {
487
+ id: string;
488
+ }>(path: string): Promise<T[]>;
489
+ getCard: <T = Record<string, unknown>>(cardId: string) => Promise<T>;
490
+ listBoards: () => Promise<{
491
+ id: string;
492
+ name: string;
493
+ }[]>;
494
+ listLists: (boardId: string) => Promise<{
495
+ id: string;
496
+ name: string;
497
+ }[]>;
498
+ listLabels: (boardId: string) => Promise<{
499
+ color: string;
500
+ id: string;
501
+ name: string;
502
+ }[]>;
503
+ listWebhooks: () => Promise<import("./client.js").TrelloWebhook[]>;
504
+ createWebhook: (idModel: string, callbackURL: string) => Promise<import("./client.js").TrelloWebhook>;
505
+ deleteWebhook: (id: string) => Promise<unknown>;
506
+ }> & {
507
+ webhookUrl: string;
508
+ }): Promise<{
509
+ webhookId: string;
510
+ webhookUrl: string;
511
+ owned: boolean;
512
+ }>;
513
+ onDisable(args: import("frogbot").PieceRunArgs<{
514
+ boardId: string;
515
+ listId?: string | undefined;
516
+ }, Record<string, never>, {
517
+ request: <T>(path: string, init?: RequestInit & {
518
+ query?: {
519
+ [x: string]: string | number | boolean | undefined;
334
520
  };
335
- cardId: string;
336
- mimeType?: string;
337
- name?: string;
338
- setCover?: boolean;
521
+ }) => Promise<T>;
522
+ verifyWebhook(body: Buffer, signature: string | null, webhookUrl: string): boolean;
523
+ listAll<T extends {
524
+ id: string;
525
+ }>(path: string): Promise<T[]>;
526
+ getCard: <T = Record<string, unknown>>(cardId: string) => Promise<T>;
527
+ listBoards: () => Promise<{
528
+ id: string;
529
+ name: string;
530
+ }[]>;
531
+ listLists: (boardId: string) => Promise<{
532
+ id: string;
533
+ name: string;
534
+ }[]>;
535
+ listLabels: (boardId: string) => Promise<{
536
+ color: string;
537
+ id: string;
538
+ name: string;
539
+ }[]>;
540
+ listWebhooks: () => Promise<import("./client.js").TrelloWebhook[]>;
541
+ createWebhook: (idModel: string, callbackURL: string) => Promise<import("./client.js").TrelloWebhook>;
542
+ deleteWebhook: (id: string) => Promise<unknown>;
543
+ }> & {
544
+ state: {
545
+ webhookId: string;
546
+ webhookUrl: string;
547
+ owned: boolean;
339
548
  };
340
- client: {
549
+ }): Promise<void>;
550
+ renew?: {
551
+ schedule: string;
552
+ run(args: import("frogbot").PieceRunArgs<{
553
+ boardId: string;
554
+ listId?: string | undefined;
555
+ }, Record<string, never>, {
341
556
  request: <T>(path: string, init?: RequestInit & {
342
557
  query?: {
343
558
  [x: string]: string | number | boolean | undefined;
@@ -347,7 +562,7 @@ export declare const createTrello: import("frogbot").PieceFactory<{
347
562
  listAll<T extends {
348
563
  id: string;
349
564
  }>(path: string): Promise<T[]>;
350
- getCard: (cardId: string) => Promise<Record<string, unknown>>;
565
+ getCard: <T = Record<string, unknown>>(cardId: string) => Promise<T>;
351
566
  listBoards: () => Promise<{
352
567
  id: string;
353
568
  name: string;
@@ -364,75 +579,182 @@ export declare const createTrello: import("frogbot").PieceFactory<{
364
579
  listWebhooks: () => Promise<import("./client.js").TrelloWebhook[]>;
365
580
  createWebhook: (idModel: string, callbackURL: string) => Promise<import("./client.js").TrelloWebhook>;
366
581
  deleteWebhook: (id: string) => Promise<unknown>;
582
+ }> & {
583
+ state: {
584
+ webhookId: string;
585
+ webhookUrl: string;
586
+ owned: boolean;
587
+ };
588
+ webhookUrl: string;
589
+ }): Promise<{
590
+ webhookId: string;
591
+ webhookUrl: string;
592
+ owned: boolean;
593
+ }>;
594
+ } | undefined;
595
+ run(args: import("frogbot").PieceRunArgs<{
596
+ boardId: string;
597
+ listId?: string | undefined;
598
+ }, Record<string, never>, {
599
+ request: <T>(path: string, init?: RequestInit & {
600
+ query?: {
601
+ [x: string]: string | number | boolean | undefined;
602
+ };
603
+ }) => Promise<T>;
604
+ verifyWebhook(body: Buffer, signature: string | null, webhookUrl: string): boolean;
605
+ listAll<T extends {
606
+ id: string;
607
+ }>(path: string): Promise<T[]>;
608
+ getCard: <T = Record<string, unknown>>(cardId: string) => Promise<T>;
609
+ listBoards: () => Promise<{
610
+ id: string;
611
+ name: string;
612
+ }[]>;
613
+ listLists: (boardId: string) => Promise<{
614
+ id: string;
615
+ name: string;
616
+ }[]>;
617
+ listLabels: (boardId: string) => Promise<{
618
+ color: string;
619
+ id: string;
620
+ name: string;
621
+ }[]>;
622
+ listWebhooks: () => Promise<import("./client.js").TrelloWebhook[]>;
623
+ createWebhook: (idModel: string, callbackURL: string) => Promise<import("./client.js").TrelloWebhook>;
624
+ deleteWebhook: (id: string) => Promise<unknown>;
625
+ }> & {
626
+ state: {
627
+ webhookId: string;
628
+ webhookUrl: string;
629
+ owned: boolean;
367
630
  };
368
- options: Record<string, never>;
369
- req: import("frogbot").FrogBotRequest;
370
- }): Promise<unknown>;
631
+ }): Promise<import("frogbot").TriggerEvent<{
632
+ [x: string]: unknown;
633
+ id: string;
634
+ name: string;
635
+ desc?: string | undefined;
636
+ idBoard?: string | undefined;
637
+ idList?: string | undefined;
638
+ due?: string | null | undefined;
639
+ dueComplete?: boolean | undefined;
640
+ dateLastActivity?: string | undefined;
641
+ url?: string | undefined;
642
+ }>[]>;
643
+ } & {
644
+ slug: "cardCreated";
371
645
  }, {
372
646
  slug: string;
647
+ label?: string;
373
648
  description: string;
374
649
  input: import("zod").ZodObject<{
375
- cardId: import("zod").ZodString;
376
- attachmentId: import("zod").ZodString;
650
+ boardId: import("zod").ZodString;
651
+ listId: import("zod").ZodString;
377
652
  }, import("zod/v4/core").$strip>;
378
- output: import("zod").ZodObject<{
653
+ output?: import("zod").ZodObject<{
379
654
  id: import("zod").ZodString;
380
655
  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;
656
+ desc: import("zod").ZodOptional<import("zod").ZodString>;
657
+ idBoard: import("zod").ZodOptional<import("zod").ZodString>;
658
+ idList: import("zod").ZodOptional<import("zod").ZodString>;
659
+ due: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
660
+ dueComplete: import("zod").ZodOptional<import("zod").ZodBoolean>;
661
+ dateLastActivity: import("zod").ZodOptional<import("zod").ZodString>;
662
+ url: import("zod").ZodOptional<import("zod").ZodString>;
663
+ }, import("zod/v4/core").$loose> | undefined;
664
+ sample?: {
665
+ [x: string]: unknown;
666
+ id: string;
667
+ name: string;
668
+ desc?: string | undefined;
669
+ idBoard?: string | undefined;
670
+ idList?: string | undefined;
671
+ due?: string | null | undefined;
672
+ dueComplete?: boolean | undefined;
673
+ dateLastActivity?: string | undefined;
674
+ url?: string | undefined;
675
+ } | undefined;
676
+ } & {
677
+ type: "webhook";
678
+ onEnable(args: import("frogbot").PieceRunArgs<{
679
+ boardId: string;
680
+ listId: string;
681
+ }, Record<string, never>, {
682
+ request: <T>(path: string, init?: RequestInit & {
683
+ query?: {
684
+ [x: string]: string | number | boolean | undefined;
685
+ };
686
+ }) => Promise<T>;
687
+ verifyWebhook(body: Buffer, signature: string | null, webhookUrl: string): boolean;
688
+ listAll<T extends {
689
+ id: string;
690
+ }>(path: string): Promise<T[]>;
691
+ getCard: <T = Record<string, unknown>>(cardId: string) => Promise<T>;
692
+ listBoards: () => Promise<{
693
+ id: string;
694
+ name: string;
695
+ }[]>;
696
+ listLists: (boardId: string) => Promise<{
697
+ id: string;
698
+ name: string;
699
+ }[]>;
700
+ listLabels: (boardId: string) => Promise<{
701
+ color: string;
702
+ id: string;
703
+ name: string;
704
+ }[]>;
705
+ listWebhooks: () => Promise<import("./client.js").TrelloWebhook[]>;
706
+ createWebhook: (idModel: string, callbackURL: string) => Promise<import("./client.js").TrelloWebhook>;
707
+ deleteWebhook: (id: string) => Promise<unknown>;
708
+ }> & {
709
+ webhookUrl: string;
710
+ }): Promise<{
711
+ webhookId: string;
712
+ webhookUrl: string;
713
+ owned: boolean;
714
+ }>;
715
+ onDisable(args: import("frogbot").PieceRunArgs<{
716
+ boardId: string;
717
+ listId: string;
718
+ }, Record<string, never>, {
719
+ request: <T>(path: string, init?: RequestInit & {
720
+ query?: {
721
+ [x: string]: string | number | boolean | undefined;
722
+ };
723
+ }) => Promise<T>;
724
+ verifyWebhook(body: Buffer, signature: string | null, webhookUrl: string): boolean;
725
+ listAll<T extends {
726
+ id: string;
727
+ }>(path: string): Promise<T[]>;
728
+ getCard: <T = Record<string, unknown>>(cardId: string) => Promise<T>;
729
+ listBoards: () => Promise<{
730
+ id: string;
731
+ name: string;
732
+ }[]>;
733
+ listLists: (boardId: string) => Promise<{
734
+ id: string;
735
+ name: string;
736
+ }[]>;
737
+ listLabels: (boardId: string) => Promise<{
738
+ color: string;
739
+ id: string;
740
+ name: string;
741
+ }[]>;
742
+ listWebhooks: () => Promise<import("./client.js").TrelloWebhook[]>;
743
+ createWebhook: (idModel: string, callbackURL: string) => Promise<import("./client.js").TrelloWebhook>;
744
+ deleteWebhook: (id: string) => Promise<unknown>;
745
+ }> & {
746
+ state: {
747
+ webhookId: string;
748
+ webhookUrl: string;
749
+ owned: boolean;
434
750
  };
435
- client: {
751
+ }): Promise<void>;
752
+ renew?: {
753
+ schedule: string;
754
+ run(args: import("frogbot").PieceRunArgs<{
755
+ boardId: string;
756
+ listId: string;
757
+ }, Record<string, never>, {
436
758
  request: <T>(path: string, init?: RequestInit & {
437
759
  query?: {
438
760
  [x: string]: string | number | boolean | undefined;
@@ -442,7 +764,7 @@ export declare const createTrello: import("frogbot").PieceFactory<{
442
764
  listAll<T extends {
443
765
  id: string;
444
766
  }>(path: string): Promise<T[]>;
445
- getCard: (cardId: string) => Promise<Record<string, unknown>>;
767
+ getCard: <T = Record<string, unknown>>(cardId: string) => Promise<T>;
446
768
  listBoards: () => Promise<{
447
769
  id: string;
448
770
  name: string;
@@ -459,155 +781,73 @@ export declare const createTrello: import("frogbot").PieceFactory<{
459
781
  listWebhooks: () => Promise<import("./client.js").TrelloWebhook[]>;
460
782
  createWebhook: (idModel: string, callbackURL: string) => Promise<import("./client.js").TrelloWebhook>;
461
783
  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";
784
+ }> & {
785
+ state: {
786
+ webhookId: string;
787
+ webhookUrl: string;
788
+ owned: boolean;
789
+ };
790
+ webhookUrl: string;
791
+ }): Promise<{
792
+ webhookId: string;
793
+ webhookUrl: string;
794
+ owned: boolean;
476
795
  }>;
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;
796
+ } | undefined;
797
+ run(args: import("frogbot").PieceRunArgs<{
798
+ boardId: string;
799
+ listId: string;
800
+ }, Record<string, never>, {
801
+ request: <T>(path: string, init?: RequestInit & {
802
+ query?: {
803
+ [x: string]: string | number | boolean | undefined;
804
+ };
805
+ }) => Promise<T>;
806
+ verifyWebhook(body: Buffer, signature: string | null, webhookUrl: string): boolean;
807
+ listAll<T extends {
808
+ id: string;
809
+ }>(path: string): Promise<T[]>;
810
+ getCard: <T = Record<string, unknown>>(cardId: string) => Promise<T>;
811
+ listBoards: () => Promise<{
812
+ id: string;
813
+ name: string;
814
+ }[]>;
815
+ listLists: (boardId: string) => Promise<{
816
+ id: string;
817
+ name: string;
818
+ }[]>;
819
+ listLabels: (boardId: string) => Promise<{
820
+ color: string;
821
+ id: string;
822
+ name: string;
823
+ }[]>;
824
+ listWebhooks: () => Promise<import("./client.js").TrelloWebhook[]>;
825
+ createWebhook: (idModel: string, callbackURL: string) => Promise<import("./client.js").TrelloWebhook>;
826
+ deleteWebhook: (id: string) => Promise<unknown>;
827
+ }> & {
828
+ state: {
829
+ webhookId: string;
830
+ webhookUrl: string;
831
+ owned: boolean;
579
832
  };
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<{
833
+ }): Promise<import("frogbot").TriggerEvent<{
834
+ [x: string]: unknown;
587
835
  id: string;
588
836
  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>;
837
+ desc?: string | undefined;
838
+ idBoard?: string | undefined;
839
+ idList?: string | undefined;
840
+ due?: string | null | undefined;
841
+ dueComplete?: boolean | undefined;
842
+ dateLastActivity?: string | undefined;
843
+ url?: string | undefined;
844
+ }>[]>;
845
+ } & {
846
+ slug: "cardMovedToList";
602
847
  }, {
603
- webhookId: string;
604
- webhookUrl: string;
605
- owned: boolean;
606
- }>, {
607
848
  slug: string;
849
+ label?: string;
608
850
  description: string;
609
- type: "polling";
610
- schedule: string;
611
851
  input: import("zod").ZodObject<{
612
852
  boardId: import("zod").ZodString;
613
853
  listId: import("zod").ZodOptional<import("zod").ZodString>;
@@ -617,7 +857,7 @@ export declare const createTrello: import("frogbot").PieceFactory<{
617
857
  }>>;
618
858
  timeBeforeDue: import("zod").ZodDefault<import("zod").ZodNumber>;
619
859
  }, import("zod/v4/core").$strip>;
620
- output: import("zod").ZodObject<{
860
+ output?: import("zod").ZodObject<{
621
861
  id: import("zod").ZodString;
622
862
  name: import("zod").ZodString;
623
863
  desc: import("zod").ZodOptional<import("zod").ZodString>;
@@ -627,17 +867,56 @@ export declare const createTrello: import("frogbot").PieceFactory<{
627
867
  dueComplete: import("zod").ZodOptional<import("zod").ZodBoolean>;
628
868
  dateLastActivity: import("zod").ZodOptional<import("zod").ZodString>;
629
869
  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;
870
+ }, import("zod/v4/core").$loose> | undefined;
871
+ sample?: {
872
+ [x: string]: unknown;
873
+ id: string;
874
+ name: string;
875
+ desc?: string | undefined;
876
+ idBoard?: string | undefined;
877
+ idList?: string | undefined;
878
+ due?: string | null | undefined;
879
+ dueComplete?: boolean | undefined;
880
+ dateLastActivity?: string | undefined;
881
+ url?: string | undefined;
882
+ } | undefined;
883
+ } & {
884
+ type: "polling";
885
+ schedule?: string;
886
+ run(args: import("frogbot").PieceRunArgs<{
887
+ boardId: string;
888
+ timeUnit: "minutes" | "hours";
889
+ timeBeforeDue: number;
890
+ listId?: string | undefined;
891
+ }, Record<string, never>, {
892
+ request: <T>(path: string, init?: RequestInit & {
893
+ query?: {
894
+ [x: string]: string | number | boolean | undefined;
895
+ };
896
+ }) => Promise<T>;
897
+ verifyWebhook(body: Buffer, signature: string | null, webhookUrl: string): boolean;
898
+ listAll<T extends {
899
+ id: string;
900
+ }>(path: string): Promise<T[]>;
901
+ getCard: <T = Record<string, unknown>>(cardId: string) => Promise<T>;
902
+ listBoards: () => Promise<{
903
+ id: string;
904
+ name: string;
905
+ }[]>;
906
+ listLists: (boardId: string) => Promise<{
907
+ id: string;
908
+ name: string;
909
+ }[]>;
910
+ listLabels: (boardId: string) => Promise<{
911
+ color: string;
912
+ id: string;
913
+ name: string;
914
+ }[]>;
915
+ listWebhooks: () => Promise<import("./client.js").TrelloWebhook[]>;
916
+ createWebhook: (idModel: string, callbackURL: string) => Promise<import("./client.js").TrelloWebhook>;
917
+ deleteWebhook: (id: string) => Promise<unknown>;
918
+ }> & {
919
+ cursor?: import("frogbot").PieceJSON | undefined;
641
920
  }): Promise<{
642
921
  events: {
643
922
  [x: string]: unknown;
@@ -651,8 +930,10 @@ export declare const createTrello: import("frogbot").PieceFactory<{
651
930
  dateLastActivity?: string | undefined;
652
931
  url?: string | undefined;
653
932
  }[];
654
- cursor: number;
933
+ cursor?: import("frogbot").PieceJSON | undefined;
655
934
  }>;
935
+ } & {
936
+ slug: "cardDeadline";
656
937
  }];
657
938
  }>;
658
939
  //# sourceMappingURL=index.d.ts.map