@workwae/sdk 0.1.0-alpha.5 → 0.1.0-alpha.7

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 (35) hide show
  1. package/client.d.ts +2 -2
  2. package/contract/accounts/routes.d.ts +40 -96
  3. package/contract/ai/routes.d.ts +4 -19
  4. package/contract/audit-log/routes.d.ts +4 -6
  5. package/contract/calendar/routes.d.ts +48 -248
  6. package/contract/connect/routes.d.ts +24 -74
  7. package/contract/connect-domain/routes.d.ts +15 -29
  8. package/contract/contacts/routes.d.ts +28 -102
  9. package/contract/email-validation/routes.d.ts +8 -8
  10. package/contract/errors.d.ts +4 -8
  11. package/contract/events/models.d.ts +0 -6
  12. package/contract/events/routes.d.ts +4 -4
  13. package/contract/exports/routes.d.ts +20 -28
  14. package/contract/identities/routes.d.ts +24 -51
  15. package/contract/mail/routes.d.ts +44 -201
  16. package/contract/mcp-keys/routes.d.ts +12 -16
  17. package/contract/meetings/routes.d.ts +36 -60
  18. package/contract/oauth-apps/routes.d.ts +15 -25
  19. package/contract/org-connections/routes.d.ts +43 -104
  20. package/contract/primitives.d.ts +7 -4
  21. package/contract/reasons.d.ts +0 -1
  22. package/contract/router.d.ts +645 -1582
  23. package/contract/scheduling/routes.d.ts +32 -81
  24. package/contract/send/models.d.ts +21 -0
  25. package/contract/send/routes.d.ts +81 -209
  26. package/contract/settings/routes.d.ts +7 -9
  27. package/contract/suppressions/routes.d.ts +48 -50
  28. package/contract/templates/routes.d.ts +30 -37
  29. package/contract/threads/routes.d.ts +16 -56
  30. package/contract/tracking-domain/routes.d.ts +15 -28
  31. package/contract/usage/routes.d.ts +4 -4
  32. package/contract/webhooks/routes.d.ts +43 -66
  33. package/errors.d.ts +2 -0
  34. package/index.js +1 -1
  35. package/package.json +4 -4
@@ -4,36 +4,29 @@ export declare const UNKNOWN_MAILBOX: import("../errors.js").DeclaredErrors<{
4
4
  }>;
5
5
  export declare const PROVIDER_CHANGE: {
6
6
  provider_not_found: {
7
- status: 404;
8
7
  message: string;
9
8
  };
10
9
  provider_forbidden: {
11
- status: 403;
12
10
  message: string;
13
11
  };
14
12
  provider_conflict: {
15
- status: 409;
16
13
  message: string;
17
14
  };
18
15
  provider_unsupported: {
19
- status: 400;
20
16
  message: string;
21
17
  };
22
18
  provider_rejected: {
23
- status: 400;
24
19
  message: string;
25
20
  };
26
21
  provider_unavailable: {
27
- status: 502;
28
22
  message: string;
29
23
  };
30
24
  provider_throttled: {
31
- status: 429;
32
25
  message: string;
33
26
  };
34
27
  };
35
28
  export declare const mailboxes: {
36
- list: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
29
+ list: import("@orpc/contract").ProcedureContractBuilderWithInputOutput<z.ZodObject<{
37
30
  accountId: z.ZodUUID;
38
31
  }, z.core.$strip>, z.ZodObject<{
39
32
  items: z.ZodArray<z.ZodObject<{
@@ -59,7 +52,7 @@ export declare const mailboxes: {
59
52
  totalCount: z.ZodNullable<z.ZodNumber>;
60
53
  unreadCount: z.ZodNullable<z.ZodNumber>;
61
54
  }, z.core.$strip>>;
62
- }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, import("../errors.js").DeclaredErrors<{
55
+ }, z.core.$strip>, Omit<import("../errors.js").DeclaredErrors<{
63
56
  readonly invalid_input: "The request does not match the operation's input schema (a malformed body included); data.issues names each problem.";
64
57
  readonly unauthenticated: "No usable credential: none was sent, or it is malformed, unknown, revoked or an expired account token.";
65
58
  readonly api_key_expired: "The API key is past its expiry (or the grace of the rotation that replaced it).";
@@ -76,21 +69,18 @@ export declare const mailboxes: {
76
69
  readonly invalid_idempotency_key: "POST only: the Idempotency-Key header is not 1 to 255 printable ASCII characters.";
77
70
  readonly idempotency_key_reused: "POST only: the Idempotency-Key was used in the last 24 hours with another method, path or body.";
78
71
  readonly idempotency_key_in_progress: "POST only: the request first sent with this Idempotency-Key has not been answered yet.";
79
- }>>, {
72
+ }>, "account_not_found" | "plan_module_unavailable" | "mail_disabled"> & {
80
73
  mail_disabled: {
81
- status: 409;
82
74
  message: string;
83
75
  };
84
76
  account_not_found: {
85
- status: 404;
86
77
  message: string;
87
78
  };
88
79
  plan_module_unavailable: {
89
- status: 403;
90
80
  message: string;
91
81
  };
92
- }>, Record<never, never>>;
93
- create: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
82
+ }>;
83
+ create: import("@orpc/contract").ProcedureContractBuilderWithInputOutput<z.ZodObject<{
94
84
  accountId: z.ZodUUID;
95
85
  name: z.ZodString;
96
86
  parentId: z.ZodOptional<z.ZodUUID>;
@@ -116,7 +106,7 @@ export declare const mailboxes: {
116
106
  }>;
117
107
  totalCount: z.ZodNullable<z.ZodNumber>;
118
108
  unreadCount: z.ZodNullable<z.ZodNumber>;
119
- }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, import("../errors.js").DeclaredErrors<{
109
+ }, z.core.$strip>, Omit<import("../errors.js").DeclaredErrors<{
120
110
  readonly invalid_input: "The request does not match the operation's input schema (a malformed body included); data.issues names each problem.";
121
111
  readonly unauthenticated: "No usable credential: none was sent, or it is malformed, unknown, revoked or an expired account token.";
122
112
  readonly api_key_expired: "The API key is past its expiry (or the grace of the rotation that replaced it).";
@@ -133,74 +123,58 @@ export declare const mailboxes: {
133
123
  readonly invalid_idempotency_key: "POST only: the Idempotency-Key header is not 1 to 255 printable ASCII characters.";
134
124
  readonly idempotency_key_reused: "POST only: the Idempotency-Key was used in the last 24 hours with another method, path or body.";
135
125
  readonly idempotency_key_in_progress: "POST only: the request first sent with this Idempotency-Key has not been answered yet.";
136
- }>>, {
126
+ }>, "provider_unavailable" | "account_not_found" | "plan_module_unavailable" | "account_paused" | "account_disabled" | "account_reauth_required" | "account_misconfigured" | "mail_disabled" | "mail_permission_missing" | "provider_not_found" | "provider_throttled" | "provider_forbidden" | "provider_conflict" | "provider_unsupported" | "provider_rejected" | "unknown_mailbox" | "group_unsupported"> & {
137
127
  provider_not_found: {
138
- status: 404;
139
128
  message: string;
140
129
  };
141
130
  provider_forbidden: {
142
- status: 403;
143
131
  message: string;
144
132
  };
145
133
  provider_conflict: {
146
- status: 409;
147
134
  message: string;
148
135
  };
149
136
  provider_unsupported: {
150
- status: 400;
151
137
  message: string;
152
138
  };
153
139
  provider_rejected: {
154
- status: 400;
155
140
  message: string;
156
141
  };
157
142
  provider_unavailable: {
158
- status: 502;
159
143
  message: string;
160
144
  };
161
145
  provider_throttled: {
162
- status: 429;
163
146
  message: string;
164
147
  };
165
148
  account_paused: {
166
- status: 409;
167
149
  message: string;
168
150
  };
169
151
  account_disabled: {
170
- status: 409;
171
152
  message: string;
172
153
  };
173
154
  account_reauth_required: {
174
- status: 409;
175
155
  message: string;
176
156
  };
177
157
  account_misconfigured: {
178
- status: 409;
179
158
  message: string;
180
159
  };
181
160
  group_unsupported: {
182
- status: 400;
183
161
  message: string;
184
162
  };
185
163
  unknown_mailbox: import("../errors.js").DeclaredError<"unknown_mailbox">;
186
164
  mail_permission_missing: {
187
- status: 409;
188
165
  message: string;
189
166
  };
190
167
  mail_disabled: {
191
- status: 409;
192
168
  message: string;
193
169
  };
194
170
  account_not_found: {
195
- status: 404;
196
171
  message: string;
197
172
  };
198
173
  plan_module_unavailable: {
199
- status: 403;
200
174
  message: string;
201
175
  };
202
- }>, Record<never, never>>;
203
- update: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
176
+ }>;
177
+ update: import("@orpc/contract").ProcedureContractBuilderWithInputOutput<z.ZodObject<{
204
178
  accountId: z.ZodUUID;
205
179
  mailboxId: z.ZodUUID;
206
180
  name: z.ZodOptional<z.ZodString>;
@@ -227,7 +201,7 @@ export declare const mailboxes: {
227
201
  }>;
228
202
  totalCount: z.ZodNullable<z.ZodNumber>;
229
203
  unreadCount: z.ZodNullable<z.ZodNumber>;
230
- }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, import("../errors.js").DeclaredErrors<{
204
+ }, z.core.$strip>, Omit<import("../errors.js").DeclaredErrors<{
231
205
  readonly invalid_input: "The request does not match the operation's input schema (a malformed body included); data.issues names each problem.";
232
206
  readonly unauthenticated: "No usable credential: none was sent, or it is malformed, unknown, revoked or an expired account token.";
233
207
  readonly api_key_expired: "The API key is past its expiry (or the grace of the rotation that replaced it).";
@@ -244,85 +218,67 @@ export declare const mailboxes: {
244
218
  readonly invalid_idempotency_key: "POST only: the Idempotency-Key header is not 1 to 255 printable ASCII characters.";
245
219
  readonly idempotency_key_reused: "POST only: the Idempotency-Key was used in the last 24 hours with another method, path or body.";
246
220
  readonly idempotency_key_in_progress: "POST only: the request first sent with this Idempotency-Key has not been answered yet.";
247
- }>>, {
221
+ }>, "provider_unavailable" | "account_not_found" | "plan_module_unavailable" | "account_paused" | "account_disabled" | "account_reauth_required" | "account_misconfigured" | "mail_disabled" | "mail_permission_missing" | "provider_not_found" | "provider_throttled" | "provider_forbidden" | "provider_conflict" | "provider_unsupported" | "provider_rejected" | "unknown_mailbox" | "mailbox_protected" | "mailbox_parent" | "group_unsupported"> & {
248
222
  provider_not_found: {
249
- status: 404;
250
223
  message: string;
251
224
  };
252
225
  provider_forbidden: {
253
- status: 403;
254
226
  message: string;
255
227
  };
256
228
  provider_conflict: {
257
- status: 409;
258
229
  message: string;
259
230
  };
260
231
  provider_unsupported: {
261
- status: 400;
262
232
  message: string;
263
233
  };
264
234
  provider_rejected: {
265
- status: 400;
266
235
  message: string;
267
236
  };
268
237
  provider_unavailable: {
269
- status: 502;
270
238
  message: string;
271
239
  };
272
240
  provider_throttled: {
273
- status: 429;
274
241
  message: string;
275
242
  };
276
243
  account_paused: {
277
- status: 409;
278
244
  message: string;
279
245
  };
280
246
  account_disabled: {
281
- status: 409;
282
247
  message: string;
283
248
  };
284
249
  account_reauth_required: {
285
- status: 409;
286
250
  message: string;
287
251
  };
288
252
  account_misconfigured: {
289
- status: 409;
290
253
  message: string;
291
254
  };
292
255
  mailbox_protected: {
293
- status: 409;
294
256
  message: string;
295
257
  };
296
258
  mailbox_parent: {
297
- status: 400;
298
259
  message: string;
299
260
  };
300
261
  group_unsupported: {
301
- status: 400;
302
262
  message: string;
303
263
  };
304
264
  unknown_mailbox: import("../errors.js").DeclaredError<"unknown_mailbox">;
305
265
  mail_permission_missing: {
306
- status: 409;
307
266
  message: string;
308
267
  };
309
268
  mail_disabled: {
310
- status: 409;
311
269
  message: string;
312
270
  };
313
271
  account_not_found: {
314
- status: 404;
315
272
  message: string;
316
273
  };
317
274
  plan_module_unavailable: {
318
- status: 403;
319
275
  message: string;
320
276
  };
321
- }>, Record<never, never>>;
322
- delete: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
277
+ }>;
278
+ delete: import("@orpc/contract").ProcedureContractBuilderWithInputOutput<z.ZodObject<{
323
279
  accountId: z.ZodUUID;
324
280
  mailboxId: z.ZodUUID;
325
- }, z.core.$strip>, z.ZodVoid, import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, import("../errors.js").DeclaredErrors<{
281
+ }, z.core.$strip>, z.ZodVoid, Omit<import("../errors.js").DeclaredErrors<{
326
282
  readonly invalid_input: "The request does not match the operation's input schema (a malformed body included); data.issues names each problem.";
327
283
  readonly unauthenticated: "No usable credential: none was sent, or it is malformed, unknown, revoked or an expired account token.";
328
284
  readonly api_key_expired: "The API key is past its expiry (or the grace of the rotation that replaced it).";
@@ -339,80 +295,63 @@ export declare const mailboxes: {
339
295
  readonly invalid_idempotency_key: "POST only: the Idempotency-Key header is not 1 to 255 printable ASCII characters.";
340
296
  readonly idempotency_key_reused: "POST only: the Idempotency-Key was used in the last 24 hours with another method, path or body.";
341
297
  readonly idempotency_key_in_progress: "POST only: the request first sent with this Idempotency-Key has not been answered yet.";
342
- }>>, {
298
+ }>, "provider_unavailable" | "account_not_found" | "plan_module_unavailable" | "account_paused" | "account_disabled" | "account_reauth_required" | "account_misconfigured" | "mail_disabled" | "mail_permission_missing" | "provider_not_found" | "provider_throttled" | "provider_forbidden" | "provider_conflict" | "provider_unsupported" | "provider_rejected" | "unknown_mailbox" | "mailbox_protected" | "group_unsupported"> & {
343
299
  provider_not_found: {
344
- status: 404;
345
300
  message: string;
346
301
  };
347
302
  provider_forbidden: {
348
- status: 403;
349
303
  message: string;
350
304
  };
351
305
  provider_conflict: {
352
- status: 409;
353
306
  message: string;
354
307
  };
355
308
  provider_unsupported: {
356
- status: 400;
357
309
  message: string;
358
310
  };
359
311
  provider_rejected: {
360
- status: 400;
361
312
  message: string;
362
313
  };
363
314
  provider_unavailable: {
364
- status: 502;
365
315
  message: string;
366
316
  };
367
317
  provider_throttled: {
368
- status: 429;
369
318
  message: string;
370
319
  };
371
320
  account_paused: {
372
- status: 409;
373
321
  message: string;
374
322
  };
375
323
  account_disabled: {
376
- status: 409;
377
324
  message: string;
378
325
  };
379
326
  account_reauth_required: {
380
- status: 409;
381
327
  message: string;
382
328
  };
383
329
  account_misconfigured: {
384
- status: 409;
385
330
  message: string;
386
331
  };
387
332
  unknown_mailbox: import("../errors.js").DeclaredError<"unknown_mailbox">;
388
333
  mailbox_protected: {
389
- status: 409;
390
334
  message: string;
391
335
  };
392
336
  group_unsupported: {
393
- status: 400;
394
337
  message: string;
395
338
  };
396
339
  mail_permission_missing: {
397
- status: 409;
398
340
  message: string;
399
341
  };
400
342
  mail_disabled: {
401
- status: 409;
402
343
  message: string;
403
344
  };
404
345
  account_not_found: {
405
- status: 404;
406
346
  message: string;
407
347
  };
408
348
  plan_module_unavailable: {
409
- status: 403;
410
349
  message: string;
411
350
  };
412
- }>, Record<never, never>>;
351
+ }>;
413
352
  };
414
353
  export declare const messages: {
415
- list: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
354
+ list: import("@orpc/contract").ProcedureContractBuilderWithInputOutput<z.ZodObject<{
416
355
  accountId: z.ZodUUID;
417
356
  importance: z.ZodOptional<z.ZodEnum<{
418
357
  normal: "normal";
@@ -593,7 +532,7 @@ export declare const messages: {
593
532
  }, z.core.$strip>>;
594
533
  nextCursor: z.ZodNullable<z.ZodString>;
595
534
  }, z.core.$strip>
596
- ]>, import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, import("../errors.js").DeclaredErrors<{
535
+ ]>, Omit<import("../errors.js").DeclaredErrors<{
597
536
  readonly invalid_input: "The request does not match the operation's input schema (a malformed body included); data.issues names each problem.";
598
537
  readonly unauthenticated: "No usable credential: none was sent, or it is malformed, unknown, revoked or an expired account token.";
599
538
  readonly api_key_expired: "The API key is past its expiry (or the grace of the rotation that replaced it).";
@@ -610,62 +549,49 @@ export declare const messages: {
610
549
  readonly invalid_idempotency_key: "POST only: the Idempotency-Key header is not 1 to 255 printable ASCII characters.";
611
550
  readonly idempotency_key_reused: "POST only: the Idempotency-Key was used in the last 24 hours with another method, path or body.";
612
551
  readonly idempotency_key_in_progress: "POST only: the request first sent with this Idempotency-Key has not been answered yet.";
613
- }>>, {
552
+ }>, "invalid_range" | "provider_unavailable" | "account_not_found" | "plan_module_unavailable" | "invalid_cursor" | "account_paused" | "account_disabled" | "account_reauth_required" | "account_misconfigured" | "mail_disabled" | "provider_not_found" | "provider_throttled" | "provider_forbidden" | "unknown_mailbox"> & {
614
553
  invalid_range: {
615
- status: 400;
616
554
  message: string;
617
555
  };
618
556
  provider_not_found: {
619
- status: 404;
620
557
  message: string;
621
558
  };
622
559
  provider_forbidden: {
623
- status: 403;
624
560
  message: string;
625
561
  };
626
562
  provider_unavailable: {
627
- status: 502;
628
563
  message: string;
629
564
  };
630
565
  provider_throttled: {
631
- status: 429;
632
566
  message: string;
633
567
  };
634
568
  account_paused: {
635
- status: 409;
636
569
  message: string;
637
570
  };
638
571
  account_disabled: {
639
- status: 409;
640
572
  message: string;
641
573
  };
642
574
  account_reauth_required: {
643
- status: 409;
644
575
  message: string;
645
576
  };
646
577
  account_misconfigured: {
647
- status: 409;
648
578
  message: string;
649
579
  };
650
580
  unknown_mailbox: import("../errors.js").DeclaredError<"unknown_mailbox">;
651
581
  invalid_cursor: {
652
- status: 400;
653
582
  message: string;
654
583
  };
655
584
  mail_disabled: {
656
- status: 409;
657
585
  message: string;
658
586
  };
659
587
  account_not_found: {
660
- status: 404;
661
588
  message: string;
662
589
  };
663
590
  plan_module_unavailable: {
664
- status: 403;
665
591
  message: string;
666
592
  };
667
- }>, Record<never, never>>;
668
- get: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
593
+ }>;
594
+ get: import("@orpc/contract").ProcedureContractBuilderWithInputOutput<z.ZodObject<{
669
595
  accountId: z.ZodUUID;
670
596
  messageId: z.ZodUUID;
671
597
  include: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [
@@ -762,7 +688,7 @@ export declare const messages: {
762
688
  name: z.ZodString;
763
689
  value: z.ZodString;
764
690
  }, z.core.$strip>>>;
765
- }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, import("../errors.js").DeclaredErrors<{
691
+ }, z.core.$strip>, Omit<import("../errors.js").DeclaredErrors<{
766
692
  readonly invalid_input: "The request does not match the operation's input schema (a malformed body included); data.issues names each problem.";
767
693
  readonly unauthenticated: "No usable credential: none was sent, or it is malformed, unknown, revoked or an expired account token.";
768
694
  readonly api_key_expired: "The API key is past its expiry (or the grace of the rotation that replaced it).";
@@ -779,60 +705,48 @@ export declare const messages: {
779
705
  readonly invalid_idempotency_key: "POST only: the Idempotency-Key header is not 1 to 255 printable ASCII characters.";
780
706
  readonly idempotency_key_reused: "POST only: the Idempotency-Key was used in the last 24 hours with another method, path or body.";
781
707
  readonly idempotency_key_in_progress: "POST only: the request first sent with this Idempotency-Key has not been answered yet.";
782
- }>>, {
708
+ }>, "provider_unavailable" | "account_not_found" | "plan_module_unavailable" | "account_paused" | "account_disabled" | "account_reauth_required" | "account_misconfigured" | "mail_disabled" | "provider_not_found" | "provider_throttled" | "provider_forbidden" | "message_not_found"> & {
783
709
  provider_not_found: {
784
- status: 404;
785
710
  message: string;
786
711
  };
787
712
  provider_forbidden: {
788
- status: 403;
789
713
  message: string;
790
714
  };
791
715
  provider_unavailable: {
792
- status: 502;
793
716
  message: string;
794
717
  };
795
718
  provider_throttled: {
796
- status: 429;
797
719
  message: string;
798
720
  };
799
721
  account_paused: {
800
- status: 409;
801
722
  message: string;
802
723
  };
803
724
  account_disabled: {
804
- status: 409;
805
725
  message: string;
806
726
  };
807
727
  account_reauth_required: {
808
- status: 409;
809
728
  message: string;
810
729
  };
811
730
  account_misconfigured: {
812
- status: 409;
813
731
  message: string;
814
732
  };
815
733
  message_not_found: {
816
- status: 404;
817
734
  message: string;
818
735
  };
819
736
  mail_disabled: {
820
- status: 409;
821
737
  message: string;
822
738
  };
823
739
  account_not_found: {
824
- status: 404;
825
740
  message: string;
826
741
  };
827
742
  plan_module_unavailable: {
828
- status: 403;
829
743
  message: string;
830
744
  };
831
- }>, Record<never, never>>;
832
- raw: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
745
+ }>;
746
+ raw: import("@orpc/contract").ProcedureContractBuilderWithInputOutput<z.ZodObject<{
833
747
  accountId: z.ZodUUID;
834
748
  messageId: z.ZodUUID;
835
- }, z.core.$strip>, z.ZodPipe<z.ZodCustom<ReadableStream<Uint8Array<ArrayBufferLike>>, ReadableStream<Uint8Array<ArrayBufferLike>>>, z.ZodTransform<File, ReadableStream<Uint8Array<ArrayBufferLike>>>>, import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, import("../errors.js").DeclaredErrors<{
749
+ }, z.core.$strip>, z.ZodPipe<z.ZodCustom<ReadableStream<Uint8Array<ArrayBufferLike>>, ReadableStream<Uint8Array<ArrayBufferLike>>>, z.ZodTransform<File, ReadableStream<Uint8Array<ArrayBufferLike>>>>, Omit<import("../errors.js").DeclaredErrors<{
836
750
  readonly invalid_input: "The request does not match the operation's input schema (a malformed body included); data.issues names each problem.";
837
751
  readonly unauthenticated: "No usable credential: none was sent, or it is malformed, unknown, revoked or an expired account token.";
838
752
  readonly api_key_expired: "The API key is past its expiry (or the grace of the rotation that replaced it).";
@@ -849,61 +763,49 @@ export declare const messages: {
849
763
  readonly invalid_idempotency_key: "POST only: the Idempotency-Key header is not 1 to 255 printable ASCII characters.";
850
764
  readonly idempotency_key_reused: "POST only: the Idempotency-Key was used in the last 24 hours with another method, path or body.";
851
765
  readonly idempotency_key_in_progress: "POST only: the request first sent with this Idempotency-Key has not been answered yet.";
852
- }>>, {
766
+ }>, "provider_unavailable" | "account_not_found" | "plan_module_unavailable" | "account_paused" | "account_disabled" | "account_reauth_required" | "account_misconfigured" | "mail_disabled" | "provider_not_found" | "provider_throttled" | "provider_forbidden" | "message_not_found"> & {
853
767
  provider_not_found: {
854
- status: 404;
855
768
  message: string;
856
769
  };
857
770
  provider_forbidden: {
858
- status: 403;
859
771
  message: string;
860
772
  };
861
773
  provider_unavailable: {
862
- status: 502;
863
774
  message: string;
864
775
  };
865
776
  provider_throttled: {
866
- status: 429;
867
777
  message: string;
868
778
  };
869
779
  account_paused: {
870
- status: 409;
871
780
  message: string;
872
781
  };
873
782
  account_disabled: {
874
- status: 409;
875
783
  message: string;
876
784
  };
877
785
  account_reauth_required: {
878
- status: 409;
879
786
  message: string;
880
787
  };
881
788
  account_misconfigured: {
882
- status: 409;
883
789
  message: string;
884
790
  };
885
791
  message_not_found: {
886
- status: 404;
887
792
  message: string;
888
793
  };
889
794
  mail_disabled: {
890
- status: 409;
891
795
  message: string;
892
796
  };
893
797
  account_not_found: {
894
- status: 404;
895
798
  message: string;
896
799
  };
897
800
  plan_module_unavailable: {
898
- status: 403;
899
801
  message: string;
900
802
  };
901
- }>, Record<never, never>>;
902
- attachment: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
803
+ }>;
804
+ attachment: import("@orpc/contract").ProcedureContractBuilderWithInputOutput<z.ZodObject<{
903
805
  accountId: z.ZodUUID;
904
806
  messageId: z.ZodUUID;
905
807
  attachmentId: z.ZodString;
906
- }, z.core.$strip>, z.ZodPipe<z.ZodCustom<ReadableStream<Uint8Array<ArrayBufferLike>>, ReadableStream<Uint8Array<ArrayBufferLike>>>, z.ZodTransform<File, ReadableStream<Uint8Array<ArrayBufferLike>>>>, import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, import("../errors.js").DeclaredErrors<{
808
+ }, z.core.$strip>, z.ZodPipe<z.ZodCustom<ReadableStream<Uint8Array<ArrayBufferLike>>, ReadableStream<Uint8Array<ArrayBufferLike>>>, z.ZodTransform<File, ReadableStream<Uint8Array<ArrayBufferLike>>>>, Omit<import("../errors.js").DeclaredErrors<{
907
809
  readonly invalid_input: "The request does not match the operation's input schema (a malformed body included); data.issues names each problem.";
908
810
  readonly unauthenticated: "No usable credential: none was sent, or it is malformed, unknown, revoked or an expired account token.";
909
811
  readonly api_key_expired: "The API key is past its expiry (or the grace of the rotation that replaced it).";
@@ -920,57 +822,45 @@ export declare const messages: {
920
822
  readonly invalid_idempotency_key: "POST only: the Idempotency-Key header is not 1 to 255 printable ASCII characters.";
921
823
  readonly idempotency_key_reused: "POST only: the Idempotency-Key was used in the last 24 hours with another method, path or body.";
922
824
  readonly idempotency_key_in_progress: "POST only: the request first sent with this Idempotency-Key has not been answered yet.";
923
- }>>, {
825
+ }>, "provider_unavailable" | "account_not_found" | "plan_module_unavailable" | "account_paused" | "account_disabled" | "account_reauth_required" | "account_misconfigured" | "mail_disabled" | "provider_not_found" | "provider_throttled" | "provider_forbidden" | "message_not_found"> & {
924
826
  provider_not_found: {
925
- status: 404;
926
827
  message: string;
927
828
  };
928
829
  provider_forbidden: {
929
- status: 403;
930
830
  message: string;
931
831
  };
932
832
  provider_unavailable: {
933
- status: 502;
934
833
  message: string;
935
834
  };
936
835
  provider_throttled: {
937
- status: 429;
938
836
  message: string;
939
837
  };
940
838
  account_paused: {
941
- status: 409;
942
839
  message: string;
943
840
  };
944
841
  account_disabled: {
945
- status: 409;
946
842
  message: string;
947
843
  };
948
844
  account_reauth_required: {
949
- status: 409;
950
845
  message: string;
951
846
  };
952
847
  account_misconfigured: {
953
- status: 409;
954
848
  message: string;
955
849
  };
956
850
  message_not_found: {
957
- status: 404;
958
851
  message: string;
959
852
  };
960
853
  mail_disabled: {
961
- status: 409;
962
854
  message: string;
963
855
  };
964
856
  account_not_found: {
965
- status: 404;
966
857
  message: string;
967
858
  };
968
859
  plan_module_unavailable: {
969
- status: 403;
970
860
  message: string;
971
861
  };
972
- }>, Record<never, never>>;
973
- update: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
862
+ }>;
863
+ update: import("@orpc/contract").ProcedureContractBuilderWithInputOutput<z.ZodObject<{
974
864
  accountId: z.ZodUUID;
975
865
  messageId: z.ZodUUID;
976
866
  isRead: z.ZodOptional<z.ZodBoolean>;
@@ -1017,7 +907,7 @@ export declare const messages: {
1017
907
  }>>;
1018
908
  inReplyTo: z.ZodNullable<z.ZodString>;
1019
909
  references: z.ZodArray<z.ZodString>;
1020
- }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, import("../errors.js").DeclaredErrors<{
910
+ }, z.core.$strip>, Omit<import("../errors.js").DeclaredErrors<{
1021
911
  readonly invalid_input: "The request does not match the operation's input schema (a malformed body included); data.issues names each problem.";
1022
912
  readonly unauthenticated: "No usable credential: none was sent, or it is malformed, unknown, revoked or an expired account token.";
1023
913
  readonly api_key_expired: "The API key is past its expiry (or the grace of the rotation that replaced it).";
@@ -1034,78 +924,61 @@ export declare const messages: {
1034
924
  readonly invalid_idempotency_key: "POST only: the Idempotency-Key header is not 1 to 255 printable ASCII characters.";
1035
925
  readonly idempotency_key_reused: "POST only: the Idempotency-Key was used in the last 24 hours with another method, path or body.";
1036
926
  readonly idempotency_key_in_progress: "POST only: the request first sent with this Idempotency-Key has not been answered yet.";
1037
- }>>, {
927
+ }>, "provider_unavailable" | "account_not_found" | "plan_module_unavailable" | "account_paused" | "account_disabled" | "account_reauth_required" | "account_misconfigured" | "mail_disabled" | "mail_permission_missing" | "provider_not_found" | "provider_throttled" | "provider_forbidden" | "provider_conflict" | "provider_unsupported" | "provider_rejected" | "message_not_found" | "unknown_mailbox" | "mailbox_not_label"> & {
1038
928
  provider_not_found: {
1039
- status: 404;
1040
929
  message: string;
1041
930
  };
1042
931
  provider_forbidden: {
1043
- status: 403;
1044
932
  message: string;
1045
933
  };
1046
934
  provider_conflict: {
1047
- status: 409;
1048
935
  message: string;
1049
936
  };
1050
937
  provider_unsupported: {
1051
- status: 400;
1052
938
  message: string;
1053
939
  };
1054
940
  provider_rejected: {
1055
- status: 400;
1056
941
  message: string;
1057
942
  };
1058
943
  provider_unavailable: {
1059
- status: 502;
1060
944
  message: string;
1061
945
  };
1062
946
  provider_throttled: {
1063
- status: 429;
1064
947
  message: string;
1065
948
  };
1066
949
  account_paused: {
1067
- status: 409;
1068
950
  message: string;
1069
951
  };
1070
952
  account_disabled: {
1071
- status: 409;
1072
953
  message: string;
1073
954
  };
1074
955
  account_reauth_required: {
1075
- status: 409;
1076
956
  message: string;
1077
957
  };
1078
958
  account_misconfigured: {
1079
- status: 409;
1080
959
  message: string;
1081
960
  };
1082
961
  unknown_mailbox: import("../errors.js").DeclaredError<"unknown_mailbox">;
1083
962
  message_not_found: {
1084
- status: 404;
1085
963
  message: string;
1086
964
  };
1087
965
  mailbox_not_label: {
1088
- status: 400;
1089
966
  message: string;
1090
967
  };
1091
968
  mail_permission_missing: {
1092
- status: 409;
1093
969
  message: string;
1094
970
  };
1095
971
  mail_disabled: {
1096
- status: 409;
1097
972
  message: string;
1098
973
  };
1099
974
  account_not_found: {
1100
- status: 404;
1101
975
  message: string;
1102
976
  };
1103
977
  plan_module_unavailable: {
1104
- status: 403;
1105
978
  message: string;
1106
979
  };
1107
- }>, Record<never, never>>;
1108
- delete: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
980
+ }>;
981
+ delete: import("@orpc/contract").ProcedureContractBuilderWithInputOutput<z.ZodObject<{
1109
982
  params: z.ZodObject<{
1110
983
  accountId: z.ZodUUID;
1111
984
  messageId: z.ZodUUID;
@@ -1119,7 +992,7 @@ export declare const messages: {
1119
992
  }>
1120
993
  ]>, z.ZodTransform<boolean, boolean | "true" | "false">>>;
1121
994
  }, z.core.$strip>;
1122
- }, z.core.$strip>, z.ZodVoid, import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, import("../errors.js").DeclaredErrors<{
995
+ }, z.core.$strip>, z.ZodVoid, Omit<import("../errors.js").DeclaredErrors<{
1123
996
  readonly invalid_input: "The request does not match the operation's input schema (a malformed body included); data.issues names each problem.";
1124
997
  readonly unauthenticated: "No usable credential: none was sent, or it is malformed, unknown, revoked or an expired account token.";
1125
998
  readonly api_key_expired: "The API key is past its expiry (or the grace of the rotation that replaced it).";
@@ -1136,75 +1009,59 @@ export declare const messages: {
1136
1009
  readonly invalid_idempotency_key: "POST only: the Idempotency-Key header is not 1 to 255 printable ASCII characters.";
1137
1010
  readonly idempotency_key_reused: "POST only: the Idempotency-Key was used in the last 24 hours with another method, path or body.";
1138
1011
  readonly idempotency_key_in_progress: "POST only: the request first sent with this Idempotency-Key has not been answered yet.";
1139
- }>>, {
1012
+ }>, "provider_unavailable" | "account_not_found" | "plan_module_unavailable" | "account_paused" | "account_disabled" | "account_reauth_required" | "account_misconfigured" | "mail_disabled" | "mail_permission_missing" | "provider_not_found" | "provider_throttled" | "provider_forbidden" | "provider_conflict" | "provider_unsupported" | "provider_rejected" | "message_not_found"> & {
1140
1013
  provider_not_found: {
1141
- status: 404;
1142
1014
  message: string;
1143
1015
  };
1144
1016
  provider_forbidden: {
1145
- status: 403;
1146
1017
  message: string;
1147
1018
  };
1148
1019
  provider_conflict: {
1149
- status: 409;
1150
1020
  message: string;
1151
1021
  };
1152
1022
  provider_unsupported: {
1153
- status: 400;
1154
1023
  message: string;
1155
1024
  };
1156
1025
  provider_rejected: {
1157
- status: 400;
1158
1026
  message: string;
1159
1027
  };
1160
1028
  provider_unavailable: {
1161
- status: 502;
1162
1029
  message: string;
1163
1030
  };
1164
1031
  provider_throttled: {
1165
- status: 429;
1166
1032
  message: string;
1167
1033
  };
1168
1034
  account_paused: {
1169
- status: 409;
1170
1035
  message: string;
1171
1036
  };
1172
1037
  account_disabled: {
1173
- status: 409;
1174
1038
  message: string;
1175
1039
  };
1176
1040
  account_reauth_required: {
1177
- status: 409;
1178
1041
  message: string;
1179
1042
  };
1180
1043
  account_misconfigured: {
1181
- status: 409;
1182
1044
  message: string;
1183
1045
  };
1184
1046
  message_not_found: {
1185
- status: 404;
1186
1047
  message: string;
1187
1048
  };
1188
1049
  mail_permission_missing: {
1189
- status: 409;
1190
1050
  message: string;
1191
1051
  };
1192
1052
  mail_disabled: {
1193
- status: 409;
1194
1053
  message: string;
1195
1054
  };
1196
1055
  account_not_found: {
1197
- status: 404;
1198
1056
  message: string;
1199
1057
  };
1200
1058
  plan_module_unavailable: {
1201
- status: 403;
1202
1059
  message: string;
1203
1060
  };
1204
- }>, Record<never, never>>;
1061
+ }>;
1205
1062
  };
1206
1063
  export declare const search: {
1207
- messages: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
1064
+ messages: import("@orpc/contract").ProcedureContractBuilderWithInputOutput<z.ZodObject<{
1208
1065
  accountId: z.ZodUUID;
1209
1066
  after: z.ZodOptional<z.ZodPreprocess<z.ZodDate, string | Date>>;
1210
1067
  before: z.ZodOptional<z.ZodPreprocess<z.ZodDate, string | Date>>;
@@ -1286,7 +1143,7 @@ export declare const search: {
1286
1143
  id: z.ZodNullable<z.ZodUUID>;
1287
1144
  }, z.core.$strip>>;
1288
1145
  nextCursor: z.ZodNullable<z.ZodString>;
1289
- }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, import("../errors.js").DeclaredErrors<{
1146
+ }, z.core.$strip>, Omit<import("../errors.js").DeclaredErrors<{
1290
1147
  readonly invalid_input: "The request does not match the operation's input schema (a malformed body included); data.issues names each problem.";
1291
1148
  readonly unauthenticated: "No usable credential: none was sent, or it is malformed, unknown, revoked or an expired account token.";
1292
1149
  readonly api_key_expired: "The API key is past its expiry (or the grace of the rotation that replaced it).";
@@ -1303,63 +1160,49 @@ export declare const search: {
1303
1160
  readonly invalid_idempotency_key: "POST only: the Idempotency-Key header is not 1 to 255 printable ASCII characters.";
1304
1161
  readonly idempotency_key_reused: "POST only: the Idempotency-Key was used in the last 24 hours with another method, path or body.";
1305
1162
  readonly idempotency_key_in_progress: "POST only: the request first sent with this Idempotency-Key has not been answered yet.";
1306
- }>>, {
1163
+ }>, "invalid_range" | "provider_unavailable" | "account_not_found" | "plan_module_unavailable" | "invalid_cursor" | "account_paused" | "account_disabled" | "account_reauth_required" | "account_misconfigured" | "mail_disabled" | "provider_throttled" | "provider_forbidden" | "provider_unsupported" | "provider_rejected" | "unknown_mailbox"> & {
1307
1164
  provider_forbidden: {
1308
- status: 403;
1309
1165
  message: string;
1310
1166
  };
1311
1167
  provider_unsupported: {
1312
- status: 400;
1313
1168
  message: string;
1314
1169
  };
1315
1170
  provider_rejected: {
1316
- status: 400;
1317
1171
  message: string;
1318
1172
  };
1319
1173
  provider_unavailable: {
1320
- status: 502;
1321
1174
  message: string;
1322
1175
  };
1323
1176
  provider_throttled: {
1324
- status: 429;
1325
1177
  message: string;
1326
1178
  };
1327
1179
  account_paused: {
1328
- status: 409;
1329
1180
  message: string;
1330
1181
  };
1331
1182
  account_disabled: {
1332
- status: 409;
1333
1183
  message: string;
1334
1184
  };
1335
1185
  account_reauth_required: {
1336
- status: 409;
1337
1186
  message: string;
1338
1187
  };
1339
1188
  account_misconfigured: {
1340
- status: 409;
1341
1189
  message: string;
1342
1190
  };
1343
1191
  unknown_mailbox: import("../errors.js").DeclaredError<"unknown_mailbox">;
1344
1192
  invalid_cursor: {
1345
- status: 400;
1346
1193
  message: string;
1347
1194
  };
1348
1195
  invalid_range: {
1349
- status: 400;
1350
1196
  message: string;
1351
1197
  };
1352
1198
  mail_disabled: {
1353
- status: 409;
1354
1199
  message: string;
1355
1200
  };
1356
1201
  account_not_found: {
1357
- status: 404;
1358
1202
  message: string;
1359
1203
  };
1360
1204
  plan_module_unavailable: {
1361
- status: 403;
1362
1205
  message: string;
1363
1206
  };
1364
- }>, Record<never, never>>;
1207
+ }>;
1365
1208
  };