@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
|
@@ -5186,7 +5186,7 @@ function validate28(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
5186
5186
|
return errors === 0;
|
|
5187
5187
|
}
|
|
5188
5188
|
validate28.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
|
|
5189
|
-
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": {} };
|
|
5189
|
+
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": {} };
|
|
5190
5190
|
function validate29(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
5191
5191
|
;
|
|
5192
5192
|
let vErrors = null;
|
|
@@ -5212,7 +5212,7 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
5212
5212
|
if (errors === _errs3) {
|
|
5213
5213
|
if (data0 && typeof data0 == "object" && !Array.isArray(data0)) {
|
|
5214
5214
|
let missing1;
|
|
5215
|
-
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")) {
|
|
5215
|
+
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")) {
|
|
5216
5216
|
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 + "'" }];
|
|
5217
5217
|
return false;
|
|
5218
5218
|
} else {
|
|
@@ -5362,15 +5362,15 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
5362
5362
|
var valid2 = true;
|
|
5363
5363
|
}
|
|
5364
5364
|
if (valid2) {
|
|
5365
|
-
if (data0.
|
|
5366
|
-
let data12 = data0.
|
|
5365
|
+
if (data0.stage !== void 0) {
|
|
5366
|
+
let data12 = data0.stage;
|
|
5367
5367
|
const _errs28 = errors;
|
|
5368
5368
|
if (typeof data12 !== "string") {
|
|
5369
|
-
validate29.errors = [{ instancePath: instancePath + "/decision/
|
|
5369
|
+
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" }];
|
|
5370
5370
|
return false;
|
|
5371
5371
|
}
|
|
5372
|
-
if (!(data12 === "
|
|
5373
|
-
validate29.errors = [{ instancePath: instancePath + "/decision/
|
|
5372
|
+
if (!(data12 === "draft" || data12 === "provisional" || data12 === "adopted" || data12 === "superseded" || data12 === "abandoned")) {
|
|
5373
|
+
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" }];
|
|
5374
5374
|
return false;
|
|
5375
5375
|
}
|
|
5376
5376
|
var valid2 = _errs28 === errors;
|
|
@@ -5378,97 +5378,97 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
5378
5378
|
var valid2 = true;
|
|
5379
5379
|
}
|
|
5380
5380
|
if (valid2) {
|
|
5381
|
-
if (data0.
|
|
5382
|
-
let data13 = data0.
|
|
5381
|
+
if (data0.status !== void 0) {
|
|
5382
|
+
let data13 = data0.status;
|
|
5383
5383
|
const _errs30 = errors;
|
|
5384
|
-
|
|
5385
|
-
|
|
5386
|
-
|
|
5387
|
-
|
|
5388
|
-
|
|
5389
|
-
|
|
5390
|
-
|
|
5384
|
+
if (typeof data13 !== "string") {
|
|
5385
|
+
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" }];
|
|
5386
|
+
return false;
|
|
5387
|
+
}
|
|
5388
|
+
if (!(data13 === "active" || data13 === "superseded" || data13 === "under_review")) {
|
|
5389
|
+
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" }];
|
|
5390
|
+
return false;
|
|
5391
|
+
}
|
|
5392
|
+
var valid2 = _errs30 === errors;
|
|
5393
|
+
} else {
|
|
5394
|
+
var valid2 = true;
|
|
5395
|
+
}
|
|
5396
|
+
if (valid2) {
|
|
5397
|
+
if (data0.supersededBy !== void 0) {
|
|
5398
|
+
let data14 = data0.supersededBy;
|
|
5399
|
+
const _errs32 = errors;
|
|
5400
|
+
const _errs33 = errors;
|
|
5401
|
+
let valid5 = false;
|
|
5402
|
+
const _errs34 = errors;
|
|
5403
|
+
if (errors === _errs34) {
|
|
5404
|
+
if (typeof data14 === "string") {
|
|
5405
|
+
if (func1(data14) < 1) {
|
|
5406
|
+
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" };
|
|
5407
|
+
if (vErrors === null) {
|
|
5408
|
+
vErrors = [err0];
|
|
5409
|
+
} else {
|
|
5410
|
+
vErrors.push(err0);
|
|
5411
|
+
}
|
|
5412
|
+
errors++;
|
|
5413
|
+
}
|
|
5414
|
+
} else {
|
|
5415
|
+
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" };
|
|
5391
5416
|
if (vErrors === null) {
|
|
5392
|
-
vErrors = [
|
|
5417
|
+
vErrors = [err1];
|
|
5393
5418
|
} else {
|
|
5394
|
-
vErrors.push(
|
|
5419
|
+
vErrors.push(err1);
|
|
5395
5420
|
}
|
|
5396
5421
|
errors++;
|
|
5397
5422
|
}
|
|
5398
|
-
}
|
|
5399
|
-
|
|
5423
|
+
}
|
|
5424
|
+
var _valid0 = _errs34 === errors;
|
|
5425
|
+
valid5 = valid5 || _valid0;
|
|
5426
|
+
const _errs36 = errors;
|
|
5427
|
+
if (data14 !== null) {
|
|
5428
|
+
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" };
|
|
5400
5429
|
if (vErrors === null) {
|
|
5401
|
-
vErrors = [
|
|
5430
|
+
vErrors = [err2];
|
|
5402
5431
|
} else {
|
|
5403
|
-
vErrors.push(
|
|
5432
|
+
vErrors.push(err2);
|
|
5404
5433
|
}
|
|
5405
5434
|
errors++;
|
|
5406
5435
|
}
|
|
5407
|
-
|
|
5408
|
-
|
|
5409
|
-
|
|
5410
|
-
|
|
5411
|
-
|
|
5412
|
-
|
|
5413
|
-
if (vErrors === null) {
|
|
5414
|
-
vErrors = [err2];
|
|
5415
|
-
} else {
|
|
5416
|
-
vErrors.push(err2);
|
|
5417
|
-
}
|
|
5418
|
-
errors++;
|
|
5419
|
-
}
|
|
5420
|
-
var _valid0 = _errs34 === errors;
|
|
5421
|
-
valid5 = valid5 || _valid0;
|
|
5422
|
-
if (!valid5) {
|
|
5423
|
-
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" };
|
|
5424
|
-
if (vErrors === null) {
|
|
5425
|
-
vErrors = [err3];
|
|
5426
|
-
} else {
|
|
5427
|
-
vErrors.push(err3);
|
|
5428
|
-
}
|
|
5429
|
-
errors++;
|
|
5430
|
-
validate29.errors = vErrors;
|
|
5431
|
-
return false;
|
|
5432
|
-
} else {
|
|
5433
|
-
errors = _errs31;
|
|
5434
|
-
if (vErrors !== null) {
|
|
5435
|
-
if (_errs31) {
|
|
5436
|
-
vErrors.length = _errs31;
|
|
5436
|
+
var _valid0 = _errs36 === errors;
|
|
5437
|
+
valid5 = valid5 || _valid0;
|
|
5438
|
+
if (!valid5) {
|
|
5439
|
+
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" };
|
|
5440
|
+
if (vErrors === null) {
|
|
5441
|
+
vErrors = [err3];
|
|
5437
5442
|
} else {
|
|
5438
|
-
vErrors
|
|
5443
|
+
vErrors.push(err3);
|
|
5439
5444
|
}
|
|
5440
|
-
|
|
5441
|
-
|
|
5442
|
-
var valid2 = _errs30 === errors;
|
|
5443
|
-
} else {
|
|
5444
|
-
var valid2 = true;
|
|
5445
|
-
}
|
|
5446
|
-
if (valid2) {
|
|
5447
|
-
if (data0.confidence !== void 0) {
|
|
5448
|
-
let data14 = data0.confidence;
|
|
5449
|
-
const _errs36 = errors;
|
|
5450
|
-
if (typeof data14 !== "string") {
|
|
5451
|
-
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" }];
|
|
5452
|
-
return false;
|
|
5453
|
-
}
|
|
5454
|
-
if (!(data14 === "high" || data14 === "medium" || data14 === "low")) {
|
|
5455
|
-
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" }];
|
|
5445
|
+
errors++;
|
|
5446
|
+
validate29.errors = vErrors;
|
|
5456
5447
|
return false;
|
|
5448
|
+
} else {
|
|
5449
|
+
errors = _errs33;
|
|
5450
|
+
if (vErrors !== null) {
|
|
5451
|
+
if (_errs33) {
|
|
5452
|
+
vErrors.length = _errs33;
|
|
5453
|
+
} else {
|
|
5454
|
+
vErrors = null;
|
|
5455
|
+
}
|
|
5456
|
+
}
|
|
5457
5457
|
}
|
|
5458
|
-
var valid2 =
|
|
5458
|
+
var valid2 = _errs32 === errors;
|
|
5459
5459
|
} else {
|
|
5460
5460
|
var valid2 = true;
|
|
5461
5461
|
}
|
|
5462
5462
|
if (valid2) {
|
|
5463
|
-
if (data0.
|
|
5464
|
-
let data15 = data0.
|
|
5463
|
+
if (data0.confidence !== void 0) {
|
|
5464
|
+
let data15 = data0.confidence;
|
|
5465
5465
|
const _errs38 = errors;
|
|
5466
5466
|
if (typeof data15 !== "string") {
|
|
5467
|
-
validate29.errors = [{ instancePath: instancePath + "/decision/
|
|
5467
|
+
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" }];
|
|
5468
5468
|
return false;
|
|
5469
5469
|
}
|
|
5470
|
-
if (!(data15 === "high" || data15 === "low")) {
|
|
5471
|
-
validate29.errors = [{ instancePath: instancePath + "/decision/
|
|
5470
|
+
if (!(data15 === "high" || data15 === "medium" || data15 === "low")) {
|
|
5471
|
+
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" }];
|
|
5472
5472
|
return false;
|
|
5473
5473
|
}
|
|
5474
5474
|
var valid2 = _errs38 === errors;
|
|
@@ -5476,10 +5476,15 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
5476
5476
|
var valid2 = true;
|
|
5477
5477
|
}
|
|
5478
5478
|
if (valid2) {
|
|
5479
|
-
if (data0.
|
|
5479
|
+
if (data0.reversibility !== void 0) {
|
|
5480
|
+
let data16 = data0.reversibility;
|
|
5480
5481
|
const _errs40 = errors;
|
|
5481
|
-
if (typeof
|
|
5482
|
-
validate29.errors = [{ instancePath: instancePath + "/decision/
|
|
5482
|
+
if (typeof data16 !== "string") {
|
|
5483
|
+
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" }];
|
|
5484
|
+
return false;
|
|
5485
|
+
}
|
|
5486
|
+
if (!(data16 === "high" || data16 === "low")) {
|
|
5487
|
+
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" }];
|
|
5483
5488
|
return false;
|
|
5484
5489
|
}
|
|
5485
5490
|
var valid2 = _errs40 === errors;
|
|
@@ -5487,11 +5492,10 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
5487
5492
|
var valid2 = true;
|
|
5488
5493
|
}
|
|
5489
5494
|
if (valid2) {
|
|
5490
|
-
if (data0.
|
|
5491
|
-
let data17 = data0.respondedAt;
|
|
5495
|
+
if (data0.confirmed !== void 0) {
|
|
5492
5496
|
const _errs42 = errors;
|
|
5493
|
-
if (
|
|
5494
|
-
validate29.errors = [{ instancePath: instancePath + "/decision/
|
|
5497
|
+
if (typeof data0.confirmed !== "boolean") {
|
|
5498
|
+
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" }];
|
|
5495
5499
|
return false;
|
|
5496
5500
|
}
|
|
5497
5501
|
var valid2 = _errs42 === errors;
|
|
@@ -5499,11 +5503,11 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
5499
5503
|
var valid2 = true;
|
|
5500
5504
|
}
|
|
5501
5505
|
if (valid2) {
|
|
5502
|
-
if (data0.
|
|
5503
|
-
let data18 = data0.
|
|
5506
|
+
if (data0.respondedAt !== void 0) {
|
|
5507
|
+
let data18 = data0.respondedAt;
|
|
5504
5508
|
const _errs44 = errors;
|
|
5505
5509
|
if (!(typeof data18 == "number" && isFinite(data18))) {
|
|
5506
|
-
validate29.errors = [{ instancePath: instancePath + "/decision/
|
|
5510
|
+
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" }];
|
|
5507
5511
|
return false;
|
|
5508
5512
|
}
|
|
5509
5513
|
var valid2 = _errs44 === errors;
|
|
@@ -5511,11 +5515,11 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
5511
5515
|
var valid2 = true;
|
|
5512
5516
|
}
|
|
5513
5517
|
if (valid2) {
|
|
5514
|
-
if (data0.
|
|
5515
|
-
let data19 = data0.
|
|
5518
|
+
if (data0.fanOut !== void 0) {
|
|
5519
|
+
let data19 = data0.fanOut;
|
|
5516
5520
|
const _errs46 = errors;
|
|
5517
5521
|
if (!(typeof data19 == "number" && isFinite(data19))) {
|
|
5518
|
-
validate29.errors = [{ instancePath: instancePath + "/decision/
|
|
5522
|
+
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" }];
|
|
5519
5523
|
return false;
|
|
5520
5524
|
}
|
|
5521
5525
|
var valid2 = _errs46 === errors;
|
|
@@ -5523,16 +5527,29 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
5523
5527
|
var valid2 = true;
|
|
5524
5528
|
}
|
|
5525
5529
|
if (valid2) {
|
|
5526
|
-
if (data0.
|
|
5530
|
+
if (data0.classifiedAt !== void 0) {
|
|
5531
|
+
let data20 = data0.classifiedAt;
|
|
5527
5532
|
const _errs48 = errors;
|
|
5528
|
-
if (typeof
|
|
5529
|
-
validate29.errors = [{ instancePath: instancePath + "/decision/
|
|
5533
|
+
if (!(typeof data20 == "number" && isFinite(data20))) {
|
|
5534
|
+
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" }];
|
|
5530
5535
|
return false;
|
|
5531
5536
|
}
|
|
5532
5537
|
var valid2 = _errs48 === errors;
|
|
5533
5538
|
} else {
|
|
5534
5539
|
var valid2 = true;
|
|
5535
5540
|
}
|
|
5541
|
+
if (valid2) {
|
|
5542
|
+
if (data0.authorName !== void 0) {
|
|
5543
|
+
const _errs50 = errors;
|
|
5544
|
+
if (typeof data0.authorName !== "string") {
|
|
5545
|
+
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" }];
|
|
5546
|
+
return false;
|
|
5547
|
+
}
|
|
5548
|
+
var valid2 = _errs50 === errors;
|
|
5549
|
+
} else {
|
|
5550
|
+
var valid2 = true;
|
|
5551
|
+
}
|
|
5552
|
+
}
|
|
5536
5553
|
}
|
|
5537
5554
|
}
|
|
5538
5555
|
}
|
|
@@ -5562,19 +5579,19 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
5562
5579
|
}
|
|
5563
5580
|
if (valid1) {
|
|
5564
5581
|
if (data.files !== void 0) {
|
|
5565
|
-
let
|
|
5566
|
-
const
|
|
5567
|
-
if (errors ===
|
|
5568
|
-
if (Array.isArray(
|
|
5582
|
+
let data22 = data.files;
|
|
5583
|
+
const _errs52 = errors;
|
|
5584
|
+
if (errors === _errs52) {
|
|
5585
|
+
if (Array.isArray(data22)) {
|
|
5569
5586
|
var valid6 = true;
|
|
5570
|
-
const len2 =
|
|
5587
|
+
const len2 = data22.length;
|
|
5571
5588
|
for (let i2 = 0; i2 < len2; i2++) {
|
|
5572
|
-
const
|
|
5573
|
-
if (typeof
|
|
5589
|
+
const _errs54 = errors;
|
|
5590
|
+
if (typeof data22[i2] !== "string") {
|
|
5574
5591
|
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" }];
|
|
5575
5592
|
return false;
|
|
5576
5593
|
}
|
|
5577
|
-
var valid6 =
|
|
5594
|
+
var valid6 = _errs54 === errors;
|
|
5578
5595
|
if (!valid6) {
|
|
5579
5596
|
break;
|
|
5580
5597
|
}
|
|
@@ -5584,97 +5601,97 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
5584
5601
|
return false;
|
|
5585
5602
|
}
|
|
5586
5603
|
}
|
|
5587
|
-
var valid1 =
|
|
5604
|
+
var valid1 = _errs52 === errors;
|
|
5588
5605
|
} else {
|
|
5589
5606
|
var valid1 = true;
|
|
5590
5607
|
}
|
|
5591
5608
|
if (valid1) {
|
|
5592
5609
|
if (data.flags !== void 0) {
|
|
5593
|
-
let
|
|
5594
|
-
const
|
|
5595
|
-
if (errors ===
|
|
5596
|
-
if (Array.isArray(
|
|
5610
|
+
let data24 = data.flags;
|
|
5611
|
+
const _errs56 = errors;
|
|
5612
|
+
if (errors === _errs56) {
|
|
5613
|
+
if (Array.isArray(data24)) {
|
|
5597
5614
|
var valid7 = true;
|
|
5598
|
-
const len3 =
|
|
5615
|
+
const len3 = data24.length;
|
|
5599
5616
|
for (let i3 = 0; i3 < len3; i3++) {
|
|
5600
|
-
let
|
|
5601
|
-
const
|
|
5602
|
-
if (errors ===
|
|
5603
|
-
if (
|
|
5617
|
+
let data25 = data24[i3];
|
|
5618
|
+
const _errs58 = errors;
|
|
5619
|
+
if (errors === _errs58) {
|
|
5620
|
+
if (data25 && typeof data25 == "object" && !Array.isArray(data25)) {
|
|
5604
5621
|
let missing2;
|
|
5605
|
-
if (
|
|
5622
|
+
if (data25.type === void 0 && (missing2 = "type") || data25.flaggedAt === void 0 && (missing2 = "flaggedAt")) {
|
|
5606
5623
|
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 + "'" }];
|
|
5607
5624
|
return false;
|
|
5608
5625
|
} else {
|
|
5609
|
-
if (
|
|
5610
|
-
let
|
|
5611
|
-
const
|
|
5612
|
-
if (typeof
|
|
5626
|
+
if (data25.type !== void 0) {
|
|
5627
|
+
let data26 = data25.type;
|
|
5628
|
+
const _errs61 = errors;
|
|
5629
|
+
if (typeof data26 !== "string") {
|
|
5613
5630
|
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" }];
|
|
5614
5631
|
return false;
|
|
5615
5632
|
}
|
|
5616
|
-
if (!(
|
|
5633
|
+
if (!(data26 === "file_edit" || data26 === "supersession" || data26 === "invalidation" || data26 === "confirmation_request")) {
|
|
5617
5634
|
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" }];
|
|
5618
5635
|
return false;
|
|
5619
5636
|
}
|
|
5620
|
-
var valid8 =
|
|
5637
|
+
var valid8 = _errs61 === errors;
|
|
5621
5638
|
} else {
|
|
5622
5639
|
var valid8 = true;
|
|
5623
5640
|
}
|
|
5624
5641
|
if (valid8) {
|
|
5625
|
-
if (
|
|
5626
|
-
const
|
|
5627
|
-
if (typeof
|
|
5642
|
+
if (data25.file !== void 0) {
|
|
5643
|
+
const _errs63 = errors;
|
|
5644
|
+
if (typeof data25.file !== "string") {
|
|
5628
5645
|
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" }];
|
|
5629
5646
|
return false;
|
|
5630
5647
|
}
|
|
5631
|
-
var valid8 =
|
|
5648
|
+
var valid8 = _errs63 === errors;
|
|
5632
5649
|
} else {
|
|
5633
5650
|
var valid8 = true;
|
|
5634
5651
|
}
|
|
5635
5652
|
if (valid8) {
|
|
5636
|
-
if (
|
|
5637
|
-
let
|
|
5638
|
-
const
|
|
5639
|
-
if (!(typeof
|
|
5653
|
+
if (data25.flaggedAt !== void 0) {
|
|
5654
|
+
let data28 = data25.flaggedAt;
|
|
5655
|
+
const _errs65 = errors;
|
|
5656
|
+
if (!(typeof data28 == "number" && isFinite(data28))) {
|
|
5640
5657
|
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" }];
|
|
5641
5658
|
return false;
|
|
5642
5659
|
}
|
|
5643
|
-
var valid8 =
|
|
5660
|
+
var valid8 = _errs65 === errors;
|
|
5644
5661
|
} else {
|
|
5645
5662
|
var valid8 = true;
|
|
5646
5663
|
}
|
|
5647
5664
|
if (valid8) {
|
|
5648
|
-
if (
|
|
5649
|
-
let
|
|
5650
|
-
const
|
|
5651
|
-
if (!(typeof
|
|
5665
|
+
if (data25.acknowledgedAt !== void 0) {
|
|
5666
|
+
let data29 = data25.acknowledgedAt;
|
|
5667
|
+
const _errs67 = errors;
|
|
5668
|
+
if (!(typeof data29 == "number" && isFinite(data29))) {
|
|
5652
5669
|
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" }];
|
|
5653
5670
|
return false;
|
|
5654
5671
|
}
|
|
5655
|
-
var valid8 =
|
|
5672
|
+
var valid8 = _errs67 === errors;
|
|
5656
5673
|
} else {
|
|
5657
5674
|
var valid8 = true;
|
|
5658
5675
|
}
|
|
5659
5676
|
if (valid8) {
|
|
5660
|
-
if (
|
|
5661
|
-
const
|
|
5662
|
-
if (typeof
|
|
5677
|
+
if (data25.gateVerdict !== void 0) {
|
|
5678
|
+
const _errs69 = errors;
|
|
5679
|
+
if (typeof data25.gateVerdict !== "string") {
|
|
5663
5680
|
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" }];
|
|
5664
5681
|
return false;
|
|
5665
5682
|
}
|
|
5666
|
-
var valid8 =
|
|
5683
|
+
var valid8 = _errs69 === errors;
|
|
5667
5684
|
} else {
|
|
5668
5685
|
var valid8 = true;
|
|
5669
5686
|
}
|
|
5670
5687
|
if (valid8) {
|
|
5671
|
-
if (
|
|
5672
|
-
const
|
|
5673
|
-
if (typeof
|
|
5688
|
+
if (data25.reason !== void 0) {
|
|
5689
|
+
const _errs71 = errors;
|
|
5690
|
+
if (typeof data25.reason !== "string") {
|
|
5674
5691
|
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" }];
|
|
5675
5692
|
return false;
|
|
5676
5693
|
}
|
|
5677
|
-
var valid8 =
|
|
5694
|
+
var valid8 = _errs71 === errors;
|
|
5678
5695
|
} else {
|
|
5679
5696
|
var valid8 = true;
|
|
5680
5697
|
}
|
|
@@ -5689,7 +5706,7 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
5689
5706
|
return false;
|
|
5690
5707
|
}
|
|
5691
5708
|
}
|
|
5692
|
-
var valid7 =
|
|
5709
|
+
var valid7 = _errs58 === errors;
|
|
5693
5710
|
if (!valid7) {
|
|
5694
5711
|
break;
|
|
5695
5712
|
}
|
|
@@ -5699,34 +5716,34 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
5699
5716
|
return false;
|
|
5700
5717
|
}
|
|
5701
5718
|
}
|
|
5702
|
-
var valid1 =
|
|
5719
|
+
var valid1 = _errs56 === errors;
|
|
5703
5720
|
} else {
|
|
5704
5721
|
var valid1 = true;
|
|
5705
5722
|
}
|
|
5706
5723
|
if (valid1) {
|
|
5707
5724
|
if (data.dependsOn !== void 0) {
|
|
5708
|
-
let
|
|
5709
|
-
const
|
|
5710
|
-
if (errors ===
|
|
5711
|
-
if (Array.isArray(
|
|
5725
|
+
let data32 = data.dependsOn;
|
|
5726
|
+
const _errs73 = errors;
|
|
5727
|
+
if (errors === _errs73) {
|
|
5728
|
+
if (Array.isArray(data32)) {
|
|
5712
5729
|
var valid9 = true;
|
|
5713
|
-
const len4 =
|
|
5730
|
+
const len4 = data32.length;
|
|
5714
5731
|
for (let i4 = 0; i4 < len4; i4++) {
|
|
5715
|
-
let
|
|
5716
|
-
const
|
|
5717
|
-
if (errors ===
|
|
5718
|
-
if (
|
|
5732
|
+
let data33 = data32[i4];
|
|
5733
|
+
const _errs75 = errors;
|
|
5734
|
+
if (errors === _errs75) {
|
|
5735
|
+
if (data33 && typeof data33 == "object" && !Array.isArray(data33)) {
|
|
5719
5736
|
let missing3;
|
|
5720
|
-
if (
|
|
5737
|
+
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")) {
|
|
5721
5738
|
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 + "'" }];
|
|
5722
5739
|
return false;
|
|
5723
5740
|
} else {
|
|
5724
|
-
if (
|
|
5725
|
-
let
|
|
5726
|
-
const
|
|
5727
|
-
if (errors ===
|
|
5728
|
-
if (typeof
|
|
5729
|
-
if (func1(
|
|
5741
|
+
if (data33.id !== void 0) {
|
|
5742
|
+
let data34 = data33.id;
|
|
5743
|
+
const _errs78 = errors;
|
|
5744
|
+
if (errors === _errs78) {
|
|
5745
|
+
if (typeof data34 === "string") {
|
|
5746
|
+
if (func1(data34) < 1) {
|
|
5730
5747
|
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" }];
|
|
5731
5748
|
return false;
|
|
5732
5749
|
}
|
|
@@ -5735,79 +5752,79 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
5735
5752
|
return false;
|
|
5736
5753
|
}
|
|
5737
5754
|
}
|
|
5738
|
-
var valid10 =
|
|
5755
|
+
var valid10 = _errs78 === errors;
|
|
5739
5756
|
} else {
|
|
5740
5757
|
var valid10 = true;
|
|
5741
5758
|
}
|
|
5742
5759
|
if (valid10) {
|
|
5743
|
-
if (
|
|
5744
|
-
const
|
|
5745
|
-
if (typeof
|
|
5760
|
+
if (data33.shortId !== void 0) {
|
|
5761
|
+
const _errs80 = errors;
|
|
5762
|
+
if (typeof data33.shortId !== "string") {
|
|
5746
5763
|
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" }];
|
|
5747
5764
|
return false;
|
|
5748
5765
|
}
|
|
5749
|
-
var valid10 =
|
|
5766
|
+
var valid10 = _errs80 === errors;
|
|
5750
5767
|
} else {
|
|
5751
5768
|
var valid10 = true;
|
|
5752
5769
|
}
|
|
5753
5770
|
if (valid10) {
|
|
5754
|
-
if (
|
|
5755
|
-
const
|
|
5756
|
-
if (typeof
|
|
5771
|
+
if (data33.intent !== void 0) {
|
|
5772
|
+
const _errs82 = errors;
|
|
5773
|
+
if (typeof data33.intent !== "string") {
|
|
5757
5774
|
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" }];
|
|
5758
5775
|
return false;
|
|
5759
5776
|
}
|
|
5760
|
-
var valid10 =
|
|
5777
|
+
var valid10 = _errs82 === errors;
|
|
5761
5778
|
} else {
|
|
5762
5779
|
var valid10 = true;
|
|
5763
5780
|
}
|
|
5764
5781
|
if (valid10) {
|
|
5765
|
-
if (
|
|
5766
|
-
const
|
|
5767
|
-
if (typeof
|
|
5782
|
+
if (data33.area !== void 0) {
|
|
5783
|
+
const _errs84 = errors;
|
|
5784
|
+
if (typeof data33.area !== "string") {
|
|
5768
5785
|
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" }];
|
|
5769
5786
|
return false;
|
|
5770
5787
|
}
|
|
5771
|
-
var valid10 =
|
|
5788
|
+
var valid10 = _errs84 === errors;
|
|
5772
5789
|
} else {
|
|
5773
5790
|
var valid10 = true;
|
|
5774
5791
|
}
|
|
5775
5792
|
if (valid10) {
|
|
5776
|
-
if (
|
|
5777
|
-
const
|
|
5778
|
-
if (typeof
|
|
5793
|
+
if (data33.authorName !== void 0) {
|
|
5794
|
+
const _errs86 = errors;
|
|
5795
|
+
if (typeof data33.authorName !== "string") {
|
|
5779
5796
|
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" }];
|
|
5780
5797
|
return false;
|
|
5781
5798
|
}
|
|
5782
|
-
var valid10 =
|
|
5799
|
+
var valid10 = _errs86 === errors;
|
|
5783
5800
|
} else {
|
|
5784
5801
|
var valid10 = true;
|
|
5785
5802
|
}
|
|
5786
5803
|
if (valid10) {
|
|
5787
|
-
if (
|
|
5788
|
-
let
|
|
5789
|
-
const
|
|
5790
|
-
if (!(typeof
|
|
5804
|
+
if (data33.classifiedAt !== void 0) {
|
|
5805
|
+
let data39 = data33.classifiedAt;
|
|
5806
|
+
const _errs88 = errors;
|
|
5807
|
+
if (!(typeof data39 == "number" && isFinite(data39))) {
|
|
5791
5808
|
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" }];
|
|
5792
5809
|
return false;
|
|
5793
5810
|
}
|
|
5794
|
-
var valid10 =
|
|
5811
|
+
var valid10 = _errs88 === errors;
|
|
5795
5812
|
} else {
|
|
5796
5813
|
var valid10 = true;
|
|
5797
5814
|
}
|
|
5798
5815
|
if (valid10) {
|
|
5799
|
-
if (
|
|
5800
|
-
let
|
|
5801
|
-
const
|
|
5802
|
-
if (typeof
|
|
5816
|
+
if (data33.status !== void 0) {
|
|
5817
|
+
let data40 = data33.status;
|
|
5818
|
+
const _errs90 = errors;
|
|
5819
|
+
if (typeof data40 !== "string") {
|
|
5803
5820
|
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" }];
|
|
5804
5821
|
return false;
|
|
5805
5822
|
}
|
|
5806
|
-
if (!(
|
|
5823
|
+
if (!(data40 === "active" || data40 === "superseded" || data40 === "under_review")) {
|
|
5807
5824
|
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" }];
|
|
5808
5825
|
return false;
|
|
5809
5826
|
}
|
|
5810
|
-
var valid10 =
|
|
5827
|
+
var valid10 = _errs90 === errors;
|
|
5811
5828
|
} else {
|
|
5812
5829
|
var valid10 = true;
|
|
5813
5830
|
}
|
|
@@ -5823,7 +5840,7 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
5823
5840
|
return false;
|
|
5824
5841
|
}
|
|
5825
5842
|
}
|
|
5826
|
-
var valid9 =
|
|
5843
|
+
var valid9 = _errs75 === errors;
|
|
5827
5844
|
if (!valid9) {
|
|
5828
5845
|
break;
|
|
5829
5846
|
}
|
|
@@ -5833,34 +5850,34 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
5833
5850
|
return false;
|
|
5834
5851
|
}
|
|
5835
5852
|
}
|
|
5836
|
-
var valid1 =
|
|
5853
|
+
var valid1 = _errs73 === errors;
|
|
5837
5854
|
} else {
|
|
5838
5855
|
var valid1 = true;
|
|
5839
5856
|
}
|
|
5840
5857
|
if (valid1) {
|
|
5841
5858
|
if (data.dependents !== void 0) {
|
|
5842
|
-
let
|
|
5843
|
-
const
|
|
5844
|
-
if (errors ===
|
|
5845
|
-
if (Array.isArray(
|
|
5859
|
+
let data41 = data.dependents;
|
|
5860
|
+
const _errs92 = errors;
|
|
5861
|
+
if (errors === _errs92) {
|
|
5862
|
+
if (Array.isArray(data41)) {
|
|
5846
5863
|
var valid11 = true;
|
|
5847
|
-
const len5 =
|
|
5864
|
+
const len5 = data41.length;
|
|
5848
5865
|
for (let i5 = 0; i5 < len5; i5++) {
|
|
5849
|
-
let
|
|
5850
|
-
const
|
|
5851
|
-
if (errors ===
|
|
5852
|
-
if (
|
|
5866
|
+
let data42 = data41[i5];
|
|
5867
|
+
const _errs94 = errors;
|
|
5868
|
+
if (errors === _errs94) {
|
|
5869
|
+
if (data42 && typeof data42 == "object" && !Array.isArray(data42)) {
|
|
5853
5870
|
let missing4;
|
|
5854
|
-
if (
|
|
5871
|
+
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")) {
|
|
5855
5872
|
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 + "'" }];
|
|
5856
5873
|
return false;
|
|
5857
5874
|
} else {
|
|
5858
|
-
if (
|
|
5859
|
-
let
|
|
5860
|
-
const
|
|
5861
|
-
if (errors ===
|
|
5862
|
-
if (typeof
|
|
5863
|
-
if (func1(
|
|
5875
|
+
if (data42.id !== void 0) {
|
|
5876
|
+
let data43 = data42.id;
|
|
5877
|
+
const _errs97 = errors;
|
|
5878
|
+
if (errors === _errs97) {
|
|
5879
|
+
if (typeof data43 === "string") {
|
|
5880
|
+
if (func1(data43) < 1) {
|
|
5864
5881
|
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" }];
|
|
5865
5882
|
return false;
|
|
5866
5883
|
}
|
|
@@ -5869,79 +5886,79 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
5869
5886
|
return false;
|
|
5870
5887
|
}
|
|
5871
5888
|
}
|
|
5872
|
-
var valid12 =
|
|
5889
|
+
var valid12 = _errs97 === errors;
|
|
5873
5890
|
} else {
|
|
5874
5891
|
var valid12 = true;
|
|
5875
5892
|
}
|
|
5876
5893
|
if (valid12) {
|
|
5877
|
-
if (
|
|
5878
|
-
const
|
|
5879
|
-
if (typeof
|
|
5894
|
+
if (data42.shortId !== void 0) {
|
|
5895
|
+
const _errs99 = errors;
|
|
5896
|
+
if (typeof data42.shortId !== "string") {
|
|
5880
5897
|
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" }];
|
|
5881
5898
|
return false;
|
|
5882
5899
|
}
|
|
5883
|
-
var valid12 =
|
|
5900
|
+
var valid12 = _errs99 === errors;
|
|
5884
5901
|
} else {
|
|
5885
5902
|
var valid12 = true;
|
|
5886
5903
|
}
|
|
5887
5904
|
if (valid12) {
|
|
5888
|
-
if (
|
|
5889
|
-
const
|
|
5890
|
-
if (typeof
|
|
5905
|
+
if (data42.intent !== void 0) {
|
|
5906
|
+
const _errs101 = errors;
|
|
5907
|
+
if (typeof data42.intent !== "string") {
|
|
5891
5908
|
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" }];
|
|
5892
5909
|
return false;
|
|
5893
5910
|
}
|
|
5894
|
-
var valid12 =
|
|
5911
|
+
var valid12 = _errs101 === errors;
|
|
5895
5912
|
} else {
|
|
5896
5913
|
var valid12 = true;
|
|
5897
5914
|
}
|
|
5898
5915
|
if (valid12) {
|
|
5899
|
-
if (
|
|
5900
|
-
const
|
|
5901
|
-
if (typeof
|
|
5916
|
+
if (data42.area !== void 0) {
|
|
5917
|
+
const _errs103 = errors;
|
|
5918
|
+
if (typeof data42.area !== "string") {
|
|
5902
5919
|
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" }];
|
|
5903
5920
|
return false;
|
|
5904
5921
|
}
|
|
5905
|
-
var valid12 =
|
|
5922
|
+
var valid12 = _errs103 === errors;
|
|
5906
5923
|
} else {
|
|
5907
5924
|
var valid12 = true;
|
|
5908
5925
|
}
|
|
5909
5926
|
if (valid12) {
|
|
5910
|
-
if (
|
|
5911
|
-
const
|
|
5912
|
-
if (typeof
|
|
5927
|
+
if (data42.authorName !== void 0) {
|
|
5928
|
+
const _errs105 = errors;
|
|
5929
|
+
if (typeof data42.authorName !== "string") {
|
|
5913
5930
|
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" }];
|
|
5914
5931
|
return false;
|
|
5915
5932
|
}
|
|
5916
|
-
var valid12 =
|
|
5933
|
+
var valid12 = _errs105 === errors;
|
|
5917
5934
|
} else {
|
|
5918
5935
|
var valid12 = true;
|
|
5919
5936
|
}
|
|
5920
5937
|
if (valid12) {
|
|
5921
|
-
if (
|
|
5922
|
-
let
|
|
5923
|
-
const
|
|
5924
|
-
if (!(typeof
|
|
5938
|
+
if (data42.classifiedAt !== void 0) {
|
|
5939
|
+
let data48 = data42.classifiedAt;
|
|
5940
|
+
const _errs107 = errors;
|
|
5941
|
+
if (!(typeof data48 == "number" && isFinite(data48))) {
|
|
5925
5942
|
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" }];
|
|
5926
5943
|
return false;
|
|
5927
5944
|
}
|
|
5928
|
-
var valid12 =
|
|
5945
|
+
var valid12 = _errs107 === errors;
|
|
5929
5946
|
} else {
|
|
5930
5947
|
var valid12 = true;
|
|
5931
5948
|
}
|
|
5932
5949
|
if (valid12) {
|
|
5933
|
-
if (
|
|
5934
|
-
let
|
|
5935
|
-
const
|
|
5936
|
-
if (typeof
|
|
5950
|
+
if (data42.status !== void 0) {
|
|
5951
|
+
let data49 = data42.status;
|
|
5952
|
+
const _errs109 = errors;
|
|
5953
|
+
if (typeof data49 !== "string") {
|
|
5937
5954
|
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" }];
|
|
5938
5955
|
return false;
|
|
5939
5956
|
}
|
|
5940
|
-
if (!(
|
|
5957
|
+
if (!(data49 === "active" || data49 === "superseded" || data49 === "under_review")) {
|
|
5941
5958
|
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" }];
|
|
5942
5959
|
return false;
|
|
5943
5960
|
}
|
|
5944
|
-
var valid12 =
|
|
5961
|
+
var valid12 = _errs109 === errors;
|
|
5945
5962
|
} else {
|
|
5946
5963
|
var valid12 = true;
|
|
5947
5964
|
}
|
|
@@ -5957,7 +5974,7 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
5957
5974
|
return false;
|
|
5958
5975
|
}
|
|
5959
5976
|
}
|
|
5960
|
-
var valid11 =
|
|
5977
|
+
var valid11 = _errs94 === errors;
|
|
5961
5978
|
if (!valid11) {
|
|
5962
5979
|
break;
|
|
5963
5980
|
}
|
|
@@ -5967,56 +5984,56 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
5967
5984
|
return false;
|
|
5968
5985
|
}
|
|
5969
5986
|
}
|
|
5970
|
-
var valid1 =
|
|
5987
|
+
var valid1 = _errs92 === errors;
|
|
5971
5988
|
} else {
|
|
5972
5989
|
var valid1 = true;
|
|
5973
5990
|
}
|
|
5974
5991
|
if (valid1) {
|
|
5975
5992
|
if (data.scope !== void 0) {
|
|
5976
|
-
let
|
|
5977
|
-
const
|
|
5978
|
-
if (errors ===
|
|
5979
|
-
if (
|
|
5993
|
+
let data50 = data.scope;
|
|
5994
|
+
const _errs111 = errors;
|
|
5995
|
+
if (errors === _errs111) {
|
|
5996
|
+
if (data50 && typeof data50 == "object" && !Array.isArray(data50)) {
|
|
5980
5997
|
let missing5;
|
|
5981
|
-
if (
|
|
5998
|
+
if (data50.location === void 0 && (missing5 = "location") || data50.time === void 0 && (missing5 = "time") || data50.users === void 0 && (missing5 = "users")) {
|
|
5982
5999
|
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 + "'" }];
|
|
5983
6000
|
return false;
|
|
5984
6001
|
} else {
|
|
5985
|
-
if (
|
|
5986
|
-
let
|
|
5987
|
-
const
|
|
5988
|
-
if (errors ===
|
|
5989
|
-
if (
|
|
6002
|
+
if (data50.location !== void 0) {
|
|
6003
|
+
let data51 = data50.location;
|
|
6004
|
+
const _errs114 = errors;
|
|
6005
|
+
if (errors === _errs114) {
|
|
6006
|
+
if (data51 && typeof data51 == "object" && !Array.isArray(data51)) {
|
|
5990
6007
|
let missing6;
|
|
5991
|
-
if (
|
|
6008
|
+
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")) {
|
|
5992
6009
|
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 + "'" }];
|
|
5993
6010
|
return false;
|
|
5994
6011
|
} else {
|
|
5995
|
-
if (
|
|
5996
|
-
const
|
|
5997
|
-
if (typeof
|
|
6012
|
+
if (data51.repository !== void 0) {
|
|
6013
|
+
const _errs117 = errors;
|
|
6014
|
+
if (typeof data51.repository !== "boolean") {
|
|
5998
6015
|
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" }];
|
|
5999
6016
|
return false;
|
|
6000
6017
|
}
|
|
6001
|
-
var valid14 =
|
|
6018
|
+
var valid14 = _errs117 === errors;
|
|
6002
6019
|
} else {
|
|
6003
6020
|
var valid14 = true;
|
|
6004
6021
|
}
|
|
6005
6022
|
if (valid14) {
|
|
6006
|
-
if (
|
|
6007
|
-
let
|
|
6008
|
-
const
|
|
6009
|
-
if (errors ===
|
|
6010
|
-
if (Array.isArray(
|
|
6023
|
+
if (data51.directories !== void 0) {
|
|
6024
|
+
let data53 = data51.directories;
|
|
6025
|
+
const _errs119 = errors;
|
|
6026
|
+
if (errors === _errs119) {
|
|
6027
|
+
if (Array.isArray(data53)) {
|
|
6011
6028
|
var valid15 = true;
|
|
6012
|
-
const len6 =
|
|
6029
|
+
const len6 = data53.length;
|
|
6013
6030
|
for (let i6 = 0; i6 < len6; i6++) {
|
|
6014
|
-
const
|
|
6015
|
-
if (typeof
|
|
6031
|
+
const _errs121 = errors;
|
|
6032
|
+
if (typeof data53[i6] !== "string") {
|
|
6016
6033
|
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" }];
|
|
6017
6034
|
return false;
|
|
6018
6035
|
}
|
|
6019
|
-
var valid15 =
|
|
6036
|
+
var valid15 = _errs121 === errors;
|
|
6020
6037
|
if (!valid15) {
|
|
6021
6038
|
break;
|
|
6022
6039
|
}
|
|
@@ -6026,25 +6043,25 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
6026
6043
|
return false;
|
|
6027
6044
|
}
|
|
6028
6045
|
}
|
|
6029
|
-
var valid14 =
|
|
6046
|
+
var valid14 = _errs119 === errors;
|
|
6030
6047
|
} else {
|
|
6031
6048
|
var valid14 = true;
|
|
6032
6049
|
}
|
|
6033
6050
|
if (valid14) {
|
|
6034
|
-
if (
|
|
6035
|
-
let
|
|
6036
|
-
const
|
|
6037
|
-
if (errors ===
|
|
6038
|
-
if (Array.isArray(
|
|
6051
|
+
if (data51.globs !== void 0) {
|
|
6052
|
+
let data55 = data51.globs;
|
|
6053
|
+
const _errs123 = errors;
|
|
6054
|
+
if (errors === _errs123) {
|
|
6055
|
+
if (Array.isArray(data55)) {
|
|
6039
6056
|
var valid16 = true;
|
|
6040
|
-
const len7 =
|
|
6057
|
+
const len7 = data55.length;
|
|
6041
6058
|
for (let i7 = 0; i7 < len7; i7++) {
|
|
6042
|
-
const
|
|
6043
|
-
if (typeof
|
|
6059
|
+
const _errs125 = errors;
|
|
6060
|
+
if (typeof data55[i7] !== "string") {
|
|
6044
6061
|
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" }];
|
|
6045
6062
|
return false;
|
|
6046
6063
|
}
|
|
6047
|
-
var valid16 =
|
|
6064
|
+
var valid16 = _errs125 === errors;
|
|
6048
6065
|
if (!valid16) {
|
|
6049
6066
|
break;
|
|
6050
6067
|
}
|
|
@@ -6054,25 +6071,25 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
6054
6071
|
return false;
|
|
6055
6072
|
}
|
|
6056
6073
|
}
|
|
6057
|
-
var valid14 =
|
|
6074
|
+
var valid14 = _errs123 === errors;
|
|
6058
6075
|
} else {
|
|
6059
6076
|
var valid14 = true;
|
|
6060
6077
|
}
|
|
6061
6078
|
if (valid14) {
|
|
6062
|
-
if (
|
|
6063
|
-
let
|
|
6064
|
-
const
|
|
6065
|
-
if (errors ===
|
|
6066
|
-
if (Array.isArray(
|
|
6079
|
+
if (data51.branches !== void 0) {
|
|
6080
|
+
let data57 = data51.branches;
|
|
6081
|
+
const _errs127 = errors;
|
|
6082
|
+
if (errors === _errs127) {
|
|
6083
|
+
if (Array.isArray(data57)) {
|
|
6067
6084
|
var valid17 = true;
|
|
6068
|
-
const len8 =
|
|
6085
|
+
const len8 = data57.length;
|
|
6069
6086
|
for (let i8 = 0; i8 < len8; i8++) {
|
|
6070
|
-
const
|
|
6071
|
-
if (typeof
|
|
6087
|
+
const _errs129 = errors;
|
|
6088
|
+
if (typeof data57[i8] !== "string") {
|
|
6072
6089
|
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" }];
|
|
6073
6090
|
return false;
|
|
6074
6091
|
}
|
|
6075
|
-
var valid17 =
|
|
6092
|
+
var valid17 = _errs129 === errors;
|
|
6076
6093
|
if (!valid17) {
|
|
6077
6094
|
break;
|
|
6078
6095
|
}
|
|
@@ -6082,7 +6099,7 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
6082
6099
|
return false;
|
|
6083
6100
|
}
|
|
6084
6101
|
}
|
|
6085
|
-
var valid14 =
|
|
6102
|
+
var valid14 = _errs127 === errors;
|
|
6086
6103
|
} else {
|
|
6087
6104
|
var valid14 = true;
|
|
6088
6105
|
}
|
|
@@ -6095,62 +6112,62 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
6095
6112
|
return false;
|
|
6096
6113
|
}
|
|
6097
6114
|
}
|
|
6098
|
-
var valid13 =
|
|
6115
|
+
var valid13 = _errs114 === errors;
|
|
6099
6116
|
} else {
|
|
6100
6117
|
var valid13 = true;
|
|
6101
6118
|
}
|
|
6102
6119
|
if (valid13) {
|
|
6103
|
-
if (
|
|
6104
|
-
let
|
|
6105
|
-
const
|
|
6106
|
-
if (errors ===
|
|
6107
|
-
if (
|
|
6108
|
-
if (
|
|
6109
|
-
let
|
|
6110
|
-
const
|
|
6111
|
-
if (!(typeof
|
|
6120
|
+
if (data50.time !== void 0) {
|
|
6121
|
+
let data59 = data50.time;
|
|
6122
|
+
const _errs131 = errors;
|
|
6123
|
+
if (errors === _errs131) {
|
|
6124
|
+
if (data59 && typeof data59 == "object" && !Array.isArray(data59)) {
|
|
6125
|
+
if (data59.effectiveFrom !== void 0) {
|
|
6126
|
+
let data60 = data59.effectiveFrom;
|
|
6127
|
+
const _errs134 = errors;
|
|
6128
|
+
if (!(typeof data60 == "number" && (!(data60 % 1) && !isNaN(data60)) && isFinite(data60))) {
|
|
6112
6129
|
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" }];
|
|
6113
6130
|
return false;
|
|
6114
6131
|
}
|
|
6115
|
-
if (errors ===
|
|
6116
|
-
if (typeof
|
|
6117
|
-
if (
|
|
6132
|
+
if (errors === _errs134) {
|
|
6133
|
+
if (typeof data60 == "number" && isFinite(data60)) {
|
|
6134
|
+
if (data60 > 9007199254740991 || isNaN(data60)) {
|
|
6118
6135
|
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" }];
|
|
6119
6136
|
return false;
|
|
6120
6137
|
} else {
|
|
6121
|
-
if (
|
|
6138
|
+
if (data60 < -9007199254740991 || isNaN(data60)) {
|
|
6122
6139
|
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" }];
|
|
6123
6140
|
return false;
|
|
6124
6141
|
}
|
|
6125
6142
|
}
|
|
6126
6143
|
}
|
|
6127
6144
|
}
|
|
6128
|
-
var valid18 =
|
|
6145
|
+
var valid18 = _errs134 === errors;
|
|
6129
6146
|
} else {
|
|
6130
6147
|
var valid18 = true;
|
|
6131
6148
|
}
|
|
6132
6149
|
if (valid18) {
|
|
6133
|
-
if (
|
|
6134
|
-
let
|
|
6135
|
-
const
|
|
6136
|
-
if (!(typeof
|
|
6150
|
+
if (data59.effectiveUntil !== void 0) {
|
|
6151
|
+
let data61 = data59.effectiveUntil;
|
|
6152
|
+
const _errs136 = errors;
|
|
6153
|
+
if (!(typeof data61 == "number" && (!(data61 % 1) && !isNaN(data61)) && isFinite(data61))) {
|
|
6137
6154
|
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" }];
|
|
6138
6155
|
return false;
|
|
6139
6156
|
}
|
|
6140
|
-
if (errors ===
|
|
6141
|
-
if (typeof
|
|
6142
|
-
if (
|
|
6157
|
+
if (errors === _errs136) {
|
|
6158
|
+
if (typeof data61 == "number" && isFinite(data61)) {
|
|
6159
|
+
if (data61 > 9007199254740991 || isNaN(data61)) {
|
|
6143
6160
|
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" }];
|
|
6144
6161
|
return false;
|
|
6145
6162
|
} else {
|
|
6146
|
-
if (
|
|
6163
|
+
if (data61 < -9007199254740991 || isNaN(data61)) {
|
|
6147
6164
|
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" }];
|
|
6148
6165
|
return false;
|
|
6149
6166
|
}
|
|
6150
6167
|
}
|
|
6151
6168
|
}
|
|
6152
6169
|
}
|
|
6153
|
-
var valid18 =
|
|
6170
|
+
var valid18 = _errs136 === errors;
|
|
6154
6171
|
} else {
|
|
6155
6172
|
var valid18 = true;
|
|
6156
6173
|
}
|
|
@@ -6160,29 +6177,29 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
6160
6177
|
return false;
|
|
6161
6178
|
}
|
|
6162
6179
|
}
|
|
6163
|
-
var valid13 =
|
|
6180
|
+
var valid13 = _errs131 === errors;
|
|
6164
6181
|
} else {
|
|
6165
6182
|
var valid13 = true;
|
|
6166
6183
|
}
|
|
6167
6184
|
if (valid13) {
|
|
6168
|
-
if (
|
|
6169
|
-
let
|
|
6170
|
-
const
|
|
6171
|
-
if (errors ===
|
|
6172
|
-
if (Array.isArray(
|
|
6185
|
+
if (data50.users !== void 0) {
|
|
6186
|
+
let data62 = data50.users;
|
|
6187
|
+
const _errs138 = errors;
|
|
6188
|
+
if (errors === _errs138) {
|
|
6189
|
+
if (Array.isArray(data62)) {
|
|
6173
6190
|
var valid19 = true;
|
|
6174
|
-
const len9 =
|
|
6191
|
+
const len9 = data62.length;
|
|
6175
6192
|
for (let i9 = 0; i9 < len9; i9++) {
|
|
6176
|
-
let
|
|
6177
|
-
const
|
|
6178
|
-
const
|
|
6193
|
+
let data63 = data62[i9];
|
|
6194
|
+
const _errs140 = errors;
|
|
6195
|
+
const _errs141 = errors;
|
|
6179
6196
|
let valid20 = false;
|
|
6180
6197
|
let passing0 = null;
|
|
6181
|
-
const
|
|
6182
|
-
if (errors ===
|
|
6183
|
-
if (
|
|
6198
|
+
const _errs142 = errors;
|
|
6199
|
+
if (errors === _errs142) {
|
|
6200
|
+
if (data63 && typeof data63 == "object" && !Array.isArray(data63)) {
|
|
6184
6201
|
let missing7;
|
|
6185
|
-
if (
|
|
6202
|
+
if (data63.kind === void 0 && (missing7 = "kind") || data63.userId === void 0 && (missing7 = "userId") || data63.displayName === void 0 && (missing7 = "displayName")) {
|
|
6186
6203
|
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 + "'" };
|
|
6187
6204
|
if (vErrors === null) {
|
|
6188
6205
|
vErrors = [err4];
|
|
@@ -6191,8 +6208,8 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
6191
6208
|
}
|
|
6192
6209
|
errors++;
|
|
6193
6210
|
} else {
|
|
6194
|
-
const
|
|
6195
|
-
for (const key0 in
|
|
6211
|
+
const _errs144 = errors;
|
|
6212
|
+
for (const key0 in data63) {
|
|
6196
6213
|
if (!(key0 === "kind" || key0 === "userId" || key0 === "displayName")) {
|
|
6197
6214
|
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" };
|
|
6198
6215
|
if (vErrors === null) {
|
|
@@ -6204,11 +6221,11 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
6204
6221
|
break;
|
|
6205
6222
|
}
|
|
6206
6223
|
}
|
|
6207
|
-
if (
|
|
6208
|
-
if (
|
|
6209
|
-
let
|
|
6210
|
-
const
|
|
6211
|
-
if (typeof
|
|
6224
|
+
if (_errs144 === errors) {
|
|
6225
|
+
if (data63.kind !== void 0) {
|
|
6226
|
+
let data64 = data63.kind;
|
|
6227
|
+
const _errs145 = errors;
|
|
6228
|
+
if (typeof data64 !== "string") {
|
|
6212
6229
|
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" };
|
|
6213
6230
|
if (vErrors === null) {
|
|
6214
6231
|
vErrors = [err6];
|
|
@@ -6217,7 +6234,7 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
6217
6234
|
}
|
|
6218
6235
|
errors++;
|
|
6219
6236
|
}
|
|
6220
|
-
if ("user" !==
|
|
6237
|
+
if ("user" !== data64) {
|
|
6221
6238
|
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" };
|
|
6222
6239
|
if (vErrors === null) {
|
|
6223
6240
|
vErrors = [err7];
|
|
@@ -6226,17 +6243,17 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
6226
6243
|
}
|
|
6227
6244
|
errors++;
|
|
6228
6245
|
}
|
|
6229
|
-
var valid21 =
|
|
6246
|
+
var valid21 = _errs145 === errors;
|
|
6230
6247
|
} else {
|
|
6231
6248
|
var valid21 = true;
|
|
6232
6249
|
}
|
|
6233
6250
|
if (valid21) {
|
|
6234
|
-
if (
|
|
6235
|
-
let
|
|
6236
|
-
const
|
|
6237
|
-
if (errors ===
|
|
6238
|
-
if (typeof
|
|
6239
|
-
if (func1(
|
|
6251
|
+
if (data63.userId !== void 0) {
|
|
6252
|
+
let data65 = data63.userId;
|
|
6253
|
+
const _errs147 = errors;
|
|
6254
|
+
if (errors === _errs147) {
|
|
6255
|
+
if (typeof data65 === "string") {
|
|
6256
|
+
if (func1(data65) < 1) {
|
|
6240
6257
|
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" };
|
|
6241
6258
|
if (vErrors === null) {
|
|
6242
6259
|
vErrors = [err8];
|
|
@@ -6255,14 +6272,14 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
6255
6272
|
errors++;
|
|
6256
6273
|
}
|
|
6257
6274
|
}
|
|
6258
|
-
var valid21 =
|
|
6275
|
+
var valid21 = _errs147 === errors;
|
|
6259
6276
|
} else {
|
|
6260
6277
|
var valid21 = true;
|
|
6261
6278
|
}
|
|
6262
6279
|
if (valid21) {
|
|
6263
|
-
if (
|
|
6264
|
-
const
|
|
6265
|
-
if (typeof
|
|
6280
|
+
if (data63.displayName !== void 0) {
|
|
6281
|
+
const _errs149 = errors;
|
|
6282
|
+
if (typeof data63.displayName !== "string") {
|
|
6266
6283
|
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" };
|
|
6267
6284
|
if (vErrors === null) {
|
|
6268
6285
|
vErrors = [err10];
|
|
@@ -6271,7 +6288,7 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
6271
6288
|
}
|
|
6272
6289
|
errors++;
|
|
6273
6290
|
}
|
|
6274
|
-
var valid21 =
|
|
6291
|
+
var valid21 = _errs149 === errors;
|
|
6275
6292
|
} else {
|
|
6276
6293
|
var valid21 = true;
|
|
6277
6294
|
}
|
|
@@ -6289,17 +6306,17 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
6289
6306
|
errors++;
|
|
6290
6307
|
}
|
|
6291
6308
|
}
|
|
6292
|
-
var _valid1 =
|
|
6309
|
+
var _valid1 = _errs142 === errors;
|
|
6293
6310
|
if (_valid1) {
|
|
6294
6311
|
valid20 = true;
|
|
6295
6312
|
passing0 = 0;
|
|
6296
6313
|
var props0 = true;
|
|
6297
6314
|
}
|
|
6298
|
-
const
|
|
6299
|
-
if (errors ===
|
|
6300
|
-
if (
|
|
6315
|
+
const _errs151 = errors;
|
|
6316
|
+
if (errors === _errs151) {
|
|
6317
|
+
if (data63 && typeof data63 == "object" && !Array.isArray(data63)) {
|
|
6301
6318
|
let missing8;
|
|
6302
|
-
if (
|
|
6319
|
+
if (data63.kind === void 0 && (missing8 = "kind") || data63.role === void 0 && (missing8 = "role")) {
|
|
6303
6320
|
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 + "'" };
|
|
6304
6321
|
if (vErrors === null) {
|
|
6305
6322
|
vErrors = [err12];
|
|
@@ -6308,8 +6325,8 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
6308
6325
|
}
|
|
6309
6326
|
errors++;
|
|
6310
6327
|
} else {
|
|
6311
|
-
const
|
|
6312
|
-
for (const key1 in
|
|
6328
|
+
const _errs153 = errors;
|
|
6329
|
+
for (const key1 in data63) {
|
|
6313
6330
|
if (!(key1 === "kind" || key1 === "role")) {
|
|
6314
6331
|
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" };
|
|
6315
6332
|
if (vErrors === null) {
|
|
@@ -6321,11 +6338,11 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
6321
6338
|
break;
|
|
6322
6339
|
}
|
|
6323
6340
|
}
|
|
6324
|
-
if (
|
|
6325
|
-
if (
|
|
6326
|
-
let
|
|
6327
|
-
const
|
|
6328
|
-
if (typeof
|
|
6341
|
+
if (_errs153 === errors) {
|
|
6342
|
+
if (data63.kind !== void 0) {
|
|
6343
|
+
let data67 = data63.kind;
|
|
6344
|
+
const _errs154 = errors;
|
|
6345
|
+
if (typeof data67 !== "string") {
|
|
6329
6346
|
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" };
|
|
6330
6347
|
if (vErrors === null) {
|
|
6331
6348
|
vErrors = [err14];
|
|
@@ -6334,7 +6351,7 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
6334
6351
|
}
|
|
6335
6352
|
errors++;
|
|
6336
6353
|
}
|
|
6337
|
-
if ("role" !==
|
|
6354
|
+
if ("role" !== data67) {
|
|
6338
6355
|
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" };
|
|
6339
6356
|
if (vErrors === null) {
|
|
6340
6357
|
vErrors = [err15];
|
|
@@ -6343,15 +6360,15 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
6343
6360
|
}
|
|
6344
6361
|
errors++;
|
|
6345
6362
|
}
|
|
6346
|
-
var valid22 =
|
|
6363
|
+
var valid22 = _errs154 === errors;
|
|
6347
6364
|
} else {
|
|
6348
6365
|
var valid22 = true;
|
|
6349
6366
|
}
|
|
6350
6367
|
if (valid22) {
|
|
6351
|
-
if (
|
|
6352
|
-
let
|
|
6353
|
-
const
|
|
6354
|
-
if (typeof
|
|
6368
|
+
if (data63.role !== void 0) {
|
|
6369
|
+
let data68 = data63.role;
|
|
6370
|
+
const _errs156 = errors;
|
|
6371
|
+
if (typeof data68 !== "string") {
|
|
6355
6372
|
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" };
|
|
6356
6373
|
if (vErrors === null) {
|
|
6357
6374
|
vErrors = [err16];
|
|
@@ -6360,7 +6377,7 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
6360
6377
|
}
|
|
6361
6378
|
errors++;
|
|
6362
6379
|
}
|
|
6363
|
-
if (!(
|
|
6380
|
+
if (!(data68 === "owner" || data68 === "admin" || data68 === "member")) {
|
|
6364
6381
|
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" };
|
|
6365
6382
|
if (vErrors === null) {
|
|
6366
6383
|
vErrors = [err17];
|
|
@@ -6369,7 +6386,7 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
6369
6386
|
}
|
|
6370
6387
|
errors++;
|
|
6371
6388
|
}
|
|
6372
|
-
var valid22 =
|
|
6389
|
+
var valid22 = _errs156 === errors;
|
|
6373
6390
|
} else {
|
|
6374
6391
|
var valid22 = true;
|
|
6375
6392
|
}
|
|
@@ -6386,7 +6403,7 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
6386
6403
|
errors++;
|
|
6387
6404
|
}
|
|
6388
6405
|
}
|
|
6389
|
-
var _valid1 =
|
|
6406
|
+
var _valid1 = _errs151 === errors;
|
|
6390
6407
|
if (_valid1 && valid20) {
|
|
6391
6408
|
valid20 = false;
|
|
6392
6409
|
passing0 = [passing0, 1];
|
|
@@ -6398,11 +6415,11 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
6398
6415
|
props0 = true;
|
|
6399
6416
|
}
|
|
6400
6417
|
}
|
|
6401
|
-
const
|
|
6402
|
-
if (errors ===
|
|
6403
|
-
if (
|
|
6418
|
+
const _errs158 = errors;
|
|
6419
|
+
if (errors === _errs158) {
|
|
6420
|
+
if (data63 && typeof data63 == "object" && !Array.isArray(data63)) {
|
|
6404
6421
|
let missing9;
|
|
6405
|
-
if (
|
|
6422
|
+
if (data63.kind === void 0 && (missing9 = "kind") || data63.agent === void 0 && (missing9 = "agent")) {
|
|
6406
6423
|
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 + "'" };
|
|
6407
6424
|
if (vErrors === null) {
|
|
6408
6425
|
vErrors = [err19];
|
|
@@ -6411,8 +6428,8 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
6411
6428
|
}
|
|
6412
6429
|
errors++;
|
|
6413
6430
|
} else {
|
|
6414
|
-
const
|
|
6415
|
-
for (const key2 in
|
|
6431
|
+
const _errs160 = errors;
|
|
6432
|
+
for (const key2 in data63) {
|
|
6416
6433
|
if (!(key2 === "kind" || key2 === "agent")) {
|
|
6417
6434
|
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" };
|
|
6418
6435
|
if (vErrors === null) {
|
|
@@ -6424,11 +6441,11 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
6424
6441
|
break;
|
|
6425
6442
|
}
|
|
6426
6443
|
}
|
|
6427
|
-
if (
|
|
6428
|
-
if (
|
|
6429
|
-
let
|
|
6430
|
-
const
|
|
6431
|
-
if (typeof
|
|
6444
|
+
if (_errs160 === errors) {
|
|
6445
|
+
if (data63.kind !== void 0) {
|
|
6446
|
+
let data69 = data63.kind;
|
|
6447
|
+
const _errs161 = errors;
|
|
6448
|
+
if (typeof data69 !== "string") {
|
|
6432
6449
|
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" };
|
|
6433
6450
|
if (vErrors === null) {
|
|
6434
6451
|
vErrors = [err21];
|
|
@@ -6437,7 +6454,7 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
6437
6454
|
}
|
|
6438
6455
|
errors++;
|
|
6439
6456
|
}
|
|
6440
|
-
if ("agent" !==
|
|
6457
|
+
if ("agent" !== data69) {
|
|
6441
6458
|
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" };
|
|
6442
6459
|
if (vErrors === null) {
|
|
6443
6460
|
vErrors = [err22];
|
|
@@ -6446,15 +6463,15 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
6446
6463
|
}
|
|
6447
6464
|
errors++;
|
|
6448
6465
|
}
|
|
6449
|
-
var valid23 =
|
|
6466
|
+
var valid23 = _errs161 === errors;
|
|
6450
6467
|
} else {
|
|
6451
6468
|
var valid23 = true;
|
|
6452
6469
|
}
|
|
6453
6470
|
if (valid23) {
|
|
6454
|
-
if (
|
|
6455
|
-
let
|
|
6456
|
-
const
|
|
6457
|
-
if (typeof
|
|
6471
|
+
if (data63.agent !== void 0) {
|
|
6472
|
+
let data70 = data63.agent;
|
|
6473
|
+
const _errs163 = errors;
|
|
6474
|
+
if (typeof data70 !== "string") {
|
|
6458
6475
|
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" };
|
|
6459
6476
|
if (vErrors === null) {
|
|
6460
6477
|
vErrors = [err23];
|
|
@@ -6463,7 +6480,7 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
6463
6480
|
}
|
|
6464
6481
|
errors++;
|
|
6465
6482
|
}
|
|
6466
|
-
if (!(
|
|
6483
|
+
if (!(data70 === "claude_code" || data70 === "codex" || data70 === "hermes")) {
|
|
6467
6484
|
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" };
|
|
6468
6485
|
if (vErrors === null) {
|
|
6469
6486
|
vErrors = [err24];
|
|
@@ -6472,7 +6489,7 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
6472
6489
|
}
|
|
6473
6490
|
errors++;
|
|
6474
6491
|
}
|
|
6475
|
-
var valid23 =
|
|
6492
|
+
var valid23 = _errs163 === errors;
|
|
6476
6493
|
} else {
|
|
6477
6494
|
var valid23 = true;
|
|
6478
6495
|
}
|
|
@@ -6489,7 +6506,7 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
6489
6506
|
errors++;
|
|
6490
6507
|
}
|
|
6491
6508
|
}
|
|
6492
|
-
var _valid1 =
|
|
6509
|
+
var _valid1 = _errs158 === errors;
|
|
6493
6510
|
if (_valid1 && valid20) {
|
|
6494
6511
|
valid20 = false;
|
|
6495
6512
|
passing0 = [passing0, 2];
|
|
@@ -6501,11 +6518,11 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
6501
6518
|
props0 = true;
|
|
6502
6519
|
}
|
|
6503
6520
|
}
|
|
6504
|
-
const
|
|
6505
|
-
if (errors ===
|
|
6506
|
-
if (
|
|
6521
|
+
const _errs165 = errors;
|
|
6522
|
+
if (errors === _errs165) {
|
|
6523
|
+
if (data63 && typeof data63 == "object" && !Array.isArray(data63)) {
|
|
6507
6524
|
let missing10;
|
|
6508
|
-
if (
|
|
6525
|
+
if (data63.kind === void 0 && (missing10 = "kind") || data63.credential === void 0 && (missing10 = "credential")) {
|
|
6509
6526
|
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 + "'" };
|
|
6510
6527
|
if (vErrors === null) {
|
|
6511
6528
|
vErrors = [err26];
|
|
@@ -6514,8 +6531,8 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
6514
6531
|
}
|
|
6515
6532
|
errors++;
|
|
6516
6533
|
} else {
|
|
6517
|
-
const
|
|
6518
|
-
for (const key3 in
|
|
6534
|
+
const _errs167 = errors;
|
|
6535
|
+
for (const key3 in data63) {
|
|
6519
6536
|
if (!(key3 === "kind" || key3 === "credential")) {
|
|
6520
6537
|
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" };
|
|
6521
6538
|
if (vErrors === null) {
|
|
@@ -6527,11 +6544,11 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
6527
6544
|
break;
|
|
6528
6545
|
}
|
|
6529
6546
|
}
|
|
6530
|
-
if (
|
|
6531
|
-
if (
|
|
6532
|
-
let
|
|
6533
|
-
const
|
|
6534
|
-
if (typeof
|
|
6547
|
+
if (_errs167 === errors) {
|
|
6548
|
+
if (data63.kind !== void 0) {
|
|
6549
|
+
let data71 = data63.kind;
|
|
6550
|
+
const _errs168 = errors;
|
|
6551
|
+
if (typeof data71 !== "string") {
|
|
6535
6552
|
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" };
|
|
6536
6553
|
if (vErrors === null) {
|
|
6537
6554
|
vErrors = [err28];
|
|
@@ -6540,7 +6557,7 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
6540
6557
|
}
|
|
6541
6558
|
errors++;
|
|
6542
6559
|
}
|
|
6543
|
-
if ("credential" !==
|
|
6560
|
+
if ("credential" !== data71) {
|
|
6544
6561
|
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" };
|
|
6545
6562
|
if (vErrors === null) {
|
|
6546
6563
|
vErrors = [err29];
|
|
@@ -6549,15 +6566,15 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
6549
6566
|
}
|
|
6550
6567
|
errors++;
|
|
6551
6568
|
}
|
|
6552
|
-
var valid24 =
|
|
6569
|
+
var valid24 = _errs168 === errors;
|
|
6553
6570
|
} else {
|
|
6554
6571
|
var valid24 = true;
|
|
6555
6572
|
}
|
|
6556
6573
|
if (valid24) {
|
|
6557
|
-
if (
|
|
6558
|
-
let
|
|
6559
|
-
const
|
|
6560
|
-
if (typeof
|
|
6574
|
+
if (data63.credential !== void 0) {
|
|
6575
|
+
let data72 = data63.credential;
|
|
6576
|
+
const _errs170 = errors;
|
|
6577
|
+
if (typeof data72 !== "string") {
|
|
6561
6578
|
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" };
|
|
6562
6579
|
if (vErrors === null) {
|
|
6563
6580
|
vErrors = [err30];
|
|
@@ -6566,7 +6583,7 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
6566
6583
|
}
|
|
6567
6584
|
errors++;
|
|
6568
6585
|
}
|
|
6569
|
-
if (!(
|
|
6586
|
+
if (!(data72 === "workos_jwt" || data72 === "workos_api_key" || data72 === "service_token")) {
|
|
6570
6587
|
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" };
|
|
6571
6588
|
if (vErrors === null) {
|
|
6572
6589
|
vErrors = [err31];
|
|
@@ -6575,7 +6592,7 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
6575
6592
|
}
|
|
6576
6593
|
errors++;
|
|
6577
6594
|
}
|
|
6578
|
-
var valid24 =
|
|
6595
|
+
var valid24 = _errs170 === errors;
|
|
6579
6596
|
} else {
|
|
6580
6597
|
var valid24 = true;
|
|
6581
6598
|
}
|
|
@@ -6592,7 +6609,7 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
6592
6609
|
errors++;
|
|
6593
6610
|
}
|
|
6594
6611
|
}
|
|
6595
|
-
var _valid1 =
|
|
6612
|
+
var _valid1 = _errs165 === errors;
|
|
6596
6613
|
if (_valid1 && valid20) {
|
|
6597
6614
|
valid20 = false;
|
|
6598
6615
|
passing0 = [passing0, 3];
|
|
@@ -6618,16 +6635,16 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
6618
6635
|
validate29.errors = vErrors;
|
|
6619
6636
|
return false;
|
|
6620
6637
|
} else {
|
|
6621
|
-
errors =
|
|
6638
|
+
errors = _errs141;
|
|
6622
6639
|
if (vErrors !== null) {
|
|
6623
|
-
if (
|
|
6624
|
-
vErrors.length =
|
|
6640
|
+
if (_errs141) {
|
|
6641
|
+
vErrors.length = _errs141;
|
|
6625
6642
|
} else {
|
|
6626
6643
|
vErrors = null;
|
|
6627
6644
|
}
|
|
6628
6645
|
}
|
|
6629
6646
|
}
|
|
6630
|
-
var valid19 =
|
|
6647
|
+
var valid19 = _errs140 === errors;
|
|
6631
6648
|
if (!valid19) {
|
|
6632
6649
|
break;
|
|
6633
6650
|
}
|
|
@@ -6637,7 +6654,7 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
6637
6654
|
return false;
|
|
6638
6655
|
}
|
|
6639
6656
|
}
|
|
6640
|
-
var valid13 =
|
|
6657
|
+
var valid13 = _errs138 === errors;
|
|
6641
6658
|
} else {
|
|
6642
6659
|
var valid13 = true;
|
|
6643
6660
|
}
|
|
@@ -6649,18 +6666,18 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
6649
6666
|
return false;
|
|
6650
6667
|
}
|
|
6651
6668
|
}
|
|
6652
|
-
var valid1 =
|
|
6669
|
+
var valid1 = _errs111 === errors;
|
|
6653
6670
|
} else {
|
|
6654
6671
|
var valid1 = true;
|
|
6655
6672
|
}
|
|
6656
6673
|
if (valid1) {
|
|
6657
6674
|
if (data.truncated !== void 0) {
|
|
6658
|
-
const
|
|
6675
|
+
const _errs172 = errors;
|
|
6659
6676
|
if (typeof data.truncated !== "boolean") {
|
|
6660
6677
|
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" }];
|
|
6661
6678
|
return false;
|
|
6662
6679
|
}
|
|
6663
|
-
var valid1 =
|
|
6680
|
+
var valid1 = _errs172 === errors;
|
|
6664
6681
|
} else {
|
|
6665
6682
|
var valid1 = true;
|
|
6666
6683
|
}
|