@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
|
@@ -25670,7 +25670,7 @@ function validate57(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
25670
25670
|
return errors === 0;
|
|
25671
25671
|
}
|
|
25672
25672
|
validate57.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
|
|
25673
|
-
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": {} };
|
|
25673
|
+
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": {} };
|
|
25674
25674
|
function validate58(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
25675
25675
|
;
|
|
25676
25676
|
let vErrors = null;
|
|
@@ -25801,6 +25801,18 @@ function validate58(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
25801
25801
|
} else {
|
|
25802
25802
|
var valid3 = true;
|
|
25803
25803
|
}
|
|
25804
|
+
if (valid3) {
|
|
25805
|
+
if (data6.title !== void 0) {
|
|
25806
|
+
const _errs22 = errors;
|
|
25807
|
+
if (typeof data6.title !== "string") {
|
|
25808
|
+
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" }];
|
|
25809
|
+
return false;
|
|
25810
|
+
}
|
|
25811
|
+
var valid3 = _errs22 === errors;
|
|
25812
|
+
} else {
|
|
25813
|
+
var valid3 = true;
|
|
25814
|
+
}
|
|
25815
|
+
}
|
|
25804
25816
|
}
|
|
25805
25817
|
}
|
|
25806
25818
|
} else {
|
|
@@ -25824,51 +25836,51 @@ function validate58(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
25824
25836
|
}
|
|
25825
25837
|
if (valid1) {
|
|
25826
25838
|
if (data.bypassed !== void 0) {
|
|
25827
|
-
let
|
|
25828
|
-
const
|
|
25829
|
-
if (errors ===
|
|
25830
|
-
if (Array.isArray(
|
|
25839
|
+
let data10 = data.bypassed;
|
|
25840
|
+
const _errs24 = errors;
|
|
25841
|
+
if (errors === _errs24) {
|
|
25842
|
+
if (Array.isArray(data10)) {
|
|
25831
25843
|
var valid4 = true;
|
|
25832
|
-
const len1 =
|
|
25844
|
+
const len1 = data10.length;
|
|
25833
25845
|
for (let i1 = 0; i1 < len1; i1++) {
|
|
25834
|
-
let
|
|
25835
|
-
const
|
|
25836
|
-
if (errors ===
|
|
25837
|
-
if (
|
|
25846
|
+
let data11 = data10[i1];
|
|
25847
|
+
const _errs26 = errors;
|
|
25848
|
+
if (errors === _errs26) {
|
|
25849
|
+
if (data11 && typeof data11 == "object" && !Array.isArray(data11)) {
|
|
25838
25850
|
let missing2;
|
|
25839
|
-
if (
|
|
25851
|
+
if (data11.decisionId === void 0 && (missing2 = "decisionId")) {
|
|
25840
25852
|
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 + "'" }];
|
|
25841
25853
|
return false;
|
|
25842
25854
|
} else {
|
|
25843
|
-
if (
|
|
25844
|
-
const
|
|
25845
|
-
if (typeof
|
|
25855
|
+
if (data11.decisionId !== void 0) {
|
|
25856
|
+
const _errs29 = errors;
|
|
25857
|
+
if (typeof data11.decisionId !== "string") {
|
|
25846
25858
|
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" }];
|
|
25847
25859
|
return false;
|
|
25848
25860
|
}
|
|
25849
|
-
var valid5 =
|
|
25861
|
+
var valid5 = _errs29 === errors;
|
|
25850
25862
|
} else {
|
|
25851
25863
|
var valid5 = true;
|
|
25852
25864
|
}
|
|
25853
25865
|
if (valid5) {
|
|
25854
|
-
if (
|
|
25855
|
-
const
|
|
25856
|
-
if (typeof
|
|
25866
|
+
if (data11.bypassId !== void 0) {
|
|
25867
|
+
const _errs31 = errors;
|
|
25868
|
+
if (typeof data11.bypassId !== "string") {
|
|
25857
25869
|
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" }];
|
|
25858
25870
|
return false;
|
|
25859
25871
|
}
|
|
25860
|
-
var valid5 =
|
|
25872
|
+
var valid5 = _errs31 === errors;
|
|
25861
25873
|
} else {
|
|
25862
25874
|
var valid5 = true;
|
|
25863
25875
|
}
|
|
25864
25876
|
if (valid5) {
|
|
25865
|
-
if (
|
|
25866
|
-
const
|
|
25867
|
-
if (typeof
|
|
25877
|
+
if (data11.shortId !== void 0) {
|
|
25878
|
+
const _errs33 = errors;
|
|
25879
|
+
if (typeof data11.shortId !== "string") {
|
|
25868
25880
|
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" }];
|
|
25869
25881
|
return false;
|
|
25870
25882
|
}
|
|
25871
|
-
var valid5 =
|
|
25883
|
+
var valid5 = _errs33 === errors;
|
|
25872
25884
|
} else {
|
|
25873
25885
|
var valid5 = true;
|
|
25874
25886
|
}
|
|
@@ -25880,7 +25892,7 @@ function validate58(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
25880
25892
|
return false;
|
|
25881
25893
|
}
|
|
25882
25894
|
}
|
|
25883
|
-
var valid4 =
|
|
25895
|
+
var valid4 = _errs26 === errors;
|
|
25884
25896
|
if (!valid4) {
|
|
25885
25897
|
break;
|
|
25886
25898
|
}
|
|
@@ -25890,107 +25902,467 @@ function validate58(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
25890
25902
|
return false;
|
|
25891
25903
|
}
|
|
25892
25904
|
}
|
|
25893
|
-
var valid1 =
|
|
25905
|
+
var valid1 = _errs24 === errors;
|
|
25894
25906
|
} else {
|
|
25895
25907
|
var valid1 = true;
|
|
25896
25908
|
}
|
|
25897
25909
|
if (valid1) {
|
|
25898
|
-
if (data.
|
|
25899
|
-
let
|
|
25900
|
-
const
|
|
25901
|
-
if (errors ===
|
|
25902
|
-
if (Array.isArray(
|
|
25903
|
-
|
|
25904
|
-
|
|
25910
|
+
if (data.evaluationCoverage !== void 0) {
|
|
25911
|
+
let data15 = data.evaluationCoverage;
|
|
25912
|
+
const _errs35 = errors;
|
|
25913
|
+
if (errors === _errs35) {
|
|
25914
|
+
if (data15 && typeof data15 == "object" && !Array.isArray(data15)) {
|
|
25915
|
+
let missing3;
|
|
25916
|
+
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")) {
|
|
25917
|
+
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 + "'" }];
|
|
25905
25918
|
return false;
|
|
25906
25919
|
} else {
|
|
25907
|
-
|
|
25908
|
-
|
|
25909
|
-
|
|
25910
|
-
|
|
25911
|
-
|
|
25912
|
-
|
|
25913
|
-
|
|
25914
|
-
|
|
25915
|
-
|
|
25916
|
-
|
|
25917
|
-
|
|
25918
|
-
|
|
25919
|
-
|
|
25920
|
-
|
|
25920
|
+
const _errs37 = errors;
|
|
25921
|
+
for (const key0 in data15) {
|
|
25922
|
+
if (!(key0 === "candidateCount" || key0 === "submittedCount" || key0 === "evaluatedCount" || key0 === "status" || key0 === "semanticBatchCount" || key0 === "completedSemanticBatchCount" || key0 === "selectionOmissions" || key0 === "evidenceOmissions")) {
|
|
25923
|
+
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" }];
|
|
25924
|
+
return false;
|
|
25925
|
+
break;
|
|
25926
|
+
}
|
|
25927
|
+
}
|
|
25928
|
+
if (_errs37 === errors) {
|
|
25929
|
+
if (data15.candidateCount !== void 0) {
|
|
25930
|
+
let data16 = data15.candidateCount;
|
|
25931
|
+
const _errs38 = errors;
|
|
25932
|
+
if (!(typeof data16 == "number" && (!(data16 % 1) && !isNaN(data16)) && isFinite(data16))) {
|
|
25933
|
+
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" }];
|
|
25934
|
+
return false;
|
|
25935
|
+
}
|
|
25936
|
+
if (errors === _errs38) {
|
|
25937
|
+
if (typeof data16 == "number" && isFinite(data16)) {
|
|
25938
|
+
if (data16 > 9007199254740991 || isNaN(data16)) {
|
|
25939
|
+
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" }];
|
|
25921
25940
|
return false;
|
|
25922
25941
|
} else {
|
|
25923
|
-
|
|
25924
|
-
|
|
25925
|
-
|
|
25926
|
-
|
|
25942
|
+
if (data16 < 0 || isNaN(data16)) {
|
|
25943
|
+
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" }];
|
|
25944
|
+
return false;
|
|
25945
|
+
}
|
|
25946
|
+
}
|
|
25947
|
+
}
|
|
25948
|
+
}
|
|
25949
|
+
var valid6 = _errs38 === errors;
|
|
25950
|
+
} else {
|
|
25951
|
+
var valid6 = true;
|
|
25952
|
+
}
|
|
25953
|
+
if (valid6) {
|
|
25954
|
+
if (data15.submittedCount !== void 0) {
|
|
25955
|
+
let data17 = data15.submittedCount;
|
|
25956
|
+
const _errs40 = errors;
|
|
25957
|
+
if (!(typeof data17 == "number" && (!(data17 % 1) && !isNaN(data17)) && isFinite(data17))) {
|
|
25958
|
+
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" }];
|
|
25959
|
+
return false;
|
|
25960
|
+
}
|
|
25961
|
+
if (errors === _errs40) {
|
|
25962
|
+
if (typeof data17 == "number" && isFinite(data17)) {
|
|
25963
|
+
if (data17 > 9007199254740991 || isNaN(data17)) {
|
|
25964
|
+
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" }];
|
|
25965
|
+
return false;
|
|
25966
|
+
} else {
|
|
25967
|
+
if (data17 < 0 || isNaN(data17)) {
|
|
25968
|
+
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" }];
|
|
25927
25969
|
return false;
|
|
25928
|
-
break;
|
|
25929
25970
|
}
|
|
25930
25971
|
}
|
|
25931
|
-
|
|
25932
|
-
|
|
25933
|
-
|
|
25934
|
-
|
|
25935
|
-
|
|
25972
|
+
}
|
|
25973
|
+
}
|
|
25974
|
+
var valid6 = _errs40 === errors;
|
|
25975
|
+
} else {
|
|
25976
|
+
var valid6 = true;
|
|
25977
|
+
}
|
|
25978
|
+
if (valid6) {
|
|
25979
|
+
if (data15.evaluatedCount !== void 0) {
|
|
25980
|
+
let data18 = data15.evaluatedCount;
|
|
25981
|
+
const _errs42 = errors;
|
|
25982
|
+
if (!(typeof data18 == "number" && (!(data18 % 1) && !isNaN(data18)) && isFinite(data18))) {
|
|
25983
|
+
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" }];
|
|
25984
|
+
return false;
|
|
25985
|
+
}
|
|
25986
|
+
if (errors === _errs42) {
|
|
25987
|
+
if (typeof data18 == "number" && isFinite(data18)) {
|
|
25988
|
+
if (data18 > 9007199254740991 || isNaN(data18)) {
|
|
25989
|
+
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" }];
|
|
25990
|
+
return false;
|
|
25991
|
+
} else {
|
|
25992
|
+
if (data18 < 0 || isNaN(data18)) {
|
|
25993
|
+
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" }];
|
|
25936
25994
|
return false;
|
|
25937
25995
|
}
|
|
25938
|
-
var valid7 = _errs38 === errors;
|
|
25939
|
-
} else {
|
|
25940
|
-
var valid7 = true;
|
|
25941
25996
|
}
|
|
25942
|
-
|
|
25943
|
-
|
|
25944
|
-
|
|
25945
|
-
|
|
25946
|
-
|
|
25997
|
+
}
|
|
25998
|
+
}
|
|
25999
|
+
var valid6 = _errs42 === errors;
|
|
26000
|
+
} else {
|
|
26001
|
+
var valid6 = true;
|
|
26002
|
+
}
|
|
26003
|
+
if (valid6) {
|
|
26004
|
+
if (data15.status !== void 0) {
|
|
26005
|
+
let data19 = data15.status;
|
|
26006
|
+
const _errs44 = errors;
|
|
26007
|
+
if (typeof data19 !== "string") {
|
|
26008
|
+
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" }];
|
|
26009
|
+
return false;
|
|
26010
|
+
}
|
|
26011
|
+
if (!(data19 === "completed" || data19 === "partial" || data19 === "unavailable" || data19 === "not_run" || data19 === "unknown")) {
|
|
26012
|
+
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" }];
|
|
26013
|
+
return false;
|
|
26014
|
+
}
|
|
26015
|
+
var valid6 = _errs44 === errors;
|
|
26016
|
+
} else {
|
|
26017
|
+
var valid6 = true;
|
|
26018
|
+
}
|
|
26019
|
+
if (valid6) {
|
|
26020
|
+
if (data15.semanticBatchCount !== void 0) {
|
|
26021
|
+
let data20 = data15.semanticBatchCount;
|
|
26022
|
+
const _errs46 = errors;
|
|
26023
|
+
if (!(typeof data20 == "number" && (!(data20 % 1) && !isNaN(data20)) && isFinite(data20))) {
|
|
26024
|
+
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" }];
|
|
26025
|
+
return false;
|
|
26026
|
+
}
|
|
26027
|
+
if (errors === _errs46) {
|
|
26028
|
+
if (typeof data20 == "number" && isFinite(data20)) {
|
|
26029
|
+
if (data20 > 9007199254740991 || isNaN(data20)) {
|
|
26030
|
+
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" }];
|
|
25947
26031
|
return false;
|
|
26032
|
+
} else {
|
|
26033
|
+
if (data20 < 0 || isNaN(data20)) {
|
|
26034
|
+
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" }];
|
|
26035
|
+
return false;
|
|
26036
|
+
}
|
|
25948
26037
|
}
|
|
25949
|
-
var valid7 = _errs40 === errors;
|
|
25950
|
-
} else {
|
|
25951
|
-
var valid7 = true;
|
|
25952
26038
|
}
|
|
25953
|
-
|
|
25954
|
-
|
|
25955
|
-
|
|
25956
|
-
|
|
25957
|
-
|
|
25958
|
-
|
|
26039
|
+
}
|
|
26040
|
+
var valid6 = _errs46 === errors;
|
|
26041
|
+
} else {
|
|
26042
|
+
var valid6 = true;
|
|
26043
|
+
}
|
|
26044
|
+
if (valid6) {
|
|
26045
|
+
if (data15.completedSemanticBatchCount !== void 0) {
|
|
26046
|
+
let data21 = data15.completedSemanticBatchCount;
|
|
26047
|
+
const _errs48 = errors;
|
|
26048
|
+
if (!(typeof data21 == "number" && (!(data21 % 1) && !isNaN(data21)) && isFinite(data21))) {
|
|
26049
|
+
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" }];
|
|
26050
|
+
return false;
|
|
26051
|
+
}
|
|
26052
|
+
if (errors === _errs48) {
|
|
26053
|
+
if (typeof data21 == "number" && isFinite(data21)) {
|
|
26054
|
+
if (data21 > 9007199254740991 || isNaN(data21)) {
|
|
26055
|
+
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" }];
|
|
25959
26056
|
return false;
|
|
26057
|
+
} else {
|
|
26058
|
+
if (data21 < 0 || isNaN(data21)) {
|
|
26059
|
+
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" }];
|
|
26060
|
+
return false;
|
|
26061
|
+
}
|
|
25960
26062
|
}
|
|
25961
|
-
|
|
25962
|
-
|
|
26063
|
+
}
|
|
26064
|
+
}
|
|
26065
|
+
var valid6 = _errs48 === errors;
|
|
26066
|
+
} else {
|
|
26067
|
+
var valid6 = true;
|
|
26068
|
+
}
|
|
26069
|
+
if (valid6) {
|
|
26070
|
+
if (data15.selectionOmissions !== void 0) {
|
|
26071
|
+
let data22 = data15.selectionOmissions;
|
|
26072
|
+
const _errs50 = errors;
|
|
26073
|
+
if (errors === _errs50) {
|
|
26074
|
+
if (Array.isArray(data22)) {
|
|
26075
|
+
var valid7 = true;
|
|
26076
|
+
const len2 = data22.length;
|
|
26077
|
+
for (let i2 = 0; i2 < len2; i2++) {
|
|
26078
|
+
let data23 = data22[i2];
|
|
26079
|
+
const _errs52 = errors;
|
|
26080
|
+
if (errors === _errs52) {
|
|
26081
|
+
if (data23 && typeof data23 == "object" && !Array.isArray(data23)) {
|
|
26082
|
+
let missing4;
|
|
26083
|
+
if (data23.source === void 0 && (missing4 = "source") || data23.reason === void 0 && (missing4 = "reason") || data23.omittedCountLowerBound === void 0 && (missing4 = "omittedCountLowerBound")) {
|
|
26084
|
+
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 + "'" }];
|
|
26085
|
+
return false;
|
|
26086
|
+
} else {
|
|
26087
|
+
const _errs54 = errors;
|
|
26088
|
+
for (const key1 in data23) {
|
|
26089
|
+
if (!(key1 === "source" || key1 === "reason" || key1 === "omittedCountLowerBound")) {
|
|
26090
|
+
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" }];
|
|
26091
|
+
return false;
|
|
26092
|
+
break;
|
|
26093
|
+
}
|
|
26094
|
+
}
|
|
26095
|
+
if (_errs54 === errors) {
|
|
26096
|
+
if (data23.source !== void 0) {
|
|
26097
|
+
let data24 = data23.source;
|
|
26098
|
+
const _errs55 = errors;
|
|
26099
|
+
if (typeof data24 !== "string") {
|
|
26100
|
+
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" }];
|
|
26101
|
+
return false;
|
|
26102
|
+
}
|
|
26103
|
+
if (!(data24 === "exact_scope" || data24 === "location_scope" || data24 === "organization_scope" || data24 === "candidate_scan" || data24 === "candidate_limit" || data24 === "bypass_scan")) {
|
|
26104
|
+
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" }];
|
|
26105
|
+
return false;
|
|
26106
|
+
}
|
|
26107
|
+
var valid8 = _errs55 === errors;
|
|
26108
|
+
} else {
|
|
26109
|
+
var valid8 = true;
|
|
26110
|
+
}
|
|
26111
|
+
if (valid8) {
|
|
26112
|
+
if (data23.reason !== void 0) {
|
|
26113
|
+
let data25 = data23.reason;
|
|
26114
|
+
const _errs57 = errors;
|
|
26115
|
+
if (typeof data25 !== "string") {
|
|
26116
|
+
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" }];
|
|
26117
|
+
return false;
|
|
26118
|
+
}
|
|
26119
|
+
if (!(data25 === "scan_limit" || data25 === "candidate_limit" || data25 === "bucket_limit")) {
|
|
26120
|
+
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" }];
|
|
26121
|
+
return false;
|
|
26122
|
+
}
|
|
26123
|
+
var valid8 = _errs57 === errors;
|
|
26124
|
+
} else {
|
|
26125
|
+
var valid8 = true;
|
|
26126
|
+
}
|
|
26127
|
+
if (valid8) {
|
|
26128
|
+
if (data23.omittedCountLowerBound !== void 0) {
|
|
26129
|
+
let data26 = data23.omittedCountLowerBound;
|
|
26130
|
+
const _errs59 = errors;
|
|
26131
|
+
if (!(typeof data26 == "number" && (!(data26 % 1) && !isNaN(data26)) && isFinite(data26))) {
|
|
26132
|
+
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" }];
|
|
26133
|
+
return false;
|
|
26134
|
+
}
|
|
26135
|
+
if (errors === _errs59) {
|
|
26136
|
+
if (typeof data26 == "number" && isFinite(data26)) {
|
|
26137
|
+
if (data26 > 9007199254740991 || isNaN(data26)) {
|
|
26138
|
+
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" }];
|
|
26139
|
+
return false;
|
|
26140
|
+
} else {
|
|
26141
|
+
if (data26 < 0 || isNaN(data26)) {
|
|
26142
|
+
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" }];
|
|
26143
|
+
return false;
|
|
26144
|
+
}
|
|
26145
|
+
}
|
|
26146
|
+
}
|
|
26147
|
+
}
|
|
26148
|
+
var valid8 = _errs59 === errors;
|
|
26149
|
+
} else {
|
|
26150
|
+
var valid8 = true;
|
|
26151
|
+
}
|
|
26152
|
+
}
|
|
26153
|
+
}
|
|
26154
|
+
}
|
|
26155
|
+
}
|
|
26156
|
+
} else {
|
|
26157
|
+
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" }];
|
|
26158
|
+
return false;
|
|
26159
|
+
}
|
|
26160
|
+
}
|
|
26161
|
+
var valid7 = _errs52 === errors;
|
|
26162
|
+
if (!valid7) {
|
|
26163
|
+
break;
|
|
26164
|
+
}
|
|
26165
|
+
}
|
|
26166
|
+
} else {
|
|
26167
|
+
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" }];
|
|
25963
26168
|
return false;
|
|
25964
26169
|
}
|
|
25965
|
-
|
|
26170
|
+
}
|
|
26171
|
+
var valid6 = _errs50 === errors;
|
|
26172
|
+
} else {
|
|
26173
|
+
var valid6 = true;
|
|
26174
|
+
}
|
|
26175
|
+
if (valid6) {
|
|
26176
|
+
if (data15.evidenceOmissions !== void 0) {
|
|
26177
|
+
let data27 = data15.evidenceOmissions;
|
|
26178
|
+
const _errs61 = errors;
|
|
26179
|
+
if (errors === _errs61) {
|
|
26180
|
+
if (Array.isArray(data27)) {
|
|
26181
|
+
var valid9 = true;
|
|
26182
|
+
const len3 = data27.length;
|
|
26183
|
+
for (let i3 = 0; i3 < len3; i3++) {
|
|
26184
|
+
let data28 = data27[i3];
|
|
26185
|
+
const _errs63 = errors;
|
|
26186
|
+
if (errors === _errs63) {
|
|
26187
|
+
if (data28 && typeof data28 == "object" && !Array.isArray(data28)) {
|
|
26188
|
+
let missing5;
|
|
26189
|
+
if (data28.decisionId === void 0 && (missing5 = "decisionId") || data28.reason === void 0 && (missing5 = "reason")) {
|
|
26190
|
+
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 + "'" }];
|
|
26191
|
+
return false;
|
|
26192
|
+
} else {
|
|
26193
|
+
const _errs65 = errors;
|
|
26194
|
+
for (const key2 in data28) {
|
|
26195
|
+
if (!(key2 === "decisionId" || key2 === "reason")) {
|
|
26196
|
+
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" }];
|
|
26197
|
+
return false;
|
|
26198
|
+
break;
|
|
26199
|
+
}
|
|
26200
|
+
}
|
|
26201
|
+
if (_errs65 === errors) {
|
|
26202
|
+
if (data28.decisionId !== void 0) {
|
|
26203
|
+
const _errs66 = errors;
|
|
26204
|
+
if (typeof data28.decisionId !== "string") {
|
|
26205
|
+
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" }];
|
|
26206
|
+
return false;
|
|
26207
|
+
}
|
|
26208
|
+
var valid10 = _errs66 === errors;
|
|
26209
|
+
} else {
|
|
26210
|
+
var valid10 = true;
|
|
26211
|
+
}
|
|
26212
|
+
if (valid10) {
|
|
26213
|
+
if (data28.reason !== void 0) {
|
|
26214
|
+
let data30 = data28.reason;
|
|
26215
|
+
const _errs68 = errors;
|
|
26216
|
+
if (typeof data30 !== "string") {
|
|
26217
|
+
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" }];
|
|
26218
|
+
return false;
|
|
26219
|
+
}
|
|
26220
|
+
if (!(data30 === "prompt_budget" || data30 === "batch_limit" || data30 === "evaluation_failed" || data30 === "evaluation_deadline")) {
|
|
26221
|
+
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" }];
|
|
26222
|
+
return false;
|
|
26223
|
+
}
|
|
26224
|
+
var valid10 = _errs68 === errors;
|
|
26225
|
+
} else {
|
|
26226
|
+
var valid10 = true;
|
|
26227
|
+
}
|
|
26228
|
+
}
|
|
26229
|
+
}
|
|
26230
|
+
}
|
|
26231
|
+
} else {
|
|
26232
|
+
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" }];
|
|
26233
|
+
return false;
|
|
26234
|
+
}
|
|
26235
|
+
}
|
|
26236
|
+
var valid9 = _errs63 === errors;
|
|
26237
|
+
if (!valid9) {
|
|
26238
|
+
break;
|
|
26239
|
+
}
|
|
26240
|
+
}
|
|
26241
|
+
} else {
|
|
26242
|
+
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" }];
|
|
26243
|
+
return false;
|
|
26244
|
+
}
|
|
26245
|
+
}
|
|
26246
|
+
var valid6 = _errs61 === errors;
|
|
25966
26247
|
} else {
|
|
25967
|
-
var
|
|
26248
|
+
var valid6 = true;
|
|
25968
26249
|
}
|
|
25969
26250
|
}
|
|
25970
26251
|
}
|
|
25971
26252
|
}
|
|
25972
26253
|
}
|
|
25973
|
-
} else {
|
|
25974
|
-
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" }];
|
|
25975
|
-
return false;
|
|
25976
26254
|
}
|
|
25977
26255
|
}
|
|
25978
|
-
var valid6 = _errs35 === errors;
|
|
25979
|
-
if (!valid6) {
|
|
25980
|
-
break;
|
|
25981
|
-
}
|
|
25982
26256
|
}
|
|
25983
26257
|
}
|
|
25984
26258
|
}
|
|
25985
26259
|
} else {
|
|
25986
|
-
validate58.errors = [{ instancePath: instancePath + "/
|
|
26260
|
+
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" }];
|
|
25987
26261
|
return false;
|
|
25988
26262
|
}
|
|
25989
26263
|
}
|
|
25990
|
-
var valid1 =
|
|
26264
|
+
var valid1 = _errs35 === errors;
|
|
25991
26265
|
} else {
|
|
25992
26266
|
var valid1 = true;
|
|
25993
26267
|
}
|
|
26268
|
+
if (valid1) {
|
|
26269
|
+
if (data.decisionDisclosures !== void 0) {
|
|
26270
|
+
let data31 = data.decisionDisclosures;
|
|
26271
|
+
const _errs70 = errors;
|
|
26272
|
+
if (errors === _errs70) {
|
|
26273
|
+
if (Array.isArray(data31)) {
|
|
26274
|
+
if (data31.length > 16) {
|
|
26275
|
+
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" }];
|
|
26276
|
+
return false;
|
|
26277
|
+
} else {
|
|
26278
|
+
if (data31.length < 1) {
|
|
26279
|
+
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" }];
|
|
26280
|
+
return false;
|
|
26281
|
+
} else {
|
|
26282
|
+
var valid11 = true;
|
|
26283
|
+
const len4 = data31.length;
|
|
26284
|
+
for (let i4 = 0; i4 < len4; i4++) {
|
|
26285
|
+
let data32 = data31[i4];
|
|
26286
|
+
const _errs72 = errors;
|
|
26287
|
+
if (errors === _errs72) {
|
|
26288
|
+
if (data32 && typeof data32 == "object" && !Array.isArray(data32)) {
|
|
26289
|
+
let missing6;
|
|
26290
|
+
if (data32.decisionId === void 0 && (missing6 = "decisionId") || data32.shortId === void 0 && (missing6 = "shortId") || data32.participation === void 0 && (missing6 = "participation")) {
|
|
26291
|
+
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 + "'" }];
|
|
26292
|
+
return false;
|
|
26293
|
+
} else {
|
|
26294
|
+
const _errs74 = errors;
|
|
26295
|
+
for (const key3 in data32) {
|
|
26296
|
+
if (!(key3 === "decisionId" || key3 === "shortId" || key3 === "participation")) {
|
|
26297
|
+
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" }];
|
|
26298
|
+
return false;
|
|
26299
|
+
break;
|
|
26300
|
+
}
|
|
26301
|
+
}
|
|
26302
|
+
if (_errs74 === errors) {
|
|
26303
|
+
if (data32.decisionId !== void 0) {
|
|
26304
|
+
const _errs75 = errors;
|
|
26305
|
+
if (typeof data32.decisionId !== "string") {
|
|
26306
|
+
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" }];
|
|
26307
|
+
return false;
|
|
26308
|
+
}
|
|
26309
|
+
var valid12 = _errs75 === errors;
|
|
26310
|
+
} else {
|
|
26311
|
+
var valid12 = true;
|
|
26312
|
+
}
|
|
26313
|
+
if (valid12) {
|
|
26314
|
+
if (data32.shortId !== void 0) {
|
|
26315
|
+
const _errs77 = errors;
|
|
26316
|
+
if (typeof data32.shortId !== "string") {
|
|
26317
|
+
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" }];
|
|
26318
|
+
return false;
|
|
26319
|
+
}
|
|
26320
|
+
var valid12 = _errs77 === errors;
|
|
26321
|
+
} else {
|
|
26322
|
+
var valid12 = true;
|
|
26323
|
+
}
|
|
26324
|
+
if (valid12) {
|
|
26325
|
+
if (data32.participation !== void 0) {
|
|
26326
|
+
let data35 = data32.participation;
|
|
26327
|
+
const _errs79 = errors;
|
|
26328
|
+
if (typeof data35 !== "string") {
|
|
26329
|
+
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" }];
|
|
26330
|
+
return false;
|
|
26331
|
+
}
|
|
26332
|
+
if (!(data35 === "candidate" || data35 === "reconcile_bypass")) {
|
|
26333
|
+
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" }];
|
|
26334
|
+
return false;
|
|
26335
|
+
}
|
|
26336
|
+
var valid12 = _errs79 === errors;
|
|
26337
|
+
} else {
|
|
26338
|
+
var valid12 = true;
|
|
26339
|
+
}
|
|
26340
|
+
}
|
|
26341
|
+
}
|
|
26342
|
+
}
|
|
26343
|
+
}
|
|
26344
|
+
} else {
|
|
26345
|
+
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" }];
|
|
26346
|
+
return false;
|
|
26347
|
+
}
|
|
26348
|
+
}
|
|
26349
|
+
var valid11 = _errs72 === errors;
|
|
26350
|
+
if (!valid11) {
|
|
26351
|
+
break;
|
|
26352
|
+
}
|
|
26353
|
+
}
|
|
26354
|
+
}
|
|
26355
|
+
}
|
|
26356
|
+
} else {
|
|
26357
|
+
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" }];
|
|
26358
|
+
return false;
|
|
26359
|
+
}
|
|
26360
|
+
}
|
|
26361
|
+
var valid1 = _errs70 === errors;
|
|
26362
|
+
} else {
|
|
26363
|
+
var valid1 = true;
|
|
26364
|
+
}
|
|
26365
|
+
}
|
|
25994
26366
|
}
|
|
25995
26367
|
}
|
|
25996
26368
|
}
|