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