samva 0.17.0 → 0.19.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.
- package/AGENTS.md +5 -0
- package/README.md +18 -3
- package/dist/{rolldown-runtime-D7D4PA-g.js → _virtual/_rolldown/runtime.js} +1 -1
- package/dist/client/client/client.gen.js +174 -0
- package/dist/client/client/utils.gen.js +177 -0
- package/dist/client/client.gen.js +8 -0
- package/dist/client/core/auth.gen.js +12 -0
- package/dist/client/core/bodySerializer.gen.js +6 -0
- package/dist/client/core/params.gen.js +77 -0
- package/dist/client/core/pathSerializer.gen.js +82 -0
- package/dist/client/core/serverSentEvents.gen.js +96 -0
- package/dist/client/core/utils.gen.js +78 -0
- package/dist/client/sdk.gen.d.ts +39 -23
- package/dist/{promises---Kbh-7z.js → client/sdk.gen.js} +87 -2314
- package/dist/client/types.gen.d.ts +175 -44
- package/dist/client-attribution.js +9 -0
- package/dist/effect/analytics.d.ts +6 -6
- package/dist/effect/analytics.js +23 -2
- package/dist/effect/api-keys.d.ts +12 -12
- package/dist/effect/api-keys.js +29 -2
- package/dist/effect/attachments.d.ts +4 -4
- package/dist/effect/attachments.js +19 -2
- package/dist/effect/brands.d.ts +6 -6
- package/dist/effect/brands.js +26 -3
- package/dist/effect/campaigns.d.ts +18 -18
- package/dist/effect/campaigns.js +35 -2
- package/dist/effect/categories.d.ts +2 -2
- package/dist/effect/categories.js +95 -1
- package/dist/effect/client.js +3 -3
- package/dist/effect/contact-groups.d.ts +53 -17
- package/dist/effect/contact-groups.js +31 -2
- package/dist/effect/contacts.d.ts +244 -41
- package/dist/effect/contacts.js +54 -2
- package/dist/effect/conversations.d.ts +28 -28
- package/dist/effect/conversations.js +37 -2
- package/dist/effect/custom-fields.d.ts +4 -4
- package/dist/effect/custom-fields.js +19 -2
- package/dist/effect/email.d.ts +75 -75
- package/dist/effect/email.js +140 -2
- package/dist/effect/errors.d.ts +2 -0
- package/dist/effect/errors.js +3 -0
- package/dist/effect/events.d.ts +2 -2
- package/dist/effect/events.js +17 -3
- package/dist/effect/extension-installations.d.ts +23 -23
- package/dist/effect/extension-installations.js +29 -2
- package/dist/effect/extensions.d.ts +12 -12
- package/dist/effect/extensions.js +21 -2
- package/dist/effect/feedback.d.ts +1 -1
- package/dist/effect/feedback.js +14 -3
- package/dist/{analytics-CaqPRsry.js → effect/generated/analytics.js} +4 -23
- package/dist/{api-keys-Ce1Y4_Ip.js → effect/generated/api-keys.js} +4 -29
- package/dist/{attachments-DYqVIraC.js → effect/generated/attachments.js} +3 -18
- package/dist/{brands-ZwuOGIWO.js → effect/generated/brands.js} +5 -25
- package/dist/{campaigns-DZlz1E9E.js → effect/generated/campaigns.js} +4 -35
- package/dist/effect/generated/contact-events.js +37 -0
- package/dist/effect/generated/contact-groups.d.ts +33 -3
- package/dist/{contact-groups-BLbFXnjq.js → effect/generated/contact-groups.js} +3 -30
- package/dist/effect/generated/contacts.d.ts +477 -54
- package/dist/{contacts-BbsoXXB4.js → effect/generated/contacts.js} +41 -89
- package/dist/effect/generated/conversations.d.ts +25 -25
- package/dist/{conversations-_sRHueML.js → effect/generated/conversations.js} +4 -37
- package/dist/{custom-fields-BHWbwlKn.js → effect/generated/custom-fields.js} +5 -19
- package/dist/{email-R0NAA9PW.js → effect/generated/email.js} +995 -1146
- package/dist/{events-CxbTUHYT.js → effect/generated/events.js} +3 -15
- package/dist/effect/generated/extension-installations.d.ts +44 -44
- package/dist/{extension-installations-CD94LPmk.js → effect/generated/extension-installations.js} +10 -29
- package/dist/effect/generated/extensions.d.ts +10 -10
- package/dist/{extensions-BKyNQLvu.js → effect/generated/extensions.js} +5 -20
- package/dist/{feedback-Bpa09JOS.js → effect/generated/feedback.js} +3 -12
- package/dist/{journeys-CARo_BJT.js → effect/generated/journeys.js} +3 -38
- package/dist/effect/generated/mailboxes.d.ts +310 -0
- package/dist/{mailboxes-BRDn7BIK.js → effect/generated/mailboxes.js} +829 -954
- package/dist/{media-VrrtNnft.js → effect/generated/media.js} +3 -3
- package/dist/effect/generated/messages.d.ts +31 -0
- package/dist/effect/generated/messages.js +677 -0
- package/dist/{namespaces-CcvEbG-y.js → effect/generated/namespaces.js} +3 -20
- package/dist/{operations-CmB3FHwf.js → effect/generated/operations.js} +3 -16
- package/dist/effect/generated/organizations.d.ts +13 -11
- package/dist/{organizations-A-plufWc.js → effect/generated/organizations.js} +9 -26
- package/dist/{scheduled-messages-DkKZRRaN.js → effect/generated/scheduled-messages.js} +4 -21
- package/dist/effect/generated/shared.d.ts +70 -20
- package/dist/effect/generated/shared.js +1073 -0
- package/dist/{subscriptions-DEXYtMXg.js → effect/generated/subscriptions.js} +3 -9
- package/dist/{templates-DZomxsG7.js → effect/generated/templates.js} +3 -78
- package/dist/effect/generated/unsubscribe-groups.d.ts +173 -78
- package/dist/{unsubscribe-groups-Iqk4Isf9.js → effect/generated/unsubscribe-groups.js} +77 -84
- package/dist/effect/generated/webhooks.d.ts +19 -19
- package/dist/{webhooks-CPXuu8Xf.js → effect/generated/webhooks.js} +12 -34
- package/dist/{whoami-Ccz0jwlt.js → effect/generated/whoami.js} +5 -10
- package/dist/effect/generated-metadata.d.ts +7 -2
- package/dist/effect/generated-metadata.js +925 -0
- package/dist/effect/index.d.ts +1 -2
- package/dist/effect/index.js +32 -32
- package/dist/effect/internal/client.js +69 -0
- package/dist/effect/internal/email-sender.js +21 -0
- package/dist/effect/internal/mailbox-events.js +33 -0
- package/dist/effect/internal/operation.js +116 -0
- package/dist/effect/internal/send.js +56 -0
- package/dist/effect/journeys.d.ts +18 -18
- package/dist/effect/journeys.js +39 -2
- package/dist/effect/mailboxes.d.ts +314 -182
- package/dist/effect/mailboxes.js +135 -3
- package/dist/effect/media.d.ts +5 -5
- package/dist/effect/media.js +10 -10
- package/dist/effect/messages.d.ts +19 -14
- package/dist/effect/messages.js +15 -14
- package/dist/effect/namespaces.d.ts +7 -7
- package/dist/effect/namespaces.js +21 -2
- package/dist/effect/operations.d.ts +5 -5
- package/dist/effect/operations.js +17 -2
- package/dist/effect/organizations.d.ts +11 -11
- package/dist/effect/organizations.js +25 -2
- package/dist/effect/pagination.js +39 -0
- package/dist/effect/retry.js +3 -3
- package/dist/{runtime-P0l1_2-C.js → effect/runtime.js} +2 -2
- package/dist/effect/scheduled-messages.d.ts +7 -7
- package/dist/effect/scheduled-messages.js +21 -2
- package/dist/effect/subscriptions.d.ts +1 -1
- package/dist/effect/subscriptions.js +10 -2
- package/dist/effect/templates.d.ts +39 -39
- package/dist/effect/templates.js +80 -3
- package/dist/effect/unsubscribe-groups.d.ts +39 -28
- package/dist/effect/unsubscribe-groups.js +29 -2
- package/dist/effect/webhooks.d.ts +22 -22
- package/dist/effect/webhooks.js +35 -3
- package/dist/effect/whoami.d.ts +9 -9
- package/dist/effect/whoami.js +10 -2
- package/dist/index.js +4 -3
- package/dist/{inline-attachments-Bi1hDltp.js → inline-attachments.js} +13 -7
- package/dist/mailbox-events.d.ts +31 -4
- package/dist/{mailbox-events-VKR4f3qq.js → mailbox-events.js} +41 -13
- package/dist/{normalize-B79uJIeb.js → normalize.js} +2 -2
- package/dist/package.js +6 -0
- package/dist/promises/errors.gen.js +1340 -0
- package/dist/promises/index.d.ts +1 -1
- package/dist/promises/index.js +288 -3
- package/dist/promises/types.gen.d.ts +1 -1
- package/dist/service-map.d.ts +9 -4
- package/dist/{operation-n_IYgNVK.js → service-map.js} +12 -150
- package/package.json +6 -2
- package/dist/categories-CA4XIQAb.js +0 -1011
- package/dist/client-DOzUrdTE.js +0 -1115
- package/dist/send-Bxc0XfGE.js +0 -722
|
@@ -1,655 +1,684 @@
|
|
|
1
|
-
import {
|
|
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
|
|
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
|
|
10
|
-
const
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
5
|
+
const MailboxStatus = /* @__PURE__ */ Schema.Union([Schema.Literal("active"), Schema.Literal("paused")]).annotate({ identifier: "MailboxStatus" });
|
|
6
|
+
const MailboxActionResolution = /* @__PURE__ */ Schema.Struct({
|
|
7
|
+
outcome: Schema.Union([
|
|
8
|
+
Schema.Literal("approved"),
|
|
9
|
+
Schema.Literal("denied"),
|
|
10
|
+
Schema.Literal("cancelled")
|
|
11
|
+
]),
|
|
12
|
+
actor: Schema.Struct({
|
|
13
|
+
kind: Schema.Union([
|
|
14
|
+
Schema.Literal("user"),
|
|
15
|
+
Schema.Literal("apiKey"),
|
|
16
|
+
Schema.Literal("extension"),
|
|
17
|
+
Schema.Literal("externalAgent"),
|
|
18
|
+
Schema.Literal("samvaAgent"),
|
|
19
|
+
Schema.Literal("system")
|
|
20
|
+
]),
|
|
21
|
+
id: Schema.String,
|
|
22
|
+
displayName: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
|
|
23
|
+
source: Schema.Union([
|
|
24
|
+
Schema.Literal("humanUi"),
|
|
25
|
+
Schema.Literal("externalApi"),
|
|
26
|
+
Schema.Literal("externalAgent"),
|
|
27
|
+
Schema.Literal("extension"),
|
|
28
|
+
Schema.Literal("system")
|
|
29
|
+
])
|
|
30
|
+
}).annotate({ description: "Who resolved the approval." }),
|
|
31
|
+
resolvedAt: Schema.String,
|
|
32
|
+
reason: Schema.Union([Schema.String, Schema.Null]).annotate({ description: "The denial reason; null for an approval or a cancellation." })
|
|
33
|
+
}).annotate({
|
|
34
|
+
description: "How the action's approval ended.",
|
|
35
|
+
identifier: "MailboxActionResolution"
|
|
36
|
+
});
|
|
37
|
+
const MailboxAgentActivity = /* @__PURE__ */ Schema.Struct({
|
|
38
|
+
actions: Schema.Struct({
|
|
39
|
+
byType: Schema.Array(Schema.Struct({
|
|
40
|
+
type: Schema.Union([
|
|
41
|
+
Schema.Literal("sendMessage"),
|
|
42
|
+
Schema.Literal("reply"),
|
|
43
|
+
Schema.Literal("updateDraft"),
|
|
44
|
+
Schema.Literal("createNote"),
|
|
45
|
+
Schema.Literal("assignThread"),
|
|
46
|
+
Schema.Literal("changeThreadState"),
|
|
47
|
+
Schema.Literal("call"),
|
|
48
|
+
Schema.Literal("extensionRequest")
|
|
22
49
|
]),
|
|
23
|
-
count: Schema
|
|
50
|
+
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
51
|
})),
|
|
25
|
-
byState: Schema
|
|
26
|
-
state: Schema
|
|
27
|
-
Schema
|
|
28
|
-
Schema
|
|
29
|
-
Schema
|
|
30
|
-
Schema
|
|
31
|
-
Schema
|
|
32
|
-
Schema
|
|
33
|
-
Schema
|
|
34
|
-
Schema
|
|
35
|
-
Schema
|
|
36
|
-
Schema
|
|
37
|
-
Schema
|
|
38
|
-
Schema
|
|
39
|
-
Schema
|
|
40
|
-
Schema
|
|
52
|
+
byState: Schema.Array(Schema.Struct({
|
|
53
|
+
state: Schema.Union([
|
|
54
|
+
Schema.Literal("proposed"),
|
|
55
|
+
Schema.Literal("allowed"),
|
|
56
|
+
Schema.Literal("approvalRequired"),
|
|
57
|
+
Schema.Literal("policyDenied"),
|
|
58
|
+
Schema.Literal("approved"),
|
|
59
|
+
Schema.Literal("approvalDenied"),
|
|
60
|
+
Schema.Literal("executing"),
|
|
61
|
+
Schema.Literal("executed"),
|
|
62
|
+
Schema.Literal("failed"),
|
|
63
|
+
Schema.Literal("queued"),
|
|
64
|
+
Schema.Literal("accepted"),
|
|
65
|
+
Schema.Literal("completed"),
|
|
66
|
+
Schema.Literal("notSent"),
|
|
67
|
+
Schema.Literal("uncertain")
|
|
41
68
|
]),
|
|
42
|
-
count: Schema
|
|
69
|
+
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
70
|
}))
|
|
44
71
|
}),
|
|
45
|
-
events: Schema
|
|
46
|
-
type: Schema
|
|
47
|
-
Schema
|
|
48
|
-
Schema
|
|
49
|
-
Schema
|
|
50
|
-
Schema
|
|
51
|
-
Schema
|
|
52
|
-
Schema
|
|
53
|
-
Schema
|
|
54
|
-
Schema
|
|
55
|
-
Schema
|
|
56
|
-
Schema
|
|
57
|
-
Schema
|
|
58
|
-
Schema
|
|
59
|
-
Schema
|
|
60
|
-
Schema
|
|
72
|
+
events: Schema.Struct({ byType: Schema.Array(Schema.Struct({
|
|
73
|
+
type: Schema.Union([
|
|
74
|
+
Schema.Literal("mailbox.created"),
|
|
75
|
+
Schema.Literal("endpoint.attached"),
|
|
76
|
+
Schema.Literal("endpoint.detached"),
|
|
77
|
+
Schema.Literal("message.received"),
|
|
78
|
+
Schema.Literal("message.released"),
|
|
79
|
+
Schema.Literal("message.sent"),
|
|
80
|
+
Schema.Literal("thread.created"),
|
|
81
|
+
Schema.Literal("action.proposed"),
|
|
82
|
+
Schema.Literal("action.policy_decided"),
|
|
83
|
+
Schema.Literal("action.approval_requested"),
|
|
84
|
+
Schema.Literal("action.approval_resolved"),
|
|
85
|
+
Schema.Literal("action.accepted"),
|
|
86
|
+
Schema.Literal("action.executed"),
|
|
87
|
+
Schema.Literal("action.failed")
|
|
61
88
|
]),
|
|
62
|
-
count: Schema
|
|
89
|
+
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
90
|
})) }),
|
|
64
|
-
pendingApprovals: Schema
|
|
91
|
+
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
92
|
}).annotate({ identifier: "MailboxAgentActivity" });
|
|
66
|
-
const MailboxDraftState = /* @__PURE__ */ Schema
|
|
67
|
-
Schema
|
|
68
|
-
Schema
|
|
69
|
-
Schema
|
|
93
|
+
const MailboxDraftState = /* @__PURE__ */ Schema.Union([
|
|
94
|
+
Schema.Literal("saved"),
|
|
95
|
+
Schema.Literal("locked"),
|
|
96
|
+
Schema.Literal("sent")
|
|
70
97
|
]).annotate({ identifier: "MailboxDraftState" });
|
|
71
|
-
const MailboxEventId = /* @__PURE__ */ Schema
|
|
98
|
+
const MailboxEventId = /* @__PURE__ */ Schema.String.check(Schema.isPattern(/* @__PURE__ */ new RegExp("^mbxevt_[0-9a-hjkmnp-tv-z]{16,24}$", "u")).annotate({
|
|
72
99
|
expected: "a string matching the RegExp ^mbxevt_[0-9a-hjkmnp-tv-z]{16,24}$",
|
|
73
100
|
identifier: "MailboxEventId"
|
|
74
|
-
})).pipe(Schema
|
|
75
|
-
const MailboxGrantId = /* @__PURE__ */ Schema
|
|
101
|
+
})).pipe(Schema.brand("MailboxEventId"));
|
|
102
|
+
const MailboxGrantId = /* @__PURE__ */ Schema.String.check(Schema.isPattern(/* @__PURE__ */ new RegExp("^mbxacl_[0-9a-hjkmnp-tv-z]{16,24}$", "u")).annotate({
|
|
76
103
|
expected: "a string matching the RegExp ^mbxacl_[0-9a-hjkmnp-tv-z]{16,24}$",
|
|
77
104
|
identifier: "MailboxGrantId"
|
|
78
|
-
})).pipe(Schema
|
|
79
|
-
const MailboxMessageSender = /* @__PURE__ */ Schema
|
|
80
|
-
actor: Schema
|
|
81
|
-
kind: Schema
|
|
82
|
-
Schema
|
|
83
|
-
Schema
|
|
84
|
-
Schema
|
|
85
|
-
Schema
|
|
86
|
-
Schema
|
|
87
|
-
Schema
|
|
105
|
+
})).pipe(Schema.brand("MailboxGrantId"));
|
|
106
|
+
const MailboxMessageSender = /* @__PURE__ */ Schema.Struct({
|
|
107
|
+
actor: Schema.optionalKey(Schema.Union([Schema.Struct({
|
|
108
|
+
kind: Schema.Union([
|
|
109
|
+
Schema.Literal("user"),
|
|
110
|
+
Schema.Literal("apiKey"),
|
|
111
|
+
Schema.Literal("extension"),
|
|
112
|
+
Schema.Literal("externalAgent"),
|
|
113
|
+
Schema.Literal("samvaAgent"),
|
|
114
|
+
Schema.Literal("system")
|
|
88
115
|
]),
|
|
89
|
-
id: Schema
|
|
90
|
-
displayName: Schema
|
|
91
|
-
}), Schema
|
|
92
|
-
displayName: Schema
|
|
93
|
-
address: Schema
|
|
116
|
+
id: Schema.String,
|
|
117
|
+
displayName: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null]))
|
|
118
|
+
}), Schema.Null])),
|
|
119
|
+
displayName: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
|
|
120
|
+
address: Schema.String
|
|
94
121
|
}).annotate({ identifier: "MailboxMessageSender" });
|
|
95
|
-
const MailboxMessageRecipient = /* @__PURE__ */ Schema
|
|
96
|
-
kind: Schema
|
|
97
|
-
Schema
|
|
98
|
-
Schema
|
|
99
|
-
Schema
|
|
122
|
+
const MailboxMessageRecipient = /* @__PURE__ */ Schema.Struct({
|
|
123
|
+
kind: Schema.Union([
|
|
124
|
+
Schema.Literal("to"),
|
|
125
|
+
Schema.Literal("cc"),
|
|
126
|
+
Schema.Literal("bcc")
|
|
100
127
|
]),
|
|
101
|
-
actor: Schema
|
|
102
|
-
kind: Schema
|
|
103
|
-
Schema
|
|
104
|
-
Schema
|
|
105
|
-
Schema
|
|
106
|
-
Schema
|
|
107
|
-
Schema
|
|
108
|
-
Schema
|
|
128
|
+
actor: Schema.optionalKey(Schema.Union([Schema.Struct({
|
|
129
|
+
kind: Schema.Union([
|
|
130
|
+
Schema.Literal("user"),
|
|
131
|
+
Schema.Literal("apiKey"),
|
|
132
|
+
Schema.Literal("extension"),
|
|
133
|
+
Schema.Literal("externalAgent"),
|
|
134
|
+
Schema.Literal("samvaAgent"),
|
|
135
|
+
Schema.Literal("system")
|
|
109
136
|
]),
|
|
110
|
-
id: Schema
|
|
111
|
-
displayName: Schema
|
|
112
|
-
}), Schema
|
|
113
|
-
displayName: Schema
|
|
114
|
-
address: Schema
|
|
137
|
+
id: Schema.String,
|
|
138
|
+
displayName: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null]))
|
|
139
|
+
}), Schema.Null])),
|
|
140
|
+
displayName: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
|
|
141
|
+
address: Schema.String
|
|
115
142
|
}).annotate({ identifier: "MailboxMessageRecipient" });
|
|
116
|
-
const MailboxMessageAuthentication = /* @__PURE__ */ Schema
|
|
117
|
-
spf: Schema
|
|
118
|
-
dkim: Schema
|
|
119
|
-
dmarc: Schema
|
|
143
|
+
const MailboxMessageAuthentication = /* @__PURE__ */ Schema.Struct({
|
|
144
|
+
spf: Schema.Union([Schema.String, Schema.Null]),
|
|
145
|
+
dkim: Schema.Union([Schema.String, Schema.Null]),
|
|
146
|
+
dmarc: Schema.Union([Schema.String, Schema.Null])
|
|
120
147
|
}).annotate({ identifier: "MailboxMessageAuthentication" });
|
|
121
|
-
const MailboxDownloadUrl = /* @__PURE__ */ Schema
|
|
122
|
-
url: Schema
|
|
123
|
-
expiresAt: Schema
|
|
148
|
+
const MailboxDownloadUrl = /* @__PURE__ */ Schema.Struct({
|
|
149
|
+
url: Schema.String,
|
|
150
|
+
expiresAt: Schema.String
|
|
124
151
|
}).annotate({ identifier: "MailboxDownloadUrl" });
|
|
125
|
-
const MailboxThreadSender = /* @__PURE__ */ Schema
|
|
126
|
-
address: Schema
|
|
127
|
-
displayName: Schema
|
|
152
|
+
const MailboxThreadSender = /* @__PURE__ */ Schema.Struct({
|
|
153
|
+
address: Schema.Union([Schema.String, Schema.Null]),
|
|
154
|
+
displayName: Schema.Union([Schema.String, Schema.Null])
|
|
128
155
|
}).annotate({ identifier: "MailboxThreadSender" });
|
|
129
|
-
const MailboxThreadParticipant = /* @__PURE__ */ Schema
|
|
130
|
-
actor: Schema
|
|
131
|
-
kind: Schema
|
|
132
|
-
Schema
|
|
133
|
-
Schema
|
|
134
|
-
Schema
|
|
135
|
-
Schema
|
|
136
|
-
Schema
|
|
137
|
-
Schema
|
|
156
|
+
const MailboxThreadParticipant = /* @__PURE__ */ Schema.Struct({
|
|
157
|
+
actor: Schema.Struct({
|
|
158
|
+
kind: Schema.Union([
|
|
159
|
+
Schema.Literal("user"),
|
|
160
|
+
Schema.Literal("apiKey"),
|
|
161
|
+
Schema.Literal("extension"),
|
|
162
|
+
Schema.Literal("externalAgent"),
|
|
163
|
+
Schema.Literal("samvaAgent"),
|
|
164
|
+
Schema.Literal("system")
|
|
138
165
|
]),
|
|
139
|
-
id: Schema
|
|
140
|
-
displayName: Schema
|
|
166
|
+
id: Schema.String,
|
|
167
|
+
displayName: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null]))
|
|
141
168
|
}),
|
|
142
|
-
role: Schema
|
|
143
|
-
Schema
|
|
144
|
-
Schema
|
|
145
|
-
Schema
|
|
146
|
-
Schema
|
|
169
|
+
role: Schema.Union([
|
|
170
|
+
Schema.Literal("recipient"),
|
|
171
|
+
Schema.Literal("sender"),
|
|
172
|
+
Schema.Literal("assignee"),
|
|
173
|
+
Schema.Literal("observer")
|
|
147
174
|
]),
|
|
148
|
-
address: Schema
|
|
175
|
+
address: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null]))
|
|
149
176
|
}).annotate({ identifier: "MailboxThreadParticipant" });
|
|
150
|
-
const MailboxNoteId = /* @__PURE__ */ Schema
|
|
177
|
+
const MailboxNoteId = /* @__PURE__ */ Schema.String.check(Schema.isPattern(/* @__PURE__ */ new RegExp("^note_[0-9a-hjkmnp-tv-z]{16,24}$", "u")).annotate({
|
|
151
178
|
expected: "a string matching the RegExp ^note_[0-9a-hjkmnp-tv-z]{16,24}$",
|
|
152
179
|
identifier: "MailboxNoteId"
|
|
153
|
-
})).pipe(Schema
|
|
154
|
-
const MailboxCopiedAttachment = /* @__PURE__ */ Schema
|
|
155
|
-
filename: Schema
|
|
156
|
-
content: Schema
|
|
157
|
-
mediaId: Schema
|
|
158
|
-
contentType: Schema
|
|
159
|
-
size: Schema
|
|
180
|
+
})).pipe(Schema.brand("MailboxNoteId"));
|
|
181
|
+
const MailboxCopiedAttachment = /* @__PURE__ */ Schema.Struct({
|
|
182
|
+
filename: Schema.String,
|
|
183
|
+
content: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
|
|
184
|
+
mediaId: Schema.optionalKey(Schema.Union([MediaId, Schema.Null])),
|
|
185
|
+
contentType: Schema.String,
|
|
186
|
+
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
187
|
}).annotate({ identifier: "MailboxCopiedAttachment" });
|
|
161
|
-
const MailboxSummary = /* @__PURE__ */ Schema
|
|
188
|
+
const MailboxSummary = /* @__PURE__ */ Schema.Struct({
|
|
162
189
|
id: MailboxId,
|
|
163
|
-
namespaceId: Schema
|
|
164
|
-
slug: Schema
|
|
165
|
-
name: Schema
|
|
190
|
+
namespaceId: Schema.Union([NamespaceId, Schema.Null]),
|
|
191
|
+
slug: Schema.String,
|
|
192
|
+
name: Schema.String,
|
|
166
193
|
status: MailboxStatus,
|
|
167
|
-
primaryAddress: Schema
|
|
168
|
-
createdAt: Schema
|
|
194
|
+
primaryAddress: Schema.Union([Schema.String, Schema.Null]),
|
|
195
|
+
createdAt: Schema.String
|
|
169
196
|
}).annotate({ identifier: "MailboxSummary" });
|
|
170
|
-
const MailboxEndpoint = /* @__PURE__ */ Schema
|
|
197
|
+
const MailboxEndpoint = /* @__PURE__ */ Schema.Struct({
|
|
171
198
|
id: MailboxEndpointId,
|
|
172
|
-
address: Schema
|
|
173
|
-
displayName: Schema
|
|
174
|
-
default: Schema
|
|
175
|
-
channel: Schema
|
|
176
|
-
source: Schema
|
|
177
|
-
domainId: Schema
|
|
199
|
+
address: Schema.String,
|
|
200
|
+
displayName: Schema.Union([Schema.String, Schema.Null]),
|
|
201
|
+
default: Schema.Boolean,
|
|
202
|
+
channel: Schema.Literal("email"),
|
|
203
|
+
source: Schema.Union([Schema.Literal("samvaHosted"), Schema.Literal("verifiedDomain")]),
|
|
204
|
+
domainId: Schema.Union([Schema.String, Schema.Null])
|
|
178
205
|
}).annotate({ identifier: "MailboxEndpoint" });
|
|
179
|
-
const MailboxQuarantinedMessage = /* @__PURE__ */ Schema
|
|
206
|
+
const MailboxQuarantinedMessage = /* @__PURE__ */ Schema.Struct({
|
|
180
207
|
id: MessageId,
|
|
181
|
-
disposition: Schema
|
|
182
|
-
reason: Schema
|
|
183
|
-
Schema
|
|
184
|
-
Schema
|
|
185
|
-
Schema
|
|
186
|
-
Schema
|
|
187
|
-
Schema
|
|
188
|
-
Schema
|
|
189
|
-
Schema
|
|
208
|
+
disposition: Schema.Union([Schema.Literal("quarantined"), Schema.Literal("isolated")]),
|
|
209
|
+
reason: Schema.Union([
|
|
210
|
+
Schema.Literal("spam"),
|
|
211
|
+
Schema.Literal("dmarc"),
|
|
212
|
+
Schema.Literal("virus"),
|
|
213
|
+
Schema.Literal("virus_unscanned"),
|
|
214
|
+
Schema.Literal("phishing"),
|
|
215
|
+
Schema.Literal("fraud"),
|
|
216
|
+
Schema.Literal("prompt_injection")
|
|
190
217
|
]),
|
|
191
|
-
source: Schema
|
|
192
|
-
from: Schema
|
|
193
|
-
address: Schema
|
|
194
|
-
name: Schema
|
|
218
|
+
source: Schema.Union([Schema.Literal("receipt"), Schema.Literal("classifier")]),
|
|
219
|
+
from: Schema.Struct({
|
|
220
|
+
address: Schema.String,
|
|
221
|
+
name: Schema.Union([Schema.String, Schema.Null])
|
|
195
222
|
}),
|
|
196
|
-
subject: Schema
|
|
197
|
-
receivedAt: Schema
|
|
198
|
-
heldAt: Schema
|
|
199
|
-
releasedAt: Schema
|
|
200
|
-
threadId: Schema
|
|
201
|
-
discardedAt: Schema
|
|
223
|
+
subject: Schema.Union([Schema.String, Schema.Null]),
|
|
224
|
+
receivedAt: Schema.String,
|
|
225
|
+
heldAt: Schema.String,
|
|
226
|
+
releasedAt: Schema.Union([Schema.String, Schema.Null]),
|
|
227
|
+
threadId: Schema.Union([MailboxThreadId, Schema.Null]),
|
|
228
|
+
discardedAt: Schema.Union([Schema.String, Schema.Null])
|
|
202
229
|
}).annotate({ identifier: "MailboxQuarantinedMessage" });
|
|
203
|
-
const MailboxDraftSummary = /* @__PURE__ */ Schema
|
|
230
|
+
const MailboxDraftSummary = /* @__PURE__ */ Schema.Struct({
|
|
204
231
|
id: MailboxDraftId,
|
|
205
232
|
channel: MailboxChannel,
|
|
206
|
-
threadId: Schema
|
|
207
|
-
inReplyToMessageId: Schema
|
|
233
|
+
threadId: Schema.Union([MailboxThreadId, Schema.Null]),
|
|
234
|
+
inReplyToMessageId: Schema.Union([MessageId, Schema.Null]),
|
|
208
235
|
state: MailboxDraftState,
|
|
209
|
-
lockedByActionId: Schema
|
|
210
|
-
to: Schema
|
|
211
|
-
subject: Schema
|
|
212
|
-
createdAt: Schema
|
|
213
|
-
updatedAt: Schema
|
|
236
|
+
lockedByActionId: Schema.Union([MailboxActionId, Schema.Null]),
|
|
237
|
+
to: Schema.Array(Schema.String),
|
|
238
|
+
subject: Schema.Union([Schema.String, Schema.Null]),
|
|
239
|
+
createdAt: Schema.String,
|
|
240
|
+
updatedAt: Schema.String
|
|
214
241
|
}).annotate({ identifier: "MailboxDraftSummary" });
|
|
215
|
-
const MailboxEvent = /* @__PURE__ */ Schema
|
|
242
|
+
const MailboxEvent = /* @__PURE__ */ Schema.Struct({
|
|
216
243
|
id: MailboxEventId,
|
|
217
|
-
type: Schema
|
|
218
|
-
Schema
|
|
219
|
-
Schema
|
|
220
|
-
Schema
|
|
221
|
-
Schema
|
|
222
|
-
Schema
|
|
223
|
-
Schema
|
|
224
|
-
Schema
|
|
225
|
-
Schema
|
|
226
|
-
Schema
|
|
227
|
-
Schema
|
|
228
|
-
Schema
|
|
229
|
-
Schema
|
|
230
|
-
Schema
|
|
231
|
-
Schema
|
|
244
|
+
type: Schema.Union([
|
|
245
|
+
Schema.Literal("mailbox.created"),
|
|
246
|
+
Schema.Literal("endpoint.attached"),
|
|
247
|
+
Schema.Literal("endpoint.detached"),
|
|
248
|
+
Schema.Literal("message.received"),
|
|
249
|
+
Schema.Literal("message.released"),
|
|
250
|
+
Schema.Literal("message.sent"),
|
|
251
|
+
Schema.Literal("thread.created"),
|
|
252
|
+
Schema.Literal("action.proposed"),
|
|
253
|
+
Schema.Literal("action.policy_decided"),
|
|
254
|
+
Schema.Literal("action.approval_requested"),
|
|
255
|
+
Schema.Literal("action.approval_resolved"),
|
|
256
|
+
Schema.Literal("action.accepted"),
|
|
257
|
+
Schema.Literal("action.executed"),
|
|
258
|
+
Schema.Literal("action.failed")
|
|
232
259
|
]),
|
|
233
|
-
threadId: Schema
|
|
234
|
-
actionId: Schema
|
|
235
|
-
actor: Schema
|
|
236
|
-
kind: Schema
|
|
237
|
-
Schema
|
|
238
|
-
Schema
|
|
239
|
-
Schema
|
|
240
|
-
Schema
|
|
241
|
-
Schema
|
|
242
|
-
Schema
|
|
260
|
+
threadId: Schema.Union([MailboxThreadId, Schema.Null]),
|
|
261
|
+
actionId: Schema.Union([MailboxActionId, Schema.Null]),
|
|
262
|
+
actor: Schema.Struct({
|
|
263
|
+
kind: Schema.Union([
|
|
264
|
+
Schema.Literal("user"),
|
|
265
|
+
Schema.Literal("apiKey"),
|
|
266
|
+
Schema.Literal("extension"),
|
|
267
|
+
Schema.Literal("externalAgent"),
|
|
268
|
+
Schema.Literal("samvaAgent"),
|
|
269
|
+
Schema.Literal("system")
|
|
243
270
|
]),
|
|
244
|
-
id: Schema
|
|
245
|
-
displayName: Schema
|
|
271
|
+
id: Schema.String,
|
|
272
|
+
displayName: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null]))
|
|
246
273
|
}),
|
|
247
|
-
payload: Schema
|
|
248
|
-
occurredAt: Schema
|
|
274
|
+
payload: Schema.Record(Schema.String, JsonValue),
|
|
275
|
+
occurredAt: Schema.String
|
|
249
276
|
}).annotate({ identifier: "MailboxEvent" });
|
|
250
|
-
const MailboxFolderCount = /* @__PURE__ */ Schema
|
|
277
|
+
const MailboxFolderCount = /* @__PURE__ */ Schema.Struct({
|
|
251
278
|
folder: MailboxThreadFolder,
|
|
252
|
-
count: Schema
|
|
253
|
-
unreadCount: Schema
|
|
279
|
+
count: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })),
|
|
280
|
+
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
281
|
}).annotate({ identifier: "MailboxFolderCount" });
|
|
255
|
-
const MailboxGrant = /* @__PURE__ */ Schema
|
|
282
|
+
const MailboxGrant = /* @__PURE__ */ Schema.Struct({
|
|
256
283
|
id: MailboxGrantId,
|
|
257
|
-
actor: Schema
|
|
258
|
-
kind: Schema
|
|
259
|
-
Schema
|
|
260
|
-
Schema
|
|
261
|
-
Schema
|
|
262
|
-
Schema
|
|
263
|
-
Schema
|
|
264
|
-
Schema
|
|
284
|
+
actor: Schema.Struct({
|
|
285
|
+
kind: Schema.Union([
|
|
286
|
+
Schema.Literal("user"),
|
|
287
|
+
Schema.Literal("apiKey"),
|
|
288
|
+
Schema.Literal("extension"),
|
|
289
|
+
Schema.Literal("externalAgent"),
|
|
290
|
+
Schema.Literal("samvaAgent"),
|
|
291
|
+
Schema.Literal("system")
|
|
265
292
|
]),
|
|
266
|
-
id: Schema
|
|
267
|
-
displayName: Schema
|
|
293
|
+
id: Schema.String,
|
|
294
|
+
displayName: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null]))
|
|
268
295
|
}),
|
|
269
|
-
permissions: Schema
|
|
270
|
-
Schema
|
|
271
|
-
Schema
|
|
272
|
-
Schema
|
|
273
|
-
Schema
|
|
274
|
-
Schema
|
|
275
|
-
Schema
|
|
276
|
-
Schema
|
|
277
|
-
Schema
|
|
278
|
-
Schema
|
|
279
|
-
Schema
|
|
280
|
-
Schema
|
|
281
|
-
Schema
|
|
296
|
+
permissions: Schema.Array(Schema.Union([
|
|
297
|
+
Schema.Literal("mailbox:read"),
|
|
298
|
+
Schema.Literal("mailbox:configure"),
|
|
299
|
+
Schema.Literal("thread:read"),
|
|
300
|
+
Schema.Literal("thread:write"),
|
|
301
|
+
Schema.Literal("label:write"),
|
|
302
|
+
Schema.Literal("draft:write"),
|
|
303
|
+
Schema.Literal("note:write"),
|
|
304
|
+
Schema.Literal("action:propose"),
|
|
305
|
+
Schema.Literal("action:approve"),
|
|
306
|
+
Schema.Literal("policy:read"),
|
|
307
|
+
Schema.Literal("quarantine:read"),
|
|
308
|
+
Schema.Literal("quarantine:release")
|
|
282
309
|
])),
|
|
283
310
|
sendMode: MailboxSendMode,
|
|
284
|
-
createdAt: Schema
|
|
311
|
+
createdAt: Schema.String
|
|
285
312
|
}).annotate({ identifier: "MailboxGrant" });
|
|
286
|
-
const MailboxLabel = /* @__PURE__ */ Schema
|
|
313
|
+
const MailboxLabel = /* @__PURE__ */ Schema.Struct({
|
|
287
314
|
id: MailboxLabelId,
|
|
288
|
-
slug: Schema
|
|
289
|
-
displayName: Schema
|
|
290
|
-
color: Schema
|
|
291
|
-
Schema
|
|
292
|
-
Schema
|
|
293
|
-
Schema
|
|
294
|
-
Schema
|
|
295
|
-
Schema
|
|
296
|
-
Schema
|
|
297
|
-
]), Schema
|
|
298
|
-
createdAt: Schema
|
|
299
|
-
updatedAt: Schema
|
|
315
|
+
slug: Schema.String,
|
|
316
|
+
displayName: Schema.String,
|
|
317
|
+
color: Schema.Union([Schema.Union([
|
|
318
|
+
Schema.Literal("billing"),
|
|
319
|
+
Schema.Literal("domain"),
|
|
320
|
+
Schema.Literal("agent"),
|
|
321
|
+
Schema.Literal("routing"),
|
|
322
|
+
Schema.Literal("important"),
|
|
323
|
+
Schema.Literal("neutral")
|
|
324
|
+
]), Schema.Null]),
|
|
325
|
+
createdAt: Schema.String,
|
|
326
|
+
updatedAt: Schema.String
|
|
300
327
|
}).annotate({ identifier: "MailboxLabel" });
|
|
301
|
-
const MailboxMessageSummary = /* @__PURE__ */ Schema
|
|
328
|
+
const MailboxMessageSummary = /* @__PURE__ */ Schema.Struct({
|
|
302
329
|
id: MessageId,
|
|
303
330
|
channel: MailboxChannel,
|
|
304
|
-
direction: Schema
|
|
331
|
+
direction: Schema.Union([Schema.Literal("inbound"), Schema.Literal("outbound")]),
|
|
305
332
|
from: MailboxMessageSender,
|
|
306
|
-
to: Schema
|
|
307
|
-
subject: Schema
|
|
308
|
-
preview: Schema
|
|
309
|
-
hasAttachments: Schema
|
|
310
|
-
occurredAt: Schema
|
|
333
|
+
to: Schema.Array(Schema.String),
|
|
334
|
+
subject: Schema.Union([Schema.String, Schema.Null]),
|
|
335
|
+
preview: Schema.Union([Schema.String, Schema.Null]),
|
|
336
|
+
hasAttachments: Schema.Boolean,
|
|
337
|
+
occurredAt: Schema.String
|
|
311
338
|
}).annotate({ identifier: "MailboxMessageSummary" });
|
|
312
|
-
const MailboxMessage = /* @__PURE__ */ Schema
|
|
339
|
+
const MailboxMessage = /* @__PURE__ */ Schema.Struct({
|
|
313
340
|
id: MessageId,
|
|
314
341
|
threadId: MailboxThreadId,
|
|
315
342
|
conversationId: ConversationId,
|
|
316
|
-
direction: Schema
|
|
343
|
+
direction: Schema.Union([Schema.Literal("inbound"), Schema.Literal("outbound")]),
|
|
317
344
|
from: MailboxMessageSender,
|
|
318
|
-
sentBy: Schema
|
|
319
|
-
kind: Schema
|
|
320
|
-
Schema
|
|
321
|
-
Schema
|
|
322
|
-
Schema
|
|
323
|
-
Schema
|
|
324
|
-
Schema
|
|
325
|
-
Schema
|
|
345
|
+
sentBy: Schema.optionalKey(Schema.Union([Schema.Struct({
|
|
346
|
+
kind: Schema.Union([
|
|
347
|
+
Schema.Literal("user"),
|
|
348
|
+
Schema.Literal("apiKey"),
|
|
349
|
+
Schema.Literal("extension"),
|
|
350
|
+
Schema.Literal("externalAgent"),
|
|
351
|
+
Schema.Literal("samvaAgent"),
|
|
352
|
+
Schema.Literal("system")
|
|
326
353
|
]),
|
|
327
|
-
id: Schema
|
|
328
|
-
displayName: Schema
|
|
329
|
-
}), Schema
|
|
330
|
-
occurredAt: Schema
|
|
331
|
-
channel: Schema
|
|
332
|
-
recipients: Schema
|
|
333
|
-
replyTo: Schema
|
|
334
|
-
subject: Schema
|
|
335
|
-
text: Schema
|
|
336
|
-
html: Schema
|
|
337
|
-
replyText: Schema
|
|
338
|
-
headers: Schema
|
|
339
|
-
messageId: Schema
|
|
340
|
-
inReplyTo: Schema
|
|
341
|
-
references: Schema
|
|
354
|
+
id: Schema.String,
|
|
355
|
+
displayName: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null]))
|
|
356
|
+
}), Schema.Null])),
|
|
357
|
+
occurredAt: Schema.String,
|
|
358
|
+
channel: Schema.Literal("email"),
|
|
359
|
+
recipients: Schema.Array(MailboxMessageRecipient),
|
|
360
|
+
replyTo: Schema.Array(Schema.String),
|
|
361
|
+
subject: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
|
|
362
|
+
text: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
|
|
363
|
+
html: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
|
|
364
|
+
replyText: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
|
|
365
|
+
headers: Schema.Struct({
|
|
366
|
+
messageId: Schema.Union([Schema.String, Schema.Null]),
|
|
367
|
+
inReplyTo: Schema.Union([Schema.String, Schema.Null]),
|
|
368
|
+
references: Schema.Array(Schema.String)
|
|
342
369
|
}),
|
|
343
|
-
authentication: Schema
|
|
344
|
-
attachments: Schema
|
|
370
|
+
authentication: Schema.Union([MailboxMessageAuthentication, Schema.Null]),
|
|
371
|
+
attachments: Schema.Array(Schema.Struct({
|
|
345
372
|
id: AttachmentId,
|
|
346
|
-
filename: Schema
|
|
347
|
-
contentType: Schema
|
|
348
|
-
size: Schema
|
|
349
|
-
isInline: Schema
|
|
373
|
+
filename: Schema.String,
|
|
374
|
+
contentType: Schema.String,
|
|
375
|
+
size: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })),
|
|
376
|
+
isInline: Schema.Boolean
|
|
350
377
|
}))
|
|
351
378
|
}).annotate({ identifier: "MailboxMessage" });
|
|
352
|
-
const MailboxPolicy = /* @__PURE__ */ Schema
|
|
379
|
+
const MailboxPolicy = /* @__PURE__ */ Schema.Struct({
|
|
353
380
|
id: MailboxPolicyId,
|
|
354
|
-
name: Schema
|
|
381
|
+
name: Schema.String,
|
|
355
382
|
outcome: MailboxPolicyOutcomeKind,
|
|
356
|
-
reason: Schema
|
|
357
|
-
enabled: Schema
|
|
358
|
-
createdAt: Schema
|
|
359
|
-
updatedAt: Schema
|
|
383
|
+
reason: Schema.Union([Schema.String, Schema.Null]),
|
|
384
|
+
enabled: Schema.Boolean,
|
|
385
|
+
createdAt: Schema.String,
|
|
386
|
+
updatedAt: Schema.String
|
|
360
387
|
}).annotate({ identifier: "MailboxPolicy" });
|
|
361
|
-
const MailboxThreadSummary = /* @__PURE__ */ Schema
|
|
388
|
+
const MailboxThreadSummary = /* @__PURE__ */ Schema.Struct({
|
|
362
389
|
id: MailboxThreadId,
|
|
363
390
|
channel: MailboxChannel,
|
|
364
|
-
endpointId: Schema
|
|
365
|
-
subject: Schema
|
|
366
|
-
preview: Schema
|
|
367
|
-
from: Schema
|
|
368
|
-
messageCount: Schema
|
|
369
|
-
hasAttachments: Schema
|
|
370
|
-
hasDraft: Schema
|
|
391
|
+
endpointId: Schema.Union([MailboxEndpointId, Schema.Null]),
|
|
392
|
+
subject: Schema.Union([Schema.String, Schema.Null]),
|
|
393
|
+
preview: Schema.Union([Schema.String, Schema.Null]),
|
|
394
|
+
from: Schema.Union([MailboxThreadSender, Schema.Null]),
|
|
395
|
+
messageCount: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })),
|
|
396
|
+
hasAttachments: Schema.Boolean,
|
|
397
|
+
hasDraft: Schema.Boolean,
|
|
371
398
|
folder: MailboxThreadFolder,
|
|
372
399
|
priority: MailboxThreadPriority,
|
|
373
|
-
labels: Schema
|
|
374
|
-
read: Schema
|
|
375
|
-
starred: Schema
|
|
376
|
-
snoozedUntil: Schema
|
|
377
|
-
lastActivityAt: Schema
|
|
400
|
+
labels: Schema.Array(MailboxLabelId),
|
|
401
|
+
read: Schema.Boolean,
|
|
402
|
+
starred: Schema.Boolean,
|
|
403
|
+
snoozedUntil: Schema.Union([Schema.String, Schema.Null]),
|
|
404
|
+
lastActivityAt: Schema.String
|
|
378
405
|
}).annotate({ identifier: "MailboxThreadSummary" });
|
|
379
|
-
const MailboxThreadState = /* @__PURE__ */ Schema
|
|
406
|
+
const MailboxThreadState = /* @__PURE__ */ Schema.Struct({
|
|
380
407
|
id: MailboxThreadId,
|
|
381
408
|
folder: MailboxThreadFolder,
|
|
382
409
|
priority: MailboxThreadPriority,
|
|
383
|
-
labels: Schema
|
|
384
|
-
read: Schema
|
|
385
|
-
starred: Schema
|
|
386
|
-
snoozedUntil: Schema
|
|
410
|
+
labels: Schema.Array(MailboxLabelId),
|
|
411
|
+
read: Schema.Boolean,
|
|
412
|
+
starred: Schema.Boolean,
|
|
413
|
+
snoozedUntil: Schema.Union([Schema.String, Schema.Null])
|
|
387
414
|
}).annotate({ identifier: "MailboxThreadState" });
|
|
388
|
-
const MailboxThread = /* @__PURE__ */ Schema
|
|
415
|
+
const MailboxThread = /* @__PURE__ */ Schema.Struct({
|
|
389
416
|
id: MailboxThreadId,
|
|
390
417
|
channel: MailboxChannel,
|
|
391
|
-
endpointId: Schema
|
|
392
|
-
subject: Schema
|
|
393
|
-
preview: Schema
|
|
394
|
-
from: Schema
|
|
395
|
-
messageCount: Schema
|
|
396
|
-
hasAttachments: Schema
|
|
397
|
-
hasDraft: Schema
|
|
418
|
+
endpointId: Schema.Union([MailboxEndpointId, Schema.Null]),
|
|
419
|
+
subject: Schema.Union([Schema.String, Schema.Null]),
|
|
420
|
+
preview: Schema.Union([Schema.String, Schema.Null]),
|
|
421
|
+
from: Schema.Union([MailboxThreadSender, Schema.Null]),
|
|
422
|
+
messageCount: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })),
|
|
423
|
+
hasAttachments: Schema.Boolean,
|
|
424
|
+
hasDraft: Schema.Boolean,
|
|
398
425
|
folder: MailboxThreadFolder,
|
|
399
426
|
priority: MailboxThreadPriority,
|
|
400
|
-
labels: Schema
|
|
401
|
-
read: Schema
|
|
402
|
-
starred: Schema
|
|
403
|
-
snoozedUntil: Schema
|
|
404
|
-
lastActivityAt: Schema
|
|
427
|
+
labels: Schema.Array(MailboxLabelId),
|
|
428
|
+
read: Schema.Boolean,
|
|
429
|
+
starred: Schema.Boolean,
|
|
430
|
+
snoozedUntil: Schema.Union([Schema.String, Schema.Null]),
|
|
431
|
+
lastActivityAt: Schema.String,
|
|
405
432
|
conversationId: ConversationId,
|
|
406
|
-
participants: Schema
|
|
407
|
-
createdAt: Schema
|
|
433
|
+
participants: Schema.Array(MailboxThreadParticipant),
|
|
434
|
+
createdAt: Schema.String
|
|
408
435
|
}).annotate({ identifier: "MailboxThread" });
|
|
409
|
-
const MailboxNote = /* @__PURE__ */ Schema
|
|
436
|
+
const MailboxNote = /* @__PURE__ */ Schema.Struct({
|
|
410
437
|
id: MailboxNoteId,
|
|
411
|
-
author: Schema
|
|
412
|
-
kind: Schema
|
|
413
|
-
Schema
|
|
414
|
-
Schema
|
|
415
|
-
Schema
|
|
416
|
-
Schema
|
|
417
|
-
Schema
|
|
418
|
-
Schema
|
|
438
|
+
author: Schema.Struct({
|
|
439
|
+
kind: Schema.Union([
|
|
440
|
+
Schema.Literal("user"),
|
|
441
|
+
Schema.Literal("apiKey"),
|
|
442
|
+
Schema.Literal("extension"),
|
|
443
|
+
Schema.Literal("externalAgent"),
|
|
444
|
+
Schema.Literal("samvaAgent"),
|
|
445
|
+
Schema.Literal("system")
|
|
419
446
|
]),
|
|
420
|
-
id: Schema
|
|
421
|
-
displayName: Schema
|
|
447
|
+
id: Schema.String,
|
|
448
|
+
displayName: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null]))
|
|
422
449
|
}),
|
|
423
|
-
body: Schema
|
|
424
|
-
color: Schema
|
|
425
|
-
pinned: Schema
|
|
426
|
-
createdAt: Schema
|
|
427
|
-
updatedAt: Schema
|
|
450
|
+
body: Schema.String,
|
|
451
|
+
color: Schema.Union([Schema.String, Schema.Null]),
|
|
452
|
+
pinned: Schema.Boolean,
|
|
453
|
+
createdAt: Schema.String,
|
|
454
|
+
updatedAt: Schema.String
|
|
428
455
|
}).annotate({ identifier: "MailboxNote" });
|
|
429
|
-
const MailboxSendSnapshot = /* @__PURE__ */ Schema
|
|
430
|
-
channel: Schema
|
|
431
|
-
draftRevision: Schema
|
|
432
|
-
from: Schema
|
|
433
|
-
fromName: Schema
|
|
434
|
-
to: Schema
|
|
435
|
-
cc: Schema
|
|
436
|
-
bcc: Schema
|
|
437
|
-
replyTo: Schema
|
|
438
|
-
subject: Schema
|
|
439
|
-
text: Schema
|
|
440
|
-
html: Schema
|
|
441
|
-
attachments: Schema
|
|
442
|
-
threadId: Schema
|
|
443
|
-
conversationId: Schema
|
|
444
|
-
inReplyToMessageId: Schema
|
|
456
|
+
const MailboxSendSnapshot = /* @__PURE__ */ Schema.Struct({
|
|
457
|
+
channel: Schema.Literal("email"),
|
|
458
|
+
draftRevision: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThan(0).annotate({ expected: "a value greater than 0" })),
|
|
459
|
+
from: Schema.String,
|
|
460
|
+
fromName: Schema.Union([Schema.String, Schema.Null]),
|
|
461
|
+
to: Schema.TupleWithRest(Schema.Tuple([Schema.String]), [Schema.String]),
|
|
462
|
+
cc: Schema.Array(Schema.String),
|
|
463
|
+
bcc: Schema.Array(Schema.String),
|
|
464
|
+
replyTo: Schema.Array(Schema.String),
|
|
465
|
+
subject: Schema.String,
|
|
466
|
+
text: Schema.Union([Schema.String, Schema.Null]),
|
|
467
|
+
html: Schema.Union([Schema.String, Schema.Null]),
|
|
468
|
+
attachments: Schema.Array(EmailAttachment).check(Schema.isMaxLength(10).annotate({ expected: "a value with a length of at most 10" })),
|
|
469
|
+
threadId: Schema.Union([MailboxThreadId, Schema.Null]),
|
|
470
|
+
conversationId: Schema.Union([ConversationId, Schema.Null]),
|
|
471
|
+
inReplyToMessageId: Schema.Union([MessageId, Schema.Null])
|
|
445
472
|
}).annotate({ identifier: "MailboxSendSnapshot" });
|
|
446
|
-
const MailboxDraft = /* @__PURE__ */ Schema
|
|
473
|
+
const MailboxDraft = /* @__PURE__ */ Schema.Struct({
|
|
447
474
|
id: MailboxDraftId,
|
|
448
|
-
channel: Schema
|
|
449
|
-
threadId: Schema
|
|
450
|
-
inReplyToMessageId: Schema
|
|
475
|
+
channel: Schema.Literal("email"),
|
|
476
|
+
threadId: Schema.Union([MailboxThreadId, Schema.Null]),
|
|
477
|
+
inReplyToMessageId: Schema.Union([MessageId, Schema.Null]),
|
|
451
478
|
state: MailboxDraftState,
|
|
452
|
-
lockedByActionId: Schema
|
|
453
|
-
to: Schema
|
|
454
|
-
subject: Schema
|
|
455
|
-
createdAt: Schema
|
|
456
|
-
updatedAt: Schema
|
|
457
|
-
endpointId: Schema
|
|
458
|
-
cc: Schema
|
|
459
|
-
bcc: Schema
|
|
460
|
-
replyTo: Schema
|
|
461
|
-
html: Schema
|
|
462
|
-
text: Schema
|
|
463
|
-
attachments: Schema
|
|
479
|
+
lockedByActionId: Schema.Union([MailboxActionId, Schema.Null]),
|
|
480
|
+
to: Schema.Array(Schema.String),
|
|
481
|
+
subject: Schema.Union([Schema.String, Schema.Null]),
|
|
482
|
+
createdAt: Schema.String,
|
|
483
|
+
updatedAt: Schema.String,
|
|
484
|
+
endpointId: Schema.Union([MailboxEndpointId, Schema.Null]),
|
|
485
|
+
cc: Schema.Array(Schema.String),
|
|
486
|
+
bcc: Schema.Array(Schema.String),
|
|
487
|
+
replyTo: Schema.Array(Schema.String),
|
|
488
|
+
html: Schema.Union([Schema.String, Schema.Null]),
|
|
489
|
+
text: Schema.Union([Schema.String, Schema.Null]),
|
|
490
|
+
attachments: Schema.Array(EmailAttachment).check(Schema.isMaxLength(10).annotate({ expected: "a value with a length of at most 10" }))
|
|
464
491
|
}).annotate({ identifier: "MailboxDraft" });
|
|
465
|
-
const MailboxPage = /* @__PURE__ */ Schema
|
|
466
|
-
items: Schema
|
|
467
|
-
nextCursor: Schema
|
|
492
|
+
const MailboxPage = /* @__PURE__ */ Schema.Struct({
|
|
493
|
+
items: Schema.Array(MailboxSummary),
|
|
494
|
+
nextCursor: Schema.Union([Schema.String, Schema.Null])
|
|
468
495
|
}).annotate({ identifier: "MailboxPage" });
|
|
469
|
-
const Mailbox = /* @__PURE__ */ Schema
|
|
496
|
+
const Mailbox = /* @__PURE__ */ Schema.Struct({
|
|
470
497
|
id: MailboxId,
|
|
471
|
-
namespaceId: Schema
|
|
472
|
-
slug: Schema
|
|
473
|
-
name: Schema
|
|
498
|
+
namespaceId: Schema.Union([NamespaceId, Schema.Null]),
|
|
499
|
+
slug: Schema.String,
|
|
500
|
+
name: Schema.String,
|
|
474
501
|
status: MailboxStatus,
|
|
475
|
-
primaryAddress: Schema
|
|
476
|
-
createdAt: Schema
|
|
477
|
-
description: Schema
|
|
502
|
+
primaryAddress: Schema.Union([Schema.String, Schema.Null]),
|
|
503
|
+
createdAt: Schema.String,
|
|
504
|
+
description: Schema.Union([Schema.String, Schema.Null]),
|
|
478
505
|
metadata: MailboxMetadata,
|
|
479
|
-
endpoints: Schema
|
|
480
|
-
updatedAt: Schema
|
|
506
|
+
endpoints: Schema.Array(MailboxEndpoint),
|
|
507
|
+
updatedAt: Schema.String
|
|
481
508
|
}).annotate({ identifier: "Mailbox" });
|
|
482
|
-
const MailboxQuarantinePage = /* @__PURE__ */ Schema
|
|
483
|
-
items: Schema
|
|
484
|
-
nextCursor: Schema
|
|
509
|
+
const MailboxQuarantinePage = /* @__PURE__ */ Schema.Struct({
|
|
510
|
+
items: Schema.Array(MailboxQuarantinedMessage),
|
|
511
|
+
nextCursor: Schema.Union([Schema.String, Schema.Null])
|
|
485
512
|
}).annotate({ identifier: "MailboxQuarantinePage" });
|
|
486
|
-
const MailboxNonSendAction = /* @__PURE__ */ Schema
|
|
513
|
+
const MailboxNonSendAction = /* @__PURE__ */ Schema.Struct({
|
|
487
514
|
id: MailboxActionId,
|
|
488
|
-
source: Schema
|
|
489
|
-
Schema
|
|
490
|
-
Schema
|
|
491
|
-
Schema
|
|
492
|
-
Schema
|
|
493
|
-
Schema
|
|
494
|
-
Schema
|
|
495
|
-
Schema
|
|
515
|
+
source: Schema.Union([
|
|
516
|
+
Schema.Literal("humanUi"),
|
|
517
|
+
Schema.Literal("externalApi"),
|
|
518
|
+
Schema.Literal("aiSdkTool"),
|
|
519
|
+
Schema.Literal("extension"),
|
|
520
|
+
Schema.Literal("externalAgent"),
|
|
521
|
+
Schema.Literal("samvaManagedAgent"),
|
|
522
|
+
Schema.Literal("system")
|
|
496
523
|
]),
|
|
497
|
-
proposedBy: Schema
|
|
498
|
-
kind: Schema
|
|
499
|
-
Schema
|
|
500
|
-
Schema
|
|
501
|
-
Schema
|
|
502
|
-
Schema
|
|
503
|
-
Schema
|
|
504
|
-
Schema
|
|
524
|
+
proposedBy: Schema.Struct({
|
|
525
|
+
kind: Schema.Union([
|
|
526
|
+
Schema.Literal("user"),
|
|
527
|
+
Schema.Literal("apiKey"),
|
|
528
|
+
Schema.Literal("extension"),
|
|
529
|
+
Schema.Literal("externalAgent"),
|
|
530
|
+
Schema.Literal("samvaAgent"),
|
|
531
|
+
Schema.Literal("system")
|
|
505
532
|
]),
|
|
506
|
-
id: Schema
|
|
507
|
-
displayName: Schema
|
|
533
|
+
id: Schema.String,
|
|
534
|
+
displayName: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null]))
|
|
508
535
|
}),
|
|
509
|
-
threadId: Schema
|
|
510
|
-
draftId: Schema
|
|
511
|
-
decision: Schema
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
Schema
|
|
517
|
-
Schema
|
|
518
|
-
Schema
|
|
519
|
-
Schema
|
|
520
|
-
Schema
|
|
536
|
+
threadId: Schema.Union([MailboxThreadId, Schema.Null]),
|
|
537
|
+
draftId: Schema.Union([MailboxDraftId, Schema.Null]),
|
|
538
|
+
decision: Schema.Union([MailboxActionDecision, Schema.Null]),
|
|
539
|
+
resolution: Schema.Union([MailboxActionResolution, Schema.Null]).annotate({ description: "How a held action's approval ended: who approved, denied, or cancelled it, when, and the denial reason. Null while it waits for approval and for an action that never needed one." }),
|
|
540
|
+
createdAt: Schema.String,
|
|
541
|
+
updatedAt: Schema.String,
|
|
542
|
+
type: Schema.Union([
|
|
543
|
+
Schema.Literal("updateDraft"),
|
|
544
|
+
Schema.Literal("createNote"),
|
|
545
|
+
Schema.Literal("assignThread"),
|
|
546
|
+
Schema.Literal("changeThreadState"),
|
|
547
|
+
Schema.Literal("call"),
|
|
548
|
+
Schema.Literal("extensionRequest")
|
|
521
549
|
]),
|
|
522
|
-
state: Schema
|
|
523
|
-
Schema
|
|
524
|
-
Schema
|
|
525
|
-
Schema
|
|
526
|
-
Schema
|
|
527
|
-
Schema
|
|
528
|
-
Schema
|
|
529
|
-
Schema
|
|
530
|
-
Schema
|
|
531
|
-
Schema
|
|
550
|
+
state: Schema.Union([
|
|
551
|
+
Schema.Literal("proposed"),
|
|
552
|
+
Schema.Literal("allowed"),
|
|
553
|
+
Schema.Literal("approvalRequired"),
|
|
554
|
+
Schema.Literal("policyDenied"),
|
|
555
|
+
Schema.Literal("approved"),
|
|
556
|
+
Schema.Literal("approvalDenied"),
|
|
557
|
+
Schema.Literal("executing"),
|
|
558
|
+
Schema.Literal("executed"),
|
|
559
|
+
Schema.Literal("failed")
|
|
532
560
|
])
|
|
533
561
|
}).annotate({ identifier: "MailboxNonSendAction" });
|
|
534
|
-
const MailboxPendingSendReceipt = /* @__PURE__ */ Schema
|
|
562
|
+
const MailboxPendingSendReceipt = /* @__PURE__ */ Schema.Struct({
|
|
535
563
|
actionId: MailboxActionId,
|
|
536
|
-
draftId: Schema
|
|
537
|
-
messageId: Schema
|
|
538
|
-
threadId: Schema
|
|
539
|
-
state: Schema
|
|
540
|
-
Schema
|
|
541
|
-
Schema
|
|
542
|
-
Schema
|
|
543
|
-
Schema
|
|
544
|
-
Schema
|
|
545
|
-
Schema
|
|
564
|
+
draftId: Schema.Union([MailboxDraftId, Schema.Null]),
|
|
565
|
+
messageId: Schema.Union([MessageId, Schema.Null]),
|
|
566
|
+
threadId: Schema.Union([MailboxThreadId, Schema.Null]),
|
|
567
|
+
state: Schema.Union([
|
|
568
|
+
Schema.Literal("approvalRequired"),
|
|
569
|
+
Schema.Literal("queued"),
|
|
570
|
+
Schema.Literal("accepted"),
|
|
571
|
+
Schema.Literal("completed"),
|
|
572
|
+
Schema.Literal("notSent"),
|
|
573
|
+
Schema.Literal("uncertain")
|
|
546
574
|
]),
|
|
547
|
-
acceptedAt: Schema
|
|
548
|
-
waitReason: Schema
|
|
549
|
-
Schema
|
|
550
|
-
Schema
|
|
551
|
-
Schema
|
|
552
|
-
Schema
|
|
553
|
-
Schema
|
|
554
|
-
Schema
|
|
555
|
-
Schema
|
|
556
|
-
Schema
|
|
557
|
-
Schema
|
|
558
|
-
Schema
|
|
559
|
-
Schema
|
|
560
|
-
]), Schema
|
|
561
|
-
reviewExpectedAt: Schema
|
|
562
|
-
skippedRecipients: Schema
|
|
563
|
-
executeUntil: Schema
|
|
564
|
-
retryAt: Schema
|
|
565
|
-
problem: Schema
|
|
566
|
-
retryEligible: Schema
|
|
567
|
-
decision: Schema
|
|
568
|
-
createdAt: Schema
|
|
569
|
-
updatedAt: Schema
|
|
575
|
+
acceptedAt: Schema.Union([Schema.String, Schema.Null]),
|
|
576
|
+
waitReason: Schema.Union([Schema.Union([
|
|
577
|
+
Schema.Literal("rate"),
|
|
578
|
+
Schema.Literal("daily-quota"),
|
|
579
|
+
Schema.Literal("domain-health"),
|
|
580
|
+
Schema.Literal("sending-paused"),
|
|
581
|
+
Schema.Literal("upstream-unavailable"),
|
|
582
|
+
Schema.Literal("retry"),
|
|
583
|
+
Schema.Literal("campaign-paused"),
|
|
584
|
+
Schema.Literal("domain-warming"),
|
|
585
|
+
Schema.Literal("onboarding-review"),
|
|
586
|
+
Schema.Literal("content-review"),
|
|
587
|
+
Schema.Literal("screening-unavailable")
|
|
588
|
+
]), Schema.Null]),
|
|
589
|
+
reviewExpectedAt: Schema.Union([Schema.String, Schema.Null]),
|
|
590
|
+
skippedRecipients: Schema.Array(SkippedRecipient),
|
|
591
|
+
executeUntil: Schema.Union([Schema.String, Schema.Null]),
|
|
592
|
+
retryAt: Schema.Union([Schema.String, Schema.Null]),
|
|
593
|
+
problem: Schema.Union([MailboxSendOutcome, Schema.Null]),
|
|
594
|
+
retryEligible: Schema.Boolean,
|
|
595
|
+
decision: Schema.Union([MailboxActionDecision, Schema.Null]),
|
|
596
|
+
createdAt: Schema.String,
|
|
597
|
+
updatedAt: Schema.String
|
|
570
598
|
}).annotate({ identifier: "MailboxPendingSendReceipt" });
|
|
571
|
-
const MailboxDraftPage = /* @__PURE__ */ Schema
|
|
572
|
-
items: Schema
|
|
573
|
-
nextCursor: Schema
|
|
599
|
+
const MailboxDraftPage = /* @__PURE__ */ Schema.Struct({
|
|
600
|
+
items: Schema.Array(MailboxDraftSummary),
|
|
601
|
+
nextCursor: Schema.Union([Schema.String, Schema.Null])
|
|
574
602
|
}).annotate({ identifier: "MailboxDraftPage" });
|
|
575
|
-
const MailboxEventPage = /* @__PURE__ */ Schema
|
|
576
|
-
items: Schema
|
|
577
|
-
nextCursor: Schema
|
|
603
|
+
const MailboxEventPage = /* @__PURE__ */ Schema.Struct({
|
|
604
|
+
items: Schema.Array(MailboxEvent),
|
|
605
|
+
nextCursor: Schema.Union([Schema.String, Schema.Null])
|
|
578
606
|
}).annotate({ identifier: "MailboxEventPage" });
|
|
579
|
-
const MailboxFolderCountList = /* @__PURE__ */ Schema
|
|
580
|
-
const MailboxGrantPage = /* @__PURE__ */ Schema
|
|
581
|
-
items: Schema
|
|
582
|
-
nextCursor: Schema
|
|
607
|
+
const MailboxFolderCountList = /* @__PURE__ */ Schema.Struct({ items: Schema.Array(MailboxFolderCount) }).annotate({ identifier: "MailboxFolderCountList" });
|
|
608
|
+
const MailboxGrantPage = /* @__PURE__ */ Schema.Struct({
|
|
609
|
+
items: Schema.Array(MailboxGrant),
|
|
610
|
+
nextCursor: Schema.Union([Schema.String, Schema.Null])
|
|
583
611
|
}).annotate({ identifier: "MailboxGrantPage" });
|
|
584
|
-
const MailboxLabelList = /* @__PURE__ */ Schema
|
|
585
|
-
const MailboxMessagePage = /* @__PURE__ */ Schema
|
|
586
|
-
items: Schema
|
|
587
|
-
nextCursor: Schema
|
|
612
|
+
const MailboxLabelList = /* @__PURE__ */ Schema.Struct({ items: Schema.Array(MailboxLabel) }).annotate({ identifier: "MailboxLabelList" });
|
|
613
|
+
const MailboxMessagePage = /* @__PURE__ */ Schema.Struct({
|
|
614
|
+
items: Schema.Array(MailboxMessageSummary),
|
|
615
|
+
nextCursor: Schema.Union([Schema.String, Schema.Null])
|
|
588
616
|
}).annotate({ identifier: "MailboxMessagePage" });
|
|
589
|
-
const MailboxThreadContentPage = /* @__PURE__ */ Schema
|
|
590
|
-
items: Schema
|
|
591
|
-
nextCursor: Schema
|
|
617
|
+
const MailboxThreadContentPage = /* @__PURE__ */ Schema.Struct({
|
|
618
|
+
items: Schema.Array(MailboxMessage),
|
|
619
|
+
nextCursor: Schema.Union([Schema.String, Schema.Null])
|
|
592
620
|
}).annotate({ identifier: "MailboxThreadContentPage" });
|
|
593
|
-
const MailboxPolicyList = /* @__PURE__ */ Schema
|
|
594
|
-
const MailboxThreadPage = /* @__PURE__ */ Schema
|
|
595
|
-
items: Schema
|
|
596
|
-
nextCursor: Schema
|
|
621
|
+
const MailboxPolicyList = /* @__PURE__ */ Schema.Struct({ items: Schema.Array(MailboxPolicy) }).annotate({ identifier: "MailboxPolicyList" });
|
|
622
|
+
const MailboxThreadPage = /* @__PURE__ */ Schema.Struct({
|
|
623
|
+
items: Schema.Array(MailboxThreadSummary),
|
|
624
|
+
nextCursor: Schema.Union([Schema.String, Schema.Null])
|
|
597
625
|
}).annotate({ identifier: "MailboxThreadPage" });
|
|
598
|
-
const MailboxNotePage = /* @__PURE__ */ Schema
|
|
599
|
-
items: Schema
|
|
600
|
-
nextCursor: Schema
|
|
626
|
+
const MailboxNotePage = /* @__PURE__ */ Schema.Struct({
|
|
627
|
+
items: Schema.Array(MailboxNote),
|
|
628
|
+
nextCursor: Schema.Union([Schema.String, Schema.Null])
|
|
601
629
|
}).annotate({ identifier: "MailboxNotePage" });
|
|
602
|
-
const MailboxSendAction = /* @__PURE__ */ Schema
|
|
630
|
+
const MailboxSendAction = /* @__PURE__ */ Schema.Struct({
|
|
603
631
|
id: MailboxActionId,
|
|
604
|
-
source: Schema
|
|
605
|
-
Schema
|
|
606
|
-
Schema
|
|
607
|
-
Schema
|
|
608
|
-
Schema
|
|
609
|
-
Schema
|
|
610
|
-
Schema
|
|
611
|
-
Schema
|
|
632
|
+
source: Schema.Union([
|
|
633
|
+
Schema.Literal("humanUi"),
|
|
634
|
+
Schema.Literal("externalApi"),
|
|
635
|
+
Schema.Literal("aiSdkTool"),
|
|
636
|
+
Schema.Literal("extension"),
|
|
637
|
+
Schema.Literal("externalAgent"),
|
|
638
|
+
Schema.Literal("samvaManagedAgent"),
|
|
639
|
+
Schema.Literal("system")
|
|
612
640
|
]),
|
|
613
|
-
proposedBy: Schema
|
|
614
|
-
kind: Schema
|
|
615
|
-
Schema
|
|
616
|
-
Schema
|
|
617
|
-
Schema
|
|
618
|
-
Schema
|
|
619
|
-
Schema
|
|
620
|
-
Schema
|
|
641
|
+
proposedBy: Schema.Struct({
|
|
642
|
+
kind: Schema.Union([
|
|
643
|
+
Schema.Literal("user"),
|
|
644
|
+
Schema.Literal("apiKey"),
|
|
645
|
+
Schema.Literal("extension"),
|
|
646
|
+
Schema.Literal("externalAgent"),
|
|
647
|
+
Schema.Literal("samvaAgent"),
|
|
648
|
+
Schema.Literal("system")
|
|
621
649
|
]),
|
|
622
|
-
id: Schema
|
|
623
|
-
displayName: Schema
|
|
650
|
+
id: Schema.String,
|
|
651
|
+
displayName: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null]))
|
|
624
652
|
}),
|
|
625
|
-
threadId: Schema
|
|
626
|
-
draftId: Schema
|
|
627
|
-
decision: Schema
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
Schema
|
|
634
|
-
Schema
|
|
635
|
-
Schema
|
|
636
|
-
Schema
|
|
637
|
-
Schema
|
|
653
|
+
threadId: Schema.Union([MailboxThreadId, Schema.Null]),
|
|
654
|
+
draftId: Schema.Union([MailboxDraftId, Schema.Null]),
|
|
655
|
+
decision: Schema.Union([MailboxActionDecision, Schema.Null]),
|
|
656
|
+
resolution: Schema.Union([MailboxActionResolution, Schema.Null]).annotate({ description: "How a held action's approval ended: who approved, denied, or cancelled it, when, and the denial reason. Null while it waits for approval and for an action that never needed one." }),
|
|
657
|
+
createdAt: Schema.String,
|
|
658
|
+
updatedAt: Schema.String,
|
|
659
|
+
type: Schema.Union([Schema.Literal("sendMessage"), Schema.Literal("reply")]),
|
|
660
|
+
state: Schema.Union([
|
|
661
|
+
Schema.Literal("approvalRequired"),
|
|
662
|
+
Schema.Literal("queued"),
|
|
663
|
+
Schema.Literal("accepted"),
|
|
664
|
+
Schema.Literal("completed"),
|
|
665
|
+
Schema.Literal("notSent"),
|
|
666
|
+
Schema.Literal("uncertain")
|
|
638
667
|
]),
|
|
639
668
|
send: MailboxSendReceipt,
|
|
640
|
-
intent: Schema
|
|
669
|
+
intent: Schema.Union([MailboxSendSnapshot, Schema.Null])
|
|
641
670
|
}).annotate({ identifier: "MailboxSendAction" });
|
|
642
|
-
const MailboxAction = /* @__PURE__ */ Schema
|
|
643
|
-
const MailboxPendingAction = /* @__PURE__ */ Schema
|
|
644
|
-
const MailboxActionPage = /* @__PURE__ */ Schema
|
|
645
|
-
items: Schema
|
|
646
|
-
nextCursor: Schema
|
|
671
|
+
const MailboxAction = /* @__PURE__ */ Schema.Union([MailboxSendAction, MailboxNonSendAction]).annotate({ identifier: "MailboxAction" });
|
|
672
|
+
const MailboxPendingAction = /* @__PURE__ */ Schema.Union([MailboxSendAction, MailboxNonSendAction]).annotate({ identifier: "MailboxPendingAction" });
|
|
673
|
+
const MailboxActionPage = /* @__PURE__ */ Schema.Struct({
|
|
674
|
+
items: Schema.Array(MailboxAction),
|
|
675
|
+
nextCursor: Schema.Union([Schema.String, Schema.Null])
|
|
647
676
|
}).annotate({ identifier: "MailboxActionPage" });
|
|
648
|
-
const MailboxesListQuery = /* @__PURE__ */ Schema
|
|
649
|
-
limit: Schema
|
|
650
|
-
cursor: Schema
|
|
651
|
-
after: Schema
|
|
652
|
-
before: Schema
|
|
677
|
+
const MailboxesListQuery = /* @__PURE__ */ Schema.Struct({
|
|
678
|
+
limit: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
|
|
679
|
+
cursor: Schema.optionalKey(Schema.Union([Cursor, Schema.Null])),
|
|
680
|
+
after: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
|
|
681
|
+
before: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null]))
|
|
653
682
|
});
|
|
654
683
|
const MailboxesList200 = MailboxPage;
|
|
655
684
|
const MailboxesList401 = UnauthorizedError;
|
|
@@ -657,12 +686,12 @@ const MailboxesList403 = ForbiddenError;
|
|
|
657
686
|
const MailboxesList422 = ValidationError;
|
|
658
687
|
const MailboxesList500 = InternalError;
|
|
659
688
|
const MailboxesList504 = GatewayTimeoutError;
|
|
660
|
-
const MailboxesCreateRequestJson = /* @__PURE__ */ Schema
|
|
661
|
-
namespaceId: Schema
|
|
689
|
+
const MailboxesCreateRequestJson = /* @__PURE__ */ Schema.Struct({
|
|
690
|
+
namespaceId: Schema.optionalKey(Schema.Union([NamespaceId, Schema.Null])),
|
|
662
691
|
endpoint: CreateMailboxEndpointPayload,
|
|
663
|
-
name: Schema
|
|
664
|
-
slug: Schema
|
|
665
|
-
metadata: Schema
|
|
692
|
+
name: Schema.String,
|
|
693
|
+
slug: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
|
|
694
|
+
metadata: Schema.optionalKey(Schema.Union([MailboxMetadata, Schema.Null]))
|
|
666
695
|
});
|
|
667
696
|
const MailboxesCreate201 = Mailbox;
|
|
668
697
|
const MailboxesCreate401 = UnauthorizedError;
|
|
@@ -670,11 +699,11 @@ const MailboxesCreate402 = PaymentRequiredError;
|
|
|
670
699
|
const MailboxesCreate403 = ForbiddenError;
|
|
671
700
|
const MailboxesCreate404 = ResourceNotFoundError;
|
|
672
701
|
const MailboxesCreate409 = ConflictError;
|
|
673
|
-
const MailboxesCreate422 = /* @__PURE__ */ Schema
|
|
702
|
+
const MailboxesCreate422 = /* @__PURE__ */ Schema.Union([ValidationError, MailboxChannelUnsupportedError]);
|
|
674
703
|
const MailboxesCreate500 = InternalError;
|
|
675
704
|
const MailboxesCreate502 = BillingProviderError;
|
|
676
705
|
const MailboxesCreate504 = GatewayTimeoutError;
|
|
677
|
-
const MailboxesGetPathParams = /* @__PURE__ */ Schema
|
|
706
|
+
const MailboxesGetPathParams = /* @__PURE__ */ Schema.Struct({ id: MailboxId });
|
|
678
707
|
const MailboxesGet200 = Mailbox;
|
|
679
708
|
const MailboxesGet401 = UnauthorizedError;
|
|
680
709
|
const MailboxesGet403 = ForbiddenError;
|
|
@@ -682,7 +711,7 @@ const MailboxesGet404 = ResourceNotFoundError;
|
|
|
682
711
|
const MailboxesGet422 = ValidationError;
|
|
683
712
|
const MailboxesGet500 = InternalError;
|
|
684
713
|
const MailboxesGet504 = GatewayTimeoutError;
|
|
685
|
-
const MailboxesRemovePathParams = /* @__PURE__ */ Schema
|
|
714
|
+
const MailboxesRemovePathParams = /* @__PURE__ */ Schema.Struct({ id: MailboxId });
|
|
686
715
|
const MailboxesRemove200 = SuccessResponse;
|
|
687
716
|
const MailboxesRemove401 = UnauthorizedError;
|
|
688
717
|
const MailboxesRemove403 = ForbiddenError;
|
|
@@ -691,10 +720,10 @@ const MailboxesRemove422 = ValidationError;
|
|
|
691
720
|
const MailboxesRemove500 = InternalError;
|
|
692
721
|
const MailboxesRemove502 = BillingProviderError;
|
|
693
722
|
const MailboxesRemove504 = GatewayTimeoutError;
|
|
694
|
-
const MailboxesUpdatePathParams = /* @__PURE__ */ Schema
|
|
695
|
-
const MailboxesUpdateRequestJson = /* @__PURE__ */ Schema
|
|
696
|
-
name: Schema
|
|
697
|
-
metadata: Schema
|
|
723
|
+
const MailboxesUpdatePathParams = /* @__PURE__ */ Schema.Struct({ id: MailboxId });
|
|
724
|
+
const MailboxesUpdateRequestJson = /* @__PURE__ */ Schema.Struct({
|
|
725
|
+
name: Schema.optionalKey(Schema.Union([Schema.String.check(Schema.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })), Schema.Null])),
|
|
726
|
+
metadata: Schema.optionalKey(Schema.Union([MailboxMetadataPatch, Schema.Null]))
|
|
698
727
|
});
|
|
699
728
|
const MailboxesUpdate200 = Mailbox;
|
|
700
729
|
const MailboxesUpdate401 = UnauthorizedError;
|
|
@@ -703,29 +732,29 @@ const MailboxesUpdate404 = ResourceNotFoundError;
|
|
|
703
732
|
const MailboxesUpdate422 = ValidationError;
|
|
704
733
|
const MailboxesUpdate500 = InternalError;
|
|
705
734
|
const MailboxesUpdate504 = GatewayTimeoutError;
|
|
706
|
-
const MailboxesListActionsPathParams = /* @__PURE__ */ Schema
|
|
707
|
-
const MailboxesListActionsQuery = /* @__PURE__ */ Schema
|
|
708
|
-
limit: Schema
|
|
709
|
-
cursor: Schema
|
|
710
|
-
threadId: Schema
|
|
711
|
-
state: Schema
|
|
712
|
-
Schema
|
|
713
|
-
Schema
|
|
714
|
-
Schema
|
|
715
|
-
Schema
|
|
716
|
-
Schema
|
|
717
|
-
Schema
|
|
718
|
-
Schema
|
|
719
|
-
Schema
|
|
720
|
-
Schema
|
|
721
|
-
Schema
|
|
722
|
-
Schema
|
|
723
|
-
Schema
|
|
724
|
-
Schema
|
|
725
|
-
Schema
|
|
726
|
-
]), Schema
|
|
727
|
-
after: Schema
|
|
728
|
-
before: Schema
|
|
735
|
+
const MailboxesListActionsPathParams = /* @__PURE__ */ Schema.Struct({ id: MailboxId });
|
|
736
|
+
const MailboxesListActionsQuery = /* @__PURE__ */ Schema.Struct({
|
|
737
|
+
limit: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
|
|
738
|
+
cursor: Schema.optionalKey(Schema.Union([Cursor, Schema.Null])),
|
|
739
|
+
threadId: Schema.optionalKey(Schema.Union([MailboxThreadId, Schema.Null])),
|
|
740
|
+
state: Schema.optionalKey(Schema.Union([Schema.Union([
|
|
741
|
+
Schema.Literal("proposed"),
|
|
742
|
+
Schema.Literal("allowed"),
|
|
743
|
+
Schema.Literal("approvalRequired"),
|
|
744
|
+
Schema.Literal("policyDenied"),
|
|
745
|
+
Schema.Literal("approved"),
|
|
746
|
+
Schema.Literal("approvalDenied"),
|
|
747
|
+
Schema.Literal("executing"),
|
|
748
|
+
Schema.Literal("executed"),
|
|
749
|
+
Schema.Literal("failed"),
|
|
750
|
+
Schema.Literal("queued"),
|
|
751
|
+
Schema.Literal("accepted"),
|
|
752
|
+
Schema.Literal("completed"),
|
|
753
|
+
Schema.Literal("notSent"),
|
|
754
|
+
Schema.Literal("uncertain")
|
|
755
|
+
]), Schema.Null])),
|
|
756
|
+
after: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
|
|
757
|
+
before: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null]))
|
|
729
758
|
});
|
|
730
759
|
const MailboxesListActions200 = MailboxActionPage;
|
|
731
760
|
const MailboxesListActions401 = UnauthorizedError;
|
|
@@ -734,7 +763,7 @@ const MailboxesListActions404 = ResourceNotFoundError;
|
|
|
734
763
|
const MailboxesListActions422 = ValidationError;
|
|
735
764
|
const MailboxesListActions500 = InternalError;
|
|
736
765
|
const MailboxesListActions504 = GatewayTimeoutError;
|
|
737
|
-
const MailboxesGetActionPathParams = /* @__PURE__ */ Schema
|
|
766
|
+
const MailboxesGetActionPathParams = /* @__PURE__ */ Schema.Struct({
|
|
738
767
|
id: MailboxId,
|
|
739
768
|
actionId: MailboxActionId
|
|
740
769
|
});
|
|
@@ -745,7 +774,7 @@ const MailboxesGetAction404 = ResourceNotFoundError;
|
|
|
745
774
|
const MailboxesGetAction422 = ValidationError;
|
|
746
775
|
const MailboxesGetAction500 = InternalError;
|
|
747
776
|
const MailboxesGetAction504 = GatewayTimeoutError;
|
|
748
|
-
const MailboxesApproveActionPathParams = /* @__PURE__ */ Schema
|
|
777
|
+
const MailboxesApproveActionPathParams = /* @__PURE__ */ Schema.Struct({
|
|
749
778
|
id: MailboxId,
|
|
750
779
|
actionId: MailboxActionId
|
|
751
780
|
});
|
|
@@ -753,20 +782,20 @@ const MailboxesApproveAction200 = MailboxAction;
|
|
|
753
782
|
const MailboxesApproveAction202 = MailboxPendingAction;
|
|
754
783
|
const MailboxesApproveAction401 = UnauthorizedError;
|
|
755
784
|
const MailboxesApproveAction402 = PaymentRequiredError;
|
|
756
|
-
const MailboxesApproveAction403 = /* @__PURE__ */ Schema
|
|
785
|
+
const MailboxesApproveAction403 = /* @__PURE__ */ Schema.Union([
|
|
757
786
|
MailboxSendRefusedError,
|
|
758
787
|
OnboardingReviewRequiredError,
|
|
759
788
|
ForbiddenError
|
|
760
789
|
]);
|
|
761
790
|
const MailboxesApproveAction404 = ResourceNotFoundError;
|
|
762
|
-
const MailboxesApproveAction409 = /* @__PURE__ */ Schema
|
|
763
|
-
const MailboxesApproveAction422 = /* @__PURE__ */ Schema
|
|
791
|
+
const MailboxesApproveAction409 = /* @__PURE__ */ Schema.Union([MailboxSendConflictError, ConflictError]);
|
|
792
|
+
const MailboxesApproveAction422 = /* @__PURE__ */ Schema.Union([MailboxChannelUnsupportedError, ValidationError]);
|
|
764
793
|
const MailboxesApproveAction429 = RateLimitedError;
|
|
765
794
|
const MailboxesApproveAction500 = InternalError;
|
|
766
795
|
const MailboxesApproveAction502 = BillingProviderError;
|
|
767
796
|
const MailboxesApproveAction503 = SenderNotReadyError;
|
|
768
797
|
const MailboxesApproveAction504 = GatewayTimeoutError;
|
|
769
|
-
const MailboxesCancelActionPathParams = /* @__PURE__ */ Schema
|
|
798
|
+
const MailboxesCancelActionPathParams = /* @__PURE__ */ Schema.Struct({
|
|
770
799
|
id: MailboxId,
|
|
771
800
|
actionId: MailboxActionId
|
|
772
801
|
});
|
|
@@ -774,33 +803,33 @@ const MailboxesCancelAction200 = MailboxSendReceipt;
|
|
|
774
803
|
const MailboxesCancelAction202 = MailboxPendingSendReceipt;
|
|
775
804
|
const MailboxesCancelAction401 = UnauthorizedError;
|
|
776
805
|
const MailboxesCancelAction402 = PaymentRequiredError;
|
|
777
|
-
const MailboxesCancelAction403 = /* @__PURE__ */ Schema
|
|
806
|
+
const MailboxesCancelAction403 = /* @__PURE__ */ Schema.Union([
|
|
778
807
|
MailboxSendRefusedError,
|
|
779
808
|
OnboardingReviewRequiredError,
|
|
780
809
|
ForbiddenError
|
|
781
810
|
]);
|
|
782
811
|
const MailboxesCancelAction404 = ResourceNotFoundError;
|
|
783
|
-
const MailboxesCancelAction409 = /* @__PURE__ */ Schema
|
|
784
|
-
const MailboxesCancelAction422 = /* @__PURE__ */ Schema
|
|
812
|
+
const MailboxesCancelAction409 = /* @__PURE__ */ Schema.Union([MailboxSendConflictError, ConflictError]);
|
|
813
|
+
const MailboxesCancelAction422 = /* @__PURE__ */ Schema.Union([MailboxChannelUnsupportedError, ValidationError]);
|
|
785
814
|
const MailboxesCancelAction429 = RateLimitedError;
|
|
786
815
|
const MailboxesCancelAction500 = InternalError;
|
|
787
816
|
const MailboxesCancelAction502 = BillingProviderError;
|
|
788
817
|
const MailboxesCancelAction503 = SenderNotReadyError;
|
|
789
818
|
const MailboxesCancelAction504 = GatewayTimeoutError;
|
|
790
|
-
const MailboxesDenyActionPathParams = /* @__PURE__ */ Schema
|
|
819
|
+
const MailboxesDenyActionPathParams = /* @__PURE__ */ Schema.Struct({
|
|
791
820
|
id: MailboxId,
|
|
792
821
|
actionId: MailboxActionId
|
|
793
822
|
});
|
|
794
|
-
const MailboxesDenyActionRequestJson = /* @__PURE__ */ Schema
|
|
823
|
+
const MailboxesDenyActionRequestJson = /* @__PURE__ */ Schema.Struct({ reason: Schema.String });
|
|
795
824
|
const MailboxesDenyAction200 = MailboxAction;
|
|
796
825
|
const MailboxesDenyAction401 = UnauthorizedError;
|
|
797
826
|
const MailboxesDenyAction403 = ForbiddenError;
|
|
798
827
|
const MailboxesDenyAction404 = ResourceNotFoundError;
|
|
799
|
-
const MailboxesDenyAction409 = /* @__PURE__ */ Schema
|
|
828
|
+
const MailboxesDenyAction409 = /* @__PURE__ */ Schema.Union([ConflictError, MailboxSendConflictError]);
|
|
800
829
|
const MailboxesDenyAction422 = ValidationError;
|
|
801
830
|
const MailboxesDenyAction500 = InternalError;
|
|
802
831
|
const MailboxesDenyAction504 = GatewayTimeoutError;
|
|
803
|
-
const MailboxesRetryActionPathParams = /* @__PURE__ */ Schema
|
|
832
|
+
const MailboxesRetryActionPathParams = /* @__PURE__ */ Schema.Struct({
|
|
804
833
|
id: MailboxId,
|
|
805
834
|
actionId: MailboxActionId
|
|
806
835
|
});
|
|
@@ -808,23 +837,23 @@ const MailboxesRetryAction200 = MailboxSendReceipt;
|
|
|
808
837
|
const MailboxesRetryAction202 = MailboxPendingSendReceipt;
|
|
809
838
|
const MailboxesRetryAction401 = UnauthorizedError;
|
|
810
839
|
const MailboxesRetryAction402 = PaymentRequiredError;
|
|
811
|
-
const MailboxesRetryAction403 = /* @__PURE__ */ Schema
|
|
840
|
+
const MailboxesRetryAction403 = /* @__PURE__ */ Schema.Union([
|
|
812
841
|
MailboxSendRefusedError,
|
|
813
842
|
OnboardingReviewRequiredError,
|
|
814
843
|
ForbiddenError
|
|
815
844
|
]);
|
|
816
845
|
const MailboxesRetryAction404 = ResourceNotFoundError;
|
|
817
|
-
const MailboxesRetryAction409 = /* @__PURE__ */ Schema
|
|
818
|
-
const MailboxesRetryAction422 = /* @__PURE__ */ Schema
|
|
846
|
+
const MailboxesRetryAction409 = /* @__PURE__ */ Schema.Union([MailboxSendConflictError, ConflictError]);
|
|
847
|
+
const MailboxesRetryAction422 = /* @__PURE__ */ Schema.Union([MailboxChannelUnsupportedError, ValidationError]);
|
|
819
848
|
const MailboxesRetryAction429 = RateLimitedError;
|
|
820
849
|
const MailboxesRetryAction500 = InternalError;
|
|
821
850
|
const MailboxesRetryAction502 = BillingProviderError;
|
|
822
851
|
const MailboxesRetryAction503 = SenderNotReadyError;
|
|
823
852
|
const MailboxesRetryAction504 = GatewayTimeoutError;
|
|
824
|
-
const MailboxesGetAgentActivityPathParams = /* @__PURE__ */ Schema
|
|
825
|
-
const MailboxesGetAgentActivityQuery = /* @__PURE__ */ Schema
|
|
826
|
-
after: Schema
|
|
827
|
-
before: Schema
|
|
853
|
+
const MailboxesGetAgentActivityPathParams = /* @__PURE__ */ Schema.Struct({ id: MailboxId });
|
|
854
|
+
const MailboxesGetAgentActivityQuery = /* @__PURE__ */ Schema.Struct({
|
|
855
|
+
after: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
|
|
856
|
+
before: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null]))
|
|
828
857
|
});
|
|
829
858
|
const MailboxesGetAgentActivity200 = MailboxAgentActivity;
|
|
830
859
|
const MailboxesGetAgentActivity401 = UnauthorizedError;
|
|
@@ -833,11 +862,11 @@ const MailboxesGetAgentActivity404 = ResourceNotFoundError;
|
|
|
833
862
|
const MailboxesGetAgentActivity422 = ValidationError;
|
|
834
863
|
const MailboxesGetAgentActivity500 = InternalError;
|
|
835
864
|
const MailboxesGetAgentActivity504 = GatewayTimeoutError;
|
|
836
|
-
const MailboxesListDraftsPathParams = /* @__PURE__ */ Schema
|
|
837
|
-
const MailboxesListDraftsQuery = /* @__PURE__ */ Schema
|
|
838
|
-
limit: Schema
|
|
839
|
-
cursor: Schema
|
|
840
|
-
threadId: Schema
|
|
865
|
+
const MailboxesListDraftsPathParams = /* @__PURE__ */ Schema.Struct({ id: MailboxId });
|
|
866
|
+
const MailboxesListDraftsQuery = /* @__PURE__ */ Schema.Struct({
|
|
867
|
+
limit: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
|
|
868
|
+
cursor: Schema.optionalKey(Schema.Union([Cursor, Schema.Null])),
|
|
869
|
+
threadId: Schema.optionalKey(Schema.Union([MailboxThreadId, Schema.Null]))
|
|
841
870
|
});
|
|
842
871
|
const MailboxesListDrafts200 = MailboxDraftPage;
|
|
843
872
|
const MailboxesListDrafts401 = UnauthorizedError;
|
|
@@ -846,28 +875,28 @@ const MailboxesListDrafts404 = ResourceNotFoundError;
|
|
|
846
875
|
const MailboxesListDrafts422 = ValidationError;
|
|
847
876
|
const MailboxesListDrafts500 = InternalError;
|
|
848
877
|
const MailboxesListDrafts504 = GatewayTimeoutError;
|
|
849
|
-
const MailboxesCreateDraftPathParams = /* @__PURE__ */ Schema
|
|
850
|
-
const MailboxesCreateDraftRequestJson = /* @__PURE__ */ Schema
|
|
851
|
-
channel: Schema
|
|
852
|
-
endpointId: Schema
|
|
853
|
-
to: Schema
|
|
854
|
-
cc: Schema
|
|
855
|
-
bcc: Schema
|
|
856
|
-
replyTo: Schema
|
|
857
|
-
subject: Schema
|
|
858
|
-
text: Schema
|
|
859
|
-
html: Schema
|
|
860
|
-
attachments: Schema
|
|
861
|
-
inReplyToMessageId: Schema
|
|
878
|
+
const MailboxesCreateDraftPathParams = /* @__PURE__ */ Schema.Struct({ id: MailboxId });
|
|
879
|
+
const MailboxesCreateDraftRequestJson = /* @__PURE__ */ Schema.Struct({
|
|
880
|
+
channel: Schema.optionalKey(Schema.Union([Schema.Literal("email"), Schema.Null])),
|
|
881
|
+
endpointId: Schema.optionalKey(Schema.Union([MailboxEndpointId, Schema.Null])),
|
|
882
|
+
to: Schema.optionalKey(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
|
|
883
|
+
cc: Schema.optionalKey(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
|
|
884
|
+
bcc: Schema.optionalKey(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
|
|
885
|
+
replyTo: Schema.optionalKey(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
|
|
886
|
+
subject: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
|
|
887
|
+
text: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
|
|
888
|
+
html: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
|
|
889
|
+
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])),
|
|
890
|
+
inReplyToMessageId: Schema.optionalKey(Schema.Union([MessageId, Schema.Null]))
|
|
862
891
|
});
|
|
863
892
|
const MailboxesCreateDraft201 = MailboxDraft;
|
|
864
893
|
const MailboxesCreateDraft401 = UnauthorizedError;
|
|
865
894
|
const MailboxesCreateDraft403 = ForbiddenError;
|
|
866
895
|
const MailboxesCreateDraft404 = ResourceNotFoundError;
|
|
867
|
-
const MailboxesCreateDraft422 = /* @__PURE__ */ Schema
|
|
896
|
+
const MailboxesCreateDraft422 = /* @__PURE__ */ Schema.Union([MailboxChannelUnsupportedError, ValidationError]);
|
|
868
897
|
const MailboxesCreateDraft500 = InternalError;
|
|
869
898
|
const MailboxesCreateDraft504 = GatewayTimeoutError;
|
|
870
|
-
const MailboxesGetDraftPathParams = /* @__PURE__ */ Schema
|
|
899
|
+
const MailboxesGetDraftPathParams = /* @__PURE__ */ Schema.Struct({
|
|
871
900
|
id: MailboxId,
|
|
872
901
|
draftId: MailboxDraftId
|
|
873
902
|
});
|
|
@@ -878,7 +907,7 @@ const MailboxesGetDraft404 = ResourceNotFoundError;
|
|
|
878
907
|
const MailboxesGetDraft422 = ValidationError;
|
|
879
908
|
const MailboxesGetDraft500 = InternalError;
|
|
880
909
|
const MailboxesGetDraft504 = GatewayTimeoutError;
|
|
881
|
-
const MailboxesDeleteDraftPathParams = /* @__PURE__ */ Schema
|
|
910
|
+
const MailboxesDeleteDraftPathParams = /* @__PURE__ */ Schema.Struct({
|
|
882
911
|
id: MailboxId,
|
|
883
912
|
draftId: MailboxDraftId
|
|
884
913
|
});
|
|
@@ -889,19 +918,19 @@ const MailboxesDeleteDraft404 = ResourceNotFoundError;
|
|
|
889
918
|
const MailboxesDeleteDraft422 = ValidationError;
|
|
890
919
|
const MailboxesDeleteDraft500 = InternalError;
|
|
891
920
|
const MailboxesDeleteDraft504 = GatewayTimeoutError;
|
|
892
|
-
const MailboxesUpdateDraftPathParams = /* @__PURE__ */ Schema
|
|
921
|
+
const MailboxesUpdateDraftPathParams = /* @__PURE__ */ Schema.Struct({
|
|
893
922
|
id: MailboxId,
|
|
894
923
|
draftId: MailboxDraftId
|
|
895
924
|
});
|
|
896
|
-
const MailboxesUpdateDraftRequestJson = /* @__PURE__ */ Schema
|
|
897
|
-
to: Schema
|
|
898
|
-
cc: Schema
|
|
899
|
-
bcc: Schema
|
|
900
|
-
replyTo: Schema
|
|
901
|
-
subject: Schema
|
|
902
|
-
text: Schema
|
|
903
|
-
html: Schema
|
|
904
|
-
attachments: Schema
|
|
925
|
+
const MailboxesUpdateDraftRequestJson = /* @__PURE__ */ Schema.Struct({
|
|
926
|
+
to: Schema.optionalKey(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
|
|
927
|
+
cc: Schema.optionalKey(Schema.Union([Schema.Union([Schema.Array(Schema.String), Schema.Null]), Schema.Null])),
|
|
928
|
+
bcc: Schema.optionalKey(Schema.Union([Schema.Union([Schema.Array(Schema.String), Schema.Null]), Schema.Null])),
|
|
929
|
+
replyTo: Schema.optionalKey(Schema.Union([Schema.Union([Schema.Array(Schema.String), Schema.Null]), Schema.Null])),
|
|
930
|
+
subject: Schema.optionalKey(Schema.Union([Schema.Union([Schema.String, Schema.Null]), Schema.Null])),
|
|
931
|
+
text: Schema.optionalKey(Schema.Union([Schema.Union([Schema.String, Schema.Null]), Schema.Null])),
|
|
932
|
+
html: Schema.optionalKey(Schema.Union([Schema.Union([Schema.String, Schema.Null]), Schema.Null])),
|
|
933
|
+
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
934
|
});
|
|
906
935
|
const MailboxesUpdateDraft200 = MailboxDraft;
|
|
907
936
|
const MailboxesUpdateDraft401 = UnauthorizedError;
|
|
@@ -911,43 +940,43 @@ const MailboxesUpdateDraft409 = ConflictError;
|
|
|
911
940
|
const MailboxesUpdateDraft422 = ValidationError;
|
|
912
941
|
const MailboxesUpdateDraft500 = InternalError;
|
|
913
942
|
const MailboxesUpdateDraft504 = GatewayTimeoutError;
|
|
914
|
-
const MailboxesSendDraftPathParams = /* @__PURE__ */ Schema
|
|
943
|
+
const MailboxesSendDraftPathParams = /* @__PURE__ */ Schema.Struct({
|
|
915
944
|
id: MailboxId,
|
|
916
945
|
draftId: MailboxDraftId
|
|
917
946
|
});
|
|
918
|
-
const MailboxesSendDraftHeaders = /* @__PURE__ */ Schema
|
|
947
|
+
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
948
|
const MailboxesSendDraft200 = MailboxSendReceipt;
|
|
920
949
|
const MailboxesSendDraft202 = MailboxPendingSendReceipt;
|
|
921
950
|
const MailboxesSendDraft401 = UnauthorizedError;
|
|
922
951
|
const MailboxesSendDraft402 = PaymentRequiredError;
|
|
923
|
-
const MailboxesSendDraft403 = /* @__PURE__ */ Schema
|
|
952
|
+
const MailboxesSendDraft403 = /* @__PURE__ */ Schema.Union([
|
|
924
953
|
MailboxSendRefusedError,
|
|
925
954
|
OnboardingReviewRequiredError,
|
|
926
955
|
ForbiddenError
|
|
927
956
|
]);
|
|
928
957
|
const MailboxesSendDraft404 = ResourceNotFoundError;
|
|
929
|
-
const MailboxesSendDraft409 = /* @__PURE__ */ Schema
|
|
930
|
-
const MailboxesSendDraft422 = /* @__PURE__ */ Schema
|
|
958
|
+
const MailboxesSendDraft409 = /* @__PURE__ */ Schema.Union([MailboxSendConflictError, ConflictError]);
|
|
959
|
+
const MailboxesSendDraft422 = /* @__PURE__ */ Schema.Union([MailboxChannelUnsupportedError, ValidationError]);
|
|
931
960
|
const MailboxesSendDraft429 = RateLimitedError;
|
|
932
961
|
const MailboxesSendDraft500 = InternalError;
|
|
933
962
|
const MailboxesSendDraft502 = BillingProviderError;
|
|
934
963
|
const MailboxesSendDraft503 = SenderNotReadyError;
|
|
935
964
|
const MailboxesSendDraft504 = GatewayTimeoutError;
|
|
936
|
-
const MailboxesCreateEndpointPathParams = /* @__PURE__ */ Schema
|
|
937
|
-
const MailboxesCreateEndpointRequestJson = /* @__PURE__ */ Schema
|
|
965
|
+
const MailboxesCreateEndpointPathParams = /* @__PURE__ */ Schema.Struct({ id: MailboxId });
|
|
966
|
+
const MailboxesCreateEndpointRequestJson = /* @__PURE__ */ Schema.Struct({
|
|
938
967
|
channel: MailboxChannel,
|
|
939
|
-
address: Schema
|
|
940
|
-
displayName: Schema
|
|
968
|
+
address: Schema.String,
|
|
969
|
+
displayName: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null]))
|
|
941
970
|
});
|
|
942
971
|
const MailboxesCreateEndpoint201 = Mailbox;
|
|
943
972
|
const MailboxesCreateEndpoint401 = UnauthorizedError;
|
|
944
973
|
const MailboxesCreateEndpoint403 = ForbiddenError;
|
|
945
974
|
const MailboxesCreateEndpoint404 = ResourceNotFoundError;
|
|
946
975
|
const MailboxesCreateEndpoint409 = ConflictError;
|
|
947
|
-
const MailboxesCreateEndpoint422 = /* @__PURE__ */ Schema
|
|
976
|
+
const MailboxesCreateEndpoint422 = /* @__PURE__ */ Schema.Union([ValidationError, MailboxChannelUnsupportedError]);
|
|
948
977
|
const MailboxesCreateEndpoint500 = InternalError;
|
|
949
978
|
const MailboxesCreateEndpoint504 = GatewayTimeoutError;
|
|
950
|
-
const MailboxesRemoveEndpointPathParams = /* @__PURE__ */ Schema
|
|
979
|
+
const MailboxesRemoveEndpointPathParams = /* @__PURE__ */ Schema.Struct({
|
|
951
980
|
id: MailboxId,
|
|
952
981
|
endpointId: MailboxEndpointId
|
|
953
982
|
});
|
|
@@ -958,13 +987,13 @@ const MailboxesRemoveEndpoint404 = ResourceNotFoundError;
|
|
|
958
987
|
const MailboxesRemoveEndpoint422 = ValidationError;
|
|
959
988
|
const MailboxesRemoveEndpoint500 = InternalError;
|
|
960
989
|
const MailboxesRemoveEndpoint504 = GatewayTimeoutError;
|
|
961
|
-
const MailboxesUpdateEndpointPathParams = /* @__PURE__ */ Schema
|
|
990
|
+
const MailboxesUpdateEndpointPathParams = /* @__PURE__ */ Schema.Struct({
|
|
962
991
|
id: MailboxId,
|
|
963
992
|
endpointId: MailboxEndpointId
|
|
964
993
|
});
|
|
965
|
-
const MailboxesUpdateEndpointRequestJson = /* @__PURE__ */ Schema
|
|
966
|
-
displayName: Schema
|
|
967
|
-
default: Schema
|
|
994
|
+
const MailboxesUpdateEndpointRequestJson = /* @__PURE__ */ Schema.Struct({
|
|
995
|
+
displayName: Schema.optionalKey(Schema.Union([Schema.Union([Schema.String, Schema.Null]), Schema.Null])),
|
|
996
|
+
default: Schema.optionalKey(Schema.Union([Schema.Literal(true), Schema.Null]))
|
|
968
997
|
});
|
|
969
998
|
const MailboxesUpdateEndpoint200 = Mailbox;
|
|
970
999
|
const MailboxesUpdateEndpoint401 = UnauthorizedError;
|
|
@@ -973,12 +1002,12 @@ const MailboxesUpdateEndpoint404 = ResourceNotFoundError;
|
|
|
973
1002
|
const MailboxesUpdateEndpoint422 = ValidationError;
|
|
974
1003
|
const MailboxesUpdateEndpoint500 = InternalError;
|
|
975
1004
|
const MailboxesUpdateEndpoint504 = GatewayTimeoutError;
|
|
976
|
-
const MailboxesListEventsPathParams = /* @__PURE__ */ Schema
|
|
977
|
-
const MailboxesListEventsQuery = /* @__PURE__ */ Schema
|
|
978
|
-
limit: Schema
|
|
979
|
-
cursor: Schema
|
|
980
|
-
after: Schema
|
|
981
|
-
before: Schema
|
|
1005
|
+
const MailboxesListEventsPathParams = /* @__PURE__ */ Schema.Struct({ id: MailboxId });
|
|
1006
|
+
const MailboxesListEventsQuery = /* @__PURE__ */ Schema.Struct({
|
|
1007
|
+
limit: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
|
|
1008
|
+
cursor: Schema.optionalKey(Schema.Union([Cursor, Schema.Null])),
|
|
1009
|
+
after: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
|
|
1010
|
+
before: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null]))
|
|
982
1011
|
});
|
|
983
1012
|
const MailboxesListEvents200 = MailboxEventPage;
|
|
984
1013
|
const MailboxesListEvents401 = UnauthorizedError;
|
|
@@ -987,7 +1016,7 @@ const MailboxesListEvents404 = ResourceNotFoundError;
|
|
|
987
1016
|
const MailboxesListEvents422 = ValidationError;
|
|
988
1017
|
const MailboxesListEvents500 = InternalError;
|
|
989
1018
|
const MailboxesListEvents504 = GatewayTimeoutError;
|
|
990
|
-
const MailboxesListFoldersPathParams = /* @__PURE__ */ Schema
|
|
1019
|
+
const MailboxesListFoldersPathParams = /* @__PURE__ */ Schema.Struct({ id: MailboxId });
|
|
991
1020
|
const MailboxesListFolders200 = MailboxFolderCountList;
|
|
992
1021
|
const MailboxesListFolders401 = UnauthorizedError;
|
|
993
1022
|
const MailboxesListFolders403 = ForbiddenError;
|
|
@@ -995,10 +1024,10 @@ const MailboxesListFolders404 = ResourceNotFoundError;
|
|
|
995
1024
|
const MailboxesListFolders422 = ValidationError;
|
|
996
1025
|
const MailboxesListFolders500 = InternalError;
|
|
997
1026
|
const MailboxesListFolders504 = GatewayTimeoutError;
|
|
998
|
-
const MailboxesListGrantsPathParams = /* @__PURE__ */ Schema
|
|
999
|
-
const MailboxesListGrantsQuery = /* @__PURE__ */ Schema
|
|
1000
|
-
limit: Schema
|
|
1001
|
-
cursor: Schema
|
|
1027
|
+
const MailboxesListGrantsPathParams = /* @__PURE__ */ Schema.Struct({ id: MailboxId });
|
|
1028
|
+
const MailboxesListGrantsQuery = /* @__PURE__ */ Schema.Struct({
|
|
1029
|
+
limit: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
|
|
1030
|
+
cursor: Schema.optionalKey(Schema.Union([Cursor, Schema.Null]))
|
|
1002
1031
|
});
|
|
1003
1032
|
const MailboxesListGrants200 = MailboxGrantPage;
|
|
1004
1033
|
const MailboxesListGrants401 = UnauthorizedError;
|
|
@@ -1007,11 +1036,11 @@ const MailboxesListGrants404 = ResourceNotFoundError;
|
|
|
1007
1036
|
const MailboxesListGrants422 = ValidationError;
|
|
1008
1037
|
const MailboxesListGrants500 = InternalError;
|
|
1009
1038
|
const MailboxesListGrants504 = GatewayTimeoutError;
|
|
1010
|
-
const MailboxesCreateGrantPathParams = /* @__PURE__ */ Schema
|
|
1011
|
-
const MailboxesCreateGrantRequestJson = /* @__PURE__ */ Schema
|
|
1039
|
+
const MailboxesCreateGrantPathParams = /* @__PURE__ */ Schema.Struct({ id: MailboxId });
|
|
1040
|
+
const MailboxesCreateGrantRequestJson = /* @__PURE__ */ Schema.Struct({
|
|
1012
1041
|
userId: UserId,
|
|
1013
1042
|
role: MailboxGrantRole,
|
|
1014
|
-
sendMode: Schema
|
|
1043
|
+
sendMode: Schema.optionalKey(Schema.Union([MailboxSendMode, Schema.Null]))
|
|
1015
1044
|
});
|
|
1016
1045
|
const MailboxesCreateGrant201 = MailboxGrant;
|
|
1017
1046
|
const MailboxesCreateGrant401 = UnauthorizedError;
|
|
@@ -1021,7 +1050,7 @@ const MailboxesCreateGrant409 = ConflictError;
|
|
|
1021
1050
|
const MailboxesCreateGrant422 = ValidationError;
|
|
1022
1051
|
const MailboxesCreateGrant500 = InternalError;
|
|
1023
1052
|
const MailboxesCreateGrant504 = GatewayTimeoutError;
|
|
1024
|
-
const MailboxesRevokeGrantPathParams = /* @__PURE__ */ Schema
|
|
1053
|
+
const MailboxesRevokeGrantPathParams = /* @__PURE__ */ Schema.Struct({
|
|
1025
1054
|
id: MailboxId,
|
|
1026
1055
|
grantId: MailboxGrantId
|
|
1027
1056
|
});
|
|
@@ -1033,13 +1062,13 @@ const MailboxesRevokeGrant409 = ConflictError;
|
|
|
1033
1062
|
const MailboxesRevokeGrant422 = ValidationError;
|
|
1034
1063
|
const MailboxesRevokeGrant500 = InternalError;
|
|
1035
1064
|
const MailboxesRevokeGrant504 = GatewayTimeoutError;
|
|
1036
|
-
const MailboxesUpdateGrantPathParams = /* @__PURE__ */ Schema
|
|
1065
|
+
const MailboxesUpdateGrantPathParams = /* @__PURE__ */ Schema.Struct({
|
|
1037
1066
|
id: MailboxId,
|
|
1038
1067
|
grantId: MailboxGrantId
|
|
1039
1068
|
});
|
|
1040
|
-
const MailboxesUpdateGrantRequestJson = /* @__PURE__ */ Schema
|
|
1041
|
-
role: Schema
|
|
1042
|
-
sendMode: Schema
|
|
1069
|
+
const MailboxesUpdateGrantRequestJson = /* @__PURE__ */ Schema.Struct({
|
|
1070
|
+
role: Schema.optionalKey(Schema.Union([MailboxGrantRole, Schema.Null])),
|
|
1071
|
+
sendMode: Schema.optionalKey(Schema.Union([MailboxSendMode, Schema.Null]))
|
|
1043
1072
|
});
|
|
1044
1073
|
const MailboxesUpdateGrant200 = MailboxGrant;
|
|
1045
1074
|
const MailboxesUpdateGrant401 = UnauthorizedError;
|
|
@@ -1049,7 +1078,7 @@ const MailboxesUpdateGrant409 = ConflictError;
|
|
|
1049
1078
|
const MailboxesUpdateGrant422 = ValidationError;
|
|
1050
1079
|
const MailboxesUpdateGrant500 = InternalError;
|
|
1051
1080
|
const MailboxesUpdateGrant504 = GatewayTimeoutError;
|
|
1052
|
-
const MailboxesListLabelsPathParams = /* @__PURE__ */ Schema
|
|
1081
|
+
const MailboxesListLabelsPathParams = /* @__PURE__ */ Schema.Struct({ id: MailboxId });
|
|
1053
1082
|
const MailboxesListLabels200 = MailboxLabelList;
|
|
1054
1083
|
const MailboxesListLabels401 = UnauthorizedError;
|
|
1055
1084
|
const MailboxesListLabels403 = ForbiddenError;
|
|
@@ -1057,18 +1086,18 @@ const MailboxesListLabels404 = ResourceNotFoundError;
|
|
|
1057
1086
|
const MailboxesListLabels422 = ValidationError;
|
|
1058
1087
|
const MailboxesListLabels500 = InternalError;
|
|
1059
1088
|
const MailboxesListLabels504 = GatewayTimeoutError;
|
|
1060
|
-
const MailboxesCreateLabelPathParams = /* @__PURE__ */ Schema
|
|
1061
|
-
const MailboxesCreateLabelRequestJson = /* @__PURE__ */ Schema
|
|
1062
|
-
slug: Schema
|
|
1063
|
-
displayName: Schema
|
|
1064
|
-
color: Schema
|
|
1065
|
-
Schema
|
|
1066
|
-
Schema
|
|
1067
|
-
Schema
|
|
1068
|
-
Schema
|
|
1069
|
-
Schema
|
|
1070
|
-
Schema
|
|
1071
|
-
]), Schema
|
|
1089
|
+
const MailboxesCreateLabelPathParams = /* @__PURE__ */ Schema.Struct({ id: MailboxId });
|
|
1090
|
+
const MailboxesCreateLabelRequestJson = /* @__PURE__ */ Schema.Struct({
|
|
1091
|
+
slug: Schema.String,
|
|
1092
|
+
displayName: Schema.String,
|
|
1093
|
+
color: Schema.optionalKey(Schema.Union([Schema.Union([Schema.Union([
|
|
1094
|
+
Schema.Literal("billing"),
|
|
1095
|
+
Schema.Literal("domain"),
|
|
1096
|
+
Schema.Literal("agent"),
|
|
1097
|
+
Schema.Literal("routing"),
|
|
1098
|
+
Schema.Literal("important"),
|
|
1099
|
+
Schema.Literal("neutral")
|
|
1100
|
+
]), Schema.Null]), Schema.Null]))
|
|
1072
1101
|
});
|
|
1073
1102
|
const MailboxesCreateLabel201 = MailboxLabel;
|
|
1074
1103
|
const MailboxesCreateLabel401 = UnauthorizedError;
|
|
@@ -1078,7 +1107,7 @@ const MailboxesCreateLabel409 = ConflictError;
|
|
|
1078
1107
|
const MailboxesCreateLabel422 = ValidationError;
|
|
1079
1108
|
const MailboxesCreateLabel500 = InternalError;
|
|
1080
1109
|
const MailboxesCreateLabel504 = GatewayTimeoutError;
|
|
1081
|
-
const MailboxesDeleteLabelPathParams = /* @__PURE__ */ Schema
|
|
1110
|
+
const MailboxesDeleteLabelPathParams = /* @__PURE__ */ Schema.Struct({
|
|
1082
1111
|
id: MailboxId,
|
|
1083
1112
|
labelId: MailboxLabelId
|
|
1084
1113
|
});
|
|
@@ -1089,20 +1118,20 @@ const MailboxesDeleteLabel404 = ResourceNotFoundError;
|
|
|
1089
1118
|
const MailboxesDeleteLabel422 = ValidationError;
|
|
1090
1119
|
const MailboxesDeleteLabel500 = InternalError;
|
|
1091
1120
|
const MailboxesDeleteLabel504 = GatewayTimeoutError;
|
|
1092
|
-
const MailboxesUpdateLabelPathParams = /* @__PURE__ */ Schema
|
|
1121
|
+
const MailboxesUpdateLabelPathParams = /* @__PURE__ */ Schema.Struct({
|
|
1093
1122
|
id: MailboxId,
|
|
1094
1123
|
labelId: MailboxLabelId
|
|
1095
1124
|
});
|
|
1096
|
-
const MailboxesUpdateLabelRequestJson = /* @__PURE__ */ Schema
|
|
1097
|
-
displayName: Schema
|
|
1098
|
-
color: Schema
|
|
1099
|
-
Schema
|
|
1100
|
-
Schema
|
|
1101
|
-
Schema
|
|
1102
|
-
Schema
|
|
1103
|
-
Schema
|
|
1104
|
-
Schema
|
|
1105
|
-
]), Schema
|
|
1125
|
+
const MailboxesUpdateLabelRequestJson = /* @__PURE__ */ Schema.Struct({
|
|
1126
|
+
displayName: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
|
|
1127
|
+
color: Schema.optionalKey(Schema.Union([Schema.Union([Schema.Union([
|
|
1128
|
+
Schema.Literal("billing"),
|
|
1129
|
+
Schema.Literal("domain"),
|
|
1130
|
+
Schema.Literal("agent"),
|
|
1131
|
+
Schema.Literal("routing"),
|
|
1132
|
+
Schema.Literal("important"),
|
|
1133
|
+
Schema.Literal("neutral")
|
|
1134
|
+
]), Schema.Null]), Schema.Null]))
|
|
1106
1135
|
});
|
|
1107
1136
|
const MailboxesUpdateLabel200 = MailboxLabel;
|
|
1108
1137
|
const MailboxesUpdateLabel401 = UnauthorizedError;
|
|
@@ -1111,37 +1140,37 @@ const MailboxesUpdateLabel404 = ResourceNotFoundError;
|
|
|
1111
1140
|
const MailboxesUpdateLabel422 = ValidationError;
|
|
1112
1141
|
const MailboxesUpdateLabel500 = InternalError;
|
|
1113
1142
|
const MailboxesUpdateLabel504 = GatewayTimeoutError;
|
|
1114
|
-
const MailboxesSendMessagePathParams = /* @__PURE__ */ Schema
|
|
1115
|
-
const MailboxesSendMessageHeaders = /* @__PURE__ */ Schema
|
|
1116
|
-
const MailboxesSendMessageRequestJson = /* @__PURE__ */ Schema
|
|
1117
|
-
channel: Schema
|
|
1118
|
-
to: Schema
|
|
1119
|
-
cc: Schema
|
|
1120
|
-
bcc: Schema
|
|
1121
|
-
replyTo: Schema
|
|
1122
|
-
subject: Schema
|
|
1123
|
-
text: Schema
|
|
1124
|
-
html: Schema
|
|
1125
|
-
attachments: Schema
|
|
1143
|
+
const MailboxesSendMessagePathParams = /* @__PURE__ */ Schema.Struct({ id: MailboxId });
|
|
1144
|
+
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])) });
|
|
1145
|
+
const MailboxesSendMessageRequestJson = /* @__PURE__ */ Schema.Struct({
|
|
1146
|
+
channel: Schema.optionalKey(Schema.Union([Schema.Literal("email"), Schema.Null])),
|
|
1147
|
+
to: Schema.TupleWithRest(Schema.Tuple([Schema.String]), [Schema.String]),
|
|
1148
|
+
cc: Schema.optionalKey(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
|
|
1149
|
+
bcc: Schema.optionalKey(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
|
|
1150
|
+
replyTo: Schema.optionalKey(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
|
|
1151
|
+
subject: Schema.String.check(Schema.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })),
|
|
1152
|
+
text: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
|
|
1153
|
+
html: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
|
|
1154
|
+
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
1155
|
});
|
|
1127
1156
|
const MailboxesSendMessage200 = MailboxSendReceipt;
|
|
1128
1157
|
const MailboxesSendMessage202 = MailboxPendingSendReceipt;
|
|
1129
1158
|
const MailboxesSendMessage401 = UnauthorizedError;
|
|
1130
1159
|
const MailboxesSendMessage402 = PaymentRequiredError;
|
|
1131
|
-
const MailboxesSendMessage403 = /* @__PURE__ */ Schema
|
|
1160
|
+
const MailboxesSendMessage403 = /* @__PURE__ */ Schema.Union([
|
|
1132
1161
|
MailboxSendRefusedError,
|
|
1133
1162
|
OnboardingReviewRequiredError,
|
|
1134
1163
|
ForbiddenError
|
|
1135
1164
|
]);
|
|
1136
1165
|
const MailboxesSendMessage404 = ResourceNotFoundError;
|
|
1137
|
-
const MailboxesSendMessage409 = /* @__PURE__ */ Schema
|
|
1138
|
-
const MailboxesSendMessage422 = /* @__PURE__ */ Schema
|
|
1166
|
+
const MailboxesSendMessage409 = /* @__PURE__ */ Schema.Union([MailboxSendConflictError, ConflictError]);
|
|
1167
|
+
const MailboxesSendMessage422 = /* @__PURE__ */ Schema.Union([MailboxChannelUnsupportedError, ValidationError]);
|
|
1139
1168
|
const MailboxesSendMessage429 = RateLimitedError;
|
|
1140
1169
|
const MailboxesSendMessage500 = InternalError;
|
|
1141
1170
|
const MailboxesSendMessage502 = BillingProviderError;
|
|
1142
1171
|
const MailboxesSendMessage503 = SenderNotReadyError;
|
|
1143
1172
|
const MailboxesSendMessage504 = GatewayTimeoutError;
|
|
1144
|
-
const MailboxesGetMessagePathParams = /* @__PURE__ */ Schema
|
|
1173
|
+
const MailboxesGetMessagePathParams = /* @__PURE__ */ Schema.Struct({
|
|
1145
1174
|
id: MailboxId,
|
|
1146
1175
|
messageId: MessageId
|
|
1147
1176
|
});
|
|
@@ -1152,7 +1181,7 @@ const MailboxesGetMessage404 = ResourceNotFoundError;
|
|
|
1152
1181
|
const MailboxesGetMessage422 = ValidationError;
|
|
1153
1182
|
const MailboxesGetMessage500 = InternalError;
|
|
1154
1183
|
const MailboxesGetMessage504 = GatewayTimeoutError;
|
|
1155
|
-
const MailboxesGetMessageAttachmentPathParams = /* @__PURE__ */ Schema
|
|
1184
|
+
const MailboxesGetMessageAttachmentPathParams = /* @__PURE__ */ Schema.Struct({
|
|
1156
1185
|
id: MailboxId,
|
|
1157
1186
|
messageId: MessageId,
|
|
1158
1187
|
attachmentId: AttachmentId
|
|
@@ -1164,7 +1193,7 @@ const MailboxesGetMessageAttachment404 = ResourceNotFoundError;
|
|
|
1164
1193
|
const MailboxesGetMessageAttachment422 = ValidationError;
|
|
1165
1194
|
const MailboxesGetMessageAttachment500 = InternalError;
|
|
1166
1195
|
const MailboxesGetMessageAttachment504 = GatewayTimeoutError;
|
|
1167
|
-
const MailboxesCopyMessageAttachmentPathParams = /* @__PURE__ */ Schema
|
|
1196
|
+
const MailboxesCopyMessageAttachmentPathParams = /* @__PURE__ */ Schema.Struct({
|
|
1168
1197
|
id: MailboxId,
|
|
1169
1198
|
messageId: MessageId,
|
|
1170
1199
|
attachmentId: AttachmentId
|
|
@@ -1177,7 +1206,7 @@ const MailboxesCopyMessageAttachment409 = ConflictError;
|
|
|
1177
1206
|
const MailboxesCopyMessageAttachment422 = ValidationError;
|
|
1178
1207
|
const MailboxesCopyMessageAttachment500 = InternalError;
|
|
1179
1208
|
const MailboxesCopyMessageAttachment504 = GatewayTimeoutError;
|
|
1180
|
-
const MailboxesDiscardMessagePathParams = /* @__PURE__ */ Schema
|
|
1209
|
+
const MailboxesDiscardMessagePathParams = /* @__PURE__ */ Schema.Struct({
|
|
1181
1210
|
id: MailboxId,
|
|
1182
1211
|
messageId: MessageId
|
|
1183
1212
|
});
|
|
@@ -1190,37 +1219,37 @@ const MailboxesDiscardMessage422 = ValidationError;
|
|
|
1190
1219
|
const MailboxesDiscardMessage500 = InternalError;
|
|
1191
1220
|
const MailboxesDiscardMessage502 = BillingProviderError;
|
|
1192
1221
|
const MailboxesDiscardMessage504 = GatewayTimeoutError;
|
|
1193
|
-
const MailboxesForwardPathParams = /* @__PURE__ */ Schema
|
|
1222
|
+
const MailboxesForwardPathParams = /* @__PURE__ */ Schema.Struct({
|
|
1194
1223
|
id: MailboxId,
|
|
1195
1224
|
messageId: MessageId
|
|
1196
1225
|
});
|
|
1197
|
-
const MailboxesForwardHeaders = /* @__PURE__ */ Schema
|
|
1198
|
-
const MailboxesForwardRequestJson = /* @__PURE__ */ Schema
|
|
1199
|
-
to: Schema
|
|
1200
|
-
cc: Schema
|
|
1201
|
-
bcc: Schema
|
|
1202
|
-
text: Schema
|
|
1203
|
-
html: Schema
|
|
1204
|
-
attachments: Schema
|
|
1226
|
+
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])) });
|
|
1227
|
+
const MailboxesForwardRequestJson = /* @__PURE__ */ Schema.Struct({
|
|
1228
|
+
to: Schema.TupleWithRest(Schema.Tuple([Schema.String]), [Schema.String]),
|
|
1229
|
+
cc: Schema.optionalKey(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
|
|
1230
|
+
bcc: Schema.optionalKey(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
|
|
1231
|
+
text: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
|
|
1232
|
+
html: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
|
|
1233
|
+
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
1234
|
});
|
|
1206
1235
|
const MailboxesForward200 = MailboxSendReceipt;
|
|
1207
1236
|
const MailboxesForward202 = MailboxPendingSendReceipt;
|
|
1208
1237
|
const MailboxesForward401 = UnauthorizedError;
|
|
1209
1238
|
const MailboxesForward402 = PaymentRequiredError;
|
|
1210
|
-
const MailboxesForward403 = /* @__PURE__ */ Schema
|
|
1239
|
+
const MailboxesForward403 = /* @__PURE__ */ Schema.Union([
|
|
1211
1240
|
MailboxSendRefusedError,
|
|
1212
1241
|
OnboardingReviewRequiredError,
|
|
1213
1242
|
ForbiddenError
|
|
1214
1243
|
]);
|
|
1215
1244
|
const MailboxesForward404 = ResourceNotFoundError;
|
|
1216
|
-
const MailboxesForward409 = /* @__PURE__ */ Schema
|
|
1217
|
-
const MailboxesForward422 = /* @__PURE__ */ Schema
|
|
1245
|
+
const MailboxesForward409 = /* @__PURE__ */ Schema.Union([MailboxSendConflictError, ConflictError]);
|
|
1246
|
+
const MailboxesForward422 = /* @__PURE__ */ Schema.Union([MailboxChannelUnsupportedError, ValidationError]);
|
|
1218
1247
|
const MailboxesForward429 = RateLimitedError;
|
|
1219
1248
|
const MailboxesForward500 = InternalError;
|
|
1220
1249
|
const MailboxesForward502 = BillingProviderError;
|
|
1221
1250
|
const MailboxesForward503 = SenderNotReadyError;
|
|
1222
1251
|
const MailboxesForward504 = GatewayTimeoutError;
|
|
1223
|
-
const MailboxesGetMessageRawPathParams = /* @__PURE__ */ Schema
|
|
1252
|
+
const MailboxesGetMessageRawPathParams = /* @__PURE__ */ Schema.Struct({
|
|
1224
1253
|
id: MailboxId,
|
|
1225
1254
|
messageId: MessageId
|
|
1226
1255
|
});
|
|
@@ -1231,7 +1260,7 @@ const MailboxesGetMessageRaw404 = ResourceNotFoundError;
|
|
|
1231
1260
|
const MailboxesGetMessageRaw422 = ValidationError;
|
|
1232
1261
|
const MailboxesGetMessageRaw500 = InternalError;
|
|
1233
1262
|
const MailboxesGetMessageRaw504 = GatewayTimeoutError;
|
|
1234
|
-
const MailboxesReleaseMessagePathParams = /* @__PURE__ */ Schema
|
|
1263
|
+
const MailboxesReleaseMessagePathParams = /* @__PURE__ */ Schema.Struct({
|
|
1235
1264
|
id: MailboxId,
|
|
1236
1265
|
messageId: MessageId
|
|
1237
1266
|
});
|
|
@@ -1243,67 +1272,67 @@ const MailboxesReleaseMessage409 = ConflictError;
|
|
|
1243
1272
|
const MailboxesReleaseMessage422 = ValidationError;
|
|
1244
1273
|
const MailboxesReleaseMessage500 = InternalError;
|
|
1245
1274
|
const MailboxesReleaseMessage504 = GatewayTimeoutError;
|
|
1246
|
-
const MailboxesReplyPathParams = /* @__PURE__ */ Schema
|
|
1275
|
+
const MailboxesReplyPathParams = /* @__PURE__ */ Schema.Struct({
|
|
1247
1276
|
id: MailboxId,
|
|
1248
1277
|
messageId: MessageId
|
|
1249
1278
|
});
|
|
1250
|
-
const MailboxesReplyHeaders = /* @__PURE__ */ Schema
|
|
1251
|
-
const MailboxesReplyRequestJson = /* @__PURE__ */ Schema
|
|
1252
|
-
channel: Schema
|
|
1253
|
-
cc: Schema
|
|
1254
|
-
bcc: Schema
|
|
1255
|
-
text: Schema
|
|
1256
|
-
html: Schema
|
|
1257
|
-
attachments: Schema
|
|
1279
|
+
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])) });
|
|
1280
|
+
const MailboxesReplyRequestJson = /* @__PURE__ */ Schema.Struct({
|
|
1281
|
+
channel: Schema.optionalKey(Schema.Union([Schema.Literal("email"), Schema.Null])),
|
|
1282
|
+
cc: Schema.optionalKey(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
|
|
1283
|
+
bcc: Schema.optionalKey(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
|
|
1284
|
+
text: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
|
|
1285
|
+
html: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
|
|
1286
|
+
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
1287
|
});
|
|
1259
1288
|
const MailboxesReply200 = MailboxSendReceipt;
|
|
1260
1289
|
const MailboxesReply202 = MailboxPendingSendReceipt;
|
|
1261
1290
|
const MailboxesReply401 = UnauthorizedError;
|
|
1262
1291
|
const MailboxesReply402 = PaymentRequiredError;
|
|
1263
|
-
const MailboxesReply403 = /* @__PURE__ */ Schema
|
|
1292
|
+
const MailboxesReply403 = /* @__PURE__ */ Schema.Union([
|
|
1264
1293
|
MailboxSendRefusedError,
|
|
1265
1294
|
OnboardingReviewRequiredError,
|
|
1266
1295
|
ForbiddenError
|
|
1267
1296
|
]);
|
|
1268
1297
|
const MailboxesReply404 = ResourceNotFoundError;
|
|
1269
|
-
const MailboxesReply409 = /* @__PURE__ */ Schema
|
|
1270
|
-
const MailboxesReply422 = /* @__PURE__ */ Schema
|
|
1298
|
+
const MailboxesReply409 = /* @__PURE__ */ Schema.Union([MailboxSendConflictError, ConflictError]);
|
|
1299
|
+
const MailboxesReply422 = /* @__PURE__ */ Schema.Union([MailboxChannelUnsupportedError, ValidationError]);
|
|
1271
1300
|
const MailboxesReply429 = RateLimitedError;
|
|
1272
1301
|
const MailboxesReply500 = InternalError;
|
|
1273
1302
|
const MailboxesReply502 = BillingProviderError;
|
|
1274
1303
|
const MailboxesReply503 = SenderNotReadyError;
|
|
1275
1304
|
const MailboxesReply504 = GatewayTimeoutError;
|
|
1276
|
-
const MailboxesReplyAllPathParams = /* @__PURE__ */ Schema
|
|
1305
|
+
const MailboxesReplyAllPathParams = /* @__PURE__ */ Schema.Struct({
|
|
1277
1306
|
id: MailboxId,
|
|
1278
1307
|
messageId: MessageId
|
|
1279
1308
|
});
|
|
1280
|
-
const MailboxesReplyAllHeaders = /* @__PURE__ */ Schema
|
|
1281
|
-
const MailboxesReplyAllRequestJson = /* @__PURE__ */ Schema
|
|
1282
|
-
channel: Schema
|
|
1283
|
-
cc: Schema
|
|
1284
|
-
bcc: Schema
|
|
1285
|
-
text: Schema
|
|
1286
|
-
html: Schema
|
|
1287
|
-
attachments: Schema
|
|
1309
|
+
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])) });
|
|
1310
|
+
const MailboxesReplyAllRequestJson = /* @__PURE__ */ Schema.Struct({
|
|
1311
|
+
channel: Schema.optionalKey(Schema.Union([Schema.Literal("email"), Schema.Null])),
|
|
1312
|
+
cc: Schema.optionalKey(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
|
|
1313
|
+
bcc: Schema.optionalKey(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
|
|
1314
|
+
text: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
|
|
1315
|
+
html: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
|
|
1316
|
+
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
1317
|
});
|
|
1289
1318
|
const MailboxesReplyAll200 = MailboxSendReceipt;
|
|
1290
1319
|
const MailboxesReplyAll202 = MailboxPendingSendReceipt;
|
|
1291
1320
|
const MailboxesReplyAll401 = UnauthorizedError;
|
|
1292
1321
|
const MailboxesReplyAll402 = PaymentRequiredError;
|
|
1293
|
-
const MailboxesReplyAll403 = /* @__PURE__ */ Schema
|
|
1322
|
+
const MailboxesReplyAll403 = /* @__PURE__ */ Schema.Union([
|
|
1294
1323
|
MailboxSendRefusedError,
|
|
1295
1324
|
OnboardingReviewRequiredError,
|
|
1296
1325
|
ForbiddenError
|
|
1297
1326
|
]);
|
|
1298
1327
|
const MailboxesReplyAll404 = ResourceNotFoundError;
|
|
1299
|
-
const MailboxesReplyAll409 = /* @__PURE__ */ Schema
|
|
1300
|
-
const MailboxesReplyAll422 = /* @__PURE__ */ Schema
|
|
1328
|
+
const MailboxesReplyAll409 = /* @__PURE__ */ Schema.Union([MailboxSendConflictError, ConflictError]);
|
|
1329
|
+
const MailboxesReplyAll422 = /* @__PURE__ */ Schema.Union([MailboxChannelUnsupportedError, ValidationError]);
|
|
1301
1330
|
const MailboxesReplyAll429 = RateLimitedError;
|
|
1302
1331
|
const MailboxesReplyAll500 = InternalError;
|
|
1303
1332
|
const MailboxesReplyAll502 = BillingProviderError;
|
|
1304
1333
|
const MailboxesReplyAll503 = SenderNotReadyError;
|
|
1305
1334
|
const MailboxesReplyAll504 = GatewayTimeoutError;
|
|
1306
|
-
const MailboxesPausePathParams = /* @__PURE__ */ Schema
|
|
1335
|
+
const MailboxesPausePathParams = /* @__PURE__ */ Schema.Struct({ id: MailboxId });
|
|
1307
1336
|
const MailboxesPause200 = Mailbox;
|
|
1308
1337
|
const MailboxesPause401 = UnauthorizedError;
|
|
1309
1338
|
const MailboxesPause403 = ForbiddenError;
|
|
@@ -1311,7 +1340,7 @@ const MailboxesPause404 = ResourceNotFoundError;
|
|
|
1311
1340
|
const MailboxesPause422 = ValidationError;
|
|
1312
1341
|
const MailboxesPause500 = InternalError;
|
|
1313
1342
|
const MailboxesPause504 = GatewayTimeoutError;
|
|
1314
|
-
const MailboxesListPoliciesPathParams = /* @__PURE__ */ Schema
|
|
1343
|
+
const MailboxesListPoliciesPathParams = /* @__PURE__ */ Schema.Struct({ id: MailboxId });
|
|
1315
1344
|
const MailboxesListPolicies200 = MailboxPolicyList;
|
|
1316
1345
|
const MailboxesListPolicies401 = UnauthorizedError;
|
|
1317
1346
|
const MailboxesListPolicies403 = ForbiddenError;
|
|
@@ -1319,12 +1348,12 @@ const MailboxesListPolicies404 = ResourceNotFoundError;
|
|
|
1319
1348
|
const MailboxesListPolicies422 = ValidationError;
|
|
1320
1349
|
const MailboxesListPolicies500 = InternalError;
|
|
1321
1350
|
const MailboxesListPolicies504 = GatewayTimeoutError;
|
|
1322
|
-
const MailboxesCreatePolicyPathParams = /* @__PURE__ */ Schema
|
|
1323
|
-
const MailboxesCreatePolicyRequestJson = /* @__PURE__ */ Schema
|
|
1324
|
-
name: Schema
|
|
1351
|
+
const MailboxesCreatePolicyPathParams = /* @__PURE__ */ Schema.Struct({ id: MailboxId });
|
|
1352
|
+
const MailboxesCreatePolicyRequestJson = /* @__PURE__ */ Schema.Struct({
|
|
1353
|
+
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
1354
|
outcome: MailboxPolicyOutcomeKind,
|
|
1326
|
-
reason: Schema
|
|
1327
|
-
enabled: Schema
|
|
1355
|
+
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])),
|
|
1356
|
+
enabled: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null]))
|
|
1328
1357
|
});
|
|
1329
1358
|
const MailboxesCreatePolicy201 = MailboxPolicy;
|
|
1330
1359
|
const MailboxesCreatePolicy401 = UnauthorizedError;
|
|
@@ -1334,7 +1363,7 @@ const MailboxesCreatePolicy409 = ConflictError;
|
|
|
1334
1363
|
const MailboxesCreatePolicy422 = ValidationError;
|
|
1335
1364
|
const MailboxesCreatePolicy500 = InternalError;
|
|
1336
1365
|
const MailboxesCreatePolicy504 = GatewayTimeoutError;
|
|
1337
|
-
const MailboxesGetPolicyPathParams = /* @__PURE__ */ Schema
|
|
1366
|
+
const MailboxesGetPolicyPathParams = /* @__PURE__ */ Schema.Struct({
|
|
1338
1367
|
id: MailboxId,
|
|
1339
1368
|
policyId: MailboxPolicyId
|
|
1340
1369
|
});
|
|
@@ -1345,7 +1374,7 @@ const MailboxesGetPolicy404 = ResourceNotFoundError;
|
|
|
1345
1374
|
const MailboxesGetPolicy422 = ValidationError;
|
|
1346
1375
|
const MailboxesGetPolicy500 = InternalError;
|
|
1347
1376
|
const MailboxesGetPolicy504 = GatewayTimeoutError;
|
|
1348
|
-
const MailboxesDeletePolicyPathParams = /* @__PURE__ */ Schema
|
|
1377
|
+
const MailboxesDeletePolicyPathParams = /* @__PURE__ */ Schema.Struct({
|
|
1349
1378
|
id: MailboxId,
|
|
1350
1379
|
policyId: MailboxPolicyId
|
|
1351
1380
|
});
|
|
@@ -1356,15 +1385,15 @@ const MailboxesDeletePolicy404 = ResourceNotFoundError;
|
|
|
1356
1385
|
const MailboxesDeletePolicy422 = ValidationError;
|
|
1357
1386
|
const MailboxesDeletePolicy500 = InternalError;
|
|
1358
1387
|
const MailboxesDeletePolicy504 = GatewayTimeoutError;
|
|
1359
|
-
const MailboxesUpdatePolicyPathParams = /* @__PURE__ */ Schema
|
|
1388
|
+
const MailboxesUpdatePolicyPathParams = /* @__PURE__ */ Schema.Struct({
|
|
1360
1389
|
id: MailboxId,
|
|
1361
1390
|
policyId: MailboxPolicyId
|
|
1362
1391
|
});
|
|
1363
|
-
const MailboxesUpdatePolicyRequestJson = /* @__PURE__ */ Schema
|
|
1364
|
-
name: Schema
|
|
1365
|
-
outcome: Schema
|
|
1366
|
-
reason: Schema
|
|
1367
|
-
enabled: Schema
|
|
1392
|
+
const MailboxesUpdatePolicyRequestJson = /* @__PURE__ */ Schema.Struct({
|
|
1393
|
+
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])),
|
|
1394
|
+
outcome: Schema.optionalKey(Schema.Union([MailboxPolicyOutcomeKind, Schema.Null])),
|
|
1395
|
+
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])),
|
|
1396
|
+
enabled: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null]))
|
|
1368
1397
|
});
|
|
1369
1398
|
const MailboxesUpdatePolicy200 = MailboxPolicy;
|
|
1370
1399
|
const MailboxesUpdatePolicy401 = UnauthorizedError;
|
|
@@ -1373,12 +1402,12 @@ const MailboxesUpdatePolicy404 = ResourceNotFoundError;
|
|
|
1373
1402
|
const MailboxesUpdatePolicy422 = ValidationError;
|
|
1374
1403
|
const MailboxesUpdatePolicy500 = InternalError;
|
|
1375
1404
|
const MailboxesUpdatePolicy504 = GatewayTimeoutError;
|
|
1376
|
-
const MailboxesListQuarantinePathParams = /* @__PURE__ */ Schema
|
|
1377
|
-
const MailboxesListQuarantineQuery = /* @__PURE__ */ Schema
|
|
1378
|
-
limit: Schema
|
|
1379
|
-
cursor: Schema
|
|
1380
|
-
after: Schema
|
|
1381
|
-
before: Schema
|
|
1405
|
+
const MailboxesListQuarantinePathParams = /* @__PURE__ */ Schema.Struct({ id: MailboxId });
|
|
1406
|
+
const MailboxesListQuarantineQuery = /* @__PURE__ */ Schema.Struct({
|
|
1407
|
+
limit: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
|
|
1408
|
+
cursor: Schema.optionalKey(Schema.Union([Cursor, Schema.Null])),
|
|
1409
|
+
after: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
|
|
1410
|
+
before: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null]))
|
|
1382
1411
|
});
|
|
1383
1412
|
const MailboxesListQuarantine200 = MailboxQuarantinePage;
|
|
1384
1413
|
const MailboxesListQuarantine401 = UnauthorizedError;
|
|
@@ -1387,7 +1416,7 @@ const MailboxesListQuarantine404 = ResourceNotFoundError;
|
|
|
1387
1416
|
const MailboxesListQuarantine422 = ValidationError;
|
|
1388
1417
|
const MailboxesListQuarantine500 = InternalError;
|
|
1389
1418
|
const MailboxesListQuarantine504 = GatewayTimeoutError;
|
|
1390
|
-
const MailboxesResumePathParams = /* @__PURE__ */ Schema
|
|
1419
|
+
const MailboxesResumePathParams = /* @__PURE__ */ Schema.Struct({ id: MailboxId });
|
|
1391
1420
|
const MailboxesResume200 = Mailbox;
|
|
1392
1421
|
const MailboxesResume401 = UnauthorizedError;
|
|
1393
1422
|
const MailboxesResume403 = ForbiddenError;
|
|
@@ -1395,18 +1424,18 @@ const MailboxesResume404 = ResourceNotFoundError;
|
|
|
1395
1424
|
const MailboxesResume422 = ValidationError;
|
|
1396
1425
|
const MailboxesResume500 = InternalError;
|
|
1397
1426
|
const MailboxesResume504 = GatewayTimeoutError;
|
|
1398
|
-
const MailboxesListThreadsPathParams = /* @__PURE__ */ Schema
|
|
1399
|
-
const MailboxesListThreadsQuery = /* @__PURE__ */ Schema
|
|
1400
|
-
limit: Schema
|
|
1401
|
-
cursor: Schema
|
|
1402
|
-
after: Schema
|
|
1403
|
-
before: Schema
|
|
1404
|
-
q: Schema
|
|
1405
|
-
folder: Schema
|
|
1406
|
-
label: Schema
|
|
1407
|
-
unread: Schema
|
|
1408
|
-
starred: Schema
|
|
1409
|
-
snoozed: Schema
|
|
1427
|
+
const MailboxesListThreadsPathParams = /* @__PURE__ */ Schema.Struct({ id: MailboxId });
|
|
1428
|
+
const MailboxesListThreadsQuery = /* @__PURE__ */ Schema.Struct({
|
|
1429
|
+
limit: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
|
|
1430
|
+
cursor: Schema.optionalKey(Schema.Union([Cursor, Schema.Null])),
|
|
1431
|
+
after: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
|
|
1432
|
+
before: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
|
|
1433
|
+
q: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
|
|
1434
|
+
folder: Schema.optionalKey(Schema.Union([MailboxThreadFolder, Schema.Null])),
|
|
1435
|
+
label: Schema.optionalKey(Schema.Union([MailboxLabelId, Schema.Null])),
|
|
1436
|
+
unread: Schema.optionalKey(Schema.Union([Schema.Union([Schema.Literal("true"), Schema.Literal("false")]), Schema.Null])),
|
|
1437
|
+
starred: Schema.optionalKey(Schema.Union([Schema.Union([Schema.Literal("true"), Schema.Literal("false")]), Schema.Null])),
|
|
1438
|
+
snoozed: Schema.optionalKey(Schema.Union([Schema.Union([Schema.Literal("true"), Schema.Literal("false")]), Schema.Null]))
|
|
1410
1439
|
});
|
|
1411
1440
|
const MailboxesListThreads200 = MailboxThreadPage;
|
|
1412
1441
|
const MailboxesListThreads401 = UnauthorizedError;
|
|
@@ -1415,7 +1444,7 @@ const MailboxesListThreads404 = ResourceNotFoundError;
|
|
|
1415
1444
|
const MailboxesListThreads422 = ValidationError;
|
|
1416
1445
|
const MailboxesListThreads500 = InternalError;
|
|
1417
1446
|
const MailboxesListThreads504 = GatewayTimeoutError;
|
|
1418
|
-
const MailboxesGetThreadPathParams = /* @__PURE__ */ Schema
|
|
1447
|
+
const MailboxesGetThreadPathParams = /* @__PURE__ */ Schema.Struct({
|
|
1419
1448
|
id: MailboxId,
|
|
1420
1449
|
threadId: MailboxThreadId
|
|
1421
1450
|
});
|
|
@@ -1426,16 +1455,16 @@ const MailboxesGetThread404 = ResourceNotFoundError;
|
|
|
1426
1455
|
const MailboxesGetThread422 = ValidationError;
|
|
1427
1456
|
const MailboxesGetThread500 = InternalError;
|
|
1428
1457
|
const MailboxesGetThread504 = GatewayTimeoutError;
|
|
1429
|
-
const MailboxesUpdateThreadPathParams = /* @__PURE__ */ Schema
|
|
1458
|
+
const MailboxesUpdateThreadPathParams = /* @__PURE__ */ Schema.Struct({
|
|
1430
1459
|
id: MailboxId,
|
|
1431
1460
|
threadId: MailboxThreadId
|
|
1432
1461
|
});
|
|
1433
|
-
const MailboxesUpdateThreadRequestJson = /* @__PURE__ */ Schema
|
|
1434
|
-
folder: Schema
|
|
1435
|
-
priority: Schema
|
|
1436
|
-
read: Schema
|
|
1437
|
-
starred: Schema
|
|
1438
|
-
snoozedUntil: Schema
|
|
1462
|
+
const MailboxesUpdateThreadRequestJson = /* @__PURE__ */ Schema.Struct({
|
|
1463
|
+
folder: Schema.optionalKey(Schema.Union([MailboxThreadFolder, Schema.Null])),
|
|
1464
|
+
priority: Schema.optionalKey(Schema.Union([MailboxThreadPriority, Schema.Null])),
|
|
1465
|
+
read: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
1466
|
+
starred: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
1467
|
+
snoozedUntil: Schema.optionalKey(Schema.Union([Schema.Union([Schema.String, Schema.Null]), Schema.Null]))
|
|
1439
1468
|
});
|
|
1440
1469
|
const MailboxesUpdateThread200 = MailboxThreadState;
|
|
1441
1470
|
const MailboxesUpdateThread401 = UnauthorizedError;
|
|
@@ -1444,13 +1473,13 @@ const MailboxesUpdateThread404 = ResourceNotFoundError;
|
|
|
1444
1473
|
const MailboxesUpdateThread422 = ValidationError;
|
|
1445
1474
|
const MailboxesUpdateThread500 = InternalError;
|
|
1446
1475
|
const MailboxesUpdateThread504 = GatewayTimeoutError;
|
|
1447
|
-
const MailboxesGetThreadContentPathParams = /* @__PURE__ */ Schema
|
|
1476
|
+
const MailboxesGetThreadContentPathParams = /* @__PURE__ */ Schema.Struct({
|
|
1448
1477
|
id: MailboxId,
|
|
1449
1478
|
threadId: MailboxThreadId
|
|
1450
1479
|
});
|
|
1451
|
-
const MailboxesGetThreadContentQuery = /* @__PURE__ */ Schema
|
|
1452
|
-
limit: Schema
|
|
1453
|
-
cursor: Schema
|
|
1480
|
+
const MailboxesGetThreadContentQuery = /* @__PURE__ */ Schema.Struct({
|
|
1481
|
+
limit: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
|
|
1482
|
+
cursor: Schema.optionalKey(Schema.Union([Cursor, Schema.Null]))
|
|
1454
1483
|
});
|
|
1455
1484
|
const MailboxesGetThreadContent200 = MailboxThreadContentPage;
|
|
1456
1485
|
const MailboxesGetThreadContent401 = UnauthorizedError;
|
|
@@ -1459,11 +1488,11 @@ const MailboxesGetThreadContent404 = ResourceNotFoundError;
|
|
|
1459
1488
|
const MailboxesGetThreadContent422 = ValidationError;
|
|
1460
1489
|
const MailboxesGetThreadContent500 = InternalError;
|
|
1461
1490
|
const MailboxesGetThreadContent504 = GatewayTimeoutError;
|
|
1462
|
-
const MailboxesAddThreadLabelsPathParams = /* @__PURE__ */ Schema
|
|
1491
|
+
const MailboxesAddThreadLabelsPathParams = /* @__PURE__ */ Schema.Struct({
|
|
1463
1492
|
id: MailboxId,
|
|
1464
1493
|
threadId: MailboxThreadId
|
|
1465
1494
|
});
|
|
1466
|
-
const MailboxesAddThreadLabelsRequestJson = /* @__PURE__ */ Schema
|
|
1495
|
+
const MailboxesAddThreadLabelsRequestJson = /* @__PURE__ */ Schema.Struct({ labels: Schema.TupleWithRest(Schema.Tuple([MailboxLabelId]), [MailboxLabelId]) });
|
|
1467
1496
|
const MailboxesAddThreadLabels200 = MailboxThreadState;
|
|
1468
1497
|
const MailboxesAddThreadLabels401 = UnauthorizedError;
|
|
1469
1498
|
const MailboxesAddThreadLabels403 = ForbiddenError;
|
|
@@ -1471,11 +1500,11 @@ const MailboxesAddThreadLabels404 = ResourceNotFoundError;
|
|
|
1471
1500
|
const MailboxesAddThreadLabels422 = ValidationError;
|
|
1472
1501
|
const MailboxesAddThreadLabels500 = InternalError;
|
|
1473
1502
|
const MailboxesAddThreadLabels504 = GatewayTimeoutError;
|
|
1474
|
-
const MailboxesRemoveThreadLabelsPathParams = /* @__PURE__ */ Schema
|
|
1503
|
+
const MailboxesRemoveThreadLabelsPathParams = /* @__PURE__ */ Schema.Struct({
|
|
1475
1504
|
id: MailboxId,
|
|
1476
1505
|
threadId: MailboxThreadId
|
|
1477
1506
|
});
|
|
1478
|
-
const MailboxesRemoveThreadLabelsRequestJson = /* @__PURE__ */ Schema
|
|
1507
|
+
const MailboxesRemoveThreadLabelsRequestJson = /* @__PURE__ */ Schema.Struct({ labels: Schema.TupleWithRest(Schema.Tuple([MailboxLabelId]), [MailboxLabelId]) });
|
|
1479
1508
|
const MailboxesRemoveThreadLabels200 = MailboxThreadState;
|
|
1480
1509
|
const MailboxesRemoveThreadLabels401 = UnauthorizedError;
|
|
1481
1510
|
const MailboxesRemoveThreadLabels403 = ForbiddenError;
|
|
@@ -1483,13 +1512,13 @@ const MailboxesRemoveThreadLabels404 = ResourceNotFoundError;
|
|
|
1483
1512
|
const MailboxesRemoveThreadLabels422 = ValidationError;
|
|
1484
1513
|
const MailboxesRemoveThreadLabels500 = InternalError;
|
|
1485
1514
|
const MailboxesRemoveThreadLabels504 = GatewayTimeoutError;
|
|
1486
|
-
const MailboxesListThreadMessagesPathParams = /* @__PURE__ */ Schema
|
|
1515
|
+
const MailboxesListThreadMessagesPathParams = /* @__PURE__ */ Schema.Struct({
|
|
1487
1516
|
id: MailboxId,
|
|
1488
1517
|
threadId: MailboxThreadId
|
|
1489
1518
|
});
|
|
1490
|
-
const MailboxesListThreadMessagesQuery = /* @__PURE__ */ Schema
|
|
1491
|
-
limit: Schema
|
|
1492
|
-
cursor: Schema
|
|
1519
|
+
const MailboxesListThreadMessagesQuery = /* @__PURE__ */ Schema.Struct({
|
|
1520
|
+
limit: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
|
|
1521
|
+
cursor: Schema.optionalKey(Schema.Union([Cursor, Schema.Null]))
|
|
1493
1522
|
});
|
|
1494
1523
|
const MailboxesListThreadMessages200 = MailboxMessagePage;
|
|
1495
1524
|
const MailboxesListThreadMessages401 = UnauthorizedError;
|
|
@@ -1498,13 +1527,13 @@ const MailboxesListThreadMessages404 = ResourceNotFoundError;
|
|
|
1498
1527
|
const MailboxesListThreadMessages422 = ValidationError;
|
|
1499
1528
|
const MailboxesListThreadMessages500 = InternalError;
|
|
1500
1529
|
const MailboxesListThreadMessages504 = GatewayTimeoutError;
|
|
1501
|
-
const MailboxesListThreadNotesPathParams = /* @__PURE__ */ Schema
|
|
1530
|
+
const MailboxesListThreadNotesPathParams = /* @__PURE__ */ Schema.Struct({
|
|
1502
1531
|
id: MailboxId,
|
|
1503
1532
|
threadId: MailboxThreadId
|
|
1504
1533
|
});
|
|
1505
|
-
const MailboxesListThreadNotesQuery = /* @__PURE__ */ Schema
|
|
1506
|
-
limit: Schema
|
|
1507
|
-
cursor: Schema
|
|
1534
|
+
const MailboxesListThreadNotesQuery = /* @__PURE__ */ Schema.Struct({
|
|
1535
|
+
limit: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
|
|
1536
|
+
cursor: Schema.optionalKey(Schema.Union([Cursor, Schema.Null]))
|
|
1508
1537
|
});
|
|
1509
1538
|
const MailboxesListThreadNotes200 = MailboxNotePage;
|
|
1510
1539
|
const MailboxesListThreadNotes401 = UnauthorizedError;
|
|
@@ -1513,14 +1542,14 @@ const MailboxesListThreadNotes404 = ResourceNotFoundError;
|
|
|
1513
1542
|
const MailboxesListThreadNotes422 = ValidationError;
|
|
1514
1543
|
const MailboxesListThreadNotes500 = InternalError;
|
|
1515
1544
|
const MailboxesListThreadNotes504 = GatewayTimeoutError;
|
|
1516
|
-
const MailboxesCreateNotePathParams = /* @__PURE__ */ Schema
|
|
1545
|
+
const MailboxesCreateNotePathParams = /* @__PURE__ */ Schema.Struct({
|
|
1517
1546
|
id: MailboxId,
|
|
1518
1547
|
threadId: MailboxThreadId
|
|
1519
1548
|
});
|
|
1520
|
-
const MailboxesCreateNoteRequestJson = /* @__PURE__ */ Schema
|
|
1521
|
-
body: Schema
|
|
1522
|
-
color: Schema
|
|
1523
|
-
pinned: Schema
|
|
1549
|
+
const MailboxesCreateNoteRequestJson = /* @__PURE__ */ Schema.Struct({
|
|
1550
|
+
body: Schema.String,
|
|
1551
|
+
color: Schema.optionalKey(Schema.Union([Schema.Union([Schema.String, Schema.Null]), Schema.Null])),
|
|
1552
|
+
pinned: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null]))
|
|
1524
1553
|
});
|
|
1525
1554
|
const MailboxesCreateNote201 = MailboxNote;
|
|
1526
1555
|
const MailboxesCreateNote401 = UnauthorizedError;
|
|
@@ -1529,7 +1558,7 @@ const MailboxesCreateNote404 = ResourceNotFoundError;
|
|
|
1529
1558
|
const MailboxesCreateNote422 = ValidationError;
|
|
1530
1559
|
const MailboxesCreateNote500 = InternalError;
|
|
1531
1560
|
const MailboxesCreateNote504 = GatewayTimeoutError;
|
|
1532
|
-
const MailboxesDeleteNotePathParams = /* @__PURE__ */ Schema
|
|
1561
|
+
const MailboxesDeleteNotePathParams = /* @__PURE__ */ Schema.Struct({
|
|
1533
1562
|
id: MailboxId,
|
|
1534
1563
|
threadId: MailboxThreadId,
|
|
1535
1564
|
noteId: MailboxNoteId
|
|
@@ -1541,15 +1570,15 @@ const MailboxesDeleteNote404 = ResourceNotFoundError;
|
|
|
1541
1570
|
const MailboxesDeleteNote422 = ValidationError;
|
|
1542
1571
|
const MailboxesDeleteNote500 = InternalError;
|
|
1543
1572
|
const MailboxesDeleteNote504 = GatewayTimeoutError;
|
|
1544
|
-
const MailboxesUpdateNotePathParams = /* @__PURE__ */ Schema
|
|
1573
|
+
const MailboxesUpdateNotePathParams = /* @__PURE__ */ Schema.Struct({
|
|
1545
1574
|
id: MailboxId,
|
|
1546
1575
|
threadId: MailboxThreadId,
|
|
1547
1576
|
noteId: MailboxNoteId
|
|
1548
1577
|
});
|
|
1549
|
-
const MailboxesUpdateNoteRequestJson = /* @__PURE__ */ Schema
|
|
1550
|
-
body: Schema
|
|
1551
|
-
color: Schema
|
|
1552
|
-
pinned: Schema
|
|
1578
|
+
const MailboxesUpdateNoteRequestJson = /* @__PURE__ */ Schema.Struct({
|
|
1579
|
+
body: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
|
|
1580
|
+
color: Schema.optionalKey(Schema.Union([Schema.Union([Schema.String, Schema.Null]), Schema.Null])),
|
|
1581
|
+
pinned: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null]))
|
|
1553
1582
|
});
|
|
1554
1583
|
const MailboxesUpdateNote200 = MailboxNote;
|
|
1555
1584
|
const MailboxesUpdateNote401 = UnauthorizedError;
|
|
@@ -1656,7 +1685,7 @@ var MailboxesGroup = class extends HttpApiGroup.make("Mailboxes").add(HttpApiEnd
|
|
|
1656
1685
|
MailboxesApproveAction503.pipe(HttpApiSchema.status(503)),
|
|
1657
1686
|
MailboxesApproveAction504.pipe(HttpApiSchema.status(504))
|
|
1658
1687
|
]
|
|
1659
|
-
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "mailboxes.approveAction").annotate(OpenApi.Summary, "Approve a mailbox action").annotate(OpenApi.Description, "Records approval of a send and returns 202 while it is pending. A send is queued for automatic retry within 15 minutes of approval; repeating approval does not extend this deadline. Accepted, completed, and notSent replays return 200. No expiry applies before approval. Only a person signed in or through OAuth may approve, and never the proposer. Non-send approvals execute synchronously and return 200 with their own execution states."), HttpApiEndpoint.post("mailboxesCancelAction", "/v1/mailboxes/:id/actions/:actionId/cancel", {
|
|
1688
|
+
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "mailboxes.approveAction").annotate(OpenApi.Summary, "Approve a mailbox action").annotate(OpenApi.Description, "Records approval of a send and returns 202 while it is pending. A send is queued for automatic retry within 15 minutes of approval; repeating approval does not extend this deadline. Accepted, completed, and notSent replays return 200. No expiry applies before approval. Only a person signed in or through OAuth may approve, and never the proposer. Non-send approvals execute synchronously and return 200 with their own execution states. The action's `resolution` names the approver; approving a held send publishes one `mailbox.action.resolved` event."), HttpApiEndpoint.post("mailboxesCancelAction", "/v1/mailboxes/:id/actions/:actionId/cancel", {
|
|
1660
1689
|
params: MailboxesCancelActionPathParams,
|
|
1661
1690
|
success: [MailboxesCancelAction200, MailboxesCancelAction202.pipe(HttpApiSchema.status(202))],
|
|
1662
1691
|
error: [
|
|
@@ -1672,7 +1701,7 @@ var MailboxesGroup = class extends HttpApiGroup.make("Mailboxes").add(HttpApiEnd
|
|
|
1672
1701
|
MailboxesCancelAction503.pipe(HttpApiSchema.status(503)),
|
|
1673
1702
|
MailboxesCancelAction504.pipe(HttpApiSchema.status(504))
|
|
1674
1703
|
]
|
|
1675
|
-
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "mailboxes.cancelAction").annotate(OpenApi.Summary, "Cancel a mailbox send").annotate(OpenApi.Description, "Cancels a definitely unsent action and reopens its draft atomically. Only an authorized person who proposed the send or can approve actions may cancel. Accepted sends return 409 with their winning receipt and cannot be withdrawn. An uncertain send requires reconciliation and cannot be cancelled as unsent."), HttpApiEndpoint.post("mailboxesDenyAction", "/v1/mailboxes/:id/actions/:actionId/deny", {
|
|
1704
|
+
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "mailboxes.cancelAction").annotate(OpenApi.Summary, "Cancel a mailbox send").annotate(OpenApi.Description, "Cancels a definitely unsent action and reopens its draft atomically. Only an authorized person who proposed the send or can approve actions may cancel. Accepted sends return 409 with their winning receipt and cannot be withdrawn. An uncertain send requires reconciliation and cannot be cancelled as unsent. Cancelling a send held for approval records `resolution.outcome: cancelled` and publishes one `mailbox.action.resolved` event."), HttpApiEndpoint.post("mailboxesDenyAction", "/v1/mailboxes/:id/actions/:actionId/deny", {
|
|
1676
1705
|
params: MailboxesDenyActionPathParams,
|
|
1677
1706
|
payload: MailboxesDenyActionRequestJson,
|
|
1678
1707
|
success: MailboxesDenyAction200,
|
|
@@ -1685,7 +1714,7 @@ var MailboxesGroup = class extends HttpApiGroup.make("Mailboxes").add(HttpApiEnd
|
|
|
1685
1714
|
MailboxesDenyAction500,
|
|
1686
1715
|
MailboxesDenyAction504.pipe(HttpApiSchema.status(504))
|
|
1687
1716
|
]
|
|
1688
|
-
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "mailboxes.denyAction").annotate(OpenApi.Summary, "Deny a mailbox action").annotate(OpenApi.Description, "Denies an action waiting for approval with a reason and returns it without executing it. Only a person signed in or through OAuth may deny, and never the one who proposed it."), HttpApiEndpoint.post("mailboxesRetryAction", "/v1/mailboxes/:id/actions/:actionId/retry", {
|
|
1717
|
+
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "mailboxes.denyAction").annotate(OpenApi.Summary, "Deny a mailbox action").annotate(OpenApi.Description, "Denies an action waiting for approval with a reason and returns it without executing it. Only a person signed in or through OAuth may deny, and never the one who proposed it. The action's `resolution` records the denier and reason; denying a held send publishes one `mailbox.action.resolved` event."), HttpApiEndpoint.post("mailboxesRetryAction", "/v1/mailboxes/:id/actions/:actionId/retry", {
|
|
1689
1718
|
params: MailboxesRetryActionPathParams,
|
|
1690
1719
|
success: [MailboxesRetryAction200, MailboxesRetryAction202.pipe(HttpApiSchema.status(202))],
|
|
1691
1720
|
error: [
|
|
@@ -2311,160 +2340,6 @@ var MailboxesGroup = class extends HttpApiGroup.make("Mailboxes").add(HttpApiEnd
|
|
|
2311
2340
|
]
|
|
2312
2341
|
}).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
2342
|
//#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 };
|
|
2343
|
+
export { Mailbox, MailboxAction, MailboxActionPage, MailboxActionResolution, 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
2344
|
|
|
2470
|
-
//# sourceMappingURL=mailboxes
|
|
2345
|
+
//# sourceMappingURL=mailboxes.js.map
|