@workwae/sdk 0.0.0-stage → 0.1.0-alpha.2

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 (65) hide show
  1. package/README.md +233 -2
  2. package/client.d.ts +36 -0
  3. package/contract/accounts/models.d.ts +766 -0
  4. package/contract/accounts/routes.d.ts +1480 -0
  5. package/contract/ai/models.d.ts +29 -0
  6. package/contract/ai/routes.d.ts +98 -0
  7. package/contract/audit-log/models.d.ts +121 -0
  8. package/contract/audit-log/routes.d.ts +81 -0
  9. package/contract/calendar/models.d.ts +1012 -0
  10. package/contract/calendar/routes.d.ts +1843 -0
  11. package/contract/connect/models.d.ts +284 -0
  12. package/contract/connect/routes.d.ts +570 -0
  13. package/contract/contacts/models.d.ts +259 -0
  14. package/contract/contacts/routes.d.ts +648 -0
  15. package/contract/email-validation/models.d.ts +119 -0
  16. package/contract/email-validation/routes.d.ts +106 -0
  17. package/contract/errors.d.ts +116 -0
  18. package/contract/events/models.d.ts +2424 -0
  19. package/contract/events/routes.d.ts +117 -0
  20. package/contract/exports/models.d.ts +67 -0
  21. package/contract/exports/routes.d.ts +206 -0
  22. package/contract/identities/models.d.ts +98 -0
  23. package/contract/identities/routes.d.ts +318 -0
  24. package/contract/limits.d.ts +118 -0
  25. package/contract/mail/models.d.ts +571 -0
  26. package/contract/mail/routes.d.ts +1189 -0
  27. package/contract/mcp-keys/models.d.ts +125 -0
  28. package/contract/mcp-keys/routes.d.ts +151 -0
  29. package/contract/meetings/models.d.ts +227 -0
  30. package/contract/meetings/routes.d.ts +405 -0
  31. package/contract/oauth-apps/models.d.ts +86 -0
  32. package/contract/oauth-apps/routes.d.ts +195 -0
  33. package/contract/org-connections/models.d.ts +427 -0
  34. package/contract/org-connections/routes.d.ts +1107 -0
  35. package/contract/plans/credit-packs.d.ts +30 -0
  36. package/contract/plans/models.d.ts +208 -0
  37. package/contract/primitives.d.ts +85 -0
  38. package/contract/public.d.ts +32 -0
  39. package/contract/reasons.d.ts +1222 -0
  40. package/contract/router.d.ts +12986 -0
  41. package/contract/scheduling/models.d.ts +405 -0
  42. package/contract/scheduling/routes.d.ts +756 -0
  43. package/contract/send/models.d.ts +787 -0
  44. package/contract/send/routes.d.ts +1488 -0
  45. package/contract/settings/models.d.ts +163 -0
  46. package/contract/settings/routes.d.ts +162 -0
  47. package/contract/suppressions/models.d.ts +224 -0
  48. package/contract/suppressions/routes.d.ts +365 -0
  49. package/contract/templates/models.d.ts +155 -0
  50. package/contract/templates/routes.d.ts +305 -0
  51. package/contract/threads/models.d.ts +112 -0
  52. package/contract/threads/routes.d.ts +376 -0
  53. package/contract/tracking-domain/models.d.ts +41 -0
  54. package/contract/tracking-domain/routes.d.ts +193 -0
  55. package/contract/usage/models.d.ts +185 -0
  56. package/contract/usage/routes.d.ts +109 -0
  57. package/contract/webhooks/models.d.ts +894 -0
  58. package/contract/webhooks/routes.d.ts +882 -0
  59. package/contract/webhooks/signing.d.ts +19 -0
  60. package/errors.d.ts +15 -0
  61. package/index.d.ts +6 -0
  62. package/index.js +1 -0
  63. package/package.json +44 -4
  64. package/pagination.d.ts +40 -0
  65. package/webhooks.d.ts +28 -0
@@ -0,0 +1,894 @@
1
+ import * as z from "zod";
2
+ export declare const WEBHOOK_HEADERS: {
3
+ readonly id: "webhook-id";
4
+ readonly timestamp: "webhook-timestamp";
5
+ readonly signature: "webhook-signature";
6
+ };
7
+ export declare const WEBHOOK_SECRET_PREFIX = "whsec_";
8
+ export declare const WebhookMessageFilters: z.ZodObject<{
9
+ mailboxIds: z.ZodArray<z.ZodUUID>;
10
+ mailboxRoles: z.ZodArray<z.ZodEnum<{
11
+ custom: "custom";
12
+ all: "all";
13
+ inbox: "inbox";
14
+ sent: "sent";
15
+ drafts: "drafts";
16
+ trash: "trash";
17
+ junk: "junk";
18
+ archive: "archive";
19
+ important: "important";
20
+ }>>;
21
+ from: z.ZodArray<z.ZodString>;
22
+ to: z.ZodArray<z.ZodString>;
23
+ subjectContains: z.ZodArray<z.ZodString>;
24
+ hasAttachments: z.ZodNullable<z.ZodBoolean>;
25
+ direction: z.ZodNullable<z.ZodEnum<{
26
+ inbound: "inbound";
27
+ outbound: "outbound";
28
+ }>>;
29
+ }, z.core.$strip>;
30
+ export type WebhookMessageFilters = z.infer<typeof WebhookMessageFilters>;
31
+ export declare const WebhookFilters: z.ZodObject<{
32
+ eventTypes: z.ZodArray<z.ZodEnum<{
33
+ "account.connected": "account.connected";
34
+ "account.updated": "account.updated";
35
+ "account.deleted": "account.deleted";
36
+ "account.reauth_required": "account.reauth_required";
37
+ "account.initialized": "account.initialized";
38
+ "account.purged": "account.purged";
39
+ "mailbox.created": "mailbox.created";
40
+ "mailbox.updated": "mailbox.updated";
41
+ "mailbox.deleted": "mailbox.deleted";
42
+ "message.created": "message.created";
43
+ "message.updated": "message.updated";
44
+ "message.deleted": "message.deleted";
45
+ "message.bounced": "message.bounced";
46
+ "message.classified": "message.classified";
47
+ "message.opened": "message.opened";
48
+ "message.clicked": "message.clicked";
49
+ "send.sent": "send.sent";
50
+ "send.retrying": "send.retrying";
51
+ "send.failed": "send.failed";
52
+ "send.rescheduled": "send.rescheduled";
53
+ "send.cancelled": "send.cancelled";
54
+ "suppression.created": "suppression.created";
55
+ "calendar.initialized": "calendar.initialized";
56
+ "calendar.created": "calendar.created";
57
+ "calendar.updated": "calendar.updated";
58
+ "calendar.deleted": "calendar.deleted";
59
+ "calendar_event.created": "calendar_event.created";
60
+ "calendar_event.updated": "calendar_event.updated";
61
+ "calendar_event.deleted": "calendar_event.deleted";
62
+ "contacts.initialized": "contacts.initialized";
63
+ "contact.created": "contact.created";
64
+ "contact.updated": "contact.updated";
65
+ "contact.deleted": "contact.deleted";
66
+ "export.completed": "export.completed";
67
+ "export.failed": "export.failed";
68
+ "meeting_connection.connected": "meeting_connection.connected";
69
+ "meeting_connection.reauth_required": "meeting_connection.reauth_required";
70
+ "booking.created": "booking.created";
71
+ "booking.cancelled": "booking.cancelled";
72
+ "webhook.test": "webhook.test";
73
+ }>>;
74
+ accountIds: z.ZodArray<z.ZodUUID>;
75
+ message: z.ZodObject<{
76
+ mailboxIds: z.ZodArray<z.ZodUUID>;
77
+ mailboxRoles: z.ZodArray<z.ZodEnum<{
78
+ custom: "custom";
79
+ all: "all";
80
+ inbox: "inbox";
81
+ sent: "sent";
82
+ drafts: "drafts";
83
+ trash: "trash";
84
+ junk: "junk";
85
+ archive: "archive";
86
+ important: "important";
87
+ }>>;
88
+ from: z.ZodArray<z.ZodString>;
89
+ to: z.ZodArray<z.ZodString>;
90
+ subjectContains: z.ZodArray<z.ZodString>;
91
+ hasAttachments: z.ZodNullable<z.ZodBoolean>;
92
+ direction: z.ZodNullable<z.ZodEnum<{
93
+ inbound: "inbound";
94
+ outbound: "outbound";
95
+ }>>;
96
+ }, z.core.$strip>;
97
+ }, z.core.$strip>;
98
+ export type WebhookFilters = z.infer<typeof WebhookFilters>;
99
+ export declare const WebhookMessageFiltersInput: z.ZodObject<{
100
+ mailboxIds: z.ZodOptional<z.ZodArray<z.ZodUUID>>;
101
+ mailboxRoles: z.ZodOptional<z.ZodArray<z.ZodEnum<{
102
+ custom: "custom";
103
+ all: "all";
104
+ inbox: "inbox";
105
+ sent: "sent";
106
+ drafts: "drafts";
107
+ trash: "trash";
108
+ junk: "junk";
109
+ archive: "archive";
110
+ important: "important";
111
+ }>>>;
112
+ from: z.ZodOptional<z.ZodArray<z.ZodString>>;
113
+ to: z.ZodOptional<z.ZodArray<z.ZodString>>;
114
+ subjectContains: z.ZodOptional<z.ZodArray<z.ZodString>>;
115
+ hasAttachments: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
116
+ direction: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
117
+ inbound: "inbound";
118
+ outbound: "outbound";
119
+ }>>>;
120
+ }, z.core.$strip>;
121
+ export type WebhookMessageFiltersInput = z.infer<typeof WebhookMessageFiltersInput>;
122
+ export declare const WebhookFiltersInput: z.ZodObject<{
123
+ eventTypes: z.ZodOptional<z.ZodArray<z.ZodEnum<{
124
+ "account.connected": "account.connected";
125
+ "account.updated": "account.updated";
126
+ "account.deleted": "account.deleted";
127
+ "account.reauth_required": "account.reauth_required";
128
+ "account.initialized": "account.initialized";
129
+ "account.purged": "account.purged";
130
+ "mailbox.created": "mailbox.created";
131
+ "mailbox.updated": "mailbox.updated";
132
+ "mailbox.deleted": "mailbox.deleted";
133
+ "message.created": "message.created";
134
+ "message.updated": "message.updated";
135
+ "message.deleted": "message.deleted";
136
+ "message.bounced": "message.bounced";
137
+ "message.classified": "message.classified";
138
+ "message.opened": "message.opened";
139
+ "message.clicked": "message.clicked";
140
+ "send.sent": "send.sent";
141
+ "send.retrying": "send.retrying";
142
+ "send.failed": "send.failed";
143
+ "send.rescheduled": "send.rescheduled";
144
+ "send.cancelled": "send.cancelled";
145
+ "suppression.created": "suppression.created";
146
+ "calendar.initialized": "calendar.initialized";
147
+ "calendar.created": "calendar.created";
148
+ "calendar.updated": "calendar.updated";
149
+ "calendar.deleted": "calendar.deleted";
150
+ "calendar_event.created": "calendar_event.created";
151
+ "calendar_event.updated": "calendar_event.updated";
152
+ "calendar_event.deleted": "calendar_event.deleted";
153
+ "contacts.initialized": "contacts.initialized";
154
+ "contact.created": "contact.created";
155
+ "contact.updated": "contact.updated";
156
+ "contact.deleted": "contact.deleted";
157
+ "export.completed": "export.completed";
158
+ "export.failed": "export.failed";
159
+ "meeting_connection.connected": "meeting_connection.connected";
160
+ "meeting_connection.reauth_required": "meeting_connection.reauth_required";
161
+ "booking.created": "booking.created";
162
+ "booking.cancelled": "booking.cancelled";
163
+ "webhook.test": "webhook.test";
164
+ }>>>;
165
+ accountIds: z.ZodOptional<z.ZodArray<z.ZodUUID>>;
166
+ message: z.ZodOptional<z.ZodObject<{
167
+ mailboxIds: z.ZodOptional<z.ZodArray<z.ZodUUID>>;
168
+ mailboxRoles: z.ZodOptional<z.ZodArray<z.ZodEnum<{
169
+ custom: "custom";
170
+ all: "all";
171
+ inbox: "inbox";
172
+ sent: "sent";
173
+ drafts: "drafts";
174
+ trash: "trash";
175
+ junk: "junk";
176
+ archive: "archive";
177
+ important: "important";
178
+ }>>>;
179
+ from: z.ZodOptional<z.ZodArray<z.ZodString>>;
180
+ to: z.ZodOptional<z.ZodArray<z.ZodString>>;
181
+ subjectContains: z.ZodOptional<z.ZodArray<z.ZodString>>;
182
+ hasAttachments: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
183
+ direction: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
184
+ inbound: "inbound";
185
+ outbound: "outbound";
186
+ }>>>;
187
+ }, z.core.$strip>>;
188
+ }, z.core.$strip>;
189
+ export type WebhookFiltersInput = z.infer<typeof WebhookFiltersInput>;
190
+ export declare const WebhookEndpoint: z.ZodObject<{
191
+ id: z.ZodUUID;
192
+ url: z.ZodURL;
193
+ description: z.ZodNullable<z.ZodString>;
194
+ filters: z.ZodObject<{
195
+ eventTypes: z.ZodArray<z.ZodEnum<{
196
+ "account.connected": "account.connected";
197
+ "account.updated": "account.updated";
198
+ "account.deleted": "account.deleted";
199
+ "account.reauth_required": "account.reauth_required";
200
+ "account.initialized": "account.initialized";
201
+ "account.purged": "account.purged";
202
+ "mailbox.created": "mailbox.created";
203
+ "mailbox.updated": "mailbox.updated";
204
+ "mailbox.deleted": "mailbox.deleted";
205
+ "message.created": "message.created";
206
+ "message.updated": "message.updated";
207
+ "message.deleted": "message.deleted";
208
+ "message.bounced": "message.bounced";
209
+ "message.classified": "message.classified";
210
+ "message.opened": "message.opened";
211
+ "message.clicked": "message.clicked";
212
+ "send.sent": "send.sent";
213
+ "send.retrying": "send.retrying";
214
+ "send.failed": "send.failed";
215
+ "send.rescheduled": "send.rescheduled";
216
+ "send.cancelled": "send.cancelled";
217
+ "suppression.created": "suppression.created";
218
+ "calendar.initialized": "calendar.initialized";
219
+ "calendar.created": "calendar.created";
220
+ "calendar.updated": "calendar.updated";
221
+ "calendar.deleted": "calendar.deleted";
222
+ "calendar_event.created": "calendar_event.created";
223
+ "calendar_event.updated": "calendar_event.updated";
224
+ "calendar_event.deleted": "calendar_event.deleted";
225
+ "contacts.initialized": "contacts.initialized";
226
+ "contact.created": "contact.created";
227
+ "contact.updated": "contact.updated";
228
+ "contact.deleted": "contact.deleted";
229
+ "export.completed": "export.completed";
230
+ "export.failed": "export.failed";
231
+ "meeting_connection.connected": "meeting_connection.connected";
232
+ "meeting_connection.reauth_required": "meeting_connection.reauth_required";
233
+ "booking.created": "booking.created";
234
+ "booking.cancelled": "booking.cancelled";
235
+ "webhook.test": "webhook.test";
236
+ }>>;
237
+ accountIds: z.ZodArray<z.ZodUUID>;
238
+ message: z.ZodObject<{
239
+ mailboxIds: z.ZodArray<z.ZodUUID>;
240
+ mailboxRoles: z.ZodArray<z.ZodEnum<{
241
+ custom: "custom";
242
+ all: "all";
243
+ inbox: "inbox";
244
+ sent: "sent";
245
+ drafts: "drafts";
246
+ trash: "trash";
247
+ junk: "junk";
248
+ archive: "archive";
249
+ important: "important";
250
+ }>>;
251
+ from: z.ZodArray<z.ZodString>;
252
+ to: z.ZodArray<z.ZodString>;
253
+ subjectContains: z.ZodArray<z.ZodString>;
254
+ hasAttachments: z.ZodNullable<z.ZodBoolean>;
255
+ direction: z.ZodNullable<z.ZodEnum<{
256
+ inbound: "inbound";
257
+ outbound: "outbound";
258
+ }>>;
259
+ }, z.core.$strip>;
260
+ }, z.core.$strip>;
261
+ isEnabled: z.ZodBoolean;
262
+ disabledReason: z.ZodNullable<z.ZodString>;
263
+ lastSuccessAt: z.ZodNullable<z.ZodPreprocess<z.ZodDate, Date>>;
264
+ failingSince: z.ZodNullable<z.ZodPreprocess<z.ZodDate, Date>>;
265
+ previousSecretExpiresAt: z.ZodNullable<z.ZodPreprocess<z.ZodDate, Date>>;
266
+ createdAt: z.ZodPreprocess<z.ZodDate, Date>;
267
+ }, z.core.$strip>;
268
+ export type WebhookEndpoint = z.infer<typeof WebhookEndpoint>;
269
+ export declare const WebhookEndpointList: z.ZodObject<{
270
+ items: z.ZodArray<z.ZodObject<{
271
+ id: z.ZodUUID;
272
+ url: z.ZodURL;
273
+ description: z.ZodNullable<z.ZodString>;
274
+ filters: z.ZodObject<{
275
+ eventTypes: z.ZodArray<z.ZodEnum<{
276
+ "account.connected": "account.connected";
277
+ "account.updated": "account.updated";
278
+ "account.deleted": "account.deleted";
279
+ "account.reauth_required": "account.reauth_required";
280
+ "account.initialized": "account.initialized";
281
+ "account.purged": "account.purged";
282
+ "mailbox.created": "mailbox.created";
283
+ "mailbox.updated": "mailbox.updated";
284
+ "mailbox.deleted": "mailbox.deleted";
285
+ "message.created": "message.created";
286
+ "message.updated": "message.updated";
287
+ "message.deleted": "message.deleted";
288
+ "message.bounced": "message.bounced";
289
+ "message.classified": "message.classified";
290
+ "message.opened": "message.opened";
291
+ "message.clicked": "message.clicked";
292
+ "send.sent": "send.sent";
293
+ "send.retrying": "send.retrying";
294
+ "send.failed": "send.failed";
295
+ "send.rescheduled": "send.rescheduled";
296
+ "send.cancelled": "send.cancelled";
297
+ "suppression.created": "suppression.created";
298
+ "calendar.initialized": "calendar.initialized";
299
+ "calendar.created": "calendar.created";
300
+ "calendar.updated": "calendar.updated";
301
+ "calendar.deleted": "calendar.deleted";
302
+ "calendar_event.created": "calendar_event.created";
303
+ "calendar_event.updated": "calendar_event.updated";
304
+ "calendar_event.deleted": "calendar_event.deleted";
305
+ "contacts.initialized": "contacts.initialized";
306
+ "contact.created": "contact.created";
307
+ "contact.updated": "contact.updated";
308
+ "contact.deleted": "contact.deleted";
309
+ "export.completed": "export.completed";
310
+ "export.failed": "export.failed";
311
+ "meeting_connection.connected": "meeting_connection.connected";
312
+ "meeting_connection.reauth_required": "meeting_connection.reauth_required";
313
+ "booking.created": "booking.created";
314
+ "booking.cancelled": "booking.cancelled";
315
+ "webhook.test": "webhook.test";
316
+ }>>;
317
+ accountIds: z.ZodArray<z.ZodUUID>;
318
+ message: z.ZodObject<{
319
+ mailboxIds: z.ZodArray<z.ZodUUID>;
320
+ mailboxRoles: z.ZodArray<z.ZodEnum<{
321
+ custom: "custom";
322
+ all: "all";
323
+ inbox: "inbox";
324
+ sent: "sent";
325
+ drafts: "drafts";
326
+ trash: "trash";
327
+ junk: "junk";
328
+ archive: "archive";
329
+ important: "important";
330
+ }>>;
331
+ from: z.ZodArray<z.ZodString>;
332
+ to: z.ZodArray<z.ZodString>;
333
+ subjectContains: z.ZodArray<z.ZodString>;
334
+ hasAttachments: z.ZodNullable<z.ZodBoolean>;
335
+ direction: z.ZodNullable<z.ZodEnum<{
336
+ inbound: "inbound";
337
+ outbound: "outbound";
338
+ }>>;
339
+ }, z.core.$strip>;
340
+ }, z.core.$strip>;
341
+ isEnabled: z.ZodBoolean;
342
+ disabledReason: z.ZodNullable<z.ZodString>;
343
+ lastSuccessAt: z.ZodNullable<z.ZodPreprocess<z.ZodDate, Date>>;
344
+ failingSince: z.ZodNullable<z.ZodPreprocess<z.ZodDate, Date>>;
345
+ previousSecretExpiresAt: z.ZodNullable<z.ZodPreprocess<z.ZodDate, Date>>;
346
+ createdAt: z.ZodPreprocess<z.ZodDate, Date>;
347
+ }, z.core.$strip>>;
348
+ }, z.core.$strip>;
349
+ export type WebhookEndpointList = z.infer<typeof WebhookEndpointList>;
350
+ export declare const WebhookEndpointWithSecret: z.ZodObject<{
351
+ endpoint: z.ZodObject<{
352
+ id: z.ZodUUID;
353
+ url: z.ZodURL;
354
+ description: z.ZodNullable<z.ZodString>;
355
+ filters: z.ZodObject<{
356
+ eventTypes: z.ZodArray<z.ZodEnum<{
357
+ "account.connected": "account.connected";
358
+ "account.updated": "account.updated";
359
+ "account.deleted": "account.deleted";
360
+ "account.reauth_required": "account.reauth_required";
361
+ "account.initialized": "account.initialized";
362
+ "account.purged": "account.purged";
363
+ "mailbox.created": "mailbox.created";
364
+ "mailbox.updated": "mailbox.updated";
365
+ "mailbox.deleted": "mailbox.deleted";
366
+ "message.created": "message.created";
367
+ "message.updated": "message.updated";
368
+ "message.deleted": "message.deleted";
369
+ "message.bounced": "message.bounced";
370
+ "message.classified": "message.classified";
371
+ "message.opened": "message.opened";
372
+ "message.clicked": "message.clicked";
373
+ "send.sent": "send.sent";
374
+ "send.retrying": "send.retrying";
375
+ "send.failed": "send.failed";
376
+ "send.rescheduled": "send.rescheduled";
377
+ "send.cancelled": "send.cancelled";
378
+ "suppression.created": "suppression.created";
379
+ "calendar.initialized": "calendar.initialized";
380
+ "calendar.created": "calendar.created";
381
+ "calendar.updated": "calendar.updated";
382
+ "calendar.deleted": "calendar.deleted";
383
+ "calendar_event.created": "calendar_event.created";
384
+ "calendar_event.updated": "calendar_event.updated";
385
+ "calendar_event.deleted": "calendar_event.deleted";
386
+ "contacts.initialized": "contacts.initialized";
387
+ "contact.created": "contact.created";
388
+ "contact.updated": "contact.updated";
389
+ "contact.deleted": "contact.deleted";
390
+ "export.completed": "export.completed";
391
+ "export.failed": "export.failed";
392
+ "meeting_connection.connected": "meeting_connection.connected";
393
+ "meeting_connection.reauth_required": "meeting_connection.reauth_required";
394
+ "booking.created": "booking.created";
395
+ "booking.cancelled": "booking.cancelled";
396
+ "webhook.test": "webhook.test";
397
+ }>>;
398
+ accountIds: z.ZodArray<z.ZodUUID>;
399
+ message: z.ZodObject<{
400
+ mailboxIds: z.ZodArray<z.ZodUUID>;
401
+ mailboxRoles: z.ZodArray<z.ZodEnum<{
402
+ custom: "custom";
403
+ all: "all";
404
+ inbox: "inbox";
405
+ sent: "sent";
406
+ drafts: "drafts";
407
+ trash: "trash";
408
+ junk: "junk";
409
+ archive: "archive";
410
+ important: "important";
411
+ }>>;
412
+ from: z.ZodArray<z.ZodString>;
413
+ to: z.ZodArray<z.ZodString>;
414
+ subjectContains: z.ZodArray<z.ZodString>;
415
+ hasAttachments: z.ZodNullable<z.ZodBoolean>;
416
+ direction: z.ZodNullable<z.ZodEnum<{
417
+ inbound: "inbound";
418
+ outbound: "outbound";
419
+ }>>;
420
+ }, z.core.$strip>;
421
+ }, z.core.$strip>;
422
+ isEnabled: z.ZodBoolean;
423
+ disabledReason: z.ZodNullable<z.ZodString>;
424
+ lastSuccessAt: z.ZodNullable<z.ZodPreprocess<z.ZodDate, Date>>;
425
+ failingSince: z.ZodNullable<z.ZodPreprocess<z.ZodDate, Date>>;
426
+ previousSecretExpiresAt: z.ZodNullable<z.ZodPreprocess<z.ZodDate, Date>>;
427
+ createdAt: z.ZodPreprocess<z.ZodDate, Date>;
428
+ }, z.core.$strip>;
429
+ secret: z.ZodString;
430
+ }, z.core.$strip>;
431
+ export type WebhookEndpointWithSecret = z.infer<typeof WebhookEndpointWithSecret>;
432
+ export declare const WebhookSecret: z.ZodObject<{
433
+ secret: z.ZodString;
434
+ previousSecretExpiresAt: z.ZodNullable<z.ZodPreprocess<z.ZodDate, Date>>;
435
+ }, z.core.$strip>;
436
+ export type WebhookSecret = z.infer<typeof WebhookSecret>;
437
+ export declare const RotateWebhookSecretRequest: z.ZodObject<{
438
+ graceSeconds: z.ZodDefault<z.ZodNumber>;
439
+ }, z.core.$strip>;
440
+ export type RotateWebhookSecretRequest = z.infer<typeof RotateWebhookSecretRequest>;
441
+ export declare const WebhookEndpointIdInput: z.ZodObject<{
442
+ endpointId: z.ZodUUID;
443
+ }, z.core.$strip>;
444
+ export type WebhookEndpointIdInput = z.infer<typeof WebhookEndpointIdInput>;
445
+ export declare const CreateWebhookEndpoint: z.ZodObject<{
446
+ url: z.ZodURL;
447
+ description: z.ZodOptional<z.ZodString>;
448
+ filters: z.ZodOptional<z.ZodObject<{
449
+ eventTypes: z.ZodOptional<z.ZodArray<z.ZodEnum<{
450
+ "account.connected": "account.connected";
451
+ "account.updated": "account.updated";
452
+ "account.deleted": "account.deleted";
453
+ "account.reauth_required": "account.reauth_required";
454
+ "account.initialized": "account.initialized";
455
+ "account.purged": "account.purged";
456
+ "mailbox.created": "mailbox.created";
457
+ "mailbox.updated": "mailbox.updated";
458
+ "mailbox.deleted": "mailbox.deleted";
459
+ "message.created": "message.created";
460
+ "message.updated": "message.updated";
461
+ "message.deleted": "message.deleted";
462
+ "message.bounced": "message.bounced";
463
+ "message.classified": "message.classified";
464
+ "message.opened": "message.opened";
465
+ "message.clicked": "message.clicked";
466
+ "send.sent": "send.sent";
467
+ "send.retrying": "send.retrying";
468
+ "send.failed": "send.failed";
469
+ "send.rescheduled": "send.rescheduled";
470
+ "send.cancelled": "send.cancelled";
471
+ "suppression.created": "suppression.created";
472
+ "calendar.initialized": "calendar.initialized";
473
+ "calendar.created": "calendar.created";
474
+ "calendar.updated": "calendar.updated";
475
+ "calendar.deleted": "calendar.deleted";
476
+ "calendar_event.created": "calendar_event.created";
477
+ "calendar_event.updated": "calendar_event.updated";
478
+ "calendar_event.deleted": "calendar_event.deleted";
479
+ "contacts.initialized": "contacts.initialized";
480
+ "contact.created": "contact.created";
481
+ "contact.updated": "contact.updated";
482
+ "contact.deleted": "contact.deleted";
483
+ "export.completed": "export.completed";
484
+ "export.failed": "export.failed";
485
+ "meeting_connection.connected": "meeting_connection.connected";
486
+ "meeting_connection.reauth_required": "meeting_connection.reauth_required";
487
+ "booking.created": "booking.created";
488
+ "booking.cancelled": "booking.cancelled";
489
+ "webhook.test": "webhook.test";
490
+ }>>>;
491
+ accountIds: z.ZodOptional<z.ZodArray<z.ZodUUID>>;
492
+ message: z.ZodOptional<z.ZodObject<{
493
+ mailboxIds: z.ZodOptional<z.ZodArray<z.ZodUUID>>;
494
+ mailboxRoles: z.ZodOptional<z.ZodArray<z.ZodEnum<{
495
+ custom: "custom";
496
+ all: "all";
497
+ inbox: "inbox";
498
+ sent: "sent";
499
+ drafts: "drafts";
500
+ trash: "trash";
501
+ junk: "junk";
502
+ archive: "archive";
503
+ important: "important";
504
+ }>>>;
505
+ from: z.ZodOptional<z.ZodArray<z.ZodString>>;
506
+ to: z.ZodOptional<z.ZodArray<z.ZodString>>;
507
+ subjectContains: z.ZodOptional<z.ZodArray<z.ZodString>>;
508
+ hasAttachments: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
509
+ direction: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
510
+ inbound: "inbound";
511
+ outbound: "outbound";
512
+ }>>>;
513
+ }, z.core.$strip>>;
514
+ }, z.core.$strip>>;
515
+ }, z.core.$strip>;
516
+ export type CreateWebhookEndpoint = z.infer<typeof CreateWebhookEndpoint>;
517
+ export declare const UpdateWebhookEndpoint: z.ZodObject<{
518
+ url: z.ZodOptional<z.ZodURL>;
519
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
520
+ filters: z.ZodOptional<z.ZodObject<{
521
+ eventTypes: z.ZodOptional<z.ZodArray<z.ZodEnum<{
522
+ "account.connected": "account.connected";
523
+ "account.updated": "account.updated";
524
+ "account.deleted": "account.deleted";
525
+ "account.reauth_required": "account.reauth_required";
526
+ "account.initialized": "account.initialized";
527
+ "account.purged": "account.purged";
528
+ "mailbox.created": "mailbox.created";
529
+ "mailbox.updated": "mailbox.updated";
530
+ "mailbox.deleted": "mailbox.deleted";
531
+ "message.created": "message.created";
532
+ "message.updated": "message.updated";
533
+ "message.deleted": "message.deleted";
534
+ "message.bounced": "message.bounced";
535
+ "message.classified": "message.classified";
536
+ "message.opened": "message.opened";
537
+ "message.clicked": "message.clicked";
538
+ "send.sent": "send.sent";
539
+ "send.retrying": "send.retrying";
540
+ "send.failed": "send.failed";
541
+ "send.rescheduled": "send.rescheduled";
542
+ "send.cancelled": "send.cancelled";
543
+ "suppression.created": "suppression.created";
544
+ "calendar.initialized": "calendar.initialized";
545
+ "calendar.created": "calendar.created";
546
+ "calendar.updated": "calendar.updated";
547
+ "calendar.deleted": "calendar.deleted";
548
+ "calendar_event.created": "calendar_event.created";
549
+ "calendar_event.updated": "calendar_event.updated";
550
+ "calendar_event.deleted": "calendar_event.deleted";
551
+ "contacts.initialized": "contacts.initialized";
552
+ "contact.created": "contact.created";
553
+ "contact.updated": "contact.updated";
554
+ "contact.deleted": "contact.deleted";
555
+ "export.completed": "export.completed";
556
+ "export.failed": "export.failed";
557
+ "meeting_connection.connected": "meeting_connection.connected";
558
+ "meeting_connection.reauth_required": "meeting_connection.reauth_required";
559
+ "booking.created": "booking.created";
560
+ "booking.cancelled": "booking.cancelled";
561
+ "webhook.test": "webhook.test";
562
+ }>>>;
563
+ accountIds: z.ZodOptional<z.ZodArray<z.ZodUUID>>;
564
+ message: z.ZodOptional<z.ZodObject<{
565
+ mailboxIds: z.ZodOptional<z.ZodArray<z.ZodUUID>>;
566
+ mailboxRoles: z.ZodOptional<z.ZodArray<z.ZodEnum<{
567
+ custom: "custom";
568
+ all: "all";
569
+ inbox: "inbox";
570
+ sent: "sent";
571
+ drafts: "drafts";
572
+ trash: "trash";
573
+ junk: "junk";
574
+ archive: "archive";
575
+ important: "important";
576
+ }>>>;
577
+ from: z.ZodOptional<z.ZodArray<z.ZodString>>;
578
+ to: z.ZodOptional<z.ZodArray<z.ZodString>>;
579
+ subjectContains: z.ZodOptional<z.ZodArray<z.ZodString>>;
580
+ hasAttachments: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
581
+ direction: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
582
+ inbound: "inbound";
583
+ outbound: "outbound";
584
+ }>>>;
585
+ }, z.core.$strip>>;
586
+ }, z.core.$strip>>;
587
+ isEnabled: z.ZodOptional<z.ZodBoolean>;
588
+ }, z.core.$strip>;
589
+ export type UpdateWebhookEndpoint = z.infer<typeof UpdateWebhookEndpoint>;
590
+ export declare const SendTestEventRequest: z.ZodObject<{
591
+ eventType: z.ZodDefault<z.ZodEnum<{
592
+ "account.connected": "account.connected";
593
+ "account.updated": "account.updated";
594
+ "account.deleted": "account.deleted";
595
+ "account.reauth_required": "account.reauth_required";
596
+ "account.initialized": "account.initialized";
597
+ "account.purged": "account.purged";
598
+ "mailbox.created": "mailbox.created";
599
+ "mailbox.updated": "mailbox.updated";
600
+ "mailbox.deleted": "mailbox.deleted";
601
+ "message.created": "message.created";
602
+ "message.updated": "message.updated";
603
+ "message.deleted": "message.deleted";
604
+ "message.bounced": "message.bounced";
605
+ "message.classified": "message.classified";
606
+ "message.opened": "message.opened";
607
+ "message.clicked": "message.clicked";
608
+ "send.sent": "send.sent";
609
+ "send.retrying": "send.retrying";
610
+ "send.failed": "send.failed";
611
+ "send.rescheduled": "send.rescheduled";
612
+ "send.cancelled": "send.cancelled";
613
+ "suppression.created": "suppression.created";
614
+ "calendar.initialized": "calendar.initialized";
615
+ "calendar.created": "calendar.created";
616
+ "calendar.updated": "calendar.updated";
617
+ "calendar.deleted": "calendar.deleted";
618
+ "calendar_event.created": "calendar_event.created";
619
+ "calendar_event.updated": "calendar_event.updated";
620
+ "calendar_event.deleted": "calendar_event.deleted";
621
+ "contacts.initialized": "contacts.initialized";
622
+ "contact.created": "contact.created";
623
+ "contact.updated": "contact.updated";
624
+ "contact.deleted": "contact.deleted";
625
+ "export.completed": "export.completed";
626
+ "export.failed": "export.failed";
627
+ "meeting_connection.connected": "meeting_connection.connected";
628
+ "meeting_connection.reauth_required": "meeting_connection.reauth_required";
629
+ "booking.created": "booking.created";
630
+ "booking.cancelled": "booking.cancelled";
631
+ "webhook.test": "webhook.test";
632
+ }>>;
633
+ accountId: z.ZodOptional<z.ZodUUID>;
634
+ data: z.ZodOptional<z.ZodObject<{}, z.core.$loose>>;
635
+ }, z.core.$strip>;
636
+ export type SendTestEventRequest = z.infer<typeof SendTestEventRequest>;
637
+ export declare const TestEventSent: z.ZodObject<{
638
+ eventId: z.ZodString;
639
+ }, z.core.$strip>;
640
+ export type TestEventSent = z.infer<typeof TestEventSent>;
641
+ export declare const WebhookAttemptResult: z.ZodEnum<{
642
+ failed: "failed";
643
+ succeeded: "succeeded";
644
+ }>;
645
+ export type WebhookAttemptResult = z.infer<typeof WebhookAttemptResult>;
646
+ export declare const WebhookAttempt: z.ZodObject<{
647
+ id: z.ZodUUID;
648
+ eventId: z.ZodString;
649
+ eventType: z.ZodEnum<{
650
+ "account.connected": "account.connected";
651
+ "account.updated": "account.updated";
652
+ "account.deleted": "account.deleted";
653
+ "account.reauth_required": "account.reauth_required";
654
+ "account.initialized": "account.initialized";
655
+ "account.purged": "account.purged";
656
+ "mailbox.created": "mailbox.created";
657
+ "mailbox.updated": "mailbox.updated";
658
+ "mailbox.deleted": "mailbox.deleted";
659
+ "message.created": "message.created";
660
+ "message.updated": "message.updated";
661
+ "message.deleted": "message.deleted";
662
+ "message.bounced": "message.bounced";
663
+ "message.classified": "message.classified";
664
+ "message.opened": "message.opened";
665
+ "message.clicked": "message.clicked";
666
+ "send.sent": "send.sent";
667
+ "send.retrying": "send.retrying";
668
+ "send.failed": "send.failed";
669
+ "send.rescheduled": "send.rescheduled";
670
+ "send.cancelled": "send.cancelled";
671
+ "suppression.created": "suppression.created";
672
+ "calendar.initialized": "calendar.initialized";
673
+ "calendar.created": "calendar.created";
674
+ "calendar.updated": "calendar.updated";
675
+ "calendar.deleted": "calendar.deleted";
676
+ "calendar_event.created": "calendar_event.created";
677
+ "calendar_event.updated": "calendar_event.updated";
678
+ "calendar_event.deleted": "calendar_event.deleted";
679
+ "contacts.initialized": "contacts.initialized";
680
+ "contact.created": "contact.created";
681
+ "contact.updated": "contact.updated";
682
+ "contact.deleted": "contact.deleted";
683
+ "export.completed": "export.completed";
684
+ "export.failed": "export.failed";
685
+ "meeting_connection.connected": "meeting_connection.connected";
686
+ "meeting_connection.reauth_required": "meeting_connection.reauth_required";
687
+ "booking.created": "booking.created";
688
+ "booking.cancelled": "booking.cancelled";
689
+ "webhook.test": "webhook.test";
690
+ }>;
691
+ accountId: z.ZodNullable<z.ZodUUID>;
692
+ attempt: z.ZodNumber;
693
+ statusCode: z.ZodNullable<z.ZodNumber>;
694
+ error: z.ZodNullable<z.ZodString>;
695
+ responseExcerpt: z.ZodNullable<z.ZodString>;
696
+ durationMs: z.ZodNumber;
697
+ isReplay: z.ZodBoolean;
698
+ isTest: z.ZodBoolean;
699
+ occurredAt: z.ZodPreprocess<z.ZodDate, Date>;
700
+ }, z.core.$strip>;
701
+ export type WebhookAttempt = z.infer<typeof WebhookAttempt>;
702
+ export declare const WebhookAttemptPage: z.ZodObject<{
703
+ items: z.ZodArray<z.ZodObject<{
704
+ id: z.ZodUUID;
705
+ eventId: z.ZodString;
706
+ eventType: z.ZodEnum<{
707
+ "account.connected": "account.connected";
708
+ "account.updated": "account.updated";
709
+ "account.deleted": "account.deleted";
710
+ "account.reauth_required": "account.reauth_required";
711
+ "account.initialized": "account.initialized";
712
+ "account.purged": "account.purged";
713
+ "mailbox.created": "mailbox.created";
714
+ "mailbox.updated": "mailbox.updated";
715
+ "mailbox.deleted": "mailbox.deleted";
716
+ "message.created": "message.created";
717
+ "message.updated": "message.updated";
718
+ "message.deleted": "message.deleted";
719
+ "message.bounced": "message.bounced";
720
+ "message.classified": "message.classified";
721
+ "message.opened": "message.opened";
722
+ "message.clicked": "message.clicked";
723
+ "send.sent": "send.sent";
724
+ "send.retrying": "send.retrying";
725
+ "send.failed": "send.failed";
726
+ "send.rescheduled": "send.rescheduled";
727
+ "send.cancelled": "send.cancelled";
728
+ "suppression.created": "suppression.created";
729
+ "calendar.initialized": "calendar.initialized";
730
+ "calendar.created": "calendar.created";
731
+ "calendar.updated": "calendar.updated";
732
+ "calendar.deleted": "calendar.deleted";
733
+ "calendar_event.created": "calendar_event.created";
734
+ "calendar_event.updated": "calendar_event.updated";
735
+ "calendar_event.deleted": "calendar_event.deleted";
736
+ "contacts.initialized": "contacts.initialized";
737
+ "contact.created": "contact.created";
738
+ "contact.updated": "contact.updated";
739
+ "contact.deleted": "contact.deleted";
740
+ "export.completed": "export.completed";
741
+ "export.failed": "export.failed";
742
+ "meeting_connection.connected": "meeting_connection.connected";
743
+ "meeting_connection.reauth_required": "meeting_connection.reauth_required";
744
+ "booking.created": "booking.created";
745
+ "booking.cancelled": "booking.cancelled";
746
+ "webhook.test": "webhook.test";
747
+ }>;
748
+ accountId: z.ZodNullable<z.ZodUUID>;
749
+ attempt: z.ZodNumber;
750
+ statusCode: z.ZodNullable<z.ZodNumber>;
751
+ error: z.ZodNullable<z.ZodString>;
752
+ responseExcerpt: z.ZodNullable<z.ZodString>;
753
+ durationMs: z.ZodNumber;
754
+ isReplay: z.ZodBoolean;
755
+ isTest: z.ZodBoolean;
756
+ occurredAt: z.ZodPreprocess<z.ZodDate, Date>;
757
+ }, z.core.$strip>>;
758
+ nextCursor: z.ZodNullable<z.ZodString>;
759
+ }, z.core.$strip>;
760
+ export type WebhookAttemptPage = z.infer<typeof WebhookAttemptPage>;
761
+ export declare const ListWebhookAttemptsQuery: z.ZodObject<{
762
+ limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
763
+ cursor: z.ZodOptional<z.ZodString>;
764
+ eventType: z.ZodOptional<z.ZodEnum<{
765
+ "account.connected": "account.connected";
766
+ "account.updated": "account.updated";
767
+ "account.deleted": "account.deleted";
768
+ "account.reauth_required": "account.reauth_required";
769
+ "account.initialized": "account.initialized";
770
+ "account.purged": "account.purged";
771
+ "mailbox.created": "mailbox.created";
772
+ "mailbox.updated": "mailbox.updated";
773
+ "mailbox.deleted": "mailbox.deleted";
774
+ "message.created": "message.created";
775
+ "message.updated": "message.updated";
776
+ "message.deleted": "message.deleted";
777
+ "message.bounced": "message.bounced";
778
+ "message.classified": "message.classified";
779
+ "message.opened": "message.opened";
780
+ "message.clicked": "message.clicked";
781
+ "send.sent": "send.sent";
782
+ "send.retrying": "send.retrying";
783
+ "send.failed": "send.failed";
784
+ "send.rescheduled": "send.rescheduled";
785
+ "send.cancelled": "send.cancelled";
786
+ "suppression.created": "suppression.created";
787
+ "calendar.initialized": "calendar.initialized";
788
+ "calendar.created": "calendar.created";
789
+ "calendar.updated": "calendar.updated";
790
+ "calendar.deleted": "calendar.deleted";
791
+ "calendar_event.created": "calendar_event.created";
792
+ "calendar_event.updated": "calendar_event.updated";
793
+ "calendar_event.deleted": "calendar_event.deleted";
794
+ "contacts.initialized": "contacts.initialized";
795
+ "contact.created": "contact.created";
796
+ "contact.updated": "contact.updated";
797
+ "contact.deleted": "contact.deleted";
798
+ "export.completed": "export.completed";
799
+ "export.failed": "export.failed";
800
+ "meeting_connection.connected": "meeting_connection.connected";
801
+ "meeting_connection.reauth_required": "meeting_connection.reauth_required";
802
+ "booking.created": "booking.created";
803
+ "booking.cancelled": "booking.cancelled";
804
+ "webhook.test": "webhook.test";
805
+ }>>;
806
+ eventId: z.ZodOptional<z.ZodString>;
807
+ accountId: z.ZodOptional<z.ZodUUID>;
808
+ result: z.ZodOptional<z.ZodEnum<{
809
+ failed: "failed";
810
+ succeeded: "succeeded";
811
+ }>>;
812
+ since: z.ZodOptional<z.ZodPreprocess<z.ZodDate, string | Date>>;
813
+ until: z.ZodOptional<z.ZodPreprocess<z.ZodDate, string | Date>>;
814
+ }, z.core.$strip>;
815
+ export type ListWebhookAttemptsQuery = z.infer<typeof ListWebhookAttemptsQuery>;
816
+ export declare const ListWebhookAttemptsInput: z.ZodObject<{
817
+ endpointId: z.ZodUUID;
818
+ limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
819
+ cursor: z.ZodOptional<z.ZodString>;
820
+ eventType: z.ZodOptional<z.ZodEnum<{
821
+ "account.connected": "account.connected";
822
+ "account.updated": "account.updated";
823
+ "account.deleted": "account.deleted";
824
+ "account.reauth_required": "account.reauth_required";
825
+ "account.initialized": "account.initialized";
826
+ "account.purged": "account.purged";
827
+ "mailbox.created": "mailbox.created";
828
+ "mailbox.updated": "mailbox.updated";
829
+ "mailbox.deleted": "mailbox.deleted";
830
+ "message.created": "message.created";
831
+ "message.updated": "message.updated";
832
+ "message.deleted": "message.deleted";
833
+ "message.bounced": "message.bounced";
834
+ "message.classified": "message.classified";
835
+ "message.opened": "message.opened";
836
+ "message.clicked": "message.clicked";
837
+ "send.sent": "send.sent";
838
+ "send.retrying": "send.retrying";
839
+ "send.failed": "send.failed";
840
+ "send.rescheduled": "send.rescheduled";
841
+ "send.cancelled": "send.cancelled";
842
+ "suppression.created": "suppression.created";
843
+ "calendar.initialized": "calendar.initialized";
844
+ "calendar.created": "calendar.created";
845
+ "calendar.updated": "calendar.updated";
846
+ "calendar.deleted": "calendar.deleted";
847
+ "calendar_event.created": "calendar_event.created";
848
+ "calendar_event.updated": "calendar_event.updated";
849
+ "calendar_event.deleted": "calendar_event.deleted";
850
+ "contacts.initialized": "contacts.initialized";
851
+ "contact.created": "contact.created";
852
+ "contact.updated": "contact.updated";
853
+ "contact.deleted": "contact.deleted";
854
+ "export.completed": "export.completed";
855
+ "export.failed": "export.failed";
856
+ "meeting_connection.connected": "meeting_connection.connected";
857
+ "meeting_connection.reauth_required": "meeting_connection.reauth_required";
858
+ "booking.created": "booking.created";
859
+ "booking.cancelled": "booking.cancelled";
860
+ "webhook.test": "webhook.test";
861
+ }>>;
862
+ eventId: z.ZodOptional<z.ZodString>;
863
+ accountId: z.ZodOptional<z.ZodUUID>;
864
+ result: z.ZodOptional<z.ZodEnum<{
865
+ failed: "failed";
866
+ succeeded: "succeeded";
867
+ }>>;
868
+ since: z.ZodOptional<z.ZodPreprocess<z.ZodDate, string | Date>>;
869
+ until: z.ZodOptional<z.ZodPreprocess<z.ZodDate, string | Date>>;
870
+ }, z.core.$strip>;
871
+ export declare const ReplayEventInput: z.ZodObject<{
872
+ endpointId: z.ZodUUID;
873
+ eventId: z.ZodString;
874
+ }, z.core.$strip>;
875
+ export type ReplayEventInput = z.infer<typeof ReplayEventInput>;
876
+ export declare const ReplayRangeRequest: z.ZodObject<{
877
+ since: z.ZodPreprocess<z.ZodDate, string | Date>;
878
+ until: z.ZodPreprocess<z.ZodDate, string | Date>;
879
+ }, z.core.$strip>;
880
+ export type ReplayRangeRequest = z.infer<typeof ReplayRangeRequest>;
881
+ export declare const ReplayResult: z.ZodObject<{
882
+ queued: z.ZodNumber;
883
+ alreadyQueued: z.ZodNumber;
884
+ }, z.core.$strip>;
885
+ export type ReplayResult = z.infer<typeof ReplayResult>;
886
+ export declare const FailedDeliveriesQuery: z.ZodObject<{
887
+ since: z.ZodOptional<z.ZodPreprocess<z.ZodDate, string | Date>>;
888
+ until: z.ZodOptional<z.ZodPreprocess<z.ZodDate, string | Date>>;
889
+ }, z.core.$strip>;
890
+ export type FailedDeliveriesQuery = z.infer<typeof FailedDeliveriesQuery>;
891
+ export declare const FailedDeliveryCount: z.ZodObject<{
892
+ count: z.ZodNumber;
893
+ }, z.core.$strip>;
894
+ export type FailedDeliveryCount = z.infer<typeof FailedDeliveryCount>;