@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
|
@@ -5506,7 +5506,7 @@ function validate28(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
5506
5506
|
return errors === 0;
|
|
5507
5507
|
}
|
|
5508
5508
|
validate28.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
|
|
5509
|
-
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": {} };
|
|
5509
|
+
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": {} };
|
|
5510
5510
|
function validate29(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
5511
5511
|
;
|
|
5512
5512
|
let vErrors = null;
|
|
@@ -5532,7 +5532,7 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
5532
5532
|
if (errors === _errs3) {
|
|
5533
5533
|
if (data0 && typeof data0 == "object" && !Array.isArray(data0)) {
|
|
5534
5534
|
let missing1;
|
|
5535
|
-
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")) {
|
|
5535
|
+
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")) {
|
|
5536
5536
|
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 + "'" }];
|
|
5537
5537
|
return false;
|
|
5538
5538
|
} else {
|
|
@@ -5682,15 +5682,15 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
5682
5682
|
var valid2 = true;
|
|
5683
5683
|
}
|
|
5684
5684
|
if (valid2) {
|
|
5685
|
-
if (data0.
|
|
5686
|
-
let data12 = data0.
|
|
5685
|
+
if (data0.stage !== void 0) {
|
|
5686
|
+
let data12 = data0.stage;
|
|
5687
5687
|
const _errs28 = errors;
|
|
5688
5688
|
if (typeof data12 !== "string") {
|
|
5689
|
-
validate29.errors = [{ instancePath: instancePath + "/decision/
|
|
5689
|
+
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" }];
|
|
5690
5690
|
return false;
|
|
5691
5691
|
}
|
|
5692
|
-
if (!(data12 === "
|
|
5693
|
-
validate29.errors = [{ instancePath: instancePath + "/decision/
|
|
5692
|
+
if (!(data12 === "draft" || data12 === "provisional" || data12 === "adopted" || data12 === "superseded" || data12 === "abandoned")) {
|
|
5693
|
+
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" }];
|
|
5694
5694
|
return false;
|
|
5695
5695
|
}
|
|
5696
5696
|
var valid2 = _errs28 === errors;
|
|
@@ -5698,97 +5698,97 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
5698
5698
|
var valid2 = true;
|
|
5699
5699
|
}
|
|
5700
5700
|
if (valid2) {
|
|
5701
|
-
if (data0.
|
|
5702
|
-
let data13 = data0.
|
|
5701
|
+
if (data0.status !== void 0) {
|
|
5702
|
+
let data13 = data0.status;
|
|
5703
5703
|
const _errs30 = errors;
|
|
5704
|
-
|
|
5705
|
-
|
|
5706
|
-
|
|
5707
|
-
|
|
5708
|
-
|
|
5709
|
-
|
|
5710
|
-
|
|
5704
|
+
if (typeof data13 !== "string") {
|
|
5705
|
+
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" }];
|
|
5706
|
+
return false;
|
|
5707
|
+
}
|
|
5708
|
+
if (!(data13 === "active" || data13 === "superseded" || data13 === "under_review")) {
|
|
5709
|
+
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" }];
|
|
5710
|
+
return false;
|
|
5711
|
+
}
|
|
5712
|
+
var valid2 = _errs30 === errors;
|
|
5713
|
+
} else {
|
|
5714
|
+
var valid2 = true;
|
|
5715
|
+
}
|
|
5716
|
+
if (valid2) {
|
|
5717
|
+
if (data0.supersededBy !== void 0) {
|
|
5718
|
+
let data14 = data0.supersededBy;
|
|
5719
|
+
const _errs32 = errors;
|
|
5720
|
+
const _errs33 = errors;
|
|
5721
|
+
let valid5 = false;
|
|
5722
|
+
const _errs34 = errors;
|
|
5723
|
+
if (errors === _errs34) {
|
|
5724
|
+
if (typeof data14 === "string") {
|
|
5725
|
+
if (func1(data14) < 1) {
|
|
5726
|
+
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" };
|
|
5727
|
+
if (vErrors === null) {
|
|
5728
|
+
vErrors = [err0];
|
|
5729
|
+
} else {
|
|
5730
|
+
vErrors.push(err0);
|
|
5731
|
+
}
|
|
5732
|
+
errors++;
|
|
5733
|
+
}
|
|
5734
|
+
} else {
|
|
5735
|
+
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" };
|
|
5711
5736
|
if (vErrors === null) {
|
|
5712
|
-
vErrors = [
|
|
5737
|
+
vErrors = [err1];
|
|
5713
5738
|
} else {
|
|
5714
|
-
vErrors.push(
|
|
5739
|
+
vErrors.push(err1);
|
|
5715
5740
|
}
|
|
5716
5741
|
errors++;
|
|
5717
5742
|
}
|
|
5718
|
-
}
|
|
5719
|
-
|
|
5743
|
+
}
|
|
5744
|
+
var _valid0 = _errs34 === errors;
|
|
5745
|
+
valid5 = valid5 || _valid0;
|
|
5746
|
+
const _errs36 = errors;
|
|
5747
|
+
if (data14 !== null) {
|
|
5748
|
+
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" };
|
|
5720
5749
|
if (vErrors === null) {
|
|
5721
|
-
vErrors = [
|
|
5750
|
+
vErrors = [err2];
|
|
5722
5751
|
} else {
|
|
5723
|
-
vErrors.push(
|
|
5752
|
+
vErrors.push(err2);
|
|
5724
5753
|
}
|
|
5725
5754
|
errors++;
|
|
5726
5755
|
}
|
|
5727
|
-
|
|
5728
|
-
|
|
5729
|
-
|
|
5730
|
-
|
|
5731
|
-
|
|
5732
|
-
|
|
5733
|
-
if (vErrors === null) {
|
|
5734
|
-
vErrors = [err2];
|
|
5735
|
-
} else {
|
|
5736
|
-
vErrors.push(err2);
|
|
5737
|
-
}
|
|
5738
|
-
errors++;
|
|
5739
|
-
}
|
|
5740
|
-
var _valid0 = _errs34 === errors;
|
|
5741
|
-
valid5 = valid5 || _valid0;
|
|
5742
|
-
if (!valid5) {
|
|
5743
|
-
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" };
|
|
5744
|
-
if (vErrors === null) {
|
|
5745
|
-
vErrors = [err3];
|
|
5746
|
-
} else {
|
|
5747
|
-
vErrors.push(err3);
|
|
5748
|
-
}
|
|
5749
|
-
errors++;
|
|
5750
|
-
validate29.errors = vErrors;
|
|
5751
|
-
return false;
|
|
5752
|
-
} else {
|
|
5753
|
-
errors = _errs31;
|
|
5754
|
-
if (vErrors !== null) {
|
|
5755
|
-
if (_errs31) {
|
|
5756
|
-
vErrors.length = _errs31;
|
|
5756
|
+
var _valid0 = _errs36 === errors;
|
|
5757
|
+
valid5 = valid5 || _valid0;
|
|
5758
|
+
if (!valid5) {
|
|
5759
|
+
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" };
|
|
5760
|
+
if (vErrors === null) {
|
|
5761
|
+
vErrors = [err3];
|
|
5757
5762
|
} else {
|
|
5758
|
-
vErrors
|
|
5763
|
+
vErrors.push(err3);
|
|
5759
5764
|
}
|
|
5760
|
-
|
|
5761
|
-
|
|
5762
|
-
var valid2 = _errs30 === errors;
|
|
5763
|
-
} else {
|
|
5764
|
-
var valid2 = true;
|
|
5765
|
-
}
|
|
5766
|
-
if (valid2) {
|
|
5767
|
-
if (data0.confidence !== void 0) {
|
|
5768
|
-
let data14 = data0.confidence;
|
|
5769
|
-
const _errs36 = errors;
|
|
5770
|
-
if (typeof data14 !== "string") {
|
|
5771
|
-
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" }];
|
|
5772
|
-
return false;
|
|
5773
|
-
}
|
|
5774
|
-
if (!(data14 === "high" || data14 === "medium" || data14 === "low")) {
|
|
5775
|
-
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" }];
|
|
5765
|
+
errors++;
|
|
5766
|
+
validate29.errors = vErrors;
|
|
5776
5767
|
return false;
|
|
5768
|
+
} else {
|
|
5769
|
+
errors = _errs33;
|
|
5770
|
+
if (vErrors !== null) {
|
|
5771
|
+
if (_errs33) {
|
|
5772
|
+
vErrors.length = _errs33;
|
|
5773
|
+
} else {
|
|
5774
|
+
vErrors = null;
|
|
5775
|
+
}
|
|
5776
|
+
}
|
|
5777
5777
|
}
|
|
5778
|
-
var valid2 =
|
|
5778
|
+
var valid2 = _errs32 === errors;
|
|
5779
5779
|
} else {
|
|
5780
5780
|
var valid2 = true;
|
|
5781
5781
|
}
|
|
5782
5782
|
if (valid2) {
|
|
5783
|
-
if (data0.
|
|
5784
|
-
let data15 = data0.
|
|
5783
|
+
if (data0.confidence !== void 0) {
|
|
5784
|
+
let data15 = data0.confidence;
|
|
5785
5785
|
const _errs38 = errors;
|
|
5786
5786
|
if (typeof data15 !== "string") {
|
|
5787
|
-
validate29.errors = [{ instancePath: instancePath + "/decision/
|
|
5787
|
+
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" }];
|
|
5788
5788
|
return false;
|
|
5789
5789
|
}
|
|
5790
|
-
if (!(data15 === "high" || data15 === "low")) {
|
|
5791
|
-
validate29.errors = [{ instancePath: instancePath + "/decision/
|
|
5790
|
+
if (!(data15 === "high" || data15 === "medium" || data15 === "low")) {
|
|
5791
|
+
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" }];
|
|
5792
5792
|
return false;
|
|
5793
5793
|
}
|
|
5794
5794
|
var valid2 = _errs38 === errors;
|
|
@@ -5796,10 +5796,15 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
5796
5796
|
var valid2 = true;
|
|
5797
5797
|
}
|
|
5798
5798
|
if (valid2) {
|
|
5799
|
-
if (data0.
|
|
5799
|
+
if (data0.reversibility !== void 0) {
|
|
5800
|
+
let data16 = data0.reversibility;
|
|
5800
5801
|
const _errs40 = errors;
|
|
5801
|
-
if (typeof
|
|
5802
|
-
validate29.errors = [{ instancePath: instancePath + "/decision/
|
|
5802
|
+
if (typeof data16 !== "string") {
|
|
5803
|
+
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" }];
|
|
5804
|
+
return false;
|
|
5805
|
+
}
|
|
5806
|
+
if (!(data16 === "high" || data16 === "low")) {
|
|
5807
|
+
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" }];
|
|
5803
5808
|
return false;
|
|
5804
5809
|
}
|
|
5805
5810
|
var valid2 = _errs40 === errors;
|
|
@@ -5807,11 +5812,10 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
5807
5812
|
var valid2 = true;
|
|
5808
5813
|
}
|
|
5809
5814
|
if (valid2) {
|
|
5810
|
-
if (data0.
|
|
5811
|
-
let data17 = data0.respondedAt;
|
|
5815
|
+
if (data0.confirmed !== void 0) {
|
|
5812
5816
|
const _errs42 = errors;
|
|
5813
|
-
if (
|
|
5814
|
-
validate29.errors = [{ instancePath: instancePath + "/decision/
|
|
5817
|
+
if (typeof data0.confirmed !== "boolean") {
|
|
5818
|
+
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" }];
|
|
5815
5819
|
return false;
|
|
5816
5820
|
}
|
|
5817
5821
|
var valid2 = _errs42 === errors;
|
|
@@ -5819,11 +5823,11 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
5819
5823
|
var valid2 = true;
|
|
5820
5824
|
}
|
|
5821
5825
|
if (valid2) {
|
|
5822
|
-
if (data0.
|
|
5823
|
-
let data18 = data0.
|
|
5826
|
+
if (data0.respondedAt !== void 0) {
|
|
5827
|
+
let data18 = data0.respondedAt;
|
|
5824
5828
|
const _errs44 = errors;
|
|
5825
5829
|
if (!(typeof data18 == "number" && isFinite(data18))) {
|
|
5826
|
-
validate29.errors = [{ instancePath: instancePath + "/decision/
|
|
5830
|
+
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" }];
|
|
5827
5831
|
return false;
|
|
5828
5832
|
}
|
|
5829
5833
|
var valid2 = _errs44 === errors;
|
|
@@ -5831,11 +5835,11 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
5831
5835
|
var valid2 = true;
|
|
5832
5836
|
}
|
|
5833
5837
|
if (valid2) {
|
|
5834
|
-
if (data0.
|
|
5835
|
-
let data19 = data0.
|
|
5838
|
+
if (data0.fanOut !== void 0) {
|
|
5839
|
+
let data19 = data0.fanOut;
|
|
5836
5840
|
const _errs46 = errors;
|
|
5837
5841
|
if (!(typeof data19 == "number" && isFinite(data19))) {
|
|
5838
|
-
validate29.errors = [{ instancePath: instancePath + "/decision/
|
|
5842
|
+
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" }];
|
|
5839
5843
|
return false;
|
|
5840
5844
|
}
|
|
5841
5845
|
var valid2 = _errs46 === errors;
|
|
@@ -5843,16 +5847,29 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
5843
5847
|
var valid2 = true;
|
|
5844
5848
|
}
|
|
5845
5849
|
if (valid2) {
|
|
5846
|
-
if (data0.
|
|
5850
|
+
if (data0.classifiedAt !== void 0) {
|
|
5851
|
+
let data20 = data0.classifiedAt;
|
|
5847
5852
|
const _errs48 = errors;
|
|
5848
|
-
if (typeof
|
|
5849
|
-
validate29.errors = [{ instancePath: instancePath + "/decision/
|
|
5853
|
+
if (!(typeof data20 == "number" && isFinite(data20))) {
|
|
5854
|
+
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" }];
|
|
5850
5855
|
return false;
|
|
5851
5856
|
}
|
|
5852
5857
|
var valid2 = _errs48 === errors;
|
|
5853
5858
|
} else {
|
|
5854
5859
|
var valid2 = true;
|
|
5855
5860
|
}
|
|
5861
|
+
if (valid2) {
|
|
5862
|
+
if (data0.authorName !== void 0) {
|
|
5863
|
+
const _errs50 = errors;
|
|
5864
|
+
if (typeof data0.authorName !== "string") {
|
|
5865
|
+
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" }];
|
|
5866
|
+
return false;
|
|
5867
|
+
}
|
|
5868
|
+
var valid2 = _errs50 === errors;
|
|
5869
|
+
} else {
|
|
5870
|
+
var valid2 = true;
|
|
5871
|
+
}
|
|
5872
|
+
}
|
|
5856
5873
|
}
|
|
5857
5874
|
}
|
|
5858
5875
|
}
|
|
@@ -5882,19 +5899,19 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
5882
5899
|
}
|
|
5883
5900
|
if (valid1) {
|
|
5884
5901
|
if (data.files !== void 0) {
|
|
5885
|
-
let
|
|
5886
|
-
const
|
|
5887
|
-
if (errors ===
|
|
5888
|
-
if (Array.isArray(
|
|
5902
|
+
let data22 = data.files;
|
|
5903
|
+
const _errs52 = errors;
|
|
5904
|
+
if (errors === _errs52) {
|
|
5905
|
+
if (Array.isArray(data22)) {
|
|
5889
5906
|
var valid6 = true;
|
|
5890
|
-
const len2 =
|
|
5907
|
+
const len2 = data22.length;
|
|
5891
5908
|
for (let i2 = 0; i2 < len2; i2++) {
|
|
5892
|
-
const
|
|
5893
|
-
if (typeof
|
|
5909
|
+
const _errs54 = errors;
|
|
5910
|
+
if (typeof data22[i2] !== "string") {
|
|
5894
5911
|
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" }];
|
|
5895
5912
|
return false;
|
|
5896
5913
|
}
|
|
5897
|
-
var valid6 =
|
|
5914
|
+
var valid6 = _errs54 === errors;
|
|
5898
5915
|
if (!valid6) {
|
|
5899
5916
|
break;
|
|
5900
5917
|
}
|
|
@@ -5904,97 +5921,97 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
5904
5921
|
return false;
|
|
5905
5922
|
}
|
|
5906
5923
|
}
|
|
5907
|
-
var valid1 =
|
|
5924
|
+
var valid1 = _errs52 === errors;
|
|
5908
5925
|
} else {
|
|
5909
5926
|
var valid1 = true;
|
|
5910
5927
|
}
|
|
5911
5928
|
if (valid1) {
|
|
5912
5929
|
if (data.flags !== void 0) {
|
|
5913
|
-
let
|
|
5914
|
-
const
|
|
5915
|
-
if (errors ===
|
|
5916
|
-
if (Array.isArray(
|
|
5930
|
+
let data24 = data.flags;
|
|
5931
|
+
const _errs56 = errors;
|
|
5932
|
+
if (errors === _errs56) {
|
|
5933
|
+
if (Array.isArray(data24)) {
|
|
5917
5934
|
var valid7 = true;
|
|
5918
|
-
const len3 =
|
|
5935
|
+
const len3 = data24.length;
|
|
5919
5936
|
for (let i3 = 0; i3 < len3; i3++) {
|
|
5920
|
-
let
|
|
5921
|
-
const
|
|
5922
|
-
if (errors ===
|
|
5923
|
-
if (
|
|
5937
|
+
let data25 = data24[i3];
|
|
5938
|
+
const _errs58 = errors;
|
|
5939
|
+
if (errors === _errs58) {
|
|
5940
|
+
if (data25 && typeof data25 == "object" && !Array.isArray(data25)) {
|
|
5924
5941
|
let missing2;
|
|
5925
|
-
if (
|
|
5942
|
+
if (data25.type === void 0 && (missing2 = "type") || data25.flaggedAt === void 0 && (missing2 = "flaggedAt")) {
|
|
5926
5943
|
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 + "'" }];
|
|
5927
5944
|
return false;
|
|
5928
5945
|
} else {
|
|
5929
|
-
if (
|
|
5930
|
-
let
|
|
5931
|
-
const
|
|
5932
|
-
if (typeof
|
|
5946
|
+
if (data25.type !== void 0) {
|
|
5947
|
+
let data26 = data25.type;
|
|
5948
|
+
const _errs61 = errors;
|
|
5949
|
+
if (typeof data26 !== "string") {
|
|
5933
5950
|
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" }];
|
|
5934
5951
|
return false;
|
|
5935
5952
|
}
|
|
5936
|
-
if (!(
|
|
5953
|
+
if (!(data26 === "file_edit" || data26 === "supersession" || data26 === "invalidation" || data26 === "confirmation_request")) {
|
|
5937
5954
|
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" }];
|
|
5938
5955
|
return false;
|
|
5939
5956
|
}
|
|
5940
|
-
var valid8 =
|
|
5957
|
+
var valid8 = _errs61 === errors;
|
|
5941
5958
|
} else {
|
|
5942
5959
|
var valid8 = true;
|
|
5943
5960
|
}
|
|
5944
5961
|
if (valid8) {
|
|
5945
|
-
if (
|
|
5946
|
-
const
|
|
5947
|
-
if (typeof
|
|
5962
|
+
if (data25.file !== void 0) {
|
|
5963
|
+
const _errs63 = errors;
|
|
5964
|
+
if (typeof data25.file !== "string") {
|
|
5948
5965
|
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" }];
|
|
5949
5966
|
return false;
|
|
5950
5967
|
}
|
|
5951
|
-
var valid8 =
|
|
5968
|
+
var valid8 = _errs63 === errors;
|
|
5952
5969
|
} else {
|
|
5953
5970
|
var valid8 = true;
|
|
5954
5971
|
}
|
|
5955
5972
|
if (valid8) {
|
|
5956
|
-
if (
|
|
5957
|
-
let
|
|
5958
|
-
const
|
|
5959
|
-
if (!(typeof
|
|
5973
|
+
if (data25.flaggedAt !== void 0) {
|
|
5974
|
+
let data28 = data25.flaggedAt;
|
|
5975
|
+
const _errs65 = errors;
|
|
5976
|
+
if (!(typeof data28 == "number" && isFinite(data28))) {
|
|
5960
5977
|
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" }];
|
|
5961
5978
|
return false;
|
|
5962
5979
|
}
|
|
5963
|
-
var valid8 =
|
|
5980
|
+
var valid8 = _errs65 === errors;
|
|
5964
5981
|
} else {
|
|
5965
5982
|
var valid8 = true;
|
|
5966
5983
|
}
|
|
5967
5984
|
if (valid8) {
|
|
5968
|
-
if (
|
|
5969
|
-
let
|
|
5970
|
-
const
|
|
5971
|
-
if (!(typeof
|
|
5985
|
+
if (data25.acknowledgedAt !== void 0) {
|
|
5986
|
+
let data29 = data25.acknowledgedAt;
|
|
5987
|
+
const _errs67 = errors;
|
|
5988
|
+
if (!(typeof data29 == "number" && isFinite(data29))) {
|
|
5972
5989
|
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" }];
|
|
5973
5990
|
return false;
|
|
5974
5991
|
}
|
|
5975
|
-
var valid8 =
|
|
5992
|
+
var valid8 = _errs67 === errors;
|
|
5976
5993
|
} else {
|
|
5977
5994
|
var valid8 = true;
|
|
5978
5995
|
}
|
|
5979
5996
|
if (valid8) {
|
|
5980
|
-
if (
|
|
5981
|
-
const
|
|
5982
|
-
if (typeof
|
|
5997
|
+
if (data25.gateVerdict !== void 0) {
|
|
5998
|
+
const _errs69 = errors;
|
|
5999
|
+
if (typeof data25.gateVerdict !== "string") {
|
|
5983
6000
|
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" }];
|
|
5984
6001
|
return false;
|
|
5985
6002
|
}
|
|
5986
|
-
var valid8 =
|
|
6003
|
+
var valid8 = _errs69 === errors;
|
|
5987
6004
|
} else {
|
|
5988
6005
|
var valid8 = true;
|
|
5989
6006
|
}
|
|
5990
6007
|
if (valid8) {
|
|
5991
|
-
if (
|
|
5992
|
-
const
|
|
5993
|
-
if (typeof
|
|
6008
|
+
if (data25.reason !== void 0) {
|
|
6009
|
+
const _errs71 = errors;
|
|
6010
|
+
if (typeof data25.reason !== "string") {
|
|
5994
6011
|
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" }];
|
|
5995
6012
|
return false;
|
|
5996
6013
|
}
|
|
5997
|
-
var valid8 =
|
|
6014
|
+
var valid8 = _errs71 === errors;
|
|
5998
6015
|
} else {
|
|
5999
6016
|
var valid8 = true;
|
|
6000
6017
|
}
|
|
@@ -6009,7 +6026,7 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
6009
6026
|
return false;
|
|
6010
6027
|
}
|
|
6011
6028
|
}
|
|
6012
|
-
var valid7 =
|
|
6029
|
+
var valid7 = _errs58 === errors;
|
|
6013
6030
|
if (!valid7) {
|
|
6014
6031
|
break;
|
|
6015
6032
|
}
|
|
@@ -6019,34 +6036,34 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
6019
6036
|
return false;
|
|
6020
6037
|
}
|
|
6021
6038
|
}
|
|
6022
|
-
var valid1 =
|
|
6039
|
+
var valid1 = _errs56 === errors;
|
|
6023
6040
|
} else {
|
|
6024
6041
|
var valid1 = true;
|
|
6025
6042
|
}
|
|
6026
6043
|
if (valid1) {
|
|
6027
6044
|
if (data.dependsOn !== void 0) {
|
|
6028
|
-
let
|
|
6029
|
-
const
|
|
6030
|
-
if (errors ===
|
|
6031
|
-
if (Array.isArray(
|
|
6045
|
+
let data32 = data.dependsOn;
|
|
6046
|
+
const _errs73 = errors;
|
|
6047
|
+
if (errors === _errs73) {
|
|
6048
|
+
if (Array.isArray(data32)) {
|
|
6032
6049
|
var valid9 = true;
|
|
6033
|
-
const len4 =
|
|
6050
|
+
const len4 = data32.length;
|
|
6034
6051
|
for (let i4 = 0; i4 < len4; i4++) {
|
|
6035
|
-
let
|
|
6036
|
-
const
|
|
6037
|
-
if (errors ===
|
|
6038
|
-
if (
|
|
6052
|
+
let data33 = data32[i4];
|
|
6053
|
+
const _errs75 = errors;
|
|
6054
|
+
if (errors === _errs75) {
|
|
6055
|
+
if (data33 && typeof data33 == "object" && !Array.isArray(data33)) {
|
|
6039
6056
|
let missing3;
|
|
6040
|
-
if (
|
|
6057
|
+
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")) {
|
|
6041
6058
|
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 + "'" }];
|
|
6042
6059
|
return false;
|
|
6043
6060
|
} else {
|
|
6044
|
-
if (
|
|
6045
|
-
let
|
|
6046
|
-
const
|
|
6047
|
-
if (errors ===
|
|
6048
|
-
if (typeof
|
|
6049
|
-
if (func1(
|
|
6061
|
+
if (data33.id !== void 0) {
|
|
6062
|
+
let data34 = data33.id;
|
|
6063
|
+
const _errs78 = errors;
|
|
6064
|
+
if (errors === _errs78) {
|
|
6065
|
+
if (typeof data34 === "string") {
|
|
6066
|
+
if (func1(data34) < 1) {
|
|
6050
6067
|
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" }];
|
|
6051
6068
|
return false;
|
|
6052
6069
|
}
|
|
@@ -6055,79 +6072,79 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
6055
6072
|
return false;
|
|
6056
6073
|
}
|
|
6057
6074
|
}
|
|
6058
|
-
var valid10 =
|
|
6075
|
+
var valid10 = _errs78 === errors;
|
|
6059
6076
|
} else {
|
|
6060
6077
|
var valid10 = true;
|
|
6061
6078
|
}
|
|
6062
6079
|
if (valid10) {
|
|
6063
|
-
if (
|
|
6064
|
-
const
|
|
6065
|
-
if (typeof
|
|
6080
|
+
if (data33.shortId !== void 0) {
|
|
6081
|
+
const _errs80 = errors;
|
|
6082
|
+
if (typeof data33.shortId !== "string") {
|
|
6066
6083
|
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" }];
|
|
6067
6084
|
return false;
|
|
6068
6085
|
}
|
|
6069
|
-
var valid10 =
|
|
6086
|
+
var valid10 = _errs80 === errors;
|
|
6070
6087
|
} else {
|
|
6071
6088
|
var valid10 = true;
|
|
6072
6089
|
}
|
|
6073
6090
|
if (valid10) {
|
|
6074
|
-
if (
|
|
6075
|
-
const
|
|
6076
|
-
if (typeof
|
|
6091
|
+
if (data33.intent !== void 0) {
|
|
6092
|
+
const _errs82 = errors;
|
|
6093
|
+
if (typeof data33.intent !== "string") {
|
|
6077
6094
|
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" }];
|
|
6078
6095
|
return false;
|
|
6079
6096
|
}
|
|
6080
|
-
var valid10 =
|
|
6097
|
+
var valid10 = _errs82 === errors;
|
|
6081
6098
|
} else {
|
|
6082
6099
|
var valid10 = true;
|
|
6083
6100
|
}
|
|
6084
6101
|
if (valid10) {
|
|
6085
|
-
if (
|
|
6086
|
-
const
|
|
6087
|
-
if (typeof
|
|
6102
|
+
if (data33.area !== void 0) {
|
|
6103
|
+
const _errs84 = errors;
|
|
6104
|
+
if (typeof data33.area !== "string") {
|
|
6088
6105
|
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" }];
|
|
6089
6106
|
return false;
|
|
6090
6107
|
}
|
|
6091
|
-
var valid10 =
|
|
6108
|
+
var valid10 = _errs84 === errors;
|
|
6092
6109
|
} else {
|
|
6093
6110
|
var valid10 = true;
|
|
6094
6111
|
}
|
|
6095
6112
|
if (valid10) {
|
|
6096
|
-
if (
|
|
6097
|
-
const
|
|
6098
|
-
if (typeof
|
|
6113
|
+
if (data33.authorName !== void 0) {
|
|
6114
|
+
const _errs86 = errors;
|
|
6115
|
+
if (typeof data33.authorName !== "string") {
|
|
6099
6116
|
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" }];
|
|
6100
6117
|
return false;
|
|
6101
6118
|
}
|
|
6102
|
-
var valid10 =
|
|
6119
|
+
var valid10 = _errs86 === errors;
|
|
6103
6120
|
} else {
|
|
6104
6121
|
var valid10 = true;
|
|
6105
6122
|
}
|
|
6106
6123
|
if (valid10) {
|
|
6107
|
-
if (
|
|
6108
|
-
let
|
|
6109
|
-
const
|
|
6110
|
-
if (!(typeof
|
|
6124
|
+
if (data33.classifiedAt !== void 0) {
|
|
6125
|
+
let data39 = data33.classifiedAt;
|
|
6126
|
+
const _errs88 = errors;
|
|
6127
|
+
if (!(typeof data39 == "number" && isFinite(data39))) {
|
|
6111
6128
|
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" }];
|
|
6112
6129
|
return false;
|
|
6113
6130
|
}
|
|
6114
|
-
var valid10 =
|
|
6131
|
+
var valid10 = _errs88 === errors;
|
|
6115
6132
|
} else {
|
|
6116
6133
|
var valid10 = true;
|
|
6117
6134
|
}
|
|
6118
6135
|
if (valid10) {
|
|
6119
|
-
if (
|
|
6120
|
-
let
|
|
6121
|
-
const
|
|
6122
|
-
if (typeof
|
|
6136
|
+
if (data33.status !== void 0) {
|
|
6137
|
+
let data40 = data33.status;
|
|
6138
|
+
const _errs90 = errors;
|
|
6139
|
+
if (typeof data40 !== "string") {
|
|
6123
6140
|
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" }];
|
|
6124
6141
|
return false;
|
|
6125
6142
|
}
|
|
6126
|
-
if (!(
|
|
6143
|
+
if (!(data40 === "active" || data40 === "superseded" || data40 === "under_review")) {
|
|
6127
6144
|
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" }];
|
|
6128
6145
|
return false;
|
|
6129
6146
|
}
|
|
6130
|
-
var valid10 =
|
|
6147
|
+
var valid10 = _errs90 === errors;
|
|
6131
6148
|
} else {
|
|
6132
6149
|
var valid10 = true;
|
|
6133
6150
|
}
|
|
@@ -6143,7 +6160,7 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
6143
6160
|
return false;
|
|
6144
6161
|
}
|
|
6145
6162
|
}
|
|
6146
|
-
var valid9 =
|
|
6163
|
+
var valid9 = _errs75 === errors;
|
|
6147
6164
|
if (!valid9) {
|
|
6148
6165
|
break;
|
|
6149
6166
|
}
|
|
@@ -6153,34 +6170,34 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
6153
6170
|
return false;
|
|
6154
6171
|
}
|
|
6155
6172
|
}
|
|
6156
|
-
var valid1 =
|
|
6173
|
+
var valid1 = _errs73 === errors;
|
|
6157
6174
|
} else {
|
|
6158
6175
|
var valid1 = true;
|
|
6159
6176
|
}
|
|
6160
6177
|
if (valid1) {
|
|
6161
6178
|
if (data.dependents !== void 0) {
|
|
6162
|
-
let
|
|
6163
|
-
const
|
|
6164
|
-
if (errors ===
|
|
6165
|
-
if (Array.isArray(
|
|
6179
|
+
let data41 = data.dependents;
|
|
6180
|
+
const _errs92 = errors;
|
|
6181
|
+
if (errors === _errs92) {
|
|
6182
|
+
if (Array.isArray(data41)) {
|
|
6166
6183
|
var valid11 = true;
|
|
6167
|
-
const len5 =
|
|
6184
|
+
const len5 = data41.length;
|
|
6168
6185
|
for (let i5 = 0; i5 < len5; i5++) {
|
|
6169
|
-
let
|
|
6170
|
-
const
|
|
6171
|
-
if (errors ===
|
|
6172
|
-
if (
|
|
6186
|
+
let data42 = data41[i5];
|
|
6187
|
+
const _errs94 = errors;
|
|
6188
|
+
if (errors === _errs94) {
|
|
6189
|
+
if (data42 && typeof data42 == "object" && !Array.isArray(data42)) {
|
|
6173
6190
|
let missing4;
|
|
6174
|
-
if (
|
|
6191
|
+
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")) {
|
|
6175
6192
|
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 + "'" }];
|
|
6176
6193
|
return false;
|
|
6177
6194
|
} else {
|
|
6178
|
-
if (
|
|
6179
|
-
let
|
|
6180
|
-
const
|
|
6181
|
-
if (errors ===
|
|
6182
|
-
if (typeof
|
|
6183
|
-
if (func1(
|
|
6195
|
+
if (data42.id !== void 0) {
|
|
6196
|
+
let data43 = data42.id;
|
|
6197
|
+
const _errs97 = errors;
|
|
6198
|
+
if (errors === _errs97) {
|
|
6199
|
+
if (typeof data43 === "string") {
|
|
6200
|
+
if (func1(data43) < 1) {
|
|
6184
6201
|
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" }];
|
|
6185
6202
|
return false;
|
|
6186
6203
|
}
|
|
@@ -6189,79 +6206,79 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
6189
6206
|
return false;
|
|
6190
6207
|
}
|
|
6191
6208
|
}
|
|
6192
|
-
var valid12 =
|
|
6209
|
+
var valid12 = _errs97 === errors;
|
|
6193
6210
|
} else {
|
|
6194
6211
|
var valid12 = true;
|
|
6195
6212
|
}
|
|
6196
6213
|
if (valid12) {
|
|
6197
|
-
if (
|
|
6198
|
-
const
|
|
6199
|
-
if (typeof
|
|
6214
|
+
if (data42.shortId !== void 0) {
|
|
6215
|
+
const _errs99 = errors;
|
|
6216
|
+
if (typeof data42.shortId !== "string") {
|
|
6200
6217
|
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" }];
|
|
6201
6218
|
return false;
|
|
6202
6219
|
}
|
|
6203
|
-
var valid12 =
|
|
6220
|
+
var valid12 = _errs99 === errors;
|
|
6204
6221
|
} else {
|
|
6205
6222
|
var valid12 = true;
|
|
6206
6223
|
}
|
|
6207
6224
|
if (valid12) {
|
|
6208
|
-
if (
|
|
6209
|
-
const
|
|
6210
|
-
if (typeof
|
|
6225
|
+
if (data42.intent !== void 0) {
|
|
6226
|
+
const _errs101 = errors;
|
|
6227
|
+
if (typeof data42.intent !== "string") {
|
|
6211
6228
|
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" }];
|
|
6212
6229
|
return false;
|
|
6213
6230
|
}
|
|
6214
|
-
var valid12 =
|
|
6231
|
+
var valid12 = _errs101 === errors;
|
|
6215
6232
|
} else {
|
|
6216
6233
|
var valid12 = true;
|
|
6217
6234
|
}
|
|
6218
6235
|
if (valid12) {
|
|
6219
|
-
if (
|
|
6220
|
-
const
|
|
6221
|
-
if (typeof
|
|
6236
|
+
if (data42.area !== void 0) {
|
|
6237
|
+
const _errs103 = errors;
|
|
6238
|
+
if (typeof data42.area !== "string") {
|
|
6222
6239
|
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" }];
|
|
6223
6240
|
return false;
|
|
6224
6241
|
}
|
|
6225
|
-
var valid12 =
|
|
6242
|
+
var valid12 = _errs103 === errors;
|
|
6226
6243
|
} else {
|
|
6227
6244
|
var valid12 = true;
|
|
6228
6245
|
}
|
|
6229
6246
|
if (valid12) {
|
|
6230
|
-
if (
|
|
6231
|
-
const
|
|
6232
|
-
if (typeof
|
|
6247
|
+
if (data42.authorName !== void 0) {
|
|
6248
|
+
const _errs105 = errors;
|
|
6249
|
+
if (typeof data42.authorName !== "string") {
|
|
6233
6250
|
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" }];
|
|
6234
6251
|
return false;
|
|
6235
6252
|
}
|
|
6236
|
-
var valid12 =
|
|
6253
|
+
var valid12 = _errs105 === errors;
|
|
6237
6254
|
} else {
|
|
6238
6255
|
var valid12 = true;
|
|
6239
6256
|
}
|
|
6240
6257
|
if (valid12) {
|
|
6241
|
-
if (
|
|
6242
|
-
let
|
|
6243
|
-
const
|
|
6244
|
-
if (!(typeof
|
|
6258
|
+
if (data42.classifiedAt !== void 0) {
|
|
6259
|
+
let data48 = data42.classifiedAt;
|
|
6260
|
+
const _errs107 = errors;
|
|
6261
|
+
if (!(typeof data48 == "number" && isFinite(data48))) {
|
|
6245
6262
|
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" }];
|
|
6246
6263
|
return false;
|
|
6247
6264
|
}
|
|
6248
|
-
var valid12 =
|
|
6265
|
+
var valid12 = _errs107 === errors;
|
|
6249
6266
|
} else {
|
|
6250
6267
|
var valid12 = true;
|
|
6251
6268
|
}
|
|
6252
6269
|
if (valid12) {
|
|
6253
|
-
if (
|
|
6254
|
-
let
|
|
6255
|
-
const
|
|
6256
|
-
if (typeof
|
|
6270
|
+
if (data42.status !== void 0) {
|
|
6271
|
+
let data49 = data42.status;
|
|
6272
|
+
const _errs109 = errors;
|
|
6273
|
+
if (typeof data49 !== "string") {
|
|
6257
6274
|
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" }];
|
|
6258
6275
|
return false;
|
|
6259
6276
|
}
|
|
6260
|
-
if (!(
|
|
6277
|
+
if (!(data49 === "active" || data49 === "superseded" || data49 === "under_review")) {
|
|
6261
6278
|
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" }];
|
|
6262
6279
|
return false;
|
|
6263
6280
|
}
|
|
6264
|
-
var valid12 =
|
|
6281
|
+
var valid12 = _errs109 === errors;
|
|
6265
6282
|
} else {
|
|
6266
6283
|
var valid12 = true;
|
|
6267
6284
|
}
|
|
@@ -6277,7 +6294,7 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
6277
6294
|
return false;
|
|
6278
6295
|
}
|
|
6279
6296
|
}
|
|
6280
|
-
var valid11 =
|
|
6297
|
+
var valid11 = _errs94 === errors;
|
|
6281
6298
|
if (!valid11) {
|
|
6282
6299
|
break;
|
|
6283
6300
|
}
|
|
@@ -6287,56 +6304,56 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
6287
6304
|
return false;
|
|
6288
6305
|
}
|
|
6289
6306
|
}
|
|
6290
|
-
var valid1 =
|
|
6307
|
+
var valid1 = _errs92 === errors;
|
|
6291
6308
|
} else {
|
|
6292
6309
|
var valid1 = true;
|
|
6293
6310
|
}
|
|
6294
6311
|
if (valid1) {
|
|
6295
6312
|
if (data.scope !== void 0) {
|
|
6296
|
-
let
|
|
6297
|
-
const
|
|
6298
|
-
if (errors ===
|
|
6299
|
-
if (
|
|
6313
|
+
let data50 = data.scope;
|
|
6314
|
+
const _errs111 = errors;
|
|
6315
|
+
if (errors === _errs111) {
|
|
6316
|
+
if (data50 && typeof data50 == "object" && !Array.isArray(data50)) {
|
|
6300
6317
|
let missing5;
|
|
6301
|
-
if (
|
|
6318
|
+
if (data50.location === void 0 && (missing5 = "location") || data50.time === void 0 && (missing5 = "time") || data50.users === void 0 && (missing5 = "users")) {
|
|
6302
6319
|
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 + "'" }];
|
|
6303
6320
|
return false;
|
|
6304
6321
|
} else {
|
|
6305
|
-
if (
|
|
6306
|
-
let
|
|
6307
|
-
const
|
|
6308
|
-
if (errors ===
|
|
6309
|
-
if (
|
|
6322
|
+
if (data50.location !== void 0) {
|
|
6323
|
+
let data51 = data50.location;
|
|
6324
|
+
const _errs114 = errors;
|
|
6325
|
+
if (errors === _errs114) {
|
|
6326
|
+
if (data51 && typeof data51 == "object" && !Array.isArray(data51)) {
|
|
6310
6327
|
let missing6;
|
|
6311
|
-
if (
|
|
6328
|
+
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")) {
|
|
6312
6329
|
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 + "'" }];
|
|
6313
6330
|
return false;
|
|
6314
6331
|
} else {
|
|
6315
|
-
if (
|
|
6316
|
-
const
|
|
6317
|
-
if (typeof
|
|
6332
|
+
if (data51.repository !== void 0) {
|
|
6333
|
+
const _errs117 = errors;
|
|
6334
|
+
if (typeof data51.repository !== "boolean") {
|
|
6318
6335
|
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" }];
|
|
6319
6336
|
return false;
|
|
6320
6337
|
}
|
|
6321
|
-
var valid14 =
|
|
6338
|
+
var valid14 = _errs117 === errors;
|
|
6322
6339
|
} else {
|
|
6323
6340
|
var valid14 = true;
|
|
6324
6341
|
}
|
|
6325
6342
|
if (valid14) {
|
|
6326
|
-
if (
|
|
6327
|
-
let
|
|
6328
|
-
const
|
|
6329
|
-
if (errors ===
|
|
6330
|
-
if (Array.isArray(
|
|
6343
|
+
if (data51.directories !== void 0) {
|
|
6344
|
+
let data53 = data51.directories;
|
|
6345
|
+
const _errs119 = errors;
|
|
6346
|
+
if (errors === _errs119) {
|
|
6347
|
+
if (Array.isArray(data53)) {
|
|
6331
6348
|
var valid15 = true;
|
|
6332
|
-
const len6 =
|
|
6349
|
+
const len6 = data53.length;
|
|
6333
6350
|
for (let i6 = 0; i6 < len6; i6++) {
|
|
6334
|
-
const
|
|
6335
|
-
if (typeof
|
|
6351
|
+
const _errs121 = errors;
|
|
6352
|
+
if (typeof data53[i6] !== "string") {
|
|
6336
6353
|
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" }];
|
|
6337
6354
|
return false;
|
|
6338
6355
|
}
|
|
6339
|
-
var valid15 =
|
|
6356
|
+
var valid15 = _errs121 === errors;
|
|
6340
6357
|
if (!valid15) {
|
|
6341
6358
|
break;
|
|
6342
6359
|
}
|
|
@@ -6346,25 +6363,25 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
6346
6363
|
return false;
|
|
6347
6364
|
}
|
|
6348
6365
|
}
|
|
6349
|
-
var valid14 =
|
|
6366
|
+
var valid14 = _errs119 === errors;
|
|
6350
6367
|
} else {
|
|
6351
6368
|
var valid14 = true;
|
|
6352
6369
|
}
|
|
6353
6370
|
if (valid14) {
|
|
6354
|
-
if (
|
|
6355
|
-
let
|
|
6356
|
-
const
|
|
6357
|
-
if (errors ===
|
|
6358
|
-
if (Array.isArray(
|
|
6371
|
+
if (data51.globs !== void 0) {
|
|
6372
|
+
let data55 = data51.globs;
|
|
6373
|
+
const _errs123 = errors;
|
|
6374
|
+
if (errors === _errs123) {
|
|
6375
|
+
if (Array.isArray(data55)) {
|
|
6359
6376
|
var valid16 = true;
|
|
6360
|
-
const len7 =
|
|
6377
|
+
const len7 = data55.length;
|
|
6361
6378
|
for (let i7 = 0; i7 < len7; i7++) {
|
|
6362
|
-
const
|
|
6363
|
-
if (typeof
|
|
6379
|
+
const _errs125 = errors;
|
|
6380
|
+
if (typeof data55[i7] !== "string") {
|
|
6364
6381
|
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" }];
|
|
6365
6382
|
return false;
|
|
6366
6383
|
}
|
|
6367
|
-
var valid16 =
|
|
6384
|
+
var valid16 = _errs125 === errors;
|
|
6368
6385
|
if (!valid16) {
|
|
6369
6386
|
break;
|
|
6370
6387
|
}
|
|
@@ -6374,25 +6391,25 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
6374
6391
|
return false;
|
|
6375
6392
|
}
|
|
6376
6393
|
}
|
|
6377
|
-
var valid14 =
|
|
6394
|
+
var valid14 = _errs123 === errors;
|
|
6378
6395
|
} else {
|
|
6379
6396
|
var valid14 = true;
|
|
6380
6397
|
}
|
|
6381
6398
|
if (valid14) {
|
|
6382
|
-
if (
|
|
6383
|
-
let
|
|
6384
|
-
const
|
|
6385
|
-
if (errors ===
|
|
6386
|
-
if (Array.isArray(
|
|
6399
|
+
if (data51.branches !== void 0) {
|
|
6400
|
+
let data57 = data51.branches;
|
|
6401
|
+
const _errs127 = errors;
|
|
6402
|
+
if (errors === _errs127) {
|
|
6403
|
+
if (Array.isArray(data57)) {
|
|
6387
6404
|
var valid17 = true;
|
|
6388
|
-
const len8 =
|
|
6405
|
+
const len8 = data57.length;
|
|
6389
6406
|
for (let i8 = 0; i8 < len8; i8++) {
|
|
6390
|
-
const
|
|
6391
|
-
if (typeof
|
|
6407
|
+
const _errs129 = errors;
|
|
6408
|
+
if (typeof data57[i8] !== "string") {
|
|
6392
6409
|
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" }];
|
|
6393
6410
|
return false;
|
|
6394
6411
|
}
|
|
6395
|
-
var valid17 =
|
|
6412
|
+
var valid17 = _errs129 === errors;
|
|
6396
6413
|
if (!valid17) {
|
|
6397
6414
|
break;
|
|
6398
6415
|
}
|
|
@@ -6402,7 +6419,7 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
6402
6419
|
return false;
|
|
6403
6420
|
}
|
|
6404
6421
|
}
|
|
6405
|
-
var valid14 =
|
|
6422
|
+
var valid14 = _errs127 === errors;
|
|
6406
6423
|
} else {
|
|
6407
6424
|
var valid14 = true;
|
|
6408
6425
|
}
|
|
@@ -6415,62 +6432,62 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
6415
6432
|
return false;
|
|
6416
6433
|
}
|
|
6417
6434
|
}
|
|
6418
|
-
var valid13 =
|
|
6435
|
+
var valid13 = _errs114 === errors;
|
|
6419
6436
|
} else {
|
|
6420
6437
|
var valid13 = true;
|
|
6421
6438
|
}
|
|
6422
6439
|
if (valid13) {
|
|
6423
|
-
if (
|
|
6424
|
-
let
|
|
6425
|
-
const
|
|
6426
|
-
if (errors ===
|
|
6427
|
-
if (
|
|
6428
|
-
if (
|
|
6429
|
-
let
|
|
6430
|
-
const
|
|
6431
|
-
if (!(typeof
|
|
6440
|
+
if (data50.time !== void 0) {
|
|
6441
|
+
let data59 = data50.time;
|
|
6442
|
+
const _errs131 = errors;
|
|
6443
|
+
if (errors === _errs131) {
|
|
6444
|
+
if (data59 && typeof data59 == "object" && !Array.isArray(data59)) {
|
|
6445
|
+
if (data59.effectiveFrom !== void 0) {
|
|
6446
|
+
let data60 = data59.effectiveFrom;
|
|
6447
|
+
const _errs134 = errors;
|
|
6448
|
+
if (!(typeof data60 == "number" && (!(data60 % 1) && !isNaN(data60)) && isFinite(data60))) {
|
|
6432
6449
|
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" }];
|
|
6433
6450
|
return false;
|
|
6434
6451
|
}
|
|
6435
|
-
if (errors ===
|
|
6436
|
-
if (typeof
|
|
6437
|
-
if (
|
|
6452
|
+
if (errors === _errs134) {
|
|
6453
|
+
if (typeof data60 == "number" && isFinite(data60)) {
|
|
6454
|
+
if (data60 > 9007199254740991 || isNaN(data60)) {
|
|
6438
6455
|
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" }];
|
|
6439
6456
|
return false;
|
|
6440
6457
|
} else {
|
|
6441
|
-
if (
|
|
6458
|
+
if (data60 < -9007199254740991 || isNaN(data60)) {
|
|
6442
6459
|
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" }];
|
|
6443
6460
|
return false;
|
|
6444
6461
|
}
|
|
6445
6462
|
}
|
|
6446
6463
|
}
|
|
6447
6464
|
}
|
|
6448
|
-
var valid18 =
|
|
6465
|
+
var valid18 = _errs134 === errors;
|
|
6449
6466
|
} else {
|
|
6450
6467
|
var valid18 = true;
|
|
6451
6468
|
}
|
|
6452
6469
|
if (valid18) {
|
|
6453
|
-
if (
|
|
6454
|
-
let
|
|
6455
|
-
const
|
|
6456
|
-
if (!(typeof
|
|
6470
|
+
if (data59.effectiveUntil !== void 0) {
|
|
6471
|
+
let data61 = data59.effectiveUntil;
|
|
6472
|
+
const _errs136 = errors;
|
|
6473
|
+
if (!(typeof data61 == "number" && (!(data61 % 1) && !isNaN(data61)) && isFinite(data61))) {
|
|
6457
6474
|
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" }];
|
|
6458
6475
|
return false;
|
|
6459
6476
|
}
|
|
6460
|
-
if (errors ===
|
|
6461
|
-
if (typeof
|
|
6462
|
-
if (
|
|
6477
|
+
if (errors === _errs136) {
|
|
6478
|
+
if (typeof data61 == "number" && isFinite(data61)) {
|
|
6479
|
+
if (data61 > 9007199254740991 || isNaN(data61)) {
|
|
6463
6480
|
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" }];
|
|
6464
6481
|
return false;
|
|
6465
6482
|
} else {
|
|
6466
|
-
if (
|
|
6483
|
+
if (data61 < -9007199254740991 || isNaN(data61)) {
|
|
6467
6484
|
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" }];
|
|
6468
6485
|
return false;
|
|
6469
6486
|
}
|
|
6470
6487
|
}
|
|
6471
6488
|
}
|
|
6472
6489
|
}
|
|
6473
|
-
var valid18 =
|
|
6490
|
+
var valid18 = _errs136 === errors;
|
|
6474
6491
|
} else {
|
|
6475
6492
|
var valid18 = true;
|
|
6476
6493
|
}
|
|
@@ -6480,29 +6497,29 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
6480
6497
|
return false;
|
|
6481
6498
|
}
|
|
6482
6499
|
}
|
|
6483
|
-
var valid13 =
|
|
6500
|
+
var valid13 = _errs131 === errors;
|
|
6484
6501
|
} else {
|
|
6485
6502
|
var valid13 = true;
|
|
6486
6503
|
}
|
|
6487
6504
|
if (valid13) {
|
|
6488
|
-
if (
|
|
6489
|
-
let
|
|
6490
|
-
const
|
|
6491
|
-
if (errors ===
|
|
6492
|
-
if (Array.isArray(
|
|
6505
|
+
if (data50.users !== void 0) {
|
|
6506
|
+
let data62 = data50.users;
|
|
6507
|
+
const _errs138 = errors;
|
|
6508
|
+
if (errors === _errs138) {
|
|
6509
|
+
if (Array.isArray(data62)) {
|
|
6493
6510
|
var valid19 = true;
|
|
6494
|
-
const len9 =
|
|
6511
|
+
const len9 = data62.length;
|
|
6495
6512
|
for (let i9 = 0; i9 < len9; i9++) {
|
|
6496
|
-
let
|
|
6497
|
-
const
|
|
6498
|
-
const
|
|
6513
|
+
let data63 = data62[i9];
|
|
6514
|
+
const _errs140 = errors;
|
|
6515
|
+
const _errs141 = errors;
|
|
6499
6516
|
let valid20 = false;
|
|
6500
6517
|
let passing0 = null;
|
|
6501
|
-
const
|
|
6502
|
-
if (errors ===
|
|
6503
|
-
if (
|
|
6518
|
+
const _errs142 = errors;
|
|
6519
|
+
if (errors === _errs142) {
|
|
6520
|
+
if (data63 && typeof data63 == "object" && !Array.isArray(data63)) {
|
|
6504
6521
|
let missing7;
|
|
6505
|
-
if (
|
|
6522
|
+
if (data63.kind === void 0 && (missing7 = "kind") || data63.userId === void 0 && (missing7 = "userId") || data63.displayName === void 0 && (missing7 = "displayName")) {
|
|
6506
6523
|
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 + "'" };
|
|
6507
6524
|
if (vErrors === null) {
|
|
6508
6525
|
vErrors = [err4];
|
|
@@ -6511,8 +6528,8 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
6511
6528
|
}
|
|
6512
6529
|
errors++;
|
|
6513
6530
|
} else {
|
|
6514
|
-
const
|
|
6515
|
-
for (const key0 in
|
|
6531
|
+
const _errs144 = errors;
|
|
6532
|
+
for (const key0 in data63) {
|
|
6516
6533
|
if (!(key0 === "kind" || key0 === "userId" || key0 === "displayName")) {
|
|
6517
6534
|
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" };
|
|
6518
6535
|
if (vErrors === null) {
|
|
@@ -6524,11 +6541,11 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
6524
6541
|
break;
|
|
6525
6542
|
}
|
|
6526
6543
|
}
|
|
6527
|
-
if (
|
|
6528
|
-
if (
|
|
6529
|
-
let
|
|
6530
|
-
const
|
|
6531
|
-
if (typeof
|
|
6544
|
+
if (_errs144 === errors) {
|
|
6545
|
+
if (data63.kind !== void 0) {
|
|
6546
|
+
let data64 = data63.kind;
|
|
6547
|
+
const _errs145 = errors;
|
|
6548
|
+
if (typeof data64 !== "string") {
|
|
6532
6549
|
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" };
|
|
6533
6550
|
if (vErrors === null) {
|
|
6534
6551
|
vErrors = [err6];
|
|
@@ -6537,7 +6554,7 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
6537
6554
|
}
|
|
6538
6555
|
errors++;
|
|
6539
6556
|
}
|
|
6540
|
-
if ("user" !==
|
|
6557
|
+
if ("user" !== data64) {
|
|
6541
6558
|
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" };
|
|
6542
6559
|
if (vErrors === null) {
|
|
6543
6560
|
vErrors = [err7];
|
|
@@ -6546,17 +6563,17 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
6546
6563
|
}
|
|
6547
6564
|
errors++;
|
|
6548
6565
|
}
|
|
6549
|
-
var valid21 =
|
|
6566
|
+
var valid21 = _errs145 === errors;
|
|
6550
6567
|
} else {
|
|
6551
6568
|
var valid21 = true;
|
|
6552
6569
|
}
|
|
6553
6570
|
if (valid21) {
|
|
6554
|
-
if (
|
|
6555
|
-
let
|
|
6556
|
-
const
|
|
6557
|
-
if (errors ===
|
|
6558
|
-
if (typeof
|
|
6559
|
-
if (func1(
|
|
6571
|
+
if (data63.userId !== void 0) {
|
|
6572
|
+
let data65 = data63.userId;
|
|
6573
|
+
const _errs147 = errors;
|
|
6574
|
+
if (errors === _errs147) {
|
|
6575
|
+
if (typeof data65 === "string") {
|
|
6576
|
+
if (func1(data65) < 1) {
|
|
6560
6577
|
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" };
|
|
6561
6578
|
if (vErrors === null) {
|
|
6562
6579
|
vErrors = [err8];
|
|
@@ -6575,14 +6592,14 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
6575
6592
|
errors++;
|
|
6576
6593
|
}
|
|
6577
6594
|
}
|
|
6578
|
-
var valid21 =
|
|
6595
|
+
var valid21 = _errs147 === errors;
|
|
6579
6596
|
} else {
|
|
6580
6597
|
var valid21 = true;
|
|
6581
6598
|
}
|
|
6582
6599
|
if (valid21) {
|
|
6583
|
-
if (
|
|
6584
|
-
const
|
|
6585
|
-
if (typeof
|
|
6600
|
+
if (data63.displayName !== void 0) {
|
|
6601
|
+
const _errs149 = errors;
|
|
6602
|
+
if (typeof data63.displayName !== "string") {
|
|
6586
6603
|
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" };
|
|
6587
6604
|
if (vErrors === null) {
|
|
6588
6605
|
vErrors = [err10];
|
|
@@ -6591,7 +6608,7 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
6591
6608
|
}
|
|
6592
6609
|
errors++;
|
|
6593
6610
|
}
|
|
6594
|
-
var valid21 =
|
|
6611
|
+
var valid21 = _errs149 === errors;
|
|
6595
6612
|
} else {
|
|
6596
6613
|
var valid21 = true;
|
|
6597
6614
|
}
|
|
@@ -6609,17 +6626,17 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
6609
6626
|
errors++;
|
|
6610
6627
|
}
|
|
6611
6628
|
}
|
|
6612
|
-
var _valid1 =
|
|
6629
|
+
var _valid1 = _errs142 === errors;
|
|
6613
6630
|
if (_valid1) {
|
|
6614
6631
|
valid20 = true;
|
|
6615
6632
|
passing0 = 0;
|
|
6616
6633
|
var props0 = true;
|
|
6617
6634
|
}
|
|
6618
|
-
const
|
|
6619
|
-
if (errors ===
|
|
6620
|
-
if (
|
|
6635
|
+
const _errs151 = errors;
|
|
6636
|
+
if (errors === _errs151) {
|
|
6637
|
+
if (data63 && typeof data63 == "object" && !Array.isArray(data63)) {
|
|
6621
6638
|
let missing8;
|
|
6622
|
-
if (
|
|
6639
|
+
if (data63.kind === void 0 && (missing8 = "kind") || data63.role === void 0 && (missing8 = "role")) {
|
|
6623
6640
|
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 + "'" };
|
|
6624
6641
|
if (vErrors === null) {
|
|
6625
6642
|
vErrors = [err12];
|
|
@@ -6628,8 +6645,8 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
6628
6645
|
}
|
|
6629
6646
|
errors++;
|
|
6630
6647
|
} else {
|
|
6631
|
-
const
|
|
6632
|
-
for (const key1 in
|
|
6648
|
+
const _errs153 = errors;
|
|
6649
|
+
for (const key1 in data63) {
|
|
6633
6650
|
if (!(key1 === "kind" || key1 === "role")) {
|
|
6634
6651
|
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" };
|
|
6635
6652
|
if (vErrors === null) {
|
|
@@ -6641,11 +6658,11 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
6641
6658
|
break;
|
|
6642
6659
|
}
|
|
6643
6660
|
}
|
|
6644
|
-
if (
|
|
6645
|
-
if (
|
|
6646
|
-
let
|
|
6647
|
-
const
|
|
6648
|
-
if (typeof
|
|
6661
|
+
if (_errs153 === errors) {
|
|
6662
|
+
if (data63.kind !== void 0) {
|
|
6663
|
+
let data67 = data63.kind;
|
|
6664
|
+
const _errs154 = errors;
|
|
6665
|
+
if (typeof data67 !== "string") {
|
|
6649
6666
|
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" };
|
|
6650
6667
|
if (vErrors === null) {
|
|
6651
6668
|
vErrors = [err14];
|
|
@@ -6654,7 +6671,7 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
6654
6671
|
}
|
|
6655
6672
|
errors++;
|
|
6656
6673
|
}
|
|
6657
|
-
if ("role" !==
|
|
6674
|
+
if ("role" !== data67) {
|
|
6658
6675
|
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" };
|
|
6659
6676
|
if (vErrors === null) {
|
|
6660
6677
|
vErrors = [err15];
|
|
@@ -6663,15 +6680,15 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
6663
6680
|
}
|
|
6664
6681
|
errors++;
|
|
6665
6682
|
}
|
|
6666
|
-
var valid22 =
|
|
6683
|
+
var valid22 = _errs154 === errors;
|
|
6667
6684
|
} else {
|
|
6668
6685
|
var valid22 = true;
|
|
6669
6686
|
}
|
|
6670
6687
|
if (valid22) {
|
|
6671
|
-
if (
|
|
6672
|
-
let
|
|
6673
|
-
const
|
|
6674
|
-
if (typeof
|
|
6688
|
+
if (data63.role !== void 0) {
|
|
6689
|
+
let data68 = data63.role;
|
|
6690
|
+
const _errs156 = errors;
|
|
6691
|
+
if (typeof data68 !== "string") {
|
|
6675
6692
|
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" };
|
|
6676
6693
|
if (vErrors === null) {
|
|
6677
6694
|
vErrors = [err16];
|
|
@@ -6680,7 +6697,7 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
6680
6697
|
}
|
|
6681
6698
|
errors++;
|
|
6682
6699
|
}
|
|
6683
|
-
if (!(
|
|
6700
|
+
if (!(data68 === "owner" || data68 === "admin" || data68 === "member")) {
|
|
6684
6701
|
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" };
|
|
6685
6702
|
if (vErrors === null) {
|
|
6686
6703
|
vErrors = [err17];
|
|
@@ -6689,7 +6706,7 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
6689
6706
|
}
|
|
6690
6707
|
errors++;
|
|
6691
6708
|
}
|
|
6692
|
-
var valid22 =
|
|
6709
|
+
var valid22 = _errs156 === errors;
|
|
6693
6710
|
} else {
|
|
6694
6711
|
var valid22 = true;
|
|
6695
6712
|
}
|
|
@@ -6706,7 +6723,7 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
6706
6723
|
errors++;
|
|
6707
6724
|
}
|
|
6708
6725
|
}
|
|
6709
|
-
var _valid1 =
|
|
6726
|
+
var _valid1 = _errs151 === errors;
|
|
6710
6727
|
if (_valid1 && valid20) {
|
|
6711
6728
|
valid20 = false;
|
|
6712
6729
|
passing0 = [passing0, 1];
|
|
@@ -6718,11 +6735,11 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
6718
6735
|
props0 = true;
|
|
6719
6736
|
}
|
|
6720
6737
|
}
|
|
6721
|
-
const
|
|
6722
|
-
if (errors ===
|
|
6723
|
-
if (
|
|
6738
|
+
const _errs158 = errors;
|
|
6739
|
+
if (errors === _errs158) {
|
|
6740
|
+
if (data63 && typeof data63 == "object" && !Array.isArray(data63)) {
|
|
6724
6741
|
let missing9;
|
|
6725
|
-
if (
|
|
6742
|
+
if (data63.kind === void 0 && (missing9 = "kind") || data63.agent === void 0 && (missing9 = "agent")) {
|
|
6726
6743
|
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 + "'" };
|
|
6727
6744
|
if (vErrors === null) {
|
|
6728
6745
|
vErrors = [err19];
|
|
@@ -6731,8 +6748,8 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
6731
6748
|
}
|
|
6732
6749
|
errors++;
|
|
6733
6750
|
} else {
|
|
6734
|
-
const
|
|
6735
|
-
for (const key2 in
|
|
6751
|
+
const _errs160 = errors;
|
|
6752
|
+
for (const key2 in data63) {
|
|
6736
6753
|
if (!(key2 === "kind" || key2 === "agent")) {
|
|
6737
6754
|
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" };
|
|
6738
6755
|
if (vErrors === null) {
|
|
@@ -6744,11 +6761,11 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
6744
6761
|
break;
|
|
6745
6762
|
}
|
|
6746
6763
|
}
|
|
6747
|
-
if (
|
|
6748
|
-
if (
|
|
6749
|
-
let
|
|
6750
|
-
const
|
|
6751
|
-
if (typeof
|
|
6764
|
+
if (_errs160 === errors) {
|
|
6765
|
+
if (data63.kind !== void 0) {
|
|
6766
|
+
let data69 = data63.kind;
|
|
6767
|
+
const _errs161 = errors;
|
|
6768
|
+
if (typeof data69 !== "string") {
|
|
6752
6769
|
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" };
|
|
6753
6770
|
if (vErrors === null) {
|
|
6754
6771
|
vErrors = [err21];
|
|
@@ -6757,7 +6774,7 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
6757
6774
|
}
|
|
6758
6775
|
errors++;
|
|
6759
6776
|
}
|
|
6760
|
-
if ("agent" !==
|
|
6777
|
+
if ("agent" !== data69) {
|
|
6761
6778
|
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" };
|
|
6762
6779
|
if (vErrors === null) {
|
|
6763
6780
|
vErrors = [err22];
|
|
@@ -6766,15 +6783,15 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
6766
6783
|
}
|
|
6767
6784
|
errors++;
|
|
6768
6785
|
}
|
|
6769
|
-
var valid23 =
|
|
6786
|
+
var valid23 = _errs161 === errors;
|
|
6770
6787
|
} else {
|
|
6771
6788
|
var valid23 = true;
|
|
6772
6789
|
}
|
|
6773
6790
|
if (valid23) {
|
|
6774
|
-
if (
|
|
6775
|
-
let
|
|
6776
|
-
const
|
|
6777
|
-
if (typeof
|
|
6791
|
+
if (data63.agent !== void 0) {
|
|
6792
|
+
let data70 = data63.agent;
|
|
6793
|
+
const _errs163 = errors;
|
|
6794
|
+
if (typeof data70 !== "string") {
|
|
6778
6795
|
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" };
|
|
6779
6796
|
if (vErrors === null) {
|
|
6780
6797
|
vErrors = [err23];
|
|
@@ -6783,7 +6800,7 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
6783
6800
|
}
|
|
6784
6801
|
errors++;
|
|
6785
6802
|
}
|
|
6786
|
-
if (!(
|
|
6803
|
+
if (!(data70 === "claude_code" || data70 === "codex" || data70 === "hermes")) {
|
|
6787
6804
|
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" };
|
|
6788
6805
|
if (vErrors === null) {
|
|
6789
6806
|
vErrors = [err24];
|
|
@@ -6792,7 +6809,7 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
6792
6809
|
}
|
|
6793
6810
|
errors++;
|
|
6794
6811
|
}
|
|
6795
|
-
var valid23 =
|
|
6812
|
+
var valid23 = _errs163 === errors;
|
|
6796
6813
|
} else {
|
|
6797
6814
|
var valid23 = true;
|
|
6798
6815
|
}
|
|
@@ -6809,7 +6826,7 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
6809
6826
|
errors++;
|
|
6810
6827
|
}
|
|
6811
6828
|
}
|
|
6812
|
-
var _valid1 =
|
|
6829
|
+
var _valid1 = _errs158 === errors;
|
|
6813
6830
|
if (_valid1 && valid20) {
|
|
6814
6831
|
valid20 = false;
|
|
6815
6832
|
passing0 = [passing0, 2];
|
|
@@ -6821,11 +6838,11 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
6821
6838
|
props0 = true;
|
|
6822
6839
|
}
|
|
6823
6840
|
}
|
|
6824
|
-
const
|
|
6825
|
-
if (errors ===
|
|
6826
|
-
if (
|
|
6841
|
+
const _errs165 = errors;
|
|
6842
|
+
if (errors === _errs165) {
|
|
6843
|
+
if (data63 && typeof data63 == "object" && !Array.isArray(data63)) {
|
|
6827
6844
|
let missing10;
|
|
6828
|
-
if (
|
|
6845
|
+
if (data63.kind === void 0 && (missing10 = "kind") || data63.credential === void 0 && (missing10 = "credential")) {
|
|
6829
6846
|
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 + "'" };
|
|
6830
6847
|
if (vErrors === null) {
|
|
6831
6848
|
vErrors = [err26];
|
|
@@ -6834,8 +6851,8 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
6834
6851
|
}
|
|
6835
6852
|
errors++;
|
|
6836
6853
|
} else {
|
|
6837
|
-
const
|
|
6838
|
-
for (const key3 in
|
|
6854
|
+
const _errs167 = errors;
|
|
6855
|
+
for (const key3 in data63) {
|
|
6839
6856
|
if (!(key3 === "kind" || key3 === "credential")) {
|
|
6840
6857
|
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" };
|
|
6841
6858
|
if (vErrors === null) {
|
|
@@ -6847,11 +6864,11 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
6847
6864
|
break;
|
|
6848
6865
|
}
|
|
6849
6866
|
}
|
|
6850
|
-
if (
|
|
6851
|
-
if (
|
|
6852
|
-
let
|
|
6853
|
-
const
|
|
6854
|
-
if (typeof
|
|
6867
|
+
if (_errs167 === errors) {
|
|
6868
|
+
if (data63.kind !== void 0) {
|
|
6869
|
+
let data71 = data63.kind;
|
|
6870
|
+
const _errs168 = errors;
|
|
6871
|
+
if (typeof data71 !== "string") {
|
|
6855
6872
|
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" };
|
|
6856
6873
|
if (vErrors === null) {
|
|
6857
6874
|
vErrors = [err28];
|
|
@@ -6860,7 +6877,7 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
6860
6877
|
}
|
|
6861
6878
|
errors++;
|
|
6862
6879
|
}
|
|
6863
|
-
if ("credential" !==
|
|
6880
|
+
if ("credential" !== data71) {
|
|
6864
6881
|
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" };
|
|
6865
6882
|
if (vErrors === null) {
|
|
6866
6883
|
vErrors = [err29];
|
|
@@ -6869,15 +6886,15 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
6869
6886
|
}
|
|
6870
6887
|
errors++;
|
|
6871
6888
|
}
|
|
6872
|
-
var valid24 =
|
|
6889
|
+
var valid24 = _errs168 === errors;
|
|
6873
6890
|
} else {
|
|
6874
6891
|
var valid24 = true;
|
|
6875
6892
|
}
|
|
6876
6893
|
if (valid24) {
|
|
6877
|
-
if (
|
|
6878
|
-
let
|
|
6879
|
-
const
|
|
6880
|
-
if (typeof
|
|
6894
|
+
if (data63.credential !== void 0) {
|
|
6895
|
+
let data72 = data63.credential;
|
|
6896
|
+
const _errs170 = errors;
|
|
6897
|
+
if (typeof data72 !== "string") {
|
|
6881
6898
|
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" };
|
|
6882
6899
|
if (vErrors === null) {
|
|
6883
6900
|
vErrors = [err30];
|
|
@@ -6886,7 +6903,7 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
6886
6903
|
}
|
|
6887
6904
|
errors++;
|
|
6888
6905
|
}
|
|
6889
|
-
if (!(
|
|
6906
|
+
if (!(data72 === "workos_jwt" || data72 === "workos_api_key" || data72 === "service_token")) {
|
|
6890
6907
|
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" };
|
|
6891
6908
|
if (vErrors === null) {
|
|
6892
6909
|
vErrors = [err31];
|
|
@@ -6895,7 +6912,7 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
6895
6912
|
}
|
|
6896
6913
|
errors++;
|
|
6897
6914
|
}
|
|
6898
|
-
var valid24 =
|
|
6915
|
+
var valid24 = _errs170 === errors;
|
|
6899
6916
|
} else {
|
|
6900
6917
|
var valid24 = true;
|
|
6901
6918
|
}
|
|
@@ -6912,7 +6929,7 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
6912
6929
|
errors++;
|
|
6913
6930
|
}
|
|
6914
6931
|
}
|
|
6915
|
-
var _valid1 =
|
|
6932
|
+
var _valid1 = _errs165 === errors;
|
|
6916
6933
|
if (_valid1 && valid20) {
|
|
6917
6934
|
valid20 = false;
|
|
6918
6935
|
passing0 = [passing0, 3];
|
|
@@ -6938,16 +6955,16 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
6938
6955
|
validate29.errors = vErrors;
|
|
6939
6956
|
return false;
|
|
6940
6957
|
} else {
|
|
6941
|
-
errors =
|
|
6958
|
+
errors = _errs141;
|
|
6942
6959
|
if (vErrors !== null) {
|
|
6943
|
-
if (
|
|
6944
|
-
vErrors.length =
|
|
6960
|
+
if (_errs141) {
|
|
6961
|
+
vErrors.length = _errs141;
|
|
6945
6962
|
} else {
|
|
6946
6963
|
vErrors = null;
|
|
6947
6964
|
}
|
|
6948
6965
|
}
|
|
6949
6966
|
}
|
|
6950
|
-
var valid19 =
|
|
6967
|
+
var valid19 = _errs140 === errors;
|
|
6951
6968
|
if (!valid19) {
|
|
6952
6969
|
break;
|
|
6953
6970
|
}
|
|
@@ -6957,7 +6974,7 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
6957
6974
|
return false;
|
|
6958
6975
|
}
|
|
6959
6976
|
}
|
|
6960
|
-
var valid13 =
|
|
6977
|
+
var valid13 = _errs138 === errors;
|
|
6961
6978
|
} else {
|
|
6962
6979
|
var valid13 = true;
|
|
6963
6980
|
}
|
|
@@ -6969,18 +6986,18 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
6969
6986
|
return false;
|
|
6970
6987
|
}
|
|
6971
6988
|
}
|
|
6972
|
-
var valid1 =
|
|
6989
|
+
var valid1 = _errs111 === errors;
|
|
6973
6990
|
} else {
|
|
6974
6991
|
var valid1 = true;
|
|
6975
6992
|
}
|
|
6976
6993
|
if (valid1) {
|
|
6977
6994
|
if (data.truncated !== void 0) {
|
|
6978
|
-
const
|
|
6995
|
+
const _errs172 = errors;
|
|
6979
6996
|
if (typeof data.truncated !== "boolean") {
|
|
6980
6997
|
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" }];
|
|
6981
6998
|
return false;
|
|
6982
6999
|
}
|
|
6983
|
-
var valid1 =
|
|
7000
|
+
var valid1 = _errs172 === errors;
|
|
6984
7001
|
} else {
|
|
6985
7002
|
var valid1 = true;
|
|
6986
7003
|
}
|