@frogbotai/piece-resend 0.22.0 → 0.24.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 +21 -0
- package/dist/actions/cancelScheduledEmail.d.ts.map +1 -0
- package/dist/actions/cancelScheduledEmail.js +12 -0
- package/dist/actions/cancelScheduledEmail.js.map +1 -0
- package/dist/actions/createAudience.d.ts +20 -0
- package/dist/actions/createAudience.d.ts.map +1 -0
- package/dist/actions/createAudience.js +12 -0
- package/dist/actions/createAudience.js.map +1 -0
- package/dist/actions/createBroadcast.d.ts +37 -0
- package/dist/actions/createBroadcast.d.ts.map +1 -0
- package/dist/actions/createBroadcast.js +35 -0
- package/dist/actions/createBroadcast.js.map +1 -0
- package/dist/actions/createContact.d.ts +28 -0
- package/dist/actions/createContact.d.ts.map +1 -0
- package/dist/actions/createContact.js +26 -0
- package/dist/actions/createContact.js.map +1 -0
- package/dist/actions/createDomain.d.ts +36 -0
- package/dist/actions/createDomain.d.ts.map +1 -0
- package/dist/actions/createDomain.js +30 -0
- package/dist/actions/createDomain.js.map +1 -0
- package/dist/actions/customApiCall.d.ts +46 -0
- package/dist/actions/customApiCall.d.ts.map +1 -0
- package/dist/actions/customApiCall.js +83 -0
- package/dist/actions/customApiCall.js.map +1 -0
- package/dist/actions/deleteAudience.d.ts +21 -0
- package/dist/actions/deleteAudience.d.ts.map +1 -0
- package/dist/actions/deleteAudience.js +12 -0
- package/dist/actions/deleteAudience.js.map +1 -0
- package/dist/actions/deleteBroadcast.d.ts +21 -0
- package/dist/actions/deleteBroadcast.d.ts.map +1 -0
- package/dist/actions/deleteBroadcast.js +12 -0
- package/dist/actions/deleteBroadcast.js.map +1 -0
- package/dist/actions/deleteContact.d.ts +23 -0
- package/dist/actions/deleteContact.d.ts.map +1 -0
- package/dist/actions/deleteContact.js +15 -0
- package/dist/actions/deleteContact.js.map +1 -0
- package/dist/actions/deleteDomain.d.ts +21 -0
- package/dist/actions/deleteDomain.d.ts.map +1 -0
- package/dist/actions/deleteDomain.js +12 -0
- package/dist/actions/deleteDomain.js.map +1 -0
- package/dist/actions/getEmailStatus.d.ts +21 -0
- package/dist/actions/getEmailStatus.d.ts.map +1 -0
- package/dist/actions/getEmailStatus.js +12 -0
- package/dist/actions/getEmailStatus.js.map +1 -0
- package/dist/actions/listAudiences.d.ts +17 -0
- package/dist/actions/listAudiences.d.ts.map +1 -0
- package/dist/actions/listAudiences.js +12 -0
- package/dist/actions/listAudiences.js.map +1 -0
- package/dist/actions/listBroadcasts.d.ts +28 -0
- package/dist/actions/listBroadcasts.d.ts.map +1 -0
- package/dist/actions/listBroadcasts.js +27 -0
- package/dist/actions/listBroadcasts.js.map +1 -0
- package/dist/actions/listContacts.d.ts +22 -0
- package/dist/actions/listContacts.d.ts.map +1 -0
- package/dist/actions/listContacts.js +13 -0
- package/dist/actions/listContacts.js.map +1 -0
- package/dist/actions/listDomains.d.ts +24 -0
- package/dist/actions/listDomains.d.ts.map +1 -0
- package/dist/actions/listDomains.js +21 -0
- package/dist/actions/listDomains.js.map +1 -0
- package/dist/actions/listEmails.d.ts +27 -0
- package/dist/actions/listEmails.d.ts.map +1 -0
- package/dist/actions/listEmails.js +24 -0
- package/dist/actions/listEmails.js.map +1 -0
- package/dist/actions/rescheduleEmail.d.ts +23 -0
- package/dist/actions/rescheduleEmail.d.ts.map +1 -0
- package/dist/actions/rescheduleEmail.js +13 -0
- package/dist/actions/rescheduleEmail.js.map +1 -0
- package/dist/actions/send.d.ts +41 -0
- package/dist/actions/send.d.ts.map +1 -0
- package/dist/actions/send.js +24 -0
- package/dist/actions/send.js.map +1 -0
- package/dist/actions/sendBatchEmails.d.ts +44 -0
- package/dist/actions/sendBatchEmails.d.ts.map +1 -0
- package/dist/actions/sendBatchEmails.js +31 -0
- package/dist/actions/sendBatchEmails.js.map +1 -0
- package/dist/actions/sendBroadcast.d.ts +23 -0
- package/dist/actions/sendBroadcast.d.ts.map +1 -0
- package/dist/actions/sendBroadcast.js +17 -0
- package/dist/actions/sendBroadcast.js.map +1 -0
- package/dist/actions/types.d.ts +5 -0
- package/dist/actions/types.d.ts.map +1 -0
- package/dist/actions/types.js +2 -0
- package/dist/actions/types.js.map +1 -0
- package/dist/actions/updateContact.d.ts +28 -0
- package/dist/actions/updateContact.d.ts.map +1 -0
- package/dist/actions/updateContact.js +29 -0
- package/dist/actions/updateContact.js.map +1 -0
- package/dist/actions/verifyDomain.d.ts +21 -0
- package/dist/actions/verifyDomain.d.ts.map +1 -0
- package/dist/actions/verifyDomain.js +12 -0
- package/dist/actions/verifyDomain.js.map +1 -0
- package/dist/client.d.ts +20 -0
- package/dist/client.d.ts.map +1 -0
- package/dist/client.js +37 -0
- package/dist/client.js.map +1 -0
- package/dist/config.d.ts +11 -0
- package/dist/config.d.ts.map +1 -0
- package/dist/config.js +6 -0
- package/dist/config.js.map +1 -0
- package/dist/email.d.ts +24 -0
- package/dist/email.d.ts.map +1 -0
- package/dist/email.js +38 -0
- package/dist/email.js.map +1 -0
- package/dist/format.d.ts +7 -0
- package/dist/format.d.ts.map +1 -0
- package/dist/format.js +27 -0
- package/dist/format.js.map +1 -0
- package/dist/index.d.ts +579 -48
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +83 -59
- package/dist/index.js.map +1 -1
- package/dist/index.test-d.d.ts +2 -0
- package/dist/index.test-d.d.ts.map +1 -0
- package/dist/index.test-d.js +54 -0
- package/dist/index.test-d.js.map +1 -0
- package/dist/piece-types.d.ts +200 -0
- package/dist/piece-types.d.ts.map +1 -0
- package/dist/piece-types.js +2 -0
- package/dist/piece-types.js.map +1 -0
- package/package.json +7 -5
package/dist/index.d.ts
CHANGED
|
@@ -1,50 +1,581 @@
|
|
|
1
|
-
|
|
2
|
-
export declare const resendActions: readonly ["send_email"];
|
|
1
|
+
export declare const resendActions: readonly ["send", "sendBatchEmails", "getEmailStatus", "listEmails", "cancelScheduledEmail", "rescheduleEmail", "createContact", "updateContact", "deleteContact", "listContacts", "listDomains", "createDomain", "deleteDomain", "verifyDomain", "listAudiences", "createAudience", "deleteAudience", "listBroadcasts", "createBroadcast", "sendBroadcast", "deleteBroadcast", "customApiCall"];
|
|
3
2
|
export declare const resendScopes: readonly [];
|
|
4
|
-
export declare
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
}
|
|
3
|
+
export declare const createResend: import("frogbot").PieceFactory<{
|
|
4
|
+
slug: string;
|
|
5
|
+
label: string;
|
|
6
|
+
admin: {
|
|
7
|
+
description: string;
|
|
8
|
+
group: string;
|
|
9
|
+
};
|
|
10
|
+
auth: import("zod").ZodObject<{
|
|
11
|
+
apiKey: import("zod").ZodString;
|
|
12
|
+
}, import("zod/v4/core").$strip>;
|
|
13
|
+
options: import("zod").ZodObject<{
|
|
14
|
+
from: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
15
|
+
address: import("zod").ZodString;
|
|
16
|
+
name: import("zod").ZodOptional<import("zod").ZodString>;
|
|
17
|
+
}, import("zod/v4/core").$strip>>;
|
|
18
|
+
}, import("zod/v4/core").$strip>;
|
|
19
|
+
client: ({ auth }: {
|
|
20
|
+
auth: {
|
|
21
|
+
apiKey: string;
|
|
22
|
+
};
|
|
23
|
+
options: {
|
|
24
|
+
from?: {
|
|
25
|
+
address: string;
|
|
26
|
+
name?: string;
|
|
27
|
+
};
|
|
28
|
+
};
|
|
29
|
+
}) => {
|
|
30
|
+
request({ allowFailure, binary, body, headers, method, path, query, rawBody, redirect, response: includeResponse, signal, }: import("./client.js").ResendRequestOptions): Promise<unknown>;
|
|
31
|
+
};
|
|
32
|
+
actions: ({
|
|
33
|
+
slug: "cancelScheduledEmail";
|
|
34
|
+
description: string;
|
|
35
|
+
idempotent: false;
|
|
36
|
+
input: import("zod").ZodObject<{
|
|
37
|
+
email_id: import("zod").ZodString;
|
|
38
|
+
}, import("zod/v4/core").$loose>;
|
|
39
|
+
run({ input, client }: import("frogbot").PieceRunArgs<{
|
|
40
|
+
[k: string]: unknown;
|
|
41
|
+
email_id: string;
|
|
42
|
+
}, {
|
|
43
|
+
from?: {
|
|
44
|
+
address: string;
|
|
45
|
+
name?: string;
|
|
46
|
+
};
|
|
47
|
+
}, {
|
|
48
|
+
request({ allowFailure, binary, body, headers, method, path, query, rawBody, redirect, response: includeResponse, signal, }: import("./client.js").ResendRequestOptions): Promise<unknown>;
|
|
49
|
+
}>): Promise<unknown>;
|
|
50
|
+
} | {
|
|
51
|
+
slug: "createAudience";
|
|
52
|
+
description: string;
|
|
53
|
+
idempotent: false;
|
|
54
|
+
input: import("zod").ZodObject<{
|
|
55
|
+
name: import("zod").ZodString;
|
|
56
|
+
}, import("zod/v4/core").$strip>;
|
|
57
|
+
run({ input, client }: import("frogbot").PieceRunArgs<{
|
|
58
|
+
name: string;
|
|
59
|
+
}, {
|
|
60
|
+
from?: {
|
|
61
|
+
address: string;
|
|
62
|
+
name?: string;
|
|
63
|
+
};
|
|
64
|
+
}, {
|
|
65
|
+
request({ allowFailure, binary, body, headers, method, path, query, rawBody, redirect, response: includeResponse, signal, }: import("./client.js").ResendRequestOptions): Promise<unknown>;
|
|
66
|
+
}>): Promise<unknown>;
|
|
67
|
+
} | {
|
|
68
|
+
slug: "createBroadcast";
|
|
69
|
+
description: string;
|
|
70
|
+
idempotent: false;
|
|
71
|
+
input: import("zod").ZodObject<{
|
|
72
|
+
audience_id: import("zod").ZodString;
|
|
73
|
+
from: import("zod").ZodString;
|
|
74
|
+
subject: import("zod").ZodString;
|
|
75
|
+
name: import("zod").ZodOptional<import("zod").ZodString>;
|
|
76
|
+
reply_to: import("zod").ZodOptional<import("zod").ZodString>;
|
|
77
|
+
preview_text: import("zod").ZodOptional<import("zod").ZodString>;
|
|
78
|
+
content_type: import("zod").ZodEnum<{
|
|
79
|
+
text: "text";
|
|
80
|
+
html: "html";
|
|
81
|
+
}>;
|
|
82
|
+
content: import("zod").ZodString;
|
|
83
|
+
}, import("zod/v4/core").$strip>;
|
|
84
|
+
run({ input, client }: import("frogbot").PieceRunArgs<{
|
|
85
|
+
audience_id: string;
|
|
86
|
+
from: string;
|
|
87
|
+
subject: string;
|
|
88
|
+
name?: string;
|
|
89
|
+
reply_to?: string;
|
|
90
|
+
preview_text?: string;
|
|
91
|
+
content_type: "html" | "text";
|
|
92
|
+
content: string;
|
|
93
|
+
}, {
|
|
94
|
+
from?: {
|
|
95
|
+
address: string;
|
|
96
|
+
name?: string;
|
|
97
|
+
};
|
|
98
|
+
}, {
|
|
99
|
+
request({ allowFailure, binary, body, headers, method, path, query, rawBody, redirect, response: includeResponse, signal, }: import("./client.js").ResendRequestOptions): Promise<unknown>;
|
|
100
|
+
}>): Promise<unknown>;
|
|
101
|
+
} | {
|
|
102
|
+
slug: "createContact";
|
|
103
|
+
description: string;
|
|
104
|
+
idempotent: false;
|
|
105
|
+
input: import("zod").ZodObject<{
|
|
106
|
+
audience_id: import("zod").ZodString;
|
|
107
|
+
email: import("zod").ZodString;
|
|
108
|
+
first_name: import("zod").ZodOptional<import("zod").ZodString>;
|
|
109
|
+
last_name: import("zod").ZodOptional<import("zod").ZodString>;
|
|
110
|
+
unsubscribed: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
111
|
+
}, import("zod/v4/core").$strip>;
|
|
112
|
+
run({ input, client }: import("frogbot").PieceRunArgs<{
|
|
113
|
+
audience_id: string;
|
|
114
|
+
email: string;
|
|
115
|
+
first_name?: string;
|
|
116
|
+
last_name?: string;
|
|
117
|
+
unsubscribed?: boolean;
|
|
118
|
+
}, {
|
|
119
|
+
from?: {
|
|
120
|
+
address: string;
|
|
121
|
+
name?: string;
|
|
122
|
+
};
|
|
123
|
+
}, {
|
|
124
|
+
request({ allowFailure, binary, body, headers, method, path, query, rawBody, redirect, response: includeResponse, signal, }: import("./client.js").ResendRequestOptions): Promise<unknown>;
|
|
125
|
+
}>): Promise<unknown>;
|
|
126
|
+
} | {
|
|
127
|
+
slug: "createDomain";
|
|
128
|
+
description: string;
|
|
129
|
+
idempotent: false;
|
|
130
|
+
input: import("zod").ZodObject<{
|
|
131
|
+
name: import("zod").ZodString;
|
|
132
|
+
region: import("zod").ZodOptional<import("zod").ZodEnum<{
|
|
133
|
+
"us-east-1": "us-east-1";
|
|
134
|
+
"eu-west-1": "eu-west-1";
|
|
135
|
+
"ap-northeast-1": "ap-northeast-1";
|
|
136
|
+
"sa-east-1": "sa-east-1";
|
|
137
|
+
}>>;
|
|
138
|
+
}, import("zod/v4/core").$strip>;
|
|
139
|
+
run({ input, client }: import("frogbot").PieceRunArgs<{
|
|
140
|
+
name: string;
|
|
141
|
+
region?: "us-east-1" | "eu-west-1" | "ap-northeast-1" | "sa-east-1";
|
|
142
|
+
}, {
|
|
143
|
+
from?: {
|
|
144
|
+
address: string;
|
|
145
|
+
name?: string;
|
|
146
|
+
};
|
|
147
|
+
}, {
|
|
148
|
+
request({ allowFailure, binary, body, headers, method, path, query, rawBody, redirect, response: includeResponse, signal, }: import("./client.js").ResendRequestOptions): Promise<unknown>;
|
|
149
|
+
}>): Promise<{
|
|
150
|
+
id: unknown;
|
|
151
|
+
name: unknown;
|
|
152
|
+
status: unknown;
|
|
153
|
+
region: unknown;
|
|
154
|
+
created_at: unknown;
|
|
155
|
+
sending: {};
|
|
156
|
+
receiving: {};
|
|
157
|
+
dns_records: unknown;
|
|
158
|
+
}>;
|
|
159
|
+
} | {
|
|
160
|
+
slug: "customApiCall";
|
|
161
|
+
description: string;
|
|
162
|
+
input: import("zod").ZodObject<{
|
|
163
|
+
method: import("zod").ZodString;
|
|
164
|
+
url: import("zod").ZodString;
|
|
165
|
+
headers: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>>;
|
|
166
|
+
queryParams: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>;
|
|
167
|
+
body_type: import("zod").ZodOptional<import("zod").ZodEnum<{
|
|
168
|
+
none: "none";
|
|
169
|
+
json: "json";
|
|
170
|
+
form_data: "form_data";
|
|
171
|
+
raw: "raw";
|
|
172
|
+
}>>;
|
|
173
|
+
body: import("zod").ZodOptional<import("zod").ZodUnknown>;
|
|
174
|
+
response_is_binary: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
175
|
+
failsafe: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
176
|
+
timeout: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
177
|
+
followRedirects: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
178
|
+
}, import("zod/v4/core").$strip>;
|
|
179
|
+
run({ input, client, req }: import("frogbot").PieceRunArgs<{
|
|
180
|
+
method: string;
|
|
181
|
+
url: string;
|
|
182
|
+
headers?: {
|
|
183
|
+
[k: string]: string;
|
|
184
|
+
};
|
|
185
|
+
queryParams?: {
|
|
186
|
+
[k: string]: unknown;
|
|
187
|
+
};
|
|
188
|
+
body_type?: "none" | "json" | "form_data" | "raw";
|
|
189
|
+
body?: unknown;
|
|
190
|
+
response_is_binary?: boolean;
|
|
191
|
+
failsafe?: boolean;
|
|
192
|
+
timeout?: number;
|
|
193
|
+
followRedirects?: boolean;
|
|
194
|
+
}, {
|
|
195
|
+
from?: {
|
|
196
|
+
address: string;
|
|
197
|
+
name?: string;
|
|
198
|
+
};
|
|
199
|
+
}, {
|
|
200
|
+
request({ allowFailure, binary, body, headers, method, path, query, rawBody, redirect, response: includeResponse, signal, }: import("./client.js").ResendRequestOptions): Promise<unknown>;
|
|
201
|
+
}>): Promise<unknown>;
|
|
202
|
+
} | {
|
|
203
|
+
slug: "deleteAudience";
|
|
204
|
+
description: string;
|
|
205
|
+
idempotent: false;
|
|
206
|
+
input: import("zod").ZodObject<{
|
|
207
|
+
audience_id: import("zod").ZodString;
|
|
208
|
+
}, import("zod/v4/core").$loose>;
|
|
209
|
+
run({ input, client }: import("frogbot").PieceRunArgs<{
|
|
210
|
+
[k: string]: unknown;
|
|
211
|
+
audience_id: string;
|
|
212
|
+
}, {
|
|
213
|
+
from?: {
|
|
214
|
+
address: string;
|
|
215
|
+
name?: string;
|
|
216
|
+
};
|
|
217
|
+
}, {
|
|
218
|
+
request({ allowFailure, binary, body, headers, method, path, query, rawBody, redirect, response: includeResponse, signal, }: import("./client.js").ResendRequestOptions): Promise<unknown>;
|
|
219
|
+
}>): Promise<unknown>;
|
|
220
|
+
} | {
|
|
221
|
+
slug: "deleteBroadcast";
|
|
222
|
+
description: string;
|
|
223
|
+
idempotent: false;
|
|
224
|
+
input: import("zod").ZodObject<{
|
|
225
|
+
broadcast_id: import("zod").ZodString;
|
|
226
|
+
}, import("zod/v4/core").$loose>;
|
|
227
|
+
run({ input, client }: import("frogbot").PieceRunArgs<{
|
|
228
|
+
[k: string]: unknown;
|
|
229
|
+
broadcast_id: string;
|
|
230
|
+
}, {
|
|
231
|
+
from?: {
|
|
232
|
+
address: string;
|
|
233
|
+
name?: string;
|
|
234
|
+
};
|
|
235
|
+
}, {
|
|
236
|
+
request({ allowFailure, binary, body, headers, method, path, query, rawBody, redirect, response: includeResponse, signal, }: import("./client.js").ResendRequestOptions): Promise<unknown>;
|
|
237
|
+
}>): Promise<unknown>;
|
|
238
|
+
} | {
|
|
239
|
+
slug: "deleteContact";
|
|
240
|
+
description: string;
|
|
241
|
+
idempotent: false;
|
|
242
|
+
input: import("zod").ZodObject<{
|
|
243
|
+
audience_id: import("zod").ZodString;
|
|
244
|
+
contact_id: import("zod").ZodString;
|
|
245
|
+
}, import("zod/v4/core").$loose>;
|
|
246
|
+
run({ input, client }: import("frogbot").PieceRunArgs<{
|
|
247
|
+
[k: string]: unknown;
|
|
248
|
+
audience_id: string;
|
|
249
|
+
contact_id: string;
|
|
250
|
+
}, {
|
|
251
|
+
from?: {
|
|
252
|
+
address: string;
|
|
253
|
+
name?: string;
|
|
254
|
+
};
|
|
255
|
+
}, {
|
|
256
|
+
request({ allowFailure, binary, body, headers, method, path, query, rawBody, redirect, response: includeResponse, signal, }: import("./client.js").ResendRequestOptions): Promise<unknown>;
|
|
257
|
+
}>): Promise<unknown>;
|
|
258
|
+
} | {
|
|
259
|
+
slug: "deleteDomain";
|
|
260
|
+
description: string;
|
|
261
|
+
idempotent: false;
|
|
262
|
+
input: import("zod").ZodObject<{
|
|
263
|
+
domain_id: import("zod").ZodString;
|
|
264
|
+
}, import("zod/v4/core").$loose>;
|
|
265
|
+
run({ input, client }: import("frogbot").PieceRunArgs<{
|
|
266
|
+
[k: string]: unknown;
|
|
267
|
+
domain_id: string;
|
|
268
|
+
}, {
|
|
269
|
+
from?: {
|
|
270
|
+
address: string;
|
|
271
|
+
name?: string;
|
|
272
|
+
};
|
|
273
|
+
}, {
|
|
274
|
+
request({ allowFailure, binary, body, headers, method, path, query, rawBody, redirect, response: includeResponse, signal, }: import("./client.js").ResendRequestOptions): Promise<unknown>;
|
|
275
|
+
}>): Promise<unknown>;
|
|
276
|
+
} | {
|
|
277
|
+
slug: "getEmailStatus";
|
|
278
|
+
description: string;
|
|
279
|
+
idempotent: true;
|
|
280
|
+
input: import("zod").ZodObject<{
|
|
281
|
+
email_id: import("zod").ZodString;
|
|
282
|
+
}, import("zod/v4/core").$loose>;
|
|
283
|
+
run({ input, client }: import("frogbot").PieceRunArgs<{
|
|
284
|
+
[k: string]: unknown;
|
|
285
|
+
email_id: string;
|
|
286
|
+
}, {
|
|
287
|
+
from?: {
|
|
288
|
+
address: string;
|
|
289
|
+
name?: string;
|
|
290
|
+
};
|
|
291
|
+
}, {
|
|
292
|
+
request({ allowFailure, binary, body, headers, method, path, query, rawBody, redirect, response: includeResponse, signal, }: import("./client.js").ResendRequestOptions): Promise<unknown>;
|
|
293
|
+
}>): Promise<unknown>;
|
|
294
|
+
} | {
|
|
295
|
+
slug: "listAudiences";
|
|
296
|
+
description: string;
|
|
297
|
+
idempotent: true;
|
|
298
|
+
input: import("zod").ZodObject<{}, import("zod/v4/core").$strip>;
|
|
299
|
+
run({ client }: import("frogbot").PieceRunArgs<{}, {
|
|
300
|
+
from?: {
|
|
301
|
+
address: string;
|
|
302
|
+
name?: string;
|
|
303
|
+
};
|
|
304
|
+
}, {
|
|
305
|
+
request({ allowFailure, binary, body, headers, method, path, query, rawBody, redirect, response: includeResponse, signal, }: import("./client.js").ResendRequestOptions): Promise<unknown>;
|
|
306
|
+
}>): Promise<import("frogbot").PieceJSON[]>;
|
|
307
|
+
} | {
|
|
308
|
+
slug: "listBroadcasts";
|
|
309
|
+
description: string;
|
|
310
|
+
idempotent: true;
|
|
311
|
+
input: import("zod").ZodObject<{}, import("zod/v4/core").$strip>;
|
|
312
|
+
run({ client }: import("frogbot").PieceRunArgs<{}, {
|
|
313
|
+
from?: {
|
|
314
|
+
address: string;
|
|
315
|
+
name?: string;
|
|
316
|
+
};
|
|
317
|
+
}, {
|
|
318
|
+
request({ allowFailure, binary, body, headers, method, path, query, rawBody, redirect, response: includeResponse, signal, }: import("./client.js").ResendRequestOptions): Promise<unknown>;
|
|
319
|
+
}>): Promise<{
|
|
320
|
+
id: unknown;
|
|
321
|
+
name: {};
|
|
322
|
+
audience_id: unknown;
|
|
323
|
+
from: unknown;
|
|
324
|
+
subject: unknown;
|
|
325
|
+
reply_to: {};
|
|
326
|
+
preview_text: {};
|
|
327
|
+
status: unknown;
|
|
328
|
+
created_at: unknown;
|
|
329
|
+
scheduled_at: {};
|
|
330
|
+
sent_at: {};
|
|
331
|
+
}[]>;
|
|
332
|
+
} | {
|
|
333
|
+
slug: "listContacts";
|
|
334
|
+
description: string;
|
|
335
|
+
idempotent: true;
|
|
336
|
+
input: import("zod").ZodObject<{
|
|
337
|
+
audience_id: import("zod").ZodString;
|
|
338
|
+
}, import("zod/v4/core").$loose>;
|
|
339
|
+
run({ input, client }: import("frogbot").PieceRunArgs<{
|
|
340
|
+
[k: string]: unknown;
|
|
341
|
+
audience_id: string;
|
|
342
|
+
}, {
|
|
343
|
+
from?: {
|
|
344
|
+
address: string;
|
|
345
|
+
name?: string;
|
|
346
|
+
};
|
|
347
|
+
}, {
|
|
348
|
+
request({ allowFailure, binary, body, headers, method, path, query, rawBody, redirect, response: includeResponse, signal, }: import("./client.js").ResendRequestOptions): Promise<unknown>;
|
|
349
|
+
}>): Promise<import("frogbot").PieceJSON[]>;
|
|
350
|
+
} | {
|
|
351
|
+
slug: "listDomains";
|
|
352
|
+
description: string;
|
|
353
|
+
idempotent: true;
|
|
354
|
+
input: import("zod").ZodObject<{}, import("zod/v4/core").$strip>;
|
|
355
|
+
run({ client }: import("frogbot").PieceRunArgs<{}, {
|
|
356
|
+
from?: {
|
|
357
|
+
address: string;
|
|
358
|
+
name?: string;
|
|
359
|
+
};
|
|
360
|
+
}, {
|
|
361
|
+
request({ allowFailure, binary, body, headers, method, path, query, rawBody, redirect, response: includeResponse, signal, }: import("./client.js").ResendRequestOptions): Promise<unknown>;
|
|
362
|
+
}>): Promise<{
|
|
363
|
+
id: unknown;
|
|
364
|
+
name: unknown;
|
|
365
|
+
status: unknown;
|
|
366
|
+
region: unknown;
|
|
367
|
+
created_at: unknown;
|
|
368
|
+
sending: {};
|
|
369
|
+
receiving: {};
|
|
370
|
+
}[]>;
|
|
371
|
+
} | {
|
|
372
|
+
slug: "listEmails";
|
|
373
|
+
description: string;
|
|
374
|
+
idempotent: true;
|
|
375
|
+
input: import("zod").ZodObject<{}, import("zod/v4/core").$strip>;
|
|
376
|
+
run({ client }: import("frogbot").PieceRunArgs<{}, {
|
|
377
|
+
from?: {
|
|
378
|
+
address: string;
|
|
379
|
+
name?: string;
|
|
380
|
+
};
|
|
381
|
+
}, {
|
|
382
|
+
request({ allowFailure, binary, body, headers, method, path, query, rawBody, redirect, response: includeResponse, signal, }: import("./client.js").ResendRequestOptions): Promise<unknown>;
|
|
383
|
+
}>): Promise<{
|
|
384
|
+
id: unknown;
|
|
385
|
+
from: unknown;
|
|
386
|
+
to: string;
|
|
387
|
+
subject: unknown;
|
|
388
|
+
last_event: unknown;
|
|
389
|
+
created_at: unknown;
|
|
390
|
+
scheduled_at: {};
|
|
391
|
+
cc: string;
|
|
392
|
+
bcc: string;
|
|
393
|
+
reply_to: string;
|
|
394
|
+
}[]>;
|
|
395
|
+
} | {
|
|
396
|
+
slug: "rescheduleEmail";
|
|
397
|
+
description: string;
|
|
398
|
+
idempotent: false;
|
|
399
|
+
input: import("zod").ZodObject<{
|
|
400
|
+
email_id: import("zod").ZodString;
|
|
401
|
+
scheduled_at: import("zod").ZodString;
|
|
402
|
+
}, import("zod/v4/core").$loose>;
|
|
403
|
+
run({ input, client }: import("frogbot").PieceRunArgs<{
|
|
404
|
+
[k: string]: unknown;
|
|
405
|
+
email_id: string;
|
|
406
|
+
scheduled_at: string;
|
|
407
|
+
}, {
|
|
408
|
+
from?: {
|
|
409
|
+
address: string;
|
|
410
|
+
name?: string;
|
|
411
|
+
};
|
|
412
|
+
}, {
|
|
413
|
+
request({ allowFailure, binary, body, headers, method, path, query, rawBody, redirect, response: includeResponse, signal, }: import("./client.js").ResendRequestOptions): Promise<unknown>;
|
|
414
|
+
}>): Promise<unknown>;
|
|
415
|
+
} | {
|
|
416
|
+
slug: "send";
|
|
417
|
+
description: string;
|
|
418
|
+
idempotent: false;
|
|
419
|
+
input: import("zod").ZodObject<{
|
|
420
|
+
to: import("zod").ZodArray<import("zod").ZodString>;
|
|
421
|
+
from_name: import("zod").ZodString;
|
|
422
|
+
from: import("zod").ZodString;
|
|
423
|
+
bcc: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString>>;
|
|
424
|
+
cc: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString>>;
|
|
425
|
+
reply_to: import("zod").ZodOptional<import("zod").ZodString>;
|
|
426
|
+
subject: import("zod").ZodString;
|
|
427
|
+
content_type: import("zod").ZodEnum<{
|
|
428
|
+
text: "text";
|
|
429
|
+
html: "html";
|
|
430
|
+
}>;
|
|
431
|
+
content: import("zod").ZodString;
|
|
432
|
+
scheduled_at: import("zod").ZodOptional<import("zod").ZodString>;
|
|
433
|
+
}, import("zod/v4/core").$strip>;
|
|
434
|
+
run({ input, client }: import("frogbot").PieceRunArgs<{
|
|
435
|
+
to: string[];
|
|
436
|
+
from_name: string;
|
|
437
|
+
from: string;
|
|
438
|
+
bcc?: string[];
|
|
439
|
+
cc?: string[];
|
|
440
|
+
reply_to?: string;
|
|
441
|
+
subject: string;
|
|
442
|
+
content_type: "html" | "text";
|
|
443
|
+
content: string;
|
|
444
|
+
scheduled_at?: string;
|
|
445
|
+
}, {
|
|
446
|
+
from?: {
|
|
447
|
+
address: string;
|
|
448
|
+
name?: string;
|
|
449
|
+
};
|
|
450
|
+
}, {
|
|
451
|
+
request({ allowFailure, binary, body, headers, method, path, query, rawBody, redirect, response: includeResponse, signal, }: import("./client.js").ResendRequestOptions): Promise<unknown>;
|
|
452
|
+
}>): Promise<unknown>;
|
|
453
|
+
} | {
|
|
454
|
+
slug: "sendBatchEmails";
|
|
455
|
+
description: string;
|
|
456
|
+
idempotent: false;
|
|
457
|
+
input: import("zod").ZodObject<{
|
|
458
|
+
emails: import("zod").ZodArray<import("zod").ZodObject<{
|
|
459
|
+
from: import("zod").ZodString;
|
|
460
|
+
to: import("zod").ZodString;
|
|
461
|
+
subject: import("zod").ZodString;
|
|
462
|
+
content_type: import("zod").ZodEnum<{
|
|
463
|
+
text: "text";
|
|
464
|
+
html: "html";
|
|
465
|
+
}>;
|
|
466
|
+
content: import("zod").ZodString;
|
|
467
|
+
reply_to: import("zod").ZodOptional<import("zod").ZodString>;
|
|
468
|
+
cc: import("zod").ZodOptional<import("zod").ZodString>;
|
|
469
|
+
bcc: import("zod").ZodOptional<import("zod").ZodString>;
|
|
470
|
+
}, import("zod/v4/core").$strip>>;
|
|
471
|
+
idempotency_key: import("zod").ZodOptional<import("zod").ZodString>;
|
|
472
|
+
}, import("zod/v4/core").$strip>;
|
|
473
|
+
run({ input, client }: import("frogbot").PieceRunArgs<{
|
|
474
|
+
emails: {
|
|
475
|
+
from: string;
|
|
476
|
+
to: string;
|
|
477
|
+
subject: string;
|
|
478
|
+
content_type: "html" | "text";
|
|
479
|
+
content: string;
|
|
480
|
+
reply_to?: string;
|
|
481
|
+
cc?: string;
|
|
482
|
+
bcc?: string;
|
|
483
|
+
}[];
|
|
484
|
+
idempotency_key?: string;
|
|
485
|
+
}, {
|
|
486
|
+
from?: {
|
|
487
|
+
address: string;
|
|
488
|
+
name?: string;
|
|
489
|
+
};
|
|
490
|
+
}, {
|
|
491
|
+
request({ allowFailure, binary, body, headers, method, path, query, rawBody, redirect, response: includeResponse, signal, }: import("./client.js").ResendRequestOptions): Promise<unknown>;
|
|
492
|
+
}>): Promise<import("frogbot").PieceJSON[]>;
|
|
493
|
+
} | {
|
|
494
|
+
slug: "sendBroadcast";
|
|
495
|
+
description: string;
|
|
496
|
+
idempotent: false;
|
|
497
|
+
input: import("zod").ZodObject<{
|
|
498
|
+
broadcast_id: import("zod").ZodString;
|
|
499
|
+
scheduled_at: import("zod").ZodOptional<import("zod").ZodString>;
|
|
500
|
+
}, import("zod/v4/core").$loose>;
|
|
501
|
+
run({ input, client }: import("frogbot").PieceRunArgs<{
|
|
502
|
+
[k: string]: unknown;
|
|
503
|
+
broadcast_id: string;
|
|
504
|
+
scheduled_at?: string;
|
|
505
|
+
}, {
|
|
506
|
+
from?: {
|
|
507
|
+
address: string;
|
|
508
|
+
name?: string;
|
|
509
|
+
};
|
|
510
|
+
}, {
|
|
511
|
+
request({ allowFailure, binary, body, headers, method, path, query, rawBody, redirect, response: includeResponse, signal, }: import("./client.js").ResendRequestOptions): Promise<unknown>;
|
|
512
|
+
}>): Promise<unknown>;
|
|
513
|
+
} | {
|
|
514
|
+
slug: "updateContact";
|
|
515
|
+
description: string;
|
|
516
|
+
idempotent: false;
|
|
517
|
+
input: import("zod").ZodObject<{
|
|
518
|
+
audience_id: import("zod").ZodString;
|
|
519
|
+
contact_id: import("zod").ZodString;
|
|
520
|
+
first_name: import("zod").ZodOptional<import("zod").ZodString>;
|
|
521
|
+
last_name: import("zod").ZodOptional<import("zod").ZodString>;
|
|
522
|
+
unsubscribed: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
523
|
+
}, import("zod/v4/core").$strip>;
|
|
524
|
+
run({ input, client }: import("frogbot").PieceRunArgs<{
|
|
525
|
+
audience_id: string;
|
|
526
|
+
contact_id: string;
|
|
527
|
+
first_name?: string;
|
|
528
|
+
last_name?: string;
|
|
529
|
+
unsubscribed?: boolean;
|
|
530
|
+
}, {
|
|
531
|
+
from?: {
|
|
532
|
+
address: string;
|
|
533
|
+
name?: string;
|
|
534
|
+
};
|
|
535
|
+
}, {
|
|
536
|
+
request({ allowFailure, binary, body, headers, method, path, query, rawBody, redirect, response: includeResponse, signal, }: import("./client.js").ResendRequestOptions): Promise<unknown>;
|
|
537
|
+
}>): Promise<unknown>;
|
|
538
|
+
} | {
|
|
539
|
+
slug: "verifyDomain";
|
|
540
|
+
description: string;
|
|
541
|
+
idempotent: false;
|
|
542
|
+
input: import("zod").ZodObject<{
|
|
543
|
+
domain_id: import("zod").ZodString;
|
|
544
|
+
}, import("zod/v4/core").$loose>;
|
|
545
|
+
run({ input, client }: import("frogbot").PieceRunArgs<{
|
|
546
|
+
[k: string]: unknown;
|
|
547
|
+
domain_id: string;
|
|
548
|
+
}, {
|
|
549
|
+
from?: {
|
|
550
|
+
address: string;
|
|
551
|
+
name?: string;
|
|
552
|
+
};
|
|
553
|
+
}, {
|
|
554
|
+
request({ allowFailure, binary, body, headers, method, path, query, rawBody, redirect, response: includeResponse, signal, }: import("./client.js").ResendRequestOptions): Promise<unknown>;
|
|
555
|
+
}>): Promise<unknown>;
|
|
556
|
+
})[];
|
|
557
|
+
email: {
|
|
558
|
+
send({ message, client, options }: {
|
|
559
|
+
message: {
|
|
560
|
+
[x: string]: NodemailerSendMailOptions;
|
|
561
|
+
[x: number]: NodemailerSendMailOptions;
|
|
562
|
+
[x: symbol]: NodemailerSendMailOptions;
|
|
563
|
+
from?: ({
|
|
564
|
+
address: string;
|
|
565
|
+
name?: string;
|
|
566
|
+
} | string) | undefined;
|
|
567
|
+
};
|
|
568
|
+
client: {
|
|
569
|
+
request({ allowFailure, binary, body, headers, method, path, query, rawBody, redirect, response: includeResponse, signal, }: import("./client.js").ResendRequestOptions): Promise<unknown>;
|
|
570
|
+
};
|
|
571
|
+
options: {
|
|
572
|
+
from?: {
|
|
573
|
+
address: string;
|
|
574
|
+
name?: string;
|
|
575
|
+
};
|
|
576
|
+
};
|
|
577
|
+
req: import("frogbot").FrogbotRequest;
|
|
578
|
+
}): Promise<unknown>;
|
|
579
|
+
};
|
|
580
|
+
}>;
|
|
50
581
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"
|
|
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;;;;;;;;;;;;;;;;;;;oBAAD,CAAC;;;;;;;;;;;;;;;;;oBAAD,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oBAAD,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;oBAAD,CAAC;;;;;;;;;;;;;;;;;;;;;;;;oBAAD,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oBAAD,CAAC;;;;;;;;;;;;;;;;;;oBAAD,CAAC;;;;;;;;;;;;;;;;;;oBAAD,CAAC;;;;;;;;;;;;;;;;;;;;oBAAD,CAAC;;;;;;;;;;;;;;;;;;oBAAD,CAAC;;;;;;;;;;;;;;;;;;oBAAD,CAAC;;;;;;;;;;;;;oBAAD,CAAC;;;;;;;;;;;;;oBAAD,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oBAAD,CAAC;;;;;;;;;;;;;oBAAD,CAAC;;;;;;;;;;;;;;;;;;;;;oBAAD,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oBAAD,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oBAAD,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wBAUzC,CAAC;kBAAsB,CAAC;mBACvC,CAAC;;;;;;oBAXsD,CAAC;;;;;;;;;;;;;;;;;;;;oBAAD,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;oBAAD,CAAC;;;;;;;;;;;;;;;;;;oBAAD,CAAC;;;;;;;;;;;;;;;;;;;;;;;wBAAD,CAAC;;;;;;EAsFF,CAAC"}
|