@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.
@@ -17651,7 +17651,7 @@ function validate57(data, { instancePath = "", parentData, parentDataProperty, r
17651
17651
  return errors === 0;
17652
17652
  }
17653
17653
  validate57.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
17654
- 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": {} };
17654
+ 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": {} };
17655
17655
  function validate58(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
17656
17656
  ;
17657
17657
  let vErrors = null;
@@ -17782,6 +17782,18 @@ function validate58(data, { instancePath = "", parentData, parentDataProperty, r
17782
17782
  } else {
17783
17783
  var valid3 = true;
17784
17784
  }
17785
+ if (valid3) {
17786
+ if (data6.title !== void 0) {
17787
+ const _errs22 = errors;
17788
+ if (typeof data6.title !== "string") {
17789
+ 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" }];
17790
+ return false;
17791
+ }
17792
+ var valid3 = _errs22 === errors;
17793
+ } else {
17794
+ var valid3 = true;
17795
+ }
17796
+ }
17785
17797
  }
17786
17798
  }
17787
17799
  } else {
@@ -17805,51 +17817,51 @@ function validate58(data, { instancePath = "", parentData, parentDataProperty, r
17805
17817
  }
17806
17818
  if (valid1) {
17807
17819
  if (data.bypassed !== void 0) {
17808
- let data9 = data.bypassed;
17809
- const _errs22 = errors;
17810
- if (errors === _errs22) {
17811
- if (Array.isArray(data9)) {
17820
+ let data10 = data.bypassed;
17821
+ const _errs24 = errors;
17822
+ if (errors === _errs24) {
17823
+ if (Array.isArray(data10)) {
17812
17824
  var valid4 = true;
17813
- const len1 = data9.length;
17825
+ const len1 = data10.length;
17814
17826
  for (let i1 = 0; i1 < len1; i1++) {
17815
- let data10 = data9[i1];
17816
- const _errs24 = errors;
17817
- if (errors === _errs24) {
17818
- if (data10 && typeof data10 == "object" && !Array.isArray(data10)) {
17827
+ let data11 = data10[i1];
17828
+ const _errs26 = errors;
17829
+ if (errors === _errs26) {
17830
+ if (data11 && typeof data11 == "object" && !Array.isArray(data11)) {
17819
17831
  let missing2;
17820
- if (data10.decisionId === void 0 && (missing2 = "decisionId")) {
17832
+ if (data11.decisionId === void 0 && (missing2 = "decisionId")) {
17821
17833
  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 + "'" }];
17822
17834
  return false;
17823
17835
  } else {
17824
- if (data10.decisionId !== void 0) {
17825
- const _errs27 = errors;
17826
- if (typeof data10.decisionId !== "string") {
17836
+ if (data11.decisionId !== void 0) {
17837
+ const _errs29 = errors;
17838
+ if (typeof data11.decisionId !== "string") {
17827
17839
  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" }];
17828
17840
  return false;
17829
17841
  }
17830
- var valid5 = _errs27 === errors;
17842
+ var valid5 = _errs29 === errors;
17831
17843
  } else {
17832
17844
  var valid5 = true;
17833
17845
  }
17834
17846
  if (valid5) {
17835
- if (data10.bypassId !== void 0) {
17836
- const _errs29 = errors;
17837
- if (typeof data10.bypassId !== "string") {
17847
+ if (data11.bypassId !== void 0) {
17848
+ const _errs31 = errors;
17849
+ if (typeof data11.bypassId !== "string") {
17838
17850
  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" }];
17839
17851
  return false;
17840
17852
  }
17841
- var valid5 = _errs29 === errors;
17853
+ var valid5 = _errs31 === errors;
17842
17854
  } else {
17843
17855
  var valid5 = true;
17844
17856
  }
17845
17857
  if (valid5) {
17846
- if (data10.shortId !== void 0) {
17847
- const _errs31 = errors;
17848
- if (typeof data10.shortId !== "string") {
17858
+ if (data11.shortId !== void 0) {
17859
+ const _errs33 = errors;
17860
+ if (typeof data11.shortId !== "string") {
17849
17861
  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" }];
17850
17862
  return false;
17851
17863
  }
17852
- var valid5 = _errs31 === errors;
17864
+ var valid5 = _errs33 === errors;
17853
17865
  } else {
17854
17866
  var valid5 = true;
17855
17867
  }
@@ -17861,7 +17873,7 @@ function validate58(data, { instancePath = "", parentData, parentDataProperty, r
17861
17873
  return false;
17862
17874
  }
17863
17875
  }
17864
- var valid4 = _errs24 === errors;
17876
+ var valid4 = _errs26 === errors;
17865
17877
  if (!valid4) {
17866
17878
  break;
17867
17879
  }
@@ -17871,107 +17883,467 @@ function validate58(data, { instancePath = "", parentData, parentDataProperty, r
17871
17883
  return false;
17872
17884
  }
17873
17885
  }
17874
- var valid1 = _errs22 === errors;
17886
+ var valid1 = _errs24 === errors;
17875
17887
  } else {
17876
17888
  var valid1 = true;
17877
17889
  }
17878
17890
  if (valid1) {
17879
- if (data.decisionDisclosures !== void 0) {
17880
- let data14 = data.decisionDisclosures;
17881
- const _errs33 = errors;
17882
- if (errors === _errs33) {
17883
- if (Array.isArray(data14)) {
17884
- if (data14.length > 16) {
17885
- 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" }];
17891
+ if (data.evaluationCoverage !== void 0) {
17892
+ let data15 = data.evaluationCoverage;
17893
+ const _errs35 = errors;
17894
+ if (errors === _errs35) {
17895
+ if (data15 && typeof data15 == "object" && !Array.isArray(data15)) {
17896
+ let missing3;
17897
+ 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")) {
17898
+ 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 + "'" }];
17886
17899
  return false;
17887
17900
  } else {
17888
- if (data14.length < 1) {
17889
- 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" }];
17890
- return false;
17891
- } else {
17892
- var valid6 = true;
17893
- const len2 = data14.length;
17894
- for (let i2 = 0; i2 < len2; i2++) {
17895
- let data15 = data14[i2];
17896
- const _errs35 = errors;
17897
- if (errors === _errs35) {
17898
- if (data15 && typeof data15 == "object" && !Array.isArray(data15)) {
17899
- let missing3;
17900
- if (data15.decisionId === void 0 && (missing3 = "decisionId") || data15.shortId === void 0 && (missing3 = "shortId") || data15.participation === void 0 && (missing3 = "participation")) {
17901
- 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 + "'" }];
17901
+ const _errs37 = errors;
17902
+ for (const key0 in data15) {
17903
+ if (!(key0 === "candidateCount" || key0 === "submittedCount" || key0 === "evaluatedCount" || key0 === "status" || key0 === "semanticBatchCount" || key0 === "completedSemanticBatchCount" || key0 === "selectionOmissions" || key0 === "evidenceOmissions")) {
17904
+ 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" }];
17905
+ return false;
17906
+ break;
17907
+ }
17908
+ }
17909
+ if (_errs37 === errors) {
17910
+ if (data15.candidateCount !== void 0) {
17911
+ let data16 = data15.candidateCount;
17912
+ const _errs38 = errors;
17913
+ if (!(typeof data16 == "number" && (!(data16 % 1) && !isNaN(data16)) && isFinite(data16))) {
17914
+ 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" }];
17915
+ return false;
17916
+ }
17917
+ if (errors === _errs38) {
17918
+ if (typeof data16 == "number" && isFinite(data16)) {
17919
+ if (data16 > 9007199254740991 || isNaN(data16)) {
17920
+ 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" }];
17902
17921
  return false;
17903
17922
  } else {
17904
- const _errs37 = errors;
17905
- for (const key0 in data15) {
17906
- if (!(key0 === "decisionId" || key0 === "shortId" || key0 === "participation")) {
17907
- 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" }];
17923
+ if (data16 < 0 || isNaN(data16)) {
17924
+ 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" }];
17925
+ return false;
17926
+ }
17927
+ }
17928
+ }
17929
+ }
17930
+ var valid6 = _errs38 === errors;
17931
+ } else {
17932
+ var valid6 = true;
17933
+ }
17934
+ if (valid6) {
17935
+ if (data15.submittedCount !== void 0) {
17936
+ let data17 = data15.submittedCount;
17937
+ const _errs40 = errors;
17938
+ if (!(typeof data17 == "number" && (!(data17 % 1) && !isNaN(data17)) && isFinite(data17))) {
17939
+ 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" }];
17940
+ return false;
17941
+ }
17942
+ if (errors === _errs40) {
17943
+ if (typeof data17 == "number" && isFinite(data17)) {
17944
+ if (data17 > 9007199254740991 || isNaN(data17)) {
17945
+ 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" }];
17946
+ return false;
17947
+ } else {
17948
+ if (data17 < 0 || isNaN(data17)) {
17949
+ 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" }];
17908
17950
  return false;
17909
- break;
17910
17951
  }
17911
17952
  }
17912
- if (_errs37 === errors) {
17913
- if (data15.decisionId !== void 0) {
17914
- const _errs38 = errors;
17915
- if (typeof data15.decisionId !== "string") {
17916
- 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" }];
17953
+ }
17954
+ }
17955
+ var valid6 = _errs40 === errors;
17956
+ } else {
17957
+ var valid6 = true;
17958
+ }
17959
+ if (valid6) {
17960
+ if (data15.evaluatedCount !== void 0) {
17961
+ let data18 = data15.evaluatedCount;
17962
+ const _errs42 = errors;
17963
+ if (!(typeof data18 == "number" && (!(data18 % 1) && !isNaN(data18)) && isFinite(data18))) {
17964
+ 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" }];
17965
+ return false;
17966
+ }
17967
+ if (errors === _errs42) {
17968
+ if (typeof data18 == "number" && isFinite(data18)) {
17969
+ if (data18 > 9007199254740991 || isNaN(data18)) {
17970
+ 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" }];
17971
+ return false;
17972
+ } else {
17973
+ if (data18 < 0 || isNaN(data18)) {
17974
+ 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" }];
17917
17975
  return false;
17918
17976
  }
17919
- var valid7 = _errs38 === errors;
17920
- } else {
17921
- var valid7 = true;
17922
17977
  }
17923
- if (valid7) {
17924
- if (data15.shortId !== void 0) {
17925
- const _errs40 = errors;
17926
- if (typeof data15.shortId !== "string") {
17927
- 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" }];
17978
+ }
17979
+ }
17980
+ var valid6 = _errs42 === errors;
17981
+ } else {
17982
+ var valid6 = true;
17983
+ }
17984
+ if (valid6) {
17985
+ if (data15.status !== void 0) {
17986
+ let data19 = data15.status;
17987
+ const _errs44 = errors;
17988
+ if (typeof data19 !== "string") {
17989
+ 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" }];
17990
+ return false;
17991
+ }
17992
+ if (!(data19 === "completed" || data19 === "partial" || data19 === "unavailable" || data19 === "not_run" || data19 === "unknown")) {
17993
+ 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" }];
17994
+ return false;
17995
+ }
17996
+ var valid6 = _errs44 === errors;
17997
+ } else {
17998
+ var valid6 = true;
17999
+ }
18000
+ if (valid6) {
18001
+ if (data15.semanticBatchCount !== void 0) {
18002
+ let data20 = data15.semanticBatchCount;
18003
+ const _errs46 = errors;
18004
+ if (!(typeof data20 == "number" && (!(data20 % 1) && !isNaN(data20)) && isFinite(data20))) {
18005
+ 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" }];
18006
+ return false;
18007
+ }
18008
+ if (errors === _errs46) {
18009
+ if (typeof data20 == "number" && isFinite(data20)) {
18010
+ if (data20 > 9007199254740991 || isNaN(data20)) {
18011
+ 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" }];
17928
18012
  return false;
18013
+ } else {
18014
+ if (data20 < 0 || isNaN(data20)) {
18015
+ 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" }];
18016
+ return false;
18017
+ }
17929
18018
  }
17930
- var valid7 = _errs40 === errors;
17931
- } else {
17932
- var valid7 = true;
17933
18019
  }
17934
- if (valid7) {
17935
- if (data15.participation !== void 0) {
17936
- let data18 = data15.participation;
17937
- const _errs42 = errors;
17938
- if (typeof data18 !== "string") {
17939
- 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" }];
18020
+ }
18021
+ var valid6 = _errs46 === errors;
18022
+ } else {
18023
+ var valid6 = true;
18024
+ }
18025
+ if (valid6) {
18026
+ if (data15.completedSemanticBatchCount !== void 0) {
18027
+ let data21 = data15.completedSemanticBatchCount;
18028
+ const _errs48 = errors;
18029
+ if (!(typeof data21 == "number" && (!(data21 % 1) && !isNaN(data21)) && isFinite(data21))) {
18030
+ 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" }];
18031
+ return false;
18032
+ }
18033
+ if (errors === _errs48) {
18034
+ if (typeof data21 == "number" && isFinite(data21)) {
18035
+ if (data21 > 9007199254740991 || isNaN(data21)) {
18036
+ 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" }];
17940
18037
  return false;
18038
+ } else {
18039
+ if (data21 < 0 || isNaN(data21)) {
18040
+ 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" }];
18041
+ return false;
18042
+ }
17941
18043
  }
17942
- if (!(data18 === "candidate" || data18 === "reconcile_bypass")) {
17943
- 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" }];
18044
+ }
18045
+ }
18046
+ var valid6 = _errs48 === errors;
18047
+ } else {
18048
+ var valid6 = true;
18049
+ }
18050
+ if (valid6) {
18051
+ if (data15.selectionOmissions !== void 0) {
18052
+ let data22 = data15.selectionOmissions;
18053
+ const _errs50 = errors;
18054
+ if (errors === _errs50) {
18055
+ if (Array.isArray(data22)) {
18056
+ var valid7 = true;
18057
+ const len2 = data22.length;
18058
+ for (let i2 = 0; i2 < len2; i2++) {
18059
+ let data23 = data22[i2];
18060
+ const _errs52 = errors;
18061
+ if (errors === _errs52) {
18062
+ if (data23 && typeof data23 == "object" && !Array.isArray(data23)) {
18063
+ let missing4;
18064
+ if (data23.source === void 0 && (missing4 = "source") || data23.reason === void 0 && (missing4 = "reason") || data23.omittedCountLowerBound === void 0 && (missing4 = "omittedCountLowerBound")) {
18065
+ 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 + "'" }];
18066
+ return false;
18067
+ } else {
18068
+ const _errs54 = errors;
18069
+ for (const key1 in data23) {
18070
+ if (!(key1 === "source" || key1 === "reason" || key1 === "omittedCountLowerBound")) {
18071
+ 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" }];
18072
+ return false;
18073
+ break;
18074
+ }
18075
+ }
18076
+ if (_errs54 === errors) {
18077
+ if (data23.source !== void 0) {
18078
+ let data24 = data23.source;
18079
+ const _errs55 = errors;
18080
+ if (typeof data24 !== "string") {
18081
+ 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" }];
18082
+ return false;
18083
+ }
18084
+ if (!(data24 === "exact_scope" || data24 === "location_scope" || data24 === "organization_scope" || data24 === "candidate_scan" || data24 === "candidate_limit" || data24 === "bypass_scan")) {
18085
+ 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" }];
18086
+ return false;
18087
+ }
18088
+ var valid8 = _errs55 === errors;
18089
+ } else {
18090
+ var valid8 = true;
18091
+ }
18092
+ if (valid8) {
18093
+ if (data23.reason !== void 0) {
18094
+ let data25 = data23.reason;
18095
+ const _errs57 = errors;
18096
+ if (typeof data25 !== "string") {
18097
+ 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" }];
18098
+ return false;
18099
+ }
18100
+ if (!(data25 === "scan_limit" || data25 === "candidate_limit" || data25 === "bucket_limit")) {
18101
+ 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" }];
18102
+ return false;
18103
+ }
18104
+ var valid8 = _errs57 === errors;
18105
+ } else {
18106
+ var valid8 = true;
18107
+ }
18108
+ if (valid8) {
18109
+ if (data23.omittedCountLowerBound !== void 0) {
18110
+ let data26 = data23.omittedCountLowerBound;
18111
+ const _errs59 = errors;
18112
+ if (!(typeof data26 == "number" && (!(data26 % 1) && !isNaN(data26)) && isFinite(data26))) {
18113
+ 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" }];
18114
+ return false;
18115
+ }
18116
+ if (errors === _errs59) {
18117
+ if (typeof data26 == "number" && isFinite(data26)) {
18118
+ if (data26 > 9007199254740991 || isNaN(data26)) {
18119
+ 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" }];
18120
+ return false;
18121
+ } else {
18122
+ if (data26 < 0 || isNaN(data26)) {
18123
+ 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" }];
18124
+ return false;
18125
+ }
18126
+ }
18127
+ }
18128
+ }
18129
+ var valid8 = _errs59 === errors;
18130
+ } else {
18131
+ var valid8 = true;
18132
+ }
18133
+ }
18134
+ }
18135
+ }
18136
+ }
18137
+ } else {
18138
+ 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" }];
18139
+ return false;
18140
+ }
18141
+ }
18142
+ var valid7 = _errs52 === errors;
18143
+ if (!valid7) {
18144
+ break;
18145
+ }
18146
+ }
18147
+ } else {
18148
+ 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" }];
17944
18149
  return false;
17945
18150
  }
17946
- var valid7 = _errs42 === errors;
18151
+ }
18152
+ var valid6 = _errs50 === errors;
18153
+ } else {
18154
+ var valid6 = true;
18155
+ }
18156
+ if (valid6) {
18157
+ if (data15.evidenceOmissions !== void 0) {
18158
+ let data27 = data15.evidenceOmissions;
18159
+ const _errs61 = errors;
18160
+ if (errors === _errs61) {
18161
+ if (Array.isArray(data27)) {
18162
+ var valid9 = true;
18163
+ const len3 = data27.length;
18164
+ for (let i3 = 0; i3 < len3; i3++) {
18165
+ let data28 = data27[i3];
18166
+ const _errs63 = errors;
18167
+ if (errors === _errs63) {
18168
+ if (data28 && typeof data28 == "object" && !Array.isArray(data28)) {
18169
+ let missing5;
18170
+ if (data28.decisionId === void 0 && (missing5 = "decisionId") || data28.reason === void 0 && (missing5 = "reason")) {
18171
+ 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 + "'" }];
18172
+ return false;
18173
+ } else {
18174
+ const _errs65 = errors;
18175
+ for (const key2 in data28) {
18176
+ if (!(key2 === "decisionId" || key2 === "reason")) {
18177
+ 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" }];
18178
+ return false;
18179
+ break;
18180
+ }
18181
+ }
18182
+ if (_errs65 === errors) {
18183
+ if (data28.decisionId !== void 0) {
18184
+ const _errs66 = errors;
18185
+ if (typeof data28.decisionId !== "string") {
18186
+ 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" }];
18187
+ return false;
18188
+ }
18189
+ var valid10 = _errs66 === errors;
18190
+ } else {
18191
+ var valid10 = true;
18192
+ }
18193
+ if (valid10) {
18194
+ if (data28.reason !== void 0) {
18195
+ let data30 = data28.reason;
18196
+ const _errs68 = errors;
18197
+ if (typeof data30 !== "string") {
18198
+ 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" }];
18199
+ return false;
18200
+ }
18201
+ if (!(data30 === "prompt_budget" || data30 === "batch_limit" || data30 === "evaluation_failed" || data30 === "evaluation_deadline")) {
18202
+ 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" }];
18203
+ return false;
18204
+ }
18205
+ var valid10 = _errs68 === errors;
18206
+ } else {
18207
+ var valid10 = true;
18208
+ }
18209
+ }
18210
+ }
18211
+ }
18212
+ } else {
18213
+ 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" }];
18214
+ return false;
18215
+ }
18216
+ }
18217
+ var valid9 = _errs63 === errors;
18218
+ if (!valid9) {
18219
+ break;
18220
+ }
18221
+ }
18222
+ } else {
18223
+ 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" }];
18224
+ return false;
18225
+ }
18226
+ }
18227
+ var valid6 = _errs61 === errors;
17947
18228
  } else {
17948
- var valid7 = true;
18229
+ var valid6 = true;
17949
18230
  }
17950
18231
  }
17951
18232
  }
17952
18233
  }
17953
18234
  }
17954
- } else {
17955
- 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" }];
17956
- return false;
17957
18235
  }
17958
18236
  }
17959
- var valid6 = _errs35 === errors;
17960
- if (!valid6) {
17961
- break;
17962
- }
17963
18237
  }
17964
18238
  }
17965
18239
  }
17966
18240
  } else {
17967
- 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" }];
18241
+ 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" }];
17968
18242
  return false;
17969
18243
  }
17970
18244
  }
17971
- var valid1 = _errs33 === errors;
18245
+ var valid1 = _errs35 === errors;
17972
18246
  } else {
17973
18247
  var valid1 = true;
17974
18248
  }
18249
+ if (valid1) {
18250
+ if (data.decisionDisclosures !== void 0) {
18251
+ let data31 = data.decisionDisclosures;
18252
+ const _errs70 = errors;
18253
+ if (errors === _errs70) {
18254
+ if (Array.isArray(data31)) {
18255
+ if (data31.length > 16) {
18256
+ 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" }];
18257
+ return false;
18258
+ } else {
18259
+ if (data31.length < 1) {
18260
+ 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" }];
18261
+ return false;
18262
+ } else {
18263
+ var valid11 = true;
18264
+ const len4 = data31.length;
18265
+ for (let i4 = 0; i4 < len4; i4++) {
18266
+ let data32 = data31[i4];
18267
+ const _errs72 = errors;
18268
+ if (errors === _errs72) {
18269
+ if (data32 && typeof data32 == "object" && !Array.isArray(data32)) {
18270
+ let missing6;
18271
+ if (data32.decisionId === void 0 && (missing6 = "decisionId") || data32.shortId === void 0 && (missing6 = "shortId") || data32.participation === void 0 && (missing6 = "participation")) {
18272
+ 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 + "'" }];
18273
+ return false;
18274
+ } else {
18275
+ const _errs74 = errors;
18276
+ for (const key3 in data32) {
18277
+ if (!(key3 === "decisionId" || key3 === "shortId" || key3 === "participation")) {
18278
+ 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" }];
18279
+ return false;
18280
+ break;
18281
+ }
18282
+ }
18283
+ if (_errs74 === errors) {
18284
+ if (data32.decisionId !== void 0) {
18285
+ const _errs75 = errors;
18286
+ if (typeof data32.decisionId !== "string") {
18287
+ 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" }];
18288
+ return false;
18289
+ }
18290
+ var valid12 = _errs75 === errors;
18291
+ } else {
18292
+ var valid12 = true;
18293
+ }
18294
+ if (valid12) {
18295
+ if (data32.shortId !== void 0) {
18296
+ const _errs77 = errors;
18297
+ if (typeof data32.shortId !== "string") {
18298
+ 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" }];
18299
+ return false;
18300
+ }
18301
+ var valid12 = _errs77 === errors;
18302
+ } else {
18303
+ var valid12 = true;
18304
+ }
18305
+ if (valid12) {
18306
+ if (data32.participation !== void 0) {
18307
+ let data35 = data32.participation;
18308
+ const _errs79 = errors;
18309
+ if (typeof data35 !== "string") {
18310
+ 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" }];
18311
+ return false;
18312
+ }
18313
+ if (!(data35 === "candidate" || data35 === "reconcile_bypass")) {
18314
+ 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" }];
18315
+ return false;
18316
+ }
18317
+ var valid12 = _errs79 === errors;
18318
+ } else {
18319
+ var valid12 = true;
18320
+ }
18321
+ }
18322
+ }
18323
+ }
18324
+ }
18325
+ } else {
18326
+ 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" }];
18327
+ return false;
18328
+ }
18329
+ }
18330
+ var valid11 = _errs72 === errors;
18331
+ if (!valid11) {
18332
+ break;
18333
+ }
18334
+ }
18335
+ }
18336
+ }
18337
+ } else {
18338
+ 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" }];
18339
+ return false;
18340
+ }
18341
+ }
18342
+ var valid1 = _errs70 === errors;
18343
+ } else {
18344
+ var valid1 = true;
18345
+ }
18346
+ }
17975
18347
  }
17976
18348
  }
17977
18349
  }