@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
|
@@ -10850,8 +10850,9 @@ function validate43(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
10850
10850
|
return errors === 0;
|
|
10851
10851
|
}
|
|
10852
10852
|
validate43.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
|
|
10853
|
-
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 };
|
|
10853
|
+
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 };
|
|
10854
10854
|
var func34 = Object.prototype.hasOwnProperty;
|
|
10855
|
+
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");
|
|
10855
10856
|
function validate44(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
10856
10857
|
;
|
|
10857
10858
|
let vErrors = null;
|
|
@@ -10867,7 +10868,7 @@ function validate44(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
10867
10868
|
if (errors === _errs0) {
|
|
10868
10869
|
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
10869
10870
|
let missing0;
|
|
10870
|
-
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")) {
|
|
10871
|
+
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")) {
|
|
10871
10872
|
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 + "'" }];
|
|
10872
10873
|
return false;
|
|
10873
10874
|
} else {
|
|
@@ -11007,110 +11008,202 @@ function validate44(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
11007
11008
|
var valid1 = true;
|
|
11008
11009
|
}
|
|
11009
11010
|
if (valid1) {
|
|
11010
|
-
if (data.
|
|
11011
|
-
let data7 = data.
|
|
11011
|
+
if (data.story !== void 0) {
|
|
11012
|
+
let data7 = data.story;
|
|
11012
11013
|
const _errs17 = errors;
|
|
11013
|
-
if (
|
|
11014
|
-
|
|
11015
|
-
|
|
11016
|
-
|
|
11017
|
-
|
|
11018
|
-
|
|
11019
|
-
|
|
11014
|
+
if (errors === _errs17) {
|
|
11015
|
+
if (data7 && typeof data7 == "object" && !Array.isArray(data7)) {
|
|
11016
|
+
let missing1;
|
|
11017
|
+
if (data7.orgName === void 0 && (missing1 = "orgName") || data7.recipient === void 0 && (missing1 = "recipient") || data7.decisionDate === void 0 && (missing1 = "decisionDate")) {
|
|
11018
|
+
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 + "'" }];
|
|
11019
|
+
return false;
|
|
11020
|
+
} else {
|
|
11021
|
+
const _errs19 = errors;
|
|
11022
|
+
for (const key1 in data7) {
|
|
11023
|
+
if (!(key1 === "orgName" || key1 === "recipient" || key1 === "decisionDate")) {
|
|
11024
|
+
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" }];
|
|
11025
|
+
return false;
|
|
11026
|
+
break;
|
|
11027
|
+
}
|
|
11028
|
+
}
|
|
11029
|
+
if (_errs19 === errors) {
|
|
11030
|
+
if (data7.orgName !== void 0) {
|
|
11031
|
+
let data8 = data7.orgName;
|
|
11032
|
+
const _errs20 = errors;
|
|
11033
|
+
if (errors === _errs20) {
|
|
11034
|
+
if (typeof data8 === "string") {
|
|
11035
|
+
if (func1(data8) > 200) {
|
|
11036
|
+
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" }];
|
|
11037
|
+
return false;
|
|
11038
|
+
}
|
|
11039
|
+
} else {
|
|
11040
|
+
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" }];
|
|
11041
|
+
return false;
|
|
11042
|
+
}
|
|
11043
|
+
}
|
|
11044
|
+
var valid2 = _errs20 === errors;
|
|
11045
|
+
} else {
|
|
11046
|
+
var valid2 = true;
|
|
11047
|
+
}
|
|
11048
|
+
if (valid2) {
|
|
11049
|
+
if (data7.recipient !== void 0) {
|
|
11050
|
+
let data9 = data7.recipient;
|
|
11051
|
+
const _errs22 = errors;
|
|
11052
|
+
if (errors === _errs22) {
|
|
11053
|
+
if (errors === _errs22) {
|
|
11054
|
+
if (typeof data9 === "string") {
|
|
11055
|
+
if (!pattern12.test(data9)) {
|
|
11056
|
+
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,}$"` }];
|
|
11057
|
+
return false;
|
|
11058
|
+
}
|
|
11059
|
+
} else {
|
|
11060
|
+
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" }];
|
|
11061
|
+
return false;
|
|
11062
|
+
}
|
|
11063
|
+
}
|
|
11064
|
+
}
|
|
11065
|
+
var valid2 = _errs22 === errors;
|
|
11066
|
+
} else {
|
|
11067
|
+
var valid2 = true;
|
|
11068
|
+
}
|
|
11069
|
+
if (valid2) {
|
|
11070
|
+
if (data7.decisionDate !== void 0) {
|
|
11071
|
+
let data10 = data7.decisionDate;
|
|
11072
|
+
const _errs24 = errors;
|
|
11073
|
+
if (errors === _errs24) {
|
|
11074
|
+
if (typeof data10 === "string") {
|
|
11075
|
+
if (func1(data10) > 100) {
|
|
11076
|
+
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" }];
|
|
11077
|
+
return false;
|
|
11078
|
+
}
|
|
11079
|
+
} else {
|
|
11080
|
+
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" }];
|
|
11081
|
+
return false;
|
|
11082
|
+
}
|
|
11083
|
+
}
|
|
11084
|
+
var valid2 = _errs24 === errors;
|
|
11085
|
+
} else {
|
|
11086
|
+
var valid2 = true;
|
|
11087
|
+
}
|
|
11088
|
+
}
|
|
11089
|
+
}
|
|
11090
|
+
}
|
|
11091
|
+
}
|
|
11092
|
+
} else {
|
|
11093
|
+
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" }];
|
|
11094
|
+
return false;
|
|
11095
|
+
}
|
|
11020
11096
|
}
|
|
11021
11097
|
var valid1 = _errs17 === errors;
|
|
11022
11098
|
} else {
|
|
11023
11099
|
var valid1 = true;
|
|
11024
11100
|
}
|
|
11025
11101
|
if (valid1) {
|
|
11026
|
-
if (data.
|
|
11027
|
-
let
|
|
11028
|
-
const
|
|
11029
|
-
if (typeof
|
|
11030
|
-
validate44.errors = [{ instancePath: instancePath + "/
|
|
11102
|
+
if (data.email !== void 0) {
|
|
11103
|
+
let data11 = data.email;
|
|
11104
|
+
const _errs26 = errors;
|
|
11105
|
+
if (typeof data11 !== "string") {
|
|
11106
|
+
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" }];
|
|
11031
11107
|
return false;
|
|
11032
11108
|
}
|
|
11033
|
-
if (!(
|
|
11034
|
-
validate44.errors = [{ instancePath: instancePath + "/
|
|
11109
|
+
if (!(data11 === "not_queued" || data11 === "queued" || data11 === "accepted" || data11 === "failed" || data11 === "suppressed")) {
|
|
11110
|
+
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" }];
|
|
11035
11111
|
return false;
|
|
11036
11112
|
}
|
|
11037
|
-
var valid1 =
|
|
11113
|
+
var valid1 = _errs26 === errors;
|
|
11038
11114
|
} else {
|
|
11039
11115
|
var valid1 = true;
|
|
11040
11116
|
}
|
|
11041
11117
|
if (valid1) {
|
|
11042
|
-
if (data.
|
|
11043
|
-
let
|
|
11044
|
-
const
|
|
11045
|
-
if (
|
|
11046
|
-
|
|
11047
|
-
|
|
11048
|
-
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" }];
|
|
11049
|
-
return false;
|
|
11050
|
-
}
|
|
11051
|
-
} else {
|
|
11052
|
-
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" }];
|
|
11053
|
-
return false;
|
|
11054
|
-
}
|
|
11118
|
+
if (data.verdict !== void 0) {
|
|
11119
|
+
let data12 = data.verdict;
|
|
11120
|
+
const _errs28 = errors;
|
|
11121
|
+
if (typeof data12 !== "string") {
|
|
11122
|
+
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" }];
|
|
11123
|
+
return false;
|
|
11055
11124
|
}
|
|
11056
|
-
|
|
11125
|
+
if (!(data12 === "block" || data12 === "pass" || data12 === "pending")) {
|
|
11126
|
+
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" }];
|
|
11127
|
+
return false;
|
|
11128
|
+
}
|
|
11129
|
+
var valid1 = _errs28 === errors;
|
|
11057
11130
|
} else {
|
|
11058
11131
|
var valid1 = true;
|
|
11059
11132
|
}
|
|
11060
11133
|
if (valid1) {
|
|
11061
|
-
if (data.
|
|
11062
|
-
let
|
|
11063
|
-
const
|
|
11064
|
-
if (
|
|
11065
|
-
|
|
11066
|
-
|
|
11067
|
-
|
|
11068
|
-
|
|
11069
|
-
|
|
11070
|
-
|
|
11134
|
+
if (data.reasonCode !== void 0) {
|
|
11135
|
+
let data13 = data.reasonCode;
|
|
11136
|
+
const _errs30 = errors;
|
|
11137
|
+
if (errors === _errs30) {
|
|
11138
|
+
if (typeof data13 === "string") {
|
|
11139
|
+
if (func1(data13) > 100) {
|
|
11140
|
+
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" }];
|
|
11141
|
+
return false;
|
|
11142
|
+
}
|
|
11143
|
+
} else {
|
|
11144
|
+
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" }];
|
|
11145
|
+
return false;
|
|
11146
|
+
}
|
|
11071
11147
|
}
|
|
11072
|
-
var valid1 =
|
|
11148
|
+
var valid1 = _errs30 === errors;
|
|
11073
11149
|
} else {
|
|
11074
11150
|
var valid1 = true;
|
|
11075
11151
|
}
|
|
11076
11152
|
if (valid1) {
|
|
11077
|
-
if (data.
|
|
11078
|
-
let
|
|
11079
|
-
const
|
|
11080
|
-
if (
|
|
11081
|
-
|
|
11082
|
-
|
|
11083
|
-
|
|
11084
|
-
|
|
11085
|
-
|
|
11086
|
-
|
|
11087
|
-
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" }];
|
|
11088
|
-
return false;
|
|
11089
|
-
}
|
|
11153
|
+
if (data.choice !== void 0) {
|
|
11154
|
+
let data14 = data.choice;
|
|
11155
|
+
const _errs32 = errors;
|
|
11156
|
+
if (typeof data14 !== "string") {
|
|
11157
|
+
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" }];
|
|
11158
|
+
return false;
|
|
11159
|
+
}
|
|
11160
|
+
if (!(data14 === "adhere" || data14 === "supersede")) {
|
|
11161
|
+
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" }];
|
|
11162
|
+
return false;
|
|
11090
11163
|
}
|
|
11091
|
-
var valid1 =
|
|
11164
|
+
var valid1 = _errs32 === errors;
|
|
11092
11165
|
} else {
|
|
11093
11166
|
var valid1 = true;
|
|
11094
11167
|
}
|
|
11095
11168
|
if (valid1) {
|
|
11096
|
-
if (data.
|
|
11097
|
-
let
|
|
11098
|
-
const
|
|
11099
|
-
if (errors ===
|
|
11100
|
-
if (typeof
|
|
11101
|
-
if (
|
|
11102
|
-
validate44.errors = [{ instancePath: instancePath + "/
|
|
11169
|
+
if (data.reason !== void 0) {
|
|
11170
|
+
let data15 = data.reason;
|
|
11171
|
+
const _errs34 = errors;
|
|
11172
|
+
if (errors === _errs34) {
|
|
11173
|
+
if (typeof data15 === "string") {
|
|
11174
|
+
if (func1(data15) > 500) {
|
|
11175
|
+
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" }];
|
|
11103
11176
|
return false;
|
|
11104
11177
|
}
|
|
11105
11178
|
} else {
|
|
11106
|
-
validate44.errors = [{ instancePath: instancePath + "/
|
|
11179
|
+
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" }];
|
|
11107
11180
|
return false;
|
|
11108
11181
|
}
|
|
11109
11182
|
}
|
|
11110
|
-
var valid1 =
|
|
11183
|
+
var valid1 = _errs34 === errors;
|
|
11111
11184
|
} else {
|
|
11112
11185
|
var valid1 = true;
|
|
11113
11186
|
}
|
|
11187
|
+
if (valid1) {
|
|
11188
|
+
if (data.approvedDigest !== void 0) {
|
|
11189
|
+
let data16 = data.approvedDigest;
|
|
11190
|
+
const _errs36 = errors;
|
|
11191
|
+
if (errors === _errs36) {
|
|
11192
|
+
if (typeof data16 === "string") {
|
|
11193
|
+
if (!pattern5.test(data16)) {
|
|
11194
|
+
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}$"' }];
|
|
11195
|
+
return false;
|
|
11196
|
+
}
|
|
11197
|
+
} else {
|
|
11198
|
+
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" }];
|
|
11199
|
+
return false;
|
|
11200
|
+
}
|
|
11201
|
+
}
|
|
11202
|
+
var valid1 = _errs36 === errors;
|
|
11203
|
+
} else {
|
|
11204
|
+
var valid1 = true;
|
|
11205
|
+
}
|
|
11206
|
+
}
|
|
11114
11207
|
}
|
|
11115
11208
|
}
|
|
11116
11209
|
}
|
|
@@ -12001,7 +12094,7 @@ function validate48(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
12001
12094
|
}
|
|
12002
12095
|
validate48.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
|
|
12003
12096
|
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"] };
|
|
12004
|
-
var
|
|
12097
|
+
var pattern14 = new RegExp("^[0-9a-f]{8}$", "u");
|
|
12005
12098
|
function validate49(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
12006
12099
|
;
|
|
12007
12100
|
let vErrors = null;
|
|
@@ -12340,7 +12433,7 @@ function validate49(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
12340
12433
|
const _errs27 = errors;
|
|
12341
12434
|
if (errors === _errs27) {
|
|
12342
12435
|
if (typeof data9 === "string") {
|
|
12343
|
-
if (!
|
|
12436
|
+
if (!pattern14.test(data9)) {
|
|
12344
12437
|
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}$"' };
|
|
12345
12438
|
if (vErrors === null) {
|
|
12346
12439
|
vErrors = [err24];
|
|
@@ -13396,8 +13489,8 @@ function validate51(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
13396
13489
|
return errors === 0;
|
|
13397
13490
|
}
|
|
13398
13491
|
validate51.evaluated = { "dynamicProps": true, "dynamicItems": false };
|
|
13399
|
-
var
|
|
13400
|
-
var
|
|
13492
|
+
var pattern15 = new RegExp("^[A-Za-z0-9]{1,128}$", "u");
|
|
13493
|
+
var pattern16 = new RegExp("^https:\\/\\/github\\.com\\/apps\\/primitive(?:-staging)?\\/installations\\/new\\?state=[0-9a-f]{64}$", "u");
|
|
13401
13494
|
function validate52(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
13402
13495
|
;
|
|
13403
13496
|
let vErrors = null;
|
|
@@ -13479,7 +13572,7 @@ function validate52(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
13479
13572
|
const _errs9 = errors;
|
|
13480
13573
|
if (errors === _errs9) {
|
|
13481
13574
|
if (typeof data3 === "string") {
|
|
13482
|
-
if (!
|
|
13575
|
+
if (!pattern15.test(data3)) {
|
|
13483
13576
|
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}$"' }];
|
|
13484
13577
|
return false;
|
|
13485
13578
|
}
|
|
@@ -13498,7 +13591,7 @@ function validate52(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
13498
13591
|
const _errs11 = errors;
|
|
13499
13592
|
if (errors === _errs11) {
|
|
13500
13593
|
if (typeof data4 === "string") {
|
|
13501
|
-
if (!
|
|
13594
|
+
if (!pattern16.test(data4)) {
|
|
13502
13595
|
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}$"' }];
|
|
13503
13596
|
return false;
|
|
13504
13597
|
}
|
|
@@ -13906,7 +13999,7 @@ function validate54(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
13906
13999
|
const _errs3 = errors;
|
|
13907
14000
|
if (errors === _errs3) {
|
|
13908
14001
|
if (typeof data0 === "string") {
|
|
13909
|
-
if (!
|
|
14002
|
+
if (!pattern15.test(data0)) {
|
|
13910
14003
|
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}$"' }];
|
|
13911
14004
|
return false;
|
|
13912
14005
|
}
|
|
@@ -15478,7 +15571,7 @@ function validate55(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
15478
15571
|
}
|
|
15479
15572
|
validate55.evaluated = { "dynamicProps": true, "dynamicItems": false };
|
|
15480
15573
|
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": {} };
|
|
15481
|
-
var
|
|
15574
|
+
var pattern18 = new RegExp("^[A-Za-z0-9_-]+$", "u");
|
|
15482
15575
|
function validate56(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
15483
15576
|
;
|
|
15484
15577
|
let vErrors = null;
|
|
@@ -15839,7 +15932,7 @@ function validate56(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
15839
15932
|
}
|
|
15840
15933
|
errors++;
|
|
15841
15934
|
} else {
|
|
15842
|
-
if (!
|
|
15935
|
+
if (!pattern18.test(data11)) {
|
|
15843
15936
|
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_-]+$"' };
|
|
15844
15937
|
if (vErrors === null) {
|
|
15845
15938
|
vErrors = [err22];
|
|
@@ -16364,7 +16457,7 @@ function validate56(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
16364
16457
|
}
|
|
16365
16458
|
errors++;
|
|
16366
16459
|
} else {
|
|
16367
|
-
if (!
|
|
16460
|
+
if (!pattern18.test(data26)) {
|
|
16368
16461
|
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_-]+$"' };
|
|
16369
16462
|
if (vErrors === null) {
|
|
16370
16463
|
vErrors = [err58];
|
|
@@ -16607,10 +16700,10 @@ function validate56(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
16607
16700
|
}
|
|
16608
16701
|
validate56.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
|
|
16609
16702
|
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"] };
|
|
16610
|
-
var
|
|
16611
|
-
var
|
|
16612
|
-
var
|
|
16613
|
-
var
|
|
16703
|
+
var pattern20 = new RegExp("^[A-Za-z0-9._:-]{1,128}$", "u");
|
|
16704
|
+
var pattern22 = new RegExp("^[A-Za-z0-9]{1,64}$", "u");
|
|
16705
|
+
var pattern23 = new RegExp("^(?!@?$)(?!\\/)(?!.*\\/$)(?!.*\\/\\/)(?!.*(?:^|\\/)\\.{1,2}(?:\\/|$))(?!.*(?:^|\\/)[^/]*\\.lock(?:\\/|$))(?!.*\\.\\.)(?!.*@\\{)(?!.*[~^:?*\\\\]).+$", "u");
|
|
16706
|
+
var pattern24 = new RegExp("^[A-Za-z0-9][A-Za-z0-9._+-]*$", "u");
|
|
16614
16707
|
function validate57(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
16615
16708
|
;
|
|
16616
16709
|
let vErrors = null;
|
|
@@ -16676,7 +16769,7 @@ function validate57(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
16676
16769
|
const _errs8 = errors;
|
|
16677
16770
|
if (errors === _errs8) {
|
|
16678
16771
|
if (typeof data2 === "string") {
|
|
16679
|
-
if (!
|
|
16772
|
+
if (!pattern20.test(data2)) {
|
|
16680
16773
|
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}$"' }];
|
|
16681
16774
|
return false;
|
|
16682
16775
|
}
|
|
@@ -16695,7 +16788,7 @@ function validate57(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
16695
16788
|
const _errs10 = errors;
|
|
16696
16789
|
if (errors === _errs10) {
|
|
16697
16790
|
if (typeof data3 === "string") {
|
|
16698
|
-
if (!
|
|
16791
|
+
if (!pattern20.test(data3)) {
|
|
16699
16792
|
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}$"' }];
|
|
16700
16793
|
return false;
|
|
16701
16794
|
}
|
|
@@ -16714,7 +16807,7 @@ function validate57(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
16714
16807
|
const _errs12 = errors;
|
|
16715
16808
|
if (errors === _errs12) {
|
|
16716
16809
|
if (typeof data4 === "string") {
|
|
16717
|
-
if (!
|
|
16810
|
+
if (!pattern22.test(data4)) {
|
|
16718
16811
|
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}$"' }];
|
|
16719
16812
|
return false;
|
|
16720
16813
|
}
|
|
@@ -16786,7 +16879,7 @@ function validate57(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
16786
16879
|
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" }];
|
|
16787
16880
|
return false;
|
|
16788
16881
|
} else {
|
|
16789
|
-
if (!
|
|
16882
|
+
if (!pattern23.test(data8)) {
|
|
16790
16883
|
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(?:\\/|$))(?!.*\\.\\.)(?!.*@\\{)(?!.*[~^:?*\\\\]).+$"' }];
|
|
16791
16884
|
return false;
|
|
16792
16885
|
}
|
|
@@ -16826,7 +16919,7 @@ function validate57(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
16826
16919
|
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" }];
|
|
16827
16920
|
return false;
|
|
16828
16921
|
} else {
|
|
16829
|
-
if (!
|
|
16922
|
+
if (!pattern24.test(data10)) {
|
|
16830
16923
|
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._+-]*$"' }];
|
|
16831
16924
|
return false;
|
|
16832
16925
|
}
|
|
@@ -16913,7 +17006,7 @@ function validate58(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
16913
17006
|
const _errs5 = errors;
|
|
16914
17007
|
if (errors === _errs5) {
|
|
16915
17008
|
if (typeof data1 === "string") {
|
|
16916
|
-
if (!
|
|
17009
|
+
if (!pattern20.test(data1)) {
|
|
16917
17010
|
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}$"' }];
|
|
16918
17011
|
return false;
|
|
16919
17012
|
}
|
|
@@ -17210,8 +17303,8 @@ function validate58(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
17210
17303
|
return errors === 0;
|
|
17211
17304
|
}
|
|
17212
17305
|
validate58.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
|
|
17213
|
-
var
|
|
17214
|
-
var
|
|
17306
|
+
var pattern26 = new RegExp("^[A-Za-z0-9._-]{1,128}$", "u");
|
|
17307
|
+
var pattern27 = new RegExp("^pci_[A-Za-z0-9_-]{43}$", "u");
|
|
17215
17308
|
function validate59(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
17216
17309
|
;
|
|
17217
17310
|
let vErrors = null;
|
|
@@ -17236,7 +17329,7 @@ function validate59(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
17236
17329
|
const _errs3 = errors;
|
|
17237
17330
|
if (errors === _errs3) {
|
|
17238
17331
|
if (typeof data0 === "string") {
|
|
17239
|
-
if (!
|
|
17332
|
+
if (!pattern26.test(data0)) {
|
|
17240
17333
|
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}$"' }];
|
|
17241
17334
|
return false;
|
|
17242
17335
|
}
|
|
@@ -17255,7 +17348,7 @@ function validate59(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
17255
17348
|
const _errs5 = errors;
|
|
17256
17349
|
if (errors === _errs5) {
|
|
17257
17350
|
if (typeof data1 === "string") {
|
|
17258
|
-
if (!
|
|
17351
|
+
if (!pattern27.test(data1)) {
|
|
17259
17352
|
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}$"' }];
|
|
17260
17353
|
return false;
|
|
17261
17354
|
}
|
|
@@ -17918,7 +18011,7 @@ function validate62(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
17918
18011
|
return errors === 0;
|
|
17919
18012
|
}
|
|
17920
18013
|
validate62.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
|
|
17921
|
-
var
|
|
18014
|
+
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");
|
|
17922
18015
|
function validate63(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
17923
18016
|
;
|
|
17924
18017
|
let vErrors = null;
|
|
@@ -17952,7 +18045,7 @@ function validate63(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
17952
18045
|
const _errs3 = errors;
|
|
17953
18046
|
if (errors === _errs3) {
|
|
17954
18047
|
if (typeof data0 === "string") {
|
|
17955
|
-
if (!
|
|
18048
|
+
if (!pattern28.test(data0)) {
|
|
17956
18049
|
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}$"' }];
|
|
17957
18050
|
return false;
|
|
17958
18051
|
}
|
|
@@ -18017,7 +18110,7 @@ function validate64(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
18017
18110
|
return errors === 0;
|
|
18018
18111
|
}
|
|
18019
18112
|
validate64.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
|
|
18020
|
-
var
|
|
18113
|
+
var pattern30 = new RegExp("^api_key_[A-Za-z0-9_-]+$", "u");
|
|
18021
18114
|
function validate65(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
18022
18115
|
;
|
|
18023
18116
|
let vErrors = null;
|
|
@@ -18103,7 +18196,7 @@ function validate65(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
18103
18196
|
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" }];
|
|
18104
18197
|
return false;
|
|
18105
18198
|
} else {
|
|
18106
|
-
if (!
|
|
18199
|
+
if (!pattern30.test(data2)) {
|
|
18107
18200
|
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_-]+$"' }];
|
|
18108
18201
|
return false;
|
|
18109
18202
|
}
|
|
@@ -18131,9 +18224,9 @@ function validate65(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
18131
18224
|
return errors === 0;
|
|
18132
18225
|
}
|
|
18133
18226
|
validate65.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
|
|
18134
|
-
var
|
|
18135
|
-
var
|
|
18136
|
-
var
|
|
18227
|
+
var pattern32 = new RegExp("^[\\x21-\\x7e](?:[\\x20-\\x7e]{0,126}[\\x21-\\x7e])?$", "u");
|
|
18228
|
+
var pattern33 = new RegExp("^[^\\u0000-\\u001f\\u007f-\\u009f\\u2028\\u2029\\u061c\\u200b-\\u200f\\u202a-\\u202e\\u2060\\u2066-\\u2069\\ufeff]+$", "u");
|
|
18229
|
+
var pattern34 = new RegExp("^[\\x21-\\x7e]+$", "u");
|
|
18137
18230
|
function validate66(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
18138
18231
|
;
|
|
18139
18232
|
let vErrors = null;
|
|
@@ -18205,7 +18298,7 @@ function validate66(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
18205
18298
|
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" }];
|
|
18206
18299
|
return false;
|
|
18207
18300
|
} else {
|
|
18208
|
-
if (!
|
|
18301
|
+
if (!pattern30.test(data2)) {
|
|
18209
18302
|
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_-]+$"' }];
|
|
18210
18303
|
return false;
|
|
18211
18304
|
}
|
|
@@ -18234,7 +18327,7 @@ function validate66(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
18234
18327
|
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" }];
|
|
18235
18328
|
return false;
|
|
18236
18329
|
} else {
|
|
18237
|
-
if (!
|
|
18330
|
+
if (!pattern32.test(data3)) {
|
|
18238
18331
|
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])?$"' }];
|
|
18239
18332
|
return false;
|
|
18240
18333
|
}
|
|
@@ -18263,7 +18356,7 @@ function validate66(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
18263
18356
|
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" }];
|
|
18264
18357
|
return false;
|
|
18265
18358
|
} else {
|
|
18266
|
-
if (!
|
|
18359
|
+
if (!pattern33.test(data4)) {
|
|
18267
18360
|
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]+$"' }];
|
|
18268
18361
|
return false;
|
|
18269
18362
|
}
|
|
@@ -18303,7 +18396,7 @@ function validate66(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
18303
18396
|
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" }];
|
|
18304
18397
|
return false;
|
|
18305
18398
|
} else {
|
|
18306
|
-
if (!
|
|
18399
|
+
if (!pattern34.test(data6)) {
|
|
18307
18400
|
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]+$"' }];
|
|
18308
18401
|
return false;
|
|
18309
18402
|
}
|
|
@@ -18589,7 +18682,7 @@ function validate66(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
18589
18682
|
}
|
|
18590
18683
|
errors++;
|
|
18591
18684
|
} else {
|
|
18592
|
-
if (!
|
|
18685
|
+
if (!pattern30.test(data11)) {
|
|
18593
18686
|
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_-]+$"' };
|
|
18594
18687
|
if (vErrors === null) {
|
|
18595
18688
|
vErrors = [err12];
|
|
@@ -18701,7 +18794,7 @@ function validate67(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
18701
18794
|
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" }];
|
|
18702
18795
|
return false;
|
|
18703
18796
|
} else {
|
|
18704
|
-
if (!
|
|
18797
|
+
if (!pattern30.test(data0)) {
|
|
18705
18798
|
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_-]+$"' }];
|
|
18706
18799
|
return false;
|
|
18707
18800
|
}
|
|
@@ -18730,7 +18823,7 @@ function validate67(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
18730
18823
|
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" }];
|
|
18731
18824
|
return false;
|
|
18732
18825
|
} else {
|
|
18733
|
-
if (!
|
|
18826
|
+
if (!pattern32.test(data1)) {
|
|
18734
18827
|
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])?$"' }];
|
|
18735
18828
|
return false;
|
|
18736
18829
|
}
|
|
@@ -18759,7 +18852,7 @@ function validate67(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
18759
18852
|
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" }];
|
|
18760
18853
|
return false;
|
|
18761
18854
|
} else {
|
|
18762
|
-
if (!
|
|
18855
|
+
if (!pattern33.test(data2)) {
|
|
18763
18856
|
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]+$"' }];
|
|
18764
18857
|
return false;
|
|
18765
18858
|
}
|
|
@@ -18799,7 +18892,7 @@ function validate67(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
18799
18892
|
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" }];
|
|
18800
18893
|
return false;
|
|
18801
18894
|
} else {
|
|
18802
|
-
if (!
|
|
18895
|
+
if (!pattern34.test(data4)) {
|
|
18803
18896
|
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]+$"' }];
|
|
18804
18897
|
return false;
|
|
18805
18898
|
}
|
|
@@ -19107,7 +19200,7 @@ function validate68(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
19107
19200
|
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" }];
|
|
19108
19201
|
return false;
|
|
19109
19202
|
} else {
|
|
19110
|
-
if (!
|
|
19203
|
+
if (!pattern32.test(data1)) {
|
|
19111
19204
|
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])?$"' }];
|
|
19112
19205
|
return false;
|
|
19113
19206
|
}
|
|
@@ -19160,7 +19253,7 @@ function validate68(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
19160
19253
|
return errors === 0;
|
|
19161
19254
|
}
|
|
19162
19255
|
validate68.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
|
|
19163
|
-
var
|
|
19256
|
+
var pattern46 = new RegExp("^sk_[\\x21-\\x7e]+(?: [\\x21-\\x7e]+)*$", "u");
|
|
19164
19257
|
function validate69(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
19165
19258
|
;
|
|
19166
19259
|
let vErrors = null;
|
|
@@ -19221,7 +19314,7 @@ function validate69(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
19221
19314
|
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" }];
|
|
19222
19315
|
return false;
|
|
19223
19316
|
} else {
|
|
19224
|
-
if (!
|
|
19317
|
+
if (!pattern30.test(data1)) {
|
|
19225
19318
|
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_-]+$"' }];
|
|
19226
19319
|
return false;
|
|
19227
19320
|
}
|
|
@@ -19250,7 +19343,7 @@ function validate69(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
19250
19343
|
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" }];
|
|
19251
19344
|
return false;
|
|
19252
19345
|
} else {
|
|
19253
|
-
if (!
|
|
19346
|
+
if (!pattern32.test(data2)) {
|
|
19254
19347
|
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])?$"' }];
|
|
19255
19348
|
return false;
|
|
19256
19349
|
}
|
|
@@ -19279,7 +19372,7 @@ function validate69(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
19279
19372
|
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" }];
|
|
19280
19373
|
return false;
|
|
19281
19374
|
} else {
|
|
19282
|
-
if (!
|
|
19375
|
+
if (!pattern33.test(data3)) {
|
|
19283
19376
|
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]+$"' }];
|
|
19284
19377
|
return false;
|
|
19285
19378
|
}
|
|
@@ -19319,7 +19412,7 @@ function validate69(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
19319
19412
|
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" }];
|
|
19320
19413
|
return false;
|
|
19321
19414
|
} else {
|
|
19322
|
-
if (!
|
|
19415
|
+
if (!pattern34.test(data5)) {
|
|
19323
19416
|
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]+$"' }];
|
|
19324
19417
|
return false;
|
|
19325
19418
|
}
|
|
@@ -19581,7 +19674,7 @@ function validate69(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
19581
19674
|
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" }];
|
|
19582
19675
|
return false;
|
|
19583
19676
|
} else {
|
|
19584
|
-
if (!
|
|
19677
|
+
if (!pattern46.test(data10)) {
|
|
19585
19678
|
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]+)*$"' }];
|
|
19586
19679
|
return false;
|
|
19587
19680
|
}
|
|
@@ -19703,7 +19796,7 @@ function validate71(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
19703
19796
|
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" }];
|
|
19704
19797
|
return false;
|
|
19705
19798
|
} else {
|
|
19706
|
-
if (!
|
|
19799
|
+
if (!pattern30.test(data0)) {
|
|
19707
19800
|
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_-]+$"' }];
|
|
19708
19801
|
return false;
|
|
19709
19802
|
}
|
|
@@ -19967,7 +20060,7 @@ function validate73(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
19967
20060
|
}
|
|
19968
20061
|
validate73.evaluated = { "dynamicProps": true, "dynamicItems": false };
|
|
19969
20062
|
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"] };
|
|
19970
|
-
var
|
|
20063
|
+
var pattern49 = new RegExp("^client_[A-Za-z0-9_-]+$", "u");
|
|
19971
20064
|
function validate74(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
19972
20065
|
;
|
|
19973
20066
|
let vErrors = null;
|
|
@@ -20036,7 +20129,7 @@ function validate74(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
20036
20129
|
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" }];
|
|
20037
20130
|
return false;
|
|
20038
20131
|
} else {
|
|
20039
|
-
if (!
|
|
20132
|
+
if (!pattern49.test(data2)) {
|
|
20040
20133
|
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_-]+$"' }];
|
|
20041
20134
|
return false;
|
|
20042
20135
|
}
|