@workwae/sdk 0.1.0-alpha.1 → 0.1.0-alpha.3
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 +22 -5
- package/contract/audit-log/routes.d.ts +11 -1
- package/contract/calendar/models.d.ts +249 -74
- package/contract/calendar/routes.d.ts +574 -30
- package/contract/connect/models.d.ts +30 -16
- package/contract/connect/routes.d.ts +51 -7
- package/contract/connect-domain/models.d.ts +41 -0
- package/contract/connect-domain/routes.d.ts +197 -0
- package/contract/contacts/models.d.ts +0 -10
- package/contract/contacts/routes.d.ts +14 -0
- package/contract/custom-domain.d.ts +12 -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 +27 -73
- package/contract/mail/models.d.ts +230 -50
- package/contract/mail/routes.d.ts +649 -59
- package/contract/mcp-keys/models.d.ts +125 -0
- package/contract/mcp-keys/routes.d.ts +151 -0
- package/contract/meetings/models.d.ts +39 -33
- package/contract/meetings/routes.d.ts +121 -23
- package/contract/oauth-apps/models.d.ts +6 -6
- package/contract/oauth-apps/routes.d.ts +34 -4
- package/contract/org-connections/models.d.ts +93 -39
- package/contract/org-connections/routes.d.ts +352 -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 +7 -0
- package/contract/reasons.d.ts +559 -21
- package/contract/router.d.ts +6447 -2719
- package/contract/scheduling/models.d.ts +405 -0
- package/contract/scheduling/routes.d.ts +756 -0
- package/contract/send/models.d.ts +140 -45
- package/contract/send/routes.d.ts +310 -31
- 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;
|
|
@@ -466,6 +496,8 @@ export declare const drafts: {
|
|
|
466
496
|
providerMessageId: z.ZodNullable<z.ZodString>;
|
|
467
497
|
internetMessageId: z.ZodNullable<z.ZodString>;
|
|
468
498
|
sentAt: z.ZodNullable<z.ZodPreprocess<z.ZodDate, Date>>;
|
|
499
|
+
sentMessageId: z.ZodNullable<z.ZodUUID>;
|
|
500
|
+
threadId: z.ZodNullable<z.ZodString>;
|
|
469
501
|
createdAt: z.ZodPreprocess<z.ZodDate, Date>;
|
|
470
502
|
trackOpens: z.ZodBoolean;
|
|
471
503
|
trackClicks: z.ZodBoolean;
|
|
@@ -476,6 +508,7 @@ export declare const drafts: {
|
|
|
476
508
|
machineClickCount: z.ZodNumber;
|
|
477
509
|
firstOpenedAt: z.ZodNullable<z.ZodPreprocess<z.ZodDate, Date>>;
|
|
478
510
|
lastOpenedAt: z.ZodNullable<z.ZodPreprocess<z.ZodDate, Date>>;
|
|
511
|
+
mailMergeId: z.ZodNullable<z.ZodUUID>;
|
|
479
512
|
undoUntil: z.ZodNullable<z.ZodPreprocess<z.ZodDate, Date>>;
|
|
480
513
|
}, z.core.$strip>, import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, import("../errors.js").DeclaredErrors<{
|
|
481
514
|
readonly invalid_input: "The request does not match the operation's input schema (a malformed body included); data.issues names each problem.";
|
|
@@ -484,6 +517,8 @@ export declare const drafts: {
|
|
|
484
517
|
readonly missing_scope: "The API key lacks the scope the operation needs.";
|
|
485
518
|
readonly role_forbidden: "The member's role does not allow the operation.";
|
|
486
519
|
readonly account_token_forbidden: "An account token called an operation account tokens cannot call.";
|
|
520
|
+
readonly account_scope_forbidden: "A credential limited to specific accounts called an operation that reaches beyond them.";
|
|
521
|
+
readonly mcp_only_key: "An MCP-only key (minted for an end user's MCP client) was used outside the MCP server.";
|
|
487
522
|
readonly rate_limited: "The tenant used up its plan's request rate; Retry-After says when the window ends.";
|
|
488
523
|
readonly too_many_requests: "The credential has too many requests in flight at once; retry after Retry-After.";
|
|
489
524
|
readonly overloaded: "The API is shedding load; retry after Retry-After.";
|
|
@@ -497,10 +532,9 @@ export declare const drafts: {
|
|
|
497
532
|
status: 402;
|
|
498
533
|
message: string;
|
|
499
534
|
};
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
};
|
|
535
|
+
plan_required: import("../errors.js").DeclaredError<"plan_required">;
|
|
536
|
+
spend_cap_reached: import("../errors.js").DeclaredError<"spend_cap_reached">;
|
|
537
|
+
plan_limit_sends: import("../errors.js").DeclaredError<"plan_limit_sends">;
|
|
504
538
|
plan_module_unavailable: {
|
|
505
539
|
status: 403;
|
|
506
540
|
message: string;
|
|
@@ -509,6 +543,7 @@ export declare const drafts: {
|
|
|
509
543
|
status: 400;
|
|
510
544
|
message: string;
|
|
511
545
|
};
|
|
546
|
+
suppressed: import("../errors.js").DeclaredError<"suppressed">;
|
|
512
547
|
not_a_draft: {
|
|
513
548
|
status: 400;
|
|
514
549
|
message: string;
|
|
@@ -541,6 +576,10 @@ export declare const drafts: {
|
|
|
541
576
|
status: 404;
|
|
542
577
|
message: string;
|
|
543
578
|
};
|
|
579
|
+
mail_disabled: {
|
|
580
|
+
status: 409;
|
|
581
|
+
message: string;
|
|
582
|
+
};
|
|
544
583
|
account_not_found: {
|
|
545
584
|
status: 404;
|
|
546
585
|
message: string;
|
|
@@ -603,6 +642,22 @@ export declare const outbox: {
|
|
|
603
642
|
honeypot: z.ZodOptional<z.ZodBoolean>;
|
|
604
643
|
}, z.core.$strip>>;
|
|
605
644
|
listId: z.ZodOptional<z.ZodString>;
|
|
645
|
+
messageId: z.ZodOptional<z.ZodString>;
|
|
646
|
+
headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
647
|
+
calendar: z.ZodOptional<z.ZodObject<{
|
|
648
|
+
method: z.ZodEnum<{
|
|
649
|
+
PUBLISH: "PUBLISH";
|
|
650
|
+
REQUEST: "REQUEST";
|
|
651
|
+
REPLY: "REPLY";
|
|
652
|
+
ADD: "ADD";
|
|
653
|
+
CANCEL: "CANCEL";
|
|
654
|
+
REFRESH: "REFRESH";
|
|
655
|
+
COUNTER: "COUNTER";
|
|
656
|
+
DECLINECOUNTER: "DECLINECOUNTER";
|
|
657
|
+
}>;
|
|
658
|
+
content: z.ZodString;
|
|
659
|
+
}, z.core.$strip>>;
|
|
660
|
+
wait: z.ZodOptional<z.ZodNumber>;
|
|
606
661
|
}, z.core.$strict>, z.ZodObject<{
|
|
607
662
|
id: z.ZodUUID;
|
|
608
663
|
accountId: z.ZodUUID;
|
|
@@ -620,6 +675,8 @@ export declare const outbox: {
|
|
|
620
675
|
providerMessageId: z.ZodNullable<z.ZodString>;
|
|
621
676
|
internetMessageId: z.ZodNullable<z.ZodString>;
|
|
622
677
|
sentAt: z.ZodNullable<z.ZodPreprocess<z.ZodDate, Date>>;
|
|
678
|
+
sentMessageId: z.ZodNullable<z.ZodUUID>;
|
|
679
|
+
threadId: z.ZodNullable<z.ZodString>;
|
|
623
680
|
createdAt: z.ZodPreprocess<z.ZodDate, Date>;
|
|
624
681
|
trackOpens: z.ZodBoolean;
|
|
625
682
|
trackClicks: z.ZodBoolean;
|
|
@@ -630,6 +687,7 @@ export declare const outbox: {
|
|
|
630
687
|
machineClickCount: z.ZodNumber;
|
|
631
688
|
firstOpenedAt: z.ZodNullable<z.ZodPreprocess<z.ZodDate, Date>>;
|
|
632
689
|
lastOpenedAt: z.ZodNullable<z.ZodPreprocess<z.ZodDate, Date>>;
|
|
690
|
+
mailMergeId: z.ZodNullable<z.ZodUUID>;
|
|
633
691
|
undoUntil: z.ZodNullable<z.ZodPreprocess<z.ZodDate, Date>>;
|
|
634
692
|
}, z.core.$strip>, import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, import("../errors.js").DeclaredErrors<{
|
|
635
693
|
readonly invalid_input: "The request does not match the operation's input schema (a malformed body included); data.issues names each problem.";
|
|
@@ -638,6 +696,8 @@ export declare const outbox: {
|
|
|
638
696
|
readonly missing_scope: "The API key lacks the scope the operation needs.";
|
|
639
697
|
readonly role_forbidden: "The member's role does not allow the operation.";
|
|
640
698
|
readonly account_token_forbidden: "An account token called an operation account tokens cannot call.";
|
|
699
|
+
readonly account_scope_forbidden: "A credential limited to specific accounts called an operation that reaches beyond them.";
|
|
700
|
+
readonly mcp_only_key: "An MCP-only key (minted for an end user's MCP client) was used outside the MCP server.";
|
|
641
701
|
readonly rate_limited: "The tenant used up its plan's request rate; Retry-After says when the window ends.";
|
|
642
702
|
readonly too_many_requests: "The credential has too many requests in flight at once; retry after Retry-After.";
|
|
643
703
|
readonly overloaded: "The API is shedding load; retry after Retry-After.";
|
|
@@ -651,10 +711,9 @@ export declare const outbox: {
|
|
|
651
711
|
status: 402;
|
|
652
712
|
message: string;
|
|
653
713
|
};
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
};
|
|
714
|
+
plan_required: import("../errors.js").DeclaredError<"plan_required">;
|
|
715
|
+
spend_cap_reached: import("../errors.js").DeclaredError<"spend_cap_reached">;
|
|
716
|
+
plan_limit_sends: import("../errors.js").DeclaredError<"plan_limit_sends">;
|
|
658
717
|
list_unsubscribe_unavailable: {
|
|
659
718
|
status: 400;
|
|
660
719
|
message: string;
|
|
@@ -667,16 +726,17 @@ export declare const outbox: {
|
|
|
667
726
|
status: 400;
|
|
668
727
|
message: string;
|
|
669
728
|
};
|
|
729
|
+
suppressed: import("../errors.js").DeclaredError<"suppressed">;
|
|
670
730
|
list_send_recipients: {
|
|
671
731
|
status: 400;
|
|
672
732
|
message: string;
|
|
673
733
|
};
|
|
674
|
-
|
|
734
|
+
no_recipients: {
|
|
675
735
|
status: 400;
|
|
676
736
|
message: string;
|
|
677
737
|
};
|
|
678
|
-
|
|
679
|
-
status:
|
|
738
|
+
duplicate_message_id: {
|
|
739
|
+
status: 409;
|
|
680
740
|
message: string;
|
|
681
741
|
};
|
|
682
742
|
template_and_inline_fields: {
|
|
@@ -733,6 +793,10 @@ export declare const outbox: {
|
|
|
733
793
|
status: 400;
|
|
734
794
|
message: string;
|
|
735
795
|
};
|
|
796
|
+
mail_disabled: {
|
|
797
|
+
status: 409;
|
|
798
|
+
message: string;
|
|
799
|
+
};
|
|
736
800
|
account_not_found: {
|
|
737
801
|
status: 404;
|
|
738
802
|
message: string;
|
|
@@ -767,6 +831,8 @@ export declare const outbox: {
|
|
|
767
831
|
providerMessageId: z.ZodNullable<z.ZodString>;
|
|
768
832
|
internetMessageId: z.ZodNullable<z.ZodString>;
|
|
769
833
|
sentAt: z.ZodNullable<z.ZodPreprocess<z.ZodDate, Date>>;
|
|
834
|
+
sentMessageId: z.ZodNullable<z.ZodUUID>;
|
|
835
|
+
threadId: z.ZodNullable<z.ZodString>;
|
|
770
836
|
createdAt: z.ZodPreprocess<z.ZodDate, Date>;
|
|
771
837
|
trackOpens: z.ZodBoolean;
|
|
772
838
|
trackClicks: z.ZodBoolean;
|
|
@@ -777,6 +843,7 @@ export declare const outbox: {
|
|
|
777
843
|
machineClickCount: z.ZodNumber;
|
|
778
844
|
firstOpenedAt: z.ZodNullable<z.ZodPreprocess<z.ZodDate, Date>>;
|
|
779
845
|
lastOpenedAt: z.ZodNullable<z.ZodPreprocess<z.ZodDate, Date>>;
|
|
846
|
+
mailMergeId: z.ZodNullable<z.ZodUUID>;
|
|
780
847
|
}, z.core.$strip>>;
|
|
781
848
|
nextCursor: z.ZodNullable<z.ZodString>;
|
|
782
849
|
}, z.core.$strip>, import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, import("../errors.js").DeclaredErrors<{
|
|
@@ -786,6 +853,8 @@ export declare const outbox: {
|
|
|
786
853
|
readonly missing_scope: "The API key lacks the scope the operation needs.";
|
|
787
854
|
readonly role_forbidden: "The member's role does not allow the operation.";
|
|
788
855
|
readonly account_token_forbidden: "An account token called an operation account tokens cannot call.";
|
|
856
|
+
readonly account_scope_forbidden: "A credential limited to specific accounts called an operation that reaches beyond them.";
|
|
857
|
+
readonly mcp_only_key: "An MCP-only key (minted for an end user's MCP client) was used outside the MCP server.";
|
|
789
858
|
readonly rate_limited: "The tenant used up its plan's request rate; Retry-After says when the window ends.";
|
|
790
859
|
readonly too_many_requests: "The credential has too many requests in flight at once; retry after Retry-After.";
|
|
791
860
|
readonly overloaded: "The API is shedding load; retry after Retry-After.";
|
|
@@ -799,10 +868,18 @@ export declare const outbox: {
|
|
|
799
868
|
status: 400;
|
|
800
869
|
message: string;
|
|
801
870
|
};
|
|
871
|
+
mail_disabled: {
|
|
872
|
+
status: 409;
|
|
873
|
+
message: string;
|
|
874
|
+
};
|
|
802
875
|
account_not_found: {
|
|
803
876
|
status: 404;
|
|
804
877
|
message: string;
|
|
805
878
|
};
|
|
879
|
+
plan_module_unavailable: {
|
|
880
|
+
status: 403;
|
|
881
|
+
message: string;
|
|
882
|
+
};
|
|
806
883
|
}>, Record<never, never>>;
|
|
807
884
|
get: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
808
885
|
accountId: z.ZodUUID;
|
|
@@ -824,6 +901,8 @@ export declare const outbox: {
|
|
|
824
901
|
providerMessageId: z.ZodNullable<z.ZodString>;
|
|
825
902
|
internetMessageId: z.ZodNullable<z.ZodString>;
|
|
826
903
|
sentAt: z.ZodNullable<z.ZodPreprocess<z.ZodDate, Date>>;
|
|
904
|
+
sentMessageId: z.ZodNullable<z.ZodUUID>;
|
|
905
|
+
threadId: z.ZodNullable<z.ZodString>;
|
|
827
906
|
createdAt: z.ZodPreprocess<z.ZodDate, Date>;
|
|
828
907
|
trackOpens: z.ZodBoolean;
|
|
829
908
|
trackClicks: z.ZodBoolean;
|
|
@@ -834,6 +913,7 @@ export declare const outbox: {
|
|
|
834
913
|
machineClickCount: z.ZodNumber;
|
|
835
914
|
firstOpenedAt: z.ZodNullable<z.ZodPreprocess<z.ZodDate, Date>>;
|
|
836
915
|
lastOpenedAt: z.ZodNullable<z.ZodPreprocess<z.ZodDate, Date>>;
|
|
916
|
+
mailMergeId: z.ZodNullable<z.ZodUUID>;
|
|
837
917
|
}, z.core.$strip>, import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, import("../errors.js").DeclaredErrors<{
|
|
838
918
|
readonly invalid_input: "The request does not match the operation's input schema (a malformed body included); data.issues names each problem.";
|
|
839
919
|
readonly unauthenticated: "No usable credential: none was sent, or it is malformed, unknown, revoked or an expired account token.";
|
|
@@ -841,6 +921,8 @@ export declare const outbox: {
|
|
|
841
921
|
readonly missing_scope: "The API key lacks the scope the operation needs.";
|
|
842
922
|
readonly role_forbidden: "The member's role does not allow the operation.";
|
|
843
923
|
readonly account_token_forbidden: "An account token called an operation account tokens cannot call.";
|
|
924
|
+
readonly account_scope_forbidden: "A credential limited to specific accounts called an operation that reaches beyond them.";
|
|
925
|
+
readonly mcp_only_key: "An MCP-only key (minted for an end user's MCP client) was used outside the MCP server.";
|
|
844
926
|
readonly rate_limited: "The tenant used up its plan's request rate; Retry-After says when the window ends.";
|
|
845
927
|
readonly too_many_requests: "The credential has too many requests in flight at once; retry after Retry-After.";
|
|
846
928
|
readonly overloaded: "The API is shedding load; retry after Retry-After.";
|
|
@@ -854,10 +936,18 @@ export declare const outbox: {
|
|
|
854
936
|
status: 404;
|
|
855
937
|
message: string;
|
|
856
938
|
};
|
|
939
|
+
mail_disabled: {
|
|
940
|
+
status: 409;
|
|
941
|
+
message: string;
|
|
942
|
+
};
|
|
857
943
|
account_not_found: {
|
|
858
944
|
status: 404;
|
|
859
945
|
message: string;
|
|
860
946
|
};
|
|
947
|
+
plan_module_unavailable: {
|
|
948
|
+
status: 403;
|
|
949
|
+
message: string;
|
|
950
|
+
};
|
|
861
951
|
}>, Record<never, never>>;
|
|
862
952
|
cancel: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
863
953
|
accountId: z.ZodUUID;
|
|
@@ -869,6 +959,8 @@ export declare const outbox: {
|
|
|
869
959
|
readonly missing_scope: "The API key lacks the scope the operation needs.";
|
|
870
960
|
readonly role_forbidden: "The member's role does not allow the operation.";
|
|
871
961
|
readonly account_token_forbidden: "An account token called an operation account tokens cannot call.";
|
|
962
|
+
readonly account_scope_forbidden: "A credential limited to specific accounts called an operation that reaches beyond them.";
|
|
963
|
+
readonly mcp_only_key: "An MCP-only key (minted for an end user's MCP client) was used outside the MCP server.";
|
|
872
964
|
readonly rate_limited: "The tenant used up its plan's request rate; Retry-After says when the window ends.";
|
|
873
965
|
readonly too_many_requests: "The credential has too many requests in flight at once; retry after Retry-After.";
|
|
874
966
|
readonly overloaded: "The API is shedding load; retry after Retry-After.";
|
|
@@ -886,10 +978,18 @@ export declare const outbox: {
|
|
|
886
978
|
status: 404;
|
|
887
979
|
message: string;
|
|
888
980
|
};
|
|
981
|
+
mail_disabled: {
|
|
982
|
+
status: 409;
|
|
983
|
+
message: string;
|
|
984
|
+
};
|
|
889
985
|
account_not_found: {
|
|
890
986
|
status: 404;
|
|
891
987
|
message: string;
|
|
892
988
|
};
|
|
989
|
+
plan_module_unavailable: {
|
|
990
|
+
status: 403;
|
|
991
|
+
message: string;
|
|
992
|
+
};
|
|
893
993
|
}>, Record<never, never>>;
|
|
894
994
|
reschedule: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
895
995
|
accountId: z.ZodUUID;
|
|
@@ -912,6 +1012,8 @@ export declare const outbox: {
|
|
|
912
1012
|
providerMessageId: z.ZodNullable<z.ZodString>;
|
|
913
1013
|
internetMessageId: z.ZodNullable<z.ZodString>;
|
|
914
1014
|
sentAt: z.ZodNullable<z.ZodPreprocess<z.ZodDate, Date>>;
|
|
1015
|
+
sentMessageId: z.ZodNullable<z.ZodUUID>;
|
|
1016
|
+
threadId: z.ZodNullable<z.ZodString>;
|
|
915
1017
|
createdAt: z.ZodPreprocess<z.ZodDate, Date>;
|
|
916
1018
|
trackOpens: z.ZodBoolean;
|
|
917
1019
|
trackClicks: z.ZodBoolean;
|
|
@@ -922,6 +1024,7 @@ export declare const outbox: {
|
|
|
922
1024
|
machineClickCount: z.ZodNumber;
|
|
923
1025
|
firstOpenedAt: z.ZodNullable<z.ZodPreprocess<z.ZodDate, Date>>;
|
|
924
1026
|
lastOpenedAt: z.ZodNullable<z.ZodPreprocess<z.ZodDate, Date>>;
|
|
1027
|
+
mailMergeId: z.ZodNullable<z.ZodUUID>;
|
|
925
1028
|
}, z.core.$strip>, import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, import("../errors.js").DeclaredErrors<{
|
|
926
1029
|
readonly invalid_input: "The request does not match the operation's input schema (a malformed body included); data.issues names each problem.";
|
|
927
1030
|
readonly unauthenticated: "No usable credential: none was sent, or it is malformed, unknown, revoked or an expired account token.";
|
|
@@ -929,6 +1032,8 @@ export declare const outbox: {
|
|
|
929
1032
|
readonly missing_scope: "The API key lacks the scope the operation needs.";
|
|
930
1033
|
readonly role_forbidden: "The member's role does not allow the operation.";
|
|
931
1034
|
readonly account_token_forbidden: "An account token called an operation account tokens cannot call.";
|
|
1035
|
+
readonly account_scope_forbidden: "A credential limited to specific accounts called an operation that reaches beyond them.";
|
|
1036
|
+
readonly mcp_only_key: "An MCP-only key (minted for an end user's MCP client) was used outside the MCP server.";
|
|
932
1037
|
readonly rate_limited: "The tenant used up its plan's request rate; Retry-After says when the window ends.";
|
|
933
1038
|
readonly too_many_requests: "The credential has too many requests in flight at once; retry after Retry-After.";
|
|
934
1039
|
readonly overloaded: "The API is shedding load; retry after Retry-After.";
|
|
@@ -946,10 +1051,18 @@ export declare const outbox: {
|
|
|
946
1051
|
status: 404;
|
|
947
1052
|
message: string;
|
|
948
1053
|
};
|
|
1054
|
+
mail_disabled: {
|
|
1055
|
+
status: 409;
|
|
1056
|
+
message: string;
|
|
1057
|
+
};
|
|
949
1058
|
account_not_found: {
|
|
950
1059
|
status: 404;
|
|
951
1060
|
message: string;
|
|
952
1061
|
};
|
|
1062
|
+
plan_module_unavailable: {
|
|
1063
|
+
status: 403;
|
|
1064
|
+
message: string;
|
|
1065
|
+
};
|
|
953
1066
|
}>, Record<never, never>>;
|
|
954
1067
|
tracking: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
955
1068
|
accountId: z.ZodUUID;
|
|
@@ -1051,6 +1164,8 @@ export declare const outbox: {
|
|
|
1051
1164
|
readonly missing_scope: "The API key lacks the scope the operation needs.";
|
|
1052
1165
|
readonly role_forbidden: "The member's role does not allow the operation.";
|
|
1053
1166
|
readonly account_token_forbidden: "An account token called an operation account tokens cannot call.";
|
|
1167
|
+
readonly account_scope_forbidden: "A credential limited to specific accounts called an operation that reaches beyond them.";
|
|
1168
|
+
readonly mcp_only_key: "An MCP-only key (minted for an end user's MCP client) was used outside the MCP server.";
|
|
1054
1169
|
readonly rate_limited: "The tenant used up its plan's request rate; Retry-After says when the window ends.";
|
|
1055
1170
|
readonly too_many_requests: "The credential has too many requests in flight at once; retry after Retry-After.";
|
|
1056
1171
|
readonly overloaded: "The API is shedding load; retry after Retry-After.";
|
|
@@ -1068,10 +1183,18 @@ export declare const outbox: {
|
|
|
1068
1183
|
status: 400;
|
|
1069
1184
|
message: string;
|
|
1070
1185
|
};
|
|
1186
|
+
mail_disabled: {
|
|
1187
|
+
status: 409;
|
|
1188
|
+
message: string;
|
|
1189
|
+
};
|
|
1071
1190
|
account_not_found: {
|
|
1072
1191
|
status: 404;
|
|
1073
1192
|
message: string;
|
|
1074
1193
|
};
|
|
1194
|
+
plan_module_unavailable: {
|
|
1195
|
+
status: 403;
|
|
1196
|
+
message: string;
|
|
1197
|
+
};
|
|
1075
1198
|
}>, Record<never, never>>;
|
|
1076
1199
|
};
|
|
1077
1200
|
export declare const mailMerges: {
|
|
@@ -1125,26 +1248,30 @@ export declare const mailMerges: {
|
|
|
1125
1248
|
}, z.core.$strip>>;
|
|
1126
1249
|
listId: z.ZodOptional<z.ZodString>;
|
|
1127
1250
|
}, 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
|
-
|
|
1251
|
+
items: z.ZodArray<z.ZodDiscriminatedUnion<[
|
|
1252
|
+
z.ZodObject<{
|
|
1253
|
+
success: z.ZodLiteral<true>;
|
|
1254
|
+
to: z.ZodObject<{
|
|
1255
|
+
name: z.ZodNullable<z.ZodString>;
|
|
1256
|
+
address: z.ZodString;
|
|
1257
|
+
}, z.core.$strip>;
|
|
1258
|
+
outboxId: z.ZodUUID;
|
|
1259
|
+
messageId: z.ZodString;
|
|
1260
|
+
sendAt: z.ZodPreprocess<z.ZodDate, Date>;
|
|
1261
|
+
undoUntil: z.ZodNullable<z.ZodPreprocess<z.ZodDate, Date>>;
|
|
1262
|
+
}, z.core.$strip>,
|
|
1263
|
+
z.ZodObject<{
|
|
1264
|
+
success: z.ZodLiteral<false>;
|
|
1265
|
+
to: z.ZodObject<{
|
|
1266
|
+
name: z.ZodNullable<z.ZodString>;
|
|
1267
|
+
address: z.ZodString;
|
|
1268
|
+
}, z.core.$strip>;
|
|
1269
|
+
reason: z.ZodString;
|
|
1270
|
+
error: z.ZodString;
|
|
1271
|
+
status: z.ZodNumber;
|
|
1272
|
+
}, z.core.$strip>
|
|
1273
|
+
], "success">>;
|
|
1274
|
+
id: z.ZodNullable<z.ZodUUID>;
|
|
1148
1275
|
}, z.core.$strip>, import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, import("../errors.js").DeclaredErrors<{
|
|
1149
1276
|
readonly invalid_input: "The request does not match the operation's input schema (a malformed body included); data.issues names each problem.";
|
|
1150
1277
|
readonly unauthenticated: "No usable credential: none was sent, or it is malformed, unknown, revoked or an expired account token.";
|
|
@@ -1152,6 +1279,8 @@ export declare const mailMerges: {
|
|
|
1152
1279
|
readonly missing_scope: "The API key lacks the scope the operation needs.";
|
|
1153
1280
|
readonly role_forbidden: "The member's role does not allow the operation.";
|
|
1154
1281
|
readonly account_token_forbidden: "An account token called an operation account tokens cannot call.";
|
|
1282
|
+
readonly account_scope_forbidden: "A credential limited to specific accounts called an operation that reaches beyond them.";
|
|
1283
|
+
readonly mcp_only_key: "An MCP-only key (minted for an end user's MCP client) was used outside the MCP server.";
|
|
1155
1284
|
readonly rate_limited: "The tenant used up its plan's request rate; Retry-After says when the window ends.";
|
|
1156
1285
|
readonly too_many_requests: "The credential has too many requests in flight at once; retry after Retry-After.";
|
|
1157
1286
|
readonly overloaded: "The API is shedding load; retry after Retry-After.";
|
|
@@ -1231,9 +1360,159 @@ export declare const mailMerges: {
|
|
|
1231
1360
|
status: 400;
|
|
1232
1361
|
message: string;
|
|
1233
1362
|
};
|
|
1363
|
+
mail_disabled: {
|
|
1364
|
+
status: 409;
|
|
1365
|
+
message: string;
|
|
1366
|
+
};
|
|
1234
1367
|
account_not_found: {
|
|
1235
1368
|
status: 404;
|
|
1236
1369
|
message: string;
|
|
1237
1370
|
};
|
|
1238
1371
|
}>, Record<never, never>>;
|
|
1372
|
+
list: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
1373
|
+
accountId: z.ZodUUID;
|
|
1374
|
+
limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
1375
|
+
cursor: z.ZodOptional<z.ZodString>;
|
|
1376
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1377
|
+
items: z.ZodArray<z.ZodObject<{
|
|
1378
|
+
id: z.ZodUUID;
|
|
1379
|
+
accountId: z.ZodUUID;
|
|
1380
|
+
reference: z.ZodNullable<z.ZodString>;
|
|
1381
|
+
entryCount: z.ZodNumber;
|
|
1382
|
+
createdAt: z.ZodPreprocess<z.ZodDate, Date>;
|
|
1383
|
+
counts: z.ZodObject<{
|
|
1384
|
+
queued: z.ZodNumber;
|
|
1385
|
+
sending: z.ZodNumber;
|
|
1386
|
+
sent: z.ZodNumber;
|
|
1387
|
+
failed: z.ZodNumber;
|
|
1388
|
+
cancelled: z.ZodNumber;
|
|
1389
|
+
}, z.core.$strip>;
|
|
1390
|
+
}, z.core.$strip>>;
|
|
1391
|
+
nextCursor: z.ZodNullable<z.ZodString>;
|
|
1392
|
+
}, z.core.$strip>, import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, import("../errors.js").DeclaredErrors<{
|
|
1393
|
+
readonly invalid_input: "The request does not match the operation's input schema (a malformed body included); data.issues names each problem.";
|
|
1394
|
+
readonly unauthenticated: "No usable credential: none was sent, or it is malformed, unknown, revoked or an expired account token.";
|
|
1395
|
+
readonly api_key_expired: "The API key is past its expiry (or the grace of the rotation that replaced it).";
|
|
1396
|
+
readonly missing_scope: "The API key lacks the scope the operation needs.";
|
|
1397
|
+
readonly role_forbidden: "The member's role does not allow the operation.";
|
|
1398
|
+
readonly account_token_forbidden: "An account token called an operation account tokens cannot call.";
|
|
1399
|
+
readonly account_scope_forbidden: "A credential limited to specific accounts called an operation that reaches beyond them.";
|
|
1400
|
+
readonly mcp_only_key: "An MCP-only key (minted for an end user's MCP client) was used outside the MCP server.";
|
|
1401
|
+
readonly rate_limited: "The tenant used up its plan's request rate; Retry-After says when the window ends.";
|
|
1402
|
+
readonly too_many_requests: "The credential has too many requests in flight at once; retry after Retry-After.";
|
|
1403
|
+
readonly overloaded: "The API is shedding load; retry after Retry-After.";
|
|
1404
|
+
readonly payload_too_large: "The request body is larger than the API accepts.";
|
|
1405
|
+
readonly internal_error: "An unexpected failure on our side.";
|
|
1406
|
+
readonly invalid_idempotency_key: "POST only: the Idempotency-Key header is not 1 to 255 printable ASCII characters.";
|
|
1407
|
+
readonly idempotency_key_reused: "POST only: the Idempotency-Key was used in the last 24 hours with another method, path or body.";
|
|
1408
|
+
readonly idempotency_key_in_progress: "POST only: the request first sent with this Idempotency-Key has not been answered yet.";
|
|
1409
|
+
}>>, {
|
|
1410
|
+
invalid_cursor: {
|
|
1411
|
+
status: 400;
|
|
1412
|
+
message: string;
|
|
1413
|
+
};
|
|
1414
|
+
mail_disabled: {
|
|
1415
|
+
status: 409;
|
|
1416
|
+
message: string;
|
|
1417
|
+
};
|
|
1418
|
+
account_not_found: {
|
|
1419
|
+
status: 404;
|
|
1420
|
+
message: string;
|
|
1421
|
+
};
|
|
1422
|
+
plan_module_unavailable: {
|
|
1423
|
+
status: 403;
|
|
1424
|
+
message: string;
|
|
1425
|
+
};
|
|
1426
|
+
}>, Record<never, never>>;
|
|
1427
|
+
get: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
1428
|
+
accountId: z.ZodUUID;
|
|
1429
|
+
mailMergeId: z.ZodUUID;
|
|
1430
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1431
|
+
id: z.ZodUUID;
|
|
1432
|
+
accountId: z.ZodUUID;
|
|
1433
|
+
reference: z.ZodNullable<z.ZodString>;
|
|
1434
|
+
entryCount: z.ZodNumber;
|
|
1435
|
+
createdAt: z.ZodPreprocess<z.ZodDate, Date>;
|
|
1436
|
+
counts: z.ZodObject<{
|
|
1437
|
+
queued: z.ZodNumber;
|
|
1438
|
+
sending: z.ZodNumber;
|
|
1439
|
+
sent: z.ZodNumber;
|
|
1440
|
+
failed: z.ZodNumber;
|
|
1441
|
+
cancelled: z.ZodNumber;
|
|
1442
|
+
}, z.core.$strip>;
|
|
1443
|
+
}, z.core.$strip>, import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, import("../errors.js").DeclaredErrors<{
|
|
1444
|
+
readonly invalid_input: "The request does not match the operation's input schema (a malformed body included); data.issues names each problem.";
|
|
1445
|
+
readonly unauthenticated: "No usable credential: none was sent, or it is malformed, unknown, revoked or an expired account token.";
|
|
1446
|
+
readonly api_key_expired: "The API key is past its expiry (or the grace of the rotation that replaced it).";
|
|
1447
|
+
readonly missing_scope: "The API key lacks the scope the operation needs.";
|
|
1448
|
+
readonly role_forbidden: "The member's role does not allow the operation.";
|
|
1449
|
+
readonly account_token_forbidden: "An account token called an operation account tokens cannot call.";
|
|
1450
|
+
readonly account_scope_forbidden: "A credential limited to specific accounts called an operation that reaches beyond them.";
|
|
1451
|
+
readonly mcp_only_key: "An MCP-only key (minted for an end user's MCP client) was used outside the MCP server.";
|
|
1452
|
+
readonly rate_limited: "The tenant used up its plan's request rate; Retry-After says when the window ends.";
|
|
1453
|
+
readonly too_many_requests: "The credential has too many requests in flight at once; retry after Retry-After.";
|
|
1454
|
+
readonly overloaded: "The API is shedding load; retry after Retry-After.";
|
|
1455
|
+
readonly payload_too_large: "The request body is larger than the API accepts.";
|
|
1456
|
+
readonly internal_error: "An unexpected failure on our side.";
|
|
1457
|
+
readonly invalid_idempotency_key: "POST only: the Idempotency-Key header is not 1 to 255 printable ASCII characters.";
|
|
1458
|
+
readonly idempotency_key_reused: "POST only: the Idempotency-Key was used in the last 24 hours with another method, path or body.";
|
|
1459
|
+
readonly idempotency_key_in_progress: "POST only: the request first sent with this Idempotency-Key has not been answered yet.";
|
|
1460
|
+
}>>, {
|
|
1461
|
+
mail_merge_not_found: {
|
|
1462
|
+
status: 404;
|
|
1463
|
+
message: string;
|
|
1464
|
+
};
|
|
1465
|
+
mail_disabled: {
|
|
1466
|
+
status: 409;
|
|
1467
|
+
message: string;
|
|
1468
|
+
};
|
|
1469
|
+
account_not_found: {
|
|
1470
|
+
status: 404;
|
|
1471
|
+
message: string;
|
|
1472
|
+
};
|
|
1473
|
+
plan_module_unavailable: {
|
|
1474
|
+
status: 403;
|
|
1475
|
+
message: string;
|
|
1476
|
+
};
|
|
1477
|
+
}>, Record<never, never>>;
|
|
1478
|
+
cancel: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
1479
|
+
accountId: z.ZodUUID;
|
|
1480
|
+
mailMergeId: z.ZodUUID;
|
|
1481
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1482
|
+
cancelled: z.ZodNumber;
|
|
1483
|
+
}, z.core.$strip>, import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, import("../errors.js").DeclaredErrors<{
|
|
1484
|
+
readonly invalid_input: "The request does not match the operation's input schema (a malformed body included); data.issues names each problem.";
|
|
1485
|
+
readonly unauthenticated: "No usable credential: none was sent, or it is malformed, unknown, revoked or an expired account token.";
|
|
1486
|
+
readonly api_key_expired: "The API key is past its expiry (or the grace of the rotation that replaced it).";
|
|
1487
|
+
readonly missing_scope: "The API key lacks the scope the operation needs.";
|
|
1488
|
+
readonly role_forbidden: "The member's role does not allow the operation.";
|
|
1489
|
+
readonly account_token_forbidden: "An account token called an operation account tokens cannot call.";
|
|
1490
|
+
readonly account_scope_forbidden: "A credential limited to specific accounts called an operation that reaches beyond them.";
|
|
1491
|
+
readonly mcp_only_key: "An MCP-only key (minted for an end user's MCP client) was used outside the MCP server.";
|
|
1492
|
+
readonly rate_limited: "The tenant used up its plan's request rate; Retry-After says when the window ends.";
|
|
1493
|
+
readonly too_many_requests: "The credential has too many requests in flight at once; retry after Retry-After.";
|
|
1494
|
+
readonly overloaded: "The API is shedding load; retry after Retry-After.";
|
|
1495
|
+
readonly payload_too_large: "The request body is larger than the API accepts.";
|
|
1496
|
+
readonly internal_error: "An unexpected failure on our side.";
|
|
1497
|
+
readonly invalid_idempotency_key: "POST only: the Idempotency-Key header is not 1 to 255 printable ASCII characters.";
|
|
1498
|
+
readonly idempotency_key_reused: "POST only: the Idempotency-Key was used in the last 24 hours with another method, path or body.";
|
|
1499
|
+
readonly idempotency_key_in_progress: "POST only: the request first sent with this Idempotency-Key has not been answered yet.";
|
|
1500
|
+
}>>, {
|
|
1501
|
+
mail_merge_not_found: {
|
|
1502
|
+
status: 404;
|
|
1503
|
+
message: string;
|
|
1504
|
+
};
|
|
1505
|
+
mail_disabled: {
|
|
1506
|
+
status: 409;
|
|
1507
|
+
message: string;
|
|
1508
|
+
};
|
|
1509
|
+
account_not_found: {
|
|
1510
|
+
status: 404;
|
|
1511
|
+
message: string;
|
|
1512
|
+
};
|
|
1513
|
+
plan_module_unavailable: {
|
|
1514
|
+
status: 403;
|
|
1515
|
+
message: string;
|
|
1516
|
+
};
|
|
1517
|
+
}>, Record<never, never>>;
|
|
1239
1518
|
};
|