samva 0.34.0 → 0.35.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/README.md +1 -1
- package/dist/client/sdk.gen.d.ts +224 -250
- package/dist/client/sdk.gen.js +84 -210
- package/dist/client/types.gen.d.ts +2894 -401
- package/dist/effect/agents.d.ts +28 -13
- package/dist/effect/agents.js +5 -1
- package/dist/effect/analytics.d.ts +15 -15
- package/dist/effect/api-keys.d.ts +27 -18
- package/dist/effect/campaigns.d.ts +721 -65
- 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 +45 -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 +11 -11
- package/dist/effect/extensions.d.ts +16 -16
- package/dist/effect/generated/agents.d.ts +1063 -33
- package/dist/effect/generated/agents.js +133 -11
- package/dist/effect/generated/analytics.d.ts +109 -136
- package/dist/effect/generated/analytics.js +65 -36
- package/dist/effect/generated/api-keys.d.ts +240 -19
- package/dist/effect/generated/api-keys.js +24 -8
- 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 +1442 -140
- package/dist/effect/generated/campaigns.js +82 -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 +398 -106
- package/dist/effect/generated/conversations.js +96 -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 +208 -10
- package/dist/effect/generated/extension-installations.js +26 -8
- 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/journeys.d.ts +684 -16
- package/dist/effect/generated/journeys.js +37 -9
- package/dist/effect/generated/mailboxes.d.ts +3085 -627
- package/dist/effect/generated/mailboxes.js +340 -141
- 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 +209 -25
- package/dist/effect/generated/namespaces.js +27 -9
- 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/scheduled-messages.d.ts +4427 -99
- package/dist/effect/generated/scheduled-messages.js +71 -12
- package/dist/effect/generated/shared.d.ts +2213 -190
- package/dist/effect/generated/shared.js +527 -76
- package/dist/effect/generated/subscriptions.d.ts +23 -1
- package/dist/effect/generated/subscriptions.js +6 -4
- package/dist/effect/generated/templates.d.ts +1718 -136
- package/dist/effect/generated/templates.js +421 -226
- 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 +296 -38
- package/dist/effect/generated/webhooks.js +58 -16
- package/dist/effect/generated/whoami.d.ts +35 -1
- package/dist/effect/generated/whoami.js +4 -2
- package/dist/effect/generated-metadata.d.ts +20 -0
- package/dist/effect/generated-metadata.js +10 -0
- package/dist/effect/index.js +2 -2
- package/dist/effect/internal/client.js +1 -1
- package/dist/effect/internal/email-sender.d.ts +1 -1
- package/dist/effect/internal/send.d.ts +1 -1
- package/dist/effect/journeys.d.ts +105 -19
- package/dist/effect/mailboxes.d.ts +405 -174
- 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/scheduled-messages.d.ts +863 -8
- package/dist/effect/templates.d.ts +37 -37
- package/dist/effect/topics.d.ts +21 -21
- package/dist/effect/webhooks.d.ts +22 -22
- package/dist/index.js +2 -2
- package/dist/normalize.js +13 -1
- package/dist/package.js +1 -1
- package/dist/promises/client.d.ts +1 -1
- package/dist/promises/client.js +2 -2
- package/dist/promises/errors.gen.d.ts +22 -2
- package/dist/promises/errors.gen.js +60 -2
- package/dist/promises/index.js +2 -2
- package/dist/promises/types.gen.d.ts +1 -1
- package/dist/service-map.d.ts +9 -0
- package/dist/service-map.js +5 -0
- package/package.json +9 -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, 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"),
|
|
@@ -55,11 +87,15 @@ const TemplateSummary = /* @__PURE__ */ (() => Schema.Struct({
|
|
|
55
87
|
id: TemplateId,
|
|
56
88
|
slug: Schema.String,
|
|
57
89
|
name: Schema.String,
|
|
58
|
-
channel: Schema.
|
|
90
|
+
channel: Schema.Union([
|
|
91
|
+
Schema.Literal("sms"),
|
|
92
|
+
Schema.Literal("whatsapp"),
|
|
93
|
+
Schema.Literal("email")
|
|
94
|
+
]),
|
|
59
95
|
projectId: TemplateProjectId,
|
|
60
96
|
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
97
|
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(
|
|
98
|
+
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
99
|
status: Schema.Union([
|
|
64
100
|
Schema.Literal("draft"),
|
|
65
101
|
Schema.Literal("pending"),
|
|
@@ -77,15 +113,51 @@ const TemplateSummary = /* @__PURE__ */ (() => Schema.Struct({
|
|
|
77
113
|
createdAt: Schema.String,
|
|
78
114
|
updatedAt: Schema.String
|
|
79
115
|
}).annotate({ identifier: "TemplateSummary" }))();
|
|
116
|
+
const WhatsAppTemplateComponent = /* @__PURE__ */ (() => Schema.Union([
|
|
117
|
+
Schema.Struct({
|
|
118
|
+
type: Schema.Literal("HEADER"),
|
|
119
|
+
format: Schema.Literal("TEXT"),
|
|
120
|
+
text: Schema.String,
|
|
121
|
+
example: Schema.optionalKey(Schema.Struct({ header_text: Schema.Array(Schema.String) }))
|
|
122
|
+
}),
|
|
123
|
+
Schema.Struct({
|
|
124
|
+
type: Schema.Literal("BODY"),
|
|
125
|
+
text: Schema.String,
|
|
126
|
+
example: Schema.optionalKey(Schema.Struct({ body_text: Schema.Array(Schema.Array(Schema.String)) }))
|
|
127
|
+
}),
|
|
128
|
+
Schema.Struct({
|
|
129
|
+
type: Schema.Literal("FOOTER"),
|
|
130
|
+
text: Schema.String
|
|
131
|
+
}),
|
|
132
|
+
Schema.Struct({
|
|
133
|
+
type: Schema.Literal("BUTTONS"),
|
|
134
|
+
buttons: Schema.Array(WhatsAppTemplateButton)
|
|
135
|
+
})
|
|
136
|
+
]).annotate({ identifier: "WhatsAppTemplateComponent" }))();
|
|
137
|
+
const TemplateFamily = /* @__PURE__ */ (() => Schema.Struct({
|
|
138
|
+
id: TemplateFamilyId,
|
|
139
|
+
name: Schema.String,
|
|
140
|
+
members: Schema.Array(TemplateFamilyMember),
|
|
141
|
+
createdAt: Schema.String,
|
|
142
|
+
updatedAt: Schema.String
|
|
143
|
+
}).annotate({ identifier: "TemplateFamily" }))();
|
|
144
|
+
const TemplatePage = /* @__PURE__ */ (() => Schema.Struct({
|
|
145
|
+
items: Schema.Array(TemplateSummary),
|
|
146
|
+
nextCursor: Schema.Union([Schema.String, Schema.Null])
|
|
147
|
+
}).annotate({ identifier: "TemplatePage" }))();
|
|
80
148
|
const Template = /* @__PURE__ */ (() => Schema.Struct({
|
|
81
149
|
id: TemplateId,
|
|
82
150
|
slug: Schema.String,
|
|
83
151
|
name: Schema.String,
|
|
84
|
-
channel: Schema.
|
|
152
|
+
channel: Schema.Union([
|
|
153
|
+
Schema.Literal("sms"),
|
|
154
|
+
Schema.Literal("whatsapp"),
|
|
155
|
+
Schema.Literal("email")
|
|
156
|
+
]),
|
|
85
157
|
projectId: TemplateProjectId,
|
|
86
158
|
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
159
|
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(
|
|
160
|
+
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
161
|
status: Schema.Union([
|
|
90
162
|
Schema.Literal("draft"),
|
|
91
163
|
Schema.Literal("pending"),
|
|
@@ -120,21 +192,34 @@ const Template = /* @__PURE__ */ (() => Schema.Struct({
|
|
|
120
192
|
preheader: Schema.Union([Schema.String, Schema.Null]),
|
|
121
193
|
headers: Schema.Union([Schema.Record(Schema.String, Schema.String), Schema.Null])
|
|
122
194
|
}), Schema.Null]),
|
|
195
|
+
sms: Schema.Union([Schema.Struct({
|
|
196
|
+
body: Schema.String,
|
|
197
|
+
encoding: Schema.Union([Schema.String, Schema.Null]),
|
|
198
|
+
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]),
|
|
199
|
+
category: Schema.Union([Schema.Union([
|
|
200
|
+
Schema.Literal("transactional"),
|
|
201
|
+
Schema.Literal("promotional"),
|
|
202
|
+
Schema.Literal("service_implicit")
|
|
203
|
+
]), Schema.Null])
|
|
204
|
+
}), Schema.Null]),
|
|
205
|
+
whatsapp: Schema.Union([Schema.Struct({
|
|
206
|
+
name: Schema.String,
|
|
207
|
+
language: Schema.String,
|
|
208
|
+
category: Schema.Union([
|
|
209
|
+
Schema.Literal("marketing"),
|
|
210
|
+
Schema.Literal("utility"),
|
|
211
|
+
Schema.Literal("authentication")
|
|
212
|
+
]),
|
|
213
|
+
components: Schema.Array(WhatsAppTemplateComponent)
|
|
214
|
+
}), Schema.Null]),
|
|
123
215
|
publicationId: Schema.Union([TemplatePublicationId, Schema.Null]),
|
|
124
216
|
inputContractId: Schema.Union([TemplateInputContractId, Schema.Null]),
|
|
125
217
|
inputSchema: Schema.Union([Schema.Record(Schema.String, JsonValue), Schema.Null])
|
|
126
218
|
}).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),
|
|
219
|
+
const TemplateFamilyPage = /* @__PURE__ */ (() => Schema.Struct({
|
|
220
|
+
items: Schema.Array(TemplateFamily),
|
|
136
221
|
nextCursor: Schema.Union([Schema.String, Schema.Null])
|
|
137
|
-
}).annotate({ identifier: "
|
|
222
|
+
}).annotate({ identifier: "TemplateFamilyPage" }))();
|
|
138
223
|
const TemplateFromWebsite = /* @__PURE__ */ (() => Schema.Struct({
|
|
139
224
|
template: Template,
|
|
140
225
|
website: Schema.Struct({
|
|
@@ -143,14 +228,10 @@ const TemplateFromWebsite = /* @__PURE__ */ (() => Schema.Struct({
|
|
|
143
228
|
}),
|
|
144
229
|
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
230
|
}).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
231
|
const TemplatesListQuery = /* @__PURE__ */ (() => Schema.Struct({
|
|
151
232
|
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([
|
|
233
|
+
cursor: Schema.optionalKey(Schema.String),
|
|
234
|
+
category: Schema.optionalKey(Schema.Union([
|
|
154
235
|
Schema.Literal("transactional"),
|
|
155
236
|
Schema.Literal("marketing"),
|
|
156
237
|
Schema.Literal("support"),
|
|
@@ -158,22 +239,27 @@ const TemplatesListQuery = /* @__PURE__ */ (() => Schema.Struct({
|
|
|
158
239
|
Schema.Literal("verification"),
|
|
159
240
|
Schema.Literal("reminder"),
|
|
160
241
|
Schema.Literal("alert")
|
|
161
|
-
])
|
|
162
|
-
channel: Schema.optionalKey(Schema.Union([
|
|
163
|
-
|
|
242
|
+
])),
|
|
243
|
+
channel: Schema.optionalKey(Schema.Union([
|
|
244
|
+
Schema.Literal("sms"),
|
|
245
|
+
Schema.Literal("whatsapp"),
|
|
246
|
+
Schema.Literal("email")
|
|
247
|
+
])),
|
|
248
|
+
status: Schema.optionalKey(Schema.Union([
|
|
164
249
|
Schema.Literal("draft"),
|
|
165
250
|
Schema.Literal("pending"),
|
|
166
251
|
Schema.Literal("approved"),
|
|
167
252
|
Schema.Literal("published"),
|
|
168
253
|
Schema.Literal("rejected"),
|
|
169
254
|
Schema.Literal("archived")
|
|
170
|
-
])
|
|
171
|
-
search: Schema.optionalKey(Schema.
|
|
172
|
-
projectId: Schema.optionalKey(
|
|
173
|
-
namespaceId: Schema.optionalKey(Schema.Union([NamespaceId
|
|
255
|
+
])),
|
|
256
|
+
search: Schema.optionalKey(Schema.String),
|
|
257
|
+
projectId: Schema.optionalKey(TemplateProjectId),
|
|
258
|
+
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
259
|
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
260
|
}))();
|
|
176
261
|
const TemplatesList200 = TemplatePage;
|
|
262
|
+
const TemplatesList400 = MalformedRequestError;
|
|
177
263
|
const TemplatesList401 = UnauthorizedError;
|
|
178
264
|
const TemplatesList403 = ForbiddenError;
|
|
179
265
|
const TemplatesList422 = ValidationError;
|
|
@@ -183,7 +269,7 @@ const TemplatesCreateHeaders = /* @__PURE__ */ (() => Schema.Struct({ "idempoten
|
|
|
183
269
|
const TemplatesCreateRequestJson = /* @__PURE__ */ (() => Schema.Struct({
|
|
184
270
|
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
271
|
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(
|
|
272
|
+
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
273
|
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
274
|
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
275
|
description: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
|
|
@@ -201,6 +287,7 @@ const TemplatesCreateRequestJson = /* @__PURE__ */ (() => Schema.Struct({
|
|
|
201
287
|
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
288
|
}))();
|
|
203
289
|
const TemplatesCreate201 = Template;
|
|
290
|
+
const TemplatesCreate400 = MalformedRequestError;
|
|
204
291
|
const TemplatesCreate401 = UnauthorizedError;
|
|
205
292
|
const TemplatesCreate403 = ForbiddenError;
|
|
206
293
|
const TemplatesCreate404 = ResourceNotFoundError;
|
|
@@ -211,6 +298,7 @@ const TemplatesCreate503 = ServiceUnavailableError;
|
|
|
211
298
|
const TemplatesCreate504 = GatewayTimeoutError;
|
|
212
299
|
const TemplatesGetByIdPathParams = /* @__PURE__ */ (() => Schema.Struct({ id: TemplateId }))();
|
|
213
300
|
const TemplatesGetById200 = Template;
|
|
301
|
+
const TemplatesGetById400 = MalformedRequestError;
|
|
214
302
|
const TemplatesGetById401 = UnauthorizedError;
|
|
215
303
|
const TemplatesGetById403 = ForbiddenError;
|
|
216
304
|
const TemplatesGetById404 = ResourceNotFoundError;
|
|
@@ -219,6 +307,7 @@ const TemplatesGetById500 = InternalError;
|
|
|
219
307
|
const TemplatesGetById504 = GatewayTimeoutError;
|
|
220
308
|
const TemplatesRemovePathParams = /* @__PURE__ */ (() => Schema.Struct({ id: TemplateId }))();
|
|
221
309
|
const TemplatesRemove200 = SuccessResponse;
|
|
310
|
+
const TemplatesRemove400 = MalformedRequestError;
|
|
222
311
|
const TemplatesRemove401 = UnauthorizedError;
|
|
223
312
|
const TemplatesRemove403 = ForbiddenError;
|
|
224
313
|
const TemplatesRemove404 = ResourceNotFoundError;
|
|
@@ -228,8 +317,8 @@ const TemplatesRemove504 = GatewayTimeoutError;
|
|
|
228
317
|
const TemplatesUpdatePathParams = /* @__PURE__ */ (() => Schema.Struct({ id: TemplateId }))();
|
|
229
318
|
const TemplatesUpdateRequestJson = /* @__PURE__ */ (() => Schema.Struct({ data: Schema.Struct({
|
|
230
319
|
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(
|
|
320
|
+
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])),
|
|
321
|
+
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
322
|
description: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
|
|
234
323
|
category: Schema.optionalKey(Schema.Union([Schema.Union([
|
|
235
324
|
Schema.Literal("transactional"),
|
|
@@ -247,6 +336,7 @@ const TemplatesUpdateRequestJson = /* @__PURE__ */ (() => Schema.Struct({ data:
|
|
|
247
336
|
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
337
|
}) }))();
|
|
249
338
|
const TemplatesUpdate200 = Template;
|
|
339
|
+
const TemplatesUpdate400 = MalformedRequestError;
|
|
250
340
|
const TemplatesUpdate401 = UnauthorizedError;
|
|
251
341
|
const TemplatesUpdate403 = ForbiddenError;
|
|
252
342
|
const TemplatesUpdate404 = ResourceNotFoundError;
|
|
@@ -257,9 +347,10 @@ const TemplatesUpdate504 = GatewayTimeoutError;
|
|
|
257
347
|
const TemplatesListInputContractsPathParams = /* @__PURE__ */ (() => Schema.Struct({ id: TemplateId }))();
|
|
258
348
|
const TemplatesListInputContractsQuery = /* @__PURE__ */ (() => Schema.Struct({
|
|
259
349
|
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.
|
|
350
|
+
cursor: Schema.optionalKey(Schema.String)
|
|
261
351
|
}))();
|
|
262
352
|
const TemplatesListInputContracts200 = TemplateInputContractPage;
|
|
353
|
+
const TemplatesListInputContracts400 = MalformedRequestError;
|
|
263
354
|
const TemplatesListInputContracts401 = UnauthorizedError;
|
|
264
355
|
const TemplatesListInputContracts403 = ForbiddenError;
|
|
265
356
|
const TemplatesListInputContracts404 = ResourceNotFoundError;
|
|
@@ -275,10 +366,11 @@ const TemplatesGetInputContract200 = /* @__PURE__ */ (() => Schema.Struct({
|
|
|
275
366
|
organizationId: OrganizationId,
|
|
276
367
|
templateId: TemplateId,
|
|
277
368
|
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(
|
|
369
|
+
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
370
|
schema: Schema.Record(Schema.String, JsonValue),
|
|
280
371
|
createdAt: Schema.String
|
|
281
372
|
}))();
|
|
373
|
+
const TemplatesGetInputContract400 = MalformedRequestError;
|
|
282
374
|
const TemplatesGetInputContract401 = UnauthorizedError;
|
|
283
375
|
const TemplatesGetInputContract403 = ForbiddenError;
|
|
284
376
|
const TemplatesGetInputContract404 = ResourceNotFoundError;
|
|
@@ -288,8 +380,8 @@ const TemplatesGetInputContract504 = GatewayTimeoutError;
|
|
|
288
380
|
const TemplatesPublishPathParams = /* @__PURE__ */ (() => Schema.Struct({ id: TemplateId }))();
|
|
289
381
|
const TemplatesPublishRequestJson = /* @__PURE__ */ (() => Schema.Struct({
|
|
290
382
|
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(
|
|
383
|
+
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}$" })),
|
|
384
|
+
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
385
|
expectedWorkspaceRevision: Schema.String.check(Schema.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })),
|
|
294
386
|
ifCurrentPublicationId: Schema.optionalKey(Schema.Union([TemplatePublicationId, Schema.Null]))
|
|
295
387
|
}))();
|
|
@@ -299,46 +391,46 @@ const TemplatesPublish201 = /* @__PURE__ */ (() => Schema.Struct({
|
|
|
299
391
|
projectId: TemplateProjectId,
|
|
300
392
|
templateId: TemplateId,
|
|
301
393
|
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(
|
|
394
|
+
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}$" })),
|
|
395
|
+
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}$" })),
|
|
396
|
+
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" })),
|
|
397
|
+
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
398
|
manifest: Schema.Struct({
|
|
307
399
|
templateKey: Schema.String.check(Schema.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })),
|
|
308
400
|
compiled: Schema.Struct({
|
|
309
401
|
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(
|
|
402
|
+
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
403
|
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
404
|
}),
|
|
313
405
|
compiler: Schema.String.check(Schema.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })),
|
|
314
406
|
input: Schema.Struct({
|
|
315
|
-
schemaDigest: Schema.String.check(Schema.isPattern(
|
|
316
|
-
contractDigest: Schema.String.check(Schema.isPattern(
|
|
407
|
+
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}$" })),
|
|
408
|
+
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
409
|
}),
|
|
318
410
|
assets: Schema.Struct({
|
|
319
|
-
base: Schema.String.check(Schema.isPattern(
|
|
411
|
+
base: Schema.String.check(Schema.isPattern(new globalThis.RegExp("^https?:\\/\\/", "u")).annotate({ expected: "a string matching the RegExp ^https?:\\/\\/" })),
|
|
320
412
|
entries: Schema.Array(Schema.Struct({
|
|
321
413
|
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(
|
|
414
|
+
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]+)?$" })),
|
|
415
|
+
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
416
|
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
417
|
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(
|
|
418
|
+
url: Schema.String.check(Schema.isPattern(new globalThis.RegExp("^https?:\\/\\/", "u")).annotate({ expected: "a string matching the RegExp ^https?:\\/\\/" }))
|
|
327
419
|
})).check(Schema.isMaxLength(32).annotate({ expected: "a value with a length of at most 32" }))
|
|
328
420
|
}),
|
|
329
421
|
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(
|
|
422
|
+
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}$" })),
|
|
423
|
+
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}$" })),
|
|
424
|
+
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" }))]),
|
|
425
|
+
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
426
|
}),
|
|
335
427
|
brand: Schema.optionalKey(Schema.Struct({
|
|
336
|
-
slug: Schema.String.check(Schema.isPattern(
|
|
428
|
+
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
429
|
css: Schema.String,
|
|
338
430
|
assets: BrandAssets,
|
|
339
431
|
footer: BrandFooter,
|
|
340
432
|
renderedFooter: BrandRenderedFooter,
|
|
341
|
-
digest: Schema.String.check(Schema.isPattern(
|
|
433
|
+
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
434
|
rendersFooter: Schema.Union([
|
|
343
435
|
Schema.Literal("every"),
|
|
344
436
|
Schema.Literal("some"),
|
|
@@ -348,15 +440,15 @@ const TemplatesPublish201 = /* @__PURE__ */ (() => Schema.Struct({
|
|
|
348
440
|
}),
|
|
349
441
|
compiled: Schema.Struct({
|
|
350
442
|
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(
|
|
443
|
+
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
444
|
}),
|
|
353
445
|
assets: Schema.Array(Schema.Struct({
|
|
354
446
|
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(
|
|
447
|
+
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]+)?$" })),
|
|
448
|
+
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
449
|
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
450
|
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(
|
|
451
|
+
url: Schema.String.check(Schema.isPattern(new globalThis.RegExp("^https?:\\/\\/", "u")).annotate({ expected: "a string matching the RegExp ^https?:\\/\\/" }))
|
|
360
452
|
})),
|
|
361
453
|
warnings: Schema.Array(Schema.Struct({
|
|
362
454
|
code: Schema.String,
|
|
@@ -427,6 +519,7 @@ const TemplatesPublish201 = /* @__PURE__ */ (() => Schema.Struct({
|
|
|
427
519
|
publishedBy: Schema.Union([Schema.String, Schema.Null]),
|
|
428
520
|
createdAt: Schema.String
|
|
429
521
|
}))();
|
|
522
|
+
const TemplatesPublish400 = MalformedRequestError;
|
|
430
523
|
const TemplatesPublish401 = UnauthorizedError;
|
|
431
524
|
const TemplatesPublish403 = ForbiddenError;
|
|
432
525
|
const TemplatesPublish404 = ResourceNotFoundError;
|
|
@@ -445,46 +538,46 @@ const TemplatesGetPublication200 = /* @__PURE__ */ (() => Schema.Struct({
|
|
|
445
538
|
projectId: TemplateProjectId,
|
|
446
539
|
templateId: TemplateId,
|
|
447
540
|
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(
|
|
541
|
+
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}$" })),
|
|
542
|
+
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}$" })),
|
|
543
|
+
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" })),
|
|
544
|
+
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
545
|
manifest: Schema.Struct({
|
|
453
546
|
templateKey: Schema.String.check(Schema.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })),
|
|
454
547
|
compiled: Schema.Struct({
|
|
455
548
|
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(
|
|
549
|
+
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
550
|
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
551
|
}),
|
|
459
552
|
compiler: Schema.String.check(Schema.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })),
|
|
460
553
|
input: Schema.Struct({
|
|
461
|
-
schemaDigest: Schema.String.check(Schema.isPattern(
|
|
462
|
-
contractDigest: Schema.String.check(Schema.isPattern(
|
|
554
|
+
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}$" })),
|
|
555
|
+
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
556
|
}),
|
|
464
557
|
assets: Schema.Struct({
|
|
465
|
-
base: Schema.String.check(Schema.isPattern(
|
|
558
|
+
base: Schema.String.check(Schema.isPattern(new globalThis.RegExp("^https?:\\/\\/", "u")).annotate({ expected: "a string matching the RegExp ^https?:\\/\\/" })),
|
|
466
559
|
entries: Schema.Array(Schema.Struct({
|
|
467
560
|
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(
|
|
561
|
+
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]+)?$" })),
|
|
562
|
+
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
563
|
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
564
|
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(
|
|
565
|
+
url: Schema.String.check(Schema.isPattern(new globalThis.RegExp("^https?:\\/\\/", "u")).annotate({ expected: "a string matching the RegExp ^https?:\\/\\/" }))
|
|
473
566
|
})).check(Schema.isMaxLength(32).annotate({ expected: "a value with a length of at most 32" }))
|
|
474
567
|
}),
|
|
475
568
|
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(
|
|
569
|
+
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}$" })),
|
|
570
|
+
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}$" })),
|
|
571
|
+
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" }))]),
|
|
572
|
+
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
573
|
}),
|
|
481
574
|
brand: Schema.optionalKey(Schema.Struct({
|
|
482
|
-
slug: Schema.String.check(Schema.isPattern(
|
|
575
|
+
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
576
|
css: Schema.String,
|
|
484
577
|
assets: BrandAssets,
|
|
485
578
|
footer: BrandFooter,
|
|
486
579
|
renderedFooter: BrandRenderedFooter,
|
|
487
|
-
digest: Schema.String.check(Schema.isPattern(
|
|
580
|
+
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
581
|
rendersFooter: Schema.Union([
|
|
489
582
|
Schema.Literal("every"),
|
|
490
583
|
Schema.Literal("some"),
|
|
@@ -494,15 +587,15 @@ const TemplatesGetPublication200 = /* @__PURE__ */ (() => Schema.Struct({
|
|
|
494
587
|
}),
|
|
495
588
|
compiled: Schema.Struct({
|
|
496
589
|
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(
|
|
590
|
+
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
591
|
}),
|
|
499
592
|
assets: Schema.Array(Schema.Struct({
|
|
500
593
|
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(
|
|
594
|
+
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]+)?$" })),
|
|
595
|
+
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
596
|
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
597
|
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(
|
|
598
|
+
url: Schema.String.check(Schema.isPattern(new globalThis.RegExp("^https?:\\/\\/", "u")).annotate({ expected: "a string matching the RegExp ^https?:\\/\\/" }))
|
|
506
599
|
})),
|
|
507
600
|
warnings: Schema.Array(Schema.Struct({
|
|
508
601
|
code: Schema.String,
|
|
@@ -573,6 +666,7 @@ const TemplatesGetPublication200 = /* @__PURE__ */ (() => Schema.Struct({
|
|
|
573
666
|
publishedBy: Schema.Union([Schema.String, Schema.Null]),
|
|
574
667
|
createdAt: Schema.String
|
|
575
668
|
}))();
|
|
669
|
+
const TemplatesGetPublication400 = MalformedRequestError;
|
|
576
670
|
const TemplatesGetPublication401 = UnauthorizedError;
|
|
577
671
|
const TemplatesGetPublication403 = ForbiddenError;
|
|
578
672
|
const TemplatesGetPublication404 = ResourceNotFoundError;
|
|
@@ -589,6 +683,7 @@ const TemplatesRenderPublicationRequestJson = /* @__PURE__ */ (() => Schema.Stru
|
|
|
589
683
|
timeZone: Schema.optionalKey(RenderTimeZone)
|
|
590
684
|
}))();
|
|
591
685
|
const TemplatesRenderPublication200 = TemplatePublicationRender;
|
|
686
|
+
const TemplatesRenderPublication400 = MalformedRequestError;
|
|
592
687
|
const TemplatesRenderPublication401 = UnauthorizedError;
|
|
593
688
|
const TemplatesRenderPublication403 = ForbiddenError;
|
|
594
689
|
const TemplatesRenderPublication404 = ResourceNotFoundError;
|
|
@@ -598,9 +693,10 @@ const TemplatesRenderPublication500 = InternalError;
|
|
|
598
693
|
const TemplatesRenderPublication504 = GatewayTimeoutError;
|
|
599
694
|
const TemplatesGetGitRepositoryPathParams = /* @__PURE__ */ (() => Schema.Struct({ id: TemplateId }))();
|
|
600
695
|
const TemplatesGetGitRepository200 = /* @__PURE__ */ (() => Schema.Struct({
|
|
601
|
-
remote: Schema.String.check(Schema.isPattern(
|
|
696
|
+
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
697
|
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
698
|
}))();
|
|
699
|
+
const TemplatesGetGitRepository400 = MalformedRequestError;
|
|
604
700
|
const TemplatesGetGitRepository401 = UnauthorizedError;
|
|
605
701
|
const TemplatesGetGitRepository403 = ForbiddenError;
|
|
606
702
|
const TemplatesGetGitRepository404 = ResourceNotFoundError;
|
|
@@ -612,11 +708,12 @@ const TemplatesGetGitRepository504 = GatewayTimeoutError;
|
|
|
612
708
|
const TemplatesIssueGitCredentialPathParams = /* @__PURE__ */ (() => Schema.Struct({ id: TemplateId }))();
|
|
613
709
|
const TemplatesIssueGitCredentialRequestJson = /* @__PURE__ */ (() => Schema.Struct({ scope: Schema.Union([Schema.Literal("read"), Schema.Literal("write")]) }))();
|
|
614
710
|
const TemplatesIssueGitCredential200 = /* @__PURE__ */ (() => Schema.Struct({
|
|
615
|
-
remote: Schema.String.check(Schema.isPattern(
|
|
711
|
+
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
712
|
username: Schema.Literal("x-access-token"),
|
|
617
713
|
password: Schema.String.check(Schema.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })),
|
|
618
714
|
expiresAt: Schema.String
|
|
619
715
|
}))();
|
|
716
|
+
const TemplatesIssueGitCredential400 = MalformedRequestError;
|
|
620
717
|
const TemplatesIssueGitCredential401 = UnauthorizedError;
|
|
621
718
|
const TemplatesIssueGitCredential403 = ForbiddenError;
|
|
622
719
|
const TemplatesIssueGitCredential404 = ResourceNotFoundError;
|
|
@@ -631,11 +728,11 @@ const TemplatesOpenWorkspace200 = /* @__PURE__ */ (() => Schema.Struct({
|
|
|
631
728
|
projectId: TemplateProjectId,
|
|
632
729
|
organizationId: Schema.Union([OrganizationId, Schema.Null]),
|
|
633
730
|
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(
|
|
731
|
+
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
732
|
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(
|
|
733
|
+
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}$" })),
|
|
734
|
+
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}$" })),
|
|
735
|
+
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
736
|
revision: Schema.String,
|
|
640
737
|
overlay: Schema.Record(Schema.String, Schema.Union([Schema.String, Schema.Null])),
|
|
641
738
|
assetChanges: Schema.Array(Schema.Struct({
|
|
@@ -647,7 +744,7 @@ const TemplatesOpenWorkspace200 = /* @__PURE__ */ (() => Schema.Struct({
|
|
|
647
744
|
])
|
|
648
745
|
})),
|
|
649
746
|
conflicts: Schema.Array(Schema.Struct({
|
|
650
|
-
path: Schema.String.check(Schema.isPattern(
|
|
747
|
+
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
748
|
base: Schema.Union([Schema.String, Schema.Null]),
|
|
652
749
|
draft: Schema.Union([Schema.String, Schema.Null]),
|
|
653
750
|
main: Schema.Union([Schema.String, Schema.Null])
|
|
@@ -664,39 +761,39 @@ const TemplatesOpenWorkspace200 = /* @__PURE__ */ (() => Schema.Struct({
|
|
|
664
761
|
access: Schema.Literal("read-write")
|
|
665
762
|
}),
|
|
666
763
|
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(
|
|
764
|
+
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" })),
|
|
765
|
+
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
766
|
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
767
|
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
768
|
kind: Schema.Literal("started-from"),
|
|
672
769
|
access: Schema.Literal("read-only"),
|
|
673
770
|
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(
|
|
771
|
+
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
772
|
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
773
|
}),
|
|
677
774
|
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(
|
|
775
|
+
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" })),
|
|
776
|
+
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
777
|
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
778
|
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
779
|
kind: Schema.Literal("resource"),
|
|
683
780
|
access: Schema.Literal("read-only"),
|
|
684
|
-
resourceId: Schema.String.check(Schema.isPattern(
|
|
781
|
+
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
782
|
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
783
|
}),
|
|
687
784
|
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(
|
|
785
|
+
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" })),
|
|
786
|
+
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
787
|
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
788
|
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
789
|
kind: Schema.Literal("library-template"),
|
|
693
790
|
access: Schema.Literal("read-only"),
|
|
694
791
|
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(
|
|
792
|
+
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
793
|
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
794
|
})
|
|
698
795
|
])),
|
|
699
|
-
libraryManifestDigest: Schema.String.check(Schema.isPattern(
|
|
796
|
+
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
797
|
createdAt: Schema.String,
|
|
701
798
|
updatedAt: Schema.String,
|
|
702
799
|
createdBy: Schema.Struct({
|
|
@@ -718,6 +815,7 @@ const TemplatesOpenWorkspace200 = /* @__PURE__ */ (() => Schema.Struct({
|
|
|
718
815
|
}),
|
|
719
816
|
files: Schema.Record(Schema.String, Schema.String)
|
|
720
817
|
}))();
|
|
818
|
+
const TemplatesOpenWorkspace400 = MalformedRequestError;
|
|
721
819
|
const TemplatesOpenWorkspace401 = UnauthorizedError;
|
|
722
820
|
const TemplatesOpenWorkspace403 = ForbiddenError;
|
|
723
821
|
const TemplatesOpenWorkspace404 = ResourceNotFoundError;
|
|
@@ -731,7 +829,7 @@ const TemplatesPatchWorkspaceHeaders = /* @__PURE__ */ (() => Schema.Struct({ "i
|
|
|
731
829
|
const TemplatesPatchWorkspaceRequestJson = /* @__PURE__ */ (() => Schema.Struct({
|
|
732
830
|
expectedRevision: Schema.String,
|
|
733
831
|
patches: Schema.Array(Schema.Struct({
|
|
734
|
-
path: Schema.String.check(Schema.isPattern(
|
|
832
|
+
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
833
|
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
834
|
})).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
835
|
}))();
|
|
@@ -740,11 +838,11 @@ const TemplatesPatchWorkspace200 = /* @__PURE__ */ (() => Schema.Struct({
|
|
|
740
838
|
projectId: TemplateProjectId,
|
|
741
839
|
organizationId: Schema.Union([OrganizationId, Schema.Null]),
|
|
742
840
|
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(
|
|
841
|
+
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
842
|
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(
|
|
843
|
+
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}$" })),
|
|
844
|
+
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}$" })),
|
|
845
|
+
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
846
|
revision: Schema.String,
|
|
749
847
|
overlay: Schema.Record(Schema.String, Schema.Union([Schema.String, Schema.Null])),
|
|
750
848
|
assetChanges: Schema.Array(Schema.Struct({
|
|
@@ -756,7 +854,7 @@ const TemplatesPatchWorkspace200 = /* @__PURE__ */ (() => Schema.Struct({
|
|
|
756
854
|
])
|
|
757
855
|
})),
|
|
758
856
|
conflicts: Schema.Array(Schema.Struct({
|
|
759
|
-
path: Schema.String.check(Schema.isPattern(
|
|
857
|
+
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
858
|
base: Schema.Union([Schema.String, Schema.Null]),
|
|
761
859
|
draft: Schema.Union([Schema.String, Schema.Null]),
|
|
762
860
|
main: Schema.Union([Schema.String, Schema.Null])
|
|
@@ -773,39 +871,39 @@ const TemplatesPatchWorkspace200 = /* @__PURE__ */ (() => Schema.Struct({
|
|
|
773
871
|
access: Schema.Literal("read-write")
|
|
774
872
|
}),
|
|
775
873
|
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(
|
|
874
|
+
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" })),
|
|
875
|
+
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
876
|
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
877
|
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
878
|
kind: Schema.Literal("started-from"),
|
|
781
879
|
access: Schema.Literal("read-only"),
|
|
782
880
|
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(
|
|
881
|
+
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
882
|
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
883
|
}),
|
|
786
884
|
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(
|
|
885
|
+
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" })),
|
|
886
|
+
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
887
|
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
888
|
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
889
|
kind: Schema.Literal("resource"),
|
|
792
890
|
access: Schema.Literal("read-only"),
|
|
793
|
-
resourceId: Schema.String.check(Schema.isPattern(
|
|
891
|
+
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
892
|
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
893
|
}),
|
|
796
894
|
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(
|
|
895
|
+
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" })),
|
|
896
|
+
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
897
|
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
898
|
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
899
|
kind: Schema.Literal("library-template"),
|
|
802
900
|
access: Schema.Literal("read-only"),
|
|
803
901
|
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(
|
|
902
|
+
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
903
|
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
904
|
})
|
|
807
905
|
])),
|
|
808
|
-
libraryManifestDigest: Schema.String.check(Schema.isPattern(
|
|
906
|
+
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
907
|
createdAt: Schema.String,
|
|
810
908
|
updatedAt: Schema.String,
|
|
811
909
|
createdBy: Schema.Struct({
|
|
@@ -827,6 +925,7 @@ const TemplatesPatchWorkspace200 = /* @__PURE__ */ (() => Schema.Struct({
|
|
|
827
925
|
}),
|
|
828
926
|
files: Schema.Record(Schema.String, Schema.String)
|
|
829
927
|
}))();
|
|
928
|
+
const TemplatesPatchWorkspace400 = MalformedRequestError;
|
|
830
929
|
const TemplatesPatchWorkspace401 = UnauthorizedError;
|
|
831
930
|
const TemplatesPatchWorkspace403 = ForbiddenError;
|
|
832
931
|
const TemplatesPatchWorkspace404 = ResourceNotFoundError;
|
|
@@ -839,7 +938,7 @@ const TemplatesPutWorkspaceAssetPathParams = /* @__PURE__ */ (() => Schema.Struc
|
|
|
839
938
|
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
939
|
const TemplatesPutWorkspaceAssetRequestJson = /* @__PURE__ */ (() => Schema.Struct({
|
|
841
940
|
expectedRevision: Schema.String,
|
|
842
|
-
path: Schema.String.check(Schema.isPattern(
|
|
941
|
+
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
942
|
contentBase64: Schema.String,
|
|
844
943
|
replace: Schema.Boolean
|
|
845
944
|
}))();
|
|
@@ -848,11 +947,11 @@ const TemplatesPutWorkspaceAsset200 = /* @__PURE__ */ (() => Schema.Struct({
|
|
|
848
947
|
projectId: TemplateProjectId,
|
|
849
948
|
organizationId: Schema.Union([OrganizationId, Schema.Null]),
|
|
850
949
|
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(
|
|
950
|
+
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
951
|
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(
|
|
952
|
+
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}$" })),
|
|
953
|
+
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}$" })),
|
|
954
|
+
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
955
|
revision: Schema.String,
|
|
857
956
|
overlay: Schema.Record(Schema.String, Schema.Union([Schema.String, Schema.Null])),
|
|
858
957
|
assetChanges: Schema.Array(Schema.Struct({
|
|
@@ -864,7 +963,7 @@ const TemplatesPutWorkspaceAsset200 = /* @__PURE__ */ (() => Schema.Struct({
|
|
|
864
963
|
])
|
|
865
964
|
})),
|
|
866
965
|
conflicts: Schema.Array(Schema.Struct({
|
|
867
|
-
path: Schema.String.check(Schema.isPattern(
|
|
966
|
+
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
967
|
base: Schema.Union([Schema.String, Schema.Null]),
|
|
869
968
|
draft: Schema.Union([Schema.String, Schema.Null]),
|
|
870
969
|
main: Schema.Union([Schema.String, Schema.Null])
|
|
@@ -881,39 +980,39 @@ const TemplatesPutWorkspaceAsset200 = /* @__PURE__ */ (() => Schema.Struct({
|
|
|
881
980
|
access: Schema.Literal("read-write")
|
|
882
981
|
}),
|
|
883
982
|
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(
|
|
983
|
+
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" })),
|
|
984
|
+
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
985
|
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
986
|
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
987
|
kind: Schema.Literal("started-from"),
|
|
889
988
|
access: Schema.Literal("read-only"),
|
|
890
989
|
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(
|
|
990
|
+
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
991
|
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
992
|
}),
|
|
894
993
|
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(
|
|
994
|
+
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" })),
|
|
995
|
+
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
996
|
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
997
|
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
998
|
kind: Schema.Literal("resource"),
|
|
900
999
|
access: Schema.Literal("read-only"),
|
|
901
|
-
resourceId: Schema.String.check(Schema.isPattern(
|
|
1000
|
+
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
1001
|
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
1002
|
}),
|
|
904
1003
|
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(
|
|
1004
|
+
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" })),
|
|
1005
|
+
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
1006
|
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
1007
|
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
1008
|
kind: Schema.Literal("library-template"),
|
|
910
1009
|
access: Schema.Literal("read-only"),
|
|
911
1010
|
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(
|
|
1011
|
+
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
1012
|
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
1013
|
})
|
|
915
1014
|
])),
|
|
916
|
-
libraryManifestDigest: Schema.String.check(Schema.isPattern(
|
|
1015
|
+
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
1016
|
createdAt: Schema.String,
|
|
918
1017
|
updatedAt: Schema.String,
|
|
919
1018
|
createdBy: Schema.Struct({
|
|
@@ -935,6 +1034,7 @@ const TemplatesPutWorkspaceAsset200 = /* @__PURE__ */ (() => Schema.Struct({
|
|
|
935
1034
|
}),
|
|
936
1035
|
files: Schema.Record(Schema.String, Schema.String)
|
|
937
1036
|
}))();
|
|
1037
|
+
const TemplatesPutWorkspaceAsset400 = MalformedRequestError;
|
|
938
1038
|
const TemplatesPutWorkspaceAsset401 = UnauthorizedError;
|
|
939
1039
|
const TemplatesPutWorkspaceAsset403 = ForbiddenError;
|
|
940
1040
|
const TemplatesPutWorkspaceAsset404 = ResourceNotFoundError;
|
|
@@ -948,19 +1048,19 @@ const TemplatesCheckWorkspaceRequestJson = /* @__PURE__ */ (() => Schema.Struct(
|
|
|
948
1048
|
const TemplatesCheckWorkspace200 = /* @__PURE__ */ (() => Schema.Struct({
|
|
949
1049
|
projectId: TemplateProjectId,
|
|
950
1050
|
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(
|
|
1051
|
+
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
1052
|
declaration: Schema.Union([Schema.Struct({
|
|
953
|
-
codeDigest: Schema.String.check(Schema.isPattern(
|
|
1053
|
+
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
1054
|
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
1055
|
input: Schema.Struct({
|
|
956
1056
|
schema: Schema.Record(Schema.String, JsonValue),
|
|
957
|
-
schemaDigest: Schema.String.check(Schema.isPattern(
|
|
958
|
-
contractDigest: Schema.String.check(Schema.isPattern(
|
|
1057
|
+
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}$" })),
|
|
1058
|
+
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
1059
|
}),
|
|
960
1060
|
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
1061
|
}), Schema.Null]),
|
|
962
1062
|
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(
|
|
1063
|
+
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
1064
|
frontmatter: Schema.Struct({
|
|
965
1065
|
title: Schema.String,
|
|
966
1066
|
date: Schema.optionalKey(Schema.String),
|
|
@@ -1040,6 +1140,7 @@ const TemplatesCheckWorkspace200 = /* @__PURE__ */ (() => Schema.Struct({
|
|
|
1040
1140
|
}), Schema.Null]))
|
|
1041
1141
|
}))
|
|
1042
1142
|
}))();
|
|
1143
|
+
const TemplatesCheckWorkspace400 = MalformedRequestError;
|
|
1043
1144
|
const TemplatesCheckWorkspace401 = UnauthorizedError;
|
|
1044
1145
|
const TemplatesCheckWorkspace403 = ForbiddenError;
|
|
1045
1146
|
const TemplatesCheckWorkspace404 = ResourceNotFoundError;
|
|
@@ -1052,7 +1153,7 @@ const TemplatesResolveWorkspaceConflictPathParams = /* @__PURE__ */ (() => Schem
|
|
|
1052
1153
|
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
1154
|
const TemplatesResolveWorkspaceConflictRequestJson = /* @__PURE__ */ (() => Schema.Struct({
|
|
1054
1155
|
expectedRevision: Schema.String,
|
|
1055
|
-
path: Schema.String.check(Schema.isPattern(
|
|
1156
|
+
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
1157
|
resolution: Schema.Union([
|
|
1057
1158
|
Schema.Literal("draft"),
|
|
1058
1159
|
Schema.Literal("main"),
|
|
@@ -1064,11 +1165,11 @@ const TemplatesResolveWorkspaceConflict200 = /* @__PURE__ */ (() => Schema.Struc
|
|
|
1064
1165
|
projectId: TemplateProjectId,
|
|
1065
1166
|
organizationId: Schema.Union([OrganizationId, Schema.Null]),
|
|
1066
1167
|
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(
|
|
1168
|
+
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
1169
|
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(
|
|
1170
|
+
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}$" })),
|
|
1171
|
+
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}$" })),
|
|
1172
|
+
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
1173
|
revision: Schema.String,
|
|
1073
1174
|
overlay: Schema.Record(Schema.String, Schema.Union([Schema.String, Schema.Null])),
|
|
1074
1175
|
assetChanges: Schema.Array(Schema.Struct({
|
|
@@ -1080,7 +1181,7 @@ const TemplatesResolveWorkspaceConflict200 = /* @__PURE__ */ (() => Schema.Struc
|
|
|
1080
1181
|
])
|
|
1081
1182
|
})),
|
|
1082
1183
|
conflicts: Schema.Array(Schema.Struct({
|
|
1083
|
-
path: Schema.String.check(Schema.isPattern(
|
|
1184
|
+
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
1185
|
base: Schema.Union([Schema.String, Schema.Null]),
|
|
1085
1186
|
draft: Schema.Union([Schema.String, Schema.Null]),
|
|
1086
1187
|
main: Schema.Union([Schema.String, Schema.Null])
|
|
@@ -1097,39 +1198,39 @@ const TemplatesResolveWorkspaceConflict200 = /* @__PURE__ */ (() => Schema.Struc
|
|
|
1097
1198
|
access: Schema.Literal("read-write")
|
|
1098
1199
|
}),
|
|
1099
1200
|
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(
|
|
1201
|
+
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" })),
|
|
1202
|
+
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
1203
|
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
1204
|
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
1205
|
kind: Schema.Literal("started-from"),
|
|
1105
1206
|
access: Schema.Literal("read-only"),
|
|
1106
1207
|
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(
|
|
1208
|
+
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
1209
|
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
1210
|
}),
|
|
1110
1211
|
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(
|
|
1212
|
+
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" })),
|
|
1213
|
+
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
1214
|
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
1215
|
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
1216
|
kind: Schema.Literal("resource"),
|
|
1116
1217
|
access: Schema.Literal("read-only"),
|
|
1117
|
-
resourceId: Schema.String.check(Schema.isPattern(
|
|
1218
|
+
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
1219
|
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
1220
|
}),
|
|
1120
1221
|
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(
|
|
1222
|
+
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" })),
|
|
1223
|
+
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
1224
|
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
1225
|
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
1226
|
kind: Schema.Literal("library-template"),
|
|
1126
1227
|
access: Schema.Literal("read-only"),
|
|
1127
1228
|
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(
|
|
1229
|
+
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
1230
|
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
1231
|
})
|
|
1131
1232
|
])),
|
|
1132
|
-
libraryManifestDigest: Schema.String.check(Schema.isPattern(
|
|
1233
|
+
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
1234
|
createdAt: Schema.String,
|
|
1134
1235
|
updatedAt: Schema.String,
|
|
1135
1236
|
createdBy: Schema.Struct({
|
|
@@ -1151,6 +1252,7 @@ const TemplatesResolveWorkspaceConflict200 = /* @__PURE__ */ (() => Schema.Struc
|
|
|
1151
1252
|
}),
|
|
1152
1253
|
files: Schema.Record(Schema.String, Schema.String)
|
|
1153
1254
|
}))();
|
|
1255
|
+
const TemplatesResolveWorkspaceConflict400 = MalformedRequestError;
|
|
1154
1256
|
const TemplatesResolveWorkspaceConflict401 = UnauthorizedError;
|
|
1155
1257
|
const TemplatesResolveWorkspaceConflict403 = ForbiddenError;
|
|
1156
1258
|
const TemplatesResolveWorkspaceConflict404 = ResourceNotFoundError;
|
|
@@ -1163,10 +1265,10 @@ const TemplatesDiffWorkspacePathParams = /* @__PURE__ */ (() => Schema.Struct({
|
|
|
1163
1265
|
const TemplatesDiffWorkspaceRequestJson = /* @__PURE__ */ (() => Schema.Struct({ expectedRevision: Schema.String }))();
|
|
1164
1266
|
const TemplatesDiffWorkspace200 = /* @__PURE__ */ (() => Schema.Struct({
|
|
1165
1267
|
projectId: TemplateProjectId,
|
|
1166
|
-
baseCommit: Schema.String.check(Schema.isPattern(
|
|
1268
|
+
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
1269
|
revision: Schema.String,
|
|
1168
1270
|
changes: Schema.Array(Schema.Struct({
|
|
1169
|
-
path: Schema.String.check(Schema.isPattern(
|
|
1271
|
+
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
1272
|
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
1273
|
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
1274
|
status: Schema.Union([
|
|
@@ -1182,9 +1284,10 @@ const TemplatesDiffWorkspace200 = /* @__PURE__ */ (() => Schema.Struct({
|
|
|
1182
1284
|
Schema.Literal("modified"),
|
|
1183
1285
|
Schema.Literal("deleted")
|
|
1184
1286
|
]),
|
|
1185
|
-
digest: Schema.Union([Schema.String.check(Schema.isPattern(
|
|
1287
|
+
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
1288
|
}))
|
|
1187
1289
|
}))();
|
|
1290
|
+
const TemplatesDiffWorkspace400 = MalformedRequestError;
|
|
1188
1291
|
const TemplatesDiffWorkspace401 = UnauthorizedError;
|
|
1189
1292
|
const TemplatesDiffWorkspace403 = ForbiddenError;
|
|
1190
1293
|
const TemplatesDiffWorkspace404 = ResourceNotFoundError;
|
|
@@ -1201,19 +1304,19 @@ const TemplatesRenderWorkspaceFixtureRequestJson = /* @__PURE__ */ (() => Schema
|
|
|
1201
1304
|
const TemplatesRenderWorkspaceFixture200 = /* @__PURE__ */ (() => Schema.Struct({
|
|
1202
1305
|
projectId: TemplateProjectId,
|
|
1203
1306
|
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(
|
|
1307
|
+
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
1308
|
declaration: Schema.Union([Schema.Struct({
|
|
1206
|
-
codeDigest: Schema.String.check(Schema.isPattern(
|
|
1309
|
+
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
1310
|
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
1311
|
input: Schema.Struct({
|
|
1209
1312
|
schema: Schema.Record(Schema.String, JsonValue),
|
|
1210
|
-
schemaDigest: Schema.String.check(Schema.isPattern(
|
|
1211
|
-
contractDigest: Schema.String.check(Schema.isPattern(
|
|
1313
|
+
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}$" })),
|
|
1314
|
+
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
1315
|
}),
|
|
1213
1316
|
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
1317
|
}), Schema.Null]),
|
|
1215
1318
|
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(
|
|
1319
|
+
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
1320
|
frontmatter: Schema.Struct({
|
|
1218
1321
|
title: Schema.String,
|
|
1219
1322
|
date: Schema.optionalKey(Schema.String),
|
|
@@ -1316,6 +1419,48 @@ const TemplatesRenderWorkspaceFixture200 = /* @__PURE__ */ (() => Schema.Struct(
|
|
|
1316
1419
|
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
1420
|
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
1421
|
}), Schema.Null]),
|
|
1422
|
+
whatsapp: Schema.Union([Schema.Struct({
|
|
1423
|
+
language: Schema.String,
|
|
1424
|
+
category: Schema.String,
|
|
1425
|
+
header: Schema.optionalKey(Schema.Struct({
|
|
1426
|
+
type: Schema.Union([
|
|
1427
|
+
Schema.Literal("text"),
|
|
1428
|
+
Schema.Literal("image"),
|
|
1429
|
+
Schema.Literal("video"),
|
|
1430
|
+
Schema.Literal("document")
|
|
1431
|
+
]),
|
|
1432
|
+
text: Schema.String
|
|
1433
|
+
})),
|
|
1434
|
+
body: Schema.String,
|
|
1435
|
+
footer: Schema.optionalKey(Schema.String),
|
|
1436
|
+
buttons: Schema.Array(Schema.Union([
|
|
1437
|
+
Schema.Struct({
|
|
1438
|
+
type: Schema.Literal("quick-reply"),
|
|
1439
|
+
text: Schema.String
|
|
1440
|
+
}),
|
|
1441
|
+
Schema.Struct({
|
|
1442
|
+
type: Schema.Literal("url"),
|
|
1443
|
+
text: Schema.String,
|
|
1444
|
+
url: Schema.String
|
|
1445
|
+
}),
|
|
1446
|
+
Schema.Struct({
|
|
1447
|
+
type: Schema.Literal("phone"),
|
|
1448
|
+
text: Schema.String,
|
|
1449
|
+
phone: Schema.String
|
|
1450
|
+
}),
|
|
1451
|
+
Schema.Struct({
|
|
1452
|
+
type: Schema.Literal("copy-code"),
|
|
1453
|
+
code: Schema.String
|
|
1454
|
+
}),
|
|
1455
|
+
Schema.Struct({
|
|
1456
|
+
type: Schema.Literal("flow"),
|
|
1457
|
+
text: Schema.String,
|
|
1458
|
+
flow: Schema.String,
|
|
1459
|
+
action: Schema.Union([Schema.Literal("navigate"), Schema.Literal("data_exchange")]),
|
|
1460
|
+
screen: Schema.optionalKey(Schema.String)
|
|
1461
|
+
})
|
|
1462
|
+
]))
|
|
1463
|
+
}), Schema.Null]),
|
|
1319
1464
|
page: Schema.optionalKey(Schema.Union([Schema.Struct({
|
|
1320
1465
|
kind: Schema.Literal("page"),
|
|
1321
1466
|
html: Schema.String,
|
|
@@ -1336,6 +1481,7 @@ const TemplatesRenderWorkspaceFixture200 = /* @__PURE__ */ (() => Schema.Struct(
|
|
|
1336
1481
|
}))
|
|
1337
1482
|
}), Schema.Null]))
|
|
1338
1483
|
}))();
|
|
1484
|
+
const TemplatesRenderWorkspaceFixture400 = MalformedRequestError;
|
|
1339
1485
|
const TemplatesRenderWorkspaceFixture401 = UnauthorizedError;
|
|
1340
1486
|
const TemplatesRenderWorkspaceFixture403 = ForbiddenError;
|
|
1341
1487
|
const TemplatesRenderWorkspaceFixture404 = ResourceNotFoundError;
|
|
@@ -1348,19 +1494,20 @@ const TemplatesWorkspaceHistoryPathParams = /* @__PURE__ */ (() => Schema.Struct
|
|
|
1348
1494
|
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
1495
|
const TemplatesWorkspaceHistory200 = /* @__PURE__ */ (() => Schema.Struct({
|
|
1350
1496
|
projectId: TemplateProjectId,
|
|
1351
|
-
head: Schema.String.check(Schema.isPattern(
|
|
1497
|
+
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
1498
|
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(
|
|
1499
|
+
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}$" })),
|
|
1500
|
+
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}$" })),
|
|
1501
|
+
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
1502
|
message: Schema.String,
|
|
1357
1503
|
committedAt: Schema.String
|
|
1358
1504
|
})),
|
|
1359
1505
|
publication: Schema.Union([Schema.Struct({
|
|
1360
1506
|
id: TemplatePublicationId,
|
|
1361
|
-
commit: Schema.String.check(Schema.isPattern(
|
|
1507
|
+
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
1508
|
}), Schema.Null])
|
|
1363
1509
|
}))();
|
|
1510
|
+
const TemplatesWorkspaceHistory400 = MalformedRequestError;
|
|
1364
1511
|
const TemplatesWorkspaceHistory401 = UnauthorizedError;
|
|
1365
1512
|
const TemplatesWorkspaceHistory403 = ForbiddenError;
|
|
1366
1513
|
const TemplatesWorkspaceHistory404 = ResourceNotFoundError;
|
|
@@ -1374,12 +1521,12 @@ const TemplatesAttachWorkspaceResourceHeaders = /* @__PURE__ */ (() => Schema.St
|
|
|
1374
1521
|
const TemplatesAttachWorkspaceResourceRequestJson = /* @__PURE__ */ (() => Schema.Struct({
|
|
1375
1522
|
expectedRevision: Schema.String,
|
|
1376
1523
|
resource: Schema.Struct({
|
|
1377
|
-
resourceId: Schema.String.check(Schema.isPattern(
|
|
1524
|
+
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
1525
|
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
1526
|
files: Schema.Array(Schema.Struct({
|
|
1380
|
-
path: Schema.String.check(Schema.isPattern(
|
|
1527
|
+
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
1528
|
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(
|
|
1529
|
+
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
1530
|
})).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
1531
|
})
|
|
1385
1532
|
}))();
|
|
@@ -1387,11 +1534,11 @@ const TemplatesAttachWorkspaceResource200 = /* @__PURE__ */ (() => Schema.Struct
|
|
|
1387
1534
|
projectId: TemplateProjectId,
|
|
1388
1535
|
organizationId: Schema.Union([OrganizationId, Schema.Null]),
|
|
1389
1536
|
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(
|
|
1537
|
+
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
1538
|
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(
|
|
1539
|
+
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}$" })),
|
|
1540
|
+
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}$" })),
|
|
1541
|
+
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
1542
|
revision: Schema.String,
|
|
1396
1543
|
overlay: Schema.Record(Schema.String, Schema.Union([Schema.String, Schema.Null])),
|
|
1397
1544
|
assetChanges: Schema.Array(Schema.Struct({
|
|
@@ -1403,7 +1550,7 @@ const TemplatesAttachWorkspaceResource200 = /* @__PURE__ */ (() => Schema.Struct
|
|
|
1403
1550
|
])
|
|
1404
1551
|
})),
|
|
1405
1552
|
conflicts: Schema.Array(Schema.Struct({
|
|
1406
|
-
path: Schema.String.check(Schema.isPattern(
|
|
1553
|
+
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
1554
|
base: Schema.Union([Schema.String, Schema.Null]),
|
|
1408
1555
|
draft: Schema.Union([Schema.String, Schema.Null]),
|
|
1409
1556
|
main: Schema.Union([Schema.String, Schema.Null])
|
|
@@ -1420,39 +1567,39 @@ const TemplatesAttachWorkspaceResource200 = /* @__PURE__ */ (() => Schema.Struct
|
|
|
1420
1567
|
access: Schema.Literal("read-write")
|
|
1421
1568
|
}),
|
|
1422
1569
|
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(
|
|
1570
|
+
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" })),
|
|
1571
|
+
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
1572
|
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
1573
|
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
1574
|
kind: Schema.Literal("started-from"),
|
|
1428
1575
|
access: Schema.Literal("read-only"),
|
|
1429
1576
|
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(
|
|
1577
|
+
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
1578
|
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
1579
|
}),
|
|
1433
1580
|
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(
|
|
1581
|
+
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" })),
|
|
1582
|
+
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
1583
|
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
1584
|
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
1585
|
kind: Schema.Literal("resource"),
|
|
1439
1586
|
access: Schema.Literal("read-only"),
|
|
1440
|
-
resourceId: Schema.String.check(Schema.isPattern(
|
|
1587
|
+
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
1588
|
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
1589
|
}),
|
|
1443
1590
|
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(
|
|
1591
|
+
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" })),
|
|
1592
|
+
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
1593
|
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
1594
|
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
1595
|
kind: Schema.Literal("library-template"),
|
|
1449
1596
|
access: Schema.Literal("read-only"),
|
|
1450
1597
|
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(
|
|
1598
|
+
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
1599
|
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
1600
|
})
|
|
1454
1601
|
])),
|
|
1455
|
-
libraryManifestDigest: Schema.String.check(Schema.isPattern(
|
|
1602
|
+
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
1603
|
createdAt: Schema.String,
|
|
1457
1604
|
updatedAt: Schema.String,
|
|
1458
1605
|
createdBy: Schema.Struct({
|
|
@@ -1472,6 +1619,7 @@ const TemplatesAttachWorkspaceResource200 = /* @__PURE__ */ (() => Schema.Struct
|
|
|
1472
1619
|
])
|
|
1473
1620
|
})
|
|
1474
1621
|
}))();
|
|
1622
|
+
const TemplatesAttachWorkspaceResource400 = MalformedRequestError;
|
|
1475
1623
|
const TemplatesAttachWorkspaceResource401 = UnauthorizedError;
|
|
1476
1624
|
const TemplatesAttachWorkspaceResource403 = ForbiddenError;
|
|
1477
1625
|
const TemplatesAttachWorkspaceResource404 = ResourceNotFoundError;
|
|
@@ -1482,7 +1630,7 @@ const TemplatesAttachWorkspaceResource503 = ServiceUnavailableError;
|
|
|
1482
1630
|
const TemplatesAttachWorkspaceResource504 = GatewayTimeoutError;
|
|
1483
1631
|
const TemplatesRemoveWorkspaceResourcePathParams = /* @__PURE__ */ (() => Schema.Struct({
|
|
1484
1632
|
id: TemplateId,
|
|
1485
|
-
resourceId: Schema.String.check(Schema.isPattern(
|
|
1633
|
+
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
1634
|
}))();
|
|
1487
1635
|
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
1636
|
const TemplatesRemoveWorkspaceResourceRequestJson = /* @__PURE__ */ (() => Schema.Struct({ expectedRevision: Schema.String }))();
|
|
@@ -1490,11 +1638,11 @@ const TemplatesRemoveWorkspaceResource200 = /* @__PURE__ */ (() => Schema.Struct
|
|
|
1490
1638
|
projectId: TemplateProjectId,
|
|
1491
1639
|
organizationId: Schema.Union([OrganizationId, Schema.Null]),
|
|
1492
1640
|
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(
|
|
1641
|
+
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
1642
|
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(
|
|
1643
|
+
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}$" })),
|
|
1644
|
+
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}$" })),
|
|
1645
|
+
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
1646
|
revision: Schema.String,
|
|
1499
1647
|
overlay: Schema.Record(Schema.String, Schema.Union([Schema.String, Schema.Null])),
|
|
1500
1648
|
assetChanges: Schema.Array(Schema.Struct({
|
|
@@ -1506,7 +1654,7 @@ const TemplatesRemoveWorkspaceResource200 = /* @__PURE__ */ (() => Schema.Struct
|
|
|
1506
1654
|
])
|
|
1507
1655
|
})),
|
|
1508
1656
|
conflicts: Schema.Array(Schema.Struct({
|
|
1509
|
-
path: Schema.String.check(Schema.isPattern(
|
|
1657
|
+
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
1658
|
base: Schema.Union([Schema.String, Schema.Null]),
|
|
1511
1659
|
draft: Schema.Union([Schema.String, Schema.Null]),
|
|
1512
1660
|
main: Schema.Union([Schema.String, Schema.Null])
|
|
@@ -1523,39 +1671,39 @@ const TemplatesRemoveWorkspaceResource200 = /* @__PURE__ */ (() => Schema.Struct
|
|
|
1523
1671
|
access: Schema.Literal("read-write")
|
|
1524
1672
|
}),
|
|
1525
1673
|
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(
|
|
1674
|
+
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" })),
|
|
1675
|
+
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
1676
|
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
1677
|
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
1678
|
kind: Schema.Literal("started-from"),
|
|
1531
1679
|
access: Schema.Literal("read-only"),
|
|
1532
1680
|
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(
|
|
1681
|
+
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
1682
|
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
1683
|
}),
|
|
1536
1684
|
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(
|
|
1685
|
+
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" })),
|
|
1686
|
+
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
1687
|
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
1688
|
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
1689
|
kind: Schema.Literal("resource"),
|
|
1542
1690
|
access: Schema.Literal("read-only"),
|
|
1543
|
-
resourceId: Schema.String.check(Schema.isPattern(
|
|
1691
|
+
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
1692
|
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
1693
|
}),
|
|
1546
1694
|
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(
|
|
1695
|
+
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" })),
|
|
1696
|
+
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
1697
|
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
1698
|
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
1699
|
kind: Schema.Literal("library-template"),
|
|
1552
1700
|
access: Schema.Literal("read-only"),
|
|
1553
1701
|
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(
|
|
1702
|
+
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
1703
|
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
1704
|
})
|
|
1557
1705
|
])),
|
|
1558
|
-
libraryManifestDigest: Schema.String.check(Schema.isPattern(
|
|
1706
|
+
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
1707
|
createdAt: Schema.String,
|
|
1560
1708
|
updatedAt: Schema.String,
|
|
1561
1709
|
createdBy: Schema.Struct({
|
|
@@ -1575,6 +1723,7 @@ const TemplatesRemoveWorkspaceResource200 = /* @__PURE__ */ (() => Schema.Struct
|
|
|
1575
1723
|
])
|
|
1576
1724
|
})
|
|
1577
1725
|
}))();
|
|
1726
|
+
const TemplatesRemoveWorkspaceResource400 = MalformedRequestError;
|
|
1578
1727
|
const TemplatesRemoveWorkspaceResource401 = UnauthorizedError;
|
|
1579
1728
|
const TemplatesRemoveWorkspaceResource403 = ForbiddenError;
|
|
1580
1729
|
const TemplatesRemoveWorkspaceResource404 = ResourceNotFoundError;
|
|
@@ -1587,7 +1736,7 @@ const TemplatesRestoreWorkspacePathParams = /* @__PURE__ */ (() => Schema.Struct
|
|
|
1587
1736
|
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
1737
|
const TemplatesRestoreWorkspaceRequestJson = /* @__PURE__ */ (() => Schema.Struct({
|
|
1589
1738
|
expectedRevision: Schema.String,
|
|
1590
|
-
commit: Schema.String.check(Schema.isPattern(
|
|
1739
|
+
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
1740
|
}))();
|
|
1592
1741
|
const TemplatesRestoreWorkspace200 = /* @__PURE__ */ (() => Schema.Struct({
|
|
1593
1742
|
view: Schema.Struct({
|
|
@@ -1595,11 +1744,11 @@ const TemplatesRestoreWorkspace200 = /* @__PURE__ */ (() => Schema.Struct({
|
|
|
1595
1744
|
projectId: TemplateProjectId,
|
|
1596
1745
|
organizationId: Schema.Union([OrganizationId, Schema.Null]),
|
|
1597
1746
|
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(
|
|
1747
|
+
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
1748
|
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(
|
|
1749
|
+
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}$" })),
|
|
1750
|
+
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}$" })),
|
|
1751
|
+
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
1752
|
revision: Schema.String,
|
|
1604
1753
|
overlay: Schema.Record(Schema.String, Schema.Union([Schema.String, Schema.Null])),
|
|
1605
1754
|
assetChanges: Schema.Array(Schema.Struct({
|
|
@@ -1611,7 +1760,7 @@ const TemplatesRestoreWorkspace200 = /* @__PURE__ */ (() => Schema.Struct({
|
|
|
1611
1760
|
])
|
|
1612
1761
|
})),
|
|
1613
1762
|
conflicts: Schema.Array(Schema.Struct({
|
|
1614
|
-
path: Schema.String.check(Schema.isPattern(
|
|
1763
|
+
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
1764
|
base: Schema.Union([Schema.String, Schema.Null]),
|
|
1616
1765
|
draft: Schema.Union([Schema.String, Schema.Null]),
|
|
1617
1766
|
main: Schema.Union([Schema.String, Schema.Null])
|
|
@@ -1628,39 +1777,39 @@ const TemplatesRestoreWorkspace200 = /* @__PURE__ */ (() => Schema.Struct({
|
|
|
1628
1777
|
access: Schema.Literal("read-write")
|
|
1629
1778
|
}),
|
|
1630
1779
|
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(
|
|
1780
|
+
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" })),
|
|
1781
|
+
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
1782
|
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
1783
|
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
1784
|
kind: Schema.Literal("started-from"),
|
|
1636
1785
|
access: Schema.Literal("read-only"),
|
|
1637
1786
|
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(
|
|
1787
|
+
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
1788
|
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
1789
|
}),
|
|
1641
1790
|
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(
|
|
1791
|
+
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" })),
|
|
1792
|
+
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
1793
|
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
1794
|
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
1795
|
kind: Schema.Literal("resource"),
|
|
1647
1796
|
access: Schema.Literal("read-only"),
|
|
1648
|
-
resourceId: Schema.String.check(Schema.isPattern(
|
|
1797
|
+
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
1798
|
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
1799
|
}),
|
|
1651
1800
|
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(
|
|
1801
|
+
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" })),
|
|
1802
|
+
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
1803
|
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
1804
|
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
1805
|
kind: Schema.Literal("library-template"),
|
|
1657
1806
|
access: Schema.Literal("read-only"),
|
|
1658
1807
|
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(
|
|
1808
|
+
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
1809
|
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
1810
|
})
|
|
1662
1811
|
])),
|
|
1663
|
-
libraryManifestDigest: Schema.String.check(Schema.isPattern(
|
|
1812
|
+
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
1813
|
createdAt: Schema.String,
|
|
1665
1814
|
updatedAt: Schema.String,
|
|
1666
1815
|
createdBy: Schema.Struct({
|
|
@@ -1683,10 +1832,11 @@ const TemplatesRestoreWorkspace200 = /* @__PURE__ */ (() => Schema.Struct({
|
|
|
1683
1832
|
files: Schema.Record(Schema.String, Schema.String)
|
|
1684
1833
|
}),
|
|
1685
1834
|
source: Schema.Struct({
|
|
1686
|
-
digest: Schema.String.check(Schema.isPattern(
|
|
1835
|
+
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
1836
|
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
1837
|
})
|
|
1689
1838
|
}))();
|
|
1839
|
+
const TemplatesRestoreWorkspace400 = MalformedRequestError;
|
|
1690
1840
|
const TemplatesRestoreWorkspace401 = UnauthorizedError;
|
|
1691
1841
|
const TemplatesRestoreWorkspace403 = ForbiddenError;
|
|
1692
1842
|
const TemplatesRestoreWorkspace404 = ResourceNotFoundError;
|
|
@@ -1699,17 +1849,17 @@ const TemplatesSaveWorkspacePathParams = /* @__PURE__ */ (() => Schema.Struct({
|
|
|
1699
1849
|
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
1850
|
const TemplatesSaveWorkspaceRequestJson = /* @__PURE__ */ (() => Schema.Struct({
|
|
1701
1851
|
expectedRevision: Schema.String,
|
|
1702
|
-
expectedHead: Schema.String.check(Schema.isPattern(
|
|
1852
|
+
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
1853
|
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
1854
|
}))();
|
|
1705
1855
|
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(
|
|
1856
|
+
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}$" })),
|
|
1857
|
+
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}$" })),
|
|
1858
|
+
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
1859
|
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(
|
|
1860
|
+
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}$" }))),
|
|
1861
|
+
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}$" })),
|
|
1862
|
+
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
1863
|
warnings: Schema.Array(Schema.Struct({
|
|
1714
1864
|
code: Schema.String,
|
|
1715
1865
|
severity: Schema.Union([
|
|
@@ -1775,6 +1925,7 @@ const TemplatesSaveWorkspace200 = /* @__PURE__ */ (() => Schema.Struct({
|
|
|
1775
1925
|
}), Schema.Null]))
|
|
1776
1926
|
}))
|
|
1777
1927
|
}))();
|
|
1928
|
+
const TemplatesSaveWorkspace400 = MalformedRequestError;
|
|
1778
1929
|
const TemplatesSaveWorkspace401 = UnauthorizedError;
|
|
1779
1930
|
const TemplatesSaveWorkspace403 = ForbiddenError;
|
|
1780
1931
|
const TemplatesSaveWorkspace404 = ResourceNotFoundError;
|
|
@@ -1785,9 +1936,10 @@ const TemplatesSaveWorkspace503 = ServiceUnavailableError;
|
|
|
1785
1936
|
const TemplatesSaveWorkspace504 = GatewayTimeoutError;
|
|
1786
1937
|
const TemplatesListFamiliesQuery = /* @__PURE__ */ (() => Schema.Struct({
|
|
1787
1938
|
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.
|
|
1939
|
+
cursor: Schema.optionalKey(Schema.String)
|
|
1789
1940
|
}))();
|
|
1790
1941
|
const TemplatesListFamilies200 = TemplateFamilyPage;
|
|
1942
|
+
const TemplatesListFamilies400 = MalformedRequestError;
|
|
1791
1943
|
const TemplatesListFamilies401 = UnauthorizedError;
|
|
1792
1944
|
const TemplatesListFamilies403 = ForbiddenError;
|
|
1793
1945
|
const TemplatesListFamilies422 = ValidationError;
|
|
@@ -1795,6 +1947,7 @@ const TemplatesListFamilies500 = InternalError;
|
|
|
1795
1947
|
const TemplatesListFamilies504 = GatewayTimeoutError;
|
|
1796
1948
|
const TemplatesCreateFamilyRequestJson = /* @__PURE__ */ (() => Schema.Struct({ name: Schema.String.check(Schema.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })) }))();
|
|
1797
1949
|
const TemplatesCreateFamily201 = TemplateFamily;
|
|
1950
|
+
const TemplatesCreateFamily400 = MalformedRequestError;
|
|
1798
1951
|
const TemplatesCreateFamily401 = UnauthorizedError;
|
|
1799
1952
|
const TemplatesCreateFamily403 = ForbiddenError;
|
|
1800
1953
|
const TemplatesCreateFamily422 = ValidationError;
|
|
@@ -1802,6 +1955,7 @@ const TemplatesCreateFamily500 = InternalError;
|
|
|
1802
1955
|
const TemplatesCreateFamily504 = GatewayTimeoutError;
|
|
1803
1956
|
const TemplatesGetFamilyPathParams = /* @__PURE__ */ (() => Schema.Struct({ id: TemplateFamilyId }))();
|
|
1804
1957
|
const TemplatesGetFamily200 = TemplateFamily;
|
|
1958
|
+
const TemplatesGetFamily400 = MalformedRequestError;
|
|
1805
1959
|
const TemplatesGetFamily401 = UnauthorizedError;
|
|
1806
1960
|
const TemplatesGetFamily403 = ForbiddenError;
|
|
1807
1961
|
const TemplatesGetFamily404 = ResourceNotFoundError;
|
|
@@ -1810,6 +1964,7 @@ const TemplatesGetFamily500 = InternalError;
|
|
|
1810
1964
|
const TemplatesGetFamily504 = GatewayTimeoutError;
|
|
1811
1965
|
const TemplatesDeleteFamilyPathParams = /* @__PURE__ */ (() => Schema.Struct({ id: TemplateFamilyId }))();
|
|
1812
1966
|
const TemplatesDeleteFamily200 = SuccessResponse;
|
|
1967
|
+
const TemplatesDeleteFamily400 = MalformedRequestError;
|
|
1813
1968
|
const TemplatesDeleteFamily401 = UnauthorizedError;
|
|
1814
1969
|
const TemplatesDeleteFamily403 = ForbiddenError;
|
|
1815
1970
|
const TemplatesDeleteFamily404 = ResourceNotFoundError;
|
|
@@ -1819,6 +1974,7 @@ const TemplatesDeleteFamily504 = GatewayTimeoutError;
|
|
|
1819
1974
|
const TemplatesRenameFamilyPathParams = /* @__PURE__ */ (() => Schema.Struct({ id: TemplateFamilyId }))();
|
|
1820
1975
|
const TemplatesRenameFamilyRequestJson = /* @__PURE__ */ (() => Schema.Struct({ name: Schema.String.check(Schema.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })) }))();
|
|
1821
1976
|
const TemplatesRenameFamily200 = TemplateFamily;
|
|
1977
|
+
const TemplatesRenameFamily400 = MalformedRequestError;
|
|
1822
1978
|
const TemplatesRenameFamily401 = UnauthorizedError;
|
|
1823
1979
|
const TemplatesRenameFamily403 = ForbiddenError;
|
|
1824
1980
|
const TemplatesRenameFamily404 = ResourceNotFoundError;
|
|
@@ -1830,6 +1986,7 @@ const TemplatesAttachFamilyMemberPathParams = /* @__PURE__ */ (() => Schema.Stru
|
|
|
1830
1986
|
templateId: TemplateId
|
|
1831
1987
|
}))();
|
|
1832
1988
|
const TemplatesAttachFamilyMember200 = TemplateFamily;
|
|
1989
|
+
const TemplatesAttachFamilyMember400 = MalformedRequestError;
|
|
1833
1990
|
const TemplatesAttachFamilyMember401 = UnauthorizedError;
|
|
1834
1991
|
const TemplatesAttachFamilyMember403 = ForbiddenError;
|
|
1835
1992
|
const TemplatesAttachFamilyMember404 = ResourceNotFoundError;
|
|
@@ -1842,6 +1999,7 @@ const TemplatesDetachFamilyMemberPathParams = /* @__PURE__ */ (() => Schema.Stru
|
|
|
1842
1999
|
templateId: TemplateId
|
|
1843
2000
|
}))();
|
|
1844
2001
|
const TemplatesDetachFamilyMember200 = TemplateFamily;
|
|
2002
|
+
const TemplatesDetachFamilyMember400 = MalformedRequestError;
|
|
1845
2003
|
const TemplatesDetachFamilyMember401 = UnauthorizedError;
|
|
1846
2004
|
const TemplatesDetachFamilyMember403 = ForbiddenError;
|
|
1847
2005
|
const TemplatesDetachFamilyMember404 = ResourceNotFoundError;
|
|
@@ -1852,6 +2010,7 @@ const TemplatesDetachFamilyMember504 = GatewayTimeoutError;
|
|
|
1852
2010
|
const TemplatesCreateFamilyFromTemplatePathParams = /* @__PURE__ */ (() => Schema.Struct({ templateId: TemplateId }))();
|
|
1853
2011
|
const TemplatesCreateFamilyFromTemplateRequestJson = /* @__PURE__ */ (() => Schema.Struct({ name: Schema.String.check(Schema.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })) }))();
|
|
1854
2012
|
const TemplatesCreateFamilyFromTemplate201 = TemplateFamily;
|
|
2013
|
+
const TemplatesCreateFamilyFromTemplate400 = MalformedRequestError;
|
|
1855
2014
|
const TemplatesCreateFamilyFromTemplate401 = UnauthorizedError;
|
|
1856
2015
|
const TemplatesCreateFamilyFromTemplate403 = ForbiddenError;
|
|
1857
2016
|
const TemplatesCreateFamilyFromTemplate404 = ResourceNotFoundError;
|
|
@@ -1866,6 +2025,7 @@ const TemplatesCreateFromWebsiteRequestJson = /* @__PURE__ */ (() => Schema.Stru
|
|
|
1866
2025
|
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
2026
|
}))();
|
|
1868
2027
|
const TemplatesCreateFromWebsite201 = TemplateFromWebsite;
|
|
2028
|
+
const TemplatesCreateFromWebsite400 = MalformedRequestError;
|
|
1869
2029
|
const TemplatesCreateFromWebsite401 = UnauthorizedError;
|
|
1870
2030
|
const TemplatesCreateFromWebsite403 = ForbiddenError;
|
|
1871
2031
|
const TemplatesCreateFromWebsite404 = ResourceNotFoundError;
|
|
@@ -1876,9 +2036,9 @@ const TemplatesCreateFromWebsite503 = ServiceUnavailableError;
|
|
|
1876
2036
|
const TemplatesCreateFromWebsite504 = GatewayTimeoutError;
|
|
1877
2037
|
const TemplatesAddEntryPathParams = /* @__PURE__ */ (() => Schema.Struct({ id: TemplateProjectId }))();
|
|
1878
2038
|
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(
|
|
2039
|
+
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
2040
|
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(
|
|
2041
|
+
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
2042
|
description: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
|
|
1883
2043
|
category: Schema.optionalKey(Schema.Union([Schema.Union([
|
|
1884
2044
|
Schema.Literal("transactional"),
|
|
@@ -1891,6 +2051,7 @@ const TemplatesAddEntryRequestJson = /* @__PURE__ */ (() => Schema.Struct({
|
|
|
1891
2051
|
]), Schema.Null]))
|
|
1892
2052
|
}))();
|
|
1893
2053
|
const TemplatesAddEntry201 = Template;
|
|
2054
|
+
const TemplatesAddEntry400 = MalformedRequestError;
|
|
1894
2055
|
const TemplatesAddEntry401 = UnauthorizedError;
|
|
1895
2056
|
const TemplatesAddEntry403 = ForbiddenError;
|
|
1896
2057
|
const TemplatesAddEntry404 = ResourceNotFoundError;
|
|
@@ -1902,6 +2063,7 @@ var TemplatesGroup = class extends HttpApiGroup.make("Templates").add(HttpApiEnd
|
|
|
1902
2063
|
query: TemplatesListQuery,
|
|
1903
2064
|
success: TemplatesList200,
|
|
1904
2065
|
error: [
|
|
2066
|
+
TemplatesList400.pipe(HttpApiSchema.status(400)),
|
|
1905
2067
|
TemplatesList401.pipe(HttpApiSchema.status(401)),
|
|
1906
2068
|
TemplatesList403.pipe(HttpApiSchema.status(403)),
|
|
1907
2069
|
TemplatesList422.pipe(HttpApiSchema.status(422)),
|
|
@@ -1913,6 +2075,7 @@ var TemplatesGroup = class extends HttpApiGroup.make("Templates").add(HttpApiEnd
|
|
|
1913
2075
|
payload: TemplatesCreateRequestJson,
|
|
1914
2076
|
success: TemplatesCreate201.pipe(HttpApiSchema.status(201)),
|
|
1915
2077
|
error: [
|
|
2078
|
+
TemplatesCreate400.pipe(HttpApiSchema.status(400)),
|
|
1916
2079
|
TemplatesCreate401.pipe(HttpApiSchema.status(401)),
|
|
1917
2080
|
TemplatesCreate403.pipe(HttpApiSchema.status(403)),
|
|
1918
2081
|
TemplatesCreate404.pipe(HttpApiSchema.status(404)),
|
|
@@ -1926,6 +2089,7 @@ var TemplatesGroup = class extends HttpApiGroup.make("Templates").add(HttpApiEnd
|
|
|
1926
2089
|
params: TemplatesGetByIdPathParams,
|
|
1927
2090
|
success: TemplatesGetById200,
|
|
1928
2091
|
error: [
|
|
2092
|
+
TemplatesGetById400.pipe(HttpApiSchema.status(400)),
|
|
1929
2093
|
TemplatesGetById401.pipe(HttpApiSchema.status(401)),
|
|
1930
2094
|
TemplatesGetById403.pipe(HttpApiSchema.status(403)),
|
|
1931
2095
|
TemplatesGetById404.pipe(HttpApiSchema.status(404)),
|
|
@@ -1937,6 +2101,7 @@ var TemplatesGroup = class extends HttpApiGroup.make("Templates").add(HttpApiEnd
|
|
|
1937
2101
|
params: TemplatesRemovePathParams,
|
|
1938
2102
|
success: TemplatesRemove200,
|
|
1939
2103
|
error: [
|
|
2104
|
+
TemplatesRemove400.pipe(HttpApiSchema.status(400)),
|
|
1940
2105
|
TemplatesRemove401.pipe(HttpApiSchema.status(401)),
|
|
1941
2106
|
TemplatesRemove403.pipe(HttpApiSchema.status(403)),
|
|
1942
2107
|
TemplatesRemove404.pipe(HttpApiSchema.status(404)),
|
|
@@ -1949,6 +2114,7 @@ var TemplatesGroup = class extends HttpApiGroup.make("Templates").add(HttpApiEnd
|
|
|
1949
2114
|
payload: TemplatesUpdateRequestJson,
|
|
1950
2115
|
success: TemplatesUpdate200,
|
|
1951
2116
|
error: [
|
|
2117
|
+
TemplatesUpdate400.pipe(HttpApiSchema.status(400)),
|
|
1952
2118
|
TemplatesUpdate401.pipe(HttpApiSchema.status(401)),
|
|
1953
2119
|
TemplatesUpdate403.pipe(HttpApiSchema.status(403)),
|
|
1954
2120
|
TemplatesUpdate404.pipe(HttpApiSchema.status(404)),
|
|
@@ -1962,6 +2128,7 @@ var TemplatesGroup = class extends HttpApiGroup.make("Templates").add(HttpApiEnd
|
|
|
1962
2128
|
query: TemplatesListInputContractsQuery,
|
|
1963
2129
|
success: TemplatesListInputContracts200,
|
|
1964
2130
|
error: [
|
|
2131
|
+
TemplatesListInputContracts400.pipe(HttpApiSchema.status(400)),
|
|
1965
2132
|
TemplatesListInputContracts401.pipe(HttpApiSchema.status(401)),
|
|
1966
2133
|
TemplatesListInputContracts403.pipe(HttpApiSchema.status(403)),
|
|
1967
2134
|
TemplatesListInputContracts404.pipe(HttpApiSchema.status(404)),
|
|
@@ -1973,6 +2140,7 @@ var TemplatesGroup = class extends HttpApiGroup.make("Templates").add(HttpApiEnd
|
|
|
1973
2140
|
params: TemplatesGetInputContractPathParams,
|
|
1974
2141
|
success: TemplatesGetInputContract200,
|
|
1975
2142
|
error: [
|
|
2143
|
+
TemplatesGetInputContract400.pipe(HttpApiSchema.status(400)),
|
|
1976
2144
|
TemplatesGetInputContract401.pipe(HttpApiSchema.status(401)),
|
|
1977
2145
|
TemplatesGetInputContract403.pipe(HttpApiSchema.status(403)),
|
|
1978
2146
|
TemplatesGetInputContract404.pipe(HttpApiSchema.status(404)),
|
|
@@ -1985,6 +2153,7 @@ var TemplatesGroup = class extends HttpApiGroup.make("Templates").add(HttpApiEnd
|
|
|
1985
2153
|
payload: TemplatesPublishRequestJson,
|
|
1986
2154
|
success: TemplatesPublish201.pipe(HttpApiSchema.status(201)),
|
|
1987
2155
|
error: [
|
|
2156
|
+
TemplatesPublish400.pipe(HttpApiSchema.status(400)),
|
|
1988
2157
|
TemplatesPublish401.pipe(HttpApiSchema.status(401)),
|
|
1989
2158
|
TemplatesPublish403.pipe(HttpApiSchema.status(403)),
|
|
1990
2159
|
TemplatesPublish404.pipe(HttpApiSchema.status(404)),
|
|
@@ -1998,6 +2167,7 @@ var TemplatesGroup = class extends HttpApiGroup.make("Templates").add(HttpApiEnd
|
|
|
1998
2167
|
params: TemplatesGetPublicationPathParams,
|
|
1999
2168
|
success: TemplatesGetPublication200,
|
|
2000
2169
|
error: [
|
|
2170
|
+
TemplatesGetPublication400.pipe(HttpApiSchema.status(400)),
|
|
2001
2171
|
TemplatesGetPublication401.pipe(HttpApiSchema.status(401)),
|
|
2002
2172
|
TemplatesGetPublication403.pipe(HttpApiSchema.status(403)),
|
|
2003
2173
|
TemplatesGetPublication404.pipe(HttpApiSchema.status(404)),
|
|
@@ -2010,6 +2180,7 @@ var TemplatesGroup = class extends HttpApiGroup.make("Templates").add(HttpApiEnd
|
|
|
2010
2180
|
payload: TemplatesRenderPublicationRequestJson,
|
|
2011
2181
|
success: TemplatesRenderPublication200,
|
|
2012
2182
|
error: [
|
|
2183
|
+
TemplatesRenderPublication400.pipe(HttpApiSchema.status(400)),
|
|
2013
2184
|
TemplatesRenderPublication401.pipe(HttpApiSchema.status(401)),
|
|
2014
2185
|
TemplatesRenderPublication403.pipe(HttpApiSchema.status(403)),
|
|
2015
2186
|
TemplatesRenderPublication404.pipe(HttpApiSchema.status(404)),
|
|
@@ -2022,6 +2193,7 @@ var TemplatesGroup = class extends HttpApiGroup.make("Templates").add(HttpApiEnd
|
|
|
2022
2193
|
params: TemplatesGetGitRepositoryPathParams,
|
|
2023
2194
|
success: TemplatesGetGitRepository200,
|
|
2024
2195
|
error: [
|
|
2196
|
+
TemplatesGetGitRepository400.pipe(HttpApiSchema.status(400)),
|
|
2025
2197
|
TemplatesGetGitRepository401.pipe(HttpApiSchema.status(401)),
|
|
2026
2198
|
TemplatesGetGitRepository403.pipe(HttpApiSchema.status(403)),
|
|
2027
2199
|
TemplatesGetGitRepository404.pipe(HttpApiSchema.status(404)),
|
|
@@ -2036,6 +2208,7 @@ var TemplatesGroup = class extends HttpApiGroup.make("Templates").add(HttpApiEnd
|
|
|
2036
2208
|
payload: TemplatesIssueGitCredentialRequestJson,
|
|
2037
2209
|
success: TemplatesIssueGitCredential200,
|
|
2038
2210
|
error: [
|
|
2211
|
+
TemplatesIssueGitCredential400.pipe(HttpApiSchema.status(400)),
|
|
2039
2212
|
TemplatesIssueGitCredential401.pipe(HttpApiSchema.status(401)),
|
|
2040
2213
|
TemplatesIssueGitCredential403.pipe(HttpApiSchema.status(403)),
|
|
2041
2214
|
TemplatesIssueGitCredential404.pipe(HttpApiSchema.status(404)),
|
|
@@ -2049,6 +2222,7 @@ var TemplatesGroup = class extends HttpApiGroup.make("Templates").add(HttpApiEnd
|
|
|
2049
2222
|
params: TemplatesOpenWorkspacePathParams,
|
|
2050
2223
|
success: TemplatesOpenWorkspace200,
|
|
2051
2224
|
error: [
|
|
2225
|
+
TemplatesOpenWorkspace400.pipe(HttpApiSchema.status(400)),
|
|
2052
2226
|
TemplatesOpenWorkspace401.pipe(HttpApiSchema.status(401)),
|
|
2053
2227
|
TemplatesOpenWorkspace403.pipe(HttpApiSchema.status(403)),
|
|
2054
2228
|
TemplatesOpenWorkspace404.pipe(HttpApiSchema.status(404)),
|
|
@@ -2064,6 +2238,7 @@ var TemplatesGroup = class extends HttpApiGroup.make("Templates").add(HttpApiEnd
|
|
|
2064
2238
|
payload: TemplatesPatchWorkspaceRequestJson,
|
|
2065
2239
|
success: TemplatesPatchWorkspace200,
|
|
2066
2240
|
error: [
|
|
2241
|
+
TemplatesPatchWorkspace400.pipe(HttpApiSchema.status(400)),
|
|
2067
2242
|
TemplatesPatchWorkspace401.pipe(HttpApiSchema.status(401)),
|
|
2068
2243
|
TemplatesPatchWorkspace403.pipe(HttpApiSchema.status(403)),
|
|
2069
2244
|
TemplatesPatchWorkspace404.pipe(HttpApiSchema.status(404)),
|
|
@@ -2079,6 +2254,7 @@ var TemplatesGroup = class extends HttpApiGroup.make("Templates").add(HttpApiEnd
|
|
|
2079
2254
|
payload: TemplatesPutWorkspaceAssetRequestJson,
|
|
2080
2255
|
success: TemplatesPutWorkspaceAsset200,
|
|
2081
2256
|
error: [
|
|
2257
|
+
TemplatesPutWorkspaceAsset400.pipe(HttpApiSchema.status(400)),
|
|
2082
2258
|
TemplatesPutWorkspaceAsset401.pipe(HttpApiSchema.status(401)),
|
|
2083
2259
|
TemplatesPutWorkspaceAsset403.pipe(HttpApiSchema.status(403)),
|
|
2084
2260
|
TemplatesPutWorkspaceAsset404.pipe(HttpApiSchema.status(404)),
|
|
@@ -2093,6 +2269,7 @@ var TemplatesGroup = class extends HttpApiGroup.make("Templates").add(HttpApiEnd
|
|
|
2093
2269
|
payload: TemplatesCheckWorkspaceRequestJson,
|
|
2094
2270
|
success: TemplatesCheckWorkspace200,
|
|
2095
2271
|
error: [
|
|
2272
|
+
TemplatesCheckWorkspace400.pipe(HttpApiSchema.status(400)),
|
|
2096
2273
|
TemplatesCheckWorkspace401.pipe(HttpApiSchema.status(401)),
|
|
2097
2274
|
TemplatesCheckWorkspace403.pipe(HttpApiSchema.status(403)),
|
|
2098
2275
|
TemplatesCheckWorkspace404.pipe(HttpApiSchema.status(404)),
|
|
@@ -2108,6 +2285,7 @@ var TemplatesGroup = class extends HttpApiGroup.make("Templates").add(HttpApiEnd
|
|
|
2108
2285
|
payload: TemplatesResolveWorkspaceConflictRequestJson,
|
|
2109
2286
|
success: TemplatesResolveWorkspaceConflict200,
|
|
2110
2287
|
error: [
|
|
2288
|
+
TemplatesResolveWorkspaceConflict400.pipe(HttpApiSchema.status(400)),
|
|
2111
2289
|
TemplatesResolveWorkspaceConflict401.pipe(HttpApiSchema.status(401)),
|
|
2112
2290
|
TemplatesResolveWorkspaceConflict403.pipe(HttpApiSchema.status(403)),
|
|
2113
2291
|
TemplatesResolveWorkspaceConflict404.pipe(HttpApiSchema.status(404)),
|
|
@@ -2122,6 +2300,7 @@ var TemplatesGroup = class extends HttpApiGroup.make("Templates").add(HttpApiEnd
|
|
|
2122
2300
|
payload: TemplatesDiffWorkspaceRequestJson,
|
|
2123
2301
|
success: TemplatesDiffWorkspace200,
|
|
2124
2302
|
error: [
|
|
2303
|
+
TemplatesDiffWorkspace400.pipe(HttpApiSchema.status(400)),
|
|
2125
2304
|
TemplatesDiffWorkspace401.pipe(HttpApiSchema.status(401)),
|
|
2126
2305
|
TemplatesDiffWorkspace403.pipe(HttpApiSchema.status(403)),
|
|
2127
2306
|
TemplatesDiffWorkspace404.pipe(HttpApiSchema.status(404)),
|
|
@@ -2136,6 +2315,7 @@ var TemplatesGroup = class extends HttpApiGroup.make("Templates").add(HttpApiEnd
|
|
|
2136
2315
|
payload: TemplatesRenderWorkspaceFixtureRequestJson,
|
|
2137
2316
|
success: TemplatesRenderWorkspaceFixture200,
|
|
2138
2317
|
error: [
|
|
2318
|
+
TemplatesRenderWorkspaceFixture400.pipe(HttpApiSchema.status(400)),
|
|
2139
2319
|
TemplatesRenderWorkspaceFixture401.pipe(HttpApiSchema.status(401)),
|
|
2140
2320
|
TemplatesRenderWorkspaceFixture403.pipe(HttpApiSchema.status(403)),
|
|
2141
2321
|
TemplatesRenderWorkspaceFixture404.pipe(HttpApiSchema.status(404)),
|
|
@@ -2150,6 +2330,7 @@ var TemplatesGroup = class extends HttpApiGroup.make("Templates").add(HttpApiEnd
|
|
|
2150
2330
|
query: TemplatesWorkspaceHistoryQuery,
|
|
2151
2331
|
success: TemplatesWorkspaceHistory200,
|
|
2152
2332
|
error: [
|
|
2333
|
+
TemplatesWorkspaceHistory400.pipe(HttpApiSchema.status(400)),
|
|
2153
2334
|
TemplatesWorkspaceHistory401.pipe(HttpApiSchema.status(401)),
|
|
2154
2335
|
TemplatesWorkspaceHistory403.pipe(HttpApiSchema.status(403)),
|
|
2155
2336
|
TemplatesWorkspaceHistory404.pipe(HttpApiSchema.status(404)),
|
|
@@ -2165,6 +2346,7 @@ var TemplatesGroup = class extends HttpApiGroup.make("Templates").add(HttpApiEnd
|
|
|
2165
2346
|
payload: TemplatesAttachWorkspaceResourceRequestJson,
|
|
2166
2347
|
success: TemplatesAttachWorkspaceResource200,
|
|
2167
2348
|
error: [
|
|
2349
|
+
TemplatesAttachWorkspaceResource400.pipe(HttpApiSchema.status(400)),
|
|
2168
2350
|
TemplatesAttachWorkspaceResource401.pipe(HttpApiSchema.status(401)),
|
|
2169
2351
|
TemplatesAttachWorkspaceResource403.pipe(HttpApiSchema.status(403)),
|
|
2170
2352
|
TemplatesAttachWorkspaceResource404.pipe(HttpApiSchema.status(404)),
|
|
@@ -2180,6 +2362,7 @@ var TemplatesGroup = class extends HttpApiGroup.make("Templates").add(HttpApiEnd
|
|
|
2180
2362
|
payload: TemplatesRemoveWorkspaceResourceRequestJson,
|
|
2181
2363
|
success: TemplatesRemoveWorkspaceResource200,
|
|
2182
2364
|
error: [
|
|
2365
|
+
TemplatesRemoveWorkspaceResource400.pipe(HttpApiSchema.status(400)),
|
|
2183
2366
|
TemplatesRemoveWorkspaceResource401.pipe(HttpApiSchema.status(401)),
|
|
2184
2367
|
TemplatesRemoveWorkspaceResource403.pipe(HttpApiSchema.status(403)),
|
|
2185
2368
|
TemplatesRemoveWorkspaceResource404.pipe(HttpApiSchema.status(404)),
|
|
@@ -2195,6 +2378,7 @@ var TemplatesGroup = class extends HttpApiGroup.make("Templates").add(HttpApiEnd
|
|
|
2195
2378
|
payload: TemplatesRestoreWorkspaceRequestJson,
|
|
2196
2379
|
success: TemplatesRestoreWorkspace200,
|
|
2197
2380
|
error: [
|
|
2381
|
+
TemplatesRestoreWorkspace400.pipe(HttpApiSchema.status(400)),
|
|
2198
2382
|
TemplatesRestoreWorkspace401.pipe(HttpApiSchema.status(401)),
|
|
2199
2383
|
TemplatesRestoreWorkspace403.pipe(HttpApiSchema.status(403)),
|
|
2200
2384
|
TemplatesRestoreWorkspace404.pipe(HttpApiSchema.status(404)),
|
|
@@ -2210,6 +2394,7 @@ var TemplatesGroup = class extends HttpApiGroup.make("Templates").add(HttpApiEnd
|
|
|
2210
2394
|
payload: TemplatesSaveWorkspaceRequestJson,
|
|
2211
2395
|
success: TemplatesSaveWorkspace200,
|
|
2212
2396
|
error: [
|
|
2397
|
+
TemplatesSaveWorkspace400.pipe(HttpApiSchema.status(400)),
|
|
2213
2398
|
TemplatesSaveWorkspace401.pipe(HttpApiSchema.status(401)),
|
|
2214
2399
|
TemplatesSaveWorkspace403.pipe(HttpApiSchema.status(403)),
|
|
2215
2400
|
TemplatesSaveWorkspace404.pipe(HttpApiSchema.status(404)),
|
|
@@ -2223,6 +2408,7 @@ var TemplatesGroup = class extends HttpApiGroup.make("Templates").add(HttpApiEnd
|
|
|
2223
2408
|
query: TemplatesListFamiliesQuery,
|
|
2224
2409
|
success: TemplatesListFamilies200,
|
|
2225
2410
|
error: [
|
|
2411
|
+
TemplatesListFamilies400.pipe(HttpApiSchema.status(400)),
|
|
2226
2412
|
TemplatesListFamilies401.pipe(HttpApiSchema.status(401)),
|
|
2227
2413
|
TemplatesListFamilies403.pipe(HttpApiSchema.status(403)),
|
|
2228
2414
|
TemplatesListFamilies422.pipe(HttpApiSchema.status(422)),
|
|
@@ -2233,6 +2419,7 @@ var TemplatesGroup = class extends HttpApiGroup.make("Templates").add(HttpApiEnd
|
|
|
2233
2419
|
payload: TemplatesCreateFamilyRequestJson,
|
|
2234
2420
|
success: TemplatesCreateFamily201.pipe(HttpApiSchema.status(201)),
|
|
2235
2421
|
error: [
|
|
2422
|
+
TemplatesCreateFamily400.pipe(HttpApiSchema.status(400)),
|
|
2236
2423
|
TemplatesCreateFamily401.pipe(HttpApiSchema.status(401)),
|
|
2237
2424
|
TemplatesCreateFamily403.pipe(HttpApiSchema.status(403)),
|
|
2238
2425
|
TemplatesCreateFamily422.pipe(HttpApiSchema.status(422)),
|
|
@@ -2243,6 +2430,7 @@ var TemplatesGroup = class extends HttpApiGroup.make("Templates").add(HttpApiEnd
|
|
|
2243
2430
|
params: TemplatesGetFamilyPathParams,
|
|
2244
2431
|
success: TemplatesGetFamily200,
|
|
2245
2432
|
error: [
|
|
2433
|
+
TemplatesGetFamily400.pipe(HttpApiSchema.status(400)),
|
|
2246
2434
|
TemplatesGetFamily401.pipe(HttpApiSchema.status(401)),
|
|
2247
2435
|
TemplatesGetFamily403.pipe(HttpApiSchema.status(403)),
|
|
2248
2436
|
TemplatesGetFamily404.pipe(HttpApiSchema.status(404)),
|
|
@@ -2254,6 +2442,7 @@ var TemplatesGroup = class extends HttpApiGroup.make("Templates").add(HttpApiEnd
|
|
|
2254
2442
|
params: TemplatesDeleteFamilyPathParams,
|
|
2255
2443
|
success: TemplatesDeleteFamily200,
|
|
2256
2444
|
error: [
|
|
2445
|
+
TemplatesDeleteFamily400.pipe(HttpApiSchema.status(400)),
|
|
2257
2446
|
TemplatesDeleteFamily401.pipe(HttpApiSchema.status(401)),
|
|
2258
2447
|
TemplatesDeleteFamily403.pipe(HttpApiSchema.status(403)),
|
|
2259
2448
|
TemplatesDeleteFamily404.pipe(HttpApiSchema.status(404)),
|
|
@@ -2266,6 +2455,7 @@ var TemplatesGroup = class extends HttpApiGroup.make("Templates").add(HttpApiEnd
|
|
|
2266
2455
|
payload: TemplatesRenameFamilyRequestJson,
|
|
2267
2456
|
success: TemplatesRenameFamily200,
|
|
2268
2457
|
error: [
|
|
2458
|
+
TemplatesRenameFamily400.pipe(HttpApiSchema.status(400)),
|
|
2269
2459
|
TemplatesRenameFamily401.pipe(HttpApiSchema.status(401)),
|
|
2270
2460
|
TemplatesRenameFamily403.pipe(HttpApiSchema.status(403)),
|
|
2271
2461
|
TemplatesRenameFamily404.pipe(HttpApiSchema.status(404)),
|
|
@@ -2277,6 +2467,7 @@ var TemplatesGroup = class extends HttpApiGroup.make("Templates").add(HttpApiEnd
|
|
|
2277
2467
|
params: TemplatesAttachFamilyMemberPathParams,
|
|
2278
2468
|
success: TemplatesAttachFamilyMember200,
|
|
2279
2469
|
error: [
|
|
2470
|
+
TemplatesAttachFamilyMember400.pipe(HttpApiSchema.status(400)),
|
|
2280
2471
|
TemplatesAttachFamilyMember401.pipe(HttpApiSchema.status(401)),
|
|
2281
2472
|
TemplatesAttachFamilyMember403.pipe(HttpApiSchema.status(403)),
|
|
2282
2473
|
TemplatesAttachFamilyMember404.pipe(HttpApiSchema.status(404)),
|
|
@@ -2289,6 +2480,7 @@ var TemplatesGroup = class extends HttpApiGroup.make("Templates").add(HttpApiEnd
|
|
|
2289
2480
|
params: TemplatesDetachFamilyMemberPathParams,
|
|
2290
2481
|
success: TemplatesDetachFamilyMember200,
|
|
2291
2482
|
error: [
|
|
2483
|
+
TemplatesDetachFamilyMember400.pipe(HttpApiSchema.status(400)),
|
|
2292
2484
|
TemplatesDetachFamilyMember401.pipe(HttpApiSchema.status(401)),
|
|
2293
2485
|
TemplatesDetachFamilyMember403.pipe(HttpApiSchema.status(403)),
|
|
2294
2486
|
TemplatesDetachFamilyMember404.pipe(HttpApiSchema.status(404)),
|
|
@@ -2302,6 +2494,7 @@ var TemplatesGroup = class extends HttpApiGroup.make("Templates").add(HttpApiEnd
|
|
|
2302
2494
|
payload: TemplatesCreateFamilyFromTemplateRequestJson,
|
|
2303
2495
|
success: TemplatesCreateFamilyFromTemplate201.pipe(HttpApiSchema.status(201)),
|
|
2304
2496
|
error: [
|
|
2497
|
+
TemplatesCreateFamilyFromTemplate400.pipe(HttpApiSchema.status(400)),
|
|
2305
2498
|
TemplatesCreateFamilyFromTemplate401.pipe(HttpApiSchema.status(401)),
|
|
2306
2499
|
TemplatesCreateFamilyFromTemplate403.pipe(HttpApiSchema.status(403)),
|
|
2307
2500
|
TemplatesCreateFamilyFromTemplate404.pipe(HttpApiSchema.status(404)),
|
|
@@ -2315,6 +2508,7 @@ var TemplatesGroup = class extends HttpApiGroup.make("Templates").add(HttpApiEnd
|
|
|
2315
2508
|
payload: TemplatesCreateFromWebsiteRequestJson,
|
|
2316
2509
|
success: TemplatesCreateFromWebsite201.pipe(HttpApiSchema.status(201)),
|
|
2317
2510
|
error: [
|
|
2511
|
+
TemplatesCreateFromWebsite400.pipe(HttpApiSchema.status(400)),
|
|
2318
2512
|
TemplatesCreateFromWebsite401.pipe(HttpApiSchema.status(401)),
|
|
2319
2513
|
TemplatesCreateFromWebsite403.pipe(HttpApiSchema.status(403)),
|
|
2320
2514
|
TemplatesCreateFromWebsite404.pipe(HttpApiSchema.status(404)),
|
|
@@ -2329,6 +2523,7 @@ var TemplatesGroup = class extends HttpApiGroup.make("Templates").add(HttpApiEnd
|
|
|
2329
2523
|
payload: TemplatesAddEntryRequestJson,
|
|
2330
2524
|
success: TemplatesAddEntry201.pipe(HttpApiSchema.status(201)),
|
|
2331
2525
|
error: [
|
|
2526
|
+
TemplatesAddEntry400.pipe(HttpApiSchema.status(400)),
|
|
2332
2527
|
TemplatesAddEntry401.pipe(HttpApiSchema.status(401)),
|
|
2333
2528
|
TemplatesAddEntry403.pipe(HttpApiSchema.status(403)),
|
|
2334
2529
|
TemplatesAddEntry404.pipe(HttpApiSchema.status(404)),
|
|
@@ -2338,6 +2533,6 @@ var TemplatesGroup = class extends HttpApiGroup.make("Templates").add(HttpApiEnd
|
|
|
2338
2533
|
TemplatesAddEntry504.pipe(HttpApiSchema.status(504))
|
|
2339
2534
|
]
|
|
2340
2535
|
}).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 };
|
|
2536
|
+
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, TemplatesDeleteFamily200, TemplatesDeleteFamily400, TemplatesDeleteFamily401, TemplatesDeleteFamily403, TemplatesDeleteFamily404, TemplatesDeleteFamily422, TemplatesDeleteFamily500, TemplatesDeleteFamily504, TemplatesDeleteFamilyPathParams, 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, TemplatesRemove200, TemplatesRemove400, TemplatesRemove401, TemplatesRemove403, TemplatesRemove404, TemplatesRemove422, TemplatesRemove500, TemplatesRemove504, TemplatesRemovePathParams, 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
2537
|
|
|
2343
2538
|
//# sourceMappingURL=templates.js.map
|