@automate.ax/integration-contracts 0.98.0 → 0.99.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.
@@ -1,11 +1,24 @@
1
1
  import * as z from "zod";
2
2
  export declare const RESEND_EMAIL_EVENT_TYPES: readonly ["email.bounced", "email.clicked", "email.complained", "email.delivered", "email.delivery_delayed", "email.failed", "email.opened", "email.received", "email.scheduled", "email.sent", "email.suppressed"];
3
+ export declare const RESEND_CONTACT_EVENT_TYPES: readonly ["contact.created", "contact.updated", "contact.deleted"];
4
+ export declare const RESEND_DOMAIN_EVENT_TYPES: readonly ["domain.created", "domain.updated", "domain.deleted"];
5
+ export declare const RESEND_SUPPRESSION_EVENT_TYPES: readonly ["suppression.added", "suppression.removed"];
6
+ /** Every webhook event currently supported by Resend. */
7
+ export declare const RESEND_EVENT_TYPES: readonly ["email.bounced", "email.clicked", "email.complained", "email.delivered", "email.delivery_delayed", "email.failed", "email.opened", "email.received", "email.scheduled", "email.sent", "email.suppressed", "contact.created", "contact.updated", "contact.deleted", "domain.created", "domain.updated", "domain.deleted", "suppression.added", "suppression.removed"];
8
+ export declare const RESEND_DOMAIN_STATUSES: readonly ["verified", "partially_verified", "partially_failed", "failed", "pending", "not_started"];
9
+ export declare const RESEND_DOMAIN_REGIONS: readonly ["us-east-1", "eu-west-1", "sa-east-1", "ap-northeast-1"];
10
+ export declare const RESEND_DOMAIN_RECORD_STATUSES: readonly ["pending", "verified", "failed", "temporary_failure", "not_started"];
11
+ export declare const RESEND_SUPPRESSION_ORIGINS: readonly ["bounce", "complaint", "manual"];
3
12
  export declare const RESEND_EMAIL_SENT_EVENT_SCHEMA: z.ZodObject<{
4
13
  broadcastId: z.ZodOptional<z.ZodString>;
5
14
  createdAt: z.ZodISODateTime;
6
15
  emailId: z.ZodString;
7
16
  from: z.ZodString;
8
- messageId: z.ZodOptional<z.ZodString>;
17
+ headers: z.ZodOptional<z.ZodArray<z.ZodObject<{
18
+ name: z.ZodString;
19
+ value: z.ZodString;
20
+ }, z.core.$strip>>>;
21
+ messageId: z.ZodString;
9
22
  subject: z.ZodString;
10
23
  tags: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
11
24
  templateId: z.ZodOptional<z.ZodString>;
@@ -17,7 +30,11 @@ export declare const RESEND_EMAIL_SENT_EVENT_SCHEMA: z.ZodObject<{
17
30
  created_at: z.ZodISODateTime;
18
31
  email_id: z.ZodString;
19
32
  from: z.ZodString;
20
- message_id: z.ZodOptional<z.ZodString>;
33
+ headers: z.ZodOptional<z.ZodArray<z.ZodObject<{
34
+ name: z.ZodString;
35
+ value: z.ZodString;
36
+ }, z.core.$strip>>>;
37
+ message_id: z.ZodString;
21
38
  subject: z.ZodString;
22
39
  tags: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
23
40
  template_id: z.ZodOptional<z.ZodString>;
@@ -26,12 +43,50 @@ export declare const RESEND_EMAIL_SENT_EVENT_SCHEMA: z.ZodObject<{
26
43
  type: z.ZodLiteral<"email.sent">;
27
44
  }, z.core.$catchall<z.ZodJSONSchema>>;
28
45
  }, z.core.$strip>;
46
+ export declare const RESEND_EMAIL_SCHEDULED_EVENT_SCHEMA: z.ZodObject<{
47
+ broadcastId: z.ZodOptional<z.ZodString>;
48
+ createdAt: z.ZodISODateTime;
49
+ emailId: z.ZodString;
50
+ from: z.ZodString;
51
+ headers: z.ZodOptional<z.ZodArray<z.ZodObject<{
52
+ name: z.ZodString;
53
+ value: z.ZodString;
54
+ }, z.core.$strip>>>;
55
+ messageId: z.ZodString;
56
+ subject: z.ZodString;
57
+ tags: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
58
+ templateId: z.ZodOptional<z.ZodString>;
59
+ to: z.ZodArray<z.ZodString>;
60
+ event: z.ZodObject<{
61
+ created_at: z.ZodISODateTime;
62
+ data: z.ZodObject<{
63
+ broadcast_id: z.ZodOptional<z.ZodString>;
64
+ created_at: z.ZodISODateTime;
65
+ email_id: z.ZodString;
66
+ from: z.ZodString;
67
+ headers: z.ZodOptional<z.ZodArray<z.ZodObject<{
68
+ name: z.ZodString;
69
+ value: z.ZodString;
70
+ }, z.core.$strip>>>;
71
+ message_id: z.ZodString;
72
+ subject: z.ZodString;
73
+ tags: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
74
+ template_id: z.ZodOptional<z.ZodString>;
75
+ to: z.ZodArray<z.ZodString>;
76
+ }, z.core.$catchall<z.ZodJSONSchema>>;
77
+ type: z.ZodLiteral<"email.scheduled">;
78
+ }, z.core.$catchall<z.ZodJSONSchema>>;
79
+ }, z.core.$strip>;
29
80
  export declare const RESEND_EMAIL_DELIVERED_EVENT_SCHEMA: z.ZodObject<{
30
81
  broadcastId: z.ZodOptional<z.ZodString>;
31
82
  createdAt: z.ZodISODateTime;
32
83
  emailId: z.ZodString;
33
84
  from: z.ZodString;
34
- messageId: z.ZodOptional<z.ZodString>;
85
+ headers: z.ZodOptional<z.ZodArray<z.ZodObject<{
86
+ name: z.ZodString;
87
+ value: z.ZodString;
88
+ }, z.core.$strip>>>;
89
+ messageId: z.ZodString;
35
90
  subject: z.ZodString;
36
91
  tags: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
37
92
  templateId: z.ZodOptional<z.ZodString>;
@@ -43,7 +98,11 @@ export declare const RESEND_EMAIL_DELIVERED_EVENT_SCHEMA: z.ZodObject<{
43
98
  created_at: z.ZodISODateTime;
44
99
  email_id: z.ZodString;
45
100
  from: z.ZodString;
46
- message_id: z.ZodOptional<z.ZodString>;
101
+ headers: z.ZodOptional<z.ZodArray<z.ZodObject<{
102
+ name: z.ZodString;
103
+ value: z.ZodString;
104
+ }, z.core.$strip>>>;
105
+ message_id: z.ZodString;
47
106
  subject: z.ZodString;
48
107
  tags: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
49
108
  template_id: z.ZodOptional<z.ZodString>;
@@ -52,22 +111,20 @@ export declare const RESEND_EMAIL_DELIVERED_EVENT_SCHEMA: z.ZodObject<{
52
111
  type: z.ZodLiteral<"email.delivered">;
53
112
  }, z.core.$catchall<z.ZodJSONSchema>>;
54
113
  }, z.core.$strip>;
55
- export declare const RESEND_EMAIL_BOUNCED_EVENT_SCHEMA: z.ZodObject<{
114
+ export declare const RESEND_EMAIL_DELIVERY_DELAYED_EVENT_SCHEMA: z.ZodObject<{
56
115
  broadcastId: z.ZodOptional<z.ZodString>;
57
116
  createdAt: z.ZodISODateTime;
58
117
  emailId: z.ZodString;
59
118
  from: z.ZodString;
60
- messageId: z.ZodOptional<z.ZodString>;
119
+ headers: z.ZodOptional<z.ZodArray<z.ZodObject<{
120
+ name: z.ZodString;
121
+ value: z.ZodString;
122
+ }, z.core.$strip>>>;
123
+ messageId: z.ZodString;
61
124
  subject: z.ZodString;
62
125
  tags: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
63
126
  templateId: z.ZodOptional<z.ZodString>;
64
127
  to: z.ZodArray<z.ZodString>;
65
- bounce: z.ZodObject<{
66
- diagnosticCode: z.ZodOptional<z.ZodArray<z.ZodString>>;
67
- message: z.ZodString;
68
- subType: z.ZodString;
69
- type: z.ZodString;
70
- }, z.core.$catchall<z.ZodJSONSchema>>;
71
128
  event: z.ZodObject<{
72
129
  created_at: z.ZodISODateTime;
73
130
  data: z.ZodObject<{
@@ -75,27 +132,29 @@ export declare const RESEND_EMAIL_BOUNCED_EVENT_SCHEMA: z.ZodObject<{
75
132
  created_at: z.ZodISODateTime;
76
133
  email_id: z.ZodString;
77
134
  from: z.ZodString;
78
- message_id: z.ZodOptional<z.ZodString>;
135
+ headers: z.ZodOptional<z.ZodArray<z.ZodObject<{
136
+ name: z.ZodString;
137
+ value: z.ZodString;
138
+ }, z.core.$strip>>>;
139
+ message_id: z.ZodString;
79
140
  subject: z.ZodString;
80
141
  tags: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
81
142
  template_id: z.ZodOptional<z.ZodString>;
82
143
  to: z.ZodArray<z.ZodString>;
83
- bounce: z.ZodObject<{
84
- diagnosticCode: z.ZodOptional<z.ZodArray<z.ZodString>>;
85
- message: z.ZodString;
86
- subType: z.ZodString;
87
- type: z.ZodString;
88
- }, z.core.$catchall<z.ZodJSONSchema>>;
89
144
  }, z.core.$catchall<z.ZodJSONSchema>>;
90
- type: z.ZodLiteral<"email.bounced">;
145
+ type: z.ZodLiteral<"email.delivery_delayed">;
91
146
  }, z.core.$catchall<z.ZodJSONSchema>>;
92
147
  }, z.core.$strip>;
93
- export declare const RESEND_EMAIL_FAILED_EVENT_SCHEMA: z.ZodObject<{
148
+ export declare const RESEND_EMAIL_COMPLAINED_EVENT_SCHEMA: z.ZodObject<{
94
149
  broadcastId: z.ZodOptional<z.ZodString>;
95
150
  createdAt: z.ZodISODateTime;
96
151
  emailId: z.ZodString;
97
152
  from: z.ZodString;
98
- messageId: z.ZodOptional<z.ZodString>;
153
+ headers: z.ZodOptional<z.ZodArray<z.ZodObject<{
154
+ name: z.ZodString;
155
+ value: z.ZodString;
156
+ }, z.core.$strip>>>;
157
+ messageId: z.ZodString;
99
158
  subject: z.ZodString;
100
159
  tags: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
101
160
  templateId: z.ZodOptional<z.ZodString>;
@@ -107,27 +166,29 @@ export declare const RESEND_EMAIL_FAILED_EVENT_SCHEMA: z.ZodObject<{
107
166
  created_at: z.ZodISODateTime;
108
167
  email_id: z.ZodString;
109
168
  from: z.ZodString;
110
- message_id: z.ZodOptional<z.ZodString>;
169
+ headers: z.ZodOptional<z.ZodArray<z.ZodObject<{
170
+ name: z.ZodString;
171
+ value: z.ZodString;
172
+ }, z.core.$strip>>>;
173
+ message_id: z.ZodString;
111
174
  subject: z.ZodString;
112
175
  tags: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
113
176
  template_id: z.ZodOptional<z.ZodString>;
114
177
  to: z.ZodArray<z.ZodString>;
115
- failed: z.ZodObject<{
116
- reason: z.ZodString;
117
- }, z.core.$catchall<z.ZodJSONSchema>>;
118
178
  }, z.core.$catchall<z.ZodJSONSchema>>;
119
- type: z.ZodLiteral<"email.failed">;
120
- }, z.core.$catchall<z.ZodJSONSchema>>;
121
- failed: z.ZodObject<{
122
- reason: z.ZodString;
179
+ type: z.ZodLiteral<"email.complained">;
123
180
  }, z.core.$catchall<z.ZodJSONSchema>>;
124
181
  }, z.core.$strip>;
125
- export declare const RESEND_EMAIL_OPENED_EVENT_SCHEMA: z.ZodObject<{
182
+ export declare const RESEND_EMAIL_BOUNCED_EVENT_SCHEMA: z.ZodObject<{
126
183
  broadcastId: z.ZodOptional<z.ZodString>;
127
184
  createdAt: z.ZodISODateTime;
128
185
  emailId: z.ZodString;
129
186
  from: z.ZodString;
130
- messageId: z.ZodOptional<z.ZodString>;
187
+ headers: z.ZodOptional<z.ZodArray<z.ZodObject<{
188
+ name: z.ZodString;
189
+ value: z.ZodString;
190
+ }, z.core.$strip>>>;
191
+ messageId: z.ZodString;
131
192
  subject: z.ZodString;
132
193
  tags: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
133
194
  templateId: z.ZodOptional<z.ZodString>;
@@ -139,31 +200,45 @@ export declare const RESEND_EMAIL_OPENED_EVENT_SCHEMA: z.ZodObject<{
139
200
  created_at: z.ZodISODateTime;
140
201
  email_id: z.ZodString;
141
202
  from: z.ZodString;
142
- message_id: z.ZodOptional<z.ZodString>;
203
+ headers: z.ZodOptional<z.ZodArray<z.ZodObject<{
204
+ name: z.ZodString;
205
+ value: z.ZodString;
206
+ }, z.core.$strip>>>;
207
+ message_id: z.ZodString;
143
208
  subject: z.ZodString;
144
209
  tags: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
145
210
  template_id: z.ZodOptional<z.ZodString>;
146
211
  to: z.ZodArray<z.ZodString>;
212
+ bounce: z.ZodObject<{
213
+ diagnosticCode: z.ZodOptional<z.ZodArray<z.ZodString>>;
214
+ message: z.ZodString;
215
+ subType: z.ZodString;
216
+ type: z.ZodString;
217
+ }, z.core.$catchall<z.ZodJSONSchema>>;
147
218
  }, z.core.$catchall<z.ZodJSONSchema>>;
148
- type: z.ZodLiteral<"email.opened">;
219
+ type: z.ZodLiteral<"email.bounced">;
220
+ }, z.core.$catchall<z.ZodJSONSchema>>;
221
+ bounce: z.ZodObject<{
222
+ diagnosticCode: z.ZodOptional<z.ZodArray<z.ZodString>>;
223
+ message: z.ZodString;
224
+ subType: z.ZodString;
225
+ type: z.ZodString;
149
226
  }, z.core.$catchall<z.ZodJSONSchema>>;
150
227
  }, z.core.$strip>;
151
- export declare const RESEND_EMAIL_CLICKED_EVENT_SCHEMA: z.ZodObject<{
228
+ export declare const RESEND_EMAIL_OPENED_EVENT_SCHEMA: z.ZodObject<{
152
229
  broadcastId: z.ZodOptional<z.ZodString>;
153
230
  createdAt: z.ZodISODateTime;
154
231
  emailId: z.ZodString;
155
232
  from: z.ZodString;
156
- messageId: z.ZodOptional<z.ZodString>;
233
+ headers: z.ZodOptional<z.ZodArray<z.ZodObject<{
234
+ name: z.ZodString;
235
+ value: z.ZodString;
236
+ }, z.core.$strip>>>;
237
+ messageId: z.ZodString;
157
238
  subject: z.ZodString;
158
239
  tags: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
159
240
  templateId: z.ZodOptional<z.ZodString>;
160
241
  to: z.ZodArray<z.ZodString>;
161
- click: z.ZodObject<{
162
- ipAddress: z.ZodString;
163
- link: z.ZodString;
164
- timestamp: z.ZodISODateTime;
165
- userAgent: z.ZodString;
166
- }, z.core.$catchall<z.ZodJSONSchema>>;
167
242
  event: z.ZodObject<{
168
243
  created_at: z.ZodISODateTime;
169
244
  data: z.ZodObject<{
@@ -171,27 +246,29 @@ export declare const RESEND_EMAIL_CLICKED_EVENT_SCHEMA: z.ZodObject<{
171
246
  created_at: z.ZodISODateTime;
172
247
  email_id: z.ZodString;
173
248
  from: z.ZodString;
174
- message_id: z.ZodOptional<z.ZodString>;
249
+ headers: z.ZodOptional<z.ZodArray<z.ZodObject<{
250
+ name: z.ZodString;
251
+ value: z.ZodString;
252
+ }, z.core.$strip>>>;
253
+ message_id: z.ZodString;
175
254
  subject: z.ZodString;
176
255
  tags: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
177
256
  template_id: z.ZodOptional<z.ZodString>;
178
257
  to: z.ZodArray<z.ZodString>;
179
- click: z.ZodObject<{
180
- ipAddress: z.ZodString;
181
- link: z.ZodString;
182
- timestamp: z.ZodISODateTime;
183
- userAgent: z.ZodString;
184
- }, z.core.$catchall<z.ZodJSONSchema>>;
185
258
  }, z.core.$catchall<z.ZodJSONSchema>>;
186
- type: z.ZodLiteral<"email.clicked">;
259
+ type: z.ZodLiteral<"email.opened">;
187
260
  }, z.core.$catchall<z.ZodJSONSchema>>;
188
261
  }, z.core.$strip>;
189
- export declare const RESEND_EMAIL_COMPLAINED_EVENT_SCHEMA: z.ZodObject<{
262
+ export declare const RESEND_EMAIL_CLICKED_EVENT_SCHEMA: z.ZodObject<{
190
263
  broadcastId: z.ZodOptional<z.ZodString>;
191
264
  createdAt: z.ZodISODateTime;
192
265
  emailId: z.ZodString;
193
266
  from: z.ZodString;
194
- messageId: z.ZodOptional<z.ZodString>;
267
+ headers: z.ZodOptional<z.ZodArray<z.ZodObject<{
268
+ name: z.ZodString;
269
+ value: z.ZodString;
270
+ }, z.core.$strip>>>;
271
+ messageId: z.ZodString;
195
272
  subject: z.ZodString;
196
273
  tags: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
197
274
  templateId: z.ZodOptional<z.ZodString>;
@@ -203,13 +280,29 @@ export declare const RESEND_EMAIL_COMPLAINED_EVENT_SCHEMA: z.ZodObject<{
203
280
  created_at: z.ZodISODateTime;
204
281
  email_id: z.ZodString;
205
282
  from: z.ZodString;
206
- message_id: z.ZodOptional<z.ZodString>;
283
+ headers: z.ZodOptional<z.ZodArray<z.ZodObject<{
284
+ name: z.ZodString;
285
+ value: z.ZodString;
286
+ }, z.core.$strip>>>;
287
+ message_id: z.ZodString;
207
288
  subject: z.ZodString;
208
289
  tags: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
209
290
  template_id: z.ZodOptional<z.ZodString>;
210
291
  to: z.ZodArray<z.ZodString>;
292
+ click: z.ZodObject<{
293
+ ipAddress: z.ZodString;
294
+ link: z.ZodString;
295
+ timestamp: z.ZodISODateTime;
296
+ userAgent: z.ZodString;
297
+ }, z.core.$catchall<z.ZodJSONSchema>>;
211
298
  }, z.core.$catchall<z.ZodJSONSchema>>;
212
- type: z.ZodLiteral<"email.complained">;
299
+ type: z.ZodLiteral<"email.clicked">;
300
+ }, z.core.$catchall<z.ZodJSONSchema>>;
301
+ click: z.ZodObject<{
302
+ ipAddress: z.ZodString;
303
+ link: z.ZodString;
304
+ timestamp: z.ZodISODateTime;
305
+ userAgent: z.ZodString;
213
306
  }, z.core.$catchall<z.ZodJSONSchema>>;
214
307
  }, z.core.$strip>;
215
308
  export declare const RESEND_EMAIL_RECEIVED_EVENT_SCHEMA: z.ZodObject<{
@@ -252,12 +345,16 @@ export declare const RESEND_EMAIL_RECEIVED_EVENT_SCHEMA: z.ZodObject<{
252
345
  type: z.ZodLiteral<"email.received">;
253
346
  }, z.core.$catchall<z.ZodJSONSchema>>;
254
347
  }, z.core.$strip>;
255
- export declare const RESEND_EMAIL_DELIVERY_DELAYED_EVENT_SCHEMA: z.ZodObject<{
348
+ export declare const RESEND_EMAIL_FAILED_EVENT_SCHEMA: z.ZodObject<{
256
349
  broadcastId: z.ZodOptional<z.ZodString>;
257
350
  createdAt: z.ZodISODateTime;
258
351
  emailId: z.ZodString;
259
352
  from: z.ZodString;
260
- messageId: z.ZodOptional<z.ZodString>;
353
+ headers: z.ZodOptional<z.ZodArray<z.ZodObject<{
354
+ name: z.ZodString;
355
+ value: z.ZodString;
356
+ }, z.core.$strip>>>;
357
+ messageId: z.ZodString;
261
358
  subject: z.ZodString;
262
359
  tags: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
263
360
  templateId: z.ZodOptional<z.ZodString>;
@@ -269,39 +366,23 @@ export declare const RESEND_EMAIL_DELIVERY_DELAYED_EVENT_SCHEMA: z.ZodObject<{
269
366
  created_at: z.ZodISODateTime;
270
367
  email_id: z.ZodString;
271
368
  from: z.ZodString;
272
- message_id: z.ZodOptional<z.ZodString>;
369
+ headers: z.ZodOptional<z.ZodArray<z.ZodObject<{
370
+ name: z.ZodString;
371
+ value: z.ZodString;
372
+ }, z.core.$strip>>>;
373
+ message_id: z.ZodString;
273
374
  subject: z.ZodString;
274
375
  tags: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
275
376
  template_id: z.ZodOptional<z.ZodString>;
276
377
  to: z.ZodArray<z.ZodString>;
378
+ failed: z.ZodObject<{
379
+ reason: z.ZodString;
380
+ }, z.core.$catchall<z.ZodJSONSchema>>;
277
381
  }, z.core.$catchall<z.ZodJSONSchema>>;
278
- type: z.ZodLiteral<"email.delivery_delayed">;
382
+ type: z.ZodLiteral<"email.failed">;
279
383
  }, z.core.$catchall<z.ZodJSONSchema>>;
280
- }, z.core.$strip>;
281
- export declare const RESEND_EMAIL_SCHEDULED_EVENT_SCHEMA: z.ZodObject<{
282
- broadcastId: z.ZodOptional<z.ZodString>;
283
- createdAt: z.ZodISODateTime;
284
- emailId: z.ZodString;
285
- from: z.ZodString;
286
- messageId: z.ZodOptional<z.ZodString>;
287
- subject: z.ZodString;
288
- tags: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
289
- templateId: z.ZodOptional<z.ZodString>;
290
- to: z.ZodArray<z.ZodString>;
291
- event: z.ZodObject<{
292
- created_at: z.ZodISODateTime;
293
- data: z.ZodObject<{
294
- broadcast_id: z.ZodOptional<z.ZodString>;
295
- created_at: z.ZodISODateTime;
296
- email_id: z.ZodString;
297
- from: z.ZodString;
298
- message_id: z.ZodOptional<z.ZodString>;
299
- subject: z.ZodString;
300
- tags: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
301
- template_id: z.ZodOptional<z.ZodString>;
302
- to: z.ZodArray<z.ZodString>;
303
- }, z.core.$catchall<z.ZodJSONSchema>>;
304
- type: z.ZodLiteral<"email.scheduled">;
384
+ failed: z.ZodObject<{
385
+ reason: z.ZodString;
305
386
  }, z.core.$catchall<z.ZodJSONSchema>>;
306
387
  }, z.core.$strip>;
307
388
  export declare const RESEND_EMAIL_SUPPRESSED_EVENT_SCHEMA: z.ZodObject<{
@@ -309,7 +390,11 @@ export declare const RESEND_EMAIL_SUPPRESSED_EVENT_SCHEMA: z.ZodObject<{
309
390
  createdAt: z.ZodISODateTime;
310
391
  emailId: z.ZodString;
311
392
  from: z.ZodString;
312
- messageId: z.ZodOptional<z.ZodString>;
393
+ headers: z.ZodOptional<z.ZodArray<z.ZodObject<{
394
+ name: z.ZodString;
395
+ value: z.ZodString;
396
+ }, z.core.$strip>>>;
397
+ messageId: z.ZodString;
313
398
  subject: z.ZodString;
314
399
  tags: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
315
400
  templateId: z.ZodOptional<z.ZodString>;
@@ -321,20 +406,28 @@ export declare const RESEND_EMAIL_SUPPRESSED_EVENT_SCHEMA: z.ZodObject<{
321
406
  created_at: z.ZodISODateTime;
322
407
  email_id: z.ZodString;
323
408
  from: z.ZodString;
324
- message_id: z.ZodOptional<z.ZodString>;
409
+ headers: z.ZodOptional<z.ZodArray<z.ZodObject<{
410
+ name: z.ZodString;
411
+ value: z.ZodString;
412
+ }, z.core.$strip>>>;
413
+ message_id: z.ZodString;
325
414
  subject: z.ZodString;
326
415
  tags: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
327
416
  template_id: z.ZodOptional<z.ZodString>;
328
417
  to: z.ZodArray<z.ZodString>;
329
418
  suppressed: z.ZodObject<{
419
+ diagnosticCode: z.ZodOptional<z.ZodArray<z.ZodString>>;
330
420
  message: z.ZodString;
421
+ reason: z.ZodOptional<z.ZodString>;
331
422
  type: z.ZodString;
332
423
  }, z.core.$catchall<z.ZodJSONSchema>>;
333
424
  }, z.core.$catchall<z.ZodJSONSchema>>;
334
425
  type: z.ZodLiteral<"email.suppressed">;
335
426
  }, z.core.$catchall<z.ZodJSONSchema>>;
336
427
  suppressed: z.ZodObject<{
428
+ diagnosticCode: z.ZodOptional<z.ZodArray<z.ZodString>>;
337
429
  message: z.ZodString;
430
+ reason: z.ZodOptional<z.ZodString>;
338
431
  type: z.ZodString;
339
432
  }, z.core.$catchall<z.ZodJSONSchema>>;
340
433
  }, z.core.$strip>;
@@ -343,17 +436,15 @@ export declare const RESEND_EMAIL_EVENT_SCHEMA: z.ZodUnion<readonly [z.ZodObject
343
436
  createdAt: z.ZodISODateTime;
344
437
  emailId: z.ZodString;
345
438
  from: z.ZodString;
346
- messageId: z.ZodOptional<z.ZodString>;
439
+ headers: z.ZodOptional<z.ZodArray<z.ZodObject<{
440
+ name: z.ZodString;
441
+ value: z.ZodString;
442
+ }, z.core.$strip>>>;
443
+ messageId: z.ZodString;
347
444
  subject: z.ZodString;
348
445
  tags: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
349
446
  templateId: z.ZodOptional<z.ZodString>;
350
447
  to: z.ZodArray<z.ZodString>;
351
- bounce: z.ZodObject<{
352
- diagnosticCode: z.ZodOptional<z.ZodArray<z.ZodString>>;
353
- message: z.ZodString;
354
- subType: z.ZodString;
355
- type: z.ZodString;
356
- }, z.core.$catchall<z.ZodJSONSchema>>;
357
448
  event: z.ZodObject<{
358
449
  created_at: z.ZodISODateTime;
359
450
  data: z.ZodObject<{
@@ -361,7 +452,11 @@ export declare const RESEND_EMAIL_EVENT_SCHEMA: z.ZodUnion<readonly [z.ZodObject
361
452
  created_at: z.ZodISODateTime;
362
453
  email_id: z.ZodString;
363
454
  from: z.ZodString;
364
- message_id: z.ZodOptional<z.ZodString>;
455
+ headers: z.ZodOptional<z.ZodArray<z.ZodObject<{
456
+ name: z.ZodString;
457
+ value: z.ZodString;
458
+ }, z.core.$strip>>>;
459
+ message_id: z.ZodString;
365
460
  subject: z.ZodString;
366
461
  tags: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
367
462
  template_id: z.ZodOptional<z.ZodString>;
@@ -375,22 +470,26 @@ export declare const RESEND_EMAIL_EVENT_SCHEMA: z.ZodUnion<readonly [z.ZodObject
375
470
  }, z.core.$catchall<z.ZodJSONSchema>>;
376
471
  type: z.ZodLiteral<"email.bounced">;
377
472
  }, z.core.$catchall<z.ZodJSONSchema>>;
473
+ bounce: z.ZodObject<{
474
+ diagnosticCode: z.ZodOptional<z.ZodArray<z.ZodString>>;
475
+ message: z.ZodString;
476
+ subType: z.ZodString;
477
+ type: z.ZodString;
478
+ }, z.core.$catchall<z.ZodJSONSchema>>;
378
479
  }, z.core.$strip>, z.ZodObject<{
379
480
  broadcastId: z.ZodOptional<z.ZodString>;
380
481
  createdAt: z.ZodISODateTime;
381
482
  emailId: z.ZodString;
382
483
  from: z.ZodString;
383
- messageId: z.ZodOptional<z.ZodString>;
484
+ headers: z.ZodOptional<z.ZodArray<z.ZodObject<{
485
+ name: z.ZodString;
486
+ value: z.ZodString;
487
+ }, z.core.$strip>>>;
488
+ messageId: z.ZodString;
384
489
  subject: z.ZodString;
385
490
  tags: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
386
491
  templateId: z.ZodOptional<z.ZodString>;
387
492
  to: z.ZodArray<z.ZodString>;
388
- click: z.ZodObject<{
389
- ipAddress: z.ZodString;
390
- link: z.ZodString;
391
- timestamp: z.ZodISODateTime;
392
- userAgent: z.ZodString;
393
- }, z.core.$catchall<z.ZodJSONSchema>>;
394
493
  event: z.ZodObject<{
395
494
  created_at: z.ZodISODateTime;
396
495
  data: z.ZodObject<{
@@ -398,7 +497,11 @@ export declare const RESEND_EMAIL_EVENT_SCHEMA: z.ZodUnion<readonly [z.ZodObject
398
497
  created_at: z.ZodISODateTime;
399
498
  email_id: z.ZodString;
400
499
  from: z.ZodString;
401
- message_id: z.ZodOptional<z.ZodString>;
500
+ headers: z.ZodOptional<z.ZodArray<z.ZodObject<{
501
+ name: z.ZodString;
502
+ value: z.ZodString;
503
+ }, z.core.$strip>>>;
504
+ message_id: z.ZodString;
402
505
  subject: z.ZodString;
403
506
  tags: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
404
507
  template_id: z.ZodOptional<z.ZodString>;
@@ -412,12 +515,22 @@ export declare const RESEND_EMAIL_EVENT_SCHEMA: z.ZodUnion<readonly [z.ZodObject
412
515
  }, z.core.$catchall<z.ZodJSONSchema>>;
413
516
  type: z.ZodLiteral<"email.clicked">;
414
517
  }, z.core.$catchall<z.ZodJSONSchema>>;
518
+ click: z.ZodObject<{
519
+ ipAddress: z.ZodString;
520
+ link: z.ZodString;
521
+ timestamp: z.ZodISODateTime;
522
+ userAgent: z.ZodString;
523
+ }, z.core.$catchall<z.ZodJSONSchema>>;
415
524
  }, z.core.$strip>, z.ZodObject<{
416
525
  broadcastId: z.ZodOptional<z.ZodString>;
417
526
  createdAt: z.ZodISODateTime;
418
527
  emailId: z.ZodString;
419
528
  from: z.ZodString;
420
- messageId: z.ZodOptional<z.ZodString>;
529
+ headers: z.ZodOptional<z.ZodArray<z.ZodObject<{
530
+ name: z.ZodString;
531
+ value: z.ZodString;
532
+ }, z.core.$strip>>>;
533
+ messageId: z.ZodString;
421
534
  subject: z.ZodString;
422
535
  tags: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
423
536
  templateId: z.ZodOptional<z.ZodString>;
@@ -429,7 +542,11 @@ export declare const RESEND_EMAIL_EVENT_SCHEMA: z.ZodUnion<readonly [z.ZodObject
429
542
  created_at: z.ZodISODateTime;
430
543
  email_id: z.ZodString;
431
544
  from: z.ZodString;
432
- message_id: z.ZodOptional<z.ZodString>;
545
+ headers: z.ZodOptional<z.ZodArray<z.ZodObject<{
546
+ name: z.ZodString;
547
+ value: z.ZodString;
548
+ }, z.core.$strip>>>;
549
+ message_id: z.ZodString;
433
550
  subject: z.ZodString;
434
551
  tags: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
435
552
  template_id: z.ZodOptional<z.ZodString>;
@@ -442,7 +559,11 @@ export declare const RESEND_EMAIL_EVENT_SCHEMA: z.ZodUnion<readonly [z.ZodObject
442
559
  createdAt: z.ZodISODateTime;
443
560
  emailId: z.ZodString;
444
561
  from: z.ZodString;
445
- messageId: z.ZodOptional<z.ZodString>;
562
+ headers: z.ZodOptional<z.ZodArray<z.ZodObject<{
563
+ name: z.ZodString;
564
+ value: z.ZodString;
565
+ }, z.core.$strip>>>;
566
+ messageId: z.ZodString;
446
567
  subject: z.ZodString;
447
568
  tags: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
448
569
  templateId: z.ZodOptional<z.ZodString>;
@@ -454,7 +575,11 @@ export declare const RESEND_EMAIL_EVENT_SCHEMA: z.ZodUnion<readonly [z.ZodObject
454
575
  created_at: z.ZodISODateTime;
455
576
  email_id: z.ZodString;
456
577
  from: z.ZodString;
457
- message_id: z.ZodOptional<z.ZodString>;
578
+ headers: z.ZodOptional<z.ZodArray<z.ZodObject<{
579
+ name: z.ZodString;
580
+ value: z.ZodString;
581
+ }, z.core.$strip>>>;
582
+ message_id: z.ZodString;
458
583
  subject: z.ZodString;
459
584
  tags: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
460
585
  template_id: z.ZodOptional<z.ZodString>;
@@ -467,7 +592,11 @@ export declare const RESEND_EMAIL_EVENT_SCHEMA: z.ZodUnion<readonly [z.ZodObject
467
592
  createdAt: z.ZodISODateTime;
468
593
  emailId: z.ZodString;
469
594
  from: z.ZodString;
470
- messageId: z.ZodOptional<z.ZodString>;
595
+ headers: z.ZodOptional<z.ZodArray<z.ZodObject<{
596
+ name: z.ZodString;
597
+ value: z.ZodString;
598
+ }, z.core.$strip>>>;
599
+ messageId: z.ZodString;
471
600
  subject: z.ZodString;
472
601
  tags: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
473
602
  templateId: z.ZodOptional<z.ZodString>;
@@ -479,7 +608,11 @@ export declare const RESEND_EMAIL_EVENT_SCHEMA: z.ZodUnion<readonly [z.ZodObject
479
608
  created_at: z.ZodISODateTime;
480
609
  email_id: z.ZodString;
481
610
  from: z.ZodString;
482
- message_id: z.ZodOptional<z.ZodString>;
611
+ headers: z.ZodOptional<z.ZodArray<z.ZodObject<{
612
+ name: z.ZodString;
613
+ value: z.ZodString;
614
+ }, z.core.$strip>>>;
615
+ message_id: z.ZodString;
483
616
  subject: z.ZodString;
484
617
  tags: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
485
618
  template_id: z.ZodOptional<z.ZodString>;
@@ -492,7 +625,11 @@ export declare const RESEND_EMAIL_EVENT_SCHEMA: z.ZodUnion<readonly [z.ZodObject
492
625
  createdAt: z.ZodISODateTime;
493
626
  emailId: z.ZodString;
494
627
  from: z.ZodString;
495
- messageId: z.ZodOptional<z.ZodString>;
628
+ headers: z.ZodOptional<z.ZodArray<z.ZodObject<{
629
+ name: z.ZodString;
630
+ value: z.ZodString;
631
+ }, z.core.$strip>>>;
632
+ messageId: z.ZodString;
496
633
  subject: z.ZodString;
497
634
  tags: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
498
635
  templateId: z.ZodOptional<z.ZodString>;
@@ -504,7 +641,11 @@ export declare const RESEND_EMAIL_EVENT_SCHEMA: z.ZodUnion<readonly [z.ZodObject
504
641
  created_at: z.ZodISODateTime;
505
642
  email_id: z.ZodString;
506
643
  from: z.ZodString;
507
- message_id: z.ZodOptional<z.ZodString>;
644
+ headers: z.ZodOptional<z.ZodArray<z.ZodObject<{
645
+ name: z.ZodString;
646
+ value: z.ZodString;
647
+ }, z.core.$strip>>>;
648
+ message_id: z.ZodString;
508
649
  subject: z.ZodString;
509
650
  tags: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
510
651
  template_id: z.ZodOptional<z.ZodString>;
@@ -523,7 +664,11 @@ export declare const RESEND_EMAIL_EVENT_SCHEMA: z.ZodUnion<readonly [z.ZodObject
523
664
  createdAt: z.ZodISODateTime;
524
665
  emailId: z.ZodString;
525
666
  from: z.ZodString;
526
- messageId: z.ZodOptional<z.ZodString>;
667
+ headers: z.ZodOptional<z.ZodArray<z.ZodObject<{
668
+ name: z.ZodString;
669
+ value: z.ZodString;
670
+ }, z.core.$strip>>>;
671
+ messageId: z.ZodString;
527
672
  subject: z.ZodString;
528
673
  tags: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
529
674
  templateId: z.ZodOptional<z.ZodString>;
@@ -535,7 +680,11 @@ export declare const RESEND_EMAIL_EVENT_SCHEMA: z.ZodUnion<readonly [z.ZodObject
535
680
  created_at: z.ZodISODateTime;
536
681
  email_id: z.ZodString;
537
682
  from: z.ZodString;
538
- message_id: z.ZodOptional<z.ZodString>;
683
+ headers: z.ZodOptional<z.ZodArray<z.ZodObject<{
684
+ name: z.ZodString;
685
+ value: z.ZodString;
686
+ }, z.core.$strip>>>;
687
+ message_id: z.ZodString;
539
688
  subject: z.ZodString;
540
689
  tags: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
541
690
  template_id: z.ZodOptional<z.ZodString>;
@@ -587,7 +736,11 @@ export declare const RESEND_EMAIL_EVENT_SCHEMA: z.ZodUnion<readonly [z.ZodObject
587
736
  createdAt: z.ZodISODateTime;
588
737
  emailId: z.ZodString;
589
738
  from: z.ZodString;
590
- messageId: z.ZodOptional<z.ZodString>;
739
+ headers: z.ZodOptional<z.ZodArray<z.ZodObject<{
740
+ name: z.ZodString;
741
+ value: z.ZodString;
742
+ }, z.core.$strip>>>;
743
+ messageId: z.ZodString;
591
744
  subject: z.ZodString;
592
745
  tags: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
593
746
  templateId: z.ZodOptional<z.ZodString>;
@@ -599,7 +752,11 @@ export declare const RESEND_EMAIL_EVENT_SCHEMA: z.ZodUnion<readonly [z.ZodObject
599
752
  created_at: z.ZodISODateTime;
600
753
  email_id: z.ZodString;
601
754
  from: z.ZodString;
602
- message_id: z.ZodOptional<z.ZodString>;
755
+ headers: z.ZodOptional<z.ZodArray<z.ZodObject<{
756
+ name: z.ZodString;
757
+ value: z.ZodString;
758
+ }, z.core.$strip>>>;
759
+ message_id: z.ZodString;
603
760
  subject: z.ZodString;
604
761
  tags: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
605
762
  template_id: z.ZodOptional<z.ZodString>;
@@ -612,7 +769,11 @@ export declare const RESEND_EMAIL_EVENT_SCHEMA: z.ZodUnion<readonly [z.ZodObject
612
769
  createdAt: z.ZodISODateTime;
613
770
  emailId: z.ZodString;
614
771
  from: z.ZodString;
615
- messageId: z.ZodOptional<z.ZodString>;
772
+ headers: z.ZodOptional<z.ZodArray<z.ZodObject<{
773
+ name: z.ZodString;
774
+ value: z.ZodString;
775
+ }, z.core.$strip>>>;
776
+ messageId: z.ZodString;
616
777
  subject: z.ZodString;
617
778
  tags: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
618
779
  templateId: z.ZodOptional<z.ZodString>;
@@ -624,7 +785,11 @@ export declare const RESEND_EMAIL_EVENT_SCHEMA: z.ZodUnion<readonly [z.ZodObject
624
785
  created_at: z.ZodISODateTime;
625
786
  email_id: z.ZodString;
626
787
  from: z.ZodString;
627
- message_id: z.ZodOptional<z.ZodString>;
788
+ headers: z.ZodOptional<z.ZodArray<z.ZodObject<{
789
+ name: z.ZodString;
790
+ value: z.ZodString;
791
+ }, z.core.$strip>>>;
792
+ message_id: z.ZodString;
628
793
  subject: z.ZodString;
629
794
  tags: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
630
795
  template_id: z.ZodOptional<z.ZodString>;
@@ -637,7 +802,11 @@ export declare const RESEND_EMAIL_EVENT_SCHEMA: z.ZodUnion<readonly [z.ZodObject
637
802
  createdAt: z.ZodISODateTime;
638
803
  emailId: z.ZodString;
639
804
  from: z.ZodString;
640
- messageId: z.ZodOptional<z.ZodString>;
805
+ headers: z.ZodOptional<z.ZodArray<z.ZodObject<{
806
+ name: z.ZodString;
807
+ value: z.ZodString;
808
+ }, z.core.$strip>>>;
809
+ messageId: z.ZodString;
641
810
  subject: z.ZodString;
642
811
  tags: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
643
812
  templateId: z.ZodOptional<z.ZodString>;
@@ -649,83 +818,2467 @@ export declare const RESEND_EMAIL_EVENT_SCHEMA: z.ZodUnion<readonly [z.ZodObject
649
818
  created_at: z.ZodISODateTime;
650
819
  email_id: z.ZodString;
651
820
  from: z.ZodString;
652
- message_id: z.ZodOptional<z.ZodString>;
821
+ headers: z.ZodOptional<z.ZodArray<z.ZodObject<{
822
+ name: z.ZodString;
823
+ value: z.ZodString;
824
+ }, z.core.$strip>>>;
825
+ message_id: z.ZodString;
653
826
  subject: z.ZodString;
654
827
  tags: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
655
828
  template_id: z.ZodOptional<z.ZodString>;
656
829
  to: z.ZodArray<z.ZodString>;
657
830
  suppressed: z.ZodObject<{
831
+ diagnosticCode: z.ZodOptional<z.ZodArray<z.ZodString>>;
658
832
  message: z.ZodString;
833
+ reason: z.ZodOptional<z.ZodString>;
659
834
  type: z.ZodString;
660
835
  }, z.core.$catchall<z.ZodJSONSchema>>;
661
836
  }, z.core.$catchall<z.ZodJSONSchema>>;
662
837
  type: z.ZodLiteral<"email.suppressed">;
663
838
  }, z.core.$catchall<z.ZodJSONSchema>>;
664
839
  suppressed: z.ZodObject<{
840
+ diagnosticCode: z.ZodOptional<z.ZodArray<z.ZodString>>;
665
841
  message: z.ZodString;
842
+ reason: z.ZodOptional<z.ZodString>;
666
843
  type: z.ZodString;
667
844
  }, z.core.$catchall<z.ZodJSONSchema>>;
668
845
  }, z.core.$strip>]>;
669
- /**
670
- * Normalizes one authenticated Resend email webhook.
671
- *
672
- * @param value - Untrusted provider webhook payload.
673
- */
674
- export declare function normalizeResendEmailEvent(value: unknown): {
675
- createdAt: string;
676
- emailId: string;
677
- from: string;
678
- subject: string;
679
- to: string[];
680
- bounce: {
681
- [x: string]: z.core.util.JSONType;
682
- message: string;
683
- subType: string;
684
- type: string;
685
- diagnosticCode?: string[] | undefined;
686
- };
687
- event: {
688
- [x: string]: z.core.util.JSONType;
689
- created_at: string;
690
- data: {
691
- [x: string]: z.core.util.JSONType;
692
- created_at: string;
693
- email_id: string;
694
- from: string;
695
- subject: string;
696
- to: string[];
697
- bounce: {
698
- [x: string]: z.core.util.JSONType;
699
- message: string;
700
- subType: string;
701
- type: string;
702
- diagnosticCode?: string[] | undefined;
703
- };
704
- broadcast_id?: string | undefined;
705
- message_id?: string | undefined;
706
- tags?: Record<string, string> | undefined;
707
- template_id?: string | undefined;
708
- };
709
- type: "email.bounced";
710
- };
711
- broadcastId?: string | undefined;
712
- messageId?: string | undefined;
713
- tags?: Record<string, string> | undefined;
714
- templateId?: string | undefined;
715
- } | {
716
- createdAt: string;
717
- emailId: string;
718
- from: string;
719
- subject: string;
720
- to: string[];
721
- click: {
722
- [x: string]: z.core.util.JSONType;
723
- ipAddress: string;
724
- link: string;
725
- timestamp: string;
726
- userAgent: string;
727
- };
728
- event: {
846
+ export declare const RESEND_CONTACT_CREATED_EVENT_SCHEMA: z.ZodObject<{
847
+ audienceId: z.ZodOptional<z.ZodString>;
848
+ createdAt: z.ZodISODateTime;
849
+ email: z.ZodEmail;
850
+ firstName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
851
+ id: z.ZodString;
852
+ lastName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
853
+ segmentIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
854
+ unsubscribed: z.ZodBoolean;
855
+ updatedAt: z.ZodISODateTime;
856
+ event: z.ZodObject<{
857
+ created_at: z.ZodISODateTime;
858
+ data: z.ZodObject<{
859
+ audience_id: z.ZodOptional<z.ZodString>;
860
+ created_at: z.ZodISODateTime;
861
+ email: z.ZodEmail;
862
+ first_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
863
+ id: z.ZodString;
864
+ last_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
865
+ segment_ids: z.ZodOptional<z.ZodArray<z.ZodString>>;
866
+ unsubscribed: z.ZodBoolean;
867
+ updated_at: z.ZodISODateTime;
868
+ }, z.core.$catchall<z.ZodJSONSchema>>;
869
+ type: z.ZodLiteral<"contact.created">;
870
+ }, z.core.$catchall<z.ZodJSONSchema>>;
871
+ }, z.core.$strip>;
872
+ export declare const RESEND_CONTACT_UPDATED_EVENT_SCHEMA: z.ZodObject<{
873
+ audienceId: z.ZodOptional<z.ZodString>;
874
+ createdAt: z.ZodISODateTime;
875
+ email: z.ZodEmail;
876
+ firstName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
877
+ id: z.ZodString;
878
+ lastName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
879
+ segmentIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
880
+ unsubscribed: z.ZodBoolean;
881
+ updatedAt: z.ZodISODateTime;
882
+ event: z.ZodObject<{
883
+ created_at: z.ZodISODateTime;
884
+ data: z.ZodObject<{
885
+ audience_id: z.ZodOptional<z.ZodString>;
886
+ created_at: z.ZodISODateTime;
887
+ email: z.ZodEmail;
888
+ first_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
889
+ id: z.ZodString;
890
+ last_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
891
+ segment_ids: z.ZodOptional<z.ZodArray<z.ZodString>>;
892
+ unsubscribed: z.ZodBoolean;
893
+ updated_at: z.ZodISODateTime;
894
+ }, z.core.$catchall<z.ZodJSONSchema>>;
895
+ type: z.ZodLiteral<"contact.updated">;
896
+ }, z.core.$catchall<z.ZodJSONSchema>>;
897
+ }, z.core.$strip>;
898
+ export declare const RESEND_CONTACT_DELETED_EVENT_SCHEMA: z.ZodObject<{
899
+ audienceId: z.ZodOptional<z.ZodString>;
900
+ createdAt: z.ZodISODateTime;
901
+ email: z.ZodEmail;
902
+ firstName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
903
+ id: z.ZodString;
904
+ lastName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
905
+ segmentIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
906
+ unsubscribed: z.ZodBoolean;
907
+ updatedAt: z.ZodISODateTime;
908
+ event: z.ZodObject<{
909
+ created_at: z.ZodISODateTime;
910
+ data: z.ZodObject<{
911
+ audience_id: z.ZodOptional<z.ZodString>;
912
+ created_at: z.ZodISODateTime;
913
+ email: z.ZodEmail;
914
+ first_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
915
+ id: z.ZodString;
916
+ last_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
917
+ segment_ids: z.ZodOptional<z.ZodArray<z.ZodString>>;
918
+ unsubscribed: z.ZodBoolean;
919
+ updated_at: z.ZodISODateTime;
920
+ }, z.core.$catchall<z.ZodJSONSchema>>;
921
+ type: z.ZodLiteral<"contact.deleted">;
922
+ }, z.core.$catchall<z.ZodJSONSchema>>;
923
+ }, z.core.$strip>;
924
+ export declare const RESEND_CONTACT_EVENT_SCHEMA: z.ZodUnion<readonly [z.ZodObject<{
925
+ audienceId: z.ZodOptional<z.ZodString>;
926
+ createdAt: z.ZodISODateTime;
927
+ email: z.ZodEmail;
928
+ firstName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
929
+ id: z.ZodString;
930
+ lastName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
931
+ segmentIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
932
+ unsubscribed: z.ZodBoolean;
933
+ updatedAt: z.ZodISODateTime;
934
+ event: z.ZodObject<{
935
+ created_at: z.ZodISODateTime;
936
+ data: z.ZodObject<{
937
+ audience_id: z.ZodOptional<z.ZodString>;
938
+ created_at: z.ZodISODateTime;
939
+ email: z.ZodEmail;
940
+ first_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
941
+ id: z.ZodString;
942
+ last_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
943
+ segment_ids: z.ZodOptional<z.ZodArray<z.ZodString>>;
944
+ unsubscribed: z.ZodBoolean;
945
+ updated_at: z.ZodISODateTime;
946
+ }, z.core.$catchall<z.ZodJSONSchema>>;
947
+ type: z.ZodLiteral<"contact.created">;
948
+ }, z.core.$catchall<z.ZodJSONSchema>>;
949
+ }, z.core.$strip>, z.ZodObject<{
950
+ audienceId: z.ZodOptional<z.ZodString>;
951
+ createdAt: z.ZodISODateTime;
952
+ email: z.ZodEmail;
953
+ firstName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
954
+ id: z.ZodString;
955
+ lastName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
956
+ segmentIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
957
+ unsubscribed: z.ZodBoolean;
958
+ updatedAt: z.ZodISODateTime;
959
+ event: z.ZodObject<{
960
+ created_at: z.ZodISODateTime;
961
+ data: z.ZodObject<{
962
+ audience_id: z.ZodOptional<z.ZodString>;
963
+ created_at: z.ZodISODateTime;
964
+ email: z.ZodEmail;
965
+ first_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
966
+ id: z.ZodString;
967
+ last_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
968
+ segment_ids: z.ZodOptional<z.ZodArray<z.ZodString>>;
969
+ unsubscribed: z.ZodBoolean;
970
+ updated_at: z.ZodISODateTime;
971
+ }, z.core.$catchall<z.ZodJSONSchema>>;
972
+ type: z.ZodLiteral<"contact.updated">;
973
+ }, z.core.$catchall<z.ZodJSONSchema>>;
974
+ }, z.core.$strip>, z.ZodObject<{
975
+ audienceId: z.ZodOptional<z.ZodString>;
976
+ createdAt: z.ZodISODateTime;
977
+ email: z.ZodEmail;
978
+ firstName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
979
+ id: z.ZodString;
980
+ lastName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
981
+ segmentIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
982
+ unsubscribed: z.ZodBoolean;
983
+ updatedAt: z.ZodISODateTime;
984
+ event: z.ZodObject<{
985
+ created_at: z.ZodISODateTime;
986
+ data: z.ZodObject<{
987
+ audience_id: z.ZodOptional<z.ZodString>;
988
+ created_at: z.ZodISODateTime;
989
+ email: z.ZodEmail;
990
+ first_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
991
+ id: z.ZodString;
992
+ last_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
993
+ segment_ids: z.ZodOptional<z.ZodArray<z.ZodString>>;
994
+ unsubscribed: z.ZodBoolean;
995
+ updated_at: z.ZodISODateTime;
996
+ }, z.core.$catchall<z.ZodJSONSchema>>;
997
+ type: z.ZodLiteral<"contact.deleted">;
998
+ }, z.core.$catchall<z.ZodJSONSchema>>;
999
+ }, z.core.$strip>]>;
1000
+ export declare const RESEND_DOMAIN_CREATED_EVENT_SCHEMA: z.ZodObject<{
1001
+ capabilities: z.ZodOptional<z.ZodObject<{
1002
+ receiving: z.ZodOptional<z.ZodEnum<{
1003
+ enabled: "enabled";
1004
+ disabled: "disabled";
1005
+ }>>;
1006
+ sending: z.ZodOptional<z.ZodEnum<{
1007
+ enabled: "enabled";
1008
+ disabled: "disabled";
1009
+ }>>;
1010
+ }, z.core.$strip>>;
1011
+ createdAt: z.ZodISODateTime;
1012
+ id: z.ZodString;
1013
+ name: z.ZodString;
1014
+ records: z.ZodArray<z.ZodObject<{
1015
+ name: z.ZodString;
1016
+ priority: z.ZodOptional<z.ZodNumber>;
1017
+ record: z.ZodEnum<{
1018
+ SPF: "SPF";
1019
+ DKIM: "DKIM";
1020
+ "Receiving MX": "Receiving MX";
1021
+ Tracking: "Tracking";
1022
+ TrackingCAA: "TrackingCAA";
1023
+ }>;
1024
+ status: z.ZodEnum<{
1025
+ failed: "failed";
1026
+ pending: "pending";
1027
+ verified: "verified";
1028
+ not_started: "not_started";
1029
+ temporary_failure: "temporary_failure";
1030
+ }>;
1031
+ ttl: z.ZodString;
1032
+ type: z.ZodEnum<{
1033
+ MX: "MX";
1034
+ TXT: "TXT";
1035
+ CNAME: "CNAME";
1036
+ CAA: "CAA";
1037
+ }>;
1038
+ value: z.ZodString;
1039
+ }, z.core.$strip>>;
1040
+ region: z.ZodEnum<{
1041
+ "us-east-1": "us-east-1";
1042
+ "eu-west-1": "eu-west-1";
1043
+ "sa-east-1": "sa-east-1";
1044
+ "ap-northeast-1": "ap-northeast-1";
1045
+ }>;
1046
+ status: z.ZodEnum<{
1047
+ failed: "failed";
1048
+ pending: "pending";
1049
+ verified: "verified";
1050
+ partially_verified: "partially_verified";
1051
+ partially_failed: "partially_failed";
1052
+ not_started: "not_started";
1053
+ }>;
1054
+ event: z.ZodObject<{
1055
+ created_at: z.ZodISODateTime;
1056
+ data: z.ZodObject<{
1057
+ capabilities: z.ZodOptional<z.ZodObject<{
1058
+ receiving: z.ZodOptional<z.ZodEnum<{
1059
+ enabled: "enabled";
1060
+ disabled: "disabled";
1061
+ }>>;
1062
+ sending: z.ZodOptional<z.ZodEnum<{
1063
+ enabled: "enabled";
1064
+ disabled: "disabled";
1065
+ }>>;
1066
+ }, z.core.$strip>>;
1067
+ created_at: z.ZodISODateTime;
1068
+ id: z.ZodString;
1069
+ name: z.ZodString;
1070
+ records: z.ZodArray<z.ZodObject<{
1071
+ name: z.ZodString;
1072
+ priority: z.ZodOptional<z.ZodNumber>;
1073
+ record: z.ZodEnum<{
1074
+ SPF: "SPF";
1075
+ DKIM: "DKIM";
1076
+ "Receiving MX": "Receiving MX";
1077
+ Tracking: "Tracking";
1078
+ TrackingCAA: "TrackingCAA";
1079
+ }>;
1080
+ status: z.ZodEnum<{
1081
+ failed: "failed";
1082
+ pending: "pending";
1083
+ verified: "verified";
1084
+ not_started: "not_started";
1085
+ temporary_failure: "temporary_failure";
1086
+ }>;
1087
+ ttl: z.ZodString;
1088
+ type: z.ZodEnum<{
1089
+ MX: "MX";
1090
+ TXT: "TXT";
1091
+ CNAME: "CNAME";
1092
+ CAA: "CAA";
1093
+ }>;
1094
+ value: z.ZodString;
1095
+ }, z.core.$strip>>;
1096
+ region: z.ZodEnum<{
1097
+ "us-east-1": "us-east-1";
1098
+ "eu-west-1": "eu-west-1";
1099
+ "sa-east-1": "sa-east-1";
1100
+ "ap-northeast-1": "ap-northeast-1";
1101
+ }>;
1102
+ status: z.ZodEnum<{
1103
+ failed: "failed";
1104
+ pending: "pending";
1105
+ verified: "verified";
1106
+ partially_verified: "partially_verified";
1107
+ partially_failed: "partially_failed";
1108
+ not_started: "not_started";
1109
+ }>;
1110
+ }, z.core.$catchall<z.ZodJSONSchema>>;
1111
+ type: z.ZodLiteral<"domain.created">;
1112
+ }, z.core.$catchall<z.ZodJSONSchema>>;
1113
+ }, z.core.$strip>;
1114
+ export declare const RESEND_DOMAIN_UPDATED_EVENT_SCHEMA: z.ZodObject<{
1115
+ capabilities: z.ZodOptional<z.ZodObject<{
1116
+ receiving: z.ZodOptional<z.ZodEnum<{
1117
+ enabled: "enabled";
1118
+ disabled: "disabled";
1119
+ }>>;
1120
+ sending: z.ZodOptional<z.ZodEnum<{
1121
+ enabled: "enabled";
1122
+ disabled: "disabled";
1123
+ }>>;
1124
+ }, z.core.$strip>>;
1125
+ createdAt: z.ZodISODateTime;
1126
+ id: z.ZodString;
1127
+ name: z.ZodString;
1128
+ records: z.ZodArray<z.ZodObject<{
1129
+ name: z.ZodString;
1130
+ priority: z.ZodOptional<z.ZodNumber>;
1131
+ record: z.ZodEnum<{
1132
+ SPF: "SPF";
1133
+ DKIM: "DKIM";
1134
+ "Receiving MX": "Receiving MX";
1135
+ Tracking: "Tracking";
1136
+ TrackingCAA: "TrackingCAA";
1137
+ }>;
1138
+ status: z.ZodEnum<{
1139
+ failed: "failed";
1140
+ pending: "pending";
1141
+ verified: "verified";
1142
+ not_started: "not_started";
1143
+ temporary_failure: "temporary_failure";
1144
+ }>;
1145
+ ttl: z.ZodString;
1146
+ type: z.ZodEnum<{
1147
+ MX: "MX";
1148
+ TXT: "TXT";
1149
+ CNAME: "CNAME";
1150
+ CAA: "CAA";
1151
+ }>;
1152
+ value: z.ZodString;
1153
+ }, z.core.$strip>>;
1154
+ region: z.ZodEnum<{
1155
+ "us-east-1": "us-east-1";
1156
+ "eu-west-1": "eu-west-1";
1157
+ "sa-east-1": "sa-east-1";
1158
+ "ap-northeast-1": "ap-northeast-1";
1159
+ }>;
1160
+ status: z.ZodEnum<{
1161
+ failed: "failed";
1162
+ pending: "pending";
1163
+ verified: "verified";
1164
+ partially_verified: "partially_verified";
1165
+ partially_failed: "partially_failed";
1166
+ not_started: "not_started";
1167
+ }>;
1168
+ event: z.ZodObject<{
1169
+ created_at: z.ZodISODateTime;
1170
+ data: z.ZodObject<{
1171
+ capabilities: z.ZodOptional<z.ZodObject<{
1172
+ receiving: z.ZodOptional<z.ZodEnum<{
1173
+ enabled: "enabled";
1174
+ disabled: "disabled";
1175
+ }>>;
1176
+ sending: z.ZodOptional<z.ZodEnum<{
1177
+ enabled: "enabled";
1178
+ disabled: "disabled";
1179
+ }>>;
1180
+ }, z.core.$strip>>;
1181
+ created_at: z.ZodISODateTime;
1182
+ id: z.ZodString;
1183
+ name: z.ZodString;
1184
+ records: z.ZodArray<z.ZodObject<{
1185
+ name: z.ZodString;
1186
+ priority: z.ZodOptional<z.ZodNumber>;
1187
+ record: z.ZodEnum<{
1188
+ SPF: "SPF";
1189
+ DKIM: "DKIM";
1190
+ "Receiving MX": "Receiving MX";
1191
+ Tracking: "Tracking";
1192
+ TrackingCAA: "TrackingCAA";
1193
+ }>;
1194
+ status: z.ZodEnum<{
1195
+ failed: "failed";
1196
+ pending: "pending";
1197
+ verified: "verified";
1198
+ not_started: "not_started";
1199
+ temporary_failure: "temporary_failure";
1200
+ }>;
1201
+ ttl: z.ZodString;
1202
+ type: z.ZodEnum<{
1203
+ MX: "MX";
1204
+ TXT: "TXT";
1205
+ CNAME: "CNAME";
1206
+ CAA: "CAA";
1207
+ }>;
1208
+ value: z.ZodString;
1209
+ }, z.core.$strip>>;
1210
+ region: z.ZodEnum<{
1211
+ "us-east-1": "us-east-1";
1212
+ "eu-west-1": "eu-west-1";
1213
+ "sa-east-1": "sa-east-1";
1214
+ "ap-northeast-1": "ap-northeast-1";
1215
+ }>;
1216
+ status: z.ZodEnum<{
1217
+ failed: "failed";
1218
+ pending: "pending";
1219
+ verified: "verified";
1220
+ partially_verified: "partially_verified";
1221
+ partially_failed: "partially_failed";
1222
+ not_started: "not_started";
1223
+ }>;
1224
+ }, z.core.$catchall<z.ZodJSONSchema>>;
1225
+ type: z.ZodLiteral<"domain.updated">;
1226
+ }, z.core.$catchall<z.ZodJSONSchema>>;
1227
+ }, z.core.$strip>;
1228
+ export declare const RESEND_DOMAIN_DELETED_EVENT_SCHEMA: z.ZodObject<{
1229
+ capabilities: z.ZodOptional<z.ZodObject<{
1230
+ receiving: z.ZodOptional<z.ZodEnum<{
1231
+ enabled: "enabled";
1232
+ disabled: "disabled";
1233
+ }>>;
1234
+ sending: z.ZodOptional<z.ZodEnum<{
1235
+ enabled: "enabled";
1236
+ disabled: "disabled";
1237
+ }>>;
1238
+ }, z.core.$strip>>;
1239
+ createdAt: z.ZodISODateTime;
1240
+ id: z.ZodString;
1241
+ name: z.ZodString;
1242
+ records: z.ZodArray<z.ZodObject<{
1243
+ name: z.ZodString;
1244
+ priority: z.ZodOptional<z.ZodNumber>;
1245
+ record: z.ZodEnum<{
1246
+ SPF: "SPF";
1247
+ DKIM: "DKIM";
1248
+ "Receiving MX": "Receiving MX";
1249
+ Tracking: "Tracking";
1250
+ TrackingCAA: "TrackingCAA";
1251
+ }>;
1252
+ status: z.ZodEnum<{
1253
+ failed: "failed";
1254
+ pending: "pending";
1255
+ verified: "verified";
1256
+ not_started: "not_started";
1257
+ temporary_failure: "temporary_failure";
1258
+ }>;
1259
+ ttl: z.ZodString;
1260
+ type: z.ZodEnum<{
1261
+ MX: "MX";
1262
+ TXT: "TXT";
1263
+ CNAME: "CNAME";
1264
+ CAA: "CAA";
1265
+ }>;
1266
+ value: z.ZodString;
1267
+ }, z.core.$strip>>;
1268
+ region: z.ZodEnum<{
1269
+ "us-east-1": "us-east-1";
1270
+ "eu-west-1": "eu-west-1";
1271
+ "sa-east-1": "sa-east-1";
1272
+ "ap-northeast-1": "ap-northeast-1";
1273
+ }>;
1274
+ status: z.ZodEnum<{
1275
+ failed: "failed";
1276
+ pending: "pending";
1277
+ verified: "verified";
1278
+ partially_verified: "partially_verified";
1279
+ partially_failed: "partially_failed";
1280
+ not_started: "not_started";
1281
+ }>;
1282
+ event: z.ZodObject<{
1283
+ created_at: z.ZodISODateTime;
1284
+ data: z.ZodObject<{
1285
+ capabilities: z.ZodOptional<z.ZodObject<{
1286
+ receiving: z.ZodOptional<z.ZodEnum<{
1287
+ enabled: "enabled";
1288
+ disabled: "disabled";
1289
+ }>>;
1290
+ sending: z.ZodOptional<z.ZodEnum<{
1291
+ enabled: "enabled";
1292
+ disabled: "disabled";
1293
+ }>>;
1294
+ }, z.core.$strip>>;
1295
+ created_at: z.ZodISODateTime;
1296
+ id: z.ZodString;
1297
+ name: z.ZodString;
1298
+ records: z.ZodArray<z.ZodObject<{
1299
+ name: z.ZodString;
1300
+ priority: z.ZodOptional<z.ZodNumber>;
1301
+ record: z.ZodEnum<{
1302
+ SPF: "SPF";
1303
+ DKIM: "DKIM";
1304
+ "Receiving MX": "Receiving MX";
1305
+ Tracking: "Tracking";
1306
+ TrackingCAA: "TrackingCAA";
1307
+ }>;
1308
+ status: z.ZodEnum<{
1309
+ failed: "failed";
1310
+ pending: "pending";
1311
+ verified: "verified";
1312
+ not_started: "not_started";
1313
+ temporary_failure: "temporary_failure";
1314
+ }>;
1315
+ ttl: z.ZodString;
1316
+ type: z.ZodEnum<{
1317
+ MX: "MX";
1318
+ TXT: "TXT";
1319
+ CNAME: "CNAME";
1320
+ CAA: "CAA";
1321
+ }>;
1322
+ value: z.ZodString;
1323
+ }, z.core.$strip>>;
1324
+ region: z.ZodEnum<{
1325
+ "us-east-1": "us-east-1";
1326
+ "eu-west-1": "eu-west-1";
1327
+ "sa-east-1": "sa-east-1";
1328
+ "ap-northeast-1": "ap-northeast-1";
1329
+ }>;
1330
+ status: z.ZodEnum<{
1331
+ failed: "failed";
1332
+ pending: "pending";
1333
+ verified: "verified";
1334
+ partially_verified: "partially_verified";
1335
+ partially_failed: "partially_failed";
1336
+ not_started: "not_started";
1337
+ }>;
1338
+ }, z.core.$catchall<z.ZodJSONSchema>>;
1339
+ type: z.ZodLiteral<"domain.deleted">;
1340
+ }, z.core.$catchall<z.ZodJSONSchema>>;
1341
+ }, z.core.$strip>;
1342
+ export declare const RESEND_DOMAIN_EVENT_SCHEMA: z.ZodUnion<readonly [z.ZodObject<{
1343
+ capabilities: z.ZodOptional<z.ZodObject<{
1344
+ receiving: z.ZodOptional<z.ZodEnum<{
1345
+ enabled: "enabled";
1346
+ disabled: "disabled";
1347
+ }>>;
1348
+ sending: z.ZodOptional<z.ZodEnum<{
1349
+ enabled: "enabled";
1350
+ disabled: "disabled";
1351
+ }>>;
1352
+ }, z.core.$strip>>;
1353
+ createdAt: z.ZodISODateTime;
1354
+ id: z.ZodString;
1355
+ name: z.ZodString;
1356
+ records: z.ZodArray<z.ZodObject<{
1357
+ name: z.ZodString;
1358
+ priority: z.ZodOptional<z.ZodNumber>;
1359
+ record: z.ZodEnum<{
1360
+ SPF: "SPF";
1361
+ DKIM: "DKIM";
1362
+ "Receiving MX": "Receiving MX";
1363
+ Tracking: "Tracking";
1364
+ TrackingCAA: "TrackingCAA";
1365
+ }>;
1366
+ status: z.ZodEnum<{
1367
+ failed: "failed";
1368
+ pending: "pending";
1369
+ verified: "verified";
1370
+ not_started: "not_started";
1371
+ temporary_failure: "temporary_failure";
1372
+ }>;
1373
+ ttl: z.ZodString;
1374
+ type: z.ZodEnum<{
1375
+ MX: "MX";
1376
+ TXT: "TXT";
1377
+ CNAME: "CNAME";
1378
+ CAA: "CAA";
1379
+ }>;
1380
+ value: z.ZodString;
1381
+ }, z.core.$strip>>;
1382
+ region: z.ZodEnum<{
1383
+ "us-east-1": "us-east-1";
1384
+ "eu-west-1": "eu-west-1";
1385
+ "sa-east-1": "sa-east-1";
1386
+ "ap-northeast-1": "ap-northeast-1";
1387
+ }>;
1388
+ status: z.ZodEnum<{
1389
+ failed: "failed";
1390
+ pending: "pending";
1391
+ verified: "verified";
1392
+ partially_verified: "partially_verified";
1393
+ partially_failed: "partially_failed";
1394
+ not_started: "not_started";
1395
+ }>;
1396
+ event: z.ZodObject<{
1397
+ created_at: z.ZodISODateTime;
1398
+ data: z.ZodObject<{
1399
+ capabilities: z.ZodOptional<z.ZodObject<{
1400
+ receiving: z.ZodOptional<z.ZodEnum<{
1401
+ enabled: "enabled";
1402
+ disabled: "disabled";
1403
+ }>>;
1404
+ sending: z.ZodOptional<z.ZodEnum<{
1405
+ enabled: "enabled";
1406
+ disabled: "disabled";
1407
+ }>>;
1408
+ }, z.core.$strip>>;
1409
+ created_at: z.ZodISODateTime;
1410
+ id: z.ZodString;
1411
+ name: z.ZodString;
1412
+ records: z.ZodArray<z.ZodObject<{
1413
+ name: z.ZodString;
1414
+ priority: z.ZodOptional<z.ZodNumber>;
1415
+ record: z.ZodEnum<{
1416
+ SPF: "SPF";
1417
+ DKIM: "DKIM";
1418
+ "Receiving MX": "Receiving MX";
1419
+ Tracking: "Tracking";
1420
+ TrackingCAA: "TrackingCAA";
1421
+ }>;
1422
+ status: z.ZodEnum<{
1423
+ failed: "failed";
1424
+ pending: "pending";
1425
+ verified: "verified";
1426
+ not_started: "not_started";
1427
+ temporary_failure: "temporary_failure";
1428
+ }>;
1429
+ ttl: z.ZodString;
1430
+ type: z.ZodEnum<{
1431
+ MX: "MX";
1432
+ TXT: "TXT";
1433
+ CNAME: "CNAME";
1434
+ CAA: "CAA";
1435
+ }>;
1436
+ value: z.ZodString;
1437
+ }, z.core.$strip>>;
1438
+ region: z.ZodEnum<{
1439
+ "us-east-1": "us-east-1";
1440
+ "eu-west-1": "eu-west-1";
1441
+ "sa-east-1": "sa-east-1";
1442
+ "ap-northeast-1": "ap-northeast-1";
1443
+ }>;
1444
+ status: z.ZodEnum<{
1445
+ failed: "failed";
1446
+ pending: "pending";
1447
+ verified: "verified";
1448
+ partially_verified: "partially_verified";
1449
+ partially_failed: "partially_failed";
1450
+ not_started: "not_started";
1451
+ }>;
1452
+ }, z.core.$catchall<z.ZodJSONSchema>>;
1453
+ type: z.ZodLiteral<"domain.created">;
1454
+ }, z.core.$catchall<z.ZodJSONSchema>>;
1455
+ }, z.core.$strip>, z.ZodObject<{
1456
+ capabilities: z.ZodOptional<z.ZodObject<{
1457
+ receiving: z.ZodOptional<z.ZodEnum<{
1458
+ enabled: "enabled";
1459
+ disabled: "disabled";
1460
+ }>>;
1461
+ sending: z.ZodOptional<z.ZodEnum<{
1462
+ enabled: "enabled";
1463
+ disabled: "disabled";
1464
+ }>>;
1465
+ }, z.core.$strip>>;
1466
+ createdAt: z.ZodISODateTime;
1467
+ id: z.ZodString;
1468
+ name: z.ZodString;
1469
+ records: z.ZodArray<z.ZodObject<{
1470
+ name: z.ZodString;
1471
+ priority: z.ZodOptional<z.ZodNumber>;
1472
+ record: z.ZodEnum<{
1473
+ SPF: "SPF";
1474
+ DKIM: "DKIM";
1475
+ "Receiving MX": "Receiving MX";
1476
+ Tracking: "Tracking";
1477
+ TrackingCAA: "TrackingCAA";
1478
+ }>;
1479
+ status: z.ZodEnum<{
1480
+ failed: "failed";
1481
+ pending: "pending";
1482
+ verified: "verified";
1483
+ not_started: "not_started";
1484
+ temporary_failure: "temporary_failure";
1485
+ }>;
1486
+ ttl: z.ZodString;
1487
+ type: z.ZodEnum<{
1488
+ MX: "MX";
1489
+ TXT: "TXT";
1490
+ CNAME: "CNAME";
1491
+ CAA: "CAA";
1492
+ }>;
1493
+ value: z.ZodString;
1494
+ }, z.core.$strip>>;
1495
+ region: z.ZodEnum<{
1496
+ "us-east-1": "us-east-1";
1497
+ "eu-west-1": "eu-west-1";
1498
+ "sa-east-1": "sa-east-1";
1499
+ "ap-northeast-1": "ap-northeast-1";
1500
+ }>;
1501
+ status: z.ZodEnum<{
1502
+ failed: "failed";
1503
+ pending: "pending";
1504
+ verified: "verified";
1505
+ partially_verified: "partially_verified";
1506
+ partially_failed: "partially_failed";
1507
+ not_started: "not_started";
1508
+ }>;
1509
+ event: z.ZodObject<{
1510
+ created_at: z.ZodISODateTime;
1511
+ data: z.ZodObject<{
1512
+ capabilities: z.ZodOptional<z.ZodObject<{
1513
+ receiving: z.ZodOptional<z.ZodEnum<{
1514
+ enabled: "enabled";
1515
+ disabled: "disabled";
1516
+ }>>;
1517
+ sending: z.ZodOptional<z.ZodEnum<{
1518
+ enabled: "enabled";
1519
+ disabled: "disabled";
1520
+ }>>;
1521
+ }, z.core.$strip>>;
1522
+ created_at: z.ZodISODateTime;
1523
+ id: z.ZodString;
1524
+ name: z.ZodString;
1525
+ records: z.ZodArray<z.ZodObject<{
1526
+ name: z.ZodString;
1527
+ priority: z.ZodOptional<z.ZodNumber>;
1528
+ record: z.ZodEnum<{
1529
+ SPF: "SPF";
1530
+ DKIM: "DKIM";
1531
+ "Receiving MX": "Receiving MX";
1532
+ Tracking: "Tracking";
1533
+ TrackingCAA: "TrackingCAA";
1534
+ }>;
1535
+ status: z.ZodEnum<{
1536
+ failed: "failed";
1537
+ pending: "pending";
1538
+ verified: "verified";
1539
+ not_started: "not_started";
1540
+ temporary_failure: "temporary_failure";
1541
+ }>;
1542
+ ttl: z.ZodString;
1543
+ type: z.ZodEnum<{
1544
+ MX: "MX";
1545
+ TXT: "TXT";
1546
+ CNAME: "CNAME";
1547
+ CAA: "CAA";
1548
+ }>;
1549
+ value: z.ZodString;
1550
+ }, z.core.$strip>>;
1551
+ region: z.ZodEnum<{
1552
+ "us-east-1": "us-east-1";
1553
+ "eu-west-1": "eu-west-1";
1554
+ "sa-east-1": "sa-east-1";
1555
+ "ap-northeast-1": "ap-northeast-1";
1556
+ }>;
1557
+ status: z.ZodEnum<{
1558
+ failed: "failed";
1559
+ pending: "pending";
1560
+ verified: "verified";
1561
+ partially_verified: "partially_verified";
1562
+ partially_failed: "partially_failed";
1563
+ not_started: "not_started";
1564
+ }>;
1565
+ }, z.core.$catchall<z.ZodJSONSchema>>;
1566
+ type: z.ZodLiteral<"domain.updated">;
1567
+ }, z.core.$catchall<z.ZodJSONSchema>>;
1568
+ }, z.core.$strip>, z.ZodObject<{
1569
+ capabilities: z.ZodOptional<z.ZodObject<{
1570
+ receiving: z.ZodOptional<z.ZodEnum<{
1571
+ enabled: "enabled";
1572
+ disabled: "disabled";
1573
+ }>>;
1574
+ sending: z.ZodOptional<z.ZodEnum<{
1575
+ enabled: "enabled";
1576
+ disabled: "disabled";
1577
+ }>>;
1578
+ }, z.core.$strip>>;
1579
+ createdAt: z.ZodISODateTime;
1580
+ id: z.ZodString;
1581
+ name: z.ZodString;
1582
+ records: z.ZodArray<z.ZodObject<{
1583
+ name: z.ZodString;
1584
+ priority: z.ZodOptional<z.ZodNumber>;
1585
+ record: z.ZodEnum<{
1586
+ SPF: "SPF";
1587
+ DKIM: "DKIM";
1588
+ "Receiving MX": "Receiving MX";
1589
+ Tracking: "Tracking";
1590
+ TrackingCAA: "TrackingCAA";
1591
+ }>;
1592
+ status: z.ZodEnum<{
1593
+ failed: "failed";
1594
+ pending: "pending";
1595
+ verified: "verified";
1596
+ not_started: "not_started";
1597
+ temporary_failure: "temporary_failure";
1598
+ }>;
1599
+ ttl: z.ZodString;
1600
+ type: z.ZodEnum<{
1601
+ MX: "MX";
1602
+ TXT: "TXT";
1603
+ CNAME: "CNAME";
1604
+ CAA: "CAA";
1605
+ }>;
1606
+ value: z.ZodString;
1607
+ }, z.core.$strip>>;
1608
+ region: z.ZodEnum<{
1609
+ "us-east-1": "us-east-1";
1610
+ "eu-west-1": "eu-west-1";
1611
+ "sa-east-1": "sa-east-1";
1612
+ "ap-northeast-1": "ap-northeast-1";
1613
+ }>;
1614
+ status: z.ZodEnum<{
1615
+ failed: "failed";
1616
+ pending: "pending";
1617
+ verified: "verified";
1618
+ partially_verified: "partially_verified";
1619
+ partially_failed: "partially_failed";
1620
+ not_started: "not_started";
1621
+ }>;
1622
+ event: z.ZodObject<{
1623
+ created_at: z.ZodISODateTime;
1624
+ data: z.ZodObject<{
1625
+ capabilities: z.ZodOptional<z.ZodObject<{
1626
+ receiving: z.ZodOptional<z.ZodEnum<{
1627
+ enabled: "enabled";
1628
+ disabled: "disabled";
1629
+ }>>;
1630
+ sending: z.ZodOptional<z.ZodEnum<{
1631
+ enabled: "enabled";
1632
+ disabled: "disabled";
1633
+ }>>;
1634
+ }, z.core.$strip>>;
1635
+ created_at: z.ZodISODateTime;
1636
+ id: z.ZodString;
1637
+ name: z.ZodString;
1638
+ records: z.ZodArray<z.ZodObject<{
1639
+ name: z.ZodString;
1640
+ priority: z.ZodOptional<z.ZodNumber>;
1641
+ record: z.ZodEnum<{
1642
+ SPF: "SPF";
1643
+ DKIM: "DKIM";
1644
+ "Receiving MX": "Receiving MX";
1645
+ Tracking: "Tracking";
1646
+ TrackingCAA: "TrackingCAA";
1647
+ }>;
1648
+ status: z.ZodEnum<{
1649
+ failed: "failed";
1650
+ pending: "pending";
1651
+ verified: "verified";
1652
+ not_started: "not_started";
1653
+ temporary_failure: "temporary_failure";
1654
+ }>;
1655
+ ttl: z.ZodString;
1656
+ type: z.ZodEnum<{
1657
+ MX: "MX";
1658
+ TXT: "TXT";
1659
+ CNAME: "CNAME";
1660
+ CAA: "CAA";
1661
+ }>;
1662
+ value: z.ZodString;
1663
+ }, z.core.$strip>>;
1664
+ region: z.ZodEnum<{
1665
+ "us-east-1": "us-east-1";
1666
+ "eu-west-1": "eu-west-1";
1667
+ "sa-east-1": "sa-east-1";
1668
+ "ap-northeast-1": "ap-northeast-1";
1669
+ }>;
1670
+ status: z.ZodEnum<{
1671
+ failed: "failed";
1672
+ pending: "pending";
1673
+ verified: "verified";
1674
+ partially_verified: "partially_verified";
1675
+ partially_failed: "partially_failed";
1676
+ not_started: "not_started";
1677
+ }>;
1678
+ }, z.core.$catchall<z.ZodJSONSchema>>;
1679
+ type: z.ZodLiteral<"domain.deleted">;
1680
+ }, z.core.$catchall<z.ZodJSONSchema>>;
1681
+ }, z.core.$strip>]>;
1682
+ export declare const RESEND_SUPPRESSION_ADDED_EVENT_SCHEMA: z.ZodObject<{
1683
+ createdAt: z.ZodISODateTime;
1684
+ email: z.ZodEmail;
1685
+ id: z.ZodString;
1686
+ origin: z.ZodEnum<{
1687
+ manual: "manual";
1688
+ bounce: "bounce";
1689
+ complaint: "complaint";
1690
+ }>;
1691
+ sourceId: z.ZodNullable<z.ZodString>;
1692
+ event: z.ZodObject<{
1693
+ created_at: z.ZodISODateTime;
1694
+ data: z.ZodObject<{
1695
+ created_at: z.ZodISODateTime;
1696
+ email: z.ZodEmail;
1697
+ id: z.ZodString;
1698
+ origin: z.ZodEnum<{
1699
+ manual: "manual";
1700
+ bounce: "bounce";
1701
+ complaint: "complaint";
1702
+ }>;
1703
+ source_id: z.ZodNullable<z.ZodString>;
1704
+ }, z.core.$catchall<z.ZodJSONSchema>>;
1705
+ type: z.ZodLiteral<"suppression.added">;
1706
+ }, z.core.$catchall<z.ZodJSONSchema>>;
1707
+ }, z.core.$strip>;
1708
+ export declare const RESEND_SUPPRESSION_REMOVED_EVENT_SCHEMA: z.ZodObject<{
1709
+ createdAt: z.ZodISODateTime;
1710
+ email: z.ZodEmail;
1711
+ id: z.ZodString;
1712
+ origin: z.ZodEnum<{
1713
+ manual: "manual";
1714
+ bounce: "bounce";
1715
+ complaint: "complaint";
1716
+ }>;
1717
+ sourceId: z.ZodNullable<z.ZodString>;
1718
+ event: z.ZodObject<{
1719
+ created_at: z.ZodISODateTime;
1720
+ data: z.ZodObject<{
1721
+ created_at: z.ZodISODateTime;
1722
+ email: z.ZodEmail;
1723
+ id: z.ZodString;
1724
+ origin: z.ZodEnum<{
1725
+ manual: "manual";
1726
+ bounce: "bounce";
1727
+ complaint: "complaint";
1728
+ }>;
1729
+ source_id: z.ZodNullable<z.ZodString>;
1730
+ }, z.core.$catchall<z.ZodJSONSchema>>;
1731
+ type: z.ZodLiteral<"suppression.removed">;
1732
+ }, z.core.$catchall<z.ZodJSONSchema>>;
1733
+ }, z.core.$strip>;
1734
+ export declare const RESEND_SUPPRESSION_EVENT_SCHEMA: z.ZodUnion<readonly [z.ZodObject<{
1735
+ createdAt: z.ZodISODateTime;
1736
+ email: z.ZodEmail;
1737
+ id: z.ZodString;
1738
+ origin: z.ZodEnum<{
1739
+ manual: "manual";
1740
+ bounce: "bounce";
1741
+ complaint: "complaint";
1742
+ }>;
1743
+ sourceId: z.ZodNullable<z.ZodString>;
1744
+ event: z.ZodObject<{
1745
+ created_at: z.ZodISODateTime;
1746
+ data: z.ZodObject<{
1747
+ created_at: z.ZodISODateTime;
1748
+ email: z.ZodEmail;
1749
+ id: z.ZodString;
1750
+ origin: z.ZodEnum<{
1751
+ manual: "manual";
1752
+ bounce: "bounce";
1753
+ complaint: "complaint";
1754
+ }>;
1755
+ source_id: z.ZodNullable<z.ZodString>;
1756
+ }, z.core.$catchall<z.ZodJSONSchema>>;
1757
+ type: z.ZodLiteral<"suppression.added">;
1758
+ }, z.core.$catchall<z.ZodJSONSchema>>;
1759
+ }, z.core.$strip>, z.ZodObject<{
1760
+ createdAt: z.ZodISODateTime;
1761
+ email: z.ZodEmail;
1762
+ id: z.ZodString;
1763
+ origin: z.ZodEnum<{
1764
+ manual: "manual";
1765
+ bounce: "bounce";
1766
+ complaint: "complaint";
1767
+ }>;
1768
+ sourceId: z.ZodNullable<z.ZodString>;
1769
+ event: z.ZodObject<{
1770
+ created_at: z.ZodISODateTime;
1771
+ data: z.ZodObject<{
1772
+ created_at: z.ZodISODateTime;
1773
+ email: z.ZodEmail;
1774
+ id: z.ZodString;
1775
+ origin: z.ZodEnum<{
1776
+ manual: "manual";
1777
+ bounce: "bounce";
1778
+ complaint: "complaint";
1779
+ }>;
1780
+ source_id: z.ZodNullable<z.ZodString>;
1781
+ }, z.core.$catchall<z.ZodJSONSchema>>;
1782
+ type: z.ZodLiteral<"suppression.removed">;
1783
+ }, z.core.$catchall<z.ZodJSONSchema>>;
1784
+ }, z.core.$strip>]>;
1785
+ export declare const RESEND_EVENT_SCHEMA: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodObject<{
1786
+ broadcastId: z.ZodOptional<z.ZodString>;
1787
+ createdAt: z.ZodISODateTime;
1788
+ emailId: z.ZodString;
1789
+ from: z.ZodString;
1790
+ headers: z.ZodOptional<z.ZodArray<z.ZodObject<{
1791
+ name: z.ZodString;
1792
+ value: z.ZodString;
1793
+ }, z.core.$strip>>>;
1794
+ messageId: z.ZodString;
1795
+ subject: z.ZodString;
1796
+ tags: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1797
+ templateId: z.ZodOptional<z.ZodString>;
1798
+ to: z.ZodArray<z.ZodString>;
1799
+ event: z.ZodObject<{
1800
+ created_at: z.ZodISODateTime;
1801
+ data: z.ZodObject<{
1802
+ broadcast_id: z.ZodOptional<z.ZodString>;
1803
+ created_at: z.ZodISODateTime;
1804
+ email_id: z.ZodString;
1805
+ from: z.ZodString;
1806
+ headers: z.ZodOptional<z.ZodArray<z.ZodObject<{
1807
+ name: z.ZodString;
1808
+ value: z.ZodString;
1809
+ }, z.core.$strip>>>;
1810
+ message_id: z.ZodString;
1811
+ subject: z.ZodString;
1812
+ tags: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1813
+ template_id: z.ZodOptional<z.ZodString>;
1814
+ to: z.ZodArray<z.ZodString>;
1815
+ bounce: z.ZodObject<{
1816
+ diagnosticCode: z.ZodOptional<z.ZodArray<z.ZodString>>;
1817
+ message: z.ZodString;
1818
+ subType: z.ZodString;
1819
+ type: z.ZodString;
1820
+ }, z.core.$catchall<z.ZodJSONSchema>>;
1821
+ }, z.core.$catchall<z.ZodJSONSchema>>;
1822
+ type: z.ZodLiteral<"email.bounced">;
1823
+ }, z.core.$catchall<z.ZodJSONSchema>>;
1824
+ bounce: z.ZodObject<{
1825
+ diagnosticCode: z.ZodOptional<z.ZodArray<z.ZodString>>;
1826
+ message: z.ZodString;
1827
+ subType: z.ZodString;
1828
+ type: z.ZodString;
1829
+ }, z.core.$catchall<z.ZodJSONSchema>>;
1830
+ }, z.core.$strip>, z.ZodObject<{
1831
+ broadcastId: z.ZodOptional<z.ZodString>;
1832
+ createdAt: z.ZodISODateTime;
1833
+ emailId: z.ZodString;
1834
+ from: z.ZodString;
1835
+ headers: z.ZodOptional<z.ZodArray<z.ZodObject<{
1836
+ name: z.ZodString;
1837
+ value: z.ZodString;
1838
+ }, z.core.$strip>>>;
1839
+ messageId: z.ZodString;
1840
+ subject: z.ZodString;
1841
+ tags: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1842
+ templateId: z.ZodOptional<z.ZodString>;
1843
+ to: z.ZodArray<z.ZodString>;
1844
+ event: z.ZodObject<{
1845
+ created_at: z.ZodISODateTime;
1846
+ data: z.ZodObject<{
1847
+ broadcast_id: z.ZodOptional<z.ZodString>;
1848
+ created_at: z.ZodISODateTime;
1849
+ email_id: z.ZodString;
1850
+ from: z.ZodString;
1851
+ headers: z.ZodOptional<z.ZodArray<z.ZodObject<{
1852
+ name: z.ZodString;
1853
+ value: z.ZodString;
1854
+ }, z.core.$strip>>>;
1855
+ message_id: z.ZodString;
1856
+ subject: z.ZodString;
1857
+ tags: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1858
+ template_id: z.ZodOptional<z.ZodString>;
1859
+ to: z.ZodArray<z.ZodString>;
1860
+ click: z.ZodObject<{
1861
+ ipAddress: z.ZodString;
1862
+ link: z.ZodString;
1863
+ timestamp: z.ZodISODateTime;
1864
+ userAgent: z.ZodString;
1865
+ }, z.core.$catchall<z.ZodJSONSchema>>;
1866
+ }, z.core.$catchall<z.ZodJSONSchema>>;
1867
+ type: z.ZodLiteral<"email.clicked">;
1868
+ }, z.core.$catchall<z.ZodJSONSchema>>;
1869
+ click: z.ZodObject<{
1870
+ ipAddress: z.ZodString;
1871
+ link: z.ZodString;
1872
+ timestamp: z.ZodISODateTime;
1873
+ userAgent: z.ZodString;
1874
+ }, z.core.$catchall<z.ZodJSONSchema>>;
1875
+ }, z.core.$strip>, z.ZodObject<{
1876
+ broadcastId: z.ZodOptional<z.ZodString>;
1877
+ createdAt: z.ZodISODateTime;
1878
+ emailId: z.ZodString;
1879
+ from: z.ZodString;
1880
+ headers: z.ZodOptional<z.ZodArray<z.ZodObject<{
1881
+ name: z.ZodString;
1882
+ value: z.ZodString;
1883
+ }, z.core.$strip>>>;
1884
+ messageId: z.ZodString;
1885
+ subject: z.ZodString;
1886
+ tags: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1887
+ templateId: z.ZodOptional<z.ZodString>;
1888
+ to: z.ZodArray<z.ZodString>;
1889
+ event: z.ZodObject<{
1890
+ created_at: z.ZodISODateTime;
1891
+ data: z.ZodObject<{
1892
+ broadcast_id: z.ZodOptional<z.ZodString>;
1893
+ created_at: z.ZodISODateTime;
1894
+ email_id: z.ZodString;
1895
+ from: z.ZodString;
1896
+ headers: z.ZodOptional<z.ZodArray<z.ZodObject<{
1897
+ name: z.ZodString;
1898
+ value: z.ZodString;
1899
+ }, z.core.$strip>>>;
1900
+ message_id: z.ZodString;
1901
+ subject: z.ZodString;
1902
+ tags: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1903
+ template_id: z.ZodOptional<z.ZodString>;
1904
+ to: z.ZodArray<z.ZodString>;
1905
+ }, z.core.$catchall<z.ZodJSONSchema>>;
1906
+ type: z.ZodLiteral<"email.complained">;
1907
+ }, z.core.$catchall<z.ZodJSONSchema>>;
1908
+ }, z.core.$strip>, z.ZodObject<{
1909
+ broadcastId: z.ZodOptional<z.ZodString>;
1910
+ createdAt: z.ZodISODateTime;
1911
+ emailId: z.ZodString;
1912
+ from: z.ZodString;
1913
+ headers: z.ZodOptional<z.ZodArray<z.ZodObject<{
1914
+ name: z.ZodString;
1915
+ value: z.ZodString;
1916
+ }, z.core.$strip>>>;
1917
+ messageId: z.ZodString;
1918
+ subject: z.ZodString;
1919
+ tags: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1920
+ templateId: z.ZodOptional<z.ZodString>;
1921
+ to: z.ZodArray<z.ZodString>;
1922
+ event: z.ZodObject<{
1923
+ created_at: z.ZodISODateTime;
1924
+ data: z.ZodObject<{
1925
+ broadcast_id: z.ZodOptional<z.ZodString>;
1926
+ created_at: z.ZodISODateTime;
1927
+ email_id: z.ZodString;
1928
+ from: z.ZodString;
1929
+ headers: z.ZodOptional<z.ZodArray<z.ZodObject<{
1930
+ name: z.ZodString;
1931
+ value: z.ZodString;
1932
+ }, z.core.$strip>>>;
1933
+ message_id: z.ZodString;
1934
+ subject: z.ZodString;
1935
+ tags: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1936
+ template_id: z.ZodOptional<z.ZodString>;
1937
+ to: z.ZodArray<z.ZodString>;
1938
+ }, z.core.$catchall<z.ZodJSONSchema>>;
1939
+ type: z.ZodLiteral<"email.delivered">;
1940
+ }, z.core.$catchall<z.ZodJSONSchema>>;
1941
+ }, z.core.$strip>, z.ZodObject<{
1942
+ broadcastId: z.ZodOptional<z.ZodString>;
1943
+ createdAt: z.ZodISODateTime;
1944
+ emailId: z.ZodString;
1945
+ from: z.ZodString;
1946
+ headers: z.ZodOptional<z.ZodArray<z.ZodObject<{
1947
+ name: z.ZodString;
1948
+ value: z.ZodString;
1949
+ }, z.core.$strip>>>;
1950
+ messageId: z.ZodString;
1951
+ subject: z.ZodString;
1952
+ tags: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1953
+ templateId: z.ZodOptional<z.ZodString>;
1954
+ to: z.ZodArray<z.ZodString>;
1955
+ event: z.ZodObject<{
1956
+ created_at: z.ZodISODateTime;
1957
+ data: z.ZodObject<{
1958
+ broadcast_id: z.ZodOptional<z.ZodString>;
1959
+ created_at: z.ZodISODateTime;
1960
+ email_id: z.ZodString;
1961
+ from: z.ZodString;
1962
+ headers: z.ZodOptional<z.ZodArray<z.ZodObject<{
1963
+ name: z.ZodString;
1964
+ value: z.ZodString;
1965
+ }, z.core.$strip>>>;
1966
+ message_id: z.ZodString;
1967
+ subject: z.ZodString;
1968
+ tags: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1969
+ template_id: z.ZodOptional<z.ZodString>;
1970
+ to: z.ZodArray<z.ZodString>;
1971
+ }, z.core.$catchall<z.ZodJSONSchema>>;
1972
+ type: z.ZodLiteral<"email.delivery_delayed">;
1973
+ }, z.core.$catchall<z.ZodJSONSchema>>;
1974
+ }, z.core.$strip>, z.ZodObject<{
1975
+ broadcastId: z.ZodOptional<z.ZodString>;
1976
+ createdAt: z.ZodISODateTime;
1977
+ emailId: z.ZodString;
1978
+ from: z.ZodString;
1979
+ headers: z.ZodOptional<z.ZodArray<z.ZodObject<{
1980
+ name: z.ZodString;
1981
+ value: z.ZodString;
1982
+ }, z.core.$strip>>>;
1983
+ messageId: z.ZodString;
1984
+ subject: z.ZodString;
1985
+ tags: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1986
+ templateId: z.ZodOptional<z.ZodString>;
1987
+ to: z.ZodArray<z.ZodString>;
1988
+ event: z.ZodObject<{
1989
+ created_at: z.ZodISODateTime;
1990
+ data: z.ZodObject<{
1991
+ broadcast_id: z.ZodOptional<z.ZodString>;
1992
+ created_at: z.ZodISODateTime;
1993
+ email_id: z.ZodString;
1994
+ from: z.ZodString;
1995
+ headers: z.ZodOptional<z.ZodArray<z.ZodObject<{
1996
+ name: z.ZodString;
1997
+ value: z.ZodString;
1998
+ }, z.core.$strip>>>;
1999
+ message_id: z.ZodString;
2000
+ subject: z.ZodString;
2001
+ tags: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
2002
+ template_id: z.ZodOptional<z.ZodString>;
2003
+ to: z.ZodArray<z.ZodString>;
2004
+ failed: z.ZodObject<{
2005
+ reason: z.ZodString;
2006
+ }, z.core.$catchall<z.ZodJSONSchema>>;
2007
+ }, z.core.$catchall<z.ZodJSONSchema>>;
2008
+ type: z.ZodLiteral<"email.failed">;
2009
+ }, z.core.$catchall<z.ZodJSONSchema>>;
2010
+ failed: z.ZodObject<{
2011
+ reason: z.ZodString;
2012
+ }, z.core.$catchall<z.ZodJSONSchema>>;
2013
+ }, z.core.$strip>, z.ZodObject<{
2014
+ broadcastId: z.ZodOptional<z.ZodString>;
2015
+ createdAt: z.ZodISODateTime;
2016
+ emailId: z.ZodString;
2017
+ from: z.ZodString;
2018
+ headers: z.ZodOptional<z.ZodArray<z.ZodObject<{
2019
+ name: z.ZodString;
2020
+ value: z.ZodString;
2021
+ }, z.core.$strip>>>;
2022
+ messageId: z.ZodString;
2023
+ subject: z.ZodString;
2024
+ tags: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
2025
+ templateId: z.ZodOptional<z.ZodString>;
2026
+ to: z.ZodArray<z.ZodString>;
2027
+ event: z.ZodObject<{
2028
+ created_at: z.ZodISODateTime;
2029
+ data: z.ZodObject<{
2030
+ broadcast_id: z.ZodOptional<z.ZodString>;
2031
+ created_at: z.ZodISODateTime;
2032
+ email_id: z.ZodString;
2033
+ from: z.ZodString;
2034
+ headers: z.ZodOptional<z.ZodArray<z.ZodObject<{
2035
+ name: z.ZodString;
2036
+ value: z.ZodString;
2037
+ }, z.core.$strip>>>;
2038
+ message_id: z.ZodString;
2039
+ subject: z.ZodString;
2040
+ tags: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
2041
+ template_id: z.ZodOptional<z.ZodString>;
2042
+ to: z.ZodArray<z.ZodString>;
2043
+ }, z.core.$catchall<z.ZodJSONSchema>>;
2044
+ type: z.ZodLiteral<"email.opened">;
2045
+ }, z.core.$catchall<z.ZodJSONSchema>>;
2046
+ }, z.core.$strip>, z.ZodObject<{
2047
+ attachments: z.ZodArray<z.ZodObject<{
2048
+ contentDisposition: z.ZodNullable<z.ZodString>;
2049
+ contentId: z.ZodNullable<z.ZodString>;
2050
+ contentType: z.ZodString;
2051
+ filename: z.ZodNullable<z.ZodString>;
2052
+ id: z.ZodString;
2053
+ }, z.core.$catchall<z.ZodJSONSchema>>>;
2054
+ bcc: z.ZodArray<z.ZodString>;
2055
+ cc: z.ZodArray<z.ZodString>;
2056
+ createdAt: z.ZodISODateTime;
2057
+ emailId: z.ZodString;
2058
+ from: z.ZodString;
2059
+ messageId: z.ZodString;
2060
+ receivedFor: z.ZodOptional<z.ZodArray<z.ZodString>>;
2061
+ subject: z.ZodString;
2062
+ to: z.ZodArray<z.ZodString>;
2063
+ event: z.ZodObject<{
2064
+ created_at: z.ZodISODateTime;
2065
+ data: z.ZodObject<{
2066
+ attachments: z.ZodArray<z.ZodObject<{
2067
+ content_disposition: z.ZodNullable<z.ZodString>;
2068
+ content_id: z.ZodNullable<z.ZodString>;
2069
+ content_type: z.ZodString;
2070
+ filename: z.ZodNullable<z.ZodString>;
2071
+ id: z.ZodString;
2072
+ }, z.core.$catchall<z.ZodJSONSchema>>>;
2073
+ bcc: z.ZodArray<z.ZodString>;
2074
+ cc: z.ZodArray<z.ZodString>;
2075
+ created_at: z.ZodISODateTime;
2076
+ email_id: z.ZodString;
2077
+ from: z.ZodString;
2078
+ message_id: z.ZodString;
2079
+ received_for: z.ZodOptional<z.ZodArray<z.ZodString>>;
2080
+ subject: z.ZodString;
2081
+ to: z.ZodArray<z.ZodString>;
2082
+ }, z.core.$catchall<z.ZodJSONSchema>>;
2083
+ type: z.ZodLiteral<"email.received">;
2084
+ }, z.core.$catchall<z.ZodJSONSchema>>;
2085
+ }, z.core.$strip>, z.ZodObject<{
2086
+ broadcastId: z.ZodOptional<z.ZodString>;
2087
+ createdAt: z.ZodISODateTime;
2088
+ emailId: z.ZodString;
2089
+ from: z.ZodString;
2090
+ headers: z.ZodOptional<z.ZodArray<z.ZodObject<{
2091
+ name: z.ZodString;
2092
+ value: z.ZodString;
2093
+ }, z.core.$strip>>>;
2094
+ messageId: z.ZodString;
2095
+ subject: z.ZodString;
2096
+ tags: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
2097
+ templateId: z.ZodOptional<z.ZodString>;
2098
+ to: z.ZodArray<z.ZodString>;
2099
+ event: z.ZodObject<{
2100
+ created_at: z.ZodISODateTime;
2101
+ data: z.ZodObject<{
2102
+ broadcast_id: z.ZodOptional<z.ZodString>;
2103
+ created_at: z.ZodISODateTime;
2104
+ email_id: z.ZodString;
2105
+ from: z.ZodString;
2106
+ headers: z.ZodOptional<z.ZodArray<z.ZodObject<{
2107
+ name: z.ZodString;
2108
+ value: z.ZodString;
2109
+ }, z.core.$strip>>>;
2110
+ message_id: z.ZodString;
2111
+ subject: z.ZodString;
2112
+ tags: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
2113
+ template_id: z.ZodOptional<z.ZodString>;
2114
+ to: z.ZodArray<z.ZodString>;
2115
+ }, z.core.$catchall<z.ZodJSONSchema>>;
2116
+ type: z.ZodLiteral<"email.scheduled">;
2117
+ }, z.core.$catchall<z.ZodJSONSchema>>;
2118
+ }, z.core.$strip>, z.ZodObject<{
2119
+ broadcastId: z.ZodOptional<z.ZodString>;
2120
+ createdAt: z.ZodISODateTime;
2121
+ emailId: z.ZodString;
2122
+ from: z.ZodString;
2123
+ headers: z.ZodOptional<z.ZodArray<z.ZodObject<{
2124
+ name: z.ZodString;
2125
+ value: z.ZodString;
2126
+ }, z.core.$strip>>>;
2127
+ messageId: z.ZodString;
2128
+ subject: z.ZodString;
2129
+ tags: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
2130
+ templateId: z.ZodOptional<z.ZodString>;
2131
+ to: z.ZodArray<z.ZodString>;
2132
+ event: z.ZodObject<{
2133
+ created_at: z.ZodISODateTime;
2134
+ data: z.ZodObject<{
2135
+ broadcast_id: z.ZodOptional<z.ZodString>;
2136
+ created_at: z.ZodISODateTime;
2137
+ email_id: z.ZodString;
2138
+ from: z.ZodString;
2139
+ headers: z.ZodOptional<z.ZodArray<z.ZodObject<{
2140
+ name: z.ZodString;
2141
+ value: z.ZodString;
2142
+ }, z.core.$strip>>>;
2143
+ message_id: z.ZodString;
2144
+ subject: z.ZodString;
2145
+ tags: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
2146
+ template_id: z.ZodOptional<z.ZodString>;
2147
+ to: z.ZodArray<z.ZodString>;
2148
+ }, z.core.$catchall<z.ZodJSONSchema>>;
2149
+ type: z.ZodLiteral<"email.sent">;
2150
+ }, z.core.$catchall<z.ZodJSONSchema>>;
2151
+ }, z.core.$strip>, z.ZodObject<{
2152
+ broadcastId: z.ZodOptional<z.ZodString>;
2153
+ createdAt: z.ZodISODateTime;
2154
+ emailId: z.ZodString;
2155
+ from: z.ZodString;
2156
+ headers: z.ZodOptional<z.ZodArray<z.ZodObject<{
2157
+ name: z.ZodString;
2158
+ value: z.ZodString;
2159
+ }, z.core.$strip>>>;
2160
+ messageId: z.ZodString;
2161
+ subject: z.ZodString;
2162
+ tags: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
2163
+ templateId: z.ZodOptional<z.ZodString>;
2164
+ to: z.ZodArray<z.ZodString>;
2165
+ event: z.ZodObject<{
2166
+ created_at: z.ZodISODateTime;
2167
+ data: z.ZodObject<{
2168
+ broadcast_id: z.ZodOptional<z.ZodString>;
2169
+ created_at: z.ZodISODateTime;
2170
+ email_id: z.ZodString;
2171
+ from: z.ZodString;
2172
+ headers: z.ZodOptional<z.ZodArray<z.ZodObject<{
2173
+ name: z.ZodString;
2174
+ value: z.ZodString;
2175
+ }, z.core.$strip>>>;
2176
+ message_id: z.ZodString;
2177
+ subject: z.ZodString;
2178
+ tags: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
2179
+ template_id: z.ZodOptional<z.ZodString>;
2180
+ to: z.ZodArray<z.ZodString>;
2181
+ suppressed: z.ZodObject<{
2182
+ diagnosticCode: z.ZodOptional<z.ZodArray<z.ZodString>>;
2183
+ message: z.ZodString;
2184
+ reason: z.ZodOptional<z.ZodString>;
2185
+ type: z.ZodString;
2186
+ }, z.core.$catchall<z.ZodJSONSchema>>;
2187
+ }, z.core.$catchall<z.ZodJSONSchema>>;
2188
+ type: z.ZodLiteral<"email.suppressed">;
2189
+ }, z.core.$catchall<z.ZodJSONSchema>>;
2190
+ suppressed: z.ZodObject<{
2191
+ diagnosticCode: z.ZodOptional<z.ZodArray<z.ZodString>>;
2192
+ message: z.ZodString;
2193
+ reason: z.ZodOptional<z.ZodString>;
2194
+ type: z.ZodString;
2195
+ }, z.core.$catchall<z.ZodJSONSchema>>;
2196
+ }, z.core.$strip>]>, z.ZodUnion<readonly [z.ZodObject<{
2197
+ audienceId: z.ZodOptional<z.ZodString>;
2198
+ createdAt: z.ZodISODateTime;
2199
+ email: z.ZodEmail;
2200
+ firstName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2201
+ id: z.ZodString;
2202
+ lastName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2203
+ segmentIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
2204
+ unsubscribed: z.ZodBoolean;
2205
+ updatedAt: z.ZodISODateTime;
2206
+ event: z.ZodObject<{
2207
+ created_at: z.ZodISODateTime;
2208
+ data: z.ZodObject<{
2209
+ audience_id: z.ZodOptional<z.ZodString>;
2210
+ created_at: z.ZodISODateTime;
2211
+ email: z.ZodEmail;
2212
+ first_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2213
+ id: z.ZodString;
2214
+ last_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2215
+ segment_ids: z.ZodOptional<z.ZodArray<z.ZodString>>;
2216
+ unsubscribed: z.ZodBoolean;
2217
+ updated_at: z.ZodISODateTime;
2218
+ }, z.core.$catchall<z.ZodJSONSchema>>;
2219
+ type: z.ZodLiteral<"contact.created">;
2220
+ }, z.core.$catchall<z.ZodJSONSchema>>;
2221
+ }, z.core.$strip>, z.ZodObject<{
2222
+ audienceId: z.ZodOptional<z.ZodString>;
2223
+ createdAt: z.ZodISODateTime;
2224
+ email: z.ZodEmail;
2225
+ firstName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2226
+ id: z.ZodString;
2227
+ lastName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2228
+ segmentIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
2229
+ unsubscribed: z.ZodBoolean;
2230
+ updatedAt: z.ZodISODateTime;
2231
+ event: z.ZodObject<{
2232
+ created_at: z.ZodISODateTime;
2233
+ data: z.ZodObject<{
2234
+ audience_id: z.ZodOptional<z.ZodString>;
2235
+ created_at: z.ZodISODateTime;
2236
+ email: z.ZodEmail;
2237
+ first_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2238
+ id: z.ZodString;
2239
+ last_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2240
+ segment_ids: z.ZodOptional<z.ZodArray<z.ZodString>>;
2241
+ unsubscribed: z.ZodBoolean;
2242
+ updated_at: z.ZodISODateTime;
2243
+ }, z.core.$catchall<z.ZodJSONSchema>>;
2244
+ type: z.ZodLiteral<"contact.updated">;
2245
+ }, z.core.$catchall<z.ZodJSONSchema>>;
2246
+ }, z.core.$strip>, z.ZodObject<{
2247
+ audienceId: z.ZodOptional<z.ZodString>;
2248
+ createdAt: z.ZodISODateTime;
2249
+ email: z.ZodEmail;
2250
+ firstName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2251
+ id: z.ZodString;
2252
+ lastName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2253
+ segmentIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
2254
+ unsubscribed: z.ZodBoolean;
2255
+ updatedAt: z.ZodISODateTime;
2256
+ event: z.ZodObject<{
2257
+ created_at: z.ZodISODateTime;
2258
+ data: z.ZodObject<{
2259
+ audience_id: z.ZodOptional<z.ZodString>;
2260
+ created_at: z.ZodISODateTime;
2261
+ email: z.ZodEmail;
2262
+ first_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2263
+ id: z.ZodString;
2264
+ last_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2265
+ segment_ids: z.ZodOptional<z.ZodArray<z.ZodString>>;
2266
+ unsubscribed: z.ZodBoolean;
2267
+ updated_at: z.ZodISODateTime;
2268
+ }, z.core.$catchall<z.ZodJSONSchema>>;
2269
+ type: z.ZodLiteral<"contact.deleted">;
2270
+ }, z.core.$catchall<z.ZodJSONSchema>>;
2271
+ }, z.core.$strip>]>, z.ZodUnion<readonly [z.ZodObject<{
2272
+ capabilities: z.ZodOptional<z.ZodObject<{
2273
+ receiving: z.ZodOptional<z.ZodEnum<{
2274
+ enabled: "enabled";
2275
+ disabled: "disabled";
2276
+ }>>;
2277
+ sending: z.ZodOptional<z.ZodEnum<{
2278
+ enabled: "enabled";
2279
+ disabled: "disabled";
2280
+ }>>;
2281
+ }, z.core.$strip>>;
2282
+ createdAt: z.ZodISODateTime;
2283
+ id: z.ZodString;
2284
+ name: z.ZodString;
2285
+ records: z.ZodArray<z.ZodObject<{
2286
+ name: z.ZodString;
2287
+ priority: z.ZodOptional<z.ZodNumber>;
2288
+ record: z.ZodEnum<{
2289
+ SPF: "SPF";
2290
+ DKIM: "DKIM";
2291
+ "Receiving MX": "Receiving MX";
2292
+ Tracking: "Tracking";
2293
+ TrackingCAA: "TrackingCAA";
2294
+ }>;
2295
+ status: z.ZodEnum<{
2296
+ failed: "failed";
2297
+ pending: "pending";
2298
+ verified: "verified";
2299
+ not_started: "not_started";
2300
+ temporary_failure: "temporary_failure";
2301
+ }>;
2302
+ ttl: z.ZodString;
2303
+ type: z.ZodEnum<{
2304
+ MX: "MX";
2305
+ TXT: "TXT";
2306
+ CNAME: "CNAME";
2307
+ CAA: "CAA";
2308
+ }>;
2309
+ value: z.ZodString;
2310
+ }, z.core.$strip>>;
2311
+ region: z.ZodEnum<{
2312
+ "us-east-1": "us-east-1";
2313
+ "eu-west-1": "eu-west-1";
2314
+ "sa-east-1": "sa-east-1";
2315
+ "ap-northeast-1": "ap-northeast-1";
2316
+ }>;
2317
+ status: z.ZodEnum<{
2318
+ failed: "failed";
2319
+ pending: "pending";
2320
+ verified: "verified";
2321
+ partially_verified: "partially_verified";
2322
+ partially_failed: "partially_failed";
2323
+ not_started: "not_started";
2324
+ }>;
2325
+ event: z.ZodObject<{
2326
+ created_at: z.ZodISODateTime;
2327
+ data: z.ZodObject<{
2328
+ capabilities: z.ZodOptional<z.ZodObject<{
2329
+ receiving: z.ZodOptional<z.ZodEnum<{
2330
+ enabled: "enabled";
2331
+ disabled: "disabled";
2332
+ }>>;
2333
+ sending: z.ZodOptional<z.ZodEnum<{
2334
+ enabled: "enabled";
2335
+ disabled: "disabled";
2336
+ }>>;
2337
+ }, z.core.$strip>>;
2338
+ created_at: z.ZodISODateTime;
2339
+ id: z.ZodString;
2340
+ name: z.ZodString;
2341
+ records: z.ZodArray<z.ZodObject<{
2342
+ name: z.ZodString;
2343
+ priority: z.ZodOptional<z.ZodNumber>;
2344
+ record: z.ZodEnum<{
2345
+ SPF: "SPF";
2346
+ DKIM: "DKIM";
2347
+ "Receiving MX": "Receiving MX";
2348
+ Tracking: "Tracking";
2349
+ TrackingCAA: "TrackingCAA";
2350
+ }>;
2351
+ status: z.ZodEnum<{
2352
+ failed: "failed";
2353
+ pending: "pending";
2354
+ verified: "verified";
2355
+ not_started: "not_started";
2356
+ temporary_failure: "temporary_failure";
2357
+ }>;
2358
+ ttl: z.ZodString;
2359
+ type: z.ZodEnum<{
2360
+ MX: "MX";
2361
+ TXT: "TXT";
2362
+ CNAME: "CNAME";
2363
+ CAA: "CAA";
2364
+ }>;
2365
+ value: z.ZodString;
2366
+ }, z.core.$strip>>;
2367
+ region: z.ZodEnum<{
2368
+ "us-east-1": "us-east-1";
2369
+ "eu-west-1": "eu-west-1";
2370
+ "sa-east-1": "sa-east-1";
2371
+ "ap-northeast-1": "ap-northeast-1";
2372
+ }>;
2373
+ status: z.ZodEnum<{
2374
+ failed: "failed";
2375
+ pending: "pending";
2376
+ verified: "verified";
2377
+ partially_verified: "partially_verified";
2378
+ partially_failed: "partially_failed";
2379
+ not_started: "not_started";
2380
+ }>;
2381
+ }, z.core.$catchall<z.ZodJSONSchema>>;
2382
+ type: z.ZodLiteral<"domain.created">;
2383
+ }, z.core.$catchall<z.ZodJSONSchema>>;
2384
+ }, z.core.$strip>, z.ZodObject<{
2385
+ capabilities: z.ZodOptional<z.ZodObject<{
2386
+ receiving: z.ZodOptional<z.ZodEnum<{
2387
+ enabled: "enabled";
2388
+ disabled: "disabled";
2389
+ }>>;
2390
+ sending: z.ZodOptional<z.ZodEnum<{
2391
+ enabled: "enabled";
2392
+ disabled: "disabled";
2393
+ }>>;
2394
+ }, z.core.$strip>>;
2395
+ createdAt: z.ZodISODateTime;
2396
+ id: z.ZodString;
2397
+ name: z.ZodString;
2398
+ records: z.ZodArray<z.ZodObject<{
2399
+ name: z.ZodString;
2400
+ priority: z.ZodOptional<z.ZodNumber>;
2401
+ record: z.ZodEnum<{
2402
+ SPF: "SPF";
2403
+ DKIM: "DKIM";
2404
+ "Receiving MX": "Receiving MX";
2405
+ Tracking: "Tracking";
2406
+ TrackingCAA: "TrackingCAA";
2407
+ }>;
2408
+ status: z.ZodEnum<{
2409
+ failed: "failed";
2410
+ pending: "pending";
2411
+ verified: "verified";
2412
+ not_started: "not_started";
2413
+ temporary_failure: "temporary_failure";
2414
+ }>;
2415
+ ttl: z.ZodString;
2416
+ type: z.ZodEnum<{
2417
+ MX: "MX";
2418
+ TXT: "TXT";
2419
+ CNAME: "CNAME";
2420
+ CAA: "CAA";
2421
+ }>;
2422
+ value: z.ZodString;
2423
+ }, z.core.$strip>>;
2424
+ region: z.ZodEnum<{
2425
+ "us-east-1": "us-east-1";
2426
+ "eu-west-1": "eu-west-1";
2427
+ "sa-east-1": "sa-east-1";
2428
+ "ap-northeast-1": "ap-northeast-1";
2429
+ }>;
2430
+ status: z.ZodEnum<{
2431
+ failed: "failed";
2432
+ pending: "pending";
2433
+ verified: "verified";
2434
+ partially_verified: "partially_verified";
2435
+ partially_failed: "partially_failed";
2436
+ not_started: "not_started";
2437
+ }>;
2438
+ event: z.ZodObject<{
2439
+ created_at: z.ZodISODateTime;
2440
+ data: z.ZodObject<{
2441
+ capabilities: z.ZodOptional<z.ZodObject<{
2442
+ receiving: z.ZodOptional<z.ZodEnum<{
2443
+ enabled: "enabled";
2444
+ disabled: "disabled";
2445
+ }>>;
2446
+ sending: z.ZodOptional<z.ZodEnum<{
2447
+ enabled: "enabled";
2448
+ disabled: "disabled";
2449
+ }>>;
2450
+ }, z.core.$strip>>;
2451
+ created_at: z.ZodISODateTime;
2452
+ id: z.ZodString;
2453
+ name: z.ZodString;
2454
+ records: z.ZodArray<z.ZodObject<{
2455
+ name: z.ZodString;
2456
+ priority: z.ZodOptional<z.ZodNumber>;
2457
+ record: z.ZodEnum<{
2458
+ SPF: "SPF";
2459
+ DKIM: "DKIM";
2460
+ "Receiving MX": "Receiving MX";
2461
+ Tracking: "Tracking";
2462
+ TrackingCAA: "TrackingCAA";
2463
+ }>;
2464
+ status: z.ZodEnum<{
2465
+ failed: "failed";
2466
+ pending: "pending";
2467
+ verified: "verified";
2468
+ not_started: "not_started";
2469
+ temporary_failure: "temporary_failure";
2470
+ }>;
2471
+ ttl: z.ZodString;
2472
+ type: z.ZodEnum<{
2473
+ MX: "MX";
2474
+ TXT: "TXT";
2475
+ CNAME: "CNAME";
2476
+ CAA: "CAA";
2477
+ }>;
2478
+ value: z.ZodString;
2479
+ }, z.core.$strip>>;
2480
+ region: z.ZodEnum<{
2481
+ "us-east-1": "us-east-1";
2482
+ "eu-west-1": "eu-west-1";
2483
+ "sa-east-1": "sa-east-1";
2484
+ "ap-northeast-1": "ap-northeast-1";
2485
+ }>;
2486
+ status: z.ZodEnum<{
2487
+ failed: "failed";
2488
+ pending: "pending";
2489
+ verified: "verified";
2490
+ partially_verified: "partially_verified";
2491
+ partially_failed: "partially_failed";
2492
+ not_started: "not_started";
2493
+ }>;
2494
+ }, z.core.$catchall<z.ZodJSONSchema>>;
2495
+ type: z.ZodLiteral<"domain.updated">;
2496
+ }, z.core.$catchall<z.ZodJSONSchema>>;
2497
+ }, z.core.$strip>, z.ZodObject<{
2498
+ capabilities: z.ZodOptional<z.ZodObject<{
2499
+ receiving: z.ZodOptional<z.ZodEnum<{
2500
+ enabled: "enabled";
2501
+ disabled: "disabled";
2502
+ }>>;
2503
+ sending: z.ZodOptional<z.ZodEnum<{
2504
+ enabled: "enabled";
2505
+ disabled: "disabled";
2506
+ }>>;
2507
+ }, z.core.$strip>>;
2508
+ createdAt: z.ZodISODateTime;
2509
+ id: z.ZodString;
2510
+ name: z.ZodString;
2511
+ records: z.ZodArray<z.ZodObject<{
2512
+ name: z.ZodString;
2513
+ priority: z.ZodOptional<z.ZodNumber>;
2514
+ record: z.ZodEnum<{
2515
+ SPF: "SPF";
2516
+ DKIM: "DKIM";
2517
+ "Receiving MX": "Receiving MX";
2518
+ Tracking: "Tracking";
2519
+ TrackingCAA: "TrackingCAA";
2520
+ }>;
2521
+ status: z.ZodEnum<{
2522
+ failed: "failed";
2523
+ pending: "pending";
2524
+ verified: "verified";
2525
+ not_started: "not_started";
2526
+ temporary_failure: "temporary_failure";
2527
+ }>;
2528
+ ttl: z.ZodString;
2529
+ type: z.ZodEnum<{
2530
+ MX: "MX";
2531
+ TXT: "TXT";
2532
+ CNAME: "CNAME";
2533
+ CAA: "CAA";
2534
+ }>;
2535
+ value: z.ZodString;
2536
+ }, z.core.$strip>>;
2537
+ region: z.ZodEnum<{
2538
+ "us-east-1": "us-east-1";
2539
+ "eu-west-1": "eu-west-1";
2540
+ "sa-east-1": "sa-east-1";
2541
+ "ap-northeast-1": "ap-northeast-1";
2542
+ }>;
2543
+ status: z.ZodEnum<{
2544
+ failed: "failed";
2545
+ pending: "pending";
2546
+ verified: "verified";
2547
+ partially_verified: "partially_verified";
2548
+ partially_failed: "partially_failed";
2549
+ not_started: "not_started";
2550
+ }>;
2551
+ event: z.ZodObject<{
2552
+ created_at: z.ZodISODateTime;
2553
+ data: z.ZodObject<{
2554
+ capabilities: z.ZodOptional<z.ZodObject<{
2555
+ receiving: z.ZodOptional<z.ZodEnum<{
2556
+ enabled: "enabled";
2557
+ disabled: "disabled";
2558
+ }>>;
2559
+ sending: z.ZodOptional<z.ZodEnum<{
2560
+ enabled: "enabled";
2561
+ disabled: "disabled";
2562
+ }>>;
2563
+ }, z.core.$strip>>;
2564
+ created_at: z.ZodISODateTime;
2565
+ id: z.ZodString;
2566
+ name: z.ZodString;
2567
+ records: z.ZodArray<z.ZodObject<{
2568
+ name: z.ZodString;
2569
+ priority: z.ZodOptional<z.ZodNumber>;
2570
+ record: z.ZodEnum<{
2571
+ SPF: "SPF";
2572
+ DKIM: "DKIM";
2573
+ "Receiving MX": "Receiving MX";
2574
+ Tracking: "Tracking";
2575
+ TrackingCAA: "TrackingCAA";
2576
+ }>;
2577
+ status: z.ZodEnum<{
2578
+ failed: "failed";
2579
+ pending: "pending";
2580
+ verified: "verified";
2581
+ not_started: "not_started";
2582
+ temporary_failure: "temporary_failure";
2583
+ }>;
2584
+ ttl: z.ZodString;
2585
+ type: z.ZodEnum<{
2586
+ MX: "MX";
2587
+ TXT: "TXT";
2588
+ CNAME: "CNAME";
2589
+ CAA: "CAA";
2590
+ }>;
2591
+ value: z.ZodString;
2592
+ }, z.core.$strip>>;
2593
+ region: z.ZodEnum<{
2594
+ "us-east-1": "us-east-1";
2595
+ "eu-west-1": "eu-west-1";
2596
+ "sa-east-1": "sa-east-1";
2597
+ "ap-northeast-1": "ap-northeast-1";
2598
+ }>;
2599
+ status: z.ZodEnum<{
2600
+ failed: "failed";
2601
+ pending: "pending";
2602
+ verified: "verified";
2603
+ partially_verified: "partially_verified";
2604
+ partially_failed: "partially_failed";
2605
+ not_started: "not_started";
2606
+ }>;
2607
+ }, z.core.$catchall<z.ZodJSONSchema>>;
2608
+ type: z.ZodLiteral<"domain.deleted">;
2609
+ }, z.core.$catchall<z.ZodJSONSchema>>;
2610
+ }, z.core.$strip>]>, z.ZodUnion<readonly [z.ZodObject<{
2611
+ createdAt: z.ZodISODateTime;
2612
+ email: z.ZodEmail;
2613
+ id: z.ZodString;
2614
+ origin: z.ZodEnum<{
2615
+ manual: "manual";
2616
+ bounce: "bounce";
2617
+ complaint: "complaint";
2618
+ }>;
2619
+ sourceId: z.ZodNullable<z.ZodString>;
2620
+ event: z.ZodObject<{
2621
+ created_at: z.ZodISODateTime;
2622
+ data: z.ZodObject<{
2623
+ created_at: z.ZodISODateTime;
2624
+ email: z.ZodEmail;
2625
+ id: z.ZodString;
2626
+ origin: z.ZodEnum<{
2627
+ manual: "manual";
2628
+ bounce: "bounce";
2629
+ complaint: "complaint";
2630
+ }>;
2631
+ source_id: z.ZodNullable<z.ZodString>;
2632
+ }, z.core.$catchall<z.ZodJSONSchema>>;
2633
+ type: z.ZodLiteral<"suppression.added">;
2634
+ }, z.core.$catchall<z.ZodJSONSchema>>;
2635
+ }, z.core.$strip>, z.ZodObject<{
2636
+ createdAt: z.ZodISODateTime;
2637
+ email: z.ZodEmail;
2638
+ id: z.ZodString;
2639
+ origin: z.ZodEnum<{
2640
+ manual: "manual";
2641
+ bounce: "bounce";
2642
+ complaint: "complaint";
2643
+ }>;
2644
+ sourceId: z.ZodNullable<z.ZodString>;
2645
+ event: z.ZodObject<{
2646
+ created_at: z.ZodISODateTime;
2647
+ data: z.ZodObject<{
2648
+ created_at: z.ZodISODateTime;
2649
+ email: z.ZodEmail;
2650
+ id: z.ZodString;
2651
+ origin: z.ZodEnum<{
2652
+ manual: "manual";
2653
+ bounce: "bounce";
2654
+ complaint: "complaint";
2655
+ }>;
2656
+ source_id: z.ZodNullable<z.ZodString>;
2657
+ }, z.core.$catchall<z.ZodJSONSchema>>;
2658
+ type: z.ZodLiteral<"suppression.removed">;
2659
+ }, z.core.$catchall<z.ZodJSONSchema>>;
2660
+ }, z.core.$strip>]>]>;
2661
+ /**
2662
+ * Normalizes one authenticated Resend webhook.
2663
+ *
2664
+ * @param value - Untrusted provider webhook payload.
2665
+ */
2666
+ export declare function normalizeResendEvent(value: unknown): {
2667
+ createdAt: string;
2668
+ emailId: string;
2669
+ from: string;
2670
+ messageId: string;
2671
+ subject: string;
2672
+ to: string[];
2673
+ event: {
2674
+ [x: string]: z.core.util.JSONType;
2675
+ created_at: string;
2676
+ data: {
2677
+ [x: string]: z.core.util.JSONType;
2678
+ created_at: string;
2679
+ email_id: string;
2680
+ from: string;
2681
+ message_id: string;
2682
+ subject: string;
2683
+ to: string[];
2684
+ bounce: {
2685
+ [x: string]: z.core.util.JSONType;
2686
+ message: string;
2687
+ subType: string;
2688
+ type: string;
2689
+ diagnosticCode?: string[] | undefined;
2690
+ };
2691
+ broadcast_id?: string | undefined;
2692
+ headers?: {
2693
+ name: string;
2694
+ value: string;
2695
+ }[] | undefined;
2696
+ tags?: Record<string, string> | undefined;
2697
+ template_id?: string | undefined;
2698
+ };
2699
+ type: "email.bounced";
2700
+ };
2701
+ bounce: {
2702
+ [x: string]: z.core.util.JSONType;
2703
+ message: string;
2704
+ subType: string;
2705
+ type: string;
2706
+ diagnosticCode?: string[] | undefined;
2707
+ };
2708
+ broadcastId?: string | undefined;
2709
+ headers?: {
2710
+ name: string;
2711
+ value: string;
2712
+ }[] | undefined;
2713
+ tags?: Record<string, string> | undefined;
2714
+ templateId?: string | undefined;
2715
+ } | {
2716
+ createdAt: string;
2717
+ emailId: string;
2718
+ from: string;
2719
+ messageId: string;
2720
+ subject: string;
2721
+ to: string[];
2722
+ event: {
2723
+ [x: string]: z.core.util.JSONType;
2724
+ created_at: string;
2725
+ data: {
2726
+ [x: string]: z.core.util.JSONType;
2727
+ created_at: string;
2728
+ email_id: string;
2729
+ from: string;
2730
+ message_id: string;
2731
+ subject: string;
2732
+ to: string[];
2733
+ click: {
2734
+ [x: string]: z.core.util.JSONType;
2735
+ ipAddress: string;
2736
+ link: string;
2737
+ timestamp: string;
2738
+ userAgent: string;
2739
+ };
2740
+ broadcast_id?: string | undefined;
2741
+ headers?: {
2742
+ name: string;
2743
+ value: string;
2744
+ }[] | undefined;
2745
+ tags?: Record<string, string> | undefined;
2746
+ template_id?: string | undefined;
2747
+ };
2748
+ type: "email.clicked";
2749
+ };
2750
+ click: {
2751
+ [x: string]: z.core.util.JSONType;
2752
+ ipAddress: string;
2753
+ link: string;
2754
+ timestamp: string;
2755
+ userAgent: string;
2756
+ };
2757
+ broadcastId?: string | undefined;
2758
+ headers?: {
2759
+ name: string;
2760
+ value: string;
2761
+ }[] | undefined;
2762
+ tags?: Record<string, string> | undefined;
2763
+ templateId?: string | undefined;
2764
+ } | {
2765
+ createdAt: string;
2766
+ emailId: string;
2767
+ from: string;
2768
+ messageId: string;
2769
+ subject: string;
2770
+ to: string[];
2771
+ event: {
2772
+ [x: string]: z.core.util.JSONType;
2773
+ created_at: string;
2774
+ data: {
2775
+ [x: string]: z.core.util.JSONType;
2776
+ created_at: string;
2777
+ email_id: string;
2778
+ from: string;
2779
+ message_id: string;
2780
+ subject: string;
2781
+ to: string[];
2782
+ failed: {
2783
+ [x: string]: z.core.util.JSONType;
2784
+ reason: string;
2785
+ };
2786
+ broadcast_id?: string | undefined;
2787
+ headers?: {
2788
+ name: string;
2789
+ value: string;
2790
+ }[] | undefined;
2791
+ tags?: Record<string, string> | undefined;
2792
+ template_id?: string | undefined;
2793
+ };
2794
+ type: "email.failed";
2795
+ };
2796
+ failed: {
2797
+ [x: string]: z.core.util.JSONType;
2798
+ reason: string;
2799
+ };
2800
+ broadcastId?: string | undefined;
2801
+ headers?: {
2802
+ name: string;
2803
+ value: string;
2804
+ }[] | undefined;
2805
+ tags?: Record<string, string> | undefined;
2806
+ templateId?: string | undefined;
2807
+ } | {
2808
+ attachments: {
2809
+ [x: string]: z.core.util.JSONType;
2810
+ contentDisposition: string | null;
2811
+ contentId: string | null;
2812
+ contentType: string;
2813
+ filename: string | null;
2814
+ id: string;
2815
+ }[];
2816
+ bcc: string[];
2817
+ cc: string[];
2818
+ createdAt: string;
2819
+ emailId: string;
2820
+ from: string;
2821
+ messageId: string;
2822
+ subject: string;
2823
+ to: string[];
2824
+ event: {
2825
+ [x: string]: z.core.util.JSONType;
2826
+ created_at: string;
2827
+ data: {
2828
+ [x: string]: z.core.util.JSONType;
2829
+ attachments: {
2830
+ [x: string]: z.core.util.JSONType;
2831
+ content_disposition: string | null;
2832
+ content_id: string | null;
2833
+ content_type: string;
2834
+ filename: string | null;
2835
+ id: string;
2836
+ }[];
2837
+ bcc: string[];
2838
+ cc: string[];
2839
+ created_at: string;
2840
+ email_id: string;
2841
+ from: string;
2842
+ message_id: string;
2843
+ subject: string;
2844
+ to: string[];
2845
+ received_for?: string[] | undefined;
2846
+ };
2847
+ type: "email.received";
2848
+ };
2849
+ receivedFor?: string[] | undefined;
2850
+ } | {
2851
+ createdAt: string;
2852
+ emailId: string;
2853
+ from: string;
2854
+ messageId: string;
2855
+ subject: string;
2856
+ to: string[];
2857
+ event: {
2858
+ [x: string]: z.core.util.JSONType;
2859
+ created_at: string;
2860
+ data: {
2861
+ [x: string]: z.core.util.JSONType;
2862
+ created_at: string;
2863
+ email_id: string;
2864
+ from: string;
2865
+ message_id: string;
2866
+ subject: string;
2867
+ to: string[];
2868
+ suppressed: {
2869
+ [x: string]: z.core.util.JSONType;
2870
+ message: string;
2871
+ type: string;
2872
+ diagnosticCode?: string[] | undefined;
2873
+ reason?: string | undefined;
2874
+ };
2875
+ broadcast_id?: string | undefined;
2876
+ headers?: {
2877
+ name: string;
2878
+ value: string;
2879
+ }[] | undefined;
2880
+ tags?: Record<string, string> | undefined;
2881
+ template_id?: string | undefined;
2882
+ };
2883
+ type: "email.suppressed";
2884
+ };
2885
+ suppressed: {
2886
+ [x: string]: z.core.util.JSONType;
2887
+ message: string;
2888
+ type: string;
2889
+ diagnosticCode?: string[] | undefined;
2890
+ reason?: string | undefined;
2891
+ };
2892
+ broadcastId?: string | undefined;
2893
+ headers?: {
2894
+ name: string;
2895
+ value: string;
2896
+ }[] | undefined;
2897
+ tags?: Record<string, string> | undefined;
2898
+ templateId?: string | undefined;
2899
+ } | {
2900
+ event: {
2901
+ [x: string]: z.core.util.JSONType;
2902
+ created_at: string;
2903
+ data: {
2904
+ [x: string]: z.core.util.JSONType;
2905
+ created_at: string;
2906
+ email_id: string;
2907
+ from: string;
2908
+ message_id: string;
2909
+ subject: string;
2910
+ to: string[];
2911
+ broadcast_id?: string | undefined;
2912
+ headers?: {
2913
+ name: string;
2914
+ value: string;
2915
+ }[] | undefined;
2916
+ tags?: Record<string, string> | undefined;
2917
+ template_id?: string | undefined;
2918
+ };
2919
+ type: "email.complained";
2920
+ } | {
2921
+ [x: string]: z.core.util.JSONType;
2922
+ created_at: string;
2923
+ data: {
2924
+ [x: string]: z.core.util.JSONType;
2925
+ created_at: string;
2926
+ email_id: string;
2927
+ from: string;
2928
+ message_id: string;
2929
+ subject: string;
2930
+ to: string[];
2931
+ broadcast_id?: string | undefined;
2932
+ headers?: {
2933
+ name: string;
2934
+ value: string;
2935
+ }[] | undefined;
2936
+ tags?: Record<string, string> | undefined;
2937
+ template_id?: string | undefined;
2938
+ };
2939
+ type: "email.delivered";
2940
+ } | {
2941
+ [x: string]: z.core.util.JSONType;
2942
+ created_at: string;
2943
+ data: {
2944
+ [x: string]: z.core.util.JSONType;
2945
+ created_at: string;
2946
+ email_id: string;
2947
+ from: string;
2948
+ message_id: string;
2949
+ subject: string;
2950
+ to: string[];
2951
+ broadcast_id?: string | undefined;
2952
+ headers?: {
2953
+ name: string;
2954
+ value: string;
2955
+ }[] | undefined;
2956
+ tags?: Record<string, string> | undefined;
2957
+ template_id?: string | undefined;
2958
+ };
2959
+ type: "email.delivery_delayed";
2960
+ } | {
2961
+ [x: string]: z.core.util.JSONType;
2962
+ created_at: string;
2963
+ data: {
2964
+ [x: string]: z.core.util.JSONType;
2965
+ created_at: string;
2966
+ email_id: string;
2967
+ from: string;
2968
+ message_id: string;
2969
+ subject: string;
2970
+ to: string[];
2971
+ broadcast_id?: string | undefined;
2972
+ headers?: {
2973
+ name: string;
2974
+ value: string;
2975
+ }[] | undefined;
2976
+ tags?: Record<string, string> | undefined;
2977
+ template_id?: string | undefined;
2978
+ };
2979
+ type: "email.opened";
2980
+ } | {
2981
+ [x: string]: z.core.util.JSONType;
2982
+ created_at: string;
2983
+ data: {
2984
+ [x: string]: z.core.util.JSONType;
2985
+ created_at: string;
2986
+ email_id: string;
2987
+ from: string;
2988
+ message_id: string;
2989
+ subject: string;
2990
+ to: string[];
2991
+ broadcast_id?: string | undefined;
2992
+ headers?: {
2993
+ name: string;
2994
+ value: string;
2995
+ }[] | undefined;
2996
+ tags?: Record<string, string> | undefined;
2997
+ template_id?: string | undefined;
2998
+ };
2999
+ type: "email.scheduled";
3000
+ } | {
3001
+ [x: string]: z.core.util.JSONType;
3002
+ created_at: string;
3003
+ data: {
3004
+ [x: string]: z.core.util.JSONType;
3005
+ created_at: string;
3006
+ email_id: string;
3007
+ from: string;
3008
+ message_id: string;
3009
+ subject: string;
3010
+ to: string[];
3011
+ broadcast_id?: string | undefined;
3012
+ headers?: {
3013
+ name: string;
3014
+ value: string;
3015
+ }[] | undefined;
3016
+ tags?: Record<string, string> | undefined;
3017
+ template_id?: string | undefined;
3018
+ };
3019
+ type: "email.sent";
3020
+ };
3021
+ to: string[];
3022
+ templateId?: string | undefined;
3023
+ tags?: Record<string, string> | undefined;
3024
+ messageId: string;
3025
+ subject: string;
3026
+ headers?: {
3027
+ name: string;
3028
+ value: string;
3029
+ }[] | undefined;
3030
+ createdAt: string;
3031
+ emailId: string;
3032
+ from: string;
3033
+ broadcastId?: string | undefined;
3034
+ } | {
3035
+ event: {
3036
+ [x: string]: z.core.util.JSONType;
3037
+ created_at: string;
3038
+ data: {
3039
+ [x: string]: z.core.util.JSONType;
3040
+ created_at: string;
3041
+ email: string;
3042
+ id: string;
3043
+ unsubscribed: boolean;
3044
+ updated_at: string;
3045
+ audience_id?: string | undefined;
3046
+ first_name?: string | null | undefined;
3047
+ last_name?: string | null | undefined;
3048
+ segment_ids?: string[] | undefined;
3049
+ };
3050
+ type: "contact.created";
3051
+ } | {
3052
+ [x: string]: z.core.util.JSONType;
3053
+ created_at: string;
3054
+ data: {
3055
+ [x: string]: z.core.util.JSONType;
3056
+ created_at: string;
3057
+ email: string;
3058
+ id: string;
3059
+ unsubscribed: boolean;
3060
+ updated_at: string;
3061
+ audience_id?: string | undefined;
3062
+ first_name?: string | null | undefined;
3063
+ last_name?: string | null | undefined;
3064
+ segment_ids?: string[] | undefined;
3065
+ };
3066
+ type: "contact.updated";
3067
+ } | {
3068
+ [x: string]: z.core.util.JSONType;
3069
+ created_at: string;
3070
+ data: {
3071
+ [x: string]: z.core.util.JSONType;
3072
+ created_at: string;
3073
+ email: string;
3074
+ id: string;
3075
+ unsubscribed: boolean;
3076
+ updated_at: string;
3077
+ audience_id?: string | undefined;
3078
+ first_name?: string | null | undefined;
3079
+ last_name?: string | null | undefined;
3080
+ segment_ids?: string[] | undefined;
3081
+ };
3082
+ type: "contact.deleted";
3083
+ };
3084
+ unsubscribed: boolean;
3085
+ updatedAt: string;
3086
+ segmentIds?: string[] | undefined;
3087
+ lastName?: string | null | undefined;
3088
+ id: string;
3089
+ firstName?: string | null | undefined;
3090
+ createdAt: string;
3091
+ email: string;
3092
+ audienceId?: string | undefined;
3093
+ } | {
3094
+ event: {
3095
+ [x: string]: z.core.util.JSONType;
3096
+ created_at: string;
3097
+ data: {
3098
+ [x: string]: z.core.util.JSONType;
3099
+ created_at: string;
3100
+ id: string;
3101
+ name: string;
3102
+ records: {
3103
+ name: string;
3104
+ record: "SPF" | "DKIM" | "Receiving MX" | "Tracking" | "TrackingCAA";
3105
+ status: "failed" | "pending" | "verified" | "not_started" | "temporary_failure";
3106
+ ttl: string;
3107
+ type: "MX" | "TXT" | "CNAME" | "CAA";
3108
+ value: string;
3109
+ priority?: number | undefined;
3110
+ }[];
3111
+ region: "us-east-1" | "eu-west-1" | "sa-east-1" | "ap-northeast-1";
3112
+ status: "failed" | "pending" | "verified" | "partially_verified" | "partially_failed" | "not_started";
3113
+ capabilities?: {
3114
+ receiving?: "enabled" | "disabled" | undefined;
3115
+ sending?: "enabled" | "disabled" | undefined;
3116
+ } | undefined;
3117
+ };
3118
+ type: "domain.created";
3119
+ } | {
3120
+ [x: string]: z.core.util.JSONType;
3121
+ created_at: string;
3122
+ data: {
3123
+ [x: string]: z.core.util.JSONType;
3124
+ created_at: string;
3125
+ id: string;
3126
+ name: string;
3127
+ records: {
3128
+ name: string;
3129
+ record: "SPF" | "DKIM" | "Receiving MX" | "Tracking" | "TrackingCAA";
3130
+ status: "failed" | "pending" | "verified" | "not_started" | "temporary_failure";
3131
+ ttl: string;
3132
+ type: "MX" | "TXT" | "CNAME" | "CAA";
3133
+ value: string;
3134
+ priority?: number | undefined;
3135
+ }[];
3136
+ region: "us-east-1" | "eu-west-1" | "sa-east-1" | "ap-northeast-1";
3137
+ status: "failed" | "pending" | "verified" | "partially_verified" | "partially_failed" | "not_started";
3138
+ capabilities?: {
3139
+ receiving?: "enabled" | "disabled" | undefined;
3140
+ sending?: "enabled" | "disabled" | undefined;
3141
+ } | undefined;
3142
+ };
3143
+ type: "domain.updated";
3144
+ } | {
3145
+ [x: string]: z.core.util.JSONType;
3146
+ created_at: string;
3147
+ data: {
3148
+ [x: string]: z.core.util.JSONType;
3149
+ created_at: string;
3150
+ id: string;
3151
+ name: string;
3152
+ records: {
3153
+ name: string;
3154
+ record: "SPF" | "DKIM" | "Receiving MX" | "Tracking" | "TrackingCAA";
3155
+ status: "failed" | "pending" | "verified" | "not_started" | "temporary_failure";
3156
+ ttl: string;
3157
+ type: "MX" | "TXT" | "CNAME" | "CAA";
3158
+ value: string;
3159
+ priority?: number | undefined;
3160
+ }[];
3161
+ region: "us-east-1" | "eu-west-1" | "sa-east-1" | "ap-northeast-1";
3162
+ status: "failed" | "pending" | "verified" | "partially_verified" | "partially_failed" | "not_started";
3163
+ capabilities?: {
3164
+ receiving?: "enabled" | "disabled" | undefined;
3165
+ sending?: "enabled" | "disabled" | undefined;
3166
+ } | undefined;
3167
+ };
3168
+ type: "domain.deleted";
3169
+ };
3170
+ createdAt: string;
3171
+ id: string;
3172
+ name: string;
3173
+ records: {
3174
+ name: string;
3175
+ record: "SPF" | "DKIM" | "Receiving MX" | "Tracking" | "TrackingCAA";
3176
+ status: "failed" | "pending" | "verified" | "not_started" | "temporary_failure";
3177
+ ttl: string;
3178
+ type: "MX" | "TXT" | "CNAME" | "CAA";
3179
+ value: string;
3180
+ priority?: number | undefined;
3181
+ }[];
3182
+ region: "us-east-1" | "eu-west-1" | "sa-east-1" | "ap-northeast-1";
3183
+ status: "failed" | "pending" | "verified" | "partially_verified" | "partially_failed" | "not_started";
3184
+ capabilities?: {
3185
+ receiving?: "enabled" | "disabled" | undefined;
3186
+ sending?: "enabled" | "disabled" | undefined;
3187
+ } | undefined;
3188
+ } | {
3189
+ event: {
3190
+ [x: string]: z.core.util.JSONType;
3191
+ created_at: string;
3192
+ data: {
3193
+ [x: string]: z.core.util.JSONType;
3194
+ created_at: string;
3195
+ email: string;
3196
+ id: string;
3197
+ origin: "manual" | "bounce" | "complaint";
3198
+ source_id: string | null;
3199
+ };
3200
+ type: "suppression.added";
3201
+ } | {
3202
+ [x: string]: z.core.util.JSONType;
3203
+ created_at: string;
3204
+ data: {
3205
+ [x: string]: z.core.util.JSONType;
3206
+ created_at: string;
3207
+ email: string;
3208
+ id: string;
3209
+ origin: "manual" | "bounce" | "complaint";
3210
+ source_id: string | null;
3211
+ };
3212
+ type: "suppression.removed";
3213
+ };
3214
+ createdAt: string;
3215
+ email: string;
3216
+ id: string;
3217
+ origin: "manual" | "bounce" | "complaint";
3218
+ sourceId: string | null;
3219
+ };
3220
+ /**
3221
+ * Normalizes one authenticated Resend email webhook.
3222
+ *
3223
+ * @param value - Untrusted provider webhook payload.
3224
+ */
3225
+ export declare function normalizeResendEmailEvent(value: unknown): {
3226
+ createdAt: string;
3227
+ emailId: string;
3228
+ from: string;
3229
+ messageId: string;
3230
+ subject: string;
3231
+ to: string[];
3232
+ event: {
3233
+ [x: string]: z.core.util.JSONType;
3234
+ created_at: string;
3235
+ data: {
3236
+ [x: string]: z.core.util.JSONType;
3237
+ created_at: string;
3238
+ email_id: string;
3239
+ from: string;
3240
+ message_id: string;
3241
+ subject: string;
3242
+ to: string[];
3243
+ bounce: {
3244
+ [x: string]: z.core.util.JSONType;
3245
+ message: string;
3246
+ subType: string;
3247
+ type: string;
3248
+ diagnosticCode?: string[] | undefined;
3249
+ };
3250
+ broadcast_id?: string | undefined;
3251
+ headers?: {
3252
+ name: string;
3253
+ value: string;
3254
+ }[] | undefined;
3255
+ tags?: Record<string, string> | undefined;
3256
+ template_id?: string | undefined;
3257
+ };
3258
+ type: "email.bounced";
3259
+ };
3260
+ bounce: {
3261
+ [x: string]: z.core.util.JSONType;
3262
+ message: string;
3263
+ subType: string;
3264
+ type: string;
3265
+ diagnosticCode?: string[] | undefined;
3266
+ };
3267
+ broadcastId?: string | undefined;
3268
+ headers?: {
3269
+ name: string;
3270
+ value: string;
3271
+ }[] | undefined;
3272
+ tags?: Record<string, string> | undefined;
3273
+ templateId?: string | undefined;
3274
+ } | {
3275
+ createdAt: string;
3276
+ emailId: string;
3277
+ from: string;
3278
+ messageId: string;
3279
+ subject: string;
3280
+ to: string[];
3281
+ event: {
729
3282
  [x: string]: z.core.util.JSONType;
730
3283
  created_at: string;
731
3284
  data: {
@@ -733,6 +3286,7 @@ export declare function normalizeResendEmailEvent(value: unknown): {
733
3286
  created_at: string;
734
3287
  email_id: string;
735
3288
  from: string;
3289
+ message_id: string;
736
3290
  subject: string;
737
3291
  to: string[];
738
3292
  click: {
@@ -743,20 +3297,34 @@ export declare function normalizeResendEmailEvent(value: unknown): {
743
3297
  userAgent: string;
744
3298
  };
745
3299
  broadcast_id?: string | undefined;
746
- message_id?: string | undefined;
3300
+ headers?: {
3301
+ name: string;
3302
+ value: string;
3303
+ }[] | undefined;
747
3304
  tags?: Record<string, string> | undefined;
748
3305
  template_id?: string | undefined;
749
3306
  };
750
3307
  type: "email.clicked";
751
3308
  };
3309
+ click: {
3310
+ [x: string]: z.core.util.JSONType;
3311
+ ipAddress: string;
3312
+ link: string;
3313
+ timestamp: string;
3314
+ userAgent: string;
3315
+ };
752
3316
  broadcastId?: string | undefined;
753
- messageId?: string | undefined;
3317
+ headers?: {
3318
+ name: string;
3319
+ value: string;
3320
+ }[] | undefined;
754
3321
  tags?: Record<string, string> | undefined;
755
3322
  templateId?: string | undefined;
756
3323
  } | {
757
3324
  createdAt: string;
758
3325
  emailId: string;
759
3326
  from: string;
3327
+ messageId: string;
760
3328
  subject: string;
761
3329
  to: string[];
762
3330
  event: {
@@ -767,6 +3335,7 @@ export declare function normalizeResendEmailEvent(value: unknown): {
767
3335
  created_at: string;
768
3336
  email_id: string;
769
3337
  from: string;
3338
+ message_id: string;
770
3339
  subject: string;
771
3340
  to: string[];
772
3341
  failed: {
@@ -774,7 +3343,10 @@ export declare function normalizeResendEmailEvent(value: unknown): {
774
3343
  reason: string;
775
3344
  };
776
3345
  broadcast_id?: string | undefined;
777
- message_id?: string | undefined;
3346
+ headers?: {
3347
+ name: string;
3348
+ value: string;
3349
+ }[] | undefined;
778
3350
  tags?: Record<string, string> | undefined;
779
3351
  template_id?: string | undefined;
780
3352
  };
@@ -785,7 +3357,10 @@ export declare function normalizeResendEmailEvent(value: unknown): {
785
3357
  reason: string;
786
3358
  };
787
3359
  broadcastId?: string | undefined;
788
- messageId?: string | undefined;
3360
+ headers?: {
3361
+ name: string;
3362
+ value: string;
3363
+ }[] | undefined;
789
3364
  tags?: Record<string, string> | undefined;
790
3365
  templateId?: string | undefined;
791
3366
  } | {
@@ -835,6 +3410,7 @@ export declare function normalizeResendEmailEvent(value: unknown): {
835
3410
  createdAt: string;
836
3411
  emailId: string;
837
3412
  from: string;
3413
+ messageId: string;
838
3414
  subject: string;
839
3415
  to: string[];
840
3416
  event: {
@@ -845,15 +3421,21 @@ export declare function normalizeResendEmailEvent(value: unknown): {
845
3421
  created_at: string;
846
3422
  email_id: string;
847
3423
  from: string;
3424
+ message_id: string;
848
3425
  subject: string;
849
3426
  to: string[];
850
3427
  suppressed: {
851
3428
  [x: string]: z.core.util.JSONType;
852
3429
  message: string;
853
3430
  type: string;
3431
+ diagnosticCode?: string[] | undefined;
3432
+ reason?: string | undefined;
854
3433
  };
855
3434
  broadcast_id?: string | undefined;
856
- message_id?: string | undefined;
3435
+ headers?: {
3436
+ name: string;
3437
+ value: string;
3438
+ }[] | undefined;
857
3439
  tags?: Record<string, string> | undefined;
858
3440
  template_id?: string | undefined;
859
3441
  };
@@ -863,15 +3445,21 @@ export declare function normalizeResendEmailEvent(value: unknown): {
863
3445
  [x: string]: z.core.util.JSONType;
864
3446
  message: string;
865
3447
  type: string;
3448
+ diagnosticCode?: string[] | undefined;
3449
+ reason?: string | undefined;
866
3450
  };
867
3451
  broadcastId?: string | undefined;
868
- messageId?: string | undefined;
3452
+ headers?: {
3453
+ name: string;
3454
+ value: string;
3455
+ }[] | undefined;
869
3456
  tags?: Record<string, string> | undefined;
870
3457
  templateId?: string | undefined;
871
3458
  } | {
872
3459
  createdAt: string;
873
3460
  emailId: string;
874
3461
  from: string;
3462
+ messageId: string;
875
3463
  subject: string;
876
3464
  to: string[];
877
3465
  event: {
@@ -882,23 +3470,31 @@ export declare function normalizeResendEmailEvent(value: unknown): {
882
3470
  created_at: string;
883
3471
  email_id: string;
884
3472
  from: string;
3473
+ message_id: string;
885
3474
  subject: string;
886
3475
  to: string[];
887
3476
  broadcast_id?: string | undefined;
888
- message_id?: string | undefined;
3477
+ headers?: {
3478
+ name: string;
3479
+ value: string;
3480
+ }[] | undefined;
889
3481
  tags?: Record<string, string> | undefined;
890
3482
  template_id?: string | undefined;
891
3483
  };
892
- type: "email.complained";
3484
+ type: "email.sent";
893
3485
  };
894
3486
  broadcastId?: string | undefined;
895
- messageId?: string | undefined;
3487
+ headers?: {
3488
+ name: string;
3489
+ value: string;
3490
+ }[] | undefined;
896
3491
  tags?: Record<string, string> | undefined;
897
3492
  templateId?: string | undefined;
898
3493
  } | {
899
3494
  createdAt: string;
900
3495
  emailId: string;
901
3496
  from: string;
3497
+ messageId: string;
902
3498
  subject: string;
903
3499
  to: string[];
904
3500
  event: {
@@ -909,23 +3505,31 @@ export declare function normalizeResendEmailEvent(value: unknown): {
909
3505
  created_at: string;
910
3506
  email_id: string;
911
3507
  from: string;
3508
+ message_id: string;
912
3509
  subject: string;
913
3510
  to: string[];
914
3511
  broadcast_id?: string | undefined;
915
- message_id?: string | undefined;
3512
+ headers?: {
3513
+ name: string;
3514
+ value: string;
3515
+ }[] | undefined;
916
3516
  tags?: Record<string, string> | undefined;
917
3517
  template_id?: string | undefined;
918
3518
  };
919
- type: "email.delivered";
3519
+ type: "email.scheduled";
920
3520
  };
921
3521
  broadcastId?: string | undefined;
922
- messageId?: string | undefined;
3522
+ headers?: {
3523
+ name: string;
3524
+ value: string;
3525
+ }[] | undefined;
923
3526
  tags?: Record<string, string> | undefined;
924
3527
  templateId?: string | undefined;
925
3528
  } | {
926
3529
  createdAt: string;
927
3530
  emailId: string;
928
3531
  from: string;
3532
+ messageId: string;
929
3533
  subject: string;
930
3534
  to: string[];
931
3535
  event: {
@@ -936,23 +3540,31 @@ export declare function normalizeResendEmailEvent(value: unknown): {
936
3540
  created_at: string;
937
3541
  email_id: string;
938
3542
  from: string;
3543
+ message_id: string;
939
3544
  subject: string;
940
3545
  to: string[];
941
3546
  broadcast_id?: string | undefined;
942
- message_id?: string | undefined;
3547
+ headers?: {
3548
+ name: string;
3549
+ value: string;
3550
+ }[] | undefined;
943
3551
  tags?: Record<string, string> | undefined;
944
3552
  template_id?: string | undefined;
945
3553
  };
946
- type: "email.delivery_delayed";
3554
+ type: "email.delivered";
947
3555
  };
948
3556
  broadcastId?: string | undefined;
949
- messageId?: string | undefined;
3557
+ headers?: {
3558
+ name: string;
3559
+ value: string;
3560
+ }[] | undefined;
950
3561
  tags?: Record<string, string> | undefined;
951
3562
  templateId?: string | undefined;
952
3563
  } | {
953
3564
  createdAt: string;
954
3565
  emailId: string;
955
3566
  from: string;
3567
+ messageId: string;
956
3568
  subject: string;
957
3569
  to: string[];
958
3570
  event: {
@@ -963,23 +3575,31 @@ export declare function normalizeResendEmailEvent(value: unknown): {
963
3575
  created_at: string;
964
3576
  email_id: string;
965
3577
  from: string;
3578
+ message_id: string;
966
3579
  subject: string;
967
3580
  to: string[];
968
3581
  broadcast_id?: string | undefined;
969
- message_id?: string | undefined;
3582
+ headers?: {
3583
+ name: string;
3584
+ value: string;
3585
+ }[] | undefined;
970
3586
  tags?: Record<string, string> | undefined;
971
3587
  template_id?: string | undefined;
972
3588
  };
973
- type: "email.opened";
3589
+ type: "email.delivery_delayed";
974
3590
  };
975
3591
  broadcastId?: string | undefined;
976
- messageId?: string | undefined;
3592
+ headers?: {
3593
+ name: string;
3594
+ value: string;
3595
+ }[] | undefined;
977
3596
  tags?: Record<string, string> | undefined;
978
3597
  templateId?: string | undefined;
979
3598
  } | {
980
3599
  createdAt: string;
981
3600
  emailId: string;
982
3601
  from: string;
3602
+ messageId: string;
983
3603
  subject: string;
984
3604
  to: string[];
985
3605
  event: {
@@ -990,23 +3610,31 @@ export declare function normalizeResendEmailEvent(value: unknown): {
990
3610
  created_at: string;
991
3611
  email_id: string;
992
3612
  from: string;
3613
+ message_id: string;
993
3614
  subject: string;
994
3615
  to: string[];
995
3616
  broadcast_id?: string | undefined;
996
- message_id?: string | undefined;
3617
+ headers?: {
3618
+ name: string;
3619
+ value: string;
3620
+ }[] | undefined;
997
3621
  tags?: Record<string, string> | undefined;
998
3622
  template_id?: string | undefined;
999
3623
  };
1000
- type: "email.scheduled";
3624
+ type: "email.complained";
1001
3625
  };
1002
3626
  broadcastId?: string | undefined;
1003
- messageId?: string | undefined;
3627
+ headers?: {
3628
+ name: string;
3629
+ value: string;
3630
+ }[] | undefined;
1004
3631
  tags?: Record<string, string> | undefined;
1005
3632
  templateId?: string | undefined;
1006
3633
  } | {
1007
3634
  createdAt: string;
1008
3635
  emailId: string;
1009
3636
  from: string;
3637
+ messageId: string;
1010
3638
  subject: string;
1011
3639
  to: string[];
1012
3640
  event: {
@@ -1017,17 +3645,24 @@ export declare function normalizeResendEmailEvent(value: unknown): {
1017
3645
  created_at: string;
1018
3646
  email_id: string;
1019
3647
  from: string;
3648
+ message_id: string;
1020
3649
  subject: string;
1021
3650
  to: string[];
1022
3651
  broadcast_id?: string | undefined;
1023
- message_id?: string | undefined;
3652
+ headers?: {
3653
+ name: string;
3654
+ value: string;
3655
+ }[] | undefined;
1024
3656
  tags?: Record<string, string> | undefined;
1025
3657
  template_id?: string | undefined;
1026
3658
  };
1027
- type: "email.sent";
3659
+ type: "email.opened";
1028
3660
  };
1029
3661
  broadcastId?: string | undefined;
1030
- messageId?: string | undefined;
3662
+ headers?: {
3663
+ name: string;
3664
+ value: string;
3665
+ }[] | undefined;
1031
3666
  tags?: Record<string, string> | undefined;
1032
3667
  templateId?: string | undefined;
1033
3668
  };