@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.
@@ -17862,7 +17862,7 @@ function validate57(data, { instancePath = "", parentData, parentDataProperty, r
17862
17862
  return errors === 0;
17863
17863
  }
17864
17864
  validate57.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
17865
- 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": {} };
17865
+ 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": {} };
17866
17866
  function validate58(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
17867
17867
  ;
17868
17868
  let vErrors = null;
@@ -17993,6 +17993,18 @@ function validate58(data, { instancePath = "", parentData, parentDataProperty, r
17993
17993
  } else {
17994
17994
  var valid3 = true;
17995
17995
  }
17996
+ if (valid3) {
17997
+ if (data6.title !== void 0) {
17998
+ const _errs22 = errors;
17999
+ if (typeof data6.title !== "string") {
18000
+ 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" }];
18001
+ return false;
18002
+ }
18003
+ var valid3 = _errs22 === errors;
18004
+ } else {
18005
+ var valid3 = true;
18006
+ }
18007
+ }
17996
18008
  }
17997
18009
  }
17998
18010
  } else {
@@ -18016,51 +18028,51 @@ function validate58(data, { instancePath = "", parentData, parentDataProperty, r
18016
18028
  }
18017
18029
  if (valid1) {
18018
18030
  if (data.bypassed !== void 0) {
18019
- let data9 = data.bypassed;
18020
- const _errs22 = errors;
18021
- if (errors === _errs22) {
18022
- if (Array.isArray(data9)) {
18031
+ let data10 = data.bypassed;
18032
+ const _errs24 = errors;
18033
+ if (errors === _errs24) {
18034
+ if (Array.isArray(data10)) {
18023
18035
  var valid4 = true;
18024
- const len1 = data9.length;
18036
+ const len1 = data10.length;
18025
18037
  for (let i1 = 0; i1 < len1; i1++) {
18026
- let data10 = data9[i1];
18027
- const _errs24 = errors;
18028
- if (errors === _errs24) {
18029
- if (data10 && typeof data10 == "object" && !Array.isArray(data10)) {
18038
+ let data11 = data10[i1];
18039
+ const _errs26 = errors;
18040
+ if (errors === _errs26) {
18041
+ if (data11 && typeof data11 == "object" && !Array.isArray(data11)) {
18030
18042
  let missing2;
18031
- if (data10.decisionId === void 0 && (missing2 = "decisionId")) {
18043
+ if (data11.decisionId === void 0 && (missing2 = "decisionId")) {
18032
18044
  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 + "'" }];
18033
18045
  return false;
18034
18046
  } else {
18035
- if (data10.decisionId !== void 0) {
18036
- const _errs27 = errors;
18037
- if (typeof data10.decisionId !== "string") {
18047
+ if (data11.decisionId !== void 0) {
18048
+ const _errs29 = errors;
18049
+ if (typeof data11.decisionId !== "string") {
18038
18050
  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" }];
18039
18051
  return false;
18040
18052
  }
18041
- var valid5 = _errs27 === errors;
18053
+ var valid5 = _errs29 === errors;
18042
18054
  } else {
18043
18055
  var valid5 = true;
18044
18056
  }
18045
18057
  if (valid5) {
18046
- if (data10.bypassId !== void 0) {
18047
- const _errs29 = errors;
18048
- if (typeof data10.bypassId !== "string") {
18058
+ if (data11.bypassId !== void 0) {
18059
+ const _errs31 = errors;
18060
+ if (typeof data11.bypassId !== "string") {
18049
18061
  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" }];
18050
18062
  return false;
18051
18063
  }
18052
- var valid5 = _errs29 === errors;
18064
+ var valid5 = _errs31 === errors;
18053
18065
  } else {
18054
18066
  var valid5 = true;
18055
18067
  }
18056
18068
  if (valid5) {
18057
- if (data10.shortId !== void 0) {
18058
- const _errs31 = errors;
18059
- if (typeof data10.shortId !== "string") {
18069
+ if (data11.shortId !== void 0) {
18070
+ const _errs33 = errors;
18071
+ if (typeof data11.shortId !== "string") {
18060
18072
  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" }];
18061
18073
  return false;
18062
18074
  }
18063
- var valid5 = _errs31 === errors;
18075
+ var valid5 = _errs33 === errors;
18064
18076
  } else {
18065
18077
  var valid5 = true;
18066
18078
  }
@@ -18072,7 +18084,7 @@ function validate58(data, { instancePath = "", parentData, parentDataProperty, r
18072
18084
  return false;
18073
18085
  }
18074
18086
  }
18075
- var valid4 = _errs24 === errors;
18087
+ var valid4 = _errs26 === errors;
18076
18088
  if (!valid4) {
18077
18089
  break;
18078
18090
  }
@@ -18082,107 +18094,467 @@ function validate58(data, { instancePath = "", parentData, parentDataProperty, r
18082
18094
  return false;
18083
18095
  }
18084
18096
  }
18085
- var valid1 = _errs22 === errors;
18097
+ var valid1 = _errs24 === errors;
18086
18098
  } else {
18087
18099
  var valid1 = true;
18088
18100
  }
18089
18101
  if (valid1) {
18090
- if (data.decisionDisclosures !== void 0) {
18091
- let data14 = data.decisionDisclosures;
18092
- const _errs33 = errors;
18093
- if (errors === _errs33) {
18094
- if (Array.isArray(data14)) {
18095
- if (data14.length > 16) {
18096
- 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" }];
18102
+ if (data.evaluationCoverage !== void 0) {
18103
+ let data15 = data.evaluationCoverage;
18104
+ const _errs35 = errors;
18105
+ if (errors === _errs35) {
18106
+ if (data15 && typeof data15 == "object" && !Array.isArray(data15)) {
18107
+ let missing3;
18108
+ 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")) {
18109
+ 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 + "'" }];
18097
18110
  return false;
18098
18111
  } else {
18099
- if (data14.length < 1) {
18100
- 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" }];
18101
- return false;
18102
- } else {
18103
- var valid6 = true;
18104
- const len2 = data14.length;
18105
- for (let i2 = 0; i2 < len2; i2++) {
18106
- let data15 = data14[i2];
18107
- const _errs35 = errors;
18108
- if (errors === _errs35) {
18109
- if (data15 && typeof data15 == "object" && !Array.isArray(data15)) {
18110
- let missing3;
18111
- if (data15.decisionId === void 0 && (missing3 = "decisionId") || data15.shortId === void 0 && (missing3 = "shortId") || data15.participation === void 0 && (missing3 = "participation")) {
18112
- validate58.errors = [{ instancePath: instancePath + "/decisionDisclosures/" + i2, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/PreflightResponseV3/properties/decisionDisclosures/items/required", keyword: "required", params: { missingProperty: missing3 }, message: "must have required property '" + missing3 + "'" }];
18112
+ const _errs37 = errors;
18113
+ for (const key0 in data15) {
18114
+ if (!(key0 === "candidateCount" || key0 === "submittedCount" || key0 === "evaluatedCount" || key0 === "status" || key0 === "semanticBatchCount" || key0 === "completedSemanticBatchCount" || key0 === "selectionOmissions" || key0 === "evidenceOmissions")) {
18115
+ 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" }];
18116
+ return false;
18117
+ break;
18118
+ }
18119
+ }
18120
+ if (_errs37 === errors) {
18121
+ if (data15.candidateCount !== void 0) {
18122
+ let data16 = data15.candidateCount;
18123
+ const _errs38 = errors;
18124
+ if (!(typeof data16 == "number" && (!(data16 % 1) && !isNaN(data16)) && isFinite(data16))) {
18125
+ 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" }];
18126
+ return false;
18127
+ }
18128
+ if (errors === _errs38) {
18129
+ if (typeof data16 == "number" && isFinite(data16)) {
18130
+ if (data16 > 9007199254740991 || isNaN(data16)) {
18131
+ 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" }];
18113
18132
  return false;
18114
18133
  } else {
18115
- const _errs37 = errors;
18116
- for (const key0 in data15) {
18117
- if (!(key0 === "decisionId" || key0 === "shortId" || key0 === "participation")) {
18118
- validate58.errors = [{ instancePath: instancePath + "/decisionDisclosures/" + i2, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/PreflightResponseV3/properties/decisionDisclosures/items/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key0 }, message: "must NOT have additional properties" }];
18134
+ if (data16 < 0 || isNaN(data16)) {
18135
+ 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" }];
18136
+ return false;
18137
+ }
18138
+ }
18139
+ }
18140
+ }
18141
+ var valid6 = _errs38 === errors;
18142
+ } else {
18143
+ var valid6 = true;
18144
+ }
18145
+ if (valid6) {
18146
+ if (data15.submittedCount !== void 0) {
18147
+ let data17 = data15.submittedCount;
18148
+ const _errs40 = errors;
18149
+ if (!(typeof data17 == "number" && (!(data17 % 1) && !isNaN(data17)) && isFinite(data17))) {
18150
+ 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" }];
18151
+ return false;
18152
+ }
18153
+ if (errors === _errs40) {
18154
+ if (typeof data17 == "number" && isFinite(data17)) {
18155
+ if (data17 > 9007199254740991 || isNaN(data17)) {
18156
+ 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" }];
18157
+ return false;
18158
+ } else {
18159
+ if (data17 < 0 || isNaN(data17)) {
18160
+ 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" }];
18119
18161
  return false;
18120
- break;
18121
18162
  }
18122
18163
  }
18123
- if (_errs37 === errors) {
18124
- if (data15.decisionId !== void 0) {
18125
- const _errs38 = errors;
18126
- if (typeof data15.decisionId !== "string") {
18127
- validate58.errors = [{ instancePath: instancePath + "/decisionDisclosures/" + i2 + "/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" }];
18164
+ }
18165
+ }
18166
+ var valid6 = _errs40 === errors;
18167
+ } else {
18168
+ var valid6 = true;
18169
+ }
18170
+ if (valid6) {
18171
+ if (data15.evaluatedCount !== void 0) {
18172
+ let data18 = data15.evaluatedCount;
18173
+ const _errs42 = errors;
18174
+ if (!(typeof data18 == "number" && (!(data18 % 1) && !isNaN(data18)) && isFinite(data18))) {
18175
+ 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" }];
18176
+ return false;
18177
+ }
18178
+ if (errors === _errs42) {
18179
+ if (typeof data18 == "number" && isFinite(data18)) {
18180
+ if (data18 > 9007199254740991 || isNaN(data18)) {
18181
+ 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" }];
18182
+ return false;
18183
+ } else {
18184
+ if (data18 < 0 || isNaN(data18)) {
18185
+ 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" }];
18128
18186
  return false;
18129
18187
  }
18130
- var valid7 = _errs38 === errors;
18131
- } else {
18132
- var valid7 = true;
18133
18188
  }
18134
- if (valid7) {
18135
- if (data15.shortId !== void 0) {
18136
- const _errs40 = errors;
18137
- if (typeof data15.shortId !== "string") {
18138
- validate58.errors = [{ instancePath: instancePath + "/decisionDisclosures/" + i2 + "/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" }];
18189
+ }
18190
+ }
18191
+ var valid6 = _errs42 === errors;
18192
+ } else {
18193
+ var valid6 = true;
18194
+ }
18195
+ if (valid6) {
18196
+ if (data15.status !== void 0) {
18197
+ let data19 = data15.status;
18198
+ const _errs44 = errors;
18199
+ if (typeof data19 !== "string") {
18200
+ 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" }];
18201
+ return false;
18202
+ }
18203
+ if (!(data19 === "completed" || data19 === "partial" || data19 === "unavailable" || data19 === "not_run" || data19 === "unknown")) {
18204
+ 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" }];
18205
+ return false;
18206
+ }
18207
+ var valid6 = _errs44 === errors;
18208
+ } else {
18209
+ var valid6 = true;
18210
+ }
18211
+ if (valid6) {
18212
+ if (data15.semanticBatchCount !== void 0) {
18213
+ let data20 = data15.semanticBatchCount;
18214
+ const _errs46 = errors;
18215
+ if (!(typeof data20 == "number" && (!(data20 % 1) && !isNaN(data20)) && isFinite(data20))) {
18216
+ 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" }];
18217
+ return false;
18218
+ }
18219
+ if (errors === _errs46) {
18220
+ if (typeof data20 == "number" && isFinite(data20)) {
18221
+ if (data20 > 9007199254740991 || isNaN(data20)) {
18222
+ 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" }];
18139
18223
  return false;
18224
+ } else {
18225
+ if (data20 < 0 || isNaN(data20)) {
18226
+ 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" }];
18227
+ return false;
18228
+ }
18140
18229
  }
18141
- var valid7 = _errs40 === errors;
18142
- } else {
18143
- var valid7 = true;
18144
18230
  }
18145
- if (valid7) {
18146
- if (data15.participation !== void 0) {
18147
- let data18 = data15.participation;
18148
- const _errs42 = errors;
18149
- if (typeof data18 !== "string") {
18150
- validate58.errors = [{ instancePath: instancePath + "/decisionDisclosures/" + i2 + "/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" }];
18231
+ }
18232
+ var valid6 = _errs46 === errors;
18233
+ } else {
18234
+ var valid6 = true;
18235
+ }
18236
+ if (valid6) {
18237
+ if (data15.completedSemanticBatchCount !== void 0) {
18238
+ let data21 = data15.completedSemanticBatchCount;
18239
+ const _errs48 = errors;
18240
+ if (!(typeof data21 == "number" && (!(data21 % 1) && !isNaN(data21)) && isFinite(data21))) {
18241
+ 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" }];
18242
+ return false;
18243
+ }
18244
+ if (errors === _errs48) {
18245
+ if (typeof data21 == "number" && isFinite(data21)) {
18246
+ if (data21 > 9007199254740991 || isNaN(data21)) {
18247
+ 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" }];
18151
18248
  return false;
18249
+ } else {
18250
+ if (data21 < 0 || isNaN(data21)) {
18251
+ 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" }];
18252
+ return false;
18253
+ }
18152
18254
  }
18153
- if (!(data18 === "candidate" || data18 === "reconcile_bypass")) {
18154
- validate58.errors = [{ instancePath: instancePath + "/decisionDisclosures/" + i2 + "/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" }];
18255
+ }
18256
+ }
18257
+ var valid6 = _errs48 === errors;
18258
+ } else {
18259
+ var valid6 = true;
18260
+ }
18261
+ if (valid6) {
18262
+ if (data15.selectionOmissions !== void 0) {
18263
+ let data22 = data15.selectionOmissions;
18264
+ const _errs50 = errors;
18265
+ if (errors === _errs50) {
18266
+ if (Array.isArray(data22)) {
18267
+ var valid7 = true;
18268
+ const len2 = data22.length;
18269
+ for (let i2 = 0; i2 < len2; i2++) {
18270
+ let data23 = data22[i2];
18271
+ const _errs52 = errors;
18272
+ if (errors === _errs52) {
18273
+ if (data23 && typeof data23 == "object" && !Array.isArray(data23)) {
18274
+ let missing4;
18275
+ if (data23.source === void 0 && (missing4 = "source") || data23.reason === void 0 && (missing4 = "reason") || data23.omittedCountLowerBound === void 0 && (missing4 = "omittedCountLowerBound")) {
18276
+ 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 + "'" }];
18277
+ return false;
18278
+ } else {
18279
+ const _errs54 = errors;
18280
+ for (const key1 in data23) {
18281
+ if (!(key1 === "source" || key1 === "reason" || key1 === "omittedCountLowerBound")) {
18282
+ 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" }];
18283
+ return false;
18284
+ break;
18285
+ }
18286
+ }
18287
+ if (_errs54 === errors) {
18288
+ if (data23.source !== void 0) {
18289
+ let data24 = data23.source;
18290
+ const _errs55 = errors;
18291
+ if (typeof data24 !== "string") {
18292
+ 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" }];
18293
+ return false;
18294
+ }
18295
+ if (!(data24 === "exact_scope" || data24 === "location_scope" || data24 === "organization_scope" || data24 === "candidate_scan" || data24 === "candidate_limit" || data24 === "bypass_scan")) {
18296
+ 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" }];
18297
+ return false;
18298
+ }
18299
+ var valid8 = _errs55 === errors;
18300
+ } else {
18301
+ var valid8 = true;
18302
+ }
18303
+ if (valid8) {
18304
+ if (data23.reason !== void 0) {
18305
+ let data25 = data23.reason;
18306
+ const _errs57 = errors;
18307
+ if (typeof data25 !== "string") {
18308
+ 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" }];
18309
+ return false;
18310
+ }
18311
+ if (!(data25 === "scan_limit" || data25 === "candidate_limit" || data25 === "bucket_limit")) {
18312
+ 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" }];
18313
+ return false;
18314
+ }
18315
+ var valid8 = _errs57 === errors;
18316
+ } else {
18317
+ var valid8 = true;
18318
+ }
18319
+ if (valid8) {
18320
+ if (data23.omittedCountLowerBound !== void 0) {
18321
+ let data26 = data23.omittedCountLowerBound;
18322
+ const _errs59 = errors;
18323
+ if (!(typeof data26 == "number" && (!(data26 % 1) && !isNaN(data26)) && isFinite(data26))) {
18324
+ 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" }];
18325
+ return false;
18326
+ }
18327
+ if (errors === _errs59) {
18328
+ if (typeof data26 == "number" && isFinite(data26)) {
18329
+ if (data26 > 9007199254740991 || isNaN(data26)) {
18330
+ 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" }];
18331
+ return false;
18332
+ } else {
18333
+ if (data26 < 0 || isNaN(data26)) {
18334
+ 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" }];
18335
+ return false;
18336
+ }
18337
+ }
18338
+ }
18339
+ }
18340
+ var valid8 = _errs59 === errors;
18341
+ } else {
18342
+ var valid8 = true;
18343
+ }
18344
+ }
18345
+ }
18346
+ }
18347
+ }
18348
+ } else {
18349
+ 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" }];
18350
+ return false;
18351
+ }
18352
+ }
18353
+ var valid7 = _errs52 === errors;
18354
+ if (!valid7) {
18355
+ break;
18356
+ }
18357
+ }
18358
+ } else {
18359
+ 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" }];
18155
18360
  return false;
18156
18361
  }
18157
- var valid7 = _errs42 === errors;
18362
+ }
18363
+ var valid6 = _errs50 === errors;
18364
+ } else {
18365
+ var valid6 = true;
18366
+ }
18367
+ if (valid6) {
18368
+ if (data15.evidenceOmissions !== void 0) {
18369
+ let data27 = data15.evidenceOmissions;
18370
+ const _errs61 = errors;
18371
+ if (errors === _errs61) {
18372
+ if (Array.isArray(data27)) {
18373
+ var valid9 = true;
18374
+ const len3 = data27.length;
18375
+ for (let i3 = 0; i3 < len3; i3++) {
18376
+ let data28 = data27[i3];
18377
+ const _errs63 = errors;
18378
+ if (errors === _errs63) {
18379
+ if (data28 && typeof data28 == "object" && !Array.isArray(data28)) {
18380
+ let missing5;
18381
+ if (data28.decisionId === void 0 && (missing5 = "decisionId") || data28.reason === void 0 && (missing5 = "reason")) {
18382
+ 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 + "'" }];
18383
+ return false;
18384
+ } else {
18385
+ const _errs65 = errors;
18386
+ for (const key2 in data28) {
18387
+ if (!(key2 === "decisionId" || key2 === "reason")) {
18388
+ 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" }];
18389
+ return false;
18390
+ break;
18391
+ }
18392
+ }
18393
+ if (_errs65 === errors) {
18394
+ if (data28.decisionId !== void 0) {
18395
+ const _errs66 = errors;
18396
+ if (typeof data28.decisionId !== "string") {
18397
+ 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" }];
18398
+ return false;
18399
+ }
18400
+ var valid10 = _errs66 === errors;
18401
+ } else {
18402
+ var valid10 = true;
18403
+ }
18404
+ if (valid10) {
18405
+ if (data28.reason !== void 0) {
18406
+ let data30 = data28.reason;
18407
+ const _errs68 = errors;
18408
+ if (typeof data30 !== "string") {
18409
+ 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" }];
18410
+ return false;
18411
+ }
18412
+ if (!(data30 === "prompt_budget" || data30 === "batch_limit" || data30 === "evaluation_failed" || data30 === "evaluation_deadline")) {
18413
+ 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" }];
18414
+ return false;
18415
+ }
18416
+ var valid10 = _errs68 === errors;
18417
+ } else {
18418
+ var valid10 = true;
18419
+ }
18420
+ }
18421
+ }
18422
+ }
18423
+ } else {
18424
+ 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" }];
18425
+ return false;
18426
+ }
18427
+ }
18428
+ var valid9 = _errs63 === errors;
18429
+ if (!valid9) {
18430
+ break;
18431
+ }
18432
+ }
18433
+ } else {
18434
+ 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" }];
18435
+ return false;
18436
+ }
18437
+ }
18438
+ var valid6 = _errs61 === errors;
18158
18439
  } else {
18159
- var valid7 = true;
18440
+ var valid6 = true;
18160
18441
  }
18161
18442
  }
18162
18443
  }
18163
18444
  }
18164
18445
  }
18165
- } else {
18166
- 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" }];
18167
- return false;
18168
18446
  }
18169
18447
  }
18170
- var valid6 = _errs35 === errors;
18171
- if (!valid6) {
18172
- break;
18173
- }
18174
18448
  }
18175
18449
  }
18176
18450
  }
18177
18451
  } else {
18178
- 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" }];
18452
+ 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" }];
18179
18453
  return false;
18180
18454
  }
18181
18455
  }
18182
- var valid1 = _errs33 === errors;
18456
+ var valid1 = _errs35 === errors;
18183
18457
  } else {
18184
18458
  var valid1 = true;
18185
18459
  }
18460
+ if (valid1) {
18461
+ if (data.decisionDisclosures !== void 0) {
18462
+ let data31 = data.decisionDisclosures;
18463
+ const _errs70 = errors;
18464
+ if (errors === _errs70) {
18465
+ if (Array.isArray(data31)) {
18466
+ if (data31.length > 16) {
18467
+ 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" }];
18468
+ return false;
18469
+ } else {
18470
+ if (data31.length < 1) {
18471
+ 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" }];
18472
+ return false;
18473
+ } else {
18474
+ var valid11 = true;
18475
+ const len4 = data31.length;
18476
+ for (let i4 = 0; i4 < len4; i4++) {
18477
+ let data32 = data31[i4];
18478
+ const _errs72 = errors;
18479
+ if (errors === _errs72) {
18480
+ if (data32 && typeof data32 == "object" && !Array.isArray(data32)) {
18481
+ let missing6;
18482
+ if (data32.decisionId === void 0 && (missing6 = "decisionId") || data32.shortId === void 0 && (missing6 = "shortId") || data32.participation === void 0 && (missing6 = "participation")) {
18483
+ 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 + "'" }];
18484
+ return false;
18485
+ } else {
18486
+ const _errs74 = errors;
18487
+ for (const key3 in data32) {
18488
+ if (!(key3 === "decisionId" || key3 === "shortId" || key3 === "participation")) {
18489
+ 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" }];
18490
+ return false;
18491
+ break;
18492
+ }
18493
+ }
18494
+ if (_errs74 === errors) {
18495
+ if (data32.decisionId !== void 0) {
18496
+ const _errs75 = errors;
18497
+ if (typeof data32.decisionId !== "string") {
18498
+ 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" }];
18499
+ return false;
18500
+ }
18501
+ var valid12 = _errs75 === errors;
18502
+ } else {
18503
+ var valid12 = true;
18504
+ }
18505
+ if (valid12) {
18506
+ if (data32.shortId !== void 0) {
18507
+ const _errs77 = errors;
18508
+ if (typeof data32.shortId !== "string") {
18509
+ 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" }];
18510
+ return false;
18511
+ }
18512
+ var valid12 = _errs77 === errors;
18513
+ } else {
18514
+ var valid12 = true;
18515
+ }
18516
+ if (valid12) {
18517
+ if (data32.participation !== void 0) {
18518
+ let data35 = data32.participation;
18519
+ const _errs79 = errors;
18520
+ if (typeof data35 !== "string") {
18521
+ 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" }];
18522
+ return false;
18523
+ }
18524
+ if (!(data35 === "candidate" || data35 === "reconcile_bypass")) {
18525
+ 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" }];
18526
+ return false;
18527
+ }
18528
+ var valid12 = _errs79 === errors;
18529
+ } else {
18530
+ var valid12 = true;
18531
+ }
18532
+ }
18533
+ }
18534
+ }
18535
+ }
18536
+ } else {
18537
+ 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" }];
18538
+ return false;
18539
+ }
18540
+ }
18541
+ var valid11 = _errs72 === errors;
18542
+ if (!valid11) {
18543
+ break;
18544
+ }
18545
+ }
18546
+ }
18547
+ }
18548
+ } else {
18549
+ 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" }];
18550
+ return false;
18551
+ }
18552
+ }
18553
+ var valid1 = _errs70 === errors;
18554
+ } else {
18555
+ var valid1 = true;
18556
+ }
18557
+ }
18186
18558
  }
18187
18559
  }
18188
18560
  }