@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
@@ -45,7 +45,6 @@ export declare const Compose: z.ZodObject<{
45
45
  }>>;
46
46
  }, z.core.$strip>;
47
47
  export type Compose = z.infer<typeof Compose>;
48
- /** What composing with templates adds to a draft or a send. */
49
48
  export declare const ComposeWithTemplate: z.ZodObject<{
50
49
  to: z.ZodDefault<z.ZodArray<z.ZodObject<{
51
50
  name: z.ZodOptional<z.ZodString>;
@@ -129,9 +128,9 @@ export declare const OutboxEntry: z.ZodObject<{
129
128
  machineClickCount: z.ZodNumber;
130
129
  firstOpenedAt: z.ZodNullable<z.ZodPreprocess<z.ZodDate, Date>>;
131
130
  lastOpenedAt: z.ZodNullable<z.ZodPreprocess<z.ZodDate, Date>>;
131
+ mailMergeId: z.ZodNullable<z.ZodUUID>;
132
132
  }, z.core.$strip>;
133
133
  export type OutboxEntry = z.infer<typeof OutboxEntry>;
134
- /** What queueing a send answers: the entry, and until when cancelling it undoes the send. */
135
134
  export declare const QueuedSend: z.ZodObject<{
136
135
  id: z.ZodUUID;
137
136
  accountId: z.ZodUUID;
@@ -159,18 +158,16 @@ export declare const QueuedSend: z.ZodObject<{
159
158
  machineClickCount: z.ZodNumber;
160
159
  firstOpenedAt: z.ZodNullable<z.ZodPreprocess<z.ZodDate, Date>>;
161
160
  lastOpenedAt: z.ZodNullable<z.ZodPreprocess<z.ZodDate, Date>>;
161
+ mailMergeId: z.ZodNullable<z.ZodUUID>;
162
162
  undoUntil: z.ZodNullable<z.ZodPreprocess<z.ZodDate, Date>>;
163
163
  }, z.core.$strip>;
164
164
  export type QueuedSend = z.infer<typeof QueuedSend>;
165
- /** Per-send tracking; an omitted key follows the account's trackOpens / trackClicks /
166
- * trackingHoneypot. `honeypot` only comes with click tracking: true with clicks off is refused. */
167
165
  export declare const SendTracking: z.ZodObject<{
168
166
  opens: z.ZodOptional<z.ZodBoolean>;
169
167
  clicks: z.ZodOptional<z.ZodBoolean>;
170
168
  honeypot: z.ZodOptional<z.ZodBoolean>;
171
169
  }, z.core.$strip>;
172
170
  export type SendTracking = z.infer<typeof SendTracking>;
173
- /** How and when a send or draft-send goes out. */
174
171
  export declare const SendOptions: z.ZodObject<{
175
172
  sendAt: z.ZodOptional<z.ZodPreprocess<z.ZodDate, string | Date>>;
176
173
  reference: z.ZodOptional<z.ZodString>;
@@ -181,8 +178,6 @@ export declare const SendOptions: z.ZodObject<{
181
178
  }, z.core.$strip>>;
182
179
  }, z.core.$strip>;
183
180
  export type SendOptions = z.infer<typeof SendOptions>;
184
- /** One recipient of a mail merge. Checked one by one, so a bad entry fails alone (see
185
- * MailMergeResult); `to.address` and `messageId` are therefore not refused by the schema. */
186
181
  export declare const MailMergeEntry: z.ZodObject<{
187
182
  to: z.ZodObject<{
188
183
  name: z.ZodOptional<z.ZodString>;
@@ -249,7 +244,6 @@ export declare const SendMessageRequest: z.ZodObject<{
249
244
  listId: z.ZodOptional<z.ZodString>;
250
245
  }, z.core.$strip>;
251
246
  export type SendMessageRequest = z.infer<typeof SendMessageRequest>;
252
- /** The send body without to, cc, bcc and render: an unknown field is refused. */
253
247
  export declare const MailMergeRequest: z.ZodObject<{
254
248
  format: z.ZodOptional<z.ZodEnum<{
255
249
  markdown: "markdown";
@@ -323,30 +317,8 @@ export declare const MailMergeFailure: z.ZodObject<{
323
317
  status: z.ZodNumber;
324
318
  }, z.core.$strip>;
325
319
  export type MailMergeFailure = z.infer<typeof MailMergeFailure>;
326
- export declare const MailMergeResult: z.ZodDiscriminatedUnion<[z.ZodObject<{
327
- success: z.ZodLiteral<true>;
328
- to: z.ZodObject<{
329
- name: z.ZodNullable<z.ZodString>;
330
- address: z.ZodString;
331
- }, z.core.$strip>;
332
- outboxId: z.ZodUUID;
333
- messageId: z.ZodString;
334
- sendAt: z.ZodPreprocess<z.ZodDate, Date>;
335
- undoUntil: z.ZodNullable<z.ZodPreprocess<z.ZodDate, Date>>;
336
- }, z.core.$strip>, z.ZodObject<{
337
- success: z.ZodLiteral<false>;
338
- to: z.ZodObject<{
339
- name: z.ZodNullable<z.ZodString>;
340
- address: z.ZodString;
341
- }, z.core.$strip>;
342
- reason: z.ZodString;
343
- error: z.ZodString;
344
- status: z.ZodNumber;
345
- }, z.core.$strip>], "success">;
346
- export type MailMergeResult = z.infer<typeof MailMergeResult>;
347
- /** What a mail merge answers: one result per entry, in the order given. */
348
- export declare const MailMergeResultList: z.ZodObject<{
349
- items: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
320
+ export declare const MailMergeResult: z.ZodDiscriminatedUnion<[
321
+ z.ZodObject<{
350
322
  success: z.ZodLiteral<true>;
351
323
  to: z.ZodObject<{
352
324
  name: z.ZodNullable<z.ZodString>;
@@ -356,7 +328,8 @@ export declare const MailMergeResultList: z.ZodObject<{
356
328
  messageId: z.ZodString;
357
329
  sendAt: z.ZodPreprocess<z.ZodDate, Date>;
358
330
  undoUntil: z.ZodNullable<z.ZodPreprocess<z.ZodDate, Date>>;
359
- }, z.core.$strip>, z.ZodObject<{
331
+ }, z.core.$strip>,
332
+ z.ZodObject<{
360
333
  success: z.ZodLiteral<false>;
361
334
  to: z.ZodObject<{
362
335
  name: z.ZodNullable<z.ZodString>;
@@ -365,9 +338,83 @@ export declare const MailMergeResultList: z.ZodObject<{
365
338
  reason: z.ZodString;
366
339
  error: z.ZodString;
367
340
  status: z.ZodNumber;
368
- }, z.core.$strip>], "success">>;
341
+ }, z.core.$strip>
342
+ ], "success">;
343
+ export type MailMergeResult = z.infer<typeof MailMergeResult>;
344
+ export declare const MailMergeResultList: z.ZodObject<{
345
+ items: z.ZodArray<z.ZodDiscriminatedUnion<[
346
+ z.ZodObject<{
347
+ success: z.ZodLiteral<true>;
348
+ to: z.ZodObject<{
349
+ name: z.ZodNullable<z.ZodString>;
350
+ address: z.ZodString;
351
+ }, z.core.$strip>;
352
+ outboxId: z.ZodUUID;
353
+ messageId: z.ZodString;
354
+ sendAt: z.ZodPreprocess<z.ZodDate, Date>;
355
+ undoUntil: z.ZodNullable<z.ZodPreprocess<z.ZodDate, Date>>;
356
+ }, z.core.$strip>,
357
+ z.ZodObject<{
358
+ success: z.ZodLiteral<false>;
359
+ to: z.ZodObject<{
360
+ name: z.ZodNullable<z.ZodString>;
361
+ address: z.ZodString;
362
+ }, z.core.$strip>;
363
+ reason: z.ZodString;
364
+ error: z.ZodString;
365
+ status: z.ZodNumber;
366
+ }, z.core.$strip>
367
+ ], "success">>;
368
+ id: z.ZodNullable<z.ZodUUID>;
369
369
  }, z.core.$strip>;
370
370
  export type MailMergeResultList = z.infer<typeof MailMergeResultList>;
371
+ export declare const MailMerge: z.ZodObject<{
372
+ id: z.ZodUUID;
373
+ accountId: z.ZodUUID;
374
+ reference: z.ZodNullable<z.ZodString>;
375
+ entryCount: z.ZodNumber;
376
+ createdAt: z.ZodPreprocess<z.ZodDate, Date>;
377
+ counts: z.ZodObject<{
378
+ queued: z.ZodNumber;
379
+ sending: z.ZodNumber;
380
+ sent: z.ZodNumber;
381
+ failed: z.ZodNumber;
382
+ cancelled: z.ZodNumber;
383
+ }, z.core.$strip>;
384
+ }, z.core.$strip>;
385
+ export type MailMerge = z.infer<typeof MailMerge>;
386
+ export declare const MailMergeIdInput: z.ZodObject<{
387
+ accountId: z.ZodUUID;
388
+ mailMergeId: z.ZodUUID;
389
+ }, z.core.$strip>;
390
+ export type MailMergeIdInput = z.infer<typeof MailMergeIdInput>;
391
+ export declare const MailMergePage: z.ZodObject<{
392
+ items: z.ZodArray<z.ZodObject<{
393
+ id: z.ZodUUID;
394
+ accountId: z.ZodUUID;
395
+ reference: z.ZodNullable<z.ZodString>;
396
+ entryCount: z.ZodNumber;
397
+ createdAt: z.ZodPreprocess<z.ZodDate, Date>;
398
+ counts: z.ZodObject<{
399
+ queued: z.ZodNumber;
400
+ sending: z.ZodNumber;
401
+ sent: z.ZodNumber;
402
+ failed: z.ZodNumber;
403
+ cancelled: z.ZodNumber;
404
+ }, z.core.$strip>;
405
+ }, z.core.$strip>>;
406
+ nextCursor: z.ZodNullable<z.ZodString>;
407
+ }, z.core.$strip>;
408
+ export type MailMergePage = z.infer<typeof MailMergePage>;
409
+ export declare const ListMailMergesQuery: z.ZodObject<{
410
+ limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
411
+ cursor: z.ZodOptional<z.ZodString>;
412
+ }, z.core.$strip>;
413
+ export type ListMailMergesQuery = z.infer<typeof ListMailMergesQuery>;
414
+ export declare const MailMergeCancelled: z.ZodObject<{
415
+ cancelled: z.ZodNumber;
416
+ }, z.core.$strip>;
417
+ export type MailMergeCancelled = z.infer<typeof MailMergeCancelled>;
371
418
  export declare const OutboxIdInput: z.ZodObject<{
372
419
  accountId: z.ZodUUID;
373
420
  outboxId: z.ZodUUID;
@@ -401,6 +448,7 @@ export declare const OutboxEntryPage: z.ZodObject<{
401
448
  machineClickCount: z.ZodNumber;
402
449
  firstOpenedAt: z.ZodNullable<z.ZodPreprocess<z.ZodDate, Date>>;
403
450
  lastOpenedAt: z.ZodNullable<z.ZodPreprocess<z.ZodDate, Date>>;
451
+ mailMergeId: z.ZodNullable<z.ZodUUID>;
404
452
  }, z.core.$strip>>;
405
453
  nextCursor: z.ZodNullable<z.ZodString>;
406
454
  }, z.core.$strip>;
@@ -431,9 +479,6 @@ export declare const TrackingEventKind: z.ZodEnum<{
431
479
  click: "click";
432
480
  }>;
433
481
  export type TrackingEventKind = z.infer<typeof TrackingEventKind>;
434
- /** Who is behind a hit. proxy: fetches for a person who opened the message (Gmail's image
435
- * proxy); prefetch: fetches whether or not anyone reads it (Apple Mail Privacy Protection);
436
- * scanner: a security gateway or bot; unknown: some signal against a person, not enough to say. */
437
482
  export declare const TrackingActor: z.ZodEnum<{
438
483
  unknown: "unknown";
439
484
  human: "human";
@@ -442,10 +487,6 @@ export declare const TrackingActor: z.ZodEnum<{
442
487
  scanner: "scanner";
443
488
  }>;
444
489
  export type TrackingActor = z.infer<typeof TrackingActor>;
445
- /** The mail client behind a hit, from its user agent, the Referer / Origin host it came from and
446
- * the fingerprint rules it matched. gmail_proxy: Gmail's image proxy (the reader's own device is
447
- * hidden); apple_mail_privacy: Apple Mail loading through Mail Privacy Protection's relay;
448
- * webmail: a self-hosted webmail (Roundcube, SOGo, Horde, a webmail.* host). */
449
490
  export declare const TrackingClient: z.ZodEnum<{
450
491
  unknown: "unknown";
451
492
  gmail_proxy: "gmail_proxy";
@@ -493,7 +534,6 @@ export declare const TrackingBrowser: z.ZodEnum<{
493
534
  samsung: "samsung";
494
535
  }>;
495
536
  export type TrackingBrowser = z.infer<typeof TrackingBrowser>;
496
- /** Fetch metadata the browser sent (sec-fetch-*), lower-cased; null where absent. */
497
537
  export declare const TrackingSecFetch: z.ZodObject<{
498
538
  dest: z.ZodNullable<z.ZodString>;
499
539
  mode: z.ZodNullable<z.ZodString>;
@@ -501,8 +541,6 @@ export declare const TrackingSecFetch: z.ZodObject<{
501
541
  user: z.ZodNullable<z.ZodBoolean>;
502
542
  }, z.core.$strip>;
503
543
  export type TrackingSecFetch = z.infer<typeof TrackingSecFetch>;
504
- /** What a hit's request showed, derived when it was recorded; carried by the list API and by
505
- * message.opened / message.clicked. */
506
544
  export declare const TrackingSignals: z.ZodObject<{
507
545
  method: z.ZodString;
508
546
  refererHost: z.ZodNullable<z.ZodString>;
@@ -570,7 +608,6 @@ export declare const TrackingSignals: z.ZodObject<{
570
608
  }, z.core.$strip>;
571
609
  }, z.core.$strip>;
572
610
  export type TrackingSignals = z.infer<typeof TrackingSignals>;
573
- /** One pixel load or link follow of a tracked send. */
574
611
  export declare const TrackingEvent: z.ZodObject<{
575
612
  headers: z.ZodRecord<z.ZodString, z.ZodString>;
576
613
  method: z.ZodString;