@workwae/sdk 0.1.0-alpha.1 → 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 (61) hide show
  1. package/README.md +7 -7
  2. package/client.d.ts +1 -1
  3. package/contract/accounts/models.d.ts +85 -45
  4. package/contract/accounts/routes.d.ts +191 -29
  5. package/contract/ai/models.d.ts +0 -1
  6. package/contract/ai/routes.d.ts +9 -0
  7. package/contract/audit-log/models.d.ts +19 -5
  8. package/contract/audit-log/routes.d.ts +10 -1
  9. package/contract/calendar/models.d.ts +249 -74
  10. package/contract/calendar/routes.d.ts +574 -30
  11. package/contract/connect/models.d.ts +28 -16
  12. package/contract/connect/routes.d.ts +46 -7
  13. package/contract/contacts/models.d.ts +0 -10
  14. package/contract/contacts/routes.d.ts +14 -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 +28 -20
  18. package/contract/events/models.d.ts +139 -79
  19. package/contract/events/routes.d.ts +54 -44
  20. package/contract/exports/routes.d.ts +10 -0
  21. package/contract/identities/models.d.ts +7 -9
  22. package/contract/identities/routes.d.ts +79 -10
  23. package/contract/limits.d.ts +21 -73
  24. package/contract/mail/models.d.ts +91 -48
  25. package/contract/mail/routes.d.ts +458 -18
  26. package/contract/mcp-keys/models.d.ts +125 -0
  27. package/contract/mcp-keys/routes.d.ts +151 -0
  28. package/contract/meetings/models.d.ts +28 -33
  29. package/contract/meetings/routes.d.ts +44 -25
  30. package/contract/oauth-apps/models.d.ts +0 -6
  31. package/contract/oauth-apps/routes.d.ts +8 -0
  32. package/contract/org-connections/models.d.ts +83 -39
  33. package/contract/org-connections/routes.d.ts +320 -43
  34. package/contract/plans/credit-packs.d.ts +30 -0
  35. package/contract/plans/models.d.ts +208 -0
  36. package/contract/primitives.d.ts +7 -62
  37. package/contract/public.d.ts +6 -0
  38. package/contract/reasons.d.ts +532 -21
  39. package/contract/router.d.ts +6425 -3212
  40. package/contract/scheduling/models.d.ts +405 -0
  41. package/contract/scheduling/routes.d.ts +756 -0
  42. package/contract/send/models.d.ts +82 -45
  43. package/contract/send/routes.d.ts +281 -32
  44. package/contract/settings/models.d.ts +73 -13
  45. package/contract/settings/routes.d.ts +56 -4
  46. package/contract/suppressions/models.d.ts +21 -28
  47. package/contract/suppressions/routes.d.ts +62 -14
  48. package/contract/templates/models.d.ts +0 -14
  49. package/contract/templates/routes.d.ts +30 -6
  50. package/contract/threads/models.d.ts +0 -5
  51. package/contract/threads/routes.d.ts +40 -0
  52. package/contract/tracking-domain/models.d.ts +41 -0
  53. package/contract/tracking-domain/routes.d.ts +193 -0
  54. package/contract/usage/models.d.ts +98 -126
  55. package/contract/usage/routes.d.ts +48 -20
  56. package/contract/webhooks/models.d.ts +45 -30
  57. package/contract/webhooks/routes.d.ts +52 -9
  58. package/contract/webhooks/signing.d.ts +0 -16
  59. package/index.js +1 -4334
  60. package/package.json +6 -7
  61. package/index.js.map +0 -59
@@ -17,7 +17,6 @@ export declare const AccountConnectedData: z.ZodObject<{
17
17
  reauthorized: z.ZodBoolean;
18
18
  }, z.core.$strip>;
19
19
  export type AccountConnectedData = z.infer<typeof AccountConnectedData>;
20
- /** imap and dav: the account's IMAP or DAV connection settings; credentials: its password. */
21
20
  export declare const AccountUpdatedField: z.ZodEnum<{
22
21
  imap: "imap";
23
22
  dav: "dav";
@@ -79,13 +78,13 @@ export declare const MailboxData: z.ZodObject<{
79
78
  parentId: z.ZodNullable<z.ZodUUID>;
80
79
  role: z.ZodEnum<{
81
80
  custom: "custom";
81
+ all: "all";
82
82
  inbox: "inbox";
83
83
  sent: "sent";
84
84
  drafts: "drafts";
85
85
  trash: "trash";
86
86
  junk: "junk";
87
87
  archive: "archive";
88
- all: "all";
89
88
  important: "important";
90
89
  }>;
91
90
  kind: z.ZodEnum<{
@@ -105,13 +104,13 @@ export declare const MailboxUpdatedData: z.ZodObject<{
105
104
  parentId: z.ZodNullable<z.ZodUUID>;
106
105
  role: z.ZodEnum<{
107
106
  custom: "custom";
107
+ all: "all";
108
108
  inbox: "inbox";
109
109
  sent: "sent";
110
110
  drafts: "drafts";
111
111
  trash: "trash";
112
112
  junk: "junk";
113
113
  archive: "archive";
114
- all: "all";
115
114
  important: "important";
116
115
  }>;
117
116
  kind: z.ZodEnum<{
@@ -130,19 +129,18 @@ export declare const MailboxUpdatedData: z.ZodObject<{
130
129
  }>>;
131
130
  }, z.core.$strip>;
132
131
  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
132
  export declare const MailboxRef: z.ZodObject<{
135
133
  id: z.ZodUUID;
136
134
  name: z.ZodString;
137
135
  role: z.ZodEnum<{
138
136
  custom: "custom";
137
+ all: "all";
139
138
  inbox: "inbox";
140
139
  sent: "sent";
141
140
  drafts: "drafts";
142
141
  trash: "trash";
143
142
  junk: "junk";
144
143
  archive: "archive";
145
- all: "all";
146
144
  important: "important";
147
145
  }>;
148
146
  }, z.core.$strip>;
@@ -191,13 +189,13 @@ export declare const MessageData: z.ZodObject<{
191
189
  name: z.ZodString;
192
190
  role: z.ZodEnum<{
193
191
  custom: "custom";
192
+ all: "all";
194
193
  inbox: "inbox";
195
194
  sent: "sent";
196
195
  drafts: "drafts";
197
196
  trash: "trash";
198
197
  junk: "junk";
199
198
  archive: "archive";
200
- all: "all";
201
199
  important: "important";
202
200
  }>;
203
201
  }, z.core.$strip>>;
@@ -247,13 +245,13 @@ export declare const MessageUpdatedData: z.ZodObject<{
247
245
  name: z.ZodString;
248
246
  role: z.ZodEnum<{
249
247
  custom: "custom";
248
+ all: "all";
250
249
  inbox: "inbox";
251
250
  sent: "sent";
252
251
  drafts: "drafts";
253
252
  trash: "trash";
254
253
  junk: "junk";
255
254
  archive: "archive";
256
- all: "all";
257
255
  important: "important";
258
256
  }>;
259
257
  }, z.core.$strip>>;
@@ -325,13 +323,13 @@ export declare const MessageDeletedData: z.ZodObject<{
325
323
  name: z.ZodString;
326
324
  role: z.ZodEnum<{
327
325
  custom: "custom";
326
+ all: "all";
328
327
  inbox: "inbox";
329
328
  sent: "sent";
330
329
  drafts: "drafts";
331
330
  trash: "trash";
332
331
  junk: "junk";
333
332
  archive: "archive";
334
- all: "all";
335
333
  important: "important";
336
334
  }>;
337
335
  }, z.core.$strip>>;
@@ -383,13 +381,13 @@ export declare const MessageClassifiedData: z.ZodObject<{
383
381
  name: z.ZodString;
384
382
  role: z.ZodEnum<{
385
383
  custom: "custom";
384
+ all: "all";
386
385
  inbox: "inbox";
387
386
  sent: "sent";
388
387
  drafts: "drafts";
389
388
  trash: "trash";
390
389
  junk: "junk";
391
390
  archive: "archive";
392
- all: "all";
393
391
  important: "important";
394
392
  }>;
395
393
  }, z.core.$strip>>;
@@ -523,11 +521,22 @@ export declare const SendError: z.ZodObject<{
523
521
  message: z.ZodString;
524
522
  }, z.core.$strip>;
525
523
  export type SendError = z.infer<typeof SendError>;
524
+ export declare const RejectedRecipient: z.ZodObject<{
525
+ address: z.ZodString;
526
+ status: z.ZodNullable<z.ZodString>;
527
+ diagnostic: z.ZodNullable<z.ZodString>;
528
+ }, z.core.$strip>;
529
+ export type RejectedRecipient = z.infer<typeof RejectedRecipient>;
526
530
  export declare const SendSentData: z.ZodObject<{
527
531
  attempt: z.ZodNumber;
528
532
  providerMessageId: z.ZodNullable<z.ZodString>;
529
533
  internetMessageId: z.ZodNullable<z.ZodString>;
530
534
  sentAt: z.ZodPreprocess<z.ZodDate, Date>;
535
+ rejectedRecipients: z.ZodArray<z.ZodObject<{
536
+ address: z.ZodString;
537
+ status: z.ZodNullable<z.ZodString>;
538
+ diagnostic: z.ZodNullable<z.ZodString>;
539
+ }, z.core.$strip>>;
531
540
  outboxId: z.ZodUUID;
532
541
  reference: z.ZodNullable<z.ZodString>;
533
542
  }, z.core.$strip>;
@@ -560,11 +569,18 @@ export declare const SendRescheduledData: z.ZodObject<{
560
569
  reference: z.ZodNullable<z.ZodString>;
561
570
  }, z.core.$strip>;
562
571
  export type SendRescheduledData = z.infer<typeof SendRescheduledData>;
572
+ export declare const SendCancelledData: z.ZodObject<{
573
+ mailMergeId: z.ZodNullable<z.ZodUUID>;
574
+ outboxId: z.ZodUUID;
575
+ reference: z.ZodNullable<z.ZodString>;
576
+ }, z.core.$strip>;
577
+ export type SendCancelledData = z.infer<typeof SendCancelledData>;
563
578
  export declare const SuppressionCreatedData: z.ZodObject<{
564
579
  listId: z.ZodString;
565
580
  address: z.ZodString;
566
581
  source: z.ZodEnum<{
567
582
  api: "api";
583
+ invalid: "invalid";
568
584
  bounce: "bounce";
569
585
  unsubscribe: "unsubscribe";
570
586
  reply: "reply";
@@ -984,12 +1000,16 @@ export declare const MeetingConnectionReauthRequiredData: z.ZodObject<{
984
1000
  reason: z.ZodString;
985
1001
  }, z.core.$strip>;
986
1002
  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
- */
1003
+ export declare const BookingEventData: z.ZodObject<{
1004
+ bookingId: z.ZodUUID;
1005
+ linkId: z.ZodUUID;
1006
+ eventId: z.ZodNullable<z.ZodUUID>;
1007
+ start: z.ZodPreprocess<z.ZodDate, Date>;
1008
+ end: z.ZodPreprocess<z.ZodDate, Date>;
1009
+ invitee: z.ZodString;
1010
+ }, z.core.$strip>;
1011
+ export type BookingEventData = z.infer<typeof BookingEventData>;
991
1012
  export type EventScope = "account" | "tenant" | "either";
992
- /** Every event type: its scope, its `data` and what it announces. */
993
1013
  export declare const EVENTS: {
994
1014
  "account.connected": {
995
1015
  scope: "account";
@@ -1080,13 +1100,13 @@ export declare const EVENTS: {
1080
1100
  parentId: z.ZodNullable<z.ZodUUID>;
1081
1101
  role: z.ZodEnum<{
1082
1102
  custom: "custom";
1103
+ all: "all";
1083
1104
  inbox: "inbox";
1084
1105
  sent: "sent";
1085
1106
  drafts: "drafts";
1086
1107
  trash: "trash";
1087
1108
  junk: "junk";
1088
1109
  archive: "archive";
1089
- all: "all";
1090
1110
  important: "important";
1091
1111
  }>;
1092
1112
  kind: z.ZodEnum<{
@@ -1109,13 +1129,13 @@ export declare const EVENTS: {
1109
1129
  parentId: z.ZodNullable<z.ZodUUID>;
1110
1130
  role: z.ZodEnum<{
1111
1131
  custom: "custom";
1132
+ all: "all";
1112
1133
  inbox: "inbox";
1113
1134
  sent: "sent";
1114
1135
  drafts: "drafts";
1115
1136
  trash: "trash";
1116
1137
  junk: "junk";
1117
1138
  archive: "archive";
1118
- all: "all";
1119
1139
  important: "important";
1120
1140
  }>;
1121
1141
  kind: z.ZodEnum<{
@@ -1145,13 +1165,13 @@ export declare const EVENTS: {
1145
1165
  parentId: z.ZodNullable<z.ZodUUID>;
1146
1166
  role: z.ZodEnum<{
1147
1167
  custom: "custom";
1168
+ all: "all";
1148
1169
  inbox: "inbox";
1149
1170
  sent: "sent";
1150
1171
  drafts: "drafts";
1151
1172
  trash: "trash";
1152
1173
  junk: "junk";
1153
1174
  archive: "archive";
1154
- all: "all";
1155
1175
  important: "important";
1156
1176
  }>;
1157
1177
  kind: z.ZodEnum<{
@@ -1210,13 +1230,13 @@ export declare const EVENTS: {
1210
1230
  name: z.ZodString;
1211
1231
  role: z.ZodEnum<{
1212
1232
  custom: "custom";
1233
+ all: "all";
1213
1234
  inbox: "inbox";
1214
1235
  sent: "sent";
1215
1236
  drafts: "drafts";
1216
1237
  trash: "trash";
1217
1238
  junk: "junk";
1218
1239
  archive: "archive";
1219
- all: "all";
1220
1240
  important: "important";
1221
1241
  }>;
1222
1242
  }, z.core.$strip>>;
@@ -1269,13 +1289,13 @@ export declare const EVENTS: {
1269
1289
  name: z.ZodString;
1270
1290
  role: z.ZodEnum<{
1271
1291
  custom: "custom";
1292
+ all: "all";
1272
1293
  inbox: "inbox";
1273
1294
  sent: "sent";
1274
1295
  drafts: "drafts";
1275
1296
  trash: "trash";
1276
1297
  junk: "junk";
1277
1298
  archive: "archive";
1278
- all: "all";
1279
1299
  important: "important";
1280
1300
  }>;
1281
1301
  }, z.core.$strip>>;
@@ -1350,13 +1370,13 @@ export declare const EVENTS: {
1350
1370
  name: z.ZodString;
1351
1371
  role: z.ZodEnum<{
1352
1372
  custom: "custom";
1373
+ all: "all";
1353
1374
  inbox: "inbox";
1354
1375
  sent: "sent";
1355
1376
  drafts: "drafts";
1356
1377
  trash: "trash";
1357
1378
  junk: "junk";
1358
1379
  archive: "archive";
1359
- all: "all";
1360
1380
  important: "important";
1361
1381
  }>;
1362
1382
  }, z.core.$strip>>;
@@ -1426,13 +1446,13 @@ export declare const EVENTS: {
1426
1446
  name: z.ZodString;
1427
1447
  role: z.ZodEnum<{
1428
1448
  custom: "custom";
1449
+ all: "all";
1429
1450
  inbox: "inbox";
1430
1451
  sent: "sent";
1431
1452
  drafts: "drafts";
1432
1453
  trash: "trash";
1433
1454
  junk: "junk";
1434
1455
  archive: "archive";
1435
- all: "all";
1436
1456
  important: "important";
1437
1457
  }>;
1438
1458
  }, z.core.$strip>>;
@@ -1639,6 +1659,11 @@ export declare const EVENTS: {
1639
1659
  providerMessageId: z.ZodNullable<z.ZodString>;
1640
1660
  internetMessageId: z.ZodNullable<z.ZodString>;
1641
1661
  sentAt: z.ZodPreprocess<z.ZodDate, Date>;
1662
+ rejectedRecipients: z.ZodArray<z.ZodObject<{
1663
+ address: z.ZodString;
1664
+ status: z.ZodNullable<z.ZodString>;
1665
+ diagnostic: z.ZodNullable<z.ZodString>;
1666
+ }, z.core.$strip>>;
1642
1667
  outboxId: z.ZodUUID;
1643
1668
  reference: z.ZodNullable<z.ZodString>;
1644
1669
  }, z.core.$strip>;
@@ -1681,6 +1706,15 @@ export declare const EVENTS: {
1681
1706
  }, z.core.$strip>;
1682
1707
  description: string;
1683
1708
  };
1709
+ "send.cancelled": {
1710
+ scope: "account";
1711
+ data: z.ZodObject<{
1712
+ mailMergeId: z.ZodNullable<z.ZodUUID>;
1713
+ outboxId: z.ZodUUID;
1714
+ reference: z.ZodNullable<z.ZodString>;
1715
+ }, z.core.$strip>;
1716
+ description: string;
1717
+ };
1684
1718
  "suppression.created": {
1685
1719
  scope: "account";
1686
1720
  data: z.ZodObject<{
@@ -1688,6 +1722,7 @@ export declare const EVENTS: {
1688
1722
  address: z.ZodString;
1689
1723
  source: z.ZodEnum<{
1690
1724
  api: "api";
1725
+ invalid: "invalid";
1691
1726
  bounce: "bounce";
1692
1727
  unsubscribe: "unsubscribe";
1693
1728
  reply: "reply";
@@ -2172,6 +2207,30 @@ export declare const EVENTS: {
2172
2207
  }, z.core.$strip>;
2173
2208
  description: string;
2174
2209
  };
2210
+ "booking.created": {
2211
+ scope: "account";
2212
+ data: z.ZodObject<{
2213
+ bookingId: z.ZodUUID;
2214
+ linkId: z.ZodUUID;
2215
+ eventId: z.ZodNullable<z.ZodUUID>;
2216
+ start: z.ZodPreprocess<z.ZodDate, Date>;
2217
+ end: z.ZodPreprocess<z.ZodDate, Date>;
2218
+ invitee: z.ZodString;
2219
+ }, z.core.$strip>;
2220
+ description: string;
2221
+ };
2222
+ "booking.cancelled": {
2223
+ scope: "account";
2224
+ data: z.ZodObject<{
2225
+ bookingId: z.ZodUUID;
2226
+ linkId: z.ZodUUID;
2227
+ eventId: z.ZodNullable<z.ZodUUID>;
2228
+ start: z.ZodPreprocess<z.ZodDate, Date>;
2229
+ end: z.ZodPreprocess<z.ZodDate, Date>;
2230
+ invitee: z.ZodString;
2231
+ }, z.core.$strip>;
2232
+ description: string;
2233
+ };
2175
2234
  "webhook.test": {
2176
2235
  scope: "tenant";
2177
2236
  data: z.ZodObject<{
@@ -2182,7 +2241,6 @@ export declare const EVENTS: {
2182
2241
  };
2183
2242
  export type EventType = keyof typeof EVENTS;
2184
2243
  type EventDefinition<T extends EventType> = (typeof EVENTS)[T];
2185
- /** Every event type, in the registry's order. */
2186
2244
  export declare const EVENT_TYPES: EventType[];
2187
2245
  export declare const EventType: z.ZodEnum<{
2188
2246
  "account.connected": "account.connected";
@@ -2205,6 +2263,7 @@ export declare const EventType: z.ZodEnum<{
2205
2263
  "send.retrying": "send.retrying";
2206
2264
  "send.failed": "send.failed";
2207
2265
  "send.rescheduled": "send.rescheduled";
2266
+ "send.cancelled": "send.cancelled";
2208
2267
  "suppression.created": "suppression.created";
2209
2268
  "calendar.initialized": "calendar.initialized";
2210
2269
  "calendar.created": "calendar.created";
@@ -2221,34 +2280,29 @@ export declare const EventType: z.ZodEnum<{
2221
2280
  "export.failed": "export.failed";
2222
2281
  "meeting_connection.connected": "meeting_connection.connected";
2223
2282
  "meeting_connection.reauth_required": "meeting_connection.reauth_required";
2283
+ "booking.created": "booking.created";
2284
+ "booking.cancelled": "booking.cancelled";
2224
2285
  "webhook.test": "webhook.test";
2225
2286
  }>;
2226
- /** The type the test action sends when it is given none. */
2227
2287
  export declare const TEST_EVENT_TYPE = "webhook.test";
2228
- /** The `data` of an event of type T. */
2229
2288
  export type EventData<T extends EventType = EventType> = {
2230
2289
  [K in T]: z.infer<EventDefinition<K>["data"]>;
2231
2290
  }[T];
2232
- /** What an emitter passes as the `data` of an event of type T. */
2233
2291
  export type EventDataInput<T extends EventType = EventType> = {
2234
2292
  [K in T]: z.input<EventDefinition<K>["data"]>;
2235
2293
  }[T];
2236
- /** The envelope accountId of an event of type T. */
2237
2294
  export type EventAccountId<T extends EventType> = {
2238
2295
  account: string;
2239
2296
  tenant: null;
2240
2297
  either: string | null;
2241
2298
  }[EventDefinition<T>["scope"]];
2242
- /** Whether `type` is announced without an account (the envelope's accountId is always null). */
2243
2299
  export declare function isAccountlessEventType(type: EventType): boolean;
2244
- /** `data` checked against the schema of `type`; throws a ZodError when it does not match. */
2245
2300
  export declare function parseEventData<T extends EventType>(type: T, data: unknown): EventData<T>;
2246
2301
  declare const ENVELOPE_ACCOUNT_ID: {
2247
2302
  readonly account: z.ZodUUID;
2248
2303
  readonly tenant: z.ZodNull;
2249
2304
  readonly either: z.ZodNullable<z.ZodUUID>;
2250
2305
  };
2251
- /** The envelope schema of events of type T. */
2252
2306
  export type EventEnvelope<T extends EventType> = z.ZodObject<{
2253
2307
  id: typeof EventId;
2254
2308
  type: z.ZodLiteral<T>;
@@ -2260,58 +2314,62 @@ export type EventEnvelope<T extends EventType> = z.ZodObject<{
2260
2314
  type EventVariant = {
2261
2315
  [T in EventType]: EventEnvelope<T>;
2262
2316
  }[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">;
2317
+ export declare const Event: z.ZodDiscriminatedUnion<[
2318
+ EventVariant,
2319
+ ...EventVariant[]
2320
+ ], "type">;
2268
2321
  export type Event = z.infer<typeof Event>;
2269
- /** An event of one type. */
2270
2322
  export type EventOf<T extends EventType> = Extract<Event, {
2271
2323
  type: T;
2272
2324
  }>;
2273
2325
  export declare const ListChangesQuery: z.ZodObject<{
2274
2326
  cursor: z.ZodOptional<z.ZodString>;
2275
2327
  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<{
2328
+ types: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [
2329
+ z.ZodString,
2330
+ z.ZodArray<z.ZodEnum<{
2331
+ "account.connected": "account.connected";
2332
+ "account.updated": "account.updated";
2333
+ "account.deleted": "account.deleted";
2334
+ "account.reauth_required": "account.reauth_required";
2335
+ "account.initialized": "account.initialized";
2336
+ "account.purged": "account.purged";
2337
+ "mailbox.created": "mailbox.created";
2338
+ "mailbox.updated": "mailbox.updated";
2339
+ "mailbox.deleted": "mailbox.deleted";
2340
+ "message.created": "message.created";
2341
+ "message.updated": "message.updated";
2342
+ "message.deleted": "message.deleted";
2343
+ "message.bounced": "message.bounced";
2344
+ "message.classified": "message.classified";
2345
+ "message.opened": "message.opened";
2346
+ "message.clicked": "message.clicked";
2347
+ "send.sent": "send.sent";
2348
+ "send.retrying": "send.retrying";
2349
+ "send.failed": "send.failed";
2350
+ "send.rescheduled": "send.rescheduled";
2351
+ "send.cancelled": "send.cancelled";
2352
+ "suppression.created": "suppression.created";
2353
+ "calendar.initialized": "calendar.initialized";
2354
+ "calendar.created": "calendar.created";
2355
+ "calendar.updated": "calendar.updated";
2356
+ "calendar.deleted": "calendar.deleted";
2357
+ "calendar_event.created": "calendar_event.created";
2358
+ "calendar_event.updated": "calendar_event.updated";
2359
+ "calendar_event.deleted": "calendar_event.deleted";
2360
+ "contacts.initialized": "contacts.initialized";
2361
+ "contact.created": "contact.created";
2362
+ "contact.updated": "contact.updated";
2363
+ "contact.deleted": "contact.deleted";
2364
+ "export.completed": "export.completed";
2365
+ "export.failed": "export.failed";
2366
+ "meeting_connection.connected": "meeting_connection.connected";
2367
+ "meeting_connection.reauth_required": "meeting_connection.reauth_required";
2368
+ "booking.created": "booking.created";
2369
+ "booking.cancelled": "booking.cancelled";
2370
+ "webhook.test": "webhook.test";
2371
+ }>>
2372
+ ]>, 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" | "send.cancelled" | "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" | "booking.created" | "booking.cancelled" | "webhook.test")[]>>, z.ZodArray<z.ZodEnum<{
2315
2373
  "account.connected": "account.connected";
2316
2374
  "account.updated": "account.updated";
2317
2375
  "account.deleted": "account.deleted";
@@ -2332,6 +2390,7 @@ export declare const ListChangesQuery: z.ZodObject<{
2332
2390
  "send.retrying": "send.retrying";
2333
2391
  "send.failed": "send.failed";
2334
2392
  "send.rescheduled": "send.rescheduled";
2393
+ "send.cancelled": "send.cancelled";
2335
2394
  "suppression.created": "suppression.created";
2336
2395
  "calendar.initialized": "calendar.initialized";
2337
2396
  "calendar.created": "calendar.created";
@@ -2348,16 +2407,17 @@ export declare const ListChangesQuery: z.ZodObject<{
2348
2407
  "export.failed": "export.failed";
2349
2408
  "meeting_connection.connected": "meeting_connection.connected";
2350
2409
  "meeting_connection.reauth_required": "meeting_connection.reauth_required";
2410
+ "booking.created": "booking.created";
2411
+ "booking.cancelled": "booking.cancelled";
2351
2412
  "webhook.test": "webhook.test";
2352
2413
  }>>>>;
2353
2414
  }, z.core.$strip>;
2354
2415
  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
2416
  export declare const EventFeedPage: z.ZodObject<{
2360
- items: z.ZodArray<z.ZodDiscriminatedUnion<[EventVariant, ...EventVariant[]], "type">>;
2417
+ items: z.ZodArray<z.ZodDiscriminatedUnion<[
2418
+ EventVariant,
2419
+ ...EventVariant[]
2420
+ ], "type">>;
2361
2421
  nextCursor: z.ZodString;
2362
2422
  }, z.core.$strip>;
2363
2423
  export type EventFeedPage = z.infer<typeof EventFeedPage>;