@primitive.ai/prim 0.1.0-alpha.107 → 0.1.0-alpha.109
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 +2 -2
- package/SKILL.md +21 -16
- package/dist/{chunk-6VFUHQ4J.js → chunk-AIAYIXBJ.js} +1 -1
- package/dist/{chunk-7NNJ67YN.js → chunk-D24AUSVP.js} +1 -1
- package/dist/{chunk-4CO4A6NR.js → chunk-EQYIPUFX.js} +1 -1
- package/dist/{chunk-6L7EYXVF.js → chunk-FDXDV2AT.js} +3 -3
- package/dist/{chunk-FFYZ3XMX.js → chunk-GFJ4QIVR.js} +210 -117
- package/dist/{chunk-2EKPBZNA.js → chunk-IQZA65NV.js} +19 -24
- package/dist/{chunk-P5I4HGMW.js → chunk-LFZYNNQQ.js} +1 -1
- package/dist/{chunk-TPWJQD5E.js → chunk-QJOK2VOE.js} +1 -1
- package/dist/{chunk-72CQVK4E.js → chunk-RXD6LFA2.js} +1 -1
- package/dist/{chunk-LVRD562C.js → chunk-YQFJUBNU.js} +1 -1
- package/dist/daemon/server.js +210 -117
- package/dist/hook-runtime/daemon/server.js +210 -117
- package/dist/hook-runtime/hooks/post-commit.js +210 -117
- package/dist/hook-runtime/hooks/post-rewrite.js +210 -117
- package/dist/hook-runtime/hooks/post-tool-use.js +210 -117
- package/dist/hook-runtime/hooks/pre-tool-use.js +210 -117
- package/dist/hook-runtime/hooks/prim-hook.js +210 -117
- package/dist/hook-runtime/hooks/session-start.js +225 -137
- package/dist/hook-runtime/index.js +4297 -355
- package/dist/hooks/post-commit.js +3 -3
- package/dist/hooks/post-rewrite.js +3 -3
- package/dist/hooks/post-tool-use.js +9 -9
- package/dist/hooks/pre-tool-use.js +6 -6
- package/dist/hooks/prim-hook.js +8 -8
- package/dist/hooks/session-start.js +4 -4
- package/dist/index.js +321 -158
- package/package.json +3 -1
|
@@ -11747,8 +11747,9 @@ function validate43(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
11747
11747
|
}
|
|
11748
11748
|
validate43.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
|
|
11749
11749
|
var isDemoStatusResponse = validate44;
|
|
11750
|
-
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 }, "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", "email"], "additionalProperties": false };
|
|
11750
|
+
var schema79 = { "type": "object", "properties": { "scenarioVersion": { "type": "number", "const": 1 }, "fictional": { "type": "boolean", "const": true }, "evaluation": { "type": "string", "const": "live" }, "runId": { "type": "string", "pattern": "^[a-zA-Z0-9]{1,64}$" }, "revision": { "type": "integer", "minimum": 0, "maximum": 9007199254740991 }, "stage": { "type": "string", "enum": ["ready", "checking", "blocked", "approved", "completed", "skipped", "expired"] }, "authorName": { "type": "string", "maxLength": 200 }, "story": { "type": "object", "properties": { "orgName": { "type": "string", "maxLength": 200 }, "recipient": { "type": "string", "format": "email", "pattern": "^(?!\\.)(?!.*\\.\\.)([A-Za-z0-9_'+\\-\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$" }, "decisionDate": { "type": "string", "maxLength": 100 } }, "required": ["orgName", "recipient", "decisionDate"], "additionalProperties": false }, "email": { "type": "string", "enum": ["not_queued", "queued", "accepted", "failed", "suppressed"] }, "verdict": { "type": "string", "enum": ["block", "pass", "pending"] }, "reasonCode": { "type": "string", "maxLength": 100 }, "choice": { "type": "string", "enum": ["adhere", "supersede"] }, "reason": { "type": "string", "maxLength": 500 }, "approvedDigest": { "type": "string", "pattern": "^[a-f0-9]{64}$" } }, "required": ["scenarioVersion", "fictional", "evaluation", "runId", "revision", "stage", "authorName", "story", "email"], "additionalProperties": false };
|
|
11751
11751
|
var func34 = Object.prototype.hasOwnProperty;
|
|
11752
|
+
var pattern12 = new RegExp("^(?!\\.)(?!.*\\.\\.)([A-Za-z0-9_'+\\-\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$", "u");
|
|
11752
11753
|
function validate44(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
11753
11754
|
;
|
|
11754
11755
|
let vErrors = null;
|
|
@@ -11764,7 +11765,7 @@ function validate44(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
11764
11765
|
if (errors === _errs0) {
|
|
11765
11766
|
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
11766
11767
|
let missing0;
|
|
11767
|
-
if (data.scenarioVersion === void 0 && (missing0 = "scenarioVersion") || data.fictional === void 0 && (missing0 = "fictional") || data.evaluation === void 0 && (missing0 = "evaluation") || data.runId === void 0 && (missing0 = "runId") || data.revision === void 0 && (missing0 = "revision") || data.stage === void 0 && (missing0 = "stage") || data.authorName === void 0 && (missing0 = "authorName") || data.email === void 0 && (missing0 = "email")) {
|
|
11768
|
+
if (data.scenarioVersion === void 0 && (missing0 = "scenarioVersion") || data.fictional === void 0 && (missing0 = "fictional") || data.evaluation === void 0 && (missing0 = "evaluation") || data.runId === void 0 && (missing0 = "runId") || data.revision === void 0 && (missing0 = "revision") || data.stage === void 0 && (missing0 = "stage") || data.authorName === void 0 && (missing0 = "authorName") || data.story === void 0 && (missing0 = "story") || data.email === void 0 && (missing0 = "email")) {
|
|
11768
11769
|
validate44.errors = [{ instancePath, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DemoStatusResponse/required", keyword: "required", params: { missingProperty: missing0 }, message: "must have required property '" + missing0 + "'" }];
|
|
11769
11770
|
return false;
|
|
11770
11771
|
} else {
|
|
@@ -11904,110 +11905,202 @@ function validate44(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
11904
11905
|
var valid1 = true;
|
|
11905
11906
|
}
|
|
11906
11907
|
if (valid1) {
|
|
11907
|
-
if (data.
|
|
11908
|
-
let data7 = data.
|
|
11908
|
+
if (data.story !== void 0) {
|
|
11909
|
+
let data7 = data.story;
|
|
11909
11910
|
const _errs17 = errors;
|
|
11910
|
-
if (
|
|
11911
|
-
|
|
11912
|
-
|
|
11913
|
-
|
|
11914
|
-
|
|
11915
|
-
|
|
11916
|
-
|
|
11911
|
+
if (errors === _errs17) {
|
|
11912
|
+
if (data7 && typeof data7 == "object" && !Array.isArray(data7)) {
|
|
11913
|
+
let missing1;
|
|
11914
|
+
if (data7.orgName === void 0 && (missing1 = "orgName") || data7.recipient === void 0 && (missing1 = "recipient") || data7.decisionDate === void 0 && (missing1 = "decisionDate")) {
|
|
11915
|
+
validate44.errors = [{ instancePath: instancePath + "/story", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DemoStatusResponse/properties/story/required", keyword: "required", params: { missingProperty: missing1 }, message: "must have required property '" + missing1 + "'" }];
|
|
11916
|
+
return false;
|
|
11917
|
+
} else {
|
|
11918
|
+
const _errs19 = errors;
|
|
11919
|
+
for (const key1 in data7) {
|
|
11920
|
+
if (!(key1 === "orgName" || key1 === "recipient" || key1 === "decisionDate")) {
|
|
11921
|
+
validate44.errors = [{ instancePath: instancePath + "/story", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DemoStatusResponse/properties/story/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key1 }, message: "must NOT have additional properties" }];
|
|
11922
|
+
return false;
|
|
11923
|
+
break;
|
|
11924
|
+
}
|
|
11925
|
+
}
|
|
11926
|
+
if (_errs19 === errors) {
|
|
11927
|
+
if (data7.orgName !== void 0) {
|
|
11928
|
+
let data8 = data7.orgName;
|
|
11929
|
+
const _errs20 = errors;
|
|
11930
|
+
if (errors === _errs20) {
|
|
11931
|
+
if (typeof data8 === "string") {
|
|
11932
|
+
if (func1(data8) > 200) {
|
|
11933
|
+
validate44.errors = [{ instancePath: instancePath + "/story/orgName", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DemoStatusResponse/properties/story/properties/orgName/maxLength", keyword: "maxLength", params: { limit: 200 }, message: "must NOT have more than 200 characters" }];
|
|
11934
|
+
return false;
|
|
11935
|
+
}
|
|
11936
|
+
} else {
|
|
11937
|
+
validate44.errors = [{ instancePath: instancePath + "/story/orgName", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DemoStatusResponse/properties/story/properties/orgName/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
11938
|
+
return false;
|
|
11939
|
+
}
|
|
11940
|
+
}
|
|
11941
|
+
var valid2 = _errs20 === errors;
|
|
11942
|
+
} else {
|
|
11943
|
+
var valid2 = true;
|
|
11944
|
+
}
|
|
11945
|
+
if (valid2) {
|
|
11946
|
+
if (data7.recipient !== void 0) {
|
|
11947
|
+
let data9 = data7.recipient;
|
|
11948
|
+
const _errs22 = errors;
|
|
11949
|
+
if (errors === _errs22) {
|
|
11950
|
+
if (errors === _errs22) {
|
|
11951
|
+
if (typeof data9 === "string") {
|
|
11952
|
+
if (!pattern12.test(data9)) {
|
|
11953
|
+
validate44.errors = [{ instancePath: instancePath + "/story/recipient", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DemoStatusResponse/properties/story/properties/recipient/pattern", keyword: "pattern", params: { pattern: "^(?!\\.)(?!.*\\.\\.)([A-Za-z0-9_'+\\-\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$" }, message: `must match pattern "^(?!\\.)(?!.*\\.\\.)([A-Za-z0-9_'+\\-\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"` }];
|
|
11954
|
+
return false;
|
|
11955
|
+
}
|
|
11956
|
+
} else {
|
|
11957
|
+
validate44.errors = [{ instancePath: instancePath + "/story/recipient", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DemoStatusResponse/properties/story/properties/recipient/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
11958
|
+
return false;
|
|
11959
|
+
}
|
|
11960
|
+
}
|
|
11961
|
+
}
|
|
11962
|
+
var valid2 = _errs22 === errors;
|
|
11963
|
+
} else {
|
|
11964
|
+
var valid2 = true;
|
|
11965
|
+
}
|
|
11966
|
+
if (valid2) {
|
|
11967
|
+
if (data7.decisionDate !== void 0) {
|
|
11968
|
+
let data10 = data7.decisionDate;
|
|
11969
|
+
const _errs24 = errors;
|
|
11970
|
+
if (errors === _errs24) {
|
|
11971
|
+
if (typeof data10 === "string") {
|
|
11972
|
+
if (func1(data10) > 100) {
|
|
11973
|
+
validate44.errors = [{ instancePath: instancePath + "/story/decisionDate", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DemoStatusResponse/properties/story/properties/decisionDate/maxLength", keyword: "maxLength", params: { limit: 100 }, message: "must NOT have more than 100 characters" }];
|
|
11974
|
+
return false;
|
|
11975
|
+
}
|
|
11976
|
+
} else {
|
|
11977
|
+
validate44.errors = [{ instancePath: instancePath + "/story/decisionDate", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DemoStatusResponse/properties/story/properties/decisionDate/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
11978
|
+
return false;
|
|
11979
|
+
}
|
|
11980
|
+
}
|
|
11981
|
+
var valid2 = _errs24 === errors;
|
|
11982
|
+
} else {
|
|
11983
|
+
var valid2 = true;
|
|
11984
|
+
}
|
|
11985
|
+
}
|
|
11986
|
+
}
|
|
11987
|
+
}
|
|
11988
|
+
}
|
|
11989
|
+
} else {
|
|
11990
|
+
validate44.errors = [{ instancePath: instancePath + "/story", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DemoStatusResponse/properties/story/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
|
|
11991
|
+
return false;
|
|
11992
|
+
}
|
|
11917
11993
|
}
|
|
11918
11994
|
var valid1 = _errs17 === errors;
|
|
11919
11995
|
} else {
|
|
11920
11996
|
var valid1 = true;
|
|
11921
11997
|
}
|
|
11922
11998
|
if (valid1) {
|
|
11923
|
-
if (data.
|
|
11924
|
-
let
|
|
11925
|
-
const
|
|
11926
|
-
if (typeof
|
|
11927
|
-
validate44.errors = [{ instancePath: instancePath + "/
|
|
11999
|
+
if (data.email !== void 0) {
|
|
12000
|
+
let data11 = data.email;
|
|
12001
|
+
const _errs26 = errors;
|
|
12002
|
+
if (typeof data11 !== "string") {
|
|
12003
|
+
validate44.errors = [{ instancePath: instancePath + "/email", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DemoStatusResponse/properties/email/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
11928
12004
|
return false;
|
|
11929
12005
|
}
|
|
11930
|
-
if (!(
|
|
11931
|
-
validate44.errors = [{ instancePath: instancePath + "/
|
|
12006
|
+
if (!(data11 === "not_queued" || data11 === "queued" || data11 === "accepted" || data11 === "failed" || data11 === "suppressed")) {
|
|
12007
|
+
validate44.errors = [{ instancePath: instancePath + "/email", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DemoStatusResponse/properties/email/enum", keyword: "enum", params: { allowedValues: schema79.properties.email.enum }, message: "must be equal to one of the allowed values" }];
|
|
11932
12008
|
return false;
|
|
11933
12009
|
}
|
|
11934
|
-
var valid1 =
|
|
12010
|
+
var valid1 = _errs26 === errors;
|
|
11935
12011
|
} else {
|
|
11936
12012
|
var valid1 = true;
|
|
11937
12013
|
}
|
|
11938
12014
|
if (valid1) {
|
|
11939
|
-
if (data.
|
|
11940
|
-
let
|
|
11941
|
-
const
|
|
11942
|
-
if (
|
|
11943
|
-
|
|
11944
|
-
|
|
11945
|
-
validate44.errors = [{ instancePath: instancePath + "/reasonCode", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DemoStatusResponse/properties/reasonCode/maxLength", keyword: "maxLength", params: { limit: 100 }, message: "must NOT have more than 100 characters" }];
|
|
11946
|
-
return false;
|
|
11947
|
-
}
|
|
11948
|
-
} else {
|
|
11949
|
-
validate44.errors = [{ instancePath: instancePath + "/reasonCode", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DemoStatusResponse/properties/reasonCode/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
11950
|
-
return false;
|
|
11951
|
-
}
|
|
12015
|
+
if (data.verdict !== void 0) {
|
|
12016
|
+
let data12 = data.verdict;
|
|
12017
|
+
const _errs28 = errors;
|
|
12018
|
+
if (typeof data12 !== "string") {
|
|
12019
|
+
validate44.errors = [{ instancePath: instancePath + "/verdict", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DemoStatusResponse/properties/verdict/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
12020
|
+
return false;
|
|
11952
12021
|
}
|
|
11953
|
-
|
|
12022
|
+
if (!(data12 === "block" || data12 === "pass" || data12 === "pending")) {
|
|
12023
|
+
validate44.errors = [{ instancePath: instancePath + "/verdict", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DemoStatusResponse/properties/verdict/enum", keyword: "enum", params: { allowedValues: schema79.properties.verdict.enum }, message: "must be equal to one of the allowed values" }];
|
|
12024
|
+
return false;
|
|
12025
|
+
}
|
|
12026
|
+
var valid1 = _errs28 === errors;
|
|
11954
12027
|
} else {
|
|
11955
12028
|
var valid1 = true;
|
|
11956
12029
|
}
|
|
11957
12030
|
if (valid1) {
|
|
11958
|
-
if (data.
|
|
11959
|
-
let
|
|
11960
|
-
const
|
|
11961
|
-
if (
|
|
11962
|
-
|
|
11963
|
-
|
|
11964
|
-
|
|
11965
|
-
|
|
11966
|
-
|
|
11967
|
-
|
|
12031
|
+
if (data.reasonCode !== void 0) {
|
|
12032
|
+
let data13 = data.reasonCode;
|
|
12033
|
+
const _errs30 = errors;
|
|
12034
|
+
if (errors === _errs30) {
|
|
12035
|
+
if (typeof data13 === "string") {
|
|
12036
|
+
if (func1(data13) > 100) {
|
|
12037
|
+
validate44.errors = [{ instancePath: instancePath + "/reasonCode", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DemoStatusResponse/properties/reasonCode/maxLength", keyword: "maxLength", params: { limit: 100 }, message: "must NOT have more than 100 characters" }];
|
|
12038
|
+
return false;
|
|
12039
|
+
}
|
|
12040
|
+
} else {
|
|
12041
|
+
validate44.errors = [{ instancePath: instancePath + "/reasonCode", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DemoStatusResponse/properties/reasonCode/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
12042
|
+
return false;
|
|
12043
|
+
}
|
|
11968
12044
|
}
|
|
11969
|
-
var valid1 =
|
|
12045
|
+
var valid1 = _errs30 === errors;
|
|
11970
12046
|
} else {
|
|
11971
12047
|
var valid1 = true;
|
|
11972
12048
|
}
|
|
11973
12049
|
if (valid1) {
|
|
11974
|
-
if (data.
|
|
11975
|
-
let
|
|
11976
|
-
const
|
|
11977
|
-
if (
|
|
11978
|
-
|
|
11979
|
-
|
|
11980
|
-
|
|
11981
|
-
|
|
11982
|
-
|
|
11983
|
-
|
|
11984
|
-
validate44.errors = [{ instancePath: instancePath + "/reason", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DemoStatusResponse/properties/reason/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
11985
|
-
return false;
|
|
11986
|
-
}
|
|
12050
|
+
if (data.choice !== void 0) {
|
|
12051
|
+
let data14 = data.choice;
|
|
12052
|
+
const _errs32 = errors;
|
|
12053
|
+
if (typeof data14 !== "string") {
|
|
12054
|
+
validate44.errors = [{ instancePath: instancePath + "/choice", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DemoStatusResponse/properties/choice/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
12055
|
+
return false;
|
|
12056
|
+
}
|
|
12057
|
+
if (!(data14 === "adhere" || data14 === "supersede")) {
|
|
12058
|
+
validate44.errors = [{ instancePath: instancePath + "/choice", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DemoStatusResponse/properties/choice/enum", keyword: "enum", params: { allowedValues: schema79.properties.choice.enum }, message: "must be equal to one of the allowed values" }];
|
|
12059
|
+
return false;
|
|
11987
12060
|
}
|
|
11988
|
-
var valid1 =
|
|
12061
|
+
var valid1 = _errs32 === errors;
|
|
11989
12062
|
} else {
|
|
11990
12063
|
var valid1 = true;
|
|
11991
12064
|
}
|
|
11992
12065
|
if (valid1) {
|
|
11993
|
-
if (data.
|
|
11994
|
-
let
|
|
11995
|
-
const
|
|
11996
|
-
if (errors ===
|
|
11997
|
-
if (typeof
|
|
11998
|
-
if (
|
|
11999
|
-
validate44.errors = [{ instancePath: instancePath + "/
|
|
12066
|
+
if (data.reason !== void 0) {
|
|
12067
|
+
let data15 = data.reason;
|
|
12068
|
+
const _errs34 = errors;
|
|
12069
|
+
if (errors === _errs34) {
|
|
12070
|
+
if (typeof data15 === "string") {
|
|
12071
|
+
if (func1(data15) > 500) {
|
|
12072
|
+
validate44.errors = [{ instancePath: instancePath + "/reason", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DemoStatusResponse/properties/reason/maxLength", keyword: "maxLength", params: { limit: 500 }, message: "must NOT have more than 500 characters" }];
|
|
12000
12073
|
return false;
|
|
12001
12074
|
}
|
|
12002
12075
|
} else {
|
|
12003
|
-
validate44.errors = [{ instancePath: instancePath + "/
|
|
12076
|
+
validate44.errors = [{ instancePath: instancePath + "/reason", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DemoStatusResponse/properties/reason/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
12004
12077
|
return false;
|
|
12005
12078
|
}
|
|
12006
12079
|
}
|
|
12007
|
-
var valid1 =
|
|
12080
|
+
var valid1 = _errs34 === errors;
|
|
12008
12081
|
} else {
|
|
12009
12082
|
var valid1 = true;
|
|
12010
12083
|
}
|
|
12084
|
+
if (valid1) {
|
|
12085
|
+
if (data.approvedDigest !== void 0) {
|
|
12086
|
+
let data16 = data.approvedDigest;
|
|
12087
|
+
const _errs36 = errors;
|
|
12088
|
+
if (errors === _errs36) {
|
|
12089
|
+
if (typeof data16 === "string") {
|
|
12090
|
+
if (!pattern5.test(data16)) {
|
|
12091
|
+
validate44.errors = [{ instancePath: instancePath + "/approvedDigest", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DemoStatusResponse/properties/approvedDigest/pattern", keyword: "pattern", params: { pattern: "^[a-f0-9]{64}$" }, message: 'must match pattern "^[a-f0-9]{64}$"' }];
|
|
12092
|
+
return false;
|
|
12093
|
+
}
|
|
12094
|
+
} else {
|
|
12095
|
+
validate44.errors = [{ instancePath: instancePath + "/approvedDigest", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DemoStatusResponse/properties/approvedDigest/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
12096
|
+
return false;
|
|
12097
|
+
}
|
|
12098
|
+
}
|
|
12099
|
+
var valid1 = _errs36 === errors;
|
|
12100
|
+
} else {
|
|
12101
|
+
var valid1 = true;
|
|
12102
|
+
}
|
|
12103
|
+
}
|
|
12011
12104
|
}
|
|
12012
12105
|
}
|
|
12013
12106
|
}
|
|
@@ -12898,7 +12991,7 @@ function validate48(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
12898
12991
|
}
|
|
12899
12992
|
validate48.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
|
|
12900
12993
|
var schema89 = { "anyOf": [{ "type": "object", "properties": { "protocolVersion": { "type": "integer", "minimum": 1, "maximum": 2 }, "status": { "type": "string", "const": "empty" }, "hasMore": { "type": "boolean", "const": false } }, "required": ["protocolVersion", "status", "hasMore"], "additionalProperties": {} }, { "type": "object", "properties": { "protocolVersion": { "type": "integer", "minimum": 1, "maximum": 2 }, "status": { "type": "string", "const": "leased" }, "events": { "minItems": 1, "maxItems": 40, "type": "array", "items": { "type": "object", "properties": { "eventId": { "type": "string", "minLength": 1, "maxLength": 128 }, "leaseVersion": { "type": "integer", "minimum": 1, "maximum": 9007199254740991 }, "shortId": { "type": "string", "pattern": "^[0-9a-f]{8}$" }, "decisionId": { "type": "string", "minLength": 1, "maxLength": 128 }, "intent": { "type": "string" }, "webUrl": { "type": "string" }, "kind": { "type": "string", "enum": ["confirm_prompt", "publish_prompt"] } }, "required": ["eventId", "leaseVersion", "shortId", "intent", "webUrl"], "additionalProperties": {} } }, "hasMore": { "type": "boolean" } }, "required": ["protocolVersion", "status", "events", "hasMore"], "additionalProperties": {} }, { "type": "object", "properties": { "protocolVersion": { "type": "integer", "minimum": 1, "maximum": 2 }, "status": { "type": "string", "const": "unavailable" }, "reason": { "type": "string", "const": "organization_unbound" } }, "required": ["protocolVersion", "status", "reason"], "additionalProperties": {} }], "x-primitive-runtime-refinements": ["feedback_response_version_negotiation", "feedback_publish_prompt_decision_id", "unique_feedback_event_ids"] };
|
|
12901
|
-
var
|
|
12994
|
+
var pattern14 = new RegExp("^[0-9a-f]{8}$", "u");
|
|
12902
12995
|
function validate49(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
12903
12996
|
;
|
|
12904
12997
|
let vErrors = null;
|
|
@@ -13237,7 +13330,7 @@ function validate49(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
13237
13330
|
const _errs27 = errors;
|
|
13238
13331
|
if (errors === _errs27) {
|
|
13239
13332
|
if (typeof data9 === "string") {
|
|
13240
|
-
if (!
|
|
13333
|
+
if (!pattern14.test(data9)) {
|
|
13241
13334
|
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}$"' };
|
|
13242
13335
|
if (vErrors === null) {
|
|
13243
13336
|
vErrors = [err24];
|
|
@@ -14293,8 +14386,8 @@ function validate51(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
14293
14386
|
return errors === 0;
|
|
14294
14387
|
}
|
|
14295
14388
|
validate51.evaluated = { "dynamicProps": true, "dynamicItems": false };
|
|
14296
|
-
var
|
|
14297
|
-
var
|
|
14389
|
+
var pattern15 = new RegExp("^[A-Za-z0-9]{1,128}$", "u");
|
|
14390
|
+
var pattern16 = new RegExp("^https:\\/\\/github\\.com\\/apps\\/primitive(?:-staging)?\\/installations\\/new\\?state=[0-9a-f]{64}$", "u");
|
|
14298
14391
|
function validate52(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
14299
14392
|
;
|
|
14300
14393
|
let vErrors = null;
|
|
@@ -14376,7 +14469,7 @@ function validate52(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
14376
14469
|
const _errs9 = errors;
|
|
14377
14470
|
if (errors === _errs9) {
|
|
14378
14471
|
if (typeof data3 === "string") {
|
|
14379
|
-
if (!
|
|
14472
|
+
if (!pattern15.test(data3)) {
|
|
14380
14473
|
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}$"' }];
|
|
14381
14474
|
return false;
|
|
14382
14475
|
}
|
|
@@ -14395,7 +14488,7 @@ function validate52(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
14395
14488
|
const _errs11 = errors;
|
|
14396
14489
|
if (errors === _errs11) {
|
|
14397
14490
|
if (typeof data4 === "string") {
|
|
14398
|
-
if (!
|
|
14491
|
+
if (!pattern16.test(data4)) {
|
|
14399
14492
|
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}$"' }];
|
|
14400
14493
|
return false;
|
|
14401
14494
|
}
|
|
@@ -14803,7 +14896,7 @@ function validate54(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
14803
14896
|
const _errs3 = errors;
|
|
14804
14897
|
if (errors === _errs3) {
|
|
14805
14898
|
if (typeof data0 === "string") {
|
|
14806
|
-
if (!
|
|
14899
|
+
if (!pattern15.test(data0)) {
|
|
14807
14900
|
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}$"' }];
|
|
14808
14901
|
return false;
|
|
14809
14902
|
}
|
|
@@ -16375,7 +16468,7 @@ function validate55(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
16375
16468
|
}
|
|
16376
16469
|
validate55.evaluated = { "dynamicProps": true, "dynamicItems": false };
|
|
16377
16470
|
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": {} };
|
|
16378
|
-
var
|
|
16471
|
+
var pattern18 = new RegExp("^[A-Za-z0-9_-]+$", "u");
|
|
16379
16472
|
function validate56(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
16380
16473
|
;
|
|
16381
16474
|
let vErrors = null;
|
|
@@ -16736,7 +16829,7 @@ function validate56(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
16736
16829
|
}
|
|
16737
16830
|
errors++;
|
|
16738
16831
|
} else {
|
|
16739
|
-
if (!
|
|
16832
|
+
if (!pattern18.test(data11)) {
|
|
16740
16833
|
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_-]+$"' };
|
|
16741
16834
|
if (vErrors === null) {
|
|
16742
16835
|
vErrors = [err22];
|
|
@@ -17261,7 +17354,7 @@ function validate56(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
17261
17354
|
}
|
|
17262
17355
|
errors++;
|
|
17263
17356
|
} else {
|
|
17264
|
-
if (!
|
|
17357
|
+
if (!pattern18.test(data26)) {
|
|
17265
17358
|
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_-]+$"' };
|
|
17266
17359
|
if (vErrors === null) {
|
|
17267
17360
|
vErrors = [err58];
|
|
@@ -17504,10 +17597,10 @@ function validate56(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
17504
17597
|
}
|
|
17505
17598
|
validate56.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
|
|
17506
17599
|
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"] };
|
|
17507
|
-
var
|
|
17508
|
-
var
|
|
17509
|
-
var
|
|
17510
|
-
var
|
|
17600
|
+
var pattern20 = new RegExp("^[A-Za-z0-9._:-]{1,128}$", "u");
|
|
17601
|
+
var pattern22 = new RegExp("^[A-Za-z0-9]{1,64}$", "u");
|
|
17602
|
+
var pattern23 = new RegExp("^(?!@?$)(?!\\/)(?!.*\\/$)(?!.*\\/\\/)(?!.*(?:^|\\/)\\.{1,2}(?:\\/|$))(?!.*(?:^|\\/)[^/]*\\.lock(?:\\/|$))(?!.*\\.\\.)(?!.*@\\{)(?!.*[~^:?*\\\\]).+$", "u");
|
|
17603
|
+
var pattern24 = new RegExp("^[A-Za-z0-9][A-Za-z0-9._+-]*$", "u");
|
|
17511
17604
|
function validate57(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
17512
17605
|
;
|
|
17513
17606
|
let vErrors = null;
|
|
@@ -17573,7 +17666,7 @@ function validate57(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
17573
17666
|
const _errs8 = errors;
|
|
17574
17667
|
if (errors === _errs8) {
|
|
17575
17668
|
if (typeof data2 === "string") {
|
|
17576
|
-
if (!
|
|
17669
|
+
if (!pattern20.test(data2)) {
|
|
17577
17670
|
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}$"' }];
|
|
17578
17671
|
return false;
|
|
17579
17672
|
}
|
|
@@ -17592,7 +17685,7 @@ function validate57(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
17592
17685
|
const _errs10 = errors;
|
|
17593
17686
|
if (errors === _errs10) {
|
|
17594
17687
|
if (typeof data3 === "string") {
|
|
17595
|
-
if (!
|
|
17688
|
+
if (!pattern20.test(data3)) {
|
|
17596
17689
|
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}$"' }];
|
|
17597
17690
|
return false;
|
|
17598
17691
|
}
|
|
@@ -17611,7 +17704,7 @@ function validate57(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
17611
17704
|
const _errs12 = errors;
|
|
17612
17705
|
if (errors === _errs12) {
|
|
17613
17706
|
if (typeof data4 === "string") {
|
|
17614
|
-
if (!
|
|
17707
|
+
if (!pattern22.test(data4)) {
|
|
17615
17708
|
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}$"' }];
|
|
17616
17709
|
return false;
|
|
17617
17710
|
}
|
|
@@ -17683,7 +17776,7 @@ function validate57(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
17683
17776
|
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" }];
|
|
17684
17777
|
return false;
|
|
17685
17778
|
} else {
|
|
17686
|
-
if (!
|
|
17779
|
+
if (!pattern23.test(data8)) {
|
|
17687
17780
|
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(?:\\/|$))(?!.*\\.\\.)(?!.*@\\{)(?!.*[~^:?*\\\\]).+$"' }];
|
|
17688
17781
|
return false;
|
|
17689
17782
|
}
|
|
@@ -17723,7 +17816,7 @@ function validate57(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
17723
17816
|
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" }];
|
|
17724
17817
|
return false;
|
|
17725
17818
|
} else {
|
|
17726
|
-
if (!
|
|
17819
|
+
if (!pattern24.test(data10)) {
|
|
17727
17820
|
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._+-]*$"' }];
|
|
17728
17821
|
return false;
|
|
17729
17822
|
}
|
|
@@ -17810,7 +17903,7 @@ function validate58(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
17810
17903
|
const _errs5 = errors;
|
|
17811
17904
|
if (errors === _errs5) {
|
|
17812
17905
|
if (typeof data1 === "string") {
|
|
17813
|
-
if (!
|
|
17906
|
+
if (!pattern20.test(data1)) {
|
|
17814
17907
|
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}$"' }];
|
|
17815
17908
|
return false;
|
|
17816
17909
|
}
|
|
@@ -18107,8 +18200,8 @@ function validate58(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
18107
18200
|
return errors === 0;
|
|
18108
18201
|
}
|
|
18109
18202
|
validate58.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
|
|
18110
|
-
var
|
|
18111
|
-
var
|
|
18203
|
+
var pattern26 = new RegExp("^[A-Za-z0-9._-]{1,128}$", "u");
|
|
18204
|
+
var pattern27 = new RegExp("^pci_[A-Za-z0-9_-]{43}$", "u");
|
|
18112
18205
|
function validate59(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
18113
18206
|
;
|
|
18114
18207
|
let vErrors = null;
|
|
@@ -18133,7 +18226,7 @@ function validate59(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
18133
18226
|
const _errs3 = errors;
|
|
18134
18227
|
if (errors === _errs3) {
|
|
18135
18228
|
if (typeof data0 === "string") {
|
|
18136
|
-
if (!
|
|
18229
|
+
if (!pattern26.test(data0)) {
|
|
18137
18230
|
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}$"' }];
|
|
18138
18231
|
return false;
|
|
18139
18232
|
}
|
|
@@ -18152,7 +18245,7 @@ function validate59(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
18152
18245
|
const _errs5 = errors;
|
|
18153
18246
|
if (errors === _errs5) {
|
|
18154
18247
|
if (typeof data1 === "string") {
|
|
18155
|
-
if (!
|
|
18248
|
+
if (!pattern27.test(data1)) {
|
|
18156
18249
|
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}$"' }];
|
|
18157
18250
|
return false;
|
|
18158
18251
|
}
|
|
@@ -18815,7 +18908,7 @@ function validate62(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
18815
18908
|
return errors === 0;
|
|
18816
18909
|
}
|
|
18817
18910
|
validate62.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
|
|
18818
|
-
var
|
|
18911
|
+
var pattern28 = 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");
|
|
18819
18912
|
function validate63(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
18820
18913
|
;
|
|
18821
18914
|
let vErrors = null;
|
|
@@ -18849,7 +18942,7 @@ function validate63(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
18849
18942
|
const _errs3 = errors;
|
|
18850
18943
|
if (errors === _errs3) {
|
|
18851
18944
|
if (typeof data0 === "string") {
|
|
18852
|
-
if (!
|
|
18945
|
+
if (!pattern28.test(data0)) {
|
|
18853
18946
|
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}$"' }];
|
|
18854
18947
|
return false;
|
|
18855
18948
|
}
|
|
@@ -18914,7 +19007,7 @@ function validate64(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
18914
19007
|
return errors === 0;
|
|
18915
19008
|
}
|
|
18916
19009
|
validate64.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
|
|
18917
|
-
var
|
|
19010
|
+
var pattern30 = new RegExp("^api_key_[A-Za-z0-9_-]+$", "u");
|
|
18918
19011
|
function validate65(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
18919
19012
|
;
|
|
18920
19013
|
let vErrors = null;
|
|
@@ -19000,7 +19093,7 @@ function validate65(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
19000
19093
|
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" }];
|
|
19001
19094
|
return false;
|
|
19002
19095
|
} else {
|
|
19003
|
-
if (!
|
|
19096
|
+
if (!pattern30.test(data2)) {
|
|
19004
19097
|
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_-]+$"' }];
|
|
19005
19098
|
return false;
|
|
19006
19099
|
}
|
|
@@ -19028,9 +19121,9 @@ function validate65(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
19028
19121
|
return errors === 0;
|
|
19029
19122
|
}
|
|
19030
19123
|
validate65.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
|
|
19031
|
-
var
|
|
19032
|
-
var
|
|
19033
|
-
var
|
|
19124
|
+
var pattern32 = new RegExp("^[\\x21-\\x7e](?:[\\x20-\\x7e]{0,126}[\\x21-\\x7e])?$", "u");
|
|
19125
|
+
var pattern33 = new RegExp("^[^\\u0000-\\u001f\\u007f-\\u009f\\u2028\\u2029\\u061c\\u200b-\\u200f\\u202a-\\u202e\\u2060\\u2066-\\u2069\\ufeff]+$", "u");
|
|
19126
|
+
var pattern34 = new RegExp("^[\\x21-\\x7e]+$", "u");
|
|
19034
19127
|
function validate66(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
19035
19128
|
;
|
|
19036
19129
|
let vErrors = null;
|
|
@@ -19102,7 +19195,7 @@ function validate66(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
19102
19195
|
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" }];
|
|
19103
19196
|
return false;
|
|
19104
19197
|
} else {
|
|
19105
|
-
if (!
|
|
19198
|
+
if (!pattern30.test(data2)) {
|
|
19106
19199
|
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_-]+$"' }];
|
|
19107
19200
|
return false;
|
|
19108
19201
|
}
|
|
@@ -19131,7 +19224,7 @@ function validate66(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
19131
19224
|
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" }];
|
|
19132
19225
|
return false;
|
|
19133
19226
|
} else {
|
|
19134
|
-
if (!
|
|
19227
|
+
if (!pattern32.test(data3)) {
|
|
19135
19228
|
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])?$"' }];
|
|
19136
19229
|
return false;
|
|
19137
19230
|
}
|
|
@@ -19160,7 +19253,7 @@ function validate66(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
19160
19253
|
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" }];
|
|
19161
19254
|
return false;
|
|
19162
19255
|
} else {
|
|
19163
|
-
if (!
|
|
19256
|
+
if (!pattern33.test(data4)) {
|
|
19164
19257
|
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]+$"' }];
|
|
19165
19258
|
return false;
|
|
19166
19259
|
}
|
|
@@ -19200,7 +19293,7 @@ function validate66(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
19200
19293
|
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" }];
|
|
19201
19294
|
return false;
|
|
19202
19295
|
} else {
|
|
19203
|
-
if (!
|
|
19296
|
+
if (!pattern34.test(data6)) {
|
|
19204
19297
|
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]+$"' }];
|
|
19205
19298
|
return false;
|
|
19206
19299
|
}
|
|
@@ -19486,7 +19579,7 @@ function validate66(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
19486
19579
|
}
|
|
19487
19580
|
errors++;
|
|
19488
19581
|
} else {
|
|
19489
|
-
if (!
|
|
19582
|
+
if (!pattern30.test(data11)) {
|
|
19490
19583
|
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_-]+$"' };
|
|
19491
19584
|
if (vErrors === null) {
|
|
19492
19585
|
vErrors = [err12];
|
|
@@ -19598,7 +19691,7 @@ function validate67(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
19598
19691
|
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" }];
|
|
19599
19692
|
return false;
|
|
19600
19693
|
} else {
|
|
19601
|
-
if (!
|
|
19694
|
+
if (!pattern30.test(data0)) {
|
|
19602
19695
|
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_-]+$"' }];
|
|
19603
19696
|
return false;
|
|
19604
19697
|
}
|
|
@@ -19627,7 +19720,7 @@ function validate67(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
19627
19720
|
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" }];
|
|
19628
19721
|
return false;
|
|
19629
19722
|
} else {
|
|
19630
|
-
if (!
|
|
19723
|
+
if (!pattern32.test(data1)) {
|
|
19631
19724
|
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])?$"' }];
|
|
19632
19725
|
return false;
|
|
19633
19726
|
}
|
|
@@ -19656,7 +19749,7 @@ function validate67(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
19656
19749
|
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" }];
|
|
19657
19750
|
return false;
|
|
19658
19751
|
} else {
|
|
19659
|
-
if (!
|
|
19752
|
+
if (!pattern33.test(data2)) {
|
|
19660
19753
|
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]+$"' }];
|
|
19661
19754
|
return false;
|
|
19662
19755
|
}
|
|
@@ -19696,7 +19789,7 @@ function validate67(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
19696
19789
|
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" }];
|
|
19697
19790
|
return false;
|
|
19698
19791
|
} else {
|
|
19699
|
-
if (!
|
|
19792
|
+
if (!pattern34.test(data4)) {
|
|
19700
19793
|
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]+$"' }];
|
|
19701
19794
|
return false;
|
|
19702
19795
|
}
|
|
@@ -20004,7 +20097,7 @@ function validate68(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
20004
20097
|
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" }];
|
|
20005
20098
|
return false;
|
|
20006
20099
|
} else {
|
|
20007
|
-
if (!
|
|
20100
|
+
if (!pattern32.test(data1)) {
|
|
20008
20101
|
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])?$"' }];
|
|
20009
20102
|
return false;
|
|
20010
20103
|
}
|
|
@@ -20057,7 +20150,7 @@ function validate68(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
20057
20150
|
return errors === 0;
|
|
20058
20151
|
}
|
|
20059
20152
|
validate68.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
|
|
20060
|
-
var
|
|
20153
|
+
var pattern46 = new RegExp("^sk_[\\x21-\\x7e]+(?: [\\x21-\\x7e]+)*$", "u");
|
|
20061
20154
|
function validate69(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
20062
20155
|
;
|
|
20063
20156
|
let vErrors = null;
|
|
@@ -20118,7 +20211,7 @@ function validate69(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
20118
20211
|
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" }];
|
|
20119
20212
|
return false;
|
|
20120
20213
|
} else {
|
|
20121
|
-
if (!
|
|
20214
|
+
if (!pattern30.test(data1)) {
|
|
20122
20215
|
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_-]+$"' }];
|
|
20123
20216
|
return false;
|
|
20124
20217
|
}
|
|
@@ -20147,7 +20240,7 @@ function validate69(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
20147
20240
|
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" }];
|
|
20148
20241
|
return false;
|
|
20149
20242
|
} else {
|
|
20150
|
-
if (!
|
|
20243
|
+
if (!pattern32.test(data2)) {
|
|
20151
20244
|
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])?$"' }];
|
|
20152
20245
|
return false;
|
|
20153
20246
|
}
|
|
@@ -20176,7 +20269,7 @@ function validate69(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
20176
20269
|
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" }];
|
|
20177
20270
|
return false;
|
|
20178
20271
|
} else {
|
|
20179
|
-
if (!
|
|
20272
|
+
if (!pattern33.test(data3)) {
|
|
20180
20273
|
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]+$"' }];
|
|
20181
20274
|
return false;
|
|
20182
20275
|
}
|
|
@@ -20216,7 +20309,7 @@ function validate69(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
20216
20309
|
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" }];
|
|
20217
20310
|
return false;
|
|
20218
20311
|
} else {
|
|
20219
|
-
if (!
|
|
20312
|
+
if (!pattern34.test(data5)) {
|
|
20220
20313
|
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]+$"' }];
|
|
20221
20314
|
return false;
|
|
20222
20315
|
}
|
|
@@ -20478,7 +20571,7 @@ function validate69(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
20478
20571
|
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" }];
|
|
20479
20572
|
return false;
|
|
20480
20573
|
} else {
|
|
20481
|
-
if (!
|
|
20574
|
+
if (!pattern46.test(data10)) {
|
|
20482
20575
|
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]+)*$"' }];
|
|
20483
20576
|
return false;
|
|
20484
20577
|
}
|
|
@@ -20600,7 +20693,7 @@ function validate71(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
20600
20693
|
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" }];
|
|
20601
20694
|
return false;
|
|
20602
20695
|
} else {
|
|
20603
|
-
if (!
|
|
20696
|
+
if (!pattern30.test(data0)) {
|
|
20604
20697
|
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_-]+$"' }];
|
|
20605
20698
|
return false;
|
|
20606
20699
|
}
|
|
@@ -20864,7 +20957,7 @@ function validate73(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
20864
20957
|
}
|
|
20865
20958
|
validate73.evaluated = { "dynamicProps": true, "dynamicItems": false };
|
|
20866
20959
|
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"] };
|
|
20867
|
-
var
|
|
20960
|
+
var pattern49 = new RegExp("^client_[A-Za-z0-9_-]+$", "u");
|
|
20868
20961
|
function validate74(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
20869
20962
|
;
|
|
20870
20963
|
let vErrors = null;
|
|
@@ -20933,7 +21026,7 @@ function validate74(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
20933
21026
|
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" }];
|
|
20934
21027
|
return false;
|
|
20935
21028
|
} else {
|
|
20936
|
-
if (!
|
|
21029
|
+
if (!pattern49.test(data2)) {
|
|
20937
21030
|
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_-]+$"' }];
|
|
20938
21031
|
return false;
|
|
20939
21032
|
}
|