@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
|
@@ -16910,7 +16910,7 @@ function validate57(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
16910
16910
|
return errors === 0;
|
|
16911
16911
|
}
|
|
16912
16912
|
validate57.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
|
|
16913
|
-
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": {} };
|
|
16913
|
+
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": {} };
|
|
16914
16914
|
function validate58(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
16915
16915
|
;
|
|
16916
16916
|
let vErrors = null;
|
|
@@ -17041,6 +17041,18 @@ function validate58(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
17041
17041
|
} else {
|
|
17042
17042
|
var valid3 = true;
|
|
17043
17043
|
}
|
|
17044
|
+
if (valid3) {
|
|
17045
|
+
if (data6.title !== void 0) {
|
|
17046
|
+
const _errs22 = errors;
|
|
17047
|
+
if (typeof data6.title !== "string") {
|
|
17048
|
+
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" }];
|
|
17049
|
+
return false;
|
|
17050
|
+
}
|
|
17051
|
+
var valid3 = _errs22 === errors;
|
|
17052
|
+
} else {
|
|
17053
|
+
var valid3 = true;
|
|
17054
|
+
}
|
|
17055
|
+
}
|
|
17044
17056
|
}
|
|
17045
17057
|
}
|
|
17046
17058
|
} else {
|
|
@@ -17064,51 +17076,51 @@ function validate58(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
17064
17076
|
}
|
|
17065
17077
|
if (valid1) {
|
|
17066
17078
|
if (data.bypassed !== void 0) {
|
|
17067
|
-
let
|
|
17068
|
-
const
|
|
17069
|
-
if (errors ===
|
|
17070
|
-
if (Array.isArray(
|
|
17079
|
+
let data10 = data.bypassed;
|
|
17080
|
+
const _errs24 = errors;
|
|
17081
|
+
if (errors === _errs24) {
|
|
17082
|
+
if (Array.isArray(data10)) {
|
|
17071
17083
|
var valid4 = true;
|
|
17072
|
-
const len1 =
|
|
17084
|
+
const len1 = data10.length;
|
|
17073
17085
|
for (let i1 = 0; i1 < len1; i1++) {
|
|
17074
|
-
let
|
|
17075
|
-
const
|
|
17076
|
-
if (errors ===
|
|
17077
|
-
if (
|
|
17086
|
+
let data11 = data10[i1];
|
|
17087
|
+
const _errs26 = errors;
|
|
17088
|
+
if (errors === _errs26) {
|
|
17089
|
+
if (data11 && typeof data11 == "object" && !Array.isArray(data11)) {
|
|
17078
17090
|
let missing2;
|
|
17079
|
-
if (
|
|
17091
|
+
if (data11.decisionId === void 0 && (missing2 = "decisionId")) {
|
|
17080
17092
|
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 + "'" }];
|
|
17081
17093
|
return false;
|
|
17082
17094
|
} else {
|
|
17083
|
-
if (
|
|
17084
|
-
const
|
|
17085
|
-
if (typeof
|
|
17095
|
+
if (data11.decisionId !== void 0) {
|
|
17096
|
+
const _errs29 = errors;
|
|
17097
|
+
if (typeof data11.decisionId !== "string") {
|
|
17086
17098
|
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" }];
|
|
17087
17099
|
return false;
|
|
17088
17100
|
}
|
|
17089
|
-
var valid5 =
|
|
17101
|
+
var valid5 = _errs29 === errors;
|
|
17090
17102
|
} else {
|
|
17091
17103
|
var valid5 = true;
|
|
17092
17104
|
}
|
|
17093
17105
|
if (valid5) {
|
|
17094
|
-
if (
|
|
17095
|
-
const
|
|
17096
|
-
if (typeof
|
|
17106
|
+
if (data11.bypassId !== void 0) {
|
|
17107
|
+
const _errs31 = errors;
|
|
17108
|
+
if (typeof data11.bypassId !== "string") {
|
|
17097
17109
|
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" }];
|
|
17098
17110
|
return false;
|
|
17099
17111
|
}
|
|
17100
|
-
var valid5 =
|
|
17112
|
+
var valid5 = _errs31 === errors;
|
|
17101
17113
|
} else {
|
|
17102
17114
|
var valid5 = true;
|
|
17103
17115
|
}
|
|
17104
17116
|
if (valid5) {
|
|
17105
|
-
if (
|
|
17106
|
-
const
|
|
17107
|
-
if (typeof
|
|
17117
|
+
if (data11.shortId !== void 0) {
|
|
17118
|
+
const _errs33 = errors;
|
|
17119
|
+
if (typeof data11.shortId !== "string") {
|
|
17108
17120
|
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" }];
|
|
17109
17121
|
return false;
|
|
17110
17122
|
}
|
|
17111
|
-
var valid5 =
|
|
17123
|
+
var valid5 = _errs33 === errors;
|
|
17112
17124
|
} else {
|
|
17113
17125
|
var valid5 = true;
|
|
17114
17126
|
}
|
|
@@ -17120,7 +17132,7 @@ function validate58(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
17120
17132
|
return false;
|
|
17121
17133
|
}
|
|
17122
17134
|
}
|
|
17123
|
-
var valid4 =
|
|
17135
|
+
var valid4 = _errs26 === errors;
|
|
17124
17136
|
if (!valid4) {
|
|
17125
17137
|
break;
|
|
17126
17138
|
}
|
|
@@ -17130,107 +17142,467 @@ function validate58(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
17130
17142
|
return false;
|
|
17131
17143
|
}
|
|
17132
17144
|
}
|
|
17133
|
-
var valid1 =
|
|
17145
|
+
var valid1 = _errs24 === errors;
|
|
17134
17146
|
} else {
|
|
17135
17147
|
var valid1 = true;
|
|
17136
17148
|
}
|
|
17137
17149
|
if (valid1) {
|
|
17138
|
-
if (data.
|
|
17139
|
-
let
|
|
17140
|
-
const
|
|
17141
|
-
if (errors ===
|
|
17142
|
-
if (Array.isArray(
|
|
17143
|
-
|
|
17144
|
-
|
|
17150
|
+
if (data.evaluationCoverage !== void 0) {
|
|
17151
|
+
let data15 = data.evaluationCoverage;
|
|
17152
|
+
const _errs35 = errors;
|
|
17153
|
+
if (errors === _errs35) {
|
|
17154
|
+
if (data15 && typeof data15 == "object" && !Array.isArray(data15)) {
|
|
17155
|
+
let missing3;
|
|
17156
|
+
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")) {
|
|
17157
|
+
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 + "'" }];
|
|
17145
17158
|
return false;
|
|
17146
17159
|
} else {
|
|
17147
|
-
|
|
17148
|
-
|
|
17149
|
-
|
|
17150
|
-
|
|
17151
|
-
|
|
17152
|
-
|
|
17153
|
-
|
|
17154
|
-
|
|
17155
|
-
|
|
17156
|
-
|
|
17157
|
-
|
|
17158
|
-
|
|
17159
|
-
|
|
17160
|
-
|
|
17160
|
+
const _errs37 = errors;
|
|
17161
|
+
for (const key0 in data15) {
|
|
17162
|
+
if (!(key0 === "candidateCount" || key0 === "submittedCount" || key0 === "evaluatedCount" || key0 === "status" || key0 === "semanticBatchCount" || key0 === "completedSemanticBatchCount" || key0 === "selectionOmissions" || key0 === "evidenceOmissions")) {
|
|
17163
|
+
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" }];
|
|
17164
|
+
return false;
|
|
17165
|
+
break;
|
|
17166
|
+
}
|
|
17167
|
+
}
|
|
17168
|
+
if (_errs37 === errors) {
|
|
17169
|
+
if (data15.candidateCount !== void 0) {
|
|
17170
|
+
let data16 = data15.candidateCount;
|
|
17171
|
+
const _errs38 = errors;
|
|
17172
|
+
if (!(typeof data16 == "number" && (!(data16 % 1) && !isNaN(data16)) && isFinite(data16))) {
|
|
17173
|
+
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" }];
|
|
17174
|
+
return false;
|
|
17175
|
+
}
|
|
17176
|
+
if (errors === _errs38) {
|
|
17177
|
+
if (typeof data16 == "number" && isFinite(data16)) {
|
|
17178
|
+
if (data16 > 9007199254740991 || isNaN(data16)) {
|
|
17179
|
+
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" }];
|
|
17161
17180
|
return false;
|
|
17162
17181
|
} else {
|
|
17163
|
-
|
|
17164
|
-
|
|
17165
|
-
|
|
17166
|
-
|
|
17182
|
+
if (data16 < 0 || isNaN(data16)) {
|
|
17183
|
+
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" }];
|
|
17184
|
+
return false;
|
|
17185
|
+
}
|
|
17186
|
+
}
|
|
17187
|
+
}
|
|
17188
|
+
}
|
|
17189
|
+
var valid6 = _errs38 === errors;
|
|
17190
|
+
} else {
|
|
17191
|
+
var valid6 = true;
|
|
17192
|
+
}
|
|
17193
|
+
if (valid6) {
|
|
17194
|
+
if (data15.submittedCount !== void 0) {
|
|
17195
|
+
let data17 = data15.submittedCount;
|
|
17196
|
+
const _errs40 = errors;
|
|
17197
|
+
if (!(typeof data17 == "number" && (!(data17 % 1) && !isNaN(data17)) && isFinite(data17))) {
|
|
17198
|
+
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" }];
|
|
17199
|
+
return false;
|
|
17200
|
+
}
|
|
17201
|
+
if (errors === _errs40) {
|
|
17202
|
+
if (typeof data17 == "number" && isFinite(data17)) {
|
|
17203
|
+
if (data17 > 9007199254740991 || isNaN(data17)) {
|
|
17204
|
+
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" }];
|
|
17205
|
+
return false;
|
|
17206
|
+
} else {
|
|
17207
|
+
if (data17 < 0 || isNaN(data17)) {
|
|
17208
|
+
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" }];
|
|
17167
17209
|
return false;
|
|
17168
|
-
break;
|
|
17169
17210
|
}
|
|
17170
17211
|
}
|
|
17171
|
-
|
|
17172
|
-
|
|
17173
|
-
|
|
17174
|
-
|
|
17175
|
-
|
|
17212
|
+
}
|
|
17213
|
+
}
|
|
17214
|
+
var valid6 = _errs40 === errors;
|
|
17215
|
+
} else {
|
|
17216
|
+
var valid6 = true;
|
|
17217
|
+
}
|
|
17218
|
+
if (valid6) {
|
|
17219
|
+
if (data15.evaluatedCount !== void 0) {
|
|
17220
|
+
let data18 = data15.evaluatedCount;
|
|
17221
|
+
const _errs42 = errors;
|
|
17222
|
+
if (!(typeof data18 == "number" && (!(data18 % 1) && !isNaN(data18)) && isFinite(data18))) {
|
|
17223
|
+
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" }];
|
|
17224
|
+
return false;
|
|
17225
|
+
}
|
|
17226
|
+
if (errors === _errs42) {
|
|
17227
|
+
if (typeof data18 == "number" && isFinite(data18)) {
|
|
17228
|
+
if (data18 > 9007199254740991 || isNaN(data18)) {
|
|
17229
|
+
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" }];
|
|
17230
|
+
return false;
|
|
17231
|
+
} else {
|
|
17232
|
+
if (data18 < 0 || isNaN(data18)) {
|
|
17233
|
+
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" }];
|
|
17176
17234
|
return false;
|
|
17177
17235
|
}
|
|
17178
|
-
var valid7 = _errs38 === errors;
|
|
17179
|
-
} else {
|
|
17180
|
-
var valid7 = true;
|
|
17181
17236
|
}
|
|
17182
|
-
|
|
17183
|
-
|
|
17184
|
-
|
|
17185
|
-
|
|
17186
|
-
|
|
17237
|
+
}
|
|
17238
|
+
}
|
|
17239
|
+
var valid6 = _errs42 === errors;
|
|
17240
|
+
} else {
|
|
17241
|
+
var valid6 = true;
|
|
17242
|
+
}
|
|
17243
|
+
if (valid6) {
|
|
17244
|
+
if (data15.status !== void 0) {
|
|
17245
|
+
let data19 = data15.status;
|
|
17246
|
+
const _errs44 = errors;
|
|
17247
|
+
if (typeof data19 !== "string") {
|
|
17248
|
+
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" }];
|
|
17249
|
+
return false;
|
|
17250
|
+
}
|
|
17251
|
+
if (!(data19 === "completed" || data19 === "partial" || data19 === "unavailable" || data19 === "not_run" || data19 === "unknown")) {
|
|
17252
|
+
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" }];
|
|
17253
|
+
return false;
|
|
17254
|
+
}
|
|
17255
|
+
var valid6 = _errs44 === errors;
|
|
17256
|
+
} else {
|
|
17257
|
+
var valid6 = true;
|
|
17258
|
+
}
|
|
17259
|
+
if (valid6) {
|
|
17260
|
+
if (data15.semanticBatchCount !== void 0) {
|
|
17261
|
+
let data20 = data15.semanticBatchCount;
|
|
17262
|
+
const _errs46 = errors;
|
|
17263
|
+
if (!(typeof data20 == "number" && (!(data20 % 1) && !isNaN(data20)) && isFinite(data20))) {
|
|
17264
|
+
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" }];
|
|
17265
|
+
return false;
|
|
17266
|
+
}
|
|
17267
|
+
if (errors === _errs46) {
|
|
17268
|
+
if (typeof data20 == "number" && isFinite(data20)) {
|
|
17269
|
+
if (data20 > 9007199254740991 || isNaN(data20)) {
|
|
17270
|
+
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" }];
|
|
17187
17271
|
return false;
|
|
17272
|
+
} else {
|
|
17273
|
+
if (data20 < 0 || isNaN(data20)) {
|
|
17274
|
+
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" }];
|
|
17275
|
+
return false;
|
|
17276
|
+
}
|
|
17188
17277
|
}
|
|
17189
|
-
var valid7 = _errs40 === errors;
|
|
17190
|
-
} else {
|
|
17191
|
-
var valid7 = true;
|
|
17192
17278
|
}
|
|
17193
|
-
|
|
17194
|
-
|
|
17195
|
-
|
|
17196
|
-
|
|
17197
|
-
|
|
17198
|
-
|
|
17279
|
+
}
|
|
17280
|
+
var valid6 = _errs46 === errors;
|
|
17281
|
+
} else {
|
|
17282
|
+
var valid6 = true;
|
|
17283
|
+
}
|
|
17284
|
+
if (valid6) {
|
|
17285
|
+
if (data15.completedSemanticBatchCount !== void 0) {
|
|
17286
|
+
let data21 = data15.completedSemanticBatchCount;
|
|
17287
|
+
const _errs48 = errors;
|
|
17288
|
+
if (!(typeof data21 == "number" && (!(data21 % 1) && !isNaN(data21)) && isFinite(data21))) {
|
|
17289
|
+
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" }];
|
|
17290
|
+
return false;
|
|
17291
|
+
}
|
|
17292
|
+
if (errors === _errs48) {
|
|
17293
|
+
if (typeof data21 == "number" && isFinite(data21)) {
|
|
17294
|
+
if (data21 > 9007199254740991 || isNaN(data21)) {
|
|
17295
|
+
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" }];
|
|
17199
17296
|
return false;
|
|
17297
|
+
} else {
|
|
17298
|
+
if (data21 < 0 || isNaN(data21)) {
|
|
17299
|
+
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" }];
|
|
17300
|
+
return false;
|
|
17301
|
+
}
|
|
17200
17302
|
}
|
|
17201
|
-
|
|
17202
|
-
|
|
17303
|
+
}
|
|
17304
|
+
}
|
|
17305
|
+
var valid6 = _errs48 === errors;
|
|
17306
|
+
} else {
|
|
17307
|
+
var valid6 = true;
|
|
17308
|
+
}
|
|
17309
|
+
if (valid6) {
|
|
17310
|
+
if (data15.selectionOmissions !== void 0) {
|
|
17311
|
+
let data22 = data15.selectionOmissions;
|
|
17312
|
+
const _errs50 = errors;
|
|
17313
|
+
if (errors === _errs50) {
|
|
17314
|
+
if (Array.isArray(data22)) {
|
|
17315
|
+
var valid7 = true;
|
|
17316
|
+
const len2 = data22.length;
|
|
17317
|
+
for (let i2 = 0; i2 < len2; i2++) {
|
|
17318
|
+
let data23 = data22[i2];
|
|
17319
|
+
const _errs52 = errors;
|
|
17320
|
+
if (errors === _errs52) {
|
|
17321
|
+
if (data23 && typeof data23 == "object" && !Array.isArray(data23)) {
|
|
17322
|
+
let missing4;
|
|
17323
|
+
if (data23.source === void 0 && (missing4 = "source") || data23.reason === void 0 && (missing4 = "reason") || data23.omittedCountLowerBound === void 0 && (missing4 = "omittedCountLowerBound")) {
|
|
17324
|
+
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 + "'" }];
|
|
17325
|
+
return false;
|
|
17326
|
+
} else {
|
|
17327
|
+
const _errs54 = errors;
|
|
17328
|
+
for (const key1 in data23) {
|
|
17329
|
+
if (!(key1 === "source" || key1 === "reason" || key1 === "omittedCountLowerBound")) {
|
|
17330
|
+
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" }];
|
|
17331
|
+
return false;
|
|
17332
|
+
break;
|
|
17333
|
+
}
|
|
17334
|
+
}
|
|
17335
|
+
if (_errs54 === errors) {
|
|
17336
|
+
if (data23.source !== void 0) {
|
|
17337
|
+
let data24 = data23.source;
|
|
17338
|
+
const _errs55 = errors;
|
|
17339
|
+
if (typeof data24 !== "string") {
|
|
17340
|
+
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" }];
|
|
17341
|
+
return false;
|
|
17342
|
+
}
|
|
17343
|
+
if (!(data24 === "exact_scope" || data24 === "location_scope" || data24 === "organization_scope" || data24 === "candidate_scan" || data24 === "candidate_limit" || data24 === "bypass_scan")) {
|
|
17344
|
+
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" }];
|
|
17345
|
+
return false;
|
|
17346
|
+
}
|
|
17347
|
+
var valid8 = _errs55 === errors;
|
|
17348
|
+
} else {
|
|
17349
|
+
var valid8 = true;
|
|
17350
|
+
}
|
|
17351
|
+
if (valid8) {
|
|
17352
|
+
if (data23.reason !== void 0) {
|
|
17353
|
+
let data25 = data23.reason;
|
|
17354
|
+
const _errs57 = errors;
|
|
17355
|
+
if (typeof data25 !== "string") {
|
|
17356
|
+
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" }];
|
|
17357
|
+
return false;
|
|
17358
|
+
}
|
|
17359
|
+
if (!(data25 === "scan_limit" || data25 === "candidate_limit" || data25 === "bucket_limit")) {
|
|
17360
|
+
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" }];
|
|
17361
|
+
return false;
|
|
17362
|
+
}
|
|
17363
|
+
var valid8 = _errs57 === errors;
|
|
17364
|
+
} else {
|
|
17365
|
+
var valid8 = true;
|
|
17366
|
+
}
|
|
17367
|
+
if (valid8) {
|
|
17368
|
+
if (data23.omittedCountLowerBound !== void 0) {
|
|
17369
|
+
let data26 = data23.omittedCountLowerBound;
|
|
17370
|
+
const _errs59 = errors;
|
|
17371
|
+
if (!(typeof data26 == "number" && (!(data26 % 1) && !isNaN(data26)) && isFinite(data26))) {
|
|
17372
|
+
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" }];
|
|
17373
|
+
return false;
|
|
17374
|
+
}
|
|
17375
|
+
if (errors === _errs59) {
|
|
17376
|
+
if (typeof data26 == "number" && isFinite(data26)) {
|
|
17377
|
+
if (data26 > 9007199254740991 || isNaN(data26)) {
|
|
17378
|
+
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" }];
|
|
17379
|
+
return false;
|
|
17380
|
+
} else {
|
|
17381
|
+
if (data26 < 0 || isNaN(data26)) {
|
|
17382
|
+
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" }];
|
|
17383
|
+
return false;
|
|
17384
|
+
}
|
|
17385
|
+
}
|
|
17386
|
+
}
|
|
17387
|
+
}
|
|
17388
|
+
var valid8 = _errs59 === errors;
|
|
17389
|
+
} else {
|
|
17390
|
+
var valid8 = true;
|
|
17391
|
+
}
|
|
17392
|
+
}
|
|
17393
|
+
}
|
|
17394
|
+
}
|
|
17395
|
+
}
|
|
17396
|
+
} else {
|
|
17397
|
+
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" }];
|
|
17398
|
+
return false;
|
|
17399
|
+
}
|
|
17400
|
+
}
|
|
17401
|
+
var valid7 = _errs52 === errors;
|
|
17402
|
+
if (!valid7) {
|
|
17403
|
+
break;
|
|
17404
|
+
}
|
|
17405
|
+
}
|
|
17406
|
+
} else {
|
|
17407
|
+
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" }];
|
|
17203
17408
|
return false;
|
|
17204
17409
|
}
|
|
17205
|
-
|
|
17410
|
+
}
|
|
17411
|
+
var valid6 = _errs50 === errors;
|
|
17412
|
+
} else {
|
|
17413
|
+
var valid6 = true;
|
|
17414
|
+
}
|
|
17415
|
+
if (valid6) {
|
|
17416
|
+
if (data15.evidenceOmissions !== void 0) {
|
|
17417
|
+
let data27 = data15.evidenceOmissions;
|
|
17418
|
+
const _errs61 = errors;
|
|
17419
|
+
if (errors === _errs61) {
|
|
17420
|
+
if (Array.isArray(data27)) {
|
|
17421
|
+
var valid9 = true;
|
|
17422
|
+
const len3 = data27.length;
|
|
17423
|
+
for (let i3 = 0; i3 < len3; i3++) {
|
|
17424
|
+
let data28 = data27[i3];
|
|
17425
|
+
const _errs63 = errors;
|
|
17426
|
+
if (errors === _errs63) {
|
|
17427
|
+
if (data28 && typeof data28 == "object" && !Array.isArray(data28)) {
|
|
17428
|
+
let missing5;
|
|
17429
|
+
if (data28.decisionId === void 0 && (missing5 = "decisionId") || data28.reason === void 0 && (missing5 = "reason")) {
|
|
17430
|
+
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 + "'" }];
|
|
17431
|
+
return false;
|
|
17432
|
+
} else {
|
|
17433
|
+
const _errs65 = errors;
|
|
17434
|
+
for (const key2 in data28) {
|
|
17435
|
+
if (!(key2 === "decisionId" || key2 === "reason")) {
|
|
17436
|
+
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" }];
|
|
17437
|
+
return false;
|
|
17438
|
+
break;
|
|
17439
|
+
}
|
|
17440
|
+
}
|
|
17441
|
+
if (_errs65 === errors) {
|
|
17442
|
+
if (data28.decisionId !== void 0) {
|
|
17443
|
+
const _errs66 = errors;
|
|
17444
|
+
if (typeof data28.decisionId !== "string") {
|
|
17445
|
+
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" }];
|
|
17446
|
+
return false;
|
|
17447
|
+
}
|
|
17448
|
+
var valid10 = _errs66 === errors;
|
|
17449
|
+
} else {
|
|
17450
|
+
var valid10 = true;
|
|
17451
|
+
}
|
|
17452
|
+
if (valid10) {
|
|
17453
|
+
if (data28.reason !== void 0) {
|
|
17454
|
+
let data30 = data28.reason;
|
|
17455
|
+
const _errs68 = errors;
|
|
17456
|
+
if (typeof data30 !== "string") {
|
|
17457
|
+
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" }];
|
|
17458
|
+
return false;
|
|
17459
|
+
}
|
|
17460
|
+
if (!(data30 === "prompt_budget" || data30 === "batch_limit" || data30 === "evaluation_failed" || data30 === "evaluation_deadline")) {
|
|
17461
|
+
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" }];
|
|
17462
|
+
return false;
|
|
17463
|
+
}
|
|
17464
|
+
var valid10 = _errs68 === errors;
|
|
17465
|
+
} else {
|
|
17466
|
+
var valid10 = true;
|
|
17467
|
+
}
|
|
17468
|
+
}
|
|
17469
|
+
}
|
|
17470
|
+
}
|
|
17471
|
+
} else {
|
|
17472
|
+
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" }];
|
|
17473
|
+
return false;
|
|
17474
|
+
}
|
|
17475
|
+
}
|
|
17476
|
+
var valid9 = _errs63 === errors;
|
|
17477
|
+
if (!valid9) {
|
|
17478
|
+
break;
|
|
17479
|
+
}
|
|
17480
|
+
}
|
|
17481
|
+
} else {
|
|
17482
|
+
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" }];
|
|
17483
|
+
return false;
|
|
17484
|
+
}
|
|
17485
|
+
}
|
|
17486
|
+
var valid6 = _errs61 === errors;
|
|
17206
17487
|
} else {
|
|
17207
|
-
var
|
|
17488
|
+
var valid6 = true;
|
|
17208
17489
|
}
|
|
17209
17490
|
}
|
|
17210
17491
|
}
|
|
17211
17492
|
}
|
|
17212
17493
|
}
|
|
17213
|
-
} else {
|
|
17214
|
-
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" }];
|
|
17215
|
-
return false;
|
|
17216
17494
|
}
|
|
17217
17495
|
}
|
|
17218
|
-
var valid6 = _errs35 === errors;
|
|
17219
|
-
if (!valid6) {
|
|
17220
|
-
break;
|
|
17221
|
-
}
|
|
17222
17496
|
}
|
|
17223
17497
|
}
|
|
17224
17498
|
}
|
|
17225
17499
|
} else {
|
|
17226
|
-
validate58.errors = [{ instancePath: instancePath + "/
|
|
17500
|
+
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" }];
|
|
17227
17501
|
return false;
|
|
17228
17502
|
}
|
|
17229
17503
|
}
|
|
17230
|
-
var valid1 =
|
|
17504
|
+
var valid1 = _errs35 === errors;
|
|
17231
17505
|
} else {
|
|
17232
17506
|
var valid1 = true;
|
|
17233
17507
|
}
|
|
17508
|
+
if (valid1) {
|
|
17509
|
+
if (data.decisionDisclosures !== void 0) {
|
|
17510
|
+
let data31 = data.decisionDisclosures;
|
|
17511
|
+
const _errs70 = errors;
|
|
17512
|
+
if (errors === _errs70) {
|
|
17513
|
+
if (Array.isArray(data31)) {
|
|
17514
|
+
if (data31.length > 16) {
|
|
17515
|
+
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" }];
|
|
17516
|
+
return false;
|
|
17517
|
+
} else {
|
|
17518
|
+
if (data31.length < 1) {
|
|
17519
|
+
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" }];
|
|
17520
|
+
return false;
|
|
17521
|
+
} else {
|
|
17522
|
+
var valid11 = true;
|
|
17523
|
+
const len4 = data31.length;
|
|
17524
|
+
for (let i4 = 0; i4 < len4; i4++) {
|
|
17525
|
+
let data32 = data31[i4];
|
|
17526
|
+
const _errs72 = errors;
|
|
17527
|
+
if (errors === _errs72) {
|
|
17528
|
+
if (data32 && typeof data32 == "object" && !Array.isArray(data32)) {
|
|
17529
|
+
let missing6;
|
|
17530
|
+
if (data32.decisionId === void 0 && (missing6 = "decisionId") || data32.shortId === void 0 && (missing6 = "shortId") || data32.participation === void 0 && (missing6 = "participation")) {
|
|
17531
|
+
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 + "'" }];
|
|
17532
|
+
return false;
|
|
17533
|
+
} else {
|
|
17534
|
+
const _errs74 = errors;
|
|
17535
|
+
for (const key3 in data32) {
|
|
17536
|
+
if (!(key3 === "decisionId" || key3 === "shortId" || key3 === "participation")) {
|
|
17537
|
+
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" }];
|
|
17538
|
+
return false;
|
|
17539
|
+
break;
|
|
17540
|
+
}
|
|
17541
|
+
}
|
|
17542
|
+
if (_errs74 === errors) {
|
|
17543
|
+
if (data32.decisionId !== void 0) {
|
|
17544
|
+
const _errs75 = errors;
|
|
17545
|
+
if (typeof data32.decisionId !== "string") {
|
|
17546
|
+
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" }];
|
|
17547
|
+
return false;
|
|
17548
|
+
}
|
|
17549
|
+
var valid12 = _errs75 === errors;
|
|
17550
|
+
} else {
|
|
17551
|
+
var valid12 = true;
|
|
17552
|
+
}
|
|
17553
|
+
if (valid12) {
|
|
17554
|
+
if (data32.shortId !== void 0) {
|
|
17555
|
+
const _errs77 = errors;
|
|
17556
|
+
if (typeof data32.shortId !== "string") {
|
|
17557
|
+
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" }];
|
|
17558
|
+
return false;
|
|
17559
|
+
}
|
|
17560
|
+
var valid12 = _errs77 === errors;
|
|
17561
|
+
} else {
|
|
17562
|
+
var valid12 = true;
|
|
17563
|
+
}
|
|
17564
|
+
if (valid12) {
|
|
17565
|
+
if (data32.participation !== void 0) {
|
|
17566
|
+
let data35 = data32.participation;
|
|
17567
|
+
const _errs79 = errors;
|
|
17568
|
+
if (typeof data35 !== "string") {
|
|
17569
|
+
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" }];
|
|
17570
|
+
return false;
|
|
17571
|
+
}
|
|
17572
|
+
if (!(data35 === "candidate" || data35 === "reconcile_bypass")) {
|
|
17573
|
+
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" }];
|
|
17574
|
+
return false;
|
|
17575
|
+
}
|
|
17576
|
+
var valid12 = _errs79 === errors;
|
|
17577
|
+
} else {
|
|
17578
|
+
var valid12 = true;
|
|
17579
|
+
}
|
|
17580
|
+
}
|
|
17581
|
+
}
|
|
17582
|
+
}
|
|
17583
|
+
}
|
|
17584
|
+
} else {
|
|
17585
|
+
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" }];
|
|
17586
|
+
return false;
|
|
17587
|
+
}
|
|
17588
|
+
}
|
|
17589
|
+
var valid11 = _errs72 === errors;
|
|
17590
|
+
if (!valid11) {
|
|
17591
|
+
break;
|
|
17592
|
+
}
|
|
17593
|
+
}
|
|
17594
|
+
}
|
|
17595
|
+
}
|
|
17596
|
+
} else {
|
|
17597
|
+
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" }];
|
|
17598
|
+
return false;
|
|
17599
|
+
}
|
|
17600
|
+
}
|
|
17601
|
+
var valid1 = _errs70 === errors;
|
|
17602
|
+
} else {
|
|
17603
|
+
var valid1 = true;
|
|
17604
|
+
}
|
|
17605
|
+
}
|
|
17234
17606
|
}
|
|
17235
17607
|
}
|
|
17236
17608
|
}
|