@primitive.ai/prim 0.1.0-alpha.89 → 0.1.0-alpha.90

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.
@@ -5277,7 +5277,7 @@ function validate28(data, { instancePath = "", parentData, parentDataProperty, r
5277
5277
  return errors === 0;
5278
5278
  }
5279
5279
  validate28.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
5280
- var schema49 = { "type": "object", "properties": { "decision": { "type": "object", "properties": { "id": { "type": "string", "minLength": 1 }, "shortId": { "type": "string" }, "intent": { "type": "string" }, "intentKind": { "type": "string", "enum": ["change", "exploration", "task_execution", "unclear"] }, "rationale": { "type": "string" }, "decided": { "type": "array", "items": { "type": "string" } }, "alternatives": { "type": "array", "items": { "type": "string" } }, "area": { "type": "string" }, "producerKind": { "type": "string" }, "status": { "type": "string", "enum": ["active", "superseded", "under_review"] }, "supersededBy": { "anyOf": [{ "type": "string", "minLength": 1 }, { "type": "null" }] }, "confidence": { "type": "string", "enum": ["high", "medium", "low"] }, "reversibility": { "type": "string", "enum": ["high", "low"] }, "confirmed": { "type": "boolean" }, "respondedAt": { "type": "number" }, "fanOut": { "type": "number" }, "classifiedAt": { "type": "number" }, "authorName": { "type": "string" } }, "required": ["id", "intent", "intentKind", "alternatives", "status", "supersededBy", "confidence", "classifiedAt", "authorName"], "additionalProperties": {} }, "files": { "type": "array", "items": { "type": "string" } }, "flags": { "type": "array", "items": { "type": "object", "properties": { "type": { "type": "string", "enum": ["file_edit", "supersession", "invalidation", "confirmation_request"] }, "file": { "type": "string" }, "flaggedAt": { "type": "number" }, "acknowledgedAt": { "type": "number" }, "gateVerdict": { "type": "string" }, "reason": { "type": "string" } }, "required": ["type", "flaggedAt"], "additionalProperties": {} } }, "dependsOn": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "minLength": 1 }, "shortId": { "type": "string" }, "intent": { "type": "string" }, "area": { "type": "string" }, "authorName": { "type": "string" }, "classifiedAt": { "type": "number" }, "status": { "type": "string", "enum": ["active", "superseded", "under_review"] } }, "required": ["id", "intent", "authorName", "classifiedAt", "status"], "additionalProperties": {} } }, "dependents": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "minLength": 1 }, "shortId": { "type": "string" }, "intent": { "type": "string" }, "area": { "type": "string" }, "authorName": { "type": "string" }, "classifiedAt": { "type": "number" }, "status": { "type": "string", "enum": ["active", "superseded", "under_review"] } }, "required": ["id", "intent", "authorName", "classifiedAt", "status"], "additionalProperties": {} } }, "scope": { "type": "object", "properties": { "location": { "type": "object", "properties": { "repository": { "type": "boolean" }, "directories": { "type": "array", "items": { "type": "string" } }, "globs": { "type": "array", "items": { "type": "string" } }, "branches": { "type": "array", "items": { "type": "string" } } }, "required": ["repository", "directories", "globs", "branches"], "additionalProperties": {} }, "time": { "type": "object", "properties": { "effectiveFrom": { "type": "integer", "minimum": -9007199254740991, "maximum": 9007199254740991 }, "effectiveUntil": { "type": "integer", "minimum": -9007199254740991, "maximum": 9007199254740991 } }, "additionalProperties": {} }, "users": { "type": "array", "items": { "oneOf": [{ "type": "object", "properties": { "kind": { "type": "string", "const": "user" }, "userId": { "type": "string", "minLength": 1 }, "displayName": { "type": "string" } }, "required": ["kind", "userId", "displayName"], "additionalProperties": false }, { "type": "object", "properties": { "kind": { "type": "string", "const": "role" }, "role": { "type": "string", "enum": ["owner", "admin", "member"] } }, "required": ["kind", "role"], "additionalProperties": false }, { "type": "object", "properties": { "kind": { "type": "string", "const": "agent" }, "agent": { "type": "string", "enum": ["claude_code", "codex", "hermes"] } }, "required": ["kind", "agent"], "additionalProperties": false }, { "type": "object", "properties": { "kind": { "type": "string", "const": "credential" }, "credential": { "type": "string", "enum": ["workos_jwt", "workos_api_key", "service_token"] } }, "required": ["kind", "credential"], "additionalProperties": false }] } } }, "required": ["location", "time", "users"], "additionalProperties": {} }, "truncated": { "type": "boolean" } }, "required": ["decision", "files", "flags", "dependsOn", "dependents", "scope", "truncated"], "additionalProperties": {} };
5280
+ var schema49 = { "type": "object", "properties": { "decision": { "type": "object", "properties": { "id": { "type": "string", "minLength": 1 }, "shortId": { "type": "string" }, "intent": { "type": "string" }, "intentKind": { "type": "string", "enum": ["change", "exploration", "task_execution", "unclear"] }, "rationale": { "type": "string" }, "decided": { "type": "array", "items": { "type": "string" } }, "alternatives": { "type": "array", "items": { "type": "string" } }, "area": { "type": "string" }, "producerKind": { "type": "string" }, "stage": { "type": "string", "enum": ["draft", "provisional", "adopted", "superseded", "abandoned"] }, "status": { "type": "string", "enum": ["active", "superseded", "under_review"] }, "supersededBy": { "anyOf": [{ "type": "string", "minLength": 1 }, { "type": "null" }] }, "confidence": { "type": "string", "enum": ["high", "medium", "low"] }, "reversibility": { "type": "string", "enum": ["high", "low"] }, "confirmed": { "type": "boolean" }, "respondedAt": { "type": "number" }, "fanOut": { "type": "number" }, "classifiedAt": { "type": "number" }, "authorName": { "type": "string" } }, "required": ["id", "intent", "intentKind", "alternatives", "stage", "status", "supersededBy", "confidence", "classifiedAt", "authorName"], "additionalProperties": {} }, "files": { "type": "array", "items": { "type": "string" } }, "flags": { "type": "array", "items": { "type": "object", "properties": { "type": { "type": "string", "enum": ["file_edit", "supersession", "invalidation", "confirmation_request"] }, "file": { "type": "string" }, "flaggedAt": { "type": "number" }, "acknowledgedAt": { "type": "number" }, "gateVerdict": { "type": "string" }, "reason": { "type": "string" } }, "required": ["type", "flaggedAt"], "additionalProperties": {} } }, "dependsOn": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "minLength": 1 }, "shortId": { "type": "string" }, "intent": { "type": "string" }, "area": { "type": "string" }, "authorName": { "type": "string" }, "classifiedAt": { "type": "number" }, "status": { "type": "string", "enum": ["active", "superseded", "under_review"] } }, "required": ["id", "intent", "authorName", "classifiedAt", "status"], "additionalProperties": {} } }, "dependents": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "minLength": 1 }, "shortId": { "type": "string" }, "intent": { "type": "string" }, "area": { "type": "string" }, "authorName": { "type": "string" }, "classifiedAt": { "type": "number" }, "status": { "type": "string", "enum": ["active", "superseded", "under_review"] } }, "required": ["id", "intent", "authorName", "classifiedAt", "status"], "additionalProperties": {} } }, "scope": { "type": "object", "properties": { "location": { "type": "object", "properties": { "repository": { "type": "boolean" }, "directories": { "type": "array", "items": { "type": "string" } }, "globs": { "type": "array", "items": { "type": "string" } }, "branches": { "type": "array", "items": { "type": "string" } } }, "required": ["repository", "directories", "globs", "branches"], "additionalProperties": {} }, "time": { "type": "object", "properties": { "effectiveFrom": { "type": "integer", "minimum": -9007199254740991, "maximum": 9007199254740991 }, "effectiveUntil": { "type": "integer", "minimum": -9007199254740991, "maximum": 9007199254740991 } }, "additionalProperties": {} }, "users": { "type": "array", "items": { "oneOf": [{ "type": "object", "properties": { "kind": { "type": "string", "const": "user" }, "userId": { "type": "string", "minLength": 1 }, "displayName": { "type": "string" } }, "required": ["kind", "userId", "displayName"], "additionalProperties": false }, { "type": "object", "properties": { "kind": { "type": "string", "const": "role" }, "role": { "type": "string", "enum": ["owner", "admin", "member"] } }, "required": ["kind", "role"], "additionalProperties": false }, { "type": "object", "properties": { "kind": { "type": "string", "const": "agent" }, "agent": { "type": "string", "enum": ["claude_code", "codex", "hermes"] } }, "required": ["kind", "agent"], "additionalProperties": false }, { "type": "object", "properties": { "kind": { "type": "string", "const": "credential" }, "credential": { "type": "string", "enum": ["workos_jwt", "workos_api_key", "service_token"] } }, "required": ["kind", "credential"], "additionalProperties": false }] } } }, "required": ["location", "time", "users"], "additionalProperties": {} }, "truncated": { "type": "boolean" } }, "required": ["decision", "files", "flags", "dependsOn", "dependents", "scope", "truncated"], "additionalProperties": {} };
5281
5281
  function validate29(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
5282
5282
  ;
5283
5283
  let vErrors = null;
@@ -5303,7 +5303,7 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
5303
5303
  if (errors === _errs3) {
5304
5304
  if (data0 && typeof data0 == "object" && !Array.isArray(data0)) {
5305
5305
  let missing1;
5306
- if (data0.id === void 0 && (missing1 = "id") || data0.intent === void 0 && (missing1 = "intent") || data0.intentKind === void 0 && (missing1 = "intentKind") || data0.alternatives === void 0 && (missing1 = "alternatives") || data0.status === void 0 && (missing1 = "status") || data0.supersededBy === void 0 && (missing1 = "supersededBy") || data0.confidence === void 0 && (missing1 = "confidence") || data0.classifiedAt === void 0 && (missing1 = "classifiedAt") || data0.authorName === void 0 && (missing1 = "authorName")) {
5306
+ if (data0.id === void 0 && (missing1 = "id") || data0.intent === void 0 && (missing1 = "intent") || data0.intentKind === void 0 && (missing1 = "intentKind") || data0.alternatives === void 0 && (missing1 = "alternatives") || data0.stage === void 0 && (missing1 = "stage") || data0.status === void 0 && (missing1 = "status") || data0.supersededBy === void 0 && (missing1 = "supersededBy") || data0.confidence === void 0 && (missing1 = "confidence") || data0.classifiedAt === void 0 && (missing1 = "classifiedAt") || data0.authorName === void 0 && (missing1 = "authorName")) {
5307
5307
  validate29.errors = [{ instancePath: instancePath + "/decision", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionDetailResponse/properties/decision/required", keyword: "required", params: { missingProperty: missing1 }, message: "must have required property '" + missing1 + "'" }];
5308
5308
  return false;
5309
5309
  } else {
@@ -5453,15 +5453,15 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
5453
5453
  var valid2 = true;
5454
5454
  }
5455
5455
  if (valid2) {
5456
- if (data0.status !== void 0) {
5457
- let data12 = data0.status;
5456
+ if (data0.stage !== void 0) {
5457
+ let data12 = data0.stage;
5458
5458
  const _errs28 = errors;
5459
5459
  if (typeof data12 !== "string") {
5460
- validate29.errors = [{ instancePath: instancePath + "/decision/status", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionDetailResponse/properties/decision/properties/status/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
5460
+ validate29.errors = [{ instancePath: instancePath + "/decision/stage", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionDetailResponse/properties/decision/properties/stage/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
5461
5461
  return false;
5462
5462
  }
5463
- if (!(data12 === "active" || data12 === "superseded" || data12 === "under_review")) {
5464
- validate29.errors = [{ instancePath: instancePath + "/decision/status", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionDetailResponse/properties/decision/properties/status/enum", keyword: "enum", params: { allowedValues: schema49.properties.decision.properties.status.enum }, message: "must be equal to one of the allowed values" }];
5463
+ if (!(data12 === "draft" || data12 === "provisional" || data12 === "adopted" || data12 === "superseded" || data12 === "abandoned")) {
5464
+ validate29.errors = [{ instancePath: instancePath + "/decision/stage", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionDetailResponse/properties/decision/properties/stage/enum", keyword: "enum", params: { allowedValues: schema49.properties.decision.properties.stage.enum }, message: "must be equal to one of the allowed values" }];
5465
5465
  return false;
5466
5466
  }
5467
5467
  var valid2 = _errs28 === errors;
@@ -5469,97 +5469,97 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
5469
5469
  var valid2 = true;
5470
5470
  }
5471
5471
  if (valid2) {
5472
- if (data0.supersededBy !== void 0) {
5473
- let data13 = data0.supersededBy;
5472
+ if (data0.status !== void 0) {
5473
+ let data13 = data0.status;
5474
5474
  const _errs30 = errors;
5475
- const _errs31 = errors;
5476
- let valid5 = false;
5477
- const _errs32 = errors;
5478
- if (errors === _errs32) {
5479
- if (typeof data13 === "string") {
5480
- if (func1(data13) < 1) {
5481
- const err0 = { instancePath: instancePath + "/decision/supersededBy", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionDetailResponse/properties/decision/properties/supersededBy/anyOf/0/minLength", keyword: "minLength", params: { limit: 1 }, message: "must NOT have fewer than 1 characters" };
5475
+ if (typeof data13 !== "string") {
5476
+ validate29.errors = [{ instancePath: instancePath + "/decision/status", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionDetailResponse/properties/decision/properties/status/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
5477
+ return false;
5478
+ }
5479
+ if (!(data13 === "active" || data13 === "superseded" || data13 === "under_review")) {
5480
+ validate29.errors = [{ instancePath: instancePath + "/decision/status", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionDetailResponse/properties/decision/properties/status/enum", keyword: "enum", params: { allowedValues: schema49.properties.decision.properties.status.enum }, message: "must be equal to one of the allowed values" }];
5481
+ return false;
5482
+ }
5483
+ var valid2 = _errs30 === errors;
5484
+ } else {
5485
+ var valid2 = true;
5486
+ }
5487
+ if (valid2) {
5488
+ if (data0.supersededBy !== void 0) {
5489
+ let data14 = data0.supersededBy;
5490
+ const _errs32 = errors;
5491
+ const _errs33 = errors;
5492
+ let valid5 = false;
5493
+ const _errs34 = errors;
5494
+ if (errors === _errs34) {
5495
+ if (typeof data14 === "string") {
5496
+ if (func1(data14) < 1) {
5497
+ const err0 = { instancePath: instancePath + "/decision/supersededBy", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionDetailResponse/properties/decision/properties/supersededBy/anyOf/0/minLength", keyword: "minLength", params: { limit: 1 }, message: "must NOT have fewer than 1 characters" };
5498
+ if (vErrors === null) {
5499
+ vErrors = [err0];
5500
+ } else {
5501
+ vErrors.push(err0);
5502
+ }
5503
+ errors++;
5504
+ }
5505
+ } else {
5506
+ const err1 = { instancePath: instancePath + "/decision/supersededBy", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionDetailResponse/properties/decision/properties/supersededBy/anyOf/0/type", keyword: "type", params: { type: "string" }, message: "must be string" };
5482
5507
  if (vErrors === null) {
5483
- vErrors = [err0];
5508
+ vErrors = [err1];
5484
5509
  } else {
5485
- vErrors.push(err0);
5510
+ vErrors.push(err1);
5486
5511
  }
5487
5512
  errors++;
5488
5513
  }
5489
- } else {
5490
- const err1 = { instancePath: instancePath + "/decision/supersededBy", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionDetailResponse/properties/decision/properties/supersededBy/anyOf/0/type", keyword: "type", params: { type: "string" }, message: "must be string" };
5514
+ }
5515
+ var _valid0 = _errs34 === errors;
5516
+ valid5 = valid5 || _valid0;
5517
+ const _errs36 = errors;
5518
+ if (data14 !== null) {
5519
+ const err2 = { instancePath: instancePath + "/decision/supersededBy", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionDetailResponse/properties/decision/properties/supersededBy/anyOf/1/type", keyword: "type", params: { type: "null" }, message: "must be null" };
5491
5520
  if (vErrors === null) {
5492
- vErrors = [err1];
5521
+ vErrors = [err2];
5493
5522
  } else {
5494
- vErrors.push(err1);
5523
+ vErrors.push(err2);
5495
5524
  }
5496
5525
  errors++;
5497
5526
  }
5498
- }
5499
- var _valid0 = _errs32 === errors;
5500
- valid5 = valid5 || _valid0;
5501
- const _errs34 = errors;
5502
- if (data13 !== null) {
5503
- const err2 = { instancePath: instancePath + "/decision/supersededBy", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionDetailResponse/properties/decision/properties/supersededBy/anyOf/1/type", keyword: "type", params: { type: "null" }, message: "must be null" };
5504
- if (vErrors === null) {
5505
- vErrors = [err2];
5506
- } else {
5507
- vErrors.push(err2);
5508
- }
5509
- errors++;
5510
- }
5511
- var _valid0 = _errs34 === errors;
5512
- valid5 = valid5 || _valid0;
5513
- if (!valid5) {
5514
- const err3 = { instancePath: instancePath + "/decision/supersededBy", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionDetailResponse/properties/decision/properties/supersededBy/anyOf", keyword: "anyOf", params: {}, message: "must match a schema in anyOf" };
5515
- if (vErrors === null) {
5516
- vErrors = [err3];
5517
- } else {
5518
- vErrors.push(err3);
5519
- }
5520
- errors++;
5521
- validate29.errors = vErrors;
5522
- return false;
5523
- } else {
5524
- errors = _errs31;
5525
- if (vErrors !== null) {
5526
- if (_errs31) {
5527
- vErrors.length = _errs31;
5527
+ var _valid0 = _errs36 === errors;
5528
+ valid5 = valid5 || _valid0;
5529
+ if (!valid5) {
5530
+ const err3 = { instancePath: instancePath + "/decision/supersededBy", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionDetailResponse/properties/decision/properties/supersededBy/anyOf", keyword: "anyOf", params: {}, message: "must match a schema in anyOf" };
5531
+ if (vErrors === null) {
5532
+ vErrors = [err3];
5528
5533
  } else {
5529
- vErrors = null;
5534
+ vErrors.push(err3);
5530
5535
  }
5531
- }
5532
- }
5533
- var valid2 = _errs30 === errors;
5534
- } else {
5535
- var valid2 = true;
5536
- }
5537
- if (valid2) {
5538
- if (data0.confidence !== void 0) {
5539
- let data14 = data0.confidence;
5540
- const _errs36 = errors;
5541
- if (typeof data14 !== "string") {
5542
- validate29.errors = [{ instancePath: instancePath + "/decision/confidence", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionDetailResponse/properties/decision/properties/confidence/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
5543
- return false;
5544
- }
5545
- if (!(data14 === "high" || data14 === "medium" || data14 === "low")) {
5546
- validate29.errors = [{ instancePath: instancePath + "/decision/confidence", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionDetailResponse/properties/decision/properties/confidence/enum", keyword: "enum", params: { allowedValues: schema49.properties.decision.properties.confidence.enum }, message: "must be equal to one of the allowed values" }];
5536
+ errors++;
5537
+ validate29.errors = vErrors;
5547
5538
  return false;
5539
+ } else {
5540
+ errors = _errs33;
5541
+ if (vErrors !== null) {
5542
+ if (_errs33) {
5543
+ vErrors.length = _errs33;
5544
+ } else {
5545
+ vErrors = null;
5546
+ }
5547
+ }
5548
5548
  }
5549
- var valid2 = _errs36 === errors;
5549
+ var valid2 = _errs32 === errors;
5550
5550
  } else {
5551
5551
  var valid2 = true;
5552
5552
  }
5553
5553
  if (valid2) {
5554
- if (data0.reversibility !== void 0) {
5555
- let data15 = data0.reversibility;
5554
+ if (data0.confidence !== void 0) {
5555
+ let data15 = data0.confidence;
5556
5556
  const _errs38 = errors;
5557
5557
  if (typeof data15 !== "string") {
5558
- validate29.errors = [{ instancePath: instancePath + "/decision/reversibility", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionDetailResponse/properties/decision/properties/reversibility/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
5558
+ validate29.errors = [{ instancePath: instancePath + "/decision/confidence", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionDetailResponse/properties/decision/properties/confidence/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
5559
5559
  return false;
5560
5560
  }
5561
- if (!(data15 === "high" || data15 === "low")) {
5562
- validate29.errors = [{ instancePath: instancePath + "/decision/reversibility", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionDetailResponse/properties/decision/properties/reversibility/enum", keyword: "enum", params: { allowedValues: schema49.properties.decision.properties.reversibility.enum }, message: "must be equal to one of the allowed values" }];
5561
+ if (!(data15 === "high" || data15 === "medium" || data15 === "low")) {
5562
+ validate29.errors = [{ instancePath: instancePath + "/decision/confidence", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionDetailResponse/properties/decision/properties/confidence/enum", keyword: "enum", params: { allowedValues: schema49.properties.decision.properties.confidence.enum }, message: "must be equal to one of the allowed values" }];
5563
5563
  return false;
5564
5564
  }
5565
5565
  var valid2 = _errs38 === errors;
@@ -5567,10 +5567,15 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
5567
5567
  var valid2 = true;
5568
5568
  }
5569
5569
  if (valid2) {
5570
- if (data0.confirmed !== void 0) {
5570
+ if (data0.reversibility !== void 0) {
5571
+ let data16 = data0.reversibility;
5571
5572
  const _errs40 = errors;
5572
- if (typeof data0.confirmed !== "boolean") {
5573
- validate29.errors = [{ instancePath: instancePath + "/decision/confirmed", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionDetailResponse/properties/decision/properties/confirmed/type", keyword: "type", params: { type: "boolean" }, message: "must be boolean" }];
5573
+ if (typeof data16 !== "string") {
5574
+ validate29.errors = [{ instancePath: instancePath + "/decision/reversibility", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionDetailResponse/properties/decision/properties/reversibility/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
5575
+ return false;
5576
+ }
5577
+ if (!(data16 === "high" || data16 === "low")) {
5578
+ validate29.errors = [{ instancePath: instancePath + "/decision/reversibility", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionDetailResponse/properties/decision/properties/reversibility/enum", keyword: "enum", params: { allowedValues: schema49.properties.decision.properties.reversibility.enum }, message: "must be equal to one of the allowed values" }];
5574
5579
  return false;
5575
5580
  }
5576
5581
  var valid2 = _errs40 === errors;
@@ -5578,11 +5583,10 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
5578
5583
  var valid2 = true;
5579
5584
  }
5580
5585
  if (valid2) {
5581
- if (data0.respondedAt !== void 0) {
5582
- let data17 = data0.respondedAt;
5586
+ if (data0.confirmed !== void 0) {
5583
5587
  const _errs42 = errors;
5584
- if (!(typeof data17 == "number" && isFinite(data17))) {
5585
- validate29.errors = [{ instancePath: instancePath + "/decision/respondedAt", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionDetailResponse/properties/decision/properties/respondedAt/type", keyword: "type", params: { type: "number" }, message: "must be number" }];
5588
+ if (typeof data0.confirmed !== "boolean") {
5589
+ validate29.errors = [{ instancePath: instancePath + "/decision/confirmed", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionDetailResponse/properties/decision/properties/confirmed/type", keyword: "type", params: { type: "boolean" }, message: "must be boolean" }];
5586
5590
  return false;
5587
5591
  }
5588
5592
  var valid2 = _errs42 === errors;
@@ -5590,11 +5594,11 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
5590
5594
  var valid2 = true;
5591
5595
  }
5592
5596
  if (valid2) {
5593
- if (data0.fanOut !== void 0) {
5594
- let data18 = data0.fanOut;
5597
+ if (data0.respondedAt !== void 0) {
5598
+ let data18 = data0.respondedAt;
5595
5599
  const _errs44 = errors;
5596
5600
  if (!(typeof data18 == "number" && isFinite(data18))) {
5597
- validate29.errors = [{ instancePath: instancePath + "/decision/fanOut", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionDetailResponse/properties/decision/properties/fanOut/type", keyword: "type", params: { type: "number" }, message: "must be number" }];
5601
+ validate29.errors = [{ instancePath: instancePath + "/decision/respondedAt", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionDetailResponse/properties/decision/properties/respondedAt/type", keyword: "type", params: { type: "number" }, message: "must be number" }];
5598
5602
  return false;
5599
5603
  }
5600
5604
  var valid2 = _errs44 === errors;
@@ -5602,11 +5606,11 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
5602
5606
  var valid2 = true;
5603
5607
  }
5604
5608
  if (valid2) {
5605
- if (data0.classifiedAt !== void 0) {
5606
- let data19 = data0.classifiedAt;
5609
+ if (data0.fanOut !== void 0) {
5610
+ let data19 = data0.fanOut;
5607
5611
  const _errs46 = errors;
5608
5612
  if (!(typeof data19 == "number" && isFinite(data19))) {
5609
- validate29.errors = [{ instancePath: instancePath + "/decision/classifiedAt", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionDetailResponse/properties/decision/properties/classifiedAt/type", keyword: "type", params: { type: "number" }, message: "must be number" }];
5613
+ validate29.errors = [{ instancePath: instancePath + "/decision/fanOut", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionDetailResponse/properties/decision/properties/fanOut/type", keyword: "type", params: { type: "number" }, message: "must be number" }];
5610
5614
  return false;
5611
5615
  }
5612
5616
  var valid2 = _errs46 === errors;
@@ -5614,16 +5618,29 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
5614
5618
  var valid2 = true;
5615
5619
  }
5616
5620
  if (valid2) {
5617
- if (data0.authorName !== void 0) {
5621
+ if (data0.classifiedAt !== void 0) {
5622
+ let data20 = data0.classifiedAt;
5618
5623
  const _errs48 = errors;
5619
- if (typeof data0.authorName !== "string") {
5620
- validate29.errors = [{ instancePath: instancePath + "/decision/authorName", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionDetailResponse/properties/decision/properties/authorName/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
5624
+ if (!(typeof data20 == "number" && isFinite(data20))) {
5625
+ validate29.errors = [{ instancePath: instancePath + "/decision/classifiedAt", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionDetailResponse/properties/decision/properties/classifiedAt/type", keyword: "type", params: { type: "number" }, message: "must be number" }];
5621
5626
  return false;
5622
5627
  }
5623
5628
  var valid2 = _errs48 === errors;
5624
5629
  } else {
5625
5630
  var valid2 = true;
5626
5631
  }
5632
+ if (valid2) {
5633
+ if (data0.authorName !== void 0) {
5634
+ const _errs50 = errors;
5635
+ if (typeof data0.authorName !== "string") {
5636
+ validate29.errors = [{ instancePath: instancePath + "/decision/authorName", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionDetailResponse/properties/decision/properties/authorName/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
5637
+ return false;
5638
+ }
5639
+ var valid2 = _errs50 === errors;
5640
+ } else {
5641
+ var valid2 = true;
5642
+ }
5643
+ }
5627
5644
  }
5628
5645
  }
5629
5646
  }
@@ -5653,19 +5670,19 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
5653
5670
  }
5654
5671
  if (valid1) {
5655
5672
  if (data.files !== void 0) {
5656
- let data21 = data.files;
5657
- const _errs50 = errors;
5658
- if (errors === _errs50) {
5659
- if (Array.isArray(data21)) {
5673
+ let data22 = data.files;
5674
+ const _errs52 = errors;
5675
+ if (errors === _errs52) {
5676
+ if (Array.isArray(data22)) {
5660
5677
  var valid6 = true;
5661
- const len2 = data21.length;
5678
+ const len2 = data22.length;
5662
5679
  for (let i2 = 0; i2 < len2; i2++) {
5663
- const _errs52 = errors;
5664
- if (typeof data21[i2] !== "string") {
5680
+ const _errs54 = errors;
5681
+ if (typeof data22[i2] !== "string") {
5665
5682
  validate29.errors = [{ instancePath: instancePath + "/files/" + i2, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionDetailResponse/properties/files/items/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
5666
5683
  return false;
5667
5684
  }
5668
- var valid6 = _errs52 === errors;
5685
+ var valid6 = _errs54 === errors;
5669
5686
  if (!valid6) {
5670
5687
  break;
5671
5688
  }
@@ -5675,97 +5692,97 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
5675
5692
  return false;
5676
5693
  }
5677
5694
  }
5678
- var valid1 = _errs50 === errors;
5695
+ var valid1 = _errs52 === errors;
5679
5696
  } else {
5680
5697
  var valid1 = true;
5681
5698
  }
5682
5699
  if (valid1) {
5683
5700
  if (data.flags !== void 0) {
5684
- let data23 = data.flags;
5685
- const _errs54 = errors;
5686
- if (errors === _errs54) {
5687
- if (Array.isArray(data23)) {
5701
+ let data24 = data.flags;
5702
+ const _errs56 = errors;
5703
+ if (errors === _errs56) {
5704
+ if (Array.isArray(data24)) {
5688
5705
  var valid7 = true;
5689
- const len3 = data23.length;
5706
+ const len3 = data24.length;
5690
5707
  for (let i3 = 0; i3 < len3; i3++) {
5691
- let data24 = data23[i3];
5692
- const _errs56 = errors;
5693
- if (errors === _errs56) {
5694
- if (data24 && typeof data24 == "object" && !Array.isArray(data24)) {
5708
+ let data25 = data24[i3];
5709
+ const _errs58 = errors;
5710
+ if (errors === _errs58) {
5711
+ if (data25 && typeof data25 == "object" && !Array.isArray(data25)) {
5695
5712
  let missing2;
5696
- if (data24.type === void 0 && (missing2 = "type") || data24.flaggedAt === void 0 && (missing2 = "flaggedAt")) {
5713
+ if (data25.type === void 0 && (missing2 = "type") || data25.flaggedAt === void 0 && (missing2 = "flaggedAt")) {
5697
5714
  validate29.errors = [{ instancePath: instancePath + "/flags/" + i3, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionDetailResponse/properties/flags/items/required", keyword: "required", params: { missingProperty: missing2 }, message: "must have required property '" + missing2 + "'" }];
5698
5715
  return false;
5699
5716
  } else {
5700
- if (data24.type !== void 0) {
5701
- let data25 = data24.type;
5702
- const _errs59 = errors;
5703
- if (typeof data25 !== "string") {
5717
+ if (data25.type !== void 0) {
5718
+ let data26 = data25.type;
5719
+ const _errs61 = errors;
5720
+ if (typeof data26 !== "string") {
5704
5721
  validate29.errors = [{ instancePath: instancePath + "/flags/" + i3 + "/type", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionDetailResponse/properties/flags/items/properties/type/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
5705
5722
  return false;
5706
5723
  }
5707
- if (!(data25 === "file_edit" || data25 === "supersession" || data25 === "invalidation" || data25 === "confirmation_request")) {
5724
+ if (!(data26 === "file_edit" || data26 === "supersession" || data26 === "invalidation" || data26 === "confirmation_request")) {
5708
5725
  validate29.errors = [{ instancePath: instancePath + "/flags/" + i3 + "/type", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionDetailResponse/properties/flags/items/properties/type/enum", keyword: "enum", params: { allowedValues: schema49.properties.flags.items.properties.type.enum }, message: "must be equal to one of the allowed values" }];
5709
5726
  return false;
5710
5727
  }
5711
- var valid8 = _errs59 === errors;
5728
+ var valid8 = _errs61 === errors;
5712
5729
  } else {
5713
5730
  var valid8 = true;
5714
5731
  }
5715
5732
  if (valid8) {
5716
- if (data24.file !== void 0) {
5717
- const _errs61 = errors;
5718
- if (typeof data24.file !== "string") {
5733
+ if (data25.file !== void 0) {
5734
+ const _errs63 = errors;
5735
+ if (typeof data25.file !== "string") {
5719
5736
  validate29.errors = [{ instancePath: instancePath + "/flags/" + i3 + "/file", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionDetailResponse/properties/flags/items/properties/file/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
5720
5737
  return false;
5721
5738
  }
5722
- var valid8 = _errs61 === errors;
5739
+ var valid8 = _errs63 === errors;
5723
5740
  } else {
5724
5741
  var valid8 = true;
5725
5742
  }
5726
5743
  if (valid8) {
5727
- if (data24.flaggedAt !== void 0) {
5728
- let data27 = data24.flaggedAt;
5729
- const _errs63 = errors;
5730
- if (!(typeof data27 == "number" && isFinite(data27))) {
5744
+ if (data25.flaggedAt !== void 0) {
5745
+ let data28 = data25.flaggedAt;
5746
+ const _errs65 = errors;
5747
+ if (!(typeof data28 == "number" && isFinite(data28))) {
5731
5748
  validate29.errors = [{ instancePath: instancePath + "/flags/" + i3 + "/flaggedAt", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionDetailResponse/properties/flags/items/properties/flaggedAt/type", keyword: "type", params: { type: "number" }, message: "must be number" }];
5732
5749
  return false;
5733
5750
  }
5734
- var valid8 = _errs63 === errors;
5751
+ var valid8 = _errs65 === errors;
5735
5752
  } else {
5736
5753
  var valid8 = true;
5737
5754
  }
5738
5755
  if (valid8) {
5739
- if (data24.acknowledgedAt !== void 0) {
5740
- let data28 = data24.acknowledgedAt;
5741
- const _errs65 = errors;
5742
- if (!(typeof data28 == "number" && isFinite(data28))) {
5756
+ if (data25.acknowledgedAt !== void 0) {
5757
+ let data29 = data25.acknowledgedAt;
5758
+ const _errs67 = errors;
5759
+ if (!(typeof data29 == "number" && isFinite(data29))) {
5743
5760
  validate29.errors = [{ instancePath: instancePath + "/flags/" + i3 + "/acknowledgedAt", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionDetailResponse/properties/flags/items/properties/acknowledgedAt/type", keyword: "type", params: { type: "number" }, message: "must be number" }];
5744
5761
  return false;
5745
5762
  }
5746
- var valid8 = _errs65 === errors;
5763
+ var valid8 = _errs67 === errors;
5747
5764
  } else {
5748
5765
  var valid8 = true;
5749
5766
  }
5750
5767
  if (valid8) {
5751
- if (data24.gateVerdict !== void 0) {
5752
- const _errs67 = errors;
5753
- if (typeof data24.gateVerdict !== "string") {
5768
+ if (data25.gateVerdict !== void 0) {
5769
+ const _errs69 = errors;
5770
+ if (typeof data25.gateVerdict !== "string") {
5754
5771
  validate29.errors = [{ instancePath: instancePath + "/flags/" + i3 + "/gateVerdict", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionDetailResponse/properties/flags/items/properties/gateVerdict/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
5755
5772
  return false;
5756
5773
  }
5757
- var valid8 = _errs67 === errors;
5774
+ var valid8 = _errs69 === errors;
5758
5775
  } else {
5759
5776
  var valid8 = true;
5760
5777
  }
5761
5778
  if (valid8) {
5762
- if (data24.reason !== void 0) {
5763
- const _errs69 = errors;
5764
- if (typeof data24.reason !== "string") {
5779
+ if (data25.reason !== void 0) {
5780
+ const _errs71 = errors;
5781
+ if (typeof data25.reason !== "string") {
5765
5782
  validate29.errors = [{ instancePath: instancePath + "/flags/" + i3 + "/reason", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionDetailResponse/properties/flags/items/properties/reason/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
5766
5783
  return false;
5767
5784
  }
5768
- var valid8 = _errs69 === errors;
5785
+ var valid8 = _errs71 === errors;
5769
5786
  } else {
5770
5787
  var valid8 = true;
5771
5788
  }
@@ -5780,7 +5797,7 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
5780
5797
  return false;
5781
5798
  }
5782
5799
  }
5783
- var valid7 = _errs56 === errors;
5800
+ var valid7 = _errs58 === errors;
5784
5801
  if (!valid7) {
5785
5802
  break;
5786
5803
  }
@@ -5790,34 +5807,34 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
5790
5807
  return false;
5791
5808
  }
5792
5809
  }
5793
- var valid1 = _errs54 === errors;
5810
+ var valid1 = _errs56 === errors;
5794
5811
  } else {
5795
5812
  var valid1 = true;
5796
5813
  }
5797
5814
  if (valid1) {
5798
5815
  if (data.dependsOn !== void 0) {
5799
- let data31 = data.dependsOn;
5800
- const _errs71 = errors;
5801
- if (errors === _errs71) {
5802
- if (Array.isArray(data31)) {
5816
+ let data32 = data.dependsOn;
5817
+ const _errs73 = errors;
5818
+ if (errors === _errs73) {
5819
+ if (Array.isArray(data32)) {
5803
5820
  var valid9 = true;
5804
- const len4 = data31.length;
5821
+ const len4 = data32.length;
5805
5822
  for (let i4 = 0; i4 < len4; i4++) {
5806
- let data32 = data31[i4];
5807
- const _errs73 = errors;
5808
- if (errors === _errs73) {
5809
- if (data32 && typeof data32 == "object" && !Array.isArray(data32)) {
5823
+ let data33 = data32[i4];
5824
+ const _errs75 = errors;
5825
+ if (errors === _errs75) {
5826
+ if (data33 && typeof data33 == "object" && !Array.isArray(data33)) {
5810
5827
  let missing3;
5811
- if (data32.id === void 0 && (missing3 = "id") || data32.intent === void 0 && (missing3 = "intent") || data32.authorName === void 0 && (missing3 = "authorName") || data32.classifiedAt === void 0 && (missing3 = "classifiedAt") || data32.status === void 0 && (missing3 = "status")) {
5828
+ if (data33.id === void 0 && (missing3 = "id") || data33.intent === void 0 && (missing3 = "intent") || data33.authorName === void 0 && (missing3 = "authorName") || data33.classifiedAt === void 0 && (missing3 = "classifiedAt") || data33.status === void 0 && (missing3 = "status")) {
5812
5829
  validate29.errors = [{ instancePath: instancePath + "/dependsOn/" + i4, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionDetailResponse/properties/dependsOn/items/required", keyword: "required", params: { missingProperty: missing3 }, message: "must have required property '" + missing3 + "'" }];
5813
5830
  return false;
5814
5831
  } else {
5815
- if (data32.id !== void 0) {
5816
- let data33 = data32.id;
5817
- const _errs76 = errors;
5818
- if (errors === _errs76) {
5819
- if (typeof data33 === "string") {
5820
- if (func1(data33) < 1) {
5832
+ if (data33.id !== void 0) {
5833
+ let data34 = data33.id;
5834
+ const _errs78 = errors;
5835
+ if (errors === _errs78) {
5836
+ if (typeof data34 === "string") {
5837
+ if (func1(data34) < 1) {
5821
5838
  validate29.errors = [{ instancePath: instancePath + "/dependsOn/" + i4 + "/id", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionDetailResponse/properties/dependsOn/items/properties/id/minLength", keyword: "minLength", params: { limit: 1 }, message: "must NOT have fewer than 1 characters" }];
5822
5839
  return false;
5823
5840
  }
@@ -5826,79 +5843,79 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
5826
5843
  return false;
5827
5844
  }
5828
5845
  }
5829
- var valid10 = _errs76 === errors;
5846
+ var valid10 = _errs78 === errors;
5830
5847
  } else {
5831
5848
  var valid10 = true;
5832
5849
  }
5833
5850
  if (valid10) {
5834
- if (data32.shortId !== void 0) {
5835
- const _errs78 = errors;
5836
- if (typeof data32.shortId !== "string") {
5851
+ if (data33.shortId !== void 0) {
5852
+ const _errs80 = errors;
5853
+ if (typeof data33.shortId !== "string") {
5837
5854
  validate29.errors = [{ instancePath: instancePath + "/dependsOn/" + i4 + "/shortId", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionDetailResponse/properties/dependsOn/items/properties/shortId/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
5838
5855
  return false;
5839
5856
  }
5840
- var valid10 = _errs78 === errors;
5857
+ var valid10 = _errs80 === errors;
5841
5858
  } else {
5842
5859
  var valid10 = true;
5843
5860
  }
5844
5861
  if (valid10) {
5845
- if (data32.intent !== void 0) {
5846
- const _errs80 = errors;
5847
- if (typeof data32.intent !== "string") {
5862
+ if (data33.intent !== void 0) {
5863
+ const _errs82 = errors;
5864
+ if (typeof data33.intent !== "string") {
5848
5865
  validate29.errors = [{ instancePath: instancePath + "/dependsOn/" + i4 + "/intent", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionDetailResponse/properties/dependsOn/items/properties/intent/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
5849
5866
  return false;
5850
5867
  }
5851
- var valid10 = _errs80 === errors;
5868
+ var valid10 = _errs82 === errors;
5852
5869
  } else {
5853
5870
  var valid10 = true;
5854
5871
  }
5855
5872
  if (valid10) {
5856
- if (data32.area !== void 0) {
5857
- const _errs82 = errors;
5858
- if (typeof data32.area !== "string") {
5873
+ if (data33.area !== void 0) {
5874
+ const _errs84 = errors;
5875
+ if (typeof data33.area !== "string") {
5859
5876
  validate29.errors = [{ instancePath: instancePath + "/dependsOn/" + i4 + "/area", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionDetailResponse/properties/dependsOn/items/properties/area/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
5860
5877
  return false;
5861
5878
  }
5862
- var valid10 = _errs82 === errors;
5879
+ var valid10 = _errs84 === errors;
5863
5880
  } else {
5864
5881
  var valid10 = true;
5865
5882
  }
5866
5883
  if (valid10) {
5867
- if (data32.authorName !== void 0) {
5868
- const _errs84 = errors;
5869
- if (typeof data32.authorName !== "string") {
5884
+ if (data33.authorName !== void 0) {
5885
+ const _errs86 = errors;
5886
+ if (typeof data33.authorName !== "string") {
5870
5887
  validate29.errors = [{ instancePath: instancePath + "/dependsOn/" + i4 + "/authorName", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionDetailResponse/properties/dependsOn/items/properties/authorName/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
5871
5888
  return false;
5872
5889
  }
5873
- var valid10 = _errs84 === errors;
5890
+ var valid10 = _errs86 === errors;
5874
5891
  } else {
5875
5892
  var valid10 = true;
5876
5893
  }
5877
5894
  if (valid10) {
5878
- if (data32.classifiedAt !== void 0) {
5879
- let data38 = data32.classifiedAt;
5880
- const _errs86 = errors;
5881
- if (!(typeof data38 == "number" && isFinite(data38))) {
5895
+ if (data33.classifiedAt !== void 0) {
5896
+ let data39 = data33.classifiedAt;
5897
+ const _errs88 = errors;
5898
+ if (!(typeof data39 == "number" && isFinite(data39))) {
5882
5899
  validate29.errors = [{ instancePath: instancePath + "/dependsOn/" + i4 + "/classifiedAt", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionDetailResponse/properties/dependsOn/items/properties/classifiedAt/type", keyword: "type", params: { type: "number" }, message: "must be number" }];
5883
5900
  return false;
5884
5901
  }
5885
- var valid10 = _errs86 === errors;
5902
+ var valid10 = _errs88 === errors;
5886
5903
  } else {
5887
5904
  var valid10 = true;
5888
5905
  }
5889
5906
  if (valid10) {
5890
- if (data32.status !== void 0) {
5891
- let data39 = data32.status;
5892
- const _errs88 = errors;
5893
- if (typeof data39 !== "string") {
5907
+ if (data33.status !== void 0) {
5908
+ let data40 = data33.status;
5909
+ const _errs90 = errors;
5910
+ if (typeof data40 !== "string") {
5894
5911
  validate29.errors = [{ instancePath: instancePath + "/dependsOn/" + i4 + "/status", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionDetailResponse/properties/dependsOn/items/properties/status/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
5895
5912
  return false;
5896
5913
  }
5897
- if (!(data39 === "active" || data39 === "superseded" || data39 === "under_review")) {
5914
+ if (!(data40 === "active" || data40 === "superseded" || data40 === "under_review")) {
5898
5915
  validate29.errors = [{ instancePath: instancePath + "/dependsOn/" + i4 + "/status", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionDetailResponse/properties/dependsOn/items/properties/status/enum", keyword: "enum", params: { allowedValues: schema49.properties.dependsOn.items.properties.status.enum }, message: "must be equal to one of the allowed values" }];
5899
5916
  return false;
5900
5917
  }
5901
- var valid10 = _errs88 === errors;
5918
+ var valid10 = _errs90 === errors;
5902
5919
  } else {
5903
5920
  var valid10 = true;
5904
5921
  }
@@ -5914,7 +5931,7 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
5914
5931
  return false;
5915
5932
  }
5916
5933
  }
5917
- var valid9 = _errs73 === errors;
5934
+ var valid9 = _errs75 === errors;
5918
5935
  if (!valid9) {
5919
5936
  break;
5920
5937
  }
@@ -5924,34 +5941,34 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
5924
5941
  return false;
5925
5942
  }
5926
5943
  }
5927
- var valid1 = _errs71 === errors;
5944
+ var valid1 = _errs73 === errors;
5928
5945
  } else {
5929
5946
  var valid1 = true;
5930
5947
  }
5931
5948
  if (valid1) {
5932
5949
  if (data.dependents !== void 0) {
5933
- let data40 = data.dependents;
5934
- const _errs90 = errors;
5935
- if (errors === _errs90) {
5936
- if (Array.isArray(data40)) {
5950
+ let data41 = data.dependents;
5951
+ const _errs92 = errors;
5952
+ if (errors === _errs92) {
5953
+ if (Array.isArray(data41)) {
5937
5954
  var valid11 = true;
5938
- const len5 = data40.length;
5955
+ const len5 = data41.length;
5939
5956
  for (let i5 = 0; i5 < len5; i5++) {
5940
- let data41 = data40[i5];
5941
- const _errs92 = errors;
5942
- if (errors === _errs92) {
5943
- if (data41 && typeof data41 == "object" && !Array.isArray(data41)) {
5957
+ let data42 = data41[i5];
5958
+ const _errs94 = errors;
5959
+ if (errors === _errs94) {
5960
+ if (data42 && typeof data42 == "object" && !Array.isArray(data42)) {
5944
5961
  let missing4;
5945
- if (data41.id === void 0 && (missing4 = "id") || data41.intent === void 0 && (missing4 = "intent") || data41.authorName === void 0 && (missing4 = "authorName") || data41.classifiedAt === void 0 && (missing4 = "classifiedAt") || data41.status === void 0 && (missing4 = "status")) {
5962
+ if (data42.id === void 0 && (missing4 = "id") || data42.intent === void 0 && (missing4 = "intent") || data42.authorName === void 0 && (missing4 = "authorName") || data42.classifiedAt === void 0 && (missing4 = "classifiedAt") || data42.status === void 0 && (missing4 = "status")) {
5946
5963
  validate29.errors = [{ instancePath: instancePath + "/dependents/" + i5, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionDetailResponse/properties/dependents/items/required", keyword: "required", params: { missingProperty: missing4 }, message: "must have required property '" + missing4 + "'" }];
5947
5964
  return false;
5948
5965
  } else {
5949
- if (data41.id !== void 0) {
5950
- let data42 = data41.id;
5951
- const _errs95 = errors;
5952
- if (errors === _errs95) {
5953
- if (typeof data42 === "string") {
5954
- if (func1(data42) < 1) {
5966
+ if (data42.id !== void 0) {
5967
+ let data43 = data42.id;
5968
+ const _errs97 = errors;
5969
+ if (errors === _errs97) {
5970
+ if (typeof data43 === "string") {
5971
+ if (func1(data43) < 1) {
5955
5972
  validate29.errors = [{ instancePath: instancePath + "/dependents/" + i5 + "/id", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionDetailResponse/properties/dependents/items/properties/id/minLength", keyword: "minLength", params: { limit: 1 }, message: "must NOT have fewer than 1 characters" }];
5956
5973
  return false;
5957
5974
  }
@@ -5960,79 +5977,79 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
5960
5977
  return false;
5961
5978
  }
5962
5979
  }
5963
- var valid12 = _errs95 === errors;
5980
+ var valid12 = _errs97 === errors;
5964
5981
  } else {
5965
5982
  var valid12 = true;
5966
5983
  }
5967
5984
  if (valid12) {
5968
- if (data41.shortId !== void 0) {
5969
- const _errs97 = errors;
5970
- if (typeof data41.shortId !== "string") {
5985
+ if (data42.shortId !== void 0) {
5986
+ const _errs99 = errors;
5987
+ if (typeof data42.shortId !== "string") {
5971
5988
  validate29.errors = [{ instancePath: instancePath + "/dependents/" + i5 + "/shortId", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionDetailResponse/properties/dependents/items/properties/shortId/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
5972
5989
  return false;
5973
5990
  }
5974
- var valid12 = _errs97 === errors;
5991
+ var valid12 = _errs99 === errors;
5975
5992
  } else {
5976
5993
  var valid12 = true;
5977
5994
  }
5978
5995
  if (valid12) {
5979
- if (data41.intent !== void 0) {
5980
- const _errs99 = errors;
5981
- if (typeof data41.intent !== "string") {
5996
+ if (data42.intent !== void 0) {
5997
+ const _errs101 = errors;
5998
+ if (typeof data42.intent !== "string") {
5982
5999
  validate29.errors = [{ instancePath: instancePath + "/dependents/" + i5 + "/intent", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionDetailResponse/properties/dependents/items/properties/intent/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
5983
6000
  return false;
5984
6001
  }
5985
- var valid12 = _errs99 === errors;
6002
+ var valid12 = _errs101 === errors;
5986
6003
  } else {
5987
6004
  var valid12 = true;
5988
6005
  }
5989
6006
  if (valid12) {
5990
- if (data41.area !== void 0) {
5991
- const _errs101 = errors;
5992
- if (typeof data41.area !== "string") {
6007
+ if (data42.area !== void 0) {
6008
+ const _errs103 = errors;
6009
+ if (typeof data42.area !== "string") {
5993
6010
  validate29.errors = [{ instancePath: instancePath + "/dependents/" + i5 + "/area", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionDetailResponse/properties/dependents/items/properties/area/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
5994
6011
  return false;
5995
6012
  }
5996
- var valid12 = _errs101 === errors;
6013
+ var valid12 = _errs103 === errors;
5997
6014
  } else {
5998
6015
  var valid12 = true;
5999
6016
  }
6000
6017
  if (valid12) {
6001
- if (data41.authorName !== void 0) {
6002
- const _errs103 = errors;
6003
- if (typeof data41.authorName !== "string") {
6018
+ if (data42.authorName !== void 0) {
6019
+ const _errs105 = errors;
6020
+ if (typeof data42.authorName !== "string") {
6004
6021
  validate29.errors = [{ instancePath: instancePath + "/dependents/" + i5 + "/authorName", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionDetailResponse/properties/dependents/items/properties/authorName/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
6005
6022
  return false;
6006
6023
  }
6007
- var valid12 = _errs103 === errors;
6024
+ var valid12 = _errs105 === errors;
6008
6025
  } else {
6009
6026
  var valid12 = true;
6010
6027
  }
6011
6028
  if (valid12) {
6012
- if (data41.classifiedAt !== void 0) {
6013
- let data47 = data41.classifiedAt;
6014
- const _errs105 = errors;
6015
- if (!(typeof data47 == "number" && isFinite(data47))) {
6029
+ if (data42.classifiedAt !== void 0) {
6030
+ let data48 = data42.classifiedAt;
6031
+ const _errs107 = errors;
6032
+ if (!(typeof data48 == "number" && isFinite(data48))) {
6016
6033
  validate29.errors = [{ instancePath: instancePath + "/dependents/" + i5 + "/classifiedAt", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionDetailResponse/properties/dependents/items/properties/classifiedAt/type", keyword: "type", params: { type: "number" }, message: "must be number" }];
6017
6034
  return false;
6018
6035
  }
6019
- var valid12 = _errs105 === errors;
6036
+ var valid12 = _errs107 === errors;
6020
6037
  } else {
6021
6038
  var valid12 = true;
6022
6039
  }
6023
6040
  if (valid12) {
6024
- if (data41.status !== void 0) {
6025
- let data48 = data41.status;
6026
- const _errs107 = errors;
6027
- if (typeof data48 !== "string") {
6041
+ if (data42.status !== void 0) {
6042
+ let data49 = data42.status;
6043
+ const _errs109 = errors;
6044
+ if (typeof data49 !== "string") {
6028
6045
  validate29.errors = [{ instancePath: instancePath + "/dependents/" + i5 + "/status", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionDetailResponse/properties/dependents/items/properties/status/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
6029
6046
  return false;
6030
6047
  }
6031
- if (!(data48 === "active" || data48 === "superseded" || data48 === "under_review")) {
6048
+ if (!(data49 === "active" || data49 === "superseded" || data49 === "under_review")) {
6032
6049
  validate29.errors = [{ instancePath: instancePath + "/dependents/" + i5 + "/status", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionDetailResponse/properties/dependents/items/properties/status/enum", keyword: "enum", params: { allowedValues: schema49.properties.dependents.items.properties.status.enum }, message: "must be equal to one of the allowed values" }];
6033
6050
  return false;
6034
6051
  }
6035
- var valid12 = _errs107 === errors;
6052
+ var valid12 = _errs109 === errors;
6036
6053
  } else {
6037
6054
  var valid12 = true;
6038
6055
  }
@@ -6048,7 +6065,7 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
6048
6065
  return false;
6049
6066
  }
6050
6067
  }
6051
- var valid11 = _errs92 === errors;
6068
+ var valid11 = _errs94 === errors;
6052
6069
  if (!valid11) {
6053
6070
  break;
6054
6071
  }
@@ -6058,56 +6075,56 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
6058
6075
  return false;
6059
6076
  }
6060
6077
  }
6061
- var valid1 = _errs90 === errors;
6078
+ var valid1 = _errs92 === errors;
6062
6079
  } else {
6063
6080
  var valid1 = true;
6064
6081
  }
6065
6082
  if (valid1) {
6066
6083
  if (data.scope !== void 0) {
6067
- let data49 = data.scope;
6068
- const _errs109 = errors;
6069
- if (errors === _errs109) {
6070
- if (data49 && typeof data49 == "object" && !Array.isArray(data49)) {
6084
+ let data50 = data.scope;
6085
+ const _errs111 = errors;
6086
+ if (errors === _errs111) {
6087
+ if (data50 && typeof data50 == "object" && !Array.isArray(data50)) {
6071
6088
  let missing5;
6072
- if (data49.location === void 0 && (missing5 = "location") || data49.time === void 0 && (missing5 = "time") || data49.users === void 0 && (missing5 = "users")) {
6089
+ if (data50.location === void 0 && (missing5 = "location") || data50.time === void 0 && (missing5 = "time") || data50.users === void 0 && (missing5 = "users")) {
6073
6090
  validate29.errors = [{ instancePath: instancePath + "/scope", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionDetailResponse/properties/scope/required", keyword: "required", params: { missingProperty: missing5 }, message: "must have required property '" + missing5 + "'" }];
6074
6091
  return false;
6075
6092
  } else {
6076
- if (data49.location !== void 0) {
6077
- let data50 = data49.location;
6078
- const _errs112 = errors;
6079
- if (errors === _errs112) {
6080
- if (data50 && typeof data50 == "object" && !Array.isArray(data50)) {
6093
+ if (data50.location !== void 0) {
6094
+ let data51 = data50.location;
6095
+ const _errs114 = errors;
6096
+ if (errors === _errs114) {
6097
+ if (data51 && typeof data51 == "object" && !Array.isArray(data51)) {
6081
6098
  let missing6;
6082
- if (data50.repository === void 0 && (missing6 = "repository") || data50.directories === void 0 && (missing6 = "directories") || data50.globs === void 0 && (missing6 = "globs") || data50.branches === void 0 && (missing6 = "branches")) {
6099
+ if (data51.repository === void 0 && (missing6 = "repository") || data51.directories === void 0 && (missing6 = "directories") || data51.globs === void 0 && (missing6 = "globs") || data51.branches === void 0 && (missing6 = "branches")) {
6083
6100
  validate29.errors = [{ instancePath: instancePath + "/scope/location", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionDetailResponse/properties/scope/properties/location/required", keyword: "required", params: { missingProperty: missing6 }, message: "must have required property '" + missing6 + "'" }];
6084
6101
  return false;
6085
6102
  } else {
6086
- if (data50.repository !== void 0) {
6087
- const _errs115 = errors;
6088
- if (typeof data50.repository !== "boolean") {
6103
+ if (data51.repository !== void 0) {
6104
+ const _errs117 = errors;
6105
+ if (typeof data51.repository !== "boolean") {
6089
6106
  validate29.errors = [{ instancePath: instancePath + "/scope/location/repository", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionDetailResponse/properties/scope/properties/location/properties/repository/type", keyword: "type", params: { type: "boolean" }, message: "must be boolean" }];
6090
6107
  return false;
6091
6108
  }
6092
- var valid14 = _errs115 === errors;
6109
+ var valid14 = _errs117 === errors;
6093
6110
  } else {
6094
6111
  var valid14 = true;
6095
6112
  }
6096
6113
  if (valid14) {
6097
- if (data50.directories !== void 0) {
6098
- let data52 = data50.directories;
6099
- const _errs117 = errors;
6100
- if (errors === _errs117) {
6101
- if (Array.isArray(data52)) {
6114
+ if (data51.directories !== void 0) {
6115
+ let data53 = data51.directories;
6116
+ const _errs119 = errors;
6117
+ if (errors === _errs119) {
6118
+ if (Array.isArray(data53)) {
6102
6119
  var valid15 = true;
6103
- const len6 = data52.length;
6120
+ const len6 = data53.length;
6104
6121
  for (let i6 = 0; i6 < len6; i6++) {
6105
- const _errs119 = errors;
6106
- if (typeof data52[i6] !== "string") {
6122
+ const _errs121 = errors;
6123
+ if (typeof data53[i6] !== "string") {
6107
6124
  validate29.errors = [{ instancePath: instancePath + "/scope/location/directories/" + i6, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionDetailResponse/properties/scope/properties/location/properties/directories/items/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
6108
6125
  return false;
6109
6126
  }
6110
- var valid15 = _errs119 === errors;
6127
+ var valid15 = _errs121 === errors;
6111
6128
  if (!valid15) {
6112
6129
  break;
6113
6130
  }
@@ -6117,25 +6134,25 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
6117
6134
  return false;
6118
6135
  }
6119
6136
  }
6120
- var valid14 = _errs117 === errors;
6137
+ var valid14 = _errs119 === errors;
6121
6138
  } else {
6122
6139
  var valid14 = true;
6123
6140
  }
6124
6141
  if (valid14) {
6125
- if (data50.globs !== void 0) {
6126
- let data54 = data50.globs;
6127
- const _errs121 = errors;
6128
- if (errors === _errs121) {
6129
- if (Array.isArray(data54)) {
6142
+ if (data51.globs !== void 0) {
6143
+ let data55 = data51.globs;
6144
+ const _errs123 = errors;
6145
+ if (errors === _errs123) {
6146
+ if (Array.isArray(data55)) {
6130
6147
  var valid16 = true;
6131
- const len7 = data54.length;
6148
+ const len7 = data55.length;
6132
6149
  for (let i7 = 0; i7 < len7; i7++) {
6133
- const _errs123 = errors;
6134
- if (typeof data54[i7] !== "string") {
6150
+ const _errs125 = errors;
6151
+ if (typeof data55[i7] !== "string") {
6135
6152
  validate29.errors = [{ instancePath: instancePath + "/scope/location/globs/" + i7, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionDetailResponse/properties/scope/properties/location/properties/globs/items/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
6136
6153
  return false;
6137
6154
  }
6138
- var valid16 = _errs123 === errors;
6155
+ var valid16 = _errs125 === errors;
6139
6156
  if (!valid16) {
6140
6157
  break;
6141
6158
  }
@@ -6145,25 +6162,25 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
6145
6162
  return false;
6146
6163
  }
6147
6164
  }
6148
- var valid14 = _errs121 === errors;
6165
+ var valid14 = _errs123 === errors;
6149
6166
  } else {
6150
6167
  var valid14 = true;
6151
6168
  }
6152
6169
  if (valid14) {
6153
- if (data50.branches !== void 0) {
6154
- let data56 = data50.branches;
6155
- const _errs125 = errors;
6156
- if (errors === _errs125) {
6157
- if (Array.isArray(data56)) {
6170
+ if (data51.branches !== void 0) {
6171
+ let data57 = data51.branches;
6172
+ const _errs127 = errors;
6173
+ if (errors === _errs127) {
6174
+ if (Array.isArray(data57)) {
6158
6175
  var valid17 = true;
6159
- const len8 = data56.length;
6176
+ const len8 = data57.length;
6160
6177
  for (let i8 = 0; i8 < len8; i8++) {
6161
- const _errs127 = errors;
6162
- if (typeof data56[i8] !== "string") {
6178
+ const _errs129 = errors;
6179
+ if (typeof data57[i8] !== "string") {
6163
6180
  validate29.errors = [{ instancePath: instancePath + "/scope/location/branches/" + i8, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionDetailResponse/properties/scope/properties/location/properties/branches/items/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
6164
6181
  return false;
6165
6182
  }
6166
- var valid17 = _errs127 === errors;
6183
+ var valid17 = _errs129 === errors;
6167
6184
  if (!valid17) {
6168
6185
  break;
6169
6186
  }
@@ -6173,7 +6190,7 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
6173
6190
  return false;
6174
6191
  }
6175
6192
  }
6176
- var valid14 = _errs125 === errors;
6193
+ var valid14 = _errs127 === errors;
6177
6194
  } else {
6178
6195
  var valid14 = true;
6179
6196
  }
@@ -6186,62 +6203,62 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
6186
6203
  return false;
6187
6204
  }
6188
6205
  }
6189
- var valid13 = _errs112 === errors;
6206
+ var valid13 = _errs114 === errors;
6190
6207
  } else {
6191
6208
  var valid13 = true;
6192
6209
  }
6193
6210
  if (valid13) {
6194
- if (data49.time !== void 0) {
6195
- let data58 = data49.time;
6196
- const _errs129 = errors;
6197
- if (errors === _errs129) {
6198
- if (data58 && typeof data58 == "object" && !Array.isArray(data58)) {
6199
- if (data58.effectiveFrom !== void 0) {
6200
- let data59 = data58.effectiveFrom;
6201
- const _errs132 = errors;
6202
- if (!(typeof data59 == "number" && (!(data59 % 1) && !isNaN(data59)) && isFinite(data59))) {
6211
+ if (data50.time !== void 0) {
6212
+ let data59 = data50.time;
6213
+ const _errs131 = errors;
6214
+ if (errors === _errs131) {
6215
+ if (data59 && typeof data59 == "object" && !Array.isArray(data59)) {
6216
+ if (data59.effectiveFrom !== void 0) {
6217
+ let data60 = data59.effectiveFrom;
6218
+ const _errs134 = errors;
6219
+ if (!(typeof data60 == "number" && (!(data60 % 1) && !isNaN(data60)) && isFinite(data60))) {
6203
6220
  validate29.errors = [{ instancePath: instancePath + "/scope/time/effectiveFrom", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionDetailResponse/properties/scope/properties/time/properties/effectiveFrom/type", keyword: "type", params: { type: "integer" }, message: "must be integer" }];
6204
6221
  return false;
6205
6222
  }
6206
- if (errors === _errs132) {
6207
- if (typeof data59 == "number" && isFinite(data59)) {
6208
- if (data59 > 9007199254740991 || isNaN(data59)) {
6223
+ if (errors === _errs134) {
6224
+ if (typeof data60 == "number" && isFinite(data60)) {
6225
+ if (data60 > 9007199254740991 || isNaN(data60)) {
6209
6226
  validate29.errors = [{ instancePath: instancePath + "/scope/time/effectiveFrom", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionDetailResponse/properties/scope/properties/time/properties/effectiveFrom/maximum", keyword: "maximum", params: { comparison: "<=", limit: 9007199254740991 }, message: "must be <= 9007199254740991" }];
6210
6227
  return false;
6211
6228
  } else {
6212
- if (data59 < -9007199254740991 || isNaN(data59)) {
6229
+ if (data60 < -9007199254740991 || isNaN(data60)) {
6213
6230
  validate29.errors = [{ instancePath: instancePath + "/scope/time/effectiveFrom", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionDetailResponse/properties/scope/properties/time/properties/effectiveFrom/minimum", keyword: "minimum", params: { comparison: ">=", limit: -9007199254740991 }, message: "must be >= -9007199254740991" }];
6214
6231
  return false;
6215
6232
  }
6216
6233
  }
6217
6234
  }
6218
6235
  }
6219
- var valid18 = _errs132 === errors;
6236
+ var valid18 = _errs134 === errors;
6220
6237
  } else {
6221
6238
  var valid18 = true;
6222
6239
  }
6223
6240
  if (valid18) {
6224
- if (data58.effectiveUntil !== void 0) {
6225
- let data60 = data58.effectiveUntil;
6226
- const _errs134 = errors;
6227
- if (!(typeof data60 == "number" && (!(data60 % 1) && !isNaN(data60)) && isFinite(data60))) {
6241
+ if (data59.effectiveUntil !== void 0) {
6242
+ let data61 = data59.effectiveUntil;
6243
+ const _errs136 = errors;
6244
+ if (!(typeof data61 == "number" && (!(data61 % 1) && !isNaN(data61)) && isFinite(data61))) {
6228
6245
  validate29.errors = [{ instancePath: instancePath + "/scope/time/effectiveUntil", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionDetailResponse/properties/scope/properties/time/properties/effectiveUntil/type", keyword: "type", params: { type: "integer" }, message: "must be integer" }];
6229
6246
  return false;
6230
6247
  }
6231
- if (errors === _errs134) {
6232
- if (typeof data60 == "number" && isFinite(data60)) {
6233
- if (data60 > 9007199254740991 || isNaN(data60)) {
6248
+ if (errors === _errs136) {
6249
+ if (typeof data61 == "number" && isFinite(data61)) {
6250
+ if (data61 > 9007199254740991 || isNaN(data61)) {
6234
6251
  validate29.errors = [{ instancePath: instancePath + "/scope/time/effectiveUntil", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionDetailResponse/properties/scope/properties/time/properties/effectiveUntil/maximum", keyword: "maximum", params: { comparison: "<=", limit: 9007199254740991 }, message: "must be <= 9007199254740991" }];
6235
6252
  return false;
6236
6253
  } else {
6237
- if (data60 < -9007199254740991 || isNaN(data60)) {
6254
+ if (data61 < -9007199254740991 || isNaN(data61)) {
6238
6255
  validate29.errors = [{ instancePath: instancePath + "/scope/time/effectiveUntil", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionDetailResponse/properties/scope/properties/time/properties/effectiveUntil/minimum", keyword: "minimum", params: { comparison: ">=", limit: -9007199254740991 }, message: "must be >= -9007199254740991" }];
6239
6256
  return false;
6240
6257
  }
6241
6258
  }
6242
6259
  }
6243
6260
  }
6244
- var valid18 = _errs134 === errors;
6261
+ var valid18 = _errs136 === errors;
6245
6262
  } else {
6246
6263
  var valid18 = true;
6247
6264
  }
@@ -6251,29 +6268,29 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
6251
6268
  return false;
6252
6269
  }
6253
6270
  }
6254
- var valid13 = _errs129 === errors;
6271
+ var valid13 = _errs131 === errors;
6255
6272
  } else {
6256
6273
  var valid13 = true;
6257
6274
  }
6258
6275
  if (valid13) {
6259
- if (data49.users !== void 0) {
6260
- let data61 = data49.users;
6261
- const _errs136 = errors;
6262
- if (errors === _errs136) {
6263
- if (Array.isArray(data61)) {
6276
+ if (data50.users !== void 0) {
6277
+ let data62 = data50.users;
6278
+ const _errs138 = errors;
6279
+ if (errors === _errs138) {
6280
+ if (Array.isArray(data62)) {
6264
6281
  var valid19 = true;
6265
- const len9 = data61.length;
6282
+ const len9 = data62.length;
6266
6283
  for (let i9 = 0; i9 < len9; i9++) {
6267
- let data62 = data61[i9];
6268
- const _errs138 = errors;
6269
- const _errs139 = errors;
6284
+ let data63 = data62[i9];
6285
+ const _errs140 = errors;
6286
+ const _errs141 = errors;
6270
6287
  let valid20 = false;
6271
6288
  let passing0 = null;
6272
- const _errs140 = errors;
6273
- if (errors === _errs140) {
6274
- if (data62 && typeof data62 == "object" && !Array.isArray(data62)) {
6289
+ const _errs142 = errors;
6290
+ if (errors === _errs142) {
6291
+ if (data63 && typeof data63 == "object" && !Array.isArray(data63)) {
6275
6292
  let missing7;
6276
- if (data62.kind === void 0 && (missing7 = "kind") || data62.userId === void 0 && (missing7 = "userId") || data62.displayName === void 0 && (missing7 = "displayName")) {
6293
+ if (data63.kind === void 0 && (missing7 = "kind") || data63.userId === void 0 && (missing7 = "userId") || data63.displayName === void 0 && (missing7 = "displayName")) {
6277
6294
  const err4 = { instancePath: instancePath + "/scope/users/" + i9, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionDetailResponse/properties/scope/properties/users/items/oneOf/0/required", keyword: "required", params: { missingProperty: missing7 }, message: "must have required property '" + missing7 + "'" };
6278
6295
  if (vErrors === null) {
6279
6296
  vErrors = [err4];
@@ -6282,8 +6299,8 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
6282
6299
  }
6283
6300
  errors++;
6284
6301
  } else {
6285
- const _errs142 = errors;
6286
- for (const key0 in data62) {
6302
+ const _errs144 = errors;
6303
+ for (const key0 in data63) {
6287
6304
  if (!(key0 === "kind" || key0 === "userId" || key0 === "displayName")) {
6288
6305
  const err5 = { instancePath: instancePath + "/scope/users/" + i9, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionDetailResponse/properties/scope/properties/users/items/oneOf/0/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key0 }, message: "must NOT have additional properties" };
6289
6306
  if (vErrors === null) {
@@ -6295,11 +6312,11 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
6295
6312
  break;
6296
6313
  }
6297
6314
  }
6298
- if (_errs142 === errors) {
6299
- if (data62.kind !== void 0) {
6300
- let data63 = data62.kind;
6301
- const _errs143 = errors;
6302
- if (typeof data63 !== "string") {
6315
+ if (_errs144 === errors) {
6316
+ if (data63.kind !== void 0) {
6317
+ let data64 = data63.kind;
6318
+ const _errs145 = errors;
6319
+ if (typeof data64 !== "string") {
6303
6320
  const err6 = { instancePath: instancePath + "/scope/users/" + i9 + "/kind", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionDetailResponse/properties/scope/properties/users/items/oneOf/0/properties/kind/type", keyword: "type", params: { type: "string" }, message: "must be string" };
6304
6321
  if (vErrors === null) {
6305
6322
  vErrors = [err6];
@@ -6308,7 +6325,7 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
6308
6325
  }
6309
6326
  errors++;
6310
6327
  }
6311
- if ("user" !== data63) {
6328
+ if ("user" !== data64) {
6312
6329
  const err7 = { instancePath: instancePath + "/scope/users/" + i9 + "/kind", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionDetailResponse/properties/scope/properties/users/items/oneOf/0/properties/kind/const", keyword: "const", params: { allowedValue: "user" }, message: "must be equal to constant" };
6313
6330
  if (vErrors === null) {
6314
6331
  vErrors = [err7];
@@ -6317,17 +6334,17 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
6317
6334
  }
6318
6335
  errors++;
6319
6336
  }
6320
- var valid21 = _errs143 === errors;
6337
+ var valid21 = _errs145 === errors;
6321
6338
  } else {
6322
6339
  var valid21 = true;
6323
6340
  }
6324
6341
  if (valid21) {
6325
- if (data62.userId !== void 0) {
6326
- let data64 = data62.userId;
6327
- const _errs145 = errors;
6328
- if (errors === _errs145) {
6329
- if (typeof data64 === "string") {
6330
- if (func1(data64) < 1) {
6342
+ if (data63.userId !== void 0) {
6343
+ let data65 = data63.userId;
6344
+ const _errs147 = errors;
6345
+ if (errors === _errs147) {
6346
+ if (typeof data65 === "string") {
6347
+ if (func1(data65) < 1) {
6331
6348
  const err8 = { instancePath: instancePath + "/scope/users/" + i9 + "/userId", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionDetailResponse/properties/scope/properties/users/items/oneOf/0/properties/userId/minLength", keyword: "minLength", params: { limit: 1 }, message: "must NOT have fewer than 1 characters" };
6332
6349
  if (vErrors === null) {
6333
6350
  vErrors = [err8];
@@ -6346,14 +6363,14 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
6346
6363
  errors++;
6347
6364
  }
6348
6365
  }
6349
- var valid21 = _errs145 === errors;
6366
+ var valid21 = _errs147 === errors;
6350
6367
  } else {
6351
6368
  var valid21 = true;
6352
6369
  }
6353
6370
  if (valid21) {
6354
- if (data62.displayName !== void 0) {
6355
- const _errs147 = errors;
6356
- if (typeof data62.displayName !== "string") {
6371
+ if (data63.displayName !== void 0) {
6372
+ const _errs149 = errors;
6373
+ if (typeof data63.displayName !== "string") {
6357
6374
  const err10 = { instancePath: instancePath + "/scope/users/" + i9 + "/displayName", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionDetailResponse/properties/scope/properties/users/items/oneOf/0/properties/displayName/type", keyword: "type", params: { type: "string" }, message: "must be string" };
6358
6375
  if (vErrors === null) {
6359
6376
  vErrors = [err10];
@@ -6362,7 +6379,7 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
6362
6379
  }
6363
6380
  errors++;
6364
6381
  }
6365
- var valid21 = _errs147 === errors;
6382
+ var valid21 = _errs149 === errors;
6366
6383
  } else {
6367
6384
  var valid21 = true;
6368
6385
  }
@@ -6380,17 +6397,17 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
6380
6397
  errors++;
6381
6398
  }
6382
6399
  }
6383
- var _valid1 = _errs140 === errors;
6400
+ var _valid1 = _errs142 === errors;
6384
6401
  if (_valid1) {
6385
6402
  valid20 = true;
6386
6403
  passing0 = 0;
6387
6404
  var props0 = true;
6388
6405
  }
6389
- const _errs149 = errors;
6390
- if (errors === _errs149) {
6391
- if (data62 && typeof data62 == "object" && !Array.isArray(data62)) {
6406
+ const _errs151 = errors;
6407
+ if (errors === _errs151) {
6408
+ if (data63 && typeof data63 == "object" && !Array.isArray(data63)) {
6392
6409
  let missing8;
6393
- if (data62.kind === void 0 && (missing8 = "kind") || data62.role === void 0 && (missing8 = "role")) {
6410
+ if (data63.kind === void 0 && (missing8 = "kind") || data63.role === void 0 && (missing8 = "role")) {
6394
6411
  const err12 = { instancePath: instancePath + "/scope/users/" + i9, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionDetailResponse/properties/scope/properties/users/items/oneOf/1/required", keyword: "required", params: { missingProperty: missing8 }, message: "must have required property '" + missing8 + "'" };
6395
6412
  if (vErrors === null) {
6396
6413
  vErrors = [err12];
@@ -6399,8 +6416,8 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
6399
6416
  }
6400
6417
  errors++;
6401
6418
  } else {
6402
- const _errs151 = errors;
6403
- for (const key1 in data62) {
6419
+ const _errs153 = errors;
6420
+ for (const key1 in data63) {
6404
6421
  if (!(key1 === "kind" || key1 === "role")) {
6405
6422
  const err13 = { instancePath: instancePath + "/scope/users/" + i9, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionDetailResponse/properties/scope/properties/users/items/oneOf/1/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key1 }, message: "must NOT have additional properties" };
6406
6423
  if (vErrors === null) {
@@ -6412,11 +6429,11 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
6412
6429
  break;
6413
6430
  }
6414
6431
  }
6415
- if (_errs151 === errors) {
6416
- if (data62.kind !== void 0) {
6417
- let data66 = data62.kind;
6418
- const _errs152 = errors;
6419
- if (typeof data66 !== "string") {
6432
+ if (_errs153 === errors) {
6433
+ if (data63.kind !== void 0) {
6434
+ let data67 = data63.kind;
6435
+ const _errs154 = errors;
6436
+ if (typeof data67 !== "string") {
6420
6437
  const err14 = { instancePath: instancePath + "/scope/users/" + i9 + "/kind", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionDetailResponse/properties/scope/properties/users/items/oneOf/1/properties/kind/type", keyword: "type", params: { type: "string" }, message: "must be string" };
6421
6438
  if (vErrors === null) {
6422
6439
  vErrors = [err14];
@@ -6425,7 +6442,7 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
6425
6442
  }
6426
6443
  errors++;
6427
6444
  }
6428
- if ("role" !== data66) {
6445
+ if ("role" !== data67) {
6429
6446
  const err15 = { instancePath: instancePath + "/scope/users/" + i9 + "/kind", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionDetailResponse/properties/scope/properties/users/items/oneOf/1/properties/kind/const", keyword: "const", params: { allowedValue: "role" }, message: "must be equal to constant" };
6430
6447
  if (vErrors === null) {
6431
6448
  vErrors = [err15];
@@ -6434,15 +6451,15 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
6434
6451
  }
6435
6452
  errors++;
6436
6453
  }
6437
- var valid22 = _errs152 === errors;
6454
+ var valid22 = _errs154 === errors;
6438
6455
  } else {
6439
6456
  var valid22 = true;
6440
6457
  }
6441
6458
  if (valid22) {
6442
- if (data62.role !== void 0) {
6443
- let data67 = data62.role;
6444
- const _errs154 = errors;
6445
- if (typeof data67 !== "string") {
6459
+ if (data63.role !== void 0) {
6460
+ let data68 = data63.role;
6461
+ const _errs156 = errors;
6462
+ if (typeof data68 !== "string") {
6446
6463
  const err16 = { instancePath: instancePath + "/scope/users/" + i9 + "/role", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionDetailResponse/properties/scope/properties/users/items/oneOf/1/properties/role/type", keyword: "type", params: { type: "string" }, message: "must be string" };
6447
6464
  if (vErrors === null) {
6448
6465
  vErrors = [err16];
@@ -6451,7 +6468,7 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
6451
6468
  }
6452
6469
  errors++;
6453
6470
  }
6454
- if (!(data67 === "owner" || data67 === "admin" || data67 === "member")) {
6471
+ if (!(data68 === "owner" || data68 === "admin" || data68 === "member")) {
6455
6472
  const err17 = { instancePath: instancePath + "/scope/users/" + i9 + "/role", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionDetailResponse/properties/scope/properties/users/items/oneOf/1/properties/role/enum", keyword: "enum", params: { allowedValues: schema49.properties.scope.properties.users.items.oneOf[1].properties.role.enum }, message: "must be equal to one of the allowed values" };
6456
6473
  if (vErrors === null) {
6457
6474
  vErrors = [err17];
@@ -6460,7 +6477,7 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
6460
6477
  }
6461
6478
  errors++;
6462
6479
  }
6463
- var valid22 = _errs154 === errors;
6480
+ var valid22 = _errs156 === errors;
6464
6481
  } else {
6465
6482
  var valid22 = true;
6466
6483
  }
@@ -6477,7 +6494,7 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
6477
6494
  errors++;
6478
6495
  }
6479
6496
  }
6480
- var _valid1 = _errs149 === errors;
6497
+ var _valid1 = _errs151 === errors;
6481
6498
  if (_valid1 && valid20) {
6482
6499
  valid20 = false;
6483
6500
  passing0 = [passing0, 1];
@@ -6489,11 +6506,11 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
6489
6506
  props0 = true;
6490
6507
  }
6491
6508
  }
6492
- const _errs156 = errors;
6493
- if (errors === _errs156) {
6494
- if (data62 && typeof data62 == "object" && !Array.isArray(data62)) {
6509
+ const _errs158 = errors;
6510
+ if (errors === _errs158) {
6511
+ if (data63 && typeof data63 == "object" && !Array.isArray(data63)) {
6495
6512
  let missing9;
6496
- if (data62.kind === void 0 && (missing9 = "kind") || data62.agent === void 0 && (missing9 = "agent")) {
6513
+ if (data63.kind === void 0 && (missing9 = "kind") || data63.agent === void 0 && (missing9 = "agent")) {
6497
6514
  const err19 = { instancePath: instancePath + "/scope/users/" + i9, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionDetailResponse/properties/scope/properties/users/items/oneOf/2/required", keyword: "required", params: { missingProperty: missing9 }, message: "must have required property '" + missing9 + "'" };
6498
6515
  if (vErrors === null) {
6499
6516
  vErrors = [err19];
@@ -6502,8 +6519,8 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
6502
6519
  }
6503
6520
  errors++;
6504
6521
  } else {
6505
- const _errs158 = errors;
6506
- for (const key2 in data62) {
6522
+ const _errs160 = errors;
6523
+ for (const key2 in data63) {
6507
6524
  if (!(key2 === "kind" || key2 === "agent")) {
6508
6525
  const err20 = { instancePath: instancePath + "/scope/users/" + i9, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionDetailResponse/properties/scope/properties/users/items/oneOf/2/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key2 }, message: "must NOT have additional properties" };
6509
6526
  if (vErrors === null) {
@@ -6515,11 +6532,11 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
6515
6532
  break;
6516
6533
  }
6517
6534
  }
6518
- if (_errs158 === errors) {
6519
- if (data62.kind !== void 0) {
6520
- let data68 = data62.kind;
6521
- const _errs159 = errors;
6522
- if (typeof data68 !== "string") {
6535
+ if (_errs160 === errors) {
6536
+ if (data63.kind !== void 0) {
6537
+ let data69 = data63.kind;
6538
+ const _errs161 = errors;
6539
+ if (typeof data69 !== "string") {
6523
6540
  const err21 = { instancePath: instancePath + "/scope/users/" + i9 + "/kind", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionDetailResponse/properties/scope/properties/users/items/oneOf/2/properties/kind/type", keyword: "type", params: { type: "string" }, message: "must be string" };
6524
6541
  if (vErrors === null) {
6525
6542
  vErrors = [err21];
@@ -6528,7 +6545,7 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
6528
6545
  }
6529
6546
  errors++;
6530
6547
  }
6531
- if ("agent" !== data68) {
6548
+ if ("agent" !== data69) {
6532
6549
  const err22 = { instancePath: instancePath + "/scope/users/" + i9 + "/kind", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionDetailResponse/properties/scope/properties/users/items/oneOf/2/properties/kind/const", keyword: "const", params: { allowedValue: "agent" }, message: "must be equal to constant" };
6533
6550
  if (vErrors === null) {
6534
6551
  vErrors = [err22];
@@ -6537,15 +6554,15 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
6537
6554
  }
6538
6555
  errors++;
6539
6556
  }
6540
- var valid23 = _errs159 === errors;
6557
+ var valid23 = _errs161 === errors;
6541
6558
  } else {
6542
6559
  var valid23 = true;
6543
6560
  }
6544
6561
  if (valid23) {
6545
- if (data62.agent !== void 0) {
6546
- let data69 = data62.agent;
6547
- const _errs161 = errors;
6548
- if (typeof data69 !== "string") {
6562
+ if (data63.agent !== void 0) {
6563
+ let data70 = data63.agent;
6564
+ const _errs163 = errors;
6565
+ if (typeof data70 !== "string") {
6549
6566
  const err23 = { instancePath: instancePath + "/scope/users/" + i9 + "/agent", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionDetailResponse/properties/scope/properties/users/items/oneOf/2/properties/agent/type", keyword: "type", params: { type: "string" }, message: "must be string" };
6550
6567
  if (vErrors === null) {
6551
6568
  vErrors = [err23];
@@ -6554,7 +6571,7 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
6554
6571
  }
6555
6572
  errors++;
6556
6573
  }
6557
- if (!(data69 === "claude_code" || data69 === "codex" || data69 === "hermes")) {
6574
+ if (!(data70 === "claude_code" || data70 === "codex" || data70 === "hermes")) {
6558
6575
  const err24 = { instancePath: instancePath + "/scope/users/" + i9 + "/agent", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionDetailResponse/properties/scope/properties/users/items/oneOf/2/properties/agent/enum", keyword: "enum", params: { allowedValues: schema49.properties.scope.properties.users.items.oneOf[2].properties.agent.enum }, message: "must be equal to one of the allowed values" };
6559
6576
  if (vErrors === null) {
6560
6577
  vErrors = [err24];
@@ -6563,7 +6580,7 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
6563
6580
  }
6564
6581
  errors++;
6565
6582
  }
6566
- var valid23 = _errs161 === errors;
6583
+ var valid23 = _errs163 === errors;
6567
6584
  } else {
6568
6585
  var valid23 = true;
6569
6586
  }
@@ -6580,7 +6597,7 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
6580
6597
  errors++;
6581
6598
  }
6582
6599
  }
6583
- var _valid1 = _errs156 === errors;
6600
+ var _valid1 = _errs158 === errors;
6584
6601
  if (_valid1 && valid20) {
6585
6602
  valid20 = false;
6586
6603
  passing0 = [passing0, 2];
@@ -6592,11 +6609,11 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
6592
6609
  props0 = true;
6593
6610
  }
6594
6611
  }
6595
- const _errs163 = errors;
6596
- if (errors === _errs163) {
6597
- if (data62 && typeof data62 == "object" && !Array.isArray(data62)) {
6612
+ const _errs165 = errors;
6613
+ if (errors === _errs165) {
6614
+ if (data63 && typeof data63 == "object" && !Array.isArray(data63)) {
6598
6615
  let missing10;
6599
- if (data62.kind === void 0 && (missing10 = "kind") || data62.credential === void 0 && (missing10 = "credential")) {
6616
+ if (data63.kind === void 0 && (missing10 = "kind") || data63.credential === void 0 && (missing10 = "credential")) {
6600
6617
  const err26 = { instancePath: instancePath + "/scope/users/" + i9, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionDetailResponse/properties/scope/properties/users/items/oneOf/3/required", keyword: "required", params: { missingProperty: missing10 }, message: "must have required property '" + missing10 + "'" };
6601
6618
  if (vErrors === null) {
6602
6619
  vErrors = [err26];
@@ -6605,8 +6622,8 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
6605
6622
  }
6606
6623
  errors++;
6607
6624
  } else {
6608
- const _errs165 = errors;
6609
- for (const key3 in data62) {
6625
+ const _errs167 = errors;
6626
+ for (const key3 in data63) {
6610
6627
  if (!(key3 === "kind" || key3 === "credential")) {
6611
6628
  const err27 = { instancePath: instancePath + "/scope/users/" + i9, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionDetailResponse/properties/scope/properties/users/items/oneOf/3/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key3 }, message: "must NOT have additional properties" };
6612
6629
  if (vErrors === null) {
@@ -6618,11 +6635,11 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
6618
6635
  break;
6619
6636
  }
6620
6637
  }
6621
- if (_errs165 === errors) {
6622
- if (data62.kind !== void 0) {
6623
- let data70 = data62.kind;
6624
- const _errs166 = errors;
6625
- if (typeof data70 !== "string") {
6638
+ if (_errs167 === errors) {
6639
+ if (data63.kind !== void 0) {
6640
+ let data71 = data63.kind;
6641
+ const _errs168 = errors;
6642
+ if (typeof data71 !== "string") {
6626
6643
  const err28 = { instancePath: instancePath + "/scope/users/" + i9 + "/kind", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionDetailResponse/properties/scope/properties/users/items/oneOf/3/properties/kind/type", keyword: "type", params: { type: "string" }, message: "must be string" };
6627
6644
  if (vErrors === null) {
6628
6645
  vErrors = [err28];
@@ -6631,7 +6648,7 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
6631
6648
  }
6632
6649
  errors++;
6633
6650
  }
6634
- if ("credential" !== data70) {
6651
+ if ("credential" !== data71) {
6635
6652
  const err29 = { instancePath: instancePath + "/scope/users/" + i9 + "/kind", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionDetailResponse/properties/scope/properties/users/items/oneOf/3/properties/kind/const", keyword: "const", params: { allowedValue: "credential" }, message: "must be equal to constant" };
6636
6653
  if (vErrors === null) {
6637
6654
  vErrors = [err29];
@@ -6640,15 +6657,15 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
6640
6657
  }
6641
6658
  errors++;
6642
6659
  }
6643
- var valid24 = _errs166 === errors;
6660
+ var valid24 = _errs168 === errors;
6644
6661
  } else {
6645
6662
  var valid24 = true;
6646
6663
  }
6647
6664
  if (valid24) {
6648
- if (data62.credential !== void 0) {
6649
- let data71 = data62.credential;
6650
- const _errs168 = errors;
6651
- if (typeof data71 !== "string") {
6665
+ if (data63.credential !== void 0) {
6666
+ let data72 = data63.credential;
6667
+ const _errs170 = errors;
6668
+ if (typeof data72 !== "string") {
6652
6669
  const err30 = { instancePath: instancePath + "/scope/users/" + i9 + "/credential", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionDetailResponse/properties/scope/properties/users/items/oneOf/3/properties/credential/type", keyword: "type", params: { type: "string" }, message: "must be string" };
6653
6670
  if (vErrors === null) {
6654
6671
  vErrors = [err30];
@@ -6657,7 +6674,7 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
6657
6674
  }
6658
6675
  errors++;
6659
6676
  }
6660
- if (!(data71 === "workos_jwt" || data71 === "workos_api_key" || data71 === "service_token")) {
6677
+ if (!(data72 === "workos_jwt" || data72 === "workos_api_key" || data72 === "service_token")) {
6661
6678
  const err31 = { instancePath: instancePath + "/scope/users/" + i9 + "/credential", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionDetailResponse/properties/scope/properties/users/items/oneOf/3/properties/credential/enum", keyword: "enum", params: { allowedValues: schema49.properties.scope.properties.users.items.oneOf[3].properties.credential.enum }, message: "must be equal to one of the allowed values" };
6662
6679
  if (vErrors === null) {
6663
6680
  vErrors = [err31];
@@ -6666,7 +6683,7 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
6666
6683
  }
6667
6684
  errors++;
6668
6685
  }
6669
- var valid24 = _errs168 === errors;
6686
+ var valid24 = _errs170 === errors;
6670
6687
  } else {
6671
6688
  var valid24 = true;
6672
6689
  }
@@ -6683,7 +6700,7 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
6683
6700
  errors++;
6684
6701
  }
6685
6702
  }
6686
- var _valid1 = _errs163 === errors;
6703
+ var _valid1 = _errs165 === errors;
6687
6704
  if (_valid1 && valid20) {
6688
6705
  valid20 = false;
6689
6706
  passing0 = [passing0, 3];
@@ -6709,16 +6726,16 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
6709
6726
  validate29.errors = vErrors;
6710
6727
  return false;
6711
6728
  } else {
6712
- errors = _errs139;
6729
+ errors = _errs141;
6713
6730
  if (vErrors !== null) {
6714
- if (_errs139) {
6715
- vErrors.length = _errs139;
6731
+ if (_errs141) {
6732
+ vErrors.length = _errs141;
6716
6733
  } else {
6717
6734
  vErrors = null;
6718
6735
  }
6719
6736
  }
6720
6737
  }
6721
- var valid19 = _errs138 === errors;
6738
+ var valid19 = _errs140 === errors;
6722
6739
  if (!valid19) {
6723
6740
  break;
6724
6741
  }
@@ -6728,7 +6745,7 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
6728
6745
  return false;
6729
6746
  }
6730
6747
  }
6731
- var valid13 = _errs136 === errors;
6748
+ var valid13 = _errs138 === errors;
6732
6749
  } else {
6733
6750
  var valid13 = true;
6734
6751
  }
@@ -6740,18 +6757,18 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
6740
6757
  return false;
6741
6758
  }
6742
6759
  }
6743
- var valid1 = _errs109 === errors;
6760
+ var valid1 = _errs111 === errors;
6744
6761
  } else {
6745
6762
  var valid1 = true;
6746
6763
  }
6747
6764
  if (valid1) {
6748
6765
  if (data.truncated !== void 0) {
6749
- const _errs170 = errors;
6766
+ const _errs172 = errors;
6750
6767
  if (typeof data.truncated !== "boolean") {
6751
6768
  validate29.errors = [{ instancePath: instancePath + "/truncated", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionDetailResponse/properties/truncated/type", keyword: "type", params: { type: "boolean" }, message: "must be boolean" }];
6752
6769
  return false;
6753
6770
  }
6754
- var valid1 = _errs170 === errors;
6771
+ var valid1 = _errs172 === errors;
6755
6772
  } else {
6756
6773
  var valid1 = true;
6757
6774
  }