@primitive.ai/prim 0.1.0-alpha.111 → 0.1.0-alpha.112
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +11 -1
- package/SKILL.md +12 -2
- package/dist/{chunk-KQ4WBK5R.js → chunk-3KKEV7VI.js} +2 -2
- package/dist/{chunk-2IRLFOEL.js → chunk-6JHKKLA2.js} +79 -1
- package/dist/{chunk-IQZA65NV.js → chunk-7DVEH7FO.js} +1 -1
- package/dist/{chunk-W4ZEPZLK.js → chunk-BXLH4LDU.js} +1 -1
- package/dist/{chunk-GA2RXPJL.js → chunk-DWAXFXDG.js} +2 -2
- package/dist/{chunk-7VIMU2HR.js → chunk-FTW4ZCBA.js} +2 -2
- package/dist/{chunk-JJI7FU24.js → chunk-HMD5K6W7.js} +1 -1
- package/dist/{chunk-HTRFPXMD.js → chunk-IW5HCCOW.js} +3 -3
- package/dist/{chunk-UDBBJWQH.js → chunk-IZXLH3R5.js} +930 -582
- package/dist/{chunk-5LRKJTLA.js → chunk-J5HBSRAV.js} +7 -5
- package/dist/{chunk-5BLGBSDM.js → chunk-JDIAPBY7.js} +1 -1
- package/dist/{chunk-2Q3OGSTV.js → chunk-NEQI2VLM.js} +2 -2
- package/dist/{chunk-AOJ254C2.js → chunk-PJW6JZMH.js} +4 -4
- package/dist/{chunk-43ZKL27W.js → chunk-RTULPLS7.js} +1 -1
- package/dist/{chunk-CTRAJCPN.js → chunk-XV6C5ZV2.js} +1 -1
- package/dist/daemon/server.js +1184 -754
- package/dist/hook-runtime/daemon/server.js +1184 -754
- package/dist/hook-runtime/hooks/post-commit.js +929 -581
- package/dist/hook-runtime/hooks/post-rewrite.js +929 -581
- package/dist/hook-runtime/hooks/post-tool-use.js +1015 -588
- package/dist/hook-runtime/hooks/pre-commit.js +85 -6
- package/dist/hook-runtime/hooks/pre-tool-use.js +1017 -591
- package/dist/hook-runtime/hooks/prim-hook.js +1016 -589
- package/dist/hook-runtime/hooks/session-end.js +14 -12
- package/dist/hook-runtime/hooks/session-start.js +1016 -589
- package/dist/hook-runtime/index.js +1211 -791
- package/dist/hook-runtime/statusline-main.js +7 -5
- package/dist/hooks/post-commit.js +5 -5
- package/dist/hooks/post-rewrite.js +5 -5
- package/dist/hooks/post-tool-use.js +12 -12
- package/dist/hooks/pre-commit.js +3 -3
- package/dist/hooks/pre-tool-use.js +10 -11
- package/dist/hooks/prim-hook.js +12 -12
- package/dist/hooks/session-end.js +1 -1
- package/dist/hooks/session-start.js +7 -7
- package/dist/index.js +177 -183
- package/dist/statusline-main.js +7 -5
- package/package.json +2 -1
|
@@ -1108,6 +1108,83 @@ function readHookStdin(timeoutMs = 1e3, maxBytes = DEFAULT_MAX_BYTES) {
|
|
|
1108
1108
|
});
|
|
1109
1109
|
}
|
|
1110
1110
|
|
|
1111
|
+
// src/decisions/identity.ts
|
|
1112
|
+
var PUBLIC_ID = /^dec_[0-9a-f]{8}$/u;
|
|
1113
|
+
var BARE_ID = /^[0-9a-f]{8}$/u;
|
|
1114
|
+
var OPAQUE_FIELDS = /* @__PURE__ */ new Set([
|
|
1115
|
+
"cursor",
|
|
1116
|
+
"continueCursor",
|
|
1117
|
+
"nextCursor",
|
|
1118
|
+
"reviewToken",
|
|
1119
|
+
"bypassToken"
|
|
1120
|
+
]);
|
|
1121
|
+
function decisionIdentifier(id, shortId) {
|
|
1122
|
+
if (typeof id === "string" && PUBLIC_ID.test(id)) return id;
|
|
1123
|
+
if (typeof shortId === "string" && BARE_ID.test(shortId)) return `dec_${shortId}`;
|
|
1124
|
+
if (typeof id === "string" && BARE_ID.test(id)) return `dec_${id}`;
|
|
1125
|
+
return void 0;
|
|
1126
|
+
}
|
|
1127
|
+
function publicDecisionResponse(value) {
|
|
1128
|
+
const replacements = /* @__PURE__ */ new Map();
|
|
1129
|
+
const referenceKeys = /* @__PURE__ */ new Set([
|
|
1130
|
+
"decisionId",
|
|
1131
|
+
"childId",
|
|
1132
|
+
"parentId",
|
|
1133
|
+
"supersededBy",
|
|
1134
|
+
"activationDecisionId"
|
|
1135
|
+
]);
|
|
1136
|
+
function visit3(input, field = "") {
|
|
1137
|
+
if (OPAQUE_FIELDS.has(field) || input === null || input === void 0) return input;
|
|
1138
|
+
if (Array.isArray(input)) return input.map((item) => visit3(item, field));
|
|
1139
|
+
if (typeof input === "string" && (referenceKeys.has(field) || /DecisionIds$/u.test(field))) {
|
|
1140
|
+
const id = decisionIdentifier(input);
|
|
1141
|
+
if (!id) throw new Error("Decision identity unavailable; update Primitive and retry");
|
|
1142
|
+
return id;
|
|
1143
|
+
}
|
|
1144
|
+
if (typeof input !== "object") return input;
|
|
1145
|
+
const row = { ...input };
|
|
1146
|
+
for (const [idKey, shortKey] of [
|
|
1147
|
+
["id", "shortId"],
|
|
1148
|
+
["_id", "shortId"],
|
|
1149
|
+
["decisionId", "shortId"],
|
|
1150
|
+
["childId", "childShortId"],
|
|
1151
|
+
["parentId", "parentShortId"]
|
|
1152
|
+
]) {
|
|
1153
|
+
if (!(idKey in row) || (idKey === "id" || idKey === "_id") && !("intent" in row || "shortId" in row))
|
|
1154
|
+
continue;
|
|
1155
|
+
const id = decisionIdentifier(
|
|
1156
|
+
row[idKey],
|
|
1157
|
+
row[shortKey] ?? (idKey === "decisionId" ? row.decisionShortId : void 0)
|
|
1158
|
+
);
|
|
1159
|
+
if (!id) throw new Error("Decision identity unavailable; update Primitive and retry");
|
|
1160
|
+
const previous = row[idKey];
|
|
1161
|
+
if (typeof previous === "string" && !PUBLIC_ID.test(previous) && !BARE_ID.test(previous)) {
|
|
1162
|
+
replacements.set(previous, id);
|
|
1163
|
+
}
|
|
1164
|
+
if (shortKey in row) row[shortKey] = id.slice(4);
|
|
1165
|
+
if (idKey === "decisionId" && "decisionShortId" in row) row.decisionShortId = id.slice(4);
|
|
1166
|
+
row[idKey] = id;
|
|
1167
|
+
}
|
|
1168
|
+
return Object.fromEntries(Object.entries(row).map(([key, item]) => [key, visit3(item, key)]));
|
|
1169
|
+
}
|
|
1170
|
+
const projected = visit3(value);
|
|
1171
|
+
function replace(input, field = "") {
|
|
1172
|
+
if (OPAQUE_FIELDS.has(field)) return input;
|
|
1173
|
+
if (typeof input === "string") {
|
|
1174
|
+
let output = input;
|
|
1175
|
+
for (const [raw, id] of replacements) if (raw !== id) output = output.replaceAll(raw, id);
|
|
1176
|
+
return output;
|
|
1177
|
+
}
|
|
1178
|
+
if (Array.isArray(input)) return input.map((item) => replace(item, field));
|
|
1179
|
+
if (input && typeof input === "object")
|
|
1180
|
+
return Object.fromEntries(
|
|
1181
|
+
Object.entries(input).map(([key, item]) => [key, replace(item, key)])
|
|
1182
|
+
);
|
|
1183
|
+
return input;
|
|
1184
|
+
}
|
|
1185
|
+
return replace(projected);
|
|
1186
|
+
}
|
|
1187
|
+
|
|
1111
1188
|
// src/client.ts
|
|
1112
1189
|
import { createHash as createHash4 } from "crypto";
|
|
1113
1190
|
import { chmodSync as chmodSync3, existsSync as existsSync6, mkdirSync as mkdirSync4, readFileSync as readFileSync8, rmSync as rmSync4 } from "fs";
|
|
@@ -1950,7 +2027,7 @@ async function responseValue(response) {
|
|
|
1950
2027
|
const message = typeof errorRecord?.error === "string" ? errorRecord.error : `HTTP ${response.status}`;
|
|
1951
2028
|
throw new HttpError(response.status, message, errorBody);
|
|
1952
2029
|
}
|
|
1953
|
-
return response.json();
|
|
2030
|
+
return publicDecisionResponse(await response.json());
|
|
1954
2031
|
}
|
|
1955
2032
|
async function request(method, path, body, options) {
|
|
1956
2033
|
const siteUrl = getSiteUrl();
|
|
@@ -8954,10 +9031,6 @@ async function refreshClaudePlugins(cwd, options = {}) {
|
|
|
8954
9031
|
return result;
|
|
8955
9032
|
}
|
|
8956
9033
|
|
|
8957
|
-
// src/daemon/client.ts
|
|
8958
|
-
import { createConnection } from "net";
|
|
8959
|
-
import { join as join13 } from "path";
|
|
8960
|
-
|
|
8961
9034
|
// src/daemon/principal.ts
|
|
8962
9035
|
import { createHash as createHash7 } from "crypto";
|
|
8963
9036
|
var PRINCIPAL_COMPONENT_MAX_LENGTH = 512;
|
|
@@ -8987,6 +9060,7 @@ function daemonPrincipalsMatch(caller, daemon) {
|
|
|
8987
9060
|
// src/daemon/protocol.ts
|
|
8988
9061
|
var DAEMON_JSON_REQUEST_MAX_BYTES = 64 * 1024;
|
|
8989
9062
|
var DAEMON_JSON_RESPONSE_MAX_BYTES = 8 * 1024 * 1024;
|
|
9063
|
+
var DECISION_IDENTITY_VERSION = 7;
|
|
8990
9064
|
function isRecord(value) {
|
|
8991
9065
|
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
8992
9066
|
}
|
|
@@ -8999,6 +9073,7 @@ function parseDaemonResponseEnvelope(value) {
|
|
|
8999
9073
|
if (value.error !== void 0 && typeof value.error !== "string") return void 0;
|
|
9000
9074
|
return {
|
|
9001
9075
|
id: value.id,
|
|
9076
|
+
...typeof value.decisionIdentityVersion === "number" ? { decisionIdentityVersion: value.decisionIdentityVersion } : {},
|
|
9002
9077
|
ok: value.ok,
|
|
9003
9078
|
...value.result === void 0 ? {} : { result: value.result },
|
|
9004
9079
|
...value.error === void 0 ? {} : { error: value.error }
|
|
@@ -9006,6 +9081,8 @@ function parseDaemonResponseEnvelope(value) {
|
|
|
9006
9081
|
}
|
|
9007
9082
|
|
|
9008
9083
|
// src/daemon/client.ts
|
|
9084
|
+
import { createConnection } from "net";
|
|
9085
|
+
import { join as join13 } from "path";
|
|
9009
9086
|
var SOCK_PATH = join13(primConfigDirectory(), "sock");
|
|
9010
9087
|
var DEFAULT_TIMEOUT_MS2 = 250;
|
|
9011
9088
|
var nextRequestId = 1;
|
|
@@ -9078,7 +9155,9 @@ function daemonRequest(method, params = {}, opts = {}) {
|
|
|
9078
9155
|
return;
|
|
9079
9156
|
}
|
|
9080
9157
|
clearTimeout(timer);
|
|
9081
|
-
settle(
|
|
9158
|
+
settle(
|
|
9159
|
+
(!(method.startsWith("decisions_") || method.startsWith("decision_")) || res.decisionIdentityVersion === DECISION_IDENTITY_VERSION) && res.ok && res.result !== void 0 ? res.result : null
|
|
9160
|
+
);
|
|
9082
9161
|
} catch {
|
|
9083
9162
|
clearTimeout(timer);
|
|
9084
9163
|
settle(null);
|
|
@@ -9142,7 +9221,7 @@ var SHORT_ID = /^[0-9a-f]{8}$/u;
|
|
|
9142
9221
|
var MAX_EVENT_ID_CHARS = 128;
|
|
9143
9222
|
var MAX_RAW_INTENT_CODE_UNITS = 512;
|
|
9144
9223
|
var MAX_FEEDBACK_WEB_URL_CHARS = 2048;
|
|
9145
|
-
var SAFE_PUBLISH_DECISION_ID = /^[
|
|
9224
|
+
var SAFE_PUBLISH_DECISION_ID = /^dec_[0-9a-f]{8}$/u;
|
|
9146
9225
|
function isRecord2(value) {
|
|
9147
9226
|
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
9148
9227
|
}
|
|
@@ -9727,7 +9806,9 @@ function validate22(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
9727
9806
|
return errors === 0;
|
|
9728
9807
|
}
|
|
9729
9808
|
validate22.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
|
|
9730
|
-
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": {} };
|
|
9809
|
+
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": {} };
|
|
9810
|
+
var pattern4 = new RegExp("^dec_[0-9a-f]{8}$", "u");
|
|
9811
|
+
var pattern5 = new RegExp("^[0-9a-f]{8}$", "u");
|
|
9731
9812
|
function validate23(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
9732
9813
|
;
|
|
9733
9814
|
let vErrors = null;
|
|
@@ -9765,6 +9846,11 @@ function validate23(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
9765
9846
|
if (func1(data1) < 1) {
|
|
9766
9847
|
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" }];
|
|
9767
9848
|
return false;
|
|
9849
|
+
} else {
|
|
9850
|
+
if (!pattern4.test(data1)) {
|
|
9851
|
+
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}$"' }];
|
|
9852
|
+
return false;
|
|
9853
|
+
}
|
|
9768
9854
|
}
|
|
9769
9855
|
} else {
|
|
9770
9856
|
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" }];
|
|
@@ -9777,10 +9863,18 @@ function validate23(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
9777
9863
|
}
|
|
9778
9864
|
if (valid2) {
|
|
9779
9865
|
if (data0.shortId !== void 0) {
|
|
9866
|
+
let data2 = data0.shortId;
|
|
9780
9867
|
const _errs8 = errors;
|
|
9781
|
-
if (
|
|
9782
|
-
|
|
9783
|
-
|
|
9868
|
+
if (errors === _errs8) {
|
|
9869
|
+
if (typeof data2 === "string") {
|
|
9870
|
+
if (!pattern5.test(data2)) {
|
|
9871
|
+
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}$"' }];
|
|
9872
|
+
return false;
|
|
9873
|
+
}
|
|
9874
|
+
} else {
|
|
9875
|
+
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" }];
|
|
9876
|
+
return false;
|
|
9877
|
+
}
|
|
9784
9878
|
}
|
|
9785
9879
|
var valid2 = _errs8 === errors;
|
|
9786
9880
|
} else {
|
|
@@ -9973,6 +10067,11 @@ function validate23(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
9973
10067
|
if (func1(data16) < 1) {
|
|
9974
10068
|
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" }];
|
|
9975
10069
|
return false;
|
|
10070
|
+
} else {
|
|
10071
|
+
if (!pattern4.test(data16)) {
|
|
10072
|
+
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}$"' }];
|
|
10073
|
+
return false;
|
|
10074
|
+
}
|
|
9976
10075
|
}
|
|
9977
10076
|
} else {
|
|
9978
10077
|
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" }];
|
|
@@ -9985,10 +10084,18 @@ function validate23(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
9985
10084
|
}
|
|
9986
10085
|
if (valid6) {
|
|
9987
10086
|
if (data15.shortId !== void 0) {
|
|
10087
|
+
let data17 = data15.shortId;
|
|
9988
10088
|
const _errs40 = errors;
|
|
9989
|
-
if (
|
|
9990
|
-
|
|
9991
|
-
|
|
10089
|
+
if (errors === _errs40) {
|
|
10090
|
+
if (typeof data17 === "string") {
|
|
10091
|
+
if (!pattern5.test(data17)) {
|
|
10092
|
+
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}$"' }];
|
|
10093
|
+
return false;
|
|
10094
|
+
}
|
|
10095
|
+
} else {
|
|
10096
|
+
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" }];
|
|
10097
|
+
return false;
|
|
10098
|
+
}
|
|
9992
10099
|
}
|
|
9993
10100
|
var valid6 = _errs40 === errors;
|
|
9994
10101
|
} else {
|
|
@@ -11228,7 +11335,7 @@ function validate25(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
11228
11335
|
return errors === 0;
|
|
11229
11336
|
}
|
|
11230
11337
|
validate25.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
|
|
11231
|
-
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": {} }] };
|
|
11338
|
+
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": {} }] };
|
|
11232
11339
|
function validate26(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
11233
11340
|
;
|
|
11234
11341
|
let vErrors = null;
|
|
@@ -11268,13 +11375,23 @@ function validate26(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
11268
11375
|
vErrors.push(err1);
|
|
11269
11376
|
}
|
|
11270
11377
|
errors++;
|
|
11378
|
+
} else {
|
|
11379
|
+
if (!pattern4.test(data0)) {
|
|
11380
|
+
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}$"' };
|
|
11381
|
+
if (vErrors === null) {
|
|
11382
|
+
vErrors = [err2];
|
|
11383
|
+
} else {
|
|
11384
|
+
vErrors.push(err2);
|
|
11385
|
+
}
|
|
11386
|
+
errors++;
|
|
11387
|
+
}
|
|
11271
11388
|
}
|
|
11272
11389
|
} else {
|
|
11273
|
-
const
|
|
11390
|
+
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" };
|
|
11274
11391
|
if (vErrors === null) {
|
|
11275
|
-
vErrors = [
|
|
11392
|
+
vErrors = [err3];
|
|
11276
11393
|
} else {
|
|
11277
|
-
vErrors.push(
|
|
11394
|
+
vErrors.push(err3);
|
|
11278
11395
|
}
|
|
11279
11396
|
errors++;
|
|
11280
11397
|
}
|
|
@@ -11285,15 +11402,28 @@ function validate26(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
11285
11402
|
}
|
|
11286
11403
|
if (valid2) {
|
|
11287
11404
|
if (data.shortId !== void 0) {
|
|
11405
|
+
let data1 = data.shortId;
|
|
11288
11406
|
const _errs7 = errors;
|
|
11289
|
-
if (
|
|
11290
|
-
|
|
11291
|
-
|
|
11292
|
-
|
|
11407
|
+
if (errors === _errs7) {
|
|
11408
|
+
if (typeof data1 === "string") {
|
|
11409
|
+
if (!pattern5.test(data1)) {
|
|
11410
|
+
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}$"' };
|
|
11411
|
+
if (vErrors === null) {
|
|
11412
|
+
vErrors = [err4];
|
|
11413
|
+
} else {
|
|
11414
|
+
vErrors.push(err4);
|
|
11415
|
+
}
|
|
11416
|
+
errors++;
|
|
11417
|
+
}
|
|
11293
11418
|
} else {
|
|
11294
|
-
|
|
11419
|
+
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" };
|
|
11420
|
+
if (vErrors === null) {
|
|
11421
|
+
vErrors = [err5];
|
|
11422
|
+
} else {
|
|
11423
|
+
vErrors.push(err5);
|
|
11424
|
+
}
|
|
11425
|
+
errors++;
|
|
11295
11426
|
}
|
|
11296
|
-
errors++;
|
|
11297
11427
|
}
|
|
11298
11428
|
var valid2 = _errs7 === errors;
|
|
11299
11429
|
} else {
|
|
@@ -11304,20 +11434,20 @@ function validate26(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
11304
11434
|
let data2 = data.outcome;
|
|
11305
11435
|
const _errs9 = errors;
|
|
11306
11436
|
if (typeof data2 !== "string") {
|
|
11307
|
-
const
|
|
11437
|
+
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" };
|
|
11308
11438
|
if (vErrors === null) {
|
|
11309
|
-
vErrors = [
|
|
11439
|
+
vErrors = [err6];
|
|
11310
11440
|
} else {
|
|
11311
|
-
vErrors.push(
|
|
11441
|
+
vErrors.push(err6);
|
|
11312
11442
|
}
|
|
11313
11443
|
errors++;
|
|
11314
11444
|
}
|
|
11315
11445
|
if (!(data2 === "stale" || data2 === "confirmed" || data2 === "corrected")) {
|
|
11316
|
-
const
|
|
11446
|
+
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" };
|
|
11317
11447
|
if (vErrors === null) {
|
|
11318
|
-
vErrors = [
|
|
11448
|
+
vErrors = [err7];
|
|
11319
11449
|
} else {
|
|
11320
|
-
vErrors.push(
|
|
11450
|
+
vErrors.push(err7);
|
|
11321
11451
|
}
|
|
11322
11452
|
errors++;
|
|
11323
11453
|
}
|
|
@@ -11329,11 +11459,11 @@ function validate26(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
11329
11459
|
}
|
|
11330
11460
|
}
|
|
11331
11461
|
} else {
|
|
11332
|
-
const
|
|
11462
|
+
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" };
|
|
11333
11463
|
if (vErrors === null) {
|
|
11334
|
-
vErrors = [
|
|
11464
|
+
vErrors = [err8];
|
|
11335
11465
|
} else {
|
|
11336
|
-
vErrors.push(
|
|
11466
|
+
vErrors.push(err8);
|
|
11337
11467
|
}
|
|
11338
11468
|
errors++;
|
|
11339
11469
|
}
|
|
@@ -11348,11 +11478,11 @@ function validate26(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
11348
11478
|
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
11349
11479
|
let missing1;
|
|
11350
11480
|
if (data.decisionId === void 0 && (missing1 = "decisionId") || data.outcome === void 0 && (missing1 = "outcome") || data.respondedAt === void 0 && (missing1 = "respondedAt")) {
|
|
11351
|
-
const
|
|
11481
|
+
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 + "'" };
|
|
11352
11482
|
if (vErrors === null) {
|
|
11353
|
-
vErrors = [
|
|
11483
|
+
vErrors = [err9];
|
|
11354
11484
|
} else {
|
|
11355
|
-
vErrors.push(
|
|
11485
|
+
vErrors.push(err9);
|
|
11356
11486
|
}
|
|
11357
11487
|
errors++;
|
|
11358
11488
|
} else {
|
|
@@ -11362,20 +11492,30 @@ function validate26(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
11362
11492
|
if (errors === _errs14) {
|
|
11363
11493
|
if (typeof data3 === "string") {
|
|
11364
11494
|
if (func1(data3) < 1) {
|
|
11365
|
-
const
|
|
11495
|
+
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" };
|
|
11366
11496
|
if (vErrors === null) {
|
|
11367
|
-
vErrors = [
|
|
11497
|
+
vErrors = [err10];
|
|
11368
11498
|
} else {
|
|
11369
|
-
vErrors.push(
|
|
11499
|
+
vErrors.push(err10);
|
|
11370
11500
|
}
|
|
11371
11501
|
errors++;
|
|
11502
|
+
} else {
|
|
11503
|
+
if (!pattern4.test(data3)) {
|
|
11504
|
+
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}$"' };
|
|
11505
|
+
if (vErrors === null) {
|
|
11506
|
+
vErrors = [err11];
|
|
11507
|
+
} else {
|
|
11508
|
+
vErrors.push(err11);
|
|
11509
|
+
}
|
|
11510
|
+
errors++;
|
|
11511
|
+
}
|
|
11372
11512
|
}
|
|
11373
11513
|
} else {
|
|
11374
|
-
const
|
|
11514
|
+
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" };
|
|
11375
11515
|
if (vErrors === null) {
|
|
11376
|
-
vErrors = [
|
|
11516
|
+
vErrors = [err12];
|
|
11377
11517
|
} else {
|
|
11378
|
-
vErrors.push(
|
|
11518
|
+
vErrors.push(err12);
|
|
11379
11519
|
}
|
|
11380
11520
|
errors++;
|
|
11381
11521
|
}
|
|
@@ -11386,15 +11526,28 @@ function validate26(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
11386
11526
|
}
|
|
11387
11527
|
if (valid3) {
|
|
11388
11528
|
if (data.shortId !== void 0) {
|
|
11529
|
+
let data4 = data.shortId;
|
|
11389
11530
|
const _errs16 = errors;
|
|
11390
|
-
if (
|
|
11391
|
-
|
|
11392
|
-
|
|
11393
|
-
|
|
11531
|
+
if (errors === _errs16) {
|
|
11532
|
+
if (typeof data4 === "string") {
|
|
11533
|
+
if (!pattern5.test(data4)) {
|
|
11534
|
+
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}$"' };
|
|
11535
|
+
if (vErrors === null) {
|
|
11536
|
+
vErrors = [err13];
|
|
11537
|
+
} else {
|
|
11538
|
+
vErrors.push(err13);
|
|
11539
|
+
}
|
|
11540
|
+
errors++;
|
|
11541
|
+
}
|
|
11394
11542
|
} else {
|
|
11395
|
-
|
|
11543
|
+
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" };
|
|
11544
|
+
if (vErrors === null) {
|
|
11545
|
+
vErrors = [err14];
|
|
11546
|
+
} else {
|
|
11547
|
+
vErrors.push(err14);
|
|
11548
|
+
}
|
|
11549
|
+
errors++;
|
|
11396
11550
|
}
|
|
11397
|
-
errors++;
|
|
11398
11551
|
}
|
|
11399
11552
|
var valid3 = _errs16 === errors;
|
|
11400
11553
|
} else {
|
|
@@ -11405,20 +11558,20 @@ function validate26(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
11405
11558
|
let data5 = data.outcome;
|
|
11406
11559
|
const _errs18 = errors;
|
|
11407
11560
|
if (typeof data5 !== "string") {
|
|
11408
|
-
const
|
|
11561
|
+
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" };
|
|
11409
11562
|
if (vErrors === null) {
|
|
11410
|
-
vErrors = [
|
|
11563
|
+
vErrors = [err15];
|
|
11411
11564
|
} else {
|
|
11412
|
-
vErrors.push(
|
|
11565
|
+
vErrors.push(err15);
|
|
11413
11566
|
}
|
|
11414
11567
|
errors++;
|
|
11415
11568
|
}
|
|
11416
11569
|
if ("already_responded" !== data5) {
|
|
11417
|
-
const
|
|
11570
|
+
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" };
|
|
11418
11571
|
if (vErrors === null) {
|
|
11419
|
-
vErrors = [
|
|
11572
|
+
vErrors = [err16];
|
|
11420
11573
|
} else {
|
|
11421
|
-
vErrors.push(
|
|
11574
|
+
vErrors.push(err16);
|
|
11422
11575
|
}
|
|
11423
11576
|
errors++;
|
|
11424
11577
|
}
|
|
@@ -11430,11 +11583,11 @@ function validate26(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
11430
11583
|
if (data.confirmed !== void 0) {
|
|
11431
11584
|
const _errs20 = errors;
|
|
11432
11585
|
if (typeof data.confirmed !== "boolean") {
|
|
11433
|
-
const
|
|
11586
|
+
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" };
|
|
11434
11587
|
if (vErrors === null) {
|
|
11435
|
-
vErrors = [
|
|
11588
|
+
vErrors = [err17];
|
|
11436
11589
|
} else {
|
|
11437
|
-
vErrors.push(
|
|
11590
|
+
vErrors.push(err17);
|
|
11438
11591
|
}
|
|
11439
11592
|
errors++;
|
|
11440
11593
|
}
|
|
@@ -11447,11 +11600,11 @@ function validate26(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
11447
11600
|
let data7 = data.respondedAt;
|
|
11448
11601
|
const _errs22 = errors;
|
|
11449
11602
|
if (!(typeof data7 == "number" && isFinite(data7))) {
|
|
11450
|
-
const
|
|
11603
|
+
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" };
|
|
11451
11604
|
if (vErrors === null) {
|
|
11452
|
-
vErrors = [
|
|
11605
|
+
vErrors = [err18];
|
|
11453
11606
|
} else {
|
|
11454
|
-
vErrors.push(
|
|
11607
|
+
vErrors.push(err18);
|
|
11455
11608
|
}
|
|
11456
11609
|
errors++;
|
|
11457
11610
|
}
|
|
@@ -11465,11 +11618,11 @@ function validate26(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
11465
11618
|
}
|
|
11466
11619
|
}
|
|
11467
11620
|
} else {
|
|
11468
|
-
const
|
|
11621
|
+
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" };
|
|
11469
11622
|
if (vErrors === null) {
|
|
11470
|
-
vErrors = [
|
|
11623
|
+
vErrors = [err19];
|
|
11471
11624
|
} else {
|
|
11472
|
-
vErrors.push(
|
|
11625
|
+
vErrors.push(err19);
|
|
11473
11626
|
}
|
|
11474
11627
|
errors++;
|
|
11475
11628
|
}
|
|
@@ -11486,11 +11639,11 @@ function validate26(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
11486
11639
|
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
11487
11640
|
let missing2;
|
|
11488
11641
|
if (data.decisionId === void 0 && (missing2 = "decisionId") || data.outcome === void 0 && (missing2 = "outcome")) {
|
|
11489
|
-
const
|
|
11642
|
+
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 + "'" };
|
|
11490
11643
|
if (vErrors === null) {
|
|
11491
|
-
vErrors = [
|
|
11644
|
+
vErrors = [err20];
|
|
11492
11645
|
} else {
|
|
11493
|
-
vErrors.push(
|
|
11646
|
+
vErrors.push(err20);
|
|
11494
11647
|
}
|
|
11495
11648
|
errors++;
|
|
11496
11649
|
} else {
|
|
@@ -11500,20 +11653,30 @@ function validate26(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
11500
11653
|
if (errors === _errs27) {
|
|
11501
11654
|
if (typeof data8 === "string") {
|
|
11502
11655
|
if (func1(data8) < 1) {
|
|
11503
|
-
const
|
|
11656
|
+
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" };
|
|
11504
11657
|
if (vErrors === null) {
|
|
11505
|
-
vErrors = [
|
|
11658
|
+
vErrors = [err21];
|
|
11506
11659
|
} else {
|
|
11507
|
-
vErrors.push(
|
|
11660
|
+
vErrors.push(err21);
|
|
11508
11661
|
}
|
|
11509
11662
|
errors++;
|
|
11663
|
+
} else {
|
|
11664
|
+
if (!pattern4.test(data8)) {
|
|
11665
|
+
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}$"' };
|
|
11666
|
+
if (vErrors === null) {
|
|
11667
|
+
vErrors = [err22];
|
|
11668
|
+
} else {
|
|
11669
|
+
vErrors.push(err22);
|
|
11670
|
+
}
|
|
11671
|
+
errors++;
|
|
11672
|
+
}
|
|
11510
11673
|
}
|
|
11511
11674
|
} else {
|
|
11512
|
-
const
|
|
11675
|
+
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" };
|
|
11513
11676
|
if (vErrors === null) {
|
|
11514
|
-
vErrors = [
|
|
11677
|
+
vErrors = [err23];
|
|
11515
11678
|
} else {
|
|
11516
|
-
vErrors.push(
|
|
11679
|
+
vErrors.push(err23);
|
|
11517
11680
|
}
|
|
11518
11681
|
errors++;
|
|
11519
11682
|
}
|
|
@@ -11524,15 +11687,28 @@ function validate26(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
11524
11687
|
}
|
|
11525
11688
|
if (valid4) {
|
|
11526
11689
|
if (data.shortId !== void 0) {
|
|
11690
|
+
let data9 = data.shortId;
|
|
11527
11691
|
const _errs29 = errors;
|
|
11528
|
-
if (
|
|
11529
|
-
|
|
11530
|
-
|
|
11531
|
-
|
|
11692
|
+
if (errors === _errs29) {
|
|
11693
|
+
if (typeof data9 === "string") {
|
|
11694
|
+
if (!pattern5.test(data9)) {
|
|
11695
|
+
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}$"' };
|
|
11696
|
+
if (vErrors === null) {
|
|
11697
|
+
vErrors = [err24];
|
|
11698
|
+
} else {
|
|
11699
|
+
vErrors.push(err24);
|
|
11700
|
+
}
|
|
11701
|
+
errors++;
|
|
11702
|
+
}
|
|
11532
11703
|
} else {
|
|
11533
|
-
|
|
11704
|
+
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" };
|
|
11705
|
+
if (vErrors === null) {
|
|
11706
|
+
vErrors = [err25];
|
|
11707
|
+
} else {
|
|
11708
|
+
vErrors.push(err25);
|
|
11709
|
+
}
|
|
11710
|
+
errors++;
|
|
11534
11711
|
}
|
|
11535
|
-
errors++;
|
|
11536
11712
|
}
|
|
11537
11713
|
var valid4 = _errs29 === errors;
|
|
11538
11714
|
} else {
|
|
@@ -11543,20 +11719,20 @@ function validate26(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
11543
11719
|
let data10 = data.outcome;
|
|
11544
11720
|
const _errs31 = errors;
|
|
11545
11721
|
if (typeof data10 !== "string") {
|
|
11546
|
-
const
|
|
11722
|
+
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" };
|
|
11547
11723
|
if (vErrors === null) {
|
|
11548
|
-
vErrors = [
|
|
11724
|
+
vErrors = [err26];
|
|
11549
11725
|
} else {
|
|
11550
|
-
vErrors.push(
|
|
11726
|
+
vErrors.push(err26);
|
|
11551
11727
|
}
|
|
11552
11728
|
errors++;
|
|
11553
11729
|
}
|
|
11554
11730
|
if ("no_pending_prompt" !== data10) {
|
|
11555
|
-
const
|
|
11731
|
+
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" };
|
|
11556
11732
|
if (vErrors === null) {
|
|
11557
|
-
vErrors = [
|
|
11733
|
+
vErrors = [err27];
|
|
11558
11734
|
} else {
|
|
11559
|
-
vErrors.push(
|
|
11735
|
+
vErrors.push(err27);
|
|
11560
11736
|
}
|
|
11561
11737
|
errors++;
|
|
11562
11738
|
}
|
|
@@ -11568,11 +11744,11 @@ function validate26(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
11568
11744
|
}
|
|
11569
11745
|
}
|
|
11570
11746
|
} else {
|
|
11571
|
-
const
|
|
11747
|
+
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" };
|
|
11572
11748
|
if (vErrors === null) {
|
|
11573
|
-
vErrors = [
|
|
11749
|
+
vErrors = [err28];
|
|
11574
11750
|
} else {
|
|
11575
|
-
vErrors.push(
|
|
11751
|
+
vErrors.push(err28);
|
|
11576
11752
|
}
|
|
11577
11753
|
errors++;
|
|
11578
11754
|
}
|
|
@@ -11585,11 +11761,11 @@ function validate26(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
11585
11761
|
}
|
|
11586
11762
|
}
|
|
11587
11763
|
if (!valid1) {
|
|
11588
|
-
const
|
|
11764
|
+
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" };
|
|
11589
11765
|
if (vErrors === null) {
|
|
11590
|
-
vErrors = [
|
|
11766
|
+
vErrors = [err29];
|
|
11591
11767
|
} else {
|
|
11592
|
-
vErrors.push(
|
|
11768
|
+
vErrors.push(err29);
|
|
11593
11769
|
}
|
|
11594
11770
|
errors++;
|
|
11595
11771
|
validate26.errors = vErrors;
|
|
@@ -12558,7 +12734,7 @@ function validate27(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
12558
12734
|
return errors === 0;
|
|
12559
12735
|
}
|
|
12560
12736
|
validate27.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
|
|
12561
|
-
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": {} };
|
|
12737
|
+
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": {} };
|
|
12562
12738
|
function validate28(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
12563
12739
|
;
|
|
12564
12740
|
let vErrors = null;
|
|
@@ -12586,6 +12762,11 @@ function validate28(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
12586
12762
|
if (func1(data0) < 1) {
|
|
12587
12763
|
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" }];
|
|
12588
12764
|
return false;
|
|
12765
|
+
} else {
|
|
12766
|
+
if (!pattern4.test(data0)) {
|
|
12767
|
+
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}$"' }];
|
|
12768
|
+
return false;
|
|
12769
|
+
}
|
|
12589
12770
|
}
|
|
12590
12771
|
} else {
|
|
12591
12772
|
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" }];
|
|
@@ -12598,10 +12779,18 @@ function validate28(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
12598
12779
|
}
|
|
12599
12780
|
if (valid1) {
|
|
12600
12781
|
if (data.shortId !== void 0) {
|
|
12782
|
+
let data1 = data.shortId;
|
|
12601
12783
|
const _errs5 = errors;
|
|
12602
|
-
if (
|
|
12603
|
-
|
|
12604
|
-
|
|
12784
|
+
if (errors === _errs5) {
|
|
12785
|
+
if (typeof data1 === "string") {
|
|
12786
|
+
if (!pattern5.test(data1)) {
|
|
12787
|
+
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}$"' }];
|
|
12788
|
+
return false;
|
|
12789
|
+
}
|
|
12790
|
+
} else {
|
|
12791
|
+
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" }];
|
|
12792
|
+
return false;
|
|
12793
|
+
}
|
|
12605
12794
|
}
|
|
12606
12795
|
var valid1 = _errs5 === errors;
|
|
12607
12796
|
} else {
|
|
@@ -13343,7 +13532,7 @@ function validate28(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
13343
13532
|
return errors === 0;
|
|
13344
13533
|
}
|
|
13345
13534
|
validate28.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
|
|
13346
|
-
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": {} };
|
|
13535
|
+
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": {} };
|
|
13347
13536
|
function validate29(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
13348
13537
|
;
|
|
13349
13538
|
let vErrors = null;
|
|
@@ -13381,6 +13570,11 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
13381
13570
|
if (func1(data1) < 1) {
|
|
13382
13571
|
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" }];
|
|
13383
13572
|
return false;
|
|
13573
|
+
} else {
|
|
13574
|
+
if (!pattern4.test(data1)) {
|
|
13575
|
+
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}$"' }];
|
|
13576
|
+
return false;
|
|
13577
|
+
}
|
|
13384
13578
|
}
|
|
13385
13579
|
} else {
|
|
13386
13580
|
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" }];
|
|
@@ -13393,10 +13587,18 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
13393
13587
|
}
|
|
13394
13588
|
if (valid2) {
|
|
13395
13589
|
if (data0.shortId !== void 0) {
|
|
13590
|
+
let data2 = data0.shortId;
|
|
13396
13591
|
const _errs8 = errors;
|
|
13397
|
-
if (
|
|
13398
|
-
|
|
13399
|
-
|
|
13592
|
+
if (errors === _errs8) {
|
|
13593
|
+
if (typeof data2 === "string") {
|
|
13594
|
+
if (!pattern5.test(data2)) {
|
|
13595
|
+
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}$"' }];
|
|
13596
|
+
return false;
|
|
13597
|
+
}
|
|
13598
|
+
} else {
|
|
13599
|
+
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" }];
|
|
13600
|
+
return false;
|
|
13601
|
+
}
|
|
13400
13602
|
}
|
|
13401
13603
|
var valid2 = _errs8 === errors;
|
|
13402
13604
|
} else {
|
|
@@ -13567,13 +13769,23 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
13567
13769
|
vErrors.push(err0);
|
|
13568
13770
|
}
|
|
13569
13771
|
errors++;
|
|
13772
|
+
} else {
|
|
13773
|
+
if (!pattern4.test(data14)) {
|
|
13774
|
+
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}$"' };
|
|
13775
|
+
if (vErrors === null) {
|
|
13776
|
+
vErrors = [err1];
|
|
13777
|
+
} else {
|
|
13778
|
+
vErrors.push(err1);
|
|
13779
|
+
}
|
|
13780
|
+
errors++;
|
|
13781
|
+
}
|
|
13570
13782
|
}
|
|
13571
13783
|
} else {
|
|
13572
|
-
const
|
|
13784
|
+
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" };
|
|
13573
13785
|
if (vErrors === null) {
|
|
13574
|
-
vErrors = [
|
|
13786
|
+
vErrors = [err2];
|
|
13575
13787
|
} else {
|
|
13576
|
-
vErrors.push(
|
|
13788
|
+
vErrors.push(err2);
|
|
13577
13789
|
}
|
|
13578
13790
|
errors++;
|
|
13579
13791
|
}
|
|
@@ -13582,22 +13794,22 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
13582
13794
|
valid5 = valid5 || _valid0;
|
|
13583
13795
|
const _errs36 = errors;
|
|
13584
13796
|
if (data14 !== null) {
|
|
13585
|
-
const
|
|
13797
|
+
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" };
|
|
13586
13798
|
if (vErrors === null) {
|
|
13587
|
-
vErrors = [
|
|
13799
|
+
vErrors = [err3];
|
|
13588
13800
|
} else {
|
|
13589
|
-
vErrors.push(
|
|
13801
|
+
vErrors.push(err3);
|
|
13590
13802
|
}
|
|
13591
13803
|
errors++;
|
|
13592
13804
|
}
|
|
13593
13805
|
var _valid0 = _errs36 === errors;
|
|
13594
13806
|
valid5 = valid5 || _valid0;
|
|
13595
13807
|
if (!valid5) {
|
|
13596
|
-
const
|
|
13808
|
+
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" };
|
|
13597
13809
|
if (vErrors === null) {
|
|
13598
|
-
vErrors = [
|
|
13810
|
+
vErrors = [err4];
|
|
13599
13811
|
} else {
|
|
13600
|
-
vErrors.push(
|
|
13812
|
+
vErrors.push(err4);
|
|
13601
13813
|
}
|
|
13602
13814
|
errors++;
|
|
13603
13815
|
validate29.errors = vErrors;
|
|
@@ -13903,6 +14115,11 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
13903
14115
|
if (func1(data34) < 1) {
|
|
13904
14116
|
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" }];
|
|
13905
14117
|
return false;
|
|
14118
|
+
} else {
|
|
14119
|
+
if (!pattern4.test(data34)) {
|
|
14120
|
+
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}$"' }];
|
|
14121
|
+
return false;
|
|
14122
|
+
}
|
|
13906
14123
|
}
|
|
13907
14124
|
} else {
|
|
13908
14125
|
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" }];
|
|
@@ -13915,10 +14132,18 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
13915
14132
|
}
|
|
13916
14133
|
if (valid10) {
|
|
13917
14134
|
if (data33.shortId !== void 0) {
|
|
14135
|
+
let data35 = data33.shortId;
|
|
13918
14136
|
const _errs80 = errors;
|
|
13919
|
-
if (
|
|
13920
|
-
|
|
13921
|
-
|
|
14137
|
+
if (errors === _errs80) {
|
|
14138
|
+
if (typeof data35 === "string") {
|
|
14139
|
+
if (!pattern5.test(data35)) {
|
|
14140
|
+
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}$"' }];
|
|
14141
|
+
return false;
|
|
14142
|
+
}
|
|
14143
|
+
} else {
|
|
14144
|
+
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" }];
|
|
14145
|
+
return false;
|
|
14146
|
+
}
|
|
13922
14147
|
}
|
|
13923
14148
|
var valid10 = _errs80 === errors;
|
|
13924
14149
|
} else {
|
|
@@ -14037,6 +14262,11 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
14037
14262
|
if (func1(data43) < 1) {
|
|
14038
14263
|
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" }];
|
|
14039
14264
|
return false;
|
|
14265
|
+
} else {
|
|
14266
|
+
if (!pattern4.test(data43)) {
|
|
14267
|
+
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}$"' }];
|
|
14268
|
+
return false;
|
|
14269
|
+
}
|
|
14040
14270
|
}
|
|
14041
14271
|
} else {
|
|
14042
14272
|
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" }];
|
|
@@ -14049,10 +14279,18 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
14049
14279
|
}
|
|
14050
14280
|
if (valid12) {
|
|
14051
14281
|
if (data42.shortId !== void 0) {
|
|
14282
|
+
let data44 = data42.shortId;
|
|
14052
14283
|
const _errs99 = errors;
|
|
14053
|
-
if (
|
|
14054
|
-
|
|
14055
|
-
|
|
14284
|
+
if (errors === _errs99) {
|
|
14285
|
+
if (typeof data44 === "string") {
|
|
14286
|
+
if (!pattern5.test(data44)) {
|
|
14287
|
+
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}$"' }];
|
|
14288
|
+
return false;
|
|
14289
|
+
}
|
|
14290
|
+
} else {
|
|
14291
|
+
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" }];
|
|
14292
|
+
return false;
|
|
14293
|
+
}
|
|
14056
14294
|
}
|
|
14057
14295
|
var valid12 = _errs99 === errors;
|
|
14058
14296
|
} else {
|
|
@@ -14374,22 +14612,22 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
14374
14612
|
if (data64 && typeof data64 == "object" && !Array.isArray(data64)) {
|
|
14375
14613
|
let missing7;
|
|
14376
14614
|
if (data64.kind === void 0 && (missing7 = "kind") || data64.userId === void 0 && (missing7 = "userId") || data64.displayName === void 0 && (missing7 = "displayName")) {
|
|
14377
|
-
const
|
|
14615
|
+
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 + "'" };
|
|
14378
14616
|
if (vErrors === null) {
|
|
14379
|
-
vErrors = [
|
|
14617
|
+
vErrors = [err5];
|
|
14380
14618
|
} else {
|
|
14381
|
-
vErrors.push(
|
|
14619
|
+
vErrors.push(err5);
|
|
14382
14620
|
}
|
|
14383
14621
|
errors++;
|
|
14384
14622
|
} else {
|
|
14385
14623
|
const _errs146 = errors;
|
|
14386
14624
|
for (const key0 in data64) {
|
|
14387
14625
|
if (!(key0 === "kind" || key0 === "userId" || key0 === "displayName")) {
|
|
14388
|
-
const
|
|
14626
|
+
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" };
|
|
14389
14627
|
if (vErrors === null) {
|
|
14390
|
-
vErrors = [
|
|
14628
|
+
vErrors = [err6];
|
|
14391
14629
|
} else {
|
|
14392
|
-
vErrors.push(
|
|
14630
|
+
vErrors.push(err6);
|
|
14393
14631
|
}
|
|
14394
14632
|
errors++;
|
|
14395
14633
|
break;
|
|
@@ -14400,20 +14638,20 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
14400
14638
|
let data65 = data64.kind;
|
|
14401
14639
|
const _errs147 = errors;
|
|
14402
14640
|
if (typeof data65 !== "string") {
|
|
14403
|
-
const
|
|
14641
|
+
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" };
|
|
14404
14642
|
if (vErrors === null) {
|
|
14405
|
-
vErrors = [
|
|
14643
|
+
vErrors = [err7];
|
|
14406
14644
|
} else {
|
|
14407
|
-
vErrors.push(
|
|
14645
|
+
vErrors.push(err7);
|
|
14408
14646
|
}
|
|
14409
14647
|
errors++;
|
|
14410
14648
|
}
|
|
14411
14649
|
if ("user" !== data65) {
|
|
14412
|
-
const
|
|
14650
|
+
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" };
|
|
14413
14651
|
if (vErrors === null) {
|
|
14414
|
-
vErrors = [
|
|
14652
|
+
vErrors = [err8];
|
|
14415
14653
|
} else {
|
|
14416
|
-
vErrors.push(
|
|
14654
|
+
vErrors.push(err8);
|
|
14417
14655
|
}
|
|
14418
14656
|
errors++;
|
|
14419
14657
|
}
|
|
@@ -14428,20 +14666,20 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
14428
14666
|
if (errors === _errs149) {
|
|
14429
14667
|
if (typeof data66 === "string") {
|
|
14430
14668
|
if (func1(data66) < 1) {
|
|
14431
|
-
const
|
|
14669
|
+
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" };
|
|
14432
14670
|
if (vErrors === null) {
|
|
14433
|
-
vErrors = [
|
|
14671
|
+
vErrors = [err9];
|
|
14434
14672
|
} else {
|
|
14435
|
-
vErrors.push(
|
|
14673
|
+
vErrors.push(err9);
|
|
14436
14674
|
}
|
|
14437
14675
|
errors++;
|
|
14438
14676
|
}
|
|
14439
14677
|
} else {
|
|
14440
|
-
const
|
|
14678
|
+
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" };
|
|
14441
14679
|
if (vErrors === null) {
|
|
14442
|
-
vErrors = [
|
|
14680
|
+
vErrors = [err10];
|
|
14443
14681
|
} else {
|
|
14444
|
-
vErrors.push(
|
|
14682
|
+
vErrors.push(err10);
|
|
14445
14683
|
}
|
|
14446
14684
|
errors++;
|
|
14447
14685
|
}
|
|
@@ -14454,11 +14692,11 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
14454
14692
|
if (data64.displayName !== void 0) {
|
|
14455
14693
|
const _errs151 = errors;
|
|
14456
14694
|
if (typeof data64.displayName !== "string") {
|
|
14457
|
-
const
|
|
14695
|
+
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" };
|
|
14458
14696
|
if (vErrors === null) {
|
|
14459
|
-
vErrors = [
|
|
14697
|
+
vErrors = [err11];
|
|
14460
14698
|
} else {
|
|
14461
|
-
vErrors.push(
|
|
14699
|
+
vErrors.push(err11);
|
|
14462
14700
|
}
|
|
14463
14701
|
errors++;
|
|
14464
14702
|
}
|
|
@@ -14471,11 +14709,11 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
14471
14709
|
}
|
|
14472
14710
|
}
|
|
14473
14711
|
} else {
|
|
14474
|
-
const
|
|
14712
|
+
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" };
|
|
14475
14713
|
if (vErrors === null) {
|
|
14476
|
-
vErrors = [
|
|
14714
|
+
vErrors = [err12];
|
|
14477
14715
|
} else {
|
|
14478
|
-
vErrors.push(
|
|
14716
|
+
vErrors.push(err12);
|
|
14479
14717
|
}
|
|
14480
14718
|
errors++;
|
|
14481
14719
|
}
|
|
@@ -14491,22 +14729,22 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
14491
14729
|
if (data64 && typeof data64 == "object" && !Array.isArray(data64)) {
|
|
14492
14730
|
let missing8;
|
|
14493
14731
|
if (data64.kind === void 0 && (missing8 = "kind") || data64.role === void 0 && (missing8 = "role")) {
|
|
14494
|
-
const
|
|
14732
|
+
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 + "'" };
|
|
14495
14733
|
if (vErrors === null) {
|
|
14496
|
-
vErrors = [
|
|
14734
|
+
vErrors = [err13];
|
|
14497
14735
|
} else {
|
|
14498
|
-
vErrors.push(
|
|
14736
|
+
vErrors.push(err13);
|
|
14499
14737
|
}
|
|
14500
14738
|
errors++;
|
|
14501
14739
|
} else {
|
|
14502
14740
|
const _errs155 = errors;
|
|
14503
14741
|
for (const key1 in data64) {
|
|
14504
14742
|
if (!(key1 === "kind" || key1 === "role")) {
|
|
14505
|
-
const
|
|
14743
|
+
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" };
|
|
14506
14744
|
if (vErrors === null) {
|
|
14507
|
-
vErrors = [
|
|
14745
|
+
vErrors = [err14];
|
|
14508
14746
|
} else {
|
|
14509
|
-
vErrors.push(
|
|
14747
|
+
vErrors.push(err14);
|
|
14510
14748
|
}
|
|
14511
14749
|
errors++;
|
|
14512
14750
|
break;
|
|
@@ -14517,20 +14755,20 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
14517
14755
|
let data68 = data64.kind;
|
|
14518
14756
|
const _errs156 = errors;
|
|
14519
14757
|
if (typeof data68 !== "string") {
|
|
14520
|
-
const
|
|
14758
|
+
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" };
|
|
14521
14759
|
if (vErrors === null) {
|
|
14522
|
-
vErrors = [
|
|
14760
|
+
vErrors = [err15];
|
|
14523
14761
|
} else {
|
|
14524
|
-
vErrors.push(
|
|
14762
|
+
vErrors.push(err15);
|
|
14525
14763
|
}
|
|
14526
14764
|
errors++;
|
|
14527
14765
|
}
|
|
14528
14766
|
if ("role" !== data68) {
|
|
14529
|
-
const
|
|
14767
|
+
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" };
|
|
14530
14768
|
if (vErrors === null) {
|
|
14531
|
-
vErrors = [
|
|
14769
|
+
vErrors = [err16];
|
|
14532
14770
|
} else {
|
|
14533
|
-
vErrors.push(
|
|
14771
|
+
vErrors.push(err16);
|
|
14534
14772
|
}
|
|
14535
14773
|
errors++;
|
|
14536
14774
|
}
|
|
@@ -14543,20 +14781,20 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
14543
14781
|
let data69 = data64.role;
|
|
14544
14782
|
const _errs158 = errors;
|
|
14545
14783
|
if (typeof data69 !== "string") {
|
|
14546
|
-
const
|
|
14784
|
+
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" };
|
|
14547
14785
|
if (vErrors === null) {
|
|
14548
|
-
vErrors = [
|
|
14786
|
+
vErrors = [err17];
|
|
14549
14787
|
} else {
|
|
14550
|
-
vErrors.push(
|
|
14788
|
+
vErrors.push(err17);
|
|
14551
14789
|
}
|
|
14552
14790
|
errors++;
|
|
14553
14791
|
}
|
|
14554
14792
|
if (!(data69 === "owner" || data69 === "admin" || data69 === "member")) {
|
|
14555
|
-
const
|
|
14793
|
+
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" };
|
|
14556
14794
|
if (vErrors === null) {
|
|
14557
|
-
vErrors = [
|
|
14795
|
+
vErrors = [err18];
|
|
14558
14796
|
} else {
|
|
14559
|
-
vErrors.push(
|
|
14797
|
+
vErrors.push(err18);
|
|
14560
14798
|
}
|
|
14561
14799
|
errors++;
|
|
14562
14800
|
}
|
|
@@ -14568,11 +14806,11 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
14568
14806
|
}
|
|
14569
14807
|
}
|
|
14570
14808
|
} else {
|
|
14571
|
-
const
|
|
14809
|
+
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" };
|
|
14572
14810
|
if (vErrors === null) {
|
|
14573
|
-
vErrors = [
|
|
14811
|
+
vErrors = [err19];
|
|
14574
14812
|
} else {
|
|
14575
|
-
vErrors.push(
|
|
14813
|
+
vErrors.push(err19);
|
|
14576
14814
|
}
|
|
14577
14815
|
errors++;
|
|
14578
14816
|
}
|
|
@@ -14594,22 +14832,22 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
14594
14832
|
if (data64 && typeof data64 == "object" && !Array.isArray(data64)) {
|
|
14595
14833
|
let missing9;
|
|
14596
14834
|
if (data64.kind === void 0 && (missing9 = "kind") || data64.agent === void 0 && (missing9 = "agent")) {
|
|
14597
|
-
const
|
|
14835
|
+
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 + "'" };
|
|
14598
14836
|
if (vErrors === null) {
|
|
14599
|
-
vErrors = [
|
|
14837
|
+
vErrors = [err20];
|
|
14600
14838
|
} else {
|
|
14601
|
-
vErrors.push(
|
|
14839
|
+
vErrors.push(err20);
|
|
14602
14840
|
}
|
|
14603
14841
|
errors++;
|
|
14604
14842
|
} else {
|
|
14605
14843
|
const _errs162 = errors;
|
|
14606
14844
|
for (const key2 in data64) {
|
|
14607
14845
|
if (!(key2 === "kind" || key2 === "agent")) {
|
|
14608
|
-
const
|
|
14846
|
+
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" };
|
|
14609
14847
|
if (vErrors === null) {
|
|
14610
|
-
vErrors = [
|
|
14848
|
+
vErrors = [err21];
|
|
14611
14849
|
} else {
|
|
14612
|
-
vErrors.push(
|
|
14850
|
+
vErrors.push(err21);
|
|
14613
14851
|
}
|
|
14614
14852
|
errors++;
|
|
14615
14853
|
break;
|
|
@@ -14620,20 +14858,20 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
14620
14858
|
let data70 = data64.kind;
|
|
14621
14859
|
const _errs163 = errors;
|
|
14622
14860
|
if (typeof data70 !== "string") {
|
|
14623
|
-
const
|
|
14861
|
+
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" };
|
|
14624
14862
|
if (vErrors === null) {
|
|
14625
|
-
vErrors = [
|
|
14863
|
+
vErrors = [err22];
|
|
14626
14864
|
} else {
|
|
14627
|
-
vErrors.push(
|
|
14865
|
+
vErrors.push(err22);
|
|
14628
14866
|
}
|
|
14629
14867
|
errors++;
|
|
14630
14868
|
}
|
|
14631
14869
|
if ("agent" !== data70) {
|
|
14632
|
-
const
|
|
14870
|
+
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" };
|
|
14633
14871
|
if (vErrors === null) {
|
|
14634
|
-
vErrors = [
|
|
14872
|
+
vErrors = [err23];
|
|
14635
14873
|
} else {
|
|
14636
|
-
vErrors.push(
|
|
14874
|
+
vErrors.push(err23);
|
|
14637
14875
|
}
|
|
14638
14876
|
errors++;
|
|
14639
14877
|
}
|
|
@@ -14646,20 +14884,20 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
14646
14884
|
let data71 = data64.agent;
|
|
14647
14885
|
const _errs165 = errors;
|
|
14648
14886
|
if (typeof data71 !== "string") {
|
|
14649
|
-
const
|
|
14887
|
+
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" };
|
|
14650
14888
|
if (vErrors === null) {
|
|
14651
|
-
vErrors = [
|
|
14889
|
+
vErrors = [err24];
|
|
14652
14890
|
} else {
|
|
14653
|
-
vErrors.push(
|
|
14891
|
+
vErrors.push(err24);
|
|
14654
14892
|
}
|
|
14655
14893
|
errors++;
|
|
14656
14894
|
}
|
|
14657
14895
|
if (!(data71 === "claude_code" || data71 === "codex" || data71 === "cursor" || data71 === "hermes")) {
|
|
14658
|
-
const
|
|
14896
|
+
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" };
|
|
14659
14897
|
if (vErrors === null) {
|
|
14660
|
-
vErrors = [
|
|
14898
|
+
vErrors = [err25];
|
|
14661
14899
|
} else {
|
|
14662
|
-
vErrors.push(
|
|
14900
|
+
vErrors.push(err25);
|
|
14663
14901
|
}
|
|
14664
14902
|
errors++;
|
|
14665
14903
|
}
|
|
@@ -14671,11 +14909,11 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
14671
14909
|
}
|
|
14672
14910
|
}
|
|
14673
14911
|
} else {
|
|
14674
|
-
const
|
|
14912
|
+
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" };
|
|
14675
14913
|
if (vErrors === null) {
|
|
14676
|
-
vErrors = [
|
|
14914
|
+
vErrors = [err26];
|
|
14677
14915
|
} else {
|
|
14678
|
-
vErrors.push(
|
|
14916
|
+
vErrors.push(err26);
|
|
14679
14917
|
}
|
|
14680
14918
|
errors++;
|
|
14681
14919
|
}
|
|
@@ -14697,22 +14935,22 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
14697
14935
|
if (data64 && typeof data64 == "object" && !Array.isArray(data64)) {
|
|
14698
14936
|
let missing10;
|
|
14699
14937
|
if (data64.kind === void 0 && (missing10 = "kind") || data64.credential === void 0 && (missing10 = "credential")) {
|
|
14700
|
-
const
|
|
14938
|
+
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 + "'" };
|
|
14701
14939
|
if (vErrors === null) {
|
|
14702
|
-
vErrors = [
|
|
14940
|
+
vErrors = [err27];
|
|
14703
14941
|
} else {
|
|
14704
|
-
vErrors.push(
|
|
14942
|
+
vErrors.push(err27);
|
|
14705
14943
|
}
|
|
14706
14944
|
errors++;
|
|
14707
14945
|
} else {
|
|
14708
14946
|
const _errs169 = errors;
|
|
14709
14947
|
for (const key3 in data64) {
|
|
14710
14948
|
if (!(key3 === "kind" || key3 === "credential")) {
|
|
14711
|
-
const
|
|
14949
|
+
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" };
|
|
14712
14950
|
if (vErrors === null) {
|
|
14713
|
-
vErrors = [
|
|
14951
|
+
vErrors = [err28];
|
|
14714
14952
|
} else {
|
|
14715
|
-
vErrors.push(
|
|
14953
|
+
vErrors.push(err28);
|
|
14716
14954
|
}
|
|
14717
14955
|
errors++;
|
|
14718
14956
|
break;
|
|
@@ -14723,20 +14961,20 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
14723
14961
|
let data72 = data64.kind;
|
|
14724
14962
|
const _errs170 = errors;
|
|
14725
14963
|
if (typeof data72 !== "string") {
|
|
14726
|
-
const
|
|
14964
|
+
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" };
|
|
14727
14965
|
if (vErrors === null) {
|
|
14728
|
-
vErrors = [
|
|
14966
|
+
vErrors = [err29];
|
|
14729
14967
|
} else {
|
|
14730
|
-
vErrors.push(
|
|
14968
|
+
vErrors.push(err29);
|
|
14731
14969
|
}
|
|
14732
14970
|
errors++;
|
|
14733
14971
|
}
|
|
14734
14972
|
if ("credential" !== data72) {
|
|
14735
|
-
const
|
|
14973
|
+
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" };
|
|
14736
14974
|
if (vErrors === null) {
|
|
14737
|
-
vErrors = [
|
|
14975
|
+
vErrors = [err30];
|
|
14738
14976
|
} else {
|
|
14739
|
-
vErrors.push(
|
|
14977
|
+
vErrors.push(err30);
|
|
14740
14978
|
}
|
|
14741
14979
|
errors++;
|
|
14742
14980
|
}
|
|
@@ -14749,20 +14987,20 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
14749
14987
|
let data73 = data64.credential;
|
|
14750
14988
|
const _errs172 = errors;
|
|
14751
14989
|
if (typeof data73 !== "string") {
|
|
14752
|
-
const
|
|
14990
|
+
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" };
|
|
14753
14991
|
if (vErrors === null) {
|
|
14754
|
-
vErrors = [
|
|
14992
|
+
vErrors = [err31];
|
|
14755
14993
|
} else {
|
|
14756
|
-
vErrors.push(
|
|
14994
|
+
vErrors.push(err31);
|
|
14757
14995
|
}
|
|
14758
14996
|
errors++;
|
|
14759
14997
|
}
|
|
14760
14998
|
if (!(data73 === "workos_jwt" || data73 === "workos_api_key" || data73 === "service_token")) {
|
|
14761
|
-
const
|
|
14999
|
+
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" };
|
|
14762
15000
|
if (vErrors === null) {
|
|
14763
|
-
vErrors = [
|
|
15001
|
+
vErrors = [err32];
|
|
14764
15002
|
} else {
|
|
14765
|
-
vErrors.push(
|
|
15003
|
+
vErrors.push(err32);
|
|
14766
15004
|
}
|
|
14767
15005
|
errors++;
|
|
14768
15006
|
}
|
|
@@ -14774,11 +15012,11 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
14774
15012
|
}
|
|
14775
15013
|
}
|
|
14776
15014
|
} else {
|
|
14777
|
-
const
|
|
15015
|
+
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" };
|
|
14778
15016
|
if (vErrors === null) {
|
|
14779
|
-
vErrors = [
|
|
15017
|
+
vErrors = [err33];
|
|
14780
15018
|
} else {
|
|
14781
|
-
vErrors.push(
|
|
15019
|
+
vErrors.push(err33);
|
|
14782
15020
|
}
|
|
14783
15021
|
errors++;
|
|
14784
15022
|
}
|
|
@@ -14799,11 +15037,11 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
14799
15037
|
}
|
|
14800
15038
|
}
|
|
14801
15039
|
if (!valid20) {
|
|
14802
|
-
const
|
|
15040
|
+
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" };
|
|
14803
15041
|
if (vErrors === null) {
|
|
14804
|
-
vErrors = [
|
|
15042
|
+
vErrors = [err34];
|
|
14805
15043
|
} else {
|
|
14806
|
-
vErrors.push(
|
|
15044
|
+
vErrors.push(err34);
|
|
14807
15045
|
}
|
|
14808
15046
|
errors++;
|
|
14809
15047
|
validate29.errors = vErrors;
|
|
@@ -15106,7 +15344,7 @@ function validate32(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
15106
15344
|
return errors === 0;
|
|
15107
15345
|
}
|
|
15108
15346
|
validate32.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
|
|
15109
|
-
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": {} };
|
|
15347
|
+
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": {} };
|
|
15110
15348
|
function validate33(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
15111
15349
|
;
|
|
15112
15350
|
let vErrors = null;
|
|
@@ -15150,6 +15388,11 @@ function validate33(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
15150
15388
|
if (func1(data1) < 1) {
|
|
15151
15389
|
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" }];
|
|
15152
15390
|
return false;
|
|
15391
|
+
} else {
|
|
15392
|
+
if (!pattern4.test(data1)) {
|
|
15393
|
+
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}$"' }];
|
|
15394
|
+
return false;
|
|
15395
|
+
}
|
|
15153
15396
|
}
|
|
15154
15397
|
} else {
|
|
15155
15398
|
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" }];
|
|
@@ -15162,10 +15405,18 @@ function validate33(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
15162
15405
|
}
|
|
15163
15406
|
if (valid1) {
|
|
15164
15407
|
if (data.childShortId !== void 0) {
|
|
15408
|
+
let data2 = data.childShortId;
|
|
15165
15409
|
const _errs7 = errors;
|
|
15166
|
-
if (
|
|
15167
|
-
|
|
15168
|
-
|
|
15410
|
+
if (errors === _errs7) {
|
|
15411
|
+
if (typeof data2 === "string") {
|
|
15412
|
+
if (!pattern5.test(data2)) {
|
|
15413
|
+
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}$"' }];
|
|
15414
|
+
return false;
|
|
15415
|
+
}
|
|
15416
|
+
} else {
|
|
15417
|
+
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" }];
|
|
15418
|
+
return false;
|
|
15419
|
+
}
|
|
15169
15420
|
}
|
|
15170
15421
|
var valid1 = _errs7 === errors;
|
|
15171
15422
|
} else {
|
|
@@ -15180,6 +15431,11 @@ function validate33(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
15180
15431
|
if (func1(data3) < 1) {
|
|
15181
15432
|
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" }];
|
|
15182
15433
|
return false;
|
|
15434
|
+
} else {
|
|
15435
|
+
if (!pattern4.test(data3)) {
|
|
15436
|
+
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}$"' }];
|
|
15437
|
+
return false;
|
|
15438
|
+
}
|
|
15183
15439
|
}
|
|
15184
15440
|
} else {
|
|
15185
15441
|
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" }];
|
|
@@ -15192,10 +15448,18 @@ function validate33(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
15192
15448
|
}
|
|
15193
15449
|
if (valid1) {
|
|
15194
15450
|
if (data.parentShortId !== void 0) {
|
|
15451
|
+
let data4 = data.parentShortId;
|
|
15195
15452
|
const _errs11 = errors;
|
|
15196
|
-
if (
|
|
15197
|
-
|
|
15198
|
-
|
|
15453
|
+
if (errors === _errs11) {
|
|
15454
|
+
if (typeof data4 === "string") {
|
|
15455
|
+
if (!pattern5.test(data4)) {
|
|
15456
|
+
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}$"' }];
|
|
15457
|
+
return false;
|
|
15458
|
+
}
|
|
15459
|
+
} else {
|
|
15460
|
+
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" }];
|
|
15461
|
+
return false;
|
|
15462
|
+
}
|
|
15199
15463
|
}
|
|
15200
15464
|
var valid1 = _errs11 === errors;
|
|
15201
15465
|
} else {
|
|
@@ -16111,7 +16375,7 @@ function validate34(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
16111
16375
|
return errors === 0;
|
|
16112
16376
|
}
|
|
16113
16377
|
validate34.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
|
|
16114
|
-
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": {} }] };
|
|
16378
|
+
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": {} }] };
|
|
16115
16379
|
function validate35(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
16116
16380
|
;
|
|
16117
16381
|
let vErrors = null;
|
|
@@ -17083,13 +17347,23 @@ function validate35(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
17083
17347
|
vErrors.push(err61);
|
|
17084
17348
|
}
|
|
17085
17349
|
errors++;
|
|
17350
|
+
} else {
|
|
17351
|
+
if (!pattern4.test(data28)) {
|
|
17352
|
+
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}$"' };
|
|
17353
|
+
if (vErrors === null) {
|
|
17354
|
+
vErrors = [err62];
|
|
17355
|
+
} else {
|
|
17356
|
+
vErrors.push(err62);
|
|
17357
|
+
}
|
|
17358
|
+
errors++;
|
|
17359
|
+
}
|
|
17086
17360
|
}
|
|
17087
17361
|
} else {
|
|
17088
|
-
const
|
|
17362
|
+
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" };
|
|
17089
17363
|
if (vErrors === null) {
|
|
17090
|
-
vErrors = [
|
|
17364
|
+
vErrors = [err63];
|
|
17091
17365
|
} else {
|
|
17092
|
-
vErrors.push(
|
|
17366
|
+
vErrors.push(err63);
|
|
17093
17367
|
}
|
|
17094
17368
|
errors++;
|
|
17095
17369
|
}
|
|
@@ -17100,15 +17374,28 @@ function validate35(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
17100
17374
|
}
|
|
17101
17375
|
if (valid16) {
|
|
17102
17376
|
if (data.shortId !== void 0) {
|
|
17377
|
+
let data29 = data.shortId;
|
|
17103
17378
|
const _errs81 = errors;
|
|
17104
|
-
if (
|
|
17105
|
-
|
|
17106
|
-
|
|
17107
|
-
|
|
17379
|
+
if (errors === _errs81) {
|
|
17380
|
+
if (typeof data29 === "string") {
|
|
17381
|
+
if (!pattern5.test(data29)) {
|
|
17382
|
+
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}$"' };
|
|
17383
|
+
if (vErrors === null) {
|
|
17384
|
+
vErrors = [err64];
|
|
17385
|
+
} else {
|
|
17386
|
+
vErrors.push(err64);
|
|
17387
|
+
}
|
|
17388
|
+
errors++;
|
|
17389
|
+
}
|
|
17108
17390
|
} else {
|
|
17109
|
-
|
|
17391
|
+
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" };
|
|
17392
|
+
if (vErrors === null) {
|
|
17393
|
+
vErrors = [err65];
|
|
17394
|
+
} else {
|
|
17395
|
+
vErrors.push(err65);
|
|
17396
|
+
}
|
|
17397
|
+
errors++;
|
|
17110
17398
|
}
|
|
17111
|
-
errors++;
|
|
17112
17399
|
}
|
|
17113
17400
|
var valid16 = _errs81 === errors;
|
|
17114
17401
|
} else {
|
|
@@ -17119,20 +17406,20 @@ function validate35(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
17119
17406
|
let data30 = data.stage;
|
|
17120
17407
|
const _errs83 = errors;
|
|
17121
17408
|
if (typeof data30 !== "string") {
|
|
17122
|
-
const
|
|
17409
|
+
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" };
|
|
17123
17410
|
if (vErrors === null) {
|
|
17124
|
-
vErrors = [
|
|
17411
|
+
vErrors = [err66];
|
|
17125
17412
|
} else {
|
|
17126
|
-
vErrors.push(
|
|
17413
|
+
vErrors.push(err66);
|
|
17127
17414
|
}
|
|
17128
17415
|
errors++;
|
|
17129
17416
|
}
|
|
17130
17417
|
if (!(data30 === "draft" || data30 === "provisional" || data30 === "adopted" || data30 === "superseded" || data30 === "abandoned")) {
|
|
17131
|
-
const
|
|
17418
|
+
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" };
|
|
17132
17419
|
if (vErrors === null) {
|
|
17133
|
-
vErrors = [
|
|
17420
|
+
vErrors = [err67];
|
|
17134
17421
|
} else {
|
|
17135
|
-
vErrors.push(
|
|
17422
|
+
vErrors.push(err67);
|
|
17136
17423
|
}
|
|
17137
17424
|
errors++;
|
|
17138
17425
|
}
|
|
@@ -17148,11 +17435,11 @@ function validate35(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
17148
17435
|
if (data31 && typeof data31 == "object" && !Array.isArray(data31)) {
|
|
17149
17436
|
let missing8;
|
|
17150
17437
|
if (data31.location === void 0 && (missing8 = "location") || data31.time === void 0 && (missing8 = "time") || data31.users === void 0 && (missing8 = "users")) {
|
|
17151
|
-
const
|
|
17438
|
+
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 + "'" };
|
|
17152
17439
|
if (vErrors === null) {
|
|
17153
|
-
vErrors = [
|
|
17440
|
+
vErrors = [err68];
|
|
17154
17441
|
} else {
|
|
17155
|
-
vErrors.push(
|
|
17442
|
+
vErrors.push(err68);
|
|
17156
17443
|
}
|
|
17157
17444
|
errors++;
|
|
17158
17445
|
} else {
|
|
@@ -17163,11 +17450,11 @@ function validate35(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
17163
17450
|
if (data32 && typeof data32 == "object" && !Array.isArray(data32)) {
|
|
17164
17451
|
let missing9;
|
|
17165
17452
|
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")) {
|
|
17166
|
-
const
|
|
17453
|
+
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 + "'" };
|
|
17167
17454
|
if (vErrors === null) {
|
|
17168
|
-
vErrors = [
|
|
17455
|
+
vErrors = [err69];
|
|
17169
17456
|
} else {
|
|
17170
|
-
vErrors.push(
|
|
17457
|
+
vErrors.push(err69);
|
|
17171
17458
|
}
|
|
17172
17459
|
errors++;
|
|
17173
17460
|
} else {
|
|
@@ -17175,20 +17462,20 @@ function validate35(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
17175
17462
|
let data33 = data32.mode;
|
|
17176
17463
|
const _errs91 = errors;
|
|
17177
17464
|
if (typeof data33 !== "string") {
|
|
17178
|
-
const
|
|
17465
|
+
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" };
|
|
17179
17466
|
if (vErrors === null) {
|
|
17180
|
-
vErrors = [
|
|
17467
|
+
vErrors = [err70];
|
|
17181
17468
|
} else {
|
|
17182
|
-
vErrors.push(
|
|
17469
|
+
vErrors.push(err70);
|
|
17183
17470
|
}
|
|
17184
17471
|
errors++;
|
|
17185
17472
|
}
|
|
17186
17473
|
if (!(data33 === "inherited" || data33 === "explicit")) {
|
|
17187
|
-
const
|
|
17474
|
+
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" };
|
|
17188
17475
|
if (vErrors === null) {
|
|
17189
|
-
vErrors = [
|
|
17476
|
+
vErrors = [err71];
|
|
17190
17477
|
} else {
|
|
17191
|
-
vErrors.push(
|
|
17478
|
+
vErrors.push(err71);
|
|
17192
17479
|
}
|
|
17193
17480
|
errors++;
|
|
17194
17481
|
}
|
|
@@ -17200,11 +17487,11 @@ function validate35(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
17200
17487
|
if (data32.repository !== void 0) {
|
|
17201
17488
|
const _errs93 = errors;
|
|
17202
17489
|
if (typeof data32.repository !== "boolean") {
|
|
17203
|
-
const
|
|
17490
|
+
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" };
|
|
17204
17491
|
if (vErrors === null) {
|
|
17205
|
-
vErrors = [
|
|
17492
|
+
vErrors = [err72];
|
|
17206
17493
|
} else {
|
|
17207
|
-
vErrors.push(
|
|
17494
|
+
vErrors.push(err72);
|
|
17208
17495
|
}
|
|
17209
17496
|
errors++;
|
|
17210
17497
|
}
|
|
@@ -17223,11 +17510,11 @@ function validate35(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
17223
17510
|
for (let i5 = 0; i5 < len5; i5++) {
|
|
17224
17511
|
const _errs97 = errors;
|
|
17225
17512
|
if (typeof data35[i5] !== "string") {
|
|
17226
|
-
const
|
|
17513
|
+
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" };
|
|
17227
17514
|
if (vErrors === null) {
|
|
17228
|
-
vErrors = [
|
|
17515
|
+
vErrors = [err73];
|
|
17229
17516
|
} else {
|
|
17230
|
-
vErrors.push(
|
|
17517
|
+
vErrors.push(err73);
|
|
17231
17518
|
}
|
|
17232
17519
|
errors++;
|
|
17233
17520
|
}
|
|
@@ -17237,11 +17524,11 @@ function validate35(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
17237
17524
|
}
|
|
17238
17525
|
}
|
|
17239
17526
|
} else {
|
|
17240
|
-
const
|
|
17527
|
+
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" };
|
|
17241
17528
|
if (vErrors === null) {
|
|
17242
|
-
vErrors = [
|
|
17529
|
+
vErrors = [err74];
|
|
17243
17530
|
} else {
|
|
17244
|
-
vErrors.push(
|
|
17531
|
+
vErrors.push(err74);
|
|
17245
17532
|
}
|
|
17246
17533
|
errors++;
|
|
17247
17534
|
}
|
|
@@ -17261,11 +17548,11 @@ function validate35(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
17261
17548
|
for (let i6 = 0; i6 < len6; i6++) {
|
|
17262
17549
|
const _errs101 = errors;
|
|
17263
17550
|
if (typeof data37[i6] !== "string") {
|
|
17264
|
-
const
|
|
17551
|
+
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" };
|
|
17265
17552
|
if (vErrors === null) {
|
|
17266
|
-
vErrors = [
|
|
17553
|
+
vErrors = [err75];
|
|
17267
17554
|
} else {
|
|
17268
|
-
vErrors.push(
|
|
17555
|
+
vErrors.push(err75);
|
|
17269
17556
|
}
|
|
17270
17557
|
errors++;
|
|
17271
17558
|
}
|
|
@@ -17275,11 +17562,11 @@ function validate35(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
17275
17562
|
}
|
|
17276
17563
|
}
|
|
17277
17564
|
} else {
|
|
17278
|
-
const
|
|
17565
|
+
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" };
|
|
17279
17566
|
if (vErrors === null) {
|
|
17280
|
-
vErrors = [
|
|
17567
|
+
vErrors = [err76];
|
|
17281
17568
|
} else {
|
|
17282
|
-
vErrors.push(
|
|
17569
|
+
vErrors.push(err76);
|
|
17283
17570
|
}
|
|
17284
17571
|
errors++;
|
|
17285
17572
|
}
|
|
@@ -17299,11 +17586,11 @@ function validate35(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
17299
17586
|
for (let i7 = 0; i7 < len7; i7++) {
|
|
17300
17587
|
const _errs105 = errors;
|
|
17301
17588
|
if (typeof data39[i7] !== "string") {
|
|
17302
|
-
const
|
|
17589
|
+
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" };
|
|
17303
17590
|
if (vErrors === null) {
|
|
17304
|
-
vErrors = [
|
|
17591
|
+
vErrors = [err77];
|
|
17305
17592
|
} else {
|
|
17306
|
-
vErrors.push(
|
|
17593
|
+
vErrors.push(err77);
|
|
17307
17594
|
}
|
|
17308
17595
|
errors++;
|
|
17309
17596
|
}
|
|
@@ -17313,11 +17600,11 @@ function validate35(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
17313
17600
|
}
|
|
17314
17601
|
}
|
|
17315
17602
|
} else {
|
|
17316
|
-
const
|
|
17603
|
+
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" };
|
|
17317
17604
|
if (vErrors === null) {
|
|
17318
|
-
vErrors = [
|
|
17605
|
+
vErrors = [err78];
|
|
17319
17606
|
} else {
|
|
17320
|
-
vErrors.push(
|
|
17607
|
+
vErrors.push(err78);
|
|
17321
17608
|
}
|
|
17322
17609
|
errors++;
|
|
17323
17610
|
}
|
|
@@ -17332,11 +17619,11 @@ function validate35(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
17332
17619
|
}
|
|
17333
17620
|
}
|
|
17334
17621
|
} else {
|
|
17335
|
-
const
|
|
17622
|
+
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" };
|
|
17336
17623
|
if (vErrors === null) {
|
|
17337
|
-
vErrors = [
|
|
17624
|
+
vErrors = [err79];
|
|
17338
17625
|
} else {
|
|
17339
|
-
vErrors.push(
|
|
17626
|
+
vErrors.push(err79);
|
|
17340
17627
|
}
|
|
17341
17628
|
errors++;
|
|
17342
17629
|
}
|
|
@@ -17355,31 +17642,31 @@ function validate35(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
17355
17642
|
let data42 = data41.effectiveFrom;
|
|
17356
17643
|
const _errs110 = errors;
|
|
17357
17644
|
if (!(typeof data42 == "number" && (!(data42 % 1) && !isNaN(data42)) && isFinite(data42))) {
|
|
17358
|
-
const
|
|
17645
|
+
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" };
|
|
17359
17646
|
if (vErrors === null) {
|
|
17360
|
-
vErrors = [
|
|
17647
|
+
vErrors = [err80];
|
|
17361
17648
|
} else {
|
|
17362
|
-
vErrors.push(
|
|
17649
|
+
vErrors.push(err80);
|
|
17363
17650
|
}
|
|
17364
17651
|
errors++;
|
|
17365
17652
|
}
|
|
17366
17653
|
if (errors === _errs110) {
|
|
17367
17654
|
if (typeof data42 == "number" && isFinite(data42)) {
|
|
17368
17655
|
if (data42 > 9007199254740991 || isNaN(data42)) {
|
|
17369
|
-
const
|
|
17656
|
+
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" };
|
|
17370
17657
|
if (vErrors === null) {
|
|
17371
|
-
vErrors = [
|
|
17658
|
+
vErrors = [err81];
|
|
17372
17659
|
} else {
|
|
17373
|
-
vErrors.push(
|
|
17660
|
+
vErrors.push(err81);
|
|
17374
17661
|
}
|
|
17375
17662
|
errors++;
|
|
17376
17663
|
} else {
|
|
17377
17664
|
if (data42 < -9007199254740991 || isNaN(data42)) {
|
|
17378
|
-
const
|
|
17665
|
+
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" };
|
|
17379
17666
|
if (vErrors === null) {
|
|
17380
|
-
vErrors = [
|
|
17667
|
+
vErrors = [err82];
|
|
17381
17668
|
} else {
|
|
17382
|
-
vErrors.push(
|
|
17669
|
+
vErrors.push(err82);
|
|
17383
17670
|
}
|
|
17384
17671
|
errors++;
|
|
17385
17672
|
}
|
|
@@ -17395,31 +17682,31 @@ function validate35(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
17395
17682
|
let data43 = data41.effectiveUntil;
|
|
17396
17683
|
const _errs112 = errors;
|
|
17397
17684
|
if (!(typeof data43 == "number" && (!(data43 % 1) && !isNaN(data43)) && isFinite(data43))) {
|
|
17398
|
-
const
|
|
17685
|
+
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" };
|
|
17399
17686
|
if (vErrors === null) {
|
|
17400
|
-
vErrors = [
|
|
17687
|
+
vErrors = [err83];
|
|
17401
17688
|
} else {
|
|
17402
|
-
vErrors.push(
|
|
17689
|
+
vErrors.push(err83);
|
|
17403
17690
|
}
|
|
17404
17691
|
errors++;
|
|
17405
17692
|
}
|
|
17406
17693
|
if (errors === _errs112) {
|
|
17407
17694
|
if (typeof data43 == "number" && isFinite(data43)) {
|
|
17408
17695
|
if (data43 > 9007199254740991 || isNaN(data43)) {
|
|
17409
|
-
const
|
|
17696
|
+
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" };
|
|
17410
17697
|
if (vErrors === null) {
|
|
17411
|
-
vErrors = [
|
|
17698
|
+
vErrors = [err84];
|
|
17412
17699
|
} else {
|
|
17413
|
-
vErrors.push(
|
|
17700
|
+
vErrors.push(err84);
|
|
17414
17701
|
}
|
|
17415
17702
|
errors++;
|
|
17416
17703
|
} else {
|
|
17417
17704
|
if (data43 < -9007199254740991 || isNaN(data43)) {
|
|
17418
|
-
const
|
|
17705
|
+
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" };
|
|
17419
17706
|
if (vErrors === null) {
|
|
17420
|
-
vErrors = [
|
|
17707
|
+
vErrors = [err85];
|
|
17421
17708
|
} else {
|
|
17422
|
-
vErrors.push(
|
|
17709
|
+
vErrors.push(err85);
|
|
17423
17710
|
}
|
|
17424
17711
|
errors++;
|
|
17425
17712
|
}
|
|
@@ -17432,11 +17719,11 @@ function validate35(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
17432
17719
|
}
|
|
17433
17720
|
}
|
|
17434
17721
|
} else {
|
|
17435
|
-
const
|
|
17722
|
+
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" };
|
|
17436
17723
|
if (vErrors === null) {
|
|
17437
|
-
vErrors = [
|
|
17724
|
+
vErrors = [err86];
|
|
17438
17725
|
} else {
|
|
17439
|
-
vErrors.push(
|
|
17726
|
+
vErrors.push(err86);
|
|
17440
17727
|
}
|
|
17441
17728
|
errors++;
|
|
17442
17729
|
}
|
|
@@ -17464,22 +17751,22 @@ function validate35(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
17464
17751
|
if (data45 && typeof data45 == "object" && !Array.isArray(data45)) {
|
|
17465
17752
|
let missing10;
|
|
17466
17753
|
if (data45.kind === void 0 && (missing10 = "kind") || data45.userId === void 0 && (missing10 = "userId")) {
|
|
17467
|
-
const
|
|
17754
|
+
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 + "'" };
|
|
17468
17755
|
if (vErrors === null) {
|
|
17469
|
-
vErrors = [
|
|
17756
|
+
vErrors = [err87];
|
|
17470
17757
|
} else {
|
|
17471
|
-
vErrors.push(
|
|
17758
|
+
vErrors.push(err87);
|
|
17472
17759
|
}
|
|
17473
17760
|
errors++;
|
|
17474
17761
|
} else {
|
|
17475
17762
|
const _errs120 = errors;
|
|
17476
17763
|
for (const key4 in data45) {
|
|
17477
17764
|
if (!(key4 === "kind" || key4 === "userId")) {
|
|
17478
|
-
const
|
|
17765
|
+
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" };
|
|
17479
17766
|
if (vErrors === null) {
|
|
17480
|
-
vErrors = [
|
|
17767
|
+
vErrors = [err88];
|
|
17481
17768
|
} else {
|
|
17482
|
-
vErrors.push(
|
|
17769
|
+
vErrors.push(err88);
|
|
17483
17770
|
}
|
|
17484
17771
|
errors++;
|
|
17485
17772
|
break;
|
|
@@ -17490,20 +17777,20 @@ function validate35(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
17490
17777
|
let data46 = data45.kind;
|
|
17491
17778
|
const _errs121 = errors;
|
|
17492
17779
|
if (typeof data46 !== "string") {
|
|
17493
|
-
const
|
|
17780
|
+
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" };
|
|
17494
17781
|
if (vErrors === null) {
|
|
17495
|
-
vErrors = [
|
|
17782
|
+
vErrors = [err89];
|
|
17496
17783
|
} else {
|
|
17497
|
-
vErrors.push(
|
|
17784
|
+
vErrors.push(err89);
|
|
17498
17785
|
}
|
|
17499
17786
|
errors++;
|
|
17500
17787
|
}
|
|
17501
17788
|
if ("user" !== data46) {
|
|
17502
|
-
const
|
|
17789
|
+
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" };
|
|
17503
17790
|
if (vErrors === null) {
|
|
17504
|
-
vErrors = [
|
|
17791
|
+
vErrors = [err90];
|
|
17505
17792
|
} else {
|
|
17506
|
-
vErrors.push(
|
|
17793
|
+
vErrors.push(err90);
|
|
17507
17794
|
}
|
|
17508
17795
|
errors++;
|
|
17509
17796
|
}
|
|
@@ -17518,20 +17805,20 @@ function validate35(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
17518
17805
|
if (errors === _errs123) {
|
|
17519
17806
|
if (typeof data47 === "string") {
|
|
17520
17807
|
if (func1(data47) < 1) {
|
|
17521
|
-
const
|
|
17808
|
+
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" };
|
|
17522
17809
|
if (vErrors === null) {
|
|
17523
|
-
vErrors = [
|
|
17810
|
+
vErrors = [err91];
|
|
17524
17811
|
} else {
|
|
17525
|
-
vErrors.push(
|
|
17812
|
+
vErrors.push(err91);
|
|
17526
17813
|
}
|
|
17527
17814
|
errors++;
|
|
17528
17815
|
}
|
|
17529
17816
|
} else {
|
|
17530
|
-
const
|
|
17817
|
+
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" };
|
|
17531
17818
|
if (vErrors === null) {
|
|
17532
|
-
vErrors = [
|
|
17819
|
+
vErrors = [err92];
|
|
17533
17820
|
} else {
|
|
17534
|
-
vErrors.push(
|
|
17821
|
+
vErrors.push(err92);
|
|
17535
17822
|
}
|
|
17536
17823
|
errors++;
|
|
17537
17824
|
}
|
|
@@ -17544,11 +17831,11 @@ function validate35(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
17544
17831
|
}
|
|
17545
17832
|
}
|
|
17546
17833
|
} else {
|
|
17547
|
-
const
|
|
17834
|
+
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" };
|
|
17548
17835
|
if (vErrors === null) {
|
|
17549
|
-
vErrors = [
|
|
17836
|
+
vErrors = [err93];
|
|
17550
17837
|
} else {
|
|
17551
|
-
vErrors.push(
|
|
17838
|
+
vErrors.push(err93);
|
|
17552
17839
|
}
|
|
17553
17840
|
errors++;
|
|
17554
17841
|
}
|
|
@@ -17564,22 +17851,22 @@ function validate35(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
17564
17851
|
if (data45 && typeof data45 == "object" && !Array.isArray(data45)) {
|
|
17565
17852
|
let missing11;
|
|
17566
17853
|
if (data45.kind === void 0 && (missing11 = "kind") || data45.role === void 0 && (missing11 = "role")) {
|
|
17567
|
-
const
|
|
17854
|
+
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 + "'" };
|
|
17568
17855
|
if (vErrors === null) {
|
|
17569
|
-
vErrors = [
|
|
17856
|
+
vErrors = [err94];
|
|
17570
17857
|
} else {
|
|
17571
|
-
vErrors.push(
|
|
17858
|
+
vErrors.push(err94);
|
|
17572
17859
|
}
|
|
17573
17860
|
errors++;
|
|
17574
17861
|
} else {
|
|
17575
17862
|
const _errs127 = errors;
|
|
17576
17863
|
for (const key5 in data45) {
|
|
17577
17864
|
if (!(key5 === "kind" || key5 === "role")) {
|
|
17578
|
-
const
|
|
17865
|
+
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" };
|
|
17579
17866
|
if (vErrors === null) {
|
|
17580
|
-
vErrors = [
|
|
17867
|
+
vErrors = [err95];
|
|
17581
17868
|
} else {
|
|
17582
|
-
vErrors.push(
|
|
17869
|
+
vErrors.push(err95);
|
|
17583
17870
|
}
|
|
17584
17871
|
errors++;
|
|
17585
17872
|
break;
|
|
@@ -17590,20 +17877,20 @@ function validate35(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
17590
17877
|
let data48 = data45.kind;
|
|
17591
17878
|
const _errs128 = errors;
|
|
17592
17879
|
if (typeof data48 !== "string") {
|
|
17593
|
-
const
|
|
17880
|
+
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" };
|
|
17594
17881
|
if (vErrors === null) {
|
|
17595
|
-
vErrors = [
|
|
17882
|
+
vErrors = [err96];
|
|
17596
17883
|
} else {
|
|
17597
|
-
vErrors.push(
|
|
17884
|
+
vErrors.push(err96);
|
|
17598
17885
|
}
|
|
17599
17886
|
errors++;
|
|
17600
17887
|
}
|
|
17601
17888
|
if ("role" !== data48) {
|
|
17602
|
-
const
|
|
17889
|
+
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" };
|
|
17603
17890
|
if (vErrors === null) {
|
|
17604
|
-
vErrors = [
|
|
17891
|
+
vErrors = [err97];
|
|
17605
17892
|
} else {
|
|
17606
|
-
vErrors.push(
|
|
17893
|
+
vErrors.push(err97);
|
|
17607
17894
|
}
|
|
17608
17895
|
errors++;
|
|
17609
17896
|
}
|
|
@@ -17616,20 +17903,20 @@ function validate35(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
17616
17903
|
let data49 = data45.role;
|
|
17617
17904
|
const _errs130 = errors;
|
|
17618
17905
|
if (typeof data49 !== "string") {
|
|
17619
|
-
const
|
|
17906
|
+
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" };
|
|
17620
17907
|
if (vErrors === null) {
|
|
17621
|
-
vErrors = [
|
|
17908
|
+
vErrors = [err98];
|
|
17622
17909
|
} else {
|
|
17623
|
-
vErrors.push(
|
|
17910
|
+
vErrors.push(err98);
|
|
17624
17911
|
}
|
|
17625
17912
|
errors++;
|
|
17626
17913
|
}
|
|
17627
17914
|
if (!(data49 === "owner" || data49 === "admin" || data49 === "member")) {
|
|
17628
|
-
const
|
|
17915
|
+
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" };
|
|
17629
17916
|
if (vErrors === null) {
|
|
17630
|
-
vErrors = [
|
|
17917
|
+
vErrors = [err99];
|
|
17631
17918
|
} else {
|
|
17632
|
-
vErrors.push(
|
|
17919
|
+
vErrors.push(err99);
|
|
17633
17920
|
}
|
|
17634
17921
|
errors++;
|
|
17635
17922
|
}
|
|
@@ -17641,11 +17928,11 @@ function validate35(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
17641
17928
|
}
|
|
17642
17929
|
}
|
|
17643
17930
|
} else {
|
|
17644
|
-
const
|
|
17931
|
+
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" };
|
|
17645
17932
|
if (vErrors === null) {
|
|
17646
|
-
vErrors = [
|
|
17933
|
+
vErrors = [err100];
|
|
17647
17934
|
} else {
|
|
17648
|
-
vErrors.push(
|
|
17935
|
+
vErrors.push(err100);
|
|
17649
17936
|
}
|
|
17650
17937
|
errors++;
|
|
17651
17938
|
}
|
|
@@ -17667,22 +17954,22 @@ function validate35(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
17667
17954
|
if (data45 && typeof data45 == "object" && !Array.isArray(data45)) {
|
|
17668
17955
|
let missing12;
|
|
17669
17956
|
if (data45.kind === void 0 && (missing12 = "kind") || data45.agent === void 0 && (missing12 = "agent")) {
|
|
17670
|
-
const
|
|
17957
|
+
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 + "'" };
|
|
17671
17958
|
if (vErrors === null) {
|
|
17672
|
-
vErrors = [
|
|
17959
|
+
vErrors = [err101];
|
|
17673
17960
|
} else {
|
|
17674
|
-
vErrors.push(
|
|
17961
|
+
vErrors.push(err101);
|
|
17675
17962
|
}
|
|
17676
17963
|
errors++;
|
|
17677
17964
|
} else {
|
|
17678
17965
|
const _errs134 = errors;
|
|
17679
17966
|
for (const key6 in data45) {
|
|
17680
17967
|
if (!(key6 === "kind" || key6 === "agent")) {
|
|
17681
|
-
const
|
|
17968
|
+
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" };
|
|
17682
17969
|
if (vErrors === null) {
|
|
17683
|
-
vErrors = [
|
|
17970
|
+
vErrors = [err102];
|
|
17684
17971
|
} else {
|
|
17685
|
-
vErrors.push(
|
|
17972
|
+
vErrors.push(err102);
|
|
17686
17973
|
}
|
|
17687
17974
|
errors++;
|
|
17688
17975
|
break;
|
|
@@ -17693,20 +17980,20 @@ function validate35(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
17693
17980
|
let data50 = data45.kind;
|
|
17694
17981
|
const _errs135 = errors;
|
|
17695
17982
|
if (typeof data50 !== "string") {
|
|
17696
|
-
const
|
|
17983
|
+
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" };
|
|
17697
17984
|
if (vErrors === null) {
|
|
17698
|
-
vErrors = [
|
|
17985
|
+
vErrors = [err103];
|
|
17699
17986
|
} else {
|
|
17700
|
-
vErrors.push(
|
|
17987
|
+
vErrors.push(err103);
|
|
17701
17988
|
}
|
|
17702
17989
|
errors++;
|
|
17703
17990
|
}
|
|
17704
17991
|
if ("agent" !== data50) {
|
|
17705
|
-
const
|
|
17992
|
+
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" };
|
|
17706
17993
|
if (vErrors === null) {
|
|
17707
|
-
vErrors = [
|
|
17994
|
+
vErrors = [err104];
|
|
17708
17995
|
} else {
|
|
17709
|
-
vErrors.push(
|
|
17996
|
+
vErrors.push(err104);
|
|
17710
17997
|
}
|
|
17711
17998
|
errors++;
|
|
17712
17999
|
}
|
|
@@ -17719,20 +18006,20 @@ function validate35(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
17719
18006
|
let data51 = data45.agent;
|
|
17720
18007
|
const _errs137 = errors;
|
|
17721
18008
|
if (typeof data51 !== "string") {
|
|
17722
|
-
const
|
|
18009
|
+
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" };
|
|
17723
18010
|
if (vErrors === null) {
|
|
17724
|
-
vErrors = [
|
|
18011
|
+
vErrors = [err105];
|
|
17725
18012
|
} else {
|
|
17726
|
-
vErrors.push(
|
|
18013
|
+
vErrors.push(err105);
|
|
17727
18014
|
}
|
|
17728
18015
|
errors++;
|
|
17729
18016
|
}
|
|
17730
18017
|
if (!(data51 === "claude_code" || data51 === "codex" || data51 === "cursor" || data51 === "hermes")) {
|
|
17731
|
-
const
|
|
18018
|
+
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" };
|
|
17732
18019
|
if (vErrors === null) {
|
|
17733
|
-
vErrors = [
|
|
18020
|
+
vErrors = [err106];
|
|
17734
18021
|
} else {
|
|
17735
|
-
vErrors.push(
|
|
18022
|
+
vErrors.push(err106);
|
|
17736
18023
|
}
|
|
17737
18024
|
errors++;
|
|
17738
18025
|
}
|
|
@@ -17744,11 +18031,11 @@ function validate35(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
17744
18031
|
}
|
|
17745
18032
|
}
|
|
17746
18033
|
} else {
|
|
17747
|
-
const
|
|
18034
|
+
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" };
|
|
17748
18035
|
if (vErrors === null) {
|
|
17749
|
-
vErrors = [
|
|
18036
|
+
vErrors = [err107];
|
|
17750
18037
|
} else {
|
|
17751
|
-
vErrors.push(
|
|
18038
|
+
vErrors.push(err107);
|
|
17752
18039
|
}
|
|
17753
18040
|
errors++;
|
|
17754
18041
|
}
|
|
@@ -17770,22 +18057,22 @@ function validate35(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
17770
18057
|
if (data45 && typeof data45 == "object" && !Array.isArray(data45)) {
|
|
17771
18058
|
let missing13;
|
|
17772
18059
|
if (data45.kind === void 0 && (missing13 = "kind") || data45.credential === void 0 && (missing13 = "credential")) {
|
|
17773
|
-
const
|
|
18060
|
+
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 + "'" };
|
|
17774
18061
|
if (vErrors === null) {
|
|
17775
|
-
vErrors = [
|
|
18062
|
+
vErrors = [err108];
|
|
17776
18063
|
} else {
|
|
17777
|
-
vErrors.push(
|
|
18064
|
+
vErrors.push(err108);
|
|
17778
18065
|
}
|
|
17779
18066
|
errors++;
|
|
17780
18067
|
} else {
|
|
17781
18068
|
const _errs141 = errors;
|
|
17782
18069
|
for (const key7 in data45) {
|
|
17783
18070
|
if (!(key7 === "kind" || key7 === "credential")) {
|
|
17784
|
-
const
|
|
18071
|
+
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" };
|
|
17785
18072
|
if (vErrors === null) {
|
|
17786
|
-
vErrors = [
|
|
18073
|
+
vErrors = [err109];
|
|
17787
18074
|
} else {
|
|
17788
|
-
vErrors.push(
|
|
18075
|
+
vErrors.push(err109);
|
|
17789
18076
|
}
|
|
17790
18077
|
errors++;
|
|
17791
18078
|
break;
|
|
@@ -17796,20 +18083,20 @@ function validate35(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
17796
18083
|
let data52 = data45.kind;
|
|
17797
18084
|
const _errs142 = errors;
|
|
17798
18085
|
if (typeof data52 !== "string") {
|
|
17799
|
-
const
|
|
18086
|
+
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" };
|
|
17800
18087
|
if (vErrors === null) {
|
|
17801
|
-
vErrors = [
|
|
18088
|
+
vErrors = [err110];
|
|
17802
18089
|
} else {
|
|
17803
|
-
vErrors.push(
|
|
18090
|
+
vErrors.push(err110);
|
|
17804
18091
|
}
|
|
17805
18092
|
errors++;
|
|
17806
18093
|
}
|
|
17807
18094
|
if ("credential" !== data52) {
|
|
17808
|
-
const
|
|
18095
|
+
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" };
|
|
17809
18096
|
if (vErrors === null) {
|
|
17810
|
-
vErrors = [
|
|
18097
|
+
vErrors = [err111];
|
|
17811
18098
|
} else {
|
|
17812
|
-
vErrors.push(
|
|
18099
|
+
vErrors.push(err111);
|
|
17813
18100
|
}
|
|
17814
18101
|
errors++;
|
|
17815
18102
|
}
|
|
@@ -17822,20 +18109,20 @@ function validate35(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
17822
18109
|
let data53 = data45.credential;
|
|
17823
18110
|
const _errs144 = errors;
|
|
17824
18111
|
if (typeof data53 !== "string") {
|
|
17825
|
-
const
|
|
18112
|
+
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" };
|
|
17826
18113
|
if (vErrors === null) {
|
|
17827
|
-
vErrors = [
|
|
18114
|
+
vErrors = [err112];
|
|
17828
18115
|
} else {
|
|
17829
|
-
vErrors.push(
|
|
18116
|
+
vErrors.push(err112);
|
|
17830
18117
|
}
|
|
17831
18118
|
errors++;
|
|
17832
18119
|
}
|
|
17833
18120
|
if (!(data53 === "workos_jwt" || data53 === "workos_api_key" || data53 === "service_token")) {
|
|
17834
|
-
const
|
|
18121
|
+
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" };
|
|
17835
18122
|
if (vErrors === null) {
|
|
17836
|
-
vErrors = [
|
|
18123
|
+
vErrors = [err113];
|
|
17837
18124
|
} else {
|
|
17838
|
-
vErrors.push(
|
|
18125
|
+
vErrors.push(err113);
|
|
17839
18126
|
}
|
|
17840
18127
|
errors++;
|
|
17841
18128
|
}
|
|
@@ -17847,11 +18134,11 @@ function validate35(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
17847
18134
|
}
|
|
17848
18135
|
}
|
|
17849
18136
|
} else {
|
|
17850
|
-
const
|
|
18137
|
+
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" };
|
|
17851
18138
|
if (vErrors === null) {
|
|
17852
|
-
vErrors = [
|
|
18139
|
+
vErrors = [err114];
|
|
17853
18140
|
} else {
|
|
17854
|
-
vErrors.push(
|
|
18141
|
+
vErrors.push(err114);
|
|
17855
18142
|
}
|
|
17856
18143
|
errors++;
|
|
17857
18144
|
}
|
|
@@ -17872,11 +18159,11 @@ function validate35(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
17872
18159
|
}
|
|
17873
18160
|
}
|
|
17874
18161
|
if (!valid24) {
|
|
17875
|
-
const
|
|
18162
|
+
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" };
|
|
17876
18163
|
if (vErrors === null) {
|
|
17877
|
-
vErrors = [
|
|
18164
|
+
vErrors = [err115];
|
|
17878
18165
|
} else {
|
|
17879
|
-
vErrors.push(
|
|
18166
|
+
vErrors.push(err115);
|
|
17880
18167
|
}
|
|
17881
18168
|
errors++;
|
|
17882
18169
|
} else {
|
|
@@ -17895,11 +18182,11 @@ function validate35(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
17895
18182
|
}
|
|
17896
18183
|
}
|
|
17897
18184
|
} else {
|
|
17898
|
-
const
|
|
18185
|
+
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" };
|
|
17899
18186
|
if (vErrors === null) {
|
|
17900
|
-
vErrors = [
|
|
18187
|
+
vErrors = [err116];
|
|
17901
18188
|
} else {
|
|
17902
|
-
vErrors.push(
|
|
18189
|
+
vErrors.push(err116);
|
|
17903
18190
|
}
|
|
17904
18191
|
errors++;
|
|
17905
18192
|
}
|
|
@@ -17912,11 +18199,11 @@ function validate35(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
17912
18199
|
}
|
|
17913
18200
|
}
|
|
17914
18201
|
} else {
|
|
17915
|
-
const
|
|
18202
|
+
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" };
|
|
17916
18203
|
if (vErrors === null) {
|
|
17917
|
-
vErrors = [
|
|
18204
|
+
vErrors = [err117];
|
|
17918
18205
|
} else {
|
|
17919
|
-
vErrors.push(
|
|
18206
|
+
vErrors.push(err117);
|
|
17920
18207
|
}
|
|
17921
18208
|
errors++;
|
|
17922
18209
|
}
|
|
@@ -17936,11 +18223,11 @@ function validate35(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
17936
18223
|
for (let i9 = 0; i9 < len9; i9++) {
|
|
17937
18224
|
const _errs148 = errors;
|
|
17938
18225
|
if (typeof data54[i9] !== "string") {
|
|
17939
|
-
const
|
|
18226
|
+
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" };
|
|
17940
18227
|
if (vErrors === null) {
|
|
17941
|
-
vErrors = [
|
|
18228
|
+
vErrors = [err118];
|
|
17942
18229
|
} else {
|
|
17943
|
-
vErrors.push(
|
|
18230
|
+
vErrors.push(err118);
|
|
17944
18231
|
}
|
|
17945
18232
|
errors++;
|
|
17946
18233
|
}
|
|
@@ -17950,11 +18237,11 @@ function validate35(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
17950
18237
|
}
|
|
17951
18238
|
}
|
|
17952
18239
|
} else {
|
|
17953
|
-
const
|
|
18240
|
+
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" };
|
|
17954
18241
|
if (vErrors === null) {
|
|
17955
|
-
vErrors = [
|
|
18242
|
+
vErrors = [err119];
|
|
17956
18243
|
} else {
|
|
17957
|
-
vErrors.push(
|
|
18244
|
+
vErrors.push(err119);
|
|
17958
18245
|
}
|
|
17959
18246
|
errors++;
|
|
17960
18247
|
}
|
|
@@ -17970,11 +18257,11 @@ function validate35(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
17970
18257
|
}
|
|
17971
18258
|
}
|
|
17972
18259
|
} else {
|
|
17973
|
-
const
|
|
18260
|
+
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" };
|
|
17974
18261
|
if (vErrors === null) {
|
|
17975
|
-
vErrors = [
|
|
18262
|
+
vErrors = [err120];
|
|
17976
18263
|
} else {
|
|
17977
|
-
vErrors.push(
|
|
18264
|
+
vErrors.push(err120);
|
|
17978
18265
|
}
|
|
17979
18266
|
errors++;
|
|
17980
18267
|
}
|
|
@@ -17987,11 +18274,11 @@ function validate35(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
17987
18274
|
}
|
|
17988
18275
|
}
|
|
17989
18276
|
if (!valid1) {
|
|
17990
|
-
const
|
|
18277
|
+
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" };
|
|
17991
18278
|
if (vErrors === null) {
|
|
17992
|
-
vErrors = [
|
|
18279
|
+
vErrors = [err121];
|
|
17993
18280
|
} else {
|
|
17994
|
-
vErrors.push(
|
|
18281
|
+
vErrors.push(err121);
|
|
17995
18282
|
}
|
|
17996
18283
|
errors++;
|
|
17997
18284
|
validate35.errors = vErrors;
|
|
@@ -18011,7 +18298,7 @@ function validate35(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
18011
18298
|
return errors === 0;
|
|
18012
18299
|
}
|
|
18013
18300
|
validate35.evaluated = { "dynamicProps": true, "dynamicItems": false };
|
|
18014
|
-
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": {} }] };
|
|
18301
|
+
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": {} }] };
|
|
18015
18302
|
function validate36(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
18016
18303
|
;
|
|
18017
18304
|
let vErrors = null;
|
|
@@ -18158,13 +18445,23 @@ function validate36(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
18158
18445
|
vErrors.push(err9);
|
|
18159
18446
|
}
|
|
18160
18447
|
errors++;
|
|
18448
|
+
} else {
|
|
18449
|
+
if (!pattern4.test(data3)) {
|
|
18450
|
+
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}$"' };
|
|
18451
|
+
if (vErrors === null) {
|
|
18452
|
+
vErrors = [err10];
|
|
18453
|
+
} else {
|
|
18454
|
+
vErrors.push(err10);
|
|
18455
|
+
}
|
|
18456
|
+
errors++;
|
|
18457
|
+
}
|
|
18161
18458
|
}
|
|
18162
18459
|
} else {
|
|
18163
|
-
const
|
|
18460
|
+
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" };
|
|
18164
18461
|
if (vErrors === null) {
|
|
18165
|
-
vErrors = [
|
|
18462
|
+
vErrors = [err11];
|
|
18166
18463
|
} else {
|
|
18167
|
-
vErrors.push(
|
|
18464
|
+
vErrors.push(err11);
|
|
18168
18465
|
}
|
|
18169
18466
|
errors++;
|
|
18170
18467
|
}
|
|
@@ -18175,15 +18472,28 @@ function validate36(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
18175
18472
|
}
|
|
18176
18473
|
if (valid3) {
|
|
18177
18474
|
if (data.shortId !== void 0) {
|
|
18475
|
+
let data4 = data.shortId;
|
|
18178
18476
|
const _errs16 = errors;
|
|
18179
|
-
if (
|
|
18180
|
-
|
|
18181
|
-
|
|
18182
|
-
|
|
18477
|
+
if (errors === _errs16) {
|
|
18478
|
+
if (typeof data4 === "string") {
|
|
18479
|
+
if (!pattern5.test(data4)) {
|
|
18480
|
+
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}$"' };
|
|
18481
|
+
if (vErrors === null) {
|
|
18482
|
+
vErrors = [err12];
|
|
18483
|
+
} else {
|
|
18484
|
+
vErrors.push(err12);
|
|
18485
|
+
}
|
|
18486
|
+
errors++;
|
|
18487
|
+
}
|
|
18183
18488
|
} else {
|
|
18184
|
-
|
|
18489
|
+
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" };
|
|
18490
|
+
if (vErrors === null) {
|
|
18491
|
+
vErrors = [err13];
|
|
18492
|
+
} else {
|
|
18493
|
+
vErrors.push(err13);
|
|
18494
|
+
}
|
|
18495
|
+
errors++;
|
|
18185
18496
|
}
|
|
18186
|
-
errors++;
|
|
18187
18497
|
}
|
|
18188
18498
|
var valid3 = _errs16 === errors;
|
|
18189
18499
|
} else {
|
|
@@ -18194,20 +18504,20 @@ function validate36(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
18194
18504
|
let data5 = data.stage;
|
|
18195
18505
|
const _errs18 = errors;
|
|
18196
18506
|
if (typeof data5 !== "string") {
|
|
18197
|
-
const
|
|
18507
|
+
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" };
|
|
18198
18508
|
if (vErrors === null) {
|
|
18199
|
-
vErrors = [
|
|
18509
|
+
vErrors = [err14];
|
|
18200
18510
|
} else {
|
|
18201
|
-
vErrors.push(
|
|
18511
|
+
vErrors.push(err14);
|
|
18202
18512
|
}
|
|
18203
18513
|
errors++;
|
|
18204
18514
|
}
|
|
18205
18515
|
if (!(data5 === "draft" || data5 === "provisional" || data5 === "adopted" || data5 === "superseded" || data5 === "abandoned")) {
|
|
18206
|
-
const
|
|
18516
|
+
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" };
|
|
18207
18517
|
if (vErrors === null) {
|
|
18208
|
-
vErrors = [
|
|
18518
|
+
vErrors = [err15];
|
|
18209
18519
|
} else {
|
|
18210
|
-
vErrors.push(
|
|
18520
|
+
vErrors.push(err15);
|
|
18211
18521
|
}
|
|
18212
18522
|
errors++;
|
|
18213
18523
|
}
|
|
@@ -18220,11 +18530,11 @@ function validate36(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
18220
18530
|
}
|
|
18221
18531
|
}
|
|
18222
18532
|
} else {
|
|
18223
|
-
const
|
|
18533
|
+
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" };
|
|
18224
18534
|
if (vErrors === null) {
|
|
18225
|
-
vErrors = [
|
|
18535
|
+
vErrors = [err16];
|
|
18226
18536
|
} else {
|
|
18227
|
-
vErrors.push(
|
|
18537
|
+
vErrors.push(err16);
|
|
18228
18538
|
}
|
|
18229
18539
|
errors++;
|
|
18230
18540
|
}
|
|
@@ -18237,11 +18547,11 @@ function validate36(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
18237
18547
|
}
|
|
18238
18548
|
}
|
|
18239
18549
|
if (!valid1) {
|
|
18240
|
-
const
|
|
18550
|
+
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" };
|
|
18241
18551
|
if (vErrors === null) {
|
|
18242
|
-
vErrors = [
|
|
18552
|
+
vErrors = [err17];
|
|
18243
18553
|
} else {
|
|
18244
|
-
vErrors.push(
|
|
18554
|
+
vErrors.push(err17);
|
|
18245
18555
|
}
|
|
18246
18556
|
errors++;
|
|
18247
18557
|
validate36.errors = vErrors;
|
|
@@ -18312,7 +18622,7 @@ function validate37(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
18312
18622
|
return errors === 0;
|
|
18313
18623
|
}
|
|
18314
18624
|
validate37.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
|
|
18315
|
-
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": {} };
|
|
18625
|
+
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": {} };
|
|
18316
18626
|
function validate38(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
18317
18627
|
;
|
|
18318
18628
|
let vErrors = null;
|
|
@@ -18357,6 +18667,11 @@ function validate38(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
18357
18667
|
if (func1(data2) < 1) {
|
|
18358
18668
|
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" }];
|
|
18359
18669
|
return false;
|
|
18670
|
+
} else {
|
|
18671
|
+
if (!pattern4.test(data2)) {
|
|
18672
|
+
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}$"' }];
|
|
18673
|
+
return false;
|
|
18674
|
+
}
|
|
18360
18675
|
}
|
|
18361
18676
|
} else {
|
|
18362
18677
|
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" }];
|
|
@@ -18516,7 +18831,7 @@ function validate38(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
18516
18831
|
return errors === 0;
|
|
18517
18832
|
}
|
|
18518
18833
|
validate38.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
|
|
18519
|
-
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"] };
|
|
18834
|
+
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"] };
|
|
18520
18835
|
function validate39(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
18521
18836
|
;
|
|
18522
18837
|
let vErrors = null;
|
|
@@ -18561,6 +18876,11 @@ function validate39(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
18561
18876
|
if (func1(data2) < 1) {
|
|
18562
18877
|
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" }];
|
|
18563
18878
|
return false;
|
|
18879
|
+
} else {
|
|
18880
|
+
if (!pattern4.test(data2)) {
|
|
18881
|
+
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}$"' }];
|
|
18882
|
+
return false;
|
|
18883
|
+
}
|
|
18564
18884
|
}
|
|
18565
18885
|
} else {
|
|
18566
18886
|
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" }];
|
|
@@ -18573,10 +18893,18 @@ function validate39(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
18573
18893
|
}
|
|
18574
18894
|
if (valid3) {
|
|
18575
18895
|
if (data1.shortId !== void 0) {
|
|
18896
|
+
let data3 = data1.shortId;
|
|
18576
18897
|
const _errs11 = errors;
|
|
18577
|
-
if (
|
|
18578
|
-
|
|
18579
|
-
|
|
18898
|
+
if (errors === _errs11) {
|
|
18899
|
+
if (typeof data3 === "string") {
|
|
18900
|
+
if (!pattern5.test(data3)) {
|
|
18901
|
+
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}$"' }];
|
|
18902
|
+
return false;
|
|
18903
|
+
}
|
|
18904
|
+
} else {
|
|
18905
|
+
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" }];
|
|
18906
|
+
return false;
|
|
18907
|
+
}
|
|
18580
18908
|
}
|
|
18581
18909
|
var valid3 = _errs11 === errors;
|
|
18582
18910
|
} else {
|
|
@@ -18911,8 +19239,8 @@ function validate39(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
18911
19239
|
return errors === 0;
|
|
18912
19240
|
}
|
|
18913
19241
|
validate39.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
|
|
18914
|
-
var
|
|
18915
|
-
var
|
|
19242
|
+
var pattern34 = new RegExp("^[a-zA-Z0-9]{1,64}$", "u");
|
|
19243
|
+
var pattern35 = new RegExp("^[a-f0-9]{64}$", "u");
|
|
18916
19244
|
function validate40(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
18917
19245
|
;
|
|
18918
19246
|
let vErrors = null;
|
|
@@ -18946,7 +19274,7 @@ function validate40(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
18946
19274
|
const _errs3 = errors;
|
|
18947
19275
|
if (errors === _errs3) {
|
|
18948
19276
|
if (typeof data0 === "string") {
|
|
18949
|
-
if (!
|
|
19277
|
+
if (!pattern34.test(data0)) {
|
|
18950
19278
|
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}$"' }];
|
|
18951
19279
|
return false;
|
|
18952
19280
|
}
|
|
@@ -18990,7 +19318,7 @@ function validate40(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
18990
19318
|
const _errs7 = errors;
|
|
18991
19319
|
if (errors === _errs7) {
|
|
18992
19320
|
if (typeof data2 === "string") {
|
|
18993
|
-
if (!
|
|
19321
|
+
if (!pattern35.test(data2)) {
|
|
18994
19322
|
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}$"' }];
|
|
18995
19323
|
return false;
|
|
18996
19324
|
}
|
|
@@ -19016,7 +19344,7 @@ function validate40(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
19016
19344
|
return errors === 0;
|
|
19017
19345
|
}
|
|
19018
19346
|
validate40.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
|
|
19019
|
-
var
|
|
19347
|
+
var pattern38 = new RegExp("\\S", "u");
|
|
19020
19348
|
function validate41(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
19021
19349
|
;
|
|
19022
19350
|
let vErrors = null;
|
|
@@ -19063,7 +19391,7 @@ function validate41(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
19063
19391
|
const _errs5 = errors;
|
|
19064
19392
|
if (errors === _errs5) {
|
|
19065
19393
|
if (typeof data0 === "string") {
|
|
19066
|
-
if (!
|
|
19394
|
+
if (!pattern34.test(data0)) {
|
|
19067
19395
|
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}$"' };
|
|
19068
19396
|
if (vErrors === null) {
|
|
19069
19397
|
vErrors = [err2];
|
|
@@ -19204,7 +19532,7 @@ function validate41(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
19204
19532
|
const _errs14 = errors;
|
|
19205
19533
|
if (errors === _errs14) {
|
|
19206
19534
|
if (typeof data3 === "string") {
|
|
19207
|
-
if (!
|
|
19535
|
+
if (!pattern34.test(data3)) {
|
|
19208
19536
|
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}$"' };
|
|
19209
19537
|
if (vErrors === null) {
|
|
19210
19538
|
vErrors = [err12];
|
|
@@ -19317,7 +19645,7 @@ function validate41(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
19317
19645
|
}
|
|
19318
19646
|
errors++;
|
|
19319
19647
|
} else {
|
|
19320
|
-
if (!
|
|
19648
|
+
if (!pattern38.test(data6)) {
|
|
19321
19649
|
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"' };
|
|
19322
19650
|
if (vErrors === null) {
|
|
19323
19651
|
vErrors = [err21];
|
|
@@ -19428,7 +19756,7 @@ function validate42(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
19428
19756
|
const _errs3 = errors;
|
|
19429
19757
|
if (errors === _errs3) {
|
|
19430
19758
|
if (typeof data0 === "string") {
|
|
19431
|
-
if (!
|
|
19759
|
+
if (!pattern34.test(data0)) {
|
|
19432
19760
|
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}$"' }];
|
|
19433
19761
|
return false;
|
|
19434
19762
|
}
|
|
@@ -19478,7 +19806,7 @@ function validate42(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
19478
19806
|
return errors === 0;
|
|
19479
19807
|
}
|
|
19480
19808
|
validate42.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
|
|
19481
|
-
var
|
|
19809
|
+
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");
|
|
19482
19810
|
function validate43(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
19483
19811
|
;
|
|
19484
19812
|
let vErrors = null;
|
|
@@ -19529,7 +19857,7 @@ function validate43(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
19529
19857
|
if (errors === _errs5) {
|
|
19530
19858
|
if (errors === _errs5) {
|
|
19531
19859
|
if (typeof data1 === "string") {
|
|
19532
|
-
if (!
|
|
19860
|
+
if (!pattern40.test(data1)) {
|
|
19533
19861
|
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)$"' }];
|
|
19534
19862
|
return false;
|
|
19535
19863
|
}
|
|
@@ -19557,7 +19885,7 @@ function validate43(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
19557
19885
|
validate43.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
|
|
19558
19886
|
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 };
|
|
19559
19887
|
var func34 = Object.prototype.hasOwnProperty;
|
|
19560
|
-
var
|
|
19888
|
+
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");
|
|
19561
19889
|
function validate44(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
19562
19890
|
;
|
|
19563
19891
|
let vErrors = null;
|
|
@@ -19639,7 +19967,7 @@ function validate44(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
19639
19967
|
const _errs9 = errors;
|
|
19640
19968
|
if (errors === _errs9) {
|
|
19641
19969
|
if (typeof data3 === "string") {
|
|
19642
|
-
if (!
|
|
19970
|
+
if (!pattern34.test(data3)) {
|
|
19643
19971
|
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}$"' }];
|
|
19644
19972
|
return false;
|
|
19645
19973
|
}
|
|
@@ -19757,7 +20085,7 @@ function validate44(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
19757
20085
|
if (errors === _errs22) {
|
|
19758
20086
|
if (errors === _errs22) {
|
|
19759
20087
|
if (typeof data9 === "string") {
|
|
19760
|
-
if (!
|
|
20088
|
+
if (!pattern42.test(data9)) {
|
|
19761
20089
|
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,}$"` }];
|
|
19762
20090
|
return false;
|
|
19763
20091
|
}
|
|
@@ -19895,7 +20223,7 @@ function validate44(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
19895
20223
|
const _errs36 = errors;
|
|
19896
20224
|
if (errors === _errs36) {
|
|
19897
20225
|
if (typeof data16 === "string") {
|
|
19898
|
-
if (!
|
|
20226
|
+
if (!pattern35.test(data16)) {
|
|
19899
20227
|
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}$"' }];
|
|
19900
20228
|
return false;
|
|
19901
20229
|
}
|
|
@@ -20098,15 +20426,28 @@ function validate45(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
20098
20426
|
}
|
|
20099
20427
|
if (valid3) {
|
|
20100
20428
|
if (data3.decisionId !== void 0) {
|
|
20429
|
+
let data8 = data3.decisionId;
|
|
20101
20430
|
const _errs22 = errors;
|
|
20102
|
-
if (
|
|
20103
|
-
|
|
20104
|
-
|
|
20105
|
-
|
|
20431
|
+
if (errors === _errs22) {
|
|
20432
|
+
if (typeof data8 === "string") {
|
|
20433
|
+
if (!pattern4.test(data8)) {
|
|
20434
|
+
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}$"' };
|
|
20435
|
+
if (vErrors === null) {
|
|
20436
|
+
vErrors = [err6];
|
|
20437
|
+
} else {
|
|
20438
|
+
vErrors.push(err6);
|
|
20439
|
+
}
|
|
20440
|
+
errors++;
|
|
20441
|
+
}
|
|
20106
20442
|
} else {
|
|
20107
|
-
|
|
20443
|
+
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" };
|
|
20444
|
+
if (vErrors === null) {
|
|
20445
|
+
vErrors = [err7];
|
|
20446
|
+
} else {
|
|
20447
|
+
vErrors.push(err7);
|
|
20448
|
+
}
|
|
20449
|
+
errors++;
|
|
20108
20450
|
}
|
|
20109
|
-
errors++;
|
|
20110
20451
|
}
|
|
20111
20452
|
var valid3 = _errs22 === errors;
|
|
20112
20453
|
} else {
|
|
@@ -20114,15 +20455,28 @@ function validate45(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
20114
20455
|
}
|
|
20115
20456
|
if (valid3) {
|
|
20116
20457
|
if (data3.decisionShortId !== void 0) {
|
|
20458
|
+
let data9 = data3.decisionShortId;
|
|
20117
20459
|
const _errs24 = errors;
|
|
20118
|
-
if (
|
|
20119
|
-
|
|
20120
|
-
|
|
20121
|
-
|
|
20460
|
+
if (errors === _errs24) {
|
|
20461
|
+
if (typeof data9 === "string") {
|
|
20462
|
+
if (!pattern5.test(data9)) {
|
|
20463
|
+
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}$"' };
|
|
20464
|
+
if (vErrors === null) {
|
|
20465
|
+
vErrors = [err8];
|
|
20466
|
+
} else {
|
|
20467
|
+
vErrors.push(err8);
|
|
20468
|
+
}
|
|
20469
|
+
errors++;
|
|
20470
|
+
}
|
|
20122
20471
|
} else {
|
|
20123
|
-
|
|
20472
|
+
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" };
|
|
20473
|
+
if (vErrors === null) {
|
|
20474
|
+
vErrors = [err9];
|
|
20475
|
+
} else {
|
|
20476
|
+
vErrors.push(err9);
|
|
20477
|
+
}
|
|
20478
|
+
errors++;
|
|
20124
20479
|
}
|
|
20125
|
-
errors++;
|
|
20126
20480
|
}
|
|
20127
20481
|
var valid3 = _errs24 === errors;
|
|
20128
20482
|
} else {
|
|
@@ -20136,11 +20490,11 @@ function validate45(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
20136
20490
|
}
|
|
20137
20491
|
}
|
|
20138
20492
|
} else {
|
|
20139
|
-
const
|
|
20493
|
+
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" };
|
|
20140
20494
|
if (vErrors === null) {
|
|
20141
|
-
vErrors = [
|
|
20495
|
+
vErrors = [err10];
|
|
20142
20496
|
} else {
|
|
20143
|
-
vErrors.push(
|
|
20497
|
+
vErrors.push(err10);
|
|
20144
20498
|
}
|
|
20145
20499
|
errors++;
|
|
20146
20500
|
}
|
|
@@ -20149,22 +20503,22 @@ function validate45(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
20149
20503
|
valid2 = valid2 || _valid0;
|
|
20150
20504
|
const _errs26 = errors;
|
|
20151
20505
|
if (data3 !== null) {
|
|
20152
|
-
const
|
|
20506
|
+
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" };
|
|
20153
20507
|
if (vErrors === null) {
|
|
20154
|
-
vErrors = [
|
|
20508
|
+
vErrors = [err11];
|
|
20155
20509
|
} else {
|
|
20156
|
-
vErrors.push(
|
|
20510
|
+
vErrors.push(err11);
|
|
20157
20511
|
}
|
|
20158
20512
|
errors++;
|
|
20159
20513
|
}
|
|
20160
20514
|
var _valid0 = _errs26 === errors;
|
|
20161
20515
|
valid2 = valid2 || _valid0;
|
|
20162
20516
|
if (!valid2) {
|
|
20163
|
-
const
|
|
20517
|
+
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" };
|
|
20164
20518
|
if (vErrors === null) {
|
|
20165
|
-
vErrors = [
|
|
20519
|
+
vErrors = [err12];
|
|
20166
20520
|
} else {
|
|
20167
|
-
vErrors.push(
|
|
20521
|
+
vErrors.push(err12);
|
|
20168
20522
|
}
|
|
20169
20523
|
errors++;
|
|
20170
20524
|
validate45.errors = vErrors;
|
|
@@ -20798,8 +21152,7 @@ function validate48(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
20798
21152
|
return errors === 0;
|
|
20799
21153
|
}
|
|
20800
21154
|
validate48.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
|
|
20801
|
-
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"] };
|
|
20802
|
-
var pattern14 = new RegExp("^[0-9a-f]{8}$", "u");
|
|
21155
|
+
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"] };
|
|
20803
21156
|
function validate49(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
20804
21157
|
;
|
|
20805
21158
|
let vErrors = null;
|
|
@@ -21138,7 +21491,7 @@ function validate49(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
21138
21491
|
const _errs27 = errors;
|
|
21139
21492
|
if (errors === _errs27) {
|
|
21140
21493
|
if (typeof data9 === "string") {
|
|
21141
|
-
if (!
|
|
21494
|
+
if (!pattern5.test(data9)) {
|
|
21142
21495
|
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}$"' };
|
|
21143
21496
|
if (vErrors === null) {
|
|
21144
21497
|
vErrors = [err24];
|
|
@@ -21184,14 +21537,24 @@ function validate49(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
21184
21537
|
vErrors.push(err27);
|
|
21185
21538
|
}
|
|
21186
21539
|
errors++;
|
|
21540
|
+
} else {
|
|
21541
|
+
if (!pattern4.test(data10)) {
|
|
21542
|
+
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}$"' };
|
|
21543
|
+
if (vErrors === null) {
|
|
21544
|
+
vErrors = [err28];
|
|
21545
|
+
} else {
|
|
21546
|
+
vErrors.push(err28);
|
|
21547
|
+
}
|
|
21548
|
+
errors++;
|
|
21549
|
+
}
|
|
21187
21550
|
}
|
|
21188
21551
|
}
|
|
21189
21552
|
} else {
|
|
21190
|
-
const
|
|
21553
|
+
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" };
|
|
21191
21554
|
if (vErrors === null) {
|
|
21192
|
-
vErrors = [
|
|
21555
|
+
vErrors = [err29];
|
|
21193
21556
|
} else {
|
|
21194
|
-
vErrors.push(
|
|
21557
|
+
vErrors.push(err29);
|
|
21195
21558
|
}
|
|
21196
21559
|
errors++;
|
|
21197
21560
|
}
|
|
@@ -21204,11 +21567,11 @@ function validate49(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
21204
21567
|
if (data6.intent !== void 0) {
|
|
21205
21568
|
const _errs31 = errors;
|
|
21206
21569
|
if (typeof data6.intent !== "string") {
|
|
21207
|
-
const
|
|
21570
|
+
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" };
|
|
21208
21571
|
if (vErrors === null) {
|
|
21209
|
-
vErrors = [
|
|
21572
|
+
vErrors = [err30];
|
|
21210
21573
|
} else {
|
|
21211
|
-
vErrors.push(
|
|
21574
|
+
vErrors.push(err30);
|
|
21212
21575
|
}
|
|
21213
21576
|
errors++;
|
|
21214
21577
|
}
|
|
@@ -21220,11 +21583,11 @@ function validate49(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
21220
21583
|
if (data6.webUrl !== void 0) {
|
|
21221
21584
|
const _errs33 = errors;
|
|
21222
21585
|
if (typeof data6.webUrl !== "string") {
|
|
21223
|
-
const
|
|
21586
|
+
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" };
|
|
21224
21587
|
if (vErrors === null) {
|
|
21225
|
-
vErrors = [
|
|
21588
|
+
vErrors = [err31];
|
|
21226
21589
|
} else {
|
|
21227
|
-
vErrors.push(
|
|
21590
|
+
vErrors.push(err31);
|
|
21228
21591
|
}
|
|
21229
21592
|
errors++;
|
|
21230
21593
|
}
|
|
@@ -21237,20 +21600,20 @@ function validate49(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
21237
21600
|
let data13 = data6.kind;
|
|
21238
21601
|
const _errs35 = errors;
|
|
21239
21602
|
if (typeof data13 !== "string") {
|
|
21240
|
-
const
|
|
21603
|
+
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" };
|
|
21241
21604
|
if (vErrors === null) {
|
|
21242
|
-
vErrors = [
|
|
21605
|
+
vErrors = [err32];
|
|
21243
21606
|
} else {
|
|
21244
|
-
vErrors.push(
|
|
21607
|
+
vErrors.push(err32);
|
|
21245
21608
|
}
|
|
21246
21609
|
errors++;
|
|
21247
21610
|
}
|
|
21248
21611
|
if (!(data13 === "confirm_prompt" || data13 === "publish_prompt")) {
|
|
21249
|
-
const
|
|
21612
|
+
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" };
|
|
21250
21613
|
if (vErrors === null) {
|
|
21251
|
-
vErrors = [
|
|
21614
|
+
vErrors = [err33];
|
|
21252
21615
|
} else {
|
|
21253
|
-
vErrors.push(
|
|
21616
|
+
vErrors.push(err33);
|
|
21254
21617
|
}
|
|
21255
21618
|
errors++;
|
|
21256
21619
|
}
|
|
@@ -21266,11 +21629,11 @@ function validate49(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
21266
21629
|
}
|
|
21267
21630
|
}
|
|
21268
21631
|
} else {
|
|
21269
|
-
const
|
|
21632
|
+
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" };
|
|
21270
21633
|
if (vErrors === null) {
|
|
21271
|
-
vErrors = [
|
|
21634
|
+
vErrors = [err34];
|
|
21272
21635
|
} else {
|
|
21273
|
-
vErrors.push(
|
|
21636
|
+
vErrors.push(err34);
|
|
21274
21637
|
}
|
|
21275
21638
|
errors++;
|
|
21276
21639
|
}
|
|
@@ -21283,11 +21646,11 @@ function validate49(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
21283
21646
|
}
|
|
21284
21647
|
}
|
|
21285
21648
|
} else {
|
|
21286
|
-
const
|
|
21649
|
+
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" };
|
|
21287
21650
|
if (vErrors === null) {
|
|
21288
|
-
vErrors = [
|
|
21651
|
+
vErrors = [err35];
|
|
21289
21652
|
} else {
|
|
21290
|
-
vErrors.push(
|
|
21653
|
+
vErrors.push(err35);
|
|
21291
21654
|
}
|
|
21292
21655
|
errors++;
|
|
21293
21656
|
}
|
|
@@ -21300,11 +21663,11 @@ function validate49(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
21300
21663
|
if (data.hasMore !== void 0) {
|
|
21301
21664
|
const _errs37 = errors;
|
|
21302
21665
|
if (typeof data.hasMore !== "boolean") {
|
|
21303
|
-
const
|
|
21666
|
+
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" };
|
|
21304
21667
|
if (vErrors === null) {
|
|
21305
|
-
vErrors = [
|
|
21668
|
+
vErrors = [err36];
|
|
21306
21669
|
} else {
|
|
21307
|
-
vErrors.push(
|
|
21670
|
+
vErrors.push(err36);
|
|
21308
21671
|
}
|
|
21309
21672
|
errors++;
|
|
21310
21673
|
}
|
|
@@ -21317,11 +21680,11 @@ function validate49(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
21317
21680
|
}
|
|
21318
21681
|
}
|
|
21319
21682
|
} else {
|
|
21320
|
-
const
|
|
21683
|
+
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" };
|
|
21321
21684
|
if (vErrors === null) {
|
|
21322
|
-
vErrors = [
|
|
21685
|
+
vErrors = [err37];
|
|
21323
21686
|
} else {
|
|
21324
|
-
vErrors.push(
|
|
21687
|
+
vErrors.push(err37);
|
|
21325
21688
|
}
|
|
21326
21689
|
errors++;
|
|
21327
21690
|
}
|
|
@@ -21338,11 +21701,11 @@ function validate49(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
21338
21701
|
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
21339
21702
|
let missing3;
|
|
21340
21703
|
if (data.protocolVersion === void 0 && (missing3 = "protocolVersion") || data.status === void 0 && (missing3 = "status") || data.reason === void 0 && (missing3 = "reason")) {
|
|
21341
|
-
const
|
|
21704
|
+
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 + "'" };
|
|
21342
21705
|
if (vErrors === null) {
|
|
21343
|
-
vErrors = [
|
|
21706
|
+
vErrors = [err38];
|
|
21344
21707
|
} else {
|
|
21345
|
-
vErrors.push(
|
|
21708
|
+
vErrors.push(err38);
|
|
21346
21709
|
}
|
|
21347
21710
|
errors++;
|
|
21348
21711
|
} else {
|
|
@@ -21350,31 +21713,31 @@ function validate49(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
21350
21713
|
let data15 = data.protocolVersion;
|
|
21351
21714
|
const _errs42 = errors;
|
|
21352
21715
|
if (!(typeof data15 == "number" && (!(data15 % 1) && !isNaN(data15)) && isFinite(data15))) {
|
|
21353
|
-
const
|
|
21716
|
+
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" };
|
|
21354
21717
|
if (vErrors === null) {
|
|
21355
|
-
vErrors = [
|
|
21718
|
+
vErrors = [err39];
|
|
21356
21719
|
} else {
|
|
21357
|
-
vErrors.push(
|
|
21720
|
+
vErrors.push(err39);
|
|
21358
21721
|
}
|
|
21359
21722
|
errors++;
|
|
21360
21723
|
}
|
|
21361
21724
|
if (errors === _errs42) {
|
|
21362
21725
|
if (typeof data15 == "number" && isFinite(data15)) {
|
|
21363
21726
|
if (data15 > 2 || isNaN(data15)) {
|
|
21364
|
-
const
|
|
21727
|
+
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" };
|
|
21365
21728
|
if (vErrors === null) {
|
|
21366
|
-
vErrors = [
|
|
21729
|
+
vErrors = [err40];
|
|
21367
21730
|
} else {
|
|
21368
|
-
vErrors.push(
|
|
21731
|
+
vErrors.push(err40);
|
|
21369
21732
|
}
|
|
21370
21733
|
errors++;
|
|
21371
21734
|
} else {
|
|
21372
21735
|
if (data15 < 1 || isNaN(data15)) {
|
|
21373
|
-
const
|
|
21736
|
+
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" };
|
|
21374
21737
|
if (vErrors === null) {
|
|
21375
|
-
vErrors = [
|
|
21738
|
+
vErrors = [err41];
|
|
21376
21739
|
} else {
|
|
21377
|
-
vErrors.push(
|
|
21740
|
+
vErrors.push(err41);
|
|
21378
21741
|
}
|
|
21379
21742
|
errors++;
|
|
21380
21743
|
}
|
|
@@ -21390,20 +21753,20 @@ function validate49(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
21390
21753
|
let data16 = data.status;
|
|
21391
21754
|
const _errs44 = errors;
|
|
21392
21755
|
if (typeof data16 !== "string") {
|
|
21393
|
-
const
|
|
21756
|
+
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" };
|
|
21394
21757
|
if (vErrors === null) {
|
|
21395
|
-
vErrors = [
|
|
21758
|
+
vErrors = [err42];
|
|
21396
21759
|
} else {
|
|
21397
|
-
vErrors.push(
|
|
21760
|
+
vErrors.push(err42);
|
|
21398
21761
|
}
|
|
21399
21762
|
errors++;
|
|
21400
21763
|
}
|
|
21401
21764
|
if ("unavailable" !== data16) {
|
|
21402
|
-
const
|
|
21765
|
+
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" };
|
|
21403
21766
|
if (vErrors === null) {
|
|
21404
|
-
vErrors = [
|
|
21767
|
+
vErrors = [err43];
|
|
21405
21768
|
} else {
|
|
21406
|
-
vErrors.push(
|
|
21769
|
+
vErrors.push(err43);
|
|
21407
21770
|
}
|
|
21408
21771
|
errors++;
|
|
21409
21772
|
}
|
|
@@ -21416,20 +21779,20 @@ function validate49(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
21416
21779
|
let data17 = data.reason;
|
|
21417
21780
|
const _errs46 = errors;
|
|
21418
21781
|
if (typeof data17 !== "string") {
|
|
21419
|
-
const
|
|
21782
|
+
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" };
|
|
21420
21783
|
if (vErrors === null) {
|
|
21421
|
-
vErrors = [
|
|
21784
|
+
vErrors = [err44];
|
|
21422
21785
|
} else {
|
|
21423
|
-
vErrors.push(
|
|
21786
|
+
vErrors.push(err44);
|
|
21424
21787
|
}
|
|
21425
21788
|
errors++;
|
|
21426
21789
|
}
|
|
21427
21790
|
if ("organization_unbound" !== data17) {
|
|
21428
|
-
const
|
|
21791
|
+
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" };
|
|
21429
21792
|
if (vErrors === null) {
|
|
21430
|
-
vErrors = [
|
|
21793
|
+
vErrors = [err45];
|
|
21431
21794
|
} else {
|
|
21432
|
-
vErrors.push(
|
|
21795
|
+
vErrors.push(err45);
|
|
21433
21796
|
}
|
|
21434
21797
|
errors++;
|
|
21435
21798
|
}
|
|
@@ -21441,11 +21804,11 @@ function validate49(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
21441
21804
|
}
|
|
21442
21805
|
}
|
|
21443
21806
|
} else {
|
|
21444
|
-
const
|
|
21807
|
+
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" };
|
|
21445
21808
|
if (vErrors === null) {
|
|
21446
|
-
vErrors = [
|
|
21809
|
+
vErrors = [err46];
|
|
21447
21810
|
} else {
|
|
21448
|
-
vErrors.push(
|
|
21811
|
+
vErrors.push(err46);
|
|
21449
21812
|
}
|
|
21450
21813
|
errors++;
|
|
21451
21814
|
}
|
|
@@ -21458,11 +21821,11 @@ function validate49(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
21458
21821
|
}
|
|
21459
21822
|
}
|
|
21460
21823
|
if (!valid1) {
|
|
21461
|
-
const
|
|
21824
|
+
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" };
|
|
21462
21825
|
if (vErrors === null) {
|
|
21463
|
-
vErrors = [
|
|
21826
|
+
vErrors = [err47];
|
|
21464
21827
|
} else {
|
|
21465
|
-
vErrors.push(
|
|
21828
|
+
vErrors.push(err47);
|
|
21466
21829
|
}
|
|
21467
21830
|
errors++;
|
|
21468
21831
|
validate49.errors = vErrors;
|
|
@@ -22194,8 +22557,8 @@ function validate51(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
22194
22557
|
return errors === 0;
|
|
22195
22558
|
}
|
|
22196
22559
|
validate51.evaluated = { "dynamicProps": true, "dynamicItems": false };
|
|
22197
|
-
var
|
|
22198
|
-
var
|
|
22560
|
+
var pattern48 = new RegExp("^[A-Za-z0-9]{1,128}$", "u");
|
|
22561
|
+
var pattern49 = new RegExp("^https:\\/\\/github\\.com\\/apps\\/primitive(?:-staging)?\\/installations\\/new\\?state=[0-9a-f]{64}$", "u");
|
|
22199
22562
|
function validate52(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
22200
22563
|
;
|
|
22201
22564
|
let vErrors = null;
|
|
@@ -22277,7 +22640,7 @@ function validate52(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
22277
22640
|
const _errs9 = errors;
|
|
22278
22641
|
if (errors === _errs9) {
|
|
22279
22642
|
if (typeof data3 === "string") {
|
|
22280
|
-
if (!
|
|
22643
|
+
if (!pattern48.test(data3)) {
|
|
22281
22644
|
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}$"' }];
|
|
22282
22645
|
return false;
|
|
22283
22646
|
}
|
|
@@ -22296,7 +22659,7 @@ function validate52(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
22296
22659
|
const _errs11 = errors;
|
|
22297
22660
|
if (errors === _errs11) {
|
|
22298
22661
|
if (typeof data4 === "string") {
|
|
22299
|
-
if (!
|
|
22662
|
+
if (!pattern49.test(data4)) {
|
|
22300
22663
|
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}$"' }];
|
|
22301
22664
|
return false;
|
|
22302
22665
|
}
|
|
@@ -22704,7 +23067,7 @@ function validate54(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
22704
23067
|
const _errs3 = errors;
|
|
22705
23068
|
if (errors === _errs3) {
|
|
22706
23069
|
if (typeof data0 === "string") {
|
|
22707
|
-
if (!
|
|
23070
|
+
if (!pattern48.test(data0)) {
|
|
22708
23071
|
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}$"' }];
|
|
22709
23072
|
return false;
|
|
22710
23073
|
}
|
|
@@ -24276,7 +24639,7 @@ function validate55(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
24276
24639
|
}
|
|
24277
24640
|
validate55.evaluated = { "dynamicProps": true, "dynamicItems": false };
|
|
24278
24641
|
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": {} };
|
|
24279
|
-
var
|
|
24642
|
+
var pattern51 = new RegExp("^[A-Za-z0-9_-]+$", "u");
|
|
24280
24643
|
function validate56(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
24281
24644
|
;
|
|
24282
24645
|
let vErrors = null;
|
|
@@ -24637,7 +25000,7 @@ function validate56(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
24637
25000
|
}
|
|
24638
25001
|
errors++;
|
|
24639
25002
|
} else {
|
|
24640
|
-
if (!
|
|
25003
|
+
if (!pattern51.test(data11)) {
|
|
24641
25004
|
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_-]+$"' };
|
|
24642
25005
|
if (vErrors === null) {
|
|
24643
25006
|
vErrors = [err22];
|
|
@@ -25162,7 +25525,7 @@ function validate56(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
25162
25525
|
}
|
|
25163
25526
|
errors++;
|
|
25164
25527
|
} else {
|
|
25165
|
-
if (!
|
|
25528
|
+
if (!pattern51.test(data26)) {
|
|
25166
25529
|
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_-]+$"' };
|
|
25167
25530
|
if (vErrors === null) {
|
|
25168
25531
|
vErrors = [err58];
|
|
@@ -25405,10 +25768,10 @@ function validate56(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
25405
25768
|
}
|
|
25406
25769
|
validate56.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
|
|
25407
25770
|
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"] };
|
|
25408
|
-
var
|
|
25409
|
-
var
|
|
25410
|
-
var
|
|
25411
|
-
var
|
|
25771
|
+
var pattern53 = new RegExp("^[A-Za-z0-9._:-]{1,128}$", "u");
|
|
25772
|
+
var pattern55 = new RegExp("^[A-Za-z0-9]{1,64}$", "u");
|
|
25773
|
+
var pattern56 = new RegExp("^(?!@?$)(?!\\/)(?!.*\\/$)(?!.*\\/\\/)(?!.*(?:^|\\/)\\.{1,2}(?:\\/|$))(?!.*(?:^|\\/)[^/]*\\.lock(?:\\/|$))(?!.*\\.\\.)(?!.*@\\{)(?!.*[~^:?*\\\\]).+$", "u");
|
|
25774
|
+
var pattern57 = new RegExp("^[A-Za-z0-9][A-Za-z0-9._+-]*$", "u");
|
|
25412
25775
|
function validate57(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
25413
25776
|
;
|
|
25414
25777
|
let vErrors = null;
|
|
@@ -25474,7 +25837,7 @@ function validate57(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
25474
25837
|
const _errs8 = errors;
|
|
25475
25838
|
if (errors === _errs8) {
|
|
25476
25839
|
if (typeof data2 === "string") {
|
|
25477
|
-
if (!
|
|
25840
|
+
if (!pattern53.test(data2)) {
|
|
25478
25841
|
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}$"' }];
|
|
25479
25842
|
return false;
|
|
25480
25843
|
}
|
|
@@ -25493,7 +25856,7 @@ function validate57(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
25493
25856
|
const _errs10 = errors;
|
|
25494
25857
|
if (errors === _errs10) {
|
|
25495
25858
|
if (typeof data3 === "string") {
|
|
25496
|
-
if (!
|
|
25859
|
+
if (!pattern53.test(data3)) {
|
|
25497
25860
|
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}$"' }];
|
|
25498
25861
|
return false;
|
|
25499
25862
|
}
|
|
@@ -25512,7 +25875,7 @@ function validate57(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
25512
25875
|
const _errs12 = errors;
|
|
25513
25876
|
if (errors === _errs12) {
|
|
25514
25877
|
if (typeof data4 === "string") {
|
|
25515
|
-
if (!
|
|
25878
|
+
if (!pattern55.test(data4)) {
|
|
25516
25879
|
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}$"' }];
|
|
25517
25880
|
return false;
|
|
25518
25881
|
}
|
|
@@ -25584,7 +25947,7 @@ function validate57(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
25584
25947
|
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" }];
|
|
25585
25948
|
return false;
|
|
25586
25949
|
} else {
|
|
25587
|
-
if (!
|
|
25950
|
+
if (!pattern56.test(data8)) {
|
|
25588
25951
|
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(?:\\/|$))(?!.*\\.\\.)(?!.*@\\{)(?!.*[~^:?*\\\\]).+$"' }];
|
|
25589
25952
|
return false;
|
|
25590
25953
|
}
|
|
@@ -25624,7 +25987,7 @@ function validate57(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
25624
25987
|
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" }];
|
|
25625
25988
|
return false;
|
|
25626
25989
|
} else {
|
|
25627
|
-
if (!
|
|
25990
|
+
if (!pattern57.test(data10)) {
|
|
25628
25991
|
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._+-]*$"' }];
|
|
25629
25992
|
return false;
|
|
25630
25993
|
}
|
|
@@ -25670,7 +26033,7 @@ function validate57(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
25670
26033
|
return errors === 0;
|
|
25671
26034
|
}
|
|
25672
26035
|
validate57.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
|
|
25673
|
-
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": {} };
|
|
26036
|
+
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": {} };
|
|
25674
26037
|
function validate58(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
25675
26038
|
;
|
|
25676
26039
|
let vErrors = null;
|
|
@@ -25711,7 +26074,7 @@ function validate58(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
25711
26074
|
const _errs5 = errors;
|
|
25712
26075
|
if (errors === _errs5) {
|
|
25713
26076
|
if (typeof data1 === "string") {
|
|
25714
|
-
if (!
|
|
26077
|
+
if (!pattern53.test(data1)) {
|
|
25715
26078
|
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}$"' }];
|
|
25716
26079
|
return false;
|
|
25717
26080
|
}
|
|
@@ -25781,10 +26144,18 @@ function validate58(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
25781
26144
|
return false;
|
|
25782
26145
|
} else {
|
|
25783
26146
|
if (data6.decisionId !== void 0) {
|
|
26147
|
+
let data7 = data6.decisionId;
|
|
25784
26148
|
const _errs18 = errors;
|
|
25785
|
-
if (
|
|
25786
|
-
|
|
25787
|
-
|
|
26149
|
+
if (errors === _errs18) {
|
|
26150
|
+
if (typeof data7 === "string") {
|
|
26151
|
+
if (!pattern4.test(data7)) {
|
|
26152
|
+
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}$"' }];
|
|
26153
|
+
return false;
|
|
26154
|
+
}
|
|
26155
|
+
} else {
|
|
26156
|
+
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" }];
|
|
26157
|
+
return false;
|
|
26158
|
+
}
|
|
25788
26159
|
}
|
|
25789
26160
|
var valid3 = _errs18 === errors;
|
|
25790
26161
|
} else {
|
|
@@ -25792,10 +26163,18 @@ function validate58(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
25792
26163
|
}
|
|
25793
26164
|
if (valid3) {
|
|
25794
26165
|
if (data6.shortId !== void 0) {
|
|
26166
|
+
let data8 = data6.shortId;
|
|
25795
26167
|
const _errs20 = errors;
|
|
25796
|
-
if (
|
|
25797
|
-
|
|
25798
|
-
|
|
26168
|
+
if (errors === _errs20) {
|
|
26169
|
+
if (typeof data8 === "string") {
|
|
26170
|
+
if (!pattern5.test(data8)) {
|
|
26171
|
+
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}$"' }];
|
|
26172
|
+
return false;
|
|
26173
|
+
}
|
|
26174
|
+
} else {
|
|
26175
|
+
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" }];
|
|
26176
|
+
return false;
|
|
26177
|
+
}
|
|
25799
26178
|
}
|
|
25800
26179
|
var valid3 = _errs20 === errors;
|
|
25801
26180
|
} else {
|
|
@@ -25853,10 +26232,18 @@ function validate58(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
25853
26232
|
return false;
|
|
25854
26233
|
} else {
|
|
25855
26234
|
if (data11.decisionId !== void 0) {
|
|
26235
|
+
let data12 = data11.decisionId;
|
|
25856
26236
|
const _errs29 = errors;
|
|
25857
|
-
if (
|
|
25858
|
-
|
|
25859
|
-
|
|
26237
|
+
if (errors === _errs29) {
|
|
26238
|
+
if (typeof data12 === "string") {
|
|
26239
|
+
if (!pattern4.test(data12)) {
|
|
26240
|
+
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}$"' }];
|
|
26241
|
+
return false;
|
|
26242
|
+
}
|
|
26243
|
+
} else {
|
|
26244
|
+
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" }];
|
|
26245
|
+
return false;
|
|
26246
|
+
}
|
|
25860
26247
|
}
|
|
25861
26248
|
var valid5 = _errs29 === errors;
|
|
25862
26249
|
} else {
|
|
@@ -25875,10 +26262,18 @@ function validate58(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
25875
26262
|
}
|
|
25876
26263
|
if (valid5) {
|
|
25877
26264
|
if (data11.shortId !== void 0) {
|
|
26265
|
+
let data14 = data11.shortId;
|
|
25878
26266
|
const _errs33 = errors;
|
|
25879
|
-
if (
|
|
25880
|
-
|
|
25881
|
-
|
|
26267
|
+
if (errors === _errs33) {
|
|
26268
|
+
if (typeof data14 === "string") {
|
|
26269
|
+
if (!pattern5.test(data14)) {
|
|
26270
|
+
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}$"' }];
|
|
26271
|
+
return false;
|
|
26272
|
+
}
|
|
26273
|
+
} else {
|
|
26274
|
+
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" }];
|
|
26275
|
+
return false;
|
|
26276
|
+
}
|
|
25882
26277
|
}
|
|
25883
26278
|
var valid5 = _errs33 === errors;
|
|
25884
26279
|
} else {
|
|
@@ -26200,10 +26595,18 @@ function validate58(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
26200
26595
|
}
|
|
26201
26596
|
if (_errs65 === errors) {
|
|
26202
26597
|
if (data28.decisionId !== void 0) {
|
|
26598
|
+
let data29 = data28.decisionId;
|
|
26203
26599
|
const _errs66 = errors;
|
|
26204
|
-
if (
|
|
26205
|
-
|
|
26206
|
-
|
|
26600
|
+
if (errors === _errs66) {
|
|
26601
|
+
if (typeof data29 === "string") {
|
|
26602
|
+
if (!pattern4.test(data29)) {
|
|
26603
|
+
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}$"' }];
|
|
26604
|
+
return false;
|
|
26605
|
+
}
|
|
26606
|
+
} else {
|
|
26607
|
+
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" }];
|
|
26608
|
+
return false;
|
|
26609
|
+
}
|
|
26207
26610
|
}
|
|
26208
26611
|
var valid10 = _errs66 === errors;
|
|
26209
26612
|
} else {
|
|
@@ -26301,10 +26704,18 @@ function validate58(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
26301
26704
|
}
|
|
26302
26705
|
if (_errs74 === errors) {
|
|
26303
26706
|
if (data32.decisionId !== void 0) {
|
|
26707
|
+
let data33 = data32.decisionId;
|
|
26304
26708
|
const _errs75 = errors;
|
|
26305
|
-
if (
|
|
26306
|
-
|
|
26307
|
-
|
|
26709
|
+
if (errors === _errs75) {
|
|
26710
|
+
if (typeof data33 === "string") {
|
|
26711
|
+
if (!pattern4.test(data33)) {
|
|
26712
|
+
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}$"' }];
|
|
26713
|
+
return false;
|
|
26714
|
+
}
|
|
26715
|
+
} else {
|
|
26716
|
+
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" }];
|
|
26717
|
+
return false;
|
|
26718
|
+
}
|
|
26308
26719
|
}
|
|
26309
26720
|
var valid12 = _errs75 === errors;
|
|
26310
26721
|
} else {
|
|
@@ -26312,10 +26723,18 @@ function validate58(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
26312
26723
|
}
|
|
26313
26724
|
if (valid12) {
|
|
26314
26725
|
if (data32.shortId !== void 0) {
|
|
26726
|
+
let data34 = data32.shortId;
|
|
26315
26727
|
const _errs77 = errors;
|
|
26316
|
-
if (
|
|
26317
|
-
|
|
26318
|
-
|
|
26728
|
+
if (errors === _errs77) {
|
|
26729
|
+
if (typeof data34 === "string") {
|
|
26730
|
+
if (!pattern5.test(data34)) {
|
|
26731
|
+
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}$"' }];
|
|
26732
|
+
return false;
|
|
26733
|
+
}
|
|
26734
|
+
} else {
|
|
26735
|
+
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" }];
|
|
26736
|
+
return false;
|
|
26737
|
+
}
|
|
26319
26738
|
}
|
|
26320
26739
|
var valid12 = _errs77 === errors;
|
|
26321
26740
|
} else {
|
|
@@ -26380,8 +26799,8 @@ function validate58(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
26380
26799
|
return errors === 0;
|
|
26381
26800
|
}
|
|
26382
26801
|
validate58.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
|
|
26383
|
-
var
|
|
26384
|
-
var
|
|
26802
|
+
var pattern66 = new RegExp("^[A-Za-z0-9._-]{1,128}$", "u");
|
|
26803
|
+
var pattern67 = new RegExp("^pci_[A-Za-z0-9_-]{43}$", "u");
|
|
26385
26804
|
function validate59(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
26386
26805
|
;
|
|
26387
26806
|
let vErrors = null;
|
|
@@ -26406,7 +26825,7 @@ function validate59(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
26406
26825
|
const _errs3 = errors;
|
|
26407
26826
|
if (errors === _errs3) {
|
|
26408
26827
|
if (typeof data0 === "string") {
|
|
26409
|
-
if (!
|
|
26828
|
+
if (!pattern66.test(data0)) {
|
|
26410
26829
|
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}$"' }];
|
|
26411
26830
|
return false;
|
|
26412
26831
|
}
|
|
@@ -26425,7 +26844,7 @@ function validate59(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
26425
26844
|
const _errs5 = errors;
|
|
26426
26845
|
if (errors === _errs5) {
|
|
26427
26846
|
if (typeof data1 === "string") {
|
|
26428
|
-
if (!
|
|
26847
|
+
if (!pattern67.test(data1)) {
|
|
26429
26848
|
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}$"' }];
|
|
26430
26849
|
return false;
|
|
26431
26850
|
}
|
|
@@ -26967,7 +27386,7 @@ function validate61(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
26967
27386
|
return errors === 0;
|
|
26968
27387
|
}
|
|
26969
27388
|
validate61.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
|
|
26970
|
-
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 };
|
|
27389
|
+
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 };
|
|
26971
27390
|
function validate62(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
26972
27391
|
;
|
|
26973
27392
|
let vErrors = null;
|
|
@@ -27024,10 +27443,18 @@ function validate62(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
27024
27443
|
}
|
|
27025
27444
|
if (valid1) {
|
|
27026
27445
|
if (data.decisionId !== void 0) {
|
|
27446
|
+
let data2 = data.decisionId;
|
|
27027
27447
|
const _errs7 = errors;
|
|
27028
|
-
if (
|
|
27029
|
-
|
|
27030
|
-
|
|
27448
|
+
if (errors === _errs7) {
|
|
27449
|
+
if (typeof data2 === "string") {
|
|
27450
|
+
if (!pattern4.test(data2)) {
|
|
27451
|
+
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}$"' }];
|
|
27452
|
+
return false;
|
|
27453
|
+
}
|
|
27454
|
+
} else {
|
|
27455
|
+
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" }];
|
|
27456
|
+
return false;
|
|
27457
|
+
}
|
|
27031
27458
|
}
|
|
27032
27459
|
var valid1 = _errs7 === errors;
|
|
27033
27460
|
} else {
|
|
@@ -27088,7 +27515,7 @@ function validate62(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
27088
27515
|
return errors === 0;
|
|
27089
27516
|
}
|
|
27090
27517
|
validate62.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
|
|
27091
|
-
var
|
|
27518
|
+
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");
|
|
27092
27519
|
function validate63(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
27093
27520
|
;
|
|
27094
27521
|
let vErrors = null;
|
|
@@ -27122,7 +27549,7 @@ function validate63(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
27122
27549
|
const _errs3 = errors;
|
|
27123
27550
|
if (errors === _errs3) {
|
|
27124
27551
|
if (typeof data0 === "string") {
|
|
27125
|
-
if (!
|
|
27552
|
+
if (!pattern69.test(data0)) {
|
|
27126
27553
|
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}$"' }];
|
|
27127
27554
|
return false;
|
|
27128
27555
|
}
|
|
@@ -27187,7 +27614,7 @@ function validate64(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
27187
27614
|
return errors === 0;
|
|
27188
27615
|
}
|
|
27189
27616
|
validate64.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
|
|
27190
|
-
var
|
|
27617
|
+
var pattern71 = new RegExp("^api_key_[A-Za-z0-9_-]+$", "u");
|
|
27191
27618
|
function validate65(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
27192
27619
|
;
|
|
27193
27620
|
let vErrors = null;
|
|
@@ -27221,7 +27648,7 @@ function validate65(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
27221
27648
|
const _errs3 = errors;
|
|
27222
27649
|
if (errors === _errs3) {
|
|
27223
27650
|
if (typeof data0 === "string") {
|
|
27224
|
-
if (!
|
|
27651
|
+
if (!pattern35.test(data0)) {
|
|
27225
27652
|
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}$"' }];
|
|
27226
27653
|
return false;
|
|
27227
27654
|
}
|
|
@@ -27273,7 +27700,7 @@ function validate65(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
27273
27700
|
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" }];
|
|
27274
27701
|
return false;
|
|
27275
27702
|
} else {
|
|
27276
|
-
if (!
|
|
27703
|
+
if (!pattern71.test(data2)) {
|
|
27277
27704
|
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_-]+$"' }];
|
|
27278
27705
|
return false;
|
|
27279
27706
|
}
|
|
@@ -27301,9 +27728,9 @@ function validate65(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
27301
27728
|
return errors === 0;
|
|
27302
27729
|
}
|
|
27303
27730
|
validate65.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
|
|
27304
|
-
var
|
|
27305
|
-
var
|
|
27306
|
-
var
|
|
27731
|
+
var pattern73 = new RegExp("^[\\x21-\\x7e](?:[\\x20-\\x7e]{0,126}[\\x21-\\x7e])?$", "u");
|
|
27732
|
+
var pattern74 = new RegExp("^[^\\u0000-\\u001f\\u007f-\\u009f\\u2028\\u2029\\u061c\\u200b-\\u200f\\u202a-\\u202e\\u2060\\u2066-\\u2069\\ufeff]+$", "u");
|
|
27733
|
+
var pattern75 = new RegExp("^[\\x21-\\x7e]+$", "u");
|
|
27307
27734
|
function validate66(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
27308
27735
|
;
|
|
27309
27736
|
let vErrors = null;
|
|
@@ -27375,7 +27802,7 @@ function validate66(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
27375
27802
|
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" }];
|
|
27376
27803
|
return false;
|
|
27377
27804
|
} else {
|
|
27378
|
-
if (!
|
|
27805
|
+
if (!pattern71.test(data2)) {
|
|
27379
27806
|
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_-]+$"' }];
|
|
27380
27807
|
return false;
|
|
27381
27808
|
}
|
|
@@ -27404,7 +27831,7 @@ function validate66(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
27404
27831
|
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" }];
|
|
27405
27832
|
return false;
|
|
27406
27833
|
} else {
|
|
27407
|
-
if (!
|
|
27834
|
+
if (!pattern73.test(data3)) {
|
|
27408
27835
|
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])?$"' }];
|
|
27409
27836
|
return false;
|
|
27410
27837
|
}
|
|
@@ -27433,7 +27860,7 @@ function validate66(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
27433
27860
|
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" }];
|
|
27434
27861
|
return false;
|
|
27435
27862
|
} else {
|
|
27436
|
-
if (!
|
|
27863
|
+
if (!pattern74.test(data4)) {
|
|
27437
27864
|
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]+$"' }];
|
|
27438
27865
|
return false;
|
|
27439
27866
|
}
|
|
@@ -27473,7 +27900,7 @@ function validate66(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
27473
27900
|
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" }];
|
|
27474
27901
|
return false;
|
|
27475
27902
|
} else {
|
|
27476
|
-
if (!
|
|
27903
|
+
if (!pattern75.test(data6)) {
|
|
27477
27904
|
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]+$"' }];
|
|
27478
27905
|
return false;
|
|
27479
27906
|
}
|
|
@@ -27759,7 +28186,7 @@ function validate66(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
27759
28186
|
}
|
|
27760
28187
|
errors++;
|
|
27761
28188
|
} else {
|
|
27762
|
-
if (!
|
|
28189
|
+
if (!pattern71.test(data11)) {
|
|
27763
28190
|
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_-]+$"' };
|
|
27764
28191
|
if (vErrors === null) {
|
|
27765
28192
|
vErrors = [err12];
|
|
@@ -27871,7 +28298,7 @@ function validate67(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
27871
28298
|
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" }];
|
|
27872
28299
|
return false;
|
|
27873
28300
|
} else {
|
|
27874
|
-
if (!
|
|
28301
|
+
if (!pattern71.test(data0)) {
|
|
27875
28302
|
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_-]+$"' }];
|
|
27876
28303
|
return false;
|
|
27877
28304
|
}
|
|
@@ -27900,7 +28327,7 @@ function validate67(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
27900
28327
|
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" }];
|
|
27901
28328
|
return false;
|
|
27902
28329
|
} else {
|
|
27903
|
-
if (!
|
|
28330
|
+
if (!pattern73.test(data1)) {
|
|
27904
28331
|
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])?$"' }];
|
|
27905
28332
|
return false;
|
|
27906
28333
|
}
|
|
@@ -27929,7 +28356,7 @@ function validate67(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
27929
28356
|
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" }];
|
|
27930
28357
|
return false;
|
|
27931
28358
|
} else {
|
|
27932
|
-
if (!
|
|
28359
|
+
if (!pattern74.test(data2)) {
|
|
27933
28360
|
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]+$"' }];
|
|
27934
28361
|
return false;
|
|
27935
28362
|
}
|
|
@@ -27969,7 +28396,7 @@ function validate67(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
27969
28396
|
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" }];
|
|
27970
28397
|
return false;
|
|
27971
28398
|
} else {
|
|
27972
|
-
if (!
|
|
28399
|
+
if (!pattern75.test(data4)) {
|
|
27973
28400
|
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]+$"' }];
|
|
27974
28401
|
return false;
|
|
27975
28402
|
}
|
|
@@ -28250,7 +28677,7 @@ function validate68(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
28250
28677
|
const _errs3 = errors;
|
|
28251
28678
|
if (errors === _errs3) {
|
|
28252
28679
|
if (typeof data0 === "string") {
|
|
28253
|
-
if (!
|
|
28680
|
+
if (!pattern35.test(data0)) {
|
|
28254
28681
|
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}$"' }];
|
|
28255
28682
|
return false;
|
|
28256
28683
|
}
|
|
@@ -28277,7 +28704,7 @@ function validate68(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
28277
28704
|
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" }];
|
|
28278
28705
|
return false;
|
|
28279
28706
|
} else {
|
|
28280
|
-
if (!
|
|
28707
|
+
if (!pattern73.test(data1)) {
|
|
28281
28708
|
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])?$"' }];
|
|
28282
28709
|
return false;
|
|
28283
28710
|
}
|
|
@@ -28330,7 +28757,7 @@ function validate68(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
28330
28757
|
return errors === 0;
|
|
28331
28758
|
}
|
|
28332
28759
|
validate68.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
|
|
28333
|
-
var
|
|
28760
|
+
var pattern87 = new RegExp("^sk_[\\x21-\\x7e]+(?: [\\x21-\\x7e]+)*$", "u");
|
|
28334
28761
|
function validate69(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
28335
28762
|
;
|
|
28336
28763
|
let vErrors = null;
|
|
@@ -28391,7 +28818,7 @@ function validate69(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
28391
28818
|
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" }];
|
|
28392
28819
|
return false;
|
|
28393
28820
|
} else {
|
|
28394
|
-
if (!
|
|
28821
|
+
if (!pattern71.test(data1)) {
|
|
28395
28822
|
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_-]+$"' }];
|
|
28396
28823
|
return false;
|
|
28397
28824
|
}
|
|
@@ -28420,7 +28847,7 @@ function validate69(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
28420
28847
|
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" }];
|
|
28421
28848
|
return false;
|
|
28422
28849
|
} else {
|
|
28423
|
-
if (!
|
|
28850
|
+
if (!pattern73.test(data2)) {
|
|
28424
28851
|
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])?$"' }];
|
|
28425
28852
|
return false;
|
|
28426
28853
|
}
|
|
@@ -28449,7 +28876,7 @@ function validate69(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
28449
28876
|
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" }];
|
|
28450
28877
|
return false;
|
|
28451
28878
|
} else {
|
|
28452
|
-
if (!
|
|
28879
|
+
if (!pattern74.test(data3)) {
|
|
28453
28880
|
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]+$"' }];
|
|
28454
28881
|
return false;
|
|
28455
28882
|
}
|
|
@@ -28489,7 +28916,7 @@ function validate69(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
28489
28916
|
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" }];
|
|
28490
28917
|
return false;
|
|
28491
28918
|
} else {
|
|
28492
|
-
if (!
|
|
28919
|
+
if (!pattern75.test(data5)) {
|
|
28493
28920
|
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]+$"' }];
|
|
28494
28921
|
return false;
|
|
28495
28922
|
}
|
|
@@ -28751,7 +29178,7 @@ function validate69(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
28751
29178
|
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" }];
|
|
28752
29179
|
return false;
|
|
28753
29180
|
} else {
|
|
28754
|
-
if (!
|
|
29181
|
+
if (!pattern87.test(data10)) {
|
|
28755
29182
|
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]+)*$"' }];
|
|
28756
29183
|
return false;
|
|
28757
29184
|
}
|
|
@@ -28811,7 +29238,7 @@ function validate70(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
28811
29238
|
const _errs3 = errors;
|
|
28812
29239
|
if (errors === _errs3) {
|
|
28813
29240
|
if (typeof data0 === "string") {
|
|
28814
|
-
if (!
|
|
29241
|
+
if (!pattern35.test(data0)) {
|
|
28815
29242
|
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}$"' }];
|
|
28816
29243
|
return false;
|
|
28817
29244
|
}
|
|
@@ -28873,7 +29300,7 @@ function validate71(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
28873
29300
|
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" }];
|
|
28874
29301
|
return false;
|
|
28875
29302
|
} else {
|
|
28876
|
-
if (!
|
|
29303
|
+
if (!pattern71.test(data0)) {
|
|
28877
29304
|
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_-]+$"' }];
|
|
28878
29305
|
return false;
|
|
28879
29306
|
}
|
|
@@ -29137,7 +29564,7 @@ function validate73(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
29137
29564
|
}
|
|
29138
29565
|
validate73.evaluated = { "dynamicProps": true, "dynamicItems": false };
|
|
29139
29566
|
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"] };
|
|
29140
|
-
var
|
|
29567
|
+
var pattern90 = new RegExp("^client_[A-Za-z0-9_-]+$", "u");
|
|
29141
29568
|
function validate74(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
29142
29569
|
;
|
|
29143
29570
|
let vErrors = null;
|
|
@@ -29206,7 +29633,7 @@ function validate74(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
29206
29633
|
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" }];
|
|
29207
29634
|
return false;
|
|
29208
29635
|
} else {
|
|
29209
|
-
if (!
|
|
29636
|
+
if (!pattern90.test(data2)) {
|
|
29210
29637
|
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_-]+$"' }];
|
|
29211
29638
|
return false;
|
|
29212
29639
|
}
|
|
@@ -30585,7 +31012,7 @@ var DECISION_DIGEST_CACHE_LIMIT = 100;
|
|
|
30585
31012
|
var DECISION_DIGEST_CACHE_WINDOW = "24h";
|
|
30586
31013
|
var DECISION_DIGEST_CACHE_PATH = `/api/cli/decisions/recent?limit=${String(DECISION_DIGEST_CACHE_LIMIT)}&since=${DECISION_DIGEST_CACHE_WINDOW}`;
|
|
30587
31014
|
var DECISION_DRAFT_DIGEST_CACHE_PATH = `${DECISION_DIGEST_CACHE_PATH}&drafts=true`;
|
|
30588
|
-
var SAFE_PRIVATE_DRAFT_ID = /^[
|
|
31015
|
+
var SAFE_PRIVATE_DRAFT_ID = /^dec_[0-9a-f]{8}$/u;
|
|
30589
31016
|
function isActionablePrivateDraft(row) {
|
|
30590
31017
|
if (typeof row !== "object" || row === null || Array.isArray(row)) return false;
|
|
30591
31018
|
const candidate = row;
|