@better-webhook/resend 0.1.1

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.
@@ -0,0 +1,596 @@
1
+ import * as _better_webhook_core from '@better-webhook/core';
2
+ import * as zod_v4_core from 'zod/v4/core';
3
+ import * as zod from 'zod';
4
+ import { z } from 'zod';
5
+
6
+ declare const ResendEmailSentEventSchema: z.ZodObject<{
7
+ type: z.ZodLiteral<"email.sent">;
8
+ created_at: z.ZodString;
9
+ data: z.ZodObject<{
10
+ broadcast_id: z.ZodOptional<z.ZodString>;
11
+ created_at: z.ZodString;
12
+ email_id: z.ZodString;
13
+ from: z.ZodString;
14
+ to: z.ZodArray<z.ZodString>;
15
+ subject: z.ZodString;
16
+ template_id: z.ZodOptional<z.ZodString>;
17
+ tags: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
18
+ }, z.core.$loose>;
19
+ }, z.core.$loose>;
20
+ declare const ResendEmailScheduledEventSchema: z.ZodObject<{
21
+ type: z.ZodLiteral<"email.scheduled">;
22
+ created_at: z.ZodString;
23
+ data: z.ZodObject<{
24
+ broadcast_id: z.ZodOptional<z.ZodString>;
25
+ created_at: z.ZodString;
26
+ email_id: z.ZodString;
27
+ from: z.ZodString;
28
+ to: z.ZodArray<z.ZodString>;
29
+ subject: z.ZodString;
30
+ template_id: z.ZodOptional<z.ZodString>;
31
+ tags: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
32
+ }, z.core.$loose>;
33
+ }, z.core.$loose>;
34
+ declare const ResendEmailDeliveredEventSchema: z.ZodObject<{
35
+ type: z.ZodLiteral<"email.delivered">;
36
+ created_at: z.ZodString;
37
+ data: z.ZodObject<{
38
+ broadcast_id: z.ZodOptional<z.ZodString>;
39
+ created_at: z.ZodString;
40
+ email_id: z.ZodString;
41
+ from: z.ZodString;
42
+ to: z.ZodArray<z.ZodString>;
43
+ subject: z.ZodString;
44
+ template_id: z.ZodOptional<z.ZodString>;
45
+ tags: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
46
+ }, z.core.$loose>;
47
+ }, z.core.$loose>;
48
+ declare const ResendEmailDeliveryDelayedEventSchema: z.ZodObject<{
49
+ type: z.ZodLiteral<"email.delivery_delayed">;
50
+ created_at: z.ZodString;
51
+ data: z.ZodObject<{
52
+ broadcast_id: z.ZodOptional<z.ZodString>;
53
+ created_at: z.ZodString;
54
+ email_id: z.ZodString;
55
+ from: z.ZodString;
56
+ to: z.ZodArray<z.ZodString>;
57
+ subject: z.ZodString;
58
+ template_id: z.ZodOptional<z.ZodString>;
59
+ tags: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
60
+ }, z.core.$loose>;
61
+ }, z.core.$loose>;
62
+ declare const ResendEmailComplainedEventSchema: z.ZodObject<{
63
+ type: z.ZodLiteral<"email.complained">;
64
+ created_at: z.ZodString;
65
+ data: z.ZodObject<{
66
+ broadcast_id: z.ZodOptional<z.ZodString>;
67
+ created_at: z.ZodString;
68
+ email_id: z.ZodString;
69
+ from: z.ZodString;
70
+ to: z.ZodArray<z.ZodString>;
71
+ subject: z.ZodString;
72
+ template_id: z.ZodOptional<z.ZodString>;
73
+ tags: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
74
+ }, z.core.$loose>;
75
+ }, z.core.$loose>;
76
+ declare const ResendEmailBouncedEventSchema: z.ZodObject<{
77
+ type: z.ZodLiteral<"email.bounced">;
78
+ created_at: z.ZodString;
79
+ data: z.ZodObject<{
80
+ broadcast_id: z.ZodOptional<z.ZodString>;
81
+ created_at: z.ZodString;
82
+ email_id: z.ZodString;
83
+ from: z.ZodString;
84
+ to: z.ZodArray<z.ZodString>;
85
+ subject: z.ZodString;
86
+ template_id: z.ZodOptional<z.ZodString>;
87
+ tags: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
88
+ bounce: z.ZodObject<{
89
+ diagnosticCode: z.ZodOptional<z.ZodArray<z.ZodString>>;
90
+ message: z.ZodString;
91
+ subType: z.ZodString;
92
+ type: z.ZodString;
93
+ }, z.core.$loose>;
94
+ }, z.core.$loose>;
95
+ }, z.core.$loose>;
96
+ declare const ResendEmailOpenedEventSchema: z.ZodObject<{
97
+ type: z.ZodLiteral<"email.opened">;
98
+ created_at: z.ZodString;
99
+ data: z.ZodObject<{
100
+ broadcast_id: z.ZodOptional<z.ZodString>;
101
+ created_at: z.ZodString;
102
+ email_id: z.ZodString;
103
+ from: z.ZodString;
104
+ to: z.ZodArray<z.ZodString>;
105
+ subject: z.ZodString;
106
+ template_id: z.ZodOptional<z.ZodString>;
107
+ tags: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
108
+ }, z.core.$loose>;
109
+ }, z.core.$loose>;
110
+ declare const ResendEmailClickedEventSchema: z.ZodObject<{
111
+ type: z.ZodLiteral<"email.clicked">;
112
+ created_at: z.ZodString;
113
+ data: z.ZodObject<{
114
+ broadcast_id: z.ZodOptional<z.ZodString>;
115
+ created_at: z.ZodString;
116
+ email_id: z.ZodString;
117
+ from: z.ZodString;
118
+ to: z.ZodArray<z.ZodString>;
119
+ subject: z.ZodString;
120
+ template_id: z.ZodOptional<z.ZodString>;
121
+ tags: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
122
+ click: z.ZodObject<{
123
+ ipAddress: z.ZodString;
124
+ link: z.ZodString;
125
+ timestamp: z.ZodString;
126
+ userAgent: z.ZodString;
127
+ }, z.core.$loose>;
128
+ }, z.core.$loose>;
129
+ }, z.core.$loose>;
130
+ declare const ResendEmailReceivedEventSchema: z.ZodObject<{
131
+ type: z.ZodLiteral<"email.received">;
132
+ created_at: z.ZodString;
133
+ data: z.ZodObject<{
134
+ email_id: z.ZodString;
135
+ created_at: z.ZodString;
136
+ from: z.ZodString;
137
+ to: z.ZodArray<z.ZodString>;
138
+ bcc: z.ZodOptional<z.ZodArray<z.ZodString>>;
139
+ cc: z.ZodOptional<z.ZodArray<z.ZodString>>;
140
+ message_id: z.ZodString;
141
+ subject: z.ZodDefault<z.ZodString>;
142
+ attachments: z.ZodOptional<z.ZodArray<z.ZodObject<{
143
+ id: z.ZodString;
144
+ filename: z.ZodNullable<z.ZodString>;
145
+ content_type: z.ZodString;
146
+ content_disposition: z.ZodNullable<z.ZodString>;
147
+ content_id: z.ZodNullable<z.ZodString>;
148
+ }, z.core.$loose>>>;
149
+ }, z.core.$loose>;
150
+ }, z.core.$loose>;
151
+ declare const ResendEmailFailedEventSchema: z.ZodObject<{
152
+ type: z.ZodLiteral<"email.failed">;
153
+ created_at: z.ZodString;
154
+ data: z.ZodObject<{
155
+ broadcast_id: z.ZodOptional<z.ZodString>;
156
+ created_at: z.ZodString;
157
+ email_id: z.ZodString;
158
+ from: z.ZodString;
159
+ to: z.ZodArray<z.ZodString>;
160
+ subject: z.ZodString;
161
+ template_id: z.ZodOptional<z.ZodString>;
162
+ tags: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
163
+ failed: z.ZodObject<{
164
+ reason: z.ZodString;
165
+ }, z.core.$loose>;
166
+ }, z.core.$loose>;
167
+ }, z.core.$loose>;
168
+ declare const ResendEmailSuppressedEventSchema: z.ZodObject<{
169
+ type: z.ZodLiteral<"email.suppressed">;
170
+ created_at: z.ZodString;
171
+ data: z.ZodObject<{
172
+ broadcast_id: z.ZodOptional<z.ZodString>;
173
+ created_at: z.ZodString;
174
+ email_id: z.ZodString;
175
+ from: z.ZodString;
176
+ to: z.ZodArray<z.ZodString>;
177
+ subject: z.ZodString;
178
+ template_id: z.ZodOptional<z.ZodString>;
179
+ tags: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
180
+ suppressed: z.ZodObject<{
181
+ message: z.ZodString;
182
+ type: z.ZodString;
183
+ }, z.core.$loose>;
184
+ }, z.core.$loose>;
185
+ }, z.core.$loose>;
186
+ declare const ResendContactCreatedEventSchema: z.ZodObject<{
187
+ type: z.ZodLiteral<"contact.created">;
188
+ created_at: z.ZodString;
189
+ data: z.ZodObject<{
190
+ id: z.ZodString;
191
+ audience_id: z.ZodOptional<z.ZodString>;
192
+ segment_ids: z.ZodArray<z.ZodString>;
193
+ created_at: z.ZodString;
194
+ updated_at: z.ZodString;
195
+ email: z.ZodString;
196
+ first_name: z.ZodOptional<z.ZodString>;
197
+ last_name: z.ZodOptional<z.ZodString>;
198
+ unsubscribed: z.ZodBoolean;
199
+ }, z.core.$loose>;
200
+ }, z.core.$loose>;
201
+ declare const ResendContactUpdatedEventSchema: z.ZodObject<{
202
+ type: z.ZodLiteral<"contact.updated">;
203
+ created_at: z.ZodString;
204
+ data: z.ZodObject<{
205
+ id: z.ZodString;
206
+ audience_id: z.ZodOptional<z.ZodString>;
207
+ segment_ids: z.ZodArray<z.ZodString>;
208
+ created_at: z.ZodString;
209
+ updated_at: z.ZodString;
210
+ email: z.ZodString;
211
+ first_name: z.ZodOptional<z.ZodString>;
212
+ last_name: z.ZodOptional<z.ZodString>;
213
+ unsubscribed: z.ZodBoolean;
214
+ }, z.core.$loose>;
215
+ }, z.core.$loose>;
216
+ declare const ResendContactDeletedEventSchema: z.ZodObject<{
217
+ type: z.ZodLiteral<"contact.deleted">;
218
+ created_at: z.ZodString;
219
+ data: z.ZodObject<{
220
+ id: z.ZodString;
221
+ audience_id: z.ZodOptional<z.ZodString>;
222
+ created_at: z.ZodString;
223
+ updated_at: z.ZodString;
224
+ email: z.ZodString;
225
+ first_name: z.ZodOptional<z.ZodString>;
226
+ last_name: z.ZodOptional<z.ZodString>;
227
+ segment_ids: z.ZodOptional<z.ZodArray<z.ZodString>>;
228
+ unsubscribed: z.ZodOptional<z.ZodBoolean>;
229
+ }, z.core.$loose>;
230
+ }, z.core.$loose>;
231
+ declare const ResendDomainCreatedEventSchema: z.ZodObject<{
232
+ type: z.ZodLiteral<"domain.created">;
233
+ created_at: z.ZodString;
234
+ data: z.ZodObject<{
235
+ id: z.ZodString;
236
+ name: z.ZodString;
237
+ status: z.ZodString;
238
+ created_at: z.ZodString;
239
+ region: z.ZodString;
240
+ records: z.ZodArray<z.ZodObject<{
241
+ record: z.ZodString;
242
+ name: z.ZodString;
243
+ type: z.ZodString;
244
+ value: z.ZodString;
245
+ ttl: z.ZodString;
246
+ status: z.ZodString;
247
+ priority: z.ZodOptional<z.ZodNumber>;
248
+ }, z.core.$loose>>;
249
+ }, z.core.$loose>;
250
+ }, z.core.$loose>;
251
+ declare const ResendDomainUpdatedEventSchema: z.ZodObject<{
252
+ type: z.ZodLiteral<"domain.updated">;
253
+ created_at: z.ZodString;
254
+ data: z.ZodObject<{
255
+ id: z.ZodString;
256
+ name: z.ZodString;
257
+ status: z.ZodString;
258
+ created_at: z.ZodString;
259
+ region: z.ZodString;
260
+ records: z.ZodArray<z.ZodObject<{
261
+ record: z.ZodString;
262
+ name: z.ZodString;
263
+ type: z.ZodString;
264
+ value: z.ZodString;
265
+ ttl: z.ZodString;
266
+ status: z.ZodString;
267
+ priority: z.ZodOptional<z.ZodNumber>;
268
+ }, z.core.$loose>>;
269
+ }, z.core.$loose>;
270
+ }, z.core.$loose>;
271
+ declare const ResendDomainDeletedEventSchema: z.ZodObject<{
272
+ type: z.ZodLiteral<"domain.deleted">;
273
+ created_at: z.ZodString;
274
+ data: z.ZodObject<{
275
+ id: z.ZodString;
276
+ name: z.ZodString;
277
+ status: z.ZodString;
278
+ created_at: z.ZodString;
279
+ region: z.ZodString;
280
+ records: z.ZodArray<z.ZodObject<{
281
+ record: z.ZodString;
282
+ name: z.ZodString;
283
+ type: z.ZodString;
284
+ value: z.ZodString;
285
+ ttl: z.ZodString;
286
+ status: z.ZodString;
287
+ priority: z.ZodOptional<z.ZodNumber>;
288
+ }, z.core.$loose>>;
289
+ }, z.core.$loose>;
290
+ }, z.core.$loose>;
291
+ type ResendEmailSentEvent = z.infer<typeof ResendEmailSentEventSchema>;
292
+ type ResendEmailScheduledEvent = z.infer<typeof ResendEmailScheduledEventSchema>;
293
+ type ResendEmailDeliveredEvent = z.infer<typeof ResendEmailDeliveredEventSchema>;
294
+ type ResendEmailDeliveryDelayedEvent = z.infer<typeof ResendEmailDeliveryDelayedEventSchema>;
295
+ type ResendEmailComplainedEvent = z.infer<typeof ResendEmailComplainedEventSchema>;
296
+ type ResendEmailBouncedEvent = z.infer<typeof ResendEmailBouncedEventSchema>;
297
+ type ResendEmailOpenedEvent = z.infer<typeof ResendEmailOpenedEventSchema>;
298
+ type ResendEmailClickedEvent = z.infer<typeof ResendEmailClickedEventSchema>;
299
+ type ResendEmailReceivedEvent = z.infer<typeof ResendEmailReceivedEventSchema>;
300
+ type ResendEmailFailedEvent = z.infer<typeof ResendEmailFailedEventSchema>;
301
+ type ResendEmailSuppressedEvent = z.infer<typeof ResendEmailSuppressedEventSchema>;
302
+ type ResendContactCreatedEvent = z.infer<typeof ResendContactCreatedEventSchema>;
303
+ type ResendContactUpdatedEvent = z.infer<typeof ResendContactUpdatedEventSchema>;
304
+ type ResendContactDeletedEvent = z.infer<typeof ResendContactDeletedEventSchema>;
305
+ type ResendDomainCreatedEvent = z.infer<typeof ResendDomainCreatedEventSchema>;
306
+ type ResendDomainUpdatedEvent = z.infer<typeof ResendDomainUpdatedEventSchema>;
307
+ type ResendDomainDeletedEvent = z.infer<typeof ResendDomainDeletedEventSchema>;
308
+
309
+ type ResendProvider = "resend";
310
+ declare const email_sent: _better_webhook_core.WebhookEvent<"email.sent", zod.ZodObject<{
311
+ type: zod.ZodLiteral<"email.sent">;
312
+ created_at: zod.ZodString;
313
+ data: zod.ZodObject<{
314
+ broadcast_id: zod.ZodOptional<zod.ZodString>;
315
+ created_at: zod.ZodString;
316
+ email_id: zod.ZodString;
317
+ from: zod.ZodString;
318
+ to: zod.ZodArray<zod.ZodString>;
319
+ subject: zod.ZodString;
320
+ template_id: zod.ZodOptional<zod.ZodString>;
321
+ tags: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodString>>;
322
+ }, zod_v4_core.$loose>;
323
+ }, zod_v4_core.$loose>, "resend">;
324
+ declare const email_scheduled: _better_webhook_core.WebhookEvent<"email.scheduled", zod.ZodObject<{
325
+ type: zod.ZodLiteral<"email.scheduled">;
326
+ created_at: zod.ZodString;
327
+ data: zod.ZodObject<{
328
+ broadcast_id: zod.ZodOptional<zod.ZodString>;
329
+ created_at: zod.ZodString;
330
+ email_id: zod.ZodString;
331
+ from: zod.ZodString;
332
+ to: zod.ZodArray<zod.ZodString>;
333
+ subject: zod.ZodString;
334
+ template_id: zod.ZodOptional<zod.ZodString>;
335
+ tags: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodString>>;
336
+ }, zod_v4_core.$loose>;
337
+ }, zod_v4_core.$loose>, "resend">;
338
+ declare const email_delivered: _better_webhook_core.WebhookEvent<"email.delivered", zod.ZodObject<{
339
+ type: zod.ZodLiteral<"email.delivered">;
340
+ created_at: zod.ZodString;
341
+ data: zod.ZodObject<{
342
+ broadcast_id: zod.ZodOptional<zod.ZodString>;
343
+ created_at: zod.ZodString;
344
+ email_id: zod.ZodString;
345
+ from: zod.ZodString;
346
+ to: zod.ZodArray<zod.ZodString>;
347
+ subject: zod.ZodString;
348
+ template_id: zod.ZodOptional<zod.ZodString>;
349
+ tags: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodString>>;
350
+ }, zod_v4_core.$loose>;
351
+ }, zod_v4_core.$loose>, "resend">;
352
+ declare const email_delivery_delayed: _better_webhook_core.WebhookEvent<"email.delivery_delayed", zod.ZodObject<{
353
+ type: zod.ZodLiteral<"email.delivery_delayed">;
354
+ created_at: zod.ZodString;
355
+ data: zod.ZodObject<{
356
+ broadcast_id: zod.ZodOptional<zod.ZodString>;
357
+ created_at: zod.ZodString;
358
+ email_id: zod.ZodString;
359
+ from: zod.ZodString;
360
+ to: zod.ZodArray<zod.ZodString>;
361
+ subject: zod.ZodString;
362
+ template_id: zod.ZodOptional<zod.ZodString>;
363
+ tags: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodString>>;
364
+ }, zod_v4_core.$loose>;
365
+ }, zod_v4_core.$loose>, "resend">;
366
+ declare const email_complained: _better_webhook_core.WebhookEvent<"email.complained", zod.ZodObject<{
367
+ type: zod.ZodLiteral<"email.complained">;
368
+ created_at: zod.ZodString;
369
+ data: zod.ZodObject<{
370
+ broadcast_id: zod.ZodOptional<zod.ZodString>;
371
+ created_at: zod.ZodString;
372
+ email_id: zod.ZodString;
373
+ from: zod.ZodString;
374
+ to: zod.ZodArray<zod.ZodString>;
375
+ subject: zod.ZodString;
376
+ template_id: zod.ZodOptional<zod.ZodString>;
377
+ tags: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodString>>;
378
+ }, zod_v4_core.$loose>;
379
+ }, zod_v4_core.$loose>, "resend">;
380
+ declare const email_bounced: _better_webhook_core.WebhookEvent<"email.bounced", zod.ZodObject<{
381
+ type: zod.ZodLiteral<"email.bounced">;
382
+ created_at: zod.ZodString;
383
+ data: zod.ZodObject<{
384
+ broadcast_id: zod.ZodOptional<zod.ZodString>;
385
+ created_at: zod.ZodString;
386
+ email_id: zod.ZodString;
387
+ from: zod.ZodString;
388
+ to: zod.ZodArray<zod.ZodString>;
389
+ subject: zod.ZodString;
390
+ template_id: zod.ZodOptional<zod.ZodString>;
391
+ tags: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodString>>;
392
+ bounce: zod.ZodObject<{
393
+ diagnosticCode: zod.ZodOptional<zod.ZodArray<zod.ZodString>>;
394
+ message: zod.ZodString;
395
+ subType: zod.ZodString;
396
+ type: zod.ZodString;
397
+ }, zod_v4_core.$loose>;
398
+ }, zod_v4_core.$loose>;
399
+ }, zod_v4_core.$loose>, "resend">;
400
+ declare const email_opened: _better_webhook_core.WebhookEvent<"email.opened", zod.ZodObject<{
401
+ type: zod.ZodLiteral<"email.opened">;
402
+ created_at: zod.ZodString;
403
+ data: zod.ZodObject<{
404
+ broadcast_id: zod.ZodOptional<zod.ZodString>;
405
+ created_at: zod.ZodString;
406
+ email_id: zod.ZodString;
407
+ from: zod.ZodString;
408
+ to: zod.ZodArray<zod.ZodString>;
409
+ subject: zod.ZodString;
410
+ template_id: zod.ZodOptional<zod.ZodString>;
411
+ tags: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodString>>;
412
+ }, zod_v4_core.$loose>;
413
+ }, zod_v4_core.$loose>, "resend">;
414
+ declare const email_clicked: _better_webhook_core.WebhookEvent<"email.clicked", zod.ZodObject<{
415
+ type: zod.ZodLiteral<"email.clicked">;
416
+ created_at: zod.ZodString;
417
+ data: zod.ZodObject<{
418
+ broadcast_id: zod.ZodOptional<zod.ZodString>;
419
+ created_at: zod.ZodString;
420
+ email_id: zod.ZodString;
421
+ from: zod.ZodString;
422
+ to: zod.ZodArray<zod.ZodString>;
423
+ subject: zod.ZodString;
424
+ template_id: zod.ZodOptional<zod.ZodString>;
425
+ tags: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodString>>;
426
+ click: zod.ZodObject<{
427
+ ipAddress: zod.ZodString;
428
+ link: zod.ZodString;
429
+ timestamp: zod.ZodString;
430
+ userAgent: zod.ZodString;
431
+ }, zod_v4_core.$loose>;
432
+ }, zod_v4_core.$loose>;
433
+ }, zod_v4_core.$loose>, "resend">;
434
+ declare const email_received: _better_webhook_core.WebhookEvent<"email.received", zod.ZodObject<{
435
+ type: zod.ZodLiteral<"email.received">;
436
+ created_at: zod.ZodString;
437
+ data: zod.ZodObject<{
438
+ email_id: zod.ZodString;
439
+ created_at: zod.ZodString;
440
+ from: zod.ZodString;
441
+ to: zod.ZodArray<zod.ZodString>;
442
+ bcc: zod.ZodOptional<zod.ZodArray<zod.ZodString>>;
443
+ cc: zod.ZodOptional<zod.ZodArray<zod.ZodString>>;
444
+ message_id: zod.ZodString;
445
+ subject: zod.ZodDefault<zod.ZodString>;
446
+ attachments: zod.ZodOptional<zod.ZodArray<zod.ZodObject<{
447
+ id: zod.ZodString;
448
+ filename: zod.ZodNullable<zod.ZodString>;
449
+ content_type: zod.ZodString;
450
+ content_disposition: zod.ZodNullable<zod.ZodString>;
451
+ content_id: zod.ZodNullable<zod.ZodString>;
452
+ }, zod_v4_core.$loose>>>;
453
+ }, zod_v4_core.$loose>;
454
+ }, zod_v4_core.$loose>, "resend">;
455
+ declare const email_failed: _better_webhook_core.WebhookEvent<"email.failed", zod.ZodObject<{
456
+ type: zod.ZodLiteral<"email.failed">;
457
+ created_at: zod.ZodString;
458
+ data: zod.ZodObject<{
459
+ broadcast_id: zod.ZodOptional<zod.ZodString>;
460
+ created_at: zod.ZodString;
461
+ email_id: zod.ZodString;
462
+ from: zod.ZodString;
463
+ to: zod.ZodArray<zod.ZodString>;
464
+ subject: zod.ZodString;
465
+ template_id: zod.ZodOptional<zod.ZodString>;
466
+ tags: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodString>>;
467
+ failed: zod.ZodObject<{
468
+ reason: zod.ZodString;
469
+ }, zod_v4_core.$loose>;
470
+ }, zod_v4_core.$loose>;
471
+ }, zod_v4_core.$loose>, "resend">;
472
+ declare const email_suppressed: _better_webhook_core.WebhookEvent<"email.suppressed", zod.ZodObject<{
473
+ type: zod.ZodLiteral<"email.suppressed">;
474
+ created_at: zod.ZodString;
475
+ data: zod.ZodObject<{
476
+ broadcast_id: zod.ZodOptional<zod.ZodString>;
477
+ created_at: zod.ZodString;
478
+ email_id: zod.ZodString;
479
+ from: zod.ZodString;
480
+ to: zod.ZodArray<zod.ZodString>;
481
+ subject: zod.ZodString;
482
+ template_id: zod.ZodOptional<zod.ZodString>;
483
+ tags: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodString>>;
484
+ suppressed: zod.ZodObject<{
485
+ message: zod.ZodString;
486
+ type: zod.ZodString;
487
+ }, zod_v4_core.$loose>;
488
+ }, zod_v4_core.$loose>;
489
+ }, zod_v4_core.$loose>, "resend">;
490
+ declare const contact_created: _better_webhook_core.WebhookEvent<"contact.created", zod.ZodObject<{
491
+ type: zod.ZodLiteral<"contact.created">;
492
+ created_at: zod.ZodString;
493
+ data: zod.ZodObject<{
494
+ id: zod.ZodString;
495
+ audience_id: zod.ZodOptional<zod.ZodString>;
496
+ segment_ids: zod.ZodArray<zod.ZodString>;
497
+ created_at: zod.ZodString;
498
+ updated_at: zod.ZodString;
499
+ email: zod.ZodString;
500
+ first_name: zod.ZodOptional<zod.ZodString>;
501
+ last_name: zod.ZodOptional<zod.ZodString>;
502
+ unsubscribed: zod.ZodBoolean;
503
+ }, zod_v4_core.$loose>;
504
+ }, zod_v4_core.$loose>, "resend">;
505
+ declare const contact_updated: _better_webhook_core.WebhookEvent<"contact.updated", zod.ZodObject<{
506
+ type: zod.ZodLiteral<"contact.updated">;
507
+ created_at: zod.ZodString;
508
+ data: zod.ZodObject<{
509
+ id: zod.ZodString;
510
+ audience_id: zod.ZodOptional<zod.ZodString>;
511
+ segment_ids: zod.ZodArray<zod.ZodString>;
512
+ created_at: zod.ZodString;
513
+ updated_at: zod.ZodString;
514
+ email: zod.ZodString;
515
+ first_name: zod.ZodOptional<zod.ZodString>;
516
+ last_name: zod.ZodOptional<zod.ZodString>;
517
+ unsubscribed: zod.ZodBoolean;
518
+ }, zod_v4_core.$loose>;
519
+ }, zod_v4_core.$loose>, "resend">;
520
+ declare const contact_deleted: _better_webhook_core.WebhookEvent<"contact.deleted", zod.ZodObject<{
521
+ type: zod.ZodLiteral<"contact.deleted">;
522
+ created_at: zod.ZodString;
523
+ data: zod.ZodObject<{
524
+ id: zod.ZodString;
525
+ audience_id: zod.ZodOptional<zod.ZodString>;
526
+ created_at: zod.ZodString;
527
+ updated_at: zod.ZodString;
528
+ email: zod.ZodString;
529
+ first_name: zod.ZodOptional<zod.ZodString>;
530
+ last_name: zod.ZodOptional<zod.ZodString>;
531
+ segment_ids: zod.ZodOptional<zod.ZodArray<zod.ZodString>>;
532
+ unsubscribed: zod.ZodOptional<zod.ZodBoolean>;
533
+ }, zod_v4_core.$loose>;
534
+ }, zod_v4_core.$loose>, "resend">;
535
+ declare const domain_created: _better_webhook_core.WebhookEvent<"domain.created", zod.ZodObject<{
536
+ type: zod.ZodLiteral<"domain.created">;
537
+ created_at: zod.ZodString;
538
+ data: zod.ZodObject<{
539
+ id: zod.ZodString;
540
+ name: zod.ZodString;
541
+ status: zod.ZodString;
542
+ created_at: zod.ZodString;
543
+ region: zod.ZodString;
544
+ records: zod.ZodArray<zod.ZodObject<{
545
+ record: zod.ZodString;
546
+ name: zod.ZodString;
547
+ type: zod.ZodString;
548
+ value: zod.ZodString;
549
+ ttl: zod.ZodString;
550
+ status: zod.ZodString;
551
+ priority: zod.ZodOptional<zod.ZodNumber>;
552
+ }, zod_v4_core.$loose>>;
553
+ }, zod_v4_core.$loose>;
554
+ }, zod_v4_core.$loose>, "resend">;
555
+ declare const domain_updated: _better_webhook_core.WebhookEvent<"domain.updated", zod.ZodObject<{
556
+ type: zod.ZodLiteral<"domain.updated">;
557
+ created_at: zod.ZodString;
558
+ data: zod.ZodObject<{
559
+ id: zod.ZodString;
560
+ name: zod.ZodString;
561
+ status: zod.ZodString;
562
+ created_at: zod.ZodString;
563
+ region: zod.ZodString;
564
+ records: zod.ZodArray<zod.ZodObject<{
565
+ record: zod.ZodString;
566
+ name: zod.ZodString;
567
+ type: zod.ZodString;
568
+ value: zod.ZodString;
569
+ ttl: zod.ZodString;
570
+ status: zod.ZodString;
571
+ priority: zod.ZodOptional<zod.ZodNumber>;
572
+ }, zod_v4_core.$loose>>;
573
+ }, zod_v4_core.$loose>;
574
+ }, zod_v4_core.$loose>, "resend">;
575
+ declare const domain_deleted: _better_webhook_core.WebhookEvent<"domain.deleted", zod.ZodObject<{
576
+ type: zod.ZodLiteral<"domain.deleted">;
577
+ created_at: zod.ZodString;
578
+ data: zod.ZodObject<{
579
+ id: zod.ZodString;
580
+ name: zod.ZodString;
581
+ status: zod.ZodString;
582
+ created_at: zod.ZodString;
583
+ region: zod.ZodString;
584
+ records: zod.ZodArray<zod.ZodObject<{
585
+ record: zod.ZodString;
586
+ name: zod.ZodString;
587
+ type: zod.ZodString;
588
+ value: zod.ZodString;
589
+ ttl: zod.ZodString;
590
+ status: zod.ZodString;
591
+ priority: zod.ZodOptional<zod.ZodNumber>;
592
+ }, zod_v4_core.$loose>>;
593
+ }, zod_v4_core.$loose>;
594
+ }, zod_v4_core.$loose>, "resend">;
595
+
596
+ export { type ResendContactCreatedEvent, type ResendContactDeletedEvent, type ResendContactUpdatedEvent, type ResendDomainCreatedEvent, type ResendDomainDeletedEvent, type ResendDomainUpdatedEvent, type ResendEmailBouncedEvent, type ResendEmailClickedEvent, type ResendEmailComplainedEvent, type ResendEmailDeliveredEvent, type ResendEmailDeliveryDelayedEvent, type ResendEmailFailedEvent, type ResendEmailOpenedEvent, type ResendEmailReceivedEvent, type ResendEmailScheduledEvent, type ResendEmailSentEvent, type ResendEmailSuppressedEvent, type ResendProvider, contact_created, contact_deleted, contact_updated, domain_created, domain_deleted, domain_updated, email_bounced, email_clicked, email_complained, email_delivered, email_delivery_delayed, email_failed, email_opened, email_received, email_scheduled, email_sent, email_suppressed };