@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
package/dist/daemon/server.js
CHANGED
|
@@ -5056,7 +5056,7 @@ function validate28(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
5056
5056
|
return errors === 0;
|
|
5057
5057
|
}
|
|
5058
5058
|
validate28.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
|
|
5059
|
-
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": {} };
|
|
5059
|
+
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": {} };
|
|
5060
5060
|
function validate29(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
5061
5061
|
;
|
|
5062
5062
|
let vErrors = null;
|
|
@@ -5082,7 +5082,7 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
5082
5082
|
if (errors === _errs3) {
|
|
5083
5083
|
if (data0 && typeof data0 == "object" && !Array.isArray(data0)) {
|
|
5084
5084
|
let missing1;
|
|
5085
|
-
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")) {
|
|
5085
|
+
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")) {
|
|
5086
5086
|
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 + "'" }];
|
|
5087
5087
|
return false;
|
|
5088
5088
|
} else {
|
|
@@ -5232,15 +5232,15 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
5232
5232
|
var valid2 = true;
|
|
5233
5233
|
}
|
|
5234
5234
|
if (valid2) {
|
|
5235
|
-
if (data0.
|
|
5236
|
-
let data12 = data0.
|
|
5235
|
+
if (data0.stage !== void 0) {
|
|
5236
|
+
let data12 = data0.stage;
|
|
5237
5237
|
const _errs28 = errors;
|
|
5238
5238
|
if (typeof data12 !== "string") {
|
|
5239
|
-
validate29.errors = [{ instancePath: instancePath + "/decision/
|
|
5239
|
+
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" }];
|
|
5240
5240
|
return false;
|
|
5241
5241
|
}
|
|
5242
|
-
if (!(data12 === "
|
|
5243
|
-
validate29.errors = [{ instancePath: instancePath + "/decision/
|
|
5242
|
+
if (!(data12 === "draft" || data12 === "provisional" || data12 === "adopted" || data12 === "superseded" || data12 === "abandoned")) {
|
|
5243
|
+
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" }];
|
|
5244
5244
|
return false;
|
|
5245
5245
|
}
|
|
5246
5246
|
var valid2 = _errs28 === errors;
|
|
@@ -5248,97 +5248,97 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
5248
5248
|
var valid2 = true;
|
|
5249
5249
|
}
|
|
5250
5250
|
if (valid2) {
|
|
5251
|
-
if (data0.
|
|
5252
|
-
let data13 = data0.
|
|
5251
|
+
if (data0.status !== void 0) {
|
|
5252
|
+
let data13 = data0.status;
|
|
5253
5253
|
const _errs30 = errors;
|
|
5254
|
-
|
|
5255
|
-
|
|
5256
|
-
|
|
5257
|
-
|
|
5258
|
-
|
|
5259
|
-
|
|
5260
|
-
|
|
5254
|
+
if (typeof data13 !== "string") {
|
|
5255
|
+
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" }];
|
|
5256
|
+
return false;
|
|
5257
|
+
}
|
|
5258
|
+
if (!(data13 === "active" || data13 === "superseded" || data13 === "under_review")) {
|
|
5259
|
+
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" }];
|
|
5260
|
+
return false;
|
|
5261
|
+
}
|
|
5262
|
+
var valid2 = _errs30 === errors;
|
|
5263
|
+
} else {
|
|
5264
|
+
var valid2 = true;
|
|
5265
|
+
}
|
|
5266
|
+
if (valid2) {
|
|
5267
|
+
if (data0.supersededBy !== void 0) {
|
|
5268
|
+
let data14 = data0.supersededBy;
|
|
5269
|
+
const _errs32 = errors;
|
|
5270
|
+
const _errs33 = errors;
|
|
5271
|
+
let valid5 = false;
|
|
5272
|
+
const _errs34 = errors;
|
|
5273
|
+
if (errors === _errs34) {
|
|
5274
|
+
if (typeof data14 === "string") {
|
|
5275
|
+
if (func1(data14) < 1) {
|
|
5276
|
+
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" };
|
|
5277
|
+
if (vErrors === null) {
|
|
5278
|
+
vErrors = [err0];
|
|
5279
|
+
} else {
|
|
5280
|
+
vErrors.push(err0);
|
|
5281
|
+
}
|
|
5282
|
+
errors++;
|
|
5283
|
+
}
|
|
5284
|
+
} else {
|
|
5285
|
+
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" };
|
|
5261
5286
|
if (vErrors === null) {
|
|
5262
|
-
vErrors = [
|
|
5287
|
+
vErrors = [err1];
|
|
5263
5288
|
} else {
|
|
5264
|
-
vErrors.push(
|
|
5289
|
+
vErrors.push(err1);
|
|
5265
5290
|
}
|
|
5266
5291
|
errors++;
|
|
5267
5292
|
}
|
|
5268
|
-
}
|
|
5269
|
-
|
|
5293
|
+
}
|
|
5294
|
+
var _valid0 = _errs34 === errors;
|
|
5295
|
+
valid5 = valid5 || _valid0;
|
|
5296
|
+
const _errs36 = errors;
|
|
5297
|
+
if (data14 !== null) {
|
|
5298
|
+
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" };
|
|
5270
5299
|
if (vErrors === null) {
|
|
5271
|
-
vErrors = [
|
|
5300
|
+
vErrors = [err2];
|
|
5272
5301
|
} else {
|
|
5273
|
-
vErrors.push(
|
|
5302
|
+
vErrors.push(err2);
|
|
5274
5303
|
}
|
|
5275
5304
|
errors++;
|
|
5276
5305
|
}
|
|
5277
|
-
|
|
5278
|
-
|
|
5279
|
-
|
|
5280
|
-
|
|
5281
|
-
|
|
5282
|
-
|
|
5283
|
-
if (vErrors === null) {
|
|
5284
|
-
vErrors = [err2];
|
|
5285
|
-
} else {
|
|
5286
|
-
vErrors.push(err2);
|
|
5287
|
-
}
|
|
5288
|
-
errors++;
|
|
5289
|
-
}
|
|
5290
|
-
var _valid0 = _errs34 === errors;
|
|
5291
|
-
valid5 = valid5 || _valid0;
|
|
5292
|
-
if (!valid5) {
|
|
5293
|
-
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" };
|
|
5294
|
-
if (vErrors === null) {
|
|
5295
|
-
vErrors = [err3];
|
|
5296
|
-
} else {
|
|
5297
|
-
vErrors.push(err3);
|
|
5298
|
-
}
|
|
5299
|
-
errors++;
|
|
5300
|
-
validate29.errors = vErrors;
|
|
5301
|
-
return false;
|
|
5302
|
-
} else {
|
|
5303
|
-
errors = _errs31;
|
|
5304
|
-
if (vErrors !== null) {
|
|
5305
|
-
if (_errs31) {
|
|
5306
|
-
vErrors.length = _errs31;
|
|
5306
|
+
var _valid0 = _errs36 === errors;
|
|
5307
|
+
valid5 = valid5 || _valid0;
|
|
5308
|
+
if (!valid5) {
|
|
5309
|
+
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" };
|
|
5310
|
+
if (vErrors === null) {
|
|
5311
|
+
vErrors = [err3];
|
|
5307
5312
|
} else {
|
|
5308
|
-
vErrors
|
|
5313
|
+
vErrors.push(err3);
|
|
5309
5314
|
}
|
|
5310
|
-
|
|
5311
|
-
|
|
5312
|
-
var valid2 = _errs30 === errors;
|
|
5313
|
-
} else {
|
|
5314
|
-
var valid2 = true;
|
|
5315
|
-
}
|
|
5316
|
-
if (valid2) {
|
|
5317
|
-
if (data0.confidence !== void 0) {
|
|
5318
|
-
let data14 = data0.confidence;
|
|
5319
|
-
const _errs36 = errors;
|
|
5320
|
-
if (typeof data14 !== "string") {
|
|
5321
|
-
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" }];
|
|
5322
|
-
return false;
|
|
5323
|
-
}
|
|
5324
|
-
if (!(data14 === "high" || data14 === "medium" || data14 === "low")) {
|
|
5325
|
-
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" }];
|
|
5315
|
+
errors++;
|
|
5316
|
+
validate29.errors = vErrors;
|
|
5326
5317
|
return false;
|
|
5318
|
+
} else {
|
|
5319
|
+
errors = _errs33;
|
|
5320
|
+
if (vErrors !== null) {
|
|
5321
|
+
if (_errs33) {
|
|
5322
|
+
vErrors.length = _errs33;
|
|
5323
|
+
} else {
|
|
5324
|
+
vErrors = null;
|
|
5325
|
+
}
|
|
5326
|
+
}
|
|
5327
5327
|
}
|
|
5328
|
-
var valid2 =
|
|
5328
|
+
var valid2 = _errs32 === errors;
|
|
5329
5329
|
} else {
|
|
5330
5330
|
var valid2 = true;
|
|
5331
5331
|
}
|
|
5332
5332
|
if (valid2) {
|
|
5333
|
-
if (data0.
|
|
5334
|
-
let data15 = data0.
|
|
5333
|
+
if (data0.confidence !== void 0) {
|
|
5334
|
+
let data15 = data0.confidence;
|
|
5335
5335
|
const _errs38 = errors;
|
|
5336
5336
|
if (typeof data15 !== "string") {
|
|
5337
|
-
validate29.errors = [{ instancePath: instancePath + "/decision/
|
|
5337
|
+
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" }];
|
|
5338
5338
|
return false;
|
|
5339
5339
|
}
|
|
5340
|
-
if (!(data15 === "high" || data15 === "low")) {
|
|
5341
|
-
validate29.errors = [{ instancePath: instancePath + "/decision/
|
|
5340
|
+
if (!(data15 === "high" || data15 === "medium" || data15 === "low")) {
|
|
5341
|
+
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" }];
|
|
5342
5342
|
return false;
|
|
5343
5343
|
}
|
|
5344
5344
|
var valid2 = _errs38 === errors;
|
|
@@ -5346,10 +5346,15 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
5346
5346
|
var valid2 = true;
|
|
5347
5347
|
}
|
|
5348
5348
|
if (valid2) {
|
|
5349
|
-
if (data0.
|
|
5349
|
+
if (data0.reversibility !== void 0) {
|
|
5350
|
+
let data16 = data0.reversibility;
|
|
5350
5351
|
const _errs40 = errors;
|
|
5351
|
-
if (typeof
|
|
5352
|
-
validate29.errors = [{ instancePath: instancePath + "/decision/
|
|
5352
|
+
if (typeof data16 !== "string") {
|
|
5353
|
+
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" }];
|
|
5354
|
+
return false;
|
|
5355
|
+
}
|
|
5356
|
+
if (!(data16 === "high" || data16 === "low")) {
|
|
5357
|
+
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" }];
|
|
5353
5358
|
return false;
|
|
5354
5359
|
}
|
|
5355
5360
|
var valid2 = _errs40 === errors;
|
|
@@ -5357,11 +5362,10 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
5357
5362
|
var valid2 = true;
|
|
5358
5363
|
}
|
|
5359
5364
|
if (valid2) {
|
|
5360
|
-
if (data0.
|
|
5361
|
-
let data17 = data0.respondedAt;
|
|
5365
|
+
if (data0.confirmed !== void 0) {
|
|
5362
5366
|
const _errs42 = errors;
|
|
5363
|
-
if (
|
|
5364
|
-
validate29.errors = [{ instancePath: instancePath + "/decision/
|
|
5367
|
+
if (typeof data0.confirmed !== "boolean") {
|
|
5368
|
+
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" }];
|
|
5365
5369
|
return false;
|
|
5366
5370
|
}
|
|
5367
5371
|
var valid2 = _errs42 === errors;
|
|
@@ -5369,11 +5373,11 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
5369
5373
|
var valid2 = true;
|
|
5370
5374
|
}
|
|
5371
5375
|
if (valid2) {
|
|
5372
|
-
if (data0.
|
|
5373
|
-
let data18 = data0.
|
|
5376
|
+
if (data0.respondedAt !== void 0) {
|
|
5377
|
+
let data18 = data0.respondedAt;
|
|
5374
5378
|
const _errs44 = errors;
|
|
5375
5379
|
if (!(typeof data18 == "number" && isFinite(data18))) {
|
|
5376
|
-
validate29.errors = [{ instancePath: instancePath + "/decision/
|
|
5380
|
+
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" }];
|
|
5377
5381
|
return false;
|
|
5378
5382
|
}
|
|
5379
5383
|
var valid2 = _errs44 === errors;
|
|
@@ -5381,11 +5385,11 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
5381
5385
|
var valid2 = true;
|
|
5382
5386
|
}
|
|
5383
5387
|
if (valid2) {
|
|
5384
|
-
if (data0.
|
|
5385
|
-
let data19 = data0.
|
|
5388
|
+
if (data0.fanOut !== void 0) {
|
|
5389
|
+
let data19 = data0.fanOut;
|
|
5386
5390
|
const _errs46 = errors;
|
|
5387
5391
|
if (!(typeof data19 == "number" && isFinite(data19))) {
|
|
5388
|
-
validate29.errors = [{ instancePath: instancePath + "/decision/
|
|
5392
|
+
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" }];
|
|
5389
5393
|
return false;
|
|
5390
5394
|
}
|
|
5391
5395
|
var valid2 = _errs46 === errors;
|
|
@@ -5393,16 +5397,29 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
5393
5397
|
var valid2 = true;
|
|
5394
5398
|
}
|
|
5395
5399
|
if (valid2) {
|
|
5396
|
-
if (data0.
|
|
5400
|
+
if (data0.classifiedAt !== void 0) {
|
|
5401
|
+
let data20 = data0.classifiedAt;
|
|
5397
5402
|
const _errs48 = errors;
|
|
5398
|
-
if (typeof
|
|
5399
|
-
validate29.errors = [{ instancePath: instancePath + "/decision/
|
|
5403
|
+
if (!(typeof data20 == "number" && isFinite(data20))) {
|
|
5404
|
+
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" }];
|
|
5400
5405
|
return false;
|
|
5401
5406
|
}
|
|
5402
5407
|
var valid2 = _errs48 === errors;
|
|
5403
5408
|
} else {
|
|
5404
5409
|
var valid2 = true;
|
|
5405
5410
|
}
|
|
5411
|
+
if (valid2) {
|
|
5412
|
+
if (data0.authorName !== void 0) {
|
|
5413
|
+
const _errs50 = errors;
|
|
5414
|
+
if (typeof data0.authorName !== "string") {
|
|
5415
|
+
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" }];
|
|
5416
|
+
return false;
|
|
5417
|
+
}
|
|
5418
|
+
var valid2 = _errs50 === errors;
|
|
5419
|
+
} else {
|
|
5420
|
+
var valid2 = true;
|
|
5421
|
+
}
|
|
5422
|
+
}
|
|
5406
5423
|
}
|
|
5407
5424
|
}
|
|
5408
5425
|
}
|
|
@@ -5432,19 +5449,19 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
5432
5449
|
}
|
|
5433
5450
|
if (valid1) {
|
|
5434
5451
|
if (data.files !== void 0) {
|
|
5435
|
-
let
|
|
5436
|
-
const
|
|
5437
|
-
if (errors ===
|
|
5438
|
-
if (Array.isArray(
|
|
5452
|
+
let data22 = data.files;
|
|
5453
|
+
const _errs52 = errors;
|
|
5454
|
+
if (errors === _errs52) {
|
|
5455
|
+
if (Array.isArray(data22)) {
|
|
5439
5456
|
var valid6 = true;
|
|
5440
|
-
const len2 =
|
|
5457
|
+
const len2 = data22.length;
|
|
5441
5458
|
for (let i2 = 0; i2 < len2; i2++) {
|
|
5442
|
-
const
|
|
5443
|
-
if (typeof
|
|
5459
|
+
const _errs54 = errors;
|
|
5460
|
+
if (typeof data22[i2] !== "string") {
|
|
5444
5461
|
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" }];
|
|
5445
5462
|
return false;
|
|
5446
5463
|
}
|
|
5447
|
-
var valid6 =
|
|
5464
|
+
var valid6 = _errs54 === errors;
|
|
5448
5465
|
if (!valid6) {
|
|
5449
5466
|
break;
|
|
5450
5467
|
}
|
|
@@ -5454,97 +5471,97 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
5454
5471
|
return false;
|
|
5455
5472
|
}
|
|
5456
5473
|
}
|
|
5457
|
-
var valid1 =
|
|
5474
|
+
var valid1 = _errs52 === errors;
|
|
5458
5475
|
} else {
|
|
5459
5476
|
var valid1 = true;
|
|
5460
5477
|
}
|
|
5461
5478
|
if (valid1) {
|
|
5462
5479
|
if (data.flags !== void 0) {
|
|
5463
|
-
let
|
|
5464
|
-
const
|
|
5465
|
-
if (errors ===
|
|
5466
|
-
if (Array.isArray(
|
|
5480
|
+
let data24 = data.flags;
|
|
5481
|
+
const _errs56 = errors;
|
|
5482
|
+
if (errors === _errs56) {
|
|
5483
|
+
if (Array.isArray(data24)) {
|
|
5467
5484
|
var valid7 = true;
|
|
5468
|
-
const len3 =
|
|
5485
|
+
const len3 = data24.length;
|
|
5469
5486
|
for (let i3 = 0; i3 < len3; i3++) {
|
|
5470
|
-
let
|
|
5471
|
-
const
|
|
5472
|
-
if (errors ===
|
|
5473
|
-
if (
|
|
5487
|
+
let data25 = data24[i3];
|
|
5488
|
+
const _errs58 = errors;
|
|
5489
|
+
if (errors === _errs58) {
|
|
5490
|
+
if (data25 && typeof data25 == "object" && !Array.isArray(data25)) {
|
|
5474
5491
|
let missing2;
|
|
5475
|
-
if (
|
|
5492
|
+
if (data25.type === void 0 && (missing2 = "type") || data25.flaggedAt === void 0 && (missing2 = "flaggedAt")) {
|
|
5476
5493
|
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 + "'" }];
|
|
5477
5494
|
return false;
|
|
5478
5495
|
} else {
|
|
5479
|
-
if (
|
|
5480
|
-
let
|
|
5481
|
-
const
|
|
5482
|
-
if (typeof
|
|
5496
|
+
if (data25.type !== void 0) {
|
|
5497
|
+
let data26 = data25.type;
|
|
5498
|
+
const _errs61 = errors;
|
|
5499
|
+
if (typeof data26 !== "string") {
|
|
5483
5500
|
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" }];
|
|
5484
5501
|
return false;
|
|
5485
5502
|
}
|
|
5486
|
-
if (!(
|
|
5503
|
+
if (!(data26 === "file_edit" || data26 === "supersession" || data26 === "invalidation" || data26 === "confirmation_request")) {
|
|
5487
5504
|
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" }];
|
|
5488
5505
|
return false;
|
|
5489
5506
|
}
|
|
5490
|
-
var valid8 =
|
|
5507
|
+
var valid8 = _errs61 === errors;
|
|
5491
5508
|
} else {
|
|
5492
5509
|
var valid8 = true;
|
|
5493
5510
|
}
|
|
5494
5511
|
if (valid8) {
|
|
5495
|
-
if (
|
|
5496
|
-
const
|
|
5497
|
-
if (typeof
|
|
5512
|
+
if (data25.file !== void 0) {
|
|
5513
|
+
const _errs63 = errors;
|
|
5514
|
+
if (typeof data25.file !== "string") {
|
|
5498
5515
|
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" }];
|
|
5499
5516
|
return false;
|
|
5500
5517
|
}
|
|
5501
|
-
var valid8 =
|
|
5518
|
+
var valid8 = _errs63 === errors;
|
|
5502
5519
|
} else {
|
|
5503
5520
|
var valid8 = true;
|
|
5504
5521
|
}
|
|
5505
5522
|
if (valid8) {
|
|
5506
|
-
if (
|
|
5507
|
-
let
|
|
5508
|
-
const
|
|
5509
|
-
if (!(typeof
|
|
5523
|
+
if (data25.flaggedAt !== void 0) {
|
|
5524
|
+
let data28 = data25.flaggedAt;
|
|
5525
|
+
const _errs65 = errors;
|
|
5526
|
+
if (!(typeof data28 == "number" && isFinite(data28))) {
|
|
5510
5527
|
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" }];
|
|
5511
5528
|
return false;
|
|
5512
5529
|
}
|
|
5513
|
-
var valid8 =
|
|
5530
|
+
var valid8 = _errs65 === errors;
|
|
5514
5531
|
} else {
|
|
5515
5532
|
var valid8 = true;
|
|
5516
5533
|
}
|
|
5517
5534
|
if (valid8) {
|
|
5518
|
-
if (
|
|
5519
|
-
let
|
|
5520
|
-
const
|
|
5521
|
-
if (!(typeof
|
|
5535
|
+
if (data25.acknowledgedAt !== void 0) {
|
|
5536
|
+
let data29 = data25.acknowledgedAt;
|
|
5537
|
+
const _errs67 = errors;
|
|
5538
|
+
if (!(typeof data29 == "number" && isFinite(data29))) {
|
|
5522
5539
|
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" }];
|
|
5523
5540
|
return false;
|
|
5524
5541
|
}
|
|
5525
|
-
var valid8 =
|
|
5542
|
+
var valid8 = _errs67 === errors;
|
|
5526
5543
|
} else {
|
|
5527
5544
|
var valid8 = true;
|
|
5528
5545
|
}
|
|
5529
5546
|
if (valid8) {
|
|
5530
|
-
if (
|
|
5531
|
-
const
|
|
5532
|
-
if (typeof
|
|
5547
|
+
if (data25.gateVerdict !== void 0) {
|
|
5548
|
+
const _errs69 = errors;
|
|
5549
|
+
if (typeof data25.gateVerdict !== "string") {
|
|
5533
5550
|
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" }];
|
|
5534
5551
|
return false;
|
|
5535
5552
|
}
|
|
5536
|
-
var valid8 =
|
|
5553
|
+
var valid8 = _errs69 === errors;
|
|
5537
5554
|
} else {
|
|
5538
5555
|
var valid8 = true;
|
|
5539
5556
|
}
|
|
5540
5557
|
if (valid8) {
|
|
5541
|
-
if (
|
|
5542
|
-
const
|
|
5543
|
-
if (typeof
|
|
5558
|
+
if (data25.reason !== void 0) {
|
|
5559
|
+
const _errs71 = errors;
|
|
5560
|
+
if (typeof data25.reason !== "string") {
|
|
5544
5561
|
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" }];
|
|
5545
5562
|
return false;
|
|
5546
5563
|
}
|
|
5547
|
-
var valid8 =
|
|
5564
|
+
var valid8 = _errs71 === errors;
|
|
5548
5565
|
} else {
|
|
5549
5566
|
var valid8 = true;
|
|
5550
5567
|
}
|
|
@@ -5559,7 +5576,7 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
5559
5576
|
return false;
|
|
5560
5577
|
}
|
|
5561
5578
|
}
|
|
5562
|
-
var valid7 =
|
|
5579
|
+
var valid7 = _errs58 === errors;
|
|
5563
5580
|
if (!valid7) {
|
|
5564
5581
|
break;
|
|
5565
5582
|
}
|
|
@@ -5569,34 +5586,34 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
5569
5586
|
return false;
|
|
5570
5587
|
}
|
|
5571
5588
|
}
|
|
5572
|
-
var valid1 =
|
|
5589
|
+
var valid1 = _errs56 === errors;
|
|
5573
5590
|
} else {
|
|
5574
5591
|
var valid1 = true;
|
|
5575
5592
|
}
|
|
5576
5593
|
if (valid1) {
|
|
5577
5594
|
if (data.dependsOn !== void 0) {
|
|
5578
|
-
let
|
|
5579
|
-
const
|
|
5580
|
-
if (errors ===
|
|
5581
|
-
if (Array.isArray(
|
|
5595
|
+
let data32 = data.dependsOn;
|
|
5596
|
+
const _errs73 = errors;
|
|
5597
|
+
if (errors === _errs73) {
|
|
5598
|
+
if (Array.isArray(data32)) {
|
|
5582
5599
|
var valid9 = true;
|
|
5583
|
-
const len4 =
|
|
5600
|
+
const len4 = data32.length;
|
|
5584
5601
|
for (let i4 = 0; i4 < len4; i4++) {
|
|
5585
|
-
let
|
|
5586
|
-
const
|
|
5587
|
-
if (errors ===
|
|
5588
|
-
if (
|
|
5602
|
+
let data33 = data32[i4];
|
|
5603
|
+
const _errs75 = errors;
|
|
5604
|
+
if (errors === _errs75) {
|
|
5605
|
+
if (data33 && typeof data33 == "object" && !Array.isArray(data33)) {
|
|
5589
5606
|
let missing3;
|
|
5590
|
-
if (
|
|
5607
|
+
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")) {
|
|
5591
5608
|
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 + "'" }];
|
|
5592
5609
|
return false;
|
|
5593
5610
|
} else {
|
|
5594
|
-
if (
|
|
5595
|
-
let
|
|
5596
|
-
const
|
|
5597
|
-
if (errors ===
|
|
5598
|
-
if (typeof
|
|
5599
|
-
if (func1(
|
|
5611
|
+
if (data33.id !== void 0) {
|
|
5612
|
+
let data34 = data33.id;
|
|
5613
|
+
const _errs78 = errors;
|
|
5614
|
+
if (errors === _errs78) {
|
|
5615
|
+
if (typeof data34 === "string") {
|
|
5616
|
+
if (func1(data34) < 1) {
|
|
5600
5617
|
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" }];
|
|
5601
5618
|
return false;
|
|
5602
5619
|
}
|
|
@@ -5605,79 +5622,79 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
5605
5622
|
return false;
|
|
5606
5623
|
}
|
|
5607
5624
|
}
|
|
5608
|
-
var valid10 =
|
|
5625
|
+
var valid10 = _errs78 === errors;
|
|
5609
5626
|
} else {
|
|
5610
5627
|
var valid10 = true;
|
|
5611
5628
|
}
|
|
5612
5629
|
if (valid10) {
|
|
5613
|
-
if (
|
|
5614
|
-
const
|
|
5615
|
-
if (typeof
|
|
5630
|
+
if (data33.shortId !== void 0) {
|
|
5631
|
+
const _errs80 = errors;
|
|
5632
|
+
if (typeof data33.shortId !== "string") {
|
|
5616
5633
|
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" }];
|
|
5617
5634
|
return false;
|
|
5618
5635
|
}
|
|
5619
|
-
var valid10 =
|
|
5636
|
+
var valid10 = _errs80 === errors;
|
|
5620
5637
|
} else {
|
|
5621
5638
|
var valid10 = true;
|
|
5622
5639
|
}
|
|
5623
5640
|
if (valid10) {
|
|
5624
|
-
if (
|
|
5625
|
-
const
|
|
5626
|
-
if (typeof
|
|
5641
|
+
if (data33.intent !== void 0) {
|
|
5642
|
+
const _errs82 = errors;
|
|
5643
|
+
if (typeof data33.intent !== "string") {
|
|
5627
5644
|
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" }];
|
|
5628
5645
|
return false;
|
|
5629
5646
|
}
|
|
5630
|
-
var valid10 =
|
|
5647
|
+
var valid10 = _errs82 === errors;
|
|
5631
5648
|
} else {
|
|
5632
5649
|
var valid10 = true;
|
|
5633
5650
|
}
|
|
5634
5651
|
if (valid10) {
|
|
5635
|
-
if (
|
|
5636
|
-
const
|
|
5637
|
-
if (typeof
|
|
5652
|
+
if (data33.area !== void 0) {
|
|
5653
|
+
const _errs84 = errors;
|
|
5654
|
+
if (typeof data33.area !== "string") {
|
|
5638
5655
|
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" }];
|
|
5639
5656
|
return false;
|
|
5640
5657
|
}
|
|
5641
|
-
var valid10 =
|
|
5658
|
+
var valid10 = _errs84 === errors;
|
|
5642
5659
|
} else {
|
|
5643
5660
|
var valid10 = true;
|
|
5644
5661
|
}
|
|
5645
5662
|
if (valid10) {
|
|
5646
|
-
if (
|
|
5647
|
-
const
|
|
5648
|
-
if (typeof
|
|
5663
|
+
if (data33.authorName !== void 0) {
|
|
5664
|
+
const _errs86 = errors;
|
|
5665
|
+
if (typeof data33.authorName !== "string") {
|
|
5649
5666
|
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" }];
|
|
5650
5667
|
return false;
|
|
5651
5668
|
}
|
|
5652
|
-
var valid10 =
|
|
5669
|
+
var valid10 = _errs86 === errors;
|
|
5653
5670
|
} else {
|
|
5654
5671
|
var valid10 = true;
|
|
5655
5672
|
}
|
|
5656
5673
|
if (valid10) {
|
|
5657
|
-
if (
|
|
5658
|
-
let
|
|
5659
|
-
const
|
|
5660
|
-
if (!(typeof
|
|
5674
|
+
if (data33.classifiedAt !== void 0) {
|
|
5675
|
+
let data39 = data33.classifiedAt;
|
|
5676
|
+
const _errs88 = errors;
|
|
5677
|
+
if (!(typeof data39 == "number" && isFinite(data39))) {
|
|
5661
5678
|
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" }];
|
|
5662
5679
|
return false;
|
|
5663
5680
|
}
|
|
5664
|
-
var valid10 =
|
|
5681
|
+
var valid10 = _errs88 === errors;
|
|
5665
5682
|
} else {
|
|
5666
5683
|
var valid10 = true;
|
|
5667
5684
|
}
|
|
5668
5685
|
if (valid10) {
|
|
5669
|
-
if (
|
|
5670
|
-
let
|
|
5671
|
-
const
|
|
5672
|
-
if (typeof
|
|
5686
|
+
if (data33.status !== void 0) {
|
|
5687
|
+
let data40 = data33.status;
|
|
5688
|
+
const _errs90 = errors;
|
|
5689
|
+
if (typeof data40 !== "string") {
|
|
5673
5690
|
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" }];
|
|
5674
5691
|
return false;
|
|
5675
5692
|
}
|
|
5676
|
-
if (!(
|
|
5693
|
+
if (!(data40 === "active" || data40 === "superseded" || data40 === "under_review")) {
|
|
5677
5694
|
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" }];
|
|
5678
5695
|
return false;
|
|
5679
5696
|
}
|
|
5680
|
-
var valid10 =
|
|
5697
|
+
var valid10 = _errs90 === errors;
|
|
5681
5698
|
} else {
|
|
5682
5699
|
var valid10 = true;
|
|
5683
5700
|
}
|
|
@@ -5693,7 +5710,7 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
5693
5710
|
return false;
|
|
5694
5711
|
}
|
|
5695
5712
|
}
|
|
5696
|
-
var valid9 =
|
|
5713
|
+
var valid9 = _errs75 === errors;
|
|
5697
5714
|
if (!valid9) {
|
|
5698
5715
|
break;
|
|
5699
5716
|
}
|
|
@@ -5703,34 +5720,34 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
5703
5720
|
return false;
|
|
5704
5721
|
}
|
|
5705
5722
|
}
|
|
5706
|
-
var valid1 =
|
|
5723
|
+
var valid1 = _errs73 === errors;
|
|
5707
5724
|
} else {
|
|
5708
5725
|
var valid1 = true;
|
|
5709
5726
|
}
|
|
5710
5727
|
if (valid1) {
|
|
5711
5728
|
if (data.dependents !== void 0) {
|
|
5712
|
-
let
|
|
5713
|
-
const
|
|
5714
|
-
if (errors ===
|
|
5715
|
-
if (Array.isArray(
|
|
5729
|
+
let data41 = data.dependents;
|
|
5730
|
+
const _errs92 = errors;
|
|
5731
|
+
if (errors === _errs92) {
|
|
5732
|
+
if (Array.isArray(data41)) {
|
|
5716
5733
|
var valid11 = true;
|
|
5717
|
-
const len5 =
|
|
5734
|
+
const len5 = data41.length;
|
|
5718
5735
|
for (let i5 = 0; i5 < len5; i5++) {
|
|
5719
|
-
let
|
|
5720
|
-
const
|
|
5721
|
-
if (errors ===
|
|
5722
|
-
if (
|
|
5736
|
+
let data42 = data41[i5];
|
|
5737
|
+
const _errs94 = errors;
|
|
5738
|
+
if (errors === _errs94) {
|
|
5739
|
+
if (data42 && typeof data42 == "object" && !Array.isArray(data42)) {
|
|
5723
5740
|
let missing4;
|
|
5724
|
-
if (
|
|
5741
|
+
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")) {
|
|
5725
5742
|
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 + "'" }];
|
|
5726
5743
|
return false;
|
|
5727
5744
|
} else {
|
|
5728
|
-
if (
|
|
5729
|
-
let
|
|
5730
|
-
const
|
|
5731
|
-
if (errors ===
|
|
5732
|
-
if (typeof
|
|
5733
|
-
if (func1(
|
|
5745
|
+
if (data42.id !== void 0) {
|
|
5746
|
+
let data43 = data42.id;
|
|
5747
|
+
const _errs97 = errors;
|
|
5748
|
+
if (errors === _errs97) {
|
|
5749
|
+
if (typeof data43 === "string") {
|
|
5750
|
+
if (func1(data43) < 1) {
|
|
5734
5751
|
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" }];
|
|
5735
5752
|
return false;
|
|
5736
5753
|
}
|
|
@@ -5739,79 +5756,79 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
5739
5756
|
return false;
|
|
5740
5757
|
}
|
|
5741
5758
|
}
|
|
5742
|
-
var valid12 =
|
|
5759
|
+
var valid12 = _errs97 === errors;
|
|
5743
5760
|
} else {
|
|
5744
5761
|
var valid12 = true;
|
|
5745
5762
|
}
|
|
5746
5763
|
if (valid12) {
|
|
5747
|
-
if (
|
|
5748
|
-
const
|
|
5749
|
-
if (typeof
|
|
5764
|
+
if (data42.shortId !== void 0) {
|
|
5765
|
+
const _errs99 = errors;
|
|
5766
|
+
if (typeof data42.shortId !== "string") {
|
|
5750
5767
|
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" }];
|
|
5751
5768
|
return false;
|
|
5752
5769
|
}
|
|
5753
|
-
var valid12 =
|
|
5770
|
+
var valid12 = _errs99 === errors;
|
|
5754
5771
|
} else {
|
|
5755
5772
|
var valid12 = true;
|
|
5756
5773
|
}
|
|
5757
5774
|
if (valid12) {
|
|
5758
|
-
if (
|
|
5759
|
-
const
|
|
5760
|
-
if (typeof
|
|
5775
|
+
if (data42.intent !== void 0) {
|
|
5776
|
+
const _errs101 = errors;
|
|
5777
|
+
if (typeof data42.intent !== "string") {
|
|
5761
5778
|
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" }];
|
|
5762
5779
|
return false;
|
|
5763
5780
|
}
|
|
5764
|
-
var valid12 =
|
|
5781
|
+
var valid12 = _errs101 === errors;
|
|
5765
5782
|
} else {
|
|
5766
5783
|
var valid12 = true;
|
|
5767
5784
|
}
|
|
5768
5785
|
if (valid12) {
|
|
5769
|
-
if (
|
|
5770
|
-
const
|
|
5771
|
-
if (typeof
|
|
5786
|
+
if (data42.area !== void 0) {
|
|
5787
|
+
const _errs103 = errors;
|
|
5788
|
+
if (typeof data42.area !== "string") {
|
|
5772
5789
|
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" }];
|
|
5773
5790
|
return false;
|
|
5774
5791
|
}
|
|
5775
|
-
var valid12 =
|
|
5792
|
+
var valid12 = _errs103 === errors;
|
|
5776
5793
|
} else {
|
|
5777
5794
|
var valid12 = true;
|
|
5778
5795
|
}
|
|
5779
5796
|
if (valid12) {
|
|
5780
|
-
if (
|
|
5781
|
-
const
|
|
5782
|
-
if (typeof
|
|
5797
|
+
if (data42.authorName !== void 0) {
|
|
5798
|
+
const _errs105 = errors;
|
|
5799
|
+
if (typeof data42.authorName !== "string") {
|
|
5783
5800
|
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" }];
|
|
5784
5801
|
return false;
|
|
5785
5802
|
}
|
|
5786
|
-
var valid12 =
|
|
5803
|
+
var valid12 = _errs105 === errors;
|
|
5787
5804
|
} else {
|
|
5788
5805
|
var valid12 = true;
|
|
5789
5806
|
}
|
|
5790
5807
|
if (valid12) {
|
|
5791
|
-
if (
|
|
5792
|
-
let
|
|
5793
|
-
const
|
|
5794
|
-
if (!(typeof
|
|
5808
|
+
if (data42.classifiedAt !== void 0) {
|
|
5809
|
+
let data48 = data42.classifiedAt;
|
|
5810
|
+
const _errs107 = errors;
|
|
5811
|
+
if (!(typeof data48 == "number" && isFinite(data48))) {
|
|
5795
5812
|
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" }];
|
|
5796
5813
|
return false;
|
|
5797
5814
|
}
|
|
5798
|
-
var valid12 =
|
|
5815
|
+
var valid12 = _errs107 === errors;
|
|
5799
5816
|
} else {
|
|
5800
5817
|
var valid12 = true;
|
|
5801
5818
|
}
|
|
5802
5819
|
if (valid12) {
|
|
5803
|
-
if (
|
|
5804
|
-
let
|
|
5805
|
-
const
|
|
5806
|
-
if (typeof
|
|
5820
|
+
if (data42.status !== void 0) {
|
|
5821
|
+
let data49 = data42.status;
|
|
5822
|
+
const _errs109 = errors;
|
|
5823
|
+
if (typeof data49 !== "string") {
|
|
5807
5824
|
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" }];
|
|
5808
5825
|
return false;
|
|
5809
5826
|
}
|
|
5810
|
-
if (!(
|
|
5827
|
+
if (!(data49 === "active" || data49 === "superseded" || data49 === "under_review")) {
|
|
5811
5828
|
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" }];
|
|
5812
5829
|
return false;
|
|
5813
5830
|
}
|
|
5814
|
-
var valid12 =
|
|
5831
|
+
var valid12 = _errs109 === errors;
|
|
5815
5832
|
} else {
|
|
5816
5833
|
var valid12 = true;
|
|
5817
5834
|
}
|
|
@@ -5827,7 +5844,7 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
5827
5844
|
return false;
|
|
5828
5845
|
}
|
|
5829
5846
|
}
|
|
5830
|
-
var valid11 =
|
|
5847
|
+
var valid11 = _errs94 === errors;
|
|
5831
5848
|
if (!valid11) {
|
|
5832
5849
|
break;
|
|
5833
5850
|
}
|
|
@@ -5837,56 +5854,56 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
5837
5854
|
return false;
|
|
5838
5855
|
}
|
|
5839
5856
|
}
|
|
5840
|
-
var valid1 =
|
|
5857
|
+
var valid1 = _errs92 === errors;
|
|
5841
5858
|
} else {
|
|
5842
5859
|
var valid1 = true;
|
|
5843
5860
|
}
|
|
5844
5861
|
if (valid1) {
|
|
5845
5862
|
if (data.scope !== void 0) {
|
|
5846
|
-
let
|
|
5847
|
-
const
|
|
5848
|
-
if (errors ===
|
|
5849
|
-
if (
|
|
5863
|
+
let data50 = data.scope;
|
|
5864
|
+
const _errs111 = errors;
|
|
5865
|
+
if (errors === _errs111) {
|
|
5866
|
+
if (data50 && typeof data50 == "object" && !Array.isArray(data50)) {
|
|
5850
5867
|
let missing5;
|
|
5851
|
-
if (
|
|
5868
|
+
if (data50.location === void 0 && (missing5 = "location") || data50.time === void 0 && (missing5 = "time") || data50.users === void 0 && (missing5 = "users")) {
|
|
5852
5869
|
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 + "'" }];
|
|
5853
5870
|
return false;
|
|
5854
5871
|
} else {
|
|
5855
|
-
if (
|
|
5856
|
-
let
|
|
5857
|
-
const
|
|
5858
|
-
if (errors ===
|
|
5859
|
-
if (
|
|
5872
|
+
if (data50.location !== void 0) {
|
|
5873
|
+
let data51 = data50.location;
|
|
5874
|
+
const _errs114 = errors;
|
|
5875
|
+
if (errors === _errs114) {
|
|
5876
|
+
if (data51 && typeof data51 == "object" && !Array.isArray(data51)) {
|
|
5860
5877
|
let missing6;
|
|
5861
|
-
if (
|
|
5878
|
+
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")) {
|
|
5862
5879
|
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 + "'" }];
|
|
5863
5880
|
return false;
|
|
5864
5881
|
} else {
|
|
5865
|
-
if (
|
|
5866
|
-
const
|
|
5867
|
-
if (typeof
|
|
5882
|
+
if (data51.repository !== void 0) {
|
|
5883
|
+
const _errs117 = errors;
|
|
5884
|
+
if (typeof data51.repository !== "boolean") {
|
|
5868
5885
|
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" }];
|
|
5869
5886
|
return false;
|
|
5870
5887
|
}
|
|
5871
|
-
var valid14 =
|
|
5888
|
+
var valid14 = _errs117 === errors;
|
|
5872
5889
|
} else {
|
|
5873
5890
|
var valid14 = true;
|
|
5874
5891
|
}
|
|
5875
5892
|
if (valid14) {
|
|
5876
|
-
if (
|
|
5877
|
-
let
|
|
5878
|
-
const
|
|
5879
|
-
if (errors ===
|
|
5880
|
-
if (Array.isArray(
|
|
5893
|
+
if (data51.directories !== void 0) {
|
|
5894
|
+
let data53 = data51.directories;
|
|
5895
|
+
const _errs119 = errors;
|
|
5896
|
+
if (errors === _errs119) {
|
|
5897
|
+
if (Array.isArray(data53)) {
|
|
5881
5898
|
var valid15 = true;
|
|
5882
|
-
const len6 =
|
|
5899
|
+
const len6 = data53.length;
|
|
5883
5900
|
for (let i6 = 0; i6 < len6; i6++) {
|
|
5884
|
-
const
|
|
5885
|
-
if (typeof
|
|
5901
|
+
const _errs121 = errors;
|
|
5902
|
+
if (typeof data53[i6] !== "string") {
|
|
5886
5903
|
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" }];
|
|
5887
5904
|
return false;
|
|
5888
5905
|
}
|
|
5889
|
-
var valid15 =
|
|
5906
|
+
var valid15 = _errs121 === errors;
|
|
5890
5907
|
if (!valid15) {
|
|
5891
5908
|
break;
|
|
5892
5909
|
}
|
|
@@ -5896,25 +5913,25 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
5896
5913
|
return false;
|
|
5897
5914
|
}
|
|
5898
5915
|
}
|
|
5899
|
-
var valid14 =
|
|
5916
|
+
var valid14 = _errs119 === errors;
|
|
5900
5917
|
} else {
|
|
5901
5918
|
var valid14 = true;
|
|
5902
5919
|
}
|
|
5903
5920
|
if (valid14) {
|
|
5904
|
-
if (
|
|
5905
|
-
let
|
|
5906
|
-
const
|
|
5907
|
-
if (errors ===
|
|
5908
|
-
if (Array.isArray(
|
|
5921
|
+
if (data51.globs !== void 0) {
|
|
5922
|
+
let data55 = data51.globs;
|
|
5923
|
+
const _errs123 = errors;
|
|
5924
|
+
if (errors === _errs123) {
|
|
5925
|
+
if (Array.isArray(data55)) {
|
|
5909
5926
|
var valid16 = true;
|
|
5910
|
-
const len7 =
|
|
5927
|
+
const len7 = data55.length;
|
|
5911
5928
|
for (let i7 = 0; i7 < len7; i7++) {
|
|
5912
|
-
const
|
|
5913
|
-
if (typeof
|
|
5929
|
+
const _errs125 = errors;
|
|
5930
|
+
if (typeof data55[i7] !== "string") {
|
|
5914
5931
|
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" }];
|
|
5915
5932
|
return false;
|
|
5916
5933
|
}
|
|
5917
|
-
var valid16 =
|
|
5934
|
+
var valid16 = _errs125 === errors;
|
|
5918
5935
|
if (!valid16) {
|
|
5919
5936
|
break;
|
|
5920
5937
|
}
|
|
@@ -5924,25 +5941,25 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
5924
5941
|
return false;
|
|
5925
5942
|
}
|
|
5926
5943
|
}
|
|
5927
|
-
var valid14 =
|
|
5944
|
+
var valid14 = _errs123 === errors;
|
|
5928
5945
|
} else {
|
|
5929
5946
|
var valid14 = true;
|
|
5930
5947
|
}
|
|
5931
5948
|
if (valid14) {
|
|
5932
|
-
if (
|
|
5933
|
-
let
|
|
5934
|
-
const
|
|
5935
|
-
if (errors ===
|
|
5936
|
-
if (Array.isArray(
|
|
5949
|
+
if (data51.branches !== void 0) {
|
|
5950
|
+
let data57 = data51.branches;
|
|
5951
|
+
const _errs127 = errors;
|
|
5952
|
+
if (errors === _errs127) {
|
|
5953
|
+
if (Array.isArray(data57)) {
|
|
5937
5954
|
var valid17 = true;
|
|
5938
|
-
const len8 =
|
|
5955
|
+
const len8 = data57.length;
|
|
5939
5956
|
for (let i8 = 0; i8 < len8; i8++) {
|
|
5940
|
-
const
|
|
5941
|
-
if (typeof
|
|
5957
|
+
const _errs129 = errors;
|
|
5958
|
+
if (typeof data57[i8] !== "string") {
|
|
5942
5959
|
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" }];
|
|
5943
5960
|
return false;
|
|
5944
5961
|
}
|
|
5945
|
-
var valid17 =
|
|
5962
|
+
var valid17 = _errs129 === errors;
|
|
5946
5963
|
if (!valid17) {
|
|
5947
5964
|
break;
|
|
5948
5965
|
}
|
|
@@ -5952,7 +5969,7 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
5952
5969
|
return false;
|
|
5953
5970
|
}
|
|
5954
5971
|
}
|
|
5955
|
-
var valid14 =
|
|
5972
|
+
var valid14 = _errs127 === errors;
|
|
5956
5973
|
} else {
|
|
5957
5974
|
var valid14 = true;
|
|
5958
5975
|
}
|
|
@@ -5965,62 +5982,62 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
5965
5982
|
return false;
|
|
5966
5983
|
}
|
|
5967
5984
|
}
|
|
5968
|
-
var valid13 =
|
|
5985
|
+
var valid13 = _errs114 === errors;
|
|
5969
5986
|
} else {
|
|
5970
5987
|
var valid13 = true;
|
|
5971
5988
|
}
|
|
5972
5989
|
if (valid13) {
|
|
5973
|
-
if (
|
|
5974
|
-
let
|
|
5975
|
-
const
|
|
5976
|
-
if (errors ===
|
|
5977
|
-
if (
|
|
5978
|
-
if (
|
|
5979
|
-
let
|
|
5980
|
-
const
|
|
5981
|
-
if (!(typeof
|
|
5990
|
+
if (data50.time !== void 0) {
|
|
5991
|
+
let data59 = data50.time;
|
|
5992
|
+
const _errs131 = errors;
|
|
5993
|
+
if (errors === _errs131) {
|
|
5994
|
+
if (data59 && typeof data59 == "object" && !Array.isArray(data59)) {
|
|
5995
|
+
if (data59.effectiveFrom !== void 0) {
|
|
5996
|
+
let data60 = data59.effectiveFrom;
|
|
5997
|
+
const _errs134 = errors;
|
|
5998
|
+
if (!(typeof data60 == "number" && (!(data60 % 1) && !isNaN(data60)) && isFinite(data60))) {
|
|
5982
5999
|
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" }];
|
|
5983
6000
|
return false;
|
|
5984
6001
|
}
|
|
5985
|
-
if (errors ===
|
|
5986
|
-
if (typeof
|
|
5987
|
-
if (
|
|
6002
|
+
if (errors === _errs134) {
|
|
6003
|
+
if (typeof data60 == "number" && isFinite(data60)) {
|
|
6004
|
+
if (data60 > 9007199254740991 || isNaN(data60)) {
|
|
5988
6005
|
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" }];
|
|
5989
6006
|
return false;
|
|
5990
6007
|
} else {
|
|
5991
|
-
if (
|
|
6008
|
+
if (data60 < -9007199254740991 || isNaN(data60)) {
|
|
5992
6009
|
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" }];
|
|
5993
6010
|
return false;
|
|
5994
6011
|
}
|
|
5995
6012
|
}
|
|
5996
6013
|
}
|
|
5997
6014
|
}
|
|
5998
|
-
var valid18 =
|
|
6015
|
+
var valid18 = _errs134 === errors;
|
|
5999
6016
|
} else {
|
|
6000
6017
|
var valid18 = true;
|
|
6001
6018
|
}
|
|
6002
6019
|
if (valid18) {
|
|
6003
|
-
if (
|
|
6004
|
-
let
|
|
6005
|
-
const
|
|
6006
|
-
if (!(typeof
|
|
6020
|
+
if (data59.effectiveUntil !== void 0) {
|
|
6021
|
+
let data61 = data59.effectiveUntil;
|
|
6022
|
+
const _errs136 = errors;
|
|
6023
|
+
if (!(typeof data61 == "number" && (!(data61 % 1) && !isNaN(data61)) && isFinite(data61))) {
|
|
6007
6024
|
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" }];
|
|
6008
6025
|
return false;
|
|
6009
6026
|
}
|
|
6010
|
-
if (errors ===
|
|
6011
|
-
if (typeof
|
|
6012
|
-
if (
|
|
6027
|
+
if (errors === _errs136) {
|
|
6028
|
+
if (typeof data61 == "number" && isFinite(data61)) {
|
|
6029
|
+
if (data61 > 9007199254740991 || isNaN(data61)) {
|
|
6013
6030
|
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" }];
|
|
6014
6031
|
return false;
|
|
6015
6032
|
} else {
|
|
6016
|
-
if (
|
|
6033
|
+
if (data61 < -9007199254740991 || isNaN(data61)) {
|
|
6017
6034
|
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" }];
|
|
6018
6035
|
return false;
|
|
6019
6036
|
}
|
|
6020
6037
|
}
|
|
6021
6038
|
}
|
|
6022
6039
|
}
|
|
6023
|
-
var valid18 =
|
|
6040
|
+
var valid18 = _errs136 === errors;
|
|
6024
6041
|
} else {
|
|
6025
6042
|
var valid18 = true;
|
|
6026
6043
|
}
|
|
@@ -6030,29 +6047,29 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
6030
6047
|
return false;
|
|
6031
6048
|
}
|
|
6032
6049
|
}
|
|
6033
|
-
var valid13 =
|
|
6050
|
+
var valid13 = _errs131 === errors;
|
|
6034
6051
|
} else {
|
|
6035
6052
|
var valid13 = true;
|
|
6036
6053
|
}
|
|
6037
6054
|
if (valid13) {
|
|
6038
|
-
if (
|
|
6039
|
-
let
|
|
6040
|
-
const
|
|
6041
|
-
if (errors ===
|
|
6042
|
-
if (Array.isArray(
|
|
6055
|
+
if (data50.users !== void 0) {
|
|
6056
|
+
let data62 = data50.users;
|
|
6057
|
+
const _errs138 = errors;
|
|
6058
|
+
if (errors === _errs138) {
|
|
6059
|
+
if (Array.isArray(data62)) {
|
|
6043
6060
|
var valid19 = true;
|
|
6044
|
-
const len9 =
|
|
6061
|
+
const len9 = data62.length;
|
|
6045
6062
|
for (let i9 = 0; i9 < len9; i9++) {
|
|
6046
|
-
let
|
|
6047
|
-
const
|
|
6048
|
-
const
|
|
6063
|
+
let data63 = data62[i9];
|
|
6064
|
+
const _errs140 = errors;
|
|
6065
|
+
const _errs141 = errors;
|
|
6049
6066
|
let valid20 = false;
|
|
6050
6067
|
let passing0 = null;
|
|
6051
|
-
const
|
|
6052
|
-
if (errors ===
|
|
6053
|
-
if (
|
|
6068
|
+
const _errs142 = errors;
|
|
6069
|
+
if (errors === _errs142) {
|
|
6070
|
+
if (data63 && typeof data63 == "object" && !Array.isArray(data63)) {
|
|
6054
6071
|
let missing7;
|
|
6055
|
-
if (
|
|
6072
|
+
if (data63.kind === void 0 && (missing7 = "kind") || data63.userId === void 0 && (missing7 = "userId") || data63.displayName === void 0 && (missing7 = "displayName")) {
|
|
6056
6073
|
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 + "'" };
|
|
6057
6074
|
if (vErrors === null) {
|
|
6058
6075
|
vErrors = [err4];
|
|
@@ -6061,8 +6078,8 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
6061
6078
|
}
|
|
6062
6079
|
errors++;
|
|
6063
6080
|
} else {
|
|
6064
|
-
const
|
|
6065
|
-
for (const key0 in
|
|
6081
|
+
const _errs144 = errors;
|
|
6082
|
+
for (const key0 in data63) {
|
|
6066
6083
|
if (!(key0 === "kind" || key0 === "userId" || key0 === "displayName")) {
|
|
6067
6084
|
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" };
|
|
6068
6085
|
if (vErrors === null) {
|
|
@@ -6074,11 +6091,11 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
6074
6091
|
break;
|
|
6075
6092
|
}
|
|
6076
6093
|
}
|
|
6077
|
-
if (
|
|
6078
|
-
if (
|
|
6079
|
-
let
|
|
6080
|
-
const
|
|
6081
|
-
if (typeof
|
|
6094
|
+
if (_errs144 === errors) {
|
|
6095
|
+
if (data63.kind !== void 0) {
|
|
6096
|
+
let data64 = data63.kind;
|
|
6097
|
+
const _errs145 = errors;
|
|
6098
|
+
if (typeof data64 !== "string") {
|
|
6082
6099
|
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" };
|
|
6083
6100
|
if (vErrors === null) {
|
|
6084
6101
|
vErrors = [err6];
|
|
@@ -6087,7 +6104,7 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
6087
6104
|
}
|
|
6088
6105
|
errors++;
|
|
6089
6106
|
}
|
|
6090
|
-
if ("user" !==
|
|
6107
|
+
if ("user" !== data64) {
|
|
6091
6108
|
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" };
|
|
6092
6109
|
if (vErrors === null) {
|
|
6093
6110
|
vErrors = [err7];
|
|
@@ -6096,17 +6113,17 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
6096
6113
|
}
|
|
6097
6114
|
errors++;
|
|
6098
6115
|
}
|
|
6099
|
-
var valid21 =
|
|
6116
|
+
var valid21 = _errs145 === errors;
|
|
6100
6117
|
} else {
|
|
6101
6118
|
var valid21 = true;
|
|
6102
6119
|
}
|
|
6103
6120
|
if (valid21) {
|
|
6104
|
-
if (
|
|
6105
|
-
let
|
|
6106
|
-
const
|
|
6107
|
-
if (errors ===
|
|
6108
|
-
if (typeof
|
|
6109
|
-
if (func1(
|
|
6121
|
+
if (data63.userId !== void 0) {
|
|
6122
|
+
let data65 = data63.userId;
|
|
6123
|
+
const _errs147 = errors;
|
|
6124
|
+
if (errors === _errs147) {
|
|
6125
|
+
if (typeof data65 === "string") {
|
|
6126
|
+
if (func1(data65) < 1) {
|
|
6110
6127
|
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" };
|
|
6111
6128
|
if (vErrors === null) {
|
|
6112
6129
|
vErrors = [err8];
|
|
@@ -6125,14 +6142,14 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
6125
6142
|
errors++;
|
|
6126
6143
|
}
|
|
6127
6144
|
}
|
|
6128
|
-
var valid21 =
|
|
6145
|
+
var valid21 = _errs147 === errors;
|
|
6129
6146
|
} else {
|
|
6130
6147
|
var valid21 = true;
|
|
6131
6148
|
}
|
|
6132
6149
|
if (valid21) {
|
|
6133
|
-
if (
|
|
6134
|
-
const
|
|
6135
|
-
if (typeof
|
|
6150
|
+
if (data63.displayName !== void 0) {
|
|
6151
|
+
const _errs149 = errors;
|
|
6152
|
+
if (typeof data63.displayName !== "string") {
|
|
6136
6153
|
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" };
|
|
6137
6154
|
if (vErrors === null) {
|
|
6138
6155
|
vErrors = [err10];
|
|
@@ -6141,7 +6158,7 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
6141
6158
|
}
|
|
6142
6159
|
errors++;
|
|
6143
6160
|
}
|
|
6144
|
-
var valid21 =
|
|
6161
|
+
var valid21 = _errs149 === errors;
|
|
6145
6162
|
} else {
|
|
6146
6163
|
var valid21 = true;
|
|
6147
6164
|
}
|
|
@@ -6159,17 +6176,17 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
6159
6176
|
errors++;
|
|
6160
6177
|
}
|
|
6161
6178
|
}
|
|
6162
|
-
var _valid1 =
|
|
6179
|
+
var _valid1 = _errs142 === errors;
|
|
6163
6180
|
if (_valid1) {
|
|
6164
6181
|
valid20 = true;
|
|
6165
6182
|
passing0 = 0;
|
|
6166
6183
|
var props0 = true;
|
|
6167
6184
|
}
|
|
6168
|
-
const
|
|
6169
|
-
if (errors ===
|
|
6170
|
-
if (
|
|
6185
|
+
const _errs151 = errors;
|
|
6186
|
+
if (errors === _errs151) {
|
|
6187
|
+
if (data63 && typeof data63 == "object" && !Array.isArray(data63)) {
|
|
6171
6188
|
let missing8;
|
|
6172
|
-
if (
|
|
6189
|
+
if (data63.kind === void 0 && (missing8 = "kind") || data63.role === void 0 && (missing8 = "role")) {
|
|
6173
6190
|
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 + "'" };
|
|
6174
6191
|
if (vErrors === null) {
|
|
6175
6192
|
vErrors = [err12];
|
|
@@ -6178,8 +6195,8 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
6178
6195
|
}
|
|
6179
6196
|
errors++;
|
|
6180
6197
|
} else {
|
|
6181
|
-
const
|
|
6182
|
-
for (const key1 in
|
|
6198
|
+
const _errs153 = errors;
|
|
6199
|
+
for (const key1 in data63) {
|
|
6183
6200
|
if (!(key1 === "kind" || key1 === "role")) {
|
|
6184
6201
|
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" };
|
|
6185
6202
|
if (vErrors === null) {
|
|
@@ -6191,11 +6208,11 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
6191
6208
|
break;
|
|
6192
6209
|
}
|
|
6193
6210
|
}
|
|
6194
|
-
if (
|
|
6195
|
-
if (
|
|
6196
|
-
let
|
|
6197
|
-
const
|
|
6198
|
-
if (typeof
|
|
6211
|
+
if (_errs153 === errors) {
|
|
6212
|
+
if (data63.kind !== void 0) {
|
|
6213
|
+
let data67 = data63.kind;
|
|
6214
|
+
const _errs154 = errors;
|
|
6215
|
+
if (typeof data67 !== "string") {
|
|
6199
6216
|
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" };
|
|
6200
6217
|
if (vErrors === null) {
|
|
6201
6218
|
vErrors = [err14];
|
|
@@ -6204,7 +6221,7 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
6204
6221
|
}
|
|
6205
6222
|
errors++;
|
|
6206
6223
|
}
|
|
6207
|
-
if ("role" !==
|
|
6224
|
+
if ("role" !== data67) {
|
|
6208
6225
|
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" };
|
|
6209
6226
|
if (vErrors === null) {
|
|
6210
6227
|
vErrors = [err15];
|
|
@@ -6213,15 +6230,15 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
6213
6230
|
}
|
|
6214
6231
|
errors++;
|
|
6215
6232
|
}
|
|
6216
|
-
var valid22 =
|
|
6233
|
+
var valid22 = _errs154 === errors;
|
|
6217
6234
|
} else {
|
|
6218
6235
|
var valid22 = true;
|
|
6219
6236
|
}
|
|
6220
6237
|
if (valid22) {
|
|
6221
|
-
if (
|
|
6222
|
-
let
|
|
6223
|
-
const
|
|
6224
|
-
if (typeof
|
|
6238
|
+
if (data63.role !== void 0) {
|
|
6239
|
+
let data68 = data63.role;
|
|
6240
|
+
const _errs156 = errors;
|
|
6241
|
+
if (typeof data68 !== "string") {
|
|
6225
6242
|
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" };
|
|
6226
6243
|
if (vErrors === null) {
|
|
6227
6244
|
vErrors = [err16];
|
|
@@ -6230,7 +6247,7 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
6230
6247
|
}
|
|
6231
6248
|
errors++;
|
|
6232
6249
|
}
|
|
6233
|
-
if (!(
|
|
6250
|
+
if (!(data68 === "owner" || data68 === "admin" || data68 === "member")) {
|
|
6234
6251
|
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" };
|
|
6235
6252
|
if (vErrors === null) {
|
|
6236
6253
|
vErrors = [err17];
|
|
@@ -6239,7 +6256,7 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
6239
6256
|
}
|
|
6240
6257
|
errors++;
|
|
6241
6258
|
}
|
|
6242
|
-
var valid22 =
|
|
6259
|
+
var valid22 = _errs156 === errors;
|
|
6243
6260
|
} else {
|
|
6244
6261
|
var valid22 = true;
|
|
6245
6262
|
}
|
|
@@ -6256,7 +6273,7 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
6256
6273
|
errors++;
|
|
6257
6274
|
}
|
|
6258
6275
|
}
|
|
6259
|
-
var _valid1 =
|
|
6276
|
+
var _valid1 = _errs151 === errors;
|
|
6260
6277
|
if (_valid1 && valid20) {
|
|
6261
6278
|
valid20 = false;
|
|
6262
6279
|
passing0 = [passing0, 1];
|
|
@@ -6268,11 +6285,11 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
6268
6285
|
props0 = true;
|
|
6269
6286
|
}
|
|
6270
6287
|
}
|
|
6271
|
-
const
|
|
6272
|
-
if (errors ===
|
|
6273
|
-
if (
|
|
6288
|
+
const _errs158 = errors;
|
|
6289
|
+
if (errors === _errs158) {
|
|
6290
|
+
if (data63 && typeof data63 == "object" && !Array.isArray(data63)) {
|
|
6274
6291
|
let missing9;
|
|
6275
|
-
if (
|
|
6292
|
+
if (data63.kind === void 0 && (missing9 = "kind") || data63.agent === void 0 && (missing9 = "agent")) {
|
|
6276
6293
|
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 + "'" };
|
|
6277
6294
|
if (vErrors === null) {
|
|
6278
6295
|
vErrors = [err19];
|
|
@@ -6281,8 +6298,8 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
6281
6298
|
}
|
|
6282
6299
|
errors++;
|
|
6283
6300
|
} else {
|
|
6284
|
-
const
|
|
6285
|
-
for (const key2 in
|
|
6301
|
+
const _errs160 = errors;
|
|
6302
|
+
for (const key2 in data63) {
|
|
6286
6303
|
if (!(key2 === "kind" || key2 === "agent")) {
|
|
6287
6304
|
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" };
|
|
6288
6305
|
if (vErrors === null) {
|
|
@@ -6294,11 +6311,11 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
6294
6311
|
break;
|
|
6295
6312
|
}
|
|
6296
6313
|
}
|
|
6297
|
-
if (
|
|
6298
|
-
if (
|
|
6299
|
-
let
|
|
6300
|
-
const
|
|
6301
|
-
if (typeof
|
|
6314
|
+
if (_errs160 === errors) {
|
|
6315
|
+
if (data63.kind !== void 0) {
|
|
6316
|
+
let data69 = data63.kind;
|
|
6317
|
+
const _errs161 = errors;
|
|
6318
|
+
if (typeof data69 !== "string") {
|
|
6302
6319
|
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" };
|
|
6303
6320
|
if (vErrors === null) {
|
|
6304
6321
|
vErrors = [err21];
|
|
@@ -6307,7 +6324,7 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
6307
6324
|
}
|
|
6308
6325
|
errors++;
|
|
6309
6326
|
}
|
|
6310
|
-
if ("agent" !==
|
|
6327
|
+
if ("agent" !== data69) {
|
|
6311
6328
|
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" };
|
|
6312
6329
|
if (vErrors === null) {
|
|
6313
6330
|
vErrors = [err22];
|
|
@@ -6316,15 +6333,15 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
6316
6333
|
}
|
|
6317
6334
|
errors++;
|
|
6318
6335
|
}
|
|
6319
|
-
var valid23 =
|
|
6336
|
+
var valid23 = _errs161 === errors;
|
|
6320
6337
|
} else {
|
|
6321
6338
|
var valid23 = true;
|
|
6322
6339
|
}
|
|
6323
6340
|
if (valid23) {
|
|
6324
|
-
if (
|
|
6325
|
-
let
|
|
6326
|
-
const
|
|
6327
|
-
if (typeof
|
|
6341
|
+
if (data63.agent !== void 0) {
|
|
6342
|
+
let data70 = data63.agent;
|
|
6343
|
+
const _errs163 = errors;
|
|
6344
|
+
if (typeof data70 !== "string") {
|
|
6328
6345
|
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" };
|
|
6329
6346
|
if (vErrors === null) {
|
|
6330
6347
|
vErrors = [err23];
|
|
@@ -6333,7 +6350,7 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
6333
6350
|
}
|
|
6334
6351
|
errors++;
|
|
6335
6352
|
}
|
|
6336
|
-
if (!(
|
|
6353
|
+
if (!(data70 === "claude_code" || data70 === "codex" || data70 === "hermes")) {
|
|
6337
6354
|
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" };
|
|
6338
6355
|
if (vErrors === null) {
|
|
6339
6356
|
vErrors = [err24];
|
|
@@ -6342,7 +6359,7 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
6342
6359
|
}
|
|
6343
6360
|
errors++;
|
|
6344
6361
|
}
|
|
6345
|
-
var valid23 =
|
|
6362
|
+
var valid23 = _errs163 === errors;
|
|
6346
6363
|
} else {
|
|
6347
6364
|
var valid23 = true;
|
|
6348
6365
|
}
|
|
@@ -6359,7 +6376,7 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
6359
6376
|
errors++;
|
|
6360
6377
|
}
|
|
6361
6378
|
}
|
|
6362
|
-
var _valid1 =
|
|
6379
|
+
var _valid1 = _errs158 === errors;
|
|
6363
6380
|
if (_valid1 && valid20) {
|
|
6364
6381
|
valid20 = false;
|
|
6365
6382
|
passing0 = [passing0, 2];
|
|
@@ -6371,11 +6388,11 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
6371
6388
|
props0 = true;
|
|
6372
6389
|
}
|
|
6373
6390
|
}
|
|
6374
|
-
const
|
|
6375
|
-
if (errors ===
|
|
6376
|
-
if (
|
|
6391
|
+
const _errs165 = errors;
|
|
6392
|
+
if (errors === _errs165) {
|
|
6393
|
+
if (data63 && typeof data63 == "object" && !Array.isArray(data63)) {
|
|
6377
6394
|
let missing10;
|
|
6378
|
-
if (
|
|
6395
|
+
if (data63.kind === void 0 && (missing10 = "kind") || data63.credential === void 0 && (missing10 = "credential")) {
|
|
6379
6396
|
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 + "'" };
|
|
6380
6397
|
if (vErrors === null) {
|
|
6381
6398
|
vErrors = [err26];
|
|
@@ -6384,8 +6401,8 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
6384
6401
|
}
|
|
6385
6402
|
errors++;
|
|
6386
6403
|
} else {
|
|
6387
|
-
const
|
|
6388
|
-
for (const key3 in
|
|
6404
|
+
const _errs167 = errors;
|
|
6405
|
+
for (const key3 in data63) {
|
|
6389
6406
|
if (!(key3 === "kind" || key3 === "credential")) {
|
|
6390
6407
|
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" };
|
|
6391
6408
|
if (vErrors === null) {
|
|
@@ -6397,11 +6414,11 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
6397
6414
|
break;
|
|
6398
6415
|
}
|
|
6399
6416
|
}
|
|
6400
|
-
if (
|
|
6401
|
-
if (
|
|
6402
|
-
let
|
|
6403
|
-
const
|
|
6404
|
-
if (typeof
|
|
6417
|
+
if (_errs167 === errors) {
|
|
6418
|
+
if (data63.kind !== void 0) {
|
|
6419
|
+
let data71 = data63.kind;
|
|
6420
|
+
const _errs168 = errors;
|
|
6421
|
+
if (typeof data71 !== "string") {
|
|
6405
6422
|
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" };
|
|
6406
6423
|
if (vErrors === null) {
|
|
6407
6424
|
vErrors = [err28];
|
|
@@ -6410,7 +6427,7 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
6410
6427
|
}
|
|
6411
6428
|
errors++;
|
|
6412
6429
|
}
|
|
6413
|
-
if ("credential" !==
|
|
6430
|
+
if ("credential" !== data71) {
|
|
6414
6431
|
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" };
|
|
6415
6432
|
if (vErrors === null) {
|
|
6416
6433
|
vErrors = [err29];
|
|
@@ -6419,15 +6436,15 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
6419
6436
|
}
|
|
6420
6437
|
errors++;
|
|
6421
6438
|
}
|
|
6422
|
-
var valid24 =
|
|
6439
|
+
var valid24 = _errs168 === errors;
|
|
6423
6440
|
} else {
|
|
6424
6441
|
var valid24 = true;
|
|
6425
6442
|
}
|
|
6426
6443
|
if (valid24) {
|
|
6427
|
-
if (
|
|
6428
|
-
let
|
|
6429
|
-
const
|
|
6430
|
-
if (typeof
|
|
6444
|
+
if (data63.credential !== void 0) {
|
|
6445
|
+
let data72 = data63.credential;
|
|
6446
|
+
const _errs170 = errors;
|
|
6447
|
+
if (typeof data72 !== "string") {
|
|
6431
6448
|
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" };
|
|
6432
6449
|
if (vErrors === null) {
|
|
6433
6450
|
vErrors = [err30];
|
|
@@ -6436,7 +6453,7 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
6436
6453
|
}
|
|
6437
6454
|
errors++;
|
|
6438
6455
|
}
|
|
6439
|
-
if (!(
|
|
6456
|
+
if (!(data72 === "workos_jwt" || data72 === "workos_api_key" || data72 === "service_token")) {
|
|
6440
6457
|
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" };
|
|
6441
6458
|
if (vErrors === null) {
|
|
6442
6459
|
vErrors = [err31];
|
|
@@ -6445,7 +6462,7 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
6445
6462
|
}
|
|
6446
6463
|
errors++;
|
|
6447
6464
|
}
|
|
6448
|
-
var valid24 =
|
|
6465
|
+
var valid24 = _errs170 === errors;
|
|
6449
6466
|
} else {
|
|
6450
6467
|
var valid24 = true;
|
|
6451
6468
|
}
|
|
@@ -6462,7 +6479,7 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
6462
6479
|
errors++;
|
|
6463
6480
|
}
|
|
6464
6481
|
}
|
|
6465
|
-
var _valid1 =
|
|
6482
|
+
var _valid1 = _errs165 === errors;
|
|
6466
6483
|
if (_valid1 && valid20) {
|
|
6467
6484
|
valid20 = false;
|
|
6468
6485
|
passing0 = [passing0, 3];
|
|
@@ -6488,16 +6505,16 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
6488
6505
|
validate29.errors = vErrors;
|
|
6489
6506
|
return false;
|
|
6490
6507
|
} else {
|
|
6491
|
-
errors =
|
|
6508
|
+
errors = _errs141;
|
|
6492
6509
|
if (vErrors !== null) {
|
|
6493
|
-
if (
|
|
6494
|
-
vErrors.length =
|
|
6510
|
+
if (_errs141) {
|
|
6511
|
+
vErrors.length = _errs141;
|
|
6495
6512
|
} else {
|
|
6496
6513
|
vErrors = null;
|
|
6497
6514
|
}
|
|
6498
6515
|
}
|
|
6499
6516
|
}
|
|
6500
|
-
var valid19 =
|
|
6517
|
+
var valid19 = _errs140 === errors;
|
|
6501
6518
|
if (!valid19) {
|
|
6502
6519
|
break;
|
|
6503
6520
|
}
|
|
@@ -6507,7 +6524,7 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
6507
6524
|
return false;
|
|
6508
6525
|
}
|
|
6509
6526
|
}
|
|
6510
|
-
var valid13 =
|
|
6527
|
+
var valid13 = _errs138 === errors;
|
|
6511
6528
|
} else {
|
|
6512
6529
|
var valid13 = true;
|
|
6513
6530
|
}
|
|
@@ -6519,18 +6536,18 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
6519
6536
|
return false;
|
|
6520
6537
|
}
|
|
6521
6538
|
}
|
|
6522
|
-
var valid1 =
|
|
6539
|
+
var valid1 = _errs111 === errors;
|
|
6523
6540
|
} else {
|
|
6524
6541
|
var valid1 = true;
|
|
6525
6542
|
}
|
|
6526
6543
|
if (valid1) {
|
|
6527
6544
|
if (data.truncated !== void 0) {
|
|
6528
|
-
const
|
|
6545
|
+
const _errs172 = errors;
|
|
6529
6546
|
if (typeof data.truncated !== "boolean") {
|
|
6530
6547
|
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" }];
|
|
6531
6548
|
return false;
|
|
6532
6549
|
}
|
|
6533
|
-
var valid1 =
|
|
6550
|
+
var valid1 = _errs172 === errors;
|
|
6534
6551
|
} else {
|
|
6535
6552
|
var valid1 = true;
|
|
6536
6553
|
}
|