@frogbotai/piece-resend 0.31.0 → 0.32.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/actions/cancelScheduledEmail.d.ts +2 -1
- package/dist/actions/cancelScheduledEmail.d.ts.map +1 -1
- package/dist/actions/createAudience.d.ts +2 -1
- package/dist/actions/createAudience.d.ts.map +1 -1
- package/dist/actions/createBroadcast.d.ts +2 -1
- package/dist/actions/createBroadcast.d.ts.map +1 -1
- package/dist/actions/createContact.d.ts +2 -1
- package/dist/actions/createContact.d.ts.map +1 -1
- package/dist/actions/createDomain.d.ts +2 -1
- package/dist/actions/createDomain.d.ts.map +1 -1
- package/dist/actions/customApiCall.d.ts +4 -22
- package/dist/actions/customApiCall.d.ts.map +1 -1
- package/dist/actions/customApiCall.js +5 -82
- package/dist/actions/customApiCall.js.map +1 -1
- package/dist/actions/deleteAudience.d.ts +2 -1
- package/dist/actions/deleteAudience.d.ts.map +1 -1
- package/dist/actions/deleteBroadcast.d.ts +2 -1
- package/dist/actions/deleteBroadcast.d.ts.map +1 -1
- package/dist/actions/deleteContact.d.ts +2 -1
- package/dist/actions/deleteContact.d.ts.map +1 -1
- package/dist/actions/deleteDomain.d.ts +2 -1
- package/dist/actions/deleteDomain.d.ts.map +1 -1
- package/dist/actions/getEmailStatus.d.ts +2 -1
- package/dist/actions/getEmailStatus.d.ts.map +1 -1
- package/dist/actions/listAudiences.d.ts +2 -1
- package/dist/actions/listAudiences.d.ts.map +1 -1
- package/dist/actions/listBroadcasts.d.ts +2 -1
- package/dist/actions/listBroadcasts.d.ts.map +1 -1
- package/dist/actions/listContacts.d.ts +2 -1
- package/dist/actions/listContacts.d.ts.map +1 -1
- package/dist/actions/listDomains.d.ts +2 -1
- package/dist/actions/listDomains.d.ts.map +1 -1
- package/dist/actions/listEmails.d.ts +2 -1
- package/dist/actions/listEmails.d.ts.map +1 -1
- package/dist/actions/rescheduleEmail.d.ts +2 -1
- package/dist/actions/rescheduleEmail.d.ts.map +1 -1
- package/dist/actions/send.d.ts +2 -1
- package/dist/actions/send.d.ts.map +1 -1
- package/dist/actions/sendBatchEmails.d.ts +2 -1
- package/dist/actions/sendBatchEmails.d.ts.map +1 -1
- package/dist/actions/sendBroadcast.d.ts +2 -1
- package/dist/actions/sendBroadcast.d.ts.map +1 -1
- package/dist/actions/updateContact.d.ts +2 -1
- package/dist/actions/updateContact.d.ts.map +1 -1
- package/dist/actions/verifyDomain.d.ts +2 -1
- package/dist/actions/verifyDomain.d.ts.map +1 -1
- package/dist/client.d.ts +2 -5
- package/dist/client.d.ts.map +1 -1
- package/dist/client.js +28 -7
- package/dist/client.js.map +1 -1
- package/dist/define.d.ts +16 -3
- package/dist/define.d.ts.map +1 -1
- package/dist/define.js +1 -1
- package/dist/define.js.map +1 -1
- package/dist/email.d.ts +2 -1
- package/dist/email.d.ts.map +1 -1
- package/dist/index.d.ts +55 -49
- package/dist/index.d.ts.map +1 -1
- package/dist/piece-types.d.ts +29 -11
- package/dist/piece-types.d.ts.map +1 -1
- package/dist/piece-types.js.map +1 -1
- 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
|
-
|
|
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
|
|
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
|
-
|
|
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
|
|
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"}
|
|
@@ -17,7 +17,8 @@ export declare const createBroadcast: import("frogbot/pieces").PieceActionDefini
|
|
|
17
17
|
name?: string | undefined;
|
|
18
18
|
} | undefined;
|
|
19
19
|
}, {
|
|
20
|
-
|
|
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
|
|
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
|
-
|
|
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
|
|
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
|
-
|
|
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
|
|
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
|
-
|
|
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
|
-
|
|
25
|
-
|
|
26
|
-
|
|
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":"
|
|
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 {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
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":["
|
|
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
|
-
|
|
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
|
|
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
|
-
|
|
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
|
|
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
|
-
|
|
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
|
|
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
|
-
|
|
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
|
|
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
|
-
|
|
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
|
|
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
|
-
|
|
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
|
|
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
|
-
|
|
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
|
|
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
|
-
|
|
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
|
|
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
|
-
|
|
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
|
|
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
|
-
|
|
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
|
|
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
|
-
|
|
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
|
|
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"}
|
package/dist/actions/send.d.ts
CHANGED
|
@@ -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
|
-
|
|
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
|
|
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"}
|
|
@@ -21,7 +21,8 @@ export declare const sendBatchEmails: import("frogbot/pieces").PieceActionDefini
|
|
|
21
21
|
name?: string | undefined;
|
|
22
22
|
} | undefined;
|
|
23
23
|
}, {
|
|
24
|
-
|
|
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
|
|
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
|
-
|
|
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
|
|
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
|
-
|
|
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
|
|
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
|
-
|
|
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
|
|
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
|
-
|
|
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
|
package/dist/client.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../src/client.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,oBAAoB,GAAG;IACjC,
|
|
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
|
-
|
|
3
|
-
|
|
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
|
|
31
|
+
...body === undefined ? {} : {
|
|
14
32
|
'Content-Type': 'application/json'
|
|
15
33
|
},
|
|
16
34
|
...headers
|
|
17
35
|
},
|
|
18
36
|
...body === undefined ? {} : {
|
|
19
|
-
body:
|
|
37
|
+
body: JSON.stringify(body)
|
|
20
38
|
}
|
|
21
39
|
});
|
|
22
|
-
|
|
23
|
-
|
|
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
|
}
|
package/dist/client.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/client.ts"],"names":["
|
|
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,EAAE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,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
|
-
|
|
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
|
-
|
|
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
|
package/dist/define.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"define.d.ts","sourceRoot":"","sources":["../src/define.ts"],"names":[],"mappings":"AAKA,eAAO,MAAQ,YAAY
|
|
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
package/dist/define.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/define.ts"],"names":["createPieceHelpers","defineAction"],"mappings":"AAAA,SAASA,kBAAkB,QAAQ,iBAAiB;AAKpD,OAAO,MAAM,EAAEC,YAAY,EAAE,
|
|
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
|
-
|
|
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?: {
|
package/dist/email.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"email.d.ts","sourceRoot":"","sources":["../src/email.ts"],"names":[],"mappings":"AAmCA,eAAO,MAAM,WAAW
|
|
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,9 +27,18 @@ export declare const createResend: import("frogbot/pieces").PieceFactory<{
|
|
|
27
27
|
};
|
|
28
28
|
};
|
|
29
29
|
}) => {
|
|
30
|
-
|
|
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
|
-
actions: (
|
|
33
|
+
actions: (import("frogbot/pieces").CustomApiCallAction<{
|
|
34
|
+
from?: {
|
|
35
|
+
address: string;
|
|
36
|
+
name?: string | undefined;
|
|
37
|
+
} | undefined;
|
|
38
|
+
}, {
|
|
39
|
+
authorize(url: URL, headers: Headers): void;
|
|
40
|
+
request({ body, headers, method, path, query, redirect, response: includeResponse, }: import("./client.js").ResendRequestOptions): Promise<unknown>;
|
|
41
|
+
}> | (import("frogbot/pieces").PieceActionDefinition<import("zod").ZodObject<{
|
|
33
42
|
email_id: import("zod").ZodString;
|
|
34
43
|
}, import("zod/v4/core").$loose>, undefined, {
|
|
35
44
|
from?: {
|
|
@@ -37,7 +46,8 @@ export declare const createResend: import("frogbot/pieces").PieceFactory<{
|
|
|
37
46
|
name?: string | undefined;
|
|
38
47
|
} | undefined;
|
|
39
48
|
}, {
|
|
40
|
-
|
|
49
|
+
authorize(url: URL, headers: Headers): void;
|
|
50
|
+
request({ body, headers, method, path, query, redirect, response: includeResponse, }: import("./client.js").ResendRequestOptions): Promise<unknown>;
|
|
41
51
|
}, unknown> & {
|
|
42
52
|
slug: "cancelScheduledEmail";
|
|
43
53
|
}) | (import("frogbot/pieces").PieceActionDefinition<import("zod").ZodObject<{
|
|
@@ -48,7 +58,8 @@ export declare const createResend: import("frogbot/pieces").PieceFactory<{
|
|
|
48
58
|
name?: string | undefined;
|
|
49
59
|
} | undefined;
|
|
50
60
|
}, {
|
|
51
|
-
|
|
61
|
+
authorize(url: URL, headers: Headers): void;
|
|
62
|
+
request({ body, headers, method, path, query, redirect, response: includeResponse, }: import("./client.js").ResendRequestOptions): Promise<unknown>;
|
|
52
63
|
}, unknown> & {
|
|
53
64
|
slug: "createAudience";
|
|
54
65
|
}) | (import("frogbot/pieces").PieceActionDefinition<import("zod").ZodObject<{
|
|
@@ -69,7 +80,8 @@ export declare const createResend: import("frogbot/pieces").PieceFactory<{
|
|
|
69
80
|
name?: string | undefined;
|
|
70
81
|
} | undefined;
|
|
71
82
|
}, {
|
|
72
|
-
|
|
83
|
+
authorize(url: URL, headers: Headers): void;
|
|
84
|
+
request({ body, headers, method, path, query, redirect, response: includeResponse, }: import("./client.js").ResendRequestOptions): Promise<unknown>;
|
|
73
85
|
}, unknown> & {
|
|
74
86
|
slug: "createBroadcast";
|
|
75
87
|
}) | (import("frogbot/pieces").PieceActionDefinition<import("zod").ZodObject<{
|
|
@@ -84,7 +96,8 @@ export declare const createResend: import("frogbot/pieces").PieceFactory<{
|
|
|
84
96
|
name?: string | undefined;
|
|
85
97
|
} | undefined;
|
|
86
98
|
}, {
|
|
87
|
-
|
|
99
|
+
authorize(url: URL, headers: Headers): void;
|
|
100
|
+
request({ body, headers, method, path, query, redirect, response: includeResponse, }: import("./client.js").ResendRequestOptions): Promise<unknown>;
|
|
88
101
|
}, unknown> & {
|
|
89
102
|
slug: "createContact";
|
|
90
103
|
}) | (import("frogbot/pieces").PieceActionDefinition<import("zod").ZodObject<{
|
|
@@ -101,7 +114,8 @@ export declare const createResend: import("frogbot/pieces").PieceFactory<{
|
|
|
101
114
|
name?: string | undefined;
|
|
102
115
|
} | undefined;
|
|
103
116
|
}, {
|
|
104
|
-
|
|
117
|
+
authorize(url: URL, headers: Headers): void;
|
|
118
|
+
request({ body, headers, method, path, query, redirect, response: includeResponse, }: import("./client.js").ResendRequestOptions): Promise<unknown>;
|
|
105
119
|
}, {
|
|
106
120
|
id: unknown;
|
|
107
121
|
name: unknown;
|
|
@@ -113,31 +127,6 @@ export declare const createResend: import("frogbot/pieces").PieceFactory<{
|
|
|
113
127
|
dns_records: unknown;
|
|
114
128
|
}> & {
|
|
115
129
|
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, {
|
|
133
|
-
from?: {
|
|
134
|
-
address: string;
|
|
135
|
-
name?: string | undefined;
|
|
136
|
-
} | undefined;
|
|
137
|
-
}, {
|
|
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
130
|
}) | (import("frogbot/pieces").PieceActionDefinition<import("zod").ZodObject<{
|
|
142
131
|
audience_id: import("zod").ZodString;
|
|
143
132
|
}, import("zod/v4/core").$loose>, undefined, {
|
|
@@ -146,7 +135,8 @@ export declare const createResend: import("frogbot/pieces").PieceFactory<{
|
|
|
146
135
|
name?: string | undefined;
|
|
147
136
|
} | undefined;
|
|
148
137
|
}, {
|
|
149
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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<{
|
|
@@ -304,7 +304,8 @@ export declare const createResend: import("frogbot/pieces").PieceFactory<{
|
|
|
304
304
|
name?: string | undefined;
|
|
305
305
|
} | undefined;
|
|
306
306
|
}, {
|
|
307
|
-
|
|
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<{
|
|
@@ -328,7 +329,8 @@ export declare const createResend: import("frogbot/pieces").PieceFactory<{
|
|
|
328
329
|
name?: string | undefined;
|
|
329
330
|
} | undefined;
|
|
330
331
|
}, {
|
|
331
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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?: {
|
package/dist/index.d.ts.map
CHANGED
|
@@ -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
|
|
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"}
|
package/dist/piece-types.d.ts
CHANGED
|
@@ -177,22 +177,40 @@ export interface ResendTypes {
|
|
|
177
177
|
};
|
|
178
178
|
customApiCall: {
|
|
179
179
|
input: {
|
|
180
|
-
method:
|
|
181
|
-
|
|
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
|
-
|
|
186
|
-
[k: string]: unknown;
|
|
187
|
-
};
|
|
188
|
-
body_type?: 'none' | 'json' | 'form_data' | 'raw';
|
|
194
|
+
bodyType: 'json' | 'form' | 'raw' | 'formData';
|
|
189
195
|
body?: unknown;
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
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,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
|
+
{"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.
|
|
3
|
+
"version": "0.32.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.
|
|
30
|
+
"frogbot": "0.32.0"
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|
|
33
33
|
"typescript": "5.6.2",
|
|
34
|
-
"frogbot": "0.
|
|
34
|
+
"frogbot": "0.32.0"
|
|
35
35
|
},
|
|
36
36
|
"publishConfig": {
|
|
37
37
|
"access": "public"
|