samva 0.34.0 → 0.36.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/AGENTS.md +17 -0
- package/README.md +2 -1
- package/dist/client/sdk.gen.d.ts +325 -331
- package/dist/client/sdk.gen.js +406 -454
- package/dist/client/types.gen.d.ts +3465 -750
- package/dist/effect/agents.d.ts +222 -17
- package/dist/effect/agents.js +7 -1
- package/dist/effect/analytics.d.ts +21 -15
- package/dist/effect/api-keys.d.ts +30 -24
- package/dist/effect/campaigns.d.ts +695 -39
- package/dist/effect/categories.d.ts +3 -3
- package/dist/effect/contact-groups.d.ts +15 -15
- package/dist/effect/contacts.d.ts +56 -52
- package/dist/effect/conversations.d.ts +51 -45
- package/dist/effect/email.d.ts +82 -82
- package/dist/effect/errors.d.ts +1 -1
- package/dist/effect/errors.js +2 -2
- package/dist/effect/extension-installations.d.ts +64 -12
- package/dist/effect/extensions.d.ts +16 -16
- package/dist/effect/generated/agents.d.ts +2902 -150
- package/dist/effect/generated/agents.js +219 -31
- package/dist/effect/generated/analytics.d.ts +127 -136
- package/dist/effect/generated/analytics.js +72 -37
- package/dist/effect/generated/api-keys.d.ts +243 -47
- package/dist/effect/generated/api-keys.js +27 -12
- package/dist/effect/generated/attachments.d.ts +89 -1
- package/dist/effect/generated/attachments.js +10 -2
- package/dist/effect/generated/brands.d.ts +133 -1
- package/dist/effect/generated/brands.js +22 -10
- package/dist/effect/generated/campaigns.d.ts +1467 -143
- package/dist/effect/generated/campaigns.js +84 -20
- package/dist/effect/generated/contact-events.d.ts +26 -4
- package/dist/effect/generated/contact-events.js +5 -3
- package/dist/effect/generated/contact-groups.d.ts +233 -13
- package/dist/effect/generated/contact-groups.js +33 -17
- package/dist/effect/generated/contacts.d.ts +634 -96
- package/dist/effect/generated/contacts.js +82 -20
- package/dist/effect/generated/conversations.d.ts +501 -108
- package/dist/effect/generated/conversations.js +106 -22
- package/dist/effect/generated/custom-fields.d.ts +89 -1
- package/dist/effect/generated/custom-fields.js +11 -3
- package/dist/effect/generated/email.d.ts +1447 -83
- package/dist/effect/generated/email.js +167 -43
- package/dist/effect/generated/events.d.ts +51 -7
- package/dist/effect/generated/events.js +9 -5
- package/dist/effect/generated/extension-installations.d.ts +1052 -77
- package/dist/effect/generated/extension-installations.js +45 -31
- package/dist/effect/generated/extensions.d.ts +123 -13
- package/dist/effect/generated/extensions.js +20 -10
- package/dist/effect/generated/feedback.d.ts +23 -1
- package/dist/effect/generated/feedback.js +6 -4
- package/dist/effect/generated/index.d.ts +3 -1
- package/dist/effect/generated/journeys.d.ts +684 -16
- package/dist/effect/generated/journeys.js +37 -9
- package/dist/effect/generated/mailboxes.d.ts +6169 -1734
- package/dist/effect/generated/mailboxes.js +549 -344
- package/dist/effect/generated/media.d.ts +125 -15
- package/dist/effect/generated/media.js +15 -2
- package/dist/effect/generated/messages.d.ts +2036 -117
- package/dist/effect/generated/messages.js +286 -54
- package/dist/effect/generated/namespaces.d.ts +215 -55
- package/dist/effect/generated/namespaces.js +30 -12
- package/dist/effect/generated/newsletter-domains.d.ts +98 -12
- package/dist/effect/generated/newsletter-domains.js +20 -13
- package/dist/effect/generated/newsletter-issues.d.ts +354 -19
- package/dist/effect/generated/newsletter-issues.js +162 -98
- package/dist/effect/generated/newsletters.d.ts +123 -13
- package/dist/effect/generated/newsletters.js +19 -9
- package/dist/effect/generated/operations.d.ts +76 -10
- package/dist/effect/generated/operations.js +12 -6
- package/dist/effect/generated/organizations.d.ts +287 -7
- package/dist/effect/generated/organizations.js +33 -5
- package/dist/effect/generated/policies.d.ts +953 -0
- package/dist/effect/generated/policies.js +116 -0
- package/dist/effect/generated/scheduled-messages.d.ts +4418 -49
- package/dist/effect/generated/scheduled-messages.js +77 -13
- package/dist/effect/generated/shared.d.ts +3213 -521
- package/dist/effect/generated/shared.js +713 -128
- package/dist/effect/generated/subscriptions.d.ts +23 -1
- package/dist/effect/generated/subscriptions.js +6 -4
- package/dist/effect/generated/templates.d.ts +2081 -693
- package/dist/effect/generated/templates.js +482 -267
- package/dist/effect/generated/topic-forms.d.ts +111 -1
- package/dist/effect/generated/topic-forms.js +23 -13
- package/dist/effect/generated/topics.d.ts +353 -43
- package/dist/effect/generated/topics.js +67 -19
- package/dist/effect/generated/webhooks.d.ts +318 -57
- package/dist/effect/generated/webhooks.js +68 -17
- package/dist/effect/generated/whoami.d.ts +35 -5
- package/dist/effect/generated/whoami.js +4 -2
- package/dist/effect/generated-metadata.d.ts +56 -32
- package/dist/effect/generated-metadata.js +137 -105
- package/dist/effect/index.d.ts +1 -0
- package/dist/effect/index.js +3 -2
- package/dist/effect/internal/client.js +1 -1
- package/dist/effect/internal/email-sender.d.ts +1 -1
- package/dist/effect/internal/operation.js +5 -32
- package/dist/effect/internal/send.d.ts +1 -1
- package/dist/effect/journeys.d.ts +169 -83
- package/dist/effect/mailboxes.d.ts +978 -301
- package/dist/effect/mailboxes.js +1 -11
- package/dist/effect/media.d.ts +1 -1
- package/dist/effect/messages.d.ts +40 -40
- package/dist/effect/namespaces.d.ts +15 -15
- package/dist/effect/newsletter-domains.d.ts +5 -5
- package/dist/effect/newsletters.d.ts +1 -1
- package/dist/effect/operations.d.ts +11 -11
- package/dist/effect/organizations.d.ts +2 -2
- package/dist/effect/policies.d.ts +65 -0
- package/dist/effect/policies.js +16 -0
- package/dist/effect/scheduled-messages.d.ts +869 -8
- package/dist/effect/templates.d.ts +43 -45
- package/dist/effect/templates.js +5 -3
- package/dist/effect/topics.d.ts +23 -23
- package/dist/effect/webhooks.d.ts +29 -26
- package/dist/index.js +2 -2
- package/dist/mailbox/test.js +11 -4
- package/dist/mailbox/types.d.ts +39 -3
- package/dist/normalize.js +13 -1
- package/dist/package.js +1 -1
- package/dist/promises/client.d.ts +4 -2
- package/dist/promises/client.js +5 -3
- package/dist/promises/errors.gen.d.ts +38 -2
- package/dist/promises/errors.gen.js +394 -34
- package/dist/promises/index.js +2 -2
- package/dist/promises/types.gen.d.ts +1 -1
- package/dist/service-map.d.ts +39 -28
- package/dist/service-map.js +220 -782
- package/package.json +13 -8
|
@@ -1,16 +1,44 @@
|
|
|
1
|
-
import { ApiKeySecurityMiddleware, BrandAssets, BrandFooter, ConflictError,
|
|
1
|
+
import { ApiKeySecurityMiddleware, BrandAssets, BrandFooter, ConflictError, ForbiddenError, GatewayTimeoutError, InternalError, JsonValue, MalformedRequestError, NamespaceId, OrganizationId, RenderLocale, RenderTimeZone, ResourceNotFoundError, ServiceUnavailableError, SuccessResponse, TemplateFromDefault, TemplateId, TemplateInUseError, TemplateInputContractId, TemplateProjectId, TemplatePublicationId, TemplateSourceError, TemplateTrackingDefault, UnauthorizedError, UserId, ValidationError } 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/templates.ts
|
|
5
5
|
const TemplatePublicationBrand = /* @__PURE__ */ (() => Schema.Struct({
|
|
6
|
-
slug: Schema.String.annotate({ description: "The brand the publication imports." }).check(Schema.isPattern(
|
|
6
|
+
slug: Schema.String.annotate({ description: "The brand the publication imports." }).check(Schema.isPattern(new globalThis.RegExp("^[a-z0-9](?:[a-z0-9-]{0,62}[a-z0-9])?$", "u")).annotate({ expected: "a string matching the RegExp ^[a-z0-9](?:[a-z0-9-]{0,62}[a-z0-9])?$" })),
|
|
7
7
|
digest: Schema.String.annotate({ description: "The brand's digest when the publication was built." }),
|
|
8
8
|
stale: Schema.Boolean.annotate({ description: "Whether the brand has changed since this publication was built. Publishing the same commit again picks up the change." })
|
|
9
9
|
}).annotate({ identifier: "TemplatePublicationBrand" }))();
|
|
10
|
-
const TemplateFamilyId = /* @__PURE__ */ (() => Schema.String.check(Schema.isPattern(
|
|
10
|
+
const TemplateFamilyId = /* @__PURE__ */ (() => Schema.String.check(Schema.isPattern(new globalThis.RegExp("^tfam_[0-9a-hjkmnp-tv-z]{16,24}$", "u")).annotate({
|
|
11
11
|
expected: "a string matching the RegExp ^tfam_[0-9a-hjkmnp-tv-z]{16,24}$",
|
|
12
12
|
identifier: "TemplateFamilyId"
|
|
13
13
|
})).pipe(Schema.brand("TemplateFamilyId")))();
|
|
14
|
+
const WhatsAppTemplateButton = /* @__PURE__ */ (() => Schema.Union([
|
|
15
|
+
Schema.Struct({
|
|
16
|
+
type: Schema.Literal("QUICK_REPLY"),
|
|
17
|
+
text: Schema.String
|
|
18
|
+
}),
|
|
19
|
+
Schema.Struct({
|
|
20
|
+
type: Schema.Literal("URL"),
|
|
21
|
+
text: Schema.String,
|
|
22
|
+
url: Schema.String,
|
|
23
|
+
example: Schema.optionalKey(Schema.Array(Schema.String))
|
|
24
|
+
}),
|
|
25
|
+
Schema.Struct({
|
|
26
|
+
type: Schema.Literal("PHONE_NUMBER"),
|
|
27
|
+
text: Schema.String,
|
|
28
|
+
phone_number: Schema.String
|
|
29
|
+
}),
|
|
30
|
+
Schema.Struct({
|
|
31
|
+
type: Schema.Literal("COPY_CODE"),
|
|
32
|
+
example: Schema.String
|
|
33
|
+
}),
|
|
34
|
+
Schema.Struct({
|
|
35
|
+
type: Schema.Literal("FLOW"),
|
|
36
|
+
text: Schema.String,
|
|
37
|
+
flow: Schema.String,
|
|
38
|
+
flow_action: Schema.Union([Schema.Literal("navigate"), Schema.Literal("data_exchange")]),
|
|
39
|
+
navigate_screen: Schema.optionalKey(Schema.String)
|
|
40
|
+
})
|
|
41
|
+
]).annotate({ identifier: "WhatsAppTemplateButton" }))();
|
|
14
42
|
const BrandRenderedFooter = /* @__PURE__ */ (() => Schema.Struct({
|
|
15
43
|
html: Schema.String,
|
|
16
44
|
text: Schema.String,
|
|
@@ -28,7 +56,7 @@ const TemplateInputContractPage = /* @__PURE__ */ (() => Schema.Struct({
|
|
|
28
56
|
organizationId: OrganizationId,
|
|
29
57
|
templateId: TemplateId,
|
|
30
58
|
version: 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" })),
|
|
31
|
-
validationDigest: Schema.String.check(Schema.isPattern(
|
|
59
|
+
validationDigest: Schema.String.check(Schema.isPattern(new globalThis.RegExp("^[a-f0-9]{64}$", "u")).annotate({ expected: "a string matching the RegExp ^[a-f0-9]{64}$" })),
|
|
32
60
|
schema: Schema.Record(Schema.String, JsonValue),
|
|
33
61
|
createdAt: Schema.String
|
|
34
62
|
})),
|
|
@@ -38,7 +66,11 @@ const TemplateFamilyMember = /* @__PURE__ */ (() => Schema.Struct({
|
|
|
38
66
|
id: TemplateId,
|
|
39
67
|
name: Schema.String,
|
|
40
68
|
slug: Schema.String,
|
|
41
|
-
channel: Schema.
|
|
69
|
+
channel: Schema.Union([
|
|
70
|
+
Schema.Literal("sms"),
|
|
71
|
+
Schema.Literal("whatsapp"),
|
|
72
|
+
Schema.Literal("email")
|
|
73
|
+
]),
|
|
42
74
|
status: Schema.Union([
|
|
43
75
|
Schema.Literal("draft"),
|
|
44
76
|
Schema.Literal("pending"),
|
|
@@ -47,7 +79,6 @@ const TemplateFamilyMember = /* @__PURE__ */ (() => Schema.Struct({
|
|
|
47
79
|
Schema.Literal("rejected"),
|
|
48
80
|
Schema.Literal("archived")
|
|
49
81
|
]),
|
|
50
|
-
isActive: Schema.Boolean,
|
|
51
82
|
createdAt: Schema.String,
|
|
52
83
|
updatedAt: Schema.String
|
|
53
84
|
}).annotate({ identifier: "TemplateFamilyMember" }))();
|
|
@@ -55,11 +86,15 @@ const TemplateSummary = /* @__PURE__ */ (() => Schema.Struct({
|
|
|
55
86
|
id: TemplateId,
|
|
56
87
|
slug: Schema.String,
|
|
57
88
|
name: Schema.String,
|
|
58
|
-
channel: Schema.
|
|
89
|
+
channel: Schema.Union([
|
|
90
|
+
Schema.Literal("sms"),
|
|
91
|
+
Schema.Literal("whatsapp"),
|
|
92
|
+
Schema.Literal("email")
|
|
93
|
+
]),
|
|
59
94
|
projectId: TemplateProjectId,
|
|
60
95
|
namespaceId: Schema.Union([NamespaceId, Schema.Null]).annotate({ description: "The namespace the template's project belongs to; every entry in a project shares it. Null at organization level. A namespace-scoped key reaches only its own namespace's templates and shared ones." }),
|
|
61
96
|
shared: Schema.Boolean.annotate({ description: "Whether the template's project is shared with every namespace. Every entry in a project shares it. A namespace-scoped key reads and sends a shared template in its own namespace but cannot change it. Only an organization-level project is shared." }),
|
|
62
|
-
entryPath: Schema.String.check(Schema.isMaxCodePoints(1024).annotate({ expected: "a string with at most 1024 code points" })).check(Schema.isPattern(
|
|
97
|
+
entryPath: Schema.String.check(Schema.isMaxCodePoints(1024).annotate({ expected: "a string with at most 1024 code points" })).check(Schema.isPattern(new globalThis.RegExp("^(?!\\/)(?!.*\\\\)(?!.*(?:^|\\/)\\.{1,2}(?:\\/|$))(?!.*(?:^|\\/)\\.git(?:\\/|$))(?:templates|emails)\\/.+\\.tsx$", "u")).annotate({ expected: "a string matching the RegExp ^(?!\\/)(?!.*\\\\)(?!.*(?:^|\\/)\\.{1,2}(?:\\/|$))(?!.*(?:^|\\/)\\.git(?:\\/|$))(?:templates|emails)\\/.+\\.tsx$" })).check(Schema.isMaxLength(1024).annotate({ expected: "a value with a length of at most 1024" })),
|
|
63
98
|
status: Schema.Union([
|
|
64
99
|
Schema.Literal("draft"),
|
|
65
100
|
Schema.Literal("pending"),
|
|
@@ -68,7 +103,6 @@ const TemplateSummary = /* @__PURE__ */ (() => Schema.Struct({
|
|
|
68
103
|
Schema.Literal("rejected"),
|
|
69
104
|
Schema.Literal("archived")
|
|
70
105
|
]),
|
|
71
|
-
isActive: Schema.Boolean,
|
|
72
106
|
publishedAt: Schema.Union([Schema.String, Schema.Null]),
|
|
73
107
|
brand: Schema.Union([TemplatePublicationBrand, Schema.Null]),
|
|
74
108
|
fromDefault: Schema.Union([TemplateFromDefault, Schema.Null]),
|
|
@@ -77,15 +111,51 @@ const TemplateSummary = /* @__PURE__ */ (() => Schema.Struct({
|
|
|
77
111
|
createdAt: Schema.String,
|
|
78
112
|
updatedAt: Schema.String
|
|
79
113
|
}).annotate({ identifier: "TemplateSummary" }))();
|
|
114
|
+
const WhatsAppTemplateComponent = /* @__PURE__ */ (() => Schema.Union([
|
|
115
|
+
Schema.Struct({
|
|
116
|
+
type: Schema.Literal("HEADER"),
|
|
117
|
+
format: Schema.Literal("TEXT"),
|
|
118
|
+
text: Schema.String,
|
|
119
|
+
example: Schema.optionalKey(Schema.Struct({ header_text: Schema.Array(Schema.String) }))
|
|
120
|
+
}),
|
|
121
|
+
Schema.Struct({
|
|
122
|
+
type: Schema.Literal("BODY"),
|
|
123
|
+
text: Schema.String,
|
|
124
|
+
example: Schema.optionalKey(Schema.Struct({ body_text: Schema.Array(Schema.Array(Schema.String)) }))
|
|
125
|
+
}),
|
|
126
|
+
Schema.Struct({
|
|
127
|
+
type: Schema.Literal("FOOTER"),
|
|
128
|
+
text: Schema.String
|
|
129
|
+
}),
|
|
130
|
+
Schema.Struct({
|
|
131
|
+
type: Schema.Literal("BUTTONS"),
|
|
132
|
+
buttons: Schema.Array(WhatsAppTemplateButton)
|
|
133
|
+
})
|
|
134
|
+
]).annotate({ identifier: "WhatsAppTemplateComponent" }))();
|
|
135
|
+
const TemplateFamily = /* @__PURE__ */ (() => Schema.Struct({
|
|
136
|
+
id: TemplateFamilyId,
|
|
137
|
+
name: Schema.String,
|
|
138
|
+
members: Schema.Array(TemplateFamilyMember),
|
|
139
|
+
createdAt: Schema.String,
|
|
140
|
+
updatedAt: Schema.String
|
|
141
|
+
}).annotate({ identifier: "TemplateFamily" }))();
|
|
142
|
+
const TemplatePage = /* @__PURE__ */ (() => Schema.Struct({
|
|
143
|
+
items: Schema.Array(TemplateSummary),
|
|
144
|
+
nextCursor: Schema.Union([Schema.String, Schema.Null])
|
|
145
|
+
}).annotate({ identifier: "TemplatePage" }))();
|
|
80
146
|
const Template = /* @__PURE__ */ (() => Schema.Struct({
|
|
81
147
|
id: TemplateId,
|
|
82
148
|
slug: Schema.String,
|
|
83
149
|
name: Schema.String,
|
|
84
|
-
channel: Schema.
|
|
150
|
+
channel: Schema.Union([
|
|
151
|
+
Schema.Literal("sms"),
|
|
152
|
+
Schema.Literal("whatsapp"),
|
|
153
|
+
Schema.Literal("email")
|
|
154
|
+
]),
|
|
85
155
|
projectId: TemplateProjectId,
|
|
86
156
|
namespaceId: Schema.Union([NamespaceId, Schema.Null]).annotate({ description: "The namespace the template's project belongs to; every entry in a project shares it. Null at organization level. A namespace-scoped key reaches only its own namespace's templates and shared ones." }),
|
|
87
157
|
shared: Schema.Boolean.annotate({ description: "Whether the template's project is shared with every namespace. Every entry in a project shares it. A namespace-scoped key reads and sends a shared template in its own namespace but cannot change it. Only an organization-level project is shared." }),
|
|
88
|
-
entryPath: Schema.String.check(Schema.isMaxCodePoints(1024).annotate({ expected: "a string with at most 1024 code points" })).check(Schema.isPattern(
|
|
158
|
+
entryPath: Schema.String.check(Schema.isMaxCodePoints(1024).annotate({ expected: "a string with at most 1024 code points" })).check(Schema.isPattern(new globalThis.RegExp("^(?!\\/)(?!.*\\\\)(?!.*(?:^|\\/)\\.{1,2}(?:\\/|$))(?!.*(?:^|\\/)\\.git(?:\\/|$))(?:templates|emails)\\/.+\\.tsx$", "u")).annotate({ expected: "a string matching the RegExp ^(?!\\/)(?!.*\\\\)(?!.*(?:^|\\/)\\.{1,2}(?:\\/|$))(?!.*(?:^|\\/)\\.git(?:\\/|$))(?:templates|emails)\\/.+\\.tsx$" })).check(Schema.isMaxLength(1024).annotate({ expected: "a value with a length of at most 1024" })),
|
|
89
159
|
status: Schema.Union([
|
|
90
160
|
Schema.Literal("draft"),
|
|
91
161
|
Schema.Literal("pending"),
|
|
@@ -94,7 +164,6 @@ const Template = /* @__PURE__ */ (() => Schema.Struct({
|
|
|
94
164
|
Schema.Literal("rejected"),
|
|
95
165
|
Schema.Literal("archived")
|
|
96
166
|
]),
|
|
97
|
-
isActive: Schema.Boolean,
|
|
98
167
|
publishedAt: Schema.Union([Schema.String, Schema.Null]),
|
|
99
168
|
brand: Schema.Union([TemplatePublicationBrand, Schema.Null]),
|
|
100
169
|
fromDefault: Schema.Union([TemplateFromDefault, Schema.Null]),
|
|
@@ -120,21 +189,34 @@ const Template = /* @__PURE__ */ (() => Schema.Struct({
|
|
|
120
189
|
preheader: Schema.Union([Schema.String, Schema.Null]),
|
|
121
190
|
headers: Schema.Union([Schema.Record(Schema.String, Schema.String), Schema.Null])
|
|
122
191
|
}), Schema.Null]),
|
|
192
|
+
sms: Schema.Union([Schema.Struct({
|
|
193
|
+
body: Schema.String,
|
|
194
|
+
encoding: Schema.Union([Schema.String, Schema.Null]),
|
|
195
|
+
estimatedSegments: Schema.Union([Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThanOrEqualTo(-9007199254740991).annotate({ expected: "a value greater than or equal to -9007199254740991" })).check(Schema.isLessThanOrEqualTo(9007199254740991).annotate({ expected: "a value less than or equal to 9007199254740991" })), Schema.Null]),
|
|
196
|
+
category: Schema.Union([Schema.Union([
|
|
197
|
+
Schema.Literal("transactional"),
|
|
198
|
+
Schema.Literal("promotional"),
|
|
199
|
+
Schema.Literal("service_implicit")
|
|
200
|
+
]), Schema.Null])
|
|
201
|
+
}), Schema.Null]),
|
|
202
|
+
whatsapp: Schema.Union([Schema.Struct({
|
|
203
|
+
name: Schema.String,
|
|
204
|
+
language: Schema.String,
|
|
205
|
+
category: Schema.Union([
|
|
206
|
+
Schema.Literal("marketing"),
|
|
207
|
+
Schema.Literal("utility"),
|
|
208
|
+
Schema.Literal("authentication")
|
|
209
|
+
]),
|
|
210
|
+
components: Schema.Array(WhatsAppTemplateComponent)
|
|
211
|
+
}), Schema.Null]),
|
|
123
212
|
publicationId: Schema.Union([TemplatePublicationId, Schema.Null]),
|
|
124
213
|
inputContractId: Schema.Union([TemplateInputContractId, Schema.Null]),
|
|
125
214
|
inputSchema: Schema.Union([Schema.Record(Schema.String, JsonValue), Schema.Null])
|
|
126
215
|
}).annotate({ identifier: "Template" }))();
|
|
127
|
-
const
|
|
128
|
-
|
|
129
|
-
name: Schema.String,
|
|
130
|
-
members: Schema.Array(TemplateFamilyMember),
|
|
131
|
-
createdAt: Schema.String,
|
|
132
|
-
updatedAt: Schema.String
|
|
133
|
-
}).annotate({ identifier: "TemplateFamily" }))();
|
|
134
|
-
const TemplatePage = /* @__PURE__ */ (() => Schema.Struct({
|
|
135
|
-
items: Schema.Array(TemplateSummary),
|
|
216
|
+
const TemplateFamilyPage = /* @__PURE__ */ (() => Schema.Struct({
|
|
217
|
+
items: Schema.Array(TemplateFamily),
|
|
136
218
|
nextCursor: Schema.Union([Schema.String, Schema.Null])
|
|
137
|
-
}).annotate({ identifier: "
|
|
219
|
+
}).annotate({ identifier: "TemplateFamilyPage" }))();
|
|
138
220
|
const TemplateFromWebsite = /* @__PURE__ */ (() => Schema.Struct({
|
|
139
221
|
template: Template,
|
|
140
222
|
website: Schema.Struct({
|
|
@@ -143,14 +225,10 @@ const TemplateFromWebsite = /* @__PURE__ */ (() => Schema.Struct({
|
|
|
143
225
|
}),
|
|
144
226
|
ask: Schema.String.annotate({ description: "The request to send the template assistant in the editor. The assistant reads the site, rebuilds the project's theme and blocks to match it, and proposes a brand that changes nothing until the customer applies it." })
|
|
145
227
|
}).annotate({ identifier: "TemplateFromWebsite" }))();
|
|
146
|
-
const TemplateFamilyPage = /* @__PURE__ */ (() => Schema.Struct({
|
|
147
|
-
items: Schema.Array(TemplateFamily),
|
|
148
|
-
nextCursor: Schema.Union([Schema.String, Schema.Null])
|
|
149
|
-
}).annotate({ identifier: "TemplateFamilyPage" }))();
|
|
150
228
|
const TemplatesListQuery = /* @__PURE__ */ (() => Schema.Struct({
|
|
151
229
|
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])),
|
|
152
|
-
cursor: Schema.optionalKey(Schema.
|
|
153
|
-
category: Schema.optionalKey(Schema.Union([
|
|
230
|
+
cursor: Schema.optionalKey(Schema.String),
|
|
231
|
+
category: Schema.optionalKey(Schema.Union([
|
|
154
232
|
Schema.Literal("transactional"),
|
|
155
233
|
Schema.Literal("marketing"),
|
|
156
234
|
Schema.Literal("support"),
|
|
@@ -158,22 +236,27 @@ const TemplatesListQuery = /* @__PURE__ */ (() => Schema.Struct({
|
|
|
158
236
|
Schema.Literal("verification"),
|
|
159
237
|
Schema.Literal("reminder"),
|
|
160
238
|
Schema.Literal("alert")
|
|
161
|
-
])
|
|
162
|
-
channel: Schema.optionalKey(Schema.Union([
|
|
163
|
-
|
|
239
|
+
])),
|
|
240
|
+
channel: Schema.optionalKey(Schema.Union([
|
|
241
|
+
Schema.Literal("sms"),
|
|
242
|
+
Schema.Literal("whatsapp"),
|
|
243
|
+
Schema.Literal("email")
|
|
244
|
+
])),
|
|
245
|
+
status: Schema.optionalKey(Schema.Union([
|
|
164
246
|
Schema.Literal("draft"),
|
|
165
247
|
Schema.Literal("pending"),
|
|
166
248
|
Schema.Literal("approved"),
|
|
167
249
|
Schema.Literal("published"),
|
|
168
250
|
Schema.Literal("rejected"),
|
|
169
251
|
Schema.Literal("archived")
|
|
170
|
-
])
|
|
171
|
-
search: Schema.optionalKey(Schema.
|
|
172
|
-
projectId: Schema.optionalKey(
|
|
173
|
-
namespaceId: Schema.optionalKey(Schema.Union([NamespaceId
|
|
252
|
+
])),
|
|
253
|
+
search: Schema.optionalKey(Schema.String),
|
|
254
|
+
projectId: Schema.optionalKey(TemplateProjectId),
|
|
255
|
+
namespaceId: Schema.optionalKey(Schema.Union([NamespaceId]).annotate({ description: "Only the templates this namespace uses: its own and those shared with every namespace (add `shared=false` for its own only). A namespace-scoped key lists its own namespace's and shared templates." })),
|
|
174
256
|
shared: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null]).annotate({ description: "Only templates whose project is shared with every namespace (true), or only unshared ones (false)." }))
|
|
175
257
|
}))();
|
|
176
258
|
const TemplatesList200 = TemplatePage;
|
|
259
|
+
const TemplatesList400 = MalformedRequestError;
|
|
177
260
|
const TemplatesList401 = UnauthorizedError;
|
|
178
261
|
const TemplatesList403 = ForbiddenError;
|
|
179
262
|
const TemplatesList422 = ValidationError;
|
|
@@ -183,7 +266,7 @@ const TemplatesCreateHeaders = /* @__PURE__ */ (() => Schema.Struct({ "idempoten
|
|
|
183
266
|
const TemplatesCreateRequestJson = /* @__PURE__ */ (() => Schema.Struct({
|
|
184
267
|
name: Schema.String.check(Schema.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema.isMaxCodePoints(200).annotate({ expected: "a string with at most 200 code points" })).check(Schema.isMaxLength(200).annotate({ expected: "a value with a length of at most 200" })),
|
|
185
268
|
projectName: Schema.optionalKey(Schema.Union([Schema.String.check(Schema.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema.isMaxCodePoints(200).annotate({ expected: "a string with at most 200 code points" })).check(Schema.isMaxLength(200).annotate({ expected: "a value with a length of at most 200" })), Schema.Null])),
|
|
186
|
-
slug: Schema.optionalKey(Schema.Union([Schema.String.check(Schema.isPattern(
|
|
269
|
+
slug: Schema.optionalKey(Schema.Union([Schema.String.check(Schema.isPattern(new globalThis.RegExp("^(?=.{1,100}$)[a-z0-9]+(?:-[a-z0-9]+)*$", "u")).annotate({ expected: "a string matching the RegExp ^(?=.{1,100}$)[a-z0-9]+(?:-[a-z0-9]+)*$" })), Schema.Null])),
|
|
187
270
|
galleryTemplateId: 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.isMaxLength(128).annotate({ expected: "a value with a length of at most 128" })), Schema.Null])),
|
|
188
271
|
useBrand: Schema.optionalKey(Schema.Union([Schema.Boolean.annotate({ description: "With `galleryTemplateId`: whether the new project's `theme.css` imports the organization's default brand (`@import \"samva:brand\";`) over the starter's look. Defaults to false." }), Schema.Null])),
|
|
189
272
|
description: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
|
|
@@ -196,40 +279,43 @@ const TemplatesCreateRequestJson = /* @__PURE__ */ (() => Schema.Struct({
|
|
|
196
279
|
Schema.Literal("reminder"),
|
|
197
280
|
Schema.Literal("alert")
|
|
198
281
|
]), Schema.Null])),
|
|
199
|
-
isActive: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
200
282
|
namespaceId: Schema.optionalKey(Schema.Union([NamespaceId, Schema.Null]).annotate({ description: "The namespace the new template project belongs to; the project and every entry added to it share it. Omit for organization level. A namespace-scoped key always creates in its own namespace." })),
|
|
201
283
|
shared: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null]).annotate({ description: "Share the new organization-level project with every namespace: namespace-scoped keys read and send its entries but cannot change them. Defaults to false. Not with `namespaceId`, and not from a namespace-scoped key." }))
|
|
202
284
|
}))();
|
|
203
285
|
const TemplatesCreate201 = Template;
|
|
286
|
+
const TemplatesCreate400 = MalformedRequestError;
|
|
204
287
|
const TemplatesCreate401 = UnauthorizedError;
|
|
205
288
|
const TemplatesCreate403 = ForbiddenError;
|
|
206
289
|
const TemplatesCreate404 = ResourceNotFoundError;
|
|
207
|
-
const TemplatesCreate409 = ConflictError;
|
|
290
|
+
const TemplatesCreate409 = /* @__PURE__ */ (() => Schema.Union([ConflictError, TemplateInUseError]))();
|
|
208
291
|
const TemplatesCreate422 = /* @__PURE__ */ (() => Schema.Union([TemplateSourceError, ValidationError]))();
|
|
209
292
|
const TemplatesCreate500 = InternalError;
|
|
210
293
|
const TemplatesCreate503 = ServiceUnavailableError;
|
|
211
294
|
const TemplatesCreate504 = GatewayTimeoutError;
|
|
212
295
|
const TemplatesGetByIdPathParams = /* @__PURE__ */ (() => Schema.Struct({ id: TemplateId }))();
|
|
213
296
|
const TemplatesGetById200 = Template;
|
|
297
|
+
const TemplatesGetById400 = MalformedRequestError;
|
|
214
298
|
const TemplatesGetById401 = UnauthorizedError;
|
|
215
299
|
const TemplatesGetById403 = ForbiddenError;
|
|
216
300
|
const TemplatesGetById404 = ResourceNotFoundError;
|
|
217
301
|
const TemplatesGetById422 = ValidationError;
|
|
218
302
|
const TemplatesGetById500 = InternalError;
|
|
219
303
|
const TemplatesGetById504 = GatewayTimeoutError;
|
|
220
|
-
const
|
|
221
|
-
const
|
|
222
|
-
const
|
|
223
|
-
const
|
|
224
|
-
const
|
|
225
|
-
const
|
|
226
|
-
const
|
|
227
|
-
const
|
|
304
|
+
const TemplatesDeletePathParams = /* @__PURE__ */ (() => Schema.Struct({ id: TemplateId }))();
|
|
305
|
+
const TemplatesDelete200 = SuccessResponse;
|
|
306
|
+
const TemplatesDelete400 = MalformedRequestError;
|
|
307
|
+
const TemplatesDelete401 = UnauthorizedError;
|
|
308
|
+
const TemplatesDelete403 = ForbiddenError;
|
|
309
|
+
const TemplatesDelete404 = ResourceNotFoundError;
|
|
310
|
+
const TemplatesDelete409 = TemplateInUseError;
|
|
311
|
+
const TemplatesDelete422 = ValidationError;
|
|
312
|
+
const TemplatesDelete500 = InternalError;
|
|
313
|
+
const TemplatesDelete504 = GatewayTimeoutError;
|
|
228
314
|
const TemplatesUpdatePathParams = /* @__PURE__ */ (() => Schema.Struct({ id: TemplateId }))();
|
|
229
315
|
const TemplatesUpdateRequestJson = /* @__PURE__ */ (() => Schema.Struct({ data: Schema.Struct({
|
|
230
316
|
name: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
|
|
231
|
-
slug: Schema.optionalKey(Schema.Union([Schema.String.check(Schema.isPattern(
|
|
232
|
-
entryPath: Schema.optionalKey(Schema.Union([Schema.String.check(Schema.isMaxCodePoints(1024).annotate({ expected: "a string with at most 1024 code points" })).check(Schema.isPattern(
|
|
317
|
+
slug: Schema.optionalKey(Schema.Union([Schema.String.check(Schema.isPattern(new globalThis.RegExp("^(?=.{1,100}$)[a-z0-9]+(?:-[a-z0-9]+)*$", "u")).annotate({ expected: "a string matching the RegExp ^(?=.{1,100}$)[a-z0-9]+(?:-[a-z0-9]+)*$" })), Schema.Null])),
|
|
318
|
+
entryPath: Schema.optionalKey(Schema.Union([Schema.String.check(Schema.isMaxCodePoints(1024).annotate({ expected: "a string with at most 1024 code points" })).check(Schema.isPattern(new globalThis.RegExp("^(?!\\/)(?!.*\\\\)(?!.*(?:^|\\/)\\.{1,2}(?:\\/|$))(?!.*(?:^|\\/)\\.git(?:\\/|$))(?:templates|emails)\\/.+\\.tsx$", "u")).annotate({ expected: "a string matching the RegExp ^(?!\\/)(?!.*\\\\)(?!.*(?:^|\\/)\\.{1,2}(?:\\/|$))(?!.*(?:^|\\/)\\.git(?:\\/|$))(?:templates|emails)\\/.+\\.tsx$" })).check(Schema.isMaxLength(1024).annotate({ expected: "a value with a length of at most 1024" })), Schema.Null])),
|
|
233
319
|
description: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
|
|
234
320
|
category: Schema.optionalKey(Schema.Union([Schema.Union([
|
|
235
321
|
Schema.Literal("transactional"),
|
|
@@ -243,10 +329,10 @@ const TemplatesUpdateRequestJson = /* @__PURE__ */ (() => Schema.Struct({ data:
|
|
|
243
329
|
fromDefault: Schema.optionalKey(Schema.Union([TemplateFromDefault, Schema.Null])),
|
|
244
330
|
replyToDefault: Schema.optionalKey(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
|
|
245
331
|
trackingDefault: Schema.optionalKey(Schema.Union([TemplateTrackingDefault, Schema.Null]).annotate({ description: "Engagement tracking for sends of this template: `opens` and `clicks`, each inherited from the domain and organization defaults when omitted. A send request's own `tracking` still wins. Null clears the template's default." })),
|
|
246
|
-
isActive: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
247
332
|
shared: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null]).annotate({ description: "Share the template's project with every namespace, or stop sharing it. Applies to every entry in the project. Only an organization-level project is shared." }))
|
|
248
333
|
}) }))();
|
|
249
334
|
const TemplatesUpdate200 = Template;
|
|
335
|
+
const TemplatesUpdate400 = MalformedRequestError;
|
|
250
336
|
const TemplatesUpdate401 = UnauthorizedError;
|
|
251
337
|
const TemplatesUpdate403 = ForbiddenError;
|
|
252
338
|
const TemplatesUpdate404 = ResourceNotFoundError;
|
|
@@ -257,9 +343,10 @@ const TemplatesUpdate504 = GatewayTimeoutError;
|
|
|
257
343
|
const TemplatesListInputContractsPathParams = /* @__PURE__ */ (() => Schema.Struct({ id: TemplateId }))();
|
|
258
344
|
const TemplatesListInputContractsQuery = /* @__PURE__ */ (() => Schema.Struct({
|
|
259
345
|
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])),
|
|
260
|
-
cursor: Schema.optionalKey(Schema.
|
|
346
|
+
cursor: Schema.optionalKey(Schema.String)
|
|
261
347
|
}))();
|
|
262
348
|
const TemplatesListInputContracts200 = TemplateInputContractPage;
|
|
349
|
+
const TemplatesListInputContracts400 = MalformedRequestError;
|
|
263
350
|
const TemplatesListInputContracts401 = UnauthorizedError;
|
|
264
351
|
const TemplatesListInputContracts403 = ForbiddenError;
|
|
265
352
|
const TemplatesListInputContracts404 = ResourceNotFoundError;
|
|
@@ -275,10 +362,11 @@ const TemplatesGetInputContract200 = /* @__PURE__ */ (() => Schema.Struct({
|
|
|
275
362
|
organizationId: OrganizationId,
|
|
276
363
|
templateId: TemplateId,
|
|
277
364
|
version: 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" })),
|
|
278
|
-
validationDigest: Schema.String.check(Schema.isPattern(
|
|
365
|
+
validationDigest: Schema.String.check(Schema.isPattern(new globalThis.RegExp("^[a-f0-9]{64}$", "u")).annotate({ expected: "a string matching the RegExp ^[a-f0-9]{64}$" })),
|
|
279
366
|
schema: Schema.Record(Schema.String, JsonValue),
|
|
280
367
|
createdAt: Schema.String
|
|
281
368
|
}))();
|
|
369
|
+
const TemplatesGetInputContract400 = MalformedRequestError;
|
|
282
370
|
const TemplatesGetInputContract401 = UnauthorizedError;
|
|
283
371
|
const TemplatesGetInputContract403 = ForbiddenError;
|
|
284
372
|
const TemplatesGetInputContract404 = ResourceNotFoundError;
|
|
@@ -288,8 +376,8 @@ const TemplatesGetInputContract504 = GatewayTimeoutError;
|
|
|
288
376
|
const TemplatesPublishPathParams = /* @__PURE__ */ (() => Schema.Struct({ id: TemplateId }))();
|
|
289
377
|
const TemplatesPublishRequestJson = /* @__PURE__ */ (() => Schema.Struct({
|
|
290
378
|
projectId: TemplateProjectId,
|
|
291
|
-
commitSha: Schema.String.check(Schema.isPattern(
|
|
292
|
-
entryPath: Schema.String.check(Schema.isMaxCodePoints(1024).annotate({ expected: "a string with at most 1024 code points" })).check(Schema.isPattern(
|
|
379
|
+
commitSha: Schema.String.check(Schema.isPattern(new globalThis.RegExp("^[a-f0-9]{40}$", "u")).annotate({ expected: "a string matching the RegExp ^[a-f0-9]{40}$" })),
|
|
380
|
+
entryPath: Schema.String.check(Schema.isMaxCodePoints(1024).annotate({ expected: "a string with at most 1024 code points" })).check(Schema.isPattern(new globalThis.RegExp("^(?!\\/)(?!.*\\\\)(?!.*(?:^|\\/)\\.{1,2}(?:\\/|$))(?!.*(?:^|\\/)\\.git(?:\\/|$))(?:templates|emails)\\/.+\\.tsx$", "u")).annotate({ expected: "a string matching the RegExp ^(?!\\/)(?!.*\\\\)(?!.*(?:^|\\/)\\.{1,2}(?:\\/|$))(?!.*(?:^|\\/)\\.git(?:\\/|$))(?:templates|emails)\\/.+\\.tsx$" })).check(Schema.isMaxLength(1024).annotate({ expected: "a value with a length of at most 1024" })),
|
|
293
381
|
expectedWorkspaceRevision: Schema.String.check(Schema.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })),
|
|
294
382
|
ifCurrentPublicationId: Schema.optionalKey(Schema.Union([TemplatePublicationId, Schema.Null]))
|
|
295
383
|
}))();
|
|
@@ -299,46 +387,46 @@ const TemplatesPublish201 = /* @__PURE__ */ (() => Schema.Struct({
|
|
|
299
387
|
projectId: TemplateProjectId,
|
|
300
388
|
templateId: TemplateId,
|
|
301
389
|
inputContractId: TemplateInputContractId,
|
|
302
|
-
commitSha: Schema.String.check(Schema.isPattern(
|
|
303
|
-
treeSha: Schema.String.check(Schema.isPattern(
|
|
304
|
-
entryPath: Schema.String.check(Schema.isMaxCodePoints(1024).annotate({ expected: "a string with at most 1024 code points" })).check(Schema.isPattern(
|
|
305
|
-
buildIdentity: Schema.String.check(Schema.isPattern(
|
|
390
|
+
commitSha: Schema.String.check(Schema.isPattern(new globalThis.RegExp("^[a-f0-9]{40}$", "u")).annotate({ expected: "a string matching the RegExp ^[a-f0-9]{40}$" })),
|
|
391
|
+
treeSha: Schema.String.check(Schema.isPattern(new globalThis.RegExp("^[a-f0-9]{40}$", "u")).annotate({ expected: "a string matching the RegExp ^[a-f0-9]{40}$" })),
|
|
392
|
+
entryPath: Schema.String.check(Schema.isMaxCodePoints(1024).annotate({ expected: "a string with at most 1024 code points" })).check(Schema.isPattern(new globalThis.RegExp("^(?!\\/)(?!.*\\\\)(?!.*(?:^|\\/)\\.{1,2}(?:\\/|$))(?!.*(?:^|\\/)\\.git(?:\\/|$))(?:templates|emails)\\/.+\\.tsx$", "u")).annotate({ expected: "a string matching the RegExp ^(?!\\/)(?!.*\\\\)(?!.*(?:^|\\/)\\.{1,2}(?:\\/|$))(?!.*(?:^|\\/)\\.git(?:\\/|$))(?:templates|emails)\\/.+\\.tsx$" })).check(Schema.isMaxLength(1024).annotate({ expected: "a value with a length of at most 1024" })),
|
|
393
|
+
buildIdentity: Schema.String.check(Schema.isPattern(new globalThis.RegExp("^[a-f0-9]{64}$", "u")).annotate({ expected: "a string matching the RegExp ^[a-f0-9]{64}$" })),
|
|
306
394
|
manifest: Schema.Struct({
|
|
307
395
|
templateKey: Schema.String.check(Schema.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })),
|
|
308
396
|
compiled: Schema.Struct({
|
|
309
397
|
version: 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" })),
|
|
310
|
-
digest: Schema.String.check(Schema.isPattern(
|
|
398
|
+
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}$" })),
|
|
311
399
|
bytes: 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" }))
|
|
312
400
|
}),
|
|
313
401
|
compiler: Schema.String.check(Schema.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })),
|
|
314
402
|
input: Schema.Struct({
|
|
315
|
-
schemaDigest: Schema.String.check(Schema.isPattern(
|
|
316
|
-
contractDigest: Schema.String.check(Schema.isPattern(
|
|
403
|
+
schemaDigest: Schema.String.check(Schema.isPattern(new globalThis.RegExp("^[a-f0-9]{64}$", "u")).annotate({ expected: "a string matching the RegExp ^[a-f0-9]{64}$" })),
|
|
404
|
+
contractDigest: Schema.String.check(Schema.isPattern(new globalThis.RegExp("^[a-f0-9]{64}$", "u")).annotate({ expected: "a string matching the RegExp ^[a-f0-9]{64}$" }))
|
|
317
405
|
}),
|
|
318
406
|
assets: Schema.Struct({
|
|
319
|
-
base: Schema.String.check(Schema.isPattern(
|
|
407
|
+
base: Schema.String.check(Schema.isPattern(new globalThis.RegExp("^https?:\\/\\/", "u")).annotate({ expected: "a string matching the RegExp ^https?:\\/\\/" })),
|
|
320
408
|
entries: Schema.Array(Schema.Struct({
|
|
321
409
|
path: 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" })),
|
|
322
|
-
fileName: Schema.String.check(Schema.isPattern(
|
|
323
|
-
digest: Schema.String.check(Schema.isPattern(
|
|
410
|
+
fileName: Schema.String.check(Schema.isPattern(new globalThis.RegExp("^[a-f0-9]{64}(?:\\.[A-Za-z0-9]+)?$", "u")).annotate({ expected: "a string matching the RegExp ^[a-f0-9]{64}(?:\\.[A-Za-z0-9]+)?$" })),
|
|
411
|
+
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}$" })),
|
|
324
412
|
bytes: 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" })),
|
|
325
413
|
contentType: Schema.String.check(Schema.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })),
|
|
326
|
-
url: Schema.String.check(Schema.isPattern(
|
|
414
|
+
url: Schema.String.check(Schema.isPattern(new globalThis.RegExp("^https?:\\/\\/", "u")).annotate({ expected: "a string matching the RegExp ^https?:\\/\\/" }))
|
|
327
415
|
})).check(Schema.isMaxLength(32).annotate({ expected: "a value with a length of at most 32" }))
|
|
328
416
|
}),
|
|
329
417
|
source: Schema.Struct({
|
|
330
|
-
commitSha: Schema.String.check(Schema.isPattern(
|
|
331
|
-
treeSha: Schema.String.check(Schema.isPattern(
|
|
332
|
-
entryPath: Schema.Union([Schema.String.check(Schema.isMaxCodePoints(1024).annotate({ expected: "a string with at most 1024 code points" })).check(Schema.isPattern(
|
|
333
|
-
treeDigest: Schema.String.check(Schema.isPattern(
|
|
418
|
+
commitSha: Schema.String.check(Schema.isPattern(new globalThis.RegExp("^[a-f0-9]{40}$", "u")).annotate({ expected: "a string matching the RegExp ^[a-f0-9]{40}$" })),
|
|
419
|
+
treeSha: Schema.String.check(Schema.isPattern(new globalThis.RegExp("^[a-f0-9]{40}$", "u")).annotate({ expected: "a string matching the RegExp ^[a-f0-9]{40}$" })),
|
|
420
|
+
entryPath: Schema.Union([Schema.String.check(Schema.isMaxCodePoints(1024).annotate({ expected: "a string with at most 1024 code points" })).check(Schema.isPattern(new globalThis.RegExp("^(?!\\/)(?!.*\\\\)(?!.*(?:^|\\/)\\.{1,2}(?:\\/|$))(?!.*(?:^|\\/)\\.git(?:\\/|$))(?:templates|emails)\\/.+\\.tsx$", "u")).annotate({ expected: "a string matching the RegExp ^(?!\\/)(?!.*\\\\)(?!.*(?:^|\\/)\\.{1,2}(?:\\/|$))(?!.*(?:^|\\/)\\.git(?:\\/|$))(?:templates|emails)\\/.+\\.tsx$" })).check(Schema.isMaxLength(1024).annotate({ expected: "a value with a length of at most 1024" })), Schema.String.check(Schema.isMaxCodePoints(1024).annotate({ expected: "a string with at most 1024 code points" })).check(Schema.isPattern(new globalThis.RegExp("^(?!.*\\\\)(?!.*(?:^|\\/)\\.{1,2}(?:\\/|$))(?!.*(?:^|\\/)\\.git(?:\\/|$))(?!.*\\p{Cc})issues\\/(?:[^/]+\\/)*[^/]+\\.md$", "u")).annotate({ expected: "a string matching the RegExp ^(?!.*\\\\)(?!.*(?:^|\\/)\\.{1,2}(?:\\/|$))(?!.*(?:^|\\/)\\.git(?:\\/|$))(?!.*\\p{Cc})issues\\/(?:[^/]+\\/)*[^/]+\\.md$" })).check(Schema.isMaxLength(1024).annotate({ expected: "a value with a length of at most 1024" }))]),
|
|
421
|
+
treeDigest: Schema.String.check(Schema.isPattern(new globalThis.RegExp("^[a-f0-9]{64}$", "u")).annotate({ expected: "a string matching the RegExp ^[a-f0-9]{64}$" }))
|
|
334
422
|
}),
|
|
335
423
|
brand: Schema.optionalKey(Schema.Struct({
|
|
336
|
-
slug: Schema.String.check(Schema.isPattern(
|
|
424
|
+
slug: Schema.String.check(Schema.isPattern(new globalThis.RegExp("^[a-z0-9](?:[a-z0-9-]{0,62}[a-z0-9])?$", "u")).annotate({ expected: "a string matching the RegExp ^[a-z0-9](?:[a-z0-9-]{0,62}[a-z0-9])?$" })),
|
|
337
425
|
css: Schema.String,
|
|
338
426
|
assets: BrandAssets,
|
|
339
427
|
footer: BrandFooter,
|
|
340
428
|
renderedFooter: BrandRenderedFooter,
|
|
341
|
-
digest: Schema.String.check(Schema.isPattern(
|
|
429
|
+
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}$" })),
|
|
342
430
|
rendersFooter: Schema.Union([
|
|
343
431
|
Schema.Literal("every"),
|
|
344
432
|
Schema.Literal("some"),
|
|
@@ -348,15 +436,15 @@ const TemplatesPublish201 = /* @__PURE__ */ (() => Schema.Struct({
|
|
|
348
436
|
}),
|
|
349
437
|
compiled: Schema.Struct({
|
|
350
438
|
key: Schema.String.check(Schema.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })),
|
|
351
|
-
digest: Schema.String.check(Schema.isPattern(
|
|
439
|
+
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}$" }))
|
|
352
440
|
}),
|
|
353
441
|
assets: Schema.Array(Schema.Struct({
|
|
354
442
|
path: 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" })),
|
|
355
|
-
fileName: Schema.String.check(Schema.isPattern(
|
|
356
|
-
digest: Schema.String.check(Schema.isPattern(
|
|
443
|
+
fileName: Schema.String.check(Schema.isPattern(new globalThis.RegExp("^[a-f0-9]{64}(?:\\.[A-Za-z0-9]+)?$", "u")).annotate({ expected: "a string matching the RegExp ^[a-f0-9]{64}(?:\\.[A-Za-z0-9]+)?$" })),
|
|
444
|
+
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}$" })),
|
|
357
445
|
bytes: 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" })),
|
|
358
446
|
contentType: Schema.String.check(Schema.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })),
|
|
359
|
-
url: Schema.String.check(Schema.isPattern(
|
|
447
|
+
url: Schema.String.check(Schema.isPattern(new globalThis.RegExp("^https?:\\/\\/", "u")).annotate({ expected: "a string matching the RegExp ^https?:\\/\\/" }))
|
|
360
448
|
})),
|
|
361
449
|
warnings: Schema.Array(Schema.Struct({
|
|
362
450
|
code: Schema.String,
|
|
@@ -427,10 +515,11 @@ const TemplatesPublish201 = /* @__PURE__ */ (() => Schema.Struct({
|
|
|
427
515
|
publishedBy: Schema.Union([Schema.String, Schema.Null]),
|
|
428
516
|
createdAt: Schema.String
|
|
429
517
|
}))();
|
|
518
|
+
const TemplatesPublish400 = MalformedRequestError;
|
|
430
519
|
const TemplatesPublish401 = UnauthorizedError;
|
|
431
520
|
const TemplatesPublish403 = ForbiddenError;
|
|
432
521
|
const TemplatesPublish404 = ResourceNotFoundError;
|
|
433
|
-
const TemplatesPublish409 = ConflictError;
|
|
522
|
+
const TemplatesPublish409 = /* @__PURE__ */ (() => Schema.Union([ConflictError, TemplateInUseError]))();
|
|
434
523
|
const TemplatesPublish422 = /* @__PURE__ */ (() => Schema.Union([TemplateSourceError, ValidationError]))();
|
|
435
524
|
const TemplatesPublish500 = InternalError;
|
|
436
525
|
const TemplatesPublish503 = ServiceUnavailableError;
|
|
@@ -445,46 +534,46 @@ const TemplatesGetPublication200 = /* @__PURE__ */ (() => Schema.Struct({
|
|
|
445
534
|
projectId: TemplateProjectId,
|
|
446
535
|
templateId: TemplateId,
|
|
447
536
|
inputContractId: TemplateInputContractId,
|
|
448
|
-
commitSha: Schema.String.check(Schema.isPattern(
|
|
449
|
-
treeSha: Schema.String.check(Schema.isPattern(
|
|
450
|
-
entryPath: Schema.String.check(Schema.isMaxCodePoints(1024).annotate({ expected: "a string with at most 1024 code points" })).check(Schema.isPattern(
|
|
451
|
-
buildIdentity: Schema.String.check(Schema.isPattern(
|
|
537
|
+
commitSha: Schema.String.check(Schema.isPattern(new globalThis.RegExp("^[a-f0-9]{40}$", "u")).annotate({ expected: "a string matching the RegExp ^[a-f0-9]{40}$" })),
|
|
538
|
+
treeSha: Schema.String.check(Schema.isPattern(new globalThis.RegExp("^[a-f0-9]{40}$", "u")).annotate({ expected: "a string matching the RegExp ^[a-f0-9]{40}$" })),
|
|
539
|
+
entryPath: Schema.String.check(Schema.isMaxCodePoints(1024).annotate({ expected: "a string with at most 1024 code points" })).check(Schema.isPattern(new globalThis.RegExp("^(?!\\/)(?!.*\\\\)(?!.*(?:^|\\/)\\.{1,2}(?:\\/|$))(?!.*(?:^|\\/)\\.git(?:\\/|$))(?:templates|emails)\\/.+\\.tsx$", "u")).annotate({ expected: "a string matching the RegExp ^(?!\\/)(?!.*\\\\)(?!.*(?:^|\\/)\\.{1,2}(?:\\/|$))(?!.*(?:^|\\/)\\.git(?:\\/|$))(?:templates|emails)\\/.+\\.tsx$" })).check(Schema.isMaxLength(1024).annotate({ expected: "a value with a length of at most 1024" })),
|
|
540
|
+
buildIdentity: Schema.String.check(Schema.isPattern(new globalThis.RegExp("^[a-f0-9]{64}$", "u")).annotate({ expected: "a string matching the RegExp ^[a-f0-9]{64}$" })),
|
|
452
541
|
manifest: Schema.Struct({
|
|
453
542
|
templateKey: Schema.String.check(Schema.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })),
|
|
454
543
|
compiled: Schema.Struct({
|
|
455
544
|
version: 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" })),
|
|
456
|
-
digest: Schema.String.check(Schema.isPattern(
|
|
545
|
+
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}$" })),
|
|
457
546
|
bytes: 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" }))
|
|
458
547
|
}),
|
|
459
548
|
compiler: Schema.String.check(Schema.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })),
|
|
460
549
|
input: Schema.Struct({
|
|
461
|
-
schemaDigest: Schema.String.check(Schema.isPattern(
|
|
462
|
-
contractDigest: Schema.String.check(Schema.isPattern(
|
|
550
|
+
schemaDigest: Schema.String.check(Schema.isPattern(new globalThis.RegExp("^[a-f0-9]{64}$", "u")).annotate({ expected: "a string matching the RegExp ^[a-f0-9]{64}$" })),
|
|
551
|
+
contractDigest: Schema.String.check(Schema.isPattern(new globalThis.RegExp("^[a-f0-9]{64}$", "u")).annotate({ expected: "a string matching the RegExp ^[a-f0-9]{64}$" }))
|
|
463
552
|
}),
|
|
464
553
|
assets: Schema.Struct({
|
|
465
|
-
base: Schema.String.check(Schema.isPattern(
|
|
554
|
+
base: Schema.String.check(Schema.isPattern(new globalThis.RegExp("^https?:\\/\\/", "u")).annotate({ expected: "a string matching the RegExp ^https?:\\/\\/" })),
|
|
466
555
|
entries: Schema.Array(Schema.Struct({
|
|
467
556
|
path: 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" })),
|
|
468
|
-
fileName: Schema.String.check(Schema.isPattern(
|
|
469
|
-
digest: Schema.String.check(Schema.isPattern(
|
|
557
|
+
fileName: Schema.String.check(Schema.isPattern(new globalThis.RegExp("^[a-f0-9]{64}(?:\\.[A-Za-z0-9]+)?$", "u")).annotate({ expected: "a string matching the RegExp ^[a-f0-9]{64}(?:\\.[A-Za-z0-9]+)?$" })),
|
|
558
|
+
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}$" })),
|
|
470
559
|
bytes: 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" })),
|
|
471
560
|
contentType: Schema.String.check(Schema.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })),
|
|
472
|
-
url: Schema.String.check(Schema.isPattern(
|
|
561
|
+
url: Schema.String.check(Schema.isPattern(new globalThis.RegExp("^https?:\\/\\/", "u")).annotate({ expected: "a string matching the RegExp ^https?:\\/\\/" }))
|
|
473
562
|
})).check(Schema.isMaxLength(32).annotate({ expected: "a value with a length of at most 32" }))
|
|
474
563
|
}),
|
|
475
564
|
source: Schema.Struct({
|
|
476
|
-
commitSha: Schema.String.check(Schema.isPattern(
|
|
477
|
-
treeSha: Schema.String.check(Schema.isPattern(
|
|
478
|
-
entryPath: Schema.Union([Schema.String.check(Schema.isMaxCodePoints(1024).annotate({ expected: "a string with at most 1024 code points" })).check(Schema.isPattern(
|
|
479
|
-
treeDigest: Schema.String.check(Schema.isPattern(
|
|
565
|
+
commitSha: Schema.String.check(Schema.isPattern(new globalThis.RegExp("^[a-f0-9]{40}$", "u")).annotate({ expected: "a string matching the RegExp ^[a-f0-9]{40}$" })),
|
|
566
|
+
treeSha: Schema.String.check(Schema.isPattern(new globalThis.RegExp("^[a-f0-9]{40}$", "u")).annotate({ expected: "a string matching the RegExp ^[a-f0-9]{40}$" })),
|
|
567
|
+
entryPath: Schema.Union([Schema.String.check(Schema.isMaxCodePoints(1024).annotate({ expected: "a string with at most 1024 code points" })).check(Schema.isPattern(new globalThis.RegExp("^(?!\\/)(?!.*\\\\)(?!.*(?:^|\\/)\\.{1,2}(?:\\/|$))(?!.*(?:^|\\/)\\.git(?:\\/|$))(?:templates|emails)\\/.+\\.tsx$", "u")).annotate({ expected: "a string matching the RegExp ^(?!\\/)(?!.*\\\\)(?!.*(?:^|\\/)\\.{1,2}(?:\\/|$))(?!.*(?:^|\\/)\\.git(?:\\/|$))(?:templates|emails)\\/.+\\.tsx$" })).check(Schema.isMaxLength(1024).annotate({ expected: "a value with a length of at most 1024" })), Schema.String.check(Schema.isMaxCodePoints(1024).annotate({ expected: "a string with at most 1024 code points" })).check(Schema.isPattern(new globalThis.RegExp("^(?!.*\\\\)(?!.*(?:^|\\/)\\.{1,2}(?:\\/|$))(?!.*(?:^|\\/)\\.git(?:\\/|$))(?!.*\\p{Cc})issues\\/(?:[^/]+\\/)*[^/]+\\.md$", "u")).annotate({ expected: "a string matching the RegExp ^(?!.*\\\\)(?!.*(?:^|\\/)\\.{1,2}(?:\\/|$))(?!.*(?:^|\\/)\\.git(?:\\/|$))(?!.*\\p{Cc})issues\\/(?:[^/]+\\/)*[^/]+\\.md$" })).check(Schema.isMaxLength(1024).annotate({ expected: "a value with a length of at most 1024" }))]),
|
|
568
|
+
treeDigest: Schema.String.check(Schema.isPattern(new globalThis.RegExp("^[a-f0-9]{64}$", "u")).annotate({ expected: "a string matching the RegExp ^[a-f0-9]{64}$" }))
|
|
480
569
|
}),
|
|
481
570
|
brand: Schema.optionalKey(Schema.Struct({
|
|
482
|
-
slug: Schema.String.check(Schema.isPattern(
|
|
571
|
+
slug: Schema.String.check(Schema.isPattern(new globalThis.RegExp("^[a-z0-9](?:[a-z0-9-]{0,62}[a-z0-9])?$", "u")).annotate({ expected: "a string matching the RegExp ^[a-z0-9](?:[a-z0-9-]{0,62}[a-z0-9])?$" })),
|
|
483
572
|
css: Schema.String,
|
|
484
573
|
assets: BrandAssets,
|
|
485
574
|
footer: BrandFooter,
|
|
486
575
|
renderedFooter: BrandRenderedFooter,
|
|
487
|
-
digest: Schema.String.check(Schema.isPattern(
|
|
576
|
+
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}$" })),
|
|
488
577
|
rendersFooter: Schema.Union([
|
|
489
578
|
Schema.Literal("every"),
|
|
490
579
|
Schema.Literal("some"),
|
|
@@ -494,15 +583,15 @@ const TemplatesGetPublication200 = /* @__PURE__ */ (() => Schema.Struct({
|
|
|
494
583
|
}),
|
|
495
584
|
compiled: Schema.Struct({
|
|
496
585
|
key: Schema.String.check(Schema.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })),
|
|
497
|
-
digest: Schema.String.check(Schema.isPattern(
|
|
586
|
+
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}$" }))
|
|
498
587
|
}),
|
|
499
588
|
assets: Schema.Array(Schema.Struct({
|
|
500
589
|
path: 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" })),
|
|
501
|
-
fileName: Schema.String.check(Schema.isPattern(
|
|
502
|
-
digest: Schema.String.check(Schema.isPattern(
|
|
590
|
+
fileName: Schema.String.check(Schema.isPattern(new globalThis.RegExp("^[a-f0-9]{64}(?:\\.[A-Za-z0-9]+)?$", "u")).annotate({ expected: "a string matching the RegExp ^[a-f0-9]{64}(?:\\.[A-Za-z0-9]+)?$" })),
|
|
591
|
+
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}$" })),
|
|
503
592
|
bytes: 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" })),
|
|
504
593
|
contentType: Schema.String.check(Schema.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })),
|
|
505
|
-
url: Schema.String.check(Schema.isPattern(
|
|
594
|
+
url: Schema.String.check(Schema.isPattern(new globalThis.RegExp("^https?:\\/\\/", "u")).annotate({ expected: "a string matching the RegExp ^https?:\\/\\/" }))
|
|
506
595
|
})),
|
|
507
596
|
warnings: Schema.Array(Schema.Struct({
|
|
508
597
|
code: Schema.String,
|
|
@@ -573,6 +662,7 @@ const TemplatesGetPublication200 = /* @__PURE__ */ (() => Schema.Struct({
|
|
|
573
662
|
publishedBy: Schema.Union([Schema.String, Schema.Null]),
|
|
574
663
|
createdAt: Schema.String
|
|
575
664
|
}))();
|
|
665
|
+
const TemplatesGetPublication400 = MalformedRequestError;
|
|
576
666
|
const TemplatesGetPublication401 = UnauthorizedError;
|
|
577
667
|
const TemplatesGetPublication403 = ForbiddenError;
|
|
578
668
|
const TemplatesGetPublication404 = ResourceNotFoundError;
|
|
@@ -589,6 +679,7 @@ const TemplatesRenderPublicationRequestJson = /* @__PURE__ */ (() => Schema.Stru
|
|
|
589
679
|
timeZone: Schema.optionalKey(RenderTimeZone)
|
|
590
680
|
}))();
|
|
591
681
|
const TemplatesRenderPublication200 = TemplatePublicationRender;
|
|
682
|
+
const TemplatesRenderPublication400 = MalformedRequestError;
|
|
592
683
|
const TemplatesRenderPublication401 = UnauthorizedError;
|
|
593
684
|
const TemplatesRenderPublication403 = ForbiddenError;
|
|
594
685
|
const TemplatesRenderPublication404 = ResourceNotFoundError;
|
|
@@ -598,13 +689,14 @@ const TemplatesRenderPublication500 = InternalError;
|
|
|
598
689
|
const TemplatesRenderPublication504 = GatewayTimeoutError;
|
|
599
690
|
const TemplatesGetGitRepositoryPathParams = /* @__PURE__ */ (() => Schema.Struct({ id: TemplateId }))();
|
|
600
691
|
const TemplatesGetGitRepository200 = /* @__PURE__ */ (() => Schema.Struct({
|
|
601
|
-
remote: Schema.String.check(Schema.isPattern(
|
|
692
|
+
remote: Schema.String.check(Schema.isPattern(new globalThis.RegExp("^https:\\/\\/|^http:\\/\\/127\\.0\\.0\\.1:(?:[1-9][0-9]{0,3}|[1-5][0-9]{4}|6[0-4][0-9]{3}|65[0-4][0-9]{2}|655[0-2][0-9]|6553[0-5])\\/git\\/[a-z0-9-]+\\/[a-z0-9-]+\\.git$", "u")).annotate({ expected: "a string matching the RegExp ^https:\\/\\/|^http:\\/\\/127\\.0\\.0\\.1:(?:[1-9][0-9]{0,3}|[1-5][0-9]{4}|6[0-4][0-9]{3}|65[0-4][0-9]{2}|655[0-2][0-9]|6553[0-5])\\/git\\/[a-z0-9-]+\\/[a-z0-9-]+\\.git$" })),
|
|
602
693
|
defaultBranch: 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" }))
|
|
603
694
|
}))();
|
|
695
|
+
const TemplatesGetGitRepository400 = MalformedRequestError;
|
|
604
696
|
const TemplatesGetGitRepository401 = UnauthorizedError;
|
|
605
697
|
const TemplatesGetGitRepository403 = ForbiddenError;
|
|
606
698
|
const TemplatesGetGitRepository404 = ResourceNotFoundError;
|
|
607
|
-
const TemplatesGetGitRepository409 = ConflictError;
|
|
699
|
+
const TemplatesGetGitRepository409 = /* @__PURE__ */ (() => Schema.Union([ConflictError, TemplateInUseError]))();
|
|
608
700
|
const TemplatesGetGitRepository422 = /* @__PURE__ */ (() => Schema.Union([TemplateSourceError, ValidationError]))();
|
|
609
701
|
const TemplatesGetGitRepository500 = InternalError;
|
|
610
702
|
const TemplatesGetGitRepository503 = ServiceUnavailableError;
|
|
@@ -612,15 +704,16 @@ const TemplatesGetGitRepository504 = GatewayTimeoutError;
|
|
|
612
704
|
const TemplatesIssueGitCredentialPathParams = /* @__PURE__ */ (() => Schema.Struct({ id: TemplateId }))();
|
|
613
705
|
const TemplatesIssueGitCredentialRequestJson = /* @__PURE__ */ (() => Schema.Struct({ scope: Schema.Union([Schema.Literal("read"), Schema.Literal("write")]) }))();
|
|
614
706
|
const TemplatesIssueGitCredential200 = /* @__PURE__ */ (() => Schema.Struct({
|
|
615
|
-
remote: Schema.String.check(Schema.isPattern(
|
|
707
|
+
remote: Schema.String.check(Schema.isPattern(new globalThis.RegExp("^https:\\/\\/|^http:\\/\\/127\\.0\\.0\\.1:(?:[1-9][0-9]{0,3}|[1-5][0-9]{4}|6[0-4][0-9]{3}|65[0-4][0-9]{2}|655[0-2][0-9]|6553[0-5])\\/git\\/[a-z0-9-]+\\/[a-z0-9-]+\\.git$", "u")).annotate({ expected: "a string matching the RegExp ^https:\\/\\/|^http:\\/\\/127\\.0\\.0\\.1:(?:[1-9][0-9]{0,3}|[1-5][0-9]{4}|6[0-4][0-9]{3}|65[0-4][0-9]{2}|655[0-2][0-9]|6553[0-5])\\/git\\/[a-z0-9-]+\\/[a-z0-9-]+\\.git$" })),
|
|
616
708
|
username: Schema.Literal("x-access-token"),
|
|
617
709
|
password: Schema.String.check(Schema.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })),
|
|
618
710
|
expiresAt: Schema.String
|
|
619
711
|
}))();
|
|
712
|
+
const TemplatesIssueGitCredential400 = MalformedRequestError;
|
|
620
713
|
const TemplatesIssueGitCredential401 = UnauthorizedError;
|
|
621
714
|
const TemplatesIssueGitCredential403 = ForbiddenError;
|
|
622
715
|
const TemplatesIssueGitCredential404 = ResourceNotFoundError;
|
|
623
|
-
const TemplatesIssueGitCredential409 = ConflictError;
|
|
716
|
+
const TemplatesIssueGitCredential409 = /* @__PURE__ */ (() => Schema.Union([ConflictError, TemplateInUseError]))();
|
|
624
717
|
const TemplatesIssueGitCredential422 = /* @__PURE__ */ (() => Schema.Union([TemplateSourceError, ValidationError]))();
|
|
625
718
|
const TemplatesIssueGitCredential500 = InternalError;
|
|
626
719
|
const TemplatesIssueGitCredential503 = ServiceUnavailableError;
|
|
@@ -631,11 +724,11 @@ const TemplatesOpenWorkspace200 = /* @__PURE__ */ (() => Schema.Struct({
|
|
|
631
724
|
projectId: TemplateProjectId,
|
|
632
725
|
organizationId: Schema.Union([OrganizationId, Schema.Null]),
|
|
633
726
|
ownerEpoch: 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" })),
|
|
634
|
-
repositoryName: Schema.String.check(Schema.isPattern(
|
|
727
|
+
repositoryName: Schema.String.check(Schema.isPattern(new globalThis.RegExp("^[A-Za-z0-9][A-Za-z0-9._-]{0,127}$", "u")).annotate({ expected: "a string matching the RegExp ^[A-Za-z0-9][A-Za-z0-9._-]{0,127}$" })),
|
|
635
728
|
defaultBranch: 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" })),
|
|
636
|
-
baseCommit: Schema.String.check(Schema.isPattern(
|
|
637
|
-
remoteHead: Schema.String.check(Schema.isPattern(
|
|
638
|
-
pendingRemoteHead: Schema.Union([Schema.String.check(Schema.isPattern(
|
|
729
|
+
baseCommit: Schema.String.check(Schema.isPattern(new globalThis.RegExp("^[a-f0-9]{40}$", "u")).annotate({ expected: "a string matching the RegExp ^[a-f0-9]{40}$" })),
|
|
730
|
+
remoteHead: Schema.String.check(Schema.isPattern(new globalThis.RegExp("^[a-f0-9]{40}$", "u")).annotate({ expected: "a string matching the RegExp ^[a-f0-9]{40}$" })),
|
|
731
|
+
pendingRemoteHead: Schema.Union([Schema.String.check(Schema.isPattern(new globalThis.RegExp("^[a-f0-9]{40}$", "u")).annotate({ expected: "a string matching the RegExp ^[a-f0-9]{40}$" })), Schema.Null]),
|
|
639
732
|
revision: Schema.String,
|
|
640
733
|
overlay: Schema.Record(Schema.String, Schema.Union([Schema.String, Schema.Null])),
|
|
641
734
|
assetChanges: Schema.Array(Schema.Struct({
|
|
@@ -647,7 +740,7 @@ const TemplatesOpenWorkspace200 = /* @__PURE__ */ (() => Schema.Struct({
|
|
|
647
740
|
])
|
|
648
741
|
})),
|
|
649
742
|
conflicts: Schema.Array(Schema.Struct({
|
|
650
|
-
path: Schema.String.check(Schema.isPattern(
|
|
743
|
+
path: Schema.String.check(Schema.isPattern(new globalThis.RegExp("^(?!\\/)(?!.*\\\\)(?!.*(?:^|\\/)\\.{1,2}(?:\\/|$))(?!.*(?:^|\\/)\\.git(?:\\/|$)).{1,1024}$")).annotate({ expected: "a string matching the RegExp ^(?!\\/)(?!.*\\\\)(?!.*(?:^|\\/)\\.{1,2}(?:\\/|$))(?!.*(?:^|\\/)\\.git(?:\\/|$)).{1,1024}$" })),
|
|
651
744
|
base: Schema.Union([Schema.String, Schema.Null]),
|
|
652
745
|
draft: Schema.Union([Schema.String, Schema.Null]),
|
|
653
746
|
main: Schema.Union([Schema.String, Schema.Null])
|
|
@@ -664,39 +757,39 @@ const TemplatesOpenWorkspace200 = /* @__PURE__ */ (() => Schema.Struct({
|
|
|
664
757
|
access: Schema.Literal("read-write")
|
|
665
758
|
}),
|
|
666
759
|
Schema.Struct({
|
|
667
|
-
root: Schema.String.check(Schema.isMaxCodePoints(2048).annotate({ expected: "a string with at most 2048 code points" })).check(Schema.isPattern(
|
|
668
|
-
digest: Schema.String.check(Schema.isPattern(
|
|
760
|
+
root: Schema.String.check(Schema.isMaxCodePoints(2048).annotate({ expected: "a string with at most 2048 code points" })).check(Schema.isPattern(new globalThis.RegExp("^\\/(?:project|references\\/started-from\\/[a-f0-9]{64}|resources\\/[A-Za-z0-9._-]+\\/[a-f0-9]{64}|library\\/templates\\/[a-z0-9]+(?:-[a-z0-9]+)*\\/[a-f0-9]{64})(?:\\/(?!\\.{1,2}(?:\\/|$)|\\.git(?:\\/|$))[^\\\\/]+)*$", "u")).annotate({ expected: "a string matching the RegExp ^\\/(?:project|references\\/started-from\\/[a-f0-9]{64}|resources\\/[A-Za-z0-9._-]+\\/[a-f0-9]{64}|library\\/templates\\/[a-z0-9]+(?:-[a-z0-9]+)*\\/[a-f0-9]{64})(?:\\/(?!\\.{1,2}(?:\\/|$)|\\.git(?:\\/|$))[^\\\\/]+)*$" })).check(Schema.isMaxLength(2048).annotate({ expected: "a value with a length of at most 2048" })),
|
|
761
|
+
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}$" })),
|
|
669
762
|
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" })),
|
|
670
763
|
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" })),
|
|
671
764
|
kind: Schema.Literal("started-from"),
|
|
672
765
|
access: Schema.Literal("read-only"),
|
|
673
766
|
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" })),
|
|
674
|
-
slug: Schema.String.check(Schema.isPattern(
|
|
767
|
+
slug: 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]+)*$" })),
|
|
675
768
|
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" }))
|
|
676
769
|
}),
|
|
677
770
|
Schema.Struct({
|
|
678
|
-
root: Schema.String.check(Schema.isMaxCodePoints(2048).annotate({ expected: "a string with at most 2048 code points" })).check(Schema.isPattern(
|
|
679
|
-
digest: Schema.String.check(Schema.isPattern(
|
|
771
|
+
root: Schema.String.check(Schema.isMaxCodePoints(2048).annotate({ expected: "a string with at most 2048 code points" })).check(Schema.isPattern(new globalThis.RegExp("^\\/(?:project|references\\/started-from\\/[a-f0-9]{64}|resources\\/[A-Za-z0-9._-]+\\/[a-f0-9]{64}|library\\/templates\\/[a-z0-9]+(?:-[a-z0-9]+)*\\/[a-f0-9]{64})(?:\\/(?!\\.{1,2}(?:\\/|$)|\\.git(?:\\/|$))[^\\\\/]+)*$", "u")).annotate({ expected: "a string matching the RegExp ^\\/(?:project|references\\/started-from\\/[a-f0-9]{64}|resources\\/[A-Za-z0-9._-]+\\/[a-f0-9]{64}|library\\/templates\\/[a-z0-9]+(?:-[a-z0-9]+)*\\/[a-f0-9]{64})(?:\\/(?!\\.{1,2}(?:\\/|$)|\\.git(?:\\/|$))[^\\\\/]+)*$" })).check(Schema.isMaxLength(2048).annotate({ expected: "a value with a length of at most 2048" })),
|
|
772
|
+
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}$" })),
|
|
680
773
|
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" })),
|
|
681
774
|
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" })),
|
|
682
775
|
kind: Schema.Literal("resource"),
|
|
683
776
|
access: Schema.Literal("read-only"),
|
|
684
|
-
resourceId: Schema.String.check(Schema.isPattern(
|
|
777
|
+
resourceId: Schema.String.check(Schema.isPattern(new globalThis.RegExp("^[A-Za-z0-9._-]{1,128}$", "u")).annotate({ expected: "a string matching the RegExp ^[A-Za-z0-9._-]{1,128}$" })),
|
|
685
778
|
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" }))
|
|
686
779
|
}),
|
|
687
780
|
Schema.Struct({
|
|
688
|
-
root: Schema.String.check(Schema.isMaxCodePoints(2048).annotate({ expected: "a string with at most 2048 code points" })).check(Schema.isPattern(
|
|
689
|
-
digest: Schema.String.check(Schema.isPattern(
|
|
781
|
+
root: Schema.String.check(Schema.isMaxCodePoints(2048).annotate({ expected: "a string with at most 2048 code points" })).check(Schema.isPattern(new globalThis.RegExp("^\\/(?:project|references\\/started-from\\/[a-f0-9]{64}|resources\\/[A-Za-z0-9._-]+\\/[a-f0-9]{64}|library\\/templates\\/[a-z0-9]+(?:-[a-z0-9]+)*\\/[a-f0-9]{64})(?:\\/(?!\\.{1,2}(?:\\/|$)|\\.git(?:\\/|$))[^\\\\/]+)*$", "u")).annotate({ expected: "a string matching the RegExp ^\\/(?:project|references\\/started-from\\/[a-f0-9]{64}|resources\\/[A-Za-z0-9._-]+\\/[a-f0-9]{64}|library\\/templates\\/[a-z0-9]+(?:-[a-z0-9]+)*\\/[a-f0-9]{64})(?:\\/(?!\\.{1,2}(?:\\/|$)|\\.git(?:\\/|$))[^\\\\/]+)*$" })).check(Schema.isMaxLength(2048).annotate({ expected: "a value with a length of at most 2048" })),
|
|
782
|
+
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}$" })),
|
|
690
783
|
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" })),
|
|
691
784
|
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" })),
|
|
692
785
|
kind: Schema.Literal("library-template"),
|
|
693
786
|
access: Schema.Literal("read-only"),
|
|
694
787
|
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" })),
|
|
695
|
-
slug: Schema.String.check(Schema.isPattern(
|
|
788
|
+
slug: 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]+)*$" })),
|
|
696
789
|
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" }))
|
|
697
790
|
})
|
|
698
791
|
])),
|
|
699
|
-
libraryManifestDigest: Schema.String.check(Schema.isPattern(
|
|
792
|
+
libraryManifestDigest: Schema.String.check(Schema.isPattern(new globalThis.RegExp("^[a-f0-9]{64}$", "u")).annotate({ expected: "a string matching the RegExp ^[a-f0-9]{64}$" })),
|
|
700
793
|
createdAt: Schema.String,
|
|
701
794
|
updatedAt: Schema.String,
|
|
702
795
|
createdBy: Schema.Struct({
|
|
@@ -718,10 +811,11 @@ const TemplatesOpenWorkspace200 = /* @__PURE__ */ (() => Schema.Struct({
|
|
|
718
811
|
}),
|
|
719
812
|
files: Schema.Record(Schema.String, Schema.String)
|
|
720
813
|
}))();
|
|
814
|
+
const TemplatesOpenWorkspace400 = MalformedRequestError;
|
|
721
815
|
const TemplatesOpenWorkspace401 = UnauthorizedError;
|
|
722
816
|
const TemplatesOpenWorkspace403 = ForbiddenError;
|
|
723
817
|
const TemplatesOpenWorkspace404 = ResourceNotFoundError;
|
|
724
|
-
const TemplatesOpenWorkspace409 = ConflictError;
|
|
818
|
+
const TemplatesOpenWorkspace409 = /* @__PURE__ */ (() => Schema.Union([ConflictError, TemplateInUseError]))();
|
|
725
819
|
const TemplatesOpenWorkspace422 = /* @__PURE__ */ (() => Schema.Union([TemplateSourceError, ValidationError]))();
|
|
726
820
|
const TemplatesOpenWorkspace500 = InternalError;
|
|
727
821
|
const TemplatesOpenWorkspace503 = ServiceUnavailableError;
|
|
@@ -731,7 +825,7 @@ const TemplatesPatchWorkspaceHeaders = /* @__PURE__ */ (() => Schema.Struct({ "i
|
|
|
731
825
|
const TemplatesPatchWorkspaceRequestJson = /* @__PURE__ */ (() => Schema.Struct({
|
|
732
826
|
expectedRevision: Schema.String,
|
|
733
827
|
patches: Schema.Array(Schema.Struct({
|
|
734
|
-
path: Schema.String.check(Schema.isPattern(
|
|
828
|
+
path: Schema.String.check(Schema.isPattern(new globalThis.RegExp("^(?!\\/)(?!.*\\\\)(?!.*(?:^|\\/)\\.{1,2}(?:\\/|$))(?!.*(?:^|\\/)\\.git(?:\\/|$)).{1,1024}$")).annotate({ expected: "a string matching the RegExp ^(?!\\/)(?!.*\\\\)(?!.*(?:^|\\/)\\.{1,2}(?:\\/|$))(?!.*(?:^|\\/)\\.git(?:\\/|$)).{1,1024}$" })),
|
|
735
829
|
content: Schema.Union([Schema.String.check(Schema.isMaxCodePoints(1048576).annotate({ expected: "a string with at most 1048576 code points" })).check(Schema.isMaxLength(1048576).annotate({ expected: "a value with a length of at most 1048576" })), Schema.Null])
|
|
736
830
|
})).check(Schema.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema.isMaxLength(512).annotate({ expected: "a value with a length of at most 512" }))
|
|
737
831
|
}))();
|
|
@@ -740,11 +834,11 @@ const TemplatesPatchWorkspace200 = /* @__PURE__ */ (() => Schema.Struct({
|
|
|
740
834
|
projectId: TemplateProjectId,
|
|
741
835
|
organizationId: Schema.Union([OrganizationId, Schema.Null]),
|
|
742
836
|
ownerEpoch: 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" })),
|
|
743
|
-
repositoryName: Schema.String.check(Schema.isPattern(
|
|
837
|
+
repositoryName: Schema.String.check(Schema.isPattern(new globalThis.RegExp("^[A-Za-z0-9][A-Za-z0-9._-]{0,127}$", "u")).annotate({ expected: "a string matching the RegExp ^[A-Za-z0-9][A-Za-z0-9._-]{0,127}$" })),
|
|
744
838
|
defaultBranch: 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" })),
|
|
745
|
-
baseCommit: Schema.String.check(Schema.isPattern(
|
|
746
|
-
remoteHead: Schema.String.check(Schema.isPattern(
|
|
747
|
-
pendingRemoteHead: Schema.Union([Schema.String.check(Schema.isPattern(
|
|
839
|
+
baseCommit: Schema.String.check(Schema.isPattern(new globalThis.RegExp("^[a-f0-9]{40}$", "u")).annotate({ expected: "a string matching the RegExp ^[a-f0-9]{40}$" })),
|
|
840
|
+
remoteHead: Schema.String.check(Schema.isPattern(new globalThis.RegExp("^[a-f0-9]{40}$", "u")).annotate({ expected: "a string matching the RegExp ^[a-f0-9]{40}$" })),
|
|
841
|
+
pendingRemoteHead: Schema.Union([Schema.String.check(Schema.isPattern(new globalThis.RegExp("^[a-f0-9]{40}$", "u")).annotate({ expected: "a string matching the RegExp ^[a-f0-9]{40}$" })), Schema.Null]),
|
|
748
842
|
revision: Schema.String,
|
|
749
843
|
overlay: Schema.Record(Schema.String, Schema.Union([Schema.String, Schema.Null])),
|
|
750
844
|
assetChanges: Schema.Array(Schema.Struct({
|
|
@@ -756,7 +850,7 @@ const TemplatesPatchWorkspace200 = /* @__PURE__ */ (() => Schema.Struct({
|
|
|
756
850
|
])
|
|
757
851
|
})),
|
|
758
852
|
conflicts: Schema.Array(Schema.Struct({
|
|
759
|
-
path: Schema.String.check(Schema.isPattern(
|
|
853
|
+
path: Schema.String.check(Schema.isPattern(new globalThis.RegExp("^(?!\\/)(?!.*\\\\)(?!.*(?:^|\\/)\\.{1,2}(?:\\/|$))(?!.*(?:^|\\/)\\.git(?:\\/|$)).{1,1024}$")).annotate({ expected: "a string matching the RegExp ^(?!\\/)(?!.*\\\\)(?!.*(?:^|\\/)\\.{1,2}(?:\\/|$))(?!.*(?:^|\\/)\\.git(?:\\/|$)).{1,1024}$" })),
|
|
760
854
|
base: Schema.Union([Schema.String, Schema.Null]),
|
|
761
855
|
draft: Schema.Union([Schema.String, Schema.Null]),
|
|
762
856
|
main: Schema.Union([Schema.String, Schema.Null])
|
|
@@ -773,39 +867,39 @@ const TemplatesPatchWorkspace200 = /* @__PURE__ */ (() => Schema.Struct({
|
|
|
773
867
|
access: Schema.Literal("read-write")
|
|
774
868
|
}),
|
|
775
869
|
Schema.Struct({
|
|
776
|
-
root: Schema.String.check(Schema.isMaxCodePoints(2048).annotate({ expected: "a string with at most 2048 code points" })).check(Schema.isPattern(
|
|
777
|
-
digest: Schema.String.check(Schema.isPattern(
|
|
870
|
+
root: Schema.String.check(Schema.isMaxCodePoints(2048).annotate({ expected: "a string with at most 2048 code points" })).check(Schema.isPattern(new globalThis.RegExp("^\\/(?:project|references\\/started-from\\/[a-f0-9]{64}|resources\\/[A-Za-z0-9._-]+\\/[a-f0-9]{64}|library\\/templates\\/[a-z0-9]+(?:-[a-z0-9]+)*\\/[a-f0-9]{64})(?:\\/(?!\\.{1,2}(?:\\/|$)|\\.git(?:\\/|$))[^\\\\/]+)*$", "u")).annotate({ expected: "a string matching the RegExp ^\\/(?:project|references\\/started-from\\/[a-f0-9]{64}|resources\\/[A-Za-z0-9._-]+\\/[a-f0-9]{64}|library\\/templates\\/[a-z0-9]+(?:-[a-z0-9]+)*\\/[a-f0-9]{64})(?:\\/(?!\\.{1,2}(?:\\/|$)|\\.git(?:\\/|$))[^\\\\/]+)*$" })).check(Schema.isMaxLength(2048).annotate({ expected: "a value with a length of at most 2048" })),
|
|
871
|
+
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}$" })),
|
|
778
872
|
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" })),
|
|
779
873
|
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" })),
|
|
780
874
|
kind: Schema.Literal("started-from"),
|
|
781
875
|
access: Schema.Literal("read-only"),
|
|
782
876
|
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" })),
|
|
783
|
-
slug: Schema.String.check(Schema.isPattern(
|
|
877
|
+
slug: 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]+)*$" })),
|
|
784
878
|
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" }))
|
|
785
879
|
}),
|
|
786
880
|
Schema.Struct({
|
|
787
|
-
root: Schema.String.check(Schema.isMaxCodePoints(2048).annotate({ expected: "a string with at most 2048 code points" })).check(Schema.isPattern(
|
|
788
|
-
digest: Schema.String.check(Schema.isPattern(
|
|
881
|
+
root: Schema.String.check(Schema.isMaxCodePoints(2048).annotate({ expected: "a string with at most 2048 code points" })).check(Schema.isPattern(new globalThis.RegExp("^\\/(?:project|references\\/started-from\\/[a-f0-9]{64}|resources\\/[A-Za-z0-9._-]+\\/[a-f0-9]{64}|library\\/templates\\/[a-z0-9]+(?:-[a-z0-9]+)*\\/[a-f0-9]{64})(?:\\/(?!\\.{1,2}(?:\\/|$)|\\.git(?:\\/|$))[^\\\\/]+)*$", "u")).annotate({ expected: "a string matching the RegExp ^\\/(?:project|references\\/started-from\\/[a-f0-9]{64}|resources\\/[A-Za-z0-9._-]+\\/[a-f0-9]{64}|library\\/templates\\/[a-z0-9]+(?:-[a-z0-9]+)*\\/[a-f0-9]{64})(?:\\/(?!\\.{1,2}(?:\\/|$)|\\.git(?:\\/|$))[^\\\\/]+)*$" })).check(Schema.isMaxLength(2048).annotate({ expected: "a value with a length of at most 2048" })),
|
|
882
|
+
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}$" })),
|
|
789
883
|
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" })),
|
|
790
884
|
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" })),
|
|
791
885
|
kind: Schema.Literal("resource"),
|
|
792
886
|
access: Schema.Literal("read-only"),
|
|
793
|
-
resourceId: Schema.String.check(Schema.isPattern(
|
|
887
|
+
resourceId: Schema.String.check(Schema.isPattern(new globalThis.RegExp("^[A-Za-z0-9._-]{1,128}$", "u")).annotate({ expected: "a string matching the RegExp ^[A-Za-z0-9._-]{1,128}$" })),
|
|
794
888
|
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" }))
|
|
795
889
|
}),
|
|
796
890
|
Schema.Struct({
|
|
797
|
-
root: Schema.String.check(Schema.isMaxCodePoints(2048).annotate({ expected: "a string with at most 2048 code points" })).check(Schema.isPattern(
|
|
798
|
-
digest: Schema.String.check(Schema.isPattern(
|
|
891
|
+
root: Schema.String.check(Schema.isMaxCodePoints(2048).annotate({ expected: "a string with at most 2048 code points" })).check(Schema.isPattern(new globalThis.RegExp("^\\/(?:project|references\\/started-from\\/[a-f0-9]{64}|resources\\/[A-Za-z0-9._-]+\\/[a-f0-9]{64}|library\\/templates\\/[a-z0-9]+(?:-[a-z0-9]+)*\\/[a-f0-9]{64})(?:\\/(?!\\.{1,2}(?:\\/|$)|\\.git(?:\\/|$))[^\\\\/]+)*$", "u")).annotate({ expected: "a string matching the RegExp ^\\/(?:project|references\\/started-from\\/[a-f0-9]{64}|resources\\/[A-Za-z0-9._-]+\\/[a-f0-9]{64}|library\\/templates\\/[a-z0-9]+(?:-[a-z0-9]+)*\\/[a-f0-9]{64})(?:\\/(?!\\.{1,2}(?:\\/|$)|\\.git(?:\\/|$))[^\\\\/]+)*$" })).check(Schema.isMaxLength(2048).annotate({ expected: "a value with a length of at most 2048" })),
|
|
892
|
+
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}$" })),
|
|
799
893
|
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" })),
|
|
800
894
|
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" })),
|
|
801
895
|
kind: Schema.Literal("library-template"),
|
|
802
896
|
access: Schema.Literal("read-only"),
|
|
803
897
|
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" })),
|
|
804
|
-
slug: Schema.String.check(Schema.isPattern(
|
|
898
|
+
slug: 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]+)*$" })),
|
|
805
899
|
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" }))
|
|
806
900
|
})
|
|
807
901
|
])),
|
|
808
|
-
libraryManifestDigest: Schema.String.check(Schema.isPattern(
|
|
902
|
+
libraryManifestDigest: Schema.String.check(Schema.isPattern(new globalThis.RegExp("^[a-f0-9]{64}$", "u")).annotate({ expected: "a string matching the RegExp ^[a-f0-9]{64}$" })),
|
|
809
903
|
createdAt: Schema.String,
|
|
810
904
|
updatedAt: Schema.String,
|
|
811
905
|
createdBy: Schema.Struct({
|
|
@@ -827,10 +921,11 @@ const TemplatesPatchWorkspace200 = /* @__PURE__ */ (() => Schema.Struct({
|
|
|
827
921
|
}),
|
|
828
922
|
files: Schema.Record(Schema.String, Schema.String)
|
|
829
923
|
}))();
|
|
924
|
+
const TemplatesPatchWorkspace400 = MalformedRequestError;
|
|
830
925
|
const TemplatesPatchWorkspace401 = UnauthorizedError;
|
|
831
926
|
const TemplatesPatchWorkspace403 = ForbiddenError;
|
|
832
927
|
const TemplatesPatchWorkspace404 = ResourceNotFoundError;
|
|
833
|
-
const TemplatesPatchWorkspace409 = ConflictError;
|
|
928
|
+
const TemplatesPatchWorkspace409 = /* @__PURE__ */ (() => Schema.Union([ConflictError, TemplateInUseError]))();
|
|
834
929
|
const TemplatesPatchWorkspace422 = /* @__PURE__ */ (() => Schema.Union([TemplateSourceError, ValidationError]))();
|
|
835
930
|
const TemplatesPatchWorkspace500 = InternalError;
|
|
836
931
|
const TemplatesPatchWorkspace503 = ServiceUnavailableError;
|
|
@@ -839,7 +934,7 @@ const TemplatesPutWorkspaceAssetPathParams = /* @__PURE__ */ (() => Schema.Struc
|
|
|
839
934
|
const TemplatesPutWorkspaceAssetHeaders = /* @__PURE__ */ (() => Schema.Struct({ "idempotency-key": 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" })) }))();
|
|
840
935
|
const TemplatesPutWorkspaceAssetRequestJson = /* @__PURE__ */ (() => Schema.Struct({
|
|
841
936
|
expectedRevision: Schema.String,
|
|
842
|
-
path: Schema.String.check(Schema.isPattern(
|
|
937
|
+
path: Schema.String.check(Schema.isPattern(new globalThis.RegExp("^(?!\\/)(?!.*\\\\)(?!.*(?:^|\\/)\\.{1,2}(?:\\/|$))(?!.*(?:^|\\/)\\.git(?:\\/|$)).{1,1024}$")).annotate({ expected: "a string matching the RegExp ^(?!\\/)(?!.*\\\\)(?!.*(?:^|\\/)\\.{1,2}(?:\\/|$))(?!.*(?:^|\\/)\\.git(?:\\/|$)).{1,1024}$" })),
|
|
843
938
|
contentBase64: Schema.String,
|
|
844
939
|
replace: Schema.Boolean
|
|
845
940
|
}))();
|
|
@@ -848,11 +943,11 @@ const TemplatesPutWorkspaceAsset200 = /* @__PURE__ */ (() => Schema.Struct({
|
|
|
848
943
|
projectId: TemplateProjectId,
|
|
849
944
|
organizationId: Schema.Union([OrganizationId, Schema.Null]),
|
|
850
945
|
ownerEpoch: 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" })),
|
|
851
|
-
repositoryName: Schema.String.check(Schema.isPattern(
|
|
946
|
+
repositoryName: Schema.String.check(Schema.isPattern(new globalThis.RegExp("^[A-Za-z0-9][A-Za-z0-9._-]{0,127}$", "u")).annotate({ expected: "a string matching the RegExp ^[A-Za-z0-9][A-Za-z0-9._-]{0,127}$" })),
|
|
852
947
|
defaultBranch: 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" })),
|
|
853
|
-
baseCommit: Schema.String.check(Schema.isPattern(
|
|
854
|
-
remoteHead: Schema.String.check(Schema.isPattern(
|
|
855
|
-
pendingRemoteHead: Schema.Union([Schema.String.check(Schema.isPattern(
|
|
948
|
+
baseCommit: Schema.String.check(Schema.isPattern(new globalThis.RegExp("^[a-f0-9]{40}$", "u")).annotate({ expected: "a string matching the RegExp ^[a-f0-9]{40}$" })),
|
|
949
|
+
remoteHead: Schema.String.check(Schema.isPattern(new globalThis.RegExp("^[a-f0-9]{40}$", "u")).annotate({ expected: "a string matching the RegExp ^[a-f0-9]{40}$" })),
|
|
950
|
+
pendingRemoteHead: Schema.Union([Schema.String.check(Schema.isPattern(new globalThis.RegExp("^[a-f0-9]{40}$", "u")).annotate({ expected: "a string matching the RegExp ^[a-f0-9]{40}$" })), Schema.Null]),
|
|
856
951
|
revision: Schema.String,
|
|
857
952
|
overlay: Schema.Record(Schema.String, Schema.Union([Schema.String, Schema.Null])),
|
|
858
953
|
assetChanges: Schema.Array(Schema.Struct({
|
|
@@ -864,7 +959,7 @@ const TemplatesPutWorkspaceAsset200 = /* @__PURE__ */ (() => Schema.Struct({
|
|
|
864
959
|
])
|
|
865
960
|
})),
|
|
866
961
|
conflicts: Schema.Array(Schema.Struct({
|
|
867
|
-
path: Schema.String.check(Schema.isPattern(
|
|
962
|
+
path: Schema.String.check(Schema.isPattern(new globalThis.RegExp("^(?!\\/)(?!.*\\\\)(?!.*(?:^|\\/)\\.{1,2}(?:\\/|$))(?!.*(?:^|\\/)\\.git(?:\\/|$)).{1,1024}$")).annotate({ expected: "a string matching the RegExp ^(?!\\/)(?!.*\\\\)(?!.*(?:^|\\/)\\.{1,2}(?:\\/|$))(?!.*(?:^|\\/)\\.git(?:\\/|$)).{1,1024}$" })),
|
|
868
963
|
base: Schema.Union([Schema.String, Schema.Null]),
|
|
869
964
|
draft: Schema.Union([Schema.String, Schema.Null]),
|
|
870
965
|
main: Schema.Union([Schema.String, Schema.Null])
|
|
@@ -881,39 +976,39 @@ const TemplatesPutWorkspaceAsset200 = /* @__PURE__ */ (() => Schema.Struct({
|
|
|
881
976
|
access: Schema.Literal("read-write")
|
|
882
977
|
}),
|
|
883
978
|
Schema.Struct({
|
|
884
|
-
root: Schema.String.check(Schema.isMaxCodePoints(2048).annotate({ expected: "a string with at most 2048 code points" })).check(Schema.isPattern(
|
|
885
|
-
digest: Schema.String.check(Schema.isPattern(
|
|
979
|
+
root: Schema.String.check(Schema.isMaxCodePoints(2048).annotate({ expected: "a string with at most 2048 code points" })).check(Schema.isPattern(new globalThis.RegExp("^\\/(?:project|references\\/started-from\\/[a-f0-9]{64}|resources\\/[A-Za-z0-9._-]+\\/[a-f0-9]{64}|library\\/templates\\/[a-z0-9]+(?:-[a-z0-9]+)*\\/[a-f0-9]{64})(?:\\/(?!\\.{1,2}(?:\\/|$)|\\.git(?:\\/|$))[^\\\\/]+)*$", "u")).annotate({ expected: "a string matching the RegExp ^\\/(?:project|references\\/started-from\\/[a-f0-9]{64}|resources\\/[A-Za-z0-9._-]+\\/[a-f0-9]{64}|library\\/templates\\/[a-z0-9]+(?:-[a-z0-9]+)*\\/[a-f0-9]{64})(?:\\/(?!\\.{1,2}(?:\\/|$)|\\.git(?:\\/|$))[^\\\\/]+)*$" })).check(Schema.isMaxLength(2048).annotate({ expected: "a value with a length of at most 2048" })),
|
|
980
|
+
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}$" })),
|
|
886
981
|
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" })),
|
|
887
982
|
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" })),
|
|
888
983
|
kind: Schema.Literal("started-from"),
|
|
889
984
|
access: Schema.Literal("read-only"),
|
|
890
985
|
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" })),
|
|
891
|
-
slug: Schema.String.check(Schema.isPattern(
|
|
986
|
+
slug: 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]+)*$" })),
|
|
892
987
|
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" }))
|
|
893
988
|
}),
|
|
894
989
|
Schema.Struct({
|
|
895
|
-
root: Schema.String.check(Schema.isMaxCodePoints(2048).annotate({ expected: "a string with at most 2048 code points" })).check(Schema.isPattern(
|
|
896
|
-
digest: Schema.String.check(Schema.isPattern(
|
|
990
|
+
root: Schema.String.check(Schema.isMaxCodePoints(2048).annotate({ expected: "a string with at most 2048 code points" })).check(Schema.isPattern(new globalThis.RegExp("^\\/(?:project|references\\/started-from\\/[a-f0-9]{64}|resources\\/[A-Za-z0-9._-]+\\/[a-f0-9]{64}|library\\/templates\\/[a-z0-9]+(?:-[a-z0-9]+)*\\/[a-f0-9]{64})(?:\\/(?!\\.{1,2}(?:\\/|$)|\\.git(?:\\/|$))[^\\\\/]+)*$", "u")).annotate({ expected: "a string matching the RegExp ^\\/(?:project|references\\/started-from\\/[a-f0-9]{64}|resources\\/[A-Za-z0-9._-]+\\/[a-f0-9]{64}|library\\/templates\\/[a-z0-9]+(?:-[a-z0-9]+)*\\/[a-f0-9]{64})(?:\\/(?!\\.{1,2}(?:\\/|$)|\\.git(?:\\/|$))[^\\\\/]+)*$" })).check(Schema.isMaxLength(2048).annotate({ expected: "a value with a length of at most 2048" })),
|
|
991
|
+
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}$" })),
|
|
897
992
|
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" })),
|
|
898
993
|
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" })),
|
|
899
994
|
kind: Schema.Literal("resource"),
|
|
900
995
|
access: Schema.Literal("read-only"),
|
|
901
|
-
resourceId: Schema.String.check(Schema.isPattern(
|
|
996
|
+
resourceId: Schema.String.check(Schema.isPattern(new globalThis.RegExp("^[A-Za-z0-9._-]{1,128}$", "u")).annotate({ expected: "a string matching the RegExp ^[A-Za-z0-9._-]{1,128}$" })),
|
|
902
997
|
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" }))
|
|
903
998
|
}),
|
|
904
999
|
Schema.Struct({
|
|
905
|
-
root: Schema.String.check(Schema.isMaxCodePoints(2048).annotate({ expected: "a string with at most 2048 code points" })).check(Schema.isPattern(
|
|
906
|
-
digest: Schema.String.check(Schema.isPattern(
|
|
1000
|
+
root: Schema.String.check(Schema.isMaxCodePoints(2048).annotate({ expected: "a string with at most 2048 code points" })).check(Schema.isPattern(new globalThis.RegExp("^\\/(?:project|references\\/started-from\\/[a-f0-9]{64}|resources\\/[A-Za-z0-9._-]+\\/[a-f0-9]{64}|library\\/templates\\/[a-z0-9]+(?:-[a-z0-9]+)*\\/[a-f0-9]{64})(?:\\/(?!\\.{1,2}(?:\\/|$)|\\.git(?:\\/|$))[^\\\\/]+)*$", "u")).annotate({ expected: "a string matching the RegExp ^\\/(?:project|references\\/started-from\\/[a-f0-9]{64}|resources\\/[A-Za-z0-9._-]+\\/[a-f0-9]{64}|library\\/templates\\/[a-z0-9]+(?:-[a-z0-9]+)*\\/[a-f0-9]{64})(?:\\/(?!\\.{1,2}(?:\\/|$)|\\.git(?:\\/|$))[^\\\\/]+)*$" })).check(Schema.isMaxLength(2048).annotate({ expected: "a value with a length of at most 2048" })),
|
|
1001
|
+
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}$" })),
|
|
907
1002
|
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" })),
|
|
908
1003
|
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" })),
|
|
909
1004
|
kind: Schema.Literal("library-template"),
|
|
910
1005
|
access: Schema.Literal("read-only"),
|
|
911
1006
|
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" })),
|
|
912
|
-
slug: Schema.String.check(Schema.isPattern(
|
|
1007
|
+
slug: 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]+)*$" })),
|
|
913
1008
|
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" }))
|
|
914
1009
|
})
|
|
915
1010
|
])),
|
|
916
|
-
libraryManifestDigest: Schema.String.check(Schema.isPattern(
|
|
1011
|
+
libraryManifestDigest: Schema.String.check(Schema.isPattern(new globalThis.RegExp("^[a-f0-9]{64}$", "u")).annotate({ expected: "a string matching the RegExp ^[a-f0-9]{64}$" })),
|
|
917
1012
|
createdAt: Schema.String,
|
|
918
1013
|
updatedAt: Schema.String,
|
|
919
1014
|
createdBy: Schema.Struct({
|
|
@@ -935,10 +1030,11 @@ const TemplatesPutWorkspaceAsset200 = /* @__PURE__ */ (() => Schema.Struct({
|
|
|
935
1030
|
}),
|
|
936
1031
|
files: Schema.Record(Schema.String, Schema.String)
|
|
937
1032
|
}))();
|
|
1033
|
+
const TemplatesPutWorkspaceAsset400 = MalformedRequestError;
|
|
938
1034
|
const TemplatesPutWorkspaceAsset401 = UnauthorizedError;
|
|
939
1035
|
const TemplatesPutWorkspaceAsset403 = ForbiddenError;
|
|
940
1036
|
const TemplatesPutWorkspaceAsset404 = ResourceNotFoundError;
|
|
941
|
-
const TemplatesPutWorkspaceAsset409 = ConflictError;
|
|
1037
|
+
const TemplatesPutWorkspaceAsset409 = /* @__PURE__ */ (() => Schema.Union([ConflictError, TemplateInUseError]))();
|
|
942
1038
|
const TemplatesPutWorkspaceAsset422 = /* @__PURE__ */ (() => Schema.Union([TemplateSourceError, ValidationError]))();
|
|
943
1039
|
const TemplatesPutWorkspaceAsset500 = InternalError;
|
|
944
1040
|
const TemplatesPutWorkspaceAsset503 = ServiceUnavailableError;
|
|
@@ -948,19 +1044,19 @@ const TemplatesCheckWorkspaceRequestJson = /* @__PURE__ */ (() => Schema.Struct(
|
|
|
948
1044
|
const TemplatesCheckWorkspace200 = /* @__PURE__ */ (() => Schema.Struct({
|
|
949
1045
|
projectId: TemplateProjectId,
|
|
950
1046
|
revision: Schema.String,
|
|
951
|
-
entryPath: Schema.Union([Schema.String.check(Schema.isMaxCodePoints(1024).annotate({ expected: "a string with at most 1024 code points" })).check(Schema.isPattern(
|
|
1047
|
+
entryPath: Schema.Union([Schema.String.check(Schema.isMaxCodePoints(1024).annotate({ expected: "a string with at most 1024 code points" })).check(Schema.isPattern(new globalThis.RegExp("^(?!\\/)(?!.*\\\\)(?!.*(?:^|\\/)\\.{1,2}(?:\\/|$))(?!.*(?:^|\\/)\\.git(?:\\/|$))(?:templates|emails)\\/.+\\.tsx$", "u")).annotate({ expected: "a string matching the RegExp ^(?!\\/)(?!.*\\\\)(?!.*(?:^|\\/)\\.{1,2}(?:\\/|$))(?!.*(?:^|\\/)\\.git(?:\\/|$))(?:templates|emails)\\/.+\\.tsx$" })).check(Schema.isMaxLength(1024).annotate({ expected: "a value with a length of at most 1024" })), Schema.String.check(Schema.isMaxCodePoints(1024).annotate({ expected: "a string with at most 1024 code points" })).check(Schema.isPattern(new globalThis.RegExp("^(?!.*\\\\)(?!.*(?:^|\\/)\\.{1,2}(?:\\/|$))(?!.*(?:^|\\/)\\.git(?:\\/|$))(?!.*\\p{Cc})issues\\/(?:[^/]+\\/)*[^/]+\\.md$", "u")).annotate({ expected: "a string matching the RegExp ^(?!.*\\\\)(?!.*(?:^|\\/)\\.{1,2}(?:\\/|$))(?!.*(?:^|\\/)\\.git(?:\\/|$))(?!.*\\p{Cc})issues\\/(?:[^/]+\\/)*[^/]+\\.md$" })).check(Schema.isMaxLength(1024).annotate({ expected: "a value with a length of at most 1024" }))]),
|
|
952
1048
|
declaration: Schema.Union([Schema.Struct({
|
|
953
|
-
codeDigest: Schema.String.check(Schema.isPattern(
|
|
1049
|
+
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}$" })),
|
|
954
1050
|
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" })),
|
|
955
1051
|
input: Schema.Struct({
|
|
956
1052
|
schema: Schema.Record(Schema.String, JsonValue),
|
|
957
|
-
schemaDigest: Schema.String.check(Schema.isPattern(
|
|
958
|
-
contractDigest: Schema.String.check(Schema.isPattern(
|
|
1053
|
+
schemaDigest: Schema.String.check(Schema.isPattern(new globalThis.RegExp("^[a-f0-9]{64}$", "u")).annotate({ expected: "a string matching the RegExp ^[a-f0-9]{64}$" })),
|
|
1054
|
+
contractDigest: Schema.String.check(Schema.isPattern(new globalThis.RegExp("^[a-f0-9]{64}$", "u")).annotate({ expected: "a string matching the RegExp ^[a-f0-9]{64}$" }))
|
|
959
1055
|
}),
|
|
960
1056
|
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" })))
|
|
961
1057
|
}), Schema.Null]),
|
|
962
1058
|
issue: Schema.optionalKey(Schema.Struct({
|
|
963
|
-
path: Schema.String.check(Schema.isMaxCodePoints(1024).annotate({ expected: "a string with at most 1024 code points" })).check(Schema.isPattern(
|
|
1059
|
+
path: Schema.String.check(Schema.isMaxCodePoints(1024).annotate({ expected: "a string with at most 1024 code points" })).check(Schema.isPattern(new globalThis.RegExp("^(?!.*\\\\)(?!.*(?:^|\\/)\\.{1,2}(?:\\/|$))(?!.*(?:^|\\/)\\.git(?:\\/|$))(?!.*\\p{Cc})issues\\/(?:[^/]+\\/)*[^/]+\\.md$", "u")).annotate({ expected: "a string matching the RegExp ^(?!.*\\\\)(?!.*(?:^|\\/)\\.{1,2}(?:\\/|$))(?!.*(?:^|\\/)\\.git(?:\\/|$))(?!.*\\p{Cc})issues\\/(?:[^/]+\\/)*[^/]+\\.md$" })).check(Schema.isMaxLength(1024).annotate({ expected: "a value with a length of at most 1024" })),
|
|
964
1060
|
frontmatter: Schema.Struct({
|
|
965
1061
|
title: Schema.String,
|
|
966
1062
|
date: Schema.optionalKey(Schema.String),
|
|
@@ -1040,10 +1136,11 @@ const TemplatesCheckWorkspace200 = /* @__PURE__ */ (() => Schema.Struct({
|
|
|
1040
1136
|
}), Schema.Null]))
|
|
1041
1137
|
}))
|
|
1042
1138
|
}))();
|
|
1139
|
+
const TemplatesCheckWorkspace400 = MalformedRequestError;
|
|
1043
1140
|
const TemplatesCheckWorkspace401 = UnauthorizedError;
|
|
1044
1141
|
const TemplatesCheckWorkspace403 = ForbiddenError;
|
|
1045
1142
|
const TemplatesCheckWorkspace404 = ResourceNotFoundError;
|
|
1046
|
-
const TemplatesCheckWorkspace409 = ConflictError;
|
|
1143
|
+
const TemplatesCheckWorkspace409 = /* @__PURE__ */ (() => Schema.Union([ConflictError, TemplateInUseError]))();
|
|
1047
1144
|
const TemplatesCheckWorkspace422 = /* @__PURE__ */ (() => Schema.Union([TemplateSourceError, ValidationError]))();
|
|
1048
1145
|
const TemplatesCheckWorkspace500 = InternalError;
|
|
1049
1146
|
const TemplatesCheckWorkspace503 = ServiceUnavailableError;
|
|
@@ -1052,7 +1149,7 @@ const TemplatesResolveWorkspaceConflictPathParams = /* @__PURE__ */ (() => Schem
|
|
|
1052
1149
|
const TemplatesResolveWorkspaceConflictHeaders = /* @__PURE__ */ (() => Schema.Struct({ "idempotency-key": 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" })) }))();
|
|
1053
1150
|
const TemplatesResolveWorkspaceConflictRequestJson = /* @__PURE__ */ (() => Schema.Struct({
|
|
1054
1151
|
expectedRevision: Schema.String,
|
|
1055
|
-
path: Schema.String.check(Schema.isPattern(
|
|
1152
|
+
path: Schema.String.check(Schema.isPattern(new globalThis.RegExp("^(?!\\/)(?!.*\\\\)(?!.*(?:^|\\/)\\.{1,2}(?:\\/|$))(?!.*(?:^|\\/)\\.git(?:\\/|$)).{1,1024}$")).annotate({ expected: "a string matching the RegExp ^(?!\\/)(?!.*\\\\)(?!.*(?:^|\\/)\\.{1,2}(?:\\/|$))(?!.*(?:^|\\/)\\.git(?:\\/|$)).{1,1024}$" })),
|
|
1056
1153
|
resolution: Schema.Union([
|
|
1057
1154
|
Schema.Literal("draft"),
|
|
1058
1155
|
Schema.Literal("main"),
|
|
@@ -1064,11 +1161,11 @@ const TemplatesResolveWorkspaceConflict200 = /* @__PURE__ */ (() => Schema.Struc
|
|
|
1064
1161
|
projectId: TemplateProjectId,
|
|
1065
1162
|
organizationId: Schema.Union([OrganizationId, Schema.Null]),
|
|
1066
1163
|
ownerEpoch: 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" })),
|
|
1067
|
-
repositoryName: Schema.String.check(Schema.isPattern(
|
|
1164
|
+
repositoryName: Schema.String.check(Schema.isPattern(new globalThis.RegExp("^[A-Za-z0-9][A-Za-z0-9._-]{0,127}$", "u")).annotate({ expected: "a string matching the RegExp ^[A-Za-z0-9][A-Za-z0-9._-]{0,127}$" })),
|
|
1068
1165
|
defaultBranch: 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" })),
|
|
1069
|
-
baseCommit: Schema.String.check(Schema.isPattern(
|
|
1070
|
-
remoteHead: Schema.String.check(Schema.isPattern(
|
|
1071
|
-
pendingRemoteHead: Schema.Union([Schema.String.check(Schema.isPattern(
|
|
1166
|
+
baseCommit: Schema.String.check(Schema.isPattern(new globalThis.RegExp("^[a-f0-9]{40}$", "u")).annotate({ expected: "a string matching the RegExp ^[a-f0-9]{40}$" })),
|
|
1167
|
+
remoteHead: Schema.String.check(Schema.isPattern(new globalThis.RegExp("^[a-f0-9]{40}$", "u")).annotate({ expected: "a string matching the RegExp ^[a-f0-9]{40}$" })),
|
|
1168
|
+
pendingRemoteHead: Schema.Union([Schema.String.check(Schema.isPattern(new globalThis.RegExp("^[a-f0-9]{40}$", "u")).annotate({ expected: "a string matching the RegExp ^[a-f0-9]{40}$" })), Schema.Null]),
|
|
1072
1169
|
revision: Schema.String,
|
|
1073
1170
|
overlay: Schema.Record(Schema.String, Schema.Union([Schema.String, Schema.Null])),
|
|
1074
1171
|
assetChanges: Schema.Array(Schema.Struct({
|
|
@@ -1080,7 +1177,7 @@ const TemplatesResolveWorkspaceConflict200 = /* @__PURE__ */ (() => Schema.Struc
|
|
|
1080
1177
|
])
|
|
1081
1178
|
})),
|
|
1082
1179
|
conflicts: Schema.Array(Schema.Struct({
|
|
1083
|
-
path: Schema.String.check(Schema.isPattern(
|
|
1180
|
+
path: Schema.String.check(Schema.isPattern(new globalThis.RegExp("^(?!\\/)(?!.*\\\\)(?!.*(?:^|\\/)\\.{1,2}(?:\\/|$))(?!.*(?:^|\\/)\\.git(?:\\/|$)).{1,1024}$")).annotate({ expected: "a string matching the RegExp ^(?!\\/)(?!.*\\\\)(?!.*(?:^|\\/)\\.{1,2}(?:\\/|$))(?!.*(?:^|\\/)\\.git(?:\\/|$)).{1,1024}$" })),
|
|
1084
1181
|
base: Schema.Union([Schema.String, Schema.Null]),
|
|
1085
1182
|
draft: Schema.Union([Schema.String, Schema.Null]),
|
|
1086
1183
|
main: Schema.Union([Schema.String, Schema.Null])
|
|
@@ -1097,39 +1194,39 @@ const TemplatesResolveWorkspaceConflict200 = /* @__PURE__ */ (() => Schema.Struc
|
|
|
1097
1194
|
access: Schema.Literal("read-write")
|
|
1098
1195
|
}),
|
|
1099
1196
|
Schema.Struct({
|
|
1100
|
-
root: Schema.String.check(Schema.isMaxCodePoints(2048).annotate({ expected: "a string with at most 2048 code points" })).check(Schema.isPattern(
|
|
1101
|
-
digest: Schema.String.check(Schema.isPattern(
|
|
1197
|
+
root: Schema.String.check(Schema.isMaxCodePoints(2048).annotate({ expected: "a string with at most 2048 code points" })).check(Schema.isPattern(new globalThis.RegExp("^\\/(?:project|references\\/started-from\\/[a-f0-9]{64}|resources\\/[A-Za-z0-9._-]+\\/[a-f0-9]{64}|library\\/templates\\/[a-z0-9]+(?:-[a-z0-9]+)*\\/[a-f0-9]{64})(?:\\/(?!\\.{1,2}(?:\\/|$)|\\.git(?:\\/|$))[^\\\\/]+)*$", "u")).annotate({ expected: "a string matching the RegExp ^\\/(?:project|references\\/started-from\\/[a-f0-9]{64}|resources\\/[A-Za-z0-9._-]+\\/[a-f0-9]{64}|library\\/templates\\/[a-z0-9]+(?:-[a-z0-9]+)*\\/[a-f0-9]{64})(?:\\/(?!\\.{1,2}(?:\\/|$)|\\.git(?:\\/|$))[^\\\\/]+)*$" })).check(Schema.isMaxLength(2048).annotate({ expected: "a value with a length of at most 2048" })),
|
|
1198
|
+
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}$" })),
|
|
1102
1199
|
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" })),
|
|
1103
1200
|
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" })),
|
|
1104
1201
|
kind: Schema.Literal("started-from"),
|
|
1105
1202
|
access: Schema.Literal("read-only"),
|
|
1106
1203
|
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" })),
|
|
1107
|
-
slug: Schema.String.check(Schema.isPattern(
|
|
1204
|
+
slug: 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]+)*$" })),
|
|
1108
1205
|
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" }))
|
|
1109
1206
|
}),
|
|
1110
1207
|
Schema.Struct({
|
|
1111
|
-
root: Schema.String.check(Schema.isMaxCodePoints(2048).annotate({ expected: "a string with at most 2048 code points" })).check(Schema.isPattern(
|
|
1112
|
-
digest: Schema.String.check(Schema.isPattern(
|
|
1208
|
+
root: Schema.String.check(Schema.isMaxCodePoints(2048).annotate({ expected: "a string with at most 2048 code points" })).check(Schema.isPattern(new globalThis.RegExp("^\\/(?:project|references\\/started-from\\/[a-f0-9]{64}|resources\\/[A-Za-z0-9._-]+\\/[a-f0-9]{64}|library\\/templates\\/[a-z0-9]+(?:-[a-z0-9]+)*\\/[a-f0-9]{64})(?:\\/(?!\\.{1,2}(?:\\/|$)|\\.git(?:\\/|$))[^\\\\/]+)*$", "u")).annotate({ expected: "a string matching the RegExp ^\\/(?:project|references\\/started-from\\/[a-f0-9]{64}|resources\\/[A-Za-z0-9._-]+\\/[a-f0-9]{64}|library\\/templates\\/[a-z0-9]+(?:-[a-z0-9]+)*\\/[a-f0-9]{64})(?:\\/(?!\\.{1,2}(?:\\/|$)|\\.git(?:\\/|$))[^\\\\/]+)*$" })).check(Schema.isMaxLength(2048).annotate({ expected: "a value with a length of at most 2048" })),
|
|
1209
|
+
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}$" })),
|
|
1113
1210
|
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" })),
|
|
1114
1211
|
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" })),
|
|
1115
1212
|
kind: Schema.Literal("resource"),
|
|
1116
1213
|
access: Schema.Literal("read-only"),
|
|
1117
|
-
resourceId: Schema.String.check(Schema.isPattern(
|
|
1214
|
+
resourceId: Schema.String.check(Schema.isPattern(new globalThis.RegExp("^[A-Za-z0-9._-]{1,128}$", "u")).annotate({ expected: "a string matching the RegExp ^[A-Za-z0-9._-]{1,128}$" })),
|
|
1118
1215
|
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" }))
|
|
1119
1216
|
}),
|
|
1120
1217
|
Schema.Struct({
|
|
1121
|
-
root: Schema.String.check(Schema.isMaxCodePoints(2048).annotate({ expected: "a string with at most 2048 code points" })).check(Schema.isPattern(
|
|
1122
|
-
digest: Schema.String.check(Schema.isPattern(
|
|
1218
|
+
root: Schema.String.check(Schema.isMaxCodePoints(2048).annotate({ expected: "a string with at most 2048 code points" })).check(Schema.isPattern(new globalThis.RegExp("^\\/(?:project|references\\/started-from\\/[a-f0-9]{64}|resources\\/[A-Za-z0-9._-]+\\/[a-f0-9]{64}|library\\/templates\\/[a-z0-9]+(?:-[a-z0-9]+)*\\/[a-f0-9]{64})(?:\\/(?!\\.{1,2}(?:\\/|$)|\\.git(?:\\/|$))[^\\\\/]+)*$", "u")).annotate({ expected: "a string matching the RegExp ^\\/(?:project|references\\/started-from\\/[a-f0-9]{64}|resources\\/[A-Za-z0-9._-]+\\/[a-f0-9]{64}|library\\/templates\\/[a-z0-9]+(?:-[a-z0-9]+)*\\/[a-f0-9]{64})(?:\\/(?!\\.{1,2}(?:\\/|$)|\\.git(?:\\/|$))[^\\\\/]+)*$" })).check(Schema.isMaxLength(2048).annotate({ expected: "a value with a length of at most 2048" })),
|
|
1219
|
+
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}$" })),
|
|
1123
1220
|
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" })),
|
|
1124
1221
|
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" })),
|
|
1125
1222
|
kind: Schema.Literal("library-template"),
|
|
1126
1223
|
access: Schema.Literal("read-only"),
|
|
1127
1224
|
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" })),
|
|
1128
|
-
slug: Schema.String.check(Schema.isPattern(
|
|
1225
|
+
slug: 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]+)*$" })),
|
|
1129
1226
|
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" }))
|
|
1130
1227
|
})
|
|
1131
1228
|
])),
|
|
1132
|
-
libraryManifestDigest: Schema.String.check(Schema.isPattern(
|
|
1229
|
+
libraryManifestDigest: Schema.String.check(Schema.isPattern(new globalThis.RegExp("^[a-f0-9]{64}$", "u")).annotate({ expected: "a string matching the RegExp ^[a-f0-9]{64}$" })),
|
|
1133
1230
|
createdAt: Schema.String,
|
|
1134
1231
|
updatedAt: Schema.String,
|
|
1135
1232
|
createdBy: Schema.Struct({
|
|
@@ -1151,10 +1248,11 @@ const TemplatesResolveWorkspaceConflict200 = /* @__PURE__ */ (() => Schema.Struc
|
|
|
1151
1248
|
}),
|
|
1152
1249
|
files: Schema.Record(Schema.String, Schema.String)
|
|
1153
1250
|
}))();
|
|
1251
|
+
const TemplatesResolveWorkspaceConflict400 = MalformedRequestError;
|
|
1154
1252
|
const TemplatesResolveWorkspaceConflict401 = UnauthorizedError;
|
|
1155
1253
|
const TemplatesResolveWorkspaceConflict403 = ForbiddenError;
|
|
1156
1254
|
const TemplatesResolveWorkspaceConflict404 = ResourceNotFoundError;
|
|
1157
|
-
const TemplatesResolveWorkspaceConflict409 = ConflictError;
|
|
1255
|
+
const TemplatesResolveWorkspaceConflict409 = /* @__PURE__ */ (() => Schema.Union([ConflictError, TemplateInUseError]))();
|
|
1158
1256
|
const TemplatesResolveWorkspaceConflict422 = /* @__PURE__ */ (() => Schema.Union([TemplateSourceError, ValidationError]))();
|
|
1159
1257
|
const TemplatesResolveWorkspaceConflict500 = InternalError;
|
|
1160
1258
|
const TemplatesResolveWorkspaceConflict503 = ServiceUnavailableError;
|
|
@@ -1163,10 +1261,10 @@ const TemplatesDiffWorkspacePathParams = /* @__PURE__ */ (() => Schema.Struct({
|
|
|
1163
1261
|
const TemplatesDiffWorkspaceRequestJson = /* @__PURE__ */ (() => Schema.Struct({ expectedRevision: Schema.String }))();
|
|
1164
1262
|
const TemplatesDiffWorkspace200 = /* @__PURE__ */ (() => Schema.Struct({
|
|
1165
1263
|
projectId: TemplateProjectId,
|
|
1166
|
-
baseCommit: Schema.String.check(Schema.isPattern(
|
|
1264
|
+
baseCommit: Schema.String.check(Schema.isPattern(new globalThis.RegExp("^[a-f0-9]{40}$", "u")).annotate({ expected: "a string matching the RegExp ^[a-f0-9]{40}$" })),
|
|
1167
1265
|
revision: Schema.String,
|
|
1168
1266
|
changes: Schema.Array(Schema.Struct({
|
|
1169
|
-
path: Schema.String.check(Schema.isPattern(
|
|
1267
|
+
path: Schema.String.check(Schema.isPattern(new globalThis.RegExp("^(?!\\/)(?!.*\\\\)(?!.*(?:^|\\/)\\.{1,2}(?:\\/|$))(?!.*(?:^|\\/)\\.git(?:\\/|$)).{1,1024}$")).annotate({ expected: "a string matching the RegExp ^(?!\\/)(?!.*\\\\)(?!.*(?:^|\\/)\\.{1,2}(?:\\/|$))(?!.*(?:^|\\/)\\.git(?:\\/|$)).{1,1024}$" })),
|
|
1170
1268
|
before: Schema.Union([Schema.String.check(Schema.isMaxCodePoints(1048576).annotate({ expected: "a string with at most 1048576 code points" })).check(Schema.isMaxLength(1048576).annotate({ expected: "a value with a length of at most 1048576" })), Schema.Null]),
|
|
1171
1269
|
after: Schema.Union([Schema.String.check(Schema.isMaxCodePoints(1048576).annotate({ expected: "a string with at most 1048576 code points" })).check(Schema.isMaxLength(1048576).annotate({ expected: "a value with a length of at most 1048576" })), Schema.Null]),
|
|
1172
1270
|
status: Schema.Union([
|
|
@@ -1182,13 +1280,14 @@ const TemplatesDiffWorkspace200 = /* @__PURE__ */ (() => Schema.Struct({
|
|
|
1182
1280
|
Schema.Literal("modified"),
|
|
1183
1281
|
Schema.Literal("deleted")
|
|
1184
1282
|
]),
|
|
1185
|
-
digest: Schema.Union([Schema.String.check(Schema.isPattern(
|
|
1283
|
+
digest: Schema.Union([Schema.String.check(Schema.isPattern(new globalThis.RegExp("^[a-f0-9]{64}$", "u")).annotate({ expected: "a string matching the RegExp ^[a-f0-9]{64}$" })), Schema.Null])
|
|
1186
1284
|
}))
|
|
1187
1285
|
}))();
|
|
1286
|
+
const TemplatesDiffWorkspace400 = MalformedRequestError;
|
|
1188
1287
|
const TemplatesDiffWorkspace401 = UnauthorizedError;
|
|
1189
1288
|
const TemplatesDiffWorkspace403 = ForbiddenError;
|
|
1190
1289
|
const TemplatesDiffWorkspace404 = ResourceNotFoundError;
|
|
1191
|
-
const TemplatesDiffWorkspace409 = ConflictError;
|
|
1290
|
+
const TemplatesDiffWorkspace409 = /* @__PURE__ */ (() => Schema.Union([ConflictError, TemplateInUseError]))();
|
|
1192
1291
|
const TemplatesDiffWorkspace422 = /* @__PURE__ */ (() => Schema.Union([TemplateSourceError, ValidationError]))();
|
|
1193
1292
|
const TemplatesDiffWorkspace500 = InternalError;
|
|
1194
1293
|
const TemplatesDiffWorkspace503 = ServiceUnavailableError;
|
|
@@ -1201,19 +1300,19 @@ const TemplatesRenderWorkspaceFixtureRequestJson = /* @__PURE__ */ (() => Schema
|
|
|
1201
1300
|
const TemplatesRenderWorkspaceFixture200 = /* @__PURE__ */ (() => Schema.Struct({
|
|
1202
1301
|
projectId: TemplateProjectId,
|
|
1203
1302
|
revision: Schema.String,
|
|
1204
|
-
entryPath: Schema.Union([Schema.String.check(Schema.isMaxCodePoints(1024).annotate({ expected: "a string with at most 1024 code points" })).check(Schema.isPattern(
|
|
1303
|
+
entryPath: Schema.Union([Schema.String.check(Schema.isMaxCodePoints(1024).annotate({ expected: "a string with at most 1024 code points" })).check(Schema.isPattern(new globalThis.RegExp("^(?!\\/)(?!.*\\\\)(?!.*(?:^|\\/)\\.{1,2}(?:\\/|$))(?!.*(?:^|\\/)\\.git(?:\\/|$))(?:templates|emails)\\/.+\\.tsx$", "u")).annotate({ expected: "a string matching the RegExp ^(?!\\/)(?!.*\\\\)(?!.*(?:^|\\/)\\.{1,2}(?:\\/|$))(?!.*(?:^|\\/)\\.git(?:\\/|$))(?:templates|emails)\\/.+\\.tsx$" })).check(Schema.isMaxLength(1024).annotate({ expected: "a value with a length of at most 1024" })), Schema.String.check(Schema.isMaxCodePoints(1024).annotate({ expected: "a string with at most 1024 code points" })).check(Schema.isPattern(new globalThis.RegExp("^(?!.*\\\\)(?!.*(?:^|\\/)\\.{1,2}(?:\\/|$))(?!.*(?:^|\\/)\\.git(?:\\/|$))(?!.*\\p{Cc})issues\\/(?:[^/]+\\/)*[^/]+\\.md$", "u")).annotate({ expected: "a string matching the RegExp ^(?!.*\\\\)(?!.*(?:^|\\/)\\.{1,2}(?:\\/|$))(?!.*(?:^|\\/)\\.git(?:\\/|$))(?!.*\\p{Cc})issues\\/(?:[^/]+\\/)*[^/]+\\.md$" })).check(Schema.isMaxLength(1024).annotate({ expected: "a value with a length of at most 1024" }))]),
|
|
1205
1304
|
declaration: Schema.Union([Schema.Struct({
|
|
1206
|
-
codeDigest: Schema.String.check(Schema.isPattern(
|
|
1305
|
+
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}$" })),
|
|
1207
1306
|
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" })),
|
|
1208
1307
|
input: Schema.Struct({
|
|
1209
1308
|
schema: Schema.Record(Schema.String, JsonValue),
|
|
1210
|
-
schemaDigest: Schema.String.check(Schema.isPattern(
|
|
1211
|
-
contractDigest: Schema.String.check(Schema.isPattern(
|
|
1309
|
+
schemaDigest: Schema.String.check(Schema.isPattern(new globalThis.RegExp("^[a-f0-9]{64}$", "u")).annotate({ expected: "a string matching the RegExp ^[a-f0-9]{64}$" })),
|
|
1310
|
+
contractDigest: Schema.String.check(Schema.isPattern(new globalThis.RegExp("^[a-f0-9]{64}$", "u")).annotate({ expected: "a string matching the RegExp ^[a-f0-9]{64}$" }))
|
|
1212
1311
|
}),
|
|
1213
1312
|
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" })))
|
|
1214
1313
|
}), Schema.Null]),
|
|
1215
1314
|
issue: Schema.optionalKey(Schema.Struct({
|
|
1216
|
-
path: Schema.String.check(Schema.isMaxCodePoints(1024).annotate({ expected: "a string with at most 1024 code points" })).check(Schema.isPattern(
|
|
1315
|
+
path: Schema.String.check(Schema.isMaxCodePoints(1024).annotate({ expected: "a string with at most 1024 code points" })).check(Schema.isPattern(new globalThis.RegExp("^(?!.*\\\\)(?!.*(?:^|\\/)\\.{1,2}(?:\\/|$))(?!.*(?:^|\\/)\\.git(?:\\/|$))(?!.*\\p{Cc})issues\\/(?:[^/]+\\/)*[^/]+\\.md$", "u")).annotate({ expected: "a string matching the RegExp ^(?!.*\\\\)(?!.*(?:^|\\/)\\.{1,2}(?:\\/|$))(?!.*(?:^|\\/)\\.git(?:\\/|$))(?!.*\\p{Cc})issues\\/(?:[^/]+\\/)*[^/]+\\.md$" })).check(Schema.isMaxLength(1024).annotate({ expected: "a value with a length of at most 1024" })),
|
|
1217
1316
|
frontmatter: Schema.Struct({
|
|
1218
1317
|
title: Schema.String,
|
|
1219
1318
|
date: Schema.optionalKey(Schema.String),
|
|
@@ -1316,6 +1415,48 @@ const TemplatesRenderWorkspaceFixture200 = /* @__PURE__ */ (() => Schema.Struct(
|
|
|
1316
1415
|
sentBytes: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThanOrEqualTo(-9007199254740991).annotate({ expected: "a value greater than or equal to -9007199254740991" })).check(Schema.isLessThanOrEqualTo(9007199254740991).annotate({ expected: "a value less than or equal to 9007199254740991" })),
|
|
1317
1416
|
previewBytes: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThanOrEqualTo(-9007199254740991).annotate({ expected: "a value greater than or equal to -9007199254740991" })).check(Schema.isLessThanOrEqualTo(9007199254740991).annotate({ expected: "a value less than or equal to 9007199254740991" }))
|
|
1318
1417
|
}), Schema.Null]),
|
|
1418
|
+
whatsapp: Schema.Union([Schema.Struct({
|
|
1419
|
+
language: Schema.String,
|
|
1420
|
+
category: Schema.String,
|
|
1421
|
+
header: Schema.optionalKey(Schema.Struct({
|
|
1422
|
+
type: Schema.Union([
|
|
1423
|
+
Schema.Literal("text"),
|
|
1424
|
+
Schema.Literal("image"),
|
|
1425
|
+
Schema.Literal("video"),
|
|
1426
|
+
Schema.Literal("document")
|
|
1427
|
+
]),
|
|
1428
|
+
text: Schema.String
|
|
1429
|
+
})),
|
|
1430
|
+
body: Schema.String,
|
|
1431
|
+
footer: Schema.optionalKey(Schema.String),
|
|
1432
|
+
buttons: Schema.Array(Schema.Union([
|
|
1433
|
+
Schema.Struct({
|
|
1434
|
+
type: Schema.Literal("quick-reply"),
|
|
1435
|
+
text: Schema.String
|
|
1436
|
+
}),
|
|
1437
|
+
Schema.Struct({
|
|
1438
|
+
type: Schema.Literal("url"),
|
|
1439
|
+
text: Schema.String,
|
|
1440
|
+
url: Schema.String
|
|
1441
|
+
}),
|
|
1442
|
+
Schema.Struct({
|
|
1443
|
+
type: Schema.Literal("phone"),
|
|
1444
|
+
text: Schema.String,
|
|
1445
|
+
phone: Schema.String
|
|
1446
|
+
}),
|
|
1447
|
+
Schema.Struct({
|
|
1448
|
+
type: Schema.Literal("copy-code"),
|
|
1449
|
+
code: Schema.String
|
|
1450
|
+
}),
|
|
1451
|
+
Schema.Struct({
|
|
1452
|
+
type: Schema.Literal("flow"),
|
|
1453
|
+
text: Schema.String,
|
|
1454
|
+
flow: Schema.String,
|
|
1455
|
+
action: Schema.Union([Schema.Literal("navigate"), Schema.Literal("data_exchange")]),
|
|
1456
|
+
screen: Schema.optionalKey(Schema.String)
|
|
1457
|
+
})
|
|
1458
|
+
]))
|
|
1459
|
+
}), Schema.Null]),
|
|
1319
1460
|
page: Schema.optionalKey(Schema.Union([Schema.Struct({
|
|
1320
1461
|
kind: Schema.Literal("page"),
|
|
1321
1462
|
html: Schema.String,
|
|
@@ -1336,10 +1477,11 @@ const TemplatesRenderWorkspaceFixture200 = /* @__PURE__ */ (() => Schema.Struct(
|
|
|
1336
1477
|
}))
|
|
1337
1478
|
}), Schema.Null]))
|
|
1338
1479
|
}))();
|
|
1480
|
+
const TemplatesRenderWorkspaceFixture400 = MalformedRequestError;
|
|
1339
1481
|
const TemplatesRenderWorkspaceFixture401 = UnauthorizedError;
|
|
1340
1482
|
const TemplatesRenderWorkspaceFixture403 = ForbiddenError;
|
|
1341
1483
|
const TemplatesRenderWorkspaceFixture404 = ResourceNotFoundError;
|
|
1342
|
-
const TemplatesRenderWorkspaceFixture409 = ConflictError;
|
|
1484
|
+
const TemplatesRenderWorkspaceFixture409 = /* @__PURE__ */ (() => Schema.Union([ConflictError, TemplateInUseError]))();
|
|
1343
1485
|
const TemplatesRenderWorkspaceFixture422 = /* @__PURE__ */ (() => Schema.Union([TemplateSourceError, ValidationError]))();
|
|
1344
1486
|
const TemplatesRenderWorkspaceFixture500 = InternalError;
|
|
1345
1487
|
const TemplatesRenderWorkspaceFixture503 = ServiceUnavailableError;
|
|
@@ -1348,23 +1490,24 @@ const TemplatesWorkspaceHistoryPathParams = /* @__PURE__ */ (() => Schema.Struct
|
|
|
1348
1490
|
const TemplatesWorkspaceHistoryQuery = /* @__PURE__ */ (() => Schema.Struct({ limit: Schema.optionalKey(Schema.Union([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(100).annotate({ expected: "a value less than or equal to 100" })), Schema.Null])) }))();
|
|
1349
1491
|
const TemplatesWorkspaceHistory200 = /* @__PURE__ */ (() => Schema.Struct({
|
|
1350
1492
|
projectId: TemplateProjectId,
|
|
1351
|
-
head: Schema.String.check(Schema.isPattern(
|
|
1493
|
+
head: Schema.String.check(Schema.isPattern(new globalThis.RegExp("^[a-f0-9]{40}$", "u")).annotate({ expected: "a string matching the RegExp ^[a-f0-9]{40}$" })),
|
|
1352
1494
|
commits: Schema.Array(Schema.Struct({
|
|
1353
|
-
commit: Schema.String.check(Schema.isPattern(
|
|
1354
|
-
tree: Schema.String.check(Schema.isPattern(
|
|
1355
|
-
parentCommit: Schema.Union([Schema.String.check(Schema.isPattern(
|
|
1495
|
+
commit: Schema.String.check(Schema.isPattern(new globalThis.RegExp("^[a-f0-9]{40}$", "u")).annotate({ expected: "a string matching the RegExp ^[a-f0-9]{40}$" })),
|
|
1496
|
+
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}$" })),
|
|
1497
|
+
parentCommit: Schema.Union([Schema.String.check(Schema.isPattern(new globalThis.RegExp("^[a-f0-9]{40}$", "u")).annotate({ expected: "a string matching the RegExp ^[a-f0-9]{40}$" })), Schema.Null]),
|
|
1356
1498
|
message: Schema.String,
|
|
1357
1499
|
committedAt: Schema.String
|
|
1358
1500
|
})),
|
|
1359
1501
|
publication: Schema.Union([Schema.Struct({
|
|
1360
1502
|
id: TemplatePublicationId,
|
|
1361
|
-
commit: Schema.String.check(Schema.isPattern(
|
|
1503
|
+
commit: Schema.String.check(Schema.isPattern(new globalThis.RegExp("^[a-f0-9]{40}$", "u")).annotate({ expected: "a string matching the RegExp ^[a-f0-9]{40}$" }))
|
|
1362
1504
|
}), Schema.Null])
|
|
1363
1505
|
}))();
|
|
1506
|
+
const TemplatesWorkspaceHistory400 = MalformedRequestError;
|
|
1364
1507
|
const TemplatesWorkspaceHistory401 = UnauthorizedError;
|
|
1365
1508
|
const TemplatesWorkspaceHistory403 = ForbiddenError;
|
|
1366
1509
|
const TemplatesWorkspaceHistory404 = ResourceNotFoundError;
|
|
1367
|
-
const TemplatesWorkspaceHistory409 = ConflictError;
|
|
1510
|
+
const TemplatesWorkspaceHistory409 = /* @__PURE__ */ (() => Schema.Union([ConflictError, TemplateInUseError]))();
|
|
1368
1511
|
const TemplatesWorkspaceHistory422 = /* @__PURE__ */ (() => Schema.Union([TemplateSourceError, ValidationError]))();
|
|
1369
1512
|
const TemplatesWorkspaceHistory500 = InternalError;
|
|
1370
1513
|
const TemplatesWorkspaceHistory503 = ServiceUnavailableError;
|
|
@@ -1374,12 +1517,12 @@ const TemplatesAttachWorkspaceResourceHeaders = /* @__PURE__ */ (() => Schema.St
|
|
|
1374
1517
|
const TemplatesAttachWorkspaceResourceRequestJson = /* @__PURE__ */ (() => Schema.Struct({
|
|
1375
1518
|
expectedRevision: Schema.String,
|
|
1376
1519
|
resource: Schema.Struct({
|
|
1377
|
-
resourceId: Schema.String.check(Schema.isPattern(
|
|
1520
|
+
resourceId: Schema.String.check(Schema.isPattern(new globalThis.RegExp("^[A-Za-z0-9._-]{1,128}$", "u")).annotate({ expected: "a string matching the RegExp ^[A-Za-z0-9._-]{1,128}$" })),
|
|
1378
1521
|
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" })),
|
|
1379
1522
|
files: Schema.Array(Schema.Struct({
|
|
1380
|
-
path: Schema.String.check(Schema.isPattern(
|
|
1523
|
+
path: Schema.String.check(Schema.isPattern(new globalThis.RegExp("^(?!\\/)(?!.*\\\\)(?!.*(?:^|\\/)\\.{1,2}(?:\\/|$))(?!.*(?:^|\\/)\\.git(?:\\/|$)).{1,1024}$")).annotate({ expected: "a string matching the RegExp ^(?!\\/)(?!.*\\\\)(?!.*(?:^|\\/)\\.{1,2}(?:\\/|$))(?!.*(?:^|\\/)\\.git(?:\\/|$)).{1,1024}$" })),
|
|
1381
1524
|
mediaType: 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" })),
|
|
1382
|
-
contentBase64: Schema.String.check(Schema.isPattern(
|
|
1525
|
+
contentBase64: Schema.String.check(Schema.isPattern(new globalThis.RegExp("^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$", "u")).annotate({ expected: "a string matching the RegExp ^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$" }))
|
|
1383
1526
|
})).check(Schema.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema.isMaxLength(32).annotate({ expected: "a value with a length of at most 32" }))
|
|
1384
1527
|
})
|
|
1385
1528
|
}))();
|
|
@@ -1387,11 +1530,11 @@ const TemplatesAttachWorkspaceResource200 = /* @__PURE__ */ (() => Schema.Struct
|
|
|
1387
1530
|
projectId: TemplateProjectId,
|
|
1388
1531
|
organizationId: Schema.Union([OrganizationId, Schema.Null]),
|
|
1389
1532
|
ownerEpoch: 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" })),
|
|
1390
|
-
repositoryName: Schema.String.check(Schema.isPattern(
|
|
1533
|
+
repositoryName: Schema.String.check(Schema.isPattern(new globalThis.RegExp("^[A-Za-z0-9][A-Za-z0-9._-]{0,127}$", "u")).annotate({ expected: "a string matching the RegExp ^[A-Za-z0-9][A-Za-z0-9._-]{0,127}$" })),
|
|
1391
1534
|
defaultBranch: 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" })),
|
|
1392
|
-
baseCommit: Schema.String.check(Schema.isPattern(
|
|
1393
|
-
remoteHead: Schema.String.check(Schema.isPattern(
|
|
1394
|
-
pendingRemoteHead: Schema.Union([Schema.String.check(Schema.isPattern(
|
|
1535
|
+
baseCommit: Schema.String.check(Schema.isPattern(new globalThis.RegExp("^[a-f0-9]{40}$", "u")).annotate({ expected: "a string matching the RegExp ^[a-f0-9]{40}$" })),
|
|
1536
|
+
remoteHead: Schema.String.check(Schema.isPattern(new globalThis.RegExp("^[a-f0-9]{40}$", "u")).annotate({ expected: "a string matching the RegExp ^[a-f0-9]{40}$" })),
|
|
1537
|
+
pendingRemoteHead: Schema.Union([Schema.String.check(Schema.isPattern(new globalThis.RegExp("^[a-f0-9]{40}$", "u")).annotate({ expected: "a string matching the RegExp ^[a-f0-9]{40}$" })), Schema.Null]),
|
|
1395
1538
|
revision: Schema.String,
|
|
1396
1539
|
overlay: Schema.Record(Schema.String, Schema.Union([Schema.String, Schema.Null])),
|
|
1397
1540
|
assetChanges: Schema.Array(Schema.Struct({
|
|
@@ -1403,7 +1546,7 @@ const TemplatesAttachWorkspaceResource200 = /* @__PURE__ */ (() => Schema.Struct
|
|
|
1403
1546
|
])
|
|
1404
1547
|
})),
|
|
1405
1548
|
conflicts: Schema.Array(Schema.Struct({
|
|
1406
|
-
path: Schema.String.check(Schema.isPattern(
|
|
1549
|
+
path: Schema.String.check(Schema.isPattern(new globalThis.RegExp("^(?!\\/)(?!.*\\\\)(?!.*(?:^|\\/)\\.{1,2}(?:\\/|$))(?!.*(?:^|\\/)\\.git(?:\\/|$)).{1,1024}$")).annotate({ expected: "a string matching the RegExp ^(?!\\/)(?!.*\\\\)(?!.*(?:^|\\/)\\.{1,2}(?:\\/|$))(?!.*(?:^|\\/)\\.git(?:\\/|$)).{1,1024}$" })),
|
|
1407
1550
|
base: Schema.Union([Schema.String, Schema.Null]),
|
|
1408
1551
|
draft: Schema.Union([Schema.String, Schema.Null]),
|
|
1409
1552
|
main: Schema.Union([Schema.String, Schema.Null])
|
|
@@ -1420,39 +1563,39 @@ const TemplatesAttachWorkspaceResource200 = /* @__PURE__ */ (() => Schema.Struct
|
|
|
1420
1563
|
access: Schema.Literal("read-write")
|
|
1421
1564
|
}),
|
|
1422
1565
|
Schema.Struct({
|
|
1423
|
-
root: Schema.String.check(Schema.isMaxCodePoints(2048).annotate({ expected: "a string with at most 2048 code points" })).check(Schema.isPattern(
|
|
1424
|
-
digest: Schema.String.check(Schema.isPattern(
|
|
1566
|
+
root: Schema.String.check(Schema.isMaxCodePoints(2048).annotate({ expected: "a string with at most 2048 code points" })).check(Schema.isPattern(new globalThis.RegExp("^\\/(?:project|references\\/started-from\\/[a-f0-9]{64}|resources\\/[A-Za-z0-9._-]+\\/[a-f0-9]{64}|library\\/templates\\/[a-z0-9]+(?:-[a-z0-9]+)*\\/[a-f0-9]{64})(?:\\/(?!\\.{1,2}(?:\\/|$)|\\.git(?:\\/|$))[^\\\\/]+)*$", "u")).annotate({ expected: "a string matching the RegExp ^\\/(?:project|references\\/started-from\\/[a-f0-9]{64}|resources\\/[A-Za-z0-9._-]+\\/[a-f0-9]{64}|library\\/templates\\/[a-z0-9]+(?:-[a-z0-9]+)*\\/[a-f0-9]{64})(?:\\/(?!\\.{1,2}(?:\\/|$)|\\.git(?:\\/|$))[^\\\\/]+)*$" })).check(Schema.isMaxLength(2048).annotate({ expected: "a value with a length of at most 2048" })),
|
|
1567
|
+
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}$" })),
|
|
1425
1568
|
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" })),
|
|
1426
1569
|
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" })),
|
|
1427
1570
|
kind: Schema.Literal("started-from"),
|
|
1428
1571
|
access: Schema.Literal("read-only"),
|
|
1429
1572
|
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" })),
|
|
1430
|
-
slug: Schema.String.check(Schema.isPattern(
|
|
1573
|
+
slug: 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]+)*$" })),
|
|
1431
1574
|
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" }))
|
|
1432
1575
|
}),
|
|
1433
1576
|
Schema.Struct({
|
|
1434
|
-
root: Schema.String.check(Schema.isMaxCodePoints(2048).annotate({ expected: "a string with at most 2048 code points" })).check(Schema.isPattern(
|
|
1435
|
-
digest: Schema.String.check(Schema.isPattern(
|
|
1577
|
+
root: Schema.String.check(Schema.isMaxCodePoints(2048).annotate({ expected: "a string with at most 2048 code points" })).check(Schema.isPattern(new globalThis.RegExp("^\\/(?:project|references\\/started-from\\/[a-f0-9]{64}|resources\\/[A-Za-z0-9._-]+\\/[a-f0-9]{64}|library\\/templates\\/[a-z0-9]+(?:-[a-z0-9]+)*\\/[a-f0-9]{64})(?:\\/(?!\\.{1,2}(?:\\/|$)|\\.git(?:\\/|$))[^\\\\/]+)*$", "u")).annotate({ expected: "a string matching the RegExp ^\\/(?:project|references\\/started-from\\/[a-f0-9]{64}|resources\\/[A-Za-z0-9._-]+\\/[a-f0-9]{64}|library\\/templates\\/[a-z0-9]+(?:-[a-z0-9]+)*\\/[a-f0-9]{64})(?:\\/(?!\\.{1,2}(?:\\/|$)|\\.git(?:\\/|$))[^\\\\/]+)*$" })).check(Schema.isMaxLength(2048).annotate({ expected: "a value with a length of at most 2048" })),
|
|
1578
|
+
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}$" })),
|
|
1436
1579
|
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" })),
|
|
1437
1580
|
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" })),
|
|
1438
1581
|
kind: Schema.Literal("resource"),
|
|
1439
1582
|
access: Schema.Literal("read-only"),
|
|
1440
|
-
resourceId: Schema.String.check(Schema.isPattern(
|
|
1583
|
+
resourceId: Schema.String.check(Schema.isPattern(new globalThis.RegExp("^[A-Za-z0-9._-]{1,128}$", "u")).annotate({ expected: "a string matching the RegExp ^[A-Za-z0-9._-]{1,128}$" })),
|
|
1441
1584
|
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" }))
|
|
1442
1585
|
}),
|
|
1443
1586
|
Schema.Struct({
|
|
1444
|
-
root: Schema.String.check(Schema.isMaxCodePoints(2048).annotate({ expected: "a string with at most 2048 code points" })).check(Schema.isPattern(
|
|
1445
|
-
digest: Schema.String.check(Schema.isPattern(
|
|
1587
|
+
root: Schema.String.check(Schema.isMaxCodePoints(2048).annotate({ expected: "a string with at most 2048 code points" })).check(Schema.isPattern(new globalThis.RegExp("^\\/(?:project|references\\/started-from\\/[a-f0-9]{64}|resources\\/[A-Za-z0-9._-]+\\/[a-f0-9]{64}|library\\/templates\\/[a-z0-9]+(?:-[a-z0-9]+)*\\/[a-f0-9]{64})(?:\\/(?!\\.{1,2}(?:\\/|$)|\\.git(?:\\/|$))[^\\\\/]+)*$", "u")).annotate({ expected: "a string matching the RegExp ^\\/(?:project|references\\/started-from\\/[a-f0-9]{64}|resources\\/[A-Za-z0-9._-]+\\/[a-f0-9]{64}|library\\/templates\\/[a-z0-9]+(?:-[a-z0-9]+)*\\/[a-f0-9]{64})(?:\\/(?!\\.{1,2}(?:\\/|$)|\\.git(?:\\/|$))[^\\\\/]+)*$" })).check(Schema.isMaxLength(2048).annotate({ expected: "a value with a length of at most 2048" })),
|
|
1588
|
+
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}$" })),
|
|
1446
1589
|
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" })),
|
|
1447
1590
|
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" })),
|
|
1448
1591
|
kind: Schema.Literal("library-template"),
|
|
1449
1592
|
access: Schema.Literal("read-only"),
|
|
1450
1593
|
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" })),
|
|
1451
|
-
slug: Schema.String.check(Schema.isPattern(
|
|
1594
|
+
slug: 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]+)*$" })),
|
|
1452
1595
|
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" }))
|
|
1453
1596
|
})
|
|
1454
1597
|
])),
|
|
1455
|
-
libraryManifestDigest: Schema.String.check(Schema.isPattern(
|
|
1598
|
+
libraryManifestDigest: Schema.String.check(Schema.isPattern(new globalThis.RegExp("^[a-f0-9]{64}$", "u")).annotate({ expected: "a string matching the RegExp ^[a-f0-9]{64}$" })),
|
|
1456
1599
|
createdAt: Schema.String,
|
|
1457
1600
|
updatedAt: Schema.String,
|
|
1458
1601
|
createdBy: Schema.Struct({
|
|
@@ -1472,17 +1615,18 @@ const TemplatesAttachWorkspaceResource200 = /* @__PURE__ */ (() => Schema.Struct
|
|
|
1472
1615
|
])
|
|
1473
1616
|
})
|
|
1474
1617
|
}))();
|
|
1618
|
+
const TemplatesAttachWorkspaceResource400 = MalformedRequestError;
|
|
1475
1619
|
const TemplatesAttachWorkspaceResource401 = UnauthorizedError;
|
|
1476
1620
|
const TemplatesAttachWorkspaceResource403 = ForbiddenError;
|
|
1477
1621
|
const TemplatesAttachWorkspaceResource404 = ResourceNotFoundError;
|
|
1478
|
-
const TemplatesAttachWorkspaceResource409 = ConflictError;
|
|
1622
|
+
const TemplatesAttachWorkspaceResource409 = /* @__PURE__ */ (() => Schema.Union([ConflictError, TemplateInUseError]))();
|
|
1479
1623
|
const TemplatesAttachWorkspaceResource422 = /* @__PURE__ */ (() => Schema.Union([TemplateSourceError, ValidationError]))();
|
|
1480
1624
|
const TemplatesAttachWorkspaceResource500 = InternalError;
|
|
1481
1625
|
const TemplatesAttachWorkspaceResource503 = ServiceUnavailableError;
|
|
1482
1626
|
const TemplatesAttachWorkspaceResource504 = GatewayTimeoutError;
|
|
1483
1627
|
const TemplatesRemoveWorkspaceResourcePathParams = /* @__PURE__ */ (() => Schema.Struct({
|
|
1484
1628
|
id: TemplateId,
|
|
1485
|
-
resourceId: Schema.String.check(Schema.isPattern(
|
|
1629
|
+
resourceId: Schema.String.check(Schema.isPattern(new globalThis.RegExp("^[A-Za-z0-9._-]{1,128}$", "u")).annotate({ expected: "a string matching the RegExp ^[A-Za-z0-9._-]{1,128}$" }))
|
|
1486
1630
|
}))();
|
|
1487
1631
|
const TemplatesRemoveWorkspaceResourceHeaders = /* @__PURE__ */ (() => Schema.Struct({ "idempotency-key": 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" })) }))();
|
|
1488
1632
|
const TemplatesRemoveWorkspaceResourceRequestJson = /* @__PURE__ */ (() => Schema.Struct({ expectedRevision: Schema.String }))();
|
|
@@ -1490,11 +1634,11 @@ const TemplatesRemoveWorkspaceResource200 = /* @__PURE__ */ (() => Schema.Struct
|
|
|
1490
1634
|
projectId: TemplateProjectId,
|
|
1491
1635
|
organizationId: Schema.Union([OrganizationId, Schema.Null]),
|
|
1492
1636
|
ownerEpoch: 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" })),
|
|
1493
|
-
repositoryName: Schema.String.check(Schema.isPattern(
|
|
1637
|
+
repositoryName: Schema.String.check(Schema.isPattern(new globalThis.RegExp("^[A-Za-z0-9][A-Za-z0-9._-]{0,127}$", "u")).annotate({ expected: "a string matching the RegExp ^[A-Za-z0-9][A-Za-z0-9._-]{0,127}$" })),
|
|
1494
1638
|
defaultBranch: 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" })),
|
|
1495
|
-
baseCommit: Schema.String.check(Schema.isPattern(
|
|
1496
|
-
remoteHead: Schema.String.check(Schema.isPattern(
|
|
1497
|
-
pendingRemoteHead: Schema.Union([Schema.String.check(Schema.isPattern(
|
|
1639
|
+
baseCommit: Schema.String.check(Schema.isPattern(new globalThis.RegExp("^[a-f0-9]{40}$", "u")).annotate({ expected: "a string matching the RegExp ^[a-f0-9]{40}$" })),
|
|
1640
|
+
remoteHead: Schema.String.check(Schema.isPattern(new globalThis.RegExp("^[a-f0-9]{40}$", "u")).annotate({ expected: "a string matching the RegExp ^[a-f0-9]{40}$" })),
|
|
1641
|
+
pendingRemoteHead: Schema.Union([Schema.String.check(Schema.isPattern(new globalThis.RegExp("^[a-f0-9]{40}$", "u")).annotate({ expected: "a string matching the RegExp ^[a-f0-9]{40}$" })), Schema.Null]),
|
|
1498
1642
|
revision: Schema.String,
|
|
1499
1643
|
overlay: Schema.Record(Schema.String, Schema.Union([Schema.String, Schema.Null])),
|
|
1500
1644
|
assetChanges: Schema.Array(Schema.Struct({
|
|
@@ -1506,7 +1650,7 @@ const TemplatesRemoveWorkspaceResource200 = /* @__PURE__ */ (() => Schema.Struct
|
|
|
1506
1650
|
])
|
|
1507
1651
|
})),
|
|
1508
1652
|
conflicts: Schema.Array(Schema.Struct({
|
|
1509
|
-
path: Schema.String.check(Schema.isPattern(
|
|
1653
|
+
path: Schema.String.check(Schema.isPattern(new globalThis.RegExp("^(?!\\/)(?!.*\\\\)(?!.*(?:^|\\/)\\.{1,2}(?:\\/|$))(?!.*(?:^|\\/)\\.git(?:\\/|$)).{1,1024}$")).annotate({ expected: "a string matching the RegExp ^(?!\\/)(?!.*\\\\)(?!.*(?:^|\\/)\\.{1,2}(?:\\/|$))(?!.*(?:^|\\/)\\.git(?:\\/|$)).{1,1024}$" })),
|
|
1510
1654
|
base: Schema.Union([Schema.String, Schema.Null]),
|
|
1511
1655
|
draft: Schema.Union([Schema.String, Schema.Null]),
|
|
1512
1656
|
main: Schema.Union([Schema.String, Schema.Null])
|
|
@@ -1523,39 +1667,39 @@ const TemplatesRemoveWorkspaceResource200 = /* @__PURE__ */ (() => Schema.Struct
|
|
|
1523
1667
|
access: Schema.Literal("read-write")
|
|
1524
1668
|
}),
|
|
1525
1669
|
Schema.Struct({
|
|
1526
|
-
root: Schema.String.check(Schema.isMaxCodePoints(2048).annotate({ expected: "a string with at most 2048 code points" })).check(Schema.isPattern(
|
|
1527
|
-
digest: Schema.String.check(Schema.isPattern(
|
|
1670
|
+
root: Schema.String.check(Schema.isMaxCodePoints(2048).annotate({ expected: "a string with at most 2048 code points" })).check(Schema.isPattern(new globalThis.RegExp("^\\/(?:project|references\\/started-from\\/[a-f0-9]{64}|resources\\/[A-Za-z0-9._-]+\\/[a-f0-9]{64}|library\\/templates\\/[a-z0-9]+(?:-[a-z0-9]+)*\\/[a-f0-9]{64})(?:\\/(?!\\.{1,2}(?:\\/|$)|\\.git(?:\\/|$))[^\\\\/]+)*$", "u")).annotate({ expected: "a string matching the RegExp ^\\/(?:project|references\\/started-from\\/[a-f0-9]{64}|resources\\/[A-Za-z0-9._-]+\\/[a-f0-9]{64}|library\\/templates\\/[a-z0-9]+(?:-[a-z0-9]+)*\\/[a-f0-9]{64})(?:\\/(?!\\.{1,2}(?:\\/|$)|\\.git(?:\\/|$))[^\\\\/]+)*$" })).check(Schema.isMaxLength(2048).annotate({ expected: "a value with a length of at most 2048" })),
|
|
1671
|
+
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}$" })),
|
|
1528
1672
|
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" })),
|
|
1529
1673
|
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" })),
|
|
1530
1674
|
kind: Schema.Literal("started-from"),
|
|
1531
1675
|
access: Schema.Literal("read-only"),
|
|
1532
1676
|
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" })),
|
|
1533
|
-
slug: Schema.String.check(Schema.isPattern(
|
|
1677
|
+
slug: 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]+)*$" })),
|
|
1534
1678
|
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" }))
|
|
1535
1679
|
}),
|
|
1536
1680
|
Schema.Struct({
|
|
1537
|
-
root: Schema.String.check(Schema.isMaxCodePoints(2048).annotate({ expected: "a string with at most 2048 code points" })).check(Schema.isPattern(
|
|
1538
|
-
digest: Schema.String.check(Schema.isPattern(
|
|
1681
|
+
root: Schema.String.check(Schema.isMaxCodePoints(2048).annotate({ expected: "a string with at most 2048 code points" })).check(Schema.isPattern(new globalThis.RegExp("^\\/(?:project|references\\/started-from\\/[a-f0-9]{64}|resources\\/[A-Za-z0-9._-]+\\/[a-f0-9]{64}|library\\/templates\\/[a-z0-9]+(?:-[a-z0-9]+)*\\/[a-f0-9]{64})(?:\\/(?!\\.{1,2}(?:\\/|$)|\\.git(?:\\/|$))[^\\\\/]+)*$", "u")).annotate({ expected: "a string matching the RegExp ^\\/(?:project|references\\/started-from\\/[a-f0-9]{64}|resources\\/[A-Za-z0-9._-]+\\/[a-f0-9]{64}|library\\/templates\\/[a-z0-9]+(?:-[a-z0-9]+)*\\/[a-f0-9]{64})(?:\\/(?!\\.{1,2}(?:\\/|$)|\\.git(?:\\/|$))[^\\\\/]+)*$" })).check(Schema.isMaxLength(2048).annotate({ expected: "a value with a length of at most 2048" })),
|
|
1682
|
+
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}$" })),
|
|
1539
1683
|
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" })),
|
|
1540
1684
|
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" })),
|
|
1541
1685
|
kind: Schema.Literal("resource"),
|
|
1542
1686
|
access: Schema.Literal("read-only"),
|
|
1543
|
-
resourceId: Schema.String.check(Schema.isPattern(
|
|
1687
|
+
resourceId: Schema.String.check(Schema.isPattern(new globalThis.RegExp("^[A-Za-z0-9._-]{1,128}$", "u")).annotate({ expected: "a string matching the RegExp ^[A-Za-z0-9._-]{1,128}$" })),
|
|
1544
1688
|
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" }))
|
|
1545
1689
|
}),
|
|
1546
1690
|
Schema.Struct({
|
|
1547
|
-
root: Schema.String.check(Schema.isMaxCodePoints(2048).annotate({ expected: "a string with at most 2048 code points" })).check(Schema.isPattern(
|
|
1548
|
-
digest: Schema.String.check(Schema.isPattern(
|
|
1691
|
+
root: Schema.String.check(Schema.isMaxCodePoints(2048).annotate({ expected: "a string with at most 2048 code points" })).check(Schema.isPattern(new globalThis.RegExp("^\\/(?:project|references\\/started-from\\/[a-f0-9]{64}|resources\\/[A-Za-z0-9._-]+\\/[a-f0-9]{64}|library\\/templates\\/[a-z0-9]+(?:-[a-z0-9]+)*\\/[a-f0-9]{64})(?:\\/(?!\\.{1,2}(?:\\/|$)|\\.git(?:\\/|$))[^\\\\/]+)*$", "u")).annotate({ expected: "a string matching the RegExp ^\\/(?:project|references\\/started-from\\/[a-f0-9]{64}|resources\\/[A-Za-z0-9._-]+\\/[a-f0-9]{64}|library\\/templates\\/[a-z0-9]+(?:-[a-z0-9]+)*\\/[a-f0-9]{64})(?:\\/(?!\\.{1,2}(?:\\/|$)|\\.git(?:\\/|$))[^\\\\/]+)*$" })).check(Schema.isMaxLength(2048).annotate({ expected: "a value with a length of at most 2048" })),
|
|
1692
|
+
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}$" })),
|
|
1549
1693
|
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" })),
|
|
1550
1694
|
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" })),
|
|
1551
1695
|
kind: Schema.Literal("library-template"),
|
|
1552
1696
|
access: Schema.Literal("read-only"),
|
|
1553
1697
|
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" })),
|
|
1554
|
-
slug: Schema.String.check(Schema.isPattern(
|
|
1698
|
+
slug: 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]+)*$" })),
|
|
1555
1699
|
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" }))
|
|
1556
1700
|
})
|
|
1557
1701
|
])),
|
|
1558
|
-
libraryManifestDigest: Schema.String.check(Schema.isPattern(
|
|
1702
|
+
libraryManifestDigest: Schema.String.check(Schema.isPattern(new globalThis.RegExp("^[a-f0-9]{64}$", "u")).annotate({ expected: "a string matching the RegExp ^[a-f0-9]{64}$" })),
|
|
1559
1703
|
createdAt: Schema.String,
|
|
1560
1704
|
updatedAt: Schema.String,
|
|
1561
1705
|
createdBy: Schema.Struct({
|
|
@@ -1575,10 +1719,11 @@ const TemplatesRemoveWorkspaceResource200 = /* @__PURE__ */ (() => Schema.Struct
|
|
|
1575
1719
|
])
|
|
1576
1720
|
})
|
|
1577
1721
|
}))();
|
|
1722
|
+
const TemplatesRemoveWorkspaceResource400 = MalformedRequestError;
|
|
1578
1723
|
const TemplatesRemoveWorkspaceResource401 = UnauthorizedError;
|
|
1579
1724
|
const TemplatesRemoveWorkspaceResource403 = ForbiddenError;
|
|
1580
1725
|
const TemplatesRemoveWorkspaceResource404 = ResourceNotFoundError;
|
|
1581
|
-
const TemplatesRemoveWorkspaceResource409 = ConflictError;
|
|
1726
|
+
const TemplatesRemoveWorkspaceResource409 = /* @__PURE__ */ (() => Schema.Union([ConflictError, TemplateInUseError]))();
|
|
1582
1727
|
const TemplatesRemoveWorkspaceResource422 = /* @__PURE__ */ (() => Schema.Union([TemplateSourceError, ValidationError]))();
|
|
1583
1728
|
const TemplatesRemoveWorkspaceResource500 = InternalError;
|
|
1584
1729
|
const TemplatesRemoveWorkspaceResource503 = ServiceUnavailableError;
|
|
@@ -1587,7 +1732,7 @@ const TemplatesRestoreWorkspacePathParams = /* @__PURE__ */ (() => Schema.Struct
|
|
|
1587
1732
|
const TemplatesRestoreWorkspaceHeaders = /* @__PURE__ */ (() => Schema.Struct({ "idempotency-key": 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" })) }))();
|
|
1588
1733
|
const TemplatesRestoreWorkspaceRequestJson = /* @__PURE__ */ (() => Schema.Struct({
|
|
1589
1734
|
expectedRevision: Schema.String,
|
|
1590
|
-
commit: Schema.String.check(Schema.isPattern(
|
|
1735
|
+
commit: Schema.String.check(Schema.isPattern(new globalThis.RegExp("^[a-f0-9]{40}$", "u")).annotate({ expected: "a string matching the RegExp ^[a-f0-9]{40}$" }))
|
|
1591
1736
|
}))();
|
|
1592
1737
|
const TemplatesRestoreWorkspace200 = /* @__PURE__ */ (() => Schema.Struct({
|
|
1593
1738
|
view: Schema.Struct({
|
|
@@ -1595,11 +1740,11 @@ const TemplatesRestoreWorkspace200 = /* @__PURE__ */ (() => Schema.Struct({
|
|
|
1595
1740
|
projectId: TemplateProjectId,
|
|
1596
1741
|
organizationId: Schema.Union([OrganizationId, Schema.Null]),
|
|
1597
1742
|
ownerEpoch: 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" })),
|
|
1598
|
-
repositoryName: Schema.String.check(Schema.isPattern(
|
|
1743
|
+
repositoryName: Schema.String.check(Schema.isPattern(new globalThis.RegExp("^[A-Za-z0-9][A-Za-z0-9._-]{0,127}$", "u")).annotate({ expected: "a string matching the RegExp ^[A-Za-z0-9][A-Za-z0-9._-]{0,127}$" })),
|
|
1599
1744
|
defaultBranch: 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" })),
|
|
1600
|
-
baseCommit: Schema.String.check(Schema.isPattern(
|
|
1601
|
-
remoteHead: Schema.String.check(Schema.isPattern(
|
|
1602
|
-
pendingRemoteHead: Schema.Union([Schema.String.check(Schema.isPattern(
|
|
1745
|
+
baseCommit: Schema.String.check(Schema.isPattern(new globalThis.RegExp("^[a-f0-9]{40}$", "u")).annotate({ expected: "a string matching the RegExp ^[a-f0-9]{40}$" })),
|
|
1746
|
+
remoteHead: Schema.String.check(Schema.isPattern(new globalThis.RegExp("^[a-f0-9]{40}$", "u")).annotate({ expected: "a string matching the RegExp ^[a-f0-9]{40}$" })),
|
|
1747
|
+
pendingRemoteHead: Schema.Union([Schema.String.check(Schema.isPattern(new globalThis.RegExp("^[a-f0-9]{40}$", "u")).annotate({ expected: "a string matching the RegExp ^[a-f0-9]{40}$" })), Schema.Null]),
|
|
1603
1748
|
revision: Schema.String,
|
|
1604
1749
|
overlay: Schema.Record(Schema.String, Schema.Union([Schema.String, Schema.Null])),
|
|
1605
1750
|
assetChanges: Schema.Array(Schema.Struct({
|
|
@@ -1611,7 +1756,7 @@ const TemplatesRestoreWorkspace200 = /* @__PURE__ */ (() => Schema.Struct({
|
|
|
1611
1756
|
])
|
|
1612
1757
|
})),
|
|
1613
1758
|
conflicts: Schema.Array(Schema.Struct({
|
|
1614
|
-
path: Schema.String.check(Schema.isPattern(
|
|
1759
|
+
path: Schema.String.check(Schema.isPattern(new globalThis.RegExp("^(?!\\/)(?!.*\\\\)(?!.*(?:^|\\/)\\.{1,2}(?:\\/|$))(?!.*(?:^|\\/)\\.git(?:\\/|$)).{1,1024}$")).annotate({ expected: "a string matching the RegExp ^(?!\\/)(?!.*\\\\)(?!.*(?:^|\\/)\\.{1,2}(?:\\/|$))(?!.*(?:^|\\/)\\.git(?:\\/|$)).{1,1024}$" })),
|
|
1615
1760
|
base: Schema.Union([Schema.String, Schema.Null]),
|
|
1616
1761
|
draft: Schema.Union([Schema.String, Schema.Null]),
|
|
1617
1762
|
main: Schema.Union([Schema.String, Schema.Null])
|
|
@@ -1628,39 +1773,39 @@ const TemplatesRestoreWorkspace200 = /* @__PURE__ */ (() => Schema.Struct({
|
|
|
1628
1773
|
access: Schema.Literal("read-write")
|
|
1629
1774
|
}),
|
|
1630
1775
|
Schema.Struct({
|
|
1631
|
-
root: Schema.String.check(Schema.isMaxCodePoints(2048).annotate({ expected: "a string with at most 2048 code points" })).check(Schema.isPattern(
|
|
1632
|
-
digest: Schema.String.check(Schema.isPattern(
|
|
1776
|
+
root: Schema.String.check(Schema.isMaxCodePoints(2048).annotate({ expected: "a string with at most 2048 code points" })).check(Schema.isPattern(new globalThis.RegExp("^\\/(?:project|references\\/started-from\\/[a-f0-9]{64}|resources\\/[A-Za-z0-9._-]+\\/[a-f0-9]{64}|library\\/templates\\/[a-z0-9]+(?:-[a-z0-9]+)*\\/[a-f0-9]{64})(?:\\/(?!\\.{1,2}(?:\\/|$)|\\.git(?:\\/|$))[^\\\\/]+)*$", "u")).annotate({ expected: "a string matching the RegExp ^\\/(?:project|references\\/started-from\\/[a-f0-9]{64}|resources\\/[A-Za-z0-9._-]+\\/[a-f0-9]{64}|library\\/templates\\/[a-z0-9]+(?:-[a-z0-9]+)*\\/[a-f0-9]{64})(?:\\/(?!\\.{1,2}(?:\\/|$)|\\.git(?:\\/|$))[^\\\\/]+)*$" })).check(Schema.isMaxLength(2048).annotate({ expected: "a value with a length of at most 2048" })),
|
|
1777
|
+
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}$" })),
|
|
1633
1778
|
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" })),
|
|
1634
1779
|
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" })),
|
|
1635
1780
|
kind: Schema.Literal("started-from"),
|
|
1636
1781
|
access: Schema.Literal("read-only"),
|
|
1637
1782
|
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" })),
|
|
1638
|
-
slug: Schema.String.check(Schema.isPattern(
|
|
1783
|
+
slug: 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]+)*$" })),
|
|
1639
1784
|
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" }))
|
|
1640
1785
|
}),
|
|
1641
1786
|
Schema.Struct({
|
|
1642
|
-
root: Schema.String.check(Schema.isMaxCodePoints(2048).annotate({ expected: "a string with at most 2048 code points" })).check(Schema.isPattern(
|
|
1643
|
-
digest: Schema.String.check(Schema.isPattern(
|
|
1787
|
+
root: Schema.String.check(Schema.isMaxCodePoints(2048).annotate({ expected: "a string with at most 2048 code points" })).check(Schema.isPattern(new globalThis.RegExp("^\\/(?:project|references\\/started-from\\/[a-f0-9]{64}|resources\\/[A-Za-z0-9._-]+\\/[a-f0-9]{64}|library\\/templates\\/[a-z0-9]+(?:-[a-z0-9]+)*\\/[a-f0-9]{64})(?:\\/(?!\\.{1,2}(?:\\/|$)|\\.git(?:\\/|$))[^\\\\/]+)*$", "u")).annotate({ expected: "a string matching the RegExp ^\\/(?:project|references\\/started-from\\/[a-f0-9]{64}|resources\\/[A-Za-z0-9._-]+\\/[a-f0-9]{64}|library\\/templates\\/[a-z0-9]+(?:-[a-z0-9]+)*\\/[a-f0-9]{64})(?:\\/(?!\\.{1,2}(?:\\/|$)|\\.git(?:\\/|$))[^\\\\/]+)*$" })).check(Schema.isMaxLength(2048).annotate({ expected: "a value with a length of at most 2048" })),
|
|
1788
|
+
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}$" })),
|
|
1644
1789
|
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" })),
|
|
1645
1790
|
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" })),
|
|
1646
1791
|
kind: Schema.Literal("resource"),
|
|
1647
1792
|
access: Schema.Literal("read-only"),
|
|
1648
|
-
resourceId: Schema.String.check(Schema.isPattern(
|
|
1793
|
+
resourceId: Schema.String.check(Schema.isPattern(new globalThis.RegExp("^[A-Za-z0-9._-]{1,128}$", "u")).annotate({ expected: "a string matching the RegExp ^[A-Za-z0-9._-]{1,128}$" })),
|
|
1649
1794
|
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" }))
|
|
1650
1795
|
}),
|
|
1651
1796
|
Schema.Struct({
|
|
1652
|
-
root: Schema.String.check(Schema.isMaxCodePoints(2048).annotate({ expected: "a string with at most 2048 code points" })).check(Schema.isPattern(
|
|
1653
|
-
digest: Schema.String.check(Schema.isPattern(
|
|
1797
|
+
root: Schema.String.check(Schema.isMaxCodePoints(2048).annotate({ expected: "a string with at most 2048 code points" })).check(Schema.isPattern(new globalThis.RegExp("^\\/(?:project|references\\/started-from\\/[a-f0-9]{64}|resources\\/[A-Za-z0-9._-]+\\/[a-f0-9]{64}|library\\/templates\\/[a-z0-9]+(?:-[a-z0-9]+)*\\/[a-f0-9]{64})(?:\\/(?!\\.{1,2}(?:\\/|$)|\\.git(?:\\/|$))[^\\\\/]+)*$", "u")).annotate({ expected: "a string matching the RegExp ^\\/(?:project|references\\/started-from\\/[a-f0-9]{64}|resources\\/[A-Za-z0-9._-]+\\/[a-f0-9]{64}|library\\/templates\\/[a-z0-9]+(?:-[a-z0-9]+)*\\/[a-f0-9]{64})(?:\\/(?!\\.{1,2}(?:\\/|$)|\\.git(?:\\/|$))[^\\\\/]+)*$" })).check(Schema.isMaxLength(2048).annotate({ expected: "a value with a length of at most 2048" })),
|
|
1798
|
+
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}$" })),
|
|
1654
1799
|
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" })),
|
|
1655
1800
|
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" })),
|
|
1656
1801
|
kind: Schema.Literal("library-template"),
|
|
1657
1802
|
access: Schema.Literal("read-only"),
|
|
1658
1803
|
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" })),
|
|
1659
|
-
slug: Schema.String.check(Schema.isPattern(
|
|
1804
|
+
slug: 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]+)*$" })),
|
|
1660
1805
|
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" }))
|
|
1661
1806
|
})
|
|
1662
1807
|
])),
|
|
1663
|
-
libraryManifestDigest: Schema.String.check(Schema.isPattern(
|
|
1808
|
+
libraryManifestDigest: Schema.String.check(Schema.isPattern(new globalThis.RegExp("^[a-f0-9]{64}$", "u")).annotate({ expected: "a string matching the RegExp ^[a-f0-9]{64}$" })),
|
|
1664
1809
|
createdAt: Schema.String,
|
|
1665
1810
|
updatedAt: Schema.String,
|
|
1666
1811
|
createdBy: Schema.Struct({
|
|
@@ -1683,14 +1828,15 @@ const TemplatesRestoreWorkspace200 = /* @__PURE__ */ (() => Schema.Struct({
|
|
|
1683
1828
|
files: Schema.Record(Schema.String, Schema.String)
|
|
1684
1829
|
}),
|
|
1685
1830
|
source: Schema.Struct({
|
|
1686
|
-
digest: Schema.String.check(Schema.isPattern(
|
|
1831
|
+
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}$" })),
|
|
1687
1832
|
content: Schema.String.check(Schema.isMaxCodePoints(2097152).annotate({ expected: "a string with at most 2097152 code points" })).check(Schema.isMaxLength(2097152).annotate({ expected: "a value with a length of at most 2097152" }))
|
|
1688
1833
|
})
|
|
1689
1834
|
}))();
|
|
1835
|
+
const TemplatesRestoreWorkspace400 = MalformedRequestError;
|
|
1690
1836
|
const TemplatesRestoreWorkspace401 = UnauthorizedError;
|
|
1691
1837
|
const TemplatesRestoreWorkspace403 = ForbiddenError;
|
|
1692
1838
|
const TemplatesRestoreWorkspace404 = ResourceNotFoundError;
|
|
1693
|
-
const TemplatesRestoreWorkspace409 = ConflictError;
|
|
1839
|
+
const TemplatesRestoreWorkspace409 = /* @__PURE__ */ (() => Schema.Union([ConflictError, TemplateInUseError]))();
|
|
1694
1840
|
const TemplatesRestoreWorkspace422 = /* @__PURE__ */ (() => Schema.Union([TemplateSourceError, ValidationError]))();
|
|
1695
1841
|
const TemplatesRestoreWorkspace500 = InternalError;
|
|
1696
1842
|
const TemplatesRestoreWorkspace503 = ServiceUnavailableError;
|
|
@@ -1699,17 +1845,17 @@ const TemplatesSaveWorkspacePathParams = /* @__PURE__ */ (() => Schema.Struct({
|
|
|
1699
1845
|
const TemplatesSaveWorkspaceHeaders = /* @__PURE__ */ (() => Schema.Struct({ "idempotency-key": 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" })) }))();
|
|
1700
1846
|
const TemplatesSaveWorkspaceRequestJson = /* @__PURE__ */ (() => Schema.Struct({
|
|
1701
1847
|
expectedRevision: Schema.String,
|
|
1702
|
-
expectedHead: Schema.String.check(Schema.isPattern(
|
|
1848
|
+
expectedHead: Schema.String.check(Schema.isPattern(new globalThis.RegExp("^[a-f0-9]{40}$", "u")).annotate({ expected: "a string matching the RegExp ^[a-f0-9]{40}$" })),
|
|
1703
1849
|
message: Schema.String.check(Schema.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).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" }))
|
|
1704
1850
|
}))();
|
|
1705
1851
|
const TemplatesSaveWorkspace200 = /* @__PURE__ */ (() => Schema.Struct({
|
|
1706
|
-
commit: Schema.String.check(Schema.isPattern(
|
|
1707
|
-
parentCommit: Schema.String.check(Schema.isPattern(
|
|
1708
|
-
tree: Schema.String.check(Schema.isPattern(
|
|
1852
|
+
commit: Schema.String.check(Schema.isPattern(new globalThis.RegExp("^[a-f0-9]{40}$", "u")).annotate({ expected: "a string matching the RegExp ^[a-f0-9]{40}$" })),
|
|
1853
|
+
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}$" })),
|
|
1854
|
+
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}$" })),
|
|
1709
1855
|
revision: Schema.String,
|
|
1710
|
-
changedPaths: Schema.Array(Schema.String.check(Schema.isPattern(
|
|
1711
|
-
sourceDigest: Schema.String.check(Schema.isPattern(
|
|
1712
|
-
buildDigest: Schema.String.check(Schema.isPattern(
|
|
1856
|
+
changedPaths: Schema.Array(Schema.String.check(Schema.isPattern(new globalThis.RegExp("^(?!\\/)(?!.*\\\\)(?!.*(?:^|\\/)\\.{1,2}(?:\\/|$))(?!.*(?:^|\\/)\\.git(?:\\/|$)).{1,1024}$")).annotate({ expected: "a string matching the RegExp ^(?!\\/)(?!.*\\\\)(?!.*(?:^|\\/)\\.{1,2}(?:\\/|$))(?!.*(?:^|\\/)\\.git(?:\\/|$)).{1,1024}$" }))),
|
|
1857
|
+
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}$" })),
|
|
1858
|
+
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}$" })),
|
|
1713
1859
|
warnings: Schema.Array(Schema.Struct({
|
|
1714
1860
|
code: Schema.String,
|
|
1715
1861
|
severity: Schema.Union([
|
|
@@ -1775,19 +1921,21 @@ const TemplatesSaveWorkspace200 = /* @__PURE__ */ (() => Schema.Struct({
|
|
|
1775
1921
|
}), Schema.Null]))
|
|
1776
1922
|
}))
|
|
1777
1923
|
}))();
|
|
1924
|
+
const TemplatesSaveWorkspace400 = MalformedRequestError;
|
|
1778
1925
|
const TemplatesSaveWorkspace401 = UnauthorizedError;
|
|
1779
1926
|
const TemplatesSaveWorkspace403 = ForbiddenError;
|
|
1780
1927
|
const TemplatesSaveWorkspace404 = ResourceNotFoundError;
|
|
1781
|
-
const TemplatesSaveWorkspace409 = ConflictError;
|
|
1928
|
+
const TemplatesSaveWorkspace409 = /* @__PURE__ */ (() => Schema.Union([ConflictError, TemplateInUseError]))();
|
|
1782
1929
|
const TemplatesSaveWorkspace422 = /* @__PURE__ */ (() => Schema.Union([TemplateSourceError, ValidationError]))();
|
|
1783
1930
|
const TemplatesSaveWorkspace500 = InternalError;
|
|
1784
1931
|
const TemplatesSaveWorkspace503 = ServiceUnavailableError;
|
|
1785
1932
|
const TemplatesSaveWorkspace504 = GatewayTimeoutError;
|
|
1786
1933
|
const TemplatesListFamiliesQuery = /* @__PURE__ */ (() => Schema.Struct({
|
|
1787
1934
|
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])),
|
|
1788
|
-
cursor: Schema.optionalKey(Schema.
|
|
1935
|
+
cursor: Schema.optionalKey(Schema.String)
|
|
1789
1936
|
}))();
|
|
1790
1937
|
const TemplatesListFamilies200 = TemplateFamilyPage;
|
|
1938
|
+
const TemplatesListFamilies400 = MalformedRequestError;
|
|
1791
1939
|
const TemplatesListFamilies401 = UnauthorizedError;
|
|
1792
1940
|
const TemplatesListFamilies403 = ForbiddenError;
|
|
1793
1941
|
const TemplatesListFamilies422 = ValidationError;
|
|
@@ -1795,6 +1943,7 @@ const TemplatesListFamilies500 = InternalError;
|
|
|
1795
1943
|
const TemplatesListFamilies504 = GatewayTimeoutError;
|
|
1796
1944
|
const TemplatesCreateFamilyRequestJson = /* @__PURE__ */ (() => Schema.Struct({ name: Schema.String.check(Schema.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })) }))();
|
|
1797
1945
|
const TemplatesCreateFamily201 = TemplateFamily;
|
|
1946
|
+
const TemplatesCreateFamily400 = MalformedRequestError;
|
|
1798
1947
|
const TemplatesCreateFamily401 = UnauthorizedError;
|
|
1799
1948
|
const TemplatesCreateFamily403 = ForbiddenError;
|
|
1800
1949
|
const TemplatesCreateFamily422 = ValidationError;
|
|
@@ -1802,6 +1951,7 @@ const TemplatesCreateFamily500 = InternalError;
|
|
|
1802
1951
|
const TemplatesCreateFamily504 = GatewayTimeoutError;
|
|
1803
1952
|
const TemplatesGetFamilyPathParams = /* @__PURE__ */ (() => Schema.Struct({ id: TemplateFamilyId }))();
|
|
1804
1953
|
const TemplatesGetFamily200 = TemplateFamily;
|
|
1954
|
+
const TemplatesGetFamily400 = MalformedRequestError;
|
|
1805
1955
|
const TemplatesGetFamily401 = UnauthorizedError;
|
|
1806
1956
|
const TemplatesGetFamily403 = ForbiddenError;
|
|
1807
1957
|
const TemplatesGetFamily404 = ResourceNotFoundError;
|
|
@@ -1810,6 +1960,7 @@ const TemplatesGetFamily500 = InternalError;
|
|
|
1810
1960
|
const TemplatesGetFamily504 = GatewayTimeoutError;
|
|
1811
1961
|
const TemplatesDeleteFamilyPathParams = /* @__PURE__ */ (() => Schema.Struct({ id: TemplateFamilyId }))();
|
|
1812
1962
|
const TemplatesDeleteFamily200 = SuccessResponse;
|
|
1963
|
+
const TemplatesDeleteFamily400 = MalformedRequestError;
|
|
1813
1964
|
const TemplatesDeleteFamily401 = UnauthorizedError;
|
|
1814
1965
|
const TemplatesDeleteFamily403 = ForbiddenError;
|
|
1815
1966
|
const TemplatesDeleteFamily404 = ResourceNotFoundError;
|
|
@@ -1819,6 +1970,7 @@ const TemplatesDeleteFamily504 = GatewayTimeoutError;
|
|
|
1819
1970
|
const TemplatesRenameFamilyPathParams = /* @__PURE__ */ (() => Schema.Struct({ id: TemplateFamilyId }))();
|
|
1820
1971
|
const TemplatesRenameFamilyRequestJson = /* @__PURE__ */ (() => Schema.Struct({ name: Schema.String.check(Schema.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })) }))();
|
|
1821
1972
|
const TemplatesRenameFamily200 = TemplateFamily;
|
|
1973
|
+
const TemplatesRenameFamily400 = MalformedRequestError;
|
|
1822
1974
|
const TemplatesRenameFamily401 = UnauthorizedError;
|
|
1823
1975
|
const TemplatesRenameFamily403 = ForbiddenError;
|
|
1824
1976
|
const TemplatesRenameFamily404 = ResourceNotFoundError;
|
|
@@ -1830,6 +1982,7 @@ const TemplatesAttachFamilyMemberPathParams = /* @__PURE__ */ (() => Schema.Stru
|
|
|
1830
1982
|
templateId: TemplateId
|
|
1831
1983
|
}))();
|
|
1832
1984
|
const TemplatesAttachFamilyMember200 = TemplateFamily;
|
|
1985
|
+
const TemplatesAttachFamilyMember400 = MalformedRequestError;
|
|
1833
1986
|
const TemplatesAttachFamilyMember401 = UnauthorizedError;
|
|
1834
1987
|
const TemplatesAttachFamilyMember403 = ForbiddenError;
|
|
1835
1988
|
const TemplatesAttachFamilyMember404 = ResourceNotFoundError;
|
|
@@ -1842,6 +1995,7 @@ const TemplatesDetachFamilyMemberPathParams = /* @__PURE__ */ (() => Schema.Stru
|
|
|
1842
1995
|
templateId: TemplateId
|
|
1843
1996
|
}))();
|
|
1844
1997
|
const TemplatesDetachFamilyMember200 = TemplateFamily;
|
|
1998
|
+
const TemplatesDetachFamilyMember400 = MalformedRequestError;
|
|
1845
1999
|
const TemplatesDetachFamilyMember401 = UnauthorizedError;
|
|
1846
2000
|
const TemplatesDetachFamilyMember403 = ForbiddenError;
|
|
1847
2001
|
const TemplatesDetachFamilyMember404 = ResourceNotFoundError;
|
|
@@ -1852,6 +2006,7 @@ const TemplatesDetachFamilyMember504 = GatewayTimeoutError;
|
|
|
1852
2006
|
const TemplatesCreateFamilyFromTemplatePathParams = /* @__PURE__ */ (() => Schema.Struct({ templateId: TemplateId }))();
|
|
1853
2007
|
const TemplatesCreateFamilyFromTemplateRequestJson = /* @__PURE__ */ (() => Schema.Struct({ name: Schema.String.check(Schema.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })) }))();
|
|
1854
2008
|
const TemplatesCreateFamilyFromTemplate201 = TemplateFamily;
|
|
2009
|
+
const TemplatesCreateFamilyFromTemplate400 = MalformedRequestError;
|
|
1855
2010
|
const TemplatesCreateFamilyFromTemplate401 = UnauthorizedError;
|
|
1856
2011
|
const TemplatesCreateFamilyFromTemplate403 = ForbiddenError;
|
|
1857
2012
|
const TemplatesCreateFamilyFromTemplate404 = ResourceNotFoundError;
|
|
@@ -1866,19 +2021,30 @@ const TemplatesCreateFromWebsiteRequestJson = /* @__PURE__ */ (() => Schema.Stru
|
|
|
1866
2021
|
namespaceId: Schema.optionalKey(Schema.Union([NamespaceId, Schema.Null]).annotate({ description: "The namespace the new template project belongs to. Omit for organization level. A namespace-scoped key always creates in its own namespace." }))
|
|
1867
2022
|
}))();
|
|
1868
2023
|
const TemplatesCreateFromWebsite201 = TemplateFromWebsite;
|
|
2024
|
+
const TemplatesCreateFromWebsite400 = MalformedRequestError;
|
|
1869
2025
|
const TemplatesCreateFromWebsite401 = UnauthorizedError;
|
|
1870
2026
|
const TemplatesCreateFromWebsite403 = ForbiddenError;
|
|
1871
2027
|
const TemplatesCreateFromWebsite404 = ResourceNotFoundError;
|
|
1872
|
-
const TemplatesCreateFromWebsite409 = ConflictError;
|
|
2028
|
+
const TemplatesCreateFromWebsite409 = /* @__PURE__ */ (() => Schema.Union([ConflictError, TemplateInUseError]))();
|
|
1873
2029
|
const TemplatesCreateFromWebsite422 = /* @__PURE__ */ (() => Schema.Union([TemplateSourceError, ValidationError]))();
|
|
1874
2030
|
const TemplatesCreateFromWebsite500 = InternalError;
|
|
1875
2031
|
const TemplatesCreateFromWebsite503 = ServiceUnavailableError;
|
|
1876
2032
|
const TemplatesCreateFromWebsite504 = GatewayTimeoutError;
|
|
2033
|
+
const TemplatesDeleteProjectPathParams = /* @__PURE__ */ (() => Schema.Struct({ id: TemplateProjectId }))();
|
|
2034
|
+
const TemplatesDeleteProject200 = SuccessResponse;
|
|
2035
|
+
const TemplatesDeleteProject400 = MalformedRequestError;
|
|
2036
|
+
const TemplatesDeleteProject401 = UnauthorizedError;
|
|
2037
|
+
const TemplatesDeleteProject403 = ForbiddenError;
|
|
2038
|
+
const TemplatesDeleteProject404 = ResourceNotFoundError;
|
|
2039
|
+
const TemplatesDeleteProject409 = TemplateInUseError;
|
|
2040
|
+
const TemplatesDeleteProject422 = ValidationError;
|
|
2041
|
+
const TemplatesDeleteProject500 = InternalError;
|
|
2042
|
+
const TemplatesDeleteProject504 = GatewayTimeoutError;
|
|
1877
2043
|
const TemplatesAddEntryPathParams = /* @__PURE__ */ (() => Schema.Struct({ id: TemplateProjectId }))();
|
|
1878
2044
|
const TemplatesAddEntryRequestJson = /* @__PURE__ */ (() => Schema.Struct({
|
|
1879
|
-
entryPath: Schema.String.check(Schema.isMaxCodePoints(1024).annotate({ expected: "a string with at most 1024 code points" })).check(Schema.isPattern(
|
|
2045
|
+
entryPath: Schema.String.check(Schema.isMaxCodePoints(1024).annotate({ expected: "a string with at most 1024 code points" })).check(Schema.isPattern(new globalThis.RegExp("^(?!\\/)(?!.*\\\\)(?!.*(?:^|\\/)\\.{1,2}(?:\\/|$))(?!.*(?:^|\\/)\\.git(?:\\/|$))(?:templates|emails)\\/.+\\.tsx$", "u")).annotate({ expected: "a string matching the RegExp ^(?!\\/)(?!.*\\\\)(?!.*(?:^|\\/)\\.{1,2}(?:\\/|$))(?!.*(?:^|\\/)\\.git(?:\\/|$))(?:templates|emails)\\/.+\\.tsx$" })).check(Schema.isMaxLength(1024).annotate({ expected: "a value with a length of at most 1024" })),
|
|
1880
2046
|
name: Schema.String.check(Schema.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema.isMaxCodePoints(200).annotate({ expected: "a string with at most 200 code points" })).check(Schema.isMaxLength(200).annotate({ expected: "a value with a length of at most 200" })),
|
|
1881
|
-
slug: Schema.String.check(Schema.isPattern(
|
|
2047
|
+
slug: Schema.String.check(Schema.isPattern(new globalThis.RegExp("^(?=.{1,100}$)[a-z0-9]+(?:-[a-z0-9]+)*$", "u")).annotate({ expected: "a string matching the RegExp ^(?=.{1,100}$)[a-z0-9]+(?:-[a-z0-9]+)*$" })),
|
|
1882
2048
|
description: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
|
|
1883
2049
|
category: Schema.optionalKey(Schema.Union([Schema.Union([
|
|
1884
2050
|
Schema.Literal("transactional"),
|
|
@@ -1891,6 +2057,7 @@ const TemplatesAddEntryRequestJson = /* @__PURE__ */ (() => Schema.Struct({
|
|
|
1891
2057
|
]), Schema.Null]))
|
|
1892
2058
|
}))();
|
|
1893
2059
|
const TemplatesAddEntry201 = Template;
|
|
2060
|
+
const TemplatesAddEntry400 = MalformedRequestError;
|
|
1894
2061
|
const TemplatesAddEntry401 = UnauthorizedError;
|
|
1895
2062
|
const TemplatesAddEntry403 = ForbiddenError;
|
|
1896
2063
|
const TemplatesAddEntry404 = ResourceNotFoundError;
|
|
@@ -1902,6 +2069,7 @@ var TemplatesGroup = class extends HttpApiGroup.make("Templates").add(HttpApiEnd
|
|
|
1902
2069
|
query: TemplatesListQuery,
|
|
1903
2070
|
success: TemplatesList200,
|
|
1904
2071
|
error: [
|
|
2072
|
+
TemplatesList400.pipe(HttpApiSchema.status(400)),
|
|
1905
2073
|
TemplatesList401.pipe(HttpApiSchema.status(401)),
|
|
1906
2074
|
TemplatesList403.pipe(HttpApiSchema.status(403)),
|
|
1907
2075
|
TemplatesList422.pipe(HttpApiSchema.status(422)),
|
|
@@ -1913,6 +2081,7 @@ var TemplatesGroup = class extends HttpApiGroup.make("Templates").add(HttpApiEnd
|
|
|
1913
2081
|
payload: TemplatesCreateRequestJson,
|
|
1914
2082
|
success: TemplatesCreate201.pipe(HttpApiSchema.status(201)),
|
|
1915
2083
|
error: [
|
|
2084
|
+
TemplatesCreate400.pipe(HttpApiSchema.status(400)),
|
|
1916
2085
|
TemplatesCreate401.pipe(HttpApiSchema.status(401)),
|
|
1917
2086
|
TemplatesCreate403.pipe(HttpApiSchema.status(403)),
|
|
1918
2087
|
TemplatesCreate404.pipe(HttpApiSchema.status(404)),
|
|
@@ -1926,6 +2095,7 @@ var TemplatesGroup = class extends HttpApiGroup.make("Templates").add(HttpApiEnd
|
|
|
1926
2095
|
params: TemplatesGetByIdPathParams,
|
|
1927
2096
|
success: TemplatesGetById200,
|
|
1928
2097
|
error: [
|
|
2098
|
+
TemplatesGetById400.pipe(HttpApiSchema.status(400)),
|
|
1929
2099
|
TemplatesGetById401.pipe(HttpApiSchema.status(401)),
|
|
1930
2100
|
TemplatesGetById403.pipe(HttpApiSchema.status(403)),
|
|
1931
2101
|
TemplatesGetById404.pipe(HttpApiSchema.status(404)),
|
|
@@ -1933,22 +2103,25 @@ var TemplatesGroup = class extends HttpApiGroup.make("Templates").add(HttpApiEnd
|
|
|
1933
2103
|
TemplatesGetById500,
|
|
1934
2104
|
TemplatesGetById504.pipe(HttpApiSchema.status(504))
|
|
1935
2105
|
]
|
|
1936
|
-
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "templates.getById").annotate(OpenApi.Summary, "Get a template").annotate(OpenApi.Description, "Returns the template with its project entry path, delivery defaults, compiled channel content, current publication, and the input schema that publication validates against. Open live project files through the workspace API."), HttpApiEndpoint.delete("
|
|
1937
|
-
params:
|
|
1938
|
-
success:
|
|
2106
|
+
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "templates.getById").annotate(OpenApi.Summary, "Get a template").annotate(OpenApi.Description, "Returns the template with its project entry path, delivery defaults, compiled channel content, current publication, and the input schema that publication validates against. Open live project files through the workspace API."), HttpApiEndpoint.delete("templatesDelete", "/v1/templates/:id", {
|
|
2107
|
+
params: TemplatesDeletePathParams,
|
|
2108
|
+
success: TemplatesDelete200,
|
|
1939
2109
|
error: [
|
|
1940
|
-
|
|
1941
|
-
|
|
1942
|
-
|
|
1943
|
-
|
|
1944
|
-
|
|
1945
|
-
|
|
2110
|
+
TemplatesDelete400.pipe(HttpApiSchema.status(400)),
|
|
2111
|
+
TemplatesDelete401.pipe(HttpApiSchema.status(401)),
|
|
2112
|
+
TemplatesDelete403.pipe(HttpApiSchema.status(403)),
|
|
2113
|
+
TemplatesDelete404.pipe(HttpApiSchema.status(404)),
|
|
2114
|
+
TemplatesDelete409.pipe(HttpApiSchema.status(409)),
|
|
2115
|
+
TemplatesDelete422.pipe(HttpApiSchema.status(422)),
|
|
2116
|
+
TemplatesDelete500,
|
|
2117
|
+
TemplatesDelete504.pipe(HttpApiSchema.status(504))
|
|
1946
2118
|
]
|
|
1947
|
-
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "templates.
|
|
2119
|
+
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "templates.delete").annotate(OpenApi.Summary, "Delete a template").annotate(OpenApi.Description, "Permanently deletes a template and its publications, input contracts, variants and preview rasters, freeing its slug. Refuses with 409 and reference kind/id pairs while in use. Sent-message history keeps its snapshots. The project and its Git files remain. External object cleanup retries durably."), HttpApiEndpoint.patch("templatesUpdate", "/v1/templates/:id", {
|
|
1948
2120
|
params: TemplatesUpdatePathParams,
|
|
1949
2121
|
payload: TemplatesUpdateRequestJson,
|
|
1950
2122
|
success: TemplatesUpdate200,
|
|
1951
2123
|
error: [
|
|
2124
|
+
TemplatesUpdate400.pipe(HttpApiSchema.status(400)),
|
|
1952
2125
|
TemplatesUpdate401.pipe(HttpApiSchema.status(401)),
|
|
1953
2126
|
TemplatesUpdate403.pipe(HttpApiSchema.status(403)),
|
|
1954
2127
|
TemplatesUpdate404.pipe(HttpApiSchema.status(404)),
|
|
@@ -1962,6 +2135,7 @@ var TemplatesGroup = class extends HttpApiGroup.make("Templates").add(HttpApiEnd
|
|
|
1962
2135
|
query: TemplatesListInputContractsQuery,
|
|
1963
2136
|
success: TemplatesListInputContracts200,
|
|
1964
2137
|
error: [
|
|
2138
|
+
TemplatesListInputContracts400.pipe(HttpApiSchema.status(400)),
|
|
1965
2139
|
TemplatesListInputContracts401.pipe(HttpApiSchema.status(401)),
|
|
1966
2140
|
TemplatesListInputContracts403.pipe(HttpApiSchema.status(403)),
|
|
1967
2141
|
TemplatesListInputContracts404.pipe(HttpApiSchema.status(404)),
|
|
@@ -1973,6 +2147,7 @@ var TemplatesGroup = class extends HttpApiGroup.make("Templates").add(HttpApiEnd
|
|
|
1973
2147
|
params: TemplatesGetInputContractPathParams,
|
|
1974
2148
|
success: TemplatesGetInputContract200,
|
|
1975
2149
|
error: [
|
|
2150
|
+
TemplatesGetInputContract400.pipe(HttpApiSchema.status(400)),
|
|
1976
2151
|
TemplatesGetInputContract401.pipe(HttpApiSchema.status(401)),
|
|
1977
2152
|
TemplatesGetInputContract403.pipe(HttpApiSchema.status(403)),
|
|
1978
2153
|
TemplatesGetInputContract404.pipe(HttpApiSchema.status(404)),
|
|
@@ -1985,6 +2160,7 @@ var TemplatesGroup = class extends HttpApiGroup.make("Templates").add(HttpApiEnd
|
|
|
1985
2160
|
payload: TemplatesPublishRequestJson,
|
|
1986
2161
|
success: TemplatesPublish201.pipe(HttpApiSchema.status(201)),
|
|
1987
2162
|
error: [
|
|
2163
|
+
TemplatesPublish400.pipe(HttpApiSchema.status(400)),
|
|
1988
2164
|
TemplatesPublish401.pipe(HttpApiSchema.status(401)),
|
|
1989
2165
|
TemplatesPublish403.pipe(HttpApiSchema.status(403)),
|
|
1990
2166
|
TemplatesPublish404.pipe(HttpApiSchema.status(404)),
|
|
@@ -1998,6 +2174,7 @@ var TemplatesGroup = class extends HttpApiGroup.make("Templates").add(HttpApiEnd
|
|
|
1998
2174
|
params: TemplatesGetPublicationPathParams,
|
|
1999
2175
|
success: TemplatesGetPublication200,
|
|
2000
2176
|
error: [
|
|
2177
|
+
TemplatesGetPublication400.pipe(HttpApiSchema.status(400)),
|
|
2001
2178
|
TemplatesGetPublication401.pipe(HttpApiSchema.status(401)),
|
|
2002
2179
|
TemplatesGetPublication403.pipe(HttpApiSchema.status(403)),
|
|
2003
2180
|
TemplatesGetPublication404.pipe(HttpApiSchema.status(404)),
|
|
@@ -2010,6 +2187,7 @@ var TemplatesGroup = class extends HttpApiGroup.make("Templates").add(HttpApiEnd
|
|
|
2010
2187
|
payload: TemplatesRenderPublicationRequestJson,
|
|
2011
2188
|
success: TemplatesRenderPublication200,
|
|
2012
2189
|
error: [
|
|
2190
|
+
TemplatesRenderPublication400.pipe(HttpApiSchema.status(400)),
|
|
2013
2191
|
TemplatesRenderPublication401.pipe(HttpApiSchema.status(401)),
|
|
2014
2192
|
TemplatesRenderPublication403.pipe(HttpApiSchema.status(403)),
|
|
2015
2193
|
TemplatesRenderPublication404.pipe(HttpApiSchema.status(404)),
|
|
@@ -2022,6 +2200,7 @@ var TemplatesGroup = class extends HttpApiGroup.make("Templates").add(HttpApiEnd
|
|
|
2022
2200
|
params: TemplatesGetGitRepositoryPathParams,
|
|
2023
2201
|
success: TemplatesGetGitRepository200,
|
|
2024
2202
|
error: [
|
|
2203
|
+
TemplatesGetGitRepository400.pipe(HttpApiSchema.status(400)),
|
|
2025
2204
|
TemplatesGetGitRepository401.pipe(HttpApiSchema.status(401)),
|
|
2026
2205
|
TemplatesGetGitRepository403.pipe(HttpApiSchema.status(403)),
|
|
2027
2206
|
TemplatesGetGitRepository404.pipe(HttpApiSchema.status(404)),
|
|
@@ -2036,6 +2215,7 @@ var TemplatesGroup = class extends HttpApiGroup.make("Templates").add(HttpApiEnd
|
|
|
2036
2215
|
payload: TemplatesIssueGitCredentialRequestJson,
|
|
2037
2216
|
success: TemplatesIssueGitCredential200,
|
|
2038
2217
|
error: [
|
|
2218
|
+
TemplatesIssueGitCredential400.pipe(HttpApiSchema.status(400)),
|
|
2039
2219
|
TemplatesIssueGitCredential401.pipe(HttpApiSchema.status(401)),
|
|
2040
2220
|
TemplatesIssueGitCredential403.pipe(HttpApiSchema.status(403)),
|
|
2041
2221
|
TemplatesIssueGitCredential404.pipe(HttpApiSchema.status(404)),
|
|
@@ -2049,6 +2229,7 @@ var TemplatesGroup = class extends HttpApiGroup.make("Templates").add(HttpApiEnd
|
|
|
2049
2229
|
params: TemplatesOpenWorkspacePathParams,
|
|
2050
2230
|
success: TemplatesOpenWorkspace200,
|
|
2051
2231
|
error: [
|
|
2232
|
+
TemplatesOpenWorkspace400.pipe(HttpApiSchema.status(400)),
|
|
2052
2233
|
TemplatesOpenWorkspace401.pipe(HttpApiSchema.status(401)),
|
|
2053
2234
|
TemplatesOpenWorkspace403.pipe(HttpApiSchema.status(403)),
|
|
2054
2235
|
TemplatesOpenWorkspace404.pipe(HttpApiSchema.status(404)),
|
|
@@ -2064,6 +2245,7 @@ var TemplatesGroup = class extends HttpApiGroup.make("Templates").add(HttpApiEnd
|
|
|
2064
2245
|
payload: TemplatesPatchWorkspaceRequestJson,
|
|
2065
2246
|
success: TemplatesPatchWorkspace200,
|
|
2066
2247
|
error: [
|
|
2248
|
+
TemplatesPatchWorkspace400.pipe(HttpApiSchema.status(400)),
|
|
2067
2249
|
TemplatesPatchWorkspace401.pipe(HttpApiSchema.status(401)),
|
|
2068
2250
|
TemplatesPatchWorkspace403.pipe(HttpApiSchema.status(403)),
|
|
2069
2251
|
TemplatesPatchWorkspace404.pipe(HttpApiSchema.status(404)),
|
|
@@ -2079,6 +2261,7 @@ var TemplatesGroup = class extends HttpApiGroup.make("Templates").add(HttpApiEnd
|
|
|
2079
2261
|
payload: TemplatesPutWorkspaceAssetRequestJson,
|
|
2080
2262
|
success: TemplatesPutWorkspaceAsset200,
|
|
2081
2263
|
error: [
|
|
2264
|
+
TemplatesPutWorkspaceAsset400.pipe(HttpApiSchema.status(400)),
|
|
2082
2265
|
TemplatesPutWorkspaceAsset401.pipe(HttpApiSchema.status(401)),
|
|
2083
2266
|
TemplatesPutWorkspaceAsset403.pipe(HttpApiSchema.status(403)),
|
|
2084
2267
|
TemplatesPutWorkspaceAsset404.pipe(HttpApiSchema.status(404)),
|
|
@@ -2093,6 +2276,7 @@ var TemplatesGroup = class extends HttpApiGroup.make("Templates").add(HttpApiEnd
|
|
|
2093
2276
|
payload: TemplatesCheckWorkspaceRequestJson,
|
|
2094
2277
|
success: TemplatesCheckWorkspace200,
|
|
2095
2278
|
error: [
|
|
2279
|
+
TemplatesCheckWorkspace400.pipe(HttpApiSchema.status(400)),
|
|
2096
2280
|
TemplatesCheckWorkspace401.pipe(HttpApiSchema.status(401)),
|
|
2097
2281
|
TemplatesCheckWorkspace403.pipe(HttpApiSchema.status(403)),
|
|
2098
2282
|
TemplatesCheckWorkspace404.pipe(HttpApiSchema.status(404)),
|
|
@@ -2108,6 +2292,7 @@ var TemplatesGroup = class extends HttpApiGroup.make("Templates").add(HttpApiEnd
|
|
|
2108
2292
|
payload: TemplatesResolveWorkspaceConflictRequestJson,
|
|
2109
2293
|
success: TemplatesResolveWorkspaceConflict200,
|
|
2110
2294
|
error: [
|
|
2295
|
+
TemplatesResolveWorkspaceConflict400.pipe(HttpApiSchema.status(400)),
|
|
2111
2296
|
TemplatesResolveWorkspaceConflict401.pipe(HttpApiSchema.status(401)),
|
|
2112
2297
|
TemplatesResolveWorkspaceConflict403.pipe(HttpApiSchema.status(403)),
|
|
2113
2298
|
TemplatesResolveWorkspaceConflict404.pipe(HttpApiSchema.status(404)),
|
|
@@ -2122,6 +2307,7 @@ var TemplatesGroup = class extends HttpApiGroup.make("Templates").add(HttpApiEnd
|
|
|
2122
2307
|
payload: TemplatesDiffWorkspaceRequestJson,
|
|
2123
2308
|
success: TemplatesDiffWorkspace200,
|
|
2124
2309
|
error: [
|
|
2310
|
+
TemplatesDiffWorkspace400.pipe(HttpApiSchema.status(400)),
|
|
2125
2311
|
TemplatesDiffWorkspace401.pipe(HttpApiSchema.status(401)),
|
|
2126
2312
|
TemplatesDiffWorkspace403.pipe(HttpApiSchema.status(403)),
|
|
2127
2313
|
TemplatesDiffWorkspace404.pipe(HttpApiSchema.status(404)),
|
|
@@ -2136,6 +2322,7 @@ var TemplatesGroup = class extends HttpApiGroup.make("Templates").add(HttpApiEnd
|
|
|
2136
2322
|
payload: TemplatesRenderWorkspaceFixtureRequestJson,
|
|
2137
2323
|
success: TemplatesRenderWorkspaceFixture200,
|
|
2138
2324
|
error: [
|
|
2325
|
+
TemplatesRenderWorkspaceFixture400.pipe(HttpApiSchema.status(400)),
|
|
2139
2326
|
TemplatesRenderWorkspaceFixture401.pipe(HttpApiSchema.status(401)),
|
|
2140
2327
|
TemplatesRenderWorkspaceFixture403.pipe(HttpApiSchema.status(403)),
|
|
2141
2328
|
TemplatesRenderWorkspaceFixture404.pipe(HttpApiSchema.status(404)),
|
|
@@ -2150,6 +2337,7 @@ var TemplatesGroup = class extends HttpApiGroup.make("Templates").add(HttpApiEnd
|
|
|
2150
2337
|
query: TemplatesWorkspaceHistoryQuery,
|
|
2151
2338
|
success: TemplatesWorkspaceHistory200,
|
|
2152
2339
|
error: [
|
|
2340
|
+
TemplatesWorkspaceHistory400.pipe(HttpApiSchema.status(400)),
|
|
2153
2341
|
TemplatesWorkspaceHistory401.pipe(HttpApiSchema.status(401)),
|
|
2154
2342
|
TemplatesWorkspaceHistory403.pipe(HttpApiSchema.status(403)),
|
|
2155
2343
|
TemplatesWorkspaceHistory404.pipe(HttpApiSchema.status(404)),
|
|
@@ -2165,6 +2353,7 @@ var TemplatesGroup = class extends HttpApiGroup.make("Templates").add(HttpApiEnd
|
|
|
2165
2353
|
payload: TemplatesAttachWorkspaceResourceRequestJson,
|
|
2166
2354
|
success: TemplatesAttachWorkspaceResource200,
|
|
2167
2355
|
error: [
|
|
2356
|
+
TemplatesAttachWorkspaceResource400.pipe(HttpApiSchema.status(400)),
|
|
2168
2357
|
TemplatesAttachWorkspaceResource401.pipe(HttpApiSchema.status(401)),
|
|
2169
2358
|
TemplatesAttachWorkspaceResource403.pipe(HttpApiSchema.status(403)),
|
|
2170
2359
|
TemplatesAttachWorkspaceResource404.pipe(HttpApiSchema.status(404)),
|
|
@@ -2180,6 +2369,7 @@ var TemplatesGroup = class extends HttpApiGroup.make("Templates").add(HttpApiEnd
|
|
|
2180
2369
|
payload: TemplatesRemoveWorkspaceResourceRequestJson,
|
|
2181
2370
|
success: TemplatesRemoveWorkspaceResource200,
|
|
2182
2371
|
error: [
|
|
2372
|
+
TemplatesRemoveWorkspaceResource400.pipe(HttpApiSchema.status(400)),
|
|
2183
2373
|
TemplatesRemoveWorkspaceResource401.pipe(HttpApiSchema.status(401)),
|
|
2184
2374
|
TemplatesRemoveWorkspaceResource403.pipe(HttpApiSchema.status(403)),
|
|
2185
2375
|
TemplatesRemoveWorkspaceResource404.pipe(HttpApiSchema.status(404)),
|
|
@@ -2195,6 +2385,7 @@ var TemplatesGroup = class extends HttpApiGroup.make("Templates").add(HttpApiEnd
|
|
|
2195
2385
|
payload: TemplatesRestoreWorkspaceRequestJson,
|
|
2196
2386
|
success: TemplatesRestoreWorkspace200,
|
|
2197
2387
|
error: [
|
|
2388
|
+
TemplatesRestoreWorkspace400.pipe(HttpApiSchema.status(400)),
|
|
2198
2389
|
TemplatesRestoreWorkspace401.pipe(HttpApiSchema.status(401)),
|
|
2199
2390
|
TemplatesRestoreWorkspace403.pipe(HttpApiSchema.status(403)),
|
|
2200
2391
|
TemplatesRestoreWorkspace404.pipe(HttpApiSchema.status(404)),
|
|
@@ -2210,6 +2401,7 @@ var TemplatesGroup = class extends HttpApiGroup.make("Templates").add(HttpApiEnd
|
|
|
2210
2401
|
payload: TemplatesSaveWorkspaceRequestJson,
|
|
2211
2402
|
success: TemplatesSaveWorkspace200,
|
|
2212
2403
|
error: [
|
|
2404
|
+
TemplatesSaveWorkspace400.pipe(HttpApiSchema.status(400)),
|
|
2213
2405
|
TemplatesSaveWorkspace401.pipe(HttpApiSchema.status(401)),
|
|
2214
2406
|
TemplatesSaveWorkspace403.pipe(HttpApiSchema.status(403)),
|
|
2215
2407
|
TemplatesSaveWorkspace404.pipe(HttpApiSchema.status(404)),
|
|
@@ -2223,6 +2415,7 @@ var TemplatesGroup = class extends HttpApiGroup.make("Templates").add(HttpApiEnd
|
|
|
2223
2415
|
query: TemplatesListFamiliesQuery,
|
|
2224
2416
|
success: TemplatesListFamilies200,
|
|
2225
2417
|
error: [
|
|
2418
|
+
TemplatesListFamilies400.pipe(HttpApiSchema.status(400)),
|
|
2226
2419
|
TemplatesListFamilies401.pipe(HttpApiSchema.status(401)),
|
|
2227
2420
|
TemplatesListFamilies403.pipe(HttpApiSchema.status(403)),
|
|
2228
2421
|
TemplatesListFamilies422.pipe(HttpApiSchema.status(422)),
|
|
@@ -2233,6 +2426,7 @@ var TemplatesGroup = class extends HttpApiGroup.make("Templates").add(HttpApiEnd
|
|
|
2233
2426
|
payload: TemplatesCreateFamilyRequestJson,
|
|
2234
2427
|
success: TemplatesCreateFamily201.pipe(HttpApiSchema.status(201)),
|
|
2235
2428
|
error: [
|
|
2429
|
+
TemplatesCreateFamily400.pipe(HttpApiSchema.status(400)),
|
|
2236
2430
|
TemplatesCreateFamily401.pipe(HttpApiSchema.status(401)),
|
|
2237
2431
|
TemplatesCreateFamily403.pipe(HttpApiSchema.status(403)),
|
|
2238
2432
|
TemplatesCreateFamily422.pipe(HttpApiSchema.status(422)),
|
|
@@ -2243,6 +2437,7 @@ var TemplatesGroup = class extends HttpApiGroup.make("Templates").add(HttpApiEnd
|
|
|
2243
2437
|
params: TemplatesGetFamilyPathParams,
|
|
2244
2438
|
success: TemplatesGetFamily200,
|
|
2245
2439
|
error: [
|
|
2440
|
+
TemplatesGetFamily400.pipe(HttpApiSchema.status(400)),
|
|
2246
2441
|
TemplatesGetFamily401.pipe(HttpApiSchema.status(401)),
|
|
2247
2442
|
TemplatesGetFamily403.pipe(HttpApiSchema.status(403)),
|
|
2248
2443
|
TemplatesGetFamily404.pipe(HttpApiSchema.status(404)),
|
|
@@ -2254,6 +2449,7 @@ var TemplatesGroup = class extends HttpApiGroup.make("Templates").add(HttpApiEnd
|
|
|
2254
2449
|
params: TemplatesDeleteFamilyPathParams,
|
|
2255
2450
|
success: TemplatesDeleteFamily200,
|
|
2256
2451
|
error: [
|
|
2452
|
+
TemplatesDeleteFamily400.pipe(HttpApiSchema.status(400)),
|
|
2257
2453
|
TemplatesDeleteFamily401.pipe(HttpApiSchema.status(401)),
|
|
2258
2454
|
TemplatesDeleteFamily403.pipe(HttpApiSchema.status(403)),
|
|
2259
2455
|
TemplatesDeleteFamily404.pipe(HttpApiSchema.status(404)),
|
|
@@ -2266,6 +2462,7 @@ var TemplatesGroup = class extends HttpApiGroup.make("Templates").add(HttpApiEnd
|
|
|
2266
2462
|
payload: TemplatesRenameFamilyRequestJson,
|
|
2267
2463
|
success: TemplatesRenameFamily200,
|
|
2268
2464
|
error: [
|
|
2465
|
+
TemplatesRenameFamily400.pipe(HttpApiSchema.status(400)),
|
|
2269
2466
|
TemplatesRenameFamily401.pipe(HttpApiSchema.status(401)),
|
|
2270
2467
|
TemplatesRenameFamily403.pipe(HttpApiSchema.status(403)),
|
|
2271
2468
|
TemplatesRenameFamily404.pipe(HttpApiSchema.status(404)),
|
|
@@ -2277,6 +2474,7 @@ var TemplatesGroup = class extends HttpApiGroup.make("Templates").add(HttpApiEnd
|
|
|
2277
2474
|
params: TemplatesAttachFamilyMemberPathParams,
|
|
2278
2475
|
success: TemplatesAttachFamilyMember200,
|
|
2279
2476
|
error: [
|
|
2477
|
+
TemplatesAttachFamilyMember400.pipe(HttpApiSchema.status(400)),
|
|
2280
2478
|
TemplatesAttachFamilyMember401.pipe(HttpApiSchema.status(401)),
|
|
2281
2479
|
TemplatesAttachFamilyMember403.pipe(HttpApiSchema.status(403)),
|
|
2282
2480
|
TemplatesAttachFamilyMember404.pipe(HttpApiSchema.status(404)),
|
|
@@ -2289,6 +2487,7 @@ var TemplatesGroup = class extends HttpApiGroup.make("Templates").add(HttpApiEnd
|
|
|
2289
2487
|
params: TemplatesDetachFamilyMemberPathParams,
|
|
2290
2488
|
success: TemplatesDetachFamilyMember200,
|
|
2291
2489
|
error: [
|
|
2490
|
+
TemplatesDetachFamilyMember400.pipe(HttpApiSchema.status(400)),
|
|
2292
2491
|
TemplatesDetachFamilyMember401.pipe(HttpApiSchema.status(401)),
|
|
2293
2492
|
TemplatesDetachFamilyMember403.pipe(HttpApiSchema.status(403)),
|
|
2294
2493
|
TemplatesDetachFamilyMember404.pipe(HttpApiSchema.status(404)),
|
|
@@ -2302,6 +2501,7 @@ var TemplatesGroup = class extends HttpApiGroup.make("Templates").add(HttpApiEnd
|
|
|
2302
2501
|
payload: TemplatesCreateFamilyFromTemplateRequestJson,
|
|
2303
2502
|
success: TemplatesCreateFamilyFromTemplate201.pipe(HttpApiSchema.status(201)),
|
|
2304
2503
|
error: [
|
|
2504
|
+
TemplatesCreateFamilyFromTemplate400.pipe(HttpApiSchema.status(400)),
|
|
2305
2505
|
TemplatesCreateFamilyFromTemplate401.pipe(HttpApiSchema.status(401)),
|
|
2306
2506
|
TemplatesCreateFamilyFromTemplate403.pipe(HttpApiSchema.status(403)),
|
|
2307
2507
|
TemplatesCreateFamilyFromTemplate404.pipe(HttpApiSchema.status(404)),
|
|
@@ -2315,6 +2515,7 @@ var TemplatesGroup = class extends HttpApiGroup.make("Templates").add(HttpApiEnd
|
|
|
2315
2515
|
payload: TemplatesCreateFromWebsiteRequestJson,
|
|
2316
2516
|
success: TemplatesCreateFromWebsite201.pipe(HttpApiSchema.status(201)),
|
|
2317
2517
|
error: [
|
|
2518
|
+
TemplatesCreateFromWebsite400.pipe(HttpApiSchema.status(400)),
|
|
2318
2519
|
TemplatesCreateFromWebsite401.pipe(HttpApiSchema.status(401)),
|
|
2319
2520
|
TemplatesCreateFromWebsite403.pipe(HttpApiSchema.status(403)),
|
|
2320
2521
|
TemplatesCreateFromWebsite404.pipe(HttpApiSchema.status(404)),
|
|
@@ -2324,11 +2525,25 @@ var TemplatesGroup = class extends HttpApiGroup.make("Templates").add(HttpApiEnd
|
|
|
2324
2525
|
TemplatesCreateFromWebsite503.pipe(HttpApiSchema.status(503)),
|
|
2325
2526
|
TemplatesCreateFromWebsite504.pipe(HttpApiSchema.status(504))
|
|
2326
2527
|
]
|
|
2327
|
-
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "templates.createFromWebsite").annotate(OpenApi.Summary, "Create a template from a website").annotate(OpenApi.Description, "Checks that the website is a public page Samva can read, creates an email template project from Samva's canonical TSX starter, and returns the template with status 201 and the request that makes the template assistant match the site. The assistant runs when the request is sent in the editor; it rebuilds the project's theme and blocks from the site and proposes a brand that applies only after the customer approves it. A 422 names why the site cannot be matched: not a web address, not public, no answer, a missing page, refused automated visits, or not a web page."), HttpApiEndpoint.
|
|
2528
|
+
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "templates.createFromWebsite").annotate(OpenApi.Summary, "Create a template from a website").annotate(OpenApi.Description, "Checks that the website is a public page Samva can read, creates an email template project from Samva's canonical TSX starter, and returns the template with status 201 and the request that makes the template assistant match the site. The assistant runs when the request is sent in the editor; it rebuilds the project's theme and blocks from the site and proposes a brand that applies only after the customer approves it. A 422 names why the site cannot be matched: not a web address, not public, no answer, a missing page, refused automated visits, or not a web page."), HttpApiEndpoint.delete("templatesDeleteProject", "/v1/templates/projects/:id", {
|
|
2529
|
+
params: TemplatesDeleteProjectPathParams,
|
|
2530
|
+
success: TemplatesDeleteProject200,
|
|
2531
|
+
error: [
|
|
2532
|
+
TemplatesDeleteProject400.pipe(HttpApiSchema.status(400)),
|
|
2533
|
+
TemplatesDeleteProject401.pipe(HttpApiSchema.status(401)),
|
|
2534
|
+
TemplatesDeleteProject403.pipe(HttpApiSchema.status(403)),
|
|
2535
|
+
TemplatesDeleteProject404.pipe(HttpApiSchema.status(404)),
|
|
2536
|
+
TemplatesDeleteProject409.pipe(HttpApiSchema.status(409)),
|
|
2537
|
+
TemplatesDeleteProject422.pipe(HttpApiSchema.status(422)),
|
|
2538
|
+
TemplatesDeleteProject500,
|
|
2539
|
+
TemplatesDeleteProject504.pipe(HttpApiSchema.status(504))
|
|
2540
|
+
]
|
|
2541
|
+
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "templates.deleteProject").annotate(OpenApi.Summary, "Permanently delete a template project").annotate(OpenApi.Description, "Permanently deletes the project and every template in it. Refuses with 409 and reference kind/id pairs while any entry or the project is in use. Repository, workspace, conversations, draft assets, publications and previews are removed through durable cleanup. Sent-message history keeps its snapshots. Newsletter issue projects can only be removed through their topic."), HttpApiEndpoint.post("templatesAddEntry", "/v1/templates/projects/:id/entries", {
|
|
2328
2542
|
params: TemplatesAddEntryPathParams,
|
|
2329
2543
|
payload: TemplatesAddEntryRequestJson,
|
|
2330
2544
|
success: TemplatesAddEntry201.pipe(HttpApiSchema.status(201)),
|
|
2331
2545
|
error: [
|
|
2546
|
+
TemplatesAddEntry400.pipe(HttpApiSchema.status(400)),
|
|
2332
2547
|
TemplatesAddEntry401.pipe(HttpApiSchema.status(401)),
|
|
2333
2548
|
TemplatesAddEntry403.pipe(HttpApiSchema.status(403)),
|
|
2334
2549
|
TemplatesAddEntry404.pipe(HttpApiSchema.status(404)),
|
|
@@ -2338,6 +2553,6 @@ var TemplatesGroup = class extends HttpApiGroup.make("Templates").add(HttpApiEnd
|
|
|
2338
2553
|
TemplatesAddEntry504.pipe(HttpApiSchema.status(504))
|
|
2339
2554
|
]
|
|
2340
2555
|
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "templates.addEntry").annotate(OpenApi.Summary, "Add a template entry").annotate(OpenApi.Description, "Registers a `.tsx` file under `templates/` or `emails/` in an existing template project as its own template and returns it with status 201. The file does not need to exist yet; publishing fails until a commit contains it. Repeating the call with the same entry path, name, and slug returns the existing template.")).annotate(OpenApi.Description, "Git-backed email template projects, workspace editing, immutable publications, and delivery defaults") {};
|
|
2341
|
-
export { BrandRenderedFooter, Template, TemplateFamily, TemplateFamilyId, TemplateFamilyMember, TemplateFamilyPage, TemplateFromWebsite, TemplateInputContractPage, TemplatePage, TemplatePublicationBrand, TemplatePublicationRender, TemplateSummary, TemplatesAddEntry201, TemplatesAddEntry401, TemplatesAddEntry403, TemplatesAddEntry404, TemplatesAddEntry409, TemplatesAddEntry422, TemplatesAddEntry500, TemplatesAddEntry504, TemplatesAddEntryPathParams, TemplatesAddEntryRequestJson, TemplatesAttachFamilyMember200, TemplatesAttachFamilyMember401, TemplatesAttachFamilyMember403, TemplatesAttachFamilyMember404, TemplatesAttachFamilyMember409, TemplatesAttachFamilyMember422, TemplatesAttachFamilyMember500, TemplatesAttachFamilyMember504, TemplatesAttachFamilyMemberPathParams, TemplatesAttachWorkspaceResource200, TemplatesAttachWorkspaceResource401, TemplatesAttachWorkspaceResource403, TemplatesAttachWorkspaceResource404, TemplatesAttachWorkspaceResource409, TemplatesAttachWorkspaceResource422, TemplatesAttachWorkspaceResource500, TemplatesAttachWorkspaceResource503, TemplatesAttachWorkspaceResource504, TemplatesAttachWorkspaceResourceHeaders, TemplatesAttachWorkspaceResourcePathParams, TemplatesAttachWorkspaceResourceRequestJson, TemplatesCheckWorkspace200, TemplatesCheckWorkspace401, TemplatesCheckWorkspace403, TemplatesCheckWorkspace404, TemplatesCheckWorkspace409, TemplatesCheckWorkspace422, TemplatesCheckWorkspace500, TemplatesCheckWorkspace503, TemplatesCheckWorkspace504, TemplatesCheckWorkspacePathParams, TemplatesCheckWorkspaceRequestJson, TemplatesCreate201, TemplatesCreate401, TemplatesCreate403, TemplatesCreate404, TemplatesCreate409, TemplatesCreate422, TemplatesCreate500, TemplatesCreate503, TemplatesCreate504, TemplatesCreateFamily201, TemplatesCreateFamily401, TemplatesCreateFamily403, TemplatesCreateFamily422, TemplatesCreateFamily500, TemplatesCreateFamily504, TemplatesCreateFamilyFromTemplate201, TemplatesCreateFamilyFromTemplate401, TemplatesCreateFamilyFromTemplate403, TemplatesCreateFamilyFromTemplate404, TemplatesCreateFamilyFromTemplate409, TemplatesCreateFamilyFromTemplate422, TemplatesCreateFamilyFromTemplate500, TemplatesCreateFamilyFromTemplate504, TemplatesCreateFamilyFromTemplatePathParams, TemplatesCreateFamilyFromTemplateRequestJson, TemplatesCreateFamilyRequestJson, TemplatesCreateFromWebsite201, TemplatesCreateFromWebsite401, TemplatesCreateFromWebsite403, TemplatesCreateFromWebsite404, TemplatesCreateFromWebsite409, TemplatesCreateFromWebsite422, TemplatesCreateFromWebsite500, TemplatesCreateFromWebsite503, TemplatesCreateFromWebsite504, TemplatesCreateFromWebsiteHeaders, TemplatesCreateFromWebsiteRequestJson, TemplatesCreateHeaders, TemplatesCreateRequestJson, TemplatesDeleteFamily200, TemplatesDeleteFamily401, TemplatesDeleteFamily403, TemplatesDeleteFamily404, TemplatesDeleteFamily422, TemplatesDeleteFamily500, TemplatesDeleteFamily504, TemplatesDeleteFamilyPathParams, TemplatesDetachFamilyMember200, TemplatesDetachFamilyMember401, TemplatesDetachFamilyMember403, TemplatesDetachFamilyMember404, TemplatesDetachFamilyMember409, TemplatesDetachFamilyMember422, TemplatesDetachFamilyMember500, TemplatesDetachFamilyMember504, TemplatesDetachFamilyMemberPathParams, TemplatesDiffWorkspace200, TemplatesDiffWorkspace401, TemplatesDiffWorkspace403, TemplatesDiffWorkspace404, TemplatesDiffWorkspace409, TemplatesDiffWorkspace422, TemplatesDiffWorkspace500, TemplatesDiffWorkspace503, TemplatesDiffWorkspace504, TemplatesDiffWorkspacePathParams, TemplatesDiffWorkspaceRequestJson, TemplatesGetById200, TemplatesGetById401, TemplatesGetById403, TemplatesGetById404, TemplatesGetById422, TemplatesGetById500, TemplatesGetById504, TemplatesGetByIdPathParams, TemplatesGetFamily200, TemplatesGetFamily401, TemplatesGetFamily403, TemplatesGetFamily404, TemplatesGetFamily422, TemplatesGetFamily500, TemplatesGetFamily504, TemplatesGetFamilyPathParams, TemplatesGetGitRepository200, TemplatesGetGitRepository401, TemplatesGetGitRepository403, TemplatesGetGitRepository404, TemplatesGetGitRepository409, TemplatesGetGitRepository422, TemplatesGetGitRepository500, TemplatesGetGitRepository503, TemplatesGetGitRepository504, TemplatesGetGitRepositoryPathParams, TemplatesGetInputContract200, TemplatesGetInputContract401, TemplatesGetInputContract403, TemplatesGetInputContract404, TemplatesGetInputContract422, TemplatesGetInputContract500, TemplatesGetInputContract504, TemplatesGetInputContractPathParams, TemplatesGetPublication200, TemplatesGetPublication401, TemplatesGetPublication403, TemplatesGetPublication404, TemplatesGetPublication422, TemplatesGetPublication500, TemplatesGetPublication504, TemplatesGetPublicationPathParams, TemplatesGroup, TemplatesIssueGitCredential200, TemplatesIssueGitCredential401, TemplatesIssueGitCredential403, TemplatesIssueGitCredential404, TemplatesIssueGitCredential409, TemplatesIssueGitCredential422, TemplatesIssueGitCredential500, TemplatesIssueGitCredential503, TemplatesIssueGitCredential504, TemplatesIssueGitCredentialPathParams, TemplatesIssueGitCredentialRequestJson, TemplatesList200, TemplatesList401, TemplatesList403, TemplatesList422, TemplatesList500, TemplatesList504, TemplatesListFamilies200, TemplatesListFamilies401, TemplatesListFamilies403, TemplatesListFamilies422, TemplatesListFamilies500, TemplatesListFamilies504, TemplatesListFamiliesQuery, TemplatesListInputContracts200, TemplatesListInputContracts401, TemplatesListInputContracts403, TemplatesListInputContracts404, TemplatesListInputContracts422, TemplatesListInputContracts500, TemplatesListInputContracts504, TemplatesListInputContractsPathParams, TemplatesListInputContractsQuery, TemplatesListQuery, TemplatesOpenWorkspace200, TemplatesOpenWorkspace401, TemplatesOpenWorkspace403, TemplatesOpenWorkspace404, TemplatesOpenWorkspace409, TemplatesOpenWorkspace422, TemplatesOpenWorkspace500, TemplatesOpenWorkspace503, TemplatesOpenWorkspace504, TemplatesOpenWorkspacePathParams, TemplatesPatchWorkspace200, TemplatesPatchWorkspace401, TemplatesPatchWorkspace403, TemplatesPatchWorkspace404, TemplatesPatchWorkspace409, TemplatesPatchWorkspace422, TemplatesPatchWorkspace500, TemplatesPatchWorkspace503, TemplatesPatchWorkspace504, TemplatesPatchWorkspaceHeaders, TemplatesPatchWorkspacePathParams, TemplatesPatchWorkspaceRequestJson, TemplatesPublish201, TemplatesPublish401, TemplatesPublish403, TemplatesPublish404, TemplatesPublish409, TemplatesPublish422, TemplatesPublish500, TemplatesPublish503, TemplatesPublish504, TemplatesPublishPathParams, TemplatesPublishRequestJson, TemplatesPutWorkspaceAsset200, TemplatesPutWorkspaceAsset401, TemplatesPutWorkspaceAsset403, TemplatesPutWorkspaceAsset404, TemplatesPutWorkspaceAsset409, TemplatesPutWorkspaceAsset422, TemplatesPutWorkspaceAsset500, TemplatesPutWorkspaceAsset503, TemplatesPutWorkspaceAsset504, TemplatesPutWorkspaceAssetHeaders, TemplatesPutWorkspaceAssetPathParams, TemplatesPutWorkspaceAssetRequestJson, TemplatesRemove200, TemplatesRemove401, TemplatesRemove403, TemplatesRemove404, TemplatesRemove422, TemplatesRemove500, TemplatesRemove504, TemplatesRemovePathParams, TemplatesRemoveWorkspaceResource200, TemplatesRemoveWorkspaceResource401, TemplatesRemoveWorkspaceResource403, TemplatesRemoveWorkspaceResource404, TemplatesRemoveWorkspaceResource409, TemplatesRemoveWorkspaceResource422, TemplatesRemoveWorkspaceResource500, TemplatesRemoveWorkspaceResource503, TemplatesRemoveWorkspaceResource504, TemplatesRemoveWorkspaceResourceHeaders, TemplatesRemoveWorkspaceResourcePathParams, TemplatesRemoveWorkspaceResourceRequestJson, TemplatesRenameFamily200, TemplatesRenameFamily401, TemplatesRenameFamily403, TemplatesRenameFamily404, TemplatesRenameFamily422, TemplatesRenameFamily500, TemplatesRenameFamily504, TemplatesRenameFamilyPathParams, TemplatesRenameFamilyRequestJson, TemplatesRenderPublication200, TemplatesRenderPublication401, TemplatesRenderPublication403, TemplatesRenderPublication404, TemplatesRenderPublication409, TemplatesRenderPublication422, TemplatesRenderPublication500, TemplatesRenderPublication504, TemplatesRenderPublicationPathParams, TemplatesRenderPublicationRequestJson, TemplatesRenderWorkspaceFixture200, TemplatesRenderWorkspaceFixture401, TemplatesRenderWorkspaceFixture403, TemplatesRenderWorkspaceFixture404, TemplatesRenderWorkspaceFixture409, TemplatesRenderWorkspaceFixture422, TemplatesRenderWorkspaceFixture500, TemplatesRenderWorkspaceFixture503, TemplatesRenderWorkspaceFixture504, TemplatesRenderWorkspaceFixturePathParams, TemplatesRenderWorkspaceFixtureRequestJson, TemplatesResolveWorkspaceConflict200, TemplatesResolveWorkspaceConflict401, TemplatesResolveWorkspaceConflict403, TemplatesResolveWorkspaceConflict404, TemplatesResolveWorkspaceConflict409, TemplatesResolveWorkspaceConflict422, TemplatesResolveWorkspaceConflict500, TemplatesResolveWorkspaceConflict503, TemplatesResolveWorkspaceConflict504, TemplatesResolveWorkspaceConflictHeaders, TemplatesResolveWorkspaceConflictPathParams, TemplatesResolveWorkspaceConflictRequestJson, TemplatesRestoreWorkspace200, TemplatesRestoreWorkspace401, TemplatesRestoreWorkspace403, TemplatesRestoreWorkspace404, TemplatesRestoreWorkspace409, TemplatesRestoreWorkspace422, TemplatesRestoreWorkspace500, TemplatesRestoreWorkspace503, TemplatesRestoreWorkspace504, TemplatesRestoreWorkspaceHeaders, TemplatesRestoreWorkspacePathParams, TemplatesRestoreWorkspaceRequestJson, TemplatesSaveWorkspace200, TemplatesSaveWorkspace401, TemplatesSaveWorkspace403, TemplatesSaveWorkspace404, TemplatesSaveWorkspace409, TemplatesSaveWorkspace422, TemplatesSaveWorkspace500, TemplatesSaveWorkspace503, TemplatesSaveWorkspace504, TemplatesSaveWorkspaceHeaders, TemplatesSaveWorkspacePathParams, TemplatesSaveWorkspaceRequestJson, TemplatesUpdate200, TemplatesUpdate401, TemplatesUpdate403, TemplatesUpdate404, TemplatesUpdate409, TemplatesUpdate422, TemplatesUpdate500, TemplatesUpdate504, TemplatesUpdatePathParams, TemplatesUpdateRequestJson, TemplatesWorkspaceHistory200, TemplatesWorkspaceHistory401, TemplatesWorkspaceHistory403, TemplatesWorkspaceHistory404, TemplatesWorkspaceHistory409, TemplatesWorkspaceHistory422, TemplatesWorkspaceHistory500, TemplatesWorkspaceHistory503, TemplatesWorkspaceHistory504, TemplatesWorkspaceHistoryPathParams, TemplatesWorkspaceHistoryQuery };
|
|
2556
|
+
export { BrandRenderedFooter, Template, TemplateFamily, TemplateFamilyId, TemplateFamilyMember, TemplateFamilyPage, TemplateFromWebsite, TemplateInputContractPage, TemplatePage, TemplatePublicationBrand, TemplatePublicationRender, TemplateSummary, TemplatesAddEntry201, TemplatesAddEntry400, TemplatesAddEntry401, TemplatesAddEntry403, TemplatesAddEntry404, TemplatesAddEntry409, TemplatesAddEntry422, TemplatesAddEntry500, TemplatesAddEntry504, TemplatesAddEntryPathParams, TemplatesAddEntryRequestJson, TemplatesAttachFamilyMember200, TemplatesAttachFamilyMember400, TemplatesAttachFamilyMember401, TemplatesAttachFamilyMember403, TemplatesAttachFamilyMember404, TemplatesAttachFamilyMember409, TemplatesAttachFamilyMember422, TemplatesAttachFamilyMember500, TemplatesAttachFamilyMember504, TemplatesAttachFamilyMemberPathParams, TemplatesAttachWorkspaceResource200, TemplatesAttachWorkspaceResource400, TemplatesAttachWorkspaceResource401, TemplatesAttachWorkspaceResource403, TemplatesAttachWorkspaceResource404, TemplatesAttachWorkspaceResource409, TemplatesAttachWorkspaceResource422, TemplatesAttachWorkspaceResource500, TemplatesAttachWorkspaceResource503, TemplatesAttachWorkspaceResource504, TemplatesAttachWorkspaceResourceHeaders, TemplatesAttachWorkspaceResourcePathParams, TemplatesAttachWorkspaceResourceRequestJson, TemplatesCheckWorkspace200, TemplatesCheckWorkspace400, TemplatesCheckWorkspace401, TemplatesCheckWorkspace403, TemplatesCheckWorkspace404, TemplatesCheckWorkspace409, TemplatesCheckWorkspace422, TemplatesCheckWorkspace500, TemplatesCheckWorkspace503, TemplatesCheckWorkspace504, TemplatesCheckWorkspacePathParams, TemplatesCheckWorkspaceRequestJson, TemplatesCreate201, TemplatesCreate400, TemplatesCreate401, TemplatesCreate403, TemplatesCreate404, TemplatesCreate409, TemplatesCreate422, TemplatesCreate500, TemplatesCreate503, TemplatesCreate504, TemplatesCreateFamily201, TemplatesCreateFamily400, TemplatesCreateFamily401, TemplatesCreateFamily403, TemplatesCreateFamily422, TemplatesCreateFamily500, TemplatesCreateFamily504, TemplatesCreateFamilyFromTemplate201, TemplatesCreateFamilyFromTemplate400, TemplatesCreateFamilyFromTemplate401, TemplatesCreateFamilyFromTemplate403, TemplatesCreateFamilyFromTemplate404, TemplatesCreateFamilyFromTemplate409, TemplatesCreateFamilyFromTemplate422, TemplatesCreateFamilyFromTemplate500, TemplatesCreateFamilyFromTemplate504, TemplatesCreateFamilyFromTemplatePathParams, TemplatesCreateFamilyFromTemplateRequestJson, TemplatesCreateFamilyRequestJson, TemplatesCreateFromWebsite201, TemplatesCreateFromWebsite400, TemplatesCreateFromWebsite401, TemplatesCreateFromWebsite403, TemplatesCreateFromWebsite404, TemplatesCreateFromWebsite409, TemplatesCreateFromWebsite422, TemplatesCreateFromWebsite500, TemplatesCreateFromWebsite503, TemplatesCreateFromWebsite504, TemplatesCreateFromWebsiteHeaders, TemplatesCreateFromWebsiteRequestJson, TemplatesCreateHeaders, TemplatesCreateRequestJson, TemplatesDelete200, TemplatesDelete400, TemplatesDelete401, TemplatesDelete403, TemplatesDelete404, TemplatesDelete409, TemplatesDelete422, TemplatesDelete500, TemplatesDelete504, TemplatesDeleteFamily200, TemplatesDeleteFamily400, TemplatesDeleteFamily401, TemplatesDeleteFamily403, TemplatesDeleteFamily404, TemplatesDeleteFamily422, TemplatesDeleteFamily500, TemplatesDeleteFamily504, TemplatesDeleteFamilyPathParams, TemplatesDeletePathParams, TemplatesDeleteProject200, TemplatesDeleteProject400, TemplatesDeleteProject401, TemplatesDeleteProject403, TemplatesDeleteProject404, TemplatesDeleteProject409, TemplatesDeleteProject422, TemplatesDeleteProject500, TemplatesDeleteProject504, TemplatesDeleteProjectPathParams, TemplatesDetachFamilyMember200, TemplatesDetachFamilyMember400, TemplatesDetachFamilyMember401, TemplatesDetachFamilyMember403, TemplatesDetachFamilyMember404, TemplatesDetachFamilyMember409, TemplatesDetachFamilyMember422, TemplatesDetachFamilyMember500, TemplatesDetachFamilyMember504, TemplatesDetachFamilyMemberPathParams, TemplatesDiffWorkspace200, TemplatesDiffWorkspace400, TemplatesDiffWorkspace401, TemplatesDiffWorkspace403, TemplatesDiffWorkspace404, TemplatesDiffWorkspace409, TemplatesDiffWorkspace422, TemplatesDiffWorkspace500, TemplatesDiffWorkspace503, TemplatesDiffWorkspace504, TemplatesDiffWorkspacePathParams, TemplatesDiffWorkspaceRequestJson, TemplatesGetById200, TemplatesGetById400, TemplatesGetById401, TemplatesGetById403, TemplatesGetById404, TemplatesGetById422, TemplatesGetById500, TemplatesGetById504, TemplatesGetByIdPathParams, TemplatesGetFamily200, TemplatesGetFamily400, TemplatesGetFamily401, TemplatesGetFamily403, TemplatesGetFamily404, TemplatesGetFamily422, TemplatesGetFamily500, TemplatesGetFamily504, TemplatesGetFamilyPathParams, TemplatesGetGitRepository200, TemplatesGetGitRepository400, TemplatesGetGitRepository401, TemplatesGetGitRepository403, TemplatesGetGitRepository404, TemplatesGetGitRepository409, TemplatesGetGitRepository422, TemplatesGetGitRepository500, TemplatesGetGitRepository503, TemplatesGetGitRepository504, TemplatesGetGitRepositoryPathParams, TemplatesGetInputContract200, TemplatesGetInputContract400, TemplatesGetInputContract401, TemplatesGetInputContract403, TemplatesGetInputContract404, TemplatesGetInputContract422, TemplatesGetInputContract500, TemplatesGetInputContract504, TemplatesGetInputContractPathParams, TemplatesGetPublication200, TemplatesGetPublication400, TemplatesGetPublication401, TemplatesGetPublication403, TemplatesGetPublication404, TemplatesGetPublication422, TemplatesGetPublication500, TemplatesGetPublication504, TemplatesGetPublicationPathParams, TemplatesGroup, TemplatesIssueGitCredential200, TemplatesIssueGitCredential400, TemplatesIssueGitCredential401, TemplatesIssueGitCredential403, TemplatesIssueGitCredential404, TemplatesIssueGitCredential409, TemplatesIssueGitCredential422, TemplatesIssueGitCredential500, TemplatesIssueGitCredential503, TemplatesIssueGitCredential504, TemplatesIssueGitCredentialPathParams, TemplatesIssueGitCredentialRequestJson, TemplatesList200, TemplatesList400, TemplatesList401, TemplatesList403, TemplatesList422, TemplatesList500, TemplatesList504, TemplatesListFamilies200, TemplatesListFamilies400, TemplatesListFamilies401, TemplatesListFamilies403, TemplatesListFamilies422, TemplatesListFamilies500, TemplatesListFamilies504, TemplatesListFamiliesQuery, TemplatesListInputContracts200, TemplatesListInputContracts400, TemplatesListInputContracts401, TemplatesListInputContracts403, TemplatesListInputContracts404, TemplatesListInputContracts422, TemplatesListInputContracts500, TemplatesListInputContracts504, TemplatesListInputContractsPathParams, TemplatesListInputContractsQuery, TemplatesListQuery, TemplatesOpenWorkspace200, TemplatesOpenWorkspace400, TemplatesOpenWorkspace401, TemplatesOpenWorkspace403, TemplatesOpenWorkspace404, TemplatesOpenWorkspace409, TemplatesOpenWorkspace422, TemplatesOpenWorkspace500, TemplatesOpenWorkspace503, TemplatesOpenWorkspace504, TemplatesOpenWorkspacePathParams, TemplatesPatchWorkspace200, TemplatesPatchWorkspace400, TemplatesPatchWorkspace401, TemplatesPatchWorkspace403, TemplatesPatchWorkspace404, TemplatesPatchWorkspace409, TemplatesPatchWorkspace422, TemplatesPatchWorkspace500, TemplatesPatchWorkspace503, TemplatesPatchWorkspace504, TemplatesPatchWorkspaceHeaders, TemplatesPatchWorkspacePathParams, TemplatesPatchWorkspaceRequestJson, TemplatesPublish201, TemplatesPublish400, TemplatesPublish401, TemplatesPublish403, TemplatesPublish404, TemplatesPublish409, TemplatesPublish422, TemplatesPublish500, TemplatesPublish503, TemplatesPublish504, TemplatesPublishPathParams, TemplatesPublishRequestJson, TemplatesPutWorkspaceAsset200, TemplatesPutWorkspaceAsset400, TemplatesPutWorkspaceAsset401, TemplatesPutWorkspaceAsset403, TemplatesPutWorkspaceAsset404, TemplatesPutWorkspaceAsset409, TemplatesPutWorkspaceAsset422, TemplatesPutWorkspaceAsset500, TemplatesPutWorkspaceAsset503, TemplatesPutWorkspaceAsset504, TemplatesPutWorkspaceAssetHeaders, TemplatesPutWorkspaceAssetPathParams, TemplatesPutWorkspaceAssetRequestJson, TemplatesRemoveWorkspaceResource200, TemplatesRemoveWorkspaceResource400, TemplatesRemoveWorkspaceResource401, TemplatesRemoveWorkspaceResource403, TemplatesRemoveWorkspaceResource404, TemplatesRemoveWorkspaceResource409, TemplatesRemoveWorkspaceResource422, TemplatesRemoveWorkspaceResource500, TemplatesRemoveWorkspaceResource503, TemplatesRemoveWorkspaceResource504, TemplatesRemoveWorkspaceResourceHeaders, TemplatesRemoveWorkspaceResourcePathParams, TemplatesRemoveWorkspaceResourceRequestJson, TemplatesRenameFamily200, TemplatesRenameFamily400, TemplatesRenameFamily401, TemplatesRenameFamily403, TemplatesRenameFamily404, TemplatesRenameFamily422, TemplatesRenameFamily500, TemplatesRenameFamily504, TemplatesRenameFamilyPathParams, TemplatesRenameFamilyRequestJson, TemplatesRenderPublication200, TemplatesRenderPublication400, TemplatesRenderPublication401, TemplatesRenderPublication403, TemplatesRenderPublication404, TemplatesRenderPublication409, TemplatesRenderPublication422, TemplatesRenderPublication500, TemplatesRenderPublication504, TemplatesRenderPublicationPathParams, TemplatesRenderPublicationRequestJson, TemplatesRenderWorkspaceFixture200, TemplatesRenderWorkspaceFixture400, TemplatesRenderWorkspaceFixture401, TemplatesRenderWorkspaceFixture403, TemplatesRenderWorkspaceFixture404, TemplatesRenderWorkspaceFixture409, TemplatesRenderWorkspaceFixture422, TemplatesRenderWorkspaceFixture500, TemplatesRenderWorkspaceFixture503, TemplatesRenderWorkspaceFixture504, TemplatesRenderWorkspaceFixturePathParams, TemplatesRenderWorkspaceFixtureRequestJson, TemplatesResolveWorkspaceConflict200, TemplatesResolveWorkspaceConflict400, TemplatesResolveWorkspaceConflict401, TemplatesResolveWorkspaceConflict403, TemplatesResolveWorkspaceConflict404, TemplatesResolveWorkspaceConflict409, TemplatesResolveWorkspaceConflict422, TemplatesResolveWorkspaceConflict500, TemplatesResolveWorkspaceConflict503, TemplatesResolveWorkspaceConflict504, TemplatesResolveWorkspaceConflictHeaders, TemplatesResolveWorkspaceConflictPathParams, TemplatesResolveWorkspaceConflictRequestJson, TemplatesRestoreWorkspace200, TemplatesRestoreWorkspace400, TemplatesRestoreWorkspace401, TemplatesRestoreWorkspace403, TemplatesRestoreWorkspace404, TemplatesRestoreWorkspace409, TemplatesRestoreWorkspace422, TemplatesRestoreWorkspace500, TemplatesRestoreWorkspace503, TemplatesRestoreWorkspace504, TemplatesRestoreWorkspaceHeaders, TemplatesRestoreWorkspacePathParams, TemplatesRestoreWorkspaceRequestJson, TemplatesSaveWorkspace200, TemplatesSaveWorkspace400, TemplatesSaveWorkspace401, TemplatesSaveWorkspace403, TemplatesSaveWorkspace404, TemplatesSaveWorkspace409, TemplatesSaveWorkspace422, TemplatesSaveWorkspace500, TemplatesSaveWorkspace503, TemplatesSaveWorkspace504, TemplatesSaveWorkspaceHeaders, TemplatesSaveWorkspacePathParams, TemplatesSaveWorkspaceRequestJson, TemplatesUpdate200, TemplatesUpdate400, TemplatesUpdate401, TemplatesUpdate403, TemplatesUpdate404, TemplatesUpdate409, TemplatesUpdate422, TemplatesUpdate500, TemplatesUpdate504, TemplatesUpdatePathParams, TemplatesUpdateRequestJson, TemplatesWorkspaceHistory200, TemplatesWorkspaceHistory400, TemplatesWorkspaceHistory401, TemplatesWorkspaceHistory403, TemplatesWorkspaceHistory404, TemplatesWorkspaceHistory409, TemplatesWorkspaceHistory422, TemplatesWorkspaceHistory500, TemplatesWorkspaceHistory503, TemplatesWorkspaceHistory504, TemplatesWorkspaceHistoryPathParams, TemplatesWorkspaceHistoryQuery, WhatsAppTemplateButton, WhatsAppTemplateComponent };
|
|
2342
2557
|
|
|
2343
2558
|
//# sourceMappingURL=templates.js.map
|