@workwae/sdk 0.1.0-alpha.1 → 0.1.0-alpha.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +7 -7
- package/client.d.ts +1 -1
- package/contract/accounts/models.d.ts +85 -45
- package/contract/accounts/routes.d.ts +191 -29
- package/contract/ai/models.d.ts +0 -1
- package/contract/ai/routes.d.ts +9 -0
- package/contract/audit-log/models.d.ts +19 -5
- package/contract/audit-log/routes.d.ts +10 -1
- package/contract/calendar/models.d.ts +249 -74
- package/contract/calendar/routes.d.ts +574 -30
- package/contract/connect/models.d.ts +28 -16
- package/contract/connect/routes.d.ts +46 -7
- package/contract/contacts/models.d.ts +0 -10
- package/contract/contacts/routes.d.ts +14 -0
- package/contract/email-validation/models.d.ts +119 -0
- package/contract/email-validation/routes.d.ts +106 -0
- package/contract/errors.d.ts +28 -20
- package/contract/events/models.d.ts +139 -79
- package/contract/events/routes.d.ts +54 -44
- package/contract/exports/routes.d.ts +10 -0
- package/contract/identities/models.d.ts +7 -9
- package/contract/identities/routes.d.ts +79 -10
- package/contract/limits.d.ts +21 -73
- package/contract/mail/models.d.ts +91 -48
- package/contract/mail/routes.d.ts +458 -18
- package/contract/mcp-keys/models.d.ts +125 -0
- package/contract/mcp-keys/routes.d.ts +151 -0
- package/contract/meetings/models.d.ts +28 -33
- package/contract/meetings/routes.d.ts +44 -25
- package/contract/oauth-apps/models.d.ts +0 -6
- package/contract/oauth-apps/routes.d.ts +8 -0
- package/contract/org-connections/models.d.ts +83 -39
- package/contract/org-connections/routes.d.ts +320 -43
- package/contract/plans/credit-packs.d.ts +30 -0
- package/contract/plans/models.d.ts +208 -0
- package/contract/primitives.d.ts +7 -62
- package/contract/public.d.ts +6 -0
- package/contract/reasons.d.ts +532 -21
- package/contract/router.d.ts +6425 -3212
- package/contract/scheduling/models.d.ts +405 -0
- package/contract/scheduling/routes.d.ts +756 -0
- package/contract/send/models.d.ts +82 -45
- package/contract/send/routes.d.ts +281 -32
- package/contract/settings/models.d.ts +73 -13
- package/contract/settings/routes.d.ts +56 -4
- package/contract/suppressions/models.d.ts +21 -28
- package/contract/suppressions/routes.d.ts +62 -14
- package/contract/templates/models.d.ts +0 -14
- package/contract/templates/routes.d.ts +30 -6
- package/contract/threads/models.d.ts +0 -5
- package/contract/threads/routes.d.ts +40 -0
- package/contract/tracking-domain/models.d.ts +41 -0
- package/contract/tracking-domain/routes.d.ts +193 -0
- package/contract/usage/models.d.ts +98 -126
- package/contract/usage/routes.d.ts +48 -20
- package/contract/webhooks/models.d.ts +45 -30
- package/contract/webhooks/routes.d.ts +52 -9
- package/contract/webhooks/signing.d.ts +0 -16
- package/index.js +1 -4334
- package/package.json +6 -7
- package/index.js.map +0 -59
|
@@ -91,6 +91,8 @@ export declare const drafts: {
|
|
|
91
91
|
readonly missing_scope: "The API key lacks the scope the operation needs.";
|
|
92
92
|
readonly role_forbidden: "The member's role does not allow the operation.";
|
|
93
93
|
readonly account_token_forbidden: "An account token called an operation account tokens cannot call.";
|
|
94
|
+
readonly account_scope_forbidden: "A credential limited to specific accounts called an operation that reaches beyond them.";
|
|
95
|
+
readonly mcp_only_key: "An MCP-only key (minted for an end user's MCP client) was used outside the MCP server.";
|
|
94
96
|
readonly rate_limited: "The tenant used up its plan's request rate; Retry-After says when the window ends.";
|
|
95
97
|
readonly too_many_requests: "The credential has too many requests in flight at once; retry after Retry-After.";
|
|
96
98
|
readonly overloaded: "The API is shedding load; retry after Retry-After.";
|
|
@@ -178,10 +180,18 @@ export declare const drafts: {
|
|
|
178
180
|
status: 400;
|
|
179
181
|
message: string;
|
|
180
182
|
};
|
|
183
|
+
mail_disabled: {
|
|
184
|
+
status: 409;
|
|
185
|
+
message: string;
|
|
186
|
+
};
|
|
181
187
|
account_not_found: {
|
|
182
188
|
status: 404;
|
|
183
189
|
message: string;
|
|
184
190
|
};
|
|
191
|
+
plan_module_unavailable: {
|
|
192
|
+
status: 403;
|
|
193
|
+
message: string;
|
|
194
|
+
};
|
|
185
195
|
}>, Record<never, never>>;
|
|
186
196
|
update: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
187
197
|
accountId: z.ZodUUID;
|
|
@@ -275,6 +285,8 @@ export declare const drafts: {
|
|
|
275
285
|
readonly missing_scope: "The API key lacks the scope the operation needs.";
|
|
276
286
|
readonly role_forbidden: "The member's role does not allow the operation.";
|
|
277
287
|
readonly account_token_forbidden: "An account token called an operation account tokens cannot call.";
|
|
288
|
+
readonly account_scope_forbidden: "A credential limited to specific accounts called an operation that reaches beyond them.";
|
|
289
|
+
readonly mcp_only_key: "An MCP-only key (minted for an end user's MCP client) was used outside the MCP server.";
|
|
278
290
|
readonly rate_limited: "The tenant used up its plan's request rate; Retry-After says when the window ends.";
|
|
279
291
|
readonly too_many_requests: "The credential has too many requests in flight at once; retry after Retry-After.";
|
|
280
292
|
readonly overloaded: "The API is shedding load; retry after Retry-After.";
|
|
@@ -362,10 +374,18 @@ export declare const drafts: {
|
|
|
362
374
|
status: 400;
|
|
363
375
|
message: string;
|
|
364
376
|
};
|
|
377
|
+
mail_disabled: {
|
|
378
|
+
status: 409;
|
|
379
|
+
message: string;
|
|
380
|
+
};
|
|
365
381
|
account_not_found: {
|
|
366
382
|
status: 404;
|
|
367
383
|
message: string;
|
|
368
384
|
};
|
|
385
|
+
plan_module_unavailable: {
|
|
386
|
+
status: 403;
|
|
387
|
+
message: string;
|
|
388
|
+
};
|
|
369
389
|
}>, Record<never, never>>;
|
|
370
390
|
delete: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
371
391
|
accountId: z.ZodUUID;
|
|
@@ -377,6 +397,8 @@ export declare const drafts: {
|
|
|
377
397
|
readonly missing_scope: "The API key lacks the scope the operation needs.";
|
|
378
398
|
readonly role_forbidden: "The member's role does not allow the operation.";
|
|
379
399
|
readonly account_token_forbidden: "An account token called an operation account tokens cannot call.";
|
|
400
|
+
readonly account_scope_forbidden: "A credential limited to specific accounts called an operation that reaches beyond them.";
|
|
401
|
+
readonly mcp_only_key: "An MCP-only key (minted for an end user's MCP client) was used outside the MCP server.";
|
|
380
402
|
readonly rate_limited: "The tenant used up its plan's request rate; Retry-After says when the window ends.";
|
|
381
403
|
readonly too_many_requests: "The credential has too many requests in flight at once; retry after Retry-After.";
|
|
382
404
|
readonly overloaded: "The API is shedding load; retry after Retry-After.";
|
|
@@ -434,10 +456,18 @@ export declare const drafts: {
|
|
|
434
456
|
status: 404;
|
|
435
457
|
message: string;
|
|
436
458
|
};
|
|
459
|
+
mail_disabled: {
|
|
460
|
+
status: 409;
|
|
461
|
+
message: string;
|
|
462
|
+
};
|
|
437
463
|
account_not_found: {
|
|
438
464
|
status: 404;
|
|
439
465
|
message: string;
|
|
440
466
|
};
|
|
467
|
+
plan_module_unavailable: {
|
|
468
|
+
status: 403;
|
|
469
|
+
message: string;
|
|
470
|
+
};
|
|
441
471
|
}>, Record<never, never>>;
|
|
442
472
|
send: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
443
473
|
accountId: z.ZodUUID;
|
|
@@ -476,6 +506,7 @@ export declare const drafts: {
|
|
|
476
506
|
machineClickCount: z.ZodNumber;
|
|
477
507
|
firstOpenedAt: z.ZodNullable<z.ZodPreprocess<z.ZodDate, Date>>;
|
|
478
508
|
lastOpenedAt: z.ZodNullable<z.ZodPreprocess<z.ZodDate, Date>>;
|
|
509
|
+
mailMergeId: z.ZodNullable<z.ZodUUID>;
|
|
479
510
|
undoUntil: z.ZodNullable<z.ZodPreprocess<z.ZodDate, Date>>;
|
|
480
511
|
}, z.core.$strip>, import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, import("../errors.js").DeclaredErrors<{
|
|
481
512
|
readonly invalid_input: "The request does not match the operation's input schema (a malformed body included); data.issues names each problem.";
|
|
@@ -484,6 +515,8 @@ export declare const drafts: {
|
|
|
484
515
|
readonly missing_scope: "The API key lacks the scope the operation needs.";
|
|
485
516
|
readonly role_forbidden: "The member's role does not allow the operation.";
|
|
486
517
|
readonly account_token_forbidden: "An account token called an operation account tokens cannot call.";
|
|
518
|
+
readonly account_scope_forbidden: "A credential limited to specific accounts called an operation that reaches beyond them.";
|
|
519
|
+
readonly mcp_only_key: "An MCP-only key (minted for an end user's MCP client) was used outside the MCP server.";
|
|
487
520
|
readonly rate_limited: "The tenant used up its plan's request rate; Retry-After says when the window ends.";
|
|
488
521
|
readonly too_many_requests: "The credential has too many requests in flight at once; retry after Retry-After.";
|
|
489
522
|
readonly overloaded: "The API is shedding load; retry after Retry-After.";
|
|
@@ -497,10 +530,9 @@ export declare const drafts: {
|
|
|
497
530
|
status: 402;
|
|
498
531
|
message: string;
|
|
499
532
|
};
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
};
|
|
533
|
+
plan_required: import("../errors.js").DeclaredError<"plan_required">;
|
|
534
|
+
spend_cap_reached: import("../errors.js").DeclaredError<"spend_cap_reached">;
|
|
535
|
+
plan_limit_sends: import("../errors.js").DeclaredError<"plan_limit_sends">;
|
|
504
536
|
plan_module_unavailable: {
|
|
505
537
|
status: 403;
|
|
506
538
|
message: string;
|
|
@@ -509,6 +541,7 @@ export declare const drafts: {
|
|
|
509
541
|
status: 400;
|
|
510
542
|
message: string;
|
|
511
543
|
};
|
|
544
|
+
suppressed: import("../errors.js").DeclaredError<"suppressed">;
|
|
512
545
|
not_a_draft: {
|
|
513
546
|
status: 400;
|
|
514
547
|
message: string;
|
|
@@ -541,6 +574,10 @@ export declare const drafts: {
|
|
|
541
574
|
status: 404;
|
|
542
575
|
message: string;
|
|
543
576
|
};
|
|
577
|
+
mail_disabled: {
|
|
578
|
+
status: 409;
|
|
579
|
+
message: string;
|
|
580
|
+
};
|
|
544
581
|
account_not_found: {
|
|
545
582
|
status: 404;
|
|
546
583
|
message: string;
|
|
@@ -630,6 +667,7 @@ export declare const outbox: {
|
|
|
630
667
|
machineClickCount: z.ZodNumber;
|
|
631
668
|
firstOpenedAt: z.ZodNullable<z.ZodPreprocess<z.ZodDate, Date>>;
|
|
632
669
|
lastOpenedAt: z.ZodNullable<z.ZodPreprocess<z.ZodDate, Date>>;
|
|
670
|
+
mailMergeId: z.ZodNullable<z.ZodUUID>;
|
|
633
671
|
undoUntil: z.ZodNullable<z.ZodPreprocess<z.ZodDate, Date>>;
|
|
634
672
|
}, z.core.$strip>, import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, import("../errors.js").DeclaredErrors<{
|
|
635
673
|
readonly invalid_input: "The request does not match the operation's input schema (a malformed body included); data.issues names each problem.";
|
|
@@ -638,6 +676,8 @@ export declare const outbox: {
|
|
|
638
676
|
readonly missing_scope: "The API key lacks the scope the operation needs.";
|
|
639
677
|
readonly role_forbidden: "The member's role does not allow the operation.";
|
|
640
678
|
readonly account_token_forbidden: "An account token called an operation account tokens cannot call.";
|
|
679
|
+
readonly account_scope_forbidden: "A credential limited to specific accounts called an operation that reaches beyond them.";
|
|
680
|
+
readonly mcp_only_key: "An MCP-only key (minted for an end user's MCP client) was used outside the MCP server.";
|
|
641
681
|
readonly rate_limited: "The tenant used up its plan's request rate; Retry-After says when the window ends.";
|
|
642
682
|
readonly too_many_requests: "The credential has too many requests in flight at once; retry after Retry-After.";
|
|
643
683
|
readonly overloaded: "The API is shedding load; retry after Retry-After.";
|
|
@@ -651,10 +691,9 @@ export declare const outbox: {
|
|
|
651
691
|
status: 402;
|
|
652
692
|
message: string;
|
|
653
693
|
};
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
};
|
|
694
|
+
plan_required: import("../errors.js").DeclaredError<"plan_required">;
|
|
695
|
+
spend_cap_reached: import("../errors.js").DeclaredError<"spend_cap_reached">;
|
|
696
|
+
plan_limit_sends: import("../errors.js").DeclaredError<"plan_limit_sends">;
|
|
658
697
|
list_unsubscribe_unavailable: {
|
|
659
698
|
status: 400;
|
|
660
699
|
message: string;
|
|
@@ -667,14 +706,11 @@ export declare const outbox: {
|
|
|
667
706
|
status: 400;
|
|
668
707
|
message: string;
|
|
669
708
|
};
|
|
709
|
+
suppressed: import("../errors.js").DeclaredError<"suppressed">;
|
|
670
710
|
list_send_recipients: {
|
|
671
711
|
status: 400;
|
|
672
712
|
message: string;
|
|
673
713
|
};
|
|
674
|
-
suppressed: {
|
|
675
|
-
status: 400;
|
|
676
|
-
message: string;
|
|
677
|
-
};
|
|
678
714
|
no_recipients: {
|
|
679
715
|
status: 400;
|
|
680
716
|
message: string;
|
|
@@ -733,6 +769,10 @@ export declare const outbox: {
|
|
|
733
769
|
status: 400;
|
|
734
770
|
message: string;
|
|
735
771
|
};
|
|
772
|
+
mail_disabled: {
|
|
773
|
+
status: 409;
|
|
774
|
+
message: string;
|
|
775
|
+
};
|
|
736
776
|
account_not_found: {
|
|
737
777
|
status: 404;
|
|
738
778
|
message: string;
|
|
@@ -777,6 +817,7 @@ export declare const outbox: {
|
|
|
777
817
|
machineClickCount: z.ZodNumber;
|
|
778
818
|
firstOpenedAt: z.ZodNullable<z.ZodPreprocess<z.ZodDate, Date>>;
|
|
779
819
|
lastOpenedAt: z.ZodNullable<z.ZodPreprocess<z.ZodDate, Date>>;
|
|
820
|
+
mailMergeId: z.ZodNullable<z.ZodUUID>;
|
|
780
821
|
}, z.core.$strip>>;
|
|
781
822
|
nextCursor: z.ZodNullable<z.ZodString>;
|
|
782
823
|
}, z.core.$strip>, import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, import("../errors.js").DeclaredErrors<{
|
|
@@ -786,6 +827,8 @@ export declare const outbox: {
|
|
|
786
827
|
readonly missing_scope: "The API key lacks the scope the operation needs.";
|
|
787
828
|
readonly role_forbidden: "The member's role does not allow the operation.";
|
|
788
829
|
readonly account_token_forbidden: "An account token called an operation account tokens cannot call.";
|
|
830
|
+
readonly account_scope_forbidden: "A credential limited to specific accounts called an operation that reaches beyond them.";
|
|
831
|
+
readonly mcp_only_key: "An MCP-only key (minted for an end user's MCP client) was used outside the MCP server.";
|
|
789
832
|
readonly rate_limited: "The tenant used up its plan's request rate; Retry-After says when the window ends.";
|
|
790
833
|
readonly too_many_requests: "The credential has too many requests in flight at once; retry after Retry-After.";
|
|
791
834
|
readonly overloaded: "The API is shedding load; retry after Retry-After.";
|
|
@@ -799,10 +842,18 @@ export declare const outbox: {
|
|
|
799
842
|
status: 400;
|
|
800
843
|
message: string;
|
|
801
844
|
};
|
|
845
|
+
mail_disabled: {
|
|
846
|
+
status: 409;
|
|
847
|
+
message: string;
|
|
848
|
+
};
|
|
802
849
|
account_not_found: {
|
|
803
850
|
status: 404;
|
|
804
851
|
message: string;
|
|
805
852
|
};
|
|
853
|
+
plan_module_unavailable: {
|
|
854
|
+
status: 403;
|
|
855
|
+
message: string;
|
|
856
|
+
};
|
|
806
857
|
}>, Record<never, never>>;
|
|
807
858
|
get: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
808
859
|
accountId: z.ZodUUID;
|
|
@@ -834,6 +885,7 @@ export declare const outbox: {
|
|
|
834
885
|
machineClickCount: z.ZodNumber;
|
|
835
886
|
firstOpenedAt: z.ZodNullable<z.ZodPreprocess<z.ZodDate, Date>>;
|
|
836
887
|
lastOpenedAt: z.ZodNullable<z.ZodPreprocess<z.ZodDate, Date>>;
|
|
888
|
+
mailMergeId: z.ZodNullable<z.ZodUUID>;
|
|
837
889
|
}, z.core.$strip>, import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, import("../errors.js").DeclaredErrors<{
|
|
838
890
|
readonly invalid_input: "The request does not match the operation's input schema (a malformed body included); data.issues names each problem.";
|
|
839
891
|
readonly unauthenticated: "No usable credential: none was sent, or it is malformed, unknown, revoked or an expired account token.";
|
|
@@ -841,6 +893,8 @@ export declare const outbox: {
|
|
|
841
893
|
readonly missing_scope: "The API key lacks the scope the operation needs.";
|
|
842
894
|
readonly role_forbidden: "The member's role does not allow the operation.";
|
|
843
895
|
readonly account_token_forbidden: "An account token called an operation account tokens cannot call.";
|
|
896
|
+
readonly account_scope_forbidden: "A credential limited to specific accounts called an operation that reaches beyond them.";
|
|
897
|
+
readonly mcp_only_key: "An MCP-only key (minted for an end user's MCP client) was used outside the MCP server.";
|
|
844
898
|
readonly rate_limited: "The tenant used up its plan's request rate; Retry-After says when the window ends.";
|
|
845
899
|
readonly too_many_requests: "The credential has too many requests in flight at once; retry after Retry-After.";
|
|
846
900
|
readonly overloaded: "The API is shedding load; retry after Retry-After.";
|
|
@@ -854,10 +908,18 @@ export declare const outbox: {
|
|
|
854
908
|
status: 404;
|
|
855
909
|
message: string;
|
|
856
910
|
};
|
|
911
|
+
mail_disabled: {
|
|
912
|
+
status: 409;
|
|
913
|
+
message: string;
|
|
914
|
+
};
|
|
857
915
|
account_not_found: {
|
|
858
916
|
status: 404;
|
|
859
917
|
message: string;
|
|
860
918
|
};
|
|
919
|
+
plan_module_unavailable: {
|
|
920
|
+
status: 403;
|
|
921
|
+
message: string;
|
|
922
|
+
};
|
|
861
923
|
}>, Record<never, never>>;
|
|
862
924
|
cancel: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
863
925
|
accountId: z.ZodUUID;
|
|
@@ -869,6 +931,8 @@ export declare const outbox: {
|
|
|
869
931
|
readonly missing_scope: "The API key lacks the scope the operation needs.";
|
|
870
932
|
readonly role_forbidden: "The member's role does not allow the operation.";
|
|
871
933
|
readonly account_token_forbidden: "An account token called an operation account tokens cannot call.";
|
|
934
|
+
readonly account_scope_forbidden: "A credential limited to specific accounts called an operation that reaches beyond them.";
|
|
935
|
+
readonly mcp_only_key: "An MCP-only key (minted for an end user's MCP client) was used outside the MCP server.";
|
|
872
936
|
readonly rate_limited: "The tenant used up its plan's request rate; Retry-After says when the window ends.";
|
|
873
937
|
readonly too_many_requests: "The credential has too many requests in flight at once; retry after Retry-After.";
|
|
874
938
|
readonly overloaded: "The API is shedding load; retry after Retry-After.";
|
|
@@ -886,10 +950,18 @@ export declare const outbox: {
|
|
|
886
950
|
status: 404;
|
|
887
951
|
message: string;
|
|
888
952
|
};
|
|
953
|
+
mail_disabled: {
|
|
954
|
+
status: 409;
|
|
955
|
+
message: string;
|
|
956
|
+
};
|
|
889
957
|
account_not_found: {
|
|
890
958
|
status: 404;
|
|
891
959
|
message: string;
|
|
892
960
|
};
|
|
961
|
+
plan_module_unavailable: {
|
|
962
|
+
status: 403;
|
|
963
|
+
message: string;
|
|
964
|
+
};
|
|
893
965
|
}>, Record<never, never>>;
|
|
894
966
|
reschedule: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
895
967
|
accountId: z.ZodUUID;
|
|
@@ -922,6 +994,7 @@ export declare const outbox: {
|
|
|
922
994
|
machineClickCount: z.ZodNumber;
|
|
923
995
|
firstOpenedAt: z.ZodNullable<z.ZodPreprocess<z.ZodDate, Date>>;
|
|
924
996
|
lastOpenedAt: z.ZodNullable<z.ZodPreprocess<z.ZodDate, Date>>;
|
|
997
|
+
mailMergeId: z.ZodNullable<z.ZodUUID>;
|
|
925
998
|
}, z.core.$strip>, import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, import("../errors.js").DeclaredErrors<{
|
|
926
999
|
readonly invalid_input: "The request does not match the operation's input schema (a malformed body included); data.issues names each problem.";
|
|
927
1000
|
readonly unauthenticated: "No usable credential: none was sent, or it is malformed, unknown, revoked or an expired account token.";
|
|
@@ -929,6 +1002,8 @@ export declare const outbox: {
|
|
|
929
1002
|
readonly missing_scope: "The API key lacks the scope the operation needs.";
|
|
930
1003
|
readonly role_forbidden: "The member's role does not allow the operation.";
|
|
931
1004
|
readonly account_token_forbidden: "An account token called an operation account tokens cannot call.";
|
|
1005
|
+
readonly account_scope_forbidden: "A credential limited to specific accounts called an operation that reaches beyond them.";
|
|
1006
|
+
readonly mcp_only_key: "An MCP-only key (minted for an end user's MCP client) was used outside the MCP server.";
|
|
932
1007
|
readonly rate_limited: "The tenant used up its plan's request rate; Retry-After says when the window ends.";
|
|
933
1008
|
readonly too_many_requests: "The credential has too many requests in flight at once; retry after Retry-After.";
|
|
934
1009
|
readonly overloaded: "The API is shedding load; retry after Retry-After.";
|
|
@@ -946,10 +1021,18 @@ export declare const outbox: {
|
|
|
946
1021
|
status: 404;
|
|
947
1022
|
message: string;
|
|
948
1023
|
};
|
|
1024
|
+
mail_disabled: {
|
|
1025
|
+
status: 409;
|
|
1026
|
+
message: string;
|
|
1027
|
+
};
|
|
949
1028
|
account_not_found: {
|
|
950
1029
|
status: 404;
|
|
951
1030
|
message: string;
|
|
952
1031
|
};
|
|
1032
|
+
plan_module_unavailable: {
|
|
1033
|
+
status: 403;
|
|
1034
|
+
message: string;
|
|
1035
|
+
};
|
|
953
1036
|
}>, Record<never, never>>;
|
|
954
1037
|
tracking: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
955
1038
|
accountId: z.ZodUUID;
|
|
@@ -1051,6 +1134,8 @@ export declare const outbox: {
|
|
|
1051
1134
|
readonly missing_scope: "The API key lacks the scope the operation needs.";
|
|
1052
1135
|
readonly role_forbidden: "The member's role does not allow the operation.";
|
|
1053
1136
|
readonly account_token_forbidden: "An account token called an operation account tokens cannot call.";
|
|
1137
|
+
readonly account_scope_forbidden: "A credential limited to specific accounts called an operation that reaches beyond them.";
|
|
1138
|
+
readonly mcp_only_key: "An MCP-only key (minted for an end user's MCP client) was used outside the MCP server.";
|
|
1054
1139
|
readonly rate_limited: "The tenant used up its plan's request rate; Retry-After says when the window ends.";
|
|
1055
1140
|
readonly too_many_requests: "The credential has too many requests in flight at once; retry after Retry-After.";
|
|
1056
1141
|
readonly overloaded: "The API is shedding load; retry after Retry-After.";
|
|
@@ -1068,10 +1153,18 @@ export declare const outbox: {
|
|
|
1068
1153
|
status: 400;
|
|
1069
1154
|
message: string;
|
|
1070
1155
|
};
|
|
1156
|
+
mail_disabled: {
|
|
1157
|
+
status: 409;
|
|
1158
|
+
message: string;
|
|
1159
|
+
};
|
|
1071
1160
|
account_not_found: {
|
|
1072
1161
|
status: 404;
|
|
1073
1162
|
message: string;
|
|
1074
1163
|
};
|
|
1164
|
+
plan_module_unavailable: {
|
|
1165
|
+
status: 403;
|
|
1166
|
+
message: string;
|
|
1167
|
+
};
|
|
1075
1168
|
}>, Record<never, never>>;
|
|
1076
1169
|
};
|
|
1077
1170
|
export declare const mailMerges: {
|
|
@@ -1125,26 +1218,30 @@ export declare const mailMerges: {
|
|
|
1125
1218
|
}, z.core.$strip>>;
|
|
1126
1219
|
listId: z.ZodOptional<z.ZodString>;
|
|
1127
1220
|
}, z.core.$strict>, z.ZodObject<{
|
|
1128
|
-
items: z.ZodArray<z.ZodDiscriminatedUnion<[
|
|
1129
|
-
|
|
1130
|
-
|
|
1131
|
-
|
|
1132
|
-
|
|
1133
|
-
|
|
1134
|
-
|
|
1135
|
-
|
|
1136
|
-
|
|
1137
|
-
|
|
1138
|
-
|
|
1139
|
-
|
|
1140
|
-
|
|
1141
|
-
|
|
1142
|
-
|
|
1143
|
-
|
|
1144
|
-
|
|
1145
|
-
|
|
1146
|
-
|
|
1147
|
-
|
|
1221
|
+
items: z.ZodArray<z.ZodDiscriminatedUnion<[
|
|
1222
|
+
z.ZodObject<{
|
|
1223
|
+
success: z.ZodLiteral<true>;
|
|
1224
|
+
to: z.ZodObject<{
|
|
1225
|
+
name: z.ZodNullable<z.ZodString>;
|
|
1226
|
+
address: z.ZodString;
|
|
1227
|
+
}, z.core.$strip>;
|
|
1228
|
+
outboxId: z.ZodUUID;
|
|
1229
|
+
messageId: z.ZodString;
|
|
1230
|
+
sendAt: z.ZodPreprocess<z.ZodDate, Date>;
|
|
1231
|
+
undoUntil: z.ZodNullable<z.ZodPreprocess<z.ZodDate, Date>>;
|
|
1232
|
+
}, z.core.$strip>,
|
|
1233
|
+
z.ZodObject<{
|
|
1234
|
+
success: z.ZodLiteral<false>;
|
|
1235
|
+
to: z.ZodObject<{
|
|
1236
|
+
name: z.ZodNullable<z.ZodString>;
|
|
1237
|
+
address: z.ZodString;
|
|
1238
|
+
}, z.core.$strip>;
|
|
1239
|
+
reason: z.ZodString;
|
|
1240
|
+
error: z.ZodString;
|
|
1241
|
+
status: z.ZodNumber;
|
|
1242
|
+
}, z.core.$strip>
|
|
1243
|
+
], "success">>;
|
|
1244
|
+
id: z.ZodNullable<z.ZodUUID>;
|
|
1148
1245
|
}, z.core.$strip>, import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, import("../errors.js").DeclaredErrors<{
|
|
1149
1246
|
readonly invalid_input: "The request does not match the operation's input schema (a malformed body included); data.issues names each problem.";
|
|
1150
1247
|
readonly unauthenticated: "No usable credential: none was sent, or it is malformed, unknown, revoked or an expired account token.";
|
|
@@ -1152,6 +1249,8 @@ export declare const mailMerges: {
|
|
|
1152
1249
|
readonly missing_scope: "The API key lacks the scope the operation needs.";
|
|
1153
1250
|
readonly role_forbidden: "The member's role does not allow the operation.";
|
|
1154
1251
|
readonly account_token_forbidden: "An account token called an operation account tokens cannot call.";
|
|
1252
|
+
readonly account_scope_forbidden: "A credential limited to specific accounts called an operation that reaches beyond them.";
|
|
1253
|
+
readonly mcp_only_key: "An MCP-only key (minted for an end user's MCP client) was used outside the MCP server.";
|
|
1155
1254
|
readonly rate_limited: "The tenant used up its plan's request rate; Retry-After says when the window ends.";
|
|
1156
1255
|
readonly too_many_requests: "The credential has too many requests in flight at once; retry after Retry-After.";
|
|
1157
1256
|
readonly overloaded: "The API is shedding load; retry after Retry-After.";
|
|
@@ -1231,9 +1330,159 @@ export declare const mailMerges: {
|
|
|
1231
1330
|
status: 400;
|
|
1232
1331
|
message: string;
|
|
1233
1332
|
};
|
|
1333
|
+
mail_disabled: {
|
|
1334
|
+
status: 409;
|
|
1335
|
+
message: string;
|
|
1336
|
+
};
|
|
1337
|
+
account_not_found: {
|
|
1338
|
+
status: 404;
|
|
1339
|
+
message: string;
|
|
1340
|
+
};
|
|
1341
|
+
}>, Record<never, never>>;
|
|
1342
|
+
list: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
1343
|
+
accountId: z.ZodUUID;
|
|
1344
|
+
limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
1345
|
+
cursor: z.ZodOptional<z.ZodString>;
|
|
1346
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1347
|
+
items: z.ZodArray<z.ZodObject<{
|
|
1348
|
+
id: z.ZodUUID;
|
|
1349
|
+
accountId: z.ZodUUID;
|
|
1350
|
+
reference: z.ZodNullable<z.ZodString>;
|
|
1351
|
+
entryCount: z.ZodNumber;
|
|
1352
|
+
createdAt: z.ZodPreprocess<z.ZodDate, Date>;
|
|
1353
|
+
counts: z.ZodObject<{
|
|
1354
|
+
queued: z.ZodNumber;
|
|
1355
|
+
sending: z.ZodNumber;
|
|
1356
|
+
sent: z.ZodNumber;
|
|
1357
|
+
failed: z.ZodNumber;
|
|
1358
|
+
cancelled: z.ZodNumber;
|
|
1359
|
+
}, z.core.$strip>;
|
|
1360
|
+
}, z.core.$strip>>;
|
|
1361
|
+
nextCursor: z.ZodNullable<z.ZodString>;
|
|
1362
|
+
}, z.core.$strip>, import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, import("../errors.js").DeclaredErrors<{
|
|
1363
|
+
readonly invalid_input: "The request does not match the operation's input schema (a malformed body included); data.issues names each problem.";
|
|
1364
|
+
readonly unauthenticated: "No usable credential: none was sent, or it is malformed, unknown, revoked or an expired account token.";
|
|
1365
|
+
readonly api_key_expired: "The API key is past its expiry (or the grace of the rotation that replaced it).";
|
|
1366
|
+
readonly missing_scope: "The API key lacks the scope the operation needs.";
|
|
1367
|
+
readonly role_forbidden: "The member's role does not allow the operation.";
|
|
1368
|
+
readonly account_token_forbidden: "An account token called an operation account tokens cannot call.";
|
|
1369
|
+
readonly account_scope_forbidden: "A credential limited to specific accounts called an operation that reaches beyond them.";
|
|
1370
|
+
readonly mcp_only_key: "An MCP-only key (minted for an end user's MCP client) was used outside the MCP server.";
|
|
1371
|
+
readonly rate_limited: "The tenant used up its plan's request rate; Retry-After says when the window ends.";
|
|
1372
|
+
readonly too_many_requests: "The credential has too many requests in flight at once; retry after Retry-After.";
|
|
1373
|
+
readonly overloaded: "The API is shedding load; retry after Retry-After.";
|
|
1374
|
+
readonly payload_too_large: "The request body is larger than the API accepts.";
|
|
1375
|
+
readonly internal_error: "An unexpected failure on our side.";
|
|
1376
|
+
readonly invalid_idempotency_key: "POST only: the Idempotency-Key header is not 1 to 255 printable ASCII characters.";
|
|
1377
|
+
readonly idempotency_key_reused: "POST only: the Idempotency-Key was used in the last 24 hours with another method, path or body.";
|
|
1378
|
+
readonly idempotency_key_in_progress: "POST only: the request first sent with this Idempotency-Key has not been answered yet.";
|
|
1379
|
+
}>>, {
|
|
1380
|
+
invalid_cursor: {
|
|
1381
|
+
status: 400;
|
|
1382
|
+
message: string;
|
|
1383
|
+
};
|
|
1384
|
+
mail_disabled: {
|
|
1385
|
+
status: 409;
|
|
1386
|
+
message: string;
|
|
1387
|
+
};
|
|
1234
1388
|
account_not_found: {
|
|
1235
1389
|
status: 404;
|
|
1236
1390
|
message: string;
|
|
1237
1391
|
};
|
|
1392
|
+
plan_module_unavailable: {
|
|
1393
|
+
status: 403;
|
|
1394
|
+
message: string;
|
|
1395
|
+
};
|
|
1396
|
+
}>, Record<never, never>>;
|
|
1397
|
+
get: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
1398
|
+
accountId: z.ZodUUID;
|
|
1399
|
+
mailMergeId: z.ZodUUID;
|
|
1400
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1401
|
+
id: z.ZodUUID;
|
|
1402
|
+
accountId: z.ZodUUID;
|
|
1403
|
+
reference: z.ZodNullable<z.ZodString>;
|
|
1404
|
+
entryCount: z.ZodNumber;
|
|
1405
|
+
createdAt: z.ZodPreprocess<z.ZodDate, Date>;
|
|
1406
|
+
counts: z.ZodObject<{
|
|
1407
|
+
queued: z.ZodNumber;
|
|
1408
|
+
sending: z.ZodNumber;
|
|
1409
|
+
sent: z.ZodNumber;
|
|
1410
|
+
failed: z.ZodNumber;
|
|
1411
|
+
cancelled: z.ZodNumber;
|
|
1412
|
+
}, z.core.$strip>;
|
|
1413
|
+
}, z.core.$strip>, import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, import("../errors.js").DeclaredErrors<{
|
|
1414
|
+
readonly invalid_input: "The request does not match the operation's input schema (a malformed body included); data.issues names each problem.";
|
|
1415
|
+
readonly unauthenticated: "No usable credential: none was sent, or it is malformed, unknown, revoked or an expired account token.";
|
|
1416
|
+
readonly api_key_expired: "The API key is past its expiry (or the grace of the rotation that replaced it).";
|
|
1417
|
+
readonly missing_scope: "The API key lacks the scope the operation needs.";
|
|
1418
|
+
readonly role_forbidden: "The member's role does not allow the operation.";
|
|
1419
|
+
readonly account_token_forbidden: "An account token called an operation account tokens cannot call.";
|
|
1420
|
+
readonly account_scope_forbidden: "A credential limited to specific accounts called an operation that reaches beyond them.";
|
|
1421
|
+
readonly mcp_only_key: "An MCP-only key (minted for an end user's MCP client) was used outside the MCP server.";
|
|
1422
|
+
readonly rate_limited: "The tenant used up its plan's request rate; Retry-After says when the window ends.";
|
|
1423
|
+
readonly too_many_requests: "The credential has too many requests in flight at once; retry after Retry-After.";
|
|
1424
|
+
readonly overloaded: "The API is shedding load; retry after Retry-After.";
|
|
1425
|
+
readonly payload_too_large: "The request body is larger than the API accepts.";
|
|
1426
|
+
readonly internal_error: "An unexpected failure on our side.";
|
|
1427
|
+
readonly invalid_idempotency_key: "POST only: the Idempotency-Key header is not 1 to 255 printable ASCII characters.";
|
|
1428
|
+
readonly idempotency_key_reused: "POST only: the Idempotency-Key was used in the last 24 hours with another method, path or body.";
|
|
1429
|
+
readonly idempotency_key_in_progress: "POST only: the request first sent with this Idempotency-Key has not been answered yet.";
|
|
1430
|
+
}>>, {
|
|
1431
|
+
mail_merge_not_found: {
|
|
1432
|
+
status: 404;
|
|
1433
|
+
message: string;
|
|
1434
|
+
};
|
|
1435
|
+
mail_disabled: {
|
|
1436
|
+
status: 409;
|
|
1437
|
+
message: string;
|
|
1438
|
+
};
|
|
1439
|
+
account_not_found: {
|
|
1440
|
+
status: 404;
|
|
1441
|
+
message: string;
|
|
1442
|
+
};
|
|
1443
|
+
plan_module_unavailable: {
|
|
1444
|
+
status: 403;
|
|
1445
|
+
message: string;
|
|
1446
|
+
};
|
|
1447
|
+
}>, Record<never, never>>;
|
|
1448
|
+
cancel: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
1449
|
+
accountId: z.ZodUUID;
|
|
1450
|
+
mailMergeId: z.ZodUUID;
|
|
1451
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1452
|
+
cancelled: z.ZodNumber;
|
|
1453
|
+
}, z.core.$strip>, import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, import("../errors.js").DeclaredErrors<{
|
|
1454
|
+
readonly invalid_input: "The request does not match the operation's input schema (a malformed body included); data.issues names each problem.";
|
|
1455
|
+
readonly unauthenticated: "No usable credential: none was sent, or it is malformed, unknown, revoked or an expired account token.";
|
|
1456
|
+
readonly api_key_expired: "The API key is past its expiry (or the grace of the rotation that replaced it).";
|
|
1457
|
+
readonly missing_scope: "The API key lacks the scope the operation needs.";
|
|
1458
|
+
readonly role_forbidden: "The member's role does not allow the operation.";
|
|
1459
|
+
readonly account_token_forbidden: "An account token called an operation account tokens cannot call.";
|
|
1460
|
+
readonly account_scope_forbidden: "A credential limited to specific accounts called an operation that reaches beyond them.";
|
|
1461
|
+
readonly mcp_only_key: "An MCP-only key (minted for an end user's MCP client) was used outside the MCP server.";
|
|
1462
|
+
readonly rate_limited: "The tenant used up its plan's request rate; Retry-After says when the window ends.";
|
|
1463
|
+
readonly too_many_requests: "The credential has too many requests in flight at once; retry after Retry-After.";
|
|
1464
|
+
readonly overloaded: "The API is shedding load; retry after Retry-After.";
|
|
1465
|
+
readonly payload_too_large: "The request body is larger than the API accepts.";
|
|
1466
|
+
readonly internal_error: "An unexpected failure on our side.";
|
|
1467
|
+
readonly invalid_idempotency_key: "POST only: the Idempotency-Key header is not 1 to 255 printable ASCII characters.";
|
|
1468
|
+
readonly idempotency_key_reused: "POST only: the Idempotency-Key was used in the last 24 hours with another method, path or body.";
|
|
1469
|
+
readonly idempotency_key_in_progress: "POST only: the request first sent with this Idempotency-Key has not been answered yet.";
|
|
1470
|
+
}>>, {
|
|
1471
|
+
mail_merge_not_found: {
|
|
1472
|
+
status: 404;
|
|
1473
|
+
message: string;
|
|
1474
|
+
};
|
|
1475
|
+
mail_disabled: {
|
|
1476
|
+
status: 409;
|
|
1477
|
+
message: string;
|
|
1478
|
+
};
|
|
1479
|
+
account_not_found: {
|
|
1480
|
+
status: 404;
|
|
1481
|
+
message: string;
|
|
1482
|
+
};
|
|
1483
|
+
plan_module_unavailable: {
|
|
1484
|
+
status: 403;
|
|
1485
|
+
message: string;
|
|
1486
|
+
};
|
|
1238
1487
|
}>, Record<never, never>>;
|
|
1239
1488
|
};
|