samva 0.16.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 +9 -1
- package/README.md +57 -1
- package/dist/{rolldown-runtime-D7D4PA-g.js → _virtual/_rolldown/runtime.js} +1 -1
- package/dist/client/client/client.gen.js +174 -0
- package/dist/client/client/utils.gen.js +177 -0
- package/dist/client/client.gen.js +8 -0
- package/dist/client/core/auth.gen.js +12 -0
- package/dist/client/core/bodySerializer.gen.js +6 -0
- package/dist/client/core/params.gen.js +77 -0
- package/dist/client/core/pathSerializer.gen.js +82 -0
- package/dist/client/core/serverSentEvents.gen.js +96 -0
- package/dist/client/core/utils.gen.js +78 -0
- package/dist/client/sdk.gen.d.ts +174 -3
- package/dist/{promises-KrA2nSLg.js → client/sdk.gen.js} +464 -2289
- package/dist/client/types.gen.d.ts +1126 -11
- package/dist/client-attribution.js +9 -0
- package/dist/effect/analytics.d.ts +6 -6
- package/dist/effect/analytics.js +11 -9
- package/dist/effect/api-keys.d.ts +13 -13
- package/dist/effect/api-keys.js +13 -12
- package/dist/effect/attachments.d.ts +4 -4
- package/dist/effect/attachments.js +9 -7
- package/dist/effect/brands.d.ts +7 -7
- package/dist/effect/brands.js +12 -10
- package/dist/effect/campaigns.d.ts +18 -18
- package/dist/effect/campaigns.js +17 -15
- package/dist/effect/categories.d.ts +2 -2
- package/dist/effect/categories.js +95 -1
- package/dist/effect/client.d.ts +1 -1
- package/dist/effect/client.js +4 -5
- package/dist/effect/contact-groups.d.ts +14 -14
- package/dist/effect/contact-groups.js +15 -13
- package/dist/effect/contacts.d.ts +77 -25
- package/dist/effect/contacts.js +27 -22
- package/dist/effect/conversations.d.ts +17 -17
- package/dist/effect/conversations.js +18 -16
- package/dist/effect/custom-fields.d.ts +4 -4
- package/dist/effect/custom-fields.js +9 -7
- package/dist/effect/email.d.ts +78 -77
- package/dist/effect/email.js +68 -65
- package/dist/effect/errors.d.ts +2 -0
- package/dist/effect/errors.js +3 -0
- package/dist/effect/events.d.ts +121 -0
- package/dist/effect/events.js +17 -0
- package/dist/effect/extension-installations.d.ts +11 -11
- package/dist/effect/extension-installations.js +14 -12
- package/dist/effect/extensions.d.ts +9 -9
- package/dist/effect/extensions.js +10 -8
- package/dist/effect/feedback.d.ts +2 -2
- package/dist/effect/feedback.js +6 -5
- package/dist/effect/generated/analytics.d.ts +715 -0
- package/dist/effect/generated/analytics.js +188 -0
- package/dist/effect/generated/api-keys.d.ts +1627 -0
- package/dist/effect/generated/api-keys.js +249 -0
- package/dist/effect/generated/attachments.d.ts +554 -0
- package/dist/effect/generated/attachments.js +125 -0
- package/dist/effect/generated/brands.d.ts +1118 -0
- package/dist/effect/generated/brands.js +155 -0
- package/dist/effect/generated/campaigns.d.ts +3783 -0
- package/dist/effect/generated/campaigns.js +491 -0
- package/dist/effect/generated/contact-events.d.ts +158 -0
- package/dist/effect/generated/contact-events.js +37 -0
- package/dist/effect/generated/contact-groups.d.ts +1445 -0
- package/dist/effect/generated/contact-groups.js +419 -0
- package/dist/effect/generated/contacts.d.ts +3789 -0
- package/dist/effect/generated/contacts.js +709 -0
- package/dist/effect/generated/conversations.d.ts +2870 -0
- package/dist/effect/generated/conversations.js +461 -0
- package/dist/effect/generated/custom-fields.d.ts +562 -0
- package/dist/effect/generated/custom-fields.js +162 -0
- package/dist/effect/generated/email.d.ts +10622 -0
- package/dist/effect/generated/email.js +2347 -0
- package/dist/effect/generated/events.d.ts +463 -0
- package/dist/effect/generated/events.js +70 -0
- package/dist/effect/generated/extension-installations.d.ts +1786 -0
- package/dist/effect/generated/extension-installations.js +382 -0
- package/dist/effect/generated/extensions.d.ts +927 -0
- package/dist/effect/generated/extensions.js +203 -0
- package/dist/effect/generated/feedback.d.ts +116 -0
- package/dist/effect/generated/feedback.js +43 -0
- package/dist/effect/generated/index.d.ts +61 -0
- package/dist/effect/generated/journeys.d.ts +6135 -0
- package/dist/effect/generated/journeys.js +464 -0
- package/dist/effect/generated/mailboxes.d.ts +13641 -0
- package/dist/effect/generated/mailboxes.js +2312 -0
- package/dist/effect/generated/media.d.ts +741 -0
- package/dist/effect/generated/media.js +181 -0
- package/dist/effect/generated/messages.d.ts +2355 -0
- package/dist/effect/generated/messages.js +671 -0
- package/dist/effect/generated/namespaces.d.ts +654 -0
- package/dist/effect/generated/namespaces.js +135 -0
- package/dist/effect/generated/operations.d.ts +514 -0
- package/dist/effect/generated/operations.js +80 -0
- package/dist/effect/generated/organizations.d.ts +1111 -0
- package/dist/effect/generated/organizations.js +231 -0
- package/dist/effect/generated/scheduled-messages.d.ts +1798 -0
- package/dist/effect/generated/scheduled-messages.js +190 -0
- package/dist/effect/generated/shared.d.ts +3250 -0
- package/dist/effect/generated/shared.js +1053 -0
- package/dist/effect/generated/subscriptions.d.ts +188 -0
- package/dist/effect/generated/subscriptions.js +61 -0
- package/dist/effect/generated/templates.d.ts +8177 -0
- package/dist/effect/generated/templates.js +2214 -0
- package/dist/effect/generated/unsubscribe-groups.d.ts +1153 -0
- package/dist/effect/generated/unsubscribe-groups.js +267 -0
- package/dist/effect/generated/webhooks.d.ts +1697 -0
- package/dist/effect/generated/webhooks.js +500 -0
- package/dist/effect/generated/whoami.d.ts +291 -0
- package/dist/effect/generated/whoami.js +54 -0
- package/dist/effect/generated-metadata.d.ts +1627 -0
- package/dist/effect/generated-metadata.js +919 -0
- package/dist/effect/index.d.ts +3 -2
- package/dist/effect/index.js +33 -31
- package/dist/effect/internal/client.d.ts +10 -7
- package/dist/effect/internal/client.js +69 -0
- package/dist/effect/internal/email-sender.d.ts +17 -0
- package/dist/effect/internal/email-sender.js +21 -0
- package/dist/effect/internal/mailbox-events.js +33 -0
- package/dist/effect/internal/operation.d.ts +12 -72
- package/dist/effect/internal/operation.js +116 -0
- package/dist/effect/internal/send.d.ts +60 -0
- package/dist/effect/internal/send.js +56 -0
- package/dist/effect/journeys.d.ts +2153 -0
- package/dist/effect/journeys.js +39 -0
- package/dist/effect/mailboxes.d.ts +80 -80
- package/dist/effect/mailboxes.js +135 -3
- package/dist/effect/media.d.ts +5 -5
- package/dist/effect/media.js +10 -8
- package/dist/effect/messages.d.ts +16 -16
- package/dist/effect/messages.js +15 -12
- package/dist/effect/namespaces.d.ts +7 -7
- package/dist/effect/namespaces.js +10 -8
- package/dist/effect/operations.d.ts +5 -5
- package/dist/effect/operations.js +8 -6
- package/dist/effect/organizations.d.ts +7 -7
- package/dist/effect/organizations.js +12 -10
- package/dist/effect/pagination.js +39 -0
- package/dist/effect/retry.js +3 -3
- package/dist/effect/runtime.js +25 -0
- package/dist/effect/scheduled-messages.d.ts +7 -7
- package/dist/effect/scheduled-messages.js +10 -8
- package/dist/effect/subscriptions.d.ts +1 -1
- package/dist/effect/subscriptions.js +5 -4
- package/dist/effect/templates.d.ts +40 -40
- package/dist/effect/templates.js +39 -37
- package/dist/effect/unsubscribe-groups.d.ts +11 -11
- package/dist/effect/unsubscribe-groups.js +14 -12
- package/dist/effect/webhooks.d.ts +23 -23
- package/dist/effect/webhooks.js +16 -14
- package/dist/effect/whoami.d.ts +1 -1
- package/dist/effect/whoami.js +5 -4
- package/dist/index.js +4 -3
- package/dist/{inline-attachments-Cegg6tTF.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.d.ts +7 -3
- package/dist/promises/index.js +288 -3
- package/dist/promises/types.gen.d.ts +1 -1
- package/dist/service-map.d.ts +85 -0
- package/dist/{operation-BTXjPrwf.js → service-map.js} +58 -219
- package/package.json +17 -3
- package/dist/categories-DV51kr2H.js +0 -187
- package/dist/client-BMUew5Wp.js +0 -13794
- package/dist/effect/generated.d.ts +0 -64004
- package/dist/mailboxes-Thp5z0oX.js +0 -161
|
@@ -0,0 +1,2312 @@
|
|
|
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";
|
|
2
|
+
import { HttpApiEndpoint, HttpApiGroup, HttpApiSchema, OpenApi } from "effect/http-api";
|
|
3
|
+
import * as Schema from "effect/Schema";
|
|
4
|
+
//#region src/effect/generated/mailboxes.ts
|
|
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")
|
|
18
|
+
]),
|
|
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" }))
|
|
20
|
+
})),
|
|
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")
|
|
37
|
+
]),
|
|
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" }))
|
|
39
|
+
}))
|
|
40
|
+
}),
|
|
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")
|
|
57
|
+
]),
|
|
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" }))
|
|
59
|
+
})) }),
|
|
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" }))
|
|
61
|
+
}).annotate({ identifier: "MailboxAgentActivity" });
|
|
62
|
+
const MailboxDraftState = /* @__PURE__ */ Schema.Union([
|
|
63
|
+
Schema.Literal("saved"),
|
|
64
|
+
Schema.Literal("locked"),
|
|
65
|
+
Schema.Literal("sent")
|
|
66
|
+
]).annotate({ identifier: "MailboxDraftState" });
|
|
67
|
+
const MailboxEventId = /* @__PURE__ */ Schema.String.check(Schema.isPattern(/* @__PURE__ */ new RegExp("^mbxevt_[0-9a-hjkmnp-tv-z]{16,24}$", "u")).annotate({
|
|
68
|
+
expected: "a string matching the RegExp ^mbxevt_[0-9a-hjkmnp-tv-z]{16,24}$",
|
|
69
|
+
identifier: "MailboxEventId"
|
|
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({
|
|
72
|
+
expected: "a string matching the RegExp ^mbxacl_[0-9a-hjkmnp-tv-z]{16,24}$",
|
|
73
|
+
identifier: "MailboxGrantId"
|
|
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")
|
|
84
|
+
]),
|
|
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
|
|
90
|
+
}).annotate({ identifier: "MailboxMessageSender" });
|
|
91
|
+
const MailboxMessageRecipient = /* @__PURE__ */ Schema.Struct({
|
|
92
|
+
kind: Schema.Union([
|
|
93
|
+
Schema.Literal("to"),
|
|
94
|
+
Schema.Literal("cc"),
|
|
95
|
+
Schema.Literal("bcc")
|
|
96
|
+
]),
|
|
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")
|
|
105
|
+
]),
|
|
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
|
|
111
|
+
}).annotate({ identifier: "MailboxMessageRecipient" });
|
|
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])
|
|
116
|
+
}).annotate({ identifier: "MailboxMessageAuthentication" });
|
|
117
|
+
const MailboxDownloadUrl = /* @__PURE__ */ Schema.Struct({
|
|
118
|
+
url: Schema.String,
|
|
119
|
+
expiresAt: Schema.String
|
|
120
|
+
}).annotate({ identifier: "MailboxDownloadUrl" });
|
|
121
|
+
const MailboxThreadSender = /* @__PURE__ */ Schema.Struct({
|
|
122
|
+
address: Schema.Union([Schema.String, Schema.Null]),
|
|
123
|
+
displayName: Schema.Union([Schema.String, Schema.Null])
|
|
124
|
+
}).annotate({ identifier: "MailboxThreadSender" });
|
|
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")
|
|
134
|
+
]),
|
|
135
|
+
id: Schema.String,
|
|
136
|
+
displayName: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null]))
|
|
137
|
+
}),
|
|
138
|
+
role: Schema.Union([
|
|
139
|
+
Schema.Literal("recipient"),
|
|
140
|
+
Schema.Literal("sender"),
|
|
141
|
+
Schema.Literal("assignee"),
|
|
142
|
+
Schema.Literal("observer")
|
|
143
|
+
]),
|
|
144
|
+
address: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null]))
|
|
145
|
+
}).annotate({ identifier: "MailboxThreadParticipant" });
|
|
146
|
+
const MailboxNoteId = /* @__PURE__ */ Schema.String.check(Schema.isPattern(/* @__PURE__ */ new RegExp("^note_[0-9a-hjkmnp-tv-z]{16,24}$", "u")).annotate({
|
|
147
|
+
expected: "a string matching the RegExp ^note_[0-9a-hjkmnp-tv-z]{16,24}$",
|
|
148
|
+
identifier: "MailboxNoteId"
|
|
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" }))
|
|
156
|
+
}).annotate({ identifier: "MailboxCopiedAttachment" });
|
|
157
|
+
const MailboxSummary = /* @__PURE__ */ Schema.Struct({
|
|
158
|
+
id: MailboxId,
|
|
159
|
+
namespaceId: Schema.Union([NamespaceId, Schema.Null]),
|
|
160
|
+
slug: Schema.String,
|
|
161
|
+
name: Schema.String,
|
|
162
|
+
status: MailboxStatus,
|
|
163
|
+
primaryAddress: Schema.Union([Schema.String, Schema.Null]),
|
|
164
|
+
createdAt: Schema.String
|
|
165
|
+
}).annotate({ identifier: "MailboxSummary" });
|
|
166
|
+
const MailboxEndpoint = /* @__PURE__ */ Schema.Struct({
|
|
167
|
+
id: MailboxEndpointId,
|
|
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])
|
|
174
|
+
}).annotate({ identifier: "MailboxEndpoint" });
|
|
175
|
+
const MailboxQuarantinedMessage = /* @__PURE__ */ Schema.Struct({
|
|
176
|
+
id: MessageId,
|
|
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")
|
|
186
|
+
]),
|
|
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])
|
|
191
|
+
}),
|
|
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])
|
|
198
|
+
}).annotate({ identifier: "MailboxQuarantinedMessage" });
|
|
199
|
+
const MailboxDraftSummary = /* @__PURE__ */ Schema.Struct({
|
|
200
|
+
id: MailboxDraftId,
|
|
201
|
+
channel: MailboxChannel,
|
|
202
|
+
threadId: Schema.Union([MailboxThreadId, Schema.Null]),
|
|
203
|
+
inReplyToMessageId: Schema.Union([MessageId, Schema.Null]),
|
|
204
|
+
state: MailboxDraftState,
|
|
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
|
|
210
|
+
}).annotate({ identifier: "MailboxDraftSummary" });
|
|
211
|
+
const MailboxEvent = /* @__PURE__ */ Schema.Struct({
|
|
212
|
+
id: MailboxEventId,
|
|
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")
|
|
228
|
+
]),
|
|
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")
|
|
239
|
+
]),
|
|
240
|
+
id: Schema.String,
|
|
241
|
+
displayName: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null]))
|
|
242
|
+
}),
|
|
243
|
+
payload: Schema.Record(Schema.String, JsonValue),
|
|
244
|
+
occurredAt: Schema.String
|
|
245
|
+
}).annotate({ identifier: "MailboxEvent" });
|
|
246
|
+
const MailboxFolderCount = /* @__PURE__ */ Schema.Struct({
|
|
247
|
+
folder: MailboxThreadFolder,
|
|
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" }))
|
|
250
|
+
}).annotate({ identifier: "MailboxFolderCount" });
|
|
251
|
+
const MailboxGrant = /* @__PURE__ */ Schema.Struct({
|
|
252
|
+
id: MailboxGrantId,
|
|
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")
|
|
261
|
+
]),
|
|
262
|
+
id: Schema.String,
|
|
263
|
+
displayName: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null]))
|
|
264
|
+
}),
|
|
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")
|
|
278
|
+
])),
|
|
279
|
+
sendMode: MailboxSendMode,
|
|
280
|
+
createdAt: Schema.String
|
|
281
|
+
}).annotate({ identifier: "MailboxGrant" });
|
|
282
|
+
const MailboxLabel = /* @__PURE__ */ Schema.Struct({
|
|
283
|
+
id: MailboxLabelId,
|
|
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
|
|
296
|
+
}).annotate({ identifier: "MailboxLabel" });
|
|
297
|
+
const MailboxMessageSummary = /* @__PURE__ */ Schema.Struct({
|
|
298
|
+
id: MessageId,
|
|
299
|
+
channel: MailboxChannel,
|
|
300
|
+
direction: Schema.Union([Schema.Literal("inbound"), Schema.Literal("outbound")]),
|
|
301
|
+
from: MailboxMessageSender,
|
|
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
|
|
307
|
+
}).annotate({ identifier: "MailboxMessageSummary" });
|
|
308
|
+
const MailboxMessage = /* @__PURE__ */ Schema.Struct({
|
|
309
|
+
id: MessageId,
|
|
310
|
+
threadId: MailboxThreadId,
|
|
311
|
+
conversationId: ConversationId,
|
|
312
|
+
direction: Schema.Union([Schema.Literal("inbound"), Schema.Literal("outbound")]),
|
|
313
|
+
from: MailboxMessageSender,
|
|
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")
|
|
322
|
+
]),
|
|
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)
|
|
338
|
+
}),
|
|
339
|
+
authentication: Schema.Union([MailboxMessageAuthentication, Schema.Null]),
|
|
340
|
+
attachments: Schema.Array(Schema.Struct({
|
|
341
|
+
id: AttachmentId,
|
|
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
|
|
346
|
+
}))
|
|
347
|
+
}).annotate({ identifier: "MailboxMessage" });
|
|
348
|
+
const MailboxPolicy = /* @__PURE__ */ Schema.Struct({
|
|
349
|
+
id: MailboxPolicyId,
|
|
350
|
+
name: Schema.String,
|
|
351
|
+
outcome: MailboxPolicyOutcomeKind,
|
|
352
|
+
reason: Schema.Union([Schema.String, Schema.Null]),
|
|
353
|
+
enabled: Schema.Boolean,
|
|
354
|
+
createdAt: Schema.String,
|
|
355
|
+
updatedAt: Schema.String
|
|
356
|
+
}).annotate({ identifier: "MailboxPolicy" });
|
|
357
|
+
const MailboxThreadSummary = /* @__PURE__ */ Schema.Struct({
|
|
358
|
+
id: MailboxThreadId,
|
|
359
|
+
channel: MailboxChannel,
|
|
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,
|
|
367
|
+
folder: MailboxThreadFolder,
|
|
368
|
+
priority: MailboxThreadPriority,
|
|
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
|
|
374
|
+
}).annotate({ identifier: "MailboxThreadSummary" });
|
|
375
|
+
const MailboxThreadState = /* @__PURE__ */ Schema.Struct({
|
|
376
|
+
id: MailboxThreadId,
|
|
377
|
+
folder: MailboxThreadFolder,
|
|
378
|
+
priority: MailboxThreadPriority,
|
|
379
|
+
labels: Schema.Array(MailboxLabelId),
|
|
380
|
+
read: Schema.Boolean,
|
|
381
|
+
starred: Schema.Boolean,
|
|
382
|
+
snoozedUntil: Schema.Union([Schema.String, Schema.Null])
|
|
383
|
+
}).annotate({ identifier: "MailboxThreadState" });
|
|
384
|
+
const MailboxThread = /* @__PURE__ */ Schema.Struct({
|
|
385
|
+
id: MailboxThreadId,
|
|
386
|
+
channel: MailboxChannel,
|
|
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,
|
|
394
|
+
folder: MailboxThreadFolder,
|
|
395
|
+
priority: MailboxThreadPriority,
|
|
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,
|
|
401
|
+
conversationId: ConversationId,
|
|
402
|
+
participants: Schema.Array(MailboxThreadParticipant),
|
|
403
|
+
createdAt: Schema.String
|
|
404
|
+
}).annotate({ identifier: "MailboxThread" });
|
|
405
|
+
const MailboxNote = /* @__PURE__ */ Schema.Struct({
|
|
406
|
+
id: MailboxNoteId,
|
|
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")
|
|
415
|
+
]),
|
|
416
|
+
id: Schema.String,
|
|
417
|
+
displayName: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null]))
|
|
418
|
+
}),
|
|
419
|
+
body: Schema.String,
|
|
420
|
+
color: Schema.Union([Schema.String, Schema.Null]),
|
|
421
|
+
pinned: Schema.Boolean,
|
|
422
|
+
createdAt: Schema.String,
|
|
423
|
+
updatedAt: Schema.String
|
|
424
|
+
}).annotate({ identifier: "MailboxNote" });
|
|
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])
|
|
441
|
+
}).annotate({ identifier: "MailboxSendSnapshot" });
|
|
442
|
+
const MailboxDraft = /* @__PURE__ */ Schema.Struct({
|
|
443
|
+
id: MailboxDraftId,
|
|
444
|
+
channel: Schema.Literal("email"),
|
|
445
|
+
threadId: Schema.Union([MailboxThreadId, Schema.Null]),
|
|
446
|
+
inReplyToMessageId: Schema.Union([MessageId, Schema.Null]),
|
|
447
|
+
state: MailboxDraftState,
|
|
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" }))
|
|
460
|
+
}).annotate({ identifier: "MailboxDraft" });
|
|
461
|
+
const MailboxPage = /* @__PURE__ */ Schema.Struct({
|
|
462
|
+
items: Schema.Array(MailboxSummary),
|
|
463
|
+
nextCursor: Schema.Union([Schema.String, Schema.Null])
|
|
464
|
+
}).annotate({ identifier: "MailboxPage" });
|
|
465
|
+
const Mailbox = /* @__PURE__ */ Schema.Struct({
|
|
466
|
+
id: MailboxId,
|
|
467
|
+
namespaceId: Schema.Union([NamespaceId, Schema.Null]),
|
|
468
|
+
slug: Schema.String,
|
|
469
|
+
name: Schema.String,
|
|
470
|
+
status: MailboxStatus,
|
|
471
|
+
primaryAddress: Schema.Union([Schema.String, Schema.Null]),
|
|
472
|
+
createdAt: Schema.String,
|
|
473
|
+
description: Schema.Union([Schema.String, Schema.Null]),
|
|
474
|
+
metadata: MailboxMetadata,
|
|
475
|
+
endpoints: Schema.Array(MailboxEndpoint),
|
|
476
|
+
updatedAt: Schema.String
|
|
477
|
+
}).annotate({ identifier: "Mailbox" });
|
|
478
|
+
const MailboxQuarantinePage = /* @__PURE__ */ Schema.Struct({
|
|
479
|
+
items: Schema.Array(MailboxQuarantinedMessage),
|
|
480
|
+
nextCursor: Schema.Union([Schema.String, Schema.Null])
|
|
481
|
+
}).annotate({ identifier: "MailboxQuarantinePage" });
|
|
482
|
+
const MailboxNonSendAction = /* @__PURE__ */ Schema.Struct({
|
|
483
|
+
id: MailboxActionId,
|
|
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")
|
|
492
|
+
]),
|
|
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")
|
|
501
|
+
]),
|
|
502
|
+
id: Schema.String,
|
|
503
|
+
displayName: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null]))
|
|
504
|
+
}),
|
|
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")
|
|
517
|
+
]),
|
|
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")
|
|
528
|
+
])
|
|
529
|
+
}).annotate({ identifier: "MailboxNonSendAction" });
|
|
530
|
+
const MailboxPendingSendReceipt = /* @__PURE__ */ Schema.Struct({
|
|
531
|
+
actionId: MailboxActionId,
|
|
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")
|
|
542
|
+
]),
|
|
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
|
|
566
|
+
}).annotate({ identifier: "MailboxPendingSendReceipt" });
|
|
567
|
+
const MailboxDraftPage = /* @__PURE__ */ Schema.Struct({
|
|
568
|
+
items: Schema.Array(MailboxDraftSummary),
|
|
569
|
+
nextCursor: Schema.Union([Schema.String, Schema.Null])
|
|
570
|
+
}).annotate({ identifier: "MailboxDraftPage" });
|
|
571
|
+
const MailboxEventPage = /* @__PURE__ */ Schema.Struct({
|
|
572
|
+
items: Schema.Array(MailboxEvent),
|
|
573
|
+
nextCursor: Schema.Union([Schema.String, Schema.Null])
|
|
574
|
+
}).annotate({ identifier: "MailboxEventPage" });
|
|
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])
|
|
579
|
+
}).annotate({ identifier: "MailboxGrantPage" });
|
|
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])
|
|
584
|
+
}).annotate({ identifier: "MailboxMessagePage" });
|
|
585
|
+
const MailboxThreadContentPage = /* @__PURE__ */ Schema.Struct({
|
|
586
|
+
items: Schema.Array(MailboxMessage),
|
|
587
|
+
nextCursor: Schema.Union([Schema.String, Schema.Null])
|
|
588
|
+
}).annotate({ identifier: "MailboxThreadContentPage" });
|
|
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])
|
|
593
|
+
}).annotate({ identifier: "MailboxThreadPage" });
|
|
594
|
+
const MailboxNotePage = /* @__PURE__ */ Schema.Struct({
|
|
595
|
+
items: Schema.Array(MailboxNote),
|
|
596
|
+
nextCursor: Schema.Union([Schema.String, Schema.Null])
|
|
597
|
+
}).annotate({ identifier: "MailboxNotePage" });
|
|
598
|
+
const MailboxSendAction = /* @__PURE__ */ Schema.Struct({
|
|
599
|
+
id: MailboxActionId,
|
|
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")
|
|
608
|
+
]),
|
|
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")
|
|
617
|
+
]),
|
|
618
|
+
id: Schema.String,
|
|
619
|
+
displayName: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null]))
|
|
620
|
+
}),
|
|
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")
|
|
634
|
+
]),
|
|
635
|
+
send: MailboxSendReceipt,
|
|
636
|
+
intent: Schema.Union([MailboxSendSnapshot, Schema.Null])
|
|
637
|
+
}).annotate({ identifier: "MailboxSendAction" });
|
|
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])
|
|
643
|
+
}).annotate({ identifier: "MailboxActionPage" });
|
|
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]))
|
|
649
|
+
});
|
|
650
|
+
const MailboxesList200 = MailboxPage;
|
|
651
|
+
const MailboxesList401 = UnauthorizedError;
|
|
652
|
+
const MailboxesList403 = ForbiddenError;
|
|
653
|
+
const MailboxesList422 = ValidationError;
|
|
654
|
+
const MailboxesList500 = InternalError;
|
|
655
|
+
const MailboxesList504 = GatewayTimeoutError;
|
|
656
|
+
const MailboxesCreateRequestJson = /* @__PURE__ */ Schema.Struct({
|
|
657
|
+
namespaceId: Schema.optionalKey(Schema.Union([NamespaceId, Schema.Null])),
|
|
658
|
+
endpoint: CreateMailboxEndpointPayload,
|
|
659
|
+
name: Schema.String,
|
|
660
|
+
slug: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
|
|
661
|
+
metadata: Schema.optionalKey(Schema.Union([MailboxMetadata, Schema.Null]))
|
|
662
|
+
});
|
|
663
|
+
const MailboxesCreate201 = Mailbox;
|
|
664
|
+
const MailboxesCreate401 = UnauthorizedError;
|
|
665
|
+
const MailboxesCreate402 = PaymentRequiredError;
|
|
666
|
+
const MailboxesCreate403 = ForbiddenError;
|
|
667
|
+
const MailboxesCreate404 = ResourceNotFoundError;
|
|
668
|
+
const MailboxesCreate409 = ConflictError;
|
|
669
|
+
const MailboxesCreate422 = /* @__PURE__ */ Schema.Union([ValidationError, MailboxChannelUnsupportedError]);
|
|
670
|
+
const MailboxesCreate500 = InternalError;
|
|
671
|
+
const MailboxesCreate502 = BillingProviderError;
|
|
672
|
+
const MailboxesCreate504 = GatewayTimeoutError;
|
|
673
|
+
const MailboxesGetPathParams = /* @__PURE__ */ Schema.Struct({ id: MailboxId });
|
|
674
|
+
const MailboxesGet200 = Mailbox;
|
|
675
|
+
const MailboxesGet401 = UnauthorizedError;
|
|
676
|
+
const MailboxesGet403 = ForbiddenError;
|
|
677
|
+
const MailboxesGet404 = ResourceNotFoundError;
|
|
678
|
+
const MailboxesGet422 = ValidationError;
|
|
679
|
+
const MailboxesGet500 = InternalError;
|
|
680
|
+
const MailboxesGet504 = GatewayTimeoutError;
|
|
681
|
+
const MailboxesRemovePathParams = /* @__PURE__ */ Schema.Struct({ id: MailboxId });
|
|
682
|
+
const MailboxesRemove200 = SuccessResponse;
|
|
683
|
+
const MailboxesRemove401 = UnauthorizedError;
|
|
684
|
+
const MailboxesRemove403 = ForbiddenError;
|
|
685
|
+
const MailboxesRemove404 = ResourceNotFoundError;
|
|
686
|
+
const MailboxesRemove422 = ValidationError;
|
|
687
|
+
const MailboxesRemove500 = InternalError;
|
|
688
|
+
const MailboxesRemove502 = BillingProviderError;
|
|
689
|
+
const MailboxesRemove504 = GatewayTimeoutError;
|
|
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]))
|
|
694
|
+
});
|
|
695
|
+
const MailboxesUpdate200 = Mailbox;
|
|
696
|
+
const MailboxesUpdate401 = UnauthorizedError;
|
|
697
|
+
const MailboxesUpdate403 = ForbiddenError;
|
|
698
|
+
const MailboxesUpdate404 = ResourceNotFoundError;
|
|
699
|
+
const MailboxesUpdate422 = ValidationError;
|
|
700
|
+
const MailboxesUpdate500 = InternalError;
|
|
701
|
+
const MailboxesUpdate504 = GatewayTimeoutError;
|
|
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]))
|
|
725
|
+
});
|
|
726
|
+
const MailboxesListActions200 = MailboxActionPage;
|
|
727
|
+
const MailboxesListActions401 = UnauthorizedError;
|
|
728
|
+
const MailboxesListActions403 = ForbiddenError;
|
|
729
|
+
const MailboxesListActions404 = ResourceNotFoundError;
|
|
730
|
+
const MailboxesListActions422 = ValidationError;
|
|
731
|
+
const MailboxesListActions500 = InternalError;
|
|
732
|
+
const MailboxesListActions504 = GatewayTimeoutError;
|
|
733
|
+
const MailboxesGetActionPathParams = /* @__PURE__ */ Schema.Struct({
|
|
734
|
+
id: MailboxId,
|
|
735
|
+
actionId: MailboxActionId
|
|
736
|
+
});
|
|
737
|
+
const MailboxesGetAction200 = MailboxAction;
|
|
738
|
+
const MailboxesGetAction401 = UnauthorizedError;
|
|
739
|
+
const MailboxesGetAction403 = ForbiddenError;
|
|
740
|
+
const MailboxesGetAction404 = ResourceNotFoundError;
|
|
741
|
+
const MailboxesGetAction422 = ValidationError;
|
|
742
|
+
const MailboxesGetAction500 = InternalError;
|
|
743
|
+
const MailboxesGetAction504 = GatewayTimeoutError;
|
|
744
|
+
const MailboxesApproveActionPathParams = /* @__PURE__ */ Schema.Struct({
|
|
745
|
+
id: MailboxId,
|
|
746
|
+
actionId: MailboxActionId
|
|
747
|
+
});
|
|
748
|
+
const MailboxesApproveAction200 = MailboxAction;
|
|
749
|
+
const MailboxesApproveAction202 = MailboxPendingAction;
|
|
750
|
+
const MailboxesApproveAction401 = UnauthorizedError;
|
|
751
|
+
const MailboxesApproveAction402 = PaymentRequiredError;
|
|
752
|
+
const MailboxesApproveAction403 = /* @__PURE__ */ Schema.Union([
|
|
753
|
+
MailboxSendRefusedError,
|
|
754
|
+
OnboardingReviewRequiredError,
|
|
755
|
+
ForbiddenError
|
|
756
|
+
]);
|
|
757
|
+
const MailboxesApproveAction404 = ResourceNotFoundError;
|
|
758
|
+
const MailboxesApproveAction409 = /* @__PURE__ */ Schema.Union([MailboxSendConflictError, ConflictError]);
|
|
759
|
+
const MailboxesApproveAction422 = /* @__PURE__ */ Schema.Union([MailboxChannelUnsupportedError, ValidationError]);
|
|
760
|
+
const MailboxesApproveAction429 = RateLimitedError;
|
|
761
|
+
const MailboxesApproveAction500 = InternalError;
|
|
762
|
+
const MailboxesApproveAction502 = BillingProviderError;
|
|
763
|
+
const MailboxesApproveAction503 = SenderNotReadyError;
|
|
764
|
+
const MailboxesApproveAction504 = GatewayTimeoutError;
|
|
765
|
+
const MailboxesCancelActionPathParams = /* @__PURE__ */ Schema.Struct({
|
|
766
|
+
id: MailboxId,
|
|
767
|
+
actionId: MailboxActionId
|
|
768
|
+
});
|
|
769
|
+
const MailboxesCancelAction200 = MailboxSendReceipt;
|
|
770
|
+
const MailboxesCancelAction202 = MailboxPendingSendReceipt;
|
|
771
|
+
const MailboxesCancelAction401 = UnauthorizedError;
|
|
772
|
+
const MailboxesCancelAction402 = PaymentRequiredError;
|
|
773
|
+
const MailboxesCancelAction403 = /* @__PURE__ */ Schema.Union([
|
|
774
|
+
MailboxSendRefusedError,
|
|
775
|
+
OnboardingReviewRequiredError,
|
|
776
|
+
ForbiddenError
|
|
777
|
+
]);
|
|
778
|
+
const MailboxesCancelAction404 = ResourceNotFoundError;
|
|
779
|
+
const MailboxesCancelAction409 = /* @__PURE__ */ Schema.Union([MailboxSendConflictError, ConflictError]);
|
|
780
|
+
const MailboxesCancelAction422 = /* @__PURE__ */ Schema.Union([MailboxChannelUnsupportedError, ValidationError]);
|
|
781
|
+
const MailboxesCancelAction429 = RateLimitedError;
|
|
782
|
+
const MailboxesCancelAction500 = InternalError;
|
|
783
|
+
const MailboxesCancelAction502 = BillingProviderError;
|
|
784
|
+
const MailboxesCancelAction503 = SenderNotReadyError;
|
|
785
|
+
const MailboxesCancelAction504 = GatewayTimeoutError;
|
|
786
|
+
const MailboxesDenyActionPathParams = /* @__PURE__ */ Schema.Struct({
|
|
787
|
+
id: MailboxId,
|
|
788
|
+
actionId: MailboxActionId
|
|
789
|
+
});
|
|
790
|
+
const MailboxesDenyActionRequestJson = /* @__PURE__ */ Schema.Struct({ reason: Schema.String });
|
|
791
|
+
const MailboxesDenyAction200 = MailboxAction;
|
|
792
|
+
const MailboxesDenyAction401 = UnauthorizedError;
|
|
793
|
+
const MailboxesDenyAction403 = ForbiddenError;
|
|
794
|
+
const MailboxesDenyAction404 = ResourceNotFoundError;
|
|
795
|
+
const MailboxesDenyAction409 = /* @__PURE__ */ Schema.Union([ConflictError, MailboxSendConflictError]);
|
|
796
|
+
const MailboxesDenyAction422 = ValidationError;
|
|
797
|
+
const MailboxesDenyAction500 = InternalError;
|
|
798
|
+
const MailboxesDenyAction504 = GatewayTimeoutError;
|
|
799
|
+
const MailboxesRetryActionPathParams = /* @__PURE__ */ Schema.Struct({
|
|
800
|
+
id: MailboxId,
|
|
801
|
+
actionId: MailboxActionId
|
|
802
|
+
});
|
|
803
|
+
const MailboxesRetryAction200 = MailboxSendReceipt;
|
|
804
|
+
const MailboxesRetryAction202 = MailboxPendingSendReceipt;
|
|
805
|
+
const MailboxesRetryAction401 = UnauthorizedError;
|
|
806
|
+
const MailboxesRetryAction402 = PaymentRequiredError;
|
|
807
|
+
const MailboxesRetryAction403 = /* @__PURE__ */ Schema.Union([
|
|
808
|
+
MailboxSendRefusedError,
|
|
809
|
+
OnboardingReviewRequiredError,
|
|
810
|
+
ForbiddenError
|
|
811
|
+
]);
|
|
812
|
+
const MailboxesRetryAction404 = ResourceNotFoundError;
|
|
813
|
+
const MailboxesRetryAction409 = /* @__PURE__ */ Schema.Union([MailboxSendConflictError, ConflictError]);
|
|
814
|
+
const MailboxesRetryAction422 = /* @__PURE__ */ Schema.Union([MailboxChannelUnsupportedError, ValidationError]);
|
|
815
|
+
const MailboxesRetryAction429 = RateLimitedError;
|
|
816
|
+
const MailboxesRetryAction500 = InternalError;
|
|
817
|
+
const MailboxesRetryAction502 = BillingProviderError;
|
|
818
|
+
const MailboxesRetryAction503 = SenderNotReadyError;
|
|
819
|
+
const MailboxesRetryAction504 = GatewayTimeoutError;
|
|
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]))
|
|
824
|
+
});
|
|
825
|
+
const MailboxesGetAgentActivity200 = MailboxAgentActivity;
|
|
826
|
+
const MailboxesGetAgentActivity401 = UnauthorizedError;
|
|
827
|
+
const MailboxesGetAgentActivity403 = ForbiddenError;
|
|
828
|
+
const MailboxesGetAgentActivity404 = ResourceNotFoundError;
|
|
829
|
+
const MailboxesGetAgentActivity422 = ValidationError;
|
|
830
|
+
const MailboxesGetAgentActivity500 = InternalError;
|
|
831
|
+
const MailboxesGetAgentActivity504 = GatewayTimeoutError;
|
|
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]))
|
|
837
|
+
});
|
|
838
|
+
const MailboxesListDrafts200 = MailboxDraftPage;
|
|
839
|
+
const MailboxesListDrafts401 = UnauthorizedError;
|
|
840
|
+
const MailboxesListDrafts403 = ForbiddenError;
|
|
841
|
+
const MailboxesListDrafts404 = ResourceNotFoundError;
|
|
842
|
+
const MailboxesListDrafts422 = ValidationError;
|
|
843
|
+
const MailboxesListDrafts500 = InternalError;
|
|
844
|
+
const MailboxesListDrafts504 = GatewayTimeoutError;
|
|
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]))
|
|
858
|
+
});
|
|
859
|
+
const MailboxesCreateDraft201 = MailboxDraft;
|
|
860
|
+
const MailboxesCreateDraft401 = UnauthorizedError;
|
|
861
|
+
const MailboxesCreateDraft403 = ForbiddenError;
|
|
862
|
+
const MailboxesCreateDraft404 = ResourceNotFoundError;
|
|
863
|
+
const MailboxesCreateDraft422 = /* @__PURE__ */ Schema.Union([MailboxChannelUnsupportedError, ValidationError]);
|
|
864
|
+
const MailboxesCreateDraft500 = InternalError;
|
|
865
|
+
const MailboxesCreateDraft504 = GatewayTimeoutError;
|
|
866
|
+
const MailboxesGetDraftPathParams = /* @__PURE__ */ Schema.Struct({
|
|
867
|
+
id: MailboxId,
|
|
868
|
+
draftId: MailboxDraftId
|
|
869
|
+
});
|
|
870
|
+
const MailboxesGetDraft200 = MailboxDraft;
|
|
871
|
+
const MailboxesGetDraft401 = UnauthorizedError;
|
|
872
|
+
const MailboxesGetDraft403 = ForbiddenError;
|
|
873
|
+
const MailboxesGetDraft404 = ResourceNotFoundError;
|
|
874
|
+
const MailboxesGetDraft422 = ValidationError;
|
|
875
|
+
const MailboxesGetDraft500 = InternalError;
|
|
876
|
+
const MailboxesGetDraft504 = GatewayTimeoutError;
|
|
877
|
+
const MailboxesDeleteDraftPathParams = /* @__PURE__ */ Schema.Struct({
|
|
878
|
+
id: MailboxId,
|
|
879
|
+
draftId: MailboxDraftId
|
|
880
|
+
});
|
|
881
|
+
const MailboxesDeleteDraft200 = SuccessResponse;
|
|
882
|
+
const MailboxesDeleteDraft401 = UnauthorizedError;
|
|
883
|
+
const MailboxesDeleteDraft403 = ForbiddenError;
|
|
884
|
+
const MailboxesDeleteDraft404 = ResourceNotFoundError;
|
|
885
|
+
const MailboxesDeleteDraft422 = ValidationError;
|
|
886
|
+
const MailboxesDeleteDraft500 = InternalError;
|
|
887
|
+
const MailboxesDeleteDraft504 = GatewayTimeoutError;
|
|
888
|
+
const MailboxesUpdateDraftPathParams = /* @__PURE__ */ Schema.Struct({
|
|
889
|
+
id: MailboxId,
|
|
890
|
+
draftId: MailboxDraftId
|
|
891
|
+
});
|
|
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]))
|
|
901
|
+
});
|
|
902
|
+
const MailboxesUpdateDraft200 = MailboxDraft;
|
|
903
|
+
const MailboxesUpdateDraft401 = UnauthorizedError;
|
|
904
|
+
const MailboxesUpdateDraft403 = ForbiddenError;
|
|
905
|
+
const MailboxesUpdateDraft404 = ResourceNotFoundError;
|
|
906
|
+
const MailboxesUpdateDraft409 = ConflictError;
|
|
907
|
+
const MailboxesUpdateDraft422 = ValidationError;
|
|
908
|
+
const MailboxesUpdateDraft500 = InternalError;
|
|
909
|
+
const MailboxesUpdateDraft504 = GatewayTimeoutError;
|
|
910
|
+
const MailboxesSendDraftPathParams = /* @__PURE__ */ Schema.Struct({
|
|
911
|
+
id: MailboxId,
|
|
912
|
+
draftId: MailboxDraftId
|
|
913
|
+
});
|
|
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])) });
|
|
915
|
+
const MailboxesSendDraft200 = MailboxSendReceipt;
|
|
916
|
+
const MailboxesSendDraft202 = MailboxPendingSendReceipt;
|
|
917
|
+
const MailboxesSendDraft401 = UnauthorizedError;
|
|
918
|
+
const MailboxesSendDraft402 = PaymentRequiredError;
|
|
919
|
+
const MailboxesSendDraft403 = /* @__PURE__ */ Schema.Union([
|
|
920
|
+
MailboxSendRefusedError,
|
|
921
|
+
OnboardingReviewRequiredError,
|
|
922
|
+
ForbiddenError
|
|
923
|
+
]);
|
|
924
|
+
const MailboxesSendDraft404 = ResourceNotFoundError;
|
|
925
|
+
const MailboxesSendDraft409 = /* @__PURE__ */ Schema.Union([MailboxSendConflictError, ConflictError]);
|
|
926
|
+
const MailboxesSendDraft422 = /* @__PURE__ */ Schema.Union([MailboxChannelUnsupportedError, ValidationError]);
|
|
927
|
+
const MailboxesSendDraft429 = RateLimitedError;
|
|
928
|
+
const MailboxesSendDraft500 = InternalError;
|
|
929
|
+
const MailboxesSendDraft502 = BillingProviderError;
|
|
930
|
+
const MailboxesSendDraft503 = SenderNotReadyError;
|
|
931
|
+
const MailboxesSendDraft504 = GatewayTimeoutError;
|
|
932
|
+
const MailboxesCreateEndpointPathParams = /* @__PURE__ */ Schema.Struct({ id: MailboxId });
|
|
933
|
+
const MailboxesCreateEndpointRequestJson = /* @__PURE__ */ Schema.Struct({
|
|
934
|
+
channel: MailboxChannel,
|
|
935
|
+
address: Schema.String,
|
|
936
|
+
displayName: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null]))
|
|
937
|
+
});
|
|
938
|
+
const MailboxesCreateEndpoint201 = Mailbox;
|
|
939
|
+
const MailboxesCreateEndpoint401 = UnauthorizedError;
|
|
940
|
+
const MailboxesCreateEndpoint403 = ForbiddenError;
|
|
941
|
+
const MailboxesCreateEndpoint404 = ResourceNotFoundError;
|
|
942
|
+
const MailboxesCreateEndpoint409 = ConflictError;
|
|
943
|
+
const MailboxesCreateEndpoint422 = /* @__PURE__ */ Schema.Union([ValidationError, MailboxChannelUnsupportedError]);
|
|
944
|
+
const MailboxesCreateEndpoint500 = InternalError;
|
|
945
|
+
const MailboxesCreateEndpoint504 = GatewayTimeoutError;
|
|
946
|
+
const MailboxesRemoveEndpointPathParams = /* @__PURE__ */ Schema.Struct({
|
|
947
|
+
id: MailboxId,
|
|
948
|
+
endpointId: MailboxEndpointId
|
|
949
|
+
});
|
|
950
|
+
const MailboxesRemoveEndpoint200 = Mailbox;
|
|
951
|
+
const MailboxesRemoveEndpoint401 = UnauthorizedError;
|
|
952
|
+
const MailboxesRemoveEndpoint403 = ForbiddenError;
|
|
953
|
+
const MailboxesRemoveEndpoint404 = ResourceNotFoundError;
|
|
954
|
+
const MailboxesRemoveEndpoint422 = ValidationError;
|
|
955
|
+
const MailboxesRemoveEndpoint500 = InternalError;
|
|
956
|
+
const MailboxesRemoveEndpoint504 = GatewayTimeoutError;
|
|
957
|
+
const MailboxesUpdateEndpointPathParams = /* @__PURE__ */ Schema.Struct({
|
|
958
|
+
id: MailboxId,
|
|
959
|
+
endpointId: MailboxEndpointId
|
|
960
|
+
});
|
|
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]))
|
|
964
|
+
});
|
|
965
|
+
const MailboxesUpdateEndpoint200 = Mailbox;
|
|
966
|
+
const MailboxesUpdateEndpoint401 = UnauthorizedError;
|
|
967
|
+
const MailboxesUpdateEndpoint403 = ForbiddenError;
|
|
968
|
+
const MailboxesUpdateEndpoint404 = ResourceNotFoundError;
|
|
969
|
+
const MailboxesUpdateEndpoint422 = ValidationError;
|
|
970
|
+
const MailboxesUpdateEndpoint500 = InternalError;
|
|
971
|
+
const MailboxesUpdateEndpoint504 = GatewayTimeoutError;
|
|
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]))
|
|
978
|
+
});
|
|
979
|
+
const MailboxesListEvents200 = MailboxEventPage;
|
|
980
|
+
const MailboxesListEvents401 = UnauthorizedError;
|
|
981
|
+
const MailboxesListEvents403 = ForbiddenError;
|
|
982
|
+
const MailboxesListEvents404 = ResourceNotFoundError;
|
|
983
|
+
const MailboxesListEvents422 = ValidationError;
|
|
984
|
+
const MailboxesListEvents500 = InternalError;
|
|
985
|
+
const MailboxesListEvents504 = GatewayTimeoutError;
|
|
986
|
+
const MailboxesListFoldersPathParams = /* @__PURE__ */ Schema.Struct({ id: MailboxId });
|
|
987
|
+
const MailboxesListFolders200 = MailboxFolderCountList;
|
|
988
|
+
const MailboxesListFolders401 = UnauthorizedError;
|
|
989
|
+
const MailboxesListFolders403 = ForbiddenError;
|
|
990
|
+
const MailboxesListFolders404 = ResourceNotFoundError;
|
|
991
|
+
const MailboxesListFolders422 = ValidationError;
|
|
992
|
+
const MailboxesListFolders500 = InternalError;
|
|
993
|
+
const MailboxesListFolders504 = GatewayTimeoutError;
|
|
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]))
|
|
998
|
+
});
|
|
999
|
+
const MailboxesListGrants200 = MailboxGrantPage;
|
|
1000
|
+
const MailboxesListGrants401 = UnauthorizedError;
|
|
1001
|
+
const MailboxesListGrants403 = ForbiddenError;
|
|
1002
|
+
const MailboxesListGrants404 = ResourceNotFoundError;
|
|
1003
|
+
const MailboxesListGrants422 = ValidationError;
|
|
1004
|
+
const MailboxesListGrants500 = InternalError;
|
|
1005
|
+
const MailboxesListGrants504 = GatewayTimeoutError;
|
|
1006
|
+
const MailboxesCreateGrantPathParams = /* @__PURE__ */ Schema.Struct({ id: MailboxId });
|
|
1007
|
+
const MailboxesCreateGrantRequestJson = /* @__PURE__ */ Schema.Struct({
|
|
1008
|
+
userId: UserId,
|
|
1009
|
+
role: MailboxGrantRole,
|
|
1010
|
+
sendMode: Schema.optionalKey(Schema.Union([MailboxSendMode, Schema.Null]))
|
|
1011
|
+
});
|
|
1012
|
+
const MailboxesCreateGrant201 = MailboxGrant;
|
|
1013
|
+
const MailboxesCreateGrant401 = UnauthorizedError;
|
|
1014
|
+
const MailboxesCreateGrant403 = ForbiddenError;
|
|
1015
|
+
const MailboxesCreateGrant404 = ResourceNotFoundError;
|
|
1016
|
+
const MailboxesCreateGrant409 = ConflictError;
|
|
1017
|
+
const MailboxesCreateGrant422 = ValidationError;
|
|
1018
|
+
const MailboxesCreateGrant500 = InternalError;
|
|
1019
|
+
const MailboxesCreateGrant504 = GatewayTimeoutError;
|
|
1020
|
+
const MailboxesRevokeGrantPathParams = /* @__PURE__ */ Schema.Struct({
|
|
1021
|
+
id: MailboxId,
|
|
1022
|
+
grantId: MailboxGrantId
|
|
1023
|
+
});
|
|
1024
|
+
const MailboxesRevokeGrant200 = SuccessResponse;
|
|
1025
|
+
const MailboxesRevokeGrant401 = UnauthorizedError;
|
|
1026
|
+
const MailboxesRevokeGrant403 = ForbiddenError;
|
|
1027
|
+
const MailboxesRevokeGrant404 = ResourceNotFoundError;
|
|
1028
|
+
const MailboxesRevokeGrant409 = ConflictError;
|
|
1029
|
+
const MailboxesRevokeGrant422 = ValidationError;
|
|
1030
|
+
const MailboxesRevokeGrant500 = InternalError;
|
|
1031
|
+
const MailboxesRevokeGrant504 = GatewayTimeoutError;
|
|
1032
|
+
const MailboxesUpdateGrantPathParams = /* @__PURE__ */ Schema.Struct({
|
|
1033
|
+
id: MailboxId,
|
|
1034
|
+
grantId: MailboxGrantId
|
|
1035
|
+
});
|
|
1036
|
+
const MailboxesUpdateGrantRequestJson = /* @__PURE__ */ Schema.Struct({
|
|
1037
|
+
role: Schema.optionalKey(Schema.Union([MailboxGrantRole, Schema.Null])),
|
|
1038
|
+
sendMode: Schema.optionalKey(Schema.Union([MailboxSendMode, Schema.Null]))
|
|
1039
|
+
});
|
|
1040
|
+
const MailboxesUpdateGrant200 = MailboxGrant;
|
|
1041
|
+
const MailboxesUpdateGrant401 = UnauthorizedError;
|
|
1042
|
+
const MailboxesUpdateGrant403 = ForbiddenError;
|
|
1043
|
+
const MailboxesUpdateGrant404 = ResourceNotFoundError;
|
|
1044
|
+
const MailboxesUpdateGrant409 = ConflictError;
|
|
1045
|
+
const MailboxesUpdateGrant422 = ValidationError;
|
|
1046
|
+
const MailboxesUpdateGrant500 = InternalError;
|
|
1047
|
+
const MailboxesUpdateGrant504 = GatewayTimeoutError;
|
|
1048
|
+
const MailboxesListLabelsPathParams = /* @__PURE__ */ Schema.Struct({ id: MailboxId });
|
|
1049
|
+
const MailboxesListLabels200 = MailboxLabelList;
|
|
1050
|
+
const MailboxesListLabels401 = UnauthorizedError;
|
|
1051
|
+
const MailboxesListLabels403 = ForbiddenError;
|
|
1052
|
+
const MailboxesListLabels404 = ResourceNotFoundError;
|
|
1053
|
+
const MailboxesListLabels422 = ValidationError;
|
|
1054
|
+
const MailboxesListLabels500 = InternalError;
|
|
1055
|
+
const MailboxesListLabels504 = GatewayTimeoutError;
|
|
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]))
|
|
1068
|
+
});
|
|
1069
|
+
const MailboxesCreateLabel201 = MailboxLabel;
|
|
1070
|
+
const MailboxesCreateLabel401 = UnauthorizedError;
|
|
1071
|
+
const MailboxesCreateLabel403 = ForbiddenError;
|
|
1072
|
+
const MailboxesCreateLabel404 = ResourceNotFoundError;
|
|
1073
|
+
const MailboxesCreateLabel409 = ConflictError;
|
|
1074
|
+
const MailboxesCreateLabel422 = ValidationError;
|
|
1075
|
+
const MailboxesCreateLabel500 = InternalError;
|
|
1076
|
+
const MailboxesCreateLabel504 = GatewayTimeoutError;
|
|
1077
|
+
const MailboxesDeleteLabelPathParams = /* @__PURE__ */ Schema.Struct({
|
|
1078
|
+
id: MailboxId,
|
|
1079
|
+
labelId: MailboxLabelId
|
|
1080
|
+
});
|
|
1081
|
+
const MailboxesDeleteLabel200 = SuccessResponse;
|
|
1082
|
+
const MailboxesDeleteLabel401 = UnauthorizedError;
|
|
1083
|
+
const MailboxesDeleteLabel403 = ForbiddenError;
|
|
1084
|
+
const MailboxesDeleteLabel404 = ResourceNotFoundError;
|
|
1085
|
+
const MailboxesDeleteLabel422 = ValidationError;
|
|
1086
|
+
const MailboxesDeleteLabel500 = InternalError;
|
|
1087
|
+
const MailboxesDeleteLabel504 = GatewayTimeoutError;
|
|
1088
|
+
const MailboxesUpdateLabelPathParams = /* @__PURE__ */ Schema.Struct({
|
|
1089
|
+
id: MailboxId,
|
|
1090
|
+
labelId: MailboxLabelId
|
|
1091
|
+
});
|
|
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]))
|
|
1102
|
+
});
|
|
1103
|
+
const MailboxesUpdateLabel200 = MailboxLabel;
|
|
1104
|
+
const MailboxesUpdateLabel401 = UnauthorizedError;
|
|
1105
|
+
const MailboxesUpdateLabel403 = ForbiddenError;
|
|
1106
|
+
const MailboxesUpdateLabel404 = ResourceNotFoundError;
|
|
1107
|
+
const MailboxesUpdateLabel422 = ValidationError;
|
|
1108
|
+
const MailboxesUpdateLabel500 = InternalError;
|
|
1109
|
+
const MailboxesUpdateLabel504 = GatewayTimeoutError;
|
|
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]))
|
|
1122
|
+
});
|
|
1123
|
+
const MailboxesSendMessage200 = MailboxSendReceipt;
|
|
1124
|
+
const MailboxesSendMessage202 = MailboxPendingSendReceipt;
|
|
1125
|
+
const MailboxesSendMessage401 = UnauthorizedError;
|
|
1126
|
+
const MailboxesSendMessage402 = PaymentRequiredError;
|
|
1127
|
+
const MailboxesSendMessage403 = /* @__PURE__ */ Schema.Union([
|
|
1128
|
+
MailboxSendRefusedError,
|
|
1129
|
+
OnboardingReviewRequiredError,
|
|
1130
|
+
ForbiddenError
|
|
1131
|
+
]);
|
|
1132
|
+
const MailboxesSendMessage404 = ResourceNotFoundError;
|
|
1133
|
+
const MailboxesSendMessage409 = /* @__PURE__ */ Schema.Union([MailboxSendConflictError, ConflictError]);
|
|
1134
|
+
const MailboxesSendMessage422 = /* @__PURE__ */ Schema.Union([MailboxChannelUnsupportedError, ValidationError]);
|
|
1135
|
+
const MailboxesSendMessage429 = RateLimitedError;
|
|
1136
|
+
const MailboxesSendMessage500 = InternalError;
|
|
1137
|
+
const MailboxesSendMessage502 = BillingProviderError;
|
|
1138
|
+
const MailboxesSendMessage503 = SenderNotReadyError;
|
|
1139
|
+
const MailboxesSendMessage504 = GatewayTimeoutError;
|
|
1140
|
+
const MailboxesGetMessagePathParams = /* @__PURE__ */ Schema.Struct({
|
|
1141
|
+
id: MailboxId,
|
|
1142
|
+
messageId: MessageId
|
|
1143
|
+
});
|
|
1144
|
+
const MailboxesGetMessage200 = MailboxMessage;
|
|
1145
|
+
const MailboxesGetMessage401 = UnauthorizedError;
|
|
1146
|
+
const MailboxesGetMessage403 = ForbiddenError;
|
|
1147
|
+
const MailboxesGetMessage404 = ResourceNotFoundError;
|
|
1148
|
+
const MailboxesGetMessage422 = ValidationError;
|
|
1149
|
+
const MailboxesGetMessage500 = InternalError;
|
|
1150
|
+
const MailboxesGetMessage504 = GatewayTimeoutError;
|
|
1151
|
+
const MailboxesGetMessageAttachmentPathParams = /* @__PURE__ */ Schema.Struct({
|
|
1152
|
+
id: MailboxId,
|
|
1153
|
+
messageId: MessageId,
|
|
1154
|
+
attachmentId: AttachmentId
|
|
1155
|
+
});
|
|
1156
|
+
const MailboxesGetMessageAttachment200 = MailboxDownloadUrl;
|
|
1157
|
+
const MailboxesGetMessageAttachment401 = UnauthorizedError;
|
|
1158
|
+
const MailboxesGetMessageAttachment403 = ForbiddenError;
|
|
1159
|
+
const MailboxesGetMessageAttachment404 = ResourceNotFoundError;
|
|
1160
|
+
const MailboxesGetMessageAttachment422 = ValidationError;
|
|
1161
|
+
const MailboxesGetMessageAttachment500 = InternalError;
|
|
1162
|
+
const MailboxesGetMessageAttachment504 = GatewayTimeoutError;
|
|
1163
|
+
const MailboxesCopyMessageAttachmentPathParams = /* @__PURE__ */ Schema.Struct({
|
|
1164
|
+
id: MailboxId,
|
|
1165
|
+
messageId: MessageId,
|
|
1166
|
+
attachmentId: AttachmentId
|
|
1167
|
+
});
|
|
1168
|
+
const MailboxesCopyMessageAttachment201 = MailboxCopiedAttachment;
|
|
1169
|
+
const MailboxesCopyMessageAttachment401 = UnauthorizedError;
|
|
1170
|
+
const MailboxesCopyMessageAttachment403 = ForbiddenError;
|
|
1171
|
+
const MailboxesCopyMessageAttachment404 = ResourceNotFoundError;
|
|
1172
|
+
const MailboxesCopyMessageAttachment409 = ConflictError;
|
|
1173
|
+
const MailboxesCopyMessageAttachment422 = ValidationError;
|
|
1174
|
+
const MailboxesCopyMessageAttachment500 = InternalError;
|
|
1175
|
+
const MailboxesCopyMessageAttachment504 = GatewayTimeoutError;
|
|
1176
|
+
const MailboxesDiscardMessagePathParams = /* @__PURE__ */ Schema.Struct({
|
|
1177
|
+
id: MailboxId,
|
|
1178
|
+
messageId: MessageId
|
|
1179
|
+
});
|
|
1180
|
+
const MailboxesDiscardMessage200 = MailboxQuarantinedMessage;
|
|
1181
|
+
const MailboxesDiscardMessage401 = UnauthorizedError;
|
|
1182
|
+
const MailboxesDiscardMessage403 = ForbiddenError;
|
|
1183
|
+
const MailboxesDiscardMessage404 = ResourceNotFoundError;
|
|
1184
|
+
const MailboxesDiscardMessage409 = ConflictError;
|
|
1185
|
+
const MailboxesDiscardMessage422 = ValidationError;
|
|
1186
|
+
const MailboxesDiscardMessage500 = InternalError;
|
|
1187
|
+
const MailboxesDiscardMessage502 = BillingProviderError;
|
|
1188
|
+
const MailboxesDiscardMessage504 = GatewayTimeoutError;
|
|
1189
|
+
const MailboxesForwardPathParams = /* @__PURE__ */ Schema.Struct({
|
|
1190
|
+
id: MailboxId,
|
|
1191
|
+
messageId: MessageId
|
|
1192
|
+
});
|
|
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]))
|
|
1201
|
+
});
|
|
1202
|
+
const MailboxesForward200 = MailboxSendReceipt;
|
|
1203
|
+
const MailboxesForward202 = MailboxPendingSendReceipt;
|
|
1204
|
+
const MailboxesForward401 = UnauthorizedError;
|
|
1205
|
+
const MailboxesForward402 = PaymentRequiredError;
|
|
1206
|
+
const MailboxesForward403 = /* @__PURE__ */ Schema.Union([
|
|
1207
|
+
MailboxSendRefusedError,
|
|
1208
|
+
OnboardingReviewRequiredError,
|
|
1209
|
+
ForbiddenError
|
|
1210
|
+
]);
|
|
1211
|
+
const MailboxesForward404 = ResourceNotFoundError;
|
|
1212
|
+
const MailboxesForward409 = /* @__PURE__ */ Schema.Union([MailboxSendConflictError, ConflictError]);
|
|
1213
|
+
const MailboxesForward422 = /* @__PURE__ */ Schema.Union([MailboxChannelUnsupportedError, ValidationError]);
|
|
1214
|
+
const MailboxesForward429 = RateLimitedError;
|
|
1215
|
+
const MailboxesForward500 = InternalError;
|
|
1216
|
+
const MailboxesForward502 = BillingProviderError;
|
|
1217
|
+
const MailboxesForward503 = SenderNotReadyError;
|
|
1218
|
+
const MailboxesForward504 = GatewayTimeoutError;
|
|
1219
|
+
const MailboxesGetMessageRawPathParams = /* @__PURE__ */ Schema.Struct({
|
|
1220
|
+
id: MailboxId,
|
|
1221
|
+
messageId: MessageId
|
|
1222
|
+
});
|
|
1223
|
+
const MailboxesGetMessageRaw200 = MailboxDownloadUrl;
|
|
1224
|
+
const MailboxesGetMessageRaw401 = UnauthorizedError;
|
|
1225
|
+
const MailboxesGetMessageRaw403 = ForbiddenError;
|
|
1226
|
+
const MailboxesGetMessageRaw404 = ResourceNotFoundError;
|
|
1227
|
+
const MailboxesGetMessageRaw422 = ValidationError;
|
|
1228
|
+
const MailboxesGetMessageRaw500 = InternalError;
|
|
1229
|
+
const MailboxesGetMessageRaw504 = GatewayTimeoutError;
|
|
1230
|
+
const MailboxesReleaseMessagePathParams = /* @__PURE__ */ Schema.Struct({
|
|
1231
|
+
id: MailboxId,
|
|
1232
|
+
messageId: MessageId
|
|
1233
|
+
});
|
|
1234
|
+
const MailboxesReleaseMessage200 = MailboxQuarantinedMessage;
|
|
1235
|
+
const MailboxesReleaseMessage401 = UnauthorizedError;
|
|
1236
|
+
const MailboxesReleaseMessage403 = ForbiddenError;
|
|
1237
|
+
const MailboxesReleaseMessage404 = ResourceNotFoundError;
|
|
1238
|
+
const MailboxesReleaseMessage409 = ConflictError;
|
|
1239
|
+
const MailboxesReleaseMessage422 = ValidationError;
|
|
1240
|
+
const MailboxesReleaseMessage500 = InternalError;
|
|
1241
|
+
const MailboxesReleaseMessage504 = GatewayTimeoutError;
|
|
1242
|
+
const MailboxesReplyPathParams = /* @__PURE__ */ Schema.Struct({
|
|
1243
|
+
id: MailboxId,
|
|
1244
|
+
messageId: MessageId
|
|
1245
|
+
});
|
|
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]))
|
|
1254
|
+
});
|
|
1255
|
+
const MailboxesReply200 = MailboxSendReceipt;
|
|
1256
|
+
const MailboxesReply202 = MailboxPendingSendReceipt;
|
|
1257
|
+
const MailboxesReply401 = UnauthorizedError;
|
|
1258
|
+
const MailboxesReply402 = PaymentRequiredError;
|
|
1259
|
+
const MailboxesReply403 = /* @__PURE__ */ Schema.Union([
|
|
1260
|
+
MailboxSendRefusedError,
|
|
1261
|
+
OnboardingReviewRequiredError,
|
|
1262
|
+
ForbiddenError
|
|
1263
|
+
]);
|
|
1264
|
+
const MailboxesReply404 = ResourceNotFoundError;
|
|
1265
|
+
const MailboxesReply409 = /* @__PURE__ */ Schema.Union([MailboxSendConflictError, ConflictError]);
|
|
1266
|
+
const MailboxesReply422 = /* @__PURE__ */ Schema.Union([MailboxChannelUnsupportedError, ValidationError]);
|
|
1267
|
+
const MailboxesReply429 = RateLimitedError;
|
|
1268
|
+
const MailboxesReply500 = InternalError;
|
|
1269
|
+
const MailboxesReply502 = BillingProviderError;
|
|
1270
|
+
const MailboxesReply503 = SenderNotReadyError;
|
|
1271
|
+
const MailboxesReply504 = GatewayTimeoutError;
|
|
1272
|
+
const MailboxesReplyAllPathParams = /* @__PURE__ */ Schema.Struct({
|
|
1273
|
+
id: MailboxId,
|
|
1274
|
+
messageId: MessageId
|
|
1275
|
+
});
|
|
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]))
|
|
1284
|
+
});
|
|
1285
|
+
const MailboxesReplyAll200 = MailboxSendReceipt;
|
|
1286
|
+
const MailboxesReplyAll202 = MailboxPendingSendReceipt;
|
|
1287
|
+
const MailboxesReplyAll401 = UnauthorizedError;
|
|
1288
|
+
const MailboxesReplyAll402 = PaymentRequiredError;
|
|
1289
|
+
const MailboxesReplyAll403 = /* @__PURE__ */ Schema.Union([
|
|
1290
|
+
MailboxSendRefusedError,
|
|
1291
|
+
OnboardingReviewRequiredError,
|
|
1292
|
+
ForbiddenError
|
|
1293
|
+
]);
|
|
1294
|
+
const MailboxesReplyAll404 = ResourceNotFoundError;
|
|
1295
|
+
const MailboxesReplyAll409 = /* @__PURE__ */ Schema.Union([MailboxSendConflictError, ConflictError]);
|
|
1296
|
+
const MailboxesReplyAll422 = /* @__PURE__ */ Schema.Union([MailboxChannelUnsupportedError, ValidationError]);
|
|
1297
|
+
const MailboxesReplyAll429 = RateLimitedError;
|
|
1298
|
+
const MailboxesReplyAll500 = InternalError;
|
|
1299
|
+
const MailboxesReplyAll502 = BillingProviderError;
|
|
1300
|
+
const MailboxesReplyAll503 = SenderNotReadyError;
|
|
1301
|
+
const MailboxesReplyAll504 = GatewayTimeoutError;
|
|
1302
|
+
const MailboxesPausePathParams = /* @__PURE__ */ Schema.Struct({ id: MailboxId });
|
|
1303
|
+
const MailboxesPause200 = Mailbox;
|
|
1304
|
+
const MailboxesPause401 = UnauthorizedError;
|
|
1305
|
+
const MailboxesPause403 = ForbiddenError;
|
|
1306
|
+
const MailboxesPause404 = ResourceNotFoundError;
|
|
1307
|
+
const MailboxesPause422 = ValidationError;
|
|
1308
|
+
const MailboxesPause500 = InternalError;
|
|
1309
|
+
const MailboxesPause504 = GatewayTimeoutError;
|
|
1310
|
+
const MailboxesListPoliciesPathParams = /* @__PURE__ */ Schema.Struct({ id: MailboxId });
|
|
1311
|
+
const MailboxesListPolicies200 = MailboxPolicyList;
|
|
1312
|
+
const MailboxesListPolicies401 = UnauthorizedError;
|
|
1313
|
+
const MailboxesListPolicies403 = ForbiddenError;
|
|
1314
|
+
const MailboxesListPolicies404 = ResourceNotFoundError;
|
|
1315
|
+
const MailboxesListPolicies422 = ValidationError;
|
|
1316
|
+
const MailboxesListPolicies500 = InternalError;
|
|
1317
|
+
const MailboxesListPolicies504 = GatewayTimeoutError;
|
|
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" })),
|
|
1321
|
+
outcome: MailboxPolicyOutcomeKind,
|
|
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]))
|
|
1324
|
+
});
|
|
1325
|
+
const MailboxesCreatePolicy201 = MailboxPolicy;
|
|
1326
|
+
const MailboxesCreatePolicy401 = UnauthorizedError;
|
|
1327
|
+
const MailboxesCreatePolicy403 = ForbiddenError;
|
|
1328
|
+
const MailboxesCreatePolicy404 = ResourceNotFoundError;
|
|
1329
|
+
const MailboxesCreatePolicy409 = ConflictError;
|
|
1330
|
+
const MailboxesCreatePolicy422 = ValidationError;
|
|
1331
|
+
const MailboxesCreatePolicy500 = InternalError;
|
|
1332
|
+
const MailboxesCreatePolicy504 = GatewayTimeoutError;
|
|
1333
|
+
const MailboxesGetPolicyPathParams = /* @__PURE__ */ Schema.Struct({
|
|
1334
|
+
id: MailboxId,
|
|
1335
|
+
policyId: MailboxPolicyId
|
|
1336
|
+
});
|
|
1337
|
+
const MailboxesGetPolicy200 = MailboxPolicy;
|
|
1338
|
+
const MailboxesGetPolicy401 = UnauthorizedError;
|
|
1339
|
+
const MailboxesGetPolicy403 = ForbiddenError;
|
|
1340
|
+
const MailboxesGetPolicy404 = ResourceNotFoundError;
|
|
1341
|
+
const MailboxesGetPolicy422 = ValidationError;
|
|
1342
|
+
const MailboxesGetPolicy500 = InternalError;
|
|
1343
|
+
const MailboxesGetPolicy504 = GatewayTimeoutError;
|
|
1344
|
+
const MailboxesDeletePolicyPathParams = /* @__PURE__ */ Schema.Struct({
|
|
1345
|
+
id: MailboxId,
|
|
1346
|
+
policyId: MailboxPolicyId
|
|
1347
|
+
});
|
|
1348
|
+
const MailboxesDeletePolicy200 = SuccessResponse;
|
|
1349
|
+
const MailboxesDeletePolicy401 = UnauthorizedError;
|
|
1350
|
+
const MailboxesDeletePolicy403 = ForbiddenError;
|
|
1351
|
+
const MailboxesDeletePolicy404 = ResourceNotFoundError;
|
|
1352
|
+
const MailboxesDeletePolicy422 = ValidationError;
|
|
1353
|
+
const MailboxesDeletePolicy500 = InternalError;
|
|
1354
|
+
const MailboxesDeletePolicy504 = GatewayTimeoutError;
|
|
1355
|
+
const MailboxesUpdatePolicyPathParams = /* @__PURE__ */ Schema.Struct({
|
|
1356
|
+
id: MailboxId,
|
|
1357
|
+
policyId: MailboxPolicyId
|
|
1358
|
+
});
|
|
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]))
|
|
1364
|
+
});
|
|
1365
|
+
const MailboxesUpdatePolicy200 = MailboxPolicy;
|
|
1366
|
+
const MailboxesUpdatePolicy401 = UnauthorizedError;
|
|
1367
|
+
const MailboxesUpdatePolicy403 = ForbiddenError;
|
|
1368
|
+
const MailboxesUpdatePolicy404 = ResourceNotFoundError;
|
|
1369
|
+
const MailboxesUpdatePolicy422 = ValidationError;
|
|
1370
|
+
const MailboxesUpdatePolicy500 = InternalError;
|
|
1371
|
+
const MailboxesUpdatePolicy504 = GatewayTimeoutError;
|
|
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]))
|
|
1378
|
+
});
|
|
1379
|
+
const MailboxesListQuarantine200 = MailboxQuarantinePage;
|
|
1380
|
+
const MailboxesListQuarantine401 = UnauthorizedError;
|
|
1381
|
+
const MailboxesListQuarantine403 = ForbiddenError;
|
|
1382
|
+
const MailboxesListQuarantine404 = ResourceNotFoundError;
|
|
1383
|
+
const MailboxesListQuarantine422 = ValidationError;
|
|
1384
|
+
const MailboxesListQuarantine500 = InternalError;
|
|
1385
|
+
const MailboxesListQuarantine504 = GatewayTimeoutError;
|
|
1386
|
+
const MailboxesResumePathParams = /* @__PURE__ */ Schema.Struct({ id: MailboxId });
|
|
1387
|
+
const MailboxesResume200 = Mailbox;
|
|
1388
|
+
const MailboxesResume401 = UnauthorizedError;
|
|
1389
|
+
const MailboxesResume403 = ForbiddenError;
|
|
1390
|
+
const MailboxesResume404 = ResourceNotFoundError;
|
|
1391
|
+
const MailboxesResume422 = ValidationError;
|
|
1392
|
+
const MailboxesResume500 = InternalError;
|
|
1393
|
+
const MailboxesResume504 = GatewayTimeoutError;
|
|
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]))
|
|
1406
|
+
});
|
|
1407
|
+
const MailboxesListThreads200 = MailboxThreadPage;
|
|
1408
|
+
const MailboxesListThreads401 = UnauthorizedError;
|
|
1409
|
+
const MailboxesListThreads403 = ForbiddenError;
|
|
1410
|
+
const MailboxesListThreads404 = ResourceNotFoundError;
|
|
1411
|
+
const MailboxesListThreads422 = ValidationError;
|
|
1412
|
+
const MailboxesListThreads500 = InternalError;
|
|
1413
|
+
const MailboxesListThreads504 = GatewayTimeoutError;
|
|
1414
|
+
const MailboxesGetThreadPathParams = /* @__PURE__ */ Schema.Struct({
|
|
1415
|
+
id: MailboxId,
|
|
1416
|
+
threadId: MailboxThreadId
|
|
1417
|
+
});
|
|
1418
|
+
const MailboxesGetThread200 = MailboxThread;
|
|
1419
|
+
const MailboxesGetThread401 = UnauthorizedError;
|
|
1420
|
+
const MailboxesGetThread403 = ForbiddenError;
|
|
1421
|
+
const MailboxesGetThread404 = ResourceNotFoundError;
|
|
1422
|
+
const MailboxesGetThread422 = ValidationError;
|
|
1423
|
+
const MailboxesGetThread500 = InternalError;
|
|
1424
|
+
const MailboxesGetThread504 = GatewayTimeoutError;
|
|
1425
|
+
const MailboxesUpdateThreadPathParams = /* @__PURE__ */ Schema.Struct({
|
|
1426
|
+
id: MailboxId,
|
|
1427
|
+
threadId: MailboxThreadId
|
|
1428
|
+
});
|
|
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]))
|
|
1435
|
+
});
|
|
1436
|
+
const MailboxesUpdateThread200 = MailboxThreadState;
|
|
1437
|
+
const MailboxesUpdateThread401 = UnauthorizedError;
|
|
1438
|
+
const MailboxesUpdateThread403 = ForbiddenError;
|
|
1439
|
+
const MailboxesUpdateThread404 = ResourceNotFoundError;
|
|
1440
|
+
const MailboxesUpdateThread422 = ValidationError;
|
|
1441
|
+
const MailboxesUpdateThread500 = InternalError;
|
|
1442
|
+
const MailboxesUpdateThread504 = GatewayTimeoutError;
|
|
1443
|
+
const MailboxesGetThreadContentPathParams = /* @__PURE__ */ Schema.Struct({
|
|
1444
|
+
id: MailboxId,
|
|
1445
|
+
threadId: MailboxThreadId
|
|
1446
|
+
});
|
|
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]))
|
|
1450
|
+
});
|
|
1451
|
+
const MailboxesGetThreadContent200 = MailboxThreadContentPage;
|
|
1452
|
+
const MailboxesGetThreadContent401 = UnauthorizedError;
|
|
1453
|
+
const MailboxesGetThreadContent403 = ForbiddenError;
|
|
1454
|
+
const MailboxesGetThreadContent404 = ResourceNotFoundError;
|
|
1455
|
+
const MailboxesGetThreadContent422 = ValidationError;
|
|
1456
|
+
const MailboxesGetThreadContent500 = InternalError;
|
|
1457
|
+
const MailboxesGetThreadContent504 = GatewayTimeoutError;
|
|
1458
|
+
const MailboxesAddThreadLabelsPathParams = /* @__PURE__ */ Schema.Struct({
|
|
1459
|
+
id: MailboxId,
|
|
1460
|
+
threadId: MailboxThreadId
|
|
1461
|
+
});
|
|
1462
|
+
const MailboxesAddThreadLabelsRequestJson = /* @__PURE__ */ Schema.Struct({ labels: Schema.TupleWithRest(Schema.Tuple([MailboxLabelId]), [MailboxLabelId]) });
|
|
1463
|
+
const MailboxesAddThreadLabels200 = MailboxThreadState;
|
|
1464
|
+
const MailboxesAddThreadLabels401 = UnauthorizedError;
|
|
1465
|
+
const MailboxesAddThreadLabels403 = ForbiddenError;
|
|
1466
|
+
const MailboxesAddThreadLabels404 = ResourceNotFoundError;
|
|
1467
|
+
const MailboxesAddThreadLabels422 = ValidationError;
|
|
1468
|
+
const MailboxesAddThreadLabels500 = InternalError;
|
|
1469
|
+
const MailboxesAddThreadLabels504 = GatewayTimeoutError;
|
|
1470
|
+
const MailboxesRemoveThreadLabelsPathParams = /* @__PURE__ */ Schema.Struct({
|
|
1471
|
+
id: MailboxId,
|
|
1472
|
+
threadId: MailboxThreadId
|
|
1473
|
+
});
|
|
1474
|
+
const MailboxesRemoveThreadLabelsRequestJson = /* @__PURE__ */ Schema.Struct({ labels: Schema.TupleWithRest(Schema.Tuple([MailboxLabelId]), [MailboxLabelId]) });
|
|
1475
|
+
const MailboxesRemoveThreadLabels200 = MailboxThreadState;
|
|
1476
|
+
const MailboxesRemoveThreadLabels401 = UnauthorizedError;
|
|
1477
|
+
const MailboxesRemoveThreadLabels403 = ForbiddenError;
|
|
1478
|
+
const MailboxesRemoveThreadLabels404 = ResourceNotFoundError;
|
|
1479
|
+
const MailboxesRemoveThreadLabels422 = ValidationError;
|
|
1480
|
+
const MailboxesRemoveThreadLabels500 = InternalError;
|
|
1481
|
+
const MailboxesRemoveThreadLabels504 = GatewayTimeoutError;
|
|
1482
|
+
const MailboxesListThreadMessagesPathParams = /* @__PURE__ */ Schema.Struct({
|
|
1483
|
+
id: MailboxId,
|
|
1484
|
+
threadId: MailboxThreadId
|
|
1485
|
+
});
|
|
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]))
|
|
1489
|
+
});
|
|
1490
|
+
const MailboxesListThreadMessages200 = MailboxMessagePage;
|
|
1491
|
+
const MailboxesListThreadMessages401 = UnauthorizedError;
|
|
1492
|
+
const MailboxesListThreadMessages403 = ForbiddenError;
|
|
1493
|
+
const MailboxesListThreadMessages404 = ResourceNotFoundError;
|
|
1494
|
+
const MailboxesListThreadMessages422 = ValidationError;
|
|
1495
|
+
const MailboxesListThreadMessages500 = InternalError;
|
|
1496
|
+
const MailboxesListThreadMessages504 = GatewayTimeoutError;
|
|
1497
|
+
const MailboxesListThreadNotesPathParams = /* @__PURE__ */ Schema.Struct({
|
|
1498
|
+
id: MailboxId,
|
|
1499
|
+
threadId: MailboxThreadId
|
|
1500
|
+
});
|
|
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]))
|
|
1504
|
+
});
|
|
1505
|
+
const MailboxesListThreadNotes200 = MailboxNotePage;
|
|
1506
|
+
const MailboxesListThreadNotes401 = UnauthorizedError;
|
|
1507
|
+
const MailboxesListThreadNotes403 = ForbiddenError;
|
|
1508
|
+
const MailboxesListThreadNotes404 = ResourceNotFoundError;
|
|
1509
|
+
const MailboxesListThreadNotes422 = ValidationError;
|
|
1510
|
+
const MailboxesListThreadNotes500 = InternalError;
|
|
1511
|
+
const MailboxesListThreadNotes504 = GatewayTimeoutError;
|
|
1512
|
+
const MailboxesCreateNotePathParams = /* @__PURE__ */ Schema.Struct({
|
|
1513
|
+
id: MailboxId,
|
|
1514
|
+
threadId: MailboxThreadId
|
|
1515
|
+
});
|
|
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]))
|
|
1520
|
+
});
|
|
1521
|
+
const MailboxesCreateNote201 = MailboxNote;
|
|
1522
|
+
const MailboxesCreateNote401 = UnauthorizedError;
|
|
1523
|
+
const MailboxesCreateNote403 = ForbiddenError;
|
|
1524
|
+
const MailboxesCreateNote404 = ResourceNotFoundError;
|
|
1525
|
+
const MailboxesCreateNote422 = ValidationError;
|
|
1526
|
+
const MailboxesCreateNote500 = InternalError;
|
|
1527
|
+
const MailboxesCreateNote504 = GatewayTimeoutError;
|
|
1528
|
+
const MailboxesDeleteNotePathParams = /* @__PURE__ */ Schema.Struct({
|
|
1529
|
+
id: MailboxId,
|
|
1530
|
+
threadId: MailboxThreadId,
|
|
1531
|
+
noteId: MailboxNoteId
|
|
1532
|
+
});
|
|
1533
|
+
const MailboxesDeleteNote200 = SuccessResponse;
|
|
1534
|
+
const MailboxesDeleteNote401 = UnauthorizedError;
|
|
1535
|
+
const MailboxesDeleteNote403 = ForbiddenError;
|
|
1536
|
+
const MailboxesDeleteNote404 = ResourceNotFoundError;
|
|
1537
|
+
const MailboxesDeleteNote422 = ValidationError;
|
|
1538
|
+
const MailboxesDeleteNote500 = InternalError;
|
|
1539
|
+
const MailboxesDeleteNote504 = GatewayTimeoutError;
|
|
1540
|
+
const MailboxesUpdateNotePathParams = /* @__PURE__ */ Schema.Struct({
|
|
1541
|
+
id: MailboxId,
|
|
1542
|
+
threadId: MailboxThreadId,
|
|
1543
|
+
noteId: MailboxNoteId
|
|
1544
|
+
});
|
|
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]))
|
|
1549
|
+
});
|
|
1550
|
+
const MailboxesUpdateNote200 = MailboxNote;
|
|
1551
|
+
const MailboxesUpdateNote401 = UnauthorizedError;
|
|
1552
|
+
const MailboxesUpdateNote403 = ForbiddenError;
|
|
1553
|
+
const MailboxesUpdateNote404 = ResourceNotFoundError;
|
|
1554
|
+
const MailboxesUpdateNote422 = ValidationError;
|
|
1555
|
+
const MailboxesUpdateNote500 = InternalError;
|
|
1556
|
+
const MailboxesUpdateNote504 = GatewayTimeoutError;
|
|
1557
|
+
var MailboxesGroup = class extends HttpApiGroup.make("Mailboxes").add(HttpApiEndpoint.get("mailboxesList", "/v1/mailboxes", {
|
|
1558
|
+
query: MailboxesListQuery,
|
|
1559
|
+
success: MailboxesList200,
|
|
1560
|
+
error: [
|
|
1561
|
+
MailboxesList401.pipe(HttpApiSchema.status(401)),
|
|
1562
|
+
MailboxesList403.pipe(HttpApiSchema.status(403)),
|
|
1563
|
+
MailboxesList422.pipe(HttpApiSchema.status(422)),
|
|
1564
|
+
MailboxesList500,
|
|
1565
|
+
MailboxesList504.pipe(HttpApiSchema.status(504))
|
|
1566
|
+
]
|
|
1567
|
+
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "mailboxes.list").annotate(OpenApi.Summary, "List mailboxes").annotate(OpenApi.Description, "Returns summaries of the mailboxes the caller can read, newest first, filterable by creation time (`after`, `before`). Pass `nextCursor` back as `cursor` for the next page; it is null on the last page. Read a mailbox's endpoints and metadata with `GET /v1/mailboxes/{id}`."), HttpApiEndpoint.post("mailboxesCreate", "/v1/mailboxes", {
|
|
1568
|
+
payload: MailboxesCreateRequestJson,
|
|
1569
|
+
success: MailboxesCreate201.pipe(HttpApiSchema.status(201)),
|
|
1570
|
+
error: [
|
|
1571
|
+
MailboxesCreate401.pipe(HttpApiSchema.status(401)),
|
|
1572
|
+
MailboxesCreate402.pipe(HttpApiSchema.status(402)),
|
|
1573
|
+
MailboxesCreate403.pipe(HttpApiSchema.status(403)),
|
|
1574
|
+
MailboxesCreate404.pipe(HttpApiSchema.status(404)),
|
|
1575
|
+
MailboxesCreate409.pipe(HttpApiSchema.status(409)),
|
|
1576
|
+
MailboxesCreate422.pipe(HttpApiSchema.status(422)),
|
|
1577
|
+
MailboxesCreate500,
|
|
1578
|
+
MailboxesCreate502.pipe(HttpApiSchema.status(502)),
|
|
1579
|
+
MailboxesCreate504.pipe(HttpApiSchema.status(504))
|
|
1580
|
+
]
|
|
1581
|
+
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "mailboxes.create").annotate(OpenApi.Summary, "Create a mailbox").annotate(OpenApi.Description, "Creates a mailbox with one endpoint and returns it with status 201; the caller gets an admin grant on it. Email is the channel a mailbox endpoint uses today; another channel is refused (422). An email endpoint's address must be under the organization's Samva-hosted mail domain or a verified domain with receiving enabled, and the mailbox sends from it. The slug defaults to the address's local part. Pass `slug` when that is taken or not a valid slug. The mailbox receives mail from now on; mail that arrived earlier is not added to it. Conflicts if the address or slug is already in use. Returns 402 when the organization is at its plan's mailbox allowance or at its mailbox storage allowance; incoming mail is still received past the storage allowance."), HttpApiEndpoint.get("mailboxesGet", "/v1/mailboxes/:id", {
|
|
1582
|
+
params: MailboxesGetPathParams,
|
|
1583
|
+
success: MailboxesGet200,
|
|
1584
|
+
error: [
|
|
1585
|
+
MailboxesGet401.pipe(HttpApiSchema.status(401)),
|
|
1586
|
+
MailboxesGet403.pipe(HttpApiSchema.status(403)),
|
|
1587
|
+
MailboxesGet404.pipe(HttpApiSchema.status(404)),
|
|
1588
|
+
MailboxesGet422.pipe(HttpApiSchema.status(422)),
|
|
1589
|
+
MailboxesGet500,
|
|
1590
|
+
MailboxesGet504.pipe(HttpApiSchema.status(504))
|
|
1591
|
+
]
|
|
1592
|
+
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "mailboxes.get").annotate(OpenApi.Summary, "Get a mailbox").annotate(OpenApi.Description, "Returns a mailbox with its endpoints and metadata; each endpoint says whether it is the mailbox's default on its channel. Its grants are `GET /v1/mailboxes/{id}/grants` and its send policies `GET /v1/mailboxes/{id}/policies`."), HttpApiEndpoint.delete("mailboxesRemove", "/v1/mailboxes/:id", {
|
|
1593
|
+
params: MailboxesRemovePathParams,
|
|
1594
|
+
success: MailboxesRemove200,
|
|
1595
|
+
error: [
|
|
1596
|
+
MailboxesRemove401.pipe(HttpApiSchema.status(401)),
|
|
1597
|
+
MailboxesRemove403.pipe(HttpApiSchema.status(403)),
|
|
1598
|
+
MailboxesRemove404.pipe(HttpApiSchema.status(404)),
|
|
1599
|
+
MailboxesRemove422.pipe(HttpApiSchema.status(422)),
|
|
1600
|
+
MailboxesRemove500,
|
|
1601
|
+
MailboxesRemove502.pipe(HttpApiSchema.status(502)),
|
|
1602
|
+
MailboxesRemove504.pipe(HttpApiSchema.status(504))
|
|
1603
|
+
]
|
|
1604
|
+
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "mailboxes.remove").annotate(OpenApi.Summary, "Delete a mailbox").annotate(OpenApi.Description, "Deletes a mailbox with its endpoints, threads, drafts, and history. The messages it received stay with the organization. The mailbox leaves every API key scope and webhook endpoint filter that named it; a key or endpoint left with no mailbox is disabled."), HttpApiEndpoint.patch("mailboxesUpdate", "/v1/mailboxes/:id", {
|
|
1605
|
+
params: MailboxesUpdatePathParams,
|
|
1606
|
+
payload: MailboxesUpdateRequestJson,
|
|
1607
|
+
success: MailboxesUpdate200,
|
|
1608
|
+
error: [
|
|
1609
|
+
MailboxesUpdate401.pipe(HttpApiSchema.status(401)),
|
|
1610
|
+
MailboxesUpdate403.pipe(HttpApiSchema.status(403)),
|
|
1611
|
+
MailboxesUpdate404.pipe(HttpApiSchema.status(404)),
|
|
1612
|
+
MailboxesUpdate422.pipe(HttpApiSchema.status(422)),
|
|
1613
|
+
MailboxesUpdate500,
|
|
1614
|
+
MailboxesUpdate504.pipe(HttpApiSchema.status(504))
|
|
1615
|
+
]
|
|
1616
|
+
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "mailboxes.update").annotate(OpenApi.Summary, "Update a mailbox").annotate(OpenApi.Description, "Updates the fields you name and keeps the rest. `metadata` merges into the stored metadata by key, and a `null` value deletes that key. Change an endpoint's sender name or default with `PATCH /v1/mailboxes/{id}/endpoints/{endpointId}`."), HttpApiEndpoint.get("mailboxesListActions", "/v1/mailboxes/:id/actions", {
|
|
1617
|
+
params: MailboxesListActionsPathParams,
|
|
1618
|
+
query: MailboxesListActionsQuery,
|
|
1619
|
+
success: MailboxesListActions200,
|
|
1620
|
+
error: [
|
|
1621
|
+
MailboxesListActions401.pipe(HttpApiSchema.status(401)),
|
|
1622
|
+
MailboxesListActions403.pipe(HttpApiSchema.status(403)),
|
|
1623
|
+
MailboxesListActions404.pipe(HttpApiSchema.status(404)),
|
|
1624
|
+
MailboxesListActions422.pipe(HttpApiSchema.status(422)),
|
|
1625
|
+
MailboxesListActions500,
|
|
1626
|
+
MailboxesListActions504.pipe(HttpApiSchema.status(504))
|
|
1627
|
+
]
|
|
1628
|
+
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "mailboxes.listActions").annotate(OpenApi.Summary, "List mailbox actions").annotate(OpenApi.Description, "Returns the actions proposed on a mailbox, newest first, filterable by `threadId`, `state` (`approvalRequired` lists the sends waiting for a person), and creation time (`after`, `before`). Filters apply together within the mailbox. Pass `nextCursor` back as `cursor` for the next page; it is null on the last page."), HttpApiEndpoint.get("mailboxesGetAction", "/v1/mailboxes/:id/actions/:actionId", {
|
|
1629
|
+
params: MailboxesGetActionPathParams,
|
|
1630
|
+
success: MailboxesGetAction200,
|
|
1631
|
+
error: [
|
|
1632
|
+
MailboxesGetAction401.pipe(HttpApiSchema.status(401)),
|
|
1633
|
+
MailboxesGetAction403.pipe(HttpApiSchema.status(403)),
|
|
1634
|
+
MailboxesGetAction404.pipe(HttpApiSchema.status(404)),
|
|
1635
|
+
MailboxesGetAction422.pipe(HttpApiSchema.status(422)),
|
|
1636
|
+
MailboxesGetAction500,
|
|
1637
|
+
MailboxesGetAction504.pipe(HttpApiSchema.status(504))
|
|
1638
|
+
]
|
|
1639
|
+
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "mailboxes.getAction").annotate(OpenApi.Summary, "Get a mailbox action").annotate(OpenApi.Description, "Returns one action with its current progress. Send actions expose their immutable approved content, deadline, problem, and accepted receipt. A caller with mailbox read access may inspect actions; send-only callers may inspect only their own proposals. Acceptance and mailbox completion do not mean recipient delivery."), HttpApiEndpoint.post("mailboxesApproveAction", "/v1/mailboxes/:id/actions/:actionId/approve", {
|
|
1640
|
+
params: MailboxesApproveActionPathParams,
|
|
1641
|
+
success: [MailboxesApproveAction200, MailboxesApproveAction202.pipe(HttpApiSchema.status(202))],
|
|
1642
|
+
error: [
|
|
1643
|
+
MailboxesApproveAction401.pipe(HttpApiSchema.status(401)),
|
|
1644
|
+
MailboxesApproveAction402.pipe(HttpApiSchema.status(402)),
|
|
1645
|
+
MailboxesApproveAction403.pipe(HttpApiSchema.status(403)),
|
|
1646
|
+
MailboxesApproveAction404.pipe(HttpApiSchema.status(404)),
|
|
1647
|
+
MailboxesApproveAction409.pipe(HttpApiSchema.status(409)),
|
|
1648
|
+
MailboxesApproveAction422.pipe(HttpApiSchema.status(422)),
|
|
1649
|
+
MailboxesApproveAction429.pipe(HttpApiSchema.status(429)),
|
|
1650
|
+
MailboxesApproveAction500,
|
|
1651
|
+
MailboxesApproveAction502.pipe(HttpApiSchema.status(502)),
|
|
1652
|
+
MailboxesApproveAction503.pipe(HttpApiSchema.status(503)),
|
|
1653
|
+
MailboxesApproveAction504.pipe(HttpApiSchema.status(504))
|
|
1654
|
+
]
|
|
1655
|
+
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "mailboxes.approveAction").annotate(OpenApi.Summary, "Approve a mailbox action").annotate(OpenApi.Description, "Records approval of a send and returns 202 while it is pending. A send is queued for automatic retry within 15 minutes of approval; repeating approval does not extend this deadline. Accepted, completed, and notSent replays return 200. No expiry applies before approval. Only a person signed in or through OAuth may approve, and never the proposer. Non-send approvals execute synchronously and return 200 with their own execution states."), HttpApiEndpoint.post("mailboxesCancelAction", "/v1/mailboxes/:id/actions/:actionId/cancel", {
|
|
1656
|
+
params: MailboxesCancelActionPathParams,
|
|
1657
|
+
success: [MailboxesCancelAction200, MailboxesCancelAction202.pipe(HttpApiSchema.status(202))],
|
|
1658
|
+
error: [
|
|
1659
|
+
MailboxesCancelAction401.pipe(HttpApiSchema.status(401)),
|
|
1660
|
+
MailboxesCancelAction402.pipe(HttpApiSchema.status(402)),
|
|
1661
|
+
MailboxesCancelAction403.pipe(HttpApiSchema.status(403)),
|
|
1662
|
+
MailboxesCancelAction404.pipe(HttpApiSchema.status(404)),
|
|
1663
|
+
MailboxesCancelAction409.pipe(HttpApiSchema.status(409)),
|
|
1664
|
+
MailboxesCancelAction422.pipe(HttpApiSchema.status(422)),
|
|
1665
|
+
MailboxesCancelAction429.pipe(HttpApiSchema.status(429)),
|
|
1666
|
+
MailboxesCancelAction500,
|
|
1667
|
+
MailboxesCancelAction502.pipe(HttpApiSchema.status(502)),
|
|
1668
|
+
MailboxesCancelAction503.pipe(HttpApiSchema.status(503)),
|
|
1669
|
+
MailboxesCancelAction504.pipe(HttpApiSchema.status(504))
|
|
1670
|
+
]
|
|
1671
|
+
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "mailboxes.cancelAction").annotate(OpenApi.Summary, "Cancel a mailbox send").annotate(OpenApi.Description, "Cancels a definitely unsent action and reopens its draft atomically. Only an authorized person who proposed the send or can approve actions may cancel. Accepted sends return 409 with their winning receipt and cannot be withdrawn. An uncertain send requires reconciliation and cannot be cancelled as unsent."), HttpApiEndpoint.post("mailboxesDenyAction", "/v1/mailboxes/:id/actions/:actionId/deny", {
|
|
1672
|
+
params: MailboxesDenyActionPathParams,
|
|
1673
|
+
payload: MailboxesDenyActionRequestJson,
|
|
1674
|
+
success: MailboxesDenyAction200,
|
|
1675
|
+
error: [
|
|
1676
|
+
MailboxesDenyAction401.pipe(HttpApiSchema.status(401)),
|
|
1677
|
+
MailboxesDenyAction403.pipe(HttpApiSchema.status(403)),
|
|
1678
|
+
MailboxesDenyAction404.pipe(HttpApiSchema.status(404)),
|
|
1679
|
+
MailboxesDenyAction409.pipe(HttpApiSchema.status(409)),
|
|
1680
|
+
MailboxesDenyAction422.pipe(HttpApiSchema.status(422)),
|
|
1681
|
+
MailboxesDenyAction500,
|
|
1682
|
+
MailboxesDenyAction504.pipe(HttpApiSchema.status(504))
|
|
1683
|
+
]
|
|
1684
|
+
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "mailboxes.denyAction").annotate(OpenApi.Summary, "Deny a mailbox action").annotate(OpenApi.Description, "Denies an action waiting for approval with a reason and returns it without executing it. Only a person signed in or through OAuth may deny, and never the one who proposed it."), HttpApiEndpoint.post("mailboxesRetryAction", "/v1/mailboxes/:id/actions/:actionId/retry", {
|
|
1685
|
+
params: MailboxesRetryActionPathParams,
|
|
1686
|
+
success: [MailboxesRetryAction200, MailboxesRetryAction202.pipe(HttpApiSchema.status(202))],
|
|
1687
|
+
error: [
|
|
1688
|
+
MailboxesRetryAction401.pipe(HttpApiSchema.status(401)),
|
|
1689
|
+
MailboxesRetryAction402.pipe(HttpApiSchema.status(402)),
|
|
1690
|
+
MailboxesRetryAction403.pipe(HttpApiSchema.status(403)),
|
|
1691
|
+
MailboxesRetryAction404.pipe(HttpApiSchema.status(404)),
|
|
1692
|
+
MailboxesRetryAction409.pipe(HttpApiSchema.status(409)),
|
|
1693
|
+
MailboxesRetryAction422.pipe(HttpApiSchema.status(422)),
|
|
1694
|
+
MailboxesRetryAction429.pipe(HttpApiSchema.status(429)),
|
|
1695
|
+
MailboxesRetryAction500,
|
|
1696
|
+
MailboxesRetryAction502.pipe(HttpApiSchema.status(502)),
|
|
1697
|
+
MailboxesRetryAction503.pipe(HttpApiSchema.status(503)),
|
|
1698
|
+
MailboxesRetryAction504.pipe(HttpApiSchema.status(504))
|
|
1699
|
+
]
|
|
1700
|
+
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "mailboxes.retryAction").annotate(OpenApi.Summary, "Resume a mailbox send").annotate(OpenApi.Description, "Resumes the same action only after its previous execution is confirmed ended and safe continuation is possible. Only an authorized person who proposed the send or can approve actions may retry. Automatic waits need no manual Retry. This does not grant new approval, reset the original deadline, replace the message identity, or resubmit an accepted or uncertain send."), HttpApiEndpoint.get("mailboxesGetAgentActivity", "/v1/mailboxes/:id/agent-activity", {
|
|
1701
|
+
params: MailboxesGetAgentActivityPathParams,
|
|
1702
|
+
query: MailboxesGetAgentActivityQuery,
|
|
1703
|
+
success: MailboxesGetAgentActivity200,
|
|
1704
|
+
error: [
|
|
1705
|
+
MailboxesGetAgentActivity401.pipe(HttpApiSchema.status(401)),
|
|
1706
|
+
MailboxesGetAgentActivity403.pipe(HttpApiSchema.status(403)),
|
|
1707
|
+
MailboxesGetAgentActivity404.pipe(HttpApiSchema.status(404)),
|
|
1708
|
+
MailboxesGetAgentActivity422.pipe(HttpApiSchema.status(422)),
|
|
1709
|
+
MailboxesGetAgentActivity500,
|
|
1710
|
+
MailboxesGetAgentActivity504.pipe(HttpApiSchema.status(504))
|
|
1711
|
+
]
|
|
1712
|
+
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "mailboxes.getAgentActivity").annotate(OpenApi.Summary, "Get mailbox activity").annotate(OpenApi.Description, "Counts the actions proposed and events recorded on a mailbox between `after` and `before` (omit both for all time), and the sends waiting for approval now. List the actions and events themselves with `GET /v1/mailboxes/{id}/actions` and `GET /v1/mailboxes/{id}/events`."), HttpApiEndpoint.get("mailboxesListDrafts", "/v1/mailboxes/:id/drafts", {
|
|
1713
|
+
params: MailboxesListDraftsPathParams,
|
|
1714
|
+
query: MailboxesListDraftsQuery,
|
|
1715
|
+
success: MailboxesListDrafts200,
|
|
1716
|
+
error: [
|
|
1717
|
+
MailboxesListDrafts401.pipe(HttpApiSchema.status(401)),
|
|
1718
|
+
MailboxesListDrafts403.pipe(HttpApiSchema.status(403)),
|
|
1719
|
+
MailboxesListDrafts404.pipe(HttpApiSchema.status(404)),
|
|
1720
|
+
MailboxesListDrafts422.pipe(HttpApiSchema.status(422)),
|
|
1721
|
+
MailboxesListDrafts500,
|
|
1722
|
+
MailboxesListDrafts504.pipe(HttpApiSchema.status(504))
|
|
1723
|
+
]
|
|
1724
|
+
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "mailboxes.listDrafts").annotate(OpenApi.Summary, "List drafts").annotate(OpenApi.Description, "Returns summaries of the caller's unsent drafts in the mailbox, newest first, optionally for one thread. Pass `nextCursor` back as `cursor` for the next page; it is null on the last page. Read a draft's body with `GET /v1/mailboxes/{id}/drafts/{draftId}`."), HttpApiEndpoint.post("mailboxesCreateDraft", "/v1/mailboxes/:id/drafts", {
|
|
1725
|
+
params: MailboxesCreateDraftPathParams,
|
|
1726
|
+
payload: MailboxesCreateDraftRequestJson,
|
|
1727
|
+
success: MailboxesCreateDraft201.pipe(HttpApiSchema.status(201)),
|
|
1728
|
+
error: [
|
|
1729
|
+
MailboxesCreateDraft401.pipe(HttpApiSchema.status(401)),
|
|
1730
|
+
MailboxesCreateDraft403.pipe(HttpApiSchema.status(403)),
|
|
1731
|
+
MailboxesCreateDraft404.pipe(HttpApiSchema.status(404)),
|
|
1732
|
+
MailboxesCreateDraft422.pipe(HttpApiSchema.status(422)),
|
|
1733
|
+
MailboxesCreateDraft500,
|
|
1734
|
+
MailboxesCreateDraft504.pipe(HttpApiSchema.status(504))
|
|
1735
|
+
]
|
|
1736
|
+
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "mailboxes.createDraft").annotate(OpenApi.Summary, "Create a draft").annotate(OpenApi.Description, "Saves a draft of a new message, or of a reply when `inReplyToMessageId` names a message in the mailbox, and returns it with status 201. Email drafts are the kind a mailbox saves today; another channel is refused (422). Send it with `POST /v1/mailboxes/{id}/drafts/{draftId}/send`."), HttpApiEndpoint.get("mailboxesGetDraft", "/v1/mailboxes/:id/drafts/:draftId", {
|
|
1737
|
+
params: MailboxesGetDraftPathParams,
|
|
1738
|
+
success: MailboxesGetDraft200,
|
|
1739
|
+
error: [
|
|
1740
|
+
MailboxesGetDraft401.pipe(HttpApiSchema.status(401)),
|
|
1741
|
+
MailboxesGetDraft403.pipe(HttpApiSchema.status(403)),
|
|
1742
|
+
MailboxesGetDraft404.pipe(HttpApiSchema.status(404)),
|
|
1743
|
+
MailboxesGetDraft422.pipe(HttpApiSchema.status(422)),
|
|
1744
|
+
MailboxesGetDraft500,
|
|
1745
|
+
MailboxesGetDraft504.pipe(HttpApiSchema.status(504))
|
|
1746
|
+
]
|
|
1747
|
+
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "mailboxes.getDraft").annotate(OpenApi.Summary, "Get a draft").annotate(OpenApi.Description, "Returns one of the caller's drafts, or the draft of a send waiting for approval when the caller may approve it."), HttpApiEndpoint.delete("mailboxesDeleteDraft", "/v1/mailboxes/:id/drafts/:draftId", {
|
|
1748
|
+
params: MailboxesDeleteDraftPathParams,
|
|
1749
|
+
success: MailboxesDeleteDraft200,
|
|
1750
|
+
error: [
|
|
1751
|
+
MailboxesDeleteDraft401.pipe(HttpApiSchema.status(401)),
|
|
1752
|
+
MailboxesDeleteDraft403.pipe(HttpApiSchema.status(403)),
|
|
1753
|
+
MailboxesDeleteDraft404.pipe(HttpApiSchema.status(404)),
|
|
1754
|
+
MailboxesDeleteDraft422.pipe(HttpApiSchema.status(422)),
|
|
1755
|
+
MailboxesDeleteDraft500,
|
|
1756
|
+
MailboxesDeleteDraft504.pipe(HttpApiSchema.status(504))
|
|
1757
|
+
]
|
|
1758
|
+
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "mailboxes.deleteDraft").annotate(OpenApi.Summary, "Delete a draft").annotate(OpenApi.Description, "Discards an unsent draft."), HttpApiEndpoint.patch("mailboxesUpdateDraft", "/v1/mailboxes/:id/drafts/:draftId", {
|
|
1759
|
+
params: MailboxesUpdateDraftPathParams,
|
|
1760
|
+
payload: MailboxesUpdateDraftRequestJson,
|
|
1761
|
+
success: MailboxesUpdateDraft200,
|
|
1762
|
+
error: [
|
|
1763
|
+
MailboxesUpdateDraft401.pipe(HttpApiSchema.status(401)),
|
|
1764
|
+
MailboxesUpdateDraft403.pipe(HttpApiSchema.status(403)),
|
|
1765
|
+
MailboxesUpdateDraft404.pipe(HttpApiSchema.status(404)),
|
|
1766
|
+
MailboxesUpdateDraft409.pipe(HttpApiSchema.status(409)),
|
|
1767
|
+
MailboxesUpdateDraft422.pipe(HttpApiSchema.status(422)),
|
|
1768
|
+
MailboxesUpdateDraft500,
|
|
1769
|
+
MailboxesUpdateDraft504.pipe(HttpApiSchema.status(504))
|
|
1770
|
+
]
|
|
1771
|
+
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "mailboxes.updateDraft").annotate(OpenApi.Summary, "Update a draft").annotate(OpenApi.Description, "Updates the fields you name and keeps the rest; `null` clears an optional field. A draft whose send waits for approval cannot change and conflicts."), HttpApiEndpoint.post("mailboxesSendDraft", "/v1/mailboxes/:id/drafts/:draftId/send", {
|
|
1772
|
+
params: MailboxesSendDraftPathParams,
|
|
1773
|
+
headers: MailboxesSendDraftHeaders,
|
|
1774
|
+
success: [MailboxesSendDraft200, MailboxesSendDraft202.pipe(HttpApiSchema.status(202))],
|
|
1775
|
+
error: [
|
|
1776
|
+
MailboxesSendDraft401.pipe(HttpApiSchema.status(401)),
|
|
1777
|
+
MailboxesSendDraft402.pipe(HttpApiSchema.status(402)),
|
|
1778
|
+
MailboxesSendDraft403.pipe(HttpApiSchema.status(403)),
|
|
1779
|
+
MailboxesSendDraft404.pipe(HttpApiSchema.status(404)),
|
|
1780
|
+
MailboxesSendDraft409.pipe(HttpApiSchema.status(409)),
|
|
1781
|
+
MailboxesSendDraft422.pipe(HttpApiSchema.status(422)),
|
|
1782
|
+
MailboxesSendDraft429.pipe(HttpApiSchema.status(429)),
|
|
1783
|
+
MailboxesSendDraft500,
|
|
1784
|
+
MailboxesSendDraft502.pipe(HttpApiSchema.status(502)),
|
|
1785
|
+
MailboxesSendDraft503.pipe(HttpApiSchema.status(503)),
|
|
1786
|
+
MailboxesSendDraft504.pipe(HttpApiSchema.status(504))
|
|
1787
|
+
]
|
|
1788
|
+
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "mailboxes.sendDraft").annotate(OpenApi.Summary, "Send a draft").annotate(OpenApi.Description, "Sends one of the caller's drafts: a reply draft in its thread, any other draft as a new conversation. A draft needs recipients, a subject, and a body."), HttpApiEndpoint.post("mailboxesCreateEndpoint", "/v1/mailboxes/:id/endpoints", {
|
|
1789
|
+
params: MailboxesCreateEndpointPathParams,
|
|
1790
|
+
payload: MailboxesCreateEndpointRequestJson,
|
|
1791
|
+
success: MailboxesCreateEndpoint201.pipe(HttpApiSchema.status(201)),
|
|
1792
|
+
error: [
|
|
1793
|
+
MailboxesCreateEndpoint401.pipe(HttpApiSchema.status(401)),
|
|
1794
|
+
MailboxesCreateEndpoint403.pipe(HttpApiSchema.status(403)),
|
|
1795
|
+
MailboxesCreateEndpoint404.pipe(HttpApiSchema.status(404)),
|
|
1796
|
+
MailboxesCreateEndpoint409.pipe(HttpApiSchema.status(409)),
|
|
1797
|
+
MailboxesCreateEndpoint422.pipe(HttpApiSchema.status(422)),
|
|
1798
|
+
MailboxesCreateEndpoint500,
|
|
1799
|
+
MailboxesCreateEndpoint504.pipe(HttpApiSchema.status(504))
|
|
1800
|
+
]
|
|
1801
|
+
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "mailboxes.createEndpoint").annotate(OpenApi.Summary, "Add an endpoint to a mailbox").annotate(OpenApi.Description, "Adds an endpoint to a mailbox and returns the mailbox with status 201. It follows the same rules as the endpoint of a new mailbox: email is the channel a mailbox endpoint uses today (422 otherwise), the address must be under the organization's Samva-hosted mail domain or a verified domain with receiving enabled, and no mailbox may already hold it (409). Messages sent to it reach the mailbox from now on. It becomes the default on its channel only when the mailbox has no endpoint there yet."), HttpApiEndpoint.delete("mailboxesRemoveEndpoint", "/v1/mailboxes/:id/endpoints/:endpointId", {
|
|
1802
|
+
params: MailboxesRemoveEndpointPathParams,
|
|
1803
|
+
success: MailboxesRemoveEndpoint200,
|
|
1804
|
+
error: [
|
|
1805
|
+
MailboxesRemoveEndpoint401.pipe(HttpApiSchema.status(401)),
|
|
1806
|
+
MailboxesRemoveEndpoint403.pipe(HttpApiSchema.status(403)),
|
|
1807
|
+
MailboxesRemoveEndpoint404.pipe(HttpApiSchema.status(404)),
|
|
1808
|
+
MailboxesRemoveEndpoint422.pipe(HttpApiSchema.status(422)),
|
|
1809
|
+
MailboxesRemoveEndpoint500,
|
|
1810
|
+
MailboxesRemoveEndpoint504.pipe(HttpApiSchema.status(504))
|
|
1811
|
+
]
|
|
1812
|
+
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "mailboxes.removeEndpoint").annotate(OpenApi.Summary, "Remove an endpoint from a mailbox").annotate(OpenApi.Description, "Removes an endpoint from a mailbox and returns the mailbox. Messages sent to it stop reaching the mailbox; its existing threads and messages stay, and replies in them leave from the mailbox's default endpoint on their channel. A mailbox keeps at least one endpoint, so removing the last one is refused (422). When the removed endpoint was the default on its channel, the oldest remaining endpoint there becomes the default."), HttpApiEndpoint.patch("mailboxesUpdateEndpoint", "/v1/mailboxes/:id/endpoints/:endpointId", {
|
|
1813
|
+
params: MailboxesUpdateEndpointPathParams,
|
|
1814
|
+
payload: MailboxesUpdateEndpointRequestJson,
|
|
1815
|
+
success: MailboxesUpdateEndpoint200,
|
|
1816
|
+
error: [
|
|
1817
|
+
MailboxesUpdateEndpoint401.pipe(HttpApiSchema.status(401)),
|
|
1818
|
+
MailboxesUpdateEndpoint403.pipe(HttpApiSchema.status(403)),
|
|
1819
|
+
MailboxesUpdateEndpoint404.pipe(HttpApiSchema.status(404)),
|
|
1820
|
+
MailboxesUpdateEndpoint422.pipe(HttpApiSchema.status(422)),
|
|
1821
|
+
MailboxesUpdateEndpoint500,
|
|
1822
|
+
MailboxesUpdateEndpoint504.pipe(HttpApiSchema.status(504))
|
|
1823
|
+
]
|
|
1824
|
+
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "mailboxes.updateEndpoint").annotate(OpenApi.Summary, "Update a mailbox endpoint").annotate(OpenApi.Description, "Updates the fields you name and keeps the rest, and returns the mailbox. `displayName` is the name messages sent from the endpoint carry; null falls back to the mailbox's name. `default: true` makes the endpoint the one the mailbox starts new conversations from on its channel; replies always leave from the endpoint of their thread."), HttpApiEndpoint.get("mailboxesListEvents", "/v1/mailboxes/:id/events", {
|
|
1825
|
+
params: MailboxesListEventsPathParams,
|
|
1826
|
+
query: MailboxesListEventsQuery,
|
|
1827
|
+
success: MailboxesListEvents200,
|
|
1828
|
+
error: [
|
|
1829
|
+
MailboxesListEvents401.pipe(HttpApiSchema.status(401)),
|
|
1830
|
+
MailboxesListEvents403.pipe(HttpApiSchema.status(403)),
|
|
1831
|
+
MailboxesListEvents404.pipe(HttpApiSchema.status(404)),
|
|
1832
|
+
MailboxesListEvents422.pipe(HttpApiSchema.status(422)),
|
|
1833
|
+
MailboxesListEvents500,
|
|
1834
|
+
MailboxesListEvents504.pipe(HttpApiSchema.status(504))
|
|
1835
|
+
]
|
|
1836
|
+
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "mailboxes.listEvents").annotate(OpenApi.Summary, "List mailbox events").annotate(OpenApi.Description, "Returns mailbox audit records, newest first, filterable by when they happened (`after`, `before`). Audit event types: `mailbox.created`, `endpoint.attached`, `endpoint.detached`, `message.received`, `message.released`, `message.sent`, `thread.created`, `action.proposed`, `action.policy_decided`, `action.approval_requested`, `action.approval_resolved`, `action.accepted`, `action.executed`, `action.failed`. Thread and draft changes have no dedicated audit event types. Pass `nextCursor` back as `cursor` for the next page; it is null on the last page."), HttpApiEndpoint.get("mailboxesListFolders", "/v1/mailboxes/:id/folders", {
|
|
1837
|
+
params: MailboxesListFoldersPathParams,
|
|
1838
|
+
success: MailboxesListFolders200,
|
|
1839
|
+
error: [
|
|
1840
|
+
MailboxesListFolders401.pipe(HttpApiSchema.status(401)),
|
|
1841
|
+
MailboxesListFolders403.pipe(HttpApiSchema.status(403)),
|
|
1842
|
+
MailboxesListFolders404.pipe(HttpApiSchema.status(404)),
|
|
1843
|
+
MailboxesListFolders422.pipe(HttpApiSchema.status(422)),
|
|
1844
|
+
MailboxesListFolders500,
|
|
1845
|
+
MailboxesListFolders504.pipe(HttpApiSchema.status(504))
|
|
1846
|
+
]
|
|
1847
|
+
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "mailboxes.listFolders").annotate(OpenApi.Summary, "List mailbox folders").annotate(OpenApi.Description, "Returns each folder that holds a thread with its thread count and the caller's unread count. The folder set is fixed, so the list is never paged."), HttpApiEndpoint.get("mailboxesListGrants", "/v1/mailboxes/:id/grants", {
|
|
1848
|
+
params: MailboxesListGrantsPathParams,
|
|
1849
|
+
query: MailboxesListGrantsQuery,
|
|
1850
|
+
success: MailboxesListGrants200,
|
|
1851
|
+
error: [
|
|
1852
|
+
MailboxesListGrants401.pipe(HttpApiSchema.status(401)),
|
|
1853
|
+
MailboxesListGrants403.pipe(HttpApiSchema.status(403)),
|
|
1854
|
+
MailboxesListGrants404.pipe(HttpApiSchema.status(404)),
|
|
1855
|
+
MailboxesListGrants422.pipe(HttpApiSchema.status(422)),
|
|
1856
|
+
MailboxesListGrants500,
|
|
1857
|
+
MailboxesListGrants504.pipe(HttpApiSchema.status(504))
|
|
1858
|
+
]
|
|
1859
|
+
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "mailboxes.listGrants").annotate(OpenApi.Summary, "List mailbox grants").annotate(OpenApi.Description, "Returns who can use the mailbox, what each grant allows, and whether its sends wait for approval, newest first. Pass `nextCursor` back as `cursor` for the next page; it is null on the last page."), HttpApiEndpoint.post("mailboxesCreateGrant", "/v1/mailboxes/:id/grants", {
|
|
1860
|
+
params: MailboxesCreateGrantPathParams,
|
|
1861
|
+
payload: MailboxesCreateGrantRequestJson,
|
|
1862
|
+
success: MailboxesCreateGrant201.pipe(HttpApiSchema.status(201)),
|
|
1863
|
+
error: [
|
|
1864
|
+
MailboxesCreateGrant401.pipe(HttpApiSchema.status(401)),
|
|
1865
|
+
MailboxesCreateGrant403.pipe(HttpApiSchema.status(403)),
|
|
1866
|
+
MailboxesCreateGrant404.pipe(HttpApiSchema.status(404)),
|
|
1867
|
+
MailboxesCreateGrant409.pipe(HttpApiSchema.status(409)),
|
|
1868
|
+
MailboxesCreateGrant422.pipe(HttpApiSchema.status(422)),
|
|
1869
|
+
MailboxesCreateGrant500,
|
|
1870
|
+
MailboxesCreateGrant504.pipe(HttpApiSchema.status(504))
|
|
1871
|
+
]
|
|
1872
|
+
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "mailboxes.createGrant").annotate(OpenApi.Summary, "Grant a member access to a mailbox").annotate(OpenApi.Description, "Shares a mailbox with an organization member and returns the grant with status 201. The member must already belong to the organization. A member who already holds a grant conflicts rather than being rewritten: change an existing grant with `PATCH /v1/mailboxes/{id}/grants/{grantId}`, so a grant is never widened as a side effect of granting. List the current grants with `GET /v1/mailboxes/{id}/grants`."), HttpApiEndpoint.delete("mailboxesRevokeGrant", "/v1/mailboxes/:id/grants/:grantId", {
|
|
1873
|
+
params: MailboxesRevokeGrantPathParams,
|
|
1874
|
+
success: MailboxesRevokeGrant200,
|
|
1875
|
+
error: [
|
|
1876
|
+
MailboxesRevokeGrant401.pipe(HttpApiSchema.status(401)),
|
|
1877
|
+
MailboxesRevokeGrant403.pipe(HttpApiSchema.status(403)),
|
|
1878
|
+
MailboxesRevokeGrant404.pipe(HttpApiSchema.status(404)),
|
|
1879
|
+
MailboxesRevokeGrant409.pipe(HttpApiSchema.status(409)),
|
|
1880
|
+
MailboxesRevokeGrant422.pipe(HttpApiSchema.status(422)),
|
|
1881
|
+
MailboxesRevokeGrant500,
|
|
1882
|
+
MailboxesRevokeGrant504.pipe(HttpApiSchema.status(504))
|
|
1883
|
+
]
|
|
1884
|
+
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "mailboxes.revokeGrant").annotate(OpenApi.Summary, "Revoke a mailbox grant").annotate(OpenApi.Description, "Removes a member's access to a mailbox. The last grant that can configure the mailbox cannot be revoked, so a mailbox is never left with nobody able to administer it: grant a teammate the admin role before removing your own."), HttpApiEndpoint.patch("mailboxesUpdateGrant", "/v1/mailboxes/:id/grants/:grantId", {
|
|
1885
|
+
params: MailboxesUpdateGrantPathParams,
|
|
1886
|
+
payload: MailboxesUpdateGrantRequestJson,
|
|
1887
|
+
success: MailboxesUpdateGrant200,
|
|
1888
|
+
error: [
|
|
1889
|
+
MailboxesUpdateGrant401.pipe(HttpApiSchema.status(401)),
|
|
1890
|
+
MailboxesUpdateGrant403.pipe(HttpApiSchema.status(403)),
|
|
1891
|
+
MailboxesUpdateGrant404.pipe(HttpApiSchema.status(404)),
|
|
1892
|
+
MailboxesUpdateGrant409.pipe(HttpApiSchema.status(409)),
|
|
1893
|
+
MailboxesUpdateGrant422.pipe(HttpApiSchema.status(422)),
|
|
1894
|
+
MailboxesUpdateGrant500,
|
|
1895
|
+
MailboxesUpdateGrant504.pipe(HttpApiSchema.status(504))
|
|
1896
|
+
]
|
|
1897
|
+
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "mailboxes.updateGrant").annotate(OpenApi.Summary, "Update a mailbox grant").annotate(OpenApi.Description, "Changes a member's role, send mode, or both on a mailbox and returns the updated grant. A field left out keeps its value; naming neither is a validation error. Taking admin from the last grant that can configure the mailbox conflicts, as revoking it does. The change applies to the member's next request on every surface."), HttpApiEndpoint.get("mailboxesListLabels", "/v1/mailboxes/:id/labels", {
|
|
1898
|
+
params: MailboxesListLabelsPathParams,
|
|
1899
|
+
success: MailboxesListLabels200,
|
|
1900
|
+
error: [
|
|
1901
|
+
MailboxesListLabels401.pipe(HttpApiSchema.status(401)),
|
|
1902
|
+
MailboxesListLabels403.pipe(HttpApiSchema.status(403)),
|
|
1903
|
+
MailboxesListLabels404.pipe(HttpApiSchema.status(404)),
|
|
1904
|
+
MailboxesListLabels422.pipe(HttpApiSchema.status(422)),
|
|
1905
|
+
MailboxesListLabels500,
|
|
1906
|
+
MailboxesListLabels504.pipe(HttpApiSchema.status(504))
|
|
1907
|
+
]
|
|
1908
|
+
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "mailboxes.listLabels").annotate(OpenApi.Summary, "List mailbox labels").annotate(OpenApi.Description, "Returns every label defined on a mailbox, ordered by name. A mailbox holds at most 100 labels, so the list is never paged."), HttpApiEndpoint.post("mailboxesCreateLabel", "/v1/mailboxes/:id/labels", {
|
|
1909
|
+
params: MailboxesCreateLabelPathParams,
|
|
1910
|
+
payload: MailboxesCreateLabelRequestJson,
|
|
1911
|
+
success: MailboxesCreateLabel201.pipe(HttpApiSchema.status(201)),
|
|
1912
|
+
error: [
|
|
1913
|
+
MailboxesCreateLabel401.pipe(HttpApiSchema.status(401)),
|
|
1914
|
+
MailboxesCreateLabel403.pipe(HttpApiSchema.status(403)),
|
|
1915
|
+
MailboxesCreateLabel404.pipe(HttpApiSchema.status(404)),
|
|
1916
|
+
MailboxesCreateLabel409.pipe(HttpApiSchema.status(409)),
|
|
1917
|
+
MailboxesCreateLabel422.pipe(HttpApiSchema.status(422)),
|
|
1918
|
+
MailboxesCreateLabel500,
|
|
1919
|
+
MailboxesCreateLabel504.pipe(HttpApiSchema.status(504))
|
|
1920
|
+
]
|
|
1921
|
+
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "mailboxes.createLabel").annotate(OpenApi.Summary, "Create a mailbox label").annotate(OpenApi.Description, "Creates a label on a mailbox and returns it with status 201. Slugs are unique within the mailbox, and a mailbox holds at most 100 labels; either limit conflicts."), HttpApiEndpoint.delete("mailboxesDeleteLabel", "/v1/mailboxes/:id/labels/:labelId", {
|
|
1922
|
+
params: MailboxesDeleteLabelPathParams,
|
|
1923
|
+
success: MailboxesDeleteLabel200,
|
|
1924
|
+
error: [
|
|
1925
|
+
MailboxesDeleteLabel401.pipe(HttpApiSchema.status(401)),
|
|
1926
|
+
MailboxesDeleteLabel403.pipe(HttpApiSchema.status(403)),
|
|
1927
|
+
MailboxesDeleteLabel404.pipe(HttpApiSchema.status(404)),
|
|
1928
|
+
MailboxesDeleteLabel422.pipe(HttpApiSchema.status(422)),
|
|
1929
|
+
MailboxesDeleteLabel500,
|
|
1930
|
+
MailboxesDeleteLabel504.pipe(HttpApiSchema.status(504))
|
|
1931
|
+
]
|
|
1932
|
+
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "mailboxes.deleteLabel").annotate(OpenApi.Summary, "Delete a mailbox label").annotate(OpenApi.Description, "Deletes a label and removes it from every thread that carries it."), HttpApiEndpoint.patch("mailboxesUpdateLabel", "/v1/mailboxes/:id/labels/:labelId", {
|
|
1933
|
+
params: MailboxesUpdateLabelPathParams,
|
|
1934
|
+
payload: MailboxesUpdateLabelRequestJson,
|
|
1935
|
+
success: MailboxesUpdateLabel200,
|
|
1936
|
+
error: [
|
|
1937
|
+
MailboxesUpdateLabel401.pipe(HttpApiSchema.status(401)),
|
|
1938
|
+
MailboxesUpdateLabel403.pipe(HttpApiSchema.status(403)),
|
|
1939
|
+
MailboxesUpdateLabel404.pipe(HttpApiSchema.status(404)),
|
|
1940
|
+
MailboxesUpdateLabel422.pipe(HttpApiSchema.status(422)),
|
|
1941
|
+
MailboxesUpdateLabel500,
|
|
1942
|
+
MailboxesUpdateLabel504.pipe(HttpApiSchema.status(504))
|
|
1943
|
+
]
|
|
1944
|
+
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "mailboxes.updateLabel").annotate(OpenApi.Summary, "Update a mailbox label").annotate(OpenApi.Description, "Updates the fields you name and keeps the rest."), HttpApiEndpoint.post("mailboxesSendMessage", "/v1/mailboxes/:id/messages", {
|
|
1945
|
+
params: MailboxesSendMessagePathParams,
|
|
1946
|
+
headers: MailboxesSendMessageHeaders,
|
|
1947
|
+
payload: MailboxesSendMessageRequestJson,
|
|
1948
|
+
success: [MailboxesSendMessage200, MailboxesSendMessage202.pipe(HttpApiSchema.status(202))],
|
|
1949
|
+
error: [
|
|
1950
|
+
MailboxesSendMessage401.pipe(HttpApiSchema.status(401)),
|
|
1951
|
+
MailboxesSendMessage402.pipe(HttpApiSchema.status(402)),
|
|
1952
|
+
MailboxesSendMessage403.pipe(HttpApiSchema.status(403)),
|
|
1953
|
+
MailboxesSendMessage404.pipe(HttpApiSchema.status(404)),
|
|
1954
|
+
MailboxesSendMessage409.pipe(HttpApiSchema.status(409)),
|
|
1955
|
+
MailboxesSendMessage422.pipe(HttpApiSchema.status(422)),
|
|
1956
|
+
MailboxesSendMessage429.pipe(HttpApiSchema.status(429)),
|
|
1957
|
+
MailboxesSendMessage500,
|
|
1958
|
+
MailboxesSendMessage502.pipe(HttpApiSchema.status(502)),
|
|
1959
|
+
MailboxesSendMessage503.pipe(HttpApiSchema.status(503)),
|
|
1960
|
+
MailboxesSendMessage504.pipe(HttpApiSchema.status(504))
|
|
1961
|
+
]
|
|
1962
|
+
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "mailboxes.sendMessage").annotate(OpenApi.Summary, "Send a new message").annotate(OpenApi.Description, "Starts a new conversation from the mailbox's default endpoint on the channel the body names (email when omitted); a channel the mailbox cannot send on yet is refused (422). Records a send action and returns 202 with its current receipt and a Location for action status. An installation, grant, or policy may require approval; otherwise the send is queued. Observe the same action through acceptance and mailbox completion. A policy refusal returns 403 with the recorded receipt."), HttpApiEndpoint.get("mailboxesGetMessage", "/v1/mailboxes/:id/messages/:messageId", {
|
|
1963
|
+
params: MailboxesGetMessagePathParams,
|
|
1964
|
+
success: MailboxesGetMessage200,
|
|
1965
|
+
error: [
|
|
1966
|
+
MailboxesGetMessage401.pipe(HttpApiSchema.status(401)),
|
|
1967
|
+
MailboxesGetMessage403.pipe(HttpApiSchema.status(403)),
|
|
1968
|
+
MailboxesGetMessage404.pipe(HttpApiSchema.status(404)),
|
|
1969
|
+
MailboxesGetMessage422.pipe(HttpApiSchema.status(422)),
|
|
1970
|
+
MailboxesGetMessage500,
|
|
1971
|
+
MailboxesGetMessage504.pipe(HttpApiSchema.status(504))
|
|
1972
|
+
]
|
|
1973
|
+
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "mailboxes.getMessage").annotate(OpenApi.Summary, "Get a mailbox message").annotate(OpenApi.Description, "Returns a message in the mailbox, discriminated by `channel`. An email has its text, sanitized HTML, `replyText` (what the sender wrote, without quoted history), authentication verdicts, and attachments."), HttpApiEndpoint.get("mailboxesGetMessageAttachment", "/v1/mailboxes/:id/messages/:messageId/attachments/:attachmentId", {
|
|
1974
|
+
params: MailboxesGetMessageAttachmentPathParams,
|
|
1975
|
+
success: MailboxesGetMessageAttachment200,
|
|
1976
|
+
error: [
|
|
1977
|
+
MailboxesGetMessageAttachment401.pipe(HttpApiSchema.status(401)),
|
|
1978
|
+
MailboxesGetMessageAttachment403.pipe(HttpApiSchema.status(403)),
|
|
1979
|
+
MailboxesGetMessageAttachment404.pipe(HttpApiSchema.status(404)),
|
|
1980
|
+
MailboxesGetMessageAttachment422.pipe(HttpApiSchema.status(422)),
|
|
1981
|
+
MailboxesGetMessageAttachment500,
|
|
1982
|
+
MailboxesGetMessageAttachment504.pipe(HttpApiSchema.status(504))
|
|
1983
|
+
]
|
|
1984
|
+
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "mailboxes.getMessageAttachment").annotate(OpenApi.Summary, "Get a message attachment").annotate(OpenApi.Description, "Returns a short-lived download URL for one of the message's attachments."), HttpApiEndpoint.post("mailboxesCopyMessageAttachment", "/v1/mailboxes/:id/messages/:messageId/attachments/:attachmentId/copy", {
|
|
1985
|
+
params: MailboxesCopyMessageAttachmentPathParams,
|
|
1986
|
+
success: MailboxesCopyMessageAttachment201.pipe(HttpApiSchema.status(201)),
|
|
1987
|
+
error: [
|
|
1988
|
+
MailboxesCopyMessageAttachment401.pipe(HttpApiSchema.status(401)),
|
|
1989
|
+
MailboxesCopyMessageAttachment403.pipe(HttpApiSchema.status(403)),
|
|
1990
|
+
MailboxesCopyMessageAttachment404.pipe(HttpApiSchema.status(404)),
|
|
1991
|
+
MailboxesCopyMessageAttachment409.pipe(HttpApiSchema.status(409)),
|
|
1992
|
+
MailboxesCopyMessageAttachment422.pipe(HttpApiSchema.status(422)),
|
|
1993
|
+
MailboxesCopyMessageAttachment500,
|
|
1994
|
+
MailboxesCopyMessageAttachment504.pipe(HttpApiSchema.status(504))
|
|
1995
|
+
]
|
|
1996
|
+
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "mailboxes.copyMessageAttachment").annotate(OpenApi.Summary, "Copy a message attachment").annotate(OpenApi.Description, "Copies one of a received message's attachments into the organization's media and returns it as a draft attachment (`mediaId`), so a draft can carry it. A draft that forwards a message saves each original attachment this way."), HttpApiEndpoint.post("mailboxesDiscardMessage", "/v1/mailboxes/:id/messages/:messageId/discard", {
|
|
1997
|
+
params: MailboxesDiscardMessagePathParams,
|
|
1998
|
+
success: MailboxesDiscardMessage200,
|
|
1999
|
+
error: [
|
|
2000
|
+
MailboxesDiscardMessage401.pipe(HttpApiSchema.status(401)),
|
|
2001
|
+
MailboxesDiscardMessage403.pipe(HttpApiSchema.status(403)),
|
|
2002
|
+
MailboxesDiscardMessage404.pipe(HttpApiSchema.status(404)),
|
|
2003
|
+
MailboxesDiscardMessage409.pipe(HttpApiSchema.status(409)),
|
|
2004
|
+
MailboxesDiscardMessage422.pipe(HttpApiSchema.status(422)),
|
|
2005
|
+
MailboxesDiscardMessage500,
|
|
2006
|
+
MailboxesDiscardMessage502.pipe(HttpApiSchema.status(502)),
|
|
2007
|
+
MailboxesDiscardMessage504.pipe(HttpApiSchema.status(504))
|
|
2008
|
+
]
|
|
2009
|
+
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "mailboxes.discardMessage").annotate(OpenApi.Summary, "Discard a quarantined message").annotate(OpenApi.Description, "Removes a held message from the mailbox's quarantine for good: it leaves the quarantine list, never reaches a thread, and can no longer be released. Quarantined and isolated (malware) messages can both be discarded. Publishes one `mailbox.message.discarded` event; discarding it again returns the same result and publishes nothing. A released message is in its thread and cannot be discarded: 409. Only a person can discard; API keys never hold `quarantine.release`."), HttpApiEndpoint.post("mailboxesForward", "/v1/mailboxes/:id/messages/:messageId/forward", {
|
|
2010
|
+
params: MailboxesForwardPathParams,
|
|
2011
|
+
headers: MailboxesForwardHeaders,
|
|
2012
|
+
payload: MailboxesForwardRequestJson,
|
|
2013
|
+
success: [MailboxesForward200, MailboxesForward202.pipe(HttpApiSchema.status(202))],
|
|
2014
|
+
error: [
|
|
2015
|
+
MailboxesForward401.pipe(HttpApiSchema.status(401)),
|
|
2016
|
+
MailboxesForward402.pipe(HttpApiSchema.status(402)),
|
|
2017
|
+
MailboxesForward403.pipe(HttpApiSchema.status(403)),
|
|
2018
|
+
MailboxesForward404.pipe(HttpApiSchema.status(404)),
|
|
2019
|
+
MailboxesForward409.pipe(HttpApiSchema.status(409)),
|
|
2020
|
+
MailboxesForward422.pipe(HttpApiSchema.status(422)),
|
|
2021
|
+
MailboxesForward429.pipe(HttpApiSchema.status(429)),
|
|
2022
|
+
MailboxesForward500,
|
|
2023
|
+
MailboxesForward502.pipe(HttpApiSchema.status(502)),
|
|
2024
|
+
MailboxesForward503.pipe(HttpApiSchema.status(503)),
|
|
2025
|
+
MailboxesForward504.pipe(HttpApiSchema.status(504))
|
|
2026
|
+
]
|
|
2027
|
+
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "mailboxes.forward").annotate(OpenApi.Summary, "Forward a message").annotate(OpenApi.Description, "Forwards an email to new recipients as a new conversation from the thread's endpoint, with the original quoted below the caller's text and its attachments attached ahead of any the caller adds. The combined attachments must fit the email attachment limits."), HttpApiEndpoint.get("mailboxesGetMessageRaw", "/v1/mailboxes/:id/messages/:messageId/raw", {
|
|
2028
|
+
params: MailboxesGetMessageRawPathParams,
|
|
2029
|
+
success: MailboxesGetMessageRaw200,
|
|
2030
|
+
error: [
|
|
2031
|
+
MailboxesGetMessageRaw401.pipe(HttpApiSchema.status(401)),
|
|
2032
|
+
MailboxesGetMessageRaw403.pipe(HttpApiSchema.status(403)),
|
|
2033
|
+
MailboxesGetMessageRaw404.pipe(HttpApiSchema.status(404)),
|
|
2034
|
+
MailboxesGetMessageRaw422.pipe(HttpApiSchema.status(422)),
|
|
2035
|
+
MailboxesGetMessageRaw500,
|
|
2036
|
+
MailboxesGetMessageRaw504.pipe(HttpApiSchema.status(504))
|
|
2037
|
+
]
|
|
2038
|
+
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "mailboxes.getMessageRaw").annotate(OpenApi.Summary, "Get a message's raw MIME").annotate(OpenApi.Description, "Returns a short-lived URL for the message exactly as it was received (`message/rfc822`). Sent messages have no stored MIME."), HttpApiEndpoint.post("mailboxesReleaseMessage", "/v1/mailboxes/:id/messages/:messageId/release", {
|
|
2039
|
+
params: MailboxesReleaseMessagePathParams,
|
|
2040
|
+
success: MailboxesReleaseMessage200,
|
|
2041
|
+
error: [
|
|
2042
|
+
MailboxesReleaseMessage401.pipe(HttpApiSchema.status(401)),
|
|
2043
|
+
MailboxesReleaseMessage403.pipe(HttpApiSchema.status(403)),
|
|
2044
|
+
MailboxesReleaseMessage404.pipe(HttpApiSchema.status(404)),
|
|
2045
|
+
MailboxesReleaseMessage409.pipe(HttpApiSchema.status(409)),
|
|
2046
|
+
MailboxesReleaseMessage422.pipe(HttpApiSchema.status(422)),
|
|
2047
|
+
MailboxesReleaseMessage500,
|
|
2048
|
+
MailboxesReleaseMessage504.pipe(HttpApiSchema.status(504))
|
|
2049
|
+
]
|
|
2050
|
+
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "mailboxes.releaseMessage").annotate(OpenApi.Summary, "Release a quarantined message").annotate(OpenApi.Description, "Delivers a quarantined message into the thread it would have joined and publishes one `mailbox.message.released` event. Releasing it again returns the same result and publishes nothing. Only a person can release; API keys never hold `quarantine.release`. Isolated (malware) messages and discarded messages cannot be released: 409."), HttpApiEndpoint.post("mailboxesReply", "/v1/mailboxes/:id/messages/:messageId/reply", {
|
|
2051
|
+
params: MailboxesReplyPathParams,
|
|
2052
|
+
headers: MailboxesReplyHeaders,
|
|
2053
|
+
payload: MailboxesReplyRequestJson,
|
|
2054
|
+
success: [MailboxesReply200, MailboxesReply202.pipe(HttpApiSchema.status(202))],
|
|
2055
|
+
error: [
|
|
2056
|
+
MailboxesReply401.pipe(HttpApiSchema.status(401)),
|
|
2057
|
+
MailboxesReply402.pipe(HttpApiSchema.status(402)),
|
|
2058
|
+
MailboxesReply403.pipe(HttpApiSchema.status(403)),
|
|
2059
|
+
MailboxesReply404.pipe(HttpApiSchema.status(404)),
|
|
2060
|
+
MailboxesReply409.pipe(HttpApiSchema.status(409)),
|
|
2061
|
+
MailboxesReply422.pipe(HttpApiSchema.status(422)),
|
|
2062
|
+
MailboxesReply429.pipe(HttpApiSchema.status(429)),
|
|
2063
|
+
MailboxesReply500,
|
|
2064
|
+
MailboxesReply502.pipe(HttpApiSchema.status(502)),
|
|
2065
|
+
MailboxesReply503.pipe(HttpApiSchema.status(503)),
|
|
2066
|
+
MailboxesReply504.pipe(HttpApiSchema.status(504))
|
|
2067
|
+
]
|
|
2068
|
+
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "mailboxes.reply").annotate(OpenApi.Summary, "Reply to a message").annotate(OpenApi.Description, "Replies to the message's Reply-To address, or its sender, in the same thread and from the thread's endpoint. The server sets the recipients, subject, and threading headers. The body's `channel` must match the thread's."), HttpApiEndpoint.post("mailboxesReplyAll", "/v1/mailboxes/:id/messages/:messageId/reply-all", {
|
|
2069
|
+
params: MailboxesReplyAllPathParams,
|
|
2070
|
+
headers: MailboxesReplyAllHeaders,
|
|
2071
|
+
payload: MailboxesReplyAllRequestJson,
|
|
2072
|
+
success: [MailboxesReplyAll200, MailboxesReplyAll202.pipe(HttpApiSchema.status(202))],
|
|
2073
|
+
error: [
|
|
2074
|
+
MailboxesReplyAll401.pipe(HttpApiSchema.status(401)),
|
|
2075
|
+
MailboxesReplyAll402.pipe(HttpApiSchema.status(402)),
|
|
2076
|
+
MailboxesReplyAll403.pipe(HttpApiSchema.status(403)),
|
|
2077
|
+
MailboxesReplyAll404.pipe(HttpApiSchema.status(404)),
|
|
2078
|
+
MailboxesReplyAll409.pipe(HttpApiSchema.status(409)),
|
|
2079
|
+
MailboxesReplyAll422.pipe(HttpApiSchema.status(422)),
|
|
2080
|
+
MailboxesReplyAll429.pipe(HttpApiSchema.status(429)),
|
|
2081
|
+
MailboxesReplyAll500,
|
|
2082
|
+
MailboxesReplyAll502.pipe(HttpApiSchema.status(502)),
|
|
2083
|
+
MailboxesReplyAll503.pipe(HttpApiSchema.status(503)),
|
|
2084
|
+
MailboxesReplyAll504.pipe(HttpApiSchema.status(504))
|
|
2085
|
+
]
|
|
2086
|
+
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "mailboxes.replyAll").annotate(OpenApi.Summary, "Reply to all recipients of a message").annotate(OpenApi.Description, "Replies to the sender and every other recipient of the message except the mailbox itself, in the same thread and from the thread's endpoint."), HttpApiEndpoint.post("mailboxesPause", "/v1/mailboxes/:id/pause", {
|
|
2087
|
+
params: MailboxesPausePathParams,
|
|
2088
|
+
success: MailboxesPause200,
|
|
2089
|
+
error: [
|
|
2090
|
+
MailboxesPause401.pipe(HttpApiSchema.status(401)),
|
|
2091
|
+
MailboxesPause403.pipe(HttpApiSchema.status(403)),
|
|
2092
|
+
MailboxesPause404.pipe(HttpApiSchema.status(404)),
|
|
2093
|
+
MailboxesPause422.pipe(HttpApiSchema.status(422)),
|
|
2094
|
+
MailboxesPause500,
|
|
2095
|
+
MailboxesPause504.pipe(HttpApiSchema.status(504))
|
|
2096
|
+
]
|
|
2097
|
+
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "mailboxes.pause").annotate(OpenApi.Summary, "Pause a mailbox").annotate(OpenApi.Description, "Stops the mailbox sending and stops new inbound mail reaching it. Mail that arrives while it is paused is not added when it resumes. Resume it with `POST /v1/mailboxes/{id}/resume`."), HttpApiEndpoint.get("mailboxesListPolicies", "/v1/mailboxes/:id/policies", {
|
|
2098
|
+
params: MailboxesListPoliciesPathParams,
|
|
2099
|
+
success: MailboxesListPolicies200,
|
|
2100
|
+
error: [
|
|
2101
|
+
MailboxesListPolicies401.pipe(HttpApiSchema.status(401)),
|
|
2102
|
+
MailboxesListPolicies403.pipe(HttpApiSchema.status(403)),
|
|
2103
|
+
MailboxesListPolicies404.pipe(HttpApiSchema.status(404)),
|
|
2104
|
+
MailboxesListPolicies422.pipe(HttpApiSchema.status(422)),
|
|
2105
|
+
MailboxesListPolicies500,
|
|
2106
|
+
MailboxesListPolicies504.pipe(HttpApiSchema.status(504))
|
|
2107
|
+
]
|
|
2108
|
+
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "mailboxes.listPolicies").annotate(OpenApi.Summary, "List mailbox policies").annotate(OpenApi.Description, "Returns every send policy on a mailbox, oldest first. A mailbox holds at most 20 policies, so the list is never paged. Each enabled policy holds (`requireApproval`) or refuses (`deny`) every send from the mailbox; `deny` wins when both apply."), HttpApiEndpoint.post("mailboxesCreatePolicy", "/v1/mailboxes/:id/policies", {
|
|
2109
|
+
params: MailboxesCreatePolicyPathParams,
|
|
2110
|
+
payload: MailboxesCreatePolicyRequestJson,
|
|
2111
|
+
success: MailboxesCreatePolicy201.pipe(HttpApiSchema.status(201)),
|
|
2112
|
+
error: [
|
|
2113
|
+
MailboxesCreatePolicy401.pipe(HttpApiSchema.status(401)),
|
|
2114
|
+
MailboxesCreatePolicy403.pipe(HttpApiSchema.status(403)),
|
|
2115
|
+
MailboxesCreatePolicy404.pipe(HttpApiSchema.status(404)),
|
|
2116
|
+
MailboxesCreatePolicy409.pipe(HttpApiSchema.status(409)),
|
|
2117
|
+
MailboxesCreatePolicy422.pipe(HttpApiSchema.status(422)),
|
|
2118
|
+
MailboxesCreatePolicy500,
|
|
2119
|
+
MailboxesCreatePolicy504.pipe(HttpApiSchema.status(504))
|
|
2120
|
+
]
|
|
2121
|
+
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "mailboxes.createPolicy").annotate(OpenApi.Summary, "Create a mailbox policy").annotate(OpenApi.Description, "Adds a send policy to a mailbox and returns it with status 201. It applies to every send proposed after it is created, whoever proposes it. A mailbox that already holds 20 policies conflicts."), HttpApiEndpoint.get("mailboxesGetPolicy", "/v1/mailboxes/:id/policies/:policyId", {
|
|
2122
|
+
params: MailboxesGetPolicyPathParams,
|
|
2123
|
+
success: MailboxesGetPolicy200,
|
|
2124
|
+
error: [
|
|
2125
|
+
MailboxesGetPolicy401.pipe(HttpApiSchema.status(401)),
|
|
2126
|
+
MailboxesGetPolicy403.pipe(HttpApiSchema.status(403)),
|
|
2127
|
+
MailboxesGetPolicy404.pipe(HttpApiSchema.status(404)),
|
|
2128
|
+
MailboxesGetPolicy422.pipe(HttpApiSchema.status(422)),
|
|
2129
|
+
MailboxesGetPolicy500,
|
|
2130
|
+
MailboxesGetPolicy504.pipe(HttpApiSchema.status(504))
|
|
2131
|
+
]
|
|
2132
|
+
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "mailboxes.getPolicy").annotate(OpenApi.Summary, "Get a mailbox policy").annotate(OpenApi.Description, "Returns one send policy."), HttpApiEndpoint.delete("mailboxesDeletePolicy", "/v1/mailboxes/:id/policies/:policyId", {
|
|
2133
|
+
params: MailboxesDeletePolicyPathParams,
|
|
2134
|
+
success: MailboxesDeletePolicy200,
|
|
2135
|
+
error: [
|
|
2136
|
+
MailboxesDeletePolicy401.pipe(HttpApiSchema.status(401)),
|
|
2137
|
+
MailboxesDeletePolicy403.pipe(HttpApiSchema.status(403)),
|
|
2138
|
+
MailboxesDeletePolicy404.pipe(HttpApiSchema.status(404)),
|
|
2139
|
+
MailboxesDeletePolicy422.pipe(HttpApiSchema.status(422)),
|
|
2140
|
+
MailboxesDeletePolicy500,
|
|
2141
|
+
MailboxesDeletePolicy504.pipe(HttpApiSchema.status(504))
|
|
2142
|
+
]
|
|
2143
|
+
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "mailboxes.deletePolicy").annotate(OpenApi.Summary, "Delete a mailbox policy").annotate(OpenApi.Description, "Deletes a send policy. Sends it already holds stay held until a person approves or denies them."), HttpApiEndpoint.patch("mailboxesUpdatePolicy", "/v1/mailboxes/:id/policies/:policyId", {
|
|
2144
|
+
params: MailboxesUpdatePolicyPathParams,
|
|
2145
|
+
payload: MailboxesUpdatePolicyRequestJson,
|
|
2146
|
+
success: MailboxesUpdatePolicy200,
|
|
2147
|
+
error: [
|
|
2148
|
+
MailboxesUpdatePolicy401.pipe(HttpApiSchema.status(401)),
|
|
2149
|
+
MailboxesUpdatePolicy403.pipe(HttpApiSchema.status(403)),
|
|
2150
|
+
MailboxesUpdatePolicy404.pipe(HttpApiSchema.status(404)),
|
|
2151
|
+
MailboxesUpdatePolicy422.pipe(HttpApiSchema.status(422)),
|
|
2152
|
+
MailboxesUpdatePolicy500,
|
|
2153
|
+
MailboxesUpdatePolicy504.pipe(HttpApiSchema.status(504))
|
|
2154
|
+
]
|
|
2155
|
+
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "mailboxes.updatePolicy").annotate(OpenApi.Summary, "Update a mailbox policy").annotate(OpenApi.Description, "Updates the fields you name and keeps the rest. Set `enabled` to `false` to stop a policy applying without deleting it."), HttpApiEndpoint.get("mailboxesListQuarantine", "/v1/mailboxes/:id/quarantine", {
|
|
2156
|
+
params: MailboxesListQuarantinePathParams,
|
|
2157
|
+
query: MailboxesListQuarantineQuery,
|
|
2158
|
+
success: MailboxesListQuarantine200,
|
|
2159
|
+
error: [
|
|
2160
|
+
MailboxesListQuarantine401.pipe(HttpApiSchema.status(401)),
|
|
2161
|
+
MailboxesListQuarantine403.pipe(HttpApiSchema.status(403)),
|
|
2162
|
+
MailboxesListQuarantine404.pipe(HttpApiSchema.status(404)),
|
|
2163
|
+
MailboxesListQuarantine422.pipe(HttpApiSchema.status(422)),
|
|
2164
|
+
MailboxesListQuarantine500,
|
|
2165
|
+
MailboxesListQuarantine504.pipe(HttpApiSchema.status(504))
|
|
2166
|
+
]
|
|
2167
|
+
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "mailboxes.listQuarantine").annotate(OpenApi.Summary, "List quarantined messages").annotate(OpenApi.Description, "Returns the messages this mailbox holds instead of delivering, most recently held first: suspected spam, phishing, fraud, or prompt injection (`quarantined`), and malware (`isolated`). Each is metadata only; a held message appears in no thread, search, or `mailbox.message.received` event until a person releases it. `after` and `before` filter by when the message was held. Needs `quarantine.read`."), HttpApiEndpoint.post("mailboxesResume", "/v1/mailboxes/:id/resume", {
|
|
2168
|
+
params: MailboxesResumePathParams,
|
|
2169
|
+
success: MailboxesResume200,
|
|
2170
|
+
error: [
|
|
2171
|
+
MailboxesResume401.pipe(HttpApiSchema.status(401)),
|
|
2172
|
+
MailboxesResume403.pipe(HttpApiSchema.status(403)),
|
|
2173
|
+
MailboxesResume404.pipe(HttpApiSchema.status(404)),
|
|
2174
|
+
MailboxesResume422.pipe(HttpApiSchema.status(422)),
|
|
2175
|
+
MailboxesResume500,
|
|
2176
|
+
MailboxesResume504.pipe(HttpApiSchema.status(504))
|
|
2177
|
+
]
|
|
2178
|
+
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "mailboxes.resume").annotate(OpenApi.Summary, "Resume a mailbox").annotate(OpenApi.Description, "Lets a paused mailbox send and receive again."), HttpApiEndpoint.get("mailboxesListThreads", "/v1/mailboxes/:id/threads", {
|
|
2179
|
+
params: MailboxesListThreadsPathParams,
|
|
2180
|
+
query: MailboxesListThreadsQuery,
|
|
2181
|
+
success: MailboxesListThreads200,
|
|
2182
|
+
error: [
|
|
2183
|
+
MailboxesListThreads401.pipe(HttpApiSchema.status(401)),
|
|
2184
|
+
MailboxesListThreads403.pipe(HttpApiSchema.status(403)),
|
|
2185
|
+
MailboxesListThreads404.pipe(HttpApiSchema.status(404)),
|
|
2186
|
+
MailboxesListThreads422.pipe(HttpApiSchema.status(422)),
|
|
2187
|
+
MailboxesListThreads500,
|
|
2188
|
+
MailboxesListThreads504.pipe(HttpApiSchema.status(504))
|
|
2189
|
+
]
|
|
2190
|
+
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "mailboxes.listThreads").annotate(OpenApi.Summary, "List threads in a mailbox").annotate(OpenApi.Description, "Returns thread summaries, most recent activity first. `after` and `before` filter by last activity, so an agent polling for new mail passes the last time it looked. `q` is a full-text search over subjects, senders, and message text; `folder`, `label`, `unread`, and `starred` narrow the list. Pass `nextCursor` back as `cursor` for the next page; it is null on the last page. A thread that gains activity while you page moves ahead of the cursor, so a walk lists each thread at most once."), HttpApiEndpoint.get("mailboxesGetThread", "/v1/mailboxes/:id/threads/:threadId", {
|
|
2191
|
+
params: MailboxesGetThreadPathParams,
|
|
2192
|
+
success: MailboxesGetThread200,
|
|
2193
|
+
error: [
|
|
2194
|
+
MailboxesGetThread401.pipe(HttpApiSchema.status(401)),
|
|
2195
|
+
MailboxesGetThread403.pipe(HttpApiSchema.status(403)),
|
|
2196
|
+
MailboxesGetThread404.pipe(HttpApiSchema.status(404)),
|
|
2197
|
+
MailboxesGetThread422.pipe(HttpApiSchema.status(422)),
|
|
2198
|
+
MailboxesGetThread500,
|
|
2199
|
+
MailboxesGetThread504.pipe(HttpApiSchema.status(504))
|
|
2200
|
+
]
|
|
2201
|
+
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "mailboxes.getThread").annotate(OpenApi.Summary, "Get a mailbox thread").annotate(OpenApi.Description, "Returns a thread with its participants and where it stands. Read its messages with `GET .../threads/{threadId}/messages` and their bodies with `GET .../threads/{threadId}/content`."), HttpApiEndpoint.patch("mailboxesUpdateThread", "/v1/mailboxes/:id/threads/:threadId", {
|
|
2202
|
+
params: MailboxesUpdateThreadPathParams,
|
|
2203
|
+
payload: MailboxesUpdateThreadRequestJson,
|
|
2204
|
+
success: MailboxesUpdateThread200,
|
|
2205
|
+
error: [
|
|
2206
|
+
MailboxesUpdateThread401.pipe(HttpApiSchema.status(401)),
|
|
2207
|
+
MailboxesUpdateThread403.pipe(HttpApiSchema.status(403)),
|
|
2208
|
+
MailboxesUpdateThread404.pipe(HttpApiSchema.status(404)),
|
|
2209
|
+
MailboxesUpdateThread422.pipe(HttpApiSchema.status(422)),
|
|
2210
|
+
MailboxesUpdateThread500,
|
|
2211
|
+
MailboxesUpdateThread504.pipe(HttpApiSchema.status(504))
|
|
2212
|
+
]
|
|
2213
|
+
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "mailboxes.updateThread").annotate(OpenApi.Summary, "Update a mailbox thread").annotate(OpenApi.Description, "Updates the fields you name and keeps the rest. `folder` and `priority` are shared with everyone on the mailbox; `read`, `starred`, and `snoozedUntil` are the caller's own. Labels are not updated here: use `POST` and `DELETE` on `/v1/mailboxes/{id}/threads/{threadId}/labels`. Returns where the thread stands, not its messages: read those with `GET .../threads/{threadId}`."), HttpApiEndpoint.get("mailboxesGetThreadContent", "/v1/mailboxes/:id/threads/:threadId/content", {
|
|
2214
|
+
params: MailboxesGetThreadContentPathParams,
|
|
2215
|
+
query: MailboxesGetThreadContentQuery,
|
|
2216
|
+
success: MailboxesGetThreadContent200,
|
|
2217
|
+
error: [
|
|
2218
|
+
MailboxesGetThreadContent401.pipe(HttpApiSchema.status(401)),
|
|
2219
|
+
MailboxesGetThreadContent403.pipe(HttpApiSchema.status(403)),
|
|
2220
|
+
MailboxesGetThreadContent404.pipe(HttpApiSchema.status(404)),
|
|
2221
|
+
MailboxesGetThreadContent422.pipe(HttpApiSchema.status(422)),
|
|
2222
|
+
MailboxesGetThreadContent500,
|
|
2223
|
+
MailboxesGetThreadContent504.pipe(HttpApiSchema.status(504))
|
|
2224
|
+
]
|
|
2225
|
+
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "mailboxes.getThreadContent").annotate(OpenApi.Summary, "Read a mailbox thread").annotate(OpenApi.Description, "Returns the thread's messages with their text, sanitized HTML, `replyText` (what each sender wrote, without quoted history), authentication verdicts, and attachments, oldest first. Pass `nextCursor` back as `cursor` for the next page; it is null on the last page."), HttpApiEndpoint.post("mailboxesAddThreadLabels", "/v1/mailboxes/:id/threads/:threadId/labels", {
|
|
2226
|
+
params: MailboxesAddThreadLabelsPathParams,
|
|
2227
|
+
payload: MailboxesAddThreadLabelsRequestJson,
|
|
2228
|
+
success: MailboxesAddThreadLabels200,
|
|
2229
|
+
error: [
|
|
2230
|
+
MailboxesAddThreadLabels401.pipe(HttpApiSchema.status(401)),
|
|
2231
|
+
MailboxesAddThreadLabels403.pipe(HttpApiSchema.status(403)),
|
|
2232
|
+
MailboxesAddThreadLabels404.pipe(HttpApiSchema.status(404)),
|
|
2233
|
+
MailboxesAddThreadLabels422.pipe(HttpApiSchema.status(422)),
|
|
2234
|
+
MailboxesAddThreadLabels500,
|
|
2235
|
+
MailboxesAddThreadLabels504.pipe(HttpApiSchema.status(504))
|
|
2236
|
+
]
|
|
2237
|
+
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "mailboxes.addThreadLabels").annotate(OpenApi.Summary, "Add thread labels").annotate(OpenApi.Description, "Adds the given mailbox labels to the thread, keeping the labels it already has, and returns where the thread stands. Every id must be one of the mailbox's labels."), HttpApiEndpoint.delete("mailboxesRemoveThreadLabels", "/v1/mailboxes/:id/threads/:threadId/labels", {
|
|
2238
|
+
params: MailboxesRemoveThreadLabelsPathParams,
|
|
2239
|
+
payload: MailboxesRemoveThreadLabelsRequestJson,
|
|
2240
|
+
success: MailboxesRemoveThreadLabels200,
|
|
2241
|
+
error: [
|
|
2242
|
+
MailboxesRemoveThreadLabels401.pipe(HttpApiSchema.status(401)),
|
|
2243
|
+
MailboxesRemoveThreadLabels403.pipe(HttpApiSchema.status(403)),
|
|
2244
|
+
MailboxesRemoveThreadLabels404.pipe(HttpApiSchema.status(404)),
|
|
2245
|
+
MailboxesRemoveThreadLabels422.pipe(HttpApiSchema.status(422)),
|
|
2246
|
+
MailboxesRemoveThreadLabels500,
|
|
2247
|
+
MailboxesRemoveThreadLabels504.pipe(HttpApiSchema.status(504))
|
|
2248
|
+
]
|
|
2249
|
+
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "mailboxes.removeThreadLabels").annotate(OpenApi.Summary, "Remove thread labels").annotate(OpenApi.Description, "Removes the given labels from the thread and returns where the thread stands. A label the thread does not carry is ignored."), HttpApiEndpoint.get("mailboxesListThreadMessages", "/v1/mailboxes/:id/threads/:threadId/messages", {
|
|
2250
|
+
params: MailboxesListThreadMessagesPathParams,
|
|
2251
|
+
query: MailboxesListThreadMessagesQuery,
|
|
2252
|
+
success: MailboxesListThreadMessages200,
|
|
2253
|
+
error: [
|
|
2254
|
+
MailboxesListThreadMessages401.pipe(HttpApiSchema.status(401)),
|
|
2255
|
+
MailboxesListThreadMessages403.pipe(HttpApiSchema.status(403)),
|
|
2256
|
+
MailboxesListThreadMessages404.pipe(HttpApiSchema.status(404)),
|
|
2257
|
+
MailboxesListThreadMessages422.pipe(HttpApiSchema.status(422)),
|
|
2258
|
+
MailboxesListThreadMessages500,
|
|
2259
|
+
MailboxesListThreadMessages504.pipe(HttpApiSchema.status(504))
|
|
2260
|
+
]
|
|
2261
|
+
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "mailboxes.listThreadMessages").annotate(OpenApi.Summary, "List messages in a mailbox thread").annotate(OpenApi.Description, "Returns the thread's message summaries, oldest first. Pass `nextCursor` back as `cursor` for the next page; it is null on the last page. Read the bodies with `GET .../threads/{threadId}/content` or one message with `GET /v1/mailboxes/{id}/messages/{messageId}`."), HttpApiEndpoint.get("mailboxesListThreadNotes", "/v1/mailboxes/:id/threads/:threadId/notes", {
|
|
2262
|
+
params: MailboxesListThreadNotesPathParams,
|
|
2263
|
+
query: MailboxesListThreadNotesQuery,
|
|
2264
|
+
success: MailboxesListThreadNotes200,
|
|
2265
|
+
error: [
|
|
2266
|
+
MailboxesListThreadNotes401.pipe(HttpApiSchema.status(401)),
|
|
2267
|
+
MailboxesListThreadNotes403.pipe(HttpApiSchema.status(403)),
|
|
2268
|
+
MailboxesListThreadNotes404.pipe(HttpApiSchema.status(404)),
|
|
2269
|
+
MailboxesListThreadNotes422.pipe(HttpApiSchema.status(422)),
|
|
2270
|
+
MailboxesListThreadNotes500,
|
|
2271
|
+
MailboxesListThreadNotes504.pipe(HttpApiSchema.status(504))
|
|
2272
|
+
]
|
|
2273
|
+
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "mailboxes.listThreadNotes").annotate(OpenApi.Summary, "List notes in a mailbox thread").annotate(OpenApi.Description, "Returns the internal notes on a thread with their bodies, oldest first. Pass `nextCursor` back as `cursor` for the next page; it is null on the last page."), HttpApiEndpoint.post("mailboxesCreateNote", "/v1/mailboxes/:id/threads/:threadId/notes", {
|
|
2274
|
+
params: MailboxesCreateNotePathParams,
|
|
2275
|
+
payload: MailboxesCreateNoteRequestJson,
|
|
2276
|
+
success: MailboxesCreateNote201.pipe(HttpApiSchema.status(201)),
|
|
2277
|
+
error: [
|
|
2278
|
+
MailboxesCreateNote401.pipe(HttpApiSchema.status(401)),
|
|
2279
|
+
MailboxesCreateNote403.pipe(HttpApiSchema.status(403)),
|
|
2280
|
+
MailboxesCreateNote404.pipe(HttpApiSchema.status(404)),
|
|
2281
|
+
MailboxesCreateNote422.pipe(HttpApiSchema.status(422)),
|
|
2282
|
+
MailboxesCreateNote500,
|
|
2283
|
+
MailboxesCreateNote504.pipe(HttpApiSchema.status(504))
|
|
2284
|
+
]
|
|
2285
|
+
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "mailboxes.createNote").annotate(OpenApi.Summary, "Create a mailbox note").annotate(OpenApi.Description, "Adds an internal note to a thread and returns it with status 201. Notes are visible to everyone on the mailbox and never sent."), HttpApiEndpoint.delete("mailboxesDeleteNote", "/v1/mailboxes/:id/threads/:threadId/notes/:noteId", {
|
|
2286
|
+
params: MailboxesDeleteNotePathParams,
|
|
2287
|
+
success: MailboxesDeleteNote200,
|
|
2288
|
+
error: [
|
|
2289
|
+
MailboxesDeleteNote401.pipe(HttpApiSchema.status(401)),
|
|
2290
|
+
MailboxesDeleteNote403.pipe(HttpApiSchema.status(403)),
|
|
2291
|
+
MailboxesDeleteNote404.pipe(HttpApiSchema.status(404)),
|
|
2292
|
+
MailboxesDeleteNote422.pipe(HttpApiSchema.status(422)),
|
|
2293
|
+
MailboxesDeleteNote500,
|
|
2294
|
+
MailboxesDeleteNote504.pipe(HttpApiSchema.status(504))
|
|
2295
|
+
]
|
|
2296
|
+
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "mailboxes.deleteNote").annotate(OpenApi.Summary, "Delete a mailbox note").annotate(OpenApi.Description, "Deletes a note. Only the note's author may."), HttpApiEndpoint.patch("mailboxesUpdateNote", "/v1/mailboxes/:id/threads/:threadId/notes/:noteId", {
|
|
2297
|
+
params: MailboxesUpdateNotePathParams,
|
|
2298
|
+
payload: MailboxesUpdateNoteRequestJson,
|
|
2299
|
+
success: MailboxesUpdateNote200,
|
|
2300
|
+
error: [
|
|
2301
|
+
MailboxesUpdateNote401.pipe(HttpApiSchema.status(401)),
|
|
2302
|
+
MailboxesUpdateNote403.pipe(HttpApiSchema.status(403)),
|
|
2303
|
+
MailboxesUpdateNote404.pipe(HttpApiSchema.status(404)),
|
|
2304
|
+
MailboxesUpdateNote422.pipe(HttpApiSchema.status(422)),
|
|
2305
|
+
MailboxesUpdateNote500,
|
|
2306
|
+
MailboxesUpdateNote504.pipe(HttpApiSchema.status(504))
|
|
2307
|
+
]
|
|
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") {};
|
|
2309
|
+
//#endregion
|
|
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 };
|
|
2311
|
+
|
|
2312
|
+
//# sourceMappingURL=mailboxes.js.map
|