@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
|
@@ -10135,8 +10135,9 @@ function validate43(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
10135
10135
|
}
|
|
10136
10136
|
validate43.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
|
|
10137
10137
|
var isDemoStatusResponse = validate44;
|
|
10138
|
-
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 };
|
|
10138
|
+
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 };
|
|
10139
10139
|
var func34 = Object.prototype.hasOwnProperty;
|
|
10140
|
+
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");
|
|
10140
10141
|
function validate44(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
10141
10142
|
;
|
|
10142
10143
|
let vErrors = null;
|
|
@@ -10152,7 +10153,7 @@ function validate44(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
10152
10153
|
if (errors === _errs0) {
|
|
10153
10154
|
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
10154
10155
|
let missing0;
|
|
10155
|
-
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")) {
|
|
10156
|
+
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")) {
|
|
10156
10157
|
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 + "'" }];
|
|
10157
10158
|
return false;
|
|
10158
10159
|
} else {
|
|
@@ -10292,110 +10293,202 @@ function validate44(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
10292
10293
|
var valid1 = true;
|
|
10293
10294
|
}
|
|
10294
10295
|
if (valid1) {
|
|
10295
|
-
if (data.
|
|
10296
|
-
let data7 = data.
|
|
10296
|
+
if (data.story !== void 0) {
|
|
10297
|
+
let data7 = data.story;
|
|
10297
10298
|
const _errs17 = errors;
|
|
10298
|
-
if (
|
|
10299
|
-
|
|
10300
|
-
|
|
10301
|
-
|
|
10302
|
-
|
|
10303
|
-
|
|
10304
|
-
|
|
10299
|
+
if (errors === _errs17) {
|
|
10300
|
+
if (data7 && typeof data7 == "object" && !Array.isArray(data7)) {
|
|
10301
|
+
let missing1;
|
|
10302
|
+
if (data7.orgName === void 0 && (missing1 = "orgName") || data7.recipient === void 0 && (missing1 = "recipient") || data7.decisionDate === void 0 && (missing1 = "decisionDate")) {
|
|
10303
|
+
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 + "'" }];
|
|
10304
|
+
return false;
|
|
10305
|
+
} else {
|
|
10306
|
+
const _errs19 = errors;
|
|
10307
|
+
for (const key1 in data7) {
|
|
10308
|
+
if (!(key1 === "orgName" || key1 === "recipient" || key1 === "decisionDate")) {
|
|
10309
|
+
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" }];
|
|
10310
|
+
return false;
|
|
10311
|
+
break;
|
|
10312
|
+
}
|
|
10313
|
+
}
|
|
10314
|
+
if (_errs19 === errors) {
|
|
10315
|
+
if (data7.orgName !== void 0) {
|
|
10316
|
+
let data8 = data7.orgName;
|
|
10317
|
+
const _errs20 = errors;
|
|
10318
|
+
if (errors === _errs20) {
|
|
10319
|
+
if (typeof data8 === "string") {
|
|
10320
|
+
if (func1(data8) > 200) {
|
|
10321
|
+
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" }];
|
|
10322
|
+
return false;
|
|
10323
|
+
}
|
|
10324
|
+
} else {
|
|
10325
|
+
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" }];
|
|
10326
|
+
return false;
|
|
10327
|
+
}
|
|
10328
|
+
}
|
|
10329
|
+
var valid2 = _errs20 === errors;
|
|
10330
|
+
} else {
|
|
10331
|
+
var valid2 = true;
|
|
10332
|
+
}
|
|
10333
|
+
if (valid2) {
|
|
10334
|
+
if (data7.recipient !== void 0) {
|
|
10335
|
+
let data9 = data7.recipient;
|
|
10336
|
+
const _errs22 = errors;
|
|
10337
|
+
if (errors === _errs22) {
|
|
10338
|
+
if (errors === _errs22) {
|
|
10339
|
+
if (typeof data9 === "string") {
|
|
10340
|
+
if (!pattern12.test(data9)) {
|
|
10341
|
+
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,}$"` }];
|
|
10342
|
+
return false;
|
|
10343
|
+
}
|
|
10344
|
+
} else {
|
|
10345
|
+
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" }];
|
|
10346
|
+
return false;
|
|
10347
|
+
}
|
|
10348
|
+
}
|
|
10349
|
+
}
|
|
10350
|
+
var valid2 = _errs22 === errors;
|
|
10351
|
+
} else {
|
|
10352
|
+
var valid2 = true;
|
|
10353
|
+
}
|
|
10354
|
+
if (valid2) {
|
|
10355
|
+
if (data7.decisionDate !== void 0) {
|
|
10356
|
+
let data10 = data7.decisionDate;
|
|
10357
|
+
const _errs24 = errors;
|
|
10358
|
+
if (errors === _errs24) {
|
|
10359
|
+
if (typeof data10 === "string") {
|
|
10360
|
+
if (func1(data10) > 100) {
|
|
10361
|
+
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" }];
|
|
10362
|
+
return false;
|
|
10363
|
+
}
|
|
10364
|
+
} else {
|
|
10365
|
+
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" }];
|
|
10366
|
+
return false;
|
|
10367
|
+
}
|
|
10368
|
+
}
|
|
10369
|
+
var valid2 = _errs24 === errors;
|
|
10370
|
+
} else {
|
|
10371
|
+
var valid2 = true;
|
|
10372
|
+
}
|
|
10373
|
+
}
|
|
10374
|
+
}
|
|
10375
|
+
}
|
|
10376
|
+
}
|
|
10377
|
+
} else {
|
|
10378
|
+
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" }];
|
|
10379
|
+
return false;
|
|
10380
|
+
}
|
|
10305
10381
|
}
|
|
10306
10382
|
var valid1 = _errs17 === errors;
|
|
10307
10383
|
} else {
|
|
10308
10384
|
var valid1 = true;
|
|
10309
10385
|
}
|
|
10310
10386
|
if (valid1) {
|
|
10311
|
-
if (data.
|
|
10312
|
-
let
|
|
10313
|
-
const
|
|
10314
|
-
if (typeof
|
|
10315
|
-
validate44.errors = [{ instancePath: instancePath + "/
|
|
10387
|
+
if (data.email !== void 0) {
|
|
10388
|
+
let data11 = data.email;
|
|
10389
|
+
const _errs26 = errors;
|
|
10390
|
+
if (typeof data11 !== "string") {
|
|
10391
|
+
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" }];
|
|
10316
10392
|
return false;
|
|
10317
10393
|
}
|
|
10318
|
-
if (!(
|
|
10319
|
-
validate44.errors = [{ instancePath: instancePath + "/
|
|
10394
|
+
if (!(data11 === "not_queued" || data11 === "queued" || data11 === "accepted" || data11 === "failed" || data11 === "suppressed")) {
|
|
10395
|
+
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" }];
|
|
10320
10396
|
return false;
|
|
10321
10397
|
}
|
|
10322
|
-
var valid1 =
|
|
10398
|
+
var valid1 = _errs26 === errors;
|
|
10323
10399
|
} else {
|
|
10324
10400
|
var valid1 = true;
|
|
10325
10401
|
}
|
|
10326
10402
|
if (valid1) {
|
|
10327
|
-
if (data.
|
|
10328
|
-
let
|
|
10329
|
-
const
|
|
10330
|
-
if (
|
|
10331
|
-
|
|
10332
|
-
|
|
10333
|
-
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" }];
|
|
10334
|
-
return false;
|
|
10335
|
-
}
|
|
10336
|
-
} else {
|
|
10337
|
-
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" }];
|
|
10338
|
-
return false;
|
|
10339
|
-
}
|
|
10403
|
+
if (data.verdict !== void 0) {
|
|
10404
|
+
let data12 = data.verdict;
|
|
10405
|
+
const _errs28 = errors;
|
|
10406
|
+
if (typeof data12 !== "string") {
|
|
10407
|
+
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" }];
|
|
10408
|
+
return false;
|
|
10340
10409
|
}
|
|
10341
|
-
|
|
10410
|
+
if (!(data12 === "block" || data12 === "pass" || data12 === "pending")) {
|
|
10411
|
+
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" }];
|
|
10412
|
+
return false;
|
|
10413
|
+
}
|
|
10414
|
+
var valid1 = _errs28 === errors;
|
|
10342
10415
|
} else {
|
|
10343
10416
|
var valid1 = true;
|
|
10344
10417
|
}
|
|
10345
10418
|
if (valid1) {
|
|
10346
|
-
if (data.
|
|
10347
|
-
let
|
|
10348
|
-
const
|
|
10349
|
-
if (
|
|
10350
|
-
|
|
10351
|
-
|
|
10352
|
-
|
|
10353
|
-
|
|
10354
|
-
|
|
10355
|
-
|
|
10419
|
+
if (data.reasonCode !== void 0) {
|
|
10420
|
+
let data13 = data.reasonCode;
|
|
10421
|
+
const _errs30 = errors;
|
|
10422
|
+
if (errors === _errs30) {
|
|
10423
|
+
if (typeof data13 === "string") {
|
|
10424
|
+
if (func1(data13) > 100) {
|
|
10425
|
+
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" }];
|
|
10426
|
+
return false;
|
|
10427
|
+
}
|
|
10428
|
+
} else {
|
|
10429
|
+
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" }];
|
|
10430
|
+
return false;
|
|
10431
|
+
}
|
|
10356
10432
|
}
|
|
10357
|
-
var valid1 =
|
|
10433
|
+
var valid1 = _errs30 === errors;
|
|
10358
10434
|
} else {
|
|
10359
10435
|
var valid1 = true;
|
|
10360
10436
|
}
|
|
10361
10437
|
if (valid1) {
|
|
10362
|
-
if (data.
|
|
10363
|
-
let
|
|
10364
|
-
const
|
|
10365
|
-
if (
|
|
10366
|
-
|
|
10367
|
-
|
|
10368
|
-
|
|
10369
|
-
|
|
10370
|
-
|
|
10371
|
-
|
|
10372
|
-
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" }];
|
|
10373
|
-
return false;
|
|
10374
|
-
}
|
|
10438
|
+
if (data.choice !== void 0) {
|
|
10439
|
+
let data14 = data.choice;
|
|
10440
|
+
const _errs32 = errors;
|
|
10441
|
+
if (typeof data14 !== "string") {
|
|
10442
|
+
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" }];
|
|
10443
|
+
return false;
|
|
10444
|
+
}
|
|
10445
|
+
if (!(data14 === "adhere" || data14 === "supersede")) {
|
|
10446
|
+
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" }];
|
|
10447
|
+
return false;
|
|
10375
10448
|
}
|
|
10376
|
-
var valid1 =
|
|
10449
|
+
var valid1 = _errs32 === errors;
|
|
10377
10450
|
} else {
|
|
10378
10451
|
var valid1 = true;
|
|
10379
10452
|
}
|
|
10380
10453
|
if (valid1) {
|
|
10381
|
-
if (data.
|
|
10382
|
-
let
|
|
10383
|
-
const
|
|
10384
|
-
if (errors ===
|
|
10385
|
-
if (typeof
|
|
10386
|
-
if (
|
|
10387
|
-
validate44.errors = [{ instancePath: instancePath + "/
|
|
10454
|
+
if (data.reason !== void 0) {
|
|
10455
|
+
let data15 = data.reason;
|
|
10456
|
+
const _errs34 = errors;
|
|
10457
|
+
if (errors === _errs34) {
|
|
10458
|
+
if (typeof data15 === "string") {
|
|
10459
|
+
if (func1(data15) > 500) {
|
|
10460
|
+
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" }];
|
|
10388
10461
|
return false;
|
|
10389
10462
|
}
|
|
10390
10463
|
} else {
|
|
10391
|
-
validate44.errors = [{ instancePath: instancePath + "/
|
|
10464
|
+
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" }];
|
|
10392
10465
|
return false;
|
|
10393
10466
|
}
|
|
10394
10467
|
}
|
|
10395
|
-
var valid1 =
|
|
10468
|
+
var valid1 = _errs34 === errors;
|
|
10396
10469
|
} else {
|
|
10397
10470
|
var valid1 = true;
|
|
10398
10471
|
}
|
|
10472
|
+
if (valid1) {
|
|
10473
|
+
if (data.approvedDigest !== void 0) {
|
|
10474
|
+
let data16 = data.approvedDigest;
|
|
10475
|
+
const _errs36 = errors;
|
|
10476
|
+
if (errors === _errs36) {
|
|
10477
|
+
if (typeof data16 === "string") {
|
|
10478
|
+
if (!pattern5.test(data16)) {
|
|
10479
|
+
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}$"' }];
|
|
10480
|
+
return false;
|
|
10481
|
+
}
|
|
10482
|
+
} else {
|
|
10483
|
+
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" }];
|
|
10484
|
+
return false;
|
|
10485
|
+
}
|
|
10486
|
+
}
|
|
10487
|
+
var valid1 = _errs36 === errors;
|
|
10488
|
+
} else {
|
|
10489
|
+
var valid1 = true;
|
|
10490
|
+
}
|
|
10491
|
+
}
|
|
10399
10492
|
}
|
|
10400
10493
|
}
|
|
10401
10494
|
}
|
|
@@ -11286,7 +11379,7 @@ function validate48(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
11286
11379
|
}
|
|
11287
11380
|
validate48.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
|
|
11288
11381
|
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"] };
|
|
11289
|
-
var
|
|
11382
|
+
var pattern14 = new RegExp("^[0-9a-f]{8}$", "u");
|
|
11290
11383
|
function validate49(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
11291
11384
|
;
|
|
11292
11385
|
let vErrors = null;
|
|
@@ -11625,7 +11718,7 @@ function validate49(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
11625
11718
|
const _errs27 = errors;
|
|
11626
11719
|
if (errors === _errs27) {
|
|
11627
11720
|
if (typeof data9 === "string") {
|
|
11628
|
-
if (!
|
|
11721
|
+
if (!pattern14.test(data9)) {
|
|
11629
11722
|
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}$"' };
|
|
11630
11723
|
if (vErrors === null) {
|
|
11631
11724
|
vErrors = [err24];
|
|
@@ -12683,8 +12776,8 @@ function validate51(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
12683
12776
|
}
|
|
12684
12777
|
validate51.evaluated = { "dynamicProps": true, "dynamicItems": false };
|
|
12685
12778
|
var isGitHubInstallIntentStartResponse = validate52;
|
|
12686
|
-
var
|
|
12687
|
-
var
|
|
12779
|
+
var pattern15 = new RegExp("^[A-Za-z0-9]{1,128}$", "u");
|
|
12780
|
+
var pattern16 = new RegExp("^https:\\/\\/github\\.com\\/apps\\/primitive(?:-staging)?\\/installations\\/new\\?state=[0-9a-f]{64}$", "u");
|
|
12688
12781
|
function validate52(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
12689
12782
|
;
|
|
12690
12783
|
let vErrors = null;
|
|
@@ -12766,7 +12859,7 @@ function validate52(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
12766
12859
|
const _errs9 = errors;
|
|
12767
12860
|
if (errors === _errs9) {
|
|
12768
12861
|
if (typeof data3 === "string") {
|
|
12769
|
-
if (!
|
|
12862
|
+
if (!pattern15.test(data3)) {
|
|
12770
12863
|
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}$"' }];
|
|
12771
12864
|
return false;
|
|
12772
12865
|
}
|
|
@@ -12785,7 +12878,7 @@ function validate52(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
12785
12878
|
const _errs11 = errors;
|
|
12786
12879
|
if (errors === _errs11) {
|
|
12787
12880
|
if (typeof data4 === "string") {
|
|
12788
|
-
if (!
|
|
12881
|
+
if (!pattern16.test(data4)) {
|
|
12789
12882
|
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}$"' }];
|
|
12790
12883
|
return false;
|
|
12791
12884
|
}
|
|
@@ -13193,7 +13286,7 @@ function validate54(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
13193
13286
|
const _errs3 = errors;
|
|
13194
13287
|
if (errors === _errs3) {
|
|
13195
13288
|
if (typeof data0 === "string") {
|
|
13196
|
-
if (!
|
|
13289
|
+
if (!pattern15.test(data0)) {
|
|
13197
13290
|
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}$"' }];
|
|
13198
13291
|
return false;
|
|
13199
13292
|
}
|
|
@@ -14767,7 +14860,7 @@ function validate55(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
14767
14860
|
validate55.evaluated = { "dynamicProps": true, "dynamicItems": false };
|
|
14768
14861
|
var isMoveIngestRequest = validate56;
|
|
14769
14862
|
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": {} };
|
|
14770
|
-
var
|
|
14863
|
+
var pattern18 = new RegExp("^[A-Za-z0-9_-]+$", "u");
|
|
14771
14864
|
function validate56(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
14772
14865
|
;
|
|
14773
14866
|
let vErrors = null;
|
|
@@ -15128,7 +15221,7 @@ function validate56(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
15128
15221
|
}
|
|
15129
15222
|
errors++;
|
|
15130
15223
|
} else {
|
|
15131
|
-
if (!
|
|
15224
|
+
if (!pattern18.test(data11)) {
|
|
15132
15225
|
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_-]+$"' };
|
|
15133
15226
|
if (vErrors === null) {
|
|
15134
15227
|
vErrors = [err22];
|
|
@@ -15653,7 +15746,7 @@ function validate56(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
15653
15746
|
}
|
|
15654
15747
|
errors++;
|
|
15655
15748
|
} else {
|
|
15656
|
-
if (!
|
|
15749
|
+
if (!pattern18.test(data26)) {
|
|
15657
15750
|
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_-]+$"' };
|
|
15658
15751
|
if (vErrors === null) {
|
|
15659
15752
|
vErrors = [err58];
|
|
@@ -15896,10 +15989,10 @@ function validate56(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
15896
15989
|
}
|
|
15897
15990
|
validate56.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
|
|
15898
15991
|
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"] };
|
|
15899
|
-
var
|
|
15900
|
-
var
|
|
15901
|
-
var
|
|
15902
|
-
var
|
|
15992
|
+
var pattern20 = new RegExp("^[A-Za-z0-9._:-]{1,128}$", "u");
|
|
15993
|
+
var pattern22 = new RegExp("^[A-Za-z0-9]{1,64}$", "u");
|
|
15994
|
+
var pattern23 = new RegExp("^(?!@?$)(?!\\/)(?!.*\\/$)(?!.*\\/\\/)(?!.*(?:^|\\/)\\.{1,2}(?:\\/|$))(?!.*(?:^|\\/)[^/]*\\.lock(?:\\/|$))(?!.*\\.\\.)(?!.*@\\{)(?!.*[~^:?*\\\\]).+$", "u");
|
|
15995
|
+
var pattern24 = new RegExp("^[A-Za-z0-9][A-Za-z0-9._+-]*$", "u");
|
|
15903
15996
|
function validate57(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
15904
15997
|
;
|
|
15905
15998
|
let vErrors = null;
|
|
@@ -15965,7 +16058,7 @@ function validate57(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
15965
16058
|
const _errs8 = errors;
|
|
15966
16059
|
if (errors === _errs8) {
|
|
15967
16060
|
if (typeof data2 === "string") {
|
|
15968
|
-
if (!
|
|
16061
|
+
if (!pattern20.test(data2)) {
|
|
15969
16062
|
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}$"' }];
|
|
15970
16063
|
return false;
|
|
15971
16064
|
}
|
|
@@ -15984,7 +16077,7 @@ function validate57(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
15984
16077
|
const _errs10 = errors;
|
|
15985
16078
|
if (errors === _errs10) {
|
|
15986
16079
|
if (typeof data3 === "string") {
|
|
15987
|
-
if (!
|
|
16080
|
+
if (!pattern20.test(data3)) {
|
|
15988
16081
|
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}$"' }];
|
|
15989
16082
|
return false;
|
|
15990
16083
|
}
|
|
@@ -16003,7 +16096,7 @@ function validate57(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
16003
16096
|
const _errs12 = errors;
|
|
16004
16097
|
if (errors === _errs12) {
|
|
16005
16098
|
if (typeof data4 === "string") {
|
|
16006
|
-
if (!
|
|
16099
|
+
if (!pattern22.test(data4)) {
|
|
16007
16100
|
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}$"' }];
|
|
16008
16101
|
return false;
|
|
16009
16102
|
}
|
|
@@ -16075,7 +16168,7 @@ function validate57(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
16075
16168
|
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" }];
|
|
16076
16169
|
return false;
|
|
16077
16170
|
} else {
|
|
16078
|
-
if (!
|
|
16171
|
+
if (!pattern23.test(data8)) {
|
|
16079
16172
|
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(?:\\/|$))(?!.*\\.\\.)(?!.*@\\{)(?!.*[~^:?*\\\\]).+$"' }];
|
|
16080
16173
|
return false;
|
|
16081
16174
|
}
|
|
@@ -16115,7 +16208,7 @@ function validate57(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
16115
16208
|
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" }];
|
|
16116
16209
|
return false;
|
|
16117
16210
|
} else {
|
|
16118
|
-
if (!
|
|
16211
|
+
if (!pattern24.test(data10)) {
|
|
16119
16212
|
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._+-]*$"' }];
|
|
16120
16213
|
return false;
|
|
16121
16214
|
}
|
|
@@ -16202,7 +16295,7 @@ function validate58(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
16202
16295
|
const _errs5 = errors;
|
|
16203
16296
|
if (errors === _errs5) {
|
|
16204
16297
|
if (typeof data1 === "string") {
|
|
16205
|
-
if (!
|
|
16298
|
+
if (!pattern20.test(data1)) {
|
|
16206
16299
|
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}$"' }];
|
|
16207
16300
|
return false;
|
|
16208
16301
|
}
|
|
@@ -16499,8 +16592,8 @@ function validate58(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
16499
16592
|
return errors === 0;
|
|
16500
16593
|
}
|
|
16501
16594
|
validate58.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
|
|
16502
|
-
var
|
|
16503
|
-
var
|
|
16595
|
+
var pattern26 = new RegExp("^[A-Za-z0-9._-]{1,128}$", "u");
|
|
16596
|
+
var pattern27 = new RegExp("^pci_[A-Za-z0-9_-]{43}$", "u");
|
|
16504
16597
|
function validate59(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
16505
16598
|
;
|
|
16506
16599
|
let vErrors = null;
|
|
@@ -16525,7 +16618,7 @@ function validate59(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
16525
16618
|
const _errs3 = errors;
|
|
16526
16619
|
if (errors === _errs3) {
|
|
16527
16620
|
if (typeof data0 === "string") {
|
|
16528
|
-
if (!
|
|
16621
|
+
if (!pattern26.test(data0)) {
|
|
16529
16622
|
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}$"' }];
|
|
16530
16623
|
return false;
|
|
16531
16624
|
}
|
|
@@ -16544,7 +16637,7 @@ function validate59(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
16544
16637
|
const _errs5 = errors;
|
|
16545
16638
|
if (errors === _errs5) {
|
|
16546
16639
|
if (typeof data1 === "string") {
|
|
16547
|
-
if (!
|
|
16640
|
+
if (!pattern27.test(data1)) {
|
|
16548
16641
|
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}$"' }];
|
|
16549
16642
|
return false;
|
|
16550
16643
|
}
|
|
@@ -17208,7 +17301,7 @@ function validate62(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
17208
17301
|
return errors === 0;
|
|
17209
17302
|
}
|
|
17210
17303
|
validate62.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
|
|
17211
|
-
var
|
|
17304
|
+
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");
|
|
17212
17305
|
function validate63(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
17213
17306
|
;
|
|
17214
17307
|
let vErrors = null;
|
|
@@ -17242,7 +17335,7 @@ function validate63(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
17242
17335
|
const _errs3 = errors;
|
|
17243
17336
|
if (errors === _errs3) {
|
|
17244
17337
|
if (typeof data0 === "string") {
|
|
17245
|
-
if (!
|
|
17338
|
+
if (!pattern28.test(data0)) {
|
|
17246
17339
|
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}$"' }];
|
|
17247
17340
|
return false;
|
|
17248
17341
|
}
|
|
@@ -17307,7 +17400,7 @@ function validate64(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
17307
17400
|
return errors === 0;
|
|
17308
17401
|
}
|
|
17309
17402
|
validate64.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
|
|
17310
|
-
var
|
|
17403
|
+
var pattern30 = new RegExp("^api_key_[A-Za-z0-9_-]+$", "u");
|
|
17311
17404
|
function validate65(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
17312
17405
|
;
|
|
17313
17406
|
let vErrors = null;
|
|
@@ -17393,7 +17486,7 @@ function validate65(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
17393
17486
|
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" }];
|
|
17394
17487
|
return false;
|
|
17395
17488
|
} else {
|
|
17396
|
-
if (!
|
|
17489
|
+
if (!pattern30.test(data2)) {
|
|
17397
17490
|
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_-]+$"' }];
|
|
17398
17491
|
return false;
|
|
17399
17492
|
}
|
|
@@ -17421,9 +17514,9 @@ function validate65(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
17421
17514
|
return errors === 0;
|
|
17422
17515
|
}
|
|
17423
17516
|
validate65.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
|
|
17424
|
-
var
|
|
17425
|
-
var
|
|
17426
|
-
var
|
|
17517
|
+
var pattern32 = new RegExp("^[\\x21-\\x7e](?:[\\x20-\\x7e]{0,126}[\\x21-\\x7e])?$", "u");
|
|
17518
|
+
var pattern33 = new RegExp("^[^\\u0000-\\u001f\\u007f-\\u009f\\u2028\\u2029\\u061c\\u200b-\\u200f\\u202a-\\u202e\\u2060\\u2066-\\u2069\\ufeff]+$", "u");
|
|
17519
|
+
var pattern34 = new RegExp("^[\\x21-\\x7e]+$", "u");
|
|
17427
17520
|
function validate66(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
17428
17521
|
;
|
|
17429
17522
|
let vErrors = null;
|
|
@@ -17495,7 +17588,7 @@ function validate66(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
17495
17588
|
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" }];
|
|
17496
17589
|
return false;
|
|
17497
17590
|
} else {
|
|
17498
|
-
if (!
|
|
17591
|
+
if (!pattern30.test(data2)) {
|
|
17499
17592
|
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_-]+$"' }];
|
|
17500
17593
|
return false;
|
|
17501
17594
|
}
|
|
@@ -17524,7 +17617,7 @@ function validate66(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
17524
17617
|
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" }];
|
|
17525
17618
|
return false;
|
|
17526
17619
|
} else {
|
|
17527
|
-
if (!
|
|
17620
|
+
if (!pattern32.test(data3)) {
|
|
17528
17621
|
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])?$"' }];
|
|
17529
17622
|
return false;
|
|
17530
17623
|
}
|
|
@@ -17553,7 +17646,7 @@ function validate66(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
17553
17646
|
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" }];
|
|
17554
17647
|
return false;
|
|
17555
17648
|
} else {
|
|
17556
|
-
if (!
|
|
17649
|
+
if (!pattern33.test(data4)) {
|
|
17557
17650
|
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]+$"' }];
|
|
17558
17651
|
return false;
|
|
17559
17652
|
}
|
|
@@ -17593,7 +17686,7 @@ function validate66(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
17593
17686
|
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" }];
|
|
17594
17687
|
return false;
|
|
17595
17688
|
} else {
|
|
17596
|
-
if (!
|
|
17689
|
+
if (!pattern34.test(data6)) {
|
|
17597
17690
|
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]+$"' }];
|
|
17598
17691
|
return false;
|
|
17599
17692
|
}
|
|
@@ -17879,7 +17972,7 @@ function validate66(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
17879
17972
|
}
|
|
17880
17973
|
errors++;
|
|
17881
17974
|
} else {
|
|
17882
|
-
if (!
|
|
17975
|
+
if (!pattern30.test(data11)) {
|
|
17883
17976
|
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_-]+$"' };
|
|
17884
17977
|
if (vErrors === null) {
|
|
17885
17978
|
vErrors = [err12];
|
|
@@ -17991,7 +18084,7 @@ function validate67(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
17991
18084
|
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" }];
|
|
17992
18085
|
return false;
|
|
17993
18086
|
} else {
|
|
17994
|
-
if (!
|
|
18087
|
+
if (!pattern30.test(data0)) {
|
|
17995
18088
|
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_-]+$"' }];
|
|
17996
18089
|
return false;
|
|
17997
18090
|
}
|
|
@@ -18020,7 +18113,7 @@ function validate67(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
18020
18113
|
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" }];
|
|
18021
18114
|
return false;
|
|
18022
18115
|
} else {
|
|
18023
|
-
if (!
|
|
18116
|
+
if (!pattern32.test(data1)) {
|
|
18024
18117
|
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])?$"' }];
|
|
18025
18118
|
return false;
|
|
18026
18119
|
}
|
|
@@ -18049,7 +18142,7 @@ function validate67(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
18049
18142
|
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" }];
|
|
18050
18143
|
return false;
|
|
18051
18144
|
} else {
|
|
18052
|
-
if (!
|
|
18145
|
+
if (!pattern33.test(data2)) {
|
|
18053
18146
|
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]+$"' }];
|
|
18054
18147
|
return false;
|
|
18055
18148
|
}
|
|
@@ -18089,7 +18182,7 @@ function validate67(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
18089
18182
|
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" }];
|
|
18090
18183
|
return false;
|
|
18091
18184
|
} else {
|
|
18092
|
-
if (!
|
|
18185
|
+
if (!pattern34.test(data4)) {
|
|
18093
18186
|
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]+$"' }];
|
|
18094
18187
|
return false;
|
|
18095
18188
|
}
|
|
@@ -18397,7 +18490,7 @@ function validate68(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
18397
18490
|
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" }];
|
|
18398
18491
|
return false;
|
|
18399
18492
|
} else {
|
|
18400
|
-
if (!
|
|
18493
|
+
if (!pattern32.test(data1)) {
|
|
18401
18494
|
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])?$"' }];
|
|
18402
18495
|
return false;
|
|
18403
18496
|
}
|
|
@@ -18450,7 +18543,7 @@ function validate68(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
18450
18543
|
return errors === 0;
|
|
18451
18544
|
}
|
|
18452
18545
|
validate68.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
|
|
18453
|
-
var
|
|
18546
|
+
var pattern46 = new RegExp("^sk_[\\x21-\\x7e]+(?: [\\x21-\\x7e]+)*$", "u");
|
|
18454
18547
|
function validate69(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
18455
18548
|
;
|
|
18456
18549
|
let vErrors = null;
|
|
@@ -18511,7 +18604,7 @@ function validate69(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
18511
18604
|
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" }];
|
|
18512
18605
|
return false;
|
|
18513
18606
|
} else {
|
|
18514
|
-
if (!
|
|
18607
|
+
if (!pattern30.test(data1)) {
|
|
18515
18608
|
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_-]+$"' }];
|
|
18516
18609
|
return false;
|
|
18517
18610
|
}
|
|
@@ -18540,7 +18633,7 @@ function validate69(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
18540
18633
|
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" }];
|
|
18541
18634
|
return false;
|
|
18542
18635
|
} else {
|
|
18543
|
-
if (!
|
|
18636
|
+
if (!pattern32.test(data2)) {
|
|
18544
18637
|
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])?$"' }];
|
|
18545
18638
|
return false;
|
|
18546
18639
|
}
|
|
@@ -18569,7 +18662,7 @@ function validate69(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
18569
18662
|
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" }];
|
|
18570
18663
|
return false;
|
|
18571
18664
|
} else {
|
|
18572
|
-
if (!
|
|
18665
|
+
if (!pattern33.test(data3)) {
|
|
18573
18666
|
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]+$"' }];
|
|
18574
18667
|
return false;
|
|
18575
18668
|
}
|
|
@@ -18609,7 +18702,7 @@ function validate69(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
18609
18702
|
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" }];
|
|
18610
18703
|
return false;
|
|
18611
18704
|
} else {
|
|
18612
|
-
if (!
|
|
18705
|
+
if (!pattern34.test(data5)) {
|
|
18613
18706
|
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]+$"' }];
|
|
18614
18707
|
return false;
|
|
18615
18708
|
}
|
|
@@ -18871,7 +18964,7 @@ function validate69(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
18871
18964
|
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" }];
|
|
18872
18965
|
return false;
|
|
18873
18966
|
} else {
|
|
18874
|
-
if (!
|
|
18967
|
+
if (!pattern46.test(data10)) {
|
|
18875
18968
|
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]+)*$"' }];
|
|
18876
18969
|
return false;
|
|
18877
18970
|
}
|
|
@@ -18993,7 +19086,7 @@ function validate71(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
18993
19086
|
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" }];
|
|
18994
19087
|
return false;
|
|
18995
19088
|
} else {
|
|
18996
|
-
if (!
|
|
19089
|
+
if (!pattern30.test(data0)) {
|
|
18997
19090
|
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_-]+$"' }];
|
|
18998
19091
|
return false;
|
|
18999
19092
|
}
|
|
@@ -19257,7 +19350,7 @@ function validate73(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
19257
19350
|
}
|
|
19258
19351
|
validate73.evaluated = { "dynamicProps": true, "dynamicItems": false };
|
|
19259
19352
|
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"] };
|
|
19260
|
-
var
|
|
19353
|
+
var pattern49 = new RegExp("^client_[A-Za-z0-9_-]+$", "u");
|
|
19261
19354
|
function validate74(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
19262
19355
|
;
|
|
19263
19356
|
let vErrors = null;
|
|
@@ -19326,7 +19419,7 @@ function validate74(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
19326
19419
|
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" }];
|
|
19327
19420
|
return false;
|
|
19328
19421
|
} else {
|
|
19329
|
-
if (!
|
|
19422
|
+
if (!pattern49.test(data2)) {
|
|
19330
19423
|
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_-]+$"' }];
|
|
19331
19424
|
return false;
|
|
19332
19425
|
}
|