@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.
Files changed (121) hide show
  1. package/dist/actions/cancelScheduledEmail.d.ts +21 -0
  2. package/dist/actions/cancelScheduledEmail.d.ts.map +1 -0
  3. package/dist/actions/cancelScheduledEmail.js +12 -0
  4. package/dist/actions/cancelScheduledEmail.js.map +1 -0
  5. package/dist/actions/createAudience.d.ts +20 -0
  6. package/dist/actions/createAudience.d.ts.map +1 -0
  7. package/dist/actions/createAudience.js +12 -0
  8. package/dist/actions/createAudience.js.map +1 -0
  9. package/dist/actions/createBroadcast.d.ts +37 -0
  10. package/dist/actions/createBroadcast.d.ts.map +1 -0
  11. package/dist/actions/createBroadcast.js +35 -0
  12. package/dist/actions/createBroadcast.js.map +1 -0
  13. package/dist/actions/createContact.d.ts +28 -0
  14. package/dist/actions/createContact.d.ts.map +1 -0
  15. package/dist/actions/createContact.js +26 -0
  16. package/dist/actions/createContact.js.map +1 -0
  17. package/dist/actions/createDomain.d.ts +36 -0
  18. package/dist/actions/createDomain.d.ts.map +1 -0
  19. package/dist/actions/createDomain.js +30 -0
  20. package/dist/actions/createDomain.js.map +1 -0
  21. package/dist/actions/customApiCall.d.ts +46 -0
  22. package/dist/actions/customApiCall.d.ts.map +1 -0
  23. package/dist/actions/customApiCall.js +83 -0
  24. package/dist/actions/customApiCall.js.map +1 -0
  25. package/dist/actions/deleteAudience.d.ts +21 -0
  26. package/dist/actions/deleteAudience.d.ts.map +1 -0
  27. package/dist/actions/deleteAudience.js +12 -0
  28. package/dist/actions/deleteAudience.js.map +1 -0
  29. package/dist/actions/deleteBroadcast.d.ts +21 -0
  30. package/dist/actions/deleteBroadcast.d.ts.map +1 -0
  31. package/dist/actions/deleteBroadcast.js +12 -0
  32. package/dist/actions/deleteBroadcast.js.map +1 -0
  33. package/dist/actions/deleteContact.d.ts +23 -0
  34. package/dist/actions/deleteContact.d.ts.map +1 -0
  35. package/dist/actions/deleteContact.js +15 -0
  36. package/dist/actions/deleteContact.js.map +1 -0
  37. package/dist/actions/deleteDomain.d.ts +21 -0
  38. package/dist/actions/deleteDomain.d.ts.map +1 -0
  39. package/dist/actions/deleteDomain.js +12 -0
  40. package/dist/actions/deleteDomain.js.map +1 -0
  41. package/dist/actions/getEmailStatus.d.ts +21 -0
  42. package/dist/actions/getEmailStatus.d.ts.map +1 -0
  43. package/dist/actions/getEmailStatus.js +12 -0
  44. package/dist/actions/getEmailStatus.js.map +1 -0
  45. package/dist/actions/listAudiences.d.ts +17 -0
  46. package/dist/actions/listAudiences.d.ts.map +1 -0
  47. package/dist/actions/listAudiences.js +12 -0
  48. package/dist/actions/listAudiences.js.map +1 -0
  49. package/dist/actions/listBroadcasts.d.ts +28 -0
  50. package/dist/actions/listBroadcasts.d.ts.map +1 -0
  51. package/dist/actions/listBroadcasts.js +27 -0
  52. package/dist/actions/listBroadcasts.js.map +1 -0
  53. package/dist/actions/listContacts.d.ts +22 -0
  54. package/dist/actions/listContacts.d.ts.map +1 -0
  55. package/dist/actions/listContacts.js +13 -0
  56. package/dist/actions/listContacts.js.map +1 -0
  57. package/dist/actions/listDomains.d.ts +24 -0
  58. package/dist/actions/listDomains.d.ts.map +1 -0
  59. package/dist/actions/listDomains.js +21 -0
  60. package/dist/actions/listDomains.js.map +1 -0
  61. package/dist/actions/listEmails.d.ts +27 -0
  62. package/dist/actions/listEmails.d.ts.map +1 -0
  63. package/dist/actions/listEmails.js +24 -0
  64. package/dist/actions/listEmails.js.map +1 -0
  65. package/dist/actions/rescheduleEmail.d.ts +23 -0
  66. package/dist/actions/rescheduleEmail.d.ts.map +1 -0
  67. package/dist/actions/rescheduleEmail.js +13 -0
  68. package/dist/actions/rescheduleEmail.js.map +1 -0
  69. package/dist/actions/send.d.ts +41 -0
  70. package/dist/actions/send.d.ts.map +1 -0
  71. package/dist/actions/send.js +24 -0
  72. package/dist/actions/send.js.map +1 -0
  73. package/dist/actions/sendBatchEmails.d.ts +44 -0
  74. package/dist/actions/sendBatchEmails.d.ts.map +1 -0
  75. package/dist/actions/sendBatchEmails.js +31 -0
  76. package/dist/actions/sendBatchEmails.js.map +1 -0
  77. package/dist/actions/sendBroadcast.d.ts +23 -0
  78. package/dist/actions/sendBroadcast.d.ts.map +1 -0
  79. package/dist/actions/sendBroadcast.js +17 -0
  80. package/dist/actions/sendBroadcast.js.map +1 -0
  81. package/dist/actions/types.d.ts +5 -0
  82. package/dist/actions/types.d.ts.map +1 -0
  83. package/dist/actions/types.js +2 -0
  84. package/dist/actions/types.js.map +1 -0
  85. package/dist/actions/updateContact.d.ts +28 -0
  86. package/dist/actions/updateContact.d.ts.map +1 -0
  87. package/dist/actions/updateContact.js +29 -0
  88. package/dist/actions/updateContact.js.map +1 -0
  89. package/dist/actions/verifyDomain.d.ts +21 -0
  90. package/dist/actions/verifyDomain.d.ts.map +1 -0
  91. package/dist/actions/verifyDomain.js +12 -0
  92. package/dist/actions/verifyDomain.js.map +1 -0
  93. package/dist/client.d.ts +20 -0
  94. package/dist/client.d.ts.map +1 -0
  95. package/dist/client.js +37 -0
  96. package/dist/client.js.map +1 -0
  97. package/dist/config.d.ts +11 -0
  98. package/dist/config.d.ts.map +1 -0
  99. package/dist/config.js +6 -0
  100. package/dist/config.js.map +1 -0
  101. package/dist/email.d.ts +24 -0
  102. package/dist/email.d.ts.map +1 -0
  103. package/dist/email.js +38 -0
  104. package/dist/email.js.map +1 -0
  105. package/dist/format.d.ts +7 -0
  106. package/dist/format.d.ts.map +1 -0
  107. package/dist/format.js +27 -0
  108. package/dist/format.js.map +1 -0
  109. package/dist/index.d.ts +579 -48
  110. package/dist/index.d.ts.map +1 -1
  111. package/dist/index.js +83 -59
  112. package/dist/index.js.map +1 -1
  113. package/dist/index.test-d.d.ts +2 -0
  114. package/dist/index.test-d.d.ts.map +1 -0
  115. package/dist/index.test-d.js +54 -0
  116. package/dist/index.test-d.js.map +1 -0
  117. package/dist/piece-types.d.ts +200 -0
  118. package/dist/piece-types.d.ts.map +1 -0
  119. package/dist/piece-types.js +2 -0
  120. package/dist/piece-types.js.map +1 -0
  121. package/package.json +7 -5
package/dist/index.d.ts CHANGED
@@ -1,50 +1,581 @@
1
- import { type PieceFactoryConfig } from 'frogbot/pieces';
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 function createResend(config?: PieceFactoryConfig): import("frogbot/pieces").Piece & {
5
- /** Send Email: Send a text or HTML email */
6
- sendEmail: import("node_modules/frogbot/dist/tools/types").AnyTool;
7
- /** Send Batch Emails: Send up to 100 emails in a single API call */
8
- sendBatchEmails: import("node_modules/frogbot/dist/tools/types").AnyTool;
9
- /** Get Email Status: Retrieve the delivery status of a sent email */
10
- getEmailStatus: import("node_modules/frogbot/dist/tools/types").AnyTool;
11
- /** List Sent Emails: Retrieve a list of emails sent from your Resend account */
12
- listEmails: import("node_modules/frogbot/dist/tools/types").AnyTool;
13
- /** Cancel Scheduled Email: Cancel a scheduled email before it is sent */
14
- cancelScheduledEmail: import("node_modules/frogbot/dist/tools/types").AnyTool;
15
- /** Reschedule Email: Update the send time of a scheduled email */
16
- rescheduleEmail: import("node_modules/frogbot/dist/tools/types").AnyTool;
17
- /** Create Contact: Add a contact to a Resend audience */
18
- createContact: import("node_modules/frogbot/dist/tools/types").AnyTool;
19
- /** Update Contact: Update the name or subscription status of a contact in an audience */
20
- updateContact: import("node_modules/frogbot/dist/tools/types").AnyTool;
21
- /** Delete Contact: Remove a contact from an audience */
22
- deleteContact: import("node_modules/frogbot/dist/tools/types").AnyTool;
23
- /** List Contacts: Retrieve all contacts in an audience */
24
- listContacts: import("node_modules/frogbot/dist/tools/types").AnyTool;
25
- /** List Domains: Retrieve all domains added to your Resend account */
26
- listDomains: import("node_modules/frogbot/dist/tools/types").AnyTool;
27
- /** Create Domain: Add a sending domain to your Resend account and get the DNS records to verify it */
28
- createDomain: import("node_modules/frogbot/dist/tools/types").AnyTool;
29
- /** Delete Domain: Remove a domain from your Resend account */
30
- deleteDomain: import("node_modules/frogbot/dist/tools/types").AnyTool;
31
- /** Verify Domain: Trigger a DNS verification check for a domain */
32
- verifyDomain: import("node_modules/frogbot/dist/tools/types").AnyTool;
33
- /** List Audiences: Retrieve all contact audiences in your Resend account */
34
- listAudiences: import("node_modules/frogbot/dist/tools/types").AnyTool;
35
- /** Create Audience: Create a new contact audience in Resend */
36
- createAudience: import("node_modules/frogbot/dist/tools/types").AnyTool;
37
- /** Delete Audience: Permanently delete an audience and all its contacts */
38
- deleteAudience: import("node_modules/frogbot/dist/tools/types").AnyTool;
39
- /** List Broadcasts: Retrieve all broadcasts in your Resend account */
40
- listBroadcasts: import("node_modules/frogbot/dist/tools/types").AnyTool;
41
- /** Create Broadcast: Create a new broadcast email to send to an audience */
42
- createBroadcast: import("node_modules/frogbot/dist/tools/types").AnyTool;
43
- /** Send Broadcast: Send or schedule a broadcast email to its audience */
44
- sendBroadcast: import("node_modules/frogbot/dist/tools/types").AnyTool;
45
- /** Delete Broadcast: Permanently delete a broadcast from your Resend account */
46
- deleteBroadcast: import("node_modules/frogbot/dist/tools/types").AnyTool;
47
- /** Custom API Call: Make a custom API call to a specific endpoint */
48
- customApiCall: import("node_modules/frogbot/dist/tools/types").AnyTool;
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
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,EAA2B,KAAK,kBAAkB,EAAE,MAAM,gBAAgB,CAAC;AAElF,eAAO,MAAM,aAAa,yBAA0B,CAAC;AACrD,eAAO,MAAM,YAAY,aAAc,CAAC;AAExC,wBAAgB,YAAY,CAAC,MAAM,CAAC,EAAE,kBAAkB;IAUpD,4CAA4C;;IAE5C,oEAAoE;;IAEpE,qEAAqE;;IAErE,gFAAgF;;IAEhF,yEAAyE;;IAEzE,kEAAkE;;IAElE,yDAAyD;;IAEzD,yFAAyF;;IAEzF,wDAAwD;;IAExD,0DAA0D;;IAE1D,sEAAsE;;IAEtE,sGAAsG;;IAEtG,8DAA8D;;IAE9D,mEAAmE;;IAEnE,4EAA4E;;IAE5E,+DAA+D;;IAE/D,2EAA2E;;IAE3E,sEAAsE;;IAEtE,4EAA4E;;IAE5E,yEAAyE;;IAEzE,gFAAgF;;IAEhF,qEAAqE;;EAGxE"}
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"}