@frogbotai/piece-resend 0.27.0 → 0.28.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 (106) hide show
  1. package/dist/actions/cancelScheduledEmail.d.ts +10 -17
  2. package/dist/actions/cancelScheduledEmail.d.ts.map +1 -1
  3. package/dist/actions/cancelScheduledEmail.js +3 -2
  4. package/dist/actions/cancelScheduledEmail.js.map +1 -1
  5. package/dist/actions/createAudience.d.ts +10 -16
  6. package/dist/actions/createAudience.d.ts.map +1 -1
  7. package/dist/actions/createAudience.js +3 -2
  8. package/dist/actions/createAudience.js.map +1 -1
  9. package/dist/actions/createBroadcast.d.ts +20 -33
  10. package/dist/actions/createBroadcast.d.ts.map +1 -1
  11. package/dist/actions/createBroadcast.js +3 -2
  12. package/dist/actions/createBroadcast.js.map +1 -1
  13. package/dist/actions/createContact.d.ts +14 -24
  14. package/dist/actions/createContact.d.ts.map +1 -1
  15. package/dist/actions/createContact.js +3 -2
  16. package/dist/actions/createContact.js.map +1 -1
  17. package/dist/actions/createDomain.d.ts +25 -32
  18. package/dist/actions/createDomain.d.ts.map +1 -1
  19. package/dist/actions/createDomain.js +3 -2
  20. package/dist/actions/createDomain.js.map +1 -1
  21. package/dist/actions/customApiCall.d.ts +24 -42
  22. package/dist/actions/customApiCall.d.ts.map +1 -1
  23. package/dist/actions/customApiCall.js +3 -2
  24. package/dist/actions/customApiCall.js.map +1 -1
  25. package/dist/actions/deleteAudience.d.ts +10 -17
  26. package/dist/actions/deleteAudience.d.ts.map +1 -1
  27. package/dist/actions/deleteAudience.js +3 -2
  28. package/dist/actions/deleteAudience.js.map +1 -1
  29. package/dist/actions/deleteBroadcast.d.ts +10 -17
  30. package/dist/actions/deleteBroadcast.d.ts.map +1 -1
  31. package/dist/actions/deleteBroadcast.js +3 -2
  32. package/dist/actions/deleteBroadcast.js.map +1 -1
  33. package/dist/actions/deleteContact.d.ts +11 -19
  34. package/dist/actions/deleteContact.d.ts.map +1 -1
  35. package/dist/actions/deleteContact.js +3 -2
  36. package/dist/actions/deleteContact.js.map +1 -1
  37. package/dist/actions/deleteDomain.d.ts +10 -17
  38. package/dist/actions/deleteDomain.d.ts.map +1 -1
  39. package/dist/actions/deleteDomain.js +3 -2
  40. package/dist/actions/deleteDomain.js.map +1 -1
  41. package/dist/actions/getEmailStatus.d.ts +10 -17
  42. package/dist/actions/getEmailStatus.d.ts.map +1 -1
  43. package/dist/actions/getEmailStatus.js +3 -2
  44. package/dist/actions/getEmailStatus.js.map +1 -1
  45. package/dist/actions/listAudiences.d.ts +8 -12
  46. package/dist/actions/listAudiences.d.ts.map +1 -1
  47. package/dist/actions/listAudiences.js +3 -2
  48. package/dist/actions/listAudiences.js.map +1 -1
  49. package/dist/actions/listBroadcasts.d.ts +20 -24
  50. package/dist/actions/listBroadcasts.d.ts.map +1 -1
  51. package/dist/actions/listBroadcasts.js +3 -2
  52. package/dist/actions/listBroadcasts.js.map +1 -1
  53. package/dist/actions/listContacts.d.ts +10 -17
  54. package/dist/actions/listContacts.d.ts.map +1 -1
  55. package/dist/actions/listContacts.js +3 -2
  56. package/dist/actions/listContacts.js.map +1 -1
  57. package/dist/actions/listDomains.d.ts +16 -20
  58. package/dist/actions/listDomains.d.ts.map +1 -1
  59. package/dist/actions/listDomains.js +3 -2
  60. package/dist/actions/listDomains.js.map +1 -1
  61. package/dist/actions/listEmails.d.ts +19 -23
  62. package/dist/actions/listEmails.d.ts.map +1 -1
  63. package/dist/actions/listEmails.js +3 -2
  64. package/dist/actions/listEmails.js.map +1 -1
  65. package/dist/actions/rescheduleEmail.d.ts +11 -19
  66. package/dist/actions/rescheduleEmail.d.ts.map +1 -1
  67. package/dist/actions/rescheduleEmail.js +3 -2
  68. package/dist/actions/rescheduleEmail.js.map +1 -1
  69. package/dist/actions/send.d.ts +22 -37
  70. package/dist/actions/send.d.ts.map +1 -1
  71. package/dist/actions/send.js +3 -2
  72. package/dist/actions/send.js.map +1 -1
  73. package/dist/actions/sendBatchEmails.d.ts +23 -39
  74. package/dist/actions/sendBatchEmails.d.ts.map +1 -1
  75. package/dist/actions/sendBatchEmails.js +3 -2
  76. package/dist/actions/sendBatchEmails.js.map +1 -1
  77. package/dist/actions/sendBroadcast.d.ts +11 -19
  78. package/dist/actions/sendBroadcast.d.ts.map +1 -1
  79. package/dist/actions/sendBroadcast.js +3 -2
  80. package/dist/actions/sendBroadcast.js.map +1 -1
  81. package/dist/actions/updateContact.d.ts +14 -24
  82. package/dist/actions/updateContact.d.ts.map +1 -1
  83. package/dist/actions/updateContact.js +3 -2
  84. package/dist/actions/updateContact.js.map +1 -1
  85. package/dist/actions/verifyDomain.d.ts +10 -17
  86. package/dist/actions/verifyDomain.d.ts.map +1 -1
  87. package/dist/actions/verifyDomain.js +3 -2
  88. package/dist/actions/verifyDomain.js.map +1 -1
  89. package/dist/config.d.ts +1 -0
  90. package/dist/config.d.ts.map +1 -1
  91. package/dist/define.d.ts +20 -0
  92. package/dist/define.d.ts.map +1 -0
  93. package/dist/define.js +3 -0
  94. package/dist/define.js.map +1 -0
  95. package/dist/email.d.ts +1 -1
  96. package/dist/index.d.ts +314 -498
  97. package/dist/index.d.ts.map +1 -1
  98. package/package.json +3 -3
  99. package/dist/actions/types.d.ts +0 -5
  100. package/dist/actions/types.d.ts.map +0 -1
  101. package/dist/actions/types.js +0 -2
  102. package/dist/actions/types.js.map +0 -1
  103. package/dist/index.test-d.d.ts +0 -2
  104. package/dist/index.test-d.d.ts.map +0 -1
  105. package/dist/index.test-d.js +0 -54
  106. package/dist/index.test-d.js.map +0 -1
package/dist/index.d.ts CHANGED
@@ -1,6 +1,6 @@
1
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"];
2
2
  export declare const resendScopes: readonly [];
3
- export declare const createResend: import("frogbot").PieceFactory<{
3
+ export declare const createResend: import("frogbot/pieces").PieceFactory<{
4
4
  slug: string;
5
5
  label: string;
6
6
  admin: {
@@ -29,531 +29,347 @@ export declare const createResend: import("frogbot").PieceFactory<{
29
29
  }) => {
30
30
  request({ allowFailure, binary, body, headers, method, path, query, rawBody, redirect, response: includeResponse, signal, }: import("./client.js").ResendRequestOptions): Promise<unknown>;
31
31
  };
32
- actions: ({
32
+ actions: ((import("frogbot/pieces").PieceActionDefinition<import("zod").ZodObject<{
33
+ email_id: import("zod").ZodString;
34
+ }, import("zod/v4/core").$loose>, undefined, {
35
+ from?: {
36
+ address: string;
37
+ name?: string | undefined;
38
+ } | undefined;
39
+ }, {
40
+ request({ allowFailure, binary, body, headers, method, path, query, rawBody, redirect, response: includeResponse, signal, }: import("./client.js").ResendRequestOptions): Promise<unknown>;
41
+ }, unknown> & {
33
42
  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
- } | {
43
+ }) | (import("frogbot/pieces").PieceActionDefinition<import("zod").ZodObject<{
44
+ name: import("zod").ZodString;
45
+ }, import("zod/v4/core").$strip>, undefined, {
46
+ from?: {
47
+ address: string;
48
+ name?: string | undefined;
49
+ } | undefined;
50
+ }, {
51
+ request({ allowFailure, binary, body, headers, method, path, query, rawBody, redirect, response: includeResponse, signal, }: import("./client.js").ResendRequestOptions): Promise<unknown>;
52
+ }, unknown> & {
51
53
  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
- } | {
54
+ }) | (import("frogbot/pieces").PieceActionDefinition<import("zod").ZodObject<{
55
+ audience_id: import("zod").ZodString;
56
+ from: import("zod").ZodString;
57
+ subject: import("zod").ZodString;
58
+ name: import("zod").ZodOptional<import("zod").ZodString>;
59
+ reply_to: import("zod").ZodOptional<import("zod").ZodString>;
60
+ preview_text: import("zod").ZodOptional<import("zod").ZodString>;
61
+ content_type: import("zod").ZodEnum<{
62
+ text: "text";
63
+ html: "html";
64
+ }>;
65
+ content: import("zod").ZodString;
66
+ }, import("zod/v4/core").$strip>, undefined, {
67
+ from?: {
68
+ address: string;
69
+ name?: string | undefined;
70
+ } | undefined;
71
+ }, {
72
+ request({ allowFailure, binary, body, headers, method, path, query, rawBody, redirect, response: includeResponse, signal, }: import("./client.js").ResendRequestOptions): Promise<unknown>;
73
+ }, unknown> & {
68
74
  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
- } | {
75
+ }) | (import("frogbot/pieces").PieceActionDefinition<import("zod").ZodObject<{
76
+ audience_id: import("zod").ZodString;
77
+ email: import("zod").ZodString;
78
+ first_name: import("zod").ZodOptional<import("zod").ZodString>;
79
+ last_name: import("zod").ZodOptional<import("zod").ZodString>;
80
+ unsubscribed: import("zod").ZodOptional<import("zod").ZodBoolean>;
81
+ }, import("zod/v4/core").$strip>, undefined, {
82
+ from?: {
83
+ address: string;
84
+ name?: string | undefined;
85
+ } | undefined;
86
+ }, {
87
+ request({ allowFailure, binary, body, headers, method, path, query, rawBody, redirect, response: includeResponse, signal, }: import("./client.js").ResendRequestOptions): Promise<unknown>;
88
+ }, unknown> & {
102
89
  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
- } | {
90
+ }) | (import("frogbot/pieces").PieceActionDefinition<import("zod").ZodObject<{
91
+ name: import("zod").ZodString;
92
+ region: import("zod").ZodOptional<import("zod").ZodEnum<{
93
+ "us-east-1": "us-east-1";
94
+ "eu-west-1": "eu-west-1";
95
+ "ap-northeast-1": "ap-northeast-1";
96
+ "sa-east-1": "sa-east-1";
97
+ }>>;
98
+ }, import("zod/v4/core").$strip>, undefined, {
99
+ from?: {
100
+ address: string;
101
+ name?: string | undefined;
102
+ } | undefined;
103
+ }, {
104
+ request({ allowFailure, binary, body, headers, method, path, query, rawBody, redirect, response: includeResponse, signal, }: import("./client.js").ResendRequestOptions): Promise<unknown>;
105
+ }, {
106
+ id: unknown;
107
+ name: unknown;
108
+ status: unknown;
109
+ region: unknown;
110
+ created_at: unknown;
111
+ sending: {};
112
+ receiving: {};
113
+ dns_records: unknown;
114
+ }> & {
127
115
  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
- } | {
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> & {
160
140
  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
- } | {
141
+ }) | (import("frogbot/pieces").PieceActionDefinition<import("zod").ZodObject<{
142
+ audience_id: import("zod").ZodString;
143
+ }, import("zod/v4/core").$loose>, undefined, {
144
+ from?: {
145
+ address: string;
146
+ name?: string | undefined;
147
+ } | undefined;
148
+ }, {
149
+ request({ allowFailure, binary, body, headers, method, path, query, rawBody, redirect, response: includeResponse, signal, }: import("./client.js").ResendRequestOptions): Promise<unknown>;
150
+ }, unknown> & {
203
151
  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
- } | {
152
+ }) | (import("frogbot/pieces").PieceActionDefinition<import("zod").ZodObject<{
153
+ broadcast_id: import("zod").ZodString;
154
+ }, import("zod/v4/core").$loose>, undefined, {
155
+ from?: {
156
+ address: string;
157
+ name?: string | undefined;
158
+ } | undefined;
159
+ }, {
160
+ request({ allowFailure, binary, body, headers, method, path, query, rawBody, redirect, response: includeResponse, signal, }: import("./client.js").ResendRequestOptions): Promise<unknown>;
161
+ }, unknown> & {
221
162
  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
- } | {
163
+ }) | (import("frogbot/pieces").PieceActionDefinition<import("zod").ZodObject<{
164
+ audience_id: import("zod").ZodString;
165
+ contact_id: import("zod").ZodString;
166
+ }, import("zod/v4/core").$loose>, undefined, {
167
+ from?: {
168
+ address: string;
169
+ name?: string | undefined;
170
+ } | undefined;
171
+ }, {
172
+ request({ allowFailure, binary, body, headers, method, path, query, rawBody, redirect, response: includeResponse, signal, }: import("./client.js").ResendRequestOptions): Promise<unknown>;
173
+ }, unknown> & {
239
174
  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
- } | {
175
+ }) | (import("frogbot/pieces").PieceActionDefinition<import("zod").ZodObject<{
176
+ domain_id: import("zod").ZodString;
177
+ }, import("zod/v4/core").$loose>, undefined, {
178
+ from?: {
179
+ address: string;
180
+ name?: string | undefined;
181
+ } | undefined;
182
+ }, {
183
+ request({ allowFailure, binary, body, headers, method, path, query, rawBody, redirect, response: includeResponse, signal, }: import("./client.js").ResendRequestOptions): Promise<unknown>;
184
+ }, unknown> & {
259
185
  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
- } | {
186
+ }) | (import("frogbot/pieces").PieceActionDefinition<import("zod").ZodObject<{
187
+ email_id: import("zod").ZodString;
188
+ }, import("zod/v4/core").$loose>, undefined, {
189
+ from?: {
190
+ address: string;
191
+ name?: string | undefined;
192
+ } | undefined;
193
+ }, {
194
+ request({ allowFailure, binary, body, headers, method, path, query, rawBody, redirect, response: includeResponse, signal, }: import("./client.js").ResendRequestOptions): Promise<unknown>;
195
+ }, unknown> & {
277
196
  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
- } | {
197
+ }) | (import("frogbot/pieces").PieceActionDefinition<import("zod").ZodObject<{}, import("zod/v4/core").$strip>, undefined, {
198
+ from?: {
199
+ address: string;
200
+ name?: string | undefined;
201
+ } | undefined;
202
+ }, {
203
+ request({ allowFailure, binary, body, headers, method, path, query, rawBody, redirect, response: includeResponse, signal, }: import("./client.js").ResendRequestOptions): Promise<unknown>;
204
+ }, import("frogbot/pieces").PieceJSON[]> & {
295
205
  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
- } | {
206
+ }) | (import("frogbot/pieces").PieceActionDefinition<import("zod").ZodObject<{}, import("zod/v4/core").$strip>, undefined, {
207
+ from?: {
208
+ address: string;
209
+ name?: string | undefined;
210
+ } | undefined;
211
+ }, {
212
+ request({ allowFailure, binary, body, headers, method, path, query, rawBody, redirect, response: includeResponse, signal, }: import("./client.js").ResendRequestOptions): Promise<unknown>;
213
+ }, {
214
+ id: unknown;
215
+ name: {};
216
+ audience_id: unknown;
217
+ from: unknown;
218
+ subject: unknown;
219
+ reply_to: {};
220
+ preview_text: {};
221
+ status: unknown;
222
+ created_at: unknown;
223
+ scheduled_at: {};
224
+ sent_at: {};
225
+ }[]> & {
308
226
  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
- } | {
227
+ }) | (import("frogbot/pieces").PieceActionDefinition<import("zod").ZodObject<{
228
+ audience_id: import("zod").ZodString;
229
+ }, import("zod/v4/core").$loose>, undefined, {
230
+ from?: {
231
+ address: string;
232
+ name?: string | undefined;
233
+ } | undefined;
234
+ }, {
235
+ request({ allowFailure, binary, body, headers, method, path, query, rawBody, redirect, response: includeResponse, signal, }: import("./client.js").ResendRequestOptions): Promise<unknown>;
236
+ }, import("frogbot/pieces").PieceJSON[]> & {
333
237
  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
- } | {
238
+ }) | (import("frogbot/pieces").PieceActionDefinition<import("zod").ZodObject<{}, import("zod/v4/core").$strip>, undefined, {
239
+ from?: {
240
+ address: string;
241
+ name?: string | undefined;
242
+ } | undefined;
243
+ }, {
244
+ request({ allowFailure, binary, body, headers, method, path, query, rawBody, redirect, response: includeResponse, signal, }: import("./client.js").ResendRequestOptions): Promise<unknown>;
245
+ }, {
246
+ id: unknown;
247
+ name: unknown;
248
+ status: unknown;
249
+ region: unknown;
250
+ created_at: unknown;
251
+ sending: {};
252
+ receiving: {};
253
+ }[]> & {
351
254
  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
- } | {
255
+ }) | (import("frogbot/pieces").PieceActionDefinition<import("zod").ZodObject<{}, import("zod/v4/core").$strip>, undefined, {
256
+ from?: {
257
+ address: string;
258
+ name?: string | undefined;
259
+ } | undefined;
260
+ }, {
261
+ request({ allowFailure, binary, body, headers, method, path, query, rawBody, redirect, response: includeResponse, signal, }: import("./client.js").ResendRequestOptions): Promise<unknown>;
262
+ }, {
263
+ id: unknown;
264
+ from: unknown;
265
+ to: string;
266
+ subject: unknown;
267
+ last_event: unknown;
268
+ created_at: unknown;
269
+ scheduled_at: {};
270
+ cc: string;
271
+ bcc: string;
272
+ reply_to: string;
273
+ }[]> & {
372
274
  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
- } | {
275
+ }) | (import("frogbot/pieces").PieceActionDefinition<import("zod").ZodObject<{
276
+ email_id: import("zod").ZodString;
277
+ scheduled_at: import("zod").ZodString;
278
+ }, import("zod/v4/core").$loose>, undefined, {
279
+ from?: {
280
+ address: string;
281
+ name?: string | undefined;
282
+ } | undefined;
283
+ }, {
284
+ request({ allowFailure, binary, body, headers, method, path, query, rawBody, redirect, response: includeResponse, signal, }: import("./client.js").ResendRequestOptions): Promise<unknown>;
285
+ }, unknown> & {
396
286
  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
- } | {
287
+ }) | (import("frogbot/pieces").PieceActionDefinition<import("zod").ZodObject<{
288
+ to: import("zod").ZodArray<import("zod").ZodString>;
289
+ from_name: import("zod").ZodString;
290
+ from: import("zod").ZodString;
291
+ bcc: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString>>;
292
+ cc: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString>>;
293
+ reply_to: import("zod").ZodOptional<import("zod").ZodString>;
294
+ subject: import("zod").ZodString;
295
+ content_type: import("zod").ZodEnum<{
296
+ text: "text";
297
+ html: "html";
298
+ }>;
299
+ content: import("zod").ZodString;
300
+ scheduled_at: import("zod").ZodOptional<import("zod").ZodString>;
301
+ }, import("zod/v4/core").$strip>, undefined, {
302
+ from?: {
303
+ address: string;
304
+ name?: string | undefined;
305
+ } | undefined;
306
+ }, {
307
+ request({ allowFailure, binary, body, headers, method, path, query, rawBody, redirect, response: includeResponse, signal, }: import("./client.js").ResendRequestOptions): Promise<unknown>;
308
+ }, unknown> & {
416
309
  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;
310
+ }) | (import("frogbot/pieces").PieceActionDefinition<import("zod").ZodObject<{
311
+ emails: import("zod").ZodArray<import("zod").ZodObject<{
422
312
  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>;
313
+ to: import("zod").ZodString;
426
314
  subject: import("zod").ZodString;
427
315
  content_type: import("zod").ZodEnum<{
428
316
  text: "text";
429
317
  html: "html";
430
318
  }>;
431
319
  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
- } | {
320
+ reply_to: import("zod").ZodOptional<import("zod").ZodString>;
321
+ cc: import("zod").ZodOptional<import("zod").ZodString>;
322
+ bcc: import("zod").ZodOptional<import("zod").ZodString>;
323
+ }, import("zod/v4/core").$strip>>;
324
+ idempotency_key: import("zod").ZodOptional<import("zod").ZodString>;
325
+ }, import("zod/v4/core").$strip>, undefined, {
326
+ from?: {
327
+ address: string;
328
+ name?: string | undefined;
329
+ } | undefined;
330
+ }, {
331
+ request({ allowFailure, binary, body, headers, method, path, query, rawBody, redirect, response: includeResponse, signal, }: import("./client.js").ResendRequestOptions): Promise<unknown>;
332
+ }, import("frogbot/pieces").PieceJSON[]> & {
454
333
  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
- } | {
334
+ }) | (import("frogbot/pieces").PieceActionDefinition<import("zod").ZodObject<{
335
+ broadcast_id: import("zod").ZodString;
336
+ scheduled_at: import("zod").ZodOptional<import("zod").ZodString>;
337
+ }, import("zod/v4/core").$loose>, undefined, {
338
+ from?: {
339
+ address: string;
340
+ name?: string | undefined;
341
+ } | undefined;
342
+ }, {
343
+ request({ allowFailure, binary, body, headers, method, path, query, rawBody, redirect, response: includeResponse, signal, }: import("./client.js").ResendRequestOptions): Promise<unknown>;
344
+ }, unknown> & {
494
345
  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
- } | {
346
+ }) | (import("frogbot/pieces").PieceActionDefinition<import("zod").ZodObject<{
347
+ audience_id: import("zod").ZodString;
348
+ contact_id: import("zod").ZodString;
349
+ first_name: import("zod").ZodOptional<import("zod").ZodString>;
350
+ last_name: import("zod").ZodOptional<import("zod").ZodString>;
351
+ unsubscribed: import("zod").ZodOptional<import("zod").ZodBoolean>;
352
+ }, import("zod/v4/core").$strip>, undefined, {
353
+ from?: {
354
+ address: string;
355
+ name?: string | undefined;
356
+ } | undefined;
357
+ }, {
358
+ request({ allowFailure, binary, body, headers, method, path, query, rawBody, redirect, response: includeResponse, signal, }: import("./client.js").ResendRequestOptions): Promise<unknown>;
359
+ }, unknown> & {
514
360
  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
- } | {
361
+ }) | (import("frogbot/pieces").PieceActionDefinition<import("zod").ZodObject<{
362
+ domain_id: import("zod").ZodString;
363
+ }, import("zod/v4/core").$loose>, undefined, {
364
+ from?: {
365
+ address: string;
366
+ name?: string | undefined;
367
+ } | undefined;
368
+ }, {
369
+ request({ allowFailure, binary, body, headers, method, path, query, rawBody, redirect, response: includeResponse, signal, }: import("./client.js").ResendRequestOptions): Promise<unknown>;
370
+ }, unknown> & {
539
371
  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
- })[];
372
+ }))[];
557
373
  email: {
558
374
  send({ message, client, options }: {
559
375
  message: {
@@ -574,7 +390,7 @@ export declare const createResend: import("frogbot").PieceFactory<{
574
390
  name?: string;
575
391
  };
576
392
  };
577
- req: import("frogbot").FrogBotRequest;
393
+ req: import("frogbot/pieces").FrogBotRequest;
578
394
  }): Promise<unknown>;
579
395
  };
580
396
  }>;