samva 0.17.0 → 0.18.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 (124) hide show
  1. package/AGENTS.md +5 -0
  2. package/README.md +16 -3
  3. package/dist/{rolldown-runtime-D7D4PA-g.js → _virtual/_rolldown/runtime.js} +1 -1
  4. package/dist/client/client/client.gen.js +174 -0
  5. package/dist/client/client/utils.gen.js +177 -0
  6. package/dist/client/client.gen.js +8 -0
  7. package/dist/client/core/auth.gen.js +12 -0
  8. package/dist/client/core/bodySerializer.gen.js +6 -0
  9. package/dist/client/core/params.gen.js +77 -0
  10. package/dist/client/core/pathSerializer.gen.js +82 -0
  11. package/dist/client/core/serverSentEvents.gen.js +96 -0
  12. package/dist/client/core/utils.gen.js +78 -0
  13. package/dist/{promises---Kbh-7z.js → client/sdk.gen.js} +4 -2293
  14. package/dist/client-attribution.js +9 -0
  15. package/dist/effect/analytics.d.ts +6 -6
  16. package/dist/effect/analytics.js +23 -2
  17. package/dist/effect/api-keys.d.ts +12 -12
  18. package/dist/effect/api-keys.js +29 -2
  19. package/dist/effect/attachments.d.ts +4 -4
  20. package/dist/effect/attachments.js +19 -2
  21. package/dist/effect/brands.d.ts +6 -6
  22. package/dist/effect/brands.js +26 -3
  23. package/dist/effect/campaigns.d.ts +18 -18
  24. package/dist/effect/campaigns.js +35 -2
  25. package/dist/effect/categories.d.ts +2 -2
  26. package/dist/effect/categories.js +95 -1
  27. package/dist/effect/client.js +3 -3
  28. package/dist/effect/contact-groups.d.ts +14 -14
  29. package/dist/effect/contact-groups.js +31 -2
  30. package/dist/effect/contacts.d.ts +28 -28
  31. package/dist/effect/contacts.js +52 -2
  32. package/dist/effect/conversations.d.ts +17 -17
  33. package/dist/effect/conversations.js +37 -2
  34. package/dist/effect/custom-fields.d.ts +4 -4
  35. package/dist/effect/custom-fields.js +19 -2
  36. package/dist/effect/email.d.ts +75 -75
  37. package/dist/effect/email.js +140 -2
  38. package/dist/effect/errors.d.ts +2 -0
  39. package/dist/effect/errors.js +3 -0
  40. package/dist/effect/events.d.ts +2 -2
  41. package/dist/effect/events.js +17 -3
  42. package/dist/effect/extension-installations.d.ts +11 -11
  43. package/dist/effect/extension-installations.js +29 -2
  44. package/dist/effect/extensions.d.ts +9 -9
  45. package/dist/effect/extensions.js +21 -2
  46. package/dist/effect/feedback.d.ts +1 -1
  47. package/dist/effect/feedback.js +14 -3
  48. package/dist/{analytics-CaqPRsry.js → effect/generated/analytics.js} +4 -23
  49. package/dist/{api-keys-Ce1Y4_Ip.js → effect/generated/api-keys.js} +4 -29
  50. package/dist/{attachments-DYqVIraC.js → effect/generated/attachments.js} +3 -18
  51. package/dist/{brands-ZwuOGIWO.js → effect/generated/brands.js} +5 -25
  52. package/dist/{campaigns-DZlz1E9E.js → effect/generated/campaigns.js} +4 -35
  53. package/dist/effect/generated/contact-events.js +37 -0
  54. package/dist/{contact-groups-BLbFXnjq.js → effect/generated/contact-groups.js} +3 -30
  55. package/dist/{contacts-BbsoXXB4.js → effect/generated/contacts.js} +3 -81
  56. package/dist/{conversations-_sRHueML.js → effect/generated/conversations.js} +3 -36
  57. package/dist/{custom-fields-BHWbwlKn.js → effect/generated/custom-fields.js} +5 -19
  58. package/dist/{email-R0NAA9PW.js → effect/generated/email.js} +995 -1146
  59. package/dist/{events-CxbTUHYT.js → effect/generated/events.js} +3 -15
  60. package/dist/{extension-installations-CD94LPmk.js → effect/generated/extension-installations.js} +4 -29
  61. package/dist/{extensions-BKyNQLvu.js → effect/generated/extensions.js} +3 -20
  62. package/dist/{feedback-Bpa09JOS.js → effect/generated/feedback.js} +3 -12
  63. package/dist/{journeys-CARo_BJT.js → effect/generated/journeys.js} +3 -38
  64. package/dist/{mailboxes-BRDn7BIK.js → effect/generated/mailboxes.js} +793 -951
  65. package/dist/{media-VrrtNnft.js → effect/generated/media.js} +3 -3
  66. package/dist/effect/generated/messages.js +671 -0
  67. package/dist/{namespaces-CcvEbG-y.js → effect/generated/namespaces.js} +3 -20
  68. package/dist/{operations-CmB3FHwf.js → effect/generated/operations.js} +3 -16
  69. package/dist/{organizations-A-plufWc.js → effect/generated/organizations.js} +3 -24
  70. package/dist/{scheduled-messages-DkKZRRaN.js → effect/generated/scheduled-messages.js} +4 -21
  71. package/dist/effect/generated/shared.js +1053 -0
  72. package/dist/{subscriptions-DEXYtMXg.js → effect/generated/subscriptions.js} +3 -9
  73. package/dist/{templates-DZomxsG7.js → effect/generated/templates.js} +3 -78
  74. package/dist/{unsubscribe-groups-Iqk4Isf9.js → effect/generated/unsubscribe-groups.js} +5 -29
  75. package/dist/{webhooks-CPXuu8Xf.js → effect/generated/webhooks.js} +4 -34
  76. package/dist/{whoami-Ccz0jwlt.js → effect/generated/whoami.js} +5 -10
  77. package/dist/{categories-CA4XIQAb.js → effect/generated-metadata.js} +2 -94
  78. package/dist/effect/index.d.ts +1 -2
  79. package/dist/effect/index.js +32 -32
  80. package/dist/effect/internal/client.js +69 -0
  81. package/dist/effect/internal/email-sender.js +21 -0
  82. package/dist/effect/internal/mailbox-events.js +33 -0
  83. package/dist/effect/internal/operation.js +116 -0
  84. package/dist/effect/internal/send.js +56 -0
  85. package/dist/effect/journeys.d.ts +18 -18
  86. package/dist/effect/journeys.js +39 -2
  87. package/dist/effect/mailboxes.d.ts +191 -191
  88. package/dist/effect/mailboxes.js +135 -3
  89. package/dist/effect/media.d.ts +5 -5
  90. package/dist/effect/media.js +10 -10
  91. package/dist/effect/messages.d.ts +14 -14
  92. package/dist/effect/messages.js +15 -14
  93. package/dist/effect/namespaces.d.ts +7 -7
  94. package/dist/effect/namespaces.js +21 -2
  95. package/dist/effect/operations.d.ts +5 -5
  96. package/dist/effect/operations.js +17 -2
  97. package/dist/effect/organizations.d.ts +7 -7
  98. package/dist/effect/organizations.js +25 -2
  99. package/dist/effect/pagination.js +39 -0
  100. package/dist/effect/retry.js +3 -3
  101. package/dist/{runtime-P0l1_2-C.js → effect/runtime.js} +2 -2
  102. package/dist/effect/scheduled-messages.d.ts +7 -7
  103. package/dist/effect/scheduled-messages.js +21 -2
  104. package/dist/effect/subscriptions.d.ts +1 -1
  105. package/dist/effect/subscriptions.js +10 -2
  106. package/dist/effect/templates.d.ts +39 -39
  107. package/dist/effect/templates.js +80 -3
  108. package/dist/effect/unsubscribe-groups.d.ts +11 -11
  109. package/dist/effect/unsubscribe-groups.js +29 -2
  110. package/dist/effect/webhooks.d.ts +14 -14
  111. package/dist/effect/webhooks.js +35 -3
  112. package/dist/effect/whoami.d.ts +9 -9
  113. package/dist/effect/whoami.js +10 -2
  114. package/dist/index.js +4 -3
  115. package/dist/{inline-attachments-Bi1hDltp.js → inline-attachments.js} +13 -7
  116. package/dist/{mailbox-events-VKR4f3qq.js → mailbox-events.js} +2 -2
  117. package/dist/{normalize-B79uJIeb.js → normalize.js} +2 -2
  118. package/dist/package.js +6 -0
  119. package/dist/promises/errors.gen.js +1340 -0
  120. package/dist/promises/index.js +288 -3
  121. package/dist/{operation-n_IYgNVK.js → service-map.js} +2 -148
  122. package/package.json +6 -2
  123. package/dist/client-DOzUrdTE.js +0 -1115
  124. package/dist/send-Bxc0XfGE.js +0 -722
@@ -1,655 +1,651 @@
1
- import { t as __exportAll } from "./rolldown-runtime-D7D4PA-g.js";
2
- import { n as MailboxEventStreamError, t as MailboxEventStream } from "./mailbox-events-VKR4f3qq.js";
3
- import { $t as UserId, Ct as MessageId, D as Cursor, Et as NamespaceId, Ht as SuccessResponse, Jt as UnauthorizedError, K as ForbiddenError, Lt as ResourceNotFoundError, Nt as PaymentRequiredError, Ot as OnboardingReviewRequiredError, Pt as RateLimitedError, St as MediaId, Vt as SkippedRecipient, Y as InternalError, _t as MailboxSendReceipt, at as MailboxDraftId, bt as MailboxThreadId, c as AttachmentId, ct as MailboxId, dt as MailboxMetadataPatch, en as ValidationError, et as JsonValue, ft as MailboxPolicyId, gt as MailboxSendOutcome, ht as MailboxSendMode, it as MailboxChannelUnsupportedError, k as EmailAttachment, l as BillingProviderError, lt as MailboxLabelId, m as ConflictError, mt as MailboxSendConflictError, nt as MailboxActionId, ot as MailboxEndpointId, pt as MailboxPolicyOutcomeKind, q as GatewayTimeoutError, rt as MailboxChannel, s as ApiKeySecurityMiddleware, st as MailboxGrantRole, t as Service, tt as MailboxActionDecision, ut as MailboxMetadata, vt as MailboxSendRefusedError, w as CreateMailboxEndpointPayload, x as ConversationId, xt as MailboxThreadPriority, yt as MailboxThreadFolder, zt as SenderNotReadyError } from "./client-DOzUrdTE.js";
4
- import { n as forGroup } from "./operation-n_IYgNVK.js";
1
+ 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.js";
5
2
  import { HttpApiEndpoint, HttpApiGroup, HttpApiSchema, OpenApi } from "effect/http-api";
6
- import * as Schema$1 from "effect/Schema";
7
- import { Cause, Effect, Exit, Stream } from "effect";
3
+ import * as Schema from "effect/Schema";
8
4
  //#region src/effect/generated/mailboxes.ts
9
- const MailboxStatus = /* @__PURE__ */ Schema$1.Union([Schema$1.Literal("active"), Schema$1.Literal("paused")]).annotate({ identifier: "MailboxStatus" });
10
- const MailboxAgentActivity = /* @__PURE__ */ Schema$1.Struct({
11
- actions: Schema$1.Struct({
12
- byType: Schema$1.Array(Schema$1.Struct({
13
- type: Schema$1.Union([
14
- Schema$1.Literal("sendMessage"),
15
- Schema$1.Literal("reply"),
16
- Schema$1.Literal("updateDraft"),
17
- Schema$1.Literal("createNote"),
18
- Schema$1.Literal("assignThread"),
19
- Schema$1.Literal("changeThreadState"),
20
- Schema$1.Literal("call"),
21
- Schema$1.Literal("extensionRequest")
5
+ const MailboxStatus = /* @__PURE__ */ Schema.Union([Schema.Literal("active"), Schema.Literal("paused")]).annotate({ identifier: "MailboxStatus" });
6
+ const MailboxAgentActivity = /* @__PURE__ */ Schema.Struct({
7
+ actions: Schema.Struct({
8
+ byType: Schema.Array(Schema.Struct({
9
+ type: Schema.Union([
10
+ Schema.Literal("sendMessage"),
11
+ Schema.Literal("reply"),
12
+ Schema.Literal("updateDraft"),
13
+ Schema.Literal("createNote"),
14
+ Schema.Literal("assignThread"),
15
+ Schema.Literal("changeThreadState"),
16
+ Schema.Literal("call"),
17
+ Schema.Literal("extensionRequest")
22
18
  ]),
23
- count: Schema$1.Finite.check(Schema$1.isInt().annotate({ expected: "an integer" })).check(Schema$1.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" }))
19
+ count: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" }))
24
20
  })),
25
- byState: Schema$1.Array(Schema$1.Struct({
26
- state: Schema$1.Union([
27
- Schema$1.Literal("proposed"),
28
- Schema$1.Literal("allowed"),
29
- Schema$1.Literal("approvalRequired"),
30
- Schema$1.Literal("policyDenied"),
31
- Schema$1.Literal("approved"),
32
- Schema$1.Literal("approvalDenied"),
33
- Schema$1.Literal("executing"),
34
- Schema$1.Literal("executed"),
35
- Schema$1.Literal("failed"),
36
- Schema$1.Literal("queued"),
37
- Schema$1.Literal("accepted"),
38
- Schema$1.Literal("completed"),
39
- Schema$1.Literal("notSent"),
40
- Schema$1.Literal("uncertain")
21
+ byState: Schema.Array(Schema.Struct({
22
+ state: Schema.Union([
23
+ Schema.Literal("proposed"),
24
+ Schema.Literal("allowed"),
25
+ Schema.Literal("approvalRequired"),
26
+ Schema.Literal("policyDenied"),
27
+ Schema.Literal("approved"),
28
+ Schema.Literal("approvalDenied"),
29
+ Schema.Literal("executing"),
30
+ Schema.Literal("executed"),
31
+ Schema.Literal("failed"),
32
+ Schema.Literal("queued"),
33
+ Schema.Literal("accepted"),
34
+ Schema.Literal("completed"),
35
+ Schema.Literal("notSent"),
36
+ Schema.Literal("uncertain")
41
37
  ]),
42
- count: Schema$1.Finite.check(Schema$1.isInt().annotate({ expected: "an integer" })).check(Schema$1.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" }))
38
+ count: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" }))
43
39
  }))
44
40
  }),
45
- events: Schema$1.Struct({ byType: Schema$1.Array(Schema$1.Struct({
46
- type: Schema$1.Union([
47
- Schema$1.Literal("mailbox.created"),
48
- Schema$1.Literal("endpoint.attached"),
49
- Schema$1.Literal("endpoint.detached"),
50
- Schema$1.Literal("message.received"),
51
- Schema$1.Literal("message.released"),
52
- Schema$1.Literal("message.sent"),
53
- Schema$1.Literal("thread.created"),
54
- Schema$1.Literal("action.proposed"),
55
- Schema$1.Literal("action.policy_decided"),
56
- Schema$1.Literal("action.approval_requested"),
57
- Schema$1.Literal("action.approval_resolved"),
58
- Schema$1.Literal("action.accepted"),
59
- Schema$1.Literal("action.executed"),
60
- Schema$1.Literal("action.failed")
41
+ events: Schema.Struct({ byType: Schema.Array(Schema.Struct({
42
+ type: Schema.Union([
43
+ Schema.Literal("mailbox.created"),
44
+ Schema.Literal("endpoint.attached"),
45
+ Schema.Literal("endpoint.detached"),
46
+ Schema.Literal("message.received"),
47
+ Schema.Literal("message.released"),
48
+ Schema.Literal("message.sent"),
49
+ Schema.Literal("thread.created"),
50
+ Schema.Literal("action.proposed"),
51
+ Schema.Literal("action.policy_decided"),
52
+ Schema.Literal("action.approval_requested"),
53
+ Schema.Literal("action.approval_resolved"),
54
+ Schema.Literal("action.accepted"),
55
+ Schema.Literal("action.executed"),
56
+ Schema.Literal("action.failed")
61
57
  ]),
62
- count: Schema$1.Finite.check(Schema$1.isInt().annotate({ expected: "an integer" })).check(Schema$1.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" }))
58
+ count: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" }))
63
59
  })) }),
64
- pendingApprovals: Schema$1.Finite.check(Schema$1.isInt().annotate({ expected: "an integer" })).check(Schema$1.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" }))
60
+ pendingApprovals: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" }))
65
61
  }).annotate({ identifier: "MailboxAgentActivity" });
66
- const MailboxDraftState = /* @__PURE__ */ Schema$1.Union([
67
- Schema$1.Literal("saved"),
68
- Schema$1.Literal("locked"),
69
- Schema$1.Literal("sent")
62
+ const MailboxDraftState = /* @__PURE__ */ Schema.Union([
63
+ Schema.Literal("saved"),
64
+ Schema.Literal("locked"),
65
+ Schema.Literal("sent")
70
66
  ]).annotate({ identifier: "MailboxDraftState" });
71
- const MailboxEventId = /* @__PURE__ */ Schema$1.String.check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^mbxevt_[0-9a-hjkmnp-tv-z]{16,24}$", "u")).annotate({
67
+ const MailboxEventId = /* @__PURE__ */ Schema.String.check(Schema.isPattern(/* @__PURE__ */ new RegExp("^mbxevt_[0-9a-hjkmnp-tv-z]{16,24}$", "u")).annotate({
72
68
  expected: "a string matching the RegExp ^mbxevt_[0-9a-hjkmnp-tv-z]{16,24}$",
73
69
  identifier: "MailboxEventId"
74
- })).pipe(Schema$1.brand("MailboxEventId"));
75
- const MailboxGrantId = /* @__PURE__ */ Schema$1.String.check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^mbxacl_[0-9a-hjkmnp-tv-z]{16,24}$", "u")).annotate({
70
+ })).pipe(Schema.brand("MailboxEventId"));
71
+ const MailboxGrantId = /* @__PURE__ */ Schema.String.check(Schema.isPattern(/* @__PURE__ */ new RegExp("^mbxacl_[0-9a-hjkmnp-tv-z]{16,24}$", "u")).annotate({
76
72
  expected: "a string matching the RegExp ^mbxacl_[0-9a-hjkmnp-tv-z]{16,24}$",
77
73
  identifier: "MailboxGrantId"
78
- })).pipe(Schema$1.brand("MailboxGrantId"));
79
- const MailboxMessageSender = /* @__PURE__ */ Schema$1.Struct({
80
- actor: Schema$1.optionalKey(Schema$1.Union([Schema$1.Struct({
81
- kind: Schema$1.Union([
82
- Schema$1.Literal("user"),
83
- Schema$1.Literal("apiKey"),
84
- Schema$1.Literal("extension"),
85
- Schema$1.Literal("externalAgent"),
86
- Schema$1.Literal("samvaAgent"),
87
- Schema$1.Literal("system")
74
+ })).pipe(Schema.brand("MailboxGrantId"));
75
+ const MailboxMessageSender = /* @__PURE__ */ Schema.Struct({
76
+ actor: Schema.optionalKey(Schema.Union([Schema.Struct({
77
+ kind: Schema.Union([
78
+ Schema.Literal("user"),
79
+ Schema.Literal("apiKey"),
80
+ Schema.Literal("extension"),
81
+ Schema.Literal("externalAgent"),
82
+ Schema.Literal("samvaAgent"),
83
+ Schema.Literal("system")
88
84
  ]),
89
- id: Schema$1.String,
90
- displayName: Schema$1.optionalKey(Schema$1.Union([Schema$1.String, Schema$1.Null]))
91
- }), Schema$1.Null])),
92
- displayName: Schema$1.optionalKey(Schema$1.Union([Schema$1.String, Schema$1.Null])),
93
- address: Schema$1.String
85
+ id: Schema.String,
86
+ displayName: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null]))
87
+ }), Schema.Null])),
88
+ displayName: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
89
+ address: Schema.String
94
90
  }).annotate({ identifier: "MailboxMessageSender" });
95
- const MailboxMessageRecipient = /* @__PURE__ */ Schema$1.Struct({
96
- kind: Schema$1.Union([
97
- Schema$1.Literal("to"),
98
- Schema$1.Literal("cc"),
99
- Schema$1.Literal("bcc")
91
+ const MailboxMessageRecipient = /* @__PURE__ */ Schema.Struct({
92
+ kind: Schema.Union([
93
+ Schema.Literal("to"),
94
+ Schema.Literal("cc"),
95
+ Schema.Literal("bcc")
100
96
  ]),
101
- actor: Schema$1.optionalKey(Schema$1.Union([Schema$1.Struct({
102
- kind: Schema$1.Union([
103
- Schema$1.Literal("user"),
104
- Schema$1.Literal("apiKey"),
105
- Schema$1.Literal("extension"),
106
- Schema$1.Literal("externalAgent"),
107
- Schema$1.Literal("samvaAgent"),
108
- Schema$1.Literal("system")
97
+ actor: Schema.optionalKey(Schema.Union([Schema.Struct({
98
+ kind: Schema.Union([
99
+ Schema.Literal("user"),
100
+ Schema.Literal("apiKey"),
101
+ Schema.Literal("extension"),
102
+ Schema.Literal("externalAgent"),
103
+ Schema.Literal("samvaAgent"),
104
+ Schema.Literal("system")
109
105
  ]),
110
- id: Schema$1.String,
111
- displayName: Schema$1.optionalKey(Schema$1.Union([Schema$1.String, Schema$1.Null]))
112
- }), Schema$1.Null])),
113
- displayName: Schema$1.optionalKey(Schema$1.Union([Schema$1.String, Schema$1.Null])),
114
- address: Schema$1.String
106
+ id: Schema.String,
107
+ displayName: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null]))
108
+ }), Schema.Null])),
109
+ displayName: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
110
+ address: Schema.String
115
111
  }).annotate({ identifier: "MailboxMessageRecipient" });
116
- const MailboxMessageAuthentication = /* @__PURE__ */ Schema$1.Struct({
117
- spf: Schema$1.Union([Schema$1.String, Schema$1.Null]),
118
- dkim: Schema$1.Union([Schema$1.String, Schema$1.Null]),
119
- dmarc: Schema$1.Union([Schema$1.String, Schema$1.Null])
112
+ const MailboxMessageAuthentication = /* @__PURE__ */ Schema.Struct({
113
+ spf: Schema.Union([Schema.String, Schema.Null]),
114
+ dkim: Schema.Union([Schema.String, Schema.Null]),
115
+ dmarc: Schema.Union([Schema.String, Schema.Null])
120
116
  }).annotate({ identifier: "MailboxMessageAuthentication" });
121
- const MailboxDownloadUrl = /* @__PURE__ */ Schema$1.Struct({
122
- url: Schema$1.String,
123
- expiresAt: Schema$1.String
117
+ const MailboxDownloadUrl = /* @__PURE__ */ Schema.Struct({
118
+ url: Schema.String,
119
+ expiresAt: Schema.String
124
120
  }).annotate({ identifier: "MailboxDownloadUrl" });
125
- const MailboxThreadSender = /* @__PURE__ */ Schema$1.Struct({
126
- address: Schema$1.Union([Schema$1.String, Schema$1.Null]),
127
- displayName: Schema$1.Union([Schema$1.String, Schema$1.Null])
121
+ const MailboxThreadSender = /* @__PURE__ */ Schema.Struct({
122
+ address: Schema.Union([Schema.String, Schema.Null]),
123
+ displayName: Schema.Union([Schema.String, Schema.Null])
128
124
  }).annotate({ identifier: "MailboxThreadSender" });
129
- const MailboxThreadParticipant = /* @__PURE__ */ Schema$1.Struct({
130
- actor: Schema$1.Struct({
131
- kind: Schema$1.Union([
132
- Schema$1.Literal("user"),
133
- Schema$1.Literal("apiKey"),
134
- Schema$1.Literal("extension"),
135
- Schema$1.Literal("externalAgent"),
136
- Schema$1.Literal("samvaAgent"),
137
- Schema$1.Literal("system")
125
+ const MailboxThreadParticipant = /* @__PURE__ */ Schema.Struct({
126
+ actor: Schema.Struct({
127
+ kind: Schema.Union([
128
+ Schema.Literal("user"),
129
+ Schema.Literal("apiKey"),
130
+ Schema.Literal("extension"),
131
+ Schema.Literal("externalAgent"),
132
+ Schema.Literal("samvaAgent"),
133
+ Schema.Literal("system")
138
134
  ]),
139
- id: Schema$1.String,
140
- displayName: Schema$1.optionalKey(Schema$1.Union([Schema$1.String, Schema$1.Null]))
135
+ id: Schema.String,
136
+ displayName: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null]))
141
137
  }),
142
- role: Schema$1.Union([
143
- Schema$1.Literal("recipient"),
144
- Schema$1.Literal("sender"),
145
- Schema$1.Literal("assignee"),
146
- Schema$1.Literal("observer")
138
+ role: Schema.Union([
139
+ Schema.Literal("recipient"),
140
+ Schema.Literal("sender"),
141
+ Schema.Literal("assignee"),
142
+ Schema.Literal("observer")
147
143
  ]),
148
- address: Schema$1.optionalKey(Schema$1.Union([Schema$1.String, Schema$1.Null]))
144
+ address: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null]))
149
145
  }).annotate({ identifier: "MailboxThreadParticipant" });
150
- const MailboxNoteId = /* @__PURE__ */ Schema$1.String.check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^note_[0-9a-hjkmnp-tv-z]{16,24}$", "u")).annotate({
146
+ const MailboxNoteId = /* @__PURE__ */ Schema.String.check(Schema.isPattern(/* @__PURE__ */ new RegExp("^note_[0-9a-hjkmnp-tv-z]{16,24}$", "u")).annotate({
151
147
  expected: "a string matching the RegExp ^note_[0-9a-hjkmnp-tv-z]{16,24}$",
152
148
  identifier: "MailboxNoteId"
153
- })).pipe(Schema$1.brand("MailboxNoteId"));
154
- const MailboxCopiedAttachment = /* @__PURE__ */ Schema$1.Struct({
155
- filename: Schema$1.String,
156
- content: Schema$1.optionalKey(Schema$1.Union([Schema$1.String, Schema$1.Null])),
157
- mediaId: Schema$1.optionalKey(Schema$1.Union([MediaId, Schema$1.Null])),
158
- contentType: Schema$1.String,
159
- size: Schema$1.Finite.check(Schema$1.isInt().annotate({ expected: "an integer" })).check(Schema$1.isLessThanOrEqualTo(26214400).annotate({ expected: "a value less than or equal to 26214400" })).check(Schema$1.isGreaterThan(0).annotate({ expected: "a value greater than 0" }))
149
+ })).pipe(Schema.brand("MailboxNoteId"));
150
+ const MailboxCopiedAttachment = /* @__PURE__ */ Schema.Struct({
151
+ filename: Schema.String,
152
+ content: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
153
+ mediaId: Schema.optionalKey(Schema.Union([MediaId, Schema.Null])),
154
+ contentType: Schema.String,
155
+ size: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isLessThanOrEqualTo(26214400).annotate({ expected: "a value less than or equal to 26214400" })).check(Schema.isGreaterThan(0).annotate({ expected: "a value greater than 0" }))
160
156
  }).annotate({ identifier: "MailboxCopiedAttachment" });
161
- const MailboxSummary = /* @__PURE__ */ Schema$1.Struct({
157
+ const MailboxSummary = /* @__PURE__ */ Schema.Struct({
162
158
  id: MailboxId,
163
- namespaceId: Schema$1.Union([NamespaceId, Schema$1.Null]),
164
- slug: Schema$1.String,
165
- name: Schema$1.String,
159
+ namespaceId: Schema.Union([NamespaceId, Schema.Null]),
160
+ slug: Schema.String,
161
+ name: Schema.String,
166
162
  status: MailboxStatus,
167
- primaryAddress: Schema$1.Union([Schema$1.String, Schema$1.Null]),
168
- createdAt: Schema$1.String
163
+ primaryAddress: Schema.Union([Schema.String, Schema.Null]),
164
+ createdAt: Schema.String
169
165
  }).annotate({ identifier: "MailboxSummary" });
170
- const MailboxEndpoint = /* @__PURE__ */ Schema$1.Struct({
166
+ const MailboxEndpoint = /* @__PURE__ */ Schema.Struct({
171
167
  id: MailboxEndpointId,
172
- address: Schema$1.String,
173
- displayName: Schema$1.Union([Schema$1.String, Schema$1.Null]),
174
- default: Schema$1.Boolean,
175
- channel: Schema$1.Literal("email"),
176
- source: Schema$1.Union([Schema$1.Literal("samvaHosted"), Schema$1.Literal("verifiedDomain")]),
177
- domainId: Schema$1.Union([Schema$1.String, Schema$1.Null])
168
+ address: Schema.String,
169
+ displayName: Schema.Union([Schema.String, Schema.Null]),
170
+ default: Schema.Boolean,
171
+ channel: Schema.Literal("email"),
172
+ source: Schema.Union([Schema.Literal("samvaHosted"), Schema.Literal("verifiedDomain")]),
173
+ domainId: Schema.Union([Schema.String, Schema.Null])
178
174
  }).annotate({ identifier: "MailboxEndpoint" });
179
- const MailboxQuarantinedMessage = /* @__PURE__ */ Schema$1.Struct({
175
+ const MailboxQuarantinedMessage = /* @__PURE__ */ Schema.Struct({
180
176
  id: MessageId,
181
- disposition: Schema$1.Union([Schema$1.Literal("quarantined"), Schema$1.Literal("isolated")]),
182
- reason: Schema$1.Union([
183
- Schema$1.Literal("spam"),
184
- Schema$1.Literal("dmarc"),
185
- Schema$1.Literal("virus"),
186
- Schema$1.Literal("virus_unscanned"),
187
- Schema$1.Literal("phishing"),
188
- Schema$1.Literal("fraud"),
189
- Schema$1.Literal("prompt_injection")
177
+ disposition: Schema.Union([Schema.Literal("quarantined"), Schema.Literal("isolated")]),
178
+ reason: Schema.Union([
179
+ Schema.Literal("spam"),
180
+ Schema.Literal("dmarc"),
181
+ Schema.Literal("virus"),
182
+ Schema.Literal("virus_unscanned"),
183
+ Schema.Literal("phishing"),
184
+ Schema.Literal("fraud"),
185
+ Schema.Literal("prompt_injection")
190
186
  ]),
191
- source: Schema$1.Union([Schema$1.Literal("receipt"), Schema$1.Literal("classifier")]),
192
- from: Schema$1.Struct({
193
- address: Schema$1.String,
194
- name: Schema$1.Union([Schema$1.String, Schema$1.Null])
187
+ source: Schema.Union([Schema.Literal("receipt"), Schema.Literal("classifier")]),
188
+ from: Schema.Struct({
189
+ address: Schema.String,
190
+ name: Schema.Union([Schema.String, Schema.Null])
195
191
  }),
196
- subject: Schema$1.Union([Schema$1.String, Schema$1.Null]),
197
- receivedAt: Schema$1.String,
198
- heldAt: Schema$1.String,
199
- releasedAt: Schema$1.Union([Schema$1.String, Schema$1.Null]),
200
- threadId: Schema$1.Union([MailboxThreadId, Schema$1.Null]),
201
- discardedAt: Schema$1.Union([Schema$1.String, Schema$1.Null])
192
+ subject: Schema.Union([Schema.String, Schema.Null]),
193
+ receivedAt: Schema.String,
194
+ heldAt: Schema.String,
195
+ releasedAt: Schema.Union([Schema.String, Schema.Null]),
196
+ threadId: Schema.Union([MailboxThreadId, Schema.Null]),
197
+ discardedAt: Schema.Union([Schema.String, Schema.Null])
202
198
  }).annotate({ identifier: "MailboxQuarantinedMessage" });
203
- const MailboxDraftSummary = /* @__PURE__ */ Schema$1.Struct({
199
+ const MailboxDraftSummary = /* @__PURE__ */ Schema.Struct({
204
200
  id: MailboxDraftId,
205
201
  channel: MailboxChannel,
206
- threadId: Schema$1.Union([MailboxThreadId, Schema$1.Null]),
207
- inReplyToMessageId: Schema$1.Union([MessageId, Schema$1.Null]),
202
+ threadId: Schema.Union([MailboxThreadId, Schema.Null]),
203
+ inReplyToMessageId: Schema.Union([MessageId, Schema.Null]),
208
204
  state: MailboxDraftState,
209
- lockedByActionId: Schema$1.Union([MailboxActionId, Schema$1.Null]),
210
- to: Schema$1.Array(Schema$1.String),
211
- subject: Schema$1.Union([Schema$1.String, Schema$1.Null]),
212
- createdAt: Schema$1.String,
213
- updatedAt: Schema$1.String
205
+ lockedByActionId: Schema.Union([MailboxActionId, Schema.Null]),
206
+ to: Schema.Array(Schema.String),
207
+ subject: Schema.Union([Schema.String, Schema.Null]),
208
+ createdAt: Schema.String,
209
+ updatedAt: Schema.String
214
210
  }).annotate({ identifier: "MailboxDraftSummary" });
215
- const MailboxEvent = /* @__PURE__ */ Schema$1.Struct({
211
+ const MailboxEvent = /* @__PURE__ */ Schema.Struct({
216
212
  id: MailboxEventId,
217
- type: Schema$1.Union([
218
- Schema$1.Literal("mailbox.created"),
219
- Schema$1.Literal("endpoint.attached"),
220
- Schema$1.Literal("endpoint.detached"),
221
- Schema$1.Literal("message.received"),
222
- Schema$1.Literal("message.released"),
223
- Schema$1.Literal("message.sent"),
224
- Schema$1.Literal("thread.created"),
225
- Schema$1.Literal("action.proposed"),
226
- Schema$1.Literal("action.policy_decided"),
227
- Schema$1.Literal("action.approval_requested"),
228
- Schema$1.Literal("action.approval_resolved"),
229
- Schema$1.Literal("action.accepted"),
230
- Schema$1.Literal("action.executed"),
231
- Schema$1.Literal("action.failed")
213
+ type: Schema.Union([
214
+ Schema.Literal("mailbox.created"),
215
+ Schema.Literal("endpoint.attached"),
216
+ Schema.Literal("endpoint.detached"),
217
+ Schema.Literal("message.received"),
218
+ Schema.Literal("message.released"),
219
+ Schema.Literal("message.sent"),
220
+ Schema.Literal("thread.created"),
221
+ Schema.Literal("action.proposed"),
222
+ Schema.Literal("action.policy_decided"),
223
+ Schema.Literal("action.approval_requested"),
224
+ Schema.Literal("action.approval_resolved"),
225
+ Schema.Literal("action.accepted"),
226
+ Schema.Literal("action.executed"),
227
+ Schema.Literal("action.failed")
232
228
  ]),
233
- threadId: Schema$1.Union([MailboxThreadId, Schema$1.Null]),
234
- actionId: Schema$1.Union([MailboxActionId, Schema$1.Null]),
235
- actor: Schema$1.Struct({
236
- kind: Schema$1.Union([
237
- Schema$1.Literal("user"),
238
- Schema$1.Literal("apiKey"),
239
- Schema$1.Literal("extension"),
240
- Schema$1.Literal("externalAgent"),
241
- Schema$1.Literal("samvaAgent"),
242
- Schema$1.Literal("system")
229
+ threadId: Schema.Union([MailboxThreadId, Schema.Null]),
230
+ actionId: Schema.Union([MailboxActionId, Schema.Null]),
231
+ actor: Schema.Struct({
232
+ kind: Schema.Union([
233
+ Schema.Literal("user"),
234
+ Schema.Literal("apiKey"),
235
+ Schema.Literal("extension"),
236
+ Schema.Literal("externalAgent"),
237
+ Schema.Literal("samvaAgent"),
238
+ Schema.Literal("system")
243
239
  ]),
244
- id: Schema$1.String,
245
- displayName: Schema$1.optionalKey(Schema$1.Union([Schema$1.String, Schema$1.Null]))
240
+ id: Schema.String,
241
+ displayName: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null]))
246
242
  }),
247
- payload: Schema$1.Record(Schema$1.String, JsonValue),
248
- occurredAt: Schema$1.String
243
+ payload: Schema.Record(Schema.String, JsonValue),
244
+ occurredAt: Schema.String
249
245
  }).annotate({ identifier: "MailboxEvent" });
250
- const MailboxFolderCount = /* @__PURE__ */ Schema$1.Struct({
246
+ const MailboxFolderCount = /* @__PURE__ */ Schema.Struct({
251
247
  folder: MailboxThreadFolder,
252
- count: Schema$1.Finite.check(Schema$1.isInt().annotate({ expected: "an integer" })).check(Schema$1.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })),
253
- unreadCount: Schema$1.Finite.check(Schema$1.isInt().annotate({ expected: "an integer" })).check(Schema$1.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" }))
248
+ count: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })),
249
+ unreadCount: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" }))
254
250
  }).annotate({ identifier: "MailboxFolderCount" });
255
- const MailboxGrant = /* @__PURE__ */ Schema$1.Struct({
251
+ const MailboxGrant = /* @__PURE__ */ Schema.Struct({
256
252
  id: MailboxGrantId,
257
- actor: Schema$1.Struct({
258
- kind: Schema$1.Union([
259
- Schema$1.Literal("user"),
260
- Schema$1.Literal("apiKey"),
261
- Schema$1.Literal("extension"),
262
- Schema$1.Literal("externalAgent"),
263
- Schema$1.Literal("samvaAgent"),
264
- Schema$1.Literal("system")
253
+ actor: Schema.Struct({
254
+ kind: Schema.Union([
255
+ Schema.Literal("user"),
256
+ Schema.Literal("apiKey"),
257
+ Schema.Literal("extension"),
258
+ Schema.Literal("externalAgent"),
259
+ Schema.Literal("samvaAgent"),
260
+ Schema.Literal("system")
265
261
  ]),
266
- id: Schema$1.String,
267
- displayName: Schema$1.optionalKey(Schema$1.Union([Schema$1.String, Schema$1.Null]))
262
+ id: Schema.String,
263
+ displayName: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null]))
268
264
  }),
269
- permissions: Schema$1.Array(Schema$1.Union([
270
- Schema$1.Literal("mailbox:read"),
271
- Schema$1.Literal("mailbox:configure"),
272
- Schema$1.Literal("thread:read"),
273
- Schema$1.Literal("thread:write"),
274
- Schema$1.Literal("label:write"),
275
- Schema$1.Literal("draft:write"),
276
- Schema$1.Literal("note:write"),
277
- Schema$1.Literal("action:propose"),
278
- Schema$1.Literal("action:approve"),
279
- Schema$1.Literal("policy:read"),
280
- Schema$1.Literal("quarantine:read"),
281
- Schema$1.Literal("quarantine:release")
265
+ permissions: Schema.Array(Schema.Union([
266
+ Schema.Literal("mailbox:read"),
267
+ Schema.Literal("mailbox:configure"),
268
+ Schema.Literal("thread:read"),
269
+ Schema.Literal("thread:write"),
270
+ Schema.Literal("label:write"),
271
+ Schema.Literal("draft:write"),
272
+ Schema.Literal("note:write"),
273
+ Schema.Literal("action:propose"),
274
+ Schema.Literal("action:approve"),
275
+ Schema.Literal("policy:read"),
276
+ Schema.Literal("quarantine:read"),
277
+ Schema.Literal("quarantine:release")
282
278
  ])),
283
279
  sendMode: MailboxSendMode,
284
- createdAt: Schema$1.String
280
+ createdAt: Schema.String
285
281
  }).annotate({ identifier: "MailboxGrant" });
286
- const MailboxLabel = /* @__PURE__ */ Schema$1.Struct({
282
+ const MailboxLabel = /* @__PURE__ */ Schema.Struct({
287
283
  id: MailboxLabelId,
288
- slug: Schema$1.String,
289
- displayName: Schema$1.String,
290
- color: Schema$1.Union([Schema$1.Union([
291
- Schema$1.Literal("billing"),
292
- Schema$1.Literal("domain"),
293
- Schema$1.Literal("agent"),
294
- Schema$1.Literal("routing"),
295
- Schema$1.Literal("important"),
296
- Schema$1.Literal("neutral")
297
- ]), Schema$1.Null]),
298
- createdAt: Schema$1.String,
299
- updatedAt: Schema$1.String
284
+ slug: Schema.String,
285
+ displayName: Schema.String,
286
+ color: Schema.Union([Schema.Union([
287
+ Schema.Literal("billing"),
288
+ Schema.Literal("domain"),
289
+ Schema.Literal("agent"),
290
+ Schema.Literal("routing"),
291
+ Schema.Literal("important"),
292
+ Schema.Literal("neutral")
293
+ ]), Schema.Null]),
294
+ createdAt: Schema.String,
295
+ updatedAt: Schema.String
300
296
  }).annotate({ identifier: "MailboxLabel" });
301
- const MailboxMessageSummary = /* @__PURE__ */ Schema$1.Struct({
297
+ const MailboxMessageSummary = /* @__PURE__ */ Schema.Struct({
302
298
  id: MessageId,
303
299
  channel: MailboxChannel,
304
- direction: Schema$1.Union([Schema$1.Literal("inbound"), Schema$1.Literal("outbound")]),
300
+ direction: Schema.Union([Schema.Literal("inbound"), Schema.Literal("outbound")]),
305
301
  from: MailboxMessageSender,
306
- to: Schema$1.Array(Schema$1.String),
307
- subject: Schema$1.Union([Schema$1.String, Schema$1.Null]),
308
- preview: Schema$1.Union([Schema$1.String, Schema$1.Null]),
309
- hasAttachments: Schema$1.Boolean,
310
- occurredAt: Schema$1.String
302
+ to: Schema.Array(Schema.String),
303
+ subject: Schema.Union([Schema.String, Schema.Null]),
304
+ preview: Schema.Union([Schema.String, Schema.Null]),
305
+ hasAttachments: Schema.Boolean,
306
+ occurredAt: Schema.String
311
307
  }).annotate({ identifier: "MailboxMessageSummary" });
312
- const MailboxMessage = /* @__PURE__ */ Schema$1.Struct({
308
+ const MailboxMessage = /* @__PURE__ */ Schema.Struct({
313
309
  id: MessageId,
314
310
  threadId: MailboxThreadId,
315
311
  conversationId: ConversationId,
316
- direction: Schema$1.Union([Schema$1.Literal("inbound"), Schema$1.Literal("outbound")]),
312
+ direction: Schema.Union([Schema.Literal("inbound"), Schema.Literal("outbound")]),
317
313
  from: MailboxMessageSender,
318
- sentBy: Schema$1.optionalKey(Schema$1.Union([Schema$1.Struct({
319
- kind: Schema$1.Union([
320
- Schema$1.Literal("user"),
321
- Schema$1.Literal("apiKey"),
322
- Schema$1.Literal("extension"),
323
- Schema$1.Literal("externalAgent"),
324
- Schema$1.Literal("samvaAgent"),
325
- Schema$1.Literal("system")
314
+ sentBy: Schema.optionalKey(Schema.Union([Schema.Struct({
315
+ kind: Schema.Union([
316
+ Schema.Literal("user"),
317
+ Schema.Literal("apiKey"),
318
+ Schema.Literal("extension"),
319
+ Schema.Literal("externalAgent"),
320
+ Schema.Literal("samvaAgent"),
321
+ Schema.Literal("system")
326
322
  ]),
327
- id: Schema$1.String,
328
- displayName: Schema$1.optionalKey(Schema$1.Union([Schema$1.String, Schema$1.Null]))
329
- }), Schema$1.Null])),
330
- occurredAt: Schema$1.String,
331
- channel: Schema$1.Literal("email"),
332
- recipients: Schema$1.Array(MailboxMessageRecipient),
333
- replyTo: Schema$1.Array(Schema$1.String),
334
- subject: Schema$1.optionalKey(Schema$1.Union([Schema$1.String, Schema$1.Null])),
335
- text: Schema$1.optionalKey(Schema$1.Union([Schema$1.String, Schema$1.Null])),
336
- html: Schema$1.optionalKey(Schema$1.Union([Schema$1.String, Schema$1.Null])),
337
- replyText: Schema$1.optionalKey(Schema$1.Union([Schema$1.String, Schema$1.Null])),
338
- headers: Schema$1.Struct({
339
- messageId: Schema$1.Union([Schema$1.String, Schema$1.Null]),
340
- inReplyTo: Schema$1.Union([Schema$1.String, Schema$1.Null]),
341
- references: Schema$1.Array(Schema$1.String)
323
+ id: Schema.String,
324
+ displayName: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null]))
325
+ }), Schema.Null])),
326
+ occurredAt: Schema.String,
327
+ channel: Schema.Literal("email"),
328
+ recipients: Schema.Array(MailboxMessageRecipient),
329
+ replyTo: Schema.Array(Schema.String),
330
+ subject: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
331
+ text: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
332
+ html: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
333
+ replyText: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
334
+ headers: Schema.Struct({
335
+ messageId: Schema.Union([Schema.String, Schema.Null]),
336
+ inReplyTo: Schema.Union([Schema.String, Schema.Null]),
337
+ references: Schema.Array(Schema.String)
342
338
  }),
343
- authentication: Schema$1.Union([MailboxMessageAuthentication, Schema$1.Null]),
344
- attachments: Schema$1.Array(Schema$1.Struct({
339
+ authentication: Schema.Union([MailboxMessageAuthentication, Schema.Null]),
340
+ attachments: Schema.Array(Schema.Struct({
345
341
  id: AttachmentId,
346
- filename: Schema$1.String,
347
- contentType: Schema$1.String,
348
- size: Schema$1.Finite.check(Schema$1.isInt().annotate({ expected: "an integer" })).check(Schema$1.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })),
349
- isInline: Schema$1.Boolean
342
+ filename: Schema.String,
343
+ contentType: Schema.String,
344
+ size: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })),
345
+ isInline: Schema.Boolean
350
346
  }))
351
347
  }).annotate({ identifier: "MailboxMessage" });
352
- const MailboxPolicy = /* @__PURE__ */ Schema$1.Struct({
348
+ const MailboxPolicy = /* @__PURE__ */ Schema.Struct({
353
349
  id: MailboxPolicyId,
354
- name: Schema$1.String,
350
+ name: Schema.String,
355
351
  outcome: MailboxPolicyOutcomeKind,
356
- reason: Schema$1.Union([Schema$1.String, Schema$1.Null]),
357
- enabled: Schema$1.Boolean,
358
- createdAt: Schema$1.String,
359
- updatedAt: Schema$1.String
352
+ reason: Schema.Union([Schema.String, Schema.Null]),
353
+ enabled: Schema.Boolean,
354
+ createdAt: Schema.String,
355
+ updatedAt: Schema.String
360
356
  }).annotate({ identifier: "MailboxPolicy" });
361
- const MailboxThreadSummary = /* @__PURE__ */ Schema$1.Struct({
357
+ const MailboxThreadSummary = /* @__PURE__ */ Schema.Struct({
362
358
  id: MailboxThreadId,
363
359
  channel: MailboxChannel,
364
- endpointId: Schema$1.Union([MailboxEndpointId, Schema$1.Null]),
365
- subject: Schema$1.Union([Schema$1.String, Schema$1.Null]),
366
- preview: Schema$1.Union([Schema$1.String, Schema$1.Null]),
367
- from: Schema$1.Union([MailboxThreadSender, Schema$1.Null]),
368
- messageCount: Schema$1.Finite.check(Schema$1.isInt().annotate({ expected: "an integer" })).check(Schema$1.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })),
369
- hasAttachments: Schema$1.Boolean,
370
- hasDraft: Schema$1.Boolean,
360
+ endpointId: Schema.Union([MailboxEndpointId, Schema.Null]),
361
+ subject: Schema.Union([Schema.String, Schema.Null]),
362
+ preview: Schema.Union([Schema.String, Schema.Null]),
363
+ from: Schema.Union([MailboxThreadSender, Schema.Null]),
364
+ messageCount: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })),
365
+ hasAttachments: Schema.Boolean,
366
+ hasDraft: Schema.Boolean,
371
367
  folder: MailboxThreadFolder,
372
368
  priority: MailboxThreadPriority,
373
- labels: Schema$1.Array(MailboxLabelId),
374
- read: Schema$1.Boolean,
375
- starred: Schema$1.Boolean,
376
- snoozedUntil: Schema$1.Union([Schema$1.String, Schema$1.Null]),
377
- lastActivityAt: Schema$1.String
369
+ labels: Schema.Array(MailboxLabelId),
370
+ read: Schema.Boolean,
371
+ starred: Schema.Boolean,
372
+ snoozedUntil: Schema.Union([Schema.String, Schema.Null]),
373
+ lastActivityAt: Schema.String
378
374
  }).annotate({ identifier: "MailboxThreadSummary" });
379
- const MailboxThreadState = /* @__PURE__ */ Schema$1.Struct({
375
+ const MailboxThreadState = /* @__PURE__ */ Schema.Struct({
380
376
  id: MailboxThreadId,
381
377
  folder: MailboxThreadFolder,
382
378
  priority: MailboxThreadPriority,
383
- labels: Schema$1.Array(MailboxLabelId),
384
- read: Schema$1.Boolean,
385
- starred: Schema$1.Boolean,
386
- snoozedUntil: Schema$1.Union([Schema$1.String, Schema$1.Null])
379
+ labels: Schema.Array(MailboxLabelId),
380
+ read: Schema.Boolean,
381
+ starred: Schema.Boolean,
382
+ snoozedUntil: Schema.Union([Schema.String, Schema.Null])
387
383
  }).annotate({ identifier: "MailboxThreadState" });
388
- const MailboxThread = /* @__PURE__ */ Schema$1.Struct({
384
+ const MailboxThread = /* @__PURE__ */ Schema.Struct({
389
385
  id: MailboxThreadId,
390
386
  channel: MailboxChannel,
391
- endpointId: Schema$1.Union([MailboxEndpointId, Schema$1.Null]),
392
- subject: Schema$1.Union([Schema$1.String, Schema$1.Null]),
393
- preview: Schema$1.Union([Schema$1.String, Schema$1.Null]),
394
- from: Schema$1.Union([MailboxThreadSender, Schema$1.Null]),
395
- messageCount: Schema$1.Finite.check(Schema$1.isInt().annotate({ expected: "an integer" })).check(Schema$1.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })),
396
- hasAttachments: Schema$1.Boolean,
397
- hasDraft: Schema$1.Boolean,
387
+ endpointId: Schema.Union([MailboxEndpointId, Schema.Null]),
388
+ subject: Schema.Union([Schema.String, Schema.Null]),
389
+ preview: Schema.Union([Schema.String, Schema.Null]),
390
+ from: Schema.Union([MailboxThreadSender, Schema.Null]),
391
+ messageCount: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })),
392
+ hasAttachments: Schema.Boolean,
393
+ hasDraft: Schema.Boolean,
398
394
  folder: MailboxThreadFolder,
399
395
  priority: MailboxThreadPriority,
400
- labels: Schema$1.Array(MailboxLabelId),
401
- read: Schema$1.Boolean,
402
- starred: Schema$1.Boolean,
403
- snoozedUntil: Schema$1.Union([Schema$1.String, Schema$1.Null]),
404
- lastActivityAt: Schema$1.String,
396
+ labels: Schema.Array(MailboxLabelId),
397
+ read: Schema.Boolean,
398
+ starred: Schema.Boolean,
399
+ snoozedUntil: Schema.Union([Schema.String, Schema.Null]),
400
+ lastActivityAt: Schema.String,
405
401
  conversationId: ConversationId,
406
- participants: Schema$1.Array(MailboxThreadParticipant),
407
- createdAt: Schema$1.String
402
+ participants: Schema.Array(MailboxThreadParticipant),
403
+ createdAt: Schema.String
408
404
  }).annotate({ identifier: "MailboxThread" });
409
- const MailboxNote = /* @__PURE__ */ Schema$1.Struct({
405
+ const MailboxNote = /* @__PURE__ */ Schema.Struct({
410
406
  id: MailboxNoteId,
411
- author: Schema$1.Struct({
412
- kind: Schema$1.Union([
413
- Schema$1.Literal("user"),
414
- Schema$1.Literal("apiKey"),
415
- Schema$1.Literal("extension"),
416
- Schema$1.Literal("externalAgent"),
417
- Schema$1.Literal("samvaAgent"),
418
- Schema$1.Literal("system")
407
+ author: Schema.Struct({
408
+ kind: Schema.Union([
409
+ Schema.Literal("user"),
410
+ Schema.Literal("apiKey"),
411
+ Schema.Literal("extension"),
412
+ Schema.Literal("externalAgent"),
413
+ Schema.Literal("samvaAgent"),
414
+ Schema.Literal("system")
419
415
  ]),
420
- id: Schema$1.String,
421
- displayName: Schema$1.optionalKey(Schema$1.Union([Schema$1.String, Schema$1.Null]))
416
+ id: Schema.String,
417
+ displayName: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null]))
422
418
  }),
423
- body: Schema$1.String,
424
- color: Schema$1.Union([Schema$1.String, Schema$1.Null]),
425
- pinned: Schema$1.Boolean,
426
- createdAt: Schema$1.String,
427
- updatedAt: Schema$1.String
419
+ body: Schema.String,
420
+ color: Schema.Union([Schema.String, Schema.Null]),
421
+ pinned: Schema.Boolean,
422
+ createdAt: Schema.String,
423
+ updatedAt: Schema.String
428
424
  }).annotate({ identifier: "MailboxNote" });
429
- const MailboxSendSnapshot = /* @__PURE__ */ Schema$1.Struct({
430
- channel: Schema$1.Literal("email"),
431
- draftRevision: Schema$1.Finite.check(Schema$1.isInt().annotate({ expected: "an integer" })).check(Schema$1.isGreaterThan(0).annotate({ expected: "a value greater than 0" })),
432
- from: Schema$1.String,
433
- fromName: Schema$1.Union([Schema$1.String, Schema$1.Null]),
434
- to: Schema$1.TupleWithRest(Schema$1.Tuple([Schema$1.String]), [Schema$1.String]),
435
- cc: Schema$1.Array(Schema$1.String),
436
- bcc: Schema$1.Array(Schema$1.String),
437
- replyTo: Schema$1.Array(Schema$1.String),
438
- subject: Schema$1.String,
439
- text: Schema$1.Union([Schema$1.String, Schema$1.Null]),
440
- html: Schema$1.Union([Schema$1.String, Schema$1.Null]),
441
- attachments: Schema$1.Array(EmailAttachment).check(Schema$1.isMaxLength(10).annotate({ expected: "a value with a length of at most 10" })),
442
- threadId: Schema$1.Union([MailboxThreadId, Schema$1.Null]),
443
- conversationId: Schema$1.Union([ConversationId, Schema$1.Null]),
444
- inReplyToMessageId: Schema$1.Union([MessageId, Schema$1.Null])
425
+ const MailboxSendSnapshot = /* @__PURE__ */ Schema.Struct({
426
+ channel: Schema.Literal("email"),
427
+ draftRevision: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThan(0).annotate({ expected: "a value greater than 0" })),
428
+ from: Schema.String,
429
+ fromName: Schema.Union([Schema.String, Schema.Null]),
430
+ to: Schema.TupleWithRest(Schema.Tuple([Schema.String]), [Schema.String]),
431
+ cc: Schema.Array(Schema.String),
432
+ bcc: Schema.Array(Schema.String),
433
+ replyTo: Schema.Array(Schema.String),
434
+ subject: Schema.String,
435
+ text: Schema.Union([Schema.String, Schema.Null]),
436
+ html: Schema.Union([Schema.String, Schema.Null]),
437
+ attachments: Schema.Array(EmailAttachment).check(Schema.isMaxLength(10).annotate({ expected: "a value with a length of at most 10" })),
438
+ threadId: Schema.Union([MailboxThreadId, Schema.Null]),
439
+ conversationId: Schema.Union([ConversationId, Schema.Null]),
440
+ inReplyToMessageId: Schema.Union([MessageId, Schema.Null])
445
441
  }).annotate({ identifier: "MailboxSendSnapshot" });
446
- const MailboxDraft = /* @__PURE__ */ Schema$1.Struct({
442
+ const MailboxDraft = /* @__PURE__ */ Schema.Struct({
447
443
  id: MailboxDraftId,
448
- channel: Schema$1.Literal("email"),
449
- threadId: Schema$1.Union([MailboxThreadId, Schema$1.Null]),
450
- inReplyToMessageId: Schema$1.Union([MessageId, Schema$1.Null]),
444
+ channel: Schema.Literal("email"),
445
+ threadId: Schema.Union([MailboxThreadId, Schema.Null]),
446
+ inReplyToMessageId: Schema.Union([MessageId, Schema.Null]),
451
447
  state: MailboxDraftState,
452
- lockedByActionId: Schema$1.Union([MailboxActionId, Schema$1.Null]),
453
- to: Schema$1.Array(Schema$1.String),
454
- subject: Schema$1.Union([Schema$1.String, Schema$1.Null]),
455
- createdAt: Schema$1.String,
456
- updatedAt: Schema$1.String,
457
- endpointId: Schema$1.Union([MailboxEndpointId, Schema$1.Null]),
458
- cc: Schema$1.Array(Schema$1.String),
459
- bcc: Schema$1.Array(Schema$1.String),
460
- replyTo: Schema$1.Array(Schema$1.String),
461
- html: Schema$1.Union([Schema$1.String, Schema$1.Null]),
462
- text: Schema$1.Union([Schema$1.String, Schema$1.Null]),
463
- attachments: Schema$1.Array(EmailAttachment).check(Schema$1.isMaxLength(10).annotate({ expected: "a value with a length of at most 10" }))
448
+ lockedByActionId: Schema.Union([MailboxActionId, Schema.Null]),
449
+ to: Schema.Array(Schema.String),
450
+ subject: Schema.Union([Schema.String, Schema.Null]),
451
+ createdAt: Schema.String,
452
+ updatedAt: Schema.String,
453
+ endpointId: Schema.Union([MailboxEndpointId, Schema.Null]),
454
+ cc: Schema.Array(Schema.String),
455
+ bcc: Schema.Array(Schema.String),
456
+ replyTo: Schema.Array(Schema.String),
457
+ html: Schema.Union([Schema.String, Schema.Null]),
458
+ text: Schema.Union([Schema.String, Schema.Null]),
459
+ attachments: Schema.Array(EmailAttachment).check(Schema.isMaxLength(10).annotate({ expected: "a value with a length of at most 10" }))
464
460
  }).annotate({ identifier: "MailboxDraft" });
465
- const MailboxPage = /* @__PURE__ */ Schema$1.Struct({
466
- items: Schema$1.Array(MailboxSummary),
467
- nextCursor: Schema$1.Union([Schema$1.String, Schema$1.Null])
461
+ const MailboxPage = /* @__PURE__ */ Schema.Struct({
462
+ items: Schema.Array(MailboxSummary),
463
+ nextCursor: Schema.Union([Schema.String, Schema.Null])
468
464
  }).annotate({ identifier: "MailboxPage" });
469
- const Mailbox = /* @__PURE__ */ Schema$1.Struct({
465
+ const Mailbox = /* @__PURE__ */ Schema.Struct({
470
466
  id: MailboxId,
471
- namespaceId: Schema$1.Union([NamespaceId, Schema$1.Null]),
472
- slug: Schema$1.String,
473
- name: Schema$1.String,
467
+ namespaceId: Schema.Union([NamespaceId, Schema.Null]),
468
+ slug: Schema.String,
469
+ name: Schema.String,
474
470
  status: MailboxStatus,
475
- primaryAddress: Schema$1.Union([Schema$1.String, Schema$1.Null]),
476
- createdAt: Schema$1.String,
477
- description: Schema$1.Union([Schema$1.String, Schema$1.Null]),
471
+ primaryAddress: Schema.Union([Schema.String, Schema.Null]),
472
+ createdAt: Schema.String,
473
+ description: Schema.Union([Schema.String, Schema.Null]),
478
474
  metadata: MailboxMetadata,
479
- endpoints: Schema$1.Array(MailboxEndpoint),
480
- updatedAt: Schema$1.String
475
+ endpoints: Schema.Array(MailboxEndpoint),
476
+ updatedAt: Schema.String
481
477
  }).annotate({ identifier: "Mailbox" });
482
- const MailboxQuarantinePage = /* @__PURE__ */ Schema$1.Struct({
483
- items: Schema$1.Array(MailboxQuarantinedMessage),
484
- nextCursor: Schema$1.Union([Schema$1.String, Schema$1.Null])
478
+ const MailboxQuarantinePage = /* @__PURE__ */ Schema.Struct({
479
+ items: Schema.Array(MailboxQuarantinedMessage),
480
+ nextCursor: Schema.Union([Schema.String, Schema.Null])
485
481
  }).annotate({ identifier: "MailboxQuarantinePage" });
486
- const MailboxNonSendAction = /* @__PURE__ */ Schema$1.Struct({
482
+ const MailboxNonSendAction = /* @__PURE__ */ Schema.Struct({
487
483
  id: MailboxActionId,
488
- source: Schema$1.Union([
489
- Schema$1.Literal("humanUi"),
490
- Schema$1.Literal("externalApi"),
491
- Schema$1.Literal("aiSdkTool"),
492
- Schema$1.Literal("extension"),
493
- Schema$1.Literal("externalAgent"),
494
- Schema$1.Literal("samvaManagedAgent"),
495
- Schema$1.Literal("system")
484
+ source: Schema.Union([
485
+ Schema.Literal("humanUi"),
486
+ Schema.Literal("externalApi"),
487
+ Schema.Literal("aiSdkTool"),
488
+ Schema.Literal("extension"),
489
+ Schema.Literal("externalAgent"),
490
+ Schema.Literal("samvaManagedAgent"),
491
+ Schema.Literal("system")
496
492
  ]),
497
- proposedBy: Schema$1.Struct({
498
- kind: Schema$1.Union([
499
- Schema$1.Literal("user"),
500
- Schema$1.Literal("apiKey"),
501
- Schema$1.Literal("extension"),
502
- Schema$1.Literal("externalAgent"),
503
- Schema$1.Literal("samvaAgent"),
504
- Schema$1.Literal("system")
493
+ proposedBy: Schema.Struct({
494
+ kind: Schema.Union([
495
+ Schema.Literal("user"),
496
+ Schema.Literal("apiKey"),
497
+ Schema.Literal("extension"),
498
+ Schema.Literal("externalAgent"),
499
+ Schema.Literal("samvaAgent"),
500
+ Schema.Literal("system")
505
501
  ]),
506
- id: Schema$1.String,
507
- displayName: Schema$1.optionalKey(Schema$1.Union([Schema$1.String, Schema$1.Null]))
502
+ id: Schema.String,
503
+ displayName: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null]))
508
504
  }),
509
- threadId: Schema$1.Union([MailboxThreadId, Schema$1.Null]),
510
- draftId: Schema$1.Union([MailboxDraftId, Schema$1.Null]),
511
- decision: Schema$1.Union([MailboxActionDecision, Schema$1.Null]),
512
- createdAt: Schema$1.String,
513
- updatedAt: Schema$1.String,
514
- type: Schema$1.Union([
515
- Schema$1.Literal("updateDraft"),
516
- Schema$1.Literal("createNote"),
517
- Schema$1.Literal("assignThread"),
518
- Schema$1.Literal("changeThreadState"),
519
- Schema$1.Literal("call"),
520
- Schema$1.Literal("extensionRequest")
505
+ threadId: Schema.Union([MailboxThreadId, Schema.Null]),
506
+ draftId: Schema.Union([MailboxDraftId, Schema.Null]),
507
+ decision: Schema.Union([MailboxActionDecision, Schema.Null]),
508
+ createdAt: Schema.String,
509
+ updatedAt: Schema.String,
510
+ type: Schema.Union([
511
+ Schema.Literal("updateDraft"),
512
+ Schema.Literal("createNote"),
513
+ Schema.Literal("assignThread"),
514
+ Schema.Literal("changeThreadState"),
515
+ Schema.Literal("call"),
516
+ Schema.Literal("extensionRequest")
521
517
  ]),
522
- state: Schema$1.Union([
523
- Schema$1.Literal("proposed"),
524
- Schema$1.Literal("allowed"),
525
- Schema$1.Literal("approvalRequired"),
526
- Schema$1.Literal("policyDenied"),
527
- Schema$1.Literal("approved"),
528
- Schema$1.Literal("approvalDenied"),
529
- Schema$1.Literal("executing"),
530
- Schema$1.Literal("executed"),
531
- Schema$1.Literal("failed")
518
+ state: Schema.Union([
519
+ Schema.Literal("proposed"),
520
+ Schema.Literal("allowed"),
521
+ Schema.Literal("approvalRequired"),
522
+ Schema.Literal("policyDenied"),
523
+ Schema.Literal("approved"),
524
+ Schema.Literal("approvalDenied"),
525
+ Schema.Literal("executing"),
526
+ Schema.Literal("executed"),
527
+ Schema.Literal("failed")
532
528
  ])
533
529
  }).annotate({ identifier: "MailboxNonSendAction" });
534
- const MailboxPendingSendReceipt = /* @__PURE__ */ Schema$1.Struct({
530
+ const MailboxPendingSendReceipt = /* @__PURE__ */ Schema.Struct({
535
531
  actionId: MailboxActionId,
536
- draftId: Schema$1.Union([MailboxDraftId, Schema$1.Null]),
537
- messageId: Schema$1.Union([MessageId, Schema$1.Null]),
538
- threadId: Schema$1.Union([MailboxThreadId, Schema$1.Null]),
539
- state: Schema$1.Union([
540
- Schema$1.Literal("approvalRequired"),
541
- Schema$1.Literal("queued"),
542
- Schema$1.Literal("accepted"),
543
- Schema$1.Literal("completed"),
544
- Schema$1.Literal("notSent"),
545
- Schema$1.Literal("uncertain")
532
+ draftId: Schema.Union([MailboxDraftId, Schema.Null]),
533
+ messageId: Schema.Union([MessageId, Schema.Null]),
534
+ threadId: Schema.Union([MailboxThreadId, Schema.Null]),
535
+ state: Schema.Union([
536
+ Schema.Literal("approvalRequired"),
537
+ Schema.Literal("queued"),
538
+ Schema.Literal("accepted"),
539
+ Schema.Literal("completed"),
540
+ Schema.Literal("notSent"),
541
+ Schema.Literal("uncertain")
546
542
  ]),
547
- acceptedAt: Schema$1.Union([Schema$1.String, Schema$1.Null]),
548
- waitReason: Schema$1.Union([Schema$1.Union([
549
- Schema$1.Literal("rate"),
550
- Schema$1.Literal("daily-quota"),
551
- Schema$1.Literal("domain-health"),
552
- Schema$1.Literal("sending-paused"),
553
- Schema$1.Literal("upstream-unavailable"),
554
- Schema$1.Literal("retry"),
555
- Schema$1.Literal("campaign-paused"),
556
- Schema$1.Literal("domain-warming"),
557
- Schema$1.Literal("onboarding-review"),
558
- Schema$1.Literal("content-review"),
559
- Schema$1.Literal("screening-unavailable")
560
- ]), Schema$1.Null]),
561
- reviewExpectedAt: Schema$1.Union([Schema$1.String, Schema$1.Null]),
562
- skippedRecipients: Schema$1.Array(SkippedRecipient),
563
- executeUntil: Schema$1.Union([Schema$1.String, Schema$1.Null]),
564
- retryAt: Schema$1.Union([Schema$1.String, Schema$1.Null]),
565
- problem: Schema$1.Union([MailboxSendOutcome, Schema$1.Null]),
566
- retryEligible: Schema$1.Boolean,
567
- decision: Schema$1.Union([MailboxActionDecision, Schema$1.Null]),
568
- createdAt: Schema$1.String,
569
- updatedAt: Schema$1.String
543
+ acceptedAt: Schema.Union([Schema.String, Schema.Null]),
544
+ waitReason: Schema.Union([Schema.Union([
545
+ Schema.Literal("rate"),
546
+ Schema.Literal("daily-quota"),
547
+ Schema.Literal("domain-health"),
548
+ Schema.Literal("sending-paused"),
549
+ Schema.Literal("upstream-unavailable"),
550
+ Schema.Literal("retry"),
551
+ Schema.Literal("campaign-paused"),
552
+ Schema.Literal("domain-warming"),
553
+ Schema.Literal("onboarding-review"),
554
+ Schema.Literal("content-review"),
555
+ Schema.Literal("screening-unavailable")
556
+ ]), Schema.Null]),
557
+ reviewExpectedAt: Schema.Union([Schema.String, Schema.Null]),
558
+ skippedRecipients: Schema.Array(SkippedRecipient),
559
+ executeUntil: Schema.Union([Schema.String, Schema.Null]),
560
+ retryAt: Schema.Union([Schema.String, Schema.Null]),
561
+ problem: Schema.Union([MailboxSendOutcome, Schema.Null]),
562
+ retryEligible: Schema.Boolean,
563
+ decision: Schema.Union([MailboxActionDecision, Schema.Null]),
564
+ createdAt: Schema.String,
565
+ updatedAt: Schema.String
570
566
  }).annotate({ identifier: "MailboxPendingSendReceipt" });
571
- const MailboxDraftPage = /* @__PURE__ */ Schema$1.Struct({
572
- items: Schema$1.Array(MailboxDraftSummary),
573
- nextCursor: Schema$1.Union([Schema$1.String, Schema$1.Null])
567
+ const MailboxDraftPage = /* @__PURE__ */ Schema.Struct({
568
+ items: Schema.Array(MailboxDraftSummary),
569
+ nextCursor: Schema.Union([Schema.String, Schema.Null])
574
570
  }).annotate({ identifier: "MailboxDraftPage" });
575
- const MailboxEventPage = /* @__PURE__ */ Schema$1.Struct({
576
- items: Schema$1.Array(MailboxEvent),
577
- nextCursor: Schema$1.Union([Schema$1.String, Schema$1.Null])
571
+ const MailboxEventPage = /* @__PURE__ */ Schema.Struct({
572
+ items: Schema.Array(MailboxEvent),
573
+ nextCursor: Schema.Union([Schema.String, Schema.Null])
578
574
  }).annotate({ identifier: "MailboxEventPage" });
579
- const MailboxFolderCountList = /* @__PURE__ */ Schema$1.Struct({ items: Schema$1.Array(MailboxFolderCount) }).annotate({ identifier: "MailboxFolderCountList" });
580
- const MailboxGrantPage = /* @__PURE__ */ Schema$1.Struct({
581
- items: Schema$1.Array(MailboxGrant),
582
- nextCursor: Schema$1.Union([Schema$1.String, Schema$1.Null])
575
+ const MailboxFolderCountList = /* @__PURE__ */ Schema.Struct({ items: Schema.Array(MailboxFolderCount) }).annotate({ identifier: "MailboxFolderCountList" });
576
+ const MailboxGrantPage = /* @__PURE__ */ Schema.Struct({
577
+ items: Schema.Array(MailboxGrant),
578
+ nextCursor: Schema.Union([Schema.String, Schema.Null])
583
579
  }).annotate({ identifier: "MailboxGrantPage" });
584
- const MailboxLabelList = /* @__PURE__ */ Schema$1.Struct({ items: Schema$1.Array(MailboxLabel) }).annotate({ identifier: "MailboxLabelList" });
585
- const MailboxMessagePage = /* @__PURE__ */ Schema$1.Struct({
586
- items: Schema$1.Array(MailboxMessageSummary),
587
- nextCursor: Schema$1.Union([Schema$1.String, Schema$1.Null])
580
+ const MailboxLabelList = /* @__PURE__ */ Schema.Struct({ items: Schema.Array(MailboxLabel) }).annotate({ identifier: "MailboxLabelList" });
581
+ const MailboxMessagePage = /* @__PURE__ */ Schema.Struct({
582
+ items: Schema.Array(MailboxMessageSummary),
583
+ nextCursor: Schema.Union([Schema.String, Schema.Null])
588
584
  }).annotate({ identifier: "MailboxMessagePage" });
589
- const MailboxThreadContentPage = /* @__PURE__ */ Schema$1.Struct({
590
- items: Schema$1.Array(MailboxMessage),
591
- nextCursor: Schema$1.Union([Schema$1.String, Schema$1.Null])
585
+ const MailboxThreadContentPage = /* @__PURE__ */ Schema.Struct({
586
+ items: Schema.Array(MailboxMessage),
587
+ nextCursor: Schema.Union([Schema.String, Schema.Null])
592
588
  }).annotate({ identifier: "MailboxThreadContentPage" });
593
- const MailboxPolicyList = /* @__PURE__ */ Schema$1.Struct({ items: Schema$1.Array(MailboxPolicy) }).annotate({ identifier: "MailboxPolicyList" });
594
- const MailboxThreadPage = /* @__PURE__ */ Schema$1.Struct({
595
- items: Schema$1.Array(MailboxThreadSummary),
596
- nextCursor: Schema$1.Union([Schema$1.String, Schema$1.Null])
589
+ const MailboxPolicyList = /* @__PURE__ */ Schema.Struct({ items: Schema.Array(MailboxPolicy) }).annotate({ identifier: "MailboxPolicyList" });
590
+ const MailboxThreadPage = /* @__PURE__ */ Schema.Struct({
591
+ items: Schema.Array(MailboxThreadSummary),
592
+ nextCursor: Schema.Union([Schema.String, Schema.Null])
597
593
  }).annotate({ identifier: "MailboxThreadPage" });
598
- const MailboxNotePage = /* @__PURE__ */ Schema$1.Struct({
599
- items: Schema$1.Array(MailboxNote),
600
- nextCursor: Schema$1.Union([Schema$1.String, Schema$1.Null])
594
+ const MailboxNotePage = /* @__PURE__ */ Schema.Struct({
595
+ items: Schema.Array(MailboxNote),
596
+ nextCursor: Schema.Union([Schema.String, Schema.Null])
601
597
  }).annotate({ identifier: "MailboxNotePage" });
602
- const MailboxSendAction = /* @__PURE__ */ Schema$1.Struct({
598
+ const MailboxSendAction = /* @__PURE__ */ Schema.Struct({
603
599
  id: MailboxActionId,
604
- source: Schema$1.Union([
605
- Schema$1.Literal("humanUi"),
606
- Schema$1.Literal("externalApi"),
607
- Schema$1.Literal("aiSdkTool"),
608
- Schema$1.Literal("extension"),
609
- Schema$1.Literal("externalAgent"),
610
- Schema$1.Literal("samvaManagedAgent"),
611
- Schema$1.Literal("system")
600
+ source: Schema.Union([
601
+ Schema.Literal("humanUi"),
602
+ Schema.Literal("externalApi"),
603
+ Schema.Literal("aiSdkTool"),
604
+ Schema.Literal("extension"),
605
+ Schema.Literal("externalAgent"),
606
+ Schema.Literal("samvaManagedAgent"),
607
+ Schema.Literal("system")
612
608
  ]),
613
- proposedBy: Schema$1.Struct({
614
- kind: Schema$1.Union([
615
- Schema$1.Literal("user"),
616
- Schema$1.Literal("apiKey"),
617
- Schema$1.Literal("extension"),
618
- Schema$1.Literal("externalAgent"),
619
- Schema$1.Literal("samvaAgent"),
620
- Schema$1.Literal("system")
609
+ proposedBy: Schema.Struct({
610
+ kind: Schema.Union([
611
+ Schema.Literal("user"),
612
+ Schema.Literal("apiKey"),
613
+ Schema.Literal("extension"),
614
+ Schema.Literal("externalAgent"),
615
+ Schema.Literal("samvaAgent"),
616
+ Schema.Literal("system")
621
617
  ]),
622
- id: Schema$1.String,
623
- displayName: Schema$1.optionalKey(Schema$1.Union([Schema$1.String, Schema$1.Null]))
618
+ id: Schema.String,
619
+ displayName: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null]))
624
620
  }),
625
- threadId: Schema$1.Union([MailboxThreadId, Schema$1.Null]),
626
- draftId: Schema$1.Union([MailboxDraftId, Schema$1.Null]),
627
- decision: Schema$1.Union([MailboxActionDecision, Schema$1.Null]),
628
- createdAt: Schema$1.String,
629
- updatedAt: Schema$1.String,
630
- type: Schema$1.Union([Schema$1.Literal("sendMessage"), Schema$1.Literal("reply")]),
631
- state: Schema$1.Union([
632
- Schema$1.Literal("approvalRequired"),
633
- Schema$1.Literal("queued"),
634
- Schema$1.Literal("accepted"),
635
- Schema$1.Literal("completed"),
636
- Schema$1.Literal("notSent"),
637
- Schema$1.Literal("uncertain")
621
+ threadId: Schema.Union([MailboxThreadId, Schema.Null]),
622
+ draftId: Schema.Union([MailboxDraftId, Schema.Null]),
623
+ decision: Schema.Union([MailboxActionDecision, Schema.Null]),
624
+ createdAt: Schema.String,
625
+ updatedAt: Schema.String,
626
+ type: Schema.Union([Schema.Literal("sendMessage"), Schema.Literal("reply")]),
627
+ state: Schema.Union([
628
+ Schema.Literal("approvalRequired"),
629
+ Schema.Literal("queued"),
630
+ Schema.Literal("accepted"),
631
+ Schema.Literal("completed"),
632
+ Schema.Literal("notSent"),
633
+ Schema.Literal("uncertain")
638
634
  ]),
639
635
  send: MailboxSendReceipt,
640
- intent: Schema$1.Union([MailboxSendSnapshot, Schema$1.Null])
636
+ intent: Schema.Union([MailboxSendSnapshot, Schema.Null])
641
637
  }).annotate({ identifier: "MailboxSendAction" });
642
- const MailboxAction = /* @__PURE__ */ Schema$1.Union([MailboxSendAction, MailboxNonSendAction]).annotate({ identifier: "MailboxAction" });
643
- const MailboxPendingAction = /* @__PURE__ */ Schema$1.Union([MailboxSendAction, MailboxNonSendAction]).annotate({ identifier: "MailboxPendingAction" });
644
- const MailboxActionPage = /* @__PURE__ */ Schema$1.Struct({
645
- items: Schema$1.Array(MailboxAction),
646
- nextCursor: Schema$1.Union([Schema$1.String, Schema$1.Null])
638
+ const MailboxAction = /* @__PURE__ */ Schema.Union([MailboxSendAction, MailboxNonSendAction]).annotate({ identifier: "MailboxAction" });
639
+ const MailboxPendingAction = /* @__PURE__ */ Schema.Union([MailboxSendAction, MailboxNonSendAction]).annotate({ identifier: "MailboxPendingAction" });
640
+ const MailboxActionPage = /* @__PURE__ */ Schema.Struct({
641
+ items: Schema.Array(MailboxAction),
642
+ nextCursor: Schema.Union([Schema.String, Schema.Null])
647
643
  }).annotate({ identifier: "MailboxActionPage" });
648
- const MailboxesListQuery = /* @__PURE__ */ Schema$1.Struct({
649
- limit: Schema$1.optionalKey(Schema$1.Union([Schema$1.String, Schema$1.Null])),
650
- cursor: Schema$1.optionalKey(Schema$1.Union([Cursor, Schema$1.Null])),
651
- after: Schema$1.optionalKey(Schema$1.Union([Schema$1.String, Schema$1.Null])),
652
- before: Schema$1.optionalKey(Schema$1.Union([Schema$1.String, Schema$1.Null]))
644
+ const MailboxesListQuery = /* @__PURE__ */ Schema.Struct({
645
+ limit: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
646
+ cursor: Schema.optionalKey(Schema.Union([Cursor, Schema.Null])),
647
+ after: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
648
+ before: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null]))
653
649
  });
654
650
  const MailboxesList200 = MailboxPage;
655
651
  const MailboxesList401 = UnauthorizedError;
@@ -657,12 +653,12 @@ const MailboxesList403 = ForbiddenError;
657
653
  const MailboxesList422 = ValidationError;
658
654
  const MailboxesList500 = InternalError;
659
655
  const MailboxesList504 = GatewayTimeoutError;
660
- const MailboxesCreateRequestJson = /* @__PURE__ */ Schema$1.Struct({
661
- namespaceId: Schema$1.optionalKey(Schema$1.Union([NamespaceId, Schema$1.Null])),
656
+ const MailboxesCreateRequestJson = /* @__PURE__ */ Schema.Struct({
657
+ namespaceId: Schema.optionalKey(Schema.Union([NamespaceId, Schema.Null])),
662
658
  endpoint: CreateMailboxEndpointPayload,
663
- name: Schema$1.String,
664
- slug: Schema$1.optionalKey(Schema$1.Union([Schema$1.String, Schema$1.Null])),
665
- metadata: Schema$1.optionalKey(Schema$1.Union([MailboxMetadata, Schema$1.Null]))
659
+ name: Schema.String,
660
+ slug: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
661
+ metadata: Schema.optionalKey(Schema.Union([MailboxMetadata, Schema.Null]))
666
662
  });
667
663
  const MailboxesCreate201 = Mailbox;
668
664
  const MailboxesCreate401 = UnauthorizedError;
@@ -670,11 +666,11 @@ const MailboxesCreate402 = PaymentRequiredError;
670
666
  const MailboxesCreate403 = ForbiddenError;
671
667
  const MailboxesCreate404 = ResourceNotFoundError;
672
668
  const MailboxesCreate409 = ConflictError;
673
- const MailboxesCreate422 = /* @__PURE__ */ Schema$1.Union([ValidationError, MailboxChannelUnsupportedError]);
669
+ const MailboxesCreate422 = /* @__PURE__ */ Schema.Union([ValidationError, MailboxChannelUnsupportedError]);
674
670
  const MailboxesCreate500 = InternalError;
675
671
  const MailboxesCreate502 = BillingProviderError;
676
672
  const MailboxesCreate504 = GatewayTimeoutError;
677
- const MailboxesGetPathParams = /* @__PURE__ */ Schema$1.Struct({ id: MailboxId });
673
+ const MailboxesGetPathParams = /* @__PURE__ */ Schema.Struct({ id: MailboxId });
678
674
  const MailboxesGet200 = Mailbox;
679
675
  const MailboxesGet401 = UnauthorizedError;
680
676
  const MailboxesGet403 = ForbiddenError;
@@ -682,7 +678,7 @@ const MailboxesGet404 = ResourceNotFoundError;
682
678
  const MailboxesGet422 = ValidationError;
683
679
  const MailboxesGet500 = InternalError;
684
680
  const MailboxesGet504 = GatewayTimeoutError;
685
- const MailboxesRemovePathParams = /* @__PURE__ */ Schema$1.Struct({ id: MailboxId });
681
+ const MailboxesRemovePathParams = /* @__PURE__ */ Schema.Struct({ id: MailboxId });
686
682
  const MailboxesRemove200 = SuccessResponse;
687
683
  const MailboxesRemove401 = UnauthorizedError;
688
684
  const MailboxesRemove403 = ForbiddenError;
@@ -691,10 +687,10 @@ const MailboxesRemove422 = ValidationError;
691
687
  const MailboxesRemove500 = InternalError;
692
688
  const MailboxesRemove502 = BillingProviderError;
693
689
  const MailboxesRemove504 = GatewayTimeoutError;
694
- const MailboxesUpdatePathParams = /* @__PURE__ */ Schema$1.Struct({ id: MailboxId });
695
- const MailboxesUpdateRequestJson = /* @__PURE__ */ Schema$1.Struct({
696
- name: Schema$1.optionalKey(Schema$1.Union([Schema$1.String.check(Schema$1.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })), Schema$1.Null])),
697
- metadata: Schema$1.optionalKey(Schema$1.Union([MailboxMetadataPatch, Schema$1.Null]))
690
+ const MailboxesUpdatePathParams = /* @__PURE__ */ Schema.Struct({ id: MailboxId });
691
+ const MailboxesUpdateRequestJson = /* @__PURE__ */ Schema.Struct({
692
+ name: Schema.optionalKey(Schema.Union([Schema.String.check(Schema.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })), Schema.Null])),
693
+ metadata: Schema.optionalKey(Schema.Union([MailboxMetadataPatch, Schema.Null]))
698
694
  });
699
695
  const MailboxesUpdate200 = Mailbox;
700
696
  const MailboxesUpdate401 = UnauthorizedError;
@@ -703,29 +699,29 @@ const MailboxesUpdate404 = ResourceNotFoundError;
703
699
  const MailboxesUpdate422 = ValidationError;
704
700
  const MailboxesUpdate500 = InternalError;
705
701
  const MailboxesUpdate504 = GatewayTimeoutError;
706
- const MailboxesListActionsPathParams = /* @__PURE__ */ Schema$1.Struct({ id: MailboxId });
707
- const MailboxesListActionsQuery = /* @__PURE__ */ Schema$1.Struct({
708
- limit: Schema$1.optionalKey(Schema$1.Union([Schema$1.String, Schema$1.Null])),
709
- cursor: Schema$1.optionalKey(Schema$1.Union([Cursor, Schema$1.Null])),
710
- threadId: Schema$1.optionalKey(Schema$1.Union([MailboxThreadId, Schema$1.Null])),
711
- state: Schema$1.optionalKey(Schema$1.Union([Schema$1.Union([
712
- Schema$1.Literal("proposed"),
713
- Schema$1.Literal("allowed"),
714
- Schema$1.Literal("approvalRequired"),
715
- Schema$1.Literal("policyDenied"),
716
- Schema$1.Literal("approved"),
717
- Schema$1.Literal("approvalDenied"),
718
- Schema$1.Literal("executing"),
719
- Schema$1.Literal("executed"),
720
- Schema$1.Literal("failed"),
721
- Schema$1.Literal("queued"),
722
- Schema$1.Literal("accepted"),
723
- Schema$1.Literal("completed"),
724
- Schema$1.Literal("notSent"),
725
- Schema$1.Literal("uncertain")
726
- ]), Schema$1.Null])),
727
- after: Schema$1.optionalKey(Schema$1.Union([Schema$1.String, Schema$1.Null])),
728
- before: Schema$1.optionalKey(Schema$1.Union([Schema$1.String, Schema$1.Null]))
702
+ const MailboxesListActionsPathParams = /* @__PURE__ */ Schema.Struct({ id: MailboxId });
703
+ const MailboxesListActionsQuery = /* @__PURE__ */ Schema.Struct({
704
+ limit: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
705
+ cursor: Schema.optionalKey(Schema.Union([Cursor, Schema.Null])),
706
+ threadId: Schema.optionalKey(Schema.Union([MailboxThreadId, Schema.Null])),
707
+ state: Schema.optionalKey(Schema.Union([Schema.Union([
708
+ Schema.Literal("proposed"),
709
+ Schema.Literal("allowed"),
710
+ Schema.Literal("approvalRequired"),
711
+ Schema.Literal("policyDenied"),
712
+ Schema.Literal("approved"),
713
+ Schema.Literal("approvalDenied"),
714
+ Schema.Literal("executing"),
715
+ Schema.Literal("executed"),
716
+ Schema.Literal("failed"),
717
+ Schema.Literal("queued"),
718
+ Schema.Literal("accepted"),
719
+ Schema.Literal("completed"),
720
+ Schema.Literal("notSent"),
721
+ Schema.Literal("uncertain")
722
+ ]), Schema.Null])),
723
+ after: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
724
+ before: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null]))
729
725
  });
730
726
  const MailboxesListActions200 = MailboxActionPage;
731
727
  const MailboxesListActions401 = UnauthorizedError;
@@ -734,7 +730,7 @@ const MailboxesListActions404 = ResourceNotFoundError;
734
730
  const MailboxesListActions422 = ValidationError;
735
731
  const MailboxesListActions500 = InternalError;
736
732
  const MailboxesListActions504 = GatewayTimeoutError;
737
- const MailboxesGetActionPathParams = /* @__PURE__ */ Schema$1.Struct({
733
+ const MailboxesGetActionPathParams = /* @__PURE__ */ Schema.Struct({
738
734
  id: MailboxId,
739
735
  actionId: MailboxActionId
740
736
  });
@@ -745,7 +741,7 @@ const MailboxesGetAction404 = ResourceNotFoundError;
745
741
  const MailboxesGetAction422 = ValidationError;
746
742
  const MailboxesGetAction500 = InternalError;
747
743
  const MailboxesGetAction504 = GatewayTimeoutError;
748
- const MailboxesApproveActionPathParams = /* @__PURE__ */ Schema$1.Struct({
744
+ const MailboxesApproveActionPathParams = /* @__PURE__ */ Schema.Struct({
749
745
  id: MailboxId,
750
746
  actionId: MailboxActionId
751
747
  });
@@ -753,20 +749,20 @@ const MailboxesApproveAction200 = MailboxAction;
753
749
  const MailboxesApproveAction202 = MailboxPendingAction;
754
750
  const MailboxesApproveAction401 = UnauthorizedError;
755
751
  const MailboxesApproveAction402 = PaymentRequiredError;
756
- const MailboxesApproveAction403 = /* @__PURE__ */ Schema$1.Union([
752
+ const MailboxesApproveAction403 = /* @__PURE__ */ Schema.Union([
757
753
  MailboxSendRefusedError,
758
754
  OnboardingReviewRequiredError,
759
755
  ForbiddenError
760
756
  ]);
761
757
  const MailboxesApproveAction404 = ResourceNotFoundError;
762
- const MailboxesApproveAction409 = /* @__PURE__ */ Schema$1.Union([MailboxSendConflictError, ConflictError]);
763
- const MailboxesApproveAction422 = /* @__PURE__ */ Schema$1.Union([MailboxChannelUnsupportedError, ValidationError]);
758
+ const MailboxesApproveAction409 = /* @__PURE__ */ Schema.Union([MailboxSendConflictError, ConflictError]);
759
+ const MailboxesApproveAction422 = /* @__PURE__ */ Schema.Union([MailboxChannelUnsupportedError, ValidationError]);
764
760
  const MailboxesApproveAction429 = RateLimitedError;
765
761
  const MailboxesApproveAction500 = InternalError;
766
762
  const MailboxesApproveAction502 = BillingProviderError;
767
763
  const MailboxesApproveAction503 = SenderNotReadyError;
768
764
  const MailboxesApproveAction504 = GatewayTimeoutError;
769
- const MailboxesCancelActionPathParams = /* @__PURE__ */ Schema$1.Struct({
765
+ const MailboxesCancelActionPathParams = /* @__PURE__ */ Schema.Struct({
770
766
  id: MailboxId,
771
767
  actionId: MailboxActionId
772
768
  });
@@ -774,33 +770,33 @@ const MailboxesCancelAction200 = MailboxSendReceipt;
774
770
  const MailboxesCancelAction202 = MailboxPendingSendReceipt;
775
771
  const MailboxesCancelAction401 = UnauthorizedError;
776
772
  const MailboxesCancelAction402 = PaymentRequiredError;
777
- const MailboxesCancelAction403 = /* @__PURE__ */ Schema$1.Union([
773
+ const MailboxesCancelAction403 = /* @__PURE__ */ Schema.Union([
778
774
  MailboxSendRefusedError,
779
775
  OnboardingReviewRequiredError,
780
776
  ForbiddenError
781
777
  ]);
782
778
  const MailboxesCancelAction404 = ResourceNotFoundError;
783
- const MailboxesCancelAction409 = /* @__PURE__ */ Schema$1.Union([MailboxSendConflictError, ConflictError]);
784
- const MailboxesCancelAction422 = /* @__PURE__ */ Schema$1.Union([MailboxChannelUnsupportedError, ValidationError]);
779
+ const MailboxesCancelAction409 = /* @__PURE__ */ Schema.Union([MailboxSendConflictError, ConflictError]);
780
+ const MailboxesCancelAction422 = /* @__PURE__ */ Schema.Union([MailboxChannelUnsupportedError, ValidationError]);
785
781
  const MailboxesCancelAction429 = RateLimitedError;
786
782
  const MailboxesCancelAction500 = InternalError;
787
783
  const MailboxesCancelAction502 = BillingProviderError;
788
784
  const MailboxesCancelAction503 = SenderNotReadyError;
789
785
  const MailboxesCancelAction504 = GatewayTimeoutError;
790
- const MailboxesDenyActionPathParams = /* @__PURE__ */ Schema$1.Struct({
786
+ const MailboxesDenyActionPathParams = /* @__PURE__ */ Schema.Struct({
791
787
  id: MailboxId,
792
788
  actionId: MailboxActionId
793
789
  });
794
- const MailboxesDenyActionRequestJson = /* @__PURE__ */ Schema$1.Struct({ reason: Schema$1.String });
790
+ const MailboxesDenyActionRequestJson = /* @__PURE__ */ Schema.Struct({ reason: Schema.String });
795
791
  const MailboxesDenyAction200 = MailboxAction;
796
792
  const MailboxesDenyAction401 = UnauthorizedError;
797
793
  const MailboxesDenyAction403 = ForbiddenError;
798
794
  const MailboxesDenyAction404 = ResourceNotFoundError;
799
- const MailboxesDenyAction409 = /* @__PURE__ */ Schema$1.Union([ConflictError, MailboxSendConflictError]);
795
+ const MailboxesDenyAction409 = /* @__PURE__ */ Schema.Union([ConflictError, MailboxSendConflictError]);
800
796
  const MailboxesDenyAction422 = ValidationError;
801
797
  const MailboxesDenyAction500 = InternalError;
802
798
  const MailboxesDenyAction504 = GatewayTimeoutError;
803
- const MailboxesRetryActionPathParams = /* @__PURE__ */ Schema$1.Struct({
799
+ const MailboxesRetryActionPathParams = /* @__PURE__ */ Schema.Struct({
804
800
  id: MailboxId,
805
801
  actionId: MailboxActionId
806
802
  });
@@ -808,23 +804,23 @@ const MailboxesRetryAction200 = MailboxSendReceipt;
808
804
  const MailboxesRetryAction202 = MailboxPendingSendReceipt;
809
805
  const MailboxesRetryAction401 = UnauthorizedError;
810
806
  const MailboxesRetryAction402 = PaymentRequiredError;
811
- const MailboxesRetryAction403 = /* @__PURE__ */ Schema$1.Union([
807
+ const MailboxesRetryAction403 = /* @__PURE__ */ Schema.Union([
812
808
  MailboxSendRefusedError,
813
809
  OnboardingReviewRequiredError,
814
810
  ForbiddenError
815
811
  ]);
816
812
  const MailboxesRetryAction404 = ResourceNotFoundError;
817
- const MailboxesRetryAction409 = /* @__PURE__ */ Schema$1.Union([MailboxSendConflictError, ConflictError]);
818
- const MailboxesRetryAction422 = /* @__PURE__ */ Schema$1.Union([MailboxChannelUnsupportedError, ValidationError]);
813
+ const MailboxesRetryAction409 = /* @__PURE__ */ Schema.Union([MailboxSendConflictError, ConflictError]);
814
+ const MailboxesRetryAction422 = /* @__PURE__ */ Schema.Union([MailboxChannelUnsupportedError, ValidationError]);
819
815
  const MailboxesRetryAction429 = RateLimitedError;
820
816
  const MailboxesRetryAction500 = InternalError;
821
817
  const MailboxesRetryAction502 = BillingProviderError;
822
818
  const MailboxesRetryAction503 = SenderNotReadyError;
823
819
  const MailboxesRetryAction504 = GatewayTimeoutError;
824
- const MailboxesGetAgentActivityPathParams = /* @__PURE__ */ Schema$1.Struct({ id: MailboxId });
825
- const MailboxesGetAgentActivityQuery = /* @__PURE__ */ Schema$1.Struct({
826
- after: Schema$1.optionalKey(Schema$1.Union([Schema$1.String, Schema$1.Null])),
827
- before: Schema$1.optionalKey(Schema$1.Union([Schema$1.String, Schema$1.Null]))
820
+ const MailboxesGetAgentActivityPathParams = /* @__PURE__ */ Schema.Struct({ id: MailboxId });
821
+ const MailboxesGetAgentActivityQuery = /* @__PURE__ */ Schema.Struct({
822
+ after: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
823
+ before: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null]))
828
824
  });
829
825
  const MailboxesGetAgentActivity200 = MailboxAgentActivity;
830
826
  const MailboxesGetAgentActivity401 = UnauthorizedError;
@@ -833,11 +829,11 @@ const MailboxesGetAgentActivity404 = ResourceNotFoundError;
833
829
  const MailboxesGetAgentActivity422 = ValidationError;
834
830
  const MailboxesGetAgentActivity500 = InternalError;
835
831
  const MailboxesGetAgentActivity504 = GatewayTimeoutError;
836
- const MailboxesListDraftsPathParams = /* @__PURE__ */ Schema$1.Struct({ id: MailboxId });
837
- const MailboxesListDraftsQuery = /* @__PURE__ */ Schema$1.Struct({
838
- limit: Schema$1.optionalKey(Schema$1.Union([Schema$1.String, Schema$1.Null])),
839
- cursor: Schema$1.optionalKey(Schema$1.Union([Cursor, Schema$1.Null])),
840
- threadId: Schema$1.optionalKey(Schema$1.Union([MailboxThreadId, Schema$1.Null]))
832
+ const MailboxesListDraftsPathParams = /* @__PURE__ */ Schema.Struct({ id: MailboxId });
833
+ const MailboxesListDraftsQuery = /* @__PURE__ */ Schema.Struct({
834
+ limit: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
835
+ cursor: Schema.optionalKey(Schema.Union([Cursor, Schema.Null])),
836
+ threadId: Schema.optionalKey(Schema.Union([MailboxThreadId, Schema.Null]))
841
837
  });
842
838
  const MailboxesListDrafts200 = MailboxDraftPage;
843
839
  const MailboxesListDrafts401 = UnauthorizedError;
@@ -846,28 +842,28 @@ const MailboxesListDrafts404 = ResourceNotFoundError;
846
842
  const MailboxesListDrafts422 = ValidationError;
847
843
  const MailboxesListDrafts500 = InternalError;
848
844
  const MailboxesListDrafts504 = GatewayTimeoutError;
849
- const MailboxesCreateDraftPathParams = /* @__PURE__ */ Schema$1.Struct({ id: MailboxId });
850
- const MailboxesCreateDraftRequestJson = /* @__PURE__ */ Schema$1.Struct({
851
- channel: Schema$1.optionalKey(Schema$1.Union([Schema$1.Literal("email"), Schema$1.Null])),
852
- endpointId: Schema$1.optionalKey(Schema$1.Union([MailboxEndpointId, Schema$1.Null])),
853
- to: Schema$1.optionalKey(Schema$1.Union([Schema$1.Array(Schema$1.String), Schema$1.Null])),
854
- cc: Schema$1.optionalKey(Schema$1.Union([Schema$1.Array(Schema$1.String), Schema$1.Null])),
855
- bcc: Schema$1.optionalKey(Schema$1.Union([Schema$1.Array(Schema$1.String), Schema$1.Null])),
856
- replyTo: Schema$1.optionalKey(Schema$1.Union([Schema$1.Array(Schema$1.String), Schema$1.Null])),
857
- subject: Schema$1.optionalKey(Schema$1.Union([Schema$1.String, Schema$1.Null])),
858
- text: Schema$1.optionalKey(Schema$1.Union([Schema$1.String, Schema$1.Null])),
859
- html: Schema$1.optionalKey(Schema$1.Union([Schema$1.String, Schema$1.Null])),
860
- attachments: Schema$1.optionalKey(Schema$1.Union([Schema$1.Array(EmailAttachment).check(Schema$1.isMaxLength(10).annotate({ expected: "a value with a length of at most 10" })), Schema$1.Null])),
861
- inReplyToMessageId: Schema$1.optionalKey(Schema$1.Union([MessageId, Schema$1.Null]))
845
+ const MailboxesCreateDraftPathParams = /* @__PURE__ */ Schema.Struct({ id: MailboxId });
846
+ const MailboxesCreateDraftRequestJson = /* @__PURE__ */ Schema.Struct({
847
+ channel: Schema.optionalKey(Schema.Union([Schema.Literal("email"), Schema.Null])),
848
+ endpointId: Schema.optionalKey(Schema.Union([MailboxEndpointId, Schema.Null])),
849
+ to: Schema.optionalKey(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
850
+ cc: Schema.optionalKey(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
851
+ bcc: Schema.optionalKey(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
852
+ replyTo: Schema.optionalKey(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
853
+ subject: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
854
+ text: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
855
+ html: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
856
+ attachments: Schema.optionalKey(Schema.Union([Schema.Array(EmailAttachment).check(Schema.isMaxLength(10).annotate({ expected: "a value with a length of at most 10" })), Schema.Null])),
857
+ inReplyToMessageId: Schema.optionalKey(Schema.Union([MessageId, Schema.Null]))
862
858
  });
863
859
  const MailboxesCreateDraft201 = MailboxDraft;
864
860
  const MailboxesCreateDraft401 = UnauthorizedError;
865
861
  const MailboxesCreateDraft403 = ForbiddenError;
866
862
  const MailboxesCreateDraft404 = ResourceNotFoundError;
867
- const MailboxesCreateDraft422 = /* @__PURE__ */ Schema$1.Union([MailboxChannelUnsupportedError, ValidationError]);
863
+ const MailboxesCreateDraft422 = /* @__PURE__ */ Schema.Union([MailboxChannelUnsupportedError, ValidationError]);
868
864
  const MailboxesCreateDraft500 = InternalError;
869
865
  const MailboxesCreateDraft504 = GatewayTimeoutError;
870
- const MailboxesGetDraftPathParams = /* @__PURE__ */ Schema$1.Struct({
866
+ const MailboxesGetDraftPathParams = /* @__PURE__ */ Schema.Struct({
871
867
  id: MailboxId,
872
868
  draftId: MailboxDraftId
873
869
  });
@@ -878,7 +874,7 @@ const MailboxesGetDraft404 = ResourceNotFoundError;
878
874
  const MailboxesGetDraft422 = ValidationError;
879
875
  const MailboxesGetDraft500 = InternalError;
880
876
  const MailboxesGetDraft504 = GatewayTimeoutError;
881
- const MailboxesDeleteDraftPathParams = /* @__PURE__ */ Schema$1.Struct({
877
+ const MailboxesDeleteDraftPathParams = /* @__PURE__ */ Schema.Struct({
882
878
  id: MailboxId,
883
879
  draftId: MailboxDraftId
884
880
  });
@@ -889,19 +885,19 @@ const MailboxesDeleteDraft404 = ResourceNotFoundError;
889
885
  const MailboxesDeleteDraft422 = ValidationError;
890
886
  const MailboxesDeleteDraft500 = InternalError;
891
887
  const MailboxesDeleteDraft504 = GatewayTimeoutError;
892
- const MailboxesUpdateDraftPathParams = /* @__PURE__ */ Schema$1.Struct({
888
+ const MailboxesUpdateDraftPathParams = /* @__PURE__ */ Schema.Struct({
893
889
  id: MailboxId,
894
890
  draftId: MailboxDraftId
895
891
  });
896
- const MailboxesUpdateDraftRequestJson = /* @__PURE__ */ Schema$1.Struct({
897
- to: Schema$1.optionalKey(Schema$1.Union([Schema$1.Array(Schema$1.String), Schema$1.Null])),
898
- cc: Schema$1.optionalKey(Schema$1.Union([Schema$1.Union([Schema$1.Array(Schema$1.String), Schema$1.Null]), Schema$1.Null])),
899
- bcc: Schema$1.optionalKey(Schema$1.Union([Schema$1.Union([Schema$1.Array(Schema$1.String), Schema$1.Null]), Schema$1.Null])),
900
- replyTo: Schema$1.optionalKey(Schema$1.Union([Schema$1.Union([Schema$1.Array(Schema$1.String), Schema$1.Null]), Schema$1.Null])),
901
- subject: Schema$1.optionalKey(Schema$1.Union([Schema$1.Union([Schema$1.String, Schema$1.Null]), Schema$1.Null])),
902
- text: Schema$1.optionalKey(Schema$1.Union([Schema$1.Union([Schema$1.String, Schema$1.Null]), Schema$1.Null])),
903
- html: Schema$1.optionalKey(Schema$1.Union([Schema$1.Union([Schema$1.String, Schema$1.Null]), Schema$1.Null])),
904
- attachments: Schema$1.optionalKey(Schema$1.Union([Schema$1.Union([Schema$1.Array(EmailAttachment).check(Schema$1.isMaxLength(10).annotate({ expected: "a value with a length of at most 10" })), Schema$1.Null]), Schema$1.Null]))
892
+ const MailboxesUpdateDraftRequestJson = /* @__PURE__ */ Schema.Struct({
893
+ to: Schema.optionalKey(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
894
+ cc: Schema.optionalKey(Schema.Union([Schema.Union([Schema.Array(Schema.String), Schema.Null]), Schema.Null])),
895
+ bcc: Schema.optionalKey(Schema.Union([Schema.Union([Schema.Array(Schema.String), Schema.Null]), Schema.Null])),
896
+ replyTo: Schema.optionalKey(Schema.Union([Schema.Union([Schema.Array(Schema.String), Schema.Null]), Schema.Null])),
897
+ subject: Schema.optionalKey(Schema.Union([Schema.Union([Schema.String, Schema.Null]), Schema.Null])),
898
+ text: Schema.optionalKey(Schema.Union([Schema.Union([Schema.String, Schema.Null]), Schema.Null])),
899
+ html: Schema.optionalKey(Schema.Union([Schema.Union([Schema.String, Schema.Null]), Schema.Null])),
900
+ attachments: Schema.optionalKey(Schema.Union([Schema.Union([Schema.Array(EmailAttachment).check(Schema.isMaxLength(10).annotate({ expected: "a value with a length of at most 10" })), Schema.Null]), Schema.Null]))
905
901
  });
906
902
  const MailboxesUpdateDraft200 = MailboxDraft;
907
903
  const MailboxesUpdateDraft401 = UnauthorizedError;
@@ -911,43 +907,43 @@ const MailboxesUpdateDraft409 = ConflictError;
911
907
  const MailboxesUpdateDraft422 = ValidationError;
912
908
  const MailboxesUpdateDraft500 = InternalError;
913
909
  const MailboxesUpdateDraft504 = GatewayTimeoutError;
914
- const MailboxesSendDraftPathParams = /* @__PURE__ */ Schema$1.Struct({
910
+ const MailboxesSendDraftPathParams = /* @__PURE__ */ Schema.Struct({
915
911
  id: MailboxId,
916
912
  draftId: MailboxDraftId
917
913
  });
918
- const MailboxesSendDraftHeaders = /* @__PURE__ */ Schema$1.Struct({ "idempotency-key": Schema$1.optionalKey(Schema$1.Union([Schema$1.String.annotate({ description: "Optional key that makes a mailbox send idempotent for the calling key or member. Repeating the request with the same key and body returns the original action in its current state. Keep the key after a lost response. Reusing it with different content returns 409. Active actions retain their key; terminal receipts remain replayable for 24 hours." }).check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^[\\s\\S]{1,255}$")).annotate({ expected: "a string matching the RegExp ^[\\s\\S]{1,255}$" })), Schema$1.Null])) });
914
+ const MailboxesSendDraftHeaders = /* @__PURE__ */ Schema.Struct({ "idempotency-key": Schema.optionalKey(Schema.Union([Schema.String.annotate({ description: "Optional key that makes a mailbox send idempotent for the calling key or member. Repeating the request with the same key and body returns the original action in its current state. Keep the key after a lost response. Reusing it with different content returns 409. Active actions retain their key; terminal receipts remain replayable for 24 hours." }).check(Schema.isPattern(/* @__PURE__ */ new RegExp("^[\\s\\S]{1,255}$")).annotate({ expected: "a string matching the RegExp ^[\\s\\S]{1,255}$" })), Schema.Null])) });
919
915
  const MailboxesSendDraft200 = MailboxSendReceipt;
920
916
  const MailboxesSendDraft202 = MailboxPendingSendReceipt;
921
917
  const MailboxesSendDraft401 = UnauthorizedError;
922
918
  const MailboxesSendDraft402 = PaymentRequiredError;
923
- const MailboxesSendDraft403 = /* @__PURE__ */ Schema$1.Union([
919
+ const MailboxesSendDraft403 = /* @__PURE__ */ Schema.Union([
924
920
  MailboxSendRefusedError,
925
921
  OnboardingReviewRequiredError,
926
922
  ForbiddenError
927
923
  ]);
928
924
  const MailboxesSendDraft404 = ResourceNotFoundError;
929
- const MailboxesSendDraft409 = /* @__PURE__ */ Schema$1.Union([MailboxSendConflictError, ConflictError]);
930
- const MailboxesSendDraft422 = /* @__PURE__ */ Schema$1.Union([MailboxChannelUnsupportedError, ValidationError]);
925
+ const MailboxesSendDraft409 = /* @__PURE__ */ Schema.Union([MailboxSendConflictError, ConflictError]);
926
+ const MailboxesSendDraft422 = /* @__PURE__ */ Schema.Union([MailboxChannelUnsupportedError, ValidationError]);
931
927
  const MailboxesSendDraft429 = RateLimitedError;
932
928
  const MailboxesSendDraft500 = InternalError;
933
929
  const MailboxesSendDraft502 = BillingProviderError;
934
930
  const MailboxesSendDraft503 = SenderNotReadyError;
935
931
  const MailboxesSendDraft504 = GatewayTimeoutError;
936
- const MailboxesCreateEndpointPathParams = /* @__PURE__ */ Schema$1.Struct({ id: MailboxId });
937
- const MailboxesCreateEndpointRequestJson = /* @__PURE__ */ Schema$1.Struct({
932
+ const MailboxesCreateEndpointPathParams = /* @__PURE__ */ Schema.Struct({ id: MailboxId });
933
+ const MailboxesCreateEndpointRequestJson = /* @__PURE__ */ Schema.Struct({
938
934
  channel: MailboxChannel,
939
- address: Schema$1.String,
940
- displayName: Schema$1.optionalKey(Schema$1.Union([Schema$1.String, Schema$1.Null]))
935
+ address: Schema.String,
936
+ displayName: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null]))
941
937
  });
942
938
  const MailboxesCreateEndpoint201 = Mailbox;
943
939
  const MailboxesCreateEndpoint401 = UnauthorizedError;
944
940
  const MailboxesCreateEndpoint403 = ForbiddenError;
945
941
  const MailboxesCreateEndpoint404 = ResourceNotFoundError;
946
942
  const MailboxesCreateEndpoint409 = ConflictError;
947
- const MailboxesCreateEndpoint422 = /* @__PURE__ */ Schema$1.Union([ValidationError, MailboxChannelUnsupportedError]);
943
+ const MailboxesCreateEndpoint422 = /* @__PURE__ */ Schema.Union([ValidationError, MailboxChannelUnsupportedError]);
948
944
  const MailboxesCreateEndpoint500 = InternalError;
949
945
  const MailboxesCreateEndpoint504 = GatewayTimeoutError;
950
- const MailboxesRemoveEndpointPathParams = /* @__PURE__ */ Schema$1.Struct({
946
+ const MailboxesRemoveEndpointPathParams = /* @__PURE__ */ Schema.Struct({
951
947
  id: MailboxId,
952
948
  endpointId: MailboxEndpointId
953
949
  });
@@ -958,13 +954,13 @@ const MailboxesRemoveEndpoint404 = ResourceNotFoundError;
958
954
  const MailboxesRemoveEndpoint422 = ValidationError;
959
955
  const MailboxesRemoveEndpoint500 = InternalError;
960
956
  const MailboxesRemoveEndpoint504 = GatewayTimeoutError;
961
- const MailboxesUpdateEndpointPathParams = /* @__PURE__ */ Schema$1.Struct({
957
+ const MailboxesUpdateEndpointPathParams = /* @__PURE__ */ Schema.Struct({
962
958
  id: MailboxId,
963
959
  endpointId: MailboxEndpointId
964
960
  });
965
- const MailboxesUpdateEndpointRequestJson = /* @__PURE__ */ Schema$1.Struct({
966
- displayName: Schema$1.optionalKey(Schema$1.Union([Schema$1.Union([Schema$1.String, Schema$1.Null]), Schema$1.Null])),
967
- default: Schema$1.optionalKey(Schema$1.Union([Schema$1.Literal(true), Schema$1.Null]))
961
+ const MailboxesUpdateEndpointRequestJson = /* @__PURE__ */ Schema.Struct({
962
+ displayName: Schema.optionalKey(Schema.Union([Schema.Union([Schema.String, Schema.Null]), Schema.Null])),
963
+ default: Schema.optionalKey(Schema.Union([Schema.Literal(true), Schema.Null]))
968
964
  });
969
965
  const MailboxesUpdateEndpoint200 = Mailbox;
970
966
  const MailboxesUpdateEndpoint401 = UnauthorizedError;
@@ -973,12 +969,12 @@ const MailboxesUpdateEndpoint404 = ResourceNotFoundError;
973
969
  const MailboxesUpdateEndpoint422 = ValidationError;
974
970
  const MailboxesUpdateEndpoint500 = InternalError;
975
971
  const MailboxesUpdateEndpoint504 = GatewayTimeoutError;
976
- const MailboxesListEventsPathParams = /* @__PURE__ */ Schema$1.Struct({ id: MailboxId });
977
- const MailboxesListEventsQuery = /* @__PURE__ */ Schema$1.Struct({
978
- limit: Schema$1.optionalKey(Schema$1.Union([Schema$1.String, Schema$1.Null])),
979
- cursor: Schema$1.optionalKey(Schema$1.Union([Cursor, Schema$1.Null])),
980
- after: Schema$1.optionalKey(Schema$1.Union([Schema$1.String, Schema$1.Null])),
981
- before: Schema$1.optionalKey(Schema$1.Union([Schema$1.String, Schema$1.Null]))
972
+ const MailboxesListEventsPathParams = /* @__PURE__ */ Schema.Struct({ id: MailboxId });
973
+ const MailboxesListEventsQuery = /* @__PURE__ */ Schema.Struct({
974
+ limit: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
975
+ cursor: Schema.optionalKey(Schema.Union([Cursor, Schema.Null])),
976
+ after: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
977
+ before: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null]))
982
978
  });
983
979
  const MailboxesListEvents200 = MailboxEventPage;
984
980
  const MailboxesListEvents401 = UnauthorizedError;
@@ -987,7 +983,7 @@ const MailboxesListEvents404 = ResourceNotFoundError;
987
983
  const MailboxesListEvents422 = ValidationError;
988
984
  const MailboxesListEvents500 = InternalError;
989
985
  const MailboxesListEvents504 = GatewayTimeoutError;
990
- const MailboxesListFoldersPathParams = /* @__PURE__ */ Schema$1.Struct({ id: MailboxId });
986
+ const MailboxesListFoldersPathParams = /* @__PURE__ */ Schema.Struct({ id: MailboxId });
991
987
  const MailboxesListFolders200 = MailboxFolderCountList;
992
988
  const MailboxesListFolders401 = UnauthorizedError;
993
989
  const MailboxesListFolders403 = ForbiddenError;
@@ -995,10 +991,10 @@ const MailboxesListFolders404 = ResourceNotFoundError;
995
991
  const MailboxesListFolders422 = ValidationError;
996
992
  const MailboxesListFolders500 = InternalError;
997
993
  const MailboxesListFolders504 = GatewayTimeoutError;
998
- const MailboxesListGrantsPathParams = /* @__PURE__ */ Schema$1.Struct({ id: MailboxId });
999
- const MailboxesListGrantsQuery = /* @__PURE__ */ Schema$1.Struct({
1000
- limit: Schema$1.optionalKey(Schema$1.Union([Schema$1.String, Schema$1.Null])),
1001
- cursor: Schema$1.optionalKey(Schema$1.Union([Cursor, Schema$1.Null]))
994
+ const MailboxesListGrantsPathParams = /* @__PURE__ */ Schema.Struct({ id: MailboxId });
995
+ const MailboxesListGrantsQuery = /* @__PURE__ */ Schema.Struct({
996
+ limit: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
997
+ cursor: Schema.optionalKey(Schema.Union([Cursor, Schema.Null]))
1002
998
  });
1003
999
  const MailboxesListGrants200 = MailboxGrantPage;
1004
1000
  const MailboxesListGrants401 = UnauthorizedError;
@@ -1007,11 +1003,11 @@ const MailboxesListGrants404 = ResourceNotFoundError;
1007
1003
  const MailboxesListGrants422 = ValidationError;
1008
1004
  const MailboxesListGrants500 = InternalError;
1009
1005
  const MailboxesListGrants504 = GatewayTimeoutError;
1010
- const MailboxesCreateGrantPathParams = /* @__PURE__ */ Schema$1.Struct({ id: MailboxId });
1011
- const MailboxesCreateGrantRequestJson = /* @__PURE__ */ Schema$1.Struct({
1006
+ const MailboxesCreateGrantPathParams = /* @__PURE__ */ Schema.Struct({ id: MailboxId });
1007
+ const MailboxesCreateGrantRequestJson = /* @__PURE__ */ Schema.Struct({
1012
1008
  userId: UserId,
1013
1009
  role: MailboxGrantRole,
1014
- sendMode: Schema$1.optionalKey(Schema$1.Union([MailboxSendMode, Schema$1.Null]))
1010
+ sendMode: Schema.optionalKey(Schema.Union([MailboxSendMode, Schema.Null]))
1015
1011
  });
1016
1012
  const MailboxesCreateGrant201 = MailboxGrant;
1017
1013
  const MailboxesCreateGrant401 = UnauthorizedError;
@@ -1021,7 +1017,7 @@ const MailboxesCreateGrant409 = ConflictError;
1021
1017
  const MailboxesCreateGrant422 = ValidationError;
1022
1018
  const MailboxesCreateGrant500 = InternalError;
1023
1019
  const MailboxesCreateGrant504 = GatewayTimeoutError;
1024
- const MailboxesRevokeGrantPathParams = /* @__PURE__ */ Schema$1.Struct({
1020
+ const MailboxesRevokeGrantPathParams = /* @__PURE__ */ Schema.Struct({
1025
1021
  id: MailboxId,
1026
1022
  grantId: MailboxGrantId
1027
1023
  });
@@ -1033,13 +1029,13 @@ const MailboxesRevokeGrant409 = ConflictError;
1033
1029
  const MailboxesRevokeGrant422 = ValidationError;
1034
1030
  const MailboxesRevokeGrant500 = InternalError;
1035
1031
  const MailboxesRevokeGrant504 = GatewayTimeoutError;
1036
- const MailboxesUpdateGrantPathParams = /* @__PURE__ */ Schema$1.Struct({
1032
+ const MailboxesUpdateGrantPathParams = /* @__PURE__ */ Schema.Struct({
1037
1033
  id: MailboxId,
1038
1034
  grantId: MailboxGrantId
1039
1035
  });
1040
- const MailboxesUpdateGrantRequestJson = /* @__PURE__ */ Schema$1.Struct({
1041
- role: Schema$1.optionalKey(Schema$1.Union([MailboxGrantRole, Schema$1.Null])),
1042
- sendMode: Schema$1.optionalKey(Schema$1.Union([MailboxSendMode, Schema$1.Null]))
1036
+ const MailboxesUpdateGrantRequestJson = /* @__PURE__ */ Schema.Struct({
1037
+ role: Schema.optionalKey(Schema.Union([MailboxGrantRole, Schema.Null])),
1038
+ sendMode: Schema.optionalKey(Schema.Union([MailboxSendMode, Schema.Null]))
1043
1039
  });
1044
1040
  const MailboxesUpdateGrant200 = MailboxGrant;
1045
1041
  const MailboxesUpdateGrant401 = UnauthorizedError;
@@ -1049,7 +1045,7 @@ const MailboxesUpdateGrant409 = ConflictError;
1049
1045
  const MailboxesUpdateGrant422 = ValidationError;
1050
1046
  const MailboxesUpdateGrant500 = InternalError;
1051
1047
  const MailboxesUpdateGrant504 = GatewayTimeoutError;
1052
- const MailboxesListLabelsPathParams = /* @__PURE__ */ Schema$1.Struct({ id: MailboxId });
1048
+ const MailboxesListLabelsPathParams = /* @__PURE__ */ Schema.Struct({ id: MailboxId });
1053
1049
  const MailboxesListLabels200 = MailboxLabelList;
1054
1050
  const MailboxesListLabels401 = UnauthorizedError;
1055
1051
  const MailboxesListLabels403 = ForbiddenError;
@@ -1057,18 +1053,18 @@ const MailboxesListLabels404 = ResourceNotFoundError;
1057
1053
  const MailboxesListLabels422 = ValidationError;
1058
1054
  const MailboxesListLabels500 = InternalError;
1059
1055
  const MailboxesListLabels504 = GatewayTimeoutError;
1060
- const MailboxesCreateLabelPathParams = /* @__PURE__ */ Schema$1.Struct({ id: MailboxId });
1061
- const MailboxesCreateLabelRequestJson = /* @__PURE__ */ Schema$1.Struct({
1062
- slug: Schema$1.String,
1063
- displayName: Schema$1.String,
1064
- color: Schema$1.optionalKey(Schema$1.Union([Schema$1.Union([Schema$1.Union([
1065
- Schema$1.Literal("billing"),
1066
- Schema$1.Literal("domain"),
1067
- Schema$1.Literal("agent"),
1068
- Schema$1.Literal("routing"),
1069
- Schema$1.Literal("important"),
1070
- Schema$1.Literal("neutral")
1071
- ]), Schema$1.Null]), Schema$1.Null]))
1056
+ const MailboxesCreateLabelPathParams = /* @__PURE__ */ Schema.Struct({ id: MailboxId });
1057
+ const MailboxesCreateLabelRequestJson = /* @__PURE__ */ Schema.Struct({
1058
+ slug: Schema.String,
1059
+ displayName: Schema.String,
1060
+ color: Schema.optionalKey(Schema.Union([Schema.Union([Schema.Union([
1061
+ Schema.Literal("billing"),
1062
+ Schema.Literal("domain"),
1063
+ Schema.Literal("agent"),
1064
+ Schema.Literal("routing"),
1065
+ Schema.Literal("important"),
1066
+ Schema.Literal("neutral")
1067
+ ]), Schema.Null]), Schema.Null]))
1072
1068
  });
1073
1069
  const MailboxesCreateLabel201 = MailboxLabel;
1074
1070
  const MailboxesCreateLabel401 = UnauthorizedError;
@@ -1078,7 +1074,7 @@ const MailboxesCreateLabel409 = ConflictError;
1078
1074
  const MailboxesCreateLabel422 = ValidationError;
1079
1075
  const MailboxesCreateLabel500 = InternalError;
1080
1076
  const MailboxesCreateLabel504 = GatewayTimeoutError;
1081
- const MailboxesDeleteLabelPathParams = /* @__PURE__ */ Schema$1.Struct({
1077
+ const MailboxesDeleteLabelPathParams = /* @__PURE__ */ Schema.Struct({
1082
1078
  id: MailboxId,
1083
1079
  labelId: MailboxLabelId
1084
1080
  });
@@ -1089,20 +1085,20 @@ const MailboxesDeleteLabel404 = ResourceNotFoundError;
1089
1085
  const MailboxesDeleteLabel422 = ValidationError;
1090
1086
  const MailboxesDeleteLabel500 = InternalError;
1091
1087
  const MailboxesDeleteLabel504 = GatewayTimeoutError;
1092
- const MailboxesUpdateLabelPathParams = /* @__PURE__ */ Schema$1.Struct({
1088
+ const MailboxesUpdateLabelPathParams = /* @__PURE__ */ Schema.Struct({
1093
1089
  id: MailboxId,
1094
1090
  labelId: MailboxLabelId
1095
1091
  });
1096
- const MailboxesUpdateLabelRequestJson = /* @__PURE__ */ Schema$1.Struct({
1097
- displayName: Schema$1.optionalKey(Schema$1.Union([Schema$1.String, Schema$1.Null])),
1098
- color: Schema$1.optionalKey(Schema$1.Union([Schema$1.Union([Schema$1.Union([
1099
- Schema$1.Literal("billing"),
1100
- Schema$1.Literal("domain"),
1101
- Schema$1.Literal("agent"),
1102
- Schema$1.Literal("routing"),
1103
- Schema$1.Literal("important"),
1104
- Schema$1.Literal("neutral")
1105
- ]), Schema$1.Null]), Schema$1.Null]))
1092
+ const MailboxesUpdateLabelRequestJson = /* @__PURE__ */ Schema.Struct({
1093
+ displayName: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
1094
+ color: Schema.optionalKey(Schema.Union([Schema.Union([Schema.Union([
1095
+ Schema.Literal("billing"),
1096
+ Schema.Literal("domain"),
1097
+ Schema.Literal("agent"),
1098
+ Schema.Literal("routing"),
1099
+ Schema.Literal("important"),
1100
+ Schema.Literal("neutral")
1101
+ ]), Schema.Null]), Schema.Null]))
1106
1102
  });
1107
1103
  const MailboxesUpdateLabel200 = MailboxLabel;
1108
1104
  const MailboxesUpdateLabel401 = UnauthorizedError;
@@ -1111,37 +1107,37 @@ const MailboxesUpdateLabel404 = ResourceNotFoundError;
1111
1107
  const MailboxesUpdateLabel422 = ValidationError;
1112
1108
  const MailboxesUpdateLabel500 = InternalError;
1113
1109
  const MailboxesUpdateLabel504 = GatewayTimeoutError;
1114
- const MailboxesSendMessagePathParams = /* @__PURE__ */ Schema$1.Struct({ id: MailboxId });
1115
- const MailboxesSendMessageHeaders = /* @__PURE__ */ Schema$1.Struct({ "idempotency-key": Schema$1.optionalKey(Schema$1.Union([Schema$1.String.annotate({ description: "Optional key that makes a mailbox send idempotent for the calling key or member. Repeating the request with the same key and body returns the original action in its current state. Keep the key after a lost response. Reusing it with different content returns 409. Active actions retain their key; terminal receipts remain replayable for 24 hours." }).check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^[\\s\\S]{1,255}$")).annotate({ expected: "a string matching the RegExp ^[\\s\\S]{1,255}$" })), Schema$1.Null])) });
1116
- const MailboxesSendMessageRequestJson = /* @__PURE__ */ Schema$1.Struct({
1117
- channel: Schema$1.optionalKey(Schema$1.Union([Schema$1.Literal("email"), Schema$1.Null])),
1118
- to: Schema$1.TupleWithRest(Schema$1.Tuple([Schema$1.String]), [Schema$1.String]),
1119
- cc: Schema$1.optionalKey(Schema$1.Union([Schema$1.Array(Schema$1.String), Schema$1.Null])),
1120
- bcc: Schema$1.optionalKey(Schema$1.Union([Schema$1.Array(Schema$1.String), Schema$1.Null])),
1121
- replyTo: Schema$1.optionalKey(Schema$1.Union([Schema$1.Array(Schema$1.String), Schema$1.Null])),
1122
- subject: Schema$1.String.check(Schema$1.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })),
1123
- text: Schema$1.optionalKey(Schema$1.Union([Schema$1.String, Schema$1.Null])),
1124
- html: Schema$1.optionalKey(Schema$1.Union([Schema$1.String, Schema$1.Null])),
1125
- attachments: Schema$1.optionalKey(Schema$1.Union([Schema$1.Array(EmailAttachment).check(Schema$1.isMaxLength(10).annotate({ expected: "a value with a length of at most 10" })), Schema$1.Null]))
1110
+ const MailboxesSendMessagePathParams = /* @__PURE__ */ Schema.Struct({ id: MailboxId });
1111
+ const MailboxesSendMessageHeaders = /* @__PURE__ */ Schema.Struct({ "idempotency-key": Schema.optionalKey(Schema.Union([Schema.String.annotate({ description: "Optional key that makes a mailbox send idempotent for the calling key or member. Repeating the request with the same key and body returns the original action in its current state. Keep the key after a lost response. Reusing it with different content returns 409. Active actions retain their key; terminal receipts remain replayable for 24 hours." }).check(Schema.isPattern(/* @__PURE__ */ new RegExp("^[\\s\\S]{1,255}$")).annotate({ expected: "a string matching the RegExp ^[\\s\\S]{1,255}$" })), Schema.Null])) });
1112
+ const MailboxesSendMessageRequestJson = /* @__PURE__ */ Schema.Struct({
1113
+ channel: Schema.optionalKey(Schema.Union([Schema.Literal("email"), Schema.Null])),
1114
+ to: Schema.TupleWithRest(Schema.Tuple([Schema.String]), [Schema.String]),
1115
+ cc: Schema.optionalKey(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
1116
+ bcc: Schema.optionalKey(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
1117
+ replyTo: Schema.optionalKey(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
1118
+ subject: Schema.String.check(Schema.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })),
1119
+ text: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
1120
+ html: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
1121
+ attachments: Schema.optionalKey(Schema.Union([Schema.Array(EmailAttachment).check(Schema.isMaxLength(10).annotate({ expected: "a value with a length of at most 10" })), Schema.Null]))
1126
1122
  });
1127
1123
  const MailboxesSendMessage200 = MailboxSendReceipt;
1128
1124
  const MailboxesSendMessage202 = MailboxPendingSendReceipt;
1129
1125
  const MailboxesSendMessage401 = UnauthorizedError;
1130
1126
  const MailboxesSendMessage402 = PaymentRequiredError;
1131
- const MailboxesSendMessage403 = /* @__PURE__ */ Schema$1.Union([
1127
+ const MailboxesSendMessage403 = /* @__PURE__ */ Schema.Union([
1132
1128
  MailboxSendRefusedError,
1133
1129
  OnboardingReviewRequiredError,
1134
1130
  ForbiddenError
1135
1131
  ]);
1136
1132
  const MailboxesSendMessage404 = ResourceNotFoundError;
1137
- const MailboxesSendMessage409 = /* @__PURE__ */ Schema$1.Union([MailboxSendConflictError, ConflictError]);
1138
- const MailboxesSendMessage422 = /* @__PURE__ */ Schema$1.Union([MailboxChannelUnsupportedError, ValidationError]);
1133
+ const MailboxesSendMessage409 = /* @__PURE__ */ Schema.Union([MailboxSendConflictError, ConflictError]);
1134
+ const MailboxesSendMessage422 = /* @__PURE__ */ Schema.Union([MailboxChannelUnsupportedError, ValidationError]);
1139
1135
  const MailboxesSendMessage429 = RateLimitedError;
1140
1136
  const MailboxesSendMessage500 = InternalError;
1141
1137
  const MailboxesSendMessage502 = BillingProviderError;
1142
1138
  const MailboxesSendMessage503 = SenderNotReadyError;
1143
1139
  const MailboxesSendMessage504 = GatewayTimeoutError;
1144
- const MailboxesGetMessagePathParams = /* @__PURE__ */ Schema$1.Struct({
1140
+ const MailboxesGetMessagePathParams = /* @__PURE__ */ Schema.Struct({
1145
1141
  id: MailboxId,
1146
1142
  messageId: MessageId
1147
1143
  });
@@ -1152,7 +1148,7 @@ const MailboxesGetMessage404 = ResourceNotFoundError;
1152
1148
  const MailboxesGetMessage422 = ValidationError;
1153
1149
  const MailboxesGetMessage500 = InternalError;
1154
1150
  const MailboxesGetMessage504 = GatewayTimeoutError;
1155
- const MailboxesGetMessageAttachmentPathParams = /* @__PURE__ */ Schema$1.Struct({
1151
+ const MailboxesGetMessageAttachmentPathParams = /* @__PURE__ */ Schema.Struct({
1156
1152
  id: MailboxId,
1157
1153
  messageId: MessageId,
1158
1154
  attachmentId: AttachmentId
@@ -1164,7 +1160,7 @@ const MailboxesGetMessageAttachment404 = ResourceNotFoundError;
1164
1160
  const MailboxesGetMessageAttachment422 = ValidationError;
1165
1161
  const MailboxesGetMessageAttachment500 = InternalError;
1166
1162
  const MailboxesGetMessageAttachment504 = GatewayTimeoutError;
1167
- const MailboxesCopyMessageAttachmentPathParams = /* @__PURE__ */ Schema$1.Struct({
1163
+ const MailboxesCopyMessageAttachmentPathParams = /* @__PURE__ */ Schema.Struct({
1168
1164
  id: MailboxId,
1169
1165
  messageId: MessageId,
1170
1166
  attachmentId: AttachmentId
@@ -1177,7 +1173,7 @@ const MailboxesCopyMessageAttachment409 = ConflictError;
1177
1173
  const MailboxesCopyMessageAttachment422 = ValidationError;
1178
1174
  const MailboxesCopyMessageAttachment500 = InternalError;
1179
1175
  const MailboxesCopyMessageAttachment504 = GatewayTimeoutError;
1180
- const MailboxesDiscardMessagePathParams = /* @__PURE__ */ Schema$1.Struct({
1176
+ const MailboxesDiscardMessagePathParams = /* @__PURE__ */ Schema.Struct({
1181
1177
  id: MailboxId,
1182
1178
  messageId: MessageId
1183
1179
  });
@@ -1190,37 +1186,37 @@ const MailboxesDiscardMessage422 = ValidationError;
1190
1186
  const MailboxesDiscardMessage500 = InternalError;
1191
1187
  const MailboxesDiscardMessage502 = BillingProviderError;
1192
1188
  const MailboxesDiscardMessage504 = GatewayTimeoutError;
1193
- const MailboxesForwardPathParams = /* @__PURE__ */ Schema$1.Struct({
1189
+ const MailboxesForwardPathParams = /* @__PURE__ */ Schema.Struct({
1194
1190
  id: MailboxId,
1195
1191
  messageId: MessageId
1196
1192
  });
1197
- const MailboxesForwardHeaders = /* @__PURE__ */ Schema$1.Struct({ "idempotency-key": Schema$1.optionalKey(Schema$1.Union([Schema$1.String.annotate({ description: "Optional key that makes a mailbox send idempotent for the calling key or member. Repeating the request with the same key and body returns the original action in its current state. Keep the key after a lost response. Reusing it with different content returns 409. Active actions retain their key; terminal receipts remain replayable for 24 hours." }).check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^[\\s\\S]{1,255}$")).annotate({ expected: "a string matching the RegExp ^[\\s\\S]{1,255}$" })), Schema$1.Null])) });
1198
- const MailboxesForwardRequestJson = /* @__PURE__ */ Schema$1.Struct({
1199
- to: Schema$1.TupleWithRest(Schema$1.Tuple([Schema$1.String]), [Schema$1.String]),
1200
- cc: Schema$1.optionalKey(Schema$1.Union([Schema$1.Array(Schema$1.String), Schema$1.Null])),
1201
- bcc: Schema$1.optionalKey(Schema$1.Union([Schema$1.Array(Schema$1.String), Schema$1.Null])),
1202
- text: Schema$1.optionalKey(Schema$1.Union([Schema$1.String, Schema$1.Null])),
1203
- html: Schema$1.optionalKey(Schema$1.Union([Schema$1.String, Schema$1.Null])),
1204
- attachments: Schema$1.optionalKey(Schema$1.Union([Schema$1.Array(EmailAttachment).check(Schema$1.isMaxLength(10).annotate({ expected: "a value with a length of at most 10" })), Schema$1.Null]))
1193
+ const MailboxesForwardHeaders = /* @__PURE__ */ Schema.Struct({ "idempotency-key": Schema.optionalKey(Schema.Union([Schema.String.annotate({ description: "Optional key that makes a mailbox send idempotent for the calling key or member. Repeating the request with the same key and body returns the original action in its current state. Keep the key after a lost response. Reusing it with different content returns 409. Active actions retain their key; terminal receipts remain replayable for 24 hours." }).check(Schema.isPattern(/* @__PURE__ */ new RegExp("^[\\s\\S]{1,255}$")).annotate({ expected: "a string matching the RegExp ^[\\s\\S]{1,255}$" })), Schema.Null])) });
1194
+ const MailboxesForwardRequestJson = /* @__PURE__ */ Schema.Struct({
1195
+ to: Schema.TupleWithRest(Schema.Tuple([Schema.String]), [Schema.String]),
1196
+ cc: Schema.optionalKey(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
1197
+ bcc: Schema.optionalKey(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
1198
+ text: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
1199
+ html: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
1200
+ attachments: Schema.optionalKey(Schema.Union([Schema.Array(EmailAttachment).check(Schema.isMaxLength(10).annotate({ expected: "a value with a length of at most 10" })), Schema.Null]))
1205
1201
  });
1206
1202
  const MailboxesForward200 = MailboxSendReceipt;
1207
1203
  const MailboxesForward202 = MailboxPendingSendReceipt;
1208
1204
  const MailboxesForward401 = UnauthorizedError;
1209
1205
  const MailboxesForward402 = PaymentRequiredError;
1210
- const MailboxesForward403 = /* @__PURE__ */ Schema$1.Union([
1206
+ const MailboxesForward403 = /* @__PURE__ */ Schema.Union([
1211
1207
  MailboxSendRefusedError,
1212
1208
  OnboardingReviewRequiredError,
1213
1209
  ForbiddenError
1214
1210
  ]);
1215
1211
  const MailboxesForward404 = ResourceNotFoundError;
1216
- const MailboxesForward409 = /* @__PURE__ */ Schema$1.Union([MailboxSendConflictError, ConflictError]);
1217
- const MailboxesForward422 = /* @__PURE__ */ Schema$1.Union([MailboxChannelUnsupportedError, ValidationError]);
1212
+ const MailboxesForward409 = /* @__PURE__ */ Schema.Union([MailboxSendConflictError, ConflictError]);
1213
+ const MailboxesForward422 = /* @__PURE__ */ Schema.Union([MailboxChannelUnsupportedError, ValidationError]);
1218
1214
  const MailboxesForward429 = RateLimitedError;
1219
1215
  const MailboxesForward500 = InternalError;
1220
1216
  const MailboxesForward502 = BillingProviderError;
1221
1217
  const MailboxesForward503 = SenderNotReadyError;
1222
1218
  const MailboxesForward504 = GatewayTimeoutError;
1223
- const MailboxesGetMessageRawPathParams = /* @__PURE__ */ Schema$1.Struct({
1219
+ const MailboxesGetMessageRawPathParams = /* @__PURE__ */ Schema.Struct({
1224
1220
  id: MailboxId,
1225
1221
  messageId: MessageId
1226
1222
  });
@@ -1231,7 +1227,7 @@ const MailboxesGetMessageRaw404 = ResourceNotFoundError;
1231
1227
  const MailboxesGetMessageRaw422 = ValidationError;
1232
1228
  const MailboxesGetMessageRaw500 = InternalError;
1233
1229
  const MailboxesGetMessageRaw504 = GatewayTimeoutError;
1234
- const MailboxesReleaseMessagePathParams = /* @__PURE__ */ Schema$1.Struct({
1230
+ const MailboxesReleaseMessagePathParams = /* @__PURE__ */ Schema.Struct({
1235
1231
  id: MailboxId,
1236
1232
  messageId: MessageId
1237
1233
  });
@@ -1243,67 +1239,67 @@ const MailboxesReleaseMessage409 = ConflictError;
1243
1239
  const MailboxesReleaseMessage422 = ValidationError;
1244
1240
  const MailboxesReleaseMessage500 = InternalError;
1245
1241
  const MailboxesReleaseMessage504 = GatewayTimeoutError;
1246
- const MailboxesReplyPathParams = /* @__PURE__ */ Schema$1.Struct({
1242
+ const MailboxesReplyPathParams = /* @__PURE__ */ Schema.Struct({
1247
1243
  id: MailboxId,
1248
1244
  messageId: MessageId
1249
1245
  });
1250
- const MailboxesReplyHeaders = /* @__PURE__ */ Schema$1.Struct({ "idempotency-key": Schema$1.optionalKey(Schema$1.Union([Schema$1.String.annotate({ description: "Optional key that makes a mailbox send idempotent for the calling key or member. Repeating the request with the same key and body returns the original action in its current state. Keep the key after a lost response. Reusing it with different content returns 409. Active actions retain their key; terminal receipts remain replayable for 24 hours." }).check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^[\\s\\S]{1,255}$")).annotate({ expected: "a string matching the RegExp ^[\\s\\S]{1,255}$" })), Schema$1.Null])) });
1251
- const MailboxesReplyRequestJson = /* @__PURE__ */ Schema$1.Struct({
1252
- channel: Schema$1.optionalKey(Schema$1.Union([Schema$1.Literal("email"), Schema$1.Null])),
1253
- cc: Schema$1.optionalKey(Schema$1.Union([Schema$1.Array(Schema$1.String), Schema$1.Null])),
1254
- bcc: Schema$1.optionalKey(Schema$1.Union([Schema$1.Array(Schema$1.String), Schema$1.Null])),
1255
- text: Schema$1.optionalKey(Schema$1.Union([Schema$1.String, Schema$1.Null])),
1256
- html: Schema$1.optionalKey(Schema$1.Union([Schema$1.String, Schema$1.Null])),
1257
- attachments: Schema$1.optionalKey(Schema$1.Union([Schema$1.Array(EmailAttachment).check(Schema$1.isMaxLength(10).annotate({ expected: "a value with a length of at most 10" })), Schema$1.Null]))
1246
+ const MailboxesReplyHeaders = /* @__PURE__ */ Schema.Struct({ "idempotency-key": Schema.optionalKey(Schema.Union([Schema.String.annotate({ description: "Optional key that makes a mailbox send idempotent for the calling key or member. Repeating the request with the same key and body returns the original action in its current state. Keep the key after a lost response. Reusing it with different content returns 409. Active actions retain their key; terminal receipts remain replayable for 24 hours." }).check(Schema.isPattern(/* @__PURE__ */ new RegExp("^[\\s\\S]{1,255}$")).annotate({ expected: "a string matching the RegExp ^[\\s\\S]{1,255}$" })), Schema.Null])) });
1247
+ const MailboxesReplyRequestJson = /* @__PURE__ */ Schema.Struct({
1248
+ channel: Schema.optionalKey(Schema.Union([Schema.Literal("email"), Schema.Null])),
1249
+ cc: Schema.optionalKey(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
1250
+ bcc: Schema.optionalKey(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
1251
+ text: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
1252
+ html: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
1253
+ attachments: Schema.optionalKey(Schema.Union([Schema.Array(EmailAttachment).check(Schema.isMaxLength(10).annotate({ expected: "a value with a length of at most 10" })), Schema.Null]))
1258
1254
  });
1259
1255
  const MailboxesReply200 = MailboxSendReceipt;
1260
1256
  const MailboxesReply202 = MailboxPendingSendReceipt;
1261
1257
  const MailboxesReply401 = UnauthorizedError;
1262
1258
  const MailboxesReply402 = PaymentRequiredError;
1263
- const MailboxesReply403 = /* @__PURE__ */ Schema$1.Union([
1259
+ const MailboxesReply403 = /* @__PURE__ */ Schema.Union([
1264
1260
  MailboxSendRefusedError,
1265
1261
  OnboardingReviewRequiredError,
1266
1262
  ForbiddenError
1267
1263
  ]);
1268
1264
  const MailboxesReply404 = ResourceNotFoundError;
1269
- const MailboxesReply409 = /* @__PURE__ */ Schema$1.Union([MailboxSendConflictError, ConflictError]);
1270
- const MailboxesReply422 = /* @__PURE__ */ Schema$1.Union([MailboxChannelUnsupportedError, ValidationError]);
1265
+ const MailboxesReply409 = /* @__PURE__ */ Schema.Union([MailboxSendConflictError, ConflictError]);
1266
+ const MailboxesReply422 = /* @__PURE__ */ Schema.Union([MailboxChannelUnsupportedError, ValidationError]);
1271
1267
  const MailboxesReply429 = RateLimitedError;
1272
1268
  const MailboxesReply500 = InternalError;
1273
1269
  const MailboxesReply502 = BillingProviderError;
1274
1270
  const MailboxesReply503 = SenderNotReadyError;
1275
1271
  const MailboxesReply504 = GatewayTimeoutError;
1276
- const MailboxesReplyAllPathParams = /* @__PURE__ */ Schema$1.Struct({
1272
+ const MailboxesReplyAllPathParams = /* @__PURE__ */ Schema.Struct({
1277
1273
  id: MailboxId,
1278
1274
  messageId: MessageId
1279
1275
  });
1280
- const MailboxesReplyAllHeaders = /* @__PURE__ */ Schema$1.Struct({ "idempotency-key": Schema$1.optionalKey(Schema$1.Union([Schema$1.String.annotate({ description: "Optional key that makes a mailbox send idempotent for the calling key or member. Repeating the request with the same key and body returns the original action in its current state. Keep the key after a lost response. Reusing it with different content returns 409. Active actions retain their key; terminal receipts remain replayable for 24 hours." }).check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^[\\s\\S]{1,255}$")).annotate({ expected: "a string matching the RegExp ^[\\s\\S]{1,255}$" })), Schema$1.Null])) });
1281
- const MailboxesReplyAllRequestJson = /* @__PURE__ */ Schema$1.Struct({
1282
- channel: Schema$1.optionalKey(Schema$1.Union([Schema$1.Literal("email"), Schema$1.Null])),
1283
- cc: Schema$1.optionalKey(Schema$1.Union([Schema$1.Array(Schema$1.String), Schema$1.Null])),
1284
- bcc: Schema$1.optionalKey(Schema$1.Union([Schema$1.Array(Schema$1.String), Schema$1.Null])),
1285
- text: Schema$1.optionalKey(Schema$1.Union([Schema$1.String, Schema$1.Null])),
1286
- html: Schema$1.optionalKey(Schema$1.Union([Schema$1.String, Schema$1.Null])),
1287
- attachments: Schema$1.optionalKey(Schema$1.Union([Schema$1.Array(EmailAttachment).check(Schema$1.isMaxLength(10).annotate({ expected: "a value with a length of at most 10" })), Schema$1.Null]))
1276
+ const MailboxesReplyAllHeaders = /* @__PURE__ */ Schema.Struct({ "idempotency-key": Schema.optionalKey(Schema.Union([Schema.String.annotate({ description: "Optional key that makes a mailbox send idempotent for the calling key or member. Repeating the request with the same key and body returns the original action in its current state. Keep the key after a lost response. Reusing it with different content returns 409. Active actions retain their key; terminal receipts remain replayable for 24 hours." }).check(Schema.isPattern(/* @__PURE__ */ new RegExp("^[\\s\\S]{1,255}$")).annotate({ expected: "a string matching the RegExp ^[\\s\\S]{1,255}$" })), Schema.Null])) });
1277
+ const MailboxesReplyAllRequestJson = /* @__PURE__ */ Schema.Struct({
1278
+ channel: Schema.optionalKey(Schema.Union([Schema.Literal("email"), Schema.Null])),
1279
+ cc: Schema.optionalKey(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
1280
+ bcc: Schema.optionalKey(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
1281
+ text: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
1282
+ html: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
1283
+ attachments: Schema.optionalKey(Schema.Union([Schema.Array(EmailAttachment).check(Schema.isMaxLength(10).annotate({ expected: "a value with a length of at most 10" })), Schema.Null]))
1288
1284
  });
1289
1285
  const MailboxesReplyAll200 = MailboxSendReceipt;
1290
1286
  const MailboxesReplyAll202 = MailboxPendingSendReceipt;
1291
1287
  const MailboxesReplyAll401 = UnauthorizedError;
1292
1288
  const MailboxesReplyAll402 = PaymentRequiredError;
1293
- const MailboxesReplyAll403 = /* @__PURE__ */ Schema$1.Union([
1289
+ const MailboxesReplyAll403 = /* @__PURE__ */ Schema.Union([
1294
1290
  MailboxSendRefusedError,
1295
1291
  OnboardingReviewRequiredError,
1296
1292
  ForbiddenError
1297
1293
  ]);
1298
1294
  const MailboxesReplyAll404 = ResourceNotFoundError;
1299
- const MailboxesReplyAll409 = /* @__PURE__ */ Schema$1.Union([MailboxSendConflictError, ConflictError]);
1300
- const MailboxesReplyAll422 = /* @__PURE__ */ Schema$1.Union([MailboxChannelUnsupportedError, ValidationError]);
1295
+ const MailboxesReplyAll409 = /* @__PURE__ */ Schema.Union([MailboxSendConflictError, ConflictError]);
1296
+ const MailboxesReplyAll422 = /* @__PURE__ */ Schema.Union([MailboxChannelUnsupportedError, ValidationError]);
1301
1297
  const MailboxesReplyAll429 = RateLimitedError;
1302
1298
  const MailboxesReplyAll500 = InternalError;
1303
1299
  const MailboxesReplyAll502 = BillingProviderError;
1304
1300
  const MailboxesReplyAll503 = SenderNotReadyError;
1305
1301
  const MailboxesReplyAll504 = GatewayTimeoutError;
1306
- const MailboxesPausePathParams = /* @__PURE__ */ Schema$1.Struct({ id: MailboxId });
1302
+ const MailboxesPausePathParams = /* @__PURE__ */ Schema.Struct({ id: MailboxId });
1307
1303
  const MailboxesPause200 = Mailbox;
1308
1304
  const MailboxesPause401 = UnauthorizedError;
1309
1305
  const MailboxesPause403 = ForbiddenError;
@@ -1311,7 +1307,7 @@ const MailboxesPause404 = ResourceNotFoundError;
1311
1307
  const MailboxesPause422 = ValidationError;
1312
1308
  const MailboxesPause500 = InternalError;
1313
1309
  const MailboxesPause504 = GatewayTimeoutError;
1314
- const MailboxesListPoliciesPathParams = /* @__PURE__ */ Schema$1.Struct({ id: MailboxId });
1310
+ const MailboxesListPoliciesPathParams = /* @__PURE__ */ Schema.Struct({ id: MailboxId });
1315
1311
  const MailboxesListPolicies200 = MailboxPolicyList;
1316
1312
  const MailboxesListPolicies401 = UnauthorizedError;
1317
1313
  const MailboxesListPolicies403 = ForbiddenError;
@@ -1319,12 +1315,12 @@ const MailboxesListPolicies404 = ResourceNotFoundError;
1319
1315
  const MailboxesListPolicies422 = ValidationError;
1320
1316
  const MailboxesListPolicies500 = InternalError;
1321
1317
  const MailboxesListPolicies504 = GatewayTimeoutError;
1322
- const MailboxesCreatePolicyPathParams = /* @__PURE__ */ Schema$1.Struct({ id: MailboxId });
1323
- const MailboxesCreatePolicyRequestJson = /* @__PURE__ */ Schema$1.Struct({
1324
- name: Schema$1.String.check(Schema$1.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema$1.isMaxCodePoints(128).annotate({ expected: "a string with at most 128 code points" })).check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^\\S[\\s\\S]*\\S$|^\\S$|^$", "u")).annotate({ expected: "a string matching the RegExp ^\\S[\\s\\S]*\\S$|^\\S$|^$" })).check(Schema$1.isMaxLength(128).annotate({ expected: "a value with a length of at most 128" })),
1318
+ const MailboxesCreatePolicyPathParams = /* @__PURE__ */ Schema.Struct({ id: MailboxId });
1319
+ const MailboxesCreatePolicyRequestJson = /* @__PURE__ */ Schema.Struct({
1320
+ name: Schema.String.check(Schema.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema.isMaxCodePoints(128).annotate({ expected: "a string with at most 128 code points" })).check(Schema.isPattern(/* @__PURE__ */ new RegExp("^\\S[\\s\\S]*\\S$|^\\S$|^$", "u")).annotate({ expected: "a string matching the RegExp ^\\S[\\s\\S]*\\S$|^\\S$|^$" })).check(Schema.isMaxLength(128).annotate({ expected: "a value with a length of at most 128" })),
1325
1321
  outcome: MailboxPolicyOutcomeKind,
1326
- reason: Schema$1.optionalKey(Schema$1.Union([Schema$1.String.check(Schema$1.isMaxCodePoints(512).annotate({ expected: "a string with at most 512 code points" })).check(Schema$1.isMaxLength(512).annotate({ expected: "a value with a length of at most 512" })), Schema$1.Null])),
1327
- enabled: Schema$1.optionalKey(Schema$1.Union([Schema$1.Boolean, Schema$1.Null]))
1322
+ reason: Schema.optionalKey(Schema.Union([Schema.String.check(Schema.isMaxCodePoints(512).annotate({ expected: "a string with at most 512 code points" })).check(Schema.isMaxLength(512).annotate({ expected: "a value with a length of at most 512" })), Schema.Null])),
1323
+ enabled: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null]))
1328
1324
  });
1329
1325
  const MailboxesCreatePolicy201 = MailboxPolicy;
1330
1326
  const MailboxesCreatePolicy401 = UnauthorizedError;
@@ -1334,7 +1330,7 @@ const MailboxesCreatePolicy409 = ConflictError;
1334
1330
  const MailboxesCreatePolicy422 = ValidationError;
1335
1331
  const MailboxesCreatePolicy500 = InternalError;
1336
1332
  const MailboxesCreatePolicy504 = GatewayTimeoutError;
1337
- const MailboxesGetPolicyPathParams = /* @__PURE__ */ Schema$1.Struct({
1333
+ const MailboxesGetPolicyPathParams = /* @__PURE__ */ Schema.Struct({
1338
1334
  id: MailboxId,
1339
1335
  policyId: MailboxPolicyId
1340
1336
  });
@@ -1345,7 +1341,7 @@ const MailboxesGetPolicy404 = ResourceNotFoundError;
1345
1341
  const MailboxesGetPolicy422 = ValidationError;
1346
1342
  const MailboxesGetPolicy500 = InternalError;
1347
1343
  const MailboxesGetPolicy504 = GatewayTimeoutError;
1348
- const MailboxesDeletePolicyPathParams = /* @__PURE__ */ Schema$1.Struct({
1344
+ const MailboxesDeletePolicyPathParams = /* @__PURE__ */ Schema.Struct({
1349
1345
  id: MailboxId,
1350
1346
  policyId: MailboxPolicyId
1351
1347
  });
@@ -1356,15 +1352,15 @@ const MailboxesDeletePolicy404 = ResourceNotFoundError;
1356
1352
  const MailboxesDeletePolicy422 = ValidationError;
1357
1353
  const MailboxesDeletePolicy500 = InternalError;
1358
1354
  const MailboxesDeletePolicy504 = GatewayTimeoutError;
1359
- const MailboxesUpdatePolicyPathParams = /* @__PURE__ */ Schema$1.Struct({
1355
+ const MailboxesUpdatePolicyPathParams = /* @__PURE__ */ Schema.Struct({
1360
1356
  id: MailboxId,
1361
1357
  policyId: MailboxPolicyId
1362
1358
  });
1363
- const MailboxesUpdatePolicyRequestJson = /* @__PURE__ */ Schema$1.Struct({
1364
- name: Schema$1.optionalKey(Schema$1.Union([Schema$1.String.check(Schema$1.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema$1.isMaxCodePoints(128).annotate({ expected: "a string with at most 128 code points" })).check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^\\S[\\s\\S]*\\S$|^\\S$|^$", "u")).annotate({ expected: "a string matching the RegExp ^\\S[\\s\\S]*\\S$|^\\S$|^$" })).check(Schema$1.isMaxLength(128).annotate({ expected: "a value with a length of at most 128" })), Schema$1.Null])),
1365
- outcome: Schema$1.optionalKey(Schema$1.Union([MailboxPolicyOutcomeKind, Schema$1.Null])),
1366
- reason: Schema$1.optionalKey(Schema$1.Union([Schema$1.Union([Schema$1.String.check(Schema$1.isMaxCodePoints(512).annotate({ expected: "a string with at most 512 code points" })).check(Schema$1.isMaxLength(512).annotate({ expected: "a value with a length of at most 512" })), Schema$1.Null]), Schema$1.Null])),
1367
- enabled: Schema$1.optionalKey(Schema$1.Union([Schema$1.Boolean, Schema$1.Null]))
1359
+ const MailboxesUpdatePolicyRequestJson = /* @__PURE__ */ Schema.Struct({
1360
+ name: Schema.optionalKey(Schema.Union([Schema.String.check(Schema.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema.isMaxCodePoints(128).annotate({ expected: "a string with at most 128 code points" })).check(Schema.isPattern(/* @__PURE__ */ new RegExp("^\\S[\\s\\S]*\\S$|^\\S$|^$", "u")).annotate({ expected: "a string matching the RegExp ^\\S[\\s\\S]*\\S$|^\\S$|^$" })).check(Schema.isMaxLength(128).annotate({ expected: "a value with a length of at most 128" })), Schema.Null])),
1361
+ outcome: Schema.optionalKey(Schema.Union([MailboxPolicyOutcomeKind, Schema.Null])),
1362
+ reason: Schema.optionalKey(Schema.Union([Schema.Union([Schema.String.check(Schema.isMaxCodePoints(512).annotate({ expected: "a string with at most 512 code points" })).check(Schema.isMaxLength(512).annotate({ expected: "a value with a length of at most 512" })), Schema.Null]), Schema.Null])),
1363
+ enabled: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null]))
1368
1364
  });
1369
1365
  const MailboxesUpdatePolicy200 = MailboxPolicy;
1370
1366
  const MailboxesUpdatePolicy401 = UnauthorizedError;
@@ -1373,12 +1369,12 @@ const MailboxesUpdatePolicy404 = ResourceNotFoundError;
1373
1369
  const MailboxesUpdatePolicy422 = ValidationError;
1374
1370
  const MailboxesUpdatePolicy500 = InternalError;
1375
1371
  const MailboxesUpdatePolicy504 = GatewayTimeoutError;
1376
- const MailboxesListQuarantinePathParams = /* @__PURE__ */ Schema$1.Struct({ id: MailboxId });
1377
- const MailboxesListQuarantineQuery = /* @__PURE__ */ Schema$1.Struct({
1378
- limit: Schema$1.optionalKey(Schema$1.Union([Schema$1.String, Schema$1.Null])),
1379
- cursor: Schema$1.optionalKey(Schema$1.Union([Cursor, Schema$1.Null])),
1380
- after: Schema$1.optionalKey(Schema$1.Union([Schema$1.String, Schema$1.Null])),
1381
- before: Schema$1.optionalKey(Schema$1.Union([Schema$1.String, Schema$1.Null]))
1372
+ const MailboxesListQuarantinePathParams = /* @__PURE__ */ Schema.Struct({ id: MailboxId });
1373
+ const MailboxesListQuarantineQuery = /* @__PURE__ */ Schema.Struct({
1374
+ limit: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
1375
+ cursor: Schema.optionalKey(Schema.Union([Cursor, Schema.Null])),
1376
+ after: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
1377
+ before: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null]))
1382
1378
  });
1383
1379
  const MailboxesListQuarantine200 = MailboxQuarantinePage;
1384
1380
  const MailboxesListQuarantine401 = UnauthorizedError;
@@ -1387,7 +1383,7 @@ const MailboxesListQuarantine404 = ResourceNotFoundError;
1387
1383
  const MailboxesListQuarantine422 = ValidationError;
1388
1384
  const MailboxesListQuarantine500 = InternalError;
1389
1385
  const MailboxesListQuarantine504 = GatewayTimeoutError;
1390
- const MailboxesResumePathParams = /* @__PURE__ */ Schema$1.Struct({ id: MailboxId });
1386
+ const MailboxesResumePathParams = /* @__PURE__ */ Schema.Struct({ id: MailboxId });
1391
1387
  const MailboxesResume200 = Mailbox;
1392
1388
  const MailboxesResume401 = UnauthorizedError;
1393
1389
  const MailboxesResume403 = ForbiddenError;
@@ -1395,18 +1391,18 @@ const MailboxesResume404 = ResourceNotFoundError;
1395
1391
  const MailboxesResume422 = ValidationError;
1396
1392
  const MailboxesResume500 = InternalError;
1397
1393
  const MailboxesResume504 = GatewayTimeoutError;
1398
- const MailboxesListThreadsPathParams = /* @__PURE__ */ Schema$1.Struct({ id: MailboxId });
1399
- const MailboxesListThreadsQuery = /* @__PURE__ */ Schema$1.Struct({
1400
- limit: Schema$1.optionalKey(Schema$1.Union([Schema$1.String, Schema$1.Null])),
1401
- cursor: Schema$1.optionalKey(Schema$1.Union([Cursor, Schema$1.Null])),
1402
- after: Schema$1.optionalKey(Schema$1.Union([Schema$1.String, Schema$1.Null])),
1403
- before: Schema$1.optionalKey(Schema$1.Union([Schema$1.String, Schema$1.Null])),
1404
- q: Schema$1.optionalKey(Schema$1.Union([Schema$1.String, Schema$1.Null])),
1405
- folder: Schema$1.optionalKey(Schema$1.Union([MailboxThreadFolder, Schema$1.Null])),
1406
- label: Schema$1.optionalKey(Schema$1.Union([MailboxLabelId, Schema$1.Null])),
1407
- unread: Schema$1.optionalKey(Schema$1.Union([Schema$1.Union([Schema$1.Literal("true"), Schema$1.Literal("false")]), Schema$1.Null])),
1408
- starred: Schema$1.optionalKey(Schema$1.Union([Schema$1.Union([Schema$1.Literal("true"), Schema$1.Literal("false")]), Schema$1.Null])),
1409
- snoozed: Schema$1.optionalKey(Schema$1.Union([Schema$1.Union([Schema$1.Literal("true"), Schema$1.Literal("false")]), Schema$1.Null]))
1394
+ const MailboxesListThreadsPathParams = /* @__PURE__ */ Schema.Struct({ id: MailboxId });
1395
+ const MailboxesListThreadsQuery = /* @__PURE__ */ Schema.Struct({
1396
+ limit: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
1397
+ cursor: Schema.optionalKey(Schema.Union([Cursor, Schema.Null])),
1398
+ after: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
1399
+ before: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
1400
+ q: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
1401
+ folder: Schema.optionalKey(Schema.Union([MailboxThreadFolder, Schema.Null])),
1402
+ label: Schema.optionalKey(Schema.Union([MailboxLabelId, Schema.Null])),
1403
+ unread: Schema.optionalKey(Schema.Union([Schema.Union([Schema.Literal("true"), Schema.Literal("false")]), Schema.Null])),
1404
+ starred: Schema.optionalKey(Schema.Union([Schema.Union([Schema.Literal("true"), Schema.Literal("false")]), Schema.Null])),
1405
+ snoozed: Schema.optionalKey(Schema.Union([Schema.Union([Schema.Literal("true"), Schema.Literal("false")]), Schema.Null]))
1410
1406
  });
1411
1407
  const MailboxesListThreads200 = MailboxThreadPage;
1412
1408
  const MailboxesListThreads401 = UnauthorizedError;
@@ -1415,7 +1411,7 @@ const MailboxesListThreads404 = ResourceNotFoundError;
1415
1411
  const MailboxesListThreads422 = ValidationError;
1416
1412
  const MailboxesListThreads500 = InternalError;
1417
1413
  const MailboxesListThreads504 = GatewayTimeoutError;
1418
- const MailboxesGetThreadPathParams = /* @__PURE__ */ Schema$1.Struct({
1414
+ const MailboxesGetThreadPathParams = /* @__PURE__ */ Schema.Struct({
1419
1415
  id: MailboxId,
1420
1416
  threadId: MailboxThreadId
1421
1417
  });
@@ -1426,16 +1422,16 @@ const MailboxesGetThread404 = ResourceNotFoundError;
1426
1422
  const MailboxesGetThread422 = ValidationError;
1427
1423
  const MailboxesGetThread500 = InternalError;
1428
1424
  const MailboxesGetThread504 = GatewayTimeoutError;
1429
- const MailboxesUpdateThreadPathParams = /* @__PURE__ */ Schema$1.Struct({
1425
+ const MailboxesUpdateThreadPathParams = /* @__PURE__ */ Schema.Struct({
1430
1426
  id: MailboxId,
1431
1427
  threadId: MailboxThreadId
1432
1428
  });
1433
- const MailboxesUpdateThreadRequestJson = /* @__PURE__ */ Schema$1.Struct({
1434
- folder: Schema$1.optionalKey(Schema$1.Union([MailboxThreadFolder, Schema$1.Null])),
1435
- priority: Schema$1.optionalKey(Schema$1.Union([MailboxThreadPriority, Schema$1.Null])),
1436
- read: Schema$1.optionalKey(Schema$1.Union([Schema$1.Boolean, Schema$1.Null])),
1437
- starred: Schema$1.optionalKey(Schema$1.Union([Schema$1.Boolean, Schema$1.Null])),
1438
- snoozedUntil: Schema$1.optionalKey(Schema$1.Union([Schema$1.Union([Schema$1.String, Schema$1.Null]), Schema$1.Null]))
1429
+ const MailboxesUpdateThreadRequestJson = /* @__PURE__ */ Schema.Struct({
1430
+ folder: Schema.optionalKey(Schema.Union([MailboxThreadFolder, Schema.Null])),
1431
+ priority: Schema.optionalKey(Schema.Union([MailboxThreadPriority, Schema.Null])),
1432
+ read: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])),
1433
+ starred: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])),
1434
+ snoozedUntil: Schema.optionalKey(Schema.Union([Schema.Union([Schema.String, Schema.Null]), Schema.Null]))
1439
1435
  });
1440
1436
  const MailboxesUpdateThread200 = MailboxThreadState;
1441
1437
  const MailboxesUpdateThread401 = UnauthorizedError;
@@ -1444,13 +1440,13 @@ const MailboxesUpdateThread404 = ResourceNotFoundError;
1444
1440
  const MailboxesUpdateThread422 = ValidationError;
1445
1441
  const MailboxesUpdateThread500 = InternalError;
1446
1442
  const MailboxesUpdateThread504 = GatewayTimeoutError;
1447
- const MailboxesGetThreadContentPathParams = /* @__PURE__ */ Schema$1.Struct({
1443
+ const MailboxesGetThreadContentPathParams = /* @__PURE__ */ Schema.Struct({
1448
1444
  id: MailboxId,
1449
1445
  threadId: MailboxThreadId
1450
1446
  });
1451
- const MailboxesGetThreadContentQuery = /* @__PURE__ */ Schema$1.Struct({
1452
- limit: Schema$1.optionalKey(Schema$1.Union([Schema$1.String, Schema$1.Null])),
1453
- cursor: Schema$1.optionalKey(Schema$1.Union([Cursor, Schema$1.Null]))
1447
+ const MailboxesGetThreadContentQuery = /* @__PURE__ */ Schema.Struct({
1448
+ limit: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
1449
+ cursor: Schema.optionalKey(Schema.Union([Cursor, Schema.Null]))
1454
1450
  });
1455
1451
  const MailboxesGetThreadContent200 = MailboxThreadContentPage;
1456
1452
  const MailboxesGetThreadContent401 = UnauthorizedError;
@@ -1459,11 +1455,11 @@ const MailboxesGetThreadContent404 = ResourceNotFoundError;
1459
1455
  const MailboxesGetThreadContent422 = ValidationError;
1460
1456
  const MailboxesGetThreadContent500 = InternalError;
1461
1457
  const MailboxesGetThreadContent504 = GatewayTimeoutError;
1462
- const MailboxesAddThreadLabelsPathParams = /* @__PURE__ */ Schema$1.Struct({
1458
+ const MailboxesAddThreadLabelsPathParams = /* @__PURE__ */ Schema.Struct({
1463
1459
  id: MailboxId,
1464
1460
  threadId: MailboxThreadId
1465
1461
  });
1466
- const MailboxesAddThreadLabelsRequestJson = /* @__PURE__ */ Schema$1.Struct({ labels: Schema$1.TupleWithRest(Schema$1.Tuple([MailboxLabelId]), [MailboxLabelId]) });
1462
+ const MailboxesAddThreadLabelsRequestJson = /* @__PURE__ */ Schema.Struct({ labels: Schema.TupleWithRest(Schema.Tuple([MailboxLabelId]), [MailboxLabelId]) });
1467
1463
  const MailboxesAddThreadLabels200 = MailboxThreadState;
1468
1464
  const MailboxesAddThreadLabels401 = UnauthorizedError;
1469
1465
  const MailboxesAddThreadLabels403 = ForbiddenError;
@@ -1471,11 +1467,11 @@ const MailboxesAddThreadLabels404 = ResourceNotFoundError;
1471
1467
  const MailboxesAddThreadLabels422 = ValidationError;
1472
1468
  const MailboxesAddThreadLabels500 = InternalError;
1473
1469
  const MailboxesAddThreadLabels504 = GatewayTimeoutError;
1474
- const MailboxesRemoveThreadLabelsPathParams = /* @__PURE__ */ Schema$1.Struct({
1470
+ const MailboxesRemoveThreadLabelsPathParams = /* @__PURE__ */ Schema.Struct({
1475
1471
  id: MailboxId,
1476
1472
  threadId: MailboxThreadId
1477
1473
  });
1478
- const MailboxesRemoveThreadLabelsRequestJson = /* @__PURE__ */ Schema$1.Struct({ labels: Schema$1.TupleWithRest(Schema$1.Tuple([MailboxLabelId]), [MailboxLabelId]) });
1474
+ const MailboxesRemoveThreadLabelsRequestJson = /* @__PURE__ */ Schema.Struct({ labels: Schema.TupleWithRest(Schema.Tuple([MailboxLabelId]), [MailboxLabelId]) });
1479
1475
  const MailboxesRemoveThreadLabels200 = MailboxThreadState;
1480
1476
  const MailboxesRemoveThreadLabels401 = UnauthorizedError;
1481
1477
  const MailboxesRemoveThreadLabels403 = ForbiddenError;
@@ -1483,13 +1479,13 @@ const MailboxesRemoveThreadLabels404 = ResourceNotFoundError;
1483
1479
  const MailboxesRemoveThreadLabels422 = ValidationError;
1484
1480
  const MailboxesRemoveThreadLabels500 = InternalError;
1485
1481
  const MailboxesRemoveThreadLabels504 = GatewayTimeoutError;
1486
- const MailboxesListThreadMessagesPathParams = /* @__PURE__ */ Schema$1.Struct({
1482
+ const MailboxesListThreadMessagesPathParams = /* @__PURE__ */ Schema.Struct({
1487
1483
  id: MailboxId,
1488
1484
  threadId: MailboxThreadId
1489
1485
  });
1490
- const MailboxesListThreadMessagesQuery = /* @__PURE__ */ Schema$1.Struct({
1491
- limit: Schema$1.optionalKey(Schema$1.Union([Schema$1.String, Schema$1.Null])),
1492
- cursor: Schema$1.optionalKey(Schema$1.Union([Cursor, Schema$1.Null]))
1486
+ const MailboxesListThreadMessagesQuery = /* @__PURE__ */ Schema.Struct({
1487
+ limit: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
1488
+ cursor: Schema.optionalKey(Schema.Union([Cursor, Schema.Null]))
1493
1489
  });
1494
1490
  const MailboxesListThreadMessages200 = MailboxMessagePage;
1495
1491
  const MailboxesListThreadMessages401 = UnauthorizedError;
@@ -1498,13 +1494,13 @@ const MailboxesListThreadMessages404 = ResourceNotFoundError;
1498
1494
  const MailboxesListThreadMessages422 = ValidationError;
1499
1495
  const MailboxesListThreadMessages500 = InternalError;
1500
1496
  const MailboxesListThreadMessages504 = GatewayTimeoutError;
1501
- const MailboxesListThreadNotesPathParams = /* @__PURE__ */ Schema$1.Struct({
1497
+ const MailboxesListThreadNotesPathParams = /* @__PURE__ */ Schema.Struct({
1502
1498
  id: MailboxId,
1503
1499
  threadId: MailboxThreadId
1504
1500
  });
1505
- const MailboxesListThreadNotesQuery = /* @__PURE__ */ Schema$1.Struct({
1506
- limit: Schema$1.optionalKey(Schema$1.Union([Schema$1.String, Schema$1.Null])),
1507
- cursor: Schema$1.optionalKey(Schema$1.Union([Cursor, Schema$1.Null]))
1501
+ const MailboxesListThreadNotesQuery = /* @__PURE__ */ Schema.Struct({
1502
+ limit: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
1503
+ cursor: Schema.optionalKey(Schema.Union([Cursor, Schema.Null]))
1508
1504
  });
1509
1505
  const MailboxesListThreadNotes200 = MailboxNotePage;
1510
1506
  const MailboxesListThreadNotes401 = UnauthorizedError;
@@ -1513,14 +1509,14 @@ const MailboxesListThreadNotes404 = ResourceNotFoundError;
1513
1509
  const MailboxesListThreadNotes422 = ValidationError;
1514
1510
  const MailboxesListThreadNotes500 = InternalError;
1515
1511
  const MailboxesListThreadNotes504 = GatewayTimeoutError;
1516
- const MailboxesCreateNotePathParams = /* @__PURE__ */ Schema$1.Struct({
1512
+ const MailboxesCreateNotePathParams = /* @__PURE__ */ Schema.Struct({
1517
1513
  id: MailboxId,
1518
1514
  threadId: MailboxThreadId
1519
1515
  });
1520
- const MailboxesCreateNoteRequestJson = /* @__PURE__ */ Schema$1.Struct({
1521
- body: Schema$1.String,
1522
- color: Schema$1.optionalKey(Schema$1.Union([Schema$1.Union([Schema$1.String, Schema$1.Null]), Schema$1.Null])),
1523
- pinned: Schema$1.optionalKey(Schema$1.Union([Schema$1.Boolean, Schema$1.Null]))
1516
+ const MailboxesCreateNoteRequestJson = /* @__PURE__ */ Schema.Struct({
1517
+ body: Schema.String,
1518
+ color: Schema.optionalKey(Schema.Union([Schema.Union([Schema.String, Schema.Null]), Schema.Null])),
1519
+ pinned: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null]))
1524
1520
  });
1525
1521
  const MailboxesCreateNote201 = MailboxNote;
1526
1522
  const MailboxesCreateNote401 = UnauthorizedError;
@@ -1529,7 +1525,7 @@ const MailboxesCreateNote404 = ResourceNotFoundError;
1529
1525
  const MailboxesCreateNote422 = ValidationError;
1530
1526
  const MailboxesCreateNote500 = InternalError;
1531
1527
  const MailboxesCreateNote504 = GatewayTimeoutError;
1532
- const MailboxesDeleteNotePathParams = /* @__PURE__ */ Schema$1.Struct({
1528
+ const MailboxesDeleteNotePathParams = /* @__PURE__ */ Schema.Struct({
1533
1529
  id: MailboxId,
1534
1530
  threadId: MailboxThreadId,
1535
1531
  noteId: MailboxNoteId
@@ -1541,15 +1537,15 @@ const MailboxesDeleteNote404 = ResourceNotFoundError;
1541
1537
  const MailboxesDeleteNote422 = ValidationError;
1542
1538
  const MailboxesDeleteNote500 = InternalError;
1543
1539
  const MailboxesDeleteNote504 = GatewayTimeoutError;
1544
- const MailboxesUpdateNotePathParams = /* @__PURE__ */ Schema$1.Struct({
1540
+ const MailboxesUpdateNotePathParams = /* @__PURE__ */ Schema.Struct({
1545
1541
  id: MailboxId,
1546
1542
  threadId: MailboxThreadId,
1547
1543
  noteId: MailboxNoteId
1548
1544
  });
1549
- const MailboxesUpdateNoteRequestJson = /* @__PURE__ */ Schema$1.Struct({
1550
- body: Schema$1.optionalKey(Schema$1.Union([Schema$1.String, Schema$1.Null])),
1551
- color: Schema$1.optionalKey(Schema$1.Union([Schema$1.Union([Schema$1.String, Schema$1.Null]), Schema$1.Null])),
1552
- pinned: Schema$1.optionalKey(Schema$1.Union([Schema$1.Boolean, Schema$1.Null]))
1545
+ const MailboxesUpdateNoteRequestJson = /* @__PURE__ */ Schema.Struct({
1546
+ body: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
1547
+ color: Schema.optionalKey(Schema.Union([Schema.Union([Schema.String, Schema.Null]), Schema.Null])),
1548
+ pinned: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null]))
1553
1549
  });
1554
1550
  const MailboxesUpdateNote200 = MailboxNote;
1555
1551
  const MailboxesUpdateNote401 = UnauthorizedError;
@@ -2311,160 +2307,6 @@ var MailboxesGroup = class extends HttpApiGroup.make("Mailboxes").add(HttpApiEnd
2311
2307
  ]
2312
2308
  }).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "mailboxes.updateNote").annotate(OpenApi.Summary, "Update a mailbox note").annotate(OpenApi.Description, "Updates the fields you name and keeps the rest. Only the note's author may.")).annotate(OpenApi.Description, "Mailboxes: endpoints, threads, messages, drafts, and governed sends") {};
2313
2309
  //#endregion
2314
- //#region src/effect/internal/mailbox-events.ts
2315
- const toStreamError = (cause) => cause instanceof MailboxEventStreamError ? cause : new MailboxEventStreamError({
2316
- _tag: "StreamDisconnectedError",
2317
- message: String(cause)
2318
- });
2319
- /**
2320
- * The organization's mailbox events as a stream, resuming from `cursor`. An event counts as handled
2321
- * once the stream is pulled again, or once it ends successfully after the event (as `Stream.take`
2322
- * does); a failure or interruption leaves the event in hand unacknowledged, so a resume repeats it.
2323
- * The stream fails with a {@link MailboxEventStreamFailure}, which `Effect.catchTag` narrows by the
2324
- * `_tag` of the host's refusal.
2325
- */
2326
- const events = (options = {}) => Stream.scoped(Stream.unwrap(Effect.gen(function* () {
2327
- const client = yield* Service;
2328
- const iterator = (yield* Effect.acquireRelease(Effect.try({
2329
- try: () => new MailboxEventStream(client.connection, options),
2330
- catch: toStreamError
2331
- }), (opened, exit) => Effect.sync(() => {
2332
- if (Exit.isSuccess(exit)) opened.markHandled();
2333
- opened.close();
2334
- })))[Symbol.asyncIterator]();
2335
- return Stream.fromEffectRepeat(Effect.tryPromise({
2336
- try: () => iterator.next(),
2337
- catch: toStreamError
2338
- }).pipe(Effect.flatMap((next) => next.done ? Cause.done() : Effect.succeed(next.value))));
2339
- })));
2340
- //#endregion
2341
- //#region src/effect/mailboxes.ts
2342
- var mailboxes_exports = /* @__PURE__ */ __exportAll({
2343
- MailboxEventStreamError: () => MailboxEventStreamError,
2344
- addThreadLabels: () => addThreadLabels,
2345
- approveAction: () => approveAction,
2346
- cancelAction: () => cancelAction,
2347
- copyMessageAttachment: () => copyMessageAttachment,
2348
- create: () => create,
2349
- createDraft: () => createDraft,
2350
- createEndpoint: () => createEndpoint,
2351
- createGrant: () => createGrant,
2352
- createLabel: () => createLabel,
2353
- createNote: () => createNote,
2354
- createPolicy: () => createPolicy,
2355
- deleteDraft: () => deleteDraft,
2356
- deleteLabel: () => deleteLabel,
2357
- deleteNote: () => deleteNote,
2358
- deletePolicy: () => deletePolicy,
2359
- denyAction: () => denyAction,
2360
- discardMessage: () => discardMessage,
2361
- events: () => events,
2362
- forward: () => forward,
2363
- get: () => get,
2364
- getAction: () => getAction,
2365
- getAgentActivity: () => getAgentActivity,
2366
- getDraft: () => getDraft,
2367
- getMessage: () => getMessage,
2368
- getMessageAttachment: () => getMessageAttachment,
2369
- getMessageRaw: () => getMessageRaw,
2370
- getPolicy: () => getPolicy,
2371
- getThread: () => getThread,
2372
- getThreadContent: () => getThreadContent,
2373
- list: () => list,
2374
- listActions: () => listActions,
2375
- listDrafts: () => listDrafts,
2376
- listEvents: () => listEvents,
2377
- listFolders: () => listFolders,
2378
- listGrants: () => listGrants,
2379
- listLabels: () => listLabels,
2380
- listPolicies: () => listPolicies,
2381
- listQuarantine: () => listQuarantine,
2382
- listThreadMessages: () => listThreadMessages,
2383
- listThreadNotes: () => listThreadNotes,
2384
- listThreads: () => listThreads,
2385
- pause: () => pause,
2386
- releaseMessage: () => releaseMessage,
2387
- remove: () => remove,
2388
- removeEndpoint: () => removeEndpoint,
2389
- removeThreadLabels: () => removeThreadLabels,
2390
- reply: () => reply,
2391
- replyAll: () => replyAll,
2392
- resume: () => resume,
2393
- retryAction: () => retryAction,
2394
- revokeGrant: () => revokeGrant,
2395
- sendDraft: () => sendDraft,
2396
- sendMessage: () => sendMessage,
2397
- update: () => update,
2398
- updateDraft: () => updateDraft,
2399
- updateEndpoint: () => updateEndpoint,
2400
- updateGrant: () => updateGrant,
2401
- updateLabel: () => updateLabel,
2402
- updateNote: () => updateNote,
2403
- updatePolicy: () => updatePolicy,
2404
- updateThread: () => updateThread
2405
- });
2406
- const make = forGroup(MailboxesGroup);
2407
- const list = make("mailboxesList");
2408
- const create = make("mailboxesCreate");
2409
- const get = make("mailboxesGet");
2410
- const update = make("mailboxesUpdate");
2411
- const remove = make("mailboxesRemove");
2412
- const createEndpoint = make("mailboxesCreateEndpoint");
2413
- const updateEndpoint = make("mailboxesUpdateEndpoint");
2414
- const removeEndpoint = make("mailboxesRemoveEndpoint");
2415
- const pause = make("mailboxesPause");
2416
- const resume = make("mailboxesResume");
2417
- const getAgentActivity = make("mailboxesGetAgentActivity");
2418
- const listGrants = make("mailboxesListGrants");
2419
- const createGrant = make("mailboxesCreateGrant");
2420
- const updateGrant = make("mailboxesUpdateGrant");
2421
- const revokeGrant = make("mailboxesRevokeGrant");
2422
- const listPolicies = make("mailboxesListPolicies");
2423
- const createPolicy = make("mailboxesCreatePolicy");
2424
- const getPolicy = make("mailboxesGetPolicy");
2425
- const updatePolicy = make("mailboxesUpdatePolicy");
2426
- const deletePolicy = make("mailboxesDeletePolicy");
2427
- const listFolders = make("mailboxesListFolders");
2428
- const listLabels = make("mailboxesListLabels");
2429
- const createLabel = make("mailboxesCreateLabel");
2430
- const updateLabel = make("mailboxesUpdateLabel");
2431
- const deleteLabel = make("mailboxesDeleteLabel");
2432
- const listThreads = make("mailboxesListThreads");
2433
- const getThread = make("mailboxesGetThread");
2434
- const updateThread = make("mailboxesUpdateThread");
2435
- const addThreadLabels = make("mailboxesAddThreadLabels");
2436
- const removeThreadLabels = make("mailboxesRemoveThreadLabels");
2437
- const listThreadMessages = make("mailboxesListThreadMessages");
2438
- const getThreadContent = make("mailboxesGetThreadContent");
2439
- const listThreadNotes = make("mailboxesListThreadNotes");
2440
- const createNote = make("mailboxesCreateNote");
2441
- const updateNote = make("mailboxesUpdateNote");
2442
- const deleteNote = make("mailboxesDeleteNote");
2443
- const sendMessage = make("mailboxesSendMessage");
2444
- const getMessage = make("mailboxesGetMessage");
2445
- const getMessageRaw = make("mailboxesGetMessageRaw");
2446
- const getMessageAttachment = make("mailboxesGetMessageAttachment");
2447
- const copyMessageAttachment = make("mailboxesCopyMessageAttachment");
2448
- const reply = make("mailboxesReply");
2449
- const replyAll = make("mailboxesReplyAll");
2450
- const forward = make("mailboxesForward");
2451
- const listQuarantine = make("mailboxesListQuarantine");
2452
- const releaseMessage = make("mailboxesReleaseMessage");
2453
- const discardMessage = make("mailboxesDiscardMessage");
2454
- const listDrafts = make("mailboxesListDrafts");
2455
- const createDraft = make("mailboxesCreateDraft");
2456
- const getDraft = make("mailboxesGetDraft");
2457
- const updateDraft = make("mailboxesUpdateDraft");
2458
- const deleteDraft = make("mailboxesDeleteDraft");
2459
- const sendDraft = make("mailboxesSendDraft");
2460
- const listActions = make("mailboxesListActions");
2461
- const getAction = make("mailboxesGetAction");
2462
- const cancelAction = make("mailboxesCancelAction");
2463
- const retryAction = make("mailboxesRetryAction");
2464
- const approveAction = make("mailboxesApproveAction");
2465
- const denyAction = make("mailboxesDenyAction");
2466
- const listEvents = make("mailboxesListEvents");
2467
- //#endregion
2468
- export { sendMessage as $, listActions as A, listThreads as B, getMessage as C, getThread as D, getPolicy as E, listLabels as F, removeEndpoint as G, pause as H, listPolicies as I, replyAll as J, removeThreadLabels as K, listQuarantine as L, listEvents as M, listFolders as N, getThreadContent as O, listGrants as P, sendDraft as Q, listThreadMessages as R, getDraft as S, getMessageRaw as T, releaseMessage as U, mailboxes_exports as V, remove as W, retryAction as X, resume as Y, revokeGrant as Z, discardMessage as _, create as a, updateNote as at, getAction as b, createGrant as c, events as ct, createPolicy as d, update as et, deleteDraft as f, denyAction as g, deletePolicy as h, copyMessageAttachment as i, updateLabel as it, listDrafts as j, list as k, createLabel as l, deleteNote as m, approveAction as n, updateEndpoint as nt, createDraft as o, updatePolicy as ot, deleteLabel as p, reply as q, cancelAction as r, updateGrant as rt, createEndpoint as s, updateThread as st, addThreadLabels as t, updateDraft as tt, createNote as u, forward as v, getMessageAttachment as w, getAgentActivity as x, get as y, listThreadNotes as z };
2310
+ export { Mailbox, MailboxAction, MailboxActionPage, MailboxAgentActivity, MailboxCopiedAttachment, MailboxDownloadUrl, MailboxDraft, MailboxDraftPage, MailboxDraftState, MailboxDraftSummary, MailboxEndpoint, MailboxEvent, MailboxEventId, MailboxEventPage, MailboxFolderCount, MailboxFolderCountList, MailboxGrant, MailboxGrantId, MailboxGrantPage, MailboxLabel, MailboxLabelList, MailboxMessage, MailboxMessageAuthentication, MailboxMessagePage, MailboxMessageRecipient, MailboxMessageSender, MailboxMessageSummary, MailboxNonSendAction, MailboxNote, MailboxNoteId, MailboxNotePage, MailboxPage, MailboxPendingAction, MailboxPendingSendReceipt, MailboxPolicy, MailboxPolicyList, MailboxQuarantinePage, MailboxQuarantinedMessage, MailboxSendAction, MailboxSendSnapshot, MailboxStatus, MailboxSummary, MailboxThread, MailboxThreadContentPage, MailboxThreadPage, MailboxThreadParticipant, MailboxThreadSender, MailboxThreadState, MailboxThreadSummary, MailboxesAddThreadLabels200, MailboxesAddThreadLabels401, MailboxesAddThreadLabels403, MailboxesAddThreadLabels404, MailboxesAddThreadLabels422, MailboxesAddThreadLabels500, MailboxesAddThreadLabels504, MailboxesAddThreadLabelsPathParams, MailboxesAddThreadLabelsRequestJson, MailboxesApproveAction200, MailboxesApproveAction202, MailboxesApproveAction401, MailboxesApproveAction402, MailboxesApproveAction403, MailboxesApproveAction404, MailboxesApproveAction409, MailboxesApproveAction422, MailboxesApproveAction429, MailboxesApproveAction500, MailboxesApproveAction502, MailboxesApproveAction503, MailboxesApproveAction504, MailboxesApproveActionPathParams, MailboxesCancelAction200, MailboxesCancelAction202, MailboxesCancelAction401, MailboxesCancelAction402, MailboxesCancelAction403, MailboxesCancelAction404, MailboxesCancelAction409, MailboxesCancelAction422, MailboxesCancelAction429, MailboxesCancelAction500, MailboxesCancelAction502, MailboxesCancelAction503, MailboxesCancelAction504, MailboxesCancelActionPathParams, MailboxesCopyMessageAttachment201, MailboxesCopyMessageAttachment401, MailboxesCopyMessageAttachment403, MailboxesCopyMessageAttachment404, MailboxesCopyMessageAttachment409, MailboxesCopyMessageAttachment422, MailboxesCopyMessageAttachment500, MailboxesCopyMessageAttachment504, MailboxesCopyMessageAttachmentPathParams, MailboxesCreate201, MailboxesCreate401, MailboxesCreate402, MailboxesCreate403, MailboxesCreate404, MailboxesCreate409, MailboxesCreate422, MailboxesCreate500, MailboxesCreate502, MailboxesCreate504, MailboxesCreateDraft201, MailboxesCreateDraft401, MailboxesCreateDraft403, MailboxesCreateDraft404, MailboxesCreateDraft422, MailboxesCreateDraft500, MailboxesCreateDraft504, MailboxesCreateDraftPathParams, MailboxesCreateDraftRequestJson, MailboxesCreateEndpoint201, MailboxesCreateEndpoint401, MailboxesCreateEndpoint403, MailboxesCreateEndpoint404, MailboxesCreateEndpoint409, MailboxesCreateEndpoint422, MailboxesCreateEndpoint500, MailboxesCreateEndpoint504, MailboxesCreateEndpointPathParams, MailboxesCreateEndpointRequestJson, MailboxesCreateGrant201, MailboxesCreateGrant401, MailboxesCreateGrant403, MailboxesCreateGrant404, MailboxesCreateGrant409, MailboxesCreateGrant422, MailboxesCreateGrant500, MailboxesCreateGrant504, MailboxesCreateGrantPathParams, MailboxesCreateGrantRequestJson, MailboxesCreateLabel201, MailboxesCreateLabel401, MailboxesCreateLabel403, MailboxesCreateLabel404, MailboxesCreateLabel409, MailboxesCreateLabel422, MailboxesCreateLabel500, MailboxesCreateLabel504, MailboxesCreateLabelPathParams, MailboxesCreateLabelRequestJson, MailboxesCreateNote201, MailboxesCreateNote401, MailboxesCreateNote403, MailboxesCreateNote404, MailboxesCreateNote422, MailboxesCreateNote500, MailboxesCreateNote504, MailboxesCreateNotePathParams, MailboxesCreateNoteRequestJson, MailboxesCreatePolicy201, MailboxesCreatePolicy401, MailboxesCreatePolicy403, MailboxesCreatePolicy404, MailboxesCreatePolicy409, MailboxesCreatePolicy422, MailboxesCreatePolicy500, MailboxesCreatePolicy504, MailboxesCreatePolicyPathParams, MailboxesCreatePolicyRequestJson, MailboxesCreateRequestJson, MailboxesDeleteDraft200, MailboxesDeleteDraft401, MailboxesDeleteDraft403, MailboxesDeleteDraft404, MailboxesDeleteDraft422, MailboxesDeleteDraft500, MailboxesDeleteDraft504, MailboxesDeleteDraftPathParams, MailboxesDeleteLabel200, MailboxesDeleteLabel401, MailboxesDeleteLabel403, MailboxesDeleteLabel404, MailboxesDeleteLabel422, MailboxesDeleteLabel500, MailboxesDeleteLabel504, MailboxesDeleteLabelPathParams, MailboxesDeleteNote200, MailboxesDeleteNote401, MailboxesDeleteNote403, MailboxesDeleteNote404, MailboxesDeleteNote422, MailboxesDeleteNote500, MailboxesDeleteNote504, MailboxesDeleteNotePathParams, MailboxesDeletePolicy200, MailboxesDeletePolicy401, MailboxesDeletePolicy403, MailboxesDeletePolicy404, MailboxesDeletePolicy422, MailboxesDeletePolicy500, MailboxesDeletePolicy504, MailboxesDeletePolicyPathParams, MailboxesDenyAction200, MailboxesDenyAction401, MailboxesDenyAction403, MailboxesDenyAction404, MailboxesDenyAction409, MailboxesDenyAction422, MailboxesDenyAction500, MailboxesDenyAction504, MailboxesDenyActionPathParams, MailboxesDenyActionRequestJson, MailboxesDiscardMessage200, MailboxesDiscardMessage401, MailboxesDiscardMessage403, MailboxesDiscardMessage404, MailboxesDiscardMessage409, MailboxesDiscardMessage422, MailboxesDiscardMessage500, MailboxesDiscardMessage502, MailboxesDiscardMessage504, MailboxesDiscardMessagePathParams, MailboxesForward200, MailboxesForward202, MailboxesForward401, MailboxesForward402, MailboxesForward403, MailboxesForward404, MailboxesForward409, MailboxesForward422, MailboxesForward429, MailboxesForward500, MailboxesForward502, MailboxesForward503, MailboxesForward504, MailboxesForwardHeaders, MailboxesForwardPathParams, MailboxesForwardRequestJson, MailboxesGet200, MailboxesGet401, MailboxesGet403, MailboxesGet404, MailboxesGet422, MailboxesGet500, MailboxesGet504, MailboxesGetAction200, MailboxesGetAction401, MailboxesGetAction403, MailboxesGetAction404, MailboxesGetAction422, MailboxesGetAction500, MailboxesGetAction504, MailboxesGetActionPathParams, MailboxesGetAgentActivity200, MailboxesGetAgentActivity401, MailboxesGetAgentActivity403, MailboxesGetAgentActivity404, MailboxesGetAgentActivity422, MailboxesGetAgentActivity500, MailboxesGetAgentActivity504, MailboxesGetAgentActivityPathParams, MailboxesGetAgentActivityQuery, MailboxesGetDraft200, MailboxesGetDraft401, MailboxesGetDraft403, MailboxesGetDraft404, MailboxesGetDraft422, MailboxesGetDraft500, MailboxesGetDraft504, MailboxesGetDraftPathParams, MailboxesGetMessage200, MailboxesGetMessage401, MailboxesGetMessage403, MailboxesGetMessage404, MailboxesGetMessage422, MailboxesGetMessage500, MailboxesGetMessage504, MailboxesGetMessageAttachment200, MailboxesGetMessageAttachment401, MailboxesGetMessageAttachment403, MailboxesGetMessageAttachment404, MailboxesGetMessageAttachment422, MailboxesGetMessageAttachment500, MailboxesGetMessageAttachment504, MailboxesGetMessageAttachmentPathParams, MailboxesGetMessagePathParams, MailboxesGetMessageRaw200, MailboxesGetMessageRaw401, MailboxesGetMessageRaw403, MailboxesGetMessageRaw404, MailboxesGetMessageRaw422, MailboxesGetMessageRaw500, MailboxesGetMessageRaw504, MailboxesGetMessageRawPathParams, MailboxesGetPathParams, MailboxesGetPolicy200, MailboxesGetPolicy401, MailboxesGetPolicy403, MailboxesGetPolicy404, MailboxesGetPolicy422, MailboxesGetPolicy500, MailboxesGetPolicy504, MailboxesGetPolicyPathParams, MailboxesGetThread200, MailboxesGetThread401, MailboxesGetThread403, MailboxesGetThread404, MailboxesGetThread422, MailboxesGetThread500, MailboxesGetThread504, MailboxesGetThreadContent200, MailboxesGetThreadContent401, MailboxesGetThreadContent403, MailboxesGetThreadContent404, MailboxesGetThreadContent422, MailboxesGetThreadContent500, MailboxesGetThreadContent504, MailboxesGetThreadContentPathParams, MailboxesGetThreadContentQuery, MailboxesGetThreadPathParams, MailboxesGroup, MailboxesList200, MailboxesList401, MailboxesList403, MailboxesList422, MailboxesList500, MailboxesList504, MailboxesListActions200, MailboxesListActions401, MailboxesListActions403, MailboxesListActions404, MailboxesListActions422, MailboxesListActions500, MailboxesListActions504, MailboxesListActionsPathParams, MailboxesListActionsQuery, MailboxesListDrafts200, MailboxesListDrafts401, MailboxesListDrafts403, MailboxesListDrafts404, MailboxesListDrafts422, MailboxesListDrafts500, MailboxesListDrafts504, MailboxesListDraftsPathParams, MailboxesListDraftsQuery, MailboxesListEvents200, MailboxesListEvents401, MailboxesListEvents403, MailboxesListEvents404, MailboxesListEvents422, MailboxesListEvents500, MailboxesListEvents504, MailboxesListEventsPathParams, MailboxesListEventsQuery, MailboxesListFolders200, MailboxesListFolders401, MailboxesListFolders403, MailboxesListFolders404, MailboxesListFolders422, MailboxesListFolders500, MailboxesListFolders504, MailboxesListFoldersPathParams, MailboxesListGrants200, MailboxesListGrants401, MailboxesListGrants403, MailboxesListGrants404, MailboxesListGrants422, MailboxesListGrants500, MailboxesListGrants504, MailboxesListGrantsPathParams, MailboxesListGrantsQuery, MailboxesListLabels200, MailboxesListLabels401, MailboxesListLabels403, MailboxesListLabels404, MailboxesListLabels422, MailboxesListLabels500, MailboxesListLabels504, MailboxesListLabelsPathParams, MailboxesListPolicies200, MailboxesListPolicies401, MailboxesListPolicies403, MailboxesListPolicies404, MailboxesListPolicies422, MailboxesListPolicies500, MailboxesListPolicies504, MailboxesListPoliciesPathParams, MailboxesListQuarantine200, MailboxesListQuarantine401, MailboxesListQuarantine403, MailboxesListQuarantine404, MailboxesListQuarantine422, MailboxesListQuarantine500, MailboxesListQuarantine504, MailboxesListQuarantinePathParams, MailboxesListQuarantineQuery, MailboxesListQuery, MailboxesListThreadMessages200, MailboxesListThreadMessages401, MailboxesListThreadMessages403, MailboxesListThreadMessages404, MailboxesListThreadMessages422, MailboxesListThreadMessages500, MailboxesListThreadMessages504, MailboxesListThreadMessagesPathParams, MailboxesListThreadMessagesQuery, MailboxesListThreadNotes200, MailboxesListThreadNotes401, MailboxesListThreadNotes403, MailboxesListThreadNotes404, MailboxesListThreadNotes422, MailboxesListThreadNotes500, MailboxesListThreadNotes504, MailboxesListThreadNotesPathParams, MailboxesListThreadNotesQuery, MailboxesListThreads200, MailboxesListThreads401, MailboxesListThreads403, MailboxesListThreads404, MailboxesListThreads422, MailboxesListThreads500, MailboxesListThreads504, MailboxesListThreadsPathParams, MailboxesListThreadsQuery, MailboxesPause200, MailboxesPause401, MailboxesPause403, MailboxesPause404, MailboxesPause422, MailboxesPause500, MailboxesPause504, MailboxesPausePathParams, MailboxesReleaseMessage200, MailboxesReleaseMessage401, MailboxesReleaseMessage403, MailboxesReleaseMessage404, MailboxesReleaseMessage409, MailboxesReleaseMessage422, MailboxesReleaseMessage500, MailboxesReleaseMessage504, MailboxesReleaseMessagePathParams, MailboxesRemove200, MailboxesRemove401, MailboxesRemove403, MailboxesRemove404, MailboxesRemove422, MailboxesRemove500, MailboxesRemove502, MailboxesRemove504, MailboxesRemoveEndpoint200, MailboxesRemoveEndpoint401, MailboxesRemoveEndpoint403, MailboxesRemoveEndpoint404, MailboxesRemoveEndpoint422, MailboxesRemoveEndpoint500, MailboxesRemoveEndpoint504, MailboxesRemoveEndpointPathParams, MailboxesRemovePathParams, MailboxesRemoveThreadLabels200, MailboxesRemoveThreadLabels401, MailboxesRemoveThreadLabels403, MailboxesRemoveThreadLabels404, MailboxesRemoveThreadLabels422, MailboxesRemoveThreadLabels500, MailboxesRemoveThreadLabels504, MailboxesRemoveThreadLabelsPathParams, MailboxesRemoveThreadLabelsRequestJson, MailboxesReply200, MailboxesReply202, MailboxesReply401, MailboxesReply402, MailboxesReply403, MailboxesReply404, MailboxesReply409, MailboxesReply422, MailboxesReply429, MailboxesReply500, MailboxesReply502, MailboxesReply503, MailboxesReply504, MailboxesReplyAll200, MailboxesReplyAll202, MailboxesReplyAll401, MailboxesReplyAll402, MailboxesReplyAll403, MailboxesReplyAll404, MailboxesReplyAll409, MailboxesReplyAll422, MailboxesReplyAll429, MailboxesReplyAll500, MailboxesReplyAll502, MailboxesReplyAll503, MailboxesReplyAll504, MailboxesReplyAllHeaders, MailboxesReplyAllPathParams, MailboxesReplyAllRequestJson, MailboxesReplyHeaders, MailboxesReplyPathParams, MailboxesReplyRequestJson, MailboxesResume200, MailboxesResume401, MailboxesResume403, MailboxesResume404, MailboxesResume422, MailboxesResume500, MailboxesResume504, MailboxesResumePathParams, MailboxesRetryAction200, MailboxesRetryAction202, MailboxesRetryAction401, MailboxesRetryAction402, MailboxesRetryAction403, MailboxesRetryAction404, MailboxesRetryAction409, MailboxesRetryAction422, MailboxesRetryAction429, MailboxesRetryAction500, MailboxesRetryAction502, MailboxesRetryAction503, MailboxesRetryAction504, MailboxesRetryActionPathParams, MailboxesRevokeGrant200, MailboxesRevokeGrant401, MailboxesRevokeGrant403, MailboxesRevokeGrant404, MailboxesRevokeGrant409, MailboxesRevokeGrant422, MailboxesRevokeGrant500, MailboxesRevokeGrant504, MailboxesRevokeGrantPathParams, MailboxesSendDraft200, MailboxesSendDraft202, MailboxesSendDraft401, MailboxesSendDraft402, MailboxesSendDraft403, MailboxesSendDraft404, MailboxesSendDraft409, MailboxesSendDraft422, MailboxesSendDraft429, MailboxesSendDraft500, MailboxesSendDraft502, MailboxesSendDraft503, MailboxesSendDraft504, MailboxesSendDraftHeaders, MailboxesSendDraftPathParams, MailboxesSendMessage200, MailboxesSendMessage202, MailboxesSendMessage401, MailboxesSendMessage402, MailboxesSendMessage403, MailboxesSendMessage404, MailboxesSendMessage409, MailboxesSendMessage422, MailboxesSendMessage429, MailboxesSendMessage500, MailboxesSendMessage502, MailboxesSendMessage503, MailboxesSendMessage504, MailboxesSendMessageHeaders, MailboxesSendMessagePathParams, MailboxesSendMessageRequestJson, MailboxesUpdate200, MailboxesUpdate401, MailboxesUpdate403, MailboxesUpdate404, MailboxesUpdate422, MailboxesUpdate500, MailboxesUpdate504, MailboxesUpdateDraft200, MailboxesUpdateDraft401, MailboxesUpdateDraft403, MailboxesUpdateDraft404, MailboxesUpdateDraft409, MailboxesUpdateDraft422, MailboxesUpdateDraft500, MailboxesUpdateDraft504, MailboxesUpdateDraftPathParams, MailboxesUpdateDraftRequestJson, MailboxesUpdateEndpoint200, MailboxesUpdateEndpoint401, MailboxesUpdateEndpoint403, MailboxesUpdateEndpoint404, MailboxesUpdateEndpoint422, MailboxesUpdateEndpoint500, MailboxesUpdateEndpoint504, MailboxesUpdateEndpointPathParams, MailboxesUpdateEndpointRequestJson, MailboxesUpdateGrant200, MailboxesUpdateGrant401, MailboxesUpdateGrant403, MailboxesUpdateGrant404, MailboxesUpdateGrant409, MailboxesUpdateGrant422, MailboxesUpdateGrant500, MailboxesUpdateGrant504, MailboxesUpdateGrantPathParams, MailboxesUpdateGrantRequestJson, MailboxesUpdateLabel200, MailboxesUpdateLabel401, MailboxesUpdateLabel403, MailboxesUpdateLabel404, MailboxesUpdateLabel422, MailboxesUpdateLabel500, MailboxesUpdateLabel504, MailboxesUpdateLabelPathParams, MailboxesUpdateLabelRequestJson, MailboxesUpdateNote200, MailboxesUpdateNote401, MailboxesUpdateNote403, MailboxesUpdateNote404, MailboxesUpdateNote422, MailboxesUpdateNote500, MailboxesUpdateNote504, MailboxesUpdateNotePathParams, MailboxesUpdateNoteRequestJson, MailboxesUpdatePathParams, MailboxesUpdatePolicy200, MailboxesUpdatePolicy401, MailboxesUpdatePolicy403, MailboxesUpdatePolicy404, MailboxesUpdatePolicy422, MailboxesUpdatePolicy500, MailboxesUpdatePolicy504, MailboxesUpdatePolicyPathParams, MailboxesUpdatePolicyRequestJson, MailboxesUpdateRequestJson, MailboxesUpdateThread200, MailboxesUpdateThread401, MailboxesUpdateThread403, MailboxesUpdateThread404, MailboxesUpdateThread422, MailboxesUpdateThread500, MailboxesUpdateThread504, MailboxesUpdateThreadPathParams, MailboxesUpdateThreadRequestJson };
2469
2311
 
2470
- //# sourceMappingURL=mailboxes-BRDn7BIK.js.map
2312
+ //# sourceMappingURL=mailboxes.js.map