@frogbotai/piece-trello 0.31.0 → 0.33.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/README.md +11 -11
- package/dist/actions.d.ts +11 -16
- package/dist/actions.d.ts.map +1 -1
- package/dist/actions.js +5 -37
- package/dist/actions.js.map +1 -1
- package/dist/client.d.ts +1 -0
- package/dist/client.d.ts.map +1 -1
- package/dist/client.js +18 -0
- package/dist/client.js.map +1 -1
- package/dist/define.d.ts +69 -1
- package/dist/define.d.ts.map +1 -1
- package/dist/define.js +1 -1
- package/dist/define.js.map +1 -1
- package/dist/index.d.ts +20 -16
- package/dist/index.d.ts.map +1 -1
- package/dist/triggers.d.ts +9 -0
- package/dist/triggers.d.ts.map +1 -1
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -20,17 +20,17 @@ Create an application at [Trello's Power-Up administration page](https://trello.
|
|
|
20
20
|
|
|
21
21
|
## Actions
|
|
22
22
|
|
|
23
|
-
| Upstream action slug | Previous wrapper export | Native action | Notes
|
|
24
|
-
| ------------------------ | ----------------------- | ---------------------- |
|
|
25
|
-
| `create_card` | `createCard` | `createCard` |
|
|
26
|
-
| `get_card` | `getCard` | `getCard` |
|
|
27
|
-
| `update_card` | `updateCard` | `updateCard` |
|
|
28
|
-
| `delete_card` | `deleteCard` | `deleteCard` |
|
|
29
|
-
| `get_card_attachments` | `getCardAttachments` | `listCardAttachments` | Uses collection naming.
|
|
30
|
-
| `add_card_attachment` | `addCardAttachment` | `addCardAttachment` | Uploads from FrogBot files.
|
|
31
|
-
| `get_card_attachment` | `getCardAttachment` | `getCardAttachment` |
|
|
32
|
-
| `delete_card_attachment` | `deleteCardAttachment` | `deleteCardAttachment` |
|
|
33
|
-
| `custom_api_call` | `customApiCall` | `customApiCall` | Auth is added as query parameters. |
|
|
23
|
+
| Upstream action slug | Previous wrapper export | Native action | Notes |
|
|
24
|
+
| ------------------------ | ----------------------- | ---------------------- | --------------------------------------------------------------------------------------------- |
|
|
25
|
+
| `create_card` | `createCard` | `createCard` | |
|
|
26
|
+
| `get_card` | `getCard` | `getCard` | |
|
|
27
|
+
| `update_card` | `updateCard` | `updateCard` | |
|
|
28
|
+
| `delete_card` | `deleteCard` | `deleteCard` | |
|
|
29
|
+
| `get_card_attachments` | `getCardAttachments` | `listCardAttachments` | Uses collection naming. |
|
|
30
|
+
| `add_card_attachment` | `addCardAttachment` | `addCardAttachment` | Uploads from FrogBot files. |
|
|
31
|
+
| `get_card_attachment` | `getCardAttachment` | `getCardAttachment` | |
|
|
32
|
+
| `delete_card_attachment` | `deleteCardAttachment` | `deleteCardAttachment` | |
|
|
33
|
+
| `custom_api_call` | `customApiCall` | `customApiCall` | Auth is added as query parameters; a `path` or `query` that sets `key` or `token` is refused. |
|
|
34
34
|
|
|
35
35
|
## Triggers
|
|
36
36
|
|
package/dist/actions.d.ts
CHANGED
|
@@ -25,6 +25,7 @@ export declare const createCard: import("frogbot").PieceActionDefinition<z.ZodOb
|
|
|
25
25
|
[x: string]: string | number | boolean | undefined;
|
|
26
26
|
};
|
|
27
27
|
}) => Promise<T>;
|
|
28
|
+
authorize(url: URL): void;
|
|
28
29
|
verifyWebhook(body: Buffer, signature: string | null, webhookUrl: string): boolean;
|
|
29
30
|
listAll<T extends {
|
|
30
31
|
id: string;
|
|
@@ -78,6 +79,7 @@ export declare const getCard: import("frogbot").PieceActionDefinition<z.ZodObjec
|
|
|
78
79
|
[x: string]: string | number | boolean | undefined;
|
|
79
80
|
};
|
|
80
81
|
}) => Promise<T>;
|
|
82
|
+
authorize(url: URL): void;
|
|
81
83
|
verifyWebhook(body: Buffer, signature: string | null, webhookUrl: string): boolean;
|
|
82
84
|
listAll<T extends {
|
|
83
85
|
id: string;
|
|
@@ -142,6 +144,7 @@ export declare const updateCard: import("frogbot").PieceActionDefinition<z.ZodOb
|
|
|
142
144
|
[x: string]: string | number | boolean | undefined;
|
|
143
145
|
};
|
|
144
146
|
}) => Promise<T>;
|
|
147
|
+
authorize(url: URL): void;
|
|
145
148
|
verifyWebhook(body: Buffer, signature: string | null, webhookUrl: string): boolean;
|
|
146
149
|
listAll<T extends {
|
|
147
150
|
id: string;
|
|
@@ -185,6 +188,7 @@ export declare const deleteCard: import("frogbot").PieceActionDefinition<z.ZodOb
|
|
|
185
188
|
[x: string]: string | number | boolean | undefined;
|
|
186
189
|
};
|
|
187
190
|
}) => Promise<T>;
|
|
191
|
+
authorize(url: URL): void;
|
|
188
192
|
verifyWebhook(body: Buffer, signature: string | null, webhookUrl: string): boolean;
|
|
189
193
|
listAll<T extends {
|
|
190
194
|
id: string;
|
|
@@ -224,6 +228,7 @@ export declare const listCardAttachments: import("frogbot").PieceActionDefinitio
|
|
|
224
228
|
[x: string]: string | number | boolean | undefined;
|
|
225
229
|
};
|
|
226
230
|
}) => Promise<T>;
|
|
231
|
+
authorize(url: URL): void;
|
|
227
232
|
verifyWebhook(body: Buffer, signature: string | null, webhookUrl: string): boolean;
|
|
228
233
|
listAll<T extends {
|
|
229
234
|
id: string;
|
|
@@ -274,6 +279,7 @@ export declare const addCardAttachment: import("frogbot").PieceActionDefinition<
|
|
|
274
279
|
[x: string]: string | number | boolean | undefined;
|
|
275
280
|
};
|
|
276
281
|
}) => Promise<T>;
|
|
282
|
+
authorize(url: URL): void;
|
|
277
283
|
verifyWebhook(body: Buffer, signature: string | null, webhookUrl: string): boolean;
|
|
278
284
|
listAll<T extends {
|
|
279
285
|
id: string;
|
|
@@ -318,6 +324,7 @@ export declare const getCardAttachment: import("frogbot").PieceActionDefinition<
|
|
|
318
324
|
[x: string]: string | number | boolean | undefined;
|
|
319
325
|
};
|
|
320
326
|
}) => Promise<T>;
|
|
327
|
+
authorize(url: URL): void;
|
|
321
328
|
verifyWebhook(body: Buffer, signature: string | null, webhookUrl: string): boolean;
|
|
322
329
|
listAll<T extends {
|
|
323
330
|
id: string;
|
|
@@ -357,6 +364,7 @@ export declare const deleteCardAttachment: import("frogbot").PieceActionDefiniti
|
|
|
357
364
|
[x: string]: string | number | boolean | undefined;
|
|
358
365
|
};
|
|
359
366
|
}) => Promise<T>;
|
|
367
|
+
authorize(url: URL): void;
|
|
360
368
|
verifyWebhook(body: Buffer, signature: string | null, webhookUrl: string): boolean;
|
|
361
369
|
listAll<T extends {
|
|
362
370
|
id: string;
|
|
@@ -383,24 +391,13 @@ export declare const deleteCardAttachment: import("frogbot").PieceActionDefiniti
|
|
|
383
391
|
}> & {
|
|
384
392
|
slug: "deleteCardAttachment";
|
|
385
393
|
};
|
|
386
|
-
export declare const customApiCall: import("frogbot").
|
|
387
|
-
method: z.ZodEnum<{
|
|
388
|
-
POST: "POST";
|
|
389
|
-
DELETE: "DELETE";
|
|
390
|
-
PUT: "PUT";
|
|
391
|
-
GET: "GET";
|
|
392
|
-
PATCH: "PATCH";
|
|
393
|
-
}>;
|
|
394
|
-
path: z.ZodString;
|
|
395
|
-
headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
396
|
-
query: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>>;
|
|
397
|
-
body: z.ZodOptional<z.ZodJSONSchema>;
|
|
398
|
-
}, z.core.$strip>, z.ZodJSONSchema, Record<string, never>, {
|
|
394
|
+
export declare const customApiCall: import("frogbot/pieces").CustomApiCallAction<Record<string, never>, {
|
|
399
395
|
request: <T>(path: string, init?: RequestInit & {
|
|
400
396
|
query?: {
|
|
401
397
|
[x: string]: string | number | boolean | undefined;
|
|
402
398
|
};
|
|
403
399
|
}) => Promise<T>;
|
|
400
|
+
authorize(url: URL): void;
|
|
404
401
|
verifyWebhook(body: Buffer, signature: string | null, webhookUrl: string): boolean;
|
|
405
402
|
listAll<T extends {
|
|
406
403
|
id: string;
|
|
@@ -422,7 +419,5 @@ export declare const customApiCall: import("frogbot").PieceActionDefinition<z.Zo
|
|
|
422
419
|
listWebhooks: () => Promise<import("./client.js").TrelloWebhook[]>;
|
|
423
420
|
createWebhook: (idModel: string, callbackURL: string) => Promise<import("./client.js").TrelloWebhook>;
|
|
424
421
|
deleteWebhook: (id: string) => Promise<unknown>;
|
|
425
|
-
}
|
|
426
|
-
slug: "customApiCall";
|
|
427
|
-
};
|
|
422
|
+
}>;
|
|
428
423
|
//# sourceMappingURL=actions.d.ts.map
|
package/dist/actions.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"actions.d.ts","sourceRoot":"","sources":["../src/actions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAYxB,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"actions.d.ts","sourceRoot":"","sources":["../src/actions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAYxB,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;aAMiC,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAqBvD,CAAC;AAEH,eAAO,MAAM,OAAO;;;;;;;;;;;;;;aAvBoC,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgCvD,CAAC;AAEH,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;aAlCiC,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAkEvD,CAAC;AAEH,eAAO,MAAM,UAAU;;;;aApEiC,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA6EvD,CAAC;AAEH,eAAO,MAAM,mBAAmB;;;;;;;;;aA/EwB,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAwFvD,CAAC;AAEH,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;aA1F0B,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAwHvD,CAAC;AAEH,eAAO,MAAM,iBAAiB;;;;;;;;;;aA1H0B,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAmIvD,CAAC;AAEH,eAAO,MAAM,oBAAoB;;;;;aArIuB,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgJvD,CAAC;AAEH,eAAO,MAAM,aAAa;;aAlJ8B,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;EAsJvD,CAAC"}
|
package/dist/actions.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { defineAction } from './define.js';
|
|
2
|
+
import { defineAction, defineCustomApiCall } from './define.js';
|
|
3
3
|
import { loadAttachment } from './files.js';
|
|
4
4
|
import { boardOptions, labelOptions, listOptions } from './options.js';
|
|
5
5
|
import { attachmentOutput, cardOutput, emptyOutput } from './schemas.js';
|
|
@@ -190,42 +190,10 @@ export const deleteCardAttachment = defineAction({
|
|
|
190
190
|
});
|
|
191
191
|
}
|
|
192
192
|
});
|
|
193
|
-
const
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
'PUT',
|
|
198
|
-
'PATCH',
|
|
199
|
-
'DELETE'
|
|
200
|
-
]),
|
|
201
|
-
path: z.string().startsWith('/'),
|
|
202
|
-
headers: z.record(z.string(), z.string()).optional(),
|
|
203
|
-
query: z.record(z.string(), z.union([
|
|
204
|
-
z.string(),
|
|
205
|
-
z.number(),
|
|
206
|
-
z.boolean()
|
|
207
|
-
])).optional(),
|
|
208
|
-
body: z.json().optional()
|
|
209
|
-
});
|
|
210
|
-
export const customApiCall = defineAction({
|
|
211
|
-
slug: 'customApiCall',
|
|
212
|
-
description: 'Make an authenticated Trello API call.',
|
|
213
|
-
input: customInput,
|
|
214
|
-
output: z.json(),
|
|
215
|
-
idempotent: false,
|
|
216
|
-
async run ({ client, input }) {
|
|
217
|
-
return client.request(input.path, {
|
|
218
|
-
method: input.method,
|
|
219
|
-
headers: {
|
|
220
|
-
...input.headers,
|
|
221
|
-
...input.body === undefined ? {} : {
|
|
222
|
-
'Content-Type': 'application/json'
|
|
223
|
-
}
|
|
224
|
-
},
|
|
225
|
-
body: input.body === undefined ? undefined : JSON.stringify(input.body),
|
|
226
|
-
query: input.query
|
|
227
|
-
});
|
|
228
|
-
}
|
|
193
|
+
export const customApiCall = defineCustomApiCall({
|
|
194
|
+
name: 'Trello',
|
|
195
|
+
baseUrl: 'https://api.trello.com/1',
|
|
196
|
+
authorize: ({ client, url })=>client.authorize(url)
|
|
229
197
|
});
|
|
230
198
|
|
|
231
199
|
//# sourceMappingURL=actions.js.map
|
package/dist/actions.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/actions.ts"],"names":["z","defineAction","loadAttachment","boardOptions","labelOptions","listOptions","attachmentOutput","cardOutput","emptyOutput","cardIdInput","object","cardId","string","min","meta","label","attachmentIdInput","extend","attachmentId","createCard","slug","description","input","boardId","listId","name","optional","position","enum","labelIds","array","output","idempotent","options","run","client","request","method","headers","body","JSON","stringify","desc","pos","idLabels","query","idList","getCard","updateCard","archived","boolean","due","datetime","closed","deleteCard","listCardAttachments","addCardAttachment","attachment","fileId","union","number","mimeType","setCover","req","form","FormData","append","data","type","getCardAttachment","deleteCardAttachment","
|
|
1
|
+
{"version":3,"sources":["../src/actions.ts"],"names":["z","defineAction","defineCustomApiCall","loadAttachment","boardOptions","labelOptions","listOptions","attachmentOutput","cardOutput","emptyOutput","cardIdInput","object","cardId","string","min","meta","label","attachmentIdInput","extend","attachmentId","createCard","slug","description","input","boardId","listId","name","optional","position","enum","labelIds","array","output","idempotent","options","run","client","request","method","headers","body","JSON","stringify","desc","pos","idLabels","query","idList","getCard","updateCard","archived","boolean","due","datetime","closed","deleteCard","listCardAttachments","addCardAttachment","attachment","fileId","union","number","mimeType","setCover","req","form","FormData","append","data","type","getCardAttachment","deleteCardAttachment","customApiCall","baseUrl","authorize","url"],"mappings":"AAAA,SAASA,CAAC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MAAMJ,YAAY,EAAE,EAAE;YAC/EmB,QAAQ;QACV;IACF;AACF,GAAG;AAEH,OAAO,MAAMkC,gBAAgBtE,oBAAoB;IAC/CwB,MAAM;IACN+C,SAAS;IACTC,WAAW,CAAC,EAAEtC,MAAM,EAAEuC,GAAG,EAAE,GAAKvC,OAAOsC,SAAS,CAACC;AACnD,GAAG","file":"actions.js"}
|
package/dist/client.d.ts
CHANGED
|
@@ -11,6 +11,7 @@ export declare function createTrelloClient({ auth }: {
|
|
|
11
11
|
request: <T>(path: string, init?: RequestInit & {
|
|
12
12
|
query?: Query;
|
|
13
13
|
}) => Promise<T>;
|
|
14
|
+
authorize(url: URL): void;
|
|
14
15
|
verifyWebhook(body: Buffer, signature: string | null, webhookUrl: string): boolean;
|
|
15
16
|
listAll<T extends {
|
|
16
17
|
id: string;
|
package/dist/client.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../src/client.ts"],"names":[],"mappings":"AAIA,KAAK,KAAK,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,GAAG,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC,CAAC;AAEnE,MAAM,MAAM,aAAa,GAAG;IAC1B,WAAW,EAAE,MAAM,CAAC;IACpB,EAAE,EAAE,MAAM,CAAC;IACX,OAAO,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF,MAAM,MAAM,MAAM,GAAG,UAAU,CAAC,OAAO,kBAAkB,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../src/client.ts"],"names":[],"mappings":"AAIA,KAAK,KAAK,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,GAAG,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC,CAAC;AAEnE,MAAM,MAAM,aAAa,GAAG;IAC1B,WAAW,EAAE,MAAM,CAAC;IACpB,EAAE,EAAE,MAAM,CAAC;IACX,OAAO,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF,MAAM,MAAM,MAAM,GAAG,UAAU,CAAC,OAAO,kBAAkB,CAAC,CAAC;AAU3D,wBAAgB,kBAAkB,CAAC,EAAE,IAAI,EAAE,EAAE;IAAE,IAAI,EAAE,OAAO,CAAA;CAAE;cAGrC,CAAC,QAAQ,MAAM,SAAQ,WAAW,GAAG;QAAE,KAAK,CAAC,EAAE,KAAK,CAAA;KAAE,KAAQ,OAAO,CAAC,CAAC,CAAC;mBA8B9E,GAAG;wBAKE,MAAM,aAAa,MAAM,GAAG,IAAI,cAAc,MAAM;YAY1D,CAAC,SAAS;QAAE,EAAE,EAAE,MAAM,CAAA;KAAE,QAAQ,MAAM;cAc1C,CAAC,oCAAoC,MAAM;;YACf,MAAM;cAAQ,MAAM;;yBACrC,MAAM;YACL,MAAM;cAAQ,MAAM;;0BACpB,MAAM;eACH,MAAM;YAAM,MAAM;cAAQ,MAAM;;;6BAEhC,MAAM,eAAe,MAAM;wBAKhC,MAAM;EAE7B"}
|
package/dist/client.js
CHANGED
|
@@ -1,15 +1,28 @@
|
|
|
1
1
|
import { createHmac, timingSafeEqual } from 'node:crypto';
|
|
2
2
|
import { trelloAuth } from './config.js';
|
|
3
|
+
function refuseCredentialQuery(url, query) {
|
|
4
|
+
const names = [
|
|
5
|
+
...url.searchParams.keys(),
|
|
6
|
+
...Object.keys(query ?? {})
|
|
7
|
+
];
|
|
8
|
+
if (names.some((name)=>/^(key|token)$/i.test(name))) {
|
|
9
|
+
throw new Error('[frogbot] Trello query must not set `key` or `token`.');
|
|
10
|
+
}
|
|
11
|
+
}
|
|
3
12
|
export function createTrelloClient({ auth }) {
|
|
4
13
|
const credential = trelloAuth.parse(auth);
|
|
5
14
|
async function request(path, init = {}) {
|
|
6
15
|
const url = new URL(`https://api.trello.com/1/${path.replace(/^\//, '')}`);
|
|
16
|
+
refuseCredentialQuery(url, init.query);
|
|
7
17
|
url.searchParams.set('key', credential.username);
|
|
8
18
|
url.searchParams.set('token', credential.password);
|
|
9
19
|
Object.entries(init.query ?? {}).forEach(([key, value])=>{
|
|
10
20
|
if (value !== undefined) url.searchParams.set(key, String(value));
|
|
11
21
|
});
|
|
12
22
|
const response = await fetch(url, init);
|
|
23
|
+
if (init.redirect === 'manual' && response.status >= 300 && response.status < 400) {
|
|
24
|
+
throw new Error(`Trello API redirected (${response.status}) to ${response.headers.get('location')}.`);
|
|
25
|
+
}
|
|
13
26
|
const text = await response.text();
|
|
14
27
|
if (!response.ok) {
|
|
15
28
|
throw new Error(`Trello request failed (${response.status}): ${text || response.statusText}`);
|
|
@@ -18,6 +31,11 @@ export function createTrelloClient({ auth }) {
|
|
|
18
31
|
}
|
|
19
32
|
return {
|
|
20
33
|
request,
|
|
34
|
+
authorize (url) {
|
|
35
|
+
refuseCredentialQuery(url);
|
|
36
|
+
url.searchParams.set('key', credential.username);
|
|
37
|
+
url.searchParams.set('token', credential.password);
|
|
38
|
+
},
|
|
21
39
|
verifyWebhook (body, signature, webhookUrl) {
|
|
22
40
|
if (!signature || !/^[A-Za-z\d+/]{27}=$/.test(signature)) return false;
|
|
23
41
|
const expected = createHmac('sha1', credential.applicationSecret).update(body).update(webhookUrl).digest();
|
package/dist/client.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/client.ts"],"names":["createHmac","timingSafeEqual","trelloAuth","createTrelloClient","auth","credential","parse","request","path","init","
|
|
1
|
+
{"version":3,"sources":["../src/client.ts"],"names":["createHmac","timingSafeEqual","trelloAuth","refuseCredentialQuery","url","query","names","searchParams","keys","Object","some","name","test","Error","createTrelloClient","auth","credential","parse","request","path","init","URL","replace","set","username","password","entries","forEach","key","value","undefined","String","response","fetch","redirect","status","headers","get","text","ok","statusText","JSON","authorize","verifyWebhook","body","signature","webhookUrl","expected","applicationSecret","update","digest","actual","Buffer","from","length","listAll","items","before","page","limit","push","at","id","getCard","cardId","listBoards","listLists","boardId","listLabels","listWebhooks","createWebhook","idModel","callbackURL","method","deleteWebhook"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,CAACD,UACXjD,QAA4D,CAAC,OAAO,EAAEiD,QAAQ,OAAO,CAAC;QACxFE,cAAc,IAAMnD,QAAyB,CAAC,OAAO,EAAEF,WAAWS,QAAQ,CAAC,SAAS,CAAC;QACrF6C,eAAe,CAACC,SAAiBC,cAC/BtD,QAAuB,YAAY;gBACjCuD,QAAQ;gBACRpE,OAAO;oBAAEmE;oBAAaD;gBAAQ;YAChC;QACFG,eAAe,CAACZ,KAAe5C,QAAQ,CAAC,SAAS,EAAE4C,IAAI,EAAE;gBAAEW,QAAQ;YAAS;IAC9E;AACF","file":"client.js"}
|
package/dist/define.d.ts
CHANGED
|
@@ -4,6 +4,7 @@ export declare const defineAction: <const TSlug extends string, TInput extends i
|
|
|
4
4
|
[x: string]: string | number | boolean | undefined;
|
|
5
5
|
};
|
|
6
6
|
}) => Promise<T>;
|
|
7
|
+
authorize(url: URL): void;
|
|
7
8
|
verifyWebhook(body: Buffer, signature: string | null, webhookUrl: string): boolean;
|
|
8
9
|
listAll<T extends {
|
|
9
10
|
id: string;
|
|
@@ -33,6 +34,7 @@ export declare const defineAction: <const TSlug extends string, TInput extends i
|
|
|
33
34
|
[x: string]: string | number | boolean | undefined;
|
|
34
35
|
};
|
|
35
36
|
}) => Promise<T>;
|
|
37
|
+
authorize(url: URL): void;
|
|
36
38
|
verifyWebhook(body: Buffer, signature: string | null, webhookUrl: string): boolean;
|
|
37
39
|
listAll<T extends {
|
|
38
40
|
id: string;
|
|
@@ -56,7 +58,63 @@ export declare const defineAction: <const TSlug extends string, TInput extends i
|
|
|
56
58
|
deleteWebhook: (id: string) => Promise<unknown>;
|
|
57
59
|
}, TOutput extends import("zod").ZodType<unknown, unknown, import("zod/v4/core").$ZodTypeInternals<unknown, unknown>> ? import("zod").infer<TOutput> : TResult> & {
|
|
58
60
|
slug: TSlug;
|
|
59
|
-
},
|
|
61
|
+
}, defineCustomApiCall: (config: import("frogbot/pieces").CustomApiCallConfig<{
|
|
62
|
+
request: <T>(path: string, init?: RequestInit & {
|
|
63
|
+
query?: {
|
|
64
|
+
[x: string]: string | number | boolean | undefined;
|
|
65
|
+
};
|
|
66
|
+
}) => Promise<T>;
|
|
67
|
+
authorize(url: URL): void;
|
|
68
|
+
verifyWebhook(body: Buffer, signature: string | null, webhookUrl: string): boolean;
|
|
69
|
+
listAll<T extends {
|
|
70
|
+
id: string;
|
|
71
|
+
}>(path: string): Promise<T[]>;
|
|
72
|
+
getCard: <T = Record<string, unknown>>(cardId: string) => Promise<T>;
|
|
73
|
+
listBoards: () => Promise<{
|
|
74
|
+
id: string;
|
|
75
|
+
name: string;
|
|
76
|
+
}[]>;
|
|
77
|
+
listLists: (boardId: string) => Promise<{
|
|
78
|
+
id: string;
|
|
79
|
+
name: string;
|
|
80
|
+
}[]>;
|
|
81
|
+
listLabels: (boardId: string) => Promise<{
|
|
82
|
+
color: string;
|
|
83
|
+
id: string;
|
|
84
|
+
name: string;
|
|
85
|
+
}[]>;
|
|
86
|
+
listWebhooks: () => Promise<import("./client.js").TrelloWebhook[]>;
|
|
87
|
+
createWebhook: (idModel: string, callbackURL: string) => Promise<import("./client.js").TrelloWebhook>;
|
|
88
|
+
deleteWebhook: (id: string) => Promise<unknown>;
|
|
89
|
+
}>) => import("frogbot/pieces").CustomApiCallAction<Record<string, never>, {
|
|
90
|
+
request: <T>(path: string, init?: RequestInit & {
|
|
91
|
+
query?: {
|
|
92
|
+
[x: string]: string | number | boolean | undefined;
|
|
93
|
+
};
|
|
94
|
+
}) => Promise<T>;
|
|
95
|
+
authorize(url: URL): void;
|
|
96
|
+
verifyWebhook(body: Buffer, signature: string | null, webhookUrl: string): boolean;
|
|
97
|
+
listAll<T extends {
|
|
98
|
+
id: string;
|
|
99
|
+
}>(path: string): Promise<T[]>;
|
|
100
|
+
getCard: <T = Record<string, unknown>>(cardId: string) => Promise<T>;
|
|
101
|
+
listBoards: () => Promise<{
|
|
102
|
+
id: string;
|
|
103
|
+
name: string;
|
|
104
|
+
}[]>;
|
|
105
|
+
listLists: (boardId: string) => Promise<{
|
|
106
|
+
id: string;
|
|
107
|
+
name: string;
|
|
108
|
+
}[]>;
|
|
109
|
+
listLabels: (boardId: string) => Promise<{
|
|
110
|
+
color: string;
|
|
111
|
+
id: string;
|
|
112
|
+
name: string;
|
|
113
|
+
}[]>;
|
|
114
|
+
listWebhooks: () => Promise<import("./client.js").TrelloWebhook[]>;
|
|
115
|
+
createWebhook: (idModel: string, callbackURL: string) => Promise<import("./client.js").TrelloWebhook>;
|
|
116
|
+
deleteWebhook: (id: string) => Promise<unknown>;
|
|
117
|
+
}>, definePollingTrigger: <const TSlug extends string, TInput extends import("zod").ZodType, TOutput extends import("zod").ZodType | undefined = undefined>(trigger: TOutput extends unknown ? {
|
|
60
118
|
slug: string;
|
|
61
119
|
label?: string;
|
|
62
120
|
description: string;
|
|
@@ -72,6 +130,7 @@ export declare const defineAction: <const TSlug extends string, TInput extends i
|
|
|
72
130
|
[x: string]: string | number | boolean | undefined;
|
|
73
131
|
};
|
|
74
132
|
}) => Promise<T>;
|
|
133
|
+
authorize(url: URL): void;
|
|
75
134
|
verifyWebhook(body: Buffer, signature: string | null, webhookUrl: string): boolean;
|
|
76
135
|
listAll<T extends {
|
|
77
136
|
id: string;
|
|
@@ -117,6 +176,7 @@ export declare const defineAction: <const TSlug extends string, TInput extends i
|
|
|
117
176
|
[x: string]: string | number | boolean | undefined;
|
|
118
177
|
};
|
|
119
178
|
}) => Promise<T>;
|
|
179
|
+
authorize(url: URL): void;
|
|
120
180
|
verifyWebhook(body: Buffer, signature: string | null, webhookUrl: string): boolean;
|
|
121
181
|
listAll<T extends {
|
|
122
182
|
id: string;
|
|
@@ -161,6 +221,7 @@ export declare const defineAction: <const TSlug extends string, TInput extends i
|
|
|
161
221
|
[x: string]: string | number | boolean | undefined;
|
|
162
222
|
};
|
|
163
223
|
}) => Promise<T>;
|
|
224
|
+
authorize(url: URL): void;
|
|
164
225
|
verifyWebhook(body: Buffer, signature: string | null, webhookUrl: string): boolean;
|
|
165
226
|
listAll<T extends {
|
|
166
227
|
id: string;
|
|
@@ -191,6 +252,7 @@ export declare const defineAction: <const TSlug extends string, TInput extends i
|
|
|
191
252
|
[x: string]: string | number | boolean | undefined;
|
|
192
253
|
};
|
|
193
254
|
}) => Promise<T>;
|
|
255
|
+
authorize(url: URL): void;
|
|
194
256
|
verifyWebhook(body: Buffer, signature: string | null, webhookUrl: string): boolean;
|
|
195
257
|
listAll<T extends {
|
|
196
258
|
id: string;
|
|
@@ -223,6 +285,7 @@ export declare const defineAction: <const TSlug extends string, TInput extends i
|
|
|
223
285
|
[x: string]: string | number | boolean | undefined;
|
|
224
286
|
};
|
|
225
287
|
}) => Promise<T>;
|
|
288
|
+
authorize(url: URL): void;
|
|
226
289
|
verifyWebhook(body: Buffer, signature: string | null, webhookUrl: string): boolean;
|
|
227
290
|
listAll<T extends {
|
|
228
291
|
id: string;
|
|
@@ -255,6 +318,7 @@ export declare const defineAction: <const TSlug extends string, TInput extends i
|
|
|
255
318
|
[x: string]: string | number | boolean | undefined;
|
|
256
319
|
};
|
|
257
320
|
}) => Promise<T>;
|
|
321
|
+
authorize(url: URL): void;
|
|
258
322
|
verifyWebhook(body: Buffer, signature: string | null, webhookUrl: string): boolean;
|
|
259
323
|
listAll<T extends {
|
|
260
324
|
id: string;
|
|
@@ -296,6 +360,7 @@ export declare const defineAction: <const TSlug extends string, TInput extends i
|
|
|
296
360
|
[x: string]: string | number | boolean | undefined;
|
|
297
361
|
};
|
|
298
362
|
}) => Promise<T>;
|
|
363
|
+
authorize(url: URL): void;
|
|
299
364
|
verifyWebhook(body: Buffer, signature: string | null, webhookUrl: string): boolean;
|
|
300
365
|
listAll<T extends {
|
|
301
366
|
id: string;
|
|
@@ -326,6 +391,7 @@ export declare const defineAction: <const TSlug extends string, TInput extends i
|
|
|
326
391
|
[x: string]: string | number | boolean | undefined;
|
|
327
392
|
};
|
|
328
393
|
}) => Promise<T>;
|
|
394
|
+
authorize(url: URL): void;
|
|
329
395
|
verifyWebhook(body: Buffer, signature: string | null, webhookUrl: string): boolean;
|
|
330
396
|
listAll<T extends {
|
|
331
397
|
id: string;
|
|
@@ -358,6 +424,7 @@ export declare const defineAction: <const TSlug extends string, TInput extends i
|
|
|
358
424
|
[x: string]: string | number | boolean | undefined;
|
|
359
425
|
};
|
|
360
426
|
}) => Promise<T>;
|
|
427
|
+
authorize(url: URL): void;
|
|
361
428
|
verifyWebhook(body: Buffer, signature: string | null, webhookUrl: string): boolean;
|
|
362
429
|
listAll<T extends {
|
|
363
430
|
id: string;
|
|
@@ -390,6 +457,7 @@ export declare const defineAction: <const TSlug extends string, TInput extends i
|
|
|
390
457
|
[x: string]: string | number | boolean | undefined;
|
|
391
458
|
};
|
|
392
459
|
}) => Promise<T>;
|
|
460
|
+
authorize(url: URL): void;
|
|
393
461
|
verifyWebhook(body: Buffer, signature: string | null, webhookUrl: string): boolean;
|
|
394
462
|
listAll<T extends {
|
|
395
463
|
id: string;
|
package/dist/define.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"define.d.ts","sourceRoot":"","sources":["../src/define.ts"],"names":[],"mappings":"AAIA,eAAO,MAAQ,YAAY;;
|
|
1
|
+
{"version":3,"file":"define.d.ts","sourceRoot":"","sources":["../src/define.ts"],"names":[],"mappings":"AAIA,eAAO,MAAQ,YAAY;;aAEghB,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;aAAD,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAF/gB,mBAAmB;;aAE2f,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;aAAD,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;IAF1f,oBAAoB;;;;;;;;;;;;iBAEqe,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAAD,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAFpe,oBAAoB;;;;;;;;;;;iBAE+c,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAAD,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qBAAD,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAAD,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAAD,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAAD,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qBAAD,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAAD,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAD9gB,CAAC"}
|
package/dist/define.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { createPieceHelpers } from 'frogbot/pieces';
|
|
2
|
-
export const { defineAction, definePollingTrigger, defineWebhookTrigger } = createPieceHelpers();
|
|
2
|
+
export const { defineAction, defineCustomApiCall, definePollingTrigger, defineWebhookTrigger } = createPieceHelpers();
|
|
3
3
|
|
|
4
4
|
//# sourceMappingURL=define.js.map
|
package/dist/define.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/define.ts"],"names":["createPieceHelpers","defineAction","definePollingTrigger","defineWebhookTrigger"],"mappings":"AAAA,SAASA,kBAAkB,QAAQ,iBAAiB;AAIpD,OAAO,MAAM,EAAEC,YAAY,EAAEC,oBAAoB,EAAEC,oBAAoB,EAAE,
|
|
1
|
+
{"version":3,"sources":["../src/define.ts"],"names":["createPieceHelpers","defineAction","defineCustomApiCall","definePollingTrigger","defineWebhookTrigger"],"mappings":"AAAA,SAASA,kBAAkB,QAAQ,iBAAiB;AAIpD,OAAO,MAAM,EAAEC,YAAY,EAAEC,mBAAmB,EAAEC,oBAAoB,EAAEC,oBAAoB,EAAE,GAC5FJ,qBAA6B","file":"define.js"}
|
package/dist/index.d.ts
CHANGED
|
@@ -48,6 +48,7 @@ export declare const createTrello: import("frogbot").PieceFactory<{
|
|
|
48
48
|
[x: string]: string | number | boolean | undefined;
|
|
49
49
|
};
|
|
50
50
|
}) => Promise<T>;
|
|
51
|
+
authorize(url: URL): void;
|
|
51
52
|
verifyWebhook(body: Buffer, signature: string | null, webhookUrl: string): boolean;
|
|
52
53
|
listAll<T extends {
|
|
53
54
|
id: string;
|
|
@@ -100,6 +101,7 @@ export declare const createTrello: import("frogbot").PieceFactory<{
|
|
|
100
101
|
[x: string]: string | number | boolean | undefined;
|
|
101
102
|
};
|
|
102
103
|
}) => Promise<T>;
|
|
104
|
+
authorize(url: URL): void;
|
|
103
105
|
verifyWebhook(body: Buffer, signature: string | null, webhookUrl: string): boolean;
|
|
104
106
|
listAll<T extends {
|
|
105
107
|
id: string;
|
|
@@ -163,6 +165,7 @@ export declare const createTrello: import("frogbot").PieceFactory<{
|
|
|
163
165
|
[x: string]: string | number | boolean | undefined;
|
|
164
166
|
};
|
|
165
167
|
}) => Promise<T>;
|
|
168
|
+
authorize(url: URL): void;
|
|
166
169
|
verifyWebhook(body: Buffer, signature: string | null, webhookUrl: string): boolean;
|
|
167
170
|
listAll<T extends {
|
|
168
171
|
id: string;
|
|
@@ -205,6 +208,7 @@ export declare const createTrello: import("frogbot").PieceFactory<{
|
|
|
205
208
|
[x: string]: string | number | boolean | undefined;
|
|
206
209
|
};
|
|
207
210
|
}) => Promise<T>;
|
|
211
|
+
authorize(url: URL): void;
|
|
208
212
|
verifyWebhook(body: Buffer, signature: string | null, webhookUrl: string): boolean;
|
|
209
213
|
listAll<T extends {
|
|
210
214
|
id: string;
|
|
@@ -243,6 +247,7 @@ export declare const createTrello: import("frogbot").PieceFactory<{
|
|
|
243
247
|
[x: string]: string | number | boolean | undefined;
|
|
244
248
|
};
|
|
245
249
|
}) => Promise<T>;
|
|
250
|
+
authorize(url: URL): void;
|
|
246
251
|
verifyWebhook(body: Buffer, signature: string | null, webhookUrl: string): boolean;
|
|
247
252
|
listAll<T extends {
|
|
248
253
|
id: string;
|
|
@@ -292,6 +297,7 @@ export declare const createTrello: import("frogbot").PieceFactory<{
|
|
|
292
297
|
[x: string]: string | number | boolean | undefined;
|
|
293
298
|
};
|
|
294
299
|
}) => Promise<T>;
|
|
300
|
+
authorize(url: URL): void;
|
|
295
301
|
verifyWebhook(body: Buffer, signature: string | null, webhookUrl: string): boolean;
|
|
296
302
|
listAll<T extends {
|
|
297
303
|
id: string;
|
|
@@ -335,6 +341,7 @@ export declare const createTrello: import("frogbot").PieceFactory<{
|
|
|
335
341
|
[x: string]: string | number | boolean | undefined;
|
|
336
342
|
};
|
|
337
343
|
}) => Promise<T>;
|
|
344
|
+
authorize(url: URL): void;
|
|
338
345
|
verifyWebhook(body: Buffer, signature: string | null, webhookUrl: string): boolean;
|
|
339
346
|
listAll<T extends {
|
|
340
347
|
id: string;
|
|
@@ -373,6 +380,7 @@ export declare const createTrello: import("frogbot").PieceFactory<{
|
|
|
373
380
|
[x: string]: string | number | boolean | undefined;
|
|
374
381
|
};
|
|
375
382
|
}) => Promise<T>;
|
|
383
|
+
authorize(url: URL): void;
|
|
376
384
|
verifyWebhook(body: Buffer, signature: string | null, webhookUrl: string): boolean;
|
|
377
385
|
listAll<T extends {
|
|
378
386
|
id: string;
|
|
@@ -398,24 +406,13 @@ export declare const createTrello: import("frogbot").PieceFactory<{
|
|
|
398
406
|
[x: string]: unknown;
|
|
399
407
|
}> & {
|
|
400
408
|
slug: "deleteCardAttachment";
|
|
401
|
-
}, import("frogbot").
|
|
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>, {
|
|
409
|
+
}, import("frogbot/pieces").CustomApiCallAction<Record<string, never>, {
|
|
414
410
|
request: <T>(path: string, init?: RequestInit & {
|
|
415
411
|
query?: {
|
|
416
412
|
[x: string]: string | number | boolean | undefined;
|
|
417
413
|
};
|
|
418
414
|
}) => Promise<T>;
|
|
415
|
+
authorize(url: URL): void;
|
|
419
416
|
verifyWebhook(body: Buffer, signature: string | null, webhookUrl: string): boolean;
|
|
420
417
|
listAll<T extends {
|
|
421
418
|
id: string;
|
|
@@ -437,9 +434,7 @@ export declare const createTrello: import("frogbot").PieceFactory<{
|
|
|
437
434
|
listWebhooks: () => Promise<import("./client.js").TrelloWebhook[]>;
|
|
438
435
|
createWebhook: (idModel: string, callbackURL: string) => Promise<import("./client.js").TrelloWebhook>;
|
|
439
436
|
deleteWebhook: (id: string) => Promise<unknown>;
|
|
440
|
-
}
|
|
441
|
-
slug: "customApiCall";
|
|
442
|
-
}];
|
|
437
|
+
}>];
|
|
443
438
|
readonly triggers: readonly [{
|
|
444
439
|
slug: string;
|
|
445
440
|
label?: string;
|
|
@@ -482,6 +477,7 @@ export declare const createTrello: import("frogbot").PieceFactory<{
|
|
|
482
477
|
[x: string]: string | number | boolean | undefined;
|
|
483
478
|
};
|
|
484
479
|
}) => Promise<T>;
|
|
480
|
+
authorize(url: URL): void;
|
|
485
481
|
verifyWebhook(body: Buffer, signature: string | null, webhookUrl: string): boolean;
|
|
486
482
|
listAll<T extends {
|
|
487
483
|
id: string;
|
|
@@ -519,6 +515,7 @@ export declare const createTrello: import("frogbot").PieceFactory<{
|
|
|
519
515
|
[x: string]: string | number | boolean | undefined;
|
|
520
516
|
};
|
|
521
517
|
}) => Promise<T>;
|
|
518
|
+
authorize(url: URL): void;
|
|
522
519
|
verifyWebhook(body: Buffer, signature: string | null, webhookUrl: string): boolean;
|
|
523
520
|
listAll<T extends {
|
|
524
521
|
id: string;
|
|
@@ -558,6 +555,7 @@ export declare const createTrello: import("frogbot").PieceFactory<{
|
|
|
558
555
|
[x: string]: string | number | boolean | undefined;
|
|
559
556
|
};
|
|
560
557
|
}) => Promise<T>;
|
|
558
|
+
authorize(url: URL): void;
|
|
561
559
|
verifyWebhook(body: Buffer, signature: string | null, webhookUrl: string): boolean;
|
|
562
560
|
listAll<T extends {
|
|
563
561
|
id: string;
|
|
@@ -601,6 +599,7 @@ export declare const createTrello: import("frogbot").PieceFactory<{
|
|
|
601
599
|
[x: string]: string | number | boolean | undefined;
|
|
602
600
|
};
|
|
603
601
|
}) => Promise<T>;
|
|
602
|
+
authorize(url: URL): void;
|
|
604
603
|
verifyWebhook(body: Buffer, signature: string | null, webhookUrl: string): boolean;
|
|
605
604
|
listAll<T extends {
|
|
606
605
|
id: string;
|
|
@@ -684,6 +683,7 @@ export declare const createTrello: import("frogbot").PieceFactory<{
|
|
|
684
683
|
[x: string]: string | number | boolean | undefined;
|
|
685
684
|
};
|
|
686
685
|
}) => Promise<T>;
|
|
686
|
+
authorize(url: URL): void;
|
|
687
687
|
verifyWebhook(body: Buffer, signature: string | null, webhookUrl: string): boolean;
|
|
688
688
|
listAll<T extends {
|
|
689
689
|
id: string;
|
|
@@ -721,6 +721,7 @@ export declare const createTrello: import("frogbot").PieceFactory<{
|
|
|
721
721
|
[x: string]: string | number | boolean | undefined;
|
|
722
722
|
};
|
|
723
723
|
}) => Promise<T>;
|
|
724
|
+
authorize(url: URL): void;
|
|
724
725
|
verifyWebhook(body: Buffer, signature: string | null, webhookUrl: string): boolean;
|
|
725
726
|
listAll<T extends {
|
|
726
727
|
id: string;
|
|
@@ -760,6 +761,7 @@ export declare const createTrello: import("frogbot").PieceFactory<{
|
|
|
760
761
|
[x: string]: string | number | boolean | undefined;
|
|
761
762
|
};
|
|
762
763
|
}) => Promise<T>;
|
|
764
|
+
authorize(url: URL): void;
|
|
763
765
|
verifyWebhook(body: Buffer, signature: string | null, webhookUrl: string): boolean;
|
|
764
766
|
listAll<T extends {
|
|
765
767
|
id: string;
|
|
@@ -803,6 +805,7 @@ export declare const createTrello: import("frogbot").PieceFactory<{
|
|
|
803
805
|
[x: string]: string | number | boolean | undefined;
|
|
804
806
|
};
|
|
805
807
|
}) => Promise<T>;
|
|
808
|
+
authorize(url: URL): void;
|
|
806
809
|
verifyWebhook(body: Buffer, signature: string | null, webhookUrl: string): boolean;
|
|
807
810
|
listAll<T extends {
|
|
808
811
|
id: string;
|
|
@@ -894,6 +897,7 @@ export declare const createTrello: import("frogbot").PieceFactory<{
|
|
|
894
897
|
[x: string]: string | number | boolean | undefined;
|
|
895
898
|
};
|
|
896
899
|
}) => Promise<T>;
|
|
900
|
+
authorize(url: URL): void;
|
|
897
901
|
verifyWebhook(body: Buffer, signature: string | null, webhookUrl: string): boolean;
|
|
898
902
|
listAll<T extends {
|
|
899
903
|
id: string;
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAaA,OAAO,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAC;AAIjD,eAAO,MAAM,aAAa,0KAUhB,CAAC;AACX,eAAO,MAAM,cAAc,6DAA8D,CAAC;AAC1F,eAAO,MAAM,YAAY,aAAc,CAAC;AAExC,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAaA,OAAO,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAC;AAIjD,eAAO,MAAM,aAAa,0KAUhB,CAAC;AACX,eAAO,MAAM,cAAc,6DAA8D,CAAC;AAC1F,eAAO,M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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qBAAD,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA6BrB,CAAC"}
|
package/dist/triggers.d.ts
CHANGED
|
@@ -41,6 +41,7 @@ export declare const cardCreated: {
|
|
|
41
41
|
[x: string]: string | number | boolean | undefined;
|
|
42
42
|
};
|
|
43
43
|
}) => Promise<T>;
|
|
44
|
+
authorize(url: URL): void;
|
|
44
45
|
verifyWebhook(body: Buffer, signature: string | null, webhookUrl: string): boolean;
|
|
45
46
|
listAll<T extends {
|
|
46
47
|
id: string;
|
|
@@ -78,6 +79,7 @@ export declare const cardCreated: {
|
|
|
78
79
|
[x: string]: string | number | boolean | undefined;
|
|
79
80
|
};
|
|
80
81
|
}) => Promise<T>;
|
|
82
|
+
authorize(url: URL): void;
|
|
81
83
|
verifyWebhook(body: Buffer, signature: string | null, webhookUrl: string): boolean;
|
|
82
84
|
listAll<T extends {
|
|
83
85
|
id: string;
|
|
@@ -117,6 +119,7 @@ export declare const cardCreated: {
|
|
|
117
119
|
[x: string]: string | number | boolean | undefined;
|
|
118
120
|
};
|
|
119
121
|
}) => Promise<T>;
|
|
122
|
+
authorize(url: URL): void;
|
|
120
123
|
verifyWebhook(body: Buffer, signature: string | null, webhookUrl: string): boolean;
|
|
121
124
|
listAll<T extends {
|
|
122
125
|
id: string;
|
|
@@ -160,6 +163,7 @@ export declare const cardCreated: {
|
|
|
160
163
|
[x: string]: string | number | boolean | undefined;
|
|
161
164
|
};
|
|
162
165
|
}) => Promise<T>;
|
|
166
|
+
authorize(url: URL): void;
|
|
163
167
|
verifyWebhook(body: Buffer, signature: string | null, webhookUrl: string): boolean;
|
|
164
168
|
listAll<T extends {
|
|
165
169
|
id: string;
|
|
@@ -244,6 +248,7 @@ export declare const cardMovedToList: {
|
|
|
244
248
|
[x: string]: string | number | boolean | undefined;
|
|
245
249
|
};
|
|
246
250
|
}) => Promise<T>;
|
|
251
|
+
authorize(url: URL): void;
|
|
247
252
|
verifyWebhook(body: Buffer, signature: string | null, webhookUrl: string): boolean;
|
|
248
253
|
listAll<T extends {
|
|
249
254
|
id: string;
|
|
@@ -281,6 +286,7 @@ export declare const cardMovedToList: {
|
|
|
281
286
|
[x: string]: string | number | boolean | undefined;
|
|
282
287
|
};
|
|
283
288
|
}) => Promise<T>;
|
|
289
|
+
authorize(url: URL): void;
|
|
284
290
|
verifyWebhook(body: Buffer, signature: string | null, webhookUrl: string): boolean;
|
|
285
291
|
listAll<T extends {
|
|
286
292
|
id: string;
|
|
@@ -320,6 +326,7 @@ export declare const cardMovedToList: {
|
|
|
320
326
|
[x: string]: string | number | boolean | undefined;
|
|
321
327
|
};
|
|
322
328
|
}) => Promise<T>;
|
|
329
|
+
authorize(url: URL): void;
|
|
323
330
|
verifyWebhook(body: Buffer, signature: string | null, webhookUrl: string): boolean;
|
|
324
331
|
listAll<T extends {
|
|
325
332
|
id: string;
|
|
@@ -363,6 +370,7 @@ export declare const cardMovedToList: {
|
|
|
363
370
|
[x: string]: string | number | boolean | undefined;
|
|
364
371
|
};
|
|
365
372
|
}) => Promise<T>;
|
|
373
|
+
authorize(url: URL): void;
|
|
366
374
|
verifyWebhook(body: Buffer, signature: string | null, webhookUrl: string): boolean;
|
|
367
375
|
listAll<T extends {
|
|
368
376
|
id: string;
|
|
@@ -455,6 +463,7 @@ export declare const cardDeadline: {
|
|
|
455
463
|
[x: string]: string | number | boolean | undefined;
|
|
456
464
|
};
|
|
457
465
|
}) => Promise<T>;
|
|
466
|
+
authorize(url: URL): void;
|
|
458
467
|
verifyWebhook(body: Buffer, signature: string | null, webhookUrl: string): boolean;
|
|
459
468
|
listAll<T extends {
|
|
460
469
|
id: string;
|
package/dist/triggers.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"triggers.d.ts","sourceRoot":"","sources":["../src/triggers.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AA8ExB,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"triggers.d.ts","sourceRoot":"","sources":["../src/triggers.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AA8ExB,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBA7Cb,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAAD,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qBAAD,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAAD,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA0DV,CAAC;AAIH,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBA9DjB,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAAD,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qBAAD,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAAD,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA4EV,CAAC;AASH,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBArFd,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA6GV,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@frogbotai/piece-trello",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.33.0",
|
|
4
4
|
"description": "Trello tools for FrogBot.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Colby Gilbert",
|
|
@@ -22,11 +22,11 @@
|
|
|
22
22
|
"zod": "^4.3.6"
|
|
23
23
|
},
|
|
24
24
|
"peerDependencies": {
|
|
25
|
-
"frogbot": "0.
|
|
25
|
+
"frogbot": "0.33.0"
|
|
26
26
|
},
|
|
27
27
|
"devDependencies": {
|
|
28
28
|
"typescript": "5.6.2",
|
|
29
|
-
"frogbot": "0.
|
|
29
|
+
"frogbot": "0.33.0"
|
|
30
30
|
},
|
|
31
31
|
"publishConfig": {
|
|
32
32
|
"access": "public"
|