@primitive.ai/prim 0.1.0-alpha.106 → 0.1.0-alpha.108
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 +1 -1
- package/SKILL.md +42 -5
- package/dist/{chunk-6VFUHQ4J.js → chunk-AIAYIXBJ.js} +1 -1
- package/dist/{chunk-HT2CJ3YD.js → chunk-D24AUSVP.js} +65 -28
- package/dist/{chunk-4CO4A6NR.js → chunk-EQYIPUFX.js} +1 -1
- package/dist/{chunk-XY4CRWTF.js → chunk-FDXDV2AT.js} +3 -3
- package/dist/{chunk-FFYZ3XMX.js → chunk-GFJ4QIVR.js} +210 -117
- package/dist/{chunk-7GSBXHK4.js → chunk-LFZYNNQQ.js} +71 -7
- 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 +890 -749
- package/dist/hook-runtime/hooks/pre-tool-use.js +484 -343
- package/dist/hook-runtime/hooks/prim-hook.js +543 -402
- package/dist/hook-runtime/hooks/session-start.js +210 -117
- package/dist/hook-runtime/index.js +608 -354
- 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 +3 -3
- package/dist/index.js +184 -71
- package/package.json +1 -1
package/dist/daemon/server.js
CHANGED
|
@@ -11535,8 +11535,9 @@ function validate43(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
11535
11535
|
return errors === 0;
|
|
11536
11536
|
}
|
|
11537
11537
|
validate43.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
|
|
11538
|
-
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 };
|
|
11538
|
+
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 };
|
|
11539
11539
|
var func34 = Object.prototype.hasOwnProperty;
|
|
11540
|
+
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");
|
|
11540
11541
|
function validate44(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
11541
11542
|
;
|
|
11542
11543
|
let vErrors = null;
|
|
@@ -11552,7 +11553,7 @@ function validate44(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
11552
11553
|
if (errors === _errs0) {
|
|
11553
11554
|
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
11554
11555
|
let missing0;
|
|
11555
|
-
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")) {
|
|
11556
|
+
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")) {
|
|
11556
11557
|
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 + "'" }];
|
|
11557
11558
|
return false;
|
|
11558
11559
|
} else {
|
|
@@ -11692,110 +11693,202 @@ function validate44(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
11692
11693
|
var valid1 = true;
|
|
11693
11694
|
}
|
|
11694
11695
|
if (valid1) {
|
|
11695
|
-
if (data.
|
|
11696
|
-
let data7 = data.
|
|
11696
|
+
if (data.story !== void 0) {
|
|
11697
|
+
let data7 = data.story;
|
|
11697
11698
|
const _errs17 = errors;
|
|
11698
|
-
if (
|
|
11699
|
-
|
|
11700
|
-
|
|
11701
|
-
|
|
11702
|
-
|
|
11703
|
-
|
|
11704
|
-
|
|
11699
|
+
if (errors === _errs17) {
|
|
11700
|
+
if (data7 && typeof data7 == "object" && !Array.isArray(data7)) {
|
|
11701
|
+
let missing1;
|
|
11702
|
+
if (data7.orgName === void 0 && (missing1 = "orgName") || data7.recipient === void 0 && (missing1 = "recipient") || data7.decisionDate === void 0 && (missing1 = "decisionDate")) {
|
|
11703
|
+
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 + "'" }];
|
|
11704
|
+
return false;
|
|
11705
|
+
} else {
|
|
11706
|
+
const _errs19 = errors;
|
|
11707
|
+
for (const key1 in data7) {
|
|
11708
|
+
if (!(key1 === "orgName" || key1 === "recipient" || key1 === "decisionDate")) {
|
|
11709
|
+
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" }];
|
|
11710
|
+
return false;
|
|
11711
|
+
break;
|
|
11712
|
+
}
|
|
11713
|
+
}
|
|
11714
|
+
if (_errs19 === errors) {
|
|
11715
|
+
if (data7.orgName !== void 0) {
|
|
11716
|
+
let data8 = data7.orgName;
|
|
11717
|
+
const _errs20 = errors;
|
|
11718
|
+
if (errors === _errs20) {
|
|
11719
|
+
if (typeof data8 === "string") {
|
|
11720
|
+
if (func1(data8) > 200) {
|
|
11721
|
+
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" }];
|
|
11722
|
+
return false;
|
|
11723
|
+
}
|
|
11724
|
+
} else {
|
|
11725
|
+
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" }];
|
|
11726
|
+
return false;
|
|
11727
|
+
}
|
|
11728
|
+
}
|
|
11729
|
+
var valid2 = _errs20 === errors;
|
|
11730
|
+
} else {
|
|
11731
|
+
var valid2 = true;
|
|
11732
|
+
}
|
|
11733
|
+
if (valid2) {
|
|
11734
|
+
if (data7.recipient !== void 0) {
|
|
11735
|
+
let data9 = data7.recipient;
|
|
11736
|
+
const _errs22 = errors;
|
|
11737
|
+
if (errors === _errs22) {
|
|
11738
|
+
if (errors === _errs22) {
|
|
11739
|
+
if (typeof data9 === "string") {
|
|
11740
|
+
if (!pattern12.test(data9)) {
|
|
11741
|
+
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,}$"` }];
|
|
11742
|
+
return false;
|
|
11743
|
+
}
|
|
11744
|
+
} else {
|
|
11745
|
+
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" }];
|
|
11746
|
+
return false;
|
|
11747
|
+
}
|
|
11748
|
+
}
|
|
11749
|
+
}
|
|
11750
|
+
var valid2 = _errs22 === errors;
|
|
11751
|
+
} else {
|
|
11752
|
+
var valid2 = true;
|
|
11753
|
+
}
|
|
11754
|
+
if (valid2) {
|
|
11755
|
+
if (data7.decisionDate !== void 0) {
|
|
11756
|
+
let data10 = data7.decisionDate;
|
|
11757
|
+
const _errs24 = errors;
|
|
11758
|
+
if (errors === _errs24) {
|
|
11759
|
+
if (typeof data10 === "string") {
|
|
11760
|
+
if (func1(data10) > 100) {
|
|
11761
|
+
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" }];
|
|
11762
|
+
return false;
|
|
11763
|
+
}
|
|
11764
|
+
} else {
|
|
11765
|
+
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" }];
|
|
11766
|
+
return false;
|
|
11767
|
+
}
|
|
11768
|
+
}
|
|
11769
|
+
var valid2 = _errs24 === errors;
|
|
11770
|
+
} else {
|
|
11771
|
+
var valid2 = true;
|
|
11772
|
+
}
|
|
11773
|
+
}
|
|
11774
|
+
}
|
|
11775
|
+
}
|
|
11776
|
+
}
|
|
11777
|
+
} else {
|
|
11778
|
+
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" }];
|
|
11779
|
+
return false;
|
|
11780
|
+
}
|
|
11705
11781
|
}
|
|
11706
11782
|
var valid1 = _errs17 === errors;
|
|
11707
11783
|
} else {
|
|
11708
11784
|
var valid1 = true;
|
|
11709
11785
|
}
|
|
11710
11786
|
if (valid1) {
|
|
11711
|
-
if (data.
|
|
11712
|
-
let
|
|
11713
|
-
const
|
|
11714
|
-
if (typeof
|
|
11715
|
-
validate44.errors = [{ instancePath: instancePath + "/
|
|
11787
|
+
if (data.email !== void 0) {
|
|
11788
|
+
let data11 = data.email;
|
|
11789
|
+
const _errs26 = errors;
|
|
11790
|
+
if (typeof data11 !== "string") {
|
|
11791
|
+
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" }];
|
|
11716
11792
|
return false;
|
|
11717
11793
|
}
|
|
11718
|
-
if (!(
|
|
11719
|
-
validate44.errors = [{ instancePath: instancePath + "/
|
|
11794
|
+
if (!(data11 === "not_queued" || data11 === "queued" || data11 === "accepted" || data11 === "failed" || data11 === "suppressed")) {
|
|
11795
|
+
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" }];
|
|
11720
11796
|
return false;
|
|
11721
11797
|
}
|
|
11722
|
-
var valid1 =
|
|
11798
|
+
var valid1 = _errs26 === errors;
|
|
11723
11799
|
} else {
|
|
11724
11800
|
var valid1 = true;
|
|
11725
11801
|
}
|
|
11726
11802
|
if (valid1) {
|
|
11727
|
-
if (data.
|
|
11728
|
-
let
|
|
11729
|
-
const
|
|
11730
|
-
if (
|
|
11731
|
-
|
|
11732
|
-
|
|
11733
|
-
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" }];
|
|
11734
|
-
return false;
|
|
11735
|
-
}
|
|
11736
|
-
} else {
|
|
11737
|
-
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" }];
|
|
11738
|
-
return false;
|
|
11739
|
-
}
|
|
11803
|
+
if (data.verdict !== void 0) {
|
|
11804
|
+
let data12 = data.verdict;
|
|
11805
|
+
const _errs28 = errors;
|
|
11806
|
+
if (typeof data12 !== "string") {
|
|
11807
|
+
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" }];
|
|
11808
|
+
return false;
|
|
11740
11809
|
}
|
|
11741
|
-
|
|
11810
|
+
if (!(data12 === "block" || data12 === "pass" || data12 === "pending")) {
|
|
11811
|
+
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" }];
|
|
11812
|
+
return false;
|
|
11813
|
+
}
|
|
11814
|
+
var valid1 = _errs28 === errors;
|
|
11742
11815
|
} else {
|
|
11743
11816
|
var valid1 = true;
|
|
11744
11817
|
}
|
|
11745
11818
|
if (valid1) {
|
|
11746
|
-
if (data.
|
|
11747
|
-
let
|
|
11748
|
-
const
|
|
11749
|
-
if (
|
|
11750
|
-
|
|
11751
|
-
|
|
11752
|
-
|
|
11753
|
-
|
|
11754
|
-
|
|
11755
|
-
|
|
11819
|
+
if (data.reasonCode !== void 0) {
|
|
11820
|
+
let data13 = data.reasonCode;
|
|
11821
|
+
const _errs30 = errors;
|
|
11822
|
+
if (errors === _errs30) {
|
|
11823
|
+
if (typeof data13 === "string") {
|
|
11824
|
+
if (func1(data13) > 100) {
|
|
11825
|
+
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" }];
|
|
11826
|
+
return false;
|
|
11827
|
+
}
|
|
11828
|
+
} else {
|
|
11829
|
+
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" }];
|
|
11830
|
+
return false;
|
|
11831
|
+
}
|
|
11756
11832
|
}
|
|
11757
|
-
var valid1 =
|
|
11833
|
+
var valid1 = _errs30 === errors;
|
|
11758
11834
|
} else {
|
|
11759
11835
|
var valid1 = true;
|
|
11760
11836
|
}
|
|
11761
11837
|
if (valid1) {
|
|
11762
|
-
if (data.
|
|
11763
|
-
let
|
|
11764
|
-
const
|
|
11765
|
-
if (
|
|
11766
|
-
|
|
11767
|
-
|
|
11768
|
-
|
|
11769
|
-
|
|
11770
|
-
|
|
11771
|
-
|
|
11772
|
-
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" }];
|
|
11773
|
-
return false;
|
|
11774
|
-
}
|
|
11838
|
+
if (data.choice !== void 0) {
|
|
11839
|
+
let data14 = data.choice;
|
|
11840
|
+
const _errs32 = errors;
|
|
11841
|
+
if (typeof data14 !== "string") {
|
|
11842
|
+
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" }];
|
|
11843
|
+
return false;
|
|
11844
|
+
}
|
|
11845
|
+
if (!(data14 === "adhere" || data14 === "supersede")) {
|
|
11846
|
+
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" }];
|
|
11847
|
+
return false;
|
|
11775
11848
|
}
|
|
11776
|
-
var valid1 =
|
|
11849
|
+
var valid1 = _errs32 === errors;
|
|
11777
11850
|
} else {
|
|
11778
11851
|
var valid1 = true;
|
|
11779
11852
|
}
|
|
11780
11853
|
if (valid1) {
|
|
11781
|
-
if (data.
|
|
11782
|
-
let
|
|
11783
|
-
const
|
|
11784
|
-
if (errors ===
|
|
11785
|
-
if (typeof
|
|
11786
|
-
if (
|
|
11787
|
-
validate44.errors = [{ instancePath: instancePath + "/
|
|
11854
|
+
if (data.reason !== void 0) {
|
|
11855
|
+
let data15 = data.reason;
|
|
11856
|
+
const _errs34 = errors;
|
|
11857
|
+
if (errors === _errs34) {
|
|
11858
|
+
if (typeof data15 === "string") {
|
|
11859
|
+
if (func1(data15) > 500) {
|
|
11860
|
+
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" }];
|
|
11788
11861
|
return false;
|
|
11789
11862
|
}
|
|
11790
11863
|
} else {
|
|
11791
|
-
validate44.errors = [{ instancePath: instancePath + "/
|
|
11864
|
+
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" }];
|
|
11792
11865
|
return false;
|
|
11793
11866
|
}
|
|
11794
11867
|
}
|
|
11795
|
-
var valid1 =
|
|
11868
|
+
var valid1 = _errs34 === errors;
|
|
11796
11869
|
} else {
|
|
11797
11870
|
var valid1 = true;
|
|
11798
11871
|
}
|
|
11872
|
+
if (valid1) {
|
|
11873
|
+
if (data.approvedDigest !== void 0) {
|
|
11874
|
+
let data16 = data.approvedDigest;
|
|
11875
|
+
const _errs36 = errors;
|
|
11876
|
+
if (errors === _errs36) {
|
|
11877
|
+
if (typeof data16 === "string") {
|
|
11878
|
+
if (!pattern5.test(data16)) {
|
|
11879
|
+
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}$"' }];
|
|
11880
|
+
return false;
|
|
11881
|
+
}
|
|
11882
|
+
} else {
|
|
11883
|
+
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" }];
|
|
11884
|
+
return false;
|
|
11885
|
+
}
|
|
11886
|
+
}
|
|
11887
|
+
var valid1 = _errs36 === errors;
|
|
11888
|
+
} else {
|
|
11889
|
+
var valid1 = true;
|
|
11890
|
+
}
|
|
11891
|
+
}
|
|
11799
11892
|
}
|
|
11800
11893
|
}
|
|
11801
11894
|
}
|
|
@@ -12686,7 +12779,7 @@ function validate48(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
12686
12779
|
}
|
|
12687
12780
|
validate48.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
|
|
12688
12781
|
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"] };
|
|
12689
|
-
var
|
|
12782
|
+
var pattern14 = new RegExp("^[0-9a-f]{8}$", "u");
|
|
12690
12783
|
function validate49(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
12691
12784
|
;
|
|
12692
12785
|
let vErrors = null;
|
|
@@ -13025,7 +13118,7 @@ function validate49(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
13025
13118
|
const _errs27 = errors;
|
|
13026
13119
|
if (errors === _errs27) {
|
|
13027
13120
|
if (typeof data9 === "string") {
|
|
13028
|
-
if (!
|
|
13121
|
+
if (!pattern14.test(data9)) {
|
|
13029
13122
|
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}$"' };
|
|
13030
13123
|
if (vErrors === null) {
|
|
13031
13124
|
vErrors = [err24];
|
|
@@ -14081,8 +14174,8 @@ function validate51(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
14081
14174
|
return errors === 0;
|
|
14082
14175
|
}
|
|
14083
14176
|
validate51.evaluated = { "dynamicProps": true, "dynamicItems": false };
|
|
14084
|
-
var
|
|
14085
|
-
var
|
|
14177
|
+
var pattern15 = new RegExp("^[A-Za-z0-9]{1,128}$", "u");
|
|
14178
|
+
var pattern16 = new RegExp("^https:\\/\\/github\\.com\\/apps\\/primitive(?:-staging)?\\/installations\\/new\\?state=[0-9a-f]{64}$", "u");
|
|
14086
14179
|
function validate52(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
14087
14180
|
;
|
|
14088
14181
|
let vErrors = null;
|
|
@@ -14164,7 +14257,7 @@ function validate52(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
14164
14257
|
const _errs9 = errors;
|
|
14165
14258
|
if (errors === _errs9) {
|
|
14166
14259
|
if (typeof data3 === "string") {
|
|
14167
|
-
if (!
|
|
14260
|
+
if (!pattern15.test(data3)) {
|
|
14168
14261
|
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}$"' }];
|
|
14169
14262
|
return false;
|
|
14170
14263
|
}
|
|
@@ -14183,7 +14276,7 @@ function validate52(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
14183
14276
|
const _errs11 = errors;
|
|
14184
14277
|
if (errors === _errs11) {
|
|
14185
14278
|
if (typeof data4 === "string") {
|
|
14186
|
-
if (!
|
|
14279
|
+
if (!pattern16.test(data4)) {
|
|
14187
14280
|
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}$"' }];
|
|
14188
14281
|
return false;
|
|
14189
14282
|
}
|
|
@@ -14591,7 +14684,7 @@ function validate54(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
14591
14684
|
const _errs3 = errors;
|
|
14592
14685
|
if (errors === _errs3) {
|
|
14593
14686
|
if (typeof data0 === "string") {
|
|
14594
|
-
if (!
|
|
14687
|
+
if (!pattern15.test(data0)) {
|
|
14595
14688
|
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}$"' }];
|
|
14596
14689
|
return false;
|
|
14597
14690
|
}
|
|
@@ -16164,7 +16257,7 @@ function validate55(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
16164
16257
|
validate55.evaluated = { "dynamicProps": true, "dynamicItems": false };
|
|
16165
16258
|
var isMoveIngestRequest = validate56;
|
|
16166
16259
|
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": {} };
|
|
16167
|
-
var
|
|
16260
|
+
var pattern18 = new RegExp("^[A-Za-z0-9_-]+$", "u");
|
|
16168
16261
|
function validate56(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
16169
16262
|
;
|
|
16170
16263
|
let vErrors = null;
|
|
@@ -16525,7 +16618,7 @@ function validate56(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
16525
16618
|
}
|
|
16526
16619
|
errors++;
|
|
16527
16620
|
} else {
|
|
16528
|
-
if (!
|
|
16621
|
+
if (!pattern18.test(data11)) {
|
|
16529
16622
|
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_-]+$"' };
|
|
16530
16623
|
if (vErrors === null) {
|
|
16531
16624
|
vErrors = [err22];
|
|
@@ -17050,7 +17143,7 @@ function validate56(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
17050
17143
|
}
|
|
17051
17144
|
errors++;
|
|
17052
17145
|
} else {
|
|
17053
|
-
if (!
|
|
17146
|
+
if (!pattern18.test(data26)) {
|
|
17054
17147
|
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_-]+$"' };
|
|
17055
17148
|
if (vErrors === null) {
|
|
17056
17149
|
vErrors = [err58];
|
|
@@ -17293,10 +17386,10 @@ function validate56(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
17293
17386
|
}
|
|
17294
17387
|
validate56.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
|
|
17295
17388
|
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"] };
|
|
17296
|
-
var
|
|
17297
|
-
var
|
|
17298
|
-
var
|
|
17299
|
-
var
|
|
17389
|
+
var pattern20 = new RegExp("^[A-Za-z0-9._:-]{1,128}$", "u");
|
|
17390
|
+
var pattern22 = new RegExp("^[A-Za-z0-9]{1,64}$", "u");
|
|
17391
|
+
var pattern23 = new RegExp("^(?!@?$)(?!\\/)(?!.*\\/$)(?!.*\\/\\/)(?!.*(?:^|\\/)\\.{1,2}(?:\\/|$))(?!.*(?:^|\\/)[^/]*\\.lock(?:\\/|$))(?!.*\\.\\.)(?!.*@\\{)(?!.*[~^:?*\\\\]).+$", "u");
|
|
17392
|
+
var pattern24 = new RegExp("^[A-Za-z0-9][A-Za-z0-9._+-]*$", "u");
|
|
17300
17393
|
function validate57(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
17301
17394
|
;
|
|
17302
17395
|
let vErrors = null;
|
|
@@ -17362,7 +17455,7 @@ function validate57(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
17362
17455
|
const _errs8 = errors;
|
|
17363
17456
|
if (errors === _errs8) {
|
|
17364
17457
|
if (typeof data2 === "string") {
|
|
17365
|
-
if (!
|
|
17458
|
+
if (!pattern20.test(data2)) {
|
|
17366
17459
|
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}$"' }];
|
|
17367
17460
|
return false;
|
|
17368
17461
|
}
|
|
@@ -17381,7 +17474,7 @@ function validate57(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
17381
17474
|
const _errs10 = errors;
|
|
17382
17475
|
if (errors === _errs10) {
|
|
17383
17476
|
if (typeof data3 === "string") {
|
|
17384
|
-
if (!
|
|
17477
|
+
if (!pattern20.test(data3)) {
|
|
17385
17478
|
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}$"' }];
|
|
17386
17479
|
return false;
|
|
17387
17480
|
}
|
|
@@ -17400,7 +17493,7 @@ function validate57(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
17400
17493
|
const _errs12 = errors;
|
|
17401
17494
|
if (errors === _errs12) {
|
|
17402
17495
|
if (typeof data4 === "string") {
|
|
17403
|
-
if (!
|
|
17496
|
+
if (!pattern22.test(data4)) {
|
|
17404
17497
|
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}$"' }];
|
|
17405
17498
|
return false;
|
|
17406
17499
|
}
|
|
@@ -17472,7 +17565,7 @@ function validate57(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
17472
17565
|
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" }];
|
|
17473
17566
|
return false;
|
|
17474
17567
|
} else {
|
|
17475
|
-
if (!
|
|
17568
|
+
if (!pattern23.test(data8)) {
|
|
17476
17569
|
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(?:\\/|$))(?!.*\\.\\.)(?!.*@\\{)(?!.*[~^:?*\\\\]).+$"' }];
|
|
17477
17570
|
return false;
|
|
17478
17571
|
}
|
|
@@ -17512,7 +17605,7 @@ function validate57(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
17512
17605
|
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" }];
|
|
17513
17606
|
return false;
|
|
17514
17607
|
} else {
|
|
17515
|
-
if (!
|
|
17608
|
+
if (!pattern24.test(data10)) {
|
|
17516
17609
|
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._+-]*$"' }];
|
|
17517
17610
|
return false;
|
|
17518
17611
|
}
|
|
@@ -17599,7 +17692,7 @@ function validate58(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
17599
17692
|
const _errs5 = errors;
|
|
17600
17693
|
if (errors === _errs5) {
|
|
17601
17694
|
if (typeof data1 === "string") {
|
|
17602
|
-
if (!
|
|
17695
|
+
if (!pattern20.test(data1)) {
|
|
17603
17696
|
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}$"' }];
|
|
17604
17697
|
return false;
|
|
17605
17698
|
}
|
|
@@ -17897,8 +17990,8 @@ function validate58(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
17897
17990
|
}
|
|
17898
17991
|
validate58.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
|
|
17899
17992
|
var isPresenceHeartbeatRequest = validate59;
|
|
17900
|
-
var
|
|
17901
|
-
var
|
|
17993
|
+
var pattern26 = new RegExp("^[A-Za-z0-9._-]{1,128}$", "u");
|
|
17994
|
+
var pattern27 = new RegExp("^pci_[A-Za-z0-9_-]{43}$", "u");
|
|
17902
17995
|
function validate59(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
17903
17996
|
;
|
|
17904
17997
|
let vErrors = null;
|
|
@@ -17923,7 +18016,7 @@ function validate59(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
17923
18016
|
const _errs3 = errors;
|
|
17924
18017
|
if (errors === _errs3) {
|
|
17925
18018
|
if (typeof data0 === "string") {
|
|
17926
|
-
if (!
|
|
18019
|
+
if (!pattern26.test(data0)) {
|
|
17927
18020
|
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}$"' }];
|
|
17928
18021
|
return false;
|
|
17929
18022
|
}
|
|
@@ -17942,7 +18035,7 @@ function validate59(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
17942
18035
|
const _errs5 = errors;
|
|
17943
18036
|
if (errors === _errs5) {
|
|
17944
18037
|
if (typeof data1 === "string") {
|
|
17945
|
-
if (!
|
|
18038
|
+
if (!pattern27.test(data1)) {
|
|
17946
18039
|
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}$"' }];
|
|
17947
18040
|
return false;
|
|
17948
18041
|
}
|
|
@@ -18606,7 +18699,7 @@ function validate62(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
18606
18699
|
return errors === 0;
|
|
18607
18700
|
}
|
|
18608
18701
|
validate62.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
|
|
18609
|
-
var
|
|
18702
|
+
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");
|
|
18610
18703
|
function validate63(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
18611
18704
|
;
|
|
18612
18705
|
let vErrors = null;
|
|
@@ -18640,7 +18733,7 @@ function validate63(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
18640
18733
|
const _errs3 = errors;
|
|
18641
18734
|
if (errors === _errs3) {
|
|
18642
18735
|
if (typeof data0 === "string") {
|
|
18643
|
-
if (!
|
|
18736
|
+
if (!pattern28.test(data0)) {
|
|
18644
18737
|
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}$"' }];
|
|
18645
18738
|
return false;
|
|
18646
18739
|
}
|
|
@@ -18705,7 +18798,7 @@ function validate64(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
18705
18798
|
return errors === 0;
|
|
18706
18799
|
}
|
|
18707
18800
|
validate64.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
|
|
18708
|
-
var
|
|
18801
|
+
var pattern30 = new RegExp("^api_key_[A-Za-z0-9_-]+$", "u");
|
|
18709
18802
|
function validate65(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
18710
18803
|
;
|
|
18711
18804
|
let vErrors = null;
|
|
@@ -18791,7 +18884,7 @@ function validate65(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
18791
18884
|
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" }];
|
|
18792
18885
|
return false;
|
|
18793
18886
|
} else {
|
|
18794
|
-
if (!
|
|
18887
|
+
if (!pattern30.test(data2)) {
|
|
18795
18888
|
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_-]+$"' }];
|
|
18796
18889
|
return false;
|
|
18797
18890
|
}
|
|
@@ -18819,9 +18912,9 @@ function validate65(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
18819
18912
|
return errors === 0;
|
|
18820
18913
|
}
|
|
18821
18914
|
validate65.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
|
|
18822
|
-
var
|
|
18823
|
-
var
|
|
18824
|
-
var
|
|
18915
|
+
var pattern32 = new RegExp("^[\\x21-\\x7e](?:[\\x20-\\x7e]{0,126}[\\x21-\\x7e])?$", "u");
|
|
18916
|
+
var pattern33 = new RegExp("^[^\\u0000-\\u001f\\u007f-\\u009f\\u2028\\u2029\\u061c\\u200b-\\u200f\\u202a-\\u202e\\u2060\\u2066-\\u2069\\ufeff]+$", "u");
|
|
18917
|
+
var pattern34 = new RegExp("^[\\x21-\\x7e]+$", "u");
|
|
18825
18918
|
function validate66(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
18826
18919
|
;
|
|
18827
18920
|
let vErrors = null;
|
|
@@ -18893,7 +18986,7 @@ function validate66(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
18893
18986
|
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" }];
|
|
18894
18987
|
return false;
|
|
18895
18988
|
} else {
|
|
18896
|
-
if (!
|
|
18989
|
+
if (!pattern30.test(data2)) {
|
|
18897
18990
|
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_-]+$"' }];
|
|
18898
18991
|
return false;
|
|
18899
18992
|
}
|
|
@@ -18922,7 +19015,7 @@ function validate66(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
18922
19015
|
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" }];
|
|
18923
19016
|
return false;
|
|
18924
19017
|
} else {
|
|
18925
|
-
if (!
|
|
19018
|
+
if (!pattern32.test(data3)) {
|
|
18926
19019
|
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])?$"' }];
|
|
18927
19020
|
return false;
|
|
18928
19021
|
}
|
|
@@ -18951,7 +19044,7 @@ function validate66(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
18951
19044
|
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" }];
|
|
18952
19045
|
return false;
|
|
18953
19046
|
} else {
|
|
18954
|
-
if (!
|
|
19047
|
+
if (!pattern33.test(data4)) {
|
|
18955
19048
|
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]+$"' }];
|
|
18956
19049
|
return false;
|
|
18957
19050
|
}
|
|
@@ -18991,7 +19084,7 @@ function validate66(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
18991
19084
|
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" }];
|
|
18992
19085
|
return false;
|
|
18993
19086
|
} else {
|
|
18994
|
-
if (!
|
|
19087
|
+
if (!pattern34.test(data6)) {
|
|
18995
19088
|
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]+$"' }];
|
|
18996
19089
|
return false;
|
|
18997
19090
|
}
|
|
@@ -19277,7 +19370,7 @@ function validate66(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
19277
19370
|
}
|
|
19278
19371
|
errors++;
|
|
19279
19372
|
} else {
|
|
19280
|
-
if (!
|
|
19373
|
+
if (!pattern30.test(data11)) {
|
|
19281
19374
|
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_-]+$"' };
|
|
19282
19375
|
if (vErrors === null) {
|
|
19283
19376
|
vErrors = [err12];
|
|
@@ -19389,7 +19482,7 @@ function validate67(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
19389
19482
|
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" }];
|
|
19390
19483
|
return false;
|
|
19391
19484
|
} else {
|
|
19392
|
-
if (!
|
|
19485
|
+
if (!pattern30.test(data0)) {
|
|
19393
19486
|
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_-]+$"' }];
|
|
19394
19487
|
return false;
|
|
19395
19488
|
}
|
|
@@ -19418,7 +19511,7 @@ function validate67(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
19418
19511
|
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" }];
|
|
19419
19512
|
return false;
|
|
19420
19513
|
} else {
|
|
19421
|
-
if (!
|
|
19514
|
+
if (!pattern32.test(data1)) {
|
|
19422
19515
|
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])?$"' }];
|
|
19423
19516
|
return false;
|
|
19424
19517
|
}
|
|
@@ -19447,7 +19540,7 @@ function validate67(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
19447
19540
|
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" }];
|
|
19448
19541
|
return false;
|
|
19449
19542
|
} else {
|
|
19450
|
-
if (!
|
|
19543
|
+
if (!pattern33.test(data2)) {
|
|
19451
19544
|
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]+$"' }];
|
|
19452
19545
|
return false;
|
|
19453
19546
|
}
|
|
@@ -19487,7 +19580,7 @@ function validate67(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
19487
19580
|
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" }];
|
|
19488
19581
|
return false;
|
|
19489
19582
|
} else {
|
|
19490
|
-
if (!
|
|
19583
|
+
if (!pattern34.test(data4)) {
|
|
19491
19584
|
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]+$"' }];
|
|
19492
19585
|
return false;
|
|
19493
19586
|
}
|
|
@@ -19795,7 +19888,7 @@ function validate68(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
19795
19888
|
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" }];
|
|
19796
19889
|
return false;
|
|
19797
19890
|
} else {
|
|
19798
|
-
if (!
|
|
19891
|
+
if (!pattern32.test(data1)) {
|
|
19799
19892
|
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])?$"' }];
|
|
19800
19893
|
return false;
|
|
19801
19894
|
}
|
|
@@ -19848,7 +19941,7 @@ function validate68(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
19848
19941
|
return errors === 0;
|
|
19849
19942
|
}
|
|
19850
19943
|
validate68.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
|
|
19851
|
-
var
|
|
19944
|
+
var pattern46 = new RegExp("^sk_[\\x21-\\x7e]+(?: [\\x21-\\x7e]+)*$", "u");
|
|
19852
19945
|
function validate69(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
19853
19946
|
;
|
|
19854
19947
|
let vErrors = null;
|
|
@@ -19909,7 +20002,7 @@ function validate69(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
19909
20002
|
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" }];
|
|
19910
20003
|
return false;
|
|
19911
20004
|
} else {
|
|
19912
|
-
if (!
|
|
20005
|
+
if (!pattern30.test(data1)) {
|
|
19913
20006
|
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_-]+$"' }];
|
|
19914
20007
|
return false;
|
|
19915
20008
|
}
|
|
@@ -19938,7 +20031,7 @@ function validate69(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
19938
20031
|
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" }];
|
|
19939
20032
|
return false;
|
|
19940
20033
|
} else {
|
|
19941
|
-
if (!
|
|
20034
|
+
if (!pattern32.test(data2)) {
|
|
19942
20035
|
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])?$"' }];
|
|
19943
20036
|
return false;
|
|
19944
20037
|
}
|
|
@@ -19967,7 +20060,7 @@ function validate69(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
19967
20060
|
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" }];
|
|
19968
20061
|
return false;
|
|
19969
20062
|
} else {
|
|
19970
|
-
if (!
|
|
20063
|
+
if (!pattern33.test(data3)) {
|
|
19971
20064
|
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]+$"' }];
|
|
19972
20065
|
return false;
|
|
19973
20066
|
}
|
|
@@ -20007,7 +20100,7 @@ function validate69(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
20007
20100
|
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" }];
|
|
20008
20101
|
return false;
|
|
20009
20102
|
} else {
|
|
20010
|
-
if (!
|
|
20103
|
+
if (!pattern34.test(data5)) {
|
|
20011
20104
|
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]+$"' }];
|
|
20012
20105
|
return false;
|
|
20013
20106
|
}
|
|
@@ -20269,7 +20362,7 @@ function validate69(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
20269
20362
|
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" }];
|
|
20270
20363
|
return false;
|
|
20271
20364
|
} else {
|
|
20272
|
-
if (!
|
|
20365
|
+
if (!pattern46.test(data10)) {
|
|
20273
20366
|
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]+)*$"' }];
|
|
20274
20367
|
return false;
|
|
20275
20368
|
}
|
|
@@ -20391,7 +20484,7 @@ function validate71(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
20391
20484
|
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" }];
|
|
20392
20485
|
return false;
|
|
20393
20486
|
} else {
|
|
20394
|
-
if (!
|
|
20487
|
+
if (!pattern30.test(data0)) {
|
|
20395
20488
|
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_-]+$"' }];
|
|
20396
20489
|
return false;
|
|
20397
20490
|
}
|
|
@@ -20655,7 +20748,7 @@ function validate73(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
20655
20748
|
}
|
|
20656
20749
|
validate73.evaluated = { "dynamicProps": true, "dynamicItems": false };
|
|
20657
20750
|
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"] };
|
|
20658
|
-
var
|
|
20751
|
+
var pattern49 = new RegExp("^client_[A-Za-z0-9_-]+$", "u");
|
|
20659
20752
|
function validate74(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
20660
20753
|
;
|
|
20661
20754
|
let vErrors = null;
|
|
@@ -20724,7 +20817,7 @@ function validate74(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
20724
20817
|
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" }];
|
|
20725
20818
|
return false;
|
|
20726
20819
|
} else {
|
|
20727
|
-
if (!
|
|
20820
|
+
if (!pattern49.test(data2)) {
|
|
20728
20821
|
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_-]+$"' }];
|
|
20729
20822
|
return false;
|
|
20730
20823
|
}
|