@workwae/sdk 0.1.0-alpha.6 → 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.
@@ -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>>;
@@ -531,7 +469,7 @@ export declare const drafts: {
531
469
  lastOpenedAt: z.ZodNullable<z.ZodPreprocess<z.ZodDate, Date>>;
532
470
  mailMergeId: z.ZodNullable<z.ZodUUID>;
533
471
  undoUntil: z.ZodNullable<z.ZodPreprocess<z.ZodDate, Date>>;
534
- }, 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<{
535
473
  readonly invalid_input: "The request does not match the operation's input schema (a malformed body included); data.issues names each problem.";
536
474
  readonly unauthenticated: "No usable credential: none was sent, or it is malformed, unknown, revoked or an expired account token.";
537
475
  readonly api_key_expired: "The API key is past its expiry (or the grace of the rotation that replaced it).";
@@ -548,71 +486,57 @@ export declare const drafts: {
548
486
  readonly invalid_idempotency_key: "POST only: the Idempotency-Key header is not 1 to 255 printable ASCII characters.";
549
487
  readonly idempotency_key_reused: "POST only: the Idempotency-Key was used in the last 24 hours with another method, path or body.";
550
488
  readonly idempotency_key_in_progress: "POST only: the request first sent with this Idempotency-Key has not been answered yet.";
551
- }>>, {
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"> & {
552
490
  billing_past_due: {
553
- status: 402;
554
491
  message: string;
555
492
  };
556
493
  plan_required: import("../errors.js").DeclaredError<"plan_required">;
557
494
  spend_cap_reached: import("../errors.js").DeclaredError<"spend_cap_reached">;
558
495
  plan_limit_sends: import("../errors.js").DeclaredError<"plan_limit_sends">;
559
496
  plan_module_unavailable: {
560
- status: 403;
561
497
  message: string;
562
498
  };
563
499
  honeypot_needs_click_tracking: {
564
- status: 400;
565
500
  message: string;
566
501
  };
567
502
  suppressed: import("../errors.js").DeclaredError<"suppressed">;
568
503
  not_a_draft: {
569
- status: 400;
570
504
  message: string;
571
505
  };
572
506
  tracking_unsupported: {
573
- status: 400;
574
507
  message: string;
575
508
  };
576
509
  no_recipients: {
577
- status: 400;
578
510
  message: string;
579
511
  };
580
512
  account_paused: {
581
- status: 409;
582
513
  message: string;
583
514
  };
584
515
  account_disabled: {
585
- status: 409;
586
516
  message: string;
587
517
  };
588
518
  account_reauth_required: {
589
- status: 409;
590
519
  message: string;
591
520
  };
592
521
  account_misconfigured: {
593
- status: 409;
594
522
  message: string;
595
523
  };
596
524
  draft_not_found: {
597
- status: 404;
598
525
  message: string;
599
526
  };
600
527
  mail_permission_missing: {
601
- status: 409;
602
528
  message: string;
603
529
  };
604
530
  mail_disabled: {
605
- status: 409;
606
531
  message: string;
607
532
  };
608
533
  account_not_found: {
609
- status: 404;
610
534
  message: string;
611
535
  };
612
- }>, Record<never, never>>;
536
+ }>;
613
537
  };
614
538
  export declare const outbox: {
615
- create: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
539
+ create: import("@orpc/contract").ProcedureContractBuilderWithInputOutput<z.ZodObject<{
616
540
  accountId: z.ZodUUID;
617
541
  to: z.ZodDefault<z.ZodArray<z.ZodObject<{
618
542
  name: z.ZodOptional<z.ZodString>;
@@ -719,7 +643,7 @@ export declare const outbox: {
719
643
  lastOpenedAt: z.ZodNullable<z.ZodPreprocess<z.ZodDate, Date>>;
720
644
  mailMergeId: z.ZodNullable<z.ZodUUID>;
721
645
  undoUntil: z.ZodNullable<z.ZodPreprocess<z.ZodDate, Date>>;
722
- }, 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<{
723
647
  readonly invalid_input: "The request does not match the operation's input schema (a malformed body included); data.issues names each problem.";
724
648
  readonly unauthenticated: "No usable credential: none was sent, or it is malformed, unknown, revoked or an expired account token.";
725
649
  readonly api_key_expired: "The API key is past its expiry (or the grace of the rotation that replaced it).";
@@ -736,104 +660,82 @@ export declare const outbox: {
736
660
  readonly invalid_idempotency_key: "POST only: the Idempotency-Key header is not 1 to 255 printable ASCII characters.";
737
661
  readonly idempotency_key_reused: "POST only: the Idempotency-Key was used in the last 24 hours with another method, path or body.";
738
662
  readonly idempotency_key_in_progress: "POST only: the request first sent with this Idempotency-Key has not been answered yet.";
739
- }>>, {
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"> & {
740
664
  billing_past_due: {
741
- status: 402;
742
665
  message: string;
743
666
  };
744
667
  plan_required: import("../errors.js").DeclaredError<"plan_required">;
745
668
  spend_cap_reached: import("../errors.js").DeclaredError<"spend_cap_reached">;
746
669
  plan_limit_sends: import("../errors.js").DeclaredError<"plan_limit_sends">;
747
670
  list_unsubscribe_unavailable: {
748
- status: 400;
749
671
  message: string;
750
672
  };
751
673
  plan_module_unavailable: {
752
- status: 403;
753
674
  message: string;
754
675
  };
755
676
  honeypot_needs_click_tracking: {
756
- status: 400;
757
677
  message: string;
758
678
  };
759
679
  suppressed: import("../errors.js").DeclaredError<"suppressed">;
760
680
  list_send_recipients: {
761
- status: 400;
762
681
  message: string;
763
682
  };
764
683
  no_recipients: {
765
- status: 400;
766
684
  message: string;
767
685
  };
768
686
  duplicate_message_id: import("../errors.js").DeclaredError<"duplicate_message_id">;
769
687
  mail_permission_missing: {
770
- status: 409;
771
688
  message: string;
772
689
  };
773
690
  template_and_inline_fields: {
774
- status: 400;
775
691
  message: string;
776
692
  };
777
693
  unknown_template: {
778
- status: 422;
779
694
  message: string;
780
695
  };
781
696
  invalid_template: import("../errors.js").DeclaredError<"invalid_template">;
782
697
  template_account_mismatch: {
783
- status: 400;
784
698
  message: string;
785
699
  };
786
700
  template_render_failed: import("../errors.js").DeclaredError<"template_render_failed">;
787
701
  params_too_large: {
788
- status: 400;
789
702
  message: string;
790
703
  };
791
704
  provider_unavailable: {
792
- status: 502;
793
705
  message: string;
794
706
  };
795
707
  provider_throttled: {
796
- status: 429;
797
708
  message: string;
798
709
  };
799
710
  account_paused: {
800
- status: 409;
801
711
  message: string;
802
712
  };
803
713
  account_disabled: {
804
- status: 409;
805
714
  message: string;
806
715
  };
807
716
  account_reauth_required: {
808
- status: 409;
809
717
  message: string;
810
718
  };
811
719
  account_misconfigured: {
812
- status: 409;
813
720
  message: string;
814
721
  };
815
722
  attachments_too_large: {
816
- status: 400;
817
723
  message: string;
818
724
  };
819
725
  unknown_reply_target: {
820
- status: 422;
821
726
  message: string;
822
727
  };
823
728
  from_not_allowed: {
824
- status: 400;
825
729
  message: string;
826
730
  };
827
731
  mail_disabled: {
828
- status: 409;
829
732
  message: string;
830
733
  };
831
734
  account_not_found: {
832
- status: 404;
833
735
  message: string;
834
736
  };
835
- }>, Record<never, never>>;
836
- list: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
737
+ }>;
738
+ list: import("@orpc/contract").ProcedureContractBuilderWithInputOutput<z.ZodObject<{
837
739
  accountId: z.ZodUUID;
838
740
  limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
839
741
  cursor: z.ZodOptional<z.ZodString>;
@@ -882,7 +784,7 @@ export declare const outbox: {
882
784
  mailMergeId: z.ZodNullable<z.ZodUUID>;
883
785
  }, z.core.$strip>>;
884
786
  nextCursor: z.ZodNullable<z.ZodString>;
885
- }, 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<{
886
788
  readonly invalid_input: "The request does not match the operation's input schema (a malformed body included); data.issues names each problem.";
887
789
  readonly unauthenticated: "No usable credential: none was sent, or it is malformed, unknown, revoked or an expired account token.";
888
790
  readonly api_key_expired: "The API key is past its expiry (or the grace of the rotation that replaced it).";
@@ -899,25 +801,21 @@ export declare const outbox: {
899
801
  readonly invalid_idempotency_key: "POST only: the Idempotency-Key header is not 1 to 255 printable ASCII characters.";
900
802
  readonly idempotency_key_reused: "POST only: the Idempotency-Key was used in the last 24 hours with another method, path or body.";
901
803
  readonly idempotency_key_in_progress: "POST only: the request first sent with this Idempotency-Key has not been answered yet.";
902
- }>>, {
804
+ }>, "account_not_found" | "plan_module_unavailable" | "invalid_cursor" | "mail_disabled"> & {
903
805
  invalid_cursor: {
904
- status: 400;
905
806
  message: string;
906
807
  };
907
808
  mail_disabled: {
908
- status: 409;
909
809
  message: string;
910
810
  };
911
811
  account_not_found: {
912
- status: 404;
913
812
  message: string;
914
813
  };
915
814
  plan_module_unavailable: {
916
- status: 403;
917
815
  message: string;
918
816
  };
919
- }>, Record<never, never>>;
920
- get: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
817
+ }>;
818
+ get: import("@orpc/contract").ProcedureContractBuilderWithInputOutput<z.ZodObject<{
921
819
  accountId: z.ZodUUID;
922
820
  outboxId: z.ZodUUID;
923
821
  }, z.core.$strip>, z.ZodObject<{
@@ -955,7 +853,7 @@ export declare const outbox: {
955
853
  firstOpenedAt: z.ZodNullable<z.ZodPreprocess<z.ZodDate, Date>>;
956
854
  lastOpenedAt: z.ZodNullable<z.ZodPreprocess<z.ZodDate, Date>>;
957
855
  mailMergeId: z.ZodNullable<z.ZodUUID>;
958
- }, 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<{
959
857
  readonly invalid_input: "The request does not match the operation's input schema (a malformed body included); data.issues names each problem.";
960
858
  readonly unauthenticated: "No usable credential: none was sent, or it is malformed, unknown, revoked or an expired account token.";
961
859
  readonly api_key_expired: "The API key is past its expiry (or the grace of the rotation that replaced it).";
@@ -972,28 +870,24 @@ export declare const outbox: {
972
870
  readonly invalid_idempotency_key: "POST only: the Idempotency-Key header is not 1 to 255 printable ASCII characters.";
973
871
  readonly idempotency_key_reused: "POST only: the Idempotency-Key was used in the last 24 hours with another method, path or body.";
974
872
  readonly idempotency_key_in_progress: "POST only: the request first sent with this Idempotency-Key has not been answered yet.";
975
- }>>, {
873
+ }>, "account_not_found" | "plan_module_unavailable" | "mail_disabled" | "send_not_found"> & {
976
874
  send_not_found: {
977
- status: 404;
978
875
  message: string;
979
876
  };
980
877
  mail_disabled: {
981
- status: 409;
982
878
  message: string;
983
879
  };
984
880
  account_not_found: {
985
- status: 404;
986
881
  message: string;
987
882
  };
988
883
  plan_module_unavailable: {
989
- status: 403;
990
884
  message: string;
991
885
  };
992
- }>, Record<never, never>>;
993
- cancel: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
886
+ }>;
887
+ cancel: import("@orpc/contract").ProcedureContractBuilderWithInputOutput<z.ZodObject<{
994
888
  accountId: z.ZodUUID;
995
889
  outboxId: z.ZodUUID;
996
- }, 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<{
997
891
  readonly invalid_input: "The request does not match the operation's input schema (a malformed body included); data.issues names each problem.";
998
892
  readonly unauthenticated: "No usable credential: none was sent, or it is malformed, unknown, revoked or an expired account token.";
999
893
  readonly api_key_expired: "The API key is past its expiry (or the grace of the rotation that replaced it).";
@@ -1010,29 +904,24 @@ export declare const outbox: {
1010
904
  readonly invalid_idempotency_key: "POST only: the Idempotency-Key header is not 1 to 255 printable ASCII characters.";
1011
905
  readonly idempotency_key_reused: "POST only: the Idempotency-Key was used in the last 24 hours with another method, path or body.";
1012
906
  readonly idempotency_key_in_progress: "POST only: the request first sent with this Idempotency-Key has not been answered yet.";
1013
- }>>, {
907
+ }>, "account_not_found" | "plan_module_unavailable" | "mail_disabled" | "send_not_found" | "send_not_cancellable"> & {
1014
908
  send_not_cancellable: {
1015
- status: 409;
1016
909
  message: string;
1017
910
  };
1018
911
  send_not_found: {
1019
- status: 404;
1020
912
  message: string;
1021
913
  };
1022
914
  mail_disabled: {
1023
- status: 409;
1024
915
  message: string;
1025
916
  };
1026
917
  account_not_found: {
1027
- status: 404;
1028
918
  message: string;
1029
919
  };
1030
920
  plan_module_unavailable: {
1031
- status: 403;
1032
921
  message: string;
1033
922
  };
1034
- }>, Record<never, never>>;
1035
- reschedule: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
923
+ }>;
924
+ reschedule: import("@orpc/contract").ProcedureContractBuilderWithInputOutput<z.ZodObject<{
1036
925
  accountId: z.ZodUUID;
1037
926
  outboxId: z.ZodUUID;
1038
927
  sendAt: z.ZodPreprocess<z.ZodDate, string | Date>;
@@ -1071,7 +960,7 @@ export declare const outbox: {
1071
960
  firstOpenedAt: z.ZodNullable<z.ZodPreprocess<z.ZodDate, Date>>;
1072
961
  lastOpenedAt: z.ZodNullable<z.ZodPreprocess<z.ZodDate, Date>>;
1073
962
  mailMergeId: z.ZodNullable<z.ZodUUID>;
1074
- }, 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<{
1075
964
  readonly invalid_input: "The request does not match the operation's input schema (a malformed body included); data.issues names each problem.";
1076
965
  readonly unauthenticated: "No usable credential: none was sent, or it is malformed, unknown, revoked or an expired account token.";
1077
966
  readonly api_key_expired: "The API key is past its expiry (or the grace of the rotation that replaced it).";
@@ -1088,29 +977,24 @@ export declare const outbox: {
1088
977
  readonly invalid_idempotency_key: "POST only: the Idempotency-Key header is not 1 to 255 printable ASCII characters.";
1089
978
  readonly idempotency_key_reused: "POST only: the Idempotency-Key was used in the last 24 hours with another method, path or body.";
1090
979
  readonly idempotency_key_in_progress: "POST only: the request first sent with this Idempotency-Key has not been answered yet.";
1091
- }>>, {
980
+ }>, "account_not_found" | "plan_module_unavailable" | "mail_disabled" | "send_not_found" | "send_not_reschedulable"> & {
1092
981
  send_not_reschedulable: {
1093
- status: 409;
1094
982
  message: string;
1095
983
  };
1096
984
  send_not_found: {
1097
- status: 404;
1098
985
  message: string;
1099
986
  };
1100
987
  mail_disabled: {
1101
- status: 409;
1102
988
  message: string;
1103
989
  };
1104
990
  account_not_found: {
1105
- status: 404;
1106
991
  message: string;
1107
992
  };
1108
993
  plan_module_unavailable: {
1109
- status: 403;
1110
994
  message: string;
1111
995
  };
1112
- }>, Record<never, never>>;
1113
- tracking: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
996
+ }>;
997
+ tracking: import("@orpc/contract").ProcedureContractBuilderWithInputOutput<z.ZodObject<{
1114
998
  accountId: z.ZodUUID;
1115
999
  outboxId: z.ZodUUID;
1116
1000
  limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
@@ -1203,7 +1087,7 @@ export declare const outbox: {
1203
1087
  isMachine: z.ZodBoolean;
1204
1088
  }, z.core.$strip>>;
1205
1089
  nextCursor: z.ZodNullable<z.ZodString>;
1206
- }, 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<{
1207
1091
  readonly invalid_input: "The request does not match the operation's input schema (a malformed body included); data.issues names each problem.";
1208
1092
  readonly unauthenticated: "No usable credential: none was sent, or it is malformed, unknown, revoked or an expired account token.";
1209
1093
  readonly api_key_expired: "The API key is past its expiry (or the grace of the rotation that replaced it).";
@@ -1220,31 +1104,26 @@ export declare const outbox: {
1220
1104
  readonly invalid_idempotency_key: "POST only: the Idempotency-Key header is not 1 to 255 printable ASCII characters.";
1221
1105
  readonly idempotency_key_reused: "POST only: the Idempotency-Key was used in the last 24 hours with another method, path or body.";
1222
1106
  readonly idempotency_key_in_progress: "POST only: the request first sent with this Idempotency-Key has not been answered yet.";
1223
- }>>, {
1107
+ }>, "account_not_found" | "plan_module_unavailable" | "invalid_cursor" | "mail_disabled" | "send_not_found"> & {
1224
1108
  send_not_found: {
1225
- status: 404;
1226
1109
  message: string;
1227
1110
  };
1228
1111
  invalid_cursor: {
1229
- status: 400;
1230
1112
  message: string;
1231
1113
  };
1232
1114
  mail_disabled: {
1233
- status: 409;
1234
1115
  message: string;
1235
1116
  };
1236
1117
  account_not_found: {
1237
- status: 404;
1238
1118
  message: string;
1239
1119
  };
1240
1120
  plan_module_unavailable: {
1241
- status: 403;
1242
1121
  message: string;
1243
1122
  };
1244
- }>, Record<never, never>>;
1123
+ }>;
1245
1124
  };
1246
1125
  export declare const mailMerges: {
1247
- create: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
1126
+ create: import("@orpc/contract").ProcedureContractBuilderWithInputOutput<z.ZodObject<{
1248
1127
  accountId: z.ZodUUID;
1249
1128
  format: z.ZodOptional<z.ZodEnum<{
1250
1129
  markdown: "markdown";
@@ -1319,7 +1198,7 @@ export declare const mailMerges: {
1319
1198
  }, z.core.$strip>
1320
1199
  ], "success">>;
1321
1200
  id: z.ZodNullable<z.ZodUUID>;
1322
- }, 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<{
1323
1202
  readonly invalid_input: "The request does not match the operation's input schema (a malformed body included); data.issues names each problem.";
1324
1203
  readonly unauthenticated: "No usable credential: none was sent, or it is malformed, unknown, revoked or an expired account token.";
1325
1204
  readonly api_key_expired: "The API key is past its expiry (or the grace of the rotation that replaced it).";
@@ -1336,91 +1215,71 @@ export declare const mailMerges: {
1336
1215
  readonly invalid_idempotency_key: "POST only: the Idempotency-Key header is not 1 to 255 printable ASCII characters.";
1337
1216
  readonly idempotency_key_reused: "POST only: the Idempotency-Key was used in the last 24 hours with another method, path or body.";
1338
1217
  readonly idempotency_key_in_progress: "POST only: the request first sent with this Idempotency-Key has not been answered yet.";
1339
- }>>, {
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"> & {
1340
1219
  billing_past_due: {
1341
- status: 402;
1342
1220
  message: string;
1343
1221
  };
1344
1222
  list_unsubscribe_unavailable: {
1345
- status: 400;
1346
1223
  message: string;
1347
1224
  };
1348
1225
  plan_module_unavailable: {
1349
- status: 403;
1350
1226
  message: string;
1351
1227
  };
1352
1228
  honeypot_needs_click_tracking: {
1353
- status: 400;
1354
1229
  message: string;
1355
1230
  };
1356
1231
  attachments_too_large: {
1357
- status: 400;
1358
1232
  message: string;
1359
1233
  };
1360
1234
  mail_permission_missing: {
1361
- status: 409;
1362
1235
  message: string;
1363
1236
  };
1364
1237
  template_and_inline_fields: {
1365
- status: 400;
1366
1238
  message: string;
1367
1239
  };
1368
1240
  unknown_template: {
1369
- status: 422;
1370
1241
  message: string;
1371
1242
  };
1372
1243
  invalid_template: import("../errors.js").DeclaredError<"invalid_template">;
1373
1244
  template_account_mismatch: {
1374
- status: 400;
1375
1245
  message: string;
1376
1246
  };
1377
1247
  template_render_failed: import("../errors.js").DeclaredError<"template_render_failed">;
1378
1248
  params_too_large: {
1379
- status: 400;
1380
1249
  message: string;
1381
1250
  };
1382
1251
  provider_unavailable: {
1383
- status: 502;
1384
1252
  message: string;
1385
1253
  };
1386
1254
  provider_throttled: {
1387
- status: 429;
1388
1255
  message: string;
1389
1256
  };
1390
1257
  account_paused: {
1391
- status: 409;
1392
1258
  message: string;
1393
1259
  };
1394
1260
  account_disabled: {
1395
- status: 409;
1396
1261
  message: string;
1397
1262
  };
1398
1263
  account_reauth_required: {
1399
- status: 409;
1400
1264
  message: string;
1401
1265
  };
1402
1266
  account_misconfigured: {
1403
- status: 409;
1404
1267
  message: string;
1405
1268
  };
1406
1269
  unknown_reply_target: {
1407
- status: 422;
1408
1270
  message: string;
1409
1271
  };
1410
1272
  from_not_allowed: {
1411
- status: 400;
1412
1273
  message: string;
1413
1274
  };
1414
1275
  mail_disabled: {
1415
- status: 409;
1416
1276
  message: string;
1417
1277
  };
1418
1278
  account_not_found: {
1419
- status: 404;
1420
1279
  message: string;
1421
1280
  };
1422
- }>, Record<never, never>>;
1423
- list: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
1281
+ }>;
1282
+ list: import("@orpc/contract").ProcedureContractBuilderWithInputOutput<z.ZodObject<{
1424
1283
  accountId: z.ZodUUID;
1425
1284
  limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
1426
1285
  cursor: z.ZodOptional<z.ZodString>;
@@ -1440,7 +1299,7 @@ export declare const mailMerges: {
1440
1299
  }, z.core.$strip>;
1441
1300
  }, z.core.$strip>>;
1442
1301
  nextCursor: z.ZodNullable<z.ZodString>;
1443
- }, 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<{
1444
1303
  readonly invalid_input: "The request does not match the operation's input schema (a malformed body included); data.issues names each problem.";
1445
1304
  readonly unauthenticated: "No usable credential: none was sent, or it is malformed, unknown, revoked or an expired account token.";
1446
1305
  readonly api_key_expired: "The API key is past its expiry (or the grace of the rotation that replaced it).";
@@ -1457,25 +1316,21 @@ export declare const mailMerges: {
1457
1316
  readonly invalid_idempotency_key: "POST only: the Idempotency-Key header is not 1 to 255 printable ASCII characters.";
1458
1317
  readonly idempotency_key_reused: "POST only: the Idempotency-Key was used in the last 24 hours with another method, path or body.";
1459
1318
  readonly idempotency_key_in_progress: "POST only: the request first sent with this Idempotency-Key has not been answered yet.";
1460
- }>>, {
1319
+ }>, "account_not_found" | "plan_module_unavailable" | "invalid_cursor" | "mail_disabled"> & {
1461
1320
  invalid_cursor: {
1462
- status: 400;
1463
1321
  message: string;
1464
1322
  };
1465
1323
  mail_disabled: {
1466
- status: 409;
1467
1324
  message: string;
1468
1325
  };
1469
1326
  account_not_found: {
1470
- status: 404;
1471
1327
  message: string;
1472
1328
  };
1473
1329
  plan_module_unavailable: {
1474
- status: 403;
1475
1330
  message: string;
1476
1331
  };
1477
- }>, Record<never, never>>;
1478
- get: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
1332
+ }>;
1333
+ get: import("@orpc/contract").ProcedureContractBuilderWithInputOutput<z.ZodObject<{
1479
1334
  accountId: z.ZodUUID;
1480
1335
  mailMergeId: z.ZodUUID;
1481
1336
  }, z.core.$strip>, z.ZodObject<{
@@ -1491,7 +1346,7 @@ export declare const mailMerges: {
1491
1346
  failed: z.ZodNumber;
1492
1347
  cancelled: z.ZodNumber;
1493
1348
  }, z.core.$strip>;
1494
- }, 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<{
1495
1350
  readonly invalid_input: "The request does not match the operation's input schema (a malformed body included); data.issues names each problem.";
1496
1351
  readonly unauthenticated: "No usable credential: none was sent, or it is malformed, unknown, revoked or an expired account token.";
1497
1352
  readonly api_key_expired: "The API key is past its expiry (or the grace of the rotation that replaced it).";
@@ -1508,30 +1363,26 @@ export declare const mailMerges: {
1508
1363
  readonly invalid_idempotency_key: "POST only: the Idempotency-Key header is not 1 to 255 printable ASCII characters.";
1509
1364
  readonly idempotency_key_reused: "POST only: the Idempotency-Key was used in the last 24 hours with another method, path or body.";
1510
1365
  readonly idempotency_key_in_progress: "POST only: the request first sent with this Idempotency-Key has not been answered yet.";
1511
- }>>, {
1366
+ }>, "account_not_found" | "plan_module_unavailable" | "mail_disabled" | "mail_merge_not_found"> & {
1512
1367
  mail_merge_not_found: {
1513
- status: 404;
1514
1368
  message: string;
1515
1369
  };
1516
1370
  mail_disabled: {
1517
- status: 409;
1518
1371
  message: string;
1519
1372
  };
1520
1373
  account_not_found: {
1521
- status: 404;
1522
1374
  message: string;
1523
1375
  };
1524
1376
  plan_module_unavailable: {
1525
- status: 403;
1526
1377
  message: string;
1527
1378
  };
1528
- }>, Record<never, never>>;
1529
- cancel: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
1379
+ }>;
1380
+ cancel: import("@orpc/contract").ProcedureContractBuilderWithInputOutput<z.ZodObject<{
1530
1381
  accountId: z.ZodUUID;
1531
1382
  mailMergeId: z.ZodUUID;
1532
1383
  }, z.core.$strip>, z.ZodObject<{
1533
1384
  cancelled: z.ZodNumber;
1534
- }, 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<{
1535
1386
  readonly invalid_input: "The request does not match the operation's input schema (a malformed body included); data.issues names each problem.";
1536
1387
  readonly unauthenticated: "No usable credential: none was sent, or it is malformed, unknown, revoked or an expired account token.";
1537
1388
  readonly api_key_expired: "The API key is past its expiry (or the grace of the rotation that replaced it).";
@@ -1548,22 +1399,18 @@ export declare const mailMerges: {
1548
1399
  readonly invalid_idempotency_key: "POST only: the Idempotency-Key header is not 1 to 255 printable ASCII characters.";
1549
1400
  readonly idempotency_key_reused: "POST only: the Idempotency-Key was used in the last 24 hours with another method, path or body.";
1550
1401
  readonly idempotency_key_in_progress: "POST only: the request first sent with this Idempotency-Key has not been answered yet.";
1551
- }>>, {
1402
+ }>, "account_not_found" | "plan_module_unavailable" | "mail_disabled" | "mail_merge_not_found"> & {
1552
1403
  mail_merge_not_found: {
1553
- status: 404;
1554
1404
  message: string;
1555
1405
  };
1556
1406
  mail_disabled: {
1557
- status: 409;
1558
1407
  message: string;
1559
1408
  };
1560
1409
  account_not_found: {
1561
- status: 404;
1562
1410
  message: string;
1563
1411
  };
1564
1412
  plan_module_unavailable: {
1565
- status: 403;
1566
1413
  message: string;
1567
1414
  };
1568
- }>, Record<never, never>>;
1415
+ }>;
1569
1416
  };