@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.
@@ -34233,7 +34233,7 @@ function validate57(data, { instancePath = "", parentData, parentDataProperty, r
34233
34233
  return errors === 0;
34234
34234
  }
34235
34235
  validate57.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
34236
- 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": {} };
34236
+ 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": {} };
34237
34237
  function validate58(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
34238
34238
  ;
34239
34239
  let vErrors = null;
@@ -34364,6 +34364,18 @@ function validate58(data, { instancePath = "", parentData, parentDataProperty, r
34364
34364
  } else {
34365
34365
  var valid3 = true;
34366
34366
  }
34367
+ if (valid3) {
34368
+ if (data6.title !== void 0) {
34369
+ const _errs22 = errors;
34370
+ if (typeof data6.title !== "string") {
34371
+ 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" }];
34372
+ return false;
34373
+ }
34374
+ var valid3 = _errs22 === errors;
34375
+ } else {
34376
+ var valid3 = true;
34377
+ }
34378
+ }
34367
34379
  }
34368
34380
  }
34369
34381
  } else {
@@ -34387,51 +34399,51 @@ function validate58(data, { instancePath = "", parentData, parentDataProperty, r
34387
34399
  }
34388
34400
  if (valid1) {
34389
34401
  if (data.bypassed !== void 0) {
34390
- let data9 = data.bypassed;
34391
- const _errs22 = errors;
34392
- if (errors === _errs22) {
34393
- if (Array.isArray(data9)) {
34402
+ let data10 = data.bypassed;
34403
+ const _errs24 = errors;
34404
+ if (errors === _errs24) {
34405
+ if (Array.isArray(data10)) {
34394
34406
  var valid4 = true;
34395
- const len1 = data9.length;
34407
+ const len1 = data10.length;
34396
34408
  for (let i1 = 0; i1 < len1; i1++) {
34397
- let data10 = data9[i1];
34398
- const _errs24 = errors;
34399
- if (errors === _errs24) {
34400
- if (data10 && typeof data10 == "object" && !Array.isArray(data10)) {
34409
+ let data11 = data10[i1];
34410
+ const _errs26 = errors;
34411
+ if (errors === _errs26) {
34412
+ if (data11 && typeof data11 == "object" && !Array.isArray(data11)) {
34401
34413
  let missing2;
34402
- if (data10.decisionId === void 0 && (missing2 = "decisionId")) {
34414
+ if (data11.decisionId === void 0 && (missing2 = "decisionId")) {
34403
34415
  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 + "'" }];
34404
34416
  return false;
34405
34417
  } else {
34406
- if (data10.decisionId !== void 0) {
34407
- const _errs27 = errors;
34408
- if (typeof data10.decisionId !== "string") {
34418
+ if (data11.decisionId !== void 0) {
34419
+ const _errs29 = errors;
34420
+ if (typeof data11.decisionId !== "string") {
34409
34421
  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" }];
34410
34422
  return false;
34411
34423
  }
34412
- var valid5 = _errs27 === errors;
34424
+ var valid5 = _errs29 === errors;
34413
34425
  } else {
34414
34426
  var valid5 = true;
34415
34427
  }
34416
34428
  if (valid5) {
34417
- if (data10.bypassId !== void 0) {
34418
- const _errs29 = errors;
34419
- if (typeof data10.bypassId !== "string") {
34429
+ if (data11.bypassId !== void 0) {
34430
+ const _errs31 = errors;
34431
+ if (typeof data11.bypassId !== "string") {
34420
34432
  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" }];
34421
34433
  return false;
34422
34434
  }
34423
- var valid5 = _errs29 === errors;
34435
+ var valid5 = _errs31 === errors;
34424
34436
  } else {
34425
34437
  var valid5 = true;
34426
34438
  }
34427
34439
  if (valid5) {
34428
- if (data10.shortId !== void 0) {
34429
- const _errs31 = errors;
34430
- if (typeof data10.shortId !== "string") {
34440
+ if (data11.shortId !== void 0) {
34441
+ const _errs33 = errors;
34442
+ if (typeof data11.shortId !== "string") {
34431
34443
  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" }];
34432
34444
  return false;
34433
34445
  }
34434
- var valid5 = _errs31 === errors;
34446
+ var valid5 = _errs33 === errors;
34435
34447
  } else {
34436
34448
  var valid5 = true;
34437
34449
  }
@@ -34443,7 +34455,7 @@ function validate58(data, { instancePath = "", parentData, parentDataProperty, r
34443
34455
  return false;
34444
34456
  }
34445
34457
  }
34446
- var valid4 = _errs24 === errors;
34458
+ var valid4 = _errs26 === errors;
34447
34459
  if (!valid4) {
34448
34460
  break;
34449
34461
  }
@@ -34453,107 +34465,467 @@ function validate58(data, { instancePath = "", parentData, parentDataProperty, r
34453
34465
  return false;
34454
34466
  }
34455
34467
  }
34456
- var valid1 = _errs22 === errors;
34468
+ var valid1 = _errs24 === errors;
34457
34469
  } else {
34458
34470
  var valid1 = true;
34459
34471
  }
34460
34472
  if (valid1) {
34461
- if (data.decisionDisclosures !== void 0) {
34462
- let data14 = data.decisionDisclosures;
34463
- const _errs33 = errors;
34464
- if (errors === _errs33) {
34465
- if (Array.isArray(data14)) {
34466
- if (data14.length > 16) {
34467
- 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" }];
34473
+ if (data.evaluationCoverage !== void 0) {
34474
+ let data15 = data.evaluationCoverage;
34475
+ const _errs35 = errors;
34476
+ if (errors === _errs35) {
34477
+ if (data15 && typeof data15 == "object" && !Array.isArray(data15)) {
34478
+ let missing3;
34479
+ 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")) {
34480
+ 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 + "'" }];
34468
34481
  return false;
34469
34482
  } else {
34470
- if (data14.length < 1) {
34471
- 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" }];
34472
- return false;
34473
- } else {
34474
- var valid6 = true;
34475
- const len2 = data14.length;
34476
- for (let i2 = 0; i2 < len2; i2++) {
34477
- let data15 = data14[i2];
34478
- const _errs35 = errors;
34479
- if (errors === _errs35) {
34480
- if (data15 && typeof data15 == "object" && !Array.isArray(data15)) {
34481
- let missing3;
34482
- if (data15.decisionId === void 0 && (missing3 = "decisionId") || data15.shortId === void 0 && (missing3 = "shortId") || data15.participation === void 0 && (missing3 = "participation")) {
34483
- 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 + "'" }];
34483
+ const _errs37 = errors;
34484
+ for (const key0 in data15) {
34485
+ if (!(key0 === "candidateCount" || key0 === "submittedCount" || key0 === "evaluatedCount" || key0 === "status" || key0 === "semanticBatchCount" || key0 === "completedSemanticBatchCount" || key0 === "selectionOmissions" || key0 === "evidenceOmissions")) {
34486
+ 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" }];
34487
+ return false;
34488
+ break;
34489
+ }
34490
+ }
34491
+ if (_errs37 === errors) {
34492
+ if (data15.candidateCount !== void 0) {
34493
+ let data16 = data15.candidateCount;
34494
+ const _errs38 = errors;
34495
+ if (!(typeof data16 == "number" && (!(data16 % 1) && !isNaN(data16)) && isFinite(data16))) {
34496
+ 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" }];
34497
+ return false;
34498
+ }
34499
+ if (errors === _errs38) {
34500
+ if (typeof data16 == "number" && isFinite(data16)) {
34501
+ if (data16 > 9007199254740991 || isNaN(data16)) {
34502
+ 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" }];
34484
34503
  return false;
34485
34504
  } else {
34486
- const _errs37 = errors;
34487
- for (const key0 in data15) {
34488
- if (!(key0 === "decisionId" || key0 === "shortId" || key0 === "participation")) {
34489
- 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" }];
34505
+ if (data16 < 0 || isNaN(data16)) {
34506
+ 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" }];
34507
+ return false;
34508
+ }
34509
+ }
34510
+ }
34511
+ }
34512
+ var valid6 = _errs38 === errors;
34513
+ } else {
34514
+ var valid6 = true;
34515
+ }
34516
+ if (valid6) {
34517
+ if (data15.submittedCount !== void 0) {
34518
+ let data17 = data15.submittedCount;
34519
+ const _errs40 = errors;
34520
+ if (!(typeof data17 == "number" && (!(data17 % 1) && !isNaN(data17)) && isFinite(data17))) {
34521
+ 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" }];
34522
+ return false;
34523
+ }
34524
+ if (errors === _errs40) {
34525
+ if (typeof data17 == "number" && isFinite(data17)) {
34526
+ if (data17 > 9007199254740991 || isNaN(data17)) {
34527
+ 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" }];
34528
+ return false;
34529
+ } else {
34530
+ if (data17 < 0 || isNaN(data17)) {
34531
+ 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" }];
34490
34532
  return false;
34491
- break;
34492
34533
  }
34493
34534
  }
34494
- if (_errs37 === errors) {
34495
- if (data15.decisionId !== void 0) {
34496
- const _errs38 = errors;
34497
- if (typeof data15.decisionId !== "string") {
34498
- 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" }];
34535
+ }
34536
+ }
34537
+ var valid6 = _errs40 === errors;
34538
+ } else {
34539
+ var valid6 = true;
34540
+ }
34541
+ if (valid6) {
34542
+ if (data15.evaluatedCount !== void 0) {
34543
+ let data18 = data15.evaluatedCount;
34544
+ const _errs42 = errors;
34545
+ if (!(typeof data18 == "number" && (!(data18 % 1) && !isNaN(data18)) && isFinite(data18))) {
34546
+ 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" }];
34547
+ return false;
34548
+ }
34549
+ if (errors === _errs42) {
34550
+ if (typeof data18 == "number" && isFinite(data18)) {
34551
+ if (data18 > 9007199254740991 || isNaN(data18)) {
34552
+ 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" }];
34553
+ return false;
34554
+ } else {
34555
+ if (data18 < 0 || isNaN(data18)) {
34556
+ 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" }];
34499
34557
  return false;
34500
34558
  }
34501
- var valid7 = _errs38 === errors;
34502
- } else {
34503
- var valid7 = true;
34504
34559
  }
34505
- if (valid7) {
34506
- if (data15.shortId !== void 0) {
34507
- const _errs40 = errors;
34508
- if (typeof data15.shortId !== "string") {
34509
- 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" }];
34560
+ }
34561
+ }
34562
+ var valid6 = _errs42 === errors;
34563
+ } else {
34564
+ var valid6 = true;
34565
+ }
34566
+ if (valid6) {
34567
+ if (data15.status !== void 0) {
34568
+ let data19 = data15.status;
34569
+ const _errs44 = errors;
34570
+ if (typeof data19 !== "string") {
34571
+ 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" }];
34572
+ return false;
34573
+ }
34574
+ if (!(data19 === "completed" || data19 === "partial" || data19 === "unavailable" || data19 === "not_run" || data19 === "unknown")) {
34575
+ 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" }];
34576
+ return false;
34577
+ }
34578
+ var valid6 = _errs44 === errors;
34579
+ } else {
34580
+ var valid6 = true;
34581
+ }
34582
+ if (valid6) {
34583
+ if (data15.semanticBatchCount !== void 0) {
34584
+ let data20 = data15.semanticBatchCount;
34585
+ const _errs46 = errors;
34586
+ if (!(typeof data20 == "number" && (!(data20 % 1) && !isNaN(data20)) && isFinite(data20))) {
34587
+ 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" }];
34588
+ return false;
34589
+ }
34590
+ if (errors === _errs46) {
34591
+ if (typeof data20 == "number" && isFinite(data20)) {
34592
+ if (data20 > 9007199254740991 || isNaN(data20)) {
34593
+ 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" }];
34510
34594
  return false;
34595
+ } else {
34596
+ if (data20 < 0 || isNaN(data20)) {
34597
+ 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" }];
34598
+ return false;
34599
+ }
34511
34600
  }
34512
- var valid7 = _errs40 === errors;
34513
- } else {
34514
- var valid7 = true;
34515
34601
  }
34516
- if (valid7) {
34517
- if (data15.participation !== void 0) {
34518
- let data18 = data15.participation;
34519
- const _errs42 = errors;
34520
- if (typeof data18 !== "string") {
34521
- 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" }];
34602
+ }
34603
+ var valid6 = _errs46 === errors;
34604
+ } else {
34605
+ var valid6 = true;
34606
+ }
34607
+ if (valid6) {
34608
+ if (data15.completedSemanticBatchCount !== void 0) {
34609
+ let data21 = data15.completedSemanticBatchCount;
34610
+ const _errs48 = errors;
34611
+ if (!(typeof data21 == "number" && (!(data21 % 1) && !isNaN(data21)) && isFinite(data21))) {
34612
+ 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" }];
34613
+ return false;
34614
+ }
34615
+ if (errors === _errs48) {
34616
+ if (typeof data21 == "number" && isFinite(data21)) {
34617
+ if (data21 > 9007199254740991 || isNaN(data21)) {
34618
+ 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" }];
34522
34619
  return false;
34620
+ } else {
34621
+ if (data21 < 0 || isNaN(data21)) {
34622
+ 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" }];
34623
+ return false;
34624
+ }
34523
34625
  }
34524
- if (!(data18 === "candidate" || data18 === "reconcile_bypass")) {
34525
- 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" }];
34626
+ }
34627
+ }
34628
+ var valid6 = _errs48 === errors;
34629
+ } else {
34630
+ var valid6 = true;
34631
+ }
34632
+ if (valid6) {
34633
+ if (data15.selectionOmissions !== void 0) {
34634
+ let data22 = data15.selectionOmissions;
34635
+ const _errs50 = errors;
34636
+ if (errors === _errs50) {
34637
+ if (Array.isArray(data22)) {
34638
+ var valid7 = true;
34639
+ const len2 = data22.length;
34640
+ for (let i2 = 0; i2 < len2; i2++) {
34641
+ let data23 = data22[i2];
34642
+ const _errs52 = errors;
34643
+ if (errors === _errs52) {
34644
+ if (data23 && typeof data23 == "object" && !Array.isArray(data23)) {
34645
+ let missing4;
34646
+ if (data23.source === void 0 && (missing4 = "source") || data23.reason === void 0 && (missing4 = "reason") || data23.omittedCountLowerBound === void 0 && (missing4 = "omittedCountLowerBound")) {
34647
+ 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 + "'" }];
34648
+ return false;
34649
+ } else {
34650
+ const _errs54 = errors;
34651
+ for (const key1 in data23) {
34652
+ if (!(key1 === "source" || key1 === "reason" || key1 === "omittedCountLowerBound")) {
34653
+ 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" }];
34654
+ return false;
34655
+ break;
34656
+ }
34657
+ }
34658
+ if (_errs54 === errors) {
34659
+ if (data23.source !== void 0) {
34660
+ let data24 = data23.source;
34661
+ const _errs55 = errors;
34662
+ if (typeof data24 !== "string") {
34663
+ 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" }];
34664
+ return false;
34665
+ }
34666
+ if (!(data24 === "exact_scope" || data24 === "location_scope" || data24 === "organization_scope" || data24 === "candidate_scan" || data24 === "candidate_limit" || data24 === "bypass_scan")) {
34667
+ 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" }];
34668
+ return false;
34669
+ }
34670
+ var valid8 = _errs55 === errors;
34671
+ } else {
34672
+ var valid8 = true;
34673
+ }
34674
+ if (valid8) {
34675
+ if (data23.reason !== void 0) {
34676
+ let data25 = data23.reason;
34677
+ const _errs57 = errors;
34678
+ if (typeof data25 !== "string") {
34679
+ 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" }];
34680
+ return false;
34681
+ }
34682
+ if (!(data25 === "scan_limit" || data25 === "candidate_limit" || data25 === "bucket_limit")) {
34683
+ 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" }];
34684
+ return false;
34685
+ }
34686
+ var valid8 = _errs57 === errors;
34687
+ } else {
34688
+ var valid8 = true;
34689
+ }
34690
+ if (valid8) {
34691
+ if (data23.omittedCountLowerBound !== void 0) {
34692
+ let data26 = data23.omittedCountLowerBound;
34693
+ const _errs59 = errors;
34694
+ if (!(typeof data26 == "number" && (!(data26 % 1) && !isNaN(data26)) && isFinite(data26))) {
34695
+ 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" }];
34696
+ return false;
34697
+ }
34698
+ if (errors === _errs59) {
34699
+ if (typeof data26 == "number" && isFinite(data26)) {
34700
+ if (data26 > 9007199254740991 || isNaN(data26)) {
34701
+ 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" }];
34702
+ return false;
34703
+ } else {
34704
+ if (data26 < 0 || isNaN(data26)) {
34705
+ 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" }];
34706
+ return false;
34707
+ }
34708
+ }
34709
+ }
34710
+ }
34711
+ var valid8 = _errs59 === errors;
34712
+ } else {
34713
+ var valid8 = true;
34714
+ }
34715
+ }
34716
+ }
34717
+ }
34718
+ }
34719
+ } else {
34720
+ 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" }];
34721
+ return false;
34722
+ }
34723
+ }
34724
+ var valid7 = _errs52 === errors;
34725
+ if (!valid7) {
34726
+ break;
34727
+ }
34728
+ }
34729
+ } else {
34730
+ 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" }];
34526
34731
  return false;
34527
34732
  }
34528
- var valid7 = _errs42 === errors;
34733
+ }
34734
+ var valid6 = _errs50 === errors;
34735
+ } else {
34736
+ var valid6 = true;
34737
+ }
34738
+ if (valid6) {
34739
+ if (data15.evidenceOmissions !== void 0) {
34740
+ let data27 = data15.evidenceOmissions;
34741
+ const _errs61 = errors;
34742
+ if (errors === _errs61) {
34743
+ if (Array.isArray(data27)) {
34744
+ var valid9 = true;
34745
+ const len3 = data27.length;
34746
+ for (let i3 = 0; i3 < len3; i3++) {
34747
+ let data28 = data27[i3];
34748
+ const _errs63 = errors;
34749
+ if (errors === _errs63) {
34750
+ if (data28 && typeof data28 == "object" && !Array.isArray(data28)) {
34751
+ let missing5;
34752
+ if (data28.decisionId === void 0 && (missing5 = "decisionId") || data28.reason === void 0 && (missing5 = "reason")) {
34753
+ 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 + "'" }];
34754
+ return false;
34755
+ } else {
34756
+ const _errs65 = errors;
34757
+ for (const key2 in data28) {
34758
+ if (!(key2 === "decisionId" || key2 === "reason")) {
34759
+ 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" }];
34760
+ return false;
34761
+ break;
34762
+ }
34763
+ }
34764
+ if (_errs65 === errors) {
34765
+ if (data28.decisionId !== void 0) {
34766
+ const _errs66 = errors;
34767
+ if (typeof data28.decisionId !== "string") {
34768
+ 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" }];
34769
+ return false;
34770
+ }
34771
+ var valid10 = _errs66 === errors;
34772
+ } else {
34773
+ var valid10 = true;
34774
+ }
34775
+ if (valid10) {
34776
+ if (data28.reason !== void 0) {
34777
+ let data30 = data28.reason;
34778
+ const _errs68 = errors;
34779
+ if (typeof data30 !== "string") {
34780
+ 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" }];
34781
+ return false;
34782
+ }
34783
+ if (!(data30 === "prompt_budget" || data30 === "batch_limit" || data30 === "evaluation_failed" || data30 === "evaluation_deadline")) {
34784
+ 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" }];
34785
+ return false;
34786
+ }
34787
+ var valid10 = _errs68 === errors;
34788
+ } else {
34789
+ var valid10 = true;
34790
+ }
34791
+ }
34792
+ }
34793
+ }
34794
+ } else {
34795
+ 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" }];
34796
+ return false;
34797
+ }
34798
+ }
34799
+ var valid9 = _errs63 === errors;
34800
+ if (!valid9) {
34801
+ break;
34802
+ }
34803
+ }
34804
+ } else {
34805
+ 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" }];
34806
+ return false;
34807
+ }
34808
+ }
34809
+ var valid6 = _errs61 === errors;
34529
34810
  } else {
34530
- var valid7 = true;
34811
+ var valid6 = true;
34531
34812
  }
34532
34813
  }
34533
34814
  }
34534
34815
  }
34535
34816
  }
34536
- } else {
34537
- 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" }];
34538
- return false;
34539
34817
  }
34540
34818
  }
34541
- var valid6 = _errs35 === errors;
34542
- if (!valid6) {
34543
- break;
34544
- }
34545
34819
  }
34546
34820
  }
34547
34821
  }
34548
34822
  } else {
34549
- 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" }];
34823
+ 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" }];
34550
34824
  return false;
34551
34825
  }
34552
34826
  }
34553
- var valid1 = _errs33 === errors;
34827
+ var valid1 = _errs35 === errors;
34554
34828
  } else {
34555
34829
  var valid1 = true;
34556
34830
  }
34831
+ if (valid1) {
34832
+ if (data.decisionDisclosures !== void 0) {
34833
+ let data31 = data.decisionDisclosures;
34834
+ const _errs70 = errors;
34835
+ if (errors === _errs70) {
34836
+ if (Array.isArray(data31)) {
34837
+ if (data31.length > 16) {
34838
+ 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" }];
34839
+ return false;
34840
+ } else {
34841
+ if (data31.length < 1) {
34842
+ 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" }];
34843
+ return false;
34844
+ } else {
34845
+ var valid11 = true;
34846
+ const len4 = data31.length;
34847
+ for (let i4 = 0; i4 < len4; i4++) {
34848
+ let data32 = data31[i4];
34849
+ const _errs72 = errors;
34850
+ if (errors === _errs72) {
34851
+ if (data32 && typeof data32 == "object" && !Array.isArray(data32)) {
34852
+ let missing6;
34853
+ if (data32.decisionId === void 0 && (missing6 = "decisionId") || data32.shortId === void 0 && (missing6 = "shortId") || data32.participation === void 0 && (missing6 = "participation")) {
34854
+ 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 + "'" }];
34855
+ return false;
34856
+ } else {
34857
+ const _errs74 = errors;
34858
+ for (const key3 in data32) {
34859
+ if (!(key3 === "decisionId" || key3 === "shortId" || key3 === "participation")) {
34860
+ 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" }];
34861
+ return false;
34862
+ break;
34863
+ }
34864
+ }
34865
+ if (_errs74 === errors) {
34866
+ if (data32.decisionId !== void 0) {
34867
+ const _errs75 = errors;
34868
+ if (typeof data32.decisionId !== "string") {
34869
+ 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" }];
34870
+ return false;
34871
+ }
34872
+ var valid12 = _errs75 === errors;
34873
+ } else {
34874
+ var valid12 = true;
34875
+ }
34876
+ if (valid12) {
34877
+ if (data32.shortId !== void 0) {
34878
+ const _errs77 = errors;
34879
+ if (typeof data32.shortId !== "string") {
34880
+ 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" }];
34881
+ return false;
34882
+ }
34883
+ var valid12 = _errs77 === errors;
34884
+ } else {
34885
+ var valid12 = true;
34886
+ }
34887
+ if (valid12) {
34888
+ if (data32.participation !== void 0) {
34889
+ let data35 = data32.participation;
34890
+ const _errs79 = errors;
34891
+ if (typeof data35 !== "string") {
34892
+ 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" }];
34893
+ return false;
34894
+ }
34895
+ if (!(data35 === "candidate" || data35 === "reconcile_bypass")) {
34896
+ 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" }];
34897
+ return false;
34898
+ }
34899
+ var valid12 = _errs79 === errors;
34900
+ } else {
34901
+ var valid12 = true;
34902
+ }
34903
+ }
34904
+ }
34905
+ }
34906
+ }
34907
+ } else {
34908
+ 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" }];
34909
+ return false;
34910
+ }
34911
+ }
34912
+ var valid11 = _errs72 === errors;
34913
+ if (!valid11) {
34914
+ break;
34915
+ }
34916
+ }
34917
+ }
34918
+ }
34919
+ } else {
34920
+ 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" }];
34921
+ return false;
34922
+ }
34923
+ }
34924
+ var valid1 = _errs70 === errors;
34925
+ } else {
34926
+ var valid1 = true;
34927
+ }
34928
+ }
34557
34929
  }
34558
34930
  }
34559
34931
  }