@frogbotai/piece-trello 0.27.0 → 0.28.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/actions.d.ts CHANGED
@@ -1,233 +1,428 @@
1
- import { type PieceRunArgs } from 'frogbot/pieces';
2
1
  import { z } from 'zod';
3
- import type { Trello } from './client.js';
4
- import { boardOptions, labelOptions, listOptions } from './options.js';
5
- type Args<T> = PieceRunArgs<T, Record<string, never>, Trello>;
6
- export declare const createCard: {
7
- slug: string;
8
- description: string;
9
- input: z.ZodObject<{
10
- boardId: z.ZodString;
11
- listId: z.ZodString;
12
- name: z.ZodString;
13
- description: z.ZodOptional<z.ZodString>;
14
- position: z.ZodOptional<z.ZodEnum<{
15
- top: "top";
16
- bottom: "bottom";
17
- }>>;
18
- labelIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
19
- }, z.core.$strip>;
20
- output: z.ZodObject<{
21
- id: z.ZodString;
22
- name: z.ZodString;
23
- desc: z.ZodOptional<z.ZodString>;
24
- idBoard: z.ZodOptional<z.ZodString>;
25
- idList: z.ZodOptional<z.ZodString>;
26
- due: z.ZodOptional<z.ZodNullable<z.ZodString>>;
27
- dueComplete: z.ZodOptional<z.ZodBoolean>;
28
- dateLastActivity: z.ZodOptional<z.ZodString>;
29
- url: z.ZodOptional<z.ZodString>;
30
- }, z.core.$loose>;
31
- idempotent: boolean;
32
- options: {
33
- boardId: typeof boardOptions;
34
- listId: typeof listOptions;
35
- labelIds: typeof labelOptions;
36
- };
37
- run({ client, input, }: Args<{
38
- boardId: string;
39
- description?: string;
40
- labelIds?: string[];
41
- listId: string;
42
- name: string;
43
- position?: "bottom" | "top";
44
- }>): Promise<unknown>;
2
+ export declare const createCard: import("frogbot").PieceActionDefinition<z.ZodObject<{
3
+ boardId: z.ZodString;
4
+ listId: z.ZodString;
5
+ name: z.ZodString;
6
+ description: z.ZodOptional<z.ZodString>;
7
+ position: z.ZodOptional<z.ZodEnum<{
8
+ top: "top";
9
+ bottom: "bottom";
10
+ }>>;
11
+ labelIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
12
+ }, z.core.$strip>, z.ZodObject<{
13
+ id: z.ZodString;
14
+ name: z.ZodString;
15
+ desc: z.ZodOptional<z.ZodString>;
16
+ idBoard: z.ZodOptional<z.ZodString>;
17
+ idList: z.ZodOptional<z.ZodString>;
18
+ due: z.ZodOptional<z.ZodNullable<z.ZodString>>;
19
+ dueComplete: z.ZodOptional<z.ZodBoolean>;
20
+ dateLastActivity: z.ZodOptional<z.ZodString>;
21
+ url: z.ZodOptional<z.ZodString>;
22
+ }, z.core.$loose>, Record<string, never>, {
23
+ request: <T>(path: string, init?: RequestInit & {
24
+ query?: {
25
+ [x: string]: string | number | boolean | undefined;
26
+ };
27
+ }) => Promise<T>;
28
+ verifyWebhook(body: Buffer, signature: string | null, webhookUrl: string): boolean;
29
+ listAll<T extends {
30
+ id: string;
31
+ }>(path: string): Promise<T[]>;
32
+ getCard: <T = Record<string, unknown>>(cardId: string) => Promise<T>;
33
+ listBoards: () => Promise<{
34
+ id: string;
35
+ name: string;
36
+ }[]>;
37
+ listLists: (boardId: string) => Promise<{
38
+ id: string;
39
+ name: string;
40
+ }[]>;
41
+ listLabels: (boardId: string) => Promise<{
42
+ color: string;
43
+ id: string;
44
+ name: string;
45
+ }[]>;
46
+ listWebhooks: () => Promise<import("./client.js").TrelloWebhook[]>;
47
+ createWebhook: (idModel: string, callbackURL: string) => Promise<import("./client.js").TrelloWebhook>;
48
+ deleteWebhook: (id: string) => Promise<unknown>;
49
+ }, {
50
+ [x: string]: unknown;
51
+ id: string;
52
+ name: string;
53
+ desc?: string | undefined;
54
+ idBoard?: string | undefined;
55
+ idList?: string | undefined;
56
+ due?: string | null | undefined;
57
+ dueComplete?: boolean | undefined;
58
+ dateLastActivity?: string | undefined;
59
+ url?: string | undefined;
60
+ }> & {
61
+ slug: "createCard";
45
62
  };
46
- export declare const getCard: {
47
- slug: string;
48
- description: string;
49
- input: z.ZodObject<{
50
- cardId: z.ZodString;
51
- }, z.core.$strip>;
52
- output: z.ZodObject<{
53
- id: z.ZodString;
54
- name: z.ZodString;
55
- desc: z.ZodOptional<z.ZodString>;
56
- idBoard: z.ZodOptional<z.ZodString>;
57
- idList: z.ZodOptional<z.ZodString>;
58
- due: z.ZodOptional<z.ZodNullable<z.ZodString>>;
59
- dueComplete: z.ZodOptional<z.ZodBoolean>;
60
- dateLastActivity: z.ZodOptional<z.ZodString>;
61
- url: z.ZodOptional<z.ZodString>;
62
- }, z.core.$loose>;
63
- idempotent: boolean;
64
- run({ client, input }: Args<{
65
- cardId: string;
66
- }>): Promise<Record<string, unknown>>;
63
+ export declare const getCard: import("frogbot").PieceActionDefinition<z.ZodObject<{
64
+ cardId: z.ZodString;
65
+ }, z.core.$strip>, z.ZodObject<{
66
+ id: z.ZodString;
67
+ name: z.ZodString;
68
+ desc: z.ZodOptional<z.ZodString>;
69
+ idBoard: z.ZodOptional<z.ZodString>;
70
+ idList: z.ZodOptional<z.ZodString>;
71
+ due: z.ZodOptional<z.ZodNullable<z.ZodString>>;
72
+ dueComplete: z.ZodOptional<z.ZodBoolean>;
73
+ dateLastActivity: z.ZodOptional<z.ZodString>;
74
+ url: z.ZodOptional<z.ZodString>;
75
+ }, z.core.$loose>, Record<string, never>, {
76
+ request: <T>(path: string, init?: RequestInit & {
77
+ query?: {
78
+ [x: string]: string | number | boolean | undefined;
79
+ };
80
+ }) => Promise<T>;
81
+ verifyWebhook(body: Buffer, signature: string | null, webhookUrl: string): boolean;
82
+ listAll<T extends {
83
+ id: string;
84
+ }>(path: string): Promise<T[]>;
85
+ getCard: <T = Record<string, unknown>>(cardId: string) => Promise<T>;
86
+ listBoards: () => Promise<{
87
+ id: string;
88
+ name: string;
89
+ }[]>;
90
+ listLists: (boardId: string) => Promise<{
91
+ id: string;
92
+ name: string;
93
+ }[]>;
94
+ listLabels: (boardId: string) => Promise<{
95
+ color: string;
96
+ id: string;
97
+ name: string;
98
+ }[]>;
99
+ listWebhooks: () => Promise<import("./client.js").TrelloWebhook[]>;
100
+ createWebhook: (idModel: string, callbackURL: string) => Promise<import("./client.js").TrelloWebhook>;
101
+ deleteWebhook: (id: string) => Promise<unknown>;
102
+ }, {
103
+ [x: string]: unknown;
104
+ id: string;
105
+ name: string;
106
+ desc?: string | undefined;
107
+ idBoard?: string | undefined;
108
+ idList?: string | undefined;
109
+ due?: string | null | undefined;
110
+ dueComplete?: boolean | undefined;
111
+ dateLastActivity?: string | undefined;
112
+ url?: string | undefined;
113
+ }> & {
114
+ slug: "getCard";
67
115
  };
68
- export declare const updateCard: {
69
- slug: string;
70
- description: string;
71
- input: z.ZodObject<{
72
- cardId: z.ZodString;
73
- boardId: z.ZodOptional<z.ZodString>;
74
- listId: z.ZodOptional<z.ZodString>;
75
- name: z.ZodOptional<z.ZodString>;
76
- description: z.ZodOptional<z.ZodString>;
77
- position: z.ZodOptional<z.ZodEnum<{
78
- top: "top";
79
- bottom: "bottom";
80
- }>>;
81
- labelIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
82
- archived: z.ZodOptional<z.ZodBoolean>;
83
- due: z.ZodOptional<z.ZodString>;
84
- }, z.core.$strip>;
85
- output: z.ZodObject<{
86
- id: z.ZodString;
87
- name: z.ZodString;
88
- desc: z.ZodOptional<z.ZodString>;
89
- idBoard: z.ZodOptional<z.ZodString>;
90
- idList: z.ZodOptional<z.ZodString>;
91
- due: z.ZodOptional<z.ZodNullable<z.ZodString>>;
92
- dueComplete: z.ZodOptional<z.ZodBoolean>;
93
- dateLastActivity: z.ZodOptional<z.ZodString>;
94
- url: z.ZodOptional<z.ZodString>;
95
- }, z.core.$loose>;
96
- idempotent: boolean;
97
- options: {
98
- boardId: typeof boardOptions;
99
- listId: typeof listOptions;
100
- labelIds: typeof labelOptions;
101
- };
102
- run({ client, input }: Args<Record<string, unknown> & {
103
- cardId: string;
104
- }>): Promise<unknown>;
116
+ export declare const updateCard: import("frogbot").PieceActionDefinition<z.ZodObject<{
117
+ cardId: z.ZodString;
118
+ boardId: z.ZodOptional<z.ZodString>;
119
+ listId: z.ZodOptional<z.ZodString>;
120
+ name: z.ZodOptional<z.ZodString>;
121
+ description: z.ZodOptional<z.ZodString>;
122
+ position: z.ZodOptional<z.ZodEnum<{
123
+ top: "top";
124
+ bottom: "bottom";
125
+ }>>;
126
+ labelIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
127
+ archived: z.ZodOptional<z.ZodBoolean>;
128
+ due: z.ZodOptional<z.ZodString>;
129
+ }, z.core.$strip>, z.ZodObject<{
130
+ id: z.ZodString;
131
+ name: z.ZodString;
132
+ desc: z.ZodOptional<z.ZodString>;
133
+ idBoard: z.ZodOptional<z.ZodString>;
134
+ idList: z.ZodOptional<z.ZodString>;
135
+ due: z.ZodOptional<z.ZodNullable<z.ZodString>>;
136
+ dueComplete: z.ZodOptional<z.ZodBoolean>;
137
+ dateLastActivity: z.ZodOptional<z.ZodString>;
138
+ url: z.ZodOptional<z.ZodString>;
139
+ }, z.core.$loose>, Record<string, never>, {
140
+ request: <T>(path: string, init?: RequestInit & {
141
+ query?: {
142
+ [x: string]: string | number | boolean | undefined;
143
+ };
144
+ }) => Promise<T>;
145
+ verifyWebhook(body: Buffer, signature: string | null, webhookUrl: string): boolean;
146
+ listAll<T extends {
147
+ id: string;
148
+ }>(path: string): Promise<T[]>;
149
+ getCard: <T = Record<string, unknown>>(cardId: string) => Promise<T>;
150
+ listBoards: () => Promise<{
151
+ id: string;
152
+ name: string;
153
+ }[]>;
154
+ listLists: (boardId: string) => Promise<{
155
+ id: string;
156
+ name: string;
157
+ }[]>;
158
+ listLabels: (boardId: string) => Promise<{
159
+ color: string;
160
+ id: string;
161
+ name: string;
162
+ }[]>;
163
+ listWebhooks: () => Promise<import("./client.js").TrelloWebhook[]>;
164
+ createWebhook: (idModel: string, callbackURL: string) => Promise<import("./client.js").TrelloWebhook>;
165
+ deleteWebhook: (id: string) => Promise<unknown>;
166
+ }, {
167
+ [x: string]: unknown;
168
+ id: string;
169
+ name: string;
170
+ desc?: string | undefined;
171
+ idBoard?: string | undefined;
172
+ idList?: string | undefined;
173
+ due?: string | null | undefined;
174
+ dueComplete?: boolean | undefined;
175
+ dateLastActivity?: string | undefined;
176
+ url?: string | undefined;
177
+ }> & {
178
+ slug: "updateCard";
105
179
  };
106
- export declare const deleteCard: {
107
- slug: string;
108
- description: string;
109
- input: z.ZodObject<{
110
- cardId: z.ZodString;
111
- }, z.core.$strip>;
112
- output: z.ZodObject<{}, z.core.$loose>;
113
- idempotent: boolean;
114
- run({ client, input }: Args<{
115
- cardId: string;
116
- }>): Promise<unknown>;
180
+ export declare const deleteCard: import("frogbot").PieceActionDefinition<z.ZodObject<{
181
+ cardId: z.ZodString;
182
+ }, z.core.$strip>, z.ZodObject<{}, z.core.$loose>, Record<string, never>, {
183
+ request: <T>(path: string, init?: RequestInit & {
184
+ query?: {
185
+ [x: string]: string | number | boolean | undefined;
186
+ };
187
+ }) => Promise<T>;
188
+ verifyWebhook(body: Buffer, signature: string | null, webhookUrl: string): boolean;
189
+ listAll<T extends {
190
+ id: string;
191
+ }>(path: string): Promise<T[]>;
192
+ getCard: <T = Record<string, unknown>>(cardId: string) => Promise<T>;
193
+ listBoards: () => Promise<{
194
+ id: string;
195
+ name: string;
196
+ }[]>;
197
+ listLists: (boardId: string) => Promise<{
198
+ id: string;
199
+ name: string;
200
+ }[]>;
201
+ listLabels: (boardId: string) => Promise<{
202
+ color: string;
203
+ id: string;
204
+ name: string;
205
+ }[]>;
206
+ listWebhooks: () => Promise<import("./client.js").TrelloWebhook[]>;
207
+ createWebhook: (idModel: string, callbackURL: string) => Promise<import("./client.js").TrelloWebhook>;
208
+ deleteWebhook: (id: string) => Promise<unknown>;
209
+ }, {
210
+ [x: string]: unknown;
211
+ }> & {
212
+ slug: "deleteCard";
117
213
  };
118
- export declare const listCardAttachments: {
119
- slug: string;
120
- description: string;
121
- input: z.ZodObject<{
122
- cardId: z.ZodString;
123
- }, z.core.$strip>;
124
- output: z.ZodArray<z.ZodObject<{
125
- id: z.ZodString;
126
- name: z.ZodString;
127
- url: z.ZodString;
128
- mimeType: z.ZodOptional<z.ZodString>;
129
- }, z.core.$loose>>;
130
- idempotent: boolean;
131
- run({ client, input }: Args<{
132
- cardId: string;
133
- }>): Promise<unknown>;
214
+ export declare const listCardAttachments: import("frogbot").PieceActionDefinition<z.ZodObject<{
215
+ cardId: z.ZodString;
216
+ }, z.core.$strip>, z.ZodArray<z.ZodObject<{
217
+ id: z.ZodString;
218
+ name: z.ZodString;
219
+ url: z.ZodString;
220
+ mimeType: z.ZodOptional<z.ZodString>;
221
+ }, z.core.$loose>>, Record<string, never>, {
222
+ request: <T>(path: string, init?: RequestInit & {
223
+ query?: {
224
+ [x: string]: string | number | boolean | undefined;
225
+ };
226
+ }) => Promise<T>;
227
+ verifyWebhook(body: Buffer, signature: string | null, webhookUrl: string): boolean;
228
+ listAll<T extends {
229
+ id: string;
230
+ }>(path: string): Promise<T[]>;
231
+ getCard: <T = Record<string, unknown>>(cardId: string) => Promise<T>;
232
+ listBoards: () => Promise<{
233
+ id: string;
234
+ name: string;
235
+ }[]>;
236
+ listLists: (boardId: string) => Promise<{
237
+ id: string;
238
+ name: string;
239
+ }[]>;
240
+ listLabels: (boardId: string) => Promise<{
241
+ color: string;
242
+ id: string;
243
+ name: string;
244
+ }[]>;
245
+ listWebhooks: () => Promise<import("./client.js").TrelloWebhook[]>;
246
+ createWebhook: (idModel: string, callbackURL: string) => Promise<import("./client.js").TrelloWebhook>;
247
+ deleteWebhook: (id: string) => Promise<unknown>;
248
+ }, {
249
+ [x: string]: unknown;
250
+ id: string;
251
+ name: string;
252
+ url: string;
253
+ mimeType?: string | undefined;
254
+ }[]> & {
255
+ slug: "listCardAttachments";
134
256
  };
135
- export declare const addCardAttachment: {
136
- slug: string;
137
- description: string;
138
- input: z.ZodObject<{
139
- cardId: z.ZodString;
140
- attachment: z.ZodObject<{
141
- fileId: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
142
- name: z.ZodOptional<z.ZodString>;
143
- }, z.core.$strip>;
257
+ export declare const addCardAttachment: import("frogbot").PieceActionDefinition<z.ZodObject<{
258
+ cardId: z.ZodString;
259
+ attachment: z.ZodObject<{
260
+ fileId: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
144
261
  name: z.ZodOptional<z.ZodString>;
145
- mimeType: z.ZodOptional<z.ZodString>;
146
- setCover: z.ZodOptional<z.ZodBoolean>;
147
262
  }, z.core.$strip>;
148
- output: z.ZodObject<{
149
- id: z.ZodString;
150
- name: z.ZodString;
151
- url: z.ZodString;
152
- mimeType: z.ZodOptional<z.ZodString>;
153
- }, z.core.$loose>;
154
- idempotent: boolean;
155
- run({ client, input, req, }: Args<{
156
- attachment: {
157
- fileId: number | string;
158
- name?: string;
263
+ name: z.ZodOptional<z.ZodString>;
264
+ mimeType: z.ZodOptional<z.ZodString>;
265
+ setCover: z.ZodOptional<z.ZodBoolean>;
266
+ }, z.core.$strip>, z.ZodObject<{
267
+ id: z.ZodString;
268
+ name: z.ZodString;
269
+ url: z.ZodString;
270
+ mimeType: z.ZodOptional<z.ZodString>;
271
+ }, z.core.$loose>, Record<string, never>, {
272
+ request: <T>(path: string, init?: RequestInit & {
273
+ query?: {
274
+ [x: string]: string | number | boolean | undefined;
159
275
  };
160
- cardId: string;
161
- mimeType?: string;
162
- name?: string;
163
- setCover?: boolean;
164
- }>): Promise<unknown>;
276
+ }) => Promise<T>;
277
+ verifyWebhook(body: Buffer, signature: string | null, webhookUrl: string): boolean;
278
+ listAll<T extends {
279
+ id: string;
280
+ }>(path: string): Promise<T[]>;
281
+ getCard: <T = Record<string, unknown>>(cardId: string) => Promise<T>;
282
+ listBoards: () => Promise<{
283
+ id: string;
284
+ name: string;
285
+ }[]>;
286
+ listLists: (boardId: string) => Promise<{
287
+ id: string;
288
+ name: string;
289
+ }[]>;
290
+ listLabels: (boardId: string) => Promise<{
291
+ color: string;
292
+ id: string;
293
+ name: string;
294
+ }[]>;
295
+ listWebhooks: () => Promise<import("./client.js").TrelloWebhook[]>;
296
+ createWebhook: (idModel: string, callbackURL: string) => Promise<import("./client.js").TrelloWebhook>;
297
+ deleteWebhook: (id: string) => Promise<unknown>;
298
+ }, {
299
+ [x: string]: unknown;
300
+ id: string;
301
+ name: string;
302
+ url: string;
303
+ mimeType?: string | undefined;
304
+ }> & {
305
+ slug: "addCardAttachment";
165
306
  };
166
- export declare const getCardAttachment: {
167
- slug: string;
168
- description: string;
169
- input: z.ZodObject<{
170
- cardId: z.ZodString;
171
- attachmentId: z.ZodString;
172
- }, z.core.$strip>;
173
- output: z.ZodObject<{
174
- id: z.ZodString;
175
- name: z.ZodString;
176
- url: z.ZodString;
177
- mimeType: z.ZodOptional<z.ZodString>;
178
- }, z.core.$loose>;
179
- idempotent: boolean;
180
- run({ client, input }: Args<{
181
- attachmentId: string;
182
- cardId: string;
183
- }>): Promise<unknown>;
307
+ export declare const getCardAttachment: import("frogbot").PieceActionDefinition<z.ZodObject<{
308
+ cardId: z.ZodString;
309
+ attachmentId: z.ZodString;
310
+ }, z.core.$strip>, z.ZodObject<{
311
+ id: z.ZodString;
312
+ name: z.ZodString;
313
+ url: z.ZodString;
314
+ mimeType: z.ZodOptional<z.ZodString>;
315
+ }, z.core.$loose>, Record<string, never>, {
316
+ request: <T>(path: string, init?: RequestInit & {
317
+ query?: {
318
+ [x: string]: string | number | boolean | undefined;
319
+ };
320
+ }) => Promise<T>;
321
+ verifyWebhook(body: Buffer, signature: string | null, webhookUrl: string): boolean;
322
+ listAll<T extends {
323
+ id: string;
324
+ }>(path: string): Promise<T[]>;
325
+ getCard: <T = Record<string, unknown>>(cardId: string) => Promise<T>;
326
+ listBoards: () => Promise<{
327
+ id: string;
328
+ name: string;
329
+ }[]>;
330
+ listLists: (boardId: string) => Promise<{
331
+ id: string;
332
+ name: string;
333
+ }[]>;
334
+ listLabels: (boardId: string) => Promise<{
335
+ color: string;
336
+ id: string;
337
+ name: string;
338
+ }[]>;
339
+ listWebhooks: () => Promise<import("./client.js").TrelloWebhook[]>;
340
+ createWebhook: (idModel: string, callbackURL: string) => Promise<import("./client.js").TrelloWebhook>;
341
+ deleteWebhook: (id: string) => Promise<unknown>;
342
+ }, {
343
+ [x: string]: unknown;
344
+ id: string;
345
+ name: string;
346
+ url: string;
347
+ mimeType?: string | undefined;
348
+ }> & {
349
+ slug: "getCardAttachment";
184
350
  };
185
- export declare const deleteCardAttachment: {
186
- slug: string;
187
- description: string;
188
- input: z.ZodObject<{
189
- cardId: z.ZodString;
190
- attachmentId: z.ZodString;
191
- }, z.core.$strip>;
192
- output: z.ZodObject<{}, z.core.$loose>;
193
- idempotent: boolean;
194
- run({ client, input }: Args<{
195
- attachmentId: string;
196
- cardId: string;
197
- }>): Promise<unknown>;
351
+ export declare const deleteCardAttachment: import("frogbot").PieceActionDefinition<z.ZodObject<{
352
+ cardId: z.ZodString;
353
+ attachmentId: z.ZodString;
354
+ }, z.core.$strip>, z.ZodObject<{}, z.core.$loose>, Record<string, never>, {
355
+ request: <T>(path: string, init?: RequestInit & {
356
+ query?: {
357
+ [x: string]: string | number | boolean | undefined;
358
+ };
359
+ }) => Promise<T>;
360
+ verifyWebhook(body: Buffer, signature: string | null, webhookUrl: string): boolean;
361
+ listAll<T extends {
362
+ id: string;
363
+ }>(path: string): Promise<T[]>;
364
+ getCard: <T = Record<string, unknown>>(cardId: string) => Promise<T>;
365
+ listBoards: () => Promise<{
366
+ id: string;
367
+ name: string;
368
+ }[]>;
369
+ listLists: (boardId: string) => Promise<{
370
+ id: string;
371
+ name: string;
372
+ }[]>;
373
+ listLabels: (boardId: string) => Promise<{
374
+ color: string;
375
+ id: string;
376
+ name: string;
377
+ }[]>;
378
+ listWebhooks: () => Promise<import("./client.js").TrelloWebhook[]>;
379
+ createWebhook: (idModel: string, callbackURL: string) => Promise<import("./client.js").TrelloWebhook>;
380
+ deleteWebhook: (id: string) => Promise<unknown>;
381
+ }, {
382
+ [x: string]: unknown;
383
+ }> & {
384
+ slug: "deleteCardAttachment";
198
385
  };
199
- declare const customInput: z.ZodObject<{
386
+ export declare const customApiCall: import("frogbot").PieceActionDefinition<z.ZodObject<{
200
387
  method: z.ZodEnum<{
201
388
  POST: "POST";
202
389
  DELETE: "DELETE";
203
- GET: "GET";
204
390
  PUT: "PUT";
391
+ GET: "GET";
205
392
  PATCH: "PATCH";
206
393
  }>;
207
394
  path: z.ZodString;
208
395
  headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
209
396
  query: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>>;
210
397
  body: z.ZodOptional<z.ZodJSONSchema>;
211
- }, z.core.$strip>;
212
- export declare const customApiCall: {
213
- slug: string;
214
- description: string;
215
- input: z.ZodObject<{
216
- method: z.ZodEnum<{
217
- POST: "POST";
218
- DELETE: "DELETE";
219
- GET: "GET";
220
- PUT: "PUT";
221
- PATCH: "PATCH";
222
- }>;
223
- path: z.ZodString;
224
- headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
225
- query: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>>;
226
- body: z.ZodOptional<z.ZodJSONSchema>;
227
- }, z.core.$strip>;
228
- output: z.ZodJSONSchema;
229
- idempotent: boolean;
230
- run({ client, input }: Args<z.output<typeof customInput>>): Promise<unknown>;
398
+ }, z.core.$strip>, z.ZodJSONSchema, Record<string, never>, {
399
+ request: <T>(path: string, init?: RequestInit & {
400
+ query?: {
401
+ [x: string]: string | number | boolean | undefined;
402
+ };
403
+ }) => Promise<T>;
404
+ verifyWebhook(body: Buffer, signature: string | null, webhookUrl: string): boolean;
405
+ listAll<T extends {
406
+ id: string;
407
+ }>(path: string): Promise<T[]>;
408
+ getCard: <T = Record<string, unknown>>(cardId: string) => Promise<T>;
409
+ listBoards: () => Promise<{
410
+ id: string;
411
+ name: string;
412
+ }[]>;
413
+ listLists: (boardId: string) => Promise<{
414
+ id: string;
415
+ name: string;
416
+ }[]>;
417
+ listLabels: (boardId: string) => Promise<{
418
+ color: string;
419
+ id: string;
420
+ name: string;
421
+ }[]>;
422
+ listWebhooks: () => Promise<import("./client.js").TrelloWebhook[]>;
423
+ createWebhook: (idModel: string, callbackURL: string) => Promise<import("./client.js").TrelloWebhook>;
424
+ deleteWebhook: (id: string) => Promise<unknown>;
425
+ }, z.core.util.JSONType> & {
426
+ slug: "customApiCall";
231
427
  };
232
- export {};
233
428
  //# sourceMappingURL=actions.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"actions.d.ts","sourceRoot":"","sources":["../src/actions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,gBAAgB,CAAC;AACnD,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAE1C,OAAO,EAAE,YAAY,EAAE,YAAY,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAGvE,KAAK,IAAI,CAAC,CAAC,IAAI,YAAY,CAAC,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,EAAE,MAAM,CAAC,CAAC;AAO9D,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4BAiBlB,IAAI,CAAC;QACN,OAAO,EAAE,MAAM,CAAC;QAChB,WAAW,CAAC,EAAE,MAAM,CAAC;QACrB,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAC;QACpB,MAAM,EAAE,MAAM,CAAC;QACf,IAAI,EAAE,MAAM,CAAC;QACb,QAAQ,CAAC,EAAE,QAAQ,GAAG,KAAK,CAAC;KAC7B,CAAC;CAaH,CAAC;AAEF,eAAO,MAAM,OAAO;;;;;;;;;;;;;;;;;;2BAMW,IAAI,CAAC;QAAE,MAAM,EAAE,MAAM,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