@storm-software/untyped 0.17.65 → 0.19.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -1
- package/bin/untyped.cjs +692 -1868
- package/bin/untyped.js +692 -1868
- package/dist/{chunk-K2TRPET7.cjs → chunk-5XLEQJ4J.cjs} +6 -6
- package/dist/{chunk-HQRRC4DR.cjs → chunk-7K3VMZVI.cjs} +6 -6
- package/dist/{chunk-B3SBTFSK.cjs → chunk-CW4UECI4.cjs} +17 -17
- package/dist/{chunk-7H4KIMGB.cjs → chunk-FFODXXPT.cjs} +32 -32
- package/dist/{chunk-EEZPZQNQ.cjs → chunk-GG2O4NRE.cjs} +6 -6
- package/dist/chunk-HX2ROPL3.cjs +6 -0
- package/dist/{chunk-MLHTUQU5.js → chunk-LNRGRS4E.js} +2 -2
- package/dist/{chunk-JZD5LN5C.js → chunk-OUWIE4A7.js} +2 -2
- package/dist/{chunk-RQXUVKHI.js → chunk-QZUPTLSW.js} +1 -1
- package/dist/{chunk-3XIDXNKZ.js → chunk-TGOO4PRQ.js} +5 -5
- package/dist/{chunk-6PO7BCDK.js → chunk-TLYO5CAQ.js} +2 -2
- package/dist/{chunk-XCT3C43G.cjs → chunk-TZGBZ6IT.cjs} +2 -2
- package/dist/{chunk-H2WBG33W.js → chunk-UZQGWG2S.js} +2 -2
- package/dist/{chunk-EJT6HIQU.js → chunk-WV72GQLO.js} +1 -1
- package/dist/generate.cjs +7 -7
- package/dist/generate.d.cts +2 -1
- package/dist/generate.d.ts +2 -1
- package/dist/generate.js +6 -6
- package/dist/index.cjs +9 -9
- package/dist/index.d.cts +2 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.js +7 -7
- package/dist/types-HghpYdGB.d.cts +226 -0
- package/dist/types-HghpYdGB.d.ts +226 -0
- package/dist/utilities.cjs +2 -2
- package/dist/utilities.js +1 -1
- package/package.json +2 -2
- package/dist/chunk-V65B7UMY.cjs +0 -6
- package/dist/types-CSpWhPZ7.d.cts +0 -218
- package/dist/types-CSpWhPZ7.d.ts +0 -218
package/bin/untyped.cjs
CHANGED
|
@@ -32,10 +32,10 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
32
32
|
mod
|
|
33
33
|
));
|
|
34
34
|
|
|
35
|
-
// ../../node_modules/.pnpm/tsup@8.4.0_patch_hash=
|
|
35
|
+
// ../../node_modules/.pnpm/tsup@8.4.0_patch_hash=751a554d775c3572381af4e7e5fa22eeda6dd6856012fb1cf521d6806eb2dc74__9f338f09b188b30c350deaf9c9e2a8e5/node_modules/tsup/assets/cjs_shims.js
|
|
36
36
|
var getImportMetaUrl, importMetaUrl;
|
|
37
37
|
var init_cjs_shims = __esm({
|
|
38
|
-
"../../node_modules/.pnpm/tsup@8.4.0_patch_hash=
|
|
38
|
+
"../../node_modules/.pnpm/tsup@8.4.0_patch_hash=751a554d775c3572381af4e7e5fa22eeda6dd6856012fb1cf521d6806eb2dc74__9f338f09b188b30c350deaf9c9e2a8e5/node_modules/tsup/assets/cjs_shims.js"() {
|
|
39
39
|
getImportMetaUrl = () => typeof document === "undefined" ? new URL(`file:${__filename}`).href : document.currentScript && document.currentScript.src || new URL("main.js", document.baseURI).href;
|
|
40
40
|
importMetaUrl = /* @__PURE__ */ getImportMetaUrl();
|
|
41
41
|
}
|
|
@@ -3179,7 +3179,7 @@ Default "index" lookups for the main are deprecated for ES modules.`, "Deprecati
|
|
|
3179
3179
|
debug2(ctx, "Error creating cache directory at ", ctx.opts.fsCache, error), ctx.opts.fsCache = false;
|
|
3180
3180
|
}
|
|
3181
3181
|
}
|
|
3182
|
-
function
|
|
3182
|
+
function transform2(ctx, topts) {
|
|
3183
3183
|
let code = getCache(ctx, topts, () => {
|
|
3184
3184
|
const res = ctx.opts.transform({ ...ctx.opts.transformOptions, babel: { ...ctx.opts.sourceMaps ? { sourceFileName: topts.filename, sourceMaps: "inline" } : {}, ...ctx.opts.transformOptions?.babel }, interopDefault: ctx.opts.interopDefault, ...topts });
|
|
3185
3185
|
return res.error && ctx.opts.debug && debug2(ctx, res.error), res.code;
|
|
@@ -3202,15 +3202,15 @@ Default "index" lookups for the main are deprecated for ES modules.`, "Deprecati
|
|
|
3202
3202
|
}
|
|
3203
3203
|
}(filename)?.type, isCommonJS = ".cjs" === ext, needsTranspile = evalOptions.forceTranspile ?? (!isCommonJS && !(isESM && evalOptions.async) && (isTypescript || isESM || ctx.isTransformRe.test(filename) || hasESMSyntax(source))), start = external_node_perf_hooks_namespaceObject.performance.now();
|
|
3204
3204
|
if (needsTranspile) {
|
|
3205
|
-
source =
|
|
3206
|
-
const
|
|
3207
|
-
debug2(ctx, "[transpile]", evalOptions.async ? "[esm]" : "[cjs]", filename, `(${
|
|
3205
|
+
source = transform2(ctx, { filename, source, ts: isTypescript, async: evalOptions.async ?? false, jsx: ctx.opts.jsx });
|
|
3206
|
+
const time2 = Math.round(1e3 * (external_node_perf_hooks_namespaceObject.performance.now() - start)) / 1e3;
|
|
3207
|
+
debug2(ctx, "[transpile]", evalOptions.async ? "[esm]" : "[cjs]", filename, `(${time2}ms)`);
|
|
3208
3208
|
} else {
|
|
3209
3209
|
if (debug2(ctx, "[native]", evalOptions.async ? "[import]" : "[require]", filename), evalOptions.async) return Promise.resolve(nativeImportOrRequire(ctx, filename, evalOptions.async)).catch((error) => (debug2(ctx, "Native import error:", error), debug2(ctx, "[fallback]", filename), eval_evalModule(ctx, source, { ...evalOptions, forceTranspile: true })));
|
|
3210
3210
|
try {
|
|
3211
3211
|
return nativeImportOrRequire(ctx, filename, evalOptions.async);
|
|
3212
3212
|
} catch (error) {
|
|
3213
|
-
debug2(ctx, "Native require error:", error), debug2(ctx, "[fallback]", filename), source =
|
|
3213
|
+
debug2(ctx, "Native require error:", error), debug2(ctx, "[fallback]", filename), source = transform2(ctx, { filename, source, ts: isTypescript, async: evalOptions.async ?? false, jsx: ctx.opts.jsx });
|
|
3214
3214
|
}
|
|
3215
3215
|
}
|
|
3216
3216
|
const mod = new external_node_module_namespaceObject.Module(filename);
|
|
@@ -3262,7 +3262,7 @@ Default "index" lookups for the main are deprecated for ES modules.`, "Deprecati
|
|
|
3262
3262
|
return jitiRequire(ctx, id, { async: false });
|
|
3263
3263
|
}, { cache: opts.moduleCache ? nativeRequire.cache : /* @__PURE__ */ Object.create(null), extensions: nativeRequire.extensions, main: nativeRequire.main, options: opts, resolve: Object.assign(function(path2) {
|
|
3264
3264
|
return jitiResolve(ctx, path2, { async: false });
|
|
3265
|
-
}, { paths: nativeRequire.resolve.paths }), transform: (opts2) =>
|
|
3265
|
+
}, { paths: nativeRequire.resolve.paths }), transform: (opts2) => transform2(ctx, opts2), evalModule: (source, options) => eval_evalModule(ctx, source, options), async import(id, opts2) {
|
|
3266
3266
|
const mod = await jitiRequire(ctx, id, { ...opts2, async: true });
|
|
3267
3267
|
return opts2?.default ? mod?.default ?? mod : mod;
|
|
3268
3268
|
}, esmResolve(id, opts2) {
|
|
@@ -3614,11 +3614,11 @@ Did you specify these with the most recent transformation maps first?`);
|
|
|
3614
3614
|
intToChar[i2] = c2, charToInt[c2] = i2;
|
|
3615
3615
|
}
|
|
3616
3616
|
function decodeInteger(reader, relative2) {
|
|
3617
|
-
let value2 = 0, shift = 0,
|
|
3617
|
+
let value2 = 0, shift = 0, integer = 0;
|
|
3618
3618
|
do {
|
|
3619
3619
|
const c2 = reader.next();
|
|
3620
|
-
|
|
3621
|
-
} while (32 &
|
|
3620
|
+
integer = charToInt[c2], value2 |= (31 & integer) << shift, shift += 5;
|
|
3621
|
+
} while (32 & integer);
|
|
3622
3622
|
const shouldNegate = 1 & value2;
|
|
3623
3623
|
return value2 >>>= 1, shouldNegate && (value2 = -2147483648 | -value2), relative2 + value2;
|
|
3624
3624
|
}
|
|
@@ -4633,9 +4633,9 @@ Did you specify these with the most recent transformation maps first?`);
|
|
|
4633
4633
|
"use strict";
|
|
4634
4634
|
const object2 = {}, hasOwnProperty4 = object2.hasOwnProperty, forOwn = (object3, callback) => {
|
|
4635
4635
|
for (const key in object3) hasOwnProperty4.call(object3, key) && callback(key, object3[key]);
|
|
4636
|
-
}, fourHexEscape = (hex) => "\\u" + ("0000" + hex).slice(-4), hexadecimal = (code,
|
|
4636
|
+
}, fourHexEscape = (hex) => "\\u" + ("0000" + hex).slice(-4), hexadecimal = (code, lowercase) => {
|
|
4637
4637
|
let hexadecimal2 = code.toString(16);
|
|
4638
|
-
return
|
|
4638
|
+
return lowercase ? hexadecimal2 : hexadecimal2.toUpperCase();
|
|
4639
4639
|
}, toString2 = object2.toString, isArray2 = Array.isArray, isBigInt = (value2) => "bigint" == typeof value2, singleEscapes = { "\\": "\\\\", "\b": "\\b", "\f": "\\f", "\n": "\\n", "\r": "\\r", " ": "\\t" }, regexSingleEscape = /[\\\b\f\n\r\t]/, regexDigit = /[0-9]/, regexWhitespace = /[\xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/, escapeEverythingRegex = /([\uD800-\uDBFF][\uDC00-\uDFFF])|([\uD800-\uDFFF])|(['"`])|[^]/g, escapeNonAsciiRegex = /([\uD800-\uDBFF][\uDC00-\uDFFF])|([\uD800-\uDFFF])|(['"`])|[^ !#-&\(-\[\]-_a-~]/g, jsesc = (argument, options) => {
|
|
4640
4640
|
const increaseIndentation = () => {
|
|
4641
4641
|
oldIndent = indent, ++options.indentLevel, indent = options.indent.repeat(options.indentLevel);
|
|
@@ -9542,8 +9542,8 @@ Default "index" lookups for the main are deprecated for ES modules.`, "Deprecati
|
|
|
9542
9542
|
return this.printList(members, null == (_this$shouldPrintTrai = this.shouldPrintTrailingComma("}")) || _this$shouldPrintTrai, true, true);
|
|
9543
9543
|
});
|
|
9544
9544
|
}, exports3.TSEnumMember = function(node) {
|
|
9545
|
-
const { id, initializer:
|
|
9546
|
-
this.print(id),
|
|
9545
|
+
const { id, initializer: initializer2 } = node;
|
|
9546
|
+
this.print(id), initializer2 && (this.space(), this.tokenChar(61), this.space(), this.print(initializer2));
|
|
9547
9547
|
}, exports3.TSExportAssignment = function(node) {
|
|
9548
9548
|
this.word("export"), this.space(), this.tokenChar(61), this.space(), this.print(node.expression), this.semicolon();
|
|
9549
9549
|
}, exports3.TSExternalModuleReference = function(node) {
|
|
@@ -9559,9 +9559,9 @@ Default "index" lookups for the main are deprecated for ES modules.`, "Deprecati
|
|
|
9559
9559
|
this.word("import"), this.tokenChar(40), this.print(argument), this.tokenChar(41), qualifier && (this.tokenChar(46), this.print(qualifier));
|
|
9560
9560
|
typeParameters && this.print(typeParameters);
|
|
9561
9561
|
}, exports3.TSIndexSignature = function(node) {
|
|
9562
|
-
const { readonly
|
|
9562
|
+
const { readonly, static: isStatic } = node;
|
|
9563
9563
|
isStatic && (this.word("static"), this.space());
|
|
9564
|
-
|
|
9564
|
+
readonly && (this.word("readonly"), this.space());
|
|
9565
9565
|
this.tokenChar(91), this._parameters(node.parameters, "]"), this.print(node.typeAnnotation), maybePrintTrailingCommaOrSemicolon(this, node);
|
|
9566
9566
|
}, exports3.TSIndexedAccessType = function(node) {
|
|
9567
9567
|
this.print(node.objectType, true), this.tokenChar(91), this.print(node.indexType), this.tokenChar(93);
|
|
@@ -9583,10 +9583,10 @@ Default "index" lookups for the main are deprecated for ES modules.`, "Deprecati
|
|
|
9583
9583
|
}, exports3.TSLiteralType = function(node) {
|
|
9584
9584
|
this.print(node.literal);
|
|
9585
9585
|
}, exports3.TSMappedType = function(node) {
|
|
9586
|
-
const { nameType, optional: optional2, readonly
|
|
9586
|
+
const { nameType, optional: optional2, readonly, typeAnnotation } = node;
|
|
9587
9587
|
this.tokenChar(123);
|
|
9588
9588
|
const exit = this.enterDelimited();
|
|
9589
|
-
this.space(),
|
|
9589
|
+
this.space(), readonly && (tokenIfPlusMinus(this, readonly), this.word("readonly"), this.space());
|
|
9590
9590
|
this.tokenChar(91), this.word(node.typeParameter.name), this.space(), this.word("in"), this.space(), this.print(node.typeParameter.constraint), nameType && (this.space(), this.word("as"), this.space(), this.print(nameType));
|
|
9591
9591
|
this.tokenChar(93), optional2 && (tokenIfPlusMinus(this, optional2), this.tokenChar(63));
|
|
9592
9592
|
typeAnnotation && (this.tokenChar(58), this.space(), this.print(typeAnnotation));
|
|
@@ -9630,8 +9630,8 @@ Default "index" lookups for the main are deprecated for ES modules.`, "Deprecati
|
|
|
9630
9630
|
}, exports3.TSParenthesizedType = function(node) {
|
|
9631
9631
|
this.tokenChar(40), this.print(node.typeAnnotation), this.tokenChar(41);
|
|
9632
9632
|
}, exports3.TSPropertySignature = function(node) {
|
|
9633
|
-
const { readonly
|
|
9634
|
-
|
|
9633
|
+
const { readonly } = node;
|
|
9634
|
+
readonly && (this.word("readonly"), this.space());
|
|
9635
9635
|
this.tsPrintPropertyOrMethodName(node), this.print(node.typeAnnotation), maybePrintTrailingCommaOrSemicolon(this, node);
|
|
9636
9636
|
}, exports3.TSQualifiedName = function(node) {
|
|
9637
9637
|
this.print(node.left), this.tokenChar(46), this.print(node.right);
|
|
@@ -10612,76 +10612,76 @@ ${" ".repeat(indentSize)}`);
|
|
|
10612
10612
|
return { VariableDeclarator(path2, state) {
|
|
10613
10613
|
const id = path2.node.id;
|
|
10614
10614
|
if ("Identifier" === id.type) {
|
|
10615
|
-
const
|
|
10616
|
-
if (isAnonymous(
|
|
10615
|
+
const initializer2 = (0, _helperSkipTransparentExpressionWrappers.skipTransparentExprWrappers)(path2.get("init"));
|
|
10616
|
+
if (isAnonymous(initializer2)) {
|
|
10617
10617
|
const name = id.name;
|
|
10618
|
-
visitor(
|
|
10618
|
+
visitor(initializer2, state, name);
|
|
10619
10619
|
}
|
|
10620
10620
|
}
|
|
10621
10621
|
}, AssignmentExpression(path2, state) {
|
|
10622
10622
|
const id = path2.node.left;
|
|
10623
10623
|
if ("Identifier" === id.type) {
|
|
10624
|
-
const
|
|
10625
|
-
if (isAnonymous(
|
|
10624
|
+
const initializer2 = (0, _helperSkipTransparentExpressionWrappers.skipTransparentExprWrappers)(path2.get("right"));
|
|
10625
|
+
if (isAnonymous(initializer2)) switch (path2.node.operator) {
|
|
10626
10626
|
case "=":
|
|
10627
10627
|
case "&&=":
|
|
10628
10628
|
case "||=":
|
|
10629
10629
|
case "??=":
|
|
10630
|
-
visitor(
|
|
10630
|
+
visitor(initializer2, state, id.name);
|
|
10631
10631
|
}
|
|
10632
10632
|
}
|
|
10633
10633
|
}, AssignmentPattern(path2, state) {
|
|
10634
10634
|
const id = path2.node.left;
|
|
10635
10635
|
if ("Identifier" === id.type) {
|
|
10636
|
-
const
|
|
10637
|
-
if (isAnonymous(
|
|
10636
|
+
const initializer2 = (0, _helperSkipTransparentExpressionWrappers.skipTransparentExprWrappers)(path2.get("right"));
|
|
10637
|
+
if (isAnonymous(initializer2)) {
|
|
10638
10638
|
const name = id.name;
|
|
10639
|
-
visitor(
|
|
10639
|
+
visitor(initializer2, state, name);
|
|
10640
10640
|
}
|
|
10641
10641
|
}
|
|
10642
10642
|
}, ObjectExpression(path2, state) {
|
|
10643
10643
|
for (const propertyPath of path2.get("properties")) {
|
|
10644
10644
|
if (!propertyPath.isObjectProperty()) continue;
|
|
10645
|
-
const { node } = propertyPath, id = node.key,
|
|
10646
|
-
if (isAnonymous(
|
|
10645
|
+
const { node } = propertyPath, id = node.key, initializer2 = (0, _helperSkipTransparentExpressionWrappers.skipTransparentExprWrappers)(propertyPath.get("value"));
|
|
10646
|
+
if (isAnonymous(initializer2)) {
|
|
10647
10647
|
if (node.computed) {
|
|
10648
10648
|
const ref2 = handleComputedProperty(propertyPath, id, state);
|
|
10649
|
-
visitor(
|
|
10650
|
-
} else if (!isProtoKey(id)) if ("Identifier" === id.type) visitor(
|
|
10649
|
+
visitor(initializer2, state, ref2);
|
|
10650
|
+
} else if (!isProtoKey(id)) if ("Identifier" === id.type) visitor(initializer2, state, id.name);
|
|
10651
10651
|
else {
|
|
10652
10652
|
const className = _core.types.stringLiteral(id.value + "");
|
|
10653
|
-
visitor(
|
|
10653
|
+
visitor(initializer2, state, className);
|
|
10654
10654
|
}
|
|
10655
10655
|
}
|
|
10656
10656
|
}
|
|
10657
10657
|
}, ClassPrivateProperty(path2, state) {
|
|
10658
|
-
const { node } = path2,
|
|
10659
|
-
if (isAnonymous(
|
|
10658
|
+
const { node } = path2, initializer2 = (0, _helperSkipTransparentExpressionWrappers.skipTransparentExprWrappers)(path2.get("value"));
|
|
10659
|
+
if (isAnonymous(initializer2)) {
|
|
10660
10660
|
const className = _core.types.stringLiteral("#" + node.key.id.name);
|
|
10661
|
-
visitor(
|
|
10661
|
+
visitor(initializer2, state, className);
|
|
10662
10662
|
}
|
|
10663
10663
|
}, ClassAccessorProperty(path2, state) {
|
|
10664
|
-
const { node } = path2, id = node.key,
|
|
10665
|
-
if (isAnonymous(
|
|
10664
|
+
const { node } = path2, id = node.key, initializer2 = (0, _helperSkipTransparentExpressionWrappers.skipTransparentExprWrappers)(path2.get("value"));
|
|
10665
|
+
if (isAnonymous(initializer2)) if (node.computed) {
|
|
10666
10666
|
const ref2 = handleComputedProperty(path2, id, state);
|
|
10667
|
-
visitor(
|
|
10668
|
-
} else if ("Identifier" === id.type) visitor(
|
|
10667
|
+
visitor(initializer2, state, ref2);
|
|
10668
|
+
} else if ("Identifier" === id.type) visitor(initializer2, state, id.name);
|
|
10669
10669
|
else if ("PrivateName" === id.type) {
|
|
10670
10670
|
const className = _core.types.stringLiteral("#" + id.id.name);
|
|
10671
|
-
visitor(
|
|
10671
|
+
visitor(initializer2, state, className);
|
|
10672
10672
|
} else {
|
|
10673
10673
|
const className = _core.types.stringLiteral(id.value + "");
|
|
10674
|
-
visitor(
|
|
10674
|
+
visitor(initializer2, state, className);
|
|
10675
10675
|
}
|
|
10676
10676
|
}, ClassProperty(path2, state) {
|
|
10677
|
-
const { node } = path2, id = node.key,
|
|
10678
|
-
if (isAnonymous(
|
|
10677
|
+
const { node } = path2, id = node.key, initializer2 = (0, _helperSkipTransparentExpressionWrappers.skipTransparentExprWrappers)(path2.get("value"));
|
|
10678
|
+
if (isAnonymous(initializer2)) if (node.computed) {
|
|
10679
10679
|
const ref2 = handleComputedProperty(path2, id, state);
|
|
10680
|
-
visitor(
|
|
10681
|
-
} else if ("Identifier" === id.type) visitor(
|
|
10680
|
+
visitor(initializer2, state, ref2);
|
|
10681
|
+
} else if ("Identifier" === id.type) visitor(initializer2, state, id.name);
|
|
10682
10682
|
else {
|
|
10683
10683
|
const className = _core.types.stringLiteral(id.value + "");
|
|
10684
|
-
visitor(
|
|
10684
|
+
visitor(initializer2, state, className);
|
|
10685
10685
|
}
|
|
10686
10686
|
} };
|
|
10687
10687
|
}(isDecoratedAnonymousClassExpression, visitClass);
|
|
@@ -11079,8 +11079,8 @@ ${" ".repeat(indentSize)}`);
|
|
|
11079
11079
|
key.isSequenceExpression() ? expressions.push(...key.node.expressions) : expressions.push(key.node), key.replaceWith(maybeSequenceExpression(expressions));
|
|
11080
11080
|
}
|
|
11081
11081
|
function prependExpressionsToFieldInitializer(expressions, fieldPath) {
|
|
11082
|
-
const
|
|
11083
|
-
|
|
11082
|
+
const initializer2 = fieldPath.get("value");
|
|
11083
|
+
initializer2.node ? expressions.push(initializer2.node) : expressions.length > 0 && (expressions[expressions.length - 1] = _core.types.unaryExpression("void", expressions[expressions.length - 1])), initializer2.replaceWith(maybeSequenceExpression(expressions));
|
|
11084
11084
|
}
|
|
11085
11085
|
function prependExpressionsToStaticBlock(expressions, blockPath) {
|
|
11086
11086
|
blockPath.unshiftContainer("body", _core.types.expressionStatement(maybeSequenceExpression(expressions)));
|
|
@@ -14341,12 +14341,12 @@ See https://babeljs.io/docs/configuration#print-effective-configs for more info.
|
|
|
14341
14341
|
startsWithDot || null !== this.readInt(10) || this.raise(Errors.InvalidNumber, this.state.curPosition());
|
|
14342
14342
|
const hasLeadingZero = this.state.pos - start >= 2 && 48 === this.input.charCodeAt(start);
|
|
14343
14343
|
if (hasLeadingZero) {
|
|
14344
|
-
const
|
|
14344
|
+
const integer = this.input.slice(start, this.state.pos);
|
|
14345
14345
|
if (this.recordStrictModeErrors(Errors.StrictOctalLiteral, startLoc), !this.state.strict) {
|
|
14346
|
-
const underscorePos =
|
|
14346
|
+
const underscorePos = integer.indexOf("_");
|
|
14347
14347
|
underscorePos > 0 && this.raise(Errors.ZeroDigitNumericSeparator, createPositionWithColumnOffset(startLoc, underscorePos));
|
|
14348
14348
|
}
|
|
14349
|
-
isOctal = hasLeadingZero && !/[89]/.test(
|
|
14349
|
+
isOctal = hasLeadingZero && !/[89]/.test(integer);
|
|
14350
14350
|
}
|
|
14351
14351
|
let next = this.input.charCodeAt(this.state.pos);
|
|
14352
14352
|
if (46 !== next || isOctal || (++this.state.pos, this.readInt(10), isFloat = true, next = this.input.charCodeAt(this.state.pos)), 69 !== next && 101 !== next || isOctal || (next = this.input.charCodeAt(++this.state.pos), 43 !== next && 45 !== next || ++this.state.pos, null === this.readInt(10) && this.raise(Errors.InvalidOrMissingExponent, startLoc), isFloat = true, hasExponent = true, next = this.input.charCodeAt(this.state.pos)), 110 === next && ((isFloat || hasLeadingZero) && this.raise(Errors.InvalidBigIntLiteral, startLoc), ++this.state.pos, isBigInt = true), 109 === next) {
|
|
@@ -16623,11 +16623,11 @@ See https://babeljs.io/docs/configuration#print-effective-configs for more info.
|
|
|
16623
16623
|
const type = this.tsTryParseTypeAnnotation();
|
|
16624
16624
|
return type && (node.typeAnnotation = type), this.tsParseTypeMemberSemicolon(), this.finishNode(node, "TSIndexSignature");
|
|
16625
16625
|
}
|
|
16626
|
-
tsParsePropertyOrMethodSignature(node,
|
|
16626
|
+
tsParsePropertyOrMethodSignature(node, readonly) {
|
|
16627
16627
|
this.eat(17) && (node.optional = true);
|
|
16628
16628
|
const nodeAny = node;
|
|
16629
16629
|
if (this.match(10) || this.match(47)) {
|
|
16630
|
-
|
|
16630
|
+
readonly && this.raise(TSErrors.ReadonlyForMethodSignature, node);
|
|
16631
16631
|
const method = nodeAny;
|
|
16632
16632
|
method.kind && this.match(47) && this.raise(TSErrors.AccessorCannotHaveTypeParameters, this.state.curPosition()), this.tsFillSignature(14, method), this.tsParseTypeMemberSemicolon();
|
|
16633
16633
|
const paramsKey = "parameters", returnTypeKey = "typeAnnotation";
|
|
@@ -16644,7 +16644,7 @@ See https://babeljs.io/docs/configuration#print-effective-configs for more info.
|
|
|
16644
16644
|
}
|
|
16645
16645
|
{
|
|
16646
16646
|
const property = nodeAny;
|
|
16647
|
-
|
|
16647
|
+
readonly && (property.readonly = true);
|
|
16648
16648
|
const type = this.tsTryParseTypeAnnotation();
|
|
16649
16649
|
return type && (property.typeAnnotation = type), this.tsParseTypeMemberSemicolon(), this.finishNode(property, "TSPropertySignature");
|
|
16650
16650
|
}
|
|
@@ -17165,14 +17165,14 @@ See https://babeljs.io/docs/configuration#print-effective-configs for more info.
|
|
|
17165
17165
|
parseAssignableListItem(flags, decorators) {
|
|
17166
17166
|
const startLoc = this.state.startLoc, modified = {};
|
|
17167
17167
|
this.tsParseModifiers({ allowedModifiers: ["public", "private", "protected", "override", "readonly"] }, modified);
|
|
17168
|
-
const accessibility = modified.accessibility, override = modified.override,
|
|
17169
|
-
4 & flags || !(accessibility ||
|
|
17168
|
+
const accessibility = modified.accessibility, override = modified.override, readonly = modified.readonly;
|
|
17169
|
+
4 & flags || !(accessibility || readonly || override) || this.raise(TSErrors.UnexpectedParameterModifier, startLoc);
|
|
17170
17170
|
const left = this.parseMaybeDefault();
|
|
17171
17171
|
2 & flags && this.parseFunctionParamType(left);
|
|
17172
17172
|
const elt = this.parseMaybeDefault(left.loc.start, left);
|
|
17173
|
-
if (accessibility ||
|
|
17173
|
+
if (accessibility || readonly || override) {
|
|
17174
17174
|
const pp2 = this.startNodeAt(startLoc);
|
|
17175
|
-
return decorators.length && (pp2.decorators = decorators), accessibility && (pp2.accessibility = accessibility),
|
|
17175
|
+
return decorators.length && (pp2.decorators = decorators), accessibility && (pp2.accessibility = accessibility), readonly && (pp2.readonly = readonly), override && (pp2.override = override), "Identifier" !== elt.type && "AssignmentPattern" !== elt.type && this.raise(TSErrors.UnsupportedParameterPropertyKind, pp2), pp2.parameter = elt, this.finishNode(pp2, "TSParameterProperty");
|
|
17176
17176
|
}
|
|
17177
17177
|
return decorators.length && (left.decorators = decorators), elt;
|
|
17178
17178
|
}
|
|
@@ -19726,8 +19726,8 @@ See https://babeljs.io/docs/configuration#print-effective-configs for more info.
|
|
|
19726
19726
|
if (node.computed) throw path2.buildCodeFrameError("Computed method/property decorators are not yet supported.");
|
|
19727
19727
|
const property = _core.types.isLiteral(node.key) ? node.key : _core.types.stringLiteral(node.key.name), target = path2.isClass() && !node.static ? buildClassPrototype({ CLASS_REF: name }).expression : name;
|
|
19728
19728
|
if (_core.types.isClassProperty(node, { static: false })) {
|
|
19729
|
-
const descriptor = path2.scope.generateDeclaredUidIdentifier("descriptor"),
|
|
19730
|
-
node.value = _core.types.callExpression(state.addHelper("initializerWarningHelper"), [descriptor, _core.types.thisExpression()]), WARNING_CALLS.add(node.value), acc.push(_core.types.assignmentExpression("=", _core.types.cloneNode(descriptor), _core.types.callExpression(state.addHelper("applyDecoratedDescriptor"), [_core.types.cloneNode(target), _core.types.cloneNode(property), _core.types.arrayExpression(decorators.map((dec) => _core.types.cloneNode(dec.expression))), _core.types.objectExpression([_core.types.objectProperty(_core.types.identifier("configurable"), _core.types.booleanLiteral(true)), _core.types.objectProperty(_core.types.identifier("enumerable"), _core.types.booleanLiteral(true)), _core.types.objectProperty(_core.types.identifier("writable"), _core.types.booleanLiteral(true)), _core.types.objectProperty(_core.types.identifier("initializer"),
|
|
19729
|
+
const descriptor = path2.scope.generateDeclaredUidIdentifier("descriptor"), initializer2 = node.value ? _core.types.functionExpression(null, [], _core.types.blockStatement([_core.types.returnStatement(node.value)])) : _core.types.nullLiteral();
|
|
19730
|
+
node.value = _core.types.callExpression(state.addHelper("initializerWarningHelper"), [descriptor, _core.types.thisExpression()]), WARNING_CALLS.add(node.value), acc.push(_core.types.assignmentExpression("=", _core.types.cloneNode(descriptor), _core.types.callExpression(state.addHelper("applyDecoratedDescriptor"), [_core.types.cloneNode(target), _core.types.cloneNode(property), _core.types.arrayExpression(decorators.map((dec) => _core.types.cloneNode(dec.expression))), _core.types.objectExpression([_core.types.objectProperty(_core.types.identifier("configurable"), _core.types.booleanLiteral(true)), _core.types.objectProperty(_core.types.identifier("enumerable"), _core.types.booleanLiteral(true)), _core.types.objectProperty(_core.types.identifier("writable"), _core.types.booleanLiteral(true)), _core.types.objectProperty(_core.types.identifier("initializer"), initializer2)])])));
|
|
19731
19731
|
} else acc.push(_core.types.callExpression(state.addHelper("applyDecoratedDescriptor"), [_core.types.cloneNode(target), _core.types.cloneNode(property), _core.types.arrayExpression(decorators.map((dec) => _core.types.cloneNode(dec.expression))), _core.types.isObjectProperty(node) || _core.types.isClassProperty(node, { static: true }) ? buildGetObjectInitializer({ TEMP: path2.scope.generateDeclaredUidIdentifier("init"), TARGET: _core.types.cloneNode(target), PROPERTY: _core.types.cloneNode(property) }).expression : buildGetDescriptor({ TARGET: _core.types.cloneNode(target), PROPERTY: _core.types.cloneNode(property) }).expression, _core.types.cloneNode(target)]));
|
|
19732
19732
|
return acc;
|
|
19733
19733
|
}, []);
|
|
@@ -24858,9 +24858,9 @@ ${str}
|
|
|
24858
24858
|
}, exports3.tSEnumDeclaration = exports3.tsEnumDeclaration = function(id, members) {
|
|
24859
24859
|
const node = { type: "TSEnumDeclaration", id, members }, defs = NODE_FIELDS.TSEnumDeclaration;
|
|
24860
24860
|
return validate(defs.id, node, "id", id, 1), validate(defs.members, node, "members", members, 1), node;
|
|
24861
|
-
}, exports3.tSEnumMember = exports3.tsEnumMember = function(id,
|
|
24862
|
-
const node = { type: "TSEnumMember", id, initializer:
|
|
24863
|
-
return validate(defs.id, node, "id", id, 1), validate(defs.initializer, node, "initializer",
|
|
24861
|
+
}, exports3.tSEnumMember = exports3.tsEnumMember = function(id, initializer2 = null) {
|
|
24862
|
+
const node = { type: "TSEnumMember", id, initializer: initializer2 }, defs = NODE_FIELDS.TSEnumMember;
|
|
24863
|
+
return validate(defs.id, node, "id", id, 1), validate(defs.initializer, node, "initializer", initializer2, 1), node;
|
|
24864
24864
|
}, exports3.tSExportAssignment = exports3.tsExportAssignment = function(expression) {
|
|
24865
24865
|
const node = { type: "TSExportAssignment", expression }, defs = NODE_FIELDS.TSExportAssignment;
|
|
24866
24866
|
return validate(defs.expression, node, "expression", expression, 1), node;
|
|
@@ -29237,7 +29237,7 @@ ${trace}`);
|
|
|
29237
29237
|
var __webpack_exports__ = {};
|
|
29238
29238
|
(() => {
|
|
29239
29239
|
"use strict";
|
|
29240
|
-
__webpack_require__.d(__webpack_exports__, { default: () =>
|
|
29240
|
+
__webpack_require__.d(__webpack_exports__, { default: () => transform2 });
|
|
29241
29241
|
var lib = __webpack_require__("./node_modules/.pnpm/@babel+core@7.26.0/node_modules/@babel/core/lib/index.js"), plugin_proposal_decorators_lib = __webpack_require__("./node_modules/.pnpm/@babel+plugin-proposal-decorators@7.25.9_@babel+core@7.26.0/node_modules/@babel/plugin-proposal-decorators/lib/index.js"), plugin_syntax_class_properties_lib = __webpack_require__("./node_modules/.pnpm/@babel+plugin-syntax-class-properties@7.12.13_@babel+core@7.26.0/node_modules/@babel/plugin-syntax-class-properties/lib/index.js"), plugin_syntax_import_assertions_lib = __webpack_require__("./node_modules/.pnpm/@babel+plugin-syntax-import-assertions@7.26.0_@babel+core@7.26.0/node_modules/@babel/plugin-syntax-import-assertions/lib/index.js"), plugin_syntax_jsx_lib = __webpack_require__("./node_modules/.pnpm/@babel+plugin-syntax-jsx@7.25.9_@babel+core@7.26.0/node_modules/@babel/plugin-syntax-jsx/lib/index.js"), plugin_transform_export_namespace_from_lib = __webpack_require__("./node_modules/.pnpm/@babel+plugin-transform-export-namespace-from@7.25.9_@babel+core@7.26.0/node_modules/@babel/plugin-transform-export-namespace-from/lib/index.js"), plugin_transform_react_jsx_lib = __webpack_require__("./node_modules/.pnpm/@babel+plugin-transform-react-jsx@7.25.9_@babel+core@7.26.0/node_modules/@babel/plugin-transform-react-jsx/lib/index.js"), plugin_transform_typescript_lib = __webpack_require__("./node_modules/.pnpm/@babel+plugin-transform-typescript@7.26.3_@babel+core@7.26.0/node_modules/@babel/plugin-transform-typescript/lib/index.js"), babel_plugin_parameter_decorator_lib = __webpack_require__("./node_modules/.pnpm/babel-plugin-parameter-decorator@1.0.16/node_modules/babel-plugin-parameter-decorator/lib/index.js"), babel_plugin_parameter_decorator_lib_default = __webpack_require__.n(babel_plugin_parameter_decorator_lib), helper_plugin_utils_lib = __webpack_require__("./node_modules/.pnpm/@babel+helper-plugin-utils@7.25.9/node_modules/@babel/helper-plugin-utils/lib/index.js");
|
|
29242
29242
|
function createParamDecorator(paramIndex, decoratorExpression, isConstructor = false) {
|
|
29243
29243
|
return lib.types.decorator(lib.types.functionExpression(null, [lib.types.identifier("target"), lib.types.identifier("key")], lib.types.blockStatement([lib.types.returnStatement(lib.types.callExpression(decoratorExpression, [lib.types.identifier("target"), lib.types.identifier(isConstructor ? "undefined" : "key"), lib.types.numericLiteral(paramIndex)]))])));
|
|
@@ -31652,7 +31652,7 @@ ${trace}`);
|
|
|
31652
31652
|
});
|
|
31653
31653
|
} } } };
|
|
31654
31654
|
});
|
|
31655
|
-
function
|
|
31655
|
+
function transform2(opts) {
|
|
31656
31656
|
const _opts = { babelrc: false, configFile: false, compact: false, retainLines: "boolean" != typeof opts.retainLines || opts.retainLines, filename: "", cwd: "/", ...opts.babel, plugins: [[transform_module, { allowTopLevelThis: true, noInterop: !opts.interopDefault, async: opts.async }], [importMetaPathsPlugin, { filename: opts.filename }], [importMetaEnvPlugin], [importMetaResolvePlugin], [plugin_syntax_class_properties_lib.A], [plugin_transform_export_namespace_from_lib.A]] };
|
|
31657
31657
|
opts.jsx && _opts.plugins.push([plugin_syntax_jsx_lib.default], [plugin_transform_react_jsx_lib.A, Object.assign({}, opts.jsx)]), opts.ts && (_opts.plugins.push([plugin_transform_typescript_lib.default, { allowDeclareFields: true, isTSX: opts.jsx && /\.[cm]?tsx$/.test(opts.filename || "") }]), _opts.plugins.unshift([babel_plugin_transform_typescript_metadata], [plugin_proposal_decorators_lib.A, { legacy: true }]), _opts.plugins.push(babel_plugin_parameter_decorator_lib_default()), _opts.plugins.push(plugin_syntax_import_assertions_lib.A)), opts.babel && Array.isArray(opts.babel.plugins) && _opts.plugins?.push(...opts.babel.plugins);
|
|
31658
31658
|
try {
|
|
@@ -43779,7 +43779,7 @@ var require_header = __commonJS({
|
|
|
43779
43779
|
var encSmallNumber = (buf, off, size, number2) => buf.write(octalString(number2, size), off, size, "ascii");
|
|
43780
43780
|
var octalString = (number2, size) => padOctal(Math.floor(number2).toString(8), size);
|
|
43781
43781
|
var padOctal = (string3, size) => (string3.length === size - 1 ? string3 : new Array(size - string3.length - 1).join("0") + string3 + " ") + "\0";
|
|
43782
|
-
var encDate = (buf, off, size,
|
|
43782
|
+
var encDate = (buf, off, size, date2) => date2 === null ? false : encNumber(buf, off, size, date2.getTime() / 1e3);
|
|
43783
43783
|
var NULLS = new Array(156).join("\0");
|
|
43784
43784
|
var encString = (buf, off, size, string3) => string3 === null ? false : (buf.write(string3 + NULLS, off, size, "utf8"), string3.length !== Buffer.byteLength(string3) || string3.length > size);
|
|
43785
43785
|
module2.exports = Header;
|
|
@@ -47090,12 +47090,12 @@ var require_path_reservations = __commonJS({
|
|
|
47090
47090
|
dirs: [...res.dirs].map((path2) => queues.get(path2))
|
|
47091
47091
|
};
|
|
47092
47092
|
};
|
|
47093
|
-
const
|
|
47093
|
+
const check = (fn2) => {
|
|
47094
47094
|
const { paths, dirs } = getQueues(fn2);
|
|
47095
47095
|
return paths.every((q6) => q6[0] === fn2) && dirs.every((q6) => q6[0] instanceof Set && q6[0].has(fn2));
|
|
47096
47096
|
};
|
|
47097
47097
|
const run = (fn2) => {
|
|
47098
|
-
if (running.has(fn2) || !
|
|
47098
|
+
if (running.has(fn2) || !check(fn2)) {
|
|
47099
47099
|
return false;
|
|
47100
47100
|
}
|
|
47101
47101
|
running.add(fn2);
|
|
@@ -47166,7 +47166,7 @@ var require_path_reservations = __commonJS({
|
|
|
47166
47166
|
});
|
|
47167
47167
|
return run(fn2);
|
|
47168
47168
|
};
|
|
47169
|
-
return { check
|
|
47169
|
+
return { check, reserve };
|
|
47170
47170
|
};
|
|
47171
47171
|
}
|
|
47172
47172
|
});
|
|
@@ -62838,8 +62838,8 @@ var require_conversions = __commonJS({
|
|
|
62838
62838
|
return [r5, g4, b6];
|
|
62839
62839
|
};
|
|
62840
62840
|
convert.rgb.hex = function(args) {
|
|
62841
|
-
const
|
|
62842
|
-
const string3 =
|
|
62841
|
+
const integer = ((Math.round(args[0]) & 255) << 16) + ((Math.round(args[1]) & 255) << 8) + (Math.round(args[2]) & 255);
|
|
62842
|
+
const string3 = integer.toString(16).toUpperCase();
|
|
62843
62843
|
return "000000".substring(string3.length) + string3;
|
|
62844
62844
|
};
|
|
62845
62845
|
convert.hex.rgb = function(args) {
|
|
@@ -62853,10 +62853,10 @@ var require_conversions = __commonJS({
|
|
|
62853
62853
|
return char + char;
|
|
62854
62854
|
}).join("");
|
|
62855
62855
|
}
|
|
62856
|
-
const
|
|
62857
|
-
const r5 =
|
|
62858
|
-
const g4 =
|
|
62859
|
-
const b6 =
|
|
62856
|
+
const integer = parseInt(colorString, 16);
|
|
62857
|
+
const r5 = integer >> 16 & 255;
|
|
62858
|
+
const g4 = integer >> 8 & 255;
|
|
62859
|
+
const b6 = integer & 255;
|
|
62860
62860
|
return [r5, g4, b6];
|
|
62861
62861
|
};
|
|
62862
62862
|
convert.rgb.hcg = function(rgb) {
|
|
@@ -63019,8 +63019,8 @@ var require_conversions = __commonJS({
|
|
|
63019
63019
|
};
|
|
63020
63020
|
convert.gray.hex = function(gray) {
|
|
63021
63021
|
const val = Math.round(gray[0] / 100 * 255) & 255;
|
|
63022
|
-
const
|
|
63023
|
-
const string3 =
|
|
63022
|
+
const integer = (val << 16) + (val << 8) + val;
|
|
63023
|
+
const string3 = integer.toString(16).toUpperCase();
|
|
63024
63024
|
return "000000".substring(string3.length) + string3;
|
|
63025
63025
|
};
|
|
63026
63026
|
convert.rgb.gray = function(rgb) {
|
|
@@ -63769,6 +63769,9 @@ init_cjs_shims();
|
|
|
63769
63769
|
// ../config/src/schema.ts
|
|
63770
63770
|
init_cjs_shims();
|
|
63771
63771
|
|
|
63772
|
+
// ../../node_modules/.pnpm/zod@4.0.5/node_modules/zod/v4/mini/external.js
|
|
63773
|
+
init_cjs_shims();
|
|
63774
|
+
|
|
63772
63775
|
// ../../node_modules/.pnpm/zod@4.0.5/node_modules/zod/v4/core/index.js
|
|
63773
63776
|
init_cjs_shims();
|
|
63774
63777
|
|
|
@@ -63778,7 +63781,7 @@ var NEVER = Object.freeze({
|
|
|
63778
63781
|
status: "aborted"
|
|
63779
63782
|
});
|
|
63780
63783
|
// @__NO_SIDE_EFFECTS__
|
|
63781
|
-
function $constructor(name,
|
|
63784
|
+
function $constructor(name, initializer2, params) {
|
|
63782
63785
|
function init(inst, def) {
|
|
63783
63786
|
var _a;
|
|
63784
63787
|
Object.defineProperty(inst, "_zod", {
|
|
@@ -63787,7 +63790,7 @@ function $constructor(name, initializer3, params) {
|
|
|
63787
63790
|
});
|
|
63788
63791
|
(_a = inst._zod).traits ?? (_a.traits = /* @__PURE__ */ new Set());
|
|
63789
63792
|
inst._zod.traits.add(name);
|
|
63790
|
-
|
|
63793
|
+
initializer2(inst, def);
|
|
63791
63794
|
for (const k4 in _5.prototype) {
|
|
63792
63795
|
if (!(k4 in inst))
|
|
63793
63796
|
Object.defineProperty(inst, k4, { value: _5.prototype[k4].bind(inst) });
|
|
@@ -64386,55 +64389,6 @@ var initializer = (inst, def) => {
|
|
|
64386
64389
|
};
|
|
64387
64390
|
var $ZodError = $constructor("$ZodError", initializer);
|
|
64388
64391
|
var $ZodRealError = $constructor("$ZodError", initializer, { Parent: Error });
|
|
64389
|
-
function flattenError(error, mapper = (issue2) => issue2.message) {
|
|
64390
|
-
const fieldErrors = {};
|
|
64391
|
-
const formErrors = [];
|
|
64392
|
-
for (const sub of error.issues) {
|
|
64393
|
-
if (sub.path.length > 0) {
|
|
64394
|
-
fieldErrors[sub.path[0]] = fieldErrors[sub.path[0]] || [];
|
|
64395
|
-
fieldErrors[sub.path[0]].push(mapper(sub));
|
|
64396
|
-
} else {
|
|
64397
|
-
formErrors.push(mapper(sub));
|
|
64398
|
-
}
|
|
64399
|
-
}
|
|
64400
|
-
return { formErrors, fieldErrors };
|
|
64401
|
-
}
|
|
64402
|
-
function formatError(error, _mapper) {
|
|
64403
|
-
const mapper = _mapper || function(issue2) {
|
|
64404
|
-
return issue2.message;
|
|
64405
|
-
};
|
|
64406
|
-
const fieldErrors = { _errors: [] };
|
|
64407
|
-
const processError = (error2) => {
|
|
64408
|
-
for (const issue2 of error2.issues) {
|
|
64409
|
-
if (issue2.code === "invalid_union" && issue2.errors.length) {
|
|
64410
|
-
issue2.errors.map((issues) => processError({ issues }));
|
|
64411
|
-
} else if (issue2.code === "invalid_key") {
|
|
64412
|
-
processError({ issues: issue2.issues });
|
|
64413
|
-
} else if (issue2.code === "invalid_element") {
|
|
64414
|
-
processError({ issues: issue2.issues });
|
|
64415
|
-
} else if (issue2.path.length === 0) {
|
|
64416
|
-
fieldErrors._errors.push(mapper(issue2));
|
|
64417
|
-
} else {
|
|
64418
|
-
let curr = fieldErrors;
|
|
64419
|
-
let i2 = 0;
|
|
64420
|
-
while (i2 < issue2.path.length) {
|
|
64421
|
-
const el = issue2.path[i2];
|
|
64422
|
-
const terminal = i2 === issue2.path.length - 1;
|
|
64423
|
-
if (!terminal) {
|
|
64424
|
-
curr[el] = curr[el] || { _errors: [] };
|
|
64425
|
-
} else {
|
|
64426
|
-
curr[el] = curr[el] || { _errors: [] };
|
|
64427
|
-
curr[el]._errors.push(mapper(issue2));
|
|
64428
|
-
}
|
|
64429
|
-
curr = curr[el];
|
|
64430
|
-
i2++;
|
|
64431
|
-
}
|
|
64432
|
-
}
|
|
64433
|
-
}
|
|
64434
|
-
};
|
|
64435
|
-
processError(error);
|
|
64436
|
-
return fieldErrors;
|
|
64437
|
-
}
|
|
64438
64392
|
|
|
64439
64393
|
// ../../node_modules/.pnpm/zod@4.0.5/node_modules/zod/v4/core/parse.js
|
|
64440
64394
|
var _parse = (_Err) => (schema, value2, _ctx, _params) => {
|
|
@@ -64450,6 +64404,7 @@ var _parse = (_Err) => (schema, value2, _ctx, _params) => {
|
|
|
64450
64404
|
}
|
|
64451
64405
|
return result.value;
|
|
64452
64406
|
};
|
|
64407
|
+
var parse = /* @__PURE__ */ _parse($ZodRealError);
|
|
64453
64408
|
var _parseAsync = (_Err) => async (schema, value2, _ctx, params) => {
|
|
64454
64409
|
const ctx = _ctx ? Object.assign(_ctx, { async: true }) : { async: true };
|
|
64455
64410
|
let result = schema._zod.run({ value: value2, issues: [] }, ctx);
|
|
@@ -64462,6 +64417,7 @@ var _parseAsync = (_Err) => async (schema, value2, _ctx, params) => {
|
|
|
64462
64417
|
}
|
|
64463
64418
|
return result.value;
|
|
64464
64419
|
};
|
|
64420
|
+
var parseAsync = /* @__PURE__ */ _parseAsync($ZodRealError);
|
|
64465
64421
|
var _safeParse = (_Err) => (schema, value2, _ctx) => {
|
|
64466
64422
|
const ctx = _ctx ? { ..._ctx, async: false } : { async: false };
|
|
64467
64423
|
const result = schema._zod.run({ value: value2, issues: [] }, ctx);
|
|
@@ -64494,59 +64450,14 @@ init_cjs_shims();
|
|
|
64494
64450
|
|
|
64495
64451
|
// ../../node_modules/.pnpm/zod@4.0.5/node_modules/zod/v4/core/regexes.js
|
|
64496
64452
|
init_cjs_shims();
|
|
64497
|
-
var cuid = /^[cC][^\s-]{8,}$/;
|
|
64498
|
-
var cuid2 = /^[0-9a-z]+$/;
|
|
64499
|
-
var ulid = /^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/;
|
|
64500
|
-
var xid = /^[0-9a-vA-V]{20}$/;
|
|
64501
|
-
var ksuid = /^[A-Za-z0-9]{27}$/;
|
|
64502
|
-
var nanoid = /^[a-zA-Z0-9_-]{21}$/;
|
|
64503
|
-
var duration = /^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/;
|
|
64504
|
-
var guid = /^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/;
|
|
64505
|
-
var uuid = (version3) => {
|
|
64506
|
-
if (!version3)
|
|
64507
|
-
return /^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000)$/;
|
|
64508
|
-
return new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${version3}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`);
|
|
64509
|
-
};
|
|
64510
|
-
var email = /^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/;
|
|
64511
|
-
var _emoji = `^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$`;
|
|
64512
|
-
function emoji() {
|
|
64513
|
-
return new RegExp(_emoji, "u");
|
|
64514
|
-
}
|
|
64515
|
-
var ipv4 = /^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/;
|
|
64516
|
-
var ipv6 = /^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})$/;
|
|
64517
|
-
var cidrv4 = /^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/;
|
|
64518
|
-
var cidrv6 = /^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/;
|
|
64519
|
-
var base64 = /^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/;
|
|
64520
|
-
var base64url = /^[A-Za-z0-9_-]*$/;
|
|
64521
64453
|
var hostname = /^([a-zA-Z0-9-]+\.)*[a-zA-Z0-9-]+$/;
|
|
64522
|
-
var e164 = /^\+(?:[0-9]){6,14}[0-9]$/;
|
|
64523
64454
|
var dateSource = `(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))`;
|
|
64524
64455
|
var date = /* @__PURE__ */ new RegExp(`^${dateSource}$`);
|
|
64525
|
-
function timeSource(args) {
|
|
64526
|
-
const hhmm = `(?:[01]\\d|2[0-3]):[0-5]\\d`;
|
|
64527
|
-
const regex = typeof args.precision === "number" ? args.precision === -1 ? `${hhmm}` : args.precision === 0 ? `${hhmm}:[0-5]\\d` : `${hhmm}:[0-5]\\d\\.\\d{${args.precision}}` : `${hhmm}(?::[0-5]\\d(?:\\.\\d+)?)?`;
|
|
64528
|
-
return regex;
|
|
64529
|
-
}
|
|
64530
|
-
function time(args) {
|
|
64531
|
-
return new RegExp(`^${timeSource(args)}$`);
|
|
64532
|
-
}
|
|
64533
|
-
function datetime(args) {
|
|
64534
|
-
const time3 = timeSource({ precision: args.precision });
|
|
64535
|
-
const opts = ["Z"];
|
|
64536
|
-
if (args.local)
|
|
64537
|
-
opts.push("");
|
|
64538
|
-
if (args.offset)
|
|
64539
|
-
opts.push(`([+-]\\d{2}:\\d{2})`);
|
|
64540
|
-
const timeRegex = `${time3}(?:${opts.join("|")})`;
|
|
64541
|
-
return new RegExp(`^${dateSource}T(?:${timeRegex})$`);
|
|
64542
|
-
}
|
|
64543
64456
|
var string = (params) => {
|
|
64544
64457
|
const regex = params ? `[\\s\\S]{${params?.minimum ?? 0},${params?.maximum ?? ""}}` : `[\\s\\S]*`;
|
|
64545
64458
|
return new RegExp(`^${regex}$`);
|
|
64546
64459
|
};
|
|
64547
64460
|
var boolean = /true|false/i;
|
|
64548
|
-
var lowercase = /^[^A-Z]*$/;
|
|
64549
|
-
var uppercase = /^[^a-z]*$/;
|
|
64550
64461
|
|
|
64551
64462
|
// ../../node_modules/.pnpm/zod@4.0.5/node_modules/zod/v4/core/checks.js
|
|
64552
64463
|
var $ZodCheck = /* @__PURE__ */ $constructor("$ZodCheck", (inst, def) => {
|
|
@@ -64555,64 +64466,6 @@ var $ZodCheck = /* @__PURE__ */ $constructor("$ZodCheck", (inst, def) => {
|
|
|
64555
64466
|
inst._zod.def = def;
|
|
64556
64467
|
(_a = inst._zod).onattach ?? (_a.onattach = []);
|
|
64557
64468
|
});
|
|
64558
|
-
var $ZodCheckMaxLength = /* @__PURE__ */ $constructor("$ZodCheckMaxLength", (inst, def) => {
|
|
64559
|
-
var _a;
|
|
64560
|
-
$ZodCheck.init(inst, def);
|
|
64561
|
-
(_a = inst._zod.def).when ?? (_a.when = (payload) => {
|
|
64562
|
-
const val = payload.value;
|
|
64563
|
-
return !nullish(val) && val.length !== void 0;
|
|
64564
|
-
});
|
|
64565
|
-
inst._zod.onattach.push((inst2) => {
|
|
64566
|
-
const curr = inst2._zod.bag.maximum ?? Number.POSITIVE_INFINITY;
|
|
64567
|
-
if (def.maximum < curr)
|
|
64568
|
-
inst2._zod.bag.maximum = def.maximum;
|
|
64569
|
-
});
|
|
64570
|
-
inst._zod.check = (payload) => {
|
|
64571
|
-
const input = payload.value;
|
|
64572
|
-
const length = input.length;
|
|
64573
|
-
if (length <= def.maximum)
|
|
64574
|
-
return;
|
|
64575
|
-
const origin = getLengthableOrigin(input);
|
|
64576
|
-
payload.issues.push({
|
|
64577
|
-
origin,
|
|
64578
|
-
code: "too_big",
|
|
64579
|
-
maximum: def.maximum,
|
|
64580
|
-
inclusive: true,
|
|
64581
|
-
input,
|
|
64582
|
-
inst,
|
|
64583
|
-
continue: !def.abort
|
|
64584
|
-
});
|
|
64585
|
-
};
|
|
64586
|
-
});
|
|
64587
|
-
var $ZodCheckMinLength = /* @__PURE__ */ $constructor("$ZodCheckMinLength", (inst, def) => {
|
|
64588
|
-
var _a;
|
|
64589
|
-
$ZodCheck.init(inst, def);
|
|
64590
|
-
(_a = inst._zod.def).when ?? (_a.when = (payload) => {
|
|
64591
|
-
const val = payload.value;
|
|
64592
|
-
return !nullish(val) && val.length !== void 0;
|
|
64593
|
-
});
|
|
64594
|
-
inst._zod.onattach.push((inst2) => {
|
|
64595
|
-
const curr = inst2._zod.bag.minimum ?? Number.NEGATIVE_INFINITY;
|
|
64596
|
-
if (def.minimum > curr)
|
|
64597
|
-
inst2._zod.bag.minimum = def.minimum;
|
|
64598
|
-
});
|
|
64599
|
-
inst._zod.check = (payload) => {
|
|
64600
|
-
const input = payload.value;
|
|
64601
|
-
const length = input.length;
|
|
64602
|
-
if (length >= def.minimum)
|
|
64603
|
-
return;
|
|
64604
|
-
const origin = getLengthableOrigin(input);
|
|
64605
|
-
payload.issues.push({
|
|
64606
|
-
origin,
|
|
64607
|
-
code: "too_small",
|
|
64608
|
-
minimum: def.minimum,
|
|
64609
|
-
inclusive: true,
|
|
64610
|
-
input,
|
|
64611
|
-
inst,
|
|
64612
|
-
continue: !def.abort
|
|
64613
|
-
});
|
|
64614
|
-
};
|
|
64615
|
-
});
|
|
64616
64469
|
var $ZodCheckLengthEquals = /* @__PURE__ */ $constructor("$ZodCheckLengthEquals", (inst, def) => {
|
|
64617
64470
|
var _a;
|
|
64618
64471
|
$ZodCheck.init(inst, def);
|
|
@@ -64691,84 +64544,6 @@ var $ZodCheckRegex = /* @__PURE__ */ $constructor("$ZodCheckRegex", (inst, def)
|
|
|
64691
64544
|
});
|
|
64692
64545
|
};
|
|
64693
64546
|
});
|
|
64694
|
-
var $ZodCheckLowerCase = /* @__PURE__ */ $constructor("$ZodCheckLowerCase", (inst, def) => {
|
|
64695
|
-
def.pattern ?? (def.pattern = lowercase);
|
|
64696
|
-
$ZodCheckStringFormat.init(inst, def);
|
|
64697
|
-
});
|
|
64698
|
-
var $ZodCheckUpperCase = /* @__PURE__ */ $constructor("$ZodCheckUpperCase", (inst, def) => {
|
|
64699
|
-
def.pattern ?? (def.pattern = uppercase);
|
|
64700
|
-
$ZodCheckStringFormat.init(inst, def);
|
|
64701
|
-
});
|
|
64702
|
-
var $ZodCheckIncludes = /* @__PURE__ */ $constructor("$ZodCheckIncludes", (inst, def) => {
|
|
64703
|
-
$ZodCheck.init(inst, def);
|
|
64704
|
-
const escapedRegex = escapeRegex(def.includes);
|
|
64705
|
-
const pattern = new RegExp(typeof def.position === "number" ? `^.{${def.position}}${escapedRegex}` : escapedRegex);
|
|
64706
|
-
def.pattern = pattern;
|
|
64707
|
-
inst._zod.onattach.push((inst2) => {
|
|
64708
|
-
const bag = inst2._zod.bag;
|
|
64709
|
-
bag.patterns ?? (bag.patterns = /* @__PURE__ */ new Set());
|
|
64710
|
-
bag.patterns.add(pattern);
|
|
64711
|
-
});
|
|
64712
|
-
inst._zod.check = (payload) => {
|
|
64713
|
-
if (payload.value.includes(def.includes, def.position))
|
|
64714
|
-
return;
|
|
64715
|
-
payload.issues.push({
|
|
64716
|
-
origin: "string",
|
|
64717
|
-
code: "invalid_format",
|
|
64718
|
-
format: "includes",
|
|
64719
|
-
includes: def.includes,
|
|
64720
|
-
input: payload.value,
|
|
64721
|
-
inst,
|
|
64722
|
-
continue: !def.abort
|
|
64723
|
-
});
|
|
64724
|
-
};
|
|
64725
|
-
});
|
|
64726
|
-
var $ZodCheckStartsWith = /* @__PURE__ */ $constructor("$ZodCheckStartsWith", (inst, def) => {
|
|
64727
|
-
$ZodCheck.init(inst, def);
|
|
64728
|
-
const pattern = new RegExp(`^${escapeRegex(def.prefix)}.*`);
|
|
64729
|
-
def.pattern ?? (def.pattern = pattern);
|
|
64730
|
-
inst._zod.onattach.push((inst2) => {
|
|
64731
|
-
const bag = inst2._zod.bag;
|
|
64732
|
-
bag.patterns ?? (bag.patterns = /* @__PURE__ */ new Set());
|
|
64733
|
-
bag.patterns.add(pattern);
|
|
64734
|
-
});
|
|
64735
|
-
inst._zod.check = (payload) => {
|
|
64736
|
-
if (payload.value.startsWith(def.prefix))
|
|
64737
|
-
return;
|
|
64738
|
-
payload.issues.push({
|
|
64739
|
-
origin: "string",
|
|
64740
|
-
code: "invalid_format",
|
|
64741
|
-
format: "starts_with",
|
|
64742
|
-
prefix: def.prefix,
|
|
64743
|
-
input: payload.value,
|
|
64744
|
-
inst,
|
|
64745
|
-
continue: !def.abort
|
|
64746
|
-
});
|
|
64747
|
-
};
|
|
64748
|
-
});
|
|
64749
|
-
var $ZodCheckEndsWith = /* @__PURE__ */ $constructor("$ZodCheckEndsWith", (inst, def) => {
|
|
64750
|
-
$ZodCheck.init(inst, def);
|
|
64751
|
-
const pattern = new RegExp(`.*${escapeRegex(def.suffix)}$`);
|
|
64752
|
-
def.pattern ?? (def.pattern = pattern);
|
|
64753
|
-
inst._zod.onattach.push((inst2) => {
|
|
64754
|
-
const bag = inst2._zod.bag;
|
|
64755
|
-
bag.patterns ?? (bag.patterns = /* @__PURE__ */ new Set());
|
|
64756
|
-
bag.patterns.add(pattern);
|
|
64757
|
-
});
|
|
64758
|
-
inst._zod.check = (payload) => {
|
|
64759
|
-
if (payload.value.endsWith(def.suffix))
|
|
64760
|
-
return;
|
|
64761
|
-
payload.issues.push({
|
|
64762
|
-
origin: "string",
|
|
64763
|
-
code: "invalid_format",
|
|
64764
|
-
format: "ends_with",
|
|
64765
|
-
suffix: def.suffix,
|
|
64766
|
-
input: payload.value,
|
|
64767
|
-
inst,
|
|
64768
|
-
continue: !def.abort
|
|
64769
|
-
});
|
|
64770
|
-
};
|
|
64771
|
-
});
|
|
64772
64547
|
var $ZodCheckOverwrite = /* @__PURE__ */ $constructor("$ZodCheckOverwrite", (inst, def) => {
|
|
64773
64548
|
$ZodCheck.init(inst, def);
|
|
64774
64549
|
inst._zod.check = (payload) => {
|
|
@@ -64930,34 +64705,6 @@ var $ZodStringFormat = /* @__PURE__ */ $constructor("$ZodStringFormat", (inst, d
|
|
|
64930
64705
|
$ZodCheckStringFormat.init(inst, def);
|
|
64931
64706
|
$ZodString.init(inst, def);
|
|
64932
64707
|
});
|
|
64933
|
-
var $ZodGUID = /* @__PURE__ */ $constructor("$ZodGUID", (inst, def) => {
|
|
64934
|
-
def.pattern ?? (def.pattern = guid);
|
|
64935
|
-
$ZodStringFormat.init(inst, def);
|
|
64936
|
-
});
|
|
64937
|
-
var $ZodUUID = /* @__PURE__ */ $constructor("$ZodUUID", (inst, def) => {
|
|
64938
|
-
if (def.version) {
|
|
64939
|
-
const versionMap = {
|
|
64940
|
-
v1: 1,
|
|
64941
|
-
v2: 2,
|
|
64942
|
-
v3: 3,
|
|
64943
|
-
v4: 4,
|
|
64944
|
-
v5: 5,
|
|
64945
|
-
v6: 6,
|
|
64946
|
-
v7: 7,
|
|
64947
|
-
v8: 8
|
|
64948
|
-
};
|
|
64949
|
-
const v4 = versionMap[def.version];
|
|
64950
|
-
if (v4 === void 0)
|
|
64951
|
-
throw new Error(`Invalid UUID version: "${def.version}"`);
|
|
64952
|
-
def.pattern ?? (def.pattern = uuid(v4));
|
|
64953
|
-
} else
|
|
64954
|
-
def.pattern ?? (def.pattern = uuid());
|
|
64955
|
-
$ZodStringFormat.init(inst, def);
|
|
64956
|
-
});
|
|
64957
|
-
var $ZodEmail = /* @__PURE__ */ $constructor("$ZodEmail", (inst, def) => {
|
|
64958
|
-
def.pattern ?? (def.pattern = email);
|
|
64959
|
-
$ZodStringFormat.init(inst, def);
|
|
64960
|
-
});
|
|
64961
64708
|
var $ZodURL = /* @__PURE__ */ $constructor("$ZodURL", (inst, def) => {
|
|
64962
64709
|
$ZodStringFormat.init(inst, def);
|
|
64963
64710
|
inst._zod.check = (payload) => {
|
|
@@ -65010,201 +64757,6 @@ var $ZodURL = /* @__PURE__ */ $constructor("$ZodURL", (inst, def) => {
|
|
|
65010
64757
|
}
|
|
65011
64758
|
};
|
|
65012
64759
|
});
|
|
65013
|
-
var $ZodEmoji = /* @__PURE__ */ $constructor("$ZodEmoji", (inst, def) => {
|
|
65014
|
-
def.pattern ?? (def.pattern = emoji());
|
|
65015
|
-
$ZodStringFormat.init(inst, def);
|
|
65016
|
-
});
|
|
65017
|
-
var $ZodNanoID = /* @__PURE__ */ $constructor("$ZodNanoID", (inst, def) => {
|
|
65018
|
-
def.pattern ?? (def.pattern = nanoid);
|
|
65019
|
-
$ZodStringFormat.init(inst, def);
|
|
65020
|
-
});
|
|
65021
|
-
var $ZodCUID = /* @__PURE__ */ $constructor("$ZodCUID", (inst, def) => {
|
|
65022
|
-
def.pattern ?? (def.pattern = cuid);
|
|
65023
|
-
$ZodStringFormat.init(inst, def);
|
|
65024
|
-
});
|
|
65025
|
-
var $ZodCUID2 = /* @__PURE__ */ $constructor("$ZodCUID2", (inst, def) => {
|
|
65026
|
-
def.pattern ?? (def.pattern = cuid2);
|
|
65027
|
-
$ZodStringFormat.init(inst, def);
|
|
65028
|
-
});
|
|
65029
|
-
var $ZodULID = /* @__PURE__ */ $constructor("$ZodULID", (inst, def) => {
|
|
65030
|
-
def.pattern ?? (def.pattern = ulid);
|
|
65031
|
-
$ZodStringFormat.init(inst, def);
|
|
65032
|
-
});
|
|
65033
|
-
var $ZodXID = /* @__PURE__ */ $constructor("$ZodXID", (inst, def) => {
|
|
65034
|
-
def.pattern ?? (def.pattern = xid);
|
|
65035
|
-
$ZodStringFormat.init(inst, def);
|
|
65036
|
-
});
|
|
65037
|
-
var $ZodKSUID = /* @__PURE__ */ $constructor("$ZodKSUID", (inst, def) => {
|
|
65038
|
-
def.pattern ?? (def.pattern = ksuid);
|
|
65039
|
-
$ZodStringFormat.init(inst, def);
|
|
65040
|
-
});
|
|
65041
|
-
var $ZodISODateTime = /* @__PURE__ */ $constructor("$ZodISODateTime", (inst, def) => {
|
|
65042
|
-
def.pattern ?? (def.pattern = datetime(def));
|
|
65043
|
-
$ZodStringFormat.init(inst, def);
|
|
65044
|
-
});
|
|
65045
|
-
var $ZodISODate = /* @__PURE__ */ $constructor("$ZodISODate", (inst, def) => {
|
|
65046
|
-
def.pattern ?? (def.pattern = date);
|
|
65047
|
-
$ZodStringFormat.init(inst, def);
|
|
65048
|
-
});
|
|
65049
|
-
var $ZodISOTime = /* @__PURE__ */ $constructor("$ZodISOTime", (inst, def) => {
|
|
65050
|
-
def.pattern ?? (def.pattern = time(def));
|
|
65051
|
-
$ZodStringFormat.init(inst, def);
|
|
65052
|
-
});
|
|
65053
|
-
var $ZodISODuration = /* @__PURE__ */ $constructor("$ZodISODuration", (inst, def) => {
|
|
65054
|
-
def.pattern ?? (def.pattern = duration);
|
|
65055
|
-
$ZodStringFormat.init(inst, def);
|
|
65056
|
-
});
|
|
65057
|
-
var $ZodIPv4 = /* @__PURE__ */ $constructor("$ZodIPv4", (inst, def) => {
|
|
65058
|
-
def.pattern ?? (def.pattern = ipv4);
|
|
65059
|
-
$ZodStringFormat.init(inst, def);
|
|
65060
|
-
inst._zod.onattach.push((inst2) => {
|
|
65061
|
-
const bag = inst2._zod.bag;
|
|
65062
|
-
bag.format = `ipv4`;
|
|
65063
|
-
});
|
|
65064
|
-
});
|
|
65065
|
-
var $ZodIPv6 = /* @__PURE__ */ $constructor("$ZodIPv6", (inst, def) => {
|
|
65066
|
-
def.pattern ?? (def.pattern = ipv6);
|
|
65067
|
-
$ZodStringFormat.init(inst, def);
|
|
65068
|
-
inst._zod.onattach.push((inst2) => {
|
|
65069
|
-
const bag = inst2._zod.bag;
|
|
65070
|
-
bag.format = `ipv6`;
|
|
65071
|
-
});
|
|
65072
|
-
inst._zod.check = (payload) => {
|
|
65073
|
-
try {
|
|
65074
|
-
new URL(`http://[${payload.value}]`);
|
|
65075
|
-
} catch {
|
|
65076
|
-
payload.issues.push({
|
|
65077
|
-
code: "invalid_format",
|
|
65078
|
-
format: "ipv6",
|
|
65079
|
-
input: payload.value,
|
|
65080
|
-
inst,
|
|
65081
|
-
continue: !def.abort
|
|
65082
|
-
});
|
|
65083
|
-
}
|
|
65084
|
-
};
|
|
65085
|
-
});
|
|
65086
|
-
var $ZodCIDRv4 = /* @__PURE__ */ $constructor("$ZodCIDRv4", (inst, def) => {
|
|
65087
|
-
def.pattern ?? (def.pattern = cidrv4);
|
|
65088
|
-
$ZodStringFormat.init(inst, def);
|
|
65089
|
-
});
|
|
65090
|
-
var $ZodCIDRv6 = /* @__PURE__ */ $constructor("$ZodCIDRv6", (inst, def) => {
|
|
65091
|
-
def.pattern ?? (def.pattern = cidrv6);
|
|
65092
|
-
$ZodStringFormat.init(inst, def);
|
|
65093
|
-
inst._zod.check = (payload) => {
|
|
65094
|
-
const [address, prefix] = payload.value.split("/");
|
|
65095
|
-
try {
|
|
65096
|
-
if (!prefix)
|
|
65097
|
-
throw new Error();
|
|
65098
|
-
const prefixNum = Number(prefix);
|
|
65099
|
-
if (`${prefixNum}` !== prefix)
|
|
65100
|
-
throw new Error();
|
|
65101
|
-
if (prefixNum < 0 || prefixNum > 128)
|
|
65102
|
-
throw new Error();
|
|
65103
|
-
new URL(`http://[${address}]`);
|
|
65104
|
-
} catch {
|
|
65105
|
-
payload.issues.push({
|
|
65106
|
-
code: "invalid_format",
|
|
65107
|
-
format: "cidrv6",
|
|
65108
|
-
input: payload.value,
|
|
65109
|
-
inst,
|
|
65110
|
-
continue: !def.abort
|
|
65111
|
-
});
|
|
65112
|
-
}
|
|
65113
|
-
};
|
|
65114
|
-
});
|
|
65115
|
-
function isValidBase64(data2) {
|
|
65116
|
-
if (data2 === "")
|
|
65117
|
-
return true;
|
|
65118
|
-
if (data2.length % 4 !== 0)
|
|
65119
|
-
return false;
|
|
65120
|
-
try {
|
|
65121
|
-
atob(data2);
|
|
65122
|
-
return true;
|
|
65123
|
-
} catch {
|
|
65124
|
-
return false;
|
|
65125
|
-
}
|
|
65126
|
-
}
|
|
65127
|
-
var $ZodBase64 = /* @__PURE__ */ $constructor("$ZodBase64", (inst, def) => {
|
|
65128
|
-
def.pattern ?? (def.pattern = base64);
|
|
65129
|
-
$ZodStringFormat.init(inst, def);
|
|
65130
|
-
inst._zod.onattach.push((inst2) => {
|
|
65131
|
-
inst2._zod.bag.contentEncoding = "base64";
|
|
65132
|
-
});
|
|
65133
|
-
inst._zod.check = (payload) => {
|
|
65134
|
-
if (isValidBase64(payload.value))
|
|
65135
|
-
return;
|
|
65136
|
-
payload.issues.push({
|
|
65137
|
-
code: "invalid_format",
|
|
65138
|
-
format: "base64",
|
|
65139
|
-
input: payload.value,
|
|
65140
|
-
inst,
|
|
65141
|
-
continue: !def.abort
|
|
65142
|
-
});
|
|
65143
|
-
};
|
|
65144
|
-
});
|
|
65145
|
-
function isValidBase64URL(data2) {
|
|
65146
|
-
if (!base64url.test(data2))
|
|
65147
|
-
return false;
|
|
65148
|
-
const base642 = data2.replace(/[-_]/g, (c2) => c2 === "-" ? "+" : "/");
|
|
65149
|
-
const padded = base642.padEnd(Math.ceil(base642.length / 4) * 4, "=");
|
|
65150
|
-
return isValidBase64(padded);
|
|
65151
|
-
}
|
|
65152
|
-
var $ZodBase64URL = /* @__PURE__ */ $constructor("$ZodBase64URL", (inst, def) => {
|
|
65153
|
-
def.pattern ?? (def.pattern = base64url);
|
|
65154
|
-
$ZodStringFormat.init(inst, def);
|
|
65155
|
-
inst._zod.onattach.push((inst2) => {
|
|
65156
|
-
inst2._zod.bag.contentEncoding = "base64url";
|
|
65157
|
-
});
|
|
65158
|
-
inst._zod.check = (payload) => {
|
|
65159
|
-
if (isValidBase64URL(payload.value))
|
|
65160
|
-
return;
|
|
65161
|
-
payload.issues.push({
|
|
65162
|
-
code: "invalid_format",
|
|
65163
|
-
format: "base64url",
|
|
65164
|
-
input: payload.value,
|
|
65165
|
-
inst,
|
|
65166
|
-
continue: !def.abort
|
|
65167
|
-
});
|
|
65168
|
-
};
|
|
65169
|
-
});
|
|
65170
|
-
var $ZodE164 = /* @__PURE__ */ $constructor("$ZodE164", (inst, def) => {
|
|
65171
|
-
def.pattern ?? (def.pattern = e164);
|
|
65172
|
-
$ZodStringFormat.init(inst, def);
|
|
65173
|
-
});
|
|
65174
|
-
function isValidJWT(token, algorithm = null) {
|
|
65175
|
-
try {
|
|
65176
|
-
const tokensParts = token.split(".");
|
|
65177
|
-
if (tokensParts.length !== 3)
|
|
65178
|
-
return false;
|
|
65179
|
-
const [header] = tokensParts;
|
|
65180
|
-
if (!header)
|
|
65181
|
-
return false;
|
|
65182
|
-
const parsedHeader = JSON.parse(atob(header));
|
|
65183
|
-
if ("typ" in parsedHeader && parsedHeader?.typ !== "JWT")
|
|
65184
|
-
return false;
|
|
65185
|
-
if (!parsedHeader.alg)
|
|
65186
|
-
return false;
|
|
65187
|
-
if (algorithm && (!("alg" in parsedHeader) || parsedHeader.alg !== algorithm))
|
|
65188
|
-
return false;
|
|
65189
|
-
return true;
|
|
65190
|
-
} catch {
|
|
65191
|
-
return false;
|
|
65192
|
-
}
|
|
65193
|
-
}
|
|
65194
|
-
var $ZodJWT = /* @__PURE__ */ $constructor("$ZodJWT", (inst, def) => {
|
|
65195
|
-
$ZodStringFormat.init(inst, def);
|
|
65196
|
-
inst._zod.check = (payload) => {
|
|
65197
|
-
if (isValidJWT(payload.value, def.alg))
|
|
65198
|
-
return;
|
|
65199
|
-
payload.issues.push({
|
|
65200
|
-
code: "invalid_format",
|
|
65201
|
-
format: "jwt",
|
|
65202
|
-
input: payload.value,
|
|
65203
|
-
inst,
|
|
65204
|
-
continue: !def.abort
|
|
65205
|
-
});
|
|
65206
|
-
};
|
|
65207
|
-
});
|
|
65208
64760
|
var $ZodBoolean = /* @__PURE__ */ $constructor("$ZodBoolean", (inst, def) => {
|
|
65209
64761
|
$ZodType.init(inst, def);
|
|
65210
64762
|
inst._zod.pattern = boolean;
|
|
@@ -65230,22 +64782,6 @@ var $ZodAny = /* @__PURE__ */ $constructor("$ZodAny", (inst, def) => {
|
|
|
65230
64782
|
$ZodType.init(inst, def);
|
|
65231
64783
|
inst._zod.parse = (payload) => payload;
|
|
65232
64784
|
});
|
|
65233
|
-
var $ZodUnknown = /* @__PURE__ */ $constructor("$ZodUnknown", (inst, def) => {
|
|
65234
|
-
$ZodType.init(inst, def);
|
|
65235
|
-
inst._zod.parse = (payload) => payload;
|
|
65236
|
-
});
|
|
65237
|
-
var $ZodNever = /* @__PURE__ */ $constructor("$ZodNever", (inst, def) => {
|
|
65238
|
-
$ZodType.init(inst, def);
|
|
65239
|
-
inst._zod.parse = (payload, _ctx) => {
|
|
65240
|
-
payload.issues.push({
|
|
65241
|
-
expected: "never",
|
|
65242
|
-
code: "invalid_type",
|
|
65243
|
-
input: payload.value,
|
|
65244
|
-
inst
|
|
65245
|
-
});
|
|
65246
|
-
return payload;
|
|
65247
|
-
};
|
|
65248
|
-
});
|
|
65249
64785
|
function handleArrayResult(result, final, index) {
|
|
65250
64786
|
if (result.issues.length) {
|
|
65251
64787
|
final.issues.push(...prefixIssues(index, result.issues));
|
|
@@ -65527,81 +65063,6 @@ var $ZodUnion = /* @__PURE__ */ $constructor("$ZodUnion", (inst, def) => {
|
|
|
65527
65063
|
});
|
|
65528
65064
|
};
|
|
65529
65065
|
});
|
|
65530
|
-
var $ZodIntersection = /* @__PURE__ */ $constructor("$ZodIntersection", (inst, def) => {
|
|
65531
|
-
$ZodType.init(inst, def);
|
|
65532
|
-
inst._zod.parse = (payload, ctx) => {
|
|
65533
|
-
const input = payload.value;
|
|
65534
|
-
const left = def.left._zod.run({ value: input, issues: [] }, ctx);
|
|
65535
|
-
const right = def.right._zod.run({ value: input, issues: [] }, ctx);
|
|
65536
|
-
const async = left instanceof Promise || right instanceof Promise;
|
|
65537
|
-
if (async) {
|
|
65538
|
-
return Promise.all([left, right]).then(([left2, right2]) => {
|
|
65539
|
-
return handleIntersectionResults(payload, left2, right2);
|
|
65540
|
-
});
|
|
65541
|
-
}
|
|
65542
|
-
return handleIntersectionResults(payload, left, right);
|
|
65543
|
-
};
|
|
65544
|
-
});
|
|
65545
|
-
function mergeValues(a2, b6) {
|
|
65546
|
-
if (a2 === b6) {
|
|
65547
|
-
return { valid: true, data: a2 };
|
|
65548
|
-
}
|
|
65549
|
-
if (a2 instanceof Date && b6 instanceof Date && +a2 === +b6) {
|
|
65550
|
-
return { valid: true, data: a2 };
|
|
65551
|
-
}
|
|
65552
|
-
if (isPlainObject(a2) && isPlainObject(b6)) {
|
|
65553
|
-
const bKeys = Object.keys(b6);
|
|
65554
|
-
const sharedKeys = Object.keys(a2).filter((key) => bKeys.indexOf(key) !== -1);
|
|
65555
|
-
const newObj = { ...a2, ...b6 };
|
|
65556
|
-
for (const key of sharedKeys) {
|
|
65557
|
-
const sharedValue = mergeValues(a2[key], b6[key]);
|
|
65558
|
-
if (!sharedValue.valid) {
|
|
65559
|
-
return {
|
|
65560
|
-
valid: false,
|
|
65561
|
-
mergeErrorPath: [key, ...sharedValue.mergeErrorPath]
|
|
65562
|
-
};
|
|
65563
|
-
}
|
|
65564
|
-
newObj[key] = sharedValue.data;
|
|
65565
|
-
}
|
|
65566
|
-
return { valid: true, data: newObj };
|
|
65567
|
-
}
|
|
65568
|
-
if (Array.isArray(a2) && Array.isArray(b6)) {
|
|
65569
|
-
if (a2.length !== b6.length) {
|
|
65570
|
-
return { valid: false, mergeErrorPath: [] };
|
|
65571
|
-
}
|
|
65572
|
-
const newArray = [];
|
|
65573
|
-
for (let index = 0; index < a2.length; index++) {
|
|
65574
|
-
const itemA = a2[index];
|
|
65575
|
-
const itemB = b6[index];
|
|
65576
|
-
const sharedValue = mergeValues(itemA, itemB);
|
|
65577
|
-
if (!sharedValue.valid) {
|
|
65578
|
-
return {
|
|
65579
|
-
valid: false,
|
|
65580
|
-
mergeErrorPath: [index, ...sharedValue.mergeErrorPath]
|
|
65581
|
-
};
|
|
65582
|
-
}
|
|
65583
|
-
newArray.push(sharedValue.data);
|
|
65584
|
-
}
|
|
65585
|
-
return { valid: true, data: newArray };
|
|
65586
|
-
}
|
|
65587
|
-
return { valid: false, mergeErrorPath: [] };
|
|
65588
|
-
}
|
|
65589
|
-
function handleIntersectionResults(result, left, right) {
|
|
65590
|
-
if (left.issues.length) {
|
|
65591
|
-
result.issues.push(...left.issues);
|
|
65592
|
-
}
|
|
65593
|
-
if (right.issues.length) {
|
|
65594
|
-
result.issues.push(...right.issues);
|
|
65595
|
-
}
|
|
65596
|
-
if (aborted(result))
|
|
65597
|
-
return result;
|
|
65598
|
-
const merged = mergeValues(left.value, right.value);
|
|
65599
|
-
if (!merged.valid) {
|
|
65600
|
-
throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(merged.mergeErrorPath)}`);
|
|
65601
|
-
}
|
|
65602
|
-
result.value = merged.data;
|
|
65603
|
-
return result;
|
|
65604
|
-
}
|
|
65605
65066
|
var $ZodRecord = /* @__PURE__ */ $constructor("$ZodRecord", (inst, def) => {
|
|
65606
65067
|
$ZodType.init(inst, def);
|
|
65607
65068
|
inst._zod.parse = (payload, ctx) => {
|
|
@@ -65732,24 +65193,6 @@ var $ZodLiteral = /* @__PURE__ */ $constructor("$ZodLiteral", (inst, def) => {
|
|
|
65732
65193
|
return payload;
|
|
65733
65194
|
};
|
|
65734
65195
|
});
|
|
65735
|
-
var $ZodTransform = /* @__PURE__ */ $constructor("$ZodTransform", (inst, def) => {
|
|
65736
|
-
$ZodType.init(inst, def);
|
|
65737
|
-
inst._zod.parse = (payload, _ctx) => {
|
|
65738
|
-
const _out = def.transform(payload.value, payload);
|
|
65739
|
-
if (_ctx.async) {
|
|
65740
|
-
const output = _out instanceof Promise ? _out : Promise.resolve(_out);
|
|
65741
|
-
return output.then((output2) => {
|
|
65742
|
-
payload.value = output2;
|
|
65743
|
-
return payload;
|
|
65744
|
-
});
|
|
65745
|
-
}
|
|
65746
|
-
if (_out instanceof Promise) {
|
|
65747
|
-
throw new $ZodAsyncError();
|
|
65748
|
-
}
|
|
65749
|
-
payload.value = _out;
|
|
65750
|
-
return payload;
|
|
65751
|
-
};
|
|
65752
|
-
});
|
|
65753
65196
|
var $ZodOptional = /* @__PURE__ */ $constructor("$ZodOptional", (inst, def) => {
|
|
65754
65197
|
$ZodType.init(inst, def);
|
|
65755
65198
|
inst._zod.optin = "optional";
|
|
@@ -65810,150 +65253,6 @@ function handleDefaultResult(payload, def) {
|
|
|
65810
65253
|
}
|
|
65811
65254
|
return payload;
|
|
65812
65255
|
}
|
|
65813
|
-
var $ZodPrefault = /* @__PURE__ */ $constructor("$ZodPrefault", (inst, def) => {
|
|
65814
|
-
$ZodType.init(inst, def);
|
|
65815
|
-
inst._zod.optin = "optional";
|
|
65816
|
-
defineLazy(inst._zod, "values", () => def.innerType._zod.values);
|
|
65817
|
-
inst._zod.parse = (payload, ctx) => {
|
|
65818
|
-
if (payload.value === void 0) {
|
|
65819
|
-
payload.value = def.defaultValue;
|
|
65820
|
-
}
|
|
65821
|
-
return def.innerType._zod.run(payload, ctx);
|
|
65822
|
-
};
|
|
65823
|
-
});
|
|
65824
|
-
var $ZodNonOptional = /* @__PURE__ */ $constructor("$ZodNonOptional", (inst, def) => {
|
|
65825
|
-
$ZodType.init(inst, def);
|
|
65826
|
-
defineLazy(inst._zod, "values", () => {
|
|
65827
|
-
const v4 = def.innerType._zod.values;
|
|
65828
|
-
return v4 ? new Set([...v4].filter((x5) => x5 !== void 0)) : void 0;
|
|
65829
|
-
});
|
|
65830
|
-
inst._zod.parse = (payload, ctx) => {
|
|
65831
|
-
const result = def.innerType._zod.run(payload, ctx);
|
|
65832
|
-
if (result instanceof Promise) {
|
|
65833
|
-
return result.then((result2) => handleNonOptionalResult(result2, inst));
|
|
65834
|
-
}
|
|
65835
|
-
return handleNonOptionalResult(result, inst);
|
|
65836
|
-
};
|
|
65837
|
-
});
|
|
65838
|
-
function handleNonOptionalResult(payload, inst) {
|
|
65839
|
-
if (!payload.issues.length && payload.value === void 0) {
|
|
65840
|
-
payload.issues.push({
|
|
65841
|
-
code: "invalid_type",
|
|
65842
|
-
expected: "nonoptional",
|
|
65843
|
-
input: payload.value,
|
|
65844
|
-
inst
|
|
65845
|
-
});
|
|
65846
|
-
}
|
|
65847
|
-
return payload;
|
|
65848
|
-
}
|
|
65849
|
-
var $ZodCatch = /* @__PURE__ */ $constructor("$ZodCatch", (inst, def) => {
|
|
65850
|
-
$ZodType.init(inst, def);
|
|
65851
|
-
inst._zod.optin = "optional";
|
|
65852
|
-
defineLazy(inst._zod, "optout", () => def.innerType._zod.optout);
|
|
65853
|
-
defineLazy(inst._zod, "values", () => def.innerType._zod.values);
|
|
65854
|
-
inst._zod.parse = (payload, ctx) => {
|
|
65855
|
-
const result = def.innerType._zod.run(payload, ctx);
|
|
65856
|
-
if (result instanceof Promise) {
|
|
65857
|
-
return result.then((result2) => {
|
|
65858
|
-
payload.value = result2.value;
|
|
65859
|
-
if (result2.issues.length) {
|
|
65860
|
-
payload.value = def.catchValue({
|
|
65861
|
-
...payload,
|
|
65862
|
-
error: {
|
|
65863
|
-
issues: result2.issues.map((iss) => finalizeIssue(iss, ctx, config()))
|
|
65864
|
-
},
|
|
65865
|
-
input: payload.value
|
|
65866
|
-
});
|
|
65867
|
-
payload.issues = [];
|
|
65868
|
-
}
|
|
65869
|
-
return payload;
|
|
65870
|
-
});
|
|
65871
|
-
}
|
|
65872
|
-
payload.value = result.value;
|
|
65873
|
-
if (result.issues.length) {
|
|
65874
|
-
payload.value = def.catchValue({
|
|
65875
|
-
...payload,
|
|
65876
|
-
error: {
|
|
65877
|
-
issues: result.issues.map((iss) => finalizeIssue(iss, ctx, config()))
|
|
65878
|
-
},
|
|
65879
|
-
input: payload.value
|
|
65880
|
-
});
|
|
65881
|
-
payload.issues = [];
|
|
65882
|
-
}
|
|
65883
|
-
return payload;
|
|
65884
|
-
};
|
|
65885
|
-
});
|
|
65886
|
-
var $ZodPipe = /* @__PURE__ */ $constructor("$ZodPipe", (inst, def) => {
|
|
65887
|
-
$ZodType.init(inst, def);
|
|
65888
|
-
defineLazy(inst._zod, "values", () => def.in._zod.values);
|
|
65889
|
-
defineLazy(inst._zod, "optin", () => def.in._zod.optin);
|
|
65890
|
-
defineLazy(inst._zod, "optout", () => def.out._zod.optout);
|
|
65891
|
-
defineLazy(inst._zod, "propValues", () => def.in._zod.propValues);
|
|
65892
|
-
inst._zod.parse = (payload, ctx) => {
|
|
65893
|
-
const left = def.in._zod.run(payload, ctx);
|
|
65894
|
-
if (left instanceof Promise) {
|
|
65895
|
-
return left.then((left2) => handlePipeResult(left2, def, ctx));
|
|
65896
|
-
}
|
|
65897
|
-
return handlePipeResult(left, def, ctx);
|
|
65898
|
-
};
|
|
65899
|
-
});
|
|
65900
|
-
function handlePipeResult(left, def, ctx) {
|
|
65901
|
-
if (aborted(left)) {
|
|
65902
|
-
return left;
|
|
65903
|
-
}
|
|
65904
|
-
return def.out._zod.run({ value: left.value, issues: left.issues }, ctx);
|
|
65905
|
-
}
|
|
65906
|
-
var $ZodReadonly = /* @__PURE__ */ $constructor("$ZodReadonly", (inst, def) => {
|
|
65907
|
-
$ZodType.init(inst, def);
|
|
65908
|
-
defineLazy(inst._zod, "propValues", () => def.innerType._zod.propValues);
|
|
65909
|
-
defineLazy(inst._zod, "values", () => def.innerType._zod.values);
|
|
65910
|
-
defineLazy(inst._zod, "optin", () => def.innerType._zod.optin);
|
|
65911
|
-
defineLazy(inst._zod, "optout", () => def.innerType._zod.optout);
|
|
65912
|
-
inst._zod.parse = (payload, ctx) => {
|
|
65913
|
-
const result = def.innerType._zod.run(payload, ctx);
|
|
65914
|
-
if (result instanceof Promise) {
|
|
65915
|
-
return result.then(handleReadonlyResult);
|
|
65916
|
-
}
|
|
65917
|
-
return handleReadonlyResult(result);
|
|
65918
|
-
};
|
|
65919
|
-
});
|
|
65920
|
-
function handleReadonlyResult(payload) {
|
|
65921
|
-
payload.value = Object.freeze(payload.value);
|
|
65922
|
-
return payload;
|
|
65923
|
-
}
|
|
65924
|
-
var $ZodCustom = /* @__PURE__ */ $constructor("$ZodCustom", (inst, def) => {
|
|
65925
|
-
$ZodCheck.init(inst, def);
|
|
65926
|
-
$ZodType.init(inst, def);
|
|
65927
|
-
inst._zod.parse = (payload, _5) => {
|
|
65928
|
-
return payload;
|
|
65929
|
-
};
|
|
65930
|
-
inst._zod.check = (payload) => {
|
|
65931
|
-
const input = payload.value;
|
|
65932
|
-
const r5 = def.fn(input);
|
|
65933
|
-
if (r5 instanceof Promise) {
|
|
65934
|
-
return r5.then((r6) => handleRefineResult(r6, payload, input, inst));
|
|
65935
|
-
}
|
|
65936
|
-
handleRefineResult(r5, payload, input, inst);
|
|
65937
|
-
return;
|
|
65938
|
-
};
|
|
65939
|
-
});
|
|
65940
|
-
function handleRefineResult(result, payload, input, inst) {
|
|
65941
|
-
if (!result) {
|
|
65942
|
-
const _iss = {
|
|
65943
|
-
code: "custom",
|
|
65944
|
-
input,
|
|
65945
|
-
inst,
|
|
65946
|
-
// incorporates params.error into issue reporting
|
|
65947
|
-
path: [...inst._zod.def.path ?? []],
|
|
65948
|
-
// incorporates params.error into issue reporting
|
|
65949
|
-
continue: !inst._zod.def.abort
|
|
65950
|
-
// params: inst._zod.def.params,
|
|
65951
|
-
};
|
|
65952
|
-
if (inst._zod.def.params)
|
|
65953
|
-
_iss.params = inst._zod.def.params;
|
|
65954
|
-
payload.issues.push(issue(_iss));
|
|
65955
|
-
}
|
|
65956
|
-
}
|
|
65957
65256
|
|
|
65958
65257
|
// ../../node_modules/.pnpm/zod@4.0.5/node_modules/zod/v4/core/registries.js
|
|
65959
65258
|
init_cjs_shims();
|
|
@@ -66004,7 +65303,6 @@ var $ZodRegistry = class {
|
|
|
66004
65303
|
function registry() {
|
|
66005
65304
|
return new $ZodRegistry();
|
|
66006
65305
|
}
|
|
66007
|
-
var globalRegistry = /* @__PURE__ */ registry();
|
|
66008
65306
|
|
|
66009
65307
|
// ../../node_modules/.pnpm/zod@4.0.5/node_modules/zod/v4/core/api.js
|
|
66010
65308
|
init_cjs_shims();
|
|
@@ -66014,63 +65312,6 @@ function _string(Class2, params) {
|
|
|
66014
65312
|
...normalizeParams(params)
|
|
66015
65313
|
});
|
|
66016
65314
|
}
|
|
66017
|
-
function _email(Class2, params) {
|
|
66018
|
-
return new Class2({
|
|
66019
|
-
type: "string",
|
|
66020
|
-
format: "email",
|
|
66021
|
-
check: "string_format",
|
|
66022
|
-
abort: false,
|
|
66023
|
-
...normalizeParams(params)
|
|
66024
|
-
});
|
|
66025
|
-
}
|
|
66026
|
-
function _guid(Class2, params) {
|
|
66027
|
-
return new Class2({
|
|
66028
|
-
type: "string",
|
|
66029
|
-
format: "guid",
|
|
66030
|
-
check: "string_format",
|
|
66031
|
-
abort: false,
|
|
66032
|
-
...normalizeParams(params)
|
|
66033
|
-
});
|
|
66034
|
-
}
|
|
66035
|
-
function _uuid(Class2, params) {
|
|
66036
|
-
return new Class2({
|
|
66037
|
-
type: "string",
|
|
66038
|
-
format: "uuid",
|
|
66039
|
-
check: "string_format",
|
|
66040
|
-
abort: false,
|
|
66041
|
-
...normalizeParams(params)
|
|
66042
|
-
});
|
|
66043
|
-
}
|
|
66044
|
-
function _uuidv4(Class2, params) {
|
|
66045
|
-
return new Class2({
|
|
66046
|
-
type: "string",
|
|
66047
|
-
format: "uuid",
|
|
66048
|
-
check: "string_format",
|
|
66049
|
-
abort: false,
|
|
66050
|
-
version: "v4",
|
|
66051
|
-
...normalizeParams(params)
|
|
66052
|
-
});
|
|
66053
|
-
}
|
|
66054
|
-
function _uuidv6(Class2, params) {
|
|
66055
|
-
return new Class2({
|
|
66056
|
-
type: "string",
|
|
66057
|
-
format: "uuid",
|
|
66058
|
-
check: "string_format",
|
|
66059
|
-
abort: false,
|
|
66060
|
-
version: "v6",
|
|
66061
|
-
...normalizeParams(params)
|
|
66062
|
-
});
|
|
66063
|
-
}
|
|
66064
|
-
function _uuidv7(Class2, params) {
|
|
66065
|
-
return new Class2({
|
|
66066
|
-
type: "string",
|
|
66067
|
-
format: "uuid",
|
|
66068
|
-
check: "string_format",
|
|
66069
|
-
abort: false,
|
|
66070
|
-
version: "v7",
|
|
66071
|
-
...normalizeParams(params)
|
|
66072
|
-
});
|
|
66073
|
-
}
|
|
66074
65315
|
function _url(Class2, params) {
|
|
66075
65316
|
return new Class2({
|
|
66076
65317
|
type: "string",
|
|
@@ -66080,177 +65321,6 @@ function _url(Class2, params) {
|
|
|
66080
65321
|
...normalizeParams(params)
|
|
66081
65322
|
});
|
|
66082
65323
|
}
|
|
66083
|
-
function _emoji2(Class2, params) {
|
|
66084
|
-
return new Class2({
|
|
66085
|
-
type: "string",
|
|
66086
|
-
format: "emoji",
|
|
66087
|
-
check: "string_format",
|
|
66088
|
-
abort: false,
|
|
66089
|
-
...normalizeParams(params)
|
|
66090
|
-
});
|
|
66091
|
-
}
|
|
66092
|
-
function _nanoid(Class2, params) {
|
|
66093
|
-
return new Class2({
|
|
66094
|
-
type: "string",
|
|
66095
|
-
format: "nanoid",
|
|
66096
|
-
check: "string_format",
|
|
66097
|
-
abort: false,
|
|
66098
|
-
...normalizeParams(params)
|
|
66099
|
-
});
|
|
66100
|
-
}
|
|
66101
|
-
function _cuid(Class2, params) {
|
|
66102
|
-
return new Class2({
|
|
66103
|
-
type: "string",
|
|
66104
|
-
format: "cuid",
|
|
66105
|
-
check: "string_format",
|
|
66106
|
-
abort: false,
|
|
66107
|
-
...normalizeParams(params)
|
|
66108
|
-
});
|
|
66109
|
-
}
|
|
66110
|
-
function _cuid2(Class2, params) {
|
|
66111
|
-
return new Class2({
|
|
66112
|
-
type: "string",
|
|
66113
|
-
format: "cuid2",
|
|
66114
|
-
check: "string_format",
|
|
66115
|
-
abort: false,
|
|
66116
|
-
...normalizeParams(params)
|
|
66117
|
-
});
|
|
66118
|
-
}
|
|
66119
|
-
function _ulid(Class2, params) {
|
|
66120
|
-
return new Class2({
|
|
66121
|
-
type: "string",
|
|
66122
|
-
format: "ulid",
|
|
66123
|
-
check: "string_format",
|
|
66124
|
-
abort: false,
|
|
66125
|
-
...normalizeParams(params)
|
|
66126
|
-
});
|
|
66127
|
-
}
|
|
66128
|
-
function _xid(Class2, params) {
|
|
66129
|
-
return new Class2({
|
|
66130
|
-
type: "string",
|
|
66131
|
-
format: "xid",
|
|
66132
|
-
check: "string_format",
|
|
66133
|
-
abort: false,
|
|
66134
|
-
...normalizeParams(params)
|
|
66135
|
-
});
|
|
66136
|
-
}
|
|
66137
|
-
function _ksuid(Class2, params) {
|
|
66138
|
-
return new Class2({
|
|
66139
|
-
type: "string",
|
|
66140
|
-
format: "ksuid",
|
|
66141
|
-
check: "string_format",
|
|
66142
|
-
abort: false,
|
|
66143
|
-
...normalizeParams(params)
|
|
66144
|
-
});
|
|
66145
|
-
}
|
|
66146
|
-
function _ipv4(Class2, params) {
|
|
66147
|
-
return new Class2({
|
|
66148
|
-
type: "string",
|
|
66149
|
-
format: "ipv4",
|
|
66150
|
-
check: "string_format",
|
|
66151
|
-
abort: false,
|
|
66152
|
-
...normalizeParams(params)
|
|
66153
|
-
});
|
|
66154
|
-
}
|
|
66155
|
-
function _ipv6(Class2, params) {
|
|
66156
|
-
return new Class2({
|
|
66157
|
-
type: "string",
|
|
66158
|
-
format: "ipv6",
|
|
66159
|
-
check: "string_format",
|
|
66160
|
-
abort: false,
|
|
66161
|
-
...normalizeParams(params)
|
|
66162
|
-
});
|
|
66163
|
-
}
|
|
66164
|
-
function _cidrv4(Class2, params) {
|
|
66165
|
-
return new Class2({
|
|
66166
|
-
type: "string",
|
|
66167
|
-
format: "cidrv4",
|
|
66168
|
-
check: "string_format",
|
|
66169
|
-
abort: false,
|
|
66170
|
-
...normalizeParams(params)
|
|
66171
|
-
});
|
|
66172
|
-
}
|
|
66173
|
-
function _cidrv6(Class2, params) {
|
|
66174
|
-
return new Class2({
|
|
66175
|
-
type: "string",
|
|
66176
|
-
format: "cidrv6",
|
|
66177
|
-
check: "string_format",
|
|
66178
|
-
abort: false,
|
|
66179
|
-
...normalizeParams(params)
|
|
66180
|
-
});
|
|
66181
|
-
}
|
|
66182
|
-
function _base64(Class2, params) {
|
|
66183
|
-
return new Class2({
|
|
66184
|
-
type: "string",
|
|
66185
|
-
format: "base64",
|
|
66186
|
-
check: "string_format",
|
|
66187
|
-
abort: false,
|
|
66188
|
-
...normalizeParams(params)
|
|
66189
|
-
});
|
|
66190
|
-
}
|
|
66191
|
-
function _base64url(Class2, params) {
|
|
66192
|
-
return new Class2({
|
|
66193
|
-
type: "string",
|
|
66194
|
-
format: "base64url",
|
|
66195
|
-
check: "string_format",
|
|
66196
|
-
abort: false,
|
|
66197
|
-
...normalizeParams(params)
|
|
66198
|
-
});
|
|
66199
|
-
}
|
|
66200
|
-
function _e164(Class2, params) {
|
|
66201
|
-
return new Class2({
|
|
66202
|
-
type: "string",
|
|
66203
|
-
format: "e164",
|
|
66204
|
-
check: "string_format",
|
|
66205
|
-
abort: false,
|
|
66206
|
-
...normalizeParams(params)
|
|
66207
|
-
});
|
|
66208
|
-
}
|
|
66209
|
-
function _jwt(Class2, params) {
|
|
66210
|
-
return new Class2({
|
|
66211
|
-
type: "string",
|
|
66212
|
-
format: "jwt",
|
|
66213
|
-
check: "string_format",
|
|
66214
|
-
abort: false,
|
|
66215
|
-
...normalizeParams(params)
|
|
66216
|
-
});
|
|
66217
|
-
}
|
|
66218
|
-
function _isoDateTime(Class2, params) {
|
|
66219
|
-
return new Class2({
|
|
66220
|
-
type: "string",
|
|
66221
|
-
format: "datetime",
|
|
66222
|
-
check: "string_format",
|
|
66223
|
-
offset: false,
|
|
66224
|
-
local: false,
|
|
66225
|
-
precision: null,
|
|
66226
|
-
...normalizeParams(params)
|
|
66227
|
-
});
|
|
66228
|
-
}
|
|
66229
|
-
function _isoDate(Class2, params) {
|
|
66230
|
-
return new Class2({
|
|
66231
|
-
type: "string",
|
|
66232
|
-
format: "date",
|
|
66233
|
-
check: "string_format",
|
|
66234
|
-
...normalizeParams(params)
|
|
66235
|
-
});
|
|
66236
|
-
}
|
|
66237
|
-
function _isoTime(Class2, params) {
|
|
66238
|
-
return new Class2({
|
|
66239
|
-
type: "string",
|
|
66240
|
-
format: "time",
|
|
66241
|
-
check: "string_format",
|
|
66242
|
-
precision: null,
|
|
66243
|
-
...normalizeParams(params)
|
|
66244
|
-
});
|
|
66245
|
-
}
|
|
66246
|
-
function _isoDuration(Class2, params) {
|
|
66247
|
-
return new Class2({
|
|
66248
|
-
type: "string",
|
|
66249
|
-
format: "duration",
|
|
66250
|
-
check: "string_format",
|
|
66251
|
-
...normalizeParams(params)
|
|
66252
|
-
});
|
|
66253
|
-
}
|
|
66254
65324
|
function _boolean(Class2, params) {
|
|
66255
65325
|
return new Class2({
|
|
66256
65326
|
type: "boolean",
|
|
@@ -66262,32 +65332,6 @@ function _any(Class2) {
|
|
|
66262
65332
|
type: "any"
|
|
66263
65333
|
});
|
|
66264
65334
|
}
|
|
66265
|
-
function _unknown(Class2) {
|
|
66266
|
-
return new Class2({
|
|
66267
|
-
type: "unknown"
|
|
66268
|
-
});
|
|
66269
|
-
}
|
|
66270
|
-
function _never(Class2, params) {
|
|
66271
|
-
return new Class2({
|
|
66272
|
-
type: "never",
|
|
66273
|
-
...normalizeParams(params)
|
|
66274
|
-
});
|
|
66275
|
-
}
|
|
66276
|
-
function _maxLength(maximum, params) {
|
|
66277
|
-
const ch = new $ZodCheckMaxLength({
|
|
66278
|
-
check: "max_length",
|
|
66279
|
-
...normalizeParams(params),
|
|
66280
|
-
maximum
|
|
66281
|
-
});
|
|
66282
|
-
return ch;
|
|
66283
|
-
}
|
|
66284
|
-
function _minLength(minimum, params) {
|
|
66285
|
-
return new $ZodCheckMinLength({
|
|
66286
|
-
check: "min_length",
|
|
66287
|
-
...normalizeParams(params),
|
|
66288
|
-
minimum
|
|
66289
|
-
});
|
|
66290
|
-
}
|
|
66291
65335
|
function _length(length, params) {
|
|
66292
65336
|
return new $ZodCheckLengthEquals({
|
|
66293
65337
|
check: "length_equals",
|
|
@@ -66303,168 +65347,33 @@ function _regex(pattern, params) {
|
|
|
66303
65347
|
pattern
|
|
66304
65348
|
});
|
|
66305
65349
|
}
|
|
66306
|
-
function _lowercase(params) {
|
|
66307
|
-
return new $ZodCheckLowerCase({
|
|
66308
|
-
check: "string_format",
|
|
66309
|
-
format: "lowercase",
|
|
66310
|
-
...normalizeParams(params)
|
|
66311
|
-
});
|
|
66312
|
-
}
|
|
66313
|
-
function _uppercase(params) {
|
|
66314
|
-
return new $ZodCheckUpperCase({
|
|
66315
|
-
check: "string_format",
|
|
66316
|
-
format: "uppercase",
|
|
66317
|
-
...normalizeParams(params)
|
|
66318
|
-
});
|
|
66319
|
-
}
|
|
66320
|
-
function _includes(includes, params) {
|
|
66321
|
-
return new $ZodCheckIncludes({
|
|
66322
|
-
check: "string_format",
|
|
66323
|
-
format: "includes",
|
|
66324
|
-
...normalizeParams(params),
|
|
66325
|
-
includes
|
|
66326
|
-
});
|
|
66327
|
-
}
|
|
66328
|
-
function _startsWith(prefix, params) {
|
|
66329
|
-
return new $ZodCheckStartsWith({
|
|
66330
|
-
check: "string_format",
|
|
66331
|
-
format: "starts_with",
|
|
66332
|
-
...normalizeParams(params),
|
|
66333
|
-
prefix
|
|
66334
|
-
});
|
|
66335
|
-
}
|
|
66336
|
-
function _endsWith(suffix, params) {
|
|
66337
|
-
return new $ZodCheckEndsWith({
|
|
66338
|
-
check: "string_format",
|
|
66339
|
-
format: "ends_with",
|
|
66340
|
-
...normalizeParams(params),
|
|
66341
|
-
suffix
|
|
66342
|
-
});
|
|
66343
|
-
}
|
|
66344
65350
|
function _overwrite(tx) {
|
|
66345
65351
|
return new $ZodCheckOverwrite({
|
|
66346
65352
|
check: "overwrite",
|
|
66347
65353
|
tx
|
|
66348
65354
|
});
|
|
66349
65355
|
}
|
|
66350
|
-
function _normalize(form) {
|
|
66351
|
-
return _overwrite((input) => input.normalize(form));
|
|
66352
|
-
}
|
|
66353
65356
|
function _trim() {
|
|
66354
65357
|
return _overwrite((input) => input.trim());
|
|
66355
65358
|
}
|
|
66356
65359
|
function _toLowerCase() {
|
|
66357
65360
|
return _overwrite((input) => input.toLowerCase());
|
|
66358
65361
|
}
|
|
66359
|
-
function _toUpperCase() {
|
|
66360
|
-
return _overwrite((input) => input.toUpperCase());
|
|
66361
|
-
}
|
|
66362
|
-
function _array(Class2, element, params) {
|
|
66363
|
-
return new Class2({
|
|
66364
|
-
type: "array",
|
|
66365
|
-
element,
|
|
66366
|
-
// get element() {
|
|
66367
|
-
// return element;
|
|
66368
|
-
// },
|
|
66369
|
-
...normalizeParams(params)
|
|
66370
|
-
});
|
|
66371
|
-
}
|
|
66372
|
-
function _refine(Class2, fn2, _params) {
|
|
66373
|
-
const schema = new Class2({
|
|
66374
|
-
type: "custom",
|
|
66375
|
-
check: "custom",
|
|
66376
|
-
fn: fn2,
|
|
66377
|
-
...normalizeParams(_params)
|
|
66378
|
-
});
|
|
66379
|
-
return schema;
|
|
66380
|
-
}
|
|
66381
65362
|
|
|
66382
|
-
// ../../node_modules/.pnpm/zod@4.0.5/node_modules/zod/v4/
|
|
65363
|
+
// ../../node_modules/.pnpm/zod@4.0.5/node_modules/zod/v4/mini/parse.js
|
|
66383
65364
|
init_cjs_shims();
|
|
66384
65365
|
|
|
66385
|
-
// ../../node_modules/.pnpm/zod@4.0.5/node_modules/zod/v4/
|
|
65366
|
+
// ../../node_modules/.pnpm/zod@4.0.5/node_modules/zod/v4/mini/schemas.js
|
|
66386
65367
|
init_cjs_shims();
|
|
66387
|
-
|
|
66388
|
-
|
|
66389
|
-
|
|
66390
|
-
var ZodISODateTime = /* @__PURE__ */ $constructor("ZodISODateTime", (inst, def) => {
|
|
66391
|
-
$ZodISODateTime.init(inst, def);
|
|
66392
|
-
ZodStringFormat.init(inst, def);
|
|
66393
|
-
});
|
|
66394
|
-
function datetime2(params) {
|
|
66395
|
-
return _isoDateTime(ZodISODateTime, params);
|
|
66396
|
-
}
|
|
66397
|
-
var ZodISODate = /* @__PURE__ */ $constructor("ZodISODate", (inst, def) => {
|
|
66398
|
-
$ZodISODate.init(inst, def);
|
|
66399
|
-
ZodStringFormat.init(inst, def);
|
|
66400
|
-
});
|
|
66401
|
-
function date2(params) {
|
|
66402
|
-
return _isoDate(ZodISODate, params);
|
|
66403
|
-
}
|
|
66404
|
-
var ZodISOTime = /* @__PURE__ */ $constructor("ZodISOTime", (inst, def) => {
|
|
66405
|
-
$ZodISOTime.init(inst, def);
|
|
66406
|
-
ZodStringFormat.init(inst, def);
|
|
66407
|
-
});
|
|
66408
|
-
function time2(params) {
|
|
66409
|
-
return _isoTime(ZodISOTime, params);
|
|
66410
|
-
}
|
|
66411
|
-
var ZodISODuration = /* @__PURE__ */ $constructor("ZodISODuration", (inst, def) => {
|
|
66412
|
-
$ZodISODuration.init(inst, def);
|
|
66413
|
-
ZodStringFormat.init(inst, def);
|
|
66414
|
-
});
|
|
66415
|
-
function duration2(params) {
|
|
66416
|
-
return _isoDuration(ZodISODuration, params);
|
|
66417
|
-
}
|
|
66418
|
-
|
|
66419
|
-
// ../../node_modules/.pnpm/zod@4.0.5/node_modules/zod/v4/classic/parse.js
|
|
66420
|
-
init_cjs_shims();
|
|
66421
|
-
|
|
66422
|
-
// ../../node_modules/.pnpm/zod@4.0.5/node_modules/zod/v4/classic/errors.js
|
|
66423
|
-
init_cjs_shims();
|
|
66424
|
-
var initializer2 = (inst, issues) => {
|
|
66425
|
-
$ZodError.init(inst, issues);
|
|
66426
|
-
inst.name = "ZodError";
|
|
66427
|
-
Object.defineProperties(inst, {
|
|
66428
|
-
format: {
|
|
66429
|
-
value: (mapper) => formatError(inst, mapper)
|
|
66430
|
-
// enumerable: false,
|
|
66431
|
-
},
|
|
66432
|
-
flatten: {
|
|
66433
|
-
value: (mapper) => flattenError(inst, mapper)
|
|
66434
|
-
// enumerable: false,
|
|
66435
|
-
},
|
|
66436
|
-
addIssue: {
|
|
66437
|
-
value: (issue2) => inst.issues.push(issue2)
|
|
66438
|
-
// enumerable: false,
|
|
66439
|
-
},
|
|
66440
|
-
addIssues: {
|
|
66441
|
-
value: (issues2) => inst.issues.push(...issues2)
|
|
66442
|
-
// enumerable: false,
|
|
66443
|
-
},
|
|
66444
|
-
isEmpty: {
|
|
66445
|
-
get() {
|
|
66446
|
-
return inst.issues.length === 0;
|
|
66447
|
-
}
|
|
66448
|
-
// enumerable: false,
|
|
66449
|
-
}
|
|
66450
|
-
});
|
|
66451
|
-
};
|
|
66452
|
-
var ZodError = $constructor("ZodError", initializer2);
|
|
66453
|
-
var ZodRealError = $constructor("ZodError", initializer2, {
|
|
66454
|
-
Parent: Error
|
|
66455
|
-
});
|
|
66456
|
-
|
|
66457
|
-
// ../../node_modules/.pnpm/zod@4.0.5/node_modules/zod/v4/classic/parse.js
|
|
66458
|
-
var parse = /* @__PURE__ */ _parse(ZodRealError);
|
|
66459
|
-
var parseAsync = /* @__PURE__ */ _parseAsync(ZodRealError);
|
|
66460
|
-
var safeParse2 = /* @__PURE__ */ _safeParse(ZodRealError);
|
|
66461
|
-
var safeParseAsync2 = /* @__PURE__ */ _safeParseAsync(ZodRealError);
|
|
66462
|
-
|
|
66463
|
-
// ../../node_modules/.pnpm/zod@4.0.5/node_modules/zod/v4/classic/schemas.js
|
|
66464
|
-
var ZodType = /* @__PURE__ */ $constructor("ZodType", (inst, def) => {
|
|
65368
|
+
var ZodMiniType = /* @__PURE__ */ $constructor("ZodMiniType", (inst, def) => {
|
|
65369
|
+
if (!inst._zod)
|
|
65370
|
+
throw new Error("Uninitialized schema in ZodMiniType.");
|
|
66465
65371
|
$ZodType.init(inst, def);
|
|
66466
65372
|
inst.def = def;
|
|
66467
|
-
|
|
65373
|
+
inst.parse = (data2, params) => parse(inst, data2, params, { callee: inst.parse });
|
|
65374
|
+
inst.safeParse = (data2, params) => safeParse(inst, data2, params);
|
|
65375
|
+
inst.parseAsync = async (data2, params) => parseAsync(inst, data2, params, { callee: inst.parseAsync });
|
|
65376
|
+
inst.safeParseAsync = async (data2, params) => safeParseAsync(inst, data2, params);
|
|
66468
65377
|
inst.check = (...checks) => {
|
|
66469
65378
|
return inst.clone(
|
|
66470
65379
|
{
|
|
@@ -66477,257 +65386,60 @@ var ZodType = /* @__PURE__ */ $constructor("ZodType", (inst, def) => {
|
|
|
66477
65386
|
// { parent: true }
|
|
66478
65387
|
);
|
|
66479
65388
|
};
|
|
66480
|
-
inst.clone = (
|
|
65389
|
+
inst.clone = (_def, params) => clone(inst, _def, params);
|
|
66481
65390
|
inst.brand = () => inst;
|
|
66482
65391
|
inst.register = (reg, meta) => {
|
|
66483
65392
|
reg.add(inst, meta);
|
|
66484
65393
|
return inst;
|
|
66485
65394
|
};
|
|
66486
|
-
inst.parse = (data2, params) => parse(inst, data2, params, { callee: inst.parse });
|
|
66487
|
-
inst.safeParse = (data2, params) => safeParse2(inst, data2, params);
|
|
66488
|
-
inst.parseAsync = async (data2, params) => parseAsync(inst, data2, params, { callee: inst.parseAsync });
|
|
66489
|
-
inst.safeParseAsync = async (data2, params) => safeParseAsync2(inst, data2, params);
|
|
66490
|
-
inst.spa = inst.safeParseAsync;
|
|
66491
|
-
inst.refine = (check2, params) => inst.check(refine(check2, params));
|
|
66492
|
-
inst.superRefine = (refinement) => inst.check(superRefine(refinement));
|
|
66493
|
-
inst.overwrite = (fn2) => inst.check(_overwrite(fn2));
|
|
66494
|
-
inst.optional = () => optional(inst);
|
|
66495
|
-
inst.nullable = () => nullable(inst);
|
|
66496
|
-
inst.nullish = () => optional(nullable(inst));
|
|
66497
|
-
inst.nonoptional = (params) => nonoptional(inst, params);
|
|
66498
|
-
inst.array = () => array(inst);
|
|
66499
|
-
inst.or = (arg) => union([inst, arg]);
|
|
66500
|
-
inst.and = (arg) => intersection(inst, arg);
|
|
66501
|
-
inst.transform = (tx) => pipe(inst, transform(tx));
|
|
66502
|
-
inst.default = (def2) => _default(inst, def2);
|
|
66503
|
-
inst.prefault = (def2) => prefault(inst, def2);
|
|
66504
|
-
inst.catch = (params) => _catch(inst, params);
|
|
66505
|
-
inst.pipe = (target) => pipe(inst, target);
|
|
66506
|
-
inst.readonly = () => readonly(inst);
|
|
66507
|
-
inst.describe = (description) => {
|
|
66508
|
-
const cl = inst.clone();
|
|
66509
|
-
globalRegistry.add(cl, { description });
|
|
66510
|
-
return cl;
|
|
66511
|
-
};
|
|
66512
|
-
Object.defineProperty(inst, "description", {
|
|
66513
|
-
get() {
|
|
66514
|
-
return globalRegistry.get(inst)?.description;
|
|
66515
|
-
},
|
|
66516
|
-
configurable: true
|
|
66517
|
-
});
|
|
66518
|
-
inst.meta = (...args) => {
|
|
66519
|
-
if (args.length === 0) {
|
|
66520
|
-
return globalRegistry.get(inst);
|
|
66521
|
-
}
|
|
66522
|
-
const cl = inst.clone();
|
|
66523
|
-
globalRegistry.add(cl, args[0]);
|
|
66524
|
-
return cl;
|
|
66525
|
-
};
|
|
66526
|
-
inst.isOptional = () => inst.safeParse(void 0).success;
|
|
66527
|
-
inst.isNullable = () => inst.safeParse(null).success;
|
|
66528
|
-
return inst;
|
|
66529
65395
|
});
|
|
66530
|
-
var
|
|
65396
|
+
var ZodMiniString = /* @__PURE__ */ $constructor("ZodMiniString", (inst, def) => {
|
|
66531
65397
|
$ZodString.init(inst, def);
|
|
66532
|
-
|
|
66533
|
-
const bag = inst._zod.bag;
|
|
66534
|
-
inst.format = bag.format ?? null;
|
|
66535
|
-
inst.minLength = bag.minimum ?? null;
|
|
66536
|
-
inst.maxLength = bag.maximum ?? null;
|
|
66537
|
-
inst.regex = (...args) => inst.check(_regex(...args));
|
|
66538
|
-
inst.includes = (...args) => inst.check(_includes(...args));
|
|
66539
|
-
inst.startsWith = (...args) => inst.check(_startsWith(...args));
|
|
66540
|
-
inst.endsWith = (...args) => inst.check(_endsWith(...args));
|
|
66541
|
-
inst.min = (...args) => inst.check(_minLength(...args));
|
|
66542
|
-
inst.max = (...args) => inst.check(_maxLength(...args));
|
|
66543
|
-
inst.length = (...args) => inst.check(_length(...args));
|
|
66544
|
-
inst.nonempty = (...args) => inst.check(_minLength(1, ...args));
|
|
66545
|
-
inst.lowercase = (params) => inst.check(_lowercase(params));
|
|
66546
|
-
inst.uppercase = (params) => inst.check(_uppercase(params));
|
|
66547
|
-
inst.trim = () => inst.check(_trim());
|
|
66548
|
-
inst.normalize = (...args) => inst.check(_normalize(...args));
|
|
66549
|
-
inst.toLowerCase = () => inst.check(_toLowerCase());
|
|
66550
|
-
inst.toUpperCase = () => inst.check(_toUpperCase());
|
|
66551
|
-
});
|
|
66552
|
-
var ZodString = /* @__PURE__ */ $constructor("ZodString", (inst, def) => {
|
|
66553
|
-
$ZodString.init(inst, def);
|
|
66554
|
-
_ZodString.init(inst, def);
|
|
66555
|
-
inst.email = (params) => inst.check(_email(ZodEmail, params));
|
|
66556
|
-
inst.url = (params) => inst.check(_url(ZodURL, params));
|
|
66557
|
-
inst.jwt = (params) => inst.check(_jwt(ZodJWT, params));
|
|
66558
|
-
inst.emoji = (params) => inst.check(_emoji2(ZodEmoji, params));
|
|
66559
|
-
inst.guid = (params) => inst.check(_guid(ZodGUID, params));
|
|
66560
|
-
inst.uuid = (params) => inst.check(_uuid(ZodUUID, params));
|
|
66561
|
-
inst.uuidv4 = (params) => inst.check(_uuidv4(ZodUUID, params));
|
|
66562
|
-
inst.uuidv6 = (params) => inst.check(_uuidv6(ZodUUID, params));
|
|
66563
|
-
inst.uuidv7 = (params) => inst.check(_uuidv7(ZodUUID, params));
|
|
66564
|
-
inst.nanoid = (params) => inst.check(_nanoid(ZodNanoID, params));
|
|
66565
|
-
inst.guid = (params) => inst.check(_guid(ZodGUID, params));
|
|
66566
|
-
inst.cuid = (params) => inst.check(_cuid(ZodCUID, params));
|
|
66567
|
-
inst.cuid2 = (params) => inst.check(_cuid2(ZodCUID2, params));
|
|
66568
|
-
inst.ulid = (params) => inst.check(_ulid(ZodULID, params));
|
|
66569
|
-
inst.base64 = (params) => inst.check(_base64(ZodBase64, params));
|
|
66570
|
-
inst.base64url = (params) => inst.check(_base64url(ZodBase64URL, params));
|
|
66571
|
-
inst.xid = (params) => inst.check(_xid(ZodXID, params));
|
|
66572
|
-
inst.ksuid = (params) => inst.check(_ksuid(ZodKSUID, params));
|
|
66573
|
-
inst.ipv4 = (params) => inst.check(_ipv4(ZodIPv4, params));
|
|
66574
|
-
inst.ipv6 = (params) => inst.check(_ipv6(ZodIPv6, params));
|
|
66575
|
-
inst.cidrv4 = (params) => inst.check(_cidrv4(ZodCIDRv4, params));
|
|
66576
|
-
inst.cidrv6 = (params) => inst.check(_cidrv6(ZodCIDRv6, params));
|
|
66577
|
-
inst.e164 = (params) => inst.check(_e164(ZodE164, params));
|
|
66578
|
-
inst.datetime = (params) => inst.check(datetime2(params));
|
|
66579
|
-
inst.date = (params) => inst.check(date2(params));
|
|
66580
|
-
inst.time = (params) => inst.check(time2(params));
|
|
66581
|
-
inst.duration = (params) => inst.check(duration2(params));
|
|
65398
|
+
ZodMiniType.init(inst, def);
|
|
66582
65399
|
});
|
|
66583
65400
|
function string2(params) {
|
|
66584
|
-
return _string(
|
|
65401
|
+
return _string(ZodMiniString, params);
|
|
66585
65402
|
}
|
|
66586
|
-
var
|
|
65403
|
+
var ZodMiniStringFormat = /* @__PURE__ */ $constructor("ZodMiniStringFormat", (inst, def) => {
|
|
66587
65404
|
$ZodStringFormat.init(inst, def);
|
|
66588
|
-
|
|
66589
|
-
});
|
|
66590
|
-
var ZodEmail = /* @__PURE__ */ $constructor("ZodEmail", (inst, def) => {
|
|
66591
|
-
$ZodEmail.init(inst, def);
|
|
66592
|
-
ZodStringFormat.init(inst, def);
|
|
66593
|
-
});
|
|
66594
|
-
function email2(params) {
|
|
66595
|
-
return _email(ZodEmail, params);
|
|
66596
|
-
}
|
|
66597
|
-
var ZodGUID = /* @__PURE__ */ $constructor("ZodGUID", (inst, def) => {
|
|
66598
|
-
$ZodGUID.init(inst, def);
|
|
66599
|
-
ZodStringFormat.init(inst, def);
|
|
65405
|
+
ZodMiniString.init(inst, def);
|
|
66600
65406
|
});
|
|
66601
|
-
var
|
|
66602
|
-
$ZodUUID.init(inst, def);
|
|
66603
|
-
ZodStringFormat.init(inst, def);
|
|
66604
|
-
});
|
|
66605
|
-
var ZodURL = /* @__PURE__ */ $constructor("ZodURL", (inst, def) => {
|
|
65407
|
+
var ZodMiniURL = /* @__PURE__ */ $constructor("ZodMiniURL", (inst, def) => {
|
|
66606
65408
|
$ZodURL.init(inst, def);
|
|
66607
|
-
|
|
65409
|
+
ZodMiniStringFormat.init(inst, def);
|
|
66608
65410
|
});
|
|
66609
65411
|
function url(params) {
|
|
66610
|
-
return _url(
|
|
65412
|
+
return _url(ZodMiniURL, params);
|
|
66611
65413
|
}
|
|
66612
|
-
var
|
|
66613
|
-
$ZodEmoji.init(inst, def);
|
|
66614
|
-
ZodStringFormat.init(inst, def);
|
|
66615
|
-
});
|
|
66616
|
-
var ZodNanoID = /* @__PURE__ */ $constructor("ZodNanoID", (inst, def) => {
|
|
66617
|
-
$ZodNanoID.init(inst, def);
|
|
66618
|
-
ZodStringFormat.init(inst, def);
|
|
66619
|
-
});
|
|
66620
|
-
var ZodCUID = /* @__PURE__ */ $constructor("ZodCUID", (inst, def) => {
|
|
66621
|
-
$ZodCUID.init(inst, def);
|
|
66622
|
-
ZodStringFormat.init(inst, def);
|
|
66623
|
-
});
|
|
66624
|
-
var ZodCUID2 = /* @__PURE__ */ $constructor("ZodCUID2", (inst, def) => {
|
|
66625
|
-
$ZodCUID2.init(inst, def);
|
|
66626
|
-
ZodStringFormat.init(inst, def);
|
|
66627
|
-
});
|
|
66628
|
-
var ZodULID = /* @__PURE__ */ $constructor("ZodULID", (inst, def) => {
|
|
66629
|
-
$ZodULID.init(inst, def);
|
|
66630
|
-
ZodStringFormat.init(inst, def);
|
|
66631
|
-
});
|
|
66632
|
-
var ZodXID = /* @__PURE__ */ $constructor("ZodXID", (inst, def) => {
|
|
66633
|
-
$ZodXID.init(inst, def);
|
|
66634
|
-
ZodStringFormat.init(inst, def);
|
|
66635
|
-
});
|
|
66636
|
-
var ZodKSUID = /* @__PURE__ */ $constructor("ZodKSUID", (inst, def) => {
|
|
66637
|
-
$ZodKSUID.init(inst, def);
|
|
66638
|
-
ZodStringFormat.init(inst, def);
|
|
66639
|
-
});
|
|
66640
|
-
var ZodIPv4 = /* @__PURE__ */ $constructor("ZodIPv4", (inst, def) => {
|
|
66641
|
-
$ZodIPv4.init(inst, def);
|
|
66642
|
-
ZodStringFormat.init(inst, def);
|
|
66643
|
-
});
|
|
66644
|
-
var ZodIPv6 = /* @__PURE__ */ $constructor("ZodIPv6", (inst, def) => {
|
|
66645
|
-
$ZodIPv6.init(inst, def);
|
|
66646
|
-
ZodStringFormat.init(inst, def);
|
|
66647
|
-
});
|
|
66648
|
-
var ZodCIDRv4 = /* @__PURE__ */ $constructor("ZodCIDRv4", (inst, def) => {
|
|
66649
|
-
$ZodCIDRv4.init(inst, def);
|
|
66650
|
-
ZodStringFormat.init(inst, def);
|
|
66651
|
-
});
|
|
66652
|
-
var ZodCIDRv6 = /* @__PURE__ */ $constructor("ZodCIDRv6", (inst, def) => {
|
|
66653
|
-
$ZodCIDRv6.init(inst, def);
|
|
66654
|
-
ZodStringFormat.init(inst, def);
|
|
66655
|
-
});
|
|
66656
|
-
var ZodBase64 = /* @__PURE__ */ $constructor("ZodBase64", (inst, def) => {
|
|
66657
|
-
$ZodBase64.init(inst, def);
|
|
66658
|
-
ZodStringFormat.init(inst, def);
|
|
66659
|
-
});
|
|
66660
|
-
var ZodBase64URL = /* @__PURE__ */ $constructor("ZodBase64URL", (inst, def) => {
|
|
66661
|
-
$ZodBase64URL.init(inst, def);
|
|
66662
|
-
ZodStringFormat.init(inst, def);
|
|
66663
|
-
});
|
|
66664
|
-
var ZodE164 = /* @__PURE__ */ $constructor("ZodE164", (inst, def) => {
|
|
66665
|
-
$ZodE164.init(inst, def);
|
|
66666
|
-
ZodStringFormat.init(inst, def);
|
|
66667
|
-
});
|
|
66668
|
-
var ZodJWT = /* @__PURE__ */ $constructor("ZodJWT", (inst, def) => {
|
|
66669
|
-
$ZodJWT.init(inst, def);
|
|
66670
|
-
ZodStringFormat.init(inst, def);
|
|
66671
|
-
});
|
|
66672
|
-
var ZodBoolean = /* @__PURE__ */ $constructor("ZodBoolean", (inst, def) => {
|
|
65414
|
+
var ZodMiniBoolean = /* @__PURE__ */ $constructor("ZodMiniBoolean", (inst, def) => {
|
|
66673
65415
|
$ZodBoolean.init(inst, def);
|
|
66674
|
-
|
|
65416
|
+
ZodMiniType.init(inst, def);
|
|
66675
65417
|
});
|
|
66676
65418
|
function boolean2(params) {
|
|
66677
|
-
return _boolean(
|
|
65419
|
+
return _boolean(ZodMiniBoolean, params);
|
|
66678
65420
|
}
|
|
66679
|
-
var
|
|
65421
|
+
var ZodMiniAny = /* @__PURE__ */ $constructor("ZodMiniAny", (inst, def) => {
|
|
66680
65422
|
$ZodAny.init(inst, def);
|
|
66681
|
-
|
|
65423
|
+
ZodMiniType.init(inst, def);
|
|
66682
65424
|
});
|
|
66683
65425
|
function any() {
|
|
66684
|
-
return _any(
|
|
66685
|
-
}
|
|
66686
|
-
var ZodUnknown = /* @__PURE__ */ $constructor("ZodUnknown", (inst, def) => {
|
|
66687
|
-
$ZodUnknown.init(inst, def);
|
|
66688
|
-
ZodType.init(inst, def);
|
|
66689
|
-
});
|
|
66690
|
-
function unknown() {
|
|
66691
|
-
return _unknown(ZodUnknown);
|
|
66692
|
-
}
|
|
66693
|
-
var ZodNever = /* @__PURE__ */ $constructor("ZodNever", (inst, def) => {
|
|
66694
|
-
$ZodNever.init(inst, def);
|
|
66695
|
-
ZodType.init(inst, def);
|
|
66696
|
-
});
|
|
66697
|
-
function never(params) {
|
|
66698
|
-
return _never(ZodNever, params);
|
|
65426
|
+
return _any(ZodMiniAny);
|
|
66699
65427
|
}
|
|
66700
|
-
var
|
|
65428
|
+
var ZodMiniArray = /* @__PURE__ */ $constructor("ZodMiniArray", (inst, def) => {
|
|
66701
65429
|
$ZodArray.init(inst, def);
|
|
66702
|
-
|
|
66703
|
-
inst.element = def.element;
|
|
66704
|
-
inst.min = (minLength, params) => inst.check(_minLength(minLength, params));
|
|
66705
|
-
inst.nonempty = (params) => inst.check(_minLength(1, params));
|
|
66706
|
-
inst.max = (maxLength, params) => inst.check(_maxLength(maxLength, params));
|
|
66707
|
-
inst.length = (len, params) => inst.check(_length(len, params));
|
|
66708
|
-
inst.unwrap = () => inst.element;
|
|
65430
|
+
ZodMiniType.init(inst, def);
|
|
66709
65431
|
});
|
|
66710
65432
|
function array(element, params) {
|
|
66711
|
-
return
|
|
65433
|
+
return new ZodMiniArray({
|
|
65434
|
+
type: "array",
|
|
65435
|
+
element,
|
|
65436
|
+
...util_exports.normalizeParams(params)
|
|
65437
|
+
});
|
|
66712
65438
|
}
|
|
66713
|
-
var
|
|
65439
|
+
var ZodMiniObject = /* @__PURE__ */ $constructor("ZodMiniObject", (inst, def) => {
|
|
66714
65440
|
$ZodObject.init(inst, def);
|
|
66715
|
-
|
|
65441
|
+
ZodMiniType.init(inst, def);
|
|
66716
65442
|
util_exports.defineLazy(inst, "shape", () => def.shape);
|
|
66717
|
-
inst.keyof = () => _enum(Object.keys(inst._zod.def.shape));
|
|
66718
|
-
inst.catchall = (catchall) => inst.clone({ ...inst._zod.def, catchall });
|
|
66719
|
-
inst.passthrough = () => inst.clone({ ...inst._zod.def, catchall: unknown() });
|
|
66720
|
-
inst.loose = () => inst.clone({ ...inst._zod.def, catchall: unknown() });
|
|
66721
|
-
inst.strict = () => inst.clone({ ...inst._zod.def, catchall: never() });
|
|
66722
|
-
inst.strip = () => inst.clone({ ...inst._zod.def, catchall: void 0 });
|
|
66723
|
-
inst.extend = (incoming) => {
|
|
66724
|
-
return util_exports.extend(inst, incoming);
|
|
66725
|
-
};
|
|
66726
|
-
inst.merge = (other) => util_exports.merge(inst, other);
|
|
66727
|
-
inst.pick = (mask) => util_exports.pick(inst, mask);
|
|
66728
|
-
inst.omit = (mask) => util_exports.omit(inst, mask);
|
|
66729
|
-
inst.partial = (...args) => util_exports.partial(ZodOptional, inst, args[0]);
|
|
66730
|
-
inst.required = (...args) => util_exports.required(ZodNonOptional, inst, args[0]);
|
|
66731
65443
|
});
|
|
66732
65444
|
function object(shape, params) {
|
|
66733
65445
|
const def = {
|
|
@@ -66738,175 +65450,80 @@ function object(shape, params) {
|
|
|
66738
65450
|
},
|
|
66739
65451
|
...util_exports.normalizeParams(params)
|
|
66740
65452
|
};
|
|
66741
|
-
return new
|
|
65453
|
+
return new ZodMiniObject(def);
|
|
66742
65454
|
}
|
|
66743
|
-
var
|
|
65455
|
+
var ZodMiniUnion = /* @__PURE__ */ $constructor("ZodMiniUnion", (inst, def) => {
|
|
66744
65456
|
$ZodUnion.init(inst, def);
|
|
66745
|
-
|
|
66746
|
-
inst.options = def.options;
|
|
65457
|
+
ZodMiniType.init(inst, def);
|
|
66747
65458
|
});
|
|
66748
65459
|
function union(options, params) {
|
|
66749
|
-
return new
|
|
65460
|
+
return new ZodMiniUnion({
|
|
66750
65461
|
type: "union",
|
|
66751
65462
|
options,
|
|
66752
65463
|
...util_exports.normalizeParams(params)
|
|
66753
65464
|
});
|
|
66754
65465
|
}
|
|
66755
|
-
var
|
|
66756
|
-
$ZodIntersection.init(inst, def);
|
|
66757
|
-
ZodType.init(inst, def);
|
|
66758
|
-
});
|
|
66759
|
-
function intersection(left, right) {
|
|
66760
|
-
return new ZodIntersection({
|
|
66761
|
-
type: "intersection",
|
|
66762
|
-
left,
|
|
66763
|
-
right
|
|
66764
|
-
});
|
|
66765
|
-
}
|
|
66766
|
-
var ZodRecord = /* @__PURE__ */ $constructor("ZodRecord", (inst, def) => {
|
|
65466
|
+
var ZodMiniRecord = /* @__PURE__ */ $constructor("ZodMiniRecord", (inst, def) => {
|
|
66767
65467
|
$ZodRecord.init(inst, def);
|
|
66768
|
-
|
|
66769
|
-
inst.keyType = def.keyType;
|
|
66770
|
-
inst.valueType = def.valueType;
|
|
65468
|
+
ZodMiniType.init(inst, def);
|
|
66771
65469
|
});
|
|
66772
65470
|
function record(keyType, valueType, params) {
|
|
66773
|
-
return new
|
|
65471
|
+
return new ZodMiniRecord({
|
|
66774
65472
|
type: "record",
|
|
66775
65473
|
keyType,
|
|
66776
65474
|
valueType,
|
|
66777
65475
|
...util_exports.normalizeParams(params)
|
|
66778
65476
|
});
|
|
66779
65477
|
}
|
|
66780
|
-
var
|
|
65478
|
+
var ZodMiniEnum = /* @__PURE__ */ $constructor("ZodMiniEnum", (inst, def) => {
|
|
66781
65479
|
$ZodEnum.init(inst, def);
|
|
66782
|
-
|
|
66783
|
-
inst.enum = def.entries;
|
|
66784
|
-
inst.options = Object.values(def.entries);
|
|
66785
|
-
const keys = new Set(Object.keys(def.entries));
|
|
66786
|
-
inst.extract = (values, params) => {
|
|
66787
|
-
const newEntries = {};
|
|
66788
|
-
for (const value2 of values) {
|
|
66789
|
-
if (keys.has(value2)) {
|
|
66790
|
-
newEntries[value2] = def.entries[value2];
|
|
66791
|
-
} else
|
|
66792
|
-
throw new Error(`Key ${value2} not found in enum`);
|
|
66793
|
-
}
|
|
66794
|
-
return new ZodEnum({
|
|
66795
|
-
...def,
|
|
66796
|
-
checks: [],
|
|
66797
|
-
...util_exports.normalizeParams(params),
|
|
66798
|
-
entries: newEntries
|
|
66799
|
-
});
|
|
66800
|
-
};
|
|
66801
|
-
inst.exclude = (values, params) => {
|
|
66802
|
-
const newEntries = { ...def.entries };
|
|
66803
|
-
for (const value2 of values) {
|
|
66804
|
-
if (keys.has(value2)) {
|
|
66805
|
-
delete newEntries[value2];
|
|
66806
|
-
} else
|
|
66807
|
-
throw new Error(`Key ${value2} not found in enum`);
|
|
66808
|
-
}
|
|
66809
|
-
return new ZodEnum({
|
|
66810
|
-
...def,
|
|
66811
|
-
checks: [],
|
|
66812
|
-
...util_exports.normalizeParams(params),
|
|
66813
|
-
entries: newEntries
|
|
66814
|
-
});
|
|
66815
|
-
};
|
|
65480
|
+
ZodMiniType.init(inst, def);
|
|
66816
65481
|
});
|
|
66817
65482
|
function _enum(values, params) {
|
|
66818
65483
|
const entries = Array.isArray(values) ? Object.fromEntries(values.map((v4) => [v4, v4])) : values;
|
|
66819
|
-
return new
|
|
65484
|
+
return new ZodMiniEnum({
|
|
66820
65485
|
type: "enum",
|
|
66821
65486
|
entries,
|
|
66822
65487
|
...util_exports.normalizeParams(params)
|
|
66823
65488
|
});
|
|
66824
65489
|
}
|
|
66825
|
-
var
|
|
65490
|
+
var ZodMiniLiteral = /* @__PURE__ */ $constructor("ZodMiniLiteral", (inst, def) => {
|
|
66826
65491
|
$ZodLiteral.init(inst, def);
|
|
66827
|
-
|
|
66828
|
-
inst.values = new Set(def.values);
|
|
66829
|
-
Object.defineProperty(inst, "value", {
|
|
66830
|
-
get() {
|
|
66831
|
-
if (def.values.length > 1) {
|
|
66832
|
-
throw new Error("This schema contains multiple valid literal values. Use `.values` instead.");
|
|
66833
|
-
}
|
|
66834
|
-
return def.values[0];
|
|
66835
|
-
}
|
|
66836
|
-
});
|
|
65492
|
+
ZodMiniType.init(inst, def);
|
|
66837
65493
|
});
|
|
66838
65494
|
function literal(value2, params) {
|
|
66839
|
-
return new
|
|
65495
|
+
return new ZodMiniLiteral({
|
|
66840
65496
|
type: "literal",
|
|
66841
65497
|
values: Array.isArray(value2) ? value2 : [value2],
|
|
66842
65498
|
...util_exports.normalizeParams(params)
|
|
66843
65499
|
});
|
|
66844
65500
|
}
|
|
66845
|
-
var
|
|
66846
|
-
$ZodTransform.init(inst, def);
|
|
66847
|
-
ZodType.init(inst, def);
|
|
66848
|
-
inst._zod.parse = (payload, _ctx) => {
|
|
66849
|
-
payload.addIssue = (issue2) => {
|
|
66850
|
-
if (typeof issue2 === "string") {
|
|
66851
|
-
payload.issues.push(util_exports.issue(issue2, payload.value, def));
|
|
66852
|
-
} else {
|
|
66853
|
-
const _issue = issue2;
|
|
66854
|
-
if (_issue.fatal)
|
|
66855
|
-
_issue.continue = false;
|
|
66856
|
-
_issue.code ?? (_issue.code = "custom");
|
|
66857
|
-
_issue.input ?? (_issue.input = payload.value);
|
|
66858
|
-
_issue.inst ?? (_issue.inst = inst);
|
|
66859
|
-
_issue.continue ?? (_issue.continue = true);
|
|
66860
|
-
payload.issues.push(util_exports.issue(_issue));
|
|
66861
|
-
}
|
|
66862
|
-
};
|
|
66863
|
-
const output = def.transform(payload.value, payload);
|
|
66864
|
-
if (output instanceof Promise) {
|
|
66865
|
-
return output.then((output2) => {
|
|
66866
|
-
payload.value = output2;
|
|
66867
|
-
return payload;
|
|
66868
|
-
});
|
|
66869
|
-
}
|
|
66870
|
-
payload.value = output;
|
|
66871
|
-
return payload;
|
|
66872
|
-
};
|
|
66873
|
-
});
|
|
66874
|
-
function transform(fn2) {
|
|
66875
|
-
return new ZodTransform({
|
|
66876
|
-
type: "transform",
|
|
66877
|
-
transform: fn2
|
|
66878
|
-
});
|
|
66879
|
-
}
|
|
66880
|
-
var ZodOptional = /* @__PURE__ */ $constructor("ZodOptional", (inst, def) => {
|
|
65501
|
+
var ZodMiniOptional = /* @__PURE__ */ $constructor("ZodMiniOptional", (inst, def) => {
|
|
66881
65502
|
$ZodOptional.init(inst, def);
|
|
66882
|
-
|
|
66883
|
-
inst.unwrap = () => inst._zod.def.innerType;
|
|
65503
|
+
ZodMiniType.init(inst, def);
|
|
66884
65504
|
});
|
|
66885
65505
|
function optional(innerType) {
|
|
66886
|
-
return new
|
|
65506
|
+
return new ZodMiniOptional({
|
|
66887
65507
|
type: "optional",
|
|
66888
65508
|
innerType
|
|
66889
65509
|
});
|
|
66890
65510
|
}
|
|
66891
|
-
var
|
|
65511
|
+
var ZodMiniNullable = /* @__PURE__ */ $constructor("ZodMiniNullable", (inst, def) => {
|
|
66892
65512
|
$ZodNullable.init(inst, def);
|
|
66893
|
-
|
|
66894
|
-
inst.unwrap = () => inst._zod.def.innerType;
|
|
65513
|
+
ZodMiniType.init(inst, def);
|
|
66895
65514
|
});
|
|
66896
65515
|
function nullable(innerType) {
|
|
66897
|
-
return new
|
|
65516
|
+
return new ZodMiniNullable({
|
|
66898
65517
|
type: "nullable",
|
|
66899
65518
|
innerType
|
|
66900
65519
|
});
|
|
66901
65520
|
}
|
|
66902
|
-
var
|
|
65521
|
+
var ZodMiniDefault = /* @__PURE__ */ $constructor("ZodMiniDefault", (inst, def) => {
|
|
66903
65522
|
$ZodDefault.init(inst, def);
|
|
66904
|
-
|
|
66905
|
-
inst.unwrap = () => inst._zod.def.innerType;
|
|
66906
|
-
inst.removeDefault = inst.unwrap;
|
|
65523
|
+
ZodMiniType.init(inst, def);
|
|
66907
65524
|
});
|
|
66908
65525
|
function _default(innerType, defaultValue) {
|
|
66909
|
-
return new
|
|
65526
|
+
return new ZodMiniDefault({
|
|
66910
65527
|
type: "default",
|
|
66911
65528
|
innerType,
|
|
66912
65529
|
get defaultValue() {
|
|
@@ -66914,104 +65531,9 @@ function _default(innerType, defaultValue) {
|
|
|
66914
65531
|
}
|
|
66915
65532
|
});
|
|
66916
65533
|
}
|
|
66917
|
-
|
|
66918
|
-
|
|
66919
|
-
|
|
66920
|
-
inst.unwrap = () => inst._zod.def.innerType;
|
|
66921
|
-
});
|
|
66922
|
-
function prefault(innerType, defaultValue) {
|
|
66923
|
-
return new ZodPrefault({
|
|
66924
|
-
type: "prefault",
|
|
66925
|
-
innerType,
|
|
66926
|
-
get defaultValue() {
|
|
66927
|
-
return typeof defaultValue === "function" ? defaultValue() : defaultValue;
|
|
66928
|
-
}
|
|
66929
|
-
});
|
|
66930
|
-
}
|
|
66931
|
-
var ZodNonOptional = /* @__PURE__ */ $constructor("ZodNonOptional", (inst, def) => {
|
|
66932
|
-
$ZodNonOptional.init(inst, def);
|
|
66933
|
-
ZodType.init(inst, def);
|
|
66934
|
-
inst.unwrap = () => inst._zod.def.innerType;
|
|
66935
|
-
});
|
|
66936
|
-
function nonoptional(innerType, params) {
|
|
66937
|
-
return new ZodNonOptional({
|
|
66938
|
-
type: "nonoptional",
|
|
66939
|
-
innerType,
|
|
66940
|
-
...util_exports.normalizeParams(params)
|
|
66941
|
-
});
|
|
66942
|
-
}
|
|
66943
|
-
var ZodCatch = /* @__PURE__ */ $constructor("ZodCatch", (inst, def) => {
|
|
66944
|
-
$ZodCatch.init(inst, def);
|
|
66945
|
-
ZodType.init(inst, def);
|
|
66946
|
-
inst.unwrap = () => inst._zod.def.innerType;
|
|
66947
|
-
inst.removeCatch = inst.unwrap;
|
|
66948
|
-
});
|
|
66949
|
-
function _catch(innerType, catchValue) {
|
|
66950
|
-
return new ZodCatch({
|
|
66951
|
-
type: "catch",
|
|
66952
|
-
innerType,
|
|
66953
|
-
catchValue: typeof catchValue === "function" ? catchValue : () => catchValue
|
|
66954
|
-
});
|
|
66955
|
-
}
|
|
66956
|
-
var ZodPipe = /* @__PURE__ */ $constructor("ZodPipe", (inst, def) => {
|
|
66957
|
-
$ZodPipe.init(inst, def);
|
|
66958
|
-
ZodType.init(inst, def);
|
|
66959
|
-
inst.in = def.in;
|
|
66960
|
-
inst.out = def.out;
|
|
66961
|
-
});
|
|
66962
|
-
function pipe(in_, out) {
|
|
66963
|
-
return new ZodPipe({
|
|
66964
|
-
type: "pipe",
|
|
66965
|
-
in: in_,
|
|
66966
|
-
out
|
|
66967
|
-
// ...util.normalizeParams(params),
|
|
66968
|
-
});
|
|
66969
|
-
}
|
|
66970
|
-
var ZodReadonly = /* @__PURE__ */ $constructor("ZodReadonly", (inst, def) => {
|
|
66971
|
-
$ZodReadonly.init(inst, def);
|
|
66972
|
-
ZodType.init(inst, def);
|
|
66973
|
-
});
|
|
66974
|
-
function readonly(innerType) {
|
|
66975
|
-
return new ZodReadonly({
|
|
66976
|
-
type: "readonly",
|
|
66977
|
-
innerType
|
|
66978
|
-
});
|
|
66979
|
-
}
|
|
66980
|
-
var ZodCustom = /* @__PURE__ */ $constructor("ZodCustom", (inst, def) => {
|
|
66981
|
-
$ZodCustom.init(inst, def);
|
|
66982
|
-
ZodType.init(inst, def);
|
|
66983
|
-
});
|
|
66984
|
-
function check(fn2) {
|
|
66985
|
-
const ch = new $ZodCheck({
|
|
66986
|
-
check: "custom"
|
|
66987
|
-
// ...util.normalizeParams(params),
|
|
66988
|
-
});
|
|
66989
|
-
ch._zod.check = fn2;
|
|
66990
|
-
return ch;
|
|
66991
|
-
}
|
|
66992
|
-
function refine(fn2, _params = {}) {
|
|
66993
|
-
return _refine(ZodCustom, fn2, _params);
|
|
66994
|
-
}
|
|
66995
|
-
function superRefine(fn2) {
|
|
66996
|
-
const ch = check((payload) => {
|
|
66997
|
-
payload.addIssue = (issue2) => {
|
|
66998
|
-
if (typeof issue2 === "string") {
|
|
66999
|
-
payload.issues.push(util_exports.issue(issue2, payload.value, ch._zod.def));
|
|
67000
|
-
} else {
|
|
67001
|
-
const _issue = issue2;
|
|
67002
|
-
if (_issue.fatal)
|
|
67003
|
-
_issue.continue = false;
|
|
67004
|
-
_issue.code ?? (_issue.code = "custom");
|
|
67005
|
-
_issue.input ?? (_issue.input = payload.value);
|
|
67006
|
-
_issue.inst ?? (_issue.inst = ch);
|
|
67007
|
-
_issue.continue ?? (_issue.continue = !ch._zod.def.abort);
|
|
67008
|
-
payload.issues.push(util_exports.issue(_issue));
|
|
67009
|
-
}
|
|
67010
|
-
};
|
|
67011
|
-
return fn2(payload.value, payload);
|
|
67012
|
-
});
|
|
67013
|
-
return ch;
|
|
67014
|
-
}
|
|
65534
|
+
|
|
65535
|
+
// ../../node_modules/.pnpm/zod@4.0.5/node_modules/zod/v4/mini/checks.js
|
|
65536
|
+
init_cjs_shims();
|
|
67015
65537
|
|
|
67016
65538
|
// ../config/src/constants.ts
|
|
67017
65539
|
init_cjs_shims();
|
|
@@ -67020,12 +65542,8 @@ var STORM_DEFAULT_HOMEPAGE = "https://stormsoftware.com";
|
|
|
67020
65542
|
var STORM_DEFAULT_CONTACT = "https://stormsoftware.com/contact";
|
|
67021
65543
|
var STORM_DEFAULT_LICENSING = "https://stormsoftware.com/license";
|
|
67022
65544
|
var STORM_DEFAULT_LICENSE = "Apache-2.0";
|
|
67023
|
-
var STORM_DEFAULT_SOCIAL_TWITTER = "StormSoftwareHQ";
|
|
67024
65545
|
var STORM_DEFAULT_SOCIAL_DISCORD = "https://discord.gg/MQ6YVzakM5";
|
|
67025
|
-
var STORM_DEFAULT_SOCIAL_TELEGRAM = "https://t.me/storm_software";
|
|
67026
65546
|
var STORM_DEFAULT_SOCIAL_SLACK = "https://join.slack.com/t/storm-software/shared_invite/zt-2gsmk04hs-i6yhK_r6urq0dkZYAwq2pA";
|
|
67027
|
-
var STORM_DEFAULT_SOCIAL_MEDIUM = "https://medium.com/storm-software";
|
|
67028
|
-
var STORM_DEFAULT_SOCIAL_GITHUB = "https://github.com/storm-software";
|
|
67029
65547
|
var STORM_DEFAULT_RELEASE_FOOTER = `
|
|
67030
65548
|
Storm Software is an open source software development organization with the mission is to make software development more accessible. Our ideal future is one where anyone can create software without years of prior development experience serving as a barrier to entry. We hope to achieve this via LLMs, Generative AI, and intuitive, high-level data modeling/programming languages.
|
|
67031
65549
|
|
|
@@ -67034,233 +65552,487 @@ Join us on [Discord](${STORM_DEFAULT_SOCIAL_DISCORD}) to chat with the team, rec
|
|
|
67034
65552
|
If this sounds interesting, and you would like to help us in creating the next generation of development tools, please reach out on our [website](${STORM_DEFAULT_CONTACT}) or join our [Slack](${STORM_DEFAULT_SOCIAL_SLACK}) channel!
|
|
67035
65553
|
`;
|
|
67036
65554
|
var STORM_DEFAULT_ERROR_CODES_FILE = "tools/errors/codes.json";
|
|
65555
|
+
var STORM_DEFAULT_BANNER_ALT = "The workspace's banner image";
|
|
67037
65556
|
|
|
67038
65557
|
// ../config/src/schema.ts
|
|
67039
|
-
var
|
|
67040
|
-
var
|
|
67041
|
-
|
|
65558
|
+
var schemaRegistry = registry();
|
|
65559
|
+
var colorSchema = string2().check(
|
|
65560
|
+
_length(7),
|
|
65561
|
+
_toLowerCase(),
|
|
65562
|
+
_regex(/^#([0-9a-f]{3}){1,2}$/i),
|
|
65563
|
+
_trim()
|
|
65564
|
+
);
|
|
65565
|
+
schemaRegistry.add(colorSchema, {
|
|
65566
|
+
description: "A base schema for describing the format of colors"
|
|
65567
|
+
});
|
|
65568
|
+
var darkColorSchema = _default(colorSchema, "#151718");
|
|
65569
|
+
schemaRegistry.add(darkColorSchema, {
|
|
65570
|
+
description: "The dark background color of the workspace"
|
|
65571
|
+
});
|
|
65572
|
+
var lightColorSchema = _default(colorSchema, "#cbd5e1");
|
|
65573
|
+
schemaRegistry.add(lightColorSchema, {
|
|
65574
|
+
description: "The light background color of the workspace"
|
|
65575
|
+
});
|
|
65576
|
+
var brandColorSchema = _default(colorSchema, "#1fb2a6");
|
|
65577
|
+
schemaRegistry.add(brandColorSchema, {
|
|
65578
|
+
description: "The primary brand specific color of the workspace"
|
|
65579
|
+
});
|
|
65580
|
+
var alternateColorSchema = optional(colorSchema);
|
|
65581
|
+
schemaRegistry.add(alternateColorSchema, {
|
|
65582
|
+
description: "The alternate brand specific color of the workspace"
|
|
65583
|
+
});
|
|
65584
|
+
var accentColorSchema = optional(colorSchema);
|
|
65585
|
+
schemaRegistry.add(accentColorSchema, {
|
|
65586
|
+
description: "The secondary brand specific color of the workspace"
|
|
65587
|
+
});
|
|
65588
|
+
var linkColorSchema = _default(colorSchema, "#3fa6ff");
|
|
65589
|
+
schemaRegistry.add(linkColorSchema, {
|
|
65590
|
+
description: "The color used to display hyperlink text"
|
|
65591
|
+
});
|
|
65592
|
+
var helpColorSchema = _default(colorSchema, "#818cf8");
|
|
65593
|
+
schemaRegistry.add(helpColorSchema, {
|
|
65594
|
+
description: "The second brand specific color of the workspace"
|
|
65595
|
+
});
|
|
65596
|
+
var successColorSchema = _default(colorSchema, "#45b27e");
|
|
65597
|
+
schemaRegistry.add(successColorSchema, {
|
|
65598
|
+
description: "The success color of the workspace"
|
|
65599
|
+
});
|
|
65600
|
+
var infoColorSchema = _default(colorSchema, "#38bdf8");
|
|
65601
|
+
schemaRegistry.add(infoColorSchema, {
|
|
65602
|
+
description: "The informational color of the workspace"
|
|
65603
|
+
});
|
|
65604
|
+
var warningColorSchema = _default(colorSchema, "#f3d371");
|
|
65605
|
+
schemaRegistry.add(warningColorSchema, {
|
|
65606
|
+
description: "The warning color of the workspace"
|
|
65607
|
+
});
|
|
65608
|
+
var dangerColorSchema = _default(colorSchema, "#d8314a");
|
|
65609
|
+
schemaRegistry.add(dangerColorSchema, {
|
|
65610
|
+
description: "The danger color of the workspace"
|
|
65611
|
+
});
|
|
65612
|
+
var fatalColorSchema = optional(colorSchema);
|
|
65613
|
+
schemaRegistry.add(fatalColorSchema, {
|
|
65614
|
+
description: "The fatal color of the workspace"
|
|
65615
|
+
});
|
|
65616
|
+
var positiveColorSchema = _default(colorSchema, "#4ade80");
|
|
65617
|
+
schemaRegistry.add(positiveColorSchema, {
|
|
65618
|
+
description: "The positive number color of the workspace"
|
|
65619
|
+
});
|
|
65620
|
+
var negativeColorSchema = _default(colorSchema, "#ef4444");
|
|
65621
|
+
schemaRegistry.add(negativeColorSchema, {
|
|
65622
|
+
description: "The negative number color of the workspace"
|
|
65623
|
+
});
|
|
65624
|
+
var gradientStopsSchema = optional(array(colorSchema));
|
|
65625
|
+
schemaRegistry.add(gradientStopsSchema, {
|
|
65626
|
+
description: "The color stops for the base gradient color pattern used in the workspace"
|
|
65627
|
+
});
|
|
65628
|
+
var darkColorsSchema = object({
|
|
65629
|
+
foreground: lightColorSchema,
|
|
65630
|
+
background: darkColorSchema,
|
|
65631
|
+
brand: brandColorSchema,
|
|
65632
|
+
alternate: alternateColorSchema,
|
|
65633
|
+
accent: accentColorSchema,
|
|
65634
|
+
link: linkColorSchema,
|
|
65635
|
+
help: helpColorSchema,
|
|
65636
|
+
success: successColorSchema,
|
|
65637
|
+
info: infoColorSchema,
|
|
65638
|
+
warning: warningColorSchema,
|
|
65639
|
+
danger: dangerColorSchema,
|
|
65640
|
+
fatal: fatalColorSchema,
|
|
65641
|
+
positive: positiveColorSchema,
|
|
65642
|
+
negative: negativeColorSchema,
|
|
65643
|
+
gradient: gradientStopsSchema
|
|
65644
|
+
});
|
|
65645
|
+
var lightColorsSchema = object({
|
|
65646
|
+
foreground: darkColorSchema,
|
|
65647
|
+
background: lightColorSchema,
|
|
65648
|
+
brand: brandColorSchema,
|
|
65649
|
+
alternate: alternateColorSchema,
|
|
65650
|
+
accent: accentColorSchema,
|
|
65651
|
+
link: linkColorSchema,
|
|
65652
|
+
help: helpColorSchema,
|
|
65653
|
+
success: successColorSchema,
|
|
65654
|
+
info: infoColorSchema,
|
|
65655
|
+
warning: warningColorSchema,
|
|
65656
|
+
danger: dangerColorSchema,
|
|
65657
|
+
fatal: fatalColorSchema,
|
|
65658
|
+
positive: positiveColorSchema,
|
|
65659
|
+
negative: negativeColorSchema,
|
|
65660
|
+
gradient: gradientStopsSchema
|
|
65661
|
+
});
|
|
65662
|
+
var multiColorsSchema = object({
|
|
65663
|
+
dark: darkColorsSchema,
|
|
65664
|
+
light: lightColorsSchema
|
|
65665
|
+
});
|
|
65666
|
+
var singleColorsSchema = object({
|
|
65667
|
+
dark: darkColorSchema,
|
|
65668
|
+
light: lightColorSchema,
|
|
65669
|
+
brand: brandColorSchema,
|
|
65670
|
+
alternate: alternateColorSchema,
|
|
65671
|
+
accent: accentColorSchema,
|
|
65672
|
+
link: linkColorSchema,
|
|
65673
|
+
help: helpColorSchema,
|
|
65674
|
+
success: successColorSchema,
|
|
65675
|
+
info: infoColorSchema,
|
|
65676
|
+
warning: warningColorSchema,
|
|
65677
|
+
danger: dangerColorSchema,
|
|
65678
|
+
fatal: fatalColorSchema,
|
|
65679
|
+
positive: positiveColorSchema,
|
|
65680
|
+
negative: negativeColorSchema,
|
|
65681
|
+
gradient: gradientStopsSchema
|
|
65682
|
+
});
|
|
65683
|
+
var registryUrlConfigSchema = optional(url());
|
|
65684
|
+
schemaRegistry.add(registryUrlConfigSchema, {
|
|
65685
|
+
description: "A remote registry URL used to publish distributable packages"
|
|
65686
|
+
});
|
|
65687
|
+
var registrySchema = _default(
|
|
65688
|
+
object({
|
|
65689
|
+
github: registryUrlConfigSchema,
|
|
65690
|
+
npm: registryUrlConfigSchema,
|
|
65691
|
+
cargo: registryUrlConfigSchema,
|
|
65692
|
+
cyclone: registryUrlConfigSchema,
|
|
65693
|
+
container: registryUrlConfigSchema
|
|
65694
|
+
}),
|
|
65695
|
+
{}
|
|
65696
|
+
);
|
|
65697
|
+
schemaRegistry.add(registrySchema, {
|
|
65698
|
+
description: "A list of remote registry URLs used by Storm Software"
|
|
65699
|
+
});
|
|
65700
|
+
var colorsSchema = union([singleColorsSchema, multiColorsSchema]);
|
|
65701
|
+
schemaRegistry.add(colorsSchema, {
|
|
65702
|
+
description: "Colors used for various workspace elements"
|
|
65703
|
+
});
|
|
65704
|
+
var themeColorsSchema = record(
|
|
65705
|
+
union([union([literal("base"), string2()]), string2()]),
|
|
65706
|
+
colorsSchema
|
|
65707
|
+
);
|
|
65708
|
+
schemaRegistry.add(themeColorsSchema, {
|
|
65709
|
+
description: "Storm theme config values used for styling various package elements"
|
|
65710
|
+
});
|
|
65711
|
+
var extendsSchema = optional(
|
|
65712
|
+
union([string2().check(_trim()), array(string2().check(_trim()))])
|
|
65713
|
+
);
|
|
65714
|
+
schemaRegistry.add(extendsSchema, {
|
|
65715
|
+
description: "The path to a base config file to use as a configuration preset file. Documentation can be found at https://github.com/unjs/c12#extending-configuration."
|
|
65716
|
+
});
|
|
65717
|
+
var workspaceBotNameSchema = string2().check(_trim());
|
|
65718
|
+
schemaRegistry.add(workspaceBotNameSchema, {
|
|
65719
|
+
description: "The workspace bot user's name (this is the bot that will be used to perform various tasks)"
|
|
65720
|
+
});
|
|
65721
|
+
var workspaceBotEmailSchema = string2().check(_trim());
|
|
65722
|
+
schemaRegistry.add(workspaceBotEmailSchema, {
|
|
65723
|
+
description: "The email of the workspace bot"
|
|
65724
|
+
});
|
|
65725
|
+
var workspaceBotSchema = object({
|
|
65726
|
+
name: workspaceBotNameSchema,
|
|
65727
|
+
email: workspaceBotEmailSchema
|
|
65728
|
+
});
|
|
65729
|
+
schemaRegistry.add(workspaceBotSchema, {
|
|
65730
|
+
description: "The workspace's bot user's config used to automated various operations tasks"
|
|
65731
|
+
});
|
|
65732
|
+
var workspaceReleaseBannerUrlSchema = optional(
|
|
65733
|
+
string2().check(_trim(), url())
|
|
65734
|
+
);
|
|
65735
|
+
schemaRegistry.add(workspaceReleaseBannerUrlSchema, {
|
|
65736
|
+
description: "A URL to a banner image used to display the workspace's release"
|
|
65737
|
+
});
|
|
65738
|
+
var workspaceReleaseBannerAltSchema = _default(
|
|
65739
|
+
string2().check(_trim()),
|
|
65740
|
+
STORM_DEFAULT_BANNER_ALT
|
|
65741
|
+
);
|
|
65742
|
+
schemaRegistry.add(workspaceReleaseBannerAltSchema, {
|
|
65743
|
+
description: "The alt text for the workspace's release banner image"
|
|
65744
|
+
});
|
|
65745
|
+
var workspaceReleaseBannerSchema = object({
|
|
65746
|
+
url: workspaceReleaseBannerUrlSchema,
|
|
65747
|
+
alt: workspaceReleaseBannerAltSchema
|
|
65748
|
+
});
|
|
65749
|
+
schemaRegistry.add(workspaceReleaseBannerSchema, {
|
|
65750
|
+
description: "The workspace's banner image used during the release process"
|
|
65751
|
+
});
|
|
65752
|
+
var workspaceReleaseHeaderSchema = optional(
|
|
65753
|
+
string2().check(_trim())
|
|
67042
65754
|
);
|
|
67043
|
-
|
|
67044
|
-
"
|
|
65755
|
+
schemaRegistry.add(workspaceReleaseHeaderSchema, {
|
|
65756
|
+
description: "A header message appended to the start of the workspace's release notes"
|
|
65757
|
+
});
|
|
65758
|
+
var workspaceReleaseFooterSchema = optional(
|
|
65759
|
+
string2().check(_trim())
|
|
67045
65760
|
);
|
|
67046
|
-
|
|
67047
|
-
"
|
|
65761
|
+
schemaRegistry.add(workspaceReleaseFooterSchema, {
|
|
65762
|
+
description: "A footer message appended to the end of the workspace's release notes"
|
|
65763
|
+
});
|
|
65764
|
+
var workspaceReleaseSchema = object({
|
|
65765
|
+
banner: union([
|
|
65766
|
+
workspaceReleaseBannerSchema,
|
|
65767
|
+
string2().check(_trim(), url())
|
|
65768
|
+
]),
|
|
65769
|
+
header: workspaceReleaseHeaderSchema,
|
|
65770
|
+
footer: workspaceReleaseFooterSchema
|
|
65771
|
+
});
|
|
65772
|
+
schemaRegistry.add(workspaceReleaseSchema, {
|
|
65773
|
+
description: "The workspace's release config used during the release process"
|
|
65774
|
+
});
|
|
65775
|
+
var workspaceSocialsTwitterSchema = optional(
|
|
65776
|
+
string2().check(_trim())
|
|
67048
65777
|
);
|
|
67049
|
-
|
|
67050
|
-
"
|
|
65778
|
+
schemaRegistry.add(workspaceSocialsTwitterSchema, {
|
|
65779
|
+
description: "A Twitter/X account associated with the organization/project"
|
|
65780
|
+
});
|
|
65781
|
+
var workspaceSocialsDiscordSchema = optional(
|
|
65782
|
+
string2().check(_trim())
|
|
67051
65783
|
);
|
|
67052
|
-
|
|
67053
|
-
"
|
|
65784
|
+
schemaRegistry.add(workspaceSocialsDiscordSchema, {
|
|
65785
|
+
description: "A Discord account associated with the organization/project"
|
|
65786
|
+
});
|
|
65787
|
+
var workspaceSocialsTelegramSchema = optional(
|
|
65788
|
+
string2().check(_trim())
|
|
67054
65789
|
);
|
|
67055
|
-
|
|
67056
|
-
"
|
|
65790
|
+
schemaRegistry.add(workspaceSocialsTelegramSchema, {
|
|
65791
|
+
description: "A Telegram account associated with the organization/project"
|
|
65792
|
+
});
|
|
65793
|
+
var workspaceSocialsSlackSchema = optional(
|
|
65794
|
+
string2().check(_trim())
|
|
67057
65795
|
);
|
|
67058
|
-
|
|
67059
|
-
"
|
|
65796
|
+
schemaRegistry.add(workspaceSocialsSlackSchema, {
|
|
65797
|
+
description: "A Slack account associated with the organization/project"
|
|
65798
|
+
});
|
|
65799
|
+
var workspaceSocialsMediumSchema = optional(
|
|
65800
|
+
string2().check(_trim())
|
|
67060
65801
|
);
|
|
67061
|
-
|
|
67062
|
-
"
|
|
65802
|
+
schemaRegistry.add(workspaceSocialsMediumSchema, {
|
|
65803
|
+
description: "A Medium account associated with the organization/project"
|
|
65804
|
+
});
|
|
65805
|
+
var workspaceSocialsGithubSchema = optional(
|
|
65806
|
+
string2().check(_trim())
|
|
67063
65807
|
);
|
|
67064
|
-
|
|
67065
|
-
"
|
|
65808
|
+
schemaRegistry.add(workspaceSocialsGithubSchema, {
|
|
65809
|
+
description: "A GitHub account associated with the organization/project"
|
|
65810
|
+
});
|
|
65811
|
+
var workspaceSocialsSchema = object({
|
|
65812
|
+
twitter: workspaceSocialsTwitterSchema,
|
|
65813
|
+
discord: workspaceSocialsDiscordSchema,
|
|
65814
|
+
telegram: workspaceSocialsTelegramSchema,
|
|
65815
|
+
slack: workspaceSocialsSlackSchema,
|
|
65816
|
+
medium: workspaceSocialsMediumSchema,
|
|
65817
|
+
github: workspaceSocialsGithubSchema
|
|
65818
|
+
});
|
|
65819
|
+
schemaRegistry.add(workspaceSocialsSchema, {
|
|
65820
|
+
description: "The workspace's account config used to store various social media links"
|
|
65821
|
+
});
|
|
65822
|
+
var workspaceDirectoryCacheSchema = optional(
|
|
65823
|
+
string2().check(_trim())
|
|
67066
65824
|
);
|
|
67067
|
-
|
|
67068
|
-
"The
|
|
65825
|
+
schemaRegistry.add(workspaceDirectoryCacheSchema, {
|
|
65826
|
+
description: "The directory used to store the environment's cached file data"
|
|
65827
|
+
});
|
|
65828
|
+
var workspaceDirectoryDataSchema = optional(
|
|
65829
|
+
string2().check(_trim())
|
|
67069
65830
|
);
|
|
67070
|
-
|
|
67071
|
-
"The
|
|
65831
|
+
schemaRegistry.add(workspaceDirectoryDataSchema, {
|
|
65832
|
+
description: "The directory used to store the environment's data files"
|
|
65833
|
+
});
|
|
65834
|
+
var workspaceDirectoryConfigSchema = optional(
|
|
65835
|
+
string2().check(_trim())
|
|
67072
65836
|
);
|
|
67073
|
-
|
|
67074
|
-
"The
|
|
65837
|
+
schemaRegistry.add(workspaceDirectoryConfigSchema, {
|
|
65838
|
+
description: "The directory used to store the environment's configuration files"
|
|
65839
|
+
});
|
|
65840
|
+
var workspaceDirectoryTempSchema = optional(
|
|
65841
|
+
string2().check(_trim())
|
|
67075
65842
|
);
|
|
67076
|
-
|
|
67077
|
-
"The
|
|
65843
|
+
schemaRegistry.add(workspaceDirectoryTempSchema, {
|
|
65844
|
+
description: "The directory used to store the environment's temp files"
|
|
65845
|
+
});
|
|
65846
|
+
var workspaceDirectoryLogSchema = optional(
|
|
65847
|
+
string2().check(_trim())
|
|
65848
|
+
);
|
|
65849
|
+
schemaRegistry.add(workspaceDirectoryLogSchema, {
|
|
65850
|
+
description: "The directory used to store the environment's log files"
|
|
65851
|
+
});
|
|
65852
|
+
var workspaceDirectoryBuildSchema = _default(
|
|
65853
|
+
string2().check(_trim()),
|
|
65854
|
+
"dist"
|
|
65855
|
+
);
|
|
65856
|
+
schemaRegistry.add(workspaceDirectoryBuildSchema, {
|
|
65857
|
+
description: "The directory used to store the workspace's distributable files after a build (relative to the workspace root)"
|
|
65858
|
+
});
|
|
65859
|
+
var workspaceDirectorySchema = object({
|
|
65860
|
+
cache: workspaceDirectoryCacheSchema,
|
|
65861
|
+
data: workspaceDirectoryDataSchema,
|
|
65862
|
+
config: workspaceDirectoryConfigSchema,
|
|
65863
|
+
temp: workspaceDirectoryTempSchema,
|
|
65864
|
+
log: workspaceDirectoryLogSchema,
|
|
65865
|
+
build: workspaceDirectoryBuildSchema
|
|
65866
|
+
});
|
|
65867
|
+
schemaRegistry.add(workspaceDirectorySchema, {
|
|
65868
|
+
description: "Various directories used by the workspace to store data, cache, and configuration files"
|
|
65869
|
+
});
|
|
65870
|
+
var errorCodesFileSchema = _default(
|
|
65871
|
+
string2().check(_trim()),
|
|
65872
|
+
STORM_DEFAULT_ERROR_CODES_FILE
|
|
65873
|
+
);
|
|
65874
|
+
schemaRegistry.add(errorCodesFileSchema, {
|
|
65875
|
+
description: "The path to the workspace's error codes JSON file"
|
|
65876
|
+
});
|
|
65877
|
+
var errorUrlSchema = optional(url());
|
|
65878
|
+
schemaRegistry.add(errorUrlSchema, {
|
|
65879
|
+
description: "A URL to a page that looks up the workspace's error messages given a specific error code"
|
|
65880
|
+
});
|
|
65881
|
+
var errorSchema = object({
|
|
65882
|
+
codesFile: errorCodesFileSchema,
|
|
65883
|
+
url: errorUrlSchema
|
|
65884
|
+
});
|
|
65885
|
+
schemaRegistry.add(errorSchema, {
|
|
65886
|
+
description: "The workspace's error config used when creating error details during a system error"
|
|
65887
|
+
});
|
|
65888
|
+
var organizationNameSchema = optional(
|
|
65889
|
+
string2().check(_trim(), _toLowerCase())
|
|
67078
65890
|
);
|
|
67079
|
-
|
|
67080
|
-
"The
|
|
65891
|
+
schemaRegistry.add(organizationNameSchema, {
|
|
65892
|
+
description: "The name of the organization"
|
|
65893
|
+
});
|
|
65894
|
+
var organizationDescriptionSchema = optional(
|
|
65895
|
+
string2().check(_trim())
|
|
65896
|
+
);
|
|
65897
|
+
schemaRegistry.add(organizationDescriptionSchema, {
|
|
65898
|
+
description: "A description of the organization"
|
|
65899
|
+
});
|
|
65900
|
+
var organizationLogoSchema = optional(url());
|
|
65901
|
+
schemaRegistry.add(organizationLogoSchema, {
|
|
65902
|
+
description: "A URL to the organization's logo image"
|
|
65903
|
+
});
|
|
65904
|
+
var organizationIconSchema = optional(url());
|
|
65905
|
+
schemaRegistry.add(organizationIconSchema, {
|
|
65906
|
+
description: "A URL to the organization's icon image"
|
|
65907
|
+
});
|
|
65908
|
+
var organizationUrlSchema = optional(url());
|
|
65909
|
+
schemaRegistry.add(organizationUrlSchema, {
|
|
65910
|
+
description: "A URL to a page that provides more information about the organization"
|
|
65911
|
+
});
|
|
65912
|
+
var organizationSchema = object({
|
|
65913
|
+
name: organizationNameSchema,
|
|
65914
|
+
description: organizationDescriptionSchema,
|
|
65915
|
+
logo: organizationLogoSchema,
|
|
65916
|
+
icon: organizationIconSchema,
|
|
65917
|
+
url: organizationUrlSchema
|
|
65918
|
+
});
|
|
65919
|
+
schemaRegistry.add(organizationSchema, {
|
|
65920
|
+
description: "The workspace's organization details"
|
|
65921
|
+
});
|
|
65922
|
+
var schemaNameSchema = _default(
|
|
65923
|
+
string2().check(_trim(), _toLowerCase()),
|
|
65924
|
+
"https://public.storm-cdn.com/schemas/storm-workspace.schema.json"
|
|
67081
65925
|
);
|
|
67082
|
-
|
|
67083
|
-
"The
|
|
65926
|
+
schemaRegistry.add(schemaNameSchema, {
|
|
65927
|
+
description: "The URL or file path to the JSON schema file that describes the Storm configuration file"
|
|
65928
|
+
});
|
|
65929
|
+
var nameSchema = string2().check(_trim(), _toLowerCase());
|
|
65930
|
+
schemaRegistry.add(nameSchema, {
|
|
65931
|
+
description: "The name of the workspace/project/service/package/scope using this configuration"
|
|
65932
|
+
});
|
|
65933
|
+
var namespaceSchema = string2().check(_trim(), _toLowerCase());
|
|
65934
|
+
schemaRegistry.add(namespaceSchema, {
|
|
65935
|
+
description: "The namespace of the workspace/project/service/package/scope using this configuration"
|
|
65936
|
+
});
|
|
65937
|
+
var orgSchema = union([
|
|
65938
|
+
organizationSchema,
|
|
65939
|
+
string2().check(_trim(), _toLowerCase())
|
|
65940
|
+
]);
|
|
65941
|
+
schemaRegistry.add(orgSchema, {
|
|
65942
|
+
description: "The organization of the workspace. This can be a string or an object containing the organization's details"
|
|
65943
|
+
});
|
|
65944
|
+
var repositorySchema = string2().check(_trim(), _toLowerCase());
|
|
65945
|
+
schemaRegistry.add(repositorySchema, {
|
|
65946
|
+
description: "The repo URL of the workspace (i.e. the GitHub repository URL)"
|
|
65947
|
+
});
|
|
65948
|
+
var licenseSchema = _default(
|
|
65949
|
+
string2().check(_trim()),
|
|
65950
|
+
"Apache-2.0"
|
|
67084
65951
|
);
|
|
67085
|
-
|
|
67086
|
-
|
|
67087
|
-
background: DarkColorSchema,
|
|
67088
|
-
brand: BrandColorSchema,
|
|
67089
|
-
alternate: AlternateColorSchema,
|
|
67090
|
-
accent: AccentColorSchema,
|
|
67091
|
-
link: LinkColorSchema,
|
|
67092
|
-
help: HelpColorSchema,
|
|
67093
|
-
success: SuccessColorSchema,
|
|
67094
|
-
info: InfoColorSchema,
|
|
67095
|
-
warning: WarningColorSchema,
|
|
67096
|
-
danger: DangerColorSchema,
|
|
67097
|
-
fatal: FatalColorSchema,
|
|
67098
|
-
positive: PositiveColorSchema,
|
|
67099
|
-
negative: NegativeColorSchema,
|
|
67100
|
-
gradient: GradientStopsSchema
|
|
65952
|
+
schemaRegistry.add(licenseSchema, {
|
|
65953
|
+
description: "The license type of the package"
|
|
67101
65954
|
});
|
|
67102
|
-
var
|
|
67103
|
-
|
|
67104
|
-
|
|
67105
|
-
brand: BrandColorSchema,
|
|
67106
|
-
alternate: AlternateColorSchema,
|
|
67107
|
-
accent: AccentColorSchema,
|
|
67108
|
-
link: LinkColorSchema,
|
|
67109
|
-
help: HelpColorSchema,
|
|
67110
|
-
success: SuccessColorSchema,
|
|
67111
|
-
info: InfoColorSchema,
|
|
67112
|
-
warning: WarningColorSchema,
|
|
67113
|
-
danger: DangerColorSchema,
|
|
67114
|
-
fatal: FatalColorSchema,
|
|
67115
|
-
positive: PositiveColorSchema,
|
|
67116
|
-
negative: NegativeColorSchema,
|
|
67117
|
-
gradient: GradientStopsSchema
|
|
65955
|
+
var homepageSchema = optional(url());
|
|
65956
|
+
schemaRegistry.add(homepageSchema, {
|
|
65957
|
+
description: "The homepage of the workspace"
|
|
67118
65958
|
});
|
|
67119
|
-
var
|
|
67120
|
-
|
|
67121
|
-
|
|
65959
|
+
var docsSchema = optional(url());
|
|
65960
|
+
schemaRegistry.add(docsSchema, {
|
|
65961
|
+
description: "The documentation site for the workspace"
|
|
67122
65962
|
});
|
|
67123
|
-
var
|
|
67124
|
-
|
|
67125
|
-
|
|
67126
|
-
brand: BrandColorSchema,
|
|
67127
|
-
alternate: AlternateColorSchema,
|
|
67128
|
-
accent: AccentColorSchema,
|
|
67129
|
-
link: LinkColorSchema,
|
|
67130
|
-
help: HelpColorSchema,
|
|
67131
|
-
success: SuccessColorSchema,
|
|
67132
|
-
info: InfoColorSchema,
|
|
67133
|
-
warning: WarningColorSchema,
|
|
67134
|
-
danger: DangerColorSchema,
|
|
67135
|
-
fatal: FatalColorSchema,
|
|
67136
|
-
positive: PositiveColorSchema,
|
|
67137
|
-
negative: NegativeColorSchema,
|
|
67138
|
-
gradient: GradientStopsSchema
|
|
65963
|
+
var portalSchema = optional(url());
|
|
65964
|
+
schemaRegistry.add(portalSchema, {
|
|
65965
|
+
description: "The development portal site for the workspace"
|
|
67139
65966
|
});
|
|
67140
|
-
var
|
|
67141
|
-
|
|
67142
|
-
|
|
67143
|
-
|
|
67144
|
-
|
|
67145
|
-
|
|
67146
|
-
|
|
67147
|
-
})
|
|
67148
|
-
var
|
|
67149
|
-
|
|
67150
|
-
|
|
67151
|
-
|
|
67152
|
-
|
|
67153
|
-
|
|
65967
|
+
var licensingSchema = optional(url());
|
|
65968
|
+
schemaRegistry.add(licensingSchema, {
|
|
65969
|
+
description: "The licensing site for the workspace"
|
|
65970
|
+
});
|
|
65971
|
+
var contactSchema = optional(url());
|
|
65972
|
+
schemaRegistry.add(contactSchema, {
|
|
65973
|
+
description: "The contact site for the workspace"
|
|
65974
|
+
});
|
|
65975
|
+
var supportSchema = optional(url());
|
|
65976
|
+
schemaRegistry.add(supportSchema, {
|
|
65977
|
+
description: "The support site for the workspace. If not provided, this is defaulted to the `contact` config value"
|
|
65978
|
+
});
|
|
65979
|
+
var branchSchema = _default(
|
|
65980
|
+
string2().check(_trim(), _toLowerCase()),
|
|
65981
|
+
"main"
|
|
67154
65982
|
);
|
|
67155
|
-
|
|
67156
|
-
"The
|
|
65983
|
+
schemaRegistry.add(branchSchema, {
|
|
65984
|
+
description: "The branch of the workspace"
|
|
65985
|
+
});
|
|
65986
|
+
var preidSchema = optional(
|
|
65987
|
+
string2().check(_trim(), _toLowerCase())
|
|
67157
65988
|
);
|
|
67158
|
-
|
|
67159
|
-
|
|
67160
|
-
)
|
|
67161
|
-
|
|
65989
|
+
schemaRegistry.add(preidSchema, {
|
|
65990
|
+
description: "A tag specifying the version pre-release identifier"
|
|
65991
|
+
});
|
|
65992
|
+
var ownerSchema = optional(
|
|
65993
|
+
string2().check(_trim(), _toLowerCase())
|
|
67162
65994
|
);
|
|
67163
|
-
|
|
67164
|
-
|
|
67165
|
-
|
|
67166
|
-
|
|
67167
|
-
|
|
67168
|
-
|
|
67169
|
-
"The workspace's bot user's config used to automated various operations tasks"
|
|
65995
|
+
schemaRegistry.add(ownerSchema, {
|
|
65996
|
+
description: "The owner of the package"
|
|
65997
|
+
});
|
|
65998
|
+
var modeSchema = _default(
|
|
65999
|
+
_enum(["development", "staging", "production"]).check(_trim(), _toLowerCase()),
|
|
66000
|
+
"production"
|
|
67170
66001
|
);
|
|
67171
|
-
|
|
67172
|
-
|
|
67173
|
-
|
|
67174
|
-
|
|
67175
|
-
|
|
67176
|
-
|
|
67177
|
-
|
|
67178
|
-
|
|
67179
|
-
|
|
67180
|
-
|
|
67181
|
-
})
|
|
67182
|
-
var
|
|
67183
|
-
|
|
67184
|
-
|
|
67185
|
-
|
|
67186
|
-
|
|
67187
|
-
|
|
67188
|
-
|
|
67189
|
-
|
|
67190
|
-
|
|
66002
|
+
schemaRegistry.add(modeSchema, {
|
|
66003
|
+
description: "The current runtime environment mode for the package"
|
|
66004
|
+
});
|
|
66005
|
+
var workspaceRootSchema = string2().check(_trim(), _toLowerCase());
|
|
66006
|
+
schemaRegistry.add(workspaceRootSchema, {
|
|
66007
|
+
description: "The root directory of the workspace"
|
|
66008
|
+
});
|
|
66009
|
+
var skipCacheSchema = _default(boolean2(), false);
|
|
66010
|
+
schemaRegistry.add(skipCacheSchema, {
|
|
66011
|
+
description: "Should all known types of workspace caching be skipped?"
|
|
66012
|
+
});
|
|
66013
|
+
var packageManagerSchema = _default(
|
|
66014
|
+
_enum(["npm", "yarn", "pnpm", "bun"]),
|
|
66015
|
+
"npm"
|
|
66016
|
+
);
|
|
66017
|
+
schemaRegistry.add(packageManagerSchema, {
|
|
66018
|
+
description: "The JavaScript/TypeScript package manager used by the repository"
|
|
66019
|
+
});
|
|
66020
|
+
var timezoneSchema = _default(
|
|
66021
|
+
string2().check(_trim(), _toLowerCase()),
|
|
66022
|
+
"America/New_York"
|
|
67191
66023
|
);
|
|
67192
|
-
|
|
67193
|
-
|
|
67194
|
-
|
|
67195
|
-
|
|
67196
|
-
|
|
67197
|
-
|
|
67198
|
-
"The directory used to store the environment's configuration files"
|
|
67199
|
-
),
|
|
67200
|
-
temp: string2().trim().optional().describe("The directory used to store the environment's temp files"),
|
|
67201
|
-
log: string2().trim().optional().describe("The directory used to store the environment's temp files"),
|
|
67202
|
-
build: string2().trim().default("dist").describe(
|
|
67203
|
-
"The directory used to store the workspace's distributable files after a build (relative to the workspace root)"
|
|
67204
|
-
)
|
|
67205
|
-
}).describe(
|
|
67206
|
-
"Various directories used by the workspace to store data, cache, and configuration files"
|
|
66024
|
+
schemaRegistry.add(timezoneSchema, {
|
|
66025
|
+
description: "The default timezone of the workspace"
|
|
66026
|
+
});
|
|
66027
|
+
var localeSchema = _default(
|
|
66028
|
+
string2().check(_trim(), _toLowerCase()),
|
|
66029
|
+
"en-US"
|
|
67207
66030
|
);
|
|
67208
|
-
|
|
67209
|
-
|
|
67210
|
-
|
|
67211
|
-
|
|
67212
|
-
|
|
67213
|
-
}).describe("The workspace's error config used during the error process");
|
|
67214
|
-
var organizationConfigSchema = object({
|
|
67215
|
-
name: string2().trim().describe("The name of the organization"),
|
|
67216
|
-
description: string2().trim().optional().describe("A description of the organization"),
|
|
67217
|
-
logo: url().optional().describe("A URL to the organization's logo image"),
|
|
67218
|
-
icon: url().optional().describe("A URL to the organization's icon image"),
|
|
67219
|
-
url: url().optional().describe(
|
|
67220
|
-
"A URL to a page that provides more information about the organization"
|
|
67221
|
-
)
|
|
67222
|
-
}).describe("The workspace's organization details");
|
|
67223
|
-
var stormWorkspaceConfigSchema = object({
|
|
67224
|
-
$schema: string2().trim().default(
|
|
67225
|
-
"https://public.storm-cdn.com/schemas/storm-workspace.schema.json"
|
|
67226
|
-
).describe(
|
|
67227
|
-
"The URL or file path to the JSON schema file that describes the Storm configuration file"
|
|
67228
|
-
),
|
|
67229
|
-
extends: ExtendsSchema.optional(),
|
|
67230
|
-
name: string2().trim().toLowerCase().optional().describe(
|
|
67231
|
-
"The name of the service/package/scope using this configuration"
|
|
67232
|
-
),
|
|
67233
|
-
namespace: string2().trim().toLowerCase().optional().describe("The namespace of the package"),
|
|
67234
|
-
organization: organizationConfigSchema.or(string2().trim().describe("The organization of the workspace")).optional().describe(
|
|
67235
|
-
"The organization of the workspace. This can be a string or an object containing the organization's details"
|
|
67236
|
-
),
|
|
67237
|
-
repository: string2().trim().optional().describe("The repo URL of the workspace (i.e. GitHub)"),
|
|
67238
|
-
license: string2().trim().default("Apache-2.0").describe("The license type of the package"),
|
|
67239
|
-
homepage: url().optional().describe("The homepage of the workspace"),
|
|
67240
|
-
docs: url().optional().describe("The documentation site for the workspace"),
|
|
67241
|
-
portal: url().optional().describe("The development portal site for the workspace"),
|
|
67242
|
-
licensing: url().optional().describe("The licensing site for the workspace"),
|
|
67243
|
-
contact: url().optional().describe("The contact site for the workspace"),
|
|
67244
|
-
support: url().optional().describe(
|
|
67245
|
-
"The support site for the workspace. If not provided, this is defaulted to the `contact` config value"
|
|
67246
|
-
),
|
|
67247
|
-
branch: string2().trim().default("main").describe("The branch of the workspace"),
|
|
67248
|
-
preid: string2().optional().describe("A tag specifying the version pre-release identifier"),
|
|
67249
|
-
owner: string2().trim().default("@storm-software/admin").describe("The owner of the package"),
|
|
67250
|
-
bot: WorkspaceBotConfigSchema,
|
|
67251
|
-
release: WorkspaceReleaseConfigSchema,
|
|
67252
|
-
socials: WorkspaceSocialsConfigSchema,
|
|
67253
|
-
error: errorConfigSchema,
|
|
67254
|
-
mode: string2().trim().default("production").describe("The current runtime environment mode for the package"),
|
|
67255
|
-
workspaceRoot: string2().trim().describe("The root directory of the workspace"),
|
|
67256
|
-
skipCache: boolean2().default(false).describe("Should all known types of workspace caching be skipped?"),
|
|
67257
|
-
directories: WorkspaceDirectoryConfigSchema,
|
|
67258
|
-
packageManager: _enum(["npm", "yarn", "pnpm", "bun"]).default("npm").describe(
|
|
67259
|
-
"The JavaScript/TypeScript package manager used by the repository"
|
|
67260
|
-
),
|
|
67261
|
-
timezone: string2().trim().default("America/New_York").describe("The default timezone of the workspace"),
|
|
67262
|
-
locale: string2().trim().default("en-US").describe("The default locale of the workspace"),
|
|
67263
|
-
logLevel: _enum([
|
|
66031
|
+
schemaRegistry.add(localeSchema, {
|
|
66032
|
+
description: "The default locale of the workspace"
|
|
66033
|
+
});
|
|
66034
|
+
var logLevelSchema = _default(
|
|
66035
|
+
_enum([
|
|
67264
66036
|
"silent",
|
|
67265
66037
|
"fatal",
|
|
67266
66038
|
"error",
|
|
@@ -67270,23 +66042,65 @@ var stormWorkspaceConfigSchema = object({
|
|
|
67270
66042
|
"debug",
|
|
67271
66043
|
"trace",
|
|
67272
66044
|
"all"
|
|
67273
|
-
])
|
|
67274
|
-
|
|
67275
|
-
|
|
67276
|
-
|
|
67277
|
-
|
|
67278
|
-
|
|
67279
|
-
|
|
67280
|
-
|
|
67281
|
-
|
|
67282
|
-
|
|
67283
|
-
|
|
67284
|
-
|
|
67285
|
-
|
|
67286
|
-
extensions: record(string2(), any()).optional().default({}).describe("Configuration of each used extension")
|
|
67287
|
-
}).describe(
|
|
67288
|
-
"Storm Workspace config values used during various dev-ops processes. This type is a combination of the StormPackageConfig and StormProject types. It represents the config of the entire monorepo."
|
|
66045
|
+
]),
|
|
66046
|
+
"info"
|
|
66047
|
+
);
|
|
66048
|
+
schemaRegistry.add(logLevelSchema, {
|
|
66049
|
+
description: "The log level used to filter out lower priority log messages. If not provided, this is defaulted using the `environment` config value (if `environment` is set to `production` then `level` is `error`, else `level` is `debug`)."
|
|
66050
|
+
});
|
|
66051
|
+
var skipConfigLoggingSchema = _default(boolean2(), true);
|
|
66052
|
+
schemaRegistry.add(skipConfigLoggingSchema, {
|
|
66053
|
+
description: "Should the logging of the current Storm Workspace configuration be skipped?"
|
|
66054
|
+
});
|
|
66055
|
+
var configFileSchema = _default(
|
|
66056
|
+
nullable(string2().check(_trim())),
|
|
66057
|
+
null
|
|
67289
66058
|
);
|
|
66059
|
+
schemaRegistry.add(configFileSchema, {
|
|
66060
|
+
description: "The filepath of the Storm config. When this field is null, no config file was found in the current workspace."
|
|
66061
|
+
});
|
|
66062
|
+
var extensionsSchema = _default(record(string2(), any()), {});
|
|
66063
|
+
schemaRegistry.add(extensionsSchema, {
|
|
66064
|
+
description: "Configuration of each used extension"
|
|
66065
|
+
});
|
|
66066
|
+
var workspaceConfigSchema = object({
|
|
66067
|
+
$schema: schemaNameSchema,
|
|
66068
|
+
extends: extendsSchema,
|
|
66069
|
+
name: nameSchema,
|
|
66070
|
+
namespace: namespaceSchema,
|
|
66071
|
+
organization: orgSchema,
|
|
66072
|
+
repository: repositorySchema,
|
|
66073
|
+
license: licenseSchema,
|
|
66074
|
+
homepage: homepageSchema,
|
|
66075
|
+
docs: docsSchema,
|
|
66076
|
+
portal: portalSchema,
|
|
66077
|
+
licensing: licensingSchema,
|
|
66078
|
+
contact: contactSchema,
|
|
66079
|
+
support: supportSchema,
|
|
66080
|
+
branch: branchSchema,
|
|
66081
|
+
preid: preidSchema,
|
|
66082
|
+
owner: ownerSchema,
|
|
66083
|
+
bot: workspaceBotSchema,
|
|
66084
|
+
release: workspaceReleaseSchema,
|
|
66085
|
+
socials: workspaceSocialsSchema,
|
|
66086
|
+
error: errorSchema,
|
|
66087
|
+
mode: modeSchema,
|
|
66088
|
+
workspaceRoot: workspaceRootSchema,
|
|
66089
|
+
skipCache: skipCacheSchema,
|
|
66090
|
+
directories: workspaceDirectorySchema,
|
|
66091
|
+
packageManager: packageManagerSchema,
|
|
66092
|
+
timezone: timezoneSchema,
|
|
66093
|
+
locale: localeSchema,
|
|
66094
|
+
logLevel: logLevelSchema,
|
|
66095
|
+
skipConfigLogging: skipConfigLoggingSchema,
|
|
66096
|
+
registry: registrySchema,
|
|
66097
|
+
configFile: configFileSchema,
|
|
66098
|
+
colors: union([colorsSchema, themeColorsSchema]),
|
|
66099
|
+
extensions: extensionsSchema
|
|
66100
|
+
});
|
|
66101
|
+
schemaRegistry.add(extensionsSchema, {
|
|
66102
|
+
description: "Storm Workspace config values used during various dev-ops processes. This type is a combination of the StormPackageConfig and StormProject types. It represents the config of the entire monorepo."
|
|
66103
|
+
});
|
|
67290
66104
|
|
|
67291
66105
|
// ../config-tools/src/create-storm-config.ts
|
|
67292
66106
|
init_defu();
|
|
@@ -68064,8 +66878,8 @@ var CONSOLE_ICONS = {
|
|
|
68064
66878
|
|
|
68065
66879
|
// ../config-tools/src/logger/format-timestamp.ts
|
|
68066
66880
|
init_cjs_shims();
|
|
68067
|
-
var formatTimestamp = (
|
|
68068
|
-
return `${
|
|
66881
|
+
var formatTimestamp = (date2 = /* @__PURE__ */ new Date()) => {
|
|
66882
|
+
return `${date2.toLocaleDateString()} ${date2.toLocaleTimeString()}`;
|
|
68069
66883
|
};
|
|
68070
66884
|
|
|
68071
66885
|
// ../config-tools/src/logger/get-log-level.ts
|
|
@@ -68729,7 +67543,10 @@ var getConfigEnv = () => {
|
|
|
68729
67543
|
email: process.env[`${prefix}BOT_EMAIL`] || void 0
|
|
68730
67544
|
},
|
|
68731
67545
|
release: {
|
|
68732
|
-
banner:
|
|
67546
|
+
banner: {
|
|
67547
|
+
url: process.env[`${prefix}RELEASE_BANNER_URL`] || void 0,
|
|
67548
|
+
alt: process.env[`${prefix}RELEASE_BANNER_ALT`] || void 0
|
|
67549
|
+
},
|
|
68733
67550
|
header: process.env[`${prefix}RELEASE_HEADER`] || void 0,
|
|
68734
67551
|
footer: process.env[`${prefix}RELEASE_FOOTER`] || void 0
|
|
68735
67552
|
},
|
|
@@ -68806,11 +67623,11 @@ var getConfigEnv = () => {
|
|
|
68806
67623
|
);
|
|
68807
67624
|
config2.colors = themeNames.length > 0 ? themeNames.reduce(
|
|
68808
67625
|
(ret, themeName) => {
|
|
68809
|
-
ret[themeName] =
|
|
67626
|
+
ret[themeName] = getThemeColorsEnv(prefix, themeName);
|
|
68810
67627
|
return ret;
|
|
68811
67628
|
},
|
|
68812
67629
|
{}
|
|
68813
|
-
) :
|
|
67630
|
+
) : getThemeColorsEnv(prefix);
|
|
68814
67631
|
if (config2.docs === STORM_DEFAULT_DOCS) {
|
|
68815
67632
|
if (config2.homepage === STORM_DEFAULT_HOMEPAGE) {
|
|
68816
67633
|
config2.docs = `${STORM_DEFAULT_HOMEPAGE}/projects/${config2.name}/docs`;
|
|
@@ -68837,11 +67654,11 @@ var getConfigEnv = () => {
|
|
|
68837
67654
|
}
|
|
68838
67655
|
return config2;
|
|
68839
67656
|
};
|
|
68840
|
-
var
|
|
67657
|
+
var getThemeColorsEnv = (prefix, theme) => {
|
|
68841
67658
|
const themeName = `COLOR_${theme && theme !== "base" ? `${theme}_` : ""}`.toUpperCase();
|
|
68842
|
-
return process.env[`${prefix}${themeName}LIGHT_BRAND`] || process.env[`${prefix}${themeName}DARK_BRAND`] ?
|
|
67659
|
+
return process.env[`${prefix}${themeName}LIGHT_BRAND`] || process.env[`${prefix}${themeName}DARK_BRAND`] ? getMultiThemeColorsEnv(prefix + themeName) : getSingleThemeColorsEnv(prefix + themeName);
|
|
68843
67660
|
};
|
|
68844
|
-
var
|
|
67661
|
+
var getSingleThemeColorsEnv = (prefix) => {
|
|
68845
67662
|
const gradient = [];
|
|
68846
67663
|
if (process.env[`${prefix}GRADIENT_START`] && process.env[`${prefix}GRADIENT_END`]) {
|
|
68847
67664
|
gradient.push(
|
|
@@ -68873,15 +67690,13 @@ var getSingleThemeColorConfigEnv = (prefix) => {
|
|
|
68873
67690
|
gradient
|
|
68874
67691
|
};
|
|
68875
67692
|
};
|
|
68876
|
-
var
|
|
67693
|
+
var getMultiThemeColorsEnv = (prefix) => {
|
|
68877
67694
|
return {
|
|
68878
|
-
light:
|
|
68879
|
-
|
|
68880
|
-
),
|
|
68881
|
-
dark: getBaseThemeColorConfigEnv(`${prefix}_DARK_`)
|
|
67695
|
+
light: getBaseThemeColorsEnv(`${prefix}_LIGHT_`),
|
|
67696
|
+
dark: getBaseThemeColorsEnv(`${prefix}_DARK_`)
|
|
68882
67697
|
};
|
|
68883
67698
|
};
|
|
68884
|
-
var
|
|
67699
|
+
var getBaseThemeColorsEnv = (prefix) => {
|
|
68885
67700
|
const gradient = [];
|
|
68886
67701
|
if (process.env[`${prefix}GRADIENT_START`] && process.env[`${prefix}GRADIENT_END`]) {
|
|
68887
67702
|
gradient.push(
|
|
@@ -68961,7 +67776,16 @@ var setConfigEnv = (config2) => {
|
|
|
68961
67776
|
process.env[`${prefix}ERROR_URL`] = config2.error.url;
|
|
68962
67777
|
}
|
|
68963
67778
|
if (config2.release) {
|
|
68964
|
-
|
|
67779
|
+
if (config2.release.banner) {
|
|
67780
|
+
if (typeof config2.release.banner === "string") {
|
|
67781
|
+
process.env[`${prefix}RELEASE_BANNER`] = config2.release.banner;
|
|
67782
|
+
process.env[`${prefix}RELEASE_BANNER_URL`] = config2.release.banner;
|
|
67783
|
+
} else {
|
|
67784
|
+
process.env[`${prefix}RELEASE_BANNER`] = config2.release.banner.url;
|
|
67785
|
+
process.env[`${prefix}RELEASE_BANNER_URL`] = config2.release.banner.url;
|
|
67786
|
+
process.env[`${prefix}RELEASE_BANNER_ALT`] = config2.release.banner.alt;
|
|
67787
|
+
}
|
|
67788
|
+
}
|
|
68965
67789
|
process.env[`${prefix}RELEASE_HEADER`] = config2.release.header;
|
|
68966
67790
|
process.env[`${prefix}RELEASE_FOOTER`] = config2.release.footer;
|
|
68967
67791
|
}
|
|
@@ -69104,10 +67928,10 @@ var setConfigEnv = (config2) => {
|
|
|
69104
67928
|
}
|
|
69105
67929
|
if (config2.colors?.base?.light || config2.colors?.base?.dark) {
|
|
69106
67930
|
for (const key of Object.keys(config2.colors)) {
|
|
69107
|
-
|
|
67931
|
+
setThemeColorsEnv(`${prefix}COLOR_${key}_`, config2.colors[key]);
|
|
69108
67932
|
}
|
|
69109
67933
|
} else {
|
|
69110
|
-
|
|
67934
|
+
setThemeColorsEnv(
|
|
69111
67935
|
`${prefix}COLOR_`,
|
|
69112
67936
|
config2.colors
|
|
69113
67937
|
);
|
|
@@ -69162,10 +67986,10 @@ var setConfigEnv = (config2) => {
|
|
|
69162
67986
|
}
|
|
69163
67987
|
}
|
|
69164
67988
|
};
|
|
69165
|
-
var
|
|
69166
|
-
return config2?.light?.brand || config2?.dark?.brand ?
|
|
67989
|
+
var setThemeColorsEnv = (prefix, config2) => {
|
|
67990
|
+
return config2?.light?.brand || config2?.dark?.brand ? setMultiThemeColorsEnv(prefix, config2) : setSingleThemeColorsEnv(prefix, config2);
|
|
69167
67991
|
};
|
|
69168
|
-
var
|
|
67992
|
+
var setSingleThemeColorsEnv = (prefix, config2) => {
|
|
69169
67993
|
if (config2.dark) {
|
|
69170
67994
|
process.env[`${prefix}DARK`] = config2.dark;
|
|
69171
67995
|
}
|
|
@@ -69214,13 +68038,13 @@ var setSingleThemeColorConfigEnv = (prefix, config2) => {
|
|
|
69214
68038
|
}
|
|
69215
68039
|
}
|
|
69216
68040
|
};
|
|
69217
|
-
var
|
|
68041
|
+
var setMultiThemeColorsEnv = (prefix, config2) => {
|
|
69218
68042
|
return {
|
|
69219
|
-
light:
|
|
69220
|
-
dark:
|
|
68043
|
+
light: setBaseThemeColorsEnv(`${prefix}LIGHT_`, config2.light),
|
|
68044
|
+
dark: setBaseThemeColorsEnv(`${prefix}DARK_`, config2.dark)
|
|
69221
68045
|
};
|
|
69222
68046
|
};
|
|
69223
|
-
var
|
|
68047
|
+
var setBaseThemeColorsEnv = (prefix, config2) => {
|
|
69224
68048
|
if (config2.foreground) {
|
|
69225
68049
|
process.env[`${prefix}FOREGROUND`] = config2.foreground;
|
|
69226
68050
|
}
|
|
@@ -69301,7 +68125,7 @@ var createStormWorkspaceConfig = async (extensionName, schema, workspaceRoot, sk
|
|
|
69301
68125
|
);
|
|
69302
68126
|
try {
|
|
69303
68127
|
result = applyDefaultConfig(
|
|
69304
|
-
await
|
|
68128
|
+
await workspaceConfigSchema.parseAsync(configInput)
|
|
69305
68129
|
);
|
|
69306
68130
|
result.workspaceRoot ??= _workspaceRoot;
|
|
69307
68131
|
} catch (error) {
|