@mastra/schema-compat 1.1.3 → 1.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +68 -0
- package/LICENSE.md +15 -0
- package/dist/_types/@internal_ai-sdk-v4/dist/index.d.ts +7562 -0
- package/dist/_types/@internal_ai-v6/dist/index.d.ts +449 -343
- package/dist/chunk-23HDOZLF.js +105 -0
- package/dist/chunk-23HDOZLF.js.map +1 -0
- package/dist/chunk-3MLZICLP.cjs +94 -0
- package/dist/chunk-3MLZICLP.cjs.map +1 -0
- package/dist/chunk-3QMIGINL.cjs +123 -0
- package/dist/chunk-3QMIGINL.cjs.map +1 -0
- package/dist/{chunk-4EY4LZB2.js → chunk-7ZCSAPV3.js} +76 -3
- package/dist/chunk-7ZCSAPV3.js.map +1 -0
- package/dist/chunk-FKB2Z36H.cjs +68 -0
- package/dist/chunk-FKB2Z36H.cjs.map +1 -0
- package/dist/chunk-FS3P4V5M.cjs +108 -0
- package/dist/chunk-FS3P4V5M.cjs.map +1 -0
- package/dist/chunk-I2YUBGXM.js +112 -0
- package/dist/chunk-I2YUBGXM.js.map +1 -0
- package/dist/chunk-IKQO7EW7.js +62 -0
- package/dist/chunk-IKQO7EW7.js.map +1 -0
- package/dist/chunk-K7I3YXWP.js +92 -0
- package/dist/chunk-K7I3YXWP.js.map +1 -0
- package/dist/{chunk-DGOXVQNP.js → chunk-QDRBTCDV.js} +158 -479
- package/dist/chunk-QDRBTCDV.js.map +1 -0
- package/dist/{chunk-DAVEUCUM.cjs → chunk-ROFMEFEF.cjs} +160 -488
- package/dist/chunk-ROFMEFEF.cjs.map +1 -0
- package/dist/{chunk-BOGGUXB5.cjs → chunk-UFJG5KPA.cjs} +77 -2
- package/dist/chunk-UFJG5KPA.cjs.map +1 -0
- package/dist/index.cjs +626 -337
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +6 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +580 -325
- package/dist/index.js.map +1 -1
- package/dist/json-schema/utils.d.ts +8 -0
- package/dist/json-schema/utils.d.ts.map +1 -1
- package/dist/null-to-undefined.d.ts +24 -0
- package/dist/null-to-undefined.d.ts.map +1 -0
- package/dist/provider-compats/google.d.ts +3 -0
- package/dist/provider-compats/google.d.ts.map +1 -1
- package/dist/provider-compats/openai-reasoning.d.ts +5 -5
- package/dist/provider-compats/openai-reasoning.d.ts.map +1 -1
- package/dist/provider-compats/openai.d.ts +8 -0
- package/dist/provider-compats/openai.d.ts.map +1 -1
- package/dist/schema-compatibility-v3.d.ts +2 -2
- package/dist/schema-compatibility-v3.d.ts.map +1 -1
- package/dist/schema-compatibility.d.ts +2 -1
- package/dist/schema-compatibility.d.ts.map +1 -1
- package/dist/schema.cjs +16 -4
- package/dist/schema.d.ts +1 -1
- package/dist/schema.d.ts.map +1 -1
- package/dist/schema.js +1 -1
- package/dist/schema.types.d.ts +4 -2
- package/dist/schema.types.d.ts.map +1 -1
- package/dist/standard-schema/adapters/ai-sdk.cjs +16 -0
- package/dist/standard-schema/adapters/ai-sdk.cjs.map +1 -0
- package/dist/standard-schema/adapters/ai-sdk.js +3 -0
- package/dist/standard-schema/adapters/ai-sdk.js.map +1 -0
- package/dist/standard-schema/adapters/json-schema.cjs +16 -0
- package/dist/standard-schema/adapters/json-schema.cjs.map +1 -0
- package/dist/standard-schema/adapters/json-schema.d.ts.map +1 -1
- package/dist/standard-schema/adapters/json-schema.js +3 -0
- package/dist/standard-schema/adapters/json-schema.js.map +1 -0
- package/dist/standard-schema/adapters/zod-v3.cjs +12 -0
- package/dist/standard-schema/adapters/zod-v3.cjs.map +1 -0
- package/dist/standard-schema/adapters/zod-v3.js +3 -0
- package/dist/standard-schema/adapters/zod-v3.js.map +1 -0
- package/dist/standard-schema/standard-schema.d.ts.map +1 -1
- package/dist/standard-schema-compat.d.ts +74 -0
- package/dist/standard-schema-compat.d.ts.map +1 -0
- package/dist/utils.d.ts +3 -2
- package/dist/utils.d.ts.map +1 -1
- package/dist/zod-to-json.cjs +10 -2
- package/dist/zod-to-json.d.ts +13 -0
- package/dist/zod-to-json.d.ts.map +1 -1
- package/dist/zod-to-json.js +1 -1
- package/package.json +41 -10
- package/dist/chunk-4EY4LZB2.js.map +0 -1
- package/dist/chunk-BOGGUXB5.cjs.map +0 -1
- package/dist/chunk-DAVEUCUM.cjs.map +0 -1
- package/dist/chunk-DGOXVQNP.js.map +0 -1
|
@@ -1,17 +1,11 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
+
var chunk3MLZICLP_cjs = require('./chunk-3MLZICLP.cjs');
|
|
3
4
|
var chunkDZUJEN5N_cjs = require('./chunk-DZUJEN5N.cjs');
|
|
4
|
-
var z3 = require('zod/v3');
|
|
5
|
-
var zodToJsonSchemaOriginal = require('zod-to-json-schema');
|
|
6
5
|
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
var z3__default = /*#__PURE__*/_interopDefault(z3);
|
|
10
|
-
var zodToJsonSchemaOriginal__default = /*#__PURE__*/_interopDefault(zodToJsonSchemaOriginal);
|
|
11
|
-
|
|
12
|
-
// ../../node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/compile/codegen/code.js
|
|
6
|
+
// ../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/codegen/code.js
|
|
13
7
|
var require_code = chunkDZUJEN5N_cjs.__commonJS({
|
|
14
|
-
"../../node_modules/.pnpm/ajv@8.
|
|
8
|
+
"../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/codegen/code.js"(exports$1) {
|
|
15
9
|
Object.defineProperty(exports$1, "__esModule", { value: true });
|
|
16
10
|
exports$1.regexpCode = exports$1.getEsmExportName = exports$1.getProperty = exports$1.safeStringify = exports$1.stringify = exports$1.strConcat = exports$1.addCodeArg = exports$1.str = exports$1._ = exports$1.nil = exports$1._Code = exports$1.Name = exports$1.IDENTIFIER = exports$1._CodeOrName = void 0;
|
|
17
11
|
var _CodeOrName = class {
|
|
@@ -162,9 +156,9 @@ var require_code = chunkDZUJEN5N_cjs.__commonJS({
|
|
|
162
156
|
}
|
|
163
157
|
});
|
|
164
158
|
|
|
165
|
-
// ../../node_modules/.pnpm/ajv@8.
|
|
159
|
+
// ../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/codegen/scope.js
|
|
166
160
|
var require_scope = chunkDZUJEN5N_cjs.__commonJS({
|
|
167
|
-
"../../node_modules/.pnpm/ajv@8.
|
|
161
|
+
"../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/codegen/scope.js"(exports$1) {
|
|
168
162
|
Object.defineProperty(exports$1, "__esModule", { value: true });
|
|
169
163
|
exports$1.ValueScope = exports$1.ValueScopeName = exports$1.Scope = exports$1.varKinds = exports$1.UsedValueState = void 0;
|
|
170
164
|
var code_1 = require_code();
|
|
@@ -306,9 +300,9 @@ var require_scope = chunkDZUJEN5N_cjs.__commonJS({
|
|
|
306
300
|
}
|
|
307
301
|
});
|
|
308
302
|
|
|
309
|
-
// ../../node_modules/.pnpm/ajv@8.
|
|
303
|
+
// ../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/codegen/index.js
|
|
310
304
|
var require_codegen = chunkDZUJEN5N_cjs.__commonJS({
|
|
311
|
-
"../../node_modules/.pnpm/ajv@8.
|
|
305
|
+
"../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/codegen/index.js"(exports$1) {
|
|
312
306
|
Object.defineProperty(exports$1, "__esModule", { value: true });
|
|
313
307
|
exports$1.or = exports$1.and = exports$1.not = exports$1.CodeGen = exports$1.operators = exports$1.varKinds = exports$1.ValueScopeName = exports$1.ValueScope = exports$1.Scope = exports$1.Name = exports$1.regexpCode = exports$1.stringify = exports$1.getProperty = exports$1.nil = exports$1.strConcat = exports$1.str = exports$1._ = void 0;
|
|
314
308
|
var code_1 = require_code();
|
|
@@ -1025,9 +1019,9 @@ var require_codegen = chunkDZUJEN5N_cjs.__commonJS({
|
|
|
1025
1019
|
}
|
|
1026
1020
|
});
|
|
1027
1021
|
|
|
1028
|
-
// ../../node_modules/.pnpm/ajv@8.
|
|
1022
|
+
// ../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/util.js
|
|
1029
1023
|
var require_util = chunkDZUJEN5N_cjs.__commonJS({
|
|
1030
|
-
"../../node_modules/.pnpm/ajv@8.
|
|
1024
|
+
"../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/util.js"(exports$1) {
|
|
1031
1025
|
Object.defineProperty(exports$1, "__esModule", { value: true });
|
|
1032
1026
|
exports$1.checkStrictMode = exports$1.getErrorPath = exports$1.Type = exports$1.useFunc = exports$1.setEvaluated = exports$1.evaluatedPropsToName = exports$1.mergeEvaluated = exports$1.eachItem = exports$1.unescapeJsonPointer = exports$1.escapeJsonPointer = exports$1.escapeFragment = exports$1.unescapeFragment = exports$1.schemaRefOrVal = exports$1.schemaHasRulesButRef = exports$1.schemaHasRules = exports$1.checkUnknownRules = exports$1.alwaysValidSchema = exports$1.toHash = void 0;
|
|
1033
1027
|
var codegen_1 = require_codegen();
|
|
@@ -1191,9 +1185,9 @@ var require_util = chunkDZUJEN5N_cjs.__commonJS({
|
|
|
1191
1185
|
}
|
|
1192
1186
|
});
|
|
1193
1187
|
|
|
1194
|
-
// ../../node_modules/.pnpm/ajv@8.
|
|
1188
|
+
// ../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/names.js
|
|
1195
1189
|
var require_names = chunkDZUJEN5N_cjs.__commonJS({
|
|
1196
|
-
"../../node_modules/.pnpm/ajv@8.
|
|
1190
|
+
"../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/names.js"(exports$1) {
|
|
1197
1191
|
Object.defineProperty(exports$1, "__esModule", { value: true });
|
|
1198
1192
|
var codegen_1 = require_codegen();
|
|
1199
1193
|
var names = {
|
|
@@ -1229,9 +1223,9 @@ var require_names = chunkDZUJEN5N_cjs.__commonJS({
|
|
|
1229
1223
|
}
|
|
1230
1224
|
});
|
|
1231
1225
|
|
|
1232
|
-
// ../../node_modules/.pnpm/ajv@8.
|
|
1226
|
+
// ../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/errors.js
|
|
1233
1227
|
var require_errors = chunkDZUJEN5N_cjs.__commonJS({
|
|
1234
|
-
"../../node_modules/.pnpm/ajv@8.
|
|
1228
|
+
"../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/errors.js"(exports$1) {
|
|
1235
1229
|
Object.defineProperty(exports$1, "__esModule", { value: true });
|
|
1236
1230
|
exports$1.extendErrors = exports$1.resetErrorsCount = exports$1.reportExtraError = exports$1.reportError = exports$1.keyword$DataError = exports$1.keywordError = void 0;
|
|
1237
1231
|
var codegen_1 = require_codegen();
|
|
@@ -1350,9 +1344,9 @@ var require_errors = chunkDZUJEN5N_cjs.__commonJS({
|
|
|
1350
1344
|
}
|
|
1351
1345
|
});
|
|
1352
1346
|
|
|
1353
|
-
// ../../node_modules/.pnpm/ajv@8.
|
|
1347
|
+
// ../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/validate/boolSchema.js
|
|
1354
1348
|
var require_boolSchema = chunkDZUJEN5N_cjs.__commonJS({
|
|
1355
|
-
"../../node_modules/.pnpm/ajv@8.
|
|
1349
|
+
"../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/validate/boolSchema.js"(exports$1) {
|
|
1356
1350
|
Object.defineProperty(exports$1, "__esModule", { value: true });
|
|
1357
1351
|
exports$1.boolOrEmptySchema = exports$1.topBoolOrEmptySchema = void 0;
|
|
1358
1352
|
var errors_1 = require_errors();
|
|
@@ -1400,9 +1394,9 @@ var require_boolSchema = chunkDZUJEN5N_cjs.__commonJS({
|
|
|
1400
1394
|
}
|
|
1401
1395
|
});
|
|
1402
1396
|
|
|
1403
|
-
// ../../node_modules/.pnpm/ajv@8.
|
|
1397
|
+
// ../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/rules.js
|
|
1404
1398
|
var require_rules = chunkDZUJEN5N_cjs.__commonJS({
|
|
1405
|
-
"../../node_modules/.pnpm/ajv@8.
|
|
1399
|
+
"../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/rules.js"(exports$1) {
|
|
1406
1400
|
Object.defineProperty(exports$1, "__esModule", { value: true });
|
|
1407
1401
|
exports$1.getRules = exports$1.isJSONType = void 0;
|
|
1408
1402
|
var _jsonTypes = ["string", "number", "integer", "boolean", "null", "object", "array"];
|
|
@@ -1430,9 +1424,9 @@ var require_rules = chunkDZUJEN5N_cjs.__commonJS({
|
|
|
1430
1424
|
}
|
|
1431
1425
|
});
|
|
1432
1426
|
|
|
1433
|
-
// ../../node_modules/.pnpm/ajv@8.
|
|
1427
|
+
// ../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/validate/applicability.js
|
|
1434
1428
|
var require_applicability = chunkDZUJEN5N_cjs.__commonJS({
|
|
1435
|
-
"../../node_modules/.pnpm/ajv@8.
|
|
1429
|
+
"../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/validate/applicability.js"(exports$1) {
|
|
1436
1430
|
Object.defineProperty(exports$1, "__esModule", { value: true });
|
|
1437
1431
|
exports$1.shouldUseRule = exports$1.shouldUseGroup = exports$1.schemaHasRulesForType = void 0;
|
|
1438
1432
|
function schemaHasRulesForType({ schema, self }, type) {
|
|
@@ -1452,9 +1446,9 @@ var require_applicability = chunkDZUJEN5N_cjs.__commonJS({
|
|
|
1452
1446
|
}
|
|
1453
1447
|
});
|
|
1454
1448
|
|
|
1455
|
-
// ../../node_modules/.pnpm/ajv@8.
|
|
1449
|
+
// ../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/validate/dataType.js
|
|
1456
1450
|
var require_dataType = chunkDZUJEN5N_cjs.__commonJS({
|
|
1457
|
-
"../../node_modules/.pnpm/ajv@8.
|
|
1451
|
+
"../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/validate/dataType.js"(exports$1) {
|
|
1458
1452
|
Object.defineProperty(exports$1, "__esModule", { value: true });
|
|
1459
1453
|
exports$1.reportTypeError = exports$1.checkDataTypes = exports$1.checkDataType = exports$1.coerceAndCheckDataType = exports$1.getJSONTypes = exports$1.getSchemaTypes = exports$1.DataType = void 0;
|
|
1460
1454
|
var rules_1 = require_rules();
|
|
@@ -1635,9 +1629,9 @@ var require_dataType = chunkDZUJEN5N_cjs.__commonJS({
|
|
|
1635
1629
|
}
|
|
1636
1630
|
});
|
|
1637
1631
|
|
|
1638
|
-
// ../../node_modules/.pnpm/ajv@8.
|
|
1632
|
+
// ../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/validate/defaults.js
|
|
1639
1633
|
var require_defaults = chunkDZUJEN5N_cjs.__commonJS({
|
|
1640
|
-
"../../node_modules/.pnpm/ajv@8.
|
|
1634
|
+
"../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/validate/defaults.js"(exports$1) {
|
|
1641
1635
|
Object.defineProperty(exports$1, "__esModule", { value: true });
|
|
1642
1636
|
exports$1.assignDefaults = void 0;
|
|
1643
1637
|
var codegen_1 = require_codegen();
|
|
@@ -1671,9 +1665,9 @@ var require_defaults = chunkDZUJEN5N_cjs.__commonJS({
|
|
|
1671
1665
|
}
|
|
1672
1666
|
});
|
|
1673
1667
|
|
|
1674
|
-
// ../../node_modules/.pnpm/ajv@8.
|
|
1668
|
+
// ../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/code.js
|
|
1675
1669
|
var require_code2 = chunkDZUJEN5N_cjs.__commonJS({
|
|
1676
|
-
"../../node_modules/.pnpm/ajv@8.
|
|
1670
|
+
"../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/code.js"(exports$1) {
|
|
1677
1671
|
Object.defineProperty(exports$1, "__esModule", { value: true });
|
|
1678
1672
|
exports$1.validateUnion = exports$1.validateArray = exports$1.usePattern = exports$1.callValidateCode = exports$1.schemaProperties = exports$1.allSchemaProperties = exports$1.noPropertyInData = exports$1.propertyInData = exports$1.isOwnProperty = exports$1.hasPropFunc = exports$1.reportMissingProp = exports$1.checkMissingProp = exports$1.checkReportMissingProp = void 0;
|
|
1679
1673
|
var codegen_1 = require_codegen();
|
|
@@ -1803,9 +1797,9 @@ var require_code2 = chunkDZUJEN5N_cjs.__commonJS({
|
|
|
1803
1797
|
}
|
|
1804
1798
|
});
|
|
1805
1799
|
|
|
1806
|
-
// ../../node_modules/.pnpm/ajv@8.
|
|
1800
|
+
// ../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/validate/keyword.js
|
|
1807
1801
|
var require_keyword = chunkDZUJEN5N_cjs.__commonJS({
|
|
1808
|
-
"../../node_modules/.pnpm/ajv@8.
|
|
1802
|
+
"../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/validate/keyword.js"(exports$1) {
|
|
1809
1803
|
Object.defineProperty(exports$1, "__esModule", { value: true });
|
|
1810
1804
|
exports$1.validateKeywordUsage = exports$1.validSchemaType = exports$1.funcKeywordCode = exports$1.macroKeywordCode = void 0;
|
|
1811
1805
|
var codegen_1 = require_codegen();
|
|
@@ -1920,9 +1914,9 @@ var require_keyword = chunkDZUJEN5N_cjs.__commonJS({
|
|
|
1920
1914
|
}
|
|
1921
1915
|
});
|
|
1922
1916
|
|
|
1923
|
-
// ../../node_modules/.pnpm/ajv@8.
|
|
1917
|
+
// ../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/validate/subschema.js
|
|
1924
1918
|
var require_subschema = chunkDZUJEN5N_cjs.__commonJS({
|
|
1925
|
-
"../../node_modules/.pnpm/ajv@8.
|
|
1919
|
+
"../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/validate/subschema.js"(exports$1) {
|
|
1926
1920
|
Object.defineProperty(exports$1, "__esModule", { value: true });
|
|
1927
1921
|
exports$1.extendSubschemaMode = exports$1.extendSubschemaData = exports$1.getSubschema = void 0;
|
|
1928
1922
|
var codegen_1 = require_codegen();
|
|
@@ -2036,101 +2030,14 @@ var require_fast_deep_equal = chunkDZUJEN5N_cjs.__commonJS({
|
|
|
2036
2030
|
}
|
|
2037
2031
|
});
|
|
2038
2032
|
|
|
2039
|
-
// ../../node_modules/.pnpm/
|
|
2040
|
-
var require_json_schema_traverse = chunkDZUJEN5N_cjs.__commonJS({
|
|
2041
|
-
"../../node_modules/.pnpm/json-schema-traverse@1.0.0/node_modules/json-schema-traverse/index.js"(exports$1, module) {
|
|
2042
|
-
var traverse2 = module.exports = function(schema, opts, cb) {
|
|
2043
|
-
if (typeof opts == "function") {
|
|
2044
|
-
cb = opts;
|
|
2045
|
-
opts = {};
|
|
2046
|
-
}
|
|
2047
|
-
cb = opts.cb || cb;
|
|
2048
|
-
var pre = typeof cb == "function" ? cb : cb.pre || function() {
|
|
2049
|
-
};
|
|
2050
|
-
var post = cb.post || function() {
|
|
2051
|
-
};
|
|
2052
|
-
_traverse(opts, pre, post, schema, "", schema);
|
|
2053
|
-
};
|
|
2054
|
-
traverse2.keywords = {
|
|
2055
|
-
additionalItems: true,
|
|
2056
|
-
items: true,
|
|
2057
|
-
contains: true,
|
|
2058
|
-
additionalProperties: true,
|
|
2059
|
-
propertyNames: true,
|
|
2060
|
-
not: true,
|
|
2061
|
-
if: true,
|
|
2062
|
-
then: true,
|
|
2063
|
-
else: true
|
|
2064
|
-
};
|
|
2065
|
-
traverse2.arrayKeywords = {
|
|
2066
|
-
items: true,
|
|
2067
|
-
allOf: true,
|
|
2068
|
-
anyOf: true,
|
|
2069
|
-
oneOf: true
|
|
2070
|
-
};
|
|
2071
|
-
traverse2.propsKeywords = {
|
|
2072
|
-
$defs: true,
|
|
2073
|
-
definitions: true,
|
|
2074
|
-
properties: true,
|
|
2075
|
-
patternProperties: true,
|
|
2076
|
-
dependencies: true
|
|
2077
|
-
};
|
|
2078
|
-
traverse2.skipKeywords = {
|
|
2079
|
-
default: true,
|
|
2080
|
-
enum: true,
|
|
2081
|
-
const: true,
|
|
2082
|
-
required: true,
|
|
2083
|
-
maximum: true,
|
|
2084
|
-
minimum: true,
|
|
2085
|
-
exclusiveMaximum: true,
|
|
2086
|
-
exclusiveMinimum: true,
|
|
2087
|
-
multipleOf: true,
|
|
2088
|
-
maxLength: true,
|
|
2089
|
-
minLength: true,
|
|
2090
|
-
pattern: true,
|
|
2091
|
-
format: true,
|
|
2092
|
-
maxItems: true,
|
|
2093
|
-
minItems: true,
|
|
2094
|
-
uniqueItems: true,
|
|
2095
|
-
maxProperties: true,
|
|
2096
|
-
minProperties: true
|
|
2097
|
-
};
|
|
2098
|
-
function _traverse(opts, pre, post, schema, jsonPtr, rootSchema, parentJsonPtr, parentKeyword, parentSchema, keyIndex) {
|
|
2099
|
-
if (schema && typeof schema == "object" && !Array.isArray(schema)) {
|
|
2100
|
-
pre(schema, jsonPtr, rootSchema, parentJsonPtr, parentKeyword, parentSchema, keyIndex);
|
|
2101
|
-
for (var key in schema) {
|
|
2102
|
-
var sch = schema[key];
|
|
2103
|
-
if (Array.isArray(sch)) {
|
|
2104
|
-
if (key in traverse2.arrayKeywords) {
|
|
2105
|
-
for (var i = 0; i < sch.length; i++)
|
|
2106
|
-
_traverse(opts, pre, post, sch[i], jsonPtr + "/" + key + "/" + i, rootSchema, jsonPtr, key, schema, i);
|
|
2107
|
-
}
|
|
2108
|
-
} else if (key in traverse2.propsKeywords) {
|
|
2109
|
-
if (sch && typeof sch == "object") {
|
|
2110
|
-
for (var prop in sch)
|
|
2111
|
-
_traverse(opts, pre, post, sch[prop], jsonPtr + "/" + key + "/" + escapeJsonPtr(prop), rootSchema, jsonPtr, key, schema, prop);
|
|
2112
|
-
}
|
|
2113
|
-
} else if (key in traverse2.keywords || opts.allKeys && !(key in traverse2.skipKeywords)) {
|
|
2114
|
-
_traverse(opts, pre, post, sch, jsonPtr + "/" + key, rootSchema, jsonPtr, key, schema);
|
|
2115
|
-
}
|
|
2116
|
-
}
|
|
2117
|
-
post(schema, jsonPtr, rootSchema, parentJsonPtr, parentKeyword, parentSchema, keyIndex);
|
|
2118
|
-
}
|
|
2119
|
-
}
|
|
2120
|
-
function escapeJsonPtr(str) {
|
|
2121
|
-
return str.replace(/~/g, "~0").replace(/\//g, "~1");
|
|
2122
|
-
}
|
|
2123
|
-
}
|
|
2124
|
-
});
|
|
2125
|
-
|
|
2126
|
-
// ../../node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/compile/resolve.js
|
|
2033
|
+
// ../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/resolve.js
|
|
2127
2034
|
var require_resolve = chunkDZUJEN5N_cjs.__commonJS({
|
|
2128
|
-
"../../node_modules/.pnpm/ajv@8.
|
|
2035
|
+
"../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/resolve.js"(exports$1) {
|
|
2129
2036
|
Object.defineProperty(exports$1, "__esModule", { value: true });
|
|
2130
2037
|
exports$1.getSchemaRefs = exports$1.resolveUrl = exports$1.normalizeId = exports$1._getFullPath = exports$1.getFullPath = exports$1.inlineRef = void 0;
|
|
2131
2038
|
var util_1 = require_util();
|
|
2132
2039
|
var equal = require_fast_deep_equal();
|
|
2133
|
-
var traverse2 = require_json_schema_traverse();
|
|
2040
|
+
var traverse2 = chunk3MLZICLP_cjs.require_json_schema_traverse();
|
|
2134
2041
|
var SIMPLE_INLINED = /* @__PURE__ */ new Set([
|
|
2135
2042
|
"type",
|
|
2136
2043
|
"format",
|
|
@@ -2278,9 +2185,9 @@ var require_resolve = chunkDZUJEN5N_cjs.__commonJS({
|
|
|
2278
2185
|
}
|
|
2279
2186
|
});
|
|
2280
2187
|
|
|
2281
|
-
// ../../node_modules/.pnpm/ajv@8.
|
|
2188
|
+
// ../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/validate/index.js
|
|
2282
2189
|
var require_validate = chunkDZUJEN5N_cjs.__commonJS({
|
|
2283
|
-
"../../node_modules/.pnpm/ajv@8.
|
|
2190
|
+
"../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/validate/index.js"(exports$1) {
|
|
2284
2191
|
Object.defineProperty(exports$1, "__esModule", { value: true });
|
|
2285
2192
|
exports$1.getData = exports$1.KeywordCxt = exports$1.validateFunctionCode = void 0;
|
|
2286
2193
|
var boolSchema_1 = require_boolSchema();
|
|
@@ -2784,9 +2691,9 @@ var require_validate = chunkDZUJEN5N_cjs.__commonJS({
|
|
|
2784
2691
|
}
|
|
2785
2692
|
});
|
|
2786
2693
|
|
|
2787
|
-
// ../../node_modules/.pnpm/ajv@8.
|
|
2694
|
+
// ../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/runtime/validation_error.js
|
|
2788
2695
|
var require_validation_error = chunkDZUJEN5N_cjs.__commonJS({
|
|
2789
|
-
"../../node_modules/.pnpm/ajv@8.
|
|
2696
|
+
"../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/runtime/validation_error.js"(exports$1) {
|
|
2790
2697
|
Object.defineProperty(exports$1, "__esModule", { value: true });
|
|
2791
2698
|
var ValidationError = class extends Error {
|
|
2792
2699
|
constructor(errors) {
|
|
@@ -2799,9 +2706,9 @@ var require_validation_error = chunkDZUJEN5N_cjs.__commonJS({
|
|
|
2799
2706
|
}
|
|
2800
2707
|
});
|
|
2801
2708
|
|
|
2802
|
-
// ../../node_modules/.pnpm/ajv@8.
|
|
2709
|
+
// ../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/ref_error.js
|
|
2803
2710
|
var require_ref_error = chunkDZUJEN5N_cjs.__commonJS({
|
|
2804
|
-
"../../node_modules/.pnpm/ajv@8.
|
|
2711
|
+
"../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/ref_error.js"(exports$1) {
|
|
2805
2712
|
Object.defineProperty(exports$1, "__esModule", { value: true });
|
|
2806
2713
|
var resolve_1 = require_resolve();
|
|
2807
2714
|
var MissingRefError = class extends Error {
|
|
@@ -2815,9 +2722,9 @@ var require_ref_error = chunkDZUJEN5N_cjs.__commonJS({
|
|
|
2815
2722
|
}
|
|
2816
2723
|
});
|
|
2817
2724
|
|
|
2818
|
-
// ../../node_modules/.pnpm/ajv@8.
|
|
2725
|
+
// ../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/index.js
|
|
2819
2726
|
var require_compile = chunkDZUJEN5N_cjs.__commonJS({
|
|
2820
|
-
"../../node_modules/.pnpm/ajv@8.
|
|
2727
|
+
"../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/index.js"(exports$1) {
|
|
2821
2728
|
Object.defineProperty(exports$1, "__esModule", { value: true });
|
|
2822
2729
|
exports$1.resolveSchema = exports$1.getCompilingSchema = exports$1.resolveRef = exports$1.compileSchema = exports$1.SchemaEnv = void 0;
|
|
2823
2730
|
var codegen_1 = require_codegen();
|
|
@@ -3038,9 +2945,9 @@ var require_compile = chunkDZUJEN5N_cjs.__commonJS({
|
|
|
3038
2945
|
}
|
|
3039
2946
|
});
|
|
3040
2947
|
|
|
3041
|
-
// ../../node_modules/.pnpm/ajv@8.
|
|
2948
|
+
// ../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/refs/data.json
|
|
3042
2949
|
var require_data = chunkDZUJEN5N_cjs.__commonJS({
|
|
3043
|
-
"../../node_modules/.pnpm/ajv@8.
|
|
2950
|
+
"../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/refs/data.json"(exports$1, module) {
|
|
3044
2951
|
module.exports = {
|
|
3045
2952
|
$id: "https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#",
|
|
3046
2953
|
description: "Meta-schema for $data reference (JSON AnySchema extension proposal)",
|
|
@@ -3776,9 +3683,9 @@ var require_fast_uri = chunkDZUJEN5N_cjs.__commonJS({
|
|
|
3776
3683
|
}
|
|
3777
3684
|
});
|
|
3778
3685
|
|
|
3779
|
-
// ../../node_modules/.pnpm/ajv@8.
|
|
3686
|
+
// ../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/runtime/uri.js
|
|
3780
3687
|
var require_uri = chunkDZUJEN5N_cjs.__commonJS({
|
|
3781
|
-
"../../node_modules/.pnpm/ajv@8.
|
|
3688
|
+
"../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/runtime/uri.js"(exports$1) {
|
|
3782
3689
|
Object.defineProperty(exports$1, "__esModule", { value: true });
|
|
3783
3690
|
var uri = require_fast_uri();
|
|
3784
3691
|
uri.code = 'require("ajv/dist/runtime/uri").default';
|
|
@@ -3786,9 +3693,9 @@ var require_uri = chunkDZUJEN5N_cjs.__commonJS({
|
|
|
3786
3693
|
}
|
|
3787
3694
|
});
|
|
3788
3695
|
|
|
3789
|
-
// ../../node_modules/.pnpm/ajv@8.
|
|
3696
|
+
// ../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/core.js
|
|
3790
3697
|
var require_core = chunkDZUJEN5N_cjs.__commonJS({
|
|
3791
|
-
"../../node_modules/.pnpm/ajv@8.
|
|
3698
|
+
"../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/core.js"(exports$1) {
|
|
3792
3699
|
Object.defineProperty(exports$1, "__esModule", { value: true });
|
|
3793
3700
|
exports$1.CodeGen = exports$1.Name = exports$1.nil = exports$1.stringify = exports$1.str = exports$1._ = exports$1.KeywordCxt = void 0;
|
|
3794
3701
|
var validate_1 = require_validate();
|
|
@@ -4396,9 +4303,9 @@ var require_core = chunkDZUJEN5N_cjs.__commonJS({
|
|
|
4396
4303
|
}
|
|
4397
4304
|
});
|
|
4398
4305
|
|
|
4399
|
-
// ../../node_modules/.pnpm/ajv@8.
|
|
4306
|
+
// ../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/core/id.js
|
|
4400
4307
|
var require_id = chunkDZUJEN5N_cjs.__commonJS({
|
|
4401
|
-
"../../node_modules/.pnpm/ajv@8.
|
|
4308
|
+
"../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/core/id.js"(exports$1) {
|
|
4402
4309
|
Object.defineProperty(exports$1, "__esModule", { value: true });
|
|
4403
4310
|
var def = {
|
|
4404
4311
|
keyword: "id",
|
|
@@ -4410,9 +4317,9 @@ var require_id = chunkDZUJEN5N_cjs.__commonJS({
|
|
|
4410
4317
|
}
|
|
4411
4318
|
});
|
|
4412
4319
|
|
|
4413
|
-
// ../../node_modules/.pnpm/ajv@8.
|
|
4320
|
+
// ../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/core/ref.js
|
|
4414
4321
|
var require_ref = chunkDZUJEN5N_cjs.__commonJS({
|
|
4415
|
-
"../../node_modules/.pnpm/ajv@8.
|
|
4322
|
+
"../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/core/ref.js"(exports$1) {
|
|
4416
4323
|
Object.defineProperty(exports$1, "__esModule", { value: true });
|
|
4417
4324
|
exports$1.callRef = exports$1.getValidate = void 0;
|
|
4418
4325
|
var ref_error_1 = require_ref_error();
|
|
@@ -4531,9 +4438,9 @@ var require_ref = chunkDZUJEN5N_cjs.__commonJS({
|
|
|
4531
4438
|
}
|
|
4532
4439
|
});
|
|
4533
4440
|
|
|
4534
|
-
// ../../node_modules/.pnpm/ajv@8.
|
|
4441
|
+
// ../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/core/index.js
|
|
4535
4442
|
var require_core2 = chunkDZUJEN5N_cjs.__commonJS({
|
|
4536
|
-
"../../node_modules/.pnpm/ajv@8.
|
|
4443
|
+
"../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/core/index.js"(exports$1) {
|
|
4537
4444
|
Object.defineProperty(exports$1, "__esModule", { value: true });
|
|
4538
4445
|
var id_1 = require_id();
|
|
4539
4446
|
var ref_1 = require_ref();
|
|
@@ -4551,9 +4458,9 @@ var require_core2 = chunkDZUJEN5N_cjs.__commonJS({
|
|
|
4551
4458
|
}
|
|
4552
4459
|
});
|
|
4553
4460
|
|
|
4554
|
-
// ../../node_modules/.pnpm/ajv@8.
|
|
4461
|
+
// ../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/validation/limitNumber.js
|
|
4555
4462
|
var require_limitNumber = chunkDZUJEN5N_cjs.__commonJS({
|
|
4556
|
-
"../../node_modules/.pnpm/ajv@8.
|
|
4463
|
+
"../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/validation/limitNumber.js"(exports$1) {
|
|
4557
4464
|
Object.defineProperty(exports$1, "__esModule", { value: true });
|
|
4558
4465
|
var codegen_1 = require_codegen();
|
|
4559
4466
|
var ops = codegen_1.operators;
|
|
@@ -4582,9 +4489,9 @@ var require_limitNumber = chunkDZUJEN5N_cjs.__commonJS({
|
|
|
4582
4489
|
}
|
|
4583
4490
|
});
|
|
4584
4491
|
|
|
4585
|
-
// ../../node_modules/.pnpm/ajv@8.
|
|
4492
|
+
// ../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/validation/multipleOf.js
|
|
4586
4493
|
var require_multipleOf = chunkDZUJEN5N_cjs.__commonJS({
|
|
4587
|
-
"../../node_modules/.pnpm/ajv@8.
|
|
4494
|
+
"../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/validation/multipleOf.js"(exports$1) {
|
|
4588
4495
|
Object.defineProperty(exports$1, "__esModule", { value: true });
|
|
4589
4496
|
var codegen_1 = require_codegen();
|
|
4590
4497
|
var error = {
|
|
@@ -4609,9 +4516,9 @@ var require_multipleOf = chunkDZUJEN5N_cjs.__commonJS({
|
|
|
4609
4516
|
}
|
|
4610
4517
|
});
|
|
4611
4518
|
|
|
4612
|
-
// ../../node_modules/.pnpm/ajv@8.
|
|
4519
|
+
// ../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/runtime/ucs2length.js
|
|
4613
4520
|
var require_ucs2length = chunkDZUJEN5N_cjs.__commonJS({
|
|
4614
|
-
"../../node_modules/.pnpm/ajv@8.
|
|
4521
|
+
"../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/runtime/ucs2length.js"(exports$1) {
|
|
4615
4522
|
Object.defineProperty(exports$1, "__esModule", { value: true });
|
|
4616
4523
|
function ucs2length(str) {
|
|
4617
4524
|
const len = str.length;
|
|
@@ -4634,9 +4541,9 @@ var require_ucs2length = chunkDZUJEN5N_cjs.__commonJS({
|
|
|
4634
4541
|
}
|
|
4635
4542
|
});
|
|
4636
4543
|
|
|
4637
|
-
// ../../node_modules/.pnpm/ajv@8.
|
|
4544
|
+
// ../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/validation/limitLength.js
|
|
4638
4545
|
var require_limitLength = chunkDZUJEN5N_cjs.__commonJS({
|
|
4639
|
-
"../../node_modules/.pnpm/ajv@8.
|
|
4546
|
+
"../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/validation/limitLength.js"(exports$1) {
|
|
4640
4547
|
Object.defineProperty(exports$1, "__esModule", { value: true });
|
|
4641
4548
|
var codegen_1 = require_codegen();
|
|
4642
4549
|
var util_1 = require_util();
|
|
@@ -4665,11 +4572,12 @@ var require_limitLength = chunkDZUJEN5N_cjs.__commonJS({
|
|
|
4665
4572
|
}
|
|
4666
4573
|
});
|
|
4667
4574
|
|
|
4668
|
-
// ../../node_modules/.pnpm/ajv@8.
|
|
4575
|
+
// ../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/validation/pattern.js
|
|
4669
4576
|
var require_pattern = chunkDZUJEN5N_cjs.__commonJS({
|
|
4670
|
-
"../../node_modules/.pnpm/ajv@8.
|
|
4577
|
+
"../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/validation/pattern.js"(exports$1) {
|
|
4671
4578
|
Object.defineProperty(exports$1, "__esModule", { value: true });
|
|
4672
4579
|
var code_1 = require_code2();
|
|
4580
|
+
var util_1 = require_util();
|
|
4673
4581
|
var codegen_1 = require_codegen();
|
|
4674
4582
|
var error = {
|
|
4675
4583
|
message: ({ schemaCode }) => (0, codegen_1.str)`must match pattern "${schemaCode}"`,
|
|
@@ -4682,19 +4590,27 @@ var require_pattern = chunkDZUJEN5N_cjs.__commonJS({
|
|
|
4682
4590
|
$data: true,
|
|
4683
4591
|
error,
|
|
4684
4592
|
code(cxt) {
|
|
4685
|
-
const { data, $data, schema, schemaCode, it } = cxt;
|
|
4593
|
+
const { gen, data, $data, schema, schemaCode, it } = cxt;
|
|
4686
4594
|
const u = it.opts.unicodeRegExp ? "u" : "";
|
|
4687
|
-
|
|
4688
|
-
|
|
4595
|
+
if ($data) {
|
|
4596
|
+
const { regExp } = it.opts.code;
|
|
4597
|
+
const regExpCode = regExp.code === "new RegExp" ? (0, codegen_1._)`new RegExp` : (0, util_1.useFunc)(gen, regExp);
|
|
4598
|
+
const valid = gen.let("valid");
|
|
4599
|
+
gen.try(() => gen.assign(valid, (0, codegen_1._)`${regExpCode}(${schemaCode}, ${u}).test(${data})`), () => gen.assign(valid, false));
|
|
4600
|
+
cxt.fail$data((0, codegen_1._)`!${valid}`);
|
|
4601
|
+
} else {
|
|
4602
|
+
const regExp = (0, code_1.usePattern)(cxt, schema);
|
|
4603
|
+
cxt.fail$data((0, codegen_1._)`!${regExp}.test(${data})`);
|
|
4604
|
+
}
|
|
4689
4605
|
}
|
|
4690
4606
|
};
|
|
4691
4607
|
exports$1.default = def;
|
|
4692
4608
|
}
|
|
4693
4609
|
});
|
|
4694
4610
|
|
|
4695
|
-
// ../../node_modules/.pnpm/ajv@8.
|
|
4611
|
+
// ../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/validation/limitProperties.js
|
|
4696
4612
|
var require_limitProperties = chunkDZUJEN5N_cjs.__commonJS({
|
|
4697
|
-
"../../node_modules/.pnpm/ajv@8.
|
|
4613
|
+
"../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/validation/limitProperties.js"(exports$1) {
|
|
4698
4614
|
Object.defineProperty(exports$1, "__esModule", { value: true });
|
|
4699
4615
|
var codegen_1 = require_codegen();
|
|
4700
4616
|
var error = {
|
|
@@ -4720,9 +4636,9 @@ var require_limitProperties = chunkDZUJEN5N_cjs.__commonJS({
|
|
|
4720
4636
|
}
|
|
4721
4637
|
});
|
|
4722
4638
|
|
|
4723
|
-
// ../../node_modules/.pnpm/ajv@8.
|
|
4639
|
+
// ../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/validation/required.js
|
|
4724
4640
|
var require_required = chunkDZUJEN5N_cjs.__commonJS({
|
|
4725
|
-
"../../node_modules/.pnpm/ajv@8.
|
|
4641
|
+
"../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/validation/required.js"(exports$1) {
|
|
4726
4642
|
Object.defineProperty(exports$1, "__esModule", { value: true });
|
|
4727
4643
|
var code_1 = require_code2();
|
|
4728
4644
|
var codegen_1 = require_codegen();
|
|
@@ -4801,9 +4717,9 @@ var require_required = chunkDZUJEN5N_cjs.__commonJS({
|
|
|
4801
4717
|
}
|
|
4802
4718
|
});
|
|
4803
4719
|
|
|
4804
|
-
// ../../node_modules/.pnpm/ajv@8.
|
|
4720
|
+
// ../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/validation/limitItems.js
|
|
4805
4721
|
var require_limitItems = chunkDZUJEN5N_cjs.__commonJS({
|
|
4806
|
-
"../../node_modules/.pnpm/ajv@8.
|
|
4722
|
+
"../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/validation/limitItems.js"(exports$1) {
|
|
4807
4723
|
Object.defineProperty(exports$1, "__esModule", { value: true });
|
|
4808
4724
|
var codegen_1 = require_codegen();
|
|
4809
4725
|
var error = {
|
|
@@ -4829,9 +4745,9 @@ var require_limitItems = chunkDZUJEN5N_cjs.__commonJS({
|
|
|
4829
4745
|
}
|
|
4830
4746
|
});
|
|
4831
4747
|
|
|
4832
|
-
// ../../node_modules/.pnpm/ajv@8.
|
|
4748
|
+
// ../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/runtime/equal.js
|
|
4833
4749
|
var require_equal = chunkDZUJEN5N_cjs.__commonJS({
|
|
4834
|
-
"../../node_modules/.pnpm/ajv@8.
|
|
4750
|
+
"../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/runtime/equal.js"(exports$1) {
|
|
4835
4751
|
Object.defineProperty(exports$1, "__esModule", { value: true });
|
|
4836
4752
|
var equal = require_fast_deep_equal();
|
|
4837
4753
|
equal.code = 'require("ajv/dist/runtime/equal").default';
|
|
@@ -4839,9 +4755,9 @@ var require_equal = chunkDZUJEN5N_cjs.__commonJS({
|
|
|
4839
4755
|
}
|
|
4840
4756
|
});
|
|
4841
4757
|
|
|
4842
|
-
// ../../node_modules/.pnpm/ajv@8.
|
|
4758
|
+
// ../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/validation/uniqueItems.js
|
|
4843
4759
|
var require_uniqueItems = chunkDZUJEN5N_cjs.__commonJS({
|
|
4844
|
-
"../../node_modules/.pnpm/ajv@8.
|
|
4760
|
+
"../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/validation/uniqueItems.js"(exports$1) {
|
|
4845
4761
|
Object.defineProperty(exports$1, "__esModule", { value: true });
|
|
4846
4762
|
var dataType_1 = require_dataType();
|
|
4847
4763
|
var codegen_1 = require_codegen();
|
|
@@ -4905,9 +4821,9 @@ var require_uniqueItems = chunkDZUJEN5N_cjs.__commonJS({
|
|
|
4905
4821
|
}
|
|
4906
4822
|
});
|
|
4907
4823
|
|
|
4908
|
-
// ../../node_modules/.pnpm/ajv@8.
|
|
4824
|
+
// ../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/validation/const.js
|
|
4909
4825
|
var require_const = chunkDZUJEN5N_cjs.__commonJS({
|
|
4910
|
-
"../../node_modules/.pnpm/ajv@8.
|
|
4826
|
+
"../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/validation/const.js"(exports$1) {
|
|
4911
4827
|
Object.defineProperty(exports$1, "__esModule", { value: true });
|
|
4912
4828
|
var codegen_1 = require_codegen();
|
|
4913
4829
|
var util_1 = require_util();
|
|
@@ -4933,9 +4849,9 @@ var require_const = chunkDZUJEN5N_cjs.__commonJS({
|
|
|
4933
4849
|
}
|
|
4934
4850
|
});
|
|
4935
4851
|
|
|
4936
|
-
// ../../node_modules/.pnpm/ajv@8.
|
|
4852
|
+
// ../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/validation/enum.js
|
|
4937
4853
|
var require_enum = chunkDZUJEN5N_cjs.__commonJS({
|
|
4938
|
-
"../../node_modules/.pnpm/ajv@8.
|
|
4854
|
+
"../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/validation/enum.js"(exports$1) {
|
|
4939
4855
|
Object.defineProperty(exports$1, "__esModule", { value: true });
|
|
4940
4856
|
var codegen_1 = require_codegen();
|
|
4941
4857
|
var util_1 = require_util();
|
|
@@ -4981,9 +4897,9 @@ var require_enum = chunkDZUJEN5N_cjs.__commonJS({
|
|
|
4981
4897
|
}
|
|
4982
4898
|
});
|
|
4983
4899
|
|
|
4984
|
-
// ../../node_modules/.pnpm/ajv@8.
|
|
4900
|
+
// ../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/validation/index.js
|
|
4985
4901
|
var require_validation = chunkDZUJEN5N_cjs.__commonJS({
|
|
4986
|
-
"../../node_modules/.pnpm/ajv@8.
|
|
4902
|
+
"../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/validation/index.js"(exports$1) {
|
|
4987
4903
|
Object.defineProperty(exports$1, "__esModule", { value: true });
|
|
4988
4904
|
var limitNumber_1 = require_limitNumber();
|
|
4989
4905
|
var multipleOf_1 = require_multipleOf();
|
|
@@ -5018,9 +4934,9 @@ var require_validation = chunkDZUJEN5N_cjs.__commonJS({
|
|
|
5018
4934
|
}
|
|
5019
4935
|
});
|
|
5020
4936
|
|
|
5021
|
-
// ../../node_modules/.pnpm/ajv@8.
|
|
4937
|
+
// ../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/additionalItems.js
|
|
5022
4938
|
var require_additionalItems = chunkDZUJEN5N_cjs.__commonJS({
|
|
5023
|
-
"../../node_modules/.pnpm/ajv@8.
|
|
4939
|
+
"../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/additionalItems.js"(exports$1) {
|
|
5024
4940
|
Object.defineProperty(exports$1, "__esModule", { value: true });
|
|
5025
4941
|
exports$1.validateAdditionalItems = void 0;
|
|
5026
4942
|
var codegen_1 = require_codegen();
|
|
@@ -5070,9 +4986,9 @@ var require_additionalItems = chunkDZUJEN5N_cjs.__commonJS({
|
|
|
5070
4986
|
}
|
|
5071
4987
|
});
|
|
5072
4988
|
|
|
5073
|
-
// ../../node_modules/.pnpm/ajv@8.
|
|
4989
|
+
// ../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/items.js
|
|
5074
4990
|
var require_items = chunkDZUJEN5N_cjs.__commonJS({
|
|
5075
|
-
"../../node_modules/.pnpm/ajv@8.
|
|
4991
|
+
"../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/items.js"(exports$1) {
|
|
5076
4992
|
Object.defineProperty(exports$1, "__esModule", { value: true });
|
|
5077
4993
|
exports$1.validateTuple = void 0;
|
|
5078
4994
|
var codegen_1 = require_codegen();
|
|
@@ -5126,9 +5042,9 @@ var require_items = chunkDZUJEN5N_cjs.__commonJS({
|
|
|
5126
5042
|
}
|
|
5127
5043
|
});
|
|
5128
5044
|
|
|
5129
|
-
// ../../node_modules/.pnpm/ajv@8.
|
|
5045
|
+
// ../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/prefixItems.js
|
|
5130
5046
|
var require_prefixItems = chunkDZUJEN5N_cjs.__commonJS({
|
|
5131
|
-
"../../node_modules/.pnpm/ajv@8.
|
|
5047
|
+
"../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/prefixItems.js"(exports$1) {
|
|
5132
5048
|
Object.defineProperty(exports$1, "__esModule", { value: true });
|
|
5133
5049
|
var items_1 = require_items();
|
|
5134
5050
|
var def = {
|
|
@@ -5142,9 +5058,9 @@ var require_prefixItems = chunkDZUJEN5N_cjs.__commonJS({
|
|
|
5142
5058
|
}
|
|
5143
5059
|
});
|
|
5144
5060
|
|
|
5145
|
-
// ../../node_modules/.pnpm/ajv@8.
|
|
5061
|
+
// ../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/items2020.js
|
|
5146
5062
|
var require_items2020 = chunkDZUJEN5N_cjs.__commonJS({
|
|
5147
|
-
"../../node_modules/.pnpm/ajv@8.
|
|
5063
|
+
"../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/items2020.js"(exports$1) {
|
|
5148
5064
|
Object.defineProperty(exports$1, "__esModule", { value: true });
|
|
5149
5065
|
var codegen_1 = require_codegen();
|
|
5150
5066
|
var util_1 = require_util();
|
|
@@ -5176,9 +5092,9 @@ var require_items2020 = chunkDZUJEN5N_cjs.__commonJS({
|
|
|
5176
5092
|
}
|
|
5177
5093
|
});
|
|
5178
5094
|
|
|
5179
|
-
// ../../node_modules/.pnpm/ajv@8.
|
|
5095
|
+
// ../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/contains.js
|
|
5180
5096
|
var require_contains = chunkDZUJEN5N_cjs.__commonJS({
|
|
5181
|
-
"../../node_modules/.pnpm/ajv@8.
|
|
5097
|
+
"../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/contains.js"(exports$1) {
|
|
5182
5098
|
Object.defineProperty(exports$1, "__esModule", { value: true });
|
|
5183
5099
|
var codegen_1 = require_codegen();
|
|
5184
5100
|
var util_1 = require_util();
|
|
@@ -5269,9 +5185,9 @@ var require_contains = chunkDZUJEN5N_cjs.__commonJS({
|
|
|
5269
5185
|
}
|
|
5270
5186
|
});
|
|
5271
5187
|
|
|
5272
|
-
// ../../node_modules/.pnpm/ajv@8.
|
|
5188
|
+
// ../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/dependencies.js
|
|
5273
5189
|
var require_dependencies = chunkDZUJEN5N_cjs.__commonJS({
|
|
5274
|
-
"../../node_modules/.pnpm/ajv@8.
|
|
5190
|
+
"../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/dependencies.js"(exports$1) {
|
|
5275
5191
|
Object.defineProperty(exports$1, "__esModule", { value: true });
|
|
5276
5192
|
exports$1.validateSchemaDeps = exports$1.validatePropertyDeps = exports$1.error = void 0;
|
|
5277
5193
|
var codegen_1 = require_codegen();
|
|
@@ -5362,9 +5278,9 @@ var require_dependencies = chunkDZUJEN5N_cjs.__commonJS({
|
|
|
5362
5278
|
}
|
|
5363
5279
|
});
|
|
5364
5280
|
|
|
5365
|
-
// ../../node_modules/.pnpm/ajv@8.
|
|
5281
|
+
// ../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/propertyNames.js
|
|
5366
5282
|
var require_propertyNames = chunkDZUJEN5N_cjs.__commonJS({
|
|
5367
|
-
"../../node_modules/.pnpm/ajv@8.
|
|
5283
|
+
"../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/propertyNames.js"(exports$1) {
|
|
5368
5284
|
Object.defineProperty(exports$1, "__esModule", { value: true });
|
|
5369
5285
|
var codegen_1 = require_codegen();
|
|
5370
5286
|
var util_1 = require_util();
|
|
@@ -5404,9 +5320,9 @@ var require_propertyNames = chunkDZUJEN5N_cjs.__commonJS({
|
|
|
5404
5320
|
}
|
|
5405
5321
|
});
|
|
5406
5322
|
|
|
5407
|
-
// ../../node_modules/.pnpm/ajv@8.
|
|
5323
|
+
// ../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/additionalProperties.js
|
|
5408
5324
|
var require_additionalProperties = chunkDZUJEN5N_cjs.__commonJS({
|
|
5409
|
-
"../../node_modules/.pnpm/ajv@8.
|
|
5325
|
+
"../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/additionalProperties.js"(exports$1) {
|
|
5410
5326
|
Object.defineProperty(exports$1, "__esModule", { value: true });
|
|
5411
5327
|
var code_1 = require_code2();
|
|
5412
5328
|
var codegen_1 = require_codegen();
|
|
@@ -5509,9 +5425,9 @@ var require_additionalProperties = chunkDZUJEN5N_cjs.__commonJS({
|
|
|
5509
5425
|
}
|
|
5510
5426
|
});
|
|
5511
5427
|
|
|
5512
|
-
// ../../node_modules/.pnpm/ajv@8.
|
|
5428
|
+
// ../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/properties.js
|
|
5513
5429
|
var require_properties = chunkDZUJEN5N_cjs.__commonJS({
|
|
5514
|
-
"../../node_modules/.pnpm/ajv@8.
|
|
5430
|
+
"../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/properties.js"(exports$1) {
|
|
5515
5431
|
Object.defineProperty(exports$1, "__esModule", { value: true });
|
|
5516
5432
|
var validate_1 = require_validate();
|
|
5517
5433
|
var code_1 = require_code2();
|
|
@@ -5566,9 +5482,9 @@ var require_properties = chunkDZUJEN5N_cjs.__commonJS({
|
|
|
5566
5482
|
}
|
|
5567
5483
|
});
|
|
5568
5484
|
|
|
5569
|
-
// ../../node_modules/.pnpm/ajv@8.
|
|
5485
|
+
// ../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/patternProperties.js
|
|
5570
5486
|
var require_patternProperties = chunkDZUJEN5N_cjs.__commonJS({
|
|
5571
|
-
"../../node_modules/.pnpm/ajv@8.
|
|
5487
|
+
"../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/patternProperties.js"(exports$1) {
|
|
5572
5488
|
Object.defineProperty(exports$1, "__esModule", { value: true });
|
|
5573
5489
|
var code_1 = require_code2();
|
|
5574
5490
|
var codegen_1 = require_codegen();
|
|
@@ -5639,9 +5555,9 @@ var require_patternProperties = chunkDZUJEN5N_cjs.__commonJS({
|
|
|
5639
5555
|
}
|
|
5640
5556
|
});
|
|
5641
5557
|
|
|
5642
|
-
// ../../node_modules/.pnpm/ajv@8.
|
|
5558
|
+
// ../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/not.js
|
|
5643
5559
|
var require_not = chunkDZUJEN5N_cjs.__commonJS({
|
|
5644
|
-
"../../node_modules/.pnpm/ajv@8.
|
|
5560
|
+
"../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/not.js"(exports$1) {
|
|
5645
5561
|
Object.defineProperty(exports$1, "__esModule", { value: true });
|
|
5646
5562
|
var util_1 = require_util();
|
|
5647
5563
|
var def = {
|
|
@@ -5669,9 +5585,9 @@ var require_not = chunkDZUJEN5N_cjs.__commonJS({
|
|
|
5669
5585
|
}
|
|
5670
5586
|
});
|
|
5671
5587
|
|
|
5672
|
-
// ../../node_modules/.pnpm/ajv@8.
|
|
5588
|
+
// ../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/anyOf.js
|
|
5673
5589
|
var require_anyOf = chunkDZUJEN5N_cjs.__commonJS({
|
|
5674
|
-
"../../node_modules/.pnpm/ajv@8.
|
|
5590
|
+
"../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/anyOf.js"(exports$1) {
|
|
5675
5591
|
Object.defineProperty(exports$1, "__esModule", { value: true });
|
|
5676
5592
|
var code_1 = require_code2();
|
|
5677
5593
|
var def = {
|
|
@@ -5685,9 +5601,9 @@ var require_anyOf = chunkDZUJEN5N_cjs.__commonJS({
|
|
|
5685
5601
|
}
|
|
5686
5602
|
});
|
|
5687
5603
|
|
|
5688
|
-
// ../../node_modules/.pnpm/ajv@8.
|
|
5604
|
+
// ../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/oneOf.js
|
|
5689
5605
|
var require_oneOf = chunkDZUJEN5N_cjs.__commonJS({
|
|
5690
|
-
"../../node_modules/.pnpm/ajv@8.
|
|
5606
|
+
"../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/oneOf.js"(exports$1) {
|
|
5691
5607
|
Object.defineProperty(exports$1, "__esModule", { value: true });
|
|
5692
5608
|
var codegen_1 = require_codegen();
|
|
5693
5609
|
var util_1 = require_util();
|
|
@@ -5742,9 +5658,9 @@ var require_oneOf = chunkDZUJEN5N_cjs.__commonJS({
|
|
|
5742
5658
|
}
|
|
5743
5659
|
});
|
|
5744
5660
|
|
|
5745
|
-
// ../../node_modules/.pnpm/ajv@8.
|
|
5661
|
+
// ../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/allOf.js
|
|
5746
5662
|
var require_allOf = chunkDZUJEN5N_cjs.__commonJS({
|
|
5747
|
-
"../../node_modules/.pnpm/ajv@8.
|
|
5663
|
+
"../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/allOf.js"(exports$1) {
|
|
5748
5664
|
Object.defineProperty(exports$1, "__esModule", { value: true });
|
|
5749
5665
|
var util_1 = require_util();
|
|
5750
5666
|
var def = {
|
|
@@ -5768,9 +5684,9 @@ var require_allOf = chunkDZUJEN5N_cjs.__commonJS({
|
|
|
5768
5684
|
}
|
|
5769
5685
|
});
|
|
5770
5686
|
|
|
5771
|
-
// ../../node_modules/.pnpm/ajv@8.
|
|
5687
|
+
// ../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/if.js
|
|
5772
5688
|
var require_if = chunkDZUJEN5N_cjs.__commonJS({
|
|
5773
|
-
"../../node_modules/.pnpm/ajv@8.
|
|
5689
|
+
"../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/if.js"(exports$1) {
|
|
5774
5690
|
Object.defineProperty(exports$1, "__esModule", { value: true });
|
|
5775
5691
|
var codegen_1 = require_codegen();
|
|
5776
5692
|
var util_1 = require_util();
|
|
@@ -5836,9 +5752,9 @@ var require_if = chunkDZUJEN5N_cjs.__commonJS({
|
|
|
5836
5752
|
}
|
|
5837
5753
|
});
|
|
5838
5754
|
|
|
5839
|
-
// ../../node_modules/.pnpm/ajv@8.
|
|
5755
|
+
// ../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/thenElse.js
|
|
5840
5756
|
var require_thenElse = chunkDZUJEN5N_cjs.__commonJS({
|
|
5841
|
-
"../../node_modules/.pnpm/ajv@8.
|
|
5757
|
+
"../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/thenElse.js"(exports$1) {
|
|
5842
5758
|
Object.defineProperty(exports$1, "__esModule", { value: true });
|
|
5843
5759
|
var util_1 = require_util();
|
|
5844
5760
|
var def = {
|
|
@@ -5853,9 +5769,9 @@ var require_thenElse = chunkDZUJEN5N_cjs.__commonJS({
|
|
|
5853
5769
|
}
|
|
5854
5770
|
});
|
|
5855
5771
|
|
|
5856
|
-
// ../../node_modules/.pnpm/ajv@8.
|
|
5772
|
+
// ../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/index.js
|
|
5857
5773
|
var require_applicator = chunkDZUJEN5N_cjs.__commonJS({
|
|
5858
|
-
"../../node_modules/.pnpm/ajv@8.
|
|
5774
|
+
"../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/index.js"(exports$1) {
|
|
5859
5775
|
Object.defineProperty(exports$1, "__esModule", { value: true });
|
|
5860
5776
|
var additionalItems_1 = require_additionalItems();
|
|
5861
5777
|
var prefixItems_1 = require_prefixItems();
|
|
@@ -5900,9 +5816,9 @@ var require_applicator = chunkDZUJEN5N_cjs.__commonJS({
|
|
|
5900
5816
|
}
|
|
5901
5817
|
});
|
|
5902
5818
|
|
|
5903
|
-
// ../../node_modules/.pnpm/ajv@8.
|
|
5819
|
+
// ../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/format/format.js
|
|
5904
5820
|
var require_format = chunkDZUJEN5N_cjs.__commonJS({
|
|
5905
|
-
"../../node_modules/.pnpm/ajv@8.
|
|
5821
|
+
"../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/format/format.js"(exports$1) {
|
|
5906
5822
|
Object.defineProperty(exports$1, "__esModule", { value: true });
|
|
5907
5823
|
var codegen_1 = require_codegen();
|
|
5908
5824
|
var error = {
|
|
@@ -5989,9 +5905,9 @@ var require_format = chunkDZUJEN5N_cjs.__commonJS({
|
|
|
5989
5905
|
}
|
|
5990
5906
|
});
|
|
5991
5907
|
|
|
5992
|
-
// ../../node_modules/.pnpm/ajv@8.
|
|
5908
|
+
// ../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/format/index.js
|
|
5993
5909
|
var require_format2 = chunkDZUJEN5N_cjs.__commonJS({
|
|
5994
|
-
"../../node_modules/.pnpm/ajv@8.
|
|
5910
|
+
"../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/format/index.js"(exports$1) {
|
|
5995
5911
|
Object.defineProperty(exports$1, "__esModule", { value: true });
|
|
5996
5912
|
var format_1 = require_format();
|
|
5997
5913
|
var format = [format_1.default];
|
|
@@ -5999,9 +5915,9 @@ var require_format2 = chunkDZUJEN5N_cjs.__commonJS({
|
|
|
5999
5915
|
}
|
|
6000
5916
|
});
|
|
6001
5917
|
|
|
6002
|
-
// ../../node_modules/.pnpm/ajv@8.
|
|
5918
|
+
// ../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/metadata.js
|
|
6003
5919
|
var require_metadata = chunkDZUJEN5N_cjs.__commonJS({
|
|
6004
|
-
"../../node_modules/.pnpm/ajv@8.
|
|
5920
|
+
"../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/metadata.js"(exports$1) {
|
|
6005
5921
|
Object.defineProperty(exports$1, "__esModule", { value: true });
|
|
6006
5922
|
exports$1.contentVocabulary = exports$1.metadataVocabulary = void 0;
|
|
6007
5923
|
exports$1.metadataVocabulary = [
|
|
@@ -6021,9 +5937,9 @@ var require_metadata = chunkDZUJEN5N_cjs.__commonJS({
|
|
|
6021
5937
|
}
|
|
6022
5938
|
});
|
|
6023
5939
|
|
|
6024
|
-
// ../../node_modules/.pnpm/ajv@8.
|
|
5940
|
+
// ../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/draft7.js
|
|
6025
5941
|
var require_draft7 = chunkDZUJEN5N_cjs.__commonJS({
|
|
6026
|
-
"../../node_modules/.pnpm/ajv@8.
|
|
5942
|
+
"../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/draft7.js"(exports$1) {
|
|
6027
5943
|
Object.defineProperty(exports$1, "__esModule", { value: true });
|
|
6028
5944
|
var core_1 = require_core2();
|
|
6029
5945
|
var validation_1 = require_validation();
|
|
@@ -6042,9 +5958,9 @@ var require_draft7 = chunkDZUJEN5N_cjs.__commonJS({
|
|
|
6042
5958
|
}
|
|
6043
5959
|
});
|
|
6044
5960
|
|
|
6045
|
-
// ../../node_modules/.pnpm/ajv@8.
|
|
5961
|
+
// ../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/discriminator/types.js
|
|
6046
5962
|
var require_types = chunkDZUJEN5N_cjs.__commonJS({
|
|
6047
|
-
"../../node_modules/.pnpm/ajv@8.
|
|
5963
|
+
"../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/discriminator/types.js"(exports$1) {
|
|
6048
5964
|
Object.defineProperty(exports$1, "__esModule", { value: true });
|
|
6049
5965
|
exports$1.DiscrError = void 0;
|
|
6050
5966
|
var DiscrError;
|
|
@@ -6055,9 +5971,9 @@ var require_types = chunkDZUJEN5N_cjs.__commonJS({
|
|
|
6055
5971
|
}
|
|
6056
5972
|
});
|
|
6057
5973
|
|
|
6058
|
-
// ../../node_modules/.pnpm/ajv@8.
|
|
5974
|
+
// ../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/discriminator/index.js
|
|
6059
5975
|
var require_discriminator = chunkDZUJEN5N_cjs.__commonJS({
|
|
6060
|
-
"../../node_modules/.pnpm/ajv@8.
|
|
5976
|
+
"../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/discriminator/index.js"(exports$1) {
|
|
6061
5977
|
Object.defineProperty(exports$1, "__esModule", { value: true });
|
|
6062
5978
|
var codegen_1 = require_codegen();
|
|
6063
5979
|
var types_1 = require_types();
|
|
@@ -6159,9 +6075,9 @@ var require_discriminator = chunkDZUJEN5N_cjs.__commonJS({
|
|
|
6159
6075
|
}
|
|
6160
6076
|
});
|
|
6161
6077
|
|
|
6162
|
-
// ../../node_modules/.pnpm/ajv@8.
|
|
6078
|
+
// ../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/refs/json-schema-draft-07.json
|
|
6163
6079
|
var require_json_schema_draft_07 = chunkDZUJEN5N_cjs.__commonJS({
|
|
6164
|
-
"../../node_modules/.pnpm/ajv@8.
|
|
6080
|
+
"../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/refs/json-schema-draft-07.json"(exports$1, module) {
|
|
6165
6081
|
module.exports = {
|
|
6166
6082
|
$schema: "http://json-schema.org/draft-07/schema#",
|
|
6167
6083
|
$id: "http://json-schema.org/draft-07/schema#",
|
|
@@ -6316,9 +6232,9 @@ var require_json_schema_draft_07 = chunkDZUJEN5N_cjs.__commonJS({
|
|
|
6316
6232
|
}
|
|
6317
6233
|
});
|
|
6318
6234
|
|
|
6319
|
-
// ../../node_modules/.pnpm/ajv@8.
|
|
6235
|
+
// ../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/ajv.js
|
|
6320
6236
|
var require_ajv = chunkDZUJEN5N_cjs.__commonJS({
|
|
6321
|
-
"../../node_modules/.pnpm/ajv@8.
|
|
6237
|
+
"../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/ajv.js"(exports$1, module) {
|
|
6322
6238
|
Object.defineProperty(exports$1, "__esModule", { value: true });
|
|
6323
6239
|
exports$1.MissingRefError = exports$1.ValidationError = exports$1.CodeGen = exports$1.Name = exports$1.nil = exports$1.stringify = exports$1.str = exports$1._ = exports$1.KeywordCxt = exports$1.Ajv = void 0;
|
|
6324
6240
|
var core_1 = require_core();
|
|
@@ -6385,111 +6301,10 @@ var require_ajv = chunkDZUJEN5N_cjs.__commonJS({
|
|
|
6385
6301
|
}
|
|
6386
6302
|
});
|
|
6387
6303
|
|
|
6388
|
-
// src/standard-schema/adapters/ai-sdk.ts
|
|
6389
|
-
var VENDOR = "ai-sdk";
|
|
6390
|
-
var AiSdkSchemaWrapper = class {
|
|
6391
|
-
#schema;
|
|
6392
|
-
"~standard";
|
|
6393
|
-
constructor(schema) {
|
|
6394
|
-
this.#schema = schema;
|
|
6395
|
-
this["~standard"] = {
|
|
6396
|
-
version: 1,
|
|
6397
|
-
vendor: VENDOR,
|
|
6398
|
-
validate: this.#validate.bind(this),
|
|
6399
|
-
jsonSchema: {
|
|
6400
|
-
input: this.#toJsonSchema.bind(this),
|
|
6401
|
-
output: this.#toJsonSchema.bind(this)
|
|
6402
|
-
}
|
|
6403
|
-
};
|
|
6404
|
-
}
|
|
6405
|
-
/**
|
|
6406
|
-
* Validates a value against the AI SDK Schema.
|
|
6407
|
-
*
|
|
6408
|
-
* @param value - The value to validate
|
|
6409
|
-
* @returns A result object with either the validated value or validation issues
|
|
6410
|
-
*/
|
|
6411
|
-
#validate(value) {
|
|
6412
|
-
if (!this.#schema.validate) {
|
|
6413
|
-
return { value };
|
|
6414
|
-
}
|
|
6415
|
-
try {
|
|
6416
|
-
const result = this.#schema.validate(value);
|
|
6417
|
-
if (result && typeof result === "object" && "then" in result && typeof result.then === "function") {
|
|
6418
|
-
return Promise.resolve(
|
|
6419
|
-
result
|
|
6420
|
-
).then((res) => this.#convertValidationResult(res)).catch((error) => {
|
|
6421
|
-
const message = error instanceof Error ? error.message : "Unknown validation error";
|
|
6422
|
-
return {
|
|
6423
|
-
issues: [{ message: `Schema validation error: ${message}` }]
|
|
6424
|
-
};
|
|
6425
|
-
});
|
|
6426
|
-
}
|
|
6427
|
-
return this.#convertValidationResult(
|
|
6428
|
-
result
|
|
6429
|
-
);
|
|
6430
|
-
} catch (error) {
|
|
6431
|
-
const message = error instanceof Error ? error.message : "Unknown validation error";
|
|
6432
|
-
return {
|
|
6433
|
-
issues: [{ message: `Schema validation error: ${message}` }]
|
|
6434
|
-
};
|
|
6435
|
-
}
|
|
6436
|
-
}
|
|
6437
|
-
/**
|
|
6438
|
-
* Converts an AI SDK ValidationResult to a StandardSchemaV1.Result.
|
|
6439
|
-
*
|
|
6440
|
-
* @param result - The AI SDK validation result
|
|
6441
|
-
* @returns A StandardSchemaV1.Result
|
|
6442
|
-
*/
|
|
6443
|
-
#convertValidationResult(result) {
|
|
6444
|
-
if (result.success) {
|
|
6445
|
-
return { value: result.value };
|
|
6446
|
-
}
|
|
6447
|
-
const failureResult = result;
|
|
6448
|
-
return {
|
|
6449
|
-
issues: [{ message: failureResult.error.message }]
|
|
6450
|
-
};
|
|
6451
|
-
}
|
|
6452
|
-
/**
|
|
6453
|
-
* Returns the JSON Schema in the requested target format.
|
|
6454
|
-
*
|
|
6455
|
-
* @param options - Options including the target format
|
|
6456
|
-
* @returns The JSON Schema as a Record
|
|
6457
|
-
*/
|
|
6458
|
-
#toJsonSchema(options) {
|
|
6459
|
-
const { target } = options;
|
|
6460
|
-
const clonedSchema = JSON.parse(JSON.stringify(this.#schema.jsonSchema));
|
|
6461
|
-
if (!clonedSchema.$schema) {
|
|
6462
|
-
switch (target) {
|
|
6463
|
-
case "draft-07":
|
|
6464
|
-
clonedSchema.$schema = "http://json-schema.org/draft-07/schema#";
|
|
6465
|
-
break;
|
|
6466
|
-
case "draft-2020-12":
|
|
6467
|
-
clonedSchema.$schema = "https://json-schema.org/draft/2020-12/schema";
|
|
6468
|
-
break;
|
|
6469
|
-
}
|
|
6470
|
-
}
|
|
6471
|
-
return clonedSchema;
|
|
6472
|
-
}
|
|
6473
|
-
/**
|
|
6474
|
-
* Returns the original AI SDK Schema.
|
|
6475
|
-
*/
|
|
6476
|
-
getSchema() {
|
|
6477
|
-
return this.#schema;
|
|
6478
|
-
}
|
|
6479
|
-
/**
|
|
6480
|
-
* Returns the original JSON Schema from the AI SDK Schema.
|
|
6481
|
-
*/
|
|
6482
|
-
getJsonSchema() {
|
|
6483
|
-
return this.#schema.jsonSchema;
|
|
6484
|
-
}
|
|
6485
|
-
};
|
|
6486
|
-
function toStandardSchema(schema) {
|
|
6487
|
-
return new AiSdkSchemaWrapper(schema);
|
|
6488
|
-
}
|
|
6489
|
-
|
|
6490
6304
|
// src/standard-schema/adapters/json-schema.ts
|
|
6491
6305
|
var import_ajv = chunkDZUJEN5N_cjs.__toESM(require_ajv(), 1);
|
|
6492
|
-
var
|
|
6306
|
+
var import_json_schema_traverse = chunkDZUJEN5N_cjs.__toESM(chunk3MLZICLP_cjs.require_json_schema_traverse(), 1);
|
|
6307
|
+
var VENDOR = "json-schema";
|
|
6493
6308
|
var JsonSchemaWrapper = class {
|
|
6494
6309
|
#schema;
|
|
6495
6310
|
#options;
|
|
@@ -6501,7 +6316,7 @@ var JsonSchemaWrapper = class {
|
|
|
6501
6316
|
this.#options = options;
|
|
6502
6317
|
this["~standard"] = {
|
|
6503
6318
|
version: 1,
|
|
6504
|
-
vendor:
|
|
6319
|
+
vendor: VENDOR,
|
|
6505
6320
|
validate: this.#validate.bind(this),
|
|
6506
6321
|
jsonSchema: {
|
|
6507
6322
|
input: this.#toJsonSchema.bind(this),
|
|
@@ -6585,6 +6400,18 @@ var JsonSchemaWrapper = class {
|
|
|
6585
6400
|
break;
|
|
6586
6401
|
}
|
|
6587
6402
|
}
|
|
6403
|
+
if (options?.libraryOptions?.override) {
|
|
6404
|
+
const override = options.libraryOptions.override;
|
|
6405
|
+
(0, import_json_schema_traverse.default)(clonedSchema, {
|
|
6406
|
+
cb: {
|
|
6407
|
+
post: (schema) => {
|
|
6408
|
+
override({
|
|
6409
|
+
jsonSchema: schema
|
|
6410
|
+
});
|
|
6411
|
+
}
|
|
6412
|
+
}
|
|
6413
|
+
});
|
|
6414
|
+
}
|
|
6588
6415
|
return clonedSchema;
|
|
6589
6416
|
}
|
|
6590
6417
|
/**
|
|
@@ -6619,166 +6446,11 @@ var JsonSchemaWrapper = class {
|
|
|
6619
6446
|
return this.#ajvInstance;
|
|
6620
6447
|
}
|
|
6621
6448
|
};
|
|
6622
|
-
function
|
|
6449
|
+
function toStandardSchema(schema, options) {
|
|
6623
6450
|
return new JsonSchemaWrapper(schema, options);
|
|
6624
6451
|
}
|
|
6625
6452
|
|
|
6626
|
-
|
|
6627
|
-
|
|
6628
|
-
|
|
6629
|
-
|
|
6630
|
-
"openapi-3.0": "openApi3"
|
|
6631
|
-
};
|
|
6632
|
-
function convertToJsonSchema(zodSchema, options) {
|
|
6633
|
-
const target = TARGET_MAP[options.target];
|
|
6634
|
-
if (!target) {
|
|
6635
|
-
const supportedTargets = Object.keys(TARGET_MAP);
|
|
6636
|
-
throw new Error(
|
|
6637
|
-
`Unsupported JSON Schema target: "${options.target}". Supported targets are: ${supportedTargets.join(", ")}`
|
|
6638
|
-
);
|
|
6639
|
-
}
|
|
6640
|
-
const jsonSchema = zodToJsonSchemaOriginal__default.default(zodSchema, {
|
|
6641
|
-
$refStrategy: "none",
|
|
6642
|
-
target
|
|
6643
|
-
});
|
|
6644
|
-
(0, import_json_schema_traverse.default)(jsonSchema, {
|
|
6645
|
-
cb: {
|
|
6646
|
-
pre: (schema) => {
|
|
6647
|
-
if (schema.type === "string" && schema.format === "email") {
|
|
6648
|
-
schema.pattern = `^(?!\\.)(?!.*\\.\\.)([A-Za-z0-9_'+\\-\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$`;
|
|
6649
|
-
}
|
|
6650
|
-
}
|
|
6651
|
-
// post: (schema, jsonPtr, rootSchema, parentJsonPtr, parentKeyword, parentSchema) => {
|
|
6652
|
-
// this.postProcessJSONNode(schema, parentSchema);
|
|
6653
|
-
// },
|
|
6654
|
-
}
|
|
6655
|
-
});
|
|
6656
|
-
return jsonSchema;
|
|
6657
|
-
}
|
|
6658
|
-
function toStandardSchema3(zodSchema) {
|
|
6659
|
-
const wrapper = Object.create(zodSchema);
|
|
6660
|
-
const existingStandard = zodSchema["~standard"];
|
|
6661
|
-
const jsonSchemaConverter = {
|
|
6662
|
-
input: (options) => {
|
|
6663
|
-
return convertToJsonSchema(zodSchema, options);
|
|
6664
|
-
},
|
|
6665
|
-
output: (options) => {
|
|
6666
|
-
return convertToJsonSchema(zodSchema, options);
|
|
6667
|
-
}
|
|
6668
|
-
};
|
|
6669
|
-
Object.defineProperty(wrapper, "~standard", {
|
|
6670
|
-
value: {
|
|
6671
|
-
...existingStandard,
|
|
6672
|
-
jsonSchema: jsonSchemaConverter
|
|
6673
|
-
},
|
|
6674
|
-
writable: false,
|
|
6675
|
-
enumerable: true,
|
|
6676
|
-
configurable: false
|
|
6677
|
-
});
|
|
6678
|
-
return wrapper;
|
|
6679
|
-
}
|
|
6680
|
-
|
|
6681
|
-
// src/standard-schema/standard-schema.ts
|
|
6682
|
-
function jsonSchemaOverride(ctx) {
|
|
6683
|
-
const zodSchema = ctx.zodSchema;
|
|
6684
|
-
if (zodSchema) {
|
|
6685
|
-
if (zodSchema?.type === "date") {
|
|
6686
|
-
ctx.jsonSchema.type = "string";
|
|
6687
|
-
ctx.jsonSchema.format = "date-time";
|
|
6688
|
-
}
|
|
6689
|
-
}
|
|
6690
|
-
return void 0;
|
|
6691
|
-
}
|
|
6692
|
-
var JSON_SCHEMA_LIBRARY_OPTIONS = {
|
|
6693
|
-
unrepresentable: "any",
|
|
6694
|
-
override: jsonSchemaOverride
|
|
6695
|
-
};
|
|
6696
|
-
function isVercelSchema(schema) {
|
|
6697
|
-
return typeof schema === "object" && schema !== null && "_type" in schema && "jsonSchema" in schema && typeof schema.jsonSchema === "object";
|
|
6698
|
-
}
|
|
6699
|
-
function isZodV4(schema) {
|
|
6700
|
-
return typeof schema === "object" && schema !== null && "_zod" in schema;
|
|
6701
|
-
}
|
|
6702
|
-
function isZodV3(schema) {
|
|
6703
|
-
if (schema === null || typeof schema !== "object") {
|
|
6704
|
-
return false;
|
|
6705
|
-
}
|
|
6706
|
-
if (isZodV4(schema)) {
|
|
6707
|
-
return false;
|
|
6708
|
-
}
|
|
6709
|
-
if ("~standard" in schema) {
|
|
6710
|
-
const std = schema["~standard"];
|
|
6711
|
-
if (typeof std === "object" && std !== null && std.vendor === "zod" && !("jsonSchema" in std)) {
|
|
6712
|
-
return true;
|
|
6713
|
-
}
|
|
6714
|
-
}
|
|
6715
|
-
return schema instanceof z3__default.default.ZodType;
|
|
6716
|
-
}
|
|
6717
|
-
function toStandardSchema4(schema) {
|
|
6718
|
-
if (isStandardSchemaWithJSON(schema)) {
|
|
6719
|
-
return schema;
|
|
6720
|
-
}
|
|
6721
|
-
if (isZodV3(schema)) {
|
|
6722
|
-
return toStandardSchema3(schema);
|
|
6723
|
-
}
|
|
6724
|
-
if (isVercelSchema(schema)) {
|
|
6725
|
-
return toStandardSchema(schema);
|
|
6726
|
-
}
|
|
6727
|
-
if (schema === null || typeof schema !== "object" && typeof schema !== "function") {
|
|
6728
|
-
throw new Error(`Unsupported schema type: ${typeof schema}`);
|
|
6729
|
-
}
|
|
6730
|
-
if (typeof schema === "function") {
|
|
6731
|
-
throw new Error(`Unsupported schema type: function (schema libraries should implement StandardSchemaWithJSON)`);
|
|
6732
|
-
}
|
|
6733
|
-
return toStandardSchema2(schema);
|
|
6734
|
-
}
|
|
6735
|
-
function isStandardSchema(value) {
|
|
6736
|
-
if (value === null || typeof value !== "object" && typeof value !== "function") {
|
|
6737
|
-
return false;
|
|
6738
|
-
}
|
|
6739
|
-
if (!("~standard" in value)) {
|
|
6740
|
-
return false;
|
|
6741
|
-
}
|
|
6742
|
-
const std = value["~standard"];
|
|
6743
|
-
return typeof std === "object" && std !== null && "version" in std && std.version === 1 && "vendor" in std && "validate" in std && typeof std.validate === "function";
|
|
6744
|
-
}
|
|
6745
|
-
function isStandardJSONSchema(value) {
|
|
6746
|
-
if (value === null || typeof value !== "object" && typeof value !== "function") {
|
|
6747
|
-
return false;
|
|
6748
|
-
}
|
|
6749
|
-
if (!("~standard" in value)) {
|
|
6750
|
-
return false;
|
|
6751
|
-
}
|
|
6752
|
-
const std = value["~standard"];
|
|
6753
|
-
if (typeof std !== "object" || std === null) {
|
|
6754
|
-
return false;
|
|
6755
|
-
}
|
|
6756
|
-
if (!("version" in std) || std.version !== 1 || !("vendor" in std)) {
|
|
6757
|
-
return false;
|
|
6758
|
-
}
|
|
6759
|
-
if (!("jsonSchema" in std) || typeof std.jsonSchema !== "object") {
|
|
6760
|
-
return false;
|
|
6761
|
-
}
|
|
6762
|
-
return typeof std.jsonSchema.input === "function" && typeof std.jsonSchema.output === "function";
|
|
6763
|
-
}
|
|
6764
|
-
function isStandardSchemaWithJSON(value) {
|
|
6765
|
-
return isStandardSchema(value) && isStandardJSONSchema(value);
|
|
6766
|
-
}
|
|
6767
|
-
function standardSchemaToJSONSchema(schema, options = {}) {
|
|
6768
|
-
const { target = "draft-07", io = "output", override = JSON_SCHEMA_LIBRARY_OPTIONS.override } = options;
|
|
6769
|
-
const jsonSchemaFn = schema["~standard"].jsonSchema[io];
|
|
6770
|
-
return jsonSchemaFn({
|
|
6771
|
-
target,
|
|
6772
|
-
libraryOptions: {
|
|
6773
|
-
...JSON_SCHEMA_LIBRARY_OPTIONS,
|
|
6774
|
-
override
|
|
6775
|
-
}
|
|
6776
|
-
});
|
|
6777
|
-
}
|
|
6778
|
-
|
|
6779
|
-
exports.isStandardSchemaWithJSON = isStandardSchemaWithJSON;
|
|
6780
|
-
exports.require_json_schema_traverse = require_json_schema_traverse;
|
|
6781
|
-
exports.standardSchemaToJSONSchema = standardSchemaToJSONSchema;
|
|
6782
|
-
exports.toStandardSchema = toStandardSchema4;
|
|
6783
|
-
//# sourceMappingURL=chunk-DAVEUCUM.cjs.map
|
|
6784
|
-
//# sourceMappingURL=chunk-DAVEUCUM.cjs.map
|
|
6453
|
+
exports.JsonSchemaWrapper = JsonSchemaWrapper;
|
|
6454
|
+
exports.toStandardSchema = toStandardSchema;
|
|
6455
|
+
//# sourceMappingURL=chunk-ROFMEFEF.cjs.map
|
|
6456
|
+
//# sourceMappingURL=chunk-ROFMEFEF.cjs.map
|