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