@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
@@ -1,6 +1,6 @@
1
1
  import * as z from "zod";
2
2
  export declare const drafts: {
3
- create: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
3
+ create: import("@orpc/contract").ProcedureContractBuilderWithInputOutput<z.ZodObject<{
4
4
  accountId: z.ZodUUID;
5
5
  to: z.ZodDefault<z.ZodArray<z.ZodObject<{
6
6
  name: z.ZodOptional<z.ZodString>;
@@ -86,7 +86,7 @@ export declare const drafts: {
86
86
  }>>;
87
87
  inReplyTo: z.ZodNullable<z.ZodString>;
88
88
  references: z.ZodArray<z.ZodString>;
89
- }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, import("../errors.js").DeclaredErrors<{
89
+ }, z.core.$strip>, Omit<import("../errors.js").DeclaredErrors<{
90
90
  readonly invalid_input: "The request does not match the operation's input schema (a malformed body included); data.issues names each problem.";
91
91
  readonly unauthenticated: "No usable credential: none was sent, or it is malformed, unknown, revoked or an expired account token.";
92
92
  readonly api_key_expired: "The API key is past its expiry (or the grace of the rotation that replaced it).";
@@ -103,103 +103,80 @@ export declare const drafts: {
103
103
  readonly invalid_idempotency_key: "POST only: the Idempotency-Key header is not 1 to 255 printable ASCII characters.";
104
104
  readonly idempotency_key_reused: "POST only: the Idempotency-Key was used in the last 24 hours with another method, path or body.";
105
105
  readonly idempotency_key_in_progress: "POST only: the request first sent with this Idempotency-Key has not been answered yet.";
106
- }>>, {
106
+ }>, "provider_unavailable" | "account_not_found" | "plan_module_unavailable" | "template_and_inline_fields" | "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" | "draft_lost" | "attachments_too_large" | "unknown_reply_target" | "from_not_allowed" | "unknown_template" | "invalid_template" | "template_account_mismatch" | "template_render_failed" | "params_too_large"> & {
107
107
  draft_lost: {
108
- status: 502;
109
108
  message: string;
110
109
  };
111
110
  mail_permission_missing: {
112
- status: 409;
113
111
  message: string;
114
112
  };
115
113
  provider_not_found: {
116
- status: 404;
117
114
  message: string;
118
115
  };
119
116
  provider_forbidden: {
120
- status: 403;
121
117
  message: string;
122
118
  };
123
119
  provider_conflict: {
124
- status: 409;
125
120
  message: string;
126
121
  };
127
122
  provider_unsupported: {
128
- status: 400;
129
123
  message: string;
130
124
  };
131
125
  provider_rejected: {
132
- status: 400;
133
126
  message: string;
134
127
  };
135
128
  provider_unavailable: {
136
- status: 502;
137
129
  message: string;
138
130
  };
139
131
  provider_throttled: {
140
- status: 429;
141
132
  message: string;
142
133
  };
143
134
  template_and_inline_fields: {
144
- status: 400;
145
135
  message: string;
146
136
  };
147
137
  unknown_template: {
148
- status: 422;
149
138
  message: string;
150
139
  };
151
140
  invalid_template: import("../errors.js").DeclaredError<"invalid_template">;
152
141
  template_account_mismatch: {
153
- status: 400;
154
142
  message: string;
155
143
  };
156
144
  template_render_failed: import("../errors.js").DeclaredError<"template_render_failed">;
157
145
  params_too_large: {
158
- status: 400;
159
146
  message: string;
160
147
  };
161
148
  account_paused: {
162
- status: 409;
163
149
  message: string;
164
150
  };
165
151
  account_disabled: {
166
- status: 409;
167
152
  message: string;
168
153
  };
169
154
  account_reauth_required: {
170
- status: 409;
171
155
  message: string;
172
156
  };
173
157
  account_misconfigured: {
174
- status: 409;
175
158
  message: string;
176
159
  };
177
160
  attachments_too_large: {
178
- status: 400;
179
161
  message: string;
180
162
  };
181
163
  unknown_reply_target: {
182
- status: 422;
183
164
  message: string;
184
165
  };
185
166
  from_not_allowed: {
186
- status: 400;
187
167
  message: string;
188
168
  };
189
169
  mail_disabled: {
190
- status: 409;
191
170
  message: string;
192
171
  };
193
172
  account_not_found: {
194
- status: 404;
195
173
  message: string;
196
174
  };
197
175
  plan_module_unavailable: {
198
- status: 403;
199
176
  message: string;
200
177
  };
201
- }>, Record<never, never>>;
202
- update: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
178
+ }>;
179
+ update: import("@orpc/contract").ProcedureContractBuilderWithInputOutput<z.ZodObject<{
203
180
  accountId: z.ZodUUID;
204
181
  messageId: z.ZodUUID;
205
182
  to: z.ZodDefault<z.ZodArray<z.ZodObject<{
@@ -286,7 +263,7 @@ export declare const drafts: {
286
263
  }>>;
287
264
  inReplyTo: z.ZodNullable<z.ZodString>;
288
265
  references: z.ZodArray<z.ZodString>;
289
- }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, import("../errors.js").DeclaredErrors<{
266
+ }, z.core.$strip>, Omit<import("../errors.js").DeclaredErrors<{
290
267
  readonly invalid_input: "The request does not match the operation's input schema (a malformed body included); data.issues names each problem.";
291
268
  readonly unauthenticated: "No usable credential: none was sent, or it is malformed, unknown, revoked or an expired account token.";
292
269
  readonly api_key_expired: "The API key is past its expiry (or the grace of the rotation that replaced it).";
@@ -303,106 +280,83 @@ export declare const drafts: {
303
280
  readonly invalid_idempotency_key: "POST only: the Idempotency-Key header is not 1 to 255 printable ASCII characters.";
304
281
  readonly idempotency_key_reused: "POST only: the Idempotency-Key was used in the last 24 hours with another method, path or body.";
305
282
  readonly idempotency_key_in_progress: "POST only: the request first sent with this Idempotency-Key has not been answered yet.";
306
- }>>, {
283
+ }>, "provider_unavailable" | "account_not_found" | "plan_module_unavailable" | "template_and_inline_fields" | "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" | "draft_not_found" | "attachments_too_large" | "unknown_reply_target" | "from_not_allowed" | "unknown_template" | "invalid_template" | "template_account_mismatch" | "template_render_failed" | "params_too_large"> & {
307
284
  draft_not_found: {
308
- status: 404;
309
285
  message: string;
310
286
  };
311
287
  mail_permission_missing: {
312
- status: 409;
313
288
  message: string;
314
289
  };
315
290
  provider_not_found: {
316
- status: 404;
317
291
  message: string;
318
292
  };
319
293
  provider_forbidden: {
320
- status: 403;
321
294
  message: string;
322
295
  };
323
296
  provider_conflict: {
324
- status: 409;
325
297
  message: string;
326
298
  };
327
299
  provider_unsupported: {
328
- status: 400;
329
300
  message: string;
330
301
  };
331
302
  provider_rejected: {
332
- status: 400;
333
303
  message: string;
334
304
  };
335
305
  provider_unavailable: {
336
- status: 502;
337
306
  message: string;
338
307
  };
339
308
  provider_throttled: {
340
- status: 429;
341
309
  message: string;
342
310
  };
343
311
  template_and_inline_fields: {
344
- status: 400;
345
312
  message: string;
346
313
  };
347
314
  unknown_template: {
348
- status: 422;
349
315
  message: string;
350
316
  };
351
317
  invalid_template: import("../errors.js").DeclaredError<"invalid_template">;
352
318
  template_account_mismatch: {
353
- status: 400;
354
319
  message: string;
355
320
  };
356
321
  template_render_failed: import("../errors.js").DeclaredError<"template_render_failed">;
357
322
  params_too_large: {
358
- status: 400;
359
323
  message: string;
360
324
  };
361
325
  account_paused: {
362
- status: 409;
363
326
  message: string;
364
327
  };
365
328
  account_disabled: {
366
- status: 409;
367
329
  message: string;
368
330
  };
369
331
  account_reauth_required: {
370
- status: 409;
371
332
  message: string;
372
333
  };
373
334
  account_misconfigured: {
374
- status: 409;
375
335
  message: string;
376
336
  };
377
337
  attachments_too_large: {
378
- status: 400;
379
338
  message: string;
380
339
  };
381
340
  unknown_reply_target: {
382
- status: 422;
383
341
  message: string;
384
342
  };
385
343
  from_not_allowed: {
386
- status: 400;
387
344
  message: string;
388
345
  };
389
346
  mail_disabled: {
390
- status: 409;
391
347
  message: string;
392
348
  };
393
349
  account_not_found: {
394
- status: 404;
395
350
  message: string;
396
351
  };
397
352
  plan_module_unavailable: {
398
- status: 403;
399
353
  message: string;
400
354
  };
401
- }>, Record<never, never>>;
402
- delete: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
355
+ }>;
356
+ delete: import("@orpc/contract").ProcedureContractBuilderWithInputOutput<z.ZodObject<{
403
357
  accountId: z.ZodUUID;
404
358
  messageId: z.ZodUUID;
405
- }, z.core.$strip>, z.ZodVoid, import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, import("../errors.js").DeclaredErrors<{
359
+ }, z.core.$strip>, z.ZodVoid, Omit<import("../errors.js").DeclaredErrors<{
406
360
  readonly invalid_input: "The request does not match the operation's input schema (a malformed body included); data.issues names each problem.";
407
361
  readonly unauthenticated: "No usable credential: none was sent, or it is malformed, unknown, revoked or an expired account token.";
408
362
  readonly api_key_expired: "The API key is past its expiry (or the grace of the rotation that replaced it).";
@@ -419,73 +373,57 @@ export declare const drafts: {
419
373
  readonly invalid_idempotency_key: "POST only: the Idempotency-Key header is not 1 to 255 printable ASCII characters.";
420
374
  readonly idempotency_key_reused: "POST only: the Idempotency-Key was used in the last 24 hours with another method, path or body.";
421
375
  readonly idempotency_key_in_progress: "POST only: the request first sent with this Idempotency-Key has not been answered yet.";
422
- }>>, {
376
+ }>, "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" | "draft_not_found"> & {
423
377
  provider_not_found: {
424
- status: 404;
425
378
  message: string;
426
379
  };
427
380
  provider_forbidden: {
428
- status: 403;
429
381
  message: string;
430
382
  };
431
383
  provider_conflict: {
432
- status: 409;
433
384
  message: string;
434
385
  };
435
386
  provider_unsupported: {
436
- status: 400;
437
387
  message: string;
438
388
  };
439
389
  provider_rejected: {
440
- status: 400;
441
390
  message: string;
442
391
  };
443
392
  provider_unavailable: {
444
- status: 502;
445
393
  message: string;
446
394
  };
447
395
  provider_throttled: {
448
- status: 429;
449
396
  message: string;
450
397
  };
451
398
  account_paused: {
452
- status: 409;
453
399
  message: string;
454
400
  };
455
401
  account_disabled: {
456
- status: 409;
457
402
  message: string;
458
403
  };
459
404
  account_reauth_required: {
460
- status: 409;
461
405
  message: string;
462
406
  };
463
407
  account_misconfigured: {
464
- status: 409;
465
408
  message: string;
466
409
  };
467
410
  draft_not_found: {
468
- status: 404;
469
411
  message: string;
470
412
  };
471
413
  mail_permission_missing: {
472
- status: 409;
473
414
  message: string;
474
415
  };
475
416
  mail_disabled: {
476
- status: 409;
477
417
  message: string;
478
418
  };
479
419
  account_not_found: {
480
- status: 404;
481
420
  message: string;
482
421
  };
483
422
  plan_module_unavailable: {
484
- status: 403;
485
423
  message: string;
486
424
  };
487
- }>, Record<never, never>>;
488
- send: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
425
+ }>;
426
+ send: import("@orpc/contract").ProcedureContractBuilderWithInputOutput<z.ZodObject<{
489
427
  accountId: z.ZodUUID;
490
428
  messageId: z.ZodUUID;
491
429
  sendAt: z.ZodOptional<z.ZodPreprocess<z.ZodDate, string | Date>>;
@@ -509,6 +447,11 @@ export declare const drafts: {
509
447
  sendAt: z.ZodPreprocess<z.ZodDate, Date>;
510
448
  attempt: z.ZodNumber;
511
449
  lastError: z.ZodNullable<z.ZodString>;
450
+ rejectedRecipients: z.ZodArray<z.ZodObject<{
451
+ address: z.ZodString;
452
+ status: z.ZodNullable<z.ZodString>;
453
+ diagnostic: z.ZodNullable<z.ZodString>;
454
+ }, z.core.$strip>>;
512
455
  providerMessageId: z.ZodNullable<z.ZodString>;
513
456
  internetMessageId: z.ZodNullable<z.ZodString>;
514
457
  sentAt: z.ZodNullable<z.ZodPreprocess<z.ZodDate, Date>>;
@@ -526,7 +469,7 @@ export declare const drafts: {
526
469
  lastOpenedAt: z.ZodNullable<z.ZodPreprocess<z.ZodDate, Date>>;
527
470
  mailMergeId: z.ZodNullable<z.ZodUUID>;
528
471
  undoUntil: z.ZodNullable<z.ZodPreprocess<z.ZodDate, Date>>;
529
- }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, import("../errors.js").DeclaredErrors<{
472
+ }, z.core.$strip>, Omit<import("../errors.js").DeclaredErrors<{
530
473
  readonly invalid_input: "The request does not match the operation's input schema (a malformed body included); data.issues names each problem.";
531
474
  readonly unauthenticated: "No usable credential: none was sent, or it is malformed, unknown, revoked or an expired account token.";
532
475
  readonly api_key_expired: "The API key is past its expiry (or the grace of the rotation that replaced it).";
@@ -543,71 +486,57 @@ export declare const drafts: {
543
486
  readonly invalid_idempotency_key: "POST only: the Idempotency-Key header is not 1 to 255 printable ASCII characters.";
544
487
  readonly idempotency_key_reused: "POST only: the Idempotency-Key was used in the last 24 hours with another method, path or body.";
545
488
  readonly idempotency_key_in_progress: "POST only: the request first sent with this Idempotency-Key has not been answered yet.";
546
- }>>, {
489
+ }>, "account_not_found" | "plan_required" | "spend_cap_reached" | "plan_module_unavailable" | "billing_past_due" | "suppressed" | "plan_limit_sends" | "account_paused" | "account_disabled" | "account_reauth_required" | "account_misconfigured" | "mail_disabled" | "mail_permission_missing" | "draft_not_found" | "not_a_draft" | "tracking_unsupported" | "honeypot_needs_click_tracking" | "no_recipients"> & {
547
490
  billing_past_due: {
548
- status: 402;
549
491
  message: string;
550
492
  };
551
493
  plan_required: import("../errors.js").DeclaredError<"plan_required">;
552
494
  spend_cap_reached: import("../errors.js").DeclaredError<"spend_cap_reached">;
553
495
  plan_limit_sends: import("../errors.js").DeclaredError<"plan_limit_sends">;
554
496
  plan_module_unavailable: {
555
- status: 403;
556
497
  message: string;
557
498
  };
558
499
  honeypot_needs_click_tracking: {
559
- status: 400;
560
500
  message: string;
561
501
  };
562
502
  suppressed: import("../errors.js").DeclaredError<"suppressed">;
563
503
  not_a_draft: {
564
- status: 400;
565
504
  message: string;
566
505
  };
567
506
  tracking_unsupported: {
568
- status: 400;
569
507
  message: string;
570
508
  };
571
509
  no_recipients: {
572
- status: 400;
573
510
  message: string;
574
511
  };
575
512
  account_paused: {
576
- status: 409;
577
513
  message: string;
578
514
  };
579
515
  account_disabled: {
580
- status: 409;
581
516
  message: string;
582
517
  };
583
518
  account_reauth_required: {
584
- status: 409;
585
519
  message: string;
586
520
  };
587
521
  account_misconfigured: {
588
- status: 409;
589
522
  message: string;
590
523
  };
591
524
  draft_not_found: {
592
- status: 404;
593
525
  message: string;
594
526
  };
595
527
  mail_permission_missing: {
596
- status: 409;
597
528
  message: string;
598
529
  };
599
530
  mail_disabled: {
600
- status: 409;
601
531
  message: string;
602
532
  };
603
533
  account_not_found: {
604
- status: 404;
605
534
  message: string;
606
535
  };
607
- }>, Record<never, never>>;
536
+ }>;
608
537
  };
609
538
  export declare const outbox: {
610
- create: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
539
+ create: import("@orpc/contract").ProcedureContractBuilderWithInputOutput<z.ZodObject<{
611
540
  accountId: z.ZodUUID;
612
541
  to: z.ZodDefault<z.ZodArray<z.ZodObject<{
613
542
  name: z.ZodOptional<z.ZodString>;
@@ -692,6 +621,11 @@ export declare const outbox: {
692
621
  sendAt: z.ZodPreprocess<z.ZodDate, Date>;
693
622
  attempt: z.ZodNumber;
694
623
  lastError: z.ZodNullable<z.ZodString>;
624
+ rejectedRecipients: z.ZodArray<z.ZodObject<{
625
+ address: z.ZodString;
626
+ status: z.ZodNullable<z.ZodString>;
627
+ diagnostic: z.ZodNullable<z.ZodString>;
628
+ }, z.core.$strip>>;
695
629
  providerMessageId: z.ZodNullable<z.ZodString>;
696
630
  internetMessageId: z.ZodNullable<z.ZodString>;
697
631
  sentAt: z.ZodNullable<z.ZodPreprocess<z.ZodDate, Date>>;
@@ -709,7 +643,7 @@ export declare const outbox: {
709
643
  lastOpenedAt: z.ZodNullable<z.ZodPreprocess<z.ZodDate, Date>>;
710
644
  mailMergeId: z.ZodNullable<z.ZodUUID>;
711
645
  undoUntil: z.ZodNullable<z.ZodPreprocess<z.ZodDate, Date>>;
712
- }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, import("../errors.js").DeclaredErrors<{
646
+ }, z.core.$strip>, Omit<import("../errors.js").DeclaredErrors<{
713
647
  readonly invalid_input: "The request does not match the operation's input schema (a malformed body included); data.issues names each problem.";
714
648
  readonly unauthenticated: "No usable credential: none was sent, or it is malformed, unknown, revoked or an expired account token.";
715
649
  readonly api_key_expired: "The API key is past its expiry (or the grace of the rotation that replaced it).";
@@ -726,104 +660,82 @@ export declare const outbox: {
726
660
  readonly invalid_idempotency_key: "POST only: the Idempotency-Key header is not 1 to 255 printable ASCII characters.";
727
661
  readonly idempotency_key_reused: "POST only: the Idempotency-Key was used in the last 24 hours with another method, path or body.";
728
662
  readonly idempotency_key_in_progress: "POST only: the request first sent with this Idempotency-Key has not been answered yet.";
729
- }>>, {
663
+ }>, "provider_unavailable" | "account_not_found" | "plan_required" | "spend_cap_reached" | "plan_module_unavailable" | "billing_past_due" | "suppressed" | "template_and_inline_fields" | "plan_limit_sends" | "account_paused" | "account_disabled" | "account_reauth_required" | "account_misconfigured" | "mail_disabled" | "mail_permission_missing" | "provider_throttled" | "attachments_too_large" | "unknown_reply_target" | "from_not_allowed" | "honeypot_needs_click_tracking" | "list_send_recipients" | "no_recipients" | "list_unsubscribe_unavailable" | "duplicate_message_id" | "unknown_template" | "invalid_template" | "template_account_mismatch" | "template_render_failed" | "params_too_large"> & {
730
664
  billing_past_due: {
731
- status: 402;
732
665
  message: string;
733
666
  };
734
667
  plan_required: import("../errors.js").DeclaredError<"plan_required">;
735
668
  spend_cap_reached: import("../errors.js").DeclaredError<"spend_cap_reached">;
736
669
  plan_limit_sends: import("../errors.js").DeclaredError<"plan_limit_sends">;
737
670
  list_unsubscribe_unavailable: {
738
- status: 400;
739
671
  message: string;
740
672
  };
741
673
  plan_module_unavailable: {
742
- status: 403;
743
674
  message: string;
744
675
  };
745
676
  honeypot_needs_click_tracking: {
746
- status: 400;
747
677
  message: string;
748
678
  };
749
679
  suppressed: import("../errors.js").DeclaredError<"suppressed">;
750
680
  list_send_recipients: {
751
- status: 400;
752
681
  message: string;
753
682
  };
754
683
  no_recipients: {
755
- status: 400;
756
684
  message: string;
757
685
  };
758
686
  duplicate_message_id: import("../errors.js").DeclaredError<"duplicate_message_id">;
759
687
  mail_permission_missing: {
760
- status: 409;
761
688
  message: string;
762
689
  };
763
690
  template_and_inline_fields: {
764
- status: 400;
765
691
  message: string;
766
692
  };
767
693
  unknown_template: {
768
- status: 422;
769
694
  message: string;
770
695
  };
771
696
  invalid_template: import("../errors.js").DeclaredError<"invalid_template">;
772
697
  template_account_mismatch: {
773
- status: 400;
774
698
  message: string;
775
699
  };
776
700
  template_render_failed: import("../errors.js").DeclaredError<"template_render_failed">;
777
701
  params_too_large: {
778
- status: 400;
779
702
  message: string;
780
703
  };
781
704
  provider_unavailable: {
782
- status: 502;
783
705
  message: string;
784
706
  };
785
707
  provider_throttled: {
786
- status: 429;
787
708
  message: string;
788
709
  };
789
710
  account_paused: {
790
- status: 409;
791
711
  message: string;
792
712
  };
793
713
  account_disabled: {
794
- status: 409;
795
714
  message: string;
796
715
  };
797
716
  account_reauth_required: {
798
- status: 409;
799
717
  message: string;
800
718
  };
801
719
  account_misconfigured: {
802
- status: 409;
803
720
  message: string;
804
721
  };
805
722
  attachments_too_large: {
806
- status: 400;
807
723
  message: string;
808
724
  };
809
725
  unknown_reply_target: {
810
- status: 422;
811
726
  message: string;
812
727
  };
813
728
  from_not_allowed: {
814
- status: 400;
815
729
  message: string;
816
730
  };
817
731
  mail_disabled: {
818
- status: 409;
819
732
  message: string;
820
733
  };
821
734
  account_not_found: {
822
- status: 404;
823
735
  message: string;
824
736
  };
825
- }>, Record<never, never>>;
826
- list: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
737
+ }>;
738
+ list: import("@orpc/contract").ProcedureContractBuilderWithInputOutput<z.ZodObject<{
827
739
  accountId: z.ZodUUID;
828
740
  limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
829
741
  cursor: z.ZodOptional<z.ZodString>;
@@ -849,6 +761,11 @@ export declare const outbox: {
849
761
  sendAt: z.ZodPreprocess<z.ZodDate, Date>;
850
762
  attempt: z.ZodNumber;
851
763
  lastError: z.ZodNullable<z.ZodString>;
764
+ rejectedRecipients: z.ZodArray<z.ZodObject<{
765
+ address: z.ZodString;
766
+ status: z.ZodNullable<z.ZodString>;
767
+ diagnostic: z.ZodNullable<z.ZodString>;
768
+ }, z.core.$strip>>;
852
769
  providerMessageId: z.ZodNullable<z.ZodString>;
853
770
  internetMessageId: z.ZodNullable<z.ZodString>;
854
771
  sentAt: z.ZodNullable<z.ZodPreprocess<z.ZodDate, Date>>;
@@ -867,7 +784,7 @@ export declare const outbox: {
867
784
  mailMergeId: z.ZodNullable<z.ZodUUID>;
868
785
  }, z.core.$strip>>;
869
786
  nextCursor: z.ZodNullable<z.ZodString>;
870
- }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, import("../errors.js").DeclaredErrors<{
787
+ }, z.core.$strip>, Omit<import("../errors.js").DeclaredErrors<{
871
788
  readonly invalid_input: "The request does not match the operation's input schema (a malformed body included); data.issues names each problem.";
872
789
  readonly unauthenticated: "No usable credential: none was sent, or it is malformed, unknown, revoked or an expired account token.";
873
790
  readonly api_key_expired: "The API key is past its expiry (or the grace of the rotation that replaced it).";
@@ -884,25 +801,21 @@ export declare const outbox: {
884
801
  readonly invalid_idempotency_key: "POST only: the Idempotency-Key header is not 1 to 255 printable ASCII characters.";
885
802
  readonly idempotency_key_reused: "POST only: the Idempotency-Key was used in the last 24 hours with another method, path or body.";
886
803
  readonly idempotency_key_in_progress: "POST only: the request first sent with this Idempotency-Key has not been answered yet.";
887
- }>>, {
804
+ }>, "account_not_found" | "plan_module_unavailable" | "invalid_cursor" | "mail_disabled"> & {
888
805
  invalid_cursor: {
889
- status: 400;
890
806
  message: string;
891
807
  };
892
808
  mail_disabled: {
893
- status: 409;
894
809
  message: string;
895
810
  };
896
811
  account_not_found: {
897
- status: 404;
898
812
  message: string;
899
813
  };
900
814
  plan_module_unavailable: {
901
- status: 403;
902
815
  message: string;
903
816
  };
904
- }>, Record<never, never>>;
905
- get: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
817
+ }>;
818
+ get: import("@orpc/contract").ProcedureContractBuilderWithInputOutput<z.ZodObject<{
906
819
  accountId: z.ZodUUID;
907
820
  outboxId: z.ZodUUID;
908
821
  }, z.core.$strip>, z.ZodObject<{
@@ -919,6 +832,11 @@ export declare const outbox: {
919
832
  sendAt: z.ZodPreprocess<z.ZodDate, Date>;
920
833
  attempt: z.ZodNumber;
921
834
  lastError: z.ZodNullable<z.ZodString>;
835
+ rejectedRecipients: z.ZodArray<z.ZodObject<{
836
+ address: z.ZodString;
837
+ status: z.ZodNullable<z.ZodString>;
838
+ diagnostic: z.ZodNullable<z.ZodString>;
839
+ }, z.core.$strip>>;
922
840
  providerMessageId: z.ZodNullable<z.ZodString>;
923
841
  internetMessageId: z.ZodNullable<z.ZodString>;
924
842
  sentAt: z.ZodNullable<z.ZodPreprocess<z.ZodDate, Date>>;
@@ -935,7 +853,7 @@ export declare const outbox: {
935
853
  firstOpenedAt: z.ZodNullable<z.ZodPreprocess<z.ZodDate, Date>>;
936
854
  lastOpenedAt: z.ZodNullable<z.ZodPreprocess<z.ZodDate, Date>>;
937
855
  mailMergeId: z.ZodNullable<z.ZodUUID>;
938
- }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, import("../errors.js").DeclaredErrors<{
856
+ }, z.core.$strip>, Omit<import("../errors.js").DeclaredErrors<{
939
857
  readonly invalid_input: "The request does not match the operation's input schema (a malformed body included); data.issues names each problem.";
940
858
  readonly unauthenticated: "No usable credential: none was sent, or it is malformed, unknown, revoked or an expired account token.";
941
859
  readonly api_key_expired: "The API key is past its expiry (or the grace of the rotation that replaced it).";
@@ -952,28 +870,24 @@ export declare const outbox: {
952
870
  readonly invalid_idempotency_key: "POST only: the Idempotency-Key header is not 1 to 255 printable ASCII characters.";
953
871
  readonly idempotency_key_reused: "POST only: the Idempotency-Key was used in the last 24 hours with another method, path or body.";
954
872
  readonly idempotency_key_in_progress: "POST only: the request first sent with this Idempotency-Key has not been answered yet.";
955
- }>>, {
873
+ }>, "account_not_found" | "plan_module_unavailable" | "mail_disabled" | "send_not_found"> & {
956
874
  send_not_found: {
957
- status: 404;
958
875
  message: string;
959
876
  };
960
877
  mail_disabled: {
961
- status: 409;
962
878
  message: string;
963
879
  };
964
880
  account_not_found: {
965
- status: 404;
966
881
  message: string;
967
882
  };
968
883
  plan_module_unavailable: {
969
- status: 403;
970
884
  message: string;
971
885
  };
972
- }>, Record<never, never>>;
973
- cancel: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
886
+ }>;
887
+ cancel: import("@orpc/contract").ProcedureContractBuilderWithInputOutput<z.ZodObject<{
974
888
  accountId: z.ZodUUID;
975
889
  outboxId: z.ZodUUID;
976
- }, z.core.$strip>, z.ZodVoid, import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, import("../errors.js").DeclaredErrors<{
890
+ }, z.core.$strip>, z.ZodVoid, Omit<import("../errors.js").DeclaredErrors<{
977
891
  readonly invalid_input: "The request does not match the operation's input schema (a malformed body included); data.issues names each problem.";
978
892
  readonly unauthenticated: "No usable credential: none was sent, or it is malformed, unknown, revoked or an expired account token.";
979
893
  readonly api_key_expired: "The API key is past its expiry (or the grace of the rotation that replaced it).";
@@ -990,29 +904,24 @@ export declare const outbox: {
990
904
  readonly invalid_idempotency_key: "POST only: the Idempotency-Key header is not 1 to 255 printable ASCII characters.";
991
905
  readonly idempotency_key_reused: "POST only: the Idempotency-Key was used in the last 24 hours with another method, path or body.";
992
906
  readonly idempotency_key_in_progress: "POST only: the request first sent with this Idempotency-Key has not been answered yet.";
993
- }>>, {
907
+ }>, "account_not_found" | "plan_module_unavailable" | "mail_disabled" | "send_not_found" | "send_not_cancellable"> & {
994
908
  send_not_cancellable: {
995
- status: 409;
996
909
  message: string;
997
910
  };
998
911
  send_not_found: {
999
- status: 404;
1000
912
  message: string;
1001
913
  };
1002
914
  mail_disabled: {
1003
- status: 409;
1004
915
  message: string;
1005
916
  };
1006
917
  account_not_found: {
1007
- status: 404;
1008
918
  message: string;
1009
919
  };
1010
920
  plan_module_unavailable: {
1011
- status: 403;
1012
921
  message: string;
1013
922
  };
1014
- }>, Record<never, never>>;
1015
- reschedule: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
923
+ }>;
924
+ reschedule: import("@orpc/contract").ProcedureContractBuilderWithInputOutput<z.ZodObject<{
1016
925
  accountId: z.ZodUUID;
1017
926
  outboxId: z.ZodUUID;
1018
927
  sendAt: z.ZodPreprocess<z.ZodDate, string | Date>;
@@ -1030,6 +939,11 @@ export declare const outbox: {
1030
939
  sendAt: z.ZodPreprocess<z.ZodDate, Date>;
1031
940
  attempt: z.ZodNumber;
1032
941
  lastError: z.ZodNullable<z.ZodString>;
942
+ rejectedRecipients: z.ZodArray<z.ZodObject<{
943
+ address: z.ZodString;
944
+ status: z.ZodNullable<z.ZodString>;
945
+ diagnostic: z.ZodNullable<z.ZodString>;
946
+ }, z.core.$strip>>;
1033
947
  providerMessageId: z.ZodNullable<z.ZodString>;
1034
948
  internetMessageId: z.ZodNullable<z.ZodString>;
1035
949
  sentAt: z.ZodNullable<z.ZodPreprocess<z.ZodDate, Date>>;
@@ -1046,7 +960,7 @@ export declare const outbox: {
1046
960
  firstOpenedAt: z.ZodNullable<z.ZodPreprocess<z.ZodDate, Date>>;
1047
961
  lastOpenedAt: z.ZodNullable<z.ZodPreprocess<z.ZodDate, Date>>;
1048
962
  mailMergeId: z.ZodNullable<z.ZodUUID>;
1049
- }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, import("../errors.js").DeclaredErrors<{
963
+ }, z.core.$strip>, Omit<import("../errors.js").DeclaredErrors<{
1050
964
  readonly invalid_input: "The request does not match the operation's input schema (a malformed body included); data.issues names each problem.";
1051
965
  readonly unauthenticated: "No usable credential: none was sent, or it is malformed, unknown, revoked or an expired account token.";
1052
966
  readonly api_key_expired: "The API key is past its expiry (or the grace of the rotation that replaced it).";
@@ -1063,29 +977,24 @@ export declare const outbox: {
1063
977
  readonly invalid_idempotency_key: "POST only: the Idempotency-Key header is not 1 to 255 printable ASCII characters.";
1064
978
  readonly idempotency_key_reused: "POST only: the Idempotency-Key was used in the last 24 hours with another method, path or body.";
1065
979
  readonly idempotency_key_in_progress: "POST only: the request first sent with this Idempotency-Key has not been answered yet.";
1066
- }>>, {
980
+ }>, "account_not_found" | "plan_module_unavailable" | "mail_disabled" | "send_not_found" | "send_not_reschedulable"> & {
1067
981
  send_not_reschedulable: {
1068
- status: 409;
1069
982
  message: string;
1070
983
  };
1071
984
  send_not_found: {
1072
- status: 404;
1073
985
  message: string;
1074
986
  };
1075
987
  mail_disabled: {
1076
- status: 409;
1077
988
  message: string;
1078
989
  };
1079
990
  account_not_found: {
1080
- status: 404;
1081
991
  message: string;
1082
992
  };
1083
993
  plan_module_unavailable: {
1084
- status: 403;
1085
994
  message: string;
1086
995
  };
1087
- }>, Record<never, never>>;
1088
- tracking: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
996
+ }>;
997
+ tracking: import("@orpc/contract").ProcedureContractBuilderWithInputOutput<z.ZodObject<{
1089
998
  accountId: z.ZodUUID;
1090
999
  outboxId: z.ZodUUID;
1091
1000
  limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
@@ -1178,7 +1087,7 @@ export declare const outbox: {
1178
1087
  isMachine: z.ZodBoolean;
1179
1088
  }, z.core.$strip>>;
1180
1089
  nextCursor: z.ZodNullable<z.ZodString>;
1181
- }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, import("../errors.js").DeclaredErrors<{
1090
+ }, z.core.$strip>, Omit<import("../errors.js").DeclaredErrors<{
1182
1091
  readonly invalid_input: "The request does not match the operation's input schema (a malformed body included); data.issues names each problem.";
1183
1092
  readonly unauthenticated: "No usable credential: none was sent, or it is malformed, unknown, revoked or an expired account token.";
1184
1093
  readonly api_key_expired: "The API key is past its expiry (or the grace of the rotation that replaced it).";
@@ -1195,31 +1104,26 @@ export declare const outbox: {
1195
1104
  readonly invalid_idempotency_key: "POST only: the Idempotency-Key header is not 1 to 255 printable ASCII characters.";
1196
1105
  readonly idempotency_key_reused: "POST only: the Idempotency-Key was used in the last 24 hours with another method, path or body.";
1197
1106
  readonly idempotency_key_in_progress: "POST only: the request first sent with this Idempotency-Key has not been answered yet.";
1198
- }>>, {
1107
+ }>, "account_not_found" | "plan_module_unavailable" | "invalid_cursor" | "mail_disabled" | "send_not_found"> & {
1199
1108
  send_not_found: {
1200
- status: 404;
1201
1109
  message: string;
1202
1110
  };
1203
1111
  invalid_cursor: {
1204
- status: 400;
1205
1112
  message: string;
1206
1113
  };
1207
1114
  mail_disabled: {
1208
- status: 409;
1209
1115
  message: string;
1210
1116
  };
1211
1117
  account_not_found: {
1212
- status: 404;
1213
1118
  message: string;
1214
1119
  };
1215
1120
  plan_module_unavailable: {
1216
- status: 403;
1217
1121
  message: string;
1218
1122
  };
1219
- }>, Record<never, never>>;
1123
+ }>;
1220
1124
  };
1221
1125
  export declare const mailMerges: {
1222
- create: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
1126
+ create: import("@orpc/contract").ProcedureContractBuilderWithInputOutput<z.ZodObject<{
1223
1127
  accountId: z.ZodUUID;
1224
1128
  format: z.ZodOptional<z.ZodEnum<{
1225
1129
  markdown: "markdown";
@@ -1294,7 +1198,7 @@ export declare const mailMerges: {
1294
1198
  }, z.core.$strip>
1295
1199
  ], "success">>;
1296
1200
  id: z.ZodNullable<z.ZodUUID>;
1297
- }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, import("../errors.js").DeclaredErrors<{
1201
+ }, z.core.$strip>, Omit<import("../errors.js").DeclaredErrors<{
1298
1202
  readonly invalid_input: "The request does not match the operation's input schema (a malformed body included); data.issues names each problem.";
1299
1203
  readonly unauthenticated: "No usable credential: none was sent, or it is malformed, unknown, revoked or an expired account token.";
1300
1204
  readonly api_key_expired: "The API key is past its expiry (or the grace of the rotation that replaced it).";
@@ -1311,91 +1215,71 @@ export declare const mailMerges: {
1311
1215
  readonly invalid_idempotency_key: "POST only: the Idempotency-Key header is not 1 to 255 printable ASCII characters.";
1312
1216
  readonly idempotency_key_reused: "POST only: the Idempotency-Key was used in the last 24 hours with another method, path or body.";
1313
1217
  readonly idempotency_key_in_progress: "POST only: the request first sent with this Idempotency-Key has not been answered yet.";
1314
- }>>, {
1218
+ }>, "provider_unavailable" | "account_not_found" | "plan_module_unavailable" | "billing_past_due" | "template_and_inline_fields" | "account_paused" | "account_disabled" | "account_reauth_required" | "account_misconfigured" | "mail_disabled" | "mail_permission_missing" | "provider_throttled" | "attachments_too_large" | "unknown_reply_target" | "from_not_allowed" | "honeypot_needs_click_tracking" | "list_unsubscribe_unavailable" | "unknown_template" | "invalid_template" | "template_account_mismatch" | "template_render_failed" | "params_too_large"> & {
1315
1219
  billing_past_due: {
1316
- status: 402;
1317
1220
  message: string;
1318
1221
  };
1319
1222
  list_unsubscribe_unavailable: {
1320
- status: 400;
1321
1223
  message: string;
1322
1224
  };
1323
1225
  plan_module_unavailable: {
1324
- status: 403;
1325
1226
  message: string;
1326
1227
  };
1327
1228
  honeypot_needs_click_tracking: {
1328
- status: 400;
1329
1229
  message: string;
1330
1230
  };
1331
1231
  attachments_too_large: {
1332
- status: 400;
1333
1232
  message: string;
1334
1233
  };
1335
1234
  mail_permission_missing: {
1336
- status: 409;
1337
1235
  message: string;
1338
1236
  };
1339
1237
  template_and_inline_fields: {
1340
- status: 400;
1341
1238
  message: string;
1342
1239
  };
1343
1240
  unknown_template: {
1344
- status: 422;
1345
1241
  message: string;
1346
1242
  };
1347
1243
  invalid_template: import("../errors.js").DeclaredError<"invalid_template">;
1348
1244
  template_account_mismatch: {
1349
- status: 400;
1350
1245
  message: string;
1351
1246
  };
1352
1247
  template_render_failed: import("../errors.js").DeclaredError<"template_render_failed">;
1353
1248
  params_too_large: {
1354
- status: 400;
1355
1249
  message: string;
1356
1250
  };
1357
1251
  provider_unavailable: {
1358
- status: 502;
1359
1252
  message: string;
1360
1253
  };
1361
1254
  provider_throttled: {
1362
- status: 429;
1363
1255
  message: string;
1364
1256
  };
1365
1257
  account_paused: {
1366
- status: 409;
1367
1258
  message: string;
1368
1259
  };
1369
1260
  account_disabled: {
1370
- status: 409;
1371
1261
  message: string;
1372
1262
  };
1373
1263
  account_reauth_required: {
1374
- status: 409;
1375
1264
  message: string;
1376
1265
  };
1377
1266
  account_misconfigured: {
1378
- status: 409;
1379
1267
  message: string;
1380
1268
  };
1381
1269
  unknown_reply_target: {
1382
- status: 422;
1383
1270
  message: string;
1384
1271
  };
1385
1272
  from_not_allowed: {
1386
- status: 400;
1387
1273
  message: string;
1388
1274
  };
1389
1275
  mail_disabled: {
1390
- status: 409;
1391
1276
  message: string;
1392
1277
  };
1393
1278
  account_not_found: {
1394
- status: 404;
1395
1279
  message: string;
1396
1280
  };
1397
- }>, Record<never, never>>;
1398
- list: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
1281
+ }>;
1282
+ list: import("@orpc/contract").ProcedureContractBuilderWithInputOutput<z.ZodObject<{
1399
1283
  accountId: z.ZodUUID;
1400
1284
  limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
1401
1285
  cursor: z.ZodOptional<z.ZodString>;
@@ -1415,7 +1299,7 @@ export declare const mailMerges: {
1415
1299
  }, z.core.$strip>;
1416
1300
  }, z.core.$strip>>;
1417
1301
  nextCursor: z.ZodNullable<z.ZodString>;
1418
- }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, import("../errors.js").DeclaredErrors<{
1302
+ }, z.core.$strip>, Omit<import("../errors.js").DeclaredErrors<{
1419
1303
  readonly invalid_input: "The request does not match the operation's input schema (a malformed body included); data.issues names each problem.";
1420
1304
  readonly unauthenticated: "No usable credential: none was sent, or it is malformed, unknown, revoked or an expired account token.";
1421
1305
  readonly api_key_expired: "The API key is past its expiry (or the grace of the rotation that replaced it).";
@@ -1432,25 +1316,21 @@ export declare const mailMerges: {
1432
1316
  readonly invalid_idempotency_key: "POST only: the Idempotency-Key header is not 1 to 255 printable ASCII characters.";
1433
1317
  readonly idempotency_key_reused: "POST only: the Idempotency-Key was used in the last 24 hours with another method, path or body.";
1434
1318
  readonly idempotency_key_in_progress: "POST only: the request first sent with this Idempotency-Key has not been answered yet.";
1435
- }>>, {
1319
+ }>, "account_not_found" | "plan_module_unavailable" | "invalid_cursor" | "mail_disabled"> & {
1436
1320
  invalid_cursor: {
1437
- status: 400;
1438
1321
  message: string;
1439
1322
  };
1440
1323
  mail_disabled: {
1441
- status: 409;
1442
1324
  message: string;
1443
1325
  };
1444
1326
  account_not_found: {
1445
- status: 404;
1446
1327
  message: string;
1447
1328
  };
1448
1329
  plan_module_unavailable: {
1449
- status: 403;
1450
1330
  message: string;
1451
1331
  };
1452
- }>, Record<never, never>>;
1453
- get: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
1332
+ }>;
1333
+ get: import("@orpc/contract").ProcedureContractBuilderWithInputOutput<z.ZodObject<{
1454
1334
  accountId: z.ZodUUID;
1455
1335
  mailMergeId: z.ZodUUID;
1456
1336
  }, z.core.$strip>, z.ZodObject<{
@@ -1466,7 +1346,7 @@ export declare const mailMerges: {
1466
1346
  failed: z.ZodNumber;
1467
1347
  cancelled: z.ZodNumber;
1468
1348
  }, z.core.$strip>;
1469
- }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, import("../errors.js").DeclaredErrors<{
1349
+ }, z.core.$strip>, Omit<import("../errors.js").DeclaredErrors<{
1470
1350
  readonly invalid_input: "The request does not match the operation's input schema (a malformed body included); data.issues names each problem.";
1471
1351
  readonly unauthenticated: "No usable credential: none was sent, or it is malformed, unknown, revoked or an expired account token.";
1472
1352
  readonly api_key_expired: "The API key is past its expiry (or the grace of the rotation that replaced it).";
@@ -1483,30 +1363,26 @@ export declare const mailMerges: {
1483
1363
  readonly invalid_idempotency_key: "POST only: the Idempotency-Key header is not 1 to 255 printable ASCII characters.";
1484
1364
  readonly idempotency_key_reused: "POST only: the Idempotency-Key was used in the last 24 hours with another method, path or body.";
1485
1365
  readonly idempotency_key_in_progress: "POST only: the request first sent with this Idempotency-Key has not been answered yet.";
1486
- }>>, {
1366
+ }>, "account_not_found" | "plan_module_unavailable" | "mail_disabled" | "mail_merge_not_found"> & {
1487
1367
  mail_merge_not_found: {
1488
- status: 404;
1489
1368
  message: string;
1490
1369
  };
1491
1370
  mail_disabled: {
1492
- status: 409;
1493
1371
  message: string;
1494
1372
  };
1495
1373
  account_not_found: {
1496
- status: 404;
1497
1374
  message: string;
1498
1375
  };
1499
1376
  plan_module_unavailable: {
1500
- status: 403;
1501
1377
  message: string;
1502
1378
  };
1503
- }>, Record<never, never>>;
1504
- cancel: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
1379
+ }>;
1380
+ cancel: import("@orpc/contract").ProcedureContractBuilderWithInputOutput<z.ZodObject<{
1505
1381
  accountId: z.ZodUUID;
1506
1382
  mailMergeId: z.ZodUUID;
1507
1383
  }, z.core.$strip>, z.ZodObject<{
1508
1384
  cancelled: z.ZodNumber;
1509
- }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, import("../errors.js").DeclaredErrors<{
1385
+ }, z.core.$strip>, Omit<import("../errors.js").DeclaredErrors<{
1510
1386
  readonly invalid_input: "The request does not match the operation's input schema (a malformed body included); data.issues names each problem.";
1511
1387
  readonly unauthenticated: "No usable credential: none was sent, or it is malformed, unknown, revoked or an expired account token.";
1512
1388
  readonly api_key_expired: "The API key is past its expiry (or the grace of the rotation that replaced it).";
@@ -1523,22 +1399,18 @@ export declare const mailMerges: {
1523
1399
  readonly invalid_idempotency_key: "POST only: the Idempotency-Key header is not 1 to 255 printable ASCII characters.";
1524
1400
  readonly idempotency_key_reused: "POST only: the Idempotency-Key was used in the last 24 hours with another method, path or body.";
1525
1401
  readonly idempotency_key_in_progress: "POST only: the request first sent with this Idempotency-Key has not been answered yet.";
1526
- }>>, {
1402
+ }>, "account_not_found" | "plan_module_unavailable" | "mail_disabled" | "mail_merge_not_found"> & {
1527
1403
  mail_merge_not_found: {
1528
- status: 404;
1529
1404
  message: string;
1530
1405
  };
1531
1406
  mail_disabled: {
1532
- status: 409;
1533
1407
  message: string;
1534
1408
  };
1535
1409
  account_not_found: {
1536
- status: 404;
1537
1410
  message: string;
1538
1411
  };
1539
1412
  plan_module_unavailable: {
1540
- status: 403;
1541
1413
  message: string;
1542
1414
  };
1543
- }>, Record<never, never>>;
1415
+ }>;
1544
1416
  };