@workwae/sdk 0.0.0-stage → 0.1.0-alpha.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.
Files changed (56) hide show
  1. package/README.md +233 -2
  2. package/client.d.ts +36 -0
  3. package/contract/accounts/models.d.ts +726 -0
  4. package/contract/accounts/routes.d.ts +1318 -0
  5. package/contract/ai/models.d.ts +30 -0
  6. package/contract/ai/routes.d.ts +89 -0
  7. package/contract/audit-log/models.d.ts +107 -0
  8. package/contract/audit-log/routes.d.ts +72 -0
  9. package/contract/calendar/models.d.ts +837 -0
  10. package/contract/calendar/routes.d.ts +1299 -0
  11. package/contract/connect/models.d.ts +272 -0
  12. package/contract/connect/routes.d.ts +531 -0
  13. package/contract/contacts/models.d.ts +269 -0
  14. package/contract/contacts/routes.d.ts +634 -0
  15. package/contract/errors.d.ts +108 -0
  16. package/contract/events/models.d.ts +2364 -0
  17. package/contract/events/routes.d.ts +107 -0
  18. package/contract/exports/models.d.ts +67 -0
  19. package/contract/exports/routes.d.ts +196 -0
  20. package/contract/identities/models.d.ts +100 -0
  21. package/contract/identities/routes.d.ts +249 -0
  22. package/contract/limits.d.ts +170 -0
  23. package/contract/mail/models.d.ts +528 -0
  24. package/contract/mail/routes.d.ts +749 -0
  25. package/contract/meetings/models.d.ts +232 -0
  26. package/contract/meetings/routes.d.ts +386 -0
  27. package/contract/oauth-apps/models.d.ts +92 -0
  28. package/contract/oauth-apps/routes.d.ts +187 -0
  29. package/contract/org-connections/models.d.ts +383 -0
  30. package/contract/org-connections/routes.d.ts +830 -0
  31. package/contract/primitives.d.ts +140 -0
  32. package/contract/public.d.ts +26 -0
  33. package/contract/reasons.d.ts +711 -0
  34. package/contract/router.d.ts +9773 -0
  35. package/contract/send/models.d.ts +750 -0
  36. package/contract/send/routes.d.ts +1239 -0
  37. package/contract/settings/models.d.ts +103 -0
  38. package/contract/settings/routes.d.ts +110 -0
  39. package/contract/suppressions/models.d.ts +231 -0
  40. package/contract/suppressions/routes.d.ts +317 -0
  41. package/contract/templates/models.d.ts +169 -0
  42. package/contract/templates/routes.d.ts +281 -0
  43. package/contract/threads/models.d.ts +117 -0
  44. package/contract/threads/routes.d.ts +336 -0
  45. package/contract/usage/models.d.ts +213 -0
  46. package/contract/usage/routes.d.ts +81 -0
  47. package/contract/webhooks/models.d.ts +879 -0
  48. package/contract/webhooks/routes.d.ts +839 -0
  49. package/contract/webhooks/signing.d.ts +35 -0
  50. package/errors.d.ts +15 -0
  51. package/index.d.ts +6 -0
  52. package/index.js +4334 -0
  53. package/index.js.map +59 -0
  54. package/package.json +45 -4
  55. package/pagination.d.ts +40 -0
  56. package/webhooks.d.ts +28 -0
@@ -0,0 +1,2364 @@
1
+ import * as z from "zod";
2
+ import { EventId, Timestamp } from "../primitives.js";
3
+ export declare const AccountConnectedData: z.ZodObject<{
4
+ email: z.ZodString;
5
+ provider: z.ZodEnum<{
6
+ gmail: "gmail";
7
+ graph: "graph";
8
+ imap: "imap";
9
+ }>;
10
+ cloud: z.ZodNullable<z.ZodEnum<{
11
+ global: "global";
12
+ "gcc-high": "gcc-high";
13
+ dod: "dod";
14
+ china: "china";
15
+ }>>;
16
+ externalRef: z.ZodNullable<z.ZodString>;
17
+ reauthorized: z.ZodBoolean;
18
+ }, z.core.$strip>;
19
+ export type AccountConnectedData = z.infer<typeof AccountConnectedData>;
20
+ /** imap and dav: the account's IMAP or DAV connection settings; credentials: its password. */
21
+ export declare const AccountUpdatedField: z.ZodEnum<{
22
+ imap: "imap";
23
+ dav: "dav";
24
+ status: "status";
25
+ settings: "settings";
26
+ externalRef: "externalRef";
27
+ credentials: "credentials";
28
+ }>;
29
+ export type AccountUpdatedField = z.infer<typeof AccountUpdatedField>;
30
+ export declare const AccountUpdatedData: z.ZodObject<{
31
+ fields: z.ZodArray<z.ZodEnum<{
32
+ imap: "imap";
33
+ dav: "dav";
34
+ status: "status";
35
+ settings: "settings";
36
+ externalRef: "externalRef";
37
+ credentials: "credentials";
38
+ }>>;
39
+ }, z.core.$strip>;
40
+ export type AccountUpdatedData = z.infer<typeof AccountUpdatedData>;
41
+ export declare const AccountDeletedData: z.ZodObject<{
42
+ email: z.ZodString;
43
+ externalRef: z.ZodNullable<z.ZodString>;
44
+ purge: z.ZodBoolean;
45
+ }, z.core.$strip>;
46
+ export type AccountDeletedData = z.infer<typeof AccountDeletedData>;
47
+ export declare const AccountReauthRequiredData: z.ZodObject<{
48
+ email: z.ZodString;
49
+ provider: z.ZodEnum<{
50
+ gmail: "gmail";
51
+ graph: "graph";
52
+ imap: "imap";
53
+ }>;
54
+ externalRef: z.ZodNullable<z.ZodString>;
55
+ cloud: z.ZodNullable<z.ZodEnum<{
56
+ global: "global";
57
+ "gcc-high": "gcc-high";
58
+ dod: "dod";
59
+ china: "china";
60
+ }>>;
61
+ reason: z.ZodString;
62
+ }, z.core.$strip>;
63
+ export type AccountReauthRequiredData = z.infer<typeof AccountReauthRequiredData>;
64
+ export declare const AccountInitializedData: z.ZodObject<{
65
+ mailboxes: z.ZodNumber;
66
+ messages: z.ZodNumber;
67
+ }, z.core.$strip>;
68
+ export type AccountInitializedData = z.infer<typeof AccountInitializedData>;
69
+ export declare const AccountPurgedData: z.ZodObject<{
70
+ accountId: z.ZodUUID;
71
+ externalRef: z.ZodNullable<z.ZodString>;
72
+ }, z.core.$strip>;
73
+ export type AccountPurgedData = z.infer<typeof AccountPurgedData>;
74
+ export declare const MailboxData: z.ZodObject<{
75
+ mailbox: z.ZodObject<{
76
+ id: z.ZodUUID;
77
+ name: z.ZodString;
78
+ path: z.ZodString;
79
+ parentId: z.ZodNullable<z.ZodUUID>;
80
+ role: z.ZodEnum<{
81
+ custom: "custom";
82
+ inbox: "inbox";
83
+ sent: "sent";
84
+ drafts: "drafts";
85
+ trash: "trash";
86
+ junk: "junk";
87
+ archive: "archive";
88
+ all: "all";
89
+ important: "important";
90
+ }>;
91
+ kind: z.ZodEnum<{
92
+ label: "label";
93
+ folder: "folder";
94
+ }>;
95
+ totalCount: z.ZodNullable<z.ZodNumber>;
96
+ unreadCount: z.ZodNullable<z.ZodNumber>;
97
+ }, z.core.$strip>;
98
+ }, z.core.$strip>;
99
+ export type MailboxData = z.infer<typeof MailboxData>;
100
+ export declare const MailboxUpdatedData: z.ZodObject<{
101
+ mailbox: z.ZodObject<{
102
+ id: z.ZodUUID;
103
+ name: z.ZodString;
104
+ path: z.ZodString;
105
+ parentId: z.ZodNullable<z.ZodUUID>;
106
+ role: z.ZodEnum<{
107
+ custom: "custom";
108
+ inbox: "inbox";
109
+ sent: "sent";
110
+ drafts: "drafts";
111
+ trash: "trash";
112
+ junk: "junk";
113
+ archive: "archive";
114
+ all: "all";
115
+ important: "important";
116
+ }>;
117
+ kind: z.ZodEnum<{
118
+ label: "label";
119
+ folder: "folder";
120
+ }>;
121
+ totalCount: z.ZodNullable<z.ZodNumber>;
122
+ unreadCount: z.ZodNullable<z.ZodNumber>;
123
+ }, z.core.$strip>;
124
+ changes: z.ZodArray<z.ZodEnum<{
125
+ path: "path";
126
+ name: "name";
127
+ kind: "kind";
128
+ role: "role";
129
+ parentId: "parentId";
130
+ }>>;
131
+ }, z.core.$strip>;
132
+ export type MailboxUpdatedData = z.infer<typeof MailboxUpdatedData>;
133
+ /** A mailbox a message is in, as events name it: roles tell inbound mail from sent and drafts. */
134
+ export declare const MailboxRef: z.ZodObject<{
135
+ id: z.ZodUUID;
136
+ name: z.ZodString;
137
+ role: z.ZodEnum<{
138
+ custom: "custom";
139
+ inbox: "inbox";
140
+ sent: "sent";
141
+ drafts: "drafts";
142
+ trash: "trash";
143
+ junk: "junk";
144
+ archive: "archive";
145
+ all: "all";
146
+ important: "important";
147
+ }>;
148
+ }, z.core.$strip>;
149
+ export type MailboxRef = z.infer<typeof MailboxRef>;
150
+ export declare const MessageData: z.ZodObject<{
151
+ message: z.ZodObject<{
152
+ id: z.ZodUUID;
153
+ threadId: z.ZodNullable<z.ZodString>;
154
+ internetMessageId: z.ZodNullable<z.ZodString>;
155
+ mailboxIds: z.ZodArray<z.ZodUUID>;
156
+ subject: z.ZodNullable<z.ZodString>;
157
+ from: z.ZodNullable<z.ZodObject<{
158
+ name: z.ZodNullable<z.ZodString>;
159
+ address: z.ZodString;
160
+ }, z.core.$strip>>;
161
+ to: z.ZodArray<z.ZodObject<{
162
+ name: z.ZodNullable<z.ZodString>;
163
+ address: z.ZodString;
164
+ }, z.core.$strip>>;
165
+ cc: z.ZodArray<z.ZodObject<{
166
+ name: z.ZodNullable<z.ZodString>;
167
+ address: z.ZodString;
168
+ }, z.core.$strip>>;
169
+ snippet: z.ZodNullable<z.ZodString>;
170
+ receivedAt: z.ZodNullable<z.ZodPreprocess<z.ZodDate, Date>>;
171
+ sentAt: z.ZodNullable<z.ZodPreprocess<z.ZodDate, Date>>;
172
+ isRead: z.ZodBoolean;
173
+ isFlagged: z.ZodBoolean;
174
+ isDraft: z.ZodBoolean;
175
+ hasAttachments: z.ZodBoolean;
176
+ categories: z.ZodArray<z.ZodString>;
177
+ direction: z.ZodEnum<{
178
+ inbound: "inbound";
179
+ outbound: "outbound";
180
+ }>;
181
+ outboxId: z.ZodNullable<z.ZodUUID>;
182
+ reference: z.ZodNullable<z.ZodString>;
183
+ importance: z.ZodNullable<z.ZodEnum<{
184
+ normal: "normal";
185
+ high: "high";
186
+ low: "low";
187
+ }>>;
188
+ }, z.core.$strip>;
189
+ mailboxes: z.ZodArray<z.ZodObject<{
190
+ id: z.ZodUUID;
191
+ name: z.ZodString;
192
+ role: z.ZodEnum<{
193
+ custom: "custom";
194
+ inbox: "inbox";
195
+ sent: "sent";
196
+ drafts: "drafts";
197
+ trash: "trash";
198
+ junk: "junk";
199
+ archive: "archive";
200
+ all: "all";
201
+ important: "important";
202
+ }>;
203
+ }, z.core.$strip>>;
204
+ }, z.core.$strip>;
205
+ export type MessageData = z.infer<typeof MessageData>;
206
+ export declare const MessageUpdatedData: z.ZodObject<{
207
+ message: z.ZodObject<{
208
+ id: z.ZodUUID;
209
+ threadId: z.ZodNullable<z.ZodString>;
210
+ internetMessageId: z.ZodNullable<z.ZodString>;
211
+ mailboxIds: z.ZodArray<z.ZodUUID>;
212
+ subject: z.ZodNullable<z.ZodString>;
213
+ from: z.ZodNullable<z.ZodObject<{
214
+ name: z.ZodNullable<z.ZodString>;
215
+ address: z.ZodString;
216
+ }, z.core.$strip>>;
217
+ to: z.ZodArray<z.ZodObject<{
218
+ name: z.ZodNullable<z.ZodString>;
219
+ address: z.ZodString;
220
+ }, z.core.$strip>>;
221
+ cc: z.ZodArray<z.ZodObject<{
222
+ name: z.ZodNullable<z.ZodString>;
223
+ address: z.ZodString;
224
+ }, z.core.$strip>>;
225
+ snippet: z.ZodNullable<z.ZodString>;
226
+ receivedAt: z.ZodNullable<z.ZodPreprocess<z.ZodDate, Date>>;
227
+ sentAt: z.ZodNullable<z.ZodPreprocess<z.ZodDate, Date>>;
228
+ isRead: z.ZodBoolean;
229
+ isFlagged: z.ZodBoolean;
230
+ isDraft: z.ZodBoolean;
231
+ hasAttachments: z.ZodBoolean;
232
+ categories: z.ZodArray<z.ZodString>;
233
+ direction: z.ZodEnum<{
234
+ inbound: "inbound";
235
+ outbound: "outbound";
236
+ }>;
237
+ outboxId: z.ZodNullable<z.ZodUUID>;
238
+ reference: z.ZodNullable<z.ZodString>;
239
+ importance: z.ZodNullable<z.ZodEnum<{
240
+ normal: "normal";
241
+ high: "high";
242
+ low: "low";
243
+ }>>;
244
+ }, z.core.$strip>;
245
+ mailboxes: z.ZodArray<z.ZodObject<{
246
+ id: z.ZodUUID;
247
+ name: z.ZodString;
248
+ role: z.ZodEnum<{
249
+ custom: "custom";
250
+ inbox: "inbox";
251
+ sent: "sent";
252
+ drafts: "drafts";
253
+ trash: "trash";
254
+ junk: "junk";
255
+ archive: "archive";
256
+ all: "all";
257
+ important: "important";
258
+ }>;
259
+ }, z.core.$strip>>;
260
+ changes: z.ZodArray<z.ZodEnum<{
261
+ from: "from";
262
+ to: "to";
263
+ subject: "subject";
264
+ snippet: "snippet";
265
+ categories: "categories";
266
+ hasAttachments: "hasAttachments";
267
+ direction: "direction";
268
+ threadId: "threadId";
269
+ internetMessageId: "internetMessageId";
270
+ mailboxIds: "mailboxIds";
271
+ cc: "cc";
272
+ receivedAt: "receivedAt";
273
+ sentAt: "sentAt";
274
+ isRead: "isRead";
275
+ isFlagged: "isFlagged";
276
+ isDraft: "isDraft";
277
+ outboxId: "outboxId";
278
+ importance: "importance";
279
+ bcc: "bcc";
280
+ replyTo: "replyTo";
281
+ }>>;
282
+ }, z.core.$strip>;
283
+ export type MessageUpdatedData = z.infer<typeof MessageUpdatedData>;
284
+ export declare const MessageDeletedData: z.ZodObject<{
285
+ message: z.ZodObject<{
286
+ id: z.ZodUUID;
287
+ threadId: z.ZodNullable<z.ZodString>;
288
+ internetMessageId: z.ZodNullable<z.ZodString>;
289
+ mailboxIds: z.ZodArray<z.ZodUUID>;
290
+ subject: z.ZodNullable<z.ZodString>;
291
+ from: z.ZodNullable<z.ZodObject<{
292
+ name: z.ZodNullable<z.ZodString>;
293
+ address: z.ZodString;
294
+ }, z.core.$strip>>;
295
+ to: z.ZodArray<z.ZodObject<{
296
+ name: z.ZodNullable<z.ZodString>;
297
+ address: z.ZodString;
298
+ }, z.core.$strip>>;
299
+ cc: z.ZodArray<z.ZodObject<{
300
+ name: z.ZodNullable<z.ZodString>;
301
+ address: z.ZodString;
302
+ }, z.core.$strip>>;
303
+ snippet: z.ZodNullable<z.ZodString>;
304
+ receivedAt: z.ZodNullable<z.ZodPreprocess<z.ZodDate, Date>>;
305
+ sentAt: z.ZodNullable<z.ZodPreprocess<z.ZodDate, Date>>;
306
+ isRead: z.ZodBoolean;
307
+ isFlagged: z.ZodBoolean;
308
+ isDraft: z.ZodBoolean;
309
+ hasAttachments: z.ZodBoolean;
310
+ categories: z.ZodArray<z.ZodString>;
311
+ direction: z.ZodEnum<{
312
+ inbound: "inbound";
313
+ outbound: "outbound";
314
+ }>;
315
+ outboxId: z.ZodNullable<z.ZodUUID>;
316
+ reference: z.ZodNullable<z.ZodString>;
317
+ importance: z.ZodNullable<z.ZodEnum<{
318
+ normal: "normal";
319
+ high: "high";
320
+ low: "low";
321
+ }>>;
322
+ }, z.core.$strip>;
323
+ mailboxes: z.ZodArray<z.ZodObject<{
324
+ id: z.ZodUUID;
325
+ name: z.ZodString;
326
+ role: z.ZodEnum<{
327
+ custom: "custom";
328
+ inbox: "inbox";
329
+ sent: "sent";
330
+ drafts: "drafts";
331
+ trash: "trash";
332
+ junk: "junk";
333
+ archive: "archive";
334
+ all: "all";
335
+ important: "important";
336
+ }>;
337
+ }, z.core.$strip>>;
338
+ messageId: z.ZodUUID;
339
+ providerMessageId: z.ZodString;
340
+ }, z.core.$strip>;
341
+ export type MessageDeletedData = z.infer<typeof MessageDeletedData>;
342
+ export declare const MessageClassifiedData: z.ZodObject<{
343
+ message: z.ZodObject<{
344
+ id: z.ZodUUID;
345
+ threadId: z.ZodNullable<z.ZodString>;
346
+ internetMessageId: z.ZodNullable<z.ZodString>;
347
+ mailboxIds: z.ZodArray<z.ZodUUID>;
348
+ subject: z.ZodNullable<z.ZodString>;
349
+ from: z.ZodNullable<z.ZodObject<{
350
+ name: z.ZodNullable<z.ZodString>;
351
+ address: z.ZodString;
352
+ }, z.core.$strip>>;
353
+ to: z.ZodArray<z.ZodObject<{
354
+ name: z.ZodNullable<z.ZodString>;
355
+ address: z.ZodString;
356
+ }, z.core.$strip>>;
357
+ cc: z.ZodArray<z.ZodObject<{
358
+ name: z.ZodNullable<z.ZodString>;
359
+ address: z.ZodString;
360
+ }, z.core.$strip>>;
361
+ snippet: z.ZodNullable<z.ZodString>;
362
+ receivedAt: z.ZodNullable<z.ZodPreprocess<z.ZodDate, Date>>;
363
+ sentAt: z.ZodNullable<z.ZodPreprocess<z.ZodDate, Date>>;
364
+ isRead: z.ZodBoolean;
365
+ isFlagged: z.ZodBoolean;
366
+ isDraft: z.ZodBoolean;
367
+ hasAttachments: z.ZodBoolean;
368
+ categories: z.ZodArray<z.ZodString>;
369
+ direction: z.ZodEnum<{
370
+ inbound: "inbound";
371
+ outbound: "outbound";
372
+ }>;
373
+ outboxId: z.ZodNullable<z.ZodUUID>;
374
+ reference: z.ZodNullable<z.ZodString>;
375
+ importance: z.ZodNullable<z.ZodEnum<{
376
+ normal: "normal";
377
+ high: "high";
378
+ low: "low";
379
+ }>>;
380
+ }, z.core.$strip>;
381
+ mailboxes: z.ZodArray<z.ZodObject<{
382
+ id: z.ZodUUID;
383
+ name: z.ZodString;
384
+ role: z.ZodEnum<{
385
+ custom: "custom";
386
+ inbox: "inbox";
387
+ sent: "sent";
388
+ drafts: "drafts";
389
+ trash: "trash";
390
+ junk: "junk";
391
+ archive: "archive";
392
+ all: "all";
393
+ important: "important";
394
+ }>;
395
+ }, z.core.$strip>>;
396
+ classification: z.ZodObject<{
397
+ kind: z.ZodEnum<{
398
+ opt_out: "opt_out";
399
+ auto_reply: "auto_reply";
400
+ bounce: "bounce";
401
+ human_reply: "human_reply";
402
+ }>;
403
+ probabilities: z.ZodRecord<z.ZodString, z.ZodNumber>;
404
+ optOutProbability: z.ZodNumber;
405
+ autoReplyCategory: z.ZodNullable<z.ZodEnum<{
406
+ other: "other";
407
+ out_of_office: "out_of_office";
408
+ left_company: "left_company";
409
+ address_changed: "address_changed";
410
+ ticket_acknowledgment: "ticket_acknowledgment";
411
+ challenge_response: "challenge_response";
412
+ }>>;
413
+ returnDate: z.ZodNullable<z.ZodISODate>;
414
+ alternateContacts: z.ZodArray<z.ZodString>;
415
+ outboxId: z.ZodNullable<z.ZodUUID>;
416
+ model: z.ZodString;
417
+ classifiedAt: z.ZodPreprocess<z.ZodDate, Date>;
418
+ }, z.core.$strip>;
419
+ }, z.core.$strip>;
420
+ export type MessageClassifiedData = z.infer<typeof MessageClassifiedData>;
421
+ export declare const BounceRecipient: z.ZodObject<{
422
+ address: z.ZodString;
423
+ status: z.ZodNullable<z.ZodString>;
424
+ diagnostic: z.ZodNullable<z.ZodString>;
425
+ }, z.core.$strip>;
426
+ export type BounceRecipient = z.infer<typeof BounceRecipient>;
427
+ export declare const MessageBouncedData: z.ZodObject<{
428
+ messageId: z.ZodUUID;
429
+ outboxId: z.ZodNullable<z.ZodUUID>;
430
+ reference: z.ZodNullable<z.ZodString>;
431
+ originalMessageId: z.ZodNullable<z.ZodString>;
432
+ recipients: z.ZodArray<z.ZodObject<{
433
+ address: z.ZodString;
434
+ status: z.ZodNullable<z.ZodString>;
435
+ diagnostic: z.ZodNullable<z.ZodString>;
436
+ }, z.core.$strip>>;
437
+ }, z.core.$strip>;
438
+ export type MessageBouncedData = z.infer<typeof MessageBouncedData>;
439
+ export declare const TrackingHitData: z.ZodObject<{
440
+ url: z.ZodNullable<z.ZodString>;
441
+ method: z.ZodString;
442
+ actor: z.ZodEnum<{
443
+ unknown: "unknown";
444
+ human: "human";
445
+ proxy: "proxy";
446
+ prefetch: "prefetch";
447
+ scanner: "scanner";
448
+ }>;
449
+ userAgent: z.ZodNullable<z.ZodString>;
450
+ client: z.ZodEnum<{
451
+ unknown: "unknown";
452
+ gmail_proxy: "gmail_proxy";
453
+ gmail_web: "gmail_web";
454
+ gmail_app: "gmail_app";
455
+ outlook_web: "outlook_web";
456
+ outlook_desktop: "outlook_desktop";
457
+ outlook_mobile: "outlook_mobile";
458
+ apple_mail: "apple_mail";
459
+ apple_mail_privacy: "apple_mail_privacy";
460
+ yahoo: "yahoo";
461
+ aol: "aol";
462
+ thunderbird: "thunderbird";
463
+ proton: "proton";
464
+ fastmail: "fastmail";
465
+ zoho: "zoho";
466
+ icloud_web: "icloud_web";
467
+ webmail: "webmail";
468
+ }>;
469
+ device: z.ZodEnum<{
470
+ unknown: "unknown";
471
+ mobile: "mobile";
472
+ desktop: "desktop";
473
+ tablet: "tablet";
474
+ bot: "bot";
475
+ }>;
476
+ secFetch: z.ZodObject<{
477
+ dest: z.ZodNullable<z.ZodString>;
478
+ mode: z.ZodNullable<z.ZodString>;
479
+ site: z.ZodNullable<z.ZodString>;
480
+ user: z.ZodNullable<z.ZodBoolean>;
481
+ }, z.core.$strip>;
482
+ refererHost: z.ZodNullable<z.ZodString>;
483
+ originHost: z.ZodNullable<z.ZodString>;
484
+ os: z.ZodNullable<z.ZodEnum<{
485
+ windows: "windows";
486
+ macos: "macos";
487
+ ios: "ios";
488
+ ipados: "ipados";
489
+ android: "android";
490
+ linux: "linux";
491
+ chromeos: "chromeos";
492
+ }>>;
493
+ browser: z.ZodNullable<z.ZodEnum<{
494
+ chrome: "chrome";
495
+ edge: "edge";
496
+ firefox: "firefox";
497
+ safari: "safari";
498
+ opera: "opera";
499
+ samsung: "samsung";
500
+ }>>;
501
+ country: z.ZodNullable<z.ZodString>;
502
+ region: z.ZodNullable<z.ZodString>;
503
+ city: z.ZodNullable<z.ZodString>;
504
+ timezone: z.ZodNullable<z.ZodString>;
505
+ latitude: z.ZodNullable<z.ZodNumber>;
506
+ longitude: z.ZodNullable<z.ZodNumber>;
507
+ secondsAfterSend: z.ZodNullable<z.ZodNumber>;
508
+ secondsSincePrevious: z.ZodNullable<z.ZodNumber>;
509
+ sequence: z.ZodNumber;
510
+ isConditional: z.ZodBoolean;
511
+ isRange: z.ZodBoolean;
512
+ isPrefetch: z.ZodBoolean;
513
+ occurredAt: z.ZodPreprocess<z.ZodDate, Date>;
514
+ reasons: z.ZodArray<z.ZodString>;
515
+ isMachine: z.ZodBoolean;
516
+ outboxId: z.ZodUUID;
517
+ reference: z.ZodNullable<z.ZodString>;
518
+ messageId: z.ZodNullable<z.ZodUUID>;
519
+ }, z.core.$strip>;
520
+ export type TrackingHitData = z.infer<typeof TrackingHitData>;
521
+ export declare const SendError: z.ZodObject<{
522
+ code: z.ZodString;
523
+ message: z.ZodString;
524
+ }, z.core.$strip>;
525
+ export type SendError = z.infer<typeof SendError>;
526
+ export declare const SendSentData: z.ZodObject<{
527
+ attempt: z.ZodNumber;
528
+ providerMessageId: z.ZodNullable<z.ZodString>;
529
+ internetMessageId: z.ZodNullable<z.ZodString>;
530
+ sentAt: z.ZodPreprocess<z.ZodDate, Date>;
531
+ outboxId: z.ZodUUID;
532
+ reference: z.ZodNullable<z.ZodString>;
533
+ }, z.core.$strip>;
534
+ export type SendSentData = z.infer<typeof SendSentData>;
535
+ export declare const SendRetryingData: z.ZodObject<{
536
+ attempt: z.ZodNumber;
537
+ nextAttemptAt: z.ZodPreprocess<z.ZodDate, Date>;
538
+ error: z.ZodObject<{
539
+ code: z.ZodString;
540
+ message: z.ZodString;
541
+ }, z.core.$strip>;
542
+ outboxId: z.ZodUUID;
543
+ reference: z.ZodNullable<z.ZodString>;
544
+ }, z.core.$strip>;
545
+ export type SendRetryingData = z.infer<typeof SendRetryingData>;
546
+ export declare const SendFailedData: z.ZodObject<{
547
+ attempt: z.ZodNumber;
548
+ error: z.ZodObject<{
549
+ code: z.ZodString;
550
+ message: z.ZodString;
551
+ }, z.core.$strip>;
552
+ outboxId: z.ZodUUID;
553
+ reference: z.ZodNullable<z.ZodString>;
554
+ }, z.core.$strip>;
555
+ export type SendFailedData = z.infer<typeof SendFailedData>;
556
+ export declare const SendRescheduledData: z.ZodObject<{
557
+ sendAt: z.ZodPreprocess<z.ZodDate, Date>;
558
+ previousSendAt: z.ZodPreprocess<z.ZodDate, Date>;
559
+ outboxId: z.ZodUUID;
560
+ reference: z.ZodNullable<z.ZodString>;
561
+ }, z.core.$strip>;
562
+ export type SendRescheduledData = z.infer<typeof SendRescheduledData>;
563
+ export declare const SuppressionCreatedData: z.ZodObject<{
564
+ listId: z.ZodString;
565
+ address: z.ZodString;
566
+ source: z.ZodEnum<{
567
+ api: "api";
568
+ bounce: "bounce";
569
+ unsubscribe: "unsubscribe";
570
+ reply: "reply";
571
+ complaint: "complaint";
572
+ inactive: "inactive";
573
+ }>;
574
+ }, z.core.$strip>;
575
+ export type SuppressionCreatedData = z.infer<typeof SuppressionCreatedData>;
576
+ export declare const CalendarInitializedData: z.ZodObject<{
577
+ calendars: z.ZodNumber;
578
+ events: z.ZodNumber;
579
+ }, z.core.$strip>;
580
+ export type CalendarInitializedData = z.infer<typeof CalendarInitializedData>;
581
+ export declare const CalendarData: z.ZodObject<{
582
+ calendar: z.ZodObject<{
583
+ id: z.ZodUUID;
584
+ name: z.ZodString;
585
+ description: z.ZodNullable<z.ZodString>;
586
+ owner: z.ZodNullable<z.ZodObject<{
587
+ name: z.ZodNullable<z.ZodString>;
588
+ address: z.ZodString;
589
+ }, z.core.$strip>>;
590
+ isPrimary: z.ZodBoolean;
591
+ access: z.ZodEnum<{
592
+ owner: "owner";
593
+ writer: "writer";
594
+ reader: "reader";
595
+ freebusy: "freebusy";
596
+ }>;
597
+ canEdit: z.ZodBoolean;
598
+ color: z.ZodNullable<z.ZodString>;
599
+ timeZone: z.ZodNullable<z.ZodString>;
600
+ isHidden: z.ZodBoolean;
601
+ }, z.core.$strip>;
602
+ }, z.core.$strip>;
603
+ export type CalendarData = z.infer<typeof CalendarData>;
604
+ export declare const CalendarUpdatedData: z.ZodObject<{
605
+ calendar: z.ZodObject<{
606
+ id: z.ZodUUID;
607
+ name: z.ZodString;
608
+ description: z.ZodNullable<z.ZodString>;
609
+ owner: z.ZodNullable<z.ZodObject<{
610
+ name: z.ZodNullable<z.ZodString>;
611
+ address: z.ZodString;
612
+ }, z.core.$strip>>;
613
+ isPrimary: z.ZodBoolean;
614
+ access: z.ZodEnum<{
615
+ owner: "owner";
616
+ writer: "writer";
617
+ reader: "reader";
618
+ freebusy: "freebusy";
619
+ }>;
620
+ canEdit: z.ZodBoolean;
621
+ color: z.ZodNullable<z.ZodString>;
622
+ timeZone: z.ZodNullable<z.ZodString>;
623
+ isHidden: z.ZodBoolean;
624
+ }, z.core.$strip>;
625
+ changes: z.ZodArray<z.ZodEnum<{
626
+ description: "description";
627
+ name: "name";
628
+ owner: "owner";
629
+ access: "access";
630
+ isPrimary: "isPrimary";
631
+ canEdit: "canEdit";
632
+ color: "color";
633
+ timeZone: "timeZone";
634
+ isHidden: "isHidden";
635
+ }>>;
636
+ }, z.core.$strip>;
637
+ export type CalendarUpdatedData = z.infer<typeof CalendarUpdatedData>;
638
+ export declare const CalendarEventData: z.ZodObject<{
639
+ event: z.ZodObject<{
640
+ id: z.ZodUUID;
641
+ calendarId: z.ZodUUID;
642
+ kind: z.ZodEnum<{
643
+ single: "single";
644
+ series: "series";
645
+ occurrence: "occurrence";
646
+ exception: "exception";
647
+ }>;
648
+ seriesId: z.ZodNullable<z.ZodUUID>;
649
+ originalStart: z.ZodNullable<z.ZodPreprocess<z.ZodDate, Date>>;
650
+ subject: z.ZodNullable<z.ZodString>;
651
+ snippet: z.ZodNullable<z.ZodString>;
652
+ location: z.ZodNullable<z.ZodString>;
653
+ start: z.ZodObject<{
654
+ dateTime: z.ZodPreprocess<z.ZodDate, Date>;
655
+ date: z.ZodNullable<z.ZodISODate>;
656
+ timeZone: z.ZodNullable<z.ZodString>;
657
+ }, z.core.$strip>;
658
+ end: z.ZodObject<{
659
+ dateTime: z.ZodPreprocess<z.ZodDate, Date>;
660
+ date: z.ZodNullable<z.ZodISODate>;
661
+ timeZone: z.ZodNullable<z.ZodString>;
662
+ }, z.core.$strip>;
663
+ isAllDay: z.ZodBoolean;
664
+ organizer: z.ZodNullable<z.ZodObject<{
665
+ name: z.ZodNullable<z.ZodString>;
666
+ address: z.ZodString;
667
+ }, z.core.$strip>>;
668
+ attendees: z.ZodArray<z.ZodObject<{
669
+ name: z.ZodNullable<z.ZodString>;
670
+ address: z.ZodString;
671
+ type: z.ZodEnum<{
672
+ optional: "optional";
673
+ required: "required";
674
+ resource: "resource";
675
+ }>;
676
+ response: z.ZodEnum<{
677
+ none: "none";
678
+ organizer: "organizer";
679
+ accepted: "accepted";
680
+ tentative: "tentative";
681
+ declined: "declined";
682
+ needs_action: "needs_action";
683
+ }>;
684
+ }, z.core.$strip>>;
685
+ isOrganizer: z.ZodBoolean;
686
+ selfResponse: z.ZodEnum<{
687
+ none: "none";
688
+ organizer: "organizer";
689
+ accepted: "accepted";
690
+ tentative: "tentative";
691
+ declined: "declined";
692
+ needs_action: "needs_action";
693
+ }>;
694
+ status: z.ZodEnum<{
695
+ tentative: "tentative";
696
+ confirmed: "confirmed";
697
+ cancelled: "cancelled";
698
+ }>;
699
+ showAs: z.ZodEnum<{
700
+ unknown: "unknown";
701
+ tentative: "tentative";
702
+ free: "free";
703
+ busy: "busy";
704
+ oof: "oof";
705
+ working_elsewhere: "working_elsewhere";
706
+ }>;
707
+ sensitivity: z.ZodEnum<{
708
+ normal: "normal";
709
+ personal: "personal";
710
+ private: "private";
711
+ confidential: "confidential";
712
+ }>;
713
+ onlineMeetingUrl: z.ZodNullable<z.ZodString>;
714
+ onlineMeetingProvider: z.ZodNullable<z.ZodString>;
715
+ iCalUid: z.ZodNullable<z.ZodString>;
716
+ recurrence: z.ZodNullable<z.ZodArray<z.ZodString>>;
717
+ recurrenceTimeZone: z.ZodNullable<z.ZodString>;
718
+ cancelledStarts: z.ZodNullable<z.ZodArray<z.ZodPreprocess<z.ZodDate, Date>>>;
719
+ categories: z.ZodArray<z.ZodString>;
720
+ hasAttachments: z.ZodBoolean;
721
+ reminderMinutes: z.ZodNullable<z.ZodNumber>;
722
+ webLink: z.ZodNullable<z.ZodString>;
723
+ updatedAt: z.ZodPreprocess<z.ZodDate, Date>;
724
+ }, z.core.$strip>;
725
+ }, z.core.$strip>;
726
+ export type CalendarEventData = z.infer<typeof CalendarEventData>;
727
+ export declare const CalendarEventUpdatedData: z.ZodObject<{
728
+ event: z.ZodObject<{
729
+ id: z.ZodUUID;
730
+ calendarId: z.ZodUUID;
731
+ kind: z.ZodEnum<{
732
+ single: "single";
733
+ series: "series";
734
+ occurrence: "occurrence";
735
+ exception: "exception";
736
+ }>;
737
+ seriesId: z.ZodNullable<z.ZodUUID>;
738
+ originalStart: z.ZodNullable<z.ZodPreprocess<z.ZodDate, Date>>;
739
+ subject: z.ZodNullable<z.ZodString>;
740
+ snippet: z.ZodNullable<z.ZodString>;
741
+ location: z.ZodNullable<z.ZodString>;
742
+ start: z.ZodObject<{
743
+ dateTime: z.ZodPreprocess<z.ZodDate, Date>;
744
+ date: z.ZodNullable<z.ZodISODate>;
745
+ timeZone: z.ZodNullable<z.ZodString>;
746
+ }, z.core.$strip>;
747
+ end: z.ZodObject<{
748
+ dateTime: z.ZodPreprocess<z.ZodDate, Date>;
749
+ date: z.ZodNullable<z.ZodISODate>;
750
+ timeZone: z.ZodNullable<z.ZodString>;
751
+ }, z.core.$strip>;
752
+ isAllDay: z.ZodBoolean;
753
+ organizer: z.ZodNullable<z.ZodObject<{
754
+ name: z.ZodNullable<z.ZodString>;
755
+ address: z.ZodString;
756
+ }, z.core.$strip>>;
757
+ attendees: z.ZodArray<z.ZodObject<{
758
+ name: z.ZodNullable<z.ZodString>;
759
+ address: z.ZodString;
760
+ type: z.ZodEnum<{
761
+ optional: "optional";
762
+ required: "required";
763
+ resource: "resource";
764
+ }>;
765
+ response: z.ZodEnum<{
766
+ none: "none";
767
+ organizer: "organizer";
768
+ accepted: "accepted";
769
+ tentative: "tentative";
770
+ declined: "declined";
771
+ needs_action: "needs_action";
772
+ }>;
773
+ }, z.core.$strip>>;
774
+ isOrganizer: z.ZodBoolean;
775
+ selfResponse: z.ZodEnum<{
776
+ none: "none";
777
+ organizer: "organizer";
778
+ accepted: "accepted";
779
+ tentative: "tentative";
780
+ declined: "declined";
781
+ needs_action: "needs_action";
782
+ }>;
783
+ status: z.ZodEnum<{
784
+ tentative: "tentative";
785
+ confirmed: "confirmed";
786
+ cancelled: "cancelled";
787
+ }>;
788
+ showAs: z.ZodEnum<{
789
+ unknown: "unknown";
790
+ tentative: "tentative";
791
+ free: "free";
792
+ busy: "busy";
793
+ oof: "oof";
794
+ working_elsewhere: "working_elsewhere";
795
+ }>;
796
+ sensitivity: z.ZodEnum<{
797
+ normal: "normal";
798
+ personal: "personal";
799
+ private: "private";
800
+ confidential: "confidential";
801
+ }>;
802
+ onlineMeetingUrl: z.ZodNullable<z.ZodString>;
803
+ onlineMeetingProvider: z.ZodNullable<z.ZodString>;
804
+ iCalUid: z.ZodNullable<z.ZodString>;
805
+ recurrence: z.ZodNullable<z.ZodArray<z.ZodString>>;
806
+ recurrenceTimeZone: z.ZodNullable<z.ZodString>;
807
+ cancelledStarts: z.ZodNullable<z.ZodArray<z.ZodPreprocess<z.ZodDate, Date>>>;
808
+ categories: z.ZodArray<z.ZodString>;
809
+ hasAttachments: z.ZodBoolean;
810
+ reminderMinutes: z.ZodNullable<z.ZodNumber>;
811
+ webLink: z.ZodNullable<z.ZodString>;
812
+ updatedAt: z.ZodPreprocess<z.ZodDate, Date>;
813
+ }, z.core.$strip>;
814
+ changes: z.ZodArray<z.ZodEnum<{
815
+ status: "status";
816
+ kind: "kind";
817
+ organizer: "organizer";
818
+ start: "start";
819
+ end: "end";
820
+ selfResponse: "selfResponse";
821
+ showAs: "showAs";
822
+ sensitivity: "sensitivity";
823
+ originalStart: "originalStart";
824
+ subject: "subject";
825
+ snippet: "snippet";
826
+ location: "location";
827
+ isAllDay: "isAllDay";
828
+ attendees: "attendees";
829
+ isOrganizer: "isOrganizer";
830
+ onlineMeetingUrl: "onlineMeetingUrl";
831
+ onlineMeetingProvider: "onlineMeetingProvider";
832
+ iCalUid: "iCalUid";
833
+ recurrence: "recurrence";
834
+ recurrenceTimeZone: "recurrenceTimeZone";
835
+ cancelledStarts: "cancelledStarts";
836
+ categories: "categories";
837
+ hasAttachments: "hasAttachments";
838
+ reminderMinutes: "reminderMinutes";
839
+ webLink: "webLink";
840
+ }>>;
841
+ }, z.core.$strip>;
842
+ export type CalendarEventUpdatedData = z.infer<typeof CalendarEventUpdatedData>;
843
+ export declare const CalendarEventDeletedData: z.ZodObject<{
844
+ eventId: z.ZodUUID;
845
+ calendarId: z.ZodUUID;
846
+ kind: z.ZodEnum<{
847
+ single: "single";
848
+ series: "series";
849
+ occurrence: "occurrence";
850
+ exception: "exception";
851
+ }>;
852
+ seriesId: z.ZodNullable<z.ZodUUID>;
853
+ }, z.core.$strip>;
854
+ export type CalendarEventDeletedData = z.infer<typeof CalendarEventDeletedData>;
855
+ export declare const ContactsInitializedData: z.ZodObject<{
856
+ contacts: z.ZodNumber;
857
+ }, z.core.$strip>;
858
+ export type ContactsInitializedData = z.infer<typeof ContactsInitializedData>;
859
+ export declare const ContactData: z.ZodObject<{
860
+ contact: z.ZodObject<{
861
+ id: z.ZodUUID;
862
+ folderId: z.ZodNullable<z.ZodUUID>;
863
+ displayName: z.ZodNullable<z.ZodString>;
864
+ givenName: z.ZodNullable<z.ZodString>;
865
+ middleName: z.ZodNullable<z.ZodString>;
866
+ familyName: z.ZodNullable<z.ZodString>;
867
+ nickname: z.ZodNullable<z.ZodString>;
868
+ emails: z.ZodArray<z.ZodObject<{
869
+ address: z.ZodString;
870
+ type: z.ZodNullable<z.ZodEnum<{
871
+ home: "home";
872
+ work: "work";
873
+ other: "other";
874
+ }>>;
875
+ }, z.core.$strip>>;
876
+ phones: z.ZodArray<z.ZodObject<{
877
+ number: z.ZodString;
878
+ type: z.ZodNullable<z.ZodEnum<{
879
+ home: "home";
880
+ work: "work";
881
+ other: "other";
882
+ mobile: "mobile";
883
+ }>>;
884
+ }, z.core.$strip>>;
885
+ organization: z.ZodNullable<z.ZodString>;
886
+ jobTitle: z.ZodNullable<z.ZodString>;
887
+ department: z.ZodNullable<z.ZodString>;
888
+ birthday: z.ZodNullable<z.ZodString>;
889
+ notes: z.ZodNullable<z.ZodString>;
890
+ hasPhoto: z.ZodNullable<z.ZodBoolean>;
891
+ updatedAt: z.ZodPreprocess<z.ZodDate, Date>;
892
+ }, z.core.$strip>;
893
+ }, z.core.$strip>;
894
+ export type ContactData = z.infer<typeof ContactData>;
895
+ export declare const ContactUpdatedData: z.ZodObject<{
896
+ contact: z.ZodObject<{
897
+ id: z.ZodUUID;
898
+ folderId: z.ZodNullable<z.ZodUUID>;
899
+ displayName: z.ZodNullable<z.ZodString>;
900
+ givenName: z.ZodNullable<z.ZodString>;
901
+ middleName: z.ZodNullable<z.ZodString>;
902
+ familyName: z.ZodNullable<z.ZodString>;
903
+ nickname: z.ZodNullable<z.ZodString>;
904
+ emails: z.ZodArray<z.ZodObject<{
905
+ address: z.ZodString;
906
+ type: z.ZodNullable<z.ZodEnum<{
907
+ home: "home";
908
+ work: "work";
909
+ other: "other";
910
+ }>>;
911
+ }, z.core.$strip>>;
912
+ phones: z.ZodArray<z.ZodObject<{
913
+ number: z.ZodString;
914
+ type: z.ZodNullable<z.ZodEnum<{
915
+ home: "home";
916
+ work: "work";
917
+ other: "other";
918
+ mobile: "mobile";
919
+ }>>;
920
+ }, z.core.$strip>>;
921
+ organization: z.ZodNullable<z.ZodString>;
922
+ jobTitle: z.ZodNullable<z.ZodString>;
923
+ department: z.ZodNullable<z.ZodString>;
924
+ birthday: z.ZodNullable<z.ZodString>;
925
+ notes: z.ZodNullable<z.ZodString>;
926
+ hasPhoto: z.ZodNullable<z.ZodBoolean>;
927
+ updatedAt: z.ZodPreprocess<z.ZodDate, Date>;
928
+ }, z.core.$strip>;
929
+ changes: z.ZodArray<z.ZodEnum<{
930
+ displayName: "displayName";
931
+ folderId: "folderId";
932
+ givenName: "givenName";
933
+ middleName: "middleName";
934
+ familyName: "familyName";
935
+ nickname: "nickname";
936
+ emails: "emails";
937
+ phones: "phones";
938
+ organization: "organization";
939
+ jobTitle: "jobTitle";
940
+ department: "department";
941
+ birthday: "birthday";
942
+ notes: "notes";
943
+ hasPhoto: "hasPhoto";
944
+ photo: "photo";
945
+ }>>;
946
+ }, z.core.$strip>;
947
+ export type ContactUpdatedData = z.infer<typeof ContactUpdatedData>;
948
+ export declare const ContactDeletedData: z.ZodObject<{
949
+ contactId: z.ZodUUID;
950
+ folderId: z.ZodNullable<z.ZodUUID>;
951
+ }, z.core.$strip>;
952
+ export type ContactDeletedData = z.infer<typeof ContactDeletedData>;
953
+ export declare const WebhookTestData: z.ZodObject<{
954
+ endpointId: z.ZodUUID;
955
+ }, z.core.$strip>;
956
+ export type WebhookTestData = z.infer<typeof WebhookTestData>;
957
+ export declare const ExportCompletedData: z.ZodObject<{
958
+ exportId: z.ZodUUID;
959
+ bytes: z.ZodNumber;
960
+ sha256: z.ZodString;
961
+ expiresAt: z.ZodPreprocess<z.ZodDate, Date>;
962
+ }, z.core.$strip>;
963
+ export type ExportCompletedData = z.infer<typeof ExportCompletedData>;
964
+ export declare const ExportFailedData: z.ZodObject<{
965
+ exportId: z.ZodUUID;
966
+ error: z.ZodString;
967
+ }, z.core.$strip>;
968
+ export type ExportFailedData = z.infer<typeof ExportFailedData>;
969
+ export declare const MeetingConnectionConnectedData: z.ZodObject<{
970
+ service: z.ZodEnum<{
971
+ zoom: "zoom";
972
+ webex: "webex";
973
+ }>;
974
+ email: z.ZodString;
975
+ reconnected: z.ZodBoolean;
976
+ }, z.core.$strip>;
977
+ export type MeetingConnectionConnectedData = z.infer<typeof MeetingConnectionConnectedData>;
978
+ export declare const MeetingConnectionReauthRequiredData: z.ZodObject<{
979
+ email: z.ZodString;
980
+ service: z.ZodEnum<{
981
+ zoom: "zoom";
982
+ webex: "webex";
983
+ }>;
984
+ reason: z.ZodString;
985
+ }, z.core.$strip>;
986
+ export type MeetingConnectionReauthRequiredData = z.infer<typeof MeetingConnectionReauthRequiredData>;
987
+ /**
988
+ * Which accounts an event's envelope names. account: always the account it concerns; tenant:
989
+ * never (accountId is null); either: an account, or null for the whole tenant.
990
+ */
991
+ export type EventScope = "account" | "tenant" | "either";
992
+ /** Every event type: its scope, its `data` and what it announces. */
993
+ export declare const EVENTS: {
994
+ "account.connected": {
995
+ scope: "account";
996
+ data: z.ZodObject<{
997
+ email: z.ZodString;
998
+ provider: z.ZodEnum<{
999
+ gmail: "gmail";
1000
+ graph: "graph";
1001
+ imap: "imap";
1002
+ }>;
1003
+ cloud: z.ZodNullable<z.ZodEnum<{
1004
+ global: "global";
1005
+ "gcc-high": "gcc-high";
1006
+ dod: "dod";
1007
+ china: "china";
1008
+ }>>;
1009
+ externalRef: z.ZodNullable<z.ZodString>;
1010
+ reauthorized: z.ZodBoolean;
1011
+ }, z.core.$strip>;
1012
+ description: string;
1013
+ };
1014
+ "account.updated": {
1015
+ scope: "account";
1016
+ data: z.ZodObject<{
1017
+ fields: z.ZodArray<z.ZodEnum<{
1018
+ imap: "imap";
1019
+ dav: "dav";
1020
+ status: "status";
1021
+ settings: "settings";
1022
+ externalRef: "externalRef";
1023
+ credentials: "credentials";
1024
+ }>>;
1025
+ }, z.core.$strip>;
1026
+ description: string;
1027
+ };
1028
+ "account.deleted": {
1029
+ scope: "account";
1030
+ data: z.ZodObject<{
1031
+ email: z.ZodString;
1032
+ externalRef: z.ZodNullable<z.ZodString>;
1033
+ purge: z.ZodBoolean;
1034
+ }, z.core.$strip>;
1035
+ description: string;
1036
+ };
1037
+ "account.reauth_required": {
1038
+ scope: "account";
1039
+ data: z.ZodObject<{
1040
+ email: z.ZodString;
1041
+ provider: z.ZodEnum<{
1042
+ gmail: "gmail";
1043
+ graph: "graph";
1044
+ imap: "imap";
1045
+ }>;
1046
+ externalRef: z.ZodNullable<z.ZodString>;
1047
+ cloud: z.ZodNullable<z.ZodEnum<{
1048
+ global: "global";
1049
+ "gcc-high": "gcc-high";
1050
+ dod: "dod";
1051
+ china: "china";
1052
+ }>>;
1053
+ reason: z.ZodString;
1054
+ }, z.core.$strip>;
1055
+ description: string;
1056
+ };
1057
+ "account.initialized": {
1058
+ scope: "account";
1059
+ data: z.ZodObject<{
1060
+ mailboxes: z.ZodNumber;
1061
+ messages: z.ZodNumber;
1062
+ }, z.core.$strip>;
1063
+ description: string;
1064
+ };
1065
+ "account.purged": {
1066
+ scope: "tenant";
1067
+ data: z.ZodObject<{
1068
+ accountId: z.ZodUUID;
1069
+ externalRef: z.ZodNullable<z.ZodString>;
1070
+ }, z.core.$strip>;
1071
+ description: string;
1072
+ };
1073
+ "mailbox.created": {
1074
+ scope: "account";
1075
+ data: z.ZodObject<{
1076
+ mailbox: z.ZodObject<{
1077
+ id: z.ZodUUID;
1078
+ name: z.ZodString;
1079
+ path: z.ZodString;
1080
+ parentId: z.ZodNullable<z.ZodUUID>;
1081
+ role: z.ZodEnum<{
1082
+ custom: "custom";
1083
+ inbox: "inbox";
1084
+ sent: "sent";
1085
+ drafts: "drafts";
1086
+ trash: "trash";
1087
+ junk: "junk";
1088
+ archive: "archive";
1089
+ all: "all";
1090
+ important: "important";
1091
+ }>;
1092
+ kind: z.ZodEnum<{
1093
+ label: "label";
1094
+ folder: "folder";
1095
+ }>;
1096
+ totalCount: z.ZodNullable<z.ZodNumber>;
1097
+ unreadCount: z.ZodNullable<z.ZodNumber>;
1098
+ }, z.core.$strip>;
1099
+ }, z.core.$strip>;
1100
+ description: string;
1101
+ };
1102
+ "mailbox.updated": {
1103
+ scope: "account";
1104
+ data: z.ZodObject<{
1105
+ mailbox: z.ZodObject<{
1106
+ id: z.ZodUUID;
1107
+ name: z.ZodString;
1108
+ path: z.ZodString;
1109
+ parentId: z.ZodNullable<z.ZodUUID>;
1110
+ role: z.ZodEnum<{
1111
+ custom: "custom";
1112
+ inbox: "inbox";
1113
+ sent: "sent";
1114
+ drafts: "drafts";
1115
+ trash: "trash";
1116
+ junk: "junk";
1117
+ archive: "archive";
1118
+ all: "all";
1119
+ important: "important";
1120
+ }>;
1121
+ kind: z.ZodEnum<{
1122
+ label: "label";
1123
+ folder: "folder";
1124
+ }>;
1125
+ totalCount: z.ZodNullable<z.ZodNumber>;
1126
+ unreadCount: z.ZodNullable<z.ZodNumber>;
1127
+ }, z.core.$strip>;
1128
+ changes: z.ZodArray<z.ZodEnum<{
1129
+ path: "path";
1130
+ name: "name";
1131
+ kind: "kind";
1132
+ role: "role";
1133
+ parentId: "parentId";
1134
+ }>>;
1135
+ }, z.core.$strip>;
1136
+ description: string;
1137
+ };
1138
+ "mailbox.deleted": {
1139
+ scope: "account";
1140
+ data: z.ZodObject<{
1141
+ mailbox: z.ZodObject<{
1142
+ id: z.ZodUUID;
1143
+ name: z.ZodString;
1144
+ path: z.ZodString;
1145
+ parentId: z.ZodNullable<z.ZodUUID>;
1146
+ role: z.ZodEnum<{
1147
+ custom: "custom";
1148
+ inbox: "inbox";
1149
+ sent: "sent";
1150
+ drafts: "drafts";
1151
+ trash: "trash";
1152
+ junk: "junk";
1153
+ archive: "archive";
1154
+ all: "all";
1155
+ important: "important";
1156
+ }>;
1157
+ kind: z.ZodEnum<{
1158
+ label: "label";
1159
+ folder: "folder";
1160
+ }>;
1161
+ totalCount: z.ZodNullable<z.ZodNumber>;
1162
+ unreadCount: z.ZodNullable<z.ZodNumber>;
1163
+ }, z.core.$strip>;
1164
+ }, z.core.$strip>;
1165
+ description: string;
1166
+ };
1167
+ "message.created": {
1168
+ scope: "account";
1169
+ data: z.ZodObject<{
1170
+ message: z.ZodObject<{
1171
+ id: z.ZodUUID;
1172
+ threadId: z.ZodNullable<z.ZodString>;
1173
+ internetMessageId: z.ZodNullable<z.ZodString>;
1174
+ mailboxIds: z.ZodArray<z.ZodUUID>;
1175
+ subject: z.ZodNullable<z.ZodString>;
1176
+ from: z.ZodNullable<z.ZodObject<{
1177
+ name: z.ZodNullable<z.ZodString>;
1178
+ address: z.ZodString;
1179
+ }, z.core.$strip>>;
1180
+ to: z.ZodArray<z.ZodObject<{
1181
+ name: z.ZodNullable<z.ZodString>;
1182
+ address: z.ZodString;
1183
+ }, z.core.$strip>>;
1184
+ cc: z.ZodArray<z.ZodObject<{
1185
+ name: z.ZodNullable<z.ZodString>;
1186
+ address: z.ZodString;
1187
+ }, z.core.$strip>>;
1188
+ snippet: z.ZodNullable<z.ZodString>;
1189
+ receivedAt: z.ZodNullable<z.ZodPreprocess<z.ZodDate, Date>>;
1190
+ sentAt: z.ZodNullable<z.ZodPreprocess<z.ZodDate, Date>>;
1191
+ isRead: z.ZodBoolean;
1192
+ isFlagged: z.ZodBoolean;
1193
+ isDraft: z.ZodBoolean;
1194
+ hasAttachments: z.ZodBoolean;
1195
+ categories: z.ZodArray<z.ZodString>;
1196
+ direction: z.ZodEnum<{
1197
+ inbound: "inbound";
1198
+ outbound: "outbound";
1199
+ }>;
1200
+ outboxId: z.ZodNullable<z.ZodUUID>;
1201
+ reference: z.ZodNullable<z.ZodString>;
1202
+ importance: z.ZodNullable<z.ZodEnum<{
1203
+ normal: "normal";
1204
+ high: "high";
1205
+ low: "low";
1206
+ }>>;
1207
+ }, z.core.$strip>;
1208
+ mailboxes: z.ZodArray<z.ZodObject<{
1209
+ id: z.ZodUUID;
1210
+ name: z.ZodString;
1211
+ role: z.ZodEnum<{
1212
+ custom: "custom";
1213
+ inbox: "inbox";
1214
+ sent: "sent";
1215
+ drafts: "drafts";
1216
+ trash: "trash";
1217
+ junk: "junk";
1218
+ archive: "archive";
1219
+ all: "all";
1220
+ important: "important";
1221
+ }>;
1222
+ }, z.core.$strip>>;
1223
+ }, z.core.$strip>;
1224
+ description: string;
1225
+ };
1226
+ "message.updated": {
1227
+ scope: "account";
1228
+ data: z.ZodObject<{
1229
+ message: z.ZodObject<{
1230
+ id: z.ZodUUID;
1231
+ threadId: z.ZodNullable<z.ZodString>;
1232
+ internetMessageId: z.ZodNullable<z.ZodString>;
1233
+ mailboxIds: z.ZodArray<z.ZodUUID>;
1234
+ subject: z.ZodNullable<z.ZodString>;
1235
+ from: z.ZodNullable<z.ZodObject<{
1236
+ name: z.ZodNullable<z.ZodString>;
1237
+ address: z.ZodString;
1238
+ }, z.core.$strip>>;
1239
+ to: z.ZodArray<z.ZodObject<{
1240
+ name: z.ZodNullable<z.ZodString>;
1241
+ address: z.ZodString;
1242
+ }, z.core.$strip>>;
1243
+ cc: z.ZodArray<z.ZodObject<{
1244
+ name: z.ZodNullable<z.ZodString>;
1245
+ address: z.ZodString;
1246
+ }, z.core.$strip>>;
1247
+ snippet: z.ZodNullable<z.ZodString>;
1248
+ receivedAt: z.ZodNullable<z.ZodPreprocess<z.ZodDate, Date>>;
1249
+ sentAt: z.ZodNullable<z.ZodPreprocess<z.ZodDate, Date>>;
1250
+ isRead: z.ZodBoolean;
1251
+ isFlagged: z.ZodBoolean;
1252
+ isDraft: z.ZodBoolean;
1253
+ hasAttachments: z.ZodBoolean;
1254
+ categories: z.ZodArray<z.ZodString>;
1255
+ direction: z.ZodEnum<{
1256
+ inbound: "inbound";
1257
+ outbound: "outbound";
1258
+ }>;
1259
+ outboxId: z.ZodNullable<z.ZodUUID>;
1260
+ reference: z.ZodNullable<z.ZodString>;
1261
+ importance: z.ZodNullable<z.ZodEnum<{
1262
+ normal: "normal";
1263
+ high: "high";
1264
+ low: "low";
1265
+ }>>;
1266
+ }, z.core.$strip>;
1267
+ mailboxes: z.ZodArray<z.ZodObject<{
1268
+ id: z.ZodUUID;
1269
+ name: z.ZodString;
1270
+ role: z.ZodEnum<{
1271
+ custom: "custom";
1272
+ inbox: "inbox";
1273
+ sent: "sent";
1274
+ drafts: "drafts";
1275
+ trash: "trash";
1276
+ junk: "junk";
1277
+ archive: "archive";
1278
+ all: "all";
1279
+ important: "important";
1280
+ }>;
1281
+ }, z.core.$strip>>;
1282
+ changes: z.ZodArray<z.ZodEnum<{
1283
+ from: "from";
1284
+ to: "to";
1285
+ subject: "subject";
1286
+ snippet: "snippet";
1287
+ categories: "categories";
1288
+ hasAttachments: "hasAttachments";
1289
+ direction: "direction";
1290
+ threadId: "threadId";
1291
+ internetMessageId: "internetMessageId";
1292
+ mailboxIds: "mailboxIds";
1293
+ cc: "cc";
1294
+ receivedAt: "receivedAt";
1295
+ sentAt: "sentAt";
1296
+ isRead: "isRead";
1297
+ isFlagged: "isFlagged";
1298
+ isDraft: "isDraft";
1299
+ outboxId: "outboxId";
1300
+ importance: "importance";
1301
+ bcc: "bcc";
1302
+ replyTo: "replyTo";
1303
+ }>>;
1304
+ }, z.core.$strip>;
1305
+ description: string;
1306
+ };
1307
+ "message.deleted": {
1308
+ scope: "account";
1309
+ data: z.ZodObject<{
1310
+ message: z.ZodObject<{
1311
+ id: z.ZodUUID;
1312
+ threadId: z.ZodNullable<z.ZodString>;
1313
+ internetMessageId: z.ZodNullable<z.ZodString>;
1314
+ mailboxIds: z.ZodArray<z.ZodUUID>;
1315
+ subject: z.ZodNullable<z.ZodString>;
1316
+ from: z.ZodNullable<z.ZodObject<{
1317
+ name: z.ZodNullable<z.ZodString>;
1318
+ address: z.ZodString;
1319
+ }, z.core.$strip>>;
1320
+ to: z.ZodArray<z.ZodObject<{
1321
+ name: z.ZodNullable<z.ZodString>;
1322
+ address: z.ZodString;
1323
+ }, z.core.$strip>>;
1324
+ cc: z.ZodArray<z.ZodObject<{
1325
+ name: z.ZodNullable<z.ZodString>;
1326
+ address: z.ZodString;
1327
+ }, z.core.$strip>>;
1328
+ snippet: z.ZodNullable<z.ZodString>;
1329
+ receivedAt: z.ZodNullable<z.ZodPreprocess<z.ZodDate, Date>>;
1330
+ sentAt: z.ZodNullable<z.ZodPreprocess<z.ZodDate, Date>>;
1331
+ isRead: z.ZodBoolean;
1332
+ isFlagged: z.ZodBoolean;
1333
+ isDraft: z.ZodBoolean;
1334
+ hasAttachments: z.ZodBoolean;
1335
+ categories: z.ZodArray<z.ZodString>;
1336
+ direction: z.ZodEnum<{
1337
+ inbound: "inbound";
1338
+ outbound: "outbound";
1339
+ }>;
1340
+ outboxId: z.ZodNullable<z.ZodUUID>;
1341
+ reference: z.ZodNullable<z.ZodString>;
1342
+ importance: z.ZodNullable<z.ZodEnum<{
1343
+ normal: "normal";
1344
+ high: "high";
1345
+ low: "low";
1346
+ }>>;
1347
+ }, z.core.$strip>;
1348
+ mailboxes: z.ZodArray<z.ZodObject<{
1349
+ id: z.ZodUUID;
1350
+ name: z.ZodString;
1351
+ role: z.ZodEnum<{
1352
+ custom: "custom";
1353
+ inbox: "inbox";
1354
+ sent: "sent";
1355
+ drafts: "drafts";
1356
+ trash: "trash";
1357
+ junk: "junk";
1358
+ archive: "archive";
1359
+ all: "all";
1360
+ important: "important";
1361
+ }>;
1362
+ }, z.core.$strip>>;
1363
+ messageId: z.ZodUUID;
1364
+ providerMessageId: z.ZodString;
1365
+ }, z.core.$strip>;
1366
+ description: string;
1367
+ };
1368
+ "message.bounced": {
1369
+ scope: "account";
1370
+ data: z.ZodObject<{
1371
+ messageId: z.ZodUUID;
1372
+ outboxId: z.ZodNullable<z.ZodUUID>;
1373
+ reference: z.ZodNullable<z.ZodString>;
1374
+ originalMessageId: z.ZodNullable<z.ZodString>;
1375
+ recipients: z.ZodArray<z.ZodObject<{
1376
+ address: z.ZodString;
1377
+ status: z.ZodNullable<z.ZodString>;
1378
+ diagnostic: z.ZodNullable<z.ZodString>;
1379
+ }, z.core.$strip>>;
1380
+ }, z.core.$strip>;
1381
+ description: string;
1382
+ };
1383
+ "message.classified": {
1384
+ scope: "account";
1385
+ data: z.ZodObject<{
1386
+ message: z.ZodObject<{
1387
+ id: z.ZodUUID;
1388
+ threadId: z.ZodNullable<z.ZodString>;
1389
+ internetMessageId: z.ZodNullable<z.ZodString>;
1390
+ mailboxIds: z.ZodArray<z.ZodUUID>;
1391
+ subject: z.ZodNullable<z.ZodString>;
1392
+ from: z.ZodNullable<z.ZodObject<{
1393
+ name: z.ZodNullable<z.ZodString>;
1394
+ address: z.ZodString;
1395
+ }, z.core.$strip>>;
1396
+ to: z.ZodArray<z.ZodObject<{
1397
+ name: z.ZodNullable<z.ZodString>;
1398
+ address: z.ZodString;
1399
+ }, z.core.$strip>>;
1400
+ cc: z.ZodArray<z.ZodObject<{
1401
+ name: z.ZodNullable<z.ZodString>;
1402
+ address: z.ZodString;
1403
+ }, z.core.$strip>>;
1404
+ snippet: z.ZodNullable<z.ZodString>;
1405
+ receivedAt: z.ZodNullable<z.ZodPreprocess<z.ZodDate, Date>>;
1406
+ sentAt: z.ZodNullable<z.ZodPreprocess<z.ZodDate, Date>>;
1407
+ isRead: z.ZodBoolean;
1408
+ isFlagged: z.ZodBoolean;
1409
+ isDraft: z.ZodBoolean;
1410
+ hasAttachments: z.ZodBoolean;
1411
+ categories: z.ZodArray<z.ZodString>;
1412
+ direction: z.ZodEnum<{
1413
+ inbound: "inbound";
1414
+ outbound: "outbound";
1415
+ }>;
1416
+ outboxId: z.ZodNullable<z.ZodUUID>;
1417
+ reference: z.ZodNullable<z.ZodString>;
1418
+ importance: z.ZodNullable<z.ZodEnum<{
1419
+ normal: "normal";
1420
+ high: "high";
1421
+ low: "low";
1422
+ }>>;
1423
+ }, z.core.$strip>;
1424
+ mailboxes: z.ZodArray<z.ZodObject<{
1425
+ id: z.ZodUUID;
1426
+ name: z.ZodString;
1427
+ role: z.ZodEnum<{
1428
+ custom: "custom";
1429
+ inbox: "inbox";
1430
+ sent: "sent";
1431
+ drafts: "drafts";
1432
+ trash: "trash";
1433
+ junk: "junk";
1434
+ archive: "archive";
1435
+ all: "all";
1436
+ important: "important";
1437
+ }>;
1438
+ }, z.core.$strip>>;
1439
+ classification: z.ZodObject<{
1440
+ kind: z.ZodEnum<{
1441
+ opt_out: "opt_out";
1442
+ auto_reply: "auto_reply";
1443
+ bounce: "bounce";
1444
+ human_reply: "human_reply";
1445
+ }>;
1446
+ probabilities: z.ZodRecord<z.ZodString, z.ZodNumber>;
1447
+ optOutProbability: z.ZodNumber;
1448
+ autoReplyCategory: z.ZodNullable<z.ZodEnum<{
1449
+ other: "other";
1450
+ out_of_office: "out_of_office";
1451
+ left_company: "left_company";
1452
+ address_changed: "address_changed";
1453
+ ticket_acknowledgment: "ticket_acknowledgment";
1454
+ challenge_response: "challenge_response";
1455
+ }>>;
1456
+ returnDate: z.ZodNullable<z.ZodISODate>;
1457
+ alternateContacts: z.ZodArray<z.ZodString>;
1458
+ outboxId: z.ZodNullable<z.ZodUUID>;
1459
+ model: z.ZodString;
1460
+ classifiedAt: z.ZodPreprocess<z.ZodDate, Date>;
1461
+ }, z.core.$strip>;
1462
+ }, z.core.$strip>;
1463
+ description: string;
1464
+ };
1465
+ "message.opened": {
1466
+ scope: "account";
1467
+ data: z.ZodObject<{
1468
+ url: z.ZodNullable<z.ZodString>;
1469
+ method: z.ZodString;
1470
+ actor: z.ZodEnum<{
1471
+ unknown: "unknown";
1472
+ human: "human";
1473
+ proxy: "proxy";
1474
+ prefetch: "prefetch";
1475
+ scanner: "scanner";
1476
+ }>;
1477
+ userAgent: z.ZodNullable<z.ZodString>;
1478
+ client: z.ZodEnum<{
1479
+ unknown: "unknown";
1480
+ gmail_proxy: "gmail_proxy";
1481
+ gmail_web: "gmail_web";
1482
+ gmail_app: "gmail_app";
1483
+ outlook_web: "outlook_web";
1484
+ outlook_desktop: "outlook_desktop";
1485
+ outlook_mobile: "outlook_mobile";
1486
+ apple_mail: "apple_mail";
1487
+ apple_mail_privacy: "apple_mail_privacy";
1488
+ yahoo: "yahoo";
1489
+ aol: "aol";
1490
+ thunderbird: "thunderbird";
1491
+ proton: "proton";
1492
+ fastmail: "fastmail";
1493
+ zoho: "zoho";
1494
+ icloud_web: "icloud_web";
1495
+ webmail: "webmail";
1496
+ }>;
1497
+ device: z.ZodEnum<{
1498
+ unknown: "unknown";
1499
+ mobile: "mobile";
1500
+ desktop: "desktop";
1501
+ tablet: "tablet";
1502
+ bot: "bot";
1503
+ }>;
1504
+ secFetch: z.ZodObject<{
1505
+ dest: z.ZodNullable<z.ZodString>;
1506
+ mode: z.ZodNullable<z.ZodString>;
1507
+ site: z.ZodNullable<z.ZodString>;
1508
+ user: z.ZodNullable<z.ZodBoolean>;
1509
+ }, z.core.$strip>;
1510
+ refererHost: z.ZodNullable<z.ZodString>;
1511
+ originHost: z.ZodNullable<z.ZodString>;
1512
+ os: z.ZodNullable<z.ZodEnum<{
1513
+ windows: "windows";
1514
+ macos: "macos";
1515
+ ios: "ios";
1516
+ ipados: "ipados";
1517
+ android: "android";
1518
+ linux: "linux";
1519
+ chromeos: "chromeos";
1520
+ }>>;
1521
+ browser: z.ZodNullable<z.ZodEnum<{
1522
+ chrome: "chrome";
1523
+ edge: "edge";
1524
+ firefox: "firefox";
1525
+ safari: "safari";
1526
+ opera: "opera";
1527
+ samsung: "samsung";
1528
+ }>>;
1529
+ country: z.ZodNullable<z.ZodString>;
1530
+ region: z.ZodNullable<z.ZodString>;
1531
+ city: z.ZodNullable<z.ZodString>;
1532
+ timezone: z.ZodNullable<z.ZodString>;
1533
+ latitude: z.ZodNullable<z.ZodNumber>;
1534
+ longitude: z.ZodNullable<z.ZodNumber>;
1535
+ secondsAfterSend: z.ZodNullable<z.ZodNumber>;
1536
+ secondsSincePrevious: z.ZodNullable<z.ZodNumber>;
1537
+ sequence: z.ZodNumber;
1538
+ isConditional: z.ZodBoolean;
1539
+ isRange: z.ZodBoolean;
1540
+ isPrefetch: z.ZodBoolean;
1541
+ occurredAt: z.ZodPreprocess<z.ZodDate, Date>;
1542
+ reasons: z.ZodArray<z.ZodString>;
1543
+ isMachine: z.ZodBoolean;
1544
+ outboxId: z.ZodUUID;
1545
+ reference: z.ZodNullable<z.ZodString>;
1546
+ messageId: z.ZodNullable<z.ZodUUID>;
1547
+ }, z.core.$strip>;
1548
+ description: string;
1549
+ };
1550
+ "message.clicked": {
1551
+ scope: "account";
1552
+ data: z.ZodObject<{
1553
+ url: z.ZodNullable<z.ZodString>;
1554
+ method: z.ZodString;
1555
+ actor: z.ZodEnum<{
1556
+ unknown: "unknown";
1557
+ human: "human";
1558
+ proxy: "proxy";
1559
+ prefetch: "prefetch";
1560
+ scanner: "scanner";
1561
+ }>;
1562
+ userAgent: z.ZodNullable<z.ZodString>;
1563
+ client: z.ZodEnum<{
1564
+ unknown: "unknown";
1565
+ gmail_proxy: "gmail_proxy";
1566
+ gmail_web: "gmail_web";
1567
+ gmail_app: "gmail_app";
1568
+ outlook_web: "outlook_web";
1569
+ outlook_desktop: "outlook_desktop";
1570
+ outlook_mobile: "outlook_mobile";
1571
+ apple_mail: "apple_mail";
1572
+ apple_mail_privacy: "apple_mail_privacy";
1573
+ yahoo: "yahoo";
1574
+ aol: "aol";
1575
+ thunderbird: "thunderbird";
1576
+ proton: "proton";
1577
+ fastmail: "fastmail";
1578
+ zoho: "zoho";
1579
+ icloud_web: "icloud_web";
1580
+ webmail: "webmail";
1581
+ }>;
1582
+ device: z.ZodEnum<{
1583
+ unknown: "unknown";
1584
+ mobile: "mobile";
1585
+ desktop: "desktop";
1586
+ tablet: "tablet";
1587
+ bot: "bot";
1588
+ }>;
1589
+ secFetch: z.ZodObject<{
1590
+ dest: z.ZodNullable<z.ZodString>;
1591
+ mode: z.ZodNullable<z.ZodString>;
1592
+ site: z.ZodNullable<z.ZodString>;
1593
+ user: z.ZodNullable<z.ZodBoolean>;
1594
+ }, z.core.$strip>;
1595
+ refererHost: z.ZodNullable<z.ZodString>;
1596
+ originHost: z.ZodNullable<z.ZodString>;
1597
+ os: z.ZodNullable<z.ZodEnum<{
1598
+ windows: "windows";
1599
+ macos: "macos";
1600
+ ios: "ios";
1601
+ ipados: "ipados";
1602
+ android: "android";
1603
+ linux: "linux";
1604
+ chromeos: "chromeos";
1605
+ }>>;
1606
+ browser: z.ZodNullable<z.ZodEnum<{
1607
+ chrome: "chrome";
1608
+ edge: "edge";
1609
+ firefox: "firefox";
1610
+ safari: "safari";
1611
+ opera: "opera";
1612
+ samsung: "samsung";
1613
+ }>>;
1614
+ country: z.ZodNullable<z.ZodString>;
1615
+ region: z.ZodNullable<z.ZodString>;
1616
+ city: z.ZodNullable<z.ZodString>;
1617
+ timezone: z.ZodNullable<z.ZodString>;
1618
+ latitude: z.ZodNullable<z.ZodNumber>;
1619
+ longitude: z.ZodNullable<z.ZodNumber>;
1620
+ secondsAfterSend: z.ZodNullable<z.ZodNumber>;
1621
+ secondsSincePrevious: z.ZodNullable<z.ZodNumber>;
1622
+ sequence: z.ZodNumber;
1623
+ isConditional: z.ZodBoolean;
1624
+ isRange: z.ZodBoolean;
1625
+ isPrefetch: z.ZodBoolean;
1626
+ occurredAt: z.ZodPreprocess<z.ZodDate, Date>;
1627
+ reasons: z.ZodArray<z.ZodString>;
1628
+ isMachine: z.ZodBoolean;
1629
+ outboxId: z.ZodUUID;
1630
+ reference: z.ZodNullable<z.ZodString>;
1631
+ messageId: z.ZodNullable<z.ZodUUID>;
1632
+ }, z.core.$strip>;
1633
+ description: string;
1634
+ };
1635
+ "send.sent": {
1636
+ scope: "account";
1637
+ data: z.ZodObject<{
1638
+ attempt: z.ZodNumber;
1639
+ providerMessageId: z.ZodNullable<z.ZodString>;
1640
+ internetMessageId: z.ZodNullable<z.ZodString>;
1641
+ sentAt: z.ZodPreprocess<z.ZodDate, Date>;
1642
+ outboxId: z.ZodUUID;
1643
+ reference: z.ZodNullable<z.ZodString>;
1644
+ }, z.core.$strip>;
1645
+ description: string;
1646
+ };
1647
+ "send.retrying": {
1648
+ scope: "account";
1649
+ data: z.ZodObject<{
1650
+ attempt: z.ZodNumber;
1651
+ nextAttemptAt: z.ZodPreprocess<z.ZodDate, Date>;
1652
+ error: z.ZodObject<{
1653
+ code: z.ZodString;
1654
+ message: z.ZodString;
1655
+ }, z.core.$strip>;
1656
+ outboxId: z.ZodUUID;
1657
+ reference: z.ZodNullable<z.ZodString>;
1658
+ }, z.core.$strip>;
1659
+ description: string;
1660
+ };
1661
+ "send.failed": {
1662
+ scope: "account";
1663
+ data: z.ZodObject<{
1664
+ attempt: z.ZodNumber;
1665
+ error: z.ZodObject<{
1666
+ code: z.ZodString;
1667
+ message: z.ZodString;
1668
+ }, z.core.$strip>;
1669
+ outboxId: z.ZodUUID;
1670
+ reference: z.ZodNullable<z.ZodString>;
1671
+ }, z.core.$strip>;
1672
+ description: string;
1673
+ };
1674
+ "send.rescheduled": {
1675
+ scope: "account";
1676
+ data: z.ZodObject<{
1677
+ sendAt: z.ZodPreprocess<z.ZodDate, Date>;
1678
+ previousSendAt: z.ZodPreprocess<z.ZodDate, Date>;
1679
+ outboxId: z.ZodUUID;
1680
+ reference: z.ZodNullable<z.ZodString>;
1681
+ }, z.core.$strip>;
1682
+ description: string;
1683
+ };
1684
+ "suppression.created": {
1685
+ scope: "account";
1686
+ data: z.ZodObject<{
1687
+ listId: z.ZodString;
1688
+ address: z.ZodString;
1689
+ source: z.ZodEnum<{
1690
+ api: "api";
1691
+ bounce: "bounce";
1692
+ unsubscribe: "unsubscribe";
1693
+ reply: "reply";
1694
+ complaint: "complaint";
1695
+ inactive: "inactive";
1696
+ }>;
1697
+ }, z.core.$strip>;
1698
+ description: string;
1699
+ };
1700
+ "calendar.initialized": {
1701
+ scope: "account";
1702
+ data: z.ZodObject<{
1703
+ calendars: z.ZodNumber;
1704
+ events: z.ZodNumber;
1705
+ }, z.core.$strip>;
1706
+ description: string;
1707
+ };
1708
+ "calendar.created": {
1709
+ scope: "account";
1710
+ data: z.ZodObject<{
1711
+ calendar: z.ZodObject<{
1712
+ id: z.ZodUUID;
1713
+ name: z.ZodString;
1714
+ description: z.ZodNullable<z.ZodString>;
1715
+ owner: z.ZodNullable<z.ZodObject<{
1716
+ name: z.ZodNullable<z.ZodString>;
1717
+ address: z.ZodString;
1718
+ }, z.core.$strip>>;
1719
+ isPrimary: z.ZodBoolean;
1720
+ access: z.ZodEnum<{
1721
+ owner: "owner";
1722
+ writer: "writer";
1723
+ reader: "reader";
1724
+ freebusy: "freebusy";
1725
+ }>;
1726
+ canEdit: z.ZodBoolean;
1727
+ color: z.ZodNullable<z.ZodString>;
1728
+ timeZone: z.ZodNullable<z.ZodString>;
1729
+ isHidden: z.ZodBoolean;
1730
+ }, z.core.$strip>;
1731
+ }, z.core.$strip>;
1732
+ description: string;
1733
+ };
1734
+ "calendar.updated": {
1735
+ scope: "account";
1736
+ data: z.ZodObject<{
1737
+ calendar: z.ZodObject<{
1738
+ id: z.ZodUUID;
1739
+ name: z.ZodString;
1740
+ description: z.ZodNullable<z.ZodString>;
1741
+ owner: z.ZodNullable<z.ZodObject<{
1742
+ name: z.ZodNullable<z.ZodString>;
1743
+ address: z.ZodString;
1744
+ }, z.core.$strip>>;
1745
+ isPrimary: z.ZodBoolean;
1746
+ access: z.ZodEnum<{
1747
+ owner: "owner";
1748
+ writer: "writer";
1749
+ reader: "reader";
1750
+ freebusy: "freebusy";
1751
+ }>;
1752
+ canEdit: z.ZodBoolean;
1753
+ color: z.ZodNullable<z.ZodString>;
1754
+ timeZone: z.ZodNullable<z.ZodString>;
1755
+ isHidden: z.ZodBoolean;
1756
+ }, z.core.$strip>;
1757
+ changes: z.ZodArray<z.ZodEnum<{
1758
+ description: "description";
1759
+ name: "name";
1760
+ owner: "owner";
1761
+ access: "access";
1762
+ isPrimary: "isPrimary";
1763
+ canEdit: "canEdit";
1764
+ color: "color";
1765
+ timeZone: "timeZone";
1766
+ isHidden: "isHidden";
1767
+ }>>;
1768
+ }, z.core.$strip>;
1769
+ description: string;
1770
+ };
1771
+ "calendar.deleted": {
1772
+ scope: "account";
1773
+ data: z.ZodObject<{
1774
+ calendar: z.ZodObject<{
1775
+ id: z.ZodUUID;
1776
+ name: z.ZodString;
1777
+ description: z.ZodNullable<z.ZodString>;
1778
+ owner: z.ZodNullable<z.ZodObject<{
1779
+ name: z.ZodNullable<z.ZodString>;
1780
+ address: z.ZodString;
1781
+ }, z.core.$strip>>;
1782
+ isPrimary: z.ZodBoolean;
1783
+ access: z.ZodEnum<{
1784
+ owner: "owner";
1785
+ writer: "writer";
1786
+ reader: "reader";
1787
+ freebusy: "freebusy";
1788
+ }>;
1789
+ canEdit: z.ZodBoolean;
1790
+ color: z.ZodNullable<z.ZodString>;
1791
+ timeZone: z.ZodNullable<z.ZodString>;
1792
+ isHidden: z.ZodBoolean;
1793
+ }, z.core.$strip>;
1794
+ }, z.core.$strip>;
1795
+ description: string;
1796
+ };
1797
+ "calendar_event.created": {
1798
+ scope: "account";
1799
+ data: z.ZodObject<{
1800
+ event: z.ZodObject<{
1801
+ id: z.ZodUUID;
1802
+ calendarId: z.ZodUUID;
1803
+ kind: z.ZodEnum<{
1804
+ single: "single";
1805
+ series: "series";
1806
+ occurrence: "occurrence";
1807
+ exception: "exception";
1808
+ }>;
1809
+ seriesId: z.ZodNullable<z.ZodUUID>;
1810
+ originalStart: z.ZodNullable<z.ZodPreprocess<z.ZodDate, Date>>;
1811
+ subject: z.ZodNullable<z.ZodString>;
1812
+ snippet: z.ZodNullable<z.ZodString>;
1813
+ location: z.ZodNullable<z.ZodString>;
1814
+ start: z.ZodObject<{
1815
+ dateTime: z.ZodPreprocess<z.ZodDate, Date>;
1816
+ date: z.ZodNullable<z.ZodISODate>;
1817
+ timeZone: z.ZodNullable<z.ZodString>;
1818
+ }, z.core.$strip>;
1819
+ end: z.ZodObject<{
1820
+ dateTime: z.ZodPreprocess<z.ZodDate, Date>;
1821
+ date: z.ZodNullable<z.ZodISODate>;
1822
+ timeZone: z.ZodNullable<z.ZodString>;
1823
+ }, z.core.$strip>;
1824
+ isAllDay: z.ZodBoolean;
1825
+ organizer: z.ZodNullable<z.ZodObject<{
1826
+ name: z.ZodNullable<z.ZodString>;
1827
+ address: z.ZodString;
1828
+ }, z.core.$strip>>;
1829
+ attendees: z.ZodArray<z.ZodObject<{
1830
+ name: z.ZodNullable<z.ZodString>;
1831
+ address: z.ZodString;
1832
+ type: z.ZodEnum<{
1833
+ optional: "optional";
1834
+ required: "required";
1835
+ resource: "resource";
1836
+ }>;
1837
+ response: z.ZodEnum<{
1838
+ none: "none";
1839
+ organizer: "organizer";
1840
+ accepted: "accepted";
1841
+ tentative: "tentative";
1842
+ declined: "declined";
1843
+ needs_action: "needs_action";
1844
+ }>;
1845
+ }, z.core.$strip>>;
1846
+ isOrganizer: z.ZodBoolean;
1847
+ selfResponse: z.ZodEnum<{
1848
+ none: "none";
1849
+ organizer: "organizer";
1850
+ accepted: "accepted";
1851
+ tentative: "tentative";
1852
+ declined: "declined";
1853
+ needs_action: "needs_action";
1854
+ }>;
1855
+ status: z.ZodEnum<{
1856
+ tentative: "tentative";
1857
+ confirmed: "confirmed";
1858
+ cancelled: "cancelled";
1859
+ }>;
1860
+ showAs: z.ZodEnum<{
1861
+ unknown: "unknown";
1862
+ tentative: "tentative";
1863
+ free: "free";
1864
+ busy: "busy";
1865
+ oof: "oof";
1866
+ working_elsewhere: "working_elsewhere";
1867
+ }>;
1868
+ sensitivity: z.ZodEnum<{
1869
+ normal: "normal";
1870
+ personal: "personal";
1871
+ private: "private";
1872
+ confidential: "confidential";
1873
+ }>;
1874
+ onlineMeetingUrl: z.ZodNullable<z.ZodString>;
1875
+ onlineMeetingProvider: z.ZodNullable<z.ZodString>;
1876
+ iCalUid: z.ZodNullable<z.ZodString>;
1877
+ recurrence: z.ZodNullable<z.ZodArray<z.ZodString>>;
1878
+ recurrenceTimeZone: z.ZodNullable<z.ZodString>;
1879
+ cancelledStarts: z.ZodNullable<z.ZodArray<z.ZodPreprocess<z.ZodDate, Date>>>;
1880
+ categories: z.ZodArray<z.ZodString>;
1881
+ hasAttachments: z.ZodBoolean;
1882
+ reminderMinutes: z.ZodNullable<z.ZodNumber>;
1883
+ webLink: z.ZodNullable<z.ZodString>;
1884
+ updatedAt: z.ZodPreprocess<z.ZodDate, Date>;
1885
+ }, z.core.$strip>;
1886
+ }, z.core.$strip>;
1887
+ description: string;
1888
+ };
1889
+ "calendar_event.updated": {
1890
+ scope: "account";
1891
+ data: z.ZodObject<{
1892
+ event: z.ZodObject<{
1893
+ id: z.ZodUUID;
1894
+ calendarId: z.ZodUUID;
1895
+ kind: z.ZodEnum<{
1896
+ single: "single";
1897
+ series: "series";
1898
+ occurrence: "occurrence";
1899
+ exception: "exception";
1900
+ }>;
1901
+ seriesId: z.ZodNullable<z.ZodUUID>;
1902
+ originalStart: z.ZodNullable<z.ZodPreprocess<z.ZodDate, Date>>;
1903
+ subject: z.ZodNullable<z.ZodString>;
1904
+ snippet: z.ZodNullable<z.ZodString>;
1905
+ location: z.ZodNullable<z.ZodString>;
1906
+ start: z.ZodObject<{
1907
+ dateTime: z.ZodPreprocess<z.ZodDate, Date>;
1908
+ date: z.ZodNullable<z.ZodISODate>;
1909
+ timeZone: z.ZodNullable<z.ZodString>;
1910
+ }, z.core.$strip>;
1911
+ end: z.ZodObject<{
1912
+ dateTime: z.ZodPreprocess<z.ZodDate, Date>;
1913
+ date: z.ZodNullable<z.ZodISODate>;
1914
+ timeZone: z.ZodNullable<z.ZodString>;
1915
+ }, z.core.$strip>;
1916
+ isAllDay: z.ZodBoolean;
1917
+ organizer: z.ZodNullable<z.ZodObject<{
1918
+ name: z.ZodNullable<z.ZodString>;
1919
+ address: z.ZodString;
1920
+ }, z.core.$strip>>;
1921
+ attendees: z.ZodArray<z.ZodObject<{
1922
+ name: z.ZodNullable<z.ZodString>;
1923
+ address: z.ZodString;
1924
+ type: z.ZodEnum<{
1925
+ optional: "optional";
1926
+ required: "required";
1927
+ resource: "resource";
1928
+ }>;
1929
+ response: z.ZodEnum<{
1930
+ none: "none";
1931
+ organizer: "organizer";
1932
+ accepted: "accepted";
1933
+ tentative: "tentative";
1934
+ declined: "declined";
1935
+ needs_action: "needs_action";
1936
+ }>;
1937
+ }, z.core.$strip>>;
1938
+ isOrganizer: z.ZodBoolean;
1939
+ selfResponse: z.ZodEnum<{
1940
+ none: "none";
1941
+ organizer: "organizer";
1942
+ accepted: "accepted";
1943
+ tentative: "tentative";
1944
+ declined: "declined";
1945
+ needs_action: "needs_action";
1946
+ }>;
1947
+ status: z.ZodEnum<{
1948
+ tentative: "tentative";
1949
+ confirmed: "confirmed";
1950
+ cancelled: "cancelled";
1951
+ }>;
1952
+ showAs: z.ZodEnum<{
1953
+ unknown: "unknown";
1954
+ tentative: "tentative";
1955
+ free: "free";
1956
+ busy: "busy";
1957
+ oof: "oof";
1958
+ working_elsewhere: "working_elsewhere";
1959
+ }>;
1960
+ sensitivity: z.ZodEnum<{
1961
+ normal: "normal";
1962
+ personal: "personal";
1963
+ private: "private";
1964
+ confidential: "confidential";
1965
+ }>;
1966
+ onlineMeetingUrl: z.ZodNullable<z.ZodString>;
1967
+ onlineMeetingProvider: z.ZodNullable<z.ZodString>;
1968
+ iCalUid: z.ZodNullable<z.ZodString>;
1969
+ recurrence: z.ZodNullable<z.ZodArray<z.ZodString>>;
1970
+ recurrenceTimeZone: z.ZodNullable<z.ZodString>;
1971
+ cancelledStarts: z.ZodNullable<z.ZodArray<z.ZodPreprocess<z.ZodDate, Date>>>;
1972
+ categories: z.ZodArray<z.ZodString>;
1973
+ hasAttachments: z.ZodBoolean;
1974
+ reminderMinutes: z.ZodNullable<z.ZodNumber>;
1975
+ webLink: z.ZodNullable<z.ZodString>;
1976
+ updatedAt: z.ZodPreprocess<z.ZodDate, Date>;
1977
+ }, z.core.$strip>;
1978
+ changes: z.ZodArray<z.ZodEnum<{
1979
+ status: "status";
1980
+ kind: "kind";
1981
+ organizer: "organizer";
1982
+ start: "start";
1983
+ end: "end";
1984
+ selfResponse: "selfResponse";
1985
+ showAs: "showAs";
1986
+ sensitivity: "sensitivity";
1987
+ originalStart: "originalStart";
1988
+ subject: "subject";
1989
+ snippet: "snippet";
1990
+ location: "location";
1991
+ isAllDay: "isAllDay";
1992
+ attendees: "attendees";
1993
+ isOrganizer: "isOrganizer";
1994
+ onlineMeetingUrl: "onlineMeetingUrl";
1995
+ onlineMeetingProvider: "onlineMeetingProvider";
1996
+ iCalUid: "iCalUid";
1997
+ recurrence: "recurrence";
1998
+ recurrenceTimeZone: "recurrenceTimeZone";
1999
+ cancelledStarts: "cancelledStarts";
2000
+ categories: "categories";
2001
+ hasAttachments: "hasAttachments";
2002
+ reminderMinutes: "reminderMinutes";
2003
+ webLink: "webLink";
2004
+ }>>;
2005
+ }, z.core.$strip>;
2006
+ description: string;
2007
+ };
2008
+ "calendar_event.deleted": {
2009
+ scope: "account";
2010
+ data: z.ZodObject<{
2011
+ eventId: z.ZodUUID;
2012
+ calendarId: z.ZodUUID;
2013
+ kind: z.ZodEnum<{
2014
+ single: "single";
2015
+ series: "series";
2016
+ occurrence: "occurrence";
2017
+ exception: "exception";
2018
+ }>;
2019
+ seriesId: z.ZodNullable<z.ZodUUID>;
2020
+ }, z.core.$strip>;
2021
+ description: string;
2022
+ };
2023
+ "contacts.initialized": {
2024
+ scope: "account";
2025
+ data: z.ZodObject<{
2026
+ contacts: z.ZodNumber;
2027
+ }, z.core.$strip>;
2028
+ description: string;
2029
+ };
2030
+ "contact.created": {
2031
+ scope: "account";
2032
+ data: z.ZodObject<{
2033
+ contact: z.ZodObject<{
2034
+ id: z.ZodUUID;
2035
+ folderId: z.ZodNullable<z.ZodUUID>;
2036
+ displayName: z.ZodNullable<z.ZodString>;
2037
+ givenName: z.ZodNullable<z.ZodString>;
2038
+ middleName: z.ZodNullable<z.ZodString>;
2039
+ familyName: z.ZodNullable<z.ZodString>;
2040
+ nickname: z.ZodNullable<z.ZodString>;
2041
+ emails: z.ZodArray<z.ZodObject<{
2042
+ address: z.ZodString;
2043
+ type: z.ZodNullable<z.ZodEnum<{
2044
+ home: "home";
2045
+ work: "work";
2046
+ other: "other";
2047
+ }>>;
2048
+ }, z.core.$strip>>;
2049
+ phones: z.ZodArray<z.ZodObject<{
2050
+ number: z.ZodString;
2051
+ type: z.ZodNullable<z.ZodEnum<{
2052
+ home: "home";
2053
+ work: "work";
2054
+ other: "other";
2055
+ mobile: "mobile";
2056
+ }>>;
2057
+ }, z.core.$strip>>;
2058
+ organization: z.ZodNullable<z.ZodString>;
2059
+ jobTitle: z.ZodNullable<z.ZodString>;
2060
+ department: z.ZodNullable<z.ZodString>;
2061
+ birthday: z.ZodNullable<z.ZodString>;
2062
+ notes: z.ZodNullable<z.ZodString>;
2063
+ hasPhoto: z.ZodNullable<z.ZodBoolean>;
2064
+ updatedAt: z.ZodPreprocess<z.ZodDate, Date>;
2065
+ }, z.core.$strip>;
2066
+ }, z.core.$strip>;
2067
+ description: string;
2068
+ };
2069
+ "contact.updated": {
2070
+ scope: "account";
2071
+ data: z.ZodObject<{
2072
+ contact: z.ZodObject<{
2073
+ id: z.ZodUUID;
2074
+ folderId: z.ZodNullable<z.ZodUUID>;
2075
+ displayName: z.ZodNullable<z.ZodString>;
2076
+ givenName: z.ZodNullable<z.ZodString>;
2077
+ middleName: z.ZodNullable<z.ZodString>;
2078
+ familyName: z.ZodNullable<z.ZodString>;
2079
+ nickname: z.ZodNullable<z.ZodString>;
2080
+ emails: z.ZodArray<z.ZodObject<{
2081
+ address: z.ZodString;
2082
+ type: z.ZodNullable<z.ZodEnum<{
2083
+ home: "home";
2084
+ work: "work";
2085
+ other: "other";
2086
+ }>>;
2087
+ }, z.core.$strip>>;
2088
+ phones: z.ZodArray<z.ZodObject<{
2089
+ number: z.ZodString;
2090
+ type: z.ZodNullable<z.ZodEnum<{
2091
+ home: "home";
2092
+ work: "work";
2093
+ other: "other";
2094
+ mobile: "mobile";
2095
+ }>>;
2096
+ }, z.core.$strip>>;
2097
+ organization: z.ZodNullable<z.ZodString>;
2098
+ jobTitle: z.ZodNullable<z.ZodString>;
2099
+ department: z.ZodNullable<z.ZodString>;
2100
+ birthday: z.ZodNullable<z.ZodString>;
2101
+ notes: z.ZodNullable<z.ZodString>;
2102
+ hasPhoto: z.ZodNullable<z.ZodBoolean>;
2103
+ updatedAt: z.ZodPreprocess<z.ZodDate, Date>;
2104
+ }, z.core.$strip>;
2105
+ changes: z.ZodArray<z.ZodEnum<{
2106
+ displayName: "displayName";
2107
+ folderId: "folderId";
2108
+ givenName: "givenName";
2109
+ middleName: "middleName";
2110
+ familyName: "familyName";
2111
+ nickname: "nickname";
2112
+ emails: "emails";
2113
+ phones: "phones";
2114
+ organization: "organization";
2115
+ jobTitle: "jobTitle";
2116
+ department: "department";
2117
+ birthday: "birthday";
2118
+ notes: "notes";
2119
+ hasPhoto: "hasPhoto";
2120
+ photo: "photo";
2121
+ }>>;
2122
+ }, z.core.$strip>;
2123
+ description: string;
2124
+ };
2125
+ "contact.deleted": {
2126
+ scope: "account";
2127
+ data: z.ZodObject<{
2128
+ contactId: z.ZodUUID;
2129
+ folderId: z.ZodNullable<z.ZodUUID>;
2130
+ }, z.core.$strip>;
2131
+ description: string;
2132
+ };
2133
+ "export.completed": {
2134
+ scope: "either";
2135
+ data: z.ZodObject<{
2136
+ exportId: z.ZodUUID;
2137
+ bytes: z.ZodNumber;
2138
+ sha256: z.ZodString;
2139
+ expiresAt: z.ZodPreprocess<z.ZodDate, Date>;
2140
+ }, z.core.$strip>;
2141
+ description: string;
2142
+ };
2143
+ "export.failed": {
2144
+ scope: "either";
2145
+ data: z.ZodObject<{
2146
+ exportId: z.ZodUUID;
2147
+ error: z.ZodString;
2148
+ }, z.core.$strip>;
2149
+ description: string;
2150
+ };
2151
+ "meeting_connection.connected": {
2152
+ scope: "account";
2153
+ data: z.ZodObject<{
2154
+ service: z.ZodEnum<{
2155
+ zoom: "zoom";
2156
+ webex: "webex";
2157
+ }>;
2158
+ email: z.ZodString;
2159
+ reconnected: z.ZodBoolean;
2160
+ }, z.core.$strip>;
2161
+ description: string;
2162
+ };
2163
+ "meeting_connection.reauth_required": {
2164
+ scope: "account";
2165
+ data: z.ZodObject<{
2166
+ email: z.ZodString;
2167
+ service: z.ZodEnum<{
2168
+ zoom: "zoom";
2169
+ webex: "webex";
2170
+ }>;
2171
+ reason: z.ZodString;
2172
+ }, z.core.$strip>;
2173
+ description: string;
2174
+ };
2175
+ "webhook.test": {
2176
+ scope: "tenant";
2177
+ data: z.ZodObject<{
2178
+ endpointId: z.ZodUUID;
2179
+ }, z.core.$strip>;
2180
+ description: string;
2181
+ };
2182
+ };
2183
+ export type EventType = keyof typeof EVENTS;
2184
+ type EventDefinition<T extends EventType> = (typeof EVENTS)[T];
2185
+ /** Every event type, in the registry's order. */
2186
+ export declare const EVENT_TYPES: EventType[];
2187
+ export declare const EventType: z.ZodEnum<{
2188
+ "account.connected": "account.connected";
2189
+ "account.updated": "account.updated";
2190
+ "account.deleted": "account.deleted";
2191
+ "account.reauth_required": "account.reauth_required";
2192
+ "account.initialized": "account.initialized";
2193
+ "account.purged": "account.purged";
2194
+ "mailbox.created": "mailbox.created";
2195
+ "mailbox.updated": "mailbox.updated";
2196
+ "mailbox.deleted": "mailbox.deleted";
2197
+ "message.created": "message.created";
2198
+ "message.updated": "message.updated";
2199
+ "message.deleted": "message.deleted";
2200
+ "message.bounced": "message.bounced";
2201
+ "message.classified": "message.classified";
2202
+ "message.opened": "message.opened";
2203
+ "message.clicked": "message.clicked";
2204
+ "send.sent": "send.sent";
2205
+ "send.retrying": "send.retrying";
2206
+ "send.failed": "send.failed";
2207
+ "send.rescheduled": "send.rescheduled";
2208
+ "suppression.created": "suppression.created";
2209
+ "calendar.initialized": "calendar.initialized";
2210
+ "calendar.created": "calendar.created";
2211
+ "calendar.updated": "calendar.updated";
2212
+ "calendar.deleted": "calendar.deleted";
2213
+ "calendar_event.created": "calendar_event.created";
2214
+ "calendar_event.updated": "calendar_event.updated";
2215
+ "calendar_event.deleted": "calendar_event.deleted";
2216
+ "contacts.initialized": "contacts.initialized";
2217
+ "contact.created": "contact.created";
2218
+ "contact.updated": "contact.updated";
2219
+ "contact.deleted": "contact.deleted";
2220
+ "export.completed": "export.completed";
2221
+ "export.failed": "export.failed";
2222
+ "meeting_connection.connected": "meeting_connection.connected";
2223
+ "meeting_connection.reauth_required": "meeting_connection.reauth_required";
2224
+ "webhook.test": "webhook.test";
2225
+ }>;
2226
+ /** The type the test action sends when it is given none. */
2227
+ export declare const TEST_EVENT_TYPE = "webhook.test";
2228
+ /** The `data` of an event of type T. */
2229
+ export type EventData<T extends EventType = EventType> = {
2230
+ [K in T]: z.infer<EventDefinition<K>["data"]>;
2231
+ }[T];
2232
+ /** What an emitter passes as the `data` of an event of type T. */
2233
+ export type EventDataInput<T extends EventType = EventType> = {
2234
+ [K in T]: z.input<EventDefinition<K>["data"]>;
2235
+ }[T];
2236
+ /** The envelope accountId of an event of type T. */
2237
+ export type EventAccountId<T extends EventType> = {
2238
+ account: string;
2239
+ tenant: null;
2240
+ either: string | null;
2241
+ }[EventDefinition<T>["scope"]];
2242
+ /** Whether `type` is announced without an account (the envelope's accountId is always null). */
2243
+ export declare function isAccountlessEventType(type: EventType): boolean;
2244
+ /** `data` checked against the schema of `type`; throws a ZodError when it does not match. */
2245
+ export declare function parseEventData<T extends EventType>(type: T, data: unknown): EventData<T>;
2246
+ declare const ENVELOPE_ACCOUNT_ID: {
2247
+ readonly account: z.ZodUUID;
2248
+ readonly tenant: z.ZodNull;
2249
+ readonly either: z.ZodNullable<z.ZodUUID>;
2250
+ };
2251
+ /** The envelope schema of events of type T. */
2252
+ export type EventEnvelope<T extends EventType> = z.ZodObject<{
2253
+ id: typeof EventId;
2254
+ type: z.ZodLiteral<T>;
2255
+ accountId: (typeof ENVELOPE_ACCOUNT_ID)[EventDefinition<T>["scope"]];
2256
+ createdAt: typeof Timestamp;
2257
+ data: EventDefinition<T>["data"];
2258
+ isTest: z.ZodExactOptional<z.ZodLiteral<true>>;
2259
+ }>;
2260
+ type EventVariant = {
2261
+ [T in EventType]: EventEnvelope<T>;
2262
+ }[EventType];
2263
+ /**
2264
+ * One event: an item of the change feed, and the JSON body POSTed to webhook endpoints. `type`
2265
+ * says what `data` holds.
2266
+ */
2267
+ export declare const Event: z.ZodDiscriminatedUnion<[EventVariant, ...EventVariant[]], "type">;
2268
+ export type Event = z.infer<typeof Event>;
2269
+ /** An event of one type. */
2270
+ export type EventOf<T extends EventType> = Extract<Event, {
2271
+ type: T;
2272
+ }>;
2273
+ export declare const ListChangesQuery: z.ZodObject<{
2274
+ cursor: z.ZodOptional<z.ZodString>;
2275
+ limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
2276
+ types: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodEnum<{
2277
+ "account.connected": "account.connected";
2278
+ "account.updated": "account.updated";
2279
+ "account.deleted": "account.deleted";
2280
+ "account.reauth_required": "account.reauth_required";
2281
+ "account.initialized": "account.initialized";
2282
+ "account.purged": "account.purged";
2283
+ "mailbox.created": "mailbox.created";
2284
+ "mailbox.updated": "mailbox.updated";
2285
+ "mailbox.deleted": "mailbox.deleted";
2286
+ "message.created": "message.created";
2287
+ "message.updated": "message.updated";
2288
+ "message.deleted": "message.deleted";
2289
+ "message.bounced": "message.bounced";
2290
+ "message.classified": "message.classified";
2291
+ "message.opened": "message.opened";
2292
+ "message.clicked": "message.clicked";
2293
+ "send.sent": "send.sent";
2294
+ "send.retrying": "send.retrying";
2295
+ "send.failed": "send.failed";
2296
+ "send.rescheduled": "send.rescheduled";
2297
+ "suppression.created": "suppression.created";
2298
+ "calendar.initialized": "calendar.initialized";
2299
+ "calendar.created": "calendar.created";
2300
+ "calendar.updated": "calendar.updated";
2301
+ "calendar.deleted": "calendar.deleted";
2302
+ "calendar_event.created": "calendar_event.created";
2303
+ "calendar_event.updated": "calendar_event.updated";
2304
+ "calendar_event.deleted": "calendar_event.deleted";
2305
+ "contacts.initialized": "contacts.initialized";
2306
+ "contact.created": "contact.created";
2307
+ "contact.updated": "contact.updated";
2308
+ "contact.deleted": "contact.deleted";
2309
+ "export.completed": "export.completed";
2310
+ "export.failed": "export.failed";
2311
+ "meeting_connection.connected": "meeting_connection.connected";
2312
+ "meeting_connection.reauth_required": "meeting_connection.reauth_required";
2313
+ "webhook.test": "webhook.test";
2314
+ }>>]>, z.ZodTransform<string[], string | ("account.connected" | "account.updated" | "account.deleted" | "account.reauth_required" | "account.initialized" | "account.purged" | "mailbox.created" | "mailbox.updated" | "mailbox.deleted" | "message.created" | "message.updated" | "message.deleted" | "message.bounced" | "message.classified" | "message.opened" | "message.clicked" | "send.sent" | "send.retrying" | "send.failed" | "send.rescheduled" | "suppression.created" | "calendar.initialized" | "calendar.created" | "calendar.updated" | "calendar.deleted" | "calendar_event.created" | "calendar_event.updated" | "calendar_event.deleted" | "contacts.initialized" | "contact.created" | "contact.updated" | "contact.deleted" | "export.completed" | "export.failed" | "meeting_connection.connected" | "meeting_connection.reauth_required" | "webhook.test")[]>>, z.ZodArray<z.ZodEnum<{
2315
+ "account.connected": "account.connected";
2316
+ "account.updated": "account.updated";
2317
+ "account.deleted": "account.deleted";
2318
+ "account.reauth_required": "account.reauth_required";
2319
+ "account.initialized": "account.initialized";
2320
+ "account.purged": "account.purged";
2321
+ "mailbox.created": "mailbox.created";
2322
+ "mailbox.updated": "mailbox.updated";
2323
+ "mailbox.deleted": "mailbox.deleted";
2324
+ "message.created": "message.created";
2325
+ "message.updated": "message.updated";
2326
+ "message.deleted": "message.deleted";
2327
+ "message.bounced": "message.bounced";
2328
+ "message.classified": "message.classified";
2329
+ "message.opened": "message.opened";
2330
+ "message.clicked": "message.clicked";
2331
+ "send.sent": "send.sent";
2332
+ "send.retrying": "send.retrying";
2333
+ "send.failed": "send.failed";
2334
+ "send.rescheduled": "send.rescheduled";
2335
+ "suppression.created": "suppression.created";
2336
+ "calendar.initialized": "calendar.initialized";
2337
+ "calendar.created": "calendar.created";
2338
+ "calendar.updated": "calendar.updated";
2339
+ "calendar.deleted": "calendar.deleted";
2340
+ "calendar_event.created": "calendar_event.created";
2341
+ "calendar_event.updated": "calendar_event.updated";
2342
+ "calendar_event.deleted": "calendar_event.deleted";
2343
+ "contacts.initialized": "contacts.initialized";
2344
+ "contact.created": "contact.created";
2345
+ "contact.updated": "contact.updated";
2346
+ "contact.deleted": "contact.deleted";
2347
+ "export.completed": "export.completed";
2348
+ "export.failed": "export.failed";
2349
+ "meeting_connection.connected": "meeting_connection.connected";
2350
+ "meeting_connection.reauth_required": "meeting_connection.reauth_required";
2351
+ "webhook.test": "webhook.test";
2352
+ }>>>>;
2353
+ }, z.core.$strip>;
2354
+ export type ListChangesQuery = z.infer<typeof ListChangesQuery>;
2355
+ /**
2356
+ * A page of the change feed: pass nextCursor back to continue; an empty page means caught up. The
2357
+ * feed has no end, only a present, so nextCursor is never null: keep polling from it.
2358
+ */
2359
+ export declare const EventFeedPage: z.ZodObject<{
2360
+ items: z.ZodArray<z.ZodDiscriminatedUnion<[EventVariant, ...EventVariant[]], "type">>;
2361
+ nextCursor: z.ZodString;
2362
+ }, z.core.$strip>;
2363
+ export type EventFeedPage = z.infer<typeof EventFeedPage>;
2364
+ export {};