@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
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
getClient,
|
|
3
3
|
terminalSafeLine
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-6JHKKLA2.js";
|
|
5
5
|
import {
|
|
6
6
|
__commonJS,
|
|
7
7
|
__toESM,
|
|
@@ -297,7 +297,9 @@ function validate22(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
297
297
|
return errors === 0;
|
|
298
298
|
}
|
|
299
299
|
validate22.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
|
|
300
|
-
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": {} };
|
|
300
|
+
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": {} };
|
|
301
|
+
var pattern4 = new RegExp("^dec_[0-9a-f]{8}$", "u");
|
|
302
|
+
var pattern5 = new RegExp("^[0-9a-f]{8}$", "u");
|
|
301
303
|
function validate23(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
302
304
|
;
|
|
303
305
|
let vErrors = null;
|
|
@@ -335,6 +337,11 @@ function validate23(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
335
337
|
if (func1(data1) < 1) {
|
|
336
338
|
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" }];
|
|
337
339
|
return false;
|
|
340
|
+
} else {
|
|
341
|
+
if (!pattern4.test(data1)) {
|
|
342
|
+
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}$"' }];
|
|
343
|
+
return false;
|
|
344
|
+
}
|
|
338
345
|
}
|
|
339
346
|
} else {
|
|
340
347
|
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" }];
|
|
@@ -347,10 +354,18 @@ function validate23(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
347
354
|
}
|
|
348
355
|
if (valid2) {
|
|
349
356
|
if (data0.shortId !== void 0) {
|
|
357
|
+
let data2 = data0.shortId;
|
|
350
358
|
const _errs8 = errors;
|
|
351
|
-
if (
|
|
352
|
-
|
|
353
|
-
|
|
359
|
+
if (errors === _errs8) {
|
|
360
|
+
if (typeof data2 === "string") {
|
|
361
|
+
if (!pattern5.test(data2)) {
|
|
362
|
+
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}$"' }];
|
|
363
|
+
return false;
|
|
364
|
+
}
|
|
365
|
+
} else {
|
|
366
|
+
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" }];
|
|
367
|
+
return false;
|
|
368
|
+
}
|
|
354
369
|
}
|
|
355
370
|
var valid2 = _errs8 === errors;
|
|
356
371
|
} else {
|
|
@@ -543,6 +558,11 @@ function validate23(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
543
558
|
if (func1(data16) < 1) {
|
|
544
559
|
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" }];
|
|
545
560
|
return false;
|
|
561
|
+
} else {
|
|
562
|
+
if (!pattern4.test(data16)) {
|
|
563
|
+
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}$"' }];
|
|
564
|
+
return false;
|
|
565
|
+
}
|
|
546
566
|
}
|
|
547
567
|
} else {
|
|
548
568
|
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" }];
|
|
@@ -555,10 +575,18 @@ function validate23(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
555
575
|
}
|
|
556
576
|
if (valid6) {
|
|
557
577
|
if (data15.shortId !== void 0) {
|
|
578
|
+
let data17 = data15.shortId;
|
|
558
579
|
const _errs40 = errors;
|
|
559
|
-
if (
|
|
560
|
-
|
|
561
|
-
|
|
580
|
+
if (errors === _errs40) {
|
|
581
|
+
if (typeof data17 === "string") {
|
|
582
|
+
if (!pattern5.test(data17)) {
|
|
583
|
+
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}$"' }];
|
|
584
|
+
return false;
|
|
585
|
+
}
|
|
586
|
+
} else {
|
|
587
|
+
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" }];
|
|
588
|
+
return false;
|
|
589
|
+
}
|
|
562
590
|
}
|
|
563
591
|
var valid6 = _errs40 === errors;
|
|
564
592
|
} else {
|
|
@@ -1798,7 +1826,7 @@ function validate25(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
1798
1826
|
return errors === 0;
|
|
1799
1827
|
}
|
|
1800
1828
|
validate25.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
|
|
1801
|
-
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": {} }] };
|
|
1829
|
+
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": {} }] };
|
|
1802
1830
|
function validate26(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
1803
1831
|
;
|
|
1804
1832
|
let vErrors = null;
|
|
@@ -1838,13 +1866,23 @@ function validate26(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
1838
1866
|
vErrors.push(err1);
|
|
1839
1867
|
}
|
|
1840
1868
|
errors++;
|
|
1869
|
+
} else {
|
|
1870
|
+
if (!pattern4.test(data0)) {
|
|
1871
|
+
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}$"' };
|
|
1872
|
+
if (vErrors === null) {
|
|
1873
|
+
vErrors = [err2];
|
|
1874
|
+
} else {
|
|
1875
|
+
vErrors.push(err2);
|
|
1876
|
+
}
|
|
1877
|
+
errors++;
|
|
1878
|
+
}
|
|
1841
1879
|
}
|
|
1842
1880
|
} else {
|
|
1843
|
-
const
|
|
1881
|
+
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" };
|
|
1844
1882
|
if (vErrors === null) {
|
|
1845
|
-
vErrors = [
|
|
1883
|
+
vErrors = [err3];
|
|
1846
1884
|
} else {
|
|
1847
|
-
vErrors.push(
|
|
1885
|
+
vErrors.push(err3);
|
|
1848
1886
|
}
|
|
1849
1887
|
errors++;
|
|
1850
1888
|
}
|
|
@@ -1855,15 +1893,28 @@ function validate26(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
1855
1893
|
}
|
|
1856
1894
|
if (valid2) {
|
|
1857
1895
|
if (data.shortId !== void 0) {
|
|
1896
|
+
let data1 = data.shortId;
|
|
1858
1897
|
const _errs7 = errors;
|
|
1859
|
-
if (
|
|
1860
|
-
|
|
1861
|
-
|
|
1862
|
-
|
|
1898
|
+
if (errors === _errs7) {
|
|
1899
|
+
if (typeof data1 === "string") {
|
|
1900
|
+
if (!pattern5.test(data1)) {
|
|
1901
|
+
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}$"' };
|
|
1902
|
+
if (vErrors === null) {
|
|
1903
|
+
vErrors = [err4];
|
|
1904
|
+
} else {
|
|
1905
|
+
vErrors.push(err4);
|
|
1906
|
+
}
|
|
1907
|
+
errors++;
|
|
1908
|
+
}
|
|
1863
1909
|
} else {
|
|
1864
|
-
|
|
1910
|
+
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" };
|
|
1911
|
+
if (vErrors === null) {
|
|
1912
|
+
vErrors = [err5];
|
|
1913
|
+
} else {
|
|
1914
|
+
vErrors.push(err5);
|
|
1915
|
+
}
|
|
1916
|
+
errors++;
|
|
1865
1917
|
}
|
|
1866
|
-
errors++;
|
|
1867
1918
|
}
|
|
1868
1919
|
var valid2 = _errs7 === errors;
|
|
1869
1920
|
} else {
|
|
@@ -1874,20 +1925,20 @@ function validate26(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
1874
1925
|
let data2 = data.outcome;
|
|
1875
1926
|
const _errs9 = errors;
|
|
1876
1927
|
if (typeof data2 !== "string") {
|
|
1877
|
-
const
|
|
1928
|
+
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" };
|
|
1878
1929
|
if (vErrors === null) {
|
|
1879
|
-
vErrors = [
|
|
1930
|
+
vErrors = [err6];
|
|
1880
1931
|
} else {
|
|
1881
|
-
vErrors.push(
|
|
1932
|
+
vErrors.push(err6);
|
|
1882
1933
|
}
|
|
1883
1934
|
errors++;
|
|
1884
1935
|
}
|
|
1885
1936
|
if (!(data2 === "stale" || data2 === "confirmed" || data2 === "corrected")) {
|
|
1886
|
-
const
|
|
1937
|
+
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" };
|
|
1887
1938
|
if (vErrors === null) {
|
|
1888
|
-
vErrors = [
|
|
1939
|
+
vErrors = [err7];
|
|
1889
1940
|
} else {
|
|
1890
|
-
vErrors.push(
|
|
1941
|
+
vErrors.push(err7);
|
|
1891
1942
|
}
|
|
1892
1943
|
errors++;
|
|
1893
1944
|
}
|
|
@@ -1899,11 +1950,11 @@ function validate26(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
1899
1950
|
}
|
|
1900
1951
|
}
|
|
1901
1952
|
} else {
|
|
1902
|
-
const
|
|
1953
|
+
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" };
|
|
1903
1954
|
if (vErrors === null) {
|
|
1904
|
-
vErrors = [
|
|
1955
|
+
vErrors = [err8];
|
|
1905
1956
|
} else {
|
|
1906
|
-
vErrors.push(
|
|
1957
|
+
vErrors.push(err8);
|
|
1907
1958
|
}
|
|
1908
1959
|
errors++;
|
|
1909
1960
|
}
|
|
@@ -1918,11 +1969,11 @@ function validate26(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
1918
1969
|
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
1919
1970
|
let missing1;
|
|
1920
1971
|
if (data.decisionId === void 0 && (missing1 = "decisionId") || data.outcome === void 0 && (missing1 = "outcome") || data.respondedAt === void 0 && (missing1 = "respondedAt")) {
|
|
1921
|
-
const
|
|
1972
|
+
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 + "'" };
|
|
1922
1973
|
if (vErrors === null) {
|
|
1923
|
-
vErrors = [
|
|
1974
|
+
vErrors = [err9];
|
|
1924
1975
|
} else {
|
|
1925
|
-
vErrors.push(
|
|
1976
|
+
vErrors.push(err9);
|
|
1926
1977
|
}
|
|
1927
1978
|
errors++;
|
|
1928
1979
|
} else {
|
|
@@ -1932,20 +1983,30 @@ function validate26(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
1932
1983
|
if (errors === _errs14) {
|
|
1933
1984
|
if (typeof data3 === "string") {
|
|
1934
1985
|
if (func1(data3) < 1) {
|
|
1935
|
-
const
|
|
1986
|
+
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" };
|
|
1936
1987
|
if (vErrors === null) {
|
|
1937
|
-
vErrors = [
|
|
1988
|
+
vErrors = [err10];
|
|
1938
1989
|
} else {
|
|
1939
|
-
vErrors.push(
|
|
1990
|
+
vErrors.push(err10);
|
|
1940
1991
|
}
|
|
1941
1992
|
errors++;
|
|
1993
|
+
} else {
|
|
1994
|
+
if (!pattern4.test(data3)) {
|
|
1995
|
+
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}$"' };
|
|
1996
|
+
if (vErrors === null) {
|
|
1997
|
+
vErrors = [err11];
|
|
1998
|
+
} else {
|
|
1999
|
+
vErrors.push(err11);
|
|
2000
|
+
}
|
|
2001
|
+
errors++;
|
|
2002
|
+
}
|
|
1942
2003
|
}
|
|
1943
2004
|
} else {
|
|
1944
|
-
const
|
|
2005
|
+
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" };
|
|
1945
2006
|
if (vErrors === null) {
|
|
1946
|
-
vErrors = [
|
|
2007
|
+
vErrors = [err12];
|
|
1947
2008
|
} else {
|
|
1948
|
-
vErrors.push(
|
|
2009
|
+
vErrors.push(err12);
|
|
1949
2010
|
}
|
|
1950
2011
|
errors++;
|
|
1951
2012
|
}
|
|
@@ -1956,15 +2017,28 @@ function validate26(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
1956
2017
|
}
|
|
1957
2018
|
if (valid3) {
|
|
1958
2019
|
if (data.shortId !== void 0) {
|
|
2020
|
+
let data4 = data.shortId;
|
|
1959
2021
|
const _errs16 = errors;
|
|
1960
|
-
if (
|
|
1961
|
-
|
|
1962
|
-
|
|
1963
|
-
|
|
2022
|
+
if (errors === _errs16) {
|
|
2023
|
+
if (typeof data4 === "string") {
|
|
2024
|
+
if (!pattern5.test(data4)) {
|
|
2025
|
+
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}$"' };
|
|
2026
|
+
if (vErrors === null) {
|
|
2027
|
+
vErrors = [err13];
|
|
2028
|
+
} else {
|
|
2029
|
+
vErrors.push(err13);
|
|
2030
|
+
}
|
|
2031
|
+
errors++;
|
|
2032
|
+
}
|
|
1964
2033
|
} else {
|
|
1965
|
-
|
|
2034
|
+
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" };
|
|
2035
|
+
if (vErrors === null) {
|
|
2036
|
+
vErrors = [err14];
|
|
2037
|
+
} else {
|
|
2038
|
+
vErrors.push(err14);
|
|
2039
|
+
}
|
|
2040
|
+
errors++;
|
|
1966
2041
|
}
|
|
1967
|
-
errors++;
|
|
1968
2042
|
}
|
|
1969
2043
|
var valid3 = _errs16 === errors;
|
|
1970
2044
|
} else {
|
|
@@ -1975,20 +2049,20 @@ function validate26(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
1975
2049
|
let data5 = data.outcome;
|
|
1976
2050
|
const _errs18 = errors;
|
|
1977
2051
|
if (typeof data5 !== "string") {
|
|
1978
|
-
const
|
|
2052
|
+
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" };
|
|
1979
2053
|
if (vErrors === null) {
|
|
1980
|
-
vErrors = [
|
|
2054
|
+
vErrors = [err15];
|
|
1981
2055
|
} else {
|
|
1982
|
-
vErrors.push(
|
|
2056
|
+
vErrors.push(err15);
|
|
1983
2057
|
}
|
|
1984
2058
|
errors++;
|
|
1985
2059
|
}
|
|
1986
2060
|
if ("already_responded" !== data5) {
|
|
1987
|
-
const
|
|
2061
|
+
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" };
|
|
1988
2062
|
if (vErrors === null) {
|
|
1989
|
-
vErrors = [
|
|
2063
|
+
vErrors = [err16];
|
|
1990
2064
|
} else {
|
|
1991
|
-
vErrors.push(
|
|
2065
|
+
vErrors.push(err16);
|
|
1992
2066
|
}
|
|
1993
2067
|
errors++;
|
|
1994
2068
|
}
|
|
@@ -2000,11 +2074,11 @@ function validate26(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
2000
2074
|
if (data.confirmed !== void 0) {
|
|
2001
2075
|
const _errs20 = errors;
|
|
2002
2076
|
if (typeof data.confirmed !== "boolean") {
|
|
2003
|
-
const
|
|
2077
|
+
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" };
|
|
2004
2078
|
if (vErrors === null) {
|
|
2005
|
-
vErrors = [
|
|
2079
|
+
vErrors = [err17];
|
|
2006
2080
|
} else {
|
|
2007
|
-
vErrors.push(
|
|
2081
|
+
vErrors.push(err17);
|
|
2008
2082
|
}
|
|
2009
2083
|
errors++;
|
|
2010
2084
|
}
|
|
@@ -2017,11 +2091,11 @@ function validate26(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
2017
2091
|
let data7 = data.respondedAt;
|
|
2018
2092
|
const _errs22 = errors;
|
|
2019
2093
|
if (!(typeof data7 == "number" && isFinite(data7))) {
|
|
2020
|
-
const
|
|
2094
|
+
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" };
|
|
2021
2095
|
if (vErrors === null) {
|
|
2022
|
-
vErrors = [
|
|
2096
|
+
vErrors = [err18];
|
|
2023
2097
|
} else {
|
|
2024
|
-
vErrors.push(
|
|
2098
|
+
vErrors.push(err18);
|
|
2025
2099
|
}
|
|
2026
2100
|
errors++;
|
|
2027
2101
|
}
|
|
@@ -2035,11 +2109,11 @@ function validate26(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
2035
2109
|
}
|
|
2036
2110
|
}
|
|
2037
2111
|
} else {
|
|
2038
|
-
const
|
|
2112
|
+
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" };
|
|
2039
2113
|
if (vErrors === null) {
|
|
2040
|
-
vErrors = [
|
|
2114
|
+
vErrors = [err19];
|
|
2041
2115
|
} else {
|
|
2042
|
-
vErrors.push(
|
|
2116
|
+
vErrors.push(err19);
|
|
2043
2117
|
}
|
|
2044
2118
|
errors++;
|
|
2045
2119
|
}
|
|
@@ -2056,11 +2130,11 @@ function validate26(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
2056
2130
|
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
2057
2131
|
let missing2;
|
|
2058
2132
|
if (data.decisionId === void 0 && (missing2 = "decisionId") || data.outcome === void 0 && (missing2 = "outcome")) {
|
|
2059
|
-
const
|
|
2133
|
+
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 + "'" };
|
|
2060
2134
|
if (vErrors === null) {
|
|
2061
|
-
vErrors = [
|
|
2135
|
+
vErrors = [err20];
|
|
2062
2136
|
} else {
|
|
2063
|
-
vErrors.push(
|
|
2137
|
+
vErrors.push(err20);
|
|
2064
2138
|
}
|
|
2065
2139
|
errors++;
|
|
2066
2140
|
} else {
|
|
@@ -2070,20 +2144,30 @@ function validate26(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
2070
2144
|
if (errors === _errs27) {
|
|
2071
2145
|
if (typeof data8 === "string") {
|
|
2072
2146
|
if (func1(data8) < 1) {
|
|
2073
|
-
const
|
|
2147
|
+
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" };
|
|
2074
2148
|
if (vErrors === null) {
|
|
2075
|
-
vErrors = [
|
|
2149
|
+
vErrors = [err21];
|
|
2076
2150
|
} else {
|
|
2077
|
-
vErrors.push(
|
|
2151
|
+
vErrors.push(err21);
|
|
2078
2152
|
}
|
|
2079
2153
|
errors++;
|
|
2154
|
+
} else {
|
|
2155
|
+
if (!pattern4.test(data8)) {
|
|
2156
|
+
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}$"' };
|
|
2157
|
+
if (vErrors === null) {
|
|
2158
|
+
vErrors = [err22];
|
|
2159
|
+
} else {
|
|
2160
|
+
vErrors.push(err22);
|
|
2161
|
+
}
|
|
2162
|
+
errors++;
|
|
2163
|
+
}
|
|
2080
2164
|
}
|
|
2081
2165
|
} else {
|
|
2082
|
-
const
|
|
2166
|
+
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" };
|
|
2083
2167
|
if (vErrors === null) {
|
|
2084
|
-
vErrors = [
|
|
2168
|
+
vErrors = [err23];
|
|
2085
2169
|
} else {
|
|
2086
|
-
vErrors.push(
|
|
2170
|
+
vErrors.push(err23);
|
|
2087
2171
|
}
|
|
2088
2172
|
errors++;
|
|
2089
2173
|
}
|
|
@@ -2094,15 +2178,28 @@ function validate26(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
2094
2178
|
}
|
|
2095
2179
|
if (valid4) {
|
|
2096
2180
|
if (data.shortId !== void 0) {
|
|
2181
|
+
let data9 = data.shortId;
|
|
2097
2182
|
const _errs29 = errors;
|
|
2098
|
-
if (
|
|
2099
|
-
|
|
2100
|
-
|
|
2101
|
-
|
|
2183
|
+
if (errors === _errs29) {
|
|
2184
|
+
if (typeof data9 === "string") {
|
|
2185
|
+
if (!pattern5.test(data9)) {
|
|
2186
|
+
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}$"' };
|
|
2187
|
+
if (vErrors === null) {
|
|
2188
|
+
vErrors = [err24];
|
|
2189
|
+
} else {
|
|
2190
|
+
vErrors.push(err24);
|
|
2191
|
+
}
|
|
2192
|
+
errors++;
|
|
2193
|
+
}
|
|
2102
2194
|
} else {
|
|
2103
|
-
|
|
2195
|
+
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" };
|
|
2196
|
+
if (vErrors === null) {
|
|
2197
|
+
vErrors = [err25];
|
|
2198
|
+
} else {
|
|
2199
|
+
vErrors.push(err25);
|
|
2200
|
+
}
|
|
2201
|
+
errors++;
|
|
2104
2202
|
}
|
|
2105
|
-
errors++;
|
|
2106
2203
|
}
|
|
2107
2204
|
var valid4 = _errs29 === errors;
|
|
2108
2205
|
} else {
|
|
@@ -2113,20 +2210,20 @@ function validate26(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
2113
2210
|
let data10 = data.outcome;
|
|
2114
2211
|
const _errs31 = errors;
|
|
2115
2212
|
if (typeof data10 !== "string") {
|
|
2116
|
-
const
|
|
2213
|
+
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" };
|
|
2117
2214
|
if (vErrors === null) {
|
|
2118
|
-
vErrors = [
|
|
2215
|
+
vErrors = [err26];
|
|
2119
2216
|
} else {
|
|
2120
|
-
vErrors.push(
|
|
2217
|
+
vErrors.push(err26);
|
|
2121
2218
|
}
|
|
2122
2219
|
errors++;
|
|
2123
2220
|
}
|
|
2124
2221
|
if ("no_pending_prompt" !== data10) {
|
|
2125
|
-
const
|
|
2222
|
+
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" };
|
|
2126
2223
|
if (vErrors === null) {
|
|
2127
|
-
vErrors = [
|
|
2224
|
+
vErrors = [err27];
|
|
2128
2225
|
} else {
|
|
2129
|
-
vErrors.push(
|
|
2226
|
+
vErrors.push(err27);
|
|
2130
2227
|
}
|
|
2131
2228
|
errors++;
|
|
2132
2229
|
}
|
|
@@ -2138,11 +2235,11 @@ function validate26(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
2138
2235
|
}
|
|
2139
2236
|
}
|
|
2140
2237
|
} else {
|
|
2141
|
-
const
|
|
2238
|
+
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" };
|
|
2142
2239
|
if (vErrors === null) {
|
|
2143
|
-
vErrors = [
|
|
2240
|
+
vErrors = [err28];
|
|
2144
2241
|
} else {
|
|
2145
|
-
vErrors.push(
|
|
2242
|
+
vErrors.push(err28);
|
|
2146
2243
|
}
|
|
2147
2244
|
errors++;
|
|
2148
2245
|
}
|
|
@@ -2155,11 +2252,11 @@ function validate26(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
2155
2252
|
}
|
|
2156
2253
|
}
|
|
2157
2254
|
if (!valid1) {
|
|
2158
|
-
const
|
|
2255
|
+
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" };
|
|
2159
2256
|
if (vErrors === null) {
|
|
2160
|
-
vErrors = [
|
|
2257
|
+
vErrors = [err29];
|
|
2161
2258
|
} else {
|
|
2162
|
-
vErrors.push(
|
|
2259
|
+
vErrors.push(err29);
|
|
2163
2260
|
}
|
|
2164
2261
|
errors++;
|
|
2165
2262
|
validate26.errors = vErrors;
|
|
@@ -3128,7 +3225,7 @@ function validate27(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
3128
3225
|
return errors === 0;
|
|
3129
3226
|
}
|
|
3130
3227
|
validate27.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
|
|
3131
|
-
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": {} };
|
|
3228
|
+
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": {} };
|
|
3132
3229
|
function validate28(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
3133
3230
|
;
|
|
3134
3231
|
let vErrors = null;
|
|
@@ -3156,6 +3253,11 @@ function validate28(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
3156
3253
|
if (func1(data0) < 1) {
|
|
3157
3254
|
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" }];
|
|
3158
3255
|
return false;
|
|
3256
|
+
} else {
|
|
3257
|
+
if (!pattern4.test(data0)) {
|
|
3258
|
+
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}$"' }];
|
|
3259
|
+
return false;
|
|
3260
|
+
}
|
|
3159
3261
|
}
|
|
3160
3262
|
} else {
|
|
3161
3263
|
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" }];
|
|
@@ -3168,10 +3270,18 @@ function validate28(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
3168
3270
|
}
|
|
3169
3271
|
if (valid1) {
|
|
3170
3272
|
if (data.shortId !== void 0) {
|
|
3273
|
+
let data1 = data.shortId;
|
|
3171
3274
|
const _errs5 = errors;
|
|
3172
|
-
if (
|
|
3173
|
-
|
|
3174
|
-
|
|
3275
|
+
if (errors === _errs5) {
|
|
3276
|
+
if (typeof data1 === "string") {
|
|
3277
|
+
if (!pattern5.test(data1)) {
|
|
3278
|
+
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}$"' }];
|
|
3279
|
+
return false;
|
|
3280
|
+
}
|
|
3281
|
+
} else {
|
|
3282
|
+
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" }];
|
|
3283
|
+
return false;
|
|
3284
|
+
}
|
|
3175
3285
|
}
|
|
3176
3286
|
var valid1 = _errs5 === errors;
|
|
3177
3287
|
} else {
|
|
@@ -3913,7 +4023,7 @@ function validate28(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
3913
4023
|
return errors === 0;
|
|
3914
4024
|
}
|
|
3915
4025
|
validate28.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
|
|
3916
|
-
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": {} };
|
|
4026
|
+
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": {} };
|
|
3917
4027
|
function validate29(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
3918
4028
|
;
|
|
3919
4029
|
let vErrors = null;
|
|
@@ -3951,6 +4061,11 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
3951
4061
|
if (func1(data1) < 1) {
|
|
3952
4062
|
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" }];
|
|
3953
4063
|
return false;
|
|
4064
|
+
} else {
|
|
4065
|
+
if (!pattern4.test(data1)) {
|
|
4066
|
+
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}$"' }];
|
|
4067
|
+
return false;
|
|
4068
|
+
}
|
|
3954
4069
|
}
|
|
3955
4070
|
} else {
|
|
3956
4071
|
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" }];
|
|
@@ -3963,10 +4078,18 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
3963
4078
|
}
|
|
3964
4079
|
if (valid2) {
|
|
3965
4080
|
if (data0.shortId !== void 0) {
|
|
4081
|
+
let data2 = data0.shortId;
|
|
3966
4082
|
const _errs8 = errors;
|
|
3967
|
-
if (
|
|
3968
|
-
|
|
3969
|
-
|
|
4083
|
+
if (errors === _errs8) {
|
|
4084
|
+
if (typeof data2 === "string") {
|
|
4085
|
+
if (!pattern5.test(data2)) {
|
|
4086
|
+
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}$"' }];
|
|
4087
|
+
return false;
|
|
4088
|
+
}
|
|
4089
|
+
} else {
|
|
4090
|
+
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" }];
|
|
4091
|
+
return false;
|
|
4092
|
+
}
|
|
3970
4093
|
}
|
|
3971
4094
|
var valid2 = _errs8 === errors;
|
|
3972
4095
|
} else {
|
|
@@ -4137,13 +4260,23 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
4137
4260
|
vErrors.push(err0);
|
|
4138
4261
|
}
|
|
4139
4262
|
errors++;
|
|
4263
|
+
} else {
|
|
4264
|
+
if (!pattern4.test(data14)) {
|
|
4265
|
+
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}$"' };
|
|
4266
|
+
if (vErrors === null) {
|
|
4267
|
+
vErrors = [err1];
|
|
4268
|
+
} else {
|
|
4269
|
+
vErrors.push(err1);
|
|
4270
|
+
}
|
|
4271
|
+
errors++;
|
|
4272
|
+
}
|
|
4140
4273
|
}
|
|
4141
4274
|
} else {
|
|
4142
|
-
const
|
|
4275
|
+
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" };
|
|
4143
4276
|
if (vErrors === null) {
|
|
4144
|
-
vErrors = [
|
|
4277
|
+
vErrors = [err2];
|
|
4145
4278
|
} else {
|
|
4146
|
-
vErrors.push(
|
|
4279
|
+
vErrors.push(err2);
|
|
4147
4280
|
}
|
|
4148
4281
|
errors++;
|
|
4149
4282
|
}
|
|
@@ -4152,22 +4285,22 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
4152
4285
|
valid5 = valid5 || _valid0;
|
|
4153
4286
|
const _errs36 = errors;
|
|
4154
4287
|
if (data14 !== null) {
|
|
4155
|
-
const
|
|
4288
|
+
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" };
|
|
4156
4289
|
if (vErrors === null) {
|
|
4157
|
-
vErrors = [
|
|
4290
|
+
vErrors = [err3];
|
|
4158
4291
|
} else {
|
|
4159
|
-
vErrors.push(
|
|
4292
|
+
vErrors.push(err3);
|
|
4160
4293
|
}
|
|
4161
4294
|
errors++;
|
|
4162
4295
|
}
|
|
4163
4296
|
var _valid0 = _errs36 === errors;
|
|
4164
4297
|
valid5 = valid5 || _valid0;
|
|
4165
4298
|
if (!valid5) {
|
|
4166
|
-
const
|
|
4299
|
+
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" };
|
|
4167
4300
|
if (vErrors === null) {
|
|
4168
|
-
vErrors = [
|
|
4301
|
+
vErrors = [err4];
|
|
4169
4302
|
} else {
|
|
4170
|
-
vErrors.push(
|
|
4303
|
+
vErrors.push(err4);
|
|
4171
4304
|
}
|
|
4172
4305
|
errors++;
|
|
4173
4306
|
validate29.errors = vErrors;
|
|
@@ -4473,6 +4606,11 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
4473
4606
|
if (func1(data34) < 1) {
|
|
4474
4607
|
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" }];
|
|
4475
4608
|
return false;
|
|
4609
|
+
} else {
|
|
4610
|
+
if (!pattern4.test(data34)) {
|
|
4611
|
+
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}$"' }];
|
|
4612
|
+
return false;
|
|
4613
|
+
}
|
|
4476
4614
|
}
|
|
4477
4615
|
} else {
|
|
4478
4616
|
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" }];
|
|
@@ -4485,10 +4623,18 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
4485
4623
|
}
|
|
4486
4624
|
if (valid10) {
|
|
4487
4625
|
if (data33.shortId !== void 0) {
|
|
4626
|
+
let data35 = data33.shortId;
|
|
4488
4627
|
const _errs80 = errors;
|
|
4489
|
-
if (
|
|
4490
|
-
|
|
4491
|
-
|
|
4628
|
+
if (errors === _errs80) {
|
|
4629
|
+
if (typeof data35 === "string") {
|
|
4630
|
+
if (!pattern5.test(data35)) {
|
|
4631
|
+
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}$"' }];
|
|
4632
|
+
return false;
|
|
4633
|
+
}
|
|
4634
|
+
} else {
|
|
4635
|
+
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" }];
|
|
4636
|
+
return false;
|
|
4637
|
+
}
|
|
4492
4638
|
}
|
|
4493
4639
|
var valid10 = _errs80 === errors;
|
|
4494
4640
|
} else {
|
|
@@ -4607,6 +4753,11 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
4607
4753
|
if (func1(data43) < 1) {
|
|
4608
4754
|
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" }];
|
|
4609
4755
|
return false;
|
|
4756
|
+
} else {
|
|
4757
|
+
if (!pattern4.test(data43)) {
|
|
4758
|
+
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}$"' }];
|
|
4759
|
+
return false;
|
|
4760
|
+
}
|
|
4610
4761
|
}
|
|
4611
4762
|
} else {
|
|
4612
4763
|
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" }];
|
|
@@ -4619,10 +4770,18 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
4619
4770
|
}
|
|
4620
4771
|
if (valid12) {
|
|
4621
4772
|
if (data42.shortId !== void 0) {
|
|
4773
|
+
let data44 = data42.shortId;
|
|
4622
4774
|
const _errs99 = errors;
|
|
4623
|
-
if (
|
|
4624
|
-
|
|
4625
|
-
|
|
4775
|
+
if (errors === _errs99) {
|
|
4776
|
+
if (typeof data44 === "string") {
|
|
4777
|
+
if (!pattern5.test(data44)) {
|
|
4778
|
+
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}$"' }];
|
|
4779
|
+
return false;
|
|
4780
|
+
}
|
|
4781
|
+
} else {
|
|
4782
|
+
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" }];
|
|
4783
|
+
return false;
|
|
4784
|
+
}
|
|
4626
4785
|
}
|
|
4627
4786
|
var valid12 = _errs99 === errors;
|
|
4628
4787
|
} else {
|
|
@@ -4944,22 +5103,22 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
4944
5103
|
if (data64 && typeof data64 == "object" && !Array.isArray(data64)) {
|
|
4945
5104
|
let missing7;
|
|
4946
5105
|
if (data64.kind === void 0 && (missing7 = "kind") || data64.userId === void 0 && (missing7 = "userId") || data64.displayName === void 0 && (missing7 = "displayName")) {
|
|
4947
|
-
const
|
|
5106
|
+
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 + "'" };
|
|
4948
5107
|
if (vErrors === null) {
|
|
4949
|
-
vErrors = [
|
|
5108
|
+
vErrors = [err5];
|
|
4950
5109
|
} else {
|
|
4951
|
-
vErrors.push(
|
|
5110
|
+
vErrors.push(err5);
|
|
4952
5111
|
}
|
|
4953
5112
|
errors++;
|
|
4954
5113
|
} else {
|
|
4955
5114
|
const _errs146 = errors;
|
|
4956
5115
|
for (const key0 in data64) {
|
|
4957
5116
|
if (!(key0 === "kind" || key0 === "userId" || key0 === "displayName")) {
|
|
4958
|
-
const
|
|
5117
|
+
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" };
|
|
4959
5118
|
if (vErrors === null) {
|
|
4960
|
-
vErrors = [
|
|
5119
|
+
vErrors = [err6];
|
|
4961
5120
|
} else {
|
|
4962
|
-
vErrors.push(
|
|
5121
|
+
vErrors.push(err6);
|
|
4963
5122
|
}
|
|
4964
5123
|
errors++;
|
|
4965
5124
|
break;
|
|
@@ -4970,20 +5129,20 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
4970
5129
|
let data65 = data64.kind;
|
|
4971
5130
|
const _errs147 = errors;
|
|
4972
5131
|
if (typeof data65 !== "string") {
|
|
4973
|
-
const
|
|
5132
|
+
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" };
|
|
4974
5133
|
if (vErrors === null) {
|
|
4975
|
-
vErrors = [
|
|
5134
|
+
vErrors = [err7];
|
|
4976
5135
|
} else {
|
|
4977
|
-
vErrors.push(
|
|
5136
|
+
vErrors.push(err7);
|
|
4978
5137
|
}
|
|
4979
5138
|
errors++;
|
|
4980
5139
|
}
|
|
4981
5140
|
if ("user" !== data65) {
|
|
4982
|
-
const
|
|
5141
|
+
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" };
|
|
4983
5142
|
if (vErrors === null) {
|
|
4984
|
-
vErrors = [
|
|
5143
|
+
vErrors = [err8];
|
|
4985
5144
|
} else {
|
|
4986
|
-
vErrors.push(
|
|
5145
|
+
vErrors.push(err8);
|
|
4987
5146
|
}
|
|
4988
5147
|
errors++;
|
|
4989
5148
|
}
|
|
@@ -4998,20 +5157,20 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
4998
5157
|
if (errors === _errs149) {
|
|
4999
5158
|
if (typeof data66 === "string") {
|
|
5000
5159
|
if (func1(data66) < 1) {
|
|
5001
|
-
const
|
|
5160
|
+
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" };
|
|
5002
5161
|
if (vErrors === null) {
|
|
5003
|
-
vErrors = [
|
|
5162
|
+
vErrors = [err9];
|
|
5004
5163
|
} else {
|
|
5005
|
-
vErrors.push(
|
|
5164
|
+
vErrors.push(err9);
|
|
5006
5165
|
}
|
|
5007
5166
|
errors++;
|
|
5008
5167
|
}
|
|
5009
5168
|
} else {
|
|
5010
|
-
const
|
|
5169
|
+
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" };
|
|
5011
5170
|
if (vErrors === null) {
|
|
5012
|
-
vErrors = [
|
|
5171
|
+
vErrors = [err10];
|
|
5013
5172
|
} else {
|
|
5014
|
-
vErrors.push(
|
|
5173
|
+
vErrors.push(err10);
|
|
5015
5174
|
}
|
|
5016
5175
|
errors++;
|
|
5017
5176
|
}
|
|
@@ -5024,11 +5183,11 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
5024
5183
|
if (data64.displayName !== void 0) {
|
|
5025
5184
|
const _errs151 = errors;
|
|
5026
5185
|
if (typeof data64.displayName !== "string") {
|
|
5027
|
-
const
|
|
5186
|
+
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" };
|
|
5028
5187
|
if (vErrors === null) {
|
|
5029
|
-
vErrors = [
|
|
5188
|
+
vErrors = [err11];
|
|
5030
5189
|
} else {
|
|
5031
|
-
vErrors.push(
|
|
5190
|
+
vErrors.push(err11);
|
|
5032
5191
|
}
|
|
5033
5192
|
errors++;
|
|
5034
5193
|
}
|
|
@@ -5041,11 +5200,11 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
5041
5200
|
}
|
|
5042
5201
|
}
|
|
5043
5202
|
} else {
|
|
5044
|
-
const
|
|
5203
|
+
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" };
|
|
5045
5204
|
if (vErrors === null) {
|
|
5046
|
-
vErrors = [
|
|
5205
|
+
vErrors = [err12];
|
|
5047
5206
|
} else {
|
|
5048
|
-
vErrors.push(
|
|
5207
|
+
vErrors.push(err12);
|
|
5049
5208
|
}
|
|
5050
5209
|
errors++;
|
|
5051
5210
|
}
|
|
@@ -5061,22 +5220,22 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
5061
5220
|
if (data64 && typeof data64 == "object" && !Array.isArray(data64)) {
|
|
5062
5221
|
let missing8;
|
|
5063
5222
|
if (data64.kind === void 0 && (missing8 = "kind") || data64.role === void 0 && (missing8 = "role")) {
|
|
5064
|
-
const
|
|
5223
|
+
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 + "'" };
|
|
5065
5224
|
if (vErrors === null) {
|
|
5066
|
-
vErrors = [
|
|
5225
|
+
vErrors = [err13];
|
|
5067
5226
|
} else {
|
|
5068
|
-
vErrors.push(
|
|
5227
|
+
vErrors.push(err13);
|
|
5069
5228
|
}
|
|
5070
5229
|
errors++;
|
|
5071
5230
|
} else {
|
|
5072
5231
|
const _errs155 = errors;
|
|
5073
5232
|
for (const key1 in data64) {
|
|
5074
5233
|
if (!(key1 === "kind" || key1 === "role")) {
|
|
5075
|
-
const
|
|
5234
|
+
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" };
|
|
5076
5235
|
if (vErrors === null) {
|
|
5077
|
-
vErrors = [
|
|
5236
|
+
vErrors = [err14];
|
|
5078
5237
|
} else {
|
|
5079
|
-
vErrors.push(
|
|
5238
|
+
vErrors.push(err14);
|
|
5080
5239
|
}
|
|
5081
5240
|
errors++;
|
|
5082
5241
|
break;
|
|
@@ -5087,20 +5246,20 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
5087
5246
|
let data68 = data64.kind;
|
|
5088
5247
|
const _errs156 = errors;
|
|
5089
5248
|
if (typeof data68 !== "string") {
|
|
5090
|
-
const
|
|
5249
|
+
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" };
|
|
5091
5250
|
if (vErrors === null) {
|
|
5092
|
-
vErrors = [
|
|
5251
|
+
vErrors = [err15];
|
|
5093
5252
|
} else {
|
|
5094
|
-
vErrors.push(
|
|
5253
|
+
vErrors.push(err15);
|
|
5095
5254
|
}
|
|
5096
5255
|
errors++;
|
|
5097
5256
|
}
|
|
5098
5257
|
if ("role" !== data68) {
|
|
5099
|
-
const
|
|
5258
|
+
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" };
|
|
5100
5259
|
if (vErrors === null) {
|
|
5101
|
-
vErrors = [
|
|
5260
|
+
vErrors = [err16];
|
|
5102
5261
|
} else {
|
|
5103
|
-
vErrors.push(
|
|
5262
|
+
vErrors.push(err16);
|
|
5104
5263
|
}
|
|
5105
5264
|
errors++;
|
|
5106
5265
|
}
|
|
@@ -5113,20 +5272,20 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
5113
5272
|
let data69 = data64.role;
|
|
5114
5273
|
const _errs158 = errors;
|
|
5115
5274
|
if (typeof data69 !== "string") {
|
|
5116
|
-
const
|
|
5275
|
+
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" };
|
|
5117
5276
|
if (vErrors === null) {
|
|
5118
|
-
vErrors = [
|
|
5277
|
+
vErrors = [err17];
|
|
5119
5278
|
} else {
|
|
5120
|
-
vErrors.push(
|
|
5279
|
+
vErrors.push(err17);
|
|
5121
5280
|
}
|
|
5122
5281
|
errors++;
|
|
5123
5282
|
}
|
|
5124
5283
|
if (!(data69 === "owner" || data69 === "admin" || data69 === "member")) {
|
|
5125
|
-
const
|
|
5284
|
+
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" };
|
|
5126
5285
|
if (vErrors === null) {
|
|
5127
|
-
vErrors = [
|
|
5286
|
+
vErrors = [err18];
|
|
5128
5287
|
} else {
|
|
5129
|
-
vErrors.push(
|
|
5288
|
+
vErrors.push(err18);
|
|
5130
5289
|
}
|
|
5131
5290
|
errors++;
|
|
5132
5291
|
}
|
|
@@ -5138,11 +5297,11 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
5138
5297
|
}
|
|
5139
5298
|
}
|
|
5140
5299
|
} else {
|
|
5141
|
-
const
|
|
5300
|
+
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" };
|
|
5142
5301
|
if (vErrors === null) {
|
|
5143
|
-
vErrors = [
|
|
5302
|
+
vErrors = [err19];
|
|
5144
5303
|
} else {
|
|
5145
|
-
vErrors.push(
|
|
5304
|
+
vErrors.push(err19);
|
|
5146
5305
|
}
|
|
5147
5306
|
errors++;
|
|
5148
5307
|
}
|
|
@@ -5164,22 +5323,22 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
5164
5323
|
if (data64 && typeof data64 == "object" && !Array.isArray(data64)) {
|
|
5165
5324
|
let missing9;
|
|
5166
5325
|
if (data64.kind === void 0 && (missing9 = "kind") || data64.agent === void 0 && (missing9 = "agent")) {
|
|
5167
|
-
const
|
|
5326
|
+
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 + "'" };
|
|
5168
5327
|
if (vErrors === null) {
|
|
5169
|
-
vErrors = [
|
|
5328
|
+
vErrors = [err20];
|
|
5170
5329
|
} else {
|
|
5171
|
-
vErrors.push(
|
|
5330
|
+
vErrors.push(err20);
|
|
5172
5331
|
}
|
|
5173
5332
|
errors++;
|
|
5174
5333
|
} else {
|
|
5175
5334
|
const _errs162 = errors;
|
|
5176
5335
|
for (const key2 in data64) {
|
|
5177
5336
|
if (!(key2 === "kind" || key2 === "agent")) {
|
|
5178
|
-
const
|
|
5337
|
+
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" };
|
|
5179
5338
|
if (vErrors === null) {
|
|
5180
|
-
vErrors = [
|
|
5339
|
+
vErrors = [err21];
|
|
5181
5340
|
} else {
|
|
5182
|
-
vErrors.push(
|
|
5341
|
+
vErrors.push(err21);
|
|
5183
5342
|
}
|
|
5184
5343
|
errors++;
|
|
5185
5344
|
break;
|
|
@@ -5190,20 +5349,20 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
5190
5349
|
let data70 = data64.kind;
|
|
5191
5350
|
const _errs163 = errors;
|
|
5192
5351
|
if (typeof data70 !== "string") {
|
|
5193
|
-
const
|
|
5352
|
+
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" };
|
|
5194
5353
|
if (vErrors === null) {
|
|
5195
|
-
vErrors = [
|
|
5354
|
+
vErrors = [err22];
|
|
5196
5355
|
} else {
|
|
5197
|
-
vErrors.push(
|
|
5356
|
+
vErrors.push(err22);
|
|
5198
5357
|
}
|
|
5199
5358
|
errors++;
|
|
5200
5359
|
}
|
|
5201
5360
|
if ("agent" !== data70) {
|
|
5202
|
-
const
|
|
5361
|
+
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" };
|
|
5203
5362
|
if (vErrors === null) {
|
|
5204
|
-
vErrors = [
|
|
5363
|
+
vErrors = [err23];
|
|
5205
5364
|
} else {
|
|
5206
|
-
vErrors.push(
|
|
5365
|
+
vErrors.push(err23);
|
|
5207
5366
|
}
|
|
5208
5367
|
errors++;
|
|
5209
5368
|
}
|
|
@@ -5216,20 +5375,20 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
5216
5375
|
let data71 = data64.agent;
|
|
5217
5376
|
const _errs165 = errors;
|
|
5218
5377
|
if (typeof data71 !== "string") {
|
|
5219
|
-
const
|
|
5378
|
+
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" };
|
|
5220
5379
|
if (vErrors === null) {
|
|
5221
|
-
vErrors = [
|
|
5380
|
+
vErrors = [err24];
|
|
5222
5381
|
} else {
|
|
5223
|
-
vErrors.push(
|
|
5382
|
+
vErrors.push(err24);
|
|
5224
5383
|
}
|
|
5225
5384
|
errors++;
|
|
5226
5385
|
}
|
|
5227
5386
|
if (!(data71 === "claude_code" || data71 === "codex" || data71 === "cursor" || data71 === "hermes")) {
|
|
5228
|
-
const
|
|
5387
|
+
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" };
|
|
5229
5388
|
if (vErrors === null) {
|
|
5230
|
-
vErrors = [
|
|
5389
|
+
vErrors = [err25];
|
|
5231
5390
|
} else {
|
|
5232
|
-
vErrors.push(
|
|
5391
|
+
vErrors.push(err25);
|
|
5233
5392
|
}
|
|
5234
5393
|
errors++;
|
|
5235
5394
|
}
|
|
@@ -5241,11 +5400,11 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
5241
5400
|
}
|
|
5242
5401
|
}
|
|
5243
5402
|
} else {
|
|
5244
|
-
const
|
|
5403
|
+
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" };
|
|
5245
5404
|
if (vErrors === null) {
|
|
5246
|
-
vErrors = [
|
|
5405
|
+
vErrors = [err26];
|
|
5247
5406
|
} else {
|
|
5248
|
-
vErrors.push(
|
|
5407
|
+
vErrors.push(err26);
|
|
5249
5408
|
}
|
|
5250
5409
|
errors++;
|
|
5251
5410
|
}
|
|
@@ -5267,22 +5426,22 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
5267
5426
|
if (data64 && typeof data64 == "object" && !Array.isArray(data64)) {
|
|
5268
5427
|
let missing10;
|
|
5269
5428
|
if (data64.kind === void 0 && (missing10 = "kind") || data64.credential === void 0 && (missing10 = "credential")) {
|
|
5270
|
-
const
|
|
5429
|
+
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 + "'" };
|
|
5271
5430
|
if (vErrors === null) {
|
|
5272
|
-
vErrors = [
|
|
5431
|
+
vErrors = [err27];
|
|
5273
5432
|
} else {
|
|
5274
|
-
vErrors.push(
|
|
5433
|
+
vErrors.push(err27);
|
|
5275
5434
|
}
|
|
5276
5435
|
errors++;
|
|
5277
5436
|
} else {
|
|
5278
5437
|
const _errs169 = errors;
|
|
5279
5438
|
for (const key3 in data64) {
|
|
5280
5439
|
if (!(key3 === "kind" || key3 === "credential")) {
|
|
5281
|
-
const
|
|
5440
|
+
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" };
|
|
5282
5441
|
if (vErrors === null) {
|
|
5283
|
-
vErrors = [
|
|
5442
|
+
vErrors = [err28];
|
|
5284
5443
|
} else {
|
|
5285
|
-
vErrors.push(
|
|
5444
|
+
vErrors.push(err28);
|
|
5286
5445
|
}
|
|
5287
5446
|
errors++;
|
|
5288
5447
|
break;
|
|
@@ -5293,20 +5452,20 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
5293
5452
|
let data72 = data64.kind;
|
|
5294
5453
|
const _errs170 = errors;
|
|
5295
5454
|
if (typeof data72 !== "string") {
|
|
5296
|
-
const
|
|
5455
|
+
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" };
|
|
5297
5456
|
if (vErrors === null) {
|
|
5298
|
-
vErrors = [
|
|
5457
|
+
vErrors = [err29];
|
|
5299
5458
|
} else {
|
|
5300
|
-
vErrors.push(
|
|
5459
|
+
vErrors.push(err29);
|
|
5301
5460
|
}
|
|
5302
5461
|
errors++;
|
|
5303
5462
|
}
|
|
5304
5463
|
if ("credential" !== data72) {
|
|
5305
|
-
const
|
|
5464
|
+
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" };
|
|
5306
5465
|
if (vErrors === null) {
|
|
5307
|
-
vErrors = [
|
|
5466
|
+
vErrors = [err30];
|
|
5308
5467
|
} else {
|
|
5309
|
-
vErrors.push(
|
|
5468
|
+
vErrors.push(err30);
|
|
5310
5469
|
}
|
|
5311
5470
|
errors++;
|
|
5312
5471
|
}
|
|
@@ -5319,20 +5478,20 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
5319
5478
|
let data73 = data64.credential;
|
|
5320
5479
|
const _errs172 = errors;
|
|
5321
5480
|
if (typeof data73 !== "string") {
|
|
5322
|
-
const
|
|
5481
|
+
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" };
|
|
5323
5482
|
if (vErrors === null) {
|
|
5324
|
-
vErrors = [
|
|
5483
|
+
vErrors = [err31];
|
|
5325
5484
|
} else {
|
|
5326
|
-
vErrors.push(
|
|
5485
|
+
vErrors.push(err31);
|
|
5327
5486
|
}
|
|
5328
5487
|
errors++;
|
|
5329
5488
|
}
|
|
5330
5489
|
if (!(data73 === "workos_jwt" || data73 === "workos_api_key" || data73 === "service_token")) {
|
|
5331
|
-
const
|
|
5490
|
+
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" };
|
|
5332
5491
|
if (vErrors === null) {
|
|
5333
|
-
vErrors = [
|
|
5492
|
+
vErrors = [err32];
|
|
5334
5493
|
} else {
|
|
5335
|
-
vErrors.push(
|
|
5494
|
+
vErrors.push(err32);
|
|
5336
5495
|
}
|
|
5337
5496
|
errors++;
|
|
5338
5497
|
}
|
|
@@ -5344,11 +5503,11 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
5344
5503
|
}
|
|
5345
5504
|
}
|
|
5346
5505
|
} else {
|
|
5347
|
-
const
|
|
5506
|
+
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" };
|
|
5348
5507
|
if (vErrors === null) {
|
|
5349
|
-
vErrors = [
|
|
5508
|
+
vErrors = [err33];
|
|
5350
5509
|
} else {
|
|
5351
|
-
vErrors.push(
|
|
5510
|
+
vErrors.push(err33);
|
|
5352
5511
|
}
|
|
5353
5512
|
errors++;
|
|
5354
5513
|
}
|
|
@@ -5369,11 +5528,11 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
5369
5528
|
}
|
|
5370
5529
|
}
|
|
5371
5530
|
if (!valid20) {
|
|
5372
|
-
const
|
|
5531
|
+
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" };
|
|
5373
5532
|
if (vErrors === null) {
|
|
5374
|
-
vErrors = [
|
|
5533
|
+
vErrors = [err34];
|
|
5375
5534
|
} else {
|
|
5376
|
-
vErrors.push(
|
|
5535
|
+
vErrors.push(err34);
|
|
5377
5536
|
}
|
|
5378
5537
|
errors++;
|
|
5379
5538
|
validate29.errors = vErrors;
|
|
@@ -5677,7 +5836,7 @@ function validate32(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
5677
5836
|
return errors === 0;
|
|
5678
5837
|
}
|
|
5679
5838
|
validate32.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
|
|
5680
|
-
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": {} };
|
|
5839
|
+
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": {} };
|
|
5681
5840
|
function validate33(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
5682
5841
|
;
|
|
5683
5842
|
let vErrors = null;
|
|
@@ -5721,6 +5880,11 @@ function validate33(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
5721
5880
|
if (func1(data1) < 1) {
|
|
5722
5881
|
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" }];
|
|
5723
5882
|
return false;
|
|
5883
|
+
} else {
|
|
5884
|
+
if (!pattern4.test(data1)) {
|
|
5885
|
+
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}$"' }];
|
|
5886
|
+
return false;
|
|
5887
|
+
}
|
|
5724
5888
|
}
|
|
5725
5889
|
} else {
|
|
5726
5890
|
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" }];
|
|
@@ -5733,10 +5897,18 @@ function validate33(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
5733
5897
|
}
|
|
5734
5898
|
if (valid1) {
|
|
5735
5899
|
if (data.childShortId !== void 0) {
|
|
5900
|
+
let data2 = data.childShortId;
|
|
5736
5901
|
const _errs7 = errors;
|
|
5737
|
-
if (
|
|
5738
|
-
|
|
5739
|
-
|
|
5902
|
+
if (errors === _errs7) {
|
|
5903
|
+
if (typeof data2 === "string") {
|
|
5904
|
+
if (!pattern5.test(data2)) {
|
|
5905
|
+
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}$"' }];
|
|
5906
|
+
return false;
|
|
5907
|
+
}
|
|
5908
|
+
} else {
|
|
5909
|
+
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" }];
|
|
5910
|
+
return false;
|
|
5911
|
+
}
|
|
5740
5912
|
}
|
|
5741
5913
|
var valid1 = _errs7 === errors;
|
|
5742
5914
|
} else {
|
|
@@ -5751,6 +5923,11 @@ function validate33(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
5751
5923
|
if (func1(data3) < 1) {
|
|
5752
5924
|
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" }];
|
|
5753
5925
|
return false;
|
|
5926
|
+
} else {
|
|
5927
|
+
if (!pattern4.test(data3)) {
|
|
5928
|
+
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}$"' }];
|
|
5929
|
+
return false;
|
|
5930
|
+
}
|
|
5754
5931
|
}
|
|
5755
5932
|
} else {
|
|
5756
5933
|
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" }];
|
|
@@ -5763,10 +5940,18 @@ function validate33(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
5763
5940
|
}
|
|
5764
5941
|
if (valid1) {
|
|
5765
5942
|
if (data.parentShortId !== void 0) {
|
|
5943
|
+
let data4 = data.parentShortId;
|
|
5766
5944
|
const _errs11 = errors;
|
|
5767
|
-
if (
|
|
5768
|
-
|
|
5769
|
-
|
|
5945
|
+
if (errors === _errs11) {
|
|
5946
|
+
if (typeof data4 === "string") {
|
|
5947
|
+
if (!pattern5.test(data4)) {
|
|
5948
|
+
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}$"' }];
|
|
5949
|
+
return false;
|
|
5950
|
+
}
|
|
5951
|
+
} else {
|
|
5952
|
+
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" }];
|
|
5953
|
+
return false;
|
|
5954
|
+
}
|
|
5770
5955
|
}
|
|
5771
5956
|
var valid1 = _errs11 === errors;
|
|
5772
5957
|
} else {
|
|
@@ -6684,7 +6869,7 @@ function validate34(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
6684
6869
|
}
|
|
6685
6870
|
validate34.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
|
|
6686
6871
|
var isDecisionRescopeResponse = validate35;
|
|
6687
|
-
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": {} }] };
|
|
6872
|
+
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": {} }] };
|
|
6688
6873
|
function validate35(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
6689
6874
|
;
|
|
6690
6875
|
let vErrors = null;
|
|
@@ -7656,13 +7841,23 @@ function validate35(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
7656
7841
|
vErrors.push(err61);
|
|
7657
7842
|
}
|
|
7658
7843
|
errors++;
|
|
7844
|
+
} else {
|
|
7845
|
+
if (!pattern4.test(data28)) {
|
|
7846
|
+
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}$"' };
|
|
7847
|
+
if (vErrors === null) {
|
|
7848
|
+
vErrors = [err62];
|
|
7849
|
+
} else {
|
|
7850
|
+
vErrors.push(err62);
|
|
7851
|
+
}
|
|
7852
|
+
errors++;
|
|
7853
|
+
}
|
|
7659
7854
|
}
|
|
7660
7855
|
} else {
|
|
7661
|
-
const
|
|
7856
|
+
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" };
|
|
7662
7857
|
if (vErrors === null) {
|
|
7663
|
-
vErrors = [
|
|
7858
|
+
vErrors = [err63];
|
|
7664
7859
|
} else {
|
|
7665
|
-
vErrors.push(
|
|
7860
|
+
vErrors.push(err63);
|
|
7666
7861
|
}
|
|
7667
7862
|
errors++;
|
|
7668
7863
|
}
|
|
@@ -7673,15 +7868,28 @@ function validate35(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
7673
7868
|
}
|
|
7674
7869
|
if (valid16) {
|
|
7675
7870
|
if (data.shortId !== void 0) {
|
|
7871
|
+
let data29 = data.shortId;
|
|
7676
7872
|
const _errs81 = errors;
|
|
7677
|
-
if (
|
|
7678
|
-
|
|
7679
|
-
|
|
7680
|
-
|
|
7873
|
+
if (errors === _errs81) {
|
|
7874
|
+
if (typeof data29 === "string") {
|
|
7875
|
+
if (!pattern5.test(data29)) {
|
|
7876
|
+
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}$"' };
|
|
7877
|
+
if (vErrors === null) {
|
|
7878
|
+
vErrors = [err64];
|
|
7879
|
+
} else {
|
|
7880
|
+
vErrors.push(err64);
|
|
7881
|
+
}
|
|
7882
|
+
errors++;
|
|
7883
|
+
}
|
|
7681
7884
|
} else {
|
|
7682
|
-
|
|
7885
|
+
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" };
|
|
7886
|
+
if (vErrors === null) {
|
|
7887
|
+
vErrors = [err65];
|
|
7888
|
+
} else {
|
|
7889
|
+
vErrors.push(err65);
|
|
7890
|
+
}
|
|
7891
|
+
errors++;
|
|
7683
7892
|
}
|
|
7684
|
-
errors++;
|
|
7685
7893
|
}
|
|
7686
7894
|
var valid16 = _errs81 === errors;
|
|
7687
7895
|
} else {
|
|
@@ -7692,20 +7900,20 @@ function validate35(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
7692
7900
|
let data30 = data.stage;
|
|
7693
7901
|
const _errs83 = errors;
|
|
7694
7902
|
if (typeof data30 !== "string") {
|
|
7695
|
-
const
|
|
7903
|
+
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" };
|
|
7696
7904
|
if (vErrors === null) {
|
|
7697
|
-
vErrors = [
|
|
7905
|
+
vErrors = [err66];
|
|
7698
7906
|
} else {
|
|
7699
|
-
vErrors.push(
|
|
7907
|
+
vErrors.push(err66);
|
|
7700
7908
|
}
|
|
7701
7909
|
errors++;
|
|
7702
7910
|
}
|
|
7703
7911
|
if (!(data30 === "draft" || data30 === "provisional" || data30 === "adopted" || data30 === "superseded" || data30 === "abandoned")) {
|
|
7704
|
-
const
|
|
7912
|
+
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" };
|
|
7705
7913
|
if (vErrors === null) {
|
|
7706
|
-
vErrors = [
|
|
7914
|
+
vErrors = [err67];
|
|
7707
7915
|
} else {
|
|
7708
|
-
vErrors.push(
|
|
7916
|
+
vErrors.push(err67);
|
|
7709
7917
|
}
|
|
7710
7918
|
errors++;
|
|
7711
7919
|
}
|
|
@@ -7721,11 +7929,11 @@ function validate35(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
7721
7929
|
if (data31 && typeof data31 == "object" && !Array.isArray(data31)) {
|
|
7722
7930
|
let missing8;
|
|
7723
7931
|
if (data31.location === void 0 && (missing8 = "location") || data31.time === void 0 && (missing8 = "time") || data31.users === void 0 && (missing8 = "users")) {
|
|
7724
|
-
const
|
|
7932
|
+
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 + "'" };
|
|
7725
7933
|
if (vErrors === null) {
|
|
7726
|
-
vErrors = [
|
|
7934
|
+
vErrors = [err68];
|
|
7727
7935
|
} else {
|
|
7728
|
-
vErrors.push(
|
|
7936
|
+
vErrors.push(err68);
|
|
7729
7937
|
}
|
|
7730
7938
|
errors++;
|
|
7731
7939
|
} else {
|
|
@@ -7736,11 +7944,11 @@ function validate35(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
7736
7944
|
if (data32 && typeof data32 == "object" && !Array.isArray(data32)) {
|
|
7737
7945
|
let missing9;
|
|
7738
7946
|
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")) {
|
|
7739
|
-
const
|
|
7947
|
+
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 + "'" };
|
|
7740
7948
|
if (vErrors === null) {
|
|
7741
|
-
vErrors = [
|
|
7949
|
+
vErrors = [err69];
|
|
7742
7950
|
} else {
|
|
7743
|
-
vErrors.push(
|
|
7951
|
+
vErrors.push(err69);
|
|
7744
7952
|
}
|
|
7745
7953
|
errors++;
|
|
7746
7954
|
} else {
|
|
@@ -7748,20 +7956,20 @@ function validate35(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
7748
7956
|
let data33 = data32.mode;
|
|
7749
7957
|
const _errs91 = errors;
|
|
7750
7958
|
if (typeof data33 !== "string") {
|
|
7751
|
-
const
|
|
7959
|
+
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" };
|
|
7752
7960
|
if (vErrors === null) {
|
|
7753
|
-
vErrors = [
|
|
7961
|
+
vErrors = [err70];
|
|
7754
7962
|
} else {
|
|
7755
|
-
vErrors.push(
|
|
7963
|
+
vErrors.push(err70);
|
|
7756
7964
|
}
|
|
7757
7965
|
errors++;
|
|
7758
7966
|
}
|
|
7759
7967
|
if (!(data33 === "inherited" || data33 === "explicit")) {
|
|
7760
|
-
const
|
|
7968
|
+
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" };
|
|
7761
7969
|
if (vErrors === null) {
|
|
7762
|
-
vErrors = [
|
|
7970
|
+
vErrors = [err71];
|
|
7763
7971
|
} else {
|
|
7764
|
-
vErrors.push(
|
|
7972
|
+
vErrors.push(err71);
|
|
7765
7973
|
}
|
|
7766
7974
|
errors++;
|
|
7767
7975
|
}
|
|
@@ -7773,11 +7981,11 @@ function validate35(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
7773
7981
|
if (data32.repository !== void 0) {
|
|
7774
7982
|
const _errs93 = errors;
|
|
7775
7983
|
if (typeof data32.repository !== "boolean") {
|
|
7776
|
-
const
|
|
7984
|
+
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" };
|
|
7777
7985
|
if (vErrors === null) {
|
|
7778
|
-
vErrors = [
|
|
7986
|
+
vErrors = [err72];
|
|
7779
7987
|
} else {
|
|
7780
|
-
vErrors.push(
|
|
7988
|
+
vErrors.push(err72);
|
|
7781
7989
|
}
|
|
7782
7990
|
errors++;
|
|
7783
7991
|
}
|
|
@@ -7796,11 +8004,11 @@ function validate35(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
7796
8004
|
for (let i5 = 0; i5 < len5; i5++) {
|
|
7797
8005
|
const _errs97 = errors;
|
|
7798
8006
|
if (typeof data35[i5] !== "string") {
|
|
7799
|
-
const
|
|
8007
|
+
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" };
|
|
7800
8008
|
if (vErrors === null) {
|
|
7801
|
-
vErrors = [
|
|
8009
|
+
vErrors = [err73];
|
|
7802
8010
|
} else {
|
|
7803
|
-
vErrors.push(
|
|
8011
|
+
vErrors.push(err73);
|
|
7804
8012
|
}
|
|
7805
8013
|
errors++;
|
|
7806
8014
|
}
|
|
@@ -7810,11 +8018,11 @@ function validate35(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
7810
8018
|
}
|
|
7811
8019
|
}
|
|
7812
8020
|
} else {
|
|
7813
|
-
const
|
|
8021
|
+
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" };
|
|
7814
8022
|
if (vErrors === null) {
|
|
7815
|
-
vErrors = [
|
|
8023
|
+
vErrors = [err74];
|
|
7816
8024
|
} else {
|
|
7817
|
-
vErrors.push(
|
|
8025
|
+
vErrors.push(err74);
|
|
7818
8026
|
}
|
|
7819
8027
|
errors++;
|
|
7820
8028
|
}
|
|
@@ -7834,11 +8042,11 @@ function validate35(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
7834
8042
|
for (let i6 = 0; i6 < len6; i6++) {
|
|
7835
8043
|
const _errs101 = errors;
|
|
7836
8044
|
if (typeof data37[i6] !== "string") {
|
|
7837
|
-
const
|
|
8045
|
+
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" };
|
|
7838
8046
|
if (vErrors === null) {
|
|
7839
|
-
vErrors = [
|
|
8047
|
+
vErrors = [err75];
|
|
7840
8048
|
} else {
|
|
7841
|
-
vErrors.push(
|
|
8049
|
+
vErrors.push(err75);
|
|
7842
8050
|
}
|
|
7843
8051
|
errors++;
|
|
7844
8052
|
}
|
|
@@ -7848,11 +8056,11 @@ function validate35(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
7848
8056
|
}
|
|
7849
8057
|
}
|
|
7850
8058
|
} else {
|
|
7851
|
-
const
|
|
8059
|
+
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" };
|
|
7852
8060
|
if (vErrors === null) {
|
|
7853
|
-
vErrors = [
|
|
8061
|
+
vErrors = [err76];
|
|
7854
8062
|
} else {
|
|
7855
|
-
vErrors.push(
|
|
8063
|
+
vErrors.push(err76);
|
|
7856
8064
|
}
|
|
7857
8065
|
errors++;
|
|
7858
8066
|
}
|
|
@@ -7872,11 +8080,11 @@ function validate35(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
7872
8080
|
for (let i7 = 0; i7 < len7; i7++) {
|
|
7873
8081
|
const _errs105 = errors;
|
|
7874
8082
|
if (typeof data39[i7] !== "string") {
|
|
7875
|
-
const
|
|
8083
|
+
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" };
|
|
7876
8084
|
if (vErrors === null) {
|
|
7877
|
-
vErrors = [
|
|
8085
|
+
vErrors = [err77];
|
|
7878
8086
|
} else {
|
|
7879
|
-
vErrors.push(
|
|
8087
|
+
vErrors.push(err77);
|
|
7880
8088
|
}
|
|
7881
8089
|
errors++;
|
|
7882
8090
|
}
|
|
@@ -7886,11 +8094,11 @@ function validate35(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
7886
8094
|
}
|
|
7887
8095
|
}
|
|
7888
8096
|
} else {
|
|
7889
|
-
const
|
|
8097
|
+
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" };
|
|
7890
8098
|
if (vErrors === null) {
|
|
7891
|
-
vErrors = [
|
|
8099
|
+
vErrors = [err78];
|
|
7892
8100
|
} else {
|
|
7893
|
-
vErrors.push(
|
|
8101
|
+
vErrors.push(err78);
|
|
7894
8102
|
}
|
|
7895
8103
|
errors++;
|
|
7896
8104
|
}
|
|
@@ -7905,11 +8113,11 @@ function validate35(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
7905
8113
|
}
|
|
7906
8114
|
}
|
|
7907
8115
|
} else {
|
|
7908
|
-
const
|
|
8116
|
+
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" };
|
|
7909
8117
|
if (vErrors === null) {
|
|
7910
|
-
vErrors = [
|
|
8118
|
+
vErrors = [err79];
|
|
7911
8119
|
} else {
|
|
7912
|
-
vErrors.push(
|
|
8120
|
+
vErrors.push(err79);
|
|
7913
8121
|
}
|
|
7914
8122
|
errors++;
|
|
7915
8123
|
}
|
|
@@ -7928,31 +8136,31 @@ function validate35(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
7928
8136
|
let data42 = data41.effectiveFrom;
|
|
7929
8137
|
const _errs110 = errors;
|
|
7930
8138
|
if (!(typeof data42 == "number" && (!(data42 % 1) && !isNaN(data42)) && isFinite(data42))) {
|
|
7931
|
-
const
|
|
8139
|
+
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" };
|
|
7932
8140
|
if (vErrors === null) {
|
|
7933
|
-
vErrors = [
|
|
8141
|
+
vErrors = [err80];
|
|
7934
8142
|
} else {
|
|
7935
|
-
vErrors.push(
|
|
8143
|
+
vErrors.push(err80);
|
|
7936
8144
|
}
|
|
7937
8145
|
errors++;
|
|
7938
8146
|
}
|
|
7939
8147
|
if (errors === _errs110) {
|
|
7940
8148
|
if (typeof data42 == "number" && isFinite(data42)) {
|
|
7941
8149
|
if (data42 > 9007199254740991 || isNaN(data42)) {
|
|
7942
|
-
const
|
|
8150
|
+
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" };
|
|
7943
8151
|
if (vErrors === null) {
|
|
7944
|
-
vErrors = [
|
|
8152
|
+
vErrors = [err81];
|
|
7945
8153
|
} else {
|
|
7946
|
-
vErrors.push(
|
|
8154
|
+
vErrors.push(err81);
|
|
7947
8155
|
}
|
|
7948
8156
|
errors++;
|
|
7949
8157
|
} else {
|
|
7950
8158
|
if (data42 < -9007199254740991 || isNaN(data42)) {
|
|
7951
|
-
const
|
|
8159
|
+
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" };
|
|
7952
8160
|
if (vErrors === null) {
|
|
7953
|
-
vErrors = [
|
|
8161
|
+
vErrors = [err82];
|
|
7954
8162
|
} else {
|
|
7955
|
-
vErrors.push(
|
|
8163
|
+
vErrors.push(err82);
|
|
7956
8164
|
}
|
|
7957
8165
|
errors++;
|
|
7958
8166
|
}
|
|
@@ -7968,31 +8176,31 @@ function validate35(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
7968
8176
|
let data43 = data41.effectiveUntil;
|
|
7969
8177
|
const _errs112 = errors;
|
|
7970
8178
|
if (!(typeof data43 == "number" && (!(data43 % 1) && !isNaN(data43)) && isFinite(data43))) {
|
|
7971
|
-
const
|
|
8179
|
+
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" };
|
|
7972
8180
|
if (vErrors === null) {
|
|
7973
|
-
vErrors = [
|
|
8181
|
+
vErrors = [err83];
|
|
7974
8182
|
} else {
|
|
7975
|
-
vErrors.push(
|
|
8183
|
+
vErrors.push(err83);
|
|
7976
8184
|
}
|
|
7977
8185
|
errors++;
|
|
7978
8186
|
}
|
|
7979
8187
|
if (errors === _errs112) {
|
|
7980
8188
|
if (typeof data43 == "number" && isFinite(data43)) {
|
|
7981
8189
|
if (data43 > 9007199254740991 || isNaN(data43)) {
|
|
7982
|
-
const
|
|
8190
|
+
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" };
|
|
7983
8191
|
if (vErrors === null) {
|
|
7984
|
-
vErrors = [
|
|
8192
|
+
vErrors = [err84];
|
|
7985
8193
|
} else {
|
|
7986
|
-
vErrors.push(
|
|
8194
|
+
vErrors.push(err84);
|
|
7987
8195
|
}
|
|
7988
8196
|
errors++;
|
|
7989
8197
|
} else {
|
|
7990
8198
|
if (data43 < -9007199254740991 || isNaN(data43)) {
|
|
7991
|
-
const
|
|
8199
|
+
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" };
|
|
7992
8200
|
if (vErrors === null) {
|
|
7993
|
-
vErrors = [
|
|
8201
|
+
vErrors = [err85];
|
|
7994
8202
|
} else {
|
|
7995
|
-
vErrors.push(
|
|
8203
|
+
vErrors.push(err85);
|
|
7996
8204
|
}
|
|
7997
8205
|
errors++;
|
|
7998
8206
|
}
|
|
@@ -8005,11 +8213,11 @@ function validate35(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
8005
8213
|
}
|
|
8006
8214
|
}
|
|
8007
8215
|
} else {
|
|
8008
|
-
const
|
|
8216
|
+
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" };
|
|
8009
8217
|
if (vErrors === null) {
|
|
8010
|
-
vErrors = [
|
|
8218
|
+
vErrors = [err86];
|
|
8011
8219
|
} else {
|
|
8012
|
-
vErrors.push(
|
|
8220
|
+
vErrors.push(err86);
|
|
8013
8221
|
}
|
|
8014
8222
|
errors++;
|
|
8015
8223
|
}
|
|
@@ -8037,22 +8245,22 @@ function validate35(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
8037
8245
|
if (data45 && typeof data45 == "object" && !Array.isArray(data45)) {
|
|
8038
8246
|
let missing10;
|
|
8039
8247
|
if (data45.kind === void 0 && (missing10 = "kind") || data45.userId === void 0 && (missing10 = "userId")) {
|
|
8040
|
-
const
|
|
8248
|
+
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 + "'" };
|
|
8041
8249
|
if (vErrors === null) {
|
|
8042
|
-
vErrors = [
|
|
8250
|
+
vErrors = [err87];
|
|
8043
8251
|
} else {
|
|
8044
|
-
vErrors.push(
|
|
8252
|
+
vErrors.push(err87);
|
|
8045
8253
|
}
|
|
8046
8254
|
errors++;
|
|
8047
8255
|
} else {
|
|
8048
8256
|
const _errs120 = errors;
|
|
8049
8257
|
for (const key4 in data45) {
|
|
8050
8258
|
if (!(key4 === "kind" || key4 === "userId")) {
|
|
8051
|
-
const
|
|
8259
|
+
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" };
|
|
8052
8260
|
if (vErrors === null) {
|
|
8053
|
-
vErrors = [
|
|
8261
|
+
vErrors = [err88];
|
|
8054
8262
|
} else {
|
|
8055
|
-
vErrors.push(
|
|
8263
|
+
vErrors.push(err88);
|
|
8056
8264
|
}
|
|
8057
8265
|
errors++;
|
|
8058
8266
|
break;
|
|
@@ -8063,20 +8271,20 @@ function validate35(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
8063
8271
|
let data46 = data45.kind;
|
|
8064
8272
|
const _errs121 = errors;
|
|
8065
8273
|
if (typeof data46 !== "string") {
|
|
8066
|
-
const
|
|
8274
|
+
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" };
|
|
8067
8275
|
if (vErrors === null) {
|
|
8068
|
-
vErrors = [
|
|
8276
|
+
vErrors = [err89];
|
|
8069
8277
|
} else {
|
|
8070
|
-
vErrors.push(
|
|
8278
|
+
vErrors.push(err89);
|
|
8071
8279
|
}
|
|
8072
8280
|
errors++;
|
|
8073
8281
|
}
|
|
8074
8282
|
if ("user" !== data46) {
|
|
8075
|
-
const
|
|
8283
|
+
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" };
|
|
8076
8284
|
if (vErrors === null) {
|
|
8077
|
-
vErrors = [
|
|
8285
|
+
vErrors = [err90];
|
|
8078
8286
|
} else {
|
|
8079
|
-
vErrors.push(
|
|
8287
|
+
vErrors.push(err90);
|
|
8080
8288
|
}
|
|
8081
8289
|
errors++;
|
|
8082
8290
|
}
|
|
@@ -8091,20 +8299,20 @@ function validate35(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
8091
8299
|
if (errors === _errs123) {
|
|
8092
8300
|
if (typeof data47 === "string") {
|
|
8093
8301
|
if (func1(data47) < 1) {
|
|
8094
|
-
const
|
|
8302
|
+
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" };
|
|
8095
8303
|
if (vErrors === null) {
|
|
8096
|
-
vErrors = [
|
|
8304
|
+
vErrors = [err91];
|
|
8097
8305
|
} else {
|
|
8098
|
-
vErrors.push(
|
|
8306
|
+
vErrors.push(err91);
|
|
8099
8307
|
}
|
|
8100
8308
|
errors++;
|
|
8101
8309
|
}
|
|
8102
8310
|
} else {
|
|
8103
|
-
const
|
|
8311
|
+
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" };
|
|
8104
8312
|
if (vErrors === null) {
|
|
8105
|
-
vErrors = [
|
|
8313
|
+
vErrors = [err92];
|
|
8106
8314
|
} else {
|
|
8107
|
-
vErrors.push(
|
|
8315
|
+
vErrors.push(err92);
|
|
8108
8316
|
}
|
|
8109
8317
|
errors++;
|
|
8110
8318
|
}
|
|
@@ -8117,11 +8325,11 @@ function validate35(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
8117
8325
|
}
|
|
8118
8326
|
}
|
|
8119
8327
|
} else {
|
|
8120
|
-
const
|
|
8328
|
+
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" };
|
|
8121
8329
|
if (vErrors === null) {
|
|
8122
|
-
vErrors = [
|
|
8330
|
+
vErrors = [err93];
|
|
8123
8331
|
} else {
|
|
8124
|
-
vErrors.push(
|
|
8332
|
+
vErrors.push(err93);
|
|
8125
8333
|
}
|
|
8126
8334
|
errors++;
|
|
8127
8335
|
}
|
|
@@ -8137,22 +8345,22 @@ function validate35(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
8137
8345
|
if (data45 && typeof data45 == "object" && !Array.isArray(data45)) {
|
|
8138
8346
|
let missing11;
|
|
8139
8347
|
if (data45.kind === void 0 && (missing11 = "kind") || data45.role === void 0 && (missing11 = "role")) {
|
|
8140
|
-
const
|
|
8348
|
+
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 + "'" };
|
|
8141
8349
|
if (vErrors === null) {
|
|
8142
|
-
vErrors = [
|
|
8350
|
+
vErrors = [err94];
|
|
8143
8351
|
} else {
|
|
8144
|
-
vErrors.push(
|
|
8352
|
+
vErrors.push(err94);
|
|
8145
8353
|
}
|
|
8146
8354
|
errors++;
|
|
8147
8355
|
} else {
|
|
8148
8356
|
const _errs127 = errors;
|
|
8149
8357
|
for (const key5 in data45) {
|
|
8150
8358
|
if (!(key5 === "kind" || key5 === "role")) {
|
|
8151
|
-
const
|
|
8359
|
+
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" };
|
|
8152
8360
|
if (vErrors === null) {
|
|
8153
|
-
vErrors = [
|
|
8361
|
+
vErrors = [err95];
|
|
8154
8362
|
} else {
|
|
8155
|
-
vErrors.push(
|
|
8363
|
+
vErrors.push(err95);
|
|
8156
8364
|
}
|
|
8157
8365
|
errors++;
|
|
8158
8366
|
break;
|
|
@@ -8163,20 +8371,20 @@ function validate35(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
8163
8371
|
let data48 = data45.kind;
|
|
8164
8372
|
const _errs128 = errors;
|
|
8165
8373
|
if (typeof data48 !== "string") {
|
|
8166
|
-
const
|
|
8374
|
+
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" };
|
|
8167
8375
|
if (vErrors === null) {
|
|
8168
|
-
vErrors = [
|
|
8376
|
+
vErrors = [err96];
|
|
8169
8377
|
} else {
|
|
8170
|
-
vErrors.push(
|
|
8378
|
+
vErrors.push(err96);
|
|
8171
8379
|
}
|
|
8172
8380
|
errors++;
|
|
8173
8381
|
}
|
|
8174
8382
|
if ("role" !== data48) {
|
|
8175
|
-
const
|
|
8383
|
+
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" };
|
|
8176
8384
|
if (vErrors === null) {
|
|
8177
|
-
vErrors = [
|
|
8385
|
+
vErrors = [err97];
|
|
8178
8386
|
} else {
|
|
8179
|
-
vErrors.push(
|
|
8387
|
+
vErrors.push(err97);
|
|
8180
8388
|
}
|
|
8181
8389
|
errors++;
|
|
8182
8390
|
}
|
|
@@ -8189,20 +8397,20 @@ function validate35(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
8189
8397
|
let data49 = data45.role;
|
|
8190
8398
|
const _errs130 = errors;
|
|
8191
8399
|
if (typeof data49 !== "string") {
|
|
8192
|
-
const
|
|
8400
|
+
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" };
|
|
8193
8401
|
if (vErrors === null) {
|
|
8194
|
-
vErrors = [
|
|
8402
|
+
vErrors = [err98];
|
|
8195
8403
|
} else {
|
|
8196
|
-
vErrors.push(
|
|
8404
|
+
vErrors.push(err98);
|
|
8197
8405
|
}
|
|
8198
8406
|
errors++;
|
|
8199
8407
|
}
|
|
8200
8408
|
if (!(data49 === "owner" || data49 === "admin" || data49 === "member")) {
|
|
8201
|
-
const
|
|
8409
|
+
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" };
|
|
8202
8410
|
if (vErrors === null) {
|
|
8203
|
-
vErrors = [
|
|
8411
|
+
vErrors = [err99];
|
|
8204
8412
|
} else {
|
|
8205
|
-
vErrors.push(
|
|
8413
|
+
vErrors.push(err99);
|
|
8206
8414
|
}
|
|
8207
8415
|
errors++;
|
|
8208
8416
|
}
|
|
@@ -8214,11 +8422,11 @@ function validate35(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
8214
8422
|
}
|
|
8215
8423
|
}
|
|
8216
8424
|
} else {
|
|
8217
|
-
const
|
|
8425
|
+
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" };
|
|
8218
8426
|
if (vErrors === null) {
|
|
8219
|
-
vErrors = [
|
|
8427
|
+
vErrors = [err100];
|
|
8220
8428
|
} else {
|
|
8221
|
-
vErrors.push(
|
|
8429
|
+
vErrors.push(err100);
|
|
8222
8430
|
}
|
|
8223
8431
|
errors++;
|
|
8224
8432
|
}
|
|
@@ -8240,22 +8448,22 @@ function validate35(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
8240
8448
|
if (data45 && typeof data45 == "object" && !Array.isArray(data45)) {
|
|
8241
8449
|
let missing12;
|
|
8242
8450
|
if (data45.kind === void 0 && (missing12 = "kind") || data45.agent === void 0 && (missing12 = "agent")) {
|
|
8243
|
-
const
|
|
8451
|
+
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 + "'" };
|
|
8244
8452
|
if (vErrors === null) {
|
|
8245
|
-
vErrors = [
|
|
8453
|
+
vErrors = [err101];
|
|
8246
8454
|
} else {
|
|
8247
|
-
vErrors.push(
|
|
8455
|
+
vErrors.push(err101);
|
|
8248
8456
|
}
|
|
8249
8457
|
errors++;
|
|
8250
8458
|
} else {
|
|
8251
8459
|
const _errs134 = errors;
|
|
8252
8460
|
for (const key6 in data45) {
|
|
8253
8461
|
if (!(key6 === "kind" || key6 === "agent")) {
|
|
8254
|
-
const
|
|
8462
|
+
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" };
|
|
8255
8463
|
if (vErrors === null) {
|
|
8256
|
-
vErrors = [
|
|
8464
|
+
vErrors = [err102];
|
|
8257
8465
|
} else {
|
|
8258
|
-
vErrors.push(
|
|
8466
|
+
vErrors.push(err102);
|
|
8259
8467
|
}
|
|
8260
8468
|
errors++;
|
|
8261
8469
|
break;
|
|
@@ -8266,20 +8474,20 @@ function validate35(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
8266
8474
|
let data50 = data45.kind;
|
|
8267
8475
|
const _errs135 = errors;
|
|
8268
8476
|
if (typeof data50 !== "string") {
|
|
8269
|
-
const
|
|
8477
|
+
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" };
|
|
8270
8478
|
if (vErrors === null) {
|
|
8271
|
-
vErrors = [
|
|
8479
|
+
vErrors = [err103];
|
|
8272
8480
|
} else {
|
|
8273
|
-
vErrors.push(
|
|
8481
|
+
vErrors.push(err103);
|
|
8274
8482
|
}
|
|
8275
8483
|
errors++;
|
|
8276
8484
|
}
|
|
8277
8485
|
if ("agent" !== data50) {
|
|
8278
|
-
const
|
|
8486
|
+
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" };
|
|
8279
8487
|
if (vErrors === null) {
|
|
8280
|
-
vErrors = [
|
|
8488
|
+
vErrors = [err104];
|
|
8281
8489
|
} else {
|
|
8282
|
-
vErrors.push(
|
|
8490
|
+
vErrors.push(err104);
|
|
8283
8491
|
}
|
|
8284
8492
|
errors++;
|
|
8285
8493
|
}
|
|
@@ -8292,20 +8500,20 @@ function validate35(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
8292
8500
|
let data51 = data45.agent;
|
|
8293
8501
|
const _errs137 = errors;
|
|
8294
8502
|
if (typeof data51 !== "string") {
|
|
8295
|
-
const
|
|
8503
|
+
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" };
|
|
8296
8504
|
if (vErrors === null) {
|
|
8297
|
-
vErrors = [
|
|
8505
|
+
vErrors = [err105];
|
|
8298
8506
|
} else {
|
|
8299
|
-
vErrors.push(
|
|
8507
|
+
vErrors.push(err105);
|
|
8300
8508
|
}
|
|
8301
8509
|
errors++;
|
|
8302
8510
|
}
|
|
8303
8511
|
if (!(data51 === "claude_code" || data51 === "codex" || data51 === "cursor" || data51 === "hermes")) {
|
|
8304
|
-
const
|
|
8512
|
+
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" };
|
|
8305
8513
|
if (vErrors === null) {
|
|
8306
|
-
vErrors = [
|
|
8514
|
+
vErrors = [err106];
|
|
8307
8515
|
} else {
|
|
8308
|
-
vErrors.push(
|
|
8516
|
+
vErrors.push(err106);
|
|
8309
8517
|
}
|
|
8310
8518
|
errors++;
|
|
8311
8519
|
}
|
|
@@ -8317,11 +8525,11 @@ function validate35(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
8317
8525
|
}
|
|
8318
8526
|
}
|
|
8319
8527
|
} else {
|
|
8320
|
-
const
|
|
8528
|
+
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" };
|
|
8321
8529
|
if (vErrors === null) {
|
|
8322
|
-
vErrors = [
|
|
8530
|
+
vErrors = [err107];
|
|
8323
8531
|
} else {
|
|
8324
|
-
vErrors.push(
|
|
8532
|
+
vErrors.push(err107);
|
|
8325
8533
|
}
|
|
8326
8534
|
errors++;
|
|
8327
8535
|
}
|
|
@@ -8343,22 +8551,22 @@ function validate35(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
8343
8551
|
if (data45 && typeof data45 == "object" && !Array.isArray(data45)) {
|
|
8344
8552
|
let missing13;
|
|
8345
8553
|
if (data45.kind === void 0 && (missing13 = "kind") || data45.credential === void 0 && (missing13 = "credential")) {
|
|
8346
|
-
const
|
|
8554
|
+
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 + "'" };
|
|
8347
8555
|
if (vErrors === null) {
|
|
8348
|
-
vErrors = [
|
|
8556
|
+
vErrors = [err108];
|
|
8349
8557
|
} else {
|
|
8350
|
-
vErrors.push(
|
|
8558
|
+
vErrors.push(err108);
|
|
8351
8559
|
}
|
|
8352
8560
|
errors++;
|
|
8353
8561
|
} else {
|
|
8354
8562
|
const _errs141 = errors;
|
|
8355
8563
|
for (const key7 in data45) {
|
|
8356
8564
|
if (!(key7 === "kind" || key7 === "credential")) {
|
|
8357
|
-
const
|
|
8565
|
+
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" };
|
|
8358
8566
|
if (vErrors === null) {
|
|
8359
|
-
vErrors = [
|
|
8567
|
+
vErrors = [err109];
|
|
8360
8568
|
} else {
|
|
8361
|
-
vErrors.push(
|
|
8569
|
+
vErrors.push(err109);
|
|
8362
8570
|
}
|
|
8363
8571
|
errors++;
|
|
8364
8572
|
break;
|
|
@@ -8369,20 +8577,20 @@ function validate35(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
8369
8577
|
let data52 = data45.kind;
|
|
8370
8578
|
const _errs142 = errors;
|
|
8371
8579
|
if (typeof data52 !== "string") {
|
|
8372
|
-
const
|
|
8580
|
+
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" };
|
|
8373
8581
|
if (vErrors === null) {
|
|
8374
|
-
vErrors = [
|
|
8582
|
+
vErrors = [err110];
|
|
8375
8583
|
} else {
|
|
8376
|
-
vErrors.push(
|
|
8584
|
+
vErrors.push(err110);
|
|
8377
8585
|
}
|
|
8378
8586
|
errors++;
|
|
8379
8587
|
}
|
|
8380
8588
|
if ("credential" !== data52) {
|
|
8381
|
-
const
|
|
8589
|
+
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" };
|
|
8382
8590
|
if (vErrors === null) {
|
|
8383
|
-
vErrors = [
|
|
8591
|
+
vErrors = [err111];
|
|
8384
8592
|
} else {
|
|
8385
|
-
vErrors.push(
|
|
8593
|
+
vErrors.push(err111);
|
|
8386
8594
|
}
|
|
8387
8595
|
errors++;
|
|
8388
8596
|
}
|
|
@@ -8395,20 +8603,20 @@ function validate35(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
8395
8603
|
let data53 = data45.credential;
|
|
8396
8604
|
const _errs144 = errors;
|
|
8397
8605
|
if (typeof data53 !== "string") {
|
|
8398
|
-
const
|
|
8606
|
+
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" };
|
|
8399
8607
|
if (vErrors === null) {
|
|
8400
|
-
vErrors = [
|
|
8608
|
+
vErrors = [err112];
|
|
8401
8609
|
} else {
|
|
8402
|
-
vErrors.push(
|
|
8610
|
+
vErrors.push(err112);
|
|
8403
8611
|
}
|
|
8404
8612
|
errors++;
|
|
8405
8613
|
}
|
|
8406
8614
|
if (!(data53 === "workos_jwt" || data53 === "workos_api_key" || data53 === "service_token")) {
|
|
8407
|
-
const
|
|
8615
|
+
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" };
|
|
8408
8616
|
if (vErrors === null) {
|
|
8409
|
-
vErrors = [
|
|
8617
|
+
vErrors = [err113];
|
|
8410
8618
|
} else {
|
|
8411
|
-
vErrors.push(
|
|
8619
|
+
vErrors.push(err113);
|
|
8412
8620
|
}
|
|
8413
8621
|
errors++;
|
|
8414
8622
|
}
|
|
@@ -8420,11 +8628,11 @@ function validate35(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
8420
8628
|
}
|
|
8421
8629
|
}
|
|
8422
8630
|
} else {
|
|
8423
|
-
const
|
|
8631
|
+
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" };
|
|
8424
8632
|
if (vErrors === null) {
|
|
8425
|
-
vErrors = [
|
|
8633
|
+
vErrors = [err114];
|
|
8426
8634
|
} else {
|
|
8427
|
-
vErrors.push(
|
|
8635
|
+
vErrors.push(err114);
|
|
8428
8636
|
}
|
|
8429
8637
|
errors++;
|
|
8430
8638
|
}
|
|
@@ -8445,11 +8653,11 @@ function validate35(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
8445
8653
|
}
|
|
8446
8654
|
}
|
|
8447
8655
|
if (!valid24) {
|
|
8448
|
-
const
|
|
8656
|
+
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" };
|
|
8449
8657
|
if (vErrors === null) {
|
|
8450
|
-
vErrors = [
|
|
8658
|
+
vErrors = [err115];
|
|
8451
8659
|
} else {
|
|
8452
|
-
vErrors.push(
|
|
8660
|
+
vErrors.push(err115);
|
|
8453
8661
|
}
|
|
8454
8662
|
errors++;
|
|
8455
8663
|
} else {
|
|
@@ -8468,11 +8676,11 @@ function validate35(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
8468
8676
|
}
|
|
8469
8677
|
}
|
|
8470
8678
|
} else {
|
|
8471
|
-
const
|
|
8679
|
+
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" };
|
|
8472
8680
|
if (vErrors === null) {
|
|
8473
|
-
vErrors = [
|
|
8681
|
+
vErrors = [err116];
|
|
8474
8682
|
} else {
|
|
8475
|
-
vErrors.push(
|
|
8683
|
+
vErrors.push(err116);
|
|
8476
8684
|
}
|
|
8477
8685
|
errors++;
|
|
8478
8686
|
}
|
|
@@ -8485,11 +8693,11 @@ function validate35(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
8485
8693
|
}
|
|
8486
8694
|
}
|
|
8487
8695
|
} else {
|
|
8488
|
-
const
|
|
8696
|
+
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" };
|
|
8489
8697
|
if (vErrors === null) {
|
|
8490
|
-
vErrors = [
|
|
8698
|
+
vErrors = [err117];
|
|
8491
8699
|
} else {
|
|
8492
|
-
vErrors.push(
|
|
8700
|
+
vErrors.push(err117);
|
|
8493
8701
|
}
|
|
8494
8702
|
errors++;
|
|
8495
8703
|
}
|
|
@@ -8509,11 +8717,11 @@ function validate35(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
8509
8717
|
for (let i9 = 0; i9 < len9; i9++) {
|
|
8510
8718
|
const _errs148 = errors;
|
|
8511
8719
|
if (typeof data54[i9] !== "string") {
|
|
8512
|
-
const
|
|
8720
|
+
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" };
|
|
8513
8721
|
if (vErrors === null) {
|
|
8514
|
-
vErrors = [
|
|
8722
|
+
vErrors = [err118];
|
|
8515
8723
|
} else {
|
|
8516
|
-
vErrors.push(
|
|
8724
|
+
vErrors.push(err118);
|
|
8517
8725
|
}
|
|
8518
8726
|
errors++;
|
|
8519
8727
|
}
|
|
@@ -8523,11 +8731,11 @@ function validate35(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
8523
8731
|
}
|
|
8524
8732
|
}
|
|
8525
8733
|
} else {
|
|
8526
|
-
const
|
|
8734
|
+
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" };
|
|
8527
8735
|
if (vErrors === null) {
|
|
8528
|
-
vErrors = [
|
|
8736
|
+
vErrors = [err119];
|
|
8529
8737
|
} else {
|
|
8530
|
-
vErrors.push(
|
|
8738
|
+
vErrors.push(err119);
|
|
8531
8739
|
}
|
|
8532
8740
|
errors++;
|
|
8533
8741
|
}
|
|
@@ -8543,11 +8751,11 @@ function validate35(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
8543
8751
|
}
|
|
8544
8752
|
}
|
|
8545
8753
|
} else {
|
|
8546
|
-
const
|
|
8754
|
+
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" };
|
|
8547
8755
|
if (vErrors === null) {
|
|
8548
|
-
vErrors = [
|
|
8756
|
+
vErrors = [err120];
|
|
8549
8757
|
} else {
|
|
8550
|
-
vErrors.push(
|
|
8758
|
+
vErrors.push(err120);
|
|
8551
8759
|
}
|
|
8552
8760
|
errors++;
|
|
8553
8761
|
}
|
|
@@ -8560,11 +8768,11 @@ function validate35(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
8560
8768
|
}
|
|
8561
8769
|
}
|
|
8562
8770
|
if (!valid1) {
|
|
8563
|
-
const
|
|
8771
|
+
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" };
|
|
8564
8772
|
if (vErrors === null) {
|
|
8565
|
-
vErrors = [
|
|
8773
|
+
vErrors = [err121];
|
|
8566
8774
|
} else {
|
|
8567
|
-
vErrors.push(
|
|
8775
|
+
vErrors.push(err121);
|
|
8568
8776
|
}
|
|
8569
8777
|
errors++;
|
|
8570
8778
|
validate35.errors = vErrors;
|
|
@@ -8585,7 +8793,7 @@ function validate35(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
8585
8793
|
}
|
|
8586
8794
|
validate35.evaluated = { "dynamicProps": true, "dynamicItems": false };
|
|
8587
8795
|
var isDecisionStageSuccessResponse = validate36;
|
|
8588
|
-
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": {} }] };
|
|
8796
|
+
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": {} }] };
|
|
8589
8797
|
function validate36(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
8590
8798
|
;
|
|
8591
8799
|
let vErrors = null;
|
|
@@ -8732,13 +8940,23 @@ function validate36(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
8732
8940
|
vErrors.push(err9);
|
|
8733
8941
|
}
|
|
8734
8942
|
errors++;
|
|
8943
|
+
} else {
|
|
8944
|
+
if (!pattern4.test(data3)) {
|
|
8945
|
+
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}$"' };
|
|
8946
|
+
if (vErrors === null) {
|
|
8947
|
+
vErrors = [err10];
|
|
8948
|
+
} else {
|
|
8949
|
+
vErrors.push(err10);
|
|
8950
|
+
}
|
|
8951
|
+
errors++;
|
|
8952
|
+
}
|
|
8735
8953
|
}
|
|
8736
8954
|
} else {
|
|
8737
|
-
const
|
|
8955
|
+
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" };
|
|
8738
8956
|
if (vErrors === null) {
|
|
8739
|
-
vErrors = [
|
|
8957
|
+
vErrors = [err11];
|
|
8740
8958
|
} else {
|
|
8741
|
-
vErrors.push(
|
|
8959
|
+
vErrors.push(err11);
|
|
8742
8960
|
}
|
|
8743
8961
|
errors++;
|
|
8744
8962
|
}
|
|
@@ -8749,15 +8967,28 @@ function validate36(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
8749
8967
|
}
|
|
8750
8968
|
if (valid3) {
|
|
8751
8969
|
if (data.shortId !== void 0) {
|
|
8970
|
+
let data4 = data.shortId;
|
|
8752
8971
|
const _errs16 = errors;
|
|
8753
|
-
if (
|
|
8754
|
-
|
|
8755
|
-
|
|
8756
|
-
|
|
8972
|
+
if (errors === _errs16) {
|
|
8973
|
+
if (typeof data4 === "string") {
|
|
8974
|
+
if (!pattern5.test(data4)) {
|
|
8975
|
+
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}$"' };
|
|
8976
|
+
if (vErrors === null) {
|
|
8977
|
+
vErrors = [err12];
|
|
8978
|
+
} else {
|
|
8979
|
+
vErrors.push(err12);
|
|
8980
|
+
}
|
|
8981
|
+
errors++;
|
|
8982
|
+
}
|
|
8757
8983
|
} else {
|
|
8758
|
-
|
|
8984
|
+
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" };
|
|
8985
|
+
if (vErrors === null) {
|
|
8986
|
+
vErrors = [err13];
|
|
8987
|
+
} else {
|
|
8988
|
+
vErrors.push(err13);
|
|
8989
|
+
}
|
|
8990
|
+
errors++;
|
|
8759
8991
|
}
|
|
8760
|
-
errors++;
|
|
8761
8992
|
}
|
|
8762
8993
|
var valid3 = _errs16 === errors;
|
|
8763
8994
|
} else {
|
|
@@ -8768,20 +8999,20 @@ function validate36(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
8768
8999
|
let data5 = data.stage;
|
|
8769
9000
|
const _errs18 = errors;
|
|
8770
9001
|
if (typeof data5 !== "string") {
|
|
8771
|
-
const
|
|
9002
|
+
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" };
|
|
8772
9003
|
if (vErrors === null) {
|
|
8773
|
-
vErrors = [
|
|
9004
|
+
vErrors = [err14];
|
|
8774
9005
|
} else {
|
|
8775
|
-
vErrors.push(
|
|
9006
|
+
vErrors.push(err14);
|
|
8776
9007
|
}
|
|
8777
9008
|
errors++;
|
|
8778
9009
|
}
|
|
8779
9010
|
if (!(data5 === "draft" || data5 === "provisional" || data5 === "adopted" || data5 === "superseded" || data5 === "abandoned")) {
|
|
8780
|
-
const
|
|
9011
|
+
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" };
|
|
8781
9012
|
if (vErrors === null) {
|
|
8782
|
-
vErrors = [
|
|
9013
|
+
vErrors = [err15];
|
|
8783
9014
|
} else {
|
|
8784
|
-
vErrors.push(
|
|
9015
|
+
vErrors.push(err15);
|
|
8785
9016
|
}
|
|
8786
9017
|
errors++;
|
|
8787
9018
|
}
|
|
@@ -8794,11 +9025,11 @@ function validate36(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
8794
9025
|
}
|
|
8795
9026
|
}
|
|
8796
9027
|
} else {
|
|
8797
|
-
const
|
|
9028
|
+
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" };
|
|
8798
9029
|
if (vErrors === null) {
|
|
8799
|
-
vErrors = [
|
|
9030
|
+
vErrors = [err16];
|
|
8800
9031
|
} else {
|
|
8801
|
-
vErrors.push(
|
|
9032
|
+
vErrors.push(err16);
|
|
8802
9033
|
}
|
|
8803
9034
|
errors++;
|
|
8804
9035
|
}
|
|
@@ -8811,11 +9042,11 @@ function validate36(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
8811
9042
|
}
|
|
8812
9043
|
}
|
|
8813
9044
|
if (!valid1) {
|
|
8814
|
-
const
|
|
9045
|
+
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" };
|
|
8815
9046
|
if (vErrors === null) {
|
|
8816
|
-
vErrors = [
|
|
9047
|
+
vErrors = [err17];
|
|
8817
9048
|
} else {
|
|
8818
|
-
vErrors.push(
|
|
9049
|
+
vErrors.push(err17);
|
|
8819
9050
|
}
|
|
8820
9051
|
errors++;
|
|
8821
9052
|
validate36.errors = vErrors;
|
|
@@ -8887,7 +9118,7 @@ function validate37(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
8887
9118
|
return errors === 0;
|
|
8888
9119
|
}
|
|
8889
9120
|
validate37.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
|
|
8890
|
-
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": {} };
|
|
9121
|
+
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": {} };
|
|
8891
9122
|
function validate38(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
8892
9123
|
;
|
|
8893
9124
|
let vErrors = null;
|
|
@@ -8932,6 +9163,11 @@ function validate38(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
8932
9163
|
if (func1(data2) < 1) {
|
|
8933
9164
|
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" }];
|
|
8934
9165
|
return false;
|
|
9166
|
+
} else {
|
|
9167
|
+
if (!pattern4.test(data2)) {
|
|
9168
|
+
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}$"' }];
|
|
9169
|
+
return false;
|
|
9170
|
+
}
|
|
8935
9171
|
}
|
|
8936
9172
|
} else {
|
|
8937
9173
|
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" }];
|
|
@@ -9091,7 +9327,7 @@ function validate38(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
9091
9327
|
return errors === 0;
|
|
9092
9328
|
}
|
|
9093
9329
|
validate38.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
|
|
9094
|
-
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"] };
|
|
9330
|
+
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"] };
|
|
9095
9331
|
function validate39(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
9096
9332
|
;
|
|
9097
9333
|
let vErrors = null;
|
|
@@ -9136,6 +9372,11 @@ function validate39(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
9136
9372
|
if (func1(data2) < 1) {
|
|
9137
9373
|
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" }];
|
|
9138
9374
|
return false;
|
|
9375
|
+
} else {
|
|
9376
|
+
if (!pattern4.test(data2)) {
|
|
9377
|
+
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}$"' }];
|
|
9378
|
+
return false;
|
|
9379
|
+
}
|
|
9139
9380
|
}
|
|
9140
9381
|
} else {
|
|
9141
9382
|
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" }];
|
|
@@ -9148,10 +9389,18 @@ function validate39(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
9148
9389
|
}
|
|
9149
9390
|
if (valid3) {
|
|
9150
9391
|
if (data1.shortId !== void 0) {
|
|
9392
|
+
let data3 = data1.shortId;
|
|
9151
9393
|
const _errs11 = errors;
|
|
9152
|
-
if (
|
|
9153
|
-
|
|
9154
|
-
|
|
9394
|
+
if (errors === _errs11) {
|
|
9395
|
+
if (typeof data3 === "string") {
|
|
9396
|
+
if (!pattern5.test(data3)) {
|
|
9397
|
+
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}$"' }];
|
|
9398
|
+
return false;
|
|
9399
|
+
}
|
|
9400
|
+
} else {
|
|
9401
|
+
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" }];
|
|
9402
|
+
return false;
|
|
9403
|
+
}
|
|
9155
9404
|
}
|
|
9156
9405
|
var valid3 = _errs11 === errors;
|
|
9157
9406
|
} else {
|
|
@@ -9487,8 +9736,8 @@ function validate39(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
9487
9736
|
}
|
|
9488
9737
|
validate39.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
|
|
9489
9738
|
var isDemoCompleteRequest = validate40;
|
|
9490
|
-
var
|
|
9491
|
-
var
|
|
9739
|
+
var pattern34 = new RegExp("^[a-zA-Z0-9]{1,64}$", "u");
|
|
9740
|
+
var pattern35 = new RegExp("^[a-f0-9]{64}$", "u");
|
|
9492
9741
|
function validate40(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
9493
9742
|
;
|
|
9494
9743
|
let vErrors = null;
|
|
@@ -9522,7 +9771,7 @@ function validate40(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
9522
9771
|
const _errs3 = errors;
|
|
9523
9772
|
if (errors === _errs3) {
|
|
9524
9773
|
if (typeof data0 === "string") {
|
|
9525
|
-
if (!
|
|
9774
|
+
if (!pattern34.test(data0)) {
|
|
9526
9775
|
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}$"' }];
|
|
9527
9776
|
return false;
|
|
9528
9777
|
}
|
|
@@ -9566,7 +9815,7 @@ function validate40(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
9566
9815
|
const _errs7 = errors;
|
|
9567
9816
|
if (errors === _errs7) {
|
|
9568
9817
|
if (typeof data2 === "string") {
|
|
9569
|
-
if (!
|
|
9818
|
+
if (!pattern35.test(data2)) {
|
|
9570
9819
|
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}$"' }];
|
|
9571
9820
|
return false;
|
|
9572
9821
|
}
|
|
@@ -9593,7 +9842,7 @@ function validate40(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
9593
9842
|
}
|
|
9594
9843
|
validate40.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
|
|
9595
9844
|
var isDemoResolveRequest = validate41;
|
|
9596
|
-
var
|
|
9845
|
+
var pattern38 = new RegExp("\\S", "u");
|
|
9597
9846
|
function validate41(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
9598
9847
|
;
|
|
9599
9848
|
let vErrors = null;
|
|
@@ -9640,7 +9889,7 @@ function validate41(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
9640
9889
|
const _errs5 = errors;
|
|
9641
9890
|
if (errors === _errs5) {
|
|
9642
9891
|
if (typeof data0 === "string") {
|
|
9643
|
-
if (!
|
|
9892
|
+
if (!pattern34.test(data0)) {
|
|
9644
9893
|
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}$"' };
|
|
9645
9894
|
if (vErrors === null) {
|
|
9646
9895
|
vErrors = [err2];
|
|
@@ -9781,7 +10030,7 @@ function validate41(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
9781
10030
|
const _errs14 = errors;
|
|
9782
10031
|
if (errors === _errs14) {
|
|
9783
10032
|
if (typeof data3 === "string") {
|
|
9784
|
-
if (!
|
|
10033
|
+
if (!pattern34.test(data3)) {
|
|
9785
10034
|
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}$"' };
|
|
9786
10035
|
if (vErrors === null) {
|
|
9787
10036
|
vErrors = [err12];
|
|
@@ -9894,7 +10143,7 @@ function validate41(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
9894
10143
|
}
|
|
9895
10144
|
errors++;
|
|
9896
10145
|
} else {
|
|
9897
|
-
if (!
|
|
10146
|
+
if (!pattern38.test(data6)) {
|
|
9898
10147
|
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"' };
|
|
9899
10148
|
if (vErrors === null) {
|
|
9900
10149
|
vErrors = [err21];
|
|
@@ -10006,7 +10255,7 @@ function validate42(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
10006
10255
|
const _errs3 = errors;
|
|
10007
10256
|
if (errors === _errs3) {
|
|
10008
10257
|
if (typeof data0 === "string") {
|
|
10009
|
-
if (!
|
|
10258
|
+
if (!pattern34.test(data0)) {
|
|
10010
10259
|
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}$"' }];
|
|
10011
10260
|
return false;
|
|
10012
10261
|
}
|
|
@@ -10057,7 +10306,7 @@ function validate42(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
10057
10306
|
}
|
|
10058
10307
|
validate42.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
|
|
10059
10308
|
var isDemoStartRequest = validate43;
|
|
10060
|
-
var
|
|
10309
|
+
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");
|
|
10061
10310
|
function validate43(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
10062
10311
|
;
|
|
10063
10312
|
let vErrors = null;
|
|
@@ -10108,7 +10357,7 @@ function validate43(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
10108
10357
|
if (errors === _errs5) {
|
|
10109
10358
|
if (errors === _errs5) {
|
|
10110
10359
|
if (typeof data1 === "string") {
|
|
10111
|
-
if (!
|
|
10360
|
+
if (!pattern40.test(data1)) {
|
|
10112
10361
|
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)$"' }];
|
|
10113
10362
|
return false;
|
|
10114
10363
|
}
|
|
@@ -10137,7 +10386,7 @@ validate43.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": f
|
|
|
10137
10386
|
var isDemoStatusResponse = validate44;
|
|
10138
10387
|
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 };
|
|
10139
10388
|
var func34 = Object.prototype.hasOwnProperty;
|
|
10140
|
-
var
|
|
10389
|
+
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");
|
|
10141
10390
|
function validate44(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
10142
10391
|
;
|
|
10143
10392
|
let vErrors = null;
|
|
@@ -10219,7 +10468,7 @@ function validate44(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
10219
10468
|
const _errs9 = errors;
|
|
10220
10469
|
if (errors === _errs9) {
|
|
10221
10470
|
if (typeof data3 === "string") {
|
|
10222
|
-
if (!
|
|
10471
|
+
if (!pattern34.test(data3)) {
|
|
10223
10472
|
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}$"' }];
|
|
10224
10473
|
return false;
|
|
10225
10474
|
}
|
|
@@ -10337,7 +10586,7 @@ function validate44(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
10337
10586
|
if (errors === _errs22) {
|
|
10338
10587
|
if (errors === _errs22) {
|
|
10339
10588
|
if (typeof data9 === "string") {
|
|
10340
|
-
if (!
|
|
10589
|
+
if (!pattern42.test(data9)) {
|
|
10341
10590
|
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,}$"` }];
|
|
10342
10591
|
return false;
|
|
10343
10592
|
}
|
|
@@ -10475,7 +10724,7 @@ function validate44(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
10475
10724
|
const _errs36 = errors;
|
|
10476
10725
|
if (errors === _errs36) {
|
|
10477
10726
|
if (typeof data16 === "string") {
|
|
10478
|
-
if (!
|
|
10727
|
+
if (!pattern35.test(data16)) {
|
|
10479
10728
|
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}$"' }];
|
|
10480
10729
|
return false;
|
|
10481
10730
|
}
|
|
@@ -10678,15 +10927,28 @@ function validate45(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
10678
10927
|
}
|
|
10679
10928
|
if (valid3) {
|
|
10680
10929
|
if (data3.decisionId !== void 0) {
|
|
10930
|
+
let data8 = data3.decisionId;
|
|
10681
10931
|
const _errs22 = errors;
|
|
10682
|
-
if (
|
|
10683
|
-
|
|
10684
|
-
|
|
10685
|
-
|
|
10932
|
+
if (errors === _errs22) {
|
|
10933
|
+
if (typeof data8 === "string") {
|
|
10934
|
+
if (!pattern4.test(data8)) {
|
|
10935
|
+
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}$"' };
|
|
10936
|
+
if (vErrors === null) {
|
|
10937
|
+
vErrors = [err6];
|
|
10938
|
+
} else {
|
|
10939
|
+
vErrors.push(err6);
|
|
10940
|
+
}
|
|
10941
|
+
errors++;
|
|
10942
|
+
}
|
|
10686
10943
|
} else {
|
|
10687
|
-
|
|
10944
|
+
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" };
|
|
10945
|
+
if (vErrors === null) {
|
|
10946
|
+
vErrors = [err7];
|
|
10947
|
+
} else {
|
|
10948
|
+
vErrors.push(err7);
|
|
10949
|
+
}
|
|
10950
|
+
errors++;
|
|
10688
10951
|
}
|
|
10689
|
-
errors++;
|
|
10690
10952
|
}
|
|
10691
10953
|
var valid3 = _errs22 === errors;
|
|
10692
10954
|
} else {
|
|
@@ -10694,15 +10956,28 @@ function validate45(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
10694
10956
|
}
|
|
10695
10957
|
if (valid3) {
|
|
10696
10958
|
if (data3.decisionShortId !== void 0) {
|
|
10959
|
+
let data9 = data3.decisionShortId;
|
|
10697
10960
|
const _errs24 = errors;
|
|
10698
|
-
if (
|
|
10699
|
-
|
|
10700
|
-
|
|
10701
|
-
|
|
10961
|
+
if (errors === _errs24) {
|
|
10962
|
+
if (typeof data9 === "string") {
|
|
10963
|
+
if (!pattern5.test(data9)) {
|
|
10964
|
+
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}$"' };
|
|
10965
|
+
if (vErrors === null) {
|
|
10966
|
+
vErrors = [err8];
|
|
10967
|
+
} else {
|
|
10968
|
+
vErrors.push(err8);
|
|
10969
|
+
}
|
|
10970
|
+
errors++;
|
|
10971
|
+
}
|
|
10702
10972
|
} else {
|
|
10703
|
-
|
|
10973
|
+
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" };
|
|
10974
|
+
if (vErrors === null) {
|
|
10975
|
+
vErrors = [err9];
|
|
10976
|
+
} else {
|
|
10977
|
+
vErrors.push(err9);
|
|
10978
|
+
}
|
|
10979
|
+
errors++;
|
|
10704
10980
|
}
|
|
10705
|
-
errors++;
|
|
10706
10981
|
}
|
|
10707
10982
|
var valid3 = _errs24 === errors;
|
|
10708
10983
|
} else {
|
|
@@ -10716,11 +10991,11 @@ function validate45(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
10716
10991
|
}
|
|
10717
10992
|
}
|
|
10718
10993
|
} else {
|
|
10719
|
-
const
|
|
10994
|
+
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" };
|
|
10720
10995
|
if (vErrors === null) {
|
|
10721
|
-
vErrors = [
|
|
10996
|
+
vErrors = [err10];
|
|
10722
10997
|
} else {
|
|
10723
|
-
vErrors.push(
|
|
10998
|
+
vErrors.push(err10);
|
|
10724
10999
|
}
|
|
10725
11000
|
errors++;
|
|
10726
11001
|
}
|
|
@@ -10729,22 +11004,22 @@ function validate45(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
10729
11004
|
valid2 = valid2 || _valid0;
|
|
10730
11005
|
const _errs26 = errors;
|
|
10731
11006
|
if (data3 !== null) {
|
|
10732
|
-
const
|
|
11007
|
+
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" };
|
|
10733
11008
|
if (vErrors === null) {
|
|
10734
|
-
vErrors = [
|
|
11009
|
+
vErrors = [err11];
|
|
10735
11010
|
} else {
|
|
10736
|
-
vErrors.push(
|
|
11011
|
+
vErrors.push(err11);
|
|
10737
11012
|
}
|
|
10738
11013
|
errors++;
|
|
10739
11014
|
}
|
|
10740
11015
|
var _valid0 = _errs26 === errors;
|
|
10741
11016
|
valid2 = valid2 || _valid0;
|
|
10742
11017
|
if (!valid2) {
|
|
10743
|
-
const
|
|
11018
|
+
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" };
|
|
10744
11019
|
if (vErrors === null) {
|
|
10745
|
-
vErrors = [
|
|
11020
|
+
vErrors = [err12];
|
|
10746
11021
|
} else {
|
|
10747
|
-
vErrors.push(
|
|
11022
|
+
vErrors.push(err12);
|
|
10748
11023
|
}
|
|
10749
11024
|
errors++;
|
|
10750
11025
|
validate45.errors = vErrors;
|
|
@@ -11378,8 +11653,7 @@ function validate48(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
11378
11653
|
return errors === 0;
|
|
11379
11654
|
}
|
|
11380
11655
|
validate48.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
|
|
11381
|
-
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"] };
|
|
11382
|
-
var pattern14 = new RegExp("^[0-9a-f]{8}$", "u");
|
|
11656
|
+
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"] };
|
|
11383
11657
|
function validate49(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
11384
11658
|
;
|
|
11385
11659
|
let vErrors = null;
|
|
@@ -11718,7 +11992,7 @@ function validate49(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
11718
11992
|
const _errs27 = errors;
|
|
11719
11993
|
if (errors === _errs27) {
|
|
11720
11994
|
if (typeof data9 === "string") {
|
|
11721
|
-
if (!
|
|
11995
|
+
if (!pattern5.test(data9)) {
|
|
11722
11996
|
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}$"' };
|
|
11723
11997
|
if (vErrors === null) {
|
|
11724
11998
|
vErrors = [err24];
|
|
@@ -11764,14 +12038,24 @@ function validate49(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
11764
12038
|
vErrors.push(err27);
|
|
11765
12039
|
}
|
|
11766
12040
|
errors++;
|
|
12041
|
+
} else {
|
|
12042
|
+
if (!pattern4.test(data10)) {
|
|
12043
|
+
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}$"' };
|
|
12044
|
+
if (vErrors === null) {
|
|
12045
|
+
vErrors = [err28];
|
|
12046
|
+
} else {
|
|
12047
|
+
vErrors.push(err28);
|
|
12048
|
+
}
|
|
12049
|
+
errors++;
|
|
12050
|
+
}
|
|
11767
12051
|
}
|
|
11768
12052
|
}
|
|
11769
12053
|
} else {
|
|
11770
|
-
const
|
|
12054
|
+
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" };
|
|
11771
12055
|
if (vErrors === null) {
|
|
11772
|
-
vErrors = [
|
|
12056
|
+
vErrors = [err29];
|
|
11773
12057
|
} else {
|
|
11774
|
-
vErrors.push(
|
|
12058
|
+
vErrors.push(err29);
|
|
11775
12059
|
}
|
|
11776
12060
|
errors++;
|
|
11777
12061
|
}
|
|
@@ -11784,11 +12068,11 @@ function validate49(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
11784
12068
|
if (data6.intent !== void 0) {
|
|
11785
12069
|
const _errs31 = errors;
|
|
11786
12070
|
if (typeof data6.intent !== "string") {
|
|
11787
|
-
const
|
|
12071
|
+
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" };
|
|
11788
12072
|
if (vErrors === null) {
|
|
11789
|
-
vErrors = [
|
|
12073
|
+
vErrors = [err30];
|
|
11790
12074
|
} else {
|
|
11791
|
-
vErrors.push(
|
|
12075
|
+
vErrors.push(err30);
|
|
11792
12076
|
}
|
|
11793
12077
|
errors++;
|
|
11794
12078
|
}
|
|
@@ -11800,11 +12084,11 @@ function validate49(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
11800
12084
|
if (data6.webUrl !== void 0) {
|
|
11801
12085
|
const _errs33 = errors;
|
|
11802
12086
|
if (typeof data6.webUrl !== "string") {
|
|
11803
|
-
const
|
|
12087
|
+
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" };
|
|
11804
12088
|
if (vErrors === null) {
|
|
11805
|
-
vErrors = [
|
|
12089
|
+
vErrors = [err31];
|
|
11806
12090
|
} else {
|
|
11807
|
-
vErrors.push(
|
|
12091
|
+
vErrors.push(err31);
|
|
11808
12092
|
}
|
|
11809
12093
|
errors++;
|
|
11810
12094
|
}
|
|
@@ -11817,20 +12101,20 @@ function validate49(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
11817
12101
|
let data13 = data6.kind;
|
|
11818
12102
|
const _errs35 = errors;
|
|
11819
12103
|
if (typeof data13 !== "string") {
|
|
11820
|
-
const
|
|
12104
|
+
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" };
|
|
11821
12105
|
if (vErrors === null) {
|
|
11822
|
-
vErrors = [
|
|
12106
|
+
vErrors = [err32];
|
|
11823
12107
|
} else {
|
|
11824
|
-
vErrors.push(
|
|
12108
|
+
vErrors.push(err32);
|
|
11825
12109
|
}
|
|
11826
12110
|
errors++;
|
|
11827
12111
|
}
|
|
11828
12112
|
if (!(data13 === "confirm_prompt" || data13 === "publish_prompt")) {
|
|
11829
|
-
const
|
|
12113
|
+
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" };
|
|
11830
12114
|
if (vErrors === null) {
|
|
11831
|
-
vErrors = [
|
|
12115
|
+
vErrors = [err33];
|
|
11832
12116
|
} else {
|
|
11833
|
-
vErrors.push(
|
|
12117
|
+
vErrors.push(err33);
|
|
11834
12118
|
}
|
|
11835
12119
|
errors++;
|
|
11836
12120
|
}
|
|
@@ -11846,11 +12130,11 @@ function validate49(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
11846
12130
|
}
|
|
11847
12131
|
}
|
|
11848
12132
|
} else {
|
|
11849
|
-
const
|
|
12133
|
+
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" };
|
|
11850
12134
|
if (vErrors === null) {
|
|
11851
|
-
vErrors = [
|
|
12135
|
+
vErrors = [err34];
|
|
11852
12136
|
} else {
|
|
11853
|
-
vErrors.push(
|
|
12137
|
+
vErrors.push(err34);
|
|
11854
12138
|
}
|
|
11855
12139
|
errors++;
|
|
11856
12140
|
}
|
|
@@ -11863,11 +12147,11 @@ function validate49(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
11863
12147
|
}
|
|
11864
12148
|
}
|
|
11865
12149
|
} else {
|
|
11866
|
-
const
|
|
12150
|
+
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" };
|
|
11867
12151
|
if (vErrors === null) {
|
|
11868
|
-
vErrors = [
|
|
12152
|
+
vErrors = [err35];
|
|
11869
12153
|
} else {
|
|
11870
|
-
vErrors.push(
|
|
12154
|
+
vErrors.push(err35);
|
|
11871
12155
|
}
|
|
11872
12156
|
errors++;
|
|
11873
12157
|
}
|
|
@@ -11880,11 +12164,11 @@ function validate49(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
11880
12164
|
if (data.hasMore !== void 0) {
|
|
11881
12165
|
const _errs37 = errors;
|
|
11882
12166
|
if (typeof data.hasMore !== "boolean") {
|
|
11883
|
-
const
|
|
12167
|
+
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" };
|
|
11884
12168
|
if (vErrors === null) {
|
|
11885
|
-
vErrors = [
|
|
12169
|
+
vErrors = [err36];
|
|
11886
12170
|
} else {
|
|
11887
|
-
vErrors.push(
|
|
12171
|
+
vErrors.push(err36);
|
|
11888
12172
|
}
|
|
11889
12173
|
errors++;
|
|
11890
12174
|
}
|
|
@@ -11897,11 +12181,11 @@ function validate49(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
11897
12181
|
}
|
|
11898
12182
|
}
|
|
11899
12183
|
} else {
|
|
11900
|
-
const
|
|
12184
|
+
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" };
|
|
11901
12185
|
if (vErrors === null) {
|
|
11902
|
-
vErrors = [
|
|
12186
|
+
vErrors = [err37];
|
|
11903
12187
|
} else {
|
|
11904
|
-
vErrors.push(
|
|
12188
|
+
vErrors.push(err37);
|
|
11905
12189
|
}
|
|
11906
12190
|
errors++;
|
|
11907
12191
|
}
|
|
@@ -11918,11 +12202,11 @@ function validate49(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
11918
12202
|
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
11919
12203
|
let missing3;
|
|
11920
12204
|
if (data.protocolVersion === void 0 && (missing3 = "protocolVersion") || data.status === void 0 && (missing3 = "status") || data.reason === void 0 && (missing3 = "reason")) {
|
|
11921
|
-
const
|
|
12205
|
+
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 + "'" };
|
|
11922
12206
|
if (vErrors === null) {
|
|
11923
|
-
vErrors = [
|
|
12207
|
+
vErrors = [err38];
|
|
11924
12208
|
} else {
|
|
11925
|
-
vErrors.push(
|
|
12209
|
+
vErrors.push(err38);
|
|
11926
12210
|
}
|
|
11927
12211
|
errors++;
|
|
11928
12212
|
} else {
|
|
@@ -11930,31 +12214,31 @@ function validate49(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
11930
12214
|
let data15 = data.protocolVersion;
|
|
11931
12215
|
const _errs42 = errors;
|
|
11932
12216
|
if (!(typeof data15 == "number" && (!(data15 % 1) && !isNaN(data15)) && isFinite(data15))) {
|
|
11933
|
-
const
|
|
12217
|
+
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" };
|
|
11934
12218
|
if (vErrors === null) {
|
|
11935
|
-
vErrors = [
|
|
12219
|
+
vErrors = [err39];
|
|
11936
12220
|
} else {
|
|
11937
|
-
vErrors.push(
|
|
12221
|
+
vErrors.push(err39);
|
|
11938
12222
|
}
|
|
11939
12223
|
errors++;
|
|
11940
12224
|
}
|
|
11941
12225
|
if (errors === _errs42) {
|
|
11942
12226
|
if (typeof data15 == "number" && isFinite(data15)) {
|
|
11943
12227
|
if (data15 > 2 || isNaN(data15)) {
|
|
11944
|
-
const
|
|
12228
|
+
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" };
|
|
11945
12229
|
if (vErrors === null) {
|
|
11946
|
-
vErrors = [
|
|
12230
|
+
vErrors = [err40];
|
|
11947
12231
|
} else {
|
|
11948
|
-
vErrors.push(
|
|
12232
|
+
vErrors.push(err40);
|
|
11949
12233
|
}
|
|
11950
12234
|
errors++;
|
|
11951
12235
|
} else {
|
|
11952
12236
|
if (data15 < 1 || isNaN(data15)) {
|
|
11953
|
-
const
|
|
12237
|
+
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" };
|
|
11954
12238
|
if (vErrors === null) {
|
|
11955
|
-
vErrors = [
|
|
12239
|
+
vErrors = [err41];
|
|
11956
12240
|
} else {
|
|
11957
|
-
vErrors.push(
|
|
12241
|
+
vErrors.push(err41);
|
|
11958
12242
|
}
|
|
11959
12243
|
errors++;
|
|
11960
12244
|
}
|
|
@@ -11970,20 +12254,20 @@ function validate49(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
11970
12254
|
let data16 = data.status;
|
|
11971
12255
|
const _errs44 = errors;
|
|
11972
12256
|
if (typeof data16 !== "string") {
|
|
11973
|
-
const
|
|
12257
|
+
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" };
|
|
11974
12258
|
if (vErrors === null) {
|
|
11975
|
-
vErrors = [
|
|
12259
|
+
vErrors = [err42];
|
|
11976
12260
|
} else {
|
|
11977
|
-
vErrors.push(
|
|
12261
|
+
vErrors.push(err42);
|
|
11978
12262
|
}
|
|
11979
12263
|
errors++;
|
|
11980
12264
|
}
|
|
11981
12265
|
if ("unavailable" !== data16) {
|
|
11982
|
-
const
|
|
12266
|
+
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" };
|
|
11983
12267
|
if (vErrors === null) {
|
|
11984
|
-
vErrors = [
|
|
12268
|
+
vErrors = [err43];
|
|
11985
12269
|
} else {
|
|
11986
|
-
vErrors.push(
|
|
12270
|
+
vErrors.push(err43);
|
|
11987
12271
|
}
|
|
11988
12272
|
errors++;
|
|
11989
12273
|
}
|
|
@@ -11996,20 +12280,20 @@ function validate49(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
11996
12280
|
let data17 = data.reason;
|
|
11997
12281
|
const _errs46 = errors;
|
|
11998
12282
|
if (typeof data17 !== "string") {
|
|
11999
|
-
const
|
|
12283
|
+
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" };
|
|
12000
12284
|
if (vErrors === null) {
|
|
12001
|
-
vErrors = [
|
|
12285
|
+
vErrors = [err44];
|
|
12002
12286
|
} else {
|
|
12003
|
-
vErrors.push(
|
|
12287
|
+
vErrors.push(err44);
|
|
12004
12288
|
}
|
|
12005
12289
|
errors++;
|
|
12006
12290
|
}
|
|
12007
12291
|
if ("organization_unbound" !== data17) {
|
|
12008
|
-
const
|
|
12292
|
+
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" };
|
|
12009
12293
|
if (vErrors === null) {
|
|
12010
|
-
vErrors = [
|
|
12294
|
+
vErrors = [err45];
|
|
12011
12295
|
} else {
|
|
12012
|
-
vErrors.push(
|
|
12296
|
+
vErrors.push(err45);
|
|
12013
12297
|
}
|
|
12014
12298
|
errors++;
|
|
12015
12299
|
}
|
|
@@ -12021,11 +12305,11 @@ function validate49(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
12021
12305
|
}
|
|
12022
12306
|
}
|
|
12023
12307
|
} else {
|
|
12024
|
-
const
|
|
12308
|
+
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" };
|
|
12025
12309
|
if (vErrors === null) {
|
|
12026
|
-
vErrors = [
|
|
12310
|
+
vErrors = [err46];
|
|
12027
12311
|
} else {
|
|
12028
|
-
vErrors.push(
|
|
12312
|
+
vErrors.push(err46);
|
|
12029
12313
|
}
|
|
12030
12314
|
errors++;
|
|
12031
12315
|
}
|
|
@@ -12038,11 +12322,11 @@ function validate49(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
12038
12322
|
}
|
|
12039
12323
|
}
|
|
12040
12324
|
if (!valid1) {
|
|
12041
|
-
const
|
|
12325
|
+
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" };
|
|
12042
12326
|
if (vErrors === null) {
|
|
12043
|
-
vErrors = [
|
|
12327
|
+
vErrors = [err47];
|
|
12044
12328
|
} else {
|
|
12045
|
-
vErrors.push(
|
|
12329
|
+
vErrors.push(err47);
|
|
12046
12330
|
}
|
|
12047
12331
|
errors++;
|
|
12048
12332
|
validate49.errors = vErrors;
|
|
@@ -12776,8 +13060,8 @@ function validate51(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
12776
13060
|
}
|
|
12777
13061
|
validate51.evaluated = { "dynamicProps": true, "dynamicItems": false };
|
|
12778
13062
|
var isGitHubInstallIntentStartResponse = validate52;
|
|
12779
|
-
var
|
|
12780
|
-
var
|
|
13063
|
+
var pattern48 = new RegExp("^[A-Za-z0-9]{1,128}$", "u");
|
|
13064
|
+
var pattern49 = new RegExp("^https:\\/\\/github\\.com\\/apps\\/primitive(?:-staging)?\\/installations\\/new\\?state=[0-9a-f]{64}$", "u");
|
|
12781
13065
|
function validate52(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
12782
13066
|
;
|
|
12783
13067
|
let vErrors = null;
|
|
@@ -12859,7 +13143,7 @@ function validate52(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
12859
13143
|
const _errs9 = errors;
|
|
12860
13144
|
if (errors === _errs9) {
|
|
12861
13145
|
if (typeof data3 === "string") {
|
|
12862
|
-
if (!
|
|
13146
|
+
if (!pattern48.test(data3)) {
|
|
12863
13147
|
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}$"' }];
|
|
12864
13148
|
return false;
|
|
12865
13149
|
}
|
|
@@ -12878,7 +13162,7 @@ function validate52(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
12878
13162
|
const _errs11 = errors;
|
|
12879
13163
|
if (errors === _errs11) {
|
|
12880
13164
|
if (typeof data4 === "string") {
|
|
12881
|
-
if (!
|
|
13165
|
+
if (!pattern49.test(data4)) {
|
|
12882
13166
|
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}$"' }];
|
|
12883
13167
|
return false;
|
|
12884
13168
|
}
|
|
@@ -13286,7 +13570,7 @@ function validate54(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
13286
13570
|
const _errs3 = errors;
|
|
13287
13571
|
if (errors === _errs3) {
|
|
13288
13572
|
if (typeof data0 === "string") {
|
|
13289
|
-
if (!
|
|
13573
|
+
if (!pattern48.test(data0)) {
|
|
13290
13574
|
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}$"' }];
|
|
13291
13575
|
return false;
|
|
13292
13576
|
}
|
|
@@ -14860,7 +15144,7 @@ function validate55(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
14860
15144
|
validate55.evaluated = { "dynamicProps": true, "dynamicItems": false };
|
|
14861
15145
|
var isMoveIngestRequest = validate56;
|
|
14862
15146
|
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": {} };
|
|
14863
|
-
var
|
|
15147
|
+
var pattern51 = new RegExp("^[A-Za-z0-9_-]+$", "u");
|
|
14864
15148
|
function validate56(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
14865
15149
|
;
|
|
14866
15150
|
let vErrors = null;
|
|
@@ -15221,7 +15505,7 @@ function validate56(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
15221
15505
|
}
|
|
15222
15506
|
errors++;
|
|
15223
15507
|
} else {
|
|
15224
|
-
if (!
|
|
15508
|
+
if (!pattern51.test(data11)) {
|
|
15225
15509
|
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_-]+$"' };
|
|
15226
15510
|
if (vErrors === null) {
|
|
15227
15511
|
vErrors = [err22];
|
|
@@ -15746,7 +16030,7 @@ function validate56(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
15746
16030
|
}
|
|
15747
16031
|
errors++;
|
|
15748
16032
|
} else {
|
|
15749
|
-
if (!
|
|
16033
|
+
if (!pattern51.test(data26)) {
|
|
15750
16034
|
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_-]+$"' };
|
|
15751
16035
|
if (vErrors === null) {
|
|
15752
16036
|
vErrors = [err58];
|
|
@@ -15989,10 +16273,10 @@ function validate56(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
15989
16273
|
}
|
|
15990
16274
|
validate56.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
|
|
15991
16275
|
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"] };
|
|
15992
|
-
var
|
|
15993
|
-
var
|
|
15994
|
-
var
|
|
15995
|
-
var
|
|
16276
|
+
var pattern53 = new RegExp("^[A-Za-z0-9._:-]{1,128}$", "u");
|
|
16277
|
+
var pattern55 = new RegExp("^[A-Za-z0-9]{1,64}$", "u");
|
|
16278
|
+
var pattern56 = new RegExp("^(?!@?$)(?!\\/)(?!.*\\/$)(?!.*\\/\\/)(?!.*(?:^|\\/)\\.{1,2}(?:\\/|$))(?!.*(?:^|\\/)[^/]*\\.lock(?:\\/|$))(?!.*\\.\\.)(?!.*@\\{)(?!.*[~^:?*\\\\]).+$", "u");
|
|
16279
|
+
var pattern57 = new RegExp("^[A-Za-z0-9][A-Za-z0-9._+-]*$", "u");
|
|
15996
16280
|
function validate57(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
15997
16281
|
;
|
|
15998
16282
|
let vErrors = null;
|
|
@@ -16058,7 +16342,7 @@ function validate57(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
16058
16342
|
const _errs8 = errors;
|
|
16059
16343
|
if (errors === _errs8) {
|
|
16060
16344
|
if (typeof data2 === "string") {
|
|
16061
|
-
if (!
|
|
16345
|
+
if (!pattern53.test(data2)) {
|
|
16062
16346
|
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}$"' }];
|
|
16063
16347
|
return false;
|
|
16064
16348
|
}
|
|
@@ -16077,7 +16361,7 @@ function validate57(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
16077
16361
|
const _errs10 = errors;
|
|
16078
16362
|
if (errors === _errs10) {
|
|
16079
16363
|
if (typeof data3 === "string") {
|
|
16080
|
-
if (!
|
|
16364
|
+
if (!pattern53.test(data3)) {
|
|
16081
16365
|
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}$"' }];
|
|
16082
16366
|
return false;
|
|
16083
16367
|
}
|
|
@@ -16096,7 +16380,7 @@ function validate57(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
16096
16380
|
const _errs12 = errors;
|
|
16097
16381
|
if (errors === _errs12) {
|
|
16098
16382
|
if (typeof data4 === "string") {
|
|
16099
|
-
if (!
|
|
16383
|
+
if (!pattern55.test(data4)) {
|
|
16100
16384
|
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}$"' }];
|
|
16101
16385
|
return false;
|
|
16102
16386
|
}
|
|
@@ -16168,7 +16452,7 @@ function validate57(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
16168
16452
|
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" }];
|
|
16169
16453
|
return false;
|
|
16170
16454
|
} else {
|
|
16171
|
-
if (!
|
|
16455
|
+
if (!pattern56.test(data8)) {
|
|
16172
16456
|
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(?:\\/|$))(?!.*\\.\\.)(?!.*@\\{)(?!.*[~^:?*\\\\]).+$"' }];
|
|
16173
16457
|
return false;
|
|
16174
16458
|
}
|
|
@@ -16208,7 +16492,7 @@ function validate57(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
16208
16492
|
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" }];
|
|
16209
16493
|
return false;
|
|
16210
16494
|
} else {
|
|
16211
|
-
if (!
|
|
16495
|
+
if (!pattern57.test(data10)) {
|
|
16212
16496
|
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._+-]*$"' }];
|
|
16213
16497
|
return false;
|
|
16214
16498
|
}
|
|
@@ -16254,7 +16538,7 @@ function validate57(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
16254
16538
|
return errors === 0;
|
|
16255
16539
|
}
|
|
16256
16540
|
validate57.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
|
|
16257
|
-
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": {} };
|
|
16541
|
+
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": {} };
|
|
16258
16542
|
function validate58(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
16259
16543
|
;
|
|
16260
16544
|
let vErrors = null;
|
|
@@ -16295,7 +16579,7 @@ function validate58(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
16295
16579
|
const _errs5 = errors;
|
|
16296
16580
|
if (errors === _errs5) {
|
|
16297
16581
|
if (typeof data1 === "string") {
|
|
16298
|
-
if (!
|
|
16582
|
+
if (!pattern53.test(data1)) {
|
|
16299
16583
|
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}$"' }];
|
|
16300
16584
|
return false;
|
|
16301
16585
|
}
|
|
@@ -16365,10 +16649,18 @@ function validate58(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
16365
16649
|
return false;
|
|
16366
16650
|
} else {
|
|
16367
16651
|
if (data6.decisionId !== void 0) {
|
|
16652
|
+
let data7 = data6.decisionId;
|
|
16368
16653
|
const _errs18 = errors;
|
|
16369
|
-
if (
|
|
16370
|
-
|
|
16371
|
-
|
|
16654
|
+
if (errors === _errs18) {
|
|
16655
|
+
if (typeof data7 === "string") {
|
|
16656
|
+
if (!pattern4.test(data7)) {
|
|
16657
|
+
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}$"' }];
|
|
16658
|
+
return false;
|
|
16659
|
+
}
|
|
16660
|
+
} else {
|
|
16661
|
+
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" }];
|
|
16662
|
+
return false;
|
|
16663
|
+
}
|
|
16372
16664
|
}
|
|
16373
16665
|
var valid3 = _errs18 === errors;
|
|
16374
16666
|
} else {
|
|
@@ -16376,10 +16668,18 @@ function validate58(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
16376
16668
|
}
|
|
16377
16669
|
if (valid3) {
|
|
16378
16670
|
if (data6.shortId !== void 0) {
|
|
16671
|
+
let data8 = data6.shortId;
|
|
16379
16672
|
const _errs20 = errors;
|
|
16380
|
-
if (
|
|
16381
|
-
|
|
16382
|
-
|
|
16673
|
+
if (errors === _errs20) {
|
|
16674
|
+
if (typeof data8 === "string") {
|
|
16675
|
+
if (!pattern5.test(data8)) {
|
|
16676
|
+
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}$"' }];
|
|
16677
|
+
return false;
|
|
16678
|
+
}
|
|
16679
|
+
} else {
|
|
16680
|
+
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" }];
|
|
16681
|
+
return false;
|
|
16682
|
+
}
|
|
16383
16683
|
}
|
|
16384
16684
|
var valid3 = _errs20 === errors;
|
|
16385
16685
|
} else {
|
|
@@ -16437,10 +16737,18 @@ function validate58(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
16437
16737
|
return false;
|
|
16438
16738
|
} else {
|
|
16439
16739
|
if (data11.decisionId !== void 0) {
|
|
16740
|
+
let data12 = data11.decisionId;
|
|
16440
16741
|
const _errs29 = errors;
|
|
16441
|
-
if (
|
|
16442
|
-
|
|
16443
|
-
|
|
16742
|
+
if (errors === _errs29) {
|
|
16743
|
+
if (typeof data12 === "string") {
|
|
16744
|
+
if (!pattern4.test(data12)) {
|
|
16745
|
+
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}$"' }];
|
|
16746
|
+
return false;
|
|
16747
|
+
}
|
|
16748
|
+
} else {
|
|
16749
|
+
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" }];
|
|
16750
|
+
return false;
|
|
16751
|
+
}
|
|
16444
16752
|
}
|
|
16445
16753
|
var valid5 = _errs29 === errors;
|
|
16446
16754
|
} else {
|
|
@@ -16459,10 +16767,18 @@ function validate58(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
16459
16767
|
}
|
|
16460
16768
|
if (valid5) {
|
|
16461
16769
|
if (data11.shortId !== void 0) {
|
|
16770
|
+
let data14 = data11.shortId;
|
|
16462
16771
|
const _errs33 = errors;
|
|
16463
|
-
if (
|
|
16464
|
-
|
|
16465
|
-
|
|
16772
|
+
if (errors === _errs33) {
|
|
16773
|
+
if (typeof data14 === "string") {
|
|
16774
|
+
if (!pattern5.test(data14)) {
|
|
16775
|
+
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}$"' }];
|
|
16776
|
+
return false;
|
|
16777
|
+
}
|
|
16778
|
+
} else {
|
|
16779
|
+
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" }];
|
|
16780
|
+
return false;
|
|
16781
|
+
}
|
|
16466
16782
|
}
|
|
16467
16783
|
var valid5 = _errs33 === errors;
|
|
16468
16784
|
} else {
|
|
@@ -16784,10 +17100,18 @@ function validate58(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
16784
17100
|
}
|
|
16785
17101
|
if (_errs65 === errors) {
|
|
16786
17102
|
if (data28.decisionId !== void 0) {
|
|
17103
|
+
let data29 = data28.decisionId;
|
|
16787
17104
|
const _errs66 = errors;
|
|
16788
|
-
if (
|
|
16789
|
-
|
|
16790
|
-
|
|
17105
|
+
if (errors === _errs66) {
|
|
17106
|
+
if (typeof data29 === "string") {
|
|
17107
|
+
if (!pattern4.test(data29)) {
|
|
17108
|
+
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}$"' }];
|
|
17109
|
+
return false;
|
|
17110
|
+
}
|
|
17111
|
+
} else {
|
|
17112
|
+
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" }];
|
|
17113
|
+
return false;
|
|
17114
|
+
}
|
|
16791
17115
|
}
|
|
16792
17116
|
var valid10 = _errs66 === errors;
|
|
16793
17117
|
} else {
|
|
@@ -16885,10 +17209,18 @@ function validate58(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
16885
17209
|
}
|
|
16886
17210
|
if (_errs74 === errors) {
|
|
16887
17211
|
if (data32.decisionId !== void 0) {
|
|
17212
|
+
let data33 = data32.decisionId;
|
|
16888
17213
|
const _errs75 = errors;
|
|
16889
|
-
if (
|
|
16890
|
-
|
|
16891
|
-
|
|
17214
|
+
if (errors === _errs75) {
|
|
17215
|
+
if (typeof data33 === "string") {
|
|
17216
|
+
if (!pattern4.test(data33)) {
|
|
17217
|
+
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}$"' }];
|
|
17218
|
+
return false;
|
|
17219
|
+
}
|
|
17220
|
+
} else {
|
|
17221
|
+
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" }];
|
|
17222
|
+
return false;
|
|
17223
|
+
}
|
|
16892
17224
|
}
|
|
16893
17225
|
var valid12 = _errs75 === errors;
|
|
16894
17226
|
} else {
|
|
@@ -16896,10 +17228,18 @@ function validate58(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
16896
17228
|
}
|
|
16897
17229
|
if (valid12) {
|
|
16898
17230
|
if (data32.shortId !== void 0) {
|
|
17231
|
+
let data34 = data32.shortId;
|
|
16899
17232
|
const _errs77 = errors;
|
|
16900
|
-
if (
|
|
16901
|
-
|
|
16902
|
-
|
|
17233
|
+
if (errors === _errs77) {
|
|
17234
|
+
if (typeof data34 === "string") {
|
|
17235
|
+
if (!pattern5.test(data34)) {
|
|
17236
|
+
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}$"' }];
|
|
17237
|
+
return false;
|
|
17238
|
+
}
|
|
17239
|
+
} else {
|
|
17240
|
+
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" }];
|
|
17241
|
+
return false;
|
|
17242
|
+
}
|
|
16903
17243
|
}
|
|
16904
17244
|
var valid12 = _errs77 === errors;
|
|
16905
17245
|
} else {
|
|
@@ -16964,8 +17304,8 @@ function validate58(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
16964
17304
|
return errors === 0;
|
|
16965
17305
|
}
|
|
16966
17306
|
validate58.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
|
|
16967
|
-
var
|
|
16968
|
-
var
|
|
17307
|
+
var pattern66 = new RegExp("^[A-Za-z0-9._-]{1,128}$", "u");
|
|
17308
|
+
var pattern67 = new RegExp("^pci_[A-Za-z0-9_-]{43}$", "u");
|
|
16969
17309
|
function validate59(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
16970
17310
|
;
|
|
16971
17311
|
let vErrors = null;
|
|
@@ -16990,7 +17330,7 @@ function validate59(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
16990
17330
|
const _errs3 = errors;
|
|
16991
17331
|
if (errors === _errs3) {
|
|
16992
17332
|
if (typeof data0 === "string") {
|
|
16993
|
-
if (!
|
|
17333
|
+
if (!pattern66.test(data0)) {
|
|
16994
17334
|
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}$"' }];
|
|
16995
17335
|
return false;
|
|
16996
17336
|
}
|
|
@@ -17009,7 +17349,7 @@ function validate59(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
17009
17349
|
const _errs5 = errors;
|
|
17010
17350
|
if (errors === _errs5) {
|
|
17011
17351
|
if (typeof data1 === "string") {
|
|
17012
|
-
if (!
|
|
17352
|
+
if (!pattern67.test(data1)) {
|
|
17013
17353
|
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}$"' }];
|
|
17014
17354
|
return false;
|
|
17015
17355
|
}
|
|
@@ -17552,7 +17892,7 @@ function validate61(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
17552
17892
|
}
|
|
17553
17893
|
validate61.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
|
|
17554
17894
|
var isReconcileResolutionResponse = validate62;
|
|
17555
|
-
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 };
|
|
17895
|
+
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 };
|
|
17556
17896
|
function validate62(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
17557
17897
|
;
|
|
17558
17898
|
let vErrors = null;
|
|
@@ -17609,10 +17949,18 @@ function validate62(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
17609
17949
|
}
|
|
17610
17950
|
if (valid1) {
|
|
17611
17951
|
if (data.decisionId !== void 0) {
|
|
17952
|
+
let data2 = data.decisionId;
|
|
17612
17953
|
const _errs7 = errors;
|
|
17613
|
-
if (
|
|
17614
|
-
|
|
17615
|
-
|
|
17954
|
+
if (errors === _errs7) {
|
|
17955
|
+
if (typeof data2 === "string") {
|
|
17956
|
+
if (!pattern4.test(data2)) {
|
|
17957
|
+
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}$"' }];
|
|
17958
|
+
return false;
|
|
17959
|
+
}
|
|
17960
|
+
} else {
|
|
17961
|
+
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" }];
|
|
17962
|
+
return false;
|
|
17963
|
+
}
|
|
17616
17964
|
}
|
|
17617
17965
|
var valid1 = _errs7 === errors;
|
|
17618
17966
|
} else {
|
|
@@ -17673,7 +18021,7 @@ function validate62(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
17673
18021
|
return errors === 0;
|
|
17674
18022
|
}
|
|
17675
18023
|
validate62.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
|
|
17676
|
-
var
|
|
18024
|
+
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");
|
|
17677
18025
|
function validate63(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
17678
18026
|
;
|
|
17679
18027
|
let vErrors = null;
|
|
@@ -17707,7 +18055,7 @@ function validate63(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
17707
18055
|
const _errs3 = errors;
|
|
17708
18056
|
if (errors === _errs3) {
|
|
17709
18057
|
if (typeof data0 === "string") {
|
|
17710
|
-
if (!
|
|
18058
|
+
if (!pattern69.test(data0)) {
|
|
17711
18059
|
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}$"' }];
|
|
17712
18060
|
return false;
|
|
17713
18061
|
}
|
|
@@ -17772,7 +18120,7 @@ function validate64(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
17772
18120
|
return errors === 0;
|
|
17773
18121
|
}
|
|
17774
18122
|
validate64.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
|
|
17775
|
-
var
|
|
18123
|
+
var pattern71 = new RegExp("^api_key_[A-Za-z0-9_-]+$", "u");
|
|
17776
18124
|
function validate65(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
17777
18125
|
;
|
|
17778
18126
|
let vErrors = null;
|
|
@@ -17806,7 +18154,7 @@ function validate65(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
17806
18154
|
const _errs3 = errors;
|
|
17807
18155
|
if (errors === _errs3) {
|
|
17808
18156
|
if (typeof data0 === "string") {
|
|
17809
|
-
if (!
|
|
18157
|
+
if (!pattern35.test(data0)) {
|
|
17810
18158
|
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}$"' }];
|
|
17811
18159
|
return false;
|
|
17812
18160
|
}
|
|
@@ -17858,7 +18206,7 @@ function validate65(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
17858
18206
|
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" }];
|
|
17859
18207
|
return false;
|
|
17860
18208
|
} else {
|
|
17861
|
-
if (!
|
|
18209
|
+
if (!pattern71.test(data2)) {
|
|
17862
18210
|
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_-]+$"' }];
|
|
17863
18211
|
return false;
|
|
17864
18212
|
}
|
|
@@ -17886,9 +18234,9 @@ function validate65(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
17886
18234
|
return errors === 0;
|
|
17887
18235
|
}
|
|
17888
18236
|
validate65.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
|
|
17889
|
-
var
|
|
17890
|
-
var
|
|
17891
|
-
var
|
|
18237
|
+
var pattern73 = new RegExp("^[\\x21-\\x7e](?:[\\x20-\\x7e]{0,126}[\\x21-\\x7e])?$", "u");
|
|
18238
|
+
var pattern74 = new RegExp("^[^\\u0000-\\u001f\\u007f-\\u009f\\u2028\\u2029\\u061c\\u200b-\\u200f\\u202a-\\u202e\\u2060\\u2066-\\u2069\\ufeff]+$", "u");
|
|
18239
|
+
var pattern75 = new RegExp("^[\\x21-\\x7e]+$", "u");
|
|
17892
18240
|
function validate66(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
17893
18241
|
;
|
|
17894
18242
|
let vErrors = null;
|
|
@@ -17960,7 +18308,7 @@ function validate66(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
17960
18308
|
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" }];
|
|
17961
18309
|
return false;
|
|
17962
18310
|
} else {
|
|
17963
|
-
if (!
|
|
18311
|
+
if (!pattern71.test(data2)) {
|
|
17964
18312
|
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_-]+$"' }];
|
|
17965
18313
|
return false;
|
|
17966
18314
|
}
|
|
@@ -17989,7 +18337,7 @@ function validate66(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
17989
18337
|
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" }];
|
|
17990
18338
|
return false;
|
|
17991
18339
|
} else {
|
|
17992
|
-
if (!
|
|
18340
|
+
if (!pattern73.test(data3)) {
|
|
17993
18341
|
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])?$"' }];
|
|
17994
18342
|
return false;
|
|
17995
18343
|
}
|
|
@@ -18018,7 +18366,7 @@ function validate66(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
18018
18366
|
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" }];
|
|
18019
18367
|
return false;
|
|
18020
18368
|
} else {
|
|
18021
|
-
if (!
|
|
18369
|
+
if (!pattern74.test(data4)) {
|
|
18022
18370
|
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]+$"' }];
|
|
18023
18371
|
return false;
|
|
18024
18372
|
}
|
|
@@ -18058,7 +18406,7 @@ function validate66(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
18058
18406
|
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" }];
|
|
18059
18407
|
return false;
|
|
18060
18408
|
} else {
|
|
18061
|
-
if (!
|
|
18409
|
+
if (!pattern75.test(data6)) {
|
|
18062
18410
|
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]+$"' }];
|
|
18063
18411
|
return false;
|
|
18064
18412
|
}
|
|
@@ -18344,7 +18692,7 @@ function validate66(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
18344
18692
|
}
|
|
18345
18693
|
errors++;
|
|
18346
18694
|
} else {
|
|
18347
|
-
if (!
|
|
18695
|
+
if (!pattern71.test(data11)) {
|
|
18348
18696
|
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_-]+$"' };
|
|
18349
18697
|
if (vErrors === null) {
|
|
18350
18698
|
vErrors = [err12];
|
|
@@ -18456,7 +18804,7 @@ function validate67(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
18456
18804
|
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" }];
|
|
18457
18805
|
return false;
|
|
18458
18806
|
} else {
|
|
18459
|
-
if (!
|
|
18807
|
+
if (!pattern71.test(data0)) {
|
|
18460
18808
|
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_-]+$"' }];
|
|
18461
18809
|
return false;
|
|
18462
18810
|
}
|
|
@@ -18485,7 +18833,7 @@ function validate67(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
18485
18833
|
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" }];
|
|
18486
18834
|
return false;
|
|
18487
18835
|
} else {
|
|
18488
|
-
if (!
|
|
18836
|
+
if (!pattern73.test(data1)) {
|
|
18489
18837
|
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])?$"' }];
|
|
18490
18838
|
return false;
|
|
18491
18839
|
}
|
|
@@ -18514,7 +18862,7 @@ function validate67(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
18514
18862
|
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" }];
|
|
18515
18863
|
return false;
|
|
18516
18864
|
} else {
|
|
18517
|
-
if (!
|
|
18865
|
+
if (!pattern74.test(data2)) {
|
|
18518
18866
|
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]+$"' }];
|
|
18519
18867
|
return false;
|
|
18520
18868
|
}
|
|
@@ -18554,7 +18902,7 @@ function validate67(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
18554
18902
|
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" }];
|
|
18555
18903
|
return false;
|
|
18556
18904
|
} else {
|
|
18557
|
-
if (!
|
|
18905
|
+
if (!pattern75.test(data4)) {
|
|
18558
18906
|
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]+$"' }];
|
|
18559
18907
|
return false;
|
|
18560
18908
|
}
|
|
@@ -18835,7 +19183,7 @@ function validate68(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
18835
19183
|
const _errs3 = errors;
|
|
18836
19184
|
if (errors === _errs3) {
|
|
18837
19185
|
if (typeof data0 === "string") {
|
|
18838
|
-
if (!
|
|
19186
|
+
if (!pattern35.test(data0)) {
|
|
18839
19187
|
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}$"' }];
|
|
18840
19188
|
return false;
|
|
18841
19189
|
}
|
|
@@ -18862,7 +19210,7 @@ function validate68(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
18862
19210
|
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" }];
|
|
18863
19211
|
return false;
|
|
18864
19212
|
} else {
|
|
18865
|
-
if (!
|
|
19213
|
+
if (!pattern73.test(data1)) {
|
|
18866
19214
|
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])?$"' }];
|
|
18867
19215
|
return false;
|
|
18868
19216
|
}
|
|
@@ -18915,7 +19263,7 @@ function validate68(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
18915
19263
|
return errors === 0;
|
|
18916
19264
|
}
|
|
18917
19265
|
validate68.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
|
|
18918
|
-
var
|
|
19266
|
+
var pattern87 = new RegExp("^sk_[\\x21-\\x7e]+(?: [\\x21-\\x7e]+)*$", "u");
|
|
18919
19267
|
function validate69(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
18920
19268
|
;
|
|
18921
19269
|
let vErrors = null;
|
|
@@ -18976,7 +19324,7 @@ function validate69(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
18976
19324
|
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" }];
|
|
18977
19325
|
return false;
|
|
18978
19326
|
} else {
|
|
18979
|
-
if (!
|
|
19327
|
+
if (!pattern71.test(data1)) {
|
|
18980
19328
|
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_-]+$"' }];
|
|
18981
19329
|
return false;
|
|
18982
19330
|
}
|
|
@@ -19005,7 +19353,7 @@ function validate69(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
19005
19353
|
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" }];
|
|
19006
19354
|
return false;
|
|
19007
19355
|
} else {
|
|
19008
|
-
if (!
|
|
19356
|
+
if (!pattern73.test(data2)) {
|
|
19009
19357
|
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])?$"' }];
|
|
19010
19358
|
return false;
|
|
19011
19359
|
}
|
|
@@ -19034,7 +19382,7 @@ function validate69(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
19034
19382
|
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" }];
|
|
19035
19383
|
return false;
|
|
19036
19384
|
} else {
|
|
19037
|
-
if (!
|
|
19385
|
+
if (!pattern74.test(data3)) {
|
|
19038
19386
|
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]+$"' }];
|
|
19039
19387
|
return false;
|
|
19040
19388
|
}
|
|
@@ -19074,7 +19422,7 @@ function validate69(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
19074
19422
|
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" }];
|
|
19075
19423
|
return false;
|
|
19076
19424
|
} else {
|
|
19077
|
-
if (!
|
|
19425
|
+
if (!pattern75.test(data5)) {
|
|
19078
19426
|
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]+$"' }];
|
|
19079
19427
|
return false;
|
|
19080
19428
|
}
|
|
@@ -19336,7 +19684,7 @@ function validate69(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
19336
19684
|
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" }];
|
|
19337
19685
|
return false;
|
|
19338
19686
|
} else {
|
|
19339
|
-
if (!
|
|
19687
|
+
if (!pattern87.test(data10)) {
|
|
19340
19688
|
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]+)*$"' }];
|
|
19341
19689
|
return false;
|
|
19342
19690
|
}
|
|
@@ -19396,7 +19744,7 @@ function validate70(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
19396
19744
|
const _errs3 = errors;
|
|
19397
19745
|
if (errors === _errs3) {
|
|
19398
19746
|
if (typeof data0 === "string") {
|
|
19399
|
-
if (!
|
|
19747
|
+
if (!pattern35.test(data0)) {
|
|
19400
19748
|
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}$"' }];
|
|
19401
19749
|
return false;
|
|
19402
19750
|
}
|
|
@@ -19458,7 +19806,7 @@ function validate71(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
19458
19806
|
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" }];
|
|
19459
19807
|
return false;
|
|
19460
19808
|
} else {
|
|
19461
|
-
if (!
|
|
19809
|
+
if (!pattern71.test(data0)) {
|
|
19462
19810
|
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_-]+$"' }];
|
|
19463
19811
|
return false;
|
|
19464
19812
|
}
|
|
@@ -19722,7 +20070,7 @@ function validate73(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
19722
20070
|
}
|
|
19723
20071
|
validate73.evaluated = { "dynamicProps": true, "dynamicItems": false };
|
|
19724
20072
|
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"] };
|
|
19725
|
-
var
|
|
20073
|
+
var pattern90 = new RegExp("^client_[A-Za-z0-9_-]+$", "u");
|
|
19726
20074
|
function validate74(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
19727
20075
|
;
|
|
19728
20076
|
let vErrors = null;
|
|
@@ -19791,7 +20139,7 @@ function validate74(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
19791
20139
|
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" }];
|
|
19792
20140
|
return false;
|
|
19793
20141
|
} else {
|
|
19794
|
-
if (!
|
|
20142
|
+
if (!pattern90.test(data2)) {
|
|
19795
20143
|
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_-]+$"' }];
|
|
19796
20144
|
return false;
|
|
19797
20145
|
}
|