samva 0.28.1 → 0.29.1
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 +8 -0
- package/README.md +1 -1
- package/dist/client/sdk.gen.d.ts +156 -1
- package/dist/client/sdk.gen.js +475 -1
- package/dist/client/types.gen.d.ts +1653 -183
- package/dist/effect/campaigns.d.ts +32 -0
- package/dist/effect/generated/agents.js +36 -36
- package/dist/effect/generated/analytics.js +24 -24
- package/dist/effect/generated/api-keys.js +29 -29
- package/dist/effect/generated/attachments.js +13 -13
- package/dist/effect/generated/brands.js +13 -13
- package/dist/effect/generated/campaigns.d.ts +178 -60
- package/dist/effect/generated/campaigns.js +92 -104
- package/dist/effect/generated/contact-events.js +5 -5
- package/dist/effect/generated/contact-groups.js +38 -38
- package/dist/effect/generated/contacts.js +93 -93
- package/dist/effect/generated/conversations.js +38 -38
- package/dist/effect/generated/custom-fields.js +15 -15
- package/dist/effect/generated/email.js +225 -225
- package/dist/effect/generated/events.js +5 -5
- package/dist/effect/generated/extension-installations.js +35 -35
- package/dist/effect/generated/extensions.js +24 -24
- package/dist/effect/generated/feedback.js +6 -6
- package/dist/effect/generated/index.d.ts +5 -1
- package/dist/effect/generated/journeys.js +67 -67
- package/dist/effect/generated/mailboxes.js +286 -286
- package/dist/effect/generated/media.js +16 -16
- package/dist/effect/generated/messages.js +65 -65
- package/dist/effect/generated/namespaces.js +27 -27
- package/dist/effect/generated/operations.js +6 -6
- package/dist/effect/generated/organizations.js +19 -19
- package/dist/effect/generated/publication-domains.d.ts +548 -0
- package/dist/effect/generated/publication-domains.js +163 -0
- package/dist/effect/generated/scheduled-messages.js +25 -25
- package/dist/effect/generated/shared.d.ts +142 -30
- package/dist/effect/generated/shared.js +356 -328
- package/dist/effect/generated/subscriptions.js +10 -10
- package/dist/effect/generated/templates.d.ts +172 -15
- package/dist/effect/generated/templates.js +207 -162
- package/dist/effect/generated/topic-forms.js +21 -21
- package/dist/effect/generated/topic-issues.d.ts +2995 -0
- package/dist/effect/generated/topic-issues.js +985 -0
- package/dist/effect/generated/topics.d.ts +61 -1
- package/dist/effect/generated/topics.js +39 -31
- package/dist/effect/generated/webhooks.js +50 -50
- package/dist/effect/generated/whoami.js +10 -10
- package/dist/effect/generated-metadata.d.ts +70 -0
- package/dist/effect/generated-metadata.js +57 -13
- package/dist/effect/index.d.ts +2 -0
- package/dist/effect/index.js +3 -1
- package/dist/effect/journeys.d.ts +112 -112
- package/dist/effect/mailboxes.d.ts +78 -78
- package/dist/effect/publication-domains.d.ts +14 -0
- package/dist/effect/publication-domains.js +17 -0
- package/dist/effect/topic-issues.d.ts +57 -0
- package/dist/effect/topic-issues.js +33 -0
- package/dist/effect/topics.d.ts +6 -2
- package/dist/package.js +1 -1
- package/dist/promises/index.d.ts +5 -1
- package/dist/promises/index.js +5 -1
- package/dist/promises/types.gen.d.ts +1 -1
- package/dist/service-map.d.ts +74 -0
- package/dist/service-map.js +56 -0
- package/package.json +16 -8
|
@@ -2,8 +2,8 @@ import { ApiKeySecurityMiddleware, AttachmentId, BillingProviderError, CampaignI
|
|
|
2
2
|
import { HttpApiEndpoint, HttpApiGroup, HttpApiSchema, OpenApi } from "effect/http-api";
|
|
3
3
|
import * as Schema from "effect/Schema";
|
|
4
4
|
//#region src/effect/generated/mailboxes.ts
|
|
5
|
-
const MailboxStatus = /* @__PURE__ */ Schema.Union([Schema.Literal("active"), Schema.Literal("paused")]).annotate({ identifier: "MailboxStatus" });
|
|
6
|
-
const MailboxActionResolution = /* @__PURE__ */ Schema.Struct({
|
|
5
|
+
const MailboxStatus = /* @__PURE__ */ (() => Schema.Union([Schema.Literal("active"), Schema.Literal("paused")]).annotate({ identifier: "MailboxStatus" }))();
|
|
6
|
+
const MailboxActionResolution = /* @__PURE__ */ (() => Schema.Struct({
|
|
7
7
|
outcome: Schema.Union([
|
|
8
8
|
Schema.Literal("approved"),
|
|
9
9
|
Schema.Literal("denied"),
|
|
@@ -34,13 +34,13 @@ const MailboxActionResolution = /* @__PURE__ */ Schema.Struct({
|
|
|
34
34
|
}).annotate({
|
|
35
35
|
description: "How the action's approval ended.",
|
|
36
36
|
identifier: "MailboxActionResolution"
|
|
37
|
-
});
|
|
38
|
-
const MailboxToolCall = /* @__PURE__ */ Schema.Struct({
|
|
37
|
+
}))();
|
|
38
|
+
const MailboxToolCall = /* @__PURE__ */ (() => Schema.Struct({
|
|
39
39
|
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" })),
|
|
40
40
|
argumentsHash: Schema.String.check(Schema.isPattern(/* @__PURE__ */ new RegExp("^[0-9a-f]{64}$", "u")).annotate({ expected: "a string matching the RegExp ^[0-9a-f]{64}$" })),
|
|
41
41
|
arguments: Schema.Record(Schema.String, JsonValue)
|
|
42
|
-
}).annotate({ identifier: "MailboxToolCall" });
|
|
43
|
-
const MailboxAgentActivity = /* @__PURE__ */ Schema.Struct({
|
|
42
|
+
}).annotate({ identifier: "MailboxToolCall" }))();
|
|
43
|
+
const MailboxAgentActivity = /* @__PURE__ */ (() => Schema.Struct({
|
|
44
44
|
actions: Schema.Struct({
|
|
45
45
|
byType: Schema.Array(Schema.Struct({
|
|
46
46
|
type: Schema.Union([
|
|
@@ -96,21 +96,21 @@ const MailboxAgentActivity = /* @__PURE__ */ Schema.Struct({
|
|
|
96
96
|
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" }))
|
|
97
97
|
})) }),
|
|
98
98
|
pendingApprovals: 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" }))
|
|
99
|
-
}).annotate({ identifier: "MailboxAgentActivity" });
|
|
100
|
-
const MailboxDraftState = /* @__PURE__ */ Schema.Union([
|
|
99
|
+
}).annotate({ identifier: "MailboxAgentActivity" }))();
|
|
100
|
+
const MailboxDraftState = /* @__PURE__ */ (() => Schema.Union([
|
|
101
101
|
Schema.Literal("saved"),
|
|
102
102
|
Schema.Literal("locked"),
|
|
103
103
|
Schema.Literal("sent")
|
|
104
|
-
]).annotate({ identifier: "MailboxDraftState" });
|
|
105
|
-
const MailboxEventId = /* @__PURE__ */ Schema.String.check(Schema.isPattern(/* @__PURE__ */ new RegExp("^mbxevt_[0-9a-hjkmnp-tv-z]{16,24}$", "u")).annotate({
|
|
104
|
+
]).annotate({ identifier: "MailboxDraftState" }))();
|
|
105
|
+
const MailboxEventId = /* @__PURE__ */ (() => Schema.String.check(Schema.isPattern(/* @__PURE__ */ new RegExp("^mbxevt_[0-9a-hjkmnp-tv-z]{16,24}$", "u")).annotate({
|
|
106
106
|
expected: "a string matching the RegExp ^mbxevt_[0-9a-hjkmnp-tv-z]{16,24}$",
|
|
107
107
|
identifier: "MailboxEventId"
|
|
108
|
-
})).pipe(Schema.brand("MailboxEventId"));
|
|
109
|
-
const MailboxGrantId = /* @__PURE__ */ Schema.String.check(Schema.isPattern(/* @__PURE__ */ new RegExp("^mbxacl_[0-9a-hjkmnp-tv-z]{16,24}$", "u")).annotate({
|
|
108
|
+
})).pipe(Schema.brand("MailboxEventId")))();
|
|
109
|
+
const MailboxGrantId = /* @__PURE__ */ (() => Schema.String.check(Schema.isPattern(/* @__PURE__ */ new RegExp("^mbxacl_[0-9a-hjkmnp-tv-z]{16,24}$", "u")).annotate({
|
|
110
110
|
expected: "a string matching the RegExp ^mbxacl_[0-9a-hjkmnp-tv-z]{16,24}$",
|
|
111
111
|
identifier: "MailboxGrantId"
|
|
112
|
-
})).pipe(Schema.brand("MailboxGrantId"));
|
|
113
|
-
const MailboxMessageSender = /* @__PURE__ */ Schema.Struct({
|
|
112
|
+
})).pipe(Schema.brand("MailboxGrantId")))();
|
|
113
|
+
const MailboxMessageSender = /* @__PURE__ */ (() => Schema.Struct({
|
|
114
114
|
actor: Schema.optionalKey(Schema.Union([Schema.Struct({
|
|
115
115
|
kind: Schema.Union([
|
|
116
116
|
Schema.Literal("user"),
|
|
@@ -125,8 +125,8 @@ const MailboxMessageSender = /* @__PURE__ */ Schema.Struct({
|
|
|
125
125
|
}), Schema.Null])),
|
|
126
126
|
displayName: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
|
|
127
127
|
address: Schema.String
|
|
128
|
-
}).annotate({ identifier: "MailboxMessageSender" });
|
|
129
|
-
const MailboxMessageRecipient = /* @__PURE__ */ Schema.Struct({
|
|
128
|
+
}).annotate({ identifier: "MailboxMessageSender" }))();
|
|
129
|
+
const MailboxMessageRecipient = /* @__PURE__ */ (() => Schema.Struct({
|
|
130
130
|
kind: Schema.Union([
|
|
131
131
|
Schema.Literal("to"),
|
|
132
132
|
Schema.Literal("cc"),
|
|
@@ -146,21 +146,21 @@ const MailboxMessageRecipient = /* @__PURE__ */ Schema.Struct({
|
|
|
146
146
|
}), Schema.Null])),
|
|
147
147
|
displayName: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
|
|
148
148
|
address: Schema.String
|
|
149
|
-
}).annotate({ identifier: "MailboxMessageRecipient" });
|
|
150
|
-
const MailboxMessageAuthentication = /* @__PURE__ */ Schema.Struct({
|
|
149
|
+
}).annotate({ identifier: "MailboxMessageRecipient" }))();
|
|
150
|
+
const MailboxMessageAuthentication = /* @__PURE__ */ (() => Schema.Struct({
|
|
151
151
|
spf: Schema.Union([Schema.String, Schema.Null]),
|
|
152
152
|
dkim: Schema.Union([Schema.String, Schema.Null]),
|
|
153
153
|
dmarc: Schema.Union([Schema.String, Schema.Null])
|
|
154
|
-
}).annotate({ identifier: "MailboxMessageAuthentication" });
|
|
155
|
-
const MailboxDownloadUrl = /* @__PURE__ */ Schema.Struct({
|
|
154
|
+
}).annotate({ identifier: "MailboxMessageAuthentication" }))();
|
|
155
|
+
const MailboxDownloadUrl = /* @__PURE__ */ (() => Schema.Struct({
|
|
156
156
|
url: Schema.String,
|
|
157
157
|
expiresAt: Schema.String
|
|
158
|
-
}).annotate({ identifier: "MailboxDownloadUrl" });
|
|
159
|
-
const MailboxThreadSender = /* @__PURE__ */ Schema.Struct({
|
|
158
|
+
}).annotate({ identifier: "MailboxDownloadUrl" }))();
|
|
159
|
+
const MailboxThreadSender = /* @__PURE__ */ (() => Schema.Struct({
|
|
160
160
|
address: Schema.Union([Schema.String, Schema.Null]),
|
|
161
161
|
displayName: Schema.Union([Schema.String, Schema.Null])
|
|
162
|
-
}).annotate({ identifier: "MailboxThreadSender" });
|
|
163
|
-
const MailboxThreadParticipant = /* @__PURE__ */ Schema.Struct({
|
|
162
|
+
}).annotate({ identifier: "MailboxThreadSender" }))();
|
|
163
|
+
const MailboxThreadParticipant = /* @__PURE__ */ (() => Schema.Struct({
|
|
164
164
|
actor: Schema.Struct({
|
|
165
165
|
kind: Schema.Union([
|
|
166
166
|
Schema.Literal("user"),
|
|
@@ -180,12 +180,12 @@ const MailboxThreadParticipant = /* @__PURE__ */ Schema.Struct({
|
|
|
180
180
|
Schema.Literal("observer")
|
|
181
181
|
]),
|
|
182
182
|
address: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null]))
|
|
183
|
-
}).annotate({ identifier: "MailboxThreadParticipant" });
|
|
184
|
-
const MailboxNoteId = /* @__PURE__ */ Schema.String.check(Schema.isPattern(/* @__PURE__ */ new RegExp("^note_[0-9a-hjkmnp-tv-z]{16,24}$", "u")).annotate({
|
|
183
|
+
}).annotate({ identifier: "MailboxThreadParticipant" }))();
|
|
184
|
+
const MailboxNoteId = /* @__PURE__ */ (() => Schema.String.check(Schema.isPattern(/* @__PURE__ */ new RegExp("^note_[0-9a-hjkmnp-tv-z]{16,24}$", "u")).annotate({
|
|
185
185
|
expected: "a string matching the RegExp ^note_[0-9a-hjkmnp-tv-z]{16,24}$",
|
|
186
186
|
identifier: "MailboxNoteId"
|
|
187
|
-
})).pipe(Schema.brand("MailboxNoteId"));
|
|
188
|
-
const MailboxEndpoint = /* @__PURE__ */ Schema.Struct({
|
|
187
|
+
})).pipe(Schema.brand("MailboxNoteId")))();
|
|
188
|
+
const MailboxEndpoint = /* @__PURE__ */ (() => Schema.Struct({
|
|
189
189
|
id: MailboxEndpointId,
|
|
190
190
|
address: Schema.String,
|
|
191
191
|
displayName: Schema.Union([Schema.String, Schema.Null]),
|
|
@@ -193,15 +193,15 @@ const MailboxEndpoint = /* @__PURE__ */ Schema.Struct({
|
|
|
193
193
|
channel: Schema.Literal("email"),
|
|
194
194
|
source: Schema.Union([Schema.Literal("samvaHosted"), Schema.Literal("verifiedDomain")]),
|
|
195
195
|
domainId: Schema.Union([Schema.String, Schema.Null])
|
|
196
|
-
}).annotate({ identifier: "MailboxEndpoint" });
|
|
197
|
-
const MailboxCopiedAttachment = /* @__PURE__ */ Schema.Struct({
|
|
196
|
+
}).annotate({ identifier: "MailboxEndpoint" }))();
|
|
197
|
+
const MailboxCopiedAttachment = /* @__PURE__ */ (() => Schema.Struct({
|
|
198
198
|
filename: Schema.String,
|
|
199
199
|
content: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
|
|
200
200
|
mediaId: Schema.optionalKey(Schema.Union([MediaId, Schema.Null])),
|
|
201
201
|
contentType: Schema.String,
|
|
202
202
|
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" }))
|
|
203
|
-
}).annotate({ identifier: "MailboxCopiedAttachment" });
|
|
204
|
-
const MailboxSummary = /* @__PURE__ */ Schema.Struct({
|
|
203
|
+
}).annotate({ identifier: "MailboxCopiedAttachment" }))();
|
|
204
|
+
const MailboxSummary = /* @__PURE__ */ (() => Schema.Struct({
|
|
205
205
|
id: MailboxId,
|
|
206
206
|
namespaceId: Schema.Union([NamespaceId, Schema.Null]),
|
|
207
207
|
slug: Schema.String,
|
|
@@ -209,8 +209,8 @@ const MailboxSummary = /* @__PURE__ */ Schema.Struct({
|
|
|
209
209
|
status: MailboxStatus,
|
|
210
210
|
primaryAddress: Schema.Union([Schema.String, Schema.Null]),
|
|
211
211
|
createdAt: Schema.String
|
|
212
|
-
}).annotate({ identifier: "MailboxSummary" });
|
|
213
|
-
const MailboxQuarantinedMessage = /* @__PURE__ */ Schema.Struct({
|
|
212
|
+
}).annotate({ identifier: "MailboxSummary" }))();
|
|
213
|
+
const MailboxQuarantinedMessage = /* @__PURE__ */ (() => Schema.Struct({
|
|
214
214
|
id: MessageId,
|
|
215
215
|
disposition: Schema.Union([Schema.Literal("quarantined"), Schema.Literal("isolated")]),
|
|
216
216
|
reason: Schema.Union([
|
|
@@ -233,8 +233,8 @@ const MailboxQuarantinedMessage = /* @__PURE__ */ Schema.Struct({
|
|
|
233
233
|
releasedAt: Schema.Union([Schema.String, Schema.Null]),
|
|
234
234
|
threadId: Schema.Union([MailboxThreadId, Schema.Null]),
|
|
235
235
|
discardedAt: Schema.Union([Schema.String, Schema.Null])
|
|
236
|
-
}).annotate({ identifier: "MailboxQuarantinedMessage" });
|
|
237
|
-
const MailboxDraftSummary = /* @__PURE__ */ Schema.Struct({
|
|
236
|
+
}).annotate({ identifier: "MailboxQuarantinedMessage" }))();
|
|
237
|
+
const MailboxDraftSummary = /* @__PURE__ */ (() => Schema.Struct({
|
|
238
238
|
id: MailboxDraftId,
|
|
239
239
|
channel: MailboxChannel,
|
|
240
240
|
threadId: Schema.Union([MailboxThreadId, Schema.Null]),
|
|
@@ -245,8 +245,8 @@ const MailboxDraftSummary = /* @__PURE__ */ Schema.Struct({
|
|
|
245
245
|
subject: Schema.Union([Schema.String, Schema.Null]),
|
|
246
246
|
createdAt: Schema.String,
|
|
247
247
|
updatedAt: Schema.String
|
|
248
|
-
}).annotate({ identifier: "MailboxDraftSummary" });
|
|
249
|
-
const MailboxEvent = /* @__PURE__ */ Schema.Struct({
|
|
248
|
+
}).annotate({ identifier: "MailboxDraftSummary" }))();
|
|
249
|
+
const MailboxEvent = /* @__PURE__ */ (() => Schema.Struct({
|
|
250
250
|
id: MailboxEventId,
|
|
251
251
|
type: Schema.Union([
|
|
252
252
|
Schema.Literal("mailbox.created"),
|
|
@@ -280,13 +280,13 @@ const MailboxEvent = /* @__PURE__ */ Schema.Struct({
|
|
|
280
280
|
}),
|
|
281
281
|
payload: Schema.Record(Schema.String, JsonValue),
|
|
282
282
|
occurredAt: Schema.String
|
|
283
|
-
}).annotate({ identifier: "MailboxEvent" });
|
|
284
|
-
const MailboxFolderCount = /* @__PURE__ */ Schema.Struct({
|
|
283
|
+
}).annotate({ identifier: "MailboxEvent" }))();
|
|
284
|
+
const MailboxFolderCount = /* @__PURE__ */ (() => Schema.Struct({
|
|
285
285
|
folder: MailboxThreadFolder,
|
|
286
286
|
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" })),
|
|
287
287
|
unreadCount: 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" }))
|
|
288
|
-
}).annotate({ identifier: "MailboxFolderCount" });
|
|
289
|
-
const MailboxGrant = /* @__PURE__ */ Schema.Struct({
|
|
288
|
+
}).annotate({ identifier: "MailboxFolderCount" }))();
|
|
289
|
+
const MailboxGrant = /* @__PURE__ */ (() => Schema.Struct({
|
|
290
290
|
id: MailboxGrantId,
|
|
291
291
|
actor: Schema.Struct({
|
|
292
292
|
kind: Schema.Union([
|
|
@@ -316,8 +316,8 @@ const MailboxGrant = /* @__PURE__ */ Schema.Struct({
|
|
|
316
316
|
])),
|
|
317
317
|
sendMode: MailboxSendMode,
|
|
318
318
|
createdAt: Schema.String
|
|
319
|
-
}).annotate({ identifier: "MailboxGrant" });
|
|
320
|
-
const MailboxLabel = /* @__PURE__ */ Schema.Struct({
|
|
319
|
+
}).annotate({ identifier: "MailboxGrant" }))();
|
|
320
|
+
const MailboxLabel = /* @__PURE__ */ (() => Schema.Struct({
|
|
321
321
|
id: MailboxLabelId,
|
|
322
322
|
slug: Schema.String,
|
|
323
323
|
displayName: Schema.String,
|
|
@@ -331,8 +331,8 @@ const MailboxLabel = /* @__PURE__ */ Schema.Struct({
|
|
|
331
331
|
]), Schema.Null]),
|
|
332
332
|
createdAt: Schema.String,
|
|
333
333
|
updatedAt: Schema.String
|
|
334
|
-
}).annotate({ identifier: "MailboxLabel" });
|
|
335
|
-
const MailboxMessageSummary = /* @__PURE__ */ Schema.Struct({
|
|
334
|
+
}).annotate({ identifier: "MailboxLabel" }))();
|
|
335
|
+
const MailboxMessageSummary = /* @__PURE__ */ (() => Schema.Struct({
|
|
336
336
|
id: MessageId,
|
|
337
337
|
campaign: Schema.optionalKey(Schema.Union([Schema.Struct({
|
|
338
338
|
campaignId: CampaignId,
|
|
@@ -346,8 +346,8 @@ const MailboxMessageSummary = /* @__PURE__ */ Schema.Struct({
|
|
|
346
346
|
preview: Schema.Union([Schema.String, Schema.Null]),
|
|
347
347
|
hasAttachments: Schema.Boolean,
|
|
348
348
|
occurredAt: Schema.String
|
|
349
|
-
}).annotate({ identifier: "MailboxMessageSummary" });
|
|
350
|
-
const MailboxMessage = /* @__PURE__ */ Schema.Struct({
|
|
349
|
+
}).annotate({ identifier: "MailboxMessageSummary" }))();
|
|
350
|
+
const MailboxMessage = /* @__PURE__ */ (() => Schema.Struct({
|
|
351
351
|
id: MessageId,
|
|
352
352
|
campaign: Schema.optionalKey(Schema.Union([Schema.Struct({
|
|
353
353
|
campaignId: CampaignId,
|
|
@@ -390,8 +390,8 @@ const MailboxMessage = /* @__PURE__ */ Schema.Struct({
|
|
|
390
390
|
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" })),
|
|
391
391
|
isInline: Schema.Boolean
|
|
392
392
|
}))
|
|
393
|
-
}).annotate({ identifier: "MailboxMessage" });
|
|
394
|
-
const MailboxPolicy = /* @__PURE__ */ Schema.Struct({
|
|
393
|
+
}).annotate({ identifier: "MailboxMessage" }))();
|
|
394
|
+
const MailboxPolicy = /* @__PURE__ */ (() => Schema.Struct({
|
|
395
395
|
id: MailboxPolicyId,
|
|
396
396
|
name: Schema.String,
|
|
397
397
|
outcome: MailboxPolicyOutcomeKind,
|
|
@@ -399,8 +399,8 @@ const MailboxPolicy = /* @__PURE__ */ Schema.Struct({
|
|
|
399
399
|
enabled: Schema.Boolean,
|
|
400
400
|
createdAt: Schema.String,
|
|
401
401
|
updatedAt: Schema.String
|
|
402
|
-
}).annotate({ identifier: "MailboxPolicy" });
|
|
403
|
-
const MailboxThreadSummary = /* @__PURE__ */ Schema.Struct({
|
|
402
|
+
}).annotate({ identifier: "MailboxPolicy" }))();
|
|
403
|
+
const MailboxThreadSummary = /* @__PURE__ */ (() => Schema.Struct({
|
|
404
404
|
id: MailboxThreadId,
|
|
405
405
|
channel: MailboxChannel,
|
|
406
406
|
endpointId: Schema.Union([MailboxEndpointId, Schema.Null]),
|
|
@@ -417,8 +417,8 @@ const MailboxThreadSummary = /* @__PURE__ */ Schema.Struct({
|
|
|
417
417
|
starred: Schema.Boolean,
|
|
418
418
|
snoozedUntil: Schema.Union([Schema.String, Schema.Null]),
|
|
419
419
|
lastActivityAt: Schema.String
|
|
420
|
-
}).annotate({ identifier: "MailboxThreadSummary" });
|
|
421
|
-
const MailboxThreadState = /* @__PURE__ */ Schema.Struct({
|
|
420
|
+
}).annotate({ identifier: "MailboxThreadSummary" }))();
|
|
421
|
+
const MailboxThreadState = /* @__PURE__ */ (() => Schema.Struct({
|
|
422
422
|
id: MailboxThreadId,
|
|
423
423
|
folder: MailboxThreadFolder,
|
|
424
424
|
priority: MailboxThreadPriority,
|
|
@@ -426,8 +426,8 @@ const MailboxThreadState = /* @__PURE__ */ Schema.Struct({
|
|
|
426
426
|
read: Schema.Boolean,
|
|
427
427
|
starred: Schema.Boolean,
|
|
428
428
|
snoozedUntil: Schema.Union([Schema.String, Schema.Null])
|
|
429
|
-
}).annotate({ identifier: "MailboxThreadState" });
|
|
430
|
-
const MailboxThread = /* @__PURE__ */ Schema.Struct({
|
|
429
|
+
}).annotate({ identifier: "MailboxThreadState" }))();
|
|
430
|
+
const MailboxThread = /* @__PURE__ */ (() => Schema.Struct({
|
|
431
431
|
id: MailboxThreadId,
|
|
432
432
|
channel: MailboxChannel,
|
|
433
433
|
endpointId: Schema.Union([MailboxEndpointId, Schema.Null]),
|
|
@@ -447,8 +447,8 @@ const MailboxThread = /* @__PURE__ */ Schema.Struct({
|
|
|
447
447
|
conversationId: ConversationId,
|
|
448
448
|
participants: Schema.Array(MailboxThreadParticipant),
|
|
449
449
|
createdAt: Schema.String
|
|
450
|
-
}).annotate({ identifier: "MailboxThread" });
|
|
451
|
-
const MailboxNote = /* @__PURE__ */ Schema.Struct({
|
|
450
|
+
}).annotate({ identifier: "MailboxThread" }))();
|
|
451
|
+
const MailboxNote = /* @__PURE__ */ (() => Schema.Struct({
|
|
452
452
|
id: MailboxNoteId,
|
|
453
453
|
author: Schema.Struct({
|
|
454
454
|
kind: Schema.Union([
|
|
@@ -467,8 +467,8 @@ const MailboxNote = /* @__PURE__ */ Schema.Struct({
|
|
|
467
467
|
pinned: Schema.Boolean,
|
|
468
468
|
createdAt: Schema.String,
|
|
469
469
|
updatedAt: Schema.String
|
|
470
|
-
}).annotate({ identifier: "MailboxNote" });
|
|
471
|
-
const Mailbox = /* @__PURE__ */ Schema.Struct({
|
|
470
|
+
}).annotate({ identifier: "MailboxNote" }))();
|
|
471
|
+
const Mailbox = /* @__PURE__ */ (() => Schema.Struct({
|
|
472
472
|
id: MailboxId,
|
|
473
473
|
namespaceId: Schema.Union([NamespaceId, Schema.Null]),
|
|
474
474
|
slug: Schema.String,
|
|
@@ -480,8 +480,8 @@ const Mailbox = /* @__PURE__ */ Schema.Struct({
|
|
|
480
480
|
metadata: MailboxMetadata,
|
|
481
481
|
endpoints: Schema.Array(MailboxEndpoint),
|
|
482
482
|
updatedAt: Schema.String
|
|
483
|
-
}).annotate({ identifier: "Mailbox" });
|
|
484
|
-
const MailboxSendSnapshot = /* @__PURE__ */ Schema.Struct({
|
|
483
|
+
}).annotate({ identifier: "Mailbox" }))();
|
|
484
|
+
const MailboxSendSnapshot = /* @__PURE__ */ (() => Schema.Struct({
|
|
485
485
|
channel: Schema.Literal("email"),
|
|
486
486
|
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" })),
|
|
487
487
|
from: Schema.String,
|
|
@@ -497,8 +497,8 @@ const MailboxSendSnapshot = /* @__PURE__ */ Schema.Struct({
|
|
|
497
497
|
threadId: Schema.Union([MailboxThreadId, Schema.Null]),
|
|
498
498
|
conversationId: Schema.Union([ConversationId, Schema.Null]),
|
|
499
499
|
inReplyToMessageId: Schema.Union([MessageId, Schema.Null])
|
|
500
|
-
}).annotate({ identifier: "MailboxSendSnapshot" });
|
|
501
|
-
const MailboxDraft = /* @__PURE__ */ Schema.Struct({
|
|
500
|
+
}).annotate({ identifier: "MailboxSendSnapshot" }))();
|
|
501
|
+
const MailboxDraft = /* @__PURE__ */ (() => Schema.Struct({
|
|
502
502
|
id: MailboxDraftId,
|
|
503
503
|
channel: Schema.Literal("email"),
|
|
504
504
|
threadId: Schema.Union([MailboxThreadId, Schema.Null]),
|
|
@@ -516,16 +516,16 @@ const MailboxDraft = /* @__PURE__ */ Schema.Struct({
|
|
|
516
516
|
html: Schema.Union([Schema.String, Schema.Null]),
|
|
517
517
|
text: Schema.Union([Schema.String, Schema.Null]),
|
|
518
518
|
attachments: Schema.Array(EmailAttachment).check(Schema.isMaxLength(10).annotate({ expected: "a value with a length of at most 10" }))
|
|
519
|
-
}).annotate({ identifier: "MailboxDraft" });
|
|
520
|
-
const MailboxPage = /* @__PURE__ */ Schema.Struct({
|
|
519
|
+
}).annotate({ identifier: "MailboxDraft" }))();
|
|
520
|
+
const MailboxPage = /* @__PURE__ */ (() => Schema.Struct({
|
|
521
521
|
items: Schema.Array(MailboxSummary),
|
|
522
522
|
nextCursor: Schema.Union([Schema.String, Schema.Null])
|
|
523
|
-
}).annotate({ identifier: "MailboxPage" });
|
|
524
|
-
const MailboxQuarantinePage = /* @__PURE__ */ Schema.Struct({
|
|
523
|
+
}).annotate({ identifier: "MailboxPage" }))();
|
|
524
|
+
const MailboxQuarantinePage = /* @__PURE__ */ (() => Schema.Struct({
|
|
525
525
|
items: Schema.Array(MailboxQuarantinedMessage),
|
|
526
526
|
nextCursor: Schema.Union([Schema.String, Schema.Null])
|
|
527
|
-
}).annotate({ identifier: "MailboxQuarantinePage" });
|
|
528
|
-
const MailboxNonSendAction = /* @__PURE__ */ Schema.Struct({
|
|
527
|
+
}).annotate({ identifier: "MailboxQuarantinePage" }))();
|
|
528
|
+
const MailboxNonSendAction = /* @__PURE__ */ (() => Schema.Struct({
|
|
529
529
|
id: MailboxActionId,
|
|
530
530
|
source: Schema.Union([
|
|
531
531
|
Schema.Literal("humanUi"),
|
|
@@ -575,8 +575,8 @@ const MailboxNonSendAction = /* @__PURE__ */ Schema.Struct({
|
|
|
575
575
|
Schema.Literal("failed")
|
|
576
576
|
]),
|
|
577
577
|
tool: Schema.Union([MailboxToolCall, Schema.Null]).annotate({ description: "The tool a `toolCall` runs, with its arguments and their hash; an approval covers exactly this call. Null for every other action type." })
|
|
578
|
-
}).annotate({ identifier: "MailboxNonSendAction" });
|
|
579
|
-
const MailboxPendingSendReceipt = /* @__PURE__ */ Schema.Struct({
|
|
578
|
+
}).annotate({ identifier: "MailboxNonSendAction" }))();
|
|
579
|
+
const MailboxPendingSendReceipt = /* @__PURE__ */ (() => Schema.Struct({
|
|
580
580
|
actionId: MailboxActionId,
|
|
581
581
|
draftId: Schema.Union([MailboxDraftId, Schema.Null]),
|
|
582
582
|
messageId: Schema.Union([MessageId, Schema.Null]),
|
|
@@ -612,39 +612,39 @@ const MailboxPendingSendReceipt = /* @__PURE__ */ Schema.Struct({
|
|
|
612
612
|
decision: Schema.Union([MailboxActionDecision, Schema.Null]),
|
|
613
613
|
createdAt: Schema.String,
|
|
614
614
|
updatedAt: Schema.String
|
|
615
|
-
}).annotate({ identifier: "MailboxPendingSendReceipt" });
|
|
616
|
-
const MailboxDraftPage = /* @__PURE__ */ Schema.Struct({
|
|
615
|
+
}).annotate({ identifier: "MailboxPendingSendReceipt" }))();
|
|
616
|
+
const MailboxDraftPage = /* @__PURE__ */ (() => Schema.Struct({
|
|
617
617
|
items: Schema.Array(MailboxDraftSummary),
|
|
618
618
|
nextCursor: Schema.Union([Schema.String, Schema.Null])
|
|
619
|
-
}).annotate({ identifier: "MailboxDraftPage" });
|
|
620
|
-
const MailboxEventPage = /* @__PURE__ */ Schema.Struct({
|
|
619
|
+
}).annotate({ identifier: "MailboxDraftPage" }))();
|
|
620
|
+
const MailboxEventPage = /* @__PURE__ */ (() => Schema.Struct({
|
|
621
621
|
items: Schema.Array(MailboxEvent),
|
|
622
622
|
nextCursor: Schema.Union([Schema.String, Schema.Null])
|
|
623
|
-
}).annotate({ identifier: "MailboxEventPage" });
|
|
624
|
-
const MailboxFolderCountList = /* @__PURE__ */ Schema.Struct({ items: Schema.Array(MailboxFolderCount) }).annotate({ identifier: "MailboxFolderCountList" });
|
|
625
|
-
const MailboxGrantPage = /* @__PURE__ */ Schema.Struct({
|
|
623
|
+
}).annotate({ identifier: "MailboxEventPage" }))();
|
|
624
|
+
const MailboxFolderCountList = /* @__PURE__ */ (() => Schema.Struct({ items: Schema.Array(MailboxFolderCount) }).annotate({ identifier: "MailboxFolderCountList" }))();
|
|
625
|
+
const MailboxGrantPage = /* @__PURE__ */ (() => Schema.Struct({
|
|
626
626
|
items: Schema.Array(MailboxGrant),
|
|
627
627
|
nextCursor: Schema.Union([Schema.String, Schema.Null])
|
|
628
|
-
}).annotate({ identifier: "MailboxGrantPage" });
|
|
629
|
-
const MailboxLabelList = /* @__PURE__ */ Schema.Struct({ items: Schema.Array(MailboxLabel) }).annotate({ identifier: "MailboxLabelList" });
|
|
630
|
-
const MailboxMessagePage = /* @__PURE__ */ Schema.Struct({
|
|
628
|
+
}).annotate({ identifier: "MailboxGrantPage" }))();
|
|
629
|
+
const MailboxLabelList = /* @__PURE__ */ (() => Schema.Struct({ items: Schema.Array(MailboxLabel) }).annotate({ identifier: "MailboxLabelList" }))();
|
|
630
|
+
const MailboxMessagePage = /* @__PURE__ */ (() => Schema.Struct({
|
|
631
631
|
items: Schema.Array(MailboxMessageSummary),
|
|
632
632
|
nextCursor: Schema.Union([Schema.String, Schema.Null])
|
|
633
|
-
}).annotate({ identifier: "MailboxMessagePage" });
|
|
634
|
-
const MailboxThreadContentPage = /* @__PURE__ */ Schema.Struct({
|
|
633
|
+
}).annotate({ identifier: "MailboxMessagePage" }))();
|
|
634
|
+
const MailboxThreadContentPage = /* @__PURE__ */ (() => Schema.Struct({
|
|
635
635
|
items: Schema.Array(MailboxMessage),
|
|
636
636
|
nextCursor: Schema.Union([Schema.String, Schema.Null])
|
|
637
|
-
}).annotate({ identifier: "MailboxThreadContentPage" });
|
|
638
|
-
const MailboxPolicyList = /* @__PURE__ */ Schema.Struct({ items: Schema.Array(MailboxPolicy) }).annotate({ identifier: "MailboxPolicyList" });
|
|
639
|
-
const MailboxThreadPage = /* @__PURE__ */ Schema.Struct({
|
|
637
|
+
}).annotate({ identifier: "MailboxThreadContentPage" }))();
|
|
638
|
+
const MailboxPolicyList = /* @__PURE__ */ (() => Schema.Struct({ items: Schema.Array(MailboxPolicy) }).annotate({ identifier: "MailboxPolicyList" }))();
|
|
639
|
+
const MailboxThreadPage = /* @__PURE__ */ (() => Schema.Struct({
|
|
640
640
|
items: Schema.Array(MailboxThreadSummary),
|
|
641
641
|
nextCursor: Schema.Union([Schema.String, Schema.Null])
|
|
642
|
-
}).annotate({ identifier: "MailboxThreadPage" });
|
|
643
|
-
const MailboxNotePage = /* @__PURE__ */ Schema.Struct({
|
|
642
|
+
}).annotate({ identifier: "MailboxThreadPage" }))();
|
|
643
|
+
const MailboxNotePage = /* @__PURE__ */ (() => Schema.Struct({
|
|
644
644
|
items: Schema.Array(MailboxNote),
|
|
645
645
|
nextCursor: Schema.Union([Schema.String, Schema.Null])
|
|
646
|
-
}).annotate({ identifier: "MailboxNotePage" });
|
|
647
|
-
const MailboxSendAction = /* @__PURE__ */ Schema.Struct({
|
|
646
|
+
}).annotate({ identifier: "MailboxNotePage" }))();
|
|
647
|
+
const MailboxSendAction = /* @__PURE__ */ (() => Schema.Struct({
|
|
648
648
|
id: MailboxActionId,
|
|
649
649
|
source: Schema.Union([
|
|
650
650
|
Schema.Literal("humanUi"),
|
|
@@ -684,43 +684,43 @@ const MailboxSendAction = /* @__PURE__ */ Schema.Struct({
|
|
|
684
684
|
]),
|
|
685
685
|
send: MailboxSendReceipt,
|
|
686
686
|
intent: Schema.Union([MailboxSendSnapshot, Schema.Null])
|
|
687
|
-
}).annotate({ identifier: "MailboxSendAction" });
|
|
688
|
-
const MailboxAction = /* @__PURE__ */ Schema.Union([MailboxSendAction, MailboxNonSendAction]).annotate({ identifier: "MailboxAction" });
|
|
689
|
-
const MailboxPendingAction = /* @__PURE__ */ Schema.Union([MailboxSendAction, MailboxNonSendAction]).annotate({ identifier: "MailboxPendingAction" });
|
|
690
|
-
const MailboxActionPage = /* @__PURE__ */ Schema.Struct({
|
|
687
|
+
}).annotate({ identifier: "MailboxSendAction" }))();
|
|
688
|
+
const MailboxAction = /* @__PURE__ */ (() => Schema.Union([MailboxSendAction, MailboxNonSendAction]).annotate({ identifier: "MailboxAction" }))();
|
|
689
|
+
const MailboxPendingAction = /* @__PURE__ */ (() => Schema.Union([MailboxSendAction, MailboxNonSendAction]).annotate({ identifier: "MailboxPendingAction" }))();
|
|
690
|
+
const MailboxActionPage = /* @__PURE__ */ (() => Schema.Struct({
|
|
691
691
|
items: Schema.Array(MailboxAction),
|
|
692
692
|
nextCursor: Schema.Union([Schema.String, Schema.Null])
|
|
693
|
-
}).annotate({ identifier: "MailboxActionPage" });
|
|
694
|
-
const MailboxesListQuery = /* @__PURE__ */ Schema.Struct({
|
|
693
|
+
}).annotate({ identifier: "MailboxActionPage" }))();
|
|
694
|
+
const MailboxesListQuery = /* @__PURE__ */ (() => Schema.Struct({
|
|
695
695
|
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])),
|
|
696
696
|
cursor: Schema.optionalKey(Schema.Union([Cursor, Schema.Null])),
|
|
697
697
|
after: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
|
|
698
698
|
before: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null]))
|
|
699
|
-
});
|
|
699
|
+
}))();
|
|
700
700
|
const MailboxesList200 = MailboxPage;
|
|
701
701
|
const MailboxesList401 = UnauthorizedError;
|
|
702
702
|
const MailboxesList403 = ForbiddenError;
|
|
703
703
|
const MailboxesList422 = ValidationError;
|
|
704
704
|
const MailboxesList500 = InternalError;
|
|
705
705
|
const MailboxesList504 = GatewayTimeoutError;
|
|
706
|
-
const MailboxesCreateRequestJson = /* @__PURE__ */ Schema.Struct({
|
|
706
|
+
const MailboxesCreateRequestJson = /* @__PURE__ */ (() => Schema.Struct({
|
|
707
707
|
namespaceId: Schema.optionalKey(Schema.Union([NamespaceId, Schema.Null])),
|
|
708
708
|
endpoint: CreateMailboxEndpointPayload,
|
|
709
709
|
name: Schema.String,
|
|
710
710
|
slug: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
|
|
711
711
|
metadata: Schema.optionalKey(Schema.Union([MailboxMetadata, Schema.Null]))
|
|
712
|
-
});
|
|
712
|
+
}))();
|
|
713
713
|
const MailboxesCreate201 = Mailbox;
|
|
714
714
|
const MailboxesCreate401 = UnauthorizedError;
|
|
715
715
|
const MailboxesCreate402 = PaymentRequiredError;
|
|
716
|
-
const MailboxesCreate403 = /* @__PURE__ */ Schema.Union([FlagDisabledError, ForbiddenError]);
|
|
716
|
+
const MailboxesCreate403 = /* @__PURE__ */ (() => Schema.Union([FlagDisabledError, ForbiddenError]))();
|
|
717
717
|
const MailboxesCreate404 = ResourceNotFoundError;
|
|
718
718
|
const MailboxesCreate409 = ConflictError;
|
|
719
719
|
const MailboxesCreate422 = ValidationError;
|
|
720
720
|
const MailboxesCreate500 = InternalError;
|
|
721
721
|
const MailboxesCreate502 = BillingProviderError;
|
|
722
722
|
const MailboxesCreate504 = GatewayTimeoutError;
|
|
723
|
-
const MailboxesGetPathParams = /* @__PURE__ */ Schema.Struct({ id: MailboxId });
|
|
723
|
+
const MailboxesGetPathParams = /* @__PURE__ */ (() => Schema.Struct({ id: MailboxId }))();
|
|
724
724
|
const MailboxesGet200 = Mailbox;
|
|
725
725
|
const MailboxesGet401 = UnauthorizedError;
|
|
726
726
|
const MailboxesGet403 = ForbiddenError;
|
|
@@ -728,7 +728,7 @@ const MailboxesGet404 = ResourceNotFoundError;
|
|
|
728
728
|
const MailboxesGet422 = ValidationError;
|
|
729
729
|
const MailboxesGet500 = InternalError;
|
|
730
730
|
const MailboxesGet504 = GatewayTimeoutError;
|
|
731
|
-
const MailboxesRemovePathParams = /* @__PURE__ */ Schema.Struct({ id: MailboxId });
|
|
731
|
+
const MailboxesRemovePathParams = /* @__PURE__ */ (() => Schema.Struct({ id: MailboxId }))();
|
|
732
732
|
const MailboxesRemove200 = SuccessResponse;
|
|
733
733
|
const MailboxesRemove401 = UnauthorizedError;
|
|
734
734
|
const MailboxesRemove403 = ForbiddenError;
|
|
@@ -737,11 +737,11 @@ const MailboxesRemove422 = ValidationError;
|
|
|
737
737
|
const MailboxesRemove500 = InternalError;
|
|
738
738
|
const MailboxesRemove502 = BillingProviderError;
|
|
739
739
|
const MailboxesRemove504 = GatewayTimeoutError;
|
|
740
|
-
const MailboxesUpdatePathParams = /* @__PURE__ */ Schema.Struct({ id: MailboxId });
|
|
741
|
-
const MailboxesUpdateRequestJson = /* @__PURE__ */ Schema.Struct({
|
|
740
|
+
const MailboxesUpdatePathParams = /* @__PURE__ */ (() => Schema.Struct({ id: MailboxId }))();
|
|
741
|
+
const MailboxesUpdateRequestJson = /* @__PURE__ */ (() => Schema.Struct({
|
|
742
742
|
name: Schema.optionalKey(Schema.Union([Schema.String.check(Schema.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })), Schema.Null])),
|
|
743
743
|
metadata: Schema.optionalKey(Schema.Union([MailboxMetadataPatch, Schema.Null]))
|
|
744
|
-
});
|
|
744
|
+
}))();
|
|
745
745
|
const MailboxesUpdate200 = Mailbox;
|
|
746
746
|
const MailboxesUpdate401 = UnauthorizedError;
|
|
747
747
|
const MailboxesUpdate403 = ForbiddenError;
|
|
@@ -749,8 +749,8 @@ const MailboxesUpdate404 = ResourceNotFoundError;
|
|
|
749
749
|
const MailboxesUpdate422 = ValidationError;
|
|
750
750
|
const MailboxesUpdate500 = InternalError;
|
|
751
751
|
const MailboxesUpdate504 = GatewayTimeoutError;
|
|
752
|
-
const MailboxesListActionsPathParams = /* @__PURE__ */ Schema.Struct({ id: MailboxId });
|
|
753
|
-
const MailboxesListActionsQuery = /* @__PURE__ */ Schema.Struct({
|
|
752
|
+
const MailboxesListActionsPathParams = /* @__PURE__ */ (() => Schema.Struct({ id: MailboxId }))();
|
|
753
|
+
const MailboxesListActionsQuery = /* @__PURE__ */ (() => Schema.Struct({
|
|
754
754
|
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])),
|
|
755
755
|
cursor: Schema.optionalKey(Schema.Union([Cursor, Schema.Null])),
|
|
756
756
|
threadId: Schema.optionalKey(Schema.Union([MailboxThreadId, Schema.Null])),
|
|
@@ -772,7 +772,7 @@ const MailboxesListActionsQuery = /* @__PURE__ */ Schema.Struct({
|
|
|
772
772
|
]), Schema.Null])),
|
|
773
773
|
after: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
|
|
774
774
|
before: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null]))
|
|
775
|
-
});
|
|
775
|
+
}))();
|
|
776
776
|
const MailboxesListActions200 = MailboxActionPage;
|
|
777
777
|
const MailboxesListActions401 = UnauthorizedError;
|
|
778
778
|
const MailboxesListActions403 = ForbiddenError;
|
|
@@ -780,10 +780,10 @@ const MailboxesListActions404 = ResourceNotFoundError;
|
|
|
780
780
|
const MailboxesListActions422 = ValidationError;
|
|
781
781
|
const MailboxesListActions500 = InternalError;
|
|
782
782
|
const MailboxesListActions504 = GatewayTimeoutError;
|
|
783
|
-
const MailboxesGetActionPathParams = /* @__PURE__ */ Schema.Struct({
|
|
783
|
+
const MailboxesGetActionPathParams = /* @__PURE__ */ (() => Schema.Struct({
|
|
784
784
|
id: MailboxId,
|
|
785
785
|
actionId: MailboxActionId
|
|
786
|
-
});
|
|
786
|
+
}))();
|
|
787
787
|
const MailboxesGetAction200 = MailboxAction;
|
|
788
788
|
const MailboxesGetAction401 = UnauthorizedError;
|
|
789
789
|
const MailboxesGetAction403 = ForbiddenError;
|
|
@@ -791,90 +791,90 @@ const MailboxesGetAction404 = ResourceNotFoundError;
|
|
|
791
791
|
const MailboxesGetAction422 = ValidationError;
|
|
792
792
|
const MailboxesGetAction500 = InternalError;
|
|
793
793
|
const MailboxesGetAction504 = GatewayTimeoutError;
|
|
794
|
-
const MailboxesApproveActionPathParams = /* @__PURE__ */ Schema.Struct({
|
|
794
|
+
const MailboxesApproveActionPathParams = /* @__PURE__ */ (() => Schema.Struct({
|
|
795
795
|
id: MailboxId,
|
|
796
796
|
actionId: MailboxActionId
|
|
797
|
-
});
|
|
797
|
+
}))();
|
|
798
798
|
const MailboxesApproveAction200 = MailboxAction;
|
|
799
799
|
const MailboxesApproveAction202 = MailboxPendingAction;
|
|
800
800
|
const MailboxesApproveAction401 = UnauthorizedError;
|
|
801
801
|
const MailboxesApproveAction402 = PaymentRequiredError;
|
|
802
|
-
const MailboxesApproveAction403 = /* @__PURE__ */ Schema.Union([
|
|
802
|
+
const MailboxesApproveAction403 = /* @__PURE__ */ (() => Schema.Union([
|
|
803
803
|
FlagDisabledError,
|
|
804
804
|
MailboxSendRefusedError,
|
|
805
805
|
OnboardingReviewRequiredError,
|
|
806
806
|
ForbiddenError
|
|
807
|
-
]);
|
|
807
|
+
]))();
|
|
808
808
|
const MailboxesApproveAction404 = ResourceNotFoundError;
|
|
809
|
-
const MailboxesApproveAction409 = /* @__PURE__ */ Schema.Union([MailboxSendConflictError, ConflictError]);
|
|
809
|
+
const MailboxesApproveAction409 = /* @__PURE__ */ (() => Schema.Union([MailboxSendConflictError, ConflictError]))();
|
|
810
810
|
const MailboxesApproveAction422 = ValidationError;
|
|
811
811
|
const MailboxesApproveAction429 = RateLimitedError;
|
|
812
812
|
const MailboxesApproveAction500 = InternalError;
|
|
813
813
|
const MailboxesApproveAction502 = BillingProviderError;
|
|
814
814
|
const MailboxesApproveAction503 = SenderNotReadyError;
|
|
815
815
|
const MailboxesApproveAction504 = GatewayTimeoutError;
|
|
816
|
-
const MailboxesCancelActionPathParams = /* @__PURE__ */ Schema.Struct({
|
|
816
|
+
const MailboxesCancelActionPathParams = /* @__PURE__ */ (() => Schema.Struct({
|
|
817
817
|
id: MailboxId,
|
|
818
818
|
actionId: MailboxActionId
|
|
819
|
-
});
|
|
819
|
+
}))();
|
|
820
820
|
const MailboxesCancelAction200 = MailboxSendReceipt;
|
|
821
821
|
const MailboxesCancelAction202 = MailboxPendingSendReceipt;
|
|
822
822
|
const MailboxesCancelAction401 = UnauthorizedError;
|
|
823
823
|
const MailboxesCancelAction402 = PaymentRequiredError;
|
|
824
|
-
const MailboxesCancelAction403 = /* @__PURE__ */ Schema.Union([
|
|
824
|
+
const MailboxesCancelAction403 = /* @__PURE__ */ (() => Schema.Union([
|
|
825
825
|
FlagDisabledError,
|
|
826
826
|
MailboxSendRefusedError,
|
|
827
827
|
OnboardingReviewRequiredError,
|
|
828
828
|
ForbiddenError
|
|
829
|
-
]);
|
|
829
|
+
]))();
|
|
830
830
|
const MailboxesCancelAction404 = ResourceNotFoundError;
|
|
831
|
-
const MailboxesCancelAction409 = /* @__PURE__ */ Schema.Union([MailboxSendConflictError, ConflictError]);
|
|
831
|
+
const MailboxesCancelAction409 = /* @__PURE__ */ (() => Schema.Union([MailboxSendConflictError, ConflictError]))();
|
|
832
832
|
const MailboxesCancelAction422 = ValidationError;
|
|
833
833
|
const MailboxesCancelAction429 = RateLimitedError;
|
|
834
834
|
const MailboxesCancelAction500 = InternalError;
|
|
835
835
|
const MailboxesCancelAction502 = BillingProviderError;
|
|
836
836
|
const MailboxesCancelAction503 = SenderNotReadyError;
|
|
837
837
|
const MailboxesCancelAction504 = GatewayTimeoutError;
|
|
838
|
-
const MailboxesDenyActionPathParams = /* @__PURE__ */ Schema.Struct({
|
|
838
|
+
const MailboxesDenyActionPathParams = /* @__PURE__ */ (() => Schema.Struct({
|
|
839
839
|
id: MailboxId,
|
|
840
840
|
actionId: MailboxActionId
|
|
841
|
-
});
|
|
842
|
-
const MailboxesDenyActionRequestJson = /* @__PURE__ */ Schema.Struct({ reason: Schema.String });
|
|
841
|
+
}))();
|
|
842
|
+
const MailboxesDenyActionRequestJson = /* @__PURE__ */ (() => Schema.Struct({ reason: Schema.String }))();
|
|
843
843
|
const MailboxesDenyAction200 = MailboxAction;
|
|
844
844
|
const MailboxesDenyAction401 = UnauthorizedError;
|
|
845
845
|
const MailboxesDenyAction403 = ForbiddenError;
|
|
846
846
|
const MailboxesDenyAction404 = ResourceNotFoundError;
|
|
847
|
-
const MailboxesDenyAction409 = /* @__PURE__ */ Schema.Union([ConflictError, MailboxSendConflictError]);
|
|
847
|
+
const MailboxesDenyAction409 = /* @__PURE__ */ (() => Schema.Union([ConflictError, MailboxSendConflictError]))();
|
|
848
848
|
const MailboxesDenyAction422 = ValidationError;
|
|
849
849
|
const MailboxesDenyAction500 = InternalError;
|
|
850
850
|
const MailboxesDenyAction504 = GatewayTimeoutError;
|
|
851
|
-
const MailboxesRetryActionPathParams = /* @__PURE__ */ Schema.Struct({
|
|
851
|
+
const MailboxesRetryActionPathParams = /* @__PURE__ */ (() => Schema.Struct({
|
|
852
852
|
id: MailboxId,
|
|
853
853
|
actionId: MailboxActionId
|
|
854
|
-
});
|
|
854
|
+
}))();
|
|
855
855
|
const MailboxesRetryAction200 = MailboxSendReceipt;
|
|
856
856
|
const MailboxesRetryAction202 = MailboxPendingSendReceipt;
|
|
857
857
|
const MailboxesRetryAction401 = UnauthorizedError;
|
|
858
858
|
const MailboxesRetryAction402 = PaymentRequiredError;
|
|
859
|
-
const MailboxesRetryAction403 = /* @__PURE__ */ Schema.Union([
|
|
859
|
+
const MailboxesRetryAction403 = /* @__PURE__ */ (() => Schema.Union([
|
|
860
860
|
FlagDisabledError,
|
|
861
861
|
MailboxSendRefusedError,
|
|
862
862
|
OnboardingReviewRequiredError,
|
|
863
863
|
ForbiddenError
|
|
864
|
-
]);
|
|
864
|
+
]))();
|
|
865
865
|
const MailboxesRetryAction404 = ResourceNotFoundError;
|
|
866
|
-
const MailboxesRetryAction409 = /* @__PURE__ */ Schema.Union([MailboxSendConflictError, ConflictError]);
|
|
866
|
+
const MailboxesRetryAction409 = /* @__PURE__ */ (() => Schema.Union([MailboxSendConflictError, ConflictError]))();
|
|
867
867
|
const MailboxesRetryAction422 = ValidationError;
|
|
868
868
|
const MailboxesRetryAction429 = RateLimitedError;
|
|
869
869
|
const MailboxesRetryAction500 = InternalError;
|
|
870
870
|
const MailboxesRetryAction502 = BillingProviderError;
|
|
871
871
|
const MailboxesRetryAction503 = SenderNotReadyError;
|
|
872
872
|
const MailboxesRetryAction504 = GatewayTimeoutError;
|
|
873
|
-
const MailboxesGetAgentActivityPathParams = /* @__PURE__ */ Schema.Struct({ id: MailboxId });
|
|
874
|
-
const MailboxesGetAgentActivityQuery = /* @__PURE__ */ Schema.Struct({
|
|
873
|
+
const MailboxesGetAgentActivityPathParams = /* @__PURE__ */ (() => Schema.Struct({ id: MailboxId }))();
|
|
874
|
+
const MailboxesGetAgentActivityQuery = /* @__PURE__ */ (() => Schema.Struct({
|
|
875
875
|
after: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
|
|
876
876
|
before: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null]))
|
|
877
|
-
});
|
|
877
|
+
}))();
|
|
878
878
|
const MailboxesGetAgentActivity200 = MailboxAgentActivity;
|
|
879
879
|
const MailboxesGetAgentActivity401 = UnauthorizedError;
|
|
880
880
|
const MailboxesGetAgentActivity403 = ForbiddenError;
|
|
@@ -882,12 +882,12 @@ const MailboxesGetAgentActivity404 = ResourceNotFoundError;
|
|
|
882
882
|
const MailboxesGetAgentActivity422 = ValidationError;
|
|
883
883
|
const MailboxesGetAgentActivity500 = InternalError;
|
|
884
884
|
const MailboxesGetAgentActivity504 = GatewayTimeoutError;
|
|
885
|
-
const MailboxesListDraftsPathParams = /* @__PURE__ */ Schema.Struct({ id: MailboxId });
|
|
886
|
-
const MailboxesListDraftsQuery = /* @__PURE__ */ Schema.Struct({
|
|
885
|
+
const MailboxesListDraftsPathParams = /* @__PURE__ */ (() => Schema.Struct({ id: MailboxId }))();
|
|
886
|
+
const MailboxesListDraftsQuery = /* @__PURE__ */ (() => Schema.Struct({
|
|
887
887
|
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])),
|
|
888
888
|
cursor: Schema.optionalKey(Schema.Union([Cursor, Schema.Null])),
|
|
889
889
|
threadId: Schema.optionalKey(Schema.Union([MailboxThreadId, Schema.Null]))
|
|
890
|
-
});
|
|
890
|
+
}))();
|
|
891
891
|
const MailboxesListDrafts200 = MailboxDraftPage;
|
|
892
892
|
const MailboxesListDrafts401 = UnauthorizedError;
|
|
893
893
|
const MailboxesListDrafts403 = ForbiddenError;
|
|
@@ -895,8 +895,8 @@ const MailboxesListDrafts404 = ResourceNotFoundError;
|
|
|
895
895
|
const MailboxesListDrafts422 = ValidationError;
|
|
896
896
|
const MailboxesListDrafts500 = InternalError;
|
|
897
897
|
const MailboxesListDrafts504 = GatewayTimeoutError;
|
|
898
|
-
const MailboxesCreateDraftPathParams = /* @__PURE__ */ Schema.Struct({ id: MailboxId });
|
|
899
|
-
const MailboxesCreateDraftRequestJson = /* @__PURE__ */ Schema.Struct({
|
|
898
|
+
const MailboxesCreateDraftPathParams = /* @__PURE__ */ (() => Schema.Struct({ id: MailboxId }))();
|
|
899
|
+
const MailboxesCreateDraftRequestJson = /* @__PURE__ */ (() => Schema.Struct({
|
|
900
900
|
channel: Schema.optionalKey(Schema.Union([Schema.Literal("email"), Schema.Null])),
|
|
901
901
|
endpointId: Schema.optionalKey(Schema.Union([MailboxEndpointId, Schema.Null])),
|
|
902
902
|
to: Schema.optionalKey(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
|
|
@@ -908,7 +908,7 @@ const MailboxesCreateDraftRequestJson = /* @__PURE__ */ Schema.Struct({
|
|
|
908
908
|
html: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
|
|
909
909
|
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])),
|
|
910
910
|
inReplyToMessageId: Schema.optionalKey(Schema.Union([MessageId, Schema.Null]))
|
|
911
|
-
});
|
|
911
|
+
}))();
|
|
912
912
|
const MailboxesCreateDraft201 = MailboxDraft;
|
|
913
913
|
const MailboxesCreateDraft401 = UnauthorizedError;
|
|
914
914
|
const MailboxesCreateDraft403 = ForbiddenError;
|
|
@@ -916,10 +916,10 @@ const MailboxesCreateDraft404 = ResourceNotFoundError;
|
|
|
916
916
|
const MailboxesCreateDraft422 = ValidationError;
|
|
917
917
|
const MailboxesCreateDraft500 = InternalError;
|
|
918
918
|
const MailboxesCreateDraft504 = GatewayTimeoutError;
|
|
919
|
-
const MailboxesGetDraftPathParams = /* @__PURE__ */ Schema.Struct({
|
|
919
|
+
const MailboxesGetDraftPathParams = /* @__PURE__ */ (() => Schema.Struct({
|
|
920
920
|
id: MailboxId,
|
|
921
921
|
draftId: MailboxDraftId
|
|
922
|
-
});
|
|
922
|
+
}))();
|
|
923
923
|
const MailboxesGetDraft200 = MailboxDraft;
|
|
924
924
|
const MailboxesGetDraft401 = UnauthorizedError;
|
|
925
925
|
const MailboxesGetDraft403 = ForbiddenError;
|
|
@@ -927,10 +927,10 @@ const MailboxesGetDraft404 = ResourceNotFoundError;
|
|
|
927
927
|
const MailboxesGetDraft422 = ValidationError;
|
|
928
928
|
const MailboxesGetDraft500 = InternalError;
|
|
929
929
|
const MailboxesGetDraft504 = GatewayTimeoutError;
|
|
930
|
-
const MailboxesDeleteDraftPathParams = /* @__PURE__ */ Schema.Struct({
|
|
930
|
+
const MailboxesDeleteDraftPathParams = /* @__PURE__ */ (() => Schema.Struct({
|
|
931
931
|
id: MailboxId,
|
|
932
932
|
draftId: MailboxDraftId
|
|
933
|
-
});
|
|
933
|
+
}))();
|
|
934
934
|
const MailboxesDeleteDraft200 = SuccessResponse;
|
|
935
935
|
const MailboxesDeleteDraft401 = UnauthorizedError;
|
|
936
936
|
const MailboxesDeleteDraft403 = ForbiddenError;
|
|
@@ -938,11 +938,11 @@ const MailboxesDeleteDraft404 = ResourceNotFoundError;
|
|
|
938
938
|
const MailboxesDeleteDraft422 = ValidationError;
|
|
939
939
|
const MailboxesDeleteDraft500 = InternalError;
|
|
940
940
|
const MailboxesDeleteDraft504 = GatewayTimeoutError;
|
|
941
|
-
const MailboxesUpdateDraftPathParams = /* @__PURE__ */ Schema.Struct({
|
|
941
|
+
const MailboxesUpdateDraftPathParams = /* @__PURE__ */ (() => Schema.Struct({
|
|
942
942
|
id: MailboxId,
|
|
943
943
|
draftId: MailboxDraftId
|
|
944
|
-
});
|
|
945
|
-
const MailboxesUpdateDraftRequestJson = /* @__PURE__ */ Schema.Struct({
|
|
944
|
+
}))();
|
|
945
|
+
const MailboxesUpdateDraftRequestJson = /* @__PURE__ */ (() => Schema.Struct({
|
|
946
946
|
to: Schema.optionalKey(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
|
|
947
947
|
cc: Schema.optionalKey(Schema.Union([Schema.Union([Schema.Array(Schema.String), Schema.Null]), Schema.Null])),
|
|
948
948
|
bcc: Schema.optionalKey(Schema.Union([Schema.Union([Schema.Array(Schema.String), Schema.Null]), Schema.Null])),
|
|
@@ -951,7 +951,7 @@ const MailboxesUpdateDraftRequestJson = /* @__PURE__ */ Schema.Struct({
|
|
|
951
951
|
text: Schema.optionalKey(Schema.Union([Schema.Union([Schema.String, Schema.Null]), Schema.Null])),
|
|
952
952
|
html: Schema.optionalKey(Schema.Union([Schema.Union([Schema.String, Schema.Null]), Schema.Null])),
|
|
953
953
|
attachments: Schema.optionalKey(Schema.Union([Schema.Union([Schema.Array(EmailAttachment).check(Schema.isMaxLength(10).annotate({ expected: "a value with a length of at most 10" })), Schema.Null]), Schema.Null]))
|
|
954
|
-
});
|
|
954
|
+
}))();
|
|
955
955
|
const MailboxesUpdateDraft200 = MailboxDraft;
|
|
956
956
|
const MailboxesUpdateDraft401 = UnauthorizedError;
|
|
957
957
|
const MailboxesUpdateDraft403 = ForbiddenError;
|
|
@@ -960,47 +960,47 @@ const MailboxesUpdateDraft409 = ConflictError;
|
|
|
960
960
|
const MailboxesUpdateDraft422 = ValidationError;
|
|
961
961
|
const MailboxesUpdateDraft500 = InternalError;
|
|
962
962
|
const MailboxesUpdateDraft504 = GatewayTimeoutError;
|
|
963
|
-
const MailboxesSendDraftPathParams = /* @__PURE__ */ Schema.Struct({
|
|
963
|
+
const MailboxesSendDraftPathParams = /* @__PURE__ */ (() => Schema.Struct({
|
|
964
964
|
id: MailboxId,
|
|
965
965
|
draftId: MailboxDraftId
|
|
966
|
-
});
|
|
967
|
-
const MailboxesSendDraftHeaders = /* @__PURE__ */ Schema.Struct({ "idempotency-key": Schema.optionalKey(Schema.Union([Schema.String.annotate({ description: "Optional key that makes a mailbox send idempotent for the calling key or member. Repeating the request with the same key and body returns the original action in its current state. Keep the key after a lost response. Reusing it with different content returns 409. Active actions retain their key; terminal receipts remain replayable for 24 hours." }).check(Schema.isPattern(/* @__PURE__ */ new RegExp("^[\\s\\S]{1,255}$")).annotate({ expected: "a string matching the RegExp ^[\\s\\S]{1,255}$" })), Schema.Null])) });
|
|
966
|
+
}))();
|
|
967
|
+
const MailboxesSendDraftHeaders = /* @__PURE__ */ (() => Schema.Struct({ "idempotency-key": Schema.optionalKey(Schema.Union([Schema.String.annotate({ description: "Optional key that makes a mailbox send idempotent for the calling key or member. Repeating the request with the same key and body returns the original action in its current state. Keep the key after a lost response. Reusing it with different content returns 409. Active actions retain their key; terminal receipts remain replayable for 24 hours." }).check(Schema.isPattern(/* @__PURE__ */ new RegExp("^[\\s\\S]{1,255}$")).annotate({ expected: "a string matching the RegExp ^[\\s\\S]{1,255}$" })), Schema.Null])) }))();
|
|
968
968
|
const MailboxesSendDraft200 = MailboxSendReceipt;
|
|
969
969
|
const MailboxesSendDraft202 = MailboxPendingSendReceipt;
|
|
970
970
|
const MailboxesSendDraft401 = UnauthorizedError;
|
|
971
971
|
const MailboxesSendDraft402 = PaymentRequiredError;
|
|
972
|
-
const MailboxesSendDraft403 = /* @__PURE__ */ Schema.Union([
|
|
972
|
+
const MailboxesSendDraft403 = /* @__PURE__ */ (() => Schema.Union([
|
|
973
973
|
FlagDisabledError,
|
|
974
974
|
MailboxSendRefusedError,
|
|
975
975
|
OnboardingReviewRequiredError,
|
|
976
976
|
ForbiddenError
|
|
977
|
-
]);
|
|
977
|
+
]))();
|
|
978
978
|
const MailboxesSendDraft404 = ResourceNotFoundError;
|
|
979
|
-
const MailboxesSendDraft409 = /* @__PURE__ */ Schema.Union([MailboxSendConflictError, ConflictError]);
|
|
979
|
+
const MailboxesSendDraft409 = /* @__PURE__ */ (() => Schema.Union([MailboxSendConflictError, ConflictError]))();
|
|
980
980
|
const MailboxesSendDraft422 = ValidationError;
|
|
981
981
|
const MailboxesSendDraft429 = RateLimitedError;
|
|
982
982
|
const MailboxesSendDraft500 = InternalError;
|
|
983
983
|
const MailboxesSendDraft502 = BillingProviderError;
|
|
984
984
|
const MailboxesSendDraft503 = SenderNotReadyError;
|
|
985
985
|
const MailboxesSendDraft504 = GatewayTimeoutError;
|
|
986
|
-
const MailboxesCreateEndpointPathParams = /* @__PURE__ */ Schema.Struct({ id: MailboxId });
|
|
987
|
-
const MailboxesCreateEndpointRequestJson = /* @__PURE__ */ Schema.Struct({
|
|
986
|
+
const MailboxesCreateEndpointPathParams = /* @__PURE__ */ (() => Schema.Struct({ id: MailboxId }))();
|
|
987
|
+
const MailboxesCreateEndpointRequestJson = /* @__PURE__ */ (() => Schema.Struct({
|
|
988
988
|
channel: MailboxChannel,
|
|
989
989
|
address: Schema.String,
|
|
990
990
|
displayName: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null]))
|
|
991
|
-
});
|
|
991
|
+
}))();
|
|
992
992
|
const MailboxesCreateEndpoint201 = Mailbox;
|
|
993
993
|
const MailboxesCreateEndpoint401 = UnauthorizedError;
|
|
994
|
-
const MailboxesCreateEndpoint403 = /* @__PURE__ */ Schema.Union([FlagDisabledError, ForbiddenError]);
|
|
994
|
+
const MailboxesCreateEndpoint403 = /* @__PURE__ */ (() => Schema.Union([FlagDisabledError, ForbiddenError]))();
|
|
995
995
|
const MailboxesCreateEndpoint404 = ResourceNotFoundError;
|
|
996
996
|
const MailboxesCreateEndpoint409 = ConflictError;
|
|
997
997
|
const MailboxesCreateEndpoint422 = ValidationError;
|
|
998
998
|
const MailboxesCreateEndpoint500 = InternalError;
|
|
999
999
|
const MailboxesCreateEndpoint504 = GatewayTimeoutError;
|
|
1000
|
-
const MailboxesRemoveEndpointPathParams = /* @__PURE__ */ Schema.Struct({
|
|
1000
|
+
const MailboxesRemoveEndpointPathParams = /* @__PURE__ */ (() => Schema.Struct({
|
|
1001
1001
|
id: MailboxId,
|
|
1002
1002
|
endpointId: MailboxEndpointId
|
|
1003
|
-
});
|
|
1003
|
+
}))();
|
|
1004
1004
|
const MailboxesRemoveEndpoint200 = Mailbox;
|
|
1005
1005
|
const MailboxesRemoveEndpoint401 = UnauthorizedError;
|
|
1006
1006
|
const MailboxesRemoveEndpoint403 = ForbiddenError;
|
|
@@ -1008,14 +1008,14 @@ const MailboxesRemoveEndpoint404 = ResourceNotFoundError;
|
|
|
1008
1008
|
const MailboxesRemoveEndpoint422 = ValidationError;
|
|
1009
1009
|
const MailboxesRemoveEndpoint500 = InternalError;
|
|
1010
1010
|
const MailboxesRemoveEndpoint504 = GatewayTimeoutError;
|
|
1011
|
-
const MailboxesUpdateEndpointPathParams = /* @__PURE__ */ Schema.Struct({
|
|
1011
|
+
const MailboxesUpdateEndpointPathParams = /* @__PURE__ */ (() => Schema.Struct({
|
|
1012
1012
|
id: MailboxId,
|
|
1013
1013
|
endpointId: MailboxEndpointId
|
|
1014
|
-
});
|
|
1015
|
-
const MailboxesUpdateEndpointRequestJson = /* @__PURE__ */ Schema.Struct({
|
|
1014
|
+
}))();
|
|
1015
|
+
const MailboxesUpdateEndpointRequestJson = /* @__PURE__ */ (() => Schema.Struct({
|
|
1016
1016
|
displayName: Schema.optionalKey(Schema.Union([Schema.Union([Schema.String, Schema.Null]), Schema.Null])),
|
|
1017
1017
|
default: Schema.optionalKey(Schema.Union([Schema.Literal(true), Schema.Null]))
|
|
1018
|
-
});
|
|
1018
|
+
}))();
|
|
1019
1019
|
const MailboxesUpdateEndpoint200 = Mailbox;
|
|
1020
1020
|
const MailboxesUpdateEndpoint401 = UnauthorizedError;
|
|
1021
1021
|
const MailboxesUpdateEndpoint403 = ForbiddenError;
|
|
@@ -1023,13 +1023,13 @@ const MailboxesUpdateEndpoint404 = ResourceNotFoundError;
|
|
|
1023
1023
|
const MailboxesUpdateEndpoint422 = ValidationError;
|
|
1024
1024
|
const MailboxesUpdateEndpoint500 = InternalError;
|
|
1025
1025
|
const MailboxesUpdateEndpoint504 = GatewayTimeoutError;
|
|
1026
|
-
const MailboxesListEventsPathParams = /* @__PURE__ */ Schema.Struct({ id: MailboxId });
|
|
1027
|
-
const MailboxesListEventsQuery = /* @__PURE__ */ Schema.Struct({
|
|
1026
|
+
const MailboxesListEventsPathParams = /* @__PURE__ */ (() => Schema.Struct({ id: MailboxId }))();
|
|
1027
|
+
const MailboxesListEventsQuery = /* @__PURE__ */ (() => Schema.Struct({
|
|
1028
1028
|
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])),
|
|
1029
1029
|
cursor: Schema.optionalKey(Schema.Union([Cursor, Schema.Null])),
|
|
1030
1030
|
after: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
|
|
1031
1031
|
before: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null]))
|
|
1032
|
-
});
|
|
1032
|
+
}))();
|
|
1033
1033
|
const MailboxesListEvents200 = MailboxEventPage;
|
|
1034
1034
|
const MailboxesListEvents401 = UnauthorizedError;
|
|
1035
1035
|
const MailboxesListEvents403 = ForbiddenError;
|
|
@@ -1037,7 +1037,7 @@ const MailboxesListEvents404 = ResourceNotFoundError;
|
|
|
1037
1037
|
const MailboxesListEvents422 = ValidationError;
|
|
1038
1038
|
const MailboxesListEvents500 = InternalError;
|
|
1039
1039
|
const MailboxesListEvents504 = GatewayTimeoutError;
|
|
1040
|
-
const MailboxesListFoldersPathParams = /* @__PURE__ */ Schema.Struct({ id: MailboxId });
|
|
1040
|
+
const MailboxesListFoldersPathParams = /* @__PURE__ */ (() => Schema.Struct({ id: MailboxId }))();
|
|
1041
1041
|
const MailboxesListFolders200 = MailboxFolderCountList;
|
|
1042
1042
|
const MailboxesListFolders401 = UnauthorizedError;
|
|
1043
1043
|
const MailboxesListFolders403 = ForbiddenError;
|
|
@@ -1045,11 +1045,11 @@ const MailboxesListFolders404 = ResourceNotFoundError;
|
|
|
1045
1045
|
const MailboxesListFolders422 = ValidationError;
|
|
1046
1046
|
const MailboxesListFolders500 = InternalError;
|
|
1047
1047
|
const MailboxesListFolders504 = GatewayTimeoutError;
|
|
1048
|
-
const MailboxesListGrantsPathParams = /* @__PURE__ */ Schema.Struct({ id: MailboxId });
|
|
1049
|
-
const MailboxesListGrantsQuery = /* @__PURE__ */ Schema.Struct({
|
|
1048
|
+
const MailboxesListGrantsPathParams = /* @__PURE__ */ (() => Schema.Struct({ id: MailboxId }))();
|
|
1049
|
+
const MailboxesListGrantsQuery = /* @__PURE__ */ (() => Schema.Struct({
|
|
1050
1050
|
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])),
|
|
1051
1051
|
cursor: Schema.optionalKey(Schema.Union([Cursor, Schema.Null]))
|
|
1052
|
-
});
|
|
1052
|
+
}))();
|
|
1053
1053
|
const MailboxesListGrants200 = MailboxGrantPage;
|
|
1054
1054
|
const MailboxesListGrants401 = UnauthorizedError;
|
|
1055
1055
|
const MailboxesListGrants403 = ForbiddenError;
|
|
@@ -1057,12 +1057,12 @@ const MailboxesListGrants404 = ResourceNotFoundError;
|
|
|
1057
1057
|
const MailboxesListGrants422 = ValidationError;
|
|
1058
1058
|
const MailboxesListGrants500 = InternalError;
|
|
1059
1059
|
const MailboxesListGrants504 = GatewayTimeoutError;
|
|
1060
|
-
const MailboxesCreateGrantPathParams = /* @__PURE__ */ Schema.Struct({ id: MailboxId });
|
|
1061
|
-
const MailboxesCreateGrantRequestJson = /* @__PURE__ */ Schema.Struct({
|
|
1060
|
+
const MailboxesCreateGrantPathParams = /* @__PURE__ */ (() => Schema.Struct({ id: MailboxId }))();
|
|
1061
|
+
const MailboxesCreateGrantRequestJson = /* @__PURE__ */ (() => Schema.Struct({
|
|
1062
1062
|
userId: UserId,
|
|
1063
1063
|
role: MailboxGrantRole,
|
|
1064
1064
|
sendMode: Schema.optionalKey(Schema.Union([MailboxSendMode, Schema.Null]))
|
|
1065
|
-
});
|
|
1065
|
+
}))();
|
|
1066
1066
|
const MailboxesCreateGrant201 = MailboxGrant;
|
|
1067
1067
|
const MailboxesCreateGrant401 = UnauthorizedError;
|
|
1068
1068
|
const MailboxesCreateGrant403 = ForbiddenError;
|
|
@@ -1071,10 +1071,10 @@ const MailboxesCreateGrant409 = ConflictError;
|
|
|
1071
1071
|
const MailboxesCreateGrant422 = ValidationError;
|
|
1072
1072
|
const MailboxesCreateGrant500 = InternalError;
|
|
1073
1073
|
const MailboxesCreateGrant504 = GatewayTimeoutError;
|
|
1074
|
-
const MailboxesRevokeGrantPathParams = /* @__PURE__ */ Schema.Struct({
|
|
1074
|
+
const MailboxesRevokeGrantPathParams = /* @__PURE__ */ (() => Schema.Struct({
|
|
1075
1075
|
id: MailboxId,
|
|
1076
1076
|
grantId: MailboxGrantId
|
|
1077
|
-
});
|
|
1077
|
+
}))();
|
|
1078
1078
|
const MailboxesRevokeGrant200 = SuccessResponse;
|
|
1079
1079
|
const MailboxesRevokeGrant401 = UnauthorizedError;
|
|
1080
1080
|
const MailboxesRevokeGrant403 = ForbiddenError;
|
|
@@ -1083,14 +1083,14 @@ const MailboxesRevokeGrant409 = ConflictError;
|
|
|
1083
1083
|
const MailboxesRevokeGrant422 = ValidationError;
|
|
1084
1084
|
const MailboxesRevokeGrant500 = InternalError;
|
|
1085
1085
|
const MailboxesRevokeGrant504 = GatewayTimeoutError;
|
|
1086
|
-
const MailboxesUpdateGrantPathParams = /* @__PURE__ */ Schema.Struct({
|
|
1086
|
+
const MailboxesUpdateGrantPathParams = /* @__PURE__ */ (() => Schema.Struct({
|
|
1087
1087
|
id: MailboxId,
|
|
1088
1088
|
grantId: MailboxGrantId
|
|
1089
|
-
});
|
|
1090
|
-
const MailboxesUpdateGrantRequestJson = /* @__PURE__ */ Schema.Struct({
|
|
1089
|
+
}))();
|
|
1090
|
+
const MailboxesUpdateGrantRequestJson = /* @__PURE__ */ (() => Schema.Struct({
|
|
1091
1091
|
role: Schema.optionalKey(Schema.Union([MailboxGrantRole, Schema.Null])),
|
|
1092
1092
|
sendMode: Schema.optionalKey(Schema.Union([MailboxSendMode, Schema.Null]))
|
|
1093
|
-
});
|
|
1093
|
+
}))();
|
|
1094
1094
|
const MailboxesUpdateGrant200 = MailboxGrant;
|
|
1095
1095
|
const MailboxesUpdateGrant401 = UnauthorizedError;
|
|
1096
1096
|
const MailboxesUpdateGrant403 = ForbiddenError;
|
|
@@ -1099,7 +1099,7 @@ const MailboxesUpdateGrant409 = ConflictError;
|
|
|
1099
1099
|
const MailboxesUpdateGrant422 = ValidationError;
|
|
1100
1100
|
const MailboxesUpdateGrant500 = InternalError;
|
|
1101
1101
|
const MailboxesUpdateGrant504 = GatewayTimeoutError;
|
|
1102
|
-
const MailboxesListLabelsPathParams = /* @__PURE__ */ Schema.Struct({ id: MailboxId });
|
|
1102
|
+
const MailboxesListLabelsPathParams = /* @__PURE__ */ (() => Schema.Struct({ id: MailboxId }))();
|
|
1103
1103
|
const MailboxesListLabels200 = MailboxLabelList;
|
|
1104
1104
|
const MailboxesListLabels401 = UnauthorizedError;
|
|
1105
1105
|
const MailboxesListLabels403 = ForbiddenError;
|
|
@@ -1107,8 +1107,8 @@ const MailboxesListLabels404 = ResourceNotFoundError;
|
|
|
1107
1107
|
const MailboxesListLabels422 = ValidationError;
|
|
1108
1108
|
const MailboxesListLabels500 = InternalError;
|
|
1109
1109
|
const MailboxesListLabels504 = GatewayTimeoutError;
|
|
1110
|
-
const MailboxesCreateLabelPathParams = /* @__PURE__ */ Schema.Struct({ id: MailboxId });
|
|
1111
|
-
const MailboxesCreateLabelRequestJson = /* @__PURE__ */ Schema.Struct({
|
|
1110
|
+
const MailboxesCreateLabelPathParams = /* @__PURE__ */ (() => Schema.Struct({ id: MailboxId }))();
|
|
1111
|
+
const MailboxesCreateLabelRequestJson = /* @__PURE__ */ (() => Schema.Struct({
|
|
1112
1112
|
slug: Schema.String,
|
|
1113
1113
|
displayName: Schema.String,
|
|
1114
1114
|
color: Schema.optionalKey(Schema.Union([Schema.Union([Schema.Union([
|
|
@@ -1119,7 +1119,7 @@ const MailboxesCreateLabelRequestJson = /* @__PURE__ */ Schema.Struct({
|
|
|
1119
1119
|
Schema.Literal("important"),
|
|
1120
1120
|
Schema.Literal("neutral")
|
|
1121
1121
|
]), Schema.Null]), Schema.Null]))
|
|
1122
|
-
});
|
|
1122
|
+
}))();
|
|
1123
1123
|
const MailboxesCreateLabel201 = MailboxLabel;
|
|
1124
1124
|
const MailboxesCreateLabel401 = UnauthorizedError;
|
|
1125
1125
|
const MailboxesCreateLabel403 = ForbiddenError;
|
|
@@ -1128,10 +1128,10 @@ const MailboxesCreateLabel409 = ConflictError;
|
|
|
1128
1128
|
const MailboxesCreateLabel422 = ValidationError;
|
|
1129
1129
|
const MailboxesCreateLabel500 = InternalError;
|
|
1130
1130
|
const MailboxesCreateLabel504 = GatewayTimeoutError;
|
|
1131
|
-
const MailboxesDeleteLabelPathParams = /* @__PURE__ */ Schema.Struct({
|
|
1131
|
+
const MailboxesDeleteLabelPathParams = /* @__PURE__ */ (() => Schema.Struct({
|
|
1132
1132
|
id: MailboxId,
|
|
1133
1133
|
labelId: MailboxLabelId
|
|
1134
|
-
});
|
|
1134
|
+
}))();
|
|
1135
1135
|
const MailboxesDeleteLabel200 = SuccessResponse;
|
|
1136
1136
|
const MailboxesDeleteLabel401 = UnauthorizedError;
|
|
1137
1137
|
const MailboxesDeleteLabel403 = ForbiddenError;
|
|
@@ -1139,11 +1139,11 @@ const MailboxesDeleteLabel404 = ResourceNotFoundError;
|
|
|
1139
1139
|
const MailboxesDeleteLabel422 = ValidationError;
|
|
1140
1140
|
const MailboxesDeleteLabel500 = InternalError;
|
|
1141
1141
|
const MailboxesDeleteLabel504 = GatewayTimeoutError;
|
|
1142
|
-
const MailboxesUpdateLabelPathParams = /* @__PURE__ */ Schema.Struct({
|
|
1142
|
+
const MailboxesUpdateLabelPathParams = /* @__PURE__ */ (() => Schema.Struct({
|
|
1143
1143
|
id: MailboxId,
|
|
1144
1144
|
labelId: MailboxLabelId
|
|
1145
|
-
});
|
|
1146
|
-
const MailboxesUpdateLabelRequestJson = /* @__PURE__ */ Schema.Struct({
|
|
1145
|
+
}))();
|
|
1146
|
+
const MailboxesUpdateLabelRequestJson = /* @__PURE__ */ (() => Schema.Struct({
|
|
1147
1147
|
displayName: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
|
|
1148
1148
|
color: Schema.optionalKey(Schema.Union([Schema.Union([Schema.Union([
|
|
1149
1149
|
Schema.Literal("billing"),
|
|
@@ -1153,7 +1153,7 @@ const MailboxesUpdateLabelRequestJson = /* @__PURE__ */ Schema.Struct({
|
|
|
1153
1153
|
Schema.Literal("important"),
|
|
1154
1154
|
Schema.Literal("neutral")
|
|
1155
1155
|
]), Schema.Null]), Schema.Null]))
|
|
1156
|
-
});
|
|
1156
|
+
}))();
|
|
1157
1157
|
const MailboxesUpdateLabel200 = MailboxLabel;
|
|
1158
1158
|
const MailboxesUpdateLabel401 = UnauthorizedError;
|
|
1159
1159
|
const MailboxesUpdateLabel403 = ForbiddenError;
|
|
@@ -1161,9 +1161,9 @@ const MailboxesUpdateLabel404 = ResourceNotFoundError;
|
|
|
1161
1161
|
const MailboxesUpdateLabel422 = ValidationError;
|
|
1162
1162
|
const MailboxesUpdateLabel500 = InternalError;
|
|
1163
1163
|
const MailboxesUpdateLabel504 = GatewayTimeoutError;
|
|
1164
|
-
const MailboxesSendMessagePathParams = /* @__PURE__ */ Schema.Struct({ id: MailboxId });
|
|
1165
|
-
const MailboxesSendMessageHeaders = /* @__PURE__ */ Schema.Struct({ "idempotency-key": Schema.optionalKey(Schema.Union([Schema.String.annotate({ description: "Optional key that makes a mailbox send idempotent for the calling key or member. Repeating the request with the same key and body returns the original action in its current state. Keep the key after a lost response. Reusing it with different content returns 409. Active actions retain their key; terminal receipts remain replayable for 24 hours." }).check(Schema.isPattern(/* @__PURE__ */ new RegExp("^[\\s\\S]{1,255}$")).annotate({ expected: "a string matching the RegExp ^[\\s\\S]{1,255}$" })), Schema.Null])) });
|
|
1166
|
-
const MailboxesSendMessageRequestJson = /* @__PURE__ */ Schema.Struct({
|
|
1164
|
+
const MailboxesSendMessagePathParams = /* @__PURE__ */ (() => Schema.Struct({ id: MailboxId }))();
|
|
1165
|
+
const MailboxesSendMessageHeaders = /* @__PURE__ */ (() => Schema.Struct({ "idempotency-key": Schema.optionalKey(Schema.Union([Schema.String.annotate({ description: "Optional key that makes a mailbox send idempotent for the calling key or member. Repeating the request with the same key and body returns the original action in its current state. Keep the key after a lost response. Reusing it with different content returns 409. Active actions retain their key; terminal receipts remain replayable for 24 hours." }).check(Schema.isPattern(/* @__PURE__ */ new RegExp("^[\\s\\S]{1,255}$")).annotate({ expected: "a string matching the RegExp ^[\\s\\S]{1,255}$" })), Schema.Null])) }))();
|
|
1166
|
+
const MailboxesSendMessageRequestJson = /* @__PURE__ */ (() => Schema.Struct({
|
|
1167
1167
|
channel: Schema.optionalKey(Schema.Union([Schema.Literal("email"), Schema.Null])),
|
|
1168
1168
|
to: Schema.TupleWithRest(Schema.Tuple([Schema.String]), [Schema.String]),
|
|
1169
1169
|
cc: Schema.optionalKey(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
|
|
@@ -1173,29 +1173,29 @@ const MailboxesSendMessageRequestJson = /* @__PURE__ */ Schema.Struct({
|
|
|
1173
1173
|
text: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
|
|
1174
1174
|
html: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
|
|
1175
1175
|
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]))
|
|
1176
|
-
});
|
|
1176
|
+
}))();
|
|
1177
1177
|
const MailboxesSendMessage200 = MailboxSendReceipt;
|
|
1178
1178
|
const MailboxesSendMessage202 = MailboxPendingSendReceipt;
|
|
1179
1179
|
const MailboxesSendMessage401 = UnauthorizedError;
|
|
1180
1180
|
const MailboxesSendMessage402 = PaymentRequiredError;
|
|
1181
|
-
const MailboxesSendMessage403 = /* @__PURE__ */ Schema.Union([
|
|
1181
|
+
const MailboxesSendMessage403 = /* @__PURE__ */ (() => Schema.Union([
|
|
1182
1182
|
FlagDisabledError,
|
|
1183
1183
|
MailboxSendRefusedError,
|
|
1184
1184
|
OnboardingReviewRequiredError,
|
|
1185
1185
|
ForbiddenError
|
|
1186
|
-
]);
|
|
1186
|
+
]))();
|
|
1187
1187
|
const MailboxesSendMessage404 = ResourceNotFoundError;
|
|
1188
|
-
const MailboxesSendMessage409 = /* @__PURE__ */ Schema.Union([MailboxSendConflictError, ConflictError]);
|
|
1188
|
+
const MailboxesSendMessage409 = /* @__PURE__ */ (() => Schema.Union([MailboxSendConflictError, ConflictError]))();
|
|
1189
1189
|
const MailboxesSendMessage422 = ValidationError;
|
|
1190
1190
|
const MailboxesSendMessage429 = RateLimitedError;
|
|
1191
1191
|
const MailboxesSendMessage500 = InternalError;
|
|
1192
1192
|
const MailboxesSendMessage502 = BillingProviderError;
|
|
1193
1193
|
const MailboxesSendMessage503 = SenderNotReadyError;
|
|
1194
1194
|
const MailboxesSendMessage504 = GatewayTimeoutError;
|
|
1195
|
-
const MailboxesGetMessagePathParams = /* @__PURE__ */ Schema.Struct({
|
|
1195
|
+
const MailboxesGetMessagePathParams = /* @__PURE__ */ (() => Schema.Struct({
|
|
1196
1196
|
id: MailboxId,
|
|
1197
1197
|
messageId: MessageId
|
|
1198
|
-
});
|
|
1198
|
+
}))();
|
|
1199
1199
|
const MailboxesGetMessage200 = MailboxMessage;
|
|
1200
1200
|
const MailboxesGetMessage401 = UnauthorizedError;
|
|
1201
1201
|
const MailboxesGetMessage403 = ForbiddenError;
|
|
@@ -1203,11 +1203,11 @@ const MailboxesGetMessage404 = ResourceNotFoundError;
|
|
|
1203
1203
|
const MailboxesGetMessage422 = ValidationError;
|
|
1204
1204
|
const MailboxesGetMessage500 = InternalError;
|
|
1205
1205
|
const MailboxesGetMessage504 = GatewayTimeoutError;
|
|
1206
|
-
const MailboxesGetMessageAttachmentPathParams = /* @__PURE__ */ Schema.Struct({
|
|
1206
|
+
const MailboxesGetMessageAttachmentPathParams = /* @__PURE__ */ (() => Schema.Struct({
|
|
1207
1207
|
id: MailboxId,
|
|
1208
1208
|
messageId: MessageId,
|
|
1209
1209
|
attachmentId: AttachmentId
|
|
1210
|
-
});
|
|
1210
|
+
}))();
|
|
1211
1211
|
const MailboxesGetMessageAttachment200 = MailboxDownloadUrl;
|
|
1212
1212
|
const MailboxesGetMessageAttachment401 = UnauthorizedError;
|
|
1213
1213
|
const MailboxesGetMessageAttachment403 = ForbiddenError;
|
|
@@ -1215,11 +1215,11 @@ const MailboxesGetMessageAttachment404 = ResourceNotFoundError;
|
|
|
1215
1215
|
const MailboxesGetMessageAttachment422 = ValidationError;
|
|
1216
1216
|
const MailboxesGetMessageAttachment500 = InternalError;
|
|
1217
1217
|
const MailboxesGetMessageAttachment504 = GatewayTimeoutError;
|
|
1218
|
-
const MailboxesCopyMessageAttachmentPathParams = /* @__PURE__ */ Schema.Struct({
|
|
1218
|
+
const MailboxesCopyMessageAttachmentPathParams = /* @__PURE__ */ (() => Schema.Struct({
|
|
1219
1219
|
id: MailboxId,
|
|
1220
1220
|
messageId: MessageId,
|
|
1221
1221
|
attachmentId: AttachmentId
|
|
1222
|
-
});
|
|
1222
|
+
}))();
|
|
1223
1223
|
const MailboxesCopyMessageAttachment201 = MailboxCopiedAttachment;
|
|
1224
1224
|
const MailboxesCopyMessageAttachment401 = UnauthorizedError;
|
|
1225
1225
|
const MailboxesCopyMessageAttachment403 = ForbiddenError;
|
|
@@ -1228,10 +1228,10 @@ const MailboxesCopyMessageAttachment409 = ConflictError;
|
|
|
1228
1228
|
const MailboxesCopyMessageAttachment422 = ValidationError;
|
|
1229
1229
|
const MailboxesCopyMessageAttachment500 = InternalError;
|
|
1230
1230
|
const MailboxesCopyMessageAttachment504 = GatewayTimeoutError;
|
|
1231
|
-
const MailboxesDiscardMessagePathParams = /* @__PURE__ */ Schema.Struct({
|
|
1231
|
+
const MailboxesDiscardMessagePathParams = /* @__PURE__ */ (() => Schema.Struct({
|
|
1232
1232
|
id: MailboxId,
|
|
1233
1233
|
messageId: MessageId
|
|
1234
|
-
});
|
|
1234
|
+
}))();
|
|
1235
1235
|
const MailboxesDiscardMessage200 = MailboxQuarantinedMessage;
|
|
1236
1236
|
const MailboxesDiscardMessage401 = UnauthorizedError;
|
|
1237
1237
|
const MailboxesDiscardMessage403 = ForbiddenError;
|
|
@@ -1241,41 +1241,41 @@ const MailboxesDiscardMessage422 = ValidationError;
|
|
|
1241
1241
|
const MailboxesDiscardMessage500 = InternalError;
|
|
1242
1242
|
const MailboxesDiscardMessage502 = BillingProviderError;
|
|
1243
1243
|
const MailboxesDiscardMessage504 = GatewayTimeoutError;
|
|
1244
|
-
const MailboxesForwardPathParams = /* @__PURE__ */ Schema.Struct({
|
|
1244
|
+
const MailboxesForwardPathParams = /* @__PURE__ */ (() => Schema.Struct({
|
|
1245
1245
|
id: MailboxId,
|
|
1246
1246
|
messageId: MessageId
|
|
1247
|
-
});
|
|
1248
|
-
const MailboxesForwardHeaders = /* @__PURE__ */ Schema.Struct({ "idempotency-key": Schema.optionalKey(Schema.Union([Schema.String.annotate({ description: "Optional key that makes a mailbox send idempotent for the calling key or member. Repeating the request with the same key and body returns the original action in its current state. Keep the key after a lost response. Reusing it with different content returns 409. Active actions retain their key; terminal receipts remain replayable for 24 hours." }).check(Schema.isPattern(/* @__PURE__ */ new RegExp("^[\\s\\S]{1,255}$")).annotate({ expected: "a string matching the RegExp ^[\\s\\S]{1,255}$" })), Schema.Null])) });
|
|
1249
|
-
const MailboxesForwardRequestJson = /* @__PURE__ */ Schema.Struct({
|
|
1247
|
+
}))();
|
|
1248
|
+
const MailboxesForwardHeaders = /* @__PURE__ */ (() => Schema.Struct({ "idempotency-key": Schema.optionalKey(Schema.Union([Schema.String.annotate({ description: "Optional key that makes a mailbox send idempotent for the calling key or member. Repeating the request with the same key and body returns the original action in its current state. Keep the key after a lost response. Reusing it with different content returns 409. Active actions retain their key; terminal receipts remain replayable for 24 hours." }).check(Schema.isPattern(/* @__PURE__ */ new RegExp("^[\\s\\S]{1,255}$")).annotate({ expected: "a string matching the RegExp ^[\\s\\S]{1,255}$" })), Schema.Null])) }))();
|
|
1249
|
+
const MailboxesForwardRequestJson = /* @__PURE__ */ (() => Schema.Struct({
|
|
1250
1250
|
to: Schema.TupleWithRest(Schema.Tuple([Schema.String]), [Schema.String]),
|
|
1251
1251
|
cc: Schema.optionalKey(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
|
|
1252
1252
|
bcc: Schema.optionalKey(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
|
|
1253
1253
|
text: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
|
|
1254
1254
|
html: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
|
|
1255
1255
|
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]))
|
|
1256
|
-
});
|
|
1256
|
+
}))();
|
|
1257
1257
|
const MailboxesForward200 = MailboxSendReceipt;
|
|
1258
1258
|
const MailboxesForward202 = MailboxPendingSendReceipt;
|
|
1259
1259
|
const MailboxesForward401 = UnauthorizedError;
|
|
1260
1260
|
const MailboxesForward402 = PaymentRequiredError;
|
|
1261
|
-
const MailboxesForward403 = /* @__PURE__ */ Schema.Union([
|
|
1261
|
+
const MailboxesForward403 = /* @__PURE__ */ (() => Schema.Union([
|
|
1262
1262
|
FlagDisabledError,
|
|
1263
1263
|
MailboxSendRefusedError,
|
|
1264
1264
|
OnboardingReviewRequiredError,
|
|
1265
1265
|
ForbiddenError
|
|
1266
|
-
]);
|
|
1266
|
+
]))();
|
|
1267
1267
|
const MailboxesForward404 = ResourceNotFoundError;
|
|
1268
|
-
const MailboxesForward409 = /* @__PURE__ */ Schema.Union([MailboxSendConflictError, ConflictError]);
|
|
1268
|
+
const MailboxesForward409 = /* @__PURE__ */ (() => Schema.Union([MailboxSendConflictError, ConflictError]))();
|
|
1269
1269
|
const MailboxesForward422 = ValidationError;
|
|
1270
1270
|
const MailboxesForward429 = RateLimitedError;
|
|
1271
1271
|
const MailboxesForward500 = InternalError;
|
|
1272
1272
|
const MailboxesForward502 = BillingProviderError;
|
|
1273
1273
|
const MailboxesForward503 = SenderNotReadyError;
|
|
1274
1274
|
const MailboxesForward504 = GatewayTimeoutError;
|
|
1275
|
-
const MailboxesGetMessageRawPathParams = /* @__PURE__ */ Schema.Struct({
|
|
1275
|
+
const MailboxesGetMessageRawPathParams = /* @__PURE__ */ (() => Schema.Struct({
|
|
1276
1276
|
id: MailboxId,
|
|
1277
1277
|
messageId: MessageId
|
|
1278
|
-
});
|
|
1278
|
+
}))();
|
|
1279
1279
|
const MailboxesGetMessageRaw200 = MailboxDownloadUrl;
|
|
1280
1280
|
const MailboxesGetMessageRaw401 = UnauthorizedError;
|
|
1281
1281
|
const MailboxesGetMessageRaw403 = ForbiddenError;
|
|
@@ -1283,10 +1283,10 @@ const MailboxesGetMessageRaw404 = ResourceNotFoundError;
|
|
|
1283
1283
|
const MailboxesGetMessageRaw422 = ValidationError;
|
|
1284
1284
|
const MailboxesGetMessageRaw500 = InternalError;
|
|
1285
1285
|
const MailboxesGetMessageRaw504 = GatewayTimeoutError;
|
|
1286
|
-
const MailboxesReleaseMessagePathParams = /* @__PURE__ */ Schema.Struct({
|
|
1286
|
+
const MailboxesReleaseMessagePathParams = /* @__PURE__ */ (() => Schema.Struct({
|
|
1287
1287
|
id: MailboxId,
|
|
1288
1288
|
messageId: MessageId
|
|
1289
|
-
});
|
|
1289
|
+
}))();
|
|
1290
1290
|
const MailboxesReleaseMessage200 = MailboxQuarantinedMessage;
|
|
1291
1291
|
const MailboxesReleaseMessage401 = UnauthorizedError;
|
|
1292
1292
|
const MailboxesReleaseMessage403 = ForbiddenError;
|
|
@@ -1295,69 +1295,69 @@ const MailboxesReleaseMessage409 = ConflictError;
|
|
|
1295
1295
|
const MailboxesReleaseMessage422 = ValidationError;
|
|
1296
1296
|
const MailboxesReleaseMessage500 = InternalError;
|
|
1297
1297
|
const MailboxesReleaseMessage504 = GatewayTimeoutError;
|
|
1298
|
-
const MailboxesReplyPathParams = /* @__PURE__ */ Schema.Struct({
|
|
1298
|
+
const MailboxesReplyPathParams = /* @__PURE__ */ (() => Schema.Struct({
|
|
1299
1299
|
id: MailboxId,
|
|
1300
1300
|
messageId: MessageId
|
|
1301
|
-
});
|
|
1302
|
-
const MailboxesReplyHeaders = /* @__PURE__ */ Schema.Struct({ "idempotency-key": Schema.optionalKey(Schema.Union([Schema.String.annotate({ description: "Optional key that makes a mailbox send idempotent for the calling key or member. Repeating the request with the same key and body returns the original action in its current state. Keep the key after a lost response. Reusing it with different content returns 409. Active actions retain their key; terminal receipts remain replayable for 24 hours." }).check(Schema.isPattern(/* @__PURE__ */ new RegExp("^[\\s\\S]{1,255}$")).annotate({ expected: "a string matching the RegExp ^[\\s\\S]{1,255}$" })), Schema.Null])) });
|
|
1303
|
-
const MailboxesReplyRequestJson = /* @__PURE__ */ Schema.Struct({
|
|
1301
|
+
}))();
|
|
1302
|
+
const MailboxesReplyHeaders = /* @__PURE__ */ (() => Schema.Struct({ "idempotency-key": Schema.optionalKey(Schema.Union([Schema.String.annotate({ description: "Optional key that makes a mailbox send idempotent for the calling key or member. Repeating the request with the same key and body returns the original action in its current state. Keep the key after a lost response. Reusing it with different content returns 409. Active actions retain their key; terminal receipts remain replayable for 24 hours." }).check(Schema.isPattern(/* @__PURE__ */ new RegExp("^[\\s\\S]{1,255}$")).annotate({ expected: "a string matching the RegExp ^[\\s\\S]{1,255}$" })), Schema.Null])) }))();
|
|
1303
|
+
const MailboxesReplyRequestJson = /* @__PURE__ */ (() => Schema.Struct({
|
|
1304
1304
|
channel: Schema.optionalKey(Schema.Union([Schema.Literal("email"), Schema.Null])),
|
|
1305
1305
|
cc: Schema.optionalKey(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
|
|
1306
1306
|
bcc: Schema.optionalKey(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
|
|
1307
1307
|
text: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
|
|
1308
1308
|
html: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
|
|
1309
1309
|
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]))
|
|
1310
|
-
});
|
|
1310
|
+
}))();
|
|
1311
1311
|
const MailboxesReply200 = MailboxSendReceipt;
|
|
1312
1312
|
const MailboxesReply202 = MailboxPendingSendReceipt;
|
|
1313
1313
|
const MailboxesReply401 = UnauthorizedError;
|
|
1314
1314
|
const MailboxesReply402 = PaymentRequiredError;
|
|
1315
|
-
const MailboxesReply403 = /* @__PURE__ */ Schema.Union([
|
|
1315
|
+
const MailboxesReply403 = /* @__PURE__ */ (() => Schema.Union([
|
|
1316
1316
|
FlagDisabledError,
|
|
1317
1317
|
MailboxSendRefusedError,
|
|
1318
1318
|
OnboardingReviewRequiredError,
|
|
1319
1319
|
ForbiddenError
|
|
1320
|
-
]);
|
|
1320
|
+
]))();
|
|
1321
1321
|
const MailboxesReply404 = ResourceNotFoundError;
|
|
1322
|
-
const MailboxesReply409 = /* @__PURE__ */ Schema.Union([MailboxSendConflictError, ConflictError]);
|
|
1322
|
+
const MailboxesReply409 = /* @__PURE__ */ (() => Schema.Union([MailboxSendConflictError, ConflictError]))();
|
|
1323
1323
|
const MailboxesReply422 = ValidationError;
|
|
1324
1324
|
const MailboxesReply429 = RateLimitedError;
|
|
1325
1325
|
const MailboxesReply500 = InternalError;
|
|
1326
1326
|
const MailboxesReply502 = BillingProviderError;
|
|
1327
1327
|
const MailboxesReply503 = SenderNotReadyError;
|
|
1328
1328
|
const MailboxesReply504 = GatewayTimeoutError;
|
|
1329
|
-
const MailboxesReplyAllPathParams = /* @__PURE__ */ Schema.Struct({
|
|
1329
|
+
const MailboxesReplyAllPathParams = /* @__PURE__ */ (() => Schema.Struct({
|
|
1330
1330
|
id: MailboxId,
|
|
1331
1331
|
messageId: MessageId
|
|
1332
|
-
});
|
|
1333
|
-
const MailboxesReplyAllHeaders = /* @__PURE__ */ Schema.Struct({ "idempotency-key": Schema.optionalKey(Schema.Union([Schema.String.annotate({ description: "Optional key that makes a mailbox send idempotent for the calling key or member. Repeating the request with the same key and body returns the original action in its current state. Keep the key after a lost response. Reusing it with different content returns 409. Active actions retain their key; terminal receipts remain replayable for 24 hours." }).check(Schema.isPattern(/* @__PURE__ */ new RegExp("^[\\s\\S]{1,255}$")).annotate({ expected: "a string matching the RegExp ^[\\s\\S]{1,255}$" })), Schema.Null])) });
|
|
1334
|
-
const MailboxesReplyAllRequestJson = /* @__PURE__ */ Schema.Struct({
|
|
1332
|
+
}))();
|
|
1333
|
+
const MailboxesReplyAllHeaders = /* @__PURE__ */ (() => Schema.Struct({ "idempotency-key": Schema.optionalKey(Schema.Union([Schema.String.annotate({ description: "Optional key that makes a mailbox send idempotent for the calling key or member. Repeating the request with the same key and body returns the original action in its current state. Keep the key after a lost response. Reusing it with different content returns 409. Active actions retain their key; terminal receipts remain replayable for 24 hours." }).check(Schema.isPattern(/* @__PURE__ */ new RegExp("^[\\s\\S]{1,255}$")).annotate({ expected: "a string matching the RegExp ^[\\s\\S]{1,255}$" })), Schema.Null])) }))();
|
|
1334
|
+
const MailboxesReplyAllRequestJson = /* @__PURE__ */ (() => Schema.Struct({
|
|
1335
1335
|
channel: Schema.optionalKey(Schema.Union([Schema.Literal("email"), Schema.Null])),
|
|
1336
1336
|
cc: Schema.optionalKey(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
|
|
1337
1337
|
bcc: Schema.optionalKey(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
|
|
1338
1338
|
text: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
|
|
1339
1339
|
html: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
|
|
1340
1340
|
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]))
|
|
1341
|
-
});
|
|
1341
|
+
}))();
|
|
1342
1342
|
const MailboxesReplyAll200 = MailboxSendReceipt;
|
|
1343
1343
|
const MailboxesReplyAll202 = MailboxPendingSendReceipt;
|
|
1344
1344
|
const MailboxesReplyAll401 = UnauthorizedError;
|
|
1345
1345
|
const MailboxesReplyAll402 = PaymentRequiredError;
|
|
1346
|
-
const MailboxesReplyAll403 = /* @__PURE__ */ Schema.Union([
|
|
1346
|
+
const MailboxesReplyAll403 = /* @__PURE__ */ (() => Schema.Union([
|
|
1347
1347
|
FlagDisabledError,
|
|
1348
1348
|
MailboxSendRefusedError,
|
|
1349
1349
|
OnboardingReviewRequiredError,
|
|
1350
1350
|
ForbiddenError
|
|
1351
|
-
]);
|
|
1351
|
+
]))();
|
|
1352
1352
|
const MailboxesReplyAll404 = ResourceNotFoundError;
|
|
1353
|
-
const MailboxesReplyAll409 = /* @__PURE__ */ Schema.Union([MailboxSendConflictError, ConflictError]);
|
|
1353
|
+
const MailboxesReplyAll409 = /* @__PURE__ */ (() => Schema.Union([MailboxSendConflictError, ConflictError]))();
|
|
1354
1354
|
const MailboxesReplyAll422 = ValidationError;
|
|
1355
1355
|
const MailboxesReplyAll429 = RateLimitedError;
|
|
1356
1356
|
const MailboxesReplyAll500 = InternalError;
|
|
1357
1357
|
const MailboxesReplyAll502 = BillingProviderError;
|
|
1358
1358
|
const MailboxesReplyAll503 = SenderNotReadyError;
|
|
1359
1359
|
const MailboxesReplyAll504 = GatewayTimeoutError;
|
|
1360
|
-
const MailboxesPausePathParams = /* @__PURE__ */ Schema.Struct({ id: MailboxId });
|
|
1360
|
+
const MailboxesPausePathParams = /* @__PURE__ */ (() => Schema.Struct({ id: MailboxId }))();
|
|
1361
1361
|
const MailboxesPause200 = Mailbox;
|
|
1362
1362
|
const MailboxesPause401 = UnauthorizedError;
|
|
1363
1363
|
const MailboxesPause403 = ForbiddenError;
|
|
@@ -1365,7 +1365,7 @@ const MailboxesPause404 = ResourceNotFoundError;
|
|
|
1365
1365
|
const MailboxesPause422 = ValidationError;
|
|
1366
1366
|
const MailboxesPause500 = InternalError;
|
|
1367
1367
|
const MailboxesPause504 = GatewayTimeoutError;
|
|
1368
|
-
const MailboxesListPoliciesPathParams = /* @__PURE__ */ Schema.Struct({ id: MailboxId });
|
|
1368
|
+
const MailboxesListPoliciesPathParams = /* @__PURE__ */ (() => Schema.Struct({ id: MailboxId }))();
|
|
1369
1369
|
const MailboxesListPolicies200 = MailboxPolicyList;
|
|
1370
1370
|
const MailboxesListPolicies401 = UnauthorizedError;
|
|
1371
1371
|
const MailboxesListPolicies403 = ForbiddenError;
|
|
@@ -1373,13 +1373,13 @@ const MailboxesListPolicies404 = ResourceNotFoundError;
|
|
|
1373
1373
|
const MailboxesListPolicies422 = ValidationError;
|
|
1374
1374
|
const MailboxesListPolicies500 = InternalError;
|
|
1375
1375
|
const MailboxesListPolicies504 = GatewayTimeoutError;
|
|
1376
|
-
const MailboxesCreatePolicyPathParams = /* @__PURE__ */ Schema.Struct({ id: MailboxId });
|
|
1377
|
-
const MailboxesCreatePolicyRequestJson = /* @__PURE__ */ Schema.Struct({
|
|
1376
|
+
const MailboxesCreatePolicyPathParams = /* @__PURE__ */ (() => Schema.Struct({ id: MailboxId }))();
|
|
1377
|
+
const MailboxesCreatePolicyRequestJson = /* @__PURE__ */ (() => Schema.Struct({
|
|
1378
1378
|
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" })),
|
|
1379
1379
|
outcome: MailboxPolicyOutcomeKind,
|
|
1380
1380
|
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])),
|
|
1381
1381
|
enabled: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null]))
|
|
1382
|
-
});
|
|
1382
|
+
}))();
|
|
1383
1383
|
const MailboxesCreatePolicy201 = MailboxPolicy;
|
|
1384
1384
|
const MailboxesCreatePolicy401 = UnauthorizedError;
|
|
1385
1385
|
const MailboxesCreatePolicy403 = ForbiddenError;
|
|
@@ -1388,10 +1388,10 @@ const MailboxesCreatePolicy409 = ConflictError;
|
|
|
1388
1388
|
const MailboxesCreatePolicy422 = ValidationError;
|
|
1389
1389
|
const MailboxesCreatePolicy500 = InternalError;
|
|
1390
1390
|
const MailboxesCreatePolicy504 = GatewayTimeoutError;
|
|
1391
|
-
const MailboxesGetPolicyPathParams = /* @__PURE__ */ Schema.Struct({
|
|
1391
|
+
const MailboxesGetPolicyPathParams = /* @__PURE__ */ (() => Schema.Struct({
|
|
1392
1392
|
id: MailboxId,
|
|
1393
1393
|
policyId: MailboxPolicyId
|
|
1394
|
-
});
|
|
1394
|
+
}))();
|
|
1395
1395
|
const MailboxesGetPolicy200 = MailboxPolicy;
|
|
1396
1396
|
const MailboxesGetPolicy401 = UnauthorizedError;
|
|
1397
1397
|
const MailboxesGetPolicy403 = ForbiddenError;
|
|
@@ -1399,10 +1399,10 @@ const MailboxesGetPolicy404 = ResourceNotFoundError;
|
|
|
1399
1399
|
const MailboxesGetPolicy422 = ValidationError;
|
|
1400
1400
|
const MailboxesGetPolicy500 = InternalError;
|
|
1401
1401
|
const MailboxesGetPolicy504 = GatewayTimeoutError;
|
|
1402
|
-
const MailboxesDeletePolicyPathParams = /* @__PURE__ */ Schema.Struct({
|
|
1402
|
+
const MailboxesDeletePolicyPathParams = /* @__PURE__ */ (() => Schema.Struct({
|
|
1403
1403
|
id: MailboxId,
|
|
1404
1404
|
policyId: MailboxPolicyId
|
|
1405
|
-
});
|
|
1405
|
+
}))();
|
|
1406
1406
|
const MailboxesDeletePolicy200 = SuccessResponse;
|
|
1407
1407
|
const MailboxesDeletePolicy401 = UnauthorizedError;
|
|
1408
1408
|
const MailboxesDeletePolicy403 = ForbiddenError;
|
|
@@ -1410,16 +1410,16 @@ const MailboxesDeletePolicy404 = ResourceNotFoundError;
|
|
|
1410
1410
|
const MailboxesDeletePolicy422 = ValidationError;
|
|
1411
1411
|
const MailboxesDeletePolicy500 = InternalError;
|
|
1412
1412
|
const MailboxesDeletePolicy504 = GatewayTimeoutError;
|
|
1413
|
-
const MailboxesUpdatePolicyPathParams = /* @__PURE__ */ Schema.Struct({
|
|
1413
|
+
const MailboxesUpdatePolicyPathParams = /* @__PURE__ */ (() => Schema.Struct({
|
|
1414
1414
|
id: MailboxId,
|
|
1415
1415
|
policyId: MailboxPolicyId
|
|
1416
|
-
});
|
|
1417
|
-
const MailboxesUpdatePolicyRequestJson = /* @__PURE__ */ Schema.Struct({
|
|
1416
|
+
}))();
|
|
1417
|
+
const MailboxesUpdatePolicyRequestJson = /* @__PURE__ */ (() => Schema.Struct({
|
|
1418
1418
|
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])),
|
|
1419
1419
|
outcome: Schema.optionalKey(Schema.Union([MailboxPolicyOutcomeKind, Schema.Null])),
|
|
1420
1420
|
reason: Schema.optionalKey(Schema.Union([Schema.Union([Schema.String.check(Schema.isMaxCodePoints(512).annotate({ expected: "a string with at most 512 code points" })).check(Schema.isMaxLength(512).annotate({ expected: "a value with a length of at most 512" })), Schema.Null]), Schema.Null])),
|
|
1421
1421
|
enabled: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null]))
|
|
1422
|
-
});
|
|
1422
|
+
}))();
|
|
1423
1423
|
const MailboxesUpdatePolicy200 = MailboxPolicy;
|
|
1424
1424
|
const MailboxesUpdatePolicy401 = UnauthorizedError;
|
|
1425
1425
|
const MailboxesUpdatePolicy403 = ForbiddenError;
|
|
@@ -1427,13 +1427,13 @@ const MailboxesUpdatePolicy404 = ResourceNotFoundError;
|
|
|
1427
1427
|
const MailboxesUpdatePolicy422 = ValidationError;
|
|
1428
1428
|
const MailboxesUpdatePolicy500 = InternalError;
|
|
1429
1429
|
const MailboxesUpdatePolicy504 = GatewayTimeoutError;
|
|
1430
|
-
const MailboxesListQuarantinePathParams = /* @__PURE__ */ Schema.Struct({ id: MailboxId });
|
|
1431
|
-
const MailboxesListQuarantineQuery = /* @__PURE__ */ Schema.Struct({
|
|
1430
|
+
const MailboxesListQuarantinePathParams = /* @__PURE__ */ (() => Schema.Struct({ id: MailboxId }))();
|
|
1431
|
+
const MailboxesListQuarantineQuery = /* @__PURE__ */ (() => Schema.Struct({
|
|
1432
1432
|
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])),
|
|
1433
1433
|
cursor: Schema.optionalKey(Schema.Union([Cursor, Schema.Null])),
|
|
1434
1434
|
after: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
|
|
1435
1435
|
before: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null]))
|
|
1436
|
-
});
|
|
1436
|
+
}))();
|
|
1437
1437
|
const MailboxesListQuarantine200 = MailboxQuarantinePage;
|
|
1438
1438
|
const MailboxesListQuarantine401 = UnauthorizedError;
|
|
1439
1439
|
const MailboxesListQuarantine403 = ForbiddenError;
|
|
@@ -1441,7 +1441,7 @@ const MailboxesListQuarantine404 = ResourceNotFoundError;
|
|
|
1441
1441
|
const MailboxesListQuarantine422 = ValidationError;
|
|
1442
1442
|
const MailboxesListQuarantine500 = InternalError;
|
|
1443
1443
|
const MailboxesListQuarantine504 = GatewayTimeoutError;
|
|
1444
|
-
const MailboxesResumePathParams = /* @__PURE__ */ Schema.Struct({ id: MailboxId });
|
|
1444
|
+
const MailboxesResumePathParams = /* @__PURE__ */ (() => Schema.Struct({ id: MailboxId }))();
|
|
1445
1445
|
const MailboxesResume200 = Mailbox;
|
|
1446
1446
|
const MailboxesResume401 = UnauthorizedError;
|
|
1447
1447
|
const MailboxesResume403 = ForbiddenError;
|
|
@@ -1449,8 +1449,8 @@ const MailboxesResume404 = ResourceNotFoundError;
|
|
|
1449
1449
|
const MailboxesResume422 = ValidationError;
|
|
1450
1450
|
const MailboxesResume500 = InternalError;
|
|
1451
1451
|
const MailboxesResume504 = GatewayTimeoutError;
|
|
1452
|
-
const MailboxesListThreadsPathParams = /* @__PURE__ */ Schema.Struct({ id: MailboxId });
|
|
1453
|
-
const MailboxesListThreadsQuery = /* @__PURE__ */ Schema.Struct({
|
|
1452
|
+
const MailboxesListThreadsPathParams = /* @__PURE__ */ (() => Schema.Struct({ id: MailboxId }))();
|
|
1453
|
+
const MailboxesListThreadsQuery = /* @__PURE__ */ (() => Schema.Struct({
|
|
1454
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])),
|
|
1455
1455
|
cursor: Schema.optionalKey(Schema.Union([Cursor, Schema.Null])),
|
|
1456
1456
|
after: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
|
|
@@ -1461,7 +1461,7 @@ const MailboxesListThreadsQuery = /* @__PURE__ */ Schema.Struct({
|
|
|
1461
1461
|
unread: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
1462
1462
|
starred: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
1463
1463
|
snoozed: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null]))
|
|
1464
|
-
});
|
|
1464
|
+
}))();
|
|
1465
1465
|
const MailboxesListThreads200 = MailboxThreadPage;
|
|
1466
1466
|
const MailboxesListThreads401 = UnauthorizedError;
|
|
1467
1467
|
const MailboxesListThreads403 = ForbiddenError;
|
|
@@ -1469,10 +1469,10 @@ const MailboxesListThreads404 = ResourceNotFoundError;
|
|
|
1469
1469
|
const MailboxesListThreads422 = ValidationError;
|
|
1470
1470
|
const MailboxesListThreads500 = InternalError;
|
|
1471
1471
|
const MailboxesListThreads504 = GatewayTimeoutError;
|
|
1472
|
-
const MailboxesGetThreadPathParams = /* @__PURE__ */ Schema.Struct({
|
|
1472
|
+
const MailboxesGetThreadPathParams = /* @__PURE__ */ (() => Schema.Struct({
|
|
1473
1473
|
id: MailboxId,
|
|
1474
1474
|
threadId: MailboxThreadId
|
|
1475
|
-
});
|
|
1475
|
+
}))();
|
|
1476
1476
|
const MailboxesGetThread200 = MailboxThread;
|
|
1477
1477
|
const MailboxesGetThread401 = UnauthorizedError;
|
|
1478
1478
|
const MailboxesGetThread403 = ForbiddenError;
|
|
@@ -1480,17 +1480,17 @@ const MailboxesGetThread404 = ResourceNotFoundError;
|
|
|
1480
1480
|
const MailboxesGetThread422 = ValidationError;
|
|
1481
1481
|
const MailboxesGetThread500 = InternalError;
|
|
1482
1482
|
const MailboxesGetThread504 = GatewayTimeoutError;
|
|
1483
|
-
const MailboxesUpdateThreadPathParams = /* @__PURE__ */ Schema.Struct({
|
|
1483
|
+
const MailboxesUpdateThreadPathParams = /* @__PURE__ */ (() => Schema.Struct({
|
|
1484
1484
|
id: MailboxId,
|
|
1485
1485
|
threadId: MailboxThreadId
|
|
1486
|
-
});
|
|
1487
|
-
const MailboxesUpdateThreadRequestJson = /* @__PURE__ */ Schema.Struct({
|
|
1486
|
+
}))();
|
|
1487
|
+
const MailboxesUpdateThreadRequestJson = /* @__PURE__ */ (() => Schema.Struct({
|
|
1488
1488
|
folder: Schema.optionalKey(Schema.Union([MailboxThreadFolder, Schema.Null])),
|
|
1489
1489
|
priority: Schema.optionalKey(Schema.Union([MailboxThreadPriority, Schema.Null])),
|
|
1490
1490
|
read: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
1491
1491
|
starred: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
1492
1492
|
snoozedUntil: Schema.optionalKey(Schema.Union([Schema.Union([Schema.String, Schema.Null]), Schema.Null]))
|
|
1493
|
-
});
|
|
1493
|
+
}))();
|
|
1494
1494
|
const MailboxesUpdateThread200 = MailboxThreadState;
|
|
1495
1495
|
const MailboxesUpdateThread401 = UnauthorizedError;
|
|
1496
1496
|
const MailboxesUpdateThread403 = ForbiddenError;
|
|
@@ -1498,14 +1498,14 @@ const MailboxesUpdateThread404 = ResourceNotFoundError;
|
|
|
1498
1498
|
const MailboxesUpdateThread422 = ValidationError;
|
|
1499
1499
|
const MailboxesUpdateThread500 = InternalError;
|
|
1500
1500
|
const MailboxesUpdateThread504 = GatewayTimeoutError;
|
|
1501
|
-
const MailboxesGetThreadContentPathParams = /* @__PURE__ */ Schema.Struct({
|
|
1501
|
+
const MailboxesGetThreadContentPathParams = /* @__PURE__ */ (() => Schema.Struct({
|
|
1502
1502
|
id: MailboxId,
|
|
1503
1503
|
threadId: MailboxThreadId
|
|
1504
|
-
});
|
|
1505
|
-
const MailboxesGetThreadContentQuery = /* @__PURE__ */ Schema.Struct({
|
|
1504
|
+
}))();
|
|
1505
|
+
const MailboxesGetThreadContentQuery = /* @__PURE__ */ (() => Schema.Struct({
|
|
1506
1506
|
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])),
|
|
1507
1507
|
cursor: Schema.optionalKey(Schema.Union([Cursor, Schema.Null]))
|
|
1508
|
-
});
|
|
1508
|
+
}))();
|
|
1509
1509
|
const MailboxesGetThreadContent200 = MailboxThreadContentPage;
|
|
1510
1510
|
const MailboxesGetThreadContent401 = UnauthorizedError;
|
|
1511
1511
|
const MailboxesGetThreadContent403 = ForbiddenError;
|
|
@@ -1513,11 +1513,11 @@ const MailboxesGetThreadContent404 = ResourceNotFoundError;
|
|
|
1513
1513
|
const MailboxesGetThreadContent422 = ValidationError;
|
|
1514
1514
|
const MailboxesGetThreadContent500 = InternalError;
|
|
1515
1515
|
const MailboxesGetThreadContent504 = GatewayTimeoutError;
|
|
1516
|
-
const MailboxesAddThreadLabelsPathParams = /* @__PURE__ */ Schema.Struct({
|
|
1516
|
+
const MailboxesAddThreadLabelsPathParams = /* @__PURE__ */ (() => Schema.Struct({
|
|
1517
1517
|
id: MailboxId,
|
|
1518
1518
|
threadId: MailboxThreadId
|
|
1519
|
-
});
|
|
1520
|
-
const MailboxesAddThreadLabelsRequestJson = /* @__PURE__ */ Schema.Struct({ labels: Schema.TupleWithRest(Schema.Tuple([MailboxLabelId]), [MailboxLabelId]) });
|
|
1519
|
+
}))();
|
|
1520
|
+
const MailboxesAddThreadLabelsRequestJson = /* @__PURE__ */ (() => Schema.Struct({ labels: Schema.TupleWithRest(Schema.Tuple([MailboxLabelId]), [MailboxLabelId]) }))();
|
|
1521
1521
|
const MailboxesAddThreadLabels200 = MailboxThreadState;
|
|
1522
1522
|
const MailboxesAddThreadLabels401 = UnauthorizedError;
|
|
1523
1523
|
const MailboxesAddThreadLabels403 = ForbiddenError;
|
|
@@ -1525,11 +1525,11 @@ const MailboxesAddThreadLabels404 = ResourceNotFoundError;
|
|
|
1525
1525
|
const MailboxesAddThreadLabels422 = ValidationError;
|
|
1526
1526
|
const MailboxesAddThreadLabels500 = InternalError;
|
|
1527
1527
|
const MailboxesAddThreadLabels504 = GatewayTimeoutError;
|
|
1528
|
-
const MailboxesRemoveThreadLabelsPathParams = /* @__PURE__ */ Schema.Struct({
|
|
1528
|
+
const MailboxesRemoveThreadLabelsPathParams = /* @__PURE__ */ (() => Schema.Struct({
|
|
1529
1529
|
id: MailboxId,
|
|
1530
1530
|
threadId: MailboxThreadId
|
|
1531
|
-
});
|
|
1532
|
-
const MailboxesRemoveThreadLabelsRequestJson = /* @__PURE__ */ Schema.Struct({ labels: Schema.TupleWithRest(Schema.Tuple([MailboxLabelId]), [MailboxLabelId]) });
|
|
1531
|
+
}))();
|
|
1532
|
+
const MailboxesRemoveThreadLabelsRequestJson = /* @__PURE__ */ (() => Schema.Struct({ labels: Schema.TupleWithRest(Schema.Tuple([MailboxLabelId]), [MailboxLabelId]) }))();
|
|
1533
1533
|
const MailboxesRemoveThreadLabels200 = MailboxThreadState;
|
|
1534
1534
|
const MailboxesRemoveThreadLabels401 = UnauthorizedError;
|
|
1535
1535
|
const MailboxesRemoveThreadLabels403 = ForbiddenError;
|
|
@@ -1537,14 +1537,14 @@ const MailboxesRemoveThreadLabels404 = ResourceNotFoundError;
|
|
|
1537
1537
|
const MailboxesRemoveThreadLabels422 = ValidationError;
|
|
1538
1538
|
const MailboxesRemoveThreadLabels500 = InternalError;
|
|
1539
1539
|
const MailboxesRemoveThreadLabels504 = GatewayTimeoutError;
|
|
1540
|
-
const MailboxesListThreadMessagesPathParams = /* @__PURE__ */ Schema.Struct({
|
|
1540
|
+
const MailboxesListThreadMessagesPathParams = /* @__PURE__ */ (() => Schema.Struct({
|
|
1541
1541
|
id: MailboxId,
|
|
1542
1542
|
threadId: MailboxThreadId
|
|
1543
|
-
});
|
|
1544
|
-
const MailboxesListThreadMessagesQuery = /* @__PURE__ */ Schema.Struct({
|
|
1543
|
+
}))();
|
|
1544
|
+
const MailboxesListThreadMessagesQuery = /* @__PURE__ */ (() => Schema.Struct({
|
|
1545
1545
|
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])),
|
|
1546
1546
|
cursor: Schema.optionalKey(Schema.Union([Cursor, Schema.Null]))
|
|
1547
|
-
});
|
|
1547
|
+
}))();
|
|
1548
1548
|
const MailboxesListThreadMessages200 = MailboxMessagePage;
|
|
1549
1549
|
const MailboxesListThreadMessages401 = UnauthorizedError;
|
|
1550
1550
|
const MailboxesListThreadMessages403 = ForbiddenError;
|
|
@@ -1552,14 +1552,14 @@ const MailboxesListThreadMessages404 = ResourceNotFoundError;
|
|
|
1552
1552
|
const MailboxesListThreadMessages422 = ValidationError;
|
|
1553
1553
|
const MailboxesListThreadMessages500 = InternalError;
|
|
1554
1554
|
const MailboxesListThreadMessages504 = GatewayTimeoutError;
|
|
1555
|
-
const MailboxesListThreadNotesPathParams = /* @__PURE__ */ Schema.Struct({
|
|
1555
|
+
const MailboxesListThreadNotesPathParams = /* @__PURE__ */ (() => Schema.Struct({
|
|
1556
1556
|
id: MailboxId,
|
|
1557
1557
|
threadId: MailboxThreadId
|
|
1558
|
-
});
|
|
1559
|
-
const MailboxesListThreadNotesQuery = /* @__PURE__ */ Schema.Struct({
|
|
1558
|
+
}))();
|
|
1559
|
+
const MailboxesListThreadNotesQuery = /* @__PURE__ */ (() => Schema.Struct({
|
|
1560
1560
|
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])),
|
|
1561
1561
|
cursor: Schema.optionalKey(Schema.Union([Cursor, Schema.Null]))
|
|
1562
|
-
});
|
|
1562
|
+
}))();
|
|
1563
1563
|
const MailboxesListThreadNotes200 = MailboxNotePage;
|
|
1564
1564
|
const MailboxesListThreadNotes401 = UnauthorizedError;
|
|
1565
1565
|
const MailboxesListThreadNotes403 = ForbiddenError;
|
|
@@ -1567,15 +1567,15 @@ const MailboxesListThreadNotes404 = ResourceNotFoundError;
|
|
|
1567
1567
|
const MailboxesListThreadNotes422 = ValidationError;
|
|
1568
1568
|
const MailboxesListThreadNotes500 = InternalError;
|
|
1569
1569
|
const MailboxesListThreadNotes504 = GatewayTimeoutError;
|
|
1570
|
-
const MailboxesCreateNotePathParams = /* @__PURE__ */ Schema.Struct({
|
|
1570
|
+
const MailboxesCreateNotePathParams = /* @__PURE__ */ (() => Schema.Struct({
|
|
1571
1571
|
id: MailboxId,
|
|
1572
1572
|
threadId: MailboxThreadId
|
|
1573
|
-
});
|
|
1574
|
-
const MailboxesCreateNoteRequestJson = /* @__PURE__ */ Schema.Struct({
|
|
1573
|
+
}))();
|
|
1574
|
+
const MailboxesCreateNoteRequestJson = /* @__PURE__ */ (() => Schema.Struct({
|
|
1575
1575
|
body: Schema.String,
|
|
1576
1576
|
color: Schema.optionalKey(Schema.Union([Schema.Union([Schema.String, Schema.Null]), Schema.Null])),
|
|
1577
1577
|
pinned: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null]))
|
|
1578
|
-
});
|
|
1578
|
+
}))();
|
|
1579
1579
|
const MailboxesCreateNote201 = MailboxNote;
|
|
1580
1580
|
const MailboxesCreateNote401 = UnauthorizedError;
|
|
1581
1581
|
const MailboxesCreateNote403 = ForbiddenError;
|
|
@@ -1583,11 +1583,11 @@ const MailboxesCreateNote404 = ResourceNotFoundError;
|
|
|
1583
1583
|
const MailboxesCreateNote422 = ValidationError;
|
|
1584
1584
|
const MailboxesCreateNote500 = InternalError;
|
|
1585
1585
|
const MailboxesCreateNote504 = GatewayTimeoutError;
|
|
1586
|
-
const MailboxesDeleteNotePathParams = /* @__PURE__ */ Schema.Struct({
|
|
1586
|
+
const MailboxesDeleteNotePathParams = /* @__PURE__ */ (() => Schema.Struct({
|
|
1587
1587
|
id: MailboxId,
|
|
1588
1588
|
threadId: MailboxThreadId,
|
|
1589
1589
|
noteId: MailboxNoteId
|
|
1590
|
-
});
|
|
1590
|
+
}))();
|
|
1591
1591
|
const MailboxesDeleteNote200 = SuccessResponse;
|
|
1592
1592
|
const MailboxesDeleteNote401 = UnauthorizedError;
|
|
1593
1593
|
const MailboxesDeleteNote403 = ForbiddenError;
|
|
@@ -1595,16 +1595,16 @@ const MailboxesDeleteNote404 = ResourceNotFoundError;
|
|
|
1595
1595
|
const MailboxesDeleteNote422 = ValidationError;
|
|
1596
1596
|
const MailboxesDeleteNote500 = InternalError;
|
|
1597
1597
|
const MailboxesDeleteNote504 = GatewayTimeoutError;
|
|
1598
|
-
const MailboxesUpdateNotePathParams = /* @__PURE__ */ Schema.Struct({
|
|
1598
|
+
const MailboxesUpdateNotePathParams = /* @__PURE__ */ (() => Schema.Struct({
|
|
1599
1599
|
id: MailboxId,
|
|
1600
1600
|
threadId: MailboxThreadId,
|
|
1601
1601
|
noteId: MailboxNoteId
|
|
1602
|
-
});
|
|
1603
|
-
const MailboxesUpdateNoteRequestJson = /* @__PURE__ */ Schema.Struct({
|
|
1602
|
+
}))();
|
|
1603
|
+
const MailboxesUpdateNoteRequestJson = /* @__PURE__ */ (() => Schema.Struct({
|
|
1604
1604
|
body: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
|
|
1605
1605
|
color: Schema.optionalKey(Schema.Union([Schema.Union([Schema.String, Schema.Null]), Schema.Null])),
|
|
1606
1606
|
pinned: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null]))
|
|
1607
|
-
});
|
|
1607
|
+
}))();
|
|
1608
1608
|
const MailboxesUpdateNote200 = MailboxNote;
|
|
1609
1609
|
const MailboxesUpdateNote401 = UnauthorizedError;
|
|
1610
1610
|
const MailboxesUpdateNote403 = ForbiddenError;
|