samva 0.43.3 → 0.45.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/AGENTS.md +3 -0
- package/README.md +4 -0
- package/dist/client/sdk.gen.d.ts +308 -2
- package/dist/client/sdk.gen.js +937 -2
- package/dist/client/types.gen.d.ts +2294 -54
- package/dist/effect/agents.d.ts +86 -86
- package/dist/effect/agents.js +2 -2
- package/dist/effect/api-keys.d.ts +36 -36
- package/dist/effect/api-keys.js +2 -2
- package/dist/effect/attachments.d.ts +3 -3
- package/dist/effect/attachments.js +1 -1
- package/dist/effect/campaigns.d.ts +250 -250
- package/dist/effect/campaigns.js +3 -3
- package/dist/effect/categories.d.ts +23 -5
- package/dist/effect/categories.js +11 -20
- package/dist/effect/contact-groups.d.ts +44 -44
- package/dist/effect/contact-groups.js +3 -3
- package/dist/effect/contacts.d.ts +3 -3
- package/dist/effect/contacts.js +1 -1
- package/dist/effect/conversations.d.ts +53 -53
- package/dist/effect/conversations.js +1 -1
- package/dist/effect/email.d.ts +99 -97
- package/dist/effect/email.js +21 -21
- package/dist/effect/errors.d.ts +1 -1
- package/dist/effect/errors.js +2 -2
- package/dist/effect/extension-installations.d.ts +6 -6
- package/dist/effect/extension-installations.js +1 -1
- package/dist/effect/generated/campaigns.js +2 -2
- package/dist/effect/generated/email.d.ts +7 -0
- package/dist/effect/generated/email.js +8 -9
- package/dist/effect/generated/index.d.ts +9 -1
- package/dist/effect/generated/journeys.d.ts +1 -3
- package/dist/effect/generated/journeys.js +2 -6
- package/dist/effect/generated/mailboxes.d.ts +14 -14
- package/dist/effect/generated/mailboxes.js +2 -0
- package/dist/effect/generated/messages.d.ts +1 -5
- package/dist/effect/generated/messages.js +2 -10
- package/dist/effect/generated/newsletter-issues.js +29 -29
- package/dist/effect/generated/organizations.js +2 -2
- package/dist/effect/generated/scheduled-messages.js +3 -3
- package/dist/effect/generated/shared.d.ts +112 -2
- package/dist/effect/generated/shared.js +66 -25
- package/dist/effect/generated/subscriptions.js +4 -4
- package/dist/effect/generated/template-registrations.d.ts +651 -0
- package/dist/effect/generated/template-registrations.js +138 -0
- package/dist/effect/generated/templates.d.ts +789 -6
- package/dist/effect/generated/templates.js +156 -54
- package/dist/effect/generated/whats-app-flows.d.ts +1838 -0
- package/dist/effect/generated/whats-app-flows.js +338 -0
- package/dist/effect/generated/whats-app-setup-links.d.ts +705 -0
- package/dist/effect/generated/whats-app-setup-links.js +150 -0
- package/dist/effect/generated/whats-app.d.ts +2089 -0
- package/dist/effect/generated/whats-app.js +633 -0
- package/dist/effect/generated-metadata.d.ts +257 -0
- package/dist/effect/generated-metadata.js +223 -48
- package/dist/effect/index.d.ts +4 -0
- package/dist/effect/index.js +6 -2
- package/dist/effect/mailboxes.d.ts +301 -301
- package/dist/effect/mailboxes.js +3 -3
- package/dist/effect/media.d.ts +4 -4
- package/dist/effect/media.js +2 -2
- package/dist/effect/messages.d.ts +17 -17
- package/dist/effect/messages.js +4 -4
- package/dist/effect/namespaces.d.ts +5 -5
- package/dist/effect/namespaces.js +1 -1
- package/dist/effect/newsletter-issues.d.ts +8 -8
- package/dist/effect/newsletter-issues.js +2 -2
- package/dist/effect/newsletters.d.ts +3 -3
- package/dist/effect/newsletters.js +1 -1
- package/dist/effect/organizations.d.ts +10 -10
- package/dist/effect/organizations.js +1 -1
- package/dist/effect/runtime.d.ts +2 -0
- package/dist/effect/runtime.js +2 -1
- package/dist/effect/scheduled-messages.d.ts +839 -839
- package/dist/effect/scheduled-messages.js +1 -1
- package/dist/effect/template-registrations.d.ts +12 -0
- package/dist/effect/template-registrations.js +16 -0
- package/dist/effect/templates.d.ts +66 -56
- package/dist/effect/templates.js +16 -12
- package/dist/effect/topic-forms.d.ts +4 -4
- package/dist/effect/topic-forms.js +1 -1
- package/dist/effect/topics.d.ts +11 -11
- package/dist/effect/topics.js +2 -2
- package/dist/effect/webhooks.d.ts +18 -18
- package/dist/effect/webhooks.js +3 -3
- package/dist/effect/whatsapp-flows.d.ts +34 -0
- package/dist/effect/whatsapp-flows.js +30 -0
- package/dist/effect/whatsapp-setup-links.d.ts +66 -0
- package/dist/effect/whatsapp-setup-links.js +18 -0
- package/dist/effect/whatsapp.d.ts +51 -0
- package/dist/effect/whatsapp.js +34 -0
- package/dist/index.js +2 -2
- package/dist/mailbox/types.d.ts +2 -1
- package/dist/package.js +1 -1
- package/dist/promises/client.d.ts +9 -1
- package/dist/promises/client.js +11 -3
- package/dist/promises/errors.gen.d.ts +38 -2
- package/dist/promises/errors.gen.js +160 -3
- package/dist/promises/index.js +2 -2
- package/dist/promises/types.gen.d.ts +1 -1
- package/dist/service-map.d.ts +923 -734
- package/dist/service-map.js +288 -233
- package/package.json +27 -11
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ApiKeyId, ApiKeySecurityMiddleware, AttachmentId, BillingProviderError, CampaignId, CampaignRunId, ConflictError, ContactId, ConversationId, DeliveryUnavailableError, EmailBccRecipients, EmailCcRecipients, EmailContent, EmailRecipients, EmailSendMessagePayload, EmailSender, EmailTrackingOverrideV1, ExternalServiceError, FlagDisabledError, ForbiddenError, FromAddressRequiredError, GatewayTimeoutError, InternalError, JsonValue, MalformedRequestError, MediaId, MessageId, MessageMetadata, MessagePage, NamespaceId, OnboardingReviewRequiredError, PaymentRequiredError, RateLimitedError, ResourceNotFoundError, SenderNotReadyError, SkippedRecipient, SmsSendMessagePayload, UnauthorizedError, UserId, ValidationError, WhatsAppButtonsMessage, WhatsAppCtaUrlMessage, WhatsAppFlowId, WhatsAppListMessage, WhatsAppSendMessagePayload, WhatsAppTextHeader } from "./shared.js";
|
|
1
|
+
import { ApiKeyId, ApiKeySecurityMiddleware, AttachmentId, BillingProviderError, CampaignId, CampaignRunId, ConflictError, ContactId, ConversationId, DeliveryUnavailableError, EmailBccRecipients, EmailCcRecipients, EmailContent, EmailRecipients, EmailSendMessagePayload, EmailSender, EmailTrackingOverrideV1, ExternalServiceError, FlagDisabledError, ForbiddenError, FromAddressRequiredError, GatewayTimeoutError, InternalError, JsonValue, MalformedRequestError, MediaId, MessageDeliveryId, MessageId, MessageMetadata, MessagePage, NamespaceId, OnboardingReviewRequiredError, PaymentRequiredError, RateLimitedError, ResourceNotFoundError, SenderNotReadyError, SkippedRecipient, SmsSendMessagePayload, UnauthorizedError, UserId, ValidationError, WhatsAppButtonsMessage, WhatsAppCtaUrlMessage, WhatsAppFlowId, WhatsAppFlowVersionId, WhatsAppListMessage, WhatsAppSendMessagePayload, WhatsAppTextHeader } from "./shared.js";
|
|
2
2
|
import { HttpApiEndpoint, HttpApiGroup, HttpApiSchema, OpenApi } from "effect/http-api";
|
|
3
3
|
import * as Schema from "effect/Schema";
|
|
4
4
|
// src/effect/generated/messages.ts
|
|
@@ -20,10 +20,6 @@ const SmsMessageContent = /* @__PURE__ */ (() => Schema.Struct({
|
|
|
20
20
|
unicode: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
21
21
|
parts: Schema.optionalKey(Schema.Union([Schema.Finite.check(Schema.isFinite().annotate({ expected: "a finite number" })), Schema.Null]))
|
|
22
22
|
}).annotate({ identifier: "SmsMessageContent" }))();
|
|
23
|
-
const WhatsAppFlowVersionId = /* @__PURE__ */ (() => Schema.String.check(Schema.isPattern(new globalThis.RegExp("^wafver_[0-9a-hjkmnp-tv-z]{16,24}$", "u")).annotate({
|
|
24
|
-
expected: "a string matching the RegExp ^wafver_[0-9a-hjkmnp-tv-z]{16,24}$",
|
|
25
|
-
identifier: "WhatsAppFlowVersionId"
|
|
26
|
-
})).pipe(Schema.brand("WhatsAppFlowVersionId")))();
|
|
27
23
|
const WhatsAppStoredLocation = /* @__PURE__ */ (() => Schema.Struct({
|
|
28
24
|
latitude: Schema.Finite.check(Schema.isFinite().annotate({ expected: "a finite number" })),
|
|
29
25
|
longitude: Schema.Finite.check(Schema.isFinite().annotate({ expected: "a finite number" })),
|
|
@@ -88,10 +84,6 @@ const WhatsAppStructuredContent = /* @__PURE__ */ (() => Schema.Struct({
|
|
|
88
84
|
type: Schema.String,
|
|
89
85
|
data: Schema.Record(Schema.String, JsonValue)
|
|
90
86
|
}).annotate({ identifier: "WhatsAppStructuredContent" }))();
|
|
91
|
-
const MessageDeliveryId = /* @__PURE__ */ (() => Schema.String.check(Schema.isPattern(new globalThis.RegExp("^mdel_[0-9a-hjkmnp-tv-z]{16,24}$", "u")).annotate({
|
|
92
|
-
expected: "a string matching the RegExp ^mdel_[0-9a-hjkmnp-tv-z]{16,24}$",
|
|
93
|
-
identifier: "MessageDeliveryId"
|
|
94
|
-
})).pipe(Schema.brand("MessageDeliveryId")))();
|
|
95
87
|
const MessageDeliveryError = /* @__PURE__ */ (() => Schema.Struct({
|
|
96
88
|
code: Schema.Union([Schema.String, Schema.Null]),
|
|
97
89
|
message: Schema.Union([Schema.String, Schema.Null]),
|
|
@@ -909,6 +901,6 @@ var MessagesGroup = class extends HttpApiGroup.make("Messages").add(HttpApiEndpo
|
|
|
909
901
|
MessagesValidateEmail504.pipe(HttpApiSchema.status(504))
|
|
910
902
|
]
|
|
911
903
|
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "messages.validateEmail").annotate(OpenApi.Summary, "Validate an email message").annotate(OpenApi.Description, "Resolves recipients, sender, and inline or published-template content without sending anything, creating contacts or messages, or counting toward your quota.")).annotate(OpenApi.Description, "Send messages and read their delivery state and timeline.") {};
|
|
912
|
-
export { DeliveryErrorDetails, EmailAddress, EstimatedProviderCost, Message, MessageAddress, MessageContent, MessageDelivery, MessageDeliveryError,
|
|
904
|
+
export { DeliveryErrorDetails, EmailAddress, EstimatedProviderCost, Message, MessageAddress, MessageContent, MessageDelivery, MessageDeliveryError, MessageDeliveryList, MessageEventId, MessageEventPage, MessageReceipt, MessageSender, MessageSubmission, MessagesGet200, MessagesGet400, MessagesGet401, MessagesGet403, MessagesGet404, MessagesGet422, MessagesGet500, MessagesGet504, MessagesGetContent200, MessagesGetContent400, MessagesGetContent401, MessagesGetContent403, MessagesGetContent404, MessagesGetContent422, MessagesGetContent500, MessagesGetContent504, MessagesGetContentPathParams, MessagesGetEmail200, MessagesGetEmail400, MessagesGetEmail401, MessagesGetEmail403, MessagesGetEmail404, MessagesGetEmail422, MessagesGetEmail500, MessagesGetEmail504, MessagesGetEmailPathParams, MessagesGetEmailQuery, MessagesGetEvents200, MessagesGetEvents400, MessagesGetEvents401, MessagesGetEvents403, MessagesGetEvents404, MessagesGetEvents422, MessagesGetEvents500, MessagesGetEvents504, MessagesGetEventsPathParams, MessagesGetEventsQuery, MessagesGetPathParams, MessagesGetStatus200, MessagesGetStatus400, MessagesGetStatus401, MessagesGetStatus403, MessagesGetStatus404, MessagesGetStatus422, MessagesGetStatus500, MessagesGetStatus504, MessagesGetStatusPathParams, MessagesGroup, MessagesList200, MessagesList400, MessagesList401, MessagesList403, MessagesList422, MessagesList500, MessagesList504, MessagesListDeliveries200, MessagesListDeliveries400, MessagesListDeliveries401, MessagesListDeliveries403, MessagesListDeliveries404, MessagesListDeliveries422, MessagesListDeliveries500, MessagesListDeliveries504, MessagesListDeliveriesPathParams, MessagesListQuery, MessagesRemove200, MessagesRemove400, MessagesRemove401, MessagesRemove403, MessagesRemove404, MessagesRemove422, MessagesRemove500, MessagesRemove502, MessagesRemove504, MessagesRemovePathParams, MessagesSend201, MessagesSend400, MessagesSend401, MessagesSend402, MessagesSend403, MessagesSend404, MessagesSend409, MessagesSend422, MessagesSend429, MessagesSend500, MessagesSend502, MessagesSend503, MessagesSend504, MessagesSendHeaders, MessagesSendRequestJson, MessagesValidateEmail200, MessagesValidateEmail400, MessagesValidateEmail401, MessagesValidateEmail403, MessagesValidateEmail404, MessagesValidateEmail422, MessagesValidateEmail500, MessagesValidateEmail503, MessagesValidateEmail504, MessagesValidateEmailRequestJson, SmsMessageContent, SubmissionClient, SubmissionCredential, ValidateEmailResponse, WhatsAppMessageContent, WhatsAppMessageReference, WhatsAppReceivedFlowResponse, WhatsAppReceivedReply, WhatsAppStoredContactCard, WhatsAppStoredFlowMessage, WhatsAppStoredInteractive, WhatsAppStoredLocation, WhatsAppStoredMedia, WhatsAppStoredReaction, WhatsAppStructuredContent };
|
|
913
905
|
|
|
914
906
|
//# sourceMappingURL=messages.js.map
|
|
@@ -5,7 +5,7 @@ import * as Schema from "effect/Schema";
|
|
|
5
5
|
const NewsletterIssueDocument = /* @__PURE__ */ (() => Schema.Struct({
|
|
6
6
|
projectId: TemplateProjectId,
|
|
7
7
|
revision: Schema.String.check(Schema.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema.isMaxCodePoints(1024).annotate({ expected: "a string with at most 1024 code points" })).check(Schema.isMaxLength(1024).annotate({ expected: "a value with a length of at most 1024" })),
|
|
8
|
-
path: Schema.String.
|
|
8
|
+
path: Schema.String.annotate({ description: "A .md file under issues/, at most 1024 characters, with no backslash, . or .., .git, or control characters." }).check(Schema.isMaxCodePoints(1024).annotate({ expected: "a string with at most 1024 code points" })).check(Schema.isMaxLength(1024).annotate({ expected: "a value with a length of at most 1024" })),
|
|
9
9
|
content: Schema.String
|
|
10
10
|
}).annotate({ identifier: "NewsletterIssueDocument" }))();
|
|
11
11
|
const NewsletterIssueSend = /* @__PURE__ */ (() => Schema.Struct({
|
|
@@ -13,7 +13,7 @@ const NewsletterIssueSend = /* @__PURE__ */ (() => Schema.Struct({
|
|
|
13
13
|
run: CampaignLatestRun
|
|
14
14
|
}).annotate({ identifier: "NewsletterIssueSend" }))();
|
|
15
15
|
const NewsletterIssueListItem = /* @__PURE__ */ (() => Schema.Struct({
|
|
16
|
-
path: Schema.String.
|
|
16
|
+
path: Schema.String.annotate({ description: "A .md file under issues/, at most 1024 characters, with no backslash, . or .., .git, or control characters." }).check(Schema.isMaxCodePoints(1024).annotate({ expected: "a string with at most 1024 code points" })).check(Schema.isMaxLength(1024).annotate({ expected: "a value with a length of at most 1024" })),
|
|
17
17
|
title: Schema.Union([Schema.String, Schema.Null]),
|
|
18
18
|
latestSend: Schema.Union([NewsletterIssueSend, Schema.Null])
|
|
19
19
|
}).annotate({ identifier: "NewsletterIssueListItem" }))();
|
|
@@ -36,7 +36,7 @@ const NewsletterIssuesList504 = GatewayTimeoutError;
|
|
|
36
36
|
const NewsletterIssuesCreatePathParams = /* @__PURE__ */ (() => Schema.Struct({ id: NewsletterId }))();
|
|
37
37
|
const NewsletterIssuesCreateHeaders = /* @__PURE__ */ (() => Schema.Struct({ "idempotency-key": Schema.optionalKey(Schema.String.check(Schema.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema.isMaxCodePoints(255).annotate({ expected: "a string with at most 255 code points" })).check(Schema.isMaxLength(255).annotate({ expected: "a value with a length of at most 255" }))) }))();
|
|
38
38
|
const NewsletterIssuesCreateRequestJson = /* @__PURE__ */ (() => Schema.Struct({
|
|
39
|
-
path: Schema.String.
|
|
39
|
+
path: Schema.String.annotate({ description: "A .md file under issues/, at most 1024 characters, with no backslash, . or .., .git, or control characters." }).check(Schema.isMaxCodePoints(1024).annotate({ expected: "a string with at most 1024 code points" })).check(Schema.isMaxLength(1024).annotate({ expected: "a value with a length of at most 1024" })),
|
|
40
40
|
content: Schema.String,
|
|
41
41
|
expectedRevision: Schema.optionalKey(Schema.Union([Schema.String.check(Schema.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema.isMaxCodePoints(1024).annotate({ expected: "a string with at most 1024 code points" })).check(Schema.isMaxLength(1024).annotate({ expected: "a value with a length of at most 1024" })), Schema.Null]))
|
|
42
42
|
}))();
|
|
@@ -61,7 +61,7 @@ const NewsletterIssuesCreate200 = /* @__PURE__ */ (() => Schema.Struct({
|
|
|
61
61
|
])
|
|
62
62
|
})),
|
|
63
63
|
conflicts: Schema.Array(Schema.Struct({
|
|
64
|
-
path: Schema.String.
|
|
64
|
+
path: Schema.String.annotate({ description: "A relative path of 1–1024 characters with no backslash, . or .., or .git segments." }).check(Schema.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema.isMaxCodePoints(1024).annotate({ expected: "a string with at most 1024 code points" })).check(Schema.isBetweenLength(1, 1024).annotate({ expected: "a value with a length between 1 and 1024" })),
|
|
65
65
|
base: Schema.Union([Schema.String, Schema.Null]),
|
|
66
66
|
draft: Schema.Union([Schema.String, Schema.Null]),
|
|
67
67
|
main: Schema.Union([Schema.String, Schema.Null])
|
|
@@ -78,7 +78,7 @@ const NewsletterIssuesCreate200 = /* @__PURE__ */ (() => Schema.Struct({
|
|
|
78
78
|
access: Schema.Literal("read-write")
|
|
79
79
|
}),
|
|
80
80
|
Schema.Struct({
|
|
81
|
-
root: Schema.String.
|
|
81
|
+
root: Schema.String.annotate({ description: "An absolute path under a workspace mount root, at most 2048 characters, with no . or .., or .git segments." }).check(Schema.isMaxCodePoints(2048).annotate({ expected: "a string with at most 2048 code points" })).check(Schema.isMaxLength(2048).annotate({ expected: "a value with a length of at most 2048" })),
|
|
82
82
|
digest: Schema.String.check(Schema.isPattern(new globalThis.RegExp("^[a-f0-9]{64}$", "u")).annotate({ expected: "a string matching the RegExp ^[a-f0-9]{64}$" })),
|
|
83
83
|
fileCount: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThanOrEqualTo(1).annotate({ expected: "a value greater than or equal to 1" })).check(Schema.isLessThanOrEqualTo(9007199254740991).annotate({ expected: "a value less than or equal to 9007199254740991" })),
|
|
84
84
|
byteSize: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThanOrEqualTo(1).annotate({ expected: "a value greater than or equal to 1" })).check(Schema.isLessThanOrEqualTo(9007199254740991).annotate({ expected: "a value less than or equal to 9007199254740991" })),
|
|
@@ -89,7 +89,7 @@ const NewsletterIssuesCreate200 = /* @__PURE__ */ (() => Schema.Struct({
|
|
|
89
89
|
name: Schema.String.check(Schema.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema.isMaxCodePoints(256).annotate({ expected: "a string with at most 256 code points" })).check(Schema.isMaxLength(256).annotate({ expected: "a value with a length of at most 256" }))
|
|
90
90
|
}),
|
|
91
91
|
Schema.Struct({
|
|
92
|
-
root: Schema.String.
|
|
92
|
+
root: Schema.String.annotate({ description: "An absolute path under a workspace mount root, at most 2048 characters, with no . or .., or .git segments." }).check(Schema.isMaxCodePoints(2048).annotate({ expected: "a string with at most 2048 code points" })).check(Schema.isMaxLength(2048).annotate({ expected: "a value with a length of at most 2048" })),
|
|
93
93
|
digest: Schema.String.check(Schema.isPattern(new globalThis.RegExp("^[a-f0-9]{64}$", "u")).annotate({ expected: "a string matching the RegExp ^[a-f0-9]{64}$" })),
|
|
94
94
|
fileCount: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThanOrEqualTo(1).annotate({ expected: "a value greater than or equal to 1" })).check(Schema.isLessThanOrEqualTo(9007199254740991).annotate({ expected: "a value less than or equal to 9007199254740991" })),
|
|
95
95
|
byteSize: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThanOrEqualTo(1).annotate({ expected: "a value greater than or equal to 1" })).check(Schema.isLessThanOrEqualTo(9007199254740991).annotate({ expected: "a value less than or equal to 9007199254740991" })),
|
|
@@ -99,7 +99,7 @@ const NewsletterIssuesCreate200 = /* @__PURE__ */ (() => Schema.Struct({
|
|
|
99
99
|
name: Schema.String.check(Schema.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema.isMaxCodePoints(256).annotate({ expected: "a string with at most 256 code points" })).check(Schema.isMaxLength(256).annotate({ expected: "a value with a length of at most 256" }))
|
|
100
100
|
}),
|
|
101
101
|
Schema.Struct({
|
|
102
|
-
root: Schema.String.
|
|
102
|
+
root: Schema.String.annotate({ description: "An absolute path under a workspace mount root, at most 2048 characters, with no . or .., or .git segments." }).check(Schema.isMaxCodePoints(2048).annotate({ expected: "a string with at most 2048 code points" })).check(Schema.isMaxLength(2048).annotate({ expected: "a value with a length of at most 2048" })),
|
|
103
103
|
digest: Schema.String.check(Schema.isPattern(new globalThis.RegExp("^[a-f0-9]{64}$", "u")).annotate({ expected: "a string matching the RegExp ^[a-f0-9]{64}$" })),
|
|
104
104
|
fileCount: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThanOrEqualTo(1).annotate({ expected: "a value greater than or equal to 1" })).check(Schema.isLessThanOrEqualTo(9007199254740991).annotate({ expected: "a value less than or equal to 9007199254740991" })),
|
|
105
105
|
byteSize: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThanOrEqualTo(1).annotate({ expected: "a value greater than or equal to 1" })).check(Schema.isLessThanOrEqualTo(9007199254740991).annotate({ expected: "a value less than or equal to 9007199254740991" })),
|
|
@@ -144,7 +144,7 @@ const NewsletterIssuesCreate504 = GatewayTimeoutError;
|
|
|
144
144
|
const NewsletterIssuesUpdatePathParams = /* @__PURE__ */ (() => Schema.Struct({ id: NewsletterId }))();
|
|
145
145
|
const NewsletterIssuesUpdateHeaders = /* @__PURE__ */ (() => Schema.Struct({ "idempotency-key": Schema.optionalKey(Schema.String.check(Schema.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema.isMaxCodePoints(255).annotate({ expected: "a string with at most 255 code points" })).check(Schema.isMaxLength(255).annotate({ expected: "a value with a length of at most 255" }))) }))();
|
|
146
146
|
const NewsletterIssuesUpdateRequestJson = /* @__PURE__ */ (() => Schema.Struct({
|
|
147
|
-
path: Schema.String.
|
|
147
|
+
path: Schema.String.annotate({ description: "A .md file under issues/, at most 1024 characters, with no backslash, . or .., .git, or control characters." }).check(Schema.isMaxCodePoints(1024).annotate({ expected: "a string with at most 1024 code points" })).check(Schema.isMaxLength(1024).annotate({ expected: "a value with a length of at most 1024" })),
|
|
148
148
|
content: Schema.String,
|
|
149
149
|
expectedRevision: Schema.String.check(Schema.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema.isMaxCodePoints(1024).annotate({ expected: "a string with at most 1024 code points" })).check(Schema.isMaxLength(1024).annotate({ expected: "a value with a length of at most 1024" }))
|
|
150
150
|
}))();
|
|
@@ -169,7 +169,7 @@ const NewsletterIssuesUpdate200 = /* @__PURE__ */ (() => Schema.Struct({
|
|
|
169
169
|
])
|
|
170
170
|
})),
|
|
171
171
|
conflicts: Schema.Array(Schema.Struct({
|
|
172
|
-
path: Schema.String.
|
|
172
|
+
path: Schema.String.annotate({ description: "A relative path of 1–1024 characters with no backslash, . or .., or .git segments." }).check(Schema.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema.isMaxCodePoints(1024).annotate({ expected: "a string with at most 1024 code points" })).check(Schema.isBetweenLength(1, 1024).annotate({ expected: "a value with a length between 1 and 1024" })),
|
|
173
173
|
base: Schema.Union([Schema.String, Schema.Null]),
|
|
174
174
|
draft: Schema.Union([Schema.String, Schema.Null]),
|
|
175
175
|
main: Schema.Union([Schema.String, Schema.Null])
|
|
@@ -186,7 +186,7 @@ const NewsletterIssuesUpdate200 = /* @__PURE__ */ (() => Schema.Struct({
|
|
|
186
186
|
access: Schema.Literal("read-write")
|
|
187
187
|
}),
|
|
188
188
|
Schema.Struct({
|
|
189
|
-
root: Schema.String.
|
|
189
|
+
root: Schema.String.annotate({ description: "An absolute path under a workspace mount root, at most 2048 characters, with no . or .., or .git segments." }).check(Schema.isMaxCodePoints(2048).annotate({ expected: "a string with at most 2048 code points" })).check(Schema.isMaxLength(2048).annotate({ expected: "a value with a length of at most 2048" })),
|
|
190
190
|
digest: Schema.String.check(Schema.isPattern(new globalThis.RegExp("^[a-f0-9]{64}$", "u")).annotate({ expected: "a string matching the RegExp ^[a-f0-9]{64}$" })),
|
|
191
191
|
fileCount: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThanOrEqualTo(1).annotate({ expected: "a value greater than or equal to 1" })).check(Schema.isLessThanOrEqualTo(9007199254740991).annotate({ expected: "a value less than or equal to 9007199254740991" })),
|
|
192
192
|
byteSize: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThanOrEqualTo(1).annotate({ expected: "a value greater than or equal to 1" })).check(Schema.isLessThanOrEqualTo(9007199254740991).annotate({ expected: "a value less than or equal to 9007199254740991" })),
|
|
@@ -197,7 +197,7 @@ const NewsletterIssuesUpdate200 = /* @__PURE__ */ (() => Schema.Struct({
|
|
|
197
197
|
name: Schema.String.check(Schema.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema.isMaxCodePoints(256).annotate({ expected: "a string with at most 256 code points" })).check(Schema.isMaxLength(256).annotate({ expected: "a value with a length of at most 256" }))
|
|
198
198
|
}),
|
|
199
199
|
Schema.Struct({
|
|
200
|
-
root: Schema.String.
|
|
200
|
+
root: Schema.String.annotate({ description: "An absolute path under a workspace mount root, at most 2048 characters, with no . or .., or .git segments." }).check(Schema.isMaxCodePoints(2048).annotate({ expected: "a string with at most 2048 code points" })).check(Schema.isMaxLength(2048).annotate({ expected: "a value with a length of at most 2048" })),
|
|
201
201
|
digest: Schema.String.check(Schema.isPattern(new globalThis.RegExp("^[a-f0-9]{64}$", "u")).annotate({ expected: "a string matching the RegExp ^[a-f0-9]{64}$" })),
|
|
202
202
|
fileCount: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThanOrEqualTo(1).annotate({ expected: "a value greater than or equal to 1" })).check(Schema.isLessThanOrEqualTo(9007199254740991).annotate({ expected: "a value less than or equal to 9007199254740991" })),
|
|
203
203
|
byteSize: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThanOrEqualTo(1).annotate({ expected: "a value greater than or equal to 1" })).check(Schema.isLessThanOrEqualTo(9007199254740991).annotate({ expected: "a value less than or equal to 9007199254740991" })),
|
|
@@ -207,7 +207,7 @@ const NewsletterIssuesUpdate200 = /* @__PURE__ */ (() => Schema.Struct({
|
|
|
207
207
|
name: Schema.String.check(Schema.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema.isMaxCodePoints(256).annotate({ expected: "a string with at most 256 code points" })).check(Schema.isMaxLength(256).annotate({ expected: "a value with a length of at most 256" }))
|
|
208
208
|
}),
|
|
209
209
|
Schema.Struct({
|
|
210
|
-
root: Schema.String.
|
|
210
|
+
root: Schema.String.annotate({ description: "An absolute path under a workspace mount root, at most 2048 characters, with no . or .., or .git segments." }).check(Schema.isMaxCodePoints(2048).annotate({ expected: "a string with at most 2048 code points" })).check(Schema.isMaxLength(2048).annotate({ expected: "a value with a length of at most 2048" })),
|
|
211
211
|
digest: Schema.String.check(Schema.isPattern(new globalThis.RegExp("^[a-f0-9]{64}$", "u")).annotate({ expected: "a string matching the RegExp ^[a-f0-9]{64}$" })),
|
|
212
212
|
fileCount: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThanOrEqualTo(1).annotate({ expected: "a value greater than or equal to 1" })).check(Schema.isLessThanOrEqualTo(9007199254740991).annotate({ expected: "a value less than or equal to 9007199254740991" })),
|
|
213
213
|
byteSize: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThanOrEqualTo(1).annotate({ expected: "a value greater than or equal to 1" })).check(Schema.isLessThanOrEqualTo(9007199254740991).annotate({ expected: "a value less than or equal to 9007199254740991" })),
|
|
@@ -252,13 +252,13 @@ const NewsletterIssuesUpdate504 = GatewayTimeoutError;
|
|
|
252
252
|
const NewsletterIssuesCheckPathParams = /* @__PURE__ */ (() => Schema.Struct({ id: NewsletterId }))();
|
|
253
253
|
const NewsletterIssuesCheckHeaders = /* @__PURE__ */ (() => Schema.Struct({ "idempotency-key": Schema.optionalKey(Schema.String.check(Schema.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema.isMaxCodePoints(255).annotate({ expected: "a string with at most 255 code points" })).check(Schema.isMaxLength(255).annotate({ expected: "a value with a length of at most 255" }))) }))();
|
|
254
254
|
const NewsletterIssuesCheckRequestJson = /* @__PURE__ */ (() => Schema.Struct({
|
|
255
|
-
path: Schema.String.
|
|
255
|
+
path: Schema.String.annotate({ description: "A .md file under issues/, at most 1024 characters, with no backslash, . or .., .git, or control characters." }).check(Schema.isMaxCodePoints(1024).annotate({ expected: "a string with at most 1024 code points" })).check(Schema.isMaxLength(1024).annotate({ expected: "a value with a length of at most 1024" })),
|
|
256
256
|
expectedRevision: Schema.String.check(Schema.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema.isMaxCodePoints(1024).annotate({ expected: "a string with at most 1024 code points" })).check(Schema.isMaxLength(1024).annotate({ expected: "a value with a length of at most 1024" }))
|
|
257
257
|
}))();
|
|
258
258
|
const NewsletterIssuesCheck200 = /* @__PURE__ */ (() => Schema.Struct({
|
|
259
259
|
projectId: TemplateProjectId,
|
|
260
260
|
revision: Schema.String,
|
|
261
|
-
entryPath: Schema.Union([Schema.String.
|
|
261
|
+
entryPath: Schema.Union([Schema.String.annotate({ description: "A relative .tsx file under templates or emails/, at most 1024 characters, with no backslash, . or .., or .git segments." }).check(Schema.isMaxCodePoints(1024).annotate({ expected: "a string with at most 1024 code points" })).check(Schema.isMaxLength(1024).annotate({ expected: "a value with a length of at most 1024" })), Schema.String.annotate({ description: "A .md file under issues/, at most 1024 characters, with no backslash, . or .., .git, or control characters." }).check(Schema.isMaxCodePoints(1024).annotate({ expected: "a string with at most 1024 code points" })).check(Schema.isMaxLength(1024).annotate({ expected: "a value with a length of at most 1024" }))]),
|
|
262
262
|
declaration: Schema.Union([Schema.Struct({
|
|
263
263
|
codeDigest: Schema.String.check(Schema.isPattern(new globalThis.RegExp("^[a-f0-9]{64}$", "u")).annotate({ expected: "a string matching the RegExp ^[a-f0-9]{64}$" })),
|
|
264
264
|
templateId: 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" })),
|
|
@@ -270,7 +270,7 @@ const NewsletterIssuesCheck200 = /* @__PURE__ */ (() => Schema.Struct({
|
|
|
270
270
|
fixtures: Schema.Array(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" })))
|
|
271
271
|
}), Schema.Null]),
|
|
272
272
|
issue: Schema.optionalKey(Schema.Struct({
|
|
273
|
-
path: Schema.String.
|
|
273
|
+
path: Schema.String.annotate({ description: "A .md file under issues/, at most 1024 characters, with no backslash, . or .., .git, or control characters." }).check(Schema.isMaxCodePoints(1024).annotate({ expected: "a string with at most 1024 code points" })).check(Schema.isMaxLength(1024).annotate({ expected: "a value with a length of at most 1024" })),
|
|
274
274
|
frontmatter: Schema.Struct({
|
|
275
275
|
title: Schema.String,
|
|
276
276
|
date: Schema.optionalKey(Schema.String),
|
|
@@ -361,7 +361,7 @@ const NewsletterIssuesCheck503 = ServiceUnavailableError;
|
|
|
361
361
|
const NewsletterIssuesCheck504 = GatewayTimeoutError;
|
|
362
362
|
const NewsletterIssuesGetPathParams = /* @__PURE__ */ (() => Schema.Struct({ id: NewsletterId }))();
|
|
363
363
|
const NewsletterIssuesGetQuery = /* @__PURE__ */ (() => Schema.Struct({
|
|
364
|
-
path: Schema.String.
|
|
364
|
+
path: Schema.String.annotate({ description: "A .md file under issues/, at most 1024 characters, with no backslash, . or .., .git, or control characters." }).check(Schema.isMaxCodePoints(1024).annotate({ expected: "a string with at most 1024 code points" })).check(Schema.isMaxLength(1024).annotate({ expected: "a value with a length of at most 1024" })),
|
|
365
365
|
expectedRevision: Schema.String.check(Schema.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema.isMaxCodePoints(1024).annotate({ expected: "a string with at most 1024 code points" })).check(Schema.isMaxLength(1024).annotate({ expected: "a value with a length of at most 1024" }))
|
|
366
366
|
}))();
|
|
367
367
|
const NewsletterIssuesGet200 = NewsletterIssueDocument;
|
|
@@ -414,7 +414,7 @@ const NewsletterIssuesHistory504 = GatewayTimeoutError;
|
|
|
414
414
|
const NewsletterIssuesRemovePathParams = /* @__PURE__ */ (() => Schema.Struct({ id: NewsletterId }))();
|
|
415
415
|
const NewsletterIssuesRemoveHeaders = /* @__PURE__ */ (() => Schema.Struct({ "idempotency-key": Schema.optionalKey(Schema.String.check(Schema.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema.isMaxCodePoints(255).annotate({ expected: "a string with at most 255 code points" })).check(Schema.isMaxLength(255).annotate({ expected: "a value with a length of at most 255" }))) }))();
|
|
416
416
|
const NewsletterIssuesRemoveRequestJson = /* @__PURE__ */ (() => Schema.Struct({
|
|
417
|
-
path: Schema.String.
|
|
417
|
+
path: Schema.String.annotate({ description: "A .md file under issues/, at most 1024 characters, with no backslash, . or .., .git, or control characters." }).check(Schema.isMaxCodePoints(1024).annotate({ expected: "a string with at most 1024 code points" })).check(Schema.isMaxLength(1024).annotate({ expected: "a value with a length of at most 1024" })),
|
|
418
418
|
expectedRevision: Schema.String.check(Schema.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema.isMaxCodePoints(1024).annotate({ expected: "a string with at most 1024 code points" })).check(Schema.isMaxLength(1024).annotate({ expected: "a value with a length of at most 1024" }))
|
|
419
419
|
}))();
|
|
420
420
|
const NewsletterIssuesRemove200 = /* @__PURE__ */ (() => Schema.Struct({
|
|
@@ -438,7 +438,7 @@ const NewsletterIssuesRemove200 = /* @__PURE__ */ (() => Schema.Struct({
|
|
|
438
438
|
])
|
|
439
439
|
})),
|
|
440
440
|
conflicts: Schema.Array(Schema.Struct({
|
|
441
|
-
path: Schema.String.
|
|
441
|
+
path: Schema.String.annotate({ description: "A relative path of 1–1024 characters with no backslash, . or .., or .git segments." }).check(Schema.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema.isMaxCodePoints(1024).annotate({ expected: "a string with at most 1024 code points" })).check(Schema.isBetweenLength(1, 1024).annotate({ expected: "a value with a length between 1 and 1024" })),
|
|
442
442
|
base: Schema.Union([Schema.String, Schema.Null]),
|
|
443
443
|
draft: Schema.Union([Schema.String, Schema.Null]),
|
|
444
444
|
main: Schema.Union([Schema.String, Schema.Null])
|
|
@@ -455,7 +455,7 @@ const NewsletterIssuesRemove200 = /* @__PURE__ */ (() => Schema.Struct({
|
|
|
455
455
|
access: Schema.Literal("read-write")
|
|
456
456
|
}),
|
|
457
457
|
Schema.Struct({
|
|
458
|
-
root: Schema.String.
|
|
458
|
+
root: Schema.String.annotate({ description: "An absolute path under a workspace mount root, at most 2048 characters, with no . or .., or .git segments." }).check(Schema.isMaxCodePoints(2048).annotate({ expected: "a string with at most 2048 code points" })).check(Schema.isMaxLength(2048).annotate({ expected: "a value with a length of at most 2048" })),
|
|
459
459
|
digest: Schema.String.check(Schema.isPattern(new globalThis.RegExp("^[a-f0-9]{64}$", "u")).annotate({ expected: "a string matching the RegExp ^[a-f0-9]{64}$" })),
|
|
460
460
|
fileCount: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThanOrEqualTo(1).annotate({ expected: "a value greater than or equal to 1" })).check(Schema.isLessThanOrEqualTo(9007199254740991).annotate({ expected: "a value less than or equal to 9007199254740991" })),
|
|
461
461
|
byteSize: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThanOrEqualTo(1).annotate({ expected: "a value greater than or equal to 1" })).check(Schema.isLessThanOrEqualTo(9007199254740991).annotate({ expected: "a value less than or equal to 9007199254740991" })),
|
|
@@ -466,7 +466,7 @@ const NewsletterIssuesRemove200 = /* @__PURE__ */ (() => Schema.Struct({
|
|
|
466
466
|
name: Schema.String.check(Schema.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema.isMaxCodePoints(256).annotate({ expected: "a string with at most 256 code points" })).check(Schema.isMaxLength(256).annotate({ expected: "a value with a length of at most 256" }))
|
|
467
467
|
}),
|
|
468
468
|
Schema.Struct({
|
|
469
|
-
root: Schema.String.
|
|
469
|
+
root: Schema.String.annotate({ description: "An absolute path under a workspace mount root, at most 2048 characters, with no . or .., or .git segments." }).check(Schema.isMaxCodePoints(2048).annotate({ expected: "a string with at most 2048 code points" })).check(Schema.isMaxLength(2048).annotate({ expected: "a value with a length of at most 2048" })),
|
|
470
470
|
digest: Schema.String.check(Schema.isPattern(new globalThis.RegExp("^[a-f0-9]{64}$", "u")).annotate({ expected: "a string matching the RegExp ^[a-f0-9]{64}$" })),
|
|
471
471
|
fileCount: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThanOrEqualTo(1).annotate({ expected: "a value greater than or equal to 1" })).check(Schema.isLessThanOrEqualTo(9007199254740991).annotate({ expected: "a value less than or equal to 9007199254740991" })),
|
|
472
472
|
byteSize: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThanOrEqualTo(1).annotate({ expected: "a value greater than or equal to 1" })).check(Schema.isLessThanOrEqualTo(9007199254740991).annotate({ expected: "a value less than or equal to 9007199254740991" })),
|
|
@@ -476,7 +476,7 @@ const NewsletterIssuesRemove200 = /* @__PURE__ */ (() => Schema.Struct({
|
|
|
476
476
|
name: Schema.String.check(Schema.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema.isMaxCodePoints(256).annotate({ expected: "a string with at most 256 code points" })).check(Schema.isMaxLength(256).annotate({ expected: "a value with a length of at most 256" }))
|
|
477
477
|
}),
|
|
478
478
|
Schema.Struct({
|
|
479
|
-
root: Schema.String.
|
|
479
|
+
root: Schema.String.annotate({ description: "An absolute path under a workspace mount root, at most 2048 characters, with no . or .., or .git segments." }).check(Schema.isMaxCodePoints(2048).annotate({ expected: "a string with at most 2048 code points" })).check(Schema.isMaxLength(2048).annotate({ expected: "a value with a length of at most 2048" })),
|
|
480
480
|
digest: Schema.String.check(Schema.isPattern(new globalThis.RegExp("^[a-f0-9]{64}$", "u")).annotate({ expected: "a string matching the RegExp ^[a-f0-9]{64}$" })),
|
|
481
481
|
fileCount: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThanOrEqualTo(1).annotate({ expected: "a value greater than or equal to 1" })).check(Schema.isLessThanOrEqualTo(9007199254740991).annotate({ expected: "a value less than or equal to 9007199254740991" })),
|
|
482
482
|
byteSize: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThanOrEqualTo(1).annotate({ expected: "a value greater than or equal to 1" })).check(Schema.isLessThanOrEqualTo(9007199254740991).annotate({ expected: "a value less than or equal to 9007199254740991" })),
|
|
@@ -521,7 +521,7 @@ const NewsletterIssuesRemove504 = GatewayTimeoutError;
|
|
|
521
521
|
const NewsletterIssuesRenderPathParams = /* @__PURE__ */ (() => Schema.Struct({ id: NewsletterId }))();
|
|
522
522
|
const NewsletterIssuesRenderHeaders = /* @__PURE__ */ (() => Schema.Struct({ "idempotency-key": Schema.optionalKey(Schema.String.check(Schema.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema.isMaxCodePoints(255).annotate({ expected: "a string with at most 255 code points" })).check(Schema.isMaxLength(255).annotate({ expected: "a value with a length of at most 255" }))) }))();
|
|
523
523
|
const NewsletterIssuesRenderRequestJson = /* @__PURE__ */ (() => Schema.Struct({
|
|
524
|
-
path: Schema.String.
|
|
524
|
+
path: Schema.String.annotate({ description: "A .md file under issues/, at most 1024 characters, with no backslash, . or .., .git, or control characters." }).check(Schema.isMaxCodePoints(1024).annotate({ expected: "a string with at most 1024 code points" })).check(Schema.isMaxLength(1024).annotate({ expected: "a value with a length of at most 1024" })),
|
|
525
525
|
expectedRevision: Schema.String.check(Schema.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema.isMaxCodePoints(1024).annotate({ expected: "a string with at most 1024 code points" })).check(Schema.isMaxLength(1024).annotate({ expected: "a value with a length of at most 1024" })),
|
|
526
526
|
fixture: 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" })),
|
|
527
527
|
target: Schema.Union([Schema.Literal("email"), Schema.Literal("web")])
|
|
@@ -529,7 +529,7 @@ const NewsletterIssuesRenderRequestJson = /* @__PURE__ */ (() => Schema.Struct({
|
|
|
529
529
|
const NewsletterIssuesRender200 = /* @__PURE__ */ (() => Schema.Struct({
|
|
530
530
|
projectId: TemplateProjectId,
|
|
531
531
|
revision: Schema.String,
|
|
532
|
-
entryPath: Schema.Union([Schema.String.
|
|
532
|
+
entryPath: Schema.Union([Schema.String.annotate({ description: "A relative .tsx file under templates or emails/, at most 1024 characters, with no backslash, . or .., or .git segments." }).check(Schema.isMaxCodePoints(1024).annotate({ expected: "a string with at most 1024 code points" })).check(Schema.isMaxLength(1024).annotate({ expected: "a value with a length of at most 1024" })), Schema.String.annotate({ description: "A .md file under issues/, at most 1024 characters, with no backslash, . or .., .git, or control characters." }).check(Schema.isMaxCodePoints(1024).annotate({ expected: "a string with at most 1024 code points" })).check(Schema.isMaxLength(1024).annotate({ expected: "a value with a length of at most 1024" }))]),
|
|
533
533
|
declaration: Schema.Union([Schema.Struct({
|
|
534
534
|
codeDigest: Schema.String.check(Schema.isPattern(new globalThis.RegExp("^[a-f0-9]{64}$", "u")).annotate({ expected: "a string matching the RegExp ^[a-f0-9]{64}$" })),
|
|
535
535
|
templateId: 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" })),
|
|
@@ -541,7 +541,7 @@ const NewsletterIssuesRender200 = /* @__PURE__ */ (() => Schema.Struct({
|
|
|
541
541
|
fixtures: Schema.Array(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" })))
|
|
542
542
|
}), Schema.Null]),
|
|
543
543
|
issue: Schema.optionalKey(Schema.Struct({
|
|
544
|
-
path: Schema.String.
|
|
544
|
+
path: Schema.String.annotate({ description: "A .md file under issues/, at most 1024 characters, with no backslash, . or .., .git, or control characters." }).check(Schema.isMaxCodePoints(1024).annotate({ expected: "a string with at most 1024 code points" })).check(Schema.isMaxLength(1024).annotate({ expected: "a value with a length of at most 1024" })),
|
|
545
545
|
frontmatter: Schema.Struct({
|
|
546
546
|
title: Schema.String,
|
|
547
547
|
date: Schema.optionalKey(Schema.String),
|
|
@@ -727,7 +727,7 @@ const NewsletterIssuesSave200 = /* @__PURE__ */ (() => Schema.Struct({
|
|
|
727
727
|
parentCommit: Schema.String.check(Schema.isPattern(new globalThis.RegExp("^[a-f0-9]{40}$", "u")).annotate({ expected: "a string matching the RegExp ^[a-f0-9]{40}$" })),
|
|
728
728
|
tree: Schema.String.check(Schema.isPattern(new globalThis.RegExp("^[a-f0-9]{40}$", "u")).annotate({ expected: "a string matching the RegExp ^[a-f0-9]{40}$" })),
|
|
729
729
|
revision: Schema.String,
|
|
730
|
-
changedPaths: Schema.Array(Schema.String.
|
|
730
|
+
changedPaths: Schema.Array(Schema.String.annotate({ description: "A relative path of 1–1024 characters with no backslash, . or .., or .git segments." }).check(Schema.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema.isMaxCodePoints(1024).annotate({ expected: "a string with at most 1024 code points" })).check(Schema.isBetweenLength(1, 1024).annotate({ expected: "a value with a length between 1 and 1024" }))),
|
|
731
731
|
sourceDigest: Schema.String.check(Schema.isPattern(new globalThis.RegExp("^[a-f0-9]{64}$", "u")).annotate({ expected: "a string matching the RegExp ^[a-f0-9]{64}$" })),
|
|
732
732
|
buildDigest: Schema.String.check(Schema.isPattern(new globalThis.RegExp("^[a-f0-9]{64}$", "u")).annotate({ expected: "a string matching the RegExp ^[a-f0-9]{64}$" })),
|
|
733
733
|
warnings: Schema.Array(Schema.Struct({
|
|
@@ -826,7 +826,7 @@ const NewsletterIssuesOpen200 = /* @__PURE__ */ (() => Schema.Struct({
|
|
|
826
826
|
])
|
|
827
827
|
})),
|
|
828
828
|
conflicts: Schema.Array(Schema.Struct({
|
|
829
|
-
path: Schema.String.
|
|
829
|
+
path: Schema.String.annotate({ description: "A relative path of 1–1024 characters with no backslash, . or .., or .git segments." }).check(Schema.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema.isMaxCodePoints(1024).annotate({ expected: "a string with at most 1024 code points" })).check(Schema.isBetweenLength(1, 1024).annotate({ expected: "a value with a length between 1 and 1024" })),
|
|
830
830
|
base: Schema.Union([Schema.String, Schema.Null]),
|
|
831
831
|
draft: Schema.Union([Schema.String, Schema.Null]),
|
|
832
832
|
main: Schema.Union([Schema.String, Schema.Null])
|
|
@@ -843,7 +843,7 @@ const NewsletterIssuesOpen200 = /* @__PURE__ */ (() => Schema.Struct({
|
|
|
843
843
|
access: Schema.Literal("read-write")
|
|
844
844
|
}),
|
|
845
845
|
Schema.Struct({
|
|
846
|
-
root: Schema.String.
|
|
846
|
+
root: Schema.String.annotate({ description: "An absolute path under a workspace mount root, at most 2048 characters, with no . or .., or .git segments." }).check(Schema.isMaxCodePoints(2048).annotate({ expected: "a string with at most 2048 code points" })).check(Schema.isMaxLength(2048).annotate({ expected: "a value with a length of at most 2048" })),
|
|
847
847
|
digest: Schema.String.check(Schema.isPattern(new globalThis.RegExp("^[a-f0-9]{64}$", "u")).annotate({ expected: "a string matching the RegExp ^[a-f0-9]{64}$" })),
|
|
848
848
|
fileCount: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThanOrEqualTo(1).annotate({ expected: "a value greater than or equal to 1" })).check(Schema.isLessThanOrEqualTo(9007199254740991).annotate({ expected: "a value less than or equal to 9007199254740991" })),
|
|
849
849
|
byteSize: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThanOrEqualTo(1).annotate({ expected: "a value greater than or equal to 1" })).check(Schema.isLessThanOrEqualTo(9007199254740991).annotate({ expected: "a value less than or equal to 9007199254740991" })),
|
|
@@ -854,7 +854,7 @@ const NewsletterIssuesOpen200 = /* @__PURE__ */ (() => Schema.Struct({
|
|
|
854
854
|
name: Schema.String.check(Schema.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema.isMaxCodePoints(256).annotate({ expected: "a string with at most 256 code points" })).check(Schema.isMaxLength(256).annotate({ expected: "a value with a length of at most 256" }))
|
|
855
855
|
}),
|
|
856
856
|
Schema.Struct({
|
|
857
|
-
root: Schema.String.
|
|
857
|
+
root: Schema.String.annotate({ description: "An absolute path under a workspace mount root, at most 2048 characters, with no . or .., or .git segments." }).check(Schema.isMaxCodePoints(2048).annotate({ expected: "a string with at most 2048 code points" })).check(Schema.isMaxLength(2048).annotate({ expected: "a value with a length of at most 2048" })),
|
|
858
858
|
digest: Schema.String.check(Schema.isPattern(new globalThis.RegExp("^[a-f0-9]{64}$", "u")).annotate({ expected: "a string matching the RegExp ^[a-f0-9]{64}$" })),
|
|
859
859
|
fileCount: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThanOrEqualTo(1).annotate({ expected: "a value greater than or equal to 1" })).check(Schema.isLessThanOrEqualTo(9007199254740991).annotate({ expected: "a value less than or equal to 9007199254740991" })),
|
|
860
860
|
byteSize: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThanOrEqualTo(1).annotate({ expected: "a value greater than or equal to 1" })).check(Schema.isLessThanOrEqualTo(9007199254740991).annotate({ expected: "a value less than or equal to 9007199254740991" })),
|
|
@@ -864,7 +864,7 @@ const NewsletterIssuesOpen200 = /* @__PURE__ */ (() => Schema.Struct({
|
|
|
864
864
|
name: Schema.String.check(Schema.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema.isMaxCodePoints(256).annotate({ expected: "a string with at most 256 code points" })).check(Schema.isMaxLength(256).annotate({ expected: "a value with a length of at most 256" }))
|
|
865
865
|
}),
|
|
866
866
|
Schema.Struct({
|
|
867
|
-
root: Schema.String.
|
|
867
|
+
root: Schema.String.annotate({ description: "An absolute path under a workspace mount root, at most 2048 characters, with no . or .., or .git segments." }).check(Schema.isMaxCodePoints(2048).annotate({ expected: "a string with at most 2048 code points" })).check(Schema.isMaxLength(2048).annotate({ expected: "a value with a length of at most 2048" })),
|
|
868
868
|
digest: Schema.String.check(Schema.isPattern(new globalThis.RegExp("^[a-f0-9]{64}$", "u")).annotate({ expected: "a string matching the RegExp ^[a-f0-9]{64}$" })),
|
|
869
869
|
fileCount: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThanOrEqualTo(1).annotate({ expected: "a value greater than or equal to 1" })).check(Schema.isLessThanOrEqualTo(9007199254740991).annotate({ expected: "a value less than or equal to 9007199254740991" })),
|
|
870
870
|
byteSize: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThanOrEqualTo(1).annotate({ expected: "a value greater than or equal to 1" })).check(Schema.isLessThanOrEqualTo(9007199254740991).annotate({ expected: "a value less than or equal to 9007199254740991" })),
|
|
@@ -64,7 +64,7 @@ const OrganizationsUpdateRequestJson = /* @__PURE__ */ (() => Schema.Struct({
|
|
|
64
64
|
timezone: Schema.optionalKey(Schema.Union([IanaTimezone, Schema.Null])),
|
|
65
65
|
isActive: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
66
66
|
metadata: Schema.optionalKey(Schema.Union([Schema.Record(Schema.String, JsonValue), Schema.Null])),
|
|
67
|
-
replyToDefault: Schema.optionalKey(Schema.Union([Schema.Array(Schema.String
|
|
67
|
+
replyToDefault: Schema.optionalKey(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
|
|
68
68
|
emailFooterEnabledDefault: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null]))
|
|
69
69
|
}))();
|
|
70
70
|
const OrganizationsUpdate200 = Organization;
|
|
@@ -121,7 +121,7 @@ const OrganizationsAssignPersonalMailbox500 = InternalError;
|
|
|
121
121
|
const OrganizationsAssignPersonalMailbox502 = BillingProviderError;
|
|
122
122
|
const OrganizationsAssignPersonalMailbox504 = GatewayTimeoutError;
|
|
123
123
|
const OrganizationsInviteMemberRequestJson = /* @__PURE__ */ (() => Schema.Struct({
|
|
124
|
-
email: Schema.String
|
|
124
|
+
email: Schema.String,
|
|
125
125
|
role: Schema.Union([
|
|
126
126
|
Schema.Literal("member"),
|
|
127
127
|
Schema.Literal("admin"),
|
|
@@ -25,7 +25,7 @@ const StoredEmailContent = /* @__PURE__ */ (() => Schema.Struct({
|
|
|
25
25
|
publicationId: Schema.optionalKey(TemplatePublicationId),
|
|
26
26
|
inputContractId: Schema.optionalKey(TemplateInputContractId),
|
|
27
27
|
templateId: Schema.optionalKey(Schema.Union([TemplateId, Schema.Null])),
|
|
28
|
-
templateSlug: Schema.optionalKey(Schema.Union([Schema.String.check(Schema.isPattern(new globalThis.RegExp("^
|
|
28
|
+
templateSlug: Schema.optionalKey(Schema.Union([Schema.String.check(Schema.isPattern(new globalThis.RegExp("^[a-z0-9]+(?:-[a-z0-9]+)*$", "u")).annotate({ expected: "a string matching the RegExp ^[a-z0-9]+(?:-[a-z0-9]+)*$" })), Schema.Null])),
|
|
29
29
|
templateData: Schema.optionalKey(TemplateData),
|
|
30
30
|
locale: Schema.optionalKey(RenderLocale),
|
|
31
31
|
timeZone: Schema.optionalKey(RenderTimeZone),
|
|
@@ -37,14 +37,14 @@ const StoredEmailContent = /* @__PURE__ */ (() => Schema.Struct({
|
|
|
37
37
|
headers: Schema.optionalKey(Schema.Union([EmailCustomHeaders, Schema.Null]))
|
|
38
38
|
}).annotate({ identifier: "StoredEmailContent" }))();
|
|
39
39
|
const EmailDispatchContent = /* @__PURE__ */ (() => Schema.Struct({
|
|
40
|
-
subject: Schema.optionalKey(Schema.Union([Schema.String
|
|
40
|
+
subject: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
|
|
41
41
|
html: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
|
|
42
42
|
text: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
|
|
43
43
|
attachments: Schema.optionalKey(EmailAttachments),
|
|
44
44
|
publicationId: Schema.optionalKey(TemplatePublicationId),
|
|
45
45
|
inputContractId: Schema.optionalKey(TemplateInputContractId),
|
|
46
46
|
templateId: Schema.optionalKey(Schema.Union([TemplateId, Schema.Null])),
|
|
47
|
-
templateSlug: Schema.optionalKey(Schema.Union([Schema.String.check(Schema.isPattern(new globalThis.RegExp("^
|
|
47
|
+
templateSlug: Schema.optionalKey(Schema.Union([Schema.String.check(Schema.isPattern(new globalThis.RegExp("^[a-z0-9]+(?:-[a-z0-9]+)*$", "u")).annotate({ expected: "a string matching the RegExp ^[a-z0-9]+(?:-[a-z0-9]+)*$" })), Schema.Null])),
|
|
48
48
|
templateData: Schema.optionalKey(TemplateData),
|
|
49
49
|
locale: Schema.optionalKey(RenderLocale),
|
|
50
50
|
timeZone: Schema.optionalKey(RenderTimeZone),
|