@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.
- package/dist/{chunk-MDDHTIXL.js → chunk-2JRX7ZR4.js} +1 -1
- package/dist/{chunk-KL322THW.js → chunk-6IWNH776.js} +1 -1
- package/dist/{chunk-WPD4QRNJ.js → chunk-C7T7B45R.js} +1 -1
- package/dist/{chunk-BOW3Y3KS.js → chunk-MAZWKJGL.js} +421 -404
- package/dist/{chunk-EWM3RYCA.js → chunk-R26A7TWY.js} +1 -1
- package/dist/{chunk-GBEPUEPZ.js → chunk-UZPBB7V4.js} +1 -1
- package/dist/daemon/server.js +421 -404
- package/dist/hook-runtime/daemon/server.js +421 -404
- package/dist/hook-runtime/hooks/post-commit.js +421 -404
- package/dist/hook-runtime/hooks/post-rewrite.js +421 -404
- package/dist/hook-runtime/hooks/post-tool-use.js +421 -404
- package/dist/hook-runtime/hooks/pre-tool-use.js +421 -404
- package/dist/hook-runtime/hooks/prim-hook.js +421 -404
- package/dist/hook-runtime/hooks/session-start.js +421 -404
- package/dist/hook-runtime/index.js +425 -407
- package/dist/hooks/post-commit.js +2 -2
- package/dist/hooks/post-rewrite.js +2 -2
- package/dist/hooks/post-tool-use.js +5 -5
- package/dist/hooks/pre-tool-use.js +2 -2
- package/dist/hooks/prim-hook.js +4 -4
- package/dist/hooks/session-start.js +3 -3
- package/dist/index.js +7 -6
- package/package.json +1 -1
|
@@ -4475,7 +4475,7 @@ function validate28(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
4475
4475
|
return errors === 0;
|
|
4476
4476
|
}
|
|
4477
4477
|
validate28.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
|
|
4478
|
-
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": {} };
|
|
4478
|
+
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": {} };
|
|
4479
4479
|
function validate29(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
4480
4480
|
;
|
|
4481
4481
|
let vErrors = null;
|
|
@@ -4501,7 +4501,7 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
4501
4501
|
if (errors === _errs3) {
|
|
4502
4502
|
if (data0 && typeof data0 == "object" && !Array.isArray(data0)) {
|
|
4503
4503
|
let missing1;
|
|
4504
|
-
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")) {
|
|
4504
|
+
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")) {
|
|
4505
4505
|
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 + "'" }];
|
|
4506
4506
|
return false;
|
|
4507
4507
|
} else {
|
|
@@ -4651,15 +4651,15 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
4651
4651
|
var valid2 = true;
|
|
4652
4652
|
}
|
|
4653
4653
|
if (valid2) {
|
|
4654
|
-
if (data0.
|
|
4655
|
-
let data12 = data0.
|
|
4654
|
+
if (data0.stage !== void 0) {
|
|
4655
|
+
let data12 = data0.stage;
|
|
4656
4656
|
const _errs28 = errors;
|
|
4657
4657
|
if (typeof data12 !== "string") {
|
|
4658
|
-
validate29.errors = [{ instancePath: instancePath + "/decision/
|
|
4658
|
+
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" }];
|
|
4659
4659
|
return false;
|
|
4660
4660
|
}
|
|
4661
|
-
if (!(data12 === "
|
|
4662
|
-
validate29.errors = [{ instancePath: instancePath + "/decision/
|
|
4661
|
+
if (!(data12 === "draft" || data12 === "provisional" || data12 === "adopted" || data12 === "superseded" || data12 === "abandoned")) {
|
|
4662
|
+
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" }];
|
|
4663
4663
|
return false;
|
|
4664
4664
|
}
|
|
4665
4665
|
var valid2 = _errs28 === errors;
|
|
@@ -4667,97 +4667,97 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
4667
4667
|
var valid2 = true;
|
|
4668
4668
|
}
|
|
4669
4669
|
if (valid2) {
|
|
4670
|
-
if (data0.
|
|
4671
|
-
let data13 = data0.
|
|
4670
|
+
if (data0.status !== void 0) {
|
|
4671
|
+
let data13 = data0.status;
|
|
4672
4672
|
const _errs30 = errors;
|
|
4673
|
-
|
|
4674
|
-
|
|
4675
|
-
|
|
4676
|
-
|
|
4677
|
-
|
|
4678
|
-
|
|
4679
|
-
|
|
4673
|
+
if (typeof data13 !== "string") {
|
|
4674
|
+
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" }];
|
|
4675
|
+
return false;
|
|
4676
|
+
}
|
|
4677
|
+
if (!(data13 === "active" || data13 === "superseded" || data13 === "under_review")) {
|
|
4678
|
+
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" }];
|
|
4679
|
+
return false;
|
|
4680
|
+
}
|
|
4681
|
+
var valid2 = _errs30 === errors;
|
|
4682
|
+
} else {
|
|
4683
|
+
var valid2 = true;
|
|
4684
|
+
}
|
|
4685
|
+
if (valid2) {
|
|
4686
|
+
if (data0.supersededBy !== void 0) {
|
|
4687
|
+
let data14 = data0.supersededBy;
|
|
4688
|
+
const _errs32 = errors;
|
|
4689
|
+
const _errs33 = errors;
|
|
4690
|
+
let valid5 = false;
|
|
4691
|
+
const _errs34 = errors;
|
|
4692
|
+
if (errors === _errs34) {
|
|
4693
|
+
if (typeof data14 === "string") {
|
|
4694
|
+
if (func1(data14) < 1) {
|
|
4695
|
+
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" };
|
|
4696
|
+
if (vErrors === null) {
|
|
4697
|
+
vErrors = [err0];
|
|
4698
|
+
} else {
|
|
4699
|
+
vErrors.push(err0);
|
|
4700
|
+
}
|
|
4701
|
+
errors++;
|
|
4702
|
+
}
|
|
4703
|
+
} else {
|
|
4704
|
+
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" };
|
|
4680
4705
|
if (vErrors === null) {
|
|
4681
|
-
vErrors = [
|
|
4706
|
+
vErrors = [err1];
|
|
4682
4707
|
} else {
|
|
4683
|
-
vErrors.push(
|
|
4708
|
+
vErrors.push(err1);
|
|
4684
4709
|
}
|
|
4685
4710
|
errors++;
|
|
4686
4711
|
}
|
|
4687
|
-
}
|
|
4688
|
-
|
|
4712
|
+
}
|
|
4713
|
+
var _valid0 = _errs34 === errors;
|
|
4714
|
+
valid5 = valid5 || _valid0;
|
|
4715
|
+
const _errs36 = errors;
|
|
4716
|
+
if (data14 !== null) {
|
|
4717
|
+
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" };
|
|
4689
4718
|
if (vErrors === null) {
|
|
4690
|
-
vErrors = [
|
|
4719
|
+
vErrors = [err2];
|
|
4691
4720
|
} else {
|
|
4692
|
-
vErrors.push(
|
|
4721
|
+
vErrors.push(err2);
|
|
4693
4722
|
}
|
|
4694
4723
|
errors++;
|
|
4695
4724
|
}
|
|
4696
|
-
|
|
4697
|
-
|
|
4698
|
-
|
|
4699
|
-
|
|
4700
|
-
|
|
4701
|
-
|
|
4702
|
-
if (vErrors === null) {
|
|
4703
|
-
vErrors = [err2];
|
|
4704
|
-
} else {
|
|
4705
|
-
vErrors.push(err2);
|
|
4706
|
-
}
|
|
4707
|
-
errors++;
|
|
4708
|
-
}
|
|
4709
|
-
var _valid0 = _errs34 === errors;
|
|
4710
|
-
valid5 = valid5 || _valid0;
|
|
4711
|
-
if (!valid5) {
|
|
4712
|
-
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" };
|
|
4713
|
-
if (vErrors === null) {
|
|
4714
|
-
vErrors = [err3];
|
|
4715
|
-
} else {
|
|
4716
|
-
vErrors.push(err3);
|
|
4717
|
-
}
|
|
4718
|
-
errors++;
|
|
4719
|
-
validate29.errors = vErrors;
|
|
4720
|
-
return false;
|
|
4721
|
-
} else {
|
|
4722
|
-
errors = _errs31;
|
|
4723
|
-
if (vErrors !== null) {
|
|
4724
|
-
if (_errs31) {
|
|
4725
|
-
vErrors.length = _errs31;
|
|
4725
|
+
var _valid0 = _errs36 === errors;
|
|
4726
|
+
valid5 = valid5 || _valid0;
|
|
4727
|
+
if (!valid5) {
|
|
4728
|
+
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" };
|
|
4729
|
+
if (vErrors === null) {
|
|
4730
|
+
vErrors = [err3];
|
|
4726
4731
|
} else {
|
|
4727
|
-
vErrors
|
|
4732
|
+
vErrors.push(err3);
|
|
4728
4733
|
}
|
|
4729
|
-
|
|
4730
|
-
|
|
4731
|
-
var valid2 = _errs30 === errors;
|
|
4732
|
-
} else {
|
|
4733
|
-
var valid2 = true;
|
|
4734
|
-
}
|
|
4735
|
-
if (valid2) {
|
|
4736
|
-
if (data0.confidence !== void 0) {
|
|
4737
|
-
let data14 = data0.confidence;
|
|
4738
|
-
const _errs36 = errors;
|
|
4739
|
-
if (typeof data14 !== "string") {
|
|
4740
|
-
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" }];
|
|
4741
|
-
return false;
|
|
4742
|
-
}
|
|
4743
|
-
if (!(data14 === "high" || data14 === "medium" || data14 === "low")) {
|
|
4744
|
-
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" }];
|
|
4734
|
+
errors++;
|
|
4735
|
+
validate29.errors = vErrors;
|
|
4745
4736
|
return false;
|
|
4737
|
+
} else {
|
|
4738
|
+
errors = _errs33;
|
|
4739
|
+
if (vErrors !== null) {
|
|
4740
|
+
if (_errs33) {
|
|
4741
|
+
vErrors.length = _errs33;
|
|
4742
|
+
} else {
|
|
4743
|
+
vErrors = null;
|
|
4744
|
+
}
|
|
4745
|
+
}
|
|
4746
4746
|
}
|
|
4747
|
-
var valid2 =
|
|
4747
|
+
var valid2 = _errs32 === errors;
|
|
4748
4748
|
} else {
|
|
4749
4749
|
var valid2 = true;
|
|
4750
4750
|
}
|
|
4751
4751
|
if (valid2) {
|
|
4752
|
-
if (data0.
|
|
4753
|
-
let data15 = data0.
|
|
4752
|
+
if (data0.confidence !== void 0) {
|
|
4753
|
+
let data15 = data0.confidence;
|
|
4754
4754
|
const _errs38 = errors;
|
|
4755
4755
|
if (typeof data15 !== "string") {
|
|
4756
|
-
validate29.errors = [{ instancePath: instancePath + "/decision/
|
|
4756
|
+
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" }];
|
|
4757
4757
|
return false;
|
|
4758
4758
|
}
|
|
4759
|
-
if (!(data15 === "high" || data15 === "low")) {
|
|
4760
|
-
validate29.errors = [{ instancePath: instancePath + "/decision/
|
|
4759
|
+
if (!(data15 === "high" || data15 === "medium" || data15 === "low")) {
|
|
4760
|
+
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" }];
|
|
4761
4761
|
return false;
|
|
4762
4762
|
}
|
|
4763
4763
|
var valid2 = _errs38 === errors;
|
|
@@ -4765,10 +4765,15 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
4765
4765
|
var valid2 = true;
|
|
4766
4766
|
}
|
|
4767
4767
|
if (valid2) {
|
|
4768
|
-
if (data0.
|
|
4768
|
+
if (data0.reversibility !== void 0) {
|
|
4769
|
+
let data16 = data0.reversibility;
|
|
4769
4770
|
const _errs40 = errors;
|
|
4770
|
-
if (typeof
|
|
4771
|
-
validate29.errors = [{ instancePath: instancePath + "/decision/
|
|
4771
|
+
if (typeof data16 !== "string") {
|
|
4772
|
+
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" }];
|
|
4773
|
+
return false;
|
|
4774
|
+
}
|
|
4775
|
+
if (!(data16 === "high" || data16 === "low")) {
|
|
4776
|
+
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" }];
|
|
4772
4777
|
return false;
|
|
4773
4778
|
}
|
|
4774
4779
|
var valid2 = _errs40 === errors;
|
|
@@ -4776,11 +4781,10 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
4776
4781
|
var valid2 = true;
|
|
4777
4782
|
}
|
|
4778
4783
|
if (valid2) {
|
|
4779
|
-
if (data0.
|
|
4780
|
-
let data17 = data0.respondedAt;
|
|
4784
|
+
if (data0.confirmed !== void 0) {
|
|
4781
4785
|
const _errs42 = errors;
|
|
4782
|
-
if (
|
|
4783
|
-
validate29.errors = [{ instancePath: instancePath + "/decision/
|
|
4786
|
+
if (typeof data0.confirmed !== "boolean") {
|
|
4787
|
+
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" }];
|
|
4784
4788
|
return false;
|
|
4785
4789
|
}
|
|
4786
4790
|
var valid2 = _errs42 === errors;
|
|
@@ -4788,11 +4792,11 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
4788
4792
|
var valid2 = true;
|
|
4789
4793
|
}
|
|
4790
4794
|
if (valid2) {
|
|
4791
|
-
if (data0.
|
|
4792
|
-
let data18 = data0.
|
|
4795
|
+
if (data0.respondedAt !== void 0) {
|
|
4796
|
+
let data18 = data0.respondedAt;
|
|
4793
4797
|
const _errs44 = errors;
|
|
4794
4798
|
if (!(typeof data18 == "number" && isFinite(data18))) {
|
|
4795
|
-
validate29.errors = [{ instancePath: instancePath + "/decision/
|
|
4799
|
+
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" }];
|
|
4796
4800
|
return false;
|
|
4797
4801
|
}
|
|
4798
4802
|
var valid2 = _errs44 === errors;
|
|
@@ -4800,11 +4804,11 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
4800
4804
|
var valid2 = true;
|
|
4801
4805
|
}
|
|
4802
4806
|
if (valid2) {
|
|
4803
|
-
if (data0.
|
|
4804
|
-
let data19 = data0.
|
|
4807
|
+
if (data0.fanOut !== void 0) {
|
|
4808
|
+
let data19 = data0.fanOut;
|
|
4805
4809
|
const _errs46 = errors;
|
|
4806
4810
|
if (!(typeof data19 == "number" && isFinite(data19))) {
|
|
4807
|
-
validate29.errors = [{ instancePath: instancePath + "/decision/
|
|
4811
|
+
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" }];
|
|
4808
4812
|
return false;
|
|
4809
4813
|
}
|
|
4810
4814
|
var valid2 = _errs46 === errors;
|
|
@@ -4812,16 +4816,29 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
4812
4816
|
var valid2 = true;
|
|
4813
4817
|
}
|
|
4814
4818
|
if (valid2) {
|
|
4815
|
-
if (data0.
|
|
4819
|
+
if (data0.classifiedAt !== void 0) {
|
|
4820
|
+
let data20 = data0.classifiedAt;
|
|
4816
4821
|
const _errs48 = errors;
|
|
4817
|
-
if (typeof
|
|
4818
|
-
validate29.errors = [{ instancePath: instancePath + "/decision/
|
|
4822
|
+
if (!(typeof data20 == "number" && isFinite(data20))) {
|
|
4823
|
+
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" }];
|
|
4819
4824
|
return false;
|
|
4820
4825
|
}
|
|
4821
4826
|
var valid2 = _errs48 === errors;
|
|
4822
4827
|
} else {
|
|
4823
4828
|
var valid2 = true;
|
|
4824
4829
|
}
|
|
4830
|
+
if (valid2) {
|
|
4831
|
+
if (data0.authorName !== void 0) {
|
|
4832
|
+
const _errs50 = errors;
|
|
4833
|
+
if (typeof data0.authorName !== "string") {
|
|
4834
|
+
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" }];
|
|
4835
|
+
return false;
|
|
4836
|
+
}
|
|
4837
|
+
var valid2 = _errs50 === errors;
|
|
4838
|
+
} else {
|
|
4839
|
+
var valid2 = true;
|
|
4840
|
+
}
|
|
4841
|
+
}
|
|
4825
4842
|
}
|
|
4826
4843
|
}
|
|
4827
4844
|
}
|
|
@@ -4851,19 +4868,19 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
4851
4868
|
}
|
|
4852
4869
|
if (valid1) {
|
|
4853
4870
|
if (data.files !== void 0) {
|
|
4854
|
-
let
|
|
4855
|
-
const
|
|
4856
|
-
if (errors ===
|
|
4857
|
-
if (Array.isArray(
|
|
4871
|
+
let data22 = data.files;
|
|
4872
|
+
const _errs52 = errors;
|
|
4873
|
+
if (errors === _errs52) {
|
|
4874
|
+
if (Array.isArray(data22)) {
|
|
4858
4875
|
var valid6 = true;
|
|
4859
|
-
const len2 =
|
|
4876
|
+
const len2 = data22.length;
|
|
4860
4877
|
for (let i2 = 0; i2 < len2; i2++) {
|
|
4861
|
-
const
|
|
4862
|
-
if (typeof
|
|
4878
|
+
const _errs54 = errors;
|
|
4879
|
+
if (typeof data22[i2] !== "string") {
|
|
4863
4880
|
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" }];
|
|
4864
4881
|
return false;
|
|
4865
4882
|
}
|
|
4866
|
-
var valid6 =
|
|
4883
|
+
var valid6 = _errs54 === errors;
|
|
4867
4884
|
if (!valid6) {
|
|
4868
4885
|
break;
|
|
4869
4886
|
}
|
|
@@ -4873,97 +4890,97 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
4873
4890
|
return false;
|
|
4874
4891
|
}
|
|
4875
4892
|
}
|
|
4876
|
-
var valid1 =
|
|
4893
|
+
var valid1 = _errs52 === errors;
|
|
4877
4894
|
} else {
|
|
4878
4895
|
var valid1 = true;
|
|
4879
4896
|
}
|
|
4880
4897
|
if (valid1) {
|
|
4881
4898
|
if (data.flags !== void 0) {
|
|
4882
|
-
let
|
|
4883
|
-
const
|
|
4884
|
-
if (errors ===
|
|
4885
|
-
if (Array.isArray(
|
|
4899
|
+
let data24 = data.flags;
|
|
4900
|
+
const _errs56 = errors;
|
|
4901
|
+
if (errors === _errs56) {
|
|
4902
|
+
if (Array.isArray(data24)) {
|
|
4886
4903
|
var valid7 = true;
|
|
4887
|
-
const len3 =
|
|
4904
|
+
const len3 = data24.length;
|
|
4888
4905
|
for (let i3 = 0; i3 < len3; i3++) {
|
|
4889
|
-
let
|
|
4890
|
-
const
|
|
4891
|
-
if (errors ===
|
|
4892
|
-
if (
|
|
4906
|
+
let data25 = data24[i3];
|
|
4907
|
+
const _errs58 = errors;
|
|
4908
|
+
if (errors === _errs58) {
|
|
4909
|
+
if (data25 && typeof data25 == "object" && !Array.isArray(data25)) {
|
|
4893
4910
|
let missing2;
|
|
4894
|
-
if (
|
|
4911
|
+
if (data25.type === void 0 && (missing2 = "type") || data25.flaggedAt === void 0 && (missing2 = "flaggedAt")) {
|
|
4895
4912
|
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 + "'" }];
|
|
4896
4913
|
return false;
|
|
4897
4914
|
} else {
|
|
4898
|
-
if (
|
|
4899
|
-
let
|
|
4900
|
-
const
|
|
4901
|
-
if (typeof
|
|
4915
|
+
if (data25.type !== void 0) {
|
|
4916
|
+
let data26 = data25.type;
|
|
4917
|
+
const _errs61 = errors;
|
|
4918
|
+
if (typeof data26 !== "string") {
|
|
4902
4919
|
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" }];
|
|
4903
4920
|
return false;
|
|
4904
4921
|
}
|
|
4905
|
-
if (!(
|
|
4922
|
+
if (!(data26 === "file_edit" || data26 === "supersession" || data26 === "invalidation" || data26 === "confirmation_request")) {
|
|
4906
4923
|
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" }];
|
|
4907
4924
|
return false;
|
|
4908
4925
|
}
|
|
4909
|
-
var valid8 =
|
|
4926
|
+
var valid8 = _errs61 === errors;
|
|
4910
4927
|
} else {
|
|
4911
4928
|
var valid8 = true;
|
|
4912
4929
|
}
|
|
4913
4930
|
if (valid8) {
|
|
4914
|
-
if (
|
|
4915
|
-
const
|
|
4916
|
-
if (typeof
|
|
4931
|
+
if (data25.file !== void 0) {
|
|
4932
|
+
const _errs63 = errors;
|
|
4933
|
+
if (typeof data25.file !== "string") {
|
|
4917
4934
|
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" }];
|
|
4918
4935
|
return false;
|
|
4919
4936
|
}
|
|
4920
|
-
var valid8 =
|
|
4937
|
+
var valid8 = _errs63 === errors;
|
|
4921
4938
|
} else {
|
|
4922
4939
|
var valid8 = true;
|
|
4923
4940
|
}
|
|
4924
4941
|
if (valid8) {
|
|
4925
|
-
if (
|
|
4926
|
-
let
|
|
4927
|
-
const
|
|
4928
|
-
if (!(typeof
|
|
4942
|
+
if (data25.flaggedAt !== void 0) {
|
|
4943
|
+
let data28 = data25.flaggedAt;
|
|
4944
|
+
const _errs65 = errors;
|
|
4945
|
+
if (!(typeof data28 == "number" && isFinite(data28))) {
|
|
4929
4946
|
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" }];
|
|
4930
4947
|
return false;
|
|
4931
4948
|
}
|
|
4932
|
-
var valid8 =
|
|
4949
|
+
var valid8 = _errs65 === errors;
|
|
4933
4950
|
} else {
|
|
4934
4951
|
var valid8 = true;
|
|
4935
4952
|
}
|
|
4936
4953
|
if (valid8) {
|
|
4937
|
-
if (
|
|
4938
|
-
let
|
|
4939
|
-
const
|
|
4940
|
-
if (!(typeof
|
|
4954
|
+
if (data25.acknowledgedAt !== void 0) {
|
|
4955
|
+
let data29 = data25.acknowledgedAt;
|
|
4956
|
+
const _errs67 = errors;
|
|
4957
|
+
if (!(typeof data29 == "number" && isFinite(data29))) {
|
|
4941
4958
|
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" }];
|
|
4942
4959
|
return false;
|
|
4943
4960
|
}
|
|
4944
|
-
var valid8 =
|
|
4961
|
+
var valid8 = _errs67 === errors;
|
|
4945
4962
|
} else {
|
|
4946
4963
|
var valid8 = true;
|
|
4947
4964
|
}
|
|
4948
4965
|
if (valid8) {
|
|
4949
|
-
if (
|
|
4950
|
-
const
|
|
4951
|
-
if (typeof
|
|
4966
|
+
if (data25.gateVerdict !== void 0) {
|
|
4967
|
+
const _errs69 = errors;
|
|
4968
|
+
if (typeof data25.gateVerdict !== "string") {
|
|
4952
4969
|
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" }];
|
|
4953
4970
|
return false;
|
|
4954
4971
|
}
|
|
4955
|
-
var valid8 =
|
|
4972
|
+
var valid8 = _errs69 === errors;
|
|
4956
4973
|
} else {
|
|
4957
4974
|
var valid8 = true;
|
|
4958
4975
|
}
|
|
4959
4976
|
if (valid8) {
|
|
4960
|
-
if (
|
|
4961
|
-
const
|
|
4962
|
-
if (typeof
|
|
4977
|
+
if (data25.reason !== void 0) {
|
|
4978
|
+
const _errs71 = errors;
|
|
4979
|
+
if (typeof data25.reason !== "string") {
|
|
4963
4980
|
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" }];
|
|
4964
4981
|
return false;
|
|
4965
4982
|
}
|
|
4966
|
-
var valid8 =
|
|
4983
|
+
var valid8 = _errs71 === errors;
|
|
4967
4984
|
} else {
|
|
4968
4985
|
var valid8 = true;
|
|
4969
4986
|
}
|
|
@@ -4978,7 +4995,7 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
4978
4995
|
return false;
|
|
4979
4996
|
}
|
|
4980
4997
|
}
|
|
4981
|
-
var valid7 =
|
|
4998
|
+
var valid7 = _errs58 === errors;
|
|
4982
4999
|
if (!valid7) {
|
|
4983
5000
|
break;
|
|
4984
5001
|
}
|
|
@@ -4988,34 +5005,34 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
4988
5005
|
return false;
|
|
4989
5006
|
}
|
|
4990
5007
|
}
|
|
4991
|
-
var valid1 =
|
|
5008
|
+
var valid1 = _errs56 === errors;
|
|
4992
5009
|
} else {
|
|
4993
5010
|
var valid1 = true;
|
|
4994
5011
|
}
|
|
4995
5012
|
if (valid1) {
|
|
4996
5013
|
if (data.dependsOn !== void 0) {
|
|
4997
|
-
let
|
|
4998
|
-
const
|
|
4999
|
-
if (errors ===
|
|
5000
|
-
if (Array.isArray(
|
|
5014
|
+
let data32 = data.dependsOn;
|
|
5015
|
+
const _errs73 = errors;
|
|
5016
|
+
if (errors === _errs73) {
|
|
5017
|
+
if (Array.isArray(data32)) {
|
|
5001
5018
|
var valid9 = true;
|
|
5002
|
-
const len4 =
|
|
5019
|
+
const len4 = data32.length;
|
|
5003
5020
|
for (let i4 = 0; i4 < len4; i4++) {
|
|
5004
|
-
let
|
|
5005
|
-
const
|
|
5006
|
-
if (errors ===
|
|
5007
|
-
if (
|
|
5021
|
+
let data33 = data32[i4];
|
|
5022
|
+
const _errs75 = errors;
|
|
5023
|
+
if (errors === _errs75) {
|
|
5024
|
+
if (data33 && typeof data33 == "object" && !Array.isArray(data33)) {
|
|
5008
5025
|
let missing3;
|
|
5009
|
-
if (
|
|
5026
|
+
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")) {
|
|
5010
5027
|
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 + "'" }];
|
|
5011
5028
|
return false;
|
|
5012
5029
|
} else {
|
|
5013
|
-
if (
|
|
5014
|
-
let
|
|
5015
|
-
const
|
|
5016
|
-
if (errors ===
|
|
5017
|
-
if (typeof
|
|
5018
|
-
if (func1(
|
|
5030
|
+
if (data33.id !== void 0) {
|
|
5031
|
+
let data34 = data33.id;
|
|
5032
|
+
const _errs78 = errors;
|
|
5033
|
+
if (errors === _errs78) {
|
|
5034
|
+
if (typeof data34 === "string") {
|
|
5035
|
+
if (func1(data34) < 1) {
|
|
5019
5036
|
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" }];
|
|
5020
5037
|
return false;
|
|
5021
5038
|
}
|
|
@@ -5024,79 +5041,79 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
5024
5041
|
return false;
|
|
5025
5042
|
}
|
|
5026
5043
|
}
|
|
5027
|
-
var valid10 =
|
|
5044
|
+
var valid10 = _errs78 === errors;
|
|
5028
5045
|
} else {
|
|
5029
5046
|
var valid10 = true;
|
|
5030
5047
|
}
|
|
5031
5048
|
if (valid10) {
|
|
5032
|
-
if (
|
|
5033
|
-
const
|
|
5034
|
-
if (typeof
|
|
5049
|
+
if (data33.shortId !== void 0) {
|
|
5050
|
+
const _errs80 = errors;
|
|
5051
|
+
if (typeof data33.shortId !== "string") {
|
|
5035
5052
|
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" }];
|
|
5036
5053
|
return false;
|
|
5037
5054
|
}
|
|
5038
|
-
var valid10 =
|
|
5055
|
+
var valid10 = _errs80 === errors;
|
|
5039
5056
|
} else {
|
|
5040
5057
|
var valid10 = true;
|
|
5041
5058
|
}
|
|
5042
5059
|
if (valid10) {
|
|
5043
|
-
if (
|
|
5044
|
-
const
|
|
5045
|
-
if (typeof
|
|
5060
|
+
if (data33.intent !== void 0) {
|
|
5061
|
+
const _errs82 = errors;
|
|
5062
|
+
if (typeof data33.intent !== "string") {
|
|
5046
5063
|
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" }];
|
|
5047
5064
|
return false;
|
|
5048
5065
|
}
|
|
5049
|
-
var valid10 =
|
|
5066
|
+
var valid10 = _errs82 === errors;
|
|
5050
5067
|
} else {
|
|
5051
5068
|
var valid10 = true;
|
|
5052
5069
|
}
|
|
5053
5070
|
if (valid10) {
|
|
5054
|
-
if (
|
|
5055
|
-
const
|
|
5056
|
-
if (typeof
|
|
5071
|
+
if (data33.area !== void 0) {
|
|
5072
|
+
const _errs84 = errors;
|
|
5073
|
+
if (typeof data33.area !== "string") {
|
|
5057
5074
|
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" }];
|
|
5058
5075
|
return false;
|
|
5059
5076
|
}
|
|
5060
|
-
var valid10 =
|
|
5077
|
+
var valid10 = _errs84 === errors;
|
|
5061
5078
|
} else {
|
|
5062
5079
|
var valid10 = true;
|
|
5063
5080
|
}
|
|
5064
5081
|
if (valid10) {
|
|
5065
|
-
if (
|
|
5066
|
-
const
|
|
5067
|
-
if (typeof
|
|
5082
|
+
if (data33.authorName !== void 0) {
|
|
5083
|
+
const _errs86 = errors;
|
|
5084
|
+
if (typeof data33.authorName !== "string") {
|
|
5068
5085
|
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" }];
|
|
5069
5086
|
return false;
|
|
5070
5087
|
}
|
|
5071
|
-
var valid10 =
|
|
5088
|
+
var valid10 = _errs86 === errors;
|
|
5072
5089
|
} else {
|
|
5073
5090
|
var valid10 = true;
|
|
5074
5091
|
}
|
|
5075
5092
|
if (valid10) {
|
|
5076
|
-
if (
|
|
5077
|
-
let
|
|
5078
|
-
const
|
|
5079
|
-
if (!(typeof
|
|
5093
|
+
if (data33.classifiedAt !== void 0) {
|
|
5094
|
+
let data39 = data33.classifiedAt;
|
|
5095
|
+
const _errs88 = errors;
|
|
5096
|
+
if (!(typeof data39 == "number" && isFinite(data39))) {
|
|
5080
5097
|
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" }];
|
|
5081
5098
|
return false;
|
|
5082
5099
|
}
|
|
5083
|
-
var valid10 =
|
|
5100
|
+
var valid10 = _errs88 === errors;
|
|
5084
5101
|
} else {
|
|
5085
5102
|
var valid10 = true;
|
|
5086
5103
|
}
|
|
5087
5104
|
if (valid10) {
|
|
5088
|
-
if (
|
|
5089
|
-
let
|
|
5090
|
-
const
|
|
5091
|
-
if (typeof
|
|
5105
|
+
if (data33.status !== void 0) {
|
|
5106
|
+
let data40 = data33.status;
|
|
5107
|
+
const _errs90 = errors;
|
|
5108
|
+
if (typeof data40 !== "string") {
|
|
5092
5109
|
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" }];
|
|
5093
5110
|
return false;
|
|
5094
5111
|
}
|
|
5095
|
-
if (!(
|
|
5112
|
+
if (!(data40 === "active" || data40 === "superseded" || data40 === "under_review")) {
|
|
5096
5113
|
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" }];
|
|
5097
5114
|
return false;
|
|
5098
5115
|
}
|
|
5099
|
-
var valid10 =
|
|
5116
|
+
var valid10 = _errs90 === errors;
|
|
5100
5117
|
} else {
|
|
5101
5118
|
var valid10 = true;
|
|
5102
5119
|
}
|
|
@@ -5112,7 +5129,7 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
5112
5129
|
return false;
|
|
5113
5130
|
}
|
|
5114
5131
|
}
|
|
5115
|
-
var valid9 =
|
|
5132
|
+
var valid9 = _errs75 === errors;
|
|
5116
5133
|
if (!valid9) {
|
|
5117
5134
|
break;
|
|
5118
5135
|
}
|
|
@@ -5122,34 +5139,34 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
5122
5139
|
return false;
|
|
5123
5140
|
}
|
|
5124
5141
|
}
|
|
5125
|
-
var valid1 =
|
|
5142
|
+
var valid1 = _errs73 === errors;
|
|
5126
5143
|
} else {
|
|
5127
5144
|
var valid1 = true;
|
|
5128
5145
|
}
|
|
5129
5146
|
if (valid1) {
|
|
5130
5147
|
if (data.dependents !== void 0) {
|
|
5131
|
-
let
|
|
5132
|
-
const
|
|
5133
|
-
if (errors ===
|
|
5134
|
-
if (Array.isArray(
|
|
5148
|
+
let data41 = data.dependents;
|
|
5149
|
+
const _errs92 = errors;
|
|
5150
|
+
if (errors === _errs92) {
|
|
5151
|
+
if (Array.isArray(data41)) {
|
|
5135
5152
|
var valid11 = true;
|
|
5136
|
-
const len5 =
|
|
5153
|
+
const len5 = data41.length;
|
|
5137
5154
|
for (let i5 = 0; i5 < len5; i5++) {
|
|
5138
|
-
let
|
|
5139
|
-
const
|
|
5140
|
-
if (errors ===
|
|
5141
|
-
if (
|
|
5155
|
+
let data42 = data41[i5];
|
|
5156
|
+
const _errs94 = errors;
|
|
5157
|
+
if (errors === _errs94) {
|
|
5158
|
+
if (data42 && typeof data42 == "object" && !Array.isArray(data42)) {
|
|
5142
5159
|
let missing4;
|
|
5143
|
-
if (
|
|
5160
|
+
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")) {
|
|
5144
5161
|
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 + "'" }];
|
|
5145
5162
|
return false;
|
|
5146
5163
|
} else {
|
|
5147
|
-
if (
|
|
5148
|
-
let
|
|
5149
|
-
const
|
|
5150
|
-
if (errors ===
|
|
5151
|
-
if (typeof
|
|
5152
|
-
if (func1(
|
|
5164
|
+
if (data42.id !== void 0) {
|
|
5165
|
+
let data43 = data42.id;
|
|
5166
|
+
const _errs97 = errors;
|
|
5167
|
+
if (errors === _errs97) {
|
|
5168
|
+
if (typeof data43 === "string") {
|
|
5169
|
+
if (func1(data43) < 1) {
|
|
5153
5170
|
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" }];
|
|
5154
5171
|
return false;
|
|
5155
5172
|
}
|
|
@@ -5158,79 +5175,79 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
5158
5175
|
return false;
|
|
5159
5176
|
}
|
|
5160
5177
|
}
|
|
5161
|
-
var valid12 =
|
|
5178
|
+
var valid12 = _errs97 === errors;
|
|
5162
5179
|
} else {
|
|
5163
5180
|
var valid12 = true;
|
|
5164
5181
|
}
|
|
5165
5182
|
if (valid12) {
|
|
5166
|
-
if (
|
|
5167
|
-
const
|
|
5168
|
-
if (typeof
|
|
5183
|
+
if (data42.shortId !== void 0) {
|
|
5184
|
+
const _errs99 = errors;
|
|
5185
|
+
if (typeof data42.shortId !== "string") {
|
|
5169
5186
|
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" }];
|
|
5170
5187
|
return false;
|
|
5171
5188
|
}
|
|
5172
|
-
var valid12 =
|
|
5189
|
+
var valid12 = _errs99 === errors;
|
|
5173
5190
|
} else {
|
|
5174
5191
|
var valid12 = true;
|
|
5175
5192
|
}
|
|
5176
5193
|
if (valid12) {
|
|
5177
|
-
if (
|
|
5178
|
-
const
|
|
5179
|
-
if (typeof
|
|
5194
|
+
if (data42.intent !== void 0) {
|
|
5195
|
+
const _errs101 = errors;
|
|
5196
|
+
if (typeof data42.intent !== "string") {
|
|
5180
5197
|
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" }];
|
|
5181
5198
|
return false;
|
|
5182
5199
|
}
|
|
5183
|
-
var valid12 =
|
|
5200
|
+
var valid12 = _errs101 === errors;
|
|
5184
5201
|
} else {
|
|
5185
5202
|
var valid12 = true;
|
|
5186
5203
|
}
|
|
5187
5204
|
if (valid12) {
|
|
5188
|
-
if (
|
|
5189
|
-
const
|
|
5190
|
-
if (typeof
|
|
5205
|
+
if (data42.area !== void 0) {
|
|
5206
|
+
const _errs103 = errors;
|
|
5207
|
+
if (typeof data42.area !== "string") {
|
|
5191
5208
|
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" }];
|
|
5192
5209
|
return false;
|
|
5193
5210
|
}
|
|
5194
|
-
var valid12 =
|
|
5211
|
+
var valid12 = _errs103 === errors;
|
|
5195
5212
|
} else {
|
|
5196
5213
|
var valid12 = true;
|
|
5197
5214
|
}
|
|
5198
5215
|
if (valid12) {
|
|
5199
|
-
if (
|
|
5200
|
-
const
|
|
5201
|
-
if (typeof
|
|
5216
|
+
if (data42.authorName !== void 0) {
|
|
5217
|
+
const _errs105 = errors;
|
|
5218
|
+
if (typeof data42.authorName !== "string") {
|
|
5202
5219
|
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" }];
|
|
5203
5220
|
return false;
|
|
5204
5221
|
}
|
|
5205
|
-
var valid12 =
|
|
5222
|
+
var valid12 = _errs105 === errors;
|
|
5206
5223
|
} else {
|
|
5207
5224
|
var valid12 = true;
|
|
5208
5225
|
}
|
|
5209
5226
|
if (valid12) {
|
|
5210
|
-
if (
|
|
5211
|
-
let
|
|
5212
|
-
const
|
|
5213
|
-
if (!(typeof
|
|
5227
|
+
if (data42.classifiedAt !== void 0) {
|
|
5228
|
+
let data48 = data42.classifiedAt;
|
|
5229
|
+
const _errs107 = errors;
|
|
5230
|
+
if (!(typeof data48 == "number" && isFinite(data48))) {
|
|
5214
5231
|
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" }];
|
|
5215
5232
|
return false;
|
|
5216
5233
|
}
|
|
5217
|
-
var valid12 =
|
|
5234
|
+
var valid12 = _errs107 === errors;
|
|
5218
5235
|
} else {
|
|
5219
5236
|
var valid12 = true;
|
|
5220
5237
|
}
|
|
5221
5238
|
if (valid12) {
|
|
5222
|
-
if (
|
|
5223
|
-
let
|
|
5224
|
-
const
|
|
5225
|
-
if (typeof
|
|
5239
|
+
if (data42.status !== void 0) {
|
|
5240
|
+
let data49 = data42.status;
|
|
5241
|
+
const _errs109 = errors;
|
|
5242
|
+
if (typeof data49 !== "string") {
|
|
5226
5243
|
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" }];
|
|
5227
5244
|
return false;
|
|
5228
5245
|
}
|
|
5229
|
-
if (!(
|
|
5246
|
+
if (!(data49 === "active" || data49 === "superseded" || data49 === "under_review")) {
|
|
5230
5247
|
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" }];
|
|
5231
5248
|
return false;
|
|
5232
5249
|
}
|
|
5233
|
-
var valid12 =
|
|
5250
|
+
var valid12 = _errs109 === errors;
|
|
5234
5251
|
} else {
|
|
5235
5252
|
var valid12 = true;
|
|
5236
5253
|
}
|
|
@@ -5246,7 +5263,7 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
5246
5263
|
return false;
|
|
5247
5264
|
}
|
|
5248
5265
|
}
|
|
5249
|
-
var valid11 =
|
|
5266
|
+
var valid11 = _errs94 === errors;
|
|
5250
5267
|
if (!valid11) {
|
|
5251
5268
|
break;
|
|
5252
5269
|
}
|
|
@@ -5256,56 +5273,56 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
5256
5273
|
return false;
|
|
5257
5274
|
}
|
|
5258
5275
|
}
|
|
5259
|
-
var valid1 =
|
|
5276
|
+
var valid1 = _errs92 === errors;
|
|
5260
5277
|
} else {
|
|
5261
5278
|
var valid1 = true;
|
|
5262
5279
|
}
|
|
5263
5280
|
if (valid1) {
|
|
5264
5281
|
if (data.scope !== void 0) {
|
|
5265
|
-
let
|
|
5266
|
-
const
|
|
5267
|
-
if (errors ===
|
|
5268
|
-
if (
|
|
5282
|
+
let data50 = data.scope;
|
|
5283
|
+
const _errs111 = errors;
|
|
5284
|
+
if (errors === _errs111) {
|
|
5285
|
+
if (data50 && typeof data50 == "object" && !Array.isArray(data50)) {
|
|
5269
5286
|
let missing5;
|
|
5270
|
-
if (
|
|
5287
|
+
if (data50.location === void 0 && (missing5 = "location") || data50.time === void 0 && (missing5 = "time") || data50.users === void 0 && (missing5 = "users")) {
|
|
5271
5288
|
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 + "'" }];
|
|
5272
5289
|
return false;
|
|
5273
5290
|
} else {
|
|
5274
|
-
if (
|
|
5275
|
-
let
|
|
5276
|
-
const
|
|
5277
|
-
if (errors ===
|
|
5278
|
-
if (
|
|
5291
|
+
if (data50.location !== void 0) {
|
|
5292
|
+
let data51 = data50.location;
|
|
5293
|
+
const _errs114 = errors;
|
|
5294
|
+
if (errors === _errs114) {
|
|
5295
|
+
if (data51 && typeof data51 == "object" && !Array.isArray(data51)) {
|
|
5279
5296
|
let missing6;
|
|
5280
|
-
if (
|
|
5297
|
+
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")) {
|
|
5281
5298
|
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 + "'" }];
|
|
5282
5299
|
return false;
|
|
5283
5300
|
} else {
|
|
5284
|
-
if (
|
|
5285
|
-
const
|
|
5286
|
-
if (typeof
|
|
5301
|
+
if (data51.repository !== void 0) {
|
|
5302
|
+
const _errs117 = errors;
|
|
5303
|
+
if (typeof data51.repository !== "boolean") {
|
|
5287
5304
|
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" }];
|
|
5288
5305
|
return false;
|
|
5289
5306
|
}
|
|
5290
|
-
var valid14 =
|
|
5307
|
+
var valid14 = _errs117 === errors;
|
|
5291
5308
|
} else {
|
|
5292
5309
|
var valid14 = true;
|
|
5293
5310
|
}
|
|
5294
5311
|
if (valid14) {
|
|
5295
|
-
if (
|
|
5296
|
-
let
|
|
5297
|
-
const
|
|
5298
|
-
if (errors ===
|
|
5299
|
-
if (Array.isArray(
|
|
5312
|
+
if (data51.directories !== void 0) {
|
|
5313
|
+
let data53 = data51.directories;
|
|
5314
|
+
const _errs119 = errors;
|
|
5315
|
+
if (errors === _errs119) {
|
|
5316
|
+
if (Array.isArray(data53)) {
|
|
5300
5317
|
var valid15 = true;
|
|
5301
|
-
const len6 =
|
|
5318
|
+
const len6 = data53.length;
|
|
5302
5319
|
for (let i6 = 0; i6 < len6; i6++) {
|
|
5303
|
-
const
|
|
5304
|
-
if (typeof
|
|
5320
|
+
const _errs121 = errors;
|
|
5321
|
+
if (typeof data53[i6] !== "string") {
|
|
5305
5322
|
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" }];
|
|
5306
5323
|
return false;
|
|
5307
5324
|
}
|
|
5308
|
-
var valid15 =
|
|
5325
|
+
var valid15 = _errs121 === errors;
|
|
5309
5326
|
if (!valid15) {
|
|
5310
5327
|
break;
|
|
5311
5328
|
}
|
|
@@ -5315,25 +5332,25 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
5315
5332
|
return false;
|
|
5316
5333
|
}
|
|
5317
5334
|
}
|
|
5318
|
-
var valid14 =
|
|
5335
|
+
var valid14 = _errs119 === errors;
|
|
5319
5336
|
} else {
|
|
5320
5337
|
var valid14 = true;
|
|
5321
5338
|
}
|
|
5322
5339
|
if (valid14) {
|
|
5323
|
-
if (
|
|
5324
|
-
let
|
|
5325
|
-
const
|
|
5326
|
-
if (errors ===
|
|
5327
|
-
if (Array.isArray(
|
|
5340
|
+
if (data51.globs !== void 0) {
|
|
5341
|
+
let data55 = data51.globs;
|
|
5342
|
+
const _errs123 = errors;
|
|
5343
|
+
if (errors === _errs123) {
|
|
5344
|
+
if (Array.isArray(data55)) {
|
|
5328
5345
|
var valid16 = true;
|
|
5329
|
-
const len7 =
|
|
5346
|
+
const len7 = data55.length;
|
|
5330
5347
|
for (let i7 = 0; i7 < len7; i7++) {
|
|
5331
|
-
const
|
|
5332
|
-
if (typeof
|
|
5348
|
+
const _errs125 = errors;
|
|
5349
|
+
if (typeof data55[i7] !== "string") {
|
|
5333
5350
|
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" }];
|
|
5334
5351
|
return false;
|
|
5335
5352
|
}
|
|
5336
|
-
var valid16 =
|
|
5353
|
+
var valid16 = _errs125 === errors;
|
|
5337
5354
|
if (!valid16) {
|
|
5338
5355
|
break;
|
|
5339
5356
|
}
|
|
@@ -5343,25 +5360,25 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
5343
5360
|
return false;
|
|
5344
5361
|
}
|
|
5345
5362
|
}
|
|
5346
|
-
var valid14 =
|
|
5363
|
+
var valid14 = _errs123 === errors;
|
|
5347
5364
|
} else {
|
|
5348
5365
|
var valid14 = true;
|
|
5349
5366
|
}
|
|
5350
5367
|
if (valid14) {
|
|
5351
|
-
if (
|
|
5352
|
-
let
|
|
5353
|
-
const
|
|
5354
|
-
if (errors ===
|
|
5355
|
-
if (Array.isArray(
|
|
5368
|
+
if (data51.branches !== void 0) {
|
|
5369
|
+
let data57 = data51.branches;
|
|
5370
|
+
const _errs127 = errors;
|
|
5371
|
+
if (errors === _errs127) {
|
|
5372
|
+
if (Array.isArray(data57)) {
|
|
5356
5373
|
var valid17 = true;
|
|
5357
|
-
const len8 =
|
|
5374
|
+
const len8 = data57.length;
|
|
5358
5375
|
for (let i8 = 0; i8 < len8; i8++) {
|
|
5359
|
-
const
|
|
5360
|
-
if (typeof
|
|
5376
|
+
const _errs129 = errors;
|
|
5377
|
+
if (typeof data57[i8] !== "string") {
|
|
5361
5378
|
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" }];
|
|
5362
5379
|
return false;
|
|
5363
5380
|
}
|
|
5364
|
-
var valid17 =
|
|
5381
|
+
var valid17 = _errs129 === errors;
|
|
5365
5382
|
if (!valid17) {
|
|
5366
5383
|
break;
|
|
5367
5384
|
}
|
|
@@ -5371,7 +5388,7 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
5371
5388
|
return false;
|
|
5372
5389
|
}
|
|
5373
5390
|
}
|
|
5374
|
-
var valid14 =
|
|
5391
|
+
var valid14 = _errs127 === errors;
|
|
5375
5392
|
} else {
|
|
5376
5393
|
var valid14 = true;
|
|
5377
5394
|
}
|
|
@@ -5384,62 +5401,62 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
5384
5401
|
return false;
|
|
5385
5402
|
}
|
|
5386
5403
|
}
|
|
5387
|
-
var valid13 =
|
|
5404
|
+
var valid13 = _errs114 === errors;
|
|
5388
5405
|
} else {
|
|
5389
5406
|
var valid13 = true;
|
|
5390
5407
|
}
|
|
5391
5408
|
if (valid13) {
|
|
5392
|
-
if (
|
|
5393
|
-
let
|
|
5394
|
-
const
|
|
5395
|
-
if (errors ===
|
|
5396
|
-
if (
|
|
5397
|
-
if (
|
|
5398
|
-
let
|
|
5399
|
-
const
|
|
5400
|
-
if (!(typeof
|
|
5409
|
+
if (data50.time !== void 0) {
|
|
5410
|
+
let data59 = data50.time;
|
|
5411
|
+
const _errs131 = errors;
|
|
5412
|
+
if (errors === _errs131) {
|
|
5413
|
+
if (data59 && typeof data59 == "object" && !Array.isArray(data59)) {
|
|
5414
|
+
if (data59.effectiveFrom !== void 0) {
|
|
5415
|
+
let data60 = data59.effectiveFrom;
|
|
5416
|
+
const _errs134 = errors;
|
|
5417
|
+
if (!(typeof data60 == "number" && (!(data60 % 1) && !isNaN(data60)) && isFinite(data60))) {
|
|
5401
5418
|
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" }];
|
|
5402
5419
|
return false;
|
|
5403
5420
|
}
|
|
5404
|
-
if (errors ===
|
|
5405
|
-
if (typeof
|
|
5406
|
-
if (
|
|
5421
|
+
if (errors === _errs134) {
|
|
5422
|
+
if (typeof data60 == "number" && isFinite(data60)) {
|
|
5423
|
+
if (data60 > 9007199254740991 || isNaN(data60)) {
|
|
5407
5424
|
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" }];
|
|
5408
5425
|
return false;
|
|
5409
5426
|
} else {
|
|
5410
|
-
if (
|
|
5427
|
+
if (data60 < -9007199254740991 || isNaN(data60)) {
|
|
5411
5428
|
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" }];
|
|
5412
5429
|
return false;
|
|
5413
5430
|
}
|
|
5414
5431
|
}
|
|
5415
5432
|
}
|
|
5416
5433
|
}
|
|
5417
|
-
var valid18 =
|
|
5434
|
+
var valid18 = _errs134 === errors;
|
|
5418
5435
|
} else {
|
|
5419
5436
|
var valid18 = true;
|
|
5420
5437
|
}
|
|
5421
5438
|
if (valid18) {
|
|
5422
|
-
if (
|
|
5423
|
-
let
|
|
5424
|
-
const
|
|
5425
|
-
if (!(typeof
|
|
5439
|
+
if (data59.effectiveUntil !== void 0) {
|
|
5440
|
+
let data61 = data59.effectiveUntil;
|
|
5441
|
+
const _errs136 = errors;
|
|
5442
|
+
if (!(typeof data61 == "number" && (!(data61 % 1) && !isNaN(data61)) && isFinite(data61))) {
|
|
5426
5443
|
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" }];
|
|
5427
5444
|
return false;
|
|
5428
5445
|
}
|
|
5429
|
-
if (errors ===
|
|
5430
|
-
if (typeof
|
|
5431
|
-
if (
|
|
5446
|
+
if (errors === _errs136) {
|
|
5447
|
+
if (typeof data61 == "number" && isFinite(data61)) {
|
|
5448
|
+
if (data61 > 9007199254740991 || isNaN(data61)) {
|
|
5432
5449
|
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" }];
|
|
5433
5450
|
return false;
|
|
5434
5451
|
} else {
|
|
5435
|
-
if (
|
|
5452
|
+
if (data61 < -9007199254740991 || isNaN(data61)) {
|
|
5436
5453
|
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" }];
|
|
5437
5454
|
return false;
|
|
5438
5455
|
}
|
|
5439
5456
|
}
|
|
5440
5457
|
}
|
|
5441
5458
|
}
|
|
5442
|
-
var valid18 =
|
|
5459
|
+
var valid18 = _errs136 === errors;
|
|
5443
5460
|
} else {
|
|
5444
5461
|
var valid18 = true;
|
|
5445
5462
|
}
|
|
@@ -5449,29 +5466,29 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
5449
5466
|
return false;
|
|
5450
5467
|
}
|
|
5451
5468
|
}
|
|
5452
|
-
var valid13 =
|
|
5469
|
+
var valid13 = _errs131 === errors;
|
|
5453
5470
|
} else {
|
|
5454
5471
|
var valid13 = true;
|
|
5455
5472
|
}
|
|
5456
5473
|
if (valid13) {
|
|
5457
|
-
if (
|
|
5458
|
-
let
|
|
5459
|
-
const
|
|
5460
|
-
if (errors ===
|
|
5461
|
-
if (Array.isArray(
|
|
5474
|
+
if (data50.users !== void 0) {
|
|
5475
|
+
let data62 = data50.users;
|
|
5476
|
+
const _errs138 = errors;
|
|
5477
|
+
if (errors === _errs138) {
|
|
5478
|
+
if (Array.isArray(data62)) {
|
|
5462
5479
|
var valid19 = true;
|
|
5463
|
-
const len9 =
|
|
5480
|
+
const len9 = data62.length;
|
|
5464
5481
|
for (let i9 = 0; i9 < len9; i9++) {
|
|
5465
|
-
let
|
|
5466
|
-
const
|
|
5467
|
-
const
|
|
5482
|
+
let data63 = data62[i9];
|
|
5483
|
+
const _errs140 = errors;
|
|
5484
|
+
const _errs141 = errors;
|
|
5468
5485
|
let valid20 = false;
|
|
5469
5486
|
let passing0 = null;
|
|
5470
|
-
const
|
|
5471
|
-
if (errors ===
|
|
5472
|
-
if (
|
|
5487
|
+
const _errs142 = errors;
|
|
5488
|
+
if (errors === _errs142) {
|
|
5489
|
+
if (data63 && typeof data63 == "object" && !Array.isArray(data63)) {
|
|
5473
5490
|
let missing7;
|
|
5474
|
-
if (
|
|
5491
|
+
if (data63.kind === void 0 && (missing7 = "kind") || data63.userId === void 0 && (missing7 = "userId") || data63.displayName === void 0 && (missing7 = "displayName")) {
|
|
5475
5492
|
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 + "'" };
|
|
5476
5493
|
if (vErrors === null) {
|
|
5477
5494
|
vErrors = [err4];
|
|
@@ -5480,8 +5497,8 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
5480
5497
|
}
|
|
5481
5498
|
errors++;
|
|
5482
5499
|
} else {
|
|
5483
|
-
const
|
|
5484
|
-
for (const key0 in
|
|
5500
|
+
const _errs144 = errors;
|
|
5501
|
+
for (const key0 in data63) {
|
|
5485
5502
|
if (!(key0 === "kind" || key0 === "userId" || key0 === "displayName")) {
|
|
5486
5503
|
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" };
|
|
5487
5504
|
if (vErrors === null) {
|
|
@@ -5493,11 +5510,11 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
5493
5510
|
break;
|
|
5494
5511
|
}
|
|
5495
5512
|
}
|
|
5496
|
-
if (
|
|
5497
|
-
if (
|
|
5498
|
-
let
|
|
5499
|
-
const
|
|
5500
|
-
if (typeof
|
|
5513
|
+
if (_errs144 === errors) {
|
|
5514
|
+
if (data63.kind !== void 0) {
|
|
5515
|
+
let data64 = data63.kind;
|
|
5516
|
+
const _errs145 = errors;
|
|
5517
|
+
if (typeof data64 !== "string") {
|
|
5501
5518
|
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" };
|
|
5502
5519
|
if (vErrors === null) {
|
|
5503
5520
|
vErrors = [err6];
|
|
@@ -5506,7 +5523,7 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
5506
5523
|
}
|
|
5507
5524
|
errors++;
|
|
5508
5525
|
}
|
|
5509
|
-
if ("user" !==
|
|
5526
|
+
if ("user" !== data64) {
|
|
5510
5527
|
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" };
|
|
5511
5528
|
if (vErrors === null) {
|
|
5512
5529
|
vErrors = [err7];
|
|
@@ -5515,17 +5532,17 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
5515
5532
|
}
|
|
5516
5533
|
errors++;
|
|
5517
5534
|
}
|
|
5518
|
-
var valid21 =
|
|
5535
|
+
var valid21 = _errs145 === errors;
|
|
5519
5536
|
} else {
|
|
5520
5537
|
var valid21 = true;
|
|
5521
5538
|
}
|
|
5522
5539
|
if (valid21) {
|
|
5523
|
-
if (
|
|
5524
|
-
let
|
|
5525
|
-
const
|
|
5526
|
-
if (errors ===
|
|
5527
|
-
if (typeof
|
|
5528
|
-
if (func1(
|
|
5540
|
+
if (data63.userId !== void 0) {
|
|
5541
|
+
let data65 = data63.userId;
|
|
5542
|
+
const _errs147 = errors;
|
|
5543
|
+
if (errors === _errs147) {
|
|
5544
|
+
if (typeof data65 === "string") {
|
|
5545
|
+
if (func1(data65) < 1) {
|
|
5529
5546
|
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" };
|
|
5530
5547
|
if (vErrors === null) {
|
|
5531
5548
|
vErrors = [err8];
|
|
@@ -5544,14 +5561,14 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
5544
5561
|
errors++;
|
|
5545
5562
|
}
|
|
5546
5563
|
}
|
|
5547
|
-
var valid21 =
|
|
5564
|
+
var valid21 = _errs147 === errors;
|
|
5548
5565
|
} else {
|
|
5549
5566
|
var valid21 = true;
|
|
5550
5567
|
}
|
|
5551
5568
|
if (valid21) {
|
|
5552
|
-
if (
|
|
5553
|
-
const
|
|
5554
|
-
if (typeof
|
|
5569
|
+
if (data63.displayName !== void 0) {
|
|
5570
|
+
const _errs149 = errors;
|
|
5571
|
+
if (typeof data63.displayName !== "string") {
|
|
5555
5572
|
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" };
|
|
5556
5573
|
if (vErrors === null) {
|
|
5557
5574
|
vErrors = [err10];
|
|
@@ -5560,7 +5577,7 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
5560
5577
|
}
|
|
5561
5578
|
errors++;
|
|
5562
5579
|
}
|
|
5563
|
-
var valid21 =
|
|
5580
|
+
var valid21 = _errs149 === errors;
|
|
5564
5581
|
} else {
|
|
5565
5582
|
var valid21 = true;
|
|
5566
5583
|
}
|
|
@@ -5578,17 +5595,17 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
5578
5595
|
errors++;
|
|
5579
5596
|
}
|
|
5580
5597
|
}
|
|
5581
|
-
var _valid1 =
|
|
5598
|
+
var _valid1 = _errs142 === errors;
|
|
5582
5599
|
if (_valid1) {
|
|
5583
5600
|
valid20 = true;
|
|
5584
5601
|
passing0 = 0;
|
|
5585
5602
|
var props0 = true;
|
|
5586
5603
|
}
|
|
5587
|
-
const
|
|
5588
|
-
if (errors ===
|
|
5589
|
-
if (
|
|
5604
|
+
const _errs151 = errors;
|
|
5605
|
+
if (errors === _errs151) {
|
|
5606
|
+
if (data63 && typeof data63 == "object" && !Array.isArray(data63)) {
|
|
5590
5607
|
let missing8;
|
|
5591
|
-
if (
|
|
5608
|
+
if (data63.kind === void 0 && (missing8 = "kind") || data63.role === void 0 && (missing8 = "role")) {
|
|
5592
5609
|
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 + "'" };
|
|
5593
5610
|
if (vErrors === null) {
|
|
5594
5611
|
vErrors = [err12];
|
|
@@ -5597,8 +5614,8 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
5597
5614
|
}
|
|
5598
5615
|
errors++;
|
|
5599
5616
|
} else {
|
|
5600
|
-
const
|
|
5601
|
-
for (const key1 in
|
|
5617
|
+
const _errs153 = errors;
|
|
5618
|
+
for (const key1 in data63) {
|
|
5602
5619
|
if (!(key1 === "kind" || key1 === "role")) {
|
|
5603
5620
|
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" };
|
|
5604
5621
|
if (vErrors === null) {
|
|
@@ -5610,11 +5627,11 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
5610
5627
|
break;
|
|
5611
5628
|
}
|
|
5612
5629
|
}
|
|
5613
|
-
if (
|
|
5614
|
-
if (
|
|
5615
|
-
let
|
|
5616
|
-
const
|
|
5617
|
-
if (typeof
|
|
5630
|
+
if (_errs153 === errors) {
|
|
5631
|
+
if (data63.kind !== void 0) {
|
|
5632
|
+
let data67 = data63.kind;
|
|
5633
|
+
const _errs154 = errors;
|
|
5634
|
+
if (typeof data67 !== "string") {
|
|
5618
5635
|
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" };
|
|
5619
5636
|
if (vErrors === null) {
|
|
5620
5637
|
vErrors = [err14];
|
|
@@ -5623,7 +5640,7 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
5623
5640
|
}
|
|
5624
5641
|
errors++;
|
|
5625
5642
|
}
|
|
5626
|
-
if ("role" !==
|
|
5643
|
+
if ("role" !== data67) {
|
|
5627
5644
|
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" };
|
|
5628
5645
|
if (vErrors === null) {
|
|
5629
5646
|
vErrors = [err15];
|
|
@@ -5632,15 +5649,15 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
5632
5649
|
}
|
|
5633
5650
|
errors++;
|
|
5634
5651
|
}
|
|
5635
|
-
var valid22 =
|
|
5652
|
+
var valid22 = _errs154 === errors;
|
|
5636
5653
|
} else {
|
|
5637
5654
|
var valid22 = true;
|
|
5638
5655
|
}
|
|
5639
5656
|
if (valid22) {
|
|
5640
|
-
if (
|
|
5641
|
-
let
|
|
5642
|
-
const
|
|
5643
|
-
if (typeof
|
|
5657
|
+
if (data63.role !== void 0) {
|
|
5658
|
+
let data68 = data63.role;
|
|
5659
|
+
const _errs156 = errors;
|
|
5660
|
+
if (typeof data68 !== "string") {
|
|
5644
5661
|
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" };
|
|
5645
5662
|
if (vErrors === null) {
|
|
5646
5663
|
vErrors = [err16];
|
|
@@ -5649,7 +5666,7 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
5649
5666
|
}
|
|
5650
5667
|
errors++;
|
|
5651
5668
|
}
|
|
5652
|
-
if (!(
|
|
5669
|
+
if (!(data68 === "owner" || data68 === "admin" || data68 === "member")) {
|
|
5653
5670
|
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" };
|
|
5654
5671
|
if (vErrors === null) {
|
|
5655
5672
|
vErrors = [err17];
|
|
@@ -5658,7 +5675,7 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
5658
5675
|
}
|
|
5659
5676
|
errors++;
|
|
5660
5677
|
}
|
|
5661
|
-
var valid22 =
|
|
5678
|
+
var valid22 = _errs156 === errors;
|
|
5662
5679
|
} else {
|
|
5663
5680
|
var valid22 = true;
|
|
5664
5681
|
}
|
|
@@ -5675,7 +5692,7 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
5675
5692
|
errors++;
|
|
5676
5693
|
}
|
|
5677
5694
|
}
|
|
5678
|
-
var _valid1 =
|
|
5695
|
+
var _valid1 = _errs151 === errors;
|
|
5679
5696
|
if (_valid1 && valid20) {
|
|
5680
5697
|
valid20 = false;
|
|
5681
5698
|
passing0 = [passing0, 1];
|
|
@@ -5687,11 +5704,11 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
5687
5704
|
props0 = true;
|
|
5688
5705
|
}
|
|
5689
5706
|
}
|
|
5690
|
-
const
|
|
5691
|
-
if (errors ===
|
|
5692
|
-
if (
|
|
5707
|
+
const _errs158 = errors;
|
|
5708
|
+
if (errors === _errs158) {
|
|
5709
|
+
if (data63 && typeof data63 == "object" && !Array.isArray(data63)) {
|
|
5693
5710
|
let missing9;
|
|
5694
|
-
if (
|
|
5711
|
+
if (data63.kind === void 0 && (missing9 = "kind") || data63.agent === void 0 && (missing9 = "agent")) {
|
|
5695
5712
|
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 + "'" };
|
|
5696
5713
|
if (vErrors === null) {
|
|
5697
5714
|
vErrors = [err19];
|
|
@@ -5700,8 +5717,8 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
5700
5717
|
}
|
|
5701
5718
|
errors++;
|
|
5702
5719
|
} else {
|
|
5703
|
-
const
|
|
5704
|
-
for (const key2 in
|
|
5720
|
+
const _errs160 = errors;
|
|
5721
|
+
for (const key2 in data63) {
|
|
5705
5722
|
if (!(key2 === "kind" || key2 === "agent")) {
|
|
5706
5723
|
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" };
|
|
5707
5724
|
if (vErrors === null) {
|
|
@@ -5713,11 +5730,11 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
5713
5730
|
break;
|
|
5714
5731
|
}
|
|
5715
5732
|
}
|
|
5716
|
-
if (
|
|
5717
|
-
if (
|
|
5718
|
-
let
|
|
5719
|
-
const
|
|
5720
|
-
if (typeof
|
|
5733
|
+
if (_errs160 === errors) {
|
|
5734
|
+
if (data63.kind !== void 0) {
|
|
5735
|
+
let data69 = data63.kind;
|
|
5736
|
+
const _errs161 = errors;
|
|
5737
|
+
if (typeof data69 !== "string") {
|
|
5721
5738
|
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" };
|
|
5722
5739
|
if (vErrors === null) {
|
|
5723
5740
|
vErrors = [err21];
|
|
@@ -5726,7 +5743,7 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
5726
5743
|
}
|
|
5727
5744
|
errors++;
|
|
5728
5745
|
}
|
|
5729
|
-
if ("agent" !==
|
|
5746
|
+
if ("agent" !== data69) {
|
|
5730
5747
|
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" };
|
|
5731
5748
|
if (vErrors === null) {
|
|
5732
5749
|
vErrors = [err22];
|
|
@@ -5735,15 +5752,15 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
5735
5752
|
}
|
|
5736
5753
|
errors++;
|
|
5737
5754
|
}
|
|
5738
|
-
var valid23 =
|
|
5755
|
+
var valid23 = _errs161 === errors;
|
|
5739
5756
|
} else {
|
|
5740
5757
|
var valid23 = true;
|
|
5741
5758
|
}
|
|
5742
5759
|
if (valid23) {
|
|
5743
|
-
if (
|
|
5744
|
-
let
|
|
5745
|
-
const
|
|
5746
|
-
if (typeof
|
|
5760
|
+
if (data63.agent !== void 0) {
|
|
5761
|
+
let data70 = data63.agent;
|
|
5762
|
+
const _errs163 = errors;
|
|
5763
|
+
if (typeof data70 !== "string") {
|
|
5747
5764
|
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" };
|
|
5748
5765
|
if (vErrors === null) {
|
|
5749
5766
|
vErrors = [err23];
|
|
@@ -5752,7 +5769,7 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
5752
5769
|
}
|
|
5753
5770
|
errors++;
|
|
5754
5771
|
}
|
|
5755
|
-
if (!(
|
|
5772
|
+
if (!(data70 === "claude_code" || data70 === "codex" || data70 === "hermes")) {
|
|
5756
5773
|
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" };
|
|
5757
5774
|
if (vErrors === null) {
|
|
5758
5775
|
vErrors = [err24];
|
|
@@ -5761,7 +5778,7 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
5761
5778
|
}
|
|
5762
5779
|
errors++;
|
|
5763
5780
|
}
|
|
5764
|
-
var valid23 =
|
|
5781
|
+
var valid23 = _errs163 === errors;
|
|
5765
5782
|
} else {
|
|
5766
5783
|
var valid23 = true;
|
|
5767
5784
|
}
|
|
@@ -5778,7 +5795,7 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
5778
5795
|
errors++;
|
|
5779
5796
|
}
|
|
5780
5797
|
}
|
|
5781
|
-
var _valid1 =
|
|
5798
|
+
var _valid1 = _errs158 === errors;
|
|
5782
5799
|
if (_valid1 && valid20) {
|
|
5783
5800
|
valid20 = false;
|
|
5784
5801
|
passing0 = [passing0, 2];
|
|
@@ -5790,11 +5807,11 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
5790
5807
|
props0 = true;
|
|
5791
5808
|
}
|
|
5792
5809
|
}
|
|
5793
|
-
const
|
|
5794
|
-
if (errors ===
|
|
5795
|
-
if (
|
|
5810
|
+
const _errs165 = errors;
|
|
5811
|
+
if (errors === _errs165) {
|
|
5812
|
+
if (data63 && typeof data63 == "object" && !Array.isArray(data63)) {
|
|
5796
5813
|
let missing10;
|
|
5797
|
-
if (
|
|
5814
|
+
if (data63.kind === void 0 && (missing10 = "kind") || data63.credential === void 0 && (missing10 = "credential")) {
|
|
5798
5815
|
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 + "'" };
|
|
5799
5816
|
if (vErrors === null) {
|
|
5800
5817
|
vErrors = [err26];
|
|
@@ -5803,8 +5820,8 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
5803
5820
|
}
|
|
5804
5821
|
errors++;
|
|
5805
5822
|
} else {
|
|
5806
|
-
const
|
|
5807
|
-
for (const key3 in
|
|
5823
|
+
const _errs167 = errors;
|
|
5824
|
+
for (const key3 in data63) {
|
|
5808
5825
|
if (!(key3 === "kind" || key3 === "credential")) {
|
|
5809
5826
|
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" };
|
|
5810
5827
|
if (vErrors === null) {
|
|
@@ -5816,11 +5833,11 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
5816
5833
|
break;
|
|
5817
5834
|
}
|
|
5818
5835
|
}
|
|
5819
|
-
if (
|
|
5820
|
-
if (
|
|
5821
|
-
let
|
|
5822
|
-
const
|
|
5823
|
-
if (typeof
|
|
5836
|
+
if (_errs167 === errors) {
|
|
5837
|
+
if (data63.kind !== void 0) {
|
|
5838
|
+
let data71 = data63.kind;
|
|
5839
|
+
const _errs168 = errors;
|
|
5840
|
+
if (typeof data71 !== "string") {
|
|
5824
5841
|
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" };
|
|
5825
5842
|
if (vErrors === null) {
|
|
5826
5843
|
vErrors = [err28];
|
|
@@ -5829,7 +5846,7 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
5829
5846
|
}
|
|
5830
5847
|
errors++;
|
|
5831
5848
|
}
|
|
5832
|
-
if ("credential" !==
|
|
5849
|
+
if ("credential" !== data71) {
|
|
5833
5850
|
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" };
|
|
5834
5851
|
if (vErrors === null) {
|
|
5835
5852
|
vErrors = [err29];
|
|
@@ -5838,15 +5855,15 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
5838
5855
|
}
|
|
5839
5856
|
errors++;
|
|
5840
5857
|
}
|
|
5841
|
-
var valid24 =
|
|
5858
|
+
var valid24 = _errs168 === errors;
|
|
5842
5859
|
} else {
|
|
5843
5860
|
var valid24 = true;
|
|
5844
5861
|
}
|
|
5845
5862
|
if (valid24) {
|
|
5846
|
-
if (
|
|
5847
|
-
let
|
|
5848
|
-
const
|
|
5849
|
-
if (typeof
|
|
5863
|
+
if (data63.credential !== void 0) {
|
|
5864
|
+
let data72 = data63.credential;
|
|
5865
|
+
const _errs170 = errors;
|
|
5866
|
+
if (typeof data72 !== "string") {
|
|
5850
5867
|
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" };
|
|
5851
5868
|
if (vErrors === null) {
|
|
5852
5869
|
vErrors = [err30];
|
|
@@ -5855,7 +5872,7 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
5855
5872
|
}
|
|
5856
5873
|
errors++;
|
|
5857
5874
|
}
|
|
5858
|
-
if (!(
|
|
5875
|
+
if (!(data72 === "workos_jwt" || data72 === "workos_api_key" || data72 === "service_token")) {
|
|
5859
5876
|
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" };
|
|
5860
5877
|
if (vErrors === null) {
|
|
5861
5878
|
vErrors = [err31];
|
|
@@ -5864,7 +5881,7 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
5864
5881
|
}
|
|
5865
5882
|
errors++;
|
|
5866
5883
|
}
|
|
5867
|
-
var valid24 =
|
|
5884
|
+
var valid24 = _errs170 === errors;
|
|
5868
5885
|
} else {
|
|
5869
5886
|
var valid24 = true;
|
|
5870
5887
|
}
|
|
@@ -5881,7 +5898,7 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
5881
5898
|
errors++;
|
|
5882
5899
|
}
|
|
5883
5900
|
}
|
|
5884
|
-
var _valid1 =
|
|
5901
|
+
var _valid1 = _errs165 === errors;
|
|
5885
5902
|
if (_valid1 && valid20) {
|
|
5886
5903
|
valid20 = false;
|
|
5887
5904
|
passing0 = [passing0, 3];
|
|
@@ -5907,16 +5924,16 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
5907
5924
|
validate29.errors = vErrors;
|
|
5908
5925
|
return false;
|
|
5909
5926
|
} else {
|
|
5910
|
-
errors =
|
|
5927
|
+
errors = _errs141;
|
|
5911
5928
|
if (vErrors !== null) {
|
|
5912
|
-
if (
|
|
5913
|
-
vErrors.length =
|
|
5929
|
+
if (_errs141) {
|
|
5930
|
+
vErrors.length = _errs141;
|
|
5914
5931
|
} else {
|
|
5915
5932
|
vErrors = null;
|
|
5916
5933
|
}
|
|
5917
5934
|
}
|
|
5918
5935
|
}
|
|
5919
|
-
var valid19 =
|
|
5936
|
+
var valid19 = _errs140 === errors;
|
|
5920
5937
|
if (!valid19) {
|
|
5921
5938
|
break;
|
|
5922
5939
|
}
|
|
@@ -5926,7 +5943,7 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
5926
5943
|
return false;
|
|
5927
5944
|
}
|
|
5928
5945
|
}
|
|
5929
|
-
var valid13 =
|
|
5946
|
+
var valid13 = _errs138 === errors;
|
|
5930
5947
|
} else {
|
|
5931
5948
|
var valid13 = true;
|
|
5932
5949
|
}
|
|
@@ -5938,18 +5955,18 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
5938
5955
|
return false;
|
|
5939
5956
|
}
|
|
5940
5957
|
}
|
|
5941
|
-
var valid1 =
|
|
5958
|
+
var valid1 = _errs111 === errors;
|
|
5942
5959
|
} else {
|
|
5943
5960
|
var valid1 = true;
|
|
5944
5961
|
}
|
|
5945
5962
|
if (valid1) {
|
|
5946
5963
|
if (data.truncated !== void 0) {
|
|
5947
|
-
const
|
|
5964
|
+
const _errs172 = errors;
|
|
5948
5965
|
if (typeof data.truncated !== "boolean") {
|
|
5949
5966
|
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" }];
|
|
5950
5967
|
return false;
|
|
5951
5968
|
}
|
|
5952
|
-
var valid1 =
|
|
5969
|
+
var valid1 = _errs172 === errors;
|
|
5953
5970
|
} else {
|
|
5954
5971
|
var valid1 = true;
|
|
5955
5972
|
}
|