@primitive.ai/prim 0.1.0-alpha.109 → 0.1.0-alpha.110
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{chunk-AIAYIXBJ.js → chunk-43ZKL27W.js} +1 -1
- package/dist/{chunk-LFZYNNQQ.js → chunk-5BLGBSDM.js} +1 -1
- package/dist/{chunk-QJOK2VOE.js → chunk-AOJ254C2.js} +1 -1
- package/dist/{chunk-D24AUSVP.js → chunk-CTRAJCPN.js} +25 -2
- package/dist/{chunk-RXD6LFA2.js → chunk-GA2RXPJL.js} +1 -1
- package/dist/{chunk-FDXDV2AT.js → chunk-HTRFPXMD.js} +3 -3
- package/dist/{chunk-YQFJUBNU.js → chunk-KQ4WBK5R.js} +1 -1
- package/dist/{chunk-GFJ4QIVR.js → chunk-UDBBJWQH.js} +458 -86
- package/dist/{chunk-EQYIPUFX.js → chunk-W4ZEPZLK.js} +1 -1
- package/dist/daemon/server.js +458 -86
- package/dist/hook-runtime/daemon/server.js +458 -86
- package/dist/hook-runtime/hooks/post-commit.js +458 -86
- package/dist/hook-runtime/hooks/post-rewrite.js +458 -86
- package/dist/hook-runtime/hooks/post-tool-use.js +458 -86
- package/dist/hook-runtime/hooks/pre-tool-use.js +770 -300
- package/dist/hook-runtime/hooks/prim-hook.js +458 -86
- package/dist/hook-runtime/hooks/session-start.js +458 -86
- package/dist/hook-runtime/index.js +458 -86
- package/dist/hooks/post-commit.js +3 -3
- package/dist/hooks/post-rewrite.js +3 -3
- package/dist/hooks/post-tool-use.js +9 -9
- package/dist/hooks/pre-tool-use.js +85 -11
- package/dist/hooks/prim-hook.js +8 -8
- package/dist/hooks/session-start.js +3 -3
- package/dist/index.js +4 -4
- package/package.json +2 -1
|
@@ -17081,7 +17081,7 @@ function validate57(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
17081
17081
|
return errors === 0;
|
|
17082
17082
|
}
|
|
17083
17083
|
validate57.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
|
|
17084
|
-
var schema107 = { "type": "object", "properties": { "protocolVersion": { "type": "number", "const": 3 }, "checkId": { "type": "string", "pattern": "^[A-Za-z0-9._:-]{1,128}$" }, "verdict": { "type": "string", "enum": ["allow", "warn", "ask", "block", "unavailable"] }, "reasonCode": { "type": "string" }, "message": { "type": "string" }, "conflicts": { "type": "array", "items": { "type": "object", "properties": { "decisionId": { "type": "string" }, "shortId": { "type": "string" } }, "required": ["decisionId"], "additionalProperties": {} } }, "bypassed": { "type": "array", "items": { "type": "object", "properties": { "decisionId": { "type": "string" }, "bypassId": { "type": "string" }, "shortId": { "type": "string" } }, "required": ["decisionId"], "additionalProperties": {} } }, "decisionDisclosures": { "minItems": 1, "maxItems": 16, "type": "array", "items": { "type": "object", "properties": { "decisionId": { "type": "string" }, "shortId": { "type": "string" }, "participation": { "type": "string", "enum": ["candidate", "reconcile_bypass"] } }, "required": ["decisionId", "shortId", "participation"], "additionalProperties": false } } }, "required": ["protocolVersion", "verdict", "reasonCode", "message", "conflicts", "bypassed"], "additionalProperties": {} };
|
|
17084
|
+
var schema107 = { "type": "object", "properties": { "protocolVersion": { "type": "number", "const": 3 }, "checkId": { "type": "string", "pattern": "^[A-Za-z0-9._:-]{1,128}$" }, "verdict": { "type": "string", "enum": ["allow", "warn", "ask", "block", "unavailable"] }, "reasonCode": { "type": "string" }, "message": { "type": "string" }, "conflicts": { "type": "array", "items": { "type": "object", "properties": { "decisionId": { "type": "string" }, "shortId": { "type": "string" }, "title": { "type": "string" } }, "required": ["decisionId"], "additionalProperties": {} } }, "bypassed": { "type": "array", "items": { "type": "object", "properties": { "decisionId": { "type": "string" }, "bypassId": { "type": "string" }, "shortId": { "type": "string" } }, "required": ["decisionId"], "additionalProperties": {} } }, "evaluationCoverage": { "type": "object", "properties": { "candidateCount": { "type": "integer", "minimum": 0, "maximum": 9007199254740991 }, "submittedCount": { "type": "integer", "minimum": 0, "maximum": 9007199254740991 }, "evaluatedCount": { "type": "integer", "minimum": 0, "maximum": 9007199254740991 }, "status": { "type": "string", "enum": ["completed", "partial", "unavailable", "not_run", "unknown"] }, "semanticBatchCount": { "type": "integer", "minimum": 0, "maximum": 9007199254740991 }, "completedSemanticBatchCount": { "type": "integer", "minimum": 0, "maximum": 9007199254740991 }, "selectionOmissions": { "type": "array", "items": { "type": "object", "properties": { "source": { "type": "string", "enum": ["exact_scope", "location_scope", "organization_scope", "candidate_scan", "candidate_limit", "bypass_scan"] }, "reason": { "type": "string", "enum": ["scan_limit", "candidate_limit", "bucket_limit"] }, "omittedCountLowerBound": { "type": "integer", "minimum": 0, "maximum": 9007199254740991 } }, "required": ["source", "reason", "omittedCountLowerBound"], "additionalProperties": false } }, "evidenceOmissions": { "type": "array", "items": { "type": "object", "properties": { "decisionId": { "type": "string" }, "reason": { "type": "string", "enum": ["prompt_budget", "batch_limit", "evaluation_failed", "evaluation_deadline"] } }, "required": ["decisionId", "reason"], "additionalProperties": false } } }, "required": ["candidateCount", "submittedCount", "evaluatedCount", "status", "semanticBatchCount", "completedSemanticBatchCount", "selectionOmissions", "evidenceOmissions"], "additionalProperties": false }, "decisionDisclosures": { "minItems": 1, "maxItems": 16, "type": "array", "items": { "type": "object", "properties": { "decisionId": { "type": "string" }, "shortId": { "type": "string" }, "participation": { "type": "string", "enum": ["candidate", "reconcile_bypass"] } }, "required": ["decisionId", "shortId", "participation"], "additionalProperties": false } } }, "required": ["protocolVersion", "verdict", "reasonCode", "message", "conflicts", "bypassed"], "additionalProperties": {} };
|
|
17085
17085
|
function validate58(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
17086
17086
|
;
|
|
17087
17087
|
let vErrors = null;
|
|
@@ -17212,6 +17212,18 @@ function validate58(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
17212
17212
|
} else {
|
|
17213
17213
|
var valid3 = true;
|
|
17214
17214
|
}
|
|
17215
|
+
if (valid3) {
|
|
17216
|
+
if (data6.title !== void 0) {
|
|
17217
|
+
const _errs22 = errors;
|
|
17218
|
+
if (typeof data6.title !== "string") {
|
|
17219
|
+
validate58.errors = [{ instancePath: instancePath + "/conflicts/" + i0 + "/title", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/PreflightResponseV3/properties/conflicts/items/properties/title/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
17220
|
+
return false;
|
|
17221
|
+
}
|
|
17222
|
+
var valid3 = _errs22 === errors;
|
|
17223
|
+
} else {
|
|
17224
|
+
var valid3 = true;
|
|
17225
|
+
}
|
|
17226
|
+
}
|
|
17215
17227
|
}
|
|
17216
17228
|
}
|
|
17217
17229
|
} else {
|
|
@@ -17235,51 +17247,51 @@ function validate58(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
17235
17247
|
}
|
|
17236
17248
|
if (valid1) {
|
|
17237
17249
|
if (data.bypassed !== void 0) {
|
|
17238
|
-
let
|
|
17239
|
-
const
|
|
17240
|
-
if (errors ===
|
|
17241
|
-
if (Array.isArray(
|
|
17250
|
+
let data10 = data.bypassed;
|
|
17251
|
+
const _errs24 = errors;
|
|
17252
|
+
if (errors === _errs24) {
|
|
17253
|
+
if (Array.isArray(data10)) {
|
|
17242
17254
|
var valid4 = true;
|
|
17243
|
-
const len1 =
|
|
17255
|
+
const len1 = data10.length;
|
|
17244
17256
|
for (let i1 = 0; i1 < len1; i1++) {
|
|
17245
|
-
let
|
|
17246
|
-
const
|
|
17247
|
-
if (errors ===
|
|
17248
|
-
if (
|
|
17257
|
+
let data11 = data10[i1];
|
|
17258
|
+
const _errs26 = errors;
|
|
17259
|
+
if (errors === _errs26) {
|
|
17260
|
+
if (data11 && typeof data11 == "object" && !Array.isArray(data11)) {
|
|
17249
17261
|
let missing2;
|
|
17250
|
-
if (
|
|
17262
|
+
if (data11.decisionId === void 0 && (missing2 = "decisionId")) {
|
|
17251
17263
|
validate58.errors = [{ instancePath: instancePath + "/bypassed/" + i1, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/PreflightResponseV3/properties/bypassed/items/required", keyword: "required", params: { missingProperty: missing2 }, message: "must have required property '" + missing2 + "'" }];
|
|
17252
17264
|
return false;
|
|
17253
17265
|
} else {
|
|
17254
|
-
if (
|
|
17255
|
-
const
|
|
17256
|
-
if (typeof
|
|
17266
|
+
if (data11.decisionId !== void 0) {
|
|
17267
|
+
const _errs29 = errors;
|
|
17268
|
+
if (typeof data11.decisionId !== "string") {
|
|
17257
17269
|
validate58.errors = [{ instancePath: instancePath + "/bypassed/" + i1 + "/decisionId", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/PreflightResponseV3/properties/bypassed/items/properties/decisionId/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
17258
17270
|
return false;
|
|
17259
17271
|
}
|
|
17260
|
-
var valid5 =
|
|
17272
|
+
var valid5 = _errs29 === errors;
|
|
17261
17273
|
} else {
|
|
17262
17274
|
var valid5 = true;
|
|
17263
17275
|
}
|
|
17264
17276
|
if (valid5) {
|
|
17265
|
-
if (
|
|
17266
|
-
const
|
|
17267
|
-
if (typeof
|
|
17277
|
+
if (data11.bypassId !== void 0) {
|
|
17278
|
+
const _errs31 = errors;
|
|
17279
|
+
if (typeof data11.bypassId !== "string") {
|
|
17268
17280
|
validate58.errors = [{ instancePath: instancePath + "/bypassed/" + i1 + "/bypassId", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/PreflightResponseV3/properties/bypassed/items/properties/bypassId/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
17269
17281
|
return false;
|
|
17270
17282
|
}
|
|
17271
|
-
var valid5 =
|
|
17283
|
+
var valid5 = _errs31 === errors;
|
|
17272
17284
|
} else {
|
|
17273
17285
|
var valid5 = true;
|
|
17274
17286
|
}
|
|
17275
17287
|
if (valid5) {
|
|
17276
|
-
if (
|
|
17277
|
-
const
|
|
17278
|
-
if (typeof
|
|
17288
|
+
if (data11.shortId !== void 0) {
|
|
17289
|
+
const _errs33 = errors;
|
|
17290
|
+
if (typeof data11.shortId !== "string") {
|
|
17279
17291
|
validate58.errors = [{ instancePath: instancePath + "/bypassed/" + i1 + "/shortId", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/PreflightResponseV3/properties/bypassed/items/properties/shortId/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
17280
17292
|
return false;
|
|
17281
17293
|
}
|
|
17282
|
-
var valid5 =
|
|
17294
|
+
var valid5 = _errs33 === errors;
|
|
17283
17295
|
} else {
|
|
17284
17296
|
var valid5 = true;
|
|
17285
17297
|
}
|
|
@@ -17291,7 +17303,7 @@ function validate58(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
17291
17303
|
return false;
|
|
17292
17304
|
}
|
|
17293
17305
|
}
|
|
17294
|
-
var valid4 =
|
|
17306
|
+
var valid4 = _errs26 === errors;
|
|
17295
17307
|
if (!valid4) {
|
|
17296
17308
|
break;
|
|
17297
17309
|
}
|
|
@@ -17301,107 +17313,467 @@ function validate58(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
17301
17313
|
return false;
|
|
17302
17314
|
}
|
|
17303
17315
|
}
|
|
17304
|
-
var valid1 =
|
|
17316
|
+
var valid1 = _errs24 === errors;
|
|
17305
17317
|
} else {
|
|
17306
17318
|
var valid1 = true;
|
|
17307
17319
|
}
|
|
17308
17320
|
if (valid1) {
|
|
17309
|
-
if (data.
|
|
17310
|
-
let
|
|
17311
|
-
const
|
|
17312
|
-
if (errors ===
|
|
17313
|
-
if (Array.isArray(
|
|
17314
|
-
|
|
17315
|
-
|
|
17321
|
+
if (data.evaluationCoverage !== void 0) {
|
|
17322
|
+
let data15 = data.evaluationCoverage;
|
|
17323
|
+
const _errs35 = errors;
|
|
17324
|
+
if (errors === _errs35) {
|
|
17325
|
+
if (data15 && typeof data15 == "object" && !Array.isArray(data15)) {
|
|
17326
|
+
let missing3;
|
|
17327
|
+
if (data15.candidateCount === void 0 && (missing3 = "candidateCount") || data15.submittedCount === void 0 && (missing3 = "submittedCount") || data15.evaluatedCount === void 0 && (missing3 = "evaluatedCount") || data15.status === void 0 && (missing3 = "status") || data15.semanticBatchCount === void 0 && (missing3 = "semanticBatchCount") || data15.completedSemanticBatchCount === void 0 && (missing3 = "completedSemanticBatchCount") || data15.selectionOmissions === void 0 && (missing3 = "selectionOmissions") || data15.evidenceOmissions === void 0 && (missing3 = "evidenceOmissions")) {
|
|
17328
|
+
validate58.errors = [{ instancePath: instancePath + "/evaluationCoverage", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/PreflightResponseV3/properties/evaluationCoverage/required", keyword: "required", params: { missingProperty: missing3 }, message: "must have required property '" + missing3 + "'" }];
|
|
17316
17329
|
return false;
|
|
17317
17330
|
} else {
|
|
17318
|
-
|
|
17319
|
-
|
|
17320
|
-
|
|
17321
|
-
|
|
17322
|
-
|
|
17323
|
-
|
|
17324
|
-
|
|
17325
|
-
|
|
17326
|
-
|
|
17327
|
-
|
|
17328
|
-
|
|
17329
|
-
|
|
17330
|
-
|
|
17331
|
-
|
|
17331
|
+
const _errs37 = errors;
|
|
17332
|
+
for (const key0 in data15) {
|
|
17333
|
+
if (!(key0 === "candidateCount" || key0 === "submittedCount" || key0 === "evaluatedCount" || key0 === "status" || key0 === "semanticBatchCount" || key0 === "completedSemanticBatchCount" || key0 === "selectionOmissions" || key0 === "evidenceOmissions")) {
|
|
17334
|
+
validate58.errors = [{ instancePath: instancePath + "/evaluationCoverage", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/PreflightResponseV3/properties/evaluationCoverage/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key0 }, message: "must NOT have additional properties" }];
|
|
17335
|
+
return false;
|
|
17336
|
+
break;
|
|
17337
|
+
}
|
|
17338
|
+
}
|
|
17339
|
+
if (_errs37 === errors) {
|
|
17340
|
+
if (data15.candidateCount !== void 0) {
|
|
17341
|
+
let data16 = data15.candidateCount;
|
|
17342
|
+
const _errs38 = errors;
|
|
17343
|
+
if (!(typeof data16 == "number" && (!(data16 % 1) && !isNaN(data16)) && isFinite(data16))) {
|
|
17344
|
+
validate58.errors = [{ instancePath: instancePath + "/evaluationCoverage/candidateCount", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/PreflightResponseV3/properties/evaluationCoverage/properties/candidateCount/type", keyword: "type", params: { type: "integer" }, message: "must be integer" }];
|
|
17345
|
+
return false;
|
|
17346
|
+
}
|
|
17347
|
+
if (errors === _errs38) {
|
|
17348
|
+
if (typeof data16 == "number" && isFinite(data16)) {
|
|
17349
|
+
if (data16 > 9007199254740991 || isNaN(data16)) {
|
|
17350
|
+
validate58.errors = [{ instancePath: instancePath + "/evaluationCoverage/candidateCount", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/PreflightResponseV3/properties/evaluationCoverage/properties/candidateCount/maximum", keyword: "maximum", params: { comparison: "<=", limit: 9007199254740991 }, message: "must be <= 9007199254740991" }];
|
|
17332
17351
|
return false;
|
|
17333
17352
|
} else {
|
|
17334
|
-
|
|
17335
|
-
|
|
17336
|
-
|
|
17337
|
-
|
|
17353
|
+
if (data16 < 0 || isNaN(data16)) {
|
|
17354
|
+
validate58.errors = [{ instancePath: instancePath + "/evaluationCoverage/candidateCount", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/PreflightResponseV3/properties/evaluationCoverage/properties/candidateCount/minimum", keyword: "minimum", params: { comparison: ">=", limit: 0 }, message: "must be >= 0" }];
|
|
17355
|
+
return false;
|
|
17356
|
+
}
|
|
17357
|
+
}
|
|
17358
|
+
}
|
|
17359
|
+
}
|
|
17360
|
+
var valid6 = _errs38 === errors;
|
|
17361
|
+
} else {
|
|
17362
|
+
var valid6 = true;
|
|
17363
|
+
}
|
|
17364
|
+
if (valid6) {
|
|
17365
|
+
if (data15.submittedCount !== void 0) {
|
|
17366
|
+
let data17 = data15.submittedCount;
|
|
17367
|
+
const _errs40 = errors;
|
|
17368
|
+
if (!(typeof data17 == "number" && (!(data17 % 1) && !isNaN(data17)) && isFinite(data17))) {
|
|
17369
|
+
validate58.errors = [{ instancePath: instancePath + "/evaluationCoverage/submittedCount", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/PreflightResponseV3/properties/evaluationCoverage/properties/submittedCount/type", keyword: "type", params: { type: "integer" }, message: "must be integer" }];
|
|
17370
|
+
return false;
|
|
17371
|
+
}
|
|
17372
|
+
if (errors === _errs40) {
|
|
17373
|
+
if (typeof data17 == "number" && isFinite(data17)) {
|
|
17374
|
+
if (data17 > 9007199254740991 || isNaN(data17)) {
|
|
17375
|
+
validate58.errors = [{ instancePath: instancePath + "/evaluationCoverage/submittedCount", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/PreflightResponseV3/properties/evaluationCoverage/properties/submittedCount/maximum", keyword: "maximum", params: { comparison: "<=", limit: 9007199254740991 }, message: "must be <= 9007199254740991" }];
|
|
17376
|
+
return false;
|
|
17377
|
+
} else {
|
|
17378
|
+
if (data17 < 0 || isNaN(data17)) {
|
|
17379
|
+
validate58.errors = [{ instancePath: instancePath + "/evaluationCoverage/submittedCount", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/PreflightResponseV3/properties/evaluationCoverage/properties/submittedCount/minimum", keyword: "minimum", params: { comparison: ">=", limit: 0 }, message: "must be >= 0" }];
|
|
17338
17380
|
return false;
|
|
17339
|
-
break;
|
|
17340
17381
|
}
|
|
17341
17382
|
}
|
|
17342
|
-
|
|
17343
|
-
|
|
17344
|
-
|
|
17345
|
-
|
|
17346
|
-
|
|
17383
|
+
}
|
|
17384
|
+
}
|
|
17385
|
+
var valid6 = _errs40 === errors;
|
|
17386
|
+
} else {
|
|
17387
|
+
var valid6 = true;
|
|
17388
|
+
}
|
|
17389
|
+
if (valid6) {
|
|
17390
|
+
if (data15.evaluatedCount !== void 0) {
|
|
17391
|
+
let data18 = data15.evaluatedCount;
|
|
17392
|
+
const _errs42 = errors;
|
|
17393
|
+
if (!(typeof data18 == "number" && (!(data18 % 1) && !isNaN(data18)) && isFinite(data18))) {
|
|
17394
|
+
validate58.errors = [{ instancePath: instancePath + "/evaluationCoverage/evaluatedCount", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/PreflightResponseV3/properties/evaluationCoverage/properties/evaluatedCount/type", keyword: "type", params: { type: "integer" }, message: "must be integer" }];
|
|
17395
|
+
return false;
|
|
17396
|
+
}
|
|
17397
|
+
if (errors === _errs42) {
|
|
17398
|
+
if (typeof data18 == "number" && isFinite(data18)) {
|
|
17399
|
+
if (data18 > 9007199254740991 || isNaN(data18)) {
|
|
17400
|
+
validate58.errors = [{ instancePath: instancePath + "/evaluationCoverage/evaluatedCount", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/PreflightResponseV3/properties/evaluationCoverage/properties/evaluatedCount/maximum", keyword: "maximum", params: { comparison: "<=", limit: 9007199254740991 }, message: "must be <= 9007199254740991" }];
|
|
17401
|
+
return false;
|
|
17402
|
+
} else {
|
|
17403
|
+
if (data18 < 0 || isNaN(data18)) {
|
|
17404
|
+
validate58.errors = [{ instancePath: instancePath + "/evaluationCoverage/evaluatedCount", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/PreflightResponseV3/properties/evaluationCoverage/properties/evaluatedCount/minimum", keyword: "minimum", params: { comparison: ">=", limit: 0 }, message: "must be >= 0" }];
|
|
17347
17405
|
return false;
|
|
17348
17406
|
}
|
|
17349
|
-
var valid7 = _errs38 === errors;
|
|
17350
|
-
} else {
|
|
17351
|
-
var valid7 = true;
|
|
17352
17407
|
}
|
|
17353
|
-
|
|
17354
|
-
|
|
17355
|
-
|
|
17356
|
-
|
|
17357
|
-
|
|
17408
|
+
}
|
|
17409
|
+
}
|
|
17410
|
+
var valid6 = _errs42 === errors;
|
|
17411
|
+
} else {
|
|
17412
|
+
var valid6 = true;
|
|
17413
|
+
}
|
|
17414
|
+
if (valid6) {
|
|
17415
|
+
if (data15.status !== void 0) {
|
|
17416
|
+
let data19 = data15.status;
|
|
17417
|
+
const _errs44 = errors;
|
|
17418
|
+
if (typeof data19 !== "string") {
|
|
17419
|
+
validate58.errors = [{ instancePath: instancePath + "/evaluationCoverage/status", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/PreflightResponseV3/properties/evaluationCoverage/properties/status/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
17420
|
+
return false;
|
|
17421
|
+
}
|
|
17422
|
+
if (!(data19 === "completed" || data19 === "partial" || data19 === "unavailable" || data19 === "not_run" || data19 === "unknown")) {
|
|
17423
|
+
validate58.errors = [{ instancePath: instancePath + "/evaluationCoverage/status", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/PreflightResponseV3/properties/evaluationCoverage/properties/status/enum", keyword: "enum", params: { allowedValues: schema107.properties.evaluationCoverage.properties.status.enum }, message: "must be equal to one of the allowed values" }];
|
|
17424
|
+
return false;
|
|
17425
|
+
}
|
|
17426
|
+
var valid6 = _errs44 === errors;
|
|
17427
|
+
} else {
|
|
17428
|
+
var valid6 = true;
|
|
17429
|
+
}
|
|
17430
|
+
if (valid6) {
|
|
17431
|
+
if (data15.semanticBatchCount !== void 0) {
|
|
17432
|
+
let data20 = data15.semanticBatchCount;
|
|
17433
|
+
const _errs46 = errors;
|
|
17434
|
+
if (!(typeof data20 == "number" && (!(data20 % 1) && !isNaN(data20)) && isFinite(data20))) {
|
|
17435
|
+
validate58.errors = [{ instancePath: instancePath + "/evaluationCoverage/semanticBatchCount", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/PreflightResponseV3/properties/evaluationCoverage/properties/semanticBatchCount/type", keyword: "type", params: { type: "integer" }, message: "must be integer" }];
|
|
17436
|
+
return false;
|
|
17437
|
+
}
|
|
17438
|
+
if (errors === _errs46) {
|
|
17439
|
+
if (typeof data20 == "number" && isFinite(data20)) {
|
|
17440
|
+
if (data20 > 9007199254740991 || isNaN(data20)) {
|
|
17441
|
+
validate58.errors = [{ instancePath: instancePath + "/evaluationCoverage/semanticBatchCount", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/PreflightResponseV3/properties/evaluationCoverage/properties/semanticBatchCount/maximum", keyword: "maximum", params: { comparison: "<=", limit: 9007199254740991 }, message: "must be <= 9007199254740991" }];
|
|
17358
17442
|
return false;
|
|
17443
|
+
} else {
|
|
17444
|
+
if (data20 < 0 || isNaN(data20)) {
|
|
17445
|
+
validate58.errors = [{ instancePath: instancePath + "/evaluationCoverage/semanticBatchCount", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/PreflightResponseV3/properties/evaluationCoverage/properties/semanticBatchCount/minimum", keyword: "minimum", params: { comparison: ">=", limit: 0 }, message: "must be >= 0" }];
|
|
17446
|
+
return false;
|
|
17447
|
+
}
|
|
17359
17448
|
}
|
|
17360
|
-
var valid7 = _errs40 === errors;
|
|
17361
|
-
} else {
|
|
17362
|
-
var valid7 = true;
|
|
17363
17449
|
}
|
|
17364
|
-
|
|
17365
|
-
|
|
17366
|
-
|
|
17367
|
-
|
|
17368
|
-
|
|
17369
|
-
|
|
17450
|
+
}
|
|
17451
|
+
var valid6 = _errs46 === errors;
|
|
17452
|
+
} else {
|
|
17453
|
+
var valid6 = true;
|
|
17454
|
+
}
|
|
17455
|
+
if (valid6) {
|
|
17456
|
+
if (data15.completedSemanticBatchCount !== void 0) {
|
|
17457
|
+
let data21 = data15.completedSemanticBatchCount;
|
|
17458
|
+
const _errs48 = errors;
|
|
17459
|
+
if (!(typeof data21 == "number" && (!(data21 % 1) && !isNaN(data21)) && isFinite(data21))) {
|
|
17460
|
+
validate58.errors = [{ instancePath: instancePath + "/evaluationCoverage/completedSemanticBatchCount", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/PreflightResponseV3/properties/evaluationCoverage/properties/completedSemanticBatchCount/type", keyword: "type", params: { type: "integer" }, message: "must be integer" }];
|
|
17461
|
+
return false;
|
|
17462
|
+
}
|
|
17463
|
+
if (errors === _errs48) {
|
|
17464
|
+
if (typeof data21 == "number" && isFinite(data21)) {
|
|
17465
|
+
if (data21 > 9007199254740991 || isNaN(data21)) {
|
|
17466
|
+
validate58.errors = [{ instancePath: instancePath + "/evaluationCoverage/completedSemanticBatchCount", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/PreflightResponseV3/properties/evaluationCoverage/properties/completedSemanticBatchCount/maximum", keyword: "maximum", params: { comparison: "<=", limit: 9007199254740991 }, message: "must be <= 9007199254740991" }];
|
|
17370
17467
|
return false;
|
|
17468
|
+
} else {
|
|
17469
|
+
if (data21 < 0 || isNaN(data21)) {
|
|
17470
|
+
validate58.errors = [{ instancePath: instancePath + "/evaluationCoverage/completedSemanticBatchCount", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/PreflightResponseV3/properties/evaluationCoverage/properties/completedSemanticBatchCount/minimum", keyword: "minimum", params: { comparison: ">=", limit: 0 }, message: "must be >= 0" }];
|
|
17471
|
+
return false;
|
|
17472
|
+
}
|
|
17371
17473
|
}
|
|
17372
|
-
|
|
17373
|
-
|
|
17474
|
+
}
|
|
17475
|
+
}
|
|
17476
|
+
var valid6 = _errs48 === errors;
|
|
17477
|
+
} else {
|
|
17478
|
+
var valid6 = true;
|
|
17479
|
+
}
|
|
17480
|
+
if (valid6) {
|
|
17481
|
+
if (data15.selectionOmissions !== void 0) {
|
|
17482
|
+
let data22 = data15.selectionOmissions;
|
|
17483
|
+
const _errs50 = errors;
|
|
17484
|
+
if (errors === _errs50) {
|
|
17485
|
+
if (Array.isArray(data22)) {
|
|
17486
|
+
var valid7 = true;
|
|
17487
|
+
const len2 = data22.length;
|
|
17488
|
+
for (let i2 = 0; i2 < len2; i2++) {
|
|
17489
|
+
let data23 = data22[i2];
|
|
17490
|
+
const _errs52 = errors;
|
|
17491
|
+
if (errors === _errs52) {
|
|
17492
|
+
if (data23 && typeof data23 == "object" && !Array.isArray(data23)) {
|
|
17493
|
+
let missing4;
|
|
17494
|
+
if (data23.source === void 0 && (missing4 = "source") || data23.reason === void 0 && (missing4 = "reason") || data23.omittedCountLowerBound === void 0 && (missing4 = "omittedCountLowerBound")) {
|
|
17495
|
+
validate58.errors = [{ instancePath: instancePath + "/evaluationCoverage/selectionOmissions/" + i2, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/PreflightResponseV3/properties/evaluationCoverage/properties/selectionOmissions/items/required", keyword: "required", params: { missingProperty: missing4 }, message: "must have required property '" + missing4 + "'" }];
|
|
17496
|
+
return false;
|
|
17497
|
+
} else {
|
|
17498
|
+
const _errs54 = errors;
|
|
17499
|
+
for (const key1 in data23) {
|
|
17500
|
+
if (!(key1 === "source" || key1 === "reason" || key1 === "omittedCountLowerBound")) {
|
|
17501
|
+
validate58.errors = [{ instancePath: instancePath + "/evaluationCoverage/selectionOmissions/" + i2, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/PreflightResponseV3/properties/evaluationCoverage/properties/selectionOmissions/items/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key1 }, message: "must NOT have additional properties" }];
|
|
17502
|
+
return false;
|
|
17503
|
+
break;
|
|
17504
|
+
}
|
|
17505
|
+
}
|
|
17506
|
+
if (_errs54 === errors) {
|
|
17507
|
+
if (data23.source !== void 0) {
|
|
17508
|
+
let data24 = data23.source;
|
|
17509
|
+
const _errs55 = errors;
|
|
17510
|
+
if (typeof data24 !== "string") {
|
|
17511
|
+
validate58.errors = [{ instancePath: instancePath + "/evaluationCoverage/selectionOmissions/" + i2 + "/source", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/PreflightResponseV3/properties/evaluationCoverage/properties/selectionOmissions/items/properties/source/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
17512
|
+
return false;
|
|
17513
|
+
}
|
|
17514
|
+
if (!(data24 === "exact_scope" || data24 === "location_scope" || data24 === "organization_scope" || data24 === "candidate_scan" || data24 === "candidate_limit" || data24 === "bypass_scan")) {
|
|
17515
|
+
validate58.errors = [{ instancePath: instancePath + "/evaluationCoverage/selectionOmissions/" + i2 + "/source", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/PreflightResponseV3/properties/evaluationCoverage/properties/selectionOmissions/items/properties/source/enum", keyword: "enum", params: { allowedValues: schema107.properties.evaluationCoverage.properties.selectionOmissions.items.properties.source.enum }, message: "must be equal to one of the allowed values" }];
|
|
17516
|
+
return false;
|
|
17517
|
+
}
|
|
17518
|
+
var valid8 = _errs55 === errors;
|
|
17519
|
+
} else {
|
|
17520
|
+
var valid8 = true;
|
|
17521
|
+
}
|
|
17522
|
+
if (valid8) {
|
|
17523
|
+
if (data23.reason !== void 0) {
|
|
17524
|
+
let data25 = data23.reason;
|
|
17525
|
+
const _errs57 = errors;
|
|
17526
|
+
if (typeof data25 !== "string") {
|
|
17527
|
+
validate58.errors = [{ instancePath: instancePath + "/evaluationCoverage/selectionOmissions/" + i2 + "/reason", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/PreflightResponseV3/properties/evaluationCoverage/properties/selectionOmissions/items/properties/reason/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
17528
|
+
return false;
|
|
17529
|
+
}
|
|
17530
|
+
if (!(data25 === "scan_limit" || data25 === "candidate_limit" || data25 === "bucket_limit")) {
|
|
17531
|
+
validate58.errors = [{ instancePath: instancePath + "/evaluationCoverage/selectionOmissions/" + i2 + "/reason", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/PreflightResponseV3/properties/evaluationCoverage/properties/selectionOmissions/items/properties/reason/enum", keyword: "enum", params: { allowedValues: schema107.properties.evaluationCoverage.properties.selectionOmissions.items.properties.reason.enum }, message: "must be equal to one of the allowed values" }];
|
|
17532
|
+
return false;
|
|
17533
|
+
}
|
|
17534
|
+
var valid8 = _errs57 === errors;
|
|
17535
|
+
} else {
|
|
17536
|
+
var valid8 = true;
|
|
17537
|
+
}
|
|
17538
|
+
if (valid8) {
|
|
17539
|
+
if (data23.omittedCountLowerBound !== void 0) {
|
|
17540
|
+
let data26 = data23.omittedCountLowerBound;
|
|
17541
|
+
const _errs59 = errors;
|
|
17542
|
+
if (!(typeof data26 == "number" && (!(data26 % 1) && !isNaN(data26)) && isFinite(data26))) {
|
|
17543
|
+
validate58.errors = [{ instancePath: instancePath + "/evaluationCoverage/selectionOmissions/" + i2 + "/omittedCountLowerBound", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/PreflightResponseV3/properties/evaluationCoverage/properties/selectionOmissions/items/properties/omittedCountLowerBound/type", keyword: "type", params: { type: "integer" }, message: "must be integer" }];
|
|
17544
|
+
return false;
|
|
17545
|
+
}
|
|
17546
|
+
if (errors === _errs59) {
|
|
17547
|
+
if (typeof data26 == "number" && isFinite(data26)) {
|
|
17548
|
+
if (data26 > 9007199254740991 || isNaN(data26)) {
|
|
17549
|
+
validate58.errors = [{ instancePath: instancePath + "/evaluationCoverage/selectionOmissions/" + i2 + "/omittedCountLowerBound", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/PreflightResponseV3/properties/evaluationCoverage/properties/selectionOmissions/items/properties/omittedCountLowerBound/maximum", keyword: "maximum", params: { comparison: "<=", limit: 9007199254740991 }, message: "must be <= 9007199254740991" }];
|
|
17550
|
+
return false;
|
|
17551
|
+
} else {
|
|
17552
|
+
if (data26 < 0 || isNaN(data26)) {
|
|
17553
|
+
validate58.errors = [{ instancePath: instancePath + "/evaluationCoverage/selectionOmissions/" + i2 + "/omittedCountLowerBound", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/PreflightResponseV3/properties/evaluationCoverage/properties/selectionOmissions/items/properties/omittedCountLowerBound/minimum", keyword: "minimum", params: { comparison: ">=", limit: 0 }, message: "must be >= 0" }];
|
|
17554
|
+
return false;
|
|
17555
|
+
}
|
|
17556
|
+
}
|
|
17557
|
+
}
|
|
17558
|
+
}
|
|
17559
|
+
var valid8 = _errs59 === errors;
|
|
17560
|
+
} else {
|
|
17561
|
+
var valid8 = true;
|
|
17562
|
+
}
|
|
17563
|
+
}
|
|
17564
|
+
}
|
|
17565
|
+
}
|
|
17566
|
+
}
|
|
17567
|
+
} else {
|
|
17568
|
+
validate58.errors = [{ instancePath: instancePath + "/evaluationCoverage/selectionOmissions/" + i2, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/PreflightResponseV3/properties/evaluationCoverage/properties/selectionOmissions/items/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
|
|
17569
|
+
return false;
|
|
17570
|
+
}
|
|
17571
|
+
}
|
|
17572
|
+
var valid7 = _errs52 === errors;
|
|
17573
|
+
if (!valid7) {
|
|
17574
|
+
break;
|
|
17575
|
+
}
|
|
17576
|
+
}
|
|
17577
|
+
} else {
|
|
17578
|
+
validate58.errors = [{ instancePath: instancePath + "/evaluationCoverage/selectionOmissions", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/PreflightResponseV3/properties/evaluationCoverage/properties/selectionOmissions/type", keyword: "type", params: { type: "array" }, message: "must be array" }];
|
|
17374
17579
|
return false;
|
|
17375
17580
|
}
|
|
17376
|
-
|
|
17581
|
+
}
|
|
17582
|
+
var valid6 = _errs50 === errors;
|
|
17583
|
+
} else {
|
|
17584
|
+
var valid6 = true;
|
|
17585
|
+
}
|
|
17586
|
+
if (valid6) {
|
|
17587
|
+
if (data15.evidenceOmissions !== void 0) {
|
|
17588
|
+
let data27 = data15.evidenceOmissions;
|
|
17589
|
+
const _errs61 = errors;
|
|
17590
|
+
if (errors === _errs61) {
|
|
17591
|
+
if (Array.isArray(data27)) {
|
|
17592
|
+
var valid9 = true;
|
|
17593
|
+
const len3 = data27.length;
|
|
17594
|
+
for (let i3 = 0; i3 < len3; i3++) {
|
|
17595
|
+
let data28 = data27[i3];
|
|
17596
|
+
const _errs63 = errors;
|
|
17597
|
+
if (errors === _errs63) {
|
|
17598
|
+
if (data28 && typeof data28 == "object" && !Array.isArray(data28)) {
|
|
17599
|
+
let missing5;
|
|
17600
|
+
if (data28.decisionId === void 0 && (missing5 = "decisionId") || data28.reason === void 0 && (missing5 = "reason")) {
|
|
17601
|
+
validate58.errors = [{ instancePath: instancePath + "/evaluationCoverage/evidenceOmissions/" + i3, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/PreflightResponseV3/properties/evaluationCoverage/properties/evidenceOmissions/items/required", keyword: "required", params: { missingProperty: missing5 }, message: "must have required property '" + missing5 + "'" }];
|
|
17602
|
+
return false;
|
|
17603
|
+
} else {
|
|
17604
|
+
const _errs65 = errors;
|
|
17605
|
+
for (const key2 in data28) {
|
|
17606
|
+
if (!(key2 === "decisionId" || key2 === "reason")) {
|
|
17607
|
+
validate58.errors = [{ instancePath: instancePath + "/evaluationCoverage/evidenceOmissions/" + i3, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/PreflightResponseV3/properties/evaluationCoverage/properties/evidenceOmissions/items/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key2 }, message: "must NOT have additional properties" }];
|
|
17608
|
+
return false;
|
|
17609
|
+
break;
|
|
17610
|
+
}
|
|
17611
|
+
}
|
|
17612
|
+
if (_errs65 === errors) {
|
|
17613
|
+
if (data28.decisionId !== void 0) {
|
|
17614
|
+
const _errs66 = errors;
|
|
17615
|
+
if (typeof data28.decisionId !== "string") {
|
|
17616
|
+
validate58.errors = [{ instancePath: instancePath + "/evaluationCoverage/evidenceOmissions/" + i3 + "/decisionId", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/PreflightResponseV3/properties/evaluationCoverage/properties/evidenceOmissions/items/properties/decisionId/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
17617
|
+
return false;
|
|
17618
|
+
}
|
|
17619
|
+
var valid10 = _errs66 === errors;
|
|
17620
|
+
} else {
|
|
17621
|
+
var valid10 = true;
|
|
17622
|
+
}
|
|
17623
|
+
if (valid10) {
|
|
17624
|
+
if (data28.reason !== void 0) {
|
|
17625
|
+
let data30 = data28.reason;
|
|
17626
|
+
const _errs68 = errors;
|
|
17627
|
+
if (typeof data30 !== "string") {
|
|
17628
|
+
validate58.errors = [{ instancePath: instancePath + "/evaluationCoverage/evidenceOmissions/" + i3 + "/reason", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/PreflightResponseV3/properties/evaluationCoverage/properties/evidenceOmissions/items/properties/reason/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
17629
|
+
return false;
|
|
17630
|
+
}
|
|
17631
|
+
if (!(data30 === "prompt_budget" || data30 === "batch_limit" || data30 === "evaluation_failed" || data30 === "evaluation_deadline")) {
|
|
17632
|
+
validate58.errors = [{ instancePath: instancePath + "/evaluationCoverage/evidenceOmissions/" + i3 + "/reason", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/PreflightResponseV3/properties/evaluationCoverage/properties/evidenceOmissions/items/properties/reason/enum", keyword: "enum", params: { allowedValues: schema107.properties.evaluationCoverage.properties.evidenceOmissions.items.properties.reason.enum }, message: "must be equal to one of the allowed values" }];
|
|
17633
|
+
return false;
|
|
17634
|
+
}
|
|
17635
|
+
var valid10 = _errs68 === errors;
|
|
17636
|
+
} else {
|
|
17637
|
+
var valid10 = true;
|
|
17638
|
+
}
|
|
17639
|
+
}
|
|
17640
|
+
}
|
|
17641
|
+
}
|
|
17642
|
+
} else {
|
|
17643
|
+
validate58.errors = [{ instancePath: instancePath + "/evaluationCoverage/evidenceOmissions/" + i3, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/PreflightResponseV3/properties/evaluationCoverage/properties/evidenceOmissions/items/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
|
|
17644
|
+
return false;
|
|
17645
|
+
}
|
|
17646
|
+
}
|
|
17647
|
+
var valid9 = _errs63 === errors;
|
|
17648
|
+
if (!valid9) {
|
|
17649
|
+
break;
|
|
17650
|
+
}
|
|
17651
|
+
}
|
|
17652
|
+
} else {
|
|
17653
|
+
validate58.errors = [{ instancePath: instancePath + "/evaluationCoverage/evidenceOmissions", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/PreflightResponseV3/properties/evaluationCoverage/properties/evidenceOmissions/type", keyword: "type", params: { type: "array" }, message: "must be array" }];
|
|
17654
|
+
return false;
|
|
17655
|
+
}
|
|
17656
|
+
}
|
|
17657
|
+
var valid6 = _errs61 === errors;
|
|
17377
17658
|
} else {
|
|
17378
|
-
var
|
|
17659
|
+
var valid6 = true;
|
|
17379
17660
|
}
|
|
17380
17661
|
}
|
|
17381
17662
|
}
|
|
17382
17663
|
}
|
|
17383
17664
|
}
|
|
17384
|
-
} else {
|
|
17385
|
-
validate58.errors = [{ instancePath: instancePath + "/decisionDisclosures/" + i2, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/PreflightResponseV3/properties/decisionDisclosures/items/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
|
|
17386
|
-
return false;
|
|
17387
17665
|
}
|
|
17388
17666
|
}
|
|
17389
|
-
var valid6 = _errs35 === errors;
|
|
17390
|
-
if (!valid6) {
|
|
17391
|
-
break;
|
|
17392
|
-
}
|
|
17393
17667
|
}
|
|
17394
17668
|
}
|
|
17395
17669
|
}
|
|
17396
17670
|
} else {
|
|
17397
|
-
validate58.errors = [{ instancePath: instancePath + "/
|
|
17671
|
+
validate58.errors = [{ instancePath: instancePath + "/evaluationCoverage", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/PreflightResponseV3/properties/evaluationCoverage/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
|
|
17398
17672
|
return false;
|
|
17399
17673
|
}
|
|
17400
17674
|
}
|
|
17401
|
-
var valid1 =
|
|
17675
|
+
var valid1 = _errs35 === errors;
|
|
17402
17676
|
} else {
|
|
17403
17677
|
var valid1 = true;
|
|
17404
17678
|
}
|
|
17679
|
+
if (valid1) {
|
|
17680
|
+
if (data.decisionDisclosures !== void 0) {
|
|
17681
|
+
let data31 = data.decisionDisclosures;
|
|
17682
|
+
const _errs70 = errors;
|
|
17683
|
+
if (errors === _errs70) {
|
|
17684
|
+
if (Array.isArray(data31)) {
|
|
17685
|
+
if (data31.length > 16) {
|
|
17686
|
+
validate58.errors = [{ instancePath: instancePath + "/decisionDisclosures", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/PreflightResponseV3/properties/decisionDisclosures/maxItems", keyword: "maxItems", params: { limit: 16 }, message: "must NOT have more than 16 items" }];
|
|
17687
|
+
return false;
|
|
17688
|
+
} else {
|
|
17689
|
+
if (data31.length < 1) {
|
|
17690
|
+
validate58.errors = [{ instancePath: instancePath + "/decisionDisclosures", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/PreflightResponseV3/properties/decisionDisclosures/minItems", keyword: "minItems", params: { limit: 1 }, message: "must NOT have fewer than 1 items" }];
|
|
17691
|
+
return false;
|
|
17692
|
+
} else {
|
|
17693
|
+
var valid11 = true;
|
|
17694
|
+
const len4 = data31.length;
|
|
17695
|
+
for (let i4 = 0; i4 < len4; i4++) {
|
|
17696
|
+
let data32 = data31[i4];
|
|
17697
|
+
const _errs72 = errors;
|
|
17698
|
+
if (errors === _errs72) {
|
|
17699
|
+
if (data32 && typeof data32 == "object" && !Array.isArray(data32)) {
|
|
17700
|
+
let missing6;
|
|
17701
|
+
if (data32.decisionId === void 0 && (missing6 = "decisionId") || data32.shortId === void 0 && (missing6 = "shortId") || data32.participation === void 0 && (missing6 = "participation")) {
|
|
17702
|
+
validate58.errors = [{ instancePath: instancePath + "/decisionDisclosures/" + i4, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/PreflightResponseV3/properties/decisionDisclosures/items/required", keyword: "required", params: { missingProperty: missing6 }, message: "must have required property '" + missing6 + "'" }];
|
|
17703
|
+
return false;
|
|
17704
|
+
} else {
|
|
17705
|
+
const _errs74 = errors;
|
|
17706
|
+
for (const key3 in data32) {
|
|
17707
|
+
if (!(key3 === "decisionId" || key3 === "shortId" || key3 === "participation")) {
|
|
17708
|
+
validate58.errors = [{ instancePath: instancePath + "/decisionDisclosures/" + i4, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/PreflightResponseV3/properties/decisionDisclosures/items/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key3 }, message: "must NOT have additional properties" }];
|
|
17709
|
+
return false;
|
|
17710
|
+
break;
|
|
17711
|
+
}
|
|
17712
|
+
}
|
|
17713
|
+
if (_errs74 === errors) {
|
|
17714
|
+
if (data32.decisionId !== void 0) {
|
|
17715
|
+
const _errs75 = errors;
|
|
17716
|
+
if (typeof data32.decisionId !== "string") {
|
|
17717
|
+
validate58.errors = [{ instancePath: instancePath + "/decisionDisclosures/" + i4 + "/decisionId", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/PreflightResponseV3/properties/decisionDisclosures/items/properties/decisionId/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
17718
|
+
return false;
|
|
17719
|
+
}
|
|
17720
|
+
var valid12 = _errs75 === errors;
|
|
17721
|
+
} else {
|
|
17722
|
+
var valid12 = true;
|
|
17723
|
+
}
|
|
17724
|
+
if (valid12) {
|
|
17725
|
+
if (data32.shortId !== void 0) {
|
|
17726
|
+
const _errs77 = errors;
|
|
17727
|
+
if (typeof data32.shortId !== "string") {
|
|
17728
|
+
validate58.errors = [{ instancePath: instancePath + "/decisionDisclosures/" + i4 + "/shortId", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/PreflightResponseV3/properties/decisionDisclosures/items/properties/shortId/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
17729
|
+
return false;
|
|
17730
|
+
}
|
|
17731
|
+
var valid12 = _errs77 === errors;
|
|
17732
|
+
} else {
|
|
17733
|
+
var valid12 = true;
|
|
17734
|
+
}
|
|
17735
|
+
if (valid12) {
|
|
17736
|
+
if (data32.participation !== void 0) {
|
|
17737
|
+
let data35 = data32.participation;
|
|
17738
|
+
const _errs79 = errors;
|
|
17739
|
+
if (typeof data35 !== "string") {
|
|
17740
|
+
validate58.errors = [{ instancePath: instancePath + "/decisionDisclosures/" + i4 + "/participation", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/PreflightResponseV3/properties/decisionDisclosures/items/properties/participation/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
17741
|
+
return false;
|
|
17742
|
+
}
|
|
17743
|
+
if (!(data35 === "candidate" || data35 === "reconcile_bypass")) {
|
|
17744
|
+
validate58.errors = [{ instancePath: instancePath + "/decisionDisclosures/" + i4 + "/participation", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/PreflightResponseV3/properties/decisionDisclosures/items/properties/participation/enum", keyword: "enum", params: { allowedValues: schema107.properties.decisionDisclosures.items.properties.participation.enum }, message: "must be equal to one of the allowed values" }];
|
|
17745
|
+
return false;
|
|
17746
|
+
}
|
|
17747
|
+
var valid12 = _errs79 === errors;
|
|
17748
|
+
} else {
|
|
17749
|
+
var valid12 = true;
|
|
17750
|
+
}
|
|
17751
|
+
}
|
|
17752
|
+
}
|
|
17753
|
+
}
|
|
17754
|
+
}
|
|
17755
|
+
} else {
|
|
17756
|
+
validate58.errors = [{ instancePath: instancePath + "/decisionDisclosures/" + i4, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/PreflightResponseV3/properties/decisionDisclosures/items/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
|
|
17757
|
+
return false;
|
|
17758
|
+
}
|
|
17759
|
+
}
|
|
17760
|
+
var valid11 = _errs72 === errors;
|
|
17761
|
+
if (!valid11) {
|
|
17762
|
+
break;
|
|
17763
|
+
}
|
|
17764
|
+
}
|
|
17765
|
+
}
|
|
17766
|
+
}
|
|
17767
|
+
} else {
|
|
17768
|
+
validate58.errors = [{ instancePath: instancePath + "/decisionDisclosures", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/PreflightResponseV3/properties/decisionDisclosures/type", keyword: "type", params: { type: "array" }, message: "must be array" }];
|
|
17769
|
+
return false;
|
|
17770
|
+
}
|
|
17771
|
+
}
|
|
17772
|
+
var valid1 = _errs70 === errors;
|
|
17773
|
+
} else {
|
|
17774
|
+
var valid1 = true;
|
|
17775
|
+
}
|
|
17776
|
+
}
|
|
17405
17777
|
}
|
|
17406
17778
|
}
|
|
17407
17779
|
}
|