@power-plant/schema 0.0.43 → 0.0.45
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/dist/codegen.cjs +1 -1
- package/dist/codegen.d.cts +1 -1
- package/dist/codegen.d.mts +1 -1
- package/dist/codegen.mjs +1 -1
- package/dist/{constants-BlppSDwG.mjs → constants-D0asFRyy.mjs} +9 -2
- package/dist/constants-D0asFRyy.mjs.map +1 -0
- package/dist/{constants-CEmLvTDd.cjs → constants-DUJjv-fA.cjs} +13 -0
- package/dist/{deepkit-DzjNJe42.mjs → deepkit-BUz4LI7V.mjs} +7 -7
- package/dist/deepkit-BUz4LI7V.mjs.map +1 -0
- package/dist/{deepkit-BiQwD8ud.cjs → deepkit-CzTuG3HO.cjs} +6 -6
- package/dist/deepkit.cjs +1 -1
- package/dist/deepkit.d.cts +6 -6
- package/dist/deepkit.d.cts.map +1 -1
- package/dist/deepkit.d.mts +6 -6
- package/dist/deepkit.d.mts.map +1 -1
- package/dist/deepkit.mjs +1 -1
- package/dist/{helpers-_8ADIMSN.mjs → helpers-CAmQbxG5.mjs} +2 -2
- package/dist/helpers-CAmQbxG5.mjs.map +1 -0
- package/dist/{helpers-DVg8wtqZ.cjs → helpers-D1sydyZl.cjs} +1 -1
- package/dist/index.cjs +16 -10
- package/dist/index.d.cts +6 -6
- package/dist/index.d.cts.map +1 -1
- package/dist/index.d.mts +6 -6
- package/dist/index.mjs +16 -11
- package/dist/{types-BxZqs7PE.d.mts → types-BO9WVLxT.d.mts} +16 -4
- package/dist/types-BO9WVLxT.d.mts.map +1 -0
- package/dist/{types-cHmdUpGz.d.cts → types-HDWallsq.d.cts} +16 -4
- package/dist/types-HDWallsq.d.cts.map +1 -0
- package/dist/valibot.cjs +1 -1
- package/dist/valibot.d.cts +1 -1
- package/dist/valibot.d.mts +1 -1
- package/dist/valibot.mjs +1 -1
- package/dist/zod.cjs +2 -2
- package/dist/zod.d.cts +1 -1
- package/dist/zod.d.mts +1 -1
- package/dist/zod.mjs +2 -2
- package/package.json +4 -4
- package/dist/constants-BlppSDwG.mjs.map +0 -1
- package/dist/deepkit-DzjNJe42.mjs.map +0 -1
- package/dist/helpers-_8ADIMSN.mjs.map +0 -1
- package/dist/types-BxZqs7PE.d.mts.map +0 -1
- package/dist/types-cHmdUpGz.d.cts.map +0 -1
package/dist/codegen.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
|
-
const require_helpers = require('./helpers-
|
|
2
|
+
const require_helpers = require('./helpers-D1sydyZl.cjs');
|
|
3
3
|
let _stryke_type_checks_is_set_string = require("@stryke/type-checks/is-set-string");
|
|
4
4
|
let _stryke_type_checks = require("@stryke/type-checks");
|
|
5
5
|
let _stryke_string_format_list = require("@stryke/string-format/list");
|
package/dist/codegen.d.cts
CHANGED
package/dist/codegen.d.mts
CHANGED
package/dist/codegen.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { F as isJsonSchemaObject, O as isJsonSchemaLiteral, V as isJsonSchemaString, a as getPropertiesList, c as isSchemaNullable, d as merge, g as isJsonSchema, st as getPrimarySchemaType } from "./helpers-
|
|
1
|
+
import { F as isJsonSchemaObject, O as isJsonSchemaLiteral, V as isJsonSchemaString, a as getPropertiesList, c as isSchemaNullable, d as merge, g as isJsonSchema, st as getPrimarySchemaType } from "./helpers-CAmQbxG5.mjs";
|
|
2
2
|
import { isSetString } from "@stryke/type-checks/is-set-string";
|
|
3
3
|
import { isInteger, isObject, isSetArray, isString } from "@stryke/type-checks";
|
|
4
4
|
import { list } from "@stryke/string-format/list";
|
|
@@ -1,4 +1,11 @@
|
|
|
1
1
|
//#region src/constants.ts
|
|
2
|
+
/**
|
|
3
|
+
* Runtime value for an unconstrained {@link JsonSchemaAny} schema.
|
|
4
|
+
*
|
|
5
|
+
* @remarks
|
|
6
|
+
* Prefer this over the non-standard `type: "any"` marker.
|
|
7
|
+
*/
|
|
8
|
+
const JSON_SCHEMA_ANY = {};
|
|
2
9
|
const JsonSchemaTypeNames = {
|
|
3
10
|
STRING: "string",
|
|
4
11
|
NUMBER: "number",
|
|
@@ -92,5 +99,5 @@ const SCHEMA_ARRAY_CONCAT_KEYWORDS = /* @__PURE__ */ new Set([
|
|
|
92
99
|
]);
|
|
93
100
|
|
|
94
101
|
//#endregion
|
|
95
|
-
export {
|
|
96
|
-
//# sourceMappingURL=constants-
|
|
102
|
+
export { JSON_SCHEMA_TYPES as a, SCHEMA_RECORD_KEYWORDS as c, JSON_SCHEMA_PRIMITIVE_TYPES as i, SCHEMA_SINGLE_KEYWORDS as l, JSON_SCHEMA_CONSTRUCTOR_KEY as n, JsonSchemaTypeNames as o, JSON_SCHEMA_METADATA_KEYS as r, SCHEMA_ARRAY_CONCAT_KEYWORDS as s, JSON_SCHEMA_ANY as t };
|
|
103
|
+
//# sourceMappingURL=constants-D0asFRyy.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"constants-D0asFRyy.mjs","names":[],"sources":[],"mappings":""}
|
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
|
|
2
2
|
//#region src/constants.ts
|
|
3
|
+
/**
|
|
4
|
+
* Runtime value for an unconstrained {@link JsonSchemaAny} schema.
|
|
5
|
+
*
|
|
6
|
+
* @remarks
|
|
7
|
+
* Prefer this over the non-standard `type: "any"` marker.
|
|
8
|
+
*/
|
|
9
|
+
const JSON_SCHEMA_ANY = {};
|
|
3
10
|
const JsonSchemaTypeNames = {
|
|
4
11
|
STRING: "string",
|
|
5
12
|
NUMBER: "number",
|
|
@@ -93,6 +100,12 @@ const SCHEMA_ARRAY_CONCAT_KEYWORDS = /* @__PURE__ */ new Set([
|
|
|
93
100
|
]);
|
|
94
101
|
|
|
95
102
|
//#endregion
|
|
103
|
+
Object.defineProperty(exports, 'JSON_SCHEMA_ANY', {
|
|
104
|
+
enumerable: true,
|
|
105
|
+
get: function () {
|
|
106
|
+
return JSON_SCHEMA_ANY;
|
|
107
|
+
}
|
|
108
|
+
});
|
|
96
109
|
Object.defineProperty(exports, 'JSON_SCHEMA_CONSTRUCTOR_KEY', {
|
|
97
110
|
enumerable: true,
|
|
98
111
|
get: function () {
|
|
@@ -3551,7 +3551,7 @@ function executeCloneNode(node, options) {
|
|
|
3551
3551
|
}
|
|
3552
3552
|
|
|
3553
3553
|
//#endregion
|
|
3554
|
-
//#region ../../../node_modules/.pnpm/@deepkit+type-compiler@1.0.19_patch_hash=
|
|
3554
|
+
//#region ../../../node_modules/.pnpm/@deepkit+type-compiler@1.0.19_patch_hash=bd438188cbc12e606ed4d519c25ab921a833fbc2d92357_eb3d1bbe57b0b2f8921a5c1688746a82/node_modules/@deepkit/type-compiler/dist/esm/src/reflection-ast.js
|
|
3555
3555
|
const { isArrowFunction: isArrowFunction$1, isComputedPropertyName, isIdentifier: isIdentifier$1, isNamedImports, isNumericLiteral, isPrivateIdentifier, isStringLiteral: isStringLiteral$2, isStringLiteralLike, setOriginalNode, getLeadingCommentRanges, isNoSubstitutionTemplateLiteral, NodeFlags: NodeFlags$1, SyntaxKind: SyntaxKind$1 } = ts;
|
|
3556
3556
|
function is__String(value) {
|
|
3557
3557
|
return typeof value === "string";
|
|
@@ -7169,7 +7169,7 @@ var require_micromatch = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
7169
7169
|
}));
|
|
7170
7170
|
|
|
7171
7171
|
//#endregion
|
|
7172
|
-
//#region ../../../node_modules/.pnpm/@deepkit+type-compiler@1.0.19_patch_hash=
|
|
7172
|
+
//#region ../../../node_modules/.pnpm/@deepkit+type-compiler@1.0.19_patch_hash=bd438188cbc12e606ed4d519c25ab921a833fbc2d92357_eb3d1bbe57b0b2f8921a5c1688746a82/node_modules/@deepkit/type-compiler/dist/esm/src/resolver.js
|
|
7173
7173
|
var import_micromatch = /* @__PURE__ */ __toESM(require_micromatch(), 1);
|
|
7174
7174
|
const { createSourceFile, resolveModuleName, isStringLiteral: isStringLiteral$1, JSDocParsingMode, ScriptTarget: ScriptTarget$1 } = ts;
|
|
7175
7175
|
function patternMatch(path, patterns, base) {
|
|
@@ -8180,7 +8180,7 @@ var require_dist = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
8180
8180
|
}));
|
|
8181
8181
|
|
|
8182
8182
|
//#endregion
|
|
8183
|
-
//#region ../../../node_modules/.pnpm/@deepkit+type-compiler@1.0.19_patch_hash=
|
|
8183
|
+
//#region ../../../node_modules/.pnpm/@deepkit+type-compiler@1.0.19_patch_hash=bd438188cbc12e606ed4d519c25ab921a833fbc2d92357_eb3d1bbe57b0b2f8921a5c1688746a82/node_modules/@deepkit/type-compiler/dist/esm/src/debug.js
|
|
8184
8184
|
var import_dist = require_dist();
|
|
8185
8185
|
function isDebug(level = 1) {
|
|
8186
8186
|
const expected = "deepkit" + (level > 1 ? "+".repeat(level - 1) : "");
|
|
@@ -8200,7 +8200,7 @@ function debug2(...message) {
|
|
|
8200
8200
|
}
|
|
8201
8201
|
|
|
8202
8202
|
//#endregion
|
|
8203
|
-
//#region ../../../node_modules/.pnpm/@deepkit+type-compiler@1.0.19_patch_hash=
|
|
8203
|
+
//#region ../../../node_modules/.pnpm/@deepkit+type-compiler@1.0.19_patch_hash=bd438188cbc12e606ed4d519c25ab921a833fbc2d92357_eb3d1bbe57b0b2f8921a5c1688746a82/node_modules/@deepkit/type-compiler/dist/esm/src/config.js
|
|
8204
8204
|
function isObject(obj) {
|
|
8205
8205
|
if (!obj) return false;
|
|
8206
8206
|
return typeof obj === "object" && !Array.isArray(obj);
|
|
@@ -8355,7 +8355,7 @@ function getConfigResolver(cache, host, compilerOptions, sourceFile, tsConfigPat
|
|
|
8355
8355
|
}
|
|
8356
8356
|
|
|
8357
8357
|
//#endregion
|
|
8358
|
-
//#region ../../../node_modules/.pnpm/@deepkit+type-compiler@1.0.19_patch_hash=
|
|
8358
|
+
//#region ../../../node_modules/.pnpm/@deepkit+type-compiler@1.0.19_patch_hash=bd438188cbc12e606ed4d519c25ab921a833fbc2d92357_eb3d1bbe57b0b2f8921a5c1688746a82/node_modules/@deepkit/type-compiler/dist/esm/src/compiler.js
|
|
8359
8359
|
const { visitEachChild, visitNode, isPropertyAssignment, isArrayTypeNode, isArrowFunction, isBlock, isCallExpression, isCallSignatureDeclaration, isClassDeclaration, isClassExpression, isConstructorDeclaration, isConstructorTypeNode, isConstructSignatureDeclaration, isEnumDeclaration, isExportDeclaration, isExpression, isExpressionWithTypeArguments, isFunctionDeclaration, isFunctionExpression, isFunctionLike, isIdentifier, isImportClause, isImportDeclaration, isImportSpecifier, isInferTypeNode, isInterfaceDeclaration, isMethodDeclaration, isMethodSignature, isModuleDeclaration, isNamedExports, isNamedTupleMember, isNewExpression, isObjectLiteralExpression, isOptionalTypeNode, isParameter, isParenthesizedExpression, isParenthesizedTypeNode, isPropertyAccessExpression, isQualifiedName, isSourceFile, isStringLiteral, isTypeAliasDeclaration, isTypeLiteralNode, isTypeParameterDeclaration, isTypeQueryNode, isTypeReferenceNode, isUnionTypeNode, isExpressionStatement, isVariableDeclaration, getEffectiveConstraintOfTypeParameter, addSyntheticLeadingComment, createCompilerHost, createPrinter, escapeLeadingUnderscores, EmitHint, NodeFlags, SyntaxKind, ScriptTarget, ModifierFlags, ScriptKind: ScriptKind$1 } = ts;
|
|
8360
8360
|
function encodeOps(ops) {
|
|
8361
8361
|
return ops.map((v) => String.fromCharCode(v + 33)).join("");
|
|
@@ -10110,7 +10110,7 @@ const declarationTransformer = function deepkitDeclarationTransformer(context) {
|
|
|
10110
10110
|
};
|
|
10111
10111
|
|
|
10112
10112
|
//#endregion
|
|
10113
|
-
//#region ../../../node_modules/.pnpm/@deepkit+type-compiler@1.0.19_patch_hash=
|
|
10113
|
+
//#region ../../../node_modules/.pnpm/@deepkit+type-compiler@1.0.19_patch_hash=bd438188cbc12e606ed4d519c25ab921a833fbc2d92357_eb3d1bbe57b0b2f8921a5c1688746a82/node_modules/@deepkit/type-compiler/dist/esm/src/loader.js
|
|
10114
10114
|
var DeepkitLoader = class {
|
|
10115
10115
|
constructor() {
|
|
10116
10116
|
this.options = {
|
|
@@ -10153,4 +10153,4 @@ var DeepkitLoader = class {
|
|
|
10153
10153
|
|
|
10154
10154
|
//#endregion
|
|
10155
10155
|
export { debugPackStruct as a, packSize as c, ReflectionTransformer as i, packSizeByte as l, Cache as n, declarationTransformer as o, DeclarationTransformer as r, encodeOps as s, DeepkitLoader as t, transformer as u };
|
|
10156
|
-
//# sourceMappingURL=deepkit-
|
|
10156
|
+
//# sourceMappingURL=deepkit-BUz4LI7V.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"deepkit-BUz4LI7V.mjs","names":[],"sources":[],"mappings":""}
|
|
@@ -3523,7 +3523,7 @@ function executeCloneNode(node, options) {
|
|
|
3523
3523
|
}
|
|
3524
3524
|
|
|
3525
3525
|
//#endregion
|
|
3526
|
-
//#region ../../../node_modules/.pnpm/@deepkit+type-compiler@1.0.19_patch_hash=
|
|
3526
|
+
//#region ../../../node_modules/.pnpm/@deepkit+type-compiler@1.0.19_patch_hash=bd438188cbc12e606ed4d519c25ab921a833fbc2d92357_eb3d1bbe57b0b2f8921a5c1688746a82/node_modules/@deepkit/type-compiler/dist/esm/src/reflection-ast.js
|
|
3527
3527
|
const { isArrowFunction: isArrowFunction$1, isComputedPropertyName, isIdentifier: isIdentifier$1, isNamedImports, isNumericLiteral, isPrivateIdentifier, isStringLiteral: isStringLiteral$2, isStringLiteralLike, setOriginalNode, getLeadingCommentRanges, isNoSubstitutionTemplateLiteral, NodeFlags: NodeFlags$1, SyntaxKind: SyntaxKind$1 } = typescript.default;
|
|
3528
3528
|
function is__String(value) {
|
|
3529
3529
|
return typeof value === "string";
|
|
@@ -7141,7 +7141,7 @@ var require_micromatch = /* @__PURE__ */ require_rolldown_runtime.__commonJSMin(
|
|
|
7141
7141
|
}));
|
|
7142
7142
|
|
|
7143
7143
|
//#endregion
|
|
7144
|
-
//#region ../../../node_modules/.pnpm/@deepkit+type-compiler@1.0.19_patch_hash=
|
|
7144
|
+
//#region ../../../node_modules/.pnpm/@deepkit+type-compiler@1.0.19_patch_hash=bd438188cbc12e606ed4d519c25ab921a833fbc2d92357_eb3d1bbe57b0b2f8921a5c1688746a82/node_modules/@deepkit/type-compiler/dist/esm/src/resolver.js
|
|
7145
7145
|
var import_micromatch = /* @__PURE__ */ require_rolldown_runtime.__toESM(require_micromatch(), 1);
|
|
7146
7146
|
const { createSourceFile, resolveModuleName, isStringLiteral: isStringLiteral$1, JSDocParsingMode, ScriptTarget: ScriptTarget$1 } = typescript.default;
|
|
7147
7147
|
function patternMatch(path, patterns, base) {
|
|
@@ -8152,7 +8152,7 @@ var require_dist = /* @__PURE__ */ require_rolldown_runtime.__commonJSMin(((expo
|
|
|
8152
8152
|
}));
|
|
8153
8153
|
|
|
8154
8154
|
//#endregion
|
|
8155
|
-
//#region ../../../node_modules/.pnpm/@deepkit+type-compiler@1.0.19_patch_hash=
|
|
8155
|
+
//#region ../../../node_modules/.pnpm/@deepkit+type-compiler@1.0.19_patch_hash=bd438188cbc12e606ed4d519c25ab921a833fbc2d92357_eb3d1bbe57b0b2f8921a5c1688746a82/node_modules/@deepkit/type-compiler/dist/esm/src/debug.js
|
|
8156
8156
|
var import_dist = require_dist();
|
|
8157
8157
|
function isDebug(level = 1) {
|
|
8158
8158
|
const expected = "deepkit" + (level > 1 ? "+".repeat(level - 1) : "");
|
|
@@ -8172,7 +8172,7 @@ function debug2(...message) {
|
|
|
8172
8172
|
}
|
|
8173
8173
|
|
|
8174
8174
|
//#endregion
|
|
8175
|
-
//#region ../../../node_modules/.pnpm/@deepkit+type-compiler@1.0.19_patch_hash=
|
|
8175
|
+
//#region ../../../node_modules/.pnpm/@deepkit+type-compiler@1.0.19_patch_hash=bd438188cbc12e606ed4d519c25ab921a833fbc2d92357_eb3d1bbe57b0b2f8921a5c1688746a82/node_modules/@deepkit/type-compiler/dist/esm/src/config.js
|
|
8176
8176
|
function isObject(obj) {
|
|
8177
8177
|
if (!obj) return false;
|
|
8178
8178
|
return typeof obj === "object" && !Array.isArray(obj);
|
|
@@ -8327,7 +8327,7 @@ function getConfigResolver(cache, host, compilerOptions, sourceFile, tsConfigPat
|
|
|
8327
8327
|
}
|
|
8328
8328
|
|
|
8329
8329
|
//#endregion
|
|
8330
|
-
//#region ../../../node_modules/.pnpm/@deepkit+type-compiler@1.0.19_patch_hash=
|
|
8330
|
+
//#region ../../../node_modules/.pnpm/@deepkit+type-compiler@1.0.19_patch_hash=bd438188cbc12e606ed4d519c25ab921a833fbc2d92357_eb3d1bbe57b0b2f8921a5c1688746a82/node_modules/@deepkit/type-compiler/dist/esm/src/compiler.js
|
|
8331
8331
|
const { visitEachChild, visitNode, isPropertyAssignment, isArrayTypeNode, isArrowFunction, isBlock, isCallExpression, isCallSignatureDeclaration, isClassDeclaration, isClassExpression, isConstructorDeclaration, isConstructorTypeNode, isConstructSignatureDeclaration, isEnumDeclaration, isExportDeclaration, isExpression, isExpressionWithTypeArguments, isFunctionDeclaration, isFunctionExpression, isFunctionLike, isIdentifier, isImportClause, isImportDeclaration, isImportSpecifier, isInferTypeNode, isInterfaceDeclaration, isMethodDeclaration, isMethodSignature, isModuleDeclaration, isNamedExports, isNamedTupleMember, isNewExpression, isObjectLiteralExpression, isOptionalTypeNode, isParameter, isParenthesizedExpression, isParenthesizedTypeNode, isPropertyAccessExpression, isQualifiedName, isSourceFile, isStringLiteral, isTypeAliasDeclaration, isTypeLiteralNode, isTypeParameterDeclaration, isTypeQueryNode, isTypeReferenceNode, isUnionTypeNode, isExpressionStatement, isVariableDeclaration, getEffectiveConstraintOfTypeParameter, addSyntheticLeadingComment, createCompilerHost, createPrinter, escapeLeadingUnderscores, EmitHint, NodeFlags, SyntaxKind, ScriptTarget, ModifierFlags, ScriptKind } = typescript.default;
|
|
8332
8332
|
function encodeOps(ops) {
|
|
8333
8333
|
return ops.map((v) => String.fromCharCode(v + 33)).join("");
|
|
@@ -10082,7 +10082,7 @@ const declarationTransformer = function deepkitDeclarationTransformer(context) {
|
|
|
10082
10082
|
};
|
|
10083
10083
|
|
|
10084
10084
|
//#endregion
|
|
10085
|
-
//#region ../../../node_modules/.pnpm/@deepkit+type-compiler@1.0.19_patch_hash=
|
|
10085
|
+
//#region ../../../node_modules/.pnpm/@deepkit+type-compiler@1.0.19_patch_hash=bd438188cbc12e606ed4d519c25ab921a833fbc2d92357_eb3d1bbe57b0b2f8921a5c1688746a82/node_modules/@deepkit/type-compiler/dist/esm/src/loader.js
|
|
10086
10086
|
var DeepkitLoader = class {
|
|
10087
10087
|
constructor() {
|
|
10088
10088
|
this.options = {
|
package/dist/deepkit.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
|
-
const require_deepkit = require('./deepkit-
|
|
2
|
+
const require_deepkit = require('./deepkit-CzTuG3HO.cjs');
|
|
3
3
|
|
|
4
4
|
exports.Cache = require_deepkit.Cache;
|
|
5
5
|
exports.DeclarationTransformer = require_deepkit.DeclarationTransformer;
|
package/dist/deepkit.d.cts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { TypeAnnotation } from "@deepkit/core";
|
|
2
2
|
import ts, { ArrowFunction, Bundle, ClassDeclaration, ClassExpression, CompilerHost, CompilerOptions, ConstructorDeclaration, CustomTransformer, CustomTransformerFactory, Declaration, EntityName, ExportDeclaration, Expression, ExpressionWithTypeArguments, FunctionDeclaration, FunctionExpression, Identifier, ImportDeclaration, JSDocImportTag, MethodDeclaration, ModuleDeclaration, ModuleExportName, Node, NodeArray, NodeFactory, ParseConfigHost, PropertyAccessExpression, QualifiedName, ResolvedModule, ScriptKind, SourceFile, Statement, StringLiteral, Symbol as Symbol$1, SymbolTable, TransformationContext, TypeAliasDeclaration, TypeChecker, TypeParameterDeclaration, TypeReferenceNode } from "typescript";
|
|
3
3
|
import { ReflectionOp } from "@deepkit/type-spec";
|
|
4
|
-
//#region ../../../node_modules/.pnpm/@deepkit+type-compiler@1.0.19_patch_hash=
|
|
4
|
+
//#region ../../../node_modules/.pnpm/@deepkit+type-compiler@1.0.19_patch_hash=bd438188cbc12e606ed4d519c25ab921a833fbc2d92357_eb3d1bbe57b0b2f8921a5c1688746a82/node_modules/@deepkit/type-compiler/dist/cjs/src/ts-types.d.ts
|
|
5
5
|
/**
|
|
6
6
|
* Contains @internal properties that are not yet in the public API of TS.
|
|
7
7
|
*/
|
|
@@ -19,7 +19,7 @@ interface SourceFile$1 extends SourceFile {
|
|
|
19
19
|
symbol?: Symbol$1;
|
|
20
20
|
}
|
|
21
21
|
//#endregion
|
|
22
|
-
//#region ../../../node_modules/.pnpm/@deepkit+type-compiler@1.0.19_patch_hash=
|
|
22
|
+
//#region ../../../node_modules/.pnpm/@deepkit+type-compiler@1.0.19_patch_hash=bd438188cbc12e606ed4d519c25ab921a833fbc2d92357_eb3d1bbe57b0b2f8921a5c1688746a82/node_modules/@deepkit/type-compiler/dist/cjs/src/reflection-ast.d.ts
|
|
23
23
|
type PackExpression = Expression | string | number | boolean | bigint;
|
|
24
24
|
type JSDocTagValue = string | boolean;
|
|
25
25
|
declare class NodeConverter {
|
|
@@ -28,7 +28,7 @@ declare class NodeConverter {
|
|
|
28
28
|
toExpression<T extends PackExpression | PackExpression[]>(node?: T): Expression;
|
|
29
29
|
}
|
|
30
30
|
//#endregion
|
|
31
|
-
//#region ../../../node_modules/.pnpm/@deepkit+type-compiler@1.0.19_patch_hash=
|
|
31
|
+
//#region ../../../node_modules/.pnpm/@deepkit+type-compiler@1.0.19_patch_hash=bd438188cbc12e606ed4d519c25ab921a833fbc2d92357_eb3d1bbe57b0b2f8921a5c1688746a82/node_modules/@deepkit/type-compiler/dist/cjs/src/resolver.d.ts
|
|
32
32
|
/**
|
|
33
33
|
* A utility to resolve a module path and its declaration.
|
|
34
34
|
*
|
|
@@ -55,7 +55,7 @@ declare class Resolver {
|
|
|
55
55
|
resolveSourceFile(sourceFile: SourceFile, modulePath: StringLiteral): SourceFile | undefined;
|
|
56
56
|
}
|
|
57
57
|
//#endregion
|
|
58
|
-
//#region ../../../node_modules/.pnpm/@deepkit+type-compiler@1.0.19_patch_hash=
|
|
58
|
+
//#region ../../../node_modules/.pnpm/@deepkit+type-compiler@1.0.19_patch_hash=bd438188cbc12e606ed4d519c25ab921a833fbc2d92357_eb3d1bbe57b0b2f8921a5c1688746a82/node_modules/@deepkit/type-compiler/dist/cjs/src/config.d.ts
|
|
59
59
|
/**
|
|
60
60
|
* Default means reflection is enabled for this file.
|
|
61
61
|
* Never means the whole reflection is disabled for this file.
|
|
@@ -94,7 +94,7 @@ type ReflectionConfigCache = {
|
|
|
94
94
|
[path: string]: ConfigResolver;
|
|
95
95
|
};
|
|
96
96
|
//#endregion
|
|
97
|
-
//#region ../../../node_modules/.pnpm/@deepkit+type-compiler@1.0.19_patch_hash=
|
|
97
|
+
//#region ../../../node_modules/.pnpm/@deepkit+type-compiler@1.0.19_patch_hash=bd438188cbc12e606ed4d519c25ab921a833fbc2d92357_eb3d1bbe57b0b2f8921a5c1688746a82/node_modules/@deepkit/type-compiler/dist/cjs/src/compiler.d.ts
|
|
98
98
|
declare function encodeOps(ops: ReflectionOp[]): string;
|
|
99
99
|
declare const packSizeByte: number;
|
|
100
100
|
/**
|
|
@@ -423,7 +423,7 @@ declare class DeclarationTransformer extends ReflectionTransformer {
|
|
|
423
423
|
declare const transformer: CustomTransformerFactory;
|
|
424
424
|
declare const declarationTransformer: CustomTransformerFactory;
|
|
425
425
|
//#endregion
|
|
426
|
-
//#region ../../../node_modules/.pnpm/@deepkit+type-compiler@1.0.19_patch_hash=
|
|
426
|
+
//#region ../../../node_modules/.pnpm/@deepkit+type-compiler@1.0.19_patch_hash=bd438188cbc12e606ed4d519c25ab921a833fbc2d92357_eb3d1bbe57b0b2f8921a5c1688746a82/node_modules/@deepkit/type-compiler/dist/cjs/src/loader.d.ts
|
|
427
427
|
declare class DeepkitLoader {
|
|
428
428
|
protected options: CompilerOptions;
|
|
429
429
|
protected host: ts.CompilerHost;
|
package/dist/deepkit.d.cts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"deepkit.d.cts","names":[],"sources":["../../../../node_modules/.pnpm/@deepkit+type-compiler@1.0.19_patch_hash=
|
|
1
|
+
{"version":3,"file":"deepkit.d.cts","names":[],"sources":["../../../../node_modules/.pnpm/@deepkit+type-compiler@1.0.19_patch_hash=bd438188cbc12e606ed4d519c25ab921a833fbc2d92357_eb3d1bbe57b0b2f8921a5c1688746a82/node_modules/@deepkit/type-compiler/dist/cjs/src/ts-types.d.ts","../../../../node_modules/.pnpm/@deepkit+type-compiler@1.0.19_patch_hash=bd438188cbc12e606ed4d519c25ab921a833fbc2d92357_eb3d1bbe57b0b2f8921a5c1688746a82/node_modules/@deepkit/type-compiler/dist/cjs/src/reflection-ast.d.ts","../../../../node_modules/.pnpm/@deepkit+type-compiler@1.0.19_patch_hash=bd438188cbc12e606ed4d519c25ab921a833fbc2d92357_eb3d1bbe57b0b2f8921a5c1688746a82/node_modules/@deepkit/type-compiler/dist/cjs/src/resolver.d.ts","../../../../node_modules/.pnpm/@deepkit+type-compiler@1.0.19_patch_hash=bd438188cbc12e606ed4d519c25ab921a833fbc2d92357_eb3d1bbe57b0b2f8921a5c1688746a82/node_modules/@deepkit/type-compiler/dist/cjs/src/config.d.ts","../../../../node_modules/.pnpm/@deepkit+type-compiler@1.0.19_patch_hash=bd438188cbc12e606ed4d519c25ab921a833fbc2d92357_eb3d1bbe57b0b2f8921a5c1688746a82/node_modules/@deepkit/type-compiler/dist/cjs/src/compiler.d.ts","../../../../node_modules/.pnpm/@deepkit+type-compiler@1.0.19_patch_hash=bd438188cbc12e606ed4d519c25ab921a833fbc2d92357_eb3d1bbe57b0b2f8921a5c1688746a82/node_modules/@deepkit/type-compiler/dist/cjs/src/loader.d.ts","../src/deepkit.ts"],"x_google_ignoreList":[0,1,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D,+BAA+B;YACtC;IACN;;EAEJ,oBAAoB,YAAY,eAAa;;cAE5B,aAAa;cACb,wBAAwB;;;cCzUxB;YACP,SAAS;YACT,MAAM,GAAG;YACT,SAAS,GAAG;YACZ,SAAS,GAAG;YACZ,OAAO;YACP;KACL;;YAEK;KACL,eAAe;;EAEpB;EACA,UAAU,gBAAgB;;;;;;;;;UCWb;EACf;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;IACc;IAAe;IAAsB;;EAEnD;EACA;EACA;EACA;EACA;;;;;;;;;;KAWU,WAAW,UAAU,qBAAqB,6BAEpD;;;;;;;;;KAWU,GAAG,oBAAoB,qBAAqB;;;;;;;;;KAU5C,MAAM,oBAAoB,wBAAwB;;;;;;;;;KAUlD,YAAY,oBAAoB,8BAA8B;;;;;;;;;KAU9D,KAAK,oBAAoB,uBAAuB;;;;;;;;;KAUhD,MAAM,+BAA+B,wBAAwB;;;;;;;;;KAU7D,KAAK,+BAA+B,uBAAuB;;;;;;;;;KAU3D,aAAa;;;;;;;;;KAUb,SAAS;;;;;;;;;KAUT,SAAS;;;;;;;;;KAUT,WAAW;;;;;;;;;KAUX,UAAU;;;;KAKV;EACE;EAAe;EAAsB;;;;;;;;;;KAUvC,SAAS,mBAAmB,mBAAmB,2BAEzD;;;;;;;;;KAWU,WAAW;;;;;;;;;KAUX,YAAY;;;;;;;;;KAUZ,gBAAgB,oBAAoB,kCAE9C;;;;;;;;;KAWU,iBAAiB,oBAAoB,mCAE/C;;;;;;;;;KAWU,cAAc,oBAAoB,gCAE5C"}
|
package/dist/deepkit.d.mts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import ts, { ArrowFunction, Bundle, ClassDeclaration, ClassExpression, CompilerHost, CompilerOptions, ConstructorDeclaration, CustomTransformer, CustomTransformerFactory, Declaration, EntityName, ExportDeclaration, Expression, ExpressionWithTypeArguments, FunctionDeclaration, FunctionExpression, Identifier, ImportDeclaration, JSDocImportTag, MethodDeclaration, ModuleDeclaration, ModuleExportName, Node, NodeArray, NodeFactory, ParseConfigHost, PropertyAccessExpression, QualifiedName, ResolvedModule, ScriptKind, SourceFile, Statement, StringLiteral, Symbol as Symbol$1, SymbolTable, TransformationContext, TypeAliasDeclaration, TypeChecker, TypeParameterDeclaration, TypeReferenceNode } from "typescript";
|
|
2
2
|
import { ReflectionOp } from "@deepkit/type-spec";
|
|
3
3
|
import { TypeAnnotation } from "@deepkit/core";
|
|
4
|
-
//#region ../../../node_modules/.pnpm/@deepkit+type-compiler@1.0.19_patch_hash=
|
|
4
|
+
//#region ../../../node_modules/.pnpm/@deepkit+type-compiler@1.0.19_patch_hash=bd438188cbc12e606ed4d519c25ab921a833fbc2d92357_eb3d1bbe57b0b2f8921a5c1688746a82/node_modules/@deepkit/type-compiler/dist/cjs/src/ts-types.d.ts
|
|
5
5
|
/**
|
|
6
6
|
* Contains @internal properties that are not yet in the public API of TS.
|
|
7
7
|
*/
|
|
@@ -19,7 +19,7 @@ interface SourceFile$1 extends SourceFile {
|
|
|
19
19
|
symbol?: Symbol$1;
|
|
20
20
|
}
|
|
21
21
|
//#endregion
|
|
22
|
-
//#region ../../../node_modules/.pnpm/@deepkit+type-compiler@1.0.19_patch_hash=
|
|
22
|
+
//#region ../../../node_modules/.pnpm/@deepkit+type-compiler@1.0.19_patch_hash=bd438188cbc12e606ed4d519c25ab921a833fbc2d92357_eb3d1bbe57b0b2f8921a5c1688746a82/node_modules/@deepkit/type-compiler/dist/cjs/src/reflection-ast.d.ts
|
|
23
23
|
type PackExpression = Expression | string | number | boolean | bigint;
|
|
24
24
|
type JSDocTagValue = string | boolean;
|
|
25
25
|
declare class NodeConverter {
|
|
@@ -28,7 +28,7 @@ declare class NodeConverter {
|
|
|
28
28
|
toExpression<T extends PackExpression | PackExpression[]>(node?: T): Expression;
|
|
29
29
|
}
|
|
30
30
|
//#endregion
|
|
31
|
-
//#region ../../../node_modules/.pnpm/@deepkit+type-compiler@1.0.19_patch_hash=
|
|
31
|
+
//#region ../../../node_modules/.pnpm/@deepkit+type-compiler@1.0.19_patch_hash=bd438188cbc12e606ed4d519c25ab921a833fbc2d92357_eb3d1bbe57b0b2f8921a5c1688746a82/node_modules/@deepkit/type-compiler/dist/cjs/src/resolver.d.ts
|
|
32
32
|
/**
|
|
33
33
|
* A utility to resolve a module path and its declaration.
|
|
34
34
|
*
|
|
@@ -55,7 +55,7 @@ declare class Resolver {
|
|
|
55
55
|
resolveSourceFile(sourceFile: SourceFile, modulePath: StringLiteral): SourceFile | undefined;
|
|
56
56
|
}
|
|
57
57
|
//#endregion
|
|
58
|
-
//#region ../../../node_modules/.pnpm/@deepkit+type-compiler@1.0.19_patch_hash=
|
|
58
|
+
//#region ../../../node_modules/.pnpm/@deepkit+type-compiler@1.0.19_patch_hash=bd438188cbc12e606ed4d519c25ab921a833fbc2d92357_eb3d1bbe57b0b2f8921a5c1688746a82/node_modules/@deepkit/type-compiler/dist/cjs/src/config.d.ts
|
|
59
59
|
/**
|
|
60
60
|
* Default means reflection is enabled for this file.
|
|
61
61
|
* Never means the whole reflection is disabled for this file.
|
|
@@ -94,7 +94,7 @@ type ReflectionConfigCache = {
|
|
|
94
94
|
[path: string]: ConfigResolver;
|
|
95
95
|
};
|
|
96
96
|
//#endregion
|
|
97
|
-
//#region ../../../node_modules/.pnpm/@deepkit+type-compiler@1.0.19_patch_hash=
|
|
97
|
+
//#region ../../../node_modules/.pnpm/@deepkit+type-compiler@1.0.19_patch_hash=bd438188cbc12e606ed4d519c25ab921a833fbc2d92357_eb3d1bbe57b0b2f8921a5c1688746a82/node_modules/@deepkit/type-compiler/dist/cjs/src/compiler.d.ts
|
|
98
98
|
declare function encodeOps(ops: ReflectionOp[]): string;
|
|
99
99
|
declare const packSizeByte: number;
|
|
100
100
|
/**
|
|
@@ -423,7 +423,7 @@ declare class DeclarationTransformer extends ReflectionTransformer {
|
|
|
423
423
|
declare const transformer: CustomTransformerFactory;
|
|
424
424
|
declare const declarationTransformer: CustomTransformerFactory;
|
|
425
425
|
//#endregion
|
|
426
|
-
//#region ../../../node_modules/.pnpm/@deepkit+type-compiler@1.0.19_patch_hash=
|
|
426
|
+
//#region ../../../node_modules/.pnpm/@deepkit+type-compiler@1.0.19_patch_hash=bd438188cbc12e606ed4d519c25ab921a833fbc2d92357_eb3d1bbe57b0b2f8921a5c1688746a82/node_modules/@deepkit/type-compiler/dist/cjs/src/loader.d.ts
|
|
427
427
|
declare class DeepkitLoader {
|
|
428
428
|
protected options: CompilerOptions;
|
|
429
429
|
protected host: ts.CompilerHost;
|
package/dist/deepkit.d.mts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"deepkit.d.mts","names":[],"sources":["../../../../node_modules/.pnpm/@deepkit+type-compiler@1.0.19_patch_hash=
|
|
1
|
+
{"version":3,"file":"deepkit.d.mts","names":[],"sources":["../../../../node_modules/.pnpm/@deepkit+type-compiler@1.0.19_patch_hash=bd438188cbc12e606ed4d519c25ab921a833fbc2d92357_eb3d1bbe57b0b2f8921a5c1688746a82/node_modules/@deepkit/type-compiler/dist/cjs/src/ts-types.d.ts","../../../../node_modules/.pnpm/@deepkit+type-compiler@1.0.19_patch_hash=bd438188cbc12e606ed4d519c25ab921a833fbc2d92357_eb3d1bbe57b0b2f8921a5c1688746a82/node_modules/@deepkit/type-compiler/dist/cjs/src/reflection-ast.d.ts","../../../../node_modules/.pnpm/@deepkit+type-compiler@1.0.19_patch_hash=bd438188cbc12e606ed4d519c25ab921a833fbc2d92357_eb3d1bbe57b0b2f8921a5c1688746a82/node_modules/@deepkit/type-compiler/dist/cjs/src/resolver.d.ts","../../../../node_modules/.pnpm/@deepkit+type-compiler@1.0.19_patch_hash=bd438188cbc12e606ed4d519c25ab921a833fbc2d92357_eb3d1bbe57b0b2f8921a5c1688746a82/node_modules/@deepkit/type-compiler/dist/cjs/src/config.d.ts","../../../../node_modules/.pnpm/@deepkit+type-compiler@1.0.19_patch_hash=bd438188cbc12e606ed4d519c25ab921a833fbc2d92357_eb3d1bbe57b0b2f8921a5c1688746a82/node_modules/@deepkit/type-compiler/dist/cjs/src/compiler.d.ts","../../../../node_modules/.pnpm/@deepkit+type-compiler@1.0.19_patch_hash=bd438188cbc12e606ed4d519c25ab921a833fbc2d92357_eb3d1bbe57b0b2f8921a5c1688746a82/node_modules/@deepkit/type-compiler/dist/cjs/src/loader.d.ts","../src/deepkit.ts"],"x_google_ignoreList":[0,1,2,3,4,5],"mappings":""}
|
package/dist/deepkit.mjs
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { a as debugPackStruct, c as packSize, i as ReflectionTransformer, l as packSizeByte, n as Cache, o as declarationTransformer, r as DeclarationTransformer, s as encodeOps, t as DeepkitLoader, u as transformer } from "./deepkit-
|
|
1
|
+
import { a as debugPackStruct, c as packSize, i as ReflectionTransformer, l as packSizeByte, n as Cache, o as declarationTransformer, r as DeclarationTransformer, s as encodeOps, t as DeepkitLoader, u as transformer } from "./deepkit-BUz4LI7V.mjs";
|
|
2
2
|
|
|
3
3
|
export { Cache, DeclarationTransformer, DeepkitLoader, ReflectionTransformer, debugPackStruct, declarationTransformer, encodeOps, packSize, packSizeByte, transformer };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { a as JSON_SCHEMA_TYPES, c as SCHEMA_RECORD_KEYWORDS, i as JSON_SCHEMA_PRIMITIVE_TYPES, l as SCHEMA_SINGLE_KEYWORDS, n as JSON_SCHEMA_CONSTRUCTOR_KEY, r as JSON_SCHEMA_METADATA_KEYS, s as SCHEMA_ARRAY_CONCAT_KEYWORDS } from "./constants-D0asFRyy.mjs";
|
|
2
2
|
import { isSetObject } from "@stryke/type-checks/is-set-object";
|
|
3
3
|
import { isSetString } from "@stryke/type-checks/is-set-string";
|
|
4
4
|
import { isBoolean, isFunction, isSetObject as isSetObject$1, isSetString as isSetString$1, isString } from "@stryke/type-checks";
|
|
@@ -939,4 +939,4 @@ function traverseSchema(schema, callback) {
|
|
|
939
939
|
|
|
940
940
|
//#endregion
|
|
941
941
|
export { isUntypedConfig as $, isJsonSchemaNativeEnum as A, isJsonSchemaSet as B, isJsonSchemaDate as C, isJsonSchemaKeywords as D, isJsonSchemaInteger as E, isJsonSchemaObject as F, isJsonSchemaUnion as G, isJsonSchemaTuple as H, isJsonSchemaPrimitiveType as I, isSchema as J, isJsonSchemaUnknown as K, isJsonSchemaPrimitiveUnion as L, isJsonSchemaNull as M, isJsonSchemaNullable as N, isJsonSchemaLiteral as O, isJsonSchemaNumber as P, isStandardSchema as Q, isJsonSchemaRecord as R, isJsonSchemaBoolean as S, isJsonSchemaEnum as T, isJsonSchemaType as U, isJsonSchemaString as V, isJsonSchemaUndefined as W, isSchemaOf as X, isSchemaObject as Y, isSchemaWithSource as Z, isJsonSchemaAllOf as _, getPropertiesList as a, isValibotSchema as at, isJsonSchemaArray as b, isSchemaNullable as c, readSchemaTypes as ct, merge as d, isUntypedConfigStrict as et, mergeMetadata as f, isJsonSchema as g, isFileReference as h, getProperties as i, isUntypedSchemaStrict as it, isJsonSchemaNever as j, isJsonSchemaMap as k, isValidSchemaConfigFile as l, hasJsonSchemaConstructorFlag as m, getJsonSchema as n, isUntypedInputStrict as nt, getProperty as o, applyJsonSchemaMetadata as ot, traverseSchema as p, isNullOnlyJsonSchema as q, getJsonSchemaObject as r, isUntypedSchema as rt, isPropertyOptional as s, getPrimarySchemaType as st, addProperty as t, isUntypedInput as tt, isValidSchemaInputFile as u, isJsonSchemaAny as v, isJsonSchemaDecimal as w, isJsonSchemaBigint as x, isJsonSchemaAnyOf as y, isJsonSchemaRef as z };
|
|
942
|
-
//# sourceMappingURL=helpers-
|
|
942
|
+
//# sourceMappingURL=helpers-CAmQbxG5.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"helpers-CAmQbxG5.mjs","names":[],"sources":[],"mappings":""}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
const require_rolldown_runtime = require('./rolldown-runtime-fl3r8ClO.cjs');
|
|
2
|
-
const require_constants = require('./constants-
|
|
2
|
+
const require_constants = require('./constants-DUJjv-fA.cjs');
|
|
3
3
|
let _stryke_type_checks_is_set_object = require("@stryke/type-checks/is-set-object");
|
|
4
4
|
let _stryke_type_checks_is_set_string = require("@stryke/type-checks/is-set-string");
|
|
5
5
|
let _stryke_type_checks = require("@stryke/type-checks");
|
package/dist/index.cjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
2
|
const require_rolldown_runtime = require('./rolldown-runtime-fl3r8ClO.cjs');
|
|
3
|
-
const require_constants = require('./constants-
|
|
4
|
-
const require_helpers = require('./helpers-
|
|
5
|
-
const require_deepkit = require('./deepkit-
|
|
3
|
+
const require_constants = require('./constants-DUJjv-fA.cjs');
|
|
4
|
+
const require_helpers = require('./helpers-D1sydyZl.cjs');
|
|
5
|
+
const require_deepkit = require('./deepkit-CzTuG3HO.cjs');
|
|
6
6
|
const require_codegen = require('./codegen.cjs');
|
|
7
7
|
const require_storage = require('./storage-C8Lnl5Hw.cjs');
|
|
8
8
|
let _stryke_type_checks_is_set_object = require("@stryke/type-checks/is-set-object");
|
|
@@ -40,9 +40,12 @@ const METADATA_KEYS = /* @__PURE__ */ new Set([
|
|
|
40
40
|
function isMetadataKey(key) {
|
|
41
41
|
return METADATA_KEYS.has(key);
|
|
42
42
|
}
|
|
43
|
+
/**
|
|
44
|
+
* Returns true when `schema` is unconstrained (`JsonSchemaAny`):
|
|
45
|
+
* empty, metadata-only, or otherwise lacking structural keywords.
|
|
46
|
+
*/
|
|
43
47
|
function isUnconstrainedSchema(schema) {
|
|
44
48
|
if (!(0, _stryke_type_checks_is_set_object.isSetObject)(schema)) return true;
|
|
45
|
-
if (schema.type === "any") return true;
|
|
46
49
|
return Object.keys(schema).filter((key) => !isMetadataKey(key)).length === 0;
|
|
47
50
|
}
|
|
48
51
|
function resolveSchemaTypes(schema) {
|
|
@@ -67,7 +70,7 @@ function valuesEqual(left, right) {
|
|
|
67
70
|
*
|
|
68
71
|
* @remarks
|
|
69
72
|
* Metadata-only keywords are ignored. Either schema may be unconstrained
|
|
70
|
-
* (`
|
|
73
|
+
* (`JsonSchemaAny`, empty object, or missing structural keywords) without
|
|
71
74
|
* producing contradictions.
|
|
72
75
|
*
|
|
73
76
|
* @param base - The base JSON Schema fragment.
|
|
@@ -126,7 +129,7 @@ function findSchemaContradictions(base, override, path = "") {
|
|
|
126
129
|
* @param base - The base JSON Schema fragment.
|
|
127
130
|
* @param override - The JSON Schema fragment to compare against the base.
|
|
128
131
|
* @param label - A label used in the thrown error message.
|
|
129
|
-
* @throws
|
|
132
|
+
* @throws Will throw an Error when one or more structural contradictions are found.
|
|
130
133
|
*/
|
|
131
134
|
function assertSchemasDoNotContradict(base, override, label = "schema") {
|
|
132
135
|
const issues = findSchemaContradictions(base, override);
|
|
@@ -1002,9 +1005,11 @@ async function extractTSType(input, options = {}) {
|
|
|
1002
1005
|
splitting: false,
|
|
1003
1006
|
treeShaking: true,
|
|
1004
1007
|
bundle: true,
|
|
1005
|
-
packages: "bundle",
|
|
1006
1008
|
keepNames: true,
|
|
1007
1009
|
metafile: false,
|
|
1010
|
+
minify: true,
|
|
1011
|
+
legalComments: "none",
|
|
1012
|
+
target: "es2022",
|
|
1008
1013
|
absWorkingDir: cwd,
|
|
1009
1014
|
plugins: [createDeepkitPlugin(options)]
|
|
1010
1015
|
});
|
|
@@ -1030,11 +1035,11 @@ async function extractTSType(input, options = {}) {
|
|
|
1030
1035
|
if (!schema) throw new Error(`The export "${exportName}" could not be converted to a JSON Schema.`);
|
|
1031
1036
|
return schema;
|
|
1032
1037
|
} catch (error) {
|
|
1033
|
-
throw new Error(`Failed to generate a JSON schema for "${fileReference.file}"${resolvedPath && resolvedPath !== fileReference.file ? ` (resolved: ${resolvedPath})` : ""} using the type "${exportName}". Error: ${error.message}`);
|
|
1038
|
+
throw new Error(`Failed to generate a JSON schema for "${fileReference.file}"${resolvedPath && resolvedPath !== fileReference.file ? ` (resolved: ${resolvedPath})` : ""} using the type "${exportName}". Error: ${error.message}${error.stack ? `\n${error.stack}` : ""}`);
|
|
1034
1039
|
}
|
|
1035
1040
|
}
|
|
1036
1041
|
/**
|
|
1037
|
-
* Extracts a JSON Schema from a given schema definition input, which can be a Zod schema, a Valibot schema, any Standard JSON Schema type, a plain JSON Schema object, an untyped schema, a Deepkit Type object, or a {@link FileReferenceInput} to an exported TypeScript type definition or any of the previous options. If the input is a {@link FileReferenceInput} (e.g. a file path with an export), the source code will be bundled with [esbuild](https://esbuild.github.io) using [
|
|
1042
|
+
* Extracts a JSON Schema from a given schema definition input, which can be a Zod schema, a Valibot schema, any Standard JSON Schema type, a plain JSON Schema object, an untyped schema, a Deepkit Type object, or a {@link FileReferenceInput} to an exported TypeScript type definition or any of the previous options. If the input is a {@link FileReferenceInput} (e.g. a file path with an export), the source code will be bundled with [esbuild](https://esbuild.github.io) using [\@deepkit/type-compiler](https://deepkit.io/en/documentation/runtime-types/getting-started) reflection to obtain the actual schema definition before extraction.
|
|
1038
1043
|
*
|
|
1039
1044
|
* @example
|
|
1040
1045
|
* ```ts
|
|
@@ -1129,7 +1134,7 @@ async function extractSchemaWithSource(input, options = {}) {
|
|
|
1129
1134
|
};
|
|
1130
1135
|
}
|
|
1131
1136
|
/**
|
|
1132
|
-
* Extracts a JSON Schema from a given schema definition input, which can be a Zod schema, a Valibot schema, any Standard JSON Schema type, a plain JSON Schema object, an untyped schema, a Deepkit Type object, or a {@link FileReferenceInput} to an exported TypeScript type definition or any of the previous options. If the input is a {@link FileReferenceInput} (e.g. a file path with an export), the source code will be bundled with [esbuild](https://esbuild.github.io) using [
|
|
1137
|
+
* Extracts a JSON Schema from a given schema definition input, which can be a Zod schema, a Valibot schema, any Standard JSON Schema type, a plain JSON Schema object, an untyped schema, a Deepkit Type object, or a {@link FileReferenceInput} to an exported TypeScript type definition or any of the previous options. If the input is a {@link FileReferenceInput} (e.g. a file path with an export), the source code will be bundled with [esbuild](https://esbuild.github.io) using [\@deepkit/type-compiler](https://deepkit.io/en/documentation/runtime-types/getting-started) reflection to obtain the actual schema definition before extraction.
|
|
1133
1138
|
*
|
|
1134
1139
|
* @example
|
|
1135
1140
|
* ```ts
|
|
@@ -1170,6 +1175,7 @@ async function extract(input, options = {}) {
|
|
|
1170
1175
|
}
|
|
1171
1176
|
|
|
1172
1177
|
//#endregion
|
|
1178
|
+
exports.JSON_SCHEMA_ANY = require_constants.JSON_SCHEMA_ANY;
|
|
1173
1179
|
exports.JSON_SCHEMA_CONSTRUCTOR_KEY = require_constants.JSON_SCHEMA_CONSTRUCTOR_KEY;
|
|
1174
1180
|
exports.JSON_SCHEMA_METADATA_KEYS = require_constants.JSON_SCHEMA_METADATA_KEYS;
|
|
1175
1181
|
exports.JSON_SCHEMA_PRIMITIVE_TYPES = require_constants.JSON_SCHEMA_PRIMITIVE_TYPES;
|
package/dist/index.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $ as SchemaEnvelopeOf, A as JsonSchemaNullable, B as JsonSchemaSchemaSource, C as JsonSchemaLiteral, D as JsonSchemaNativeEnum, E as JsonSchemaMetadataKeywords, F as JsonSchemaPrimitiveType, G as JsonSchemaType, H as JsonSchemaString, I as JsonSchemaPrimitiveUnion, J as JsonSchemaUnknown, K as JsonSchemaUndefined, L as JsonSchemaRecord, M as JsonSchemaNumberFormat, N as JsonSchemaObject, O as JsonSchemaNever, P as JsonSchemaOf, Q as SchemaEnvelope, R as JsonSchemaRecordPropertyNames, S as JsonSchemaLike, T as JsonSchemaMap, U as JsonSchemaStringFormat, V as JsonSchemaSet, W as JsonSchemaTuple, X as SchemaConfig, Y as ReflectionSchemaSource, Z as SchemaConfigVariant, _ as JsonSchemaFunction, _t as
|
|
1
|
+
import { $ as SchemaEnvelopeOf, A as JsonSchemaNullable, B as JsonSchemaSchemaSource, C as JsonSchemaLiteral, D as JsonSchemaNativeEnum, E as JsonSchemaMetadataKeywords, F as JsonSchemaPrimitiveType, G as JsonSchemaType, H as JsonSchemaString, I as JsonSchemaPrimitiveUnion, J as JsonSchemaUnknown, K as JsonSchemaUndefined, L as JsonSchemaRecord, M as JsonSchemaNumberFormat, N as JsonSchemaObject, O as JsonSchemaNever, P as JsonSchemaOf, Q as SchemaEnvelope, R as JsonSchemaRecordPropertyNames, S as JsonSchemaLike, T as JsonSchemaMap, U as JsonSchemaStringFormat, V as JsonSchemaSet, W as JsonSchemaTuple, X as SchemaConfig, Y as ReflectionSchemaSource, Z as SchemaConfigVariant, _ as JsonSchemaFunction, _t as SCHEMA_ARRAY_CONCAT_KEYWORDS, a as JsonSchema, at as UntypedConfigObject, b as JsonSchemaIntegerFormat, c as JsonSchemaAnyOf, ct as ValibotSchema, d as JsonSchemaBoolean, dt as JSON_SCHEMA_ANY, et as SchemaSource, f as JsonSchemaConditionalKeywords, ft as JSON_SCHEMA_CONSTRUCTOR_KEY, g as JsonSchemaEnum, gt as JsonSchemaTypeNames, h as JsonSchemaDecimalFormat, ht as JSON_SCHEMA_TYPES, i as InferExtractOptions, it as StandardSchemaSchemaSource, j as JsonSchemaNumber, k as JsonSchemaNull, l as JsonSchemaArray, lt as ValibotSchemaSource, m as JsonSchemaDecimal, mt as JSON_SCHEMA_PRIMITIVE_TYPES, n as BaseSchemaSource, nt as SchemaSourceVariant, o as JsonSchemaAllOf, ot as UntypedSchema, p as JsonSchemaDate, pt as JSON_SCHEMA_METADATA_KEYS, q as JsonSchemaUnion, r as ExtractedSchemaEnvelope, rt as SpecOf, s as JsonSchemaAny, st as UntypedSchemaSource, t as BaseExtractOptions, tt as SchemaSourceConfig, u as JsonSchemaBigint, ut as Zod3SchemaSource, v as JsonSchemaFunctionParameter, vt as SCHEMA_RECORD_KEYWORDS, w as JsonSchemaLogicKeywords, x as JsonSchemaKeywords, y as JsonSchemaInteger, yt as SCHEMA_SINGLE_KEYWORDS, z as JsonSchemaRef } from "./types-HDWallsq.cjs";
|
|
2
2
|
import { n as createStoragePromises, r as normalizeKey, t as mapStorageToFileSystem } from "./index-ldf5lukz.cjs";
|
|
3
3
|
import { Type } from "@deepkit/type";
|
|
4
4
|
import { StandardSchemaV1 } from "@standard-schema/spec";
|
|
@@ -13,7 +13,7 @@ import { FileReference } from "@stryke/types/configuration";
|
|
|
13
13
|
*
|
|
14
14
|
* @remarks
|
|
15
15
|
* Metadata-only keywords are ignored. Either schema may be unconstrained
|
|
16
|
-
* (`
|
|
16
|
+
* (`JsonSchemaAny`, empty object, or missing structural keywords) without
|
|
17
17
|
* producing contradictions.
|
|
18
18
|
*
|
|
19
19
|
* @param base - The base JSON Schema fragment.
|
|
@@ -28,7 +28,7 @@ declare function findSchemaContradictions(base: JsonSchema, override: JsonSchema
|
|
|
28
28
|
* @param base - The base JSON Schema fragment.
|
|
29
29
|
* @param override - The JSON Schema fragment to compare against the base.
|
|
30
30
|
* @param label - A label used in the thrown error message.
|
|
31
|
-
* @throws
|
|
31
|
+
* @throws Will throw an Error when one or more structural contradictions are found.
|
|
32
32
|
*/
|
|
33
33
|
declare function assertSchemasDoNotContradict(base: JsonSchema, override: JsonSchema, label?: string): void;
|
|
34
34
|
//#endregion
|
|
@@ -100,7 +100,7 @@ declare function extractSource(variant: SchemaSourceVariant, input: SchemaSource
|
|
|
100
100
|
*/
|
|
101
101
|
declare function extractTSType(input: FileReferenceInput, options?: InferLoadOptions<typeof input> & BaseExtractOptions): Promise<JsonSchema>;
|
|
102
102
|
/**
|
|
103
|
-
* Extracts a JSON Schema from a given schema definition input, which can be a Zod schema, a Valibot schema, any Standard JSON Schema type, a plain JSON Schema object, an untyped schema, a Deepkit Type object, or a {@link FileReferenceInput} to an exported TypeScript type definition or any of the previous options. If the input is a {@link FileReferenceInput} (e.g. a file path with an export), the source code will be bundled with [esbuild](https://esbuild.github.io) using [
|
|
103
|
+
* Extracts a JSON Schema from a given schema definition input, which can be a Zod schema, a Valibot schema, any Standard JSON Schema type, a plain JSON Schema object, an untyped schema, a Deepkit Type object, or a {@link FileReferenceInput} to an exported TypeScript type definition or any of the previous options. If the input is a {@link FileReferenceInput} (e.g. a file path with an export), the source code will be bundled with [esbuild](https://esbuild.github.io) using [\@deepkit/type-compiler](https://deepkit.io/en/documentation/runtime-types/getting-started) reflection to obtain the actual schema definition before extraction.
|
|
104
104
|
*
|
|
105
105
|
* @example
|
|
106
106
|
* ```ts
|
|
@@ -134,7 +134,7 @@ declare function extractTSType(input: FileReferenceInput, options?: InferLoadOpt
|
|
|
134
134
|
*/
|
|
135
135
|
declare function extractSchemaWithSource<TSpec = any>(input: SchemaConfig, options?: InferExtractOptions<typeof input>): Promise<ExtractedSchemaEnvelope<TSpec>>;
|
|
136
136
|
/**
|
|
137
|
-
* Extracts a JSON Schema from a given schema definition input, which can be a Zod schema, a Valibot schema, any Standard JSON Schema type, a plain JSON Schema object, an untyped schema, a Deepkit Type object, or a {@link FileReferenceInput} to an exported TypeScript type definition or any of the previous options. If the input is a {@link FileReferenceInput} (e.g. a file path with an export), the source code will be bundled with [esbuild](https://esbuild.github.io) using [
|
|
137
|
+
* Extracts a JSON Schema from a given schema definition input, which can be a Zod schema, a Valibot schema, any Standard JSON Schema type, a plain JSON Schema object, an untyped schema, a Deepkit Type object, or a {@link FileReferenceInput} to an exported TypeScript type definition or any of the previous options. If the input is a {@link FileReferenceInput} (e.g. a file path with an export), the source code will be bundled with [esbuild](https://esbuild.github.io) using [\@deepkit/type-compiler](https://deepkit.io/en/documentation/runtime-types/getting-started) reflection to obtain the actual schema definition before extraction.
|
|
138
138
|
*
|
|
139
139
|
* @example
|
|
140
140
|
* ```ts
|
|
@@ -676,5 +676,5 @@ declare function isSchemaWithSource(input: unknown): input is ExtractedSchemaEnv
|
|
|
676
676
|
*/
|
|
677
677
|
declare function isSchemaObject(input: unknown): input is SchemaEnvelope<JsonSchemaObject>;
|
|
678
678
|
//#endregion
|
|
679
|
-
export { type BaseExtractOptions, type BaseSchemaSource, type ExtractedSchemaEnvelope, GetPropertyResult, type InferExtractOptions, JSON_SCHEMA_CONSTRUCTOR_KEY, JSON_SCHEMA_METADATA_KEYS, JSON_SCHEMA_PRIMITIVE_TYPES, JSON_SCHEMA_TYPES, type JsonSchema, type JsonSchemaAllOf, type JsonSchemaAny, type JsonSchemaAnyOf, type JsonSchemaArray, type JsonSchemaBigint, type JsonSchemaBoolean, type JsonSchemaConditionalKeywords, type JsonSchemaDate, type JsonSchemaDecimal, type JsonSchemaDecimalFormat, type JsonSchemaEnum, type JsonSchemaFunction, type JsonSchemaFunctionParameter, type JsonSchemaInteger, type JsonSchemaIntegerFormat, type JsonSchemaKeywords, type JsonSchemaLike, type JsonSchemaLiteral, type JsonSchemaLogicKeywords, type JsonSchemaMap, type JsonSchemaMetadataKeywords, type JsonSchemaNativeEnum, type JsonSchemaNever, type JsonSchemaNull, type JsonSchemaNullable, type JsonSchemaNumber, type JsonSchemaNumberFormat, type JsonSchemaObject, type JsonSchemaOf, type JsonSchemaPrimitiveType, type JsonSchemaPrimitiveUnion, type JsonSchemaRecord, type JsonSchemaRecordPropertyNames, type JsonSchemaRef, type JsonSchemaSchemaSource, type JsonSchemaSet, type JsonSchemaString, type JsonSchemaStringFormat, type JsonSchemaTuple, type JsonSchemaType, JsonSchemaTypeNames, type JsonSchemaUndefined, type JsonSchemaUnion, type JsonSchemaUnknown, type ReflectionSchemaSource, SCHEMA_ARRAY_CONCAT_KEYWORDS, SCHEMA_RECORD_KEYWORDS, SCHEMA_SINGLE_KEYWORDS, type SchemaConfig, type SchemaConfigVariant, type SchemaEnvelope, type SchemaEnvelopeOf, type SchemaSource, type SchemaSourceConfig, type SchemaSourceVariant, type SpecOf, type StandardSchemaSchemaSource, type UntypedConfigObject, type UntypedSchema, type UntypedSchemaSource, type ValibotSchema, type ValibotSchemaSource, type Zod3SchemaSource, addProperty, applyJsonSchemaMetadata, assertSchemasDoNotContradict, bundleReferences, createStoragePromises, extract, extractHash, extractJsonSchema, extractReflection, extractResolvedVariant, extractSchema, extractSchemaWithSource, extractSource, extractTSType, extractVariant, findSchemaContradictions, getJsonSchema, getJsonSchemaObject, getPrimarySchemaType, getProperties, getPropertiesList, getProperty, hasJsonSchemaConstructorFlag, isFileReference, isJsonSchema, isJsonSchemaAllOf, isJsonSchemaAny, isJsonSchemaAnyOf, isJsonSchemaArray, isJsonSchemaBigint, isJsonSchemaBoolean, isJsonSchemaDate, isJsonSchemaDecimal, isJsonSchemaEnum, isJsonSchemaInteger, isJsonSchemaKeywords, isJsonSchemaLiteral, isJsonSchemaMap, isJsonSchemaNativeEnum, isJsonSchemaNever, isJsonSchemaNull, isJsonSchemaNullable, isJsonSchemaNumber, isJsonSchemaObject, isJsonSchemaPrimitiveType, isJsonSchemaPrimitiveUnion, isJsonSchemaRecord, isJsonSchemaRef, isJsonSchemaSet, isJsonSchemaString, isJsonSchemaTuple, isJsonSchemaType, isJsonSchemaUndefined, isJsonSchemaUnion, isJsonSchemaUnknown, isNullOnlyJsonSchema, isPropertyOptional, isSchema, isSchemaNullable, isSchemaObject, isSchemaOf, isSchemaWithSource, isStandardSchema, isUntypedConfig, isUntypedConfigStrict, isUntypedInput, isUntypedInputStrict, isUntypedSchema, isUntypedSchemaStrict, isValibotSchema, isValidSchemaConfigFile, isValidSchemaInputFile, mapStorageToFileSystem, merge, mergeMetadata, normalizeKey, readSchemaTypes, traverseSchema };
|
|
679
|
+
export { type BaseExtractOptions, type BaseSchemaSource, type ExtractedSchemaEnvelope, GetPropertyResult, type InferExtractOptions, JSON_SCHEMA_ANY, JSON_SCHEMA_CONSTRUCTOR_KEY, JSON_SCHEMA_METADATA_KEYS, JSON_SCHEMA_PRIMITIVE_TYPES, JSON_SCHEMA_TYPES, type JsonSchema, type JsonSchemaAllOf, type JsonSchemaAny, type JsonSchemaAnyOf, type JsonSchemaArray, type JsonSchemaBigint, type JsonSchemaBoolean, type JsonSchemaConditionalKeywords, type JsonSchemaDate, type JsonSchemaDecimal, type JsonSchemaDecimalFormat, type JsonSchemaEnum, type JsonSchemaFunction, type JsonSchemaFunctionParameter, type JsonSchemaInteger, type JsonSchemaIntegerFormat, type JsonSchemaKeywords, type JsonSchemaLike, type JsonSchemaLiteral, type JsonSchemaLogicKeywords, type JsonSchemaMap, type JsonSchemaMetadataKeywords, type JsonSchemaNativeEnum, type JsonSchemaNever, type JsonSchemaNull, type JsonSchemaNullable, type JsonSchemaNumber, type JsonSchemaNumberFormat, type JsonSchemaObject, type JsonSchemaOf, type JsonSchemaPrimitiveType, type JsonSchemaPrimitiveUnion, type JsonSchemaRecord, type JsonSchemaRecordPropertyNames, type JsonSchemaRef, type JsonSchemaSchemaSource, type JsonSchemaSet, type JsonSchemaString, type JsonSchemaStringFormat, type JsonSchemaTuple, type JsonSchemaType, JsonSchemaTypeNames, type JsonSchemaUndefined, type JsonSchemaUnion, type JsonSchemaUnknown, type ReflectionSchemaSource, SCHEMA_ARRAY_CONCAT_KEYWORDS, SCHEMA_RECORD_KEYWORDS, SCHEMA_SINGLE_KEYWORDS, type SchemaConfig, type SchemaConfigVariant, type SchemaEnvelope, type SchemaEnvelopeOf, type SchemaSource, type SchemaSourceConfig, type SchemaSourceVariant, type SpecOf, type StandardSchemaSchemaSource, type UntypedConfigObject, type UntypedSchema, type UntypedSchemaSource, type ValibotSchema, type ValibotSchemaSource, type Zod3SchemaSource, addProperty, applyJsonSchemaMetadata, assertSchemasDoNotContradict, bundleReferences, createStoragePromises, extract, extractHash, extractJsonSchema, extractReflection, extractResolvedVariant, extractSchema, extractSchemaWithSource, extractSource, extractTSType, extractVariant, findSchemaContradictions, getJsonSchema, getJsonSchemaObject, getPrimarySchemaType, getProperties, getPropertiesList, getProperty, hasJsonSchemaConstructorFlag, isFileReference, isJsonSchema, isJsonSchemaAllOf, isJsonSchemaAny, isJsonSchemaAnyOf, isJsonSchemaArray, isJsonSchemaBigint, isJsonSchemaBoolean, isJsonSchemaDate, isJsonSchemaDecimal, isJsonSchemaEnum, isJsonSchemaInteger, isJsonSchemaKeywords, isJsonSchemaLiteral, isJsonSchemaMap, isJsonSchemaNativeEnum, isJsonSchemaNever, isJsonSchemaNull, isJsonSchemaNullable, isJsonSchemaNumber, isJsonSchemaObject, isJsonSchemaPrimitiveType, isJsonSchemaPrimitiveUnion, isJsonSchemaRecord, isJsonSchemaRef, isJsonSchemaSet, isJsonSchemaString, isJsonSchemaTuple, isJsonSchemaType, isJsonSchemaUndefined, isJsonSchemaUnion, isJsonSchemaUnknown, isNullOnlyJsonSchema, isPropertyOptional, isSchema, isSchemaNullable, isSchemaObject, isSchemaOf, isSchemaWithSource, isStandardSchema, isUntypedConfig, isUntypedConfigStrict, isUntypedInput, isUntypedInputStrict, isUntypedSchema, isUntypedSchemaStrict, isValibotSchema, isValidSchemaConfigFile, isValidSchemaInputFile, mapStorageToFileSystem, merge, mergeMetadata, normalizeKey, readSchemaTypes, traverseSchema };
|
|
680
680
|
//# sourceMappingURL=index.d.cts.map
|
package/dist/index.d.cts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.cts","names":[],"sources":["../src/compatibility.ts","../src/extract.ts","../src/helpers.ts","../src/metadata.ts","../src/type-checks.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"index.d.cts","names":[],"sources":["../src/compatibility.ts","../src/extract.ts","../src/helpers.ts","../src/metadata.ts","../src/type-checks.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;iBAyGgB,yBACd,MAAM,YACN,UAAU,YACV;;;;;;;;;iBAqHc,6BACd,MAAM,YACN,UAAU,YACV;;;;;;;;;iBCmDc,iBAAiB,QAAQ,aAAa;;;;iBAgMtC,YACd,SAAS,qBACT,OAAO;;;;iBA+CO,kBAAkB,YAAY,OAAO;;;;;;;iBAcrC,kBAAkB,kBAAkB;;;;;;;;iBAoCpC,uBACd,OAAO,qBACN;;;;;;;iBA4Ba,eAAe,OAAO,eAAe;;;;;;;;;iBAsB/B,cACpB,OAAO,oBACP,UAAU,s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SAAS;;;;;;;;;;iBAsCvC,qBAAqB,iBAAiB,SAAS;;;;;;;;;;iBAa/C,gBAAgB,iBAAiB,SAAS;;;;;;;;;;;iBAyD1C,sBAAsB,iBAAiB,SAAS;;;;;;;;;;;cAoBnD,uBAAc;iBAEX,gBAAgB,iBAAiB,SAAS;;;;;;;;;;;;cA2B7C,6BAAoB;iBAEjB,sBACd,iBACC,SAAS;;;;;;;iBAuBI,SAAS,iBAAiB,SAAS;;;;;;;iBAkBnC,WAAW,OACzB,iBACC,SAAS,iBAAiB;;;;;;;iBAUb,mBAAmB,iBAAiB,SAAS;;;;;;;iBAiB7C,eACd,iBACC,SAAS,eAAe"}
|
package/dist/index.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $ as SchemaEnvelopeOf, A as JsonSchemaNullable, B as JsonSchemaSchemaSource, C as JsonSchemaLiteral, D as JsonSchemaNativeEnum, E as JsonSchemaMetadataKeywords, F as JsonSchemaPrimitiveType, G as JsonSchemaType, H as JsonSchemaString, I as JsonSchemaPrimitiveUnion, J as JsonSchemaUnknown, K as JsonSchemaUndefined, L as JsonSchemaRecord, M as JsonSchemaNumberFormat, N as JsonSchemaObject, O as JsonSchemaNever, P as JsonSchemaOf, Q as SchemaEnvelope, R as JsonSchemaRecordPropertyNames, S as JsonSchemaLike, T as JsonSchemaMap, U as JsonSchemaStringFormat, V as JsonSchemaSet, W as JsonSchemaTuple, X as SchemaConfig, Y as ReflectionSchemaSource, Z as SchemaConfigVariant, _ as JsonSchemaFunction, _t as
|
|
1
|
+
import { $ as SchemaEnvelopeOf, A as JsonSchemaNullable, B as JsonSchemaSchemaSource, C as JsonSchemaLiteral, D as JsonSchemaNativeEnum, E as JsonSchemaMetadataKeywords, F as JsonSchemaPrimitiveType, G as JsonSchemaType, H as JsonSchemaString, I as JsonSchemaPrimitiveUnion, J as JsonSchemaUnknown, K as JsonSchemaUndefined, L as JsonSchemaRecord, M as JsonSchemaNumberFormat, N as JsonSchemaObject, O as JsonSchemaNever, P as JsonSchemaOf, Q as SchemaEnvelope, R as JsonSchemaRecordPropertyNames, S as JsonSchemaLike, T as JsonSchemaMap, U as JsonSchemaStringFormat, V as JsonSchemaSet, W as JsonSchemaTuple, X as SchemaConfig, Y as ReflectionSchemaSource, Z as SchemaConfigVariant, _ as JsonSchemaFunction, _t as SCHEMA_ARRAY_CONCAT_KEYWORDS, a as JsonSchema, at as UntypedConfigObject, b as JsonSchemaIntegerFormat, c as JsonSchemaAnyOf, ct as ValibotSchema, d as JsonSchemaBoolean, dt as JSON_SCHEMA_ANY, et as SchemaSource, f as JsonSchemaConditionalKeywords, ft as JSON_SCHEMA_CONSTRUCTOR_KEY, g as JsonSchemaEnum, gt as JsonSchemaTypeNames, h as JsonSchemaDecimalFormat, ht as JSON_SCHEMA_TYPES, i as InferExtractOptions, it as StandardSchemaSchemaSource, j as JsonSchemaNumber, k as JsonSchemaNull, l as JsonSchemaArray, lt as ValibotSchemaSource, m as JsonSchemaDecimal, mt as JSON_SCHEMA_PRIMITIVE_TYPES, n as BaseSchemaSource, nt as SchemaSourceVariant, o as JsonSchemaAllOf, ot as UntypedSchema, p as JsonSchemaDate, pt as JSON_SCHEMA_METADATA_KEYS, q as JsonSchemaUnion, r as ExtractedSchemaEnvelope, rt as SpecOf, s as JsonSchemaAny, st as UntypedSchemaSource, t as BaseExtractOptions, tt as SchemaSourceConfig, u as JsonSchemaBigint, ut as Zod3SchemaSource, v as JsonSchemaFunctionParameter, vt as SCHEMA_RECORD_KEYWORDS, w as JsonSchemaLogicKeywords, x as JsonSchemaKeywords, y as JsonSchemaInteger, yt as SCHEMA_SINGLE_KEYWORDS, z as JsonSchemaRef } from "./types-BO9WVLxT.mjs";
|
|
2
2
|
import { n as createStoragePromises, r as normalizeKey, t as mapStorageToFileSystem } from "./index-C7q4X7Bo.mjs";
|
|
3
3
|
import { Type } from "@deepkit/type";
|
|
4
4
|
import { BaseSchema } from "valibot";
|
|
@@ -13,7 +13,7 @@ import { FileReference } from "@stryke/types/configuration";
|
|
|
13
13
|
*
|
|
14
14
|
* @remarks
|
|
15
15
|
* Metadata-only keywords are ignored. Either schema may be unconstrained
|
|
16
|
-
* (`
|
|
16
|
+
* (`JsonSchemaAny`, empty object, or missing structural keywords) without
|
|
17
17
|
* producing contradictions.
|
|
18
18
|
*
|
|
19
19
|
* @param base - The base JSON Schema fragment.
|
|
@@ -28,7 +28,7 @@ declare function findSchemaContradictions(base: JsonSchema, override: JsonSchema
|
|
|
28
28
|
* @param base - The base JSON Schema fragment.
|
|
29
29
|
* @param override - The JSON Schema fragment to compare against the base.
|
|
30
30
|
* @param label - A label used in the thrown error message.
|
|
31
|
-
* @throws
|
|
31
|
+
* @throws Will throw an Error when one or more structural contradictions are found.
|
|
32
32
|
*/
|
|
33
33
|
declare function assertSchemasDoNotContradict(base: JsonSchema, override: JsonSchema, label?: string): void;
|
|
34
34
|
//#endregion
|
|
@@ -100,7 +100,7 @@ declare function extractSource(variant: SchemaSourceVariant, input: SchemaSource
|
|
|
100
100
|
*/
|
|
101
101
|
declare function extractTSType(input: FileReferenceInput, options?: InferLoadOptions<typeof input> & BaseExtractOptions): Promise<JsonSchema>;
|
|
102
102
|
/**
|
|
103
|
-
* Extracts a JSON Schema from a given schema definition input, which can be a Zod schema, a Valibot schema, any Standard JSON Schema type, a plain JSON Schema object, an untyped schema, a Deepkit Type object, or a {@link FileReferenceInput} to an exported TypeScript type definition or any of the previous options. If the input is a {@link FileReferenceInput} (e.g. a file path with an export), the source code will be bundled with [esbuild](https://esbuild.github.io) using [
|
|
103
|
+
* Extracts a JSON Schema from a given schema definition input, which can be a Zod schema, a Valibot schema, any Standard JSON Schema type, a plain JSON Schema object, an untyped schema, a Deepkit Type object, or a {@link FileReferenceInput} to an exported TypeScript type definition or any of the previous options. If the input is a {@link FileReferenceInput} (e.g. a file path with an export), the source code will be bundled with [esbuild](https://esbuild.github.io) using [\@deepkit/type-compiler](https://deepkit.io/en/documentation/runtime-types/getting-started) reflection to obtain the actual schema definition before extraction.
|
|
104
104
|
*
|
|
105
105
|
* @example
|
|
106
106
|
* ```ts
|
|
@@ -134,7 +134,7 @@ declare function extractTSType(input: FileReferenceInput, options?: InferLoadOpt
|
|
|
134
134
|
*/
|
|
135
135
|
declare function extractSchemaWithSource<TSpec = any>(input: SchemaConfig, options?: InferExtractOptions<typeof input>): Promise<ExtractedSchemaEnvelope<TSpec>>;
|
|
136
136
|
/**
|
|
137
|
-
* Extracts a JSON Schema from a given schema definition input, which can be a Zod schema, a Valibot schema, any Standard JSON Schema type, a plain JSON Schema object, an untyped schema, a Deepkit Type object, or a {@link FileReferenceInput} to an exported TypeScript type definition or any of the previous options. If the input is a {@link FileReferenceInput} (e.g. a file path with an export), the source code will be bundled with [esbuild](https://esbuild.github.io) using [
|
|
137
|
+
* Extracts a JSON Schema from a given schema definition input, which can be a Zod schema, a Valibot schema, any Standard JSON Schema type, a plain JSON Schema object, an untyped schema, a Deepkit Type object, or a {@link FileReferenceInput} to an exported TypeScript type definition or any of the previous options. If the input is a {@link FileReferenceInput} (e.g. a file path with an export), the source code will be bundled with [esbuild](https://esbuild.github.io) using [\@deepkit/type-compiler](https://deepkit.io/en/documentation/runtime-types/getting-started) reflection to obtain the actual schema definition before extraction.
|
|
138
138
|
*
|
|
139
139
|
* @example
|
|
140
140
|
* ```ts
|
|
@@ -676,5 +676,5 @@ declare function isSchemaWithSource(input: unknown): input is ExtractedSchemaEnv
|
|
|
676
676
|
*/
|
|
677
677
|
declare function isSchemaObject(input: unknown): input is SchemaEnvelope<JsonSchemaObject>;
|
|
678
678
|
//#endregion
|
|
679
|
-
export { type BaseExtractOptions, type BaseSchemaSource, type ExtractedSchemaEnvelope, GetPropertyResult, type InferExtractOptions, JSON_SCHEMA_CONSTRUCTOR_KEY, JSON_SCHEMA_METADATA_KEYS, JSON_SCHEMA_PRIMITIVE_TYPES, JSON_SCHEMA_TYPES, type JsonSchema, type JsonSchemaAllOf, type JsonSchemaAny, type JsonSchemaAnyOf, type JsonSchemaArray, type JsonSchemaBigint, type JsonSchemaBoolean, type JsonSchemaConditionalKeywords, type JsonSchemaDate, type JsonSchemaDecimal, type JsonSchemaDecimalFormat, type JsonSchemaEnum, type JsonSchemaFunction, type JsonSchemaFunctionParameter, type JsonSchemaInteger, type JsonSchemaIntegerFormat, type JsonSchemaKeywords, type JsonSchemaLike, type JsonSchemaLiteral, type JsonSchemaLogicKeywords, type JsonSchemaMap, type JsonSchemaMetadataKeywords, type JsonSchemaNativeEnum, type JsonSchemaNever, type JsonSchemaNull, type JsonSchemaNullable, type JsonSchemaNumber, type JsonSchemaNumberFormat, type JsonSchemaObject, type JsonSchemaOf, type JsonSchemaPrimitiveType, type JsonSchemaPrimitiveUnion, type JsonSchemaRecord, type JsonSchemaRecordPropertyNames, type JsonSchemaRef, type JsonSchemaSchemaSource, type JsonSchemaSet, type JsonSchemaString, type JsonSchemaStringFormat, type JsonSchemaTuple, type JsonSchemaType, JsonSchemaTypeNames, type JsonSchemaUndefined, type JsonSchemaUnion, type JsonSchemaUnknown, type ReflectionSchemaSource, SCHEMA_ARRAY_CONCAT_KEYWORDS, SCHEMA_RECORD_KEYWORDS, SCHEMA_SINGLE_KEYWORDS, type SchemaConfig, type SchemaConfigVariant, type SchemaEnvelope, type SchemaEnvelopeOf, type SchemaSource, type SchemaSourceConfig, type SchemaSourceVariant, type SpecOf, type StandardSchemaSchemaSource, type UntypedConfigObject, type UntypedSchema, type UntypedSchemaSource, type ValibotSchema, type ValibotSchemaSource, type Zod3SchemaSource, addProperty, applyJsonSchemaMetadata, assertSchemasDoNotContradict, bundleReferences, createStoragePromises, extract, extractHash, extractJsonSchema, extractReflection, extractResolvedVariant, extractSchema, extractSchemaWithSource, extractSource, extractTSType, extractVariant, findSchemaContradictions, getJsonSchema, getJsonSchemaObject, getPrimarySchemaType, getProperties, getPropertiesList, getProperty, hasJsonSchemaConstructorFlag, isFileReference, isJsonSchema, isJsonSchemaAllOf, isJsonSchemaAny, isJsonSchemaAnyOf, isJsonSchemaArray, isJsonSchemaBigint, isJsonSchemaBoolean, isJsonSchemaDate, isJsonSchemaDecimal, isJsonSchemaEnum, isJsonSchemaInteger, isJsonSchemaKeywords, isJsonSchemaLiteral, isJsonSchemaMap, isJsonSchemaNativeEnum, isJsonSchemaNever, isJsonSchemaNull, isJsonSchemaNullable, isJsonSchemaNumber, isJsonSchemaObject, isJsonSchemaPrimitiveType, isJsonSchemaPrimitiveUnion, isJsonSchemaRecord, isJsonSchemaRef, isJsonSchemaSet, isJsonSchemaString, isJsonSchemaTuple, isJsonSchemaType, isJsonSchemaUndefined, isJsonSchemaUnion, isJsonSchemaUnknown, isNullOnlyJsonSchema, isPropertyOptional, isSchema, isSchemaNullable, isSchemaObject, isSchemaOf, isSchemaWithSource, isStandardSchema, isUntypedConfig, isUntypedConfigStrict, isUntypedInput, isUntypedInputStrict, isUntypedSchema, isUntypedSchemaStrict, isValibotSchema, isValidSchemaConfigFile, isValidSchemaInputFile, mapStorageToFileSystem, merge, mergeMetadata, normalizeKey, readSchemaTypes, traverseSchema };
|
|
679
|
+
export { type BaseExtractOptions, type BaseSchemaSource, type ExtractedSchemaEnvelope, GetPropertyResult, type InferExtractOptions, JSON_SCHEMA_ANY, JSON_SCHEMA_CONSTRUCTOR_KEY, JSON_SCHEMA_METADATA_KEYS, JSON_SCHEMA_PRIMITIVE_TYPES, JSON_SCHEMA_TYPES, type JsonSchema, type JsonSchemaAllOf, type JsonSchemaAny, type JsonSchemaAnyOf, type JsonSchemaArray, type JsonSchemaBigint, type JsonSchemaBoolean, type JsonSchemaConditionalKeywords, type JsonSchemaDate, type JsonSchemaDecimal, type JsonSchemaDecimalFormat, type JsonSchemaEnum, type JsonSchemaFunction, type JsonSchemaFunctionParameter, type JsonSchemaInteger, type JsonSchemaIntegerFormat, type JsonSchemaKeywords, type JsonSchemaLike, type JsonSchemaLiteral, type JsonSchemaLogicKeywords, type JsonSchemaMap, type JsonSchemaMetadataKeywords, type JsonSchemaNativeEnum, type JsonSchemaNever, type JsonSchemaNull, type JsonSchemaNullable, type JsonSchemaNumber, type JsonSchemaNumberFormat, type JsonSchemaObject, type JsonSchemaOf, type JsonSchemaPrimitiveType, type JsonSchemaPrimitiveUnion, type JsonSchemaRecord, type JsonSchemaRecordPropertyNames, type JsonSchemaRef, type JsonSchemaSchemaSource, type JsonSchemaSet, type JsonSchemaString, type JsonSchemaStringFormat, type JsonSchemaTuple, type JsonSchemaType, JsonSchemaTypeNames, type JsonSchemaUndefined, type JsonSchemaUnion, type JsonSchemaUnknown, type ReflectionSchemaSource, SCHEMA_ARRAY_CONCAT_KEYWORDS, SCHEMA_RECORD_KEYWORDS, SCHEMA_SINGLE_KEYWORDS, type SchemaConfig, type SchemaConfigVariant, type SchemaEnvelope, type SchemaEnvelopeOf, type SchemaSource, type SchemaSourceConfig, type SchemaSourceVariant, type SpecOf, type StandardSchemaSchemaSource, type UntypedConfigObject, type UntypedSchema, type UntypedSchemaSource, type ValibotSchema, type ValibotSchemaSource, type Zod3SchemaSource, addProperty, applyJsonSchemaMetadata, assertSchemasDoNotContradict, bundleReferences, createStoragePromises, extract, extractHash, extractJsonSchema, extractReflection, extractResolvedVariant, extractSchema, extractSchemaWithSource, extractSource, extractTSType, extractVariant, findSchemaContradictions, getJsonSchema, getJsonSchemaObject, getPrimarySchemaType, getProperties, getPropertiesList, getProperty, hasJsonSchemaConstructorFlag, isFileReference, isJsonSchema, isJsonSchemaAllOf, isJsonSchemaAny, isJsonSchemaAnyOf, isJsonSchemaArray, isJsonSchemaBigint, isJsonSchemaBoolean, isJsonSchemaDate, isJsonSchemaDecimal, isJsonSchemaEnum, isJsonSchemaInteger, isJsonSchemaKeywords, isJsonSchemaLiteral, isJsonSchemaMap, isJsonSchemaNativeEnum, isJsonSchemaNever, isJsonSchemaNull, isJsonSchemaNullable, isJsonSchemaNumber, isJsonSchemaObject, isJsonSchemaPrimitiveType, isJsonSchemaPrimitiveUnion, isJsonSchemaRecord, isJsonSchemaRef, isJsonSchemaSet, isJsonSchemaString, isJsonSchemaTuple, isJsonSchemaType, isJsonSchemaUndefined, isJsonSchemaUnion, isJsonSchemaUnknown, isNullOnlyJsonSchema, isPropertyOptional, isSchema, isSchemaNullable, isSchemaObject, isSchemaOf, isSchemaWithSource, isStandardSchema, isUntypedConfig, isUntypedConfigStrict, isUntypedInput, isUntypedInputStrict, isUntypedSchema, isUntypedSchemaStrict, isValibotSchema, isValidSchemaConfigFile, isValidSchemaInputFile, mapStorageToFileSystem, merge, mergeMetadata, normalizeKey, readSchemaTypes, traverseSchema };
|
|
680
680
|
//# sourceMappingURL=index.d.mts.map
|
package/dist/index.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { i as ReflectionTransformer, n as Cache, r as DeclarationTransformer } from "./deepkit-
|
|
2
|
-
import { a as
|
|
3
|
-
import { $ as isUntypedConfig, A as isJsonSchemaNativeEnum, B as isJsonSchemaSet, C as isJsonSchemaDate, D as isJsonSchemaKeywords, E as isJsonSchemaInteger, F as isJsonSchemaObject, G as isJsonSchemaUnion, H as isJsonSchemaTuple, I as isJsonSchemaPrimitiveType, J as isSchema, K as isJsonSchemaUnknown, L as isJsonSchemaPrimitiveUnion, M as isJsonSchemaNull, N as isJsonSchemaNullable, O as isJsonSchemaLiteral, P as isJsonSchemaNumber, Q as isStandardSchema, R as isJsonSchemaRecord, S as isJsonSchemaBoolean, T as isJsonSchemaEnum, U as isJsonSchemaType, V as isJsonSchemaString, W as isJsonSchemaUndefined, X as isSchemaOf, Y as isSchemaObject, Z as isSchemaWithSource, _ as isJsonSchemaAllOf, a as getPropertiesList, at as isValibotSchema, b as isJsonSchemaArray, c as isSchemaNullable, ct as readSchemaTypes, d as merge, et as isUntypedConfigStrict, f as mergeMetadata, g as isJsonSchema, h as isFileReference, i as getProperties, it as isUntypedSchemaStrict, j as isJsonSchemaNever, k as isJsonSchemaMap, l as isValidSchemaConfigFile, m as hasJsonSchemaConstructorFlag, n as getJsonSchema, nt as isUntypedInputStrict, o as getProperty, ot as applyJsonSchemaMetadata, p as traverseSchema, q as isNullOnlyJsonSchema, r as getJsonSchemaObject, rt as isUntypedSchema, s as isPropertyOptional, st as getPrimarySchemaType, t as addProperty, tt as isUntypedInput, u as isValidSchemaInputFile, v as isJsonSchemaAny, w as isJsonSchemaDecimal, x as isJsonSchemaBigint, y as isJsonSchemaAnyOf, z as isJsonSchemaRef } from "./helpers-
|
|
1
|
+
import { i as ReflectionTransformer, n as Cache, r as DeclarationTransformer } from "./deepkit-BUz4LI7V.mjs";
|
|
2
|
+
import { a as JSON_SCHEMA_TYPES, c as SCHEMA_RECORD_KEYWORDS, i as JSON_SCHEMA_PRIMITIVE_TYPES, l as SCHEMA_SINGLE_KEYWORDS, n as JSON_SCHEMA_CONSTRUCTOR_KEY, o as JsonSchemaTypeNames, r as JSON_SCHEMA_METADATA_KEYS, s as SCHEMA_ARRAY_CONCAT_KEYWORDS, t as JSON_SCHEMA_ANY } from "./constants-D0asFRyy.mjs";
|
|
3
|
+
import { $ as isUntypedConfig, A as isJsonSchemaNativeEnum, B as isJsonSchemaSet, C as isJsonSchemaDate, D as isJsonSchemaKeywords, E as isJsonSchemaInteger, F as isJsonSchemaObject, G as isJsonSchemaUnion, H as isJsonSchemaTuple, I as isJsonSchemaPrimitiveType, J as isSchema, K as isJsonSchemaUnknown, L as isJsonSchemaPrimitiveUnion, M as isJsonSchemaNull, N as isJsonSchemaNullable, O as isJsonSchemaLiteral, P as isJsonSchemaNumber, Q as isStandardSchema, R as isJsonSchemaRecord, S as isJsonSchemaBoolean, T as isJsonSchemaEnum, U as isJsonSchemaType, V as isJsonSchemaString, W as isJsonSchemaUndefined, X as isSchemaOf, Y as isSchemaObject, Z as isSchemaWithSource, _ as isJsonSchemaAllOf, a as getPropertiesList, at as isValibotSchema, b as isJsonSchemaArray, c as isSchemaNullable, ct as readSchemaTypes, d as merge, et as isUntypedConfigStrict, f as mergeMetadata, g as isJsonSchema, h as isFileReference, i as getProperties, it as isUntypedSchemaStrict, j as isJsonSchemaNever, k as isJsonSchemaMap, l as isValidSchemaConfigFile, m as hasJsonSchemaConstructorFlag, n as getJsonSchema, nt as isUntypedInputStrict, o as getProperty, ot as applyJsonSchemaMetadata, p as traverseSchema, q as isNullOnlyJsonSchema, r as getJsonSchemaObject, rt as isUntypedSchema, s as isPropertyOptional, st as getPrimarySchemaType, t as addProperty, tt as isUntypedInput, u as isValidSchemaInputFile, v as isJsonSchemaAny, w as isJsonSchemaDecimal, x as isJsonSchemaBigint, y as isJsonSchemaAnyOf, z as isJsonSchemaRef } from "./helpers-CAmQbxG5.mjs";
|
|
4
4
|
import { getJsonSchemaType } from "./codegen.mjs";
|
|
5
5
|
import { n as createStoragePromises, r as normalizeKey, t as mapStorageToFileSystem } from "./storage-C3BT2Xh-.mjs";
|
|
6
6
|
import { isSetObject } from "@stryke/type-checks/is-set-object";
|
|
@@ -36,9 +36,12 @@ const METADATA_KEYS = /* @__PURE__ */ new Set([
|
|
|
36
36
|
function isMetadataKey(key) {
|
|
37
37
|
return METADATA_KEYS.has(key);
|
|
38
38
|
}
|
|
39
|
+
/**
|
|
40
|
+
* Returns true when `schema` is unconstrained (`JsonSchemaAny`):
|
|
41
|
+
* empty, metadata-only, or otherwise lacking structural keywords.
|
|
42
|
+
*/
|
|
39
43
|
function isUnconstrainedSchema(schema) {
|
|
40
44
|
if (!isSetObject(schema)) return true;
|
|
41
|
-
if (schema.type === "any") return true;
|
|
42
45
|
return Object.keys(schema).filter((key) => !isMetadataKey(key)).length === 0;
|
|
43
46
|
}
|
|
44
47
|
function resolveSchemaTypes(schema) {
|
|
@@ -63,7 +66,7 @@ function valuesEqual(left, right) {
|
|
|
63
66
|
*
|
|
64
67
|
* @remarks
|
|
65
68
|
* Metadata-only keywords are ignored. Either schema may be unconstrained
|
|
66
|
-
* (`
|
|
69
|
+
* (`JsonSchemaAny`, empty object, or missing structural keywords) without
|
|
67
70
|
* producing contradictions.
|
|
68
71
|
*
|
|
69
72
|
* @param base - The base JSON Schema fragment.
|
|
@@ -122,7 +125,7 @@ function findSchemaContradictions(base, override, path = "") {
|
|
|
122
125
|
* @param base - The base JSON Schema fragment.
|
|
123
126
|
* @param override - The JSON Schema fragment to compare against the base.
|
|
124
127
|
* @param label - A label used in the thrown error message.
|
|
125
|
-
* @throws
|
|
128
|
+
* @throws Will throw an Error when one or more structural contradictions are found.
|
|
126
129
|
*/
|
|
127
130
|
function assertSchemasDoNotContradict(base, override, label = "schema") {
|
|
128
131
|
const issues = findSchemaContradictions(base, override);
|
|
@@ -998,9 +1001,11 @@ async function extractTSType(input, options = {}) {
|
|
|
998
1001
|
splitting: false,
|
|
999
1002
|
treeShaking: true,
|
|
1000
1003
|
bundle: true,
|
|
1001
|
-
packages: "bundle",
|
|
1002
1004
|
keepNames: true,
|
|
1003
1005
|
metafile: false,
|
|
1006
|
+
minify: true,
|
|
1007
|
+
legalComments: "none",
|
|
1008
|
+
target: "es2022",
|
|
1004
1009
|
absWorkingDir: cwd,
|
|
1005
1010
|
plugins: [createDeepkitPlugin(options)]
|
|
1006
1011
|
});
|
|
@@ -1026,11 +1031,11 @@ async function extractTSType(input, options = {}) {
|
|
|
1026
1031
|
if (!schema) throw new Error(`The export "${exportName}" could not be converted to a JSON Schema.`);
|
|
1027
1032
|
return schema;
|
|
1028
1033
|
} catch (error) {
|
|
1029
|
-
throw new Error(`Failed to generate a JSON schema for "${fileReference.file}"${resolvedPath && resolvedPath !== fileReference.file ? ` (resolved: ${resolvedPath})` : ""} using the type "${exportName}". Error: ${error.message}`);
|
|
1034
|
+
throw new Error(`Failed to generate a JSON schema for "${fileReference.file}"${resolvedPath && resolvedPath !== fileReference.file ? ` (resolved: ${resolvedPath})` : ""} using the type "${exportName}". Error: ${error.message}${error.stack ? `\n${error.stack}` : ""}`);
|
|
1030
1035
|
}
|
|
1031
1036
|
}
|
|
1032
1037
|
/**
|
|
1033
|
-
* Extracts a JSON Schema from a given schema definition input, which can be a Zod schema, a Valibot schema, any Standard JSON Schema type, a plain JSON Schema object, an untyped schema, a Deepkit Type object, or a {@link FileReferenceInput} to an exported TypeScript type definition or any of the previous options. If the input is a {@link FileReferenceInput} (e.g. a file path with an export), the source code will be bundled with [esbuild](https://esbuild.github.io) using [
|
|
1038
|
+
* Extracts a JSON Schema from a given schema definition input, which can be a Zod schema, a Valibot schema, any Standard JSON Schema type, a plain JSON Schema object, an untyped schema, a Deepkit Type object, or a {@link FileReferenceInput} to an exported TypeScript type definition or any of the previous options. If the input is a {@link FileReferenceInput} (e.g. a file path with an export), the source code will be bundled with [esbuild](https://esbuild.github.io) using [\@deepkit/type-compiler](https://deepkit.io/en/documentation/runtime-types/getting-started) reflection to obtain the actual schema definition before extraction.
|
|
1034
1039
|
*
|
|
1035
1040
|
* @example
|
|
1036
1041
|
* ```ts
|
|
@@ -1125,7 +1130,7 @@ async function extractSchemaWithSource(input, options = {}) {
|
|
|
1125
1130
|
};
|
|
1126
1131
|
}
|
|
1127
1132
|
/**
|
|
1128
|
-
* Extracts a JSON Schema from a given schema definition input, which can be a Zod schema, a Valibot schema, any Standard JSON Schema type, a plain JSON Schema object, an untyped schema, a Deepkit Type object, or a {@link FileReferenceInput} to an exported TypeScript type definition or any of the previous options. If the input is a {@link FileReferenceInput} (e.g. a file path with an export), the source code will be bundled with [esbuild](https://esbuild.github.io) using [
|
|
1133
|
+
* Extracts a JSON Schema from a given schema definition input, which can be a Zod schema, a Valibot schema, any Standard JSON Schema type, a plain JSON Schema object, an untyped schema, a Deepkit Type object, or a {@link FileReferenceInput} to an exported TypeScript type definition or any of the previous options. If the input is a {@link FileReferenceInput} (e.g. a file path with an export), the source code will be bundled with [esbuild](https://esbuild.github.io) using [\@deepkit/type-compiler](https://deepkit.io/en/documentation/runtime-types/getting-started) reflection to obtain the actual schema definition before extraction.
|
|
1129
1134
|
*
|
|
1130
1135
|
* @example
|
|
1131
1136
|
* ```ts
|
|
@@ -1166,5 +1171,5 @@ async function extract(input, options = {}) {
|
|
|
1166
1171
|
}
|
|
1167
1172
|
|
|
1168
1173
|
//#endregion
|
|
1169
|
-
export { JSON_SCHEMA_CONSTRUCTOR_KEY, JSON_SCHEMA_METADATA_KEYS, JSON_SCHEMA_PRIMITIVE_TYPES, JSON_SCHEMA_TYPES, JsonSchemaTypeNames, SCHEMA_ARRAY_CONCAT_KEYWORDS, SCHEMA_RECORD_KEYWORDS, SCHEMA_SINGLE_KEYWORDS, addProperty, applyJsonSchemaMetadata, assertSchemasDoNotContradict, bundleReferences, createStoragePromises, extract, extractHash, extractJsonSchema, extractReflection, extractResolvedVariant, extractSchema, extractSchemaWithSource, extractSource, extractTSType, extractVariant, findSchemaContradictions, getJsonSchema, getJsonSchemaObject, getPrimarySchemaType, getProperties, getPropertiesList, getProperty, hasJsonSchemaConstructorFlag, isFileReference, isJsonSchema, isJsonSchemaAllOf, isJsonSchemaAny, isJsonSchemaAnyOf, isJsonSchemaArray, isJsonSchemaBigint, isJsonSchemaBoolean, isJsonSchemaDate, isJsonSchemaDecimal, isJsonSchemaEnum, isJsonSchemaInteger, isJsonSchemaKeywords, isJsonSchemaLiteral, isJsonSchemaMap, isJsonSchemaNativeEnum, isJsonSchemaNever, isJsonSchemaNull, isJsonSchemaNullable, isJsonSchemaNumber, isJsonSchemaObject, isJsonSchemaPrimitiveType, isJsonSchemaPrimitiveUnion, isJsonSchemaRecord, isJsonSchemaRef, isJsonSchemaSet, isJsonSchemaString, isJsonSchemaTuple, isJsonSchemaType, isJsonSchemaUndefined, isJsonSchemaUnion, isJsonSchemaUnknown, isNullOnlyJsonSchema, isPropertyOptional, isSchema, isSchemaNullable, isSchemaObject, isSchemaOf, isSchemaWithSource, isStandardSchema, isUntypedConfig, isUntypedConfigStrict, isUntypedInput, isUntypedInputStrict, isUntypedSchema, isUntypedSchemaStrict, isValibotSchema, isValidSchemaConfigFile, isValidSchemaInputFile, mapStorageToFileSystem, merge, mergeMetadata, normalizeKey, readSchemaTypes, traverseSchema };
|
|
1174
|
+
export { JSON_SCHEMA_ANY, JSON_SCHEMA_CONSTRUCTOR_KEY, JSON_SCHEMA_METADATA_KEYS, JSON_SCHEMA_PRIMITIVE_TYPES, JSON_SCHEMA_TYPES, JsonSchemaTypeNames, SCHEMA_ARRAY_CONCAT_KEYWORDS, SCHEMA_RECORD_KEYWORDS, SCHEMA_SINGLE_KEYWORDS, addProperty, applyJsonSchemaMetadata, assertSchemasDoNotContradict, bundleReferences, createStoragePromises, extract, extractHash, extractJsonSchema, extractReflection, extractResolvedVariant, extractSchema, extractSchemaWithSource, extractSource, extractTSType, extractVariant, findSchemaContradictions, getJsonSchema, getJsonSchemaObject, getPrimarySchemaType, getProperties, getPropertiesList, getProperty, hasJsonSchemaConstructorFlag, isFileReference, isJsonSchema, isJsonSchemaAllOf, isJsonSchemaAny, isJsonSchemaAnyOf, isJsonSchemaArray, isJsonSchemaBigint, isJsonSchemaBoolean, isJsonSchemaDate, isJsonSchemaDecimal, isJsonSchemaEnum, isJsonSchemaInteger, isJsonSchemaKeywords, isJsonSchemaLiteral, isJsonSchemaMap, isJsonSchemaNativeEnum, isJsonSchemaNever, isJsonSchemaNull, isJsonSchemaNullable, isJsonSchemaNumber, isJsonSchemaObject, isJsonSchemaPrimitiveType, isJsonSchemaPrimitiveUnion, isJsonSchemaRecord, isJsonSchemaRef, isJsonSchemaSet, isJsonSchemaString, isJsonSchemaTuple, isJsonSchemaType, isJsonSchemaUndefined, isJsonSchemaUnion, isJsonSchemaUnknown, isNullOnlyJsonSchema, isPropertyOptional, isSchema, isSchemaNullable, isSchemaObject, isSchemaOf, isSchemaWithSource, isStandardSchema, isUntypedConfig, isUntypedConfigStrict, isUntypedInput, isUntypedInputStrict, isUntypedSchema, isUntypedSchemaStrict, isValibotSchema, isValidSchemaConfigFile, isValidSchemaInputFile, mapStorageToFileSystem, merge, mergeMetadata, normalizeKey, readSchemaTypes, traverseSchema };
|
|
1170
1175
|
//# sourceMappingURL=index.mjs.map
|
|
@@ -6,6 +6,13 @@ import { Storage } from "unstorage";
|
|
|
6
6
|
import { InputObject, Schema } from "untyped";
|
|
7
7
|
import * as z3 from "zod/v3";
|
|
8
8
|
//#region src/constants.d.ts
|
|
9
|
+
/**
|
|
10
|
+
* Runtime value for an unconstrained {@link JsonSchemaAny} schema.
|
|
11
|
+
*
|
|
12
|
+
* @remarks
|
|
13
|
+
* Prefer this over the non-standard `type: "any"` marker.
|
|
14
|
+
*/
|
|
15
|
+
declare const JSON_SCHEMA_ANY: JsonSchemaAny;
|
|
9
16
|
declare const JsonSchemaTypeNames: {
|
|
10
17
|
readonly STRING: "string";
|
|
11
18
|
readonly NUMBER: "number";
|
|
@@ -291,7 +298,12 @@ interface JsonSchemaConditionalKeywords {
|
|
|
291
298
|
*/
|
|
292
299
|
type JsonSchemaKeywords = JsonSchemaMetadataKeywords & JsonSchemaLogicKeywords & JsonSchemaConditionalKeywords;
|
|
293
300
|
/**
|
|
294
|
-
*
|
|
301
|
+
* Unconstrained JSON Schema fragment (TypeScript `any`).
|
|
302
|
+
*
|
|
303
|
+
* @remarks
|
|
304
|
+
* Prefer an empty / metadata-only object — never the non-standard
|
|
305
|
+
* `type: "any"` marker. May also carry an optional `$ref`, or a primitive
|
|
306
|
+
* `type` when used as a catch-all branch (e.g. inside `not`).
|
|
295
307
|
*/
|
|
296
308
|
type JsonSchemaAny = JsonSchemaKeywords & ({
|
|
297
309
|
/**
|
|
@@ -304,7 +316,7 @@ type JsonSchemaAny = JsonSchemaKeywords & ({
|
|
|
304
316
|
/**
|
|
305
317
|
* Declares the primitive type of the schema.
|
|
306
318
|
*/
|
|
307
|
-
type
|
|
319
|
+
type?: JsonSchemaPrimitiveType | JsonSchemaPrimitiveType[];
|
|
308
320
|
});
|
|
309
321
|
/**
|
|
310
322
|
* JSON Schema keywords for array validation.
|
|
@@ -1449,5 +1461,5 @@ declare module "zod" {
|
|
|
1449
1461
|
}
|
|
1450
1462
|
}
|
|
1451
1463
|
//#endregion
|
|
1452
|
-
export { SchemaEnvelopeOf as $, JsonSchemaNullable as A, JsonSchemaSchemaSource as B, JsonSchemaLiteral as C, JsonSchemaNativeEnum as D, JsonSchemaMetadataKeywords as E, JsonSchemaPrimitiveType as F, JsonSchemaType as G, JsonSchemaString as H, JsonSchemaPrimitiveUnion as I, JsonSchemaUnknown as J, JsonSchemaUndefined as K, JsonSchemaRecord as L, JsonSchemaNumberFormat as M, JsonSchemaObject as N, JsonSchemaNever as O, JsonSchemaOf as P, SchemaEnvelope as Q, JsonSchemaRecordPropertyNames as R, JsonSchemaLike as S, JsonSchemaMap as T, JsonSchemaStringFormat as U, JsonSchemaSet as V, JsonSchemaTuple as W, SchemaConfig as X, ReflectionSchemaSource as Y, SchemaConfigVariant as Z, JsonSchemaFunction as _,
|
|
1453
|
-
//# sourceMappingURL=types-
|
|
1464
|
+
export { SchemaEnvelopeOf as $, JsonSchemaNullable as A, JsonSchemaSchemaSource as B, JsonSchemaLiteral as C, JsonSchemaNativeEnum as D, JsonSchemaMetadataKeywords as E, JsonSchemaPrimitiveType as F, JsonSchemaType as G, JsonSchemaString as H, JsonSchemaPrimitiveUnion as I, JsonSchemaUnknown as J, JsonSchemaUndefined as K, JsonSchemaRecord as L, JsonSchemaNumberFormat as M, JsonSchemaObject as N, JsonSchemaNever as O, JsonSchemaOf as P, SchemaEnvelope as Q, JsonSchemaRecordPropertyNames as R, JsonSchemaLike as S, JsonSchemaMap as T, JsonSchemaStringFormat as U, JsonSchemaSet as V, JsonSchemaTuple as W, SchemaConfig as X, ReflectionSchemaSource as Y, SchemaConfigVariant as Z, JsonSchemaFunction as _, SCHEMA_ARRAY_CONCAT_KEYWORDS as _t, JsonSchema as a, UntypedConfigObject as at, JsonSchemaIntegerFormat as b, JsonSchemaAnyOf as c, ValibotSchema as ct, JsonSchemaBoolean as d, JSON_SCHEMA_ANY as dt, SchemaSource as et, JsonSchemaConditionalKeywords as f, JSON_SCHEMA_CONSTRUCTOR_KEY as ft, JsonSchemaEnum as g, JsonSchemaTypeNames as gt, JsonSchemaDecimalFormat as h, JSON_SCHEMA_TYPES as ht, InferExtractOptions as i, StandardSchemaSchemaSource as it, JsonSchemaNumber as j, JsonSchemaNull as k, JsonSchemaArray as l, ValibotSchemaSource as lt, JsonSchemaDecimal as m, JSON_SCHEMA_PRIMITIVE_TYPES as mt, BaseSchemaSource as n, SchemaSourceVariant as nt, JsonSchemaAllOf as o, UntypedSchema as ot, JsonSchemaDate as p, JSON_SCHEMA_METADATA_KEYS as pt, JsonSchemaUnion as q, ExtractedSchemaEnvelope as r, SpecOf as rt, JsonSchemaAny as s, UntypedSchemaSource as st, BaseExtractOptions as t, SchemaSourceConfig as tt, JsonSchemaBigint as u, Zod3SchemaSource as ut, JsonSchemaFunctionParameter as v, SCHEMA_RECORD_KEYWORDS as vt, JsonSchemaLogicKeywords as w, JsonSchemaKeywords as x, JsonSchemaInteger as y, SCHEMA_SINGLE_KEYWORDS as yt, JsonSchemaRef as z };
|
|
1465
|
+
//# sourceMappingURL=types-BO9WVLxT.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types-BO9WVLxT.d.mts","names":[],"sources":["../src/constants.ts","../src/types.ts"],"mappings":""}
|
|
@@ -6,6 +6,13 @@ import { InputObject, Schema } from "untyped";
|
|
|
6
6
|
import { BaseIssue, BaseSchema } from "valibot";
|
|
7
7
|
import * as z3 from "zod/v3";
|
|
8
8
|
//#region src/constants.d.ts
|
|
9
|
+
/**
|
|
10
|
+
* Runtime value for an unconstrained {@link JsonSchemaAny} schema.
|
|
11
|
+
*
|
|
12
|
+
* @remarks
|
|
13
|
+
* Prefer this over the non-standard `type: "any"` marker.
|
|
14
|
+
*/
|
|
15
|
+
declare const JSON_SCHEMA_ANY: JsonSchemaAny;
|
|
9
16
|
declare const JsonSchemaTypeNames: {
|
|
10
17
|
readonly STRING: "string";
|
|
11
18
|
readonly NUMBER: "number";
|
|
@@ -291,7 +298,12 @@ interface JsonSchemaConditionalKeywords {
|
|
|
291
298
|
*/
|
|
292
299
|
type JsonSchemaKeywords = JsonSchemaMetadataKeywords & JsonSchemaLogicKeywords & JsonSchemaConditionalKeywords;
|
|
293
300
|
/**
|
|
294
|
-
*
|
|
301
|
+
* Unconstrained JSON Schema fragment (TypeScript `any`).
|
|
302
|
+
*
|
|
303
|
+
* @remarks
|
|
304
|
+
* Prefer an empty / metadata-only object — never the non-standard
|
|
305
|
+
* `type: "any"` marker. May also carry an optional `$ref`, or a primitive
|
|
306
|
+
* `type` when used as a catch-all branch (e.g. inside `not`).
|
|
295
307
|
*/
|
|
296
308
|
type JsonSchemaAny = JsonSchemaKeywords & ({
|
|
297
309
|
/**
|
|
@@ -304,7 +316,7 @@ type JsonSchemaAny = JsonSchemaKeywords & ({
|
|
|
304
316
|
/**
|
|
305
317
|
* Declares the primitive type of the schema.
|
|
306
318
|
*/
|
|
307
|
-
type
|
|
319
|
+
type?: JsonSchemaPrimitiveType | JsonSchemaPrimitiveType[];
|
|
308
320
|
});
|
|
309
321
|
/**
|
|
310
322
|
* JSON Schema keywords for array validation.
|
|
@@ -1449,5 +1461,5 @@ declare module "zod" {
|
|
|
1449
1461
|
}
|
|
1450
1462
|
}
|
|
1451
1463
|
//#endregion
|
|
1452
|
-
export { SchemaEnvelopeOf as $, JsonSchemaNullable as A, JsonSchemaSchemaSource as B, JsonSchemaLiteral as C, JsonSchemaNativeEnum as D, JsonSchemaMetadataKeywords as E, JsonSchemaPrimitiveType as F, JsonSchemaType as G, JsonSchemaString as H, JsonSchemaPrimitiveUnion as I, JsonSchemaUnknown as J, JsonSchemaUndefined as K, JsonSchemaRecord as L, JsonSchemaNumberFormat as M, JsonSchemaObject as N, JsonSchemaNever as O, JsonSchemaOf as P, SchemaEnvelope as Q, JsonSchemaRecordPropertyNames as R, JsonSchemaLike as S, JsonSchemaMap as T, JsonSchemaStringFormat as U, JsonSchemaSet as V, JsonSchemaTuple as W, SchemaConfig as X, ReflectionSchemaSource as Y, SchemaConfigVariant as Z, JsonSchemaFunction as _,
|
|
1453
|
-
//# sourceMappingURL=types-
|
|
1464
|
+
export { SchemaEnvelopeOf as $, JsonSchemaNullable as A, JsonSchemaSchemaSource as B, JsonSchemaLiteral as C, JsonSchemaNativeEnum as D, JsonSchemaMetadataKeywords as E, JsonSchemaPrimitiveType as F, JsonSchemaType as G, JsonSchemaString as H, JsonSchemaPrimitiveUnion as I, JsonSchemaUnknown as J, JsonSchemaUndefined as K, JsonSchemaRecord as L, JsonSchemaNumberFormat as M, JsonSchemaObject as N, JsonSchemaNever as O, JsonSchemaOf as P, SchemaEnvelope as Q, JsonSchemaRecordPropertyNames as R, JsonSchemaLike as S, JsonSchemaMap as T, JsonSchemaStringFormat as U, JsonSchemaSet as V, JsonSchemaTuple as W, SchemaConfig as X, ReflectionSchemaSource as Y, SchemaConfigVariant as Z, JsonSchemaFunction as _, SCHEMA_ARRAY_CONCAT_KEYWORDS as _t, JsonSchema as a, UntypedConfigObject as at, JsonSchemaIntegerFormat as b, JsonSchemaAnyOf as c, ValibotSchema as ct, JsonSchemaBoolean as d, JSON_SCHEMA_ANY as dt, SchemaSource as et, JsonSchemaConditionalKeywords as f, JSON_SCHEMA_CONSTRUCTOR_KEY as ft, JsonSchemaEnum as g, JsonSchemaTypeNames as gt, JsonSchemaDecimalFormat as h, JSON_SCHEMA_TYPES as ht, InferExtractOptions as i, StandardSchemaSchemaSource as it, JsonSchemaNumber as j, JsonSchemaNull as k, JsonSchemaArray as l, ValibotSchemaSource as lt, JsonSchemaDecimal as m, JSON_SCHEMA_PRIMITIVE_TYPES as mt, BaseSchemaSource as n, SchemaSourceVariant as nt, JsonSchemaAllOf as o, UntypedSchema as ot, JsonSchemaDate as p, JSON_SCHEMA_METADATA_KEYS as pt, JsonSchemaUnion as q, ExtractedSchemaEnvelope as r, SpecOf as rt, JsonSchemaAny as s, UntypedSchemaSource as st, BaseExtractOptions as t, SchemaSourceConfig as tt, JsonSchemaBigint as u, Zod3SchemaSource as ut, JsonSchemaFunctionParameter as v, SCHEMA_RECORD_KEYWORDS as vt, JsonSchemaLogicKeywords as w, JsonSchemaKeywords as x, JsonSchemaInteger as y, SCHEMA_SINGLE_KEYWORDS as yt, JsonSchemaRef as z };
|
|
1465
|
+
//# sourceMappingURL=types-HDWallsq.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types-HDWallsq.d.cts","names":[],"sources":["../src/constants.ts","../src/types.ts"],"mappings":";;;;;;;;;;;;;;cA0Ba,iBAAiB;cAEjB;;;;;;;;;cAUA;cAQA;cAMA;;;;;;;;;cAkCA;;;;;cAMA,wBAAsB;;;;;cAYtB,wBAAsB;;;;;cAiBtB,8BAA4B;;;;;;;;KCpF7B,kCACF;;;;;;KAOE,yBAAyB;;;;KAKzB;;;;KAaA;;;;KAKA,yBACV,0BAA0B;;;;KAKhB;;;;;;UA6BK;;;;;;;EAOf;;;;;;;EAQA;;;;;;;EAWA,cAAc;;;;;;;EAQd;;;;;;EAOA;;;;;;;;;EAUA,QAAQ,eAAe;;;;;;;;EASvB;;;;;;;EAQA;;;;EAKA;;;;EAKA;;;;EAKA;;;;EAKA;;;;EAKA;;;;EAKA;IACc;IAAe;IAAsB;;;;;EAMnD;;;;EAKA;;;;EAKA;IAGM;IAAkB;IAAgB;;;;;EAKxC;;;;EAKA;;;;;;EAOA;;;;EAKA;;;;EAKA;;;;EAKA;;;;;;;;UASe;;;;;;;;;EASf,QAAQ;;;;;;;;;EAUR,QAAQ;;;;;;;;;EAUR,QAAQ;;;;;;;;;EAUR,MAAM;;;;;;;;UASS;;;;;;;;;EASf,KAAK;;;;;;;;;EAUL,OAAO;;;;;;;;;EAUP,OAAO;;;;;KAMG,qBAAqB,6BAC/B,0BACA;;;;;;;;;KAUU,gBAAgB;;;;;;EAQpB;;;;;EAMA,OAAO,0BAA0B;;;;;;;UASxB,wBAAwB;;;;EAIvC;;;;;;EAOA,cAAc;;;;;;EAOd,QAAQ;;;;;;EAOR,WAAW;;;;EAKX;;;;EAKA;;;;EAKA;;;;EAKA;;;;EAKA;;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AAU,iBACvC,UAAU,gBACP,KAAK,iBAAiB,kBAGxB;;;;UAKa,eAAe,oBAAoB,aAAa;;;;EAI/D;;;;EAKA,SAAS;;;;EAKT,QAAQ;;;;;;;;;KAUE,iBAAiB,SAAS,eAAe,aAAa;;;;UAKjD,iBAAiB;;EAEhC;;EAGA,SAAS;;EAGT,QAAQ,mBAAmB;;;;;UAMZ,uBACf,qBACQ,iBAAiB;;EAEzB;;EAGA,QAAQ,aAAa;;;;;UAMN,2BACf,qBACQ,iBAAiB;;EAEzB;;EAGA,QAAQ,qBAAqB;;;;;UAMd,iBAAiB,qBAAqB,iBAAiB;;EAEtE;;EAGA,QAAQ,GAAG,QAAQ;;;;;UAMJ,oBACf,qBACQ,iBAAiB;;EAEzB;;EAGA,QAAQ,sBAAsB;;;;;UAMf,oBACf,qBACQ,iBAAiB;;EAEzB;;EAGA,QAAQ,cAAc;;;;;UAMP,uBACf,qBACQ,iBAAiB;;EAEzB;;EAGA,QAAQ;;;;;KAME,aAAa,eACrB,uBAAuB,SACvB,2BAA2B,SAC3B,iBAAiB,SACjB,oBAAoB,SACpB,oBAAoB,SACpB,uBAAuB;;;;UAKV,wBACf,qBACQ,iBAAiB;;;;EAIzB,QAAQ,aAAa;;;YAIX;IACR;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;MACc;MAAe;MAAsB;;IACnD;IACA;IACA;IACA;IACA;KACC"}
|
package/dist/valibot.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
2
|
const require_rolldown_runtime = require('./rolldown-runtime-fl3r8ClO.cjs');
|
|
3
|
-
const require_constants = require('./constants-
|
|
3
|
+
const require_constants = require('./constants-DUJjv-fA.cjs');
|
|
4
4
|
let valibot = require("valibot");
|
|
5
5
|
valibot = require_rolldown_runtime.__toESM(valibot, 1);
|
|
6
6
|
|
package/dist/valibot.d.cts
CHANGED
package/dist/valibot.d.mts
CHANGED
package/dist/valibot.mjs
CHANGED
package/dist/zod.cjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
2
|
const require_rolldown_runtime = require('./rolldown-runtime-fl3r8ClO.cjs');
|
|
3
|
-
const require_constants = require('./constants-
|
|
4
|
-
const require_helpers = require('./helpers-
|
|
3
|
+
const require_constants = require('./constants-DUJjv-fA.cjs');
|
|
4
|
+
const require_helpers = require('./helpers-D1sydyZl.cjs');
|
|
5
5
|
let _stryke_helpers_deep_clone = require("@stryke/helpers/deep-clone");
|
|
6
6
|
let zod_mini = require("zod/mini");
|
|
7
7
|
zod_mini = require_rolldown_runtime.__toESM(zod_mini, 1);
|
package/dist/zod.d.cts
CHANGED
package/dist/zod.d.mts
CHANGED
package/dist/zod.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { n as getJsonSchema, p as traverseSchema, v as isJsonSchemaAny } from "./helpers-
|
|
1
|
+
import { a as JSON_SCHEMA_TYPES } from "./constants-D0asFRyy.mjs";
|
|
2
|
+
import { n as getJsonSchema, p as traverseSchema, v as isJsonSchemaAny } from "./helpers-CAmQbxG5.mjs";
|
|
3
3
|
import { deepClone } from "@stryke/helpers/deep-clone";
|
|
4
4
|
import * as z from "zod/mini";
|
|
5
5
|
import * as z4 from "zod/v4";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@power-plant/schema",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.45",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "A Power Plant utility package to help managing schemas.",
|
|
6
6
|
"keywords": [
|
|
@@ -160,9 +160,9 @@
|
|
|
160
160
|
},
|
|
161
161
|
"devDependencies": {
|
|
162
162
|
"@deepkit/type-compiler": "1.0.19",
|
|
163
|
-
"@powerlines/plugin-tsdown": "^0.1.
|
|
163
|
+
"@powerlines/plugin-tsdown": "^0.1.565",
|
|
164
164
|
"@types/node": "^25.9.5",
|
|
165
|
-
"powerlines": "^0.47.
|
|
165
|
+
"powerlines": "^0.47.164",
|
|
166
166
|
"valibot": "^1.4.2",
|
|
167
167
|
"zod": "^4.4.3"
|
|
168
168
|
},
|
|
@@ -187,5 +187,5 @@
|
|
|
187
187
|
"picomatch": "2.3.2",
|
|
188
188
|
"to-regex-range": "5.0.1"
|
|
189
189
|
},
|
|
190
|
-
"gitHead": "
|
|
190
|
+
"gitHead": "0890399c7d1a665fac1b75d716ce184964439990"
|
|
191
191
|
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"constants-BlppSDwG.mjs","names":[],"sources":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"deepkit-DzjNJe42.mjs","names":[],"sources":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"helpers-_8ADIMSN.mjs","names":[],"sources":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types-BxZqs7PE.d.mts","names":[],"sources":["../src/constants.ts","../src/types.ts"],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types-cHmdUpGz.d.cts","names":[],"sources":["../src/constants.ts","../src/types.ts"],"mappings":";;;;;;;;cAoBa;;;;;;;;;cAUA;cAQA;cAMA;;;;;;;;;cAkCA;;;;;cAMA,wBAAsB;;;;;cAYtB,wBAAsB;;;;;cAiBtB,8BAA4B;;;;;;;;KC5E7B,kCACF;;;;;;KAOE,yBAAyB;;;;KAKzB;;;;KAaA;;;;KAKA,yBACV,0BAA0B;;;;KAKhB;;;;;;UA6BK;;;;;;;EAOf;;;;;;;EAQA;;;;;;;EAWA,cAAc;;;;;;;EAQd;;;;;;EAOA;;;;;;;;;EAUA,QAAQ,eAAe;;;;;;;;EASvB;;;;;;;E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