@frogbotai/piece-resend 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.
Files changed (62) hide show
  1. package/dist/actions/cancelScheduledEmail.d.ts +2 -1
  2. package/dist/actions/cancelScheduledEmail.d.ts.map +1 -1
  3. package/dist/actions/createAudience.d.ts +2 -1
  4. package/dist/actions/createAudience.d.ts.map +1 -1
  5. package/dist/actions/createBroadcast.d.ts +3 -2
  6. package/dist/actions/createBroadcast.d.ts.map +1 -1
  7. package/dist/actions/createContact.d.ts +2 -1
  8. package/dist/actions/createContact.d.ts.map +1 -1
  9. package/dist/actions/createDomain.d.ts +2 -1
  10. package/dist/actions/createDomain.d.ts.map +1 -1
  11. package/dist/actions/customApiCall.d.ts +4 -22
  12. package/dist/actions/customApiCall.d.ts.map +1 -1
  13. package/dist/actions/customApiCall.js +5 -82
  14. package/dist/actions/customApiCall.js.map +1 -1
  15. package/dist/actions/deleteAudience.d.ts +2 -1
  16. package/dist/actions/deleteAudience.d.ts.map +1 -1
  17. package/dist/actions/deleteBroadcast.d.ts +2 -1
  18. package/dist/actions/deleteBroadcast.d.ts.map +1 -1
  19. package/dist/actions/deleteContact.d.ts +2 -1
  20. package/dist/actions/deleteContact.d.ts.map +1 -1
  21. package/dist/actions/deleteDomain.d.ts +2 -1
  22. package/dist/actions/deleteDomain.d.ts.map +1 -1
  23. package/dist/actions/getEmailStatus.d.ts +2 -1
  24. package/dist/actions/getEmailStatus.d.ts.map +1 -1
  25. package/dist/actions/listAudiences.d.ts +2 -1
  26. package/dist/actions/listAudiences.d.ts.map +1 -1
  27. package/dist/actions/listBroadcasts.d.ts +2 -1
  28. package/dist/actions/listBroadcasts.d.ts.map +1 -1
  29. package/dist/actions/listContacts.d.ts +2 -1
  30. package/dist/actions/listContacts.d.ts.map +1 -1
  31. package/dist/actions/listDomains.d.ts +2 -1
  32. package/dist/actions/listDomains.d.ts.map +1 -1
  33. package/dist/actions/listEmails.d.ts +2 -1
  34. package/dist/actions/listEmails.d.ts.map +1 -1
  35. package/dist/actions/rescheduleEmail.d.ts +2 -1
  36. package/dist/actions/rescheduleEmail.d.ts.map +1 -1
  37. package/dist/actions/send.d.ts +3 -2
  38. package/dist/actions/send.d.ts.map +1 -1
  39. package/dist/actions/sendBatchEmails.d.ts +3 -2
  40. package/dist/actions/sendBatchEmails.d.ts.map +1 -1
  41. package/dist/actions/sendBroadcast.d.ts +2 -1
  42. package/dist/actions/sendBroadcast.d.ts.map +1 -1
  43. package/dist/actions/updateContact.d.ts +2 -1
  44. package/dist/actions/updateContact.d.ts.map +1 -1
  45. package/dist/actions/verifyDomain.d.ts +2 -1
  46. package/dist/actions/verifyDomain.d.ts.map +1 -1
  47. package/dist/client.d.ts +2 -5
  48. package/dist/client.d.ts.map +1 -1
  49. package/dist/client.js +28 -7
  50. package/dist/client.js.map +1 -1
  51. package/dist/define.d.ts +16 -3
  52. package/dist/define.d.ts.map +1 -1
  53. package/dist/define.js +1 -1
  54. package/dist/define.js.map +1 -1
  55. package/dist/email.d.ts +2 -1
  56. package/dist/email.d.ts.map +1 -1
  57. package/dist/index.d.ts +53 -47
  58. package/dist/index.d.ts.map +1 -1
  59. package/dist/piece-types.d.ts +29 -11
  60. package/dist/piece-types.d.ts.map +1 -1
  61. package/dist/piece-types.js.map +1 -1
  62. package/package.json +3 -3
@@ -7,7 +7,8 @@ export declare const cancelScheduledEmail: import("frogbot/pieces").PieceActionD
7
7
  name?: string | undefined;
8
8
  } | undefined;
9
9
  }, {
10
- request({ allowFailure, binary, body, headers, method, path, query, rawBody, redirect, response: includeResponse, signal, }: import("../client.js").ResendRequestOptions): Promise<unknown>;
10
+ authorize(url: URL, headers: Headers): void;
11
+ request({ body, headers, method, path, query, redirect, response: includeResponse, }: import("../client.js").ResendRequestOptions): Promise<unknown>;
11
12
  }, unknown> & {
12
13
  slug: "cancelScheduledEmail";
13
14
  };
@@ -1 +1 @@
1
- {"version":3,"file":"cancelScheduledEmail.d.ts","sourceRoot":"","sources":["../../src/actions/cancelScheduledEmail.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,eAAO,MAAM,oBAAoB;;;;;;;;;;;CAQ/B,CAAC"}
1
+ {"version":3,"file":"cancelScheduledEmail.d.ts","sourceRoot":"","sources":["../../src/actions/cancelScheduledEmail.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,eAAO,MAAM,oBAAoB;;;;;;;;;;;;CAQ/B,CAAC"}
@@ -7,7 +7,8 @@ export declare const createAudience: import("frogbot/pieces").PieceActionDefinit
7
7
  name?: string | undefined;
8
8
  } | undefined;
9
9
  }, {
10
- request({ allowFailure, binary, body, headers, method, path, query, rawBody, redirect, response: includeResponse, signal, }: import("../client.js").ResendRequestOptions): Promise<unknown>;
10
+ authorize(url: URL, headers: Headers): void;
11
+ request({ body, headers, method, path, query, redirect, response: includeResponse, }: import("../client.js").ResendRequestOptions): Promise<unknown>;
11
12
  }, unknown> & {
12
13
  slug: "createAudience";
13
14
  };
@@ -1 +1 @@
1
- {"version":3,"file":"createAudience.d.ts","sourceRoot":"","sources":["../../src/actions/createAudience.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,eAAO,MAAM,cAAc;;;;;;;;;;;CAQzB,CAAC"}
1
+ {"version":3,"file":"createAudience.d.ts","sourceRoot":"","sources":["../../src/actions/createAudience.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,eAAO,MAAM,cAAc;;;;;;;;;;;;CAQzB,CAAC"}
@@ -7,8 +7,8 @@ export declare const createBroadcast: import("frogbot/pieces").PieceActionDefini
7
7
  reply_to: z.ZodOptional<z.ZodString>;
8
8
  preview_text: z.ZodOptional<z.ZodString>;
9
9
  content_type: z.ZodEnum<{
10
- html: "html";
11
10
  text: "text";
11
+ html: "html";
12
12
  }>;
13
13
  content: z.ZodString;
14
14
  }, z.core.$strip>, undefined, {
@@ -17,7 +17,8 @@ export declare const createBroadcast: import("frogbot/pieces").PieceActionDefini
17
17
  name?: string | undefined;
18
18
  } | undefined;
19
19
  }, {
20
- request({ allowFailure, binary, body, headers, method, path, query, rawBody, redirect, response: includeResponse, signal, }: import("../client.js").ResendRequestOptions): Promise<unknown>;
20
+ authorize(url: URL, headers: Headers): void;
21
+ request({ body, headers, method, path, query, redirect, response: includeResponse, }: import("../client.js").ResendRequestOptions): Promise<unknown>;
21
22
  }, unknown> & {
22
23
  slug: "createBroadcast";
23
24
  };
@@ -1 +1 @@
1
- {"version":3,"file":"createBroadcast.d.ts","sourceRoot":"","sources":["../../src/actions/createBroadcast.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAgBxB,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;CAsB1B,CAAC"}
1
+ {"version":3,"file":"createBroadcast.d.ts","sourceRoot":"","sources":["../../src/actions/createBroadcast.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAgBxB,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;CAsB1B,CAAC"}
@@ -11,7 +11,8 @@ export declare const createContact: import("frogbot/pieces").PieceActionDefiniti
11
11
  name?: string | undefined;
12
12
  } | undefined;
13
13
  }, {
14
- request({ allowFailure, binary, body, headers, method, path, query, rawBody, redirect, response: includeResponse, signal, }: import("../client.js").ResendRequestOptions): Promise<unknown>;
14
+ authorize(url: URL, headers: Headers): void;
15
+ request({ body, headers, method, path, query, redirect, response: includeResponse, }: import("../client.js").ResendRequestOptions): Promise<unknown>;
15
16
  }, unknown> & {
16
17
  slug: "createContact";
17
18
  };
@@ -1 +1 @@
1
- {"version":3,"file":"createContact.d.ts","sourceRoot":"","sources":["../../src/actions/createContact.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAaxB,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;CAgBxB,CAAC"}
1
+ {"version":3,"file":"createContact.d.ts","sourceRoot":"","sources":["../../src/actions/createContact.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAaxB,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;CAgBxB,CAAC"}
@@ -13,7 +13,8 @@ export declare const createDomain: import("frogbot/pieces").PieceActionDefinitio
13
13
  name?: string | undefined;
14
14
  } | undefined;
15
15
  }, {
16
- request({ allowFailure, binary, body, headers, method, path, query, rawBody, redirect, response: includeResponse, signal, }: import("../client.js").ResendRequestOptions): Promise<unknown>;
16
+ authorize(url: URL, headers: Headers): void;
17
+ request({ body, headers, method, path, query, redirect, response: includeResponse, }: import("../client.js").ResendRequestOptions): Promise<unknown>;
17
18
  }, {
18
19
  id: unknown;
19
20
  name: unknown;
@@ -1 +1 @@
1
- {"version":3,"file":"createDomain.d.ts","sourceRoot":"","sources":["../../src/actions/createDomain.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAUxB,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;CAuBvB,CAAC"}
1
+ {"version":3,"file":"createDomain.d.ts","sourceRoot":"","sources":["../../src/actions/createDomain.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAUxB,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;CAuBvB,CAAC"}
@@ -1,28 +1,10 @@
1
- import { z } from 'zod';
2
- export declare const customApiCall: import("frogbot/pieces").PieceActionDefinition<z.ZodObject<{
3
- method: z.ZodString;
4
- url: z.ZodString;
5
- headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
6
- queryParams: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
7
- body_type: z.ZodOptional<z.ZodEnum<{
8
- none: "none";
9
- json: "json";
10
- form_data: "form_data";
11
- raw: "raw";
12
- }>>;
13
- body: z.ZodOptional<z.ZodUnknown>;
14
- response_is_binary: z.ZodOptional<z.ZodBoolean>;
15
- failsafe: z.ZodOptional<z.ZodBoolean>;
16
- timeout: z.ZodOptional<z.ZodNumber>;
17
- followRedirects: z.ZodOptional<z.ZodBoolean>;
18
- }, z.core.$strip>, undefined, {
1
+ export declare const customApiCall: import("frogbot/pieces").CustomApiCallAction<{
19
2
  from?: {
20
3
  address: string;
21
4
  name?: string | undefined;
22
5
  } | undefined;
23
6
  }, {
24
- request({ allowFailure, binary, body, headers, method, path, query, rawBody, redirect, response: includeResponse, signal, }: import("../client.js").ResendRequestOptions): Promise<unknown>;
25
- }, unknown> & {
26
- slug: "customApiCall";
27
- };
7
+ authorize(url: URL, headers: Headers): void;
8
+ request({ body, headers, method, path, query, redirect, response: includeResponse, }: import("../client.js").ResendRequestOptions): Promise<unknown>;
9
+ }>;
28
10
  //# sourceMappingURL=customApiCall.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"customApiCall.d.ts","sourceRoot":"","sources":["../../src/actions/customApiCall.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAiBxB,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;CA+ExB,CAAC"}
1
+ {"version":3,"file":"customApiCall.d.ts","sourceRoot":"","sources":["../../src/actions/customApiCall.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,aAAa;;;;;;;;EAIxB,CAAC"}
@@ -1,85 +1,8 @@
1
- import { createPieceFile, filesCollectionSlug } from 'frogbot/pieces';
2
- import { z } from 'zod';
3
- import { defineAction } from '../define.js';
4
- const input = z.object({
5
- method: z.string(),
6
- url: z.string(),
7
- headers: z.record(z.string(), z.string()).optional(),
8
- queryParams: z.record(z.string(), z.unknown()).optional(),
9
- body_type: z.enum([
10
- 'none',
11
- 'json',
12
- 'form_data',
13
- 'raw'
14
- ]).optional(),
15
- body: z.unknown().optional(),
16
- response_is_binary: z.boolean().optional(),
17
- failsafe: z.boolean().optional(),
18
- timeout: z.number().optional(),
19
- followRedirects: z.boolean().optional()
20
- });
21
- export const customApiCall = defineAction({
22
- slug: 'customApiCall',
23
- description: 'Make a custom Resend API call',
24
- input,
25
- async run ({ input, client, req }) {
26
- const timeout = input.timeout !== undefined ? AbortSignal.timeout(Math.max(0, input.timeout * 1000)) : undefined;
27
- let bodyValue = input.body && typeof input.body === 'object' && 'data' in input.body ? input.body.data : input.body;
28
- let rawBody = input.body_type === 'raw';
29
- if (input.body_type === 'form_data' && Array.isArray(bodyValue)) {
30
- const form = new FormData();
31
- for (const field of bodyValue){
32
- if (field.fieldType === 'file') {
33
- const file = field.fileFieldValue;
34
- if (file?.data) {
35
- const value = file.data instanceof Blob ? file.data : new Blob([
36
- file.data
37
- ]);
38
- form.append(String(field.fieldName), value, file.filename);
39
- }
40
- } else if (field.textFieldValue !== undefined) {
41
- form.append(String(field.fieldName), String(field.textFieldValue));
42
- }
43
- }
44
- bodyValue = form;
45
- rawBody = true;
46
- }
47
- const result = await client.request({
48
- allowFailure: input.failsafe === true,
49
- binary: input.response_is_binary,
50
- method: input.method,
51
- path: input.url.replace(/^https:\/\/api\.resend\.com/, ''),
52
- headers: input.headers,
53
- body: bodyValue,
54
- query: input.queryParams,
55
- rawBody,
56
- redirect: input.followRedirects === false ? 'manual' : 'follow',
57
- response: true,
58
- signal: timeout
59
- });
60
- if (!input.response_is_binary) return result;
61
- const response = result;
62
- const collection = filesCollectionSlug(req, 'Resend');
63
- const contentType = response.headers['content-type'] ?? 'application/octet-stream';
64
- const extension = contentType.split('/')[1]?.split(';')[0] || 'bin';
65
- const doc = await createPieceFile(req, 'Resend', {
66
- file: {
67
- data: Buffer.from(response.body),
68
- mimetype: contentType,
69
- name: `output.${extension}`,
70
- size: response.body.byteLength
71
- },
72
- overrideAccess: true
73
- });
74
- const url = doc.url;
75
- if (typeof url !== 'string' || !url) {
76
- throw new Error(`[frogbot] Upload collection '${collection}' did not return a file URL.`);
77
- }
78
- return {
79
- ...response,
80
- body: url
81
- };
82
- }
1
+ import { defineCustomApiCall } from '../define.js';
2
+ export const customApiCall = defineCustomApiCall({
3
+ name: 'Resend',
4
+ baseUrl: 'https://api.resend.com',
5
+ authorize: ({ client, url, headers })=>client.authorize(url, headers)
83
6
  });
84
7
 
85
8
  //# sourceMappingURL=customApiCall.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/actions/customApiCall.ts"],"names":["createPieceFile","filesCollectionSlug","z","defineAction","input","object","method","string","url","headers","record","optional","queryParams","unknown","body_type","enum","body","response_is_binary","boolean","failsafe","timeout","number","followRedirects","customApiCall","slug","description","run","client","req","undefined","AbortSignal","Math","max","bodyValue","data","rawBody","Array","isArray","form","FormData","field","fieldType","file","fileFieldValue","value","Blob","append","String","fieldName","filename","textFieldValue","result","request","allowFailure","binary","path","replace","query","redirect","response","signal","collection","contentType","extension","split","doc","Buffer","from","mimetype","name","size","byteLength","overrideAccess","Error"],"mappings":"AAAA,SAASA,eAAe,EAAEC,mBAAmB,QAAwB,iBAAiB;AACtF,SAASC,CAAC,QAAQ,MAAM;AAExB,SAASC,YAAY,QAAQ,eAAe;AAE5C,MAAMC,QAAQF,EAAEG,MAAM,CAAC;IACrBC,QAAQJ,EAAEK,MAAM;IAChBC,KAAKN,EAAEK,MAAM;IACbE,SAASP,EAAEQ,MAAM,CAACR,EAAEK,MAAM,IAAIL,EAAEK,MAAM,IAAII,QAAQ;IAClDC,aAAaV,EAAEQ,MAAM,CAACR,EAAEK,MAAM,IAAIL,EAAEW,OAAO,IAAIF,QAAQ;IACvDG,WAAWZ,EAAEa,IAAI,CAAC;QAAC;QAAQ;QAAQ;QAAa;KAAM,EAAEJ,QAAQ;IAChEK,MAAMd,EAAEW,OAAO,GAAGF,QAAQ;I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AYK;YACZH,UAAU;QACZ;QAEA,MAAMgB,SAAS,MAAMxB,OAAOyB,OAAO,CAAC;YAClCC,cAAcjD,MAAMe,QAAQ,KAAK;YACjCmC,QAAQlD,MAAMa,kBAAkB;YAChCX,QAAQF,MAAME,MAAM;YACpBiD,MAAMnD,MAAMI,GAAG,CAACgD,OAAO,CAAC,+BAA+B;YACvD/C,SAASL,MAAMK,OAAO;YACtBO,MAAMiB;YACNwB,OAAOrD,MAAMQ,WAAW;YACxBuB;YACAuB,UAAUtD,MAAMkB,eAAe,KAAK,QAAQ,WAAW;YACvDqC,UAAU;YACVC,QAAQxC;QACV;QAEA,IAAI,CAAChB,MAAMa,kBAAkB,EAAE,OAAOkC;QACtC,MAAMQ,WAAWR;QAMjB,MAAMU,aAAa5D,oBAAoB2B,KAAK;QAE5C,MAAMkC,cAAcH,SAASlD,OAAO,CAAC,eAAe,IAAI;QACxD,MAAMsD,YAAYD,YAAYE,KAAK,CAAC,IAAI,CAAC,EAAE,EAAEA,MAAM,IAAI,CAAC,EAAE,IAAI;QAC9D,MAAMC,MAAM,MAAMjE,gBAAgB4B,KAAK,UAAU;YAC/Cc,MAAM;gBACJR,MAAMgC,OAAOC,IAAI,CAACR,SAAS3C,IAAI;gBAC/BoD,UAAUN;gBACVO,MAAM,CAAC,OAAO,EAAEN,WAAW;gBAC3BO,MAAMX,SAAS3C,IAAI,CAACuD,UAAU;YAChC;YACAC,gBAAgB;QAClB;QAEA,MAAMhE,MAAMyD,IAAIzD,GAAG;QACnB,IAAI,OAAOA,QAAQ,YAAY,CAACA,KAAK;YACnC,MAAM,IAAIiE,MAAM,CAAC,6BAA6B,EAAEZ,WAAW,4BAA4B,CAAC;QAC1F;QAEA,OAAO;YAAE,GAAGF,QAAQ;YAAE3C,MAAMR;QAAI;IAClC;AACF,GAAG","file":"customApiCall.js"}
1
+ {"version":3,"sources":["../../src/actions/customApiCall.ts"],"names":["defineCustomApiCall","customApiCall","name","baseUrl","authorize","client","url","headers"],"mappings":"AAAA,SAASA,mBAAmB,QAAQ,eAAe;AAEnD,OAAO,MAAMC,gBAAgBD,oBAAoB;IAC/CE,MAAM;IACNC,SAAS;IACTC,WAAW,CAAC,EAAEC,MAAM,EAAEC,GAAG,EAAEC,OAAO,EAAE,GAAKF,OAAOD,SAAS,CAACE,KAAKC;AACjE,GAAG","file":"customApiCall.js"}
@@ -7,7 +7,8 @@ export declare const deleteAudience: import("frogbot/pieces").PieceActionDefinit
7
7
  name?: string | undefined;
8
8
  } | undefined;
9
9
  }, {
10
- request({ allowFailure, binary, body, headers, method, path, query, rawBody, redirect, response: includeResponse, signal, }: import("../client.js").ResendRequestOptions): Promise<unknown>;
10
+ authorize(url: URL, headers: Headers): void;
11
+ request({ body, headers, method, path, query, redirect, response: includeResponse, }: import("../client.js").ResendRequestOptions): Promise<unknown>;
11
12
  }, unknown> & {
12
13
  slug: "deleteAudience";
13
14
  };
@@ -1 +1 @@
1
- {"version":3,"file":"deleteAudience.d.ts","sourceRoot":"","sources":["../../src/actions/deleteAudience.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,eAAO,MAAM,cAAc;;;;;;;;;;;CAQzB,CAAC"}
1
+ {"version":3,"file":"deleteAudience.d.ts","sourceRoot":"","sources":["../../src/actions/deleteAudience.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,eAAO,MAAM,cAAc;;;;;;;;;;;;CAQzB,CAAC"}
@@ -7,7 +7,8 @@ export declare const deleteBroadcast: import("frogbot/pieces").PieceActionDefini
7
7
  name?: string | undefined;
8
8
  } | undefined;
9
9
  }, {
10
- request({ allowFailure, binary, body, headers, method, path, query, rawBody, redirect, response: includeResponse, signal, }: import("../client.js").ResendRequestOptions): Promise<unknown>;
10
+ authorize(url: URL, headers: Headers): void;
11
+ request({ body, headers, method, path, query, redirect, response: includeResponse, }: import("../client.js").ResendRequestOptions): Promise<unknown>;
11
12
  }, unknown> & {
12
13
  slug: "deleteBroadcast";
13
14
  };
@@ -1 +1 @@
1
- {"version":3,"file":"deleteBroadcast.d.ts","sourceRoot":"","sources":["../../src/actions/deleteBroadcast.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,eAAO,MAAM,eAAe;;;;;;;;;;;CAQ1B,CAAC"}
1
+ {"version":3,"file":"deleteBroadcast.d.ts","sourceRoot":"","sources":["../../src/actions/deleteBroadcast.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,eAAO,MAAM,eAAe;;;;;;;;;;;;CAQ1B,CAAC"}
@@ -8,7 +8,8 @@ export declare const deleteContact: import("frogbot/pieces").PieceActionDefiniti
8
8
  name?: string | undefined;
9
9
  } | undefined;
10
10
  }, {
11
- request({ allowFailure, binary, body, headers, method, path, query, rawBody, redirect, response: includeResponse, signal, }: import("../client.js").ResendRequestOptions): Promise<unknown>;
11
+ authorize(url: URL, headers: Headers): void;
12
+ request({ body, headers, method, path, query, redirect, response: includeResponse, }: import("../client.js").ResendRequestOptions): Promise<unknown>;
12
13
  }, unknown> & {
13
14
  slug: "deleteContact";
14
15
  };
@@ -1 +1 @@
1
- {"version":3,"file":"deleteContact.d.ts","sourceRoot":"","sources":["../../src/actions/deleteContact.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,eAAO,MAAM,aAAa;;;;;;;;;;;;CAWxB,CAAC"}
1
+ {"version":3,"file":"deleteContact.d.ts","sourceRoot":"","sources":["../../src/actions/deleteContact.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,eAAO,MAAM,aAAa;;;;;;;;;;;;;CAWxB,CAAC"}
@@ -7,7 +7,8 @@ export declare const deleteDomain: import("frogbot/pieces").PieceActionDefinitio
7
7
  name?: string | undefined;
8
8
  } | undefined;
9
9
  }, {
10
- request({ allowFailure, binary, body, headers, method, path, query, rawBody, redirect, response: includeResponse, signal, }: import("../client.js").ResendRequestOptions): Promise<unknown>;
10
+ authorize(url: URL, headers: Headers): void;
11
+ request({ body, headers, method, path, query, redirect, response: includeResponse, }: import("../client.js").ResendRequestOptions): Promise<unknown>;
11
12
  }, unknown> & {
12
13
  slug: "deleteDomain";
13
14
  };
@@ -1 +1 @@
1
- {"version":3,"file":"deleteDomain.d.ts","sourceRoot":"","sources":["../../src/actions/deleteDomain.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,eAAO,MAAM,YAAY;;;;;;;;;;;CAQvB,CAAC"}
1
+ {"version":3,"file":"deleteDomain.d.ts","sourceRoot":"","sources":["../../src/actions/deleteDomain.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,eAAO,MAAM,YAAY;;;;;;;;;;;;CAQvB,CAAC"}
@@ -7,7 +7,8 @@ export declare const getEmailStatus: import("frogbot/pieces").PieceActionDefinit
7
7
  name?: string | undefined;
8
8
  } | undefined;
9
9
  }, {
10
- request({ allowFailure, binary, body, headers, method, path, query, rawBody, redirect, response: includeResponse, signal, }: import("../client.js").ResendRequestOptions): Promise<unknown>;
10
+ authorize(url: URL, headers: Headers): void;
11
+ request({ body, headers, method, path, query, redirect, response: includeResponse, }: import("../client.js").ResendRequestOptions): Promise<unknown>;
11
12
  }, unknown> & {
12
13
  slug: "getEmailStatus";
13
14
  };
@@ -1 +1 @@
1
- {"version":3,"file":"getEmailStatus.d.ts","sourceRoot":"","sources":["../../src/actions/getEmailStatus.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,eAAO,MAAM,cAAc;;;;;;;;;;;CAQzB,CAAC"}
1
+ {"version":3,"file":"getEmailStatus.d.ts","sourceRoot":"","sources":["../../src/actions/getEmailStatus.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,eAAO,MAAM,cAAc;;;;;;;;;;;;CAQzB,CAAC"}
@@ -6,7 +6,8 @@ export declare const listAudiences: import("frogbot/pieces").PieceActionDefiniti
6
6
  name?: string | undefined;
7
7
  } | undefined;
8
8
  }, {
9
- request({ allowFailure, binary, body, headers, method, path, query, rawBody, redirect, response: includeResponse, signal, }: import("../client.js").ResendRequestOptions): Promise<unknown>;
9
+ authorize(url: URL, headers: Headers): void;
10
+ request({ body, headers, method, path, query, redirect, response: includeResponse, }: import("../client.js").ResendRequestOptions): Promise<unknown>;
10
11
  }, PieceJSON[]> & {
11
12
  slug: "listAudiences";
12
13
  };
@@ -1 +1 @@
1
- {"version":3,"file":"listAudiences.d.ts","sourceRoot":"","sources":["../../src/actions/listAudiences.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAChD,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,eAAO,MAAM,aAAa;;;;;;;;;CAUxB,CAAC"}
1
+ {"version":3,"file":"listAudiences.d.ts","sourceRoot":"","sources":["../../src/actions/listAudiences.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAChD,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,eAAO,MAAM,aAAa;;;;;;;;;;CAUxB,CAAC"}
@@ -5,7 +5,8 @@ export declare const listBroadcasts: import("frogbot/pieces").PieceActionDefinit
5
5
  name?: string | undefined;
6
6
  } | undefined;
7
7
  }, {
8
- request({ allowFailure, binary, body, headers, method, path, query, rawBody, redirect, response: includeResponse, signal, }: import("../client.js").ResendRequestOptions): Promise<unknown>;
8
+ authorize(url: URL, headers: Headers): void;
9
+ request({ body, headers, method, path, query, redirect, response: includeResponse, }: import("../client.js").ResendRequestOptions): Promise<unknown>;
9
10
  }, {
10
11
  id: unknown;
11
12
  name: {};
@@ -1 +1 @@
1
- {"version":3,"file":"listBroadcasts.d.ts","sourceRoot":"","sources":["../../src/actions/listBroadcasts.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;CAyBzB,CAAC"}
1
+ {"version":3,"file":"listBroadcasts.d.ts","sourceRoot":"","sources":["../../src/actions/listBroadcasts.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;CAyBzB,CAAC"}
@@ -8,7 +8,8 @@ export declare const listContacts: import("frogbot/pieces").PieceActionDefinitio
8
8
  name?: string | undefined;
9
9
  } | undefined;
10
10
  }, {
11
- request({ allowFailure, binary, body, headers, method, path, query, rawBody, redirect, response: includeResponse, signal, }: import("../client.js").ResendRequestOptions): Promise<unknown>;
11
+ authorize(url: URL, headers: Headers): void;
12
+ request({ body, headers, method, path, query, redirect, response: includeResponse, }: import("../client.js").ResendRequestOptions): Promise<unknown>;
12
13
  }, PieceJSON[]> & {
13
14
  slug: "listContacts";
14
15
  };
@@ -1 +1 @@
1
- {"version":3,"file":"listContacts.d.ts","sourceRoot":"","sources":["../../src/actions/listContacts.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAChD,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,eAAO,MAAM,YAAY;;;;;;;;;;;CAUvB,CAAC"}
1
+ {"version":3,"file":"listContacts.d.ts","sourceRoot":"","sources":["../../src/actions/listContacts.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAChD,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,eAAO,MAAM,YAAY;;;;;;;;;;;;CAUvB,CAAC"}
@@ -5,7 +5,8 @@ export declare const listDomains: import("frogbot/pieces").PieceActionDefinition
5
5
  name?: string | undefined;
6
6
  } | undefined;
7
7
  }, {
8
- request({ allowFailure, binary, body, headers, method, path, query, rawBody, redirect, response: includeResponse, signal, }: import("../client.js").ResendRequestOptions): Promise<unknown>;
8
+ authorize(url: URL, headers: Headers): void;
9
+ request({ body, headers, method, path, query, redirect, response: includeResponse, }: import("../client.js").ResendRequestOptions): Promise<unknown>;
9
10
  }, {
10
11
  id: unknown;
11
12
  name: unknown;
@@ -1 +1 @@
1
- {"version":3,"file":"listDomains.d.ts","sourceRoot":"","sources":["../../src/actions/listDomains.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;CAmBtB,CAAC"}
1
+ {"version":3,"file":"listDomains.d.ts","sourceRoot":"","sources":["../../src/actions/listDomains.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;CAmBtB,CAAC"}
@@ -5,7 +5,8 @@ export declare const listEmails: import("frogbot/pieces").PieceActionDefinition<
5
5
  name?: string | undefined;
6
6
  } | undefined;
7
7
  }, {
8
- request({ allowFailure, binary, body, headers, method, path, query, rawBody, redirect, response: includeResponse, signal, }: import("../client.js").ResendRequestOptions): Promise<unknown>;
8
+ authorize(url: URL, headers: Headers): void;
9
+ request({ body, headers, method, path, query, redirect, response: includeResponse, }: import("../client.js").ResendRequestOptions): Promise<unknown>;
9
10
  }, {
10
11
  id: unknown;
11
12
  from: unknown;
@@ -1 +1 @@
1
- {"version":3,"file":"listEmails.d.ts","sourceRoot":"","sources":["../../src/actions/listEmails.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;CAsBrB,CAAC"}
1
+ {"version":3,"file":"listEmails.d.ts","sourceRoot":"","sources":["../../src/actions/listEmails.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;CAsBrB,CAAC"}
@@ -8,7 +8,8 @@ export declare const rescheduleEmail: import("frogbot/pieces").PieceActionDefini
8
8
  name?: string | undefined;
9
9
  } | undefined;
10
10
  }, {
11
- request({ allowFailure, binary, body, headers, method, path, query, rawBody, redirect, response: includeResponse, signal, }: import("../client.js").ResendRequestOptions): Promise<unknown>;
11
+ authorize(url: URL, headers: Headers): void;
12
+ request({ body, headers, method, path, query, redirect, response: includeResponse, }: import("../client.js").ResendRequestOptions): Promise<unknown>;
12
13
  }, unknown> & {
13
14
  slug: "rescheduleEmail";
14
15
  };
@@ -1 +1 @@
1
- {"version":3,"file":"rescheduleEmail.d.ts","sourceRoot":"","sources":["../../src/actions/rescheduleEmail.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,eAAO,MAAM,eAAe;;;;;;;;;;;;CAU1B,CAAC"}
1
+ {"version":3,"file":"rescheduleEmail.d.ts","sourceRoot":"","sources":["../../src/actions/rescheduleEmail.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,eAAO,MAAM,eAAe;;;;;;;;;;;;;CAU1B,CAAC"}
@@ -8,8 +8,8 @@ export declare const send: import("frogbot/pieces").PieceActionDefinition<z.ZodO
8
8
  reply_to: z.ZodOptional<z.ZodString>;
9
9
  subject: z.ZodString;
10
10
  content_type: z.ZodEnum<{
11
- html: "html";
12
11
  text: "text";
12
+ html: "html";
13
13
  }>;
14
14
  content: z.ZodString;
15
15
  scheduled_at: z.ZodOptional<z.ZodString>;
@@ -19,7 +19,8 @@ export declare const send: import("frogbot/pieces").PieceActionDefinition<z.ZodO
19
19
  name?: string | undefined;
20
20
  } | undefined;
21
21
  }, {
22
- request({ allowFailure, binary, body, headers, method, path, query, rawBody, redirect, response: includeResponse, signal, }: import("../client.js").ResendRequestOptions): Promise<unknown>;
22
+ authorize(url: URL, headers: Headers): void;
23
+ request({ body, headers, method, path, query, redirect, response: includeResponse, }: import("../client.js").ResendRequestOptions): Promise<unknown>;
23
24
  }, unknown> & {
24
25
  slug: "send";
25
26
  };
@@ -1 +1 @@
1
- {"version":3,"file":"send.d.ts","sourceRoot":"","sources":["../../src/actions/send.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAkBxB,eAAO,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;CAQf,CAAC"}
1
+ {"version":3,"file":"send.d.ts","sourceRoot":"","sources":["../../src/actions/send.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAkBxB,eAAO,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;CAQf,CAAC"}
@@ -6,8 +6,8 @@ export declare const sendBatchEmails: import("frogbot/pieces").PieceActionDefini
6
6
  to: z.ZodString;
7
7
  subject: z.ZodString;
8
8
  content_type: z.ZodEnum<{
9
- html: "html";
10
9
  text: "text";
10
+ html: "html";
11
11
  }>;
12
12
  content: z.ZodString;
13
13
  reply_to: z.ZodOptional<z.ZodString>;
@@ -21,7 +21,8 @@ export declare const sendBatchEmails: import("frogbot/pieces").PieceActionDefini
21
21
  name?: string | undefined;
22
22
  } | undefined;
23
23
  }, {
24
- request({ allowFailure, binary, body, headers, method, path, query, rawBody, redirect, response: includeResponse, signal, }: import("../client.js").ResendRequestOptions): Promise<unknown>;
24
+ authorize(url: URL, headers: Headers): void;
25
+ request({ body, headers, method, path, query, redirect, response: includeResponse, }: import("../client.js").ResendRequestOptions): Promise<unknown>;
25
26
  }, PieceJSON[]> & {
26
27
  slug: "sendBatchEmails";
27
28
  };
@@ -1 +1 @@
1
- {"version":3,"file":"sendBatchEmails.d.ts","sourceRoot":"","sources":["../../src/actions/sendBatchEmails.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAChD,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAqBxB,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;CAe1B,CAAC"}
1
+ {"version":3,"file":"sendBatchEmails.d.ts","sourceRoot":"","sources":["../../src/actions/sendBatchEmails.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAChD,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAqBxB,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;CAe1B,CAAC"}
@@ -8,7 +8,8 @@ export declare const sendBroadcast: import("frogbot/pieces").PieceActionDefiniti
8
8
  name?: string | undefined;
9
9
  } | undefined;
10
10
  }, {
11
- request({ allowFailure, binary, body, headers, method, path, query, rawBody, redirect, response: includeResponse, signal, }: import("../client.js").ResendRequestOptions): Promise<unknown>;
11
+ authorize(url: URL, headers: Headers): void;
12
+ request({ body, headers, method, path, query, redirect, response: includeResponse, }: import("../client.js").ResendRequestOptions): Promise<unknown>;
12
13
  }, unknown> & {
13
14
  slug: "sendBroadcast";
14
15
  };
@@ -1 +1 @@
1
- {"version":3,"file":"sendBroadcast.d.ts","sourceRoot":"","sources":["../../src/actions/sendBroadcast.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AASxB,eAAO,MAAM,aAAa;;;;;;;;;;;;CAWxB,CAAC"}
1
+ {"version":3,"file":"sendBroadcast.d.ts","sourceRoot":"","sources":["../../src/actions/sendBroadcast.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AASxB,eAAO,MAAM,aAAa;;;;;;;;;;;;;CAWxB,CAAC"}
@@ -11,7 +11,8 @@ export declare const updateContact: import("frogbot/pieces").PieceActionDefiniti
11
11
  name?: string | undefined;
12
12
  } | undefined;
13
13
  }, {
14
- request({ allowFailure, binary, body, headers, method, path, query, rawBody, redirect, response: includeResponse, signal, }: import("../client.js").ResendRequestOptions): Promise<unknown>;
14
+ authorize(url: URL, headers: Headers): void;
15
+ request({ body, headers, method, path, query, redirect, response: includeResponse, }: import("../client.js").ResendRequestOptions): Promise<unknown>;
15
16
  }, unknown> & {
16
17
  slug: "updateContact";
17
18
  };
@@ -1 +1 @@
1
- {"version":3,"file":"updateContact.d.ts","sourceRoot":"","sources":["../../src/actions/updateContact.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAaxB,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;CAmBxB,CAAC"}
1
+ {"version":3,"file":"updateContact.d.ts","sourceRoot":"","sources":["../../src/actions/updateContact.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAaxB,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;CAmBxB,CAAC"}
@@ -7,7 +7,8 @@ export declare const verifyDomain: import("frogbot/pieces").PieceActionDefinitio
7
7
  name?: string | undefined;
8
8
  } | undefined;
9
9
  }, {
10
- request({ allowFailure, binary, body, headers, method, path, query, rawBody, redirect, response: includeResponse, signal, }: import("../client.js").ResendRequestOptions): Promise<unknown>;
10
+ authorize(url: URL, headers: Headers): void;
11
+ request({ body, headers, method, path, query, redirect, response: includeResponse, }: import("../client.js").ResendRequestOptions): Promise<unknown>;
11
12
  }, unknown> & {
12
13
  slug: "verifyDomain";
13
14
  };
@@ -1 +1 @@
1
- {"version":3,"file":"verifyDomain.d.ts","sourceRoot":"","sources":["../../src/actions/verifyDomain.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,eAAO,MAAM,YAAY;;;;;;;;;;;CAQvB,CAAC"}
1
+ {"version":3,"file":"verifyDomain.d.ts","sourceRoot":"","sources":["../../src/actions/verifyDomain.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,eAAO,MAAM,YAAY;;;;;;;;;;;;CAQvB,CAAC"}
package/dist/client.d.ts CHANGED
@@ -1,20 +1,17 @@
1
1
  export type ResendRequestOptions = {
2
- allowFailure?: boolean;
3
- binary?: boolean;
4
2
  body?: unknown;
5
3
  headers?: Record<string, string>;
6
4
  method?: string;
7
5
  path: string;
8
6
  query?: Record<string, unknown>;
9
- rawBody?: boolean;
10
7
  redirect?: RequestRedirect;
11
8
  response?: boolean;
12
- signal?: AbortSignal;
13
9
  };
14
10
  export declare const createResendClient: ({ apiKey }: {
15
11
  apiKey: string;
16
12
  }) => {
17
- request({ allowFailure, binary, body, headers, method, path, query, rawBody, redirect, response: includeResponse, signal, }: ResendRequestOptions): Promise<unknown>;
13
+ authorize(url: URL, headers: Headers): void;
14
+ request({ body, headers, method, path, query, redirect, response: includeResponse, }: ResendRequestOptions): Promise<unknown>;
18
15
  };
19
16
  export type ResendClient = ReturnType<typeof createResendClient>;
20
17
  //# sourceMappingURL=client.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../src/client.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,oBAAoB,GAAG;IACjC,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACjC,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAChC,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,QAAQ,CAAC,EAAE,eAAe,CAAC;IAC3B,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,MAAM,CAAC,EAAE,WAAW,CAAC;CACtB,CAAC;AAEF,eAAO,MAAM,kBAAkB,eAAgB;IAAE,MAAM,EAAE,MAAM,CAAA;CAAE;iIAa5D,oBAAoB;CAwCvB,CAAC;AAEH,MAAM,MAAM,YAAY,GAAG,UAAU,CAAC,OAAO,kBAAkB,CAAC,CAAC"}
1
+ {"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../src/client.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,oBAAoB,GAAG;IACjC,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACjC,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAChC,QAAQ,CAAC,EAAE,eAAe,CAAC;IAC3B,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB,CAAC;AAcF,eAAO,MAAM,kBAAkB,eAAgB;IAAE,MAAM,EAAE,MAAM,CAAA;CAAE;mBAChD,GAAG,WAAW,OAAO;0FAajC,oBAAoB;CA8CvB,CAAC;AAEH,MAAM,MAAM,YAAY,GAAG,UAAU,CAAC,OAAO,kBAAkB,CAAC,CAAC"}
package/dist/client.js CHANGED
@@ -1,26 +1,47 @@
1
+ function checkUrl(url) {
2
+ if (url?.origin !== 'https://api.resend.com') {
3
+ throw new Error('[frogbot] Resend request URL must stay on https://api.resend.com.');
4
+ }
5
+ }
6
+ function checkHeaders(names) {
7
+ if (names.some((name)=>name.toLowerCase() === 'authorization')) {
8
+ throw new Error('[frogbot] Resend request headers must not set `Authorization`.');
9
+ }
10
+ }
1
11
  export const createResendClient = ({ apiKey })=>({
2
- async request ({ allowFailure, binary, body, headers, method = 'GET', path, query, rawBody, redirect, response: includeResponse, signal }) {
3
- const url = new URL(`https://api.resend.com${path}`);
12
+ authorize (url, headers) {
13
+ checkUrl(url);
14
+ checkHeaders([
15
+ ...headers.keys()
16
+ ]);
17
+ headers.set('authorization', `Bearer ${apiKey}`);
18
+ },
19
+ async request ({ body, headers, method = 'GET', path, query, redirect, response: includeResponse }) {
20
+ const url = path.startsWith('/') ? new URL(`https://api.resend.com${path}`) : undefined;
21
+ checkUrl(url);
22
+ checkHeaders(Object.keys(headers ?? {}));
4
23
  for (const [key, value] of Object.entries(query ?? {})){
5
24
  if (value !== undefined) url.searchParams.set(key, String(value));
6
25
  }
7
26
  const response = await fetch(url, {
8
27
  method,
9
28
  redirect,
10
- signal,
11
29
  headers: {
12
30
  Authorization: `Bearer ${apiKey}`,
13
- ...body === undefined || rawBody ? {} : {
31
+ ...body === undefined ? {} : {
14
32
  'Content-Type': 'application/json'
15
33
  },
16
34
  ...headers
17
35
  },
18
36
  ...body === undefined ? {} : {
19
- body: rawBody ? body : JSON.stringify(body)
37
+ body: JSON.stringify(body)
20
38
  }
21
39
  });
22
- const result = binary ? new Uint8Array(await response.arrayBuffer()) : await response.json().catch(()=>null);
23
- if (!response.ok && !allowFailure) {
40
+ if (redirect === 'manual' && response.status >= 300 && response.status < 400) {
41
+ throw new Error(`Resend API redirected (${response.status}) to ${response.headers.get('location')}.`);
42
+ }
43
+ const result = await response.json().catch(()=>null);
44
+ if (!response.ok) {
24
45
  const message = result && typeof result === 'object' && 'message' in result ? result.message : response.statusText;
25
46
  throw new Error(`Resend request failed (${response.status}): ${String(message)}`);
26
47
  }
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/client.ts"],"names":["createResendClient","apiKey","request","allowFailure","binary","body","headers","method","path","query","rawBody","redirect","response","includeResponse","signal","url","URL","key","value","Object","entries","undefined","searchParams","set","String","fetch","Authorization","JSON","stringify","result","Uint8Array","arrayBuffer","json","catch","ok","message","statusText","Error","status","fromEntries"],"mappings":"AAcA,OAAO,MAAMA,qBAAqB,CAAC,EAAEC,MAAM,EAAsB,GAAM,CAAA;QACrE,MAAMC,SAAQ,EACZC,YAAY,EACZC,MAAM,EACNC,IAAI,EACJC,OAAO,EACPC,SAAS,KAAK,EACdC,IAAI,EACJC,KAAK,EACLC,OAAO,EACPC,QAAQ,EACRC,UAAUC,eAAe,EACzBC,MAAM,EACe;YACrB,MAAMC,MAAM,IAAIC,IAAI,CAAC,sBAAsB,EAAER,MAAM;YAEnD,KAAK,MAAM,CAACS,KAAKC,MAAM,IAAIC,OAAOC,OAAO,CAACX,SAAS,CAAC,GAAI;gBACtD,IAAIS,UAAUG,WAAWN,IAAIO,YAAY,CAACC,GAAG,CAACN,KAAKO,OAAON;YAC5D;YAEA,MAAMN,WAAW,MAAMa,MAAMV,KAAK;gBAChCR;gBACAI;gBACAG;gBACAR,SAAS;oBACPoB,eAAe,CAAC,OAAO,EAAEzB,QAAQ;oBACjC,GAAII,SAASgB,aAAaX,UAAU,CAAC,IAAI;wBAAE,gBAAgB;oBAAmB,CAAC;oBAC/E,GAAGJ,OAAO;gBACZ;gBACA,GAAID,SAASgB,YAAY,CAAC,IAAI;oBAAEhB,MAAMK,UAAWL,OAAoBsB,KAAKC,SAAS,CAACvB;gBAAM,CAAC;YAC7F;YAEA,MAAMwB,SAAkBzB,SACpB,IAAI0B,WAAW,MAAMlB,SAASmB,WAAW,MACzC,MAAMnB,SAASoB,IAAI,GAAGC,KAAK,CAAC,IAAM;YAEtC,IAAI,CAACrB,SAASsB,EAAE,IAAI,CAAC/B,cAAc;gBACjC,MAAMgC,UACJN,UAAU,OAAOA,WAAW,YAAY,aAAaA,SACjDA,OAAOM,OAAO,GACdvB,SAASwB,UAAU;gBAEzB,MAAM,IAAIC,MAAM,CAAC,uBAAuB,EAAEzB,SAAS0B,MAAM,CAAC,GAAG,EAAEd,OAAOW,UAAU;YAClF;YAEA,OAAOtB,kBACH;gBACEyB,QAAQ1B,SAAS0B,MAAM;gBACvBhC,SAASa,OAAOoB,WAAW,CAAC3B,SAASN,OAAO,CAACc,OAAO;gBACpDf,MAAMwB;YACR,IACAA;QACN;IACF,CAAA,EAAG","file":"client.js"}
1
+ {"version":3,"sources":["../src/client.ts"],"names":["checkUrl","url","origin","Error","checkHeaders","names","some","name","toLowerCase","createResendClient","apiKey","authorize","headers","keys","set","request","body","method","path","query","redirect","response","includeResponse","startsWith","URL","undefined","Object","key","value","entries","searchParams","String","fetch","Authorization","JSON","stringify","status","get","result","json","catch","ok","message","statusText","fromEntries"],"mappings":"AAUA,SAASA,SAASC,GAAoB;IACpC,IAAIA,KAAKC,WAAW,0BAA0B;QAC5C,MAAM,IAAIC,MAAM;IAClB;AACF;AAEA,SAASC,aAAaC,KAAe;IACnC,IAAIA,MAAMC,IAAI,CAAC,CAACC,OAASA,KAAKC,WAAW,OAAO,kBAAkB;QAChE,MAAM,IAAIL,MAAM;IAClB;AACF;AAEA,OAAO,MAAMM,qBAAqB,CAAC,EAAEC,MAAM,EAAsB,GAAM,CAAA;QACrEC,WAAUV,GAAQ,EAAEW,OAAgB;YAClCZ,SAASC;YACTG,aAAa;mBAAIQ,QAAQC,IAAI;aAAG;YAChCD,QAAQE,GAAG,CAAC,iBAAiB,CAAC,OAAO,EAAEJ,QAAQ;QACjD;QACA,MAAMK,SAAQ,EACZC,IAAI,EACJJ,OAAO,EACPK,SAAS,KAAK,EACdC,IAAI,EACJC,KAAK,EACLC,QAAQ,EACRC,UAAUC,eAAe,EACJ;YACrB,MAAMrB,MAAMiB,KAAKK,UAAU,CAAC,OAAO,IAAIC,IAAI,CAAC,sBAAsB,EAAEN,MAAM,IAAIO;YAE9EzB,SAASC;YACTG,aAAasB,OAAOb,IAAI,CAACD,WAAW,CAAC;YAErC,KAAK,MAAM,CAACe,KAAKC,MAAM,IAAIF,OAAOG,OAAO,CAACV,SAAS,CAAC,GAAI;gBACtD,IAAIS,UAAUH,WAAWxB,IAAI6B,YAAY,CAAChB,GAAG,CAACa,KAAKI,OAAOH;YAC5D;YAEA,MAAMP,WAAW,MAAMW,MAAM/B,KAAK;gBAChCgB;gBACAG;gBACAR,SAAS;oBACPqB,eAAe,CAAC,OAAO,EAAEvB,QAAQ;oBACjC,GAAIM,SAASS,YAAY,CAAC,IAAI;wBAAE,gBAAgB;oBAAmB,CAAC;oBACpE,GAAGb,OAAO;gBACZ;gBACA,GAAII,SAASS,YAAY,CAAC,IAAI;oBAAET,MAAMkB,KAAKC,SAAS,CAACnB;gBAAM,CAAC;YAC9D;YAEA,IAAII,aAAa,YAAYC,SAASe,MAAM,IAAI,OAAOf,SAASe,MAAM,GAAG,KAAK;gBAC5E,MAAM,IAAIjC,MACR,CAAC,uBAAuB,EAAEkB,SAASe,MAAM,CAAC,KAAK,EAAEf,SAAST,OAAO,CAACyB,GAAG,CAAC,YAAY,CAAC,CAAC;YAExF;YAEA,MAAMC,SAAkB,MAAMjB,SAASkB,IAAI,GAAGC,KAAK,CAAC,IAAM;YAE1D,IAAI,CAACnB,SAASoB,EAAE,EAAE;gBAChB,MAAMC,UACJJ,UAAU,OAAOA,WAAW,YAAY,aAAaA,SACjDA,OAAOI,OAAO,GACdrB,SAASsB,UAAU;gBAEzB,MAAM,IAAIxC,MAAM,CAAC,uBAAuB,EAAEkB,SAASe,MAAM,CAAC,GAAG,EAAEL,OAAOW,UAAU;YAClF;YAEA,OAAOpB,kBACH;gBACEc,QAAQf,SAASe,MAAM;gBACvBxB,SAASc,OAAOkB,WAAW,CAACvB,SAAST,OAAO,CAACiB,OAAO;gBACpDb,MAAMsB;YACR,IACAA;QACN;IACF,CAAA,EAAG","file":"client.js"}
package/dist/define.d.ts CHANGED
@@ -4,7 +4,8 @@ export declare const defineAction: <const TSlug extends string, TInput extends i
4
4
  name?: string | undefined;
5
5
  } | undefined;
6
6
  }, {
7
- request({ allowFailure, binary, body, headers, method, path, query, rawBody, redirect, response: includeResponse, signal, }: import("./client.js").ResendRequestOptions): Promise<unknown>;
7
+ authorize(url: URL, headers: Headers): void;
8
+ request({ body, headers, method, path, query, redirect, response: includeResponse, }: import("./client.js").ResendRequestOptions): Promise<unknown>;
8
9
  }, TOutput extends import("zod").ZodType<unknown, unknown, import("zod/v4/core").$ZodTypeInternals<unknown, unknown>> ? import("zod").infer<TOutput> : TResult> & {
9
10
  slug: TSlug;
10
11
  } : never) => import("frogbot/pieces").PieceActionDefinition<TInput, TOutput, {
@@ -13,8 +14,20 @@ export declare const defineAction: <const TSlug extends string, TInput extends i
13
14
  name?: string | undefined;
14
15
  } | undefined;
15
16
  }, {
16
- request({ allowFailure, binary, body, headers, method, path, query, rawBody, redirect, response: includeResponse, signal, }: import("./client.js").ResendRequestOptions): Promise<unknown>;
17
+ authorize(url: URL, headers: Headers): void;
18
+ request({ body, headers, method, path, query, redirect, response: includeResponse, }: import("./client.js").ResendRequestOptions): Promise<unknown>;
17
19
  }, TOutput extends import("zod").ZodType<unknown, unknown, import("zod/v4/core").$ZodTypeInternals<unknown, unknown>> ? import("zod").infer<TOutput> : TResult> & {
18
20
  slug: TSlug;
19
- };
21
+ }, defineCustomApiCall: (config: import("frogbot/pieces").CustomApiCallConfig<{
22
+ authorize(url: URL, headers: Headers): void;
23
+ request({ body, headers, method, path, query, redirect, response: includeResponse, }: import("./client.js").ResendRequestOptions): Promise<unknown>;
24
+ }>) => import("frogbot/pieces").CustomApiCallAction<{
25
+ from?: {
26
+ address: string;
27
+ name?: string | undefined;
28
+ } | undefined;
29
+ }, {
30
+ authorize(url: URL, headers: Headers): void;
31
+ request({ body, headers, method, path, query, redirect, response: includeResponse, }: import("./client.js").ResendRequestOptions): Promise<unknown>;
32
+ }>;
20
33
  //# sourceMappingURL=define.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"define.d.ts","sourceRoot":"","sources":["../src/define.ts"],"names":[],"mappings":"AAKA,eAAO,MAAQ,YAAY;;;;;;;;;;;;;;;;;;CAAsD,CAAC"}
1
+ {"version":3,"file":"define.d.ts","sourceRoot":"","sources":["../src/define.ts"],"names":[],"mappings":"AAKA,eAAO,MAAQ,YAAY;;;;;;;;;;;;;;;;;;;;GAAE,mBAAmB;;;;;;;;;;;EAG7C,CAAC"}
package/dist/define.js CHANGED
@@ -1,4 +1,4 @@
1
1
  import { createPieceHelpers } from 'frogbot/pieces';
2
- export const { defineAction } = createPieceHelpers();
2
+ export const { defineAction, defineCustomApiCall } = createPieceHelpers();
3
3
 
4
4
  //# sourceMappingURL=define.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/define.ts"],"names":["createPieceHelpers","defineAction"],"mappings":"AAAA,SAASA,kBAAkB,QAAQ,iBAAiB;AAKpD,OAAO,MAAM,EAAEC,YAAY,EAAE,GAAGD,qBAAkD","file":"define.js"}
1
+ {"version":3,"sources":["../src/define.ts"],"names":["createPieceHelpers","defineAction","defineCustomApiCall"],"mappings":"AAAA,SAASA,kBAAkB,QAAQ,iBAAiB;AAKpD,OAAO,MAAM,EAAEC,YAAY,EAAEC,mBAAmB,EAAE,GAAGF,qBAGjD","file":"define.js"}
package/dist/email.d.ts CHANGED
@@ -10,7 +10,8 @@ export declare const resendEmail: {
10
10
  } | string) | undefined;
11
11
  };
12
12
  client: {
13
- request({ allowFailure, binary, body, headers, method, path, query, rawBody, redirect, response: includeResponse, signal, }: import("./client.js").ResendRequestOptions): Promise<unknown>;
13
+ authorize(url: URL, headers: Headers): void;
14
+ request({ body, headers, method, path, query, redirect, response: includeResponse, }: import("./client.js").ResendRequestOptions): Promise<unknown>;
14
15
  };
15
16
  options: {
16
17
  from?: {
@@ -1 +1 @@
1
- {"version":3,"file":"email.d.ts","sourceRoot":"","sources":["../src/email.ts"],"names":[],"mappings":"AAmCA,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;oBA/BM,CAAC;;;;;CAoD6C,CAAC"}
1
+ {"version":3,"file":"email.d.ts","sourceRoot":"","sources":["../src/email.ts"],"names":[],"mappings":"AAmCA,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;oBA/BM,CAAC;;;;;CAoD6C,CAAC"}
package/dist/index.d.ts CHANGED
@@ -27,7 +27,8 @@ export declare const createResend: import("frogbot/pieces").PieceFactory<{
27
27
  };
28
28
  };
29
29
  }) => {
30
- request({ allowFailure, binary, body, headers, method, path, query, rawBody, redirect, response: includeResponse, signal, }: import("./client.js").ResendRequestOptions): Promise<unknown>;
30
+ authorize(url: URL, headers: Headers): void;
31
+ request({ body, headers, method, path, query, redirect, response: includeResponse, }: import("./client.js").ResendRequestOptions): Promise<unknown>;
31
32
  };
32
33
  actions: ((import("frogbot/pieces").PieceActionDefinition<import("zod").ZodObject<{
33
34
  email_id: import("zod").ZodString;
@@ -37,7 +38,8 @@ export declare const createResend: import("frogbot/pieces").PieceFactory<{
37
38
  name?: string | undefined;
38
39
  } | undefined;
39
40
  }, {
40
- request({ allowFailure, binary, body, headers, method, path, query, rawBody, redirect, response: includeResponse, signal, }: import("./client.js").ResendRequestOptions): Promise<unknown>;
41
+ authorize(url: URL, headers: Headers): void;
42
+ request({ body, headers, method, path, query, redirect, response: includeResponse, }: import("./client.js").ResendRequestOptions): Promise<unknown>;
41
43
  }, unknown> & {
42
44
  slug: "cancelScheduledEmail";
43
45
  }) | (import("frogbot/pieces").PieceActionDefinition<import("zod").ZodObject<{
@@ -48,7 +50,8 @@ export declare const createResend: import("frogbot/pieces").PieceFactory<{
48
50
  name?: string | undefined;
49
51
  } | undefined;
50
52
  }, {
51
- request({ allowFailure, binary, body, headers, method, path, query, rawBody, redirect, response: includeResponse, signal, }: import("./client.js").ResendRequestOptions): Promise<unknown>;
53
+ authorize(url: URL, headers: Headers): void;
54
+ request({ body, headers, method, path, query, redirect, response: includeResponse, }: import("./client.js").ResendRequestOptions): Promise<unknown>;
52
55
  }, unknown> & {
53
56
  slug: "createAudience";
54
57
  }) | (import("frogbot/pieces").PieceActionDefinition<import("zod").ZodObject<{
@@ -59,8 +62,8 @@ export declare const createResend: import("frogbot/pieces").PieceFactory<{
59
62
  reply_to: import("zod").ZodOptional<import("zod").ZodString>;
60
63
  preview_text: import("zod").ZodOptional<import("zod").ZodString>;
61
64
  content_type: import("zod").ZodEnum<{
62
- html: "html";
63
65
  text: "text";
66
+ html: "html";
64
67
  }>;
65
68
  content: import("zod").ZodString;
66
69
  }, import("zod/v4/core").$strip>, undefined, {
@@ -69,7 +72,8 @@ export declare const createResend: import("frogbot/pieces").PieceFactory<{
69
72
  name?: string | undefined;
70
73
  } | undefined;
71
74
  }, {
72
- request({ allowFailure, binary, body, headers, method, path, query, rawBody, redirect, response: includeResponse, signal, }: import("./client.js").ResendRequestOptions): Promise<unknown>;
75
+ authorize(url: URL, headers: Headers): void;
76
+ request({ body, headers, method, path, query, redirect, response: includeResponse, }: import("./client.js").ResendRequestOptions): Promise<unknown>;
73
77
  }, unknown> & {
74
78
  slug: "createBroadcast";
75
79
  }) | (import("frogbot/pieces").PieceActionDefinition<import("zod").ZodObject<{
@@ -84,7 +88,8 @@ export declare const createResend: import("frogbot/pieces").PieceFactory<{
84
88
  name?: string | undefined;
85
89
  } | undefined;
86
90
  }, {
87
- request({ allowFailure, binary, body, headers, method, path, query, rawBody, redirect, response: includeResponse, signal, }: import("./client.js").ResendRequestOptions): Promise<unknown>;
91
+ authorize(url: URL, headers: Headers): void;
92
+ request({ body, headers, method, path, query, redirect, response: includeResponse, }: import("./client.js").ResendRequestOptions): Promise<unknown>;
88
93
  }, unknown> & {
89
94
  slug: "createContact";
90
95
  }) | (import("frogbot/pieces").PieceActionDefinition<import("zod").ZodObject<{
@@ -101,7 +106,8 @@ export declare const createResend: import("frogbot/pieces").PieceFactory<{
101
106
  name?: string | undefined;
102
107
  } | undefined;
103
108
  }, {
104
- request({ allowFailure, binary, body, headers, method, path, query, rawBody, redirect, response: includeResponse, signal, }: import("./client.js").ResendRequestOptions): Promise<unknown>;
109
+ authorize(url: URL, headers: Headers): void;
110
+ request({ body, headers, method, path, query, redirect, response: includeResponse, }: import("./client.js").ResendRequestOptions): Promise<unknown>;
105
111
  }, {
106
112
  id: unknown;
107
113
  name: unknown;
@@ -113,32 +119,15 @@ export declare const createResend: import("frogbot/pieces").PieceFactory<{
113
119
  dns_records: unknown;
114
120
  }> & {
115
121
  slug: "createDomain";
116
- }) | (import("frogbot/pieces").PieceActionDefinition<import("zod").ZodObject<{
117
- method: import("zod").ZodString;
118
- url: import("zod").ZodString;
119
- headers: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>>;
120
- queryParams: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>;
121
- body_type: import("zod").ZodOptional<import("zod").ZodEnum<{
122
- none: "none";
123
- json: "json";
124
- form_data: "form_data";
125
- raw: "raw";
126
- }>>;
127
- body: import("zod").ZodOptional<import("zod").ZodUnknown>;
128
- response_is_binary: import("zod").ZodOptional<import("zod").ZodBoolean>;
129
- failsafe: import("zod").ZodOptional<import("zod").ZodBoolean>;
130
- timeout: import("zod").ZodOptional<import("zod").ZodNumber>;
131
- followRedirects: import("zod").ZodOptional<import("zod").ZodBoolean>;
132
- }, import("zod/v4/core").$strip>, undefined, {
122
+ }) | import("frogbot/pieces").CustomApiCallAction<{
133
123
  from?: {
134
124
  address: string;
135
125
  name?: string | undefined;
136
126
  } | undefined;
137
127
  }, {
138
- request({ allowFailure, binary, body, headers, method, path, query, rawBody, redirect, response: includeResponse, signal, }: import("./client.js").ResendRequestOptions): Promise<unknown>;
139
- }, unknown> & {
140
- slug: "customApiCall";
141
- }) | (import("frogbot/pieces").PieceActionDefinition<import("zod").ZodObject<{
128
+ authorize(url: URL, headers: Headers): void;
129
+ request({ body, headers, method, path, query, redirect, response: includeResponse, }: import("./client.js").ResendRequestOptions): Promise<unknown>;
130
+ }> | (import("frogbot/pieces").PieceActionDefinition<import("zod").ZodObject<{
142
131
  audience_id: import("zod").ZodString;
143
132
  }, import("zod/v4/core").$loose>, undefined, {
144
133
  from?: {
@@ -146,7 +135,8 @@ export declare const createResend: import("frogbot/pieces").PieceFactory<{
146
135
  name?: string | undefined;
147
136
  } | undefined;
148
137
  }, {
149
- request({ allowFailure, binary, body, headers, method, path, query, rawBody, redirect, response: includeResponse, signal, }: import("./client.js").ResendRequestOptions): Promise<unknown>;
138
+ authorize(url: URL, headers: Headers): void;
139
+ request({ body, headers, method, path, query, redirect, response: includeResponse, }: import("./client.js").ResendRequestOptions): Promise<unknown>;
150
140
  }, unknown> & {
151
141
  slug: "deleteAudience";
152
142
  }) | (import("frogbot/pieces").PieceActionDefinition<import("zod").ZodObject<{
@@ -157,7 +147,8 @@ export declare const createResend: import("frogbot/pieces").PieceFactory<{
157
147
  name?: string | undefined;
158
148
  } | undefined;
159
149
  }, {
160
- request({ allowFailure, binary, body, headers, method, path, query, rawBody, redirect, response: includeResponse, signal, }: import("./client.js").ResendRequestOptions): Promise<unknown>;
150
+ authorize(url: URL, headers: Headers): void;
151
+ request({ body, headers, method, path, query, redirect, response: includeResponse, }: import("./client.js").ResendRequestOptions): Promise<unknown>;
161
152
  }, unknown> & {
162
153
  slug: "deleteBroadcast";
163
154
  }) | (import("frogbot/pieces").PieceActionDefinition<import("zod").ZodObject<{
@@ -169,7 +160,8 @@ export declare const createResend: import("frogbot/pieces").PieceFactory<{
169
160
  name?: string | undefined;
170
161
  } | undefined;
171
162
  }, {
172
- request({ allowFailure, binary, body, headers, method, path, query, rawBody, redirect, response: includeResponse, signal, }: import("./client.js").ResendRequestOptions): Promise<unknown>;
163
+ authorize(url: URL, headers: Headers): void;
164
+ request({ body, headers, method, path, query, redirect, response: includeResponse, }: import("./client.js").ResendRequestOptions): Promise<unknown>;
173
165
  }, unknown> & {
174
166
  slug: "deleteContact";
175
167
  }) | (import("frogbot/pieces").PieceActionDefinition<import("zod").ZodObject<{
@@ -180,7 +172,8 @@ export declare const createResend: import("frogbot/pieces").PieceFactory<{
180
172
  name?: string | undefined;
181
173
  } | undefined;
182
174
  }, {
183
- request({ allowFailure, binary, body, headers, method, path, query, rawBody, redirect, response: includeResponse, signal, }: import("./client.js").ResendRequestOptions): Promise<unknown>;
175
+ authorize(url: URL, headers: Headers): void;
176
+ request({ body, headers, method, path, query, redirect, response: includeResponse, }: import("./client.js").ResendRequestOptions): Promise<unknown>;
184
177
  }, unknown> & {
185
178
  slug: "deleteDomain";
186
179
  }) | (import("frogbot/pieces").PieceActionDefinition<import("zod").ZodObject<{
@@ -191,7 +184,8 @@ export declare const createResend: import("frogbot/pieces").PieceFactory<{
191
184
  name?: string | undefined;
192
185
  } | undefined;
193
186
  }, {
194
- request({ allowFailure, binary, body, headers, method, path, query, rawBody, redirect, response: includeResponse, signal, }: import("./client.js").ResendRequestOptions): Promise<unknown>;
187
+ authorize(url: URL, headers: Headers): void;
188
+ request({ body, headers, method, path, query, redirect, response: includeResponse, }: import("./client.js").ResendRequestOptions): Promise<unknown>;
195
189
  }, unknown> & {
196
190
  slug: "getEmailStatus";
197
191
  }) | (import("frogbot/pieces").PieceActionDefinition<import("zod").ZodObject<{}, import("zod/v4/core").$strip>, undefined, {
@@ -200,7 +194,8 @@ export declare const createResend: import("frogbot/pieces").PieceFactory<{
200
194
  name?: string | undefined;
201
195
  } | undefined;
202
196
  }, {
203
- request({ allowFailure, binary, body, headers, method, path, query, rawBody, redirect, response: includeResponse, signal, }: import("./client.js").ResendRequestOptions): Promise<unknown>;
197
+ authorize(url: URL, headers: Headers): void;
198
+ request({ body, headers, method, path, query, redirect, response: includeResponse, }: import("./client.js").ResendRequestOptions): Promise<unknown>;
204
199
  }, import("frogbot/pieces").PieceJSON[]> & {
205
200
  slug: "listAudiences";
206
201
  }) | (import("frogbot/pieces").PieceActionDefinition<import("zod").ZodObject<{}, import("zod/v4/core").$strip>, undefined, {
@@ -209,7 +204,8 @@ export declare const createResend: import("frogbot/pieces").PieceFactory<{
209
204
  name?: string | undefined;
210
205
  } | undefined;
211
206
  }, {
212
- request({ allowFailure, binary, body, headers, method, path, query, rawBody, redirect, response: includeResponse, signal, }: import("./client.js").ResendRequestOptions): Promise<unknown>;
207
+ authorize(url: URL, headers: Headers): void;
208
+ request({ body, headers, method, path, query, redirect, response: includeResponse, }: import("./client.js").ResendRequestOptions): Promise<unknown>;
213
209
  }, {
214
210
  id: unknown;
215
211
  name: {};
@@ -232,7 +228,8 @@ export declare const createResend: import("frogbot/pieces").PieceFactory<{
232
228
  name?: string | undefined;
233
229
  } | undefined;
234
230
  }, {
235
- request({ allowFailure, binary, body, headers, method, path, query, rawBody, redirect, response: includeResponse, signal, }: import("./client.js").ResendRequestOptions): Promise<unknown>;
231
+ authorize(url: URL, headers: Headers): void;
232
+ request({ body, headers, method, path, query, redirect, response: includeResponse, }: import("./client.js").ResendRequestOptions): Promise<unknown>;
236
233
  }, import("frogbot/pieces").PieceJSON[]> & {
237
234
  slug: "listContacts";
238
235
  }) | (import("frogbot/pieces").PieceActionDefinition<import("zod").ZodObject<{}, import("zod/v4/core").$strip>, undefined, {
@@ -241,7 +238,8 @@ export declare const createResend: import("frogbot/pieces").PieceFactory<{
241
238
  name?: string | undefined;
242
239
  } | undefined;
243
240
  }, {
244
- request({ allowFailure, binary, body, headers, method, path, query, rawBody, redirect, response: includeResponse, signal, }: import("./client.js").ResendRequestOptions): Promise<unknown>;
241
+ authorize(url: URL, headers: Headers): void;
242
+ request({ body, headers, method, path, query, redirect, response: includeResponse, }: import("./client.js").ResendRequestOptions): Promise<unknown>;
245
243
  }, {
246
244
  id: unknown;
247
245
  name: unknown;
@@ -258,7 +256,8 @@ export declare const createResend: import("frogbot/pieces").PieceFactory<{
258
256
  name?: string | undefined;
259
257
  } | undefined;
260
258
  }, {
261
- request({ allowFailure, binary, body, headers, method, path, query, rawBody, redirect, response: includeResponse, signal, }: import("./client.js").ResendRequestOptions): Promise<unknown>;
259
+ authorize(url: URL, headers: Headers): void;
260
+ request({ body, headers, method, path, query, redirect, response: includeResponse, }: import("./client.js").ResendRequestOptions): Promise<unknown>;
262
261
  }, {
263
262
  id: unknown;
264
263
  from: unknown;
@@ -281,7 +280,8 @@ export declare const createResend: import("frogbot/pieces").PieceFactory<{
281
280
  name?: string | undefined;
282
281
  } | undefined;
283
282
  }, {
284
- request({ allowFailure, binary, body, headers, method, path, query, rawBody, redirect, response: includeResponse, signal, }: import("./client.js").ResendRequestOptions): Promise<unknown>;
283
+ authorize(url: URL, headers: Headers): void;
284
+ request({ body, headers, method, path, query, redirect, response: includeResponse, }: import("./client.js").ResendRequestOptions): Promise<unknown>;
285
285
  }, unknown> & {
286
286
  slug: "rescheduleEmail";
287
287
  }) | (import("frogbot/pieces").PieceActionDefinition<import("zod").ZodObject<{
@@ -293,8 +293,8 @@ export declare const createResend: import("frogbot/pieces").PieceFactory<{
293
293
  reply_to: import("zod").ZodOptional<import("zod").ZodString>;
294
294
  subject: import("zod").ZodString;
295
295
  content_type: import("zod").ZodEnum<{
296
- html: "html";
297
296
  text: "text";
297
+ html: "html";
298
298
  }>;
299
299
  content: import("zod").ZodString;
300
300
  scheduled_at: import("zod").ZodOptional<import("zod").ZodString>;
@@ -304,7 +304,8 @@ export declare const createResend: import("frogbot/pieces").PieceFactory<{
304
304
  name?: string | undefined;
305
305
  } | undefined;
306
306
  }, {
307
- request({ allowFailure, binary, body, headers, method, path, query, rawBody, redirect, response: includeResponse, signal, }: import("./client.js").ResendRequestOptions): Promise<unknown>;
307
+ authorize(url: URL, headers: Headers): void;
308
+ request({ body, headers, method, path, query, redirect, response: includeResponse, }: import("./client.js").ResendRequestOptions): Promise<unknown>;
308
309
  }, unknown> & {
309
310
  slug: "send";
310
311
  }) | (import("frogbot/pieces").PieceActionDefinition<import("zod").ZodObject<{
@@ -313,8 +314,8 @@ export declare const createResend: import("frogbot/pieces").PieceFactory<{
313
314
  to: import("zod").ZodString;
314
315
  subject: import("zod").ZodString;
315
316
  content_type: import("zod").ZodEnum<{
316
- html: "html";
317
317
  text: "text";
318
+ html: "html";
318
319
  }>;
319
320
  content: import("zod").ZodString;
320
321
  reply_to: import("zod").ZodOptional<import("zod").ZodString>;
@@ -328,7 +329,8 @@ export declare const createResend: import("frogbot/pieces").PieceFactory<{
328
329
  name?: string | undefined;
329
330
  } | undefined;
330
331
  }, {
331
- request({ allowFailure, binary, body, headers, method, path, query, rawBody, redirect, response: includeResponse, signal, }: import("./client.js").ResendRequestOptions): Promise<unknown>;
332
+ authorize(url: URL, headers: Headers): void;
333
+ request({ body, headers, method, path, query, redirect, response: includeResponse, }: import("./client.js").ResendRequestOptions): Promise<unknown>;
332
334
  }, import("frogbot/pieces").PieceJSON[]> & {
333
335
  slug: "sendBatchEmails";
334
336
  }) | (import("frogbot/pieces").PieceActionDefinition<import("zod").ZodObject<{
@@ -340,7 +342,8 @@ export declare const createResend: import("frogbot/pieces").PieceFactory<{
340
342
  name?: string | undefined;
341
343
  } | undefined;
342
344
  }, {
343
- request({ allowFailure, binary, body, headers, method, path, query, rawBody, redirect, response: includeResponse, signal, }: import("./client.js").ResendRequestOptions): Promise<unknown>;
345
+ authorize(url: URL, headers: Headers): void;
346
+ request({ body, headers, method, path, query, redirect, response: includeResponse, }: import("./client.js").ResendRequestOptions): Promise<unknown>;
344
347
  }, unknown> & {
345
348
  slug: "sendBroadcast";
346
349
  }) | (import("frogbot/pieces").PieceActionDefinition<import("zod").ZodObject<{
@@ -355,7 +358,8 @@ export declare const createResend: import("frogbot/pieces").PieceFactory<{
355
358
  name?: string | undefined;
356
359
  } | undefined;
357
360
  }, {
358
- request({ allowFailure, binary, body, headers, method, path, query, rawBody, redirect, response: includeResponse, signal, }: import("./client.js").ResendRequestOptions): Promise<unknown>;
361
+ authorize(url: URL, headers: Headers): void;
362
+ request({ body, headers, method, path, query, redirect, response: includeResponse, }: import("./client.js").ResendRequestOptions): Promise<unknown>;
359
363
  }, unknown> & {
360
364
  slug: "updateContact";
361
365
  }) | (import("frogbot/pieces").PieceActionDefinition<import("zod").ZodObject<{
@@ -366,7 +370,8 @@ export declare const createResend: import("frogbot/pieces").PieceFactory<{
366
370
  name?: string | undefined;
367
371
  } | undefined;
368
372
  }, {
369
- request({ allowFailure, binary, body, headers, method, path, query, rawBody, redirect, response: includeResponse, signal, }: import("./client.js").ResendRequestOptions): Promise<unknown>;
373
+ authorize(url: URL, headers: Headers): void;
374
+ request({ body, headers, method, path, query, redirect, response: includeResponse, }: import("./client.js").ResendRequestOptions): Promise<unknown>;
370
375
  }, unknown> & {
371
376
  slug: "verifyDomain";
372
377
  }))[];
@@ -382,7 +387,8 @@ export declare const createResend: import("frogbot/pieces").PieceFactory<{
382
387
  } | string) | undefined;
383
388
  };
384
389
  client: {
385
- request({ allowFailure, binary, body, headers, method, path, query, rawBody, redirect, response: includeResponse, signal, }: import("./client.js").ResendRequestOptions): Promise<unknown>;
390
+ authorize(url: URL, headers: Headers): void;
391
+ request({ body, headers, method, path, query, redirect, response: includeResponse, }: import("./client.js").ResendRequestOptions): Promise<unknown>;
386
392
  };
387
393
  options: {
388
394
  from?: {
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AA6BA,eAAO,MAAM,aAAa,kYAuBhB,CAAC;AAEX,eAAO,MAAM,YAAY,aAAc,CAAC;AAExC,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;oBAtD+B,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wBAAD,CAAC;;;;;;EAsFF,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AA6BA,eAAO,MAAM,aAAa,kYAuBhB,CAAC;AAEX,eAAO,MAAM,YAAY,aAAc,CAAC;AAExC,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;oBAtD+B,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wBAAD,CAAC;;;;;;EAsFF,CAAC"}
@@ -177,22 +177,40 @@ export interface ResendTypes {
177
177
  };
178
178
  customApiCall: {
179
179
  input: {
180
- method: string;
181
- url: string;
180
+ method: 'GET' | 'POST' | 'PUT' | 'PATCH' | 'DELETE' | 'HEAD';
181
+ /**
182
+ * API path relative to the piece base URL.
183
+ */
184
+ path: string;
185
+ /**
186
+ * Query parameters. Array values are sent as repeated keys.
187
+ */
188
+ query?: {
189
+ [k: string]: (string | number | boolean) | (string | number | boolean)[];
190
+ };
182
191
  headers?: {
183
192
  [k: string]: string;
184
193
  };
185
- queryParams?: {
186
- [k: string]: unknown;
187
- };
188
- body_type?: 'none' | 'json' | 'form_data' | 'raw';
194
+ bodyType: 'json' | 'form' | 'raw' | 'formData';
189
195
  body?: unknown;
190
- response_is_binary?: boolean;
191
- failsafe?: boolean;
192
- timeout?: number;
193
- followRedirects?: boolean;
196
+ responseType: 'json' | 'text' | 'binary';
197
+ /**
198
+ * Name of the saved file for binary responses.
199
+ */
200
+ fileName?: string;
201
+ /**
202
+ * Return the response instead of throwing on a non-2xx status.
203
+ */
204
+ failsafe: boolean;
205
+ timeoutSeconds: number;
206
+ };
207
+ output: {
208
+ status: number;
209
+ headers: {
210
+ [k: string]: string;
211
+ };
212
+ body: unknown;
194
213
  };
195
- output: unknown;
196
214
  };
197
215
  };
198
216
  triggers: {};
@@ -1 +1 @@
1
- {"version":3,"file":"piece-types.d.ts","sourceRoot":"","sources":["../src/piece-types.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,WAAW;IAC1B,IAAI,EAAE;QACJ,MAAM,EAAE,MAAM,CAAC;KAChB,CAAC;IACF,OAAO,EAAE;QACP,IAAI,CAAC,EAAE;YACL,OAAO,EAAE,MAAM,CAAC;YAChB,IAAI,CAAC,EAAE,MAAM,CAAC;SACf,CAAC;KACH,CAAC;IACF,OAAO,EAAE;QACP,IAAI,EAAE;YACJ,KAAK,EAAE;gBACL,EAAE,EAAE,MAAM,EAAE,CAAC;gBACb,SAAS,EAAE,MAAM,CAAC;gBAClB,IAAI,EAAE,MAAM,CAAC;gBACb,GAAG,CAAC,EAAE,MAAM,EAAE,CAAC;gBACf,EAAE,CAAC,EAAE,MAAM,EAAE,CAAC;gBACd,QAAQ,CAAC,EAAE,MAAM,CAAC;gBAClB,OAAO,EAAE,MAAM,CAAC;gBAChB,YAAY,EAAE,MAAM,GAAG,MAAM,CAAC;gBAC9B,OAAO,EAAE,MAAM,CAAC;gBAChB,YAAY,CAAC,EAAE,MAAM,CAAC;aACvB,CAAC;YACF,MAAM,EAAE,OAAO,CAAC;SACjB,CAAC;QACF,eAAe,EAAE;YACf,KAAK,EAAE;gBACL,MAAM,EAAE;oBACN,IAAI,EAAE,MAAM,CAAC;oBACb,EAAE,EAAE,MAAM,CAAC;oBACX,OAAO,EAAE,MAAM,CAAC;oBAChB,YAAY,EAAE,MAAM,GAAG,MA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,EAAE,MAAM,GAAG,OAAO,CAAC;aACtB,CAAC;YACF,MAAM,EAAE,OAAO,CAAC;SACjB,CAAC;QACF,aAAa,EAAE;YACb,KAAK,EAAE;gBACL,MAAM,EAAE,KAAK,GAAG,MAAM,GAAG,KAAK,GAAG,OAAO,GAAG,QAAQ,GAAG,MAAM,CAAC;gBAC7D;;mBAEG;gBACH,IAAI,EAAE,MAAM,CAAC;gBACb;;mBAEG;gBACH,KAAK,CAAC,EAAE;oBACN,CAAC,CAAC,EAAE,MAAM,GAAG,CAAC,MAAM,GAAG,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC,MAAM,GAAG,MAAM,GAAG,OAAO,CAAC,EAAE,CAAC;iBAC1E,CAAC;gBACF,OAAO,CAAC,EAAE;oBACR,CAAC,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;iBACrB,CAAC;gBACF,QAAQ,EAAE,MAAM,GAAG,MAAM,GAAG,KAAK,GAAG,UAAU,CAAC;gBAC/C,IAAI,CAAC,EAAE,OAAO,CAAC;gBACf,YAAY,EAAE,MAAM,GAAG,MAAM,GAAG,QAAQ,CAAC;gBACzC;;mBAEG;gBACH,QAAQ,CAAC,EAAE,MAAM,CAAC;gBAClB;;mBAEG;gBACH,QAAQ,EAAE,OAAO,CAAC;gBAClB,cAAc,EAAE,MAAM,CAAC;aACxB,CAAC;YACF,MAAM,EAAE;gBACN,MAAM,EAAE,MAAM,CAAC;gBACf,OAAO,EAAE;oBACP,CAAC,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;iBACrB,CAAC;gBACF,IAAI,EAAE,OAAO,CAAC;aACf,CAAC;SACH,CAAC;KACH,CAAC;IACF,QAAQ,EAAE,EAAE,CAAC;CACd"}
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/piece-types.ts"],"names":[],"mappings":"AAAA,WAsMC","file":"piece-types.js"}
1
+ {"version":3,"sources":["../src/piece-types.ts"],"names":[],"mappings":"AAAA,WAwNC","file":"piece-types.js"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@frogbotai/piece-resend",
3
- "version": "0.31.0",
3
+ "version": "0.33.0",
4
4
  "description": "Resend tools for FrogBot.",
5
5
  "license": "MIT",
6
6
  "author": "Colby Gilbert",
@@ -27,11 +27,11 @@
27
27
  "zod": "^4.3.6"
28
28
  },
29
29
  "peerDependencies": {
30
- "frogbot": "0.31.0"
30
+ "frogbot": "0.33.0"
31
31
  },
32
32
  "devDependencies": {
33
33
  "typescript": "5.6.2",
34
- "frogbot": "0.31.0"
34
+ "frogbot": "0.33.0"
35
35
  },
36
36
  "publishConfig": {
37
37
  "access": "public"