@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.
@@ -4190,7 +4190,7 @@ function validate28(data, { instancePath = "", parentData, parentDataProperty, r
4190
4190
  return errors === 0;
4191
4191
  }
4192
4192
  validate28.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
4193
- 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": {} };
4193
+ 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": {} };
4194
4194
  function validate29(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
4195
4195
  ;
4196
4196
  let vErrors = null;
@@ -4216,7 +4216,7 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
4216
4216
  if (errors === _errs3) {
4217
4217
  if (data0 && typeof data0 == "object" && !Array.isArray(data0)) {
4218
4218
  let missing1;
4219
- 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")) {
4219
+ 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")) {
4220
4220
  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 + "'" }];
4221
4221
  return false;
4222
4222
  } else {
@@ -4366,15 +4366,15 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
4366
4366
  var valid2 = true;
4367
4367
  }
4368
4368
  if (valid2) {
4369
- if (data0.status !== void 0) {
4370
- let data12 = data0.status;
4369
+ if (data0.stage !== void 0) {
4370
+ let data12 = data0.stage;
4371
4371
  const _errs28 = errors;
4372
4372
  if (typeof data12 !== "string") {
4373
- 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" }];
4373
+ 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" }];
4374
4374
  return false;
4375
4375
  }
4376
- if (!(data12 === "active" || data12 === "superseded" || data12 === "under_review")) {
4377
- 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" }];
4376
+ if (!(data12 === "draft" || data12 === "provisional" || data12 === "adopted" || data12 === "superseded" || data12 === "abandoned")) {
4377
+ 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" }];
4378
4378
  return false;
4379
4379
  }
4380
4380
  var valid2 = _errs28 === errors;
@@ -4382,97 +4382,97 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
4382
4382
  var valid2 = true;
4383
4383
  }
4384
4384
  if (valid2) {
4385
- if (data0.supersededBy !== void 0) {
4386
- let data13 = data0.supersededBy;
4385
+ if (data0.status !== void 0) {
4386
+ let data13 = data0.status;
4387
4387
  const _errs30 = errors;
4388
- const _errs31 = errors;
4389
- let valid5 = false;
4390
- const _errs32 = errors;
4391
- if (errors === _errs32) {
4392
- if (typeof data13 === "string") {
4393
- if (func1(data13) < 1) {
4394
- 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" };
4388
+ if (typeof data13 !== "string") {
4389
+ 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" }];
4390
+ return false;
4391
+ }
4392
+ if (!(data13 === "active" || data13 === "superseded" || data13 === "under_review")) {
4393
+ 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" }];
4394
+ return false;
4395
+ }
4396
+ var valid2 = _errs30 === errors;
4397
+ } else {
4398
+ var valid2 = true;
4399
+ }
4400
+ if (valid2) {
4401
+ if (data0.supersededBy !== void 0) {
4402
+ let data14 = data0.supersededBy;
4403
+ const _errs32 = errors;
4404
+ const _errs33 = errors;
4405
+ let valid5 = false;
4406
+ const _errs34 = errors;
4407
+ if (errors === _errs34) {
4408
+ if (typeof data14 === "string") {
4409
+ if (func1(data14) < 1) {
4410
+ 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" };
4411
+ if (vErrors === null) {
4412
+ vErrors = [err0];
4413
+ } else {
4414
+ vErrors.push(err0);
4415
+ }
4416
+ errors++;
4417
+ }
4418
+ } else {
4419
+ 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" };
4395
4420
  if (vErrors === null) {
4396
- vErrors = [err0];
4421
+ vErrors = [err1];
4397
4422
  } else {
4398
- vErrors.push(err0);
4423
+ vErrors.push(err1);
4399
4424
  }
4400
4425
  errors++;
4401
4426
  }
4402
- } else {
4403
- 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" };
4427
+ }
4428
+ var _valid0 = _errs34 === errors;
4429
+ valid5 = valid5 || _valid0;
4430
+ const _errs36 = errors;
4431
+ if (data14 !== null) {
4432
+ 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" };
4404
4433
  if (vErrors === null) {
4405
- vErrors = [err1];
4434
+ vErrors = [err2];
4406
4435
  } else {
4407
- vErrors.push(err1);
4436
+ vErrors.push(err2);
4408
4437
  }
4409
4438
  errors++;
4410
4439
  }
4411
- }
4412
- var _valid0 = _errs32 === errors;
4413
- valid5 = valid5 || _valid0;
4414
- const _errs34 = errors;
4415
- if (data13 !== null) {
4416
- 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" };
4417
- if (vErrors === null) {
4418
- vErrors = [err2];
4419
- } else {
4420
- vErrors.push(err2);
4421
- }
4422
- errors++;
4423
- }
4424
- var _valid0 = _errs34 === errors;
4425
- valid5 = valid5 || _valid0;
4426
- if (!valid5) {
4427
- 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" };
4428
- if (vErrors === null) {
4429
- vErrors = [err3];
4430
- } else {
4431
- vErrors.push(err3);
4432
- }
4433
- errors++;
4434
- validate29.errors = vErrors;
4435
- return false;
4436
- } else {
4437
- errors = _errs31;
4438
- if (vErrors !== null) {
4439
- if (_errs31) {
4440
- vErrors.length = _errs31;
4440
+ var _valid0 = _errs36 === errors;
4441
+ valid5 = valid5 || _valid0;
4442
+ if (!valid5) {
4443
+ 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" };
4444
+ if (vErrors === null) {
4445
+ vErrors = [err3];
4441
4446
  } else {
4442
- vErrors = null;
4447
+ vErrors.push(err3);
4443
4448
  }
4444
- }
4445
- }
4446
- var valid2 = _errs30 === errors;
4447
- } else {
4448
- var valid2 = true;
4449
- }
4450
- if (valid2) {
4451
- if (data0.confidence !== void 0) {
4452
- let data14 = data0.confidence;
4453
- const _errs36 = errors;
4454
- if (typeof data14 !== "string") {
4455
- 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" }];
4456
- return false;
4457
- }
4458
- if (!(data14 === "high" || data14 === "medium" || data14 === "low")) {
4459
- 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" }];
4449
+ errors++;
4450
+ validate29.errors = vErrors;
4460
4451
  return false;
4452
+ } else {
4453
+ errors = _errs33;
4454
+ if (vErrors !== null) {
4455
+ if (_errs33) {
4456
+ vErrors.length = _errs33;
4457
+ } else {
4458
+ vErrors = null;
4459
+ }
4460
+ }
4461
4461
  }
4462
- var valid2 = _errs36 === errors;
4462
+ var valid2 = _errs32 === errors;
4463
4463
  } else {
4464
4464
  var valid2 = true;
4465
4465
  }
4466
4466
  if (valid2) {
4467
- if (data0.reversibility !== void 0) {
4468
- let data15 = data0.reversibility;
4467
+ if (data0.confidence !== void 0) {
4468
+ let data15 = data0.confidence;
4469
4469
  const _errs38 = errors;
4470
4470
  if (typeof data15 !== "string") {
4471
- 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" }];
4471
+ 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" }];
4472
4472
  return false;
4473
4473
  }
4474
- if (!(data15 === "high" || data15 === "low")) {
4475
- 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" }];
4474
+ if (!(data15 === "high" || data15 === "medium" || data15 === "low")) {
4475
+ 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" }];
4476
4476
  return false;
4477
4477
  }
4478
4478
  var valid2 = _errs38 === errors;
@@ -4480,10 +4480,15 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
4480
4480
  var valid2 = true;
4481
4481
  }
4482
4482
  if (valid2) {
4483
- if (data0.confirmed !== void 0) {
4483
+ if (data0.reversibility !== void 0) {
4484
+ let data16 = data0.reversibility;
4484
4485
  const _errs40 = errors;
4485
- if (typeof data0.confirmed !== "boolean") {
4486
- 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" }];
4486
+ if (typeof data16 !== "string") {
4487
+ 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" }];
4488
+ return false;
4489
+ }
4490
+ if (!(data16 === "high" || data16 === "low")) {
4491
+ 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" }];
4487
4492
  return false;
4488
4493
  }
4489
4494
  var valid2 = _errs40 === errors;
@@ -4491,11 +4496,10 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
4491
4496
  var valid2 = true;
4492
4497
  }
4493
4498
  if (valid2) {
4494
- if (data0.respondedAt !== void 0) {
4495
- let data17 = data0.respondedAt;
4499
+ if (data0.confirmed !== void 0) {
4496
4500
  const _errs42 = errors;
4497
- if (!(typeof data17 == "number" && isFinite(data17))) {
4498
- 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" }];
4501
+ if (typeof data0.confirmed !== "boolean") {
4502
+ 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" }];
4499
4503
  return false;
4500
4504
  }
4501
4505
  var valid2 = _errs42 === errors;
@@ -4503,11 +4507,11 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
4503
4507
  var valid2 = true;
4504
4508
  }
4505
4509
  if (valid2) {
4506
- if (data0.fanOut !== void 0) {
4507
- let data18 = data0.fanOut;
4510
+ if (data0.respondedAt !== void 0) {
4511
+ let data18 = data0.respondedAt;
4508
4512
  const _errs44 = errors;
4509
4513
  if (!(typeof data18 == "number" && isFinite(data18))) {
4510
- 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" }];
4514
+ 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" }];
4511
4515
  return false;
4512
4516
  }
4513
4517
  var valid2 = _errs44 === errors;
@@ -4515,11 +4519,11 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
4515
4519
  var valid2 = true;
4516
4520
  }
4517
4521
  if (valid2) {
4518
- if (data0.classifiedAt !== void 0) {
4519
- let data19 = data0.classifiedAt;
4522
+ if (data0.fanOut !== void 0) {
4523
+ let data19 = data0.fanOut;
4520
4524
  const _errs46 = errors;
4521
4525
  if (!(typeof data19 == "number" && isFinite(data19))) {
4522
- 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" }];
4526
+ 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" }];
4523
4527
  return false;
4524
4528
  }
4525
4529
  var valid2 = _errs46 === errors;
@@ -4527,16 +4531,29 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
4527
4531
  var valid2 = true;
4528
4532
  }
4529
4533
  if (valid2) {
4530
- if (data0.authorName !== void 0) {
4534
+ if (data0.classifiedAt !== void 0) {
4535
+ let data20 = data0.classifiedAt;
4531
4536
  const _errs48 = errors;
4532
- if (typeof data0.authorName !== "string") {
4533
- 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" }];
4537
+ if (!(typeof data20 == "number" && isFinite(data20))) {
4538
+ 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" }];
4534
4539
  return false;
4535
4540
  }
4536
4541
  var valid2 = _errs48 === errors;
4537
4542
  } else {
4538
4543
  var valid2 = true;
4539
4544
  }
4545
+ if (valid2) {
4546
+ if (data0.authorName !== void 0) {
4547
+ const _errs50 = errors;
4548
+ if (typeof data0.authorName !== "string") {
4549
+ 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" }];
4550
+ return false;
4551
+ }
4552
+ var valid2 = _errs50 === errors;
4553
+ } else {
4554
+ var valid2 = true;
4555
+ }
4556
+ }
4540
4557
  }
4541
4558
  }
4542
4559
  }
@@ -4566,19 +4583,19 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
4566
4583
  }
4567
4584
  if (valid1) {
4568
4585
  if (data.files !== void 0) {
4569
- let data21 = data.files;
4570
- const _errs50 = errors;
4571
- if (errors === _errs50) {
4572
- if (Array.isArray(data21)) {
4586
+ let data22 = data.files;
4587
+ const _errs52 = errors;
4588
+ if (errors === _errs52) {
4589
+ if (Array.isArray(data22)) {
4573
4590
  var valid6 = true;
4574
- const len2 = data21.length;
4591
+ const len2 = data22.length;
4575
4592
  for (let i2 = 0; i2 < len2; i2++) {
4576
- const _errs52 = errors;
4577
- if (typeof data21[i2] !== "string") {
4593
+ const _errs54 = errors;
4594
+ if (typeof data22[i2] !== "string") {
4578
4595
  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" }];
4579
4596
  return false;
4580
4597
  }
4581
- var valid6 = _errs52 === errors;
4598
+ var valid6 = _errs54 === errors;
4582
4599
  if (!valid6) {
4583
4600
  break;
4584
4601
  }
@@ -4588,97 +4605,97 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
4588
4605
  return false;
4589
4606
  }
4590
4607
  }
4591
- var valid1 = _errs50 === errors;
4608
+ var valid1 = _errs52 === errors;
4592
4609
  } else {
4593
4610
  var valid1 = true;
4594
4611
  }
4595
4612
  if (valid1) {
4596
4613
  if (data.flags !== void 0) {
4597
- let data23 = data.flags;
4598
- const _errs54 = errors;
4599
- if (errors === _errs54) {
4600
- if (Array.isArray(data23)) {
4614
+ let data24 = data.flags;
4615
+ const _errs56 = errors;
4616
+ if (errors === _errs56) {
4617
+ if (Array.isArray(data24)) {
4601
4618
  var valid7 = true;
4602
- const len3 = data23.length;
4619
+ const len3 = data24.length;
4603
4620
  for (let i3 = 0; i3 < len3; i3++) {
4604
- let data24 = data23[i3];
4605
- const _errs56 = errors;
4606
- if (errors === _errs56) {
4607
- if (data24 && typeof data24 == "object" && !Array.isArray(data24)) {
4621
+ let data25 = data24[i3];
4622
+ const _errs58 = errors;
4623
+ if (errors === _errs58) {
4624
+ if (data25 && typeof data25 == "object" && !Array.isArray(data25)) {
4608
4625
  let missing2;
4609
- if (data24.type === void 0 && (missing2 = "type") || data24.flaggedAt === void 0 && (missing2 = "flaggedAt")) {
4626
+ if (data25.type === void 0 && (missing2 = "type") || data25.flaggedAt === void 0 && (missing2 = "flaggedAt")) {
4610
4627
  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 + "'" }];
4611
4628
  return false;
4612
4629
  } else {
4613
- if (data24.type !== void 0) {
4614
- let data25 = data24.type;
4615
- const _errs59 = errors;
4616
- if (typeof data25 !== "string") {
4630
+ if (data25.type !== void 0) {
4631
+ let data26 = data25.type;
4632
+ const _errs61 = errors;
4633
+ if (typeof data26 !== "string") {
4617
4634
  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" }];
4618
4635
  return false;
4619
4636
  }
4620
- if (!(data25 === "file_edit" || data25 === "supersession" || data25 === "invalidation" || data25 === "confirmation_request")) {
4637
+ if (!(data26 === "file_edit" || data26 === "supersession" || data26 === "invalidation" || data26 === "confirmation_request")) {
4621
4638
  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" }];
4622
4639
  return false;
4623
4640
  }
4624
- var valid8 = _errs59 === errors;
4641
+ var valid8 = _errs61 === errors;
4625
4642
  } else {
4626
4643
  var valid8 = true;
4627
4644
  }
4628
4645
  if (valid8) {
4629
- if (data24.file !== void 0) {
4630
- const _errs61 = errors;
4631
- if (typeof data24.file !== "string") {
4646
+ if (data25.file !== void 0) {
4647
+ const _errs63 = errors;
4648
+ if (typeof data25.file !== "string") {
4632
4649
  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" }];
4633
4650
  return false;
4634
4651
  }
4635
- var valid8 = _errs61 === errors;
4652
+ var valid8 = _errs63 === errors;
4636
4653
  } else {
4637
4654
  var valid8 = true;
4638
4655
  }
4639
4656
  if (valid8) {
4640
- if (data24.flaggedAt !== void 0) {
4641
- let data27 = data24.flaggedAt;
4642
- const _errs63 = errors;
4643
- if (!(typeof data27 == "number" && isFinite(data27))) {
4657
+ if (data25.flaggedAt !== void 0) {
4658
+ let data28 = data25.flaggedAt;
4659
+ const _errs65 = errors;
4660
+ if (!(typeof data28 == "number" && isFinite(data28))) {
4644
4661
  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" }];
4645
4662
  return false;
4646
4663
  }
4647
- var valid8 = _errs63 === errors;
4664
+ var valid8 = _errs65 === errors;
4648
4665
  } else {
4649
4666
  var valid8 = true;
4650
4667
  }
4651
4668
  if (valid8) {
4652
- if (data24.acknowledgedAt !== void 0) {
4653
- let data28 = data24.acknowledgedAt;
4654
- const _errs65 = errors;
4655
- if (!(typeof data28 == "number" && isFinite(data28))) {
4669
+ if (data25.acknowledgedAt !== void 0) {
4670
+ let data29 = data25.acknowledgedAt;
4671
+ const _errs67 = errors;
4672
+ if (!(typeof data29 == "number" && isFinite(data29))) {
4656
4673
  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" }];
4657
4674
  return false;
4658
4675
  }
4659
- var valid8 = _errs65 === errors;
4676
+ var valid8 = _errs67 === errors;
4660
4677
  } else {
4661
4678
  var valid8 = true;
4662
4679
  }
4663
4680
  if (valid8) {
4664
- if (data24.gateVerdict !== void 0) {
4665
- const _errs67 = errors;
4666
- if (typeof data24.gateVerdict !== "string") {
4681
+ if (data25.gateVerdict !== void 0) {
4682
+ const _errs69 = errors;
4683
+ if (typeof data25.gateVerdict !== "string") {
4667
4684
  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" }];
4668
4685
  return false;
4669
4686
  }
4670
- var valid8 = _errs67 === errors;
4687
+ var valid8 = _errs69 === errors;
4671
4688
  } else {
4672
4689
  var valid8 = true;
4673
4690
  }
4674
4691
  if (valid8) {
4675
- if (data24.reason !== void 0) {
4676
- const _errs69 = errors;
4677
- if (typeof data24.reason !== "string") {
4692
+ if (data25.reason !== void 0) {
4693
+ const _errs71 = errors;
4694
+ if (typeof data25.reason !== "string") {
4678
4695
  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" }];
4679
4696
  return false;
4680
4697
  }
4681
- var valid8 = _errs69 === errors;
4698
+ var valid8 = _errs71 === errors;
4682
4699
  } else {
4683
4700
  var valid8 = true;
4684
4701
  }
@@ -4693,7 +4710,7 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
4693
4710
  return false;
4694
4711
  }
4695
4712
  }
4696
- var valid7 = _errs56 === errors;
4713
+ var valid7 = _errs58 === errors;
4697
4714
  if (!valid7) {
4698
4715
  break;
4699
4716
  }
@@ -4703,34 +4720,34 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
4703
4720
  return false;
4704
4721
  }
4705
4722
  }
4706
- var valid1 = _errs54 === errors;
4723
+ var valid1 = _errs56 === errors;
4707
4724
  } else {
4708
4725
  var valid1 = true;
4709
4726
  }
4710
4727
  if (valid1) {
4711
4728
  if (data.dependsOn !== void 0) {
4712
- let data31 = data.dependsOn;
4713
- const _errs71 = errors;
4714
- if (errors === _errs71) {
4715
- if (Array.isArray(data31)) {
4729
+ let data32 = data.dependsOn;
4730
+ const _errs73 = errors;
4731
+ if (errors === _errs73) {
4732
+ if (Array.isArray(data32)) {
4716
4733
  var valid9 = true;
4717
- const len4 = data31.length;
4734
+ const len4 = data32.length;
4718
4735
  for (let i4 = 0; i4 < len4; i4++) {
4719
- let data32 = data31[i4];
4720
- const _errs73 = errors;
4721
- if (errors === _errs73) {
4722
- if (data32 && typeof data32 == "object" && !Array.isArray(data32)) {
4736
+ let data33 = data32[i4];
4737
+ const _errs75 = errors;
4738
+ if (errors === _errs75) {
4739
+ if (data33 && typeof data33 == "object" && !Array.isArray(data33)) {
4723
4740
  let missing3;
4724
- 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")) {
4741
+ 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")) {
4725
4742
  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 + "'" }];
4726
4743
  return false;
4727
4744
  } else {
4728
- if (data32.id !== void 0) {
4729
- let data33 = data32.id;
4730
- const _errs76 = errors;
4731
- if (errors === _errs76) {
4732
- if (typeof data33 === "string") {
4733
- if (func1(data33) < 1) {
4745
+ if (data33.id !== void 0) {
4746
+ let data34 = data33.id;
4747
+ const _errs78 = errors;
4748
+ if (errors === _errs78) {
4749
+ if (typeof data34 === "string") {
4750
+ if (func1(data34) < 1) {
4734
4751
  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" }];
4735
4752
  return false;
4736
4753
  }
@@ -4739,79 +4756,79 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
4739
4756
  return false;
4740
4757
  }
4741
4758
  }
4742
- var valid10 = _errs76 === errors;
4759
+ var valid10 = _errs78 === errors;
4743
4760
  } else {
4744
4761
  var valid10 = true;
4745
4762
  }
4746
4763
  if (valid10) {
4747
- if (data32.shortId !== void 0) {
4748
- const _errs78 = errors;
4749
- if (typeof data32.shortId !== "string") {
4764
+ if (data33.shortId !== void 0) {
4765
+ const _errs80 = errors;
4766
+ if (typeof data33.shortId !== "string") {
4750
4767
  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" }];
4751
4768
  return false;
4752
4769
  }
4753
- var valid10 = _errs78 === errors;
4770
+ var valid10 = _errs80 === errors;
4754
4771
  } else {
4755
4772
  var valid10 = true;
4756
4773
  }
4757
4774
  if (valid10) {
4758
- if (data32.intent !== void 0) {
4759
- const _errs80 = errors;
4760
- if (typeof data32.intent !== "string") {
4775
+ if (data33.intent !== void 0) {
4776
+ const _errs82 = errors;
4777
+ if (typeof data33.intent !== "string") {
4761
4778
  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" }];
4762
4779
  return false;
4763
4780
  }
4764
- var valid10 = _errs80 === errors;
4781
+ var valid10 = _errs82 === errors;
4765
4782
  } else {
4766
4783
  var valid10 = true;
4767
4784
  }
4768
4785
  if (valid10) {
4769
- if (data32.area !== void 0) {
4770
- const _errs82 = errors;
4771
- if (typeof data32.area !== "string") {
4786
+ if (data33.area !== void 0) {
4787
+ const _errs84 = errors;
4788
+ if (typeof data33.area !== "string") {
4772
4789
  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" }];
4773
4790
  return false;
4774
4791
  }
4775
- var valid10 = _errs82 === errors;
4792
+ var valid10 = _errs84 === errors;
4776
4793
  } else {
4777
4794
  var valid10 = true;
4778
4795
  }
4779
4796
  if (valid10) {
4780
- if (data32.authorName !== void 0) {
4781
- const _errs84 = errors;
4782
- if (typeof data32.authorName !== "string") {
4797
+ if (data33.authorName !== void 0) {
4798
+ const _errs86 = errors;
4799
+ if (typeof data33.authorName !== "string") {
4783
4800
  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" }];
4784
4801
  return false;
4785
4802
  }
4786
- var valid10 = _errs84 === errors;
4803
+ var valid10 = _errs86 === errors;
4787
4804
  } else {
4788
4805
  var valid10 = true;
4789
4806
  }
4790
4807
  if (valid10) {
4791
- if (data32.classifiedAt !== void 0) {
4792
- let data38 = data32.classifiedAt;
4793
- const _errs86 = errors;
4794
- if (!(typeof data38 == "number" && isFinite(data38))) {
4808
+ if (data33.classifiedAt !== void 0) {
4809
+ let data39 = data33.classifiedAt;
4810
+ const _errs88 = errors;
4811
+ if (!(typeof data39 == "number" && isFinite(data39))) {
4795
4812
  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" }];
4796
4813
  return false;
4797
4814
  }
4798
- var valid10 = _errs86 === errors;
4815
+ var valid10 = _errs88 === errors;
4799
4816
  } else {
4800
4817
  var valid10 = true;
4801
4818
  }
4802
4819
  if (valid10) {
4803
- if (data32.status !== void 0) {
4804
- let data39 = data32.status;
4805
- const _errs88 = errors;
4806
- if (typeof data39 !== "string") {
4820
+ if (data33.status !== void 0) {
4821
+ let data40 = data33.status;
4822
+ const _errs90 = errors;
4823
+ if (typeof data40 !== "string") {
4807
4824
  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" }];
4808
4825
  return false;
4809
4826
  }
4810
- if (!(data39 === "active" || data39 === "superseded" || data39 === "under_review")) {
4827
+ if (!(data40 === "active" || data40 === "superseded" || data40 === "under_review")) {
4811
4828
  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" }];
4812
4829
  return false;
4813
4830
  }
4814
- var valid10 = _errs88 === errors;
4831
+ var valid10 = _errs90 === errors;
4815
4832
  } else {
4816
4833
  var valid10 = true;
4817
4834
  }
@@ -4827,7 +4844,7 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
4827
4844
  return false;
4828
4845
  }
4829
4846
  }
4830
- var valid9 = _errs73 === errors;
4847
+ var valid9 = _errs75 === errors;
4831
4848
  if (!valid9) {
4832
4849
  break;
4833
4850
  }
@@ -4837,34 +4854,34 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
4837
4854
  return false;
4838
4855
  }
4839
4856
  }
4840
- var valid1 = _errs71 === errors;
4857
+ var valid1 = _errs73 === errors;
4841
4858
  } else {
4842
4859
  var valid1 = true;
4843
4860
  }
4844
4861
  if (valid1) {
4845
4862
  if (data.dependents !== void 0) {
4846
- let data40 = data.dependents;
4847
- const _errs90 = errors;
4848
- if (errors === _errs90) {
4849
- if (Array.isArray(data40)) {
4863
+ let data41 = data.dependents;
4864
+ const _errs92 = errors;
4865
+ if (errors === _errs92) {
4866
+ if (Array.isArray(data41)) {
4850
4867
  var valid11 = true;
4851
- const len5 = data40.length;
4868
+ const len5 = data41.length;
4852
4869
  for (let i5 = 0; i5 < len5; i5++) {
4853
- let data41 = data40[i5];
4854
- const _errs92 = errors;
4855
- if (errors === _errs92) {
4856
- if (data41 && typeof data41 == "object" && !Array.isArray(data41)) {
4870
+ let data42 = data41[i5];
4871
+ const _errs94 = errors;
4872
+ if (errors === _errs94) {
4873
+ if (data42 && typeof data42 == "object" && !Array.isArray(data42)) {
4857
4874
  let missing4;
4858
- 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")) {
4875
+ 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")) {
4859
4876
  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 + "'" }];
4860
4877
  return false;
4861
4878
  } else {
4862
- if (data41.id !== void 0) {
4863
- let data42 = data41.id;
4864
- const _errs95 = errors;
4865
- if (errors === _errs95) {
4866
- if (typeof data42 === "string") {
4867
- if (func1(data42) < 1) {
4879
+ if (data42.id !== void 0) {
4880
+ let data43 = data42.id;
4881
+ const _errs97 = errors;
4882
+ if (errors === _errs97) {
4883
+ if (typeof data43 === "string") {
4884
+ if (func1(data43) < 1) {
4868
4885
  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" }];
4869
4886
  return false;
4870
4887
  }
@@ -4873,79 +4890,79 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
4873
4890
  return false;
4874
4891
  }
4875
4892
  }
4876
- var valid12 = _errs95 === errors;
4893
+ var valid12 = _errs97 === errors;
4877
4894
  } else {
4878
4895
  var valid12 = true;
4879
4896
  }
4880
4897
  if (valid12) {
4881
- if (data41.shortId !== void 0) {
4882
- const _errs97 = errors;
4883
- if (typeof data41.shortId !== "string") {
4898
+ if (data42.shortId !== void 0) {
4899
+ const _errs99 = errors;
4900
+ if (typeof data42.shortId !== "string") {
4884
4901
  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" }];
4885
4902
  return false;
4886
4903
  }
4887
- var valid12 = _errs97 === errors;
4904
+ var valid12 = _errs99 === errors;
4888
4905
  } else {
4889
4906
  var valid12 = true;
4890
4907
  }
4891
4908
  if (valid12) {
4892
- if (data41.intent !== void 0) {
4893
- const _errs99 = errors;
4894
- if (typeof data41.intent !== "string") {
4909
+ if (data42.intent !== void 0) {
4910
+ const _errs101 = errors;
4911
+ if (typeof data42.intent !== "string") {
4895
4912
  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" }];
4896
4913
  return false;
4897
4914
  }
4898
- var valid12 = _errs99 === errors;
4915
+ var valid12 = _errs101 === errors;
4899
4916
  } else {
4900
4917
  var valid12 = true;
4901
4918
  }
4902
4919
  if (valid12) {
4903
- if (data41.area !== void 0) {
4904
- const _errs101 = errors;
4905
- if (typeof data41.area !== "string") {
4920
+ if (data42.area !== void 0) {
4921
+ const _errs103 = errors;
4922
+ if (typeof data42.area !== "string") {
4906
4923
  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" }];
4907
4924
  return false;
4908
4925
  }
4909
- var valid12 = _errs101 === errors;
4926
+ var valid12 = _errs103 === errors;
4910
4927
  } else {
4911
4928
  var valid12 = true;
4912
4929
  }
4913
4930
  if (valid12) {
4914
- if (data41.authorName !== void 0) {
4915
- const _errs103 = errors;
4916
- if (typeof data41.authorName !== "string") {
4931
+ if (data42.authorName !== void 0) {
4932
+ const _errs105 = errors;
4933
+ if (typeof data42.authorName !== "string") {
4917
4934
  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" }];
4918
4935
  return false;
4919
4936
  }
4920
- var valid12 = _errs103 === errors;
4937
+ var valid12 = _errs105 === errors;
4921
4938
  } else {
4922
4939
  var valid12 = true;
4923
4940
  }
4924
4941
  if (valid12) {
4925
- if (data41.classifiedAt !== void 0) {
4926
- let data47 = data41.classifiedAt;
4927
- const _errs105 = errors;
4928
- if (!(typeof data47 == "number" && isFinite(data47))) {
4942
+ if (data42.classifiedAt !== void 0) {
4943
+ let data48 = data42.classifiedAt;
4944
+ const _errs107 = errors;
4945
+ if (!(typeof data48 == "number" && isFinite(data48))) {
4929
4946
  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" }];
4930
4947
  return false;
4931
4948
  }
4932
- var valid12 = _errs105 === errors;
4949
+ var valid12 = _errs107 === errors;
4933
4950
  } else {
4934
4951
  var valid12 = true;
4935
4952
  }
4936
4953
  if (valid12) {
4937
- if (data41.status !== void 0) {
4938
- let data48 = data41.status;
4939
- const _errs107 = errors;
4940
- if (typeof data48 !== "string") {
4954
+ if (data42.status !== void 0) {
4955
+ let data49 = data42.status;
4956
+ const _errs109 = errors;
4957
+ if (typeof data49 !== "string") {
4941
4958
  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" }];
4942
4959
  return false;
4943
4960
  }
4944
- if (!(data48 === "active" || data48 === "superseded" || data48 === "under_review")) {
4961
+ if (!(data49 === "active" || data49 === "superseded" || data49 === "under_review")) {
4945
4962
  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" }];
4946
4963
  return false;
4947
4964
  }
4948
- var valid12 = _errs107 === errors;
4965
+ var valid12 = _errs109 === errors;
4949
4966
  } else {
4950
4967
  var valid12 = true;
4951
4968
  }
@@ -4961,7 +4978,7 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
4961
4978
  return false;
4962
4979
  }
4963
4980
  }
4964
- var valid11 = _errs92 === errors;
4981
+ var valid11 = _errs94 === errors;
4965
4982
  if (!valid11) {
4966
4983
  break;
4967
4984
  }
@@ -4971,56 +4988,56 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
4971
4988
  return false;
4972
4989
  }
4973
4990
  }
4974
- var valid1 = _errs90 === errors;
4991
+ var valid1 = _errs92 === errors;
4975
4992
  } else {
4976
4993
  var valid1 = true;
4977
4994
  }
4978
4995
  if (valid1) {
4979
4996
  if (data.scope !== void 0) {
4980
- let data49 = data.scope;
4981
- const _errs109 = errors;
4982
- if (errors === _errs109) {
4983
- if (data49 && typeof data49 == "object" && !Array.isArray(data49)) {
4997
+ let data50 = data.scope;
4998
+ const _errs111 = errors;
4999
+ if (errors === _errs111) {
5000
+ if (data50 && typeof data50 == "object" && !Array.isArray(data50)) {
4984
5001
  let missing5;
4985
- if (data49.location === void 0 && (missing5 = "location") || data49.time === void 0 && (missing5 = "time") || data49.users === void 0 && (missing5 = "users")) {
5002
+ if (data50.location === void 0 && (missing5 = "location") || data50.time === void 0 && (missing5 = "time") || data50.users === void 0 && (missing5 = "users")) {
4986
5003
  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 + "'" }];
4987
5004
  return false;
4988
5005
  } else {
4989
- if (data49.location !== void 0) {
4990
- let data50 = data49.location;
4991
- const _errs112 = errors;
4992
- if (errors === _errs112) {
4993
- if (data50 && typeof data50 == "object" && !Array.isArray(data50)) {
5006
+ if (data50.location !== void 0) {
5007
+ let data51 = data50.location;
5008
+ const _errs114 = errors;
5009
+ if (errors === _errs114) {
5010
+ if (data51 && typeof data51 == "object" && !Array.isArray(data51)) {
4994
5011
  let missing6;
4995
- 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")) {
5012
+ 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")) {
4996
5013
  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 + "'" }];
4997
5014
  return false;
4998
5015
  } else {
4999
- if (data50.repository !== void 0) {
5000
- const _errs115 = errors;
5001
- if (typeof data50.repository !== "boolean") {
5016
+ if (data51.repository !== void 0) {
5017
+ const _errs117 = errors;
5018
+ if (typeof data51.repository !== "boolean") {
5002
5019
  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" }];
5003
5020
  return false;
5004
5021
  }
5005
- var valid14 = _errs115 === errors;
5022
+ var valid14 = _errs117 === errors;
5006
5023
  } else {
5007
5024
  var valid14 = true;
5008
5025
  }
5009
5026
  if (valid14) {
5010
- if (data50.directories !== void 0) {
5011
- let data52 = data50.directories;
5012
- const _errs117 = errors;
5013
- if (errors === _errs117) {
5014
- if (Array.isArray(data52)) {
5027
+ if (data51.directories !== void 0) {
5028
+ let data53 = data51.directories;
5029
+ const _errs119 = errors;
5030
+ if (errors === _errs119) {
5031
+ if (Array.isArray(data53)) {
5015
5032
  var valid15 = true;
5016
- const len6 = data52.length;
5033
+ const len6 = data53.length;
5017
5034
  for (let i6 = 0; i6 < len6; i6++) {
5018
- const _errs119 = errors;
5019
- if (typeof data52[i6] !== "string") {
5035
+ const _errs121 = errors;
5036
+ if (typeof data53[i6] !== "string") {
5020
5037
  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" }];
5021
5038
  return false;
5022
5039
  }
5023
- var valid15 = _errs119 === errors;
5040
+ var valid15 = _errs121 === errors;
5024
5041
  if (!valid15) {
5025
5042
  break;
5026
5043
  }
@@ -5030,25 +5047,25 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
5030
5047
  return false;
5031
5048
  }
5032
5049
  }
5033
- var valid14 = _errs117 === errors;
5050
+ var valid14 = _errs119 === errors;
5034
5051
  } else {
5035
5052
  var valid14 = true;
5036
5053
  }
5037
5054
  if (valid14) {
5038
- if (data50.globs !== void 0) {
5039
- let data54 = data50.globs;
5040
- const _errs121 = errors;
5041
- if (errors === _errs121) {
5042
- if (Array.isArray(data54)) {
5055
+ if (data51.globs !== void 0) {
5056
+ let data55 = data51.globs;
5057
+ const _errs123 = errors;
5058
+ if (errors === _errs123) {
5059
+ if (Array.isArray(data55)) {
5043
5060
  var valid16 = true;
5044
- const len7 = data54.length;
5061
+ const len7 = data55.length;
5045
5062
  for (let i7 = 0; i7 < len7; i7++) {
5046
- const _errs123 = errors;
5047
- if (typeof data54[i7] !== "string") {
5063
+ const _errs125 = errors;
5064
+ if (typeof data55[i7] !== "string") {
5048
5065
  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" }];
5049
5066
  return false;
5050
5067
  }
5051
- var valid16 = _errs123 === errors;
5068
+ var valid16 = _errs125 === errors;
5052
5069
  if (!valid16) {
5053
5070
  break;
5054
5071
  }
@@ -5058,25 +5075,25 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
5058
5075
  return false;
5059
5076
  }
5060
5077
  }
5061
- var valid14 = _errs121 === errors;
5078
+ var valid14 = _errs123 === errors;
5062
5079
  } else {
5063
5080
  var valid14 = true;
5064
5081
  }
5065
5082
  if (valid14) {
5066
- if (data50.branches !== void 0) {
5067
- let data56 = data50.branches;
5068
- const _errs125 = errors;
5069
- if (errors === _errs125) {
5070
- if (Array.isArray(data56)) {
5083
+ if (data51.branches !== void 0) {
5084
+ let data57 = data51.branches;
5085
+ const _errs127 = errors;
5086
+ if (errors === _errs127) {
5087
+ if (Array.isArray(data57)) {
5071
5088
  var valid17 = true;
5072
- const len8 = data56.length;
5089
+ const len8 = data57.length;
5073
5090
  for (let i8 = 0; i8 < len8; i8++) {
5074
- const _errs127 = errors;
5075
- if (typeof data56[i8] !== "string") {
5091
+ const _errs129 = errors;
5092
+ if (typeof data57[i8] !== "string") {
5076
5093
  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" }];
5077
5094
  return false;
5078
5095
  }
5079
- var valid17 = _errs127 === errors;
5096
+ var valid17 = _errs129 === errors;
5080
5097
  if (!valid17) {
5081
5098
  break;
5082
5099
  }
@@ -5086,7 +5103,7 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
5086
5103
  return false;
5087
5104
  }
5088
5105
  }
5089
- var valid14 = _errs125 === errors;
5106
+ var valid14 = _errs127 === errors;
5090
5107
  } else {
5091
5108
  var valid14 = true;
5092
5109
  }
@@ -5099,62 +5116,62 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
5099
5116
  return false;
5100
5117
  }
5101
5118
  }
5102
- var valid13 = _errs112 === errors;
5119
+ var valid13 = _errs114 === errors;
5103
5120
  } else {
5104
5121
  var valid13 = true;
5105
5122
  }
5106
5123
  if (valid13) {
5107
- if (data49.time !== void 0) {
5108
- let data58 = data49.time;
5109
- const _errs129 = errors;
5110
- if (errors === _errs129) {
5111
- if (data58 && typeof data58 == "object" && !Array.isArray(data58)) {
5112
- if (data58.effectiveFrom !== void 0) {
5113
- let data59 = data58.effectiveFrom;
5114
- const _errs132 = errors;
5115
- if (!(typeof data59 == "number" && (!(data59 % 1) && !isNaN(data59)) && isFinite(data59))) {
5124
+ if (data50.time !== void 0) {
5125
+ let data59 = data50.time;
5126
+ const _errs131 = errors;
5127
+ if (errors === _errs131) {
5128
+ if (data59 && typeof data59 == "object" && !Array.isArray(data59)) {
5129
+ if (data59.effectiveFrom !== void 0) {
5130
+ let data60 = data59.effectiveFrom;
5131
+ const _errs134 = errors;
5132
+ if (!(typeof data60 == "number" && (!(data60 % 1) && !isNaN(data60)) && isFinite(data60))) {
5116
5133
  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" }];
5117
5134
  return false;
5118
5135
  }
5119
- if (errors === _errs132) {
5120
- if (typeof data59 == "number" && isFinite(data59)) {
5121
- if (data59 > 9007199254740991 || isNaN(data59)) {
5136
+ if (errors === _errs134) {
5137
+ if (typeof data60 == "number" && isFinite(data60)) {
5138
+ if (data60 > 9007199254740991 || isNaN(data60)) {
5122
5139
  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" }];
5123
5140
  return false;
5124
5141
  } else {
5125
- if (data59 < -9007199254740991 || isNaN(data59)) {
5142
+ if (data60 < -9007199254740991 || isNaN(data60)) {
5126
5143
  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" }];
5127
5144
  return false;
5128
5145
  }
5129
5146
  }
5130
5147
  }
5131
5148
  }
5132
- var valid18 = _errs132 === errors;
5149
+ var valid18 = _errs134 === errors;
5133
5150
  } else {
5134
5151
  var valid18 = true;
5135
5152
  }
5136
5153
  if (valid18) {
5137
- if (data58.effectiveUntil !== void 0) {
5138
- let data60 = data58.effectiveUntil;
5139
- const _errs134 = errors;
5140
- if (!(typeof data60 == "number" && (!(data60 % 1) && !isNaN(data60)) && isFinite(data60))) {
5154
+ if (data59.effectiveUntil !== void 0) {
5155
+ let data61 = data59.effectiveUntil;
5156
+ const _errs136 = errors;
5157
+ if (!(typeof data61 == "number" && (!(data61 % 1) && !isNaN(data61)) && isFinite(data61))) {
5141
5158
  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" }];
5142
5159
  return false;
5143
5160
  }
5144
- if (errors === _errs134) {
5145
- if (typeof data60 == "number" && isFinite(data60)) {
5146
- if (data60 > 9007199254740991 || isNaN(data60)) {
5161
+ if (errors === _errs136) {
5162
+ if (typeof data61 == "number" && isFinite(data61)) {
5163
+ if (data61 > 9007199254740991 || isNaN(data61)) {
5147
5164
  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" }];
5148
5165
  return false;
5149
5166
  } else {
5150
- if (data60 < -9007199254740991 || isNaN(data60)) {
5167
+ if (data61 < -9007199254740991 || isNaN(data61)) {
5151
5168
  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" }];
5152
5169
  return false;
5153
5170
  }
5154
5171
  }
5155
5172
  }
5156
5173
  }
5157
- var valid18 = _errs134 === errors;
5174
+ var valid18 = _errs136 === errors;
5158
5175
  } else {
5159
5176
  var valid18 = true;
5160
5177
  }
@@ -5164,29 +5181,29 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
5164
5181
  return false;
5165
5182
  }
5166
5183
  }
5167
- var valid13 = _errs129 === errors;
5184
+ var valid13 = _errs131 === errors;
5168
5185
  } else {
5169
5186
  var valid13 = true;
5170
5187
  }
5171
5188
  if (valid13) {
5172
- if (data49.users !== void 0) {
5173
- let data61 = data49.users;
5174
- const _errs136 = errors;
5175
- if (errors === _errs136) {
5176
- if (Array.isArray(data61)) {
5189
+ if (data50.users !== void 0) {
5190
+ let data62 = data50.users;
5191
+ const _errs138 = errors;
5192
+ if (errors === _errs138) {
5193
+ if (Array.isArray(data62)) {
5177
5194
  var valid19 = true;
5178
- const len9 = data61.length;
5195
+ const len9 = data62.length;
5179
5196
  for (let i9 = 0; i9 < len9; i9++) {
5180
- let data62 = data61[i9];
5181
- const _errs138 = errors;
5182
- const _errs139 = errors;
5197
+ let data63 = data62[i9];
5198
+ const _errs140 = errors;
5199
+ const _errs141 = errors;
5183
5200
  let valid20 = false;
5184
5201
  let passing0 = null;
5185
- const _errs140 = errors;
5186
- if (errors === _errs140) {
5187
- if (data62 && typeof data62 == "object" && !Array.isArray(data62)) {
5202
+ const _errs142 = errors;
5203
+ if (errors === _errs142) {
5204
+ if (data63 && typeof data63 == "object" && !Array.isArray(data63)) {
5188
5205
  let missing7;
5189
- if (data62.kind === void 0 && (missing7 = "kind") || data62.userId === void 0 && (missing7 = "userId") || data62.displayName === void 0 && (missing7 = "displayName")) {
5206
+ if (data63.kind === void 0 && (missing7 = "kind") || data63.userId === void 0 && (missing7 = "userId") || data63.displayName === void 0 && (missing7 = "displayName")) {
5190
5207
  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 + "'" };
5191
5208
  if (vErrors === null) {
5192
5209
  vErrors = [err4];
@@ -5195,8 +5212,8 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
5195
5212
  }
5196
5213
  errors++;
5197
5214
  } else {
5198
- const _errs142 = errors;
5199
- for (const key0 in data62) {
5215
+ const _errs144 = errors;
5216
+ for (const key0 in data63) {
5200
5217
  if (!(key0 === "kind" || key0 === "userId" || key0 === "displayName")) {
5201
5218
  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" };
5202
5219
  if (vErrors === null) {
@@ -5208,11 +5225,11 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
5208
5225
  break;
5209
5226
  }
5210
5227
  }
5211
- if (_errs142 === errors) {
5212
- if (data62.kind !== void 0) {
5213
- let data63 = data62.kind;
5214
- const _errs143 = errors;
5215
- if (typeof data63 !== "string") {
5228
+ if (_errs144 === errors) {
5229
+ if (data63.kind !== void 0) {
5230
+ let data64 = data63.kind;
5231
+ const _errs145 = errors;
5232
+ if (typeof data64 !== "string") {
5216
5233
  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" };
5217
5234
  if (vErrors === null) {
5218
5235
  vErrors = [err6];
@@ -5221,7 +5238,7 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
5221
5238
  }
5222
5239
  errors++;
5223
5240
  }
5224
- if ("user" !== data63) {
5241
+ if ("user" !== data64) {
5225
5242
  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" };
5226
5243
  if (vErrors === null) {
5227
5244
  vErrors = [err7];
@@ -5230,17 +5247,17 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
5230
5247
  }
5231
5248
  errors++;
5232
5249
  }
5233
- var valid21 = _errs143 === errors;
5250
+ var valid21 = _errs145 === errors;
5234
5251
  } else {
5235
5252
  var valid21 = true;
5236
5253
  }
5237
5254
  if (valid21) {
5238
- if (data62.userId !== void 0) {
5239
- let data64 = data62.userId;
5240
- const _errs145 = errors;
5241
- if (errors === _errs145) {
5242
- if (typeof data64 === "string") {
5243
- if (func1(data64) < 1) {
5255
+ if (data63.userId !== void 0) {
5256
+ let data65 = data63.userId;
5257
+ const _errs147 = errors;
5258
+ if (errors === _errs147) {
5259
+ if (typeof data65 === "string") {
5260
+ if (func1(data65) < 1) {
5244
5261
  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" };
5245
5262
  if (vErrors === null) {
5246
5263
  vErrors = [err8];
@@ -5259,14 +5276,14 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
5259
5276
  errors++;
5260
5277
  }
5261
5278
  }
5262
- var valid21 = _errs145 === errors;
5279
+ var valid21 = _errs147 === errors;
5263
5280
  } else {
5264
5281
  var valid21 = true;
5265
5282
  }
5266
5283
  if (valid21) {
5267
- if (data62.displayName !== void 0) {
5268
- const _errs147 = errors;
5269
- if (typeof data62.displayName !== "string") {
5284
+ if (data63.displayName !== void 0) {
5285
+ const _errs149 = errors;
5286
+ if (typeof data63.displayName !== "string") {
5270
5287
  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" };
5271
5288
  if (vErrors === null) {
5272
5289
  vErrors = [err10];
@@ -5275,7 +5292,7 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
5275
5292
  }
5276
5293
  errors++;
5277
5294
  }
5278
- var valid21 = _errs147 === errors;
5295
+ var valid21 = _errs149 === errors;
5279
5296
  } else {
5280
5297
  var valid21 = true;
5281
5298
  }
@@ -5293,17 +5310,17 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
5293
5310
  errors++;
5294
5311
  }
5295
5312
  }
5296
- var _valid1 = _errs140 === errors;
5313
+ var _valid1 = _errs142 === errors;
5297
5314
  if (_valid1) {
5298
5315
  valid20 = true;
5299
5316
  passing0 = 0;
5300
5317
  var props0 = true;
5301
5318
  }
5302
- const _errs149 = errors;
5303
- if (errors === _errs149) {
5304
- if (data62 && typeof data62 == "object" && !Array.isArray(data62)) {
5319
+ const _errs151 = errors;
5320
+ if (errors === _errs151) {
5321
+ if (data63 && typeof data63 == "object" && !Array.isArray(data63)) {
5305
5322
  let missing8;
5306
- if (data62.kind === void 0 && (missing8 = "kind") || data62.role === void 0 && (missing8 = "role")) {
5323
+ if (data63.kind === void 0 && (missing8 = "kind") || data63.role === void 0 && (missing8 = "role")) {
5307
5324
  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 + "'" };
5308
5325
  if (vErrors === null) {
5309
5326
  vErrors = [err12];
@@ -5312,8 +5329,8 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
5312
5329
  }
5313
5330
  errors++;
5314
5331
  } else {
5315
- const _errs151 = errors;
5316
- for (const key1 in data62) {
5332
+ const _errs153 = errors;
5333
+ for (const key1 in data63) {
5317
5334
  if (!(key1 === "kind" || key1 === "role")) {
5318
5335
  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" };
5319
5336
  if (vErrors === null) {
@@ -5325,11 +5342,11 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
5325
5342
  break;
5326
5343
  }
5327
5344
  }
5328
- if (_errs151 === errors) {
5329
- if (data62.kind !== void 0) {
5330
- let data66 = data62.kind;
5331
- const _errs152 = errors;
5332
- if (typeof data66 !== "string") {
5345
+ if (_errs153 === errors) {
5346
+ if (data63.kind !== void 0) {
5347
+ let data67 = data63.kind;
5348
+ const _errs154 = errors;
5349
+ if (typeof data67 !== "string") {
5333
5350
  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" };
5334
5351
  if (vErrors === null) {
5335
5352
  vErrors = [err14];
@@ -5338,7 +5355,7 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
5338
5355
  }
5339
5356
  errors++;
5340
5357
  }
5341
- if ("role" !== data66) {
5358
+ if ("role" !== data67) {
5342
5359
  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" };
5343
5360
  if (vErrors === null) {
5344
5361
  vErrors = [err15];
@@ -5347,15 +5364,15 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
5347
5364
  }
5348
5365
  errors++;
5349
5366
  }
5350
- var valid22 = _errs152 === errors;
5367
+ var valid22 = _errs154 === errors;
5351
5368
  } else {
5352
5369
  var valid22 = true;
5353
5370
  }
5354
5371
  if (valid22) {
5355
- if (data62.role !== void 0) {
5356
- let data67 = data62.role;
5357
- const _errs154 = errors;
5358
- if (typeof data67 !== "string") {
5372
+ if (data63.role !== void 0) {
5373
+ let data68 = data63.role;
5374
+ const _errs156 = errors;
5375
+ if (typeof data68 !== "string") {
5359
5376
  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" };
5360
5377
  if (vErrors === null) {
5361
5378
  vErrors = [err16];
@@ -5364,7 +5381,7 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
5364
5381
  }
5365
5382
  errors++;
5366
5383
  }
5367
- if (!(data67 === "owner" || data67 === "admin" || data67 === "member")) {
5384
+ if (!(data68 === "owner" || data68 === "admin" || data68 === "member")) {
5368
5385
  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" };
5369
5386
  if (vErrors === null) {
5370
5387
  vErrors = [err17];
@@ -5373,7 +5390,7 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
5373
5390
  }
5374
5391
  errors++;
5375
5392
  }
5376
- var valid22 = _errs154 === errors;
5393
+ var valid22 = _errs156 === errors;
5377
5394
  } else {
5378
5395
  var valid22 = true;
5379
5396
  }
@@ -5390,7 +5407,7 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
5390
5407
  errors++;
5391
5408
  }
5392
5409
  }
5393
- var _valid1 = _errs149 === errors;
5410
+ var _valid1 = _errs151 === errors;
5394
5411
  if (_valid1 && valid20) {
5395
5412
  valid20 = false;
5396
5413
  passing0 = [passing0, 1];
@@ -5402,11 +5419,11 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
5402
5419
  props0 = true;
5403
5420
  }
5404
5421
  }
5405
- const _errs156 = errors;
5406
- if (errors === _errs156) {
5407
- if (data62 && typeof data62 == "object" && !Array.isArray(data62)) {
5422
+ const _errs158 = errors;
5423
+ if (errors === _errs158) {
5424
+ if (data63 && typeof data63 == "object" && !Array.isArray(data63)) {
5408
5425
  let missing9;
5409
- if (data62.kind === void 0 && (missing9 = "kind") || data62.agent === void 0 && (missing9 = "agent")) {
5426
+ if (data63.kind === void 0 && (missing9 = "kind") || data63.agent === void 0 && (missing9 = "agent")) {
5410
5427
  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 + "'" };
5411
5428
  if (vErrors === null) {
5412
5429
  vErrors = [err19];
@@ -5415,8 +5432,8 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
5415
5432
  }
5416
5433
  errors++;
5417
5434
  } else {
5418
- const _errs158 = errors;
5419
- for (const key2 in data62) {
5435
+ const _errs160 = errors;
5436
+ for (const key2 in data63) {
5420
5437
  if (!(key2 === "kind" || key2 === "agent")) {
5421
5438
  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" };
5422
5439
  if (vErrors === null) {
@@ -5428,11 +5445,11 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
5428
5445
  break;
5429
5446
  }
5430
5447
  }
5431
- if (_errs158 === errors) {
5432
- if (data62.kind !== void 0) {
5433
- let data68 = data62.kind;
5434
- const _errs159 = errors;
5435
- if (typeof data68 !== "string") {
5448
+ if (_errs160 === errors) {
5449
+ if (data63.kind !== void 0) {
5450
+ let data69 = data63.kind;
5451
+ const _errs161 = errors;
5452
+ if (typeof data69 !== "string") {
5436
5453
  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" };
5437
5454
  if (vErrors === null) {
5438
5455
  vErrors = [err21];
@@ -5441,7 +5458,7 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
5441
5458
  }
5442
5459
  errors++;
5443
5460
  }
5444
- if ("agent" !== data68) {
5461
+ if ("agent" !== data69) {
5445
5462
  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" };
5446
5463
  if (vErrors === null) {
5447
5464
  vErrors = [err22];
@@ -5450,15 +5467,15 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
5450
5467
  }
5451
5468
  errors++;
5452
5469
  }
5453
- var valid23 = _errs159 === errors;
5470
+ var valid23 = _errs161 === errors;
5454
5471
  } else {
5455
5472
  var valid23 = true;
5456
5473
  }
5457
5474
  if (valid23) {
5458
- if (data62.agent !== void 0) {
5459
- let data69 = data62.agent;
5460
- const _errs161 = errors;
5461
- if (typeof data69 !== "string") {
5475
+ if (data63.agent !== void 0) {
5476
+ let data70 = data63.agent;
5477
+ const _errs163 = errors;
5478
+ if (typeof data70 !== "string") {
5462
5479
  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" };
5463
5480
  if (vErrors === null) {
5464
5481
  vErrors = [err23];
@@ -5467,7 +5484,7 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
5467
5484
  }
5468
5485
  errors++;
5469
5486
  }
5470
- if (!(data69 === "claude_code" || data69 === "codex" || data69 === "hermes")) {
5487
+ if (!(data70 === "claude_code" || data70 === "codex" || data70 === "hermes")) {
5471
5488
  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" };
5472
5489
  if (vErrors === null) {
5473
5490
  vErrors = [err24];
@@ -5476,7 +5493,7 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
5476
5493
  }
5477
5494
  errors++;
5478
5495
  }
5479
- var valid23 = _errs161 === errors;
5496
+ var valid23 = _errs163 === errors;
5480
5497
  } else {
5481
5498
  var valid23 = true;
5482
5499
  }
@@ -5493,7 +5510,7 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
5493
5510
  errors++;
5494
5511
  }
5495
5512
  }
5496
- var _valid1 = _errs156 === errors;
5513
+ var _valid1 = _errs158 === errors;
5497
5514
  if (_valid1 && valid20) {
5498
5515
  valid20 = false;
5499
5516
  passing0 = [passing0, 2];
@@ -5505,11 +5522,11 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
5505
5522
  props0 = true;
5506
5523
  }
5507
5524
  }
5508
- const _errs163 = errors;
5509
- if (errors === _errs163) {
5510
- if (data62 && typeof data62 == "object" && !Array.isArray(data62)) {
5525
+ const _errs165 = errors;
5526
+ if (errors === _errs165) {
5527
+ if (data63 && typeof data63 == "object" && !Array.isArray(data63)) {
5511
5528
  let missing10;
5512
- if (data62.kind === void 0 && (missing10 = "kind") || data62.credential === void 0 && (missing10 = "credential")) {
5529
+ if (data63.kind === void 0 && (missing10 = "kind") || data63.credential === void 0 && (missing10 = "credential")) {
5513
5530
  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 + "'" };
5514
5531
  if (vErrors === null) {
5515
5532
  vErrors = [err26];
@@ -5518,8 +5535,8 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
5518
5535
  }
5519
5536
  errors++;
5520
5537
  } else {
5521
- const _errs165 = errors;
5522
- for (const key3 in data62) {
5538
+ const _errs167 = errors;
5539
+ for (const key3 in data63) {
5523
5540
  if (!(key3 === "kind" || key3 === "credential")) {
5524
5541
  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" };
5525
5542
  if (vErrors === null) {
@@ -5531,11 +5548,11 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
5531
5548
  break;
5532
5549
  }
5533
5550
  }
5534
- if (_errs165 === errors) {
5535
- if (data62.kind !== void 0) {
5536
- let data70 = data62.kind;
5537
- const _errs166 = errors;
5538
- if (typeof data70 !== "string") {
5551
+ if (_errs167 === errors) {
5552
+ if (data63.kind !== void 0) {
5553
+ let data71 = data63.kind;
5554
+ const _errs168 = errors;
5555
+ if (typeof data71 !== "string") {
5539
5556
  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" };
5540
5557
  if (vErrors === null) {
5541
5558
  vErrors = [err28];
@@ -5544,7 +5561,7 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
5544
5561
  }
5545
5562
  errors++;
5546
5563
  }
5547
- if ("credential" !== data70) {
5564
+ if ("credential" !== data71) {
5548
5565
  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" };
5549
5566
  if (vErrors === null) {
5550
5567
  vErrors = [err29];
@@ -5553,15 +5570,15 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
5553
5570
  }
5554
5571
  errors++;
5555
5572
  }
5556
- var valid24 = _errs166 === errors;
5573
+ var valid24 = _errs168 === errors;
5557
5574
  } else {
5558
5575
  var valid24 = true;
5559
5576
  }
5560
5577
  if (valid24) {
5561
- if (data62.credential !== void 0) {
5562
- let data71 = data62.credential;
5563
- const _errs168 = errors;
5564
- if (typeof data71 !== "string") {
5578
+ if (data63.credential !== void 0) {
5579
+ let data72 = data63.credential;
5580
+ const _errs170 = errors;
5581
+ if (typeof data72 !== "string") {
5565
5582
  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" };
5566
5583
  if (vErrors === null) {
5567
5584
  vErrors = [err30];
@@ -5570,7 +5587,7 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
5570
5587
  }
5571
5588
  errors++;
5572
5589
  }
5573
- if (!(data71 === "workos_jwt" || data71 === "workos_api_key" || data71 === "service_token")) {
5590
+ if (!(data72 === "workos_jwt" || data72 === "workos_api_key" || data72 === "service_token")) {
5574
5591
  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" };
5575
5592
  if (vErrors === null) {
5576
5593
  vErrors = [err31];
@@ -5579,7 +5596,7 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
5579
5596
  }
5580
5597
  errors++;
5581
5598
  }
5582
- var valid24 = _errs168 === errors;
5599
+ var valid24 = _errs170 === errors;
5583
5600
  } else {
5584
5601
  var valid24 = true;
5585
5602
  }
@@ -5596,7 +5613,7 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
5596
5613
  errors++;
5597
5614
  }
5598
5615
  }
5599
- var _valid1 = _errs163 === errors;
5616
+ var _valid1 = _errs165 === errors;
5600
5617
  if (_valid1 && valid20) {
5601
5618
  valid20 = false;
5602
5619
  passing0 = [passing0, 3];
@@ -5622,16 +5639,16 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
5622
5639
  validate29.errors = vErrors;
5623
5640
  return false;
5624
5641
  } else {
5625
- errors = _errs139;
5642
+ errors = _errs141;
5626
5643
  if (vErrors !== null) {
5627
- if (_errs139) {
5628
- vErrors.length = _errs139;
5644
+ if (_errs141) {
5645
+ vErrors.length = _errs141;
5629
5646
  } else {
5630
5647
  vErrors = null;
5631
5648
  }
5632
5649
  }
5633
5650
  }
5634
- var valid19 = _errs138 === errors;
5651
+ var valid19 = _errs140 === errors;
5635
5652
  if (!valid19) {
5636
5653
  break;
5637
5654
  }
@@ -5641,7 +5658,7 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
5641
5658
  return false;
5642
5659
  }
5643
5660
  }
5644
- var valid13 = _errs136 === errors;
5661
+ var valid13 = _errs138 === errors;
5645
5662
  } else {
5646
5663
  var valid13 = true;
5647
5664
  }
@@ -5653,18 +5670,18 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
5653
5670
  return false;
5654
5671
  }
5655
5672
  }
5656
- var valid1 = _errs109 === errors;
5673
+ var valid1 = _errs111 === errors;
5657
5674
  } else {
5658
5675
  var valid1 = true;
5659
5676
  }
5660
5677
  if (valid1) {
5661
5678
  if (data.truncated !== void 0) {
5662
- const _errs170 = errors;
5679
+ const _errs172 = errors;
5663
5680
  if (typeof data.truncated !== "boolean") {
5664
5681
  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" }];
5665
5682
  return false;
5666
5683
  }
5667
- var valid1 = _errs170 === errors;
5684
+ var valid1 = _errs172 === errors;
5668
5685
  } else {
5669
5686
  var valid1 = true;
5670
5687
  }