@senticor/hive 1.49.2 → 1.50.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +8 -6
- package/chive.cjs +1472 -0
- package/hive.cjs +886 -11
- package/package.json +4 -2
package/hive.cjs
CHANGED
|
@@ -6966,6 +6966,845 @@ var require_ajv = __commonJS({
|
|
|
6966
6966
|
}
|
|
6967
6967
|
});
|
|
6968
6968
|
|
|
6969
|
+
// ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/dynamic/dynamicAnchor.js
|
|
6970
|
+
var require_dynamicAnchor = __commonJS({
|
|
6971
|
+
"../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/dynamic/dynamicAnchor.js"(exports2) {
|
|
6972
|
+
"use strict";
|
|
6973
|
+
init_cjs_shims();
|
|
6974
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
6975
|
+
exports2.dynamicAnchor = void 0;
|
|
6976
|
+
var codegen_1 = require_codegen();
|
|
6977
|
+
var names_1 = require_names();
|
|
6978
|
+
var compile_1 = require_compile();
|
|
6979
|
+
var ref_1 = require_ref();
|
|
6980
|
+
var def = {
|
|
6981
|
+
keyword: "$dynamicAnchor",
|
|
6982
|
+
schemaType: "string",
|
|
6983
|
+
code: (cxt) => dynamicAnchor(cxt, cxt.schema)
|
|
6984
|
+
};
|
|
6985
|
+
function dynamicAnchor(cxt, anchor) {
|
|
6986
|
+
const { gen: gen2, it } = cxt;
|
|
6987
|
+
it.schemaEnv.root.dynamicAnchors[anchor] = true;
|
|
6988
|
+
const v = (0, codegen_1._)`${names_1.default.dynamicAnchors}${(0, codegen_1.getProperty)(anchor)}`;
|
|
6989
|
+
const validate2 = it.errSchemaPath === "#" ? it.validateName : _getValidate(cxt);
|
|
6990
|
+
gen2.if((0, codegen_1._)`!${v}`, () => gen2.assign(v, validate2));
|
|
6991
|
+
}
|
|
6992
|
+
exports2.dynamicAnchor = dynamicAnchor;
|
|
6993
|
+
function _getValidate(cxt) {
|
|
6994
|
+
const { schemaEnv, schema, self } = cxt.it;
|
|
6995
|
+
const { root, baseId, localRefs, meta: meta3 } = schemaEnv.root;
|
|
6996
|
+
const { schemaId } = self.opts;
|
|
6997
|
+
const sch = new compile_1.SchemaEnv({ schema, schemaId, root, baseId, localRefs, meta: meta3 });
|
|
6998
|
+
compile_1.compileSchema.call(self, sch);
|
|
6999
|
+
return (0, ref_1.getValidate)(cxt, sch);
|
|
7000
|
+
}
|
|
7001
|
+
exports2.default = def;
|
|
7002
|
+
}
|
|
7003
|
+
});
|
|
7004
|
+
|
|
7005
|
+
// ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/dynamic/dynamicRef.js
|
|
7006
|
+
var require_dynamicRef = __commonJS({
|
|
7007
|
+
"../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/dynamic/dynamicRef.js"(exports2) {
|
|
7008
|
+
"use strict";
|
|
7009
|
+
init_cjs_shims();
|
|
7010
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
7011
|
+
exports2.dynamicRef = void 0;
|
|
7012
|
+
var codegen_1 = require_codegen();
|
|
7013
|
+
var names_1 = require_names();
|
|
7014
|
+
var ref_1 = require_ref();
|
|
7015
|
+
var def = {
|
|
7016
|
+
keyword: "$dynamicRef",
|
|
7017
|
+
schemaType: "string",
|
|
7018
|
+
code: (cxt) => dynamicRef(cxt, cxt.schema)
|
|
7019
|
+
};
|
|
7020
|
+
function dynamicRef(cxt, ref) {
|
|
7021
|
+
const { gen: gen2, keyword, it } = cxt;
|
|
7022
|
+
if (ref[0] !== "#")
|
|
7023
|
+
throw new Error(`"${keyword}" only supports hash fragment reference`);
|
|
7024
|
+
const anchor = ref.slice(1);
|
|
7025
|
+
if (it.allErrors) {
|
|
7026
|
+
_dynamicRef();
|
|
7027
|
+
} else {
|
|
7028
|
+
const valid = gen2.let("valid", false);
|
|
7029
|
+
_dynamicRef(valid);
|
|
7030
|
+
cxt.ok(valid);
|
|
7031
|
+
}
|
|
7032
|
+
function _dynamicRef(valid) {
|
|
7033
|
+
if (it.schemaEnv.root.dynamicAnchors[anchor]) {
|
|
7034
|
+
const v = gen2.let("_v", (0, codegen_1._)`${names_1.default.dynamicAnchors}${(0, codegen_1.getProperty)(anchor)}`);
|
|
7035
|
+
gen2.if(v, _callRef(v, valid), _callRef(it.validateName, valid));
|
|
7036
|
+
} else {
|
|
7037
|
+
_callRef(it.validateName, valid)();
|
|
7038
|
+
}
|
|
7039
|
+
}
|
|
7040
|
+
function _callRef(validate2, valid) {
|
|
7041
|
+
return valid ? () => gen2.block(() => {
|
|
7042
|
+
(0, ref_1.callRef)(cxt, validate2);
|
|
7043
|
+
gen2.let(valid, true);
|
|
7044
|
+
}) : () => (0, ref_1.callRef)(cxt, validate2);
|
|
7045
|
+
}
|
|
7046
|
+
}
|
|
7047
|
+
exports2.dynamicRef = dynamicRef;
|
|
7048
|
+
exports2.default = def;
|
|
7049
|
+
}
|
|
7050
|
+
});
|
|
7051
|
+
|
|
7052
|
+
// ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/dynamic/recursiveAnchor.js
|
|
7053
|
+
var require_recursiveAnchor = __commonJS({
|
|
7054
|
+
"../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/dynamic/recursiveAnchor.js"(exports2) {
|
|
7055
|
+
"use strict";
|
|
7056
|
+
init_cjs_shims();
|
|
7057
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
7058
|
+
var dynamicAnchor_1 = require_dynamicAnchor();
|
|
7059
|
+
var util_1 = require_util();
|
|
7060
|
+
var def = {
|
|
7061
|
+
keyword: "$recursiveAnchor",
|
|
7062
|
+
schemaType: "boolean",
|
|
7063
|
+
code(cxt) {
|
|
7064
|
+
if (cxt.schema)
|
|
7065
|
+
(0, dynamicAnchor_1.dynamicAnchor)(cxt, "");
|
|
7066
|
+
else
|
|
7067
|
+
(0, util_1.checkStrictMode)(cxt.it, "$recursiveAnchor: false is ignored");
|
|
7068
|
+
}
|
|
7069
|
+
};
|
|
7070
|
+
exports2.default = def;
|
|
7071
|
+
}
|
|
7072
|
+
});
|
|
7073
|
+
|
|
7074
|
+
// ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/dynamic/recursiveRef.js
|
|
7075
|
+
var require_recursiveRef = __commonJS({
|
|
7076
|
+
"../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/dynamic/recursiveRef.js"(exports2) {
|
|
7077
|
+
"use strict";
|
|
7078
|
+
init_cjs_shims();
|
|
7079
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
7080
|
+
var dynamicRef_1 = require_dynamicRef();
|
|
7081
|
+
var def = {
|
|
7082
|
+
keyword: "$recursiveRef",
|
|
7083
|
+
schemaType: "string",
|
|
7084
|
+
code: (cxt) => (0, dynamicRef_1.dynamicRef)(cxt, cxt.schema)
|
|
7085
|
+
};
|
|
7086
|
+
exports2.default = def;
|
|
7087
|
+
}
|
|
7088
|
+
});
|
|
7089
|
+
|
|
7090
|
+
// ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/dynamic/index.js
|
|
7091
|
+
var require_dynamic = __commonJS({
|
|
7092
|
+
"../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/dynamic/index.js"(exports2) {
|
|
7093
|
+
"use strict";
|
|
7094
|
+
init_cjs_shims();
|
|
7095
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
7096
|
+
var dynamicAnchor_1 = require_dynamicAnchor();
|
|
7097
|
+
var dynamicRef_1 = require_dynamicRef();
|
|
7098
|
+
var recursiveAnchor_1 = require_recursiveAnchor();
|
|
7099
|
+
var recursiveRef_1 = require_recursiveRef();
|
|
7100
|
+
var dynamic = [dynamicAnchor_1.default, dynamicRef_1.default, recursiveAnchor_1.default, recursiveRef_1.default];
|
|
7101
|
+
exports2.default = dynamic;
|
|
7102
|
+
}
|
|
7103
|
+
});
|
|
7104
|
+
|
|
7105
|
+
// ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/validation/dependentRequired.js
|
|
7106
|
+
var require_dependentRequired = __commonJS({
|
|
7107
|
+
"../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/validation/dependentRequired.js"(exports2) {
|
|
7108
|
+
"use strict";
|
|
7109
|
+
init_cjs_shims();
|
|
7110
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
7111
|
+
var dependencies_1 = require_dependencies();
|
|
7112
|
+
var def = {
|
|
7113
|
+
keyword: "dependentRequired",
|
|
7114
|
+
type: "object",
|
|
7115
|
+
schemaType: "object",
|
|
7116
|
+
error: dependencies_1.error,
|
|
7117
|
+
code: (cxt) => (0, dependencies_1.validatePropertyDeps)(cxt)
|
|
7118
|
+
};
|
|
7119
|
+
exports2.default = def;
|
|
7120
|
+
}
|
|
7121
|
+
});
|
|
7122
|
+
|
|
7123
|
+
// ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/dependentSchemas.js
|
|
7124
|
+
var require_dependentSchemas = __commonJS({
|
|
7125
|
+
"../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/dependentSchemas.js"(exports2) {
|
|
7126
|
+
"use strict";
|
|
7127
|
+
init_cjs_shims();
|
|
7128
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
7129
|
+
var dependencies_1 = require_dependencies();
|
|
7130
|
+
var def = {
|
|
7131
|
+
keyword: "dependentSchemas",
|
|
7132
|
+
type: "object",
|
|
7133
|
+
schemaType: "object",
|
|
7134
|
+
code: (cxt) => (0, dependencies_1.validateSchemaDeps)(cxt)
|
|
7135
|
+
};
|
|
7136
|
+
exports2.default = def;
|
|
7137
|
+
}
|
|
7138
|
+
});
|
|
7139
|
+
|
|
7140
|
+
// ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/validation/limitContains.js
|
|
7141
|
+
var require_limitContains = __commonJS({
|
|
7142
|
+
"../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/validation/limitContains.js"(exports2) {
|
|
7143
|
+
"use strict";
|
|
7144
|
+
init_cjs_shims();
|
|
7145
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
7146
|
+
var util_1 = require_util();
|
|
7147
|
+
var def = {
|
|
7148
|
+
keyword: ["maxContains", "minContains"],
|
|
7149
|
+
type: "array",
|
|
7150
|
+
schemaType: "number",
|
|
7151
|
+
code({ keyword, parentSchema, it }) {
|
|
7152
|
+
if (parentSchema.contains === void 0) {
|
|
7153
|
+
(0, util_1.checkStrictMode)(it, `"${keyword}" without "contains" is ignored`);
|
|
7154
|
+
}
|
|
7155
|
+
}
|
|
7156
|
+
};
|
|
7157
|
+
exports2.default = def;
|
|
7158
|
+
}
|
|
7159
|
+
});
|
|
7160
|
+
|
|
7161
|
+
// ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/next.js
|
|
7162
|
+
var require_next = __commonJS({
|
|
7163
|
+
"../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/next.js"(exports2) {
|
|
7164
|
+
"use strict";
|
|
7165
|
+
init_cjs_shims();
|
|
7166
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
7167
|
+
var dependentRequired_1 = require_dependentRequired();
|
|
7168
|
+
var dependentSchemas_1 = require_dependentSchemas();
|
|
7169
|
+
var limitContains_1 = require_limitContains();
|
|
7170
|
+
var next = [dependentRequired_1.default, dependentSchemas_1.default, limitContains_1.default];
|
|
7171
|
+
exports2.default = next;
|
|
7172
|
+
}
|
|
7173
|
+
});
|
|
7174
|
+
|
|
7175
|
+
// ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedProperties.js
|
|
7176
|
+
var require_unevaluatedProperties = __commonJS({
|
|
7177
|
+
"../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedProperties.js"(exports2) {
|
|
7178
|
+
"use strict";
|
|
7179
|
+
init_cjs_shims();
|
|
7180
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
7181
|
+
var codegen_1 = require_codegen();
|
|
7182
|
+
var util_1 = require_util();
|
|
7183
|
+
var names_1 = require_names();
|
|
7184
|
+
var error51 = {
|
|
7185
|
+
message: "must NOT have unevaluated properties",
|
|
7186
|
+
params: ({ params }) => (0, codegen_1._)`{unevaluatedProperty: ${params.unevaluatedProperty}}`
|
|
7187
|
+
};
|
|
7188
|
+
var def = {
|
|
7189
|
+
keyword: "unevaluatedProperties",
|
|
7190
|
+
type: "object",
|
|
7191
|
+
schemaType: ["boolean", "object"],
|
|
7192
|
+
trackErrors: true,
|
|
7193
|
+
error: error51,
|
|
7194
|
+
code(cxt) {
|
|
7195
|
+
const { gen: gen2, schema, data, errsCount, it } = cxt;
|
|
7196
|
+
if (!errsCount)
|
|
7197
|
+
throw new Error("ajv implementation error");
|
|
7198
|
+
const { allErrors, props } = it;
|
|
7199
|
+
if (props instanceof codegen_1.Name) {
|
|
7200
|
+
gen2.if((0, codegen_1._)`${props} !== true`, () => gen2.forIn("key", data, (key) => gen2.if(unevaluatedDynamic(props, key), () => unevaluatedPropCode(key))));
|
|
7201
|
+
} else if (props !== true) {
|
|
7202
|
+
gen2.forIn("key", data, (key) => props === void 0 ? unevaluatedPropCode(key) : gen2.if(unevaluatedStatic(props, key), () => unevaluatedPropCode(key)));
|
|
7203
|
+
}
|
|
7204
|
+
it.props = true;
|
|
7205
|
+
cxt.ok((0, codegen_1._)`${errsCount} === ${names_1.default.errors}`);
|
|
7206
|
+
function unevaluatedPropCode(key) {
|
|
7207
|
+
if (schema === false) {
|
|
7208
|
+
cxt.setParams({ unevaluatedProperty: key });
|
|
7209
|
+
cxt.error();
|
|
7210
|
+
if (!allErrors)
|
|
7211
|
+
gen2.break();
|
|
7212
|
+
return;
|
|
7213
|
+
}
|
|
7214
|
+
if (!(0, util_1.alwaysValidSchema)(it, schema)) {
|
|
7215
|
+
const valid = gen2.name("valid");
|
|
7216
|
+
cxt.subschema({
|
|
7217
|
+
keyword: "unevaluatedProperties",
|
|
7218
|
+
dataProp: key,
|
|
7219
|
+
dataPropType: util_1.Type.Str
|
|
7220
|
+
}, valid);
|
|
7221
|
+
if (!allErrors)
|
|
7222
|
+
gen2.if((0, codegen_1.not)(valid), () => gen2.break());
|
|
7223
|
+
}
|
|
7224
|
+
}
|
|
7225
|
+
function unevaluatedDynamic(evaluatedProps, key) {
|
|
7226
|
+
return (0, codegen_1._)`!${evaluatedProps} || !${evaluatedProps}[${key}]`;
|
|
7227
|
+
}
|
|
7228
|
+
function unevaluatedStatic(evaluatedProps, key) {
|
|
7229
|
+
const ps = [];
|
|
7230
|
+
for (const p in evaluatedProps) {
|
|
7231
|
+
if (evaluatedProps[p] === true)
|
|
7232
|
+
ps.push((0, codegen_1._)`${key} !== ${p}`);
|
|
7233
|
+
}
|
|
7234
|
+
return (0, codegen_1.and)(...ps);
|
|
7235
|
+
}
|
|
7236
|
+
}
|
|
7237
|
+
};
|
|
7238
|
+
exports2.default = def;
|
|
7239
|
+
}
|
|
7240
|
+
});
|
|
7241
|
+
|
|
7242
|
+
// ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedItems.js
|
|
7243
|
+
var require_unevaluatedItems = __commonJS({
|
|
7244
|
+
"../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedItems.js"(exports2) {
|
|
7245
|
+
"use strict";
|
|
7246
|
+
init_cjs_shims();
|
|
7247
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
7248
|
+
var codegen_1 = require_codegen();
|
|
7249
|
+
var util_1 = require_util();
|
|
7250
|
+
var error51 = {
|
|
7251
|
+
message: ({ params: { len } }) => (0, codegen_1.str)`must NOT have more than ${len} items`,
|
|
7252
|
+
params: ({ params: { len } }) => (0, codegen_1._)`{limit: ${len}}`
|
|
7253
|
+
};
|
|
7254
|
+
var def = {
|
|
7255
|
+
keyword: "unevaluatedItems",
|
|
7256
|
+
type: "array",
|
|
7257
|
+
schemaType: ["boolean", "object"],
|
|
7258
|
+
error: error51,
|
|
7259
|
+
code(cxt) {
|
|
7260
|
+
const { gen: gen2, schema, data, it } = cxt;
|
|
7261
|
+
const items = it.items || 0;
|
|
7262
|
+
if (items === true)
|
|
7263
|
+
return;
|
|
7264
|
+
const len = gen2.const("len", (0, codegen_1._)`${data}.length`);
|
|
7265
|
+
if (schema === false) {
|
|
7266
|
+
cxt.setParams({ len: items });
|
|
7267
|
+
cxt.fail((0, codegen_1._)`${len} > ${items}`);
|
|
7268
|
+
} else if (typeof schema == "object" && !(0, util_1.alwaysValidSchema)(it, schema)) {
|
|
7269
|
+
const valid = gen2.var("valid", (0, codegen_1._)`${len} <= ${items}`);
|
|
7270
|
+
gen2.if((0, codegen_1.not)(valid), () => validateItems(valid, items));
|
|
7271
|
+
cxt.ok(valid);
|
|
7272
|
+
}
|
|
7273
|
+
it.items = true;
|
|
7274
|
+
function validateItems(valid, from) {
|
|
7275
|
+
gen2.forRange("i", from, len, (i) => {
|
|
7276
|
+
cxt.subschema({ keyword: "unevaluatedItems", dataProp: i, dataPropType: util_1.Type.Num }, valid);
|
|
7277
|
+
if (!it.allErrors)
|
|
7278
|
+
gen2.if((0, codegen_1.not)(valid), () => gen2.break());
|
|
7279
|
+
});
|
|
7280
|
+
}
|
|
7281
|
+
}
|
|
7282
|
+
};
|
|
7283
|
+
exports2.default = def;
|
|
7284
|
+
}
|
|
7285
|
+
});
|
|
7286
|
+
|
|
7287
|
+
// ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/unevaluated/index.js
|
|
7288
|
+
var require_unevaluated = __commonJS({
|
|
7289
|
+
"../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/unevaluated/index.js"(exports2) {
|
|
7290
|
+
"use strict";
|
|
7291
|
+
init_cjs_shims();
|
|
7292
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
7293
|
+
var unevaluatedProperties_1 = require_unevaluatedProperties();
|
|
7294
|
+
var unevaluatedItems_1 = require_unevaluatedItems();
|
|
7295
|
+
var unevaluated = [unevaluatedProperties_1.default, unevaluatedItems_1.default];
|
|
7296
|
+
exports2.default = unevaluated;
|
|
7297
|
+
}
|
|
7298
|
+
});
|
|
7299
|
+
|
|
7300
|
+
// ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/draft2020.js
|
|
7301
|
+
var require_draft2020 = __commonJS({
|
|
7302
|
+
"../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/draft2020.js"(exports2) {
|
|
7303
|
+
"use strict";
|
|
7304
|
+
init_cjs_shims();
|
|
7305
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
7306
|
+
var core_1 = require_core2();
|
|
7307
|
+
var validation_1 = require_validation();
|
|
7308
|
+
var applicator_1 = require_applicator();
|
|
7309
|
+
var dynamic_1 = require_dynamic();
|
|
7310
|
+
var next_1 = require_next();
|
|
7311
|
+
var unevaluated_1 = require_unevaluated();
|
|
7312
|
+
var format_1 = require_format2();
|
|
7313
|
+
var metadata_1 = require_metadata();
|
|
7314
|
+
var draft2020Vocabularies = [
|
|
7315
|
+
dynamic_1.default,
|
|
7316
|
+
core_1.default,
|
|
7317
|
+
validation_1.default,
|
|
7318
|
+
(0, applicator_1.default)(true),
|
|
7319
|
+
format_1.default,
|
|
7320
|
+
metadata_1.metadataVocabulary,
|
|
7321
|
+
metadata_1.contentVocabulary,
|
|
7322
|
+
next_1.default,
|
|
7323
|
+
unevaluated_1.default
|
|
7324
|
+
];
|
|
7325
|
+
exports2.default = draft2020Vocabularies;
|
|
7326
|
+
}
|
|
7327
|
+
});
|
|
7328
|
+
|
|
7329
|
+
// ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/refs/json-schema-2020-12/schema.json
|
|
7330
|
+
var require_schema = __commonJS({
|
|
7331
|
+
"../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/refs/json-schema-2020-12/schema.json"(exports2, module2) {
|
|
7332
|
+
module2.exports = {
|
|
7333
|
+
$schema: "https://json-schema.org/draft/2020-12/schema",
|
|
7334
|
+
$id: "https://json-schema.org/draft/2020-12/schema",
|
|
7335
|
+
$vocabulary: {
|
|
7336
|
+
"https://json-schema.org/draft/2020-12/vocab/core": true,
|
|
7337
|
+
"https://json-schema.org/draft/2020-12/vocab/applicator": true,
|
|
7338
|
+
"https://json-schema.org/draft/2020-12/vocab/unevaluated": true,
|
|
7339
|
+
"https://json-schema.org/draft/2020-12/vocab/validation": true,
|
|
7340
|
+
"https://json-schema.org/draft/2020-12/vocab/meta-data": true,
|
|
7341
|
+
"https://json-schema.org/draft/2020-12/vocab/format-annotation": true,
|
|
7342
|
+
"https://json-schema.org/draft/2020-12/vocab/content": true
|
|
7343
|
+
},
|
|
7344
|
+
$dynamicAnchor: "meta",
|
|
7345
|
+
title: "Core and Validation specifications meta-schema",
|
|
7346
|
+
allOf: [
|
|
7347
|
+
{ $ref: "meta/core" },
|
|
7348
|
+
{ $ref: "meta/applicator" },
|
|
7349
|
+
{ $ref: "meta/unevaluated" },
|
|
7350
|
+
{ $ref: "meta/validation" },
|
|
7351
|
+
{ $ref: "meta/meta-data" },
|
|
7352
|
+
{ $ref: "meta/format-annotation" },
|
|
7353
|
+
{ $ref: "meta/content" }
|
|
7354
|
+
],
|
|
7355
|
+
type: ["object", "boolean"],
|
|
7356
|
+
$comment: "This meta-schema also defines keywords that have appeared in previous drafts in order to prevent incompatible extensions as they remain in common use.",
|
|
7357
|
+
properties: {
|
|
7358
|
+
definitions: {
|
|
7359
|
+
$comment: '"definitions" has been replaced by "$defs".',
|
|
7360
|
+
type: "object",
|
|
7361
|
+
additionalProperties: { $dynamicRef: "#meta" },
|
|
7362
|
+
deprecated: true,
|
|
7363
|
+
default: {}
|
|
7364
|
+
},
|
|
7365
|
+
dependencies: {
|
|
7366
|
+
$comment: '"dependencies" has been split and replaced by "dependentSchemas" and "dependentRequired" in order to serve their differing semantics.',
|
|
7367
|
+
type: "object",
|
|
7368
|
+
additionalProperties: {
|
|
7369
|
+
anyOf: [{ $dynamicRef: "#meta" }, { $ref: "meta/validation#/$defs/stringArray" }]
|
|
7370
|
+
},
|
|
7371
|
+
deprecated: true,
|
|
7372
|
+
default: {}
|
|
7373
|
+
},
|
|
7374
|
+
$recursiveAnchor: {
|
|
7375
|
+
$comment: '"$recursiveAnchor" has been replaced by "$dynamicAnchor".',
|
|
7376
|
+
$ref: "meta/core#/$defs/anchorString",
|
|
7377
|
+
deprecated: true
|
|
7378
|
+
},
|
|
7379
|
+
$recursiveRef: {
|
|
7380
|
+
$comment: '"$recursiveRef" has been replaced by "$dynamicRef".',
|
|
7381
|
+
$ref: "meta/core#/$defs/uriReferenceString",
|
|
7382
|
+
deprecated: true
|
|
7383
|
+
}
|
|
7384
|
+
}
|
|
7385
|
+
};
|
|
7386
|
+
}
|
|
7387
|
+
});
|
|
7388
|
+
|
|
7389
|
+
// ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/refs/json-schema-2020-12/meta/applicator.json
|
|
7390
|
+
var require_applicator2 = __commonJS({
|
|
7391
|
+
"../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/refs/json-schema-2020-12/meta/applicator.json"(exports2, module2) {
|
|
7392
|
+
module2.exports = {
|
|
7393
|
+
$schema: "https://json-schema.org/draft/2020-12/schema",
|
|
7394
|
+
$id: "https://json-schema.org/draft/2020-12/meta/applicator",
|
|
7395
|
+
$vocabulary: {
|
|
7396
|
+
"https://json-schema.org/draft/2020-12/vocab/applicator": true
|
|
7397
|
+
},
|
|
7398
|
+
$dynamicAnchor: "meta",
|
|
7399
|
+
title: "Applicator vocabulary meta-schema",
|
|
7400
|
+
type: ["object", "boolean"],
|
|
7401
|
+
properties: {
|
|
7402
|
+
prefixItems: { $ref: "#/$defs/schemaArray" },
|
|
7403
|
+
items: { $dynamicRef: "#meta" },
|
|
7404
|
+
contains: { $dynamicRef: "#meta" },
|
|
7405
|
+
additionalProperties: { $dynamicRef: "#meta" },
|
|
7406
|
+
properties: {
|
|
7407
|
+
type: "object",
|
|
7408
|
+
additionalProperties: { $dynamicRef: "#meta" },
|
|
7409
|
+
default: {}
|
|
7410
|
+
},
|
|
7411
|
+
patternProperties: {
|
|
7412
|
+
type: "object",
|
|
7413
|
+
additionalProperties: { $dynamicRef: "#meta" },
|
|
7414
|
+
propertyNames: { format: "regex" },
|
|
7415
|
+
default: {}
|
|
7416
|
+
},
|
|
7417
|
+
dependentSchemas: {
|
|
7418
|
+
type: "object",
|
|
7419
|
+
additionalProperties: { $dynamicRef: "#meta" },
|
|
7420
|
+
default: {}
|
|
7421
|
+
},
|
|
7422
|
+
propertyNames: { $dynamicRef: "#meta" },
|
|
7423
|
+
if: { $dynamicRef: "#meta" },
|
|
7424
|
+
then: { $dynamicRef: "#meta" },
|
|
7425
|
+
else: { $dynamicRef: "#meta" },
|
|
7426
|
+
allOf: { $ref: "#/$defs/schemaArray" },
|
|
7427
|
+
anyOf: { $ref: "#/$defs/schemaArray" },
|
|
7428
|
+
oneOf: { $ref: "#/$defs/schemaArray" },
|
|
7429
|
+
not: { $dynamicRef: "#meta" }
|
|
7430
|
+
},
|
|
7431
|
+
$defs: {
|
|
7432
|
+
schemaArray: {
|
|
7433
|
+
type: "array",
|
|
7434
|
+
minItems: 1,
|
|
7435
|
+
items: { $dynamicRef: "#meta" }
|
|
7436
|
+
}
|
|
7437
|
+
}
|
|
7438
|
+
};
|
|
7439
|
+
}
|
|
7440
|
+
});
|
|
7441
|
+
|
|
7442
|
+
// ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/refs/json-schema-2020-12/meta/unevaluated.json
|
|
7443
|
+
var require_unevaluated2 = __commonJS({
|
|
7444
|
+
"../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/refs/json-schema-2020-12/meta/unevaluated.json"(exports2, module2) {
|
|
7445
|
+
module2.exports = {
|
|
7446
|
+
$schema: "https://json-schema.org/draft/2020-12/schema",
|
|
7447
|
+
$id: "https://json-schema.org/draft/2020-12/meta/unevaluated",
|
|
7448
|
+
$vocabulary: {
|
|
7449
|
+
"https://json-schema.org/draft/2020-12/vocab/unevaluated": true
|
|
7450
|
+
},
|
|
7451
|
+
$dynamicAnchor: "meta",
|
|
7452
|
+
title: "Unevaluated applicator vocabulary meta-schema",
|
|
7453
|
+
type: ["object", "boolean"],
|
|
7454
|
+
properties: {
|
|
7455
|
+
unevaluatedItems: { $dynamicRef: "#meta" },
|
|
7456
|
+
unevaluatedProperties: { $dynamicRef: "#meta" }
|
|
7457
|
+
}
|
|
7458
|
+
};
|
|
7459
|
+
}
|
|
7460
|
+
});
|
|
7461
|
+
|
|
7462
|
+
// ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/refs/json-schema-2020-12/meta/content.json
|
|
7463
|
+
var require_content = __commonJS({
|
|
7464
|
+
"../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/refs/json-schema-2020-12/meta/content.json"(exports2, module2) {
|
|
7465
|
+
module2.exports = {
|
|
7466
|
+
$schema: "https://json-schema.org/draft/2020-12/schema",
|
|
7467
|
+
$id: "https://json-schema.org/draft/2020-12/meta/content",
|
|
7468
|
+
$vocabulary: {
|
|
7469
|
+
"https://json-schema.org/draft/2020-12/vocab/content": true
|
|
7470
|
+
},
|
|
7471
|
+
$dynamicAnchor: "meta",
|
|
7472
|
+
title: "Content vocabulary meta-schema",
|
|
7473
|
+
type: ["object", "boolean"],
|
|
7474
|
+
properties: {
|
|
7475
|
+
contentEncoding: { type: "string" },
|
|
7476
|
+
contentMediaType: { type: "string" },
|
|
7477
|
+
contentSchema: { $dynamicRef: "#meta" }
|
|
7478
|
+
}
|
|
7479
|
+
};
|
|
7480
|
+
}
|
|
7481
|
+
});
|
|
7482
|
+
|
|
7483
|
+
// ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/refs/json-schema-2020-12/meta/core.json
|
|
7484
|
+
var require_core3 = __commonJS({
|
|
7485
|
+
"../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/refs/json-schema-2020-12/meta/core.json"(exports2, module2) {
|
|
7486
|
+
module2.exports = {
|
|
7487
|
+
$schema: "https://json-schema.org/draft/2020-12/schema",
|
|
7488
|
+
$id: "https://json-schema.org/draft/2020-12/meta/core",
|
|
7489
|
+
$vocabulary: {
|
|
7490
|
+
"https://json-schema.org/draft/2020-12/vocab/core": true
|
|
7491
|
+
},
|
|
7492
|
+
$dynamicAnchor: "meta",
|
|
7493
|
+
title: "Core vocabulary meta-schema",
|
|
7494
|
+
type: ["object", "boolean"],
|
|
7495
|
+
properties: {
|
|
7496
|
+
$id: {
|
|
7497
|
+
$ref: "#/$defs/uriReferenceString",
|
|
7498
|
+
$comment: "Non-empty fragments not allowed.",
|
|
7499
|
+
pattern: "^[^#]*#?$"
|
|
7500
|
+
},
|
|
7501
|
+
$schema: { $ref: "#/$defs/uriString" },
|
|
7502
|
+
$ref: { $ref: "#/$defs/uriReferenceString" },
|
|
7503
|
+
$anchor: { $ref: "#/$defs/anchorString" },
|
|
7504
|
+
$dynamicRef: { $ref: "#/$defs/uriReferenceString" },
|
|
7505
|
+
$dynamicAnchor: { $ref: "#/$defs/anchorString" },
|
|
7506
|
+
$vocabulary: {
|
|
7507
|
+
type: "object",
|
|
7508
|
+
propertyNames: { $ref: "#/$defs/uriString" },
|
|
7509
|
+
additionalProperties: {
|
|
7510
|
+
type: "boolean"
|
|
7511
|
+
}
|
|
7512
|
+
},
|
|
7513
|
+
$comment: {
|
|
7514
|
+
type: "string"
|
|
7515
|
+
},
|
|
7516
|
+
$defs: {
|
|
7517
|
+
type: "object",
|
|
7518
|
+
additionalProperties: { $dynamicRef: "#meta" }
|
|
7519
|
+
}
|
|
7520
|
+
},
|
|
7521
|
+
$defs: {
|
|
7522
|
+
anchorString: {
|
|
7523
|
+
type: "string",
|
|
7524
|
+
pattern: "^[A-Za-z_][-A-Za-z0-9._]*$"
|
|
7525
|
+
},
|
|
7526
|
+
uriString: {
|
|
7527
|
+
type: "string",
|
|
7528
|
+
format: "uri"
|
|
7529
|
+
},
|
|
7530
|
+
uriReferenceString: {
|
|
7531
|
+
type: "string",
|
|
7532
|
+
format: "uri-reference"
|
|
7533
|
+
}
|
|
7534
|
+
}
|
|
7535
|
+
};
|
|
7536
|
+
}
|
|
7537
|
+
});
|
|
7538
|
+
|
|
7539
|
+
// ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/refs/json-schema-2020-12/meta/format-annotation.json
|
|
7540
|
+
var require_format_annotation = __commonJS({
|
|
7541
|
+
"../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/refs/json-schema-2020-12/meta/format-annotation.json"(exports2, module2) {
|
|
7542
|
+
module2.exports = {
|
|
7543
|
+
$schema: "https://json-schema.org/draft/2020-12/schema",
|
|
7544
|
+
$id: "https://json-schema.org/draft/2020-12/meta/format-annotation",
|
|
7545
|
+
$vocabulary: {
|
|
7546
|
+
"https://json-schema.org/draft/2020-12/vocab/format-annotation": true
|
|
7547
|
+
},
|
|
7548
|
+
$dynamicAnchor: "meta",
|
|
7549
|
+
title: "Format vocabulary meta-schema for annotation results",
|
|
7550
|
+
type: ["object", "boolean"],
|
|
7551
|
+
properties: {
|
|
7552
|
+
format: { type: "string" }
|
|
7553
|
+
}
|
|
7554
|
+
};
|
|
7555
|
+
}
|
|
7556
|
+
});
|
|
7557
|
+
|
|
7558
|
+
// ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/refs/json-schema-2020-12/meta/meta-data.json
|
|
7559
|
+
var require_meta_data = __commonJS({
|
|
7560
|
+
"../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/refs/json-schema-2020-12/meta/meta-data.json"(exports2, module2) {
|
|
7561
|
+
module2.exports = {
|
|
7562
|
+
$schema: "https://json-schema.org/draft/2020-12/schema",
|
|
7563
|
+
$id: "https://json-schema.org/draft/2020-12/meta/meta-data",
|
|
7564
|
+
$vocabulary: {
|
|
7565
|
+
"https://json-schema.org/draft/2020-12/vocab/meta-data": true
|
|
7566
|
+
},
|
|
7567
|
+
$dynamicAnchor: "meta",
|
|
7568
|
+
title: "Meta-data vocabulary meta-schema",
|
|
7569
|
+
type: ["object", "boolean"],
|
|
7570
|
+
properties: {
|
|
7571
|
+
title: {
|
|
7572
|
+
type: "string"
|
|
7573
|
+
},
|
|
7574
|
+
description: {
|
|
7575
|
+
type: "string"
|
|
7576
|
+
},
|
|
7577
|
+
default: true,
|
|
7578
|
+
deprecated: {
|
|
7579
|
+
type: "boolean",
|
|
7580
|
+
default: false
|
|
7581
|
+
},
|
|
7582
|
+
readOnly: {
|
|
7583
|
+
type: "boolean",
|
|
7584
|
+
default: false
|
|
7585
|
+
},
|
|
7586
|
+
writeOnly: {
|
|
7587
|
+
type: "boolean",
|
|
7588
|
+
default: false
|
|
7589
|
+
},
|
|
7590
|
+
examples: {
|
|
7591
|
+
type: "array",
|
|
7592
|
+
items: true
|
|
7593
|
+
}
|
|
7594
|
+
}
|
|
7595
|
+
};
|
|
7596
|
+
}
|
|
7597
|
+
});
|
|
7598
|
+
|
|
7599
|
+
// ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/refs/json-schema-2020-12/meta/validation.json
|
|
7600
|
+
var require_validation2 = __commonJS({
|
|
7601
|
+
"../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/refs/json-schema-2020-12/meta/validation.json"(exports2, module2) {
|
|
7602
|
+
module2.exports = {
|
|
7603
|
+
$schema: "https://json-schema.org/draft/2020-12/schema",
|
|
7604
|
+
$id: "https://json-schema.org/draft/2020-12/meta/validation",
|
|
7605
|
+
$vocabulary: {
|
|
7606
|
+
"https://json-schema.org/draft/2020-12/vocab/validation": true
|
|
7607
|
+
},
|
|
7608
|
+
$dynamicAnchor: "meta",
|
|
7609
|
+
title: "Validation vocabulary meta-schema",
|
|
7610
|
+
type: ["object", "boolean"],
|
|
7611
|
+
properties: {
|
|
7612
|
+
type: {
|
|
7613
|
+
anyOf: [
|
|
7614
|
+
{ $ref: "#/$defs/simpleTypes" },
|
|
7615
|
+
{
|
|
7616
|
+
type: "array",
|
|
7617
|
+
items: { $ref: "#/$defs/simpleTypes" },
|
|
7618
|
+
minItems: 1,
|
|
7619
|
+
uniqueItems: true
|
|
7620
|
+
}
|
|
7621
|
+
]
|
|
7622
|
+
},
|
|
7623
|
+
const: true,
|
|
7624
|
+
enum: {
|
|
7625
|
+
type: "array",
|
|
7626
|
+
items: true
|
|
7627
|
+
},
|
|
7628
|
+
multipleOf: {
|
|
7629
|
+
type: "number",
|
|
7630
|
+
exclusiveMinimum: 0
|
|
7631
|
+
},
|
|
7632
|
+
maximum: {
|
|
7633
|
+
type: "number"
|
|
7634
|
+
},
|
|
7635
|
+
exclusiveMaximum: {
|
|
7636
|
+
type: "number"
|
|
7637
|
+
},
|
|
7638
|
+
minimum: {
|
|
7639
|
+
type: "number"
|
|
7640
|
+
},
|
|
7641
|
+
exclusiveMinimum: {
|
|
7642
|
+
type: "number"
|
|
7643
|
+
},
|
|
7644
|
+
maxLength: { $ref: "#/$defs/nonNegativeInteger" },
|
|
7645
|
+
minLength: { $ref: "#/$defs/nonNegativeIntegerDefault0" },
|
|
7646
|
+
pattern: {
|
|
7647
|
+
type: "string",
|
|
7648
|
+
format: "regex"
|
|
7649
|
+
},
|
|
7650
|
+
maxItems: { $ref: "#/$defs/nonNegativeInteger" },
|
|
7651
|
+
minItems: { $ref: "#/$defs/nonNegativeIntegerDefault0" },
|
|
7652
|
+
uniqueItems: {
|
|
7653
|
+
type: "boolean",
|
|
7654
|
+
default: false
|
|
7655
|
+
},
|
|
7656
|
+
maxContains: { $ref: "#/$defs/nonNegativeInteger" },
|
|
7657
|
+
minContains: {
|
|
7658
|
+
$ref: "#/$defs/nonNegativeInteger",
|
|
7659
|
+
default: 1
|
|
7660
|
+
},
|
|
7661
|
+
maxProperties: { $ref: "#/$defs/nonNegativeInteger" },
|
|
7662
|
+
minProperties: { $ref: "#/$defs/nonNegativeIntegerDefault0" },
|
|
7663
|
+
required: { $ref: "#/$defs/stringArray" },
|
|
7664
|
+
dependentRequired: {
|
|
7665
|
+
type: "object",
|
|
7666
|
+
additionalProperties: {
|
|
7667
|
+
$ref: "#/$defs/stringArray"
|
|
7668
|
+
}
|
|
7669
|
+
}
|
|
7670
|
+
},
|
|
7671
|
+
$defs: {
|
|
7672
|
+
nonNegativeInteger: {
|
|
7673
|
+
type: "integer",
|
|
7674
|
+
minimum: 0
|
|
7675
|
+
},
|
|
7676
|
+
nonNegativeIntegerDefault0: {
|
|
7677
|
+
$ref: "#/$defs/nonNegativeInteger",
|
|
7678
|
+
default: 0
|
|
7679
|
+
},
|
|
7680
|
+
simpleTypes: {
|
|
7681
|
+
enum: ["array", "boolean", "integer", "null", "number", "object", "string"]
|
|
7682
|
+
},
|
|
7683
|
+
stringArray: {
|
|
7684
|
+
type: "array",
|
|
7685
|
+
items: { type: "string" },
|
|
7686
|
+
uniqueItems: true,
|
|
7687
|
+
default: []
|
|
7688
|
+
}
|
|
7689
|
+
}
|
|
7690
|
+
};
|
|
7691
|
+
}
|
|
7692
|
+
});
|
|
7693
|
+
|
|
7694
|
+
// ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/refs/json-schema-2020-12/index.js
|
|
7695
|
+
var require_json_schema_2020_12 = __commonJS({
|
|
7696
|
+
"../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/refs/json-schema-2020-12/index.js"(exports2) {
|
|
7697
|
+
"use strict";
|
|
7698
|
+
init_cjs_shims();
|
|
7699
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
7700
|
+
var metaSchema = require_schema();
|
|
7701
|
+
var applicator = require_applicator2();
|
|
7702
|
+
var unevaluated = require_unevaluated2();
|
|
7703
|
+
var content = require_content();
|
|
7704
|
+
var core = require_core3();
|
|
7705
|
+
var format = require_format_annotation();
|
|
7706
|
+
var metadata = require_meta_data();
|
|
7707
|
+
var validation = require_validation2();
|
|
7708
|
+
var META_SUPPORT_DATA = ["/properties"];
|
|
7709
|
+
function addMetaSchema2020($data) {
|
|
7710
|
+
;
|
|
7711
|
+
[
|
|
7712
|
+
metaSchema,
|
|
7713
|
+
applicator,
|
|
7714
|
+
unevaluated,
|
|
7715
|
+
content,
|
|
7716
|
+
core,
|
|
7717
|
+
with$data(this, format),
|
|
7718
|
+
metadata,
|
|
7719
|
+
with$data(this, validation)
|
|
7720
|
+
].forEach((sch) => this.addMetaSchema(sch, void 0, false));
|
|
7721
|
+
return this;
|
|
7722
|
+
function with$data(ajv, sch) {
|
|
7723
|
+
return $data ? ajv.$dataMetaSchema(sch, META_SUPPORT_DATA) : sch;
|
|
7724
|
+
}
|
|
7725
|
+
}
|
|
7726
|
+
exports2.default = addMetaSchema2020;
|
|
7727
|
+
}
|
|
7728
|
+
});
|
|
7729
|
+
|
|
7730
|
+
// ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/2020.js
|
|
7731
|
+
var require__ = __commonJS({
|
|
7732
|
+
"../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/2020.js"(exports2, module2) {
|
|
7733
|
+
"use strict";
|
|
7734
|
+
init_cjs_shims();
|
|
7735
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
7736
|
+
exports2.MissingRefError = exports2.ValidationError = exports2.CodeGen = exports2.Name = exports2.nil = exports2.stringify = exports2.str = exports2._ = exports2.KeywordCxt = exports2.Ajv2020 = void 0;
|
|
7737
|
+
var core_1 = require_core();
|
|
7738
|
+
var draft2020_1 = require_draft2020();
|
|
7739
|
+
var discriminator_1 = require_discriminator();
|
|
7740
|
+
var json_schema_2020_12_1 = require_json_schema_2020_12();
|
|
7741
|
+
var META_SCHEMA_ID = "https://json-schema.org/draft/2020-12/schema";
|
|
7742
|
+
var Ajv20202 = class extends core_1.default {
|
|
7743
|
+
constructor(opts = {}) {
|
|
7744
|
+
super({
|
|
7745
|
+
...opts,
|
|
7746
|
+
dynamicRef: true,
|
|
7747
|
+
next: true,
|
|
7748
|
+
unevaluated: true
|
|
7749
|
+
});
|
|
7750
|
+
}
|
|
7751
|
+
_addVocabularies() {
|
|
7752
|
+
super._addVocabularies();
|
|
7753
|
+
draft2020_1.default.forEach((v) => this.addVocabulary(v));
|
|
7754
|
+
if (this.opts.discriminator)
|
|
7755
|
+
this.addKeyword(discriminator_1.default);
|
|
7756
|
+
}
|
|
7757
|
+
_addDefaultMetaSchema() {
|
|
7758
|
+
super._addDefaultMetaSchema();
|
|
7759
|
+
const { $data, meta: meta3 } = this.opts;
|
|
7760
|
+
if (!meta3)
|
|
7761
|
+
return;
|
|
7762
|
+
json_schema_2020_12_1.default.call(this, $data);
|
|
7763
|
+
this.refs["http://json-schema.org/schema"] = META_SCHEMA_ID;
|
|
7764
|
+
}
|
|
7765
|
+
defaultMeta() {
|
|
7766
|
+
return this.opts.defaultMeta = super.defaultMeta() || (this.getSchema(META_SCHEMA_ID) ? META_SCHEMA_ID : void 0);
|
|
7767
|
+
}
|
|
7768
|
+
};
|
|
7769
|
+
exports2.Ajv2020 = Ajv20202;
|
|
7770
|
+
module2.exports = exports2 = Ajv20202;
|
|
7771
|
+
module2.exports.Ajv2020 = Ajv20202;
|
|
7772
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
7773
|
+
exports2.default = Ajv20202;
|
|
7774
|
+
var validate_1 = require_validate();
|
|
7775
|
+
Object.defineProperty(exports2, "KeywordCxt", { enumerable: true, get: function() {
|
|
7776
|
+
return validate_1.KeywordCxt;
|
|
7777
|
+
} });
|
|
7778
|
+
var codegen_1 = require_codegen();
|
|
7779
|
+
Object.defineProperty(exports2, "_", { enumerable: true, get: function() {
|
|
7780
|
+
return codegen_1._;
|
|
7781
|
+
} });
|
|
7782
|
+
Object.defineProperty(exports2, "str", { enumerable: true, get: function() {
|
|
7783
|
+
return codegen_1.str;
|
|
7784
|
+
} });
|
|
7785
|
+
Object.defineProperty(exports2, "stringify", { enumerable: true, get: function() {
|
|
7786
|
+
return codegen_1.stringify;
|
|
7787
|
+
} });
|
|
7788
|
+
Object.defineProperty(exports2, "nil", { enumerable: true, get: function() {
|
|
7789
|
+
return codegen_1.nil;
|
|
7790
|
+
} });
|
|
7791
|
+
Object.defineProperty(exports2, "Name", { enumerable: true, get: function() {
|
|
7792
|
+
return codegen_1.Name;
|
|
7793
|
+
} });
|
|
7794
|
+
Object.defineProperty(exports2, "CodeGen", { enumerable: true, get: function() {
|
|
7795
|
+
return codegen_1.CodeGen;
|
|
7796
|
+
} });
|
|
7797
|
+
var validation_error_1 = require_validation_error();
|
|
7798
|
+
Object.defineProperty(exports2, "ValidationError", { enumerable: true, get: function() {
|
|
7799
|
+
return validation_error_1.default;
|
|
7800
|
+
} });
|
|
7801
|
+
var ref_error_1 = require_ref_error();
|
|
7802
|
+
Object.defineProperty(exports2, "MissingRefError", { enumerable: true, get: function() {
|
|
7803
|
+
return ref_error_1.default;
|
|
7804
|
+
} });
|
|
7805
|
+
}
|
|
7806
|
+
});
|
|
7807
|
+
|
|
6969
7808
|
// ../../node_modules/.pnpm/ajv-formats@3.0.1_ajv@8.20.0/node_modules/ajv-formats/dist/formats.js
|
|
6970
7809
|
var require_formats = __commonJS({
|
|
6971
7810
|
"../../node_modules/.pnpm/ajv-formats@3.0.1_ajv@8.20.0/node_modules/ajv-formats/dist/formats.js"(exports2) {
|
|
@@ -9520,22 +10359,22 @@ var artifactName = injectedString(
|
|
|
9520
10359
|
true ? "hive-cli" : void 0
|
|
9521
10360
|
) || String(process.env.HIVE_CLI_ARTIFACT_NAME || "hive-cli").trim() || "hive-cli";
|
|
9522
10361
|
var packageVersion = injectedString(
|
|
9523
|
-
true ? "1.
|
|
10362
|
+
true ? "1.50.0" : void 0
|
|
9524
10363
|
) || String(process.env.HIVE_CLI_PACKAGE_VERSION || "").trim() || readPackageVersion();
|
|
9525
10364
|
var releaseVersion = injectedString(
|
|
9526
|
-
true ? "1.
|
|
10365
|
+
true ? "1.50.0" : void 0
|
|
9527
10366
|
) || String(process.env.HIVE_CLI_RELEASE_VERSION || "").trim() || packageVersion || "dev";
|
|
9528
10367
|
var releaseChannel = injectedString(
|
|
9529
10368
|
true ? "final" : void 0
|
|
9530
10369
|
) || String(process.env.HIVE_CLI_RELEASE_CHANNEL || "").trim() || (releaseVersion.includes("-rc.") ? "rc" : releaseVersion === "dev" ? "dev" : "final");
|
|
9531
10370
|
var buildCommit = injectedString(
|
|
9532
|
-
true ? "
|
|
10371
|
+
true ? "cd7d5e8e60e96457646c2d0c2becbc0e1a270dd7" : void 0
|
|
9533
10372
|
) || String(process.env.HIVE_CLI_BUILD_COMMIT || "").trim() || "unknown";
|
|
9534
10373
|
var buildTimestamp = injectedString(
|
|
9535
|
-
true ? "2026-10-
|
|
10374
|
+
true ? "2026-10-01T21:10:37Z" : void 0
|
|
9536
10375
|
) || String(process.env.HIVE_CLI_BUILD_TIMESTAMP || "").trim() || "unknown";
|
|
9537
10376
|
var ociRef = injectedString(
|
|
9538
|
-
true ? "registry.onstackit.cloud/senticor/hive-cli:1.
|
|
10377
|
+
true ? "registry.onstackit.cloud/senticor/hive-cli:1.50.0" : void 0
|
|
9539
10378
|
) || String(process.env.HIVE_CLI_OCI_REF || "").trim() || `registry.onstackit.cloud/senticor/${artifactName}:${releaseVersion}`;
|
|
9540
10379
|
var RELEASE_INFO = Object.freeze({
|
|
9541
10380
|
packageVersion,
|
|
@@ -28878,7 +29717,8 @@ var upgrade = defineCommand({
|
|
|
28878
29717
|
init_cjs_shims();
|
|
28879
29718
|
var import_node_fs14 = __toESM(require("fs"), 1);
|
|
28880
29719
|
var import_node_path13 = __toESM(require("path"), 1);
|
|
28881
|
-
var
|
|
29720
|
+
var import_ajv = __toESM(require_ajv(), 1);
|
|
29721
|
+
var import__ = __toESM(require__(), 1);
|
|
28882
29722
|
var ajvFormatsModule2 = __toESM(require_dist(), 1);
|
|
28883
29723
|
|
|
28884
29724
|
// src/lib/application-package.ts
|
|
@@ -29309,7 +30149,6 @@ function statMaybe(inputPath) {
|
|
|
29309
30149
|
}
|
|
29310
30150
|
|
|
29311
30151
|
// src/commands/data.ts
|
|
29312
|
-
var Ajv2 = ajvModule2.default ?? ajvModule2;
|
|
29313
30152
|
var addFormats2 = ajvFormatsModule2.default ?? ajvFormatsModule2;
|
|
29314
30153
|
function assertRemoteOk2(status2, data, action) {
|
|
29315
30154
|
if (status2 && status2 >= 200 && status2 < 300) return;
|
|
@@ -29499,8 +30338,41 @@ var recordArgs = withArgs({
|
|
|
29499
30338
|
recordIds: { type: "string", description: "Comma-separated record ids for bulk archive/unarchive" },
|
|
29500
30339
|
expectedSchemaVersion: { type: "string", description: "Optional optimistic-concurrency guard for archive/unarchive" },
|
|
29501
30340
|
schema: { type: "string", description: "Path to a JSON Schema file (for `record validate`)" },
|
|
29502
|
-
dataOnly: { type: "boolean", description: "Validate the record's `.data` instead of the whole file" }
|
|
29503
|
-
}
|
|
30341
|
+
dataOnly: { type: "boolean", description: "Validate the record's `.data` instead of the whole file" },
|
|
30342
|
+
filter: { type: "string", description: "Comma-separated registry filters as key=value pairs (for `record list`)" }
|
|
30343
|
+
});
|
|
30344
|
+
var RESERVED_RECORD_FILTERS = /* @__PURE__ */ new Set([
|
|
30345
|
+
"recordType",
|
|
30346
|
+
"schemaId",
|
|
30347
|
+
"missionId",
|
|
30348
|
+
"cellId",
|
|
30349
|
+
"domain",
|
|
30350
|
+
"includeInactive",
|
|
30351
|
+
"limit",
|
|
30352
|
+
"cursor",
|
|
30353
|
+
"offset",
|
|
30354
|
+
"projection"
|
|
30355
|
+
]);
|
|
30356
|
+
function parseRegisteredRecordFilters(raw) {
|
|
30357
|
+
if (raw === void 0 || raw === null || raw === "") return {};
|
|
30358
|
+
const out = {};
|
|
30359
|
+
for (const entry of String(raw).split(",")) {
|
|
30360
|
+
const separator = entry.indexOf("=");
|
|
30361
|
+
const key = separator < 0 ? "" : entry.slice(0, separator).trim();
|
|
30362
|
+
const value = separator < 0 ? "" : entry.slice(separator + 1).trim();
|
|
30363
|
+
if (!/^[A-Za-z][A-Za-z0-9_.-]*$/.test(key) || !value) {
|
|
30364
|
+
throw commandError("INVALID_FILTER", 2, "--filter must contain comma-separated key=value pairs");
|
|
30365
|
+
}
|
|
30366
|
+
if (RESERVED_RECORD_FILTERS.has(key)) {
|
|
30367
|
+
throw commandError("INVALID_FILTER", 2, `--filter ${key}=... conflicts with the dedicated --${key} flag`);
|
|
30368
|
+
}
|
|
30369
|
+
if (Object.hasOwn(out, key)) {
|
|
30370
|
+
throw commandError("INVALID_FILTER", 2, `--filter contains duplicate key: ${key}`);
|
|
30371
|
+
}
|
|
30372
|
+
out[key] = value;
|
|
30373
|
+
}
|
|
30374
|
+
return out;
|
|
30375
|
+
}
|
|
29504
30376
|
function optionalPositiveInt(args, key) {
|
|
29505
30377
|
const raw = args[key];
|
|
29506
30378
|
if (raw === void 0 || raw === null || raw === "") return void 0;
|
|
@@ -29541,13 +30413,14 @@ var record2 = defineCommand({
|
|
|
29541
30413
|
args: recordArgs,
|
|
29542
30414
|
async run({ args }) {
|
|
29543
30415
|
const { client, fmt } = ctx(args);
|
|
29544
|
-
const filters = pickFlags(args, ["recordType", "schemaId", "missionId", "cellId", "domain", "includeInactive", "limit"]);
|
|
30416
|
+
const filters = pickFlags(args, ["recordType", "schemaId", "missionId", "cellId", "domain", "includeInactive", "limit", "cursor", "offset", "projection"]);
|
|
29545
30417
|
if (args.type) {
|
|
29546
30418
|
if (filters.recordType && String(filters.recordType) !== String(args.type)) {
|
|
29547
30419
|
throw commandError("INVALID_FILTER", 2, "--type and --record-type/--recordType disagree; pass only one record type filter");
|
|
29548
30420
|
}
|
|
29549
30421
|
filters.recordType = args.type;
|
|
29550
30422
|
}
|
|
30423
|
+
Object.assign(filters, parseRegisteredRecordFilters(args.filter));
|
|
29551
30424
|
const qs = queryString(filters);
|
|
29552
30425
|
return output((await client.get(`/api/records${qs}`)).data, fmt);
|
|
29553
30426
|
}
|
|
@@ -29644,7 +30517,9 @@ var record2 = defineCommand({
|
|
|
29644
30517
|
const schema = readJsonFile(args.schema);
|
|
29645
30518
|
const fileContent = readJsonFile(args.file);
|
|
29646
30519
|
const payload = args.dataOnly && fileContent && typeof fileContent === "object" && "data" in fileContent ? fileContent.data : fileContent;
|
|
29647
|
-
const
|
|
30520
|
+
const dialect = schema !== null && typeof schema === "object" && "$schema" in schema ? String(schema.$schema) : "";
|
|
30521
|
+
const Validator = dialect.includes("2020-12") ? import__.Ajv2020 : import_ajv.Ajv;
|
|
30522
|
+
const ajv = new Validator({ allErrors: true, strict: false });
|
|
29648
30523
|
addFormats2(ajv);
|
|
29649
30524
|
const validateFn = ajv.compile(schema);
|
|
29650
30525
|
const valid = validateFn(payload);
|