@primitive.ai/prim 0.1.0-alpha.110 → 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 +1018 -592
- 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 +11 -12
- 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
|
@@ -436,6 +436,83 @@ function resolveOrg(args) {
|
|
|
436
436
|
return { orgId: void 0, source: "unbound" };
|
|
437
437
|
}
|
|
438
438
|
|
|
439
|
+
// src/decisions/identity.ts
|
|
440
|
+
var PUBLIC_ID = /^dec_[0-9a-f]{8}$/u;
|
|
441
|
+
var BARE_ID = /^[0-9a-f]{8}$/u;
|
|
442
|
+
var OPAQUE_FIELDS = /* @__PURE__ */ new Set([
|
|
443
|
+
"cursor",
|
|
444
|
+
"continueCursor",
|
|
445
|
+
"nextCursor",
|
|
446
|
+
"reviewToken",
|
|
447
|
+
"bypassToken"
|
|
448
|
+
]);
|
|
449
|
+
function decisionIdentifier(id, shortId) {
|
|
450
|
+
if (typeof id === "string" && PUBLIC_ID.test(id)) return id;
|
|
451
|
+
if (typeof shortId === "string" && BARE_ID.test(shortId)) return `dec_${shortId}`;
|
|
452
|
+
if (typeof id === "string" && BARE_ID.test(id)) return `dec_${id}`;
|
|
453
|
+
return void 0;
|
|
454
|
+
}
|
|
455
|
+
function publicDecisionResponse(value) {
|
|
456
|
+
const replacements = /* @__PURE__ */ new Map();
|
|
457
|
+
const referenceKeys = /* @__PURE__ */ new Set([
|
|
458
|
+
"decisionId",
|
|
459
|
+
"childId",
|
|
460
|
+
"parentId",
|
|
461
|
+
"supersededBy",
|
|
462
|
+
"activationDecisionId"
|
|
463
|
+
]);
|
|
464
|
+
function visit(input, field = "") {
|
|
465
|
+
if (OPAQUE_FIELDS.has(field) || input === null || input === void 0) return input;
|
|
466
|
+
if (Array.isArray(input)) return input.map((item) => visit(item, field));
|
|
467
|
+
if (typeof input === "string" && (referenceKeys.has(field) || /DecisionIds$/u.test(field))) {
|
|
468
|
+
const id = decisionIdentifier(input);
|
|
469
|
+
if (!id) throw new Error("Decision identity unavailable; update Primitive and retry");
|
|
470
|
+
return id;
|
|
471
|
+
}
|
|
472
|
+
if (typeof input !== "object") return input;
|
|
473
|
+
const row = { ...input };
|
|
474
|
+
for (const [idKey, shortKey] of [
|
|
475
|
+
["id", "shortId"],
|
|
476
|
+
["_id", "shortId"],
|
|
477
|
+
["decisionId", "shortId"],
|
|
478
|
+
["childId", "childShortId"],
|
|
479
|
+
["parentId", "parentShortId"]
|
|
480
|
+
]) {
|
|
481
|
+
if (!(idKey in row) || (idKey === "id" || idKey === "_id") && !("intent" in row || "shortId" in row))
|
|
482
|
+
continue;
|
|
483
|
+
const id = decisionIdentifier(
|
|
484
|
+
row[idKey],
|
|
485
|
+
row[shortKey] ?? (idKey === "decisionId" ? row.decisionShortId : void 0)
|
|
486
|
+
);
|
|
487
|
+
if (!id) throw new Error("Decision identity unavailable; update Primitive and retry");
|
|
488
|
+
const previous = row[idKey];
|
|
489
|
+
if (typeof previous === "string" && !PUBLIC_ID.test(previous) && !BARE_ID.test(previous)) {
|
|
490
|
+
replacements.set(previous, id);
|
|
491
|
+
}
|
|
492
|
+
if (shortKey in row) row[shortKey] = id.slice(4);
|
|
493
|
+
if (idKey === "decisionId" && "decisionShortId" in row) row.decisionShortId = id.slice(4);
|
|
494
|
+
row[idKey] = id;
|
|
495
|
+
}
|
|
496
|
+
return Object.fromEntries(Object.entries(row).map(([key, item]) => [key, visit(item, key)]));
|
|
497
|
+
}
|
|
498
|
+
const projected = visit(value);
|
|
499
|
+
function replace(input, field = "") {
|
|
500
|
+
if (OPAQUE_FIELDS.has(field)) return input;
|
|
501
|
+
if (typeof input === "string") {
|
|
502
|
+
let output = input;
|
|
503
|
+
for (const [raw, id] of replacements) if (raw !== id) output = output.replaceAll(raw, id);
|
|
504
|
+
return output;
|
|
505
|
+
}
|
|
506
|
+
if (Array.isArray(input)) return input.map((item) => replace(item, field));
|
|
507
|
+
if (input && typeof input === "object")
|
|
508
|
+
return Object.fromEntries(
|
|
509
|
+
Object.entries(input).map(([key, item]) => [key, replace(item, key)])
|
|
510
|
+
);
|
|
511
|
+
return input;
|
|
512
|
+
}
|
|
513
|
+
return replace(projected);
|
|
514
|
+
}
|
|
515
|
+
|
|
439
516
|
// src/client.ts
|
|
440
517
|
import { createHash as createHash2 } from "crypto";
|
|
441
518
|
import { chmodSync as chmodSync2, existsSync as existsSync4, mkdirSync as mkdirSync3, readFileSync as readFileSync6, rmSync as rmSync3 } from "fs";
|
|
@@ -1307,7 +1384,7 @@ async function responseValue(response) {
|
|
|
1307
1384
|
const message = typeof errorRecord?.error === "string" ? errorRecord.error : `HTTP ${response.status}`;
|
|
1308
1385
|
throw new HttpError(response.status, message, errorBody);
|
|
1309
1386
|
}
|
|
1310
|
-
return response.json();
|
|
1387
|
+
return publicDecisionResponse(await response.json());
|
|
1311
1388
|
}
|
|
1312
1389
|
async function request(method, path, body, options) {
|
|
1313
1390
|
const siteUrl = getSiteUrl();
|
|
@@ -1366,7 +1443,7 @@ var SHORT_ID = /^[0-9a-f]{8}$/u;
|
|
|
1366
1443
|
var MAX_EVENT_ID_CHARS = 128;
|
|
1367
1444
|
var MAX_RAW_INTENT_CODE_UNITS = 512;
|
|
1368
1445
|
var MAX_FEEDBACK_WEB_URL_CHARS = 2048;
|
|
1369
|
-
var SAFE_PUBLISH_DECISION_ID = /^[
|
|
1446
|
+
var SAFE_PUBLISH_DECISION_ID = /^dec_[0-9a-f]{8}$/u;
|
|
1370
1447
|
function isRecord(value) {
|
|
1371
1448
|
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
1372
1449
|
}
|
|
@@ -1919,7 +1996,9 @@ function validate22(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
1919
1996
|
return errors === 0;
|
|
1920
1997
|
}
|
|
1921
1998
|
validate22.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
|
|
1922
|
-
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": {} };
|
|
1999
|
+
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": {} };
|
|
2000
|
+
var pattern4 = new RegExp("^dec_[0-9a-f]{8}$", "u");
|
|
2001
|
+
var pattern5 = new RegExp("^[0-9a-f]{8}$", "u");
|
|
1923
2002
|
function validate23(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
1924
2003
|
;
|
|
1925
2004
|
let vErrors = null;
|
|
@@ -1957,6 +2036,11 @@ function validate23(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
1957
2036
|
if (func1(data1) < 1) {
|
|
1958
2037
|
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" }];
|
|
1959
2038
|
return false;
|
|
2039
|
+
} else {
|
|
2040
|
+
if (!pattern4.test(data1)) {
|
|
2041
|
+
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}$"' }];
|
|
2042
|
+
return false;
|
|
2043
|
+
}
|
|
1960
2044
|
}
|
|
1961
2045
|
} else {
|
|
1962
2046
|
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" }];
|
|
@@ -1969,10 +2053,18 @@ function validate23(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
1969
2053
|
}
|
|
1970
2054
|
if (valid2) {
|
|
1971
2055
|
if (data0.shortId !== void 0) {
|
|
2056
|
+
let data2 = data0.shortId;
|
|
1972
2057
|
const _errs8 = errors;
|
|
1973
|
-
if (
|
|
1974
|
-
|
|
1975
|
-
|
|
2058
|
+
if (errors === _errs8) {
|
|
2059
|
+
if (typeof data2 === "string") {
|
|
2060
|
+
if (!pattern5.test(data2)) {
|
|
2061
|
+
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}$"' }];
|
|
2062
|
+
return false;
|
|
2063
|
+
}
|
|
2064
|
+
} else {
|
|
2065
|
+
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" }];
|
|
2066
|
+
return false;
|
|
2067
|
+
}
|
|
1976
2068
|
}
|
|
1977
2069
|
var valid2 = _errs8 === errors;
|
|
1978
2070
|
} else {
|
|
@@ -2165,6 +2257,11 @@ function validate23(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
2165
2257
|
if (func1(data16) < 1) {
|
|
2166
2258
|
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" }];
|
|
2167
2259
|
return false;
|
|
2260
|
+
} else {
|
|
2261
|
+
if (!pattern4.test(data16)) {
|
|
2262
|
+
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}$"' }];
|
|
2263
|
+
return false;
|
|
2264
|
+
}
|
|
2168
2265
|
}
|
|
2169
2266
|
} else {
|
|
2170
2267
|
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" }];
|
|
@@ -2177,10 +2274,18 @@ function validate23(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
2177
2274
|
}
|
|
2178
2275
|
if (valid6) {
|
|
2179
2276
|
if (data15.shortId !== void 0) {
|
|
2277
|
+
let data17 = data15.shortId;
|
|
2180
2278
|
const _errs40 = errors;
|
|
2181
|
-
if (
|
|
2182
|
-
|
|
2183
|
-
|
|
2279
|
+
if (errors === _errs40) {
|
|
2280
|
+
if (typeof data17 === "string") {
|
|
2281
|
+
if (!pattern5.test(data17)) {
|
|
2282
|
+
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}$"' }];
|
|
2283
|
+
return false;
|
|
2284
|
+
}
|
|
2285
|
+
} else {
|
|
2286
|
+
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" }];
|
|
2287
|
+
return false;
|
|
2288
|
+
}
|
|
2184
2289
|
}
|
|
2185
2290
|
var valid6 = _errs40 === errors;
|
|
2186
2291
|
} else {
|
|
@@ -3419,7 +3524,7 @@ function validate25(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
3419
3524
|
return errors === 0;
|
|
3420
3525
|
}
|
|
3421
3526
|
validate25.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
|
|
3422
|
-
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": {} }] };
|
|
3527
|
+
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": {} }] };
|
|
3423
3528
|
function validate26(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
3424
3529
|
;
|
|
3425
3530
|
let vErrors = null;
|
|
@@ -3459,13 +3564,23 @@ function validate26(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
3459
3564
|
vErrors.push(err1);
|
|
3460
3565
|
}
|
|
3461
3566
|
errors++;
|
|
3567
|
+
} else {
|
|
3568
|
+
if (!pattern4.test(data0)) {
|
|
3569
|
+
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}$"' };
|
|
3570
|
+
if (vErrors === null) {
|
|
3571
|
+
vErrors = [err2];
|
|
3572
|
+
} else {
|
|
3573
|
+
vErrors.push(err2);
|
|
3574
|
+
}
|
|
3575
|
+
errors++;
|
|
3576
|
+
}
|
|
3462
3577
|
}
|
|
3463
3578
|
} else {
|
|
3464
|
-
const
|
|
3579
|
+
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" };
|
|
3465
3580
|
if (vErrors === null) {
|
|
3466
|
-
vErrors = [
|
|
3581
|
+
vErrors = [err3];
|
|
3467
3582
|
} else {
|
|
3468
|
-
vErrors.push(
|
|
3583
|
+
vErrors.push(err3);
|
|
3469
3584
|
}
|
|
3470
3585
|
errors++;
|
|
3471
3586
|
}
|
|
@@ -3476,15 +3591,28 @@ function validate26(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
3476
3591
|
}
|
|
3477
3592
|
if (valid2) {
|
|
3478
3593
|
if (data.shortId !== void 0) {
|
|
3594
|
+
let data1 = data.shortId;
|
|
3479
3595
|
const _errs7 = errors;
|
|
3480
|
-
if (
|
|
3481
|
-
|
|
3482
|
-
|
|
3483
|
-
|
|
3596
|
+
if (errors === _errs7) {
|
|
3597
|
+
if (typeof data1 === "string") {
|
|
3598
|
+
if (!pattern5.test(data1)) {
|
|
3599
|
+
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}$"' };
|
|
3600
|
+
if (vErrors === null) {
|
|
3601
|
+
vErrors = [err4];
|
|
3602
|
+
} else {
|
|
3603
|
+
vErrors.push(err4);
|
|
3604
|
+
}
|
|
3605
|
+
errors++;
|
|
3606
|
+
}
|
|
3484
3607
|
} else {
|
|
3485
|
-
|
|
3608
|
+
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" };
|
|
3609
|
+
if (vErrors === null) {
|
|
3610
|
+
vErrors = [err5];
|
|
3611
|
+
} else {
|
|
3612
|
+
vErrors.push(err5);
|
|
3613
|
+
}
|
|
3614
|
+
errors++;
|
|
3486
3615
|
}
|
|
3487
|
-
errors++;
|
|
3488
3616
|
}
|
|
3489
3617
|
var valid2 = _errs7 === errors;
|
|
3490
3618
|
} else {
|
|
@@ -3495,20 +3623,20 @@ function validate26(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
3495
3623
|
let data2 = data.outcome;
|
|
3496
3624
|
const _errs9 = errors;
|
|
3497
3625
|
if (typeof data2 !== "string") {
|
|
3498
|
-
const
|
|
3626
|
+
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" };
|
|
3499
3627
|
if (vErrors === null) {
|
|
3500
|
-
vErrors = [
|
|
3628
|
+
vErrors = [err6];
|
|
3501
3629
|
} else {
|
|
3502
|
-
vErrors.push(
|
|
3630
|
+
vErrors.push(err6);
|
|
3503
3631
|
}
|
|
3504
3632
|
errors++;
|
|
3505
3633
|
}
|
|
3506
3634
|
if (!(data2 === "stale" || data2 === "confirmed" || data2 === "corrected")) {
|
|
3507
|
-
const
|
|
3635
|
+
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" };
|
|
3508
3636
|
if (vErrors === null) {
|
|
3509
|
-
vErrors = [
|
|
3637
|
+
vErrors = [err7];
|
|
3510
3638
|
} else {
|
|
3511
|
-
vErrors.push(
|
|
3639
|
+
vErrors.push(err7);
|
|
3512
3640
|
}
|
|
3513
3641
|
errors++;
|
|
3514
3642
|
}
|
|
@@ -3520,11 +3648,11 @@ function validate26(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
3520
3648
|
}
|
|
3521
3649
|
}
|
|
3522
3650
|
} else {
|
|
3523
|
-
const
|
|
3651
|
+
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" };
|
|
3524
3652
|
if (vErrors === null) {
|
|
3525
|
-
vErrors = [
|
|
3653
|
+
vErrors = [err8];
|
|
3526
3654
|
} else {
|
|
3527
|
-
vErrors.push(
|
|
3655
|
+
vErrors.push(err8);
|
|
3528
3656
|
}
|
|
3529
3657
|
errors++;
|
|
3530
3658
|
}
|
|
@@ -3539,11 +3667,11 @@ function validate26(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
3539
3667
|
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
3540
3668
|
let missing1;
|
|
3541
3669
|
if (data.decisionId === void 0 && (missing1 = "decisionId") || data.outcome === void 0 && (missing1 = "outcome") || data.respondedAt === void 0 && (missing1 = "respondedAt")) {
|
|
3542
|
-
const
|
|
3670
|
+
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 + "'" };
|
|
3543
3671
|
if (vErrors === null) {
|
|
3544
|
-
vErrors = [
|
|
3672
|
+
vErrors = [err9];
|
|
3545
3673
|
} else {
|
|
3546
|
-
vErrors.push(
|
|
3674
|
+
vErrors.push(err9);
|
|
3547
3675
|
}
|
|
3548
3676
|
errors++;
|
|
3549
3677
|
} else {
|
|
@@ -3553,20 +3681,30 @@ function validate26(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
3553
3681
|
if (errors === _errs14) {
|
|
3554
3682
|
if (typeof data3 === "string") {
|
|
3555
3683
|
if (func1(data3) < 1) {
|
|
3556
|
-
const
|
|
3684
|
+
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" };
|
|
3557
3685
|
if (vErrors === null) {
|
|
3558
|
-
vErrors = [
|
|
3686
|
+
vErrors = [err10];
|
|
3559
3687
|
} else {
|
|
3560
|
-
vErrors.push(
|
|
3688
|
+
vErrors.push(err10);
|
|
3561
3689
|
}
|
|
3562
3690
|
errors++;
|
|
3691
|
+
} else {
|
|
3692
|
+
if (!pattern4.test(data3)) {
|
|
3693
|
+
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}$"' };
|
|
3694
|
+
if (vErrors === null) {
|
|
3695
|
+
vErrors = [err11];
|
|
3696
|
+
} else {
|
|
3697
|
+
vErrors.push(err11);
|
|
3698
|
+
}
|
|
3699
|
+
errors++;
|
|
3700
|
+
}
|
|
3563
3701
|
}
|
|
3564
3702
|
} else {
|
|
3565
|
-
const
|
|
3703
|
+
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" };
|
|
3566
3704
|
if (vErrors === null) {
|
|
3567
|
-
vErrors = [
|
|
3705
|
+
vErrors = [err12];
|
|
3568
3706
|
} else {
|
|
3569
|
-
vErrors.push(
|
|
3707
|
+
vErrors.push(err12);
|
|
3570
3708
|
}
|
|
3571
3709
|
errors++;
|
|
3572
3710
|
}
|
|
@@ -3577,15 +3715,28 @@ function validate26(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
3577
3715
|
}
|
|
3578
3716
|
if (valid3) {
|
|
3579
3717
|
if (data.shortId !== void 0) {
|
|
3718
|
+
let data4 = data.shortId;
|
|
3580
3719
|
const _errs16 = errors;
|
|
3581
|
-
if (
|
|
3582
|
-
|
|
3583
|
-
|
|
3584
|
-
|
|
3720
|
+
if (errors === _errs16) {
|
|
3721
|
+
if (typeof data4 === "string") {
|
|
3722
|
+
if (!pattern5.test(data4)) {
|
|
3723
|
+
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}$"' };
|
|
3724
|
+
if (vErrors === null) {
|
|
3725
|
+
vErrors = [err13];
|
|
3726
|
+
} else {
|
|
3727
|
+
vErrors.push(err13);
|
|
3728
|
+
}
|
|
3729
|
+
errors++;
|
|
3730
|
+
}
|
|
3585
3731
|
} else {
|
|
3586
|
-
|
|
3732
|
+
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" };
|
|
3733
|
+
if (vErrors === null) {
|
|
3734
|
+
vErrors = [err14];
|
|
3735
|
+
} else {
|
|
3736
|
+
vErrors.push(err14);
|
|
3737
|
+
}
|
|
3738
|
+
errors++;
|
|
3587
3739
|
}
|
|
3588
|
-
errors++;
|
|
3589
3740
|
}
|
|
3590
3741
|
var valid3 = _errs16 === errors;
|
|
3591
3742
|
} else {
|
|
@@ -3596,20 +3747,20 @@ function validate26(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
3596
3747
|
let data5 = data.outcome;
|
|
3597
3748
|
const _errs18 = errors;
|
|
3598
3749
|
if (typeof data5 !== "string") {
|
|
3599
|
-
const
|
|
3750
|
+
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" };
|
|
3600
3751
|
if (vErrors === null) {
|
|
3601
|
-
vErrors = [
|
|
3752
|
+
vErrors = [err15];
|
|
3602
3753
|
} else {
|
|
3603
|
-
vErrors.push(
|
|
3754
|
+
vErrors.push(err15);
|
|
3604
3755
|
}
|
|
3605
3756
|
errors++;
|
|
3606
3757
|
}
|
|
3607
3758
|
if ("already_responded" !== data5) {
|
|
3608
|
-
const
|
|
3759
|
+
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" };
|
|
3609
3760
|
if (vErrors === null) {
|
|
3610
|
-
vErrors = [
|
|
3761
|
+
vErrors = [err16];
|
|
3611
3762
|
} else {
|
|
3612
|
-
vErrors.push(
|
|
3763
|
+
vErrors.push(err16);
|
|
3613
3764
|
}
|
|
3614
3765
|
errors++;
|
|
3615
3766
|
}
|
|
@@ -3621,11 +3772,11 @@ function validate26(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
3621
3772
|
if (data.confirmed !== void 0) {
|
|
3622
3773
|
const _errs20 = errors;
|
|
3623
3774
|
if (typeof data.confirmed !== "boolean") {
|
|
3624
|
-
const
|
|
3775
|
+
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" };
|
|
3625
3776
|
if (vErrors === null) {
|
|
3626
|
-
vErrors = [
|
|
3777
|
+
vErrors = [err17];
|
|
3627
3778
|
} else {
|
|
3628
|
-
vErrors.push(
|
|
3779
|
+
vErrors.push(err17);
|
|
3629
3780
|
}
|
|
3630
3781
|
errors++;
|
|
3631
3782
|
}
|
|
@@ -3638,11 +3789,11 @@ function validate26(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
3638
3789
|
let data7 = data.respondedAt;
|
|
3639
3790
|
const _errs22 = errors;
|
|
3640
3791
|
if (!(typeof data7 == "number" && isFinite(data7))) {
|
|
3641
|
-
const
|
|
3792
|
+
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" };
|
|
3642
3793
|
if (vErrors === null) {
|
|
3643
|
-
vErrors = [
|
|
3794
|
+
vErrors = [err18];
|
|
3644
3795
|
} else {
|
|
3645
|
-
vErrors.push(
|
|
3796
|
+
vErrors.push(err18);
|
|
3646
3797
|
}
|
|
3647
3798
|
errors++;
|
|
3648
3799
|
}
|
|
@@ -3656,11 +3807,11 @@ function validate26(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
3656
3807
|
}
|
|
3657
3808
|
}
|
|
3658
3809
|
} else {
|
|
3659
|
-
const
|
|
3810
|
+
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" };
|
|
3660
3811
|
if (vErrors === null) {
|
|
3661
|
-
vErrors = [
|
|
3812
|
+
vErrors = [err19];
|
|
3662
3813
|
} else {
|
|
3663
|
-
vErrors.push(
|
|
3814
|
+
vErrors.push(err19);
|
|
3664
3815
|
}
|
|
3665
3816
|
errors++;
|
|
3666
3817
|
}
|
|
@@ -3677,11 +3828,11 @@ function validate26(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
3677
3828
|
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
3678
3829
|
let missing2;
|
|
3679
3830
|
if (data.decisionId === void 0 && (missing2 = "decisionId") || data.outcome === void 0 && (missing2 = "outcome")) {
|
|
3680
|
-
const
|
|
3831
|
+
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 + "'" };
|
|
3681
3832
|
if (vErrors === null) {
|
|
3682
|
-
vErrors = [
|
|
3833
|
+
vErrors = [err20];
|
|
3683
3834
|
} else {
|
|
3684
|
-
vErrors.push(
|
|
3835
|
+
vErrors.push(err20);
|
|
3685
3836
|
}
|
|
3686
3837
|
errors++;
|
|
3687
3838
|
} else {
|
|
@@ -3691,20 +3842,30 @@ function validate26(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
3691
3842
|
if (errors === _errs27) {
|
|
3692
3843
|
if (typeof data8 === "string") {
|
|
3693
3844
|
if (func1(data8) < 1) {
|
|
3694
|
-
const
|
|
3845
|
+
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" };
|
|
3695
3846
|
if (vErrors === null) {
|
|
3696
|
-
vErrors = [
|
|
3847
|
+
vErrors = [err21];
|
|
3697
3848
|
} else {
|
|
3698
|
-
vErrors.push(
|
|
3849
|
+
vErrors.push(err21);
|
|
3699
3850
|
}
|
|
3700
3851
|
errors++;
|
|
3852
|
+
} else {
|
|
3853
|
+
if (!pattern4.test(data8)) {
|
|
3854
|
+
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}$"' };
|
|
3855
|
+
if (vErrors === null) {
|
|
3856
|
+
vErrors = [err22];
|
|
3857
|
+
} else {
|
|
3858
|
+
vErrors.push(err22);
|
|
3859
|
+
}
|
|
3860
|
+
errors++;
|
|
3861
|
+
}
|
|
3701
3862
|
}
|
|
3702
3863
|
} else {
|
|
3703
|
-
const
|
|
3864
|
+
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" };
|
|
3704
3865
|
if (vErrors === null) {
|
|
3705
|
-
vErrors = [
|
|
3866
|
+
vErrors = [err23];
|
|
3706
3867
|
} else {
|
|
3707
|
-
vErrors.push(
|
|
3868
|
+
vErrors.push(err23);
|
|
3708
3869
|
}
|
|
3709
3870
|
errors++;
|
|
3710
3871
|
}
|
|
@@ -3715,15 +3876,28 @@ function validate26(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
3715
3876
|
}
|
|
3716
3877
|
if (valid4) {
|
|
3717
3878
|
if (data.shortId !== void 0) {
|
|
3879
|
+
let data9 = data.shortId;
|
|
3718
3880
|
const _errs29 = errors;
|
|
3719
|
-
if (
|
|
3720
|
-
|
|
3721
|
-
|
|
3722
|
-
|
|
3881
|
+
if (errors === _errs29) {
|
|
3882
|
+
if (typeof data9 === "string") {
|
|
3883
|
+
if (!pattern5.test(data9)) {
|
|
3884
|
+
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}$"' };
|
|
3885
|
+
if (vErrors === null) {
|
|
3886
|
+
vErrors = [err24];
|
|
3887
|
+
} else {
|
|
3888
|
+
vErrors.push(err24);
|
|
3889
|
+
}
|
|
3890
|
+
errors++;
|
|
3891
|
+
}
|
|
3723
3892
|
} else {
|
|
3724
|
-
|
|
3893
|
+
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" };
|
|
3894
|
+
if (vErrors === null) {
|
|
3895
|
+
vErrors = [err25];
|
|
3896
|
+
} else {
|
|
3897
|
+
vErrors.push(err25);
|
|
3898
|
+
}
|
|
3899
|
+
errors++;
|
|
3725
3900
|
}
|
|
3726
|
-
errors++;
|
|
3727
3901
|
}
|
|
3728
3902
|
var valid4 = _errs29 === errors;
|
|
3729
3903
|
} else {
|
|
@@ -3734,20 +3908,20 @@ function validate26(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
3734
3908
|
let data10 = data.outcome;
|
|
3735
3909
|
const _errs31 = errors;
|
|
3736
3910
|
if (typeof data10 !== "string") {
|
|
3737
|
-
const
|
|
3911
|
+
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" };
|
|
3738
3912
|
if (vErrors === null) {
|
|
3739
|
-
vErrors = [
|
|
3913
|
+
vErrors = [err26];
|
|
3740
3914
|
} else {
|
|
3741
|
-
vErrors.push(
|
|
3915
|
+
vErrors.push(err26);
|
|
3742
3916
|
}
|
|
3743
3917
|
errors++;
|
|
3744
3918
|
}
|
|
3745
3919
|
if ("no_pending_prompt" !== data10) {
|
|
3746
|
-
const
|
|
3920
|
+
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" };
|
|
3747
3921
|
if (vErrors === null) {
|
|
3748
|
-
vErrors = [
|
|
3922
|
+
vErrors = [err27];
|
|
3749
3923
|
} else {
|
|
3750
|
-
vErrors.push(
|
|
3924
|
+
vErrors.push(err27);
|
|
3751
3925
|
}
|
|
3752
3926
|
errors++;
|
|
3753
3927
|
}
|
|
@@ -3759,11 +3933,11 @@ function validate26(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
3759
3933
|
}
|
|
3760
3934
|
}
|
|
3761
3935
|
} else {
|
|
3762
|
-
const
|
|
3936
|
+
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" };
|
|
3763
3937
|
if (vErrors === null) {
|
|
3764
|
-
vErrors = [
|
|
3938
|
+
vErrors = [err28];
|
|
3765
3939
|
} else {
|
|
3766
|
-
vErrors.push(
|
|
3940
|
+
vErrors.push(err28);
|
|
3767
3941
|
}
|
|
3768
3942
|
errors++;
|
|
3769
3943
|
}
|
|
@@ -3776,11 +3950,11 @@ function validate26(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
3776
3950
|
}
|
|
3777
3951
|
}
|
|
3778
3952
|
if (!valid1) {
|
|
3779
|
-
const
|
|
3953
|
+
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" };
|
|
3780
3954
|
if (vErrors === null) {
|
|
3781
|
-
vErrors = [
|
|
3955
|
+
vErrors = [err29];
|
|
3782
3956
|
} else {
|
|
3783
|
-
vErrors.push(
|
|
3957
|
+
vErrors.push(err29);
|
|
3784
3958
|
}
|
|
3785
3959
|
errors++;
|
|
3786
3960
|
validate26.errors = vErrors;
|
|
@@ -4749,7 +4923,7 @@ function validate27(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
4749
4923
|
return errors === 0;
|
|
4750
4924
|
}
|
|
4751
4925
|
validate27.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
|
|
4752
|
-
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": {} };
|
|
4926
|
+
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": {} };
|
|
4753
4927
|
function validate28(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
4754
4928
|
;
|
|
4755
4929
|
let vErrors = null;
|
|
@@ -4777,6 +4951,11 @@ function validate28(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
4777
4951
|
if (func1(data0) < 1) {
|
|
4778
4952
|
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" }];
|
|
4779
4953
|
return false;
|
|
4954
|
+
} else {
|
|
4955
|
+
if (!pattern4.test(data0)) {
|
|
4956
|
+
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}$"' }];
|
|
4957
|
+
return false;
|
|
4958
|
+
}
|
|
4780
4959
|
}
|
|
4781
4960
|
} else {
|
|
4782
4961
|
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" }];
|
|
@@ -4789,10 +4968,18 @@ function validate28(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
4789
4968
|
}
|
|
4790
4969
|
if (valid1) {
|
|
4791
4970
|
if (data.shortId !== void 0) {
|
|
4971
|
+
let data1 = data.shortId;
|
|
4792
4972
|
const _errs5 = errors;
|
|
4793
|
-
if (
|
|
4794
|
-
|
|
4795
|
-
|
|
4973
|
+
if (errors === _errs5) {
|
|
4974
|
+
if (typeof data1 === "string") {
|
|
4975
|
+
if (!pattern5.test(data1)) {
|
|
4976
|
+
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}$"' }];
|
|
4977
|
+
return false;
|
|
4978
|
+
}
|
|
4979
|
+
} else {
|
|
4980
|
+
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" }];
|
|
4981
|
+
return false;
|
|
4982
|
+
}
|
|
4796
4983
|
}
|
|
4797
4984
|
var valid1 = _errs5 === errors;
|
|
4798
4985
|
} else {
|
|
@@ -5534,7 +5721,7 @@ function validate28(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
5534
5721
|
return errors === 0;
|
|
5535
5722
|
}
|
|
5536
5723
|
validate28.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
|
|
5537
|
-
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": {} };
|
|
5724
|
+
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": {} };
|
|
5538
5725
|
function validate29(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
5539
5726
|
;
|
|
5540
5727
|
let vErrors = null;
|
|
@@ -5572,6 +5759,11 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
5572
5759
|
if (func1(data1) < 1) {
|
|
5573
5760
|
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" }];
|
|
5574
5761
|
return false;
|
|
5762
|
+
} else {
|
|
5763
|
+
if (!pattern4.test(data1)) {
|
|
5764
|
+
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}$"' }];
|
|
5765
|
+
return false;
|
|
5766
|
+
}
|
|
5575
5767
|
}
|
|
5576
5768
|
} else {
|
|
5577
5769
|
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" }];
|
|
@@ -5584,10 +5776,18 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
5584
5776
|
}
|
|
5585
5777
|
if (valid2) {
|
|
5586
5778
|
if (data0.shortId !== void 0) {
|
|
5779
|
+
let data2 = data0.shortId;
|
|
5587
5780
|
const _errs8 = errors;
|
|
5588
|
-
if (
|
|
5589
|
-
|
|
5590
|
-
|
|
5781
|
+
if (errors === _errs8) {
|
|
5782
|
+
if (typeof data2 === "string") {
|
|
5783
|
+
if (!pattern5.test(data2)) {
|
|
5784
|
+
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}$"' }];
|
|
5785
|
+
return false;
|
|
5786
|
+
}
|
|
5787
|
+
} else {
|
|
5788
|
+
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" }];
|
|
5789
|
+
return false;
|
|
5790
|
+
}
|
|
5591
5791
|
}
|
|
5592
5792
|
var valid2 = _errs8 === errors;
|
|
5593
5793
|
} else {
|
|
@@ -5758,13 +5958,23 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
5758
5958
|
vErrors.push(err0);
|
|
5759
5959
|
}
|
|
5760
5960
|
errors++;
|
|
5961
|
+
} else {
|
|
5962
|
+
if (!pattern4.test(data14)) {
|
|
5963
|
+
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}$"' };
|
|
5964
|
+
if (vErrors === null) {
|
|
5965
|
+
vErrors = [err1];
|
|
5966
|
+
} else {
|
|
5967
|
+
vErrors.push(err1);
|
|
5968
|
+
}
|
|
5969
|
+
errors++;
|
|
5970
|
+
}
|
|
5761
5971
|
}
|
|
5762
5972
|
} else {
|
|
5763
|
-
const
|
|
5973
|
+
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" };
|
|
5764
5974
|
if (vErrors === null) {
|
|
5765
|
-
vErrors = [
|
|
5975
|
+
vErrors = [err2];
|
|
5766
5976
|
} else {
|
|
5767
|
-
vErrors.push(
|
|
5977
|
+
vErrors.push(err2);
|
|
5768
5978
|
}
|
|
5769
5979
|
errors++;
|
|
5770
5980
|
}
|
|
@@ -5773,22 +5983,22 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
5773
5983
|
valid5 = valid5 || _valid0;
|
|
5774
5984
|
const _errs36 = errors;
|
|
5775
5985
|
if (data14 !== null) {
|
|
5776
|
-
const
|
|
5986
|
+
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" };
|
|
5777
5987
|
if (vErrors === null) {
|
|
5778
|
-
vErrors = [
|
|
5988
|
+
vErrors = [err3];
|
|
5779
5989
|
} else {
|
|
5780
|
-
vErrors.push(
|
|
5990
|
+
vErrors.push(err3);
|
|
5781
5991
|
}
|
|
5782
5992
|
errors++;
|
|
5783
5993
|
}
|
|
5784
5994
|
var _valid0 = _errs36 === errors;
|
|
5785
5995
|
valid5 = valid5 || _valid0;
|
|
5786
5996
|
if (!valid5) {
|
|
5787
|
-
const
|
|
5997
|
+
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" };
|
|
5788
5998
|
if (vErrors === null) {
|
|
5789
|
-
vErrors = [
|
|
5999
|
+
vErrors = [err4];
|
|
5790
6000
|
} else {
|
|
5791
|
-
vErrors.push(
|
|
6001
|
+
vErrors.push(err4);
|
|
5792
6002
|
}
|
|
5793
6003
|
errors++;
|
|
5794
6004
|
validate29.errors = vErrors;
|
|
@@ -6094,6 +6304,11 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
6094
6304
|
if (func1(data34) < 1) {
|
|
6095
6305
|
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" }];
|
|
6096
6306
|
return false;
|
|
6307
|
+
} else {
|
|
6308
|
+
if (!pattern4.test(data34)) {
|
|
6309
|
+
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}$"' }];
|
|
6310
|
+
return false;
|
|
6311
|
+
}
|
|
6097
6312
|
}
|
|
6098
6313
|
} else {
|
|
6099
6314
|
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" }];
|
|
@@ -6106,10 +6321,18 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
6106
6321
|
}
|
|
6107
6322
|
if (valid10) {
|
|
6108
6323
|
if (data33.shortId !== void 0) {
|
|
6324
|
+
let data35 = data33.shortId;
|
|
6109
6325
|
const _errs80 = errors;
|
|
6110
|
-
if (
|
|
6111
|
-
|
|
6112
|
-
|
|
6326
|
+
if (errors === _errs80) {
|
|
6327
|
+
if (typeof data35 === "string") {
|
|
6328
|
+
if (!pattern5.test(data35)) {
|
|
6329
|
+
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}$"' }];
|
|
6330
|
+
return false;
|
|
6331
|
+
}
|
|
6332
|
+
} else {
|
|
6333
|
+
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" }];
|
|
6334
|
+
return false;
|
|
6335
|
+
}
|
|
6113
6336
|
}
|
|
6114
6337
|
var valid10 = _errs80 === errors;
|
|
6115
6338
|
} else {
|
|
@@ -6228,6 +6451,11 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
6228
6451
|
if (func1(data43) < 1) {
|
|
6229
6452
|
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" }];
|
|
6230
6453
|
return false;
|
|
6454
|
+
} else {
|
|
6455
|
+
if (!pattern4.test(data43)) {
|
|
6456
|
+
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}$"' }];
|
|
6457
|
+
return false;
|
|
6458
|
+
}
|
|
6231
6459
|
}
|
|
6232
6460
|
} else {
|
|
6233
6461
|
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" }];
|
|
@@ -6240,10 +6468,18 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
6240
6468
|
}
|
|
6241
6469
|
if (valid12) {
|
|
6242
6470
|
if (data42.shortId !== void 0) {
|
|
6471
|
+
let data44 = data42.shortId;
|
|
6243
6472
|
const _errs99 = errors;
|
|
6244
|
-
if (
|
|
6245
|
-
|
|
6246
|
-
|
|
6473
|
+
if (errors === _errs99) {
|
|
6474
|
+
if (typeof data44 === "string") {
|
|
6475
|
+
if (!pattern5.test(data44)) {
|
|
6476
|
+
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}$"' }];
|
|
6477
|
+
return false;
|
|
6478
|
+
}
|
|
6479
|
+
} else {
|
|
6480
|
+
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" }];
|
|
6481
|
+
return false;
|
|
6482
|
+
}
|
|
6247
6483
|
}
|
|
6248
6484
|
var valid12 = _errs99 === errors;
|
|
6249
6485
|
} else {
|
|
@@ -6565,22 +6801,22 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
6565
6801
|
if (data64 && typeof data64 == "object" && !Array.isArray(data64)) {
|
|
6566
6802
|
let missing7;
|
|
6567
6803
|
if (data64.kind === void 0 && (missing7 = "kind") || data64.userId === void 0 && (missing7 = "userId") || data64.displayName === void 0 && (missing7 = "displayName")) {
|
|
6568
|
-
const
|
|
6804
|
+
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 + "'" };
|
|
6569
6805
|
if (vErrors === null) {
|
|
6570
|
-
vErrors = [
|
|
6806
|
+
vErrors = [err5];
|
|
6571
6807
|
} else {
|
|
6572
|
-
vErrors.push(
|
|
6808
|
+
vErrors.push(err5);
|
|
6573
6809
|
}
|
|
6574
6810
|
errors++;
|
|
6575
6811
|
} else {
|
|
6576
6812
|
const _errs146 = errors;
|
|
6577
6813
|
for (const key0 in data64) {
|
|
6578
6814
|
if (!(key0 === "kind" || key0 === "userId" || key0 === "displayName")) {
|
|
6579
|
-
const
|
|
6815
|
+
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" };
|
|
6580
6816
|
if (vErrors === null) {
|
|
6581
|
-
vErrors = [
|
|
6817
|
+
vErrors = [err6];
|
|
6582
6818
|
} else {
|
|
6583
|
-
vErrors.push(
|
|
6819
|
+
vErrors.push(err6);
|
|
6584
6820
|
}
|
|
6585
6821
|
errors++;
|
|
6586
6822
|
break;
|
|
@@ -6591,20 +6827,20 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
6591
6827
|
let data65 = data64.kind;
|
|
6592
6828
|
const _errs147 = errors;
|
|
6593
6829
|
if (typeof data65 !== "string") {
|
|
6594
|
-
const
|
|
6830
|
+
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" };
|
|
6595
6831
|
if (vErrors === null) {
|
|
6596
|
-
vErrors = [
|
|
6832
|
+
vErrors = [err7];
|
|
6597
6833
|
} else {
|
|
6598
|
-
vErrors.push(
|
|
6834
|
+
vErrors.push(err7);
|
|
6599
6835
|
}
|
|
6600
6836
|
errors++;
|
|
6601
6837
|
}
|
|
6602
6838
|
if ("user" !== data65) {
|
|
6603
|
-
const
|
|
6839
|
+
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" };
|
|
6604
6840
|
if (vErrors === null) {
|
|
6605
|
-
vErrors = [
|
|
6841
|
+
vErrors = [err8];
|
|
6606
6842
|
} else {
|
|
6607
|
-
vErrors.push(
|
|
6843
|
+
vErrors.push(err8);
|
|
6608
6844
|
}
|
|
6609
6845
|
errors++;
|
|
6610
6846
|
}
|
|
@@ -6619,20 +6855,20 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
6619
6855
|
if (errors === _errs149) {
|
|
6620
6856
|
if (typeof data66 === "string") {
|
|
6621
6857
|
if (func1(data66) < 1) {
|
|
6622
|
-
const
|
|
6858
|
+
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" };
|
|
6623
6859
|
if (vErrors === null) {
|
|
6624
|
-
vErrors = [
|
|
6860
|
+
vErrors = [err9];
|
|
6625
6861
|
} else {
|
|
6626
|
-
vErrors.push(
|
|
6862
|
+
vErrors.push(err9);
|
|
6627
6863
|
}
|
|
6628
6864
|
errors++;
|
|
6629
6865
|
}
|
|
6630
6866
|
} else {
|
|
6631
|
-
const
|
|
6867
|
+
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" };
|
|
6632
6868
|
if (vErrors === null) {
|
|
6633
|
-
vErrors = [
|
|
6869
|
+
vErrors = [err10];
|
|
6634
6870
|
} else {
|
|
6635
|
-
vErrors.push(
|
|
6871
|
+
vErrors.push(err10);
|
|
6636
6872
|
}
|
|
6637
6873
|
errors++;
|
|
6638
6874
|
}
|
|
@@ -6645,11 +6881,11 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
6645
6881
|
if (data64.displayName !== void 0) {
|
|
6646
6882
|
const _errs151 = errors;
|
|
6647
6883
|
if (typeof data64.displayName !== "string") {
|
|
6648
|
-
const
|
|
6884
|
+
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" };
|
|
6649
6885
|
if (vErrors === null) {
|
|
6650
|
-
vErrors = [
|
|
6886
|
+
vErrors = [err11];
|
|
6651
6887
|
} else {
|
|
6652
|
-
vErrors.push(
|
|
6888
|
+
vErrors.push(err11);
|
|
6653
6889
|
}
|
|
6654
6890
|
errors++;
|
|
6655
6891
|
}
|
|
@@ -6662,11 +6898,11 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
6662
6898
|
}
|
|
6663
6899
|
}
|
|
6664
6900
|
} else {
|
|
6665
|
-
const
|
|
6901
|
+
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" };
|
|
6666
6902
|
if (vErrors === null) {
|
|
6667
|
-
vErrors = [
|
|
6903
|
+
vErrors = [err12];
|
|
6668
6904
|
} else {
|
|
6669
|
-
vErrors.push(
|
|
6905
|
+
vErrors.push(err12);
|
|
6670
6906
|
}
|
|
6671
6907
|
errors++;
|
|
6672
6908
|
}
|
|
@@ -6682,22 +6918,22 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
6682
6918
|
if (data64 && typeof data64 == "object" && !Array.isArray(data64)) {
|
|
6683
6919
|
let missing8;
|
|
6684
6920
|
if (data64.kind === void 0 && (missing8 = "kind") || data64.role === void 0 && (missing8 = "role")) {
|
|
6685
|
-
const
|
|
6921
|
+
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 + "'" };
|
|
6686
6922
|
if (vErrors === null) {
|
|
6687
|
-
vErrors = [
|
|
6923
|
+
vErrors = [err13];
|
|
6688
6924
|
} else {
|
|
6689
|
-
vErrors.push(
|
|
6925
|
+
vErrors.push(err13);
|
|
6690
6926
|
}
|
|
6691
6927
|
errors++;
|
|
6692
6928
|
} else {
|
|
6693
6929
|
const _errs155 = errors;
|
|
6694
6930
|
for (const key1 in data64) {
|
|
6695
6931
|
if (!(key1 === "kind" || key1 === "role")) {
|
|
6696
|
-
const
|
|
6932
|
+
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" };
|
|
6697
6933
|
if (vErrors === null) {
|
|
6698
|
-
vErrors = [
|
|
6934
|
+
vErrors = [err14];
|
|
6699
6935
|
} else {
|
|
6700
|
-
vErrors.push(
|
|
6936
|
+
vErrors.push(err14);
|
|
6701
6937
|
}
|
|
6702
6938
|
errors++;
|
|
6703
6939
|
break;
|
|
@@ -6708,20 +6944,20 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
6708
6944
|
let data68 = data64.kind;
|
|
6709
6945
|
const _errs156 = errors;
|
|
6710
6946
|
if (typeof data68 !== "string") {
|
|
6711
|
-
const
|
|
6947
|
+
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" };
|
|
6712
6948
|
if (vErrors === null) {
|
|
6713
|
-
vErrors = [
|
|
6949
|
+
vErrors = [err15];
|
|
6714
6950
|
} else {
|
|
6715
|
-
vErrors.push(
|
|
6951
|
+
vErrors.push(err15);
|
|
6716
6952
|
}
|
|
6717
6953
|
errors++;
|
|
6718
6954
|
}
|
|
6719
6955
|
if ("role" !== data68) {
|
|
6720
|
-
const
|
|
6956
|
+
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" };
|
|
6721
6957
|
if (vErrors === null) {
|
|
6722
|
-
vErrors = [
|
|
6958
|
+
vErrors = [err16];
|
|
6723
6959
|
} else {
|
|
6724
|
-
vErrors.push(
|
|
6960
|
+
vErrors.push(err16);
|
|
6725
6961
|
}
|
|
6726
6962
|
errors++;
|
|
6727
6963
|
}
|
|
@@ -6734,20 +6970,20 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
6734
6970
|
let data69 = data64.role;
|
|
6735
6971
|
const _errs158 = errors;
|
|
6736
6972
|
if (typeof data69 !== "string") {
|
|
6737
|
-
const
|
|
6973
|
+
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" };
|
|
6738
6974
|
if (vErrors === null) {
|
|
6739
|
-
vErrors = [
|
|
6975
|
+
vErrors = [err17];
|
|
6740
6976
|
} else {
|
|
6741
|
-
vErrors.push(
|
|
6977
|
+
vErrors.push(err17);
|
|
6742
6978
|
}
|
|
6743
6979
|
errors++;
|
|
6744
6980
|
}
|
|
6745
6981
|
if (!(data69 === "owner" || data69 === "admin" || data69 === "member")) {
|
|
6746
|
-
const
|
|
6982
|
+
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" };
|
|
6747
6983
|
if (vErrors === null) {
|
|
6748
|
-
vErrors = [
|
|
6984
|
+
vErrors = [err18];
|
|
6749
6985
|
} else {
|
|
6750
|
-
vErrors.push(
|
|
6986
|
+
vErrors.push(err18);
|
|
6751
6987
|
}
|
|
6752
6988
|
errors++;
|
|
6753
6989
|
}
|
|
@@ -6759,11 +6995,11 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
6759
6995
|
}
|
|
6760
6996
|
}
|
|
6761
6997
|
} else {
|
|
6762
|
-
const
|
|
6998
|
+
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" };
|
|
6763
6999
|
if (vErrors === null) {
|
|
6764
|
-
vErrors = [
|
|
7000
|
+
vErrors = [err19];
|
|
6765
7001
|
} else {
|
|
6766
|
-
vErrors.push(
|
|
7002
|
+
vErrors.push(err19);
|
|
6767
7003
|
}
|
|
6768
7004
|
errors++;
|
|
6769
7005
|
}
|
|
@@ -6785,22 +7021,22 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
6785
7021
|
if (data64 && typeof data64 == "object" && !Array.isArray(data64)) {
|
|
6786
7022
|
let missing9;
|
|
6787
7023
|
if (data64.kind === void 0 && (missing9 = "kind") || data64.agent === void 0 && (missing9 = "agent")) {
|
|
6788
|
-
const
|
|
7024
|
+
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 + "'" };
|
|
6789
7025
|
if (vErrors === null) {
|
|
6790
|
-
vErrors = [
|
|
7026
|
+
vErrors = [err20];
|
|
6791
7027
|
} else {
|
|
6792
|
-
vErrors.push(
|
|
7028
|
+
vErrors.push(err20);
|
|
6793
7029
|
}
|
|
6794
7030
|
errors++;
|
|
6795
7031
|
} else {
|
|
6796
7032
|
const _errs162 = errors;
|
|
6797
7033
|
for (const key2 in data64) {
|
|
6798
7034
|
if (!(key2 === "kind" || key2 === "agent")) {
|
|
6799
|
-
const
|
|
7035
|
+
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" };
|
|
6800
7036
|
if (vErrors === null) {
|
|
6801
|
-
vErrors = [
|
|
7037
|
+
vErrors = [err21];
|
|
6802
7038
|
} else {
|
|
6803
|
-
vErrors.push(
|
|
7039
|
+
vErrors.push(err21);
|
|
6804
7040
|
}
|
|
6805
7041
|
errors++;
|
|
6806
7042
|
break;
|
|
@@ -6811,20 +7047,20 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
6811
7047
|
let data70 = data64.kind;
|
|
6812
7048
|
const _errs163 = errors;
|
|
6813
7049
|
if (typeof data70 !== "string") {
|
|
6814
|
-
const
|
|
7050
|
+
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" };
|
|
6815
7051
|
if (vErrors === null) {
|
|
6816
|
-
vErrors = [
|
|
7052
|
+
vErrors = [err22];
|
|
6817
7053
|
} else {
|
|
6818
|
-
vErrors.push(
|
|
7054
|
+
vErrors.push(err22);
|
|
6819
7055
|
}
|
|
6820
7056
|
errors++;
|
|
6821
7057
|
}
|
|
6822
7058
|
if ("agent" !== data70) {
|
|
6823
|
-
const
|
|
7059
|
+
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" };
|
|
6824
7060
|
if (vErrors === null) {
|
|
6825
|
-
vErrors = [
|
|
7061
|
+
vErrors = [err23];
|
|
6826
7062
|
} else {
|
|
6827
|
-
vErrors.push(
|
|
7063
|
+
vErrors.push(err23);
|
|
6828
7064
|
}
|
|
6829
7065
|
errors++;
|
|
6830
7066
|
}
|
|
@@ -6837,20 +7073,20 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
6837
7073
|
let data71 = data64.agent;
|
|
6838
7074
|
const _errs165 = errors;
|
|
6839
7075
|
if (typeof data71 !== "string") {
|
|
6840
|
-
const
|
|
7076
|
+
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" };
|
|
6841
7077
|
if (vErrors === null) {
|
|
6842
|
-
vErrors = [
|
|
7078
|
+
vErrors = [err24];
|
|
6843
7079
|
} else {
|
|
6844
|
-
vErrors.push(
|
|
7080
|
+
vErrors.push(err24);
|
|
6845
7081
|
}
|
|
6846
7082
|
errors++;
|
|
6847
7083
|
}
|
|
6848
7084
|
if (!(data71 === "claude_code" || data71 === "codex" || data71 === "cursor" || data71 === "hermes")) {
|
|
6849
|
-
const
|
|
7085
|
+
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" };
|
|
6850
7086
|
if (vErrors === null) {
|
|
6851
|
-
vErrors = [
|
|
7087
|
+
vErrors = [err25];
|
|
6852
7088
|
} else {
|
|
6853
|
-
vErrors.push(
|
|
7089
|
+
vErrors.push(err25);
|
|
6854
7090
|
}
|
|
6855
7091
|
errors++;
|
|
6856
7092
|
}
|
|
@@ -6862,11 +7098,11 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
6862
7098
|
}
|
|
6863
7099
|
}
|
|
6864
7100
|
} else {
|
|
6865
|
-
const
|
|
7101
|
+
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" };
|
|
6866
7102
|
if (vErrors === null) {
|
|
6867
|
-
vErrors = [
|
|
7103
|
+
vErrors = [err26];
|
|
6868
7104
|
} else {
|
|
6869
|
-
vErrors.push(
|
|
7105
|
+
vErrors.push(err26);
|
|
6870
7106
|
}
|
|
6871
7107
|
errors++;
|
|
6872
7108
|
}
|
|
@@ -6888,22 +7124,22 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
6888
7124
|
if (data64 && typeof data64 == "object" && !Array.isArray(data64)) {
|
|
6889
7125
|
let missing10;
|
|
6890
7126
|
if (data64.kind === void 0 && (missing10 = "kind") || data64.credential === void 0 && (missing10 = "credential")) {
|
|
6891
|
-
const
|
|
7127
|
+
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 + "'" };
|
|
6892
7128
|
if (vErrors === null) {
|
|
6893
|
-
vErrors = [
|
|
7129
|
+
vErrors = [err27];
|
|
6894
7130
|
} else {
|
|
6895
|
-
vErrors.push(
|
|
7131
|
+
vErrors.push(err27);
|
|
6896
7132
|
}
|
|
6897
7133
|
errors++;
|
|
6898
7134
|
} else {
|
|
6899
7135
|
const _errs169 = errors;
|
|
6900
7136
|
for (const key3 in data64) {
|
|
6901
7137
|
if (!(key3 === "kind" || key3 === "credential")) {
|
|
6902
|
-
const
|
|
7138
|
+
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" };
|
|
6903
7139
|
if (vErrors === null) {
|
|
6904
|
-
vErrors = [
|
|
7140
|
+
vErrors = [err28];
|
|
6905
7141
|
} else {
|
|
6906
|
-
vErrors.push(
|
|
7142
|
+
vErrors.push(err28);
|
|
6907
7143
|
}
|
|
6908
7144
|
errors++;
|
|
6909
7145
|
break;
|
|
@@ -6914,20 +7150,20 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
6914
7150
|
let data72 = data64.kind;
|
|
6915
7151
|
const _errs170 = errors;
|
|
6916
7152
|
if (typeof data72 !== "string") {
|
|
6917
|
-
const
|
|
7153
|
+
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" };
|
|
6918
7154
|
if (vErrors === null) {
|
|
6919
|
-
vErrors = [
|
|
7155
|
+
vErrors = [err29];
|
|
6920
7156
|
} else {
|
|
6921
|
-
vErrors.push(
|
|
7157
|
+
vErrors.push(err29);
|
|
6922
7158
|
}
|
|
6923
7159
|
errors++;
|
|
6924
7160
|
}
|
|
6925
7161
|
if ("credential" !== data72) {
|
|
6926
|
-
const
|
|
7162
|
+
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" };
|
|
6927
7163
|
if (vErrors === null) {
|
|
6928
|
-
vErrors = [
|
|
7164
|
+
vErrors = [err30];
|
|
6929
7165
|
} else {
|
|
6930
|
-
vErrors.push(
|
|
7166
|
+
vErrors.push(err30);
|
|
6931
7167
|
}
|
|
6932
7168
|
errors++;
|
|
6933
7169
|
}
|
|
@@ -6940,20 +7176,20 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
6940
7176
|
let data73 = data64.credential;
|
|
6941
7177
|
const _errs172 = errors;
|
|
6942
7178
|
if (typeof data73 !== "string") {
|
|
6943
|
-
const
|
|
7179
|
+
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" };
|
|
6944
7180
|
if (vErrors === null) {
|
|
6945
|
-
vErrors = [
|
|
7181
|
+
vErrors = [err31];
|
|
6946
7182
|
} else {
|
|
6947
|
-
vErrors.push(
|
|
7183
|
+
vErrors.push(err31);
|
|
6948
7184
|
}
|
|
6949
7185
|
errors++;
|
|
6950
7186
|
}
|
|
6951
7187
|
if (!(data73 === "workos_jwt" || data73 === "workos_api_key" || data73 === "service_token")) {
|
|
6952
|
-
const
|
|
7188
|
+
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" };
|
|
6953
7189
|
if (vErrors === null) {
|
|
6954
|
-
vErrors = [
|
|
7190
|
+
vErrors = [err32];
|
|
6955
7191
|
} else {
|
|
6956
|
-
vErrors.push(
|
|
7192
|
+
vErrors.push(err32);
|
|
6957
7193
|
}
|
|
6958
7194
|
errors++;
|
|
6959
7195
|
}
|
|
@@ -6965,11 +7201,11 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
6965
7201
|
}
|
|
6966
7202
|
}
|
|
6967
7203
|
} else {
|
|
6968
|
-
const
|
|
7204
|
+
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" };
|
|
6969
7205
|
if (vErrors === null) {
|
|
6970
|
-
vErrors = [
|
|
7206
|
+
vErrors = [err33];
|
|
6971
7207
|
} else {
|
|
6972
|
-
vErrors.push(
|
|
7208
|
+
vErrors.push(err33);
|
|
6973
7209
|
}
|
|
6974
7210
|
errors++;
|
|
6975
7211
|
}
|
|
@@ -6990,11 +7226,11 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
6990
7226
|
}
|
|
6991
7227
|
}
|
|
6992
7228
|
if (!valid20) {
|
|
6993
|
-
const
|
|
7229
|
+
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" };
|
|
6994
7230
|
if (vErrors === null) {
|
|
6995
|
-
vErrors = [
|
|
7231
|
+
vErrors = [err34];
|
|
6996
7232
|
} else {
|
|
6997
|
-
vErrors.push(
|
|
7233
|
+
vErrors.push(err34);
|
|
6998
7234
|
}
|
|
6999
7235
|
errors++;
|
|
7000
7236
|
validate29.errors = vErrors;
|
|
@@ -7297,7 +7533,7 @@ function validate32(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
7297
7533
|
return errors === 0;
|
|
7298
7534
|
}
|
|
7299
7535
|
validate32.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
|
|
7300
|
-
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": {} };
|
|
7536
|
+
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": {} };
|
|
7301
7537
|
function validate33(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
7302
7538
|
;
|
|
7303
7539
|
let vErrors = null;
|
|
@@ -7341,6 +7577,11 @@ function validate33(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
7341
7577
|
if (func1(data1) < 1) {
|
|
7342
7578
|
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" }];
|
|
7343
7579
|
return false;
|
|
7580
|
+
} else {
|
|
7581
|
+
if (!pattern4.test(data1)) {
|
|
7582
|
+
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}$"' }];
|
|
7583
|
+
return false;
|
|
7584
|
+
}
|
|
7344
7585
|
}
|
|
7345
7586
|
} else {
|
|
7346
7587
|
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" }];
|
|
@@ -7353,10 +7594,18 @@ function validate33(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
7353
7594
|
}
|
|
7354
7595
|
if (valid1) {
|
|
7355
7596
|
if (data.childShortId !== void 0) {
|
|
7597
|
+
let data2 = data.childShortId;
|
|
7356
7598
|
const _errs7 = errors;
|
|
7357
|
-
if (
|
|
7358
|
-
|
|
7359
|
-
|
|
7599
|
+
if (errors === _errs7) {
|
|
7600
|
+
if (typeof data2 === "string") {
|
|
7601
|
+
if (!pattern5.test(data2)) {
|
|
7602
|
+
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}$"' }];
|
|
7603
|
+
return false;
|
|
7604
|
+
}
|
|
7605
|
+
} else {
|
|
7606
|
+
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" }];
|
|
7607
|
+
return false;
|
|
7608
|
+
}
|
|
7360
7609
|
}
|
|
7361
7610
|
var valid1 = _errs7 === errors;
|
|
7362
7611
|
} else {
|
|
@@ -7371,6 +7620,11 @@ function validate33(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
7371
7620
|
if (func1(data3) < 1) {
|
|
7372
7621
|
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" }];
|
|
7373
7622
|
return false;
|
|
7623
|
+
} else {
|
|
7624
|
+
if (!pattern4.test(data3)) {
|
|
7625
|
+
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}$"' }];
|
|
7626
|
+
return false;
|
|
7627
|
+
}
|
|
7374
7628
|
}
|
|
7375
7629
|
} else {
|
|
7376
7630
|
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" }];
|
|
@@ -7383,10 +7637,18 @@ function validate33(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
7383
7637
|
}
|
|
7384
7638
|
if (valid1) {
|
|
7385
7639
|
if (data.parentShortId !== void 0) {
|
|
7640
|
+
let data4 = data.parentShortId;
|
|
7386
7641
|
const _errs11 = errors;
|
|
7387
|
-
if (
|
|
7388
|
-
|
|
7389
|
-
|
|
7642
|
+
if (errors === _errs11) {
|
|
7643
|
+
if (typeof data4 === "string") {
|
|
7644
|
+
if (!pattern5.test(data4)) {
|
|
7645
|
+
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}$"' }];
|
|
7646
|
+
return false;
|
|
7647
|
+
}
|
|
7648
|
+
} else {
|
|
7649
|
+
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" }];
|
|
7650
|
+
return false;
|
|
7651
|
+
}
|
|
7390
7652
|
}
|
|
7391
7653
|
var valid1 = _errs11 === errors;
|
|
7392
7654
|
} else {
|
|
@@ -8302,7 +8564,7 @@ function validate34(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
8302
8564
|
return errors === 0;
|
|
8303
8565
|
}
|
|
8304
8566
|
validate34.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
|
|
8305
|
-
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": {} }] };
|
|
8567
|
+
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": {} }] };
|
|
8306
8568
|
function validate35(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
8307
8569
|
;
|
|
8308
8570
|
let vErrors = null;
|
|
@@ -9274,13 +9536,23 @@ function validate35(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
9274
9536
|
vErrors.push(err61);
|
|
9275
9537
|
}
|
|
9276
9538
|
errors++;
|
|
9539
|
+
} else {
|
|
9540
|
+
if (!pattern4.test(data28)) {
|
|
9541
|
+
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}$"' };
|
|
9542
|
+
if (vErrors === null) {
|
|
9543
|
+
vErrors = [err62];
|
|
9544
|
+
} else {
|
|
9545
|
+
vErrors.push(err62);
|
|
9546
|
+
}
|
|
9547
|
+
errors++;
|
|
9548
|
+
}
|
|
9277
9549
|
}
|
|
9278
9550
|
} else {
|
|
9279
|
-
const
|
|
9551
|
+
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" };
|
|
9280
9552
|
if (vErrors === null) {
|
|
9281
|
-
vErrors = [
|
|
9553
|
+
vErrors = [err63];
|
|
9282
9554
|
} else {
|
|
9283
|
-
vErrors.push(
|
|
9555
|
+
vErrors.push(err63);
|
|
9284
9556
|
}
|
|
9285
9557
|
errors++;
|
|
9286
9558
|
}
|
|
@@ -9291,15 +9563,28 @@ function validate35(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
9291
9563
|
}
|
|
9292
9564
|
if (valid16) {
|
|
9293
9565
|
if (data.shortId !== void 0) {
|
|
9566
|
+
let data29 = data.shortId;
|
|
9294
9567
|
const _errs81 = errors;
|
|
9295
|
-
if (
|
|
9296
|
-
|
|
9297
|
-
|
|
9298
|
-
|
|
9568
|
+
if (errors === _errs81) {
|
|
9569
|
+
if (typeof data29 === "string") {
|
|
9570
|
+
if (!pattern5.test(data29)) {
|
|
9571
|
+
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}$"' };
|
|
9572
|
+
if (vErrors === null) {
|
|
9573
|
+
vErrors = [err64];
|
|
9574
|
+
} else {
|
|
9575
|
+
vErrors.push(err64);
|
|
9576
|
+
}
|
|
9577
|
+
errors++;
|
|
9578
|
+
}
|
|
9299
9579
|
} else {
|
|
9300
|
-
|
|
9580
|
+
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" };
|
|
9581
|
+
if (vErrors === null) {
|
|
9582
|
+
vErrors = [err65];
|
|
9583
|
+
} else {
|
|
9584
|
+
vErrors.push(err65);
|
|
9585
|
+
}
|
|
9586
|
+
errors++;
|
|
9301
9587
|
}
|
|
9302
|
-
errors++;
|
|
9303
9588
|
}
|
|
9304
9589
|
var valid16 = _errs81 === errors;
|
|
9305
9590
|
} else {
|
|
@@ -9310,20 +9595,20 @@ function validate35(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
9310
9595
|
let data30 = data.stage;
|
|
9311
9596
|
const _errs83 = errors;
|
|
9312
9597
|
if (typeof data30 !== "string") {
|
|
9313
|
-
const
|
|
9598
|
+
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" };
|
|
9314
9599
|
if (vErrors === null) {
|
|
9315
|
-
vErrors = [
|
|
9600
|
+
vErrors = [err66];
|
|
9316
9601
|
} else {
|
|
9317
|
-
vErrors.push(
|
|
9602
|
+
vErrors.push(err66);
|
|
9318
9603
|
}
|
|
9319
9604
|
errors++;
|
|
9320
9605
|
}
|
|
9321
9606
|
if (!(data30 === "draft" || data30 === "provisional" || data30 === "adopted" || data30 === "superseded" || data30 === "abandoned")) {
|
|
9322
|
-
const
|
|
9607
|
+
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" };
|
|
9323
9608
|
if (vErrors === null) {
|
|
9324
|
-
vErrors = [
|
|
9609
|
+
vErrors = [err67];
|
|
9325
9610
|
} else {
|
|
9326
|
-
vErrors.push(
|
|
9611
|
+
vErrors.push(err67);
|
|
9327
9612
|
}
|
|
9328
9613
|
errors++;
|
|
9329
9614
|
}
|
|
@@ -9339,11 +9624,11 @@ function validate35(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
9339
9624
|
if (data31 && typeof data31 == "object" && !Array.isArray(data31)) {
|
|
9340
9625
|
let missing8;
|
|
9341
9626
|
if (data31.location === void 0 && (missing8 = "location") || data31.time === void 0 && (missing8 = "time") || data31.users === void 0 && (missing8 = "users")) {
|
|
9342
|
-
const
|
|
9627
|
+
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 + "'" };
|
|
9343
9628
|
if (vErrors === null) {
|
|
9344
|
-
vErrors = [
|
|
9629
|
+
vErrors = [err68];
|
|
9345
9630
|
} else {
|
|
9346
|
-
vErrors.push(
|
|
9631
|
+
vErrors.push(err68);
|
|
9347
9632
|
}
|
|
9348
9633
|
errors++;
|
|
9349
9634
|
} else {
|
|
@@ -9354,11 +9639,11 @@ function validate35(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
9354
9639
|
if (data32 && typeof data32 == "object" && !Array.isArray(data32)) {
|
|
9355
9640
|
let missing9;
|
|
9356
9641
|
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")) {
|
|
9357
|
-
const
|
|
9642
|
+
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 + "'" };
|
|
9358
9643
|
if (vErrors === null) {
|
|
9359
|
-
vErrors = [
|
|
9644
|
+
vErrors = [err69];
|
|
9360
9645
|
} else {
|
|
9361
|
-
vErrors.push(
|
|
9646
|
+
vErrors.push(err69);
|
|
9362
9647
|
}
|
|
9363
9648
|
errors++;
|
|
9364
9649
|
} else {
|
|
@@ -9366,20 +9651,20 @@ function validate35(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
9366
9651
|
let data33 = data32.mode;
|
|
9367
9652
|
const _errs91 = errors;
|
|
9368
9653
|
if (typeof data33 !== "string") {
|
|
9369
|
-
const
|
|
9654
|
+
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" };
|
|
9370
9655
|
if (vErrors === null) {
|
|
9371
|
-
vErrors = [
|
|
9656
|
+
vErrors = [err70];
|
|
9372
9657
|
} else {
|
|
9373
|
-
vErrors.push(
|
|
9658
|
+
vErrors.push(err70);
|
|
9374
9659
|
}
|
|
9375
9660
|
errors++;
|
|
9376
9661
|
}
|
|
9377
9662
|
if (!(data33 === "inherited" || data33 === "explicit")) {
|
|
9378
|
-
const
|
|
9663
|
+
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" };
|
|
9379
9664
|
if (vErrors === null) {
|
|
9380
|
-
vErrors = [
|
|
9665
|
+
vErrors = [err71];
|
|
9381
9666
|
} else {
|
|
9382
|
-
vErrors.push(
|
|
9667
|
+
vErrors.push(err71);
|
|
9383
9668
|
}
|
|
9384
9669
|
errors++;
|
|
9385
9670
|
}
|
|
@@ -9391,11 +9676,11 @@ function validate35(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
9391
9676
|
if (data32.repository !== void 0) {
|
|
9392
9677
|
const _errs93 = errors;
|
|
9393
9678
|
if (typeof data32.repository !== "boolean") {
|
|
9394
|
-
const
|
|
9679
|
+
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" };
|
|
9395
9680
|
if (vErrors === null) {
|
|
9396
|
-
vErrors = [
|
|
9681
|
+
vErrors = [err72];
|
|
9397
9682
|
} else {
|
|
9398
|
-
vErrors.push(
|
|
9683
|
+
vErrors.push(err72);
|
|
9399
9684
|
}
|
|
9400
9685
|
errors++;
|
|
9401
9686
|
}
|
|
@@ -9414,11 +9699,11 @@ function validate35(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
9414
9699
|
for (let i5 = 0; i5 < len5; i5++) {
|
|
9415
9700
|
const _errs97 = errors;
|
|
9416
9701
|
if (typeof data35[i5] !== "string") {
|
|
9417
|
-
const
|
|
9702
|
+
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" };
|
|
9418
9703
|
if (vErrors === null) {
|
|
9419
|
-
vErrors = [
|
|
9704
|
+
vErrors = [err73];
|
|
9420
9705
|
} else {
|
|
9421
|
-
vErrors.push(
|
|
9706
|
+
vErrors.push(err73);
|
|
9422
9707
|
}
|
|
9423
9708
|
errors++;
|
|
9424
9709
|
}
|
|
@@ -9428,11 +9713,11 @@ function validate35(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
9428
9713
|
}
|
|
9429
9714
|
}
|
|
9430
9715
|
} else {
|
|
9431
|
-
const
|
|
9716
|
+
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" };
|
|
9432
9717
|
if (vErrors === null) {
|
|
9433
|
-
vErrors = [
|
|
9718
|
+
vErrors = [err74];
|
|
9434
9719
|
} else {
|
|
9435
|
-
vErrors.push(
|
|
9720
|
+
vErrors.push(err74);
|
|
9436
9721
|
}
|
|
9437
9722
|
errors++;
|
|
9438
9723
|
}
|
|
@@ -9452,11 +9737,11 @@ function validate35(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
9452
9737
|
for (let i6 = 0; i6 < len6; i6++) {
|
|
9453
9738
|
const _errs101 = errors;
|
|
9454
9739
|
if (typeof data37[i6] !== "string") {
|
|
9455
|
-
const
|
|
9740
|
+
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" };
|
|
9456
9741
|
if (vErrors === null) {
|
|
9457
|
-
vErrors = [
|
|
9742
|
+
vErrors = [err75];
|
|
9458
9743
|
} else {
|
|
9459
|
-
vErrors.push(
|
|
9744
|
+
vErrors.push(err75);
|
|
9460
9745
|
}
|
|
9461
9746
|
errors++;
|
|
9462
9747
|
}
|
|
@@ -9466,11 +9751,11 @@ function validate35(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
9466
9751
|
}
|
|
9467
9752
|
}
|
|
9468
9753
|
} else {
|
|
9469
|
-
const
|
|
9754
|
+
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" };
|
|
9470
9755
|
if (vErrors === null) {
|
|
9471
|
-
vErrors = [
|
|
9756
|
+
vErrors = [err76];
|
|
9472
9757
|
} else {
|
|
9473
|
-
vErrors.push(
|
|
9758
|
+
vErrors.push(err76);
|
|
9474
9759
|
}
|
|
9475
9760
|
errors++;
|
|
9476
9761
|
}
|
|
@@ -9490,11 +9775,11 @@ function validate35(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
9490
9775
|
for (let i7 = 0; i7 < len7; i7++) {
|
|
9491
9776
|
const _errs105 = errors;
|
|
9492
9777
|
if (typeof data39[i7] !== "string") {
|
|
9493
|
-
const
|
|
9778
|
+
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" };
|
|
9494
9779
|
if (vErrors === null) {
|
|
9495
|
-
vErrors = [
|
|
9780
|
+
vErrors = [err77];
|
|
9496
9781
|
} else {
|
|
9497
|
-
vErrors.push(
|
|
9782
|
+
vErrors.push(err77);
|
|
9498
9783
|
}
|
|
9499
9784
|
errors++;
|
|
9500
9785
|
}
|
|
@@ -9504,11 +9789,11 @@ function validate35(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
9504
9789
|
}
|
|
9505
9790
|
}
|
|
9506
9791
|
} else {
|
|
9507
|
-
const
|
|
9792
|
+
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" };
|
|
9508
9793
|
if (vErrors === null) {
|
|
9509
|
-
vErrors = [
|
|
9794
|
+
vErrors = [err78];
|
|
9510
9795
|
} else {
|
|
9511
|
-
vErrors.push(
|
|
9796
|
+
vErrors.push(err78);
|
|
9512
9797
|
}
|
|
9513
9798
|
errors++;
|
|
9514
9799
|
}
|
|
@@ -9523,11 +9808,11 @@ function validate35(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
9523
9808
|
}
|
|
9524
9809
|
}
|
|
9525
9810
|
} else {
|
|
9526
|
-
const
|
|
9811
|
+
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" };
|
|
9527
9812
|
if (vErrors === null) {
|
|
9528
|
-
vErrors = [
|
|
9813
|
+
vErrors = [err79];
|
|
9529
9814
|
} else {
|
|
9530
|
-
vErrors.push(
|
|
9815
|
+
vErrors.push(err79);
|
|
9531
9816
|
}
|
|
9532
9817
|
errors++;
|
|
9533
9818
|
}
|
|
@@ -9546,31 +9831,31 @@ function validate35(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
9546
9831
|
let data42 = data41.effectiveFrom;
|
|
9547
9832
|
const _errs110 = errors;
|
|
9548
9833
|
if (!(typeof data42 == "number" && (!(data42 % 1) && !isNaN(data42)) && isFinite(data42))) {
|
|
9549
|
-
const
|
|
9834
|
+
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" };
|
|
9550
9835
|
if (vErrors === null) {
|
|
9551
|
-
vErrors = [
|
|
9836
|
+
vErrors = [err80];
|
|
9552
9837
|
} else {
|
|
9553
|
-
vErrors.push(
|
|
9838
|
+
vErrors.push(err80);
|
|
9554
9839
|
}
|
|
9555
9840
|
errors++;
|
|
9556
9841
|
}
|
|
9557
9842
|
if (errors === _errs110) {
|
|
9558
9843
|
if (typeof data42 == "number" && isFinite(data42)) {
|
|
9559
9844
|
if (data42 > 9007199254740991 || isNaN(data42)) {
|
|
9560
|
-
const
|
|
9845
|
+
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" };
|
|
9561
9846
|
if (vErrors === null) {
|
|
9562
|
-
vErrors = [
|
|
9847
|
+
vErrors = [err81];
|
|
9563
9848
|
} else {
|
|
9564
|
-
vErrors.push(
|
|
9849
|
+
vErrors.push(err81);
|
|
9565
9850
|
}
|
|
9566
9851
|
errors++;
|
|
9567
9852
|
} else {
|
|
9568
9853
|
if (data42 < -9007199254740991 || isNaN(data42)) {
|
|
9569
|
-
const
|
|
9854
|
+
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" };
|
|
9570
9855
|
if (vErrors === null) {
|
|
9571
|
-
vErrors = [
|
|
9856
|
+
vErrors = [err82];
|
|
9572
9857
|
} else {
|
|
9573
|
-
vErrors.push(
|
|
9858
|
+
vErrors.push(err82);
|
|
9574
9859
|
}
|
|
9575
9860
|
errors++;
|
|
9576
9861
|
}
|
|
@@ -9586,31 +9871,31 @@ function validate35(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
9586
9871
|
let data43 = data41.effectiveUntil;
|
|
9587
9872
|
const _errs112 = errors;
|
|
9588
9873
|
if (!(typeof data43 == "number" && (!(data43 % 1) && !isNaN(data43)) && isFinite(data43))) {
|
|
9589
|
-
const
|
|
9874
|
+
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" };
|
|
9590
9875
|
if (vErrors === null) {
|
|
9591
|
-
vErrors = [
|
|
9876
|
+
vErrors = [err83];
|
|
9592
9877
|
} else {
|
|
9593
|
-
vErrors.push(
|
|
9878
|
+
vErrors.push(err83);
|
|
9594
9879
|
}
|
|
9595
9880
|
errors++;
|
|
9596
9881
|
}
|
|
9597
9882
|
if (errors === _errs112) {
|
|
9598
9883
|
if (typeof data43 == "number" && isFinite(data43)) {
|
|
9599
9884
|
if (data43 > 9007199254740991 || isNaN(data43)) {
|
|
9600
|
-
const
|
|
9885
|
+
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" };
|
|
9601
9886
|
if (vErrors === null) {
|
|
9602
|
-
vErrors = [
|
|
9887
|
+
vErrors = [err84];
|
|
9603
9888
|
} else {
|
|
9604
|
-
vErrors.push(
|
|
9889
|
+
vErrors.push(err84);
|
|
9605
9890
|
}
|
|
9606
9891
|
errors++;
|
|
9607
9892
|
} else {
|
|
9608
9893
|
if (data43 < -9007199254740991 || isNaN(data43)) {
|
|
9609
|
-
const
|
|
9894
|
+
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" };
|
|
9610
9895
|
if (vErrors === null) {
|
|
9611
|
-
vErrors = [
|
|
9896
|
+
vErrors = [err85];
|
|
9612
9897
|
} else {
|
|
9613
|
-
vErrors.push(
|
|
9898
|
+
vErrors.push(err85);
|
|
9614
9899
|
}
|
|
9615
9900
|
errors++;
|
|
9616
9901
|
}
|
|
@@ -9623,11 +9908,11 @@ function validate35(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
9623
9908
|
}
|
|
9624
9909
|
}
|
|
9625
9910
|
} else {
|
|
9626
|
-
const
|
|
9911
|
+
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" };
|
|
9627
9912
|
if (vErrors === null) {
|
|
9628
|
-
vErrors = [
|
|
9913
|
+
vErrors = [err86];
|
|
9629
9914
|
} else {
|
|
9630
|
-
vErrors.push(
|
|
9915
|
+
vErrors.push(err86);
|
|
9631
9916
|
}
|
|
9632
9917
|
errors++;
|
|
9633
9918
|
}
|
|
@@ -9655,22 +9940,22 @@ function validate35(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
9655
9940
|
if (data45 && typeof data45 == "object" && !Array.isArray(data45)) {
|
|
9656
9941
|
let missing10;
|
|
9657
9942
|
if (data45.kind === void 0 && (missing10 = "kind") || data45.userId === void 0 && (missing10 = "userId")) {
|
|
9658
|
-
const
|
|
9943
|
+
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 + "'" };
|
|
9659
9944
|
if (vErrors === null) {
|
|
9660
|
-
vErrors = [
|
|
9945
|
+
vErrors = [err87];
|
|
9661
9946
|
} else {
|
|
9662
|
-
vErrors.push(
|
|
9947
|
+
vErrors.push(err87);
|
|
9663
9948
|
}
|
|
9664
9949
|
errors++;
|
|
9665
9950
|
} else {
|
|
9666
9951
|
const _errs120 = errors;
|
|
9667
9952
|
for (const key4 in data45) {
|
|
9668
9953
|
if (!(key4 === "kind" || key4 === "userId")) {
|
|
9669
|
-
const
|
|
9954
|
+
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" };
|
|
9670
9955
|
if (vErrors === null) {
|
|
9671
|
-
vErrors = [
|
|
9956
|
+
vErrors = [err88];
|
|
9672
9957
|
} else {
|
|
9673
|
-
vErrors.push(
|
|
9958
|
+
vErrors.push(err88);
|
|
9674
9959
|
}
|
|
9675
9960
|
errors++;
|
|
9676
9961
|
break;
|
|
@@ -9681,20 +9966,20 @@ function validate35(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
9681
9966
|
let data46 = data45.kind;
|
|
9682
9967
|
const _errs121 = errors;
|
|
9683
9968
|
if (typeof data46 !== "string") {
|
|
9684
|
-
const
|
|
9969
|
+
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" };
|
|
9685
9970
|
if (vErrors === null) {
|
|
9686
|
-
vErrors = [
|
|
9971
|
+
vErrors = [err89];
|
|
9687
9972
|
} else {
|
|
9688
|
-
vErrors.push(
|
|
9973
|
+
vErrors.push(err89);
|
|
9689
9974
|
}
|
|
9690
9975
|
errors++;
|
|
9691
9976
|
}
|
|
9692
9977
|
if ("user" !== data46) {
|
|
9693
|
-
const
|
|
9978
|
+
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" };
|
|
9694
9979
|
if (vErrors === null) {
|
|
9695
|
-
vErrors = [
|
|
9980
|
+
vErrors = [err90];
|
|
9696
9981
|
} else {
|
|
9697
|
-
vErrors.push(
|
|
9982
|
+
vErrors.push(err90);
|
|
9698
9983
|
}
|
|
9699
9984
|
errors++;
|
|
9700
9985
|
}
|
|
@@ -9709,20 +9994,20 @@ function validate35(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
9709
9994
|
if (errors === _errs123) {
|
|
9710
9995
|
if (typeof data47 === "string") {
|
|
9711
9996
|
if (func1(data47) < 1) {
|
|
9712
|
-
const
|
|
9997
|
+
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" };
|
|
9713
9998
|
if (vErrors === null) {
|
|
9714
|
-
vErrors = [
|
|
9999
|
+
vErrors = [err91];
|
|
9715
10000
|
} else {
|
|
9716
|
-
vErrors.push(
|
|
10001
|
+
vErrors.push(err91);
|
|
9717
10002
|
}
|
|
9718
10003
|
errors++;
|
|
9719
10004
|
}
|
|
9720
10005
|
} else {
|
|
9721
|
-
const
|
|
10006
|
+
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" };
|
|
9722
10007
|
if (vErrors === null) {
|
|
9723
|
-
vErrors = [
|
|
10008
|
+
vErrors = [err92];
|
|
9724
10009
|
} else {
|
|
9725
|
-
vErrors.push(
|
|
10010
|
+
vErrors.push(err92);
|
|
9726
10011
|
}
|
|
9727
10012
|
errors++;
|
|
9728
10013
|
}
|
|
@@ -9735,11 +10020,11 @@ function validate35(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
9735
10020
|
}
|
|
9736
10021
|
}
|
|
9737
10022
|
} else {
|
|
9738
|
-
const
|
|
10023
|
+
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" };
|
|
9739
10024
|
if (vErrors === null) {
|
|
9740
|
-
vErrors = [
|
|
10025
|
+
vErrors = [err93];
|
|
9741
10026
|
} else {
|
|
9742
|
-
vErrors.push(
|
|
10027
|
+
vErrors.push(err93);
|
|
9743
10028
|
}
|
|
9744
10029
|
errors++;
|
|
9745
10030
|
}
|
|
@@ -9755,22 +10040,22 @@ function validate35(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
9755
10040
|
if (data45 && typeof data45 == "object" && !Array.isArray(data45)) {
|
|
9756
10041
|
let missing11;
|
|
9757
10042
|
if (data45.kind === void 0 && (missing11 = "kind") || data45.role === void 0 && (missing11 = "role")) {
|
|
9758
|
-
const
|
|
10043
|
+
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 + "'" };
|
|
9759
10044
|
if (vErrors === null) {
|
|
9760
|
-
vErrors = [
|
|
10045
|
+
vErrors = [err94];
|
|
9761
10046
|
} else {
|
|
9762
|
-
vErrors.push(
|
|
10047
|
+
vErrors.push(err94);
|
|
9763
10048
|
}
|
|
9764
10049
|
errors++;
|
|
9765
10050
|
} else {
|
|
9766
10051
|
const _errs127 = errors;
|
|
9767
10052
|
for (const key5 in data45) {
|
|
9768
10053
|
if (!(key5 === "kind" || key5 === "role")) {
|
|
9769
|
-
const
|
|
10054
|
+
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" };
|
|
9770
10055
|
if (vErrors === null) {
|
|
9771
|
-
vErrors = [
|
|
10056
|
+
vErrors = [err95];
|
|
9772
10057
|
} else {
|
|
9773
|
-
vErrors.push(
|
|
10058
|
+
vErrors.push(err95);
|
|
9774
10059
|
}
|
|
9775
10060
|
errors++;
|
|
9776
10061
|
break;
|
|
@@ -9781,20 +10066,20 @@ function validate35(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
9781
10066
|
let data48 = data45.kind;
|
|
9782
10067
|
const _errs128 = errors;
|
|
9783
10068
|
if (typeof data48 !== "string") {
|
|
9784
|
-
const
|
|
10069
|
+
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" };
|
|
9785
10070
|
if (vErrors === null) {
|
|
9786
|
-
vErrors = [
|
|
10071
|
+
vErrors = [err96];
|
|
9787
10072
|
} else {
|
|
9788
|
-
vErrors.push(
|
|
10073
|
+
vErrors.push(err96);
|
|
9789
10074
|
}
|
|
9790
10075
|
errors++;
|
|
9791
10076
|
}
|
|
9792
10077
|
if ("role" !== data48) {
|
|
9793
|
-
const
|
|
10078
|
+
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" };
|
|
9794
10079
|
if (vErrors === null) {
|
|
9795
|
-
vErrors = [
|
|
10080
|
+
vErrors = [err97];
|
|
9796
10081
|
} else {
|
|
9797
|
-
vErrors.push(
|
|
10082
|
+
vErrors.push(err97);
|
|
9798
10083
|
}
|
|
9799
10084
|
errors++;
|
|
9800
10085
|
}
|
|
@@ -9807,20 +10092,20 @@ function validate35(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
9807
10092
|
let data49 = data45.role;
|
|
9808
10093
|
const _errs130 = errors;
|
|
9809
10094
|
if (typeof data49 !== "string") {
|
|
9810
|
-
const
|
|
10095
|
+
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" };
|
|
9811
10096
|
if (vErrors === null) {
|
|
9812
|
-
vErrors = [
|
|
10097
|
+
vErrors = [err98];
|
|
9813
10098
|
} else {
|
|
9814
|
-
vErrors.push(
|
|
10099
|
+
vErrors.push(err98);
|
|
9815
10100
|
}
|
|
9816
10101
|
errors++;
|
|
9817
10102
|
}
|
|
9818
10103
|
if (!(data49 === "owner" || data49 === "admin" || data49 === "member")) {
|
|
9819
|
-
const
|
|
10104
|
+
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" };
|
|
9820
10105
|
if (vErrors === null) {
|
|
9821
|
-
vErrors = [
|
|
10106
|
+
vErrors = [err99];
|
|
9822
10107
|
} else {
|
|
9823
|
-
vErrors.push(
|
|
10108
|
+
vErrors.push(err99);
|
|
9824
10109
|
}
|
|
9825
10110
|
errors++;
|
|
9826
10111
|
}
|
|
@@ -9832,11 +10117,11 @@ function validate35(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
9832
10117
|
}
|
|
9833
10118
|
}
|
|
9834
10119
|
} else {
|
|
9835
|
-
const
|
|
10120
|
+
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" };
|
|
9836
10121
|
if (vErrors === null) {
|
|
9837
|
-
vErrors = [
|
|
10122
|
+
vErrors = [err100];
|
|
9838
10123
|
} else {
|
|
9839
|
-
vErrors.push(
|
|
10124
|
+
vErrors.push(err100);
|
|
9840
10125
|
}
|
|
9841
10126
|
errors++;
|
|
9842
10127
|
}
|
|
@@ -9858,22 +10143,22 @@ function validate35(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
9858
10143
|
if (data45 && typeof data45 == "object" && !Array.isArray(data45)) {
|
|
9859
10144
|
let missing12;
|
|
9860
10145
|
if (data45.kind === void 0 && (missing12 = "kind") || data45.agent === void 0 && (missing12 = "agent")) {
|
|
9861
|
-
const
|
|
10146
|
+
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 + "'" };
|
|
9862
10147
|
if (vErrors === null) {
|
|
9863
|
-
vErrors = [
|
|
10148
|
+
vErrors = [err101];
|
|
9864
10149
|
} else {
|
|
9865
|
-
vErrors.push(
|
|
10150
|
+
vErrors.push(err101);
|
|
9866
10151
|
}
|
|
9867
10152
|
errors++;
|
|
9868
10153
|
} else {
|
|
9869
10154
|
const _errs134 = errors;
|
|
9870
10155
|
for (const key6 in data45) {
|
|
9871
10156
|
if (!(key6 === "kind" || key6 === "agent")) {
|
|
9872
|
-
const
|
|
10157
|
+
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" };
|
|
9873
10158
|
if (vErrors === null) {
|
|
9874
|
-
vErrors = [
|
|
10159
|
+
vErrors = [err102];
|
|
9875
10160
|
} else {
|
|
9876
|
-
vErrors.push(
|
|
10161
|
+
vErrors.push(err102);
|
|
9877
10162
|
}
|
|
9878
10163
|
errors++;
|
|
9879
10164
|
break;
|
|
@@ -9884,20 +10169,20 @@ function validate35(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
9884
10169
|
let data50 = data45.kind;
|
|
9885
10170
|
const _errs135 = errors;
|
|
9886
10171
|
if (typeof data50 !== "string") {
|
|
9887
|
-
const
|
|
10172
|
+
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" };
|
|
9888
10173
|
if (vErrors === null) {
|
|
9889
|
-
vErrors = [
|
|
10174
|
+
vErrors = [err103];
|
|
9890
10175
|
} else {
|
|
9891
|
-
vErrors.push(
|
|
10176
|
+
vErrors.push(err103);
|
|
9892
10177
|
}
|
|
9893
10178
|
errors++;
|
|
9894
10179
|
}
|
|
9895
10180
|
if ("agent" !== data50) {
|
|
9896
|
-
const
|
|
10181
|
+
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" };
|
|
9897
10182
|
if (vErrors === null) {
|
|
9898
|
-
vErrors = [
|
|
10183
|
+
vErrors = [err104];
|
|
9899
10184
|
} else {
|
|
9900
|
-
vErrors.push(
|
|
10185
|
+
vErrors.push(err104);
|
|
9901
10186
|
}
|
|
9902
10187
|
errors++;
|
|
9903
10188
|
}
|
|
@@ -9910,20 +10195,20 @@ function validate35(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
9910
10195
|
let data51 = data45.agent;
|
|
9911
10196
|
const _errs137 = errors;
|
|
9912
10197
|
if (typeof data51 !== "string") {
|
|
9913
|
-
const
|
|
10198
|
+
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" };
|
|
9914
10199
|
if (vErrors === null) {
|
|
9915
|
-
vErrors = [
|
|
10200
|
+
vErrors = [err105];
|
|
9916
10201
|
} else {
|
|
9917
|
-
vErrors.push(
|
|
10202
|
+
vErrors.push(err105);
|
|
9918
10203
|
}
|
|
9919
10204
|
errors++;
|
|
9920
10205
|
}
|
|
9921
10206
|
if (!(data51 === "claude_code" || data51 === "codex" || data51 === "cursor" || data51 === "hermes")) {
|
|
9922
|
-
const
|
|
10207
|
+
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" };
|
|
9923
10208
|
if (vErrors === null) {
|
|
9924
|
-
vErrors = [
|
|
10209
|
+
vErrors = [err106];
|
|
9925
10210
|
} else {
|
|
9926
|
-
vErrors.push(
|
|
10211
|
+
vErrors.push(err106);
|
|
9927
10212
|
}
|
|
9928
10213
|
errors++;
|
|
9929
10214
|
}
|
|
@@ -9935,11 +10220,11 @@ function validate35(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
9935
10220
|
}
|
|
9936
10221
|
}
|
|
9937
10222
|
} else {
|
|
9938
|
-
const
|
|
10223
|
+
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" };
|
|
9939
10224
|
if (vErrors === null) {
|
|
9940
|
-
vErrors = [
|
|
10225
|
+
vErrors = [err107];
|
|
9941
10226
|
} else {
|
|
9942
|
-
vErrors.push(
|
|
10227
|
+
vErrors.push(err107);
|
|
9943
10228
|
}
|
|
9944
10229
|
errors++;
|
|
9945
10230
|
}
|
|
@@ -9961,22 +10246,22 @@ function validate35(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
9961
10246
|
if (data45 && typeof data45 == "object" && !Array.isArray(data45)) {
|
|
9962
10247
|
let missing13;
|
|
9963
10248
|
if (data45.kind === void 0 && (missing13 = "kind") || data45.credential === void 0 && (missing13 = "credential")) {
|
|
9964
|
-
const
|
|
10249
|
+
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 + "'" };
|
|
9965
10250
|
if (vErrors === null) {
|
|
9966
|
-
vErrors = [
|
|
10251
|
+
vErrors = [err108];
|
|
9967
10252
|
} else {
|
|
9968
|
-
vErrors.push(
|
|
10253
|
+
vErrors.push(err108);
|
|
9969
10254
|
}
|
|
9970
10255
|
errors++;
|
|
9971
10256
|
} else {
|
|
9972
10257
|
const _errs141 = errors;
|
|
9973
10258
|
for (const key7 in data45) {
|
|
9974
10259
|
if (!(key7 === "kind" || key7 === "credential")) {
|
|
9975
|
-
const
|
|
10260
|
+
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" };
|
|
9976
10261
|
if (vErrors === null) {
|
|
9977
|
-
vErrors = [
|
|
10262
|
+
vErrors = [err109];
|
|
9978
10263
|
} else {
|
|
9979
|
-
vErrors.push(
|
|
10264
|
+
vErrors.push(err109);
|
|
9980
10265
|
}
|
|
9981
10266
|
errors++;
|
|
9982
10267
|
break;
|
|
@@ -9987,20 +10272,20 @@ function validate35(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
9987
10272
|
let data52 = data45.kind;
|
|
9988
10273
|
const _errs142 = errors;
|
|
9989
10274
|
if (typeof data52 !== "string") {
|
|
9990
|
-
const
|
|
10275
|
+
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" };
|
|
9991
10276
|
if (vErrors === null) {
|
|
9992
|
-
vErrors = [
|
|
10277
|
+
vErrors = [err110];
|
|
9993
10278
|
} else {
|
|
9994
|
-
vErrors.push(
|
|
10279
|
+
vErrors.push(err110);
|
|
9995
10280
|
}
|
|
9996
10281
|
errors++;
|
|
9997
10282
|
}
|
|
9998
10283
|
if ("credential" !== data52) {
|
|
9999
|
-
const
|
|
10284
|
+
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" };
|
|
10000
10285
|
if (vErrors === null) {
|
|
10001
|
-
vErrors = [
|
|
10286
|
+
vErrors = [err111];
|
|
10002
10287
|
} else {
|
|
10003
|
-
vErrors.push(
|
|
10288
|
+
vErrors.push(err111);
|
|
10004
10289
|
}
|
|
10005
10290
|
errors++;
|
|
10006
10291
|
}
|
|
@@ -10013,20 +10298,20 @@ function validate35(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
10013
10298
|
let data53 = data45.credential;
|
|
10014
10299
|
const _errs144 = errors;
|
|
10015
10300
|
if (typeof data53 !== "string") {
|
|
10016
|
-
const
|
|
10301
|
+
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" };
|
|
10017
10302
|
if (vErrors === null) {
|
|
10018
|
-
vErrors = [
|
|
10303
|
+
vErrors = [err112];
|
|
10019
10304
|
} else {
|
|
10020
|
-
vErrors.push(
|
|
10305
|
+
vErrors.push(err112);
|
|
10021
10306
|
}
|
|
10022
10307
|
errors++;
|
|
10023
10308
|
}
|
|
10024
10309
|
if (!(data53 === "workos_jwt" || data53 === "workos_api_key" || data53 === "service_token")) {
|
|
10025
|
-
const
|
|
10310
|
+
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" };
|
|
10026
10311
|
if (vErrors === null) {
|
|
10027
|
-
vErrors = [
|
|
10312
|
+
vErrors = [err113];
|
|
10028
10313
|
} else {
|
|
10029
|
-
vErrors.push(
|
|
10314
|
+
vErrors.push(err113);
|
|
10030
10315
|
}
|
|
10031
10316
|
errors++;
|
|
10032
10317
|
}
|
|
@@ -10038,11 +10323,11 @@ function validate35(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
10038
10323
|
}
|
|
10039
10324
|
}
|
|
10040
10325
|
} else {
|
|
10041
|
-
const
|
|
10326
|
+
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" };
|
|
10042
10327
|
if (vErrors === null) {
|
|
10043
|
-
vErrors = [
|
|
10328
|
+
vErrors = [err114];
|
|
10044
10329
|
} else {
|
|
10045
|
-
vErrors.push(
|
|
10330
|
+
vErrors.push(err114);
|
|
10046
10331
|
}
|
|
10047
10332
|
errors++;
|
|
10048
10333
|
}
|
|
@@ -10063,11 +10348,11 @@ function validate35(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
10063
10348
|
}
|
|
10064
10349
|
}
|
|
10065
10350
|
if (!valid24) {
|
|
10066
|
-
const
|
|
10351
|
+
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" };
|
|
10067
10352
|
if (vErrors === null) {
|
|
10068
|
-
vErrors = [
|
|
10353
|
+
vErrors = [err115];
|
|
10069
10354
|
} else {
|
|
10070
|
-
vErrors.push(
|
|
10355
|
+
vErrors.push(err115);
|
|
10071
10356
|
}
|
|
10072
10357
|
errors++;
|
|
10073
10358
|
} else {
|
|
@@ -10086,11 +10371,11 @@ function validate35(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
10086
10371
|
}
|
|
10087
10372
|
}
|
|
10088
10373
|
} else {
|
|
10089
|
-
const
|
|
10374
|
+
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" };
|
|
10090
10375
|
if (vErrors === null) {
|
|
10091
|
-
vErrors = [
|
|
10376
|
+
vErrors = [err116];
|
|
10092
10377
|
} else {
|
|
10093
|
-
vErrors.push(
|
|
10378
|
+
vErrors.push(err116);
|
|
10094
10379
|
}
|
|
10095
10380
|
errors++;
|
|
10096
10381
|
}
|
|
@@ -10103,11 +10388,11 @@ function validate35(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
10103
10388
|
}
|
|
10104
10389
|
}
|
|
10105
10390
|
} else {
|
|
10106
|
-
const
|
|
10391
|
+
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" };
|
|
10107
10392
|
if (vErrors === null) {
|
|
10108
|
-
vErrors = [
|
|
10393
|
+
vErrors = [err117];
|
|
10109
10394
|
} else {
|
|
10110
|
-
vErrors.push(
|
|
10395
|
+
vErrors.push(err117);
|
|
10111
10396
|
}
|
|
10112
10397
|
errors++;
|
|
10113
10398
|
}
|
|
@@ -10127,11 +10412,11 @@ function validate35(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
10127
10412
|
for (let i9 = 0; i9 < len9; i9++) {
|
|
10128
10413
|
const _errs148 = errors;
|
|
10129
10414
|
if (typeof data54[i9] !== "string") {
|
|
10130
|
-
const
|
|
10415
|
+
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" };
|
|
10131
10416
|
if (vErrors === null) {
|
|
10132
|
-
vErrors = [
|
|
10417
|
+
vErrors = [err118];
|
|
10133
10418
|
} else {
|
|
10134
|
-
vErrors.push(
|
|
10419
|
+
vErrors.push(err118);
|
|
10135
10420
|
}
|
|
10136
10421
|
errors++;
|
|
10137
10422
|
}
|
|
@@ -10141,11 +10426,11 @@ function validate35(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
10141
10426
|
}
|
|
10142
10427
|
}
|
|
10143
10428
|
} else {
|
|
10144
|
-
const
|
|
10429
|
+
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" };
|
|
10145
10430
|
if (vErrors === null) {
|
|
10146
|
-
vErrors = [
|
|
10431
|
+
vErrors = [err119];
|
|
10147
10432
|
} else {
|
|
10148
|
-
vErrors.push(
|
|
10433
|
+
vErrors.push(err119);
|
|
10149
10434
|
}
|
|
10150
10435
|
errors++;
|
|
10151
10436
|
}
|
|
@@ -10161,11 +10446,11 @@ function validate35(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
10161
10446
|
}
|
|
10162
10447
|
}
|
|
10163
10448
|
} else {
|
|
10164
|
-
const
|
|
10449
|
+
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" };
|
|
10165
10450
|
if (vErrors === null) {
|
|
10166
|
-
vErrors = [
|
|
10451
|
+
vErrors = [err120];
|
|
10167
10452
|
} else {
|
|
10168
|
-
vErrors.push(
|
|
10453
|
+
vErrors.push(err120);
|
|
10169
10454
|
}
|
|
10170
10455
|
errors++;
|
|
10171
10456
|
}
|
|
@@ -10178,11 +10463,11 @@ function validate35(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
10178
10463
|
}
|
|
10179
10464
|
}
|
|
10180
10465
|
if (!valid1) {
|
|
10181
|
-
const
|
|
10466
|
+
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" };
|
|
10182
10467
|
if (vErrors === null) {
|
|
10183
|
-
vErrors = [
|
|
10468
|
+
vErrors = [err121];
|
|
10184
10469
|
} else {
|
|
10185
|
-
vErrors.push(
|
|
10470
|
+
vErrors.push(err121);
|
|
10186
10471
|
}
|
|
10187
10472
|
errors++;
|
|
10188
10473
|
validate35.errors = vErrors;
|
|
@@ -10202,7 +10487,7 @@ function validate35(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
10202
10487
|
return errors === 0;
|
|
10203
10488
|
}
|
|
10204
10489
|
validate35.evaluated = { "dynamicProps": true, "dynamicItems": false };
|
|
10205
|
-
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": {} }] };
|
|
10490
|
+
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": {} }] };
|
|
10206
10491
|
function validate36(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
10207
10492
|
;
|
|
10208
10493
|
let vErrors = null;
|
|
@@ -10349,13 +10634,23 @@ function validate36(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
10349
10634
|
vErrors.push(err9);
|
|
10350
10635
|
}
|
|
10351
10636
|
errors++;
|
|
10637
|
+
} else {
|
|
10638
|
+
if (!pattern4.test(data3)) {
|
|
10639
|
+
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}$"' };
|
|
10640
|
+
if (vErrors === null) {
|
|
10641
|
+
vErrors = [err10];
|
|
10642
|
+
} else {
|
|
10643
|
+
vErrors.push(err10);
|
|
10644
|
+
}
|
|
10645
|
+
errors++;
|
|
10646
|
+
}
|
|
10352
10647
|
}
|
|
10353
10648
|
} else {
|
|
10354
|
-
const
|
|
10649
|
+
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" };
|
|
10355
10650
|
if (vErrors === null) {
|
|
10356
|
-
vErrors = [
|
|
10651
|
+
vErrors = [err11];
|
|
10357
10652
|
} else {
|
|
10358
|
-
vErrors.push(
|
|
10653
|
+
vErrors.push(err11);
|
|
10359
10654
|
}
|
|
10360
10655
|
errors++;
|
|
10361
10656
|
}
|
|
@@ -10366,15 +10661,28 @@ function validate36(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
10366
10661
|
}
|
|
10367
10662
|
if (valid3) {
|
|
10368
10663
|
if (data.shortId !== void 0) {
|
|
10664
|
+
let data4 = data.shortId;
|
|
10369
10665
|
const _errs16 = errors;
|
|
10370
|
-
if (
|
|
10371
|
-
|
|
10372
|
-
|
|
10373
|
-
|
|
10666
|
+
if (errors === _errs16) {
|
|
10667
|
+
if (typeof data4 === "string") {
|
|
10668
|
+
if (!pattern5.test(data4)) {
|
|
10669
|
+
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}$"' };
|
|
10670
|
+
if (vErrors === null) {
|
|
10671
|
+
vErrors = [err12];
|
|
10672
|
+
} else {
|
|
10673
|
+
vErrors.push(err12);
|
|
10674
|
+
}
|
|
10675
|
+
errors++;
|
|
10676
|
+
}
|
|
10374
10677
|
} else {
|
|
10375
|
-
|
|
10678
|
+
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" };
|
|
10679
|
+
if (vErrors === null) {
|
|
10680
|
+
vErrors = [err13];
|
|
10681
|
+
} else {
|
|
10682
|
+
vErrors.push(err13);
|
|
10683
|
+
}
|
|
10684
|
+
errors++;
|
|
10376
10685
|
}
|
|
10377
|
-
errors++;
|
|
10378
10686
|
}
|
|
10379
10687
|
var valid3 = _errs16 === errors;
|
|
10380
10688
|
} else {
|
|
@@ -10385,20 +10693,20 @@ function validate36(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
10385
10693
|
let data5 = data.stage;
|
|
10386
10694
|
const _errs18 = errors;
|
|
10387
10695
|
if (typeof data5 !== "string") {
|
|
10388
|
-
const
|
|
10696
|
+
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" };
|
|
10389
10697
|
if (vErrors === null) {
|
|
10390
|
-
vErrors = [
|
|
10698
|
+
vErrors = [err14];
|
|
10391
10699
|
} else {
|
|
10392
|
-
vErrors.push(
|
|
10700
|
+
vErrors.push(err14);
|
|
10393
10701
|
}
|
|
10394
10702
|
errors++;
|
|
10395
10703
|
}
|
|
10396
10704
|
if (!(data5 === "draft" || data5 === "provisional" || data5 === "adopted" || data5 === "superseded" || data5 === "abandoned")) {
|
|
10397
|
-
const
|
|
10705
|
+
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" };
|
|
10398
10706
|
if (vErrors === null) {
|
|
10399
|
-
vErrors = [
|
|
10707
|
+
vErrors = [err15];
|
|
10400
10708
|
} else {
|
|
10401
|
-
vErrors.push(
|
|
10709
|
+
vErrors.push(err15);
|
|
10402
10710
|
}
|
|
10403
10711
|
errors++;
|
|
10404
10712
|
}
|
|
@@ -10411,11 +10719,11 @@ function validate36(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
10411
10719
|
}
|
|
10412
10720
|
}
|
|
10413
10721
|
} else {
|
|
10414
|
-
const
|
|
10722
|
+
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" };
|
|
10415
10723
|
if (vErrors === null) {
|
|
10416
|
-
vErrors = [
|
|
10724
|
+
vErrors = [err16];
|
|
10417
10725
|
} else {
|
|
10418
|
-
vErrors.push(
|
|
10726
|
+
vErrors.push(err16);
|
|
10419
10727
|
}
|
|
10420
10728
|
errors++;
|
|
10421
10729
|
}
|
|
@@ -10428,11 +10736,11 @@ function validate36(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
10428
10736
|
}
|
|
10429
10737
|
}
|
|
10430
10738
|
if (!valid1) {
|
|
10431
|
-
const
|
|
10739
|
+
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" };
|
|
10432
10740
|
if (vErrors === null) {
|
|
10433
|
-
vErrors = [
|
|
10741
|
+
vErrors = [err17];
|
|
10434
10742
|
} else {
|
|
10435
|
-
vErrors.push(
|
|
10743
|
+
vErrors.push(err17);
|
|
10436
10744
|
}
|
|
10437
10745
|
errors++;
|
|
10438
10746
|
validate36.errors = vErrors;
|
|
@@ -10503,7 +10811,7 @@ function validate37(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
10503
10811
|
return errors === 0;
|
|
10504
10812
|
}
|
|
10505
10813
|
validate37.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
|
|
10506
|
-
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": {} };
|
|
10814
|
+
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": {} };
|
|
10507
10815
|
function validate38(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
10508
10816
|
;
|
|
10509
10817
|
let vErrors = null;
|
|
@@ -10548,6 +10856,11 @@ function validate38(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
10548
10856
|
if (func1(data2) < 1) {
|
|
10549
10857
|
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" }];
|
|
10550
10858
|
return false;
|
|
10859
|
+
} else {
|
|
10860
|
+
if (!pattern4.test(data2)) {
|
|
10861
|
+
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}$"' }];
|
|
10862
|
+
return false;
|
|
10863
|
+
}
|
|
10551
10864
|
}
|
|
10552
10865
|
} else {
|
|
10553
10866
|
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" }];
|
|
@@ -10707,7 +11020,7 @@ function validate38(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
10707
11020
|
return errors === 0;
|
|
10708
11021
|
}
|
|
10709
11022
|
validate38.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
|
|
10710
|
-
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"] };
|
|
11023
|
+
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"] };
|
|
10711
11024
|
function validate39(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
10712
11025
|
;
|
|
10713
11026
|
let vErrors = null;
|
|
@@ -10752,6 +11065,11 @@ function validate39(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
10752
11065
|
if (func1(data2) < 1) {
|
|
10753
11066
|
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" }];
|
|
10754
11067
|
return false;
|
|
11068
|
+
} else {
|
|
11069
|
+
if (!pattern4.test(data2)) {
|
|
11070
|
+
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}$"' }];
|
|
11071
|
+
return false;
|
|
11072
|
+
}
|
|
10755
11073
|
}
|
|
10756
11074
|
} else {
|
|
10757
11075
|
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" }];
|
|
@@ -10764,10 +11082,18 @@ function validate39(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
10764
11082
|
}
|
|
10765
11083
|
if (valid3) {
|
|
10766
11084
|
if (data1.shortId !== void 0) {
|
|
11085
|
+
let data3 = data1.shortId;
|
|
10767
11086
|
const _errs11 = errors;
|
|
10768
|
-
if (
|
|
10769
|
-
|
|
10770
|
-
|
|
11087
|
+
if (errors === _errs11) {
|
|
11088
|
+
if (typeof data3 === "string") {
|
|
11089
|
+
if (!pattern5.test(data3)) {
|
|
11090
|
+
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}$"' }];
|
|
11091
|
+
return false;
|
|
11092
|
+
}
|
|
11093
|
+
} else {
|
|
11094
|
+
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" }];
|
|
11095
|
+
return false;
|
|
11096
|
+
}
|
|
10771
11097
|
}
|
|
10772
11098
|
var valid3 = _errs11 === errors;
|
|
10773
11099
|
} else {
|
|
@@ -11102,8 +11428,8 @@ function validate39(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
11102
11428
|
return errors === 0;
|
|
11103
11429
|
}
|
|
11104
11430
|
validate39.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
|
|
11105
|
-
var
|
|
11106
|
-
var
|
|
11431
|
+
var pattern34 = new RegExp("^[a-zA-Z0-9]{1,64}$", "u");
|
|
11432
|
+
var pattern35 = new RegExp("^[a-f0-9]{64}$", "u");
|
|
11107
11433
|
function validate40(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
11108
11434
|
;
|
|
11109
11435
|
let vErrors = null;
|
|
@@ -11137,7 +11463,7 @@ function validate40(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
11137
11463
|
const _errs3 = errors;
|
|
11138
11464
|
if (errors === _errs3) {
|
|
11139
11465
|
if (typeof data0 === "string") {
|
|
11140
|
-
if (!
|
|
11466
|
+
if (!pattern34.test(data0)) {
|
|
11141
11467
|
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}$"' }];
|
|
11142
11468
|
return false;
|
|
11143
11469
|
}
|
|
@@ -11181,7 +11507,7 @@ function validate40(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
11181
11507
|
const _errs7 = errors;
|
|
11182
11508
|
if (errors === _errs7) {
|
|
11183
11509
|
if (typeof data2 === "string") {
|
|
11184
|
-
if (!
|
|
11510
|
+
if (!pattern35.test(data2)) {
|
|
11185
11511
|
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}$"' }];
|
|
11186
11512
|
return false;
|
|
11187
11513
|
}
|
|
@@ -11207,7 +11533,7 @@ function validate40(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
11207
11533
|
return errors === 0;
|
|
11208
11534
|
}
|
|
11209
11535
|
validate40.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
|
|
11210
|
-
var
|
|
11536
|
+
var pattern38 = new RegExp("\\S", "u");
|
|
11211
11537
|
function validate41(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
11212
11538
|
;
|
|
11213
11539
|
let vErrors = null;
|
|
@@ -11254,7 +11580,7 @@ function validate41(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
11254
11580
|
const _errs5 = errors;
|
|
11255
11581
|
if (errors === _errs5) {
|
|
11256
11582
|
if (typeof data0 === "string") {
|
|
11257
|
-
if (!
|
|
11583
|
+
if (!pattern34.test(data0)) {
|
|
11258
11584
|
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}$"' };
|
|
11259
11585
|
if (vErrors === null) {
|
|
11260
11586
|
vErrors = [err2];
|
|
@@ -11395,7 +11721,7 @@ function validate41(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
11395
11721
|
const _errs14 = errors;
|
|
11396
11722
|
if (errors === _errs14) {
|
|
11397
11723
|
if (typeof data3 === "string") {
|
|
11398
|
-
if (!
|
|
11724
|
+
if (!pattern34.test(data3)) {
|
|
11399
11725
|
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}$"' };
|
|
11400
11726
|
if (vErrors === null) {
|
|
11401
11727
|
vErrors = [err12];
|
|
@@ -11508,7 +11834,7 @@ function validate41(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
11508
11834
|
}
|
|
11509
11835
|
errors++;
|
|
11510
11836
|
} else {
|
|
11511
|
-
if (!
|
|
11837
|
+
if (!pattern38.test(data6)) {
|
|
11512
11838
|
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"' };
|
|
11513
11839
|
if (vErrors === null) {
|
|
11514
11840
|
vErrors = [err21];
|
|
@@ -11619,7 +11945,7 @@ function validate42(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
11619
11945
|
const _errs3 = errors;
|
|
11620
11946
|
if (errors === _errs3) {
|
|
11621
11947
|
if (typeof data0 === "string") {
|
|
11622
|
-
if (!
|
|
11948
|
+
if (!pattern34.test(data0)) {
|
|
11623
11949
|
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}$"' }];
|
|
11624
11950
|
return false;
|
|
11625
11951
|
}
|
|
@@ -11669,7 +11995,7 @@ function validate42(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
11669
11995
|
return errors === 0;
|
|
11670
11996
|
}
|
|
11671
11997
|
validate42.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
|
|
11672
|
-
var
|
|
11998
|
+
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");
|
|
11673
11999
|
function validate43(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
11674
12000
|
;
|
|
11675
12001
|
let vErrors = null;
|
|
@@ -11720,7 +12046,7 @@ function validate43(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
11720
12046
|
if (errors === _errs5) {
|
|
11721
12047
|
if (errors === _errs5) {
|
|
11722
12048
|
if (typeof data1 === "string") {
|
|
11723
|
-
if (!
|
|
12049
|
+
if (!pattern40.test(data1)) {
|
|
11724
12050
|
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)$"' }];
|
|
11725
12051
|
return false;
|
|
11726
12052
|
}
|
|
@@ -11749,7 +12075,7 @@ validate43.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": f
|
|
|
11749
12075
|
var isDemoStatusResponse = validate44;
|
|
11750
12076
|
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 };
|
|
11751
12077
|
var func34 = Object.prototype.hasOwnProperty;
|
|
11752
|
-
var
|
|
12078
|
+
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");
|
|
11753
12079
|
function validate44(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
11754
12080
|
;
|
|
11755
12081
|
let vErrors = null;
|
|
@@ -11831,7 +12157,7 @@ function validate44(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
11831
12157
|
const _errs9 = errors;
|
|
11832
12158
|
if (errors === _errs9) {
|
|
11833
12159
|
if (typeof data3 === "string") {
|
|
11834
|
-
if (!
|
|
12160
|
+
if (!pattern34.test(data3)) {
|
|
11835
12161
|
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}$"' }];
|
|
11836
12162
|
return false;
|
|
11837
12163
|
}
|
|
@@ -11949,7 +12275,7 @@ function validate44(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
11949
12275
|
if (errors === _errs22) {
|
|
11950
12276
|
if (errors === _errs22) {
|
|
11951
12277
|
if (typeof data9 === "string") {
|
|
11952
|
-
if (!
|
|
12278
|
+
if (!pattern42.test(data9)) {
|
|
11953
12279
|
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,}$"` }];
|
|
11954
12280
|
return false;
|
|
11955
12281
|
}
|
|
@@ -12087,7 +12413,7 @@ function validate44(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
12087
12413
|
const _errs36 = errors;
|
|
12088
12414
|
if (errors === _errs36) {
|
|
12089
12415
|
if (typeof data16 === "string") {
|
|
12090
|
-
if (!
|
|
12416
|
+
if (!pattern35.test(data16)) {
|
|
12091
12417
|
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}$"' }];
|
|
12092
12418
|
return false;
|
|
12093
12419
|
}
|
|
@@ -12290,15 +12616,28 @@ function validate45(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
12290
12616
|
}
|
|
12291
12617
|
if (valid3) {
|
|
12292
12618
|
if (data3.decisionId !== void 0) {
|
|
12619
|
+
let data8 = data3.decisionId;
|
|
12293
12620
|
const _errs22 = errors;
|
|
12294
|
-
if (
|
|
12295
|
-
|
|
12296
|
-
|
|
12297
|
-
|
|
12621
|
+
if (errors === _errs22) {
|
|
12622
|
+
if (typeof data8 === "string") {
|
|
12623
|
+
if (!pattern4.test(data8)) {
|
|
12624
|
+
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}$"' };
|
|
12625
|
+
if (vErrors === null) {
|
|
12626
|
+
vErrors = [err6];
|
|
12627
|
+
} else {
|
|
12628
|
+
vErrors.push(err6);
|
|
12629
|
+
}
|
|
12630
|
+
errors++;
|
|
12631
|
+
}
|
|
12298
12632
|
} else {
|
|
12299
|
-
|
|
12633
|
+
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" };
|
|
12634
|
+
if (vErrors === null) {
|
|
12635
|
+
vErrors = [err7];
|
|
12636
|
+
} else {
|
|
12637
|
+
vErrors.push(err7);
|
|
12638
|
+
}
|
|
12639
|
+
errors++;
|
|
12300
12640
|
}
|
|
12301
|
-
errors++;
|
|
12302
12641
|
}
|
|
12303
12642
|
var valid3 = _errs22 === errors;
|
|
12304
12643
|
} else {
|
|
@@ -12306,15 +12645,28 @@ function validate45(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
12306
12645
|
}
|
|
12307
12646
|
if (valid3) {
|
|
12308
12647
|
if (data3.decisionShortId !== void 0) {
|
|
12648
|
+
let data9 = data3.decisionShortId;
|
|
12309
12649
|
const _errs24 = errors;
|
|
12310
|
-
if (
|
|
12311
|
-
|
|
12312
|
-
|
|
12313
|
-
|
|
12650
|
+
if (errors === _errs24) {
|
|
12651
|
+
if (typeof data9 === "string") {
|
|
12652
|
+
if (!pattern5.test(data9)) {
|
|
12653
|
+
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}$"' };
|
|
12654
|
+
if (vErrors === null) {
|
|
12655
|
+
vErrors = [err8];
|
|
12656
|
+
} else {
|
|
12657
|
+
vErrors.push(err8);
|
|
12658
|
+
}
|
|
12659
|
+
errors++;
|
|
12660
|
+
}
|
|
12314
12661
|
} else {
|
|
12315
|
-
|
|
12662
|
+
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" };
|
|
12663
|
+
if (vErrors === null) {
|
|
12664
|
+
vErrors = [err9];
|
|
12665
|
+
} else {
|
|
12666
|
+
vErrors.push(err9);
|
|
12667
|
+
}
|
|
12668
|
+
errors++;
|
|
12316
12669
|
}
|
|
12317
|
-
errors++;
|
|
12318
12670
|
}
|
|
12319
12671
|
var valid3 = _errs24 === errors;
|
|
12320
12672
|
} else {
|
|
@@ -12328,11 +12680,11 @@ function validate45(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
12328
12680
|
}
|
|
12329
12681
|
}
|
|
12330
12682
|
} else {
|
|
12331
|
-
const
|
|
12683
|
+
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" };
|
|
12332
12684
|
if (vErrors === null) {
|
|
12333
|
-
vErrors = [
|
|
12685
|
+
vErrors = [err10];
|
|
12334
12686
|
} else {
|
|
12335
|
-
vErrors.push(
|
|
12687
|
+
vErrors.push(err10);
|
|
12336
12688
|
}
|
|
12337
12689
|
errors++;
|
|
12338
12690
|
}
|
|
@@ -12341,22 +12693,22 @@ function validate45(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
12341
12693
|
valid2 = valid2 || _valid0;
|
|
12342
12694
|
const _errs26 = errors;
|
|
12343
12695
|
if (data3 !== null) {
|
|
12344
|
-
const
|
|
12696
|
+
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" };
|
|
12345
12697
|
if (vErrors === null) {
|
|
12346
|
-
vErrors = [
|
|
12698
|
+
vErrors = [err11];
|
|
12347
12699
|
} else {
|
|
12348
|
-
vErrors.push(
|
|
12700
|
+
vErrors.push(err11);
|
|
12349
12701
|
}
|
|
12350
12702
|
errors++;
|
|
12351
12703
|
}
|
|
12352
12704
|
var _valid0 = _errs26 === errors;
|
|
12353
12705
|
valid2 = valid2 || _valid0;
|
|
12354
12706
|
if (!valid2) {
|
|
12355
|
-
const
|
|
12707
|
+
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" };
|
|
12356
12708
|
if (vErrors === null) {
|
|
12357
|
-
vErrors = [
|
|
12709
|
+
vErrors = [err12];
|
|
12358
12710
|
} else {
|
|
12359
|
-
vErrors.push(
|
|
12711
|
+
vErrors.push(err12);
|
|
12360
12712
|
}
|
|
12361
12713
|
errors++;
|
|
12362
12714
|
validate45.errors = vErrors;
|
|
@@ -12990,8 +13342,7 @@ function validate48(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
12990
13342
|
return errors === 0;
|
|
12991
13343
|
}
|
|
12992
13344
|
validate48.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
|
|
12993
|
-
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"] };
|
|
12994
|
-
var pattern14 = new RegExp("^[0-9a-f]{8}$", "u");
|
|
13345
|
+
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"] };
|
|
12995
13346
|
function validate49(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
12996
13347
|
;
|
|
12997
13348
|
let vErrors = null;
|
|
@@ -13330,7 +13681,7 @@ function validate49(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
13330
13681
|
const _errs27 = errors;
|
|
13331
13682
|
if (errors === _errs27) {
|
|
13332
13683
|
if (typeof data9 === "string") {
|
|
13333
|
-
if (!
|
|
13684
|
+
if (!pattern5.test(data9)) {
|
|
13334
13685
|
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}$"' };
|
|
13335
13686
|
if (vErrors === null) {
|
|
13336
13687
|
vErrors = [err24];
|
|
@@ -13376,14 +13727,24 @@ function validate49(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
13376
13727
|
vErrors.push(err27);
|
|
13377
13728
|
}
|
|
13378
13729
|
errors++;
|
|
13730
|
+
} else {
|
|
13731
|
+
if (!pattern4.test(data10)) {
|
|
13732
|
+
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}$"' };
|
|
13733
|
+
if (vErrors === null) {
|
|
13734
|
+
vErrors = [err28];
|
|
13735
|
+
} else {
|
|
13736
|
+
vErrors.push(err28);
|
|
13737
|
+
}
|
|
13738
|
+
errors++;
|
|
13739
|
+
}
|
|
13379
13740
|
}
|
|
13380
13741
|
}
|
|
13381
13742
|
} else {
|
|
13382
|
-
const
|
|
13743
|
+
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" };
|
|
13383
13744
|
if (vErrors === null) {
|
|
13384
|
-
vErrors = [
|
|
13745
|
+
vErrors = [err29];
|
|
13385
13746
|
} else {
|
|
13386
|
-
vErrors.push(
|
|
13747
|
+
vErrors.push(err29);
|
|
13387
13748
|
}
|
|
13388
13749
|
errors++;
|
|
13389
13750
|
}
|
|
@@ -13396,11 +13757,11 @@ function validate49(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
13396
13757
|
if (data6.intent !== void 0) {
|
|
13397
13758
|
const _errs31 = errors;
|
|
13398
13759
|
if (typeof data6.intent !== "string") {
|
|
13399
|
-
const
|
|
13760
|
+
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" };
|
|
13400
13761
|
if (vErrors === null) {
|
|
13401
|
-
vErrors = [
|
|
13762
|
+
vErrors = [err30];
|
|
13402
13763
|
} else {
|
|
13403
|
-
vErrors.push(
|
|
13764
|
+
vErrors.push(err30);
|
|
13404
13765
|
}
|
|
13405
13766
|
errors++;
|
|
13406
13767
|
}
|
|
@@ -13412,11 +13773,11 @@ function validate49(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
13412
13773
|
if (data6.webUrl !== void 0) {
|
|
13413
13774
|
const _errs33 = errors;
|
|
13414
13775
|
if (typeof data6.webUrl !== "string") {
|
|
13415
|
-
const
|
|
13776
|
+
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" };
|
|
13416
13777
|
if (vErrors === null) {
|
|
13417
|
-
vErrors = [
|
|
13778
|
+
vErrors = [err31];
|
|
13418
13779
|
} else {
|
|
13419
|
-
vErrors.push(
|
|
13780
|
+
vErrors.push(err31);
|
|
13420
13781
|
}
|
|
13421
13782
|
errors++;
|
|
13422
13783
|
}
|
|
@@ -13429,20 +13790,20 @@ function validate49(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
13429
13790
|
let data13 = data6.kind;
|
|
13430
13791
|
const _errs35 = errors;
|
|
13431
13792
|
if (typeof data13 !== "string") {
|
|
13432
|
-
const
|
|
13793
|
+
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" };
|
|
13433
13794
|
if (vErrors === null) {
|
|
13434
|
-
vErrors = [
|
|
13795
|
+
vErrors = [err32];
|
|
13435
13796
|
} else {
|
|
13436
|
-
vErrors.push(
|
|
13797
|
+
vErrors.push(err32);
|
|
13437
13798
|
}
|
|
13438
13799
|
errors++;
|
|
13439
13800
|
}
|
|
13440
13801
|
if (!(data13 === "confirm_prompt" || data13 === "publish_prompt")) {
|
|
13441
|
-
const
|
|
13802
|
+
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" };
|
|
13442
13803
|
if (vErrors === null) {
|
|
13443
|
-
vErrors = [
|
|
13804
|
+
vErrors = [err33];
|
|
13444
13805
|
} else {
|
|
13445
|
-
vErrors.push(
|
|
13806
|
+
vErrors.push(err33);
|
|
13446
13807
|
}
|
|
13447
13808
|
errors++;
|
|
13448
13809
|
}
|
|
@@ -13458,11 +13819,11 @@ function validate49(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
13458
13819
|
}
|
|
13459
13820
|
}
|
|
13460
13821
|
} else {
|
|
13461
|
-
const
|
|
13822
|
+
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" };
|
|
13462
13823
|
if (vErrors === null) {
|
|
13463
|
-
vErrors = [
|
|
13824
|
+
vErrors = [err34];
|
|
13464
13825
|
} else {
|
|
13465
|
-
vErrors.push(
|
|
13826
|
+
vErrors.push(err34);
|
|
13466
13827
|
}
|
|
13467
13828
|
errors++;
|
|
13468
13829
|
}
|
|
@@ -13475,11 +13836,11 @@ function validate49(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
13475
13836
|
}
|
|
13476
13837
|
}
|
|
13477
13838
|
} else {
|
|
13478
|
-
const
|
|
13839
|
+
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" };
|
|
13479
13840
|
if (vErrors === null) {
|
|
13480
|
-
vErrors = [
|
|
13841
|
+
vErrors = [err35];
|
|
13481
13842
|
} else {
|
|
13482
|
-
vErrors.push(
|
|
13843
|
+
vErrors.push(err35);
|
|
13483
13844
|
}
|
|
13484
13845
|
errors++;
|
|
13485
13846
|
}
|
|
@@ -13492,11 +13853,11 @@ function validate49(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
13492
13853
|
if (data.hasMore !== void 0) {
|
|
13493
13854
|
const _errs37 = errors;
|
|
13494
13855
|
if (typeof data.hasMore !== "boolean") {
|
|
13495
|
-
const
|
|
13856
|
+
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" };
|
|
13496
13857
|
if (vErrors === null) {
|
|
13497
|
-
vErrors = [
|
|
13858
|
+
vErrors = [err36];
|
|
13498
13859
|
} else {
|
|
13499
|
-
vErrors.push(
|
|
13860
|
+
vErrors.push(err36);
|
|
13500
13861
|
}
|
|
13501
13862
|
errors++;
|
|
13502
13863
|
}
|
|
@@ -13509,11 +13870,11 @@ function validate49(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
13509
13870
|
}
|
|
13510
13871
|
}
|
|
13511
13872
|
} else {
|
|
13512
|
-
const
|
|
13873
|
+
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" };
|
|
13513
13874
|
if (vErrors === null) {
|
|
13514
|
-
vErrors = [
|
|
13875
|
+
vErrors = [err37];
|
|
13515
13876
|
} else {
|
|
13516
|
-
vErrors.push(
|
|
13877
|
+
vErrors.push(err37);
|
|
13517
13878
|
}
|
|
13518
13879
|
errors++;
|
|
13519
13880
|
}
|
|
@@ -13530,11 +13891,11 @@ function validate49(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
13530
13891
|
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
13531
13892
|
let missing3;
|
|
13532
13893
|
if (data.protocolVersion === void 0 && (missing3 = "protocolVersion") || data.status === void 0 && (missing3 = "status") || data.reason === void 0 && (missing3 = "reason")) {
|
|
13533
|
-
const
|
|
13894
|
+
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 + "'" };
|
|
13534
13895
|
if (vErrors === null) {
|
|
13535
|
-
vErrors = [
|
|
13896
|
+
vErrors = [err38];
|
|
13536
13897
|
} else {
|
|
13537
|
-
vErrors.push(
|
|
13898
|
+
vErrors.push(err38);
|
|
13538
13899
|
}
|
|
13539
13900
|
errors++;
|
|
13540
13901
|
} else {
|
|
@@ -13542,31 +13903,31 @@ function validate49(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
13542
13903
|
let data15 = data.protocolVersion;
|
|
13543
13904
|
const _errs42 = errors;
|
|
13544
13905
|
if (!(typeof data15 == "number" && (!(data15 % 1) && !isNaN(data15)) && isFinite(data15))) {
|
|
13545
|
-
const
|
|
13906
|
+
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" };
|
|
13546
13907
|
if (vErrors === null) {
|
|
13547
|
-
vErrors = [
|
|
13908
|
+
vErrors = [err39];
|
|
13548
13909
|
} else {
|
|
13549
|
-
vErrors.push(
|
|
13910
|
+
vErrors.push(err39);
|
|
13550
13911
|
}
|
|
13551
13912
|
errors++;
|
|
13552
13913
|
}
|
|
13553
13914
|
if (errors === _errs42) {
|
|
13554
13915
|
if (typeof data15 == "number" && isFinite(data15)) {
|
|
13555
13916
|
if (data15 > 2 || isNaN(data15)) {
|
|
13556
|
-
const
|
|
13917
|
+
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" };
|
|
13557
13918
|
if (vErrors === null) {
|
|
13558
|
-
vErrors = [
|
|
13919
|
+
vErrors = [err40];
|
|
13559
13920
|
} else {
|
|
13560
|
-
vErrors.push(
|
|
13921
|
+
vErrors.push(err40);
|
|
13561
13922
|
}
|
|
13562
13923
|
errors++;
|
|
13563
13924
|
} else {
|
|
13564
13925
|
if (data15 < 1 || isNaN(data15)) {
|
|
13565
|
-
const
|
|
13926
|
+
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" };
|
|
13566
13927
|
if (vErrors === null) {
|
|
13567
|
-
vErrors = [
|
|
13928
|
+
vErrors = [err41];
|
|
13568
13929
|
} else {
|
|
13569
|
-
vErrors.push(
|
|
13930
|
+
vErrors.push(err41);
|
|
13570
13931
|
}
|
|
13571
13932
|
errors++;
|
|
13572
13933
|
}
|
|
@@ -13582,20 +13943,20 @@ function validate49(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
13582
13943
|
let data16 = data.status;
|
|
13583
13944
|
const _errs44 = errors;
|
|
13584
13945
|
if (typeof data16 !== "string") {
|
|
13585
|
-
const
|
|
13946
|
+
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" };
|
|
13586
13947
|
if (vErrors === null) {
|
|
13587
|
-
vErrors = [
|
|
13948
|
+
vErrors = [err42];
|
|
13588
13949
|
} else {
|
|
13589
|
-
vErrors.push(
|
|
13950
|
+
vErrors.push(err42);
|
|
13590
13951
|
}
|
|
13591
13952
|
errors++;
|
|
13592
13953
|
}
|
|
13593
13954
|
if ("unavailable" !== data16) {
|
|
13594
|
-
const
|
|
13955
|
+
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" };
|
|
13595
13956
|
if (vErrors === null) {
|
|
13596
|
-
vErrors = [
|
|
13957
|
+
vErrors = [err43];
|
|
13597
13958
|
} else {
|
|
13598
|
-
vErrors.push(
|
|
13959
|
+
vErrors.push(err43);
|
|
13599
13960
|
}
|
|
13600
13961
|
errors++;
|
|
13601
13962
|
}
|
|
@@ -13608,20 +13969,20 @@ function validate49(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
13608
13969
|
let data17 = data.reason;
|
|
13609
13970
|
const _errs46 = errors;
|
|
13610
13971
|
if (typeof data17 !== "string") {
|
|
13611
|
-
const
|
|
13972
|
+
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" };
|
|
13612
13973
|
if (vErrors === null) {
|
|
13613
|
-
vErrors = [
|
|
13974
|
+
vErrors = [err44];
|
|
13614
13975
|
} else {
|
|
13615
|
-
vErrors.push(
|
|
13976
|
+
vErrors.push(err44);
|
|
13616
13977
|
}
|
|
13617
13978
|
errors++;
|
|
13618
13979
|
}
|
|
13619
13980
|
if ("organization_unbound" !== data17) {
|
|
13620
|
-
const
|
|
13981
|
+
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" };
|
|
13621
13982
|
if (vErrors === null) {
|
|
13622
|
-
vErrors = [
|
|
13983
|
+
vErrors = [err45];
|
|
13623
13984
|
} else {
|
|
13624
|
-
vErrors.push(
|
|
13985
|
+
vErrors.push(err45);
|
|
13625
13986
|
}
|
|
13626
13987
|
errors++;
|
|
13627
13988
|
}
|
|
@@ -13633,11 +13994,11 @@ function validate49(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
13633
13994
|
}
|
|
13634
13995
|
}
|
|
13635
13996
|
} else {
|
|
13636
|
-
const
|
|
13997
|
+
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" };
|
|
13637
13998
|
if (vErrors === null) {
|
|
13638
|
-
vErrors = [
|
|
13999
|
+
vErrors = [err46];
|
|
13639
14000
|
} else {
|
|
13640
|
-
vErrors.push(
|
|
14001
|
+
vErrors.push(err46);
|
|
13641
14002
|
}
|
|
13642
14003
|
errors++;
|
|
13643
14004
|
}
|
|
@@ -13650,11 +14011,11 @@ function validate49(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
13650
14011
|
}
|
|
13651
14012
|
}
|
|
13652
14013
|
if (!valid1) {
|
|
13653
|
-
const
|
|
14014
|
+
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" };
|
|
13654
14015
|
if (vErrors === null) {
|
|
13655
|
-
vErrors = [
|
|
14016
|
+
vErrors = [err47];
|
|
13656
14017
|
} else {
|
|
13657
|
-
vErrors.push(
|
|
14018
|
+
vErrors.push(err47);
|
|
13658
14019
|
}
|
|
13659
14020
|
errors++;
|
|
13660
14021
|
validate49.errors = vErrors;
|
|
@@ -14386,8 +14747,8 @@ function validate51(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
14386
14747
|
return errors === 0;
|
|
14387
14748
|
}
|
|
14388
14749
|
validate51.evaluated = { "dynamicProps": true, "dynamicItems": false };
|
|
14389
|
-
var
|
|
14390
|
-
var
|
|
14750
|
+
var pattern48 = new RegExp("^[A-Za-z0-9]{1,128}$", "u");
|
|
14751
|
+
var pattern49 = new RegExp("^https:\\/\\/github\\.com\\/apps\\/primitive(?:-staging)?\\/installations\\/new\\?state=[0-9a-f]{64}$", "u");
|
|
14391
14752
|
function validate52(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
14392
14753
|
;
|
|
14393
14754
|
let vErrors = null;
|
|
@@ -14469,7 +14830,7 @@ function validate52(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
14469
14830
|
const _errs9 = errors;
|
|
14470
14831
|
if (errors === _errs9) {
|
|
14471
14832
|
if (typeof data3 === "string") {
|
|
14472
|
-
if (!
|
|
14833
|
+
if (!pattern48.test(data3)) {
|
|
14473
14834
|
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}$"' }];
|
|
14474
14835
|
return false;
|
|
14475
14836
|
}
|
|
@@ -14488,7 +14849,7 @@ function validate52(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
14488
14849
|
const _errs11 = errors;
|
|
14489
14850
|
if (errors === _errs11) {
|
|
14490
14851
|
if (typeof data4 === "string") {
|
|
14491
|
-
if (!
|
|
14852
|
+
if (!pattern49.test(data4)) {
|
|
14492
14853
|
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}$"' }];
|
|
14493
14854
|
return false;
|
|
14494
14855
|
}
|
|
@@ -14896,7 +15257,7 @@ function validate54(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
14896
15257
|
const _errs3 = errors;
|
|
14897
15258
|
if (errors === _errs3) {
|
|
14898
15259
|
if (typeof data0 === "string") {
|
|
14899
|
-
if (!
|
|
15260
|
+
if (!pattern48.test(data0)) {
|
|
14900
15261
|
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}$"' }];
|
|
14901
15262
|
return false;
|
|
14902
15263
|
}
|
|
@@ -16468,7 +16829,7 @@ function validate55(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
16468
16829
|
}
|
|
16469
16830
|
validate55.evaluated = { "dynamicProps": true, "dynamicItems": false };
|
|
16470
16831
|
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": {} };
|
|
16471
|
-
var
|
|
16832
|
+
var pattern51 = new RegExp("^[A-Za-z0-9_-]+$", "u");
|
|
16472
16833
|
function validate56(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
16473
16834
|
;
|
|
16474
16835
|
let vErrors = null;
|
|
@@ -16829,7 +17190,7 @@ function validate56(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
16829
17190
|
}
|
|
16830
17191
|
errors++;
|
|
16831
17192
|
} else {
|
|
16832
|
-
if (!
|
|
17193
|
+
if (!pattern51.test(data11)) {
|
|
16833
17194
|
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_-]+$"' };
|
|
16834
17195
|
if (vErrors === null) {
|
|
16835
17196
|
vErrors = [err22];
|
|
@@ -17354,7 +17715,7 @@ function validate56(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
17354
17715
|
}
|
|
17355
17716
|
errors++;
|
|
17356
17717
|
} else {
|
|
17357
|
-
if (!
|
|
17718
|
+
if (!pattern51.test(data26)) {
|
|
17358
17719
|
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_-]+$"' };
|
|
17359
17720
|
if (vErrors === null) {
|
|
17360
17721
|
vErrors = [err58];
|
|
@@ -17597,10 +17958,10 @@ function validate56(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
17597
17958
|
}
|
|
17598
17959
|
validate56.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
|
|
17599
17960
|
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"] };
|
|
17600
|
-
var
|
|
17601
|
-
var
|
|
17602
|
-
var
|
|
17603
|
-
var
|
|
17961
|
+
var pattern53 = new RegExp("^[A-Za-z0-9._:-]{1,128}$", "u");
|
|
17962
|
+
var pattern55 = new RegExp("^[A-Za-z0-9]{1,64}$", "u");
|
|
17963
|
+
var pattern56 = new RegExp("^(?!@?$)(?!\\/)(?!.*\\/$)(?!.*\\/\\/)(?!.*(?:^|\\/)\\.{1,2}(?:\\/|$))(?!.*(?:^|\\/)[^/]*\\.lock(?:\\/|$))(?!.*\\.\\.)(?!.*@\\{)(?!.*[~^:?*\\\\]).+$", "u");
|
|
17964
|
+
var pattern57 = new RegExp("^[A-Za-z0-9][A-Za-z0-9._+-]*$", "u");
|
|
17604
17965
|
function validate57(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
17605
17966
|
;
|
|
17606
17967
|
let vErrors = null;
|
|
@@ -17666,7 +18027,7 @@ function validate57(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
17666
18027
|
const _errs8 = errors;
|
|
17667
18028
|
if (errors === _errs8) {
|
|
17668
18029
|
if (typeof data2 === "string") {
|
|
17669
|
-
if (!
|
|
18030
|
+
if (!pattern53.test(data2)) {
|
|
17670
18031
|
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}$"' }];
|
|
17671
18032
|
return false;
|
|
17672
18033
|
}
|
|
@@ -17685,7 +18046,7 @@ function validate57(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
17685
18046
|
const _errs10 = errors;
|
|
17686
18047
|
if (errors === _errs10) {
|
|
17687
18048
|
if (typeof data3 === "string") {
|
|
17688
|
-
if (!
|
|
18049
|
+
if (!pattern53.test(data3)) {
|
|
17689
18050
|
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}$"' }];
|
|
17690
18051
|
return false;
|
|
17691
18052
|
}
|
|
@@ -17704,7 +18065,7 @@ function validate57(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
17704
18065
|
const _errs12 = errors;
|
|
17705
18066
|
if (errors === _errs12) {
|
|
17706
18067
|
if (typeof data4 === "string") {
|
|
17707
|
-
if (!
|
|
18068
|
+
if (!pattern55.test(data4)) {
|
|
17708
18069
|
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}$"' }];
|
|
17709
18070
|
return false;
|
|
17710
18071
|
}
|
|
@@ -17776,7 +18137,7 @@ function validate57(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
17776
18137
|
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" }];
|
|
17777
18138
|
return false;
|
|
17778
18139
|
} else {
|
|
17779
|
-
if (!
|
|
18140
|
+
if (!pattern56.test(data8)) {
|
|
17780
18141
|
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(?:\\/|$))(?!.*\\.\\.)(?!.*@\\{)(?!.*[~^:?*\\\\]).+$"' }];
|
|
17781
18142
|
return false;
|
|
17782
18143
|
}
|
|
@@ -17816,7 +18177,7 @@ function validate57(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
17816
18177
|
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" }];
|
|
17817
18178
|
return false;
|
|
17818
18179
|
} else {
|
|
17819
|
-
if (!
|
|
18180
|
+
if (!pattern57.test(data10)) {
|
|
17820
18181
|
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._+-]*$"' }];
|
|
17821
18182
|
return false;
|
|
17822
18183
|
}
|
|
@@ -17862,7 +18223,7 @@ function validate57(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
17862
18223
|
return errors === 0;
|
|
17863
18224
|
}
|
|
17864
18225
|
validate57.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
|
|
17865
|
-
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": {} };
|
|
18226
|
+
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": {} };
|
|
17866
18227
|
function validate58(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
17867
18228
|
;
|
|
17868
18229
|
let vErrors = null;
|
|
@@ -17903,7 +18264,7 @@ function validate58(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
17903
18264
|
const _errs5 = errors;
|
|
17904
18265
|
if (errors === _errs5) {
|
|
17905
18266
|
if (typeof data1 === "string") {
|
|
17906
|
-
if (!
|
|
18267
|
+
if (!pattern53.test(data1)) {
|
|
17907
18268
|
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}$"' }];
|
|
17908
18269
|
return false;
|
|
17909
18270
|
}
|
|
@@ -17973,10 +18334,18 @@ function validate58(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
17973
18334
|
return false;
|
|
17974
18335
|
} else {
|
|
17975
18336
|
if (data6.decisionId !== void 0) {
|
|
18337
|
+
let data7 = data6.decisionId;
|
|
17976
18338
|
const _errs18 = errors;
|
|
17977
|
-
if (
|
|
17978
|
-
|
|
17979
|
-
|
|
18339
|
+
if (errors === _errs18) {
|
|
18340
|
+
if (typeof data7 === "string") {
|
|
18341
|
+
if (!pattern4.test(data7)) {
|
|
18342
|
+
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}$"' }];
|
|
18343
|
+
return false;
|
|
18344
|
+
}
|
|
18345
|
+
} else {
|
|
18346
|
+
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" }];
|
|
18347
|
+
return false;
|
|
18348
|
+
}
|
|
17980
18349
|
}
|
|
17981
18350
|
var valid3 = _errs18 === errors;
|
|
17982
18351
|
} else {
|
|
@@ -17984,10 +18353,18 @@ function validate58(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
17984
18353
|
}
|
|
17985
18354
|
if (valid3) {
|
|
17986
18355
|
if (data6.shortId !== void 0) {
|
|
18356
|
+
let data8 = data6.shortId;
|
|
17987
18357
|
const _errs20 = errors;
|
|
17988
|
-
if (
|
|
17989
|
-
|
|
17990
|
-
|
|
18358
|
+
if (errors === _errs20) {
|
|
18359
|
+
if (typeof data8 === "string") {
|
|
18360
|
+
if (!pattern5.test(data8)) {
|
|
18361
|
+
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}$"' }];
|
|
18362
|
+
return false;
|
|
18363
|
+
}
|
|
18364
|
+
} else {
|
|
18365
|
+
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" }];
|
|
18366
|
+
return false;
|
|
18367
|
+
}
|
|
17991
18368
|
}
|
|
17992
18369
|
var valid3 = _errs20 === errors;
|
|
17993
18370
|
} else {
|
|
@@ -18045,10 +18422,18 @@ function validate58(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
18045
18422
|
return false;
|
|
18046
18423
|
} else {
|
|
18047
18424
|
if (data11.decisionId !== void 0) {
|
|
18425
|
+
let data12 = data11.decisionId;
|
|
18048
18426
|
const _errs29 = errors;
|
|
18049
|
-
if (
|
|
18050
|
-
|
|
18051
|
-
|
|
18427
|
+
if (errors === _errs29) {
|
|
18428
|
+
if (typeof data12 === "string") {
|
|
18429
|
+
if (!pattern4.test(data12)) {
|
|
18430
|
+
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}$"' }];
|
|
18431
|
+
return false;
|
|
18432
|
+
}
|
|
18433
|
+
} else {
|
|
18434
|
+
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" }];
|
|
18435
|
+
return false;
|
|
18436
|
+
}
|
|
18052
18437
|
}
|
|
18053
18438
|
var valid5 = _errs29 === errors;
|
|
18054
18439
|
} else {
|
|
@@ -18067,10 +18452,18 @@ function validate58(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
18067
18452
|
}
|
|
18068
18453
|
if (valid5) {
|
|
18069
18454
|
if (data11.shortId !== void 0) {
|
|
18455
|
+
let data14 = data11.shortId;
|
|
18070
18456
|
const _errs33 = errors;
|
|
18071
|
-
if (
|
|
18072
|
-
|
|
18073
|
-
|
|
18457
|
+
if (errors === _errs33) {
|
|
18458
|
+
if (typeof data14 === "string") {
|
|
18459
|
+
if (!pattern5.test(data14)) {
|
|
18460
|
+
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}$"' }];
|
|
18461
|
+
return false;
|
|
18462
|
+
}
|
|
18463
|
+
} else {
|
|
18464
|
+
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" }];
|
|
18465
|
+
return false;
|
|
18466
|
+
}
|
|
18074
18467
|
}
|
|
18075
18468
|
var valid5 = _errs33 === errors;
|
|
18076
18469
|
} else {
|
|
@@ -18392,10 +18785,18 @@ function validate58(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
18392
18785
|
}
|
|
18393
18786
|
if (_errs65 === errors) {
|
|
18394
18787
|
if (data28.decisionId !== void 0) {
|
|
18788
|
+
let data29 = data28.decisionId;
|
|
18395
18789
|
const _errs66 = errors;
|
|
18396
|
-
if (
|
|
18397
|
-
|
|
18398
|
-
|
|
18790
|
+
if (errors === _errs66) {
|
|
18791
|
+
if (typeof data29 === "string") {
|
|
18792
|
+
if (!pattern4.test(data29)) {
|
|
18793
|
+
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}$"' }];
|
|
18794
|
+
return false;
|
|
18795
|
+
}
|
|
18796
|
+
} else {
|
|
18797
|
+
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" }];
|
|
18798
|
+
return false;
|
|
18799
|
+
}
|
|
18399
18800
|
}
|
|
18400
18801
|
var valid10 = _errs66 === errors;
|
|
18401
18802
|
} else {
|
|
@@ -18493,10 +18894,18 @@ function validate58(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
18493
18894
|
}
|
|
18494
18895
|
if (_errs74 === errors) {
|
|
18495
18896
|
if (data32.decisionId !== void 0) {
|
|
18897
|
+
let data33 = data32.decisionId;
|
|
18496
18898
|
const _errs75 = errors;
|
|
18497
|
-
if (
|
|
18498
|
-
|
|
18499
|
-
|
|
18899
|
+
if (errors === _errs75) {
|
|
18900
|
+
if (typeof data33 === "string") {
|
|
18901
|
+
if (!pattern4.test(data33)) {
|
|
18902
|
+
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}$"' }];
|
|
18903
|
+
return false;
|
|
18904
|
+
}
|
|
18905
|
+
} else {
|
|
18906
|
+
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" }];
|
|
18907
|
+
return false;
|
|
18908
|
+
}
|
|
18500
18909
|
}
|
|
18501
18910
|
var valid12 = _errs75 === errors;
|
|
18502
18911
|
} else {
|
|
@@ -18504,10 +18913,18 @@ function validate58(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
18504
18913
|
}
|
|
18505
18914
|
if (valid12) {
|
|
18506
18915
|
if (data32.shortId !== void 0) {
|
|
18916
|
+
let data34 = data32.shortId;
|
|
18507
18917
|
const _errs77 = errors;
|
|
18508
|
-
if (
|
|
18509
|
-
|
|
18510
|
-
|
|
18918
|
+
if (errors === _errs77) {
|
|
18919
|
+
if (typeof data34 === "string") {
|
|
18920
|
+
if (!pattern5.test(data34)) {
|
|
18921
|
+
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}$"' }];
|
|
18922
|
+
return false;
|
|
18923
|
+
}
|
|
18924
|
+
} else {
|
|
18925
|
+
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" }];
|
|
18926
|
+
return false;
|
|
18927
|
+
}
|
|
18511
18928
|
}
|
|
18512
18929
|
var valid12 = _errs77 === errors;
|
|
18513
18930
|
} else {
|
|
@@ -18572,8 +18989,8 @@ function validate58(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
18572
18989
|
return errors === 0;
|
|
18573
18990
|
}
|
|
18574
18991
|
validate58.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
|
|
18575
|
-
var
|
|
18576
|
-
var
|
|
18992
|
+
var pattern66 = new RegExp("^[A-Za-z0-9._-]{1,128}$", "u");
|
|
18993
|
+
var pattern67 = new RegExp("^pci_[A-Za-z0-9_-]{43}$", "u");
|
|
18577
18994
|
function validate59(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
18578
18995
|
;
|
|
18579
18996
|
let vErrors = null;
|
|
@@ -18598,7 +19015,7 @@ function validate59(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
18598
19015
|
const _errs3 = errors;
|
|
18599
19016
|
if (errors === _errs3) {
|
|
18600
19017
|
if (typeof data0 === "string") {
|
|
18601
|
-
if (!
|
|
19018
|
+
if (!pattern66.test(data0)) {
|
|
18602
19019
|
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}$"' }];
|
|
18603
19020
|
return false;
|
|
18604
19021
|
}
|
|
@@ -18617,7 +19034,7 @@ function validate59(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
18617
19034
|
const _errs5 = errors;
|
|
18618
19035
|
if (errors === _errs5) {
|
|
18619
19036
|
if (typeof data1 === "string") {
|
|
18620
|
-
if (!
|
|
19037
|
+
if (!pattern67.test(data1)) {
|
|
18621
19038
|
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}$"' }];
|
|
18622
19039
|
return false;
|
|
18623
19040
|
}
|
|
@@ -19159,7 +19576,7 @@ function validate61(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
19159
19576
|
return errors === 0;
|
|
19160
19577
|
}
|
|
19161
19578
|
validate61.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
|
|
19162
|
-
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 };
|
|
19579
|
+
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 };
|
|
19163
19580
|
function validate62(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
19164
19581
|
;
|
|
19165
19582
|
let vErrors = null;
|
|
@@ -19216,10 +19633,18 @@ function validate62(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
19216
19633
|
}
|
|
19217
19634
|
if (valid1) {
|
|
19218
19635
|
if (data.decisionId !== void 0) {
|
|
19636
|
+
let data2 = data.decisionId;
|
|
19219
19637
|
const _errs7 = errors;
|
|
19220
|
-
if (
|
|
19221
|
-
|
|
19222
|
-
|
|
19638
|
+
if (errors === _errs7) {
|
|
19639
|
+
if (typeof data2 === "string") {
|
|
19640
|
+
if (!pattern4.test(data2)) {
|
|
19641
|
+
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}$"' }];
|
|
19642
|
+
return false;
|
|
19643
|
+
}
|
|
19644
|
+
} else {
|
|
19645
|
+
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" }];
|
|
19646
|
+
return false;
|
|
19647
|
+
}
|
|
19223
19648
|
}
|
|
19224
19649
|
var valid1 = _errs7 === errors;
|
|
19225
19650
|
} else {
|
|
@@ -19280,7 +19705,7 @@ function validate62(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
19280
19705
|
return errors === 0;
|
|
19281
19706
|
}
|
|
19282
19707
|
validate62.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
|
|
19283
|
-
var
|
|
19708
|
+
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");
|
|
19284
19709
|
function validate63(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
19285
19710
|
;
|
|
19286
19711
|
let vErrors = null;
|
|
@@ -19314,7 +19739,7 @@ function validate63(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
19314
19739
|
const _errs3 = errors;
|
|
19315
19740
|
if (errors === _errs3) {
|
|
19316
19741
|
if (typeof data0 === "string") {
|
|
19317
|
-
if (!
|
|
19742
|
+
if (!pattern69.test(data0)) {
|
|
19318
19743
|
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}$"' }];
|
|
19319
19744
|
return false;
|
|
19320
19745
|
}
|
|
@@ -19379,7 +19804,7 @@ function validate64(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
19379
19804
|
return errors === 0;
|
|
19380
19805
|
}
|
|
19381
19806
|
validate64.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
|
|
19382
|
-
var
|
|
19807
|
+
var pattern71 = new RegExp("^api_key_[A-Za-z0-9_-]+$", "u");
|
|
19383
19808
|
function validate65(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
19384
19809
|
;
|
|
19385
19810
|
let vErrors = null;
|
|
@@ -19413,7 +19838,7 @@ function validate65(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
19413
19838
|
const _errs3 = errors;
|
|
19414
19839
|
if (errors === _errs3) {
|
|
19415
19840
|
if (typeof data0 === "string") {
|
|
19416
|
-
if (!
|
|
19841
|
+
if (!pattern35.test(data0)) {
|
|
19417
19842
|
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}$"' }];
|
|
19418
19843
|
return false;
|
|
19419
19844
|
}
|
|
@@ -19465,7 +19890,7 @@ function validate65(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
19465
19890
|
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" }];
|
|
19466
19891
|
return false;
|
|
19467
19892
|
} else {
|
|
19468
|
-
if (!
|
|
19893
|
+
if (!pattern71.test(data2)) {
|
|
19469
19894
|
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_-]+$"' }];
|
|
19470
19895
|
return false;
|
|
19471
19896
|
}
|
|
@@ -19493,9 +19918,9 @@ function validate65(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
19493
19918
|
return errors === 0;
|
|
19494
19919
|
}
|
|
19495
19920
|
validate65.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
|
|
19496
|
-
var
|
|
19497
|
-
var
|
|
19498
|
-
var
|
|
19921
|
+
var pattern73 = new RegExp("^[\\x21-\\x7e](?:[\\x20-\\x7e]{0,126}[\\x21-\\x7e])?$", "u");
|
|
19922
|
+
var pattern74 = new RegExp("^[^\\u0000-\\u001f\\u007f-\\u009f\\u2028\\u2029\\u061c\\u200b-\\u200f\\u202a-\\u202e\\u2060\\u2066-\\u2069\\ufeff]+$", "u");
|
|
19923
|
+
var pattern75 = new RegExp("^[\\x21-\\x7e]+$", "u");
|
|
19499
19924
|
function validate66(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
19500
19925
|
;
|
|
19501
19926
|
let vErrors = null;
|
|
@@ -19567,7 +19992,7 @@ function validate66(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
19567
19992
|
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" }];
|
|
19568
19993
|
return false;
|
|
19569
19994
|
} else {
|
|
19570
|
-
if (!
|
|
19995
|
+
if (!pattern71.test(data2)) {
|
|
19571
19996
|
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_-]+$"' }];
|
|
19572
19997
|
return false;
|
|
19573
19998
|
}
|
|
@@ -19596,7 +20021,7 @@ function validate66(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
19596
20021
|
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" }];
|
|
19597
20022
|
return false;
|
|
19598
20023
|
} else {
|
|
19599
|
-
if (!
|
|
20024
|
+
if (!pattern73.test(data3)) {
|
|
19600
20025
|
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])?$"' }];
|
|
19601
20026
|
return false;
|
|
19602
20027
|
}
|
|
@@ -19625,7 +20050,7 @@ function validate66(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
19625
20050
|
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" }];
|
|
19626
20051
|
return false;
|
|
19627
20052
|
} else {
|
|
19628
|
-
if (!
|
|
20053
|
+
if (!pattern74.test(data4)) {
|
|
19629
20054
|
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]+$"' }];
|
|
19630
20055
|
return false;
|
|
19631
20056
|
}
|
|
@@ -19665,7 +20090,7 @@ function validate66(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
19665
20090
|
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" }];
|
|
19666
20091
|
return false;
|
|
19667
20092
|
} else {
|
|
19668
|
-
if (!
|
|
20093
|
+
if (!pattern75.test(data6)) {
|
|
19669
20094
|
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]+$"' }];
|
|
19670
20095
|
return false;
|
|
19671
20096
|
}
|
|
@@ -19951,7 +20376,7 @@ function validate66(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
19951
20376
|
}
|
|
19952
20377
|
errors++;
|
|
19953
20378
|
} else {
|
|
19954
|
-
if (!
|
|
20379
|
+
if (!pattern71.test(data11)) {
|
|
19955
20380
|
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_-]+$"' };
|
|
19956
20381
|
if (vErrors === null) {
|
|
19957
20382
|
vErrors = [err12];
|
|
@@ -20063,7 +20488,7 @@ function validate67(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
20063
20488
|
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" }];
|
|
20064
20489
|
return false;
|
|
20065
20490
|
} else {
|
|
20066
|
-
if (!
|
|
20491
|
+
if (!pattern71.test(data0)) {
|
|
20067
20492
|
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_-]+$"' }];
|
|
20068
20493
|
return false;
|
|
20069
20494
|
}
|
|
@@ -20092,7 +20517,7 @@ function validate67(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
20092
20517
|
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" }];
|
|
20093
20518
|
return false;
|
|
20094
20519
|
} else {
|
|
20095
|
-
if (!
|
|
20520
|
+
if (!pattern73.test(data1)) {
|
|
20096
20521
|
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])?$"' }];
|
|
20097
20522
|
return false;
|
|
20098
20523
|
}
|
|
@@ -20121,7 +20546,7 @@ function validate67(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
20121
20546
|
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" }];
|
|
20122
20547
|
return false;
|
|
20123
20548
|
} else {
|
|
20124
|
-
if (!
|
|
20549
|
+
if (!pattern74.test(data2)) {
|
|
20125
20550
|
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]+$"' }];
|
|
20126
20551
|
return false;
|
|
20127
20552
|
}
|
|
@@ -20161,7 +20586,7 @@ function validate67(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
20161
20586
|
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" }];
|
|
20162
20587
|
return false;
|
|
20163
20588
|
} else {
|
|
20164
|
-
if (!
|
|
20589
|
+
if (!pattern75.test(data4)) {
|
|
20165
20590
|
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]+$"' }];
|
|
20166
20591
|
return false;
|
|
20167
20592
|
}
|
|
@@ -20442,7 +20867,7 @@ function validate68(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
20442
20867
|
const _errs3 = errors;
|
|
20443
20868
|
if (errors === _errs3) {
|
|
20444
20869
|
if (typeof data0 === "string") {
|
|
20445
|
-
if (!
|
|
20870
|
+
if (!pattern35.test(data0)) {
|
|
20446
20871
|
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}$"' }];
|
|
20447
20872
|
return false;
|
|
20448
20873
|
}
|
|
@@ -20469,7 +20894,7 @@ function validate68(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
20469
20894
|
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" }];
|
|
20470
20895
|
return false;
|
|
20471
20896
|
} else {
|
|
20472
|
-
if (!
|
|
20897
|
+
if (!pattern73.test(data1)) {
|
|
20473
20898
|
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])?$"' }];
|
|
20474
20899
|
return false;
|
|
20475
20900
|
}
|
|
@@ -20522,7 +20947,7 @@ function validate68(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
20522
20947
|
return errors === 0;
|
|
20523
20948
|
}
|
|
20524
20949
|
validate68.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
|
|
20525
|
-
var
|
|
20950
|
+
var pattern87 = new RegExp("^sk_[\\x21-\\x7e]+(?: [\\x21-\\x7e]+)*$", "u");
|
|
20526
20951
|
function validate69(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
20527
20952
|
;
|
|
20528
20953
|
let vErrors = null;
|
|
@@ -20583,7 +21008,7 @@ function validate69(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
20583
21008
|
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" }];
|
|
20584
21009
|
return false;
|
|
20585
21010
|
} else {
|
|
20586
|
-
if (!
|
|
21011
|
+
if (!pattern71.test(data1)) {
|
|
20587
21012
|
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_-]+$"' }];
|
|
20588
21013
|
return false;
|
|
20589
21014
|
}
|
|
@@ -20612,7 +21037,7 @@ function validate69(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
20612
21037
|
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" }];
|
|
20613
21038
|
return false;
|
|
20614
21039
|
} else {
|
|
20615
|
-
if (!
|
|
21040
|
+
if (!pattern73.test(data2)) {
|
|
20616
21041
|
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])?$"' }];
|
|
20617
21042
|
return false;
|
|
20618
21043
|
}
|
|
@@ -20641,7 +21066,7 @@ function validate69(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
20641
21066
|
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" }];
|
|
20642
21067
|
return false;
|
|
20643
21068
|
} else {
|
|
20644
|
-
if (!
|
|
21069
|
+
if (!pattern74.test(data3)) {
|
|
20645
21070
|
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]+$"' }];
|
|
20646
21071
|
return false;
|
|
20647
21072
|
}
|
|
@@ -20681,7 +21106,7 @@ function validate69(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
20681
21106
|
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" }];
|
|
20682
21107
|
return false;
|
|
20683
21108
|
} else {
|
|
20684
|
-
if (!
|
|
21109
|
+
if (!pattern75.test(data5)) {
|
|
20685
21110
|
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]+$"' }];
|
|
20686
21111
|
return false;
|
|
20687
21112
|
}
|
|
@@ -20943,7 +21368,7 @@ function validate69(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
20943
21368
|
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" }];
|
|
20944
21369
|
return false;
|
|
20945
21370
|
} else {
|
|
20946
|
-
if (!
|
|
21371
|
+
if (!pattern87.test(data10)) {
|
|
20947
21372
|
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]+)*$"' }];
|
|
20948
21373
|
return false;
|
|
20949
21374
|
}
|
|
@@ -21003,7 +21428,7 @@ function validate70(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
21003
21428
|
const _errs3 = errors;
|
|
21004
21429
|
if (errors === _errs3) {
|
|
21005
21430
|
if (typeof data0 === "string") {
|
|
21006
|
-
if (!
|
|
21431
|
+
if (!pattern35.test(data0)) {
|
|
21007
21432
|
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}$"' }];
|
|
21008
21433
|
return false;
|
|
21009
21434
|
}
|
|
@@ -21065,7 +21490,7 @@ function validate71(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
21065
21490
|
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" }];
|
|
21066
21491
|
return false;
|
|
21067
21492
|
} else {
|
|
21068
|
-
if (!
|
|
21493
|
+
if (!pattern71.test(data0)) {
|
|
21069
21494
|
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_-]+$"' }];
|
|
21070
21495
|
return false;
|
|
21071
21496
|
}
|
|
@@ -21329,7 +21754,7 @@ function validate73(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
21329
21754
|
}
|
|
21330
21755
|
validate73.evaluated = { "dynamicProps": true, "dynamicItems": false };
|
|
21331
21756
|
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"] };
|
|
21332
|
-
var
|
|
21757
|
+
var pattern90 = new RegExp("^client_[A-Za-z0-9_-]+$", "u");
|
|
21333
21758
|
function validate74(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
21334
21759
|
;
|
|
21335
21760
|
let vErrors = null;
|
|
@@ -21398,7 +21823,7 @@ function validate74(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
21398
21823
|
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" }];
|
|
21399
21824
|
return false;
|
|
21400
21825
|
} else {
|
|
21401
|
-
if (!
|
|
21826
|
+
if (!pattern90.test(data2)) {
|
|
21402
21827
|
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_-]+$"' }];
|
|
21403
21828
|
return false;
|
|
21404
21829
|
}
|
|
@@ -22615,10 +23040,6 @@ import {
|
|
|
22615
23040
|
} from "fs";
|
|
22616
23041
|
import { join as join17 } from "path";
|
|
22617
23042
|
|
|
22618
|
-
// src/daemon/client.ts
|
|
22619
|
-
import { createConnection } from "net";
|
|
22620
|
-
import { join as join16 } from "path";
|
|
22621
|
-
|
|
22622
23043
|
// src/daemon/principal.ts
|
|
22623
23044
|
import { createHash as createHash6 } from "crypto";
|
|
22624
23045
|
var PRINCIPAL_COMPONENT_MAX_LENGTH = 512;
|
|
@@ -22648,6 +23069,7 @@ function daemonPrincipalsMatch(caller, daemon) {
|
|
|
22648
23069
|
// src/daemon/protocol.ts
|
|
22649
23070
|
var DAEMON_JSON_REQUEST_MAX_BYTES = 64 * 1024;
|
|
22650
23071
|
var DAEMON_JSON_RESPONSE_MAX_BYTES = 8 * 1024 * 1024;
|
|
23072
|
+
var DECISION_IDENTITY_VERSION = 7;
|
|
22651
23073
|
function isRecord2(value) {
|
|
22652
23074
|
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
22653
23075
|
}
|
|
@@ -22660,6 +23082,7 @@ function parseDaemonResponseEnvelope(value) {
|
|
|
22660
23082
|
if (value.error !== void 0 && typeof value.error !== "string") return void 0;
|
|
22661
23083
|
return {
|
|
22662
23084
|
id: value.id,
|
|
23085
|
+
...typeof value.decisionIdentityVersion === "number" ? { decisionIdentityVersion: value.decisionIdentityVersion } : {},
|
|
22663
23086
|
ok: value.ok,
|
|
22664
23087
|
...value.result === void 0 ? {} : { result: value.result },
|
|
22665
23088
|
...value.error === void 0 ? {} : { error: value.error }
|
|
@@ -22667,6 +23090,8 @@ function parseDaemonResponseEnvelope(value) {
|
|
|
22667
23090
|
}
|
|
22668
23091
|
|
|
22669
23092
|
// src/daemon/client.ts
|
|
23093
|
+
import { createConnection } from "net";
|
|
23094
|
+
import { join as join16 } from "path";
|
|
22670
23095
|
var SOCK_PATH = join16(primConfigDirectory(), "sock");
|
|
22671
23096
|
var DEFAULT_TIMEOUT_MS2 = 250;
|
|
22672
23097
|
var nextRequestId = 1;
|
|
@@ -22739,7 +23164,9 @@ function daemonRequest(method, params = {}, opts = {}) {
|
|
|
22739
23164
|
return;
|
|
22740
23165
|
}
|
|
22741
23166
|
clearTimeout(timer);
|
|
22742
|
-
settle(
|
|
23167
|
+
settle(
|
|
23168
|
+
(!(method.startsWith("decisions_") || method.startsWith("decision_")) || res.decisionIdentityVersion === DECISION_IDENTITY_VERSION) && res.ok && res.result !== void 0 ? res.result : null
|
|
23169
|
+
);
|
|
22743
23170
|
} catch {
|
|
22744
23171
|
clearTimeout(timer);
|
|
22745
23172
|
settle(null);
|
|
@@ -22760,7 +23187,7 @@ var DECISION_DIGEST_CACHE_LIMIT = 100;
|
|
|
22760
23187
|
var DECISION_DIGEST_CACHE_WINDOW = "24h";
|
|
22761
23188
|
var DECISION_DIGEST_CACHE_PATH = `/api/cli/decisions/recent?limit=${String(DECISION_DIGEST_CACHE_LIMIT)}&since=${DECISION_DIGEST_CACHE_WINDOW}`;
|
|
22762
23189
|
var DECISION_DRAFT_DIGEST_CACHE_PATH = `${DECISION_DIGEST_CACHE_PATH}&drafts=true`;
|
|
22763
|
-
var SAFE_PRIVATE_DRAFT_ID = /^[
|
|
23190
|
+
var SAFE_PRIVATE_DRAFT_ID = /^dec_[0-9a-f]{8}$/u;
|
|
22764
23191
|
function isActionablePrivateDraft(row) {
|
|
22765
23192
|
if (typeof row !== "object" || row === null || Array.isArray(row)) return false;
|
|
22766
23193
|
const candidate = row;
|