samva 0.3.0 → 0.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/AGENTS.md +1 -1
- package/README.md +5 -1
- package/dist/client/sdk.gen.d.ts +167 -184
- package/dist/client/types.gen.d.ts +1362 -662
- package/dist/{client-BOghX8fr.js → client-BmZK_uCt.js} +1797 -935
- package/dist/client-attribution-BslSOa_8.js +9 -0
- package/dist/client-attribution.d.ts +2 -0
- package/dist/effect/api-keys.d.ts +51 -51
- package/dist/effect/api-keys.js +1 -1
- package/dist/effect/campaigns.d.ts +253 -219
- package/dist/effect/campaigns.js +1 -1
- package/dist/effect/categories.d.ts +6 -6
- package/dist/effect/client.js +1 -1
- package/dist/effect/contacts.d.ts +225 -225
- package/dist/effect/contacts.js +1 -1
- package/dist/effect/conversations.d.ts +293 -293
- package/dist/effect/conversations.js +1 -1
- package/dist/effect/design.d.ts +76 -76
- package/dist/effect/design.js +1 -1
- package/dist/effect/email.d.ts +225 -213
- package/dist/effect/email.js +2 -2
- package/dist/effect/generated.d.ts +12174 -11888
- package/dist/effect/index.js +1 -1
- package/dist/effect/internal/client.d.ts +1 -1
- package/dist/effect/internal/operation.d.ts +20 -19
- package/dist/effect/media.d.ts +9 -9
- package/dist/effect/media.js +1 -1
- package/dist/effect/messages.d.ts +64 -61
- package/dist/effect/messages.js +1 -1
- package/dist/effect/operations.d.ts +17 -17
- package/dist/effect/operations.js +1 -1
- package/dist/effect/organizations.d.ts +162 -162
- package/dist/effect/organizations.js +1 -1
- package/dist/effect/runtime.d.ts +0 -2
- package/dist/effect/scheduled-messages.d.ts +290 -276
- package/dist/effect/scheduled-messages.js +1 -1
- package/dist/effect/templates.d.ts +1371 -1554
- package/dist/effect/templates.js +40 -30
- package/dist/effect/webhooks.d.ts +47 -47
- package/dist/effect/webhooks.js +2 -2
- package/dist/index.js +1 -1
- package/dist/{normalize-BKFjbR9t.js → normalize-BiIJnycv.js} +2 -3
- package/dist/{operation-C2Q4cFJL.js → operation-B1knNlxk.js} +65 -38
- package/dist/promises/index.d.ts +10 -8
- package/dist/promises/index.js +1 -1
- package/dist/promises/types.gen.d.ts +1 -1
- package/dist/{promises-oiy7mOyu.js → promises-n1opem5V.js} +293 -262
- package/dist/service-map.d.ts +70 -44
- package/package.json +13 -14
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { n as clientAttribution, t as CLIENT_ATTRIBUTION_HEADER } from "./client-attribution-BslSOa_8.js";
|
|
1
2
|
import { Context, Effect, Layer, Schema, SchemaTransformation } from "effect";
|
|
2
3
|
import * as Schema$1 from "effect/Schema";
|
|
3
4
|
import { HttpApi, HttpApiClient, HttpApiEndpoint, HttpApiGroup, HttpApiMiddleware, HttpApiSchema, HttpApiSecurity, OpenApi } from "effect/unstable/httpapi";
|
|
@@ -79,6 +80,14 @@ const MediaId = Schema$1.String.pipe(Schema$1.brand("MediaId")).check(Schema$1.i
|
|
|
79
80
|
expected: "a string matching the RegExp ^media_[0-9a-hjkmnp-tv-z]{16,24}$",
|
|
80
81
|
identifier: "MediaId"
|
|
81
82
|
}));
|
|
83
|
+
const TemplatePublicationId = Schema$1.String.pipe(Schema$1.brand("TemplatePublicationId")).check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^tpub_[0-9a-hjkmnp-tv-z]{16,24}$")).annotate({
|
|
84
|
+
expected: "a string matching the RegExp ^tpub_[0-9a-hjkmnp-tv-z]{16,24}$",
|
|
85
|
+
identifier: "TemplatePublicationId"
|
|
86
|
+
}));
|
|
87
|
+
const TemplateInputContractId = Schema$1.String.pipe(Schema$1.brand("TemplateInputContractId")).check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^tcon_[0-9a-hjkmnp-tv-z]{16,24}$")).annotate({
|
|
88
|
+
expected: "a string matching the RegExp ^tcon_[0-9a-hjkmnp-tv-z]{16,24}$",
|
|
89
|
+
identifier: "TemplateInputContractId"
|
|
90
|
+
}));
|
|
82
91
|
const TemplateId = Schema$1.String.pipe(Schema$1.brand("TemplateId")).check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^tmpl_[0-9a-hjkmnp-tv-z]{16,24}$")).annotate({
|
|
83
92
|
expected: "a string matching the RegExp ^tmpl_[0-9a-hjkmnp-tv-z]{16,24}$",
|
|
84
93
|
identifier: "TemplateId"
|
|
@@ -347,17 +356,9 @@ const OperationResource = Schema$1.Struct({
|
|
|
347
356
|
type: Schema$1.String.check(Schema$1.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema$1.isMaxLength(80).annotate({ expected: "a value with a length of at most 80" })),
|
|
348
357
|
id: Schema$1.String.check(Schema$1.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema$1.isMaxLength(255).annotate({ expected: "a value with a length of at most 255" }))
|
|
349
358
|
}).annotate({ identifier: "OperationResource" });
|
|
350
|
-
const
|
|
351
|
-
expected: "a string matching the RegExp ^
|
|
352
|
-
identifier: "
|
|
353
|
-
}));
|
|
354
|
-
const MailboxExtensionId = Schema$1.String.pipe(Schema$1.brand("MailboxExtensionId")).check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^ext_[0-9a-hjkmnp-tv-z]{16,24}$")).annotate({
|
|
355
|
-
expected: "a string matching the RegExp ^ext_[0-9a-hjkmnp-tv-z]{16,24}$",
|
|
356
|
-
identifier: "MailboxExtensionId"
|
|
357
|
-
}));
|
|
358
|
-
const TemplateSourceVersionId = Schema$1.String.pipe(Schema$1.brand("TemplateSourceVersionId")).check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^src_[0-9a-hjkmnp-tv-z]{16,24}$")).annotate({
|
|
359
|
-
expected: "a string matching the RegExp ^src_[0-9a-hjkmnp-tv-z]{16,24}$",
|
|
360
|
-
identifier: "TemplateSourceVersionId"
|
|
359
|
+
const TemplateProjectId = Schema$1.String.pipe(Schema$1.brand("TemplateProjectId")).check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^tproj_[0-9a-hjkmnp-tv-z]{16,24}$")).annotate({
|
|
360
|
+
expected: "a string matching the RegExp ^tproj_[0-9a-hjkmnp-tv-z]{16,24}$",
|
|
361
|
+
identifier: "TemplateProjectId"
|
|
361
362
|
}));
|
|
362
363
|
const TemplateFamilyId = Schema$1.String.pipe(Schema$1.brand("TemplateFamilyId")).check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^tfam_[0-9a-hjkmnp-tv-z]{16,24}$")).annotate({
|
|
363
364
|
expected: "a string matching the RegExp ^tfam_[0-9a-hjkmnp-tv-z]{16,24}$",
|
|
@@ -367,51 +368,10 @@ const TemplateFromDefault = Schema$1.Struct({
|
|
|
367
368
|
email: Schema$1.String.check(Schema$1.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })),
|
|
368
369
|
name: Schema$1.optionalKey(Schema$1.Union([Schema$1.String, Schema$1.Null]))
|
|
369
370
|
}).annotate({ identifier: "TemplateFromDefault" });
|
|
370
|
-
const
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
"number",
|
|
375
|
-
"boolean",
|
|
376
|
-
"date",
|
|
377
|
-
"array",
|
|
378
|
-
"object"
|
|
379
|
-
]),
|
|
380
|
-
required: Schema$1.Boolean,
|
|
381
|
-
default: Schema$1.optionalKey(Schema$1.Union([JsonValue, Schema$1.Null])),
|
|
382
|
-
description: Schema$1.optionalKey(Schema$1.Union([Schema$1.String, Schema$1.Null])),
|
|
383
|
-
validation: Schema$1.optionalKey(Schema$1.Union([Schema$1.Struct({
|
|
384
|
-
pattern: Schema$1.optionalKey(Schema$1.Union([Schema$1.String, Schema$1.Null])),
|
|
385
|
-
min: Schema$1.optionalKey(Schema$1.Union([Schema$1.Finite.check(Schema$1.isFinite().annotate({ expected: "a finite number" })), Schema$1.Null])),
|
|
386
|
-
max: Schema$1.optionalKey(Schema$1.Union([Schema$1.Finite.check(Schema$1.isFinite().annotate({ expected: "a finite number" })), Schema$1.Null])),
|
|
387
|
-
minLength: Schema$1.optionalKey(Schema$1.Union([Schema$1.Finite.check(Schema$1.isFinite().annotate({ expected: "a finite number" })).check(Schema$1.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })), Schema$1.Null])),
|
|
388
|
-
maxLength: Schema$1.optionalKey(Schema$1.Union([Schema$1.Finite.check(Schema$1.isFinite().annotate({ expected: "a finite number" })).check(Schema$1.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })), Schema$1.Null])),
|
|
389
|
-
enum: Schema$1.optionalKey(Schema$1.Union([Schema$1.Array(Schema$1.String), Schema$1.Null])),
|
|
390
|
-
format: Schema$1.optionalKey(Schema$1.Union([Schema$1.Literals([
|
|
391
|
-
"email",
|
|
392
|
-
"url",
|
|
393
|
-
"date",
|
|
394
|
-
"date-time",
|
|
395
|
-
"uuid"
|
|
396
|
-
]), Schema$1.Null]))
|
|
397
|
-
}), Schema$1.Null]))
|
|
398
|
-
}).annotate({ identifier: "TemplateVariable" });
|
|
399
|
-
const TemplatePerformance = Schema$1.Struct({
|
|
400
|
-
deliveryRate: Schema$1.optionalKey(Schema$1.Union([Schema$1.Finite.check(Schema$1.isFinite().annotate({ expected: "a finite number" })).check(Schema$1.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })).check(Schema$1.isLessThanOrEqualTo(1).annotate({ expected: "a value less than or equal to 1" })), Schema$1.Null])),
|
|
401
|
-
openRate: Schema$1.optionalKey(Schema$1.Union([Schema$1.Finite.check(Schema$1.isFinite().annotate({ expected: "a finite number" })).check(Schema$1.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })).check(Schema$1.isLessThanOrEqualTo(1).annotate({ expected: "a value less than or equal to 1" })), Schema$1.Null])),
|
|
402
|
-
clickRate: Schema$1.optionalKey(Schema$1.Union([Schema$1.Finite.check(Schema$1.isFinite().annotate({ expected: "a finite number" })).check(Schema$1.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })).check(Schema$1.isLessThanOrEqualTo(1).annotate({ expected: "a value less than or equal to 1" })), Schema$1.Null])),
|
|
403
|
-
responseRate: Schema$1.optionalKey(Schema$1.Union([Schema$1.Finite.check(Schema$1.isFinite().annotate({ expected: "a finite number" })).check(Schema$1.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })).check(Schema$1.isLessThanOrEqualTo(1).annotate({ expected: "a value less than or equal to 1" })), Schema$1.Null])),
|
|
404
|
-
conversionRate: Schema$1.optionalKey(Schema$1.Union([Schema$1.Finite.check(Schema$1.isFinite().annotate({ expected: "a finite number" })).check(Schema$1.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })).check(Schema$1.isLessThanOrEqualTo(1).annotate({ expected: "a value less than or equal to 1" })), Schema$1.Null])),
|
|
405
|
-
averageSatisfaction: Schema$1.optionalKey(Schema$1.Union([Schema$1.Finite.check(Schema$1.isFinite().annotate({ expected: "a finite number" })).check(Schema$1.isGreaterThanOrEqualTo(1).annotate({ expected: "a value greater than or equal to 1" })).check(Schema$1.isLessThanOrEqualTo(5).annotate({ expected: "a value less than or equal to 5" })), Schema$1.Null])),
|
|
406
|
-
totalSent: Schema$1.optionalKey(Schema$1.Union([Schema$1.Finite.check(Schema$1.isFinite().annotate({ expected: "a finite number" })).check(Schema$1.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })), Schema$1.Null])),
|
|
407
|
-
totalDelivered: Schema$1.optionalKey(Schema$1.Union([Schema$1.Finite.check(Schema$1.isFinite().annotate({ expected: "a finite number" })).check(Schema$1.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })), Schema$1.Null])),
|
|
408
|
-
totalOpened: Schema$1.optionalKey(Schema$1.Union([Schema$1.Finite.check(Schema$1.isFinite().annotate({ expected: "a finite number" })).check(Schema$1.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })), Schema$1.Null])),
|
|
409
|
-
totalClicked: Schema$1.optionalKey(Schema$1.Union([Schema$1.Finite.check(Schema$1.isFinite().annotate({ expected: "a finite number" })).check(Schema$1.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })), Schema$1.Null])),
|
|
410
|
-
totalResponses: Schema$1.optionalKey(Schema$1.Union([Schema$1.Finite.check(Schema$1.isFinite().annotate({ expected: "a finite number" })).check(Schema$1.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })), Schema$1.Null])),
|
|
411
|
-
totalConversions: Schema$1.optionalKey(Schema$1.Union([Schema$1.Finite.check(Schema$1.isFinite().annotate({ expected: "a finite number" })).check(Schema$1.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })), Schema$1.Null])),
|
|
412
|
-
lastUsedAt: Schema$1.optionalKey(Schema$1.Union([Schema$1.String, Schema$1.Null])),
|
|
413
|
-
usageCount: Schema$1.optionalKey(Schema$1.Union([Schema$1.Finite.check(Schema$1.isFinite().annotate({ expected: "a finite number" })).check(Schema$1.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })), Schema$1.Null]))
|
|
414
|
-
}).annotate({ identifier: "TemplatePerformance" });
|
|
371
|
+
const UserId = Schema$1.String.pipe(Schema$1.brand("UserId")).check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^user_[0-9a-hjkmnp-tv-z]{16,24}$")).annotate({
|
|
372
|
+
expected: "a string matching the RegExp ^user_[0-9a-hjkmnp-tv-z]{16,24}$",
|
|
373
|
+
identifier: "UserId"
|
|
374
|
+
}));
|
|
415
375
|
const WebhookEventId = Schema$1.String.pipe(Schema$1.brand("WebhookEventId")).check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^whevt_[0-9a-hjkmnp-tv-z]{16,24}$")).annotate({
|
|
416
376
|
expected: "a string matching the RegExp ^whevt_[0-9a-hjkmnp-tv-z]{16,24}$",
|
|
417
377
|
identifier: "WebhookEventId"
|
|
@@ -431,6 +391,24 @@ Schema$1.Struct({
|
|
|
431
391
|
purpose: Schema$1.Literals(["attachment", "avatar"]),
|
|
432
392
|
checksumSha256: Schema$1.optionalKey(Schema$1.Union([Schema$1.String, Schema$1.Null]))
|
|
433
393
|
}).annotate({ identifier: "CreateMediaPayload" });
|
|
394
|
+
const CreateTemplatePayload = Schema$1.Struct({
|
|
395
|
+
name: Schema$1.String.check(Schema$1.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema$1.isMaxLength(200).annotate({ expected: "a value with a length of at most 200" })),
|
|
396
|
+
projectName: Schema$1.optionalKey(Schema$1.Union([Schema$1.String.check(Schema$1.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema$1.isMaxLength(200).annotate({ expected: "a value with a length of at most 200" })), Schema$1.Null])),
|
|
397
|
+
slug: Schema$1.optionalKey(Schema$1.Union([Schema$1.String.check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^(?=.{1,100}$)[a-z0-9]+(?:-[a-z0-9]+)*$")).annotate({ expected: "a string matching the RegExp ^(?=.{1,100}$)[a-z0-9]+(?:-[a-z0-9]+)*$" })), Schema$1.Null])),
|
|
398
|
+
galleryTemplateId: Schema$1.optionalKey(Schema$1.Union([Schema$1.String.check(Schema$1.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema$1.isMaxLength(128).annotate({ expected: "a value with a length of at most 128" })), Schema$1.Null])),
|
|
399
|
+
description: Schema$1.optionalKey(Schema$1.Union([Schema$1.Union([Schema$1.String, Schema$1.Null]), Schema$1.Null])),
|
|
400
|
+
category: Schema$1.optionalKey(Schema$1.Union([Schema$1.Union([Schema$1.Literals([
|
|
401
|
+
"transactional",
|
|
402
|
+
"marketing",
|
|
403
|
+
"support",
|
|
404
|
+
"notification",
|
|
405
|
+
"verification",
|
|
406
|
+
"reminder",
|
|
407
|
+
"alert"
|
|
408
|
+
]), Schema$1.Null]), Schema$1.Null])),
|
|
409
|
+
isActive: Schema$1.optionalKey(Schema$1.Union([Schema$1.Boolean, Schema$1.Null])),
|
|
410
|
+
idempotencyKey: Schema$1.String.check(Schema$1.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema$1.isMaxLength(255).annotate({ expected: "a value with a length of at most 255" }))
|
|
411
|
+
}).annotate({ identifier: "CreateTemplatePayload" });
|
|
434
412
|
const CreateWebhookPayload = Schema$1.Struct({
|
|
435
413
|
name: Schema$1.String.check(Schema$1.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema$1.isMaxLength(100).annotate({ expected: "a value with a length of at most 100" })),
|
|
436
414
|
url: Schema$1.String,
|
|
@@ -539,7 +517,6 @@ const TemplateSummary = Schema$1.Struct({
|
|
|
539
517
|
name: Schema$1.String,
|
|
540
518
|
slug: Schema$1.String,
|
|
541
519
|
channel: Schema$1.Literal("email"),
|
|
542
|
-
origin: Schema$1.Literals(["dashboard", "tsx"]),
|
|
543
520
|
description: Schema$1.Union([Schema$1.String, Schema$1.Null]),
|
|
544
521
|
category: Schema$1.Union([Schema$1.Literals([
|
|
545
522
|
"transactional",
|
|
@@ -558,7 +535,6 @@ const TemplateSummary = Schema$1.Struct({
|
|
|
558
535
|
"rejected",
|
|
559
536
|
"archived"
|
|
560
537
|
]),
|
|
561
|
-
version: Schema$1.Finite.check(Schema$1.isInt().annotate({ expected: "an integer" })).check(Schema$1.isGreaterThan(0).annotate({ expected: "a value greater than 0" })),
|
|
562
538
|
usageCount: Schema$1.Finite.check(Schema$1.isInt().annotate({ expected: "an integer" })).check(Schema$1.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })),
|
|
563
539
|
lastUsedAt: Schema$1.Union([Schema$1.String, Schema$1.Null]),
|
|
564
540
|
createdAt: Schema$1.String,
|
|
@@ -958,7 +934,7 @@ const WebhookEndpoint = Schema$1.Struct({
|
|
|
958
934
|
createdAt: Schema$1.String,
|
|
959
935
|
updatedAt: Schema$1.String
|
|
960
936
|
}).annotate({ identifier: "WebhookEndpoint" });
|
|
961
|
-
const
|
|
937
|
+
const EmailDomainDetailed = Schema$1.Struct({
|
|
962
938
|
id: EmailDomainId,
|
|
963
939
|
domain: Schema$1.String,
|
|
964
940
|
phase: Schema$1.Literals([
|
|
@@ -972,12 +948,23 @@ const EmailDomain = Schema$1.Struct({
|
|
|
972
948
|
dkimSelector: Schema$1.optionalKey(Schema$1.Union([Schema$1.String, Schema$1.Null])),
|
|
973
949
|
dkimPublicKey: Schema$1.optionalKey(Schema$1.Union([Schema$1.String, Schema$1.Null])),
|
|
974
950
|
dnsRecords: Schema$1.Array(Schema$1.Struct({
|
|
975
|
-
type: Schema$1.
|
|
951
|
+
type: Schema$1.Literals([
|
|
952
|
+
"A",
|
|
953
|
+
"AAAA",
|
|
954
|
+
"CNAME",
|
|
955
|
+
"MX",
|
|
956
|
+
"NS",
|
|
957
|
+
"SOA",
|
|
958
|
+
"PTR",
|
|
959
|
+
"SRV",
|
|
960
|
+
"TXT",
|
|
961
|
+
"CAA"
|
|
962
|
+
]),
|
|
976
963
|
name: Schema$1.String,
|
|
977
964
|
value: Schema$1.String,
|
|
978
965
|
ttl: Schema$1.optionalKey(Schema$1.Union([Schema$1.String, Schema$1.Null])),
|
|
979
966
|
description: Schema$1.optionalKey(Schema$1.Union([Schema$1.String, Schema$1.Null])),
|
|
980
|
-
priority: Schema$1.optionalKey(Schema$1.Union([Schema$1.Finite.check(Schema$1.isInt().annotate({ expected: "an integer" })).check(Schema$1.
|
|
967
|
+
priority: Schema$1.optionalKey(Schema$1.Union([Schema$1.Finite.check(Schema$1.isInt().annotate({ expected: "an integer" })).check(Schema$1.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })), Schema$1.Null]))
|
|
981
968
|
})),
|
|
982
969
|
verifiedAt: Schema$1.Union([Schema$1.String, Schema$1.Null]),
|
|
983
970
|
isDefault: Schema$1.Boolean,
|
|
@@ -985,7 +972,7 @@ const EmailDomain = Schema$1.Struct({
|
|
|
985
972
|
deliverability: DeliverabilityFacts,
|
|
986
973
|
createdAt: Schema$1.String,
|
|
987
974
|
updatedAt: Schema$1.String
|
|
988
|
-
}).annotate({ identifier: "
|
|
975
|
+
}).annotate({ identifier: "EmailDomainDetailed" });
|
|
989
976
|
const CustomTrackingStatus = Schema$1.Struct({
|
|
990
977
|
enabled: Schema$1.Boolean,
|
|
991
978
|
customTracking: Schema$1.Union([Schema$1.Struct({
|
|
@@ -1038,7 +1025,7 @@ const EmailDomainVerification = Schema$1.Struct({
|
|
|
1038
1025
|
value: Schema$1.String,
|
|
1039
1026
|
ttl: Schema$1.optionalKey(Schema$1.Union([Schema$1.String, Schema$1.Null])),
|
|
1040
1027
|
description: Schema$1.optionalKey(Schema$1.Union([Schema$1.String, Schema$1.Null])),
|
|
1041
|
-
priority: Schema$1.optionalKey(Schema$1.Union([Schema$1.Finite.check(Schema$1.isInt().annotate({ expected: "an integer" })), Schema$1.Null]))
|
|
1028
|
+
priority: Schema$1.optionalKey(Schema$1.Union([Schema$1.Finite.check(Schema$1.isInt().annotate({ expected: "an integer" })).check(Schema$1.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })), Schema$1.Null]))
|
|
1042
1029
|
}),
|
|
1043
1030
|
status: Schema$1.Literals([
|
|
1044
1031
|
"unchecked",
|
|
@@ -1178,6 +1165,47 @@ const OperationResourceLink = Schema$1.Struct({
|
|
|
1178
1165
|
resource: OperationResource,
|
|
1179
1166
|
href: Schema$1.String.check(Schema$1.isMaxLength(500).annotate({ expected: "a value with a length of at most 500" })).check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^\\/v1\\/")).annotate({ expected: "a string matching the RegExp ^\\/v1\\/" }))
|
|
1180
1167
|
}).annotate({ identifier: "OperationResourceLink" });
|
|
1168
|
+
const TemplateFamily = Schema$1.Struct({
|
|
1169
|
+
id: TemplateFamilyId,
|
|
1170
|
+
organizationId: OrganizationId,
|
|
1171
|
+
name: Schema$1.String,
|
|
1172
|
+
members: Schema$1.Array(Schema$1.Struct({
|
|
1173
|
+
id: TemplateId,
|
|
1174
|
+
name: Schema$1.String,
|
|
1175
|
+
slug: Schema$1.String,
|
|
1176
|
+
channel: Schema$1.Literal("email"),
|
|
1177
|
+
status: Schema$1.Literals([
|
|
1178
|
+
"draft",
|
|
1179
|
+
"pending",
|
|
1180
|
+
"approved",
|
|
1181
|
+
"published",
|
|
1182
|
+
"rejected",
|
|
1183
|
+
"archived"
|
|
1184
|
+
]),
|
|
1185
|
+
isActive: Schema$1.Boolean,
|
|
1186
|
+
createdAt: Schema$1.String,
|
|
1187
|
+
updatedAt: Schema$1.String
|
|
1188
|
+
})),
|
|
1189
|
+
createdAt: Schema$1.String,
|
|
1190
|
+
updatedAt: Schema$1.String
|
|
1191
|
+
}).annotate({ identifier: "TemplateFamily" });
|
|
1192
|
+
const UpdateTemplatePayload = Schema$1.Struct({ data: Schema$1.Struct({
|
|
1193
|
+
name: Schema$1.optionalKey(Schema$1.Union([Schema$1.String, Schema$1.Null])),
|
|
1194
|
+
slug: Schema$1.optionalKey(Schema$1.Union([Schema$1.String.check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^(?=.{1,100}$)[a-z0-9]+(?:-[a-z0-9]+)*$")).annotate({ expected: "a string matching the RegExp ^(?=.{1,100}$)[a-z0-9]+(?:-[a-z0-9]+)*$" })), Schema$1.Null])),
|
|
1195
|
+
description: Schema$1.optionalKey(Schema$1.Union([Schema$1.Union([Schema$1.String, Schema$1.Null]), Schema$1.Null])),
|
|
1196
|
+
category: Schema$1.optionalKey(Schema$1.Union([Schema$1.Union([Schema$1.Literals([
|
|
1197
|
+
"transactional",
|
|
1198
|
+
"marketing",
|
|
1199
|
+
"support",
|
|
1200
|
+
"notification",
|
|
1201
|
+
"verification",
|
|
1202
|
+
"reminder",
|
|
1203
|
+
"alert"
|
|
1204
|
+
]), Schema$1.Null]), Schema$1.Null])),
|
|
1205
|
+
fromDefault: Schema$1.optionalKey(Schema$1.Union([Schema$1.Union([TemplateFromDefault, Schema$1.Null]), Schema$1.Null])),
|
|
1206
|
+
replyToDefault: Schema$1.optionalKey(Schema$1.Union([Schema$1.Union([Schema$1.Array(Schema$1.String), Schema$1.Null]), Schema$1.Null])),
|
|
1207
|
+
isActive: Schema$1.optionalKey(Schema$1.Union([Schema$1.Boolean, Schema$1.Null]))
|
|
1208
|
+
}) }).annotate({ identifier: "UpdateTemplatePayload" });
|
|
1181
1209
|
const TemplateCompliance = Schema$1.Struct({
|
|
1182
1210
|
metaStatus: Schema$1.optionalKey(Schema$1.Union([Schema$1.String, Schema$1.Null])),
|
|
1183
1211
|
submittedAt: Schema$1.optionalKey(Schema$1.Union([Schema$1.Union([Schema$1.String, Schema$1.Null]), Schema$1.Null])),
|
|
@@ -1206,32 +1234,6 @@ const TemplateCompliance = Schema$1.Struct({
|
|
|
1206
1234
|
notes: Schema$1.optionalKey(Schema$1.Union([Schema$1.String, Schema$1.Null]))
|
|
1207
1235
|
})), Schema$1.Null]))
|
|
1208
1236
|
}).annotate({ identifier: "TemplateCompliance" });
|
|
1209
|
-
const TemplateFamily = Schema$1.Struct({
|
|
1210
|
-
id: TemplateFamilyId,
|
|
1211
|
-
organizationId: OrganizationId,
|
|
1212
|
-
name: Schema$1.String,
|
|
1213
|
-
members: Schema$1.Array(Schema$1.Struct({
|
|
1214
|
-
id: TemplateId,
|
|
1215
|
-
name: Schema$1.String,
|
|
1216
|
-
slug: Schema$1.String,
|
|
1217
|
-
channel: Schema$1.Literal("email"),
|
|
1218
|
-
variableSchema: Schema$1.Union([Schema$1.Array(TemplateVariable), Schema$1.Null]),
|
|
1219
|
-
status: Schema$1.Literals([
|
|
1220
|
-
"draft",
|
|
1221
|
-
"pending",
|
|
1222
|
-
"approved",
|
|
1223
|
-
"published",
|
|
1224
|
-
"rejected",
|
|
1225
|
-
"archived"
|
|
1226
|
-
]),
|
|
1227
|
-
isActive: Schema$1.Boolean,
|
|
1228
|
-
version: Schema$1.Finite.check(Schema$1.isFinite().annotate({ expected: "a finite number" })),
|
|
1229
|
-
createdAt: Schema$1.String,
|
|
1230
|
-
updatedAt: Schema$1.String
|
|
1231
|
-
})),
|
|
1232
|
-
createdAt: Schema$1.String,
|
|
1233
|
-
updatedAt: Schema$1.String
|
|
1234
|
-
}).annotate({ identifier: "TemplateFamily" });
|
|
1235
1237
|
const EmailAttachments = Schema$1.Union([Schema$1.Array(EmailAttachment).check(Schema$1.isMaxLength(10).annotate({ expected: "a value with a length of at most 10" })), Schema$1.Null]).annotate({ identifier: "EmailAttachments" });
|
|
1236
1238
|
const EmailRecipients = Schema$1.Array(EmailRecipient).check(Schema$1.isMinLength(1).annotate({
|
|
1237
1239
|
expected: "a value with a length of at least 1",
|
|
@@ -1464,92 +1466,46 @@ const OperationAccepted = Schema$1.Struct({
|
|
|
1464
1466
|
const Template = Schema$1.Struct({
|
|
1465
1467
|
id: TemplateId,
|
|
1466
1468
|
organizationId: OrganizationId,
|
|
1469
|
+
projectId: TemplateProjectId,
|
|
1470
|
+
entryPath: Schema$1.String.check(Schema$1.isMaxLength(1024).annotate({ expected: "a value with a length of at most 1024" })).check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^(?!\\/)(?!.*\\\\)(?!.*(?:^|\\/)\\.{1,2}(?:\\/|$))(?!.*(?:^|\\/)\\.git(?:\\/|$))emails\\/.+\\.tsx$")).annotate({ expected: "a string matching the RegExp ^(?!\\/)(?!.*\\\\)(?!.*(?:^|\\/)\\.{1,2}(?:\\/|$))(?!.*(?:^|\\/)\\.git(?:\\/|$))emails\\/.+\\.tsx$" })),
|
|
1467
1471
|
name: Schema$1.String,
|
|
1468
1472
|
slug: Schema$1.String,
|
|
1469
1473
|
familyId: Schema$1.Union([TemplateFamilyId, Schema$1.Null]),
|
|
1470
1474
|
channel: Schema$1.Literal("email"),
|
|
1471
|
-
origin: Schema$1.Literals(["dashboard", "tsx"]),
|
|
1472
1475
|
description: Schema$1.Union([Schema$1.String, Schema$1.Null]),
|
|
1473
1476
|
category: Schema$1.Union([Schema$1.String, Schema$1.Null]),
|
|
1474
|
-
fromDefault: Schema$1.optionalKey(Schema$1.Union([TemplateFromDefault, Schema$1.Null])),
|
|
1475
|
-
replyToDefault: Schema$1.optionalKey(Schema$1.Union([Schema$1.Array(Schema$1.String), Schema$1.Null])),
|
|
1476
|
-
trackingDefault: Schema$1.optionalKey(Schema$1.Union([Schema$1.Struct({
|
|
1477
|
+
fromDefault: Schema$1.optionalKey(Schema$1.Union([Schema$1.Union([TemplateFromDefault, Schema$1.Null]), Schema$1.Null])),
|
|
1478
|
+
replyToDefault: Schema$1.optionalKey(Schema$1.Union([Schema$1.Union([Schema$1.Array(Schema$1.String), Schema$1.Null]), Schema$1.Null])),
|
|
1479
|
+
trackingDefault: Schema$1.optionalKey(Schema$1.Union([Schema$1.Union([Schema$1.Struct({
|
|
1477
1480
|
opens: Schema$1.optionalKey(Schema$1.Union([Schema$1.Boolean, Schema$1.Null])),
|
|
1478
1481
|
clicks: Schema$1.optionalKey(Schema$1.Union([Schema$1.Boolean, Schema$1.Null]))
|
|
1479
|
-
}), Schema$1.Null])),
|
|
1482
|
+
}), Schema$1.Null]), Schema$1.Null])),
|
|
1480
1483
|
email: Schema$1.Union([Schema$1.Struct({
|
|
1481
1484
|
subject: Schema$1.String,
|
|
1482
1485
|
preheader: Schema$1.Union([Schema$1.String, Schema$1.Null]),
|
|
1483
1486
|
headers: Schema$1.Union([Schema$1.Record(Schema$1.String, Schema$1.String), Schema$1.Null])
|
|
1484
1487
|
}), Schema$1.Null]),
|
|
1485
|
-
|
|
1488
|
+
publicationId: Schema$1.Union([TemplatePublicationId, Schema$1.Null]),
|
|
1489
|
+
inputContractId: Schema$1.Union([TemplateInputContractId, Schema$1.Null]),
|
|
1490
|
+
inputSchema: Schema$1.Union([Schema$1.Record(Schema$1.String, JsonValue), Schema$1.Null]),
|
|
1486
1491
|
compliance: Schema$1.Union([TemplateCompliance, Schema$1.Null]),
|
|
1487
|
-
designOverrides: Schema$1.Union([Design, Schema$1.Null]),
|
|
1488
1492
|
usageCount: Schema$1.Finite.check(Schema$1.isInt().annotate({ expected: "an integer" })).check(Schema$1.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })),
|
|
1489
1493
|
lastUsedAt: Schema$1.Union([Schema$1.String, Schema$1.Null]),
|
|
1490
1494
|
status: Schema$1.String,
|
|
1491
1495
|
isActive: Schema$1.Boolean,
|
|
1492
1496
|
isDefault: Schema$1.Boolean,
|
|
1493
|
-
version: Schema$1.Finite.check(Schema$1.isInt().annotate({ expected: "an integer" })).check(Schema$1.isGreaterThan(0).annotate({ expected: "a value greater than 0" })),
|
|
1494
1497
|
publishedAt: Schema$1.optionalKey(Schema$1.Union([Schema$1.Union([Schema$1.String, Schema$1.Null]), Schema$1.Null])),
|
|
1495
1498
|
publishedBy: Schema$1.optionalKey(Schema$1.Union([Schema$1.Union([Schema$1.String, Schema$1.Null]), Schema$1.Null])),
|
|
1496
1499
|
createdAt: Schema$1.String,
|
|
1497
1500
|
updatedAt: Schema$1.String
|
|
1498
1501
|
}).annotate({ identifier: "Template" });
|
|
1499
|
-
const CreateTemplatePayload = Schema$1.Struct({
|
|
1500
|
-
name: Schema$1.String.check(Schema$1.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })),
|
|
1501
|
-
slug: Schema$1.optionalKey(Schema$1.Union([Schema$1.String.check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^(?=.{1,100}$)[a-z0-9]+(?:-[a-z0-9]+)*$")).annotate({ expected: "a string matching the RegExp ^(?=.{1,100}$)[a-z0-9]+(?:-[a-z0-9]+)*$" })), Schema$1.Null])),
|
|
1502
|
-
origin: Schema$1.optionalKey(Schema$1.Union([Schema$1.Literals(["dashboard", "tsx"]), Schema$1.Null])),
|
|
1503
|
-
description: Schema$1.optionalKey(Schema$1.Union([Schema$1.Union([Schema$1.String, Schema$1.Null]), Schema$1.Null])),
|
|
1504
|
-
category: Schema$1.optionalKey(Schema$1.Union([Schema$1.Union([Schema$1.Literals([
|
|
1505
|
-
"transactional",
|
|
1506
|
-
"marketing",
|
|
1507
|
-
"support",
|
|
1508
|
-
"notification",
|
|
1509
|
-
"verification",
|
|
1510
|
-
"reminder",
|
|
1511
|
-
"alert"
|
|
1512
|
-
]), Schema$1.Null]), Schema$1.Null])),
|
|
1513
|
-
source: Schema$1.String.check(Schema$1.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })),
|
|
1514
|
-
subject: Schema$1.optionalKey(Schema$1.Union([Schema$1.String, Schema$1.Null])),
|
|
1515
|
-
headers: Schema$1.optionalKey(Schema$1.Union([Schema$1.Union([Schema$1.Record(Schema$1.String, Schema$1.String), Schema$1.Null]), Schema$1.Null])),
|
|
1516
|
-
variableSchema: Schema$1.optionalKey(Schema$1.Union([Schema$1.Union([Schema$1.Array(TemplateVariable), Schema$1.Null]), Schema$1.Null])),
|
|
1517
|
-
compliance: Schema$1.optionalKey(Schema$1.Union([Schema$1.Union([TemplateCompliance, Schema$1.Null]), Schema$1.Null])),
|
|
1518
|
-
performance: Schema$1.optionalKey(Schema$1.Union([Schema$1.Union([TemplatePerformance, Schema$1.Null]), Schema$1.Null])),
|
|
1519
|
-
designOverrides: Schema$1.optionalKey(Schema$1.Union([Schema$1.Union([Design, Schema$1.Null]), Schema$1.Null])),
|
|
1520
|
-
isActive: Schema$1.optionalKey(Schema$1.Union([Schema$1.Boolean, Schema$1.Null])),
|
|
1521
|
-
isDefault: Schema$1.optionalKey(Schema$1.Union([Schema$1.Boolean, Schema$1.Null])),
|
|
1522
|
-
version: Schema$1.optionalKey(Schema$1.Union([Schema$1.Finite.check(Schema$1.isInt().annotate({ expected: "an integer" })).check(Schema$1.isGreaterThan(0).annotate({ expected: "a value greater than 0" })), Schema$1.Null]))
|
|
1523
|
-
}).annotate({ identifier: "CreateTemplatePayload" });
|
|
1524
|
-
const UpdateTemplatePayload = Schema$1.Struct({ data: Schema$1.Struct({
|
|
1525
|
-
name: Schema$1.optionalKey(Schema$1.Union([Schema$1.String, Schema$1.Null])),
|
|
1526
|
-
slug: Schema$1.optionalKey(Schema$1.Union([Schema$1.String.check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^(?=.{1,100}$)[a-z0-9]+(?:-[a-z0-9]+)*$")).annotate({ expected: "a string matching the RegExp ^(?=.{1,100}$)[a-z0-9]+(?:-[a-z0-9]+)*$" })), Schema$1.Null])),
|
|
1527
|
-
origin: Schema$1.optionalKey(Schema$1.Union([Schema$1.Literals(["dashboard", "tsx"]), Schema$1.Null])),
|
|
1528
|
-
description: Schema$1.optionalKey(Schema$1.Union([Schema$1.Union([Schema$1.String, Schema$1.Null]), Schema$1.Null])),
|
|
1529
|
-
category: Schema$1.optionalKey(Schema$1.Union([Schema$1.Union([Schema$1.Literals([
|
|
1530
|
-
"transactional",
|
|
1531
|
-
"marketing",
|
|
1532
|
-
"support",
|
|
1533
|
-
"notification",
|
|
1534
|
-
"verification",
|
|
1535
|
-
"reminder",
|
|
1536
|
-
"alert"
|
|
1537
|
-
]), Schema$1.Null]), Schema$1.Null])),
|
|
1538
|
-
fromDefault: Schema$1.optionalKey(Schema$1.Union([Schema$1.Union([TemplateFromDefault, Schema$1.Null]), Schema$1.Null])),
|
|
1539
|
-
replyToDefault: Schema$1.optionalKey(Schema$1.Union([Schema$1.Union([Schema$1.Array(Schema$1.String), Schema$1.Null]), Schema$1.Null])),
|
|
1540
|
-
variableSchema: Schema$1.optionalKey(Schema$1.Union([Schema$1.Union([Schema$1.Array(TemplateVariable), Schema$1.Null]), Schema$1.Null])),
|
|
1541
|
-
compliance: Schema$1.optionalKey(Schema$1.Union([Schema$1.Union([TemplateCompliance, Schema$1.Null]), Schema$1.Null])),
|
|
1542
|
-
performance: Schema$1.optionalKey(Schema$1.Union([Schema$1.Union([TemplatePerformance, Schema$1.Null]), Schema$1.Null])),
|
|
1543
|
-
designOverrides: Schema$1.optionalKey(Schema$1.Union([Schema$1.Union([Design, Schema$1.Null]), Schema$1.Null])),
|
|
1544
|
-
isActive: Schema$1.optionalKey(Schema$1.Union([Schema$1.Boolean, Schema$1.Null])),
|
|
1545
|
-
isDefault: Schema$1.optionalKey(Schema$1.Union([Schema$1.Boolean, Schema$1.Null])),
|
|
1546
|
-
version: Schema$1.optionalKey(Schema$1.Union([Schema$1.Finite.check(Schema$1.isInt().annotate({ expected: "an integer" })).check(Schema$1.isGreaterThan(0).annotate({ expected: "a value greater than 0" })), Schema$1.Null]))
|
|
1547
|
-
}) }).annotate({ identifier: "UpdateTemplatePayload" });
|
|
1548
1502
|
const EmailContent = Schema$1.Struct({
|
|
1549
1503
|
subject: Schema$1.optionalKey(Schema$1.Union([Schema$1.String, Schema$1.Null])),
|
|
1550
1504
|
html: Schema$1.optionalKey(Schema$1.Union([Schema$1.String, Schema$1.Null])),
|
|
1551
1505
|
text: Schema$1.optionalKey(Schema$1.Union([Schema$1.String, Schema$1.Null])),
|
|
1552
1506
|
attachments: Schema$1.optionalKey(EmailAttachments),
|
|
1507
|
+
publicationId: Schema$1.optionalKey(TemplatePublicationId),
|
|
1508
|
+
inputContractId: Schema$1.optionalKey(TemplateInputContractId),
|
|
1553
1509
|
templateId: Schema$1.optionalKey(Schema$1.Union([TemplateId, Schema$1.Null])),
|
|
1554
1510
|
templateSlug: Schema$1.optionalKey(Schema$1.Union([Schema$1.String.check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^(?=.{1,100}$)[a-z0-9]+(?:-[a-z0-9]+)*$")).annotate({ expected: "a string matching the RegExp ^(?=.{1,100}$)[a-z0-9]+(?:-[a-z0-9]+)*$" })), Schema$1.Null])),
|
|
1555
1511
|
templateData: Schema$1.optionalKey(TemplateData),
|
|
@@ -1564,6 +1520,8 @@ const EmailDispatchContent = Schema$1.Struct({
|
|
|
1564
1520
|
html: Schema$1.optionalKey(Schema$1.Union([Schema$1.String, Schema$1.Null])),
|
|
1565
1521
|
text: Schema$1.optionalKey(Schema$1.Union([Schema$1.String, Schema$1.Null])),
|
|
1566
1522
|
attachments: Schema$1.optionalKey(EmailAttachments),
|
|
1523
|
+
publicationId: Schema$1.optionalKey(TemplatePublicationId),
|
|
1524
|
+
inputContractId: Schema$1.optionalKey(TemplateInputContractId),
|
|
1567
1525
|
templateId: Schema$1.optionalKey(Schema$1.Union([TemplateId, Schema$1.Null])),
|
|
1568
1526
|
templateSlug: Schema$1.optionalKey(Schema$1.Union([Schema$1.String.check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^(?=.{1,100}$)[a-z0-9]+(?:-[a-z0-9]+)*$")).annotate({ expected: "a string matching the RegExp ^(?=.{1,100}$)[a-z0-9]+(?:-[a-z0-9]+)*$" })), Schema$1.Null])),
|
|
1569
1527
|
templateData: Schema$1.optionalKey(TemplateData),
|
|
@@ -2609,16 +2567,23 @@ const EmailListDomains200 = Schema$1.Struct({
|
|
|
2609
2567
|
const EmailListDomains401 = UnauthorizedError;
|
|
2610
2568
|
const EmailListDomains403 = ForbiddenError;
|
|
2611
2569
|
const EmailListDomains500 = InternalError;
|
|
2612
|
-
const EmailAddDomainRequestJson = Schema$1.Struct({
|
|
2613
|
-
|
|
2570
|
+
const EmailAddDomainRequestJson = Schema$1.Struct({
|
|
2571
|
+
domain: Schema$1.String,
|
|
2572
|
+
connection: Schema$1.optionalKey(Schema$1.Union([Schema$1.Struct({
|
|
2573
|
+
connectionId: Schema$1.String,
|
|
2574
|
+
zone: Schema$1.String
|
|
2575
|
+
}), Schema$1.Null]))
|
|
2576
|
+
});
|
|
2577
|
+
const EmailAddDomain201 = EmailDomainDetailed;
|
|
2614
2578
|
const EmailAddDomain401 = UnauthorizedError;
|
|
2615
2579
|
const EmailAddDomain402 = PaymentRequiredError;
|
|
2616
2580
|
const EmailAddDomain403 = ForbiddenError;
|
|
2617
2581
|
const EmailAddDomain409 = ConflictError;
|
|
2582
|
+
const EmailAddDomain422 = ValidationError;
|
|
2618
2583
|
const EmailAddDomain500 = InternalError;
|
|
2619
2584
|
const EmailAddDomain502 = Schema$1.Union([EmailChannelError, BillingProviderError]);
|
|
2620
2585
|
const EmailGetDomainByIdPathParams = Schema$1.Struct({ id: EmailDomainId });
|
|
2621
|
-
const EmailGetDomainById200 =
|
|
2586
|
+
const EmailGetDomainById200 = EmailDomainDetailed;
|
|
2622
2587
|
const EmailGetDomainById401 = UnauthorizedError;
|
|
2623
2588
|
const EmailGetDomainById403 = ForbiddenError;
|
|
2624
2589
|
const EmailGetDomainById404 = ResourceNotFoundError;
|
|
@@ -2933,6 +2898,13 @@ const EmailListSenders200 = Schema$1.Struct({
|
|
|
2933
2898
|
]),
|
|
2934
2899
|
verifiedAt: Schema$1.Union([Schema$1.String, Schema$1.Null]),
|
|
2935
2900
|
verificationToken: Schema$1.Union([Schema$1.String, Schema$1.Null]),
|
|
2901
|
+
providerLifecycle: Schema$1.Literals([
|
|
2902
|
+
"provisioning",
|
|
2903
|
+
"active",
|
|
2904
|
+
"deleting",
|
|
2905
|
+
"failed"
|
|
2906
|
+
]),
|
|
2907
|
+
providerFailureCode: Schema$1.Union([Schema$1.String, Schema$1.Null]),
|
|
2936
2908
|
isDefault: Schema$1.Boolean,
|
|
2937
2909
|
replyToEmails: Schema$1.Union([Schema$1.Array(Schema$1.String), Schema$1.Null]),
|
|
2938
2910
|
deliverability: DeliverabilityFacts,
|
|
@@ -2945,6 +2917,7 @@ const EmailListSenders200 = Schema$1.Struct({
|
|
|
2945
2917
|
const EmailListSenders401 = UnauthorizedError;
|
|
2946
2918
|
const EmailListSenders403 = ForbiddenError;
|
|
2947
2919
|
const EmailListSenders500 = InternalError;
|
|
2920
|
+
const EmailAddSenderHeaders = Schema$1.Struct({ "idempotency-key": Schema$1.String.check(Schema$1.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema$1.isMaxLength(255).annotate({ expected: "a value with a length of at most 255" })) });
|
|
2948
2921
|
const EmailAddSenderRequestJson = Schema$1.Struct({
|
|
2949
2922
|
email: Schema$1.String,
|
|
2950
2923
|
domainId: Schema$1.optionalKey(Schema$1.Union([EmailDomainId, Schema$1.Null])),
|
|
@@ -2959,6 +2932,13 @@ const EmailAddSender201 = Schema$1.Struct({
|
|
|
2959
2932
|
"verified",
|
|
2960
2933
|
"failed"
|
|
2961
2934
|
]),
|
|
2935
|
+
providerLifecycle: Schema$1.Literals([
|
|
2936
|
+
"provisioning",
|
|
2937
|
+
"active",
|
|
2938
|
+
"deleting",
|
|
2939
|
+
"failed"
|
|
2940
|
+
]),
|
|
2941
|
+
providerFailureCode: Schema$1.Union([Schema$1.String, Schema$1.Null]),
|
|
2962
2942
|
createdAt: Schema$1.String
|
|
2963
2943
|
});
|
|
2964
2944
|
const EmailAddSender401 = UnauthorizedError;
|
|
@@ -3112,6 +3092,7 @@ const MessagesListQuery = Schema$1.Struct({
|
|
|
3112
3092
|
page: Schema$1.optionalKey(Schema$1.Union([Schema$1.String, Schema$1.Null])),
|
|
3113
3093
|
limit: Schema$1.optionalKey(Schema$1.Union([Schema$1.String, Schema$1.Null])),
|
|
3114
3094
|
channel: Schema$1.optionalKey(Schema$1.Union([Schema$1.Literal("email"), Schema$1.Null])),
|
|
3095
|
+
direction: Schema$1.optionalKey(Schema$1.Union([Schema$1.Literals(["outbound", "inbound"]), Schema$1.Null])),
|
|
3115
3096
|
status: Schema$1.optionalKey(Schema$1.Union([Schema$1.Literals([
|
|
3116
3097
|
"pending",
|
|
3117
3098
|
"scheduled",
|
|
@@ -3459,442 +3440,1199 @@ const OrganizationsGetUsage200 = Schema$1.Struct({
|
|
|
3459
3440
|
const OrganizationsGetUsage401 = UnauthorizedError;
|
|
3460
3441
|
const OrganizationsGetUsage403 = ForbiddenError;
|
|
3461
3442
|
const OrganizationsGetUsage500 = InternalError;
|
|
3462
|
-
const
|
|
3463
|
-
|
|
3464
|
-
|
|
3465
|
-
|
|
3466
|
-
|
|
3467
|
-
|
|
3468
|
-
|
|
3469
|
-
|
|
3470
|
-
|
|
3471
|
-
|
|
3472
|
-
|
|
3473
|
-
|
|
3474
|
-
|
|
3475
|
-
|
|
3476
|
-
|
|
3477
|
-
|
|
3478
|
-
|
|
3479
|
-
|
|
3480
|
-
|
|
3481
|
-
|
|
3482
|
-
|
|
3483
|
-
|
|
3484
|
-
|
|
3485
|
-
|
|
3486
|
-
|
|
3487
|
-
|
|
3488
|
-
|
|
3489
|
-
|
|
3490
|
-
|
|
3491
|
-
|
|
3492
|
-
const TemplateDocumentsGet409 = ConflictError;
|
|
3493
|
-
const TemplateDocumentsGet422 = ValidationError;
|
|
3494
|
-
const TemplateDocumentsGet500 = InternalError;
|
|
3495
|
-
const TemplateDocumentsIssueAgentAdmissionPathParams = Schema$1.Struct({ templateId: TemplateId });
|
|
3496
|
-
const TemplateDocumentsIssueAgentAdmissionRequestJson = Schema$1.Struct({
|
|
3497
|
-
method: Schema$1.Literals([
|
|
3498
|
-
"GET",
|
|
3499
|
-
"HEAD",
|
|
3500
|
-
"POST"
|
|
3501
|
-
]),
|
|
3502
|
-
route: Schema$1.Literals([
|
|
3503
|
-
"prompt",
|
|
3504
|
-
"read",
|
|
3505
|
-
"abort",
|
|
3506
|
-
"clear"
|
|
3507
|
-
]),
|
|
3508
|
-
referenceDigest: Schema$1.optionalKey(Schema$1.String.check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^[a-f0-9]{64}$")).annotate({ expected: "a string matching the RegExp ^[a-f0-9]{64}$" }))),
|
|
3509
|
-
research: Schema$1.optionalKey(Schema$1.Union([
|
|
3510
|
-
Schema$1.Struct({
|
|
3511
|
-
kind: Schema$1.Literal("query"),
|
|
3512
|
-
query: Schema$1.String.check(Schema$1.isMinLength(3).annotate({ expected: "a value with a length of at least 3" })).check(Schema$1.isMaxLength(500).annotate({ expected: "a value with a length of at most 500" }))
|
|
3513
|
-
}),
|
|
3514
|
-
Schema$1.Struct({
|
|
3515
|
-
kind: Schema$1.Literal("url"),
|
|
3516
|
-
url: Schema$1.String.check(Schema$1.isMinLength(8).annotate({ expected: "a value with a length of at least 8" })).check(Schema$1.isMaxLength(2048).annotate({ expected: "a value with a length of at most 2048" }))
|
|
3517
|
-
}),
|
|
3518
|
-
Schema$1.Struct({
|
|
3519
|
-
kind: Schema$1.Literal("styleguide"),
|
|
3520
|
-
domain: Schema$1.String.check(Schema$1.isMinLength(3).annotate({ expected: "a value with a length of at least 3" })).check(Schema$1.isMaxLength(253).annotate({ expected: "a value with a length of at most 253" }))
|
|
3521
|
-
})
|
|
3522
|
-
])),
|
|
3523
|
-
competitorMessage: Schema$1.optionalKey(Schema$1.Struct({
|
|
3524
|
-
watchId: MailboxExtensionId,
|
|
3525
|
-
messageId: MessageId
|
|
3526
|
-
}))
|
|
3443
|
+
const TemplatesListQuery = Schema$1.Struct({
|
|
3444
|
+
page: Schema$1.optionalKey(Schema$1.Union([Schema$1.String, Schema$1.Null])),
|
|
3445
|
+
limit: Schema$1.optionalKey(Schema$1.Union([Schema$1.String, Schema$1.Null])),
|
|
3446
|
+
category: Schema$1.optionalKey(Schema$1.Union([Schema$1.Literals([
|
|
3447
|
+
"transactional",
|
|
3448
|
+
"marketing",
|
|
3449
|
+
"support",
|
|
3450
|
+
"notification",
|
|
3451
|
+
"verification",
|
|
3452
|
+
"reminder",
|
|
3453
|
+
"alert"
|
|
3454
|
+
]), Schema$1.Null])),
|
|
3455
|
+
channel: Schema$1.optionalKey(Schema$1.Union([Schema$1.Literal("email"), Schema$1.Null])),
|
|
3456
|
+
status: Schema$1.optionalKey(Schema$1.Union([Schema$1.Literals([
|
|
3457
|
+
"draft",
|
|
3458
|
+
"pending",
|
|
3459
|
+
"approved",
|
|
3460
|
+
"published",
|
|
3461
|
+
"rejected",
|
|
3462
|
+
"archived"
|
|
3463
|
+
]), Schema$1.Null])),
|
|
3464
|
+
search: Schema$1.optionalKey(Schema$1.Union([Schema$1.String, Schema$1.Null])),
|
|
3465
|
+
sortBy: Schema$1.optionalKey(Schema$1.Union([Schema$1.Literals([
|
|
3466
|
+
"name",
|
|
3467
|
+
"createdAt",
|
|
3468
|
+
"updatedAt",
|
|
3469
|
+
"usageCount",
|
|
3470
|
+
"lastUsedAt"
|
|
3471
|
+
]), Schema$1.Null])),
|
|
3472
|
+
sortOrder: Schema$1.optionalKey(Schema$1.Union([Schema$1.Literals(["asc", "desc"]), Schema$1.Null]))
|
|
3527
3473
|
});
|
|
3528
|
-
const
|
|
3529
|
-
|
|
3530
|
-
|
|
3531
|
-
snapshot: Schema$1.Struct({
|
|
3532
|
-
templateId: TemplateId,
|
|
3533
|
-
organizationId: OrganizationId,
|
|
3534
|
-
channel: Schema$1.Literal("email"),
|
|
3535
|
-
source: Schema$1.String,
|
|
3536
|
-
revision: Schema$1.String,
|
|
3537
|
-
sourceDigest: Schema$1.String
|
|
3538
|
-
}),
|
|
3539
|
-
reference: Schema$1.optionalKey(Schema$1.Union([
|
|
3540
|
-
Schema$1.Struct({
|
|
3541
|
-
version: Schema$1.Literal(1),
|
|
3542
|
-
referenceId: Schema$1.String.check(Schema$1.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema$1.isMaxLength(128).annotate({ expected: "a value with a length of at most 128" })),
|
|
3543
|
-
name: Schema$1.String.check(Schema$1.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema$1.isMaxLength(256).annotate({ expected: "a value with a length of at most 256" })),
|
|
3544
|
-
description: Schema$1.String.check(Schema$1.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema$1.isMaxLength(2e3).annotate({ expected: "a value with a length of at most 2000" })),
|
|
3545
|
-
galleryPath: Schema$1.String.check(Schema$1.isMinLength(2).annotate({ expected: "a value with a length of at least 2" })).check(Schema$1.isMaxLength(512).annotate({ expected: "a value with a length of at most 512" })).check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^\\/templates\\/[a-z0-9]+(?:-[a-z0-9]+)*$")).annotate({ expected: "a string matching the RegExp ^\\/templates\\/[a-z0-9]+(?:-[a-z0-9]+)*$" })),
|
|
3546
|
-
digest: Schema$1.String.check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^[a-f0-9]{64}$")).annotate({ expected: "a string matching the RegExp ^[a-f0-9]{64}$" })),
|
|
3547
|
-
citation: Schema$1.Struct({
|
|
3548
|
-
kind: Schema$1.String,
|
|
3549
|
-
digest: Schema$1.String,
|
|
3550
|
-
locator: Schema$1.optionalKey(Schema$1.String)
|
|
3551
|
-
}),
|
|
3552
|
-
policy: Schema$1.Literal("samva-owned-source"),
|
|
3553
|
-
source: Schema$1.String.check(Schema$1.isMaxLength(5e5).annotate({ expected: "a value with a length of at most 500000" }))
|
|
3554
|
-
}),
|
|
3555
|
-
Schema$1.Struct({
|
|
3556
|
-
version: Schema$1.Literal(1),
|
|
3557
|
-
referenceId: Schema$1.String.check(Schema$1.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema$1.isMaxLength(128).annotate({ expected: "a value with a length of at most 128" })),
|
|
3558
|
-
name: Schema$1.String.check(Schema$1.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema$1.isMaxLength(256).annotate({ expected: "a value with a length of at most 256" })),
|
|
3559
|
-
description: Schema$1.String.check(Schema$1.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema$1.isMaxLength(2e3).annotate({ expected: "a value with a length of at most 2000" })),
|
|
3560
|
-
galleryPath: Schema$1.String.check(Schema$1.isMinLength(2).annotate({ expected: "a value with a length of at least 2" })).check(Schema$1.isMaxLength(512).annotate({ expected: "a value with a length of at most 512" })).check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^\\/templates\\/[a-z0-9]+(?:-[a-z0-9]+)*$")).annotate({ expected: "a string matching the RegExp ^\\/templates\\/[a-z0-9]+(?:-[a-z0-9]+)*$" })),
|
|
3561
|
-
digest: Schema$1.String.check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^[a-f0-9]{64}$")).annotate({ expected: "a string matching the RegExp ^[a-f0-9]{64}$" })),
|
|
3562
|
-
citation: Schema$1.Struct({
|
|
3563
|
-
kind: Schema$1.String,
|
|
3564
|
-
digest: Schema$1.String,
|
|
3565
|
-
locator: Schema$1.optionalKey(Schema$1.String)
|
|
3566
|
-
}),
|
|
3567
|
-
policy: Schema$1.Literal("reviewed-public-structure"),
|
|
3568
|
-
structure: Schema$1.Struct({
|
|
3569
|
-
nodes: Schema$1.Array(Schema$1.Struct({
|
|
3570
|
-
tag: Schema$1.String,
|
|
3571
|
-
depth: Schema$1.Finite.check(Schema$1.isInt().annotate({ expected: "an integer" })).check(Schema$1.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })),
|
|
3572
|
-
childIndex: Schema$1.Finite.check(Schema$1.isInt().annotate({ expected: "an integer" })).check(Schema$1.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" }))
|
|
3573
|
-
})).check(Schema$1.isMaxLength(200).annotate({ expected: "a value with a length of at most 200" })),
|
|
3574
|
-
components: Schema$1.Array(Schema$1.Struct({
|
|
3575
|
-
tag: Schema$1.String,
|
|
3576
|
-
count: Schema$1.Finite.check(Schema$1.isInt().annotate({ expected: "an integer" })).check(Schema$1.isGreaterThan(0).annotate({ expected: "a value greater than 0" }))
|
|
3577
|
-
})).check(Schema$1.isMaxLength(64).annotate({ expected: "a value with a length of at most 64" })),
|
|
3578
|
-
palette: Schema$1.Array(Schema$1.String).check(Schema$1.isMaxLength(24).annotate({ expected: "a value with a length of at most 24" }))
|
|
3579
|
-
})
|
|
3580
|
-
}),
|
|
3581
|
-
Schema$1.Struct({
|
|
3582
|
-
version: Schema$1.Literal(1),
|
|
3583
|
-
policy: Schema$1.Literal("authorized-message-structure"),
|
|
3584
|
-
referenceId: Schema$1.String.check(Schema$1.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema$1.isMaxLength(128).annotate({ expected: "a value with a length of at most 128" })),
|
|
3585
|
-
name: Schema$1.String.check(Schema$1.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema$1.isMaxLength(256).annotate({ expected: "a value with a length of at most 256" })),
|
|
3586
|
-
description: Schema$1.String.check(Schema$1.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema$1.isMaxLength(2e3).annotate({ expected: "a value with a length of at most 2000" })),
|
|
3587
|
-
digest: Schema$1.String.check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^[a-f0-9]{64}$")).annotate({ expected: "a string matching the RegExp ^[a-f0-9]{64}$" })),
|
|
3588
|
-
citation: Schema$1.Struct({
|
|
3589
|
-
kind: Schema$1.String,
|
|
3590
|
-
digest: Schema$1.String,
|
|
3591
|
-
locator: Schema$1.optionalKey(Schema$1.String)
|
|
3592
|
-
}),
|
|
3593
|
-
structure: Schema$1.Struct({
|
|
3594
|
-
sections: Schema$1.Finite.check(Schema$1.isInt().annotate({ expected: "an integer" })).check(Schema$1.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })),
|
|
3595
|
-
headings: Schema$1.Finite.check(Schema$1.isInt().annotate({ expected: "an integer" })).check(Schema$1.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })),
|
|
3596
|
-
images: Schema$1.Finite.check(Schema$1.isInt().annotate({ expected: "an integer" })).check(Schema$1.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })),
|
|
3597
|
-
links: Schema$1.Finite.check(Schema$1.isInt().annotate({ expected: "an integer" })).check(Schema$1.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })),
|
|
3598
|
-
buttons: Schema$1.Finite.check(Schema$1.isInt().annotate({ expected: "an integer" })).check(Schema$1.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })),
|
|
3599
|
-
textLength: Schema$1.Finite.check(Schema$1.isInt().annotate({ expected: "an integer" })).check(Schema$1.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })),
|
|
3600
|
-
subjectLength: Schema$1.Finite.check(Schema$1.isInt().annotate({ expected: "an integer" })).check(Schema$1.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })),
|
|
3601
|
-
palette: Schema$1.Array(Schema$1.String).check(Schema$1.isMaxLength(24).annotate({ expected: "a value with a length of at most 24" }))
|
|
3602
|
-
})
|
|
3603
|
-
}),
|
|
3604
|
-
Schema$1.Struct({
|
|
3605
|
-
version: Schema$1.Literal(1),
|
|
3606
|
-
policy: Schema$1.Literal("public-research"),
|
|
3607
|
-
request: Schema$1.Union([
|
|
3608
|
-
Schema$1.Struct({
|
|
3609
|
-
kind: Schema$1.Literal("query"),
|
|
3610
|
-
query: Schema$1.String.check(Schema$1.isMinLength(3).annotate({ expected: "a value with a length of at least 3" })).check(Schema$1.isMaxLength(500).annotate({ expected: "a value with a length of at most 500" }))
|
|
3611
|
-
}),
|
|
3612
|
-
Schema$1.Struct({
|
|
3613
|
-
kind: Schema$1.Literal("url"),
|
|
3614
|
-
url: Schema$1.String.check(Schema$1.isMinLength(8).annotate({ expected: "a value with a length of at least 8" })).check(Schema$1.isMaxLength(2048).annotate({ expected: "a value with a length of at most 2048" }))
|
|
3615
|
-
}),
|
|
3616
|
-
Schema$1.Struct({
|
|
3617
|
-
kind: Schema$1.Literal("styleguide"),
|
|
3618
|
-
domain: Schema$1.String.check(Schema$1.isMinLength(3).annotate({ expected: "a value with a length of at least 3" })).check(Schema$1.isMaxLength(253).annotate({ expected: "a value with a length of at most 253" }))
|
|
3619
|
-
})
|
|
3620
|
-
]),
|
|
3621
|
-
digest: Schema$1.String.check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^[a-f0-9]{64}$")).annotate({ expected: "a string matching the RegExp ^[a-f0-9]{64}$" })),
|
|
3622
|
-
citations: Schema$1.Array(Schema$1.Struct({
|
|
3623
|
-
title: Schema$1.String.check(Schema$1.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema$1.isMaxLength(300).annotate({ expected: "a value with a length of at most 300" })),
|
|
3624
|
-
url: Schema$1.String.check(Schema$1.isMinLength(8).annotate({ expected: "a value with a length of at least 8" })).check(Schema$1.isMaxLength(2048).annotate({ expected: "a value with a length of at most 2048" })),
|
|
3625
|
-
excerpts: Schema$1.Array(Schema$1.String.check(Schema$1.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema$1.isMaxLength(1200).annotate({ expected: "a value with a length of at most 1200" }))).check(Schema$1.isMaxLength(4).annotate({ expected: "a value with a length of at most 4" }))
|
|
3626
|
-
})).check(Schema$1.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema$1.isMaxLength(4).annotate({ expected: "a value with a length of at most 4" })),
|
|
3627
|
-
citation: Schema$1.Struct({
|
|
3628
|
-
kind: Schema$1.String,
|
|
3629
|
-
digest: Schema$1.String,
|
|
3630
|
-
locator: Schema$1.optionalKey(Schema$1.String)
|
|
3631
|
-
})
|
|
3632
|
-
})
|
|
3633
|
-
])),
|
|
3634
|
-
proposalBinding: Schema$1.optionalKey(Schema$1.String.check(Schema$1.isMaxLength(8192).annotate({ expected: "a value with a length of at most 8192" })))
|
|
3635
|
-
});
|
|
3636
|
-
const TemplateDocumentsIssueAgentAdmission401 = UnauthorizedError;
|
|
3637
|
-
const TemplateDocumentsIssueAgentAdmission403 = ForbiddenError;
|
|
3638
|
-
const TemplateDocumentsIssueAgentAdmission404 = ResourceNotFoundError;
|
|
3639
|
-
const TemplateDocumentsIssueAgentAdmission409 = ConflictError;
|
|
3640
|
-
const TemplateDocumentsIssueAgentAdmission422 = ValidationError;
|
|
3641
|
-
const TemplateDocumentsIssueAgentAdmission500 = InternalError;
|
|
3642
|
-
const TemplateDocumentsCompleteAgentConversationClearPathParams = Schema$1.Struct({ templateId: TemplateId });
|
|
3643
|
-
const TemplateDocumentsCompleteAgentConversationClearRequestJson = Schema$1.Struct({ conversationId: Schema$1.String });
|
|
3644
|
-
const TemplateDocumentsCompleteAgentConversationClear401 = UnauthorizedError;
|
|
3645
|
-
const TemplateDocumentsCompleteAgentConversationClear403 = ForbiddenError;
|
|
3646
|
-
const TemplateDocumentsCompleteAgentConversationClear404 = ResourceNotFoundError;
|
|
3647
|
-
const TemplateDocumentsCompleteAgentConversationClear409 = ConflictError;
|
|
3648
|
-
const TemplateDocumentsCompleteAgentConversationClear500 = InternalError;
|
|
3649
|
-
const TemplateDocumentsApplyAgentProposalPathParams = Schema$1.Struct({ templateId: TemplateId });
|
|
3650
|
-
const TemplateDocumentsApplyAgentProposalRequestJson = Schema$1.Struct({
|
|
3651
|
-
expectedRevision: Schema$1.String,
|
|
3652
|
-
sourceDigest: Schema$1.String,
|
|
3653
|
-
idempotencyKey: Schema$1.String,
|
|
3654
|
-
source: Schema$1.String,
|
|
3655
|
-
references: Schema$1.Array(Schema$1.Struct({
|
|
3656
|
-
kind: Schema$1.String,
|
|
3657
|
-
digest: Schema$1.String,
|
|
3658
|
-
locator: Schema$1.optionalKey(Schema$1.String)
|
|
3659
|
-
})).check(Schema$1.isMaxLength(1).annotate({ expected: "a value with a length of at most 1" })),
|
|
3660
|
-
proposalBinding: Schema$1.optionalKey(Schema$1.String.check(Schema$1.isMaxLength(8192).annotate({ expected: "a value with a length of at most 8192" })))
|
|
3474
|
+
const TemplatesList200 = Schema$1.Struct({
|
|
3475
|
+
items: Schema$1.Array(Template),
|
|
3476
|
+
pagination: PaginationMeta
|
|
3661
3477
|
});
|
|
3662
|
-
const
|
|
3663
|
-
|
|
3478
|
+
const TemplatesList401 = UnauthorizedError;
|
|
3479
|
+
const TemplatesList403 = ForbiddenError;
|
|
3480
|
+
const TemplatesList500 = InternalError;
|
|
3481
|
+
const TemplatesCreateRequestJson = Schema$1.Struct({
|
|
3482
|
+
name: Schema$1.String.check(Schema$1.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema$1.isMaxLength(200).annotate({ expected: "a value with a length of at most 200" })),
|
|
3483
|
+
projectName: Schema$1.optionalKey(Schema$1.Union([Schema$1.String.check(Schema$1.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema$1.isMaxLength(200).annotate({ expected: "a value with a length of at most 200" })), Schema$1.Null])),
|
|
3484
|
+
slug: Schema$1.optionalKey(Schema$1.Union([Schema$1.String.check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^(?=.{1,100}$)[a-z0-9]+(?:-[a-z0-9]+)*$")).annotate({ expected: "a string matching the RegExp ^(?=.{1,100}$)[a-z0-9]+(?:-[a-z0-9]+)*$" })), Schema$1.Null])),
|
|
3485
|
+
galleryTemplateId: Schema$1.optionalKey(Schema$1.Union([Schema$1.String.check(Schema$1.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema$1.isMaxLength(128).annotate({ expected: "a value with a length of at most 128" })), Schema$1.Null])),
|
|
3486
|
+
description: Schema$1.optionalKey(Schema$1.Union([Schema$1.Union([Schema$1.String, Schema$1.Null]), Schema$1.Null])),
|
|
3487
|
+
category: Schema$1.optionalKey(Schema$1.Union([Schema$1.Union([Schema$1.Literals([
|
|
3488
|
+
"transactional",
|
|
3489
|
+
"marketing",
|
|
3490
|
+
"support",
|
|
3491
|
+
"notification",
|
|
3492
|
+
"verification",
|
|
3493
|
+
"reminder",
|
|
3494
|
+
"alert"
|
|
3495
|
+
]), Schema$1.Null]), Schema$1.Null])),
|
|
3496
|
+
isActive: Schema$1.optionalKey(Schema$1.Union([Schema$1.Boolean, Schema$1.Null])),
|
|
3497
|
+
idempotencyKey: Schema$1.String.check(Schema$1.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema$1.isMaxLength(255).annotate({ expected: "a value with a length of at most 255" }))
|
|
3498
|
+
});
|
|
3499
|
+
const TemplatesCreate201 = Template;
|
|
3500
|
+
const TemplatesCreate401 = UnauthorizedError;
|
|
3501
|
+
const TemplatesCreate403 = ForbiddenError;
|
|
3502
|
+
const TemplatesCreate409 = ConflictError;
|
|
3503
|
+
const TemplatesCreate422 = ValidationError;
|
|
3504
|
+
const TemplatesCreate500 = InternalError;
|
|
3505
|
+
const TemplatesGetByIdPathParams = Schema$1.Struct({ id: TemplateId });
|
|
3506
|
+
const TemplatesGetById200 = Template;
|
|
3507
|
+
const TemplatesGetById401 = UnauthorizedError;
|
|
3508
|
+
const TemplatesGetById403 = ForbiddenError;
|
|
3509
|
+
const TemplatesGetById404 = ResourceNotFoundError;
|
|
3510
|
+
const TemplatesGetById500 = InternalError;
|
|
3511
|
+
const TemplatesRemovePathParams = Schema$1.Struct({ id: TemplateId });
|
|
3512
|
+
const TemplatesRemove200 = SuccessResponse;
|
|
3513
|
+
const TemplatesRemove401 = UnauthorizedError;
|
|
3514
|
+
const TemplatesRemove403 = ForbiddenError;
|
|
3515
|
+
const TemplatesRemove404 = ResourceNotFoundError;
|
|
3516
|
+
const TemplatesRemove500 = InternalError;
|
|
3517
|
+
const TemplatesUpdatePathParams = Schema$1.Struct({ id: TemplateId });
|
|
3518
|
+
const TemplatesUpdateRequestJson = Schema$1.Struct({ data: Schema$1.Struct({
|
|
3519
|
+
name: Schema$1.optionalKey(Schema$1.Union([Schema$1.String, Schema$1.Null])),
|
|
3520
|
+
slug: Schema$1.optionalKey(Schema$1.Union([Schema$1.String.check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^(?=.{1,100}$)[a-z0-9]+(?:-[a-z0-9]+)*$")).annotate({ expected: "a string matching the RegExp ^(?=.{1,100}$)[a-z0-9]+(?:-[a-z0-9]+)*$" })), Schema$1.Null])),
|
|
3521
|
+
description: Schema$1.optionalKey(Schema$1.Union([Schema$1.Union([Schema$1.String, Schema$1.Null]), Schema$1.Null])),
|
|
3522
|
+
category: Schema$1.optionalKey(Schema$1.Union([Schema$1.Union([Schema$1.Literals([
|
|
3523
|
+
"transactional",
|
|
3524
|
+
"marketing",
|
|
3525
|
+
"support",
|
|
3526
|
+
"notification",
|
|
3527
|
+
"verification",
|
|
3528
|
+
"reminder",
|
|
3529
|
+
"alert"
|
|
3530
|
+
]), Schema$1.Null]), Schema$1.Null])),
|
|
3531
|
+
fromDefault: Schema$1.optionalKey(Schema$1.Union([Schema$1.Union([TemplateFromDefault, Schema$1.Null]), Schema$1.Null])),
|
|
3532
|
+
replyToDefault: Schema$1.optionalKey(Schema$1.Union([Schema$1.Union([Schema$1.Array(Schema$1.String), Schema$1.Null]), Schema$1.Null])),
|
|
3533
|
+
isActive: Schema$1.optionalKey(Schema$1.Union([Schema$1.Boolean, Schema$1.Null]))
|
|
3534
|
+
}) });
|
|
3535
|
+
const TemplatesUpdate200 = Template;
|
|
3536
|
+
const TemplatesUpdate401 = UnauthorizedError;
|
|
3537
|
+
const TemplatesUpdate403 = ForbiddenError;
|
|
3538
|
+
const TemplatesUpdate404 = ResourceNotFoundError;
|
|
3539
|
+
const TemplatesUpdate409 = ConflictError;
|
|
3540
|
+
const TemplatesUpdate422 = ValidationError;
|
|
3541
|
+
const TemplatesUpdate500 = InternalError;
|
|
3542
|
+
const TemplatesListInputContractsPathParams = Schema$1.Struct({ id: TemplateId });
|
|
3543
|
+
const TemplatesListInputContracts200 = Schema$1.Array(Schema$1.Struct({
|
|
3544
|
+
id: TemplateInputContractId,
|
|
3664
3545
|
organizationId: OrganizationId,
|
|
3665
|
-
|
|
3666
|
-
|
|
3667
|
-
|
|
3668
|
-
|
|
3669
|
-
createdAt: Schema$1.String
|
|
3670
|
-
|
|
3671
|
-
|
|
3672
|
-
|
|
3673
|
-
|
|
3674
|
-
|
|
3675
|
-
|
|
3676
|
-
|
|
3677
|
-
|
|
3678
|
-
}),
|
|
3679
|
-
updatedBy: Schema$1.Struct({
|
|
3680
|
-
userId: UserId,
|
|
3681
|
-
via: Schema$1.Literals([
|
|
3682
|
-
"api",
|
|
3683
|
-
"mcp",
|
|
3684
|
-
"agent"
|
|
3685
|
-
])
|
|
3686
|
-
})
|
|
3546
|
+
templateId: TemplateId,
|
|
3547
|
+
version: Schema$1.Finite.check(Schema$1.isInt().annotate({ expected: "an integer" })).check(Schema$1.isGreaterThanOrEqualTo(1).annotate({ expected: "a value greater than or equal to 1" })),
|
|
3548
|
+
validationDigest: Schema$1.String.check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^[a-f0-9]{64}$")).annotate({ expected: "a string matching the RegExp ^[a-f0-9]{64}$" })),
|
|
3549
|
+
schema: Schema$1.Record(Schema$1.String, JsonValue),
|
|
3550
|
+
createdAt: Schema$1.String
|
|
3551
|
+
}));
|
|
3552
|
+
const TemplatesListInputContracts401 = UnauthorizedError;
|
|
3553
|
+
const TemplatesListInputContracts403 = ForbiddenError;
|
|
3554
|
+
const TemplatesListInputContracts404 = ResourceNotFoundError;
|
|
3555
|
+
const TemplatesListInputContracts500 = InternalError;
|
|
3556
|
+
const TemplatesGetInputContractPathParams = Schema$1.Struct({
|
|
3557
|
+
id: TemplateId,
|
|
3558
|
+
inputContractId: TemplateInputContractId
|
|
3687
3559
|
});
|
|
3688
|
-
const
|
|
3689
|
-
|
|
3690
|
-
|
|
3691
|
-
|
|
3692
|
-
|
|
3693
|
-
|
|
3694
|
-
|
|
3695
|
-
|
|
3696
|
-
const TemplateDocumentsPublish401 = UnauthorizedError;
|
|
3697
|
-
const TemplateDocumentsPublish403 = ForbiddenError;
|
|
3698
|
-
const TemplateDocumentsPublish404 = ResourceNotFoundError;
|
|
3699
|
-
const TemplateDocumentsPublish409 = ConflictError;
|
|
3700
|
-
const TemplateDocumentsPublish422 = ValidationError;
|
|
3701
|
-
const TemplateDocumentsPublish500 = InternalError;
|
|
3702
|
-
const TemplateDocumentsRenderPathParams = Schema$1.Struct({ templateId: TemplateId });
|
|
3703
|
-
const TemplateDocumentsRenderRequestJson = Schema$1.Struct({
|
|
3704
|
-
revision: Schema$1.String,
|
|
3705
|
-
variables: Schema$1.optionalKey(Schema$1.Union([Schema$1.Record(Schema$1.String, JsonValue), Schema$1.Null]))
|
|
3560
|
+
const TemplatesGetInputContract200 = Schema$1.Struct({
|
|
3561
|
+
id: TemplateInputContractId,
|
|
3562
|
+
organizationId: OrganizationId,
|
|
3563
|
+
templateId: TemplateId,
|
|
3564
|
+
version: Schema$1.Finite.check(Schema$1.isInt().annotate({ expected: "an integer" })).check(Schema$1.isGreaterThanOrEqualTo(1).annotate({ expected: "a value greater than or equal to 1" })),
|
|
3565
|
+
validationDigest: Schema$1.String.check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^[a-f0-9]{64}$")).annotate({ expected: "a string matching the RegExp ^[a-f0-9]{64}$" })),
|
|
3566
|
+
schema: Schema$1.Record(Schema$1.String, JsonValue),
|
|
3567
|
+
createdAt: Schema$1.String
|
|
3706
3568
|
});
|
|
3707
|
-
const
|
|
3708
|
-
|
|
3709
|
-
|
|
3710
|
-
|
|
3711
|
-
|
|
3712
|
-
|
|
3713
|
-
|
|
3714
|
-
|
|
3715
|
-
|
|
3716
|
-
|
|
3717
|
-
|
|
3718
|
-
const
|
|
3719
|
-
|
|
3720
|
-
|
|
3721
|
-
|
|
3722
|
-
const TemplateDocumentsSave200 = Schema$1.Struct({
|
|
3723
|
-
id: Schema$1.String,
|
|
3569
|
+
const TemplatesGetInputContract401 = UnauthorizedError;
|
|
3570
|
+
const TemplatesGetInputContract403 = ForbiddenError;
|
|
3571
|
+
const TemplatesGetInputContract404 = ResourceNotFoundError;
|
|
3572
|
+
const TemplatesGetInputContract500 = InternalError;
|
|
3573
|
+
const TemplatesPublishPathParams = Schema$1.Struct({ id: TemplateId });
|
|
3574
|
+
const TemplatesPublishRequestJson = Schema$1.Struct({
|
|
3575
|
+
projectId: TemplateProjectId,
|
|
3576
|
+
commitSha: Schema$1.String.check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^[a-f0-9]{40}$")).annotate({ expected: "a string matching the RegExp ^[a-f0-9]{40}$" })),
|
|
3577
|
+
entryPath: Schema$1.String.check(Schema$1.isMaxLength(1024).annotate({ expected: "a value with a length of at most 1024" })).check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^(?!\\/)(?!.*\\\\)(?!.*(?:^|\\/)\\.{1,2}(?:\\/|$))(?!.*(?:^|\\/)\\.git(?:\\/|$))emails\\/.+\\.tsx$")).annotate({ expected: "a string matching the RegExp ^(?!\\/)(?!.*\\\\)(?!.*(?:^|\\/)\\.{1,2}(?:\\/|$))(?!.*(?:^|\\/)\\.git(?:\\/|$))emails\\/.+\\.tsx$" })),
|
|
3578
|
+
expectedWorkspaceRevision: Schema$1.String.check(Schema$1.isMinLength(1).annotate({ expected: "a value with a length of at least 1" }))
|
|
3579
|
+
});
|
|
3580
|
+
const TemplatesPublish201 = Schema$1.Struct({
|
|
3581
|
+
id: TemplatePublicationId,
|
|
3582
|
+
organizationId: OrganizationId,
|
|
3583
|
+
projectId: TemplateProjectId,
|
|
3724
3584
|
templateId: TemplateId,
|
|
3725
|
-
|
|
3726
|
-
|
|
3727
|
-
|
|
3728
|
-
|
|
3729
|
-
|
|
3730
|
-
|
|
3731
|
-
|
|
3732
|
-
|
|
3733
|
-
|
|
3734
|
-
|
|
3735
|
-
|
|
3736
|
-
|
|
3737
|
-
|
|
3738
|
-
|
|
3739
|
-
|
|
3740
|
-
|
|
3741
|
-
|
|
3742
|
-
|
|
3743
|
-
|
|
3744
|
-
|
|
3745
|
-
|
|
3746
|
-
})
|
|
3747
|
-
|
|
3748
|
-
|
|
3749
|
-
|
|
3750
|
-
|
|
3751
|
-
}),
|
|
3752
|
-
|
|
3753
|
-
|
|
3754
|
-
|
|
3755
|
-
})
|
|
3756
|
-
|
|
3757
|
-
|
|
3758
|
-
|
|
3759
|
-
|
|
3760
|
-
|
|
3761
|
-
|
|
3762
|
-
|
|
3763
|
-
|
|
3764
|
-
|
|
3765
|
-
|
|
3766
|
-
|
|
3767
|
-
|
|
3768
|
-
|
|
3769
|
-
|
|
3585
|
+
inputContractId: TemplateInputContractId,
|
|
3586
|
+
commitSha: Schema$1.String.check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^[a-f0-9]{40}$")).annotate({ expected: "a string matching the RegExp ^[a-f0-9]{40}$" })),
|
|
3587
|
+
treeSha: Schema$1.String.check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^[a-f0-9]{40}$")).annotate({ expected: "a string matching the RegExp ^[a-f0-9]{40}$" })),
|
|
3588
|
+
entryPath: Schema$1.String.check(Schema$1.isMaxLength(1024).annotate({ expected: "a value with a length of at most 1024" })).check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^(?!\\/)(?!.*\\\\)(?!.*(?:^|\\/)\\.{1,2}(?:\\/|$))(?!.*(?:^|\\/)\\.git(?:\\/|$))emails\\/.+\\.tsx$")).annotate({ expected: "a string matching the RegExp ^(?!\\/)(?!.*\\\\)(?!.*(?:^|\\/)\\.{1,2}(?:\\/|$))(?!.*(?:^|\\/)\\.git(?:\\/|$))emails\\/.+\\.tsx$" })),
|
|
3589
|
+
buildIdentity: Schema$1.String.check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^[a-f0-9]{64}$")).annotate({ expected: "a string matching the RegExp ^[a-f0-9]{64}$" })),
|
|
3590
|
+
manifest: Schema$1.Struct({
|
|
3591
|
+
templateKey: Schema$1.String.check(Schema$1.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })),
|
|
3592
|
+
executable: Schema$1.Struct({
|
|
3593
|
+
codeDigest: Schema$1.String.check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^[a-f0-9]{64}$")).annotate({ expected: "a string matching the RegExp ^[a-f0-9]{64}$" })),
|
|
3594
|
+
bytes: Schema$1.Finite.check(Schema$1.isInt().annotate({ expected: "an integer" })).check(Schema$1.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" }))
|
|
3595
|
+
}),
|
|
3596
|
+
input: Schema$1.Struct({
|
|
3597
|
+
schemaDigest: Schema$1.String.check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^[a-f0-9]{64}$")).annotate({ expected: "a string matching the RegExp ^[a-f0-9]{64}$" })),
|
|
3598
|
+
contractDigest: Schema$1.String.check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^[a-f0-9]{64}$")).annotate({ expected: "a string matching the RegExp ^[a-f0-9]{64}$" }))
|
|
3599
|
+
}),
|
|
3600
|
+
environment: Schema$1.Struct({
|
|
3601
|
+
locale: Schema$1.String.check(Schema$1.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })),
|
|
3602
|
+
timeZone: Schema$1.Literal("UTC"),
|
|
3603
|
+
now: Schema$1.optionalKey(Schema$1.Finite.check(Schema$1.isInt().annotate({ expected: "an integer" }))),
|
|
3604
|
+
randomSeed: Schema$1.optionalKey(Schema$1.Finite.check(Schema$1.isInt().annotate({ expected: "an integer" })).check(Schema$1.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })).check(Schema$1.isLessThanOrEqualTo(4294967295).annotate({ expected: "a value less than or equal to 4294967295" }))),
|
|
3605
|
+
compiler: Schema$1.String.check(Schema$1.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })),
|
|
3606
|
+
runtime: Schema$1.String.check(Schema$1.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })),
|
|
3607
|
+
checker: Schema$1.String.check(Schema$1.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })),
|
|
3608
|
+
lockKind: Schema$1.Literals(["bun", "npm"]),
|
|
3609
|
+
lockDigest: Schema$1.String.check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^[a-f0-9]{64}$")).annotate({ expected: "a string matching the RegExp ^[a-f0-9]{64}$" })),
|
|
3610
|
+
digest: Schema$1.String.check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^[a-f0-9]{64}$")).annotate({ expected: "a string matching the RegExp ^[a-f0-9]{64}$" }))
|
|
3611
|
+
}),
|
|
3612
|
+
assets: Schema$1.Struct({
|
|
3613
|
+
base: Schema$1.String.check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^https?:\\/\\/")).annotate({ expected: "a string matching the RegExp ^https?:\\/\\/" })),
|
|
3614
|
+
entries: Schema$1.Array(Schema$1.Struct({
|
|
3615
|
+
path: Schema$1.String.check(Schema$1.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema$1.isMaxLength(1024).annotate({ expected: "a value with a length of at most 1024" })),
|
|
3616
|
+
fileName: Schema$1.String.check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^[a-f0-9]{64}(?:\\.[A-Za-z0-9]+)?$")).annotate({ expected: "a string matching the RegExp ^[a-f0-9]{64}(?:\\.[A-Za-z0-9]+)?$" })),
|
|
3617
|
+
digest: Schema$1.String.check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^[a-f0-9]{64}$")).annotate({ expected: "a string matching the RegExp ^[a-f0-9]{64}$" })),
|
|
3618
|
+
bytes: Schema$1.Finite.check(Schema$1.isInt().annotate({ expected: "an integer" })).check(Schema$1.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })),
|
|
3619
|
+
contentType: Schema$1.String.check(Schema$1.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })),
|
|
3620
|
+
url: Schema$1.String.check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^https?:\\/\\/")).annotate({ expected: "a string matching the RegExp ^https?:\\/\\/" }))
|
|
3621
|
+
})).check(Schema$1.isMaxLength(32).annotate({ expected: "a value with a length of at most 32" }))
|
|
3622
|
+
}),
|
|
3623
|
+
source: Schema$1.Struct({
|
|
3624
|
+
commitSha: Schema$1.String.check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^[a-f0-9]{40}$")).annotate({ expected: "a string matching the RegExp ^[a-f0-9]{40}$" })),
|
|
3625
|
+
treeSha: Schema$1.String.check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^[a-f0-9]{40}$")).annotate({ expected: "a string matching the RegExp ^[a-f0-9]{40}$" })),
|
|
3626
|
+
entryPath: Schema$1.String.check(Schema$1.isMaxLength(1024).annotate({ expected: "a value with a length of at most 1024" })).check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^(?!\\/)(?!.*\\\\)(?!.*(?:^|\\/)\\.{1,2}(?:\\/|$))(?!.*(?:^|\\/)\\.git(?:\\/|$))emails\\/.+\\.tsx$")).annotate({ expected: "a string matching the RegExp ^(?!\\/)(?!.*\\\\)(?!.*(?:^|\\/)\\.{1,2}(?:\\/|$))(?!.*(?:^|\\/)\\.git(?:\\/|$))emails\\/.+\\.tsx$" })),
|
|
3627
|
+
treeDigest: Schema$1.String.check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^[a-f0-9]{64}$")).annotate({ expected: "a string matching the RegExp ^[a-f0-9]{64}$" }))
|
|
3628
|
+
})
|
|
3629
|
+
}),
|
|
3630
|
+
executable: Schema$1.Struct({
|
|
3631
|
+
key: Schema$1.String.check(Schema$1.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })),
|
|
3632
|
+
digest: Schema$1.String.check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^[a-f0-9]{64}$")).annotate({ expected: "a string matching the RegExp ^[a-f0-9]{64}$" }))
|
|
3633
|
+
}),
|
|
3634
|
+
assets: Schema$1.Array(Schema$1.Struct({
|
|
3635
|
+
path: Schema$1.String.check(Schema$1.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema$1.isMaxLength(1024).annotate({ expected: "a value with a length of at most 1024" })),
|
|
3636
|
+
fileName: Schema$1.String.check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^[a-f0-9]{64}(?:\\.[A-Za-z0-9]+)?$")).annotate({ expected: "a string matching the RegExp ^[a-f0-9]{64}(?:\\.[A-Za-z0-9]+)?$" })),
|
|
3637
|
+
digest: Schema$1.String.check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^[a-f0-9]{64}$")).annotate({ expected: "a string matching the RegExp ^[a-f0-9]{64}$" })),
|
|
3638
|
+
bytes: Schema$1.Finite.check(Schema$1.isInt().annotate({ expected: "an integer" })).check(Schema$1.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })),
|
|
3639
|
+
contentType: Schema$1.String.check(Schema$1.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })),
|
|
3640
|
+
url: Schema$1.String.check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^https?:\\/\\/")).annotate({ expected: "a string matching the RegExp ^https?:\\/\\/" }))
|
|
3641
|
+
})),
|
|
3642
|
+
warnings: Schema$1.Array(Schema$1.Struct({
|
|
3643
|
+
code: Schema$1.String,
|
|
3644
|
+
severity: Schema$1.Literals([
|
|
3645
|
+
"error",
|
|
3646
|
+
"warning",
|
|
3647
|
+
"info"
|
|
3648
|
+
]),
|
|
3649
|
+
message: Schema$1.String,
|
|
3650
|
+
origins: Schema$1.Array(Schema$1.Struct({
|
|
3651
|
+
fileName: Schema$1.String,
|
|
3652
|
+
lineNumber: Schema$1.Finite.check(Schema$1.isInt().annotate({ expected: "an integer" })).check(Schema$1.isGreaterThanOrEqualTo(1).annotate({ expected: "a value greater than or equal to 1" })),
|
|
3653
|
+
columnNumber: Schema$1.Finite.check(Schema$1.isInt().annotate({ expected: "an integer" })).check(Schema$1.isGreaterThanOrEqualTo(1).annotate({ expected: "a value greater than or equal to 1" }))
|
|
3654
|
+
})),
|
|
3655
|
+
clients: Schema$1.optionalKey(Schema$1.Union([Schema$1.Array(Schema$1.String), Schema$1.Null])),
|
|
3656
|
+
notes: Schema$1.optionalKey(Schema$1.Union([Schema$1.String, Schema$1.Null])),
|
|
3657
|
+
provenance: Schema$1.optionalKey(Schema$1.Union([Schema$1.String, Schema$1.Null])),
|
|
3658
|
+
fixtures: Schema$1.optionalKey(Schema$1.Union([Schema$1.Array(Schema$1.String), Schema$1.Null])),
|
|
3659
|
+
occurrences: Schema$1.optionalKey(Schema$1.Union([Schema$1.Array(Schema$1.Array(Schema$1.Struct({
|
|
3660
|
+
fileName: Schema$1.String,
|
|
3661
|
+
lineNumber: Schema$1.Finite.check(Schema$1.isInt().annotate({ expected: "an integer" })).check(Schema$1.isGreaterThanOrEqualTo(1).annotate({ expected: "a value greater than or equal to 1" })),
|
|
3662
|
+
columnNumber: Schema$1.Finite.check(Schema$1.isInt().annotate({ expected: "an integer" })).check(Schema$1.isGreaterThanOrEqualTo(1).annotate({ expected: "a value greater than or equal to 1" }))
|
|
3663
|
+
}))), Schema$1.Null])),
|
|
3664
|
+
compatibility: Schema$1.optionalKey(Schema$1.Union([Schema$1.Struct({
|
|
3665
|
+
assessment: Schema$1.Literals([
|
|
3666
|
+
"risk",
|
|
3667
|
+
"degradation",
|
|
3668
|
+
"unverified",
|
|
3669
|
+
"not-applicable"
|
|
3670
|
+
]),
|
|
3671
|
+
title: Schema$1.String
|
|
3672
|
+
}), Schema$1.Null]))
|
|
3673
|
+
})),
|
|
3674
|
+
incompatibilities: Schema$1.Array(Schema$1.Struct({
|
|
3675
|
+
code: Schema$1.String,
|
|
3676
|
+
severity: Schema$1.Literals([
|
|
3677
|
+
"error",
|
|
3678
|
+
"warning",
|
|
3679
|
+
"info"
|
|
3680
|
+
]),
|
|
3681
|
+
message: Schema$1.String,
|
|
3682
|
+
origins: Schema$1.Array(Schema$1.Struct({
|
|
3683
|
+
fileName: Schema$1.String,
|
|
3684
|
+
lineNumber: Schema$1.Finite.check(Schema$1.isInt().annotate({ expected: "an integer" })).check(Schema$1.isGreaterThanOrEqualTo(1).annotate({ expected: "a value greater than or equal to 1" })),
|
|
3685
|
+
columnNumber: Schema$1.Finite.check(Schema$1.isInt().annotate({ expected: "an integer" })).check(Schema$1.isGreaterThanOrEqualTo(1).annotate({ expected: "a value greater than or equal to 1" }))
|
|
3686
|
+
})),
|
|
3687
|
+
clients: Schema$1.optionalKey(Schema$1.Union([Schema$1.Array(Schema$1.String), Schema$1.Null])),
|
|
3688
|
+
notes: Schema$1.optionalKey(Schema$1.Union([Schema$1.String, Schema$1.Null])),
|
|
3689
|
+
provenance: Schema$1.optionalKey(Schema$1.Union([Schema$1.String, Schema$1.Null])),
|
|
3690
|
+
fixtures: Schema$1.optionalKey(Schema$1.Union([Schema$1.Array(Schema$1.String), Schema$1.Null])),
|
|
3691
|
+
occurrences: Schema$1.optionalKey(Schema$1.Union([Schema$1.Array(Schema$1.Array(Schema$1.Struct({
|
|
3692
|
+
fileName: Schema$1.String,
|
|
3693
|
+
lineNumber: Schema$1.Finite.check(Schema$1.isInt().annotate({ expected: "an integer" })).check(Schema$1.isGreaterThanOrEqualTo(1).annotate({ expected: "a value greater than or equal to 1" })),
|
|
3694
|
+
columnNumber: Schema$1.Finite.check(Schema$1.isInt().annotate({ expected: "an integer" })).check(Schema$1.isGreaterThanOrEqualTo(1).annotate({ expected: "a value greater than or equal to 1" }))
|
|
3695
|
+
}))), Schema$1.Null])),
|
|
3696
|
+
compatibility: Schema$1.optionalKey(Schema$1.Union([Schema$1.Struct({
|
|
3697
|
+
assessment: Schema$1.Literals([
|
|
3698
|
+
"risk",
|
|
3699
|
+
"degradation",
|
|
3700
|
+
"unverified",
|
|
3701
|
+
"not-applicable"
|
|
3702
|
+
]),
|
|
3703
|
+
title: Schema$1.String
|
|
3704
|
+
}), Schema$1.Null]))
|
|
3705
|
+
})),
|
|
3706
|
+
status: Schema$1.String,
|
|
3707
|
+
publishedAt: Schema$1.String,
|
|
3708
|
+
publishedBy: Schema$1.Union([Schema$1.String, Schema$1.Null]),
|
|
3709
|
+
createdAt: Schema$1.String
|
|
3710
|
+
});
|
|
3711
|
+
const TemplatesPublish401 = UnauthorizedError;
|
|
3712
|
+
const TemplatesPublish403 = ForbiddenError;
|
|
3713
|
+
const TemplatesPublish404 = ResourceNotFoundError;
|
|
3714
|
+
const TemplatesPublish409 = ConflictError;
|
|
3715
|
+
const TemplatesPublish422 = ValidationError;
|
|
3716
|
+
const TemplatesPublish500 = InternalError;
|
|
3717
|
+
const TemplatesGetPublicationPathParams = Schema$1.Struct({
|
|
3718
|
+
id: TemplateId,
|
|
3719
|
+
publicationId: TemplatePublicationId
|
|
3770
3720
|
});
|
|
3771
|
-
const
|
|
3772
|
-
|
|
3721
|
+
const TemplatesGetPublication200 = Schema$1.Struct({
|
|
3722
|
+
id: TemplatePublicationId,
|
|
3723
|
+
organizationId: OrganizationId,
|
|
3724
|
+
projectId: TemplateProjectId,
|
|
3725
|
+
templateId: TemplateId,
|
|
3726
|
+
inputContractId: TemplateInputContractId,
|
|
3727
|
+
commitSha: Schema$1.String.check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^[a-f0-9]{40}$")).annotate({ expected: "a string matching the RegExp ^[a-f0-9]{40}$" })),
|
|
3728
|
+
treeSha: Schema$1.String.check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^[a-f0-9]{40}$")).annotate({ expected: "a string matching the RegExp ^[a-f0-9]{40}$" })),
|
|
3729
|
+
entryPath: Schema$1.String.check(Schema$1.isMaxLength(1024).annotate({ expected: "a value with a length of at most 1024" })).check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^(?!\\/)(?!.*\\\\)(?!.*(?:^|\\/)\\.{1,2}(?:\\/|$))(?!.*(?:^|\\/)\\.git(?:\\/|$))emails\\/.+\\.tsx$")).annotate({ expected: "a string matching the RegExp ^(?!\\/)(?!.*\\\\)(?!.*(?:^|\\/)\\.{1,2}(?:\\/|$))(?!.*(?:^|\\/)\\.git(?:\\/|$))emails\\/.+\\.tsx$" })),
|
|
3730
|
+
buildIdentity: Schema$1.String.check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^[a-f0-9]{64}$")).annotate({ expected: "a string matching the RegExp ^[a-f0-9]{64}$" })),
|
|
3731
|
+
manifest: Schema$1.Struct({
|
|
3732
|
+
templateKey: Schema$1.String.check(Schema$1.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })),
|
|
3733
|
+
executable: Schema$1.Struct({
|
|
3734
|
+
codeDigest: Schema$1.String.check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^[a-f0-9]{64}$")).annotate({ expected: "a string matching the RegExp ^[a-f0-9]{64}$" })),
|
|
3735
|
+
bytes: Schema$1.Finite.check(Schema$1.isInt().annotate({ expected: "an integer" })).check(Schema$1.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" }))
|
|
3736
|
+
}),
|
|
3737
|
+
input: Schema$1.Struct({
|
|
3738
|
+
schemaDigest: Schema$1.String.check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^[a-f0-9]{64}$")).annotate({ expected: "a string matching the RegExp ^[a-f0-9]{64}$" })),
|
|
3739
|
+
contractDigest: Schema$1.String.check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^[a-f0-9]{64}$")).annotate({ expected: "a string matching the RegExp ^[a-f0-9]{64}$" }))
|
|
3740
|
+
}),
|
|
3741
|
+
environment: Schema$1.Struct({
|
|
3742
|
+
locale: Schema$1.String.check(Schema$1.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })),
|
|
3743
|
+
timeZone: Schema$1.Literal("UTC"),
|
|
3744
|
+
now: Schema$1.optionalKey(Schema$1.Finite.check(Schema$1.isInt().annotate({ expected: "an integer" }))),
|
|
3745
|
+
randomSeed: Schema$1.optionalKey(Schema$1.Finite.check(Schema$1.isInt().annotate({ expected: "an integer" })).check(Schema$1.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })).check(Schema$1.isLessThanOrEqualTo(4294967295).annotate({ expected: "a value less than or equal to 4294967295" }))),
|
|
3746
|
+
compiler: Schema$1.String.check(Schema$1.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })),
|
|
3747
|
+
runtime: Schema$1.String.check(Schema$1.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })),
|
|
3748
|
+
checker: Schema$1.String.check(Schema$1.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })),
|
|
3749
|
+
lockKind: Schema$1.Literals(["bun", "npm"]),
|
|
3750
|
+
lockDigest: Schema$1.String.check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^[a-f0-9]{64}$")).annotate({ expected: "a string matching the RegExp ^[a-f0-9]{64}$" })),
|
|
3751
|
+
digest: Schema$1.String.check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^[a-f0-9]{64}$")).annotate({ expected: "a string matching the RegExp ^[a-f0-9]{64}$" }))
|
|
3752
|
+
}),
|
|
3753
|
+
assets: Schema$1.Struct({
|
|
3754
|
+
base: Schema$1.String.check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^https?:\\/\\/")).annotate({ expected: "a string matching the RegExp ^https?:\\/\\/" })),
|
|
3755
|
+
entries: Schema$1.Array(Schema$1.Struct({
|
|
3756
|
+
path: Schema$1.String.check(Schema$1.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema$1.isMaxLength(1024).annotate({ expected: "a value with a length of at most 1024" })),
|
|
3757
|
+
fileName: Schema$1.String.check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^[a-f0-9]{64}(?:\\.[A-Za-z0-9]+)?$")).annotate({ expected: "a string matching the RegExp ^[a-f0-9]{64}(?:\\.[A-Za-z0-9]+)?$" })),
|
|
3758
|
+
digest: Schema$1.String.check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^[a-f0-9]{64}$")).annotate({ expected: "a string matching the RegExp ^[a-f0-9]{64}$" })),
|
|
3759
|
+
bytes: Schema$1.Finite.check(Schema$1.isInt().annotate({ expected: "an integer" })).check(Schema$1.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })),
|
|
3760
|
+
contentType: Schema$1.String.check(Schema$1.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })),
|
|
3761
|
+
url: Schema$1.String.check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^https?:\\/\\/")).annotate({ expected: "a string matching the RegExp ^https?:\\/\\/" }))
|
|
3762
|
+
})).check(Schema$1.isMaxLength(32).annotate({ expected: "a value with a length of at most 32" }))
|
|
3763
|
+
}),
|
|
3764
|
+
source: Schema$1.Struct({
|
|
3765
|
+
commitSha: Schema$1.String.check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^[a-f0-9]{40}$")).annotate({ expected: "a string matching the RegExp ^[a-f0-9]{40}$" })),
|
|
3766
|
+
treeSha: Schema$1.String.check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^[a-f0-9]{40}$")).annotate({ expected: "a string matching the RegExp ^[a-f0-9]{40}$" })),
|
|
3767
|
+
entryPath: Schema$1.String.check(Schema$1.isMaxLength(1024).annotate({ expected: "a value with a length of at most 1024" })).check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^(?!\\/)(?!.*\\\\)(?!.*(?:^|\\/)\\.{1,2}(?:\\/|$))(?!.*(?:^|\\/)\\.git(?:\\/|$))emails\\/.+\\.tsx$")).annotate({ expected: "a string matching the RegExp ^(?!\\/)(?!.*\\\\)(?!.*(?:^|\\/)\\.{1,2}(?:\\/|$))(?!.*(?:^|\\/)\\.git(?:\\/|$))emails\\/.+\\.tsx$" })),
|
|
3768
|
+
treeDigest: Schema$1.String.check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^[a-f0-9]{64}$")).annotate({ expected: "a string matching the RegExp ^[a-f0-9]{64}$" }))
|
|
3769
|
+
})
|
|
3770
|
+
}),
|
|
3771
|
+
executable: Schema$1.Struct({
|
|
3772
|
+
key: Schema$1.String.check(Schema$1.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })),
|
|
3773
|
+
digest: Schema$1.String.check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^[a-f0-9]{64}$")).annotate({ expected: "a string matching the RegExp ^[a-f0-9]{64}$" }))
|
|
3774
|
+
}),
|
|
3775
|
+
assets: Schema$1.Array(Schema$1.Struct({
|
|
3776
|
+
path: Schema$1.String.check(Schema$1.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema$1.isMaxLength(1024).annotate({ expected: "a value with a length of at most 1024" })),
|
|
3777
|
+
fileName: Schema$1.String.check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^[a-f0-9]{64}(?:\\.[A-Za-z0-9]+)?$")).annotate({ expected: "a string matching the RegExp ^[a-f0-9]{64}(?:\\.[A-Za-z0-9]+)?$" })),
|
|
3778
|
+
digest: Schema$1.String.check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^[a-f0-9]{64}$")).annotate({ expected: "a string matching the RegExp ^[a-f0-9]{64}$" })),
|
|
3779
|
+
bytes: Schema$1.Finite.check(Schema$1.isInt().annotate({ expected: "an integer" })).check(Schema$1.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })),
|
|
3780
|
+
contentType: Schema$1.String.check(Schema$1.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })),
|
|
3781
|
+
url: Schema$1.String.check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^https?:\\/\\/")).annotate({ expected: "a string matching the RegExp ^https?:\\/\\/" }))
|
|
3782
|
+
})),
|
|
3783
|
+
warnings: Schema$1.Array(Schema$1.Struct({
|
|
3784
|
+
code: Schema$1.String,
|
|
3785
|
+
severity: Schema$1.Literals([
|
|
3786
|
+
"error",
|
|
3787
|
+
"warning",
|
|
3788
|
+
"info"
|
|
3789
|
+
]),
|
|
3790
|
+
message: Schema$1.String,
|
|
3791
|
+
origins: Schema$1.Array(Schema$1.Struct({
|
|
3792
|
+
fileName: Schema$1.String,
|
|
3793
|
+
lineNumber: Schema$1.Finite.check(Schema$1.isInt().annotate({ expected: "an integer" })).check(Schema$1.isGreaterThanOrEqualTo(1).annotate({ expected: "a value greater than or equal to 1" })),
|
|
3794
|
+
columnNumber: Schema$1.Finite.check(Schema$1.isInt().annotate({ expected: "an integer" })).check(Schema$1.isGreaterThanOrEqualTo(1).annotate({ expected: "a value greater than or equal to 1" }))
|
|
3795
|
+
})),
|
|
3796
|
+
clients: Schema$1.optionalKey(Schema$1.Union([Schema$1.Array(Schema$1.String), Schema$1.Null])),
|
|
3797
|
+
notes: Schema$1.optionalKey(Schema$1.Union([Schema$1.String, Schema$1.Null])),
|
|
3798
|
+
provenance: Schema$1.optionalKey(Schema$1.Union([Schema$1.String, Schema$1.Null])),
|
|
3799
|
+
fixtures: Schema$1.optionalKey(Schema$1.Union([Schema$1.Array(Schema$1.String), Schema$1.Null])),
|
|
3800
|
+
occurrences: Schema$1.optionalKey(Schema$1.Union([Schema$1.Array(Schema$1.Array(Schema$1.Struct({
|
|
3801
|
+
fileName: Schema$1.String,
|
|
3802
|
+
lineNumber: Schema$1.Finite.check(Schema$1.isInt().annotate({ expected: "an integer" })).check(Schema$1.isGreaterThanOrEqualTo(1).annotate({ expected: "a value greater than or equal to 1" })),
|
|
3803
|
+
columnNumber: Schema$1.Finite.check(Schema$1.isInt().annotate({ expected: "an integer" })).check(Schema$1.isGreaterThanOrEqualTo(1).annotate({ expected: "a value greater than or equal to 1" }))
|
|
3804
|
+
}))), Schema$1.Null])),
|
|
3805
|
+
compatibility: Schema$1.optionalKey(Schema$1.Union([Schema$1.Struct({
|
|
3806
|
+
assessment: Schema$1.Literals([
|
|
3807
|
+
"risk",
|
|
3808
|
+
"degradation",
|
|
3809
|
+
"unverified",
|
|
3810
|
+
"not-applicable"
|
|
3811
|
+
]),
|
|
3812
|
+
title: Schema$1.String
|
|
3813
|
+
}), Schema$1.Null]))
|
|
3814
|
+
})),
|
|
3815
|
+
incompatibilities: Schema$1.Array(Schema$1.Struct({
|
|
3816
|
+
code: Schema$1.String,
|
|
3817
|
+
severity: Schema$1.Literals([
|
|
3818
|
+
"error",
|
|
3819
|
+
"warning",
|
|
3820
|
+
"info"
|
|
3821
|
+
]),
|
|
3822
|
+
message: Schema$1.String,
|
|
3823
|
+
origins: Schema$1.Array(Schema$1.Struct({
|
|
3824
|
+
fileName: Schema$1.String,
|
|
3825
|
+
lineNumber: Schema$1.Finite.check(Schema$1.isInt().annotate({ expected: "an integer" })).check(Schema$1.isGreaterThanOrEqualTo(1).annotate({ expected: "a value greater than or equal to 1" })),
|
|
3826
|
+
columnNumber: Schema$1.Finite.check(Schema$1.isInt().annotate({ expected: "an integer" })).check(Schema$1.isGreaterThanOrEqualTo(1).annotate({ expected: "a value greater than or equal to 1" }))
|
|
3827
|
+
})),
|
|
3828
|
+
clients: Schema$1.optionalKey(Schema$1.Union([Schema$1.Array(Schema$1.String), Schema$1.Null])),
|
|
3829
|
+
notes: Schema$1.optionalKey(Schema$1.Union([Schema$1.String, Schema$1.Null])),
|
|
3830
|
+
provenance: Schema$1.optionalKey(Schema$1.Union([Schema$1.String, Schema$1.Null])),
|
|
3831
|
+
fixtures: Schema$1.optionalKey(Schema$1.Union([Schema$1.Array(Schema$1.String), Schema$1.Null])),
|
|
3832
|
+
occurrences: Schema$1.optionalKey(Schema$1.Union([Schema$1.Array(Schema$1.Array(Schema$1.Struct({
|
|
3833
|
+
fileName: Schema$1.String,
|
|
3834
|
+
lineNumber: Schema$1.Finite.check(Schema$1.isInt().annotate({ expected: "an integer" })).check(Schema$1.isGreaterThanOrEqualTo(1).annotate({ expected: "a value greater than or equal to 1" })),
|
|
3835
|
+
columnNumber: Schema$1.Finite.check(Schema$1.isInt().annotate({ expected: "an integer" })).check(Schema$1.isGreaterThanOrEqualTo(1).annotate({ expected: "a value greater than or equal to 1" }))
|
|
3836
|
+
}))), Schema$1.Null])),
|
|
3837
|
+
compatibility: Schema$1.optionalKey(Schema$1.Union([Schema$1.Struct({
|
|
3838
|
+
assessment: Schema$1.Literals([
|
|
3839
|
+
"risk",
|
|
3840
|
+
"degradation",
|
|
3841
|
+
"unverified",
|
|
3842
|
+
"not-applicable"
|
|
3843
|
+
]),
|
|
3844
|
+
title: Schema$1.String
|
|
3845
|
+
}), Schema$1.Null]))
|
|
3846
|
+
})),
|
|
3773
3847
|
status: Schema$1.String,
|
|
3774
|
-
|
|
3775
|
-
|
|
3776
|
-
|
|
3777
|
-
html: Schema$1.optionalKey(Schema$1.Union([Schema$1.String, Schema$1.Null])),
|
|
3778
|
-
text: Schema$1.String,
|
|
3779
|
-
missingVariables: Schema$1.Array(Schema$1.String)
|
|
3780
|
-
})
|
|
3848
|
+
publishedAt: Schema$1.String,
|
|
3849
|
+
publishedBy: Schema$1.Union([Schema$1.String, Schema$1.Null]),
|
|
3850
|
+
createdAt: Schema$1.String
|
|
3781
3851
|
});
|
|
3782
|
-
const
|
|
3783
|
-
const
|
|
3784
|
-
const
|
|
3785
|
-
const
|
|
3786
|
-
const
|
|
3787
|
-
const
|
|
3788
|
-
|
|
3789
|
-
|
|
3790
|
-
|
|
3791
|
-
const
|
|
3792
|
-
const
|
|
3852
|
+
const TemplatesGetPublication401 = UnauthorizedError;
|
|
3853
|
+
const TemplatesGetPublication403 = ForbiddenError;
|
|
3854
|
+
const TemplatesGetPublication404 = ResourceNotFoundError;
|
|
3855
|
+
const TemplatesGetPublication500 = InternalError;
|
|
3856
|
+
const TemplatesGetGitRepositoryPathParams = Schema$1.Struct({ id: TemplateId });
|
|
3857
|
+
const TemplatesGetGitRepository200 = Schema$1.Struct({
|
|
3858
|
+
remote: Schema$1.String.check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^https:\\/\\/")).annotate({ expected: "a string matching the RegExp ^https:\\/\\/" })),
|
|
3859
|
+
defaultBranch: Schema$1.String.check(Schema$1.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema$1.isMaxLength(255).annotate({ expected: "a value with a length of at most 255" }))
|
|
3860
|
+
});
|
|
3861
|
+
const TemplatesGetGitRepository401 = UnauthorizedError;
|
|
3862
|
+
const TemplatesGetGitRepository403 = ForbiddenError;
|
|
3863
|
+
const TemplatesGetGitRepository404 = ResourceNotFoundError;
|
|
3864
|
+
const TemplatesGetGitRepository409 = ConflictError;
|
|
3865
|
+
const TemplatesGetGitRepository500 = InternalError;
|
|
3866
|
+
const TemplatesIssueGitCredentialPathParams = Schema$1.Struct({ id: TemplateId });
|
|
3867
|
+
const TemplatesIssueGitCredentialRequestJson = Schema$1.Struct({ scope: Schema$1.Literals(["read", "write"]) });
|
|
3868
|
+
const TemplatesIssueGitCredential200 = Schema$1.Struct({
|
|
3869
|
+
remote: Schema$1.String.check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^https:\\/\\/")).annotate({ expected: "a string matching the RegExp ^https:\\/\\/" })),
|
|
3870
|
+
username: Schema$1.Literal("x-access-token"),
|
|
3871
|
+
password: Schema$1.String.check(Schema$1.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })),
|
|
3872
|
+
expiresAt: Schema$1.String
|
|
3873
|
+
});
|
|
3874
|
+
const TemplatesIssueGitCredential401 = UnauthorizedError;
|
|
3875
|
+
const TemplatesIssueGitCredential403 = ForbiddenError;
|
|
3876
|
+
const TemplatesIssueGitCredential404 = ResourceNotFoundError;
|
|
3877
|
+
const TemplatesIssueGitCredential409 = ConflictError;
|
|
3878
|
+
const TemplatesIssueGitCredential500 = InternalError;
|
|
3879
|
+
const TemplatesOpenWorkspacePathParams = Schema$1.Struct({ id: TemplateId });
|
|
3880
|
+
const TemplatesOpenWorkspace200 = Schema$1.Struct({
|
|
3881
|
+
workspace: Schema$1.Struct({
|
|
3882
|
+
projectId: TemplateProjectId,
|
|
3883
|
+
organizationId: Schema$1.Union([OrganizationId, Schema$1.Null]),
|
|
3884
|
+
ownerEpoch: Schema$1.Finite.check(Schema$1.isInt().annotate({ expected: "an integer" })).check(Schema$1.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })),
|
|
3885
|
+
repositoryName: Schema$1.String.check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^[A-Za-z0-9][A-Za-z0-9._-]{0,127}$")).annotate({ expected: "a string matching the RegExp ^[A-Za-z0-9][A-Za-z0-9._-]{0,127}$" })),
|
|
3886
|
+
defaultBranch: Schema$1.String.check(Schema$1.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema$1.isMaxLength(255).annotate({ expected: "a value with a length of at most 255" })),
|
|
3887
|
+
baseCommit: Schema$1.String.check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^[a-f0-9]{40}$")).annotate({ expected: "a string matching the RegExp ^[a-f0-9]{40}$" })),
|
|
3888
|
+
remoteHead: Schema$1.String.check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^[a-f0-9]{40}$")).annotate({ expected: "a string matching the RegExp ^[a-f0-9]{40}$" })),
|
|
3889
|
+
pendingRemoteHead: Schema$1.Union([Schema$1.String.check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^[a-f0-9]{40}$")).annotate({ expected: "a string matching the RegExp ^[a-f0-9]{40}$" })), Schema$1.Null]),
|
|
3890
|
+
revision: Schema$1.String,
|
|
3891
|
+
overlay: Schema$1.Record(Schema$1.String, Schema$1.Union([Schema$1.String, Schema$1.Null])),
|
|
3892
|
+
assetChanges: Schema$1.Array(Schema$1.Struct({
|
|
3893
|
+
path: Schema$1.String,
|
|
3894
|
+
status: Schema$1.Literals([
|
|
3895
|
+
"added",
|
|
3896
|
+
"modified",
|
|
3897
|
+
"deleted"
|
|
3898
|
+
])
|
|
3899
|
+
})),
|
|
3900
|
+
conflicts: Schema$1.Array(Schema$1.Struct({
|
|
3901
|
+
path: Schema$1.String.check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^(?!\\/)(?!.*\\\\)(?!.*(?:^|\\/)\\.{1,2}(?:\\/|$))(?!.*(?:^|\\/)\\.git(?:\\/|$)).{1,1024}$")).annotate({ expected: "a string matching the RegExp ^(?!\\/)(?!.*\\\\)(?!.*(?:^|\\/)\\.{1,2}(?:\\/|$))(?!.*(?:^|\\/)\\.git(?:\\/|$)).{1,1024}$" })),
|
|
3902
|
+
base: Schema$1.Union([Schema$1.String, Schema$1.Null]),
|
|
3903
|
+
draft: Schema$1.Union([Schema$1.String, Schema$1.Null]),
|
|
3904
|
+
main: Schema$1.Union([Schema$1.String, Schema$1.Null])
|
|
3905
|
+
})),
|
|
3906
|
+
provenance: Schema$1.Struct({ references: Schema$1.Array(Schema$1.Struct({
|
|
3907
|
+
kind: Schema$1.String,
|
|
3908
|
+
digest: Schema$1.String,
|
|
3909
|
+
locator: Schema$1.optionalKey(Schema$1.String)
|
|
3910
|
+
})) }),
|
|
3911
|
+
mounts: Schema$1.Array(Schema$1.Union([
|
|
3912
|
+
Schema$1.Struct({
|
|
3913
|
+
kind: Schema$1.Literal("project"),
|
|
3914
|
+
root: Schema$1.Literal("/project"),
|
|
3915
|
+
access: Schema$1.Literal("read-write")
|
|
3916
|
+
}),
|
|
3917
|
+
Schema$1.Struct({
|
|
3918
|
+
root: Schema$1.String.check(Schema$1.isMaxLength(2048).annotate({ expected: "a value with a length of at most 2048" })).check(Schema$1.isPattern(/* @__PURE__ */ new 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(?:\\/|$))[^\\\\/]+)*$")).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(?:\\/|$))[^\\\\/]+)*$" })),
|
|
3919
|
+
digest: Schema$1.String.check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^[a-f0-9]{64}$")).annotate({ expected: "a string matching the RegExp ^[a-f0-9]{64}$" })),
|
|
3920
|
+
fileCount: Schema$1.Finite.check(Schema$1.isInt().annotate({ expected: "an integer" })).check(Schema$1.isGreaterThanOrEqualTo(1).annotate({ expected: "a value greater than or equal to 1" })),
|
|
3921
|
+
byteSize: Schema$1.Finite.check(Schema$1.isInt().annotate({ expected: "an integer" })).check(Schema$1.isGreaterThanOrEqualTo(1).annotate({ expected: "a value greater than or equal to 1" })),
|
|
3922
|
+
kind: Schema$1.Literal("started-from"),
|
|
3923
|
+
access: Schema$1.Literal("read-only"),
|
|
3924
|
+
templateId: Schema$1.String.check(Schema$1.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema$1.isMaxLength(128).annotate({ expected: "a value with a length of at most 128" })),
|
|
3925
|
+
slug: Schema$1.String.check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^[a-z0-9]+(?:-[a-z0-9]+)*$")).annotate({ expected: "a string matching the RegExp ^[a-z0-9]+(?:-[a-z0-9]+)*$" })),
|
|
3926
|
+
name: Schema$1.String.check(Schema$1.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema$1.isMaxLength(256).annotate({ expected: "a value with a length of at most 256" }))
|
|
3927
|
+
}),
|
|
3928
|
+
Schema$1.Struct({
|
|
3929
|
+
root: Schema$1.String.check(Schema$1.isMaxLength(2048).annotate({ expected: "a value with a length of at most 2048" })).check(Schema$1.isPattern(/* @__PURE__ */ new 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(?:\\/|$))[^\\\\/]+)*$")).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(?:\\/|$))[^\\\\/]+)*$" })),
|
|
3930
|
+
digest: Schema$1.String.check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^[a-f0-9]{64}$")).annotate({ expected: "a string matching the RegExp ^[a-f0-9]{64}$" })),
|
|
3931
|
+
fileCount: Schema$1.Finite.check(Schema$1.isInt().annotate({ expected: "an integer" })).check(Schema$1.isGreaterThanOrEqualTo(1).annotate({ expected: "a value greater than or equal to 1" })),
|
|
3932
|
+
byteSize: Schema$1.Finite.check(Schema$1.isInt().annotate({ expected: "an integer" })).check(Schema$1.isGreaterThanOrEqualTo(1).annotate({ expected: "a value greater than or equal to 1" })),
|
|
3933
|
+
kind: Schema$1.Literal("resource"),
|
|
3934
|
+
access: Schema$1.Literal("read-only"),
|
|
3935
|
+
resourceId: Schema$1.String.check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^[A-Za-z0-9._-]{1,128}$")).annotate({ expected: "a string matching the RegExp ^[A-Za-z0-9._-]{1,128}$" })),
|
|
3936
|
+
name: Schema$1.String.check(Schema$1.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema$1.isMaxLength(256).annotate({ expected: "a value with a length of at most 256" }))
|
|
3937
|
+
}),
|
|
3938
|
+
Schema$1.Struct({
|
|
3939
|
+
root: Schema$1.String.check(Schema$1.isMaxLength(2048).annotate({ expected: "a value with a length of at most 2048" })).check(Schema$1.isPattern(/* @__PURE__ */ new 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(?:\\/|$))[^\\\\/]+)*$")).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(?:\\/|$))[^\\\\/]+)*$" })),
|
|
3940
|
+
digest: Schema$1.String.check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^[a-f0-9]{64}$")).annotate({ expected: "a string matching the RegExp ^[a-f0-9]{64}$" })),
|
|
3941
|
+
fileCount: Schema$1.Finite.check(Schema$1.isInt().annotate({ expected: "an integer" })).check(Schema$1.isGreaterThanOrEqualTo(1).annotate({ expected: "a value greater than or equal to 1" })),
|
|
3942
|
+
byteSize: Schema$1.Finite.check(Schema$1.isInt().annotate({ expected: "an integer" })).check(Schema$1.isGreaterThanOrEqualTo(1).annotate({ expected: "a value greater than or equal to 1" })),
|
|
3943
|
+
kind: Schema$1.Literal("library-template"),
|
|
3944
|
+
access: Schema$1.Literal("read-only"),
|
|
3945
|
+
templateId: Schema$1.String.check(Schema$1.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema$1.isMaxLength(128).annotate({ expected: "a value with a length of at most 128" })),
|
|
3946
|
+
slug: Schema$1.String.check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^[a-z0-9]+(?:-[a-z0-9]+)*$")).annotate({ expected: "a string matching the RegExp ^[a-z0-9]+(?:-[a-z0-9]+)*$" })),
|
|
3947
|
+
name: Schema$1.String.check(Schema$1.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema$1.isMaxLength(256).annotate({ expected: "a value with a length of at most 256" }))
|
|
3948
|
+
})
|
|
3949
|
+
])),
|
|
3950
|
+
libraryManifestDigest: Schema$1.String.check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^[a-f0-9]{64}$")).annotate({ expected: "a string matching the RegExp ^[a-f0-9]{64}$" })),
|
|
3951
|
+
createdAt: Schema$1.String,
|
|
3952
|
+
updatedAt: Schema$1.String,
|
|
3953
|
+
createdBy: Schema$1.Struct({
|
|
3954
|
+
userId: UserId,
|
|
3955
|
+
via: Schema$1.Literals([
|
|
3956
|
+
"api",
|
|
3957
|
+
"mcp",
|
|
3958
|
+
"agent"
|
|
3959
|
+
])
|
|
3960
|
+
}),
|
|
3961
|
+
updatedBy: Schema$1.Struct({
|
|
3962
|
+
userId: UserId,
|
|
3963
|
+
via: Schema$1.Literals([
|
|
3964
|
+
"api",
|
|
3965
|
+
"mcp",
|
|
3966
|
+
"agent"
|
|
3967
|
+
])
|
|
3968
|
+
})
|
|
3969
|
+
}),
|
|
3970
|
+
files: Schema$1.Record(Schema$1.String, Schema$1.String)
|
|
3971
|
+
});
|
|
3972
|
+
const TemplatesOpenWorkspace401 = UnauthorizedError;
|
|
3973
|
+
const TemplatesOpenWorkspace403 = ForbiddenError;
|
|
3974
|
+
const TemplatesOpenWorkspace404 = ResourceNotFoundError;
|
|
3975
|
+
const TemplatesOpenWorkspace409 = ConflictError;
|
|
3976
|
+
const TemplatesOpenWorkspace500 = InternalError;
|
|
3977
|
+
const TemplatesPatchWorkspacePathParams = Schema$1.Struct({ id: TemplateId });
|
|
3978
|
+
const TemplatesPatchWorkspaceRequestJson = Schema$1.Struct({
|
|
3793
3979
|
expectedRevision: Schema$1.String,
|
|
3794
|
-
|
|
3980
|
+
patches: Schema$1.Array(Schema$1.Struct({
|
|
3981
|
+
path: Schema$1.String.check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^(?!\\/)(?!.*\\\\)(?!.*(?:^|\\/)\\.{1,2}(?:\\/|$))(?!.*(?:^|\\/)\\.git(?:\\/|$)).{1,1024}$")).annotate({ expected: "a string matching the RegExp ^(?!\\/)(?!.*\\\\)(?!.*(?:^|\\/)\\.{1,2}(?:\\/|$))(?!.*(?:^|\\/)\\.git(?:\\/|$)).{1,1024}$" })),
|
|
3982
|
+
content: Schema$1.Union([Schema$1.String.check(Schema$1.isMaxLength(1048576).annotate({ expected: "a value with a length of at most 1048576" })), Schema$1.Null])
|
|
3983
|
+
})).check(Schema$1.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema$1.isMaxLength(512).annotate({ expected: "a value with a length of at most 512" })),
|
|
3984
|
+
idempotencyKey: Schema$1.String.check(Schema$1.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema$1.isMaxLength(255).annotate({ expected: "a value with a length of at most 255" }))
|
|
3985
|
+
});
|
|
3986
|
+
const TemplatesPatchWorkspace200 = Schema$1.Struct({
|
|
3987
|
+
workspace: Schema$1.Struct({
|
|
3988
|
+
projectId: TemplateProjectId,
|
|
3989
|
+
organizationId: Schema$1.Union([OrganizationId, Schema$1.Null]),
|
|
3990
|
+
ownerEpoch: Schema$1.Finite.check(Schema$1.isInt().annotate({ expected: "an integer" })).check(Schema$1.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })),
|
|
3991
|
+
repositoryName: Schema$1.String.check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^[A-Za-z0-9][A-Za-z0-9._-]{0,127}$")).annotate({ expected: "a string matching the RegExp ^[A-Za-z0-9][A-Za-z0-9._-]{0,127}$" })),
|
|
3992
|
+
defaultBranch: Schema$1.String.check(Schema$1.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema$1.isMaxLength(255).annotate({ expected: "a value with a length of at most 255" })),
|
|
3993
|
+
baseCommit: Schema$1.String.check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^[a-f0-9]{40}$")).annotate({ expected: "a string matching the RegExp ^[a-f0-9]{40}$" })),
|
|
3994
|
+
remoteHead: Schema$1.String.check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^[a-f0-9]{40}$")).annotate({ expected: "a string matching the RegExp ^[a-f0-9]{40}$" })),
|
|
3995
|
+
pendingRemoteHead: Schema$1.Union([Schema$1.String.check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^[a-f0-9]{40}$")).annotate({ expected: "a string matching the RegExp ^[a-f0-9]{40}$" })), Schema$1.Null]),
|
|
3996
|
+
revision: Schema$1.String,
|
|
3997
|
+
overlay: Schema$1.Record(Schema$1.String, Schema$1.Union([Schema$1.String, Schema$1.Null])),
|
|
3998
|
+
assetChanges: Schema$1.Array(Schema$1.Struct({
|
|
3999
|
+
path: Schema$1.String,
|
|
4000
|
+
status: Schema$1.Literals([
|
|
4001
|
+
"added",
|
|
4002
|
+
"modified",
|
|
4003
|
+
"deleted"
|
|
4004
|
+
])
|
|
4005
|
+
})),
|
|
4006
|
+
conflicts: Schema$1.Array(Schema$1.Struct({
|
|
4007
|
+
path: Schema$1.String.check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^(?!\\/)(?!.*\\\\)(?!.*(?:^|\\/)\\.{1,2}(?:\\/|$))(?!.*(?:^|\\/)\\.git(?:\\/|$)).{1,1024}$")).annotate({ expected: "a string matching the RegExp ^(?!\\/)(?!.*\\\\)(?!.*(?:^|\\/)\\.{1,2}(?:\\/|$))(?!.*(?:^|\\/)\\.git(?:\\/|$)).{1,1024}$" })),
|
|
4008
|
+
base: Schema$1.Union([Schema$1.String, Schema$1.Null]),
|
|
4009
|
+
draft: Schema$1.Union([Schema$1.String, Schema$1.Null]),
|
|
4010
|
+
main: Schema$1.Union([Schema$1.String, Schema$1.Null])
|
|
4011
|
+
})),
|
|
4012
|
+
provenance: Schema$1.Struct({ references: Schema$1.Array(Schema$1.Struct({
|
|
4013
|
+
kind: Schema$1.String,
|
|
4014
|
+
digest: Schema$1.String,
|
|
4015
|
+
locator: Schema$1.optionalKey(Schema$1.String)
|
|
4016
|
+
})) }),
|
|
4017
|
+
mounts: Schema$1.Array(Schema$1.Union([
|
|
4018
|
+
Schema$1.Struct({
|
|
4019
|
+
kind: Schema$1.Literal("project"),
|
|
4020
|
+
root: Schema$1.Literal("/project"),
|
|
4021
|
+
access: Schema$1.Literal("read-write")
|
|
4022
|
+
}),
|
|
4023
|
+
Schema$1.Struct({
|
|
4024
|
+
root: Schema$1.String.check(Schema$1.isMaxLength(2048).annotate({ expected: "a value with a length of at most 2048" })).check(Schema$1.isPattern(/* @__PURE__ */ new 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(?:\\/|$))[^\\\\/]+)*$")).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(?:\\/|$))[^\\\\/]+)*$" })),
|
|
4025
|
+
digest: Schema$1.String.check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^[a-f0-9]{64}$")).annotate({ expected: "a string matching the RegExp ^[a-f0-9]{64}$" })),
|
|
4026
|
+
fileCount: Schema$1.Finite.check(Schema$1.isInt().annotate({ expected: "an integer" })).check(Schema$1.isGreaterThanOrEqualTo(1).annotate({ expected: "a value greater than or equal to 1" })),
|
|
4027
|
+
byteSize: Schema$1.Finite.check(Schema$1.isInt().annotate({ expected: "an integer" })).check(Schema$1.isGreaterThanOrEqualTo(1).annotate({ expected: "a value greater than or equal to 1" })),
|
|
4028
|
+
kind: Schema$1.Literal("started-from"),
|
|
4029
|
+
access: Schema$1.Literal("read-only"),
|
|
4030
|
+
templateId: Schema$1.String.check(Schema$1.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema$1.isMaxLength(128).annotate({ expected: "a value with a length of at most 128" })),
|
|
4031
|
+
slug: Schema$1.String.check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^[a-z0-9]+(?:-[a-z0-9]+)*$")).annotate({ expected: "a string matching the RegExp ^[a-z0-9]+(?:-[a-z0-9]+)*$" })),
|
|
4032
|
+
name: Schema$1.String.check(Schema$1.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema$1.isMaxLength(256).annotate({ expected: "a value with a length of at most 256" }))
|
|
4033
|
+
}),
|
|
4034
|
+
Schema$1.Struct({
|
|
4035
|
+
root: Schema$1.String.check(Schema$1.isMaxLength(2048).annotate({ expected: "a value with a length of at most 2048" })).check(Schema$1.isPattern(/* @__PURE__ */ new 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(?:\\/|$))[^\\\\/]+)*$")).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(?:\\/|$))[^\\\\/]+)*$" })),
|
|
4036
|
+
digest: Schema$1.String.check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^[a-f0-9]{64}$")).annotate({ expected: "a string matching the RegExp ^[a-f0-9]{64}$" })),
|
|
4037
|
+
fileCount: Schema$1.Finite.check(Schema$1.isInt().annotate({ expected: "an integer" })).check(Schema$1.isGreaterThanOrEqualTo(1).annotate({ expected: "a value greater than or equal to 1" })),
|
|
4038
|
+
byteSize: Schema$1.Finite.check(Schema$1.isInt().annotate({ expected: "an integer" })).check(Schema$1.isGreaterThanOrEqualTo(1).annotate({ expected: "a value greater than or equal to 1" })),
|
|
4039
|
+
kind: Schema$1.Literal("resource"),
|
|
4040
|
+
access: Schema$1.Literal("read-only"),
|
|
4041
|
+
resourceId: Schema$1.String.check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^[A-Za-z0-9._-]{1,128}$")).annotate({ expected: "a string matching the RegExp ^[A-Za-z0-9._-]{1,128}$" })),
|
|
4042
|
+
name: Schema$1.String.check(Schema$1.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema$1.isMaxLength(256).annotate({ expected: "a value with a length of at most 256" }))
|
|
4043
|
+
}),
|
|
4044
|
+
Schema$1.Struct({
|
|
4045
|
+
root: Schema$1.String.check(Schema$1.isMaxLength(2048).annotate({ expected: "a value with a length of at most 2048" })).check(Schema$1.isPattern(/* @__PURE__ */ new 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(?:\\/|$))[^\\\\/]+)*$")).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(?:\\/|$))[^\\\\/]+)*$" })),
|
|
4046
|
+
digest: Schema$1.String.check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^[a-f0-9]{64}$")).annotate({ expected: "a string matching the RegExp ^[a-f0-9]{64}$" })),
|
|
4047
|
+
fileCount: Schema$1.Finite.check(Schema$1.isInt().annotate({ expected: "an integer" })).check(Schema$1.isGreaterThanOrEqualTo(1).annotate({ expected: "a value greater than or equal to 1" })),
|
|
4048
|
+
byteSize: Schema$1.Finite.check(Schema$1.isInt().annotate({ expected: "an integer" })).check(Schema$1.isGreaterThanOrEqualTo(1).annotate({ expected: "a value greater than or equal to 1" })),
|
|
4049
|
+
kind: Schema$1.Literal("library-template"),
|
|
4050
|
+
access: Schema$1.Literal("read-only"),
|
|
4051
|
+
templateId: Schema$1.String.check(Schema$1.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema$1.isMaxLength(128).annotate({ expected: "a value with a length of at most 128" })),
|
|
4052
|
+
slug: Schema$1.String.check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^[a-z0-9]+(?:-[a-z0-9]+)*$")).annotate({ expected: "a string matching the RegExp ^[a-z0-9]+(?:-[a-z0-9]+)*$" })),
|
|
4053
|
+
name: Schema$1.String.check(Schema$1.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema$1.isMaxLength(256).annotate({ expected: "a value with a length of at most 256" }))
|
|
4054
|
+
})
|
|
4055
|
+
])),
|
|
4056
|
+
libraryManifestDigest: Schema$1.String.check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^[a-f0-9]{64}$")).annotate({ expected: "a string matching the RegExp ^[a-f0-9]{64}$" })),
|
|
4057
|
+
createdAt: Schema$1.String,
|
|
4058
|
+
updatedAt: Schema$1.String,
|
|
4059
|
+
createdBy: Schema$1.Struct({
|
|
4060
|
+
userId: UserId,
|
|
4061
|
+
via: Schema$1.Literals([
|
|
4062
|
+
"api",
|
|
4063
|
+
"mcp",
|
|
4064
|
+
"agent"
|
|
4065
|
+
])
|
|
4066
|
+
}),
|
|
4067
|
+
updatedBy: Schema$1.Struct({
|
|
4068
|
+
userId: UserId,
|
|
4069
|
+
via: Schema$1.Literals([
|
|
4070
|
+
"api",
|
|
4071
|
+
"mcp",
|
|
4072
|
+
"agent"
|
|
4073
|
+
])
|
|
4074
|
+
})
|
|
4075
|
+
}),
|
|
4076
|
+
files: Schema$1.Record(Schema$1.String, Schema$1.String)
|
|
4077
|
+
});
|
|
4078
|
+
const TemplatesPatchWorkspace401 = UnauthorizedError;
|
|
4079
|
+
const TemplatesPatchWorkspace403 = ForbiddenError;
|
|
4080
|
+
const TemplatesPatchWorkspace404 = ResourceNotFoundError;
|
|
4081
|
+
const TemplatesPatchWorkspace409 = ConflictError;
|
|
4082
|
+
const TemplatesPatchWorkspace500 = InternalError;
|
|
4083
|
+
const TemplatesCheckWorkspacePathParams = Schema$1.Struct({ id: TemplateId });
|
|
4084
|
+
const TemplatesCheckWorkspaceRequestJson = Schema$1.Struct({ expectedRevision: Schema$1.String });
|
|
4085
|
+
const TemplatesCheckWorkspace200 = Schema$1.Struct({
|
|
4086
|
+
projectId: TemplateProjectId,
|
|
4087
|
+
revision: Schema$1.String,
|
|
4088
|
+
entryPath: Schema$1.String.check(Schema$1.isMaxLength(1024).annotate({ expected: "a value with a length of at most 1024" })).check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^(?!\\/)(?!.*\\\\)(?!.*(?:^|\\/)\\.{1,2}(?:\\/|$))(?!.*(?:^|\\/)\\.git(?:\\/|$))emails\\/.+\\.tsx$")).annotate({ expected: "a string matching the RegExp ^(?!\\/)(?!.*\\\\)(?!.*(?:^|\\/)\\.{1,2}(?:\\/|$))(?!.*(?:^|\\/)\\.git(?:\\/|$))emails\\/.+\\.tsx$" })),
|
|
4089
|
+
declaration: Schema$1.Union([Schema$1.Struct({
|
|
4090
|
+
codeDigest: Schema$1.String.check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^[a-f0-9]{64}$")).annotate({ expected: "a string matching the RegExp ^[a-f0-9]{64}$" })),
|
|
4091
|
+
templateId: Schema$1.String.check(Schema$1.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema$1.isMaxLength(128).annotate({ expected: "a value with a length of at most 128" })),
|
|
4092
|
+
input: Schema$1.Struct({
|
|
4093
|
+
schema: Schema$1.Record(Schema$1.String, JsonValue),
|
|
4094
|
+
schemaDigest: Schema$1.String.check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^[a-f0-9]{64}$")).annotate({ expected: "a string matching the RegExp ^[a-f0-9]{64}$" })),
|
|
4095
|
+
contractDigest: Schema$1.String.check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^[a-f0-9]{64}$")).annotate({ expected: "a string matching the RegExp ^[a-f0-9]{64}$" }))
|
|
4096
|
+
}),
|
|
4097
|
+
runtime: Schema$1.Struct({
|
|
4098
|
+
now: Schema$1.optionalKey(Schema$1.Finite.check(Schema$1.isInt().annotate({ expected: "an integer" }))),
|
|
4099
|
+
randomSeed: Schema$1.optionalKey(Schema$1.Finite.check(Schema$1.isInt().annotate({ expected: "an integer" })).check(Schema$1.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })).check(Schema$1.isLessThanOrEqualTo(4294967295).annotate({ expected: "a value less than or equal to 4294967295" })))
|
|
4100
|
+
}),
|
|
4101
|
+
fixtures: Schema$1.Array(Schema$1.String.check(Schema$1.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema$1.isMaxLength(128).annotate({ expected: "a value with a length of at most 128" })))
|
|
4102
|
+
}), Schema$1.Null]),
|
|
4103
|
+
diagnostics: Schema$1.Array(Schema$1.Struct({
|
|
4104
|
+
code: Schema$1.String,
|
|
4105
|
+
severity: Schema$1.Literals([
|
|
4106
|
+
"error",
|
|
4107
|
+
"warning",
|
|
4108
|
+
"info"
|
|
4109
|
+
]),
|
|
4110
|
+
message: Schema$1.String,
|
|
4111
|
+
origins: Schema$1.Array(Schema$1.Struct({
|
|
4112
|
+
fileName: Schema$1.String,
|
|
4113
|
+
lineNumber: Schema$1.Finite.check(Schema$1.isInt().annotate({ expected: "an integer" })).check(Schema$1.isGreaterThanOrEqualTo(1).annotate({ expected: "a value greater than or equal to 1" })),
|
|
4114
|
+
columnNumber: Schema$1.Finite.check(Schema$1.isInt().annotate({ expected: "an integer" })).check(Schema$1.isGreaterThanOrEqualTo(1).annotate({ expected: "a value greater than or equal to 1" }))
|
|
4115
|
+
})),
|
|
4116
|
+
clients: Schema$1.optionalKey(Schema$1.Union([Schema$1.Array(Schema$1.String), Schema$1.Null])),
|
|
4117
|
+
notes: Schema$1.optionalKey(Schema$1.Union([Schema$1.String, Schema$1.Null])),
|
|
4118
|
+
provenance: Schema$1.optionalKey(Schema$1.Union([Schema$1.String, Schema$1.Null])),
|
|
4119
|
+
fixtures: Schema$1.optionalKey(Schema$1.Union([Schema$1.Array(Schema$1.String), Schema$1.Null])),
|
|
4120
|
+
occurrences: Schema$1.optionalKey(Schema$1.Union([Schema$1.Array(Schema$1.Array(Schema$1.Struct({
|
|
4121
|
+
fileName: Schema$1.String,
|
|
4122
|
+
lineNumber: Schema$1.Finite.check(Schema$1.isInt().annotate({ expected: "an integer" })).check(Schema$1.isGreaterThanOrEqualTo(1).annotate({ expected: "a value greater than or equal to 1" })),
|
|
4123
|
+
columnNumber: Schema$1.Finite.check(Schema$1.isInt().annotate({ expected: "an integer" })).check(Schema$1.isGreaterThanOrEqualTo(1).annotate({ expected: "a value greater than or equal to 1" }))
|
|
4124
|
+
}))), Schema$1.Null])),
|
|
4125
|
+
compatibility: Schema$1.optionalKey(Schema$1.Union([Schema$1.Struct({
|
|
4126
|
+
assessment: Schema$1.Literals([
|
|
4127
|
+
"risk",
|
|
4128
|
+
"degradation",
|
|
4129
|
+
"unverified",
|
|
4130
|
+
"not-applicable"
|
|
4131
|
+
]),
|
|
4132
|
+
title: Schema$1.String
|
|
4133
|
+
}), Schema$1.Null]))
|
|
4134
|
+
})),
|
|
4135
|
+
incompatibilities: Schema$1.Array(Schema$1.Struct({
|
|
4136
|
+
code: Schema$1.String,
|
|
4137
|
+
severity: Schema$1.Literals([
|
|
4138
|
+
"error",
|
|
4139
|
+
"warning",
|
|
4140
|
+
"info"
|
|
4141
|
+
]),
|
|
4142
|
+
message: Schema$1.String,
|
|
4143
|
+
origins: Schema$1.Array(Schema$1.Struct({
|
|
4144
|
+
fileName: Schema$1.String,
|
|
4145
|
+
lineNumber: Schema$1.Finite.check(Schema$1.isInt().annotate({ expected: "an integer" })).check(Schema$1.isGreaterThanOrEqualTo(1).annotate({ expected: "a value greater than or equal to 1" })),
|
|
4146
|
+
columnNumber: Schema$1.Finite.check(Schema$1.isInt().annotate({ expected: "an integer" })).check(Schema$1.isGreaterThanOrEqualTo(1).annotate({ expected: "a value greater than or equal to 1" }))
|
|
4147
|
+
})),
|
|
4148
|
+
clients: Schema$1.optionalKey(Schema$1.Union([Schema$1.Array(Schema$1.String), Schema$1.Null])),
|
|
4149
|
+
notes: Schema$1.optionalKey(Schema$1.Union([Schema$1.String, Schema$1.Null])),
|
|
4150
|
+
provenance: Schema$1.optionalKey(Schema$1.Union([Schema$1.String, Schema$1.Null])),
|
|
4151
|
+
fixtures: Schema$1.optionalKey(Schema$1.Union([Schema$1.Array(Schema$1.String), Schema$1.Null])),
|
|
4152
|
+
occurrences: Schema$1.optionalKey(Schema$1.Union([Schema$1.Array(Schema$1.Array(Schema$1.Struct({
|
|
4153
|
+
fileName: Schema$1.String,
|
|
4154
|
+
lineNumber: Schema$1.Finite.check(Schema$1.isInt().annotate({ expected: "an integer" })).check(Schema$1.isGreaterThanOrEqualTo(1).annotate({ expected: "a value greater than or equal to 1" })),
|
|
4155
|
+
columnNumber: Schema$1.Finite.check(Schema$1.isInt().annotate({ expected: "an integer" })).check(Schema$1.isGreaterThanOrEqualTo(1).annotate({ expected: "a value greater than or equal to 1" }))
|
|
4156
|
+
}))), Schema$1.Null])),
|
|
4157
|
+
compatibility: Schema$1.optionalKey(Schema$1.Union([Schema$1.Struct({
|
|
4158
|
+
assessment: Schema$1.Literals([
|
|
4159
|
+
"risk",
|
|
4160
|
+
"degradation",
|
|
4161
|
+
"unverified",
|
|
4162
|
+
"not-applicable"
|
|
4163
|
+
]),
|
|
4164
|
+
title: Schema$1.String
|
|
4165
|
+
}), Schema$1.Null]))
|
|
4166
|
+
}))
|
|
3795
4167
|
});
|
|
3796
|
-
const
|
|
3797
|
-
|
|
3798
|
-
|
|
3799
|
-
|
|
3800
|
-
|
|
4168
|
+
const TemplatesCheckWorkspace401 = UnauthorizedError;
|
|
4169
|
+
const TemplatesCheckWorkspace403 = ForbiddenError;
|
|
4170
|
+
const TemplatesCheckWorkspace404 = ResourceNotFoundError;
|
|
4171
|
+
const TemplatesCheckWorkspace409 = ConflictError;
|
|
4172
|
+
const TemplatesCheckWorkspace500 = InternalError;
|
|
4173
|
+
const TemplatesResolveWorkspaceConflictPathParams = Schema$1.Struct({ id: TemplateId });
|
|
4174
|
+
const TemplatesResolveWorkspaceConflictRequestJson = Schema$1.Struct({
|
|
4175
|
+
expectedRevision: Schema$1.String,
|
|
4176
|
+
path: Schema$1.String.check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^(?!\\/)(?!.*\\\\)(?!.*(?:^|\\/)\\.{1,2}(?:\\/|$))(?!.*(?:^|\\/)\\.git(?:\\/|$)).{1,1024}$")).annotate({ expected: "a string matching the RegExp ^(?!\\/)(?!.*\\\\)(?!.*(?:^|\\/)\\.{1,2}(?:\\/|$))(?!.*(?:^|\\/)\\.git(?:\\/|$)).{1,1024}$" })),
|
|
4177
|
+
resolution: Schema$1.Union([
|
|
4178
|
+
Schema$1.Literal("draft"),
|
|
4179
|
+
Schema$1.Literal("main"),
|
|
4180
|
+
Schema$1.Struct({ content: Schema$1.Union([Schema$1.String, Schema$1.Null]) })
|
|
4181
|
+
]),
|
|
4182
|
+
idempotencyKey: Schema$1.String.check(Schema$1.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema$1.isMaxLength(255).annotate({ expected: "a value with a length of at most 255" }))
|
|
4183
|
+
});
|
|
4184
|
+
const TemplatesResolveWorkspaceConflict200 = Schema$1.Struct({
|
|
4185
|
+
workspace: Schema$1.Struct({
|
|
4186
|
+
projectId: TemplateProjectId,
|
|
4187
|
+
organizationId: Schema$1.Union([OrganizationId, Schema$1.Null]),
|
|
4188
|
+
ownerEpoch: Schema$1.Finite.check(Schema$1.isInt().annotate({ expected: "an integer" })).check(Schema$1.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })),
|
|
4189
|
+
repositoryName: Schema$1.String.check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^[A-Za-z0-9][A-Za-z0-9._-]{0,127}$")).annotate({ expected: "a string matching the RegExp ^[A-Za-z0-9][A-Za-z0-9._-]{0,127}$" })),
|
|
4190
|
+
defaultBranch: Schema$1.String.check(Schema$1.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema$1.isMaxLength(255).annotate({ expected: "a value with a length of at most 255" })),
|
|
4191
|
+
baseCommit: Schema$1.String.check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^[a-f0-9]{40}$")).annotate({ expected: "a string matching the RegExp ^[a-f0-9]{40}$" })),
|
|
4192
|
+
remoteHead: Schema$1.String.check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^[a-f0-9]{40}$")).annotate({ expected: "a string matching the RegExp ^[a-f0-9]{40}$" })),
|
|
4193
|
+
pendingRemoteHead: Schema$1.Union([Schema$1.String.check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^[a-f0-9]{40}$")).annotate({ expected: "a string matching the RegExp ^[a-f0-9]{40}$" })), Schema$1.Null]),
|
|
4194
|
+
revision: Schema$1.String,
|
|
4195
|
+
overlay: Schema$1.Record(Schema$1.String, Schema$1.Union([Schema$1.String, Schema$1.Null])),
|
|
4196
|
+
assetChanges: Schema$1.Array(Schema$1.Struct({
|
|
4197
|
+
path: Schema$1.String,
|
|
4198
|
+
status: Schema$1.Literals([
|
|
4199
|
+
"added",
|
|
4200
|
+
"modified",
|
|
4201
|
+
"deleted"
|
|
4202
|
+
])
|
|
4203
|
+
})),
|
|
4204
|
+
conflicts: Schema$1.Array(Schema$1.Struct({
|
|
4205
|
+
path: Schema$1.String.check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^(?!\\/)(?!.*\\\\)(?!.*(?:^|\\/)\\.{1,2}(?:\\/|$))(?!.*(?:^|\\/)\\.git(?:\\/|$)).{1,1024}$")).annotate({ expected: "a string matching the RegExp ^(?!\\/)(?!.*\\\\)(?!.*(?:^|\\/)\\.{1,2}(?:\\/|$))(?!.*(?:^|\\/)\\.git(?:\\/|$)).{1,1024}$" })),
|
|
4206
|
+
base: Schema$1.Union([Schema$1.String, Schema$1.Null]),
|
|
4207
|
+
draft: Schema$1.Union([Schema$1.String, Schema$1.Null]),
|
|
4208
|
+
main: Schema$1.Union([Schema$1.String, Schema$1.Null])
|
|
4209
|
+
})),
|
|
4210
|
+
provenance: Schema$1.Struct({ references: Schema$1.Array(Schema$1.Struct({
|
|
4211
|
+
kind: Schema$1.String,
|
|
4212
|
+
digest: Schema$1.String,
|
|
4213
|
+
locator: Schema$1.optionalKey(Schema$1.String)
|
|
4214
|
+
})) }),
|
|
4215
|
+
mounts: Schema$1.Array(Schema$1.Union([
|
|
4216
|
+
Schema$1.Struct({
|
|
4217
|
+
kind: Schema$1.Literal("project"),
|
|
4218
|
+
root: Schema$1.Literal("/project"),
|
|
4219
|
+
access: Schema$1.Literal("read-write")
|
|
4220
|
+
}),
|
|
4221
|
+
Schema$1.Struct({
|
|
4222
|
+
root: Schema$1.String.check(Schema$1.isMaxLength(2048).annotate({ expected: "a value with a length of at most 2048" })).check(Schema$1.isPattern(/* @__PURE__ */ new 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(?:\\/|$))[^\\\\/]+)*$")).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(?:\\/|$))[^\\\\/]+)*$" })),
|
|
4223
|
+
digest: Schema$1.String.check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^[a-f0-9]{64}$")).annotate({ expected: "a string matching the RegExp ^[a-f0-9]{64}$" })),
|
|
4224
|
+
fileCount: Schema$1.Finite.check(Schema$1.isInt().annotate({ expected: "an integer" })).check(Schema$1.isGreaterThanOrEqualTo(1).annotate({ expected: "a value greater than or equal to 1" })),
|
|
4225
|
+
byteSize: Schema$1.Finite.check(Schema$1.isInt().annotate({ expected: "an integer" })).check(Schema$1.isGreaterThanOrEqualTo(1).annotate({ expected: "a value greater than or equal to 1" })),
|
|
4226
|
+
kind: Schema$1.Literal("started-from"),
|
|
4227
|
+
access: Schema$1.Literal("read-only"),
|
|
4228
|
+
templateId: Schema$1.String.check(Schema$1.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema$1.isMaxLength(128).annotate({ expected: "a value with a length of at most 128" })),
|
|
4229
|
+
slug: Schema$1.String.check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^[a-z0-9]+(?:-[a-z0-9]+)*$")).annotate({ expected: "a string matching the RegExp ^[a-z0-9]+(?:-[a-z0-9]+)*$" })),
|
|
4230
|
+
name: Schema$1.String.check(Schema$1.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema$1.isMaxLength(256).annotate({ expected: "a value with a length of at most 256" }))
|
|
4231
|
+
}),
|
|
4232
|
+
Schema$1.Struct({
|
|
4233
|
+
root: Schema$1.String.check(Schema$1.isMaxLength(2048).annotate({ expected: "a value with a length of at most 2048" })).check(Schema$1.isPattern(/* @__PURE__ */ new 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(?:\\/|$))[^\\\\/]+)*$")).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(?:\\/|$))[^\\\\/]+)*$" })),
|
|
4234
|
+
digest: Schema$1.String.check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^[a-f0-9]{64}$")).annotate({ expected: "a string matching the RegExp ^[a-f0-9]{64}$" })),
|
|
4235
|
+
fileCount: Schema$1.Finite.check(Schema$1.isInt().annotate({ expected: "an integer" })).check(Schema$1.isGreaterThanOrEqualTo(1).annotate({ expected: "a value greater than or equal to 1" })),
|
|
4236
|
+
byteSize: Schema$1.Finite.check(Schema$1.isInt().annotate({ expected: "an integer" })).check(Schema$1.isGreaterThanOrEqualTo(1).annotate({ expected: "a value greater than or equal to 1" })),
|
|
4237
|
+
kind: Schema$1.Literal("resource"),
|
|
4238
|
+
access: Schema$1.Literal("read-only"),
|
|
4239
|
+
resourceId: Schema$1.String.check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^[A-Za-z0-9._-]{1,128}$")).annotate({ expected: "a string matching the RegExp ^[A-Za-z0-9._-]{1,128}$" })),
|
|
4240
|
+
name: Schema$1.String.check(Schema$1.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema$1.isMaxLength(256).annotate({ expected: "a value with a length of at most 256" }))
|
|
4241
|
+
}),
|
|
4242
|
+
Schema$1.Struct({
|
|
4243
|
+
root: Schema$1.String.check(Schema$1.isMaxLength(2048).annotate({ expected: "a value with a length of at most 2048" })).check(Schema$1.isPattern(/* @__PURE__ */ new 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(?:\\/|$))[^\\\\/]+)*$")).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(?:\\/|$))[^\\\\/]+)*$" })),
|
|
4244
|
+
digest: Schema$1.String.check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^[a-f0-9]{64}$")).annotate({ expected: "a string matching the RegExp ^[a-f0-9]{64}$" })),
|
|
4245
|
+
fileCount: Schema$1.Finite.check(Schema$1.isInt().annotate({ expected: "an integer" })).check(Schema$1.isGreaterThanOrEqualTo(1).annotate({ expected: "a value greater than or equal to 1" })),
|
|
4246
|
+
byteSize: Schema$1.Finite.check(Schema$1.isInt().annotate({ expected: "an integer" })).check(Schema$1.isGreaterThanOrEqualTo(1).annotate({ expected: "a value greater than or equal to 1" })),
|
|
4247
|
+
kind: Schema$1.Literal("library-template"),
|
|
4248
|
+
access: Schema$1.Literal("read-only"),
|
|
4249
|
+
templateId: Schema$1.String.check(Schema$1.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema$1.isMaxLength(128).annotate({ expected: "a value with a length of at most 128" })),
|
|
4250
|
+
slug: Schema$1.String.check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^[a-z0-9]+(?:-[a-z0-9]+)*$")).annotate({ expected: "a string matching the RegExp ^[a-z0-9]+(?:-[a-z0-9]+)*$" })),
|
|
4251
|
+
name: Schema$1.String.check(Schema$1.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema$1.isMaxLength(256).annotate({ expected: "a value with a length of at most 256" }))
|
|
4252
|
+
})
|
|
4253
|
+
])),
|
|
4254
|
+
libraryManifestDigest: Schema$1.String.check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^[a-f0-9]{64}$")).annotate({ expected: "a string matching the RegExp ^[a-f0-9]{64}$" })),
|
|
4255
|
+
createdAt: Schema$1.String,
|
|
4256
|
+
updatedAt: Schema$1.String,
|
|
4257
|
+
createdBy: Schema$1.Struct({
|
|
4258
|
+
userId: UserId,
|
|
4259
|
+
via: Schema$1.Literals([
|
|
4260
|
+
"api",
|
|
4261
|
+
"mcp",
|
|
4262
|
+
"agent"
|
|
4263
|
+
])
|
|
4264
|
+
}),
|
|
4265
|
+
updatedBy: Schema$1.Struct({
|
|
4266
|
+
userId: UserId,
|
|
4267
|
+
via: Schema$1.Literals([
|
|
4268
|
+
"api",
|
|
4269
|
+
"mcp",
|
|
4270
|
+
"agent"
|
|
4271
|
+
])
|
|
4272
|
+
})
|
|
4273
|
+
}),
|
|
4274
|
+
files: Schema$1.Record(Schema$1.String, Schema$1.String)
|
|
4275
|
+
});
|
|
4276
|
+
const TemplatesResolveWorkspaceConflict401 = UnauthorizedError;
|
|
4277
|
+
const TemplatesResolveWorkspaceConflict403 = ForbiddenError;
|
|
4278
|
+
const TemplatesResolveWorkspaceConflict404 = ResourceNotFoundError;
|
|
4279
|
+
const TemplatesResolveWorkspaceConflict409 = ConflictError;
|
|
4280
|
+
const TemplatesResolveWorkspaceConflict500 = InternalError;
|
|
4281
|
+
const TemplatesDiffWorkspacePathParams = Schema$1.Struct({ id: TemplateId });
|
|
4282
|
+
const TemplatesDiffWorkspaceRequestJson = Schema$1.Struct({ expectedRevision: Schema$1.String });
|
|
4283
|
+
const TemplatesDiffWorkspace200 = Schema$1.Struct({
|
|
4284
|
+
projectId: TemplateProjectId,
|
|
4285
|
+
baseCommit: Schema$1.String.check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^[a-f0-9]{40}$")).annotate({ expected: "a string matching the RegExp ^[a-f0-9]{40}$" })),
|
|
3801
4286
|
revision: Schema$1.String,
|
|
3802
|
-
|
|
3803
|
-
|
|
3804
|
-
|
|
3805
|
-
|
|
3806
|
-
|
|
3807
|
-
|
|
3808
|
-
"
|
|
3809
|
-
"
|
|
3810
|
-
"agent"
|
|
4287
|
+
changes: Schema$1.Array(Schema$1.Struct({
|
|
4288
|
+
path: Schema$1.String.check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^(?!\\/)(?!.*\\\\)(?!.*(?:^|\\/)\\.{1,2}(?:\\/|$))(?!.*(?:^|\\/)\\.git(?:\\/|$)).{1,1024}$")).annotate({ expected: "a string matching the RegExp ^(?!\\/)(?!.*\\\\)(?!.*(?:^|\\/)\\.{1,2}(?:\\/|$))(?!.*(?:^|\\/)\\.git(?:\\/|$)).{1,1024}$" })),
|
|
4289
|
+
before: Schema$1.Union([Schema$1.String.check(Schema$1.isMaxLength(1048576).annotate({ expected: "a value with a length of at most 1048576" })), Schema$1.Null]),
|
|
4290
|
+
after: Schema$1.Union([Schema$1.String.check(Schema$1.isMaxLength(1048576).annotate({ expected: "a value with a length of at most 1048576" })), Schema$1.Null]),
|
|
4291
|
+
status: Schema$1.Literals([
|
|
4292
|
+
"added",
|
|
4293
|
+
"modified",
|
|
4294
|
+
"deleted"
|
|
3811
4295
|
])
|
|
3812
|
-
}),
|
|
3813
|
-
|
|
3814
|
-
|
|
3815
|
-
|
|
3816
|
-
"
|
|
3817
|
-
"
|
|
3818
|
-
"
|
|
4296
|
+
})),
|
|
4297
|
+
assetChanges: Schema$1.Array(Schema$1.Struct({
|
|
4298
|
+
path: Schema$1.String,
|
|
4299
|
+
status: Schema$1.Literals([
|
|
4300
|
+
"added",
|
|
4301
|
+
"modified",
|
|
4302
|
+
"deleted"
|
|
3819
4303
|
])
|
|
3820
|
-
})
|
|
4304
|
+
}))
|
|
3821
4305
|
});
|
|
3822
|
-
const
|
|
3823
|
-
const
|
|
3824
|
-
const
|
|
3825
|
-
const
|
|
3826
|
-
const
|
|
3827
|
-
const
|
|
3828
|
-
const
|
|
3829
|
-
|
|
3830
|
-
|
|
3831
|
-
variables: Schema$1.optionalKey(Schema$1.Union([Schema$1.Record(Schema$1.String, JsonValue), Schema$1.Null]))
|
|
4306
|
+
const TemplatesDiffWorkspace401 = UnauthorizedError;
|
|
4307
|
+
const TemplatesDiffWorkspace403 = ForbiddenError;
|
|
4308
|
+
const TemplatesDiffWorkspace404 = ResourceNotFoundError;
|
|
4309
|
+
const TemplatesDiffWorkspace409 = ConflictError;
|
|
4310
|
+
const TemplatesDiffWorkspace500 = InternalError;
|
|
4311
|
+
const TemplatesRenderWorkspaceFixturePathParams = Schema$1.Struct({ id: TemplateId });
|
|
4312
|
+
const TemplatesRenderWorkspaceFixtureRequestJson = Schema$1.Struct({
|
|
4313
|
+
expectedRevision: Schema$1.String,
|
|
4314
|
+
fixture: Schema$1.String.check(Schema$1.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema$1.isMaxLength(128).annotate({ expected: "a value with a length of at most 128" }))
|
|
3832
4315
|
});
|
|
3833
|
-
const
|
|
3834
|
-
|
|
3835
|
-
|
|
3836
|
-
|
|
3837
|
-
|
|
3838
|
-
"
|
|
3839
|
-
|
|
3840
|
-
|
|
3841
|
-
|
|
3842
|
-
|
|
4316
|
+
const TemplatesRenderWorkspaceFixture200 = Schema$1.Struct({
|
|
4317
|
+
projectId: TemplateProjectId,
|
|
4318
|
+
revision: Schema$1.String,
|
|
4319
|
+
entryPath: Schema$1.String.check(Schema$1.isMaxLength(1024).annotate({ expected: "a value with a length of at most 1024" })).check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^(?!\\/)(?!.*\\\\)(?!.*(?:^|\\/)\\.{1,2}(?:\\/|$))(?!.*(?:^|\\/)\\.git(?:\\/|$))emails\\/.+\\.tsx$")).annotate({ expected: "a string matching the RegExp ^(?!\\/)(?!.*\\\\)(?!.*(?:^|\\/)\\.{1,2}(?:\\/|$))(?!.*(?:^|\\/)\\.git(?:\\/|$))emails\\/.+\\.tsx$" })),
|
|
4320
|
+
declaration: Schema$1.Union([Schema$1.Struct({
|
|
4321
|
+
codeDigest: Schema$1.String.check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^[a-f0-9]{64}$")).annotate({ expected: "a string matching the RegExp ^[a-f0-9]{64}$" })),
|
|
4322
|
+
templateId: Schema$1.String.check(Schema$1.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema$1.isMaxLength(128).annotate({ expected: "a value with a length of at most 128" })),
|
|
4323
|
+
input: Schema$1.Struct({
|
|
4324
|
+
schema: Schema$1.Record(Schema$1.String, JsonValue),
|
|
4325
|
+
schemaDigest: Schema$1.String.check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^[a-f0-9]{64}$")).annotate({ expected: "a string matching the RegExp ^[a-f0-9]{64}$" })),
|
|
4326
|
+
contractDigest: Schema$1.String.check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^[a-f0-9]{64}$")).annotate({ expected: "a string matching the RegExp ^[a-f0-9]{64}$" }))
|
|
4327
|
+
}),
|
|
4328
|
+
runtime: Schema$1.Struct({
|
|
4329
|
+
now: Schema$1.optionalKey(Schema$1.Finite.check(Schema$1.isInt().annotate({ expected: "an integer" }))),
|
|
4330
|
+
randomSeed: Schema$1.optionalKey(Schema$1.Finite.check(Schema$1.isInt().annotate({ expected: "an integer" })).check(Schema$1.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })).check(Schema$1.isLessThanOrEqualTo(4294967295).annotate({ expected: "a value less than or equal to 4294967295" })))
|
|
4331
|
+
}),
|
|
4332
|
+
fixtures: Schema$1.Array(Schema$1.String.check(Schema$1.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema$1.isMaxLength(128).annotate({ expected: "a value with a length of at most 128" })))
|
|
4333
|
+
}), Schema$1.Null]),
|
|
4334
|
+
diagnostics: Schema$1.Array(Schema$1.Struct({
|
|
4335
|
+
code: Schema$1.String,
|
|
4336
|
+
severity: Schema$1.Literals([
|
|
4337
|
+
"error",
|
|
4338
|
+
"warning",
|
|
4339
|
+
"info"
|
|
4340
|
+
]),
|
|
4341
|
+
message: Schema$1.String,
|
|
4342
|
+
origins: Schema$1.Array(Schema$1.Struct({
|
|
4343
|
+
fileName: Schema$1.String,
|
|
4344
|
+
lineNumber: Schema$1.Finite.check(Schema$1.isInt().annotate({ expected: "an integer" })).check(Schema$1.isGreaterThanOrEqualTo(1).annotate({ expected: "a value greater than or equal to 1" })),
|
|
4345
|
+
columnNumber: Schema$1.Finite.check(Schema$1.isInt().annotate({ expected: "an integer" })).check(Schema$1.isGreaterThanOrEqualTo(1).annotate({ expected: "a value greater than or equal to 1" }))
|
|
4346
|
+
})),
|
|
4347
|
+
clients: Schema$1.optionalKey(Schema$1.Union([Schema$1.Array(Schema$1.String), Schema$1.Null])),
|
|
4348
|
+
notes: Schema$1.optionalKey(Schema$1.Union([Schema$1.String, Schema$1.Null])),
|
|
4349
|
+
provenance: Schema$1.optionalKey(Schema$1.Union([Schema$1.String, Schema$1.Null])),
|
|
4350
|
+
fixtures: Schema$1.optionalKey(Schema$1.Union([Schema$1.Array(Schema$1.String), Schema$1.Null])),
|
|
4351
|
+
occurrences: Schema$1.optionalKey(Schema$1.Union([Schema$1.Array(Schema$1.Array(Schema$1.Struct({
|
|
4352
|
+
fileName: Schema$1.String,
|
|
4353
|
+
lineNumber: Schema$1.Finite.check(Schema$1.isInt().annotate({ expected: "an integer" })).check(Schema$1.isGreaterThanOrEqualTo(1).annotate({ expected: "a value greater than or equal to 1" })),
|
|
4354
|
+
columnNumber: Schema$1.Finite.check(Schema$1.isInt().annotate({ expected: "an integer" })).check(Schema$1.isGreaterThanOrEqualTo(1).annotate({ expected: "a value greater than or equal to 1" }))
|
|
4355
|
+
}))), Schema$1.Null])),
|
|
4356
|
+
compatibility: Schema$1.optionalKey(Schema$1.Union([Schema$1.Struct({
|
|
4357
|
+
assessment: Schema$1.Literals([
|
|
4358
|
+
"risk",
|
|
4359
|
+
"degradation",
|
|
4360
|
+
"unverified",
|
|
4361
|
+
"not-applicable"
|
|
4362
|
+
]),
|
|
4363
|
+
title: Schema$1.String
|
|
4364
|
+
}), Schema$1.Null]))
|
|
4365
|
+
})),
|
|
4366
|
+
incompatibilities: Schema$1.Array(Schema$1.Struct({
|
|
4367
|
+
code: Schema$1.String,
|
|
3843
4368
|
severity: Schema$1.Literals([
|
|
3844
|
-
"
|
|
3845
|
-
"
|
|
3846
|
-
"
|
|
4369
|
+
"error",
|
|
4370
|
+
"warning",
|
|
4371
|
+
"info"
|
|
3847
4372
|
]),
|
|
3848
|
-
|
|
4373
|
+
message: Schema$1.String,
|
|
4374
|
+
origins: Schema$1.Array(Schema$1.Struct({
|
|
4375
|
+
fileName: Schema$1.String,
|
|
4376
|
+
lineNumber: Schema$1.Finite.check(Schema$1.isInt().annotate({ expected: "an integer" })).check(Schema$1.isGreaterThanOrEqualTo(1).annotate({ expected: "a value greater than or equal to 1" })),
|
|
4377
|
+
columnNumber: Schema$1.Finite.check(Schema$1.isInt().annotate({ expected: "an integer" })).check(Schema$1.isGreaterThanOrEqualTo(1).annotate({ expected: "a value greater than or equal to 1" }))
|
|
4378
|
+
})),
|
|
4379
|
+
clients: Schema$1.optionalKey(Schema$1.Union([Schema$1.Array(Schema$1.String), Schema$1.Null])),
|
|
4380
|
+
notes: Schema$1.optionalKey(Schema$1.Union([Schema$1.String, Schema$1.Null])),
|
|
4381
|
+
provenance: Schema$1.optionalKey(Schema$1.Union([Schema$1.String, Schema$1.Null])),
|
|
4382
|
+
fixtures: Schema$1.optionalKey(Schema$1.Union([Schema$1.Array(Schema$1.String), Schema$1.Null])),
|
|
4383
|
+
occurrences: Schema$1.optionalKey(Schema$1.Union([Schema$1.Array(Schema$1.Array(Schema$1.Struct({
|
|
4384
|
+
fileName: Schema$1.String,
|
|
4385
|
+
lineNumber: Schema$1.Finite.check(Schema$1.isInt().annotate({ expected: "an integer" })).check(Schema$1.isGreaterThanOrEqualTo(1).annotate({ expected: "a value greater than or equal to 1" })),
|
|
4386
|
+
columnNumber: Schema$1.Finite.check(Schema$1.isInt().annotate({ expected: "an integer" })).check(Schema$1.isGreaterThanOrEqualTo(1).annotate({ expected: "a value greater than or equal to 1" }))
|
|
4387
|
+
}))), Schema$1.Null])),
|
|
4388
|
+
compatibility: Schema$1.optionalKey(Schema$1.Union([Schema$1.Struct({
|
|
4389
|
+
assessment: Schema$1.Literals([
|
|
4390
|
+
"risk",
|
|
4391
|
+
"degradation",
|
|
4392
|
+
"unverified",
|
|
4393
|
+
"not-applicable"
|
|
4394
|
+
]),
|
|
4395
|
+
title: Schema$1.String
|
|
4396
|
+
}), Schema$1.Null]))
|
|
3849
4397
|
})),
|
|
3850
|
-
|
|
3851
|
-
|
|
3852
|
-
|
|
3853
|
-
|
|
3854
|
-
|
|
3855
|
-
|
|
3856
|
-
|
|
3857
|
-
|
|
3858
|
-
|
|
3859
|
-
|
|
3860
|
-
|
|
3861
|
-
|
|
3862
|
-
|
|
3863
|
-
|
|
3864
|
-
|
|
3865
|
-
|
|
3866
|
-
|
|
3867
|
-
|
|
3868
|
-
|
|
3869
|
-
|
|
3870
|
-
|
|
3871
|
-
|
|
3872
|
-
materializationId: Schema$1.String,
|
|
3873
|
-
documentRevision: Schema$1.String,
|
|
3874
|
-
sourceDigest: Schema$1.String,
|
|
3875
|
-
compilerVersion: Schema$1.String,
|
|
3876
|
-
publishedAt: Schema$1.Union([Schema$1.String, Schema$1.Null]),
|
|
3877
|
-
archivedAt: Schema$1.Union([Schema$1.String, Schema$1.Null]),
|
|
3878
|
-
createdAt: Schema$1.String
|
|
3879
|
-
})) });
|
|
3880
|
-
const TemplateDocumentsVersions401 = UnauthorizedError;
|
|
3881
|
-
const TemplateDocumentsVersions403 = ForbiddenError;
|
|
3882
|
-
const TemplateDocumentsVersions404 = ResourceNotFoundError;
|
|
3883
|
-
const TemplateDocumentsVersions409 = ConflictError;
|
|
3884
|
-
const TemplateDocumentsVersions422 = ValidationError;
|
|
3885
|
-
const TemplateDocumentsVersions500 = InternalError;
|
|
3886
|
-
const TemplateDocumentsRestorePathParams = Schema$1.Struct({
|
|
3887
|
-
templateId: TemplateId,
|
|
3888
|
-
versionId: TemplateSourceVersionId
|
|
4398
|
+
fixture: Schema$1.String.check(Schema$1.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema$1.isMaxLength(128).annotate({ expected: "a value with a length of at most 128" })),
|
|
4399
|
+
rendered: Schema$1.Union([Schema$1.Struct({
|
|
4400
|
+
subject: Schema$1.String,
|
|
4401
|
+
preheader: Schema$1.optionalKey(Schema$1.String),
|
|
4402
|
+
html: Schema$1.String.check(Schema$1.isMaxLength(2097152).annotate({ expected: "a value with a length of at most 2097152" })),
|
|
4403
|
+
text: Schema$1.String.check(Schema$1.isMaxLength(2097152).annotate({ expected: "a value with a length of at most 2097152" })),
|
|
4404
|
+
selections: Schema$1.Array(Schema$1.Struct({
|
|
4405
|
+
instancePath: Schema$1.String.check(Schema$1.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })),
|
|
4406
|
+
tag: Schema$1.String.check(Schema$1.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })),
|
|
4407
|
+
origins: Schema$1.Array(Schema$1.Struct({
|
|
4408
|
+
fileName: Schema$1.String,
|
|
4409
|
+
lineNumber: Schema$1.Finite.check(Schema$1.isInt().annotate({ expected: "an integer" })).check(Schema$1.isGreaterThanOrEqualTo(1).annotate({ expected: "a value greater than or equal to 1" })),
|
|
4410
|
+
columnNumber: Schema$1.Finite.check(Schema$1.isInt().annotate({ expected: "an integer" })).check(Schema$1.isGreaterThanOrEqualTo(1).annotate({ expected: "a value greater than or equal to 1" }))
|
|
4411
|
+
})),
|
|
4412
|
+
authored: Schema$1.Boolean,
|
|
4413
|
+
occurrence: Schema$1.Finite.check(Schema$1.isInt().annotate({ expected: "an integer" })).check(Schema$1.isGreaterThanOrEqualTo(1).annotate({ expected: "a value greater than or equal to 1" })),
|
|
4414
|
+
occurrences: Schema$1.Finite.check(Schema$1.isInt().annotate({ expected: "an integer" })).check(Schema$1.isGreaterThanOrEqualTo(1).annotate({ expected: "a value greater than or equal to 1" })),
|
|
4415
|
+
parentPath: Schema$1.optionalKey(Schema$1.String),
|
|
4416
|
+
start: Schema$1.Finite.check(Schema$1.isInt().annotate({ expected: "an integer" })).check(Schema$1.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })),
|
|
4417
|
+
end: Schema$1.Finite.check(Schema$1.isInt().annotate({ expected: "an integer" })).check(Schema$1.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" }))
|
|
4418
|
+
}))
|
|
4419
|
+
}), Schema$1.Null])
|
|
3889
4420
|
});
|
|
3890
|
-
const
|
|
3891
|
-
const
|
|
3892
|
-
|
|
3893
|
-
|
|
3894
|
-
|
|
3895
|
-
|
|
4421
|
+
const TemplatesRenderWorkspaceFixture401 = UnauthorizedError;
|
|
4422
|
+
const TemplatesRenderWorkspaceFixture403 = ForbiddenError;
|
|
4423
|
+
const TemplatesRenderWorkspaceFixture404 = ResourceNotFoundError;
|
|
4424
|
+
const TemplatesRenderWorkspaceFixture409 = ConflictError;
|
|
4425
|
+
const TemplatesRenderWorkspaceFixture500 = InternalError;
|
|
4426
|
+
const TemplatesWorkspaceHistoryPathParams = Schema$1.Struct({ id: TemplateId });
|
|
4427
|
+
const TemplatesWorkspaceHistoryQuery = Schema$1.Struct({ limit: Schema$1.optionalKey(Schema$1.Union([Schema$1.String, Schema$1.Null])) });
|
|
4428
|
+
const TemplatesWorkspaceHistory200 = Schema$1.Struct({
|
|
4429
|
+
projectId: TemplateProjectId,
|
|
4430
|
+
head: Schema$1.String.check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^[a-f0-9]{40}$")).annotate({ expected: "a string matching the RegExp ^[a-f0-9]{40}$" })),
|
|
4431
|
+
commits: Schema$1.Array(Schema$1.Struct({
|
|
4432
|
+
commit: Schema$1.String.check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^[a-f0-9]{40}$")).annotate({ expected: "a string matching the RegExp ^[a-f0-9]{40}$" })),
|
|
4433
|
+
tree: Schema$1.String.check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^[a-f0-9]{40}$")).annotate({ expected: "a string matching the RegExp ^[a-f0-9]{40}$" })),
|
|
4434
|
+
parentCommit: Schema$1.Union([Schema$1.String.check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^[a-f0-9]{40}$")).annotate({ expected: "a string matching the RegExp ^[a-f0-9]{40}$" })), Schema$1.Null]),
|
|
4435
|
+
message: Schema$1.String,
|
|
4436
|
+
committedAt: Schema$1.String
|
|
4437
|
+
})),
|
|
4438
|
+
publication: Schema$1.Union([Schema$1.Struct({
|
|
4439
|
+
id: TemplatePublicationId,
|
|
4440
|
+
commit: Schema$1.String.check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^[a-f0-9]{40}$")).annotate({ expected: "a string matching the RegExp ^[a-f0-9]{40}$" }))
|
|
4441
|
+
}), Schema$1.Null])
|
|
4442
|
+
});
|
|
4443
|
+
const TemplatesWorkspaceHistory401 = UnauthorizedError;
|
|
4444
|
+
const TemplatesWorkspaceHistory403 = ForbiddenError;
|
|
4445
|
+
const TemplatesWorkspaceHistory404 = ResourceNotFoundError;
|
|
4446
|
+
const TemplatesWorkspaceHistory409 = ConflictError;
|
|
4447
|
+
const TemplatesWorkspaceHistory500 = InternalError;
|
|
4448
|
+
const TemplatesReconcileWorkspacePathParams = Schema$1.Struct({ id: TemplateId });
|
|
4449
|
+
const TemplatesReconcileWorkspaceRequestJson = Schema$1.Struct({
|
|
4450
|
+
expectedRevision: Schema$1.String,
|
|
4451
|
+
assetResolution: Schema$1.optionalKey(Schema$1.Literals(["draft", "remote"])),
|
|
4452
|
+
expectedRemoteHead: Schema$1.optionalKey(Schema$1.String.check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^[a-f0-9]{40}$")).annotate({ expected: "a string matching the RegExp ^[a-f0-9]{40}$" }))),
|
|
4453
|
+
idempotencyKey: Schema$1.String.check(Schema$1.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema$1.isMaxLength(255).annotate({ expected: "a value with a length of at most 255" }))
|
|
4454
|
+
});
|
|
4455
|
+
const TemplatesReconcileWorkspace200 = Schema$1.Struct({
|
|
4456
|
+
workspace: Schema$1.Struct({
|
|
4457
|
+
projectId: TemplateProjectId,
|
|
4458
|
+
organizationId: Schema$1.Union([OrganizationId, Schema$1.Null]),
|
|
4459
|
+
ownerEpoch: Schema$1.Finite.check(Schema$1.isInt().annotate({ expected: "an integer" })).check(Schema$1.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })),
|
|
4460
|
+
repositoryName: Schema$1.String.check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^[A-Za-z0-9][A-Za-z0-9._-]{0,127}$")).annotate({ expected: "a string matching the RegExp ^[A-Za-z0-9][A-Za-z0-9._-]{0,127}$" })),
|
|
4461
|
+
defaultBranch: Schema$1.String.check(Schema$1.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema$1.isMaxLength(255).annotate({ expected: "a value with a length of at most 255" })),
|
|
4462
|
+
baseCommit: Schema$1.String.check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^[a-f0-9]{40}$")).annotate({ expected: "a string matching the RegExp ^[a-f0-9]{40}$" })),
|
|
4463
|
+
remoteHead: Schema$1.String.check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^[a-f0-9]{40}$")).annotate({ expected: "a string matching the RegExp ^[a-f0-9]{40}$" })),
|
|
4464
|
+
pendingRemoteHead: Schema$1.Union([Schema$1.String.check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^[a-f0-9]{40}$")).annotate({ expected: "a string matching the RegExp ^[a-f0-9]{40}$" })), Schema$1.Null]),
|
|
4465
|
+
revision: Schema$1.String,
|
|
4466
|
+
overlay: Schema$1.Record(Schema$1.String, Schema$1.Union([Schema$1.String, Schema$1.Null])),
|
|
4467
|
+
assetChanges: Schema$1.Array(Schema$1.Struct({
|
|
4468
|
+
path: Schema$1.String,
|
|
4469
|
+
status: Schema$1.Literals([
|
|
4470
|
+
"added",
|
|
4471
|
+
"modified",
|
|
4472
|
+
"deleted"
|
|
4473
|
+
])
|
|
4474
|
+
})),
|
|
4475
|
+
conflicts: Schema$1.Array(Schema$1.Struct({
|
|
4476
|
+
path: Schema$1.String.check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^(?!\\/)(?!.*\\\\)(?!.*(?:^|\\/)\\.{1,2}(?:\\/|$))(?!.*(?:^|\\/)\\.git(?:\\/|$)).{1,1024}$")).annotate({ expected: "a string matching the RegExp ^(?!\\/)(?!.*\\\\)(?!.*(?:^|\\/)\\.{1,2}(?:\\/|$))(?!.*(?:^|\\/)\\.git(?:\\/|$)).{1,1024}$" })),
|
|
4477
|
+
base: Schema$1.Union([Schema$1.String, Schema$1.Null]),
|
|
4478
|
+
draft: Schema$1.Union([Schema$1.String, Schema$1.Null]),
|
|
4479
|
+
main: Schema$1.Union([Schema$1.String, Schema$1.Null])
|
|
4480
|
+
})),
|
|
4481
|
+
provenance: Schema$1.Struct({ references: Schema$1.Array(Schema$1.Struct({
|
|
4482
|
+
kind: Schema$1.String,
|
|
4483
|
+
digest: Schema$1.String,
|
|
4484
|
+
locator: Schema$1.optionalKey(Schema$1.String)
|
|
4485
|
+
})) }),
|
|
4486
|
+
mounts: Schema$1.Array(Schema$1.Union([
|
|
4487
|
+
Schema$1.Struct({
|
|
4488
|
+
kind: Schema$1.Literal("project"),
|
|
4489
|
+
root: Schema$1.Literal("/project"),
|
|
4490
|
+
access: Schema$1.Literal("read-write")
|
|
4491
|
+
}),
|
|
4492
|
+
Schema$1.Struct({
|
|
4493
|
+
root: Schema$1.String.check(Schema$1.isMaxLength(2048).annotate({ expected: "a value with a length of at most 2048" })).check(Schema$1.isPattern(/* @__PURE__ */ new 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(?:\\/|$))[^\\\\/]+)*$")).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(?:\\/|$))[^\\\\/]+)*$" })),
|
|
4494
|
+
digest: Schema$1.String.check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^[a-f0-9]{64}$")).annotate({ expected: "a string matching the RegExp ^[a-f0-9]{64}$" })),
|
|
4495
|
+
fileCount: Schema$1.Finite.check(Schema$1.isInt().annotate({ expected: "an integer" })).check(Schema$1.isGreaterThanOrEqualTo(1).annotate({ expected: "a value greater than or equal to 1" })),
|
|
4496
|
+
byteSize: Schema$1.Finite.check(Schema$1.isInt().annotate({ expected: "an integer" })).check(Schema$1.isGreaterThanOrEqualTo(1).annotate({ expected: "a value greater than or equal to 1" })),
|
|
4497
|
+
kind: Schema$1.Literal("started-from"),
|
|
4498
|
+
access: Schema$1.Literal("read-only"),
|
|
4499
|
+
templateId: Schema$1.String.check(Schema$1.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema$1.isMaxLength(128).annotate({ expected: "a value with a length of at most 128" })),
|
|
4500
|
+
slug: Schema$1.String.check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^[a-z0-9]+(?:-[a-z0-9]+)*$")).annotate({ expected: "a string matching the RegExp ^[a-z0-9]+(?:-[a-z0-9]+)*$" })),
|
|
4501
|
+
name: Schema$1.String.check(Schema$1.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema$1.isMaxLength(256).annotate({ expected: "a value with a length of at most 256" }))
|
|
4502
|
+
}),
|
|
4503
|
+
Schema$1.Struct({
|
|
4504
|
+
root: Schema$1.String.check(Schema$1.isMaxLength(2048).annotate({ expected: "a value with a length of at most 2048" })).check(Schema$1.isPattern(/* @__PURE__ */ new 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(?:\\/|$))[^\\\\/]+)*$")).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(?:\\/|$))[^\\\\/]+)*$" })),
|
|
4505
|
+
digest: Schema$1.String.check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^[a-f0-9]{64}$")).annotate({ expected: "a string matching the RegExp ^[a-f0-9]{64}$" })),
|
|
4506
|
+
fileCount: Schema$1.Finite.check(Schema$1.isInt().annotate({ expected: "an integer" })).check(Schema$1.isGreaterThanOrEqualTo(1).annotate({ expected: "a value greater than or equal to 1" })),
|
|
4507
|
+
byteSize: Schema$1.Finite.check(Schema$1.isInt().annotate({ expected: "an integer" })).check(Schema$1.isGreaterThanOrEqualTo(1).annotate({ expected: "a value greater than or equal to 1" })),
|
|
4508
|
+
kind: Schema$1.Literal("resource"),
|
|
4509
|
+
access: Schema$1.Literal("read-only"),
|
|
4510
|
+
resourceId: Schema$1.String.check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^[A-Za-z0-9._-]{1,128}$")).annotate({ expected: "a string matching the RegExp ^[A-Za-z0-9._-]{1,128}$" })),
|
|
4511
|
+
name: Schema$1.String.check(Schema$1.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema$1.isMaxLength(256).annotate({ expected: "a value with a length of at most 256" }))
|
|
4512
|
+
}),
|
|
4513
|
+
Schema$1.Struct({
|
|
4514
|
+
root: Schema$1.String.check(Schema$1.isMaxLength(2048).annotate({ expected: "a value with a length of at most 2048" })).check(Schema$1.isPattern(/* @__PURE__ */ new 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(?:\\/|$))[^\\\\/]+)*$")).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(?:\\/|$))[^\\\\/]+)*$" })),
|
|
4515
|
+
digest: Schema$1.String.check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^[a-f0-9]{64}$")).annotate({ expected: "a string matching the RegExp ^[a-f0-9]{64}$" })),
|
|
4516
|
+
fileCount: Schema$1.Finite.check(Schema$1.isInt().annotate({ expected: "an integer" })).check(Schema$1.isGreaterThanOrEqualTo(1).annotate({ expected: "a value greater than or equal to 1" })),
|
|
4517
|
+
byteSize: Schema$1.Finite.check(Schema$1.isInt().annotate({ expected: "an integer" })).check(Schema$1.isGreaterThanOrEqualTo(1).annotate({ expected: "a value greater than or equal to 1" })),
|
|
4518
|
+
kind: Schema$1.Literal("library-template"),
|
|
4519
|
+
access: Schema$1.Literal("read-only"),
|
|
4520
|
+
templateId: Schema$1.String.check(Schema$1.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema$1.isMaxLength(128).annotate({ expected: "a value with a length of at most 128" })),
|
|
4521
|
+
slug: Schema$1.String.check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^[a-z0-9]+(?:-[a-z0-9]+)*$")).annotate({ expected: "a string matching the RegExp ^[a-z0-9]+(?:-[a-z0-9]+)*$" })),
|
|
4522
|
+
name: Schema$1.String.check(Schema$1.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema$1.isMaxLength(256).annotate({ expected: "a value with a length of at most 256" }))
|
|
4523
|
+
})
|
|
4524
|
+
])),
|
|
4525
|
+
libraryManifestDigest: Schema$1.String.check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^[a-f0-9]{64}$")).annotate({ expected: "a string matching the RegExp ^[a-f0-9]{64}$" })),
|
|
4526
|
+
createdAt: Schema$1.String,
|
|
4527
|
+
updatedAt: Schema$1.String,
|
|
4528
|
+
createdBy: Schema$1.Struct({
|
|
4529
|
+
userId: UserId,
|
|
4530
|
+
via: Schema$1.Literals([
|
|
4531
|
+
"api",
|
|
4532
|
+
"mcp",
|
|
4533
|
+
"agent"
|
|
4534
|
+
])
|
|
4535
|
+
}),
|
|
4536
|
+
updatedBy: Schema$1.Struct({
|
|
4537
|
+
userId: UserId,
|
|
4538
|
+
via: Schema$1.Literals([
|
|
4539
|
+
"api",
|
|
4540
|
+
"mcp",
|
|
4541
|
+
"agent"
|
|
4542
|
+
])
|
|
4543
|
+
})
|
|
4544
|
+
}),
|
|
4545
|
+
files: Schema$1.Record(Schema$1.String, Schema$1.String)
|
|
4546
|
+
});
|
|
4547
|
+
const TemplatesReconcileWorkspace401 = UnauthorizedError;
|
|
4548
|
+
const TemplatesReconcileWorkspace403 = ForbiddenError;
|
|
4549
|
+
const TemplatesReconcileWorkspace404 = ResourceNotFoundError;
|
|
4550
|
+
const TemplatesReconcileWorkspace409 = ConflictError;
|
|
4551
|
+
const TemplatesReconcileWorkspace500 = InternalError;
|
|
4552
|
+
const TemplatesAttachWorkspaceResourcePathParams = Schema$1.Struct({ id: TemplateId });
|
|
4553
|
+
const TemplatesAttachWorkspaceResourceRequestJson = Schema$1.Struct({
|
|
4554
|
+
expectedRevision: Schema$1.String,
|
|
4555
|
+
resource: Schema$1.Struct({
|
|
4556
|
+
resourceId: Schema$1.String.check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^[A-Za-z0-9._-]{1,128}$")).annotate({ expected: "a string matching the RegExp ^[A-Za-z0-9._-]{1,128}$" })),
|
|
4557
|
+
name: Schema$1.String.check(Schema$1.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema$1.isMaxLength(256).annotate({ expected: "a value with a length of at most 256" })),
|
|
4558
|
+
files: Schema$1.Array(Schema$1.Struct({
|
|
4559
|
+
path: Schema$1.String.check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^(?!\\/)(?!.*\\\\)(?!.*(?:^|\\/)\\.{1,2}(?:\\/|$))(?!.*(?:^|\\/)\\.git(?:\\/|$)).{1,1024}$")).annotate({ expected: "a string matching the RegExp ^(?!\\/)(?!.*\\\\)(?!.*(?:^|\\/)\\.{1,2}(?:\\/|$))(?!.*(?:^|\\/)\\.git(?:\\/|$)).{1,1024}$" })),
|
|
4560
|
+
mediaType: Schema$1.String.check(Schema$1.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema$1.isMaxLength(255).annotate({ expected: "a value with a length of at most 255" })),
|
|
4561
|
+
contentBase64: Schema$1.String.check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$")).annotate({ expected: "a string matching the RegExp ^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$" }))
|
|
4562
|
+
}))
|
|
4563
|
+
}),
|
|
4564
|
+
idempotencyKey: Schema$1.String.check(Schema$1.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema$1.isMaxLength(255).annotate({ expected: "a value with a length of at most 255" }))
|
|
4565
|
+
});
|
|
4566
|
+
const TemplatesAttachWorkspaceResource200 = Schema$1.Struct({
|
|
4567
|
+
projectId: TemplateProjectId,
|
|
4568
|
+
organizationId: Schema$1.Union([OrganizationId, Schema$1.Null]),
|
|
4569
|
+
ownerEpoch: Schema$1.Finite.check(Schema$1.isInt().annotate({ expected: "an integer" })).check(Schema$1.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })),
|
|
4570
|
+
repositoryName: Schema$1.String.check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^[A-Za-z0-9][A-Za-z0-9._-]{0,127}$")).annotate({ expected: "a string matching the RegExp ^[A-Za-z0-9][A-Za-z0-9._-]{0,127}$" })),
|
|
4571
|
+
defaultBranch: Schema$1.String.check(Schema$1.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema$1.isMaxLength(255).annotate({ expected: "a value with a length of at most 255" })),
|
|
4572
|
+
baseCommit: Schema$1.String.check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^[a-f0-9]{40}$")).annotate({ expected: "a string matching the RegExp ^[a-f0-9]{40}$" })),
|
|
4573
|
+
remoteHead: Schema$1.String.check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^[a-f0-9]{40}$")).annotate({ expected: "a string matching the RegExp ^[a-f0-9]{40}$" })),
|
|
4574
|
+
pendingRemoteHead: Schema$1.Union([Schema$1.String.check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^[a-f0-9]{40}$")).annotate({ expected: "a string matching the RegExp ^[a-f0-9]{40}$" })), Schema$1.Null]),
|
|
3896
4575
|
revision: Schema$1.String,
|
|
3897
|
-
|
|
4576
|
+
overlay: Schema$1.Record(Schema$1.String, Schema$1.Union([Schema$1.String, Schema$1.Null])),
|
|
4577
|
+
assetChanges: Schema$1.Array(Schema$1.Struct({
|
|
4578
|
+
path: Schema$1.String,
|
|
4579
|
+
status: Schema$1.Literals([
|
|
4580
|
+
"added",
|
|
4581
|
+
"modified",
|
|
4582
|
+
"deleted"
|
|
4583
|
+
])
|
|
4584
|
+
})),
|
|
4585
|
+
conflicts: Schema$1.Array(Schema$1.Struct({
|
|
4586
|
+
path: Schema$1.String.check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^(?!\\/)(?!.*\\\\)(?!.*(?:^|\\/)\\.{1,2}(?:\\/|$))(?!.*(?:^|\\/)\\.git(?:\\/|$)).{1,1024}$")).annotate({ expected: "a string matching the RegExp ^(?!\\/)(?!.*\\\\)(?!.*(?:^|\\/)\\.{1,2}(?:\\/|$))(?!.*(?:^|\\/)\\.git(?:\\/|$)).{1,1024}$" })),
|
|
4587
|
+
base: Schema$1.Union([Schema$1.String, Schema$1.Null]),
|
|
4588
|
+
draft: Schema$1.Union([Schema$1.String, Schema$1.Null]),
|
|
4589
|
+
main: Schema$1.Union([Schema$1.String, Schema$1.Null])
|
|
4590
|
+
})),
|
|
4591
|
+
provenance: Schema$1.Struct({ references: Schema$1.Array(Schema$1.Struct({
|
|
4592
|
+
kind: Schema$1.String,
|
|
4593
|
+
digest: Schema$1.String,
|
|
4594
|
+
locator: Schema$1.optionalKey(Schema$1.String)
|
|
4595
|
+
})) }),
|
|
4596
|
+
mounts: Schema$1.Array(Schema$1.Union([
|
|
4597
|
+
Schema$1.Struct({
|
|
4598
|
+
kind: Schema$1.Literal("project"),
|
|
4599
|
+
root: Schema$1.Literal("/project"),
|
|
4600
|
+
access: Schema$1.Literal("read-write")
|
|
4601
|
+
}),
|
|
4602
|
+
Schema$1.Struct({
|
|
4603
|
+
root: Schema$1.String.check(Schema$1.isMaxLength(2048).annotate({ expected: "a value with a length of at most 2048" })).check(Schema$1.isPattern(/* @__PURE__ */ new 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(?:\\/|$))[^\\\\/]+)*$")).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(?:\\/|$))[^\\\\/]+)*$" })),
|
|
4604
|
+
digest: Schema$1.String.check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^[a-f0-9]{64}$")).annotate({ expected: "a string matching the RegExp ^[a-f0-9]{64}$" })),
|
|
4605
|
+
fileCount: Schema$1.Finite.check(Schema$1.isInt().annotate({ expected: "an integer" })).check(Schema$1.isGreaterThanOrEqualTo(1).annotate({ expected: "a value greater than or equal to 1" })),
|
|
4606
|
+
byteSize: Schema$1.Finite.check(Schema$1.isInt().annotate({ expected: "an integer" })).check(Schema$1.isGreaterThanOrEqualTo(1).annotate({ expected: "a value greater than or equal to 1" })),
|
|
4607
|
+
kind: Schema$1.Literal("started-from"),
|
|
4608
|
+
access: Schema$1.Literal("read-only"),
|
|
4609
|
+
templateId: Schema$1.String.check(Schema$1.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema$1.isMaxLength(128).annotate({ expected: "a value with a length of at most 128" })),
|
|
4610
|
+
slug: Schema$1.String.check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^[a-z0-9]+(?:-[a-z0-9]+)*$")).annotate({ expected: "a string matching the RegExp ^[a-z0-9]+(?:-[a-z0-9]+)*$" })),
|
|
4611
|
+
name: Schema$1.String.check(Schema$1.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema$1.isMaxLength(256).annotate({ expected: "a value with a length of at most 256" }))
|
|
4612
|
+
}),
|
|
4613
|
+
Schema$1.Struct({
|
|
4614
|
+
root: Schema$1.String.check(Schema$1.isMaxLength(2048).annotate({ expected: "a value with a length of at most 2048" })).check(Schema$1.isPattern(/* @__PURE__ */ new 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(?:\\/|$))[^\\\\/]+)*$")).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(?:\\/|$))[^\\\\/]+)*$" })),
|
|
4615
|
+
digest: Schema$1.String.check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^[a-f0-9]{64}$")).annotate({ expected: "a string matching the RegExp ^[a-f0-9]{64}$" })),
|
|
4616
|
+
fileCount: Schema$1.Finite.check(Schema$1.isInt().annotate({ expected: "an integer" })).check(Schema$1.isGreaterThanOrEqualTo(1).annotate({ expected: "a value greater than or equal to 1" })),
|
|
4617
|
+
byteSize: Schema$1.Finite.check(Schema$1.isInt().annotate({ expected: "an integer" })).check(Schema$1.isGreaterThanOrEqualTo(1).annotate({ expected: "a value greater than or equal to 1" })),
|
|
4618
|
+
kind: Schema$1.Literal("resource"),
|
|
4619
|
+
access: Schema$1.Literal("read-only"),
|
|
4620
|
+
resourceId: Schema$1.String.check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^[A-Za-z0-9._-]{1,128}$")).annotate({ expected: "a string matching the RegExp ^[A-Za-z0-9._-]{1,128}$" })),
|
|
4621
|
+
name: Schema$1.String.check(Schema$1.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema$1.isMaxLength(256).annotate({ expected: "a value with a length of at most 256" }))
|
|
4622
|
+
}),
|
|
4623
|
+
Schema$1.Struct({
|
|
4624
|
+
root: Schema$1.String.check(Schema$1.isMaxLength(2048).annotate({ expected: "a value with a length of at most 2048" })).check(Schema$1.isPattern(/* @__PURE__ */ new 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(?:\\/|$))[^\\\\/]+)*$")).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(?:\\/|$))[^\\\\/]+)*$" })),
|
|
4625
|
+
digest: Schema$1.String.check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^[a-f0-9]{64}$")).annotate({ expected: "a string matching the RegExp ^[a-f0-9]{64}$" })),
|
|
4626
|
+
fileCount: Schema$1.Finite.check(Schema$1.isInt().annotate({ expected: "an integer" })).check(Schema$1.isGreaterThanOrEqualTo(1).annotate({ expected: "a value greater than or equal to 1" })),
|
|
4627
|
+
byteSize: Schema$1.Finite.check(Schema$1.isInt().annotate({ expected: "an integer" })).check(Schema$1.isGreaterThanOrEqualTo(1).annotate({ expected: "a value greater than or equal to 1" })),
|
|
4628
|
+
kind: Schema$1.Literal("library-template"),
|
|
4629
|
+
access: Schema$1.Literal("read-only"),
|
|
4630
|
+
templateId: Schema$1.String.check(Schema$1.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema$1.isMaxLength(128).annotate({ expected: "a value with a length of at most 128" })),
|
|
4631
|
+
slug: Schema$1.String.check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^[a-z0-9]+(?:-[a-z0-9]+)*$")).annotate({ expected: "a string matching the RegExp ^[a-z0-9]+(?:-[a-z0-9]+)*$" })),
|
|
4632
|
+
name: Schema$1.String.check(Schema$1.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema$1.isMaxLength(256).annotate({ expected: "a value with a length of at most 256" }))
|
|
4633
|
+
})
|
|
4634
|
+
])),
|
|
4635
|
+
libraryManifestDigest: Schema$1.String.check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^[a-f0-9]{64}$")).annotate({ expected: "a string matching the RegExp ^[a-f0-9]{64}$" })),
|
|
3898
4636
|
createdAt: Schema$1.String,
|
|
3899
4637
|
updatedAt: Schema$1.String,
|
|
3900
4638
|
createdBy: Schema$1.Struct({
|
|
@@ -3914,20 +4652,89 @@ const TemplateDocumentsRestore200 = Schema$1.Struct({
|
|
|
3914
4652
|
])
|
|
3915
4653
|
})
|
|
3916
4654
|
});
|
|
3917
|
-
const
|
|
3918
|
-
const
|
|
3919
|
-
const
|
|
3920
|
-
const
|
|
3921
|
-
const
|
|
3922
|
-
const
|
|
3923
|
-
|
|
3924
|
-
|
|
3925
|
-
|
|
3926
|
-
|
|
3927
|
-
|
|
3928
|
-
|
|
4655
|
+
const TemplatesAttachWorkspaceResource401 = UnauthorizedError;
|
|
4656
|
+
const TemplatesAttachWorkspaceResource403 = ForbiddenError;
|
|
4657
|
+
const TemplatesAttachWorkspaceResource404 = ResourceNotFoundError;
|
|
4658
|
+
const TemplatesAttachWorkspaceResource409 = ConflictError;
|
|
4659
|
+
const TemplatesAttachWorkspaceResource500 = InternalError;
|
|
4660
|
+
const TemplatesRemoveWorkspaceResourcePathParams = Schema$1.Struct({
|
|
4661
|
+
id: TemplateId,
|
|
4662
|
+
resourceId: Schema$1.String.check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^[A-Za-z0-9._-]{1,128}$")).annotate({ expected: "a string matching the RegExp ^[A-Za-z0-9._-]{1,128}$" }))
|
|
4663
|
+
});
|
|
4664
|
+
const TemplatesRemoveWorkspaceResourceRequestJson = Schema$1.Struct({
|
|
4665
|
+
expectedRevision: Schema$1.String,
|
|
4666
|
+
idempotencyKey: Schema$1.String.check(Schema$1.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema$1.isMaxLength(255).annotate({ expected: "a value with a length of at most 255" }))
|
|
4667
|
+
});
|
|
4668
|
+
const TemplatesRemoveWorkspaceResource200 = Schema$1.Struct({
|
|
4669
|
+
projectId: TemplateProjectId,
|
|
4670
|
+
organizationId: Schema$1.Union([OrganizationId, Schema$1.Null]),
|
|
4671
|
+
ownerEpoch: Schema$1.Finite.check(Schema$1.isInt().annotate({ expected: "an integer" })).check(Schema$1.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })),
|
|
4672
|
+
repositoryName: Schema$1.String.check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^[A-Za-z0-9][A-Za-z0-9._-]{0,127}$")).annotate({ expected: "a string matching the RegExp ^[A-Za-z0-9][A-Za-z0-9._-]{0,127}$" })),
|
|
4673
|
+
defaultBranch: Schema$1.String.check(Schema$1.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema$1.isMaxLength(255).annotate({ expected: "a value with a length of at most 255" })),
|
|
4674
|
+
baseCommit: Schema$1.String.check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^[a-f0-9]{40}$")).annotate({ expected: "a string matching the RegExp ^[a-f0-9]{40}$" })),
|
|
4675
|
+
remoteHead: Schema$1.String.check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^[a-f0-9]{40}$")).annotate({ expected: "a string matching the RegExp ^[a-f0-9]{40}$" })),
|
|
4676
|
+
pendingRemoteHead: Schema$1.Union([Schema$1.String.check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^[a-f0-9]{40}$")).annotate({ expected: "a string matching the RegExp ^[a-f0-9]{40}$" })), Schema$1.Null]),
|
|
3929
4677
|
revision: Schema$1.String,
|
|
3930
|
-
|
|
4678
|
+
overlay: Schema$1.Record(Schema$1.String, Schema$1.Union([Schema$1.String, Schema$1.Null])),
|
|
4679
|
+
assetChanges: Schema$1.Array(Schema$1.Struct({
|
|
4680
|
+
path: Schema$1.String,
|
|
4681
|
+
status: Schema$1.Literals([
|
|
4682
|
+
"added",
|
|
4683
|
+
"modified",
|
|
4684
|
+
"deleted"
|
|
4685
|
+
])
|
|
4686
|
+
})),
|
|
4687
|
+
conflicts: Schema$1.Array(Schema$1.Struct({
|
|
4688
|
+
path: Schema$1.String.check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^(?!\\/)(?!.*\\\\)(?!.*(?:^|\\/)\\.{1,2}(?:\\/|$))(?!.*(?:^|\\/)\\.git(?:\\/|$)).{1,1024}$")).annotate({ expected: "a string matching the RegExp ^(?!\\/)(?!.*\\\\)(?!.*(?:^|\\/)\\.{1,2}(?:\\/|$))(?!.*(?:^|\\/)\\.git(?:\\/|$)).{1,1024}$" })),
|
|
4689
|
+
base: Schema$1.Union([Schema$1.String, Schema$1.Null]),
|
|
4690
|
+
draft: Schema$1.Union([Schema$1.String, Schema$1.Null]),
|
|
4691
|
+
main: Schema$1.Union([Schema$1.String, Schema$1.Null])
|
|
4692
|
+
})),
|
|
4693
|
+
provenance: Schema$1.Struct({ references: Schema$1.Array(Schema$1.Struct({
|
|
4694
|
+
kind: Schema$1.String,
|
|
4695
|
+
digest: Schema$1.String,
|
|
4696
|
+
locator: Schema$1.optionalKey(Schema$1.String)
|
|
4697
|
+
})) }),
|
|
4698
|
+
mounts: Schema$1.Array(Schema$1.Union([
|
|
4699
|
+
Schema$1.Struct({
|
|
4700
|
+
kind: Schema$1.Literal("project"),
|
|
4701
|
+
root: Schema$1.Literal("/project"),
|
|
4702
|
+
access: Schema$1.Literal("read-write")
|
|
4703
|
+
}),
|
|
4704
|
+
Schema$1.Struct({
|
|
4705
|
+
root: Schema$1.String.check(Schema$1.isMaxLength(2048).annotate({ expected: "a value with a length of at most 2048" })).check(Schema$1.isPattern(/* @__PURE__ */ new 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(?:\\/|$))[^\\\\/]+)*$")).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(?:\\/|$))[^\\\\/]+)*$" })),
|
|
4706
|
+
digest: Schema$1.String.check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^[a-f0-9]{64}$")).annotate({ expected: "a string matching the RegExp ^[a-f0-9]{64}$" })),
|
|
4707
|
+
fileCount: Schema$1.Finite.check(Schema$1.isInt().annotate({ expected: "an integer" })).check(Schema$1.isGreaterThanOrEqualTo(1).annotate({ expected: "a value greater than or equal to 1" })),
|
|
4708
|
+
byteSize: Schema$1.Finite.check(Schema$1.isInt().annotate({ expected: "an integer" })).check(Schema$1.isGreaterThanOrEqualTo(1).annotate({ expected: "a value greater than or equal to 1" })),
|
|
4709
|
+
kind: Schema$1.Literal("started-from"),
|
|
4710
|
+
access: Schema$1.Literal("read-only"),
|
|
4711
|
+
templateId: Schema$1.String.check(Schema$1.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema$1.isMaxLength(128).annotate({ expected: "a value with a length of at most 128" })),
|
|
4712
|
+
slug: Schema$1.String.check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^[a-z0-9]+(?:-[a-z0-9]+)*$")).annotate({ expected: "a string matching the RegExp ^[a-z0-9]+(?:-[a-z0-9]+)*$" })),
|
|
4713
|
+
name: Schema$1.String.check(Schema$1.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema$1.isMaxLength(256).annotate({ expected: "a value with a length of at most 256" }))
|
|
4714
|
+
}),
|
|
4715
|
+
Schema$1.Struct({
|
|
4716
|
+
root: Schema$1.String.check(Schema$1.isMaxLength(2048).annotate({ expected: "a value with a length of at most 2048" })).check(Schema$1.isPattern(/* @__PURE__ */ new 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(?:\\/|$))[^\\\\/]+)*$")).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(?:\\/|$))[^\\\\/]+)*$" })),
|
|
4717
|
+
digest: Schema$1.String.check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^[a-f0-9]{64}$")).annotate({ expected: "a string matching the RegExp ^[a-f0-9]{64}$" })),
|
|
4718
|
+
fileCount: Schema$1.Finite.check(Schema$1.isInt().annotate({ expected: "an integer" })).check(Schema$1.isGreaterThanOrEqualTo(1).annotate({ expected: "a value greater than or equal to 1" })),
|
|
4719
|
+
byteSize: Schema$1.Finite.check(Schema$1.isInt().annotate({ expected: "an integer" })).check(Schema$1.isGreaterThanOrEqualTo(1).annotate({ expected: "a value greater than or equal to 1" })),
|
|
4720
|
+
kind: Schema$1.Literal("resource"),
|
|
4721
|
+
access: Schema$1.Literal("read-only"),
|
|
4722
|
+
resourceId: Schema$1.String.check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^[A-Za-z0-9._-]{1,128}$")).annotate({ expected: "a string matching the RegExp ^[A-Za-z0-9._-]{1,128}$" })),
|
|
4723
|
+
name: Schema$1.String.check(Schema$1.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema$1.isMaxLength(256).annotate({ expected: "a value with a length of at most 256" }))
|
|
4724
|
+
}),
|
|
4725
|
+
Schema$1.Struct({
|
|
4726
|
+
root: Schema$1.String.check(Schema$1.isMaxLength(2048).annotate({ expected: "a value with a length of at most 2048" })).check(Schema$1.isPattern(/* @__PURE__ */ new 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(?:\\/|$))[^\\\\/]+)*$")).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(?:\\/|$))[^\\\\/]+)*$" })),
|
|
4727
|
+
digest: Schema$1.String.check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^[a-f0-9]{64}$")).annotate({ expected: "a string matching the RegExp ^[a-f0-9]{64}$" })),
|
|
4728
|
+
fileCount: Schema$1.Finite.check(Schema$1.isInt().annotate({ expected: "an integer" })).check(Schema$1.isGreaterThanOrEqualTo(1).annotate({ expected: "a value greater than or equal to 1" })),
|
|
4729
|
+
byteSize: Schema$1.Finite.check(Schema$1.isInt().annotate({ expected: "an integer" })).check(Schema$1.isGreaterThanOrEqualTo(1).annotate({ expected: "a value greater than or equal to 1" })),
|
|
4730
|
+
kind: Schema$1.Literal("library-template"),
|
|
4731
|
+
access: Schema$1.Literal("read-only"),
|
|
4732
|
+
templateId: Schema$1.String.check(Schema$1.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema$1.isMaxLength(128).annotate({ expected: "a value with a length of at most 128" })),
|
|
4733
|
+
slug: Schema$1.String.check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^[a-z0-9]+(?:-[a-z0-9]+)*$")).annotate({ expected: "a string matching the RegExp ^[a-z0-9]+(?:-[a-z0-9]+)*$" })),
|
|
4734
|
+
name: Schema$1.String.check(Schema$1.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema$1.isMaxLength(256).annotate({ expected: "a value with a length of at most 256" }))
|
|
4735
|
+
})
|
|
4736
|
+
])),
|
|
4737
|
+
libraryManifestDigest: Schema$1.String.check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^[a-f0-9]{64}$")).annotate({ expected: "a string matching the RegExp ^[a-f0-9]{64}$" })),
|
|
3931
4738
|
createdAt: Schema$1.String,
|
|
3932
4739
|
updatedAt: Schema$1.String,
|
|
3933
4740
|
createdBy: Schema$1.Struct({
|
|
@@ -3947,132 +4754,205 @@ const TemplateDocumentsBootstrap200 = Schema$1.Struct({
|
|
|
3947
4754
|
])
|
|
3948
4755
|
})
|
|
3949
4756
|
});
|
|
3950
|
-
const
|
|
3951
|
-
const
|
|
3952
|
-
const
|
|
3953
|
-
const
|
|
3954
|
-
const
|
|
3955
|
-
const
|
|
3956
|
-
const
|
|
3957
|
-
|
|
3958
|
-
|
|
3959
|
-
|
|
3960
|
-
|
|
3961
|
-
|
|
3962
|
-
|
|
3963
|
-
|
|
3964
|
-
|
|
3965
|
-
|
|
3966
|
-
|
|
3967
|
-
|
|
3968
|
-
|
|
3969
|
-
|
|
3970
|
-
|
|
3971
|
-
|
|
3972
|
-
|
|
3973
|
-
|
|
3974
|
-
|
|
3975
|
-
|
|
3976
|
-
|
|
3977
|
-
|
|
3978
|
-
|
|
3979
|
-
|
|
3980
|
-
|
|
3981
|
-
|
|
3982
|
-
|
|
3983
|
-
|
|
3984
|
-
|
|
3985
|
-
|
|
3986
|
-
|
|
3987
|
-
|
|
3988
|
-
|
|
3989
|
-
|
|
4757
|
+
const TemplatesRemoveWorkspaceResource401 = UnauthorizedError;
|
|
4758
|
+
const TemplatesRemoveWorkspaceResource403 = ForbiddenError;
|
|
4759
|
+
const TemplatesRemoveWorkspaceResource404 = ResourceNotFoundError;
|
|
4760
|
+
const TemplatesRemoveWorkspaceResource409 = ConflictError;
|
|
4761
|
+
const TemplatesRemoveWorkspaceResource500 = InternalError;
|
|
4762
|
+
const TemplatesRestoreWorkspacePathParams = Schema$1.Struct({ id: TemplateId });
|
|
4763
|
+
const TemplatesRestoreWorkspaceRequestJson = Schema$1.Struct({
|
|
4764
|
+
expectedRevision: Schema$1.String,
|
|
4765
|
+
commit: Schema$1.String.check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^[a-f0-9]{40}$")).annotate({ expected: "a string matching the RegExp ^[a-f0-9]{40}$" })),
|
|
4766
|
+
idempotencyKey: Schema$1.String.check(Schema$1.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema$1.isMaxLength(255).annotate({ expected: "a value with a length of at most 255" }))
|
|
4767
|
+
});
|
|
4768
|
+
const TemplatesRestoreWorkspace200 = Schema$1.Struct({
|
|
4769
|
+
view: Schema$1.Struct({
|
|
4770
|
+
workspace: Schema$1.Struct({
|
|
4771
|
+
projectId: TemplateProjectId,
|
|
4772
|
+
organizationId: Schema$1.Union([OrganizationId, Schema$1.Null]),
|
|
4773
|
+
ownerEpoch: Schema$1.Finite.check(Schema$1.isInt().annotate({ expected: "an integer" })).check(Schema$1.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })),
|
|
4774
|
+
repositoryName: Schema$1.String.check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^[A-Za-z0-9][A-Za-z0-9._-]{0,127}$")).annotate({ expected: "a string matching the RegExp ^[A-Za-z0-9][A-Za-z0-9._-]{0,127}$" })),
|
|
4775
|
+
defaultBranch: Schema$1.String.check(Schema$1.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema$1.isMaxLength(255).annotate({ expected: "a value with a length of at most 255" })),
|
|
4776
|
+
baseCommit: Schema$1.String.check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^[a-f0-9]{40}$")).annotate({ expected: "a string matching the RegExp ^[a-f0-9]{40}$" })),
|
|
4777
|
+
remoteHead: Schema$1.String.check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^[a-f0-9]{40}$")).annotate({ expected: "a string matching the RegExp ^[a-f0-9]{40}$" })),
|
|
4778
|
+
pendingRemoteHead: Schema$1.Union([Schema$1.String.check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^[a-f0-9]{40}$")).annotate({ expected: "a string matching the RegExp ^[a-f0-9]{40}$" })), Schema$1.Null]),
|
|
4779
|
+
revision: Schema$1.String,
|
|
4780
|
+
overlay: Schema$1.Record(Schema$1.String, Schema$1.Union([Schema$1.String, Schema$1.Null])),
|
|
4781
|
+
assetChanges: Schema$1.Array(Schema$1.Struct({
|
|
4782
|
+
path: Schema$1.String,
|
|
4783
|
+
status: Schema$1.Literals([
|
|
4784
|
+
"added",
|
|
4785
|
+
"modified",
|
|
4786
|
+
"deleted"
|
|
4787
|
+
])
|
|
4788
|
+
})),
|
|
4789
|
+
conflicts: Schema$1.Array(Schema$1.Struct({
|
|
4790
|
+
path: Schema$1.String.check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^(?!\\/)(?!.*\\\\)(?!.*(?:^|\\/)\\.{1,2}(?:\\/|$))(?!.*(?:^|\\/)\\.git(?:\\/|$)).{1,1024}$")).annotate({ expected: "a string matching the RegExp ^(?!\\/)(?!.*\\\\)(?!.*(?:^|\\/)\\.{1,2}(?:\\/|$))(?!.*(?:^|\\/)\\.git(?:\\/|$)).{1,1024}$" })),
|
|
4791
|
+
base: Schema$1.Union([Schema$1.String, Schema$1.Null]),
|
|
4792
|
+
draft: Schema$1.Union([Schema$1.String, Schema$1.Null]),
|
|
4793
|
+
main: Schema$1.Union([Schema$1.String, Schema$1.Null])
|
|
4794
|
+
})),
|
|
4795
|
+
provenance: Schema$1.Struct({ references: Schema$1.Array(Schema$1.Struct({
|
|
4796
|
+
kind: Schema$1.String,
|
|
4797
|
+
digest: Schema$1.String,
|
|
4798
|
+
locator: Schema$1.optionalKey(Schema$1.String)
|
|
4799
|
+
})) }),
|
|
4800
|
+
mounts: Schema$1.Array(Schema$1.Union([
|
|
4801
|
+
Schema$1.Struct({
|
|
4802
|
+
kind: Schema$1.Literal("project"),
|
|
4803
|
+
root: Schema$1.Literal("/project"),
|
|
4804
|
+
access: Schema$1.Literal("read-write")
|
|
4805
|
+
}),
|
|
4806
|
+
Schema$1.Struct({
|
|
4807
|
+
root: Schema$1.String.check(Schema$1.isMaxLength(2048).annotate({ expected: "a value with a length of at most 2048" })).check(Schema$1.isPattern(/* @__PURE__ */ new 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(?:\\/|$))[^\\\\/]+)*$")).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(?:\\/|$))[^\\\\/]+)*$" })),
|
|
4808
|
+
digest: Schema$1.String.check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^[a-f0-9]{64}$")).annotate({ expected: "a string matching the RegExp ^[a-f0-9]{64}$" })),
|
|
4809
|
+
fileCount: Schema$1.Finite.check(Schema$1.isInt().annotate({ expected: "an integer" })).check(Schema$1.isGreaterThanOrEqualTo(1).annotate({ expected: "a value greater than or equal to 1" })),
|
|
4810
|
+
byteSize: Schema$1.Finite.check(Schema$1.isInt().annotate({ expected: "an integer" })).check(Schema$1.isGreaterThanOrEqualTo(1).annotate({ expected: "a value greater than or equal to 1" })),
|
|
4811
|
+
kind: Schema$1.Literal("started-from"),
|
|
4812
|
+
access: Schema$1.Literal("read-only"),
|
|
4813
|
+
templateId: Schema$1.String.check(Schema$1.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema$1.isMaxLength(128).annotate({ expected: "a value with a length of at most 128" })),
|
|
4814
|
+
slug: Schema$1.String.check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^[a-z0-9]+(?:-[a-z0-9]+)*$")).annotate({ expected: "a string matching the RegExp ^[a-z0-9]+(?:-[a-z0-9]+)*$" })),
|
|
4815
|
+
name: Schema$1.String.check(Schema$1.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema$1.isMaxLength(256).annotate({ expected: "a value with a length of at most 256" }))
|
|
4816
|
+
}),
|
|
4817
|
+
Schema$1.Struct({
|
|
4818
|
+
root: Schema$1.String.check(Schema$1.isMaxLength(2048).annotate({ expected: "a value with a length of at most 2048" })).check(Schema$1.isPattern(/* @__PURE__ */ new 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(?:\\/|$))[^\\\\/]+)*$")).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(?:\\/|$))[^\\\\/]+)*$" })),
|
|
4819
|
+
digest: Schema$1.String.check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^[a-f0-9]{64}$")).annotate({ expected: "a string matching the RegExp ^[a-f0-9]{64}$" })),
|
|
4820
|
+
fileCount: Schema$1.Finite.check(Schema$1.isInt().annotate({ expected: "an integer" })).check(Schema$1.isGreaterThanOrEqualTo(1).annotate({ expected: "a value greater than or equal to 1" })),
|
|
4821
|
+
byteSize: Schema$1.Finite.check(Schema$1.isInt().annotate({ expected: "an integer" })).check(Schema$1.isGreaterThanOrEqualTo(1).annotate({ expected: "a value greater than or equal to 1" })),
|
|
4822
|
+
kind: Schema$1.Literal("resource"),
|
|
4823
|
+
access: Schema$1.Literal("read-only"),
|
|
4824
|
+
resourceId: Schema$1.String.check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^[A-Za-z0-9._-]{1,128}$")).annotate({ expected: "a string matching the RegExp ^[A-Za-z0-9._-]{1,128}$" })),
|
|
4825
|
+
name: Schema$1.String.check(Schema$1.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema$1.isMaxLength(256).annotate({ expected: "a value with a length of at most 256" }))
|
|
4826
|
+
}),
|
|
4827
|
+
Schema$1.Struct({
|
|
4828
|
+
root: Schema$1.String.check(Schema$1.isMaxLength(2048).annotate({ expected: "a value with a length of at most 2048" })).check(Schema$1.isPattern(/* @__PURE__ */ new 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(?:\\/|$))[^\\\\/]+)*$")).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(?:\\/|$))[^\\\\/]+)*$" })),
|
|
4829
|
+
digest: Schema$1.String.check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^[a-f0-9]{64}$")).annotate({ expected: "a string matching the RegExp ^[a-f0-9]{64}$" })),
|
|
4830
|
+
fileCount: Schema$1.Finite.check(Schema$1.isInt().annotate({ expected: "an integer" })).check(Schema$1.isGreaterThanOrEqualTo(1).annotate({ expected: "a value greater than or equal to 1" })),
|
|
4831
|
+
byteSize: Schema$1.Finite.check(Schema$1.isInt().annotate({ expected: "an integer" })).check(Schema$1.isGreaterThanOrEqualTo(1).annotate({ expected: "a value greater than or equal to 1" })),
|
|
4832
|
+
kind: Schema$1.Literal("library-template"),
|
|
4833
|
+
access: Schema$1.Literal("read-only"),
|
|
4834
|
+
templateId: Schema$1.String.check(Schema$1.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema$1.isMaxLength(128).annotate({ expected: "a value with a length of at most 128" })),
|
|
4835
|
+
slug: Schema$1.String.check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^[a-z0-9]+(?:-[a-z0-9]+)*$")).annotate({ expected: "a string matching the RegExp ^[a-z0-9]+(?:-[a-z0-9]+)*$" })),
|
|
4836
|
+
name: Schema$1.String.check(Schema$1.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema$1.isMaxLength(256).annotate({ expected: "a value with a length of at most 256" }))
|
|
4837
|
+
})
|
|
4838
|
+
])),
|
|
4839
|
+
libraryManifestDigest: Schema$1.String.check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^[a-f0-9]{64}$")).annotate({ expected: "a string matching the RegExp ^[a-f0-9]{64}$" })),
|
|
4840
|
+
createdAt: Schema$1.String,
|
|
4841
|
+
updatedAt: Schema$1.String,
|
|
4842
|
+
createdBy: Schema$1.Struct({
|
|
4843
|
+
userId: UserId,
|
|
4844
|
+
via: Schema$1.Literals([
|
|
4845
|
+
"api",
|
|
4846
|
+
"mcp",
|
|
4847
|
+
"agent"
|
|
4848
|
+
])
|
|
4849
|
+
}),
|
|
4850
|
+
updatedBy: Schema$1.Struct({
|
|
4851
|
+
userId: UserId,
|
|
4852
|
+
via: Schema$1.Literals([
|
|
4853
|
+
"api",
|
|
4854
|
+
"mcp",
|
|
4855
|
+
"agent"
|
|
4856
|
+
])
|
|
4857
|
+
})
|
|
4858
|
+
}),
|
|
4859
|
+
files: Schema$1.Record(Schema$1.String, Schema$1.String)
|
|
4860
|
+
}),
|
|
4861
|
+
source: Schema$1.Struct({
|
|
4862
|
+
digest: Schema$1.String.check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^[a-f0-9]{64}$")).annotate({ expected: "a string matching the RegExp ^[a-f0-9]{64}$" })),
|
|
4863
|
+
content: Schema$1.String.check(Schema$1.isMaxLength(2097152).annotate({ expected: "a value with a length of at most 2097152" }))
|
|
4864
|
+
})
|
|
3990
4865
|
});
|
|
3991
|
-
const
|
|
3992
|
-
const
|
|
3993
|
-
const
|
|
3994
|
-
const
|
|
3995
|
-
|
|
3996
|
-
|
|
3997
|
-
|
|
3998
|
-
|
|
3999
|
-
|
|
4000
|
-
|
|
4001
|
-
|
|
4002
|
-
|
|
4003
|
-
|
|
4004
|
-
|
|
4005
|
-
|
|
4006
|
-
|
|
4007
|
-
|
|
4008
|
-
|
|
4009
|
-
|
|
4010
|
-
|
|
4011
|
-
|
|
4012
|
-
|
|
4013
|
-
|
|
4014
|
-
|
|
4015
|
-
|
|
4016
|
-
|
|
4017
|
-
|
|
4866
|
+
const TemplatesRestoreWorkspace401 = UnauthorizedError;
|
|
4867
|
+
const TemplatesRestoreWorkspace403 = ForbiddenError;
|
|
4868
|
+
const TemplatesRestoreWorkspace404 = ResourceNotFoundError;
|
|
4869
|
+
const TemplatesRestoreWorkspace409 = ConflictError;
|
|
4870
|
+
const TemplatesRestoreWorkspace500 = InternalError;
|
|
4871
|
+
const TemplatesSaveWorkspacePathParams = Schema$1.Struct({ id: TemplateId });
|
|
4872
|
+
const TemplatesSaveWorkspaceRequestJson = Schema$1.Struct({
|
|
4873
|
+
expectedRevision: Schema$1.String,
|
|
4874
|
+
expectedHead: Schema$1.String.check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^[a-f0-9]{40}$")).annotate({ expected: "a string matching the RegExp ^[a-f0-9]{40}$" })),
|
|
4875
|
+
message: Schema$1.String.check(Schema$1.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema$1.isMaxLength(512).annotate({ expected: "a value with a length of at most 512" })),
|
|
4876
|
+
idempotencyKey: Schema$1.String.check(Schema$1.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema$1.isMaxLength(255).annotate({ expected: "a value with a length of at most 255" }))
|
|
4877
|
+
});
|
|
4878
|
+
const TemplatesSaveWorkspace200 = Schema$1.Struct({
|
|
4879
|
+
commit: Schema$1.String.check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^[a-f0-9]{40}$")).annotate({ expected: "a string matching the RegExp ^[a-f0-9]{40}$" })),
|
|
4880
|
+
parentCommit: Schema$1.String.check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^[a-f0-9]{40}$")).annotate({ expected: "a string matching the RegExp ^[a-f0-9]{40}$" })),
|
|
4881
|
+
tree: Schema$1.String.check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^[a-f0-9]{40}$")).annotate({ expected: "a string matching the RegExp ^[a-f0-9]{40}$" })),
|
|
4882
|
+
revision: Schema$1.String,
|
|
4883
|
+
changedPaths: Schema$1.Array(Schema$1.String.check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^(?!\\/)(?!.*\\\\)(?!.*(?:^|\\/)\\.{1,2}(?:\\/|$))(?!.*(?:^|\\/)\\.git(?:\\/|$)).{1,1024}$")).annotate({ expected: "a string matching the RegExp ^(?!\\/)(?!.*\\\\)(?!.*(?:^|\\/)\\.{1,2}(?:\\/|$))(?!.*(?:^|\\/)\\.git(?:\\/|$)).{1,1024}$" }))),
|
|
4884
|
+
sourceDigest: Schema$1.String.check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^[a-f0-9]{64}$")).annotate({ expected: "a string matching the RegExp ^[a-f0-9]{64}$" })),
|
|
4885
|
+
buildDigest: Schema$1.String.check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^[a-f0-9]{64}$")).annotate({ expected: "a string matching the RegExp ^[a-f0-9]{64}$" })),
|
|
4886
|
+
warnings: Schema$1.Array(Schema$1.Struct({
|
|
4887
|
+
code: Schema$1.String,
|
|
4888
|
+
severity: Schema$1.Literals([
|
|
4889
|
+
"error",
|
|
4890
|
+
"warning",
|
|
4891
|
+
"info"
|
|
4892
|
+
]),
|
|
4893
|
+
message: Schema$1.String,
|
|
4894
|
+
origins: Schema$1.Array(Schema$1.Struct({
|
|
4895
|
+
fileName: Schema$1.String,
|
|
4896
|
+
lineNumber: Schema$1.Finite.check(Schema$1.isInt().annotate({ expected: "an integer" })).check(Schema$1.isGreaterThanOrEqualTo(1).annotate({ expected: "a value greater than or equal to 1" })),
|
|
4897
|
+
columnNumber: Schema$1.Finite.check(Schema$1.isInt().annotate({ expected: "an integer" })).check(Schema$1.isGreaterThanOrEqualTo(1).annotate({ expected: "a value greater than or equal to 1" }))
|
|
4898
|
+
})),
|
|
4899
|
+
clients: Schema$1.optionalKey(Schema$1.Union([Schema$1.Array(Schema$1.String), Schema$1.Null])),
|
|
4900
|
+
notes: Schema$1.optionalKey(Schema$1.Union([Schema$1.String, Schema$1.Null])),
|
|
4901
|
+
provenance: Schema$1.optionalKey(Schema$1.Union([Schema$1.String, Schema$1.Null])),
|
|
4902
|
+
fixtures: Schema$1.optionalKey(Schema$1.Union([Schema$1.Array(Schema$1.String), Schema$1.Null])),
|
|
4903
|
+
occurrences: Schema$1.optionalKey(Schema$1.Union([Schema$1.Array(Schema$1.Array(Schema$1.Struct({
|
|
4904
|
+
fileName: Schema$1.String,
|
|
4905
|
+
lineNumber: Schema$1.Finite.check(Schema$1.isInt().annotate({ expected: "an integer" })).check(Schema$1.isGreaterThanOrEqualTo(1).annotate({ expected: "a value greater than or equal to 1" })),
|
|
4906
|
+
columnNumber: Schema$1.Finite.check(Schema$1.isInt().annotate({ expected: "an integer" })).check(Schema$1.isGreaterThanOrEqualTo(1).annotate({ expected: "a value greater than or equal to 1" }))
|
|
4907
|
+
}))), Schema$1.Null])),
|
|
4908
|
+
compatibility: Schema$1.optionalKey(Schema$1.Union([Schema$1.Struct({
|
|
4909
|
+
assessment: Schema$1.Literals([
|
|
4910
|
+
"risk",
|
|
4911
|
+
"degradation",
|
|
4912
|
+
"unverified",
|
|
4913
|
+
"not-applicable"
|
|
4914
|
+
]),
|
|
4915
|
+
title: Schema$1.String
|
|
4916
|
+
}), Schema$1.Null]))
|
|
4917
|
+
})),
|
|
4918
|
+
incompatibilities: Schema$1.Array(Schema$1.Struct({
|
|
4919
|
+
code: Schema$1.String,
|
|
4920
|
+
severity: Schema$1.Literals([
|
|
4921
|
+
"error",
|
|
4922
|
+
"warning",
|
|
4923
|
+
"info"
|
|
4924
|
+
]),
|
|
4925
|
+
message: Schema$1.String,
|
|
4926
|
+
origins: Schema$1.Array(Schema$1.Struct({
|
|
4927
|
+
fileName: Schema$1.String,
|
|
4928
|
+
lineNumber: Schema$1.Finite.check(Schema$1.isInt().annotate({ expected: "an integer" })).check(Schema$1.isGreaterThanOrEqualTo(1).annotate({ expected: "a value greater than or equal to 1" })),
|
|
4929
|
+
columnNumber: Schema$1.Finite.check(Schema$1.isInt().annotate({ expected: "an integer" })).check(Schema$1.isGreaterThanOrEqualTo(1).annotate({ expected: "a value greater than or equal to 1" }))
|
|
4930
|
+
})),
|
|
4931
|
+
clients: Schema$1.optionalKey(Schema$1.Union([Schema$1.Array(Schema$1.String), Schema$1.Null])),
|
|
4932
|
+
notes: Schema$1.optionalKey(Schema$1.Union([Schema$1.String, Schema$1.Null])),
|
|
4933
|
+
provenance: Schema$1.optionalKey(Schema$1.Union([Schema$1.String, Schema$1.Null])),
|
|
4934
|
+
fixtures: Schema$1.optionalKey(Schema$1.Union([Schema$1.Array(Schema$1.String), Schema$1.Null])),
|
|
4935
|
+
occurrences: Schema$1.optionalKey(Schema$1.Union([Schema$1.Array(Schema$1.Array(Schema$1.Struct({
|
|
4936
|
+
fileName: Schema$1.String,
|
|
4937
|
+
lineNumber: Schema$1.Finite.check(Schema$1.isInt().annotate({ expected: "an integer" })).check(Schema$1.isGreaterThanOrEqualTo(1).annotate({ expected: "a value greater than or equal to 1" })),
|
|
4938
|
+
columnNumber: Schema$1.Finite.check(Schema$1.isInt().annotate({ expected: "an integer" })).check(Schema$1.isGreaterThanOrEqualTo(1).annotate({ expected: "a value greater than or equal to 1" }))
|
|
4939
|
+
}))), Schema$1.Null])),
|
|
4940
|
+
compatibility: Schema$1.optionalKey(Schema$1.Union([Schema$1.Struct({
|
|
4941
|
+
assessment: Schema$1.Literals([
|
|
4942
|
+
"risk",
|
|
4943
|
+
"degradation",
|
|
4944
|
+
"unverified",
|
|
4945
|
+
"not-applicable"
|
|
4946
|
+
]),
|
|
4947
|
+
title: Schema$1.String
|
|
4948
|
+
}), Schema$1.Null]))
|
|
4949
|
+
}))
|
|
4018
4950
|
});
|
|
4019
|
-
const
|
|
4020
|
-
const
|
|
4021
|
-
const
|
|
4022
|
-
const
|
|
4023
|
-
const
|
|
4024
|
-
const TemplatesCreate500 = InternalError;
|
|
4025
|
-
const TemplatesGetByIdPathParams = Schema$1.Struct({ id: TemplateId });
|
|
4026
|
-
const TemplatesGetById200 = Template;
|
|
4027
|
-
const TemplatesGetById401 = UnauthorizedError;
|
|
4028
|
-
const TemplatesGetById403 = ForbiddenError;
|
|
4029
|
-
const TemplatesGetById404 = ResourceNotFoundError;
|
|
4030
|
-
const TemplatesGetById500 = InternalError;
|
|
4031
|
-
const TemplatesRemovePathParams = Schema$1.Struct({ id: TemplateId });
|
|
4032
|
-
const TemplatesRemove200 = SuccessResponse;
|
|
4033
|
-
const TemplatesRemove401 = UnauthorizedError;
|
|
4034
|
-
const TemplatesRemove403 = ForbiddenError;
|
|
4035
|
-
const TemplatesRemove404 = ResourceNotFoundError;
|
|
4036
|
-
const TemplatesRemove500 = InternalError;
|
|
4037
|
-
const TemplatesUpdatePathParams = Schema$1.Struct({ id: TemplateId });
|
|
4038
|
-
const TemplatesUpdateRequestJson = Schema$1.Struct({ data: Schema$1.Struct({
|
|
4039
|
-
name: Schema$1.optionalKey(Schema$1.Union([Schema$1.String, Schema$1.Null])),
|
|
4040
|
-
slug: Schema$1.optionalKey(Schema$1.Union([Schema$1.String.check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^(?=.{1,100}$)[a-z0-9]+(?:-[a-z0-9]+)*$")).annotate({ expected: "a string matching the RegExp ^(?=.{1,100}$)[a-z0-9]+(?:-[a-z0-9]+)*$" })), Schema$1.Null])),
|
|
4041
|
-
origin: Schema$1.optionalKey(Schema$1.Union([Schema$1.Literals(["dashboard", "tsx"]), Schema$1.Null])),
|
|
4042
|
-
description: Schema$1.optionalKey(Schema$1.Union([Schema$1.Union([Schema$1.String, Schema$1.Null]), Schema$1.Null])),
|
|
4043
|
-
category: Schema$1.optionalKey(Schema$1.Union([Schema$1.Union([Schema$1.Literals([
|
|
4044
|
-
"transactional",
|
|
4045
|
-
"marketing",
|
|
4046
|
-
"support",
|
|
4047
|
-
"notification",
|
|
4048
|
-
"verification",
|
|
4049
|
-
"reminder",
|
|
4050
|
-
"alert"
|
|
4051
|
-
]), Schema$1.Null]), Schema$1.Null])),
|
|
4052
|
-
fromDefault: Schema$1.optionalKey(Schema$1.Union([Schema$1.Union([TemplateFromDefault, Schema$1.Null]), Schema$1.Null])),
|
|
4053
|
-
replyToDefault: Schema$1.optionalKey(Schema$1.Union([Schema$1.Union([Schema$1.Array(Schema$1.String), Schema$1.Null]), Schema$1.Null])),
|
|
4054
|
-
variableSchema: Schema$1.optionalKey(Schema$1.Union([Schema$1.Union([Schema$1.Array(TemplateVariable), Schema$1.Null]), Schema$1.Null])),
|
|
4055
|
-
compliance: Schema$1.optionalKey(Schema$1.Union([Schema$1.Union([TemplateCompliance, Schema$1.Null]), Schema$1.Null])),
|
|
4056
|
-
performance: Schema$1.optionalKey(Schema$1.Union([Schema$1.Union([TemplatePerformance, Schema$1.Null]), Schema$1.Null])),
|
|
4057
|
-
designOverrides: Schema$1.optionalKey(Schema$1.Union([Schema$1.Union([Design, Schema$1.Null]), Schema$1.Null])),
|
|
4058
|
-
isActive: Schema$1.optionalKey(Schema$1.Union([Schema$1.Boolean, Schema$1.Null])),
|
|
4059
|
-
isDefault: Schema$1.optionalKey(Schema$1.Union([Schema$1.Boolean, Schema$1.Null])),
|
|
4060
|
-
version: Schema$1.optionalKey(Schema$1.Union([Schema$1.Finite.check(Schema$1.isInt().annotate({ expected: "an integer" })).check(Schema$1.isGreaterThan(0).annotate({ expected: "a value greater than 0" })), Schema$1.Null]))
|
|
4061
|
-
}) });
|
|
4062
|
-
const TemplatesUpdate200 = Template;
|
|
4063
|
-
const TemplatesUpdate401 = UnauthorizedError;
|
|
4064
|
-
const TemplatesUpdate403 = ForbiddenError;
|
|
4065
|
-
const TemplatesUpdate404 = ResourceNotFoundError;
|
|
4066
|
-
const TemplatesUpdate409 = ConflictError;
|
|
4067
|
-
const TemplatesUpdate422 = ValidationError;
|
|
4068
|
-
const TemplatesUpdate500 = InternalError;
|
|
4069
|
-
const TemplatesApprovePathParams = Schema$1.Struct({ id: TemplateId });
|
|
4070
|
-
const TemplatesApproveRequestJson = Schema$1.Struct({ data: Schema$1.Struct({ notes: Schema$1.optionalKey(Schema$1.Union([Schema$1.String, Schema$1.Null])) }) });
|
|
4071
|
-
const TemplatesApprove200 = Template;
|
|
4072
|
-
const TemplatesApprove401 = UnauthorizedError;
|
|
4073
|
-
const TemplatesApprove403 = ForbiddenError;
|
|
4074
|
-
const TemplatesApprove404 = ResourceNotFoundError;
|
|
4075
|
-
const TemplatesApprove500 = InternalError;
|
|
4951
|
+
const TemplatesSaveWorkspace401 = UnauthorizedError;
|
|
4952
|
+
const TemplatesSaveWorkspace403 = ForbiddenError;
|
|
4953
|
+
const TemplatesSaveWorkspace404 = ResourceNotFoundError;
|
|
4954
|
+
const TemplatesSaveWorkspace409 = ConflictError;
|
|
4955
|
+
const TemplatesSaveWorkspace500 = InternalError;
|
|
4076
4956
|
const TemplatesListDashboardQuery = Schema$1.Struct({
|
|
4077
4957
|
page: Schema$1.optionalKey(Schema$1.Union([Schema$1.String, Schema$1.Null])),
|
|
4078
4958
|
limit: Schema$1.optionalKey(Schema$1.Union([Schema$1.String, Schema$1.Null])),
|
|
@@ -4161,17 +5041,6 @@ const TemplatesRenameFamily403 = ForbiddenError;
|
|
|
4161
5041
|
const TemplatesRenameFamily404 = ResourceNotFoundError;
|
|
4162
5042
|
const TemplatesRenameFamily422 = ValidationError;
|
|
4163
5043
|
const TemplatesRenameFamily500 = InternalError;
|
|
4164
|
-
const TemplatesAddFamilyChannelPathParams = Schema$1.Struct({
|
|
4165
|
-
familyId: TemplateFamilyId,
|
|
4166
|
-
channel: Schema$1.Literal("email")
|
|
4167
|
-
});
|
|
4168
|
-
const TemplatesAddFamilyChannel201 = TemplateFamily;
|
|
4169
|
-
const TemplatesAddFamilyChannel401 = UnauthorizedError;
|
|
4170
|
-
const TemplatesAddFamilyChannel403 = ForbiddenError;
|
|
4171
|
-
const TemplatesAddFamilyChannel404 = ResourceNotFoundError;
|
|
4172
|
-
const TemplatesAddFamilyChannel409 = ConflictError;
|
|
4173
|
-
const TemplatesAddFamilyChannel422 = ValidationError;
|
|
4174
|
-
const TemplatesAddFamilyChannel500 = InternalError;
|
|
4175
5044
|
const TemplatesAttachFamilyMemberPathParams = Schema$1.Struct({
|
|
4176
5045
|
familyId: TemplateFamilyId,
|
|
4177
5046
|
templateId: TemplateId
|
|
@@ -4975,10 +5844,11 @@ var EmailGroup = class extends HttpApiGroup.make("Email").add(HttpApiEndpoint.ge
|
|
|
4975
5844
|
EmailAddDomain402.pipe(HttpApiSchema.status(402)),
|
|
4976
5845
|
EmailAddDomain403.pipe(HttpApiSchema.status(403)),
|
|
4977
5846
|
EmailAddDomain409.pipe(HttpApiSchema.status(409)),
|
|
5847
|
+
EmailAddDomain422.pipe(HttpApiSchema.status(422)),
|
|
4978
5848
|
EmailAddDomain500,
|
|
4979
5849
|
EmailAddDomain502.pipe(HttpApiSchema.status(502))
|
|
4980
5850
|
]
|
|
4981
|
-
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "email.addDomain").annotate(OpenApi.Summary, "Add a sending domain").annotate(OpenApi.Description, "Registers a domain for sending and returns it with the DNS records required to verify ownership and configure DKIM. Responds with 201."), HttpApiEndpoint.get("emailGetDomainById", "/v1/email/domains/:id", {
|
|
5851
|
+
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "email.addDomain").annotate(OpenApi.Summary, "Add a sending domain").annotate(OpenApi.Description, "Registers a domain for sending and returns it with the DNS records required to verify ownership and configure DKIM. Responds with 201. Supplying a connection attaches the domain to that DNS account; the domain must sit inside the zone given with it."), HttpApiEndpoint.get("emailGetDomainById", "/v1/email/domains/:id", {
|
|
4982
5852
|
params: EmailGetDomainByIdPathParams,
|
|
4983
5853
|
success: EmailGetDomainById200,
|
|
4984
5854
|
error: [
|
|
@@ -5036,7 +5906,7 @@ var EmailGroup = class extends HttpApiGroup.make("Email").add(HttpApiEndpoint.ge
|
|
|
5036
5906
|
EmailDisableCustomTracking500,
|
|
5037
5907
|
EmailDisableCustomTracking502.pipe(HttpApiSchema.status(502))
|
|
5038
5908
|
]
|
|
5039
|
-
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "email.disableCustomTracking").annotate(OpenApi.Summary, "Disable a custom tracking domain").annotate(OpenApi.Description, "
|
|
5909
|
+
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "email.disableCustomTracking").annotate(OpenApi.Summary, "Disable a custom tracking domain").annotate(OpenApi.Description, "Disables a domain's custom tracking, removes its managed resources, and immediately returns sends to the shared tracking host. Existing custom links in already-delivered mail stop working."), HttpApiEndpoint.get("emailGetCustomTrackingDomainConnect", "/v1/email/domains/:id/custom-tracking/domain-connect", {
|
|
5040
5910
|
params: EmailGetCustomTrackingDomainConnectPathParams,
|
|
5041
5911
|
success: EmailGetCustomTrackingDomainConnect200,
|
|
5042
5912
|
error: [
|
|
@@ -5223,6 +6093,7 @@ var EmailGroup = class extends HttpApiGroup.make("Email").add(HttpApiEndpoint.ge
|
|
|
5223
6093
|
EmailListSenders500
|
|
5224
6094
|
]
|
|
5225
6095
|
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "email.listSenders").annotate(OpenApi.Summary, "List sender identities").annotate(OpenApi.Description, "Returns a paginated list of sender identities, optionally filtered by verification status, active state, or default flag."), HttpApiEndpoint.post("emailAddSender", "/v1/email/senders", {
|
|
6096
|
+
headers: EmailAddSenderHeaders,
|
|
5226
6097
|
payload: EmailAddSenderRequestJson,
|
|
5227
6098
|
success: EmailAddSender201.pipe(HttpApiSchema.status(201)),
|
|
5228
6099
|
error: [
|
|
@@ -5234,7 +6105,7 @@ var EmailGroup = class extends HttpApiGroup.make("Email").add(HttpApiEndpoint.ge
|
|
|
5234
6105
|
EmailAddSender500,
|
|
5235
6106
|
EmailAddSender502.pipe(HttpApiSchema.status(502))
|
|
5236
6107
|
]
|
|
5237
|
-
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "email.addSender").annotate(OpenApi.Summary, "Add a sender identity").annotate(OpenApi.Description, "
|
|
6108
|
+
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "email.addSender").annotate(OpenApi.Summary, "Add a sender identity").annotate(OpenApi.Description, "Durably creates a sender identity. The required Idempotency-Key replays the original sender for an identical request and conflicts when reused with different input."), HttpApiEndpoint.delete("emailRemoveSender", "/v1/email/senders/:id", {
|
|
5238
6109
|
params: EmailRemoveSenderPathParams,
|
|
5239
6110
|
success: EmailRemoveSender200,
|
|
5240
6111
|
error: [
|
|
@@ -5244,7 +6115,7 @@ var EmailGroup = class extends HttpApiGroup.make("Email").add(HttpApiEndpoint.ge
|
|
|
5244
6115
|
EmailRemoveSender422.pipe(HttpApiSchema.status(422)),
|
|
5245
6116
|
EmailRemoveSender500
|
|
5246
6117
|
]
|
|
5247
|
-
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "email.removeSender").annotate(OpenApi.Summary, "Remove a sender identity").annotate(OpenApi.Description, "
|
|
6118
|
+
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "email.removeSender").annotate(OpenApi.Summary, "Remove a sender identity").annotate(OpenApi.Description, "Accepts sender removal, marks it inactive, and retains its deleting lifecycle until provider identity and association cleanup is confirmed."), HttpApiEndpoint.post("emailSetDefaultSender", "/v1/email/senders/:id/default", {
|
|
5248
6119
|
params: EmailSetDefaultSenderPathParams,
|
|
5249
6120
|
success: EmailSetDefaultSender200,
|
|
5250
6121
|
error: [
|
|
@@ -5297,7 +6168,7 @@ var EmailGroup = class extends HttpApiGroup.make("Email").add(HttpApiEndpoint.ge
|
|
|
5297
6168
|
EmailGetTrackingDefaults404.pipe(HttpApiSchema.status(404)),
|
|
5298
6169
|
EmailGetTrackingDefaults500
|
|
5299
6170
|
]
|
|
5300
|
-
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "email.getTrackingDefaults").annotate(OpenApi.Summary, "Get email tracking defaults").annotate(OpenApi.Description, "Returns the
|
|
6171
|
+
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "email.getTrackingDefaults").annotate(OpenApi.Summary, "Get email tracking defaults").annotate(OpenApi.Description, "Returns the workspace's independent defaults for open and click tracking, both enabled unless configured otherwise. Recipient opt-out takes precedence over these defaults."), HttpApiEndpoint.patch("emailUpdateTrackingDefaults", "/v1/email/tracking/defaults", {
|
|
5301
6172
|
payload: EmailUpdateTrackingDefaultsRequestJson,
|
|
5302
6173
|
success: EmailUpdateTrackingDefaults200,
|
|
5303
6174
|
error: [
|
|
@@ -5383,7 +6254,7 @@ var MessagesGroup = class extends HttpApiGroup.make("Messages").add(HttpApiEndpo
|
|
|
5383
6254
|
MessagesList403.pipe(HttpApiSchema.status(403)),
|
|
5384
6255
|
MessagesList500
|
|
5385
6256
|
]
|
|
5386
|
-
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "messages.list").annotate(OpenApi.Summary, "List messages").annotate(OpenApi.Description, "Returns a paginated list of messages across all channels, with optional filters for channel, status, conversation, contact, and date range."), HttpApiEndpoint.post("messagesSend", "/v1/messages", {
|
|
6257
|
+
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "messages.list").annotate(OpenApi.Summary, "List messages").annotate(OpenApi.Description, "Returns a paginated list of messages across all channels, with optional filters for channel, direction, status, conversation, contact, and date range."), HttpApiEndpoint.post("messagesSend", "/v1/messages", {
|
|
5387
6258
|
headers: MessagesSendHeaders,
|
|
5388
6259
|
payload: MessagesSendRequestJson,
|
|
5389
6260
|
success: MessagesSend201.pipe(HttpApiSchema.status(201)),
|
|
@@ -5464,7 +6335,7 @@ var ScheduledMessagesGroup = class extends HttpApiGroup.make("Scheduled Messages
|
|
|
5464
6335
|
ScheduledMessagesCreate500,
|
|
5465
6336
|
ScheduledMessagesCreate502.pipe(HttpApiSchema.status(502))
|
|
5466
6337
|
]
|
|
5467
|
-
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "scheduledMessages.create").annotate(OpenApi.Summary, "Schedule a message").annotate(OpenApi.Description, "Schedules a message at the absolute ISO-8601
|
|
6338
|
+
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "scheduledMessages.create").annotate(OpenApi.Summary, "Schedule a message").annotate(OpenApi.Description, "Schedules a message for dispatch at the absolute ISO-8601 timestamp supplied in scheduledFor. Optional timezone is validated IANA display metadata only and never changes the execution instant."), HttpApiEndpoint.get("scheduledMessagesGet", "/v1/messages/scheduled/:id", {
|
|
5468
6339
|
params: ScheduledMessagesGetPathParams,
|
|
5469
6340
|
success: ScheduledMessagesGet200,
|
|
5470
6341
|
error: [
|
|
@@ -5562,7 +6433,7 @@ var OrganizationsGroup = class extends HttpApiGroup.make("Organizations").add(Ht
|
|
|
5562
6433
|
OrganizationsDelete422.pipe(HttpApiSchema.status(422)),
|
|
5563
6434
|
OrganizationsDelete500
|
|
5564
6435
|
]
|
|
5565
|
-
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "organizations.delete").annotate(OpenApi.Summary, "Delete the current workspace").annotate(OpenApi.Description, "
|
|
6436
|
+
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "organizations.delete").annotate(OpenApi.Summary, "Delete the current workspace").annotate(OpenApi.Description, "Starts an owner-authorized durable workspace deletion operation, confirming the workspace name in the request. Repeating the same request with the same Idempotency-Key returns the existing organization-scoped operation."), HttpApiEndpoint.get("organizationsGetUsage", "/v1/organizations/usage", {
|
|
5566
6437
|
query: OrganizationsGetUsageQuery,
|
|
5567
6438
|
success: OrganizationsGetUsage200,
|
|
5568
6439
|
error: [
|
|
@@ -5571,187 +6442,6 @@ var OrganizationsGroup = class extends HttpApiGroup.make("Organizations").add(Ht
|
|
|
5571
6442
|
OrganizationsGetUsage500
|
|
5572
6443
|
]
|
|
5573
6444
|
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "organizations.getUsage").annotate(OpenApi.Summary, "Get organization usage").annotate(OpenApi.Description, "Returns usage statistics for the current organization over the selected reporting period.")).annotate(OpenApi.Description, "Organization management and usage statistics") {};
|
|
5574
|
-
var TemplateDocumentsGroup = class extends HttpApiGroup.make("Template Documents").add(HttpApiEndpoint.get("templateDocumentsGet", "/v1/template-documents/:templateId", {
|
|
5575
|
-
params: TemplateDocumentsGetPathParams,
|
|
5576
|
-
success: TemplateDocumentsGet200,
|
|
5577
|
-
error: [
|
|
5578
|
-
TemplateDocumentsGet401.pipe(HttpApiSchema.status(401)),
|
|
5579
|
-
TemplateDocumentsGet403.pipe(HttpApiSchema.status(403)),
|
|
5580
|
-
TemplateDocumentsGet404.pipe(HttpApiSchema.status(404)),
|
|
5581
|
-
TemplateDocumentsGet409.pipe(HttpApiSchema.status(409)),
|
|
5582
|
-
TemplateDocumentsGet422.pipe(HttpApiSchema.status(422)),
|
|
5583
|
-
TemplateDocumentsGet500
|
|
5584
|
-
]
|
|
5585
|
-
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "templateDocuments.get").annotate(OpenApi.Summary, "Get a template document").annotate(OpenApi.Description, "Returns the current authoritative source, revision, and metadata for a template document."), HttpApiEndpoint.post("templateDocumentsIssueAgentAdmission", "/v1/template-documents/:templateId/agent-admission", {
|
|
5586
|
-
params: TemplateDocumentsIssueAgentAdmissionPathParams,
|
|
5587
|
-
payload: TemplateDocumentsIssueAgentAdmissionRequestJson,
|
|
5588
|
-
success: TemplateDocumentsIssueAgentAdmission200,
|
|
5589
|
-
error: [
|
|
5590
|
-
TemplateDocumentsIssueAgentAdmission401.pipe(HttpApiSchema.status(401)),
|
|
5591
|
-
TemplateDocumentsIssueAgentAdmission403.pipe(HttpApiSchema.status(403)),
|
|
5592
|
-
TemplateDocumentsIssueAgentAdmission404.pipe(HttpApiSchema.status(404)),
|
|
5593
|
-
TemplateDocumentsIssueAgentAdmission409.pipe(HttpApiSchema.status(409)),
|
|
5594
|
-
TemplateDocumentsIssueAgentAdmission422.pipe(HttpApiSchema.status(422)),
|
|
5595
|
-
TemplateDocumentsIssueAgentAdmission500
|
|
5596
|
-
]
|
|
5597
|
-
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "templateDocuments.issueAgentAdmission").annotate(OpenApi.Summary, "Issue an agent admission").annotate(OpenApi.Description, "Authorizes a bounded template-agent operation against the current document and returns the admission context."), HttpApiEndpoint.post("templateDocumentsCompleteAgentConversationClear", "/v1/template-documents/:templateId/agent-conversation/clear-completion", {
|
|
5598
|
-
params: TemplateDocumentsCompleteAgentConversationClearPathParams,
|
|
5599
|
-
payload: TemplateDocumentsCompleteAgentConversationClearRequestJson,
|
|
5600
|
-
success: HttpApiSchema.Empty(200),
|
|
5601
|
-
error: [
|
|
5602
|
-
TemplateDocumentsCompleteAgentConversationClear401.pipe(HttpApiSchema.status(401)),
|
|
5603
|
-
TemplateDocumentsCompleteAgentConversationClear403.pipe(HttpApiSchema.status(403)),
|
|
5604
|
-
TemplateDocumentsCompleteAgentConversationClear404.pipe(HttpApiSchema.status(404)),
|
|
5605
|
-
TemplateDocumentsCompleteAgentConversationClear409.pipe(HttpApiSchema.status(409)),
|
|
5606
|
-
TemplateDocumentsCompleteAgentConversationClear500
|
|
5607
|
-
]
|
|
5608
|
-
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "templateDocuments.completeAgentConversationClear").annotate(OpenApi.Summary, "Complete an agent conversation clear").annotate(OpenApi.Description, "Records completion of an admitted agent conversation-clear operation for the template document."), HttpApiEndpoint.post("templateDocumentsApplyAgentProposal", "/v1/template-documents/:templateId/agent-proposals/apply", {
|
|
5609
|
-
params: TemplateDocumentsApplyAgentProposalPathParams,
|
|
5610
|
-
payload: TemplateDocumentsApplyAgentProposalRequestJson,
|
|
5611
|
-
success: TemplateDocumentsApplyAgentProposal200,
|
|
5612
|
-
error: [
|
|
5613
|
-
TemplateDocumentsApplyAgentProposal401.pipe(HttpApiSchema.status(401)),
|
|
5614
|
-
TemplateDocumentsApplyAgentProposal403.pipe(HttpApiSchema.status(403)),
|
|
5615
|
-
TemplateDocumentsApplyAgentProposal404.pipe(HttpApiSchema.status(404)),
|
|
5616
|
-
TemplateDocumentsApplyAgentProposal409.pipe(HttpApiSchema.status(409)),
|
|
5617
|
-
TemplateDocumentsApplyAgentProposal422.pipe(HttpApiSchema.status(422)),
|
|
5618
|
-
TemplateDocumentsApplyAgentProposal500
|
|
5619
|
-
]
|
|
5620
|
-
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "templateDocuments.applyAgentProposal").annotate(OpenApi.Summary, "Apply an agent proposal").annotate(OpenApi.Description, "Applies an admitted agent-authored source proposal when its revision and source digest still match the document."), HttpApiEndpoint.post("templateDocumentsPublish", "/v1/template-documents/:templateId/publish", {
|
|
5621
|
-
params: TemplateDocumentsPublishPathParams,
|
|
5622
|
-
success: TemplateDocumentsPublish200,
|
|
5623
|
-
error: [
|
|
5624
|
-
TemplateDocumentsPublish401.pipe(HttpApiSchema.status(401)),
|
|
5625
|
-
TemplateDocumentsPublish403.pipe(HttpApiSchema.status(403)),
|
|
5626
|
-
TemplateDocumentsPublish404.pipe(HttpApiSchema.status(404)),
|
|
5627
|
-
TemplateDocumentsPublish409.pipe(HttpApiSchema.status(409)),
|
|
5628
|
-
TemplateDocumentsPublish422.pipe(HttpApiSchema.status(422)),
|
|
5629
|
-
TemplateDocumentsPublish500
|
|
5630
|
-
]
|
|
5631
|
-
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "templateDocuments.publish").annotate(OpenApi.Summary, "Publish a template document").annotate(OpenApi.Description, "Publishes the current saved template source version and returns its lifecycle receipt."), HttpApiEndpoint.post("templateDocumentsRender", "/v1/template-documents/:templateId/render", {
|
|
5632
|
-
params: TemplateDocumentsRenderPathParams,
|
|
5633
|
-
payload: TemplateDocumentsRenderRequestJson,
|
|
5634
|
-
success: TemplateDocumentsRender200,
|
|
5635
|
-
error: [
|
|
5636
|
-
TemplateDocumentsRender401.pipe(HttpApiSchema.status(401)),
|
|
5637
|
-
TemplateDocumentsRender403.pipe(HttpApiSchema.status(403)),
|
|
5638
|
-
TemplateDocumentsRender404.pipe(HttpApiSchema.status(404)),
|
|
5639
|
-
TemplateDocumentsRender409.pipe(HttpApiSchema.status(409)),
|
|
5640
|
-
TemplateDocumentsRender422.pipe(HttpApiSchema.status(422)),
|
|
5641
|
-
TemplateDocumentsRender500
|
|
5642
|
-
]
|
|
5643
|
-
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "templateDocuments.render").annotate(OpenApi.Summary, "Render a template document").annotate(OpenApi.Description, "Renders the specified document revision with optional variables and reports any missing variables."), HttpApiEndpoint.post("templateDocumentsSave", "/v1/template-documents/:templateId/save", {
|
|
5644
|
-
params: TemplateDocumentsSavePathParams,
|
|
5645
|
-
payload: TemplateDocumentsSaveRequestJson,
|
|
5646
|
-
success: TemplateDocumentsSave200,
|
|
5647
|
-
error: [
|
|
5648
|
-
TemplateDocumentsSave401.pipe(HttpApiSchema.status(401)),
|
|
5649
|
-
TemplateDocumentsSave403.pipe(HttpApiSchema.status(403)),
|
|
5650
|
-
TemplateDocumentsSave404.pipe(HttpApiSchema.status(404)),
|
|
5651
|
-
TemplateDocumentsSave409.pipe(HttpApiSchema.status(409)),
|
|
5652
|
-
TemplateDocumentsSave422.pipe(HttpApiSchema.status(422)),
|
|
5653
|
-
TemplateDocumentsSave500
|
|
5654
|
-
]
|
|
5655
|
-
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "templateDocuments.save").annotate(OpenApi.Summary, "Save a template document").annotate(OpenApi.Description, "Materializes the specified document revision as a durable template source version and returns its receipt."), HttpApiEndpoint.post("templateDocumentsSend", "/v1/template-documents/:templateId/send", {
|
|
5656
|
-
params: TemplateDocumentsSendPathParams,
|
|
5657
|
-
payload: TemplateDocumentsSendRequestJson,
|
|
5658
|
-
success: TemplateDocumentsSend200,
|
|
5659
|
-
error: [
|
|
5660
|
-
TemplateDocumentsSend401.pipe(HttpApiSchema.status(401)),
|
|
5661
|
-
TemplateDocumentsSend402.pipe(HttpApiSchema.status(402)),
|
|
5662
|
-
TemplateDocumentsSend403.pipe(HttpApiSchema.status(403)),
|
|
5663
|
-
TemplateDocumentsSend404.pipe(HttpApiSchema.status(404)),
|
|
5664
|
-
TemplateDocumentsSend409.pipe(HttpApiSchema.status(409)),
|
|
5665
|
-
TemplateDocumentsSend422.pipe(HttpApiSchema.status(422)),
|
|
5666
|
-
TemplateDocumentsSend429.pipe(HttpApiSchema.status(429)),
|
|
5667
|
-
TemplateDocumentsSend500,
|
|
5668
|
-
TemplateDocumentsSend502.pipe(HttpApiSchema.status(502))
|
|
5669
|
-
]
|
|
5670
|
-
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "templateDocuments.send").annotate(OpenApi.Summary, "Send a template document").annotate(OpenApi.Description, "Sends or schedules the specified document revision for one or more recipients with optional variables."), HttpApiEndpoint.post("templateDocumentsTestSend", "/v1/template-documents/:templateId/send-test", {
|
|
5671
|
-
params: TemplateDocumentsTestSendPathParams,
|
|
5672
|
-
payload: TemplateDocumentsTestSendRequestJson,
|
|
5673
|
-
success: TemplateDocumentsTestSend200,
|
|
5674
|
-
error: [
|
|
5675
|
-
TemplateDocumentsTestSend401.pipe(HttpApiSchema.status(401)),
|
|
5676
|
-
TemplateDocumentsTestSend402.pipe(HttpApiSchema.status(402)),
|
|
5677
|
-
TemplateDocumentsTestSend403.pipe(HttpApiSchema.status(403)),
|
|
5678
|
-
TemplateDocumentsTestSend404.pipe(HttpApiSchema.status(404)),
|
|
5679
|
-
TemplateDocumentsTestSend409.pipe(HttpApiSchema.status(409)),
|
|
5680
|
-
TemplateDocumentsTestSend422.pipe(HttpApiSchema.status(422)),
|
|
5681
|
-
TemplateDocumentsTestSend429.pipe(HttpApiSchema.status(429)),
|
|
5682
|
-
TemplateDocumentsTestSend500,
|
|
5683
|
-
TemplateDocumentsTestSend502.pipe(HttpApiSchema.status(502))
|
|
5684
|
-
]
|
|
5685
|
-
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "templateDocuments.testSend").annotate(OpenApi.Summary, "Send a template test").annotate(OpenApi.Description, "Renders the specified document revision and sends a test message to one recipient without publishing it."), HttpApiEndpoint.post("templateDocumentsReplace", "/v1/template-documents/:templateId/source", {
|
|
5686
|
-
params: TemplateDocumentsReplacePathParams,
|
|
5687
|
-
payload: TemplateDocumentsReplaceRequestJson,
|
|
5688
|
-
success: TemplateDocumentsReplace200,
|
|
5689
|
-
error: [
|
|
5690
|
-
TemplateDocumentsReplace401.pipe(HttpApiSchema.status(401)),
|
|
5691
|
-
TemplateDocumentsReplace403.pipe(HttpApiSchema.status(403)),
|
|
5692
|
-
TemplateDocumentsReplace404.pipe(HttpApiSchema.status(404)),
|
|
5693
|
-
TemplateDocumentsReplace409.pipe(HttpApiSchema.status(409)),
|
|
5694
|
-
TemplateDocumentsReplace422.pipe(HttpApiSchema.status(422)),
|
|
5695
|
-
TemplateDocumentsReplace500
|
|
5696
|
-
]
|
|
5697
|
-
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "templateDocuments.replace").annotate(OpenApi.Summary, "Replace template source").annotate(OpenApi.Description, "Replaces the editable SML source when the expected revision matches and returns the updated document snapshot."), HttpApiEndpoint.post("templateDocumentsSpamCheck", "/v1/template-documents/:templateId/spam-check", {
|
|
5698
|
-
params: TemplateDocumentsSpamCheckPathParams,
|
|
5699
|
-
payload: TemplateDocumentsSpamCheckRequestJson,
|
|
5700
|
-
success: TemplateDocumentsSpamCheck200,
|
|
5701
|
-
error: [
|
|
5702
|
-
TemplateDocumentsSpamCheck401.pipe(HttpApiSchema.status(401)),
|
|
5703
|
-
TemplateDocumentsSpamCheck403.pipe(HttpApiSchema.status(403)),
|
|
5704
|
-
TemplateDocumentsSpamCheck404.pipe(HttpApiSchema.status(404)),
|
|
5705
|
-
TemplateDocumentsSpamCheck409.pipe(HttpApiSchema.status(409)),
|
|
5706
|
-
TemplateDocumentsSpamCheck422.pipe(HttpApiSchema.status(422)),
|
|
5707
|
-
TemplateDocumentsSpamCheck500
|
|
5708
|
-
]
|
|
5709
|
-
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "templateDocuments.spamCheck").annotate(OpenApi.Summary, "Check a template document for spam").annotate(OpenApi.Description, "Renders and analyzes the specified document revision for spam risks, returning issues and recommendations."), HttpApiEndpoint.post("templateDocumentsUnpublish", "/v1/template-documents/:templateId/unpublish", {
|
|
5710
|
-
params: TemplateDocumentsUnpublishPathParams,
|
|
5711
|
-
success: TemplateDocumentsUnpublish200,
|
|
5712
|
-
error: [
|
|
5713
|
-
TemplateDocumentsUnpublish401.pipe(HttpApiSchema.status(401)),
|
|
5714
|
-
TemplateDocumentsUnpublish403.pipe(HttpApiSchema.status(403)),
|
|
5715
|
-
TemplateDocumentsUnpublish404.pipe(HttpApiSchema.status(404)),
|
|
5716
|
-
TemplateDocumentsUnpublish409.pipe(HttpApiSchema.status(409)),
|
|
5717
|
-
TemplateDocumentsUnpublish422.pipe(HttpApiSchema.status(422)),
|
|
5718
|
-
TemplateDocumentsUnpublish500
|
|
5719
|
-
]
|
|
5720
|
-
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "templateDocuments.unpublish").annotate(OpenApi.Summary, "Unpublish a template document").annotate(OpenApi.Description, "Unpublishes the current template source version and returns its lifecycle receipt."), HttpApiEndpoint.get("templateDocumentsVersions", "/v1/template-documents/:templateId/versions", {
|
|
5721
|
-
params: TemplateDocumentsVersionsPathParams,
|
|
5722
|
-
success: TemplateDocumentsVersions200,
|
|
5723
|
-
error: [
|
|
5724
|
-
TemplateDocumentsVersions401.pipe(HttpApiSchema.status(401)),
|
|
5725
|
-
TemplateDocumentsVersions403.pipe(HttpApiSchema.status(403)),
|
|
5726
|
-
TemplateDocumentsVersions404.pipe(HttpApiSchema.status(404)),
|
|
5727
|
-
TemplateDocumentsVersions409.pipe(HttpApiSchema.status(409)),
|
|
5728
|
-
TemplateDocumentsVersions422.pipe(HttpApiSchema.status(422)),
|
|
5729
|
-
TemplateDocumentsVersions500
|
|
5730
|
-
]
|
|
5731
|
-
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "templateDocuments.versions").annotate(OpenApi.Summary, "List template document versions").annotate(OpenApi.Description, "Returns the saved source-version history for a template document."), HttpApiEndpoint.post("templateDocumentsRestore", "/v1/template-documents/:templateId/versions/:versionId/restore", {
|
|
5732
|
-
params: TemplateDocumentsRestorePathParams,
|
|
5733
|
-
payload: TemplateDocumentsRestoreRequestJson,
|
|
5734
|
-
success: TemplateDocumentsRestore200,
|
|
5735
|
-
error: [
|
|
5736
|
-
TemplateDocumentsRestore401.pipe(HttpApiSchema.status(401)),
|
|
5737
|
-
TemplateDocumentsRestore403.pipe(HttpApiSchema.status(403)),
|
|
5738
|
-
TemplateDocumentsRestore404.pipe(HttpApiSchema.status(404)),
|
|
5739
|
-
TemplateDocumentsRestore409.pipe(HttpApiSchema.status(409)),
|
|
5740
|
-
TemplateDocumentsRestore422.pipe(HttpApiSchema.status(422)),
|
|
5741
|
-
TemplateDocumentsRestore500
|
|
5742
|
-
]
|
|
5743
|
-
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "templateDocuments.restore").annotate(OpenApi.Summary, "Restore a template document version").annotate(OpenApi.Description, "Restores a saved source version into the editable document when the expected revision matches."), HttpApiEndpoint.post("templateDocumentsBootstrap", "/v1/template-documents/bootstrap", {
|
|
5744
|
-
payload: TemplateDocumentsBootstrapRequestJson,
|
|
5745
|
-
success: TemplateDocumentsBootstrap200,
|
|
5746
|
-
error: [
|
|
5747
|
-
TemplateDocumentsBootstrap401.pipe(HttpApiSchema.status(401)),
|
|
5748
|
-
TemplateDocumentsBootstrap403.pipe(HttpApiSchema.status(403)),
|
|
5749
|
-
TemplateDocumentsBootstrap404.pipe(HttpApiSchema.status(404)),
|
|
5750
|
-
TemplateDocumentsBootstrap409.pipe(HttpApiSchema.status(409)),
|
|
5751
|
-
TemplateDocumentsBootstrap422.pipe(HttpApiSchema.status(422)),
|
|
5752
|
-
TemplateDocumentsBootstrap500
|
|
5753
|
-
]
|
|
5754
|
-
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "templateDocuments.bootstrap").annotate(OpenApi.Summary, "Bootstrap a template document").annotate(OpenApi.Description, "Creates or loads the authoritative editable document for a template and returns its current snapshot.")).annotate(OpenApi.Description, "Authenticated document-authoritative template drafting and explicit Save") {};
|
|
5755
6445
|
var TemplatesGroup = class extends HttpApiGroup.make("Templates").add(HttpApiEndpoint.get("templatesList", "/v1/templates", {
|
|
5756
6446
|
query: TemplatesListQuery,
|
|
5757
6447
|
success: TemplatesList200,
|
|
@@ -5770,7 +6460,7 @@ var TemplatesGroup = class extends HttpApiGroup.make("Templates").add(HttpApiEnd
|
|
|
5770
6460
|
TemplatesCreate422.pipe(HttpApiSchema.status(422)),
|
|
5771
6461
|
TemplatesCreate500
|
|
5772
6462
|
]
|
|
5773
|
-
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "templates.create").annotate(OpenApi.Summary, "Create a template").annotate(OpenApi.Description, "Creates
|
|
6463
|
+
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "templates.create").annotate(OpenApi.Summary, "Create a template").annotate(OpenApi.Description, "Creates an email template project from Samva's canonical TSX starter and returns its template entry with status 201."), HttpApiEndpoint.get("templatesGetById", "/v1/templates/:id", {
|
|
5774
6464
|
params: TemplatesGetByIdPathParams,
|
|
5775
6465
|
success: TemplatesGetById200,
|
|
5776
6466
|
error: [
|
|
@@ -5779,7 +6469,7 @@ var TemplatesGroup = class extends HttpApiGroup.make("Templates").add(HttpApiEnd
|
|
|
5779
6469
|
TemplatesGetById404.pipe(HttpApiSchema.status(404)),
|
|
5780
6470
|
TemplatesGetById500
|
|
5781
6471
|
]
|
|
5782
|
-
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "templates.getById").annotate(OpenApi.Summary, "Get a template").annotate(OpenApi.Description, "Returns template metadata and compiled channel content.
|
|
6472
|
+
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "templates.getById").annotate(OpenApi.Summary, "Get a template").annotate(OpenApi.Description, "Returns template metadata, its project entry path, and compiled channel content. Open live project files through the workspace API."), HttpApiEndpoint.delete("templatesRemove", "/v1/templates/:id", {
|
|
5783
6473
|
params: TemplatesRemovePathParams,
|
|
5784
6474
|
success: TemplatesRemove200,
|
|
5785
6475
|
error: [
|
|
@@ -5800,17 +6490,198 @@ var TemplatesGroup = class extends HttpApiGroup.make("Templates").add(HttpApiEnd
|
|
|
5800
6490
|
TemplatesUpdate422.pipe(HttpApiSchema.status(422)),
|
|
5801
6491
|
TemplatesUpdate500
|
|
5802
6492
|
]
|
|
5803
|
-
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "templates.update").annotate(OpenApi.Summary, "Update a template").annotate(OpenApi.Description, "Updates template metadata. Source changes use the
|
|
5804
|
-
params:
|
|
5805
|
-
|
|
5806
|
-
|
|
5807
|
-
|
|
5808
|
-
|
|
5809
|
-
|
|
5810
|
-
|
|
5811
|
-
|
|
5812
|
-
|
|
5813
|
-
|
|
6493
|
+
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "templates.update").annotate(OpenApi.Summary, "Update a template").annotate(OpenApi.Description, "Updates template metadata. Source changes use the project workspace API."), HttpApiEndpoint.get("templatesListInputContracts", "/v1/templates/:id/input-contracts", {
|
|
6494
|
+
params: TemplatesListInputContractsPathParams,
|
|
6495
|
+
success: TemplatesListInputContracts200,
|
|
6496
|
+
error: [
|
|
6497
|
+
TemplatesListInputContracts401.pipe(HttpApiSchema.status(401)),
|
|
6498
|
+
TemplatesListInputContracts403.pipe(HttpApiSchema.status(403)),
|
|
6499
|
+
TemplatesListInputContracts404.pipe(HttpApiSchema.status(404)),
|
|
6500
|
+
TemplatesListInputContracts500
|
|
6501
|
+
]
|
|
6502
|
+
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "templates.listInputContracts").annotate(OpenApi.Summary, "List a template's input contracts").annotate(OpenApi.Description, "Returns every immutable input contract this template has published under, newest version first. Send against a contract to follow later publications that validate input identically."), HttpApiEndpoint.get("templatesGetInputContract", "/v1/templates/:id/input-contracts/:inputContractId", {
|
|
6503
|
+
params: TemplatesGetInputContractPathParams,
|
|
6504
|
+
success: TemplatesGetInputContract200,
|
|
6505
|
+
error: [
|
|
6506
|
+
TemplatesGetInputContract401.pipe(HttpApiSchema.status(401)),
|
|
6507
|
+
TemplatesGetInputContract403.pipe(HttpApiSchema.status(403)),
|
|
6508
|
+
TemplatesGetInputContract404.pipe(HttpApiSchema.status(404)),
|
|
6509
|
+
TemplatesGetInputContract500
|
|
6510
|
+
]
|
|
6511
|
+
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "templates.getInputContract").annotate(OpenApi.Summary, "Get a template input contract").annotate(OpenApi.Description, "Returns one immutable input contract and the published schema it validates against."), HttpApiEndpoint.post("templatesPublish", "/v1/templates/:id/publications", {
|
|
6512
|
+
params: TemplatesPublishPathParams,
|
|
6513
|
+
payload: TemplatesPublishRequestJson,
|
|
6514
|
+
success: TemplatesPublish201.pipe(HttpApiSchema.status(201)),
|
|
6515
|
+
error: [
|
|
6516
|
+
TemplatesPublish401.pipe(HttpApiSchema.status(401)),
|
|
6517
|
+
TemplatesPublish403.pipe(HttpApiSchema.status(403)),
|
|
6518
|
+
TemplatesPublish404.pipe(HttpApiSchema.status(404)),
|
|
6519
|
+
TemplatesPublish409.pipe(HttpApiSchema.status(409)),
|
|
6520
|
+
TemplatesPublish422.pipe(HttpApiSchema.status(422)),
|
|
6521
|
+
TemplatesPublish500
|
|
6522
|
+
]
|
|
6523
|
+
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "templates.publish").annotate(OpenApi.Summary, "Publish an exact template commit").annotate(OpenApi.Description, "Builds an exact Git commit and entry path, stores the immutable executable and its assets, records the input contract it validates against, and makes that publication current."), HttpApiEndpoint.get("templatesGetPublication", "/v1/templates/:id/publications/:publicationId", {
|
|
6524
|
+
params: TemplatesGetPublicationPathParams,
|
|
6525
|
+
success: TemplatesGetPublication200,
|
|
6526
|
+
error: [
|
|
6527
|
+
TemplatesGetPublication401.pipe(HttpApiSchema.status(401)),
|
|
6528
|
+
TemplatesGetPublication403.pipe(HttpApiSchema.status(403)),
|
|
6529
|
+
TemplatesGetPublication404.pipe(HttpApiSchema.status(404)),
|
|
6530
|
+
TemplatesGetPublication500
|
|
6531
|
+
]
|
|
6532
|
+
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "templates.getPublication").annotate(OpenApi.Summary, "Get a template publication").annotate(OpenApi.Description, "Returns one immutable publication and its exact build receipt."), HttpApiEndpoint.get("templatesGetGitRepository", "/v1/templates/:id/repository", {
|
|
6533
|
+
params: TemplatesGetGitRepositoryPathParams,
|
|
6534
|
+
success: TemplatesGetGitRepository200,
|
|
6535
|
+
error: [
|
|
6536
|
+
TemplatesGetGitRepository401.pipe(HttpApiSchema.status(401)),
|
|
6537
|
+
TemplatesGetGitRepository403.pipe(HttpApiSchema.status(403)),
|
|
6538
|
+
TemplatesGetGitRepository404.pipe(HttpApiSchema.status(404)),
|
|
6539
|
+
TemplatesGetGitRepository409.pipe(HttpApiSchema.status(409)),
|
|
6540
|
+
TemplatesGetGitRepository500
|
|
6541
|
+
]
|
|
6542
|
+
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "templates.getGitRepository").annotate(OpenApi.Summary, "Get a template project Git repository").annotate(OpenApi.Description, "Returns the credential-free HTTPS remote and default branch for the template project repository."), HttpApiEndpoint.post("templatesIssueGitCredential", "/v1/templates/:id/repository/credentials", {
|
|
6543
|
+
params: TemplatesIssueGitCredentialPathParams,
|
|
6544
|
+
payload: TemplatesIssueGitCredentialRequestJson,
|
|
6545
|
+
success: TemplatesIssueGitCredential200,
|
|
6546
|
+
error: [
|
|
6547
|
+
TemplatesIssueGitCredential401.pipe(HttpApiSchema.status(401)),
|
|
6548
|
+
TemplatesIssueGitCredential403.pipe(HttpApiSchema.status(403)),
|
|
6549
|
+
TemplatesIssueGitCredential404.pipe(HttpApiSchema.status(404)),
|
|
6550
|
+
TemplatesIssueGitCredential409.pipe(HttpApiSchema.status(409)),
|
|
6551
|
+
TemplatesIssueGitCredential500
|
|
6552
|
+
]
|
|
6553
|
+
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "templates.issueGitCredential").annotate(OpenApi.Summary, "Issue a template project Git credential").annotate(OpenApi.Description, "Exchanges the caller's Samva authorization for a one-hour, repository-scoped Artifact Git credential."), HttpApiEndpoint.post("templatesOpenWorkspace", "/v1/templates/:id/workspace", {
|
|
6554
|
+
params: TemplatesOpenWorkspacePathParams,
|
|
6555
|
+
success: TemplatesOpenWorkspace200,
|
|
6556
|
+
error: [
|
|
6557
|
+
TemplatesOpenWorkspace401.pipe(HttpApiSchema.status(401)),
|
|
6558
|
+
TemplatesOpenWorkspace403.pipe(HttpApiSchema.status(403)),
|
|
6559
|
+
TemplatesOpenWorkspace404.pipe(HttpApiSchema.status(404)),
|
|
6560
|
+
TemplatesOpenWorkspace409.pipe(HttpApiSchema.status(409)),
|
|
6561
|
+
TemplatesOpenWorkspace500
|
|
6562
|
+
]
|
|
6563
|
+
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "templates.openWorkspace").annotate(OpenApi.Summary, "Open a template project workspace").annotate(OpenApi.Description, "Creates or opens the shared project workspace at the current Artifact branch head and returns its effective files."), HttpApiEndpoint.patch("templatesPatchWorkspace", "/v1/templates/:id/workspace", {
|
|
6564
|
+
params: TemplatesPatchWorkspacePathParams,
|
|
6565
|
+
payload: TemplatesPatchWorkspaceRequestJson,
|
|
6566
|
+
success: TemplatesPatchWorkspace200,
|
|
6567
|
+
error: [
|
|
6568
|
+
TemplatesPatchWorkspace401.pipe(HttpApiSchema.status(401)),
|
|
6569
|
+
TemplatesPatchWorkspace403.pipe(HttpApiSchema.status(403)),
|
|
6570
|
+
TemplatesPatchWorkspace404.pipe(HttpApiSchema.status(404)),
|
|
6571
|
+
TemplatesPatchWorkspace409.pipe(HttpApiSchema.status(409)),
|
|
6572
|
+
TemplatesPatchWorkspace500
|
|
6573
|
+
]
|
|
6574
|
+
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "templates.patchWorkspace").annotate(OpenApi.Summary, "Patch template project files").annotate(OpenApi.Description, "Applies revision-checked file patches to the shared project workspace overlay."), HttpApiEndpoint.post("templatesCheckWorkspace", "/v1/templates/:id/workspace/check", {
|
|
6575
|
+
params: TemplatesCheckWorkspacePathParams,
|
|
6576
|
+
payload: TemplatesCheckWorkspaceRequestJson,
|
|
6577
|
+
success: TemplatesCheckWorkspace200,
|
|
6578
|
+
error: [
|
|
6579
|
+
TemplatesCheckWorkspace401.pipe(HttpApiSchema.status(401)),
|
|
6580
|
+
TemplatesCheckWorkspace403.pipe(HttpApiSchema.status(403)),
|
|
6581
|
+
TemplatesCheckWorkspace404.pipe(HttpApiSchema.status(404)),
|
|
6582
|
+
TemplatesCheckWorkspace409.pipe(HttpApiSchema.status(409)),
|
|
6583
|
+
TemplatesCheckWorkspace500
|
|
6584
|
+
]
|
|
6585
|
+
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "templates.checkWorkspace").annotate(OpenApi.Summary, "Check a template project workspace").annotate(OpenApi.Description, "Builds the template entry from the current effective workspace tree, including unsaved file patches, and returns what the template declares plus every compile and target-client finding. Nothing is written and no message is rendered."), HttpApiEndpoint.post("templatesResolveWorkspaceConflict", "/v1/templates/:id/workspace/conflicts", {
|
|
6586
|
+
params: TemplatesResolveWorkspaceConflictPathParams,
|
|
6587
|
+
payload: TemplatesResolveWorkspaceConflictRequestJson,
|
|
6588
|
+
success: TemplatesResolveWorkspaceConflict200,
|
|
6589
|
+
error: [
|
|
6590
|
+
TemplatesResolveWorkspaceConflict401.pipe(HttpApiSchema.status(401)),
|
|
6591
|
+
TemplatesResolveWorkspaceConflict403.pipe(HttpApiSchema.status(403)),
|
|
6592
|
+
TemplatesResolveWorkspaceConflict404.pipe(HttpApiSchema.status(404)),
|
|
6593
|
+
TemplatesResolveWorkspaceConflict409.pipe(HttpApiSchema.status(409)),
|
|
6594
|
+
TemplatesResolveWorkspaceConflict500
|
|
6595
|
+
]
|
|
6596
|
+
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "templates.resolveWorkspaceConflict").annotate(OpenApi.Summary, "Resolve a template workspace conflict").annotate(OpenApi.Description, "Resolves one conflicted file by keeping the draft, using main, or supplying edited source."), HttpApiEndpoint.post("templatesDiffWorkspace", "/v1/templates/:id/workspace/diff", {
|
|
6597
|
+
params: TemplatesDiffWorkspacePathParams,
|
|
6598
|
+
payload: TemplatesDiffWorkspaceRequestJson,
|
|
6599
|
+
success: TemplatesDiffWorkspace200,
|
|
6600
|
+
error: [
|
|
6601
|
+
TemplatesDiffWorkspace401.pipe(HttpApiSchema.status(401)),
|
|
6602
|
+
TemplatesDiffWorkspace403.pipe(HttpApiSchema.status(403)),
|
|
6603
|
+
TemplatesDiffWorkspace404.pipe(HttpApiSchema.status(404)),
|
|
6604
|
+
TemplatesDiffWorkspace409.pipe(HttpApiSchema.status(409)),
|
|
6605
|
+
TemplatesDiffWorkspace500
|
|
6606
|
+
]
|
|
6607
|
+
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "templates.diffWorkspace").annotate(OpenApi.Summary, "Diff a template project workspace").annotate(OpenApi.Description, "Returns exact added, modified, and deleted project files against the current Git base commit."), HttpApiEndpoint.post("templatesRenderWorkspaceFixture", "/v1/templates/:id/workspace/fixtures", {
|
|
6608
|
+
params: TemplatesRenderWorkspaceFixturePathParams,
|
|
6609
|
+
payload: TemplatesRenderWorkspaceFixtureRequestJson,
|
|
6610
|
+
success: TemplatesRenderWorkspaceFixture200,
|
|
6611
|
+
error: [
|
|
6612
|
+
TemplatesRenderWorkspaceFixture401.pipe(HttpApiSchema.status(401)),
|
|
6613
|
+
TemplatesRenderWorkspaceFixture403.pipe(HttpApiSchema.status(403)),
|
|
6614
|
+
TemplatesRenderWorkspaceFixture404.pipe(HttpApiSchema.status(404)),
|
|
6615
|
+
TemplatesRenderWorkspaceFixture409.pipe(HttpApiSchema.status(409)),
|
|
6616
|
+
TemplatesRenderWorkspaceFixture500
|
|
6617
|
+
]
|
|
6618
|
+
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "templates.renderWorkspaceFixture").annotate(OpenApi.Summary, "Render a declared template workspace fixture").annotate(OpenApi.Description, "Renders one of the named inputs the template declares against the current effective workspace tree. Only declared fixtures render here; arbitrary input renders against a publication."), HttpApiEndpoint.get("templatesWorkspaceHistory", "/v1/templates/:id/workspace/history", {
|
|
6619
|
+
params: TemplatesWorkspaceHistoryPathParams,
|
|
6620
|
+
query: TemplatesWorkspaceHistoryQuery,
|
|
6621
|
+
success: TemplatesWorkspaceHistory200,
|
|
6622
|
+
error: [
|
|
6623
|
+
TemplatesWorkspaceHistory401.pipe(HttpApiSchema.status(401)),
|
|
6624
|
+
TemplatesWorkspaceHistory403.pipe(HttpApiSchema.status(403)),
|
|
6625
|
+
TemplatesWorkspaceHistory404.pipe(HttpApiSchema.status(404)),
|
|
6626
|
+
TemplatesWorkspaceHistory409.pipe(HttpApiSchema.status(409)),
|
|
6627
|
+
TemplatesWorkspaceHistory500
|
|
6628
|
+
]
|
|
6629
|
+
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "templates.workspaceHistory").annotate(OpenApi.Summary, "List template project commit history").annotate(OpenApi.Description, "Returns bounded history from the Artifact repository default branch."), HttpApiEndpoint.post("templatesReconcileWorkspace", "/v1/templates/:id/workspace/reconcile", {
|
|
6630
|
+
params: TemplatesReconcileWorkspacePathParams,
|
|
6631
|
+
payload: TemplatesReconcileWorkspaceRequestJson,
|
|
6632
|
+
success: TemplatesReconcileWorkspace200,
|
|
6633
|
+
error: [
|
|
6634
|
+
TemplatesReconcileWorkspace401.pipe(HttpApiSchema.status(401)),
|
|
6635
|
+
TemplatesReconcileWorkspace403.pipe(HttpApiSchema.status(403)),
|
|
6636
|
+
TemplatesReconcileWorkspace404.pipe(HttpApiSchema.status(404)),
|
|
6637
|
+
TemplatesReconcileWorkspace409.pipe(HttpApiSchema.status(409)),
|
|
6638
|
+
TemplatesReconcileWorkspace500
|
|
6639
|
+
]
|
|
6640
|
+
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "templates.reconcileWorkspace").annotate(OpenApi.Summary, "Reconcile a template project workspace").annotate(OpenApi.Description, "Fast-forwards or rebases the workspace onto the current Artifact branch head, retaining file conflicts for explicit resolution."), HttpApiEndpoint.post("templatesAttachWorkspaceResource", "/v1/templates/:id/workspace/resources", {
|
|
6641
|
+
params: TemplatesAttachWorkspaceResourcePathParams,
|
|
6642
|
+
payload: TemplatesAttachWorkspaceResourceRequestJson,
|
|
6643
|
+
success: TemplatesAttachWorkspaceResource200,
|
|
6644
|
+
error: [
|
|
6645
|
+
TemplatesAttachWorkspaceResource401.pipe(HttpApiSchema.status(401)),
|
|
6646
|
+
TemplatesAttachWorkspaceResource403.pipe(HttpApiSchema.status(403)),
|
|
6647
|
+
TemplatesAttachWorkspaceResource404.pipe(HttpApiSchema.status(404)),
|
|
6648
|
+
TemplatesAttachWorkspaceResource409.pipe(HttpApiSchema.status(409)),
|
|
6649
|
+
TemplatesAttachWorkspaceResource500
|
|
6650
|
+
]
|
|
6651
|
+
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "templates.attachWorkspaceResource").annotate(OpenApi.Summary, "Attach a template workspace resource").annotate(OpenApi.Description, "Adds or replaces one bounded persistent read-only resource and advances the workspace revision."), HttpApiEndpoint.post("templatesRemoveWorkspaceResource", "/v1/templates/:id/workspace/resources/:resourceId/remove", {
|
|
6652
|
+
params: TemplatesRemoveWorkspaceResourcePathParams,
|
|
6653
|
+
payload: TemplatesRemoveWorkspaceResourceRequestJson,
|
|
6654
|
+
success: TemplatesRemoveWorkspaceResource200,
|
|
6655
|
+
error: [
|
|
6656
|
+
TemplatesRemoveWorkspaceResource401.pipe(HttpApiSchema.status(401)),
|
|
6657
|
+
TemplatesRemoveWorkspaceResource403.pipe(HttpApiSchema.status(403)),
|
|
6658
|
+
TemplatesRemoveWorkspaceResource404.pipe(HttpApiSchema.status(404)),
|
|
6659
|
+
TemplatesRemoveWorkspaceResource409.pipe(HttpApiSchema.status(409)),
|
|
6660
|
+
TemplatesRemoveWorkspaceResource500
|
|
6661
|
+
]
|
|
6662
|
+
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "templates.removeWorkspaceResource").annotate(OpenApi.Summary, "Remove a template workspace resource").annotate(OpenApi.Description, "Removes one persistent resource from mounted context and advances the workspace revision."), HttpApiEndpoint.post("templatesRestoreWorkspace", "/v1/templates/:id/workspace/restore", {
|
|
6663
|
+
params: TemplatesRestoreWorkspacePathParams,
|
|
6664
|
+
payload: TemplatesRestoreWorkspaceRequestJson,
|
|
6665
|
+
success: TemplatesRestoreWorkspace200,
|
|
6666
|
+
error: [
|
|
6667
|
+
TemplatesRestoreWorkspace401.pipe(HttpApiSchema.status(401)),
|
|
6668
|
+
TemplatesRestoreWorkspace403.pipe(HttpApiSchema.status(403)),
|
|
6669
|
+
TemplatesRestoreWorkspace404.pipe(HttpApiSchema.status(404)),
|
|
6670
|
+
TemplatesRestoreWorkspace409.pipe(HttpApiSchema.status(409)),
|
|
6671
|
+
TemplatesRestoreWorkspace500
|
|
6672
|
+
]
|
|
6673
|
+
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "templates.restoreWorkspace").annotate(OpenApi.Summary, "Stage a historical template project tree").annotate(OpenApi.Description, "Builds the template entry before atomically staging a reachable historical commit and its emitted source; a later Save appends a new commit without rewriting branch history."), HttpApiEndpoint.post("templatesSaveWorkspace", "/v1/templates/:id/workspace/save", {
|
|
6674
|
+
params: TemplatesSaveWorkspacePathParams,
|
|
6675
|
+
payload: TemplatesSaveWorkspaceRequestJson,
|
|
6676
|
+
success: TemplatesSaveWorkspace200,
|
|
6677
|
+
error: [
|
|
6678
|
+
TemplatesSaveWorkspace401.pipe(HttpApiSchema.status(401)),
|
|
6679
|
+
TemplatesSaveWorkspace403.pipe(HttpApiSchema.status(403)),
|
|
6680
|
+
TemplatesSaveWorkspace404.pipe(HttpApiSchema.status(404)),
|
|
6681
|
+
TemplatesSaveWorkspace409.pipe(HttpApiSchema.status(409)),
|
|
6682
|
+
TemplatesSaveWorkspace500
|
|
6683
|
+
]
|
|
6684
|
+
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "templates.saveWorkspace").annotate(OpenApi.Summary, "Save a template project workspace").annotate(OpenApi.Description, "Validates the effective project tree and creates one normal Git commit on the Artifact default branch."), HttpApiEndpoint.get("templatesListDashboard", "/v1/templates/dashboard", {
|
|
5814
6685
|
query: TemplatesListDashboardQuery,
|
|
5815
6686
|
success: TemplatesListDashboard200,
|
|
5816
6687
|
error: [
|
|
@@ -5864,18 +6735,7 @@ var TemplatesGroup = class extends HttpApiGroup.make("Templates").add(HttpApiEnd
|
|
|
5864
6735
|
TemplatesRenameFamily422.pipe(HttpApiSchema.status(422)),
|
|
5865
6736
|
TemplatesRenameFamily500
|
|
5866
6737
|
]
|
|
5867
|
-
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "templates.renameFamily").annotate(OpenApi.Summary, "Rename a template family").annotate(OpenApi.Description, "Changes a template family's name and returns the updated family."), HttpApiEndpoint.post("
|
|
5868
|
-
params: TemplatesAddFamilyChannelPathParams,
|
|
5869
|
-
success: TemplatesAddFamilyChannel201.pipe(HttpApiSchema.status(201)),
|
|
5870
|
-
error: [
|
|
5871
|
-
TemplatesAddFamilyChannel401.pipe(HttpApiSchema.status(401)),
|
|
5872
|
-
TemplatesAddFamilyChannel403.pipe(HttpApiSchema.status(403)),
|
|
5873
|
-
TemplatesAddFamilyChannel404.pipe(HttpApiSchema.status(404)),
|
|
5874
|
-
TemplatesAddFamilyChannel409.pipe(HttpApiSchema.status(409)),
|
|
5875
|
-
TemplatesAddFamilyChannel422.pipe(HttpApiSchema.status(422)),
|
|
5876
|
-
TemplatesAddFamilyChannel500
|
|
5877
|
-
]
|
|
5878
|
-
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "templates.addFamilyChannel").annotate(OpenApi.Summary, "Add a channel to a template family").annotate(OpenApi.Description, "Creates a template for the requested channel in the family and returns the updated family with status 201."), HttpApiEndpoint.post("templatesAttachFamilyMember", "/v1/templates/families/:familyId/members/:templateId", {
|
|
6738
|
+
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "templates.renameFamily").annotate(OpenApi.Summary, "Rename a template family").annotate(OpenApi.Description, "Changes a template family's name and returns the updated family."), HttpApiEndpoint.post("templatesAttachFamilyMember", "/v1/templates/families/:familyId/members/:templateId", {
|
|
5879
6739
|
params: TemplatesAttachFamilyMemberPathParams,
|
|
5880
6740
|
success: TemplatesAttachFamilyMember200,
|
|
5881
6741
|
error: [
|
|
@@ -5908,7 +6768,7 @@ var TemplatesGroup = class extends HttpApiGroup.make("Templates").add(HttpApiEnd
|
|
|
5908
6768
|
TemplatesCreateFamilyFromTemplate422.pipe(HttpApiSchema.status(422)),
|
|
5909
6769
|
TemplatesCreateFamilyFromTemplate500
|
|
5910
6770
|
]
|
|
5911
|
-
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "templates.createFamilyFromTemplate").annotate(OpenApi.Summary, "Create a family from a template").annotate(OpenApi.Description, "Creates a template family containing the specified template and returns the new family with status 201.")).annotate(OpenApi.Description, "
|
|
6771
|
+
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "templates.createFamilyFromTemplate").annotate(OpenApi.Summary, "Create a family from a template").annotate(OpenApi.Description, "Creates a template family containing the specified template and returns the new family with status 201.")).annotate(OpenApi.Description, "Git-backed email template projects, workspace editing, immutable publications, and delivery defaults") {};
|
|
5912
6772
|
var WebhooksGroup = class extends HttpApiGroup.make("Webhooks").add(HttpApiEndpoint.get("webhooksList", "/v1/webhooks", {
|
|
5913
6773
|
query: WebhooksListQuery,
|
|
5914
6774
|
success: WebhooksList200,
|
|
@@ -5929,7 +6789,7 @@ var WebhooksGroup = class extends HttpApiGroup.make("Webhooks").add(HttpApiEndpo
|
|
|
5929
6789
|
WebhooksCreate500,
|
|
5930
6790
|
WebhooksCreate502.pipe(HttpApiSchema.status(502))
|
|
5931
6791
|
]
|
|
5932
|
-
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "webhooks.create").annotate(OpenApi.Summary, "Create a webhook").annotate(OpenApi.Description, "Creates a webhook endpoint
|
|
6792
|
+
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "webhooks.create").annotate(OpenApi.Summary, "Create a webhook").annotate(OpenApi.Description, "Creates a signed webhook endpoint for Samva delivery and inbound events, stores subscriptions, and returns the endpoint and signing secret with a 201 response."), HttpApiEndpoint.get("webhooksGet", "/v1/webhooks/:id", {
|
|
5933
6793
|
params: WebhooksGetPathParams,
|
|
5934
6794
|
success: WebhooksGet200,
|
|
5935
6795
|
error: [
|
|
@@ -6010,7 +6870,7 @@ var WebhooksGroup = class extends HttpApiGroup.make("Webhooks").add(HttpApiEndpo
|
|
|
6010
6870
|
WebhooksGetStats500
|
|
6011
6871
|
]
|
|
6012
6872
|
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "webhooks.getStats").annotate(OpenApi.Summary, "Get webhook delivery statistics").annotate(OpenApi.Description, "Returns aggregate pending, delivered, exhausted, and cancelled delivery counts for a webhook endpoint.")).annotate(OpenApi.Description, "Customer event webhook management, testing, and delivery logs") {};
|
|
6013
|
-
var SamvaApi = class extends HttpApi.make("SamvaApi").annotate(OpenApi.Title, "Samva SDK").annotate(OpenApi.Version, "1.0.0").annotate(OpenApi.Description, "Samva email API for programmatic email delivery").add(APIKeysGroup, CampaignsGroup, ContactsGroup, ConversationsGroup, DesignGroup, EmailGroup, MediaGroup, MessagesGroup, ScheduledMessagesGroup, OperationsGroup, OrganizationsGroup,
|
|
6873
|
+
var SamvaApi = class extends HttpApi.make("SamvaApi").annotate(OpenApi.Title, "Samva SDK").annotate(OpenApi.Version, "1.0.0").annotate(OpenApi.Description, "Samva email API for programmatic email delivery").add(APIKeysGroup, CampaignsGroup, ContactsGroup, ConversationsGroup, DesignGroup, EmailGroup, MediaGroup, MessagesGroup, ScheduledMessagesGroup, OperationsGroup, OrganizationsGroup, TemplatesGroup, WebhooksGroup) {};
|
|
6014
6874
|
//#endregion
|
|
6015
6875
|
//#region src/effect/internal/client.ts
|
|
6016
6876
|
const DEFAULT_BASE_URL = "https://api.samva.dev";
|
|
@@ -6023,11 +6883,13 @@ const flatten = (nested) => {
|
|
|
6023
6883
|
};
|
|
6024
6884
|
const AuthorizationClient = HttpApiMiddleware.layerClient(ApiKeySecurityMiddleware, ({ next, request }) => next(request));
|
|
6025
6885
|
const make = (config) => Effect.gen(function* () {
|
|
6026
|
-
const
|
|
6027
|
-
|
|
6028
|
-
|
|
6029
|
-
|
|
6030
|
-
|
|
6886
|
+
const removesAttribution = Object.entries(config.headers ?? {}).some(([name, value]) => name.toLowerCase() === "x-samva-client" && value === void 0);
|
|
6887
|
+
const transformClient = (client) => client.pipe(HttpClient.mapRequest((request) => {
|
|
6888
|
+
let attributed = HttpClientRequest.setHeader(request, CLIENT_ATTRIBUTION_HEADER, clientAttribution("typescript-effect"));
|
|
6889
|
+
if (config.headers !== void 0) attributed = HttpClientRequest.setHeaders(attributed, config.headers);
|
|
6890
|
+
if (removesAttribution) attributed = HttpClientRequest.removeHeader(attributed, CLIENT_ATTRIBUTION_HEADER);
|
|
6891
|
+
return HttpClientRequest.setHeaders(attributed, authHeaders(config));
|
|
6892
|
+
}));
|
|
6031
6893
|
const raw = yield* HttpApiClient.make(SamvaApi, {
|
|
6032
6894
|
baseUrl: config.baseUrl ?? DEFAULT_BASE_URL,
|
|
6033
6895
|
transformClient
|
|
@@ -6044,4 +6906,4 @@ const raw = Effect.map(Service, (client) => client.raw);
|
|
|
6044
6906
|
//#endregion
|
|
6045
6907
|
export { ValidationError as C, UpdateWebhookPayload as S, SamvaApi as _, BillingProviderError as a, UnauthorizedError as b, CreateWebhookPayload as c, FlagDisabledError as d, ForbiddenError as f, ResourceNotFoundError as g, RateLimitedError as h, raw as i, EmailChannelError as l, PaymentRequiredError as m, layer as n, ConflictError as o, InternalError as p, layerFetch as r, CreateTemplatePayload as s, Service as t, ExternalServiceError as u, TestWebhookPayload as v, WebhookEnqueueError as w, UpdateTemplatePayload as x, TrackingRecipientEmail as y };
|
|
6046
6908
|
|
|
6047
|
-
//# sourceMappingURL=client-
|
|
6909
|
+
//# sourceMappingURL=client-BmZK_uCt.js.map
|