@automate.ax/integration-contracts 0.55.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (136) hide show
  1. package/dist/airtable/api.d.ts +19 -0
  2. package/dist/airtable/api.js +44 -0
  3. package/dist/airtable/index.d.ts +353 -0
  4. package/dist/airtable/index.js +32 -0
  5. package/dist/airtable/schemas.d.ts +716 -0
  6. package/dist/airtable/schemas.js +184 -0
  7. package/dist/asana/api.d.ts +70 -0
  8. package/dist/asana/api.js +119 -0
  9. package/dist/asana/index.d.ts +384 -0
  10. package/dist/asana/index.js +38 -0
  11. package/dist/asana/schemas.d.ts +1060 -0
  12. package/dist/asana/schemas.js +512 -0
  13. package/dist/brevo/api.d.ts +31 -0
  14. package/dist/brevo/api.js +64 -0
  15. package/dist/brevo/index.d.ts +822 -0
  16. package/dist/brevo/index.js +51 -0
  17. package/dist/brevo/schemas.d.ts +1217 -0
  18. package/dist/brevo/schemas.js +332 -0
  19. package/dist/github/index.d.ts +37 -0
  20. package/dist/github/index.js +106 -0
  21. package/dist/github/schemas.d.ts +8014 -0
  22. package/dist/github/schemas.js +113 -0
  23. package/dist/gmail/gmail.d.ts +172 -0
  24. package/dist/gmail/gmail.js +405 -0
  25. package/dist/gmail/index.d.ts +262 -0
  26. package/dist/gmail/index.js +23 -0
  27. package/dist/gmail/schemas.d.ts +444 -0
  28. package/dist/gmail/schemas.js +242 -0
  29. package/dist/google-calendar/event-schemas.d.ts +117 -0
  30. package/dist/google-calendar/event-schemas.js +13 -0
  31. package/dist/google-calendar/google-calendar.d.ts +147 -0
  32. package/dist/google-calendar/google-calendar.js +583 -0
  33. package/dist/google-calendar/index.d.ts +365 -0
  34. package/dist/google-calendar/index.js +24 -0
  35. package/dist/google-calendar/schemas.d.ts +592 -0
  36. package/dist/google-calendar/schemas.js +379 -0
  37. package/dist/google-forms/event-schemas.d.ts +105 -0
  38. package/dist/google-forms/event-schemas.js +20 -0
  39. package/dist/google-forms/google-forms.d.ts +243 -0
  40. package/dist/google-forms/google-forms.js +581 -0
  41. package/dist/google-forms/index.d.ts +141 -0
  42. package/dist/google-forms/index.js +20 -0
  43. package/dist/google-forms/schemas.d.ts +618 -0
  44. package/dist/google-forms/schemas.js +383 -0
  45. package/dist/linear/api.d.ts +63 -0
  46. package/dist/linear/api.js +88 -0
  47. package/dist/linear/index.d.ts +1338 -0
  48. package/dist/linear/index.js +55 -0
  49. package/dist/linear/schemas.d.ts +1795 -0
  50. package/dist/linear/schemas.js +760 -0
  51. package/dist/outlook/graph.d.ts +34 -0
  52. package/dist/outlook/graph.js +98 -0
  53. package/dist/outlook/index.d.ts +115 -0
  54. package/dist/outlook/index.js +11 -0
  55. package/dist/outlook/schemas.d.ts +529 -0
  56. package/dist/outlook/schemas.js +312 -0
  57. package/dist/resend/index.d.ts +707 -0
  58. package/dist/resend/index.js +54 -0
  59. package/dist/resend/schemas.d.ts +1033 -0
  60. package/dist/resend/schemas.js +377 -0
  61. package/dist/slack/index.d.ts +151 -0
  62. package/dist/slack/index.js +22 -0
  63. package/dist/slack/schemas.d.ts +641 -0
  64. package/dist/slack/schemas.js +581 -0
  65. package/dist/teams/graph.d.ts +33 -0
  66. package/dist/teams/graph.js +95 -0
  67. package/dist/teams/index.d.ts +164 -0
  68. package/dist/teams/index.js +21 -0
  69. package/dist/teams/schemas.d.ts +675 -0
  70. package/dist/teams/schemas.js +365 -0
  71. package/dist/trello/api.d.ts +69 -0
  72. package/dist/trello/api.js +140 -0
  73. package/dist/trello/event-schemas.d.ts +1101 -0
  74. package/dist/trello/event-schemas.js +233 -0
  75. package/dist/trello/index.d.ts +721 -0
  76. package/dist/trello/index.js +35 -0
  77. package/dist/trello/schemas.d.ts +283 -0
  78. package/dist/trello/schemas.js +401 -0
  79. package/dist/triggers.d.ts +26 -0
  80. package/dist/triggers.js +33 -0
  81. package/dist/vercel/index.d.ts +1065 -0
  82. package/dist/vercel/index.js +114 -0
  83. package/dist/vercel/schemas.d.ts +1518 -0
  84. package/dist/vercel/schemas.js +335 -0
  85. package/dist/whatsapp/api.d.ts +62 -0
  86. package/dist/whatsapp/api.js +121 -0
  87. package/dist/whatsapp/index.d.ts +614 -0
  88. package/dist/whatsapp/index.js +35 -0
  89. package/dist/whatsapp/schemas.d.ts +926 -0
  90. package/dist/whatsapp/schemas.js +326 -0
  91. package/package.json +169 -0
  92. package/src/airtable/api.ts +66 -0
  93. package/src/airtable/index.ts +41 -0
  94. package/src/airtable/schemas.ts +231 -0
  95. package/src/asana/api.ts +171 -0
  96. package/src/asana/index.ts +49 -0
  97. package/src/asana/schemas.ts +655 -0
  98. package/src/brevo/api.ts +89 -0
  99. package/src/brevo/index.ts +66 -0
  100. package/src/brevo/schemas.ts +449 -0
  101. package/src/github/index.ts +217 -0
  102. package/src/github/schemas.ts +435 -0
  103. package/src/gmail/gmail.ts +577 -0
  104. package/src/gmail/index.ts +26 -0
  105. package/src/gmail/schemas.ts +327 -0
  106. package/src/google-calendar/event-schemas.ts +16 -0
  107. package/src/google-calendar/google-calendar.ts +727 -0
  108. package/src/google-calendar/index.ts +27 -0
  109. package/src/google-calendar/schemas.ts +529 -0
  110. package/src/google-forms/event-schemas.ts +26 -0
  111. package/src/google-forms/google-forms.ts +683 -0
  112. package/src/google-forms/index.ts +23 -0
  113. package/src/google-forms/schemas.ts +499 -0
  114. package/src/linear/api.ts +141 -0
  115. package/src/linear/index.ts +71 -0
  116. package/src/linear/schemas.ts +1060 -0
  117. package/src/outlook/graph.ts +132 -0
  118. package/src/outlook/index.ts +14 -0
  119. package/src/outlook/schemas.ts +388 -0
  120. package/src/resend/index.ts +70 -0
  121. package/src/resend/schemas.ts +462 -0
  122. package/src/slack/index.ts +29 -0
  123. package/src/slack/schemas.ts +737 -0
  124. package/src/teams/graph.ts +130 -0
  125. package/src/teams/index.ts +27 -0
  126. package/src/teams/schemas.ts +463 -0
  127. package/src/trello/api.ts +190 -0
  128. package/src/trello/event-schemas.ts +290 -0
  129. package/src/trello/index.ts +45 -0
  130. package/src/trello/schemas.ts +507 -0
  131. package/src/triggers.ts +68 -0
  132. package/src/vercel/index.ts +147 -0
  133. package/src/vercel/schemas.ts +594 -0
  134. package/src/whatsapp/api.ts +171 -0
  135. package/src/whatsapp/index.ts +46 -0
  136. package/src/whatsapp/schemas.ts +341 -0
@@ -0,0 +1,1033 @@
1
+ import { z } from "zod";
2
+ export declare const RESEND_EMAIL_EVENT_TYPES: readonly ["email.bounced", "email.clicked", "email.complained", "email.delivered", "email.delivery_delayed", "email.failed", "email.opened", "email.received", "email.scheduled", "email.sent", "email.suppressed"];
3
+ export declare const RESEND_EMAIL_SENT_EVENT_SCHEMA: z.ZodObject<{
4
+ broadcastId: z.ZodOptional<z.ZodString>;
5
+ createdAt: z.ZodISODateTime;
6
+ emailId: z.ZodString;
7
+ from: z.ZodString;
8
+ messageId: z.ZodOptional<z.ZodString>;
9
+ subject: z.ZodString;
10
+ tags: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
11
+ templateId: z.ZodOptional<z.ZodString>;
12
+ to: z.ZodArray<z.ZodString>;
13
+ event: z.ZodObject<{
14
+ created_at: z.ZodISODateTime;
15
+ data: z.ZodObject<{
16
+ broadcast_id: z.ZodOptional<z.ZodString>;
17
+ created_at: z.ZodISODateTime;
18
+ email_id: z.ZodString;
19
+ from: z.ZodString;
20
+ message_id: z.ZodOptional<z.ZodString>;
21
+ subject: z.ZodString;
22
+ tags: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
23
+ template_id: z.ZodOptional<z.ZodString>;
24
+ to: z.ZodArray<z.ZodString>;
25
+ }, z.core.$catchall<z.ZodJSONSchema>>;
26
+ type: z.ZodLiteral<"email.sent">;
27
+ }, z.core.$catchall<z.ZodJSONSchema>>;
28
+ }, z.core.$strip>;
29
+ export declare const RESEND_EMAIL_DELIVERED_EVENT_SCHEMA: z.ZodObject<{
30
+ broadcastId: z.ZodOptional<z.ZodString>;
31
+ createdAt: z.ZodISODateTime;
32
+ emailId: z.ZodString;
33
+ from: z.ZodString;
34
+ messageId: z.ZodOptional<z.ZodString>;
35
+ subject: z.ZodString;
36
+ tags: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
37
+ templateId: z.ZodOptional<z.ZodString>;
38
+ to: z.ZodArray<z.ZodString>;
39
+ event: z.ZodObject<{
40
+ created_at: z.ZodISODateTime;
41
+ data: z.ZodObject<{
42
+ broadcast_id: z.ZodOptional<z.ZodString>;
43
+ created_at: z.ZodISODateTime;
44
+ email_id: z.ZodString;
45
+ from: z.ZodString;
46
+ message_id: z.ZodOptional<z.ZodString>;
47
+ subject: z.ZodString;
48
+ tags: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
49
+ template_id: z.ZodOptional<z.ZodString>;
50
+ to: z.ZodArray<z.ZodString>;
51
+ }, z.core.$catchall<z.ZodJSONSchema>>;
52
+ type: z.ZodLiteral<"email.delivered">;
53
+ }, z.core.$catchall<z.ZodJSONSchema>>;
54
+ }, z.core.$strip>;
55
+ export declare const RESEND_EMAIL_BOUNCED_EVENT_SCHEMA: z.ZodObject<{
56
+ broadcastId: z.ZodOptional<z.ZodString>;
57
+ createdAt: z.ZodISODateTime;
58
+ emailId: z.ZodString;
59
+ from: z.ZodString;
60
+ messageId: z.ZodOptional<z.ZodString>;
61
+ subject: z.ZodString;
62
+ tags: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
63
+ templateId: z.ZodOptional<z.ZodString>;
64
+ to: z.ZodArray<z.ZodString>;
65
+ bounce: z.ZodObject<{
66
+ diagnosticCode: z.ZodOptional<z.ZodArray<z.ZodString>>;
67
+ message: z.ZodString;
68
+ subType: z.ZodString;
69
+ type: z.ZodString;
70
+ }, z.core.$catchall<z.ZodJSONSchema>>;
71
+ event: z.ZodObject<{
72
+ created_at: z.ZodISODateTime;
73
+ data: z.ZodObject<{
74
+ broadcast_id: z.ZodOptional<z.ZodString>;
75
+ created_at: z.ZodISODateTime;
76
+ email_id: z.ZodString;
77
+ from: z.ZodString;
78
+ message_id: z.ZodOptional<z.ZodString>;
79
+ subject: z.ZodString;
80
+ tags: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
81
+ template_id: z.ZodOptional<z.ZodString>;
82
+ to: z.ZodArray<z.ZodString>;
83
+ bounce: z.ZodObject<{
84
+ diagnosticCode: z.ZodOptional<z.ZodArray<z.ZodString>>;
85
+ message: z.ZodString;
86
+ subType: z.ZodString;
87
+ type: z.ZodString;
88
+ }, z.core.$catchall<z.ZodJSONSchema>>;
89
+ }, z.core.$catchall<z.ZodJSONSchema>>;
90
+ type: z.ZodLiteral<"email.bounced">;
91
+ }, z.core.$catchall<z.ZodJSONSchema>>;
92
+ }, z.core.$strip>;
93
+ export declare const RESEND_EMAIL_FAILED_EVENT_SCHEMA: z.ZodObject<{
94
+ broadcastId: z.ZodOptional<z.ZodString>;
95
+ createdAt: z.ZodISODateTime;
96
+ emailId: z.ZodString;
97
+ from: z.ZodString;
98
+ messageId: z.ZodOptional<z.ZodString>;
99
+ subject: z.ZodString;
100
+ tags: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
101
+ templateId: z.ZodOptional<z.ZodString>;
102
+ to: z.ZodArray<z.ZodString>;
103
+ event: z.ZodObject<{
104
+ created_at: z.ZodISODateTime;
105
+ data: z.ZodObject<{
106
+ broadcast_id: z.ZodOptional<z.ZodString>;
107
+ created_at: z.ZodISODateTime;
108
+ email_id: z.ZodString;
109
+ from: z.ZodString;
110
+ message_id: z.ZodOptional<z.ZodString>;
111
+ subject: z.ZodString;
112
+ tags: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
113
+ template_id: z.ZodOptional<z.ZodString>;
114
+ to: z.ZodArray<z.ZodString>;
115
+ failed: z.ZodObject<{
116
+ reason: z.ZodString;
117
+ }, z.core.$catchall<z.ZodJSONSchema>>;
118
+ }, z.core.$catchall<z.ZodJSONSchema>>;
119
+ type: z.ZodLiteral<"email.failed">;
120
+ }, z.core.$catchall<z.ZodJSONSchema>>;
121
+ failed: z.ZodObject<{
122
+ reason: z.ZodString;
123
+ }, z.core.$catchall<z.ZodJSONSchema>>;
124
+ }, z.core.$strip>;
125
+ export declare const RESEND_EMAIL_OPENED_EVENT_SCHEMA: z.ZodObject<{
126
+ broadcastId: z.ZodOptional<z.ZodString>;
127
+ createdAt: z.ZodISODateTime;
128
+ emailId: z.ZodString;
129
+ from: z.ZodString;
130
+ messageId: z.ZodOptional<z.ZodString>;
131
+ subject: z.ZodString;
132
+ tags: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
133
+ templateId: z.ZodOptional<z.ZodString>;
134
+ to: z.ZodArray<z.ZodString>;
135
+ event: z.ZodObject<{
136
+ created_at: z.ZodISODateTime;
137
+ data: z.ZodObject<{
138
+ broadcast_id: z.ZodOptional<z.ZodString>;
139
+ created_at: z.ZodISODateTime;
140
+ email_id: z.ZodString;
141
+ from: z.ZodString;
142
+ message_id: z.ZodOptional<z.ZodString>;
143
+ subject: z.ZodString;
144
+ tags: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
145
+ template_id: z.ZodOptional<z.ZodString>;
146
+ to: z.ZodArray<z.ZodString>;
147
+ }, z.core.$catchall<z.ZodJSONSchema>>;
148
+ type: z.ZodLiteral<"email.opened">;
149
+ }, z.core.$catchall<z.ZodJSONSchema>>;
150
+ }, z.core.$strip>;
151
+ export declare const RESEND_EMAIL_CLICKED_EVENT_SCHEMA: z.ZodObject<{
152
+ broadcastId: z.ZodOptional<z.ZodString>;
153
+ createdAt: z.ZodISODateTime;
154
+ emailId: z.ZodString;
155
+ from: z.ZodString;
156
+ messageId: z.ZodOptional<z.ZodString>;
157
+ subject: z.ZodString;
158
+ tags: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
159
+ templateId: z.ZodOptional<z.ZodString>;
160
+ to: z.ZodArray<z.ZodString>;
161
+ click: z.ZodObject<{
162
+ ipAddress: z.ZodString;
163
+ link: z.ZodString;
164
+ timestamp: z.ZodISODateTime;
165
+ userAgent: z.ZodString;
166
+ }, z.core.$catchall<z.ZodJSONSchema>>;
167
+ event: z.ZodObject<{
168
+ created_at: z.ZodISODateTime;
169
+ data: z.ZodObject<{
170
+ broadcast_id: z.ZodOptional<z.ZodString>;
171
+ created_at: z.ZodISODateTime;
172
+ email_id: z.ZodString;
173
+ from: z.ZodString;
174
+ message_id: z.ZodOptional<z.ZodString>;
175
+ subject: z.ZodString;
176
+ tags: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
177
+ template_id: z.ZodOptional<z.ZodString>;
178
+ to: z.ZodArray<z.ZodString>;
179
+ click: z.ZodObject<{
180
+ ipAddress: z.ZodString;
181
+ link: z.ZodString;
182
+ timestamp: z.ZodISODateTime;
183
+ userAgent: z.ZodString;
184
+ }, z.core.$catchall<z.ZodJSONSchema>>;
185
+ }, z.core.$catchall<z.ZodJSONSchema>>;
186
+ type: z.ZodLiteral<"email.clicked">;
187
+ }, z.core.$catchall<z.ZodJSONSchema>>;
188
+ }, z.core.$strip>;
189
+ export declare const RESEND_EMAIL_COMPLAINED_EVENT_SCHEMA: z.ZodObject<{
190
+ broadcastId: z.ZodOptional<z.ZodString>;
191
+ createdAt: z.ZodISODateTime;
192
+ emailId: z.ZodString;
193
+ from: z.ZodString;
194
+ messageId: z.ZodOptional<z.ZodString>;
195
+ subject: z.ZodString;
196
+ tags: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
197
+ templateId: z.ZodOptional<z.ZodString>;
198
+ to: z.ZodArray<z.ZodString>;
199
+ event: z.ZodObject<{
200
+ created_at: z.ZodISODateTime;
201
+ data: z.ZodObject<{
202
+ broadcast_id: z.ZodOptional<z.ZodString>;
203
+ created_at: z.ZodISODateTime;
204
+ email_id: z.ZodString;
205
+ from: z.ZodString;
206
+ message_id: z.ZodOptional<z.ZodString>;
207
+ subject: z.ZodString;
208
+ tags: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
209
+ template_id: z.ZodOptional<z.ZodString>;
210
+ to: z.ZodArray<z.ZodString>;
211
+ }, z.core.$catchall<z.ZodJSONSchema>>;
212
+ type: z.ZodLiteral<"email.complained">;
213
+ }, z.core.$catchall<z.ZodJSONSchema>>;
214
+ }, z.core.$strip>;
215
+ export declare const RESEND_EMAIL_RECEIVED_EVENT_SCHEMA: z.ZodObject<{
216
+ attachments: z.ZodArray<z.ZodObject<{
217
+ contentDisposition: z.ZodNullable<z.ZodString>;
218
+ contentId: z.ZodNullable<z.ZodString>;
219
+ contentType: z.ZodString;
220
+ filename: z.ZodNullable<z.ZodString>;
221
+ id: z.ZodString;
222
+ }, z.core.$catchall<z.ZodJSONSchema>>>;
223
+ bcc: z.ZodArray<z.ZodString>;
224
+ cc: z.ZodArray<z.ZodString>;
225
+ createdAt: z.ZodISODateTime;
226
+ emailId: z.ZodString;
227
+ from: z.ZodString;
228
+ messageId: z.ZodString;
229
+ receivedFor: z.ZodOptional<z.ZodArray<z.ZodString>>;
230
+ subject: z.ZodString;
231
+ to: z.ZodArray<z.ZodString>;
232
+ event: z.ZodObject<{
233
+ created_at: z.ZodISODateTime;
234
+ data: z.ZodObject<{
235
+ attachments: z.ZodArray<z.ZodObject<{
236
+ content_disposition: z.ZodNullable<z.ZodString>;
237
+ content_id: z.ZodNullable<z.ZodString>;
238
+ content_type: z.ZodString;
239
+ filename: z.ZodNullable<z.ZodString>;
240
+ id: z.ZodString;
241
+ }, z.core.$catchall<z.ZodJSONSchema>>>;
242
+ bcc: z.ZodArray<z.ZodString>;
243
+ cc: z.ZodArray<z.ZodString>;
244
+ created_at: z.ZodISODateTime;
245
+ email_id: z.ZodString;
246
+ from: z.ZodString;
247
+ message_id: z.ZodString;
248
+ received_for: z.ZodOptional<z.ZodArray<z.ZodString>>;
249
+ subject: z.ZodString;
250
+ to: z.ZodArray<z.ZodString>;
251
+ }, z.core.$catchall<z.ZodJSONSchema>>;
252
+ type: z.ZodLiteral<"email.received">;
253
+ }, z.core.$catchall<z.ZodJSONSchema>>;
254
+ }, z.core.$strip>;
255
+ export declare const RESEND_EMAIL_DELIVERY_DELAYED_EVENT_SCHEMA: z.ZodObject<{
256
+ broadcastId: z.ZodOptional<z.ZodString>;
257
+ createdAt: z.ZodISODateTime;
258
+ emailId: z.ZodString;
259
+ from: z.ZodString;
260
+ messageId: z.ZodOptional<z.ZodString>;
261
+ subject: z.ZodString;
262
+ tags: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
263
+ templateId: z.ZodOptional<z.ZodString>;
264
+ to: z.ZodArray<z.ZodString>;
265
+ event: z.ZodObject<{
266
+ created_at: z.ZodISODateTime;
267
+ data: z.ZodObject<{
268
+ broadcast_id: z.ZodOptional<z.ZodString>;
269
+ created_at: z.ZodISODateTime;
270
+ email_id: z.ZodString;
271
+ from: z.ZodString;
272
+ message_id: z.ZodOptional<z.ZodString>;
273
+ subject: z.ZodString;
274
+ tags: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
275
+ template_id: z.ZodOptional<z.ZodString>;
276
+ to: z.ZodArray<z.ZodString>;
277
+ }, z.core.$catchall<z.ZodJSONSchema>>;
278
+ type: z.ZodLiteral<"email.delivery_delayed">;
279
+ }, z.core.$catchall<z.ZodJSONSchema>>;
280
+ }, z.core.$strip>;
281
+ export declare const RESEND_EMAIL_SCHEDULED_EVENT_SCHEMA: z.ZodObject<{
282
+ broadcastId: z.ZodOptional<z.ZodString>;
283
+ createdAt: z.ZodISODateTime;
284
+ emailId: z.ZodString;
285
+ from: z.ZodString;
286
+ messageId: z.ZodOptional<z.ZodString>;
287
+ subject: z.ZodString;
288
+ tags: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
289
+ templateId: z.ZodOptional<z.ZodString>;
290
+ to: z.ZodArray<z.ZodString>;
291
+ event: z.ZodObject<{
292
+ created_at: z.ZodISODateTime;
293
+ data: z.ZodObject<{
294
+ broadcast_id: z.ZodOptional<z.ZodString>;
295
+ created_at: z.ZodISODateTime;
296
+ email_id: z.ZodString;
297
+ from: z.ZodString;
298
+ message_id: z.ZodOptional<z.ZodString>;
299
+ subject: z.ZodString;
300
+ tags: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
301
+ template_id: z.ZodOptional<z.ZodString>;
302
+ to: z.ZodArray<z.ZodString>;
303
+ }, z.core.$catchall<z.ZodJSONSchema>>;
304
+ type: z.ZodLiteral<"email.scheduled">;
305
+ }, z.core.$catchall<z.ZodJSONSchema>>;
306
+ }, z.core.$strip>;
307
+ export declare const RESEND_EMAIL_SUPPRESSED_EVENT_SCHEMA: z.ZodObject<{
308
+ broadcastId: z.ZodOptional<z.ZodString>;
309
+ createdAt: z.ZodISODateTime;
310
+ emailId: z.ZodString;
311
+ from: z.ZodString;
312
+ messageId: z.ZodOptional<z.ZodString>;
313
+ subject: z.ZodString;
314
+ tags: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
315
+ templateId: z.ZodOptional<z.ZodString>;
316
+ to: z.ZodArray<z.ZodString>;
317
+ event: z.ZodObject<{
318
+ created_at: z.ZodISODateTime;
319
+ data: z.ZodObject<{
320
+ broadcast_id: z.ZodOptional<z.ZodString>;
321
+ created_at: z.ZodISODateTime;
322
+ email_id: z.ZodString;
323
+ from: z.ZodString;
324
+ message_id: z.ZodOptional<z.ZodString>;
325
+ subject: z.ZodString;
326
+ tags: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
327
+ template_id: z.ZodOptional<z.ZodString>;
328
+ to: z.ZodArray<z.ZodString>;
329
+ suppressed: z.ZodObject<{
330
+ message: z.ZodString;
331
+ type: z.ZodString;
332
+ }, z.core.$catchall<z.ZodJSONSchema>>;
333
+ }, z.core.$catchall<z.ZodJSONSchema>>;
334
+ type: z.ZodLiteral<"email.suppressed">;
335
+ }, z.core.$catchall<z.ZodJSONSchema>>;
336
+ suppressed: z.ZodObject<{
337
+ message: z.ZodString;
338
+ type: z.ZodString;
339
+ }, z.core.$catchall<z.ZodJSONSchema>>;
340
+ }, z.core.$strip>;
341
+ export declare const RESEND_EMAIL_EVENT_SCHEMA: z.ZodUnion<readonly [z.ZodObject<{
342
+ broadcastId: z.ZodOptional<z.ZodString>;
343
+ createdAt: z.ZodISODateTime;
344
+ emailId: z.ZodString;
345
+ from: z.ZodString;
346
+ messageId: z.ZodOptional<z.ZodString>;
347
+ subject: z.ZodString;
348
+ tags: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
349
+ templateId: z.ZodOptional<z.ZodString>;
350
+ to: z.ZodArray<z.ZodString>;
351
+ bounce: z.ZodObject<{
352
+ diagnosticCode: z.ZodOptional<z.ZodArray<z.ZodString>>;
353
+ message: z.ZodString;
354
+ subType: z.ZodString;
355
+ type: z.ZodString;
356
+ }, z.core.$catchall<z.ZodJSONSchema>>;
357
+ event: z.ZodObject<{
358
+ created_at: z.ZodISODateTime;
359
+ data: z.ZodObject<{
360
+ broadcast_id: z.ZodOptional<z.ZodString>;
361
+ created_at: z.ZodISODateTime;
362
+ email_id: z.ZodString;
363
+ from: z.ZodString;
364
+ message_id: z.ZodOptional<z.ZodString>;
365
+ subject: z.ZodString;
366
+ tags: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
367
+ template_id: z.ZodOptional<z.ZodString>;
368
+ to: z.ZodArray<z.ZodString>;
369
+ bounce: z.ZodObject<{
370
+ diagnosticCode: z.ZodOptional<z.ZodArray<z.ZodString>>;
371
+ message: z.ZodString;
372
+ subType: z.ZodString;
373
+ type: z.ZodString;
374
+ }, z.core.$catchall<z.ZodJSONSchema>>;
375
+ }, z.core.$catchall<z.ZodJSONSchema>>;
376
+ type: z.ZodLiteral<"email.bounced">;
377
+ }, z.core.$catchall<z.ZodJSONSchema>>;
378
+ }, z.core.$strip>, z.ZodObject<{
379
+ broadcastId: z.ZodOptional<z.ZodString>;
380
+ createdAt: z.ZodISODateTime;
381
+ emailId: z.ZodString;
382
+ from: z.ZodString;
383
+ messageId: z.ZodOptional<z.ZodString>;
384
+ subject: z.ZodString;
385
+ tags: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
386
+ templateId: z.ZodOptional<z.ZodString>;
387
+ to: z.ZodArray<z.ZodString>;
388
+ click: z.ZodObject<{
389
+ ipAddress: z.ZodString;
390
+ link: z.ZodString;
391
+ timestamp: z.ZodISODateTime;
392
+ userAgent: z.ZodString;
393
+ }, z.core.$catchall<z.ZodJSONSchema>>;
394
+ event: z.ZodObject<{
395
+ created_at: z.ZodISODateTime;
396
+ data: z.ZodObject<{
397
+ broadcast_id: z.ZodOptional<z.ZodString>;
398
+ created_at: z.ZodISODateTime;
399
+ email_id: z.ZodString;
400
+ from: z.ZodString;
401
+ message_id: z.ZodOptional<z.ZodString>;
402
+ subject: z.ZodString;
403
+ tags: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
404
+ template_id: z.ZodOptional<z.ZodString>;
405
+ to: z.ZodArray<z.ZodString>;
406
+ click: z.ZodObject<{
407
+ ipAddress: z.ZodString;
408
+ link: z.ZodString;
409
+ timestamp: z.ZodISODateTime;
410
+ userAgent: z.ZodString;
411
+ }, z.core.$catchall<z.ZodJSONSchema>>;
412
+ }, z.core.$catchall<z.ZodJSONSchema>>;
413
+ type: z.ZodLiteral<"email.clicked">;
414
+ }, z.core.$catchall<z.ZodJSONSchema>>;
415
+ }, z.core.$strip>, z.ZodObject<{
416
+ broadcastId: z.ZodOptional<z.ZodString>;
417
+ createdAt: z.ZodISODateTime;
418
+ emailId: z.ZodString;
419
+ from: z.ZodString;
420
+ messageId: z.ZodOptional<z.ZodString>;
421
+ subject: z.ZodString;
422
+ tags: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
423
+ templateId: z.ZodOptional<z.ZodString>;
424
+ to: z.ZodArray<z.ZodString>;
425
+ event: z.ZodObject<{
426
+ created_at: z.ZodISODateTime;
427
+ data: z.ZodObject<{
428
+ broadcast_id: z.ZodOptional<z.ZodString>;
429
+ created_at: z.ZodISODateTime;
430
+ email_id: z.ZodString;
431
+ from: z.ZodString;
432
+ message_id: z.ZodOptional<z.ZodString>;
433
+ subject: z.ZodString;
434
+ tags: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
435
+ template_id: z.ZodOptional<z.ZodString>;
436
+ to: z.ZodArray<z.ZodString>;
437
+ }, z.core.$catchall<z.ZodJSONSchema>>;
438
+ type: z.ZodLiteral<"email.complained">;
439
+ }, z.core.$catchall<z.ZodJSONSchema>>;
440
+ }, z.core.$strip>, z.ZodObject<{
441
+ broadcastId: z.ZodOptional<z.ZodString>;
442
+ createdAt: z.ZodISODateTime;
443
+ emailId: z.ZodString;
444
+ from: z.ZodString;
445
+ messageId: z.ZodOptional<z.ZodString>;
446
+ subject: z.ZodString;
447
+ tags: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
448
+ templateId: z.ZodOptional<z.ZodString>;
449
+ to: z.ZodArray<z.ZodString>;
450
+ event: z.ZodObject<{
451
+ created_at: z.ZodISODateTime;
452
+ data: z.ZodObject<{
453
+ broadcast_id: z.ZodOptional<z.ZodString>;
454
+ created_at: z.ZodISODateTime;
455
+ email_id: z.ZodString;
456
+ from: z.ZodString;
457
+ message_id: z.ZodOptional<z.ZodString>;
458
+ subject: z.ZodString;
459
+ tags: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
460
+ template_id: z.ZodOptional<z.ZodString>;
461
+ to: z.ZodArray<z.ZodString>;
462
+ }, z.core.$catchall<z.ZodJSONSchema>>;
463
+ type: z.ZodLiteral<"email.delivered">;
464
+ }, z.core.$catchall<z.ZodJSONSchema>>;
465
+ }, z.core.$strip>, z.ZodObject<{
466
+ broadcastId: z.ZodOptional<z.ZodString>;
467
+ createdAt: z.ZodISODateTime;
468
+ emailId: z.ZodString;
469
+ from: z.ZodString;
470
+ messageId: z.ZodOptional<z.ZodString>;
471
+ subject: z.ZodString;
472
+ tags: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
473
+ templateId: z.ZodOptional<z.ZodString>;
474
+ to: z.ZodArray<z.ZodString>;
475
+ event: z.ZodObject<{
476
+ created_at: z.ZodISODateTime;
477
+ data: z.ZodObject<{
478
+ broadcast_id: z.ZodOptional<z.ZodString>;
479
+ created_at: z.ZodISODateTime;
480
+ email_id: z.ZodString;
481
+ from: z.ZodString;
482
+ message_id: z.ZodOptional<z.ZodString>;
483
+ subject: z.ZodString;
484
+ tags: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
485
+ template_id: z.ZodOptional<z.ZodString>;
486
+ to: z.ZodArray<z.ZodString>;
487
+ }, z.core.$catchall<z.ZodJSONSchema>>;
488
+ type: z.ZodLiteral<"email.delivery_delayed">;
489
+ }, z.core.$catchall<z.ZodJSONSchema>>;
490
+ }, z.core.$strip>, z.ZodObject<{
491
+ broadcastId: z.ZodOptional<z.ZodString>;
492
+ createdAt: z.ZodISODateTime;
493
+ emailId: z.ZodString;
494
+ from: z.ZodString;
495
+ messageId: z.ZodOptional<z.ZodString>;
496
+ subject: z.ZodString;
497
+ tags: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
498
+ templateId: z.ZodOptional<z.ZodString>;
499
+ to: z.ZodArray<z.ZodString>;
500
+ event: z.ZodObject<{
501
+ created_at: z.ZodISODateTime;
502
+ data: z.ZodObject<{
503
+ broadcast_id: z.ZodOptional<z.ZodString>;
504
+ created_at: z.ZodISODateTime;
505
+ email_id: z.ZodString;
506
+ from: z.ZodString;
507
+ message_id: z.ZodOptional<z.ZodString>;
508
+ subject: z.ZodString;
509
+ tags: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
510
+ template_id: z.ZodOptional<z.ZodString>;
511
+ to: z.ZodArray<z.ZodString>;
512
+ failed: z.ZodObject<{
513
+ reason: z.ZodString;
514
+ }, z.core.$catchall<z.ZodJSONSchema>>;
515
+ }, z.core.$catchall<z.ZodJSONSchema>>;
516
+ type: z.ZodLiteral<"email.failed">;
517
+ }, z.core.$catchall<z.ZodJSONSchema>>;
518
+ failed: z.ZodObject<{
519
+ reason: z.ZodString;
520
+ }, z.core.$catchall<z.ZodJSONSchema>>;
521
+ }, z.core.$strip>, z.ZodObject<{
522
+ broadcastId: z.ZodOptional<z.ZodString>;
523
+ createdAt: z.ZodISODateTime;
524
+ emailId: z.ZodString;
525
+ from: z.ZodString;
526
+ messageId: z.ZodOptional<z.ZodString>;
527
+ subject: z.ZodString;
528
+ tags: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
529
+ templateId: z.ZodOptional<z.ZodString>;
530
+ to: z.ZodArray<z.ZodString>;
531
+ event: z.ZodObject<{
532
+ created_at: z.ZodISODateTime;
533
+ data: z.ZodObject<{
534
+ broadcast_id: z.ZodOptional<z.ZodString>;
535
+ created_at: z.ZodISODateTime;
536
+ email_id: z.ZodString;
537
+ from: z.ZodString;
538
+ message_id: z.ZodOptional<z.ZodString>;
539
+ subject: z.ZodString;
540
+ tags: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
541
+ template_id: z.ZodOptional<z.ZodString>;
542
+ to: z.ZodArray<z.ZodString>;
543
+ }, z.core.$catchall<z.ZodJSONSchema>>;
544
+ type: z.ZodLiteral<"email.opened">;
545
+ }, z.core.$catchall<z.ZodJSONSchema>>;
546
+ }, z.core.$strip>, z.ZodObject<{
547
+ attachments: z.ZodArray<z.ZodObject<{
548
+ contentDisposition: z.ZodNullable<z.ZodString>;
549
+ contentId: z.ZodNullable<z.ZodString>;
550
+ contentType: z.ZodString;
551
+ filename: z.ZodNullable<z.ZodString>;
552
+ id: z.ZodString;
553
+ }, z.core.$catchall<z.ZodJSONSchema>>>;
554
+ bcc: z.ZodArray<z.ZodString>;
555
+ cc: z.ZodArray<z.ZodString>;
556
+ createdAt: z.ZodISODateTime;
557
+ emailId: z.ZodString;
558
+ from: z.ZodString;
559
+ messageId: z.ZodString;
560
+ receivedFor: z.ZodOptional<z.ZodArray<z.ZodString>>;
561
+ subject: z.ZodString;
562
+ to: z.ZodArray<z.ZodString>;
563
+ event: z.ZodObject<{
564
+ created_at: z.ZodISODateTime;
565
+ data: z.ZodObject<{
566
+ attachments: z.ZodArray<z.ZodObject<{
567
+ content_disposition: z.ZodNullable<z.ZodString>;
568
+ content_id: z.ZodNullable<z.ZodString>;
569
+ content_type: z.ZodString;
570
+ filename: z.ZodNullable<z.ZodString>;
571
+ id: z.ZodString;
572
+ }, z.core.$catchall<z.ZodJSONSchema>>>;
573
+ bcc: z.ZodArray<z.ZodString>;
574
+ cc: z.ZodArray<z.ZodString>;
575
+ created_at: z.ZodISODateTime;
576
+ email_id: z.ZodString;
577
+ from: z.ZodString;
578
+ message_id: z.ZodString;
579
+ received_for: z.ZodOptional<z.ZodArray<z.ZodString>>;
580
+ subject: z.ZodString;
581
+ to: z.ZodArray<z.ZodString>;
582
+ }, z.core.$catchall<z.ZodJSONSchema>>;
583
+ type: z.ZodLiteral<"email.received">;
584
+ }, z.core.$catchall<z.ZodJSONSchema>>;
585
+ }, z.core.$strip>, z.ZodObject<{
586
+ broadcastId: z.ZodOptional<z.ZodString>;
587
+ createdAt: z.ZodISODateTime;
588
+ emailId: z.ZodString;
589
+ from: z.ZodString;
590
+ messageId: z.ZodOptional<z.ZodString>;
591
+ subject: z.ZodString;
592
+ tags: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
593
+ templateId: z.ZodOptional<z.ZodString>;
594
+ to: z.ZodArray<z.ZodString>;
595
+ event: z.ZodObject<{
596
+ created_at: z.ZodISODateTime;
597
+ data: z.ZodObject<{
598
+ broadcast_id: z.ZodOptional<z.ZodString>;
599
+ created_at: z.ZodISODateTime;
600
+ email_id: z.ZodString;
601
+ from: z.ZodString;
602
+ message_id: z.ZodOptional<z.ZodString>;
603
+ subject: z.ZodString;
604
+ tags: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
605
+ template_id: z.ZodOptional<z.ZodString>;
606
+ to: z.ZodArray<z.ZodString>;
607
+ }, z.core.$catchall<z.ZodJSONSchema>>;
608
+ type: z.ZodLiteral<"email.scheduled">;
609
+ }, z.core.$catchall<z.ZodJSONSchema>>;
610
+ }, z.core.$strip>, z.ZodObject<{
611
+ broadcastId: z.ZodOptional<z.ZodString>;
612
+ createdAt: z.ZodISODateTime;
613
+ emailId: z.ZodString;
614
+ from: z.ZodString;
615
+ messageId: z.ZodOptional<z.ZodString>;
616
+ subject: z.ZodString;
617
+ tags: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
618
+ templateId: z.ZodOptional<z.ZodString>;
619
+ to: z.ZodArray<z.ZodString>;
620
+ event: z.ZodObject<{
621
+ created_at: z.ZodISODateTime;
622
+ data: z.ZodObject<{
623
+ broadcast_id: z.ZodOptional<z.ZodString>;
624
+ created_at: z.ZodISODateTime;
625
+ email_id: z.ZodString;
626
+ from: z.ZodString;
627
+ message_id: z.ZodOptional<z.ZodString>;
628
+ subject: z.ZodString;
629
+ tags: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
630
+ template_id: z.ZodOptional<z.ZodString>;
631
+ to: z.ZodArray<z.ZodString>;
632
+ }, z.core.$catchall<z.ZodJSONSchema>>;
633
+ type: z.ZodLiteral<"email.sent">;
634
+ }, z.core.$catchall<z.ZodJSONSchema>>;
635
+ }, z.core.$strip>, z.ZodObject<{
636
+ broadcastId: z.ZodOptional<z.ZodString>;
637
+ createdAt: z.ZodISODateTime;
638
+ emailId: z.ZodString;
639
+ from: z.ZodString;
640
+ messageId: z.ZodOptional<z.ZodString>;
641
+ subject: z.ZodString;
642
+ tags: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
643
+ templateId: z.ZodOptional<z.ZodString>;
644
+ to: z.ZodArray<z.ZodString>;
645
+ event: z.ZodObject<{
646
+ created_at: z.ZodISODateTime;
647
+ data: z.ZodObject<{
648
+ broadcast_id: z.ZodOptional<z.ZodString>;
649
+ created_at: z.ZodISODateTime;
650
+ email_id: z.ZodString;
651
+ from: z.ZodString;
652
+ message_id: z.ZodOptional<z.ZodString>;
653
+ subject: z.ZodString;
654
+ tags: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
655
+ template_id: z.ZodOptional<z.ZodString>;
656
+ to: z.ZodArray<z.ZodString>;
657
+ suppressed: z.ZodObject<{
658
+ message: z.ZodString;
659
+ type: z.ZodString;
660
+ }, z.core.$catchall<z.ZodJSONSchema>>;
661
+ }, z.core.$catchall<z.ZodJSONSchema>>;
662
+ type: z.ZodLiteral<"email.suppressed">;
663
+ }, z.core.$catchall<z.ZodJSONSchema>>;
664
+ suppressed: z.ZodObject<{
665
+ message: z.ZodString;
666
+ type: z.ZodString;
667
+ }, z.core.$catchall<z.ZodJSONSchema>>;
668
+ }, z.core.$strip>]>;
669
+ /**
670
+ * Normalizes one authenticated Resend email webhook.
671
+ *
672
+ * @param value - Untrusted provider webhook payload.
673
+ */
674
+ export declare function normalizeResendEmailEvent(value: unknown): {
675
+ createdAt: string;
676
+ emailId: string;
677
+ from: string;
678
+ subject: string;
679
+ to: string[];
680
+ bounce: {
681
+ [x: string]: z.core.util.JSONType;
682
+ message: string;
683
+ subType: string;
684
+ type: string;
685
+ diagnosticCode?: string[] | undefined;
686
+ };
687
+ event: {
688
+ [x: string]: z.core.util.JSONType;
689
+ created_at: string;
690
+ data: {
691
+ [x: string]: z.core.util.JSONType;
692
+ created_at: string;
693
+ email_id: string;
694
+ from: string;
695
+ subject: string;
696
+ to: string[];
697
+ bounce: {
698
+ [x: string]: z.core.util.JSONType;
699
+ message: string;
700
+ subType: string;
701
+ type: string;
702
+ diagnosticCode?: string[] | undefined;
703
+ };
704
+ broadcast_id?: string | undefined;
705
+ message_id?: string | undefined;
706
+ tags?: Record<string, string> | undefined;
707
+ template_id?: string | undefined;
708
+ };
709
+ type: "email.bounced";
710
+ };
711
+ broadcastId?: string | undefined;
712
+ messageId?: string | undefined;
713
+ tags?: Record<string, string> | undefined;
714
+ templateId?: string | undefined;
715
+ } | {
716
+ createdAt: string;
717
+ emailId: string;
718
+ from: string;
719
+ subject: string;
720
+ to: string[];
721
+ click: {
722
+ [x: string]: z.core.util.JSONType;
723
+ ipAddress: string;
724
+ link: string;
725
+ timestamp: string;
726
+ userAgent: string;
727
+ };
728
+ event: {
729
+ [x: string]: z.core.util.JSONType;
730
+ created_at: string;
731
+ data: {
732
+ [x: string]: z.core.util.JSONType;
733
+ created_at: string;
734
+ email_id: string;
735
+ from: string;
736
+ subject: string;
737
+ to: string[];
738
+ click: {
739
+ [x: string]: z.core.util.JSONType;
740
+ ipAddress: string;
741
+ link: string;
742
+ timestamp: string;
743
+ userAgent: string;
744
+ };
745
+ broadcast_id?: string | undefined;
746
+ message_id?: string | undefined;
747
+ tags?: Record<string, string> | undefined;
748
+ template_id?: string | undefined;
749
+ };
750
+ type: "email.clicked";
751
+ };
752
+ broadcastId?: string | undefined;
753
+ messageId?: string | undefined;
754
+ tags?: Record<string, string> | undefined;
755
+ templateId?: string | undefined;
756
+ } | {
757
+ createdAt: string;
758
+ emailId: string;
759
+ from: string;
760
+ subject: string;
761
+ to: string[];
762
+ event: {
763
+ [x: string]: z.core.util.JSONType;
764
+ created_at: string;
765
+ data: {
766
+ [x: string]: z.core.util.JSONType;
767
+ created_at: string;
768
+ email_id: string;
769
+ from: string;
770
+ subject: string;
771
+ to: string[];
772
+ failed: {
773
+ [x: string]: z.core.util.JSONType;
774
+ reason: string;
775
+ };
776
+ broadcast_id?: string | undefined;
777
+ message_id?: string | undefined;
778
+ tags?: Record<string, string> | undefined;
779
+ template_id?: string | undefined;
780
+ };
781
+ type: "email.failed";
782
+ };
783
+ failed: {
784
+ [x: string]: z.core.util.JSONType;
785
+ reason: string;
786
+ };
787
+ broadcastId?: string | undefined;
788
+ messageId?: string | undefined;
789
+ tags?: Record<string, string> | undefined;
790
+ templateId?: string | undefined;
791
+ } | {
792
+ attachments: {
793
+ [x: string]: z.core.util.JSONType;
794
+ contentDisposition: string | null;
795
+ contentId: string | null;
796
+ contentType: string;
797
+ filename: string | null;
798
+ id: string;
799
+ }[];
800
+ bcc: string[];
801
+ cc: string[];
802
+ createdAt: string;
803
+ emailId: string;
804
+ from: string;
805
+ messageId: string;
806
+ subject: string;
807
+ to: string[];
808
+ event: {
809
+ [x: string]: z.core.util.JSONType;
810
+ created_at: string;
811
+ data: {
812
+ [x: string]: z.core.util.JSONType;
813
+ attachments: {
814
+ [x: string]: z.core.util.JSONType;
815
+ content_disposition: string | null;
816
+ content_id: string | null;
817
+ content_type: string;
818
+ filename: string | null;
819
+ id: string;
820
+ }[];
821
+ bcc: string[];
822
+ cc: string[];
823
+ created_at: string;
824
+ email_id: string;
825
+ from: string;
826
+ message_id: string;
827
+ subject: string;
828
+ to: string[];
829
+ received_for?: string[] | undefined;
830
+ };
831
+ type: "email.received";
832
+ };
833
+ receivedFor?: string[] | undefined;
834
+ } | {
835
+ createdAt: string;
836
+ emailId: string;
837
+ from: string;
838
+ subject: string;
839
+ to: string[];
840
+ event: {
841
+ [x: string]: z.core.util.JSONType;
842
+ created_at: string;
843
+ data: {
844
+ [x: string]: z.core.util.JSONType;
845
+ created_at: string;
846
+ email_id: string;
847
+ from: string;
848
+ subject: string;
849
+ to: string[];
850
+ suppressed: {
851
+ [x: string]: z.core.util.JSONType;
852
+ message: string;
853
+ type: string;
854
+ };
855
+ broadcast_id?: string | undefined;
856
+ message_id?: string | undefined;
857
+ tags?: Record<string, string> | undefined;
858
+ template_id?: string | undefined;
859
+ };
860
+ type: "email.suppressed";
861
+ };
862
+ suppressed: {
863
+ [x: string]: z.core.util.JSONType;
864
+ message: string;
865
+ type: string;
866
+ };
867
+ broadcastId?: string | undefined;
868
+ messageId?: string | undefined;
869
+ tags?: Record<string, string> | undefined;
870
+ templateId?: string | undefined;
871
+ } | {
872
+ createdAt: string;
873
+ emailId: string;
874
+ from: string;
875
+ subject: string;
876
+ to: string[];
877
+ event: {
878
+ [x: string]: z.core.util.JSONType;
879
+ created_at: string;
880
+ data: {
881
+ [x: string]: z.core.util.JSONType;
882
+ created_at: string;
883
+ email_id: string;
884
+ from: string;
885
+ subject: string;
886
+ to: string[];
887
+ broadcast_id?: string | undefined;
888
+ message_id?: string | undefined;
889
+ tags?: Record<string, string> | undefined;
890
+ template_id?: string | undefined;
891
+ };
892
+ type: "email.complained";
893
+ };
894
+ broadcastId?: string | undefined;
895
+ messageId?: string | undefined;
896
+ tags?: Record<string, string> | undefined;
897
+ templateId?: string | undefined;
898
+ } | {
899
+ createdAt: string;
900
+ emailId: string;
901
+ from: string;
902
+ subject: string;
903
+ to: string[];
904
+ event: {
905
+ [x: string]: z.core.util.JSONType;
906
+ created_at: string;
907
+ data: {
908
+ [x: string]: z.core.util.JSONType;
909
+ created_at: string;
910
+ email_id: string;
911
+ from: string;
912
+ subject: string;
913
+ to: string[];
914
+ broadcast_id?: string | undefined;
915
+ message_id?: string | undefined;
916
+ tags?: Record<string, string> | undefined;
917
+ template_id?: string | undefined;
918
+ };
919
+ type: "email.delivered";
920
+ };
921
+ broadcastId?: string | undefined;
922
+ messageId?: string | undefined;
923
+ tags?: Record<string, string> | undefined;
924
+ templateId?: string | undefined;
925
+ } | {
926
+ createdAt: string;
927
+ emailId: string;
928
+ from: string;
929
+ subject: string;
930
+ to: string[];
931
+ event: {
932
+ [x: string]: z.core.util.JSONType;
933
+ created_at: string;
934
+ data: {
935
+ [x: string]: z.core.util.JSONType;
936
+ created_at: string;
937
+ email_id: string;
938
+ from: string;
939
+ subject: string;
940
+ to: string[];
941
+ broadcast_id?: string | undefined;
942
+ message_id?: string | undefined;
943
+ tags?: Record<string, string> | undefined;
944
+ template_id?: string | undefined;
945
+ };
946
+ type: "email.delivery_delayed";
947
+ };
948
+ broadcastId?: string | undefined;
949
+ messageId?: string | undefined;
950
+ tags?: Record<string, string> | undefined;
951
+ templateId?: string | undefined;
952
+ } | {
953
+ createdAt: string;
954
+ emailId: string;
955
+ from: string;
956
+ subject: string;
957
+ to: string[];
958
+ event: {
959
+ [x: string]: z.core.util.JSONType;
960
+ created_at: string;
961
+ data: {
962
+ [x: string]: z.core.util.JSONType;
963
+ created_at: string;
964
+ email_id: string;
965
+ from: string;
966
+ subject: string;
967
+ to: string[];
968
+ broadcast_id?: string | undefined;
969
+ message_id?: string | undefined;
970
+ tags?: Record<string, string> | undefined;
971
+ template_id?: string | undefined;
972
+ };
973
+ type: "email.opened";
974
+ };
975
+ broadcastId?: string | undefined;
976
+ messageId?: string | undefined;
977
+ tags?: Record<string, string> | undefined;
978
+ templateId?: string | undefined;
979
+ } | {
980
+ createdAt: string;
981
+ emailId: string;
982
+ from: string;
983
+ subject: string;
984
+ to: string[];
985
+ event: {
986
+ [x: string]: z.core.util.JSONType;
987
+ created_at: string;
988
+ data: {
989
+ [x: string]: z.core.util.JSONType;
990
+ created_at: string;
991
+ email_id: string;
992
+ from: string;
993
+ subject: string;
994
+ to: string[];
995
+ broadcast_id?: string | undefined;
996
+ message_id?: string | undefined;
997
+ tags?: Record<string, string> | undefined;
998
+ template_id?: string | undefined;
999
+ };
1000
+ type: "email.scheduled";
1001
+ };
1002
+ broadcastId?: string | undefined;
1003
+ messageId?: string | undefined;
1004
+ tags?: Record<string, string> | undefined;
1005
+ templateId?: string | undefined;
1006
+ } | {
1007
+ createdAt: string;
1008
+ emailId: string;
1009
+ from: string;
1010
+ subject: string;
1011
+ to: string[];
1012
+ event: {
1013
+ [x: string]: z.core.util.JSONType;
1014
+ created_at: string;
1015
+ data: {
1016
+ [x: string]: z.core.util.JSONType;
1017
+ created_at: string;
1018
+ email_id: string;
1019
+ from: string;
1020
+ subject: string;
1021
+ to: string[];
1022
+ broadcast_id?: string | undefined;
1023
+ message_id?: string | undefined;
1024
+ tags?: Record<string, string> | undefined;
1025
+ template_id?: string | undefined;
1026
+ };
1027
+ type: "email.sent";
1028
+ };
1029
+ broadcastId?: string | undefined;
1030
+ messageId?: string | undefined;
1031
+ tags?: Record<string, string> | undefined;
1032
+ templateId?: string | undefined;
1033
+ };