samva 0.34.0 → 0.36.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 +17 -0
- package/README.md +2 -1
- package/dist/client/sdk.gen.d.ts +325 -331
- package/dist/client/sdk.gen.js +406 -454
- package/dist/client/types.gen.d.ts +3465 -750
- package/dist/effect/agents.d.ts +222 -17
- package/dist/effect/agents.js +7 -1
- package/dist/effect/analytics.d.ts +21 -15
- package/dist/effect/api-keys.d.ts +30 -24
- package/dist/effect/campaigns.d.ts +695 -39
- package/dist/effect/categories.d.ts +3 -3
- package/dist/effect/contact-groups.d.ts +15 -15
- package/dist/effect/contacts.d.ts +56 -52
- package/dist/effect/conversations.d.ts +51 -45
- package/dist/effect/email.d.ts +82 -82
- package/dist/effect/errors.d.ts +1 -1
- package/dist/effect/errors.js +2 -2
- package/dist/effect/extension-installations.d.ts +64 -12
- package/dist/effect/extensions.d.ts +16 -16
- package/dist/effect/generated/agents.d.ts +2902 -150
- package/dist/effect/generated/agents.js +219 -31
- package/dist/effect/generated/analytics.d.ts +127 -136
- package/dist/effect/generated/analytics.js +72 -37
- package/dist/effect/generated/api-keys.d.ts +243 -47
- package/dist/effect/generated/api-keys.js +27 -12
- package/dist/effect/generated/attachments.d.ts +89 -1
- package/dist/effect/generated/attachments.js +10 -2
- package/dist/effect/generated/brands.d.ts +133 -1
- package/dist/effect/generated/brands.js +22 -10
- package/dist/effect/generated/campaigns.d.ts +1467 -143
- package/dist/effect/generated/campaigns.js +84 -20
- package/dist/effect/generated/contact-events.d.ts +26 -4
- package/dist/effect/generated/contact-events.js +5 -3
- package/dist/effect/generated/contact-groups.d.ts +233 -13
- package/dist/effect/generated/contact-groups.js +33 -17
- package/dist/effect/generated/contacts.d.ts +634 -96
- package/dist/effect/generated/contacts.js +82 -20
- package/dist/effect/generated/conversations.d.ts +501 -108
- package/dist/effect/generated/conversations.js +106 -22
- package/dist/effect/generated/custom-fields.d.ts +89 -1
- package/dist/effect/generated/custom-fields.js +11 -3
- package/dist/effect/generated/email.d.ts +1447 -83
- package/dist/effect/generated/email.js +167 -43
- package/dist/effect/generated/events.d.ts +51 -7
- package/dist/effect/generated/events.js +9 -5
- package/dist/effect/generated/extension-installations.d.ts +1052 -77
- package/dist/effect/generated/extension-installations.js +45 -31
- package/dist/effect/generated/extensions.d.ts +123 -13
- package/dist/effect/generated/extensions.js +20 -10
- package/dist/effect/generated/feedback.d.ts +23 -1
- package/dist/effect/generated/feedback.js +6 -4
- package/dist/effect/generated/index.d.ts +3 -1
- package/dist/effect/generated/journeys.d.ts +684 -16
- package/dist/effect/generated/journeys.js +37 -9
- package/dist/effect/generated/mailboxes.d.ts +6169 -1734
- package/dist/effect/generated/mailboxes.js +549 -344
- package/dist/effect/generated/media.d.ts +125 -15
- package/dist/effect/generated/media.js +15 -2
- package/dist/effect/generated/messages.d.ts +2036 -117
- package/dist/effect/generated/messages.js +286 -54
- package/dist/effect/generated/namespaces.d.ts +215 -55
- package/dist/effect/generated/namespaces.js +30 -12
- package/dist/effect/generated/newsletter-domains.d.ts +98 -12
- package/dist/effect/generated/newsletter-domains.js +20 -13
- package/dist/effect/generated/newsletter-issues.d.ts +354 -19
- package/dist/effect/generated/newsletter-issues.js +162 -98
- package/dist/effect/generated/newsletters.d.ts +123 -13
- package/dist/effect/generated/newsletters.js +19 -9
- package/dist/effect/generated/operations.d.ts +76 -10
- package/dist/effect/generated/operations.js +12 -6
- package/dist/effect/generated/organizations.d.ts +287 -7
- package/dist/effect/generated/organizations.js +33 -5
- package/dist/effect/generated/policies.d.ts +953 -0
- package/dist/effect/generated/policies.js +116 -0
- package/dist/effect/generated/scheduled-messages.d.ts +4418 -49
- package/dist/effect/generated/scheduled-messages.js +77 -13
- package/dist/effect/generated/shared.d.ts +3213 -521
- package/dist/effect/generated/shared.js +713 -128
- package/dist/effect/generated/subscriptions.d.ts +23 -1
- package/dist/effect/generated/subscriptions.js +6 -4
- package/dist/effect/generated/templates.d.ts +2081 -693
- package/dist/effect/generated/templates.js +482 -267
- package/dist/effect/generated/topic-forms.d.ts +111 -1
- package/dist/effect/generated/topic-forms.js +23 -13
- package/dist/effect/generated/topics.d.ts +353 -43
- package/dist/effect/generated/topics.js +67 -19
- package/dist/effect/generated/webhooks.d.ts +318 -57
- package/dist/effect/generated/webhooks.js +68 -17
- package/dist/effect/generated/whoami.d.ts +35 -5
- package/dist/effect/generated/whoami.js +4 -2
- package/dist/effect/generated-metadata.d.ts +56 -32
- package/dist/effect/generated-metadata.js +137 -105
- package/dist/effect/index.d.ts +1 -0
- package/dist/effect/index.js +3 -2
- package/dist/effect/internal/client.js +1 -1
- package/dist/effect/internal/email-sender.d.ts +1 -1
- package/dist/effect/internal/operation.js +5 -32
- package/dist/effect/internal/send.d.ts +1 -1
- package/dist/effect/journeys.d.ts +169 -83
- package/dist/effect/mailboxes.d.ts +978 -301
- package/dist/effect/mailboxes.js +1 -11
- package/dist/effect/media.d.ts +1 -1
- package/dist/effect/messages.d.ts +40 -40
- package/dist/effect/namespaces.d.ts +15 -15
- package/dist/effect/newsletter-domains.d.ts +5 -5
- package/dist/effect/newsletters.d.ts +1 -1
- package/dist/effect/operations.d.ts +11 -11
- package/dist/effect/organizations.d.ts +2 -2
- package/dist/effect/policies.d.ts +65 -0
- package/dist/effect/policies.js +16 -0
- package/dist/effect/scheduled-messages.d.ts +869 -8
- package/dist/effect/templates.d.ts +43 -45
- package/dist/effect/templates.js +5 -3
- package/dist/effect/topics.d.ts +23 -23
- package/dist/effect/webhooks.d.ts +29 -26
- package/dist/index.js +2 -2
- package/dist/mailbox/test.js +11 -4
- package/dist/mailbox/types.d.ts +39 -3
- package/dist/normalize.js +13 -1
- package/dist/package.js +1 -1
- package/dist/promises/client.d.ts +4 -2
- package/dist/promises/client.js +5 -3
- package/dist/promises/errors.gen.d.ts +38 -2
- package/dist/promises/errors.gen.js +394 -34
- package/dist/promises/index.js +2 -2
- package/dist/promises/types.gen.d.ts +1 -1
- package/dist/service-map.d.ts +39 -28
- package/dist/service-map.js +220 -782
- package/package.json +13 -8
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ApiKeySecurityMiddleware, AttachmentId, BillingProviderError, CampaignId, CampaignRunId, ConflictError, ConversationId,
|
|
1
|
+
import { ApiKeySecurityMiddleware, AttachmentId, BillingProviderError, CampaignId, CampaignRunId, ConflictError, ConversationId, CreateMailboxChatDraftPayload, CreateMailboxEmailDraftPayload, CreateMailboxEndpointPayload, EmailAttachment, FlagDisabledError, ForbiddenError, GatewayTimeoutError, IntegrationId, InternalError, JsonObject, JsonValue, MailboxActionDecision, MailboxActionId, MailboxChannel, MailboxDraftId, MailboxEndpointId, MailboxGrantRole, MailboxId, MailboxLabelId, MailboxMetadata, MailboxMetadataPatch, MailboxSendConflictError, MailboxSendOutcome, MailboxSendReceipt, MailboxSendRefusedError, MailboxThreadFolder, MailboxThreadId, MailboxThreadPriority, MalformedRequestError, MediaId, MessageId, NamespaceId, OnboardingReviewRequiredError, PaymentRequiredError, PolicyDecider, PolicyDecisionId, PolicyEffect, PolicyRequirement, PolicyReviewRound, PolicySubject, RateLimitedError, ReplyMailboxChatPayload, ReplyMailboxEmailPayload, ResourceNotFoundError, SendMailboxChatPayload, SendMailboxEmailPayload, SenderNotReadyError, SkippedRecipient, SuccessResponse, TemplateId, UnauthorizedError, UserId, ValidationError, WhatsAppBusinessAccountId, WhatsAppServiceWindowClosedError } from "./shared.js";
|
|
2
2
|
import { HttpApiEndpoint, HttpApiGroup, HttpApiSchema, OpenApi } from "effect/http-api";
|
|
3
3
|
import * as Schema from "effect/Schema";
|
|
4
4
|
// src/effect/generated/mailboxes.ts
|
|
@@ -7,6 +7,10 @@ const MailboxKind = /* @__PURE__ */ (() => Schema.Union([Schema.Literal("persona
|
|
|
7
7
|
identifier: "MailboxKind"
|
|
8
8
|
}))();
|
|
9
9
|
const MailboxStatus = /* @__PURE__ */ (() => Schema.Union([Schema.Literal("active"), Schema.Literal("paused")]).annotate({ identifier: "MailboxStatus" }))();
|
|
10
|
+
const SmsPhoneNumberId = /* @__PURE__ */ (() => Schema.String.check(Schema.isPattern(new globalThis.RegExp("^phone_[0-9a-hjkmnp-tv-z]{16,24}$", "u")).annotate({
|
|
11
|
+
expected: "a string matching the RegExp ^phone_[0-9a-hjkmnp-tv-z]{16,24}$",
|
|
12
|
+
identifier: "SmsPhoneNumberId"
|
|
13
|
+
})).pipe(Schema.brand("SmsPhoneNumberId")))();
|
|
10
14
|
const MailboxActionResolution = /* @__PURE__ */ (() => Schema.Struct({
|
|
11
15
|
outcome: Schema.Union([
|
|
12
16
|
Schema.Literal("approved"),
|
|
@@ -39,9 +43,13 @@ const MailboxActionResolution = /* @__PURE__ */ (() => Schema.Struct({
|
|
|
39
43
|
description: "How the action's approval ended.",
|
|
40
44
|
identifier: "MailboxActionResolution"
|
|
41
45
|
}))();
|
|
46
|
+
const TemplateChannelVariantId = /* @__PURE__ */ (() => Schema.String.check(Schema.isPattern(new globalThis.RegExp("^tvar_[0-9a-hjkmnp-tv-z]{16,24}$", "u")).annotate({
|
|
47
|
+
expected: "a string matching the RegExp ^tvar_[0-9a-hjkmnp-tv-z]{16,24}$",
|
|
48
|
+
identifier: "TemplateChannelVariantId"
|
|
49
|
+
})).pipe(Schema.brand("TemplateChannelVariantId")))();
|
|
42
50
|
const MailboxToolCall = /* @__PURE__ */ (() => Schema.Struct({
|
|
43
51
|
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.isMaxLength(128).annotate({ expected: "a value with a length of at most 128" })),
|
|
44
|
-
argumentsHash: Schema.String.check(Schema.isPattern(
|
|
52
|
+
argumentsHash: Schema.String.check(Schema.isPattern(new globalThis.RegExp("^[0-9a-f]{64}$", "u")).annotate({ expected: "a string matching the RegExp ^[0-9a-f]{64}$" })),
|
|
45
53
|
arguments: Schema.Record(Schema.String, JsonValue)
|
|
46
54
|
}).annotate({ identifier: "MailboxToolCall" }))();
|
|
47
55
|
const MailboxAgentActivity = /* @__PURE__ */ (() => Schema.Struct({
|
|
@@ -56,7 +64,8 @@ const MailboxAgentActivity = /* @__PURE__ */ (() => Schema.Struct({
|
|
|
56
64
|
Schema.Literal("changeThreadState"),
|
|
57
65
|
Schema.Literal("call"),
|
|
58
66
|
Schema.Literal("extensionRequest"),
|
|
59
|
-
Schema.Literal("toolCall")
|
|
67
|
+
Schema.Literal("toolCall"),
|
|
68
|
+
Schema.Literal("handoff")
|
|
60
69
|
]),
|
|
61
70
|
count: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })).check(Schema.isLessThanOrEqualTo(9007199254740991).annotate({ expected: "a value less than or equal to 9007199254740991" }))
|
|
62
71
|
})),
|
|
@@ -106,11 +115,11 @@ const MailboxDraftState = /* @__PURE__ */ (() => Schema.Union([
|
|
|
106
115
|
Schema.Literal("locked"),
|
|
107
116
|
Schema.Literal("sent")
|
|
108
117
|
]).annotate({ identifier: "MailboxDraftState" }))();
|
|
109
|
-
const MailboxEventId = /* @__PURE__ */ (() => Schema.String.check(Schema.isPattern(
|
|
118
|
+
const MailboxEventId = /* @__PURE__ */ (() => Schema.String.check(Schema.isPattern(new globalThis.RegExp("^mbxevt_[0-9a-hjkmnp-tv-z]{16,24}$", "u")).annotate({
|
|
110
119
|
expected: "a string matching the RegExp ^mbxevt_[0-9a-hjkmnp-tv-z]{16,24}$",
|
|
111
120
|
identifier: "MailboxEventId"
|
|
112
121
|
})).pipe(Schema.brand("MailboxEventId")))();
|
|
113
|
-
const MailboxGrantId = /* @__PURE__ */ (() => Schema.String.check(Schema.isPattern(
|
|
122
|
+
const MailboxGrantId = /* @__PURE__ */ (() => Schema.String.check(Schema.isPattern(new globalThis.RegExp("^mbxacl_[0-9a-hjkmnp-tv-z]{16,24}$", "u")).annotate({
|
|
114
123
|
expected: "a string matching the RegExp ^mbxacl_[0-9a-hjkmnp-tv-z]{16,24}$",
|
|
115
124
|
identifier: "MailboxGrantId"
|
|
116
125
|
})).pipe(Schema.brand("MailboxGrantId")))();
|
|
@@ -156,6 +165,16 @@ const MailboxMessageAuthentication = /* @__PURE__ */ (() => Schema.Struct({
|
|
|
156
165
|
dkim: Schema.Union([Schema.String, Schema.Null]),
|
|
157
166
|
dmarc: Schema.Union([Schema.String, Schema.Null])
|
|
158
167
|
}).annotate({ identifier: "MailboxMessageAuthentication" }))();
|
|
168
|
+
const MailboxChatMedia = /* @__PURE__ */ (() => Schema.Struct({
|
|
169
|
+
type: Schema.String,
|
|
170
|
+
contentType: Schema.Union([Schema.String, Schema.Null]),
|
|
171
|
+
filename: Schema.Union([Schema.String, Schema.Null]),
|
|
172
|
+
caption: Schema.Union([Schema.String, Schema.Null])
|
|
173
|
+
}).annotate({ identifier: "MailboxChatMedia" }))();
|
|
174
|
+
const MailboxChatMessageTemplate = /* @__PURE__ */ (() => Schema.Struct({
|
|
175
|
+
name: Schema.String,
|
|
176
|
+
language: Schema.String
|
|
177
|
+
}).annotate({ identifier: "MailboxChatMessageTemplate" }))();
|
|
159
178
|
const MailboxDownloadUrl = /* @__PURE__ */ (() => Schema.Struct({
|
|
160
179
|
url: Schema.String,
|
|
161
180
|
expiresAt: Schema.String
|
|
@@ -185,19 +204,28 @@ const MailboxThreadParticipant = /* @__PURE__ */ (() => Schema.Struct({
|
|
|
185
204
|
]),
|
|
186
205
|
address: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null]))
|
|
187
206
|
}).annotate({ identifier: "MailboxThreadParticipant" }))();
|
|
188
|
-
const
|
|
207
|
+
const MailboxWhatsAppServiceWindow = /* @__PURE__ */ (() => Schema.Struct({
|
|
208
|
+
open: Schema.Boolean,
|
|
209
|
+
expiresAt: Schema.Union([Schema.String, Schema.Null])
|
|
210
|
+
}).annotate({ identifier: "MailboxWhatsAppServiceWindow" }))();
|
|
211
|
+
const MailboxNoteId = /* @__PURE__ */ (() => Schema.String.check(Schema.isPattern(new globalThis.RegExp("^note_[0-9a-hjkmnp-tv-z]{16,24}$", "u")).annotate({
|
|
189
212
|
expected: "a string matching the RegExp ^note_[0-9a-hjkmnp-tv-z]{16,24}$",
|
|
190
213
|
identifier: "MailboxNoteId"
|
|
191
214
|
})).pipe(Schema.brand("MailboxNoteId")))();
|
|
192
|
-
const
|
|
215
|
+
const MailboxEmailEndpoint = /* @__PURE__ */ (() => Schema.Struct({
|
|
193
216
|
id: MailboxEndpointId,
|
|
194
217
|
address: Schema.String,
|
|
195
218
|
displayName: Schema.Union([Schema.String, Schema.Null]),
|
|
196
219
|
default: Schema.Boolean,
|
|
197
220
|
channel: Schema.Literal("email"),
|
|
198
221
|
source: Schema.Union([Schema.Literal("samvaHosted"), Schema.Literal("verifiedDomain")]),
|
|
199
|
-
domainId: Schema.Union([Schema.String, Schema.Null])
|
|
200
|
-
|
|
222
|
+
domainId: Schema.Union([Schema.String, Schema.Null]),
|
|
223
|
+
sendingStatus: Schema.Union([
|
|
224
|
+
Schema.Literal("pending"),
|
|
225
|
+
Schema.Literal("ready"),
|
|
226
|
+
Schema.Literal("failed")
|
|
227
|
+
]).annotate({ description: "Sending readiness. Pending means sending setup is incomplete. Send only when ready. If setup fails, contact support to recover the sending address." })
|
|
228
|
+
}).annotate({ identifier: "MailboxEmailEndpoint" }))();
|
|
201
229
|
const MailboxThreadMailbox = /* @__PURE__ */ (() => Schema.Struct({
|
|
202
230
|
id: MailboxId,
|
|
203
231
|
address: Schema.Union([Schema.String, Schema.Null]),
|
|
@@ -210,6 +238,58 @@ const MailboxCopiedAttachment = /* @__PURE__ */ (() => Schema.Struct({
|
|
|
210
238
|
contentType: Schema.String,
|
|
211
239
|
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" }))
|
|
212
240
|
}).annotate({ identifier: "MailboxCopiedAttachment" }))();
|
|
241
|
+
const PolicyAction = /* @__PURE__ */ (() => Schema.Union([Schema.Struct({
|
|
242
|
+
effect: PolicyEffect,
|
|
243
|
+
resource: Schema.Struct({
|
|
244
|
+
mailboxId: MailboxId,
|
|
245
|
+
channel: Schema.optionalKey(Schema.Union([Schema.Union([
|
|
246
|
+
Schema.Literal("sms"),
|
|
247
|
+
Schema.Literal("whatsapp"),
|
|
248
|
+
Schema.Literal("email")
|
|
249
|
+
]), Schema.Null])),
|
|
250
|
+
integration: Schema.optionalKey(Schema.Union([Schema.String.check(Schema.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })), Schema.Null])),
|
|
251
|
+
integrationId: Schema.optionalKey(Schema.Union([IntegrationId, Schema.Null])),
|
|
252
|
+
tool: Schema.optionalKey(Schema.Union([Schema.String.check(Schema.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })), Schema.Null]))
|
|
253
|
+
}),
|
|
254
|
+
facts: JsonObject,
|
|
255
|
+
kind: Schema.Union([
|
|
256
|
+
Schema.Literal("send"),
|
|
257
|
+
Schema.Literal("reply"),
|
|
258
|
+
Schema.Literal("toolCall")
|
|
259
|
+
]),
|
|
260
|
+
args: JsonValue
|
|
261
|
+
}), Schema.Struct({
|
|
262
|
+
effect: PolicyEffect,
|
|
263
|
+
resource: Schema.Struct({
|
|
264
|
+
mailboxId: MailboxId,
|
|
265
|
+
channel: Schema.optionalKey(Schema.Union([Schema.Union([
|
|
266
|
+
Schema.Literal("sms"),
|
|
267
|
+
Schema.Literal("whatsapp"),
|
|
268
|
+
Schema.Literal("email")
|
|
269
|
+
]), Schema.Null])),
|
|
270
|
+
integration: Schema.optionalKey(Schema.Union([Schema.String.check(Schema.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })), Schema.Null])),
|
|
271
|
+
integrationId: Schema.optionalKey(Schema.Union([IntegrationId, Schema.Null])),
|
|
272
|
+
tool: Schema.optionalKey(Schema.Union([Schema.String.check(Schema.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })), Schema.Null]))
|
|
273
|
+
}),
|
|
274
|
+
facts: JsonObject,
|
|
275
|
+
kind: Schema.Literal("handoff"),
|
|
276
|
+
args: Schema.Struct({
|
|
277
|
+
reason: Schema.String.check(Schema.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })),
|
|
278
|
+
draft: Schema.optionalKey(Schema.Union([JsonValue, Schema.Null]))
|
|
279
|
+
})
|
|
280
|
+
})]).annotate({ identifier: "PolicyAction" }))();
|
|
281
|
+
const MailboxWhatsAppEndpoint = /* @__PURE__ */ (() => Schema.Struct({
|
|
282
|
+
id: MailboxEndpointId,
|
|
283
|
+
address: Schema.String,
|
|
284
|
+
displayName: Schema.Union([Schema.String, Schema.Null]),
|
|
285
|
+
default: Schema.Boolean,
|
|
286
|
+
channel: Schema.Literal("whatsapp"),
|
|
287
|
+
businessAccountId: WhatsAppBusinessAccountId
|
|
288
|
+
}).annotate({ identifier: "MailboxWhatsAppEndpoint" }))();
|
|
289
|
+
const MailboxWhatsAppEndpointBinding = /* @__PURE__ */ (() => Schema.Struct({
|
|
290
|
+
channel: Schema.Literal("whatsapp"),
|
|
291
|
+
businessAccountId: WhatsAppBusinessAccountId
|
|
292
|
+
}).annotate({ identifier: "MailboxWhatsAppEndpointBinding" }))();
|
|
213
293
|
const MailboxSummary = /* @__PURE__ */ (() => Schema.Struct({
|
|
214
294
|
id: MailboxId,
|
|
215
295
|
kind: MailboxKind,
|
|
@@ -219,8 +299,25 @@ const MailboxSummary = /* @__PURE__ */ (() => Schema.Struct({
|
|
|
219
299
|
name: Schema.String,
|
|
220
300
|
status: MailboxStatus,
|
|
221
301
|
primaryAddress: Schema.Union([Schema.String, Schema.Null]),
|
|
302
|
+
sendingStatus: Schema.Union([Schema.Union([
|
|
303
|
+
Schema.Literal("pending"),
|
|
304
|
+
Schema.Literal("ready"),
|
|
305
|
+
Schema.Literal("failed")
|
|
306
|
+
]), Schema.Null]),
|
|
222
307
|
createdAt: Schema.String
|
|
223
308
|
}).annotate({ identifier: "MailboxSummary" }))();
|
|
309
|
+
const MailboxSmsEndpoint = /* @__PURE__ */ (() => Schema.Struct({
|
|
310
|
+
id: MailboxEndpointId,
|
|
311
|
+
address: Schema.String,
|
|
312
|
+
displayName: Schema.Union([Schema.String, Schema.Null]),
|
|
313
|
+
default: Schema.Boolean,
|
|
314
|
+
channel: Schema.Literal("sms"),
|
|
315
|
+
phoneNumberId: SmsPhoneNumberId
|
|
316
|
+
}).annotate({ identifier: "MailboxSmsEndpoint" }))();
|
|
317
|
+
const MailboxSmsEndpointBinding = /* @__PURE__ */ (() => Schema.Struct({
|
|
318
|
+
channel: Schema.Literal("sms"),
|
|
319
|
+
phoneNumberId: SmsPhoneNumberId
|
|
320
|
+
}).annotate({ identifier: "MailboxSmsEndpointBinding" }))();
|
|
224
321
|
const MailboxQuarantinedMessage = /* @__PURE__ */ (() => Schema.Struct({
|
|
225
322
|
id: MessageId,
|
|
226
323
|
disposition: Schema.Union([Schema.Literal("quarantined"), Schema.Literal("isolated")]),
|
|
@@ -245,6 +342,11 @@ const MailboxQuarantinedMessage = /* @__PURE__ */ (() => Schema.Struct({
|
|
|
245
342
|
threadId: Schema.Union([MailboxThreadId, Schema.Null]),
|
|
246
343
|
discardedAt: Schema.Union([Schema.String, Schema.Null])
|
|
247
344
|
}).annotate({ identifier: "MailboxQuarantinedMessage" }))();
|
|
345
|
+
const MailboxChatTemplate = /* @__PURE__ */ (() => Schema.Struct({
|
|
346
|
+
templateId: TemplateId,
|
|
347
|
+
templateChannelVariantId: TemplateChannelVariantId,
|
|
348
|
+
templateData: Schema.Union([JsonObject, Schema.Null])
|
|
349
|
+
}).annotate({ identifier: "MailboxChatTemplate" }))();
|
|
248
350
|
const MailboxDraftSummary = /* @__PURE__ */ (() => Schema.Struct({
|
|
249
351
|
id: MailboxDraftId,
|
|
250
352
|
channel: MailboxChannel,
|
|
@@ -257,6 +359,19 @@ const MailboxDraftSummary = /* @__PURE__ */ (() => Schema.Struct({
|
|
|
257
359
|
createdAt: Schema.String,
|
|
258
360
|
updatedAt: Schema.String
|
|
259
361
|
}).annotate({ identifier: "MailboxDraftSummary" }))();
|
|
362
|
+
const MailboxChatDraft = /* @__PURE__ */ (() => Schema.Struct({
|
|
363
|
+
id: MailboxDraftId,
|
|
364
|
+
channel: Schema.Union([Schema.Literal("whatsapp"), Schema.Literal("sms")]),
|
|
365
|
+
threadId: Schema.Union([MailboxThreadId, Schema.Null]),
|
|
366
|
+
inReplyToMessageId: Schema.Union([MessageId, Schema.Null]),
|
|
367
|
+
state: MailboxDraftState,
|
|
368
|
+
lockedByActionId: Schema.Union([MailboxActionId, Schema.Null]),
|
|
369
|
+
to: Schema.Array(Schema.String),
|
|
370
|
+
subject: Schema.Union([Schema.String, Schema.Null]),
|
|
371
|
+
createdAt: Schema.String,
|
|
372
|
+
updatedAt: Schema.String,
|
|
373
|
+
text: Schema.Union([Schema.String, Schema.Null])
|
|
374
|
+
}).annotate({ identifier: "MailboxChatDraft" }))();
|
|
260
375
|
const MailboxEvent = /* @__PURE__ */ (() => Schema.Struct({
|
|
261
376
|
id: MailboxEventId,
|
|
262
377
|
type: Schema.Union([
|
|
@@ -325,7 +440,6 @@ const MailboxGrant = /* @__PURE__ */ (() => Schema.Struct({
|
|
|
325
440
|
Schema.Literal("quarantine:read"),
|
|
326
441
|
Schema.Literal("quarantine:release")
|
|
327
442
|
])),
|
|
328
|
-
sendMode: MailboxSendMode,
|
|
329
443
|
createdAt: Schema.String
|
|
330
444
|
}).annotate({ identifier: "MailboxGrant" }))();
|
|
331
445
|
const MailboxLabel = /* @__PURE__ */ (() => Schema.Struct({
|
|
@@ -358,7 +472,7 @@ const MailboxMessageSummary = /* @__PURE__ */ (() => Schema.Struct({
|
|
|
358
472
|
hasAttachments: Schema.Boolean,
|
|
359
473
|
occurredAt: Schema.String
|
|
360
474
|
}).annotate({ identifier: "MailboxMessageSummary" }))();
|
|
361
|
-
const
|
|
475
|
+
const MailboxEmailMessage = /* @__PURE__ */ (() => Schema.Struct({
|
|
362
476
|
id: MessageId,
|
|
363
477
|
campaign: Schema.optionalKey(Schema.Union([Schema.Struct({
|
|
364
478
|
campaignId: CampaignId,
|
|
@@ -401,16 +515,38 @@ const MailboxMessage = /* @__PURE__ */ (() => Schema.Struct({
|
|
|
401
515
|
size: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })).check(Schema.isLessThanOrEqualTo(9007199254740991).annotate({ expected: "a value less than or equal to 9007199254740991" })),
|
|
402
516
|
isInline: Schema.Boolean
|
|
403
517
|
}))
|
|
404
|
-
}).annotate({ identifier: "
|
|
405
|
-
const
|
|
406
|
-
id:
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
518
|
+
}).annotate({ identifier: "MailboxEmailMessage" }))();
|
|
519
|
+
const MailboxChatMessage = /* @__PURE__ */ (() => Schema.Struct({
|
|
520
|
+
id: MessageId,
|
|
521
|
+
campaign: Schema.optionalKey(Schema.Union([Schema.Struct({
|
|
522
|
+
campaignId: CampaignId,
|
|
523
|
+
runId: CampaignRunId
|
|
524
|
+
}), Schema.Null])),
|
|
525
|
+
threadId: MailboxThreadId,
|
|
526
|
+
conversationId: ConversationId,
|
|
527
|
+
direction: Schema.Union([Schema.Literal("inbound"), Schema.Literal("outbound")]),
|
|
528
|
+
from: MailboxMessageSender,
|
|
529
|
+
sentBy: Schema.optionalKey(Schema.Union([Schema.Struct({
|
|
530
|
+
kind: Schema.Union([
|
|
531
|
+
Schema.Literal("user"),
|
|
532
|
+
Schema.Literal("apiKey"),
|
|
533
|
+
Schema.Literal("extension"),
|
|
534
|
+
Schema.Literal("externalAgent"),
|
|
535
|
+
Schema.Literal("samvaAgent"),
|
|
536
|
+
Schema.Literal("system")
|
|
537
|
+
]),
|
|
538
|
+
id: Schema.String,
|
|
539
|
+
displayName: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null]))
|
|
540
|
+
}), Schema.Null])),
|
|
541
|
+
occurredAt: Schema.String,
|
|
542
|
+
channel: Schema.Union([Schema.Literal("whatsapp"), Schema.Literal("sms")]),
|
|
543
|
+
to: Schema.Array(Schema.String),
|
|
544
|
+
text: Schema.Union([Schema.String, Schema.Null]),
|
|
545
|
+
media: Schema.Array(MailboxChatMedia),
|
|
546
|
+
template: Schema.Union([MailboxChatMessageTemplate, Schema.Null]),
|
|
547
|
+
summary: Schema.Union([Schema.String, Schema.Null]),
|
|
548
|
+
contextMessageId: Schema.Union([MessageId, Schema.Null])
|
|
549
|
+
}).annotate({ identifier: "MailboxChatMessage" }))();
|
|
414
550
|
const MailboxThreadSummary = /* @__PURE__ */ (() => Schema.Struct({
|
|
415
551
|
id: MailboxThreadId,
|
|
416
552
|
channel: MailboxChannel,
|
|
@@ -499,6 +635,7 @@ const MailboxThread = /* @__PURE__ */ (() => Schema.Struct({
|
|
|
499
635
|
lastActivityAt: Schema.String,
|
|
500
636
|
conversationId: ConversationId,
|
|
501
637
|
participants: Schema.Array(MailboxThreadParticipant),
|
|
638
|
+
whatsappServiceWindow: Schema.Union([MailboxWhatsAppServiceWindow, Schema.Null]),
|
|
502
639
|
createdAt: Schema.String
|
|
503
640
|
}).annotate({ identifier: "MailboxThread" }))();
|
|
504
641
|
const MailboxNote = /* @__PURE__ */ (() => Schema.Struct({
|
|
@@ -521,21 +658,6 @@ const MailboxNote = /* @__PURE__ */ (() => Schema.Struct({
|
|
|
521
658
|
createdAt: Schema.String,
|
|
522
659
|
updatedAt: Schema.String
|
|
523
660
|
}).annotate({ identifier: "MailboxNote" }))();
|
|
524
|
-
const Mailbox = /* @__PURE__ */ (() => Schema.Struct({
|
|
525
|
-
id: MailboxId,
|
|
526
|
-
kind: MailboxKind,
|
|
527
|
-
owner: Schema.Union([UserId, Schema.Null]),
|
|
528
|
-
namespaceId: Schema.Union([NamespaceId, Schema.Null]),
|
|
529
|
-
slug: Schema.String,
|
|
530
|
-
name: Schema.String,
|
|
531
|
-
status: MailboxStatus,
|
|
532
|
-
primaryAddress: Schema.Union([Schema.String, Schema.Null]),
|
|
533
|
-
createdAt: Schema.String,
|
|
534
|
-
description: Schema.Union([Schema.String, Schema.Null]),
|
|
535
|
-
metadata: MailboxMetadata,
|
|
536
|
-
endpoints: Schema.Array(MailboxEndpoint),
|
|
537
|
-
updatedAt: Schema.String
|
|
538
|
-
}).annotate({ identifier: "Mailbox" }))();
|
|
539
661
|
const OrganizationMailboxDraftSummary = /* @__PURE__ */ (() => Schema.Struct({
|
|
540
662
|
id: MailboxDraftId,
|
|
541
663
|
channel: MailboxChannel,
|
|
@@ -549,50 +671,6 @@ const OrganizationMailboxDraftSummary = /* @__PURE__ */ (() => Schema.Struct({
|
|
|
549
671
|
updatedAt: Schema.String,
|
|
550
672
|
mailbox: MailboxThreadMailbox
|
|
551
673
|
}).annotate({ identifier: "OrganizationMailboxDraftSummary" }))();
|
|
552
|
-
const MailboxNeedsYouItem = /* @__PURE__ */ (() => Schema.Union([Schema.Struct({
|
|
553
|
-
type: Schema.Literal("heldSend"),
|
|
554
|
-
id: MailboxActionId,
|
|
555
|
-
mailbox: MailboxThreadMailbox,
|
|
556
|
-
threadId: Schema.Union([MailboxThreadId, Schema.Null]),
|
|
557
|
-
draftId: Schema.Union([MailboxDraftId, Schema.Null]),
|
|
558
|
-
proposedBy: Schema.Struct({
|
|
559
|
-
kind: Schema.Union([
|
|
560
|
-
Schema.Literal("user"),
|
|
561
|
-
Schema.Literal("apiKey"),
|
|
562
|
-
Schema.Literal("extension"),
|
|
563
|
-
Schema.Literal("externalAgent"),
|
|
564
|
-
Schema.Literal("samvaAgent"),
|
|
565
|
-
Schema.Literal("system")
|
|
566
|
-
]),
|
|
567
|
-
id: Schema.String,
|
|
568
|
-
displayName: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null]))
|
|
569
|
-
}),
|
|
570
|
-
source: Schema.Union([
|
|
571
|
-
Schema.Literal("humanUi"),
|
|
572
|
-
Schema.Literal("externalApi"),
|
|
573
|
-
Schema.Literal("aiSdkTool"),
|
|
574
|
-
Schema.Literal("extension"),
|
|
575
|
-
Schema.Literal("externalAgent"),
|
|
576
|
-
Schema.Literal("samvaManagedAgent"),
|
|
577
|
-
Schema.Literal("system")
|
|
578
|
-
]),
|
|
579
|
-
createdAt: Schema.String
|
|
580
|
-
}), Schema.Struct({
|
|
581
|
-
type: Schema.Literal("quarantinedMessage"),
|
|
582
|
-
id: MessageId,
|
|
583
|
-
mailbox: MailboxThreadMailbox,
|
|
584
|
-
reason: Schema.Union([
|
|
585
|
-
Schema.Literal("spam"),
|
|
586
|
-
Schema.Literal("dmarc"),
|
|
587
|
-
Schema.Literal("virus"),
|
|
588
|
-
Schema.Literal("virus_unscanned"),
|
|
589
|
-
Schema.Literal("phishing"),
|
|
590
|
-
Schema.Literal("fraud"),
|
|
591
|
-
Schema.Literal("prompt_injection")
|
|
592
|
-
]),
|
|
593
|
-
source: Schema.Union([Schema.Literal("receipt"), Schema.Literal("classifier")]),
|
|
594
|
-
heldAt: Schema.String
|
|
595
|
-
})]).annotate({ identifier: "MailboxNeedsYouItem" }))();
|
|
596
674
|
const OrganizationMailboxThreadSummary = /* @__PURE__ */ (() => Schema.Struct({
|
|
597
675
|
id: MailboxThreadId,
|
|
598
676
|
channel: MailboxChannel,
|
|
@@ -626,7 +704,7 @@ const OrganizationMailboxThreadSummary = /* @__PURE__ */ (() => Schema.Struct({
|
|
|
626
704
|
lastActivityAt: Schema.String,
|
|
627
705
|
mailbox: MailboxThreadMailbox
|
|
628
706
|
}).annotate({ identifier: "OrganizationMailboxThreadSummary" }))();
|
|
629
|
-
const
|
|
707
|
+
const MailboxEmailSendSnapshot = /* @__PURE__ */ (() => Schema.Struct({
|
|
630
708
|
channel: Schema.Literal("email"),
|
|
631
709
|
draftRevision: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isLessThanOrEqualTo(9007199254740991).annotate({ expected: "a value less than or equal to 9007199254740991" })).check(Schema.isGreaterThan(0).annotate({ expected: "a value greater than 0" })),
|
|
632
710
|
from: Schema.String,
|
|
@@ -642,8 +720,8 @@ const MailboxSendSnapshot = /* @__PURE__ */ (() => Schema.Struct({
|
|
|
642
720
|
threadId: Schema.Union([MailboxThreadId, Schema.Null]),
|
|
643
721
|
conversationId: Schema.Union([ConversationId, Schema.Null]),
|
|
644
722
|
inReplyToMessageId: Schema.Union([MessageId, Schema.Null])
|
|
645
|
-
}).annotate({ identifier: "
|
|
646
|
-
const
|
|
723
|
+
}).annotate({ identifier: "MailboxEmailSendSnapshot" }))();
|
|
724
|
+
const MailboxEmailDraft = /* @__PURE__ */ (() => Schema.Struct({
|
|
647
725
|
id: MailboxDraftId,
|
|
648
726
|
channel: Schema.Literal("email"),
|
|
649
727
|
threadId: Schema.Union([MailboxThreadId, Schema.Null]),
|
|
@@ -661,11 +739,80 @@ const MailboxDraft = /* @__PURE__ */ (() => Schema.Struct({
|
|
|
661
739
|
html: Schema.Union([Schema.String, Schema.Null]),
|
|
662
740
|
text: Schema.Union([Schema.String, Schema.Null]),
|
|
663
741
|
attachments: Schema.Array(EmailAttachment).check(Schema.isMaxLength(10).annotate({ expected: "a value with a length of at most 10" }))
|
|
664
|
-
}).annotate({ identifier: "
|
|
742
|
+
}).annotate({ identifier: "MailboxEmailDraft" }))();
|
|
743
|
+
const PolicyDecision = /* @__PURE__ */ (() => Schema.Struct({
|
|
744
|
+
requirement: PolicyRequirement,
|
|
745
|
+
decider: PolicyDecider,
|
|
746
|
+
outcome: Schema.Union([
|
|
747
|
+
Schema.Literal("allow"),
|
|
748
|
+
Schema.Literal("hold"),
|
|
749
|
+
Schema.Literal("refuse")
|
|
750
|
+
]),
|
|
751
|
+
reason: Schema.String.check(Schema.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })),
|
|
752
|
+
scopes: Schema.Array(Schema.Struct({
|
|
753
|
+
kind: Schema.Union([
|
|
754
|
+
Schema.Literal("organization"),
|
|
755
|
+
Schema.Literal("mailbox"),
|
|
756
|
+
Schema.Literal("agent"),
|
|
757
|
+
Schema.Literal("apiKey")
|
|
758
|
+
]),
|
|
759
|
+
id: Schema.String.check(Schema.isMinLength(1).annotate({ expected: "a value with a length of at least 1" }))
|
|
760
|
+
})),
|
|
761
|
+
rule: Schema.optionalKey(Schema.Union([Schema.Struct({
|
|
762
|
+
scope: Schema.Struct({
|
|
763
|
+
kind: Schema.Union([
|
|
764
|
+
Schema.Literal("organization"),
|
|
765
|
+
Schema.Literal("mailbox"),
|
|
766
|
+
Schema.Literal("agent"),
|
|
767
|
+
Schema.Literal("apiKey")
|
|
768
|
+
]),
|
|
769
|
+
id: Schema.String.check(Schema.isMinLength(1).annotate({ expected: "a value with a length of at least 1" }))
|
|
770
|
+
}),
|
|
771
|
+
index: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })).check(Schema.isLessThanOrEqualTo(9007199254740991).annotate({ expected: "a value less than or equal to 9007199254740991" }))
|
|
772
|
+
}), Schema.Null])),
|
|
773
|
+
guard: Schema.optionalKey(Schema.Union([Schema.String.check(Schema.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })), Schema.Null])),
|
|
774
|
+
guardReason: Schema.optionalKey(Schema.Union([Schema.String.check(Schema.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })), Schema.Null])),
|
|
775
|
+
id: PolicyDecisionId,
|
|
776
|
+
reviewRound: PolicyReviewRound,
|
|
777
|
+
subject: PolicySubject,
|
|
778
|
+
action: PolicyAction,
|
|
779
|
+
judge: Schema.optionalKey(Schema.Union([Schema.Struct({
|
|
780
|
+
model: Schema.String.check(Schema.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })),
|
|
781
|
+
instructionVersion: Schema.optionalKey(Schema.Union([Schema.String.check(Schema.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })), Schema.Null])),
|
|
782
|
+
instructionHash: Schema.optionalKey(Schema.Union([Schema.String.check(Schema.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })), Schema.Null])),
|
|
783
|
+
ms: Schema.Finite.check(Schema.isFinite().annotate({ expected: "a finite number" })).check(Schema.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })),
|
|
784
|
+
usage: JsonObject
|
|
785
|
+
}), Schema.Null])),
|
|
786
|
+
resolution: Schema.optionalKey(Schema.Union([Schema.Struct({
|
|
787
|
+
by: UserId,
|
|
788
|
+
at: Schema.String,
|
|
789
|
+
as: Schema.Union([
|
|
790
|
+
Schema.Literal("approved"),
|
|
791
|
+
Schema.Literal("edited"),
|
|
792
|
+
Schema.Literal("denied"),
|
|
793
|
+
Schema.Literal("alwaysAllowed")
|
|
794
|
+
]),
|
|
795
|
+
diff: Schema.optionalKey(Schema.Union([Schema.Struct({
|
|
796
|
+
text: Schema.optionalKey(Schema.Union([Schema.Struct({
|
|
797
|
+
before: Schema.Union([Schema.String, Schema.Null]),
|
|
798
|
+
after: Schema.Union([Schema.String, Schema.Null])
|
|
799
|
+
}), Schema.Null])),
|
|
800
|
+
html: Schema.optionalKey(Schema.Union([Schema.Struct({
|
|
801
|
+
before: Schema.Union([Schema.String, Schema.Null]),
|
|
802
|
+
after: Schema.Union([Schema.String, Schema.Null])
|
|
803
|
+
}), Schema.Null]))
|
|
804
|
+
}), Schema.Null]))
|
|
805
|
+
}), Schema.Null]))
|
|
806
|
+
}).annotate({ identifier: "PolicyDecision" }))();
|
|
665
807
|
const MailboxPage = /* @__PURE__ */ (() => Schema.Struct({
|
|
666
808
|
items: Schema.Array(MailboxSummary),
|
|
667
809
|
nextCursor: Schema.Union([Schema.String, Schema.Null])
|
|
668
810
|
}).annotate({ identifier: "MailboxPage" }))();
|
|
811
|
+
const MailboxEndpoint = /* @__PURE__ */ (() => Schema.Union([
|
|
812
|
+
MailboxEmailEndpoint,
|
|
813
|
+
MailboxWhatsAppEndpoint,
|
|
814
|
+
MailboxSmsEndpoint
|
|
815
|
+
]).annotate({ identifier: "MailboxEndpoint" }))();
|
|
669
816
|
const MailboxQuarantinePage = /* @__PURE__ */ (() => Schema.Struct({
|
|
670
817
|
items: Schema.Array(MailboxQuarantinedMessage),
|
|
671
818
|
nextCursor: Schema.Union([Schema.String, Schema.Null])
|
|
@@ -706,7 +853,8 @@ const MailboxNonSendAction = /* @__PURE__ */ (() => Schema.Struct({
|
|
|
706
853
|
Schema.Literal("changeThreadState"),
|
|
707
854
|
Schema.Literal("call"),
|
|
708
855
|
Schema.Literal("extensionRequest"),
|
|
709
|
-
Schema.Literal("toolCall")
|
|
856
|
+
Schema.Literal("toolCall"),
|
|
857
|
+
Schema.Literal("handoff")
|
|
710
858
|
]),
|
|
711
859
|
state: Schema.Union([
|
|
712
860
|
Schema.Literal("proposed"),
|
|
@@ -758,6 +906,19 @@ const MailboxPendingSendReceipt = /* @__PURE__ */ (() => Schema.Struct({
|
|
|
758
906
|
createdAt: Schema.String,
|
|
759
907
|
updatedAt: Schema.String
|
|
760
908
|
}).annotate({ identifier: "MailboxPendingSendReceipt" }))();
|
|
909
|
+
const MailboxChatSendIntent = /* @__PURE__ */ (() => Schema.Struct({
|
|
910
|
+
channel: Schema.Union([Schema.Literal("whatsapp"), Schema.Literal("sms")]),
|
|
911
|
+
draftRevision: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isLessThanOrEqualTo(9007199254740991).annotate({ expected: "a value less than or equal to 9007199254740991" })).check(Schema.isGreaterThan(0).annotate({ expected: "a value greater than 0" })),
|
|
912
|
+
endpointId: MailboxEndpointId,
|
|
913
|
+
sender: Schema.Union([MailboxWhatsAppEndpointBinding, MailboxSmsEndpointBinding]),
|
|
914
|
+
from: Schema.String,
|
|
915
|
+
to: Schema.String,
|
|
916
|
+
text: Schema.Union([Schema.String, Schema.Null]),
|
|
917
|
+
template: Schema.Union([MailboxChatTemplate, Schema.Null]),
|
|
918
|
+
threadId: Schema.Union([MailboxThreadId, Schema.Null]),
|
|
919
|
+
conversationId: Schema.Union([ConversationId, Schema.Null]),
|
|
920
|
+
inReplyToMessageId: Schema.Union([MessageId, Schema.Null])
|
|
921
|
+
}).annotate({ identifier: "MailboxChatSendIntent" }))();
|
|
761
922
|
const MailboxDraftPage = /* @__PURE__ */ (() => Schema.Struct({
|
|
762
923
|
items: Schema.Array(MailboxDraftSummary),
|
|
763
924
|
nextCursor: Schema.Union([Schema.String, Schema.Null])
|
|
@@ -776,11 +937,7 @@ const MailboxMessagePage = /* @__PURE__ */ (() => Schema.Struct({
|
|
|
776
937
|
items: Schema.Array(MailboxMessageSummary),
|
|
777
938
|
nextCursor: Schema.Union([Schema.String, Schema.Null])
|
|
778
939
|
}).annotate({ identifier: "MailboxMessagePage" }))();
|
|
779
|
-
const
|
|
780
|
-
items: Schema.Array(MailboxMessage),
|
|
781
|
-
nextCursor: Schema.Union([Schema.String, Schema.Null])
|
|
782
|
-
}).annotate({ identifier: "MailboxThreadContentPage" }))();
|
|
783
|
-
const MailboxPolicyList = /* @__PURE__ */ (() => Schema.Struct({ items: Schema.Array(MailboxPolicy) }).annotate({ identifier: "MailboxPolicyList" }))();
|
|
940
|
+
const MailboxMessage = /* @__PURE__ */ (() => Schema.Union([MailboxEmailMessage, MailboxChatMessage]).annotate({ identifier: "MailboxMessage" }))();
|
|
784
941
|
const MailboxThreadPage = /* @__PURE__ */ (() => Schema.Struct({
|
|
785
942
|
items: Schema.Array(MailboxThreadSummary),
|
|
786
943
|
nextCursor: Schema.Union([Schema.String, Schema.Null])
|
|
@@ -793,19 +950,36 @@ const OrganizationMailboxDraftPage = /* @__PURE__ */ (() => Schema.Struct({
|
|
|
793
950
|
items: Schema.Array(OrganizationMailboxDraftSummary),
|
|
794
951
|
nextCursor: Schema.Union([Schema.String, Schema.Null])
|
|
795
952
|
}).annotate({ identifier: "OrganizationMailboxDraftPage" }))();
|
|
796
|
-
const MailboxNeedsYou = /* @__PURE__ */ (() => Schema.Struct({
|
|
797
|
-
items: Schema.Array(MailboxNeedsYouItem),
|
|
798
|
-
nextCursor: Schema.Union([Schema.String, Schema.Null]),
|
|
799
|
-
counts: Schema.Struct({
|
|
800
|
-
heldSends: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThanOrEqualTo(-9007199254740991).annotate({ expected: "a value greater than or equal to -9007199254740991" })).check(Schema.isLessThanOrEqualTo(9007199254740991).annotate({ expected: "a value less than or equal to 9007199254740991" })),
|
|
801
|
-
quarantinedMessages: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThanOrEqualTo(-9007199254740991).annotate({ expected: "a value greater than or equal to -9007199254740991" })).check(Schema.isLessThanOrEqualTo(9007199254740991).annotate({ expected: "a value less than or equal to 9007199254740991" })),
|
|
802
|
-
total: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThanOrEqualTo(-9007199254740991).annotate({ expected: "a value greater than or equal to -9007199254740991" })).check(Schema.isLessThanOrEqualTo(9007199254740991).annotate({ expected: "a value less than or equal to 9007199254740991" }))
|
|
803
|
-
}).annotate({ description: "All items this caller may decide, independent of the current page." })
|
|
804
|
-
}).annotate({ identifier: "MailboxNeedsYou" }))();
|
|
805
953
|
const OrganizationMailboxThreadPage = /* @__PURE__ */ (() => Schema.Struct({
|
|
806
954
|
items: Schema.Array(OrganizationMailboxThreadSummary),
|
|
807
955
|
nextCursor: Schema.Union([Schema.String, Schema.Null])
|
|
808
956
|
}).annotate({ identifier: "OrganizationMailboxThreadPage" }))();
|
|
957
|
+
const MailboxDraft = /* @__PURE__ */ (() => Schema.Union([MailboxEmailDraft, MailboxChatDraft]).annotate({ identifier: "MailboxDraft" }))();
|
|
958
|
+
const Mailbox = /* @__PURE__ */ (() => Schema.Struct({
|
|
959
|
+
id: MailboxId,
|
|
960
|
+
kind: MailboxKind,
|
|
961
|
+
owner: Schema.Union([UserId, Schema.Null]),
|
|
962
|
+
namespaceId: Schema.Union([NamespaceId, Schema.Null]),
|
|
963
|
+
slug: Schema.String,
|
|
964
|
+
name: Schema.String,
|
|
965
|
+
status: MailboxStatus,
|
|
966
|
+
primaryAddress: Schema.Union([Schema.String, Schema.Null]),
|
|
967
|
+
sendingStatus: Schema.Union([Schema.Union([
|
|
968
|
+
Schema.Literal("pending"),
|
|
969
|
+
Schema.Literal("ready"),
|
|
970
|
+
Schema.Literal("failed")
|
|
971
|
+
]), Schema.Null]),
|
|
972
|
+
createdAt: Schema.String,
|
|
973
|
+
description: Schema.Union([Schema.String, Schema.Null]),
|
|
974
|
+
metadata: MailboxMetadata,
|
|
975
|
+
endpoints: Schema.Array(MailboxEndpoint),
|
|
976
|
+
updatedAt: Schema.String
|
|
977
|
+
}).annotate({ identifier: "Mailbox" }))();
|
|
978
|
+
const MailboxSendSnapshot = /* @__PURE__ */ (() => Schema.Union([MailboxEmailSendSnapshot, MailboxChatSendIntent]).annotate({ identifier: "MailboxSendSnapshot" }))();
|
|
979
|
+
const MailboxThreadContentPage = /* @__PURE__ */ (() => Schema.Struct({
|
|
980
|
+
items: Schema.Array(MailboxMessage),
|
|
981
|
+
nextCursor: Schema.Union([Schema.String, Schema.Null])
|
|
982
|
+
}).annotate({ identifier: "MailboxThreadContentPage" }))();
|
|
809
983
|
const MailboxSendAction = /* @__PURE__ */ (() => Schema.Struct({
|
|
810
984
|
id: MailboxActionId,
|
|
811
985
|
source: Schema.Union([
|
|
@@ -847,24 +1021,95 @@ const MailboxSendAction = /* @__PURE__ */ (() => Schema.Struct({
|
|
|
847
1021
|
send: MailboxSendReceipt,
|
|
848
1022
|
intent: Schema.Union([MailboxSendSnapshot, Schema.Null])
|
|
849
1023
|
}).annotate({ identifier: "MailboxSendAction" }))();
|
|
1024
|
+
const MailboxNeedsYouItem = /* @__PURE__ */ (() => Schema.Union([Schema.Struct({
|
|
1025
|
+
type: Schema.Literal("heldAction"),
|
|
1026
|
+
actionType: Schema.Union([
|
|
1027
|
+
Schema.Literal("sendMessage"),
|
|
1028
|
+
Schema.Literal("reply"),
|
|
1029
|
+
Schema.Literal("updateDraft"),
|
|
1030
|
+
Schema.Literal("createNote"),
|
|
1031
|
+
Schema.Literal("assignThread"),
|
|
1032
|
+
Schema.Literal("changeThreadState"),
|
|
1033
|
+
Schema.Literal("call"),
|
|
1034
|
+
Schema.Literal("extensionRequest"),
|
|
1035
|
+
Schema.Literal("toolCall"),
|
|
1036
|
+
Schema.Literal("handoff")
|
|
1037
|
+
]),
|
|
1038
|
+
decision: PolicyDecision,
|
|
1039
|
+
tool: Schema.Union([MailboxToolCall, Schema.Null]),
|
|
1040
|
+
intent: Schema.Union([MailboxSendSnapshot, Schema.Null]),
|
|
1041
|
+
id: MailboxActionId,
|
|
1042
|
+
mailbox: MailboxThreadMailbox,
|
|
1043
|
+
threadId: Schema.Union([MailboxThreadId, Schema.Null]),
|
|
1044
|
+
draftId: Schema.Union([MailboxDraftId, Schema.Null]),
|
|
1045
|
+
proposedBy: Schema.Struct({
|
|
1046
|
+
kind: Schema.Union([
|
|
1047
|
+
Schema.Literal("user"),
|
|
1048
|
+
Schema.Literal("apiKey"),
|
|
1049
|
+
Schema.Literal("extension"),
|
|
1050
|
+
Schema.Literal("externalAgent"),
|
|
1051
|
+
Schema.Literal("samvaAgent"),
|
|
1052
|
+
Schema.Literal("system")
|
|
1053
|
+
]),
|
|
1054
|
+
id: Schema.String,
|
|
1055
|
+
displayName: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null]))
|
|
1056
|
+
}),
|
|
1057
|
+
source: Schema.Union([
|
|
1058
|
+
Schema.Literal("humanUi"),
|
|
1059
|
+
Schema.Literal("externalApi"),
|
|
1060
|
+
Schema.Literal("aiSdkTool"),
|
|
1061
|
+
Schema.Literal("extension"),
|
|
1062
|
+
Schema.Literal("externalAgent"),
|
|
1063
|
+
Schema.Literal("samvaManagedAgent"),
|
|
1064
|
+
Schema.Literal("system")
|
|
1065
|
+
]),
|
|
1066
|
+
createdAt: Schema.String
|
|
1067
|
+
}), Schema.Struct({
|
|
1068
|
+
type: Schema.Literal("quarantinedMessage"),
|
|
1069
|
+
id: MessageId,
|
|
1070
|
+
mailbox: MailboxThreadMailbox,
|
|
1071
|
+
reason: Schema.Union([
|
|
1072
|
+
Schema.Literal("spam"),
|
|
1073
|
+
Schema.Literal("dmarc"),
|
|
1074
|
+
Schema.Literal("virus"),
|
|
1075
|
+
Schema.Literal("virus_unscanned"),
|
|
1076
|
+
Schema.Literal("phishing"),
|
|
1077
|
+
Schema.Literal("fraud"),
|
|
1078
|
+
Schema.Literal("prompt_injection")
|
|
1079
|
+
]),
|
|
1080
|
+
source: Schema.Union([Schema.Literal("receipt"), Schema.Literal("classifier")]),
|
|
1081
|
+
heldAt: Schema.String
|
|
1082
|
+
})]).annotate({ identifier: "MailboxNeedsYouItem" }))();
|
|
850
1083
|
const MailboxAction = /* @__PURE__ */ (() => Schema.Union([MailboxSendAction, MailboxNonSendAction]).annotate({ identifier: "MailboxAction" }))();
|
|
851
1084
|
const MailboxPendingAction = /* @__PURE__ */ (() => Schema.Union([MailboxSendAction, MailboxNonSendAction]).annotate({ identifier: "MailboxPendingAction" }))();
|
|
1085
|
+
const MailboxNeedsYou = /* @__PURE__ */ (() => Schema.Struct({
|
|
1086
|
+
items: Schema.Array(MailboxNeedsYouItem),
|
|
1087
|
+
nextCursor: Schema.Union([Schema.String, Schema.Null]),
|
|
1088
|
+
counts: Schema.Struct({
|
|
1089
|
+
heldActions: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThanOrEqualTo(-9007199254740991).annotate({ expected: "a value greater than or equal to -9007199254740991" })).check(Schema.isLessThanOrEqualTo(9007199254740991).annotate({ expected: "a value less than or equal to 9007199254740991" })),
|
|
1090
|
+
quarantinedMessages: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThanOrEqualTo(-9007199254740991).annotate({ expected: "a value greater than or equal to -9007199254740991" })).check(Schema.isLessThanOrEqualTo(9007199254740991).annotate({ expected: "a value less than or equal to 9007199254740991" })),
|
|
1091
|
+
total: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThanOrEqualTo(-9007199254740991).annotate({ expected: "a value greater than or equal to -9007199254740991" })).check(Schema.isLessThanOrEqualTo(9007199254740991).annotate({ expected: "a value less than or equal to 9007199254740991" }))
|
|
1092
|
+
}).annotate({ description: "All items this caller may decide, independent of the current page." })
|
|
1093
|
+
}).annotate({ identifier: "MailboxNeedsYou" }))();
|
|
852
1094
|
const MailboxActionPage = /* @__PURE__ */ (() => Schema.Struct({
|
|
853
1095
|
items: Schema.Array(MailboxAction),
|
|
854
1096
|
nextCursor: Schema.Union([Schema.String, Schema.Null])
|
|
855
1097
|
}).annotate({ identifier: "MailboxActionPage" }))();
|
|
856
1098
|
const MailboxesListQuery = /* @__PURE__ */ (() => Schema.Struct({
|
|
857
1099
|
limit: Schema.optionalKey(Schema.Union([Schema.Finite.annotate({ description: "Items per page, at most 100." }).check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isLessThanOrEqualTo(100).annotate({ expected: "a value less than or equal to 100" })).check(Schema.isGreaterThan(0).annotate({ expected: "a value greater than 0" })), Schema.Null])),
|
|
858
|
-
cursor: Schema.optionalKey(Schema.
|
|
859
|
-
after: Schema.optionalKey(Schema.
|
|
860
|
-
before: Schema.optionalKey(Schema.
|
|
1100
|
+
cursor: Schema.optionalKey(Schema.String),
|
|
1101
|
+
after: Schema.optionalKey(Schema.String),
|
|
1102
|
+
before: Schema.optionalKey(Schema.String),
|
|
1103
|
+
namespaceId: Schema.optionalKey(NamespaceId)
|
|
861
1104
|
}))();
|
|
862
1105
|
const MailboxesList200 = MailboxPage;
|
|
1106
|
+
const MailboxesList400 = MalformedRequestError;
|
|
863
1107
|
const MailboxesList401 = UnauthorizedError;
|
|
864
1108
|
const MailboxesList403 = ForbiddenError;
|
|
865
1109
|
const MailboxesList422 = ValidationError;
|
|
866
1110
|
const MailboxesList500 = InternalError;
|
|
867
1111
|
const MailboxesList504 = GatewayTimeoutError;
|
|
1112
|
+
const MailboxesCreateHeaders = /* @__PURE__ */ (() => Schema.Struct({ "idempotency-key": Schema.optionalKey(Schema.String.annotate({ description: "Optional key that makes mailbox creation idempotent for the calling key or member. The same key and body return the original mailbox in its current state. A different body with the same key returns 409. Keep the key after a lost response; it remains bound for the mailbox's lifetime." }).check(Schema.isPattern(new globalThis.RegExp("^[\\s\\S]{1,255}$")).annotate({ expected: "a string matching the RegExp ^[\\s\\S]{1,255}$" }))) }))();
|
|
868
1113
|
const MailboxesCreateRequestJson = /* @__PURE__ */ (() => Schema.Struct({
|
|
869
1114
|
namespaceId: Schema.optionalKey(Schema.Union([NamespaceId, Schema.Null])),
|
|
870
1115
|
endpoint: CreateMailboxEndpointPayload,
|
|
@@ -873,6 +1118,7 @@ const MailboxesCreateRequestJson = /* @__PURE__ */ (() => Schema.Struct({
|
|
|
873
1118
|
metadata: Schema.optionalKey(Schema.Union([MailboxMetadata, Schema.Null]))
|
|
874
1119
|
}))();
|
|
875
1120
|
const MailboxesCreate201 = Mailbox;
|
|
1121
|
+
const MailboxesCreate400 = MalformedRequestError;
|
|
876
1122
|
const MailboxesCreate401 = UnauthorizedError;
|
|
877
1123
|
const MailboxesCreate402 = PaymentRequiredError;
|
|
878
1124
|
const MailboxesCreate403 = /* @__PURE__ */ (() => Schema.Union([FlagDisabledError, ForbiddenError]))();
|
|
@@ -884,6 +1130,7 @@ const MailboxesCreate502 = BillingProviderError;
|
|
|
884
1130
|
const MailboxesCreate504 = GatewayTimeoutError;
|
|
885
1131
|
const MailboxesGetPathParams = /* @__PURE__ */ (() => Schema.Struct({ id: MailboxId }))();
|
|
886
1132
|
const MailboxesGet200 = Mailbox;
|
|
1133
|
+
const MailboxesGet400 = MalformedRequestError;
|
|
887
1134
|
const MailboxesGet401 = UnauthorizedError;
|
|
888
1135
|
const MailboxesGet403 = ForbiddenError;
|
|
889
1136
|
const MailboxesGet404 = ResourceNotFoundError;
|
|
@@ -892,6 +1139,7 @@ const MailboxesGet500 = InternalError;
|
|
|
892
1139
|
const MailboxesGet504 = GatewayTimeoutError;
|
|
893
1140
|
const MailboxesRemovePathParams = /* @__PURE__ */ (() => Schema.Struct({ id: MailboxId }))();
|
|
894
1141
|
const MailboxesRemove200 = SuccessResponse;
|
|
1142
|
+
const MailboxesRemove400 = MalformedRequestError;
|
|
895
1143
|
const MailboxesRemove401 = UnauthorizedError;
|
|
896
1144
|
const MailboxesRemove403 = ForbiddenError;
|
|
897
1145
|
const MailboxesRemove404 = ResourceNotFoundError;
|
|
@@ -905,6 +1153,7 @@ const MailboxesUpdateRequestJson = /* @__PURE__ */ (() => Schema.Struct({
|
|
|
905
1153
|
metadata: Schema.optionalKey(Schema.Union([MailboxMetadataPatch, Schema.Null]))
|
|
906
1154
|
}))();
|
|
907
1155
|
const MailboxesUpdate200 = Mailbox;
|
|
1156
|
+
const MailboxesUpdate400 = MalformedRequestError;
|
|
908
1157
|
const MailboxesUpdate401 = UnauthorizedError;
|
|
909
1158
|
const MailboxesUpdate403 = ForbiddenError;
|
|
910
1159
|
const MailboxesUpdate404 = ResourceNotFoundError;
|
|
@@ -914,9 +1163,9 @@ const MailboxesUpdate504 = GatewayTimeoutError;
|
|
|
914
1163
|
const MailboxesListActionsPathParams = /* @__PURE__ */ (() => Schema.Struct({ id: MailboxId }))();
|
|
915
1164
|
const MailboxesListActionsQuery = /* @__PURE__ */ (() => Schema.Struct({
|
|
916
1165
|
limit: Schema.optionalKey(Schema.Union([Schema.Finite.annotate({ description: "Items per page, at most 100." }).check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isLessThanOrEqualTo(100).annotate({ expected: "a value less than or equal to 100" })).check(Schema.isGreaterThan(0).annotate({ expected: "a value greater than 0" })), Schema.Null])),
|
|
917
|
-
cursor: Schema.optionalKey(Schema.
|
|
918
|
-
threadId: Schema.optionalKey(
|
|
919
|
-
state: Schema.optionalKey(Schema.Union([
|
|
1166
|
+
cursor: Schema.optionalKey(Schema.String),
|
|
1167
|
+
threadId: Schema.optionalKey(MailboxThreadId),
|
|
1168
|
+
state: Schema.optionalKey(Schema.Union([
|
|
920
1169
|
Schema.Literal("proposed"),
|
|
921
1170
|
Schema.Literal("allowed"),
|
|
922
1171
|
Schema.Literal("approvalRequired"),
|
|
@@ -931,11 +1180,12 @@ const MailboxesListActionsQuery = /* @__PURE__ */ (() => Schema.Struct({
|
|
|
931
1180
|
Schema.Literal("completed"),
|
|
932
1181
|
Schema.Literal("notSent"),
|
|
933
1182
|
Schema.Literal("uncertain")
|
|
934
|
-
])
|
|
935
|
-
after: Schema.optionalKey(Schema.
|
|
936
|
-
before: Schema.optionalKey(Schema.
|
|
1183
|
+
])),
|
|
1184
|
+
after: Schema.optionalKey(Schema.String),
|
|
1185
|
+
before: Schema.optionalKey(Schema.String)
|
|
937
1186
|
}))();
|
|
938
1187
|
const MailboxesListActions200 = MailboxActionPage;
|
|
1188
|
+
const MailboxesListActions400 = MalformedRequestError;
|
|
939
1189
|
const MailboxesListActions401 = UnauthorizedError;
|
|
940
1190
|
const MailboxesListActions403 = ForbiddenError;
|
|
941
1191
|
const MailboxesListActions404 = ResourceNotFoundError;
|
|
@@ -947,6 +1197,7 @@ const MailboxesGetActionPathParams = /* @__PURE__ */ (() => Schema.Struct({
|
|
|
947
1197
|
actionId: MailboxActionId
|
|
948
1198
|
}))();
|
|
949
1199
|
const MailboxesGetAction200 = MailboxAction;
|
|
1200
|
+
const MailboxesGetAction400 = MalformedRequestError;
|
|
950
1201
|
const MailboxesGetAction401 = UnauthorizedError;
|
|
951
1202
|
const MailboxesGetAction403 = ForbiddenError;
|
|
952
1203
|
const MailboxesGetAction404 = ResourceNotFoundError;
|
|
@@ -957,8 +1208,17 @@ const MailboxesApproveActionPathParams = /* @__PURE__ */ (() => Schema.Struct({
|
|
|
957
1208
|
id: MailboxId,
|
|
958
1209
|
actionId: MailboxActionId
|
|
959
1210
|
}))();
|
|
1211
|
+
const MailboxesApproveActionRequestJson = /* @__PURE__ */ (() => Schema.Struct({
|
|
1212
|
+
reviewRound: PolicyReviewRound,
|
|
1213
|
+
always: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
1214
|
+
edits: Schema.optionalKey(Schema.Union([Schema.Struct({
|
|
1215
|
+
text: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
|
|
1216
|
+
html: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null]))
|
|
1217
|
+
}), Schema.Null]))
|
|
1218
|
+
}))();
|
|
960
1219
|
const MailboxesApproveAction200 = MailboxAction;
|
|
961
1220
|
const MailboxesApproveAction202 = MailboxPendingAction;
|
|
1221
|
+
const MailboxesApproveAction400 = MalformedRequestError;
|
|
962
1222
|
const MailboxesApproveAction401 = UnauthorizedError;
|
|
963
1223
|
const MailboxesApproveAction402 = PaymentRequiredError;
|
|
964
1224
|
const MailboxesApproveAction403 = /* @__PURE__ */ (() => Schema.Union([
|
|
@@ -969,7 +1229,7 @@ const MailboxesApproveAction403 = /* @__PURE__ */ (() => Schema.Union([
|
|
|
969
1229
|
]))();
|
|
970
1230
|
const MailboxesApproveAction404 = ResourceNotFoundError;
|
|
971
1231
|
const MailboxesApproveAction409 = /* @__PURE__ */ (() => Schema.Union([MailboxSendConflictError, ConflictError]))();
|
|
972
|
-
const MailboxesApproveAction422 = ValidationError;
|
|
1232
|
+
const MailboxesApproveAction422 = /* @__PURE__ */ (() => Schema.Union([WhatsAppServiceWindowClosedError, ValidationError]))();
|
|
973
1233
|
const MailboxesApproveAction429 = RateLimitedError;
|
|
974
1234
|
const MailboxesApproveAction500 = InternalError;
|
|
975
1235
|
const MailboxesApproveAction502 = BillingProviderError;
|
|
@@ -981,6 +1241,7 @@ const MailboxesCancelActionPathParams = /* @__PURE__ */ (() => Schema.Struct({
|
|
|
981
1241
|
}))();
|
|
982
1242
|
const MailboxesCancelAction200 = MailboxSendReceipt;
|
|
983
1243
|
const MailboxesCancelAction202 = MailboxPendingSendReceipt;
|
|
1244
|
+
const MailboxesCancelAction400 = MalformedRequestError;
|
|
984
1245
|
const MailboxesCancelAction401 = UnauthorizedError;
|
|
985
1246
|
const MailboxesCancelAction402 = PaymentRequiredError;
|
|
986
1247
|
const MailboxesCancelAction403 = /* @__PURE__ */ (() => Schema.Union([
|
|
@@ -991,7 +1252,7 @@ const MailboxesCancelAction403 = /* @__PURE__ */ (() => Schema.Union([
|
|
|
991
1252
|
]))();
|
|
992
1253
|
const MailboxesCancelAction404 = ResourceNotFoundError;
|
|
993
1254
|
const MailboxesCancelAction409 = /* @__PURE__ */ (() => Schema.Union([MailboxSendConflictError, ConflictError]))();
|
|
994
|
-
const MailboxesCancelAction422 = ValidationError;
|
|
1255
|
+
const MailboxesCancelAction422 = /* @__PURE__ */ (() => Schema.Union([WhatsAppServiceWindowClosedError, ValidationError]))();
|
|
995
1256
|
const MailboxesCancelAction429 = RateLimitedError;
|
|
996
1257
|
const MailboxesCancelAction500 = InternalError;
|
|
997
1258
|
const MailboxesCancelAction502 = BillingProviderError;
|
|
@@ -1001,8 +1262,12 @@ const MailboxesDenyActionPathParams = /* @__PURE__ */ (() => Schema.Struct({
|
|
|
1001
1262
|
id: MailboxId,
|
|
1002
1263
|
actionId: MailboxActionId
|
|
1003
1264
|
}))();
|
|
1004
|
-
const MailboxesDenyActionRequestJson = /* @__PURE__ */ (() => Schema.Struct({
|
|
1265
|
+
const MailboxesDenyActionRequestJson = /* @__PURE__ */ (() => Schema.Struct({
|
|
1266
|
+
reviewRound: PolicyReviewRound,
|
|
1267
|
+
reason: Schema.String
|
|
1268
|
+
}))();
|
|
1005
1269
|
const MailboxesDenyAction200 = MailboxAction;
|
|
1270
|
+
const MailboxesDenyAction400 = MalformedRequestError;
|
|
1006
1271
|
const MailboxesDenyAction401 = UnauthorizedError;
|
|
1007
1272
|
const MailboxesDenyAction403 = ForbiddenError;
|
|
1008
1273
|
const MailboxesDenyAction404 = ResourceNotFoundError;
|
|
@@ -1016,6 +1281,7 @@ const MailboxesRetryActionPathParams = /* @__PURE__ */ (() => Schema.Struct({
|
|
|
1016
1281
|
}))();
|
|
1017
1282
|
const MailboxesRetryAction200 = MailboxSendReceipt;
|
|
1018
1283
|
const MailboxesRetryAction202 = MailboxPendingSendReceipt;
|
|
1284
|
+
const MailboxesRetryAction400 = MalformedRequestError;
|
|
1019
1285
|
const MailboxesRetryAction401 = UnauthorizedError;
|
|
1020
1286
|
const MailboxesRetryAction402 = PaymentRequiredError;
|
|
1021
1287
|
const MailboxesRetryAction403 = /* @__PURE__ */ (() => Schema.Union([
|
|
@@ -1026,7 +1292,7 @@ const MailboxesRetryAction403 = /* @__PURE__ */ (() => Schema.Union([
|
|
|
1026
1292
|
]))();
|
|
1027
1293
|
const MailboxesRetryAction404 = ResourceNotFoundError;
|
|
1028
1294
|
const MailboxesRetryAction409 = /* @__PURE__ */ (() => Schema.Union([MailboxSendConflictError, ConflictError]))();
|
|
1029
|
-
const MailboxesRetryAction422 = ValidationError;
|
|
1295
|
+
const MailboxesRetryAction422 = /* @__PURE__ */ (() => Schema.Union([WhatsAppServiceWindowClosedError, ValidationError]))();
|
|
1030
1296
|
const MailboxesRetryAction429 = RateLimitedError;
|
|
1031
1297
|
const MailboxesRetryAction500 = InternalError;
|
|
1032
1298
|
const MailboxesRetryAction502 = BillingProviderError;
|
|
@@ -1034,10 +1300,11 @@ const MailboxesRetryAction503 = SenderNotReadyError;
|
|
|
1034
1300
|
const MailboxesRetryAction504 = GatewayTimeoutError;
|
|
1035
1301
|
const MailboxesGetAgentActivityPathParams = /* @__PURE__ */ (() => Schema.Struct({ id: MailboxId }))();
|
|
1036
1302
|
const MailboxesGetAgentActivityQuery = /* @__PURE__ */ (() => Schema.Struct({
|
|
1037
|
-
after: Schema.optionalKey(Schema.
|
|
1038
|
-
before: Schema.optionalKey(Schema.
|
|
1303
|
+
after: Schema.optionalKey(Schema.String),
|
|
1304
|
+
before: Schema.optionalKey(Schema.String)
|
|
1039
1305
|
}))();
|
|
1040
1306
|
const MailboxesGetAgentActivity200 = MailboxAgentActivity;
|
|
1307
|
+
const MailboxesGetAgentActivity400 = MalformedRequestError;
|
|
1041
1308
|
const MailboxesGetAgentActivity401 = UnauthorizedError;
|
|
1042
1309
|
const MailboxesGetAgentActivity403 = ForbiddenError;
|
|
1043
1310
|
const MailboxesGetAgentActivity404 = ResourceNotFoundError;
|
|
@@ -1047,10 +1314,11 @@ const MailboxesGetAgentActivity504 = GatewayTimeoutError;
|
|
|
1047
1314
|
const MailboxesListDraftsPathParams = /* @__PURE__ */ (() => Schema.Struct({ id: MailboxId }))();
|
|
1048
1315
|
const MailboxesListDraftsQuery = /* @__PURE__ */ (() => Schema.Struct({
|
|
1049
1316
|
limit: Schema.optionalKey(Schema.Union([Schema.Finite.annotate({ description: "Items per page, at most 100." }).check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isLessThanOrEqualTo(100).annotate({ expected: "a value less than or equal to 100" })).check(Schema.isGreaterThan(0).annotate({ expected: "a value greater than 0" })), Schema.Null])),
|
|
1050
|
-
cursor: Schema.optionalKey(Schema.
|
|
1051
|
-
threadId: Schema.optionalKey(
|
|
1317
|
+
cursor: Schema.optionalKey(Schema.String),
|
|
1318
|
+
threadId: Schema.optionalKey(MailboxThreadId)
|
|
1052
1319
|
}))();
|
|
1053
1320
|
const MailboxesListDrafts200 = MailboxDraftPage;
|
|
1321
|
+
const MailboxesListDrafts400 = MalformedRequestError;
|
|
1054
1322
|
const MailboxesListDrafts401 = UnauthorizedError;
|
|
1055
1323
|
const MailboxesListDrafts403 = ForbiddenError;
|
|
1056
1324
|
const MailboxesListDrafts404 = ResourceNotFoundError;
|
|
@@ -1058,20 +1326,9 @@ const MailboxesListDrafts422 = ValidationError;
|
|
|
1058
1326
|
const MailboxesListDrafts500 = InternalError;
|
|
1059
1327
|
const MailboxesListDrafts504 = GatewayTimeoutError;
|
|
1060
1328
|
const MailboxesCreateDraftPathParams = /* @__PURE__ */ (() => Schema.Struct({ id: MailboxId }))();
|
|
1061
|
-
const MailboxesCreateDraftRequestJson = /* @__PURE__ */ (() => Schema.
|
|
1062
|
-
channel: Schema.optionalKey(Schema.Union([Schema.Literal("email"), Schema.Null])),
|
|
1063
|
-
endpointId: Schema.optionalKey(Schema.Union([MailboxEndpointId, Schema.Null])),
|
|
1064
|
-
to: Schema.optionalKey(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
|
|
1065
|
-
cc: Schema.optionalKey(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
|
|
1066
|
-
bcc: Schema.optionalKey(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
|
|
1067
|
-
replyTo: Schema.optionalKey(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
|
|
1068
|
-
subject: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
|
|
1069
|
-
text: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
|
|
1070
|
-
html: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
|
|
1071
|
-
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])),
|
|
1072
|
-
inReplyToMessageId: Schema.optionalKey(Schema.Union([MessageId, Schema.Null]))
|
|
1073
|
-
}))();
|
|
1329
|
+
const MailboxesCreateDraftRequestJson = /* @__PURE__ */ (() => Schema.Union([CreateMailboxEmailDraftPayload, CreateMailboxChatDraftPayload]))();
|
|
1074
1330
|
const MailboxesCreateDraft201 = MailboxDraft;
|
|
1331
|
+
const MailboxesCreateDraft400 = MalformedRequestError;
|
|
1075
1332
|
const MailboxesCreateDraft401 = UnauthorizedError;
|
|
1076
1333
|
const MailboxesCreateDraft403 = ForbiddenError;
|
|
1077
1334
|
const MailboxesCreateDraft404 = ResourceNotFoundError;
|
|
@@ -1083,6 +1340,7 @@ const MailboxesGetDraftPathParams = /* @__PURE__ */ (() => Schema.Struct({
|
|
|
1083
1340
|
draftId: MailboxDraftId
|
|
1084
1341
|
}))();
|
|
1085
1342
|
const MailboxesGetDraft200 = MailboxDraft;
|
|
1343
|
+
const MailboxesGetDraft400 = MalformedRequestError;
|
|
1086
1344
|
const MailboxesGetDraft401 = UnauthorizedError;
|
|
1087
1345
|
const MailboxesGetDraft403 = ForbiddenError;
|
|
1088
1346
|
const MailboxesGetDraft404 = ResourceNotFoundError;
|
|
@@ -1094,6 +1352,7 @@ const MailboxesDeleteDraftPathParams = /* @__PURE__ */ (() => Schema.Struct({
|
|
|
1094
1352
|
draftId: MailboxDraftId
|
|
1095
1353
|
}))();
|
|
1096
1354
|
const MailboxesDeleteDraft200 = SuccessResponse;
|
|
1355
|
+
const MailboxesDeleteDraft400 = MalformedRequestError;
|
|
1097
1356
|
const MailboxesDeleteDraft401 = UnauthorizedError;
|
|
1098
1357
|
const MailboxesDeleteDraft403 = ForbiddenError;
|
|
1099
1358
|
const MailboxesDeleteDraft404 = ResourceNotFoundError;
|
|
@@ -1115,6 +1374,7 @@ const MailboxesUpdateDraftRequestJson = /* @__PURE__ */ (() => Schema.Struct({
|
|
|
1115
1374
|
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]))
|
|
1116
1375
|
}))();
|
|
1117
1376
|
const MailboxesUpdateDraft200 = MailboxDraft;
|
|
1377
|
+
const MailboxesUpdateDraft400 = MalformedRequestError;
|
|
1118
1378
|
const MailboxesUpdateDraft401 = UnauthorizedError;
|
|
1119
1379
|
const MailboxesUpdateDraft403 = ForbiddenError;
|
|
1120
1380
|
const MailboxesUpdateDraft404 = ResourceNotFoundError;
|
|
@@ -1126,9 +1386,10 @@ const MailboxesSendDraftPathParams = /* @__PURE__ */ (() => Schema.Struct({
|
|
|
1126
1386
|
id: MailboxId,
|
|
1127
1387
|
draftId: MailboxDraftId
|
|
1128
1388
|
}))();
|
|
1129
|
-
const MailboxesSendDraftHeaders = /* @__PURE__ */ (() => Schema.Struct({ "idempotency-key": Schema.optionalKey(Schema.
|
|
1389
|
+
const MailboxesSendDraftHeaders = /* @__PURE__ */ (() => Schema.Struct({ "idempotency-key": Schema.optionalKey(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(new globalThis.RegExp("^[\\s\\S]{1,255}$")).annotate({ expected: "a string matching the RegExp ^[\\s\\S]{1,255}$" }))) }))();
|
|
1130
1390
|
const MailboxesSendDraft200 = MailboxSendReceipt;
|
|
1131
1391
|
const MailboxesSendDraft202 = MailboxPendingSendReceipt;
|
|
1392
|
+
const MailboxesSendDraft400 = MalformedRequestError;
|
|
1132
1393
|
const MailboxesSendDraft401 = UnauthorizedError;
|
|
1133
1394
|
const MailboxesSendDraft402 = PaymentRequiredError;
|
|
1134
1395
|
const MailboxesSendDraft403 = /* @__PURE__ */ (() => Schema.Union([
|
|
@@ -1139,7 +1400,7 @@ const MailboxesSendDraft403 = /* @__PURE__ */ (() => Schema.Union([
|
|
|
1139
1400
|
]))();
|
|
1140
1401
|
const MailboxesSendDraft404 = ResourceNotFoundError;
|
|
1141
1402
|
const MailboxesSendDraft409 = /* @__PURE__ */ (() => Schema.Union([MailboxSendConflictError, ConflictError]))();
|
|
1142
|
-
const MailboxesSendDraft422 = ValidationError;
|
|
1403
|
+
const MailboxesSendDraft422 = /* @__PURE__ */ (() => Schema.Union([WhatsAppServiceWindowClosedError, ValidationError]))();
|
|
1143
1404
|
const MailboxesSendDraft429 = RateLimitedError;
|
|
1144
1405
|
const MailboxesSendDraft500 = InternalError;
|
|
1145
1406
|
const MailboxesSendDraft502 = BillingProviderError;
|
|
@@ -1152,6 +1413,7 @@ const MailboxesCreateEndpointRequestJson = /* @__PURE__ */ (() => Schema.Struct(
|
|
|
1152
1413
|
displayName: Schema.optionalKey(Schema.Union([Schema.String.check(Schema.isMaxCodePoints(120).annotate({ expected: "a string with at most 120 code points" })).check(Schema.isMaxLength(120).annotate({ expected: "a value with a length of at most 120" })), Schema.Null]))
|
|
1153
1414
|
}))();
|
|
1154
1415
|
const MailboxesCreateEndpoint201 = Mailbox;
|
|
1416
|
+
const MailboxesCreateEndpoint400 = MalformedRequestError;
|
|
1155
1417
|
const MailboxesCreateEndpoint401 = UnauthorizedError;
|
|
1156
1418
|
const MailboxesCreateEndpoint403 = /* @__PURE__ */ (() => Schema.Union([FlagDisabledError, ForbiddenError]))();
|
|
1157
1419
|
const MailboxesCreateEndpoint404 = ResourceNotFoundError;
|
|
@@ -1164,6 +1426,7 @@ const MailboxesRemoveEndpointPathParams = /* @__PURE__ */ (() => Schema.Struct({
|
|
|
1164
1426
|
endpointId: MailboxEndpointId
|
|
1165
1427
|
}))();
|
|
1166
1428
|
const MailboxesRemoveEndpoint200 = Mailbox;
|
|
1429
|
+
const MailboxesRemoveEndpoint400 = MalformedRequestError;
|
|
1167
1430
|
const MailboxesRemoveEndpoint401 = UnauthorizedError;
|
|
1168
1431
|
const MailboxesRemoveEndpoint403 = ForbiddenError;
|
|
1169
1432
|
const MailboxesRemoveEndpoint404 = ResourceNotFoundError;
|
|
@@ -1179,6 +1442,7 @@ const MailboxesUpdateEndpointRequestJson = /* @__PURE__ */ (() => Schema.Struct(
|
|
|
1179
1442
|
default: Schema.optionalKey(Schema.Union([Schema.Literal(true), Schema.Null]))
|
|
1180
1443
|
}))();
|
|
1181
1444
|
const MailboxesUpdateEndpoint200 = Mailbox;
|
|
1445
|
+
const MailboxesUpdateEndpoint400 = MalformedRequestError;
|
|
1182
1446
|
const MailboxesUpdateEndpoint401 = UnauthorizedError;
|
|
1183
1447
|
const MailboxesUpdateEndpoint403 = ForbiddenError;
|
|
1184
1448
|
const MailboxesUpdateEndpoint404 = ResourceNotFoundError;
|
|
@@ -1188,11 +1452,12 @@ const MailboxesUpdateEndpoint504 = GatewayTimeoutError;
|
|
|
1188
1452
|
const MailboxesListEventsPathParams = /* @__PURE__ */ (() => Schema.Struct({ id: MailboxId }))();
|
|
1189
1453
|
const MailboxesListEventsQuery = /* @__PURE__ */ (() => Schema.Struct({
|
|
1190
1454
|
limit: Schema.optionalKey(Schema.Union([Schema.Finite.annotate({ description: "Items per page, at most 100." }).check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isLessThanOrEqualTo(100).annotate({ expected: "a value less than or equal to 100" })).check(Schema.isGreaterThan(0).annotate({ expected: "a value greater than 0" })), Schema.Null])),
|
|
1191
|
-
cursor: Schema.optionalKey(Schema.
|
|
1192
|
-
after: Schema.optionalKey(Schema.
|
|
1193
|
-
before: Schema.optionalKey(Schema.
|
|
1455
|
+
cursor: Schema.optionalKey(Schema.String),
|
|
1456
|
+
after: Schema.optionalKey(Schema.String),
|
|
1457
|
+
before: Schema.optionalKey(Schema.String)
|
|
1194
1458
|
}))();
|
|
1195
1459
|
const MailboxesListEvents200 = MailboxEventPage;
|
|
1460
|
+
const MailboxesListEvents400 = MalformedRequestError;
|
|
1196
1461
|
const MailboxesListEvents401 = UnauthorizedError;
|
|
1197
1462
|
const MailboxesListEvents403 = ForbiddenError;
|
|
1198
1463
|
const MailboxesListEvents404 = ResourceNotFoundError;
|
|
@@ -1201,6 +1466,7 @@ const MailboxesListEvents500 = InternalError;
|
|
|
1201
1466
|
const MailboxesListEvents504 = GatewayTimeoutError;
|
|
1202
1467
|
const MailboxesListFoldersPathParams = /* @__PURE__ */ (() => Schema.Struct({ id: MailboxId }))();
|
|
1203
1468
|
const MailboxesListFolders200 = MailboxFolderCountList;
|
|
1469
|
+
const MailboxesListFolders400 = MalformedRequestError;
|
|
1204
1470
|
const MailboxesListFolders401 = UnauthorizedError;
|
|
1205
1471
|
const MailboxesListFolders403 = ForbiddenError;
|
|
1206
1472
|
const MailboxesListFolders404 = ResourceNotFoundError;
|
|
@@ -1210,9 +1476,10 @@ const MailboxesListFolders504 = GatewayTimeoutError;
|
|
|
1210
1476
|
const MailboxesListGrantsPathParams = /* @__PURE__ */ (() => Schema.Struct({ id: MailboxId }))();
|
|
1211
1477
|
const MailboxesListGrantsQuery = /* @__PURE__ */ (() => Schema.Struct({
|
|
1212
1478
|
limit: Schema.optionalKey(Schema.Union([Schema.Finite.annotate({ description: "Items per page, at most 100." }).check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isLessThanOrEqualTo(100).annotate({ expected: "a value less than or equal to 100" })).check(Schema.isGreaterThan(0).annotate({ expected: "a value greater than 0" })), Schema.Null])),
|
|
1213
|
-
cursor: Schema.optionalKey(Schema.
|
|
1479
|
+
cursor: Schema.optionalKey(Schema.String)
|
|
1214
1480
|
}))();
|
|
1215
1481
|
const MailboxesListGrants200 = MailboxGrantPage;
|
|
1482
|
+
const MailboxesListGrants400 = MalformedRequestError;
|
|
1216
1483
|
const MailboxesListGrants401 = UnauthorizedError;
|
|
1217
1484
|
const MailboxesListGrants403 = ForbiddenError;
|
|
1218
1485
|
const MailboxesListGrants404 = ResourceNotFoundError;
|
|
@@ -1222,10 +1489,10 @@ const MailboxesListGrants504 = GatewayTimeoutError;
|
|
|
1222
1489
|
const MailboxesCreateGrantPathParams = /* @__PURE__ */ (() => Schema.Struct({ id: MailboxId }))();
|
|
1223
1490
|
const MailboxesCreateGrantRequestJson = /* @__PURE__ */ (() => Schema.Struct({
|
|
1224
1491
|
userId: UserId,
|
|
1225
|
-
role: MailboxGrantRole
|
|
1226
|
-
sendMode: Schema.optionalKey(Schema.Union([MailboxSendMode, Schema.Null]))
|
|
1492
|
+
role: MailboxGrantRole
|
|
1227
1493
|
}))();
|
|
1228
1494
|
const MailboxesCreateGrant201 = MailboxGrant;
|
|
1495
|
+
const MailboxesCreateGrant400 = MalformedRequestError;
|
|
1229
1496
|
const MailboxesCreateGrant401 = UnauthorizedError;
|
|
1230
1497
|
const MailboxesCreateGrant403 = ForbiddenError;
|
|
1231
1498
|
const MailboxesCreateGrant404 = ResourceNotFoundError;
|
|
@@ -1238,6 +1505,7 @@ const MailboxesRevokeGrantPathParams = /* @__PURE__ */ (() => Schema.Struct({
|
|
|
1238
1505
|
grantId: MailboxGrantId
|
|
1239
1506
|
}))();
|
|
1240
1507
|
const MailboxesRevokeGrant200 = SuccessResponse;
|
|
1508
|
+
const MailboxesRevokeGrant400 = MalformedRequestError;
|
|
1241
1509
|
const MailboxesRevokeGrant401 = UnauthorizedError;
|
|
1242
1510
|
const MailboxesRevokeGrant403 = ForbiddenError;
|
|
1243
1511
|
const MailboxesRevokeGrant404 = ResourceNotFoundError;
|
|
@@ -1249,11 +1517,9 @@ const MailboxesUpdateGrantPathParams = /* @__PURE__ */ (() => Schema.Struct({
|
|
|
1249
1517
|
id: MailboxId,
|
|
1250
1518
|
grantId: MailboxGrantId
|
|
1251
1519
|
}))();
|
|
1252
|
-
const MailboxesUpdateGrantRequestJson = /* @__PURE__ */ (() => Schema.Struct({
|
|
1253
|
-
role: Schema.optionalKey(Schema.Union([MailboxGrantRole, Schema.Null])),
|
|
1254
|
-
sendMode: Schema.optionalKey(Schema.Union([MailboxSendMode, Schema.Null]))
|
|
1255
|
-
}))();
|
|
1520
|
+
const MailboxesUpdateGrantRequestJson = /* @__PURE__ */ (() => Schema.Struct({ role: Schema.optionalKey(Schema.Union([MailboxGrantRole, Schema.Null])) }))();
|
|
1256
1521
|
const MailboxesUpdateGrant200 = MailboxGrant;
|
|
1522
|
+
const MailboxesUpdateGrant400 = MalformedRequestError;
|
|
1257
1523
|
const MailboxesUpdateGrant401 = UnauthorizedError;
|
|
1258
1524
|
const MailboxesUpdateGrant403 = ForbiddenError;
|
|
1259
1525
|
const MailboxesUpdateGrant404 = ResourceNotFoundError;
|
|
@@ -1263,6 +1529,7 @@ const MailboxesUpdateGrant500 = InternalError;
|
|
|
1263
1529
|
const MailboxesUpdateGrant504 = GatewayTimeoutError;
|
|
1264
1530
|
const MailboxesListLabelsPathParams = /* @__PURE__ */ (() => Schema.Struct({ id: MailboxId }))();
|
|
1265
1531
|
const MailboxesListLabels200 = MailboxLabelList;
|
|
1532
|
+
const MailboxesListLabels400 = MalformedRequestError;
|
|
1266
1533
|
const MailboxesListLabels401 = UnauthorizedError;
|
|
1267
1534
|
const MailboxesListLabels403 = ForbiddenError;
|
|
1268
1535
|
const MailboxesListLabels404 = ResourceNotFoundError;
|
|
@@ -1283,6 +1550,7 @@ const MailboxesCreateLabelRequestJson = /* @__PURE__ */ (() => Schema.Struct({
|
|
|
1283
1550
|
]), Schema.Null]))
|
|
1284
1551
|
}))();
|
|
1285
1552
|
const MailboxesCreateLabel201 = MailboxLabel;
|
|
1553
|
+
const MailboxesCreateLabel400 = MalformedRequestError;
|
|
1286
1554
|
const MailboxesCreateLabel401 = UnauthorizedError;
|
|
1287
1555
|
const MailboxesCreateLabel403 = ForbiddenError;
|
|
1288
1556
|
const MailboxesCreateLabel404 = ResourceNotFoundError;
|
|
@@ -1295,6 +1563,7 @@ const MailboxesDeleteLabelPathParams = /* @__PURE__ */ (() => Schema.Struct({
|
|
|
1295
1563
|
labelId: MailboxLabelId
|
|
1296
1564
|
}))();
|
|
1297
1565
|
const MailboxesDeleteLabel200 = SuccessResponse;
|
|
1566
|
+
const MailboxesDeleteLabel400 = MalformedRequestError;
|
|
1298
1567
|
const MailboxesDeleteLabel401 = UnauthorizedError;
|
|
1299
1568
|
const MailboxesDeleteLabel403 = ForbiddenError;
|
|
1300
1569
|
const MailboxesDeleteLabel404 = ResourceNotFoundError;
|
|
@@ -1317,6 +1586,7 @@ const MailboxesUpdateLabelRequestJson = /* @__PURE__ */ (() => Schema.Struct({
|
|
|
1317
1586
|
]), Schema.Null]))
|
|
1318
1587
|
}))();
|
|
1319
1588
|
const MailboxesUpdateLabel200 = MailboxLabel;
|
|
1589
|
+
const MailboxesUpdateLabel400 = MalformedRequestError;
|
|
1320
1590
|
const MailboxesUpdateLabel401 = UnauthorizedError;
|
|
1321
1591
|
const MailboxesUpdateLabel403 = ForbiddenError;
|
|
1322
1592
|
const MailboxesUpdateLabel404 = ResourceNotFoundError;
|
|
@@ -1324,20 +1594,11 @@ const MailboxesUpdateLabel422 = ValidationError;
|
|
|
1324
1594
|
const MailboxesUpdateLabel500 = InternalError;
|
|
1325
1595
|
const MailboxesUpdateLabel504 = GatewayTimeoutError;
|
|
1326
1596
|
const MailboxesSendMessagePathParams = /* @__PURE__ */ (() => Schema.Struct({ id: MailboxId }))();
|
|
1327
|
-
const MailboxesSendMessageHeaders = /* @__PURE__ */ (() => Schema.Struct({ "idempotency-key": Schema.optionalKey(Schema.
|
|
1328
|
-
const MailboxesSendMessageRequestJson = /* @__PURE__ */ (() => Schema.
|
|
1329
|
-
channel: Schema.optionalKey(Schema.Union([Schema.Literal("email"), Schema.Null])),
|
|
1330
|
-
to: Schema.TupleWithRest(Schema.Tuple([Schema.String]), [Schema.String]),
|
|
1331
|
-
cc: Schema.optionalKey(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
|
|
1332
|
-
bcc: Schema.optionalKey(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
|
|
1333
|
-
replyTo: Schema.optionalKey(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
|
|
1334
|
-
subject: Schema.String.check(Schema.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })),
|
|
1335
|
-
text: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
|
|
1336
|
-
html: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
|
|
1337
|
-
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]))
|
|
1338
|
-
}))();
|
|
1597
|
+
const MailboxesSendMessageHeaders = /* @__PURE__ */ (() => Schema.Struct({ "idempotency-key": Schema.optionalKey(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(new globalThis.RegExp("^[\\s\\S]{1,255}$")).annotate({ expected: "a string matching the RegExp ^[\\s\\S]{1,255}$" }))) }))();
|
|
1598
|
+
const MailboxesSendMessageRequestJson = /* @__PURE__ */ (() => Schema.Union([SendMailboxEmailPayload, SendMailboxChatPayload]))();
|
|
1339
1599
|
const MailboxesSendMessage200 = MailboxSendReceipt;
|
|
1340
1600
|
const MailboxesSendMessage202 = MailboxPendingSendReceipt;
|
|
1601
|
+
const MailboxesSendMessage400 = MalformedRequestError;
|
|
1341
1602
|
const MailboxesSendMessage401 = UnauthorizedError;
|
|
1342
1603
|
const MailboxesSendMessage402 = PaymentRequiredError;
|
|
1343
1604
|
const MailboxesSendMessage403 = /* @__PURE__ */ (() => Schema.Union([
|
|
@@ -1348,7 +1609,7 @@ const MailboxesSendMessage403 = /* @__PURE__ */ (() => Schema.Union([
|
|
|
1348
1609
|
]))();
|
|
1349
1610
|
const MailboxesSendMessage404 = ResourceNotFoundError;
|
|
1350
1611
|
const MailboxesSendMessage409 = /* @__PURE__ */ (() => Schema.Union([MailboxSendConflictError, ConflictError]))();
|
|
1351
|
-
const MailboxesSendMessage422 = ValidationError;
|
|
1612
|
+
const MailboxesSendMessage422 = /* @__PURE__ */ (() => Schema.Union([WhatsAppServiceWindowClosedError, ValidationError]))();
|
|
1352
1613
|
const MailboxesSendMessage429 = RateLimitedError;
|
|
1353
1614
|
const MailboxesSendMessage500 = InternalError;
|
|
1354
1615
|
const MailboxesSendMessage502 = BillingProviderError;
|
|
@@ -1359,6 +1620,7 @@ const MailboxesGetMessagePathParams = /* @__PURE__ */ (() => Schema.Struct({
|
|
|
1359
1620
|
messageId: MessageId
|
|
1360
1621
|
}))();
|
|
1361
1622
|
const MailboxesGetMessage200 = MailboxMessage;
|
|
1623
|
+
const MailboxesGetMessage400 = MalformedRequestError;
|
|
1362
1624
|
const MailboxesGetMessage401 = UnauthorizedError;
|
|
1363
1625
|
const MailboxesGetMessage403 = ForbiddenError;
|
|
1364
1626
|
const MailboxesGetMessage404 = ResourceNotFoundError;
|
|
@@ -1371,6 +1633,7 @@ const MailboxesGetMessageAttachmentPathParams = /* @__PURE__ */ (() => Schema.St
|
|
|
1371
1633
|
attachmentId: AttachmentId
|
|
1372
1634
|
}))();
|
|
1373
1635
|
const MailboxesGetMessageAttachment200 = MailboxDownloadUrl;
|
|
1636
|
+
const MailboxesGetMessageAttachment400 = MalformedRequestError;
|
|
1374
1637
|
const MailboxesGetMessageAttachment401 = UnauthorizedError;
|
|
1375
1638
|
const MailboxesGetMessageAttachment403 = ForbiddenError;
|
|
1376
1639
|
const MailboxesGetMessageAttachment404 = ResourceNotFoundError;
|
|
@@ -1383,6 +1646,7 @@ const MailboxesCopyMessageAttachmentPathParams = /* @__PURE__ */ (() => Schema.S
|
|
|
1383
1646
|
attachmentId: AttachmentId
|
|
1384
1647
|
}))();
|
|
1385
1648
|
const MailboxesCopyMessageAttachment201 = MailboxCopiedAttachment;
|
|
1649
|
+
const MailboxesCopyMessageAttachment400 = MalformedRequestError;
|
|
1386
1650
|
const MailboxesCopyMessageAttachment401 = UnauthorizedError;
|
|
1387
1651
|
const MailboxesCopyMessageAttachment403 = ForbiddenError;
|
|
1388
1652
|
const MailboxesCopyMessageAttachment404 = ResourceNotFoundError;
|
|
@@ -1395,6 +1659,7 @@ const MailboxesDiscardMessagePathParams = /* @__PURE__ */ (() => Schema.Struct({
|
|
|
1395
1659
|
messageId: MessageId
|
|
1396
1660
|
}))();
|
|
1397
1661
|
const MailboxesDiscardMessage200 = MailboxQuarantinedMessage;
|
|
1662
|
+
const MailboxesDiscardMessage400 = MalformedRequestError;
|
|
1398
1663
|
const MailboxesDiscardMessage401 = UnauthorizedError;
|
|
1399
1664
|
const MailboxesDiscardMessage403 = ForbiddenError;
|
|
1400
1665
|
const MailboxesDiscardMessage404 = ResourceNotFoundError;
|
|
@@ -1407,7 +1672,7 @@ const MailboxesForwardPathParams = /* @__PURE__ */ (() => Schema.Struct({
|
|
|
1407
1672
|
id: MailboxId,
|
|
1408
1673
|
messageId: MessageId
|
|
1409
1674
|
}))();
|
|
1410
|
-
const MailboxesForwardHeaders = /* @__PURE__ */ (() => Schema.Struct({ "idempotency-key": Schema.optionalKey(Schema.
|
|
1675
|
+
const MailboxesForwardHeaders = /* @__PURE__ */ (() => Schema.Struct({ "idempotency-key": Schema.optionalKey(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(new globalThis.RegExp("^[\\s\\S]{1,255}$")).annotate({ expected: "a string matching the RegExp ^[\\s\\S]{1,255}$" }))) }))();
|
|
1411
1676
|
const MailboxesForwardRequestJson = /* @__PURE__ */ (() => Schema.Struct({
|
|
1412
1677
|
to: Schema.TupleWithRest(Schema.Tuple([Schema.String]), [Schema.String]),
|
|
1413
1678
|
cc: Schema.optionalKey(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
|
|
@@ -1418,6 +1683,7 @@ const MailboxesForwardRequestJson = /* @__PURE__ */ (() => Schema.Struct({
|
|
|
1418
1683
|
}))();
|
|
1419
1684
|
const MailboxesForward200 = MailboxSendReceipt;
|
|
1420
1685
|
const MailboxesForward202 = MailboxPendingSendReceipt;
|
|
1686
|
+
const MailboxesForward400 = MalformedRequestError;
|
|
1421
1687
|
const MailboxesForward401 = UnauthorizedError;
|
|
1422
1688
|
const MailboxesForward402 = PaymentRequiredError;
|
|
1423
1689
|
const MailboxesForward403 = /* @__PURE__ */ (() => Schema.Union([
|
|
@@ -1428,7 +1694,7 @@ const MailboxesForward403 = /* @__PURE__ */ (() => Schema.Union([
|
|
|
1428
1694
|
]))();
|
|
1429
1695
|
const MailboxesForward404 = ResourceNotFoundError;
|
|
1430
1696
|
const MailboxesForward409 = /* @__PURE__ */ (() => Schema.Union([MailboxSendConflictError, ConflictError]))();
|
|
1431
|
-
const MailboxesForward422 = ValidationError;
|
|
1697
|
+
const MailboxesForward422 = /* @__PURE__ */ (() => Schema.Union([WhatsAppServiceWindowClosedError, ValidationError]))();
|
|
1432
1698
|
const MailboxesForward429 = RateLimitedError;
|
|
1433
1699
|
const MailboxesForward500 = InternalError;
|
|
1434
1700
|
const MailboxesForward502 = BillingProviderError;
|
|
@@ -1439,6 +1705,7 @@ const MailboxesGetMessageRawPathParams = /* @__PURE__ */ (() => Schema.Struct({
|
|
|
1439
1705
|
messageId: MessageId
|
|
1440
1706
|
}))();
|
|
1441
1707
|
const MailboxesGetMessageRaw200 = MailboxDownloadUrl;
|
|
1708
|
+
const MailboxesGetMessageRaw400 = MalformedRequestError;
|
|
1442
1709
|
const MailboxesGetMessageRaw401 = UnauthorizedError;
|
|
1443
1710
|
const MailboxesGetMessageRaw403 = ForbiddenError;
|
|
1444
1711
|
const MailboxesGetMessageRaw404 = ResourceNotFoundError;
|
|
@@ -1450,6 +1717,7 @@ const MailboxesReleaseMessagePathParams = /* @__PURE__ */ (() => Schema.Struct({
|
|
|
1450
1717
|
messageId: MessageId
|
|
1451
1718
|
}))();
|
|
1452
1719
|
const MailboxesReleaseMessage200 = MailboxQuarantinedMessage;
|
|
1720
|
+
const MailboxesReleaseMessage400 = MalformedRequestError;
|
|
1453
1721
|
const MailboxesReleaseMessage401 = UnauthorizedError;
|
|
1454
1722
|
const MailboxesReleaseMessage403 = ForbiddenError;
|
|
1455
1723
|
const MailboxesReleaseMessage404 = ResourceNotFoundError;
|
|
@@ -1461,17 +1729,11 @@ const MailboxesReplyPathParams = /* @__PURE__ */ (() => Schema.Struct({
|
|
|
1461
1729
|
id: MailboxId,
|
|
1462
1730
|
messageId: MessageId
|
|
1463
1731
|
}))();
|
|
1464
|
-
const MailboxesReplyHeaders = /* @__PURE__ */ (() => Schema.Struct({ "idempotency-key": Schema.optionalKey(Schema.
|
|
1465
|
-
const MailboxesReplyRequestJson = /* @__PURE__ */ (() => Schema.
|
|
1466
|
-
channel: Schema.optionalKey(Schema.Union([Schema.Literal("email"), Schema.Null])),
|
|
1467
|
-
cc: Schema.optionalKey(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
|
|
1468
|
-
bcc: Schema.optionalKey(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
|
|
1469
|
-
text: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
|
|
1470
|
-
html: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
|
|
1471
|
-
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]))
|
|
1472
|
-
}))();
|
|
1732
|
+
const MailboxesReplyHeaders = /* @__PURE__ */ (() => Schema.Struct({ "idempotency-key": Schema.optionalKey(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(new globalThis.RegExp("^[\\s\\S]{1,255}$")).annotate({ expected: "a string matching the RegExp ^[\\s\\S]{1,255}$" }))) }))();
|
|
1733
|
+
const MailboxesReplyRequestJson = /* @__PURE__ */ (() => Schema.Union([ReplyMailboxEmailPayload, ReplyMailboxChatPayload]))();
|
|
1473
1734
|
const MailboxesReply200 = MailboxSendReceipt;
|
|
1474
1735
|
const MailboxesReply202 = MailboxPendingSendReceipt;
|
|
1736
|
+
const MailboxesReply400 = MalformedRequestError;
|
|
1475
1737
|
const MailboxesReply401 = UnauthorizedError;
|
|
1476
1738
|
const MailboxesReply402 = PaymentRequiredError;
|
|
1477
1739
|
const MailboxesReply403 = /* @__PURE__ */ (() => Schema.Union([
|
|
@@ -1482,7 +1744,7 @@ const MailboxesReply403 = /* @__PURE__ */ (() => Schema.Union([
|
|
|
1482
1744
|
]))();
|
|
1483
1745
|
const MailboxesReply404 = ResourceNotFoundError;
|
|
1484
1746
|
const MailboxesReply409 = /* @__PURE__ */ (() => Schema.Union([MailboxSendConflictError, ConflictError]))();
|
|
1485
|
-
const MailboxesReply422 = ValidationError;
|
|
1747
|
+
const MailboxesReply422 = /* @__PURE__ */ (() => Schema.Union([WhatsAppServiceWindowClosedError, ValidationError]))();
|
|
1486
1748
|
const MailboxesReply429 = RateLimitedError;
|
|
1487
1749
|
const MailboxesReply500 = InternalError;
|
|
1488
1750
|
const MailboxesReply502 = BillingProviderError;
|
|
@@ -1492,17 +1754,11 @@ const MailboxesReplyAllPathParams = /* @__PURE__ */ (() => Schema.Struct({
|
|
|
1492
1754
|
id: MailboxId,
|
|
1493
1755
|
messageId: MessageId
|
|
1494
1756
|
}))();
|
|
1495
|
-
const MailboxesReplyAllHeaders = /* @__PURE__ */ (() => Schema.Struct({ "idempotency-key": Schema.optionalKey(Schema.
|
|
1496
|
-
const MailboxesReplyAllRequestJson = /* @__PURE__ */ (() => Schema.
|
|
1497
|
-
channel: Schema.optionalKey(Schema.Union([Schema.Literal("email"), Schema.Null])),
|
|
1498
|
-
cc: Schema.optionalKey(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
|
|
1499
|
-
bcc: Schema.optionalKey(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
|
|
1500
|
-
text: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
|
|
1501
|
-
html: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
|
|
1502
|
-
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]))
|
|
1503
|
-
}))();
|
|
1757
|
+
const MailboxesReplyAllHeaders = /* @__PURE__ */ (() => Schema.Struct({ "idempotency-key": Schema.optionalKey(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(new globalThis.RegExp("^[\\s\\S]{1,255}$")).annotate({ expected: "a string matching the RegExp ^[\\s\\S]{1,255}$" }))) }))();
|
|
1758
|
+
const MailboxesReplyAllRequestJson = /* @__PURE__ */ (() => Schema.Union([ReplyMailboxEmailPayload, ReplyMailboxChatPayload]))();
|
|
1504
1759
|
const MailboxesReplyAll200 = MailboxSendReceipt;
|
|
1505
1760
|
const MailboxesReplyAll202 = MailboxPendingSendReceipt;
|
|
1761
|
+
const MailboxesReplyAll400 = MalformedRequestError;
|
|
1506
1762
|
const MailboxesReplyAll401 = UnauthorizedError;
|
|
1507
1763
|
const MailboxesReplyAll402 = PaymentRequiredError;
|
|
1508
1764
|
const MailboxesReplyAll403 = /* @__PURE__ */ (() => Schema.Union([
|
|
@@ -1513,7 +1769,7 @@ const MailboxesReplyAll403 = /* @__PURE__ */ (() => Schema.Union([
|
|
|
1513
1769
|
]))();
|
|
1514
1770
|
const MailboxesReplyAll404 = ResourceNotFoundError;
|
|
1515
1771
|
const MailboxesReplyAll409 = /* @__PURE__ */ (() => Schema.Union([MailboxSendConflictError, ConflictError]))();
|
|
1516
|
-
const MailboxesReplyAll422 = ValidationError;
|
|
1772
|
+
const MailboxesReplyAll422 = /* @__PURE__ */ (() => Schema.Union([WhatsAppServiceWindowClosedError, ValidationError]))();
|
|
1517
1773
|
const MailboxesReplyAll429 = RateLimitedError;
|
|
1518
1774
|
const MailboxesReplyAll500 = InternalError;
|
|
1519
1775
|
const MailboxesReplyAll502 = BillingProviderError;
|
|
@@ -1521,82 +1777,22 @@ const MailboxesReplyAll503 = SenderNotReadyError;
|
|
|
1521
1777
|
const MailboxesReplyAll504 = GatewayTimeoutError;
|
|
1522
1778
|
const MailboxesPausePathParams = /* @__PURE__ */ (() => Schema.Struct({ id: MailboxId }))();
|
|
1523
1779
|
const MailboxesPause200 = Mailbox;
|
|
1780
|
+
const MailboxesPause400 = MalformedRequestError;
|
|
1524
1781
|
const MailboxesPause401 = UnauthorizedError;
|
|
1525
1782
|
const MailboxesPause403 = ForbiddenError;
|
|
1526
1783
|
const MailboxesPause404 = ResourceNotFoundError;
|
|
1527
1784
|
const MailboxesPause422 = ValidationError;
|
|
1528
1785
|
const MailboxesPause500 = InternalError;
|
|
1529
1786
|
const MailboxesPause504 = GatewayTimeoutError;
|
|
1530
|
-
const MailboxesListPoliciesPathParams = /* @__PURE__ */ (() => Schema.Struct({ id: MailboxId }))();
|
|
1531
|
-
const MailboxesListPolicies200 = MailboxPolicyList;
|
|
1532
|
-
const MailboxesListPolicies401 = UnauthorizedError;
|
|
1533
|
-
const MailboxesListPolicies403 = ForbiddenError;
|
|
1534
|
-
const MailboxesListPolicies404 = ResourceNotFoundError;
|
|
1535
|
-
const MailboxesListPolicies422 = ValidationError;
|
|
1536
|
-
const MailboxesListPolicies500 = InternalError;
|
|
1537
|
-
const MailboxesListPolicies504 = GatewayTimeoutError;
|
|
1538
|
-
const MailboxesCreatePolicyPathParams = /* @__PURE__ */ (() => Schema.Struct({ id: MailboxId }))();
|
|
1539
|
-
const MailboxesCreatePolicyRequestJson = /* @__PURE__ */ (() => Schema.Struct({
|
|
1540
|
-
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" })),
|
|
1541
|
-
outcome: MailboxPolicyOutcomeKind,
|
|
1542
|
-
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])),
|
|
1543
|
-
enabled: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null]))
|
|
1544
|
-
}))();
|
|
1545
|
-
const MailboxesCreatePolicy201 = MailboxPolicy;
|
|
1546
|
-
const MailboxesCreatePolicy401 = UnauthorizedError;
|
|
1547
|
-
const MailboxesCreatePolicy403 = ForbiddenError;
|
|
1548
|
-
const MailboxesCreatePolicy404 = ResourceNotFoundError;
|
|
1549
|
-
const MailboxesCreatePolicy409 = ConflictError;
|
|
1550
|
-
const MailboxesCreatePolicy422 = ValidationError;
|
|
1551
|
-
const MailboxesCreatePolicy500 = InternalError;
|
|
1552
|
-
const MailboxesCreatePolicy504 = GatewayTimeoutError;
|
|
1553
|
-
const MailboxesGetPolicyPathParams = /* @__PURE__ */ (() => Schema.Struct({
|
|
1554
|
-
id: MailboxId,
|
|
1555
|
-
policyId: MailboxPolicyId
|
|
1556
|
-
}))();
|
|
1557
|
-
const MailboxesGetPolicy200 = MailboxPolicy;
|
|
1558
|
-
const MailboxesGetPolicy401 = UnauthorizedError;
|
|
1559
|
-
const MailboxesGetPolicy403 = ForbiddenError;
|
|
1560
|
-
const MailboxesGetPolicy404 = ResourceNotFoundError;
|
|
1561
|
-
const MailboxesGetPolicy422 = ValidationError;
|
|
1562
|
-
const MailboxesGetPolicy500 = InternalError;
|
|
1563
|
-
const MailboxesGetPolicy504 = GatewayTimeoutError;
|
|
1564
|
-
const MailboxesDeletePolicyPathParams = /* @__PURE__ */ (() => Schema.Struct({
|
|
1565
|
-
id: MailboxId,
|
|
1566
|
-
policyId: MailboxPolicyId
|
|
1567
|
-
}))();
|
|
1568
|
-
const MailboxesDeletePolicy200 = SuccessResponse;
|
|
1569
|
-
const MailboxesDeletePolicy401 = UnauthorizedError;
|
|
1570
|
-
const MailboxesDeletePolicy403 = ForbiddenError;
|
|
1571
|
-
const MailboxesDeletePolicy404 = ResourceNotFoundError;
|
|
1572
|
-
const MailboxesDeletePolicy422 = ValidationError;
|
|
1573
|
-
const MailboxesDeletePolicy500 = InternalError;
|
|
1574
|
-
const MailboxesDeletePolicy504 = GatewayTimeoutError;
|
|
1575
|
-
const MailboxesUpdatePolicyPathParams = /* @__PURE__ */ (() => Schema.Struct({
|
|
1576
|
-
id: MailboxId,
|
|
1577
|
-
policyId: MailboxPolicyId
|
|
1578
|
-
}))();
|
|
1579
|
-
const MailboxesUpdatePolicyRequestJson = /* @__PURE__ */ (() => Schema.Struct({
|
|
1580
|
-
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])),
|
|
1581
|
-
outcome: Schema.optionalKey(Schema.Union([MailboxPolicyOutcomeKind, Schema.Null])),
|
|
1582
|
-
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])),
|
|
1583
|
-
enabled: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null]))
|
|
1584
|
-
}))();
|
|
1585
|
-
const MailboxesUpdatePolicy200 = MailboxPolicy;
|
|
1586
|
-
const MailboxesUpdatePolicy401 = UnauthorizedError;
|
|
1587
|
-
const MailboxesUpdatePolicy403 = ForbiddenError;
|
|
1588
|
-
const MailboxesUpdatePolicy404 = ResourceNotFoundError;
|
|
1589
|
-
const MailboxesUpdatePolicy422 = ValidationError;
|
|
1590
|
-
const MailboxesUpdatePolicy500 = InternalError;
|
|
1591
|
-
const MailboxesUpdatePolicy504 = GatewayTimeoutError;
|
|
1592
1787
|
const MailboxesListQuarantinePathParams = /* @__PURE__ */ (() => Schema.Struct({ id: MailboxId }))();
|
|
1593
1788
|
const MailboxesListQuarantineQuery = /* @__PURE__ */ (() => Schema.Struct({
|
|
1594
1789
|
limit: Schema.optionalKey(Schema.Union([Schema.Finite.annotate({ description: "Items per page, at most 100." }).check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isLessThanOrEqualTo(100).annotate({ expected: "a value less than or equal to 100" })).check(Schema.isGreaterThan(0).annotate({ expected: "a value greater than 0" })), Schema.Null])),
|
|
1595
|
-
cursor: Schema.optionalKey(Schema.
|
|
1596
|
-
after: Schema.optionalKey(Schema.
|
|
1597
|
-
before: Schema.optionalKey(Schema.
|
|
1790
|
+
cursor: Schema.optionalKey(Schema.String),
|
|
1791
|
+
after: Schema.optionalKey(Schema.String),
|
|
1792
|
+
before: Schema.optionalKey(Schema.String)
|
|
1598
1793
|
}))();
|
|
1599
1794
|
const MailboxesListQuarantine200 = MailboxQuarantinePage;
|
|
1795
|
+
const MailboxesListQuarantine400 = MalformedRequestError;
|
|
1600
1796
|
const MailboxesListQuarantine401 = UnauthorizedError;
|
|
1601
1797
|
const MailboxesListQuarantine403 = ForbiddenError;
|
|
1602
1798
|
const MailboxesListQuarantine404 = ResourceNotFoundError;
|
|
@@ -1605,6 +1801,7 @@ const MailboxesListQuarantine500 = InternalError;
|
|
|
1605
1801
|
const MailboxesListQuarantine504 = GatewayTimeoutError;
|
|
1606
1802
|
const MailboxesResumePathParams = /* @__PURE__ */ (() => Schema.Struct({ id: MailboxId }))();
|
|
1607
1803
|
const MailboxesResume200 = Mailbox;
|
|
1804
|
+
const MailboxesResume400 = MalformedRequestError;
|
|
1608
1805
|
const MailboxesResume401 = UnauthorizedError;
|
|
1609
1806
|
const MailboxesResume403 = ForbiddenError;
|
|
1610
1807
|
const MailboxesResume404 = ResourceNotFoundError;
|
|
@@ -1614,18 +1811,19 @@ const MailboxesResume504 = GatewayTimeoutError;
|
|
|
1614
1811
|
const MailboxesListThreadsPathParams = /* @__PURE__ */ (() => Schema.Struct({ id: MailboxId }))();
|
|
1615
1812
|
const MailboxesListThreadsQuery = /* @__PURE__ */ (() => Schema.Struct({
|
|
1616
1813
|
limit: Schema.optionalKey(Schema.Union([Schema.Finite.annotate({ description: "Items per page, at most 100." }).check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isLessThanOrEqualTo(100).annotate({ expected: "a value less than or equal to 100" })).check(Schema.isGreaterThan(0).annotate({ expected: "a value greater than 0" })), Schema.Null])),
|
|
1617
|
-
cursor: Schema.optionalKey(Schema.
|
|
1618
|
-
after: Schema.optionalKey(Schema.
|
|
1619
|
-
before: Schema.optionalKey(Schema.
|
|
1620
|
-
q: Schema.optionalKey(Schema.
|
|
1621
|
-
state: Schema.optionalKey(Schema.Union([Schema.
|
|
1622
|
-
folder: Schema.optionalKey(
|
|
1623
|
-
label: Schema.optionalKey(
|
|
1814
|
+
cursor: Schema.optionalKey(Schema.String),
|
|
1815
|
+
after: Schema.optionalKey(Schema.String),
|
|
1816
|
+
before: Schema.optionalKey(Schema.String),
|
|
1817
|
+
q: Schema.optionalKey(Schema.String.annotate({ description: "Search subjects, participants, message text, and attachment filenames by semantic and keyword relevance. Filters narrow the search. Returns up to 100 best-matching threads across cursor pages; omit q to list by recent activity. New mail can take a few seconds to become searchable. Attachment contents are not searched." })),
|
|
1818
|
+
state: Schema.optionalKey(Schema.Union([Schema.Literal("active"), Schema.Literal("done")])),
|
|
1819
|
+
folder: Schema.optionalKey(MailboxThreadFolder),
|
|
1820
|
+
label: Schema.optionalKey(MailboxLabelId),
|
|
1624
1821
|
unread: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
1625
1822
|
starred: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
1626
1823
|
snoozed: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null]))
|
|
1627
1824
|
}))();
|
|
1628
1825
|
const MailboxesListThreads200 = MailboxThreadPage;
|
|
1826
|
+
const MailboxesListThreads400 = MalformedRequestError;
|
|
1629
1827
|
const MailboxesListThreads401 = UnauthorizedError;
|
|
1630
1828
|
const MailboxesListThreads403 = ForbiddenError;
|
|
1631
1829
|
const MailboxesListThreads404 = ResourceNotFoundError;
|
|
@@ -1637,6 +1835,7 @@ const MailboxesGetThreadPathParams = /* @__PURE__ */ (() => Schema.Struct({
|
|
|
1637
1835
|
threadId: MailboxThreadId
|
|
1638
1836
|
}))();
|
|
1639
1837
|
const MailboxesGetThread200 = MailboxThread;
|
|
1838
|
+
const MailboxesGetThread400 = MalformedRequestError;
|
|
1640
1839
|
const MailboxesGetThread401 = UnauthorizedError;
|
|
1641
1840
|
const MailboxesGetThread403 = ForbiddenError;
|
|
1642
1841
|
const MailboxesGetThread404 = ResourceNotFoundError;
|
|
@@ -1657,6 +1856,7 @@ const MailboxesUpdateThreadRequestJson = /* @__PURE__ */ (() => Schema.Struct({
|
|
|
1657
1856
|
snoozedUntil: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null]))
|
|
1658
1857
|
}))();
|
|
1659
1858
|
const MailboxesUpdateThread200 = MailboxThreadState;
|
|
1859
|
+
const MailboxesUpdateThread400 = MalformedRequestError;
|
|
1660
1860
|
const MailboxesUpdateThread401 = UnauthorizedError;
|
|
1661
1861
|
const MailboxesUpdateThread403 = ForbiddenError;
|
|
1662
1862
|
const MailboxesUpdateThread404 = ResourceNotFoundError;
|
|
@@ -1669,9 +1869,10 @@ const MailboxesGetThreadContentPathParams = /* @__PURE__ */ (() => Schema.Struct
|
|
|
1669
1869
|
}))();
|
|
1670
1870
|
const MailboxesGetThreadContentQuery = /* @__PURE__ */ (() => Schema.Struct({
|
|
1671
1871
|
limit: Schema.optionalKey(Schema.Union([Schema.Finite.annotate({ description: "Items per page, at most 100." }).check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isLessThanOrEqualTo(100).annotate({ expected: "a value less than or equal to 100" })).check(Schema.isGreaterThan(0).annotate({ expected: "a value greater than 0" })), Schema.Null])),
|
|
1672
|
-
cursor: Schema.optionalKey(Schema.
|
|
1872
|
+
cursor: Schema.optionalKey(Schema.String)
|
|
1673
1873
|
}))();
|
|
1674
1874
|
const MailboxesGetThreadContent200 = MailboxThreadContentPage;
|
|
1875
|
+
const MailboxesGetThreadContent400 = MalformedRequestError;
|
|
1675
1876
|
const MailboxesGetThreadContent401 = UnauthorizedError;
|
|
1676
1877
|
const MailboxesGetThreadContent403 = ForbiddenError;
|
|
1677
1878
|
const MailboxesGetThreadContent404 = ResourceNotFoundError;
|
|
@@ -1684,6 +1885,7 @@ const MailboxesAddThreadLabelsPathParams = /* @__PURE__ */ (() => Schema.Struct(
|
|
|
1684
1885
|
}))();
|
|
1685
1886
|
const MailboxesAddThreadLabelsRequestJson = /* @__PURE__ */ (() => Schema.Struct({ labels: Schema.TupleWithRest(Schema.Tuple([MailboxLabelId]), [MailboxLabelId]) }))();
|
|
1686
1887
|
const MailboxesAddThreadLabels200 = MailboxThreadState;
|
|
1888
|
+
const MailboxesAddThreadLabels400 = MalformedRequestError;
|
|
1687
1889
|
const MailboxesAddThreadLabels401 = UnauthorizedError;
|
|
1688
1890
|
const MailboxesAddThreadLabels403 = ForbiddenError;
|
|
1689
1891
|
const MailboxesAddThreadLabels404 = ResourceNotFoundError;
|
|
@@ -1696,6 +1898,7 @@ const MailboxesRemoveThreadLabelsPathParams = /* @__PURE__ */ (() => Schema.Stru
|
|
|
1696
1898
|
}))();
|
|
1697
1899
|
const MailboxesRemoveThreadLabelsRequestJson = /* @__PURE__ */ (() => Schema.Struct({ labels: Schema.TupleWithRest(Schema.Tuple([MailboxLabelId]), [MailboxLabelId]) }))();
|
|
1698
1900
|
const MailboxesRemoveThreadLabels200 = MailboxThreadState;
|
|
1901
|
+
const MailboxesRemoveThreadLabels400 = MalformedRequestError;
|
|
1699
1902
|
const MailboxesRemoveThreadLabels401 = UnauthorizedError;
|
|
1700
1903
|
const MailboxesRemoveThreadLabels403 = ForbiddenError;
|
|
1701
1904
|
const MailboxesRemoveThreadLabels404 = ResourceNotFoundError;
|
|
@@ -1708,9 +1911,10 @@ const MailboxesListThreadMessagesPathParams = /* @__PURE__ */ (() => Schema.Stru
|
|
|
1708
1911
|
}))();
|
|
1709
1912
|
const MailboxesListThreadMessagesQuery = /* @__PURE__ */ (() => Schema.Struct({
|
|
1710
1913
|
limit: Schema.optionalKey(Schema.Union([Schema.Finite.annotate({ description: "Items per page, at most 100." }).check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isLessThanOrEqualTo(100).annotate({ expected: "a value less than or equal to 100" })).check(Schema.isGreaterThan(0).annotate({ expected: "a value greater than 0" })), Schema.Null])),
|
|
1711
|
-
cursor: Schema.optionalKey(Schema.
|
|
1914
|
+
cursor: Schema.optionalKey(Schema.String)
|
|
1712
1915
|
}))();
|
|
1713
1916
|
const MailboxesListThreadMessages200 = MailboxMessagePage;
|
|
1917
|
+
const MailboxesListThreadMessages400 = MalformedRequestError;
|
|
1714
1918
|
const MailboxesListThreadMessages401 = UnauthorizedError;
|
|
1715
1919
|
const MailboxesListThreadMessages403 = ForbiddenError;
|
|
1716
1920
|
const MailboxesListThreadMessages404 = ResourceNotFoundError;
|
|
@@ -1723,9 +1927,10 @@ const MailboxesListThreadNotesPathParams = /* @__PURE__ */ (() => Schema.Struct(
|
|
|
1723
1927
|
}))();
|
|
1724
1928
|
const MailboxesListThreadNotesQuery = /* @__PURE__ */ (() => Schema.Struct({
|
|
1725
1929
|
limit: Schema.optionalKey(Schema.Union([Schema.Finite.annotate({ description: "Items per page, at most 100." }).check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isLessThanOrEqualTo(100).annotate({ expected: "a value less than or equal to 100" })).check(Schema.isGreaterThan(0).annotate({ expected: "a value greater than 0" })), Schema.Null])),
|
|
1726
|
-
cursor: Schema.optionalKey(Schema.
|
|
1930
|
+
cursor: Schema.optionalKey(Schema.String)
|
|
1727
1931
|
}))();
|
|
1728
1932
|
const MailboxesListThreadNotes200 = MailboxNotePage;
|
|
1933
|
+
const MailboxesListThreadNotes400 = MalformedRequestError;
|
|
1729
1934
|
const MailboxesListThreadNotes401 = UnauthorizedError;
|
|
1730
1935
|
const MailboxesListThreadNotes403 = ForbiddenError;
|
|
1731
1936
|
const MailboxesListThreadNotes404 = ResourceNotFoundError;
|
|
@@ -1742,6 +1947,7 @@ const MailboxesCreateNoteRequestJson = /* @__PURE__ */ (() => Schema.Struct({
|
|
|
1742
1947
|
pinned: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null]))
|
|
1743
1948
|
}))();
|
|
1744
1949
|
const MailboxesCreateNote201 = MailboxNote;
|
|
1950
|
+
const MailboxesCreateNote400 = MalformedRequestError;
|
|
1745
1951
|
const MailboxesCreateNote401 = UnauthorizedError;
|
|
1746
1952
|
const MailboxesCreateNote403 = ForbiddenError;
|
|
1747
1953
|
const MailboxesCreateNote404 = ResourceNotFoundError;
|
|
@@ -1754,6 +1960,7 @@ const MailboxesDeleteNotePathParams = /* @__PURE__ */ (() => Schema.Struct({
|
|
|
1754
1960
|
noteId: MailboxNoteId
|
|
1755
1961
|
}))();
|
|
1756
1962
|
const MailboxesDeleteNote200 = SuccessResponse;
|
|
1963
|
+
const MailboxesDeleteNote400 = MalformedRequestError;
|
|
1757
1964
|
const MailboxesDeleteNote401 = UnauthorizedError;
|
|
1758
1965
|
const MailboxesDeleteNote403 = ForbiddenError;
|
|
1759
1966
|
const MailboxesDeleteNote404 = ResourceNotFoundError;
|
|
@@ -1771,6 +1978,7 @@ const MailboxesUpdateNoteRequestJson = /* @__PURE__ */ (() => Schema.Struct({
|
|
|
1771
1978
|
pinned: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null]))
|
|
1772
1979
|
}))();
|
|
1773
1980
|
const MailboxesUpdateNote200 = MailboxNote;
|
|
1981
|
+
const MailboxesUpdateNote400 = MalformedRequestError;
|
|
1774
1982
|
const MailboxesUpdateNote401 = UnauthorizedError;
|
|
1775
1983
|
const MailboxesUpdateNote403 = ForbiddenError;
|
|
1776
1984
|
const MailboxesUpdateNote404 = ResourceNotFoundError;
|
|
@@ -1779,16 +1987,13 @@ const MailboxesUpdateNote500 = InternalError;
|
|
|
1779
1987
|
const MailboxesUpdateNote504 = GatewayTimeoutError;
|
|
1780
1988
|
const MailboxesListOrganizationDraftsQuery = /* @__PURE__ */ (() => Schema.Struct({
|
|
1781
1989
|
limit: Schema.optionalKey(Schema.Union([Schema.Finite.annotate({ description: "Items per page, at most 100." }).check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isLessThanOrEqualTo(100).annotate({ expected: "a value less than or equal to 100" })).check(Schema.isGreaterThan(0).annotate({ expected: "a value greater than 0" })), Schema.Null])),
|
|
1782
|
-
cursor: Schema.optionalKey(Schema.
|
|
1783
|
-
mailboxId: Schema.optionalKey(Schema.Union([
|
|
1784
|
-
|
|
1785
|
-
|
|
1786
|
-
Schema.Null
|
|
1787
|
-
])),
|
|
1788
|
-
kind: Schema.optionalKey(Schema.Union([Schema.Union([Schema.Literal("personal"), Schema.Literal("shared")]), Schema.Null])),
|
|
1789
|
-
threadId: Schema.optionalKey(Schema.Union([MailboxThreadId, Schema.Null]))
|
|
1990
|
+
cursor: Schema.optionalKey(Schema.String),
|
|
1991
|
+
mailboxId: Schema.optionalKey(Schema.Union([MailboxId, Schema.Array(MailboxId)])),
|
|
1992
|
+
kind: Schema.optionalKey(Schema.Union([Schema.Literal("personal"), Schema.Literal("shared")])),
|
|
1993
|
+
threadId: Schema.optionalKey(MailboxThreadId)
|
|
1790
1994
|
}))();
|
|
1791
1995
|
const MailboxesListOrganizationDrafts200 = OrganizationMailboxDraftPage;
|
|
1996
|
+
const MailboxesListOrganizationDrafts400 = MalformedRequestError;
|
|
1792
1997
|
const MailboxesListOrganizationDrafts401 = UnauthorizedError;
|
|
1793
1998
|
const MailboxesListOrganizationDrafts403 = ForbiddenError;
|
|
1794
1999
|
const MailboxesListOrganizationDrafts404 = ResourceNotFoundError;
|
|
@@ -1797,9 +2002,10 @@ const MailboxesListOrganizationDrafts500 = InternalError;
|
|
|
1797
2002
|
const MailboxesListOrganizationDrafts504 = GatewayTimeoutError;
|
|
1798
2003
|
const MailboxesGetNeedsYouQuery = /* @__PURE__ */ (() => Schema.Struct({
|
|
1799
2004
|
limit: Schema.optionalKey(Schema.Union([Schema.Finite.annotate({ description: "Items per page, at most 100." }).check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isLessThanOrEqualTo(100).annotate({ expected: "a value less than or equal to 100" })).check(Schema.isGreaterThan(0).annotate({ expected: "a value greater than 0" })), Schema.Null])),
|
|
1800
|
-
cursor: Schema.optionalKey(Schema.
|
|
2005
|
+
cursor: Schema.optionalKey(Schema.String)
|
|
1801
2006
|
}))();
|
|
1802
2007
|
const MailboxesGetNeedsYou200 = MailboxNeedsYou;
|
|
2008
|
+
const MailboxesGetNeedsYou400 = MalformedRequestError;
|
|
1803
2009
|
const MailboxesGetNeedsYou401 = UnauthorizedError;
|
|
1804
2010
|
const MailboxesGetNeedsYou403 = ForbiddenError;
|
|
1805
2011
|
const MailboxesGetNeedsYou422 = ValidationError;
|
|
@@ -1807,25 +2013,22 @@ const MailboxesGetNeedsYou500 = InternalError;
|
|
|
1807
2013
|
const MailboxesGetNeedsYou504 = GatewayTimeoutError;
|
|
1808
2014
|
const MailboxesListOrganizationThreadsQuery = /* @__PURE__ */ (() => Schema.Struct({
|
|
1809
2015
|
limit: Schema.optionalKey(Schema.Union([Schema.Finite.annotate({ description: "Items per page, at most 100." }).check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isLessThanOrEqualTo(100).annotate({ expected: "a value less than or equal to 100" })).check(Schema.isGreaterThan(0).annotate({ expected: "a value greater than 0" })), Schema.Null])),
|
|
1810
|
-
cursor: Schema.optionalKey(Schema.
|
|
1811
|
-
after: Schema.optionalKey(Schema.
|
|
1812
|
-
before: Schema.optionalKey(Schema.
|
|
1813
|
-
q: Schema.optionalKey(Schema.
|
|
1814
|
-
state: Schema.optionalKey(Schema.Union([Schema.
|
|
1815
|
-
folder: Schema.optionalKey(
|
|
1816
|
-
label: Schema.optionalKey(
|
|
2016
|
+
cursor: Schema.optionalKey(Schema.String),
|
|
2017
|
+
after: Schema.optionalKey(Schema.String),
|
|
2018
|
+
before: Schema.optionalKey(Schema.String),
|
|
2019
|
+
q: Schema.optionalKey(Schema.String.annotate({ description: "Search subjects, participants, message text, and attachment filenames by semantic and keyword relevance. Filters narrow the search. Returns up to 100 best-matching threads across cursor pages; omit q to list by recent activity. New mail can take a few seconds to become searchable. Attachment contents are not searched." })),
|
|
2020
|
+
state: Schema.optionalKey(Schema.Union([Schema.Literal("active"), Schema.Literal("done")])),
|
|
2021
|
+
folder: Schema.optionalKey(MailboxThreadFolder),
|
|
2022
|
+
label: Schema.optionalKey(MailboxLabelId),
|
|
1817
2023
|
unread: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
1818
2024
|
starred: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
1819
2025
|
snoozed: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
1820
|
-
mailboxId: Schema.optionalKey(Schema.Union([
|
|
1821
|
-
|
|
1822
|
-
|
|
1823
|
-
Schema.Null
|
|
1824
|
-
])),
|
|
1825
|
-
kind: Schema.optionalKey(Schema.Union([Schema.Union([Schema.Literal("personal"), Schema.Literal("shared")]), Schema.Null])),
|
|
1826
|
-
conversation: Schema.optionalKey(Schema.Union([ConversationId, Schema.Null]))
|
|
2026
|
+
mailboxId: Schema.optionalKey(Schema.Union([MailboxId, Schema.Array(MailboxId)])),
|
|
2027
|
+
kind: Schema.optionalKey(Schema.Union([Schema.Literal("personal"), Schema.Literal("shared")])),
|
|
2028
|
+
conversation: Schema.optionalKey(ConversationId)
|
|
1827
2029
|
}))();
|
|
1828
2030
|
const MailboxesListOrganizationThreads200 = OrganizationMailboxThreadPage;
|
|
2031
|
+
const MailboxesListOrganizationThreads400 = MalformedRequestError;
|
|
1829
2032
|
const MailboxesListOrganizationThreads401 = UnauthorizedError;
|
|
1830
2033
|
const MailboxesListOrganizationThreads403 = ForbiddenError;
|
|
1831
2034
|
const MailboxesListOrganizationThreads404 = ResourceNotFoundError;
|
|
@@ -1836,16 +2039,19 @@ var MailboxesGroup = class extends HttpApiGroup.make("Mailboxes").add(HttpApiEnd
|
|
|
1836
2039
|
query: MailboxesListQuery,
|
|
1837
2040
|
success: MailboxesList200,
|
|
1838
2041
|
error: [
|
|
2042
|
+
MailboxesList400.pipe(HttpApiSchema.status(400)),
|
|
1839
2043
|
MailboxesList401.pipe(HttpApiSchema.status(401)),
|
|
1840
2044
|
MailboxesList403.pipe(HttpApiSchema.status(403)),
|
|
1841
2045
|
MailboxesList422.pipe(HttpApiSchema.status(422)),
|
|
1842
2046
|
MailboxesList500,
|
|
1843
2047
|
MailboxesList504.pipe(HttpApiSchema.status(504))
|
|
1844
2048
|
]
|
|
1845
|
-
}).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", {
|
|
2049
|
+
}).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 namespace (`namespaceId`) and 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", {
|
|
2050
|
+
headers: MailboxesCreateHeaders,
|
|
1846
2051
|
payload: MailboxesCreateRequestJson,
|
|
1847
2052
|
success: MailboxesCreate201.pipe(HttpApiSchema.status(201)),
|
|
1848
2053
|
error: [
|
|
2054
|
+
MailboxesCreate400.pipe(HttpApiSchema.status(400)),
|
|
1849
2055
|
MailboxesCreate401.pipe(HttpApiSchema.status(401)),
|
|
1850
2056
|
MailboxesCreate402.pipe(HttpApiSchema.status(402)),
|
|
1851
2057
|
MailboxesCreate403.pipe(HttpApiSchema.status(403)),
|
|
@@ -1856,10 +2062,11 @@ var MailboxesGroup = class extends HttpApiGroup.make("Mailboxes").add(HttpApiEnd
|
|
|
1856
2062
|
MailboxesCreate502.pipe(HttpApiSchema.status(502)),
|
|
1857
2063
|
MailboxesCreate504.pipe(HttpApiSchema.status(504))
|
|
1858
2064
|
]
|
|
1859
|
-
}).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. 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. A phone endpoint's address is a number the organization connected on that channel, in E.164 form. The slug defaults to the address's local part, or a phone number's digits. 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", {
|
|
2065
|
+
}).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. 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 once its sendingStatus is ready. Hosted addresses return pending while sending setup completes. A phone endpoint's address is a number the organization connected on that channel, in E.164 form. The slug defaults to the address's local part, or a phone number's digits. 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. Pass Idempotency-Key to retry safely: the same key and body return the original mailbox in its current state; a changed body returns 409. 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", {
|
|
1860
2066
|
params: MailboxesGetPathParams,
|
|
1861
2067
|
success: MailboxesGet200,
|
|
1862
2068
|
error: [
|
|
2069
|
+
MailboxesGet400.pipe(HttpApiSchema.status(400)),
|
|
1863
2070
|
MailboxesGet401.pipe(HttpApiSchema.status(401)),
|
|
1864
2071
|
MailboxesGet403.pipe(HttpApiSchema.status(403)),
|
|
1865
2072
|
MailboxesGet404.pipe(HttpApiSchema.status(404)),
|
|
@@ -1871,6 +2078,7 @@ var MailboxesGroup = class extends HttpApiGroup.make("Mailboxes").add(HttpApiEnd
|
|
|
1871
2078
|
params: MailboxesRemovePathParams,
|
|
1872
2079
|
success: MailboxesRemove200,
|
|
1873
2080
|
error: [
|
|
2081
|
+
MailboxesRemove400.pipe(HttpApiSchema.status(400)),
|
|
1874
2082
|
MailboxesRemove401.pipe(HttpApiSchema.status(401)),
|
|
1875
2083
|
MailboxesRemove403.pipe(HttpApiSchema.status(403)),
|
|
1876
2084
|
MailboxesRemove404.pipe(HttpApiSchema.status(404)),
|
|
@@ -1884,6 +2092,7 @@ var MailboxesGroup = class extends HttpApiGroup.make("Mailboxes").add(HttpApiEnd
|
|
|
1884
2092
|
payload: MailboxesUpdateRequestJson,
|
|
1885
2093
|
success: MailboxesUpdate200,
|
|
1886
2094
|
error: [
|
|
2095
|
+
MailboxesUpdate400.pipe(HttpApiSchema.status(400)),
|
|
1887
2096
|
MailboxesUpdate401.pipe(HttpApiSchema.status(401)),
|
|
1888
2097
|
MailboxesUpdate403.pipe(HttpApiSchema.status(403)),
|
|
1889
2098
|
MailboxesUpdate404.pipe(HttpApiSchema.status(404)),
|
|
@@ -1896,6 +2105,7 @@ var MailboxesGroup = class extends HttpApiGroup.make("Mailboxes").add(HttpApiEnd
|
|
|
1896
2105
|
query: MailboxesListActionsQuery,
|
|
1897
2106
|
success: MailboxesListActions200,
|
|
1898
2107
|
error: [
|
|
2108
|
+
MailboxesListActions400.pipe(HttpApiSchema.status(400)),
|
|
1899
2109
|
MailboxesListActions401.pipe(HttpApiSchema.status(401)),
|
|
1900
2110
|
MailboxesListActions403.pipe(HttpApiSchema.status(403)),
|
|
1901
2111
|
MailboxesListActions404.pipe(HttpApiSchema.status(404)),
|
|
@@ -1903,10 +2113,11 @@ var MailboxesGroup = class extends HttpApiGroup.make("Mailboxes").add(HttpApiEnd
|
|
|
1903
2113
|
MailboxesListActions500,
|
|
1904
2114
|
MailboxesListActions504.pipe(HttpApiSchema.status(504))
|
|
1905
2115
|
]
|
|
1906
|
-
}).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
|
|
2116
|
+
}).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 actions 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", {
|
|
1907
2117
|
params: MailboxesGetActionPathParams,
|
|
1908
2118
|
success: MailboxesGetAction200,
|
|
1909
2119
|
error: [
|
|
2120
|
+
MailboxesGetAction400.pipe(HttpApiSchema.status(400)),
|
|
1910
2121
|
MailboxesGetAction401.pipe(HttpApiSchema.status(401)),
|
|
1911
2122
|
MailboxesGetAction403.pipe(HttpApiSchema.status(403)),
|
|
1912
2123
|
MailboxesGetAction404.pipe(HttpApiSchema.status(404)),
|
|
@@ -1916,8 +2127,10 @@ var MailboxesGroup = class extends HttpApiGroup.make("Mailboxes").add(HttpApiEnd
|
|
|
1916
2127
|
]
|
|
1917
2128
|
}).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", {
|
|
1918
2129
|
params: MailboxesApproveActionPathParams,
|
|
2130
|
+
payload: MailboxesApproveActionRequestJson,
|
|
1919
2131
|
success: [MailboxesApproveAction200, MailboxesApproveAction202.pipe(HttpApiSchema.status(202))],
|
|
1920
2132
|
error: [
|
|
2133
|
+
MailboxesApproveAction400.pipe(HttpApiSchema.status(400)),
|
|
1921
2134
|
MailboxesApproveAction401.pipe(HttpApiSchema.status(401)),
|
|
1922
2135
|
MailboxesApproveAction402.pipe(HttpApiSchema.status(402)),
|
|
1923
2136
|
MailboxesApproveAction403.pipe(HttpApiSchema.status(403)),
|
|
@@ -1930,10 +2143,11 @@ var MailboxesGroup = class extends HttpApiGroup.make("Mailboxes").add(HttpApiEnd
|
|
|
1930
2143
|
MailboxesApproveAction503.pipe(HttpApiSchema.status(503)),
|
|
1931
2144
|
MailboxesApproveAction504.pipe(HttpApiSchema.status(504))
|
|
1932
2145
|
]
|
|
1933
|
-
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "mailboxes.approveAction").annotate(OpenApi.Summary, "Approve a mailbox action").annotate(OpenApi.Description, "Records approval of a send and returns 202 while it is pending. A send is queued for automatic retry within 15 minutes of approval; repeating approval does not extend this deadline. Accepted, completed, and notSent replays return 200. No expiry applies before approval. Only a person signed in or through OAuth may approve, and never the proposer. Non-send approvals execute synchronously and return 200 with their own execution states. The action's `resolution` names the approver; approving a held send publishes one `mailbox.action.resolved` event."), HttpApiEndpoint.post("mailboxesCancelAction", "/v1/mailboxes/:id/actions/:actionId/cancel", {
|
|
2146
|
+
}).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. Set `always: true` to add an actor-specific rule allowing matching future actions, subject to policy floors and guards. Remembering an allowance for a hosted agent or API key requires an organization owner or admin. A hand-off cannot be always allowed. The action's `resolution` names the approver; approving a held send publishes one `mailbox.action.resolved` event."), HttpApiEndpoint.post("mailboxesCancelAction", "/v1/mailboxes/:id/actions/:actionId/cancel", {
|
|
1934
2147
|
params: MailboxesCancelActionPathParams,
|
|
1935
2148
|
success: [MailboxesCancelAction200, MailboxesCancelAction202.pipe(HttpApiSchema.status(202))],
|
|
1936
2149
|
error: [
|
|
2150
|
+
MailboxesCancelAction400.pipe(HttpApiSchema.status(400)),
|
|
1937
2151
|
MailboxesCancelAction401.pipe(HttpApiSchema.status(401)),
|
|
1938
2152
|
MailboxesCancelAction402.pipe(HttpApiSchema.status(402)),
|
|
1939
2153
|
MailboxesCancelAction403.pipe(HttpApiSchema.status(403)),
|
|
@@ -1951,6 +2165,7 @@ var MailboxesGroup = class extends HttpApiGroup.make("Mailboxes").add(HttpApiEnd
|
|
|
1951
2165
|
payload: MailboxesDenyActionRequestJson,
|
|
1952
2166
|
success: MailboxesDenyAction200,
|
|
1953
2167
|
error: [
|
|
2168
|
+
MailboxesDenyAction400.pipe(HttpApiSchema.status(400)),
|
|
1954
2169
|
MailboxesDenyAction401.pipe(HttpApiSchema.status(401)),
|
|
1955
2170
|
MailboxesDenyAction403.pipe(HttpApiSchema.status(403)),
|
|
1956
2171
|
MailboxesDenyAction404.pipe(HttpApiSchema.status(404)),
|
|
@@ -1963,6 +2178,7 @@ var MailboxesGroup = class extends HttpApiGroup.make("Mailboxes").add(HttpApiEnd
|
|
|
1963
2178
|
params: MailboxesRetryActionPathParams,
|
|
1964
2179
|
success: [MailboxesRetryAction200, MailboxesRetryAction202.pipe(HttpApiSchema.status(202))],
|
|
1965
2180
|
error: [
|
|
2181
|
+
MailboxesRetryAction400.pipe(HttpApiSchema.status(400)),
|
|
1966
2182
|
MailboxesRetryAction401.pipe(HttpApiSchema.status(401)),
|
|
1967
2183
|
MailboxesRetryAction402.pipe(HttpApiSchema.status(402)),
|
|
1968
2184
|
MailboxesRetryAction403.pipe(HttpApiSchema.status(403)),
|
|
@@ -1980,6 +2196,7 @@ var MailboxesGroup = class extends HttpApiGroup.make("Mailboxes").add(HttpApiEnd
|
|
|
1980
2196
|
query: MailboxesGetAgentActivityQuery,
|
|
1981
2197
|
success: MailboxesGetAgentActivity200,
|
|
1982
2198
|
error: [
|
|
2199
|
+
MailboxesGetAgentActivity400.pipe(HttpApiSchema.status(400)),
|
|
1983
2200
|
MailboxesGetAgentActivity401.pipe(HttpApiSchema.status(401)),
|
|
1984
2201
|
MailboxesGetAgentActivity403.pipe(HttpApiSchema.status(403)),
|
|
1985
2202
|
MailboxesGetAgentActivity404.pipe(HttpApiSchema.status(404)),
|
|
@@ -1987,11 +2204,12 @@ var MailboxesGroup = class extends HttpApiGroup.make("Mailboxes").add(HttpApiEnd
|
|
|
1987
2204
|
MailboxesGetAgentActivity500,
|
|
1988
2205
|
MailboxesGetAgentActivity504.pipe(HttpApiSchema.status(504))
|
|
1989
2206
|
]
|
|
1990
|
-
}).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
|
|
2207
|
+
}).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 actions 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", {
|
|
1991
2208
|
params: MailboxesListDraftsPathParams,
|
|
1992
2209
|
query: MailboxesListDraftsQuery,
|
|
1993
2210
|
success: MailboxesListDrafts200,
|
|
1994
2211
|
error: [
|
|
2212
|
+
MailboxesListDrafts400.pipe(HttpApiSchema.status(400)),
|
|
1995
2213
|
MailboxesListDrafts401.pipe(HttpApiSchema.status(401)),
|
|
1996
2214
|
MailboxesListDrafts403.pipe(HttpApiSchema.status(403)),
|
|
1997
2215
|
MailboxesListDrafts404.pipe(HttpApiSchema.status(404)),
|
|
@@ -2004,6 +2222,7 @@ var MailboxesGroup = class extends HttpApiGroup.make("Mailboxes").add(HttpApiEnd
|
|
|
2004
2222
|
payload: MailboxesCreateDraftRequestJson,
|
|
2005
2223
|
success: MailboxesCreateDraft201.pipe(HttpApiSchema.status(201)),
|
|
2006
2224
|
error: [
|
|
2225
|
+
MailboxesCreateDraft400.pipe(HttpApiSchema.status(400)),
|
|
2007
2226
|
MailboxesCreateDraft401.pipe(HttpApiSchema.status(401)),
|
|
2008
2227
|
MailboxesCreateDraft403.pipe(HttpApiSchema.status(403)),
|
|
2009
2228
|
MailboxesCreateDraft404.pipe(HttpApiSchema.status(404)),
|
|
@@ -2015,6 +2234,7 @@ var MailboxesGroup = class extends HttpApiGroup.make("Mailboxes").add(HttpApiEnd
|
|
|
2015
2234
|
params: MailboxesGetDraftPathParams,
|
|
2016
2235
|
success: MailboxesGetDraft200,
|
|
2017
2236
|
error: [
|
|
2237
|
+
MailboxesGetDraft400.pipe(HttpApiSchema.status(400)),
|
|
2018
2238
|
MailboxesGetDraft401.pipe(HttpApiSchema.status(401)),
|
|
2019
2239
|
MailboxesGetDraft403.pipe(HttpApiSchema.status(403)),
|
|
2020
2240
|
MailboxesGetDraft404.pipe(HttpApiSchema.status(404)),
|
|
@@ -2026,6 +2246,7 @@ var MailboxesGroup = class extends HttpApiGroup.make("Mailboxes").add(HttpApiEnd
|
|
|
2026
2246
|
params: MailboxesDeleteDraftPathParams,
|
|
2027
2247
|
success: MailboxesDeleteDraft200,
|
|
2028
2248
|
error: [
|
|
2249
|
+
MailboxesDeleteDraft400.pipe(HttpApiSchema.status(400)),
|
|
2029
2250
|
MailboxesDeleteDraft401.pipe(HttpApiSchema.status(401)),
|
|
2030
2251
|
MailboxesDeleteDraft403.pipe(HttpApiSchema.status(403)),
|
|
2031
2252
|
MailboxesDeleteDraft404.pipe(HttpApiSchema.status(404)),
|
|
@@ -2038,6 +2259,7 @@ var MailboxesGroup = class extends HttpApiGroup.make("Mailboxes").add(HttpApiEnd
|
|
|
2038
2259
|
payload: MailboxesUpdateDraftRequestJson,
|
|
2039
2260
|
success: MailboxesUpdateDraft200,
|
|
2040
2261
|
error: [
|
|
2262
|
+
MailboxesUpdateDraft400.pipe(HttpApiSchema.status(400)),
|
|
2041
2263
|
MailboxesUpdateDraft401.pipe(HttpApiSchema.status(401)),
|
|
2042
2264
|
MailboxesUpdateDraft403.pipe(HttpApiSchema.status(403)),
|
|
2043
2265
|
MailboxesUpdateDraft404.pipe(HttpApiSchema.status(404)),
|
|
@@ -2051,6 +2273,7 @@ var MailboxesGroup = class extends HttpApiGroup.make("Mailboxes").add(HttpApiEnd
|
|
|
2051
2273
|
headers: MailboxesSendDraftHeaders,
|
|
2052
2274
|
success: [MailboxesSendDraft200, MailboxesSendDraft202.pipe(HttpApiSchema.status(202))],
|
|
2053
2275
|
error: [
|
|
2276
|
+
MailboxesSendDraft400.pipe(HttpApiSchema.status(400)),
|
|
2054
2277
|
MailboxesSendDraft401.pipe(HttpApiSchema.status(401)),
|
|
2055
2278
|
MailboxesSendDraft402.pipe(HttpApiSchema.status(402)),
|
|
2056
2279
|
MailboxesSendDraft403.pipe(HttpApiSchema.status(403)),
|
|
@@ -2068,6 +2291,7 @@ var MailboxesGroup = class extends HttpApiGroup.make("Mailboxes").add(HttpApiEnd
|
|
|
2068
2291
|
payload: MailboxesCreateEndpointRequestJson,
|
|
2069
2292
|
success: MailboxesCreateEndpoint201.pipe(HttpApiSchema.status(201)),
|
|
2070
2293
|
error: [
|
|
2294
|
+
MailboxesCreateEndpoint400.pipe(HttpApiSchema.status(400)),
|
|
2071
2295
|
MailboxesCreateEndpoint401.pipe(HttpApiSchema.status(401)),
|
|
2072
2296
|
MailboxesCreateEndpoint403.pipe(HttpApiSchema.status(403)),
|
|
2073
2297
|
MailboxesCreateEndpoint404.pipe(HttpApiSchema.status(404)),
|
|
@@ -2080,6 +2304,7 @@ var MailboxesGroup = class extends HttpApiGroup.make("Mailboxes").add(HttpApiEnd
|
|
|
2080
2304
|
params: MailboxesRemoveEndpointPathParams,
|
|
2081
2305
|
success: MailboxesRemoveEndpoint200,
|
|
2082
2306
|
error: [
|
|
2307
|
+
MailboxesRemoveEndpoint400.pipe(HttpApiSchema.status(400)),
|
|
2083
2308
|
MailboxesRemoveEndpoint401.pipe(HttpApiSchema.status(401)),
|
|
2084
2309
|
MailboxesRemoveEndpoint403.pipe(HttpApiSchema.status(403)),
|
|
2085
2310
|
MailboxesRemoveEndpoint404.pipe(HttpApiSchema.status(404)),
|
|
@@ -2092,6 +2317,7 @@ var MailboxesGroup = class extends HttpApiGroup.make("Mailboxes").add(HttpApiEnd
|
|
|
2092
2317
|
payload: MailboxesUpdateEndpointRequestJson,
|
|
2093
2318
|
success: MailboxesUpdateEndpoint200,
|
|
2094
2319
|
error: [
|
|
2320
|
+
MailboxesUpdateEndpoint400.pipe(HttpApiSchema.status(400)),
|
|
2095
2321
|
MailboxesUpdateEndpoint401.pipe(HttpApiSchema.status(401)),
|
|
2096
2322
|
MailboxesUpdateEndpoint403.pipe(HttpApiSchema.status(403)),
|
|
2097
2323
|
MailboxesUpdateEndpoint404.pipe(HttpApiSchema.status(404)),
|
|
@@ -2104,6 +2330,7 @@ var MailboxesGroup = class extends HttpApiGroup.make("Mailboxes").add(HttpApiEnd
|
|
|
2104
2330
|
query: MailboxesListEventsQuery,
|
|
2105
2331
|
success: MailboxesListEvents200,
|
|
2106
2332
|
error: [
|
|
2333
|
+
MailboxesListEvents400.pipe(HttpApiSchema.status(400)),
|
|
2107
2334
|
MailboxesListEvents401.pipe(HttpApiSchema.status(401)),
|
|
2108
2335
|
MailboxesListEvents403.pipe(HttpApiSchema.status(403)),
|
|
2109
2336
|
MailboxesListEvents404.pipe(HttpApiSchema.status(404)),
|
|
@@ -2115,6 +2342,7 @@ var MailboxesGroup = class extends HttpApiGroup.make("Mailboxes").add(HttpApiEnd
|
|
|
2115
2342
|
params: MailboxesListFoldersPathParams,
|
|
2116
2343
|
success: MailboxesListFolders200,
|
|
2117
2344
|
error: [
|
|
2345
|
+
MailboxesListFolders400.pipe(HttpApiSchema.status(400)),
|
|
2118
2346
|
MailboxesListFolders401.pipe(HttpApiSchema.status(401)),
|
|
2119
2347
|
MailboxesListFolders403.pipe(HttpApiSchema.status(403)),
|
|
2120
2348
|
MailboxesListFolders404.pipe(HttpApiSchema.status(404)),
|
|
@@ -2127,6 +2355,7 @@ var MailboxesGroup = class extends HttpApiGroup.make("Mailboxes").add(HttpApiEnd
|
|
|
2127
2355
|
query: MailboxesListGrantsQuery,
|
|
2128
2356
|
success: MailboxesListGrants200,
|
|
2129
2357
|
error: [
|
|
2358
|
+
MailboxesListGrants400.pipe(HttpApiSchema.status(400)),
|
|
2130
2359
|
MailboxesListGrants401.pipe(HttpApiSchema.status(401)),
|
|
2131
2360
|
MailboxesListGrants403.pipe(HttpApiSchema.status(403)),
|
|
2132
2361
|
MailboxesListGrants404.pipe(HttpApiSchema.status(404)),
|
|
@@ -2134,11 +2363,12 @@ var MailboxesGroup = class extends HttpApiGroup.make("Mailboxes").add(HttpApiEnd
|
|
|
2134
2363
|
MailboxesListGrants500,
|
|
2135
2364
|
MailboxesListGrants504.pipe(HttpApiSchema.status(504))
|
|
2136
2365
|
]
|
|
2137
|
-
}).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,
|
|
2366
|
+
}).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, 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", {
|
|
2138
2367
|
params: MailboxesCreateGrantPathParams,
|
|
2139
2368
|
payload: MailboxesCreateGrantRequestJson,
|
|
2140
2369
|
success: MailboxesCreateGrant201.pipe(HttpApiSchema.status(201)),
|
|
2141
2370
|
error: [
|
|
2371
|
+
MailboxesCreateGrant400.pipe(HttpApiSchema.status(400)),
|
|
2142
2372
|
MailboxesCreateGrant401.pipe(HttpApiSchema.status(401)),
|
|
2143
2373
|
MailboxesCreateGrant403.pipe(HttpApiSchema.status(403)),
|
|
2144
2374
|
MailboxesCreateGrant404.pipe(HttpApiSchema.status(404)),
|
|
@@ -2151,6 +2381,7 @@ var MailboxesGroup = class extends HttpApiGroup.make("Mailboxes").add(HttpApiEnd
|
|
|
2151
2381
|
params: MailboxesRevokeGrantPathParams,
|
|
2152
2382
|
success: MailboxesRevokeGrant200,
|
|
2153
2383
|
error: [
|
|
2384
|
+
MailboxesRevokeGrant400.pipe(HttpApiSchema.status(400)),
|
|
2154
2385
|
MailboxesRevokeGrant401.pipe(HttpApiSchema.status(401)),
|
|
2155
2386
|
MailboxesRevokeGrant403.pipe(HttpApiSchema.status(403)),
|
|
2156
2387
|
MailboxesRevokeGrant404.pipe(HttpApiSchema.status(404)),
|
|
@@ -2164,6 +2395,7 @@ var MailboxesGroup = class extends HttpApiGroup.make("Mailboxes").add(HttpApiEnd
|
|
|
2164
2395
|
payload: MailboxesUpdateGrantRequestJson,
|
|
2165
2396
|
success: MailboxesUpdateGrant200,
|
|
2166
2397
|
error: [
|
|
2398
|
+
MailboxesUpdateGrant400.pipe(HttpApiSchema.status(400)),
|
|
2167
2399
|
MailboxesUpdateGrant401.pipe(HttpApiSchema.status(401)),
|
|
2168
2400
|
MailboxesUpdateGrant403.pipe(HttpApiSchema.status(403)),
|
|
2169
2401
|
MailboxesUpdateGrant404.pipe(HttpApiSchema.status(404)),
|
|
@@ -2172,10 +2404,11 @@ var MailboxesGroup = class extends HttpApiGroup.make("Mailboxes").add(HttpApiEnd
|
|
|
2172
2404
|
MailboxesUpdateGrant500,
|
|
2173
2405
|
MailboxesUpdateGrant504.pipe(HttpApiSchema.status(504))
|
|
2174
2406
|
]
|
|
2175
|
-
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "mailboxes.updateGrant").annotate(OpenApi.Summary, "Update a mailbox grant").annotate(OpenApi.Description, "Changes a member's role
|
|
2407
|
+
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "mailboxes.updateGrant").annotate(OpenApi.Summary, "Update a mailbox grant").annotate(OpenApi.Description, "Changes a member's role 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", {
|
|
2176
2408
|
params: MailboxesListLabelsPathParams,
|
|
2177
2409
|
success: MailboxesListLabels200,
|
|
2178
2410
|
error: [
|
|
2411
|
+
MailboxesListLabels400.pipe(HttpApiSchema.status(400)),
|
|
2179
2412
|
MailboxesListLabels401.pipe(HttpApiSchema.status(401)),
|
|
2180
2413
|
MailboxesListLabels403.pipe(HttpApiSchema.status(403)),
|
|
2181
2414
|
MailboxesListLabels404.pipe(HttpApiSchema.status(404)),
|
|
@@ -2188,6 +2421,7 @@ var MailboxesGroup = class extends HttpApiGroup.make("Mailboxes").add(HttpApiEnd
|
|
|
2188
2421
|
payload: MailboxesCreateLabelRequestJson,
|
|
2189
2422
|
success: MailboxesCreateLabel201.pipe(HttpApiSchema.status(201)),
|
|
2190
2423
|
error: [
|
|
2424
|
+
MailboxesCreateLabel400.pipe(HttpApiSchema.status(400)),
|
|
2191
2425
|
MailboxesCreateLabel401.pipe(HttpApiSchema.status(401)),
|
|
2192
2426
|
MailboxesCreateLabel403.pipe(HttpApiSchema.status(403)),
|
|
2193
2427
|
MailboxesCreateLabel404.pipe(HttpApiSchema.status(404)),
|
|
@@ -2200,6 +2434,7 @@ var MailboxesGroup = class extends HttpApiGroup.make("Mailboxes").add(HttpApiEnd
|
|
|
2200
2434
|
params: MailboxesDeleteLabelPathParams,
|
|
2201
2435
|
success: MailboxesDeleteLabel200,
|
|
2202
2436
|
error: [
|
|
2437
|
+
MailboxesDeleteLabel400.pipe(HttpApiSchema.status(400)),
|
|
2203
2438
|
MailboxesDeleteLabel401.pipe(HttpApiSchema.status(401)),
|
|
2204
2439
|
MailboxesDeleteLabel403.pipe(HttpApiSchema.status(403)),
|
|
2205
2440
|
MailboxesDeleteLabel404.pipe(HttpApiSchema.status(404)),
|
|
@@ -2212,6 +2447,7 @@ var MailboxesGroup = class extends HttpApiGroup.make("Mailboxes").add(HttpApiEnd
|
|
|
2212
2447
|
payload: MailboxesUpdateLabelRequestJson,
|
|
2213
2448
|
success: MailboxesUpdateLabel200,
|
|
2214
2449
|
error: [
|
|
2450
|
+
MailboxesUpdateLabel400.pipe(HttpApiSchema.status(400)),
|
|
2215
2451
|
MailboxesUpdateLabel401.pipe(HttpApiSchema.status(401)),
|
|
2216
2452
|
MailboxesUpdateLabel403.pipe(HttpApiSchema.status(403)),
|
|
2217
2453
|
MailboxesUpdateLabel404.pipe(HttpApiSchema.status(404)),
|
|
@@ -2225,6 +2461,7 @@ var MailboxesGroup = class extends HttpApiGroup.make("Mailboxes").add(HttpApiEnd
|
|
|
2225
2461
|
payload: MailboxesSendMessageRequestJson,
|
|
2226
2462
|
success: [MailboxesSendMessage200, MailboxesSendMessage202.pipe(HttpApiSchema.status(202))],
|
|
2227
2463
|
error: [
|
|
2464
|
+
MailboxesSendMessage400.pipe(HttpApiSchema.status(400)),
|
|
2228
2465
|
MailboxesSendMessage401.pipe(HttpApiSchema.status(401)),
|
|
2229
2466
|
MailboxesSendMessage402.pipe(HttpApiSchema.status(402)),
|
|
2230
2467
|
MailboxesSendMessage403.pipe(HttpApiSchema.status(403)),
|
|
@@ -2241,6 +2478,7 @@ var MailboxesGroup = class extends HttpApiGroup.make("Mailboxes").add(HttpApiEnd
|
|
|
2241
2478
|
params: MailboxesGetMessagePathParams,
|
|
2242
2479
|
success: MailboxesGetMessage200,
|
|
2243
2480
|
error: [
|
|
2481
|
+
MailboxesGetMessage400.pipe(HttpApiSchema.status(400)),
|
|
2244
2482
|
MailboxesGetMessage401.pipe(HttpApiSchema.status(401)),
|
|
2245
2483
|
MailboxesGetMessage403.pipe(HttpApiSchema.status(403)),
|
|
2246
2484
|
MailboxesGetMessage404.pipe(HttpApiSchema.status(404)),
|
|
@@ -2252,6 +2490,7 @@ var MailboxesGroup = class extends HttpApiGroup.make("Mailboxes").add(HttpApiEnd
|
|
|
2252
2490
|
params: MailboxesGetMessageAttachmentPathParams,
|
|
2253
2491
|
success: MailboxesGetMessageAttachment200,
|
|
2254
2492
|
error: [
|
|
2493
|
+
MailboxesGetMessageAttachment400.pipe(HttpApiSchema.status(400)),
|
|
2255
2494
|
MailboxesGetMessageAttachment401.pipe(HttpApiSchema.status(401)),
|
|
2256
2495
|
MailboxesGetMessageAttachment403.pipe(HttpApiSchema.status(403)),
|
|
2257
2496
|
MailboxesGetMessageAttachment404.pipe(HttpApiSchema.status(404)),
|
|
@@ -2263,6 +2502,7 @@ var MailboxesGroup = class extends HttpApiGroup.make("Mailboxes").add(HttpApiEnd
|
|
|
2263
2502
|
params: MailboxesCopyMessageAttachmentPathParams,
|
|
2264
2503
|
success: MailboxesCopyMessageAttachment201.pipe(HttpApiSchema.status(201)),
|
|
2265
2504
|
error: [
|
|
2505
|
+
MailboxesCopyMessageAttachment400.pipe(HttpApiSchema.status(400)),
|
|
2266
2506
|
MailboxesCopyMessageAttachment401.pipe(HttpApiSchema.status(401)),
|
|
2267
2507
|
MailboxesCopyMessageAttachment403.pipe(HttpApiSchema.status(403)),
|
|
2268
2508
|
MailboxesCopyMessageAttachment404.pipe(HttpApiSchema.status(404)),
|
|
@@ -2275,6 +2515,7 @@ var MailboxesGroup = class extends HttpApiGroup.make("Mailboxes").add(HttpApiEnd
|
|
|
2275
2515
|
params: MailboxesDiscardMessagePathParams,
|
|
2276
2516
|
success: MailboxesDiscardMessage200,
|
|
2277
2517
|
error: [
|
|
2518
|
+
MailboxesDiscardMessage400.pipe(HttpApiSchema.status(400)),
|
|
2278
2519
|
MailboxesDiscardMessage401.pipe(HttpApiSchema.status(401)),
|
|
2279
2520
|
MailboxesDiscardMessage403.pipe(HttpApiSchema.status(403)),
|
|
2280
2521
|
MailboxesDiscardMessage404.pipe(HttpApiSchema.status(404)),
|
|
@@ -2290,6 +2531,7 @@ var MailboxesGroup = class extends HttpApiGroup.make("Mailboxes").add(HttpApiEnd
|
|
|
2290
2531
|
payload: MailboxesForwardRequestJson,
|
|
2291
2532
|
success: [MailboxesForward200, MailboxesForward202.pipe(HttpApiSchema.status(202))],
|
|
2292
2533
|
error: [
|
|
2534
|
+
MailboxesForward400.pipe(HttpApiSchema.status(400)),
|
|
2293
2535
|
MailboxesForward401.pipe(HttpApiSchema.status(401)),
|
|
2294
2536
|
MailboxesForward402.pipe(HttpApiSchema.status(402)),
|
|
2295
2537
|
MailboxesForward403.pipe(HttpApiSchema.status(403)),
|
|
@@ -2306,6 +2548,7 @@ var MailboxesGroup = class extends HttpApiGroup.make("Mailboxes").add(HttpApiEnd
|
|
|
2306
2548
|
params: MailboxesGetMessageRawPathParams,
|
|
2307
2549
|
success: MailboxesGetMessageRaw200,
|
|
2308
2550
|
error: [
|
|
2551
|
+
MailboxesGetMessageRaw400.pipe(HttpApiSchema.status(400)),
|
|
2309
2552
|
MailboxesGetMessageRaw401.pipe(HttpApiSchema.status(401)),
|
|
2310
2553
|
MailboxesGetMessageRaw403.pipe(HttpApiSchema.status(403)),
|
|
2311
2554
|
MailboxesGetMessageRaw404.pipe(HttpApiSchema.status(404)),
|
|
@@ -2317,6 +2560,7 @@ var MailboxesGroup = class extends HttpApiGroup.make("Mailboxes").add(HttpApiEnd
|
|
|
2317
2560
|
params: MailboxesReleaseMessagePathParams,
|
|
2318
2561
|
success: MailboxesReleaseMessage200,
|
|
2319
2562
|
error: [
|
|
2563
|
+
MailboxesReleaseMessage400.pipe(HttpApiSchema.status(400)),
|
|
2320
2564
|
MailboxesReleaseMessage401.pipe(HttpApiSchema.status(401)),
|
|
2321
2565
|
MailboxesReleaseMessage403.pipe(HttpApiSchema.status(403)),
|
|
2322
2566
|
MailboxesReleaseMessage404.pipe(HttpApiSchema.status(404)),
|
|
@@ -2331,6 +2575,7 @@ var MailboxesGroup = class extends HttpApiGroup.make("Mailboxes").add(HttpApiEnd
|
|
|
2331
2575
|
payload: MailboxesReplyRequestJson,
|
|
2332
2576
|
success: [MailboxesReply200, MailboxesReply202.pipe(HttpApiSchema.status(202))],
|
|
2333
2577
|
error: [
|
|
2578
|
+
MailboxesReply400.pipe(HttpApiSchema.status(400)),
|
|
2334
2579
|
MailboxesReply401.pipe(HttpApiSchema.status(401)),
|
|
2335
2580
|
MailboxesReply402.pipe(HttpApiSchema.status(402)),
|
|
2336
2581
|
MailboxesReply403.pipe(HttpApiSchema.status(403)),
|
|
@@ -2349,6 +2594,7 @@ var MailboxesGroup = class extends HttpApiGroup.make("Mailboxes").add(HttpApiEnd
|
|
|
2349
2594
|
payload: MailboxesReplyAllRequestJson,
|
|
2350
2595
|
success: [MailboxesReplyAll200, MailboxesReplyAll202.pipe(HttpApiSchema.status(202))],
|
|
2351
2596
|
error: [
|
|
2597
|
+
MailboxesReplyAll400.pipe(HttpApiSchema.status(400)),
|
|
2352
2598
|
MailboxesReplyAll401.pipe(HttpApiSchema.status(401)),
|
|
2353
2599
|
MailboxesReplyAll402.pipe(HttpApiSchema.status(402)),
|
|
2354
2600
|
MailboxesReplyAll403.pipe(HttpApiSchema.status(403)),
|
|
@@ -2365,6 +2611,7 @@ var MailboxesGroup = class extends HttpApiGroup.make("Mailboxes").add(HttpApiEnd
|
|
|
2365
2611
|
params: MailboxesPausePathParams,
|
|
2366
2612
|
success: MailboxesPause200,
|
|
2367
2613
|
error: [
|
|
2614
|
+
MailboxesPause400.pipe(HttpApiSchema.status(400)),
|
|
2368
2615
|
MailboxesPause401.pipe(HttpApiSchema.status(401)),
|
|
2369
2616
|
MailboxesPause403.pipe(HttpApiSchema.status(403)),
|
|
2370
2617
|
MailboxesPause404.pipe(HttpApiSchema.status(404)),
|
|
@@ -2372,69 +2619,12 @@ var MailboxesGroup = class extends HttpApiGroup.make("Mailboxes").add(HttpApiEnd
|
|
|
2372
2619
|
MailboxesPause500,
|
|
2373
2620
|
MailboxesPause504.pipe(HttpApiSchema.status(504))
|
|
2374
2621
|
]
|
|
2375
|
-
}).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("
|
|
2376
|
-
params: MailboxesListPoliciesPathParams,
|
|
2377
|
-
success: MailboxesListPolicies200,
|
|
2378
|
-
error: [
|
|
2379
|
-
MailboxesListPolicies401.pipe(HttpApiSchema.status(401)),
|
|
2380
|
-
MailboxesListPolicies403.pipe(HttpApiSchema.status(403)),
|
|
2381
|
-
MailboxesListPolicies404.pipe(HttpApiSchema.status(404)),
|
|
2382
|
-
MailboxesListPolicies422.pipe(HttpApiSchema.status(422)),
|
|
2383
|
-
MailboxesListPolicies500,
|
|
2384
|
-
MailboxesListPolicies504.pipe(HttpApiSchema.status(504))
|
|
2385
|
-
]
|
|
2386
|
-
}).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", {
|
|
2387
|
-
params: MailboxesCreatePolicyPathParams,
|
|
2388
|
-
payload: MailboxesCreatePolicyRequestJson,
|
|
2389
|
-
success: MailboxesCreatePolicy201.pipe(HttpApiSchema.status(201)),
|
|
2390
|
-
error: [
|
|
2391
|
-
MailboxesCreatePolicy401.pipe(HttpApiSchema.status(401)),
|
|
2392
|
-
MailboxesCreatePolicy403.pipe(HttpApiSchema.status(403)),
|
|
2393
|
-
MailboxesCreatePolicy404.pipe(HttpApiSchema.status(404)),
|
|
2394
|
-
MailboxesCreatePolicy409.pipe(HttpApiSchema.status(409)),
|
|
2395
|
-
MailboxesCreatePolicy422.pipe(HttpApiSchema.status(422)),
|
|
2396
|
-
MailboxesCreatePolicy500,
|
|
2397
|
-
MailboxesCreatePolicy504.pipe(HttpApiSchema.status(504))
|
|
2398
|
-
]
|
|
2399
|
-
}).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", {
|
|
2400
|
-
params: MailboxesGetPolicyPathParams,
|
|
2401
|
-
success: MailboxesGetPolicy200,
|
|
2402
|
-
error: [
|
|
2403
|
-
MailboxesGetPolicy401.pipe(HttpApiSchema.status(401)),
|
|
2404
|
-
MailboxesGetPolicy403.pipe(HttpApiSchema.status(403)),
|
|
2405
|
-
MailboxesGetPolicy404.pipe(HttpApiSchema.status(404)),
|
|
2406
|
-
MailboxesGetPolicy422.pipe(HttpApiSchema.status(422)),
|
|
2407
|
-
MailboxesGetPolicy500,
|
|
2408
|
-
MailboxesGetPolicy504.pipe(HttpApiSchema.status(504))
|
|
2409
|
-
]
|
|
2410
|
-
}).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", {
|
|
2411
|
-
params: MailboxesDeletePolicyPathParams,
|
|
2412
|
-
success: MailboxesDeletePolicy200,
|
|
2413
|
-
error: [
|
|
2414
|
-
MailboxesDeletePolicy401.pipe(HttpApiSchema.status(401)),
|
|
2415
|
-
MailboxesDeletePolicy403.pipe(HttpApiSchema.status(403)),
|
|
2416
|
-
MailboxesDeletePolicy404.pipe(HttpApiSchema.status(404)),
|
|
2417
|
-
MailboxesDeletePolicy422.pipe(HttpApiSchema.status(422)),
|
|
2418
|
-
MailboxesDeletePolicy500,
|
|
2419
|
-
MailboxesDeletePolicy504.pipe(HttpApiSchema.status(504))
|
|
2420
|
-
]
|
|
2421
|
-
}).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", {
|
|
2422
|
-
params: MailboxesUpdatePolicyPathParams,
|
|
2423
|
-
payload: MailboxesUpdatePolicyRequestJson,
|
|
2424
|
-
success: MailboxesUpdatePolicy200,
|
|
2425
|
-
error: [
|
|
2426
|
-
MailboxesUpdatePolicy401.pipe(HttpApiSchema.status(401)),
|
|
2427
|
-
MailboxesUpdatePolicy403.pipe(HttpApiSchema.status(403)),
|
|
2428
|
-
MailboxesUpdatePolicy404.pipe(HttpApiSchema.status(404)),
|
|
2429
|
-
MailboxesUpdatePolicy422.pipe(HttpApiSchema.status(422)),
|
|
2430
|
-
MailboxesUpdatePolicy500,
|
|
2431
|
-
MailboxesUpdatePolicy504.pipe(HttpApiSchema.status(504))
|
|
2432
|
-
]
|
|
2433
|
-
}).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", {
|
|
2622
|
+
}).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("mailboxesListQuarantine", "/v1/mailboxes/:id/quarantine", {
|
|
2434
2623
|
params: MailboxesListQuarantinePathParams,
|
|
2435
2624
|
query: MailboxesListQuarantineQuery,
|
|
2436
2625
|
success: MailboxesListQuarantine200,
|
|
2437
2626
|
error: [
|
|
2627
|
+
MailboxesListQuarantine400.pipe(HttpApiSchema.status(400)),
|
|
2438
2628
|
MailboxesListQuarantine401.pipe(HttpApiSchema.status(401)),
|
|
2439
2629
|
MailboxesListQuarantine403.pipe(HttpApiSchema.status(403)),
|
|
2440
2630
|
MailboxesListQuarantine404.pipe(HttpApiSchema.status(404)),
|
|
@@ -2446,6 +2636,7 @@ var MailboxesGroup = class extends HttpApiGroup.make("Mailboxes").add(HttpApiEnd
|
|
|
2446
2636
|
params: MailboxesResumePathParams,
|
|
2447
2637
|
success: MailboxesResume200,
|
|
2448
2638
|
error: [
|
|
2639
|
+
MailboxesResume400.pipe(HttpApiSchema.status(400)),
|
|
2449
2640
|
MailboxesResume401.pipe(HttpApiSchema.status(401)),
|
|
2450
2641
|
MailboxesResume403.pipe(HttpApiSchema.status(403)),
|
|
2451
2642
|
MailboxesResume404.pipe(HttpApiSchema.status(404)),
|
|
@@ -2458,6 +2649,7 @@ var MailboxesGroup = class extends HttpApiGroup.make("Mailboxes").add(HttpApiEnd
|
|
|
2458
2649
|
query: MailboxesListThreadsQuery,
|
|
2459
2650
|
success: MailboxesListThreads200,
|
|
2460
2651
|
error: [
|
|
2652
|
+
MailboxesListThreads400.pipe(HttpApiSchema.status(400)),
|
|
2461
2653
|
MailboxesListThreads401.pipe(HttpApiSchema.status(401)),
|
|
2462
2654
|
MailboxesListThreads403.pipe(HttpApiSchema.status(403)),
|
|
2463
2655
|
MailboxesListThreads404.pipe(HttpApiSchema.status(404)),
|
|
@@ -2465,10 +2657,11 @@ var MailboxesGroup = class extends HttpApiGroup.make("Mailboxes").add(HttpApiEnd
|
|
|
2465
2657
|
MailboxesListThreads500,
|
|
2466
2658
|
MailboxesListThreads504.pipe(HttpApiSchema.status(504))
|
|
2467
2659
|
]
|
|
2468
|
-
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "mailboxes.listThreads").annotate(OpenApi.Summary, "List threads in a mailbox").annotate(OpenApi.Description, "Returns thread summaries
|
|
2660
|
+
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "mailboxes.listThreads").annotate(OpenApi.Summary, "List threads in a mailbox").annotate(OpenApi.Description, "Returns thread summaries. With `q`, semantic and keyword search returns up to 100 best-matching threads in relevance order across cursor pages. It searches subjects, participants, message text including quoted history, and attachment filenames, not attachment contents. New mail can take a few seconds to become searchable. Other filters narrow the searchable set. Without `q`, threads use most recent activity first; `after` and `before` filter by last activity for polling. Pass `nextCursor` back as `cursor` for the next page; it is null on the last page. In a list without `q`, 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", {
|
|
2469
2661
|
params: MailboxesGetThreadPathParams,
|
|
2470
2662
|
success: MailboxesGetThread200,
|
|
2471
2663
|
error: [
|
|
2664
|
+
MailboxesGetThread400.pipe(HttpApiSchema.status(400)),
|
|
2472
2665
|
MailboxesGetThread401.pipe(HttpApiSchema.status(401)),
|
|
2473
2666
|
MailboxesGetThread403.pipe(HttpApiSchema.status(403)),
|
|
2474
2667
|
MailboxesGetThread404.pipe(HttpApiSchema.status(404)),
|
|
@@ -2481,6 +2674,7 @@ var MailboxesGroup = class extends HttpApiGroup.make("Mailboxes").add(HttpApiEnd
|
|
|
2481
2674
|
payload: MailboxesUpdateThreadRequestJson,
|
|
2482
2675
|
success: MailboxesUpdateThread200,
|
|
2483
2676
|
error: [
|
|
2677
|
+
MailboxesUpdateThread400.pipe(HttpApiSchema.status(400)),
|
|
2484
2678
|
MailboxesUpdateThread401.pipe(HttpApiSchema.status(401)),
|
|
2485
2679
|
MailboxesUpdateThread403.pipe(HttpApiSchema.status(403)),
|
|
2486
2680
|
MailboxesUpdateThread404.pipe(HttpApiSchema.status(404)),
|
|
@@ -2493,6 +2687,7 @@ var MailboxesGroup = class extends HttpApiGroup.make("Mailboxes").add(HttpApiEnd
|
|
|
2493
2687
|
query: MailboxesGetThreadContentQuery,
|
|
2494
2688
|
success: MailboxesGetThreadContent200,
|
|
2495
2689
|
error: [
|
|
2690
|
+
MailboxesGetThreadContent400.pipe(HttpApiSchema.status(400)),
|
|
2496
2691
|
MailboxesGetThreadContent401.pipe(HttpApiSchema.status(401)),
|
|
2497
2692
|
MailboxesGetThreadContent403.pipe(HttpApiSchema.status(403)),
|
|
2498
2693
|
MailboxesGetThreadContent404.pipe(HttpApiSchema.status(404)),
|
|
@@ -2505,6 +2700,7 @@ var MailboxesGroup = class extends HttpApiGroup.make("Mailboxes").add(HttpApiEnd
|
|
|
2505
2700
|
payload: MailboxesAddThreadLabelsRequestJson,
|
|
2506
2701
|
success: MailboxesAddThreadLabels200,
|
|
2507
2702
|
error: [
|
|
2703
|
+
MailboxesAddThreadLabels400.pipe(HttpApiSchema.status(400)),
|
|
2508
2704
|
MailboxesAddThreadLabels401.pipe(HttpApiSchema.status(401)),
|
|
2509
2705
|
MailboxesAddThreadLabels403.pipe(HttpApiSchema.status(403)),
|
|
2510
2706
|
MailboxesAddThreadLabels404.pipe(HttpApiSchema.status(404)),
|
|
@@ -2517,6 +2713,7 @@ var MailboxesGroup = class extends HttpApiGroup.make("Mailboxes").add(HttpApiEnd
|
|
|
2517
2713
|
payload: MailboxesRemoveThreadLabelsRequestJson,
|
|
2518
2714
|
success: MailboxesRemoveThreadLabels200,
|
|
2519
2715
|
error: [
|
|
2716
|
+
MailboxesRemoveThreadLabels400.pipe(HttpApiSchema.status(400)),
|
|
2520
2717
|
MailboxesRemoveThreadLabels401.pipe(HttpApiSchema.status(401)),
|
|
2521
2718
|
MailboxesRemoveThreadLabels403.pipe(HttpApiSchema.status(403)),
|
|
2522
2719
|
MailboxesRemoveThreadLabels404.pipe(HttpApiSchema.status(404)),
|
|
@@ -2529,6 +2726,7 @@ var MailboxesGroup = class extends HttpApiGroup.make("Mailboxes").add(HttpApiEnd
|
|
|
2529
2726
|
query: MailboxesListThreadMessagesQuery,
|
|
2530
2727
|
success: MailboxesListThreadMessages200,
|
|
2531
2728
|
error: [
|
|
2729
|
+
MailboxesListThreadMessages400.pipe(HttpApiSchema.status(400)),
|
|
2532
2730
|
MailboxesListThreadMessages401.pipe(HttpApiSchema.status(401)),
|
|
2533
2731
|
MailboxesListThreadMessages403.pipe(HttpApiSchema.status(403)),
|
|
2534
2732
|
MailboxesListThreadMessages404.pipe(HttpApiSchema.status(404)),
|
|
@@ -2541,6 +2739,7 @@ var MailboxesGroup = class extends HttpApiGroup.make("Mailboxes").add(HttpApiEnd
|
|
|
2541
2739
|
query: MailboxesListThreadNotesQuery,
|
|
2542
2740
|
success: MailboxesListThreadNotes200,
|
|
2543
2741
|
error: [
|
|
2742
|
+
MailboxesListThreadNotes400.pipe(HttpApiSchema.status(400)),
|
|
2544
2743
|
MailboxesListThreadNotes401.pipe(HttpApiSchema.status(401)),
|
|
2545
2744
|
MailboxesListThreadNotes403.pipe(HttpApiSchema.status(403)),
|
|
2546
2745
|
MailboxesListThreadNotes404.pipe(HttpApiSchema.status(404)),
|
|
@@ -2553,6 +2752,7 @@ var MailboxesGroup = class extends HttpApiGroup.make("Mailboxes").add(HttpApiEnd
|
|
|
2553
2752
|
payload: MailboxesCreateNoteRequestJson,
|
|
2554
2753
|
success: MailboxesCreateNote201.pipe(HttpApiSchema.status(201)),
|
|
2555
2754
|
error: [
|
|
2755
|
+
MailboxesCreateNote400.pipe(HttpApiSchema.status(400)),
|
|
2556
2756
|
MailboxesCreateNote401.pipe(HttpApiSchema.status(401)),
|
|
2557
2757
|
MailboxesCreateNote403.pipe(HttpApiSchema.status(403)),
|
|
2558
2758
|
MailboxesCreateNote404.pipe(HttpApiSchema.status(404)),
|
|
@@ -2564,6 +2764,7 @@ var MailboxesGroup = class extends HttpApiGroup.make("Mailboxes").add(HttpApiEnd
|
|
|
2564
2764
|
params: MailboxesDeleteNotePathParams,
|
|
2565
2765
|
success: MailboxesDeleteNote200,
|
|
2566
2766
|
error: [
|
|
2767
|
+
MailboxesDeleteNote400.pipe(HttpApiSchema.status(400)),
|
|
2567
2768
|
MailboxesDeleteNote401.pipe(HttpApiSchema.status(401)),
|
|
2568
2769
|
MailboxesDeleteNote403.pipe(HttpApiSchema.status(403)),
|
|
2569
2770
|
MailboxesDeleteNote404.pipe(HttpApiSchema.status(404)),
|
|
@@ -2576,6 +2777,7 @@ var MailboxesGroup = class extends HttpApiGroup.make("Mailboxes").add(HttpApiEnd
|
|
|
2576
2777
|
payload: MailboxesUpdateNoteRequestJson,
|
|
2577
2778
|
success: MailboxesUpdateNote200,
|
|
2578
2779
|
error: [
|
|
2780
|
+
MailboxesUpdateNote400.pipe(HttpApiSchema.status(400)),
|
|
2579
2781
|
MailboxesUpdateNote401.pipe(HttpApiSchema.status(401)),
|
|
2580
2782
|
MailboxesUpdateNote403.pipe(HttpApiSchema.status(403)),
|
|
2581
2783
|
MailboxesUpdateNote404.pipe(HttpApiSchema.status(404)),
|
|
@@ -2587,6 +2789,7 @@ var MailboxesGroup = class extends HttpApiGroup.make("Mailboxes").add(HttpApiEnd
|
|
|
2587
2789
|
query: MailboxesListOrganizationDraftsQuery,
|
|
2588
2790
|
success: MailboxesListOrganizationDrafts200,
|
|
2589
2791
|
error: [
|
|
2792
|
+
MailboxesListOrganizationDrafts400.pipe(HttpApiSchema.status(400)),
|
|
2590
2793
|
MailboxesListOrganizationDrafts401.pipe(HttpApiSchema.status(401)),
|
|
2591
2794
|
MailboxesListOrganizationDrafts403.pipe(HttpApiSchema.status(403)),
|
|
2592
2795
|
MailboxesListOrganizationDrafts404.pipe(HttpApiSchema.status(404)),
|
|
@@ -2598,16 +2801,18 @@ var MailboxesGroup = class extends HttpApiGroup.make("Mailboxes").add(HttpApiEnd
|
|
|
2598
2801
|
query: MailboxesGetNeedsYouQuery,
|
|
2599
2802
|
success: MailboxesGetNeedsYou200,
|
|
2600
2803
|
error: [
|
|
2804
|
+
MailboxesGetNeedsYou400.pipe(HttpApiSchema.status(400)),
|
|
2601
2805
|
MailboxesGetNeedsYou401.pipe(HttpApiSchema.status(401)),
|
|
2602
2806
|
MailboxesGetNeedsYou403.pipe(HttpApiSchema.status(403)),
|
|
2603
2807
|
MailboxesGetNeedsYou422.pipe(HttpApiSchema.status(422)),
|
|
2604
2808
|
MailboxesGetNeedsYou500,
|
|
2605
2809
|
MailboxesGetNeedsYou504.pipe(HttpApiSchema.status(504))
|
|
2606
2810
|
]
|
|
2607
|
-
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "mailboxes.getNeedsYou").annotate(OpenApi.Summary, "List mailbox decisions awaiting you").annotate(OpenApi.Description, "Returns held
|
|
2811
|
+
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "mailboxes.getNeedsYou").annotate(OpenApi.Summary, "List mailbox decisions awaiting you").annotate(OpenApi.Description, "Returns held actions this caller can approve and quarantined messages this caller may release across their visible mailboxes. Counts cover all actionable items, independent of the current cursor page. Metadata only; isolated messages, self approvals, and decisions the credential cannot perform are excluded."), HttpApiEndpoint.get("mailboxesListOrganizationThreads", "/v1/mailboxes/threads", {
|
|
2608
2812
|
query: MailboxesListOrganizationThreadsQuery,
|
|
2609
2813
|
success: MailboxesListOrganizationThreads200,
|
|
2610
2814
|
error: [
|
|
2815
|
+
MailboxesListOrganizationThreads400.pipe(HttpApiSchema.status(400)),
|
|
2611
2816
|
MailboxesListOrganizationThreads401.pipe(HttpApiSchema.status(401)),
|
|
2612
2817
|
MailboxesListOrganizationThreads403.pipe(HttpApiSchema.status(403)),
|
|
2613
2818
|
MailboxesListOrganizationThreads404.pipe(HttpApiSchema.status(404)),
|
|
@@ -2615,7 +2820,7 @@ var MailboxesGroup = class extends HttpApiGroup.make("Mailboxes").add(HttpApiEnd
|
|
|
2615
2820
|
MailboxesListOrganizationThreads500,
|
|
2616
2821
|
MailboxesListOrganizationThreads504.pipe(HttpApiSchema.status(504))
|
|
2617
2822
|
]
|
|
2618
|
-
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "mailboxes.listOrganizationThreads").annotate(OpenApi.Summary, "List threads across your mailboxes").annotate(OpenApi.Description, "Lists only threads in mailboxes the caller can read, newest activity first. Repeat mailboxId to narrow the scope; kind selects personal or shared mailboxes. conversation selects the threads of one conversation (the conversationId a thread reports), one per readable mailbox it reached. state=active excludes the caller's Done and shared closed threads; state=done selects the caller's Done plus closed shared threads, without duplicates. Other filters and cursor pagination match the per-mailbox list.")).annotate(OpenApi.Description, "Mailboxes: endpoints, threads, messages, drafts, and governed sends") {};
|
|
2619
|
-
export { Mailbox, MailboxAction, MailboxActionPage, MailboxActionResolution, MailboxAgentActivity, MailboxCopiedAttachment, MailboxDownloadUrl, MailboxDraft, MailboxDraftPage, MailboxDraftState, MailboxDraftSummary, MailboxEndpoint, MailboxEvent, MailboxEventId, MailboxEventPage, MailboxFolderCount, MailboxFolderCountList, MailboxGrant, MailboxGrantId, MailboxGrantPage, MailboxKind, MailboxLabel, MailboxLabelList, MailboxMessage, MailboxMessageAuthentication, MailboxMessagePage, MailboxMessageRecipient, MailboxMessageSender, MailboxMessageSummary, MailboxNeedsYou, MailboxNeedsYouItem, MailboxNonSendAction, MailboxNote, MailboxNoteId, MailboxNotePage, MailboxPage, MailboxPendingAction, MailboxPendingSendReceipt, MailboxPolicy, MailboxPolicyList, MailboxQuarantinePage, MailboxQuarantinedMessage, MailboxSendAction, MailboxSendSnapshot, MailboxStatus, MailboxSummary, MailboxThread, MailboxThreadContentPage, MailboxThreadMailbox, MailboxThreadPage, MailboxThreadParticipant, MailboxThreadSender, MailboxThreadState, MailboxThreadSummary, MailboxToolCall, 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, MailboxesGetNeedsYou200, MailboxesGetNeedsYou401, MailboxesGetNeedsYou403, MailboxesGetNeedsYou422, MailboxesGetNeedsYou500, MailboxesGetNeedsYou504, MailboxesGetNeedsYouQuery, 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, MailboxesListOrganizationDrafts200, MailboxesListOrganizationDrafts401, MailboxesListOrganizationDrafts403, MailboxesListOrganizationDrafts404, MailboxesListOrganizationDrafts422, MailboxesListOrganizationDrafts500, MailboxesListOrganizationDrafts504, MailboxesListOrganizationDraftsQuery, MailboxesListOrganizationThreads200, MailboxesListOrganizationThreads401, MailboxesListOrganizationThreads403, MailboxesListOrganizationThreads404, MailboxesListOrganizationThreads422, MailboxesListOrganizationThreads500, MailboxesListOrganizationThreads504, MailboxesListOrganizationThreadsQuery, 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, OrganizationMailboxDraftPage, OrganizationMailboxDraftSummary, OrganizationMailboxThreadPage, OrganizationMailboxThreadSummary };
|
|
2823
|
+
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "mailboxes.listOrganizationThreads").annotate(OpenApi.Summary, "List threads across your mailboxes").annotate(OpenApi.Description, "Lists only threads in mailboxes the caller can read. With `q`, semantic and keyword search returns the best-matching threads in relevance order, capped across cursor pages. Without `q`, threads use newest activity first. Repeat mailboxId to narrow the scope; kind selects personal or shared mailboxes. conversation selects the threads of one conversation (the conversationId a thread reports), one per readable mailbox it reached. state=active excludes the caller's Done and shared closed threads; state=done selects the caller's Done plus closed shared threads, without duplicates. Other filters and cursor pagination match the per-mailbox list.")).annotate(OpenApi.Description, "Mailboxes: endpoints, threads, messages, drafts, and governed sends") {};
|
|
2824
|
+
export { Mailbox, MailboxAction, MailboxActionPage, MailboxActionResolution, MailboxAgentActivity, MailboxChatDraft, MailboxChatMedia, MailboxChatMessage, MailboxChatMessageTemplate, MailboxChatSendIntent, MailboxChatTemplate, MailboxCopiedAttachment, MailboxDownloadUrl, MailboxDraft, MailboxDraftPage, MailboxDraftState, MailboxDraftSummary, MailboxEmailDraft, MailboxEmailEndpoint, MailboxEmailMessage, MailboxEmailSendSnapshot, MailboxEndpoint, MailboxEvent, MailboxEventId, MailboxEventPage, MailboxFolderCount, MailboxFolderCountList, MailboxGrant, MailboxGrantId, MailboxGrantPage, MailboxKind, MailboxLabel, MailboxLabelList, MailboxMessage, MailboxMessageAuthentication, MailboxMessagePage, MailboxMessageRecipient, MailboxMessageSender, MailboxMessageSummary, MailboxNeedsYou, MailboxNeedsYouItem, MailboxNonSendAction, MailboxNote, MailboxNoteId, MailboxNotePage, MailboxPage, MailboxPendingAction, MailboxPendingSendReceipt, MailboxQuarantinePage, MailboxQuarantinedMessage, MailboxSendAction, MailboxSendSnapshot, MailboxSmsEndpoint, MailboxSmsEndpointBinding, MailboxStatus, MailboxSummary, MailboxThread, MailboxThreadContentPage, MailboxThreadMailbox, MailboxThreadPage, MailboxThreadParticipant, MailboxThreadSender, MailboxThreadState, MailboxThreadSummary, MailboxToolCall, MailboxWhatsAppEndpoint, MailboxWhatsAppEndpointBinding, MailboxWhatsAppServiceWindow, MailboxesAddThreadLabels200, MailboxesAddThreadLabels400, MailboxesAddThreadLabels401, MailboxesAddThreadLabels403, MailboxesAddThreadLabels404, MailboxesAddThreadLabels422, MailboxesAddThreadLabels500, MailboxesAddThreadLabels504, MailboxesAddThreadLabelsPathParams, MailboxesAddThreadLabelsRequestJson, MailboxesApproveAction200, MailboxesApproveAction202, MailboxesApproveAction400, MailboxesApproveAction401, MailboxesApproveAction402, MailboxesApproveAction403, MailboxesApproveAction404, MailboxesApproveAction409, MailboxesApproveAction422, MailboxesApproveAction429, MailboxesApproveAction500, MailboxesApproveAction502, MailboxesApproveAction503, MailboxesApproveAction504, MailboxesApproveActionPathParams, MailboxesApproveActionRequestJson, MailboxesCancelAction200, MailboxesCancelAction202, MailboxesCancelAction400, MailboxesCancelAction401, MailboxesCancelAction402, MailboxesCancelAction403, MailboxesCancelAction404, MailboxesCancelAction409, MailboxesCancelAction422, MailboxesCancelAction429, MailboxesCancelAction500, MailboxesCancelAction502, MailboxesCancelAction503, MailboxesCancelAction504, MailboxesCancelActionPathParams, MailboxesCopyMessageAttachment201, MailboxesCopyMessageAttachment400, MailboxesCopyMessageAttachment401, MailboxesCopyMessageAttachment403, MailboxesCopyMessageAttachment404, MailboxesCopyMessageAttachment409, MailboxesCopyMessageAttachment422, MailboxesCopyMessageAttachment500, MailboxesCopyMessageAttachment504, MailboxesCopyMessageAttachmentPathParams, MailboxesCreate201, MailboxesCreate400, MailboxesCreate401, MailboxesCreate402, MailboxesCreate403, MailboxesCreate404, MailboxesCreate409, MailboxesCreate422, MailboxesCreate500, MailboxesCreate502, MailboxesCreate504, MailboxesCreateDraft201, MailboxesCreateDraft400, MailboxesCreateDraft401, MailboxesCreateDraft403, MailboxesCreateDraft404, MailboxesCreateDraft422, MailboxesCreateDraft500, MailboxesCreateDraft504, MailboxesCreateDraftPathParams, MailboxesCreateDraftRequestJson, MailboxesCreateEndpoint201, MailboxesCreateEndpoint400, MailboxesCreateEndpoint401, MailboxesCreateEndpoint403, MailboxesCreateEndpoint404, MailboxesCreateEndpoint409, MailboxesCreateEndpoint422, MailboxesCreateEndpoint500, MailboxesCreateEndpoint504, MailboxesCreateEndpointPathParams, MailboxesCreateEndpointRequestJson, MailboxesCreateGrant201, MailboxesCreateGrant400, MailboxesCreateGrant401, MailboxesCreateGrant403, MailboxesCreateGrant404, MailboxesCreateGrant409, MailboxesCreateGrant422, MailboxesCreateGrant500, MailboxesCreateGrant504, MailboxesCreateGrantPathParams, MailboxesCreateGrantRequestJson, MailboxesCreateHeaders, MailboxesCreateLabel201, MailboxesCreateLabel400, MailboxesCreateLabel401, MailboxesCreateLabel403, MailboxesCreateLabel404, MailboxesCreateLabel409, MailboxesCreateLabel422, MailboxesCreateLabel500, MailboxesCreateLabel504, MailboxesCreateLabelPathParams, MailboxesCreateLabelRequestJson, MailboxesCreateNote201, MailboxesCreateNote400, MailboxesCreateNote401, MailboxesCreateNote403, MailboxesCreateNote404, MailboxesCreateNote422, MailboxesCreateNote500, MailboxesCreateNote504, MailboxesCreateNotePathParams, MailboxesCreateNoteRequestJson, MailboxesCreateRequestJson, MailboxesDeleteDraft200, MailboxesDeleteDraft400, MailboxesDeleteDraft401, MailboxesDeleteDraft403, MailboxesDeleteDraft404, MailboxesDeleteDraft422, MailboxesDeleteDraft500, MailboxesDeleteDraft504, MailboxesDeleteDraftPathParams, MailboxesDeleteLabel200, MailboxesDeleteLabel400, MailboxesDeleteLabel401, MailboxesDeleteLabel403, MailboxesDeleteLabel404, MailboxesDeleteLabel422, MailboxesDeleteLabel500, MailboxesDeleteLabel504, MailboxesDeleteLabelPathParams, MailboxesDeleteNote200, MailboxesDeleteNote400, MailboxesDeleteNote401, MailboxesDeleteNote403, MailboxesDeleteNote404, MailboxesDeleteNote422, MailboxesDeleteNote500, MailboxesDeleteNote504, MailboxesDeleteNotePathParams, MailboxesDenyAction200, MailboxesDenyAction400, MailboxesDenyAction401, MailboxesDenyAction403, MailboxesDenyAction404, MailboxesDenyAction409, MailboxesDenyAction422, MailboxesDenyAction500, MailboxesDenyAction504, MailboxesDenyActionPathParams, MailboxesDenyActionRequestJson, MailboxesDiscardMessage200, MailboxesDiscardMessage400, MailboxesDiscardMessage401, MailboxesDiscardMessage403, MailboxesDiscardMessage404, MailboxesDiscardMessage409, MailboxesDiscardMessage422, MailboxesDiscardMessage500, MailboxesDiscardMessage502, MailboxesDiscardMessage504, MailboxesDiscardMessagePathParams, MailboxesForward200, MailboxesForward202, MailboxesForward400, MailboxesForward401, MailboxesForward402, MailboxesForward403, MailboxesForward404, MailboxesForward409, MailboxesForward422, MailboxesForward429, MailboxesForward500, MailboxesForward502, MailboxesForward503, MailboxesForward504, MailboxesForwardHeaders, MailboxesForwardPathParams, MailboxesForwardRequestJson, MailboxesGet200, MailboxesGet400, MailboxesGet401, MailboxesGet403, MailboxesGet404, MailboxesGet422, MailboxesGet500, MailboxesGet504, MailboxesGetAction200, MailboxesGetAction400, MailboxesGetAction401, MailboxesGetAction403, MailboxesGetAction404, MailboxesGetAction422, MailboxesGetAction500, MailboxesGetAction504, MailboxesGetActionPathParams, MailboxesGetAgentActivity200, MailboxesGetAgentActivity400, MailboxesGetAgentActivity401, MailboxesGetAgentActivity403, MailboxesGetAgentActivity404, MailboxesGetAgentActivity422, MailboxesGetAgentActivity500, MailboxesGetAgentActivity504, MailboxesGetAgentActivityPathParams, MailboxesGetAgentActivityQuery, MailboxesGetDraft200, MailboxesGetDraft400, MailboxesGetDraft401, MailboxesGetDraft403, MailboxesGetDraft404, MailboxesGetDraft422, MailboxesGetDraft500, MailboxesGetDraft504, MailboxesGetDraftPathParams, MailboxesGetMessage200, MailboxesGetMessage400, MailboxesGetMessage401, MailboxesGetMessage403, MailboxesGetMessage404, MailboxesGetMessage422, MailboxesGetMessage500, MailboxesGetMessage504, MailboxesGetMessageAttachment200, MailboxesGetMessageAttachment400, MailboxesGetMessageAttachment401, MailboxesGetMessageAttachment403, MailboxesGetMessageAttachment404, MailboxesGetMessageAttachment422, MailboxesGetMessageAttachment500, MailboxesGetMessageAttachment504, MailboxesGetMessageAttachmentPathParams, MailboxesGetMessagePathParams, MailboxesGetMessageRaw200, MailboxesGetMessageRaw400, MailboxesGetMessageRaw401, MailboxesGetMessageRaw403, MailboxesGetMessageRaw404, MailboxesGetMessageRaw422, MailboxesGetMessageRaw500, MailboxesGetMessageRaw504, MailboxesGetMessageRawPathParams, MailboxesGetNeedsYou200, MailboxesGetNeedsYou400, MailboxesGetNeedsYou401, MailboxesGetNeedsYou403, MailboxesGetNeedsYou422, MailboxesGetNeedsYou500, MailboxesGetNeedsYou504, MailboxesGetNeedsYouQuery, MailboxesGetPathParams, MailboxesGetThread200, MailboxesGetThread400, MailboxesGetThread401, MailboxesGetThread403, MailboxesGetThread404, MailboxesGetThread422, MailboxesGetThread500, MailboxesGetThread504, MailboxesGetThreadContent200, MailboxesGetThreadContent400, MailboxesGetThreadContent401, MailboxesGetThreadContent403, MailboxesGetThreadContent404, MailboxesGetThreadContent422, MailboxesGetThreadContent500, MailboxesGetThreadContent504, MailboxesGetThreadContentPathParams, MailboxesGetThreadContentQuery, MailboxesGetThreadPathParams, MailboxesGroup, MailboxesList200, MailboxesList400, MailboxesList401, MailboxesList403, MailboxesList422, MailboxesList500, MailboxesList504, MailboxesListActions200, MailboxesListActions400, MailboxesListActions401, MailboxesListActions403, MailboxesListActions404, MailboxesListActions422, MailboxesListActions500, MailboxesListActions504, MailboxesListActionsPathParams, MailboxesListActionsQuery, MailboxesListDrafts200, MailboxesListDrafts400, MailboxesListDrafts401, MailboxesListDrafts403, MailboxesListDrafts404, MailboxesListDrafts422, MailboxesListDrafts500, MailboxesListDrafts504, MailboxesListDraftsPathParams, MailboxesListDraftsQuery, MailboxesListEvents200, MailboxesListEvents400, MailboxesListEvents401, MailboxesListEvents403, MailboxesListEvents404, MailboxesListEvents422, MailboxesListEvents500, MailboxesListEvents504, MailboxesListEventsPathParams, MailboxesListEventsQuery, MailboxesListFolders200, MailboxesListFolders400, MailboxesListFolders401, MailboxesListFolders403, MailboxesListFolders404, MailboxesListFolders422, MailboxesListFolders500, MailboxesListFolders504, MailboxesListFoldersPathParams, MailboxesListGrants200, MailboxesListGrants400, MailboxesListGrants401, MailboxesListGrants403, MailboxesListGrants404, MailboxesListGrants422, MailboxesListGrants500, MailboxesListGrants504, MailboxesListGrantsPathParams, MailboxesListGrantsQuery, MailboxesListLabels200, MailboxesListLabels400, MailboxesListLabels401, MailboxesListLabels403, MailboxesListLabels404, MailboxesListLabels422, MailboxesListLabels500, MailboxesListLabels504, MailboxesListLabelsPathParams, MailboxesListOrganizationDrafts200, MailboxesListOrganizationDrafts400, MailboxesListOrganizationDrafts401, MailboxesListOrganizationDrafts403, MailboxesListOrganizationDrafts404, MailboxesListOrganizationDrafts422, MailboxesListOrganizationDrafts500, MailboxesListOrganizationDrafts504, MailboxesListOrganizationDraftsQuery, MailboxesListOrganizationThreads200, MailboxesListOrganizationThreads400, MailboxesListOrganizationThreads401, MailboxesListOrganizationThreads403, MailboxesListOrganizationThreads404, MailboxesListOrganizationThreads422, MailboxesListOrganizationThreads500, MailboxesListOrganizationThreads504, MailboxesListOrganizationThreadsQuery, MailboxesListQuarantine200, MailboxesListQuarantine400, MailboxesListQuarantine401, MailboxesListQuarantine403, MailboxesListQuarantine404, MailboxesListQuarantine422, MailboxesListQuarantine500, MailboxesListQuarantine504, MailboxesListQuarantinePathParams, MailboxesListQuarantineQuery, MailboxesListQuery, MailboxesListThreadMessages200, MailboxesListThreadMessages400, MailboxesListThreadMessages401, MailboxesListThreadMessages403, MailboxesListThreadMessages404, MailboxesListThreadMessages422, MailboxesListThreadMessages500, MailboxesListThreadMessages504, MailboxesListThreadMessagesPathParams, MailboxesListThreadMessagesQuery, MailboxesListThreadNotes200, MailboxesListThreadNotes400, MailboxesListThreadNotes401, MailboxesListThreadNotes403, MailboxesListThreadNotes404, MailboxesListThreadNotes422, MailboxesListThreadNotes500, MailboxesListThreadNotes504, MailboxesListThreadNotesPathParams, MailboxesListThreadNotesQuery, MailboxesListThreads200, MailboxesListThreads400, MailboxesListThreads401, MailboxesListThreads403, MailboxesListThreads404, MailboxesListThreads422, MailboxesListThreads500, MailboxesListThreads504, MailboxesListThreadsPathParams, MailboxesListThreadsQuery, MailboxesPause200, MailboxesPause400, MailboxesPause401, MailboxesPause403, MailboxesPause404, MailboxesPause422, MailboxesPause500, MailboxesPause504, MailboxesPausePathParams, MailboxesReleaseMessage200, MailboxesReleaseMessage400, MailboxesReleaseMessage401, MailboxesReleaseMessage403, MailboxesReleaseMessage404, MailboxesReleaseMessage409, MailboxesReleaseMessage422, MailboxesReleaseMessage500, MailboxesReleaseMessage504, MailboxesReleaseMessagePathParams, MailboxesRemove200, MailboxesRemove400, MailboxesRemove401, MailboxesRemove403, MailboxesRemove404, MailboxesRemove422, MailboxesRemove500, MailboxesRemove502, MailboxesRemove504, MailboxesRemoveEndpoint200, MailboxesRemoveEndpoint400, MailboxesRemoveEndpoint401, MailboxesRemoveEndpoint403, MailboxesRemoveEndpoint404, MailboxesRemoveEndpoint422, MailboxesRemoveEndpoint500, MailboxesRemoveEndpoint504, MailboxesRemoveEndpointPathParams, MailboxesRemovePathParams, MailboxesRemoveThreadLabels200, MailboxesRemoveThreadLabels400, MailboxesRemoveThreadLabels401, MailboxesRemoveThreadLabels403, MailboxesRemoveThreadLabels404, MailboxesRemoveThreadLabels422, MailboxesRemoveThreadLabels500, MailboxesRemoveThreadLabels504, MailboxesRemoveThreadLabelsPathParams, MailboxesRemoveThreadLabelsRequestJson, MailboxesReply200, MailboxesReply202, MailboxesReply400, MailboxesReply401, MailboxesReply402, MailboxesReply403, MailboxesReply404, MailboxesReply409, MailboxesReply422, MailboxesReply429, MailboxesReply500, MailboxesReply502, MailboxesReply503, MailboxesReply504, MailboxesReplyAll200, MailboxesReplyAll202, MailboxesReplyAll400, MailboxesReplyAll401, MailboxesReplyAll402, MailboxesReplyAll403, MailboxesReplyAll404, MailboxesReplyAll409, MailboxesReplyAll422, MailboxesReplyAll429, MailboxesReplyAll500, MailboxesReplyAll502, MailboxesReplyAll503, MailboxesReplyAll504, MailboxesReplyAllHeaders, MailboxesReplyAllPathParams, MailboxesReplyAllRequestJson, MailboxesReplyHeaders, MailboxesReplyPathParams, MailboxesReplyRequestJson, MailboxesResume200, MailboxesResume400, MailboxesResume401, MailboxesResume403, MailboxesResume404, MailboxesResume422, MailboxesResume500, MailboxesResume504, MailboxesResumePathParams, MailboxesRetryAction200, MailboxesRetryAction202, MailboxesRetryAction400, MailboxesRetryAction401, MailboxesRetryAction402, MailboxesRetryAction403, MailboxesRetryAction404, MailboxesRetryAction409, MailboxesRetryAction422, MailboxesRetryAction429, MailboxesRetryAction500, MailboxesRetryAction502, MailboxesRetryAction503, MailboxesRetryAction504, MailboxesRetryActionPathParams, MailboxesRevokeGrant200, MailboxesRevokeGrant400, MailboxesRevokeGrant401, MailboxesRevokeGrant403, MailboxesRevokeGrant404, MailboxesRevokeGrant409, MailboxesRevokeGrant422, MailboxesRevokeGrant500, MailboxesRevokeGrant504, MailboxesRevokeGrantPathParams, MailboxesSendDraft200, MailboxesSendDraft202, MailboxesSendDraft400, MailboxesSendDraft401, MailboxesSendDraft402, MailboxesSendDraft403, MailboxesSendDraft404, MailboxesSendDraft409, MailboxesSendDraft422, MailboxesSendDraft429, MailboxesSendDraft500, MailboxesSendDraft502, MailboxesSendDraft503, MailboxesSendDraft504, MailboxesSendDraftHeaders, MailboxesSendDraftPathParams, MailboxesSendMessage200, MailboxesSendMessage202, MailboxesSendMessage400, MailboxesSendMessage401, MailboxesSendMessage402, MailboxesSendMessage403, MailboxesSendMessage404, MailboxesSendMessage409, MailboxesSendMessage422, MailboxesSendMessage429, MailboxesSendMessage500, MailboxesSendMessage502, MailboxesSendMessage503, MailboxesSendMessage504, MailboxesSendMessageHeaders, MailboxesSendMessagePathParams, MailboxesSendMessageRequestJson, MailboxesUpdate200, MailboxesUpdate400, MailboxesUpdate401, MailboxesUpdate403, MailboxesUpdate404, MailboxesUpdate422, MailboxesUpdate500, MailboxesUpdate504, MailboxesUpdateDraft200, MailboxesUpdateDraft400, MailboxesUpdateDraft401, MailboxesUpdateDraft403, MailboxesUpdateDraft404, MailboxesUpdateDraft409, MailboxesUpdateDraft422, MailboxesUpdateDraft500, MailboxesUpdateDraft504, MailboxesUpdateDraftPathParams, MailboxesUpdateDraftRequestJson, MailboxesUpdateEndpoint200, MailboxesUpdateEndpoint400, MailboxesUpdateEndpoint401, MailboxesUpdateEndpoint403, MailboxesUpdateEndpoint404, MailboxesUpdateEndpoint422, MailboxesUpdateEndpoint500, MailboxesUpdateEndpoint504, MailboxesUpdateEndpointPathParams, MailboxesUpdateEndpointRequestJson, MailboxesUpdateGrant200, MailboxesUpdateGrant400, MailboxesUpdateGrant401, MailboxesUpdateGrant403, MailboxesUpdateGrant404, MailboxesUpdateGrant409, MailboxesUpdateGrant422, MailboxesUpdateGrant500, MailboxesUpdateGrant504, MailboxesUpdateGrantPathParams, MailboxesUpdateGrantRequestJson, MailboxesUpdateLabel200, MailboxesUpdateLabel400, MailboxesUpdateLabel401, MailboxesUpdateLabel403, MailboxesUpdateLabel404, MailboxesUpdateLabel422, MailboxesUpdateLabel500, MailboxesUpdateLabel504, MailboxesUpdateLabelPathParams, MailboxesUpdateLabelRequestJson, MailboxesUpdateNote200, MailboxesUpdateNote400, MailboxesUpdateNote401, MailboxesUpdateNote403, MailboxesUpdateNote404, MailboxesUpdateNote422, MailboxesUpdateNote500, MailboxesUpdateNote504, MailboxesUpdateNotePathParams, MailboxesUpdateNoteRequestJson, MailboxesUpdatePathParams, MailboxesUpdateRequestJson, MailboxesUpdateThread200, MailboxesUpdateThread400, MailboxesUpdateThread401, MailboxesUpdateThread403, MailboxesUpdateThread404, MailboxesUpdateThread422, MailboxesUpdateThread500, MailboxesUpdateThread504, MailboxesUpdateThreadPathParams, MailboxesUpdateThreadRequestJson, OrganizationMailboxDraftPage, OrganizationMailboxDraftSummary, OrganizationMailboxThreadPage, OrganizationMailboxThreadSummary, PolicyAction, PolicyDecision, SmsPhoneNumberId, TemplateChannelVariantId };
|
|
2620
2825
|
|
|
2621
2826
|
//# sourceMappingURL=mailboxes.js.map
|