@primitive.ai/prim 0.1.0-alpha.111 → 0.1.0-alpha.112
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/README.md +11 -1
- package/SKILL.md +12 -2
- package/dist/{chunk-KQ4WBK5R.js → chunk-3KKEV7VI.js} +2 -2
- package/dist/{chunk-2IRLFOEL.js → chunk-6JHKKLA2.js} +79 -1
- package/dist/{chunk-IQZA65NV.js → chunk-7DVEH7FO.js} +1 -1
- package/dist/{chunk-W4ZEPZLK.js → chunk-BXLH4LDU.js} +1 -1
- package/dist/{chunk-GA2RXPJL.js → chunk-DWAXFXDG.js} +2 -2
- package/dist/{chunk-7VIMU2HR.js → chunk-FTW4ZCBA.js} +2 -2
- package/dist/{chunk-JJI7FU24.js → chunk-HMD5K6W7.js} +1 -1
- package/dist/{chunk-HTRFPXMD.js → chunk-IW5HCCOW.js} +3 -3
- package/dist/{chunk-UDBBJWQH.js → chunk-IZXLH3R5.js} +930 -582
- package/dist/{chunk-5LRKJTLA.js → chunk-J5HBSRAV.js} +7 -5
- package/dist/{chunk-5BLGBSDM.js → chunk-JDIAPBY7.js} +1 -1
- package/dist/{chunk-2Q3OGSTV.js → chunk-NEQI2VLM.js} +2 -2
- package/dist/{chunk-AOJ254C2.js → chunk-PJW6JZMH.js} +4 -4
- package/dist/{chunk-43ZKL27W.js → chunk-RTULPLS7.js} +1 -1
- package/dist/{chunk-CTRAJCPN.js → chunk-XV6C5ZV2.js} +1 -1
- package/dist/daemon/server.js +1184 -754
- package/dist/hook-runtime/daemon/server.js +1184 -754
- package/dist/hook-runtime/hooks/post-commit.js +929 -581
- package/dist/hook-runtime/hooks/post-rewrite.js +929 -581
- package/dist/hook-runtime/hooks/post-tool-use.js +1015 -588
- package/dist/hook-runtime/hooks/pre-commit.js +85 -6
- package/dist/hook-runtime/hooks/pre-tool-use.js +1017 -591
- package/dist/hook-runtime/hooks/prim-hook.js +1016 -589
- package/dist/hook-runtime/hooks/session-end.js +14 -12
- package/dist/hook-runtime/hooks/session-start.js +1016 -589
- package/dist/hook-runtime/index.js +1211 -791
- package/dist/hook-runtime/statusline-main.js +7 -5
- package/dist/hooks/post-commit.js +5 -5
- package/dist/hooks/post-rewrite.js +5 -5
- package/dist/hooks/post-tool-use.js +12 -12
- package/dist/hooks/pre-commit.js +3 -3
- package/dist/hooks/pre-tool-use.js +10 -11
- package/dist/hooks/prim-hook.js +12 -12
- package/dist/hooks/session-end.js +1 -1
- package/dist/hooks/session-start.js +7 -7
- package/dist/index.js +177 -183
- package/dist/statusline-main.js +7 -5
- package/package.json +2 -1
|
@@ -1023,7 +1023,9 @@ function validate22(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
1023
1023
|
return errors === 0;
|
|
1024
1024
|
}
|
|
1025
1025
|
validate22.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
|
|
1026
|
-
var schema37 = { "type": "object", "properties": { "decision": { "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": {} }, "rationale": { "type": "string" }, "reversibility": { "type": "string", "enum": ["high", "low"] }, "fanOut": { "type": "number" }, "upstream": { "type": "object", "properties": { "files": { "type": "array", "items": { "type": "string" } } }, "required": ["files"], "additionalProperties": {} }, "downstream": { "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": {} } }, "trigger": { "anyOf": [{ "type": "object", "properties": { "type": { "type": "string", "enum": ["file_edit", "supersession", "invalidation", "confirmation_request"] }, "file": { "type": "string" }, "contextName": { "type": "string" }, "flaggedAt": { "type": "number" }, "authorName": { "type": "string" }, "reason": { "type": "string" } }, "required": ["type", "flaggedAt"], "additionalProperties": {} }, { "type": "null" }] }, "truncated": { "type": "boolean" } }, "required": ["decision", "fanOut", "upstream", "downstream", "trigger", "truncated"], "additionalProperties": {} };
|
|
1026
|
+
var schema37 = { "type": "object", "properties": { "decision": { "type": "object", "properties": { "id": { "type": "string", "minLength": 1, "pattern": "^dec_[0-9a-f]{8}$", "description": "Canonical public Decision ID; internal Convex IDs are accepted only as legacy inputs." }, "shortId": { "type": "string", "pattern": "^[0-9a-f]{8}$" }, "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": {} }, "rationale": { "type": "string" }, "reversibility": { "type": "string", "enum": ["high", "low"] }, "fanOut": { "type": "number" }, "upstream": { "type": "object", "properties": { "files": { "type": "array", "items": { "type": "string" } } }, "required": ["files"], "additionalProperties": {} }, "downstream": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "minLength": 1, "pattern": "^dec_[0-9a-f]{8}$", "description": "Canonical public Decision ID; internal Convex IDs are accepted only as legacy inputs." }, "shortId": { "type": "string", "pattern": "^[0-9a-f]{8}$" }, "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": {} } }, "trigger": { "anyOf": [{ "type": "object", "properties": { "type": { "type": "string", "enum": ["file_edit", "supersession", "invalidation", "confirmation_request"] }, "file": { "type": "string" }, "contextName": { "type": "string" }, "flaggedAt": { "type": "number" }, "authorName": { "type": "string" }, "reason": { "type": "string" } }, "required": ["type", "flaggedAt"], "additionalProperties": {} }, { "type": "null" }] }, "truncated": { "type": "boolean" } }, "required": ["decision", "fanOut", "upstream", "downstream", "trigger", "truncated"], "additionalProperties": {} };
|
|
1027
|
+
var pattern4 = new RegExp("^dec_[0-9a-f]{8}$", "u");
|
|
1028
|
+
var pattern5 = new RegExp("^[0-9a-f]{8}$", "u");
|
|
1027
1029
|
function validate23(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
1028
1030
|
;
|
|
1029
1031
|
let vErrors = null;
|
|
@@ -1061,6 +1063,11 @@ function validate23(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
1061
1063
|
if (func1(data1) < 1) {
|
|
1062
1064
|
validate23.errors = [{ instancePath: instancePath + "/decision/id", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionCascadeResponse/properties/decision/properties/id/minLength", keyword: "minLength", params: { limit: 1 }, message: "must NOT have fewer than 1 characters" }];
|
|
1063
1065
|
return false;
|
|
1066
|
+
} else {
|
|
1067
|
+
if (!pattern4.test(data1)) {
|
|
1068
|
+
validate23.errors = [{ instancePath: instancePath + "/decision/id", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionCascadeResponse/properties/decision/properties/id/pattern", keyword: "pattern", params: { pattern: "^dec_[0-9a-f]{8}$" }, message: 'must match pattern "^dec_[0-9a-f]{8}$"' }];
|
|
1069
|
+
return false;
|
|
1070
|
+
}
|
|
1064
1071
|
}
|
|
1065
1072
|
} else {
|
|
1066
1073
|
validate23.errors = [{ instancePath: instancePath + "/decision/id", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionCascadeResponse/properties/decision/properties/id/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
@@ -1073,10 +1080,18 @@ function validate23(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
1073
1080
|
}
|
|
1074
1081
|
if (valid2) {
|
|
1075
1082
|
if (data0.shortId !== void 0) {
|
|
1083
|
+
let data2 = data0.shortId;
|
|
1076
1084
|
const _errs8 = errors;
|
|
1077
|
-
if (
|
|
1078
|
-
|
|
1079
|
-
|
|
1085
|
+
if (errors === _errs8) {
|
|
1086
|
+
if (typeof data2 === "string") {
|
|
1087
|
+
if (!pattern5.test(data2)) {
|
|
1088
|
+
validate23.errors = [{ instancePath: instancePath + "/decision/shortId", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionCascadeResponse/properties/decision/properties/shortId/pattern", keyword: "pattern", params: { pattern: "^[0-9a-f]{8}$" }, message: 'must match pattern "^[0-9a-f]{8}$"' }];
|
|
1089
|
+
return false;
|
|
1090
|
+
}
|
|
1091
|
+
} else {
|
|
1092
|
+
validate23.errors = [{ instancePath: instancePath + "/decision/shortId", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionCascadeResponse/properties/decision/properties/shortId/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
1093
|
+
return false;
|
|
1094
|
+
}
|
|
1080
1095
|
}
|
|
1081
1096
|
var valid2 = _errs8 === errors;
|
|
1082
1097
|
} else {
|
|
@@ -1269,6 +1284,11 @@ function validate23(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
1269
1284
|
if (func1(data16) < 1) {
|
|
1270
1285
|
validate23.errors = [{ instancePath: instancePath + "/downstream/" + i1 + "/id", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionCascadeResponse/properties/downstream/items/properties/id/minLength", keyword: "minLength", params: { limit: 1 }, message: "must NOT have fewer than 1 characters" }];
|
|
1271
1286
|
return false;
|
|
1287
|
+
} else {
|
|
1288
|
+
if (!pattern4.test(data16)) {
|
|
1289
|
+
validate23.errors = [{ instancePath: instancePath + "/downstream/" + i1 + "/id", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionCascadeResponse/properties/downstream/items/properties/id/pattern", keyword: "pattern", params: { pattern: "^dec_[0-9a-f]{8}$" }, message: 'must match pattern "^dec_[0-9a-f]{8}$"' }];
|
|
1290
|
+
return false;
|
|
1291
|
+
}
|
|
1272
1292
|
}
|
|
1273
1293
|
} else {
|
|
1274
1294
|
validate23.errors = [{ instancePath: instancePath + "/downstream/" + i1 + "/id", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionCascadeResponse/properties/downstream/items/properties/id/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
@@ -1281,10 +1301,18 @@ function validate23(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
1281
1301
|
}
|
|
1282
1302
|
if (valid6) {
|
|
1283
1303
|
if (data15.shortId !== void 0) {
|
|
1304
|
+
let data17 = data15.shortId;
|
|
1284
1305
|
const _errs40 = errors;
|
|
1285
|
-
if (
|
|
1286
|
-
|
|
1287
|
-
|
|
1306
|
+
if (errors === _errs40) {
|
|
1307
|
+
if (typeof data17 === "string") {
|
|
1308
|
+
if (!pattern5.test(data17)) {
|
|
1309
|
+
validate23.errors = [{ instancePath: instancePath + "/downstream/" + i1 + "/shortId", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionCascadeResponse/properties/downstream/items/properties/shortId/pattern", keyword: "pattern", params: { pattern: "^[0-9a-f]{8}$" }, message: 'must match pattern "^[0-9a-f]{8}$"' }];
|
|
1310
|
+
return false;
|
|
1311
|
+
}
|
|
1312
|
+
} else {
|
|
1313
|
+
validate23.errors = [{ instancePath: instancePath + "/downstream/" + i1 + "/shortId", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionCascadeResponse/properties/downstream/items/properties/shortId/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
1314
|
+
return false;
|
|
1315
|
+
}
|
|
1288
1316
|
}
|
|
1289
1317
|
var valid6 = _errs40 === errors;
|
|
1290
1318
|
} else {
|
|
@@ -2523,7 +2551,7 @@ function validate25(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
2523
2551
|
return errors === 0;
|
|
2524
2552
|
}
|
|
2525
2553
|
validate25.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
|
|
2526
|
-
var schema43 = { "anyOf": [{ "type": "object", "properties": { "decisionId": { "type": "string", "minLength": 1 }, "shortId": { "type": "string" }, "outcome": { "type": "string", "enum": ["stale", "confirmed", "corrected"] } }, "required": ["decisionId", "outcome"], "additionalProperties": {} }, { "type": "object", "properties": { "decisionId": { "type": "string", "minLength": 1 }, "shortId": { "type": "string" }, "outcome": { "type": "string", "const": "already_responded" }, "confirmed": { "type": "boolean" }, "respondedAt": { "type": "number" } }, "required": ["decisionId", "outcome", "respondedAt"], "additionalProperties": {} }, { "type": "object", "properties": { "decisionId": { "type": "string", "minLength": 1 }, "shortId": { "type": "string" }, "outcome": { "type": "string", "const": "no_pending_prompt" } }, "required": ["decisionId", "outcome"], "additionalProperties": {} }] };
|
|
2554
|
+
var schema43 = { "anyOf": [{ "type": "object", "properties": { "decisionId": { "type": "string", "minLength": 1, "pattern": "^dec_[0-9a-f]{8}$", "description": "Canonical public Decision ID; internal Convex IDs are accepted only as legacy inputs." }, "shortId": { "type": "string", "pattern": "^[0-9a-f]{8}$" }, "outcome": { "type": "string", "enum": ["stale", "confirmed", "corrected"] } }, "required": ["decisionId", "outcome"], "additionalProperties": {} }, { "type": "object", "properties": { "decisionId": { "type": "string", "minLength": 1, "pattern": "^dec_[0-9a-f]{8}$", "description": "Canonical public Decision ID; internal Convex IDs are accepted only as legacy inputs." }, "shortId": { "type": "string", "pattern": "^[0-9a-f]{8}$" }, "outcome": { "type": "string", "const": "already_responded" }, "confirmed": { "type": "boolean" }, "respondedAt": { "type": "number" } }, "required": ["decisionId", "outcome", "respondedAt"], "additionalProperties": {} }, { "type": "object", "properties": { "decisionId": { "type": "string", "minLength": 1, "pattern": "^dec_[0-9a-f]{8}$", "description": "Canonical public Decision ID; internal Convex IDs are accepted only as legacy inputs." }, "shortId": { "type": "string", "pattern": "^[0-9a-f]{8}$" }, "outcome": { "type": "string", "const": "no_pending_prompt" } }, "required": ["decisionId", "outcome"], "additionalProperties": {} }] };
|
|
2527
2555
|
function validate26(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
2528
2556
|
;
|
|
2529
2557
|
let vErrors = null;
|
|
@@ -2563,13 +2591,23 @@ function validate26(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
2563
2591
|
vErrors.push(err1);
|
|
2564
2592
|
}
|
|
2565
2593
|
errors++;
|
|
2594
|
+
} else {
|
|
2595
|
+
if (!pattern4.test(data0)) {
|
|
2596
|
+
const err2 = { instancePath: instancePath + "/decisionId", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionConfirmSuccessResponse/anyOf/0/properties/decisionId/pattern", keyword: "pattern", params: { pattern: "^dec_[0-9a-f]{8}$" }, message: 'must match pattern "^dec_[0-9a-f]{8}$"' };
|
|
2597
|
+
if (vErrors === null) {
|
|
2598
|
+
vErrors = [err2];
|
|
2599
|
+
} else {
|
|
2600
|
+
vErrors.push(err2);
|
|
2601
|
+
}
|
|
2602
|
+
errors++;
|
|
2603
|
+
}
|
|
2566
2604
|
}
|
|
2567
2605
|
} else {
|
|
2568
|
-
const
|
|
2606
|
+
const err3 = { instancePath: instancePath + "/decisionId", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionConfirmSuccessResponse/anyOf/0/properties/decisionId/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
2569
2607
|
if (vErrors === null) {
|
|
2570
|
-
vErrors = [
|
|
2608
|
+
vErrors = [err3];
|
|
2571
2609
|
} else {
|
|
2572
|
-
vErrors.push(
|
|
2610
|
+
vErrors.push(err3);
|
|
2573
2611
|
}
|
|
2574
2612
|
errors++;
|
|
2575
2613
|
}
|
|
@@ -2580,15 +2618,28 @@ function validate26(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
2580
2618
|
}
|
|
2581
2619
|
if (valid2) {
|
|
2582
2620
|
if (data.shortId !== void 0) {
|
|
2621
|
+
let data1 = data.shortId;
|
|
2583
2622
|
const _errs7 = errors;
|
|
2584
|
-
if (
|
|
2585
|
-
|
|
2586
|
-
|
|
2587
|
-
|
|
2623
|
+
if (errors === _errs7) {
|
|
2624
|
+
if (typeof data1 === "string") {
|
|
2625
|
+
if (!pattern5.test(data1)) {
|
|
2626
|
+
const err4 = { instancePath: instancePath + "/shortId", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionConfirmSuccessResponse/anyOf/0/properties/shortId/pattern", keyword: "pattern", params: { pattern: "^[0-9a-f]{8}$" }, message: 'must match pattern "^[0-9a-f]{8}$"' };
|
|
2627
|
+
if (vErrors === null) {
|
|
2628
|
+
vErrors = [err4];
|
|
2629
|
+
} else {
|
|
2630
|
+
vErrors.push(err4);
|
|
2631
|
+
}
|
|
2632
|
+
errors++;
|
|
2633
|
+
}
|
|
2588
2634
|
} else {
|
|
2589
|
-
|
|
2635
|
+
const err5 = { instancePath: instancePath + "/shortId", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionConfirmSuccessResponse/anyOf/0/properties/shortId/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
2636
|
+
if (vErrors === null) {
|
|
2637
|
+
vErrors = [err5];
|
|
2638
|
+
} else {
|
|
2639
|
+
vErrors.push(err5);
|
|
2640
|
+
}
|
|
2641
|
+
errors++;
|
|
2590
2642
|
}
|
|
2591
|
-
errors++;
|
|
2592
2643
|
}
|
|
2593
2644
|
var valid2 = _errs7 === errors;
|
|
2594
2645
|
} else {
|
|
@@ -2599,20 +2650,20 @@ function validate26(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
2599
2650
|
let data2 = data.outcome;
|
|
2600
2651
|
const _errs9 = errors;
|
|
2601
2652
|
if (typeof data2 !== "string") {
|
|
2602
|
-
const
|
|
2653
|
+
const err6 = { instancePath: instancePath + "/outcome", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionConfirmSuccessResponse/anyOf/0/properties/outcome/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
2603
2654
|
if (vErrors === null) {
|
|
2604
|
-
vErrors = [
|
|
2655
|
+
vErrors = [err6];
|
|
2605
2656
|
} else {
|
|
2606
|
-
vErrors.push(
|
|
2657
|
+
vErrors.push(err6);
|
|
2607
2658
|
}
|
|
2608
2659
|
errors++;
|
|
2609
2660
|
}
|
|
2610
2661
|
if (!(data2 === "stale" || data2 === "confirmed" || data2 === "corrected")) {
|
|
2611
|
-
const
|
|
2662
|
+
const err7 = { instancePath: instancePath + "/outcome", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionConfirmSuccessResponse/anyOf/0/properties/outcome/enum", keyword: "enum", params: { allowedValues: schema43.anyOf[0].properties.outcome.enum }, message: "must be equal to one of the allowed values" };
|
|
2612
2663
|
if (vErrors === null) {
|
|
2613
|
-
vErrors = [
|
|
2664
|
+
vErrors = [err7];
|
|
2614
2665
|
} else {
|
|
2615
|
-
vErrors.push(
|
|
2666
|
+
vErrors.push(err7);
|
|
2616
2667
|
}
|
|
2617
2668
|
errors++;
|
|
2618
2669
|
}
|
|
@@ -2624,11 +2675,11 @@ function validate26(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
2624
2675
|
}
|
|
2625
2676
|
}
|
|
2626
2677
|
} else {
|
|
2627
|
-
const
|
|
2678
|
+
const err8 = { instancePath, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionConfirmSuccessResponse/anyOf/0/type", keyword: "type", params: { type: "object" }, message: "must be object" };
|
|
2628
2679
|
if (vErrors === null) {
|
|
2629
|
-
vErrors = [
|
|
2680
|
+
vErrors = [err8];
|
|
2630
2681
|
} else {
|
|
2631
|
-
vErrors.push(
|
|
2682
|
+
vErrors.push(err8);
|
|
2632
2683
|
}
|
|
2633
2684
|
errors++;
|
|
2634
2685
|
}
|
|
@@ -2643,11 +2694,11 @@ function validate26(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
2643
2694
|
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
2644
2695
|
let missing1;
|
|
2645
2696
|
if (data.decisionId === void 0 && (missing1 = "decisionId") || data.outcome === void 0 && (missing1 = "outcome") || data.respondedAt === void 0 && (missing1 = "respondedAt")) {
|
|
2646
|
-
const
|
|
2697
|
+
const err9 = { instancePath, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionConfirmSuccessResponse/anyOf/1/required", keyword: "required", params: { missingProperty: missing1 }, message: "must have required property '" + missing1 + "'" };
|
|
2647
2698
|
if (vErrors === null) {
|
|
2648
|
-
vErrors = [
|
|
2699
|
+
vErrors = [err9];
|
|
2649
2700
|
} else {
|
|
2650
|
-
vErrors.push(
|
|
2701
|
+
vErrors.push(err9);
|
|
2651
2702
|
}
|
|
2652
2703
|
errors++;
|
|
2653
2704
|
} else {
|
|
@@ -2657,20 +2708,30 @@ function validate26(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
2657
2708
|
if (errors === _errs14) {
|
|
2658
2709
|
if (typeof data3 === "string") {
|
|
2659
2710
|
if (func1(data3) < 1) {
|
|
2660
|
-
const
|
|
2711
|
+
const err10 = { instancePath: instancePath + "/decisionId", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionConfirmSuccessResponse/anyOf/1/properties/decisionId/minLength", keyword: "minLength", params: { limit: 1 }, message: "must NOT have fewer than 1 characters" };
|
|
2661
2712
|
if (vErrors === null) {
|
|
2662
|
-
vErrors = [
|
|
2713
|
+
vErrors = [err10];
|
|
2663
2714
|
} else {
|
|
2664
|
-
vErrors.push(
|
|
2715
|
+
vErrors.push(err10);
|
|
2665
2716
|
}
|
|
2666
2717
|
errors++;
|
|
2718
|
+
} else {
|
|
2719
|
+
if (!pattern4.test(data3)) {
|
|
2720
|
+
const err11 = { instancePath: instancePath + "/decisionId", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionConfirmSuccessResponse/anyOf/1/properties/decisionId/pattern", keyword: "pattern", params: { pattern: "^dec_[0-9a-f]{8}$" }, message: 'must match pattern "^dec_[0-9a-f]{8}$"' };
|
|
2721
|
+
if (vErrors === null) {
|
|
2722
|
+
vErrors = [err11];
|
|
2723
|
+
} else {
|
|
2724
|
+
vErrors.push(err11);
|
|
2725
|
+
}
|
|
2726
|
+
errors++;
|
|
2727
|
+
}
|
|
2667
2728
|
}
|
|
2668
2729
|
} else {
|
|
2669
|
-
const
|
|
2730
|
+
const err12 = { instancePath: instancePath + "/decisionId", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionConfirmSuccessResponse/anyOf/1/properties/decisionId/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
2670
2731
|
if (vErrors === null) {
|
|
2671
|
-
vErrors = [
|
|
2732
|
+
vErrors = [err12];
|
|
2672
2733
|
} else {
|
|
2673
|
-
vErrors.push(
|
|
2734
|
+
vErrors.push(err12);
|
|
2674
2735
|
}
|
|
2675
2736
|
errors++;
|
|
2676
2737
|
}
|
|
@@ -2681,15 +2742,28 @@ function validate26(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
2681
2742
|
}
|
|
2682
2743
|
if (valid3) {
|
|
2683
2744
|
if (data.shortId !== void 0) {
|
|
2745
|
+
let data4 = data.shortId;
|
|
2684
2746
|
const _errs16 = errors;
|
|
2685
|
-
if (
|
|
2686
|
-
|
|
2687
|
-
|
|
2688
|
-
|
|
2747
|
+
if (errors === _errs16) {
|
|
2748
|
+
if (typeof data4 === "string") {
|
|
2749
|
+
if (!pattern5.test(data4)) {
|
|
2750
|
+
const err13 = { instancePath: instancePath + "/shortId", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionConfirmSuccessResponse/anyOf/1/properties/shortId/pattern", keyword: "pattern", params: { pattern: "^[0-9a-f]{8}$" }, message: 'must match pattern "^[0-9a-f]{8}$"' };
|
|
2751
|
+
if (vErrors === null) {
|
|
2752
|
+
vErrors = [err13];
|
|
2753
|
+
} else {
|
|
2754
|
+
vErrors.push(err13);
|
|
2755
|
+
}
|
|
2756
|
+
errors++;
|
|
2757
|
+
}
|
|
2689
2758
|
} else {
|
|
2690
|
-
|
|
2759
|
+
const err14 = { instancePath: instancePath + "/shortId", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionConfirmSuccessResponse/anyOf/1/properties/shortId/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
2760
|
+
if (vErrors === null) {
|
|
2761
|
+
vErrors = [err14];
|
|
2762
|
+
} else {
|
|
2763
|
+
vErrors.push(err14);
|
|
2764
|
+
}
|
|
2765
|
+
errors++;
|
|
2691
2766
|
}
|
|
2692
|
-
errors++;
|
|
2693
2767
|
}
|
|
2694
2768
|
var valid3 = _errs16 === errors;
|
|
2695
2769
|
} else {
|
|
@@ -2700,20 +2774,20 @@ function validate26(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
2700
2774
|
let data5 = data.outcome;
|
|
2701
2775
|
const _errs18 = errors;
|
|
2702
2776
|
if (typeof data5 !== "string") {
|
|
2703
|
-
const
|
|
2777
|
+
const err15 = { instancePath: instancePath + "/outcome", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionConfirmSuccessResponse/anyOf/1/properties/outcome/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
2704
2778
|
if (vErrors === null) {
|
|
2705
|
-
vErrors = [
|
|
2779
|
+
vErrors = [err15];
|
|
2706
2780
|
} else {
|
|
2707
|
-
vErrors.push(
|
|
2781
|
+
vErrors.push(err15);
|
|
2708
2782
|
}
|
|
2709
2783
|
errors++;
|
|
2710
2784
|
}
|
|
2711
2785
|
if ("already_responded" !== data5) {
|
|
2712
|
-
const
|
|
2786
|
+
const err16 = { instancePath: instancePath + "/outcome", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionConfirmSuccessResponse/anyOf/1/properties/outcome/const", keyword: "const", params: { allowedValue: "already_responded" }, message: "must be equal to constant" };
|
|
2713
2787
|
if (vErrors === null) {
|
|
2714
|
-
vErrors = [
|
|
2788
|
+
vErrors = [err16];
|
|
2715
2789
|
} else {
|
|
2716
|
-
vErrors.push(
|
|
2790
|
+
vErrors.push(err16);
|
|
2717
2791
|
}
|
|
2718
2792
|
errors++;
|
|
2719
2793
|
}
|
|
@@ -2725,11 +2799,11 @@ function validate26(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
2725
2799
|
if (data.confirmed !== void 0) {
|
|
2726
2800
|
const _errs20 = errors;
|
|
2727
2801
|
if (typeof data.confirmed !== "boolean") {
|
|
2728
|
-
const
|
|
2802
|
+
const err17 = { instancePath: instancePath + "/confirmed", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionConfirmSuccessResponse/anyOf/1/properties/confirmed/type", keyword: "type", params: { type: "boolean" }, message: "must be boolean" };
|
|
2729
2803
|
if (vErrors === null) {
|
|
2730
|
-
vErrors = [
|
|
2804
|
+
vErrors = [err17];
|
|
2731
2805
|
} else {
|
|
2732
|
-
vErrors.push(
|
|
2806
|
+
vErrors.push(err17);
|
|
2733
2807
|
}
|
|
2734
2808
|
errors++;
|
|
2735
2809
|
}
|
|
@@ -2742,11 +2816,11 @@ function validate26(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
2742
2816
|
let data7 = data.respondedAt;
|
|
2743
2817
|
const _errs22 = errors;
|
|
2744
2818
|
if (!(typeof data7 == "number" && isFinite(data7))) {
|
|
2745
|
-
const
|
|
2819
|
+
const err18 = { instancePath: instancePath + "/respondedAt", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionConfirmSuccessResponse/anyOf/1/properties/respondedAt/type", keyword: "type", params: { type: "number" }, message: "must be number" };
|
|
2746
2820
|
if (vErrors === null) {
|
|
2747
|
-
vErrors = [
|
|
2821
|
+
vErrors = [err18];
|
|
2748
2822
|
} else {
|
|
2749
|
-
vErrors.push(
|
|
2823
|
+
vErrors.push(err18);
|
|
2750
2824
|
}
|
|
2751
2825
|
errors++;
|
|
2752
2826
|
}
|
|
@@ -2760,11 +2834,11 @@ function validate26(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
2760
2834
|
}
|
|
2761
2835
|
}
|
|
2762
2836
|
} else {
|
|
2763
|
-
const
|
|
2837
|
+
const err19 = { instancePath, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionConfirmSuccessResponse/anyOf/1/type", keyword: "type", params: { type: "object" }, message: "must be object" };
|
|
2764
2838
|
if (vErrors === null) {
|
|
2765
|
-
vErrors = [
|
|
2839
|
+
vErrors = [err19];
|
|
2766
2840
|
} else {
|
|
2767
|
-
vErrors.push(
|
|
2841
|
+
vErrors.push(err19);
|
|
2768
2842
|
}
|
|
2769
2843
|
errors++;
|
|
2770
2844
|
}
|
|
@@ -2781,11 +2855,11 @@ function validate26(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
2781
2855
|
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
2782
2856
|
let missing2;
|
|
2783
2857
|
if (data.decisionId === void 0 && (missing2 = "decisionId") || data.outcome === void 0 && (missing2 = "outcome")) {
|
|
2784
|
-
const
|
|
2858
|
+
const err20 = { instancePath, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionConfirmSuccessResponse/anyOf/2/required", keyword: "required", params: { missingProperty: missing2 }, message: "must have required property '" + missing2 + "'" };
|
|
2785
2859
|
if (vErrors === null) {
|
|
2786
|
-
vErrors = [
|
|
2860
|
+
vErrors = [err20];
|
|
2787
2861
|
} else {
|
|
2788
|
-
vErrors.push(
|
|
2862
|
+
vErrors.push(err20);
|
|
2789
2863
|
}
|
|
2790
2864
|
errors++;
|
|
2791
2865
|
} else {
|
|
@@ -2795,20 +2869,30 @@ function validate26(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
2795
2869
|
if (errors === _errs27) {
|
|
2796
2870
|
if (typeof data8 === "string") {
|
|
2797
2871
|
if (func1(data8) < 1) {
|
|
2798
|
-
const
|
|
2872
|
+
const err21 = { instancePath: instancePath + "/decisionId", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionConfirmSuccessResponse/anyOf/2/properties/decisionId/minLength", keyword: "minLength", params: { limit: 1 }, message: "must NOT have fewer than 1 characters" };
|
|
2799
2873
|
if (vErrors === null) {
|
|
2800
|
-
vErrors = [
|
|
2874
|
+
vErrors = [err21];
|
|
2801
2875
|
} else {
|
|
2802
|
-
vErrors.push(
|
|
2876
|
+
vErrors.push(err21);
|
|
2803
2877
|
}
|
|
2804
2878
|
errors++;
|
|
2879
|
+
} else {
|
|
2880
|
+
if (!pattern4.test(data8)) {
|
|
2881
|
+
const err22 = { instancePath: instancePath + "/decisionId", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionConfirmSuccessResponse/anyOf/2/properties/decisionId/pattern", keyword: "pattern", params: { pattern: "^dec_[0-9a-f]{8}$" }, message: 'must match pattern "^dec_[0-9a-f]{8}$"' };
|
|
2882
|
+
if (vErrors === null) {
|
|
2883
|
+
vErrors = [err22];
|
|
2884
|
+
} else {
|
|
2885
|
+
vErrors.push(err22);
|
|
2886
|
+
}
|
|
2887
|
+
errors++;
|
|
2888
|
+
}
|
|
2805
2889
|
}
|
|
2806
2890
|
} else {
|
|
2807
|
-
const
|
|
2891
|
+
const err23 = { instancePath: instancePath + "/decisionId", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionConfirmSuccessResponse/anyOf/2/properties/decisionId/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
2808
2892
|
if (vErrors === null) {
|
|
2809
|
-
vErrors = [
|
|
2893
|
+
vErrors = [err23];
|
|
2810
2894
|
} else {
|
|
2811
|
-
vErrors.push(
|
|
2895
|
+
vErrors.push(err23);
|
|
2812
2896
|
}
|
|
2813
2897
|
errors++;
|
|
2814
2898
|
}
|
|
@@ -2819,15 +2903,28 @@ function validate26(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
2819
2903
|
}
|
|
2820
2904
|
if (valid4) {
|
|
2821
2905
|
if (data.shortId !== void 0) {
|
|
2906
|
+
let data9 = data.shortId;
|
|
2822
2907
|
const _errs29 = errors;
|
|
2823
|
-
if (
|
|
2824
|
-
|
|
2825
|
-
|
|
2826
|
-
|
|
2908
|
+
if (errors === _errs29) {
|
|
2909
|
+
if (typeof data9 === "string") {
|
|
2910
|
+
if (!pattern5.test(data9)) {
|
|
2911
|
+
const err24 = { instancePath: instancePath + "/shortId", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionConfirmSuccessResponse/anyOf/2/properties/shortId/pattern", keyword: "pattern", params: { pattern: "^[0-9a-f]{8}$" }, message: 'must match pattern "^[0-9a-f]{8}$"' };
|
|
2912
|
+
if (vErrors === null) {
|
|
2913
|
+
vErrors = [err24];
|
|
2914
|
+
} else {
|
|
2915
|
+
vErrors.push(err24);
|
|
2916
|
+
}
|
|
2917
|
+
errors++;
|
|
2918
|
+
}
|
|
2827
2919
|
} else {
|
|
2828
|
-
|
|
2920
|
+
const err25 = { instancePath: instancePath + "/shortId", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionConfirmSuccessResponse/anyOf/2/properties/shortId/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
2921
|
+
if (vErrors === null) {
|
|
2922
|
+
vErrors = [err25];
|
|
2923
|
+
} else {
|
|
2924
|
+
vErrors.push(err25);
|
|
2925
|
+
}
|
|
2926
|
+
errors++;
|
|
2829
2927
|
}
|
|
2830
|
-
errors++;
|
|
2831
2928
|
}
|
|
2832
2929
|
var valid4 = _errs29 === errors;
|
|
2833
2930
|
} else {
|
|
@@ -2838,20 +2935,20 @@ function validate26(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
2838
2935
|
let data10 = data.outcome;
|
|
2839
2936
|
const _errs31 = errors;
|
|
2840
2937
|
if (typeof data10 !== "string") {
|
|
2841
|
-
const
|
|
2938
|
+
const err26 = { instancePath: instancePath + "/outcome", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionConfirmSuccessResponse/anyOf/2/properties/outcome/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
2842
2939
|
if (vErrors === null) {
|
|
2843
|
-
vErrors = [
|
|
2940
|
+
vErrors = [err26];
|
|
2844
2941
|
} else {
|
|
2845
|
-
vErrors.push(
|
|
2942
|
+
vErrors.push(err26);
|
|
2846
2943
|
}
|
|
2847
2944
|
errors++;
|
|
2848
2945
|
}
|
|
2849
2946
|
if ("no_pending_prompt" !== data10) {
|
|
2850
|
-
const
|
|
2947
|
+
const err27 = { instancePath: instancePath + "/outcome", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionConfirmSuccessResponse/anyOf/2/properties/outcome/const", keyword: "const", params: { allowedValue: "no_pending_prompt" }, message: "must be equal to constant" };
|
|
2851
2948
|
if (vErrors === null) {
|
|
2852
|
-
vErrors = [
|
|
2949
|
+
vErrors = [err27];
|
|
2853
2950
|
} else {
|
|
2854
|
-
vErrors.push(
|
|
2951
|
+
vErrors.push(err27);
|
|
2855
2952
|
}
|
|
2856
2953
|
errors++;
|
|
2857
2954
|
}
|
|
@@ -2863,11 +2960,11 @@ function validate26(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
2863
2960
|
}
|
|
2864
2961
|
}
|
|
2865
2962
|
} else {
|
|
2866
|
-
const
|
|
2963
|
+
const err28 = { instancePath, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionConfirmSuccessResponse/anyOf/2/type", keyword: "type", params: { type: "object" }, message: "must be object" };
|
|
2867
2964
|
if (vErrors === null) {
|
|
2868
|
-
vErrors = [
|
|
2965
|
+
vErrors = [err28];
|
|
2869
2966
|
} else {
|
|
2870
|
-
vErrors.push(
|
|
2967
|
+
vErrors.push(err28);
|
|
2871
2968
|
}
|
|
2872
2969
|
errors++;
|
|
2873
2970
|
}
|
|
@@ -2880,11 +2977,11 @@ function validate26(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
2880
2977
|
}
|
|
2881
2978
|
}
|
|
2882
2979
|
if (!valid1) {
|
|
2883
|
-
const
|
|
2980
|
+
const err29 = { instancePath, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionConfirmSuccessResponse/anyOf", keyword: "anyOf", params: {}, message: "must match a schema in anyOf" };
|
|
2884
2981
|
if (vErrors === null) {
|
|
2885
|
-
vErrors = [
|
|
2982
|
+
vErrors = [err29];
|
|
2886
2983
|
} else {
|
|
2887
|
-
vErrors.push(
|
|
2984
|
+
vErrors.push(err29);
|
|
2888
2985
|
}
|
|
2889
2986
|
errors++;
|
|
2890
2987
|
validate26.errors = vErrors;
|
|
@@ -3853,7 +3950,7 @@ function validate27(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
3853
3950
|
return errors === 0;
|
|
3854
3951
|
}
|
|
3855
3952
|
validate27.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
|
|
3856
|
-
var schema47 = { "type": "object", "properties": { "decisionId": { "type": "string", "minLength": 1 }, "shortId": { "type": "string" }, "createdAt": { "type": "number" }, "scope": { "type": "object", "properties": { "location": { "type": "object", "properties": { "mode": { "type": "string", "enum": ["inherited", "explicit"] }, "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 } }, "required": ["kind", "userId"], "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", "cursor", "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": {} }, "scopeWarnings": { "type": "array", "items": { "type": "string" } } }, "required": ["decisionId", "shortId", "createdAt"], "additionalProperties": {} };
|
|
3953
|
+
var schema47 = { "type": "object", "properties": { "decisionId": { "type": "string", "minLength": 1, "pattern": "^dec_[0-9a-f]{8}$", "description": "Canonical public Decision ID; internal Convex IDs are accepted only as legacy inputs." }, "shortId": { "type": "string", "pattern": "^[0-9a-f]{8}$" }, "createdAt": { "type": "number" }, "scope": { "type": "object", "properties": { "location": { "type": "object", "properties": { "mode": { "type": "string", "enum": ["inherited", "explicit"] }, "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 } }, "required": ["kind", "userId"], "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", "cursor", "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": {} }, "scopeWarnings": { "type": "array", "items": { "type": "string" } } }, "required": ["decisionId", "shortId", "createdAt"], "additionalProperties": {} };
|
|
3857
3954
|
function validate28(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
3858
3955
|
;
|
|
3859
3956
|
let vErrors = null;
|
|
@@ -3881,6 +3978,11 @@ function validate28(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
3881
3978
|
if (func1(data0) < 1) {
|
|
3882
3979
|
validate28.errors = [{ instancePath: instancePath + "/decisionId", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionCreateResponse/properties/decisionId/minLength", keyword: "minLength", params: { limit: 1 }, message: "must NOT have fewer than 1 characters" }];
|
|
3883
3980
|
return false;
|
|
3981
|
+
} else {
|
|
3982
|
+
if (!pattern4.test(data0)) {
|
|
3983
|
+
validate28.errors = [{ instancePath: instancePath + "/decisionId", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionCreateResponse/properties/decisionId/pattern", keyword: "pattern", params: { pattern: "^dec_[0-9a-f]{8}$" }, message: 'must match pattern "^dec_[0-9a-f]{8}$"' }];
|
|
3984
|
+
return false;
|
|
3985
|
+
}
|
|
3884
3986
|
}
|
|
3885
3987
|
} else {
|
|
3886
3988
|
validate28.errors = [{ instancePath: instancePath + "/decisionId", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionCreateResponse/properties/decisionId/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
@@ -3893,10 +3995,18 @@ function validate28(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
3893
3995
|
}
|
|
3894
3996
|
if (valid1) {
|
|
3895
3997
|
if (data.shortId !== void 0) {
|
|
3998
|
+
let data1 = data.shortId;
|
|
3896
3999
|
const _errs5 = errors;
|
|
3897
|
-
if (
|
|
3898
|
-
|
|
3899
|
-
|
|
4000
|
+
if (errors === _errs5) {
|
|
4001
|
+
if (typeof data1 === "string") {
|
|
4002
|
+
if (!pattern5.test(data1)) {
|
|
4003
|
+
validate28.errors = [{ instancePath: instancePath + "/shortId", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionCreateResponse/properties/shortId/pattern", keyword: "pattern", params: { pattern: "^[0-9a-f]{8}$" }, message: 'must match pattern "^[0-9a-f]{8}$"' }];
|
|
4004
|
+
return false;
|
|
4005
|
+
}
|
|
4006
|
+
} else {
|
|
4007
|
+
validate28.errors = [{ instancePath: instancePath + "/shortId", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionCreateResponse/properties/shortId/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
4008
|
+
return false;
|
|
4009
|
+
}
|
|
3900
4010
|
}
|
|
3901
4011
|
var valid1 = _errs5 === errors;
|
|
3902
4012
|
} else {
|
|
@@ -4638,7 +4748,7 @@ function validate28(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
4638
4748
|
return errors === 0;
|
|
4639
4749
|
}
|
|
4640
4750
|
validate28.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
|
|
4641
|
-
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": { "mode": { "type": "string", "enum": ["inherited", "explicit"] }, "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", "cursor", "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": {} };
|
|
4751
|
+
var schema49 = { "type": "object", "properties": { "decision": { "type": "object", "properties": { "id": { "type": "string", "minLength": 1, "pattern": "^dec_[0-9a-f]{8}$", "description": "Canonical public Decision ID; internal Convex IDs are accepted only as legacy inputs." }, "shortId": { "type": "string", "pattern": "^[0-9a-f]{8}$" }, "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, "pattern": "^dec_[0-9a-f]{8}$" }, { "type": "null" }], "description": "Canonical public Decision ID; internal Convex IDs are accepted only as legacy inputs." }, "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, "pattern": "^dec_[0-9a-f]{8}$", "description": "Canonical public Decision ID; internal Convex IDs are accepted only as legacy inputs." }, "shortId": { "type": "string", "pattern": "^[0-9a-f]{8}$" }, "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, "pattern": "^dec_[0-9a-f]{8}$", "description": "Canonical public Decision ID; internal Convex IDs are accepted only as legacy inputs." }, "shortId": { "type": "string", "pattern": "^[0-9a-f]{8}$" }, "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": { "mode": { "type": "string", "enum": ["inherited", "explicit"] }, "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", "cursor", "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": {} };
|
|
4642
4752
|
function validate29(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
4643
4753
|
;
|
|
4644
4754
|
let vErrors = null;
|
|
@@ -4676,6 +4786,11 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
4676
4786
|
if (func1(data1) < 1) {
|
|
4677
4787
|
validate29.errors = [{ instancePath: instancePath + "/decision/id", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionDetailResponse/properties/decision/properties/id/minLength", keyword: "minLength", params: { limit: 1 }, message: "must NOT have fewer than 1 characters" }];
|
|
4678
4788
|
return false;
|
|
4789
|
+
} else {
|
|
4790
|
+
if (!pattern4.test(data1)) {
|
|
4791
|
+
validate29.errors = [{ instancePath: instancePath + "/decision/id", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionDetailResponse/properties/decision/properties/id/pattern", keyword: "pattern", params: { pattern: "^dec_[0-9a-f]{8}$" }, message: 'must match pattern "^dec_[0-9a-f]{8}$"' }];
|
|
4792
|
+
return false;
|
|
4793
|
+
}
|
|
4679
4794
|
}
|
|
4680
4795
|
} else {
|
|
4681
4796
|
validate29.errors = [{ instancePath: instancePath + "/decision/id", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionDetailResponse/properties/decision/properties/id/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
@@ -4688,10 +4803,18 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
4688
4803
|
}
|
|
4689
4804
|
if (valid2) {
|
|
4690
4805
|
if (data0.shortId !== void 0) {
|
|
4806
|
+
let data2 = data0.shortId;
|
|
4691
4807
|
const _errs8 = errors;
|
|
4692
|
-
if (
|
|
4693
|
-
|
|
4694
|
-
|
|
4808
|
+
if (errors === _errs8) {
|
|
4809
|
+
if (typeof data2 === "string") {
|
|
4810
|
+
if (!pattern5.test(data2)) {
|
|
4811
|
+
validate29.errors = [{ instancePath: instancePath + "/decision/shortId", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionDetailResponse/properties/decision/properties/shortId/pattern", keyword: "pattern", params: { pattern: "^[0-9a-f]{8}$" }, message: 'must match pattern "^[0-9a-f]{8}$"' }];
|
|
4812
|
+
return false;
|
|
4813
|
+
}
|
|
4814
|
+
} else {
|
|
4815
|
+
validate29.errors = [{ instancePath: instancePath + "/decision/shortId", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionDetailResponse/properties/decision/properties/shortId/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
4816
|
+
return false;
|
|
4817
|
+
}
|
|
4695
4818
|
}
|
|
4696
4819
|
var valid2 = _errs8 === errors;
|
|
4697
4820
|
} else {
|
|
@@ -4862,13 +4985,23 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
4862
4985
|
vErrors.push(err0);
|
|
4863
4986
|
}
|
|
4864
4987
|
errors++;
|
|
4988
|
+
} else {
|
|
4989
|
+
if (!pattern4.test(data14)) {
|
|
4990
|
+
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/pattern", keyword: "pattern", params: { pattern: "^dec_[0-9a-f]{8}$" }, message: 'must match pattern "^dec_[0-9a-f]{8}$"' };
|
|
4991
|
+
if (vErrors === null) {
|
|
4992
|
+
vErrors = [err1];
|
|
4993
|
+
} else {
|
|
4994
|
+
vErrors.push(err1);
|
|
4995
|
+
}
|
|
4996
|
+
errors++;
|
|
4997
|
+
}
|
|
4865
4998
|
}
|
|
4866
4999
|
} else {
|
|
4867
|
-
const
|
|
5000
|
+
const err2 = { 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" };
|
|
4868
5001
|
if (vErrors === null) {
|
|
4869
|
-
vErrors = [
|
|
5002
|
+
vErrors = [err2];
|
|
4870
5003
|
} else {
|
|
4871
|
-
vErrors.push(
|
|
5004
|
+
vErrors.push(err2);
|
|
4872
5005
|
}
|
|
4873
5006
|
errors++;
|
|
4874
5007
|
}
|
|
@@ -4877,22 +5010,22 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
4877
5010
|
valid5 = valid5 || _valid0;
|
|
4878
5011
|
const _errs36 = errors;
|
|
4879
5012
|
if (data14 !== null) {
|
|
4880
|
-
const
|
|
5013
|
+
const err3 = { 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" };
|
|
4881
5014
|
if (vErrors === null) {
|
|
4882
|
-
vErrors = [
|
|
5015
|
+
vErrors = [err3];
|
|
4883
5016
|
} else {
|
|
4884
|
-
vErrors.push(
|
|
5017
|
+
vErrors.push(err3);
|
|
4885
5018
|
}
|
|
4886
5019
|
errors++;
|
|
4887
5020
|
}
|
|
4888
5021
|
var _valid0 = _errs36 === errors;
|
|
4889
5022
|
valid5 = valid5 || _valid0;
|
|
4890
5023
|
if (!valid5) {
|
|
4891
|
-
const
|
|
5024
|
+
const err4 = { 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" };
|
|
4892
5025
|
if (vErrors === null) {
|
|
4893
|
-
vErrors = [
|
|
5026
|
+
vErrors = [err4];
|
|
4894
5027
|
} else {
|
|
4895
|
-
vErrors.push(
|
|
5028
|
+
vErrors.push(err4);
|
|
4896
5029
|
}
|
|
4897
5030
|
errors++;
|
|
4898
5031
|
validate29.errors = vErrors;
|
|
@@ -5198,6 +5331,11 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
5198
5331
|
if (func1(data34) < 1) {
|
|
5199
5332
|
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" }];
|
|
5200
5333
|
return false;
|
|
5334
|
+
} else {
|
|
5335
|
+
if (!pattern4.test(data34)) {
|
|
5336
|
+
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/pattern", keyword: "pattern", params: { pattern: "^dec_[0-9a-f]{8}$" }, message: 'must match pattern "^dec_[0-9a-f]{8}$"' }];
|
|
5337
|
+
return false;
|
|
5338
|
+
}
|
|
5201
5339
|
}
|
|
5202
5340
|
} else {
|
|
5203
5341
|
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/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
@@ -5210,10 +5348,18 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
5210
5348
|
}
|
|
5211
5349
|
if (valid10) {
|
|
5212
5350
|
if (data33.shortId !== void 0) {
|
|
5351
|
+
let data35 = data33.shortId;
|
|
5213
5352
|
const _errs80 = errors;
|
|
5214
|
-
if (
|
|
5215
|
-
|
|
5216
|
-
|
|
5353
|
+
if (errors === _errs80) {
|
|
5354
|
+
if (typeof data35 === "string") {
|
|
5355
|
+
if (!pattern5.test(data35)) {
|
|
5356
|
+
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/pattern", keyword: "pattern", params: { pattern: "^[0-9a-f]{8}$" }, message: 'must match pattern "^[0-9a-f]{8}$"' }];
|
|
5357
|
+
return false;
|
|
5358
|
+
}
|
|
5359
|
+
} else {
|
|
5360
|
+
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" }];
|
|
5361
|
+
return false;
|
|
5362
|
+
}
|
|
5217
5363
|
}
|
|
5218
5364
|
var valid10 = _errs80 === errors;
|
|
5219
5365
|
} else {
|
|
@@ -5332,6 +5478,11 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
5332
5478
|
if (func1(data43) < 1) {
|
|
5333
5479
|
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" }];
|
|
5334
5480
|
return false;
|
|
5481
|
+
} else {
|
|
5482
|
+
if (!pattern4.test(data43)) {
|
|
5483
|
+
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/pattern", keyword: "pattern", params: { pattern: "^dec_[0-9a-f]{8}$" }, message: 'must match pattern "^dec_[0-9a-f]{8}$"' }];
|
|
5484
|
+
return false;
|
|
5485
|
+
}
|
|
5335
5486
|
}
|
|
5336
5487
|
} else {
|
|
5337
5488
|
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/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
@@ -5344,10 +5495,18 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
5344
5495
|
}
|
|
5345
5496
|
if (valid12) {
|
|
5346
5497
|
if (data42.shortId !== void 0) {
|
|
5498
|
+
let data44 = data42.shortId;
|
|
5347
5499
|
const _errs99 = errors;
|
|
5348
|
-
if (
|
|
5349
|
-
|
|
5350
|
-
|
|
5500
|
+
if (errors === _errs99) {
|
|
5501
|
+
if (typeof data44 === "string") {
|
|
5502
|
+
if (!pattern5.test(data44)) {
|
|
5503
|
+
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/pattern", keyword: "pattern", params: { pattern: "^[0-9a-f]{8}$" }, message: 'must match pattern "^[0-9a-f]{8}$"' }];
|
|
5504
|
+
return false;
|
|
5505
|
+
}
|
|
5506
|
+
} else {
|
|
5507
|
+
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" }];
|
|
5508
|
+
return false;
|
|
5509
|
+
}
|
|
5351
5510
|
}
|
|
5352
5511
|
var valid12 = _errs99 === errors;
|
|
5353
5512
|
} else {
|
|
@@ -5669,22 +5828,22 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
5669
5828
|
if (data64 && typeof data64 == "object" && !Array.isArray(data64)) {
|
|
5670
5829
|
let missing7;
|
|
5671
5830
|
if (data64.kind === void 0 && (missing7 = "kind") || data64.userId === void 0 && (missing7 = "userId") || data64.displayName === void 0 && (missing7 = "displayName")) {
|
|
5672
|
-
const
|
|
5831
|
+
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/required", keyword: "required", params: { missingProperty: missing7 }, message: "must have required property '" + missing7 + "'" };
|
|
5673
5832
|
if (vErrors === null) {
|
|
5674
|
-
vErrors = [
|
|
5833
|
+
vErrors = [err5];
|
|
5675
5834
|
} else {
|
|
5676
|
-
vErrors.push(
|
|
5835
|
+
vErrors.push(err5);
|
|
5677
5836
|
}
|
|
5678
5837
|
errors++;
|
|
5679
5838
|
} else {
|
|
5680
5839
|
const _errs146 = errors;
|
|
5681
5840
|
for (const key0 in data64) {
|
|
5682
5841
|
if (!(key0 === "kind" || key0 === "userId" || key0 === "displayName")) {
|
|
5683
|
-
const
|
|
5842
|
+
const err6 = { 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" };
|
|
5684
5843
|
if (vErrors === null) {
|
|
5685
|
-
vErrors = [
|
|
5844
|
+
vErrors = [err6];
|
|
5686
5845
|
} else {
|
|
5687
|
-
vErrors.push(
|
|
5846
|
+
vErrors.push(err6);
|
|
5688
5847
|
}
|
|
5689
5848
|
errors++;
|
|
5690
5849
|
break;
|
|
@@ -5695,20 +5854,20 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
5695
5854
|
let data65 = data64.kind;
|
|
5696
5855
|
const _errs147 = errors;
|
|
5697
5856
|
if (typeof data65 !== "string") {
|
|
5698
|
-
const
|
|
5857
|
+
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/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
5699
5858
|
if (vErrors === null) {
|
|
5700
|
-
vErrors = [
|
|
5859
|
+
vErrors = [err7];
|
|
5701
5860
|
} else {
|
|
5702
|
-
vErrors.push(
|
|
5861
|
+
vErrors.push(err7);
|
|
5703
5862
|
}
|
|
5704
5863
|
errors++;
|
|
5705
5864
|
}
|
|
5706
5865
|
if ("user" !== data65) {
|
|
5707
|
-
const
|
|
5866
|
+
const err8 = { 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" };
|
|
5708
5867
|
if (vErrors === null) {
|
|
5709
|
-
vErrors = [
|
|
5868
|
+
vErrors = [err8];
|
|
5710
5869
|
} else {
|
|
5711
|
-
vErrors.push(
|
|
5870
|
+
vErrors.push(err8);
|
|
5712
5871
|
}
|
|
5713
5872
|
errors++;
|
|
5714
5873
|
}
|
|
@@ -5723,20 +5882,20 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
5723
5882
|
if (errors === _errs149) {
|
|
5724
5883
|
if (typeof data66 === "string") {
|
|
5725
5884
|
if (func1(data66) < 1) {
|
|
5726
|
-
const
|
|
5885
|
+
const err9 = { 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" };
|
|
5727
5886
|
if (vErrors === null) {
|
|
5728
|
-
vErrors = [
|
|
5887
|
+
vErrors = [err9];
|
|
5729
5888
|
} else {
|
|
5730
|
-
vErrors.push(
|
|
5889
|
+
vErrors.push(err9);
|
|
5731
5890
|
}
|
|
5732
5891
|
errors++;
|
|
5733
5892
|
}
|
|
5734
5893
|
} else {
|
|
5735
|
-
const
|
|
5894
|
+
const err10 = { 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/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
5736
5895
|
if (vErrors === null) {
|
|
5737
|
-
vErrors = [
|
|
5896
|
+
vErrors = [err10];
|
|
5738
5897
|
} else {
|
|
5739
|
-
vErrors.push(
|
|
5898
|
+
vErrors.push(err10);
|
|
5740
5899
|
}
|
|
5741
5900
|
errors++;
|
|
5742
5901
|
}
|
|
@@ -5749,11 +5908,11 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
5749
5908
|
if (data64.displayName !== void 0) {
|
|
5750
5909
|
const _errs151 = errors;
|
|
5751
5910
|
if (typeof data64.displayName !== "string") {
|
|
5752
|
-
const
|
|
5911
|
+
const err11 = { 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" };
|
|
5753
5912
|
if (vErrors === null) {
|
|
5754
|
-
vErrors = [
|
|
5913
|
+
vErrors = [err11];
|
|
5755
5914
|
} else {
|
|
5756
|
-
vErrors.push(
|
|
5915
|
+
vErrors.push(err11);
|
|
5757
5916
|
}
|
|
5758
5917
|
errors++;
|
|
5759
5918
|
}
|
|
@@ -5766,11 +5925,11 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
5766
5925
|
}
|
|
5767
5926
|
}
|
|
5768
5927
|
} else {
|
|
5769
|
-
const
|
|
5928
|
+
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/0/type", keyword: "type", params: { type: "object" }, message: "must be object" };
|
|
5770
5929
|
if (vErrors === null) {
|
|
5771
|
-
vErrors = [
|
|
5930
|
+
vErrors = [err12];
|
|
5772
5931
|
} else {
|
|
5773
|
-
vErrors.push(
|
|
5932
|
+
vErrors.push(err12);
|
|
5774
5933
|
}
|
|
5775
5934
|
errors++;
|
|
5776
5935
|
}
|
|
@@ -5786,22 +5945,22 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
5786
5945
|
if (data64 && typeof data64 == "object" && !Array.isArray(data64)) {
|
|
5787
5946
|
let missing8;
|
|
5788
5947
|
if (data64.kind === void 0 && (missing8 = "kind") || data64.role === void 0 && (missing8 = "role")) {
|
|
5789
|
-
const
|
|
5948
|
+
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/required", keyword: "required", params: { missingProperty: missing8 }, message: "must have required property '" + missing8 + "'" };
|
|
5790
5949
|
if (vErrors === null) {
|
|
5791
|
-
vErrors = [
|
|
5950
|
+
vErrors = [err13];
|
|
5792
5951
|
} else {
|
|
5793
|
-
vErrors.push(
|
|
5952
|
+
vErrors.push(err13);
|
|
5794
5953
|
}
|
|
5795
5954
|
errors++;
|
|
5796
5955
|
} else {
|
|
5797
5956
|
const _errs155 = errors;
|
|
5798
5957
|
for (const key1 in data64) {
|
|
5799
5958
|
if (!(key1 === "kind" || key1 === "role")) {
|
|
5800
|
-
const
|
|
5959
|
+
const err14 = { 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" };
|
|
5801
5960
|
if (vErrors === null) {
|
|
5802
|
-
vErrors = [
|
|
5961
|
+
vErrors = [err14];
|
|
5803
5962
|
} else {
|
|
5804
|
-
vErrors.push(
|
|
5963
|
+
vErrors.push(err14);
|
|
5805
5964
|
}
|
|
5806
5965
|
errors++;
|
|
5807
5966
|
break;
|
|
@@ -5812,20 +5971,20 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
5812
5971
|
let data68 = data64.kind;
|
|
5813
5972
|
const _errs156 = errors;
|
|
5814
5973
|
if (typeof data68 !== "string") {
|
|
5815
|
-
const
|
|
5974
|
+
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/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
5816
5975
|
if (vErrors === null) {
|
|
5817
|
-
vErrors = [
|
|
5976
|
+
vErrors = [err15];
|
|
5818
5977
|
} else {
|
|
5819
|
-
vErrors.push(
|
|
5978
|
+
vErrors.push(err15);
|
|
5820
5979
|
}
|
|
5821
5980
|
errors++;
|
|
5822
5981
|
}
|
|
5823
5982
|
if ("role" !== data68) {
|
|
5824
|
-
const
|
|
5983
|
+
const err16 = { 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" };
|
|
5825
5984
|
if (vErrors === null) {
|
|
5826
|
-
vErrors = [
|
|
5985
|
+
vErrors = [err16];
|
|
5827
5986
|
} else {
|
|
5828
|
-
vErrors.push(
|
|
5987
|
+
vErrors.push(err16);
|
|
5829
5988
|
}
|
|
5830
5989
|
errors++;
|
|
5831
5990
|
}
|
|
@@ -5838,20 +5997,20 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
5838
5997
|
let data69 = data64.role;
|
|
5839
5998
|
const _errs158 = errors;
|
|
5840
5999
|
if (typeof data69 !== "string") {
|
|
5841
|
-
const
|
|
6000
|
+
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/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
5842
6001
|
if (vErrors === null) {
|
|
5843
|
-
vErrors = [
|
|
6002
|
+
vErrors = [err17];
|
|
5844
6003
|
} else {
|
|
5845
|
-
vErrors.push(
|
|
6004
|
+
vErrors.push(err17);
|
|
5846
6005
|
}
|
|
5847
6006
|
errors++;
|
|
5848
6007
|
}
|
|
5849
6008
|
if (!(data69 === "owner" || data69 === "admin" || data69 === "member")) {
|
|
5850
|
-
const
|
|
6009
|
+
const err18 = { 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" };
|
|
5851
6010
|
if (vErrors === null) {
|
|
5852
|
-
vErrors = [
|
|
6011
|
+
vErrors = [err18];
|
|
5853
6012
|
} else {
|
|
5854
|
-
vErrors.push(
|
|
6013
|
+
vErrors.push(err18);
|
|
5855
6014
|
}
|
|
5856
6015
|
errors++;
|
|
5857
6016
|
}
|
|
@@ -5863,11 +6022,11 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
5863
6022
|
}
|
|
5864
6023
|
}
|
|
5865
6024
|
} else {
|
|
5866
|
-
const
|
|
6025
|
+
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/1/type", keyword: "type", params: { type: "object" }, message: "must be object" };
|
|
5867
6026
|
if (vErrors === null) {
|
|
5868
|
-
vErrors = [
|
|
6027
|
+
vErrors = [err19];
|
|
5869
6028
|
} else {
|
|
5870
|
-
vErrors.push(
|
|
6029
|
+
vErrors.push(err19);
|
|
5871
6030
|
}
|
|
5872
6031
|
errors++;
|
|
5873
6032
|
}
|
|
@@ -5889,22 +6048,22 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
5889
6048
|
if (data64 && typeof data64 == "object" && !Array.isArray(data64)) {
|
|
5890
6049
|
let missing9;
|
|
5891
6050
|
if (data64.kind === void 0 && (missing9 = "kind") || data64.agent === void 0 && (missing9 = "agent")) {
|
|
5892
|
-
const
|
|
6051
|
+
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/required", keyword: "required", params: { missingProperty: missing9 }, message: "must have required property '" + missing9 + "'" };
|
|
5893
6052
|
if (vErrors === null) {
|
|
5894
|
-
vErrors = [
|
|
6053
|
+
vErrors = [err20];
|
|
5895
6054
|
} else {
|
|
5896
|
-
vErrors.push(
|
|
6055
|
+
vErrors.push(err20);
|
|
5897
6056
|
}
|
|
5898
6057
|
errors++;
|
|
5899
6058
|
} else {
|
|
5900
6059
|
const _errs162 = errors;
|
|
5901
6060
|
for (const key2 in data64) {
|
|
5902
6061
|
if (!(key2 === "kind" || key2 === "agent")) {
|
|
5903
|
-
const
|
|
6062
|
+
const err21 = { 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" };
|
|
5904
6063
|
if (vErrors === null) {
|
|
5905
|
-
vErrors = [
|
|
6064
|
+
vErrors = [err21];
|
|
5906
6065
|
} else {
|
|
5907
|
-
vErrors.push(
|
|
6066
|
+
vErrors.push(err21);
|
|
5908
6067
|
}
|
|
5909
6068
|
errors++;
|
|
5910
6069
|
break;
|
|
@@ -5915,20 +6074,20 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
5915
6074
|
let data70 = data64.kind;
|
|
5916
6075
|
const _errs163 = errors;
|
|
5917
6076
|
if (typeof data70 !== "string") {
|
|
5918
|
-
const
|
|
6077
|
+
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/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
5919
6078
|
if (vErrors === null) {
|
|
5920
|
-
vErrors = [
|
|
6079
|
+
vErrors = [err22];
|
|
5921
6080
|
} else {
|
|
5922
|
-
vErrors.push(
|
|
6081
|
+
vErrors.push(err22);
|
|
5923
6082
|
}
|
|
5924
6083
|
errors++;
|
|
5925
6084
|
}
|
|
5926
6085
|
if ("agent" !== data70) {
|
|
5927
|
-
const
|
|
6086
|
+
const err23 = { 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" };
|
|
5928
6087
|
if (vErrors === null) {
|
|
5929
|
-
vErrors = [
|
|
6088
|
+
vErrors = [err23];
|
|
5930
6089
|
} else {
|
|
5931
|
-
vErrors.push(
|
|
6090
|
+
vErrors.push(err23);
|
|
5932
6091
|
}
|
|
5933
6092
|
errors++;
|
|
5934
6093
|
}
|
|
@@ -5941,20 +6100,20 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
5941
6100
|
let data71 = data64.agent;
|
|
5942
6101
|
const _errs165 = errors;
|
|
5943
6102
|
if (typeof data71 !== "string") {
|
|
5944
|
-
const
|
|
6103
|
+
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/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
5945
6104
|
if (vErrors === null) {
|
|
5946
|
-
vErrors = [
|
|
6105
|
+
vErrors = [err24];
|
|
5947
6106
|
} else {
|
|
5948
|
-
vErrors.push(
|
|
6107
|
+
vErrors.push(err24);
|
|
5949
6108
|
}
|
|
5950
6109
|
errors++;
|
|
5951
6110
|
}
|
|
5952
6111
|
if (!(data71 === "claude_code" || data71 === "codex" || data71 === "cursor" || data71 === "hermes")) {
|
|
5953
|
-
const
|
|
6112
|
+
const err25 = { 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" };
|
|
5954
6113
|
if (vErrors === null) {
|
|
5955
|
-
vErrors = [
|
|
6114
|
+
vErrors = [err25];
|
|
5956
6115
|
} else {
|
|
5957
|
-
vErrors.push(
|
|
6116
|
+
vErrors.push(err25);
|
|
5958
6117
|
}
|
|
5959
6118
|
errors++;
|
|
5960
6119
|
}
|
|
@@ -5966,11 +6125,11 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
5966
6125
|
}
|
|
5967
6126
|
}
|
|
5968
6127
|
} else {
|
|
5969
|
-
const
|
|
6128
|
+
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/2/type", keyword: "type", params: { type: "object" }, message: "must be object" };
|
|
5970
6129
|
if (vErrors === null) {
|
|
5971
|
-
vErrors = [
|
|
6130
|
+
vErrors = [err26];
|
|
5972
6131
|
} else {
|
|
5973
|
-
vErrors.push(
|
|
6132
|
+
vErrors.push(err26);
|
|
5974
6133
|
}
|
|
5975
6134
|
errors++;
|
|
5976
6135
|
}
|
|
@@ -5992,22 +6151,22 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
5992
6151
|
if (data64 && typeof data64 == "object" && !Array.isArray(data64)) {
|
|
5993
6152
|
let missing10;
|
|
5994
6153
|
if (data64.kind === void 0 && (missing10 = "kind") || data64.credential === void 0 && (missing10 = "credential")) {
|
|
5995
|
-
const
|
|
6154
|
+
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/required", keyword: "required", params: { missingProperty: missing10 }, message: "must have required property '" + missing10 + "'" };
|
|
5996
6155
|
if (vErrors === null) {
|
|
5997
|
-
vErrors = [
|
|
6156
|
+
vErrors = [err27];
|
|
5998
6157
|
} else {
|
|
5999
|
-
vErrors.push(
|
|
6158
|
+
vErrors.push(err27);
|
|
6000
6159
|
}
|
|
6001
6160
|
errors++;
|
|
6002
6161
|
} else {
|
|
6003
6162
|
const _errs169 = errors;
|
|
6004
6163
|
for (const key3 in data64) {
|
|
6005
6164
|
if (!(key3 === "kind" || key3 === "credential")) {
|
|
6006
|
-
const
|
|
6165
|
+
const err28 = { 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" };
|
|
6007
6166
|
if (vErrors === null) {
|
|
6008
|
-
vErrors = [
|
|
6167
|
+
vErrors = [err28];
|
|
6009
6168
|
} else {
|
|
6010
|
-
vErrors.push(
|
|
6169
|
+
vErrors.push(err28);
|
|
6011
6170
|
}
|
|
6012
6171
|
errors++;
|
|
6013
6172
|
break;
|
|
@@ -6018,20 +6177,20 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
6018
6177
|
let data72 = data64.kind;
|
|
6019
6178
|
const _errs170 = errors;
|
|
6020
6179
|
if (typeof data72 !== "string") {
|
|
6021
|
-
const
|
|
6180
|
+
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/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
6022
6181
|
if (vErrors === null) {
|
|
6023
|
-
vErrors = [
|
|
6182
|
+
vErrors = [err29];
|
|
6024
6183
|
} else {
|
|
6025
|
-
vErrors.push(
|
|
6184
|
+
vErrors.push(err29);
|
|
6026
6185
|
}
|
|
6027
6186
|
errors++;
|
|
6028
6187
|
}
|
|
6029
6188
|
if ("credential" !== data72) {
|
|
6030
|
-
const
|
|
6189
|
+
const err30 = { 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" };
|
|
6031
6190
|
if (vErrors === null) {
|
|
6032
|
-
vErrors = [
|
|
6191
|
+
vErrors = [err30];
|
|
6033
6192
|
} else {
|
|
6034
|
-
vErrors.push(
|
|
6193
|
+
vErrors.push(err30);
|
|
6035
6194
|
}
|
|
6036
6195
|
errors++;
|
|
6037
6196
|
}
|
|
@@ -6044,20 +6203,20 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
6044
6203
|
let data73 = data64.credential;
|
|
6045
6204
|
const _errs172 = errors;
|
|
6046
6205
|
if (typeof data73 !== "string") {
|
|
6047
|
-
const
|
|
6206
|
+
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/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
6048
6207
|
if (vErrors === null) {
|
|
6049
|
-
vErrors = [
|
|
6208
|
+
vErrors = [err31];
|
|
6050
6209
|
} else {
|
|
6051
|
-
vErrors.push(
|
|
6210
|
+
vErrors.push(err31);
|
|
6052
6211
|
}
|
|
6053
6212
|
errors++;
|
|
6054
6213
|
}
|
|
6055
6214
|
if (!(data73 === "workos_jwt" || data73 === "workos_api_key" || data73 === "service_token")) {
|
|
6056
|
-
const
|
|
6215
|
+
const err32 = { 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" };
|
|
6057
6216
|
if (vErrors === null) {
|
|
6058
|
-
vErrors = [
|
|
6217
|
+
vErrors = [err32];
|
|
6059
6218
|
} else {
|
|
6060
|
-
vErrors.push(
|
|
6219
|
+
vErrors.push(err32);
|
|
6061
6220
|
}
|
|
6062
6221
|
errors++;
|
|
6063
6222
|
}
|
|
@@ -6069,11 +6228,11 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
6069
6228
|
}
|
|
6070
6229
|
}
|
|
6071
6230
|
} else {
|
|
6072
|
-
const
|
|
6231
|
+
const err33 = { 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/type", keyword: "type", params: { type: "object" }, message: "must be object" };
|
|
6073
6232
|
if (vErrors === null) {
|
|
6074
|
-
vErrors = [
|
|
6233
|
+
vErrors = [err33];
|
|
6075
6234
|
} else {
|
|
6076
|
-
vErrors.push(
|
|
6235
|
+
vErrors.push(err33);
|
|
6077
6236
|
}
|
|
6078
6237
|
errors++;
|
|
6079
6238
|
}
|
|
@@ -6094,11 +6253,11 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
6094
6253
|
}
|
|
6095
6254
|
}
|
|
6096
6255
|
if (!valid20) {
|
|
6097
|
-
const
|
|
6256
|
+
const err34 = { instancePath: instancePath + "/scope/users/" + i9, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionDetailResponse/properties/scope/properties/users/items/oneOf", keyword: "oneOf", params: { passingSchemas: passing0 }, message: "must match exactly one schema in oneOf" };
|
|
6098
6257
|
if (vErrors === null) {
|
|
6099
|
-
vErrors = [
|
|
6258
|
+
vErrors = [err34];
|
|
6100
6259
|
} else {
|
|
6101
|
-
vErrors.push(
|
|
6260
|
+
vErrors.push(err34);
|
|
6102
6261
|
}
|
|
6103
6262
|
errors++;
|
|
6104
6263
|
validate29.errors = vErrors;
|
|
@@ -6401,7 +6560,7 @@ function validate32(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
6401
6560
|
return errors === 0;
|
|
6402
6561
|
}
|
|
6403
6562
|
validate32.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
|
|
6404
|
-
var schema57 = { "type": "object", "properties": { "outcome": { "type": "string", "enum": ["linked", "already_linked", "unlinked", "not_linked"] }, "childId": { "type": "string", "minLength": 1 }, "childShortId": { "type": "string" }, "parentId": { "type": "string", "minLength": 1 }, "parentShortId": { "type": "string" } }, "required": ["outcome", "childId", "parentId"], "additionalProperties": {} };
|
|
6563
|
+
var schema57 = { "type": "object", "properties": { "outcome": { "type": "string", "enum": ["linked", "already_linked", "unlinked", "not_linked"] }, "childId": { "type": "string", "minLength": 1, "pattern": "^dec_[0-9a-f]{8}$", "description": "Canonical public Decision ID; internal Convex IDs are accepted only as legacy inputs." }, "childShortId": { "type": "string", "pattern": "^[0-9a-f]{8}$" }, "parentId": { "type": "string", "minLength": 1, "pattern": "^dec_[0-9a-f]{8}$", "description": "Canonical public Decision ID; internal Convex IDs are accepted only as legacy inputs." }, "parentShortId": { "type": "string", "pattern": "^[0-9a-f]{8}$" } }, "required": ["outcome", "childId", "parentId"], "additionalProperties": {} };
|
|
6405
6564
|
function validate33(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
6406
6565
|
;
|
|
6407
6566
|
let vErrors = null;
|
|
@@ -6445,6 +6604,11 @@ function validate33(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
6445
6604
|
if (func1(data1) < 1) {
|
|
6446
6605
|
validate33.errors = [{ instancePath: instancePath + "/childId", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionRelateSuccessResponse/properties/childId/minLength", keyword: "minLength", params: { limit: 1 }, message: "must NOT have fewer than 1 characters" }];
|
|
6447
6606
|
return false;
|
|
6607
|
+
} else {
|
|
6608
|
+
if (!pattern4.test(data1)) {
|
|
6609
|
+
validate33.errors = [{ instancePath: instancePath + "/childId", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionRelateSuccessResponse/properties/childId/pattern", keyword: "pattern", params: { pattern: "^dec_[0-9a-f]{8}$" }, message: 'must match pattern "^dec_[0-9a-f]{8}$"' }];
|
|
6610
|
+
return false;
|
|
6611
|
+
}
|
|
6448
6612
|
}
|
|
6449
6613
|
} else {
|
|
6450
6614
|
validate33.errors = [{ instancePath: instancePath + "/childId", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionRelateSuccessResponse/properties/childId/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
@@ -6457,10 +6621,18 @@ function validate33(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
6457
6621
|
}
|
|
6458
6622
|
if (valid1) {
|
|
6459
6623
|
if (data.childShortId !== void 0) {
|
|
6624
|
+
let data2 = data.childShortId;
|
|
6460
6625
|
const _errs7 = errors;
|
|
6461
|
-
if (
|
|
6462
|
-
|
|
6463
|
-
|
|
6626
|
+
if (errors === _errs7) {
|
|
6627
|
+
if (typeof data2 === "string") {
|
|
6628
|
+
if (!pattern5.test(data2)) {
|
|
6629
|
+
validate33.errors = [{ instancePath: instancePath + "/childShortId", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionRelateSuccessResponse/properties/childShortId/pattern", keyword: "pattern", params: { pattern: "^[0-9a-f]{8}$" }, message: 'must match pattern "^[0-9a-f]{8}$"' }];
|
|
6630
|
+
return false;
|
|
6631
|
+
}
|
|
6632
|
+
} else {
|
|
6633
|
+
validate33.errors = [{ instancePath: instancePath + "/childShortId", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionRelateSuccessResponse/properties/childShortId/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
6634
|
+
return false;
|
|
6635
|
+
}
|
|
6464
6636
|
}
|
|
6465
6637
|
var valid1 = _errs7 === errors;
|
|
6466
6638
|
} else {
|
|
@@ -6475,6 +6647,11 @@ function validate33(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
6475
6647
|
if (func1(data3) < 1) {
|
|
6476
6648
|
validate33.errors = [{ instancePath: instancePath + "/parentId", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionRelateSuccessResponse/properties/parentId/minLength", keyword: "minLength", params: { limit: 1 }, message: "must NOT have fewer than 1 characters" }];
|
|
6477
6649
|
return false;
|
|
6650
|
+
} else {
|
|
6651
|
+
if (!pattern4.test(data3)) {
|
|
6652
|
+
validate33.errors = [{ instancePath: instancePath + "/parentId", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionRelateSuccessResponse/properties/parentId/pattern", keyword: "pattern", params: { pattern: "^dec_[0-9a-f]{8}$" }, message: 'must match pattern "^dec_[0-9a-f]{8}$"' }];
|
|
6653
|
+
return false;
|
|
6654
|
+
}
|
|
6478
6655
|
}
|
|
6479
6656
|
} else {
|
|
6480
6657
|
validate33.errors = [{ instancePath: instancePath + "/parentId", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionRelateSuccessResponse/properties/parentId/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
@@ -6487,10 +6664,18 @@ function validate33(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
6487
6664
|
}
|
|
6488
6665
|
if (valid1) {
|
|
6489
6666
|
if (data.parentShortId !== void 0) {
|
|
6667
|
+
let data4 = data.parentShortId;
|
|
6490
6668
|
const _errs11 = errors;
|
|
6491
|
-
if (
|
|
6492
|
-
|
|
6493
|
-
|
|
6669
|
+
if (errors === _errs11) {
|
|
6670
|
+
if (typeof data4 === "string") {
|
|
6671
|
+
if (!pattern5.test(data4)) {
|
|
6672
|
+
validate33.errors = [{ instancePath: instancePath + "/parentShortId", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionRelateSuccessResponse/properties/parentShortId/pattern", keyword: "pattern", params: { pattern: "^[0-9a-f]{8}$" }, message: 'must match pattern "^[0-9a-f]{8}$"' }];
|
|
6673
|
+
return false;
|
|
6674
|
+
}
|
|
6675
|
+
} else {
|
|
6676
|
+
validate33.errors = [{ instancePath: instancePath + "/parentShortId", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionRelateSuccessResponse/properties/parentShortId/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
6677
|
+
return false;
|
|
6678
|
+
}
|
|
6494
6679
|
}
|
|
6495
6680
|
var valid1 = _errs11 === errors;
|
|
6496
6681
|
} else {
|
|
@@ -7406,7 +7591,7 @@ function validate34(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
7406
7591
|
return errors === 0;
|
|
7407
7592
|
}
|
|
7408
7593
|
validate34.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
|
|
7409
|
-
var schema61 = { "anyOf": [{ "type": "object", "properties": { "outcome": { "type": "string", "const": "no_op" }, "stage": { "type": "string", "enum": ["draft", "provisional", "adopted", "superseded", "abandoned"] }, "scope": { "type": "object", "properties": { "location": { "type": "object", "properties": { "mode": { "type": "string", "enum": ["inherited", "explicit"] }, "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 } }, "required": ["kind", "userId"], "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", "cursor", "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": {} }, "scopeWarnings": { "type": "array", "items": { "type": "string" } } }, "required": ["outcome", "stage", "scope"], "additionalProperties": {} }, { "type": "object", "properties": { "outcome": { "type": "string", "const": "ok" }, "decisionId": { "type": "string", "minLength": 1 }, "shortId": { "type": "string" }, "stage": { "type": "string", "enum": ["draft", "provisional", "adopted", "superseded", "abandoned"] }, "scope": { "type": "object", "properties": { "location": { "type": "object", "properties": { "mode": { "type": "string", "enum": ["inherited", "explicit"] }, "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 } }, "required": ["kind", "userId"], "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", "cursor", "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": {} }, "scopeWarnings": { "type": "array", "items": { "type": "string" } } }, "required": ["outcome", "decisionId", "stage", "scope"], "additionalProperties": {} }] };
|
|
7594
|
+
var schema61 = { "anyOf": [{ "type": "object", "properties": { "outcome": { "type": "string", "const": "no_op" }, "stage": { "type": "string", "enum": ["draft", "provisional", "adopted", "superseded", "abandoned"] }, "scope": { "type": "object", "properties": { "location": { "type": "object", "properties": { "mode": { "type": "string", "enum": ["inherited", "explicit"] }, "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 } }, "required": ["kind", "userId"], "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", "cursor", "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": {} }, "scopeWarnings": { "type": "array", "items": { "type": "string" } } }, "required": ["outcome", "stage", "scope"], "additionalProperties": {} }, { "type": "object", "properties": { "outcome": { "type": "string", "const": "ok" }, "decisionId": { "type": "string", "minLength": 1, "pattern": "^dec_[0-9a-f]{8}$", "description": "Canonical public Decision ID; internal Convex IDs are accepted only as legacy inputs." }, "shortId": { "type": "string", "pattern": "^[0-9a-f]{8}$" }, "stage": { "type": "string", "enum": ["draft", "provisional", "adopted", "superseded", "abandoned"] }, "scope": { "type": "object", "properties": { "location": { "type": "object", "properties": { "mode": { "type": "string", "enum": ["inherited", "explicit"] }, "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 } }, "required": ["kind", "userId"], "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", "cursor", "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": {} }, "scopeWarnings": { "type": "array", "items": { "type": "string" } } }, "required": ["outcome", "decisionId", "stage", "scope"], "additionalProperties": {} }] };
|
|
7410
7595
|
function validate35(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
7411
7596
|
;
|
|
7412
7597
|
let vErrors = null;
|
|
@@ -8378,13 +8563,23 @@ function validate35(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
8378
8563
|
vErrors.push(err61);
|
|
8379
8564
|
}
|
|
8380
8565
|
errors++;
|
|
8566
|
+
} else {
|
|
8567
|
+
if (!pattern4.test(data28)) {
|
|
8568
|
+
const err62 = { instancePath: instancePath + "/decisionId", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionRescopeResponse/anyOf/1/properties/decisionId/pattern", keyword: "pattern", params: { pattern: "^dec_[0-9a-f]{8}$" }, message: 'must match pattern "^dec_[0-9a-f]{8}$"' };
|
|
8569
|
+
if (vErrors === null) {
|
|
8570
|
+
vErrors = [err62];
|
|
8571
|
+
} else {
|
|
8572
|
+
vErrors.push(err62);
|
|
8573
|
+
}
|
|
8574
|
+
errors++;
|
|
8575
|
+
}
|
|
8381
8576
|
}
|
|
8382
8577
|
} else {
|
|
8383
|
-
const
|
|
8578
|
+
const err63 = { instancePath: instancePath + "/decisionId", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionRescopeResponse/anyOf/1/properties/decisionId/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
8384
8579
|
if (vErrors === null) {
|
|
8385
|
-
vErrors = [
|
|
8580
|
+
vErrors = [err63];
|
|
8386
8581
|
} else {
|
|
8387
|
-
vErrors.push(
|
|
8582
|
+
vErrors.push(err63);
|
|
8388
8583
|
}
|
|
8389
8584
|
errors++;
|
|
8390
8585
|
}
|
|
@@ -8395,15 +8590,28 @@ function validate35(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
8395
8590
|
}
|
|
8396
8591
|
if (valid16) {
|
|
8397
8592
|
if (data.shortId !== void 0) {
|
|
8593
|
+
let data29 = data.shortId;
|
|
8398
8594
|
const _errs81 = errors;
|
|
8399
|
-
if (
|
|
8400
|
-
|
|
8401
|
-
|
|
8402
|
-
|
|
8595
|
+
if (errors === _errs81) {
|
|
8596
|
+
if (typeof data29 === "string") {
|
|
8597
|
+
if (!pattern5.test(data29)) {
|
|
8598
|
+
const err64 = { instancePath: instancePath + "/shortId", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionRescopeResponse/anyOf/1/properties/shortId/pattern", keyword: "pattern", params: { pattern: "^[0-9a-f]{8}$" }, message: 'must match pattern "^[0-9a-f]{8}$"' };
|
|
8599
|
+
if (vErrors === null) {
|
|
8600
|
+
vErrors = [err64];
|
|
8601
|
+
} else {
|
|
8602
|
+
vErrors.push(err64);
|
|
8603
|
+
}
|
|
8604
|
+
errors++;
|
|
8605
|
+
}
|
|
8403
8606
|
} else {
|
|
8404
|
-
|
|
8607
|
+
const err65 = { instancePath: instancePath + "/shortId", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionRescopeResponse/anyOf/1/properties/shortId/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
8608
|
+
if (vErrors === null) {
|
|
8609
|
+
vErrors = [err65];
|
|
8610
|
+
} else {
|
|
8611
|
+
vErrors.push(err65);
|
|
8612
|
+
}
|
|
8613
|
+
errors++;
|
|
8405
8614
|
}
|
|
8406
|
-
errors++;
|
|
8407
8615
|
}
|
|
8408
8616
|
var valid16 = _errs81 === errors;
|
|
8409
8617
|
} else {
|
|
@@ -8414,20 +8622,20 @@ function validate35(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
8414
8622
|
let data30 = data.stage;
|
|
8415
8623
|
const _errs83 = errors;
|
|
8416
8624
|
if (typeof data30 !== "string") {
|
|
8417
|
-
const
|
|
8625
|
+
const err66 = { instancePath: instancePath + "/stage", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionRescopeResponse/anyOf/1/properties/stage/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
8418
8626
|
if (vErrors === null) {
|
|
8419
|
-
vErrors = [
|
|
8627
|
+
vErrors = [err66];
|
|
8420
8628
|
} else {
|
|
8421
|
-
vErrors.push(
|
|
8629
|
+
vErrors.push(err66);
|
|
8422
8630
|
}
|
|
8423
8631
|
errors++;
|
|
8424
8632
|
}
|
|
8425
8633
|
if (!(data30 === "draft" || data30 === "provisional" || data30 === "adopted" || data30 === "superseded" || data30 === "abandoned")) {
|
|
8426
|
-
const
|
|
8634
|
+
const err67 = { instancePath: instancePath + "/stage", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionRescopeResponse/anyOf/1/properties/stage/enum", keyword: "enum", params: { allowedValues: schema61.anyOf[1].properties.stage.enum }, message: "must be equal to one of the allowed values" };
|
|
8427
8635
|
if (vErrors === null) {
|
|
8428
|
-
vErrors = [
|
|
8636
|
+
vErrors = [err67];
|
|
8429
8637
|
} else {
|
|
8430
|
-
vErrors.push(
|
|
8638
|
+
vErrors.push(err67);
|
|
8431
8639
|
}
|
|
8432
8640
|
errors++;
|
|
8433
8641
|
}
|
|
@@ -8443,11 +8651,11 @@ function validate35(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
8443
8651
|
if (data31 && typeof data31 == "object" && !Array.isArray(data31)) {
|
|
8444
8652
|
let missing8;
|
|
8445
8653
|
if (data31.location === void 0 && (missing8 = "location") || data31.time === void 0 && (missing8 = "time") || data31.users === void 0 && (missing8 = "users")) {
|
|
8446
|
-
const
|
|
8654
|
+
const err68 = { instancePath: instancePath + "/scope", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionRescopeResponse/anyOf/1/properties/scope/required", keyword: "required", params: { missingProperty: missing8 }, message: "must have required property '" + missing8 + "'" };
|
|
8447
8655
|
if (vErrors === null) {
|
|
8448
|
-
vErrors = [
|
|
8656
|
+
vErrors = [err68];
|
|
8449
8657
|
} else {
|
|
8450
|
-
vErrors.push(
|
|
8658
|
+
vErrors.push(err68);
|
|
8451
8659
|
}
|
|
8452
8660
|
errors++;
|
|
8453
8661
|
} else {
|
|
@@ -8458,11 +8666,11 @@ function validate35(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
8458
8666
|
if (data32 && typeof data32 == "object" && !Array.isArray(data32)) {
|
|
8459
8667
|
let missing9;
|
|
8460
8668
|
if (data32.repository === void 0 && (missing9 = "repository") || data32.directories === void 0 && (missing9 = "directories") || data32.globs === void 0 && (missing9 = "globs") || data32.branches === void 0 && (missing9 = "branches")) {
|
|
8461
|
-
const
|
|
8669
|
+
const err69 = { instancePath: instancePath + "/scope/location", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionRescopeResponse/anyOf/1/properties/scope/properties/location/required", keyword: "required", params: { missingProperty: missing9 }, message: "must have required property '" + missing9 + "'" };
|
|
8462
8670
|
if (vErrors === null) {
|
|
8463
|
-
vErrors = [
|
|
8671
|
+
vErrors = [err69];
|
|
8464
8672
|
} else {
|
|
8465
|
-
vErrors.push(
|
|
8673
|
+
vErrors.push(err69);
|
|
8466
8674
|
}
|
|
8467
8675
|
errors++;
|
|
8468
8676
|
} else {
|
|
@@ -8470,20 +8678,20 @@ function validate35(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
8470
8678
|
let data33 = data32.mode;
|
|
8471
8679
|
const _errs91 = errors;
|
|
8472
8680
|
if (typeof data33 !== "string") {
|
|
8473
|
-
const
|
|
8681
|
+
const err70 = { instancePath: instancePath + "/scope/location/mode", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionRescopeResponse/anyOf/1/properties/scope/properties/location/properties/mode/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
8474
8682
|
if (vErrors === null) {
|
|
8475
|
-
vErrors = [
|
|
8683
|
+
vErrors = [err70];
|
|
8476
8684
|
} else {
|
|
8477
|
-
vErrors.push(
|
|
8685
|
+
vErrors.push(err70);
|
|
8478
8686
|
}
|
|
8479
8687
|
errors++;
|
|
8480
8688
|
}
|
|
8481
8689
|
if (!(data33 === "inherited" || data33 === "explicit")) {
|
|
8482
|
-
const
|
|
8690
|
+
const err71 = { instancePath: instancePath + "/scope/location/mode", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionRescopeResponse/anyOf/1/properties/scope/properties/location/properties/mode/enum", keyword: "enum", params: { allowedValues: schema61.anyOf[1].properties.scope.properties.location.properties.mode.enum }, message: "must be equal to one of the allowed values" };
|
|
8483
8691
|
if (vErrors === null) {
|
|
8484
|
-
vErrors = [
|
|
8692
|
+
vErrors = [err71];
|
|
8485
8693
|
} else {
|
|
8486
|
-
vErrors.push(
|
|
8694
|
+
vErrors.push(err71);
|
|
8487
8695
|
}
|
|
8488
8696
|
errors++;
|
|
8489
8697
|
}
|
|
@@ -8495,11 +8703,11 @@ function validate35(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
8495
8703
|
if (data32.repository !== void 0) {
|
|
8496
8704
|
const _errs93 = errors;
|
|
8497
8705
|
if (typeof data32.repository !== "boolean") {
|
|
8498
|
-
const
|
|
8706
|
+
const err72 = { instancePath: instancePath + "/scope/location/repository", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionRescopeResponse/anyOf/1/properties/scope/properties/location/properties/repository/type", keyword: "type", params: { type: "boolean" }, message: "must be boolean" };
|
|
8499
8707
|
if (vErrors === null) {
|
|
8500
|
-
vErrors = [
|
|
8708
|
+
vErrors = [err72];
|
|
8501
8709
|
} else {
|
|
8502
|
-
vErrors.push(
|
|
8710
|
+
vErrors.push(err72);
|
|
8503
8711
|
}
|
|
8504
8712
|
errors++;
|
|
8505
8713
|
}
|
|
@@ -8518,11 +8726,11 @@ function validate35(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
8518
8726
|
for (let i5 = 0; i5 < len5; i5++) {
|
|
8519
8727
|
const _errs97 = errors;
|
|
8520
8728
|
if (typeof data35[i5] !== "string") {
|
|
8521
|
-
const
|
|
8729
|
+
const err73 = { instancePath: instancePath + "/scope/location/directories/" + i5, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionRescopeResponse/anyOf/1/properties/scope/properties/location/properties/directories/items/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
8522
8730
|
if (vErrors === null) {
|
|
8523
|
-
vErrors = [
|
|
8731
|
+
vErrors = [err73];
|
|
8524
8732
|
} else {
|
|
8525
|
-
vErrors.push(
|
|
8733
|
+
vErrors.push(err73);
|
|
8526
8734
|
}
|
|
8527
8735
|
errors++;
|
|
8528
8736
|
}
|
|
@@ -8532,11 +8740,11 @@ function validate35(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
8532
8740
|
}
|
|
8533
8741
|
}
|
|
8534
8742
|
} else {
|
|
8535
|
-
const
|
|
8743
|
+
const err74 = { instancePath: instancePath + "/scope/location/directories", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionRescopeResponse/anyOf/1/properties/scope/properties/location/properties/directories/type", keyword: "type", params: { type: "array" }, message: "must be array" };
|
|
8536
8744
|
if (vErrors === null) {
|
|
8537
|
-
vErrors = [
|
|
8745
|
+
vErrors = [err74];
|
|
8538
8746
|
} else {
|
|
8539
|
-
vErrors.push(
|
|
8747
|
+
vErrors.push(err74);
|
|
8540
8748
|
}
|
|
8541
8749
|
errors++;
|
|
8542
8750
|
}
|
|
@@ -8556,11 +8764,11 @@ function validate35(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
8556
8764
|
for (let i6 = 0; i6 < len6; i6++) {
|
|
8557
8765
|
const _errs101 = errors;
|
|
8558
8766
|
if (typeof data37[i6] !== "string") {
|
|
8559
|
-
const
|
|
8767
|
+
const err75 = { instancePath: instancePath + "/scope/location/globs/" + i6, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionRescopeResponse/anyOf/1/properties/scope/properties/location/properties/globs/items/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
8560
8768
|
if (vErrors === null) {
|
|
8561
|
-
vErrors = [
|
|
8769
|
+
vErrors = [err75];
|
|
8562
8770
|
} else {
|
|
8563
|
-
vErrors.push(
|
|
8771
|
+
vErrors.push(err75);
|
|
8564
8772
|
}
|
|
8565
8773
|
errors++;
|
|
8566
8774
|
}
|
|
@@ -8570,11 +8778,11 @@ function validate35(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
8570
8778
|
}
|
|
8571
8779
|
}
|
|
8572
8780
|
} else {
|
|
8573
|
-
const
|
|
8781
|
+
const err76 = { instancePath: instancePath + "/scope/location/globs", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionRescopeResponse/anyOf/1/properties/scope/properties/location/properties/globs/type", keyword: "type", params: { type: "array" }, message: "must be array" };
|
|
8574
8782
|
if (vErrors === null) {
|
|
8575
|
-
vErrors = [
|
|
8783
|
+
vErrors = [err76];
|
|
8576
8784
|
} else {
|
|
8577
|
-
vErrors.push(
|
|
8785
|
+
vErrors.push(err76);
|
|
8578
8786
|
}
|
|
8579
8787
|
errors++;
|
|
8580
8788
|
}
|
|
@@ -8594,11 +8802,11 @@ function validate35(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
8594
8802
|
for (let i7 = 0; i7 < len7; i7++) {
|
|
8595
8803
|
const _errs105 = errors;
|
|
8596
8804
|
if (typeof data39[i7] !== "string") {
|
|
8597
|
-
const
|
|
8805
|
+
const err77 = { instancePath: instancePath + "/scope/location/branches/" + i7, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionRescopeResponse/anyOf/1/properties/scope/properties/location/properties/branches/items/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
8598
8806
|
if (vErrors === null) {
|
|
8599
|
-
vErrors = [
|
|
8807
|
+
vErrors = [err77];
|
|
8600
8808
|
} else {
|
|
8601
|
-
vErrors.push(
|
|
8809
|
+
vErrors.push(err77);
|
|
8602
8810
|
}
|
|
8603
8811
|
errors++;
|
|
8604
8812
|
}
|
|
@@ -8608,11 +8816,11 @@ function validate35(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
8608
8816
|
}
|
|
8609
8817
|
}
|
|
8610
8818
|
} else {
|
|
8611
|
-
const
|
|
8819
|
+
const err78 = { instancePath: instancePath + "/scope/location/branches", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionRescopeResponse/anyOf/1/properties/scope/properties/location/properties/branches/type", keyword: "type", params: { type: "array" }, message: "must be array" };
|
|
8612
8820
|
if (vErrors === null) {
|
|
8613
|
-
vErrors = [
|
|
8821
|
+
vErrors = [err78];
|
|
8614
8822
|
} else {
|
|
8615
|
-
vErrors.push(
|
|
8823
|
+
vErrors.push(err78);
|
|
8616
8824
|
}
|
|
8617
8825
|
errors++;
|
|
8618
8826
|
}
|
|
@@ -8627,11 +8835,11 @@ function validate35(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
8627
8835
|
}
|
|
8628
8836
|
}
|
|
8629
8837
|
} else {
|
|
8630
|
-
const
|
|
8838
|
+
const err79 = { instancePath: instancePath + "/scope/location", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionRescopeResponse/anyOf/1/properties/scope/properties/location/type", keyword: "type", params: { type: "object" }, message: "must be object" };
|
|
8631
8839
|
if (vErrors === null) {
|
|
8632
|
-
vErrors = [
|
|
8840
|
+
vErrors = [err79];
|
|
8633
8841
|
} else {
|
|
8634
|
-
vErrors.push(
|
|
8842
|
+
vErrors.push(err79);
|
|
8635
8843
|
}
|
|
8636
8844
|
errors++;
|
|
8637
8845
|
}
|
|
@@ -8650,31 +8858,31 @@ function validate35(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
8650
8858
|
let data42 = data41.effectiveFrom;
|
|
8651
8859
|
const _errs110 = errors;
|
|
8652
8860
|
if (!(typeof data42 == "number" && (!(data42 % 1) && !isNaN(data42)) && isFinite(data42))) {
|
|
8653
|
-
const
|
|
8861
|
+
const err80 = { instancePath: instancePath + "/scope/time/effectiveFrom", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionRescopeResponse/anyOf/1/properties/scope/properties/time/properties/effectiveFrom/type", keyword: "type", params: { type: "integer" }, message: "must be integer" };
|
|
8654
8862
|
if (vErrors === null) {
|
|
8655
|
-
vErrors = [
|
|
8863
|
+
vErrors = [err80];
|
|
8656
8864
|
} else {
|
|
8657
|
-
vErrors.push(
|
|
8865
|
+
vErrors.push(err80);
|
|
8658
8866
|
}
|
|
8659
8867
|
errors++;
|
|
8660
8868
|
}
|
|
8661
8869
|
if (errors === _errs110) {
|
|
8662
8870
|
if (typeof data42 == "number" && isFinite(data42)) {
|
|
8663
8871
|
if (data42 > 9007199254740991 || isNaN(data42)) {
|
|
8664
|
-
const
|
|
8872
|
+
const err81 = { instancePath: instancePath + "/scope/time/effectiveFrom", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionRescopeResponse/anyOf/1/properties/scope/properties/time/properties/effectiveFrom/maximum", keyword: "maximum", params: { comparison: "<=", limit: 9007199254740991 }, message: "must be <= 9007199254740991" };
|
|
8665
8873
|
if (vErrors === null) {
|
|
8666
|
-
vErrors = [
|
|
8874
|
+
vErrors = [err81];
|
|
8667
8875
|
} else {
|
|
8668
|
-
vErrors.push(
|
|
8876
|
+
vErrors.push(err81);
|
|
8669
8877
|
}
|
|
8670
8878
|
errors++;
|
|
8671
8879
|
} else {
|
|
8672
8880
|
if (data42 < -9007199254740991 || isNaN(data42)) {
|
|
8673
|
-
const
|
|
8881
|
+
const err82 = { instancePath: instancePath + "/scope/time/effectiveFrom", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionRescopeResponse/anyOf/1/properties/scope/properties/time/properties/effectiveFrom/minimum", keyword: "minimum", params: { comparison: ">=", limit: -9007199254740991 }, message: "must be >= -9007199254740991" };
|
|
8674
8882
|
if (vErrors === null) {
|
|
8675
|
-
vErrors = [
|
|
8883
|
+
vErrors = [err82];
|
|
8676
8884
|
} else {
|
|
8677
|
-
vErrors.push(
|
|
8885
|
+
vErrors.push(err82);
|
|
8678
8886
|
}
|
|
8679
8887
|
errors++;
|
|
8680
8888
|
}
|
|
@@ -8690,31 +8898,31 @@ function validate35(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
8690
8898
|
let data43 = data41.effectiveUntil;
|
|
8691
8899
|
const _errs112 = errors;
|
|
8692
8900
|
if (!(typeof data43 == "number" && (!(data43 % 1) && !isNaN(data43)) && isFinite(data43))) {
|
|
8693
|
-
const
|
|
8901
|
+
const err83 = { instancePath: instancePath + "/scope/time/effectiveUntil", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionRescopeResponse/anyOf/1/properties/scope/properties/time/properties/effectiveUntil/type", keyword: "type", params: { type: "integer" }, message: "must be integer" };
|
|
8694
8902
|
if (vErrors === null) {
|
|
8695
|
-
vErrors = [
|
|
8903
|
+
vErrors = [err83];
|
|
8696
8904
|
} else {
|
|
8697
|
-
vErrors.push(
|
|
8905
|
+
vErrors.push(err83);
|
|
8698
8906
|
}
|
|
8699
8907
|
errors++;
|
|
8700
8908
|
}
|
|
8701
8909
|
if (errors === _errs112) {
|
|
8702
8910
|
if (typeof data43 == "number" && isFinite(data43)) {
|
|
8703
8911
|
if (data43 > 9007199254740991 || isNaN(data43)) {
|
|
8704
|
-
const
|
|
8912
|
+
const err84 = { instancePath: instancePath + "/scope/time/effectiveUntil", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionRescopeResponse/anyOf/1/properties/scope/properties/time/properties/effectiveUntil/maximum", keyword: "maximum", params: { comparison: "<=", limit: 9007199254740991 }, message: "must be <= 9007199254740991" };
|
|
8705
8913
|
if (vErrors === null) {
|
|
8706
|
-
vErrors = [
|
|
8914
|
+
vErrors = [err84];
|
|
8707
8915
|
} else {
|
|
8708
|
-
vErrors.push(
|
|
8916
|
+
vErrors.push(err84);
|
|
8709
8917
|
}
|
|
8710
8918
|
errors++;
|
|
8711
8919
|
} else {
|
|
8712
8920
|
if (data43 < -9007199254740991 || isNaN(data43)) {
|
|
8713
|
-
const
|
|
8921
|
+
const err85 = { instancePath: instancePath + "/scope/time/effectiveUntil", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionRescopeResponse/anyOf/1/properties/scope/properties/time/properties/effectiveUntil/minimum", keyword: "minimum", params: { comparison: ">=", limit: -9007199254740991 }, message: "must be >= -9007199254740991" };
|
|
8714
8922
|
if (vErrors === null) {
|
|
8715
|
-
vErrors = [
|
|
8923
|
+
vErrors = [err85];
|
|
8716
8924
|
} else {
|
|
8717
|
-
vErrors.push(
|
|
8925
|
+
vErrors.push(err85);
|
|
8718
8926
|
}
|
|
8719
8927
|
errors++;
|
|
8720
8928
|
}
|
|
@@ -8727,11 +8935,11 @@ function validate35(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
8727
8935
|
}
|
|
8728
8936
|
}
|
|
8729
8937
|
} else {
|
|
8730
|
-
const
|
|
8938
|
+
const err86 = { instancePath: instancePath + "/scope/time", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionRescopeResponse/anyOf/1/properties/scope/properties/time/type", keyword: "type", params: { type: "object" }, message: "must be object" };
|
|
8731
8939
|
if (vErrors === null) {
|
|
8732
|
-
vErrors = [
|
|
8940
|
+
vErrors = [err86];
|
|
8733
8941
|
} else {
|
|
8734
|
-
vErrors.push(
|
|
8942
|
+
vErrors.push(err86);
|
|
8735
8943
|
}
|
|
8736
8944
|
errors++;
|
|
8737
8945
|
}
|
|
@@ -8759,22 +8967,22 @@ function validate35(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
8759
8967
|
if (data45 && typeof data45 == "object" && !Array.isArray(data45)) {
|
|
8760
8968
|
let missing10;
|
|
8761
8969
|
if (data45.kind === void 0 && (missing10 = "kind") || data45.userId === void 0 && (missing10 = "userId")) {
|
|
8762
|
-
const
|
|
8970
|
+
const err87 = { instancePath: instancePath + "/scope/users/" + i8, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionRescopeResponse/anyOf/1/properties/scope/properties/users/items/oneOf/0/required", keyword: "required", params: { missingProperty: missing10 }, message: "must have required property '" + missing10 + "'" };
|
|
8763
8971
|
if (vErrors === null) {
|
|
8764
|
-
vErrors = [
|
|
8972
|
+
vErrors = [err87];
|
|
8765
8973
|
} else {
|
|
8766
|
-
vErrors.push(
|
|
8974
|
+
vErrors.push(err87);
|
|
8767
8975
|
}
|
|
8768
8976
|
errors++;
|
|
8769
8977
|
} else {
|
|
8770
8978
|
const _errs120 = errors;
|
|
8771
8979
|
for (const key4 in data45) {
|
|
8772
8980
|
if (!(key4 === "kind" || key4 === "userId")) {
|
|
8773
|
-
const
|
|
8981
|
+
const err88 = { instancePath: instancePath + "/scope/users/" + i8, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionRescopeResponse/anyOf/1/properties/scope/properties/users/items/oneOf/0/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key4 }, message: "must NOT have additional properties" };
|
|
8774
8982
|
if (vErrors === null) {
|
|
8775
|
-
vErrors = [
|
|
8983
|
+
vErrors = [err88];
|
|
8776
8984
|
} else {
|
|
8777
|
-
vErrors.push(
|
|
8985
|
+
vErrors.push(err88);
|
|
8778
8986
|
}
|
|
8779
8987
|
errors++;
|
|
8780
8988
|
break;
|
|
@@ -8785,20 +8993,20 @@ function validate35(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
8785
8993
|
let data46 = data45.kind;
|
|
8786
8994
|
const _errs121 = errors;
|
|
8787
8995
|
if (typeof data46 !== "string") {
|
|
8788
|
-
const
|
|
8996
|
+
const err89 = { instancePath: instancePath + "/scope/users/" + i8 + "/kind", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionRescopeResponse/anyOf/1/properties/scope/properties/users/items/oneOf/0/properties/kind/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
8789
8997
|
if (vErrors === null) {
|
|
8790
|
-
vErrors = [
|
|
8998
|
+
vErrors = [err89];
|
|
8791
8999
|
} else {
|
|
8792
|
-
vErrors.push(
|
|
9000
|
+
vErrors.push(err89);
|
|
8793
9001
|
}
|
|
8794
9002
|
errors++;
|
|
8795
9003
|
}
|
|
8796
9004
|
if ("user" !== data46) {
|
|
8797
|
-
const
|
|
9005
|
+
const err90 = { instancePath: instancePath + "/scope/users/" + i8 + "/kind", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionRescopeResponse/anyOf/1/properties/scope/properties/users/items/oneOf/0/properties/kind/const", keyword: "const", params: { allowedValue: "user" }, message: "must be equal to constant" };
|
|
8798
9006
|
if (vErrors === null) {
|
|
8799
|
-
vErrors = [
|
|
9007
|
+
vErrors = [err90];
|
|
8800
9008
|
} else {
|
|
8801
|
-
vErrors.push(
|
|
9009
|
+
vErrors.push(err90);
|
|
8802
9010
|
}
|
|
8803
9011
|
errors++;
|
|
8804
9012
|
}
|
|
@@ -8813,20 +9021,20 @@ function validate35(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
8813
9021
|
if (errors === _errs123) {
|
|
8814
9022
|
if (typeof data47 === "string") {
|
|
8815
9023
|
if (func1(data47) < 1) {
|
|
8816
|
-
const
|
|
9024
|
+
const err91 = { instancePath: instancePath + "/scope/users/" + i8 + "/userId", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionRescopeResponse/anyOf/1/properties/scope/properties/users/items/oneOf/0/properties/userId/minLength", keyword: "minLength", params: { limit: 1 }, message: "must NOT have fewer than 1 characters" };
|
|
8817
9025
|
if (vErrors === null) {
|
|
8818
|
-
vErrors = [
|
|
9026
|
+
vErrors = [err91];
|
|
8819
9027
|
} else {
|
|
8820
|
-
vErrors.push(
|
|
9028
|
+
vErrors.push(err91);
|
|
8821
9029
|
}
|
|
8822
9030
|
errors++;
|
|
8823
9031
|
}
|
|
8824
9032
|
} else {
|
|
8825
|
-
const
|
|
9033
|
+
const err92 = { instancePath: instancePath + "/scope/users/" + i8 + "/userId", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionRescopeResponse/anyOf/1/properties/scope/properties/users/items/oneOf/0/properties/userId/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
8826
9034
|
if (vErrors === null) {
|
|
8827
|
-
vErrors = [
|
|
9035
|
+
vErrors = [err92];
|
|
8828
9036
|
} else {
|
|
8829
|
-
vErrors.push(
|
|
9037
|
+
vErrors.push(err92);
|
|
8830
9038
|
}
|
|
8831
9039
|
errors++;
|
|
8832
9040
|
}
|
|
@@ -8839,11 +9047,11 @@ function validate35(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
8839
9047
|
}
|
|
8840
9048
|
}
|
|
8841
9049
|
} else {
|
|
8842
|
-
const
|
|
9050
|
+
const err93 = { instancePath: instancePath + "/scope/users/" + i8, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionRescopeResponse/anyOf/1/properties/scope/properties/users/items/oneOf/0/type", keyword: "type", params: { type: "object" }, message: "must be object" };
|
|
8843
9051
|
if (vErrors === null) {
|
|
8844
|
-
vErrors = [
|
|
9052
|
+
vErrors = [err93];
|
|
8845
9053
|
} else {
|
|
8846
|
-
vErrors.push(
|
|
9054
|
+
vErrors.push(err93);
|
|
8847
9055
|
}
|
|
8848
9056
|
errors++;
|
|
8849
9057
|
}
|
|
@@ -8859,22 +9067,22 @@ function validate35(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
8859
9067
|
if (data45 && typeof data45 == "object" && !Array.isArray(data45)) {
|
|
8860
9068
|
let missing11;
|
|
8861
9069
|
if (data45.kind === void 0 && (missing11 = "kind") || data45.role === void 0 && (missing11 = "role")) {
|
|
8862
|
-
const
|
|
9070
|
+
const err94 = { instancePath: instancePath + "/scope/users/" + i8, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionRescopeResponse/anyOf/1/properties/scope/properties/users/items/oneOf/1/required", keyword: "required", params: { missingProperty: missing11 }, message: "must have required property '" + missing11 + "'" };
|
|
8863
9071
|
if (vErrors === null) {
|
|
8864
|
-
vErrors = [
|
|
9072
|
+
vErrors = [err94];
|
|
8865
9073
|
} else {
|
|
8866
|
-
vErrors.push(
|
|
9074
|
+
vErrors.push(err94);
|
|
8867
9075
|
}
|
|
8868
9076
|
errors++;
|
|
8869
9077
|
} else {
|
|
8870
9078
|
const _errs127 = errors;
|
|
8871
9079
|
for (const key5 in data45) {
|
|
8872
9080
|
if (!(key5 === "kind" || key5 === "role")) {
|
|
8873
|
-
const
|
|
9081
|
+
const err95 = { instancePath: instancePath + "/scope/users/" + i8, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionRescopeResponse/anyOf/1/properties/scope/properties/users/items/oneOf/1/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key5 }, message: "must NOT have additional properties" };
|
|
8874
9082
|
if (vErrors === null) {
|
|
8875
|
-
vErrors = [
|
|
9083
|
+
vErrors = [err95];
|
|
8876
9084
|
} else {
|
|
8877
|
-
vErrors.push(
|
|
9085
|
+
vErrors.push(err95);
|
|
8878
9086
|
}
|
|
8879
9087
|
errors++;
|
|
8880
9088
|
break;
|
|
@@ -8885,20 +9093,20 @@ function validate35(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
8885
9093
|
let data48 = data45.kind;
|
|
8886
9094
|
const _errs128 = errors;
|
|
8887
9095
|
if (typeof data48 !== "string") {
|
|
8888
|
-
const
|
|
9096
|
+
const err96 = { instancePath: instancePath + "/scope/users/" + i8 + "/kind", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionRescopeResponse/anyOf/1/properties/scope/properties/users/items/oneOf/1/properties/kind/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
8889
9097
|
if (vErrors === null) {
|
|
8890
|
-
vErrors = [
|
|
9098
|
+
vErrors = [err96];
|
|
8891
9099
|
} else {
|
|
8892
|
-
vErrors.push(
|
|
9100
|
+
vErrors.push(err96);
|
|
8893
9101
|
}
|
|
8894
9102
|
errors++;
|
|
8895
9103
|
}
|
|
8896
9104
|
if ("role" !== data48) {
|
|
8897
|
-
const
|
|
9105
|
+
const err97 = { instancePath: instancePath + "/scope/users/" + i8 + "/kind", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionRescopeResponse/anyOf/1/properties/scope/properties/users/items/oneOf/1/properties/kind/const", keyword: "const", params: { allowedValue: "role" }, message: "must be equal to constant" };
|
|
8898
9106
|
if (vErrors === null) {
|
|
8899
|
-
vErrors = [
|
|
9107
|
+
vErrors = [err97];
|
|
8900
9108
|
} else {
|
|
8901
|
-
vErrors.push(
|
|
9109
|
+
vErrors.push(err97);
|
|
8902
9110
|
}
|
|
8903
9111
|
errors++;
|
|
8904
9112
|
}
|
|
@@ -8911,20 +9119,20 @@ function validate35(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
8911
9119
|
let data49 = data45.role;
|
|
8912
9120
|
const _errs130 = errors;
|
|
8913
9121
|
if (typeof data49 !== "string") {
|
|
8914
|
-
const
|
|
9122
|
+
const err98 = { instancePath: instancePath + "/scope/users/" + i8 + "/role", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionRescopeResponse/anyOf/1/properties/scope/properties/users/items/oneOf/1/properties/role/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
8915
9123
|
if (vErrors === null) {
|
|
8916
|
-
vErrors = [
|
|
9124
|
+
vErrors = [err98];
|
|
8917
9125
|
} else {
|
|
8918
|
-
vErrors.push(
|
|
9126
|
+
vErrors.push(err98);
|
|
8919
9127
|
}
|
|
8920
9128
|
errors++;
|
|
8921
9129
|
}
|
|
8922
9130
|
if (!(data49 === "owner" || data49 === "admin" || data49 === "member")) {
|
|
8923
|
-
const
|
|
9131
|
+
const err99 = { instancePath: instancePath + "/scope/users/" + i8 + "/role", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionRescopeResponse/anyOf/1/properties/scope/properties/users/items/oneOf/1/properties/role/enum", keyword: "enum", params: { allowedValues: schema61.anyOf[1].properties.scope.properties.users.items.oneOf[1].properties.role.enum }, message: "must be equal to one of the allowed values" };
|
|
8924
9132
|
if (vErrors === null) {
|
|
8925
|
-
vErrors = [
|
|
9133
|
+
vErrors = [err99];
|
|
8926
9134
|
} else {
|
|
8927
|
-
vErrors.push(
|
|
9135
|
+
vErrors.push(err99);
|
|
8928
9136
|
}
|
|
8929
9137
|
errors++;
|
|
8930
9138
|
}
|
|
@@ -8936,11 +9144,11 @@ function validate35(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
8936
9144
|
}
|
|
8937
9145
|
}
|
|
8938
9146
|
} else {
|
|
8939
|
-
const
|
|
9147
|
+
const err100 = { instancePath: instancePath + "/scope/users/" + i8, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionRescopeResponse/anyOf/1/properties/scope/properties/users/items/oneOf/1/type", keyword: "type", params: { type: "object" }, message: "must be object" };
|
|
8940
9148
|
if (vErrors === null) {
|
|
8941
|
-
vErrors = [
|
|
9149
|
+
vErrors = [err100];
|
|
8942
9150
|
} else {
|
|
8943
|
-
vErrors.push(
|
|
9151
|
+
vErrors.push(err100);
|
|
8944
9152
|
}
|
|
8945
9153
|
errors++;
|
|
8946
9154
|
}
|
|
@@ -8962,22 +9170,22 @@ function validate35(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
8962
9170
|
if (data45 && typeof data45 == "object" && !Array.isArray(data45)) {
|
|
8963
9171
|
let missing12;
|
|
8964
9172
|
if (data45.kind === void 0 && (missing12 = "kind") || data45.agent === void 0 && (missing12 = "agent")) {
|
|
8965
|
-
const
|
|
9173
|
+
const err101 = { instancePath: instancePath + "/scope/users/" + i8, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionRescopeResponse/anyOf/1/properties/scope/properties/users/items/oneOf/2/required", keyword: "required", params: { missingProperty: missing12 }, message: "must have required property '" + missing12 + "'" };
|
|
8966
9174
|
if (vErrors === null) {
|
|
8967
|
-
vErrors = [
|
|
9175
|
+
vErrors = [err101];
|
|
8968
9176
|
} else {
|
|
8969
|
-
vErrors.push(
|
|
9177
|
+
vErrors.push(err101);
|
|
8970
9178
|
}
|
|
8971
9179
|
errors++;
|
|
8972
9180
|
} else {
|
|
8973
9181
|
const _errs134 = errors;
|
|
8974
9182
|
for (const key6 in data45) {
|
|
8975
9183
|
if (!(key6 === "kind" || key6 === "agent")) {
|
|
8976
|
-
const
|
|
9184
|
+
const err102 = { instancePath: instancePath + "/scope/users/" + i8, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionRescopeResponse/anyOf/1/properties/scope/properties/users/items/oneOf/2/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key6 }, message: "must NOT have additional properties" };
|
|
8977
9185
|
if (vErrors === null) {
|
|
8978
|
-
vErrors = [
|
|
9186
|
+
vErrors = [err102];
|
|
8979
9187
|
} else {
|
|
8980
|
-
vErrors.push(
|
|
9188
|
+
vErrors.push(err102);
|
|
8981
9189
|
}
|
|
8982
9190
|
errors++;
|
|
8983
9191
|
break;
|
|
@@ -8988,20 +9196,20 @@ function validate35(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
8988
9196
|
let data50 = data45.kind;
|
|
8989
9197
|
const _errs135 = errors;
|
|
8990
9198
|
if (typeof data50 !== "string") {
|
|
8991
|
-
const
|
|
9199
|
+
const err103 = { instancePath: instancePath + "/scope/users/" + i8 + "/kind", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionRescopeResponse/anyOf/1/properties/scope/properties/users/items/oneOf/2/properties/kind/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
8992
9200
|
if (vErrors === null) {
|
|
8993
|
-
vErrors = [
|
|
9201
|
+
vErrors = [err103];
|
|
8994
9202
|
} else {
|
|
8995
|
-
vErrors.push(
|
|
9203
|
+
vErrors.push(err103);
|
|
8996
9204
|
}
|
|
8997
9205
|
errors++;
|
|
8998
9206
|
}
|
|
8999
9207
|
if ("agent" !== data50) {
|
|
9000
|
-
const
|
|
9208
|
+
const err104 = { instancePath: instancePath + "/scope/users/" + i8 + "/kind", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionRescopeResponse/anyOf/1/properties/scope/properties/users/items/oneOf/2/properties/kind/const", keyword: "const", params: { allowedValue: "agent" }, message: "must be equal to constant" };
|
|
9001
9209
|
if (vErrors === null) {
|
|
9002
|
-
vErrors = [
|
|
9210
|
+
vErrors = [err104];
|
|
9003
9211
|
} else {
|
|
9004
|
-
vErrors.push(
|
|
9212
|
+
vErrors.push(err104);
|
|
9005
9213
|
}
|
|
9006
9214
|
errors++;
|
|
9007
9215
|
}
|
|
@@ -9014,20 +9222,20 @@ function validate35(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
9014
9222
|
let data51 = data45.agent;
|
|
9015
9223
|
const _errs137 = errors;
|
|
9016
9224
|
if (typeof data51 !== "string") {
|
|
9017
|
-
const
|
|
9225
|
+
const err105 = { instancePath: instancePath + "/scope/users/" + i8 + "/agent", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionRescopeResponse/anyOf/1/properties/scope/properties/users/items/oneOf/2/properties/agent/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
9018
9226
|
if (vErrors === null) {
|
|
9019
|
-
vErrors = [
|
|
9227
|
+
vErrors = [err105];
|
|
9020
9228
|
} else {
|
|
9021
|
-
vErrors.push(
|
|
9229
|
+
vErrors.push(err105);
|
|
9022
9230
|
}
|
|
9023
9231
|
errors++;
|
|
9024
9232
|
}
|
|
9025
9233
|
if (!(data51 === "claude_code" || data51 === "codex" || data51 === "cursor" || data51 === "hermes")) {
|
|
9026
|
-
const
|
|
9234
|
+
const err106 = { instancePath: instancePath + "/scope/users/" + i8 + "/agent", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionRescopeResponse/anyOf/1/properties/scope/properties/users/items/oneOf/2/properties/agent/enum", keyword: "enum", params: { allowedValues: schema61.anyOf[1].properties.scope.properties.users.items.oneOf[2].properties.agent.enum }, message: "must be equal to one of the allowed values" };
|
|
9027
9235
|
if (vErrors === null) {
|
|
9028
|
-
vErrors = [
|
|
9236
|
+
vErrors = [err106];
|
|
9029
9237
|
} else {
|
|
9030
|
-
vErrors.push(
|
|
9238
|
+
vErrors.push(err106);
|
|
9031
9239
|
}
|
|
9032
9240
|
errors++;
|
|
9033
9241
|
}
|
|
@@ -9039,11 +9247,11 @@ function validate35(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
9039
9247
|
}
|
|
9040
9248
|
}
|
|
9041
9249
|
} else {
|
|
9042
|
-
const
|
|
9250
|
+
const err107 = { instancePath: instancePath + "/scope/users/" + i8, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionRescopeResponse/anyOf/1/properties/scope/properties/users/items/oneOf/2/type", keyword: "type", params: { type: "object" }, message: "must be object" };
|
|
9043
9251
|
if (vErrors === null) {
|
|
9044
|
-
vErrors = [
|
|
9252
|
+
vErrors = [err107];
|
|
9045
9253
|
} else {
|
|
9046
|
-
vErrors.push(
|
|
9254
|
+
vErrors.push(err107);
|
|
9047
9255
|
}
|
|
9048
9256
|
errors++;
|
|
9049
9257
|
}
|
|
@@ -9065,22 +9273,22 @@ function validate35(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
9065
9273
|
if (data45 && typeof data45 == "object" && !Array.isArray(data45)) {
|
|
9066
9274
|
let missing13;
|
|
9067
9275
|
if (data45.kind === void 0 && (missing13 = "kind") || data45.credential === void 0 && (missing13 = "credential")) {
|
|
9068
|
-
const
|
|
9276
|
+
const err108 = { instancePath: instancePath + "/scope/users/" + i8, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionRescopeResponse/anyOf/1/properties/scope/properties/users/items/oneOf/3/required", keyword: "required", params: { missingProperty: missing13 }, message: "must have required property '" + missing13 + "'" };
|
|
9069
9277
|
if (vErrors === null) {
|
|
9070
|
-
vErrors = [
|
|
9278
|
+
vErrors = [err108];
|
|
9071
9279
|
} else {
|
|
9072
|
-
vErrors.push(
|
|
9280
|
+
vErrors.push(err108);
|
|
9073
9281
|
}
|
|
9074
9282
|
errors++;
|
|
9075
9283
|
} else {
|
|
9076
9284
|
const _errs141 = errors;
|
|
9077
9285
|
for (const key7 in data45) {
|
|
9078
9286
|
if (!(key7 === "kind" || key7 === "credential")) {
|
|
9079
|
-
const
|
|
9287
|
+
const err109 = { instancePath: instancePath + "/scope/users/" + i8, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionRescopeResponse/anyOf/1/properties/scope/properties/users/items/oneOf/3/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key7 }, message: "must NOT have additional properties" };
|
|
9080
9288
|
if (vErrors === null) {
|
|
9081
|
-
vErrors = [
|
|
9289
|
+
vErrors = [err109];
|
|
9082
9290
|
} else {
|
|
9083
|
-
vErrors.push(
|
|
9291
|
+
vErrors.push(err109);
|
|
9084
9292
|
}
|
|
9085
9293
|
errors++;
|
|
9086
9294
|
break;
|
|
@@ -9091,20 +9299,20 @@ function validate35(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
9091
9299
|
let data52 = data45.kind;
|
|
9092
9300
|
const _errs142 = errors;
|
|
9093
9301
|
if (typeof data52 !== "string") {
|
|
9094
|
-
const
|
|
9302
|
+
const err110 = { instancePath: instancePath + "/scope/users/" + i8 + "/kind", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionRescopeResponse/anyOf/1/properties/scope/properties/users/items/oneOf/3/properties/kind/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
9095
9303
|
if (vErrors === null) {
|
|
9096
|
-
vErrors = [
|
|
9304
|
+
vErrors = [err110];
|
|
9097
9305
|
} else {
|
|
9098
|
-
vErrors.push(
|
|
9306
|
+
vErrors.push(err110);
|
|
9099
9307
|
}
|
|
9100
9308
|
errors++;
|
|
9101
9309
|
}
|
|
9102
9310
|
if ("credential" !== data52) {
|
|
9103
|
-
const
|
|
9311
|
+
const err111 = { instancePath: instancePath + "/scope/users/" + i8 + "/kind", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionRescopeResponse/anyOf/1/properties/scope/properties/users/items/oneOf/3/properties/kind/const", keyword: "const", params: { allowedValue: "credential" }, message: "must be equal to constant" };
|
|
9104
9312
|
if (vErrors === null) {
|
|
9105
|
-
vErrors = [
|
|
9313
|
+
vErrors = [err111];
|
|
9106
9314
|
} else {
|
|
9107
|
-
vErrors.push(
|
|
9315
|
+
vErrors.push(err111);
|
|
9108
9316
|
}
|
|
9109
9317
|
errors++;
|
|
9110
9318
|
}
|
|
@@ -9117,20 +9325,20 @@ function validate35(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
9117
9325
|
let data53 = data45.credential;
|
|
9118
9326
|
const _errs144 = errors;
|
|
9119
9327
|
if (typeof data53 !== "string") {
|
|
9120
|
-
const
|
|
9328
|
+
const err112 = { instancePath: instancePath + "/scope/users/" + i8 + "/credential", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionRescopeResponse/anyOf/1/properties/scope/properties/users/items/oneOf/3/properties/credential/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
9121
9329
|
if (vErrors === null) {
|
|
9122
|
-
vErrors = [
|
|
9330
|
+
vErrors = [err112];
|
|
9123
9331
|
} else {
|
|
9124
|
-
vErrors.push(
|
|
9332
|
+
vErrors.push(err112);
|
|
9125
9333
|
}
|
|
9126
9334
|
errors++;
|
|
9127
9335
|
}
|
|
9128
9336
|
if (!(data53 === "workos_jwt" || data53 === "workos_api_key" || data53 === "service_token")) {
|
|
9129
|
-
const
|
|
9337
|
+
const err113 = { instancePath: instancePath + "/scope/users/" + i8 + "/credential", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionRescopeResponse/anyOf/1/properties/scope/properties/users/items/oneOf/3/properties/credential/enum", keyword: "enum", params: { allowedValues: schema61.anyOf[1].properties.scope.properties.users.items.oneOf[3].properties.credential.enum }, message: "must be equal to one of the allowed values" };
|
|
9130
9338
|
if (vErrors === null) {
|
|
9131
|
-
vErrors = [
|
|
9339
|
+
vErrors = [err113];
|
|
9132
9340
|
} else {
|
|
9133
|
-
vErrors.push(
|
|
9341
|
+
vErrors.push(err113);
|
|
9134
9342
|
}
|
|
9135
9343
|
errors++;
|
|
9136
9344
|
}
|
|
@@ -9142,11 +9350,11 @@ function validate35(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
9142
9350
|
}
|
|
9143
9351
|
}
|
|
9144
9352
|
} else {
|
|
9145
|
-
const
|
|
9353
|
+
const err114 = { instancePath: instancePath + "/scope/users/" + i8, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionRescopeResponse/anyOf/1/properties/scope/properties/users/items/oneOf/3/type", keyword: "type", params: { type: "object" }, message: "must be object" };
|
|
9146
9354
|
if (vErrors === null) {
|
|
9147
|
-
vErrors = [
|
|
9355
|
+
vErrors = [err114];
|
|
9148
9356
|
} else {
|
|
9149
|
-
vErrors.push(
|
|
9357
|
+
vErrors.push(err114);
|
|
9150
9358
|
}
|
|
9151
9359
|
errors++;
|
|
9152
9360
|
}
|
|
@@ -9167,11 +9375,11 @@ function validate35(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
9167
9375
|
}
|
|
9168
9376
|
}
|
|
9169
9377
|
if (!valid24) {
|
|
9170
|
-
const
|
|
9378
|
+
const err115 = { instancePath: instancePath + "/scope/users/" + i8, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionRescopeResponse/anyOf/1/properties/scope/properties/users/items/oneOf", keyword: "oneOf", params: { passingSchemas: passing1 }, message: "must match exactly one schema in oneOf" };
|
|
9171
9379
|
if (vErrors === null) {
|
|
9172
|
-
vErrors = [
|
|
9380
|
+
vErrors = [err115];
|
|
9173
9381
|
} else {
|
|
9174
|
-
vErrors.push(
|
|
9382
|
+
vErrors.push(err115);
|
|
9175
9383
|
}
|
|
9176
9384
|
errors++;
|
|
9177
9385
|
} else {
|
|
@@ -9190,11 +9398,11 @@ function validate35(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
9190
9398
|
}
|
|
9191
9399
|
}
|
|
9192
9400
|
} else {
|
|
9193
|
-
const
|
|
9401
|
+
const err116 = { instancePath: instancePath + "/scope/users", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionRescopeResponse/anyOf/1/properties/scope/properties/users/type", keyword: "type", params: { type: "array" }, message: "must be array" };
|
|
9194
9402
|
if (vErrors === null) {
|
|
9195
|
-
vErrors = [
|
|
9403
|
+
vErrors = [err116];
|
|
9196
9404
|
} else {
|
|
9197
|
-
vErrors.push(
|
|
9405
|
+
vErrors.push(err116);
|
|
9198
9406
|
}
|
|
9199
9407
|
errors++;
|
|
9200
9408
|
}
|
|
@@ -9207,11 +9415,11 @@ function validate35(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
9207
9415
|
}
|
|
9208
9416
|
}
|
|
9209
9417
|
} else {
|
|
9210
|
-
const
|
|
9418
|
+
const err117 = { instancePath: instancePath + "/scope", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionRescopeResponse/anyOf/1/properties/scope/type", keyword: "type", params: { type: "object" }, message: "must be object" };
|
|
9211
9419
|
if (vErrors === null) {
|
|
9212
|
-
vErrors = [
|
|
9420
|
+
vErrors = [err117];
|
|
9213
9421
|
} else {
|
|
9214
|
-
vErrors.push(
|
|
9422
|
+
vErrors.push(err117);
|
|
9215
9423
|
}
|
|
9216
9424
|
errors++;
|
|
9217
9425
|
}
|
|
@@ -9231,11 +9439,11 @@ function validate35(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
9231
9439
|
for (let i9 = 0; i9 < len9; i9++) {
|
|
9232
9440
|
const _errs148 = errors;
|
|
9233
9441
|
if (typeof data54[i9] !== "string") {
|
|
9234
|
-
const
|
|
9442
|
+
const err118 = { instancePath: instancePath + "/scopeWarnings/" + i9, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionRescopeResponse/anyOf/1/properties/scopeWarnings/items/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
9235
9443
|
if (vErrors === null) {
|
|
9236
|
-
vErrors = [
|
|
9444
|
+
vErrors = [err118];
|
|
9237
9445
|
} else {
|
|
9238
|
-
vErrors.push(
|
|
9446
|
+
vErrors.push(err118);
|
|
9239
9447
|
}
|
|
9240
9448
|
errors++;
|
|
9241
9449
|
}
|
|
@@ -9245,11 +9453,11 @@ function validate35(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
9245
9453
|
}
|
|
9246
9454
|
}
|
|
9247
9455
|
} else {
|
|
9248
|
-
const
|
|
9456
|
+
const err119 = { instancePath: instancePath + "/scopeWarnings", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionRescopeResponse/anyOf/1/properties/scopeWarnings/type", keyword: "type", params: { type: "array" }, message: "must be array" };
|
|
9249
9457
|
if (vErrors === null) {
|
|
9250
|
-
vErrors = [
|
|
9458
|
+
vErrors = [err119];
|
|
9251
9459
|
} else {
|
|
9252
|
-
vErrors.push(
|
|
9460
|
+
vErrors.push(err119);
|
|
9253
9461
|
}
|
|
9254
9462
|
errors++;
|
|
9255
9463
|
}
|
|
@@ -9265,11 +9473,11 @@ function validate35(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
9265
9473
|
}
|
|
9266
9474
|
}
|
|
9267
9475
|
} else {
|
|
9268
|
-
const
|
|
9476
|
+
const err120 = { instancePath, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionRescopeResponse/anyOf/1/type", keyword: "type", params: { type: "object" }, message: "must be object" };
|
|
9269
9477
|
if (vErrors === null) {
|
|
9270
|
-
vErrors = [
|
|
9478
|
+
vErrors = [err120];
|
|
9271
9479
|
} else {
|
|
9272
|
-
vErrors.push(
|
|
9480
|
+
vErrors.push(err120);
|
|
9273
9481
|
}
|
|
9274
9482
|
errors++;
|
|
9275
9483
|
}
|
|
@@ -9282,11 +9490,11 @@ function validate35(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
9282
9490
|
}
|
|
9283
9491
|
}
|
|
9284
9492
|
if (!valid1) {
|
|
9285
|
-
const
|
|
9493
|
+
const err121 = { instancePath, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionRescopeResponse/anyOf", keyword: "anyOf", params: {}, message: "must match a schema in anyOf" };
|
|
9286
9494
|
if (vErrors === null) {
|
|
9287
|
-
vErrors = [
|
|
9495
|
+
vErrors = [err121];
|
|
9288
9496
|
} else {
|
|
9289
|
-
vErrors.push(
|
|
9497
|
+
vErrors.push(err121);
|
|
9290
9498
|
}
|
|
9291
9499
|
errors++;
|
|
9292
9500
|
validate35.errors = vErrors;
|
|
@@ -9306,7 +9514,7 @@ function validate35(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
9306
9514
|
return errors === 0;
|
|
9307
9515
|
}
|
|
9308
9516
|
validate35.evaluated = { "dynamicProps": true, "dynamicItems": false };
|
|
9309
|
-
var schema63 = { "anyOf": [{ "type": "object", "properties": { "outcome": { "type": "string", "const": "no_op" }, "stage": { "type": "string", "enum": ["draft", "provisional", "adopted", "superseded", "abandoned"] } }, "required": ["outcome", "stage"], "additionalProperties": {} }, { "type": "object", "properties": { "outcome": { "type": "string", "const": "ok" }, "decisionId": { "type": "string", "minLength": 1 }, "shortId": { "type": "string" }, "stage": { "type": "string", "enum": ["draft", "provisional", "adopted", "superseded", "abandoned"] } }, "required": ["outcome", "decisionId", "stage"], "additionalProperties": {} }] };
|
|
9517
|
+
var schema63 = { "anyOf": [{ "type": "object", "properties": { "outcome": { "type": "string", "const": "no_op" }, "stage": { "type": "string", "enum": ["draft", "provisional", "adopted", "superseded", "abandoned"] } }, "required": ["outcome", "stage"], "additionalProperties": {} }, { "type": "object", "properties": { "outcome": { "type": "string", "const": "ok" }, "decisionId": { "type": "string", "minLength": 1, "pattern": "^dec_[0-9a-f]{8}$", "description": "Canonical public Decision ID; internal Convex IDs are accepted only as legacy inputs." }, "shortId": { "type": "string", "pattern": "^[0-9a-f]{8}$" }, "stage": { "type": "string", "enum": ["draft", "provisional", "adopted", "superseded", "abandoned"] } }, "required": ["outcome", "decisionId", "stage"], "additionalProperties": {} }] };
|
|
9310
9518
|
function validate36(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
9311
9519
|
;
|
|
9312
9520
|
let vErrors = null;
|
|
@@ -9453,13 +9661,23 @@ function validate36(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
9453
9661
|
vErrors.push(err9);
|
|
9454
9662
|
}
|
|
9455
9663
|
errors++;
|
|
9664
|
+
} else {
|
|
9665
|
+
if (!pattern4.test(data3)) {
|
|
9666
|
+
const err10 = { instancePath: instancePath + "/decisionId", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionStageSuccessResponse/anyOf/1/properties/decisionId/pattern", keyword: "pattern", params: { pattern: "^dec_[0-9a-f]{8}$" }, message: 'must match pattern "^dec_[0-9a-f]{8}$"' };
|
|
9667
|
+
if (vErrors === null) {
|
|
9668
|
+
vErrors = [err10];
|
|
9669
|
+
} else {
|
|
9670
|
+
vErrors.push(err10);
|
|
9671
|
+
}
|
|
9672
|
+
errors++;
|
|
9673
|
+
}
|
|
9456
9674
|
}
|
|
9457
9675
|
} else {
|
|
9458
|
-
const
|
|
9676
|
+
const err11 = { instancePath: instancePath + "/decisionId", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionStageSuccessResponse/anyOf/1/properties/decisionId/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
9459
9677
|
if (vErrors === null) {
|
|
9460
|
-
vErrors = [
|
|
9678
|
+
vErrors = [err11];
|
|
9461
9679
|
} else {
|
|
9462
|
-
vErrors.push(
|
|
9680
|
+
vErrors.push(err11);
|
|
9463
9681
|
}
|
|
9464
9682
|
errors++;
|
|
9465
9683
|
}
|
|
@@ -9470,15 +9688,28 @@ function validate36(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
9470
9688
|
}
|
|
9471
9689
|
if (valid3) {
|
|
9472
9690
|
if (data.shortId !== void 0) {
|
|
9691
|
+
let data4 = data.shortId;
|
|
9473
9692
|
const _errs16 = errors;
|
|
9474
|
-
if (
|
|
9475
|
-
|
|
9476
|
-
|
|
9477
|
-
|
|
9693
|
+
if (errors === _errs16) {
|
|
9694
|
+
if (typeof data4 === "string") {
|
|
9695
|
+
if (!pattern5.test(data4)) {
|
|
9696
|
+
const err12 = { instancePath: instancePath + "/shortId", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionStageSuccessResponse/anyOf/1/properties/shortId/pattern", keyword: "pattern", params: { pattern: "^[0-9a-f]{8}$" }, message: 'must match pattern "^[0-9a-f]{8}$"' };
|
|
9697
|
+
if (vErrors === null) {
|
|
9698
|
+
vErrors = [err12];
|
|
9699
|
+
} else {
|
|
9700
|
+
vErrors.push(err12);
|
|
9701
|
+
}
|
|
9702
|
+
errors++;
|
|
9703
|
+
}
|
|
9478
9704
|
} else {
|
|
9479
|
-
|
|
9705
|
+
const err13 = { instancePath: instancePath + "/shortId", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionStageSuccessResponse/anyOf/1/properties/shortId/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
9706
|
+
if (vErrors === null) {
|
|
9707
|
+
vErrors = [err13];
|
|
9708
|
+
} else {
|
|
9709
|
+
vErrors.push(err13);
|
|
9710
|
+
}
|
|
9711
|
+
errors++;
|
|
9480
9712
|
}
|
|
9481
|
-
errors++;
|
|
9482
9713
|
}
|
|
9483
9714
|
var valid3 = _errs16 === errors;
|
|
9484
9715
|
} else {
|
|
@@ -9489,20 +9720,20 @@ function validate36(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
9489
9720
|
let data5 = data.stage;
|
|
9490
9721
|
const _errs18 = errors;
|
|
9491
9722
|
if (typeof data5 !== "string") {
|
|
9492
|
-
const
|
|
9723
|
+
const err14 = { instancePath: instancePath + "/stage", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionStageSuccessResponse/anyOf/1/properties/stage/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
9493
9724
|
if (vErrors === null) {
|
|
9494
|
-
vErrors = [
|
|
9725
|
+
vErrors = [err14];
|
|
9495
9726
|
} else {
|
|
9496
|
-
vErrors.push(
|
|
9727
|
+
vErrors.push(err14);
|
|
9497
9728
|
}
|
|
9498
9729
|
errors++;
|
|
9499
9730
|
}
|
|
9500
9731
|
if (!(data5 === "draft" || data5 === "provisional" || data5 === "adopted" || data5 === "superseded" || data5 === "abandoned")) {
|
|
9501
|
-
const
|
|
9732
|
+
const err15 = { instancePath: instancePath + "/stage", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionStageSuccessResponse/anyOf/1/properties/stage/enum", keyword: "enum", params: { allowedValues: schema63.anyOf[1].properties.stage.enum }, message: "must be equal to one of the allowed values" };
|
|
9502
9733
|
if (vErrors === null) {
|
|
9503
|
-
vErrors = [
|
|
9734
|
+
vErrors = [err15];
|
|
9504
9735
|
} else {
|
|
9505
|
-
vErrors.push(
|
|
9736
|
+
vErrors.push(err15);
|
|
9506
9737
|
}
|
|
9507
9738
|
errors++;
|
|
9508
9739
|
}
|
|
@@ -9515,11 +9746,11 @@ function validate36(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
9515
9746
|
}
|
|
9516
9747
|
}
|
|
9517
9748
|
} else {
|
|
9518
|
-
const
|
|
9749
|
+
const err16 = { instancePath, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionStageSuccessResponse/anyOf/1/type", keyword: "type", params: { type: "object" }, message: "must be object" };
|
|
9519
9750
|
if (vErrors === null) {
|
|
9520
|
-
vErrors = [
|
|
9751
|
+
vErrors = [err16];
|
|
9521
9752
|
} else {
|
|
9522
|
-
vErrors.push(
|
|
9753
|
+
vErrors.push(err16);
|
|
9523
9754
|
}
|
|
9524
9755
|
errors++;
|
|
9525
9756
|
}
|
|
@@ -9532,11 +9763,11 @@ function validate36(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
9532
9763
|
}
|
|
9533
9764
|
}
|
|
9534
9765
|
if (!valid1) {
|
|
9535
|
-
const
|
|
9766
|
+
const err17 = { instancePath, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionStageSuccessResponse/anyOf", keyword: "anyOf", params: {}, message: "must match a schema in anyOf" };
|
|
9536
9767
|
if (vErrors === null) {
|
|
9537
|
-
vErrors = [
|
|
9768
|
+
vErrors = [err17];
|
|
9538
9769
|
} else {
|
|
9539
|
-
vErrors.push(
|
|
9770
|
+
vErrors.push(err17);
|
|
9540
9771
|
}
|
|
9541
9772
|
errors++;
|
|
9542
9773
|
validate36.errors = vErrors;
|
|
@@ -9607,7 +9838,7 @@ function validate37(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
9607
9838
|
return errors === 0;
|
|
9608
9839
|
}
|
|
9609
9840
|
validate37.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
|
|
9610
|
-
var schema67 = { "type": "object", "properties": { "decisions": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "minLength": 1 }, "intent": { "type": "string" }, "rationale": { "type": "string" }, "status": { "type": "string", "enum": ["active", "under_review"] }, "classifiedAt": { "type": "number" }, "matchedFiles": { "type": "array", "items": { "type": "string" } } }, "required": ["id", "intent", "status", "classifiedAt", "matchedFiles"], "additionalProperties": {} } }, "truncated": { "type": "boolean" }, "repoSyncId": { "type": "string" }, "unavailable": { "type": "string" } }, "required": ["decisions", "truncated"], "additionalProperties": {} };
|
|
9841
|
+
var schema67 = { "type": "object", "properties": { "decisions": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "minLength": 1, "pattern": "^dec_[0-9a-f]{8}$", "description": "Canonical public Decision ID; internal Convex IDs are accepted only as legacy inputs." }, "intent": { "type": "string" }, "rationale": { "type": "string" }, "status": { "type": "string", "enum": ["active", "under_review"] }, "classifiedAt": { "type": "number" }, "matchedFiles": { "type": "array", "items": { "type": "string" } } }, "required": ["id", "intent", "status", "classifiedAt", "matchedFiles"], "additionalProperties": {} } }, "truncated": { "type": "boolean" }, "repoSyncId": { "type": "string" }, "unavailable": { "type": "string" } }, "required": ["decisions", "truncated"], "additionalProperties": {} };
|
|
9611
9842
|
function validate38(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
9612
9843
|
;
|
|
9613
9844
|
let vErrors = null;
|
|
@@ -9652,6 +9883,11 @@ function validate38(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
9652
9883
|
if (func1(data2) < 1) {
|
|
9653
9884
|
validate38.errors = [{ instancePath: instancePath + "/decisions/" + i0 + "/id", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionsAffectingResponse/properties/decisions/items/properties/id/minLength", keyword: "minLength", params: { limit: 1 }, message: "must NOT have fewer than 1 characters" }];
|
|
9654
9885
|
return false;
|
|
9886
|
+
} else {
|
|
9887
|
+
if (!pattern4.test(data2)) {
|
|
9888
|
+
validate38.errors = [{ instancePath: instancePath + "/decisions/" + i0 + "/id", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionsAffectingResponse/properties/decisions/items/properties/id/pattern", keyword: "pattern", params: { pattern: "^dec_[0-9a-f]{8}$" }, message: 'must match pattern "^dec_[0-9a-f]{8}$"' }];
|
|
9889
|
+
return false;
|
|
9890
|
+
}
|
|
9655
9891
|
}
|
|
9656
9892
|
} else {
|
|
9657
9893
|
validate38.errors = [{ instancePath: instancePath + "/decisions/" + i0 + "/id", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionsAffectingResponse/properties/decisions/items/properties/id/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
@@ -9811,7 +10047,7 @@ function validate38(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
9811
10047
|
return errors === 0;
|
|
9812
10048
|
}
|
|
9813
10049
|
validate38.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
|
|
9814
|
-
var schema69 = { "type": "object", "properties": { "decisions": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "minLength": 1 }, "shortId": { "type": "string" }, "intent": { "type": "string" }, "rationale": { "type": "string" }, "area": { "type": "string" }, "producerKind": { "type": "string" }, "isDecision": { "type": "boolean" }, "userId": { "type": "string" }, "authorName": { "type": "string" }, "authorIsSelf": { "type": "boolean" }, "classifiedAt": { "type": "number" }, "status": { "type": "string", "enum": ["active", "superseded", "under_review"] }, "stage": { "type": "string", "enum": ["draft", "provisional", "adopted", "superseded", "abandoned"] } }, "required": ["id", "intent", "userId", "authorName", "authorIsSelf", "classifiedAt", "status", "stage"], "additionalProperties": {} } }, "viewerHasDecisions": { "type": "boolean" }, "author": { "type": "object", "properties": { "userId": { "type": "string" }, "name": { "type": "string" } }, "required": ["userId", "name"], "additionalProperties": {} }, "authorHasDecisions": { "type": "boolean" }, "windowTotal": { "type": "integer", "minimum": 0, "maximum": 9007199254740991 }, "windowTotalCapped": { "type": "boolean" }, "continueCursor": { "type": "string", "minLength": 1, "maxLength": 4096 }, "isDone": { "type": "boolean" }, "unavailable": { "type": "string" } }, "required": ["decisions"], "additionalProperties": {}, "x-primitive-runtime-refinements": ["recent_response_variant"] };
|
|
10050
|
+
var schema69 = { "type": "object", "properties": { "decisions": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "minLength": 1, "pattern": "^dec_[0-9a-f]{8}$", "description": "Canonical public Decision ID; internal Convex IDs are accepted only as legacy inputs." }, "shortId": { "type": "string", "pattern": "^[0-9a-f]{8}$" }, "intent": { "type": "string" }, "rationale": { "type": "string" }, "area": { "type": "string" }, "producerKind": { "type": "string" }, "isDecision": { "type": "boolean" }, "userId": { "type": "string" }, "authorName": { "type": "string" }, "authorIsSelf": { "type": "boolean" }, "classifiedAt": { "type": "number" }, "status": { "type": "string", "enum": ["active", "superseded", "under_review"] }, "stage": { "type": "string", "enum": ["draft", "provisional", "adopted", "superseded", "abandoned"] } }, "required": ["id", "intent", "userId", "authorName", "authorIsSelf", "classifiedAt", "status", "stage"], "additionalProperties": {} } }, "viewerHasDecisions": { "type": "boolean" }, "author": { "type": "object", "properties": { "userId": { "type": "string" }, "name": { "type": "string" } }, "required": ["userId", "name"], "additionalProperties": {} }, "authorHasDecisions": { "type": "boolean" }, "windowTotal": { "type": "integer", "minimum": 0, "maximum": 9007199254740991 }, "windowTotalCapped": { "type": "boolean" }, "continueCursor": { "type": "string", "minLength": 1, "maxLength": 4096 }, "isDone": { "type": "boolean" }, "unavailable": { "type": "string" } }, "required": ["decisions"], "additionalProperties": {}, "x-primitive-runtime-refinements": ["recent_response_variant"] };
|
|
9815
10051
|
function validate39(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
9816
10052
|
;
|
|
9817
10053
|
let vErrors = null;
|
|
@@ -9856,6 +10092,11 @@ function validate39(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
9856
10092
|
if (func1(data2) < 1) {
|
|
9857
10093
|
validate39.errors = [{ instancePath: instancePath + "/decisions/" + i0 + "/id", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionsRecentResponse/properties/decisions/items/properties/id/minLength", keyword: "minLength", params: { limit: 1 }, message: "must NOT have fewer than 1 characters" }];
|
|
9858
10094
|
return false;
|
|
10095
|
+
} else {
|
|
10096
|
+
if (!pattern4.test(data2)) {
|
|
10097
|
+
validate39.errors = [{ instancePath: instancePath + "/decisions/" + i0 + "/id", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionsRecentResponse/properties/decisions/items/properties/id/pattern", keyword: "pattern", params: { pattern: "^dec_[0-9a-f]{8}$" }, message: 'must match pattern "^dec_[0-9a-f]{8}$"' }];
|
|
10098
|
+
return false;
|
|
10099
|
+
}
|
|
9859
10100
|
}
|
|
9860
10101
|
} else {
|
|
9861
10102
|
validate39.errors = [{ instancePath: instancePath + "/decisions/" + i0 + "/id", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionsRecentResponse/properties/decisions/items/properties/id/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
@@ -9868,10 +10109,18 @@ function validate39(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
9868
10109
|
}
|
|
9869
10110
|
if (valid3) {
|
|
9870
10111
|
if (data1.shortId !== void 0) {
|
|
10112
|
+
let data3 = data1.shortId;
|
|
9871
10113
|
const _errs11 = errors;
|
|
9872
|
-
if (
|
|
9873
|
-
|
|
9874
|
-
|
|
10114
|
+
if (errors === _errs11) {
|
|
10115
|
+
if (typeof data3 === "string") {
|
|
10116
|
+
if (!pattern5.test(data3)) {
|
|
10117
|
+
validate39.errors = [{ instancePath: instancePath + "/decisions/" + i0 + "/shortId", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionsRecentResponse/properties/decisions/items/properties/shortId/pattern", keyword: "pattern", params: { pattern: "^[0-9a-f]{8}$" }, message: 'must match pattern "^[0-9a-f]{8}$"' }];
|
|
10118
|
+
return false;
|
|
10119
|
+
}
|
|
10120
|
+
} else {
|
|
10121
|
+
validate39.errors = [{ instancePath: instancePath + "/decisions/" + i0 + "/shortId", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionsRecentResponse/properties/decisions/items/properties/shortId/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
10122
|
+
return false;
|
|
10123
|
+
}
|
|
9875
10124
|
}
|
|
9876
10125
|
var valid3 = _errs11 === errors;
|
|
9877
10126
|
} else {
|
|
@@ -10206,8 +10455,8 @@ function validate39(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
10206
10455
|
return errors === 0;
|
|
10207
10456
|
}
|
|
10208
10457
|
validate39.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
|
|
10209
|
-
var
|
|
10210
|
-
var
|
|
10458
|
+
var pattern34 = new RegExp("^[a-zA-Z0-9]{1,64}$", "u");
|
|
10459
|
+
var pattern35 = new RegExp("^[a-f0-9]{64}$", "u");
|
|
10211
10460
|
function validate40(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
10212
10461
|
;
|
|
10213
10462
|
let vErrors = null;
|
|
@@ -10241,7 +10490,7 @@ function validate40(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
10241
10490
|
const _errs3 = errors;
|
|
10242
10491
|
if (errors === _errs3) {
|
|
10243
10492
|
if (typeof data0 === "string") {
|
|
10244
|
-
if (!
|
|
10493
|
+
if (!pattern34.test(data0)) {
|
|
10245
10494
|
validate40.errors = [{ instancePath: instancePath + "/runId", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DemoCompleteRequest/properties/runId/pattern", keyword: "pattern", params: { pattern: "^[a-zA-Z0-9]{1,64}$" }, message: 'must match pattern "^[a-zA-Z0-9]{1,64}$"' }];
|
|
10246
10495
|
return false;
|
|
10247
10496
|
}
|
|
@@ -10285,7 +10534,7 @@ function validate40(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
10285
10534
|
const _errs7 = errors;
|
|
10286
10535
|
if (errors === _errs7) {
|
|
10287
10536
|
if (typeof data2 === "string") {
|
|
10288
|
-
if (!
|
|
10537
|
+
if (!pattern35.test(data2)) {
|
|
10289
10538
|
validate40.errors = [{ instancePath: instancePath + "/appliedDigest", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DemoCompleteRequest/properties/appliedDigest/pattern", keyword: "pattern", params: { pattern: "^[a-f0-9]{64}$" }, message: 'must match pattern "^[a-f0-9]{64}$"' }];
|
|
10290
10539
|
return false;
|
|
10291
10540
|
}
|
|
@@ -10311,7 +10560,7 @@ function validate40(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
10311
10560
|
return errors === 0;
|
|
10312
10561
|
}
|
|
10313
10562
|
validate40.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
|
|
10314
|
-
var
|
|
10563
|
+
var pattern38 = new RegExp("\\S", "u");
|
|
10315
10564
|
function validate41(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
10316
10565
|
;
|
|
10317
10566
|
let vErrors = null;
|
|
@@ -10358,7 +10607,7 @@ function validate41(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
10358
10607
|
const _errs5 = errors;
|
|
10359
10608
|
if (errors === _errs5) {
|
|
10360
10609
|
if (typeof data0 === "string") {
|
|
10361
|
-
if (!
|
|
10610
|
+
if (!pattern34.test(data0)) {
|
|
10362
10611
|
const err2 = { instancePath: instancePath + "/runId", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DemoResolveRequest/oneOf/0/properties/runId/pattern", keyword: "pattern", params: { pattern: "^[a-zA-Z0-9]{1,64}$" }, message: 'must match pattern "^[a-zA-Z0-9]{1,64}$"' };
|
|
10363
10612
|
if (vErrors === null) {
|
|
10364
10613
|
vErrors = [err2];
|
|
@@ -10499,7 +10748,7 @@ function validate41(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
10499
10748
|
const _errs14 = errors;
|
|
10500
10749
|
if (errors === _errs14) {
|
|
10501
10750
|
if (typeof data3 === "string") {
|
|
10502
|
-
if (!
|
|
10751
|
+
if (!pattern34.test(data3)) {
|
|
10503
10752
|
const err12 = { instancePath: instancePath + "/runId", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DemoResolveRequest/oneOf/1/properties/runId/pattern", keyword: "pattern", params: { pattern: "^[a-zA-Z0-9]{1,64}$" }, message: 'must match pattern "^[a-zA-Z0-9]{1,64}$"' };
|
|
10504
10753
|
if (vErrors === null) {
|
|
10505
10754
|
vErrors = [err12];
|
|
@@ -10612,7 +10861,7 @@ function validate41(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
10612
10861
|
}
|
|
10613
10862
|
errors++;
|
|
10614
10863
|
} else {
|
|
10615
|
-
if (!
|
|
10864
|
+
if (!pattern38.test(data6)) {
|
|
10616
10865
|
const err21 = { instancePath: instancePath + "/reason", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DemoResolveRequest/oneOf/1/properties/reason/pattern", keyword: "pattern", params: { pattern: "\\S" }, message: 'must match pattern "\\S"' };
|
|
10617
10866
|
if (vErrors === null) {
|
|
10618
10867
|
vErrors = [err21];
|
|
@@ -10723,7 +10972,7 @@ function validate42(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
10723
10972
|
const _errs3 = errors;
|
|
10724
10973
|
if (errors === _errs3) {
|
|
10725
10974
|
if (typeof data0 === "string") {
|
|
10726
|
-
if (!
|
|
10975
|
+
if (!pattern34.test(data0)) {
|
|
10727
10976
|
validate42.errors = [{ instancePath: instancePath + "/runId", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DemoRunRequest/properties/runId/pattern", keyword: "pattern", params: { pattern: "^[a-zA-Z0-9]{1,64}$" }, message: 'must match pattern "^[a-zA-Z0-9]{1,64}$"' }];
|
|
10728
10977
|
return false;
|
|
10729
10978
|
}
|
|
@@ -10773,7 +11022,7 @@ function validate42(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
10773
11022
|
return errors === 0;
|
|
10774
11023
|
}
|
|
10775
11024
|
validate42.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
|
|
10776
|
-
var
|
|
11025
|
+
var pattern40 = new RegExp("^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$", "u");
|
|
10777
11026
|
function validate43(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
10778
11027
|
;
|
|
10779
11028
|
let vErrors = null;
|
|
@@ -10824,7 +11073,7 @@ function validate43(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
10824
11073
|
if (errors === _errs5) {
|
|
10825
11074
|
if (errors === _errs5) {
|
|
10826
11075
|
if (typeof data1 === "string") {
|
|
10827
|
-
if (!
|
|
11076
|
+
if (!pattern40.test(data1)) {
|
|
10828
11077
|
validate43.errors = [{ instancePath: instancePath + "/localRunId", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DemoStartRequest/properties/localRunId/pattern", keyword: "pattern", params: { pattern: "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$" }, message: 'must match pattern "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"' }];
|
|
10829
11078
|
return false;
|
|
10830
11079
|
}
|
|
@@ -10852,7 +11101,7 @@ function validate43(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
10852
11101
|
validate43.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
|
|
10853
11102
|
var schema79 = { "type": "object", "properties": { "scenarioVersion": { "type": "number", "const": 1 }, "fictional": { "type": "boolean", "const": true }, "evaluation": { "type": "string", "const": "live" }, "runId": { "type": "string", "pattern": "^[a-zA-Z0-9]{1,64}$" }, "revision": { "type": "integer", "minimum": 0, "maximum": 9007199254740991 }, "stage": { "type": "string", "enum": ["ready", "checking", "blocked", "approved", "completed", "skipped", "expired"] }, "authorName": { "type": "string", "maxLength": 200 }, "story": { "type": "object", "properties": { "orgName": { "type": "string", "maxLength": 200 }, "recipient": { "type": "string", "format": "email", "pattern": "^(?!\\.)(?!.*\\.\\.)([A-Za-z0-9_'+\\-\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$" }, "decisionDate": { "type": "string", "maxLength": 100 } }, "required": ["orgName", "recipient", "decisionDate"], "additionalProperties": false }, "email": { "type": "string", "enum": ["not_queued", "queued", "accepted", "failed", "suppressed"] }, "verdict": { "type": "string", "enum": ["block", "pass", "pending"] }, "reasonCode": { "type": "string", "maxLength": 100 }, "choice": { "type": "string", "enum": ["adhere", "supersede"] }, "reason": { "type": "string", "maxLength": 500 }, "approvedDigest": { "type": "string", "pattern": "^[a-f0-9]{64}$" } }, "required": ["scenarioVersion", "fictional", "evaluation", "runId", "revision", "stage", "authorName", "story", "email"], "additionalProperties": false };
|
|
10854
11103
|
var func34 = Object.prototype.hasOwnProperty;
|
|
10855
|
-
var
|
|
11104
|
+
var pattern42 = new RegExp("^(?!\\.)(?!.*\\.\\.)([A-Za-z0-9_'+\\-\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$", "u");
|
|
10856
11105
|
function validate44(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
10857
11106
|
;
|
|
10858
11107
|
let vErrors = null;
|
|
@@ -10934,7 +11183,7 @@ function validate44(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
10934
11183
|
const _errs9 = errors;
|
|
10935
11184
|
if (errors === _errs9) {
|
|
10936
11185
|
if (typeof data3 === "string") {
|
|
10937
|
-
if (!
|
|
11186
|
+
if (!pattern34.test(data3)) {
|
|
10938
11187
|
validate44.errors = [{ instancePath: instancePath + "/runId", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DemoStatusResponse/properties/runId/pattern", keyword: "pattern", params: { pattern: "^[a-zA-Z0-9]{1,64}$" }, message: 'must match pattern "^[a-zA-Z0-9]{1,64}$"' }];
|
|
10939
11188
|
return false;
|
|
10940
11189
|
}
|
|
@@ -11052,7 +11301,7 @@ function validate44(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
11052
11301
|
if (errors === _errs22) {
|
|
11053
11302
|
if (errors === _errs22) {
|
|
11054
11303
|
if (typeof data9 === "string") {
|
|
11055
|
-
if (!
|
|
11304
|
+
if (!pattern42.test(data9)) {
|
|
11056
11305
|
validate44.errors = [{ instancePath: instancePath + "/story/recipient", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DemoStatusResponse/properties/story/properties/recipient/pattern", keyword: "pattern", params: { pattern: "^(?!\\.)(?!.*\\.\\.)([A-Za-z0-9_'+\\-\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$" }, message: `must match pattern "^(?!\\.)(?!.*\\.\\.)([A-Za-z0-9_'+\\-\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"` }];
|
|
11057
11306
|
return false;
|
|
11058
11307
|
}
|
|
@@ -11190,7 +11439,7 @@ function validate44(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
11190
11439
|
const _errs36 = errors;
|
|
11191
11440
|
if (errors === _errs36) {
|
|
11192
11441
|
if (typeof data16 === "string") {
|
|
11193
|
-
if (!
|
|
11442
|
+
if (!pattern35.test(data16)) {
|
|
11194
11443
|
validate44.errors = [{ instancePath: instancePath + "/approvedDigest", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DemoStatusResponse/properties/approvedDigest/pattern", keyword: "pattern", params: { pattern: "^[a-f0-9]{64}$" }, message: 'must match pattern "^[a-f0-9]{64}$"' }];
|
|
11195
11444
|
return false;
|
|
11196
11445
|
}
|
|
@@ -11393,15 +11642,28 @@ function validate45(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
11393
11642
|
}
|
|
11394
11643
|
if (valid3) {
|
|
11395
11644
|
if (data3.decisionId !== void 0) {
|
|
11645
|
+
let data8 = data3.decisionId;
|
|
11396
11646
|
const _errs22 = errors;
|
|
11397
|
-
if (
|
|
11398
|
-
|
|
11399
|
-
|
|
11400
|
-
|
|
11647
|
+
if (errors === _errs22) {
|
|
11648
|
+
if (typeof data8 === "string") {
|
|
11649
|
+
if (!pattern4.test(data8)) {
|
|
11650
|
+
const err6 = { instancePath: instancePath + "/verdictFooter/decisionId", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DurableMoveIngestResponse/properties/verdictFooter/anyOf/0/properties/decisionId/pattern", keyword: "pattern", params: { pattern: "^dec_[0-9a-f]{8}$" }, message: 'must match pattern "^dec_[0-9a-f]{8}$"' };
|
|
11651
|
+
if (vErrors === null) {
|
|
11652
|
+
vErrors = [err6];
|
|
11653
|
+
} else {
|
|
11654
|
+
vErrors.push(err6);
|
|
11655
|
+
}
|
|
11656
|
+
errors++;
|
|
11657
|
+
}
|
|
11401
11658
|
} else {
|
|
11402
|
-
|
|
11659
|
+
const err7 = { instancePath: instancePath + "/verdictFooter/decisionId", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DurableMoveIngestResponse/properties/verdictFooter/anyOf/0/properties/decisionId/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
11660
|
+
if (vErrors === null) {
|
|
11661
|
+
vErrors = [err7];
|
|
11662
|
+
} else {
|
|
11663
|
+
vErrors.push(err7);
|
|
11664
|
+
}
|
|
11665
|
+
errors++;
|
|
11403
11666
|
}
|
|
11404
|
-
errors++;
|
|
11405
11667
|
}
|
|
11406
11668
|
var valid3 = _errs22 === errors;
|
|
11407
11669
|
} else {
|
|
@@ -11409,15 +11671,28 @@ function validate45(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
11409
11671
|
}
|
|
11410
11672
|
if (valid3) {
|
|
11411
11673
|
if (data3.decisionShortId !== void 0) {
|
|
11674
|
+
let data9 = data3.decisionShortId;
|
|
11412
11675
|
const _errs24 = errors;
|
|
11413
|
-
if (
|
|
11414
|
-
|
|
11415
|
-
|
|
11416
|
-
|
|
11676
|
+
if (errors === _errs24) {
|
|
11677
|
+
if (typeof data9 === "string") {
|
|
11678
|
+
if (!pattern5.test(data9)) {
|
|
11679
|
+
const err8 = { instancePath: instancePath + "/verdictFooter/decisionShortId", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DurableMoveIngestResponse/properties/verdictFooter/anyOf/0/properties/decisionShortId/pattern", keyword: "pattern", params: { pattern: "^[0-9a-f]{8}$" }, message: 'must match pattern "^[0-9a-f]{8}$"' };
|
|
11680
|
+
if (vErrors === null) {
|
|
11681
|
+
vErrors = [err8];
|
|
11682
|
+
} else {
|
|
11683
|
+
vErrors.push(err8);
|
|
11684
|
+
}
|
|
11685
|
+
errors++;
|
|
11686
|
+
}
|
|
11417
11687
|
} else {
|
|
11418
|
-
|
|
11688
|
+
const err9 = { instancePath: instancePath + "/verdictFooter/decisionShortId", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DurableMoveIngestResponse/properties/verdictFooter/anyOf/0/properties/decisionShortId/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
11689
|
+
if (vErrors === null) {
|
|
11690
|
+
vErrors = [err9];
|
|
11691
|
+
} else {
|
|
11692
|
+
vErrors.push(err9);
|
|
11693
|
+
}
|
|
11694
|
+
errors++;
|
|
11419
11695
|
}
|
|
11420
|
-
errors++;
|
|
11421
11696
|
}
|
|
11422
11697
|
var valid3 = _errs24 === errors;
|
|
11423
11698
|
} else {
|
|
@@ -11431,11 +11706,11 @@ function validate45(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
11431
11706
|
}
|
|
11432
11707
|
}
|
|
11433
11708
|
} else {
|
|
11434
|
-
const
|
|
11709
|
+
const err10 = { instancePath: instancePath + "/verdictFooter", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DurableMoveIngestResponse/properties/verdictFooter/anyOf/0/type", keyword: "type", params: { type: "object" }, message: "must be object" };
|
|
11435
11710
|
if (vErrors === null) {
|
|
11436
|
-
vErrors = [
|
|
11711
|
+
vErrors = [err10];
|
|
11437
11712
|
} else {
|
|
11438
|
-
vErrors.push(
|
|
11713
|
+
vErrors.push(err10);
|
|
11439
11714
|
}
|
|
11440
11715
|
errors++;
|
|
11441
11716
|
}
|
|
@@ -11444,22 +11719,22 @@ function validate45(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
11444
11719
|
valid2 = valid2 || _valid0;
|
|
11445
11720
|
const _errs26 = errors;
|
|
11446
11721
|
if (data3 !== null) {
|
|
11447
|
-
const
|
|
11722
|
+
const err11 = { instancePath: instancePath + "/verdictFooter", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DurableMoveIngestResponse/properties/verdictFooter/anyOf/1/type", keyword: "type", params: { type: "null" }, message: "must be null" };
|
|
11448
11723
|
if (vErrors === null) {
|
|
11449
|
-
vErrors = [
|
|
11724
|
+
vErrors = [err11];
|
|
11450
11725
|
} else {
|
|
11451
|
-
vErrors.push(
|
|
11726
|
+
vErrors.push(err11);
|
|
11452
11727
|
}
|
|
11453
11728
|
errors++;
|
|
11454
11729
|
}
|
|
11455
11730
|
var _valid0 = _errs26 === errors;
|
|
11456
11731
|
valid2 = valid2 || _valid0;
|
|
11457
11732
|
if (!valid2) {
|
|
11458
|
-
const
|
|
11733
|
+
const err12 = { instancePath: instancePath + "/verdictFooter", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DurableMoveIngestResponse/properties/verdictFooter/anyOf", keyword: "anyOf", params: {}, message: "must match a schema in anyOf" };
|
|
11459
11734
|
if (vErrors === null) {
|
|
11460
|
-
vErrors = [
|
|
11735
|
+
vErrors = [err12];
|
|
11461
11736
|
} else {
|
|
11462
|
-
vErrors.push(
|
|
11737
|
+
vErrors.push(err12);
|
|
11463
11738
|
}
|
|
11464
11739
|
errors++;
|
|
11465
11740
|
validate45.errors = vErrors;
|
|
@@ -12093,8 +12368,7 @@ function validate48(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
12093
12368
|
return errors === 0;
|
|
12094
12369
|
}
|
|
12095
12370
|
validate48.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
|
|
12096
|
-
var schema89 = { "anyOf": [{ "type": "object", "properties": { "protocolVersion": { "type": "integer", "minimum": 1, "maximum": 2 }, "status": { "type": "string", "const": "empty" }, "hasMore": { "type": "boolean", "const": false } }, "required": ["protocolVersion", "status", "hasMore"], "additionalProperties": {} }, { "type": "object", "properties": { "protocolVersion": { "type": "integer", "minimum": 1, "maximum": 2 }, "status": { "type": "string", "const": "leased" }, "events": { "minItems": 1, "maxItems": 40, "type": "array", "items": { "type": "object", "properties": { "eventId": { "type": "string", "minLength": 1, "maxLength": 128 }, "leaseVersion": { "type": "integer", "minimum": 1, "maximum": 9007199254740991 }, "shortId": { "type": "string", "pattern": "^[0-9a-f]{8}$" }, "decisionId": { "type": "string", "minLength": 1, "maxLength": 128 }, "intent": { "type": "string" }, "webUrl": { "type": "string" }, "kind": { "type": "string", "enum": ["confirm_prompt", "publish_prompt"] } }, "required": ["eventId", "leaseVersion", "shortId", "intent", "webUrl"], "additionalProperties": {} } }, "hasMore": { "type": "boolean" } }, "required": ["protocolVersion", "status", "events", "hasMore"], "additionalProperties": {} }, { "type": "object", "properties": { "protocolVersion": { "type": "integer", "minimum": 1, "maximum": 2 }, "status": { "type": "string", "const": "unavailable" }, "reason": { "type": "string", "const": "organization_unbound" } }, "required": ["protocolVersion", "status", "reason"], "additionalProperties": {} }], "x-primitive-runtime-refinements": ["feedback_response_version_negotiation", "feedback_publish_prompt_decision_id", "unique_feedback_event_ids"] };
|
|
12097
|
-
var pattern14 = new RegExp("^[0-9a-f]{8}$", "u");
|
|
12371
|
+
var schema89 = { "anyOf": [{ "type": "object", "properties": { "protocolVersion": { "type": "integer", "minimum": 1, "maximum": 2 }, "status": { "type": "string", "const": "empty" }, "hasMore": { "type": "boolean", "const": false } }, "required": ["protocolVersion", "status", "hasMore"], "additionalProperties": {} }, { "type": "object", "properties": { "protocolVersion": { "type": "integer", "minimum": 1, "maximum": 2 }, "status": { "type": "string", "const": "leased" }, "events": { "minItems": 1, "maxItems": 40, "type": "array", "items": { "type": "object", "properties": { "eventId": { "type": "string", "minLength": 1, "maxLength": 128 }, "leaseVersion": { "type": "integer", "minimum": 1, "maximum": 9007199254740991 }, "shortId": { "type": "string", "pattern": "^[0-9a-f]{8}$" }, "decisionId": { "type": "string", "minLength": 1, "maxLength": 128, "pattern": "^dec_[0-9a-f]{8}$", "description": "Canonical public Decision ID; internal Convex IDs are accepted only as legacy inputs." }, "intent": { "type": "string" }, "webUrl": { "type": "string" }, "kind": { "type": "string", "enum": ["confirm_prompt", "publish_prompt"] } }, "required": ["eventId", "leaseVersion", "shortId", "intent", "webUrl"], "additionalProperties": {} } }, "hasMore": { "type": "boolean" } }, "required": ["protocolVersion", "status", "events", "hasMore"], "additionalProperties": {} }, { "type": "object", "properties": { "protocolVersion": { "type": "integer", "minimum": 1, "maximum": 2 }, "status": { "type": "string", "const": "unavailable" }, "reason": { "type": "string", "const": "organization_unbound" } }, "required": ["protocolVersion", "status", "reason"], "additionalProperties": {} }], "x-primitive-runtime-refinements": ["feedback_response_version_negotiation", "feedback_publish_prompt_decision_id", "unique_feedback_event_ids"] };
|
|
12098
12372
|
function validate49(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
12099
12373
|
;
|
|
12100
12374
|
let vErrors = null;
|
|
@@ -12433,7 +12707,7 @@ function validate49(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
12433
12707
|
const _errs27 = errors;
|
|
12434
12708
|
if (errors === _errs27) {
|
|
12435
12709
|
if (typeof data9 === "string") {
|
|
12436
|
-
if (!
|
|
12710
|
+
if (!pattern5.test(data9)) {
|
|
12437
12711
|
const err24 = { instancePath: instancePath + "/events/" + i0 + "/shortId", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/FeedbackLeaseResponse/anyOf/1/properties/events/items/properties/shortId/pattern", keyword: "pattern", params: { pattern: "^[0-9a-f]{8}$" }, message: 'must match pattern "^[0-9a-f]{8}$"' };
|
|
12438
12712
|
if (vErrors === null) {
|
|
12439
12713
|
vErrors = [err24];
|
|
@@ -12479,14 +12753,24 @@ function validate49(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
12479
12753
|
vErrors.push(err27);
|
|
12480
12754
|
}
|
|
12481
12755
|
errors++;
|
|
12756
|
+
} else {
|
|
12757
|
+
if (!pattern4.test(data10)) {
|
|
12758
|
+
const err28 = { instancePath: instancePath + "/events/" + i0 + "/decisionId", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/FeedbackLeaseResponse/anyOf/1/properties/events/items/properties/decisionId/pattern", keyword: "pattern", params: { pattern: "^dec_[0-9a-f]{8}$" }, message: 'must match pattern "^dec_[0-9a-f]{8}$"' };
|
|
12759
|
+
if (vErrors === null) {
|
|
12760
|
+
vErrors = [err28];
|
|
12761
|
+
} else {
|
|
12762
|
+
vErrors.push(err28);
|
|
12763
|
+
}
|
|
12764
|
+
errors++;
|
|
12765
|
+
}
|
|
12482
12766
|
}
|
|
12483
12767
|
}
|
|
12484
12768
|
} else {
|
|
12485
|
-
const
|
|
12769
|
+
const err29 = { instancePath: instancePath + "/events/" + i0 + "/decisionId", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/FeedbackLeaseResponse/anyOf/1/properties/events/items/properties/decisionId/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
12486
12770
|
if (vErrors === null) {
|
|
12487
|
-
vErrors = [
|
|
12771
|
+
vErrors = [err29];
|
|
12488
12772
|
} else {
|
|
12489
|
-
vErrors.push(
|
|
12773
|
+
vErrors.push(err29);
|
|
12490
12774
|
}
|
|
12491
12775
|
errors++;
|
|
12492
12776
|
}
|
|
@@ -12499,11 +12783,11 @@ function validate49(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
12499
12783
|
if (data6.intent !== void 0) {
|
|
12500
12784
|
const _errs31 = errors;
|
|
12501
12785
|
if (typeof data6.intent !== "string") {
|
|
12502
|
-
const
|
|
12786
|
+
const err30 = { instancePath: instancePath + "/events/" + i0 + "/intent", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/FeedbackLeaseResponse/anyOf/1/properties/events/items/properties/intent/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
12503
12787
|
if (vErrors === null) {
|
|
12504
|
-
vErrors = [
|
|
12788
|
+
vErrors = [err30];
|
|
12505
12789
|
} else {
|
|
12506
|
-
vErrors.push(
|
|
12790
|
+
vErrors.push(err30);
|
|
12507
12791
|
}
|
|
12508
12792
|
errors++;
|
|
12509
12793
|
}
|
|
@@ -12515,11 +12799,11 @@ function validate49(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
12515
12799
|
if (data6.webUrl !== void 0) {
|
|
12516
12800
|
const _errs33 = errors;
|
|
12517
12801
|
if (typeof data6.webUrl !== "string") {
|
|
12518
|
-
const
|
|
12802
|
+
const err31 = { instancePath: instancePath + "/events/" + i0 + "/webUrl", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/FeedbackLeaseResponse/anyOf/1/properties/events/items/properties/webUrl/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
12519
12803
|
if (vErrors === null) {
|
|
12520
|
-
vErrors = [
|
|
12804
|
+
vErrors = [err31];
|
|
12521
12805
|
} else {
|
|
12522
|
-
vErrors.push(
|
|
12806
|
+
vErrors.push(err31);
|
|
12523
12807
|
}
|
|
12524
12808
|
errors++;
|
|
12525
12809
|
}
|
|
@@ -12532,20 +12816,20 @@ function validate49(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
12532
12816
|
let data13 = data6.kind;
|
|
12533
12817
|
const _errs35 = errors;
|
|
12534
12818
|
if (typeof data13 !== "string") {
|
|
12535
|
-
const
|
|
12819
|
+
const err32 = { instancePath: instancePath + "/events/" + i0 + "/kind", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/FeedbackLeaseResponse/anyOf/1/properties/events/items/properties/kind/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
12536
12820
|
if (vErrors === null) {
|
|
12537
|
-
vErrors = [
|
|
12821
|
+
vErrors = [err32];
|
|
12538
12822
|
} else {
|
|
12539
|
-
vErrors.push(
|
|
12823
|
+
vErrors.push(err32);
|
|
12540
12824
|
}
|
|
12541
12825
|
errors++;
|
|
12542
12826
|
}
|
|
12543
12827
|
if (!(data13 === "confirm_prompt" || data13 === "publish_prompt")) {
|
|
12544
|
-
const
|
|
12828
|
+
const err33 = { instancePath: instancePath + "/events/" + i0 + "/kind", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/FeedbackLeaseResponse/anyOf/1/properties/events/items/properties/kind/enum", keyword: "enum", params: { allowedValues: schema89.anyOf[1].properties.events.items.properties.kind.enum }, message: "must be equal to one of the allowed values" };
|
|
12545
12829
|
if (vErrors === null) {
|
|
12546
|
-
vErrors = [
|
|
12830
|
+
vErrors = [err33];
|
|
12547
12831
|
} else {
|
|
12548
|
-
vErrors.push(
|
|
12832
|
+
vErrors.push(err33);
|
|
12549
12833
|
}
|
|
12550
12834
|
errors++;
|
|
12551
12835
|
}
|
|
@@ -12561,11 +12845,11 @@ function validate49(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
12561
12845
|
}
|
|
12562
12846
|
}
|
|
12563
12847
|
} else {
|
|
12564
|
-
const
|
|
12848
|
+
const err34 = { instancePath: instancePath + "/events/" + i0, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/FeedbackLeaseResponse/anyOf/1/properties/events/items/type", keyword: "type", params: { type: "object" }, message: "must be object" };
|
|
12565
12849
|
if (vErrors === null) {
|
|
12566
|
-
vErrors = [
|
|
12850
|
+
vErrors = [err34];
|
|
12567
12851
|
} else {
|
|
12568
|
-
vErrors.push(
|
|
12852
|
+
vErrors.push(err34);
|
|
12569
12853
|
}
|
|
12570
12854
|
errors++;
|
|
12571
12855
|
}
|
|
@@ -12578,11 +12862,11 @@ function validate49(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
12578
12862
|
}
|
|
12579
12863
|
}
|
|
12580
12864
|
} else {
|
|
12581
|
-
const
|
|
12865
|
+
const err35 = { instancePath: instancePath + "/events", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/FeedbackLeaseResponse/anyOf/1/properties/events/type", keyword: "type", params: { type: "array" }, message: "must be array" };
|
|
12582
12866
|
if (vErrors === null) {
|
|
12583
|
-
vErrors = [
|
|
12867
|
+
vErrors = [err35];
|
|
12584
12868
|
} else {
|
|
12585
|
-
vErrors.push(
|
|
12869
|
+
vErrors.push(err35);
|
|
12586
12870
|
}
|
|
12587
12871
|
errors++;
|
|
12588
12872
|
}
|
|
@@ -12595,11 +12879,11 @@ function validate49(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
12595
12879
|
if (data.hasMore !== void 0) {
|
|
12596
12880
|
const _errs37 = errors;
|
|
12597
12881
|
if (typeof data.hasMore !== "boolean") {
|
|
12598
|
-
const
|
|
12882
|
+
const err36 = { instancePath: instancePath + "/hasMore", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/FeedbackLeaseResponse/anyOf/1/properties/hasMore/type", keyword: "type", params: { type: "boolean" }, message: "must be boolean" };
|
|
12599
12883
|
if (vErrors === null) {
|
|
12600
|
-
vErrors = [
|
|
12884
|
+
vErrors = [err36];
|
|
12601
12885
|
} else {
|
|
12602
|
-
vErrors.push(
|
|
12886
|
+
vErrors.push(err36);
|
|
12603
12887
|
}
|
|
12604
12888
|
errors++;
|
|
12605
12889
|
}
|
|
@@ -12612,11 +12896,11 @@ function validate49(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
12612
12896
|
}
|
|
12613
12897
|
}
|
|
12614
12898
|
} else {
|
|
12615
|
-
const
|
|
12899
|
+
const err37 = { instancePath, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/FeedbackLeaseResponse/anyOf/1/type", keyword: "type", params: { type: "object" }, message: "must be object" };
|
|
12616
12900
|
if (vErrors === null) {
|
|
12617
|
-
vErrors = [
|
|
12901
|
+
vErrors = [err37];
|
|
12618
12902
|
} else {
|
|
12619
|
-
vErrors.push(
|
|
12903
|
+
vErrors.push(err37);
|
|
12620
12904
|
}
|
|
12621
12905
|
errors++;
|
|
12622
12906
|
}
|
|
@@ -12633,11 +12917,11 @@ function validate49(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
12633
12917
|
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
12634
12918
|
let missing3;
|
|
12635
12919
|
if (data.protocolVersion === void 0 && (missing3 = "protocolVersion") || data.status === void 0 && (missing3 = "status") || data.reason === void 0 && (missing3 = "reason")) {
|
|
12636
|
-
const
|
|
12920
|
+
const err38 = { instancePath, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/FeedbackLeaseResponse/anyOf/2/required", keyword: "required", params: { missingProperty: missing3 }, message: "must have required property '" + missing3 + "'" };
|
|
12637
12921
|
if (vErrors === null) {
|
|
12638
|
-
vErrors = [
|
|
12922
|
+
vErrors = [err38];
|
|
12639
12923
|
} else {
|
|
12640
|
-
vErrors.push(
|
|
12924
|
+
vErrors.push(err38);
|
|
12641
12925
|
}
|
|
12642
12926
|
errors++;
|
|
12643
12927
|
} else {
|
|
@@ -12645,31 +12929,31 @@ function validate49(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
12645
12929
|
let data15 = data.protocolVersion;
|
|
12646
12930
|
const _errs42 = errors;
|
|
12647
12931
|
if (!(typeof data15 == "number" && (!(data15 % 1) && !isNaN(data15)) && isFinite(data15))) {
|
|
12648
|
-
const
|
|
12932
|
+
const err39 = { instancePath: instancePath + "/protocolVersion", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/FeedbackLeaseResponse/anyOf/2/properties/protocolVersion/type", keyword: "type", params: { type: "integer" }, message: "must be integer" };
|
|
12649
12933
|
if (vErrors === null) {
|
|
12650
|
-
vErrors = [
|
|
12934
|
+
vErrors = [err39];
|
|
12651
12935
|
} else {
|
|
12652
|
-
vErrors.push(
|
|
12936
|
+
vErrors.push(err39);
|
|
12653
12937
|
}
|
|
12654
12938
|
errors++;
|
|
12655
12939
|
}
|
|
12656
12940
|
if (errors === _errs42) {
|
|
12657
12941
|
if (typeof data15 == "number" && isFinite(data15)) {
|
|
12658
12942
|
if (data15 > 2 || isNaN(data15)) {
|
|
12659
|
-
const
|
|
12943
|
+
const err40 = { instancePath: instancePath + "/protocolVersion", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/FeedbackLeaseResponse/anyOf/2/properties/protocolVersion/maximum", keyword: "maximum", params: { comparison: "<=", limit: 2 }, message: "must be <= 2" };
|
|
12660
12944
|
if (vErrors === null) {
|
|
12661
|
-
vErrors = [
|
|
12945
|
+
vErrors = [err40];
|
|
12662
12946
|
} else {
|
|
12663
|
-
vErrors.push(
|
|
12947
|
+
vErrors.push(err40);
|
|
12664
12948
|
}
|
|
12665
12949
|
errors++;
|
|
12666
12950
|
} else {
|
|
12667
12951
|
if (data15 < 1 || isNaN(data15)) {
|
|
12668
|
-
const
|
|
12952
|
+
const err41 = { instancePath: instancePath + "/protocolVersion", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/FeedbackLeaseResponse/anyOf/2/properties/protocolVersion/minimum", keyword: "minimum", params: { comparison: ">=", limit: 1 }, message: "must be >= 1" };
|
|
12669
12953
|
if (vErrors === null) {
|
|
12670
|
-
vErrors = [
|
|
12954
|
+
vErrors = [err41];
|
|
12671
12955
|
} else {
|
|
12672
|
-
vErrors.push(
|
|
12956
|
+
vErrors.push(err41);
|
|
12673
12957
|
}
|
|
12674
12958
|
errors++;
|
|
12675
12959
|
}
|
|
@@ -12685,20 +12969,20 @@ function validate49(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
12685
12969
|
let data16 = data.status;
|
|
12686
12970
|
const _errs44 = errors;
|
|
12687
12971
|
if (typeof data16 !== "string") {
|
|
12688
|
-
const
|
|
12972
|
+
const err42 = { instancePath: instancePath + "/status", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/FeedbackLeaseResponse/anyOf/2/properties/status/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
12689
12973
|
if (vErrors === null) {
|
|
12690
|
-
vErrors = [
|
|
12974
|
+
vErrors = [err42];
|
|
12691
12975
|
} else {
|
|
12692
|
-
vErrors.push(
|
|
12976
|
+
vErrors.push(err42);
|
|
12693
12977
|
}
|
|
12694
12978
|
errors++;
|
|
12695
12979
|
}
|
|
12696
12980
|
if ("unavailable" !== data16) {
|
|
12697
|
-
const
|
|
12981
|
+
const err43 = { instancePath: instancePath + "/status", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/FeedbackLeaseResponse/anyOf/2/properties/status/const", keyword: "const", params: { allowedValue: "unavailable" }, message: "must be equal to constant" };
|
|
12698
12982
|
if (vErrors === null) {
|
|
12699
|
-
vErrors = [
|
|
12983
|
+
vErrors = [err43];
|
|
12700
12984
|
} else {
|
|
12701
|
-
vErrors.push(
|
|
12985
|
+
vErrors.push(err43);
|
|
12702
12986
|
}
|
|
12703
12987
|
errors++;
|
|
12704
12988
|
}
|
|
@@ -12711,20 +12995,20 @@ function validate49(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
12711
12995
|
let data17 = data.reason;
|
|
12712
12996
|
const _errs46 = errors;
|
|
12713
12997
|
if (typeof data17 !== "string") {
|
|
12714
|
-
const
|
|
12998
|
+
const err44 = { instancePath: instancePath + "/reason", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/FeedbackLeaseResponse/anyOf/2/properties/reason/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
12715
12999
|
if (vErrors === null) {
|
|
12716
|
-
vErrors = [
|
|
13000
|
+
vErrors = [err44];
|
|
12717
13001
|
} else {
|
|
12718
|
-
vErrors.push(
|
|
13002
|
+
vErrors.push(err44);
|
|
12719
13003
|
}
|
|
12720
13004
|
errors++;
|
|
12721
13005
|
}
|
|
12722
13006
|
if ("organization_unbound" !== data17) {
|
|
12723
|
-
const
|
|
13007
|
+
const err45 = { instancePath: instancePath + "/reason", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/FeedbackLeaseResponse/anyOf/2/properties/reason/const", keyword: "const", params: { allowedValue: "organization_unbound" }, message: "must be equal to constant" };
|
|
12724
13008
|
if (vErrors === null) {
|
|
12725
|
-
vErrors = [
|
|
13009
|
+
vErrors = [err45];
|
|
12726
13010
|
} else {
|
|
12727
|
-
vErrors.push(
|
|
13011
|
+
vErrors.push(err45);
|
|
12728
13012
|
}
|
|
12729
13013
|
errors++;
|
|
12730
13014
|
}
|
|
@@ -12736,11 +13020,11 @@ function validate49(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
12736
13020
|
}
|
|
12737
13021
|
}
|
|
12738
13022
|
} else {
|
|
12739
|
-
const
|
|
13023
|
+
const err46 = { instancePath, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/FeedbackLeaseResponse/anyOf/2/type", keyword: "type", params: { type: "object" }, message: "must be object" };
|
|
12740
13024
|
if (vErrors === null) {
|
|
12741
|
-
vErrors = [
|
|
13025
|
+
vErrors = [err46];
|
|
12742
13026
|
} else {
|
|
12743
|
-
vErrors.push(
|
|
13027
|
+
vErrors.push(err46);
|
|
12744
13028
|
}
|
|
12745
13029
|
errors++;
|
|
12746
13030
|
}
|
|
@@ -12753,11 +13037,11 @@ function validate49(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
12753
13037
|
}
|
|
12754
13038
|
}
|
|
12755
13039
|
if (!valid1) {
|
|
12756
|
-
const
|
|
13040
|
+
const err47 = { instancePath, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/FeedbackLeaseResponse/anyOf", keyword: "anyOf", params: {}, message: "must match a schema in anyOf" };
|
|
12757
13041
|
if (vErrors === null) {
|
|
12758
|
-
vErrors = [
|
|
13042
|
+
vErrors = [err47];
|
|
12759
13043
|
} else {
|
|
12760
|
-
vErrors.push(
|
|
13044
|
+
vErrors.push(err47);
|
|
12761
13045
|
}
|
|
12762
13046
|
errors++;
|
|
12763
13047
|
validate49.errors = vErrors;
|
|
@@ -13489,8 +13773,8 @@ function validate51(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
13489
13773
|
return errors === 0;
|
|
13490
13774
|
}
|
|
13491
13775
|
validate51.evaluated = { "dynamicProps": true, "dynamicItems": false };
|
|
13492
|
-
var
|
|
13493
|
-
var
|
|
13776
|
+
var pattern48 = new RegExp("^[A-Za-z0-9]{1,128}$", "u");
|
|
13777
|
+
var pattern49 = new RegExp("^https:\\/\\/github\\.com\\/apps\\/primitive(?:-staging)?\\/installations\\/new\\?state=[0-9a-f]{64}$", "u");
|
|
13494
13778
|
function validate52(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
13495
13779
|
;
|
|
13496
13780
|
let vErrors = null;
|
|
@@ -13572,7 +13856,7 @@ function validate52(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
13572
13856
|
const _errs9 = errors;
|
|
13573
13857
|
if (errors === _errs9) {
|
|
13574
13858
|
if (typeof data3 === "string") {
|
|
13575
|
-
if (!
|
|
13859
|
+
if (!pattern48.test(data3)) {
|
|
13576
13860
|
validate52.errors = [{ instancePath: instancePath + "/intentId", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/GitHubInstallIntentStartResponse/properties/intentId/pattern", keyword: "pattern", params: { pattern: "^[A-Za-z0-9]{1,128}$" }, message: 'must match pattern "^[A-Za-z0-9]{1,128}$"' }];
|
|
13577
13861
|
return false;
|
|
13578
13862
|
}
|
|
@@ -13591,7 +13875,7 @@ function validate52(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
13591
13875
|
const _errs11 = errors;
|
|
13592
13876
|
if (errors === _errs11) {
|
|
13593
13877
|
if (typeof data4 === "string") {
|
|
13594
|
-
if (!
|
|
13878
|
+
if (!pattern49.test(data4)) {
|
|
13595
13879
|
validate52.errors = [{ instancePath: instancePath + "/browserUrl", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/GitHubInstallIntentStartResponse/properties/browserUrl/pattern", keyword: "pattern", params: { pattern: "^https:\\/\\/github\\.com\\/apps\\/primitive(?:-staging)?\\/installations\\/new\\?state=[0-9a-f]{64}$" }, message: 'must match pattern "^https:\\/\\/github\\.com\\/apps\\/primitive(?:-staging)?\\/installations\\/new\\?state=[0-9a-f]{64}$"' }];
|
|
13596
13880
|
return false;
|
|
13597
13881
|
}
|
|
@@ -13999,7 +14283,7 @@ function validate54(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
13999
14283
|
const _errs3 = errors;
|
|
14000
14284
|
if (errors === _errs3) {
|
|
14001
14285
|
if (typeof data0 === "string") {
|
|
14002
|
-
if (!
|
|
14286
|
+
if (!pattern48.test(data0)) {
|
|
14003
14287
|
validate54.errors = [{ instancePath: instancePath + "/intentId", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/GitHubInstallIntentStatusRequest/properties/intentId/pattern", keyword: "pattern", params: { pattern: "^[A-Za-z0-9]{1,128}$" }, message: 'must match pattern "^[A-Za-z0-9]{1,128}$"' }];
|
|
14004
14288
|
return false;
|
|
14005
14289
|
}
|
|
@@ -15571,7 +15855,7 @@ function validate55(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
15571
15855
|
}
|
|
15572
15856
|
validate55.evaluated = { "dynamicProps": true, "dynamicItems": false };
|
|
15573
15857
|
var schema103 = { "type": "object", "properties": { "batch": { "type": "array", "items": { "anyOf": [{ "type": "object", "properties": { "moveId": { "type": "string" }, "capturedAt": { "type": "number" }, "sessionId": { "type": "string" }, "invocationId": { "type": "string" }, "eventType": { "type": "string" }, "payload": {}, "env": {}, "repositoryContext": { "oneOf": [{ "type": "object", "properties": { "kind": { "type": "string", "const": "repository_bound" }, "repoSyncId": { "type": "string", "minLength": 1, "maxLength": 128 } }, "required": ["kind", "repoSyncId"], "additionalProperties": false }, { "type": "object", "properties": { "kind": { "type": "string", "const": "non_repository" } }, "required": ["kind"], "additionalProperties": false }] }, "capturedOrganizationId": { "type": "string", "minLength": 1, "maxLength": 128, "pattern": "^[A-Za-z0-9_-]+$" }, "captureAuthorityKind": { "type": "string", "enum": ["workos", "service_token"] }, "decisionLifecycleProtocolVersion": { "type": "integer", "minimum": 1, "maximum": 9007199254740991 }, "producer": { "type": "string", "enum": ["claude_code", "codex", "cursor", "hermes"] }, "toolOutcome": { "type": "string", "enum": ["succeeded", "returned", "failed", "interrupted", "prevented", "unknown"] }, "envelopeVersion": { "type": "number", "const": 4 } }, "required": ["moveId", "capturedAt", "sessionId", "eventType", "capturedOrganizationId", "captureAuthorityKind", "decisionLifecycleProtocolVersion", "envelopeVersion"], "additionalProperties": {} }, { "type": "object", "properties": { "moveId": { "type": "string" }, "capturedAt": { "type": "number" }, "sessionId": { "type": "string" }, "invocationId": { "type": "string" }, "eventType": { "type": "string" }, "payload": {}, "env": {}, "repositoryContext": { "oneOf": [{ "type": "object", "properties": { "kind": { "type": "string", "const": "repository_bound" }, "repoSyncId": { "type": "string", "minLength": 1, "maxLength": 128 } }, "required": ["kind", "repoSyncId"], "additionalProperties": false }, { "type": "object", "properties": { "kind": { "type": "string", "const": "non_repository" } }, "required": ["kind"], "additionalProperties": false }] }, "capturedOrganizationId": { "type": "string", "minLength": 1, "maxLength": 128, "pattern": "^[A-Za-z0-9_-]+$" }, "captureAuthorityKind": { "type": "string", "enum": ["workos", "service_token"] }, "decisionLifecycleProtocolVersion": { "type": "integer", "minimum": 1, "maximum": 9007199254740991 }, "producer": { "type": "string", "enum": ["claude_code", "codex", "cursor", "hermes"] }, "toolOutcome": { "type": "string", "enum": ["succeeded", "returned", "failed", "interrupted", "prevented", "unknown"] }, "envelopeVersion": { "type": "number", "exclusiveMaximum": 4 } }, "required": ["moveId", "capturedAt", "sessionId", "eventType"], "additionalProperties": {} }] } } }, "required": ["batch"], "additionalProperties": {} };
|
|
15574
|
-
var
|
|
15858
|
+
var pattern51 = new RegExp("^[A-Za-z0-9_-]+$", "u");
|
|
15575
15859
|
function validate56(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
15576
15860
|
;
|
|
15577
15861
|
let vErrors = null;
|
|
@@ -15932,7 +16216,7 @@ function validate56(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
15932
16216
|
}
|
|
15933
16217
|
errors++;
|
|
15934
16218
|
} else {
|
|
15935
|
-
if (!
|
|
16219
|
+
if (!pattern51.test(data11)) {
|
|
15936
16220
|
const err22 = { instancePath: instancePath + "/batch/" + i0 + "/capturedOrganizationId", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/MoveIngestRequest/properties/batch/items/anyOf/0/properties/capturedOrganizationId/pattern", keyword: "pattern", params: { pattern: "^[A-Za-z0-9_-]+$" }, message: 'must match pattern "^[A-Za-z0-9_-]+$"' };
|
|
15937
16221
|
if (vErrors === null) {
|
|
15938
16222
|
vErrors = [err22];
|
|
@@ -16457,7 +16741,7 @@ function validate56(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
16457
16741
|
}
|
|
16458
16742
|
errors++;
|
|
16459
16743
|
} else {
|
|
16460
|
-
if (!
|
|
16744
|
+
if (!pattern51.test(data26)) {
|
|
16461
16745
|
const err58 = { instancePath: instancePath + "/batch/" + i0 + "/capturedOrganizationId", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/MoveIngestRequest/properties/batch/items/anyOf/1/properties/capturedOrganizationId/pattern", keyword: "pattern", params: { pattern: "^[A-Za-z0-9_-]+$" }, message: 'must match pattern "^[A-Za-z0-9_-]+$"' };
|
|
16462
16746
|
if (vErrors === null) {
|
|
16463
16747
|
vErrors = [err58];
|
|
@@ -16700,10 +16984,10 @@ function validate56(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
16700
16984
|
}
|
|
16701
16985
|
validate56.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
|
|
16702
16986
|
var schema105 = { "type": "object", "properties": { "protocolVersion": { "type": "number", "const": 3 }, "agent": { "type": "string", "enum": ["claude_code", "codex", "cursor", "hermes"] }, "sessionId": { "type": "string", "pattern": "^[A-Za-z0-9._:-]{1,128}$" }, "invocationId": { "type": "string", "pattern": "^[A-Za-z0-9._:-]{1,128}$" }, "repoSyncId": { "type": "string", "pattern": "^[A-Za-z0-9]{1,64}$" }, "paths": { "maxItems": 32, "type": "array", "items": { "type": "string" } }, "coverage": { "type": "string", "enum": ["complete", "unverified"] }, "branch": { "type": "string", "maxLength": 255, "pattern": "^(?!@?$)(?!\\/)(?!.*\\/$)(?!.*\\/\\/)(?!.*(?:^|\\/)\\.{1,2}(?:\\/|$))(?!.*(?:^|\\/)[^/]*\\.lock(?:\\/|$))(?!.*\\.\\.)(?!.*@\\{)(?!.*[~^:?*\\\\]).+$" }, "clientMode": { "type": "string", "enum": ["block", "warn"] }, "clientVersion": { "type": "string", "maxLength": 32, "pattern": "^[A-Za-z0-9][A-Za-z0-9._+-]*$" }, "proposal": { "type": "string" } }, "required": ["protocolVersion", "agent", "sessionId", "invocationId", "repoSyncId", "paths", "coverage", "proposal"], "additionalProperties": false, "x-primitive-runtime-refinements": ["canonical_repository_paths", "unique_repository_paths", "complete_coverage_requires_path", "proposal_utf8_max_6144", "degrade_invalid_rollout_fields", "degrade_invalid_branch"] };
|
|
16703
|
-
var
|
|
16704
|
-
var
|
|
16705
|
-
var
|
|
16706
|
-
var
|
|
16987
|
+
var pattern53 = new RegExp("^[A-Za-z0-9._:-]{1,128}$", "u");
|
|
16988
|
+
var pattern55 = new RegExp("^[A-Za-z0-9]{1,64}$", "u");
|
|
16989
|
+
var pattern56 = new RegExp("^(?!@?$)(?!\\/)(?!.*\\/$)(?!.*\\/\\/)(?!.*(?:^|\\/)\\.{1,2}(?:\\/|$))(?!.*(?:^|\\/)[^/]*\\.lock(?:\\/|$))(?!.*\\.\\.)(?!.*@\\{)(?!.*[~^:?*\\\\]).+$", "u");
|
|
16990
|
+
var pattern57 = new RegExp("^[A-Za-z0-9][A-Za-z0-9._+-]*$", "u");
|
|
16707
16991
|
function validate57(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
16708
16992
|
;
|
|
16709
16993
|
let vErrors = null;
|
|
@@ -16769,7 +17053,7 @@ function validate57(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
16769
17053
|
const _errs8 = errors;
|
|
16770
17054
|
if (errors === _errs8) {
|
|
16771
17055
|
if (typeof data2 === "string") {
|
|
16772
|
-
if (!
|
|
17056
|
+
if (!pattern53.test(data2)) {
|
|
16773
17057
|
validate57.errors = [{ instancePath: instancePath + "/sessionId", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/PreflightRequestV3/properties/sessionId/pattern", keyword: "pattern", params: { pattern: "^[A-Za-z0-9._:-]{1,128}$" }, message: 'must match pattern "^[A-Za-z0-9._:-]{1,128}$"' }];
|
|
16774
17058
|
return false;
|
|
16775
17059
|
}
|
|
@@ -16788,7 +17072,7 @@ function validate57(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
16788
17072
|
const _errs10 = errors;
|
|
16789
17073
|
if (errors === _errs10) {
|
|
16790
17074
|
if (typeof data3 === "string") {
|
|
16791
|
-
if (!
|
|
17075
|
+
if (!pattern53.test(data3)) {
|
|
16792
17076
|
validate57.errors = [{ instancePath: instancePath + "/invocationId", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/PreflightRequestV3/properties/invocationId/pattern", keyword: "pattern", params: { pattern: "^[A-Za-z0-9._:-]{1,128}$" }, message: 'must match pattern "^[A-Za-z0-9._:-]{1,128}$"' }];
|
|
16793
17077
|
return false;
|
|
16794
17078
|
}
|
|
@@ -16807,7 +17091,7 @@ function validate57(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
16807
17091
|
const _errs12 = errors;
|
|
16808
17092
|
if (errors === _errs12) {
|
|
16809
17093
|
if (typeof data4 === "string") {
|
|
16810
|
-
if (!
|
|
17094
|
+
if (!pattern55.test(data4)) {
|
|
16811
17095
|
validate57.errors = [{ instancePath: instancePath + "/repoSyncId", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/PreflightRequestV3/properties/repoSyncId/pattern", keyword: "pattern", params: { pattern: "^[A-Za-z0-9]{1,64}$" }, message: 'must match pattern "^[A-Za-z0-9]{1,64}$"' }];
|
|
16812
17096
|
return false;
|
|
16813
17097
|
}
|
|
@@ -16879,7 +17163,7 @@ function validate57(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
16879
17163
|
validate57.errors = [{ instancePath: instancePath + "/branch", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/PreflightRequestV3/properties/branch/maxLength", keyword: "maxLength", params: { limit: 255 }, message: "must NOT have more than 255 characters" }];
|
|
16880
17164
|
return false;
|
|
16881
17165
|
} else {
|
|
16882
|
-
if (!
|
|
17166
|
+
if (!pattern56.test(data8)) {
|
|
16883
17167
|
validate57.errors = [{ instancePath: instancePath + "/branch", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/PreflightRequestV3/properties/branch/pattern", keyword: "pattern", params: { pattern: "^(?!@?$)(?!\\/)(?!.*\\/$)(?!.*\\/\\/)(?!.*(?:^|\\/)\\.{1,2}(?:\\/|$))(?!.*(?:^|\\/)[^/]*\\.lock(?:\\/|$))(?!.*\\.\\.)(?!.*@\\{)(?!.*[~^:?*\\\\]).+$" }, message: 'must match pattern "^(?!@?$)(?!\\/)(?!.*\\/$)(?!.*\\/\\/)(?!.*(?:^|\\/)\\.{1,2}(?:\\/|$))(?!.*(?:^|\\/)[^/]*\\.lock(?:\\/|$))(?!.*\\.\\.)(?!.*@\\{)(?!.*[~^:?*\\\\]).+$"' }];
|
|
16884
17168
|
return false;
|
|
16885
17169
|
}
|
|
@@ -16919,7 +17203,7 @@ function validate57(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
16919
17203
|
validate57.errors = [{ instancePath: instancePath + "/clientVersion", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/PreflightRequestV3/properties/clientVersion/maxLength", keyword: "maxLength", params: { limit: 32 }, message: "must NOT have more than 32 characters" }];
|
|
16920
17204
|
return false;
|
|
16921
17205
|
} else {
|
|
16922
|
-
if (!
|
|
17206
|
+
if (!pattern57.test(data10)) {
|
|
16923
17207
|
validate57.errors = [{ instancePath: instancePath + "/clientVersion", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/PreflightRequestV3/properties/clientVersion/pattern", keyword: "pattern", params: { pattern: "^[A-Za-z0-9][A-Za-z0-9._+-]*$" }, message: 'must match pattern "^[A-Za-z0-9][A-Za-z0-9._+-]*$"' }];
|
|
16924
17208
|
return false;
|
|
16925
17209
|
}
|
|
@@ -16965,7 +17249,7 @@ function validate57(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
16965
17249
|
return errors === 0;
|
|
16966
17250
|
}
|
|
16967
17251
|
validate57.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
|
|
16968
|
-
var schema107 = { "type": "object", "properties": { "protocolVersion": { "type": "number", "const": 3 }, "checkId": { "type": "string", "pattern": "^[A-Za-z0-9._:-]{1,128}$" }, "verdict": { "type": "string", "enum": ["allow", "warn", "ask", "block", "unavailable"] }, "reasonCode": { "type": "string" }, "message": { "type": "string" }, "conflicts": { "type": "array", "items": { "type": "object", "properties": { "decisionId": { "type": "string" }, "shortId": { "type": "string" }, "title": { "type": "string" } }, "required": ["decisionId"], "additionalProperties": {} } }, "bypassed": { "type": "array", "items": { "type": "object", "properties": { "decisionId": { "type": "string" }, "bypassId": { "type": "string" }, "shortId": { "type": "string" } }, "required": ["decisionId"], "additionalProperties": {} } }, "evaluationCoverage": { "type": "object", "properties": { "candidateCount": { "type": "integer", "minimum": 0, "maximum": 9007199254740991 }, "submittedCount": { "type": "integer", "minimum": 0, "maximum": 9007199254740991 }, "evaluatedCount": { "type": "integer", "minimum": 0, "maximum": 9007199254740991 }, "status": { "type": "string", "enum": ["completed", "partial", "unavailable", "not_run", "unknown"] }, "semanticBatchCount": { "type": "integer", "minimum": 0, "maximum": 9007199254740991 }, "completedSemanticBatchCount": { "type": "integer", "minimum": 0, "maximum": 9007199254740991 }, "selectionOmissions": { "type": "array", "items": { "type": "object", "properties": { "source": { "type": "string", "enum": ["exact_scope", "location_scope", "organization_scope", "candidate_scan", "candidate_limit", "bypass_scan"] }, "reason": { "type": "string", "enum": ["scan_limit", "candidate_limit", "bucket_limit"] }, "omittedCountLowerBound": { "type": "integer", "minimum": 0, "maximum": 9007199254740991 } }, "required": ["source", "reason", "omittedCountLowerBound"], "additionalProperties": false } }, "evidenceOmissions": { "type": "array", "items": { "type": "object", "properties": { "decisionId": { "type": "string" }, "reason": { "type": "string", "enum": ["prompt_budget", "batch_limit", "evaluation_failed", "evaluation_deadline"] } }, "required": ["decisionId", "reason"], "additionalProperties": false } } }, "required": ["candidateCount", "submittedCount", "evaluatedCount", "status", "semanticBatchCount", "completedSemanticBatchCount", "selectionOmissions", "evidenceOmissions"], "additionalProperties": false }, "decisionDisclosures": { "minItems": 1, "maxItems": 16, "type": "array", "items": { "type": "object", "properties": { "decisionId": { "type": "string" }, "shortId": { "type": "string" }, "participation": { "type": "string", "enum": ["candidate", "reconcile_bypass"] } }, "required": ["decisionId", "shortId", "participation"], "additionalProperties": false } } }, "required": ["protocolVersion", "verdict", "reasonCode", "message", "conflicts", "bypassed"], "additionalProperties": {} };
|
|
17252
|
+
var schema107 = { "type": "object", "properties": { "protocolVersion": { "type": "number", "const": 3 }, "checkId": { "type": "string", "pattern": "^[A-Za-z0-9._:-]{1,128}$" }, "verdict": { "type": "string", "enum": ["allow", "warn", "ask", "block", "unavailable"] }, "reasonCode": { "type": "string" }, "message": { "type": "string" }, "conflicts": { "type": "array", "items": { "type": "object", "properties": { "decisionId": { "type": "string", "pattern": "^dec_[0-9a-f]{8}$", "description": "Canonical public Decision ID; internal Convex IDs are accepted only as legacy inputs." }, "shortId": { "type": "string", "pattern": "^[0-9a-f]{8}$" }, "title": { "type": "string" } }, "required": ["decisionId"], "additionalProperties": {} } }, "bypassed": { "type": "array", "items": { "type": "object", "properties": { "decisionId": { "type": "string", "pattern": "^dec_[0-9a-f]{8}$", "description": "Canonical public Decision ID; internal Convex IDs are accepted only as legacy inputs." }, "bypassId": { "type": "string" }, "shortId": { "type": "string", "pattern": "^[0-9a-f]{8}$" } }, "required": ["decisionId"], "additionalProperties": {} } }, "evaluationCoverage": { "type": "object", "properties": { "candidateCount": { "type": "integer", "minimum": 0, "maximum": 9007199254740991 }, "submittedCount": { "type": "integer", "minimum": 0, "maximum": 9007199254740991 }, "evaluatedCount": { "type": "integer", "minimum": 0, "maximum": 9007199254740991 }, "status": { "type": "string", "enum": ["completed", "partial", "unavailable", "not_run", "unknown"] }, "semanticBatchCount": { "type": "integer", "minimum": 0, "maximum": 9007199254740991 }, "completedSemanticBatchCount": { "type": "integer", "minimum": 0, "maximum": 9007199254740991 }, "selectionOmissions": { "type": "array", "items": { "type": "object", "properties": { "source": { "type": "string", "enum": ["exact_scope", "location_scope", "organization_scope", "candidate_scan", "candidate_limit", "bypass_scan"] }, "reason": { "type": "string", "enum": ["scan_limit", "candidate_limit", "bucket_limit"] }, "omittedCountLowerBound": { "type": "integer", "minimum": 0, "maximum": 9007199254740991 } }, "required": ["source", "reason", "omittedCountLowerBound"], "additionalProperties": false } }, "evidenceOmissions": { "type": "array", "items": { "type": "object", "properties": { "decisionId": { "type": "string", "pattern": "^dec_[0-9a-f]{8}$", "description": "Canonical public Decision ID; internal Convex IDs are accepted only as legacy inputs." }, "reason": { "type": "string", "enum": ["prompt_budget", "batch_limit", "evaluation_failed", "evaluation_deadline"] } }, "required": ["decisionId", "reason"], "additionalProperties": false } } }, "required": ["candidateCount", "submittedCount", "evaluatedCount", "status", "semanticBatchCount", "completedSemanticBatchCount", "selectionOmissions", "evidenceOmissions"], "additionalProperties": false }, "decisionDisclosures": { "minItems": 1, "maxItems": 16, "type": "array", "items": { "type": "object", "properties": { "decisionId": { "type": "string", "pattern": "^dec_[0-9a-f]{8}$", "description": "Canonical public Decision ID; internal Convex IDs are accepted only as legacy inputs." }, "shortId": { "type": "string", "pattern": "^[0-9a-f]{8}$" }, "participation": { "type": "string", "enum": ["candidate", "reconcile_bypass"] } }, "required": ["decisionId", "shortId", "participation"], "additionalProperties": false } } }, "required": ["protocolVersion", "verdict", "reasonCode", "message", "conflicts", "bypassed"], "additionalProperties": {} };
|
|
16969
17253
|
function validate58(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
16970
17254
|
;
|
|
16971
17255
|
let vErrors = null;
|
|
@@ -17006,7 +17290,7 @@ function validate58(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
17006
17290
|
const _errs5 = errors;
|
|
17007
17291
|
if (errors === _errs5) {
|
|
17008
17292
|
if (typeof data1 === "string") {
|
|
17009
|
-
if (!
|
|
17293
|
+
if (!pattern53.test(data1)) {
|
|
17010
17294
|
validate58.errors = [{ instancePath: instancePath + "/checkId", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/PreflightResponseV3/properties/checkId/pattern", keyword: "pattern", params: { pattern: "^[A-Za-z0-9._:-]{1,128}$" }, message: 'must match pattern "^[A-Za-z0-9._:-]{1,128}$"' }];
|
|
17011
17295
|
return false;
|
|
17012
17296
|
}
|
|
@@ -17076,10 +17360,18 @@ function validate58(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
17076
17360
|
return false;
|
|
17077
17361
|
} else {
|
|
17078
17362
|
if (data6.decisionId !== void 0) {
|
|
17363
|
+
let data7 = data6.decisionId;
|
|
17079
17364
|
const _errs18 = errors;
|
|
17080
|
-
if (
|
|
17081
|
-
|
|
17082
|
-
|
|
17365
|
+
if (errors === _errs18) {
|
|
17366
|
+
if (typeof data7 === "string") {
|
|
17367
|
+
if (!pattern4.test(data7)) {
|
|
17368
|
+
validate58.errors = [{ instancePath: instancePath + "/conflicts/" + i0 + "/decisionId", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/PreflightResponseV3/properties/conflicts/items/properties/decisionId/pattern", keyword: "pattern", params: { pattern: "^dec_[0-9a-f]{8}$" }, message: 'must match pattern "^dec_[0-9a-f]{8}$"' }];
|
|
17369
|
+
return false;
|
|
17370
|
+
}
|
|
17371
|
+
} else {
|
|
17372
|
+
validate58.errors = [{ instancePath: instancePath + "/conflicts/" + i0 + "/decisionId", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/PreflightResponseV3/properties/conflicts/items/properties/decisionId/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
17373
|
+
return false;
|
|
17374
|
+
}
|
|
17083
17375
|
}
|
|
17084
17376
|
var valid3 = _errs18 === errors;
|
|
17085
17377
|
} else {
|
|
@@ -17087,10 +17379,18 @@ function validate58(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
17087
17379
|
}
|
|
17088
17380
|
if (valid3) {
|
|
17089
17381
|
if (data6.shortId !== void 0) {
|
|
17382
|
+
let data8 = data6.shortId;
|
|
17090
17383
|
const _errs20 = errors;
|
|
17091
|
-
if (
|
|
17092
|
-
|
|
17093
|
-
|
|
17384
|
+
if (errors === _errs20) {
|
|
17385
|
+
if (typeof data8 === "string") {
|
|
17386
|
+
if (!pattern5.test(data8)) {
|
|
17387
|
+
validate58.errors = [{ instancePath: instancePath + "/conflicts/" + i0 + "/shortId", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/PreflightResponseV3/properties/conflicts/items/properties/shortId/pattern", keyword: "pattern", params: { pattern: "^[0-9a-f]{8}$" }, message: 'must match pattern "^[0-9a-f]{8}$"' }];
|
|
17388
|
+
return false;
|
|
17389
|
+
}
|
|
17390
|
+
} else {
|
|
17391
|
+
validate58.errors = [{ instancePath: instancePath + "/conflicts/" + i0 + "/shortId", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/PreflightResponseV3/properties/conflicts/items/properties/shortId/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
17392
|
+
return false;
|
|
17393
|
+
}
|
|
17094
17394
|
}
|
|
17095
17395
|
var valid3 = _errs20 === errors;
|
|
17096
17396
|
} else {
|
|
@@ -17148,10 +17448,18 @@ function validate58(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
17148
17448
|
return false;
|
|
17149
17449
|
} else {
|
|
17150
17450
|
if (data11.decisionId !== void 0) {
|
|
17451
|
+
let data12 = data11.decisionId;
|
|
17151
17452
|
const _errs29 = errors;
|
|
17152
|
-
if (
|
|
17153
|
-
|
|
17154
|
-
|
|
17453
|
+
if (errors === _errs29) {
|
|
17454
|
+
if (typeof data12 === "string") {
|
|
17455
|
+
if (!pattern4.test(data12)) {
|
|
17456
|
+
validate58.errors = [{ instancePath: instancePath + "/bypassed/" + i1 + "/decisionId", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/PreflightResponseV3/properties/bypassed/items/properties/decisionId/pattern", keyword: "pattern", params: { pattern: "^dec_[0-9a-f]{8}$" }, message: 'must match pattern "^dec_[0-9a-f]{8}$"' }];
|
|
17457
|
+
return false;
|
|
17458
|
+
}
|
|
17459
|
+
} else {
|
|
17460
|
+
validate58.errors = [{ instancePath: instancePath + "/bypassed/" + i1 + "/decisionId", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/PreflightResponseV3/properties/bypassed/items/properties/decisionId/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
17461
|
+
return false;
|
|
17462
|
+
}
|
|
17155
17463
|
}
|
|
17156
17464
|
var valid5 = _errs29 === errors;
|
|
17157
17465
|
} else {
|
|
@@ -17170,10 +17478,18 @@ function validate58(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
17170
17478
|
}
|
|
17171
17479
|
if (valid5) {
|
|
17172
17480
|
if (data11.shortId !== void 0) {
|
|
17481
|
+
let data14 = data11.shortId;
|
|
17173
17482
|
const _errs33 = errors;
|
|
17174
|
-
if (
|
|
17175
|
-
|
|
17176
|
-
|
|
17483
|
+
if (errors === _errs33) {
|
|
17484
|
+
if (typeof data14 === "string") {
|
|
17485
|
+
if (!pattern5.test(data14)) {
|
|
17486
|
+
validate58.errors = [{ instancePath: instancePath + "/bypassed/" + i1 + "/shortId", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/PreflightResponseV3/properties/bypassed/items/properties/shortId/pattern", keyword: "pattern", params: { pattern: "^[0-9a-f]{8}$" }, message: 'must match pattern "^[0-9a-f]{8}$"' }];
|
|
17487
|
+
return false;
|
|
17488
|
+
}
|
|
17489
|
+
} else {
|
|
17490
|
+
validate58.errors = [{ instancePath: instancePath + "/bypassed/" + i1 + "/shortId", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/PreflightResponseV3/properties/bypassed/items/properties/shortId/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
17491
|
+
return false;
|
|
17492
|
+
}
|
|
17177
17493
|
}
|
|
17178
17494
|
var valid5 = _errs33 === errors;
|
|
17179
17495
|
} else {
|
|
@@ -17495,10 +17811,18 @@ function validate58(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
17495
17811
|
}
|
|
17496
17812
|
if (_errs65 === errors) {
|
|
17497
17813
|
if (data28.decisionId !== void 0) {
|
|
17814
|
+
let data29 = data28.decisionId;
|
|
17498
17815
|
const _errs66 = errors;
|
|
17499
|
-
if (
|
|
17500
|
-
|
|
17501
|
-
|
|
17816
|
+
if (errors === _errs66) {
|
|
17817
|
+
if (typeof data29 === "string") {
|
|
17818
|
+
if (!pattern4.test(data29)) {
|
|
17819
|
+
validate58.errors = [{ instancePath: instancePath + "/evaluationCoverage/evidenceOmissions/" + i3 + "/decisionId", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/PreflightResponseV3/properties/evaluationCoverage/properties/evidenceOmissions/items/properties/decisionId/pattern", keyword: "pattern", params: { pattern: "^dec_[0-9a-f]{8}$" }, message: 'must match pattern "^dec_[0-9a-f]{8}$"' }];
|
|
17820
|
+
return false;
|
|
17821
|
+
}
|
|
17822
|
+
} else {
|
|
17823
|
+
validate58.errors = [{ instancePath: instancePath + "/evaluationCoverage/evidenceOmissions/" + i3 + "/decisionId", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/PreflightResponseV3/properties/evaluationCoverage/properties/evidenceOmissions/items/properties/decisionId/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
17824
|
+
return false;
|
|
17825
|
+
}
|
|
17502
17826
|
}
|
|
17503
17827
|
var valid10 = _errs66 === errors;
|
|
17504
17828
|
} else {
|
|
@@ -17596,10 +17920,18 @@ function validate58(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
17596
17920
|
}
|
|
17597
17921
|
if (_errs74 === errors) {
|
|
17598
17922
|
if (data32.decisionId !== void 0) {
|
|
17923
|
+
let data33 = data32.decisionId;
|
|
17599
17924
|
const _errs75 = errors;
|
|
17600
|
-
if (
|
|
17601
|
-
|
|
17602
|
-
|
|
17925
|
+
if (errors === _errs75) {
|
|
17926
|
+
if (typeof data33 === "string") {
|
|
17927
|
+
if (!pattern4.test(data33)) {
|
|
17928
|
+
validate58.errors = [{ instancePath: instancePath + "/decisionDisclosures/" + i4 + "/decisionId", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/PreflightResponseV3/properties/decisionDisclosures/items/properties/decisionId/pattern", keyword: "pattern", params: { pattern: "^dec_[0-9a-f]{8}$" }, message: 'must match pattern "^dec_[0-9a-f]{8}$"' }];
|
|
17929
|
+
return false;
|
|
17930
|
+
}
|
|
17931
|
+
} else {
|
|
17932
|
+
validate58.errors = [{ instancePath: instancePath + "/decisionDisclosures/" + i4 + "/decisionId", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/PreflightResponseV3/properties/decisionDisclosures/items/properties/decisionId/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
17933
|
+
return false;
|
|
17934
|
+
}
|
|
17603
17935
|
}
|
|
17604
17936
|
var valid12 = _errs75 === errors;
|
|
17605
17937
|
} else {
|
|
@@ -17607,10 +17939,18 @@ function validate58(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
17607
17939
|
}
|
|
17608
17940
|
if (valid12) {
|
|
17609
17941
|
if (data32.shortId !== void 0) {
|
|
17942
|
+
let data34 = data32.shortId;
|
|
17610
17943
|
const _errs77 = errors;
|
|
17611
|
-
if (
|
|
17612
|
-
|
|
17613
|
-
|
|
17944
|
+
if (errors === _errs77) {
|
|
17945
|
+
if (typeof data34 === "string") {
|
|
17946
|
+
if (!pattern5.test(data34)) {
|
|
17947
|
+
validate58.errors = [{ instancePath: instancePath + "/decisionDisclosures/" + i4 + "/shortId", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/PreflightResponseV3/properties/decisionDisclosures/items/properties/shortId/pattern", keyword: "pattern", params: { pattern: "^[0-9a-f]{8}$" }, message: 'must match pattern "^[0-9a-f]{8}$"' }];
|
|
17948
|
+
return false;
|
|
17949
|
+
}
|
|
17950
|
+
} else {
|
|
17951
|
+
validate58.errors = [{ instancePath: instancePath + "/decisionDisclosures/" + i4 + "/shortId", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/PreflightResponseV3/properties/decisionDisclosures/items/properties/shortId/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
17952
|
+
return false;
|
|
17953
|
+
}
|
|
17614
17954
|
}
|
|
17615
17955
|
var valid12 = _errs77 === errors;
|
|
17616
17956
|
} else {
|
|
@@ -17675,8 +18015,8 @@ function validate58(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
17675
18015
|
return errors === 0;
|
|
17676
18016
|
}
|
|
17677
18017
|
validate58.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
|
|
17678
|
-
var
|
|
17679
|
-
var
|
|
18018
|
+
var pattern66 = new RegExp("^[A-Za-z0-9._-]{1,128}$", "u");
|
|
18019
|
+
var pattern67 = new RegExp("^pci_[A-Za-z0-9_-]{43}$", "u");
|
|
17680
18020
|
function validate59(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
17681
18021
|
;
|
|
17682
18022
|
let vErrors = null;
|
|
@@ -17701,7 +18041,7 @@ function validate59(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
17701
18041
|
const _errs3 = errors;
|
|
17702
18042
|
if (errors === _errs3) {
|
|
17703
18043
|
if (typeof data0 === "string") {
|
|
17704
|
-
if (!
|
|
18044
|
+
if (!pattern66.test(data0)) {
|
|
17705
18045
|
validate59.errors = [{ instancePath: instancePath + "/sessionId", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/PresenceHeartbeatRequest/properties/sessionId/pattern", keyword: "pattern", params: { pattern: "^[A-Za-z0-9._-]{1,128}$" }, message: 'must match pattern "^[A-Za-z0-9._-]{1,128}$"' }];
|
|
17706
18046
|
return false;
|
|
17707
18047
|
}
|
|
@@ -17720,7 +18060,7 @@ function validate59(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
17720
18060
|
const _errs5 = errors;
|
|
17721
18061
|
if (errors === _errs5) {
|
|
17722
18062
|
if (typeof data1 === "string") {
|
|
17723
|
-
if (!
|
|
18063
|
+
if (!pattern67.test(data1)) {
|
|
17724
18064
|
validate59.errors = [{ instancePath: instancePath + "/clientInstanceId", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/PresenceHeartbeatRequest/properties/clientInstanceId/pattern", keyword: "pattern", params: { pattern: "^pci_[A-Za-z0-9_-]{43}$" }, message: 'must match pattern "^pci_[A-Za-z0-9_-]{43}$"' }];
|
|
17725
18065
|
return false;
|
|
17726
18066
|
}
|
|
@@ -18262,7 +18602,7 @@ function validate61(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
18262
18602
|
return errors === 0;
|
|
18263
18603
|
}
|
|
18264
18604
|
validate61.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
|
|
18265
|
-
var schema115 = { "type": "object", "properties": { "ok": { "type": "boolean", "const": true }, "checkId": { "type": "string" }, "decisionId": { "type": "string" }, "outcome": { "type": "string", "enum": ["followed", "superseded"] }, "recordedAt": { "type": "number" }, "duplicate": { "type": "boolean" } }, "required": ["ok", "checkId", "decisionId", "outcome", "recordedAt", "duplicate"], "additionalProperties": false };
|
|
18605
|
+
var schema115 = { "type": "object", "properties": { "ok": { "type": "boolean", "const": true }, "checkId": { "type": "string" }, "decisionId": { "type": "string", "pattern": "^dec_[0-9a-f]{8}$", "description": "Canonical public Decision ID; internal Convex IDs are accepted only as legacy inputs." }, "outcome": { "type": "string", "enum": ["followed", "superseded"] }, "recordedAt": { "type": "number" }, "duplicate": { "type": "boolean" } }, "required": ["ok", "checkId", "decisionId", "outcome", "recordedAt", "duplicate"], "additionalProperties": false };
|
|
18266
18606
|
function validate62(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
18267
18607
|
;
|
|
18268
18608
|
let vErrors = null;
|
|
@@ -18319,10 +18659,18 @@ function validate62(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
18319
18659
|
}
|
|
18320
18660
|
if (valid1) {
|
|
18321
18661
|
if (data.decisionId !== void 0) {
|
|
18662
|
+
let data2 = data.decisionId;
|
|
18322
18663
|
const _errs7 = errors;
|
|
18323
|
-
if (
|
|
18324
|
-
|
|
18325
|
-
|
|
18664
|
+
if (errors === _errs7) {
|
|
18665
|
+
if (typeof data2 === "string") {
|
|
18666
|
+
if (!pattern4.test(data2)) {
|
|
18667
|
+
validate62.errors = [{ instancePath: instancePath + "/decisionId", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/ReconcileResolutionResponse/properties/decisionId/pattern", keyword: "pattern", params: { pattern: "^dec_[0-9a-f]{8}$" }, message: 'must match pattern "^dec_[0-9a-f]{8}$"' }];
|
|
18668
|
+
return false;
|
|
18669
|
+
}
|
|
18670
|
+
} else {
|
|
18671
|
+
validate62.errors = [{ instancePath: instancePath + "/decisionId", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/ReconcileResolutionResponse/properties/decisionId/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
18672
|
+
return false;
|
|
18673
|
+
}
|
|
18326
18674
|
}
|
|
18327
18675
|
var valid1 = _errs7 === errors;
|
|
18328
18676
|
} else {
|
|
@@ -18383,7 +18731,7 @@ function validate62(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
18383
18731
|
return errors === 0;
|
|
18384
18732
|
}
|
|
18385
18733
|
validate62.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
|
|
18386
|
-
var
|
|
18734
|
+
var pattern69 = new RegExp("^(?![A-Za-z0-9-]*--)[A-Za-z0-9](?:[A-Za-z0-9-]{0,37}[A-Za-z0-9])?\\/[A-Za-z0-9._-]{1,100}$", "u");
|
|
18387
18735
|
function validate63(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
18388
18736
|
;
|
|
18389
18737
|
let vErrors = null;
|
|
@@ -18417,7 +18765,7 @@ function validate63(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
18417
18765
|
const _errs3 = errors;
|
|
18418
18766
|
if (errors === _errs3) {
|
|
18419
18767
|
if (typeof data0 === "string") {
|
|
18420
|
-
if (!
|
|
18768
|
+
if (!pattern69.test(data0)) {
|
|
18421
18769
|
validate63.errors = [{ instancePath: instancePath + "/repositoryFullName", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/RepositoryBindRequest/properties/repositoryFullName/pattern", keyword: "pattern", params: { pattern: "^(?![A-Za-z0-9-]*--)[A-Za-z0-9](?:[A-Za-z0-9-]{0,37}[A-Za-z0-9])?\\/[A-Za-z0-9._-]{1,100}$" }, message: 'must match pattern "^(?![A-Za-z0-9-]*--)[A-Za-z0-9](?:[A-Za-z0-9-]{0,37}[A-Za-z0-9])?\\/[A-Za-z0-9._-]{1,100}$"' }];
|
|
18422
18770
|
return false;
|
|
18423
18771
|
}
|
|
@@ -18482,7 +18830,7 @@ function validate64(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
18482
18830
|
return errors === 0;
|
|
18483
18831
|
}
|
|
18484
18832
|
validate64.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
|
|
18485
|
-
var
|
|
18833
|
+
var pattern71 = new RegExp("^api_key_[A-Za-z0-9_-]+$", "u");
|
|
18486
18834
|
function validate65(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
18487
18835
|
;
|
|
18488
18836
|
let vErrors = null;
|
|
@@ -18516,7 +18864,7 @@ function validate65(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
18516
18864
|
const _errs3 = errors;
|
|
18517
18865
|
if (errors === _errs3) {
|
|
18518
18866
|
if (typeof data0 === "string") {
|
|
18519
|
-
if (!
|
|
18867
|
+
if (!pattern35.test(data0)) {
|
|
18520
18868
|
validate65.errors = [{ instancePath: instancePath + "/requestId", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/UserApiKeyListRequest/properties/requestId/pattern", keyword: "pattern", params: { pattern: "^[a-f0-9]{64}$" }, message: 'must match pattern "^[a-f0-9]{64}$"' }];
|
|
18521
18869
|
return false;
|
|
18522
18870
|
}
|
|
@@ -18568,7 +18916,7 @@ function validate65(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
18568
18916
|
validate65.errors = [{ instancePath: instancePath + "/after", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/UserApiKeyListRequest/properties/after/minLength", keyword: "minLength", params: { limit: 9 }, message: "must NOT have fewer than 9 characters" }];
|
|
18569
18917
|
return false;
|
|
18570
18918
|
} else {
|
|
18571
|
-
if (!
|
|
18919
|
+
if (!pattern71.test(data2)) {
|
|
18572
18920
|
validate65.errors = [{ instancePath: instancePath + "/after", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/UserApiKeyListRequest/properties/after/pattern", keyword: "pattern", params: { pattern: "^api_key_[A-Za-z0-9_-]+$" }, message: 'must match pattern "^api_key_[A-Za-z0-9_-]+$"' }];
|
|
18573
18921
|
return false;
|
|
18574
18922
|
}
|
|
@@ -18596,9 +18944,9 @@ function validate65(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
18596
18944
|
return errors === 0;
|
|
18597
18945
|
}
|
|
18598
18946
|
validate65.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
|
|
18599
|
-
var
|
|
18600
|
-
var
|
|
18601
|
-
var
|
|
18947
|
+
var pattern73 = new RegExp("^[\\x21-\\x7e](?:[\\x20-\\x7e]{0,126}[\\x21-\\x7e])?$", "u");
|
|
18948
|
+
var pattern74 = new RegExp("^[^\\u0000-\\u001f\\u007f-\\u009f\\u2028\\u2029\\u061c\\u200b-\\u200f\\u202a-\\u202e\\u2060\\u2066-\\u2069\\ufeff]+$", "u");
|
|
18949
|
+
var pattern75 = new RegExp("^[\\x21-\\x7e]+$", "u");
|
|
18602
18950
|
function validate66(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
18603
18951
|
;
|
|
18604
18952
|
let vErrors = null;
|
|
@@ -18670,7 +19018,7 @@ function validate66(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
18670
19018
|
validate66.errors = [{ instancePath: instancePath + "/apiKeys/" + i0 + "/id", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/UserApiKeyListResponse/properties/apiKeys/items/properties/id/minLength", keyword: "minLength", params: { limit: 9 }, message: "must NOT have fewer than 9 characters" }];
|
|
18671
19019
|
return false;
|
|
18672
19020
|
} else {
|
|
18673
|
-
if (!
|
|
19021
|
+
if (!pattern71.test(data2)) {
|
|
18674
19022
|
validate66.errors = [{ instancePath: instancePath + "/apiKeys/" + i0 + "/id", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/UserApiKeyListResponse/properties/apiKeys/items/properties/id/pattern", keyword: "pattern", params: { pattern: "^api_key_[A-Za-z0-9_-]+$" }, message: 'must match pattern "^api_key_[A-Za-z0-9_-]+$"' }];
|
|
18675
19023
|
return false;
|
|
18676
19024
|
}
|
|
@@ -18699,7 +19047,7 @@ function validate66(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
18699
19047
|
validate66.errors = [{ instancePath: instancePath + "/apiKeys/" + i0 + "/name", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/UserApiKeyListResponse/properties/apiKeys/items/properties/name/minLength", keyword: "minLength", params: { limit: 1 }, message: "must NOT have fewer than 1 characters" }];
|
|
18700
19048
|
return false;
|
|
18701
19049
|
} else {
|
|
18702
|
-
if (!
|
|
19050
|
+
if (!pattern73.test(data3)) {
|
|
18703
19051
|
validate66.errors = [{ instancePath: instancePath + "/apiKeys/" + i0 + "/name", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/UserApiKeyListResponse/properties/apiKeys/items/properties/name/pattern", keyword: "pattern", params: { pattern: "^[\\x21-\\x7e](?:[\\x20-\\x7e]{0,126}[\\x21-\\x7e])?$" }, message: 'must match pattern "^[\\x21-\\x7e](?:[\\x20-\\x7e]{0,126}[\\x21-\\x7e])?$"' }];
|
|
18704
19052
|
return false;
|
|
18705
19053
|
}
|
|
@@ -18728,7 +19076,7 @@ function validate66(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
18728
19076
|
validate66.errors = [{ instancePath: instancePath + "/apiKeys/" + i0 + "/obfuscatedValue", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/UserApiKeyListResponse/properties/apiKeys/items/properties/obfuscatedValue/minLength", keyword: "minLength", params: { limit: 1 }, message: "must NOT have fewer than 1 characters" }];
|
|
18729
19077
|
return false;
|
|
18730
19078
|
} else {
|
|
18731
|
-
if (!
|
|
19079
|
+
if (!pattern74.test(data4)) {
|
|
18732
19080
|
validate66.errors = [{ instancePath: instancePath + "/apiKeys/" + i0 + "/obfuscatedValue", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/UserApiKeyListResponse/properties/apiKeys/items/properties/obfuscatedValue/pattern", keyword: "pattern", params: { pattern: "^[^\\u0000-\\u001f\\u007f-\\u009f\\u2028\\u2029\\u061c\\u200b-\\u200f\\u202a-\\u202e\\u2060\\u2066-\\u2069\\ufeff]+$" }, message: 'must match pattern "^[^\\u0000-\\u001f\\u007f-\\u009f\\u2028\\u2029\\u061c\\u200b-\\u200f\\u202a-\\u202e\\u2060\\u2066-\\u2069\\ufeff]+$"' }];
|
|
18733
19081
|
return false;
|
|
18734
19082
|
}
|
|
@@ -18768,7 +19116,7 @@ function validate66(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
18768
19116
|
validate66.errors = [{ instancePath: instancePath + "/apiKeys/" + i0 + "/permissions/" + i1, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/UserApiKeyListResponse/properties/apiKeys/items/properties/permissions/items/minLength", keyword: "minLength", params: { limit: 1 }, message: "must NOT have fewer than 1 characters" }];
|
|
18769
19117
|
return false;
|
|
18770
19118
|
} else {
|
|
18771
|
-
if (!
|
|
19119
|
+
if (!pattern75.test(data6)) {
|
|
18772
19120
|
validate66.errors = [{ instancePath: instancePath + "/apiKeys/" + i0 + "/permissions/" + i1, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/UserApiKeyListResponse/properties/apiKeys/items/properties/permissions/items/pattern", keyword: "pattern", params: { pattern: "^[\\x21-\\x7e]+$" }, message: 'must match pattern "^[\\x21-\\x7e]+$"' }];
|
|
18773
19121
|
return false;
|
|
18774
19122
|
}
|
|
@@ -19054,7 +19402,7 @@ function validate66(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
19054
19402
|
}
|
|
19055
19403
|
errors++;
|
|
19056
19404
|
} else {
|
|
19057
|
-
if (!
|
|
19405
|
+
if (!pattern71.test(data11)) {
|
|
19058
19406
|
const err12 = { instancePath: instancePath + "/nextCursor", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/UserApiKeyListResponse/properties/nextCursor/anyOf/0/pattern", keyword: "pattern", params: { pattern: "^api_key_[A-Za-z0-9_-]+$" }, message: 'must match pattern "^api_key_[A-Za-z0-9_-]+$"' };
|
|
19059
19407
|
if (vErrors === null) {
|
|
19060
19408
|
vErrors = [err12];
|
|
@@ -19166,7 +19514,7 @@ function validate67(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
19166
19514
|
validate67.errors = [{ instancePath: instancePath + "/id", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/UserApiKeyMetadata/properties/id/minLength", keyword: "minLength", params: { limit: 9 }, message: "must NOT have fewer than 9 characters" }];
|
|
19167
19515
|
return false;
|
|
19168
19516
|
} else {
|
|
19169
|
-
if (!
|
|
19517
|
+
if (!pattern71.test(data0)) {
|
|
19170
19518
|
validate67.errors = [{ instancePath: instancePath + "/id", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/UserApiKeyMetadata/properties/id/pattern", keyword: "pattern", params: { pattern: "^api_key_[A-Za-z0-9_-]+$" }, message: 'must match pattern "^api_key_[A-Za-z0-9_-]+$"' }];
|
|
19171
19519
|
return false;
|
|
19172
19520
|
}
|
|
@@ -19195,7 +19543,7 @@ function validate67(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
19195
19543
|
validate67.errors = [{ instancePath: instancePath + "/name", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/UserApiKeyMetadata/properties/name/minLength", keyword: "minLength", params: { limit: 1 }, message: "must NOT have fewer than 1 characters" }];
|
|
19196
19544
|
return false;
|
|
19197
19545
|
} else {
|
|
19198
|
-
if (!
|
|
19546
|
+
if (!pattern73.test(data1)) {
|
|
19199
19547
|
validate67.errors = [{ instancePath: instancePath + "/name", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/UserApiKeyMetadata/properties/name/pattern", keyword: "pattern", params: { pattern: "^[\\x21-\\x7e](?:[\\x20-\\x7e]{0,126}[\\x21-\\x7e])?$" }, message: 'must match pattern "^[\\x21-\\x7e](?:[\\x20-\\x7e]{0,126}[\\x21-\\x7e])?$"' }];
|
|
19200
19548
|
return false;
|
|
19201
19549
|
}
|
|
@@ -19224,7 +19572,7 @@ function validate67(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
19224
19572
|
validate67.errors = [{ instancePath: instancePath + "/obfuscatedValue", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/UserApiKeyMetadata/properties/obfuscatedValue/minLength", keyword: "minLength", params: { limit: 1 }, message: "must NOT have fewer than 1 characters" }];
|
|
19225
19573
|
return false;
|
|
19226
19574
|
} else {
|
|
19227
|
-
if (!
|
|
19575
|
+
if (!pattern74.test(data2)) {
|
|
19228
19576
|
validate67.errors = [{ instancePath: instancePath + "/obfuscatedValue", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/UserApiKeyMetadata/properties/obfuscatedValue/pattern", keyword: "pattern", params: { pattern: "^[^\\u0000-\\u001f\\u007f-\\u009f\\u2028\\u2029\\u061c\\u200b-\\u200f\\u202a-\\u202e\\u2060\\u2066-\\u2069\\ufeff]+$" }, message: 'must match pattern "^[^\\u0000-\\u001f\\u007f-\\u009f\\u2028\\u2029\\u061c\\u200b-\\u200f\\u202a-\\u202e\\u2060\\u2066-\\u2069\\ufeff]+$"' }];
|
|
19229
19577
|
return false;
|
|
19230
19578
|
}
|
|
@@ -19264,7 +19612,7 @@ function validate67(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
19264
19612
|
validate67.errors = [{ instancePath: instancePath + "/permissions/" + i0, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/UserApiKeyMetadata/properties/permissions/items/minLength", keyword: "minLength", params: { limit: 1 }, message: "must NOT have fewer than 1 characters" }];
|
|
19265
19613
|
return false;
|
|
19266
19614
|
} else {
|
|
19267
|
-
if (!
|
|
19615
|
+
if (!pattern75.test(data4)) {
|
|
19268
19616
|
validate67.errors = [{ instancePath: instancePath + "/permissions/" + i0, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/UserApiKeyMetadata/properties/permissions/items/pattern", keyword: "pattern", params: { pattern: "^[\\x21-\\x7e]+$" }, message: 'must match pattern "^[\\x21-\\x7e]+$"' }];
|
|
19269
19617
|
return false;
|
|
19270
19618
|
}
|
|
@@ -19545,7 +19893,7 @@ function validate68(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
19545
19893
|
const _errs3 = errors;
|
|
19546
19894
|
if (errors === _errs3) {
|
|
19547
19895
|
if (typeof data0 === "string") {
|
|
19548
|
-
if (!
|
|
19896
|
+
if (!pattern35.test(data0)) {
|
|
19549
19897
|
validate68.errors = [{ instancePath: instancePath + "/requestId", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/UserApiKeyMintRequest/properties/requestId/pattern", keyword: "pattern", params: { pattern: "^[a-f0-9]{64}$" }, message: 'must match pattern "^[a-f0-9]{64}$"' }];
|
|
19550
19898
|
return false;
|
|
19551
19899
|
}
|
|
@@ -19572,7 +19920,7 @@ function validate68(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
19572
19920
|
validate68.errors = [{ instancePath: instancePath + "/name", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/UserApiKeyMintRequest/properties/name/minLength", keyword: "minLength", params: { limit: 1 }, message: "must NOT have fewer than 1 characters" }];
|
|
19573
19921
|
return false;
|
|
19574
19922
|
} else {
|
|
19575
|
-
if (!
|
|
19923
|
+
if (!pattern73.test(data1)) {
|
|
19576
19924
|
validate68.errors = [{ instancePath: instancePath + "/name", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/UserApiKeyMintRequest/properties/name/pattern", keyword: "pattern", params: { pattern: "^[\\x21-\\x7e](?:[\\x20-\\x7e]{0,126}[\\x21-\\x7e])?$" }, message: 'must match pattern "^[\\x21-\\x7e](?:[\\x20-\\x7e]{0,126}[\\x21-\\x7e])?$"' }];
|
|
19577
19925
|
return false;
|
|
19578
19926
|
}
|
|
@@ -19625,7 +19973,7 @@ function validate68(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
19625
19973
|
return errors === 0;
|
|
19626
19974
|
}
|
|
19627
19975
|
validate68.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
|
|
19628
|
-
var
|
|
19976
|
+
var pattern87 = new RegExp("^sk_[\\x21-\\x7e]+(?: [\\x21-\\x7e]+)*$", "u");
|
|
19629
19977
|
function validate69(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
19630
19978
|
;
|
|
19631
19979
|
let vErrors = null;
|
|
@@ -19686,7 +20034,7 @@ function validate69(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
19686
20034
|
validate69.errors = [{ instancePath: instancePath + "/apiKey/id", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/UserApiKeyMintResponse/properties/apiKey/properties/id/minLength", keyword: "minLength", params: { limit: 9 }, message: "must NOT have fewer than 9 characters" }];
|
|
19687
20035
|
return false;
|
|
19688
20036
|
} else {
|
|
19689
|
-
if (!
|
|
20037
|
+
if (!pattern71.test(data1)) {
|
|
19690
20038
|
validate69.errors = [{ instancePath: instancePath + "/apiKey/id", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/UserApiKeyMintResponse/properties/apiKey/properties/id/pattern", keyword: "pattern", params: { pattern: "^api_key_[A-Za-z0-9_-]+$" }, message: 'must match pattern "^api_key_[A-Za-z0-9_-]+$"' }];
|
|
19691
20039
|
return false;
|
|
19692
20040
|
}
|
|
@@ -19715,7 +20063,7 @@ function validate69(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
19715
20063
|
validate69.errors = [{ instancePath: instancePath + "/apiKey/name", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/UserApiKeyMintResponse/properties/apiKey/properties/name/minLength", keyword: "minLength", params: { limit: 1 }, message: "must NOT have fewer than 1 characters" }];
|
|
19716
20064
|
return false;
|
|
19717
20065
|
} else {
|
|
19718
|
-
if (!
|
|
20066
|
+
if (!pattern73.test(data2)) {
|
|
19719
20067
|
validate69.errors = [{ instancePath: instancePath + "/apiKey/name", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/UserApiKeyMintResponse/properties/apiKey/properties/name/pattern", keyword: "pattern", params: { pattern: "^[\\x21-\\x7e](?:[\\x20-\\x7e]{0,126}[\\x21-\\x7e])?$" }, message: 'must match pattern "^[\\x21-\\x7e](?:[\\x20-\\x7e]{0,126}[\\x21-\\x7e])?$"' }];
|
|
19720
20068
|
return false;
|
|
19721
20069
|
}
|
|
@@ -19744,7 +20092,7 @@ function validate69(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
19744
20092
|
validate69.errors = [{ instancePath: instancePath + "/apiKey/obfuscatedValue", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/UserApiKeyMintResponse/properties/apiKey/properties/obfuscatedValue/minLength", keyword: "minLength", params: { limit: 1 }, message: "must NOT have fewer than 1 characters" }];
|
|
19745
20093
|
return false;
|
|
19746
20094
|
} else {
|
|
19747
|
-
if (!
|
|
20095
|
+
if (!pattern74.test(data3)) {
|
|
19748
20096
|
validate69.errors = [{ instancePath: instancePath + "/apiKey/obfuscatedValue", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/UserApiKeyMintResponse/properties/apiKey/properties/obfuscatedValue/pattern", keyword: "pattern", params: { pattern: "^[^\\u0000-\\u001f\\u007f-\\u009f\\u2028\\u2029\\u061c\\u200b-\\u200f\\u202a-\\u202e\\u2060\\u2066-\\u2069\\ufeff]+$" }, message: 'must match pattern "^[^\\u0000-\\u001f\\u007f-\\u009f\\u2028\\u2029\\u061c\\u200b-\\u200f\\u202a-\\u202e\\u2060\\u2066-\\u2069\\ufeff]+$"' }];
|
|
19749
20097
|
return false;
|
|
19750
20098
|
}
|
|
@@ -19784,7 +20132,7 @@ function validate69(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
19784
20132
|
validate69.errors = [{ instancePath: instancePath + "/apiKey/permissions/" + i0, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/UserApiKeyMintResponse/properties/apiKey/properties/permissions/items/minLength", keyword: "minLength", params: { limit: 1 }, message: "must NOT have fewer than 1 characters" }];
|
|
19785
20133
|
return false;
|
|
19786
20134
|
} else {
|
|
19787
|
-
if (!
|
|
20135
|
+
if (!pattern75.test(data5)) {
|
|
19788
20136
|
validate69.errors = [{ instancePath: instancePath + "/apiKey/permissions/" + i0, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/UserApiKeyMintResponse/properties/apiKey/properties/permissions/items/pattern", keyword: "pattern", params: { pattern: "^[\\x21-\\x7e]+$" }, message: 'must match pattern "^[\\x21-\\x7e]+$"' }];
|
|
19789
20137
|
return false;
|
|
19790
20138
|
}
|
|
@@ -20046,7 +20394,7 @@ function validate69(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
20046
20394
|
validate69.errors = [{ instancePath: instancePath + "/secret", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/UserApiKeyMintResponse/properties/secret/minLength", keyword: "minLength", params: { limit: 4 }, message: "must NOT have fewer than 4 characters" }];
|
|
20047
20395
|
return false;
|
|
20048
20396
|
} else {
|
|
20049
|
-
if (!
|
|
20397
|
+
if (!pattern87.test(data10)) {
|
|
20050
20398
|
validate69.errors = [{ instancePath: instancePath + "/secret", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/UserApiKeyMintResponse/properties/secret/pattern", keyword: "pattern", params: { pattern: "^sk_[\\x21-\\x7e]+(?: [\\x21-\\x7e]+)*$" }, message: 'must match pattern "^sk_[\\x21-\\x7e]+(?: [\\x21-\\x7e]+)*$"' }];
|
|
20051
20399
|
return false;
|
|
20052
20400
|
}
|
|
@@ -20106,7 +20454,7 @@ function validate70(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
20106
20454
|
const _errs3 = errors;
|
|
20107
20455
|
if (errors === _errs3) {
|
|
20108
20456
|
if (typeof data0 === "string") {
|
|
20109
|
-
if (!
|
|
20457
|
+
if (!pattern35.test(data0)) {
|
|
20110
20458
|
validate70.errors = [{ instancePath: instancePath + "/requestId", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/UserApiKeyRevokeRequest/properties/requestId/pattern", keyword: "pattern", params: { pattern: "^[a-f0-9]{64}$" }, message: 'must match pattern "^[a-f0-9]{64}$"' }];
|
|
20111
20459
|
return false;
|
|
20112
20460
|
}
|
|
@@ -20168,7 +20516,7 @@ function validate71(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
20168
20516
|
validate71.errors = [{ instancePath: instancePath + "/apiKeyId", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/UserApiKeyRevokeResponse/properties/apiKeyId/minLength", keyword: "minLength", params: { limit: 9 }, message: "must NOT have fewer than 9 characters" }];
|
|
20169
20517
|
return false;
|
|
20170
20518
|
} else {
|
|
20171
|
-
if (!
|
|
20519
|
+
if (!pattern71.test(data0)) {
|
|
20172
20520
|
validate71.errors = [{ instancePath: instancePath + "/apiKeyId", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/UserApiKeyRevokeResponse/properties/apiKeyId/pattern", keyword: "pattern", params: { pattern: "^api_key_[A-Za-z0-9_-]+$" }, message: 'must match pattern "^api_key_[A-Za-z0-9_-]+$"' }];
|
|
20173
20521
|
return false;
|
|
20174
20522
|
}
|
|
@@ -20432,7 +20780,7 @@ function validate73(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
20432
20780
|
}
|
|
20433
20781
|
validate73.evaluated = { "dynamicProps": true, "dynamicItems": false };
|
|
20434
20782
|
var schema139 = { "type": "object", "properties": { "protocol_version": { "type": "number", "const": 1 }, "issuer": { "type": "string", "format": "uri" }, "client_id": { "type": "string", "maxLength": 256, "pattern": "^client_[A-Za-z0-9_-]+$" }, "default_scopes": { "minItems": 4, "maxItems": 4, "type": "array", "items": { "type": "string", "enum": ["openid", "profile", "email", "offline_access"] } } }, "required": ["protocol_version", "issuer", "client_id", "default_scopes"], "additionalProperties": false, "x-primitive-runtime-refinements": ["canonical_https_origin", "exact_workos_connect_device_scopes"] };
|
|
20435
|
-
var
|
|
20783
|
+
var pattern90 = new RegExp("^client_[A-Za-z0-9_-]+$", "u");
|
|
20436
20784
|
function validate74(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
20437
20785
|
;
|
|
20438
20786
|
let vErrors = null;
|
|
@@ -20501,7 +20849,7 @@ function validate74(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
20501
20849
|
validate74.errors = [{ instancePath: instancePath + "/client_id", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/WorkosConnectDeviceConfigurationSuccess/properties/client_id/maxLength", keyword: "maxLength", params: { limit: 256 }, message: "must NOT have more than 256 characters" }];
|
|
20502
20850
|
return false;
|
|
20503
20851
|
} else {
|
|
20504
|
-
if (!
|
|
20852
|
+
if (!pattern90.test(data2)) {
|
|
20505
20853
|
validate74.errors = [{ instancePath: instancePath + "/client_id", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/WorkosConnectDeviceConfigurationSuccess/properties/client_id/pattern", keyword: "pattern", params: { pattern: "^client_[A-Za-z0-9_-]+$" }, message: 'must match pattern "^client_[A-Za-z0-9_-]+$"' }];
|
|
20506
20854
|
return false;
|
|
20507
20855
|
}
|