samva 0.19.0 → 0.20.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (44) hide show
  1. package/dist/client/sdk.gen.d.ts +56 -14
  2. package/dist/client/sdk.gen.js +186 -34
  3. package/dist/client/types.gen.d.ts +325 -65
  4. package/dist/effect/campaigns.d.ts +35 -3
  5. package/dist/effect/contacts.d.ts +24 -4
  6. package/dist/effect/email.d.ts +22 -6
  7. package/dist/effect/errors.d.ts +1 -1
  8. package/dist/effect/errors.js +2 -2
  9. package/dist/effect/generated/campaigns.d.ts +73 -4
  10. package/dist/effect/generated/campaigns.js +18 -1
  11. package/dist/effect/generated/contacts.d.ts +131 -1
  12. package/dist/effect/generated/contacts.js +17 -2
  13. package/dist/effect/generated/email.d.ts +162 -1
  14. package/dist/effect/generated/email.js +31 -11
  15. package/dist/effect/generated/journeys.d.ts +13 -61
  16. package/dist/effect/generated/journeys.js +5 -5
  17. package/dist/effect/generated/mailboxes.d.ts +274 -78
  18. package/dist/effect/generated/mailboxes.js +28 -20
  19. package/dist/effect/generated/messages.d.ts +4 -1
  20. package/dist/effect/generated/messages.js +2 -1
  21. package/dist/effect/generated/namespaces.d.ts +432 -2
  22. package/dist/effect/generated/namespaces.js +91 -4
  23. package/dist/effect/generated/shared.d.ts +34 -29
  24. package/dist/effect/generated/shared.js +25 -22
  25. package/dist/effect/generated/templates.d.ts +44 -1
  26. package/dist/effect/generated/templates.js +9 -3
  27. package/dist/effect/generated-metadata.d.ts +15 -4
  28. package/dist/effect/generated-metadata.js +3 -4
  29. package/dist/effect/index.js +2 -2
  30. package/dist/effect/journeys.d.ts +4 -4
  31. package/dist/effect/mailboxes.d.ts +11 -11
  32. package/dist/effect/messages.d.ts +3 -0
  33. package/dist/effect/namespaces.d.ts +29 -0
  34. package/dist/effect/namespaces.js +7 -1
  35. package/dist/effect/templates.d.ts +12 -1
  36. package/dist/index.js +2 -2
  37. package/dist/package.js +1 -1
  38. package/dist/promises/errors.gen.d.ts +2 -12
  39. package/dist/promises/errors.gen.js +1 -26
  40. package/dist/promises/index.js +2 -2
  41. package/dist/promises/types.gen.d.ts +1 -1
  42. package/dist/service-map.d.ts +15 -0
  43. package/dist/service-map.js +16 -0
  44. package/package.json +2 -2
@@ -1,7 +1,7 @@
1
1
  import type * as EffectBrand from "effect/Brand";
2
2
  import { HttpApiEndpoint, HttpApiGroup } from "effect/http-api";
3
3
  import * as Schema from "effect/Schema";
4
- import { ApiKeySecurityMiddleware, AttachmentId, BillingProviderError, ConflictError, ConversationId, CreateMailboxEndpointPayload, Cursor, EmailAttachment, ForbiddenError, GatewayTimeoutError, InternalError, JsonValue, MailboxActionDecision, MailboxActionId, MailboxChannel, MailboxChannelUnsupportedError, MailboxDraftId, MailboxEndpointId, MailboxGrantRole, MailboxId, MailboxLabelId, MailboxMetadata, MailboxMetadataPatch, MailboxPolicyId, MailboxPolicyOutcomeKind, MailboxSendConflictError, MailboxSendMode, MailboxSendOutcome, MailboxSendReceipt, MailboxSendRefusedError, MailboxThreadFolder, MailboxThreadId, MailboxThreadPriority, MediaId, MessageId, NamespaceId, OnboardingReviewRequiredError, PaymentRequiredError, RateLimitedError, ResourceNotFoundError, SenderNotReadyError, SkippedRecipient, SuccessResponse, UnauthorizedError, UserId, ValidationError } from "./shared";
4
+ import { ApiKeySecurityMiddleware, AttachmentId, BillingProviderError, ConflictError, ConversationId, CreateMailboxEndpointPayload, Cursor, EmailAttachment, FlagDisabledError, ForbiddenError, GatewayTimeoutError, InternalError, JsonValue, MailboxActionDecision, MailboxActionId, MailboxChannel, MailboxDraftId, MailboxEndpointId, MailboxGrantRole, MailboxId, MailboxLabelId, MailboxMetadata, MailboxMetadataPatch, MailboxPolicyId, MailboxPolicyOutcomeKind, MailboxSendConflictError, MailboxSendMode, MailboxSendOutcome, MailboxSendReceipt, MailboxSendRefusedError, MailboxThreadFolder, MailboxThreadId, MailboxThreadPriority, MediaId, MessageId, NamespaceId, OnboardingReviewRequiredError, PaymentRequiredError, RateLimitedError, ResourceNotFoundError, SenderNotReadyError, SkippedRecipient, SuccessResponse, UnauthorizedError, UserId, ValidationError } from "./shared";
5
5
  export type MailboxStatus = "active" | "paused";
6
6
  export declare const MailboxStatus: Schema.Union<readonly [Schema.Literal<"active">, Schema.Literal<"paused">]>;
7
7
  export type MailboxActionResolution = {
@@ -1823,14 +1823,14 @@ export type MailboxesCreate401 = UnauthorizedError;
1823
1823
  export declare const MailboxesCreate401: typeof UnauthorizedError;
1824
1824
  export type MailboxesCreate402 = PaymentRequiredError;
1825
1825
  export declare const MailboxesCreate402: typeof PaymentRequiredError;
1826
- export type MailboxesCreate403 = ForbiddenError;
1827
- export declare const MailboxesCreate403: typeof ForbiddenError;
1826
+ export type MailboxesCreate403 = FlagDisabledError | ForbiddenError;
1827
+ export declare const MailboxesCreate403: Schema.Union<readonly [typeof FlagDisabledError, typeof ForbiddenError]>;
1828
1828
  export type MailboxesCreate404 = ResourceNotFoundError;
1829
1829
  export declare const MailboxesCreate404: typeof ResourceNotFoundError;
1830
1830
  export type MailboxesCreate409 = ConflictError;
1831
1831
  export declare const MailboxesCreate409: typeof ConflictError;
1832
- export type MailboxesCreate422 = ValidationError | MailboxChannelUnsupportedError;
1833
- export declare const MailboxesCreate422: Schema.Union<readonly [typeof ValidationError, typeof MailboxChannelUnsupportedError]>;
1832
+ export type MailboxesCreate422 = ValidationError;
1833
+ export declare const MailboxesCreate422: typeof ValidationError;
1834
1834
  export type MailboxesCreate500 = InternalError;
1835
1835
  export declare const MailboxesCreate500: typeof InternalError;
1836
1836
  export type MailboxesCreate502 = BillingProviderError;
@@ -2642,14 +2642,14 @@ export type MailboxesApproveAction401 = UnauthorizedError;
2642
2642
  export declare const MailboxesApproveAction401: typeof UnauthorizedError;
2643
2643
  export type MailboxesApproveAction402 = PaymentRequiredError;
2644
2644
  export declare const MailboxesApproveAction402: typeof PaymentRequiredError;
2645
- export type MailboxesApproveAction403 = MailboxSendRefusedError | OnboardingReviewRequiredError | ForbiddenError;
2646
- export declare const MailboxesApproveAction403: Schema.Union<readonly [typeof MailboxSendRefusedError, typeof OnboardingReviewRequiredError, typeof ForbiddenError]>;
2645
+ export type MailboxesApproveAction403 = FlagDisabledError | MailboxSendRefusedError | OnboardingReviewRequiredError | ForbiddenError;
2646
+ export declare const MailboxesApproveAction403: Schema.Union<readonly [typeof FlagDisabledError, typeof MailboxSendRefusedError, typeof OnboardingReviewRequiredError, typeof ForbiddenError]>;
2647
2647
  export type MailboxesApproveAction404 = ResourceNotFoundError;
2648
2648
  export declare const MailboxesApproveAction404: typeof ResourceNotFoundError;
2649
2649
  export type MailboxesApproveAction409 = MailboxSendConflictError | ConflictError;
2650
2650
  export declare const MailboxesApproveAction409: Schema.Union<readonly [typeof MailboxSendConflictError, typeof ConflictError]>;
2651
- export type MailboxesApproveAction422 = MailboxChannelUnsupportedError | ValidationError;
2652
- export declare const MailboxesApproveAction422: Schema.Union<readonly [typeof MailboxChannelUnsupportedError, typeof ValidationError]>;
2651
+ export type MailboxesApproveAction422 = ValidationError;
2652
+ export declare const MailboxesApproveAction422: typeof ValidationError;
2653
2653
  export type MailboxesApproveAction429 = RateLimitedError;
2654
2654
  export declare const MailboxesApproveAction429: typeof RateLimitedError;
2655
2655
  export type MailboxesApproveAction500 = InternalError;
@@ -2808,14 +2808,14 @@ export type MailboxesCancelAction401 = UnauthorizedError;
2808
2808
  export declare const MailboxesCancelAction401: typeof UnauthorizedError;
2809
2809
  export type MailboxesCancelAction402 = PaymentRequiredError;
2810
2810
  export declare const MailboxesCancelAction402: typeof PaymentRequiredError;
2811
- export type MailboxesCancelAction403 = MailboxSendRefusedError | OnboardingReviewRequiredError | ForbiddenError;
2812
- export declare const MailboxesCancelAction403: Schema.Union<readonly [typeof MailboxSendRefusedError, typeof OnboardingReviewRequiredError, typeof ForbiddenError]>;
2811
+ export type MailboxesCancelAction403 = FlagDisabledError | MailboxSendRefusedError | OnboardingReviewRequiredError | ForbiddenError;
2812
+ export declare const MailboxesCancelAction403: Schema.Union<readonly [typeof FlagDisabledError, typeof MailboxSendRefusedError, typeof OnboardingReviewRequiredError, typeof ForbiddenError]>;
2813
2813
  export type MailboxesCancelAction404 = ResourceNotFoundError;
2814
2814
  export declare const MailboxesCancelAction404: typeof ResourceNotFoundError;
2815
2815
  export type MailboxesCancelAction409 = MailboxSendConflictError | ConflictError;
2816
2816
  export declare const MailboxesCancelAction409: Schema.Union<readonly [typeof MailboxSendConflictError, typeof ConflictError]>;
2817
- export type MailboxesCancelAction422 = MailboxChannelUnsupportedError | ValidationError;
2818
- export declare const MailboxesCancelAction422: Schema.Union<readonly [typeof MailboxChannelUnsupportedError, typeof ValidationError]>;
2817
+ export type MailboxesCancelAction422 = ValidationError;
2818
+ export declare const MailboxesCancelAction422: typeof ValidationError;
2819
2819
  export type MailboxesCancelAction429 = RateLimitedError;
2820
2820
  export declare const MailboxesCancelAction429: typeof RateLimitedError;
2821
2821
  export type MailboxesCancelAction500 = InternalError;
@@ -3158,14 +3158,14 @@ export type MailboxesRetryAction401 = UnauthorizedError;
3158
3158
  export declare const MailboxesRetryAction401: typeof UnauthorizedError;
3159
3159
  export type MailboxesRetryAction402 = PaymentRequiredError;
3160
3160
  export declare const MailboxesRetryAction402: typeof PaymentRequiredError;
3161
- export type MailboxesRetryAction403 = MailboxSendRefusedError | OnboardingReviewRequiredError | ForbiddenError;
3162
- export declare const MailboxesRetryAction403: Schema.Union<readonly [typeof MailboxSendRefusedError, typeof OnboardingReviewRequiredError, typeof ForbiddenError]>;
3161
+ export type MailboxesRetryAction403 = FlagDisabledError | MailboxSendRefusedError | OnboardingReviewRequiredError | ForbiddenError;
3162
+ export declare const MailboxesRetryAction403: Schema.Union<readonly [typeof FlagDisabledError, typeof MailboxSendRefusedError, typeof OnboardingReviewRequiredError, typeof ForbiddenError]>;
3163
3163
  export type MailboxesRetryAction404 = ResourceNotFoundError;
3164
3164
  export declare const MailboxesRetryAction404: typeof ResourceNotFoundError;
3165
3165
  export type MailboxesRetryAction409 = MailboxSendConflictError | ConflictError;
3166
3166
  export declare const MailboxesRetryAction409: Schema.Union<readonly [typeof MailboxSendConflictError, typeof ConflictError]>;
3167
- export type MailboxesRetryAction422 = MailboxChannelUnsupportedError | ValidationError;
3168
- export declare const MailboxesRetryAction422: Schema.Union<readonly [typeof MailboxChannelUnsupportedError, typeof ValidationError]>;
3167
+ export type MailboxesRetryAction422 = ValidationError;
3168
+ export declare const MailboxesRetryAction422: typeof ValidationError;
3169
3169
  export type MailboxesRetryAction429 = RateLimitedError;
3170
3170
  export declare const MailboxesRetryAction429: typeof RateLimitedError;
3171
3171
  export type MailboxesRetryAction500 = InternalError;
@@ -3336,8 +3336,8 @@ export type MailboxesCreateDraft403 = ForbiddenError;
3336
3336
  export declare const MailboxesCreateDraft403: typeof ForbiddenError;
3337
3337
  export type MailboxesCreateDraft404 = ResourceNotFoundError;
3338
3338
  export declare const MailboxesCreateDraft404: typeof ResourceNotFoundError;
3339
- export type MailboxesCreateDraft422 = MailboxChannelUnsupportedError | ValidationError;
3340
- export declare const MailboxesCreateDraft422: Schema.Union<readonly [typeof MailboxChannelUnsupportedError, typeof ValidationError]>;
3339
+ export type MailboxesCreateDraft422 = ValidationError;
3340
+ export declare const MailboxesCreateDraft422: typeof ValidationError;
3341
3341
  export type MailboxesCreateDraft500 = InternalError;
3342
3342
  export declare const MailboxesCreateDraft500: typeof InternalError;
3343
3343
  export type MailboxesCreateDraft504 = GatewayTimeoutError;
@@ -3640,14 +3640,14 @@ export type MailboxesSendDraft401 = UnauthorizedError;
3640
3640
  export declare const MailboxesSendDraft401: typeof UnauthorizedError;
3641
3641
  export type MailboxesSendDraft402 = PaymentRequiredError;
3642
3642
  export declare const MailboxesSendDraft402: typeof PaymentRequiredError;
3643
- export type MailboxesSendDraft403 = MailboxSendRefusedError | OnboardingReviewRequiredError | ForbiddenError;
3644
- export declare const MailboxesSendDraft403: Schema.Union<readonly [typeof MailboxSendRefusedError, typeof OnboardingReviewRequiredError, typeof ForbiddenError]>;
3643
+ export type MailboxesSendDraft403 = FlagDisabledError | MailboxSendRefusedError | OnboardingReviewRequiredError | ForbiddenError;
3644
+ export declare const MailboxesSendDraft403: Schema.Union<readonly [typeof FlagDisabledError, typeof MailboxSendRefusedError, typeof OnboardingReviewRequiredError, typeof ForbiddenError]>;
3645
3645
  export type MailboxesSendDraft404 = ResourceNotFoundError;
3646
3646
  export declare const MailboxesSendDraft404: typeof ResourceNotFoundError;
3647
3647
  export type MailboxesSendDraft409 = MailboxSendConflictError | ConflictError;
3648
3648
  export declare const MailboxesSendDraft409: Schema.Union<readonly [typeof MailboxSendConflictError, typeof ConflictError]>;
3649
- export type MailboxesSendDraft422 = MailboxChannelUnsupportedError | ValidationError;
3650
- export declare const MailboxesSendDraft422: Schema.Union<readonly [typeof MailboxChannelUnsupportedError, typeof ValidationError]>;
3649
+ export type MailboxesSendDraft422 = ValidationError;
3650
+ export declare const MailboxesSendDraft422: typeof ValidationError;
3651
3651
  export type MailboxesSendDraft429 = RateLimitedError;
3652
3652
  export declare const MailboxesSendDraft429: typeof RateLimitedError;
3653
3653
  export type MailboxesSendDraft500 = InternalError;
@@ -3698,14 +3698,14 @@ export declare const MailboxesCreateEndpoint201: Schema.Struct<{
3698
3698
  }>;
3699
3699
  export type MailboxesCreateEndpoint401 = UnauthorizedError;
3700
3700
  export declare const MailboxesCreateEndpoint401: typeof UnauthorizedError;
3701
- export type MailboxesCreateEndpoint403 = ForbiddenError;
3702
- export declare const MailboxesCreateEndpoint403: typeof ForbiddenError;
3701
+ export type MailboxesCreateEndpoint403 = FlagDisabledError | ForbiddenError;
3702
+ export declare const MailboxesCreateEndpoint403: Schema.Union<readonly [typeof FlagDisabledError, typeof ForbiddenError]>;
3703
3703
  export type MailboxesCreateEndpoint404 = ResourceNotFoundError;
3704
3704
  export declare const MailboxesCreateEndpoint404: typeof ResourceNotFoundError;
3705
3705
  export type MailboxesCreateEndpoint409 = ConflictError;
3706
3706
  export declare const MailboxesCreateEndpoint409: typeof ConflictError;
3707
- export type MailboxesCreateEndpoint422 = ValidationError | MailboxChannelUnsupportedError;
3708
- export declare const MailboxesCreateEndpoint422: Schema.Union<readonly [typeof ValidationError, typeof MailboxChannelUnsupportedError]>;
3707
+ export type MailboxesCreateEndpoint422 = ValidationError;
3708
+ export declare const MailboxesCreateEndpoint422: typeof ValidationError;
3709
3709
  export type MailboxesCreateEndpoint500 = InternalError;
3710
3710
  export declare const MailboxesCreateEndpoint500: typeof InternalError;
3711
3711
  export type MailboxesCreateEndpoint504 = GatewayTimeoutError;
@@ -4335,14 +4335,14 @@ export type MailboxesSendMessage401 = UnauthorizedError;
4335
4335
  export declare const MailboxesSendMessage401: typeof UnauthorizedError;
4336
4336
  export type MailboxesSendMessage402 = PaymentRequiredError;
4337
4337
  export declare const MailboxesSendMessage402: typeof PaymentRequiredError;
4338
- export type MailboxesSendMessage403 = MailboxSendRefusedError | OnboardingReviewRequiredError | ForbiddenError;
4339
- export declare const MailboxesSendMessage403: Schema.Union<readonly [typeof MailboxSendRefusedError, typeof OnboardingReviewRequiredError, typeof ForbiddenError]>;
4338
+ export type MailboxesSendMessage403 = FlagDisabledError | MailboxSendRefusedError | OnboardingReviewRequiredError | ForbiddenError;
4339
+ export declare const MailboxesSendMessage403: Schema.Union<readonly [typeof FlagDisabledError, typeof MailboxSendRefusedError, typeof OnboardingReviewRequiredError, typeof ForbiddenError]>;
4340
4340
  export type MailboxesSendMessage404 = ResourceNotFoundError;
4341
4341
  export declare const MailboxesSendMessage404: typeof ResourceNotFoundError;
4342
4342
  export type MailboxesSendMessage409 = MailboxSendConflictError | ConflictError;
4343
4343
  export declare const MailboxesSendMessage409: Schema.Union<readonly [typeof MailboxSendConflictError, typeof ConflictError]>;
4344
- export type MailboxesSendMessage422 = MailboxChannelUnsupportedError | ValidationError;
4345
- export declare const MailboxesSendMessage422: Schema.Union<readonly [typeof MailboxChannelUnsupportedError, typeof ValidationError]>;
4344
+ export type MailboxesSendMessage422 = ValidationError;
4345
+ export declare const MailboxesSendMessage422: typeof ValidationError;
4346
4346
  export type MailboxesSendMessage429 = RateLimitedError;
4347
4347
  export declare const MailboxesSendMessage429: typeof RateLimitedError;
4348
4348
  export type MailboxesSendMessage500 = InternalError;
@@ -4704,14 +4704,14 @@ export type MailboxesForward401 = UnauthorizedError;
4704
4704
  export declare const MailboxesForward401: typeof UnauthorizedError;
4705
4705
  export type MailboxesForward402 = PaymentRequiredError;
4706
4706
  export declare const MailboxesForward402: typeof PaymentRequiredError;
4707
- export type MailboxesForward403 = MailboxSendRefusedError | OnboardingReviewRequiredError | ForbiddenError;
4708
- export declare const MailboxesForward403: Schema.Union<readonly [typeof MailboxSendRefusedError, typeof OnboardingReviewRequiredError, typeof ForbiddenError]>;
4707
+ export type MailboxesForward403 = FlagDisabledError | MailboxSendRefusedError | OnboardingReviewRequiredError | ForbiddenError;
4708
+ export declare const MailboxesForward403: Schema.Union<readonly [typeof FlagDisabledError, typeof MailboxSendRefusedError, typeof OnboardingReviewRequiredError, typeof ForbiddenError]>;
4709
4709
  export type MailboxesForward404 = ResourceNotFoundError;
4710
4710
  export declare const MailboxesForward404: typeof ResourceNotFoundError;
4711
4711
  export type MailboxesForward409 = MailboxSendConflictError | ConflictError;
4712
4712
  export declare const MailboxesForward409: Schema.Union<readonly [typeof MailboxSendConflictError, typeof ConflictError]>;
4713
- export type MailboxesForward422 = MailboxChannelUnsupportedError | ValidationError;
4714
- export declare const MailboxesForward422: Schema.Union<readonly [typeof MailboxChannelUnsupportedError, typeof ValidationError]>;
4713
+ export type MailboxesForward422 = ValidationError;
4714
+ export declare const MailboxesForward422: typeof ValidationError;
4715
4715
  export type MailboxesForward429 = RateLimitedError;
4716
4716
  export declare const MailboxesForward429: typeof RateLimitedError;
4717
4717
  export type MailboxesForward500 = InternalError;
@@ -4962,14 +4962,14 @@ export type MailboxesReply401 = UnauthorizedError;
4962
4962
  export declare const MailboxesReply401: typeof UnauthorizedError;
4963
4963
  export type MailboxesReply402 = PaymentRequiredError;
4964
4964
  export declare const MailboxesReply402: typeof PaymentRequiredError;
4965
- export type MailboxesReply403 = MailboxSendRefusedError | OnboardingReviewRequiredError | ForbiddenError;
4966
- export declare const MailboxesReply403: Schema.Union<readonly [typeof MailboxSendRefusedError, typeof OnboardingReviewRequiredError, typeof ForbiddenError]>;
4965
+ export type MailboxesReply403 = FlagDisabledError | MailboxSendRefusedError | OnboardingReviewRequiredError | ForbiddenError;
4966
+ export declare const MailboxesReply403: Schema.Union<readonly [typeof FlagDisabledError, typeof MailboxSendRefusedError, typeof OnboardingReviewRequiredError, typeof ForbiddenError]>;
4967
4967
  export type MailboxesReply404 = ResourceNotFoundError;
4968
4968
  export declare const MailboxesReply404: typeof ResourceNotFoundError;
4969
4969
  export type MailboxesReply409 = MailboxSendConflictError | ConflictError;
4970
4970
  export declare const MailboxesReply409: Schema.Union<readonly [typeof MailboxSendConflictError, typeof ConflictError]>;
4971
- export type MailboxesReply422 = MailboxChannelUnsupportedError | ValidationError;
4972
- export declare const MailboxesReply422: Schema.Union<readonly [typeof MailboxChannelUnsupportedError, typeof ValidationError]>;
4971
+ export type MailboxesReply422 = ValidationError;
4972
+ export declare const MailboxesReply422: typeof ValidationError;
4973
4973
  export type MailboxesReply429 = RateLimitedError;
4974
4974
  export declare const MailboxesReply429: typeof RateLimitedError;
4975
4975
  export type MailboxesReply500 = InternalError;
@@ -5156,14 +5156,14 @@ export type MailboxesReplyAll401 = UnauthorizedError;
5156
5156
  export declare const MailboxesReplyAll401: typeof UnauthorizedError;
5157
5157
  export type MailboxesReplyAll402 = PaymentRequiredError;
5158
5158
  export declare const MailboxesReplyAll402: typeof PaymentRequiredError;
5159
- export type MailboxesReplyAll403 = MailboxSendRefusedError | OnboardingReviewRequiredError | ForbiddenError;
5160
- export declare const MailboxesReplyAll403: Schema.Union<readonly [typeof MailboxSendRefusedError, typeof OnboardingReviewRequiredError, typeof ForbiddenError]>;
5159
+ export type MailboxesReplyAll403 = FlagDisabledError | MailboxSendRefusedError | OnboardingReviewRequiredError | ForbiddenError;
5160
+ export declare const MailboxesReplyAll403: Schema.Union<readonly [typeof FlagDisabledError, typeof MailboxSendRefusedError, typeof OnboardingReviewRequiredError, typeof ForbiddenError]>;
5161
5161
  export type MailboxesReplyAll404 = ResourceNotFoundError;
5162
5162
  export declare const MailboxesReplyAll404: typeof ResourceNotFoundError;
5163
5163
  export type MailboxesReplyAll409 = MailboxSendConflictError | ConflictError;
5164
5164
  export declare const MailboxesReplyAll409: Schema.Union<readonly [typeof MailboxSendConflictError, typeof ConflictError]>;
5165
- export type MailboxesReplyAll422 = MailboxChannelUnsupportedError | ValidationError;
5166
- export declare const MailboxesReplyAll422: Schema.Union<readonly [typeof MailboxChannelUnsupportedError, typeof ValidationError]>;
5165
+ export type MailboxesReplyAll422 = ValidationError;
5166
+ export declare const MailboxesReplyAll422: typeof ValidationError;
5167
5167
  export type MailboxesReplyAll429 = RateLimitedError;
5168
5168
  export declare const MailboxesReplyAll429: typeof RateLimitedError;
5169
5169
  export type MailboxesReplyAll500 = InternalError;
@@ -6256,7 +6256,7 @@ declare const MailboxesGroup_base: HttpApiGroup.HttpApiGroup<"Mailboxes", HttpAp
6256
6256
  readonly updatedAt: Schema.String;
6257
6257
  readonly type: Schema.Union<readonly [Schema.Literal<"updateDraft">, Schema.Literal<"createNote">, Schema.Literal<"assignThread">, Schema.Literal<"changeThreadState">, Schema.Literal<"call">, Schema.Literal<"extensionRequest">]>;
6258
6258
  readonly state: Schema.Union<readonly [Schema.Literal<"proposed">, Schema.Literal<"allowed">, Schema.Literal<"approvalRequired">, Schema.Literal<"policyDenied">, Schema.Literal<"approved">, Schema.Literal<"approvalDenied">, Schema.Literal<"executing">, Schema.Literal<"executed">, Schema.Literal<"failed">]>;
6259
- }>]>>, Schema.toCodecJson<Schema.Union<readonly [typeof MailboxChannelUnsupportedError, typeof ValidationError]> | Schema.Union<readonly [typeof MailboxSendConflictError, typeof ConflictError]> | Schema.Union<readonly [typeof MailboxSendRefusedError, typeof OnboardingReviewRequiredError, typeof ForbiddenError]> | Schema.decodeTo<Schema.declareConstructor<BillingProviderError, {
6259
+ }>]>>, Schema.toCodecJson<Schema.Union<readonly [typeof MailboxSendConflictError, typeof ConflictError]> | Schema.Union<readonly [typeof FlagDisabledError, typeof MailboxSendRefusedError, typeof OnboardingReviewRequiredError, typeof ForbiddenError]> | Schema.decodeTo<Schema.declareConstructor<BillingProviderError, {
6260
6260
  readonly _tag: "BillingProviderError";
6261
6261
  readonly message: string;
6262
6262
  }, readonly [Schema.Struct<{
@@ -6376,6 +6376,26 @@ declare const MailboxesGroup_base: HttpApiGroup.HttpApiGroup<"Mailboxes", HttpAp
6376
6376
  }>, Schema.Struct<{
6377
6377
  readonly _tag: Schema.tag<"UnauthorizedError">;
6378
6378
  readonly message: Schema.String;
6379
+ }>, never, never> | Schema.decodeTo<Schema.declareConstructor<ValidationError, {
6380
+ readonly _tag: "ValidationError";
6381
+ readonly message: string;
6382
+ readonly fields?: {
6383
+ readonly [x: string]: readonly string[];
6384
+ } | null;
6385
+ }, readonly [Schema.Struct<{
6386
+ readonly _tag: Schema.tag<"ValidationError">;
6387
+ readonly message: Schema.String;
6388
+ readonly fields: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.$Array<Schema.String>>, Schema.Null]>>;
6389
+ }>], {
6390
+ readonly _tag: "ValidationError";
6391
+ readonly message: string;
6392
+ readonly fields?: {
6393
+ readonly [x: string]: readonly string[];
6394
+ } | null;
6395
+ }>, Schema.Struct<{
6396
+ readonly _tag: Schema.tag<"ValidationError">;
6397
+ readonly message: Schema.String;
6398
+ readonly fields: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.$Array<Schema.String>>, Schema.Null]>>;
6379
6399
  }>, never, never> | typeof InternalError>, ApiKeySecurityMiddleware, never> | HttpApiEndpoint.HttpApiEndpoint<"mailboxesCancelAction", "POST", "/v1/mailboxes/:id/actions/:actionId/cancel", Schema.toCodecStringTree<Schema.Struct<{
6380
6400
  readonly id: Schema.brand<Schema.String, "MailboxId">;
6381
6401
  readonly actionId: Schema.brand<Schema.String, "MailboxActionId">;
@@ -6511,7 +6531,7 @@ declare const MailboxesGroup_base: HttpApiGroup.HttpApiGroup<"Mailboxes", HttpAp
6511
6531
  }>, Schema.Null]>;
6512
6532
  readonly createdAt: Schema.String;
6513
6533
  readonly updatedAt: Schema.String;
6514
- }>>, Schema.toCodecJson<Schema.Union<readonly [typeof MailboxChannelUnsupportedError, typeof ValidationError]> | Schema.Union<readonly [typeof MailboxSendConflictError, typeof ConflictError]> | Schema.Union<readonly [typeof MailboxSendRefusedError, typeof OnboardingReviewRequiredError, typeof ForbiddenError]> | Schema.decodeTo<Schema.declareConstructor<BillingProviderError, {
6534
+ }>>, Schema.toCodecJson<Schema.Union<readonly [typeof MailboxSendConflictError, typeof ConflictError]> | Schema.Union<readonly [typeof FlagDisabledError, typeof MailboxSendRefusedError, typeof OnboardingReviewRequiredError, typeof ForbiddenError]> | Schema.decodeTo<Schema.declareConstructor<BillingProviderError, {
6515
6535
  readonly _tag: "BillingProviderError";
6516
6536
  readonly message: string;
6517
6537
  }, readonly [Schema.Struct<{
@@ -6631,6 +6651,26 @@ declare const MailboxesGroup_base: HttpApiGroup.HttpApiGroup<"Mailboxes", HttpAp
6631
6651
  }>, Schema.Struct<{
6632
6652
  readonly _tag: Schema.tag<"UnauthorizedError">;
6633
6653
  readonly message: Schema.String;
6654
+ }>, never, never> | Schema.decodeTo<Schema.declareConstructor<ValidationError, {
6655
+ readonly _tag: "ValidationError";
6656
+ readonly message: string;
6657
+ readonly fields?: {
6658
+ readonly [x: string]: readonly string[];
6659
+ } | null;
6660
+ }, readonly [Schema.Struct<{
6661
+ readonly _tag: Schema.tag<"ValidationError">;
6662
+ readonly message: Schema.String;
6663
+ readonly fields: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.$Array<Schema.String>>, Schema.Null]>>;
6664
+ }>], {
6665
+ readonly _tag: "ValidationError";
6666
+ readonly message: string;
6667
+ readonly fields?: {
6668
+ readonly [x: string]: readonly string[];
6669
+ } | null;
6670
+ }>, Schema.Struct<{
6671
+ readonly _tag: Schema.tag<"ValidationError">;
6672
+ readonly message: Schema.String;
6673
+ readonly fields: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.$Array<Schema.String>>, Schema.Null]>>;
6634
6674
  }>, never, never> | typeof InternalError>, ApiKeySecurityMiddleware, never> | HttpApiEndpoint.HttpApiEndpoint<"mailboxesCopyMessageAttachment", "POST", "/v1/mailboxes/:id/messages/:messageId/attachments/:attachmentId/copy", Schema.toCodecStringTree<Schema.Struct<{
6635
6675
  readonly id: Schema.brand<Schema.String, "MailboxId">;
6636
6676
  readonly messageId: Schema.brand<Schema.String, "MessageId">;
@@ -6771,7 +6811,7 @@ declare const MailboxesGroup_base: HttpApiGroup.HttpApiGroup<"Mailboxes", HttpAp
6771
6811
  readonly domainId: Schema.Union<readonly [Schema.String, Schema.Null]>;
6772
6812
  }>>;
6773
6813
  readonly updatedAt: Schema.String;
6774
- }>>, Schema.toCodecJson<Schema.Union<readonly [typeof ValidationError, typeof MailboxChannelUnsupportedError]> | Schema.decodeTo<Schema.declareConstructor<BillingProviderError, {
6814
+ }>>, Schema.toCodecJson<Schema.Union<readonly [typeof FlagDisabledError, typeof ForbiddenError]> | Schema.decodeTo<Schema.declareConstructor<BillingProviderError, {
6775
6815
  readonly _tag: "BillingProviderError";
6776
6816
  readonly message: string;
6777
6817
  }, readonly [Schema.Struct<{
@@ -6803,18 +6843,6 @@ declare const MailboxesGroup_base: HttpApiGroup.HttpApiGroup<"Mailboxes", HttpAp
6803
6843
  readonly message: Schema.String;
6804
6844
  readonly resource: Schema.String;
6805
6845
  readonly id: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
6806
- }>, never, never> | Schema.decodeTo<Schema.declareConstructor<ForbiddenError, {
6807
- readonly _tag: "ForbiddenError";
6808
- readonly message: string;
6809
- }, readonly [Schema.Struct<{
6810
- readonly _tag: Schema.tag<"ForbiddenError">;
6811
- readonly message: Schema.String;
6812
- }>], {
6813
- readonly _tag: "ForbiddenError";
6814
- readonly message: string;
6815
- }>, Schema.Struct<{
6816
- readonly _tag: Schema.tag<"ForbiddenError">;
6817
- readonly message: Schema.String;
6818
6846
  }>, never, never> | Schema.decodeTo<Schema.declareConstructor<GatewayTimeoutError, {
6819
6847
  readonly _tag: "GatewayTimeoutError";
6820
6848
  readonly message: string;
@@ -6887,6 +6915,26 @@ declare const MailboxesGroup_base: HttpApiGroup.HttpApiGroup<"Mailboxes", HttpAp
6887
6915
  }>, Schema.Struct<{
6888
6916
  readonly _tag: Schema.tag<"UnauthorizedError">;
6889
6917
  readonly message: Schema.String;
6918
+ }>, never, never> | Schema.decodeTo<Schema.declareConstructor<ValidationError, {
6919
+ readonly _tag: "ValidationError";
6920
+ readonly message: string;
6921
+ readonly fields?: {
6922
+ readonly [x: string]: readonly string[];
6923
+ } | null;
6924
+ }, readonly [Schema.Struct<{
6925
+ readonly _tag: Schema.tag<"ValidationError">;
6926
+ readonly message: Schema.String;
6927
+ readonly fields: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.$Array<Schema.String>>, Schema.Null]>>;
6928
+ }>], {
6929
+ readonly _tag: "ValidationError";
6930
+ readonly message: string;
6931
+ readonly fields?: {
6932
+ readonly [x: string]: readonly string[];
6933
+ } | null;
6934
+ }>, Schema.Struct<{
6935
+ readonly _tag: Schema.tag<"ValidationError">;
6936
+ readonly message: Schema.String;
6937
+ readonly fields: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.$Array<Schema.String>>, Schema.Null]>>;
6890
6938
  }>, never, never> | typeof InternalError>, ApiKeySecurityMiddleware, never> | HttpApiEndpoint.HttpApiEndpoint<"mailboxesCreateDraft", "POST", "/v1/mailboxes/:id/drafts", Schema.toCodecStringTree<Schema.Struct<{
6891
6939
  readonly id: Schema.brand<Schema.String, "MailboxId">;
6892
6940
  }>>, never, Schema.toCodecJson<Schema.Struct<{
@@ -6931,7 +6979,7 @@ declare const MailboxesGroup_base: HttpApiGroup.HttpApiGroup<"Mailboxes", HttpAp
6931
6979
  readonly contentType: Schema.String;
6932
6980
  readonly size: Schema.Finite;
6933
6981
  }>>;
6934
- }>>, Schema.toCodecJson<Schema.Union<readonly [typeof MailboxChannelUnsupportedError, typeof ValidationError]> | Schema.decodeTo<Schema.declareConstructor<ForbiddenError, {
6982
+ }>>, Schema.toCodecJson<Schema.decodeTo<Schema.declareConstructor<ForbiddenError, {
6935
6983
  readonly _tag: "ForbiddenError";
6936
6984
  readonly message: string;
6937
6985
  }, readonly [Schema.Struct<{
@@ -6991,6 +7039,26 @@ declare const MailboxesGroup_base: HttpApiGroup.HttpApiGroup<"Mailboxes", HttpAp
6991
7039
  }>, Schema.Struct<{
6992
7040
  readonly _tag: Schema.tag<"UnauthorizedError">;
6993
7041
  readonly message: Schema.String;
7042
+ }>, never, never> | Schema.decodeTo<Schema.declareConstructor<ValidationError, {
7043
+ readonly _tag: "ValidationError";
7044
+ readonly message: string;
7045
+ readonly fields?: {
7046
+ readonly [x: string]: readonly string[];
7047
+ } | null;
7048
+ }, readonly [Schema.Struct<{
7049
+ readonly _tag: Schema.tag<"ValidationError">;
7050
+ readonly message: Schema.String;
7051
+ readonly fields: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.$Array<Schema.String>>, Schema.Null]>>;
7052
+ }>], {
7053
+ readonly _tag: "ValidationError";
7054
+ readonly message: string;
7055
+ readonly fields?: {
7056
+ readonly [x: string]: readonly string[];
7057
+ } | null;
7058
+ }>, Schema.Struct<{
7059
+ readonly _tag: Schema.tag<"ValidationError">;
7060
+ readonly message: Schema.String;
7061
+ readonly fields: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.$Array<Schema.String>>, Schema.Null]>>;
6994
7062
  }>, never, never> | typeof InternalError>, ApiKeySecurityMiddleware, never> | HttpApiEndpoint.HttpApiEndpoint<"mailboxesCreateEndpoint", "POST", "/v1/mailboxes/:id/endpoints", Schema.toCodecStringTree<Schema.Struct<{
6995
7063
  readonly id: Schema.brand<Schema.String, "MailboxId">;
6996
7064
  }>>, never, Schema.toCodecJson<Schema.Struct<{
@@ -7017,7 +7085,7 @@ declare const MailboxesGroup_base: HttpApiGroup.HttpApiGroup<"Mailboxes", HttpAp
7017
7085
  readonly domainId: Schema.Union<readonly [Schema.String, Schema.Null]>;
7018
7086
  }>>;
7019
7087
  readonly updatedAt: Schema.String;
7020
- }>>, Schema.toCodecJson<Schema.Union<readonly [typeof ValidationError, typeof MailboxChannelUnsupportedError]> | Schema.decodeTo<Schema.declareConstructor<ConflictError, {
7088
+ }>>, Schema.toCodecJson<Schema.Union<readonly [typeof FlagDisabledError, typeof ForbiddenError]> | Schema.decodeTo<Schema.declareConstructor<ConflictError, {
7021
7089
  readonly _tag: "ConflictError";
7022
7090
  readonly message: string;
7023
7091
  readonly resource: string;
@@ -7037,18 +7105,6 @@ declare const MailboxesGroup_base: HttpApiGroup.HttpApiGroup<"Mailboxes", HttpAp
7037
7105
  readonly message: Schema.String;
7038
7106
  readonly resource: Schema.String;
7039
7107
  readonly id: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
7040
- }>, never, never> | Schema.decodeTo<Schema.declareConstructor<ForbiddenError, {
7041
- readonly _tag: "ForbiddenError";
7042
- readonly message: string;
7043
- }, readonly [Schema.Struct<{
7044
- readonly _tag: Schema.tag<"ForbiddenError">;
7045
- readonly message: Schema.String;
7046
- }>], {
7047
- readonly _tag: "ForbiddenError";
7048
- readonly message: string;
7049
- }>, Schema.Struct<{
7050
- readonly _tag: Schema.tag<"ForbiddenError">;
7051
- readonly message: Schema.String;
7052
7108
  }>, never, never> | Schema.decodeTo<Schema.declareConstructor<GatewayTimeoutError, {
7053
7109
  readonly _tag: "GatewayTimeoutError";
7054
7110
  readonly message: string;
@@ -7097,6 +7153,26 @@ declare const MailboxesGroup_base: HttpApiGroup.HttpApiGroup<"Mailboxes", HttpAp
7097
7153
  }>, Schema.Struct<{
7098
7154
  readonly _tag: Schema.tag<"UnauthorizedError">;
7099
7155
  readonly message: Schema.String;
7156
+ }>, never, never> | Schema.decodeTo<Schema.declareConstructor<ValidationError, {
7157
+ readonly _tag: "ValidationError";
7158
+ readonly message: string;
7159
+ readonly fields?: {
7160
+ readonly [x: string]: readonly string[];
7161
+ } | null;
7162
+ }, readonly [Schema.Struct<{
7163
+ readonly _tag: Schema.tag<"ValidationError">;
7164
+ readonly message: Schema.String;
7165
+ readonly fields: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.$Array<Schema.String>>, Schema.Null]>>;
7166
+ }>], {
7167
+ readonly _tag: "ValidationError";
7168
+ readonly message: string;
7169
+ readonly fields?: {
7170
+ readonly [x: string]: readonly string[];
7171
+ } | null;
7172
+ }>, Schema.Struct<{
7173
+ readonly _tag: Schema.tag<"ValidationError">;
7174
+ readonly message: Schema.String;
7175
+ readonly fields: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.$Array<Schema.String>>, Schema.Null]>>;
7100
7176
  }>, never, never> | typeof InternalError>, ApiKeySecurityMiddleware, never> | HttpApiEndpoint.HttpApiEndpoint<"mailboxesCreateGrant", "POST", "/v1/mailboxes/:id/grants", Schema.toCodecStringTree<Schema.Struct<{
7101
7177
  readonly id: Schema.brand<Schema.String, "MailboxId">;
7102
7178
  }>>, never, Schema.toCodecJson<Schema.Struct<{
@@ -8400,7 +8476,7 @@ declare const MailboxesGroup_base: HttpApiGroup.HttpApiGroup<"Mailboxes", HttpAp
8400
8476
  }>, Schema.Null]>;
8401
8477
  readonly createdAt: Schema.String;
8402
8478
  readonly updatedAt: Schema.String;
8403
- }>>, Schema.toCodecJson<Schema.Union<readonly [typeof MailboxChannelUnsupportedError, typeof ValidationError]> | Schema.Union<readonly [typeof MailboxSendConflictError, typeof ConflictError]> | Schema.Union<readonly [typeof MailboxSendRefusedError, typeof OnboardingReviewRequiredError, typeof ForbiddenError]> | Schema.decodeTo<Schema.declareConstructor<BillingProviderError, {
8479
+ }>>, Schema.toCodecJson<Schema.Union<readonly [typeof MailboxSendConflictError, typeof ConflictError]> | Schema.Union<readonly [typeof FlagDisabledError, typeof MailboxSendRefusedError, typeof OnboardingReviewRequiredError, typeof ForbiddenError]> | Schema.decodeTo<Schema.declareConstructor<BillingProviderError, {
8404
8480
  readonly _tag: "BillingProviderError";
8405
8481
  readonly message: string;
8406
8482
  }, readonly [Schema.Struct<{
@@ -8520,6 +8596,26 @@ declare const MailboxesGroup_base: HttpApiGroup.HttpApiGroup<"Mailboxes", HttpAp
8520
8596
  }>, Schema.Struct<{
8521
8597
  readonly _tag: Schema.tag<"UnauthorizedError">;
8522
8598
  readonly message: Schema.String;
8599
+ }>, never, never> | Schema.decodeTo<Schema.declareConstructor<ValidationError, {
8600
+ readonly _tag: "ValidationError";
8601
+ readonly message: string;
8602
+ readonly fields?: {
8603
+ readonly [x: string]: readonly string[];
8604
+ } | null;
8605
+ }, readonly [Schema.Struct<{
8606
+ readonly _tag: Schema.tag<"ValidationError">;
8607
+ readonly message: Schema.String;
8608
+ readonly fields: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.$Array<Schema.String>>, Schema.Null]>>;
8609
+ }>], {
8610
+ readonly _tag: "ValidationError";
8611
+ readonly message: string;
8612
+ readonly fields?: {
8613
+ readonly [x: string]: readonly string[];
8614
+ } | null;
8615
+ }>, Schema.Struct<{
8616
+ readonly _tag: Schema.tag<"ValidationError">;
8617
+ readonly message: Schema.String;
8618
+ readonly fields: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.$Array<Schema.String>>, Schema.Null]>>;
8523
8619
  }>, never, never> | typeof InternalError>, ApiKeySecurityMiddleware, never> | HttpApiEndpoint.HttpApiEndpoint<"mailboxesGet", "GET", "/v1/mailboxes/:id", Schema.toCodecStringTree<Schema.Struct<{
8524
8620
  readonly id: Schema.brand<Schema.String, "MailboxId">;
8525
8621
  }>>, never, never, never, Schema.toCodecJson<Schema.Struct<{
@@ -11709,7 +11805,7 @@ declare const MailboxesGroup_base: HttpApiGroup.HttpApiGroup<"Mailboxes", HttpAp
11709
11805
  }>, Schema.Null]>;
11710
11806
  readonly createdAt: Schema.String;
11711
11807
  readonly updatedAt: Schema.String;
11712
- }>>, Schema.toCodecJson<Schema.Union<readonly [typeof MailboxChannelUnsupportedError, typeof ValidationError]> | Schema.Union<readonly [typeof MailboxSendConflictError, typeof ConflictError]> | Schema.Union<readonly [typeof MailboxSendRefusedError, typeof OnboardingReviewRequiredError, typeof ForbiddenError]> | Schema.decodeTo<Schema.declareConstructor<BillingProviderError, {
11808
+ }>>, Schema.toCodecJson<Schema.Union<readonly [typeof MailboxSendConflictError, typeof ConflictError]> | Schema.Union<readonly [typeof FlagDisabledError, typeof MailboxSendRefusedError, typeof OnboardingReviewRequiredError, typeof ForbiddenError]> | Schema.decodeTo<Schema.declareConstructor<BillingProviderError, {
11713
11809
  readonly _tag: "BillingProviderError";
11714
11810
  readonly message: string;
11715
11811
  }, readonly [Schema.Struct<{
@@ -11829,6 +11925,26 @@ declare const MailboxesGroup_base: HttpApiGroup.HttpApiGroup<"Mailboxes", HttpAp
11829
11925
  }>, Schema.Struct<{
11830
11926
  readonly _tag: Schema.tag<"UnauthorizedError">;
11831
11927
  readonly message: Schema.String;
11928
+ }>, never, never> | Schema.decodeTo<Schema.declareConstructor<ValidationError, {
11929
+ readonly _tag: "ValidationError";
11930
+ readonly message: string;
11931
+ readonly fields?: {
11932
+ readonly [x: string]: readonly string[];
11933
+ } | null;
11934
+ }, readonly [Schema.Struct<{
11935
+ readonly _tag: Schema.tag<"ValidationError">;
11936
+ readonly message: Schema.String;
11937
+ readonly fields: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.$Array<Schema.String>>, Schema.Null]>>;
11938
+ }>], {
11939
+ readonly _tag: "ValidationError";
11940
+ readonly message: string;
11941
+ readonly fields?: {
11942
+ readonly [x: string]: readonly string[];
11943
+ } | null;
11944
+ }>, Schema.Struct<{
11945
+ readonly _tag: Schema.tag<"ValidationError">;
11946
+ readonly message: Schema.String;
11947
+ readonly fields: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.$Array<Schema.String>>, Schema.Null]>>;
11832
11948
  }>, never, never> | typeof InternalError>, ApiKeySecurityMiddleware, never> | HttpApiEndpoint.HttpApiEndpoint<"mailboxesReplyAll", "POST", "/v1/mailboxes/:id/messages/:messageId/reply-all", Schema.toCodecStringTree<Schema.Struct<{
11833
11949
  readonly id: Schema.brand<Schema.String, "MailboxId">;
11834
11950
  readonly messageId: Schema.brand<Schema.String, "MessageId">;
@@ -11979,7 +12095,7 @@ declare const MailboxesGroup_base: HttpApiGroup.HttpApiGroup<"Mailboxes", HttpAp
11979
12095
  }>, Schema.Null]>;
11980
12096
  readonly createdAt: Schema.String;
11981
12097
  readonly updatedAt: Schema.String;
11982
- }>>, Schema.toCodecJson<Schema.Union<readonly [typeof MailboxChannelUnsupportedError, typeof ValidationError]> | Schema.Union<readonly [typeof MailboxSendConflictError, typeof ConflictError]> | Schema.Union<readonly [typeof MailboxSendRefusedError, typeof OnboardingReviewRequiredError, typeof ForbiddenError]> | Schema.decodeTo<Schema.declareConstructor<BillingProviderError, {
12098
+ }>>, Schema.toCodecJson<Schema.Union<readonly [typeof MailboxSendConflictError, typeof ConflictError]> | Schema.Union<readonly [typeof FlagDisabledError, typeof MailboxSendRefusedError, typeof OnboardingReviewRequiredError, typeof ForbiddenError]> | Schema.decodeTo<Schema.declareConstructor<BillingProviderError, {
11983
12099
  readonly _tag: "BillingProviderError";
11984
12100
  readonly message: string;
11985
12101
  }, readonly [Schema.Struct<{
@@ -12099,6 +12215,26 @@ declare const MailboxesGroup_base: HttpApiGroup.HttpApiGroup<"Mailboxes", HttpAp
12099
12215
  }>, Schema.Struct<{
12100
12216
  readonly _tag: Schema.tag<"UnauthorizedError">;
12101
12217
  readonly message: Schema.String;
12218
+ }>, never, never> | Schema.decodeTo<Schema.declareConstructor<ValidationError, {
12219
+ readonly _tag: "ValidationError";
12220
+ readonly message: string;
12221
+ readonly fields?: {
12222
+ readonly [x: string]: readonly string[];
12223
+ } | null;
12224
+ }, readonly [Schema.Struct<{
12225
+ readonly _tag: Schema.tag<"ValidationError">;
12226
+ readonly message: Schema.String;
12227
+ readonly fields: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.$Array<Schema.String>>, Schema.Null]>>;
12228
+ }>], {
12229
+ readonly _tag: "ValidationError";
12230
+ readonly message: string;
12231
+ readonly fields?: {
12232
+ readonly [x: string]: readonly string[];
12233
+ } | null;
12234
+ }>, Schema.Struct<{
12235
+ readonly _tag: Schema.tag<"ValidationError">;
12236
+ readonly message: Schema.String;
12237
+ readonly fields: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.$Array<Schema.String>>, Schema.Null]>>;
12102
12238
  }>, never, never> | typeof InternalError>, ApiKeySecurityMiddleware, never> | HttpApiEndpoint.HttpApiEndpoint<"mailboxesResume", "POST", "/v1/mailboxes/:id/resume", Schema.toCodecStringTree<Schema.Struct<{
12103
12239
  readonly id: Schema.brand<Schema.String, "MailboxId">;
12104
12240
  }>>, never, never, never, Schema.toCodecJson<Schema.Struct<{
@@ -12336,7 +12472,7 @@ declare const MailboxesGroup_base: HttpApiGroup.HttpApiGroup<"Mailboxes", HttpAp
12336
12472
  }>, Schema.Null]>;
12337
12473
  readonly createdAt: Schema.String;
12338
12474
  readonly updatedAt: Schema.String;
12339
- }>>, Schema.toCodecJson<Schema.Union<readonly [typeof MailboxChannelUnsupportedError, typeof ValidationError]> | Schema.Union<readonly [typeof MailboxSendConflictError, typeof ConflictError]> | Schema.Union<readonly [typeof MailboxSendRefusedError, typeof OnboardingReviewRequiredError, typeof ForbiddenError]> | Schema.decodeTo<Schema.declareConstructor<BillingProviderError, {
12475
+ }>>, Schema.toCodecJson<Schema.Union<readonly [typeof MailboxSendConflictError, typeof ConflictError]> | Schema.Union<readonly [typeof FlagDisabledError, typeof MailboxSendRefusedError, typeof OnboardingReviewRequiredError, typeof ForbiddenError]> | Schema.decodeTo<Schema.declareConstructor<BillingProviderError, {
12340
12476
  readonly _tag: "BillingProviderError";
12341
12477
  readonly message: string;
12342
12478
  }, readonly [Schema.Struct<{
@@ -12456,6 +12592,26 @@ declare const MailboxesGroup_base: HttpApiGroup.HttpApiGroup<"Mailboxes", HttpAp
12456
12592
  }>, Schema.Struct<{
12457
12593
  readonly _tag: Schema.tag<"UnauthorizedError">;
12458
12594
  readonly message: Schema.String;
12595
+ }>, never, never> | Schema.decodeTo<Schema.declareConstructor<ValidationError, {
12596
+ readonly _tag: "ValidationError";
12597
+ readonly message: string;
12598
+ readonly fields?: {
12599
+ readonly [x: string]: readonly string[];
12600
+ } | null;
12601
+ }, readonly [Schema.Struct<{
12602
+ readonly _tag: Schema.tag<"ValidationError">;
12603
+ readonly message: Schema.String;
12604
+ readonly fields: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.$Array<Schema.String>>, Schema.Null]>>;
12605
+ }>], {
12606
+ readonly _tag: "ValidationError";
12607
+ readonly message: string;
12608
+ readonly fields?: {
12609
+ readonly [x: string]: readonly string[];
12610
+ } | null;
12611
+ }>, Schema.Struct<{
12612
+ readonly _tag: Schema.tag<"ValidationError">;
12613
+ readonly message: Schema.String;
12614
+ readonly fields: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.$Array<Schema.String>>, Schema.Null]>>;
12459
12615
  }>, never, never> | typeof InternalError>, ApiKeySecurityMiddleware, never> | HttpApiEndpoint.HttpApiEndpoint<"mailboxesRevokeGrant", "DELETE", "/v1/mailboxes/:id/grants/:grantId", Schema.toCodecStringTree<Schema.Struct<{
12460
12616
  readonly id: Schema.brand<Schema.String, "MailboxId">;
12461
12617
  readonly grantId: Schema.brand<Schema.String, "MailboxGrantId">;
@@ -12698,7 +12854,7 @@ declare const MailboxesGroup_base: HttpApiGroup.HttpApiGroup<"Mailboxes", HttpAp
12698
12854
  }>, Schema.Null]>;
12699
12855
  readonly createdAt: Schema.String;
12700
12856
  readonly updatedAt: Schema.String;
12701
- }>>, Schema.toCodecJson<Schema.Union<readonly [typeof MailboxChannelUnsupportedError, typeof ValidationError]> | Schema.Union<readonly [typeof MailboxSendConflictError, typeof ConflictError]> | Schema.Union<readonly [typeof MailboxSendRefusedError, typeof OnboardingReviewRequiredError, typeof ForbiddenError]> | Schema.decodeTo<Schema.declareConstructor<BillingProviderError, {
12857
+ }>>, Schema.toCodecJson<Schema.Union<readonly [typeof MailboxSendConflictError, typeof ConflictError]> | Schema.Union<readonly [typeof FlagDisabledError, typeof MailboxSendRefusedError, typeof OnboardingReviewRequiredError, typeof ForbiddenError]> | Schema.decodeTo<Schema.declareConstructor<BillingProviderError, {
12702
12858
  readonly _tag: "BillingProviderError";
12703
12859
  readonly message: string;
12704
12860
  }, readonly [Schema.Struct<{
@@ -12818,6 +12974,26 @@ declare const MailboxesGroup_base: HttpApiGroup.HttpApiGroup<"Mailboxes", HttpAp
12818
12974
  }>, Schema.Struct<{
12819
12975
  readonly _tag: Schema.tag<"UnauthorizedError">;
12820
12976
  readonly message: Schema.String;
12977
+ }>, never, never> | Schema.decodeTo<Schema.declareConstructor<ValidationError, {
12978
+ readonly _tag: "ValidationError";
12979
+ readonly message: string;
12980
+ readonly fields?: {
12981
+ readonly [x: string]: readonly string[];
12982
+ } | null;
12983
+ }, readonly [Schema.Struct<{
12984
+ readonly _tag: Schema.tag<"ValidationError">;
12985
+ readonly message: Schema.String;
12986
+ readonly fields: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.$Array<Schema.String>>, Schema.Null]>>;
12987
+ }>], {
12988
+ readonly _tag: "ValidationError";
12989
+ readonly message: string;
12990
+ readonly fields?: {
12991
+ readonly [x: string]: readonly string[];
12992
+ } | null;
12993
+ }>, Schema.Struct<{
12994
+ readonly _tag: Schema.tag<"ValidationError">;
12995
+ readonly message: Schema.String;
12996
+ readonly fields: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.$Array<Schema.String>>, Schema.Null]>>;
12821
12997
  }>, never, never> | typeof InternalError>, ApiKeySecurityMiddleware, never> | HttpApiEndpoint.HttpApiEndpoint<"mailboxesSendMessage", "POST", "/v1/mailboxes/:id/messages", Schema.toCodecStringTree<Schema.Struct<{
12822
12998
  readonly id: Schema.brand<Schema.String, "MailboxId">;
12823
12999
  }>>, never, Schema.toCodecJson<Schema.Struct<{
@@ -12970,7 +13146,7 @@ declare const MailboxesGroup_base: HttpApiGroup.HttpApiGroup<"Mailboxes", HttpAp
12970
13146
  }>, Schema.Null]>;
12971
13147
  readonly createdAt: Schema.String;
12972
13148
  readonly updatedAt: Schema.String;
12973
- }>>, Schema.toCodecJson<Schema.Union<readonly [typeof MailboxChannelUnsupportedError, typeof ValidationError]> | Schema.Union<readonly [typeof MailboxSendConflictError, typeof ConflictError]> | Schema.Union<readonly [typeof MailboxSendRefusedError, typeof OnboardingReviewRequiredError, typeof ForbiddenError]> | Schema.decodeTo<Schema.declareConstructor<BillingProviderError, {
13149
+ }>>, Schema.toCodecJson<Schema.Union<readonly [typeof MailboxSendConflictError, typeof ConflictError]> | Schema.Union<readonly [typeof FlagDisabledError, typeof MailboxSendRefusedError, typeof OnboardingReviewRequiredError, typeof ForbiddenError]> | Schema.decodeTo<Schema.declareConstructor<BillingProviderError, {
12974
13150
  readonly _tag: "BillingProviderError";
12975
13151
  readonly message: string;
12976
13152
  }, readonly [Schema.Struct<{
@@ -13090,6 +13266,26 @@ declare const MailboxesGroup_base: HttpApiGroup.HttpApiGroup<"Mailboxes", HttpAp
13090
13266
  }>, Schema.Struct<{
13091
13267
  readonly _tag: Schema.tag<"UnauthorizedError">;
13092
13268
  readonly message: Schema.String;
13269
+ }>, never, never> | Schema.decodeTo<Schema.declareConstructor<ValidationError, {
13270
+ readonly _tag: "ValidationError";
13271
+ readonly message: string;
13272
+ readonly fields?: {
13273
+ readonly [x: string]: readonly string[];
13274
+ } | null;
13275
+ }, readonly [Schema.Struct<{
13276
+ readonly _tag: Schema.tag<"ValidationError">;
13277
+ readonly message: Schema.String;
13278
+ readonly fields: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.$Array<Schema.String>>, Schema.Null]>>;
13279
+ }>], {
13280
+ readonly _tag: "ValidationError";
13281
+ readonly message: string;
13282
+ readonly fields?: {
13283
+ readonly [x: string]: readonly string[];
13284
+ } | null;
13285
+ }>, Schema.Struct<{
13286
+ readonly _tag: Schema.tag<"ValidationError">;
13287
+ readonly message: Schema.String;
13288
+ readonly fields: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.$Array<Schema.String>>, Schema.Null]>>;
13093
13289
  }>, never, never> | typeof InternalError>, ApiKeySecurityMiddleware, never> | HttpApiEndpoint.HttpApiEndpoint<"mailboxesUpdate", "PATCH", "/v1/mailboxes/:id", Schema.toCodecStringTree<Schema.Struct<{
13094
13290
  readonly id: Schema.brand<Schema.String, "MailboxId">;
13095
13291
  }>>, never, Schema.toCodecJson<Schema.Struct<{