@keystrokehq/resend 0.0.9 → 0.0.16-integration-id-canonicalization.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 (57) hide show
  1. package/README.md +41 -145
  2. package/dist/credential-sets/index.d.mts +2 -0
  3. package/dist/credential-sets/index.mjs +3 -0
  4. package/dist/emails-DNEKKuhw.mjs +590 -0
  5. package/dist/index.d.mts +4 -1
  6. package/dist/index.mjs +5 -1
  7. package/dist/operations/index.d.mts +2 -0
  8. package/dist/operations/index.mjs +3 -0
  9. package/dist/resend.credential-set-BVQIXE4k.mjs +18 -0
  10. package/dist/resend.credential-set-CO_XYnvV.d.mts +16 -0
  11. package/dist/schemas/index.d.mts +1292 -0
  12. package/dist/schemas/index.mjs +3 -0
  13. package/dist/verify-resend-domain.operation-BusUhEql.d.mts +1818 -0
  14. package/dist/verify-resend-domain.operation-ClVQJYPC.mjs +1481 -0
  15. package/package.json +11 -75
  16. package/dist/_official/index.d.mts +0 -2
  17. package/dist/_official/index.mjs +0 -3
  18. package/dist/_runtime/index.d.mts +0 -1
  19. package/dist/_runtime/index.mjs +0 -1
  20. package/dist/api-keys.d.mts +0 -67
  21. package/dist/api-keys.mjs +0 -90
  22. package/dist/broadcasts.d.mts +0 -238
  23. package/dist/broadcasts.mjs +0 -178
  24. package/dist/client.d.mts +0 -26
  25. package/dist/client.mjs +0 -40
  26. package/dist/connection.d.mts +0 -2
  27. package/dist/connection.mjs +0 -3
  28. package/dist/contact-properties.d.mts +0 -139
  29. package/dist/contact-properties.mjs +0 -115
  30. package/dist/contacts.d.mts +0 -218
  31. package/dist/contacts.mjs +0 -225
  32. package/dist/domains.d.mts +0 -293
  33. package/dist/domains.mjs +0 -160
  34. package/dist/emails-receiving.d.mts +0 -177
  35. package/dist/emails-receiving.mjs +0 -114
  36. package/dist/emails.d.mts +0 -307
  37. package/dist/emails.mjs +0 -241
  38. package/dist/events.d.mts +0 -571
  39. package/dist/events.mjs +0 -178
  40. package/dist/factory-CE4vHYLx.mjs +0 -7
  41. package/dist/http-BLe4ICIc.mjs +0 -84
  42. package/dist/integration-C00bEk7H.d.mts +0 -48
  43. package/dist/integration-C5YM61yl.mjs +0 -118
  44. package/dist/logs.d.mts +0 -71
  45. package/dist/logs.mjs +0 -61
  46. package/dist/schemas.d.mts +0 -77
  47. package/dist/schemas.mjs +0 -68
  48. package/dist/segments.d.mts +0 -112
  49. package/dist/segments.mjs +0 -120
  50. package/dist/templates.d.mts +0 -193
  51. package/dist/templates.mjs +0 -151
  52. package/dist/topics.d.mts +0 -125
  53. package/dist/topics.mjs +0 -113
  54. package/dist/verification.d.mts +0 -49
  55. package/dist/verification.mjs +0 -139
  56. package/dist/webhooks.d.mts +0 -285
  57. package/dist/webhooks.mjs +0 -124
@@ -0,0 +1,1292 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/schemas/api-keys.d.ts
4
+ declare const apiKeyCreatedSchema: z.ZodObject<{
5
+ id: z.ZodString;
6
+ token: z.ZodString;
7
+ }, z.core.$loose>;
8
+ declare const listApiKeysResponseSchema: z.ZodObject<{
9
+ object: z.ZodLiteral<"list">;
10
+ has_more: z.ZodBoolean;
11
+ data: z.ZodArray<z.ZodObject<{
12
+ id: z.ZodString;
13
+ name: z.ZodOptional<z.ZodString>;
14
+ created_at: z.ZodOptional<z.ZodString>;
15
+ }, z.core.$loose>>;
16
+ }, z.core.$strip>;
17
+ //#endregion
18
+ //#region src/schemas/broadcasts.d.ts
19
+ declare const broadcastDetailSchema: z.ZodObject<{
20
+ id: z.ZodString;
21
+ name: z.ZodOptional<z.ZodString>;
22
+ status: z.ZodOptional<z.ZodUnion<[z.ZodEnum<{
23
+ draft: "draft";
24
+ scheduled: "scheduled";
25
+ queued: "queued";
26
+ sending: "sending";
27
+ sent: "sent";
28
+ cancelled: "cancelled";
29
+ failed: "failed";
30
+ }>, z.ZodString]>>;
31
+ audience_id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
32
+ segment_id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
33
+ created_at: z.ZodOptional<z.ZodString>;
34
+ updated_at: z.ZodOptional<z.ZodString>;
35
+ scheduled_at: z.ZodNullable<z.ZodOptional<z.ZodString>>;
36
+ sent_at: z.ZodNullable<z.ZodOptional<z.ZodString>>;
37
+ from: z.ZodOptional<z.ZodString>;
38
+ subject: z.ZodOptional<z.ZodString>;
39
+ reply_to: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
40
+ preview_text: z.ZodNullable<z.ZodOptional<z.ZodString>>;
41
+ html: z.ZodNullable<z.ZodOptional<z.ZodString>>;
42
+ text: z.ZodNullable<z.ZodOptional<z.ZodString>>;
43
+ }, z.core.$loose>;
44
+ declare const listBroadcastsResponseSchema: z.ZodObject<{
45
+ object: z.ZodLiteral<"list">;
46
+ has_more: z.ZodBoolean;
47
+ data: z.ZodArray<z.ZodObject<{
48
+ id: z.ZodString;
49
+ name: z.ZodOptional<z.ZodString>;
50
+ status: z.ZodOptional<z.ZodUnion<[z.ZodEnum<{
51
+ draft: "draft";
52
+ scheduled: "scheduled";
53
+ queued: "queued";
54
+ sending: "sending";
55
+ sent: "sent";
56
+ cancelled: "cancelled";
57
+ failed: "failed";
58
+ }>, z.ZodString]>>;
59
+ audience_id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
60
+ segment_id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
61
+ created_at: z.ZodOptional<z.ZodString>;
62
+ updated_at: z.ZodOptional<z.ZodString>;
63
+ scheduled_at: z.ZodNullable<z.ZodOptional<z.ZodString>>;
64
+ sent_at: z.ZodNullable<z.ZodOptional<z.ZodString>>;
65
+ }, z.core.$loose>>;
66
+ }, z.core.$strip>;
67
+ declare const broadcastCreateInputSchema: z.ZodObject<{
68
+ name: z.ZodOptional<z.ZodString>;
69
+ from: z.ZodOptional<z.ZodString>;
70
+ subject: z.ZodOptional<z.ZodString>;
71
+ reply_to: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
72
+ preview_text: z.ZodOptional<z.ZodString>;
73
+ html: z.ZodOptional<z.ZodString>;
74
+ text: z.ZodOptional<z.ZodString>;
75
+ template: z.ZodOptional<z.ZodObject<{
76
+ id: z.ZodString;
77
+ variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>>;
78
+ }, z.core.$strip>>;
79
+ audience_id: z.ZodOptional<z.ZodString>;
80
+ segment_id: z.ZodOptional<z.ZodString>;
81
+ scheduled_at: z.ZodOptional<z.ZodString>;
82
+ }, z.core.$strip>;
83
+ //#endregion
84
+ //#region src/schemas/common.d.ts
85
+ /**
86
+ * Paginated list envelope returned by most Resend list endpoints.
87
+ *
88
+ * `object` is always the literal `'list'`, `has_more` drives cursor
89
+ * pagination, `data` is the actual resource array. Callers pass a
90
+ * `z.array(schema)` for `data` when parsing a concrete response.
91
+ */
92
+ declare function resendListEnvelope<T extends z.ZodTypeAny>(itemSchema: T): z.ZodObject<{
93
+ object: z.ZodLiteral<'list'>;
94
+ has_more: z.ZodBoolean;
95
+ data: z.ZodArray<T>;
96
+ }>;
97
+ type ResendListEnvelope<T> = {
98
+ readonly object: 'list';
99
+ readonly has_more: boolean;
100
+ readonly data: readonly T[];
101
+ };
102
+ /**
103
+ * Cursor-pagination query parameters accepted by every paginated Resend
104
+ * endpoint. `limit` is 1-100 inclusive (Resend default 20); `after` and
105
+ * `before` are opaque IDs. Only one of `after`/`before` may be set per
106
+ * request — validated at the operation layer.
107
+ */
108
+ declare const paginationQuerySchema: z.ZodObject<{
109
+ limit: z.ZodOptional<z.ZodNumber>;
110
+ after: z.ZodOptional<z.ZodString>;
111
+ before: z.ZodOptional<z.ZodString>;
112
+ }, z.core.$strip>;
113
+ type PaginationQuery = z.infer<typeof paginationQuerySchema>;
114
+ /**
115
+ * Regions offered by Resend at domain creation.
116
+ * See <https://resend.com/docs/dashboard/domains/regions>.
117
+ */
118
+ declare const resendRegionSchema: z.ZodEnum<{
119
+ "us-east-1": "us-east-1";
120
+ "eu-west-1": "eu-west-1";
121
+ "sa-east-1": "sa-east-1";
122
+ "ap-northeast-1": "ap-northeast-1";
123
+ }>;
124
+ type ResendRegion = z.infer<typeof resendRegionSchema>;
125
+ /**
126
+ * TLS policy on a Resend domain.
127
+ * - `opportunistic`: attempt TLS, fall back to plaintext if rejected.
128
+ * - `enforced`: require TLS, drop the message otherwise.
129
+ */
130
+ declare const resendTlsPolicySchema: z.ZodEnum<{
131
+ opportunistic: "opportunistic";
132
+ enforced: "enforced";
133
+ }>;
134
+ type ResendTlsPolicy = z.infer<typeof resendTlsPolicySchema>;
135
+ /**
136
+ * Enabled/disabled capability flag on a Resend domain. Used on both
137
+ * `sending` and `receiving` sides of `capabilities`.
138
+ */
139
+ declare const resendCapabilityStateSchema: z.ZodEnum<{
140
+ enabled: "enabled";
141
+ disabled: "disabled";
142
+ }>;
143
+ type ResendCapabilityState = z.infer<typeof resendCapabilityStateSchema>;
144
+ /**
145
+ * Permission tier on a Resend API key. Two tiers:
146
+ * - `full_access`: every endpoint.
147
+ * - `sending_access`: send emails only. Can be further restricted to a
148
+ * single `domain_id`.
149
+ *
150
+ * Source: <https://resend.com/docs/api-reference/api-keys/create-api-key>.
151
+ */
152
+ declare const resendApiKeyPermissionSchema: z.ZodEnum<{
153
+ full_access: "full_access";
154
+ sending_access: "sending_access";
155
+ }>;
156
+ type ResendApiKeyPermission = z.infer<typeof resendApiKeyPermissionSchema>;
157
+ //#endregion
158
+ //#region src/schemas/contact-properties.d.ts
159
+ declare const contactPropertyTypeSchema: z.ZodEnum<{
160
+ string: "string";
161
+ number: "number";
162
+ boolean: "boolean";
163
+ date: "date";
164
+ }>;
165
+ declare const contactPropertySchema: z.ZodObject<{
166
+ id: z.ZodString;
167
+ key: z.ZodString;
168
+ type: z.ZodEnum<{
169
+ string: "string";
170
+ number: "number";
171
+ boolean: "boolean";
172
+ date: "date";
173
+ }>;
174
+ label: z.ZodOptional<z.ZodString>;
175
+ created_at: z.ZodOptional<z.ZodString>;
176
+ updated_at: z.ZodOptional<z.ZodString>;
177
+ }, z.core.$loose>;
178
+ declare const listContactPropertiesResponseSchema: z.ZodObject<{
179
+ object: z.ZodLiteral<"list">;
180
+ has_more: z.ZodBoolean;
181
+ data: z.ZodArray<z.ZodObject<{
182
+ id: z.ZodString;
183
+ key: z.ZodString;
184
+ type: z.ZodEnum<{
185
+ string: "string";
186
+ number: "number";
187
+ boolean: "boolean";
188
+ date: "date";
189
+ }>;
190
+ label: z.ZodOptional<z.ZodString>;
191
+ created_at: z.ZodOptional<z.ZodString>;
192
+ updated_at: z.ZodOptional<z.ZodString>;
193
+ }, z.core.$loose>>;
194
+ }, z.core.$strip>;
195
+ //#endregion
196
+ //#region src/schemas/contacts.d.ts
197
+ declare const contactPropertiesValueSchema: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>;
198
+ declare const contactDetailSchema: z.ZodObject<{
199
+ id: z.ZodString;
200
+ email: z.ZodString;
201
+ first_name: z.ZodNullable<z.ZodOptional<z.ZodString>>;
202
+ last_name: z.ZodNullable<z.ZodOptional<z.ZodString>>;
203
+ unsubscribed: z.ZodOptional<z.ZodBoolean>;
204
+ created_at: z.ZodOptional<z.ZodString>;
205
+ updated_at: z.ZodOptional<z.ZodString>;
206
+ properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>>;
207
+ segment_ids: z.ZodOptional<z.ZodArray<z.ZodString>>;
208
+ }, z.core.$loose>;
209
+ declare const topicSubscriptionSchema: z.ZodObject<{
210
+ topic_id: z.ZodString;
211
+ status: z.ZodEnum<{
212
+ opt_in: "opt_in";
213
+ opt_out: "opt_out";
214
+ }>;
215
+ }, z.core.$strip>;
216
+ declare const listContactsResponseSchema: z.ZodObject<{
217
+ object: z.ZodLiteral<"list">;
218
+ has_more: z.ZodBoolean;
219
+ data: z.ZodArray<z.ZodObject<{
220
+ id: z.ZodString;
221
+ email: z.ZodString;
222
+ first_name: z.ZodNullable<z.ZodOptional<z.ZodString>>;
223
+ last_name: z.ZodNullable<z.ZodOptional<z.ZodString>>;
224
+ unsubscribed: z.ZodOptional<z.ZodBoolean>;
225
+ created_at: z.ZodOptional<z.ZodString>;
226
+ updated_at: z.ZodOptional<z.ZodString>;
227
+ }, z.core.$loose>>;
228
+ }, z.core.$strip>;
229
+ declare const listContactSegmentsResponseSchema: z.ZodObject<{
230
+ object: z.ZodLiteral<"list">;
231
+ has_more: z.ZodBoolean;
232
+ data: z.ZodArray<z.ZodObject<{
233
+ id: z.ZodString;
234
+ name: z.ZodOptional<z.ZodString>;
235
+ created_at: z.ZodOptional<z.ZodString>;
236
+ }, z.core.$loose>>;
237
+ }, z.core.$strip>;
238
+ declare const contactTopicsResponseSchema: z.ZodObject<{
239
+ data: z.ZodArray<z.ZodObject<{
240
+ topic_id: z.ZodString;
241
+ status: z.ZodEnum<{
242
+ opt_in: "opt_in";
243
+ opt_out: "opt_out";
244
+ }>;
245
+ }, z.core.$loose>>;
246
+ }, z.core.$loose>;
247
+ //#endregion
248
+ //#region src/schemas/domains.d.ts
249
+ declare const domainCapabilitiesSchema: z.ZodObject<{
250
+ sending: z.ZodOptional<z.ZodEnum<{
251
+ enabled: "enabled";
252
+ disabled: "disabled";
253
+ }>>;
254
+ receiving: z.ZodOptional<z.ZodEnum<{
255
+ enabled: "enabled";
256
+ disabled: "disabled";
257
+ }>>;
258
+ }, z.core.$strip>;
259
+ declare const domainDetailSchema: z.ZodObject<{
260
+ id: z.ZodString;
261
+ name: z.ZodOptional<z.ZodString>;
262
+ region: z.ZodOptional<z.ZodEnum<{
263
+ "us-east-1": "us-east-1";
264
+ "eu-west-1": "eu-west-1";
265
+ "sa-east-1": "sa-east-1";
266
+ "ap-northeast-1": "ap-northeast-1";
267
+ }>>;
268
+ status: z.ZodOptional<z.ZodString>;
269
+ created_at: z.ZodOptional<z.ZodString>;
270
+ open_tracking: z.ZodOptional<z.ZodBoolean>;
271
+ click_tracking: z.ZodOptional<z.ZodBoolean>;
272
+ tracking_subdomain: z.ZodNullable<z.ZodOptional<z.ZodString>>;
273
+ custom_return_path: z.ZodNullable<z.ZodOptional<z.ZodString>>;
274
+ tls: z.ZodOptional<z.ZodEnum<{
275
+ opportunistic: "opportunistic";
276
+ enforced: "enforced";
277
+ }>>;
278
+ capabilities: z.ZodOptional<z.ZodObject<{
279
+ sending: z.ZodOptional<z.ZodEnum<{
280
+ enabled: "enabled";
281
+ disabled: "disabled";
282
+ }>>;
283
+ receiving: z.ZodOptional<z.ZodEnum<{
284
+ enabled: "enabled";
285
+ disabled: "disabled";
286
+ }>>;
287
+ }, z.core.$strip>>;
288
+ records: z.ZodOptional<z.ZodArray<z.ZodObject<{
289
+ record: z.ZodOptional<z.ZodString>;
290
+ name: z.ZodOptional<z.ZodString>;
291
+ type: z.ZodOptional<z.ZodString>;
292
+ value: z.ZodOptional<z.ZodString>;
293
+ ttl: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
294
+ priority: z.ZodOptional<z.ZodNumber>;
295
+ status: z.ZodOptional<z.ZodString>;
296
+ }, z.core.$loose>>>;
297
+ }, z.core.$loose>;
298
+ declare const listDomainsResponseSchema: z.ZodObject<{
299
+ object: z.ZodLiteral<"list">;
300
+ has_more: z.ZodBoolean;
301
+ data: z.ZodArray<z.ZodObject<{
302
+ id: z.ZodString;
303
+ name: z.ZodOptional<z.ZodString>;
304
+ region: z.ZodOptional<z.ZodEnum<{
305
+ "us-east-1": "us-east-1";
306
+ "eu-west-1": "eu-west-1";
307
+ "sa-east-1": "sa-east-1";
308
+ "ap-northeast-1": "ap-northeast-1";
309
+ }>>;
310
+ status: z.ZodOptional<z.ZodString>;
311
+ created_at: z.ZodOptional<z.ZodString>;
312
+ }, z.core.$loose>>;
313
+ }, z.core.$strip>;
314
+ //#endregion
315
+ //#region src/schemas/emails.d.ts
316
+ /** Input accepted by `sendEmail`. Includes attachments + scheduling. */
317
+ declare const sendEmailInputSchema: z.ZodObject<{
318
+ from: z.ZodString;
319
+ to: z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>;
320
+ subject: z.ZodOptional<z.ZodString>;
321
+ cc: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
322
+ bcc: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
323
+ reply_to: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
324
+ html: z.ZodOptional<z.ZodString>;
325
+ text: z.ZodOptional<z.ZodString>;
326
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
327
+ tags: z.ZodOptional<z.ZodArray<z.ZodObject<{
328
+ name: z.ZodString;
329
+ value: z.ZodString;
330
+ }, z.core.$strip>>>;
331
+ topic_id: z.ZodOptional<z.ZodString>;
332
+ template: z.ZodOptional<z.ZodObject<{
333
+ id: z.ZodString;
334
+ variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>>;
335
+ }, z.core.$strip>>;
336
+ attachments: z.ZodOptional<z.ZodArray<z.ZodObject<{
337
+ filename: z.ZodString;
338
+ content: z.ZodOptional<z.ZodString>;
339
+ path: z.ZodOptional<z.ZodString>;
340
+ content_type: z.ZodOptional<z.ZodString>;
341
+ content_id: z.ZodOptional<z.ZodString>;
342
+ }, z.core.$strip>>>;
343
+ scheduled_at: z.ZodOptional<z.ZodString>;
344
+ idempotency_key: z.ZodOptional<z.ZodString>;
345
+ }, z.core.$strip>;
346
+ /** Input accepted by `sendBatchEmails`. Up to 100 messages per request. */
347
+ declare const batchSendInputSchema: z.ZodObject<{
348
+ emails: z.ZodArray<z.ZodObject<{
349
+ from: z.ZodString;
350
+ to: z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>;
351
+ subject: z.ZodOptional<z.ZodString>;
352
+ cc: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
353
+ bcc: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
354
+ reply_to: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
355
+ html: z.ZodOptional<z.ZodString>;
356
+ text: z.ZodOptional<z.ZodString>;
357
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
358
+ tags: z.ZodOptional<z.ZodArray<z.ZodObject<{
359
+ name: z.ZodString;
360
+ value: z.ZodString;
361
+ }, z.core.$strip>>>;
362
+ topic_id: z.ZodOptional<z.ZodString>;
363
+ template: z.ZodOptional<z.ZodObject<{
364
+ id: z.ZodString;
365
+ variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>>;
366
+ }, z.core.$strip>>;
367
+ }, z.core.$strip>>;
368
+ idempotency_key: z.ZodOptional<z.ZodString>;
369
+ }, z.core.$strip>;
370
+ declare const sendEmailResponseSchema: z.ZodObject<{
371
+ id: z.ZodString;
372
+ }, z.core.$strip>;
373
+ declare const batchSendResponseSchema: z.ZodObject<{
374
+ data: z.ZodArray<z.ZodObject<{
375
+ id: z.ZodString;
376
+ }, z.core.$strip>>;
377
+ }, z.core.$strip>;
378
+ declare const emailDetailSchema: z.ZodObject<{
379
+ id: z.ZodString;
380
+ object: z.ZodOptional<z.ZodLiteral<"email">>;
381
+ created_at: z.ZodOptional<z.ZodString>;
382
+ to: z.ZodOptional<z.ZodArray<z.ZodString>>;
383
+ from: z.ZodOptional<z.ZodString>;
384
+ subject: z.ZodOptional<z.ZodString>;
385
+ bcc: z.ZodOptional<z.ZodArray<z.ZodString>>;
386
+ cc: z.ZodOptional<z.ZodArray<z.ZodString>>;
387
+ reply_to: z.ZodOptional<z.ZodArray<z.ZodString>>;
388
+ last_event: z.ZodOptional<z.ZodString>;
389
+ scheduled_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
390
+ html: z.ZodNullable<z.ZodOptional<z.ZodString>>;
391
+ text: z.ZodNullable<z.ZodOptional<z.ZodString>>;
392
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
393
+ tags: z.ZodOptional<z.ZodArray<z.ZodObject<{
394
+ name: z.ZodString;
395
+ value: z.ZodString;
396
+ }, z.core.$strip>>>;
397
+ }, z.core.$loose>;
398
+ declare const attachmentDetailSchema: z.ZodObject<{
399
+ id: z.ZodString;
400
+ filename: z.ZodOptional<z.ZodString>;
401
+ content_type: z.ZodOptional<z.ZodString>;
402
+ content_id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
403
+ content_disposition: z.ZodNullable<z.ZodOptional<z.ZodString>>;
404
+ size: z.ZodOptional<z.ZodNumber>;
405
+ url: z.ZodOptional<z.ZodString>;
406
+ }, z.core.$loose>;
407
+ declare const listEmailsResponseSchema: z.ZodObject<{
408
+ object: z.ZodLiteral<"list">;
409
+ has_more: z.ZodBoolean;
410
+ data: z.ZodArray<z.ZodObject<{
411
+ id: z.ZodString;
412
+ object: z.ZodOptional<z.ZodLiteral<"email">>;
413
+ created_at: z.ZodOptional<z.ZodString>;
414
+ to: z.ZodOptional<z.ZodArray<z.ZodString>>;
415
+ from: z.ZodOptional<z.ZodString>;
416
+ subject: z.ZodOptional<z.ZodString>;
417
+ bcc: z.ZodOptional<z.ZodArray<z.ZodString>>;
418
+ cc: z.ZodOptional<z.ZodArray<z.ZodString>>;
419
+ reply_to: z.ZodOptional<z.ZodArray<z.ZodString>>;
420
+ last_event: z.ZodOptional<z.ZodString>;
421
+ scheduled_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
422
+ }, z.core.$loose>>;
423
+ }, z.core.$strip>;
424
+ declare const listAttachmentsResponseSchema: z.ZodObject<{
425
+ object: z.ZodLiteral<"list">;
426
+ has_more: z.ZodBoolean;
427
+ data: z.ZodArray<z.ZodObject<{
428
+ id: z.ZodString;
429
+ filename: z.ZodOptional<z.ZodString>;
430
+ content_type: z.ZodOptional<z.ZodString>;
431
+ content_id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
432
+ content_disposition: z.ZodNullable<z.ZodOptional<z.ZodString>>;
433
+ size: z.ZodOptional<z.ZodNumber>;
434
+ }, z.core.$loose>>;
435
+ }, z.core.$strip>;
436
+ //#endregion
437
+ //#region src/schemas/emails-receiving.d.ts
438
+ declare const receivedAttachmentDetailSchema: z.ZodObject<{
439
+ id: z.ZodString;
440
+ filename: z.ZodOptional<z.ZodString>;
441
+ content_type: z.ZodOptional<z.ZodString>;
442
+ content_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
443
+ content_disposition: z.ZodOptional<z.ZodNullable<z.ZodString>>;
444
+ size: z.ZodOptional<z.ZodNumber>;
445
+ url: z.ZodOptional<z.ZodString>;
446
+ }, z.core.$loose>;
447
+ declare const receivedEmailDetailSchema: z.ZodObject<{
448
+ id: z.ZodString;
449
+ object: z.ZodOptional<z.ZodLiteral<"email">>;
450
+ created_at: z.ZodOptional<z.ZodString>;
451
+ to: z.ZodOptional<z.ZodArray<z.ZodString>>;
452
+ from: z.ZodOptional<z.ZodString>;
453
+ bcc: z.ZodOptional<z.ZodArray<z.ZodString>>;
454
+ cc: z.ZodOptional<z.ZodArray<z.ZodString>>;
455
+ reply_to: z.ZodOptional<z.ZodArray<z.ZodString>>;
456
+ subject: z.ZodOptional<z.ZodString>;
457
+ message_id: z.ZodOptional<z.ZodString>;
458
+ attachments: z.ZodOptional<z.ZodArray<z.ZodObject<{
459
+ id: z.ZodString;
460
+ filename: z.ZodOptional<z.ZodString>;
461
+ content_type: z.ZodOptional<z.ZodString>;
462
+ content_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
463
+ content_disposition: z.ZodOptional<z.ZodNullable<z.ZodString>>;
464
+ size: z.ZodOptional<z.ZodNumber>;
465
+ }, z.core.$loose>>>;
466
+ html: z.ZodOptional<z.ZodNullable<z.ZodString>>;
467
+ text: z.ZodOptional<z.ZodNullable<z.ZodString>>;
468
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
469
+ }, z.core.$loose>;
470
+ declare const listReceivedEmailsResponseSchema: z.ZodObject<{
471
+ object: z.ZodLiteral<"list">;
472
+ has_more: z.ZodBoolean;
473
+ data: z.ZodArray<z.ZodObject<{
474
+ id: z.ZodString;
475
+ object: z.ZodOptional<z.ZodLiteral<"email">>;
476
+ created_at: z.ZodOptional<z.ZodString>;
477
+ to: z.ZodOptional<z.ZodArray<z.ZodString>>;
478
+ from: z.ZodOptional<z.ZodString>;
479
+ bcc: z.ZodOptional<z.ZodArray<z.ZodString>>;
480
+ cc: z.ZodOptional<z.ZodArray<z.ZodString>>;
481
+ reply_to: z.ZodOptional<z.ZodArray<z.ZodString>>;
482
+ subject: z.ZodOptional<z.ZodString>;
483
+ message_id: z.ZodOptional<z.ZodString>;
484
+ attachments: z.ZodOptional<z.ZodArray<z.ZodObject<{
485
+ id: z.ZodString;
486
+ filename: z.ZodOptional<z.ZodString>;
487
+ content_type: z.ZodOptional<z.ZodString>;
488
+ content_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
489
+ content_disposition: z.ZodOptional<z.ZodNullable<z.ZodString>>;
490
+ size: z.ZodOptional<z.ZodNumber>;
491
+ }, z.core.$loose>>>;
492
+ }, z.core.$loose>>;
493
+ }, z.core.$strip>;
494
+ declare const listReceivedAttachmentsResponseSchema: z.ZodObject<{
495
+ object: z.ZodLiteral<"list">;
496
+ has_more: z.ZodBoolean;
497
+ data: z.ZodArray<z.ZodObject<{
498
+ id: z.ZodString;
499
+ filename: z.ZodOptional<z.ZodString>;
500
+ content_type: z.ZodOptional<z.ZodString>;
501
+ content_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
502
+ content_disposition: z.ZodOptional<z.ZodNullable<z.ZodString>>;
503
+ size: z.ZodOptional<z.ZodNumber>;
504
+ }, z.core.$loose>>;
505
+ }, z.core.$strip>;
506
+ //#endregion
507
+ //#region src/schemas/events.d.ts
508
+ declare const RESEND_EMAIL_EVENT_NAMES: readonly ["email.sent", "email.delivered", "email.delivery_delayed", "email.bounced", "email.complained", "email.opened", "email.clicked", "email.failed", "email.received", "email.scheduled", "email.suppressed"];
509
+ declare const RESEND_DOMAIN_EVENT_NAMES: readonly ["domain.created", "domain.updated", "domain.deleted"];
510
+ declare const RESEND_CONTACT_EVENT_NAMES: readonly ["contact.created", "contact.updated", "contact.deleted"];
511
+ declare const RESEND_WEBHOOK_EVENT_NAMES: readonly ["email.sent", "email.delivered", "email.delivery_delayed", "email.bounced", "email.complained", "email.opened", "email.clicked", "email.failed", "email.received", "email.scheduled", "email.suppressed", "domain.created", "domain.updated", "domain.deleted", "contact.created", "contact.updated", "contact.deleted"];
512
+ type ResendEmailEventName = (typeof RESEND_EMAIL_EVENT_NAMES)[number];
513
+ type ResendDomainEventName = (typeof RESEND_DOMAIN_EVENT_NAMES)[number];
514
+ type ResendContactEventName = (typeof RESEND_CONTACT_EVENT_NAMES)[number];
515
+ type ResendWebhookEventName = (typeof RESEND_WEBHOOK_EVENT_NAMES)[number];
516
+ declare const resendEmailSentEventSchema: z.ZodObject<{
517
+ type: z.ZodLiteral<"email.sent">;
518
+ created_at: z.ZodOptional<z.ZodString>;
519
+ data: z.ZodObject<{
520
+ email_id: z.ZodString;
521
+ from: z.ZodOptional<z.ZodString>;
522
+ to: z.ZodOptional<z.ZodArray<z.ZodString>>;
523
+ subject: z.ZodOptional<z.ZodString>;
524
+ created_at: z.ZodOptional<z.ZodString>;
525
+ tags: z.ZodOptional<z.ZodArray<z.ZodObject<{
526
+ name: z.ZodString;
527
+ value: z.ZodString;
528
+ }, z.core.$strip>>>;
529
+ }, z.core.$loose>;
530
+ }, z.core.$loose>;
531
+ declare const resendEmailDeliveredEventSchema: z.ZodObject<{
532
+ type: z.ZodLiteral<"email.delivered">;
533
+ created_at: z.ZodOptional<z.ZodString>;
534
+ data: z.ZodObject<{
535
+ email_id: z.ZodString;
536
+ from: z.ZodOptional<z.ZodString>;
537
+ to: z.ZodOptional<z.ZodArray<z.ZodString>>;
538
+ subject: z.ZodOptional<z.ZodString>;
539
+ created_at: z.ZodOptional<z.ZodString>;
540
+ tags: z.ZodOptional<z.ZodArray<z.ZodObject<{
541
+ name: z.ZodString;
542
+ value: z.ZodString;
543
+ }, z.core.$strip>>>;
544
+ delivered_at: z.ZodOptional<z.ZodString>;
545
+ }, z.core.$loose>;
546
+ }, z.core.$loose>;
547
+ declare const resendEmailDeliveryDelayedEventSchema: z.ZodObject<{
548
+ type: z.ZodLiteral<"email.delivery_delayed">;
549
+ created_at: z.ZodOptional<z.ZodString>;
550
+ data: z.ZodObject<{
551
+ email_id: z.ZodString;
552
+ from: z.ZodOptional<z.ZodString>;
553
+ to: z.ZodOptional<z.ZodArray<z.ZodString>>;
554
+ subject: z.ZodOptional<z.ZodString>;
555
+ created_at: z.ZodOptional<z.ZodString>;
556
+ tags: z.ZodOptional<z.ZodArray<z.ZodObject<{
557
+ name: z.ZodString;
558
+ value: z.ZodString;
559
+ }, z.core.$strip>>>;
560
+ }, z.core.$loose>;
561
+ }, z.core.$loose>;
562
+ declare const resendEmailBouncedEventSchema: z.ZodObject<{
563
+ type: z.ZodLiteral<"email.bounced">;
564
+ created_at: z.ZodOptional<z.ZodString>;
565
+ data: z.ZodObject<{
566
+ email_id: z.ZodString;
567
+ from: z.ZodOptional<z.ZodString>;
568
+ to: z.ZodOptional<z.ZodArray<z.ZodString>>;
569
+ subject: z.ZodOptional<z.ZodString>;
570
+ created_at: z.ZodOptional<z.ZodString>;
571
+ tags: z.ZodOptional<z.ZodArray<z.ZodObject<{
572
+ name: z.ZodString;
573
+ value: z.ZodString;
574
+ }, z.core.$strip>>>;
575
+ bounce: z.ZodOptional<z.ZodObject<{
576
+ type: z.ZodOptional<z.ZodUnion<[z.ZodEnum<{
577
+ hard: "hard";
578
+ soft: "soft";
579
+ block: "block";
580
+ }>, z.ZodString]>>;
581
+ classification: z.ZodOptional<z.ZodString>;
582
+ message: z.ZodOptional<z.ZodString>;
583
+ }, z.core.$loose>>;
584
+ }, z.core.$loose>;
585
+ }, z.core.$loose>;
586
+ declare const resendEmailComplainedEventSchema: z.ZodObject<{
587
+ type: z.ZodLiteral<"email.complained">;
588
+ created_at: z.ZodOptional<z.ZodString>;
589
+ data: z.ZodObject<{
590
+ email_id: z.ZodString;
591
+ from: z.ZodOptional<z.ZodString>;
592
+ to: z.ZodOptional<z.ZodArray<z.ZodString>>;
593
+ subject: z.ZodOptional<z.ZodString>;
594
+ created_at: z.ZodOptional<z.ZodString>;
595
+ tags: z.ZodOptional<z.ZodArray<z.ZodObject<{
596
+ name: z.ZodString;
597
+ value: z.ZodString;
598
+ }, z.core.$strip>>>;
599
+ }, z.core.$loose>;
600
+ }, z.core.$loose>;
601
+ declare const resendEmailOpenedEventSchema: z.ZodObject<{
602
+ type: z.ZodLiteral<"email.opened">;
603
+ created_at: z.ZodOptional<z.ZodString>;
604
+ data: z.ZodObject<{
605
+ email_id: z.ZodString;
606
+ from: z.ZodOptional<z.ZodString>;
607
+ to: z.ZodOptional<z.ZodArray<z.ZodString>>;
608
+ subject: z.ZodOptional<z.ZodString>;
609
+ created_at: z.ZodOptional<z.ZodString>;
610
+ tags: z.ZodOptional<z.ZodArray<z.ZodObject<{
611
+ name: z.ZodString;
612
+ value: z.ZodString;
613
+ }, z.core.$strip>>>;
614
+ user_agent: z.ZodOptional<z.ZodString>;
615
+ ip: z.ZodOptional<z.ZodString>;
616
+ opened_at: z.ZodOptional<z.ZodString>;
617
+ is_machine_opened: z.ZodOptional<z.ZodBoolean>;
618
+ }, z.core.$loose>;
619
+ }, z.core.$loose>;
620
+ declare const resendEmailClickedEventSchema: z.ZodObject<{
621
+ type: z.ZodLiteral<"email.clicked">;
622
+ created_at: z.ZodOptional<z.ZodString>;
623
+ data: z.ZodObject<{
624
+ email_id: z.ZodString;
625
+ from: z.ZodOptional<z.ZodString>;
626
+ to: z.ZodOptional<z.ZodArray<z.ZodString>>;
627
+ subject: z.ZodOptional<z.ZodString>;
628
+ created_at: z.ZodOptional<z.ZodString>;
629
+ tags: z.ZodOptional<z.ZodArray<z.ZodObject<{
630
+ name: z.ZodString;
631
+ value: z.ZodString;
632
+ }, z.core.$strip>>>;
633
+ link: z.ZodOptional<z.ZodString>;
634
+ user_agent: z.ZodOptional<z.ZodString>;
635
+ ip: z.ZodOptional<z.ZodString>;
636
+ clicked_at: z.ZodOptional<z.ZodString>;
637
+ }, z.core.$loose>;
638
+ }, z.core.$loose>;
639
+ declare const resendEmailFailedEventSchema: z.ZodObject<{
640
+ type: z.ZodLiteral<"email.failed">;
641
+ created_at: z.ZodOptional<z.ZodString>;
642
+ data: z.ZodObject<{
643
+ email_id: z.ZodString;
644
+ from: z.ZodOptional<z.ZodString>;
645
+ to: z.ZodOptional<z.ZodArray<z.ZodString>>;
646
+ subject: z.ZodOptional<z.ZodString>;
647
+ created_at: z.ZodOptional<z.ZodString>;
648
+ tags: z.ZodOptional<z.ZodArray<z.ZodObject<{
649
+ name: z.ZodString;
650
+ value: z.ZodString;
651
+ }, z.core.$strip>>>;
652
+ failed: z.ZodOptional<z.ZodObject<{
653
+ reason: z.ZodOptional<z.ZodString>;
654
+ code: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
655
+ }, z.core.$loose>>;
656
+ }, z.core.$loose>;
657
+ }, z.core.$loose>;
658
+ declare const resendEmailReceivedEventSchema: z.ZodObject<{
659
+ type: z.ZodLiteral<"email.received">;
660
+ created_at: z.ZodOptional<z.ZodString>;
661
+ data: z.ZodObject<{
662
+ email_id: z.ZodString;
663
+ from: z.ZodOptional<z.ZodString>;
664
+ to: z.ZodOptional<z.ZodArray<z.ZodString>>;
665
+ subject: z.ZodOptional<z.ZodString>;
666
+ created_at: z.ZodOptional<z.ZodString>;
667
+ tags: z.ZodOptional<z.ZodArray<z.ZodObject<{
668
+ name: z.ZodString;
669
+ value: z.ZodString;
670
+ }, z.core.$strip>>>;
671
+ message_id: z.ZodOptional<z.ZodString>;
672
+ cc: z.ZodOptional<z.ZodArray<z.ZodString>>;
673
+ bcc: z.ZodOptional<z.ZodArray<z.ZodString>>;
674
+ reply_to: z.ZodOptional<z.ZodArray<z.ZodString>>;
675
+ attachments: z.ZodOptional<z.ZodArray<z.ZodObject<{
676
+ id: z.ZodOptional<z.ZodString>;
677
+ filename: z.ZodOptional<z.ZodString>;
678
+ content_type: z.ZodOptional<z.ZodString>;
679
+ content_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
680
+ content_disposition: z.ZodOptional<z.ZodNullable<z.ZodString>>;
681
+ }, z.core.$loose>>>;
682
+ }, z.core.$loose>;
683
+ }, z.core.$loose>;
684
+ declare const resendEmailScheduledEventSchema: z.ZodObject<{
685
+ type: z.ZodLiteral<"email.scheduled">;
686
+ created_at: z.ZodOptional<z.ZodString>;
687
+ data: z.ZodObject<{
688
+ email_id: z.ZodString;
689
+ from: z.ZodOptional<z.ZodString>;
690
+ to: z.ZodOptional<z.ZodArray<z.ZodString>>;
691
+ subject: z.ZodOptional<z.ZodString>;
692
+ created_at: z.ZodOptional<z.ZodString>;
693
+ tags: z.ZodOptional<z.ZodArray<z.ZodObject<{
694
+ name: z.ZodString;
695
+ value: z.ZodString;
696
+ }, z.core.$strip>>>;
697
+ scheduled_at: z.ZodOptional<z.ZodString>;
698
+ }, z.core.$loose>;
699
+ }, z.core.$loose>;
700
+ declare const resendEmailSuppressedEventSchema: z.ZodObject<{
701
+ type: z.ZodLiteral<"email.suppressed">;
702
+ created_at: z.ZodOptional<z.ZodString>;
703
+ data: z.ZodObject<{
704
+ email_id: z.ZodString;
705
+ from: z.ZodOptional<z.ZodString>;
706
+ to: z.ZodOptional<z.ZodArray<z.ZodString>>;
707
+ subject: z.ZodOptional<z.ZodString>;
708
+ created_at: z.ZodOptional<z.ZodString>;
709
+ tags: z.ZodOptional<z.ZodArray<z.ZodObject<{
710
+ name: z.ZodString;
711
+ value: z.ZodString;
712
+ }, z.core.$strip>>>;
713
+ reason: z.ZodOptional<z.ZodString>;
714
+ }, z.core.$loose>;
715
+ }, z.core.$loose>;
716
+ declare const resendDomainCreatedEventSchema: z.ZodObject<{
717
+ type: z.ZodLiteral<"domain.created">;
718
+ created_at: z.ZodOptional<z.ZodString>;
719
+ data: z.ZodObject<{
720
+ id: z.ZodString;
721
+ name: z.ZodOptional<z.ZodString>;
722
+ region: z.ZodOptional<z.ZodString>;
723
+ status: z.ZodOptional<z.ZodString>;
724
+ created_at: z.ZodOptional<z.ZodString>;
725
+ }, z.core.$loose>;
726
+ }, z.core.$loose>;
727
+ declare const resendDomainUpdatedEventSchema: z.ZodObject<{
728
+ type: z.ZodLiteral<"domain.updated">;
729
+ created_at: z.ZodOptional<z.ZodString>;
730
+ data: z.ZodObject<{
731
+ id: z.ZodString;
732
+ name: z.ZodOptional<z.ZodString>;
733
+ region: z.ZodOptional<z.ZodString>;
734
+ status: z.ZodOptional<z.ZodString>;
735
+ created_at: z.ZodOptional<z.ZodString>;
736
+ }, z.core.$loose>;
737
+ }, z.core.$loose>;
738
+ declare const resendDomainDeletedEventSchema: z.ZodObject<{
739
+ type: z.ZodLiteral<"domain.deleted">;
740
+ created_at: z.ZodOptional<z.ZodString>;
741
+ data: z.ZodObject<{
742
+ id: z.ZodString;
743
+ name: z.ZodOptional<z.ZodString>;
744
+ region: z.ZodOptional<z.ZodString>;
745
+ status: z.ZodOptional<z.ZodString>;
746
+ created_at: z.ZodOptional<z.ZodString>;
747
+ }, z.core.$loose>;
748
+ }, z.core.$loose>;
749
+ declare const resendContactCreatedEventSchema: z.ZodObject<{
750
+ type: z.ZodLiteral<"contact.created">;
751
+ created_at: z.ZodOptional<z.ZodString>;
752
+ data: z.ZodObject<{
753
+ id: z.ZodString;
754
+ email: z.ZodOptional<z.ZodString>;
755
+ first_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
756
+ last_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
757
+ unsubscribed: z.ZodOptional<z.ZodBoolean>;
758
+ created_at: z.ZodOptional<z.ZodString>;
759
+ updated_at: z.ZodOptional<z.ZodString>;
760
+ }, z.core.$loose>;
761
+ }, z.core.$loose>;
762
+ declare const resendContactUpdatedEventSchema: z.ZodObject<{
763
+ type: z.ZodLiteral<"contact.updated">;
764
+ created_at: z.ZodOptional<z.ZodString>;
765
+ data: z.ZodObject<{
766
+ id: z.ZodString;
767
+ email: z.ZodOptional<z.ZodString>;
768
+ first_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
769
+ last_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
770
+ unsubscribed: z.ZodOptional<z.ZodBoolean>;
771
+ created_at: z.ZodOptional<z.ZodString>;
772
+ updated_at: z.ZodOptional<z.ZodString>;
773
+ }, z.core.$loose>;
774
+ }, z.core.$loose>;
775
+ declare const resendContactDeletedEventSchema: z.ZodObject<{
776
+ type: z.ZodLiteral<"contact.deleted">;
777
+ created_at: z.ZodOptional<z.ZodString>;
778
+ data: z.ZodObject<{
779
+ id: z.ZodString;
780
+ email: z.ZodOptional<z.ZodString>;
781
+ first_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
782
+ last_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
783
+ unsubscribed: z.ZodOptional<z.ZodBoolean>;
784
+ created_at: z.ZodOptional<z.ZodString>;
785
+ updated_at: z.ZodOptional<z.ZodString>;
786
+ }, z.core.$loose>;
787
+ }, z.core.$loose>;
788
+ declare const resendWebhookEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
789
+ type: z.ZodLiteral<"email.sent">;
790
+ created_at: z.ZodOptional<z.ZodString>;
791
+ data: z.ZodObject<{
792
+ email_id: z.ZodString;
793
+ from: z.ZodOptional<z.ZodString>;
794
+ to: z.ZodOptional<z.ZodArray<z.ZodString>>;
795
+ subject: z.ZodOptional<z.ZodString>;
796
+ created_at: z.ZodOptional<z.ZodString>;
797
+ tags: z.ZodOptional<z.ZodArray<z.ZodObject<{
798
+ name: z.ZodString;
799
+ value: z.ZodString;
800
+ }, z.core.$strip>>>;
801
+ }, z.core.$loose>;
802
+ }, z.core.$loose>, z.ZodObject<{
803
+ type: z.ZodLiteral<"email.delivered">;
804
+ created_at: z.ZodOptional<z.ZodString>;
805
+ data: z.ZodObject<{
806
+ email_id: z.ZodString;
807
+ from: z.ZodOptional<z.ZodString>;
808
+ to: z.ZodOptional<z.ZodArray<z.ZodString>>;
809
+ subject: z.ZodOptional<z.ZodString>;
810
+ created_at: z.ZodOptional<z.ZodString>;
811
+ tags: z.ZodOptional<z.ZodArray<z.ZodObject<{
812
+ name: z.ZodString;
813
+ value: z.ZodString;
814
+ }, z.core.$strip>>>;
815
+ delivered_at: z.ZodOptional<z.ZodString>;
816
+ }, z.core.$loose>;
817
+ }, z.core.$loose>, z.ZodObject<{
818
+ type: z.ZodLiteral<"email.delivery_delayed">;
819
+ created_at: z.ZodOptional<z.ZodString>;
820
+ data: z.ZodObject<{
821
+ email_id: z.ZodString;
822
+ from: z.ZodOptional<z.ZodString>;
823
+ to: z.ZodOptional<z.ZodArray<z.ZodString>>;
824
+ subject: z.ZodOptional<z.ZodString>;
825
+ created_at: z.ZodOptional<z.ZodString>;
826
+ tags: z.ZodOptional<z.ZodArray<z.ZodObject<{
827
+ name: z.ZodString;
828
+ value: z.ZodString;
829
+ }, z.core.$strip>>>;
830
+ }, z.core.$loose>;
831
+ }, z.core.$loose>, z.ZodObject<{
832
+ type: z.ZodLiteral<"email.bounced">;
833
+ created_at: z.ZodOptional<z.ZodString>;
834
+ data: z.ZodObject<{
835
+ email_id: z.ZodString;
836
+ from: z.ZodOptional<z.ZodString>;
837
+ to: z.ZodOptional<z.ZodArray<z.ZodString>>;
838
+ subject: z.ZodOptional<z.ZodString>;
839
+ created_at: z.ZodOptional<z.ZodString>;
840
+ tags: z.ZodOptional<z.ZodArray<z.ZodObject<{
841
+ name: z.ZodString;
842
+ value: z.ZodString;
843
+ }, z.core.$strip>>>;
844
+ bounce: z.ZodOptional<z.ZodObject<{
845
+ type: z.ZodOptional<z.ZodUnion<[z.ZodEnum<{
846
+ hard: "hard";
847
+ soft: "soft";
848
+ block: "block";
849
+ }>, z.ZodString]>>;
850
+ classification: z.ZodOptional<z.ZodString>;
851
+ message: z.ZodOptional<z.ZodString>;
852
+ }, z.core.$loose>>;
853
+ }, z.core.$loose>;
854
+ }, z.core.$loose>, z.ZodObject<{
855
+ type: z.ZodLiteral<"email.complained">;
856
+ created_at: z.ZodOptional<z.ZodString>;
857
+ data: z.ZodObject<{
858
+ email_id: z.ZodString;
859
+ from: z.ZodOptional<z.ZodString>;
860
+ to: z.ZodOptional<z.ZodArray<z.ZodString>>;
861
+ subject: z.ZodOptional<z.ZodString>;
862
+ created_at: z.ZodOptional<z.ZodString>;
863
+ tags: z.ZodOptional<z.ZodArray<z.ZodObject<{
864
+ name: z.ZodString;
865
+ value: z.ZodString;
866
+ }, z.core.$strip>>>;
867
+ }, z.core.$loose>;
868
+ }, z.core.$loose>, z.ZodObject<{
869
+ type: z.ZodLiteral<"email.opened">;
870
+ created_at: z.ZodOptional<z.ZodString>;
871
+ data: z.ZodObject<{
872
+ email_id: z.ZodString;
873
+ from: z.ZodOptional<z.ZodString>;
874
+ to: z.ZodOptional<z.ZodArray<z.ZodString>>;
875
+ subject: z.ZodOptional<z.ZodString>;
876
+ created_at: z.ZodOptional<z.ZodString>;
877
+ tags: z.ZodOptional<z.ZodArray<z.ZodObject<{
878
+ name: z.ZodString;
879
+ value: z.ZodString;
880
+ }, z.core.$strip>>>;
881
+ user_agent: z.ZodOptional<z.ZodString>;
882
+ ip: z.ZodOptional<z.ZodString>;
883
+ opened_at: z.ZodOptional<z.ZodString>;
884
+ is_machine_opened: z.ZodOptional<z.ZodBoolean>;
885
+ }, z.core.$loose>;
886
+ }, z.core.$loose>, z.ZodObject<{
887
+ type: z.ZodLiteral<"email.clicked">;
888
+ created_at: z.ZodOptional<z.ZodString>;
889
+ data: z.ZodObject<{
890
+ email_id: z.ZodString;
891
+ from: z.ZodOptional<z.ZodString>;
892
+ to: z.ZodOptional<z.ZodArray<z.ZodString>>;
893
+ subject: z.ZodOptional<z.ZodString>;
894
+ created_at: z.ZodOptional<z.ZodString>;
895
+ tags: z.ZodOptional<z.ZodArray<z.ZodObject<{
896
+ name: z.ZodString;
897
+ value: z.ZodString;
898
+ }, z.core.$strip>>>;
899
+ link: z.ZodOptional<z.ZodString>;
900
+ user_agent: z.ZodOptional<z.ZodString>;
901
+ ip: z.ZodOptional<z.ZodString>;
902
+ clicked_at: z.ZodOptional<z.ZodString>;
903
+ }, z.core.$loose>;
904
+ }, z.core.$loose>, z.ZodObject<{
905
+ type: z.ZodLiteral<"email.failed">;
906
+ created_at: z.ZodOptional<z.ZodString>;
907
+ data: z.ZodObject<{
908
+ email_id: z.ZodString;
909
+ from: z.ZodOptional<z.ZodString>;
910
+ to: z.ZodOptional<z.ZodArray<z.ZodString>>;
911
+ subject: z.ZodOptional<z.ZodString>;
912
+ created_at: z.ZodOptional<z.ZodString>;
913
+ tags: z.ZodOptional<z.ZodArray<z.ZodObject<{
914
+ name: z.ZodString;
915
+ value: z.ZodString;
916
+ }, z.core.$strip>>>;
917
+ failed: z.ZodOptional<z.ZodObject<{
918
+ reason: z.ZodOptional<z.ZodString>;
919
+ code: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
920
+ }, z.core.$loose>>;
921
+ }, z.core.$loose>;
922
+ }, z.core.$loose>, z.ZodObject<{
923
+ type: z.ZodLiteral<"email.received">;
924
+ created_at: z.ZodOptional<z.ZodString>;
925
+ data: z.ZodObject<{
926
+ email_id: z.ZodString;
927
+ from: z.ZodOptional<z.ZodString>;
928
+ to: z.ZodOptional<z.ZodArray<z.ZodString>>;
929
+ subject: z.ZodOptional<z.ZodString>;
930
+ created_at: z.ZodOptional<z.ZodString>;
931
+ tags: z.ZodOptional<z.ZodArray<z.ZodObject<{
932
+ name: z.ZodString;
933
+ value: z.ZodString;
934
+ }, z.core.$strip>>>;
935
+ message_id: z.ZodOptional<z.ZodString>;
936
+ cc: z.ZodOptional<z.ZodArray<z.ZodString>>;
937
+ bcc: z.ZodOptional<z.ZodArray<z.ZodString>>;
938
+ reply_to: z.ZodOptional<z.ZodArray<z.ZodString>>;
939
+ attachments: z.ZodOptional<z.ZodArray<z.ZodObject<{
940
+ id: z.ZodOptional<z.ZodString>;
941
+ filename: z.ZodOptional<z.ZodString>;
942
+ content_type: z.ZodOptional<z.ZodString>;
943
+ content_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
944
+ content_disposition: z.ZodOptional<z.ZodNullable<z.ZodString>>;
945
+ }, z.core.$loose>>>;
946
+ }, z.core.$loose>;
947
+ }, z.core.$loose>, z.ZodObject<{
948
+ type: z.ZodLiteral<"email.scheduled">;
949
+ created_at: z.ZodOptional<z.ZodString>;
950
+ data: z.ZodObject<{
951
+ email_id: z.ZodString;
952
+ from: z.ZodOptional<z.ZodString>;
953
+ to: z.ZodOptional<z.ZodArray<z.ZodString>>;
954
+ subject: z.ZodOptional<z.ZodString>;
955
+ created_at: z.ZodOptional<z.ZodString>;
956
+ tags: z.ZodOptional<z.ZodArray<z.ZodObject<{
957
+ name: z.ZodString;
958
+ value: z.ZodString;
959
+ }, z.core.$strip>>>;
960
+ scheduled_at: z.ZodOptional<z.ZodString>;
961
+ }, z.core.$loose>;
962
+ }, z.core.$loose>, z.ZodObject<{
963
+ type: z.ZodLiteral<"email.suppressed">;
964
+ created_at: z.ZodOptional<z.ZodString>;
965
+ data: z.ZodObject<{
966
+ email_id: z.ZodString;
967
+ from: z.ZodOptional<z.ZodString>;
968
+ to: z.ZodOptional<z.ZodArray<z.ZodString>>;
969
+ subject: z.ZodOptional<z.ZodString>;
970
+ created_at: z.ZodOptional<z.ZodString>;
971
+ tags: z.ZodOptional<z.ZodArray<z.ZodObject<{
972
+ name: z.ZodString;
973
+ value: z.ZodString;
974
+ }, z.core.$strip>>>;
975
+ reason: z.ZodOptional<z.ZodString>;
976
+ }, z.core.$loose>;
977
+ }, z.core.$loose>, z.ZodObject<{
978
+ type: z.ZodLiteral<"domain.created">;
979
+ created_at: z.ZodOptional<z.ZodString>;
980
+ data: z.ZodObject<{
981
+ id: z.ZodString;
982
+ name: z.ZodOptional<z.ZodString>;
983
+ region: z.ZodOptional<z.ZodString>;
984
+ status: z.ZodOptional<z.ZodString>;
985
+ created_at: z.ZodOptional<z.ZodString>;
986
+ }, z.core.$loose>;
987
+ }, z.core.$loose>, z.ZodObject<{
988
+ type: z.ZodLiteral<"domain.updated">;
989
+ created_at: z.ZodOptional<z.ZodString>;
990
+ data: z.ZodObject<{
991
+ id: z.ZodString;
992
+ name: z.ZodOptional<z.ZodString>;
993
+ region: z.ZodOptional<z.ZodString>;
994
+ status: z.ZodOptional<z.ZodString>;
995
+ created_at: z.ZodOptional<z.ZodString>;
996
+ }, z.core.$loose>;
997
+ }, z.core.$loose>, z.ZodObject<{
998
+ type: z.ZodLiteral<"domain.deleted">;
999
+ created_at: z.ZodOptional<z.ZodString>;
1000
+ data: z.ZodObject<{
1001
+ id: z.ZodString;
1002
+ name: z.ZodOptional<z.ZodString>;
1003
+ region: z.ZodOptional<z.ZodString>;
1004
+ status: z.ZodOptional<z.ZodString>;
1005
+ created_at: z.ZodOptional<z.ZodString>;
1006
+ }, z.core.$loose>;
1007
+ }, z.core.$loose>, z.ZodObject<{
1008
+ type: z.ZodLiteral<"contact.created">;
1009
+ created_at: z.ZodOptional<z.ZodString>;
1010
+ data: z.ZodObject<{
1011
+ id: z.ZodString;
1012
+ email: z.ZodOptional<z.ZodString>;
1013
+ first_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1014
+ last_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1015
+ unsubscribed: z.ZodOptional<z.ZodBoolean>;
1016
+ created_at: z.ZodOptional<z.ZodString>;
1017
+ updated_at: z.ZodOptional<z.ZodString>;
1018
+ }, z.core.$loose>;
1019
+ }, z.core.$loose>, z.ZodObject<{
1020
+ type: z.ZodLiteral<"contact.updated">;
1021
+ created_at: z.ZodOptional<z.ZodString>;
1022
+ data: z.ZodObject<{
1023
+ id: z.ZodString;
1024
+ email: z.ZodOptional<z.ZodString>;
1025
+ first_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1026
+ last_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1027
+ unsubscribed: z.ZodOptional<z.ZodBoolean>;
1028
+ created_at: z.ZodOptional<z.ZodString>;
1029
+ updated_at: z.ZodOptional<z.ZodString>;
1030
+ }, z.core.$loose>;
1031
+ }, z.core.$loose>, z.ZodObject<{
1032
+ type: z.ZodLiteral<"contact.deleted">;
1033
+ created_at: z.ZodOptional<z.ZodString>;
1034
+ data: z.ZodObject<{
1035
+ id: z.ZodString;
1036
+ email: z.ZodOptional<z.ZodString>;
1037
+ first_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1038
+ last_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1039
+ unsubscribed: z.ZodOptional<z.ZodBoolean>;
1040
+ created_at: z.ZodOptional<z.ZodString>;
1041
+ updated_at: z.ZodOptional<z.ZodString>;
1042
+ }, z.core.$loose>;
1043
+ }, z.core.$loose>], "type">;
1044
+ /**
1045
+ * Generic envelope used by `createWebhookTriggerBindingFactory`
1046
+ * when the trigger filter must parse the incoming type before the
1047
+ * discriminated-union variants can be applied.
1048
+ */
1049
+ declare const resendGenericWebhookEventSchema: z.ZodObject<{
1050
+ type: z.ZodEnum<{
1051
+ "email.sent": "email.sent";
1052
+ "email.delivered": "email.delivered";
1053
+ "email.delivery_delayed": "email.delivery_delayed";
1054
+ "email.bounced": "email.bounced";
1055
+ "email.complained": "email.complained";
1056
+ "email.opened": "email.opened";
1057
+ "email.clicked": "email.clicked";
1058
+ "email.failed": "email.failed";
1059
+ "email.received": "email.received";
1060
+ "email.scheduled": "email.scheduled";
1061
+ "email.suppressed": "email.suppressed";
1062
+ "domain.created": "domain.created";
1063
+ "domain.updated": "domain.updated";
1064
+ "domain.deleted": "domain.deleted";
1065
+ "contact.created": "contact.created";
1066
+ "contact.updated": "contact.updated";
1067
+ "contact.deleted": "contact.deleted";
1068
+ }>;
1069
+ created_at: z.ZodOptional<z.ZodString>;
1070
+ data: z.ZodRecord<z.ZodString, z.ZodUnknown>;
1071
+ }, z.core.$loose>;
1072
+ type ResendWebhookEvent = z.infer<typeof resendWebhookEventSchema>;
1073
+ type ResendGenericWebhookEvent = z.infer<typeof resendGenericWebhookEventSchema>;
1074
+ //#endregion
1075
+ //#region src/schemas/logs.d.ts
1076
+ declare const logDetailSchema: z.ZodObject<{
1077
+ id: z.ZodString;
1078
+ created_at: z.ZodOptional<z.ZodString>;
1079
+ method: z.ZodOptional<z.ZodString>;
1080
+ path: z.ZodOptional<z.ZodString>;
1081
+ status: z.ZodOptional<z.ZodNumber>;
1082
+ duration_ms: z.ZodOptional<z.ZodNumber>;
1083
+ request_body: z.ZodOptional<z.ZodUnknown>;
1084
+ response_body: z.ZodOptional<z.ZodUnknown>;
1085
+ request_headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1086
+ response_headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1087
+ }, z.core.$loose>;
1088
+ declare const listLogsResponseSchema: z.ZodObject<{
1089
+ object: z.ZodLiteral<"list">;
1090
+ has_more: z.ZodBoolean;
1091
+ data: z.ZodArray<z.ZodObject<{
1092
+ id: z.ZodString;
1093
+ created_at: z.ZodOptional<z.ZodString>;
1094
+ method: z.ZodOptional<z.ZodString>;
1095
+ path: z.ZodOptional<z.ZodString>;
1096
+ status: z.ZodOptional<z.ZodNumber>;
1097
+ duration_ms: z.ZodOptional<z.ZodNumber>;
1098
+ }, z.core.$loose>>;
1099
+ }, z.core.$strip>;
1100
+ //#endregion
1101
+ //#region src/schemas/segments.d.ts
1102
+ declare const segmentDetailSchema: z.ZodObject<{
1103
+ id: z.ZodString;
1104
+ name: z.ZodOptional<z.ZodString>;
1105
+ created_at: z.ZodOptional<z.ZodString>;
1106
+ updated_at: z.ZodOptional<z.ZodString>;
1107
+ filter: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1108
+ contact_count: z.ZodOptional<z.ZodNumber>;
1109
+ }, z.core.$loose>;
1110
+ declare const listSegmentsResponseSchema: z.ZodObject<{
1111
+ object: z.ZodLiteral<"list">;
1112
+ has_more: z.ZodBoolean;
1113
+ data: z.ZodArray<z.ZodObject<{
1114
+ id: z.ZodString;
1115
+ name: z.ZodOptional<z.ZodString>;
1116
+ created_at: z.ZodOptional<z.ZodString>;
1117
+ updated_at: z.ZodOptional<z.ZodString>;
1118
+ }, z.core.$loose>>;
1119
+ }, z.core.$strip>;
1120
+ declare const listSegmentContactsResponseSchema: z.ZodObject<{
1121
+ object: z.ZodLiteral<"list">;
1122
+ has_more: z.ZodBoolean;
1123
+ data: z.ZodArray<z.ZodObject<{
1124
+ id: z.ZodString;
1125
+ email: z.ZodOptional<z.ZodString>;
1126
+ first_name: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1127
+ last_name: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1128
+ unsubscribed: z.ZodOptional<z.ZodBoolean>;
1129
+ created_at: z.ZodOptional<z.ZodString>;
1130
+ }, z.core.$loose>>;
1131
+ }, z.core.$strip>;
1132
+ //#endregion
1133
+ //#region src/schemas/templates.d.ts
1134
+ declare const templateDetailSchema: z.ZodObject<{
1135
+ id: z.ZodString;
1136
+ name: z.ZodOptional<z.ZodString>;
1137
+ alias: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1138
+ subject: z.ZodOptional<z.ZodString>;
1139
+ status: z.ZodOptional<z.ZodString>;
1140
+ created_at: z.ZodOptional<z.ZodString>;
1141
+ updated_at: z.ZodOptional<z.ZodString>;
1142
+ html: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1143
+ text: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1144
+ variables: z.ZodOptional<z.ZodArray<z.ZodString>>;
1145
+ from: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1146
+ reply_to: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1147
+ }, z.core.$loose>;
1148
+ declare const listTemplatesResponseSchema: z.ZodObject<{
1149
+ object: z.ZodLiteral<"list">;
1150
+ has_more: z.ZodBoolean;
1151
+ data: z.ZodArray<z.ZodObject<{
1152
+ id: z.ZodString;
1153
+ name: z.ZodOptional<z.ZodString>;
1154
+ alias: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1155
+ subject: z.ZodOptional<z.ZodString>;
1156
+ status: z.ZodOptional<z.ZodString>;
1157
+ created_at: z.ZodOptional<z.ZodString>;
1158
+ updated_at: z.ZodOptional<z.ZodString>;
1159
+ }, z.core.$loose>>;
1160
+ }, z.core.$strip>;
1161
+ declare const templateWriteFieldsSchema: z.ZodObject<{
1162
+ name: z.ZodString;
1163
+ subject: z.ZodOptional<z.ZodString>;
1164
+ html: z.ZodOptional<z.ZodString>;
1165
+ text: z.ZodOptional<z.ZodString>;
1166
+ from: z.ZodOptional<z.ZodString>;
1167
+ reply_to: z.ZodOptional<z.ZodString>;
1168
+ variables: z.ZodOptional<z.ZodArray<z.ZodString>>;
1169
+ alias: z.ZodOptional<z.ZodString>;
1170
+ }, z.core.$strip>;
1171
+ //#endregion
1172
+ //#region src/schemas/topics.d.ts
1173
+ declare const topicDefaultSubscriptionSchema: z.ZodEnum<{
1174
+ opt_in: "opt_in";
1175
+ opt_out: "opt_out";
1176
+ }>;
1177
+ declare const topicSchema: z.ZodObject<{
1178
+ id: z.ZodString;
1179
+ name: z.ZodOptional<z.ZodString>;
1180
+ description: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1181
+ default_subscription: z.ZodOptional<z.ZodEnum<{
1182
+ opt_in: "opt_in";
1183
+ opt_out: "opt_out";
1184
+ }>>;
1185
+ created_at: z.ZodOptional<z.ZodString>;
1186
+ updated_at: z.ZodOptional<z.ZodString>;
1187
+ }, z.core.$loose>;
1188
+ declare const listTopicsResponseSchema: z.ZodObject<{
1189
+ object: z.ZodLiteral<"list">;
1190
+ has_more: z.ZodBoolean;
1191
+ data: z.ZodArray<z.ZodObject<{
1192
+ id: z.ZodString;
1193
+ name: z.ZodOptional<z.ZodString>;
1194
+ description: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1195
+ default_subscription: z.ZodOptional<z.ZodEnum<{
1196
+ opt_in: "opt_in";
1197
+ opt_out: "opt_out";
1198
+ }>>;
1199
+ created_at: z.ZodOptional<z.ZodString>;
1200
+ updated_at: z.ZodOptional<z.ZodString>;
1201
+ }, z.core.$loose>>;
1202
+ }, z.core.$strip>;
1203
+ //#endregion
1204
+ //#region src/schemas/webhooks.d.ts
1205
+ declare const webhookEventSelectionSchema: z.ZodUnion<readonly [z.ZodLiteral<"all">, z.ZodArray<z.ZodEnum<{
1206
+ "email.sent": "email.sent";
1207
+ "email.delivered": "email.delivered";
1208
+ "email.delivery_delayed": "email.delivery_delayed";
1209
+ "email.bounced": "email.bounced";
1210
+ "email.complained": "email.complained";
1211
+ "email.opened": "email.opened";
1212
+ "email.clicked": "email.clicked";
1213
+ "email.failed": "email.failed";
1214
+ "email.received": "email.received";
1215
+ "email.scheduled": "email.scheduled";
1216
+ "email.suppressed": "email.suppressed";
1217
+ "domain.created": "domain.created";
1218
+ "domain.updated": "domain.updated";
1219
+ "domain.deleted": "domain.deleted";
1220
+ "contact.created": "contact.created";
1221
+ "contact.updated": "contact.updated";
1222
+ "contact.deleted": "contact.deleted";
1223
+ }>>]>;
1224
+ declare const webhookStatusSchema: z.ZodEnum<{
1225
+ enabled: "enabled";
1226
+ disabled: "disabled";
1227
+ }>;
1228
+ declare const webhookDetailSchema: z.ZodObject<{
1229
+ id: z.ZodString;
1230
+ endpoint_url: z.ZodString;
1231
+ events: z.ZodOptional<z.ZodArray<z.ZodEnum<{
1232
+ "email.sent": "email.sent";
1233
+ "email.delivered": "email.delivered";
1234
+ "email.delivery_delayed": "email.delivery_delayed";
1235
+ "email.bounced": "email.bounced";
1236
+ "email.complained": "email.complained";
1237
+ "email.opened": "email.opened";
1238
+ "email.clicked": "email.clicked";
1239
+ "email.failed": "email.failed";
1240
+ "email.received": "email.received";
1241
+ "email.scheduled": "email.scheduled";
1242
+ "email.suppressed": "email.suppressed";
1243
+ "domain.created": "domain.created";
1244
+ "domain.updated": "domain.updated";
1245
+ "domain.deleted": "domain.deleted";
1246
+ "contact.created": "contact.created";
1247
+ "contact.updated": "contact.updated";
1248
+ "contact.deleted": "contact.deleted";
1249
+ }>>>;
1250
+ status: z.ZodOptional<z.ZodEnum<{
1251
+ enabled: "enabled";
1252
+ disabled: "disabled";
1253
+ }>>;
1254
+ created_at: z.ZodOptional<z.ZodString>;
1255
+ updated_at: z.ZodOptional<z.ZodString>;
1256
+ signing_secret: z.ZodOptional<z.ZodString>;
1257
+ }, z.core.$loose>;
1258
+ declare const listWebhooksResponseSchema: z.ZodObject<{
1259
+ object: z.ZodLiteral<"list">;
1260
+ has_more: z.ZodBoolean;
1261
+ data: z.ZodArray<z.ZodObject<{
1262
+ id: z.ZodString;
1263
+ endpoint_url: z.ZodString;
1264
+ events: z.ZodOptional<z.ZodArray<z.ZodEnum<{
1265
+ "email.sent": "email.sent";
1266
+ "email.delivered": "email.delivered";
1267
+ "email.delivery_delayed": "email.delivery_delayed";
1268
+ "email.bounced": "email.bounced";
1269
+ "email.complained": "email.complained";
1270
+ "email.opened": "email.opened";
1271
+ "email.clicked": "email.clicked";
1272
+ "email.failed": "email.failed";
1273
+ "email.received": "email.received";
1274
+ "email.scheduled": "email.scheduled";
1275
+ "email.suppressed": "email.suppressed";
1276
+ "domain.created": "domain.created";
1277
+ "domain.updated": "domain.updated";
1278
+ "domain.deleted": "domain.deleted";
1279
+ "contact.created": "contact.created";
1280
+ "contact.updated": "contact.updated";
1281
+ "contact.deleted": "contact.deleted";
1282
+ }>>>;
1283
+ status: z.ZodOptional<z.ZodEnum<{
1284
+ enabled: "enabled";
1285
+ disabled: "disabled";
1286
+ }>>;
1287
+ created_at: z.ZodOptional<z.ZodString>;
1288
+ updated_at: z.ZodOptional<z.ZodString>;
1289
+ }, z.core.$loose>>;
1290
+ }, z.core.$strip>;
1291
+ //#endregion
1292
+ export { PaginationQuery, RESEND_CONTACT_EVENT_NAMES, RESEND_DOMAIN_EVENT_NAMES, RESEND_EMAIL_EVENT_NAMES, RESEND_WEBHOOK_EVENT_NAMES, ResendApiKeyPermission, ResendCapabilityState, ResendContactEventName, ResendDomainEventName, ResendEmailEventName, ResendGenericWebhookEvent, ResendListEnvelope, ResendRegion, ResendTlsPolicy, ResendWebhookEvent, ResendWebhookEventName, apiKeyCreatedSchema, attachmentDetailSchema, batchSendInputSchema, batchSendResponseSchema, broadcastCreateInputSchema, broadcastDetailSchema, contactDetailSchema, contactPropertiesValueSchema, contactPropertySchema, contactPropertyTypeSchema, contactTopicsResponseSchema, domainCapabilitiesSchema, domainDetailSchema, emailDetailSchema, listApiKeysResponseSchema, listAttachmentsResponseSchema, listBroadcastsResponseSchema, listContactPropertiesResponseSchema, listContactSegmentsResponseSchema, listContactsResponseSchema, listDomainsResponseSchema, listEmailsResponseSchema, listLogsResponseSchema, listReceivedAttachmentsResponseSchema, listReceivedEmailsResponseSchema, listSegmentContactsResponseSchema, listSegmentsResponseSchema, listTemplatesResponseSchema, listTopicsResponseSchema, listWebhooksResponseSchema, logDetailSchema, paginationQuerySchema, receivedAttachmentDetailSchema, receivedEmailDetailSchema, resendApiKeyPermissionSchema, resendCapabilityStateSchema, resendContactCreatedEventSchema, resendContactDeletedEventSchema, resendContactUpdatedEventSchema, resendDomainCreatedEventSchema, resendDomainDeletedEventSchema, resendDomainUpdatedEventSchema, resendEmailBouncedEventSchema, resendEmailClickedEventSchema, resendEmailComplainedEventSchema, resendEmailDeliveredEventSchema, resendEmailDeliveryDelayedEventSchema, resendEmailFailedEventSchema, resendEmailOpenedEventSchema, resendEmailReceivedEventSchema, resendEmailScheduledEventSchema, resendEmailSentEventSchema, resendEmailSuppressedEventSchema, resendGenericWebhookEventSchema, resendListEnvelope, resendRegionSchema, resendTlsPolicySchema, resendWebhookEventSchema, segmentDetailSchema, sendEmailInputSchema, sendEmailResponseSchema, templateDetailSchema, templateWriteFieldsSchema, topicDefaultSubscriptionSchema, topicSchema, topicSubscriptionSchema, webhookDetailSchema, webhookEventSelectionSchema, webhookStatusSchema };