@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
|
@@ -16254,7 +16254,7 @@ function validate57(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
16254
16254
|
return errors === 0;
|
|
16255
16255
|
}
|
|
16256
16256
|
validate57.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
|
|
16257
|
-
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": {} };
|
|
16257
|
+
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": {} };
|
|
16258
16258
|
function validate58(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
16259
16259
|
;
|
|
16260
16260
|
let vErrors = null;
|
|
@@ -16385,6 +16385,18 @@ function validate58(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
16385
16385
|
} else {
|
|
16386
16386
|
var valid3 = true;
|
|
16387
16387
|
}
|
|
16388
|
+
if (valid3) {
|
|
16389
|
+
if (data6.title !== void 0) {
|
|
16390
|
+
const _errs22 = errors;
|
|
16391
|
+
if (typeof data6.title !== "string") {
|
|
16392
|
+
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" }];
|
|
16393
|
+
return false;
|
|
16394
|
+
}
|
|
16395
|
+
var valid3 = _errs22 === errors;
|
|
16396
|
+
} else {
|
|
16397
|
+
var valid3 = true;
|
|
16398
|
+
}
|
|
16399
|
+
}
|
|
16388
16400
|
}
|
|
16389
16401
|
}
|
|
16390
16402
|
} else {
|
|
@@ -16408,51 +16420,51 @@ function validate58(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
16408
16420
|
}
|
|
16409
16421
|
if (valid1) {
|
|
16410
16422
|
if (data.bypassed !== void 0) {
|
|
16411
|
-
let
|
|
16412
|
-
const
|
|
16413
|
-
if (errors ===
|
|
16414
|
-
if (Array.isArray(
|
|
16423
|
+
let data10 = data.bypassed;
|
|
16424
|
+
const _errs24 = errors;
|
|
16425
|
+
if (errors === _errs24) {
|
|
16426
|
+
if (Array.isArray(data10)) {
|
|
16415
16427
|
var valid4 = true;
|
|
16416
|
-
const len1 =
|
|
16428
|
+
const len1 = data10.length;
|
|
16417
16429
|
for (let i1 = 0; i1 < len1; i1++) {
|
|
16418
|
-
let
|
|
16419
|
-
const
|
|
16420
|
-
if (errors ===
|
|
16421
|
-
if (
|
|
16430
|
+
let data11 = data10[i1];
|
|
16431
|
+
const _errs26 = errors;
|
|
16432
|
+
if (errors === _errs26) {
|
|
16433
|
+
if (data11 && typeof data11 == "object" && !Array.isArray(data11)) {
|
|
16422
16434
|
let missing2;
|
|
16423
|
-
if (
|
|
16435
|
+
if (data11.decisionId === void 0 && (missing2 = "decisionId")) {
|
|
16424
16436
|
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 + "'" }];
|
|
16425
16437
|
return false;
|
|
16426
16438
|
} else {
|
|
16427
|
-
if (
|
|
16428
|
-
const
|
|
16429
|
-
if (typeof
|
|
16439
|
+
if (data11.decisionId !== void 0) {
|
|
16440
|
+
const _errs29 = errors;
|
|
16441
|
+
if (typeof data11.decisionId !== "string") {
|
|
16430
16442
|
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" }];
|
|
16431
16443
|
return false;
|
|
16432
16444
|
}
|
|
16433
|
-
var valid5 =
|
|
16445
|
+
var valid5 = _errs29 === errors;
|
|
16434
16446
|
} else {
|
|
16435
16447
|
var valid5 = true;
|
|
16436
16448
|
}
|
|
16437
16449
|
if (valid5) {
|
|
16438
|
-
if (
|
|
16439
|
-
const
|
|
16440
|
-
if (typeof
|
|
16450
|
+
if (data11.bypassId !== void 0) {
|
|
16451
|
+
const _errs31 = errors;
|
|
16452
|
+
if (typeof data11.bypassId !== "string") {
|
|
16441
16453
|
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" }];
|
|
16442
16454
|
return false;
|
|
16443
16455
|
}
|
|
16444
|
-
var valid5 =
|
|
16456
|
+
var valid5 = _errs31 === errors;
|
|
16445
16457
|
} else {
|
|
16446
16458
|
var valid5 = true;
|
|
16447
16459
|
}
|
|
16448
16460
|
if (valid5) {
|
|
16449
|
-
if (
|
|
16450
|
-
const
|
|
16451
|
-
if (typeof
|
|
16461
|
+
if (data11.shortId !== void 0) {
|
|
16462
|
+
const _errs33 = errors;
|
|
16463
|
+
if (typeof data11.shortId !== "string") {
|
|
16452
16464
|
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" }];
|
|
16453
16465
|
return false;
|
|
16454
16466
|
}
|
|
16455
|
-
var valid5 =
|
|
16467
|
+
var valid5 = _errs33 === errors;
|
|
16456
16468
|
} else {
|
|
16457
16469
|
var valid5 = true;
|
|
16458
16470
|
}
|
|
@@ -16464,7 +16476,7 @@ function validate58(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
16464
16476
|
return false;
|
|
16465
16477
|
}
|
|
16466
16478
|
}
|
|
16467
|
-
var valid4 =
|
|
16479
|
+
var valid4 = _errs26 === errors;
|
|
16468
16480
|
if (!valid4) {
|
|
16469
16481
|
break;
|
|
16470
16482
|
}
|
|
@@ -16474,107 +16486,467 @@ function validate58(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
16474
16486
|
return false;
|
|
16475
16487
|
}
|
|
16476
16488
|
}
|
|
16477
|
-
var valid1 =
|
|
16489
|
+
var valid1 = _errs24 === errors;
|
|
16478
16490
|
} else {
|
|
16479
16491
|
var valid1 = true;
|
|
16480
16492
|
}
|
|
16481
16493
|
if (valid1) {
|
|
16482
|
-
if (data.
|
|
16483
|
-
let
|
|
16484
|
-
const
|
|
16485
|
-
if (errors ===
|
|
16486
|
-
if (Array.isArray(
|
|
16487
|
-
|
|
16488
|
-
|
|
16494
|
+
if (data.evaluationCoverage !== void 0) {
|
|
16495
|
+
let data15 = data.evaluationCoverage;
|
|
16496
|
+
const _errs35 = errors;
|
|
16497
|
+
if (errors === _errs35) {
|
|
16498
|
+
if (data15 && typeof data15 == "object" && !Array.isArray(data15)) {
|
|
16499
|
+
let missing3;
|
|
16500
|
+
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")) {
|
|
16501
|
+
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 + "'" }];
|
|
16489
16502
|
return false;
|
|
16490
16503
|
} else {
|
|
16491
|
-
|
|
16492
|
-
|
|
16493
|
-
|
|
16494
|
-
|
|
16495
|
-
|
|
16496
|
-
|
|
16497
|
-
|
|
16498
|
-
|
|
16499
|
-
|
|
16500
|
-
|
|
16501
|
-
|
|
16502
|
-
|
|
16503
|
-
|
|
16504
|
-
|
|
16504
|
+
const _errs37 = errors;
|
|
16505
|
+
for (const key0 in data15) {
|
|
16506
|
+
if (!(key0 === "candidateCount" || key0 === "submittedCount" || key0 === "evaluatedCount" || key0 === "status" || key0 === "semanticBatchCount" || key0 === "completedSemanticBatchCount" || key0 === "selectionOmissions" || key0 === "evidenceOmissions")) {
|
|
16507
|
+
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" }];
|
|
16508
|
+
return false;
|
|
16509
|
+
break;
|
|
16510
|
+
}
|
|
16511
|
+
}
|
|
16512
|
+
if (_errs37 === errors) {
|
|
16513
|
+
if (data15.candidateCount !== void 0) {
|
|
16514
|
+
let data16 = data15.candidateCount;
|
|
16515
|
+
const _errs38 = errors;
|
|
16516
|
+
if (!(typeof data16 == "number" && (!(data16 % 1) && !isNaN(data16)) && isFinite(data16))) {
|
|
16517
|
+
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" }];
|
|
16518
|
+
return false;
|
|
16519
|
+
}
|
|
16520
|
+
if (errors === _errs38) {
|
|
16521
|
+
if (typeof data16 == "number" && isFinite(data16)) {
|
|
16522
|
+
if (data16 > 9007199254740991 || isNaN(data16)) {
|
|
16523
|
+
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" }];
|
|
16505
16524
|
return false;
|
|
16506
16525
|
} else {
|
|
16507
|
-
|
|
16508
|
-
|
|
16509
|
-
|
|
16510
|
-
|
|
16526
|
+
if (data16 < 0 || isNaN(data16)) {
|
|
16527
|
+
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" }];
|
|
16528
|
+
return false;
|
|
16529
|
+
}
|
|
16530
|
+
}
|
|
16531
|
+
}
|
|
16532
|
+
}
|
|
16533
|
+
var valid6 = _errs38 === errors;
|
|
16534
|
+
} else {
|
|
16535
|
+
var valid6 = true;
|
|
16536
|
+
}
|
|
16537
|
+
if (valid6) {
|
|
16538
|
+
if (data15.submittedCount !== void 0) {
|
|
16539
|
+
let data17 = data15.submittedCount;
|
|
16540
|
+
const _errs40 = errors;
|
|
16541
|
+
if (!(typeof data17 == "number" && (!(data17 % 1) && !isNaN(data17)) && isFinite(data17))) {
|
|
16542
|
+
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" }];
|
|
16543
|
+
return false;
|
|
16544
|
+
}
|
|
16545
|
+
if (errors === _errs40) {
|
|
16546
|
+
if (typeof data17 == "number" && isFinite(data17)) {
|
|
16547
|
+
if (data17 > 9007199254740991 || isNaN(data17)) {
|
|
16548
|
+
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" }];
|
|
16549
|
+
return false;
|
|
16550
|
+
} else {
|
|
16551
|
+
if (data17 < 0 || isNaN(data17)) {
|
|
16552
|
+
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" }];
|
|
16511
16553
|
return false;
|
|
16512
|
-
break;
|
|
16513
16554
|
}
|
|
16514
16555
|
}
|
|
16515
|
-
|
|
16516
|
-
|
|
16517
|
-
|
|
16518
|
-
|
|
16519
|
-
|
|
16556
|
+
}
|
|
16557
|
+
}
|
|
16558
|
+
var valid6 = _errs40 === errors;
|
|
16559
|
+
} else {
|
|
16560
|
+
var valid6 = true;
|
|
16561
|
+
}
|
|
16562
|
+
if (valid6) {
|
|
16563
|
+
if (data15.evaluatedCount !== void 0) {
|
|
16564
|
+
let data18 = data15.evaluatedCount;
|
|
16565
|
+
const _errs42 = errors;
|
|
16566
|
+
if (!(typeof data18 == "number" && (!(data18 % 1) && !isNaN(data18)) && isFinite(data18))) {
|
|
16567
|
+
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" }];
|
|
16568
|
+
return false;
|
|
16569
|
+
}
|
|
16570
|
+
if (errors === _errs42) {
|
|
16571
|
+
if (typeof data18 == "number" && isFinite(data18)) {
|
|
16572
|
+
if (data18 > 9007199254740991 || isNaN(data18)) {
|
|
16573
|
+
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" }];
|
|
16574
|
+
return false;
|
|
16575
|
+
} else {
|
|
16576
|
+
if (data18 < 0 || isNaN(data18)) {
|
|
16577
|
+
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" }];
|
|
16520
16578
|
return false;
|
|
16521
16579
|
}
|
|
16522
|
-
var valid7 = _errs38 === errors;
|
|
16523
|
-
} else {
|
|
16524
|
-
var valid7 = true;
|
|
16525
16580
|
}
|
|
16526
|
-
|
|
16527
|
-
|
|
16528
|
-
|
|
16529
|
-
|
|
16530
|
-
|
|
16581
|
+
}
|
|
16582
|
+
}
|
|
16583
|
+
var valid6 = _errs42 === errors;
|
|
16584
|
+
} else {
|
|
16585
|
+
var valid6 = true;
|
|
16586
|
+
}
|
|
16587
|
+
if (valid6) {
|
|
16588
|
+
if (data15.status !== void 0) {
|
|
16589
|
+
let data19 = data15.status;
|
|
16590
|
+
const _errs44 = errors;
|
|
16591
|
+
if (typeof data19 !== "string") {
|
|
16592
|
+
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" }];
|
|
16593
|
+
return false;
|
|
16594
|
+
}
|
|
16595
|
+
if (!(data19 === "completed" || data19 === "partial" || data19 === "unavailable" || data19 === "not_run" || data19 === "unknown")) {
|
|
16596
|
+
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" }];
|
|
16597
|
+
return false;
|
|
16598
|
+
}
|
|
16599
|
+
var valid6 = _errs44 === errors;
|
|
16600
|
+
} else {
|
|
16601
|
+
var valid6 = true;
|
|
16602
|
+
}
|
|
16603
|
+
if (valid6) {
|
|
16604
|
+
if (data15.semanticBatchCount !== void 0) {
|
|
16605
|
+
let data20 = data15.semanticBatchCount;
|
|
16606
|
+
const _errs46 = errors;
|
|
16607
|
+
if (!(typeof data20 == "number" && (!(data20 % 1) && !isNaN(data20)) && isFinite(data20))) {
|
|
16608
|
+
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" }];
|
|
16609
|
+
return false;
|
|
16610
|
+
}
|
|
16611
|
+
if (errors === _errs46) {
|
|
16612
|
+
if (typeof data20 == "number" && isFinite(data20)) {
|
|
16613
|
+
if (data20 > 9007199254740991 || isNaN(data20)) {
|
|
16614
|
+
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" }];
|
|
16531
16615
|
return false;
|
|
16616
|
+
} else {
|
|
16617
|
+
if (data20 < 0 || isNaN(data20)) {
|
|
16618
|
+
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" }];
|
|
16619
|
+
return false;
|
|
16620
|
+
}
|
|
16532
16621
|
}
|
|
16533
|
-
var valid7 = _errs40 === errors;
|
|
16534
|
-
} else {
|
|
16535
|
-
var valid7 = true;
|
|
16536
16622
|
}
|
|
16537
|
-
|
|
16538
|
-
|
|
16539
|
-
|
|
16540
|
-
|
|
16541
|
-
|
|
16542
|
-
|
|
16623
|
+
}
|
|
16624
|
+
var valid6 = _errs46 === errors;
|
|
16625
|
+
} else {
|
|
16626
|
+
var valid6 = true;
|
|
16627
|
+
}
|
|
16628
|
+
if (valid6) {
|
|
16629
|
+
if (data15.completedSemanticBatchCount !== void 0) {
|
|
16630
|
+
let data21 = data15.completedSemanticBatchCount;
|
|
16631
|
+
const _errs48 = errors;
|
|
16632
|
+
if (!(typeof data21 == "number" && (!(data21 % 1) && !isNaN(data21)) && isFinite(data21))) {
|
|
16633
|
+
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" }];
|
|
16634
|
+
return false;
|
|
16635
|
+
}
|
|
16636
|
+
if (errors === _errs48) {
|
|
16637
|
+
if (typeof data21 == "number" && isFinite(data21)) {
|
|
16638
|
+
if (data21 > 9007199254740991 || isNaN(data21)) {
|
|
16639
|
+
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" }];
|
|
16543
16640
|
return false;
|
|
16641
|
+
} else {
|
|
16642
|
+
if (data21 < 0 || isNaN(data21)) {
|
|
16643
|
+
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" }];
|
|
16644
|
+
return false;
|
|
16645
|
+
}
|
|
16544
16646
|
}
|
|
16545
|
-
|
|
16546
|
-
|
|
16647
|
+
}
|
|
16648
|
+
}
|
|
16649
|
+
var valid6 = _errs48 === errors;
|
|
16650
|
+
} else {
|
|
16651
|
+
var valid6 = true;
|
|
16652
|
+
}
|
|
16653
|
+
if (valid6) {
|
|
16654
|
+
if (data15.selectionOmissions !== void 0) {
|
|
16655
|
+
let data22 = data15.selectionOmissions;
|
|
16656
|
+
const _errs50 = errors;
|
|
16657
|
+
if (errors === _errs50) {
|
|
16658
|
+
if (Array.isArray(data22)) {
|
|
16659
|
+
var valid7 = true;
|
|
16660
|
+
const len2 = data22.length;
|
|
16661
|
+
for (let i2 = 0; i2 < len2; i2++) {
|
|
16662
|
+
let data23 = data22[i2];
|
|
16663
|
+
const _errs52 = errors;
|
|
16664
|
+
if (errors === _errs52) {
|
|
16665
|
+
if (data23 && typeof data23 == "object" && !Array.isArray(data23)) {
|
|
16666
|
+
let missing4;
|
|
16667
|
+
if (data23.source === void 0 && (missing4 = "source") || data23.reason === void 0 && (missing4 = "reason") || data23.omittedCountLowerBound === void 0 && (missing4 = "omittedCountLowerBound")) {
|
|
16668
|
+
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 + "'" }];
|
|
16669
|
+
return false;
|
|
16670
|
+
} else {
|
|
16671
|
+
const _errs54 = errors;
|
|
16672
|
+
for (const key1 in data23) {
|
|
16673
|
+
if (!(key1 === "source" || key1 === "reason" || key1 === "omittedCountLowerBound")) {
|
|
16674
|
+
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" }];
|
|
16675
|
+
return false;
|
|
16676
|
+
break;
|
|
16677
|
+
}
|
|
16678
|
+
}
|
|
16679
|
+
if (_errs54 === errors) {
|
|
16680
|
+
if (data23.source !== void 0) {
|
|
16681
|
+
let data24 = data23.source;
|
|
16682
|
+
const _errs55 = errors;
|
|
16683
|
+
if (typeof data24 !== "string") {
|
|
16684
|
+
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" }];
|
|
16685
|
+
return false;
|
|
16686
|
+
}
|
|
16687
|
+
if (!(data24 === "exact_scope" || data24 === "location_scope" || data24 === "organization_scope" || data24 === "candidate_scan" || data24 === "candidate_limit" || data24 === "bypass_scan")) {
|
|
16688
|
+
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" }];
|
|
16689
|
+
return false;
|
|
16690
|
+
}
|
|
16691
|
+
var valid8 = _errs55 === errors;
|
|
16692
|
+
} else {
|
|
16693
|
+
var valid8 = true;
|
|
16694
|
+
}
|
|
16695
|
+
if (valid8) {
|
|
16696
|
+
if (data23.reason !== void 0) {
|
|
16697
|
+
let data25 = data23.reason;
|
|
16698
|
+
const _errs57 = errors;
|
|
16699
|
+
if (typeof data25 !== "string") {
|
|
16700
|
+
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" }];
|
|
16701
|
+
return false;
|
|
16702
|
+
}
|
|
16703
|
+
if (!(data25 === "scan_limit" || data25 === "candidate_limit" || data25 === "bucket_limit")) {
|
|
16704
|
+
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" }];
|
|
16705
|
+
return false;
|
|
16706
|
+
}
|
|
16707
|
+
var valid8 = _errs57 === errors;
|
|
16708
|
+
} else {
|
|
16709
|
+
var valid8 = true;
|
|
16710
|
+
}
|
|
16711
|
+
if (valid8) {
|
|
16712
|
+
if (data23.omittedCountLowerBound !== void 0) {
|
|
16713
|
+
let data26 = data23.omittedCountLowerBound;
|
|
16714
|
+
const _errs59 = errors;
|
|
16715
|
+
if (!(typeof data26 == "number" && (!(data26 % 1) && !isNaN(data26)) && isFinite(data26))) {
|
|
16716
|
+
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" }];
|
|
16717
|
+
return false;
|
|
16718
|
+
}
|
|
16719
|
+
if (errors === _errs59) {
|
|
16720
|
+
if (typeof data26 == "number" && isFinite(data26)) {
|
|
16721
|
+
if (data26 > 9007199254740991 || isNaN(data26)) {
|
|
16722
|
+
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" }];
|
|
16723
|
+
return false;
|
|
16724
|
+
} else {
|
|
16725
|
+
if (data26 < 0 || isNaN(data26)) {
|
|
16726
|
+
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" }];
|
|
16727
|
+
return false;
|
|
16728
|
+
}
|
|
16729
|
+
}
|
|
16730
|
+
}
|
|
16731
|
+
}
|
|
16732
|
+
var valid8 = _errs59 === errors;
|
|
16733
|
+
} else {
|
|
16734
|
+
var valid8 = true;
|
|
16735
|
+
}
|
|
16736
|
+
}
|
|
16737
|
+
}
|
|
16738
|
+
}
|
|
16739
|
+
}
|
|
16740
|
+
} else {
|
|
16741
|
+
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" }];
|
|
16742
|
+
return false;
|
|
16743
|
+
}
|
|
16744
|
+
}
|
|
16745
|
+
var valid7 = _errs52 === errors;
|
|
16746
|
+
if (!valid7) {
|
|
16747
|
+
break;
|
|
16748
|
+
}
|
|
16749
|
+
}
|
|
16750
|
+
} else {
|
|
16751
|
+
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" }];
|
|
16547
16752
|
return false;
|
|
16548
16753
|
}
|
|
16549
|
-
|
|
16754
|
+
}
|
|
16755
|
+
var valid6 = _errs50 === errors;
|
|
16756
|
+
} else {
|
|
16757
|
+
var valid6 = true;
|
|
16758
|
+
}
|
|
16759
|
+
if (valid6) {
|
|
16760
|
+
if (data15.evidenceOmissions !== void 0) {
|
|
16761
|
+
let data27 = data15.evidenceOmissions;
|
|
16762
|
+
const _errs61 = errors;
|
|
16763
|
+
if (errors === _errs61) {
|
|
16764
|
+
if (Array.isArray(data27)) {
|
|
16765
|
+
var valid9 = true;
|
|
16766
|
+
const len3 = data27.length;
|
|
16767
|
+
for (let i3 = 0; i3 < len3; i3++) {
|
|
16768
|
+
let data28 = data27[i3];
|
|
16769
|
+
const _errs63 = errors;
|
|
16770
|
+
if (errors === _errs63) {
|
|
16771
|
+
if (data28 && typeof data28 == "object" && !Array.isArray(data28)) {
|
|
16772
|
+
let missing5;
|
|
16773
|
+
if (data28.decisionId === void 0 && (missing5 = "decisionId") || data28.reason === void 0 && (missing5 = "reason")) {
|
|
16774
|
+
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 + "'" }];
|
|
16775
|
+
return false;
|
|
16776
|
+
} else {
|
|
16777
|
+
const _errs65 = errors;
|
|
16778
|
+
for (const key2 in data28) {
|
|
16779
|
+
if (!(key2 === "decisionId" || key2 === "reason")) {
|
|
16780
|
+
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" }];
|
|
16781
|
+
return false;
|
|
16782
|
+
break;
|
|
16783
|
+
}
|
|
16784
|
+
}
|
|
16785
|
+
if (_errs65 === errors) {
|
|
16786
|
+
if (data28.decisionId !== void 0) {
|
|
16787
|
+
const _errs66 = errors;
|
|
16788
|
+
if (typeof data28.decisionId !== "string") {
|
|
16789
|
+
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" }];
|
|
16790
|
+
return false;
|
|
16791
|
+
}
|
|
16792
|
+
var valid10 = _errs66 === errors;
|
|
16793
|
+
} else {
|
|
16794
|
+
var valid10 = true;
|
|
16795
|
+
}
|
|
16796
|
+
if (valid10) {
|
|
16797
|
+
if (data28.reason !== void 0) {
|
|
16798
|
+
let data30 = data28.reason;
|
|
16799
|
+
const _errs68 = errors;
|
|
16800
|
+
if (typeof data30 !== "string") {
|
|
16801
|
+
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" }];
|
|
16802
|
+
return false;
|
|
16803
|
+
}
|
|
16804
|
+
if (!(data30 === "prompt_budget" || data30 === "batch_limit" || data30 === "evaluation_failed" || data30 === "evaluation_deadline")) {
|
|
16805
|
+
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" }];
|
|
16806
|
+
return false;
|
|
16807
|
+
}
|
|
16808
|
+
var valid10 = _errs68 === errors;
|
|
16809
|
+
} else {
|
|
16810
|
+
var valid10 = true;
|
|
16811
|
+
}
|
|
16812
|
+
}
|
|
16813
|
+
}
|
|
16814
|
+
}
|
|
16815
|
+
} else {
|
|
16816
|
+
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" }];
|
|
16817
|
+
return false;
|
|
16818
|
+
}
|
|
16819
|
+
}
|
|
16820
|
+
var valid9 = _errs63 === errors;
|
|
16821
|
+
if (!valid9) {
|
|
16822
|
+
break;
|
|
16823
|
+
}
|
|
16824
|
+
}
|
|
16825
|
+
} else {
|
|
16826
|
+
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" }];
|
|
16827
|
+
return false;
|
|
16828
|
+
}
|
|
16829
|
+
}
|
|
16830
|
+
var valid6 = _errs61 === errors;
|
|
16550
16831
|
} else {
|
|
16551
|
-
var
|
|
16832
|
+
var valid6 = true;
|
|
16552
16833
|
}
|
|
16553
16834
|
}
|
|
16554
16835
|
}
|
|
16555
16836
|
}
|
|
16556
16837
|
}
|
|
16557
|
-
} else {
|
|
16558
|
-
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" }];
|
|
16559
|
-
return false;
|
|
16560
16838
|
}
|
|
16561
16839
|
}
|
|
16562
|
-
var valid6 = _errs35 === errors;
|
|
16563
|
-
if (!valid6) {
|
|
16564
|
-
break;
|
|
16565
|
-
}
|
|
16566
16840
|
}
|
|
16567
16841
|
}
|
|
16568
16842
|
}
|
|
16569
16843
|
} else {
|
|
16570
|
-
validate58.errors = [{ instancePath: instancePath + "/
|
|
16844
|
+
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" }];
|
|
16571
16845
|
return false;
|
|
16572
16846
|
}
|
|
16573
16847
|
}
|
|
16574
|
-
var valid1 =
|
|
16848
|
+
var valid1 = _errs35 === errors;
|
|
16575
16849
|
} else {
|
|
16576
16850
|
var valid1 = true;
|
|
16577
16851
|
}
|
|
16852
|
+
if (valid1) {
|
|
16853
|
+
if (data.decisionDisclosures !== void 0) {
|
|
16854
|
+
let data31 = data.decisionDisclosures;
|
|
16855
|
+
const _errs70 = errors;
|
|
16856
|
+
if (errors === _errs70) {
|
|
16857
|
+
if (Array.isArray(data31)) {
|
|
16858
|
+
if (data31.length > 16) {
|
|
16859
|
+
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" }];
|
|
16860
|
+
return false;
|
|
16861
|
+
} else {
|
|
16862
|
+
if (data31.length < 1) {
|
|
16863
|
+
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" }];
|
|
16864
|
+
return false;
|
|
16865
|
+
} else {
|
|
16866
|
+
var valid11 = true;
|
|
16867
|
+
const len4 = data31.length;
|
|
16868
|
+
for (let i4 = 0; i4 < len4; i4++) {
|
|
16869
|
+
let data32 = data31[i4];
|
|
16870
|
+
const _errs72 = errors;
|
|
16871
|
+
if (errors === _errs72) {
|
|
16872
|
+
if (data32 && typeof data32 == "object" && !Array.isArray(data32)) {
|
|
16873
|
+
let missing6;
|
|
16874
|
+
if (data32.decisionId === void 0 && (missing6 = "decisionId") || data32.shortId === void 0 && (missing6 = "shortId") || data32.participation === void 0 && (missing6 = "participation")) {
|
|
16875
|
+
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 + "'" }];
|
|
16876
|
+
return false;
|
|
16877
|
+
} else {
|
|
16878
|
+
const _errs74 = errors;
|
|
16879
|
+
for (const key3 in data32) {
|
|
16880
|
+
if (!(key3 === "decisionId" || key3 === "shortId" || key3 === "participation")) {
|
|
16881
|
+
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" }];
|
|
16882
|
+
return false;
|
|
16883
|
+
break;
|
|
16884
|
+
}
|
|
16885
|
+
}
|
|
16886
|
+
if (_errs74 === errors) {
|
|
16887
|
+
if (data32.decisionId !== void 0) {
|
|
16888
|
+
const _errs75 = errors;
|
|
16889
|
+
if (typeof data32.decisionId !== "string") {
|
|
16890
|
+
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" }];
|
|
16891
|
+
return false;
|
|
16892
|
+
}
|
|
16893
|
+
var valid12 = _errs75 === errors;
|
|
16894
|
+
} else {
|
|
16895
|
+
var valid12 = true;
|
|
16896
|
+
}
|
|
16897
|
+
if (valid12) {
|
|
16898
|
+
if (data32.shortId !== void 0) {
|
|
16899
|
+
const _errs77 = errors;
|
|
16900
|
+
if (typeof data32.shortId !== "string") {
|
|
16901
|
+
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" }];
|
|
16902
|
+
return false;
|
|
16903
|
+
}
|
|
16904
|
+
var valid12 = _errs77 === errors;
|
|
16905
|
+
} else {
|
|
16906
|
+
var valid12 = true;
|
|
16907
|
+
}
|
|
16908
|
+
if (valid12) {
|
|
16909
|
+
if (data32.participation !== void 0) {
|
|
16910
|
+
let data35 = data32.participation;
|
|
16911
|
+
const _errs79 = errors;
|
|
16912
|
+
if (typeof data35 !== "string") {
|
|
16913
|
+
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" }];
|
|
16914
|
+
return false;
|
|
16915
|
+
}
|
|
16916
|
+
if (!(data35 === "candidate" || data35 === "reconcile_bypass")) {
|
|
16917
|
+
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" }];
|
|
16918
|
+
return false;
|
|
16919
|
+
}
|
|
16920
|
+
var valid12 = _errs79 === errors;
|
|
16921
|
+
} else {
|
|
16922
|
+
var valid12 = true;
|
|
16923
|
+
}
|
|
16924
|
+
}
|
|
16925
|
+
}
|
|
16926
|
+
}
|
|
16927
|
+
}
|
|
16928
|
+
} else {
|
|
16929
|
+
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" }];
|
|
16930
|
+
return false;
|
|
16931
|
+
}
|
|
16932
|
+
}
|
|
16933
|
+
var valid11 = _errs72 === errors;
|
|
16934
|
+
if (!valid11) {
|
|
16935
|
+
break;
|
|
16936
|
+
}
|
|
16937
|
+
}
|
|
16938
|
+
}
|
|
16939
|
+
}
|
|
16940
|
+
} else {
|
|
16941
|
+
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" }];
|
|
16942
|
+
return false;
|
|
16943
|
+
}
|
|
16944
|
+
}
|
|
16945
|
+
var valid1 = _errs70 === errors;
|
|
16946
|
+
} else {
|
|
16947
|
+
var valid1 = true;
|
|
16948
|
+
}
|
|
16949
|
+
}
|
|
16578
16950
|
}
|
|
16579
16951
|
}
|
|
16580
16952
|
}
|