@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,7 +1,868 @@
1
1
  import * as z from "zod";
2
+ export * from "./api.js";
2
3
  export * from "./schemas.js";
3
4
  export declare const RESEND_TRIGGER_CONFIG_SCHEMA: z.ZodObject<{}, z.core.$strip>;
4
5
  export declare const resendTriggerContracts: {
6
+ readonly "resend.contact.created": {
7
+ readonly configSchema: z.ZodObject<{}, z.core.$strip>;
8
+ readonly eventSchema: z.ZodObject<{
9
+ audienceId: z.ZodOptional<z.ZodString>;
10
+ createdAt: z.ZodISODateTime;
11
+ email: z.ZodEmail;
12
+ firstName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
13
+ id: z.ZodString;
14
+ lastName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
15
+ segmentIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
16
+ unsubscribed: z.ZodBoolean;
17
+ updatedAt: z.ZodISODateTime;
18
+ event: z.ZodObject<{
19
+ created_at: z.ZodISODateTime;
20
+ data: z.ZodObject<{
21
+ audience_id: z.ZodOptional<z.ZodString>;
22
+ created_at: z.ZodISODateTime;
23
+ email: z.ZodEmail;
24
+ first_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
25
+ id: z.ZodString;
26
+ last_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
27
+ segment_ids: z.ZodOptional<z.ZodArray<z.ZodString>>;
28
+ unsubscribed: z.ZodBoolean;
29
+ updated_at: z.ZodISODateTime;
30
+ }, z.core.$catchall<z.ZodJSONSchema>>;
31
+ type: z.ZodLiteral<"contact.created">;
32
+ }, z.core.$catchall<z.ZodJSONSchema>>;
33
+ }, z.core.$strip>;
34
+ };
35
+ readonly "resend.contact.deleted": {
36
+ readonly configSchema: z.ZodObject<{}, z.core.$strip>;
37
+ readonly eventSchema: z.ZodObject<{
38
+ audienceId: z.ZodOptional<z.ZodString>;
39
+ createdAt: z.ZodISODateTime;
40
+ email: z.ZodEmail;
41
+ firstName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
42
+ id: z.ZodString;
43
+ lastName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
44
+ segmentIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
45
+ unsubscribed: z.ZodBoolean;
46
+ updatedAt: z.ZodISODateTime;
47
+ event: z.ZodObject<{
48
+ created_at: z.ZodISODateTime;
49
+ data: z.ZodObject<{
50
+ audience_id: z.ZodOptional<z.ZodString>;
51
+ created_at: z.ZodISODateTime;
52
+ email: z.ZodEmail;
53
+ first_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
54
+ id: z.ZodString;
55
+ last_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
56
+ segment_ids: z.ZodOptional<z.ZodArray<z.ZodString>>;
57
+ unsubscribed: z.ZodBoolean;
58
+ updated_at: z.ZodISODateTime;
59
+ }, z.core.$catchall<z.ZodJSONSchema>>;
60
+ type: z.ZodLiteral<"contact.deleted">;
61
+ }, z.core.$catchall<z.ZodJSONSchema>>;
62
+ }, z.core.$strip>;
63
+ };
64
+ readonly "resend.contact.event": {
65
+ readonly configSchema: z.ZodObject<{}, z.core.$strip>;
66
+ readonly eventSchema: z.ZodUnion<readonly [z.ZodObject<{
67
+ audienceId: z.ZodOptional<z.ZodString>;
68
+ createdAt: z.ZodISODateTime;
69
+ email: z.ZodEmail;
70
+ firstName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
71
+ id: z.ZodString;
72
+ lastName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
73
+ segmentIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
74
+ unsubscribed: z.ZodBoolean;
75
+ updatedAt: z.ZodISODateTime;
76
+ event: z.ZodObject<{
77
+ created_at: z.ZodISODateTime;
78
+ data: z.ZodObject<{
79
+ audience_id: z.ZodOptional<z.ZodString>;
80
+ created_at: z.ZodISODateTime;
81
+ email: z.ZodEmail;
82
+ first_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
83
+ id: z.ZodString;
84
+ last_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
85
+ segment_ids: z.ZodOptional<z.ZodArray<z.ZodString>>;
86
+ unsubscribed: z.ZodBoolean;
87
+ updated_at: z.ZodISODateTime;
88
+ }, z.core.$catchall<z.ZodJSONSchema>>;
89
+ type: z.ZodLiteral<"contact.created">;
90
+ }, z.core.$catchall<z.ZodJSONSchema>>;
91
+ }, z.core.$strip>, z.ZodObject<{
92
+ audienceId: z.ZodOptional<z.ZodString>;
93
+ createdAt: z.ZodISODateTime;
94
+ email: z.ZodEmail;
95
+ firstName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
96
+ id: z.ZodString;
97
+ lastName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
98
+ segmentIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
99
+ unsubscribed: z.ZodBoolean;
100
+ updatedAt: z.ZodISODateTime;
101
+ event: z.ZodObject<{
102
+ created_at: z.ZodISODateTime;
103
+ data: z.ZodObject<{
104
+ audience_id: z.ZodOptional<z.ZodString>;
105
+ created_at: z.ZodISODateTime;
106
+ email: z.ZodEmail;
107
+ first_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
108
+ id: z.ZodString;
109
+ last_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
110
+ segment_ids: z.ZodOptional<z.ZodArray<z.ZodString>>;
111
+ unsubscribed: z.ZodBoolean;
112
+ updated_at: z.ZodISODateTime;
113
+ }, z.core.$catchall<z.ZodJSONSchema>>;
114
+ type: z.ZodLiteral<"contact.updated">;
115
+ }, z.core.$catchall<z.ZodJSONSchema>>;
116
+ }, z.core.$strip>, z.ZodObject<{
117
+ audienceId: z.ZodOptional<z.ZodString>;
118
+ createdAt: z.ZodISODateTime;
119
+ email: z.ZodEmail;
120
+ firstName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
121
+ id: z.ZodString;
122
+ lastName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
123
+ segmentIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
124
+ unsubscribed: z.ZodBoolean;
125
+ updatedAt: z.ZodISODateTime;
126
+ event: z.ZodObject<{
127
+ created_at: z.ZodISODateTime;
128
+ data: z.ZodObject<{
129
+ audience_id: z.ZodOptional<z.ZodString>;
130
+ created_at: z.ZodISODateTime;
131
+ email: z.ZodEmail;
132
+ first_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
133
+ id: z.ZodString;
134
+ last_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
135
+ segment_ids: z.ZodOptional<z.ZodArray<z.ZodString>>;
136
+ unsubscribed: z.ZodBoolean;
137
+ updated_at: z.ZodISODateTime;
138
+ }, z.core.$catchall<z.ZodJSONSchema>>;
139
+ type: z.ZodLiteral<"contact.deleted">;
140
+ }, z.core.$catchall<z.ZodJSONSchema>>;
141
+ }, z.core.$strip>]>;
142
+ };
143
+ readonly "resend.contact.updated": {
144
+ readonly configSchema: z.ZodObject<{}, z.core.$strip>;
145
+ readonly eventSchema: z.ZodObject<{
146
+ audienceId: z.ZodOptional<z.ZodString>;
147
+ createdAt: z.ZodISODateTime;
148
+ email: z.ZodEmail;
149
+ firstName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
150
+ id: z.ZodString;
151
+ lastName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
152
+ segmentIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
153
+ unsubscribed: z.ZodBoolean;
154
+ updatedAt: z.ZodISODateTime;
155
+ event: z.ZodObject<{
156
+ created_at: z.ZodISODateTime;
157
+ data: z.ZodObject<{
158
+ audience_id: z.ZodOptional<z.ZodString>;
159
+ created_at: z.ZodISODateTime;
160
+ email: z.ZodEmail;
161
+ first_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
162
+ id: z.ZodString;
163
+ last_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
164
+ segment_ids: z.ZodOptional<z.ZodArray<z.ZodString>>;
165
+ unsubscribed: z.ZodBoolean;
166
+ updated_at: z.ZodISODateTime;
167
+ }, z.core.$catchall<z.ZodJSONSchema>>;
168
+ type: z.ZodLiteral<"contact.updated">;
169
+ }, z.core.$catchall<z.ZodJSONSchema>>;
170
+ }, z.core.$strip>;
171
+ };
172
+ readonly "resend.domain.created": {
173
+ readonly configSchema: z.ZodObject<{}, z.core.$strip>;
174
+ readonly eventSchema: z.ZodObject<{
175
+ capabilities: z.ZodOptional<z.ZodObject<{
176
+ receiving: z.ZodOptional<z.ZodEnum<{
177
+ enabled: "enabled";
178
+ disabled: "disabled";
179
+ }>>;
180
+ sending: z.ZodOptional<z.ZodEnum<{
181
+ enabled: "enabled";
182
+ disabled: "disabled";
183
+ }>>;
184
+ }, z.core.$strip>>;
185
+ createdAt: z.ZodISODateTime;
186
+ id: z.ZodString;
187
+ name: z.ZodString;
188
+ records: z.ZodArray<z.ZodObject<{
189
+ name: z.ZodString;
190
+ priority: z.ZodOptional<z.ZodNumber>;
191
+ record: z.ZodEnum<{
192
+ SPF: "SPF";
193
+ DKIM: "DKIM";
194
+ "Receiving MX": "Receiving MX";
195
+ Tracking: "Tracking";
196
+ TrackingCAA: "TrackingCAA";
197
+ }>;
198
+ status: z.ZodEnum<{
199
+ failed: "failed";
200
+ pending: "pending";
201
+ verified: "verified";
202
+ not_started: "not_started";
203
+ temporary_failure: "temporary_failure";
204
+ }>;
205
+ ttl: z.ZodString;
206
+ type: z.ZodEnum<{
207
+ MX: "MX";
208
+ TXT: "TXT";
209
+ CNAME: "CNAME";
210
+ CAA: "CAA";
211
+ }>;
212
+ value: z.ZodString;
213
+ }, z.core.$strip>>;
214
+ region: z.ZodEnum<{
215
+ "us-east-1": "us-east-1";
216
+ "eu-west-1": "eu-west-1";
217
+ "sa-east-1": "sa-east-1";
218
+ "ap-northeast-1": "ap-northeast-1";
219
+ }>;
220
+ status: z.ZodEnum<{
221
+ failed: "failed";
222
+ pending: "pending";
223
+ verified: "verified";
224
+ partially_verified: "partially_verified";
225
+ partially_failed: "partially_failed";
226
+ not_started: "not_started";
227
+ }>;
228
+ event: z.ZodObject<{
229
+ created_at: z.ZodISODateTime;
230
+ data: z.ZodObject<{
231
+ capabilities: z.ZodOptional<z.ZodObject<{
232
+ receiving: z.ZodOptional<z.ZodEnum<{
233
+ enabled: "enabled";
234
+ disabled: "disabled";
235
+ }>>;
236
+ sending: z.ZodOptional<z.ZodEnum<{
237
+ enabled: "enabled";
238
+ disabled: "disabled";
239
+ }>>;
240
+ }, z.core.$strip>>;
241
+ created_at: z.ZodISODateTime;
242
+ id: z.ZodString;
243
+ name: z.ZodString;
244
+ records: z.ZodArray<z.ZodObject<{
245
+ name: z.ZodString;
246
+ priority: z.ZodOptional<z.ZodNumber>;
247
+ record: z.ZodEnum<{
248
+ SPF: "SPF";
249
+ DKIM: "DKIM";
250
+ "Receiving MX": "Receiving MX";
251
+ Tracking: "Tracking";
252
+ TrackingCAA: "TrackingCAA";
253
+ }>;
254
+ status: z.ZodEnum<{
255
+ failed: "failed";
256
+ pending: "pending";
257
+ verified: "verified";
258
+ not_started: "not_started";
259
+ temporary_failure: "temporary_failure";
260
+ }>;
261
+ ttl: z.ZodString;
262
+ type: z.ZodEnum<{
263
+ MX: "MX";
264
+ TXT: "TXT";
265
+ CNAME: "CNAME";
266
+ CAA: "CAA";
267
+ }>;
268
+ value: z.ZodString;
269
+ }, z.core.$strip>>;
270
+ region: z.ZodEnum<{
271
+ "us-east-1": "us-east-1";
272
+ "eu-west-1": "eu-west-1";
273
+ "sa-east-1": "sa-east-1";
274
+ "ap-northeast-1": "ap-northeast-1";
275
+ }>;
276
+ status: z.ZodEnum<{
277
+ failed: "failed";
278
+ pending: "pending";
279
+ verified: "verified";
280
+ partially_verified: "partially_verified";
281
+ partially_failed: "partially_failed";
282
+ not_started: "not_started";
283
+ }>;
284
+ }, z.core.$catchall<z.ZodJSONSchema>>;
285
+ type: z.ZodLiteral<"domain.created">;
286
+ }, z.core.$catchall<z.ZodJSONSchema>>;
287
+ }, z.core.$strip>;
288
+ };
289
+ readonly "resend.domain.deleted": {
290
+ readonly configSchema: z.ZodObject<{}, z.core.$strip>;
291
+ readonly eventSchema: z.ZodObject<{
292
+ capabilities: z.ZodOptional<z.ZodObject<{
293
+ receiving: z.ZodOptional<z.ZodEnum<{
294
+ enabled: "enabled";
295
+ disabled: "disabled";
296
+ }>>;
297
+ sending: z.ZodOptional<z.ZodEnum<{
298
+ enabled: "enabled";
299
+ disabled: "disabled";
300
+ }>>;
301
+ }, z.core.$strip>>;
302
+ createdAt: z.ZodISODateTime;
303
+ id: z.ZodString;
304
+ name: z.ZodString;
305
+ records: z.ZodArray<z.ZodObject<{
306
+ name: z.ZodString;
307
+ priority: z.ZodOptional<z.ZodNumber>;
308
+ record: z.ZodEnum<{
309
+ SPF: "SPF";
310
+ DKIM: "DKIM";
311
+ "Receiving MX": "Receiving MX";
312
+ Tracking: "Tracking";
313
+ TrackingCAA: "TrackingCAA";
314
+ }>;
315
+ status: z.ZodEnum<{
316
+ failed: "failed";
317
+ pending: "pending";
318
+ verified: "verified";
319
+ not_started: "not_started";
320
+ temporary_failure: "temporary_failure";
321
+ }>;
322
+ ttl: z.ZodString;
323
+ type: z.ZodEnum<{
324
+ MX: "MX";
325
+ TXT: "TXT";
326
+ CNAME: "CNAME";
327
+ CAA: "CAA";
328
+ }>;
329
+ value: z.ZodString;
330
+ }, z.core.$strip>>;
331
+ region: z.ZodEnum<{
332
+ "us-east-1": "us-east-1";
333
+ "eu-west-1": "eu-west-1";
334
+ "sa-east-1": "sa-east-1";
335
+ "ap-northeast-1": "ap-northeast-1";
336
+ }>;
337
+ status: z.ZodEnum<{
338
+ failed: "failed";
339
+ pending: "pending";
340
+ verified: "verified";
341
+ partially_verified: "partially_verified";
342
+ partially_failed: "partially_failed";
343
+ not_started: "not_started";
344
+ }>;
345
+ event: z.ZodObject<{
346
+ created_at: z.ZodISODateTime;
347
+ data: z.ZodObject<{
348
+ capabilities: z.ZodOptional<z.ZodObject<{
349
+ receiving: z.ZodOptional<z.ZodEnum<{
350
+ enabled: "enabled";
351
+ disabled: "disabled";
352
+ }>>;
353
+ sending: z.ZodOptional<z.ZodEnum<{
354
+ enabled: "enabled";
355
+ disabled: "disabled";
356
+ }>>;
357
+ }, z.core.$strip>>;
358
+ created_at: z.ZodISODateTime;
359
+ id: z.ZodString;
360
+ name: z.ZodString;
361
+ records: z.ZodArray<z.ZodObject<{
362
+ name: z.ZodString;
363
+ priority: z.ZodOptional<z.ZodNumber>;
364
+ record: z.ZodEnum<{
365
+ SPF: "SPF";
366
+ DKIM: "DKIM";
367
+ "Receiving MX": "Receiving MX";
368
+ Tracking: "Tracking";
369
+ TrackingCAA: "TrackingCAA";
370
+ }>;
371
+ status: z.ZodEnum<{
372
+ failed: "failed";
373
+ pending: "pending";
374
+ verified: "verified";
375
+ not_started: "not_started";
376
+ temporary_failure: "temporary_failure";
377
+ }>;
378
+ ttl: z.ZodString;
379
+ type: z.ZodEnum<{
380
+ MX: "MX";
381
+ TXT: "TXT";
382
+ CNAME: "CNAME";
383
+ CAA: "CAA";
384
+ }>;
385
+ value: z.ZodString;
386
+ }, z.core.$strip>>;
387
+ region: z.ZodEnum<{
388
+ "us-east-1": "us-east-1";
389
+ "eu-west-1": "eu-west-1";
390
+ "sa-east-1": "sa-east-1";
391
+ "ap-northeast-1": "ap-northeast-1";
392
+ }>;
393
+ status: z.ZodEnum<{
394
+ failed: "failed";
395
+ pending: "pending";
396
+ verified: "verified";
397
+ partially_verified: "partially_verified";
398
+ partially_failed: "partially_failed";
399
+ not_started: "not_started";
400
+ }>;
401
+ }, z.core.$catchall<z.ZodJSONSchema>>;
402
+ type: z.ZodLiteral<"domain.deleted">;
403
+ }, z.core.$catchall<z.ZodJSONSchema>>;
404
+ }, z.core.$strip>;
405
+ };
406
+ readonly "resend.domain.event": {
407
+ readonly configSchema: z.ZodObject<{}, z.core.$strip>;
408
+ readonly eventSchema: z.ZodUnion<readonly [z.ZodObject<{
409
+ capabilities: z.ZodOptional<z.ZodObject<{
410
+ receiving: z.ZodOptional<z.ZodEnum<{
411
+ enabled: "enabled";
412
+ disabled: "disabled";
413
+ }>>;
414
+ sending: z.ZodOptional<z.ZodEnum<{
415
+ enabled: "enabled";
416
+ disabled: "disabled";
417
+ }>>;
418
+ }, z.core.$strip>>;
419
+ createdAt: z.ZodISODateTime;
420
+ id: z.ZodString;
421
+ name: z.ZodString;
422
+ records: z.ZodArray<z.ZodObject<{
423
+ name: z.ZodString;
424
+ priority: z.ZodOptional<z.ZodNumber>;
425
+ record: z.ZodEnum<{
426
+ SPF: "SPF";
427
+ DKIM: "DKIM";
428
+ "Receiving MX": "Receiving MX";
429
+ Tracking: "Tracking";
430
+ TrackingCAA: "TrackingCAA";
431
+ }>;
432
+ status: z.ZodEnum<{
433
+ failed: "failed";
434
+ pending: "pending";
435
+ verified: "verified";
436
+ not_started: "not_started";
437
+ temporary_failure: "temporary_failure";
438
+ }>;
439
+ ttl: z.ZodString;
440
+ type: z.ZodEnum<{
441
+ MX: "MX";
442
+ TXT: "TXT";
443
+ CNAME: "CNAME";
444
+ CAA: "CAA";
445
+ }>;
446
+ value: z.ZodString;
447
+ }, z.core.$strip>>;
448
+ region: z.ZodEnum<{
449
+ "us-east-1": "us-east-1";
450
+ "eu-west-1": "eu-west-1";
451
+ "sa-east-1": "sa-east-1";
452
+ "ap-northeast-1": "ap-northeast-1";
453
+ }>;
454
+ status: z.ZodEnum<{
455
+ failed: "failed";
456
+ pending: "pending";
457
+ verified: "verified";
458
+ partially_verified: "partially_verified";
459
+ partially_failed: "partially_failed";
460
+ not_started: "not_started";
461
+ }>;
462
+ event: z.ZodObject<{
463
+ created_at: z.ZodISODateTime;
464
+ data: z.ZodObject<{
465
+ capabilities: z.ZodOptional<z.ZodObject<{
466
+ receiving: z.ZodOptional<z.ZodEnum<{
467
+ enabled: "enabled";
468
+ disabled: "disabled";
469
+ }>>;
470
+ sending: z.ZodOptional<z.ZodEnum<{
471
+ enabled: "enabled";
472
+ disabled: "disabled";
473
+ }>>;
474
+ }, z.core.$strip>>;
475
+ created_at: z.ZodISODateTime;
476
+ id: z.ZodString;
477
+ name: z.ZodString;
478
+ records: z.ZodArray<z.ZodObject<{
479
+ name: z.ZodString;
480
+ priority: z.ZodOptional<z.ZodNumber>;
481
+ record: z.ZodEnum<{
482
+ SPF: "SPF";
483
+ DKIM: "DKIM";
484
+ "Receiving MX": "Receiving MX";
485
+ Tracking: "Tracking";
486
+ TrackingCAA: "TrackingCAA";
487
+ }>;
488
+ status: z.ZodEnum<{
489
+ failed: "failed";
490
+ pending: "pending";
491
+ verified: "verified";
492
+ not_started: "not_started";
493
+ temporary_failure: "temporary_failure";
494
+ }>;
495
+ ttl: z.ZodString;
496
+ type: z.ZodEnum<{
497
+ MX: "MX";
498
+ TXT: "TXT";
499
+ CNAME: "CNAME";
500
+ CAA: "CAA";
501
+ }>;
502
+ value: z.ZodString;
503
+ }, z.core.$strip>>;
504
+ region: z.ZodEnum<{
505
+ "us-east-1": "us-east-1";
506
+ "eu-west-1": "eu-west-1";
507
+ "sa-east-1": "sa-east-1";
508
+ "ap-northeast-1": "ap-northeast-1";
509
+ }>;
510
+ status: z.ZodEnum<{
511
+ failed: "failed";
512
+ pending: "pending";
513
+ verified: "verified";
514
+ partially_verified: "partially_verified";
515
+ partially_failed: "partially_failed";
516
+ not_started: "not_started";
517
+ }>;
518
+ }, z.core.$catchall<z.ZodJSONSchema>>;
519
+ type: z.ZodLiteral<"domain.created">;
520
+ }, z.core.$catchall<z.ZodJSONSchema>>;
521
+ }, z.core.$strip>, z.ZodObject<{
522
+ capabilities: z.ZodOptional<z.ZodObject<{
523
+ receiving: z.ZodOptional<z.ZodEnum<{
524
+ enabled: "enabled";
525
+ disabled: "disabled";
526
+ }>>;
527
+ sending: z.ZodOptional<z.ZodEnum<{
528
+ enabled: "enabled";
529
+ disabled: "disabled";
530
+ }>>;
531
+ }, z.core.$strip>>;
532
+ createdAt: z.ZodISODateTime;
533
+ id: z.ZodString;
534
+ name: z.ZodString;
535
+ records: z.ZodArray<z.ZodObject<{
536
+ name: z.ZodString;
537
+ priority: z.ZodOptional<z.ZodNumber>;
538
+ record: z.ZodEnum<{
539
+ SPF: "SPF";
540
+ DKIM: "DKIM";
541
+ "Receiving MX": "Receiving MX";
542
+ Tracking: "Tracking";
543
+ TrackingCAA: "TrackingCAA";
544
+ }>;
545
+ status: z.ZodEnum<{
546
+ failed: "failed";
547
+ pending: "pending";
548
+ verified: "verified";
549
+ not_started: "not_started";
550
+ temporary_failure: "temporary_failure";
551
+ }>;
552
+ ttl: z.ZodString;
553
+ type: z.ZodEnum<{
554
+ MX: "MX";
555
+ TXT: "TXT";
556
+ CNAME: "CNAME";
557
+ CAA: "CAA";
558
+ }>;
559
+ value: z.ZodString;
560
+ }, z.core.$strip>>;
561
+ region: z.ZodEnum<{
562
+ "us-east-1": "us-east-1";
563
+ "eu-west-1": "eu-west-1";
564
+ "sa-east-1": "sa-east-1";
565
+ "ap-northeast-1": "ap-northeast-1";
566
+ }>;
567
+ status: z.ZodEnum<{
568
+ failed: "failed";
569
+ pending: "pending";
570
+ verified: "verified";
571
+ partially_verified: "partially_verified";
572
+ partially_failed: "partially_failed";
573
+ not_started: "not_started";
574
+ }>;
575
+ event: z.ZodObject<{
576
+ created_at: z.ZodISODateTime;
577
+ data: z.ZodObject<{
578
+ capabilities: z.ZodOptional<z.ZodObject<{
579
+ receiving: z.ZodOptional<z.ZodEnum<{
580
+ enabled: "enabled";
581
+ disabled: "disabled";
582
+ }>>;
583
+ sending: z.ZodOptional<z.ZodEnum<{
584
+ enabled: "enabled";
585
+ disabled: "disabled";
586
+ }>>;
587
+ }, z.core.$strip>>;
588
+ created_at: z.ZodISODateTime;
589
+ id: z.ZodString;
590
+ name: z.ZodString;
591
+ records: z.ZodArray<z.ZodObject<{
592
+ name: z.ZodString;
593
+ priority: z.ZodOptional<z.ZodNumber>;
594
+ record: z.ZodEnum<{
595
+ SPF: "SPF";
596
+ DKIM: "DKIM";
597
+ "Receiving MX": "Receiving MX";
598
+ Tracking: "Tracking";
599
+ TrackingCAA: "TrackingCAA";
600
+ }>;
601
+ status: z.ZodEnum<{
602
+ failed: "failed";
603
+ pending: "pending";
604
+ verified: "verified";
605
+ not_started: "not_started";
606
+ temporary_failure: "temporary_failure";
607
+ }>;
608
+ ttl: z.ZodString;
609
+ type: z.ZodEnum<{
610
+ MX: "MX";
611
+ TXT: "TXT";
612
+ CNAME: "CNAME";
613
+ CAA: "CAA";
614
+ }>;
615
+ value: z.ZodString;
616
+ }, z.core.$strip>>;
617
+ region: z.ZodEnum<{
618
+ "us-east-1": "us-east-1";
619
+ "eu-west-1": "eu-west-1";
620
+ "sa-east-1": "sa-east-1";
621
+ "ap-northeast-1": "ap-northeast-1";
622
+ }>;
623
+ status: z.ZodEnum<{
624
+ failed: "failed";
625
+ pending: "pending";
626
+ verified: "verified";
627
+ partially_verified: "partially_verified";
628
+ partially_failed: "partially_failed";
629
+ not_started: "not_started";
630
+ }>;
631
+ }, z.core.$catchall<z.ZodJSONSchema>>;
632
+ type: z.ZodLiteral<"domain.updated">;
633
+ }, z.core.$catchall<z.ZodJSONSchema>>;
634
+ }, z.core.$strip>, z.ZodObject<{
635
+ capabilities: z.ZodOptional<z.ZodObject<{
636
+ receiving: z.ZodOptional<z.ZodEnum<{
637
+ enabled: "enabled";
638
+ disabled: "disabled";
639
+ }>>;
640
+ sending: z.ZodOptional<z.ZodEnum<{
641
+ enabled: "enabled";
642
+ disabled: "disabled";
643
+ }>>;
644
+ }, z.core.$strip>>;
645
+ createdAt: z.ZodISODateTime;
646
+ id: z.ZodString;
647
+ name: z.ZodString;
648
+ records: z.ZodArray<z.ZodObject<{
649
+ name: z.ZodString;
650
+ priority: z.ZodOptional<z.ZodNumber>;
651
+ record: z.ZodEnum<{
652
+ SPF: "SPF";
653
+ DKIM: "DKIM";
654
+ "Receiving MX": "Receiving MX";
655
+ Tracking: "Tracking";
656
+ TrackingCAA: "TrackingCAA";
657
+ }>;
658
+ status: z.ZodEnum<{
659
+ failed: "failed";
660
+ pending: "pending";
661
+ verified: "verified";
662
+ not_started: "not_started";
663
+ temporary_failure: "temporary_failure";
664
+ }>;
665
+ ttl: z.ZodString;
666
+ type: z.ZodEnum<{
667
+ MX: "MX";
668
+ TXT: "TXT";
669
+ CNAME: "CNAME";
670
+ CAA: "CAA";
671
+ }>;
672
+ value: z.ZodString;
673
+ }, z.core.$strip>>;
674
+ region: z.ZodEnum<{
675
+ "us-east-1": "us-east-1";
676
+ "eu-west-1": "eu-west-1";
677
+ "sa-east-1": "sa-east-1";
678
+ "ap-northeast-1": "ap-northeast-1";
679
+ }>;
680
+ status: z.ZodEnum<{
681
+ failed: "failed";
682
+ pending: "pending";
683
+ verified: "verified";
684
+ partially_verified: "partially_verified";
685
+ partially_failed: "partially_failed";
686
+ not_started: "not_started";
687
+ }>;
688
+ event: z.ZodObject<{
689
+ created_at: z.ZodISODateTime;
690
+ data: z.ZodObject<{
691
+ capabilities: z.ZodOptional<z.ZodObject<{
692
+ receiving: z.ZodOptional<z.ZodEnum<{
693
+ enabled: "enabled";
694
+ disabled: "disabled";
695
+ }>>;
696
+ sending: z.ZodOptional<z.ZodEnum<{
697
+ enabled: "enabled";
698
+ disabled: "disabled";
699
+ }>>;
700
+ }, z.core.$strip>>;
701
+ created_at: z.ZodISODateTime;
702
+ id: z.ZodString;
703
+ name: z.ZodString;
704
+ records: z.ZodArray<z.ZodObject<{
705
+ name: z.ZodString;
706
+ priority: z.ZodOptional<z.ZodNumber>;
707
+ record: z.ZodEnum<{
708
+ SPF: "SPF";
709
+ DKIM: "DKIM";
710
+ "Receiving MX": "Receiving MX";
711
+ Tracking: "Tracking";
712
+ TrackingCAA: "TrackingCAA";
713
+ }>;
714
+ status: z.ZodEnum<{
715
+ failed: "failed";
716
+ pending: "pending";
717
+ verified: "verified";
718
+ not_started: "not_started";
719
+ temporary_failure: "temporary_failure";
720
+ }>;
721
+ ttl: z.ZodString;
722
+ type: z.ZodEnum<{
723
+ MX: "MX";
724
+ TXT: "TXT";
725
+ CNAME: "CNAME";
726
+ CAA: "CAA";
727
+ }>;
728
+ value: z.ZodString;
729
+ }, z.core.$strip>>;
730
+ region: z.ZodEnum<{
731
+ "us-east-1": "us-east-1";
732
+ "eu-west-1": "eu-west-1";
733
+ "sa-east-1": "sa-east-1";
734
+ "ap-northeast-1": "ap-northeast-1";
735
+ }>;
736
+ status: z.ZodEnum<{
737
+ failed: "failed";
738
+ pending: "pending";
739
+ verified: "verified";
740
+ partially_verified: "partially_verified";
741
+ partially_failed: "partially_failed";
742
+ not_started: "not_started";
743
+ }>;
744
+ }, z.core.$catchall<z.ZodJSONSchema>>;
745
+ type: z.ZodLiteral<"domain.deleted">;
746
+ }, z.core.$catchall<z.ZodJSONSchema>>;
747
+ }, z.core.$strip>]>;
748
+ };
749
+ readonly "resend.domain.updated": {
750
+ readonly configSchema: z.ZodObject<{}, z.core.$strip>;
751
+ readonly eventSchema: z.ZodObject<{
752
+ capabilities: z.ZodOptional<z.ZodObject<{
753
+ receiving: z.ZodOptional<z.ZodEnum<{
754
+ enabled: "enabled";
755
+ disabled: "disabled";
756
+ }>>;
757
+ sending: z.ZodOptional<z.ZodEnum<{
758
+ enabled: "enabled";
759
+ disabled: "disabled";
760
+ }>>;
761
+ }, z.core.$strip>>;
762
+ createdAt: z.ZodISODateTime;
763
+ id: z.ZodString;
764
+ name: z.ZodString;
765
+ records: z.ZodArray<z.ZodObject<{
766
+ name: z.ZodString;
767
+ priority: z.ZodOptional<z.ZodNumber>;
768
+ record: z.ZodEnum<{
769
+ SPF: "SPF";
770
+ DKIM: "DKIM";
771
+ "Receiving MX": "Receiving MX";
772
+ Tracking: "Tracking";
773
+ TrackingCAA: "TrackingCAA";
774
+ }>;
775
+ status: z.ZodEnum<{
776
+ failed: "failed";
777
+ pending: "pending";
778
+ verified: "verified";
779
+ not_started: "not_started";
780
+ temporary_failure: "temporary_failure";
781
+ }>;
782
+ ttl: z.ZodString;
783
+ type: z.ZodEnum<{
784
+ MX: "MX";
785
+ TXT: "TXT";
786
+ CNAME: "CNAME";
787
+ CAA: "CAA";
788
+ }>;
789
+ value: z.ZodString;
790
+ }, z.core.$strip>>;
791
+ region: z.ZodEnum<{
792
+ "us-east-1": "us-east-1";
793
+ "eu-west-1": "eu-west-1";
794
+ "sa-east-1": "sa-east-1";
795
+ "ap-northeast-1": "ap-northeast-1";
796
+ }>;
797
+ status: z.ZodEnum<{
798
+ failed: "failed";
799
+ pending: "pending";
800
+ verified: "verified";
801
+ partially_verified: "partially_verified";
802
+ partially_failed: "partially_failed";
803
+ not_started: "not_started";
804
+ }>;
805
+ event: z.ZodObject<{
806
+ created_at: z.ZodISODateTime;
807
+ data: z.ZodObject<{
808
+ capabilities: z.ZodOptional<z.ZodObject<{
809
+ receiving: z.ZodOptional<z.ZodEnum<{
810
+ enabled: "enabled";
811
+ disabled: "disabled";
812
+ }>>;
813
+ sending: z.ZodOptional<z.ZodEnum<{
814
+ enabled: "enabled";
815
+ disabled: "disabled";
816
+ }>>;
817
+ }, z.core.$strip>>;
818
+ created_at: z.ZodISODateTime;
819
+ id: z.ZodString;
820
+ name: z.ZodString;
821
+ records: z.ZodArray<z.ZodObject<{
822
+ name: z.ZodString;
823
+ priority: z.ZodOptional<z.ZodNumber>;
824
+ record: z.ZodEnum<{
825
+ SPF: "SPF";
826
+ DKIM: "DKIM";
827
+ "Receiving MX": "Receiving MX";
828
+ Tracking: "Tracking";
829
+ TrackingCAA: "TrackingCAA";
830
+ }>;
831
+ status: z.ZodEnum<{
832
+ failed: "failed";
833
+ pending: "pending";
834
+ verified: "verified";
835
+ not_started: "not_started";
836
+ temporary_failure: "temporary_failure";
837
+ }>;
838
+ ttl: z.ZodString;
839
+ type: z.ZodEnum<{
840
+ MX: "MX";
841
+ TXT: "TXT";
842
+ CNAME: "CNAME";
843
+ CAA: "CAA";
844
+ }>;
845
+ value: z.ZodString;
846
+ }, z.core.$strip>>;
847
+ region: z.ZodEnum<{
848
+ "us-east-1": "us-east-1";
849
+ "eu-west-1": "eu-west-1";
850
+ "sa-east-1": "sa-east-1";
851
+ "ap-northeast-1": "ap-northeast-1";
852
+ }>;
853
+ status: z.ZodEnum<{
854
+ failed: "failed";
855
+ pending: "pending";
856
+ verified: "verified";
857
+ partially_verified: "partially_verified";
858
+ partially_failed: "partially_failed";
859
+ not_started: "not_started";
860
+ }>;
861
+ }, z.core.$catchall<z.ZodJSONSchema>>;
862
+ type: z.ZodLiteral<"domain.updated">;
863
+ }, z.core.$catchall<z.ZodJSONSchema>>;
864
+ }, z.core.$strip>;
865
+ };
5
866
  readonly "resend.email.bounced": {
6
867
  readonly configSchema: z.ZodObject<{}, z.core.$strip>;
7
868
  readonly eventSchema: z.ZodObject<{
@@ -9,17 +870,15 @@ export declare const resendTriggerContracts: {
9
870
  createdAt: z.ZodISODateTime;
10
871
  emailId: z.ZodString;
11
872
  from: z.ZodString;
12
- messageId: z.ZodOptional<z.ZodString>;
873
+ headers: z.ZodOptional<z.ZodArray<z.ZodObject<{
874
+ name: z.ZodString;
875
+ value: z.ZodString;
876
+ }, z.core.$strip>>>;
877
+ messageId: z.ZodString;
13
878
  subject: z.ZodString;
14
879
  tags: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
15
880
  templateId: z.ZodOptional<z.ZodString>;
16
881
  to: z.ZodArray<z.ZodString>;
17
- bounce: z.ZodObject<{
18
- diagnosticCode: z.ZodOptional<z.ZodArray<z.ZodString>>;
19
- message: z.ZodString;
20
- subType: z.ZodString;
21
- type: z.ZodString;
22
- }, z.core.$catchall<z.ZodJSONSchema>>;
23
882
  event: z.ZodObject<{
24
883
  created_at: z.ZodISODateTime;
25
884
  data: z.ZodObject<{
@@ -27,7 +886,11 @@ export declare const resendTriggerContracts: {
27
886
  created_at: z.ZodISODateTime;
28
887
  email_id: z.ZodString;
29
888
  from: z.ZodString;
30
- message_id: z.ZodOptional<z.ZodString>;
889
+ headers: z.ZodOptional<z.ZodArray<z.ZodObject<{
890
+ name: z.ZodString;
891
+ value: z.ZodString;
892
+ }, z.core.$strip>>>;
893
+ message_id: z.ZodString;
31
894
  subject: z.ZodString;
32
895
  tags: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
33
896
  template_id: z.ZodOptional<z.ZodString>;
@@ -41,6 +904,12 @@ export declare const resendTriggerContracts: {
41
904
  }, z.core.$catchall<z.ZodJSONSchema>>;
42
905
  type: z.ZodLiteral<"email.bounced">;
43
906
  }, z.core.$catchall<z.ZodJSONSchema>>;
907
+ bounce: z.ZodObject<{
908
+ diagnosticCode: z.ZodOptional<z.ZodArray<z.ZodString>>;
909
+ message: z.ZodString;
910
+ subType: z.ZodString;
911
+ type: z.ZodString;
912
+ }, z.core.$catchall<z.ZodJSONSchema>>;
44
913
  }, z.core.$strip>;
45
914
  };
46
915
  readonly "resend.email.clicked": {
@@ -50,17 +919,15 @@ export declare const resendTriggerContracts: {
50
919
  createdAt: z.ZodISODateTime;
51
920
  emailId: z.ZodString;
52
921
  from: z.ZodString;
53
- messageId: z.ZodOptional<z.ZodString>;
922
+ headers: z.ZodOptional<z.ZodArray<z.ZodObject<{
923
+ name: z.ZodString;
924
+ value: z.ZodString;
925
+ }, z.core.$strip>>>;
926
+ messageId: z.ZodString;
54
927
  subject: z.ZodString;
55
928
  tags: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
56
929
  templateId: z.ZodOptional<z.ZodString>;
57
930
  to: z.ZodArray<z.ZodString>;
58
- click: z.ZodObject<{
59
- ipAddress: z.ZodString;
60
- link: z.ZodString;
61
- timestamp: z.ZodISODateTime;
62
- userAgent: z.ZodString;
63
- }, z.core.$catchall<z.ZodJSONSchema>>;
64
931
  event: z.ZodObject<{
65
932
  created_at: z.ZodISODateTime;
66
933
  data: z.ZodObject<{
@@ -68,7 +935,11 @@ export declare const resendTriggerContracts: {
68
935
  created_at: z.ZodISODateTime;
69
936
  email_id: z.ZodString;
70
937
  from: z.ZodString;
71
- message_id: z.ZodOptional<z.ZodString>;
938
+ headers: z.ZodOptional<z.ZodArray<z.ZodObject<{
939
+ name: z.ZodString;
940
+ value: z.ZodString;
941
+ }, z.core.$strip>>>;
942
+ message_id: z.ZodString;
72
943
  subject: z.ZodString;
73
944
  tags: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
74
945
  template_id: z.ZodOptional<z.ZodString>;
@@ -82,6 +953,12 @@ export declare const resendTriggerContracts: {
82
953
  }, z.core.$catchall<z.ZodJSONSchema>>;
83
954
  type: z.ZodLiteral<"email.clicked">;
84
955
  }, z.core.$catchall<z.ZodJSONSchema>>;
956
+ click: z.ZodObject<{
957
+ ipAddress: z.ZodString;
958
+ link: z.ZodString;
959
+ timestamp: z.ZodISODateTime;
960
+ userAgent: z.ZodString;
961
+ }, z.core.$catchall<z.ZodJSONSchema>>;
85
962
  }, z.core.$strip>;
86
963
  };
87
964
  readonly "resend.email.complained": {
@@ -91,7 +968,11 @@ export declare const resendTriggerContracts: {
91
968
  createdAt: z.ZodISODateTime;
92
969
  emailId: z.ZodString;
93
970
  from: z.ZodString;
94
- messageId: z.ZodOptional<z.ZodString>;
971
+ headers: z.ZodOptional<z.ZodArray<z.ZodObject<{
972
+ name: z.ZodString;
973
+ value: z.ZodString;
974
+ }, z.core.$strip>>>;
975
+ messageId: z.ZodString;
95
976
  subject: z.ZodString;
96
977
  tags: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
97
978
  templateId: z.ZodOptional<z.ZodString>;
@@ -103,7 +984,11 @@ export declare const resendTriggerContracts: {
103
984
  created_at: z.ZodISODateTime;
104
985
  email_id: z.ZodString;
105
986
  from: z.ZodString;
106
- message_id: z.ZodOptional<z.ZodString>;
987
+ headers: z.ZodOptional<z.ZodArray<z.ZodObject<{
988
+ name: z.ZodString;
989
+ value: z.ZodString;
990
+ }, z.core.$strip>>>;
991
+ message_id: z.ZodString;
107
992
  subject: z.ZodString;
108
993
  tags: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
109
994
  template_id: z.ZodOptional<z.ZodString>;
@@ -120,7 +1005,11 @@ export declare const resendTriggerContracts: {
120
1005
  createdAt: z.ZodISODateTime;
121
1006
  emailId: z.ZodString;
122
1007
  from: z.ZodString;
123
- messageId: z.ZodOptional<z.ZodString>;
1008
+ headers: z.ZodOptional<z.ZodArray<z.ZodObject<{
1009
+ name: z.ZodString;
1010
+ value: z.ZodString;
1011
+ }, z.core.$strip>>>;
1012
+ messageId: z.ZodString;
124
1013
  subject: z.ZodString;
125
1014
  tags: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
126
1015
  templateId: z.ZodOptional<z.ZodString>;
@@ -132,7 +1021,11 @@ export declare const resendTriggerContracts: {
132
1021
  created_at: z.ZodISODateTime;
133
1022
  email_id: z.ZodString;
134
1023
  from: z.ZodString;
135
- message_id: z.ZodOptional<z.ZodString>;
1024
+ headers: z.ZodOptional<z.ZodArray<z.ZodObject<{
1025
+ name: z.ZodString;
1026
+ value: z.ZodString;
1027
+ }, z.core.$strip>>>;
1028
+ message_id: z.ZodString;
136
1029
  subject: z.ZodString;
137
1030
  tags: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
138
1031
  template_id: z.ZodOptional<z.ZodString>;
@@ -149,7 +1042,11 @@ export declare const resendTriggerContracts: {
149
1042
  createdAt: z.ZodISODateTime;
150
1043
  emailId: z.ZodString;
151
1044
  from: z.ZodString;
152
- messageId: z.ZodOptional<z.ZodString>;
1045
+ headers: z.ZodOptional<z.ZodArray<z.ZodObject<{
1046
+ name: z.ZodString;
1047
+ value: z.ZodString;
1048
+ }, z.core.$strip>>>;
1049
+ messageId: z.ZodString;
153
1050
  subject: z.ZodString;
154
1051
  tags: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
155
1052
  templateId: z.ZodOptional<z.ZodString>;
@@ -161,7 +1058,11 @@ export declare const resendTriggerContracts: {
161
1058
  created_at: z.ZodISODateTime;
162
1059
  email_id: z.ZodString;
163
1060
  from: z.ZodString;
164
- message_id: z.ZodOptional<z.ZodString>;
1061
+ headers: z.ZodOptional<z.ZodArray<z.ZodObject<{
1062
+ name: z.ZodString;
1063
+ value: z.ZodString;
1064
+ }, z.core.$strip>>>;
1065
+ message_id: z.ZodString;
165
1066
  subject: z.ZodString;
166
1067
  tags: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
167
1068
  template_id: z.ZodOptional<z.ZodString>;
@@ -178,17 +1079,15 @@ export declare const resendTriggerContracts: {
178
1079
  createdAt: z.ZodISODateTime;
179
1080
  emailId: z.ZodString;
180
1081
  from: z.ZodString;
181
- messageId: z.ZodOptional<z.ZodString>;
1082
+ headers: z.ZodOptional<z.ZodArray<z.ZodObject<{
1083
+ name: z.ZodString;
1084
+ value: z.ZodString;
1085
+ }, z.core.$strip>>>;
1086
+ messageId: z.ZodString;
182
1087
  subject: z.ZodString;
183
1088
  tags: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
184
1089
  templateId: z.ZodOptional<z.ZodString>;
185
1090
  to: z.ZodArray<z.ZodString>;
186
- bounce: z.ZodObject<{
187
- diagnosticCode: z.ZodOptional<z.ZodArray<z.ZodString>>;
188
- message: z.ZodString;
189
- subType: z.ZodString;
190
- type: z.ZodString;
191
- }, z.core.$catchall<z.ZodJSONSchema>>;
192
1091
  event: z.ZodObject<{
193
1092
  created_at: z.ZodISODateTime;
194
1093
  data: z.ZodObject<{
@@ -196,7 +1095,11 @@ export declare const resendTriggerContracts: {
196
1095
  created_at: z.ZodISODateTime;
197
1096
  email_id: z.ZodString;
198
1097
  from: z.ZodString;
199
- message_id: z.ZodOptional<z.ZodString>;
1098
+ headers: z.ZodOptional<z.ZodArray<z.ZodObject<{
1099
+ name: z.ZodString;
1100
+ value: z.ZodString;
1101
+ }, z.core.$strip>>>;
1102
+ message_id: z.ZodString;
200
1103
  subject: z.ZodString;
201
1104
  tags: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
202
1105
  template_id: z.ZodOptional<z.ZodString>;
@@ -210,22 +1113,26 @@ export declare const resendTriggerContracts: {
210
1113
  }, z.core.$catchall<z.ZodJSONSchema>>;
211
1114
  type: z.ZodLiteral<"email.bounced">;
212
1115
  }, z.core.$catchall<z.ZodJSONSchema>>;
1116
+ bounce: z.ZodObject<{
1117
+ diagnosticCode: z.ZodOptional<z.ZodArray<z.ZodString>>;
1118
+ message: z.ZodString;
1119
+ subType: z.ZodString;
1120
+ type: z.ZodString;
1121
+ }, z.core.$catchall<z.ZodJSONSchema>>;
213
1122
  }, z.core.$strip>, z.ZodObject<{
214
1123
  broadcastId: z.ZodOptional<z.ZodString>;
215
1124
  createdAt: z.ZodISODateTime;
216
1125
  emailId: z.ZodString;
217
1126
  from: z.ZodString;
218
- messageId: z.ZodOptional<z.ZodString>;
1127
+ headers: z.ZodOptional<z.ZodArray<z.ZodObject<{
1128
+ name: z.ZodString;
1129
+ value: z.ZodString;
1130
+ }, z.core.$strip>>>;
1131
+ messageId: z.ZodString;
219
1132
  subject: z.ZodString;
220
1133
  tags: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
221
1134
  templateId: z.ZodOptional<z.ZodString>;
222
1135
  to: z.ZodArray<z.ZodString>;
223
- click: z.ZodObject<{
224
- ipAddress: z.ZodString;
225
- link: z.ZodString;
226
- timestamp: z.ZodISODateTime;
227
- userAgent: z.ZodString;
228
- }, z.core.$catchall<z.ZodJSONSchema>>;
229
1136
  event: z.ZodObject<{
230
1137
  created_at: z.ZodISODateTime;
231
1138
  data: z.ZodObject<{
@@ -233,7 +1140,11 @@ export declare const resendTriggerContracts: {
233
1140
  created_at: z.ZodISODateTime;
234
1141
  email_id: z.ZodString;
235
1142
  from: z.ZodString;
236
- message_id: z.ZodOptional<z.ZodString>;
1143
+ headers: z.ZodOptional<z.ZodArray<z.ZodObject<{
1144
+ name: z.ZodString;
1145
+ value: z.ZodString;
1146
+ }, z.core.$strip>>>;
1147
+ message_id: z.ZodString;
237
1148
  subject: z.ZodString;
238
1149
  tags: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
239
1150
  template_id: z.ZodOptional<z.ZodString>;
@@ -247,12 +1158,22 @@ export declare const resendTriggerContracts: {
247
1158
  }, z.core.$catchall<z.ZodJSONSchema>>;
248
1159
  type: z.ZodLiteral<"email.clicked">;
249
1160
  }, z.core.$catchall<z.ZodJSONSchema>>;
1161
+ click: z.ZodObject<{
1162
+ ipAddress: z.ZodString;
1163
+ link: z.ZodString;
1164
+ timestamp: z.ZodISODateTime;
1165
+ userAgent: z.ZodString;
1166
+ }, z.core.$catchall<z.ZodJSONSchema>>;
250
1167
  }, z.core.$strip>, z.ZodObject<{
251
1168
  broadcastId: z.ZodOptional<z.ZodString>;
252
1169
  createdAt: z.ZodISODateTime;
253
1170
  emailId: z.ZodString;
254
1171
  from: z.ZodString;
255
- messageId: z.ZodOptional<z.ZodString>;
1172
+ headers: z.ZodOptional<z.ZodArray<z.ZodObject<{
1173
+ name: z.ZodString;
1174
+ value: z.ZodString;
1175
+ }, z.core.$strip>>>;
1176
+ messageId: z.ZodString;
256
1177
  subject: z.ZodString;
257
1178
  tags: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
258
1179
  templateId: z.ZodOptional<z.ZodString>;
@@ -264,7 +1185,11 @@ export declare const resendTriggerContracts: {
264
1185
  created_at: z.ZodISODateTime;
265
1186
  email_id: z.ZodString;
266
1187
  from: z.ZodString;
267
- message_id: z.ZodOptional<z.ZodString>;
1188
+ headers: z.ZodOptional<z.ZodArray<z.ZodObject<{
1189
+ name: z.ZodString;
1190
+ value: z.ZodString;
1191
+ }, z.core.$strip>>>;
1192
+ message_id: z.ZodString;
268
1193
  subject: z.ZodString;
269
1194
  tags: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
270
1195
  template_id: z.ZodOptional<z.ZodString>;
@@ -277,7 +1202,11 @@ export declare const resendTriggerContracts: {
277
1202
  createdAt: z.ZodISODateTime;
278
1203
  emailId: z.ZodString;
279
1204
  from: z.ZodString;
280
- messageId: z.ZodOptional<z.ZodString>;
1205
+ headers: z.ZodOptional<z.ZodArray<z.ZodObject<{
1206
+ name: z.ZodString;
1207
+ value: z.ZodString;
1208
+ }, z.core.$strip>>>;
1209
+ messageId: z.ZodString;
281
1210
  subject: z.ZodString;
282
1211
  tags: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
283
1212
  templateId: z.ZodOptional<z.ZodString>;
@@ -289,7 +1218,11 @@ export declare const resendTriggerContracts: {
289
1218
  created_at: z.ZodISODateTime;
290
1219
  email_id: z.ZodString;
291
1220
  from: z.ZodString;
292
- message_id: z.ZodOptional<z.ZodString>;
1221
+ headers: z.ZodOptional<z.ZodArray<z.ZodObject<{
1222
+ name: z.ZodString;
1223
+ value: z.ZodString;
1224
+ }, z.core.$strip>>>;
1225
+ message_id: z.ZodString;
293
1226
  subject: z.ZodString;
294
1227
  tags: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
295
1228
  template_id: z.ZodOptional<z.ZodString>;
@@ -302,7 +1235,11 @@ export declare const resendTriggerContracts: {
302
1235
  createdAt: z.ZodISODateTime;
303
1236
  emailId: z.ZodString;
304
1237
  from: z.ZodString;
305
- messageId: z.ZodOptional<z.ZodString>;
1238
+ headers: z.ZodOptional<z.ZodArray<z.ZodObject<{
1239
+ name: z.ZodString;
1240
+ value: z.ZodString;
1241
+ }, z.core.$strip>>>;
1242
+ messageId: z.ZodString;
306
1243
  subject: z.ZodString;
307
1244
  tags: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
308
1245
  templateId: z.ZodOptional<z.ZodString>;
@@ -314,7 +1251,11 @@ export declare const resendTriggerContracts: {
314
1251
  created_at: z.ZodISODateTime;
315
1252
  email_id: z.ZodString;
316
1253
  from: z.ZodString;
317
- message_id: z.ZodOptional<z.ZodString>;
1254
+ headers: z.ZodOptional<z.ZodArray<z.ZodObject<{
1255
+ name: z.ZodString;
1256
+ value: z.ZodString;
1257
+ }, z.core.$strip>>>;
1258
+ message_id: z.ZodString;
318
1259
  subject: z.ZodString;
319
1260
  tags: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
320
1261
  template_id: z.ZodOptional<z.ZodString>;
@@ -327,7 +1268,11 @@ export declare const resendTriggerContracts: {
327
1268
  createdAt: z.ZodISODateTime;
328
1269
  emailId: z.ZodString;
329
1270
  from: z.ZodString;
330
- messageId: z.ZodOptional<z.ZodString>;
1271
+ headers: z.ZodOptional<z.ZodArray<z.ZodObject<{
1272
+ name: z.ZodString;
1273
+ value: z.ZodString;
1274
+ }, z.core.$strip>>>;
1275
+ messageId: z.ZodString;
331
1276
  subject: z.ZodString;
332
1277
  tags: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
333
1278
  templateId: z.ZodOptional<z.ZodString>;
@@ -339,7 +1284,11 @@ export declare const resendTriggerContracts: {
339
1284
  created_at: z.ZodISODateTime;
340
1285
  email_id: z.ZodString;
341
1286
  from: z.ZodString;
342
- message_id: z.ZodOptional<z.ZodString>;
1287
+ headers: z.ZodOptional<z.ZodArray<z.ZodObject<{
1288
+ name: z.ZodString;
1289
+ value: z.ZodString;
1290
+ }, z.core.$strip>>>;
1291
+ message_id: z.ZodString;
343
1292
  subject: z.ZodString;
344
1293
  tags: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
345
1294
  template_id: z.ZodOptional<z.ZodString>;
@@ -358,7 +1307,11 @@ export declare const resendTriggerContracts: {
358
1307
  createdAt: z.ZodISODateTime;
359
1308
  emailId: z.ZodString;
360
1309
  from: z.ZodString;
361
- messageId: z.ZodOptional<z.ZodString>;
1310
+ headers: z.ZodOptional<z.ZodArray<z.ZodObject<{
1311
+ name: z.ZodString;
1312
+ value: z.ZodString;
1313
+ }, z.core.$strip>>>;
1314
+ messageId: z.ZodString;
362
1315
  subject: z.ZodString;
363
1316
  tags: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
364
1317
  templateId: z.ZodOptional<z.ZodString>;
@@ -370,7 +1323,11 @@ export declare const resendTriggerContracts: {
370
1323
  created_at: z.ZodISODateTime;
371
1324
  email_id: z.ZodString;
372
1325
  from: z.ZodString;
373
- message_id: z.ZodOptional<z.ZodString>;
1326
+ headers: z.ZodOptional<z.ZodArray<z.ZodObject<{
1327
+ name: z.ZodString;
1328
+ value: z.ZodString;
1329
+ }, z.core.$strip>>>;
1330
+ message_id: z.ZodString;
374
1331
  subject: z.ZodString;
375
1332
  tags: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
376
1333
  template_id: z.ZodOptional<z.ZodString>;
@@ -422,7 +1379,11 @@ export declare const resendTriggerContracts: {
422
1379
  createdAt: z.ZodISODateTime;
423
1380
  emailId: z.ZodString;
424
1381
  from: z.ZodString;
425
- messageId: z.ZodOptional<z.ZodString>;
1382
+ headers: z.ZodOptional<z.ZodArray<z.ZodObject<{
1383
+ name: z.ZodString;
1384
+ value: z.ZodString;
1385
+ }, z.core.$strip>>>;
1386
+ messageId: z.ZodString;
426
1387
  subject: z.ZodString;
427
1388
  tags: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
428
1389
  templateId: z.ZodOptional<z.ZodString>;
@@ -434,7 +1395,11 @@ export declare const resendTriggerContracts: {
434
1395
  created_at: z.ZodISODateTime;
435
1396
  email_id: z.ZodString;
436
1397
  from: z.ZodString;
437
- message_id: z.ZodOptional<z.ZodString>;
1398
+ headers: z.ZodOptional<z.ZodArray<z.ZodObject<{
1399
+ name: z.ZodString;
1400
+ value: z.ZodString;
1401
+ }, z.core.$strip>>>;
1402
+ message_id: z.ZodString;
438
1403
  subject: z.ZodString;
439
1404
  tags: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
440
1405
  template_id: z.ZodOptional<z.ZodString>;
@@ -447,7 +1412,11 @@ export declare const resendTriggerContracts: {
447
1412
  createdAt: z.ZodISODateTime;
448
1413
  emailId: z.ZodString;
449
1414
  from: z.ZodString;
450
- messageId: z.ZodOptional<z.ZodString>;
1415
+ headers: z.ZodOptional<z.ZodArray<z.ZodObject<{
1416
+ name: z.ZodString;
1417
+ value: z.ZodString;
1418
+ }, z.core.$strip>>>;
1419
+ messageId: z.ZodString;
451
1420
  subject: z.ZodString;
452
1421
  tags: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
453
1422
  templateId: z.ZodOptional<z.ZodString>;
@@ -459,7 +1428,11 @@ export declare const resendTriggerContracts: {
459
1428
  created_at: z.ZodISODateTime;
460
1429
  email_id: z.ZodString;
461
1430
  from: z.ZodString;
462
- message_id: z.ZodOptional<z.ZodString>;
1431
+ headers: z.ZodOptional<z.ZodArray<z.ZodObject<{
1432
+ name: z.ZodString;
1433
+ value: z.ZodString;
1434
+ }, z.core.$strip>>>;
1435
+ message_id: z.ZodString;
463
1436
  subject: z.ZodString;
464
1437
  tags: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
465
1438
  template_id: z.ZodOptional<z.ZodString>;
@@ -472,7 +1445,11 @@ export declare const resendTriggerContracts: {
472
1445
  createdAt: z.ZodISODateTime;
473
1446
  emailId: z.ZodString;
474
1447
  from: z.ZodString;
475
- messageId: z.ZodOptional<z.ZodString>;
1448
+ headers: z.ZodOptional<z.ZodArray<z.ZodObject<{
1449
+ name: z.ZodString;
1450
+ value: z.ZodString;
1451
+ }, z.core.$strip>>>;
1452
+ messageId: z.ZodString;
476
1453
  subject: z.ZodString;
477
1454
  tags: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
478
1455
  templateId: z.ZodOptional<z.ZodString>;
@@ -484,20 +1461,28 @@ export declare const resendTriggerContracts: {
484
1461
  created_at: z.ZodISODateTime;
485
1462
  email_id: z.ZodString;
486
1463
  from: z.ZodString;
487
- message_id: z.ZodOptional<z.ZodString>;
1464
+ headers: z.ZodOptional<z.ZodArray<z.ZodObject<{
1465
+ name: z.ZodString;
1466
+ value: z.ZodString;
1467
+ }, z.core.$strip>>>;
1468
+ message_id: z.ZodString;
488
1469
  subject: z.ZodString;
489
1470
  tags: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
490
1471
  template_id: z.ZodOptional<z.ZodString>;
491
1472
  to: z.ZodArray<z.ZodString>;
492
1473
  suppressed: z.ZodObject<{
1474
+ diagnosticCode: z.ZodOptional<z.ZodArray<z.ZodString>>;
493
1475
  message: z.ZodString;
1476
+ reason: z.ZodOptional<z.ZodString>;
494
1477
  type: z.ZodString;
495
1478
  }, z.core.$catchall<z.ZodJSONSchema>>;
496
1479
  }, z.core.$catchall<z.ZodJSONSchema>>;
497
1480
  type: z.ZodLiteral<"email.suppressed">;
498
1481
  }, z.core.$catchall<z.ZodJSONSchema>>;
499
1482
  suppressed: z.ZodObject<{
1483
+ diagnosticCode: z.ZodOptional<z.ZodArray<z.ZodString>>;
500
1484
  message: z.ZodString;
1485
+ reason: z.ZodOptional<z.ZodString>;
501
1486
  type: z.ZodString;
502
1487
  }, z.core.$catchall<z.ZodJSONSchema>>;
503
1488
  }, z.core.$strip>]>;
@@ -509,7 +1494,11 @@ export declare const resendTriggerContracts: {
509
1494
  createdAt: z.ZodISODateTime;
510
1495
  emailId: z.ZodString;
511
1496
  from: z.ZodString;
512
- messageId: z.ZodOptional<z.ZodString>;
1497
+ headers: z.ZodOptional<z.ZodArray<z.ZodObject<{
1498
+ name: z.ZodString;
1499
+ value: z.ZodString;
1500
+ }, z.core.$strip>>>;
1501
+ messageId: z.ZodString;
513
1502
  subject: z.ZodString;
514
1503
  tags: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
515
1504
  templateId: z.ZodOptional<z.ZodString>;
@@ -521,7 +1510,11 @@ export declare const resendTriggerContracts: {
521
1510
  created_at: z.ZodISODateTime;
522
1511
  email_id: z.ZodString;
523
1512
  from: z.ZodString;
524
- message_id: z.ZodOptional<z.ZodString>;
1513
+ headers: z.ZodOptional<z.ZodArray<z.ZodObject<{
1514
+ name: z.ZodString;
1515
+ value: z.ZodString;
1516
+ }, z.core.$strip>>>;
1517
+ message_id: z.ZodString;
525
1518
  subject: z.ZodString;
526
1519
  tags: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
527
1520
  template_id: z.ZodOptional<z.ZodString>;
@@ -544,7 +1537,11 @@ export declare const resendTriggerContracts: {
544
1537
  createdAt: z.ZodISODateTime;
545
1538
  emailId: z.ZodString;
546
1539
  from: z.ZodString;
547
- messageId: z.ZodOptional<z.ZodString>;
1540
+ headers: z.ZodOptional<z.ZodArray<z.ZodObject<{
1541
+ name: z.ZodString;
1542
+ value: z.ZodString;
1543
+ }, z.core.$strip>>>;
1544
+ messageId: z.ZodString;
548
1545
  subject: z.ZodString;
549
1546
  tags: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
550
1547
  templateId: z.ZodOptional<z.ZodString>;
@@ -556,7 +1553,11 @@ export declare const resendTriggerContracts: {
556
1553
  created_at: z.ZodISODateTime;
557
1554
  email_id: z.ZodString;
558
1555
  from: z.ZodString;
559
- message_id: z.ZodOptional<z.ZodString>;
1556
+ headers: z.ZodOptional<z.ZodArray<z.ZodObject<{
1557
+ name: z.ZodString;
1558
+ value: z.ZodString;
1559
+ }, z.core.$strip>>>;
1560
+ message_id: z.ZodString;
560
1561
  subject: z.ZodString;
561
1562
  tags: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
562
1563
  template_id: z.ZodOptional<z.ZodString>;
@@ -616,7 +1617,11 @@ export declare const resendTriggerContracts: {
616
1617
  createdAt: z.ZodISODateTime;
617
1618
  emailId: z.ZodString;
618
1619
  from: z.ZodString;
619
- messageId: z.ZodOptional<z.ZodString>;
1620
+ headers: z.ZodOptional<z.ZodArray<z.ZodObject<{
1621
+ name: z.ZodString;
1622
+ value: z.ZodString;
1623
+ }, z.core.$strip>>>;
1624
+ messageId: z.ZodString;
620
1625
  subject: z.ZodString;
621
1626
  tags: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
622
1627
  templateId: z.ZodOptional<z.ZodString>;
@@ -628,7 +1633,11 @@ export declare const resendTriggerContracts: {
628
1633
  created_at: z.ZodISODateTime;
629
1634
  email_id: z.ZodString;
630
1635
  from: z.ZodString;
631
- message_id: z.ZodOptional<z.ZodString>;
1636
+ headers: z.ZodOptional<z.ZodArray<z.ZodObject<{
1637
+ name: z.ZodString;
1638
+ value: z.ZodString;
1639
+ }, z.core.$strip>>>;
1640
+ message_id: z.ZodString;
632
1641
  subject: z.ZodString;
633
1642
  tags: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
634
1643
  template_id: z.ZodOptional<z.ZodString>;
@@ -645,7 +1654,11 @@ export declare const resendTriggerContracts: {
645
1654
  createdAt: z.ZodISODateTime;
646
1655
  emailId: z.ZodString;
647
1656
  from: z.ZodString;
648
- messageId: z.ZodOptional<z.ZodString>;
1657
+ headers: z.ZodOptional<z.ZodArray<z.ZodObject<{
1658
+ name: z.ZodString;
1659
+ value: z.ZodString;
1660
+ }, z.core.$strip>>>;
1661
+ messageId: z.ZodString;
649
1662
  subject: z.ZodString;
650
1663
  tags: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
651
1664
  templateId: z.ZodOptional<z.ZodString>;
@@ -657,7 +1670,11 @@ export declare const resendTriggerContracts: {
657
1670
  created_at: z.ZodISODateTime;
658
1671
  email_id: z.ZodString;
659
1672
  from: z.ZodString;
660
- message_id: z.ZodOptional<z.ZodString>;
1673
+ headers: z.ZodOptional<z.ZodArray<z.ZodObject<{
1674
+ name: z.ZodString;
1675
+ value: z.ZodString;
1676
+ }, z.core.$strip>>>;
1677
+ message_id: z.ZodString;
661
1678
  subject: z.ZodString;
662
1679
  tags: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
663
1680
  template_id: z.ZodOptional<z.ZodString>;
@@ -674,7 +1691,11 @@ export declare const resendTriggerContracts: {
674
1691
  createdAt: z.ZodISODateTime;
675
1692
  emailId: z.ZodString;
676
1693
  from: z.ZodString;
677
- messageId: z.ZodOptional<z.ZodString>;
1694
+ headers: z.ZodOptional<z.ZodArray<z.ZodObject<{
1695
+ name: z.ZodString;
1696
+ value: z.ZodString;
1697
+ }, z.core.$strip>>>;
1698
+ messageId: z.ZodString;
678
1699
  subject: z.ZodString;
679
1700
  tags: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
680
1701
  templateId: z.ZodOptional<z.ZodString>;
@@ -686,22 +1707,1021 @@ export declare const resendTriggerContracts: {
686
1707
  created_at: z.ZodISODateTime;
687
1708
  email_id: z.ZodString;
688
1709
  from: z.ZodString;
689
- message_id: z.ZodOptional<z.ZodString>;
1710
+ headers: z.ZodOptional<z.ZodArray<z.ZodObject<{
1711
+ name: z.ZodString;
1712
+ value: z.ZodString;
1713
+ }, z.core.$strip>>>;
1714
+ message_id: z.ZodString;
690
1715
  subject: z.ZodString;
691
1716
  tags: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
692
1717
  template_id: z.ZodOptional<z.ZodString>;
693
1718
  to: z.ZodArray<z.ZodString>;
694
1719
  suppressed: z.ZodObject<{
1720
+ diagnosticCode: z.ZodOptional<z.ZodArray<z.ZodString>>;
695
1721
  message: z.ZodString;
1722
+ reason: z.ZodOptional<z.ZodString>;
696
1723
  type: z.ZodString;
697
1724
  }, z.core.$catchall<z.ZodJSONSchema>>;
698
1725
  }, z.core.$catchall<z.ZodJSONSchema>>;
699
1726
  type: z.ZodLiteral<"email.suppressed">;
700
1727
  }, z.core.$catchall<z.ZodJSONSchema>>;
701
1728
  suppressed: z.ZodObject<{
1729
+ diagnosticCode: z.ZodOptional<z.ZodArray<z.ZodString>>;
1730
+ message: z.ZodString;
1731
+ reason: z.ZodOptional<z.ZodString>;
1732
+ type: z.ZodString;
1733
+ }, z.core.$catchall<z.ZodJSONSchema>>;
1734
+ }, z.core.$strip>;
1735
+ };
1736
+ readonly "resend.event": {
1737
+ readonly configSchema: z.ZodObject<{}, z.core.$strip>;
1738
+ readonly eventSchema: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodObject<{
1739
+ broadcastId: z.ZodOptional<z.ZodString>;
1740
+ createdAt: z.ZodISODateTime;
1741
+ emailId: z.ZodString;
1742
+ from: z.ZodString;
1743
+ headers: z.ZodOptional<z.ZodArray<z.ZodObject<{
1744
+ name: z.ZodString;
1745
+ value: z.ZodString;
1746
+ }, z.core.$strip>>>;
1747
+ messageId: z.ZodString;
1748
+ subject: z.ZodString;
1749
+ tags: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1750
+ templateId: z.ZodOptional<z.ZodString>;
1751
+ to: z.ZodArray<z.ZodString>;
1752
+ event: z.ZodObject<{
1753
+ created_at: z.ZodISODateTime;
1754
+ data: z.ZodObject<{
1755
+ broadcast_id: z.ZodOptional<z.ZodString>;
1756
+ created_at: z.ZodISODateTime;
1757
+ email_id: z.ZodString;
1758
+ from: z.ZodString;
1759
+ headers: z.ZodOptional<z.ZodArray<z.ZodObject<{
1760
+ name: z.ZodString;
1761
+ value: z.ZodString;
1762
+ }, z.core.$strip>>>;
1763
+ message_id: z.ZodString;
1764
+ subject: z.ZodString;
1765
+ tags: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1766
+ template_id: z.ZodOptional<z.ZodString>;
1767
+ to: z.ZodArray<z.ZodString>;
1768
+ bounce: z.ZodObject<{
1769
+ diagnosticCode: z.ZodOptional<z.ZodArray<z.ZodString>>;
1770
+ message: z.ZodString;
1771
+ subType: z.ZodString;
1772
+ type: z.ZodString;
1773
+ }, z.core.$catchall<z.ZodJSONSchema>>;
1774
+ }, z.core.$catchall<z.ZodJSONSchema>>;
1775
+ type: z.ZodLiteral<"email.bounced">;
1776
+ }, z.core.$catchall<z.ZodJSONSchema>>;
1777
+ bounce: z.ZodObject<{
1778
+ diagnosticCode: z.ZodOptional<z.ZodArray<z.ZodString>>;
702
1779
  message: z.ZodString;
1780
+ subType: z.ZodString;
703
1781
  type: z.ZodString;
704
1782
  }, z.core.$catchall<z.ZodJSONSchema>>;
1783
+ }, z.core.$strip>, z.ZodObject<{
1784
+ broadcastId: z.ZodOptional<z.ZodString>;
1785
+ createdAt: z.ZodISODateTime;
1786
+ emailId: z.ZodString;
1787
+ from: z.ZodString;
1788
+ headers: z.ZodOptional<z.ZodArray<z.ZodObject<{
1789
+ name: z.ZodString;
1790
+ value: z.ZodString;
1791
+ }, z.core.$strip>>>;
1792
+ messageId: z.ZodString;
1793
+ subject: z.ZodString;
1794
+ tags: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1795
+ templateId: z.ZodOptional<z.ZodString>;
1796
+ to: z.ZodArray<z.ZodString>;
1797
+ event: z.ZodObject<{
1798
+ created_at: z.ZodISODateTime;
1799
+ data: z.ZodObject<{
1800
+ broadcast_id: z.ZodOptional<z.ZodString>;
1801
+ created_at: z.ZodISODateTime;
1802
+ email_id: z.ZodString;
1803
+ from: z.ZodString;
1804
+ headers: z.ZodOptional<z.ZodArray<z.ZodObject<{
1805
+ name: z.ZodString;
1806
+ value: z.ZodString;
1807
+ }, z.core.$strip>>>;
1808
+ message_id: z.ZodString;
1809
+ subject: z.ZodString;
1810
+ tags: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1811
+ template_id: z.ZodOptional<z.ZodString>;
1812
+ to: z.ZodArray<z.ZodString>;
1813
+ click: z.ZodObject<{
1814
+ ipAddress: z.ZodString;
1815
+ link: z.ZodString;
1816
+ timestamp: z.ZodISODateTime;
1817
+ userAgent: z.ZodString;
1818
+ }, z.core.$catchall<z.ZodJSONSchema>>;
1819
+ }, z.core.$catchall<z.ZodJSONSchema>>;
1820
+ type: z.ZodLiteral<"email.clicked">;
1821
+ }, z.core.$catchall<z.ZodJSONSchema>>;
1822
+ click: z.ZodObject<{
1823
+ ipAddress: z.ZodString;
1824
+ link: z.ZodString;
1825
+ timestamp: z.ZodISODateTime;
1826
+ userAgent: z.ZodString;
1827
+ }, z.core.$catchall<z.ZodJSONSchema>>;
1828
+ }, z.core.$strip>, z.ZodObject<{
1829
+ broadcastId: z.ZodOptional<z.ZodString>;
1830
+ createdAt: z.ZodISODateTime;
1831
+ emailId: z.ZodString;
1832
+ from: z.ZodString;
1833
+ headers: z.ZodOptional<z.ZodArray<z.ZodObject<{
1834
+ name: z.ZodString;
1835
+ value: z.ZodString;
1836
+ }, z.core.$strip>>>;
1837
+ messageId: z.ZodString;
1838
+ subject: z.ZodString;
1839
+ tags: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1840
+ templateId: z.ZodOptional<z.ZodString>;
1841
+ to: z.ZodArray<z.ZodString>;
1842
+ event: z.ZodObject<{
1843
+ created_at: z.ZodISODateTime;
1844
+ data: z.ZodObject<{
1845
+ broadcast_id: z.ZodOptional<z.ZodString>;
1846
+ created_at: z.ZodISODateTime;
1847
+ email_id: z.ZodString;
1848
+ from: z.ZodString;
1849
+ headers: z.ZodOptional<z.ZodArray<z.ZodObject<{
1850
+ name: z.ZodString;
1851
+ value: z.ZodString;
1852
+ }, z.core.$strip>>>;
1853
+ message_id: z.ZodString;
1854
+ subject: z.ZodString;
1855
+ tags: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1856
+ template_id: z.ZodOptional<z.ZodString>;
1857
+ to: z.ZodArray<z.ZodString>;
1858
+ }, z.core.$catchall<z.ZodJSONSchema>>;
1859
+ type: z.ZodLiteral<"email.complained">;
1860
+ }, z.core.$catchall<z.ZodJSONSchema>>;
1861
+ }, z.core.$strip>, z.ZodObject<{
1862
+ broadcastId: z.ZodOptional<z.ZodString>;
1863
+ createdAt: z.ZodISODateTime;
1864
+ emailId: z.ZodString;
1865
+ from: z.ZodString;
1866
+ headers: z.ZodOptional<z.ZodArray<z.ZodObject<{
1867
+ name: z.ZodString;
1868
+ value: z.ZodString;
1869
+ }, z.core.$strip>>>;
1870
+ messageId: z.ZodString;
1871
+ subject: z.ZodString;
1872
+ tags: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1873
+ templateId: z.ZodOptional<z.ZodString>;
1874
+ to: z.ZodArray<z.ZodString>;
1875
+ event: z.ZodObject<{
1876
+ created_at: z.ZodISODateTime;
1877
+ data: z.ZodObject<{
1878
+ broadcast_id: z.ZodOptional<z.ZodString>;
1879
+ created_at: z.ZodISODateTime;
1880
+ email_id: z.ZodString;
1881
+ from: z.ZodString;
1882
+ headers: z.ZodOptional<z.ZodArray<z.ZodObject<{
1883
+ name: z.ZodString;
1884
+ value: z.ZodString;
1885
+ }, z.core.$strip>>>;
1886
+ message_id: z.ZodString;
1887
+ subject: z.ZodString;
1888
+ tags: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1889
+ template_id: z.ZodOptional<z.ZodString>;
1890
+ to: z.ZodArray<z.ZodString>;
1891
+ }, z.core.$catchall<z.ZodJSONSchema>>;
1892
+ type: z.ZodLiteral<"email.delivered">;
1893
+ }, z.core.$catchall<z.ZodJSONSchema>>;
1894
+ }, z.core.$strip>, z.ZodObject<{
1895
+ broadcastId: z.ZodOptional<z.ZodString>;
1896
+ createdAt: z.ZodISODateTime;
1897
+ emailId: z.ZodString;
1898
+ from: z.ZodString;
1899
+ headers: z.ZodOptional<z.ZodArray<z.ZodObject<{
1900
+ name: z.ZodString;
1901
+ value: z.ZodString;
1902
+ }, z.core.$strip>>>;
1903
+ messageId: z.ZodString;
1904
+ subject: z.ZodString;
1905
+ tags: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1906
+ templateId: z.ZodOptional<z.ZodString>;
1907
+ to: z.ZodArray<z.ZodString>;
1908
+ event: z.ZodObject<{
1909
+ created_at: z.ZodISODateTime;
1910
+ data: z.ZodObject<{
1911
+ broadcast_id: z.ZodOptional<z.ZodString>;
1912
+ created_at: z.ZodISODateTime;
1913
+ email_id: z.ZodString;
1914
+ from: z.ZodString;
1915
+ headers: z.ZodOptional<z.ZodArray<z.ZodObject<{
1916
+ name: z.ZodString;
1917
+ value: z.ZodString;
1918
+ }, z.core.$strip>>>;
1919
+ message_id: z.ZodString;
1920
+ subject: z.ZodString;
1921
+ tags: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1922
+ template_id: z.ZodOptional<z.ZodString>;
1923
+ to: z.ZodArray<z.ZodString>;
1924
+ }, z.core.$catchall<z.ZodJSONSchema>>;
1925
+ type: z.ZodLiteral<"email.delivery_delayed">;
1926
+ }, z.core.$catchall<z.ZodJSONSchema>>;
1927
+ }, z.core.$strip>, z.ZodObject<{
1928
+ broadcastId: z.ZodOptional<z.ZodString>;
1929
+ createdAt: z.ZodISODateTime;
1930
+ emailId: z.ZodString;
1931
+ from: z.ZodString;
1932
+ headers: z.ZodOptional<z.ZodArray<z.ZodObject<{
1933
+ name: z.ZodString;
1934
+ value: z.ZodString;
1935
+ }, z.core.$strip>>>;
1936
+ messageId: z.ZodString;
1937
+ subject: z.ZodString;
1938
+ tags: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1939
+ templateId: z.ZodOptional<z.ZodString>;
1940
+ to: z.ZodArray<z.ZodString>;
1941
+ event: z.ZodObject<{
1942
+ created_at: z.ZodISODateTime;
1943
+ data: z.ZodObject<{
1944
+ broadcast_id: z.ZodOptional<z.ZodString>;
1945
+ created_at: z.ZodISODateTime;
1946
+ email_id: z.ZodString;
1947
+ from: z.ZodString;
1948
+ headers: z.ZodOptional<z.ZodArray<z.ZodObject<{
1949
+ name: z.ZodString;
1950
+ value: z.ZodString;
1951
+ }, z.core.$strip>>>;
1952
+ message_id: z.ZodString;
1953
+ subject: z.ZodString;
1954
+ tags: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1955
+ template_id: z.ZodOptional<z.ZodString>;
1956
+ to: z.ZodArray<z.ZodString>;
1957
+ failed: z.ZodObject<{
1958
+ reason: z.ZodString;
1959
+ }, z.core.$catchall<z.ZodJSONSchema>>;
1960
+ }, z.core.$catchall<z.ZodJSONSchema>>;
1961
+ type: z.ZodLiteral<"email.failed">;
1962
+ }, z.core.$catchall<z.ZodJSONSchema>>;
1963
+ failed: z.ZodObject<{
1964
+ reason: z.ZodString;
1965
+ }, z.core.$catchall<z.ZodJSONSchema>>;
1966
+ }, z.core.$strip>, z.ZodObject<{
1967
+ broadcastId: z.ZodOptional<z.ZodString>;
1968
+ createdAt: z.ZodISODateTime;
1969
+ emailId: z.ZodString;
1970
+ from: z.ZodString;
1971
+ headers: z.ZodOptional<z.ZodArray<z.ZodObject<{
1972
+ name: z.ZodString;
1973
+ value: z.ZodString;
1974
+ }, z.core.$strip>>>;
1975
+ messageId: z.ZodString;
1976
+ subject: z.ZodString;
1977
+ tags: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1978
+ templateId: z.ZodOptional<z.ZodString>;
1979
+ to: z.ZodArray<z.ZodString>;
1980
+ event: z.ZodObject<{
1981
+ created_at: z.ZodISODateTime;
1982
+ data: z.ZodObject<{
1983
+ broadcast_id: z.ZodOptional<z.ZodString>;
1984
+ created_at: z.ZodISODateTime;
1985
+ email_id: z.ZodString;
1986
+ from: z.ZodString;
1987
+ headers: z.ZodOptional<z.ZodArray<z.ZodObject<{
1988
+ name: z.ZodString;
1989
+ value: z.ZodString;
1990
+ }, z.core.$strip>>>;
1991
+ message_id: z.ZodString;
1992
+ subject: z.ZodString;
1993
+ tags: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1994
+ template_id: z.ZodOptional<z.ZodString>;
1995
+ to: z.ZodArray<z.ZodString>;
1996
+ }, z.core.$catchall<z.ZodJSONSchema>>;
1997
+ type: z.ZodLiteral<"email.opened">;
1998
+ }, z.core.$catchall<z.ZodJSONSchema>>;
1999
+ }, z.core.$strip>, z.ZodObject<{
2000
+ attachments: z.ZodArray<z.ZodObject<{
2001
+ contentDisposition: z.ZodNullable<z.ZodString>;
2002
+ contentId: z.ZodNullable<z.ZodString>;
2003
+ contentType: z.ZodString;
2004
+ filename: z.ZodNullable<z.ZodString>;
2005
+ id: z.ZodString;
2006
+ }, z.core.$catchall<z.ZodJSONSchema>>>;
2007
+ bcc: z.ZodArray<z.ZodString>;
2008
+ cc: z.ZodArray<z.ZodString>;
2009
+ createdAt: z.ZodISODateTime;
2010
+ emailId: z.ZodString;
2011
+ from: z.ZodString;
2012
+ messageId: z.ZodString;
2013
+ receivedFor: z.ZodOptional<z.ZodArray<z.ZodString>>;
2014
+ subject: z.ZodString;
2015
+ to: z.ZodArray<z.ZodString>;
2016
+ event: z.ZodObject<{
2017
+ created_at: z.ZodISODateTime;
2018
+ data: z.ZodObject<{
2019
+ attachments: z.ZodArray<z.ZodObject<{
2020
+ content_disposition: z.ZodNullable<z.ZodString>;
2021
+ content_id: z.ZodNullable<z.ZodString>;
2022
+ content_type: z.ZodString;
2023
+ filename: z.ZodNullable<z.ZodString>;
2024
+ id: z.ZodString;
2025
+ }, z.core.$catchall<z.ZodJSONSchema>>>;
2026
+ bcc: z.ZodArray<z.ZodString>;
2027
+ cc: z.ZodArray<z.ZodString>;
2028
+ created_at: z.ZodISODateTime;
2029
+ email_id: z.ZodString;
2030
+ from: z.ZodString;
2031
+ message_id: z.ZodString;
2032
+ received_for: z.ZodOptional<z.ZodArray<z.ZodString>>;
2033
+ subject: z.ZodString;
2034
+ to: z.ZodArray<z.ZodString>;
2035
+ }, z.core.$catchall<z.ZodJSONSchema>>;
2036
+ type: z.ZodLiteral<"email.received">;
2037
+ }, z.core.$catchall<z.ZodJSONSchema>>;
2038
+ }, z.core.$strip>, z.ZodObject<{
2039
+ broadcastId: z.ZodOptional<z.ZodString>;
2040
+ createdAt: z.ZodISODateTime;
2041
+ emailId: z.ZodString;
2042
+ from: z.ZodString;
2043
+ headers: z.ZodOptional<z.ZodArray<z.ZodObject<{
2044
+ name: z.ZodString;
2045
+ value: z.ZodString;
2046
+ }, z.core.$strip>>>;
2047
+ messageId: z.ZodString;
2048
+ subject: z.ZodString;
2049
+ tags: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
2050
+ templateId: z.ZodOptional<z.ZodString>;
2051
+ to: z.ZodArray<z.ZodString>;
2052
+ event: z.ZodObject<{
2053
+ created_at: z.ZodISODateTime;
2054
+ data: z.ZodObject<{
2055
+ broadcast_id: z.ZodOptional<z.ZodString>;
2056
+ created_at: z.ZodISODateTime;
2057
+ email_id: z.ZodString;
2058
+ from: z.ZodString;
2059
+ headers: z.ZodOptional<z.ZodArray<z.ZodObject<{
2060
+ name: z.ZodString;
2061
+ value: z.ZodString;
2062
+ }, z.core.$strip>>>;
2063
+ message_id: z.ZodString;
2064
+ subject: z.ZodString;
2065
+ tags: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
2066
+ template_id: z.ZodOptional<z.ZodString>;
2067
+ to: z.ZodArray<z.ZodString>;
2068
+ }, z.core.$catchall<z.ZodJSONSchema>>;
2069
+ type: z.ZodLiteral<"email.scheduled">;
2070
+ }, z.core.$catchall<z.ZodJSONSchema>>;
2071
+ }, z.core.$strip>, z.ZodObject<{
2072
+ broadcastId: z.ZodOptional<z.ZodString>;
2073
+ createdAt: z.ZodISODateTime;
2074
+ emailId: z.ZodString;
2075
+ from: z.ZodString;
2076
+ headers: z.ZodOptional<z.ZodArray<z.ZodObject<{
2077
+ name: z.ZodString;
2078
+ value: z.ZodString;
2079
+ }, z.core.$strip>>>;
2080
+ messageId: z.ZodString;
2081
+ subject: z.ZodString;
2082
+ tags: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
2083
+ templateId: z.ZodOptional<z.ZodString>;
2084
+ to: z.ZodArray<z.ZodString>;
2085
+ event: z.ZodObject<{
2086
+ created_at: z.ZodISODateTime;
2087
+ data: z.ZodObject<{
2088
+ broadcast_id: z.ZodOptional<z.ZodString>;
2089
+ created_at: z.ZodISODateTime;
2090
+ email_id: z.ZodString;
2091
+ from: z.ZodString;
2092
+ headers: z.ZodOptional<z.ZodArray<z.ZodObject<{
2093
+ name: z.ZodString;
2094
+ value: z.ZodString;
2095
+ }, z.core.$strip>>>;
2096
+ message_id: z.ZodString;
2097
+ subject: z.ZodString;
2098
+ tags: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
2099
+ template_id: z.ZodOptional<z.ZodString>;
2100
+ to: z.ZodArray<z.ZodString>;
2101
+ }, z.core.$catchall<z.ZodJSONSchema>>;
2102
+ type: z.ZodLiteral<"email.sent">;
2103
+ }, z.core.$catchall<z.ZodJSONSchema>>;
2104
+ }, z.core.$strip>, z.ZodObject<{
2105
+ broadcastId: z.ZodOptional<z.ZodString>;
2106
+ createdAt: z.ZodISODateTime;
2107
+ emailId: z.ZodString;
2108
+ from: z.ZodString;
2109
+ headers: z.ZodOptional<z.ZodArray<z.ZodObject<{
2110
+ name: z.ZodString;
2111
+ value: z.ZodString;
2112
+ }, z.core.$strip>>>;
2113
+ messageId: z.ZodString;
2114
+ subject: z.ZodString;
2115
+ tags: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
2116
+ templateId: z.ZodOptional<z.ZodString>;
2117
+ to: z.ZodArray<z.ZodString>;
2118
+ event: z.ZodObject<{
2119
+ created_at: z.ZodISODateTime;
2120
+ data: z.ZodObject<{
2121
+ broadcast_id: z.ZodOptional<z.ZodString>;
2122
+ created_at: z.ZodISODateTime;
2123
+ email_id: z.ZodString;
2124
+ from: z.ZodString;
2125
+ headers: z.ZodOptional<z.ZodArray<z.ZodObject<{
2126
+ name: z.ZodString;
2127
+ value: z.ZodString;
2128
+ }, z.core.$strip>>>;
2129
+ message_id: z.ZodString;
2130
+ subject: z.ZodString;
2131
+ tags: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
2132
+ template_id: z.ZodOptional<z.ZodString>;
2133
+ to: z.ZodArray<z.ZodString>;
2134
+ suppressed: z.ZodObject<{
2135
+ diagnosticCode: z.ZodOptional<z.ZodArray<z.ZodString>>;
2136
+ message: z.ZodString;
2137
+ reason: z.ZodOptional<z.ZodString>;
2138
+ type: z.ZodString;
2139
+ }, z.core.$catchall<z.ZodJSONSchema>>;
2140
+ }, z.core.$catchall<z.ZodJSONSchema>>;
2141
+ type: z.ZodLiteral<"email.suppressed">;
2142
+ }, z.core.$catchall<z.ZodJSONSchema>>;
2143
+ suppressed: z.ZodObject<{
2144
+ diagnosticCode: z.ZodOptional<z.ZodArray<z.ZodString>>;
2145
+ message: z.ZodString;
2146
+ reason: z.ZodOptional<z.ZodString>;
2147
+ type: z.ZodString;
2148
+ }, z.core.$catchall<z.ZodJSONSchema>>;
2149
+ }, z.core.$strip>]>, z.ZodUnion<readonly [z.ZodObject<{
2150
+ audienceId: z.ZodOptional<z.ZodString>;
2151
+ createdAt: z.ZodISODateTime;
2152
+ email: z.ZodEmail;
2153
+ firstName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2154
+ id: z.ZodString;
2155
+ lastName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2156
+ segmentIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
2157
+ unsubscribed: z.ZodBoolean;
2158
+ updatedAt: z.ZodISODateTime;
2159
+ event: z.ZodObject<{
2160
+ created_at: z.ZodISODateTime;
2161
+ data: z.ZodObject<{
2162
+ audience_id: z.ZodOptional<z.ZodString>;
2163
+ created_at: z.ZodISODateTime;
2164
+ email: z.ZodEmail;
2165
+ first_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2166
+ id: z.ZodString;
2167
+ last_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2168
+ segment_ids: z.ZodOptional<z.ZodArray<z.ZodString>>;
2169
+ unsubscribed: z.ZodBoolean;
2170
+ updated_at: z.ZodISODateTime;
2171
+ }, z.core.$catchall<z.ZodJSONSchema>>;
2172
+ type: z.ZodLiteral<"contact.created">;
2173
+ }, z.core.$catchall<z.ZodJSONSchema>>;
2174
+ }, z.core.$strip>, z.ZodObject<{
2175
+ audienceId: z.ZodOptional<z.ZodString>;
2176
+ createdAt: z.ZodISODateTime;
2177
+ email: z.ZodEmail;
2178
+ firstName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2179
+ id: z.ZodString;
2180
+ lastName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2181
+ segmentIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
2182
+ unsubscribed: z.ZodBoolean;
2183
+ updatedAt: z.ZodISODateTime;
2184
+ event: z.ZodObject<{
2185
+ created_at: z.ZodISODateTime;
2186
+ data: z.ZodObject<{
2187
+ audience_id: z.ZodOptional<z.ZodString>;
2188
+ created_at: z.ZodISODateTime;
2189
+ email: z.ZodEmail;
2190
+ first_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2191
+ id: z.ZodString;
2192
+ last_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2193
+ segment_ids: z.ZodOptional<z.ZodArray<z.ZodString>>;
2194
+ unsubscribed: z.ZodBoolean;
2195
+ updated_at: z.ZodISODateTime;
2196
+ }, z.core.$catchall<z.ZodJSONSchema>>;
2197
+ type: z.ZodLiteral<"contact.updated">;
2198
+ }, z.core.$catchall<z.ZodJSONSchema>>;
2199
+ }, z.core.$strip>, z.ZodObject<{
2200
+ audienceId: z.ZodOptional<z.ZodString>;
2201
+ createdAt: z.ZodISODateTime;
2202
+ email: z.ZodEmail;
2203
+ firstName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2204
+ id: z.ZodString;
2205
+ lastName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2206
+ segmentIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
2207
+ unsubscribed: z.ZodBoolean;
2208
+ updatedAt: z.ZodISODateTime;
2209
+ event: z.ZodObject<{
2210
+ created_at: z.ZodISODateTime;
2211
+ data: z.ZodObject<{
2212
+ audience_id: z.ZodOptional<z.ZodString>;
2213
+ created_at: z.ZodISODateTime;
2214
+ email: z.ZodEmail;
2215
+ first_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2216
+ id: z.ZodString;
2217
+ last_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2218
+ segment_ids: z.ZodOptional<z.ZodArray<z.ZodString>>;
2219
+ unsubscribed: z.ZodBoolean;
2220
+ updated_at: z.ZodISODateTime;
2221
+ }, z.core.$catchall<z.ZodJSONSchema>>;
2222
+ type: z.ZodLiteral<"contact.deleted">;
2223
+ }, z.core.$catchall<z.ZodJSONSchema>>;
2224
+ }, z.core.$strip>]>, z.ZodUnion<readonly [z.ZodObject<{
2225
+ capabilities: z.ZodOptional<z.ZodObject<{
2226
+ receiving: z.ZodOptional<z.ZodEnum<{
2227
+ enabled: "enabled";
2228
+ disabled: "disabled";
2229
+ }>>;
2230
+ sending: z.ZodOptional<z.ZodEnum<{
2231
+ enabled: "enabled";
2232
+ disabled: "disabled";
2233
+ }>>;
2234
+ }, z.core.$strip>>;
2235
+ createdAt: z.ZodISODateTime;
2236
+ id: z.ZodString;
2237
+ name: z.ZodString;
2238
+ records: z.ZodArray<z.ZodObject<{
2239
+ name: z.ZodString;
2240
+ priority: z.ZodOptional<z.ZodNumber>;
2241
+ record: z.ZodEnum<{
2242
+ SPF: "SPF";
2243
+ DKIM: "DKIM";
2244
+ "Receiving MX": "Receiving MX";
2245
+ Tracking: "Tracking";
2246
+ TrackingCAA: "TrackingCAA";
2247
+ }>;
2248
+ status: z.ZodEnum<{
2249
+ failed: "failed";
2250
+ pending: "pending";
2251
+ verified: "verified";
2252
+ not_started: "not_started";
2253
+ temporary_failure: "temporary_failure";
2254
+ }>;
2255
+ ttl: z.ZodString;
2256
+ type: z.ZodEnum<{
2257
+ MX: "MX";
2258
+ TXT: "TXT";
2259
+ CNAME: "CNAME";
2260
+ CAA: "CAA";
2261
+ }>;
2262
+ value: z.ZodString;
2263
+ }, z.core.$strip>>;
2264
+ region: z.ZodEnum<{
2265
+ "us-east-1": "us-east-1";
2266
+ "eu-west-1": "eu-west-1";
2267
+ "sa-east-1": "sa-east-1";
2268
+ "ap-northeast-1": "ap-northeast-1";
2269
+ }>;
2270
+ status: z.ZodEnum<{
2271
+ failed: "failed";
2272
+ pending: "pending";
2273
+ verified: "verified";
2274
+ partially_verified: "partially_verified";
2275
+ partially_failed: "partially_failed";
2276
+ not_started: "not_started";
2277
+ }>;
2278
+ event: z.ZodObject<{
2279
+ created_at: z.ZodISODateTime;
2280
+ data: z.ZodObject<{
2281
+ capabilities: z.ZodOptional<z.ZodObject<{
2282
+ receiving: z.ZodOptional<z.ZodEnum<{
2283
+ enabled: "enabled";
2284
+ disabled: "disabled";
2285
+ }>>;
2286
+ sending: z.ZodOptional<z.ZodEnum<{
2287
+ enabled: "enabled";
2288
+ disabled: "disabled";
2289
+ }>>;
2290
+ }, z.core.$strip>>;
2291
+ created_at: z.ZodISODateTime;
2292
+ id: z.ZodString;
2293
+ name: z.ZodString;
2294
+ records: z.ZodArray<z.ZodObject<{
2295
+ name: z.ZodString;
2296
+ priority: z.ZodOptional<z.ZodNumber>;
2297
+ record: z.ZodEnum<{
2298
+ SPF: "SPF";
2299
+ DKIM: "DKIM";
2300
+ "Receiving MX": "Receiving MX";
2301
+ Tracking: "Tracking";
2302
+ TrackingCAA: "TrackingCAA";
2303
+ }>;
2304
+ status: z.ZodEnum<{
2305
+ failed: "failed";
2306
+ pending: "pending";
2307
+ verified: "verified";
2308
+ not_started: "not_started";
2309
+ temporary_failure: "temporary_failure";
2310
+ }>;
2311
+ ttl: z.ZodString;
2312
+ type: z.ZodEnum<{
2313
+ MX: "MX";
2314
+ TXT: "TXT";
2315
+ CNAME: "CNAME";
2316
+ CAA: "CAA";
2317
+ }>;
2318
+ value: z.ZodString;
2319
+ }, z.core.$strip>>;
2320
+ region: z.ZodEnum<{
2321
+ "us-east-1": "us-east-1";
2322
+ "eu-west-1": "eu-west-1";
2323
+ "sa-east-1": "sa-east-1";
2324
+ "ap-northeast-1": "ap-northeast-1";
2325
+ }>;
2326
+ status: z.ZodEnum<{
2327
+ failed: "failed";
2328
+ pending: "pending";
2329
+ verified: "verified";
2330
+ partially_verified: "partially_verified";
2331
+ partially_failed: "partially_failed";
2332
+ not_started: "not_started";
2333
+ }>;
2334
+ }, z.core.$catchall<z.ZodJSONSchema>>;
2335
+ type: z.ZodLiteral<"domain.created">;
2336
+ }, z.core.$catchall<z.ZodJSONSchema>>;
2337
+ }, z.core.$strip>, z.ZodObject<{
2338
+ capabilities: z.ZodOptional<z.ZodObject<{
2339
+ receiving: z.ZodOptional<z.ZodEnum<{
2340
+ enabled: "enabled";
2341
+ disabled: "disabled";
2342
+ }>>;
2343
+ sending: z.ZodOptional<z.ZodEnum<{
2344
+ enabled: "enabled";
2345
+ disabled: "disabled";
2346
+ }>>;
2347
+ }, z.core.$strip>>;
2348
+ createdAt: z.ZodISODateTime;
2349
+ id: z.ZodString;
2350
+ name: z.ZodString;
2351
+ records: z.ZodArray<z.ZodObject<{
2352
+ name: z.ZodString;
2353
+ priority: z.ZodOptional<z.ZodNumber>;
2354
+ record: z.ZodEnum<{
2355
+ SPF: "SPF";
2356
+ DKIM: "DKIM";
2357
+ "Receiving MX": "Receiving MX";
2358
+ Tracking: "Tracking";
2359
+ TrackingCAA: "TrackingCAA";
2360
+ }>;
2361
+ status: z.ZodEnum<{
2362
+ failed: "failed";
2363
+ pending: "pending";
2364
+ verified: "verified";
2365
+ not_started: "not_started";
2366
+ temporary_failure: "temporary_failure";
2367
+ }>;
2368
+ ttl: z.ZodString;
2369
+ type: z.ZodEnum<{
2370
+ MX: "MX";
2371
+ TXT: "TXT";
2372
+ CNAME: "CNAME";
2373
+ CAA: "CAA";
2374
+ }>;
2375
+ value: z.ZodString;
2376
+ }, z.core.$strip>>;
2377
+ region: z.ZodEnum<{
2378
+ "us-east-1": "us-east-1";
2379
+ "eu-west-1": "eu-west-1";
2380
+ "sa-east-1": "sa-east-1";
2381
+ "ap-northeast-1": "ap-northeast-1";
2382
+ }>;
2383
+ status: z.ZodEnum<{
2384
+ failed: "failed";
2385
+ pending: "pending";
2386
+ verified: "verified";
2387
+ partially_verified: "partially_verified";
2388
+ partially_failed: "partially_failed";
2389
+ not_started: "not_started";
2390
+ }>;
2391
+ event: z.ZodObject<{
2392
+ created_at: z.ZodISODateTime;
2393
+ data: z.ZodObject<{
2394
+ capabilities: z.ZodOptional<z.ZodObject<{
2395
+ receiving: z.ZodOptional<z.ZodEnum<{
2396
+ enabled: "enabled";
2397
+ disabled: "disabled";
2398
+ }>>;
2399
+ sending: z.ZodOptional<z.ZodEnum<{
2400
+ enabled: "enabled";
2401
+ disabled: "disabled";
2402
+ }>>;
2403
+ }, z.core.$strip>>;
2404
+ created_at: z.ZodISODateTime;
2405
+ id: z.ZodString;
2406
+ name: z.ZodString;
2407
+ records: z.ZodArray<z.ZodObject<{
2408
+ name: z.ZodString;
2409
+ priority: z.ZodOptional<z.ZodNumber>;
2410
+ record: z.ZodEnum<{
2411
+ SPF: "SPF";
2412
+ DKIM: "DKIM";
2413
+ "Receiving MX": "Receiving MX";
2414
+ Tracking: "Tracking";
2415
+ TrackingCAA: "TrackingCAA";
2416
+ }>;
2417
+ status: z.ZodEnum<{
2418
+ failed: "failed";
2419
+ pending: "pending";
2420
+ verified: "verified";
2421
+ not_started: "not_started";
2422
+ temporary_failure: "temporary_failure";
2423
+ }>;
2424
+ ttl: z.ZodString;
2425
+ type: z.ZodEnum<{
2426
+ MX: "MX";
2427
+ TXT: "TXT";
2428
+ CNAME: "CNAME";
2429
+ CAA: "CAA";
2430
+ }>;
2431
+ value: z.ZodString;
2432
+ }, z.core.$strip>>;
2433
+ region: z.ZodEnum<{
2434
+ "us-east-1": "us-east-1";
2435
+ "eu-west-1": "eu-west-1";
2436
+ "sa-east-1": "sa-east-1";
2437
+ "ap-northeast-1": "ap-northeast-1";
2438
+ }>;
2439
+ status: z.ZodEnum<{
2440
+ failed: "failed";
2441
+ pending: "pending";
2442
+ verified: "verified";
2443
+ partially_verified: "partially_verified";
2444
+ partially_failed: "partially_failed";
2445
+ not_started: "not_started";
2446
+ }>;
2447
+ }, z.core.$catchall<z.ZodJSONSchema>>;
2448
+ type: z.ZodLiteral<"domain.updated">;
2449
+ }, z.core.$catchall<z.ZodJSONSchema>>;
2450
+ }, z.core.$strip>, z.ZodObject<{
2451
+ capabilities: z.ZodOptional<z.ZodObject<{
2452
+ receiving: z.ZodOptional<z.ZodEnum<{
2453
+ enabled: "enabled";
2454
+ disabled: "disabled";
2455
+ }>>;
2456
+ sending: z.ZodOptional<z.ZodEnum<{
2457
+ enabled: "enabled";
2458
+ disabled: "disabled";
2459
+ }>>;
2460
+ }, z.core.$strip>>;
2461
+ createdAt: z.ZodISODateTime;
2462
+ id: z.ZodString;
2463
+ name: z.ZodString;
2464
+ records: z.ZodArray<z.ZodObject<{
2465
+ name: z.ZodString;
2466
+ priority: z.ZodOptional<z.ZodNumber>;
2467
+ record: z.ZodEnum<{
2468
+ SPF: "SPF";
2469
+ DKIM: "DKIM";
2470
+ "Receiving MX": "Receiving MX";
2471
+ Tracking: "Tracking";
2472
+ TrackingCAA: "TrackingCAA";
2473
+ }>;
2474
+ status: z.ZodEnum<{
2475
+ failed: "failed";
2476
+ pending: "pending";
2477
+ verified: "verified";
2478
+ not_started: "not_started";
2479
+ temporary_failure: "temporary_failure";
2480
+ }>;
2481
+ ttl: z.ZodString;
2482
+ type: z.ZodEnum<{
2483
+ MX: "MX";
2484
+ TXT: "TXT";
2485
+ CNAME: "CNAME";
2486
+ CAA: "CAA";
2487
+ }>;
2488
+ value: z.ZodString;
2489
+ }, z.core.$strip>>;
2490
+ region: z.ZodEnum<{
2491
+ "us-east-1": "us-east-1";
2492
+ "eu-west-1": "eu-west-1";
2493
+ "sa-east-1": "sa-east-1";
2494
+ "ap-northeast-1": "ap-northeast-1";
2495
+ }>;
2496
+ status: z.ZodEnum<{
2497
+ failed: "failed";
2498
+ pending: "pending";
2499
+ verified: "verified";
2500
+ partially_verified: "partially_verified";
2501
+ partially_failed: "partially_failed";
2502
+ not_started: "not_started";
2503
+ }>;
2504
+ event: z.ZodObject<{
2505
+ created_at: z.ZodISODateTime;
2506
+ data: z.ZodObject<{
2507
+ capabilities: z.ZodOptional<z.ZodObject<{
2508
+ receiving: z.ZodOptional<z.ZodEnum<{
2509
+ enabled: "enabled";
2510
+ disabled: "disabled";
2511
+ }>>;
2512
+ sending: z.ZodOptional<z.ZodEnum<{
2513
+ enabled: "enabled";
2514
+ disabled: "disabled";
2515
+ }>>;
2516
+ }, z.core.$strip>>;
2517
+ created_at: z.ZodISODateTime;
2518
+ id: z.ZodString;
2519
+ name: z.ZodString;
2520
+ records: z.ZodArray<z.ZodObject<{
2521
+ name: z.ZodString;
2522
+ priority: z.ZodOptional<z.ZodNumber>;
2523
+ record: z.ZodEnum<{
2524
+ SPF: "SPF";
2525
+ DKIM: "DKIM";
2526
+ "Receiving MX": "Receiving MX";
2527
+ Tracking: "Tracking";
2528
+ TrackingCAA: "TrackingCAA";
2529
+ }>;
2530
+ status: z.ZodEnum<{
2531
+ failed: "failed";
2532
+ pending: "pending";
2533
+ verified: "verified";
2534
+ not_started: "not_started";
2535
+ temporary_failure: "temporary_failure";
2536
+ }>;
2537
+ ttl: z.ZodString;
2538
+ type: z.ZodEnum<{
2539
+ MX: "MX";
2540
+ TXT: "TXT";
2541
+ CNAME: "CNAME";
2542
+ CAA: "CAA";
2543
+ }>;
2544
+ value: z.ZodString;
2545
+ }, z.core.$strip>>;
2546
+ region: z.ZodEnum<{
2547
+ "us-east-1": "us-east-1";
2548
+ "eu-west-1": "eu-west-1";
2549
+ "sa-east-1": "sa-east-1";
2550
+ "ap-northeast-1": "ap-northeast-1";
2551
+ }>;
2552
+ status: z.ZodEnum<{
2553
+ failed: "failed";
2554
+ pending: "pending";
2555
+ verified: "verified";
2556
+ partially_verified: "partially_verified";
2557
+ partially_failed: "partially_failed";
2558
+ not_started: "not_started";
2559
+ }>;
2560
+ }, z.core.$catchall<z.ZodJSONSchema>>;
2561
+ type: z.ZodLiteral<"domain.deleted">;
2562
+ }, z.core.$catchall<z.ZodJSONSchema>>;
2563
+ }, z.core.$strip>]>, z.ZodUnion<readonly [z.ZodObject<{
2564
+ createdAt: z.ZodISODateTime;
2565
+ email: z.ZodEmail;
2566
+ id: z.ZodString;
2567
+ origin: z.ZodEnum<{
2568
+ manual: "manual";
2569
+ bounce: "bounce";
2570
+ complaint: "complaint";
2571
+ }>;
2572
+ sourceId: z.ZodNullable<z.ZodString>;
2573
+ event: z.ZodObject<{
2574
+ created_at: z.ZodISODateTime;
2575
+ data: z.ZodObject<{
2576
+ created_at: z.ZodISODateTime;
2577
+ email: z.ZodEmail;
2578
+ id: z.ZodString;
2579
+ origin: z.ZodEnum<{
2580
+ manual: "manual";
2581
+ bounce: "bounce";
2582
+ complaint: "complaint";
2583
+ }>;
2584
+ source_id: z.ZodNullable<z.ZodString>;
2585
+ }, z.core.$catchall<z.ZodJSONSchema>>;
2586
+ type: z.ZodLiteral<"suppression.added">;
2587
+ }, z.core.$catchall<z.ZodJSONSchema>>;
2588
+ }, z.core.$strip>, z.ZodObject<{
2589
+ createdAt: z.ZodISODateTime;
2590
+ email: z.ZodEmail;
2591
+ id: z.ZodString;
2592
+ origin: z.ZodEnum<{
2593
+ manual: "manual";
2594
+ bounce: "bounce";
2595
+ complaint: "complaint";
2596
+ }>;
2597
+ sourceId: z.ZodNullable<z.ZodString>;
2598
+ event: z.ZodObject<{
2599
+ created_at: z.ZodISODateTime;
2600
+ data: z.ZodObject<{
2601
+ created_at: z.ZodISODateTime;
2602
+ email: z.ZodEmail;
2603
+ id: z.ZodString;
2604
+ origin: z.ZodEnum<{
2605
+ manual: "manual";
2606
+ bounce: "bounce";
2607
+ complaint: "complaint";
2608
+ }>;
2609
+ source_id: z.ZodNullable<z.ZodString>;
2610
+ }, z.core.$catchall<z.ZodJSONSchema>>;
2611
+ type: z.ZodLiteral<"suppression.removed">;
2612
+ }, z.core.$catchall<z.ZodJSONSchema>>;
2613
+ }, z.core.$strip>]>]>;
2614
+ };
2615
+ readonly "resend.suppression.added": {
2616
+ readonly configSchema: z.ZodObject<{}, z.core.$strip>;
2617
+ readonly eventSchema: z.ZodObject<{
2618
+ createdAt: z.ZodISODateTime;
2619
+ email: z.ZodEmail;
2620
+ id: z.ZodString;
2621
+ origin: z.ZodEnum<{
2622
+ manual: "manual";
2623
+ bounce: "bounce";
2624
+ complaint: "complaint";
2625
+ }>;
2626
+ sourceId: z.ZodNullable<z.ZodString>;
2627
+ event: z.ZodObject<{
2628
+ created_at: z.ZodISODateTime;
2629
+ data: z.ZodObject<{
2630
+ created_at: z.ZodISODateTime;
2631
+ email: z.ZodEmail;
2632
+ id: z.ZodString;
2633
+ origin: z.ZodEnum<{
2634
+ manual: "manual";
2635
+ bounce: "bounce";
2636
+ complaint: "complaint";
2637
+ }>;
2638
+ source_id: z.ZodNullable<z.ZodString>;
2639
+ }, z.core.$catchall<z.ZodJSONSchema>>;
2640
+ type: z.ZodLiteral<"suppression.added">;
2641
+ }, z.core.$catchall<z.ZodJSONSchema>>;
2642
+ }, z.core.$strip>;
2643
+ };
2644
+ readonly "resend.suppression.event": {
2645
+ readonly configSchema: z.ZodObject<{}, z.core.$strip>;
2646
+ readonly eventSchema: z.ZodUnion<readonly [z.ZodObject<{
2647
+ createdAt: z.ZodISODateTime;
2648
+ email: z.ZodEmail;
2649
+ id: z.ZodString;
2650
+ origin: z.ZodEnum<{
2651
+ manual: "manual";
2652
+ bounce: "bounce";
2653
+ complaint: "complaint";
2654
+ }>;
2655
+ sourceId: z.ZodNullable<z.ZodString>;
2656
+ event: z.ZodObject<{
2657
+ created_at: z.ZodISODateTime;
2658
+ data: z.ZodObject<{
2659
+ created_at: z.ZodISODateTime;
2660
+ email: z.ZodEmail;
2661
+ id: z.ZodString;
2662
+ origin: z.ZodEnum<{
2663
+ manual: "manual";
2664
+ bounce: "bounce";
2665
+ complaint: "complaint";
2666
+ }>;
2667
+ source_id: z.ZodNullable<z.ZodString>;
2668
+ }, z.core.$catchall<z.ZodJSONSchema>>;
2669
+ type: z.ZodLiteral<"suppression.added">;
2670
+ }, z.core.$catchall<z.ZodJSONSchema>>;
2671
+ }, z.core.$strip>, z.ZodObject<{
2672
+ createdAt: z.ZodISODateTime;
2673
+ email: z.ZodEmail;
2674
+ id: z.ZodString;
2675
+ origin: z.ZodEnum<{
2676
+ manual: "manual";
2677
+ bounce: "bounce";
2678
+ complaint: "complaint";
2679
+ }>;
2680
+ sourceId: z.ZodNullable<z.ZodString>;
2681
+ event: z.ZodObject<{
2682
+ created_at: z.ZodISODateTime;
2683
+ data: z.ZodObject<{
2684
+ created_at: z.ZodISODateTime;
2685
+ email: z.ZodEmail;
2686
+ id: z.ZodString;
2687
+ origin: z.ZodEnum<{
2688
+ manual: "manual";
2689
+ bounce: "bounce";
2690
+ complaint: "complaint";
2691
+ }>;
2692
+ source_id: z.ZodNullable<z.ZodString>;
2693
+ }, z.core.$catchall<z.ZodJSONSchema>>;
2694
+ type: z.ZodLiteral<"suppression.removed">;
2695
+ }, z.core.$catchall<z.ZodJSONSchema>>;
2696
+ }, z.core.$strip>]>;
2697
+ };
2698
+ readonly "resend.suppression.removed": {
2699
+ readonly configSchema: z.ZodObject<{}, z.core.$strip>;
2700
+ readonly eventSchema: z.ZodObject<{
2701
+ createdAt: z.ZodISODateTime;
2702
+ email: z.ZodEmail;
2703
+ id: z.ZodString;
2704
+ origin: z.ZodEnum<{
2705
+ manual: "manual";
2706
+ bounce: "bounce";
2707
+ complaint: "complaint";
2708
+ }>;
2709
+ sourceId: z.ZodNullable<z.ZodString>;
2710
+ event: z.ZodObject<{
2711
+ created_at: z.ZodISODateTime;
2712
+ data: z.ZodObject<{
2713
+ created_at: z.ZodISODateTime;
2714
+ email: z.ZodEmail;
2715
+ id: z.ZodString;
2716
+ origin: z.ZodEnum<{
2717
+ manual: "manual";
2718
+ bounce: "bounce";
2719
+ complaint: "complaint";
2720
+ }>;
2721
+ source_id: z.ZodNullable<z.ZodString>;
2722
+ }, z.core.$catchall<z.ZodJSONSchema>>;
2723
+ type: z.ZodLiteral<"suppression.removed">;
2724
+ }, z.core.$catchall<z.ZodJSONSchema>>;
705
2725
  }, z.core.$strip>;
706
2726
  };
707
2727
  };