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