@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
|
@@ -17870,7 +17870,7 @@ function validate28(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
17870
17870
|
return errors === 0;
|
|
17871
17871
|
}
|
|
17872
17872
|
validate28.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
|
|
17873
|
-
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": {} };
|
|
17873
|
+
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": {} };
|
|
17874
17874
|
function validate29(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
17875
17875
|
;
|
|
17876
17876
|
let vErrors = null;
|
|
@@ -17896,7 +17896,7 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
17896
17896
|
if (errors === _errs3) {
|
|
17897
17897
|
if (data0 && typeof data0 == "object" && !Array.isArray(data0)) {
|
|
17898
17898
|
let missing1;
|
|
17899
|
-
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")) {
|
|
17899
|
+
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")) {
|
|
17900
17900
|
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 + "'" }];
|
|
17901
17901
|
return false;
|
|
17902
17902
|
} else {
|
|
@@ -18046,15 +18046,15 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
18046
18046
|
var valid2 = true;
|
|
18047
18047
|
}
|
|
18048
18048
|
if (valid2) {
|
|
18049
|
-
if (data0.
|
|
18050
|
-
let data12 = data0.
|
|
18049
|
+
if (data0.stage !== void 0) {
|
|
18050
|
+
let data12 = data0.stage;
|
|
18051
18051
|
const _errs28 = errors;
|
|
18052
18052
|
if (typeof data12 !== "string") {
|
|
18053
|
-
validate29.errors = [{ instancePath: instancePath + "/decision/
|
|
18053
|
+
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" }];
|
|
18054
18054
|
return false;
|
|
18055
18055
|
}
|
|
18056
|
-
if (!(data12 === "
|
|
18057
|
-
validate29.errors = [{ instancePath: instancePath + "/decision/
|
|
18056
|
+
if (!(data12 === "draft" || data12 === "provisional" || data12 === "adopted" || data12 === "superseded" || data12 === "abandoned")) {
|
|
18057
|
+
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" }];
|
|
18058
18058
|
return false;
|
|
18059
18059
|
}
|
|
18060
18060
|
var valid2 = _errs28 === errors;
|
|
@@ -18062,97 +18062,97 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
18062
18062
|
var valid2 = true;
|
|
18063
18063
|
}
|
|
18064
18064
|
if (valid2) {
|
|
18065
|
-
if (data0.
|
|
18066
|
-
let data13 = data0.
|
|
18065
|
+
if (data0.status !== void 0) {
|
|
18066
|
+
let data13 = data0.status;
|
|
18067
18067
|
const _errs30 = errors;
|
|
18068
|
-
|
|
18069
|
-
|
|
18070
|
-
|
|
18071
|
-
|
|
18072
|
-
|
|
18073
|
-
|
|
18074
|
-
|
|
18068
|
+
if (typeof data13 !== "string") {
|
|
18069
|
+
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" }];
|
|
18070
|
+
return false;
|
|
18071
|
+
}
|
|
18072
|
+
if (!(data13 === "active" || data13 === "superseded" || data13 === "under_review")) {
|
|
18073
|
+
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" }];
|
|
18074
|
+
return false;
|
|
18075
|
+
}
|
|
18076
|
+
var valid2 = _errs30 === errors;
|
|
18077
|
+
} else {
|
|
18078
|
+
var valid2 = true;
|
|
18079
|
+
}
|
|
18080
|
+
if (valid2) {
|
|
18081
|
+
if (data0.supersededBy !== void 0) {
|
|
18082
|
+
let data14 = data0.supersededBy;
|
|
18083
|
+
const _errs32 = errors;
|
|
18084
|
+
const _errs33 = errors;
|
|
18085
|
+
let valid5 = false;
|
|
18086
|
+
const _errs34 = errors;
|
|
18087
|
+
if (errors === _errs34) {
|
|
18088
|
+
if (typeof data14 === "string") {
|
|
18089
|
+
if (func1(data14) < 1) {
|
|
18090
|
+
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" };
|
|
18091
|
+
if (vErrors === null) {
|
|
18092
|
+
vErrors = [err0];
|
|
18093
|
+
} else {
|
|
18094
|
+
vErrors.push(err0);
|
|
18095
|
+
}
|
|
18096
|
+
errors++;
|
|
18097
|
+
}
|
|
18098
|
+
} else {
|
|
18099
|
+
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" };
|
|
18075
18100
|
if (vErrors === null) {
|
|
18076
|
-
vErrors = [
|
|
18101
|
+
vErrors = [err1];
|
|
18077
18102
|
} else {
|
|
18078
|
-
vErrors.push(
|
|
18103
|
+
vErrors.push(err1);
|
|
18079
18104
|
}
|
|
18080
18105
|
errors++;
|
|
18081
18106
|
}
|
|
18082
|
-
}
|
|
18083
|
-
|
|
18107
|
+
}
|
|
18108
|
+
var _valid0 = _errs34 === errors;
|
|
18109
|
+
valid5 = valid5 || _valid0;
|
|
18110
|
+
const _errs36 = errors;
|
|
18111
|
+
if (data14 !== null) {
|
|
18112
|
+
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" };
|
|
18084
18113
|
if (vErrors === null) {
|
|
18085
|
-
vErrors = [
|
|
18114
|
+
vErrors = [err2];
|
|
18086
18115
|
} else {
|
|
18087
|
-
vErrors.push(
|
|
18116
|
+
vErrors.push(err2);
|
|
18088
18117
|
}
|
|
18089
18118
|
errors++;
|
|
18090
18119
|
}
|
|
18091
|
-
|
|
18092
|
-
|
|
18093
|
-
|
|
18094
|
-
|
|
18095
|
-
|
|
18096
|
-
|
|
18097
|
-
if (vErrors === null) {
|
|
18098
|
-
vErrors = [err2];
|
|
18099
|
-
} else {
|
|
18100
|
-
vErrors.push(err2);
|
|
18101
|
-
}
|
|
18102
|
-
errors++;
|
|
18103
|
-
}
|
|
18104
|
-
var _valid0 = _errs34 === errors;
|
|
18105
|
-
valid5 = valid5 || _valid0;
|
|
18106
|
-
if (!valid5) {
|
|
18107
|
-
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" };
|
|
18108
|
-
if (vErrors === null) {
|
|
18109
|
-
vErrors = [err3];
|
|
18110
|
-
} else {
|
|
18111
|
-
vErrors.push(err3);
|
|
18112
|
-
}
|
|
18113
|
-
errors++;
|
|
18114
|
-
validate29.errors = vErrors;
|
|
18115
|
-
return false;
|
|
18116
|
-
} else {
|
|
18117
|
-
errors = _errs31;
|
|
18118
|
-
if (vErrors !== null) {
|
|
18119
|
-
if (_errs31) {
|
|
18120
|
-
vErrors.length = _errs31;
|
|
18120
|
+
var _valid0 = _errs36 === errors;
|
|
18121
|
+
valid5 = valid5 || _valid0;
|
|
18122
|
+
if (!valid5) {
|
|
18123
|
+
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" };
|
|
18124
|
+
if (vErrors === null) {
|
|
18125
|
+
vErrors = [err3];
|
|
18121
18126
|
} else {
|
|
18122
|
-
vErrors
|
|
18127
|
+
vErrors.push(err3);
|
|
18123
18128
|
}
|
|
18124
|
-
|
|
18125
|
-
|
|
18126
|
-
var valid2 = _errs30 === errors;
|
|
18127
|
-
} else {
|
|
18128
|
-
var valid2 = true;
|
|
18129
|
-
}
|
|
18130
|
-
if (valid2) {
|
|
18131
|
-
if (data0.confidence !== void 0) {
|
|
18132
|
-
let data14 = data0.confidence;
|
|
18133
|
-
const _errs36 = errors;
|
|
18134
|
-
if (typeof data14 !== "string") {
|
|
18135
|
-
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" }];
|
|
18136
|
-
return false;
|
|
18137
|
-
}
|
|
18138
|
-
if (!(data14 === "high" || data14 === "medium" || data14 === "low")) {
|
|
18139
|
-
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" }];
|
|
18129
|
+
errors++;
|
|
18130
|
+
validate29.errors = vErrors;
|
|
18140
18131
|
return false;
|
|
18132
|
+
} else {
|
|
18133
|
+
errors = _errs33;
|
|
18134
|
+
if (vErrors !== null) {
|
|
18135
|
+
if (_errs33) {
|
|
18136
|
+
vErrors.length = _errs33;
|
|
18137
|
+
} else {
|
|
18138
|
+
vErrors = null;
|
|
18139
|
+
}
|
|
18140
|
+
}
|
|
18141
18141
|
}
|
|
18142
|
-
var valid2 =
|
|
18142
|
+
var valid2 = _errs32 === errors;
|
|
18143
18143
|
} else {
|
|
18144
18144
|
var valid2 = true;
|
|
18145
18145
|
}
|
|
18146
18146
|
if (valid2) {
|
|
18147
|
-
if (data0.
|
|
18148
|
-
let data15 = data0.
|
|
18147
|
+
if (data0.confidence !== void 0) {
|
|
18148
|
+
let data15 = data0.confidence;
|
|
18149
18149
|
const _errs38 = errors;
|
|
18150
18150
|
if (typeof data15 !== "string") {
|
|
18151
|
-
validate29.errors = [{ instancePath: instancePath + "/decision/
|
|
18151
|
+
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" }];
|
|
18152
18152
|
return false;
|
|
18153
18153
|
}
|
|
18154
|
-
if (!(data15 === "high" || data15 === "low")) {
|
|
18155
|
-
validate29.errors = [{ instancePath: instancePath + "/decision/
|
|
18154
|
+
if (!(data15 === "high" || data15 === "medium" || data15 === "low")) {
|
|
18155
|
+
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" }];
|
|
18156
18156
|
return false;
|
|
18157
18157
|
}
|
|
18158
18158
|
var valid2 = _errs38 === errors;
|
|
@@ -18160,10 +18160,15 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
18160
18160
|
var valid2 = true;
|
|
18161
18161
|
}
|
|
18162
18162
|
if (valid2) {
|
|
18163
|
-
if (data0.
|
|
18163
|
+
if (data0.reversibility !== void 0) {
|
|
18164
|
+
let data16 = data0.reversibility;
|
|
18164
18165
|
const _errs40 = errors;
|
|
18165
|
-
if (typeof
|
|
18166
|
-
validate29.errors = [{ instancePath: instancePath + "/decision/
|
|
18166
|
+
if (typeof data16 !== "string") {
|
|
18167
|
+
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" }];
|
|
18168
|
+
return false;
|
|
18169
|
+
}
|
|
18170
|
+
if (!(data16 === "high" || data16 === "low")) {
|
|
18171
|
+
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" }];
|
|
18167
18172
|
return false;
|
|
18168
18173
|
}
|
|
18169
18174
|
var valid2 = _errs40 === errors;
|
|
@@ -18171,11 +18176,10 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
18171
18176
|
var valid2 = true;
|
|
18172
18177
|
}
|
|
18173
18178
|
if (valid2) {
|
|
18174
|
-
if (data0.
|
|
18175
|
-
let data17 = data0.respondedAt;
|
|
18179
|
+
if (data0.confirmed !== void 0) {
|
|
18176
18180
|
const _errs42 = errors;
|
|
18177
|
-
if (
|
|
18178
|
-
validate29.errors = [{ instancePath: instancePath + "/decision/
|
|
18181
|
+
if (typeof data0.confirmed !== "boolean") {
|
|
18182
|
+
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" }];
|
|
18179
18183
|
return false;
|
|
18180
18184
|
}
|
|
18181
18185
|
var valid2 = _errs42 === errors;
|
|
@@ -18183,11 +18187,11 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
18183
18187
|
var valid2 = true;
|
|
18184
18188
|
}
|
|
18185
18189
|
if (valid2) {
|
|
18186
|
-
if (data0.
|
|
18187
|
-
let data18 = data0.
|
|
18190
|
+
if (data0.respondedAt !== void 0) {
|
|
18191
|
+
let data18 = data0.respondedAt;
|
|
18188
18192
|
const _errs44 = errors;
|
|
18189
18193
|
if (!(typeof data18 == "number" && isFinite(data18))) {
|
|
18190
|
-
validate29.errors = [{ instancePath: instancePath + "/decision/
|
|
18194
|
+
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" }];
|
|
18191
18195
|
return false;
|
|
18192
18196
|
}
|
|
18193
18197
|
var valid2 = _errs44 === errors;
|
|
@@ -18195,11 +18199,11 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
18195
18199
|
var valid2 = true;
|
|
18196
18200
|
}
|
|
18197
18201
|
if (valid2) {
|
|
18198
|
-
if (data0.
|
|
18199
|
-
let data19 = data0.
|
|
18202
|
+
if (data0.fanOut !== void 0) {
|
|
18203
|
+
let data19 = data0.fanOut;
|
|
18200
18204
|
const _errs46 = errors;
|
|
18201
18205
|
if (!(typeof data19 == "number" && isFinite(data19))) {
|
|
18202
|
-
validate29.errors = [{ instancePath: instancePath + "/decision/
|
|
18206
|
+
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" }];
|
|
18203
18207
|
return false;
|
|
18204
18208
|
}
|
|
18205
18209
|
var valid2 = _errs46 === errors;
|
|
@@ -18207,16 +18211,29 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
18207
18211
|
var valid2 = true;
|
|
18208
18212
|
}
|
|
18209
18213
|
if (valid2) {
|
|
18210
|
-
if (data0.
|
|
18214
|
+
if (data0.classifiedAt !== void 0) {
|
|
18215
|
+
let data20 = data0.classifiedAt;
|
|
18211
18216
|
const _errs48 = errors;
|
|
18212
|
-
if (typeof
|
|
18213
|
-
validate29.errors = [{ instancePath: instancePath + "/decision/
|
|
18217
|
+
if (!(typeof data20 == "number" && isFinite(data20))) {
|
|
18218
|
+
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" }];
|
|
18214
18219
|
return false;
|
|
18215
18220
|
}
|
|
18216
18221
|
var valid2 = _errs48 === errors;
|
|
18217
18222
|
} else {
|
|
18218
18223
|
var valid2 = true;
|
|
18219
18224
|
}
|
|
18225
|
+
if (valid2) {
|
|
18226
|
+
if (data0.authorName !== void 0) {
|
|
18227
|
+
const _errs50 = errors;
|
|
18228
|
+
if (typeof data0.authorName !== "string") {
|
|
18229
|
+
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" }];
|
|
18230
|
+
return false;
|
|
18231
|
+
}
|
|
18232
|
+
var valid2 = _errs50 === errors;
|
|
18233
|
+
} else {
|
|
18234
|
+
var valid2 = true;
|
|
18235
|
+
}
|
|
18236
|
+
}
|
|
18220
18237
|
}
|
|
18221
18238
|
}
|
|
18222
18239
|
}
|
|
@@ -18246,19 +18263,19 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
18246
18263
|
}
|
|
18247
18264
|
if (valid1) {
|
|
18248
18265
|
if (data.files !== void 0) {
|
|
18249
|
-
let
|
|
18250
|
-
const
|
|
18251
|
-
if (errors ===
|
|
18252
|
-
if (Array.isArray(
|
|
18266
|
+
let data22 = data.files;
|
|
18267
|
+
const _errs52 = errors;
|
|
18268
|
+
if (errors === _errs52) {
|
|
18269
|
+
if (Array.isArray(data22)) {
|
|
18253
18270
|
var valid6 = true;
|
|
18254
|
-
const len2 =
|
|
18271
|
+
const len2 = data22.length;
|
|
18255
18272
|
for (let i2 = 0; i2 < len2; i2++) {
|
|
18256
|
-
const
|
|
18257
|
-
if (typeof
|
|
18273
|
+
const _errs54 = errors;
|
|
18274
|
+
if (typeof data22[i2] !== "string") {
|
|
18258
18275
|
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" }];
|
|
18259
18276
|
return false;
|
|
18260
18277
|
}
|
|
18261
|
-
var valid6 =
|
|
18278
|
+
var valid6 = _errs54 === errors;
|
|
18262
18279
|
if (!valid6) {
|
|
18263
18280
|
break;
|
|
18264
18281
|
}
|
|
@@ -18268,97 +18285,97 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
18268
18285
|
return false;
|
|
18269
18286
|
}
|
|
18270
18287
|
}
|
|
18271
|
-
var valid1 =
|
|
18288
|
+
var valid1 = _errs52 === errors;
|
|
18272
18289
|
} else {
|
|
18273
18290
|
var valid1 = true;
|
|
18274
18291
|
}
|
|
18275
18292
|
if (valid1) {
|
|
18276
18293
|
if (data.flags !== void 0) {
|
|
18277
|
-
let
|
|
18278
|
-
const
|
|
18279
|
-
if (errors ===
|
|
18280
|
-
if (Array.isArray(
|
|
18294
|
+
let data24 = data.flags;
|
|
18295
|
+
const _errs56 = errors;
|
|
18296
|
+
if (errors === _errs56) {
|
|
18297
|
+
if (Array.isArray(data24)) {
|
|
18281
18298
|
var valid7 = true;
|
|
18282
|
-
const len3 =
|
|
18299
|
+
const len3 = data24.length;
|
|
18283
18300
|
for (let i3 = 0; i3 < len3; i3++) {
|
|
18284
|
-
let
|
|
18285
|
-
const
|
|
18286
|
-
if (errors ===
|
|
18287
|
-
if (
|
|
18301
|
+
let data25 = data24[i3];
|
|
18302
|
+
const _errs58 = errors;
|
|
18303
|
+
if (errors === _errs58) {
|
|
18304
|
+
if (data25 && typeof data25 == "object" && !Array.isArray(data25)) {
|
|
18288
18305
|
let missing2;
|
|
18289
|
-
if (
|
|
18306
|
+
if (data25.type === void 0 && (missing2 = "type") || data25.flaggedAt === void 0 && (missing2 = "flaggedAt")) {
|
|
18290
18307
|
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 + "'" }];
|
|
18291
18308
|
return false;
|
|
18292
18309
|
} else {
|
|
18293
|
-
if (
|
|
18294
|
-
let
|
|
18295
|
-
const
|
|
18296
|
-
if (typeof
|
|
18310
|
+
if (data25.type !== void 0) {
|
|
18311
|
+
let data26 = data25.type;
|
|
18312
|
+
const _errs61 = errors;
|
|
18313
|
+
if (typeof data26 !== "string") {
|
|
18297
18314
|
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" }];
|
|
18298
18315
|
return false;
|
|
18299
18316
|
}
|
|
18300
|
-
if (!(
|
|
18317
|
+
if (!(data26 === "file_edit" || data26 === "supersession" || data26 === "invalidation" || data26 === "confirmation_request")) {
|
|
18301
18318
|
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" }];
|
|
18302
18319
|
return false;
|
|
18303
18320
|
}
|
|
18304
|
-
var valid8 =
|
|
18321
|
+
var valid8 = _errs61 === errors;
|
|
18305
18322
|
} else {
|
|
18306
18323
|
var valid8 = true;
|
|
18307
18324
|
}
|
|
18308
18325
|
if (valid8) {
|
|
18309
|
-
if (
|
|
18310
|
-
const
|
|
18311
|
-
if (typeof
|
|
18326
|
+
if (data25.file !== void 0) {
|
|
18327
|
+
const _errs63 = errors;
|
|
18328
|
+
if (typeof data25.file !== "string") {
|
|
18312
18329
|
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" }];
|
|
18313
18330
|
return false;
|
|
18314
18331
|
}
|
|
18315
|
-
var valid8 =
|
|
18332
|
+
var valid8 = _errs63 === errors;
|
|
18316
18333
|
} else {
|
|
18317
18334
|
var valid8 = true;
|
|
18318
18335
|
}
|
|
18319
18336
|
if (valid8) {
|
|
18320
|
-
if (
|
|
18321
|
-
let
|
|
18322
|
-
const
|
|
18323
|
-
if (!(typeof
|
|
18337
|
+
if (data25.flaggedAt !== void 0) {
|
|
18338
|
+
let data28 = data25.flaggedAt;
|
|
18339
|
+
const _errs65 = errors;
|
|
18340
|
+
if (!(typeof data28 == "number" && isFinite(data28))) {
|
|
18324
18341
|
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" }];
|
|
18325
18342
|
return false;
|
|
18326
18343
|
}
|
|
18327
|
-
var valid8 =
|
|
18344
|
+
var valid8 = _errs65 === errors;
|
|
18328
18345
|
} else {
|
|
18329
18346
|
var valid8 = true;
|
|
18330
18347
|
}
|
|
18331
18348
|
if (valid8) {
|
|
18332
|
-
if (
|
|
18333
|
-
let
|
|
18334
|
-
const
|
|
18335
|
-
if (!(typeof
|
|
18349
|
+
if (data25.acknowledgedAt !== void 0) {
|
|
18350
|
+
let data29 = data25.acknowledgedAt;
|
|
18351
|
+
const _errs67 = errors;
|
|
18352
|
+
if (!(typeof data29 == "number" && isFinite(data29))) {
|
|
18336
18353
|
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" }];
|
|
18337
18354
|
return false;
|
|
18338
18355
|
}
|
|
18339
|
-
var valid8 =
|
|
18356
|
+
var valid8 = _errs67 === errors;
|
|
18340
18357
|
} else {
|
|
18341
18358
|
var valid8 = true;
|
|
18342
18359
|
}
|
|
18343
18360
|
if (valid8) {
|
|
18344
|
-
if (
|
|
18345
|
-
const
|
|
18346
|
-
if (typeof
|
|
18361
|
+
if (data25.gateVerdict !== void 0) {
|
|
18362
|
+
const _errs69 = errors;
|
|
18363
|
+
if (typeof data25.gateVerdict !== "string") {
|
|
18347
18364
|
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" }];
|
|
18348
18365
|
return false;
|
|
18349
18366
|
}
|
|
18350
|
-
var valid8 =
|
|
18367
|
+
var valid8 = _errs69 === errors;
|
|
18351
18368
|
} else {
|
|
18352
18369
|
var valid8 = true;
|
|
18353
18370
|
}
|
|
18354
18371
|
if (valid8) {
|
|
18355
|
-
if (
|
|
18356
|
-
const
|
|
18357
|
-
if (typeof
|
|
18372
|
+
if (data25.reason !== void 0) {
|
|
18373
|
+
const _errs71 = errors;
|
|
18374
|
+
if (typeof data25.reason !== "string") {
|
|
18358
18375
|
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" }];
|
|
18359
18376
|
return false;
|
|
18360
18377
|
}
|
|
18361
|
-
var valid8 =
|
|
18378
|
+
var valid8 = _errs71 === errors;
|
|
18362
18379
|
} else {
|
|
18363
18380
|
var valid8 = true;
|
|
18364
18381
|
}
|
|
@@ -18373,7 +18390,7 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
18373
18390
|
return false;
|
|
18374
18391
|
}
|
|
18375
18392
|
}
|
|
18376
|
-
var valid7 =
|
|
18393
|
+
var valid7 = _errs58 === errors;
|
|
18377
18394
|
if (!valid7) {
|
|
18378
18395
|
break;
|
|
18379
18396
|
}
|
|
@@ -18383,34 +18400,34 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
18383
18400
|
return false;
|
|
18384
18401
|
}
|
|
18385
18402
|
}
|
|
18386
|
-
var valid1 =
|
|
18403
|
+
var valid1 = _errs56 === errors;
|
|
18387
18404
|
} else {
|
|
18388
18405
|
var valid1 = true;
|
|
18389
18406
|
}
|
|
18390
18407
|
if (valid1) {
|
|
18391
18408
|
if (data.dependsOn !== void 0) {
|
|
18392
|
-
let
|
|
18393
|
-
const
|
|
18394
|
-
if (errors ===
|
|
18395
|
-
if (Array.isArray(
|
|
18409
|
+
let data32 = data.dependsOn;
|
|
18410
|
+
const _errs73 = errors;
|
|
18411
|
+
if (errors === _errs73) {
|
|
18412
|
+
if (Array.isArray(data32)) {
|
|
18396
18413
|
var valid9 = true;
|
|
18397
|
-
const len4 =
|
|
18414
|
+
const len4 = data32.length;
|
|
18398
18415
|
for (let i4 = 0; i4 < len4; i4++) {
|
|
18399
|
-
let
|
|
18400
|
-
const
|
|
18401
|
-
if (errors ===
|
|
18402
|
-
if (
|
|
18416
|
+
let data33 = data32[i4];
|
|
18417
|
+
const _errs75 = errors;
|
|
18418
|
+
if (errors === _errs75) {
|
|
18419
|
+
if (data33 && typeof data33 == "object" && !Array.isArray(data33)) {
|
|
18403
18420
|
let missing3;
|
|
18404
|
-
if (
|
|
18421
|
+
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")) {
|
|
18405
18422
|
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 + "'" }];
|
|
18406
18423
|
return false;
|
|
18407
18424
|
} else {
|
|
18408
|
-
if (
|
|
18409
|
-
let
|
|
18410
|
-
const
|
|
18411
|
-
if (errors ===
|
|
18412
|
-
if (typeof
|
|
18413
|
-
if (func1(
|
|
18425
|
+
if (data33.id !== void 0) {
|
|
18426
|
+
let data34 = data33.id;
|
|
18427
|
+
const _errs78 = errors;
|
|
18428
|
+
if (errors === _errs78) {
|
|
18429
|
+
if (typeof data34 === "string") {
|
|
18430
|
+
if (func1(data34) < 1) {
|
|
18414
18431
|
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" }];
|
|
18415
18432
|
return false;
|
|
18416
18433
|
}
|
|
@@ -18419,79 +18436,79 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
18419
18436
|
return false;
|
|
18420
18437
|
}
|
|
18421
18438
|
}
|
|
18422
|
-
var valid10 =
|
|
18439
|
+
var valid10 = _errs78 === errors;
|
|
18423
18440
|
} else {
|
|
18424
18441
|
var valid10 = true;
|
|
18425
18442
|
}
|
|
18426
18443
|
if (valid10) {
|
|
18427
|
-
if (
|
|
18428
|
-
const
|
|
18429
|
-
if (typeof
|
|
18444
|
+
if (data33.shortId !== void 0) {
|
|
18445
|
+
const _errs80 = errors;
|
|
18446
|
+
if (typeof data33.shortId !== "string") {
|
|
18430
18447
|
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" }];
|
|
18431
18448
|
return false;
|
|
18432
18449
|
}
|
|
18433
|
-
var valid10 =
|
|
18450
|
+
var valid10 = _errs80 === errors;
|
|
18434
18451
|
} else {
|
|
18435
18452
|
var valid10 = true;
|
|
18436
18453
|
}
|
|
18437
18454
|
if (valid10) {
|
|
18438
|
-
if (
|
|
18439
|
-
const
|
|
18440
|
-
if (typeof
|
|
18455
|
+
if (data33.intent !== void 0) {
|
|
18456
|
+
const _errs82 = errors;
|
|
18457
|
+
if (typeof data33.intent !== "string") {
|
|
18441
18458
|
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" }];
|
|
18442
18459
|
return false;
|
|
18443
18460
|
}
|
|
18444
|
-
var valid10 =
|
|
18461
|
+
var valid10 = _errs82 === errors;
|
|
18445
18462
|
} else {
|
|
18446
18463
|
var valid10 = true;
|
|
18447
18464
|
}
|
|
18448
18465
|
if (valid10) {
|
|
18449
|
-
if (
|
|
18450
|
-
const
|
|
18451
|
-
if (typeof
|
|
18466
|
+
if (data33.area !== void 0) {
|
|
18467
|
+
const _errs84 = errors;
|
|
18468
|
+
if (typeof data33.area !== "string") {
|
|
18452
18469
|
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" }];
|
|
18453
18470
|
return false;
|
|
18454
18471
|
}
|
|
18455
|
-
var valid10 =
|
|
18472
|
+
var valid10 = _errs84 === errors;
|
|
18456
18473
|
} else {
|
|
18457
18474
|
var valid10 = true;
|
|
18458
18475
|
}
|
|
18459
18476
|
if (valid10) {
|
|
18460
|
-
if (
|
|
18461
|
-
const
|
|
18462
|
-
if (typeof
|
|
18477
|
+
if (data33.authorName !== void 0) {
|
|
18478
|
+
const _errs86 = errors;
|
|
18479
|
+
if (typeof data33.authorName !== "string") {
|
|
18463
18480
|
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" }];
|
|
18464
18481
|
return false;
|
|
18465
18482
|
}
|
|
18466
|
-
var valid10 =
|
|
18483
|
+
var valid10 = _errs86 === errors;
|
|
18467
18484
|
} else {
|
|
18468
18485
|
var valid10 = true;
|
|
18469
18486
|
}
|
|
18470
18487
|
if (valid10) {
|
|
18471
|
-
if (
|
|
18472
|
-
let
|
|
18473
|
-
const
|
|
18474
|
-
if (!(typeof
|
|
18488
|
+
if (data33.classifiedAt !== void 0) {
|
|
18489
|
+
let data39 = data33.classifiedAt;
|
|
18490
|
+
const _errs88 = errors;
|
|
18491
|
+
if (!(typeof data39 == "number" && isFinite(data39))) {
|
|
18475
18492
|
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" }];
|
|
18476
18493
|
return false;
|
|
18477
18494
|
}
|
|
18478
|
-
var valid10 =
|
|
18495
|
+
var valid10 = _errs88 === errors;
|
|
18479
18496
|
} else {
|
|
18480
18497
|
var valid10 = true;
|
|
18481
18498
|
}
|
|
18482
18499
|
if (valid10) {
|
|
18483
|
-
if (
|
|
18484
|
-
let
|
|
18485
|
-
const
|
|
18486
|
-
if (typeof
|
|
18500
|
+
if (data33.status !== void 0) {
|
|
18501
|
+
let data40 = data33.status;
|
|
18502
|
+
const _errs90 = errors;
|
|
18503
|
+
if (typeof data40 !== "string") {
|
|
18487
18504
|
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" }];
|
|
18488
18505
|
return false;
|
|
18489
18506
|
}
|
|
18490
|
-
if (!(
|
|
18507
|
+
if (!(data40 === "active" || data40 === "superseded" || data40 === "under_review")) {
|
|
18491
18508
|
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" }];
|
|
18492
18509
|
return false;
|
|
18493
18510
|
}
|
|
18494
|
-
var valid10 =
|
|
18511
|
+
var valid10 = _errs90 === errors;
|
|
18495
18512
|
} else {
|
|
18496
18513
|
var valid10 = true;
|
|
18497
18514
|
}
|
|
@@ -18507,7 +18524,7 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
18507
18524
|
return false;
|
|
18508
18525
|
}
|
|
18509
18526
|
}
|
|
18510
|
-
var valid9 =
|
|
18527
|
+
var valid9 = _errs75 === errors;
|
|
18511
18528
|
if (!valid9) {
|
|
18512
18529
|
break;
|
|
18513
18530
|
}
|
|
@@ -18517,34 +18534,34 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
18517
18534
|
return false;
|
|
18518
18535
|
}
|
|
18519
18536
|
}
|
|
18520
|
-
var valid1 =
|
|
18537
|
+
var valid1 = _errs73 === errors;
|
|
18521
18538
|
} else {
|
|
18522
18539
|
var valid1 = true;
|
|
18523
18540
|
}
|
|
18524
18541
|
if (valid1) {
|
|
18525
18542
|
if (data.dependents !== void 0) {
|
|
18526
|
-
let
|
|
18527
|
-
const
|
|
18528
|
-
if (errors ===
|
|
18529
|
-
if (Array.isArray(
|
|
18543
|
+
let data41 = data.dependents;
|
|
18544
|
+
const _errs92 = errors;
|
|
18545
|
+
if (errors === _errs92) {
|
|
18546
|
+
if (Array.isArray(data41)) {
|
|
18530
18547
|
var valid11 = true;
|
|
18531
|
-
const len5 =
|
|
18548
|
+
const len5 = data41.length;
|
|
18532
18549
|
for (let i5 = 0; i5 < len5; i5++) {
|
|
18533
|
-
let
|
|
18534
|
-
const
|
|
18535
|
-
if (errors ===
|
|
18536
|
-
if (
|
|
18550
|
+
let data42 = data41[i5];
|
|
18551
|
+
const _errs94 = errors;
|
|
18552
|
+
if (errors === _errs94) {
|
|
18553
|
+
if (data42 && typeof data42 == "object" && !Array.isArray(data42)) {
|
|
18537
18554
|
let missing4;
|
|
18538
|
-
if (
|
|
18555
|
+
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")) {
|
|
18539
18556
|
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 + "'" }];
|
|
18540
18557
|
return false;
|
|
18541
18558
|
} else {
|
|
18542
|
-
if (
|
|
18543
|
-
let
|
|
18544
|
-
const
|
|
18545
|
-
if (errors ===
|
|
18546
|
-
if (typeof
|
|
18547
|
-
if (func1(
|
|
18559
|
+
if (data42.id !== void 0) {
|
|
18560
|
+
let data43 = data42.id;
|
|
18561
|
+
const _errs97 = errors;
|
|
18562
|
+
if (errors === _errs97) {
|
|
18563
|
+
if (typeof data43 === "string") {
|
|
18564
|
+
if (func1(data43) < 1) {
|
|
18548
18565
|
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" }];
|
|
18549
18566
|
return false;
|
|
18550
18567
|
}
|
|
@@ -18553,79 +18570,79 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
18553
18570
|
return false;
|
|
18554
18571
|
}
|
|
18555
18572
|
}
|
|
18556
|
-
var valid12 =
|
|
18573
|
+
var valid12 = _errs97 === errors;
|
|
18557
18574
|
} else {
|
|
18558
18575
|
var valid12 = true;
|
|
18559
18576
|
}
|
|
18560
18577
|
if (valid12) {
|
|
18561
|
-
if (
|
|
18562
|
-
const
|
|
18563
|
-
if (typeof
|
|
18578
|
+
if (data42.shortId !== void 0) {
|
|
18579
|
+
const _errs99 = errors;
|
|
18580
|
+
if (typeof data42.shortId !== "string") {
|
|
18564
18581
|
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" }];
|
|
18565
18582
|
return false;
|
|
18566
18583
|
}
|
|
18567
|
-
var valid12 =
|
|
18584
|
+
var valid12 = _errs99 === errors;
|
|
18568
18585
|
} else {
|
|
18569
18586
|
var valid12 = true;
|
|
18570
18587
|
}
|
|
18571
18588
|
if (valid12) {
|
|
18572
|
-
if (
|
|
18573
|
-
const
|
|
18574
|
-
if (typeof
|
|
18589
|
+
if (data42.intent !== void 0) {
|
|
18590
|
+
const _errs101 = errors;
|
|
18591
|
+
if (typeof data42.intent !== "string") {
|
|
18575
18592
|
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" }];
|
|
18576
18593
|
return false;
|
|
18577
18594
|
}
|
|
18578
|
-
var valid12 =
|
|
18595
|
+
var valid12 = _errs101 === errors;
|
|
18579
18596
|
} else {
|
|
18580
18597
|
var valid12 = true;
|
|
18581
18598
|
}
|
|
18582
18599
|
if (valid12) {
|
|
18583
|
-
if (
|
|
18584
|
-
const
|
|
18585
|
-
if (typeof
|
|
18600
|
+
if (data42.area !== void 0) {
|
|
18601
|
+
const _errs103 = errors;
|
|
18602
|
+
if (typeof data42.area !== "string") {
|
|
18586
18603
|
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" }];
|
|
18587
18604
|
return false;
|
|
18588
18605
|
}
|
|
18589
|
-
var valid12 =
|
|
18606
|
+
var valid12 = _errs103 === errors;
|
|
18590
18607
|
} else {
|
|
18591
18608
|
var valid12 = true;
|
|
18592
18609
|
}
|
|
18593
18610
|
if (valid12) {
|
|
18594
|
-
if (
|
|
18595
|
-
const
|
|
18596
|
-
if (typeof
|
|
18611
|
+
if (data42.authorName !== void 0) {
|
|
18612
|
+
const _errs105 = errors;
|
|
18613
|
+
if (typeof data42.authorName !== "string") {
|
|
18597
18614
|
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" }];
|
|
18598
18615
|
return false;
|
|
18599
18616
|
}
|
|
18600
|
-
var valid12 =
|
|
18617
|
+
var valid12 = _errs105 === errors;
|
|
18601
18618
|
} else {
|
|
18602
18619
|
var valid12 = true;
|
|
18603
18620
|
}
|
|
18604
18621
|
if (valid12) {
|
|
18605
|
-
if (
|
|
18606
|
-
let
|
|
18607
|
-
const
|
|
18608
|
-
if (!(typeof
|
|
18622
|
+
if (data42.classifiedAt !== void 0) {
|
|
18623
|
+
let data48 = data42.classifiedAt;
|
|
18624
|
+
const _errs107 = errors;
|
|
18625
|
+
if (!(typeof data48 == "number" && isFinite(data48))) {
|
|
18609
18626
|
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" }];
|
|
18610
18627
|
return false;
|
|
18611
18628
|
}
|
|
18612
|
-
var valid12 =
|
|
18629
|
+
var valid12 = _errs107 === errors;
|
|
18613
18630
|
} else {
|
|
18614
18631
|
var valid12 = true;
|
|
18615
18632
|
}
|
|
18616
18633
|
if (valid12) {
|
|
18617
|
-
if (
|
|
18618
|
-
let
|
|
18619
|
-
const
|
|
18620
|
-
if (typeof
|
|
18634
|
+
if (data42.status !== void 0) {
|
|
18635
|
+
let data49 = data42.status;
|
|
18636
|
+
const _errs109 = errors;
|
|
18637
|
+
if (typeof data49 !== "string") {
|
|
18621
18638
|
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" }];
|
|
18622
18639
|
return false;
|
|
18623
18640
|
}
|
|
18624
|
-
if (!(
|
|
18641
|
+
if (!(data49 === "active" || data49 === "superseded" || data49 === "under_review")) {
|
|
18625
18642
|
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" }];
|
|
18626
18643
|
return false;
|
|
18627
18644
|
}
|
|
18628
|
-
var valid12 =
|
|
18645
|
+
var valid12 = _errs109 === errors;
|
|
18629
18646
|
} else {
|
|
18630
18647
|
var valid12 = true;
|
|
18631
18648
|
}
|
|
@@ -18641,7 +18658,7 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
18641
18658
|
return false;
|
|
18642
18659
|
}
|
|
18643
18660
|
}
|
|
18644
|
-
var valid11 =
|
|
18661
|
+
var valid11 = _errs94 === errors;
|
|
18645
18662
|
if (!valid11) {
|
|
18646
18663
|
break;
|
|
18647
18664
|
}
|
|
@@ -18651,56 +18668,56 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
18651
18668
|
return false;
|
|
18652
18669
|
}
|
|
18653
18670
|
}
|
|
18654
|
-
var valid1 =
|
|
18671
|
+
var valid1 = _errs92 === errors;
|
|
18655
18672
|
} else {
|
|
18656
18673
|
var valid1 = true;
|
|
18657
18674
|
}
|
|
18658
18675
|
if (valid1) {
|
|
18659
18676
|
if (data.scope !== void 0) {
|
|
18660
|
-
let
|
|
18661
|
-
const
|
|
18662
|
-
if (errors ===
|
|
18663
|
-
if (
|
|
18677
|
+
let data50 = data.scope;
|
|
18678
|
+
const _errs111 = errors;
|
|
18679
|
+
if (errors === _errs111) {
|
|
18680
|
+
if (data50 && typeof data50 == "object" && !Array.isArray(data50)) {
|
|
18664
18681
|
let missing5;
|
|
18665
|
-
if (
|
|
18682
|
+
if (data50.location === void 0 && (missing5 = "location") || data50.time === void 0 && (missing5 = "time") || data50.users === void 0 && (missing5 = "users")) {
|
|
18666
18683
|
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 + "'" }];
|
|
18667
18684
|
return false;
|
|
18668
18685
|
} else {
|
|
18669
|
-
if (
|
|
18670
|
-
let
|
|
18671
|
-
const
|
|
18672
|
-
if (errors ===
|
|
18673
|
-
if (
|
|
18686
|
+
if (data50.location !== void 0) {
|
|
18687
|
+
let data51 = data50.location;
|
|
18688
|
+
const _errs114 = errors;
|
|
18689
|
+
if (errors === _errs114) {
|
|
18690
|
+
if (data51 && typeof data51 == "object" && !Array.isArray(data51)) {
|
|
18674
18691
|
let missing6;
|
|
18675
|
-
if (
|
|
18692
|
+
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")) {
|
|
18676
18693
|
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 + "'" }];
|
|
18677
18694
|
return false;
|
|
18678
18695
|
} else {
|
|
18679
|
-
if (
|
|
18680
|
-
const
|
|
18681
|
-
if (typeof
|
|
18696
|
+
if (data51.repository !== void 0) {
|
|
18697
|
+
const _errs117 = errors;
|
|
18698
|
+
if (typeof data51.repository !== "boolean") {
|
|
18682
18699
|
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" }];
|
|
18683
18700
|
return false;
|
|
18684
18701
|
}
|
|
18685
|
-
var valid14 =
|
|
18702
|
+
var valid14 = _errs117 === errors;
|
|
18686
18703
|
} else {
|
|
18687
18704
|
var valid14 = true;
|
|
18688
18705
|
}
|
|
18689
18706
|
if (valid14) {
|
|
18690
|
-
if (
|
|
18691
|
-
let
|
|
18692
|
-
const
|
|
18693
|
-
if (errors ===
|
|
18694
|
-
if (Array.isArray(
|
|
18707
|
+
if (data51.directories !== void 0) {
|
|
18708
|
+
let data53 = data51.directories;
|
|
18709
|
+
const _errs119 = errors;
|
|
18710
|
+
if (errors === _errs119) {
|
|
18711
|
+
if (Array.isArray(data53)) {
|
|
18695
18712
|
var valid15 = true;
|
|
18696
|
-
const len6 =
|
|
18713
|
+
const len6 = data53.length;
|
|
18697
18714
|
for (let i6 = 0; i6 < len6; i6++) {
|
|
18698
|
-
const
|
|
18699
|
-
if (typeof
|
|
18715
|
+
const _errs121 = errors;
|
|
18716
|
+
if (typeof data53[i6] !== "string") {
|
|
18700
18717
|
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" }];
|
|
18701
18718
|
return false;
|
|
18702
18719
|
}
|
|
18703
|
-
var valid15 =
|
|
18720
|
+
var valid15 = _errs121 === errors;
|
|
18704
18721
|
if (!valid15) {
|
|
18705
18722
|
break;
|
|
18706
18723
|
}
|
|
@@ -18710,25 +18727,25 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
18710
18727
|
return false;
|
|
18711
18728
|
}
|
|
18712
18729
|
}
|
|
18713
|
-
var valid14 =
|
|
18730
|
+
var valid14 = _errs119 === errors;
|
|
18714
18731
|
} else {
|
|
18715
18732
|
var valid14 = true;
|
|
18716
18733
|
}
|
|
18717
18734
|
if (valid14) {
|
|
18718
|
-
if (
|
|
18719
|
-
let
|
|
18720
|
-
const
|
|
18721
|
-
if (errors ===
|
|
18722
|
-
if (Array.isArray(
|
|
18735
|
+
if (data51.globs !== void 0) {
|
|
18736
|
+
let data55 = data51.globs;
|
|
18737
|
+
const _errs123 = errors;
|
|
18738
|
+
if (errors === _errs123) {
|
|
18739
|
+
if (Array.isArray(data55)) {
|
|
18723
18740
|
var valid16 = true;
|
|
18724
|
-
const len7 =
|
|
18741
|
+
const len7 = data55.length;
|
|
18725
18742
|
for (let i7 = 0; i7 < len7; i7++) {
|
|
18726
|
-
const
|
|
18727
|
-
if (typeof
|
|
18743
|
+
const _errs125 = errors;
|
|
18744
|
+
if (typeof data55[i7] !== "string") {
|
|
18728
18745
|
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" }];
|
|
18729
18746
|
return false;
|
|
18730
18747
|
}
|
|
18731
|
-
var valid16 =
|
|
18748
|
+
var valid16 = _errs125 === errors;
|
|
18732
18749
|
if (!valid16) {
|
|
18733
18750
|
break;
|
|
18734
18751
|
}
|
|
@@ -18738,25 +18755,25 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
18738
18755
|
return false;
|
|
18739
18756
|
}
|
|
18740
18757
|
}
|
|
18741
|
-
var valid14 =
|
|
18758
|
+
var valid14 = _errs123 === errors;
|
|
18742
18759
|
} else {
|
|
18743
18760
|
var valid14 = true;
|
|
18744
18761
|
}
|
|
18745
18762
|
if (valid14) {
|
|
18746
|
-
if (
|
|
18747
|
-
let
|
|
18748
|
-
const
|
|
18749
|
-
if (errors ===
|
|
18750
|
-
if (Array.isArray(
|
|
18763
|
+
if (data51.branches !== void 0) {
|
|
18764
|
+
let data57 = data51.branches;
|
|
18765
|
+
const _errs127 = errors;
|
|
18766
|
+
if (errors === _errs127) {
|
|
18767
|
+
if (Array.isArray(data57)) {
|
|
18751
18768
|
var valid17 = true;
|
|
18752
|
-
const len8 =
|
|
18769
|
+
const len8 = data57.length;
|
|
18753
18770
|
for (let i8 = 0; i8 < len8; i8++) {
|
|
18754
|
-
const
|
|
18755
|
-
if (typeof
|
|
18771
|
+
const _errs129 = errors;
|
|
18772
|
+
if (typeof data57[i8] !== "string") {
|
|
18756
18773
|
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" }];
|
|
18757
18774
|
return false;
|
|
18758
18775
|
}
|
|
18759
|
-
var valid17 =
|
|
18776
|
+
var valid17 = _errs129 === errors;
|
|
18760
18777
|
if (!valid17) {
|
|
18761
18778
|
break;
|
|
18762
18779
|
}
|
|
@@ -18766,7 +18783,7 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
18766
18783
|
return false;
|
|
18767
18784
|
}
|
|
18768
18785
|
}
|
|
18769
|
-
var valid14 =
|
|
18786
|
+
var valid14 = _errs127 === errors;
|
|
18770
18787
|
} else {
|
|
18771
18788
|
var valid14 = true;
|
|
18772
18789
|
}
|
|
@@ -18779,62 +18796,62 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
18779
18796
|
return false;
|
|
18780
18797
|
}
|
|
18781
18798
|
}
|
|
18782
|
-
var valid13 =
|
|
18799
|
+
var valid13 = _errs114 === errors;
|
|
18783
18800
|
} else {
|
|
18784
18801
|
var valid13 = true;
|
|
18785
18802
|
}
|
|
18786
18803
|
if (valid13) {
|
|
18787
|
-
if (
|
|
18788
|
-
let
|
|
18789
|
-
const
|
|
18790
|
-
if (errors ===
|
|
18791
|
-
if (
|
|
18792
|
-
if (
|
|
18793
|
-
let
|
|
18794
|
-
const
|
|
18795
|
-
if (!(typeof
|
|
18804
|
+
if (data50.time !== void 0) {
|
|
18805
|
+
let data59 = data50.time;
|
|
18806
|
+
const _errs131 = errors;
|
|
18807
|
+
if (errors === _errs131) {
|
|
18808
|
+
if (data59 && typeof data59 == "object" && !Array.isArray(data59)) {
|
|
18809
|
+
if (data59.effectiveFrom !== void 0) {
|
|
18810
|
+
let data60 = data59.effectiveFrom;
|
|
18811
|
+
const _errs134 = errors;
|
|
18812
|
+
if (!(typeof data60 == "number" && (!(data60 % 1) && !isNaN(data60)) && isFinite(data60))) {
|
|
18796
18813
|
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" }];
|
|
18797
18814
|
return false;
|
|
18798
18815
|
}
|
|
18799
|
-
if (errors ===
|
|
18800
|
-
if (typeof
|
|
18801
|
-
if (
|
|
18816
|
+
if (errors === _errs134) {
|
|
18817
|
+
if (typeof data60 == "number" && isFinite(data60)) {
|
|
18818
|
+
if (data60 > 9007199254740991 || isNaN(data60)) {
|
|
18802
18819
|
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" }];
|
|
18803
18820
|
return false;
|
|
18804
18821
|
} else {
|
|
18805
|
-
if (
|
|
18822
|
+
if (data60 < -9007199254740991 || isNaN(data60)) {
|
|
18806
18823
|
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" }];
|
|
18807
18824
|
return false;
|
|
18808
18825
|
}
|
|
18809
18826
|
}
|
|
18810
18827
|
}
|
|
18811
18828
|
}
|
|
18812
|
-
var valid18 =
|
|
18829
|
+
var valid18 = _errs134 === errors;
|
|
18813
18830
|
} else {
|
|
18814
18831
|
var valid18 = true;
|
|
18815
18832
|
}
|
|
18816
18833
|
if (valid18) {
|
|
18817
|
-
if (
|
|
18818
|
-
let
|
|
18819
|
-
const
|
|
18820
|
-
if (!(typeof
|
|
18834
|
+
if (data59.effectiveUntil !== void 0) {
|
|
18835
|
+
let data61 = data59.effectiveUntil;
|
|
18836
|
+
const _errs136 = errors;
|
|
18837
|
+
if (!(typeof data61 == "number" && (!(data61 % 1) && !isNaN(data61)) && isFinite(data61))) {
|
|
18821
18838
|
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" }];
|
|
18822
18839
|
return false;
|
|
18823
18840
|
}
|
|
18824
|
-
if (errors ===
|
|
18825
|
-
if (typeof
|
|
18826
|
-
if (
|
|
18841
|
+
if (errors === _errs136) {
|
|
18842
|
+
if (typeof data61 == "number" && isFinite(data61)) {
|
|
18843
|
+
if (data61 > 9007199254740991 || isNaN(data61)) {
|
|
18827
18844
|
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" }];
|
|
18828
18845
|
return false;
|
|
18829
18846
|
} else {
|
|
18830
|
-
if (
|
|
18847
|
+
if (data61 < -9007199254740991 || isNaN(data61)) {
|
|
18831
18848
|
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" }];
|
|
18832
18849
|
return false;
|
|
18833
18850
|
}
|
|
18834
18851
|
}
|
|
18835
18852
|
}
|
|
18836
18853
|
}
|
|
18837
|
-
var valid18 =
|
|
18854
|
+
var valid18 = _errs136 === errors;
|
|
18838
18855
|
} else {
|
|
18839
18856
|
var valid18 = true;
|
|
18840
18857
|
}
|
|
@@ -18844,29 +18861,29 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
18844
18861
|
return false;
|
|
18845
18862
|
}
|
|
18846
18863
|
}
|
|
18847
|
-
var valid13 =
|
|
18864
|
+
var valid13 = _errs131 === errors;
|
|
18848
18865
|
} else {
|
|
18849
18866
|
var valid13 = true;
|
|
18850
18867
|
}
|
|
18851
18868
|
if (valid13) {
|
|
18852
|
-
if (
|
|
18853
|
-
let
|
|
18854
|
-
const
|
|
18855
|
-
if (errors ===
|
|
18856
|
-
if (Array.isArray(
|
|
18869
|
+
if (data50.users !== void 0) {
|
|
18870
|
+
let data62 = data50.users;
|
|
18871
|
+
const _errs138 = errors;
|
|
18872
|
+
if (errors === _errs138) {
|
|
18873
|
+
if (Array.isArray(data62)) {
|
|
18857
18874
|
var valid19 = true;
|
|
18858
|
-
const len9 =
|
|
18875
|
+
const len9 = data62.length;
|
|
18859
18876
|
for (let i9 = 0; i9 < len9; i9++) {
|
|
18860
|
-
let
|
|
18861
|
-
const
|
|
18862
|
-
const
|
|
18877
|
+
let data63 = data62[i9];
|
|
18878
|
+
const _errs140 = errors;
|
|
18879
|
+
const _errs141 = errors;
|
|
18863
18880
|
let valid20 = false;
|
|
18864
18881
|
let passing0 = null;
|
|
18865
|
-
const
|
|
18866
|
-
if (errors ===
|
|
18867
|
-
if (
|
|
18882
|
+
const _errs142 = errors;
|
|
18883
|
+
if (errors === _errs142) {
|
|
18884
|
+
if (data63 && typeof data63 == "object" && !Array.isArray(data63)) {
|
|
18868
18885
|
let missing7;
|
|
18869
|
-
if (
|
|
18886
|
+
if (data63.kind === void 0 && (missing7 = "kind") || data63.userId === void 0 && (missing7 = "userId") || data63.displayName === void 0 && (missing7 = "displayName")) {
|
|
18870
18887
|
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 + "'" };
|
|
18871
18888
|
if (vErrors === null) {
|
|
18872
18889
|
vErrors = [err4];
|
|
@@ -18875,8 +18892,8 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
18875
18892
|
}
|
|
18876
18893
|
errors++;
|
|
18877
18894
|
} else {
|
|
18878
|
-
const
|
|
18879
|
-
for (const key0 in
|
|
18895
|
+
const _errs144 = errors;
|
|
18896
|
+
for (const key0 in data63) {
|
|
18880
18897
|
if (!(key0 === "kind" || key0 === "userId" || key0 === "displayName")) {
|
|
18881
18898
|
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" };
|
|
18882
18899
|
if (vErrors === null) {
|
|
@@ -18888,11 +18905,11 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
18888
18905
|
break;
|
|
18889
18906
|
}
|
|
18890
18907
|
}
|
|
18891
|
-
if (
|
|
18892
|
-
if (
|
|
18893
|
-
let
|
|
18894
|
-
const
|
|
18895
|
-
if (typeof
|
|
18908
|
+
if (_errs144 === errors) {
|
|
18909
|
+
if (data63.kind !== void 0) {
|
|
18910
|
+
let data64 = data63.kind;
|
|
18911
|
+
const _errs145 = errors;
|
|
18912
|
+
if (typeof data64 !== "string") {
|
|
18896
18913
|
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" };
|
|
18897
18914
|
if (vErrors === null) {
|
|
18898
18915
|
vErrors = [err6];
|
|
@@ -18901,7 +18918,7 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
18901
18918
|
}
|
|
18902
18919
|
errors++;
|
|
18903
18920
|
}
|
|
18904
|
-
if ("user" !==
|
|
18921
|
+
if ("user" !== data64) {
|
|
18905
18922
|
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" };
|
|
18906
18923
|
if (vErrors === null) {
|
|
18907
18924
|
vErrors = [err7];
|
|
@@ -18910,17 +18927,17 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
18910
18927
|
}
|
|
18911
18928
|
errors++;
|
|
18912
18929
|
}
|
|
18913
|
-
var valid21 =
|
|
18930
|
+
var valid21 = _errs145 === errors;
|
|
18914
18931
|
} else {
|
|
18915
18932
|
var valid21 = true;
|
|
18916
18933
|
}
|
|
18917
18934
|
if (valid21) {
|
|
18918
|
-
if (
|
|
18919
|
-
let
|
|
18920
|
-
const
|
|
18921
|
-
if (errors ===
|
|
18922
|
-
if (typeof
|
|
18923
|
-
if (func1(
|
|
18935
|
+
if (data63.userId !== void 0) {
|
|
18936
|
+
let data65 = data63.userId;
|
|
18937
|
+
const _errs147 = errors;
|
|
18938
|
+
if (errors === _errs147) {
|
|
18939
|
+
if (typeof data65 === "string") {
|
|
18940
|
+
if (func1(data65) < 1) {
|
|
18924
18941
|
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" };
|
|
18925
18942
|
if (vErrors === null) {
|
|
18926
18943
|
vErrors = [err8];
|
|
@@ -18939,14 +18956,14 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
18939
18956
|
errors++;
|
|
18940
18957
|
}
|
|
18941
18958
|
}
|
|
18942
|
-
var valid21 =
|
|
18959
|
+
var valid21 = _errs147 === errors;
|
|
18943
18960
|
} else {
|
|
18944
18961
|
var valid21 = true;
|
|
18945
18962
|
}
|
|
18946
18963
|
if (valid21) {
|
|
18947
|
-
if (
|
|
18948
|
-
const
|
|
18949
|
-
if (typeof
|
|
18964
|
+
if (data63.displayName !== void 0) {
|
|
18965
|
+
const _errs149 = errors;
|
|
18966
|
+
if (typeof data63.displayName !== "string") {
|
|
18950
18967
|
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" };
|
|
18951
18968
|
if (vErrors === null) {
|
|
18952
18969
|
vErrors = [err10];
|
|
@@ -18955,7 +18972,7 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
18955
18972
|
}
|
|
18956
18973
|
errors++;
|
|
18957
18974
|
}
|
|
18958
|
-
var valid21 =
|
|
18975
|
+
var valid21 = _errs149 === errors;
|
|
18959
18976
|
} else {
|
|
18960
18977
|
var valid21 = true;
|
|
18961
18978
|
}
|
|
@@ -18973,17 +18990,17 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
18973
18990
|
errors++;
|
|
18974
18991
|
}
|
|
18975
18992
|
}
|
|
18976
|
-
var _valid1 =
|
|
18993
|
+
var _valid1 = _errs142 === errors;
|
|
18977
18994
|
if (_valid1) {
|
|
18978
18995
|
valid20 = true;
|
|
18979
18996
|
passing0 = 0;
|
|
18980
18997
|
var props0 = true;
|
|
18981
18998
|
}
|
|
18982
|
-
const
|
|
18983
|
-
if (errors ===
|
|
18984
|
-
if (
|
|
18999
|
+
const _errs151 = errors;
|
|
19000
|
+
if (errors === _errs151) {
|
|
19001
|
+
if (data63 && typeof data63 == "object" && !Array.isArray(data63)) {
|
|
18985
19002
|
let missing8;
|
|
18986
|
-
if (
|
|
19003
|
+
if (data63.kind === void 0 && (missing8 = "kind") || data63.role === void 0 && (missing8 = "role")) {
|
|
18987
19004
|
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 + "'" };
|
|
18988
19005
|
if (vErrors === null) {
|
|
18989
19006
|
vErrors = [err12];
|
|
@@ -18992,8 +19009,8 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
18992
19009
|
}
|
|
18993
19010
|
errors++;
|
|
18994
19011
|
} else {
|
|
18995
|
-
const
|
|
18996
|
-
for (const key1 in
|
|
19012
|
+
const _errs153 = errors;
|
|
19013
|
+
for (const key1 in data63) {
|
|
18997
19014
|
if (!(key1 === "kind" || key1 === "role")) {
|
|
18998
19015
|
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" };
|
|
18999
19016
|
if (vErrors === null) {
|
|
@@ -19005,11 +19022,11 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
19005
19022
|
break;
|
|
19006
19023
|
}
|
|
19007
19024
|
}
|
|
19008
|
-
if (
|
|
19009
|
-
if (
|
|
19010
|
-
let
|
|
19011
|
-
const
|
|
19012
|
-
if (typeof
|
|
19025
|
+
if (_errs153 === errors) {
|
|
19026
|
+
if (data63.kind !== void 0) {
|
|
19027
|
+
let data67 = data63.kind;
|
|
19028
|
+
const _errs154 = errors;
|
|
19029
|
+
if (typeof data67 !== "string") {
|
|
19013
19030
|
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" };
|
|
19014
19031
|
if (vErrors === null) {
|
|
19015
19032
|
vErrors = [err14];
|
|
@@ -19018,7 +19035,7 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
19018
19035
|
}
|
|
19019
19036
|
errors++;
|
|
19020
19037
|
}
|
|
19021
|
-
if ("role" !==
|
|
19038
|
+
if ("role" !== data67) {
|
|
19022
19039
|
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" };
|
|
19023
19040
|
if (vErrors === null) {
|
|
19024
19041
|
vErrors = [err15];
|
|
@@ -19027,15 +19044,15 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
19027
19044
|
}
|
|
19028
19045
|
errors++;
|
|
19029
19046
|
}
|
|
19030
|
-
var valid22 =
|
|
19047
|
+
var valid22 = _errs154 === errors;
|
|
19031
19048
|
} else {
|
|
19032
19049
|
var valid22 = true;
|
|
19033
19050
|
}
|
|
19034
19051
|
if (valid22) {
|
|
19035
|
-
if (
|
|
19036
|
-
let
|
|
19037
|
-
const
|
|
19038
|
-
if (typeof
|
|
19052
|
+
if (data63.role !== void 0) {
|
|
19053
|
+
let data68 = data63.role;
|
|
19054
|
+
const _errs156 = errors;
|
|
19055
|
+
if (typeof data68 !== "string") {
|
|
19039
19056
|
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" };
|
|
19040
19057
|
if (vErrors === null) {
|
|
19041
19058
|
vErrors = [err16];
|
|
@@ -19044,7 +19061,7 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
19044
19061
|
}
|
|
19045
19062
|
errors++;
|
|
19046
19063
|
}
|
|
19047
|
-
if (!(
|
|
19064
|
+
if (!(data68 === "owner" || data68 === "admin" || data68 === "member")) {
|
|
19048
19065
|
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" };
|
|
19049
19066
|
if (vErrors === null) {
|
|
19050
19067
|
vErrors = [err17];
|
|
@@ -19053,7 +19070,7 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
19053
19070
|
}
|
|
19054
19071
|
errors++;
|
|
19055
19072
|
}
|
|
19056
|
-
var valid22 =
|
|
19073
|
+
var valid22 = _errs156 === errors;
|
|
19057
19074
|
} else {
|
|
19058
19075
|
var valid22 = true;
|
|
19059
19076
|
}
|
|
@@ -19070,7 +19087,7 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
19070
19087
|
errors++;
|
|
19071
19088
|
}
|
|
19072
19089
|
}
|
|
19073
|
-
var _valid1 =
|
|
19090
|
+
var _valid1 = _errs151 === errors;
|
|
19074
19091
|
if (_valid1 && valid20) {
|
|
19075
19092
|
valid20 = false;
|
|
19076
19093
|
passing0 = [passing0, 1];
|
|
@@ -19082,11 +19099,11 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
19082
19099
|
props0 = true;
|
|
19083
19100
|
}
|
|
19084
19101
|
}
|
|
19085
|
-
const
|
|
19086
|
-
if (errors ===
|
|
19087
|
-
if (
|
|
19102
|
+
const _errs158 = errors;
|
|
19103
|
+
if (errors === _errs158) {
|
|
19104
|
+
if (data63 && typeof data63 == "object" && !Array.isArray(data63)) {
|
|
19088
19105
|
let missing9;
|
|
19089
|
-
if (
|
|
19106
|
+
if (data63.kind === void 0 && (missing9 = "kind") || data63.agent === void 0 && (missing9 = "agent")) {
|
|
19090
19107
|
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 + "'" };
|
|
19091
19108
|
if (vErrors === null) {
|
|
19092
19109
|
vErrors = [err19];
|
|
@@ -19095,8 +19112,8 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
19095
19112
|
}
|
|
19096
19113
|
errors++;
|
|
19097
19114
|
} else {
|
|
19098
|
-
const
|
|
19099
|
-
for (const key2 in
|
|
19115
|
+
const _errs160 = errors;
|
|
19116
|
+
for (const key2 in data63) {
|
|
19100
19117
|
if (!(key2 === "kind" || key2 === "agent")) {
|
|
19101
19118
|
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" };
|
|
19102
19119
|
if (vErrors === null) {
|
|
@@ -19108,11 +19125,11 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
19108
19125
|
break;
|
|
19109
19126
|
}
|
|
19110
19127
|
}
|
|
19111
|
-
if (
|
|
19112
|
-
if (
|
|
19113
|
-
let
|
|
19114
|
-
const
|
|
19115
|
-
if (typeof
|
|
19128
|
+
if (_errs160 === errors) {
|
|
19129
|
+
if (data63.kind !== void 0) {
|
|
19130
|
+
let data69 = data63.kind;
|
|
19131
|
+
const _errs161 = errors;
|
|
19132
|
+
if (typeof data69 !== "string") {
|
|
19116
19133
|
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" };
|
|
19117
19134
|
if (vErrors === null) {
|
|
19118
19135
|
vErrors = [err21];
|
|
@@ -19121,7 +19138,7 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
19121
19138
|
}
|
|
19122
19139
|
errors++;
|
|
19123
19140
|
}
|
|
19124
|
-
if ("agent" !==
|
|
19141
|
+
if ("agent" !== data69) {
|
|
19125
19142
|
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" };
|
|
19126
19143
|
if (vErrors === null) {
|
|
19127
19144
|
vErrors = [err22];
|
|
@@ -19130,15 +19147,15 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
19130
19147
|
}
|
|
19131
19148
|
errors++;
|
|
19132
19149
|
}
|
|
19133
|
-
var valid23 =
|
|
19150
|
+
var valid23 = _errs161 === errors;
|
|
19134
19151
|
} else {
|
|
19135
19152
|
var valid23 = true;
|
|
19136
19153
|
}
|
|
19137
19154
|
if (valid23) {
|
|
19138
|
-
if (
|
|
19139
|
-
let
|
|
19140
|
-
const
|
|
19141
|
-
if (typeof
|
|
19155
|
+
if (data63.agent !== void 0) {
|
|
19156
|
+
let data70 = data63.agent;
|
|
19157
|
+
const _errs163 = errors;
|
|
19158
|
+
if (typeof data70 !== "string") {
|
|
19142
19159
|
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" };
|
|
19143
19160
|
if (vErrors === null) {
|
|
19144
19161
|
vErrors = [err23];
|
|
@@ -19147,7 +19164,7 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
19147
19164
|
}
|
|
19148
19165
|
errors++;
|
|
19149
19166
|
}
|
|
19150
|
-
if (!(
|
|
19167
|
+
if (!(data70 === "claude_code" || data70 === "codex" || data70 === "hermes")) {
|
|
19151
19168
|
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" };
|
|
19152
19169
|
if (vErrors === null) {
|
|
19153
19170
|
vErrors = [err24];
|
|
@@ -19156,7 +19173,7 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
19156
19173
|
}
|
|
19157
19174
|
errors++;
|
|
19158
19175
|
}
|
|
19159
|
-
var valid23 =
|
|
19176
|
+
var valid23 = _errs163 === errors;
|
|
19160
19177
|
} else {
|
|
19161
19178
|
var valid23 = true;
|
|
19162
19179
|
}
|
|
@@ -19173,7 +19190,7 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
19173
19190
|
errors++;
|
|
19174
19191
|
}
|
|
19175
19192
|
}
|
|
19176
|
-
var _valid1 =
|
|
19193
|
+
var _valid1 = _errs158 === errors;
|
|
19177
19194
|
if (_valid1 && valid20) {
|
|
19178
19195
|
valid20 = false;
|
|
19179
19196
|
passing0 = [passing0, 2];
|
|
@@ -19185,11 +19202,11 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
19185
19202
|
props0 = true;
|
|
19186
19203
|
}
|
|
19187
19204
|
}
|
|
19188
|
-
const
|
|
19189
|
-
if (errors ===
|
|
19190
|
-
if (
|
|
19205
|
+
const _errs165 = errors;
|
|
19206
|
+
if (errors === _errs165) {
|
|
19207
|
+
if (data63 && typeof data63 == "object" && !Array.isArray(data63)) {
|
|
19191
19208
|
let missing10;
|
|
19192
|
-
if (
|
|
19209
|
+
if (data63.kind === void 0 && (missing10 = "kind") || data63.credential === void 0 && (missing10 = "credential")) {
|
|
19193
19210
|
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 + "'" };
|
|
19194
19211
|
if (vErrors === null) {
|
|
19195
19212
|
vErrors = [err26];
|
|
@@ -19198,8 +19215,8 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
19198
19215
|
}
|
|
19199
19216
|
errors++;
|
|
19200
19217
|
} else {
|
|
19201
|
-
const
|
|
19202
|
-
for (const key3 in
|
|
19218
|
+
const _errs167 = errors;
|
|
19219
|
+
for (const key3 in data63) {
|
|
19203
19220
|
if (!(key3 === "kind" || key3 === "credential")) {
|
|
19204
19221
|
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" };
|
|
19205
19222
|
if (vErrors === null) {
|
|
@@ -19211,11 +19228,11 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
19211
19228
|
break;
|
|
19212
19229
|
}
|
|
19213
19230
|
}
|
|
19214
|
-
if (
|
|
19215
|
-
if (
|
|
19216
|
-
let
|
|
19217
|
-
const
|
|
19218
|
-
if (typeof
|
|
19231
|
+
if (_errs167 === errors) {
|
|
19232
|
+
if (data63.kind !== void 0) {
|
|
19233
|
+
let data71 = data63.kind;
|
|
19234
|
+
const _errs168 = errors;
|
|
19235
|
+
if (typeof data71 !== "string") {
|
|
19219
19236
|
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" };
|
|
19220
19237
|
if (vErrors === null) {
|
|
19221
19238
|
vErrors = [err28];
|
|
@@ -19224,7 +19241,7 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
19224
19241
|
}
|
|
19225
19242
|
errors++;
|
|
19226
19243
|
}
|
|
19227
|
-
if ("credential" !==
|
|
19244
|
+
if ("credential" !== data71) {
|
|
19228
19245
|
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" };
|
|
19229
19246
|
if (vErrors === null) {
|
|
19230
19247
|
vErrors = [err29];
|
|
@@ -19233,15 +19250,15 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
19233
19250
|
}
|
|
19234
19251
|
errors++;
|
|
19235
19252
|
}
|
|
19236
|
-
var valid24 =
|
|
19253
|
+
var valid24 = _errs168 === errors;
|
|
19237
19254
|
} else {
|
|
19238
19255
|
var valid24 = true;
|
|
19239
19256
|
}
|
|
19240
19257
|
if (valid24) {
|
|
19241
|
-
if (
|
|
19242
|
-
let
|
|
19243
|
-
const
|
|
19244
|
-
if (typeof
|
|
19258
|
+
if (data63.credential !== void 0) {
|
|
19259
|
+
let data72 = data63.credential;
|
|
19260
|
+
const _errs170 = errors;
|
|
19261
|
+
if (typeof data72 !== "string") {
|
|
19245
19262
|
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" };
|
|
19246
19263
|
if (vErrors === null) {
|
|
19247
19264
|
vErrors = [err30];
|
|
@@ -19250,7 +19267,7 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
19250
19267
|
}
|
|
19251
19268
|
errors++;
|
|
19252
19269
|
}
|
|
19253
|
-
if (!(
|
|
19270
|
+
if (!(data72 === "workos_jwt" || data72 === "workos_api_key" || data72 === "service_token")) {
|
|
19254
19271
|
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" };
|
|
19255
19272
|
if (vErrors === null) {
|
|
19256
19273
|
vErrors = [err31];
|
|
@@ -19259,7 +19276,7 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
19259
19276
|
}
|
|
19260
19277
|
errors++;
|
|
19261
19278
|
}
|
|
19262
|
-
var valid24 =
|
|
19279
|
+
var valid24 = _errs170 === errors;
|
|
19263
19280
|
} else {
|
|
19264
19281
|
var valid24 = true;
|
|
19265
19282
|
}
|
|
@@ -19276,7 +19293,7 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
19276
19293
|
errors++;
|
|
19277
19294
|
}
|
|
19278
19295
|
}
|
|
19279
|
-
var _valid1 =
|
|
19296
|
+
var _valid1 = _errs165 === errors;
|
|
19280
19297
|
if (_valid1 && valid20) {
|
|
19281
19298
|
valid20 = false;
|
|
19282
19299
|
passing0 = [passing0, 3];
|
|
@@ -19302,16 +19319,16 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
19302
19319
|
validate29.errors = vErrors;
|
|
19303
19320
|
return false;
|
|
19304
19321
|
} else {
|
|
19305
|
-
errors =
|
|
19322
|
+
errors = _errs141;
|
|
19306
19323
|
if (vErrors !== null) {
|
|
19307
|
-
if (
|
|
19308
|
-
vErrors.length =
|
|
19324
|
+
if (_errs141) {
|
|
19325
|
+
vErrors.length = _errs141;
|
|
19309
19326
|
} else {
|
|
19310
19327
|
vErrors = null;
|
|
19311
19328
|
}
|
|
19312
19329
|
}
|
|
19313
19330
|
}
|
|
19314
|
-
var valid19 =
|
|
19331
|
+
var valid19 = _errs140 === errors;
|
|
19315
19332
|
if (!valid19) {
|
|
19316
19333
|
break;
|
|
19317
19334
|
}
|
|
@@ -19321,7 +19338,7 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
19321
19338
|
return false;
|
|
19322
19339
|
}
|
|
19323
19340
|
}
|
|
19324
|
-
var valid13 =
|
|
19341
|
+
var valid13 = _errs138 === errors;
|
|
19325
19342
|
} else {
|
|
19326
19343
|
var valid13 = true;
|
|
19327
19344
|
}
|
|
@@ -19333,18 +19350,18 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
19333
19350
|
return false;
|
|
19334
19351
|
}
|
|
19335
19352
|
}
|
|
19336
|
-
var valid1 =
|
|
19353
|
+
var valid1 = _errs111 === errors;
|
|
19337
19354
|
} else {
|
|
19338
19355
|
var valid1 = true;
|
|
19339
19356
|
}
|
|
19340
19357
|
if (valid1) {
|
|
19341
19358
|
if (data.truncated !== void 0) {
|
|
19342
|
-
const
|
|
19359
|
+
const _errs172 = errors;
|
|
19343
19360
|
if (typeof data.truncated !== "boolean") {
|
|
19344
19361
|
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" }];
|
|
19345
19362
|
return false;
|
|
19346
19363
|
}
|
|
19347
|
-
var valid1 =
|
|
19364
|
+
var valid1 = _errs172 === errors;
|
|
19348
19365
|
} else {
|
|
19349
19366
|
var valid1 = true;
|
|
19350
19367
|
}
|
|
@@ -39601,10 +39618,10 @@ async function rescopeDecision(request2, dependencies = defaultDependencies5) {
|
|
|
39601
39618
|
var NOT_FOUND_RE4 = /not found/i;
|
|
39602
39619
|
function colorStatus(status) {
|
|
39603
39620
|
const safeStatus = terminalSafeLine(status);
|
|
39604
|
-
if (status === "under_review") {
|
|
39621
|
+
if (status === "under_review" || status === "provisional") {
|
|
39605
39622
|
return color(safeStatus, "orange");
|
|
39606
39623
|
}
|
|
39607
|
-
if (status === "active") {
|
|
39624
|
+
if (status === "active" || status === "adopted") {
|
|
39608
39625
|
return color(safeStatus, "green");
|
|
39609
39626
|
}
|
|
39610
39627
|
return color(safeStatus, "gray");
|
|
@@ -39730,9 +39747,10 @@ function formatShowHuman(result) {
|
|
|
39730
39747
|
const d = result.decision;
|
|
39731
39748
|
const id = color(renderIdentifier({ shortId: d.shortId, id: d.id }), "orange");
|
|
39732
39749
|
const confidence = d.confidence ?? "(unset)";
|
|
39750
|
+
const displayedStatus = d.stage ?? d.status;
|
|
39733
39751
|
const lines = [
|
|
39734
39752
|
`[prim] ${id} \u2014 ${terminalSafeLine(d.intent)}`,
|
|
39735
|
-
` status: ${colorStatus(
|
|
39753
|
+
` status: ${colorStatus(displayedStatus)}${d.confirmed ? " (confirmed)" : ""} \xB7 confidence: ${terminalSafeLine(confidence)} \xB7 reversibility: ${terminalSafeLine(d.reversibility ?? "(unset)")}`
|
|
39736
39754
|
];
|
|
39737
39755
|
if (d.supersededBy) {
|
|
39738
39756
|
lines.push(` superseded by: ${terminalSafeLine(d.supersededBy)}`);
|