@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.
@@ -12556,7 +12556,7 @@ function validate28(data, { instancePath = "", parentData, parentDataProperty, r
12556
12556
  return errors === 0;
12557
12557
  }
12558
12558
  validate28.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
12559
- 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": {} };
12559
+ 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": {} };
12560
12560
  function validate29(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
12561
12561
  ;
12562
12562
  let vErrors = null;
@@ -12582,7 +12582,7 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
12582
12582
  if (errors === _errs3) {
12583
12583
  if (data0 && typeof data0 == "object" && !Array.isArray(data0)) {
12584
12584
  let missing1;
12585
- 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")) {
12585
+ 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")) {
12586
12586
  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 + "'" }];
12587
12587
  return false;
12588
12588
  } else {
@@ -12732,15 +12732,15 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
12732
12732
  var valid2 = true;
12733
12733
  }
12734
12734
  if (valid2) {
12735
- if (data0.status !== void 0) {
12736
- let data12 = data0.status;
12735
+ if (data0.stage !== void 0) {
12736
+ let data12 = data0.stage;
12737
12737
  const _errs28 = errors;
12738
12738
  if (typeof data12 !== "string") {
12739
- 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" }];
12739
+ 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" }];
12740
12740
  return false;
12741
12741
  }
12742
- if (!(data12 === "active" || data12 === "superseded" || data12 === "under_review")) {
12743
- 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" }];
12742
+ if (!(data12 === "draft" || data12 === "provisional" || data12 === "adopted" || data12 === "superseded" || data12 === "abandoned")) {
12743
+ 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" }];
12744
12744
  return false;
12745
12745
  }
12746
12746
  var valid2 = _errs28 === errors;
@@ -12748,97 +12748,97 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
12748
12748
  var valid2 = true;
12749
12749
  }
12750
12750
  if (valid2) {
12751
- if (data0.supersededBy !== void 0) {
12752
- let data13 = data0.supersededBy;
12751
+ if (data0.status !== void 0) {
12752
+ let data13 = data0.status;
12753
12753
  const _errs30 = errors;
12754
- const _errs31 = errors;
12755
- let valid5 = false;
12756
- const _errs32 = errors;
12757
- if (errors === _errs32) {
12758
- if (typeof data13 === "string") {
12759
- if (func1(data13) < 1) {
12760
- 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" };
12754
+ if (typeof data13 !== "string") {
12755
+ 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" }];
12756
+ return false;
12757
+ }
12758
+ if (!(data13 === "active" || data13 === "superseded" || data13 === "under_review")) {
12759
+ 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" }];
12760
+ return false;
12761
+ }
12762
+ var valid2 = _errs30 === errors;
12763
+ } else {
12764
+ var valid2 = true;
12765
+ }
12766
+ if (valid2) {
12767
+ if (data0.supersededBy !== void 0) {
12768
+ let data14 = data0.supersededBy;
12769
+ const _errs32 = errors;
12770
+ const _errs33 = errors;
12771
+ let valid5 = false;
12772
+ const _errs34 = errors;
12773
+ if (errors === _errs34) {
12774
+ if (typeof data14 === "string") {
12775
+ if (func1(data14) < 1) {
12776
+ 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" };
12777
+ if (vErrors === null) {
12778
+ vErrors = [err0];
12779
+ } else {
12780
+ vErrors.push(err0);
12781
+ }
12782
+ errors++;
12783
+ }
12784
+ } else {
12785
+ 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" };
12761
12786
  if (vErrors === null) {
12762
- vErrors = [err0];
12787
+ vErrors = [err1];
12763
12788
  } else {
12764
- vErrors.push(err0);
12789
+ vErrors.push(err1);
12765
12790
  }
12766
12791
  errors++;
12767
12792
  }
12768
- } else {
12769
- 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" };
12793
+ }
12794
+ var _valid0 = _errs34 === errors;
12795
+ valid5 = valid5 || _valid0;
12796
+ const _errs36 = errors;
12797
+ if (data14 !== null) {
12798
+ 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" };
12770
12799
  if (vErrors === null) {
12771
- vErrors = [err1];
12800
+ vErrors = [err2];
12772
12801
  } else {
12773
- vErrors.push(err1);
12802
+ vErrors.push(err2);
12774
12803
  }
12775
12804
  errors++;
12776
12805
  }
12777
- }
12778
- var _valid0 = _errs32 === errors;
12779
- valid5 = valid5 || _valid0;
12780
- const _errs34 = errors;
12781
- if (data13 !== null) {
12782
- 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" };
12783
- if (vErrors === null) {
12784
- vErrors = [err2];
12785
- } else {
12786
- vErrors.push(err2);
12787
- }
12788
- errors++;
12789
- }
12790
- var _valid0 = _errs34 === errors;
12791
- valid5 = valid5 || _valid0;
12792
- if (!valid5) {
12793
- 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" };
12794
- if (vErrors === null) {
12795
- vErrors = [err3];
12796
- } else {
12797
- vErrors.push(err3);
12798
- }
12799
- errors++;
12800
- validate29.errors = vErrors;
12801
- return false;
12802
- } else {
12803
- errors = _errs31;
12804
- if (vErrors !== null) {
12805
- if (_errs31) {
12806
- vErrors.length = _errs31;
12806
+ var _valid0 = _errs36 === errors;
12807
+ valid5 = valid5 || _valid0;
12808
+ if (!valid5) {
12809
+ 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" };
12810
+ if (vErrors === null) {
12811
+ vErrors = [err3];
12807
12812
  } else {
12808
- vErrors = null;
12813
+ vErrors.push(err3);
12809
12814
  }
12810
- }
12811
- }
12812
- var valid2 = _errs30 === errors;
12813
- } else {
12814
- var valid2 = true;
12815
- }
12816
- if (valid2) {
12817
- if (data0.confidence !== void 0) {
12818
- let data14 = data0.confidence;
12819
- const _errs36 = errors;
12820
- if (typeof data14 !== "string") {
12821
- 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" }];
12822
- return false;
12823
- }
12824
- if (!(data14 === "high" || data14 === "medium" || data14 === "low")) {
12825
- 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" }];
12815
+ errors++;
12816
+ validate29.errors = vErrors;
12826
12817
  return false;
12818
+ } else {
12819
+ errors = _errs33;
12820
+ if (vErrors !== null) {
12821
+ if (_errs33) {
12822
+ vErrors.length = _errs33;
12823
+ } else {
12824
+ vErrors = null;
12825
+ }
12826
+ }
12827
12827
  }
12828
- var valid2 = _errs36 === errors;
12828
+ var valid2 = _errs32 === errors;
12829
12829
  } else {
12830
12830
  var valid2 = true;
12831
12831
  }
12832
12832
  if (valid2) {
12833
- if (data0.reversibility !== void 0) {
12834
- let data15 = data0.reversibility;
12833
+ if (data0.confidence !== void 0) {
12834
+ let data15 = data0.confidence;
12835
12835
  const _errs38 = errors;
12836
12836
  if (typeof data15 !== "string") {
12837
- 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" }];
12837
+ 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" }];
12838
12838
  return false;
12839
12839
  }
12840
- if (!(data15 === "high" || data15 === "low")) {
12841
- 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" }];
12840
+ if (!(data15 === "high" || data15 === "medium" || data15 === "low")) {
12841
+ 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" }];
12842
12842
  return false;
12843
12843
  }
12844
12844
  var valid2 = _errs38 === errors;
@@ -12846,10 +12846,15 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
12846
12846
  var valid2 = true;
12847
12847
  }
12848
12848
  if (valid2) {
12849
- if (data0.confirmed !== void 0) {
12849
+ if (data0.reversibility !== void 0) {
12850
+ let data16 = data0.reversibility;
12850
12851
  const _errs40 = errors;
12851
- if (typeof data0.confirmed !== "boolean") {
12852
- 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" }];
12852
+ if (typeof data16 !== "string") {
12853
+ 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" }];
12854
+ return false;
12855
+ }
12856
+ if (!(data16 === "high" || data16 === "low")) {
12857
+ 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" }];
12853
12858
  return false;
12854
12859
  }
12855
12860
  var valid2 = _errs40 === errors;
@@ -12857,11 +12862,10 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
12857
12862
  var valid2 = true;
12858
12863
  }
12859
12864
  if (valid2) {
12860
- if (data0.respondedAt !== void 0) {
12861
- let data17 = data0.respondedAt;
12865
+ if (data0.confirmed !== void 0) {
12862
12866
  const _errs42 = errors;
12863
- if (!(typeof data17 == "number" && isFinite(data17))) {
12864
- 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" }];
12867
+ if (typeof data0.confirmed !== "boolean") {
12868
+ 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" }];
12865
12869
  return false;
12866
12870
  }
12867
12871
  var valid2 = _errs42 === errors;
@@ -12869,11 +12873,11 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
12869
12873
  var valid2 = true;
12870
12874
  }
12871
12875
  if (valid2) {
12872
- if (data0.fanOut !== void 0) {
12873
- let data18 = data0.fanOut;
12876
+ if (data0.respondedAt !== void 0) {
12877
+ let data18 = data0.respondedAt;
12874
12878
  const _errs44 = errors;
12875
12879
  if (!(typeof data18 == "number" && isFinite(data18))) {
12876
- 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" }];
12880
+ 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" }];
12877
12881
  return false;
12878
12882
  }
12879
12883
  var valid2 = _errs44 === errors;
@@ -12881,11 +12885,11 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
12881
12885
  var valid2 = true;
12882
12886
  }
12883
12887
  if (valid2) {
12884
- if (data0.classifiedAt !== void 0) {
12885
- let data19 = data0.classifiedAt;
12888
+ if (data0.fanOut !== void 0) {
12889
+ let data19 = data0.fanOut;
12886
12890
  const _errs46 = errors;
12887
12891
  if (!(typeof data19 == "number" && isFinite(data19))) {
12888
- 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" }];
12892
+ 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" }];
12889
12893
  return false;
12890
12894
  }
12891
12895
  var valid2 = _errs46 === errors;
@@ -12893,16 +12897,29 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
12893
12897
  var valid2 = true;
12894
12898
  }
12895
12899
  if (valid2) {
12896
- if (data0.authorName !== void 0) {
12900
+ if (data0.classifiedAt !== void 0) {
12901
+ let data20 = data0.classifiedAt;
12897
12902
  const _errs48 = errors;
12898
- if (typeof data0.authorName !== "string") {
12899
- 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" }];
12903
+ if (!(typeof data20 == "number" && isFinite(data20))) {
12904
+ 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" }];
12900
12905
  return false;
12901
12906
  }
12902
12907
  var valid2 = _errs48 === errors;
12903
12908
  } else {
12904
12909
  var valid2 = true;
12905
12910
  }
12911
+ if (valid2) {
12912
+ if (data0.authorName !== void 0) {
12913
+ const _errs50 = errors;
12914
+ if (typeof data0.authorName !== "string") {
12915
+ 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" }];
12916
+ return false;
12917
+ }
12918
+ var valid2 = _errs50 === errors;
12919
+ } else {
12920
+ var valid2 = true;
12921
+ }
12922
+ }
12906
12923
  }
12907
12924
  }
12908
12925
  }
@@ -12932,19 +12949,19 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
12932
12949
  }
12933
12950
  if (valid1) {
12934
12951
  if (data.files !== void 0) {
12935
- let data21 = data.files;
12936
- const _errs50 = errors;
12937
- if (errors === _errs50) {
12938
- if (Array.isArray(data21)) {
12952
+ let data22 = data.files;
12953
+ const _errs52 = errors;
12954
+ if (errors === _errs52) {
12955
+ if (Array.isArray(data22)) {
12939
12956
  var valid6 = true;
12940
- const len2 = data21.length;
12957
+ const len2 = data22.length;
12941
12958
  for (let i2 = 0; i2 < len2; i2++) {
12942
- const _errs52 = errors;
12943
- if (typeof data21[i2] !== "string") {
12959
+ const _errs54 = errors;
12960
+ if (typeof data22[i2] !== "string") {
12944
12961
  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" }];
12945
12962
  return false;
12946
12963
  }
12947
- var valid6 = _errs52 === errors;
12964
+ var valid6 = _errs54 === errors;
12948
12965
  if (!valid6) {
12949
12966
  break;
12950
12967
  }
@@ -12954,97 +12971,97 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
12954
12971
  return false;
12955
12972
  }
12956
12973
  }
12957
- var valid1 = _errs50 === errors;
12974
+ var valid1 = _errs52 === errors;
12958
12975
  } else {
12959
12976
  var valid1 = true;
12960
12977
  }
12961
12978
  if (valid1) {
12962
12979
  if (data.flags !== void 0) {
12963
- let data23 = data.flags;
12964
- const _errs54 = errors;
12965
- if (errors === _errs54) {
12966
- if (Array.isArray(data23)) {
12980
+ let data24 = data.flags;
12981
+ const _errs56 = errors;
12982
+ if (errors === _errs56) {
12983
+ if (Array.isArray(data24)) {
12967
12984
  var valid7 = true;
12968
- const len3 = data23.length;
12985
+ const len3 = data24.length;
12969
12986
  for (let i3 = 0; i3 < len3; i3++) {
12970
- let data24 = data23[i3];
12971
- const _errs56 = errors;
12972
- if (errors === _errs56) {
12973
- if (data24 && typeof data24 == "object" && !Array.isArray(data24)) {
12987
+ let data25 = data24[i3];
12988
+ const _errs58 = errors;
12989
+ if (errors === _errs58) {
12990
+ if (data25 && typeof data25 == "object" && !Array.isArray(data25)) {
12974
12991
  let missing2;
12975
- if (data24.type === void 0 && (missing2 = "type") || data24.flaggedAt === void 0 && (missing2 = "flaggedAt")) {
12992
+ if (data25.type === void 0 && (missing2 = "type") || data25.flaggedAt === void 0 && (missing2 = "flaggedAt")) {
12976
12993
  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 + "'" }];
12977
12994
  return false;
12978
12995
  } else {
12979
- if (data24.type !== void 0) {
12980
- let data25 = data24.type;
12981
- const _errs59 = errors;
12982
- if (typeof data25 !== "string") {
12996
+ if (data25.type !== void 0) {
12997
+ let data26 = data25.type;
12998
+ const _errs61 = errors;
12999
+ if (typeof data26 !== "string") {
12983
13000
  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" }];
12984
13001
  return false;
12985
13002
  }
12986
- if (!(data25 === "file_edit" || data25 === "supersession" || data25 === "invalidation" || data25 === "confirmation_request")) {
13003
+ if (!(data26 === "file_edit" || data26 === "supersession" || data26 === "invalidation" || data26 === "confirmation_request")) {
12987
13004
  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" }];
12988
13005
  return false;
12989
13006
  }
12990
- var valid8 = _errs59 === errors;
13007
+ var valid8 = _errs61 === errors;
12991
13008
  } else {
12992
13009
  var valid8 = true;
12993
13010
  }
12994
13011
  if (valid8) {
12995
- if (data24.file !== void 0) {
12996
- const _errs61 = errors;
12997
- if (typeof data24.file !== "string") {
13012
+ if (data25.file !== void 0) {
13013
+ const _errs63 = errors;
13014
+ if (typeof data25.file !== "string") {
12998
13015
  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" }];
12999
13016
  return false;
13000
13017
  }
13001
- var valid8 = _errs61 === errors;
13018
+ var valid8 = _errs63 === errors;
13002
13019
  } else {
13003
13020
  var valid8 = true;
13004
13021
  }
13005
13022
  if (valid8) {
13006
- if (data24.flaggedAt !== void 0) {
13007
- let data27 = data24.flaggedAt;
13008
- const _errs63 = errors;
13009
- if (!(typeof data27 == "number" && isFinite(data27))) {
13023
+ if (data25.flaggedAt !== void 0) {
13024
+ let data28 = data25.flaggedAt;
13025
+ const _errs65 = errors;
13026
+ if (!(typeof data28 == "number" && isFinite(data28))) {
13010
13027
  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" }];
13011
13028
  return false;
13012
13029
  }
13013
- var valid8 = _errs63 === errors;
13030
+ var valid8 = _errs65 === errors;
13014
13031
  } else {
13015
13032
  var valid8 = true;
13016
13033
  }
13017
13034
  if (valid8) {
13018
- if (data24.acknowledgedAt !== void 0) {
13019
- let data28 = data24.acknowledgedAt;
13020
- const _errs65 = errors;
13021
- if (!(typeof data28 == "number" && isFinite(data28))) {
13035
+ if (data25.acknowledgedAt !== void 0) {
13036
+ let data29 = data25.acknowledgedAt;
13037
+ const _errs67 = errors;
13038
+ if (!(typeof data29 == "number" && isFinite(data29))) {
13022
13039
  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" }];
13023
13040
  return false;
13024
13041
  }
13025
- var valid8 = _errs65 === errors;
13042
+ var valid8 = _errs67 === errors;
13026
13043
  } else {
13027
13044
  var valid8 = true;
13028
13045
  }
13029
13046
  if (valid8) {
13030
- if (data24.gateVerdict !== void 0) {
13031
- const _errs67 = errors;
13032
- if (typeof data24.gateVerdict !== "string") {
13047
+ if (data25.gateVerdict !== void 0) {
13048
+ const _errs69 = errors;
13049
+ if (typeof data25.gateVerdict !== "string") {
13033
13050
  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" }];
13034
13051
  return false;
13035
13052
  }
13036
- var valid8 = _errs67 === errors;
13053
+ var valid8 = _errs69 === errors;
13037
13054
  } else {
13038
13055
  var valid8 = true;
13039
13056
  }
13040
13057
  if (valid8) {
13041
- if (data24.reason !== void 0) {
13042
- const _errs69 = errors;
13043
- if (typeof data24.reason !== "string") {
13058
+ if (data25.reason !== void 0) {
13059
+ const _errs71 = errors;
13060
+ if (typeof data25.reason !== "string") {
13044
13061
  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" }];
13045
13062
  return false;
13046
13063
  }
13047
- var valid8 = _errs69 === errors;
13064
+ var valid8 = _errs71 === errors;
13048
13065
  } else {
13049
13066
  var valid8 = true;
13050
13067
  }
@@ -13059,7 +13076,7 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
13059
13076
  return false;
13060
13077
  }
13061
13078
  }
13062
- var valid7 = _errs56 === errors;
13079
+ var valid7 = _errs58 === errors;
13063
13080
  if (!valid7) {
13064
13081
  break;
13065
13082
  }
@@ -13069,34 +13086,34 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
13069
13086
  return false;
13070
13087
  }
13071
13088
  }
13072
- var valid1 = _errs54 === errors;
13089
+ var valid1 = _errs56 === errors;
13073
13090
  } else {
13074
13091
  var valid1 = true;
13075
13092
  }
13076
13093
  if (valid1) {
13077
13094
  if (data.dependsOn !== void 0) {
13078
- let data31 = data.dependsOn;
13079
- const _errs71 = errors;
13080
- if (errors === _errs71) {
13081
- if (Array.isArray(data31)) {
13095
+ let data32 = data.dependsOn;
13096
+ const _errs73 = errors;
13097
+ if (errors === _errs73) {
13098
+ if (Array.isArray(data32)) {
13082
13099
  var valid9 = true;
13083
- const len4 = data31.length;
13100
+ const len4 = data32.length;
13084
13101
  for (let i4 = 0; i4 < len4; i4++) {
13085
- let data32 = data31[i4];
13086
- const _errs73 = errors;
13087
- if (errors === _errs73) {
13088
- if (data32 && typeof data32 == "object" && !Array.isArray(data32)) {
13102
+ let data33 = data32[i4];
13103
+ const _errs75 = errors;
13104
+ if (errors === _errs75) {
13105
+ if (data33 && typeof data33 == "object" && !Array.isArray(data33)) {
13089
13106
  let missing3;
13090
- 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")) {
13107
+ 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")) {
13091
13108
  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 + "'" }];
13092
13109
  return false;
13093
13110
  } else {
13094
- if (data32.id !== void 0) {
13095
- let data33 = data32.id;
13096
- const _errs76 = errors;
13097
- if (errors === _errs76) {
13098
- if (typeof data33 === "string") {
13099
- if (func1(data33) < 1) {
13111
+ if (data33.id !== void 0) {
13112
+ let data34 = data33.id;
13113
+ const _errs78 = errors;
13114
+ if (errors === _errs78) {
13115
+ if (typeof data34 === "string") {
13116
+ if (func1(data34) < 1) {
13100
13117
  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" }];
13101
13118
  return false;
13102
13119
  }
@@ -13105,79 +13122,79 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
13105
13122
  return false;
13106
13123
  }
13107
13124
  }
13108
- var valid10 = _errs76 === errors;
13125
+ var valid10 = _errs78 === errors;
13109
13126
  } else {
13110
13127
  var valid10 = true;
13111
13128
  }
13112
13129
  if (valid10) {
13113
- if (data32.shortId !== void 0) {
13114
- const _errs78 = errors;
13115
- if (typeof data32.shortId !== "string") {
13130
+ if (data33.shortId !== void 0) {
13131
+ const _errs80 = errors;
13132
+ if (typeof data33.shortId !== "string") {
13116
13133
  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" }];
13117
13134
  return false;
13118
13135
  }
13119
- var valid10 = _errs78 === errors;
13136
+ var valid10 = _errs80 === errors;
13120
13137
  } else {
13121
13138
  var valid10 = true;
13122
13139
  }
13123
13140
  if (valid10) {
13124
- if (data32.intent !== void 0) {
13125
- const _errs80 = errors;
13126
- if (typeof data32.intent !== "string") {
13141
+ if (data33.intent !== void 0) {
13142
+ const _errs82 = errors;
13143
+ if (typeof data33.intent !== "string") {
13127
13144
  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" }];
13128
13145
  return false;
13129
13146
  }
13130
- var valid10 = _errs80 === errors;
13147
+ var valid10 = _errs82 === errors;
13131
13148
  } else {
13132
13149
  var valid10 = true;
13133
13150
  }
13134
13151
  if (valid10) {
13135
- if (data32.area !== void 0) {
13136
- const _errs82 = errors;
13137
- if (typeof data32.area !== "string") {
13152
+ if (data33.area !== void 0) {
13153
+ const _errs84 = errors;
13154
+ if (typeof data33.area !== "string") {
13138
13155
  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" }];
13139
13156
  return false;
13140
13157
  }
13141
- var valid10 = _errs82 === errors;
13158
+ var valid10 = _errs84 === errors;
13142
13159
  } else {
13143
13160
  var valid10 = true;
13144
13161
  }
13145
13162
  if (valid10) {
13146
- if (data32.authorName !== void 0) {
13147
- const _errs84 = errors;
13148
- if (typeof data32.authorName !== "string") {
13163
+ if (data33.authorName !== void 0) {
13164
+ const _errs86 = errors;
13165
+ if (typeof data33.authorName !== "string") {
13149
13166
  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" }];
13150
13167
  return false;
13151
13168
  }
13152
- var valid10 = _errs84 === errors;
13169
+ var valid10 = _errs86 === errors;
13153
13170
  } else {
13154
13171
  var valid10 = true;
13155
13172
  }
13156
13173
  if (valid10) {
13157
- if (data32.classifiedAt !== void 0) {
13158
- let data38 = data32.classifiedAt;
13159
- const _errs86 = errors;
13160
- if (!(typeof data38 == "number" && isFinite(data38))) {
13174
+ if (data33.classifiedAt !== void 0) {
13175
+ let data39 = data33.classifiedAt;
13176
+ const _errs88 = errors;
13177
+ if (!(typeof data39 == "number" && isFinite(data39))) {
13161
13178
  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" }];
13162
13179
  return false;
13163
13180
  }
13164
- var valid10 = _errs86 === errors;
13181
+ var valid10 = _errs88 === errors;
13165
13182
  } else {
13166
13183
  var valid10 = true;
13167
13184
  }
13168
13185
  if (valid10) {
13169
- if (data32.status !== void 0) {
13170
- let data39 = data32.status;
13171
- const _errs88 = errors;
13172
- if (typeof data39 !== "string") {
13186
+ if (data33.status !== void 0) {
13187
+ let data40 = data33.status;
13188
+ const _errs90 = errors;
13189
+ if (typeof data40 !== "string") {
13173
13190
  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" }];
13174
13191
  return false;
13175
13192
  }
13176
- if (!(data39 === "active" || data39 === "superseded" || data39 === "under_review")) {
13193
+ if (!(data40 === "active" || data40 === "superseded" || data40 === "under_review")) {
13177
13194
  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" }];
13178
13195
  return false;
13179
13196
  }
13180
- var valid10 = _errs88 === errors;
13197
+ var valid10 = _errs90 === errors;
13181
13198
  } else {
13182
13199
  var valid10 = true;
13183
13200
  }
@@ -13193,7 +13210,7 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
13193
13210
  return false;
13194
13211
  }
13195
13212
  }
13196
- var valid9 = _errs73 === errors;
13213
+ var valid9 = _errs75 === errors;
13197
13214
  if (!valid9) {
13198
13215
  break;
13199
13216
  }
@@ -13203,34 +13220,34 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
13203
13220
  return false;
13204
13221
  }
13205
13222
  }
13206
- var valid1 = _errs71 === errors;
13223
+ var valid1 = _errs73 === errors;
13207
13224
  } else {
13208
13225
  var valid1 = true;
13209
13226
  }
13210
13227
  if (valid1) {
13211
13228
  if (data.dependents !== void 0) {
13212
- let data40 = data.dependents;
13213
- const _errs90 = errors;
13214
- if (errors === _errs90) {
13215
- if (Array.isArray(data40)) {
13229
+ let data41 = data.dependents;
13230
+ const _errs92 = errors;
13231
+ if (errors === _errs92) {
13232
+ if (Array.isArray(data41)) {
13216
13233
  var valid11 = true;
13217
- const len5 = data40.length;
13234
+ const len5 = data41.length;
13218
13235
  for (let i5 = 0; i5 < len5; i5++) {
13219
- let data41 = data40[i5];
13220
- const _errs92 = errors;
13221
- if (errors === _errs92) {
13222
- if (data41 && typeof data41 == "object" && !Array.isArray(data41)) {
13236
+ let data42 = data41[i5];
13237
+ const _errs94 = errors;
13238
+ if (errors === _errs94) {
13239
+ if (data42 && typeof data42 == "object" && !Array.isArray(data42)) {
13223
13240
  let missing4;
13224
- 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")) {
13241
+ 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")) {
13225
13242
  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 + "'" }];
13226
13243
  return false;
13227
13244
  } else {
13228
- if (data41.id !== void 0) {
13229
- let data42 = data41.id;
13230
- const _errs95 = errors;
13231
- if (errors === _errs95) {
13232
- if (typeof data42 === "string") {
13233
- if (func1(data42) < 1) {
13245
+ if (data42.id !== void 0) {
13246
+ let data43 = data42.id;
13247
+ const _errs97 = errors;
13248
+ if (errors === _errs97) {
13249
+ if (typeof data43 === "string") {
13250
+ if (func1(data43) < 1) {
13234
13251
  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" }];
13235
13252
  return false;
13236
13253
  }
@@ -13239,79 +13256,79 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
13239
13256
  return false;
13240
13257
  }
13241
13258
  }
13242
- var valid12 = _errs95 === errors;
13259
+ var valid12 = _errs97 === errors;
13243
13260
  } else {
13244
13261
  var valid12 = true;
13245
13262
  }
13246
13263
  if (valid12) {
13247
- if (data41.shortId !== void 0) {
13248
- const _errs97 = errors;
13249
- if (typeof data41.shortId !== "string") {
13264
+ if (data42.shortId !== void 0) {
13265
+ const _errs99 = errors;
13266
+ if (typeof data42.shortId !== "string") {
13250
13267
  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" }];
13251
13268
  return false;
13252
13269
  }
13253
- var valid12 = _errs97 === errors;
13270
+ var valid12 = _errs99 === errors;
13254
13271
  } else {
13255
13272
  var valid12 = true;
13256
13273
  }
13257
13274
  if (valid12) {
13258
- if (data41.intent !== void 0) {
13259
- const _errs99 = errors;
13260
- if (typeof data41.intent !== "string") {
13275
+ if (data42.intent !== void 0) {
13276
+ const _errs101 = errors;
13277
+ if (typeof data42.intent !== "string") {
13261
13278
  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" }];
13262
13279
  return false;
13263
13280
  }
13264
- var valid12 = _errs99 === errors;
13281
+ var valid12 = _errs101 === errors;
13265
13282
  } else {
13266
13283
  var valid12 = true;
13267
13284
  }
13268
13285
  if (valid12) {
13269
- if (data41.area !== void 0) {
13270
- const _errs101 = errors;
13271
- if (typeof data41.area !== "string") {
13286
+ if (data42.area !== void 0) {
13287
+ const _errs103 = errors;
13288
+ if (typeof data42.area !== "string") {
13272
13289
  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" }];
13273
13290
  return false;
13274
13291
  }
13275
- var valid12 = _errs101 === errors;
13292
+ var valid12 = _errs103 === errors;
13276
13293
  } else {
13277
13294
  var valid12 = true;
13278
13295
  }
13279
13296
  if (valid12) {
13280
- if (data41.authorName !== void 0) {
13281
- const _errs103 = errors;
13282
- if (typeof data41.authorName !== "string") {
13297
+ if (data42.authorName !== void 0) {
13298
+ const _errs105 = errors;
13299
+ if (typeof data42.authorName !== "string") {
13283
13300
  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" }];
13284
13301
  return false;
13285
13302
  }
13286
- var valid12 = _errs103 === errors;
13303
+ var valid12 = _errs105 === errors;
13287
13304
  } else {
13288
13305
  var valid12 = true;
13289
13306
  }
13290
13307
  if (valid12) {
13291
- if (data41.classifiedAt !== void 0) {
13292
- let data47 = data41.classifiedAt;
13293
- const _errs105 = errors;
13294
- if (!(typeof data47 == "number" && isFinite(data47))) {
13308
+ if (data42.classifiedAt !== void 0) {
13309
+ let data48 = data42.classifiedAt;
13310
+ const _errs107 = errors;
13311
+ if (!(typeof data48 == "number" && isFinite(data48))) {
13295
13312
  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" }];
13296
13313
  return false;
13297
13314
  }
13298
- var valid12 = _errs105 === errors;
13315
+ var valid12 = _errs107 === errors;
13299
13316
  } else {
13300
13317
  var valid12 = true;
13301
13318
  }
13302
13319
  if (valid12) {
13303
- if (data41.status !== void 0) {
13304
- let data48 = data41.status;
13305
- const _errs107 = errors;
13306
- if (typeof data48 !== "string") {
13320
+ if (data42.status !== void 0) {
13321
+ let data49 = data42.status;
13322
+ const _errs109 = errors;
13323
+ if (typeof data49 !== "string") {
13307
13324
  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" }];
13308
13325
  return false;
13309
13326
  }
13310
- if (!(data48 === "active" || data48 === "superseded" || data48 === "under_review")) {
13327
+ if (!(data49 === "active" || data49 === "superseded" || data49 === "under_review")) {
13311
13328
  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" }];
13312
13329
  return false;
13313
13330
  }
13314
- var valid12 = _errs107 === errors;
13331
+ var valid12 = _errs109 === errors;
13315
13332
  } else {
13316
13333
  var valid12 = true;
13317
13334
  }
@@ -13327,7 +13344,7 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
13327
13344
  return false;
13328
13345
  }
13329
13346
  }
13330
- var valid11 = _errs92 === errors;
13347
+ var valid11 = _errs94 === errors;
13331
13348
  if (!valid11) {
13332
13349
  break;
13333
13350
  }
@@ -13337,56 +13354,56 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
13337
13354
  return false;
13338
13355
  }
13339
13356
  }
13340
- var valid1 = _errs90 === errors;
13357
+ var valid1 = _errs92 === errors;
13341
13358
  } else {
13342
13359
  var valid1 = true;
13343
13360
  }
13344
13361
  if (valid1) {
13345
13362
  if (data.scope !== void 0) {
13346
- let data49 = data.scope;
13347
- const _errs109 = errors;
13348
- if (errors === _errs109) {
13349
- if (data49 && typeof data49 == "object" && !Array.isArray(data49)) {
13363
+ let data50 = data.scope;
13364
+ const _errs111 = errors;
13365
+ if (errors === _errs111) {
13366
+ if (data50 && typeof data50 == "object" && !Array.isArray(data50)) {
13350
13367
  let missing5;
13351
- if (data49.location === void 0 && (missing5 = "location") || data49.time === void 0 && (missing5 = "time") || data49.users === void 0 && (missing5 = "users")) {
13368
+ if (data50.location === void 0 && (missing5 = "location") || data50.time === void 0 && (missing5 = "time") || data50.users === void 0 && (missing5 = "users")) {
13352
13369
  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 + "'" }];
13353
13370
  return false;
13354
13371
  } else {
13355
- if (data49.location !== void 0) {
13356
- let data50 = data49.location;
13357
- const _errs112 = errors;
13358
- if (errors === _errs112) {
13359
- if (data50 && typeof data50 == "object" && !Array.isArray(data50)) {
13372
+ if (data50.location !== void 0) {
13373
+ let data51 = data50.location;
13374
+ const _errs114 = errors;
13375
+ if (errors === _errs114) {
13376
+ if (data51 && typeof data51 == "object" && !Array.isArray(data51)) {
13360
13377
  let missing6;
13361
- 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")) {
13378
+ 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")) {
13362
13379
  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 + "'" }];
13363
13380
  return false;
13364
13381
  } else {
13365
- if (data50.repository !== void 0) {
13366
- const _errs115 = errors;
13367
- if (typeof data50.repository !== "boolean") {
13382
+ if (data51.repository !== void 0) {
13383
+ const _errs117 = errors;
13384
+ if (typeof data51.repository !== "boolean") {
13368
13385
  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" }];
13369
13386
  return false;
13370
13387
  }
13371
- var valid14 = _errs115 === errors;
13388
+ var valid14 = _errs117 === errors;
13372
13389
  } else {
13373
13390
  var valid14 = true;
13374
13391
  }
13375
13392
  if (valid14) {
13376
- if (data50.directories !== void 0) {
13377
- let data52 = data50.directories;
13378
- const _errs117 = errors;
13379
- if (errors === _errs117) {
13380
- if (Array.isArray(data52)) {
13393
+ if (data51.directories !== void 0) {
13394
+ let data53 = data51.directories;
13395
+ const _errs119 = errors;
13396
+ if (errors === _errs119) {
13397
+ if (Array.isArray(data53)) {
13381
13398
  var valid15 = true;
13382
- const len6 = data52.length;
13399
+ const len6 = data53.length;
13383
13400
  for (let i6 = 0; i6 < len6; i6++) {
13384
- const _errs119 = errors;
13385
- if (typeof data52[i6] !== "string") {
13401
+ const _errs121 = errors;
13402
+ if (typeof data53[i6] !== "string") {
13386
13403
  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" }];
13387
13404
  return false;
13388
13405
  }
13389
- var valid15 = _errs119 === errors;
13406
+ var valid15 = _errs121 === errors;
13390
13407
  if (!valid15) {
13391
13408
  break;
13392
13409
  }
@@ -13396,25 +13413,25 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
13396
13413
  return false;
13397
13414
  }
13398
13415
  }
13399
- var valid14 = _errs117 === errors;
13416
+ var valid14 = _errs119 === errors;
13400
13417
  } else {
13401
13418
  var valid14 = true;
13402
13419
  }
13403
13420
  if (valid14) {
13404
- if (data50.globs !== void 0) {
13405
- let data54 = data50.globs;
13406
- const _errs121 = errors;
13407
- if (errors === _errs121) {
13408
- if (Array.isArray(data54)) {
13421
+ if (data51.globs !== void 0) {
13422
+ let data55 = data51.globs;
13423
+ const _errs123 = errors;
13424
+ if (errors === _errs123) {
13425
+ if (Array.isArray(data55)) {
13409
13426
  var valid16 = true;
13410
- const len7 = data54.length;
13427
+ const len7 = data55.length;
13411
13428
  for (let i7 = 0; i7 < len7; i7++) {
13412
- const _errs123 = errors;
13413
- if (typeof data54[i7] !== "string") {
13429
+ const _errs125 = errors;
13430
+ if (typeof data55[i7] !== "string") {
13414
13431
  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" }];
13415
13432
  return false;
13416
13433
  }
13417
- var valid16 = _errs123 === errors;
13434
+ var valid16 = _errs125 === errors;
13418
13435
  if (!valid16) {
13419
13436
  break;
13420
13437
  }
@@ -13424,25 +13441,25 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
13424
13441
  return false;
13425
13442
  }
13426
13443
  }
13427
- var valid14 = _errs121 === errors;
13444
+ var valid14 = _errs123 === errors;
13428
13445
  } else {
13429
13446
  var valid14 = true;
13430
13447
  }
13431
13448
  if (valid14) {
13432
- if (data50.branches !== void 0) {
13433
- let data56 = data50.branches;
13434
- const _errs125 = errors;
13435
- if (errors === _errs125) {
13436
- if (Array.isArray(data56)) {
13449
+ if (data51.branches !== void 0) {
13450
+ let data57 = data51.branches;
13451
+ const _errs127 = errors;
13452
+ if (errors === _errs127) {
13453
+ if (Array.isArray(data57)) {
13437
13454
  var valid17 = true;
13438
- const len8 = data56.length;
13455
+ const len8 = data57.length;
13439
13456
  for (let i8 = 0; i8 < len8; i8++) {
13440
- const _errs127 = errors;
13441
- if (typeof data56[i8] !== "string") {
13457
+ const _errs129 = errors;
13458
+ if (typeof data57[i8] !== "string") {
13442
13459
  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" }];
13443
13460
  return false;
13444
13461
  }
13445
- var valid17 = _errs127 === errors;
13462
+ var valid17 = _errs129 === errors;
13446
13463
  if (!valid17) {
13447
13464
  break;
13448
13465
  }
@@ -13452,7 +13469,7 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
13452
13469
  return false;
13453
13470
  }
13454
13471
  }
13455
- var valid14 = _errs125 === errors;
13472
+ var valid14 = _errs127 === errors;
13456
13473
  } else {
13457
13474
  var valid14 = true;
13458
13475
  }
@@ -13465,62 +13482,62 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
13465
13482
  return false;
13466
13483
  }
13467
13484
  }
13468
- var valid13 = _errs112 === errors;
13485
+ var valid13 = _errs114 === errors;
13469
13486
  } else {
13470
13487
  var valid13 = true;
13471
13488
  }
13472
13489
  if (valid13) {
13473
- if (data49.time !== void 0) {
13474
- let data58 = data49.time;
13475
- const _errs129 = errors;
13476
- if (errors === _errs129) {
13477
- if (data58 && typeof data58 == "object" && !Array.isArray(data58)) {
13478
- if (data58.effectiveFrom !== void 0) {
13479
- let data59 = data58.effectiveFrom;
13480
- const _errs132 = errors;
13481
- if (!(typeof data59 == "number" && (!(data59 % 1) && !isNaN(data59)) && isFinite(data59))) {
13490
+ if (data50.time !== void 0) {
13491
+ let data59 = data50.time;
13492
+ const _errs131 = errors;
13493
+ if (errors === _errs131) {
13494
+ if (data59 && typeof data59 == "object" && !Array.isArray(data59)) {
13495
+ if (data59.effectiveFrom !== void 0) {
13496
+ let data60 = data59.effectiveFrom;
13497
+ const _errs134 = errors;
13498
+ if (!(typeof data60 == "number" && (!(data60 % 1) && !isNaN(data60)) && isFinite(data60))) {
13482
13499
  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" }];
13483
13500
  return false;
13484
13501
  }
13485
- if (errors === _errs132) {
13486
- if (typeof data59 == "number" && isFinite(data59)) {
13487
- if (data59 > 9007199254740991 || isNaN(data59)) {
13502
+ if (errors === _errs134) {
13503
+ if (typeof data60 == "number" && isFinite(data60)) {
13504
+ if (data60 > 9007199254740991 || isNaN(data60)) {
13488
13505
  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" }];
13489
13506
  return false;
13490
13507
  } else {
13491
- if (data59 < -9007199254740991 || isNaN(data59)) {
13508
+ if (data60 < -9007199254740991 || isNaN(data60)) {
13492
13509
  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" }];
13493
13510
  return false;
13494
13511
  }
13495
13512
  }
13496
13513
  }
13497
13514
  }
13498
- var valid18 = _errs132 === errors;
13515
+ var valid18 = _errs134 === errors;
13499
13516
  } else {
13500
13517
  var valid18 = true;
13501
13518
  }
13502
13519
  if (valid18) {
13503
- if (data58.effectiveUntil !== void 0) {
13504
- let data60 = data58.effectiveUntil;
13505
- const _errs134 = errors;
13506
- if (!(typeof data60 == "number" && (!(data60 % 1) && !isNaN(data60)) && isFinite(data60))) {
13520
+ if (data59.effectiveUntil !== void 0) {
13521
+ let data61 = data59.effectiveUntil;
13522
+ const _errs136 = errors;
13523
+ if (!(typeof data61 == "number" && (!(data61 % 1) && !isNaN(data61)) && isFinite(data61))) {
13507
13524
  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" }];
13508
13525
  return false;
13509
13526
  }
13510
- if (errors === _errs134) {
13511
- if (typeof data60 == "number" && isFinite(data60)) {
13512
- if (data60 > 9007199254740991 || isNaN(data60)) {
13527
+ if (errors === _errs136) {
13528
+ if (typeof data61 == "number" && isFinite(data61)) {
13529
+ if (data61 > 9007199254740991 || isNaN(data61)) {
13513
13530
  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" }];
13514
13531
  return false;
13515
13532
  } else {
13516
- if (data60 < -9007199254740991 || isNaN(data60)) {
13533
+ if (data61 < -9007199254740991 || isNaN(data61)) {
13517
13534
  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" }];
13518
13535
  return false;
13519
13536
  }
13520
13537
  }
13521
13538
  }
13522
13539
  }
13523
- var valid18 = _errs134 === errors;
13540
+ var valid18 = _errs136 === errors;
13524
13541
  } else {
13525
13542
  var valid18 = true;
13526
13543
  }
@@ -13530,29 +13547,29 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
13530
13547
  return false;
13531
13548
  }
13532
13549
  }
13533
- var valid13 = _errs129 === errors;
13550
+ var valid13 = _errs131 === errors;
13534
13551
  } else {
13535
13552
  var valid13 = true;
13536
13553
  }
13537
13554
  if (valid13) {
13538
- if (data49.users !== void 0) {
13539
- let data61 = data49.users;
13540
- const _errs136 = errors;
13541
- if (errors === _errs136) {
13542
- if (Array.isArray(data61)) {
13555
+ if (data50.users !== void 0) {
13556
+ let data62 = data50.users;
13557
+ const _errs138 = errors;
13558
+ if (errors === _errs138) {
13559
+ if (Array.isArray(data62)) {
13543
13560
  var valid19 = true;
13544
- const len9 = data61.length;
13561
+ const len9 = data62.length;
13545
13562
  for (let i9 = 0; i9 < len9; i9++) {
13546
- let data62 = data61[i9];
13547
- const _errs138 = errors;
13548
- const _errs139 = errors;
13563
+ let data63 = data62[i9];
13564
+ const _errs140 = errors;
13565
+ const _errs141 = errors;
13549
13566
  let valid20 = false;
13550
13567
  let passing0 = null;
13551
- const _errs140 = errors;
13552
- if (errors === _errs140) {
13553
- if (data62 && typeof data62 == "object" && !Array.isArray(data62)) {
13568
+ const _errs142 = errors;
13569
+ if (errors === _errs142) {
13570
+ if (data63 && typeof data63 == "object" && !Array.isArray(data63)) {
13554
13571
  let missing7;
13555
- if (data62.kind === void 0 && (missing7 = "kind") || data62.userId === void 0 && (missing7 = "userId") || data62.displayName === void 0 && (missing7 = "displayName")) {
13572
+ if (data63.kind === void 0 && (missing7 = "kind") || data63.userId === void 0 && (missing7 = "userId") || data63.displayName === void 0 && (missing7 = "displayName")) {
13556
13573
  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 + "'" };
13557
13574
  if (vErrors === null) {
13558
13575
  vErrors = [err4];
@@ -13561,8 +13578,8 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
13561
13578
  }
13562
13579
  errors++;
13563
13580
  } else {
13564
- const _errs142 = errors;
13565
- for (const key0 in data62) {
13581
+ const _errs144 = errors;
13582
+ for (const key0 in data63) {
13566
13583
  if (!(key0 === "kind" || key0 === "userId" || key0 === "displayName")) {
13567
13584
  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" };
13568
13585
  if (vErrors === null) {
@@ -13574,11 +13591,11 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
13574
13591
  break;
13575
13592
  }
13576
13593
  }
13577
- if (_errs142 === errors) {
13578
- if (data62.kind !== void 0) {
13579
- let data63 = data62.kind;
13580
- const _errs143 = errors;
13581
- if (typeof data63 !== "string") {
13594
+ if (_errs144 === errors) {
13595
+ if (data63.kind !== void 0) {
13596
+ let data64 = data63.kind;
13597
+ const _errs145 = errors;
13598
+ if (typeof data64 !== "string") {
13582
13599
  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" };
13583
13600
  if (vErrors === null) {
13584
13601
  vErrors = [err6];
@@ -13587,7 +13604,7 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
13587
13604
  }
13588
13605
  errors++;
13589
13606
  }
13590
- if ("user" !== data63) {
13607
+ if ("user" !== data64) {
13591
13608
  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" };
13592
13609
  if (vErrors === null) {
13593
13610
  vErrors = [err7];
@@ -13596,17 +13613,17 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
13596
13613
  }
13597
13614
  errors++;
13598
13615
  }
13599
- var valid21 = _errs143 === errors;
13616
+ var valid21 = _errs145 === errors;
13600
13617
  } else {
13601
13618
  var valid21 = true;
13602
13619
  }
13603
13620
  if (valid21) {
13604
- if (data62.userId !== void 0) {
13605
- let data64 = data62.userId;
13606
- const _errs145 = errors;
13607
- if (errors === _errs145) {
13608
- if (typeof data64 === "string") {
13609
- if (func1(data64) < 1) {
13621
+ if (data63.userId !== void 0) {
13622
+ let data65 = data63.userId;
13623
+ const _errs147 = errors;
13624
+ if (errors === _errs147) {
13625
+ if (typeof data65 === "string") {
13626
+ if (func1(data65) < 1) {
13610
13627
  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" };
13611
13628
  if (vErrors === null) {
13612
13629
  vErrors = [err8];
@@ -13625,14 +13642,14 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
13625
13642
  errors++;
13626
13643
  }
13627
13644
  }
13628
- var valid21 = _errs145 === errors;
13645
+ var valid21 = _errs147 === errors;
13629
13646
  } else {
13630
13647
  var valid21 = true;
13631
13648
  }
13632
13649
  if (valid21) {
13633
- if (data62.displayName !== void 0) {
13634
- const _errs147 = errors;
13635
- if (typeof data62.displayName !== "string") {
13650
+ if (data63.displayName !== void 0) {
13651
+ const _errs149 = errors;
13652
+ if (typeof data63.displayName !== "string") {
13636
13653
  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" };
13637
13654
  if (vErrors === null) {
13638
13655
  vErrors = [err10];
@@ -13641,7 +13658,7 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
13641
13658
  }
13642
13659
  errors++;
13643
13660
  }
13644
- var valid21 = _errs147 === errors;
13661
+ var valid21 = _errs149 === errors;
13645
13662
  } else {
13646
13663
  var valid21 = true;
13647
13664
  }
@@ -13659,17 +13676,17 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
13659
13676
  errors++;
13660
13677
  }
13661
13678
  }
13662
- var _valid1 = _errs140 === errors;
13679
+ var _valid1 = _errs142 === errors;
13663
13680
  if (_valid1) {
13664
13681
  valid20 = true;
13665
13682
  passing0 = 0;
13666
13683
  var props0 = true;
13667
13684
  }
13668
- const _errs149 = errors;
13669
- if (errors === _errs149) {
13670
- if (data62 && typeof data62 == "object" && !Array.isArray(data62)) {
13685
+ const _errs151 = errors;
13686
+ if (errors === _errs151) {
13687
+ if (data63 && typeof data63 == "object" && !Array.isArray(data63)) {
13671
13688
  let missing8;
13672
- if (data62.kind === void 0 && (missing8 = "kind") || data62.role === void 0 && (missing8 = "role")) {
13689
+ if (data63.kind === void 0 && (missing8 = "kind") || data63.role === void 0 && (missing8 = "role")) {
13673
13690
  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 + "'" };
13674
13691
  if (vErrors === null) {
13675
13692
  vErrors = [err12];
@@ -13678,8 +13695,8 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
13678
13695
  }
13679
13696
  errors++;
13680
13697
  } else {
13681
- const _errs151 = errors;
13682
- for (const key1 in data62) {
13698
+ const _errs153 = errors;
13699
+ for (const key1 in data63) {
13683
13700
  if (!(key1 === "kind" || key1 === "role")) {
13684
13701
  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" };
13685
13702
  if (vErrors === null) {
@@ -13691,11 +13708,11 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
13691
13708
  break;
13692
13709
  }
13693
13710
  }
13694
- if (_errs151 === errors) {
13695
- if (data62.kind !== void 0) {
13696
- let data66 = data62.kind;
13697
- const _errs152 = errors;
13698
- if (typeof data66 !== "string") {
13711
+ if (_errs153 === errors) {
13712
+ if (data63.kind !== void 0) {
13713
+ let data67 = data63.kind;
13714
+ const _errs154 = errors;
13715
+ if (typeof data67 !== "string") {
13699
13716
  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" };
13700
13717
  if (vErrors === null) {
13701
13718
  vErrors = [err14];
@@ -13704,7 +13721,7 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
13704
13721
  }
13705
13722
  errors++;
13706
13723
  }
13707
- if ("role" !== data66) {
13724
+ if ("role" !== data67) {
13708
13725
  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" };
13709
13726
  if (vErrors === null) {
13710
13727
  vErrors = [err15];
@@ -13713,15 +13730,15 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
13713
13730
  }
13714
13731
  errors++;
13715
13732
  }
13716
- var valid22 = _errs152 === errors;
13733
+ var valid22 = _errs154 === errors;
13717
13734
  } else {
13718
13735
  var valid22 = true;
13719
13736
  }
13720
13737
  if (valid22) {
13721
- if (data62.role !== void 0) {
13722
- let data67 = data62.role;
13723
- const _errs154 = errors;
13724
- if (typeof data67 !== "string") {
13738
+ if (data63.role !== void 0) {
13739
+ let data68 = data63.role;
13740
+ const _errs156 = errors;
13741
+ if (typeof data68 !== "string") {
13725
13742
  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" };
13726
13743
  if (vErrors === null) {
13727
13744
  vErrors = [err16];
@@ -13730,7 +13747,7 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
13730
13747
  }
13731
13748
  errors++;
13732
13749
  }
13733
- if (!(data67 === "owner" || data67 === "admin" || data67 === "member")) {
13750
+ if (!(data68 === "owner" || data68 === "admin" || data68 === "member")) {
13734
13751
  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" };
13735
13752
  if (vErrors === null) {
13736
13753
  vErrors = [err17];
@@ -13739,7 +13756,7 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
13739
13756
  }
13740
13757
  errors++;
13741
13758
  }
13742
- var valid22 = _errs154 === errors;
13759
+ var valid22 = _errs156 === errors;
13743
13760
  } else {
13744
13761
  var valid22 = true;
13745
13762
  }
@@ -13756,7 +13773,7 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
13756
13773
  errors++;
13757
13774
  }
13758
13775
  }
13759
- var _valid1 = _errs149 === errors;
13776
+ var _valid1 = _errs151 === errors;
13760
13777
  if (_valid1 && valid20) {
13761
13778
  valid20 = false;
13762
13779
  passing0 = [passing0, 1];
@@ -13768,11 +13785,11 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
13768
13785
  props0 = true;
13769
13786
  }
13770
13787
  }
13771
- const _errs156 = errors;
13772
- if (errors === _errs156) {
13773
- if (data62 && typeof data62 == "object" && !Array.isArray(data62)) {
13788
+ const _errs158 = errors;
13789
+ if (errors === _errs158) {
13790
+ if (data63 && typeof data63 == "object" && !Array.isArray(data63)) {
13774
13791
  let missing9;
13775
- if (data62.kind === void 0 && (missing9 = "kind") || data62.agent === void 0 && (missing9 = "agent")) {
13792
+ if (data63.kind === void 0 && (missing9 = "kind") || data63.agent === void 0 && (missing9 = "agent")) {
13776
13793
  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 + "'" };
13777
13794
  if (vErrors === null) {
13778
13795
  vErrors = [err19];
@@ -13781,8 +13798,8 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
13781
13798
  }
13782
13799
  errors++;
13783
13800
  } else {
13784
- const _errs158 = errors;
13785
- for (const key2 in data62) {
13801
+ const _errs160 = errors;
13802
+ for (const key2 in data63) {
13786
13803
  if (!(key2 === "kind" || key2 === "agent")) {
13787
13804
  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" };
13788
13805
  if (vErrors === null) {
@@ -13794,11 +13811,11 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
13794
13811
  break;
13795
13812
  }
13796
13813
  }
13797
- if (_errs158 === errors) {
13798
- if (data62.kind !== void 0) {
13799
- let data68 = data62.kind;
13800
- const _errs159 = errors;
13801
- if (typeof data68 !== "string") {
13814
+ if (_errs160 === errors) {
13815
+ if (data63.kind !== void 0) {
13816
+ let data69 = data63.kind;
13817
+ const _errs161 = errors;
13818
+ if (typeof data69 !== "string") {
13802
13819
  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" };
13803
13820
  if (vErrors === null) {
13804
13821
  vErrors = [err21];
@@ -13807,7 +13824,7 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
13807
13824
  }
13808
13825
  errors++;
13809
13826
  }
13810
- if ("agent" !== data68) {
13827
+ if ("agent" !== data69) {
13811
13828
  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" };
13812
13829
  if (vErrors === null) {
13813
13830
  vErrors = [err22];
@@ -13816,15 +13833,15 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
13816
13833
  }
13817
13834
  errors++;
13818
13835
  }
13819
- var valid23 = _errs159 === errors;
13836
+ var valid23 = _errs161 === errors;
13820
13837
  } else {
13821
13838
  var valid23 = true;
13822
13839
  }
13823
13840
  if (valid23) {
13824
- if (data62.agent !== void 0) {
13825
- let data69 = data62.agent;
13826
- const _errs161 = errors;
13827
- if (typeof data69 !== "string") {
13841
+ if (data63.agent !== void 0) {
13842
+ let data70 = data63.agent;
13843
+ const _errs163 = errors;
13844
+ if (typeof data70 !== "string") {
13828
13845
  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" };
13829
13846
  if (vErrors === null) {
13830
13847
  vErrors = [err23];
@@ -13833,7 +13850,7 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
13833
13850
  }
13834
13851
  errors++;
13835
13852
  }
13836
- if (!(data69 === "claude_code" || data69 === "codex" || data69 === "hermes")) {
13853
+ if (!(data70 === "claude_code" || data70 === "codex" || data70 === "hermes")) {
13837
13854
  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" };
13838
13855
  if (vErrors === null) {
13839
13856
  vErrors = [err24];
@@ -13842,7 +13859,7 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
13842
13859
  }
13843
13860
  errors++;
13844
13861
  }
13845
- var valid23 = _errs161 === errors;
13862
+ var valid23 = _errs163 === errors;
13846
13863
  } else {
13847
13864
  var valid23 = true;
13848
13865
  }
@@ -13859,7 +13876,7 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
13859
13876
  errors++;
13860
13877
  }
13861
13878
  }
13862
- var _valid1 = _errs156 === errors;
13879
+ var _valid1 = _errs158 === errors;
13863
13880
  if (_valid1 && valid20) {
13864
13881
  valid20 = false;
13865
13882
  passing0 = [passing0, 2];
@@ -13871,11 +13888,11 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
13871
13888
  props0 = true;
13872
13889
  }
13873
13890
  }
13874
- const _errs163 = errors;
13875
- if (errors === _errs163) {
13876
- if (data62 && typeof data62 == "object" && !Array.isArray(data62)) {
13891
+ const _errs165 = errors;
13892
+ if (errors === _errs165) {
13893
+ if (data63 && typeof data63 == "object" && !Array.isArray(data63)) {
13877
13894
  let missing10;
13878
- if (data62.kind === void 0 && (missing10 = "kind") || data62.credential === void 0 && (missing10 = "credential")) {
13895
+ if (data63.kind === void 0 && (missing10 = "kind") || data63.credential === void 0 && (missing10 = "credential")) {
13879
13896
  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 + "'" };
13880
13897
  if (vErrors === null) {
13881
13898
  vErrors = [err26];
@@ -13884,8 +13901,8 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
13884
13901
  }
13885
13902
  errors++;
13886
13903
  } else {
13887
- const _errs165 = errors;
13888
- for (const key3 in data62) {
13904
+ const _errs167 = errors;
13905
+ for (const key3 in data63) {
13889
13906
  if (!(key3 === "kind" || key3 === "credential")) {
13890
13907
  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" };
13891
13908
  if (vErrors === null) {
@@ -13897,11 +13914,11 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
13897
13914
  break;
13898
13915
  }
13899
13916
  }
13900
- if (_errs165 === errors) {
13901
- if (data62.kind !== void 0) {
13902
- let data70 = data62.kind;
13903
- const _errs166 = errors;
13904
- if (typeof data70 !== "string") {
13917
+ if (_errs167 === errors) {
13918
+ if (data63.kind !== void 0) {
13919
+ let data71 = data63.kind;
13920
+ const _errs168 = errors;
13921
+ if (typeof data71 !== "string") {
13905
13922
  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" };
13906
13923
  if (vErrors === null) {
13907
13924
  vErrors = [err28];
@@ -13910,7 +13927,7 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
13910
13927
  }
13911
13928
  errors++;
13912
13929
  }
13913
- if ("credential" !== data70) {
13930
+ if ("credential" !== data71) {
13914
13931
  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" };
13915
13932
  if (vErrors === null) {
13916
13933
  vErrors = [err29];
@@ -13919,15 +13936,15 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
13919
13936
  }
13920
13937
  errors++;
13921
13938
  }
13922
- var valid24 = _errs166 === errors;
13939
+ var valid24 = _errs168 === errors;
13923
13940
  } else {
13924
13941
  var valid24 = true;
13925
13942
  }
13926
13943
  if (valid24) {
13927
- if (data62.credential !== void 0) {
13928
- let data71 = data62.credential;
13929
- const _errs168 = errors;
13930
- if (typeof data71 !== "string") {
13944
+ if (data63.credential !== void 0) {
13945
+ let data72 = data63.credential;
13946
+ const _errs170 = errors;
13947
+ if (typeof data72 !== "string") {
13931
13948
  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" };
13932
13949
  if (vErrors === null) {
13933
13950
  vErrors = [err30];
@@ -13936,7 +13953,7 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
13936
13953
  }
13937
13954
  errors++;
13938
13955
  }
13939
- if (!(data71 === "workos_jwt" || data71 === "workos_api_key" || data71 === "service_token")) {
13956
+ if (!(data72 === "workos_jwt" || data72 === "workos_api_key" || data72 === "service_token")) {
13940
13957
  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" };
13941
13958
  if (vErrors === null) {
13942
13959
  vErrors = [err31];
@@ -13945,7 +13962,7 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
13945
13962
  }
13946
13963
  errors++;
13947
13964
  }
13948
- var valid24 = _errs168 === errors;
13965
+ var valid24 = _errs170 === errors;
13949
13966
  } else {
13950
13967
  var valid24 = true;
13951
13968
  }
@@ -13962,7 +13979,7 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
13962
13979
  errors++;
13963
13980
  }
13964
13981
  }
13965
- var _valid1 = _errs163 === errors;
13982
+ var _valid1 = _errs165 === errors;
13966
13983
  if (_valid1 && valid20) {
13967
13984
  valid20 = false;
13968
13985
  passing0 = [passing0, 3];
@@ -13988,16 +14005,16 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
13988
14005
  validate29.errors = vErrors;
13989
14006
  return false;
13990
14007
  } else {
13991
- errors = _errs139;
14008
+ errors = _errs141;
13992
14009
  if (vErrors !== null) {
13993
- if (_errs139) {
13994
- vErrors.length = _errs139;
14010
+ if (_errs141) {
14011
+ vErrors.length = _errs141;
13995
14012
  } else {
13996
14013
  vErrors = null;
13997
14014
  }
13998
14015
  }
13999
14016
  }
14000
- var valid19 = _errs138 === errors;
14017
+ var valid19 = _errs140 === errors;
14001
14018
  if (!valid19) {
14002
14019
  break;
14003
14020
  }
@@ -14007,7 +14024,7 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
14007
14024
  return false;
14008
14025
  }
14009
14026
  }
14010
- var valid13 = _errs136 === errors;
14027
+ var valid13 = _errs138 === errors;
14011
14028
  } else {
14012
14029
  var valid13 = true;
14013
14030
  }
@@ -14019,18 +14036,18 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
14019
14036
  return false;
14020
14037
  }
14021
14038
  }
14022
- var valid1 = _errs109 === errors;
14039
+ var valid1 = _errs111 === errors;
14023
14040
  } else {
14024
14041
  var valid1 = true;
14025
14042
  }
14026
14043
  if (valid1) {
14027
14044
  if (data.truncated !== void 0) {
14028
- const _errs170 = errors;
14045
+ const _errs172 = errors;
14029
14046
  if (typeof data.truncated !== "boolean") {
14030
14047
  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" }];
14031
14048
  return false;
14032
14049
  }
14033
- var valid1 = _errs170 === errors;
14050
+ var valid1 = _errs172 === errors;
14034
14051
  } else {
14035
14052
  var valid1 = true;
14036
14053
  }