@primitive.ai/prim 0.1.0-alpha.105 → 0.1.0-alpha.107
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 +32 -18
- package/SKILL.md +88 -57
- package/dist/{chunk-IDMLJ4TM.js → chunk-4CO4A6NR.js} +1 -1
- package/dist/{chunk-RCFDZ4DY.js → chunk-6L7EYXVF.js} +3 -3
- package/dist/{chunk-H6JAQVW4.js → chunk-6VFUHQ4J.js} +1 -1
- package/dist/{chunk-5HFTJEA6.js → chunk-72CQVK4E.js} +1 -1
- package/dist/{chunk-LNFWFYSN.js → chunk-7NNJ67YN.js} +69 -35
- package/dist/{chunk-GSBHBU7N.js → chunk-FFYZ3XMX.js} +1469 -533
- package/dist/{chunk-MZEVEPL3.js → chunk-LVRD562C.js} +1 -1
- package/dist/chunk-P5I4HGMW.js +233 -0
- package/dist/{chunk-C4D2LMTS.js → chunk-TPWJQD5E.js} +1 -1
- package/dist/daemon/server.js +1457 -531
- package/dist/hook-runtime/daemon/server.js +1457 -531
- package/dist/hook-runtime/hooks/post-commit.js +1454 -528
- package/dist/hook-runtime/hooks/post-rewrite.js +1454 -528
- package/dist/hook-runtime/hooks/post-tool-use.js +7201 -6195
- package/dist/hook-runtime/hooks/pre-tool-use.js +3359 -2351
- package/dist/hook-runtime/hooks/prim-hook.js +3390 -2382
- package/dist/hook-runtime/hooks/session-start.js +1454 -528
- package/dist/hook-runtime/index.js +2319 -1122
- 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 +575 -380
- package/package.json +1 -1
- package/dist/chunk-6WCBVSND.js +0 -107
|
@@ -10206,6 +10206,8 @@ function validate39(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
10206
10206
|
return errors === 0;
|
|
10207
10207
|
}
|
|
10208
10208
|
validate39.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
|
|
10209
|
+
var pattern4 = new RegExp("^[a-zA-Z0-9]{1,64}$", "u");
|
|
10210
|
+
var pattern5 = new RegExp("^[a-f0-9]{64}$", "u");
|
|
10209
10211
|
function validate40(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
10210
10212
|
;
|
|
10211
10213
|
let vErrors = null;
|
|
@@ -10218,17 +10220,943 @@ function validate40(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
10218
10220
|
evaluated0.items = void 0;
|
|
10219
10221
|
}
|
|
10220
10222
|
const _errs0 = errors;
|
|
10223
|
+
if (errors === _errs0) {
|
|
10224
|
+
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
10225
|
+
let missing0;
|
|
10226
|
+
if (data.runId === void 0 && (missing0 = "runId") || data.revision === void 0 && (missing0 = "revision") || data.appliedDigest === void 0 && (missing0 = "appliedDigest")) {
|
|
10227
|
+
validate40.errors = [{ instancePath, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DemoCompleteRequest/required", keyword: "required", params: { missingProperty: missing0 }, message: "must have required property '" + missing0 + "'" }];
|
|
10228
|
+
return false;
|
|
10229
|
+
} else {
|
|
10230
|
+
const _errs2 = errors;
|
|
10231
|
+
for (const key0 in data) {
|
|
10232
|
+
if (!(key0 === "runId" || key0 === "revision" || key0 === "appliedDigest")) {
|
|
10233
|
+
validate40.errors = [{ instancePath, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DemoCompleteRequest/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key0 }, message: "must NOT have additional properties" }];
|
|
10234
|
+
return false;
|
|
10235
|
+
break;
|
|
10236
|
+
}
|
|
10237
|
+
}
|
|
10238
|
+
if (_errs2 === errors) {
|
|
10239
|
+
if (data.runId !== void 0) {
|
|
10240
|
+
let data0 = data.runId;
|
|
10241
|
+
const _errs3 = errors;
|
|
10242
|
+
if (errors === _errs3) {
|
|
10243
|
+
if (typeof data0 === "string") {
|
|
10244
|
+
if (!pattern4.test(data0)) {
|
|
10245
|
+
validate40.errors = [{ instancePath: instancePath + "/runId", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DemoCompleteRequest/properties/runId/pattern", keyword: "pattern", params: { pattern: "^[a-zA-Z0-9]{1,64}$" }, message: 'must match pattern "^[a-zA-Z0-9]{1,64}$"' }];
|
|
10246
|
+
return false;
|
|
10247
|
+
}
|
|
10248
|
+
} else {
|
|
10249
|
+
validate40.errors = [{ instancePath: instancePath + "/runId", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DemoCompleteRequest/properties/runId/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
10250
|
+
return false;
|
|
10251
|
+
}
|
|
10252
|
+
}
|
|
10253
|
+
var valid1 = _errs3 === errors;
|
|
10254
|
+
} else {
|
|
10255
|
+
var valid1 = true;
|
|
10256
|
+
}
|
|
10257
|
+
if (valid1) {
|
|
10258
|
+
if (data.revision !== void 0) {
|
|
10259
|
+
let data1 = data.revision;
|
|
10260
|
+
const _errs5 = errors;
|
|
10261
|
+
if (!(typeof data1 == "number" && (!(data1 % 1) && !isNaN(data1)) && isFinite(data1))) {
|
|
10262
|
+
validate40.errors = [{ instancePath: instancePath + "/revision", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DemoCompleteRequest/properties/revision/type", keyword: "type", params: { type: "integer" }, message: "must be integer" }];
|
|
10263
|
+
return false;
|
|
10264
|
+
}
|
|
10265
|
+
if (errors === _errs5) {
|
|
10266
|
+
if (typeof data1 == "number" && isFinite(data1)) {
|
|
10267
|
+
if (data1 > 9007199254740991 || isNaN(data1)) {
|
|
10268
|
+
validate40.errors = [{ instancePath: instancePath + "/revision", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DemoCompleteRequest/properties/revision/maximum", keyword: "maximum", params: { comparison: "<=", limit: 9007199254740991 }, message: "must be <= 9007199254740991" }];
|
|
10269
|
+
return false;
|
|
10270
|
+
} else {
|
|
10271
|
+
if (data1 < 0 || isNaN(data1)) {
|
|
10272
|
+
validate40.errors = [{ instancePath: instancePath + "/revision", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DemoCompleteRequest/properties/revision/minimum", keyword: "minimum", params: { comparison: ">=", limit: 0 }, message: "must be >= 0" }];
|
|
10273
|
+
return false;
|
|
10274
|
+
}
|
|
10275
|
+
}
|
|
10276
|
+
}
|
|
10277
|
+
}
|
|
10278
|
+
var valid1 = _errs5 === errors;
|
|
10279
|
+
} else {
|
|
10280
|
+
var valid1 = true;
|
|
10281
|
+
}
|
|
10282
|
+
if (valid1) {
|
|
10283
|
+
if (data.appliedDigest !== void 0) {
|
|
10284
|
+
let data2 = data.appliedDigest;
|
|
10285
|
+
const _errs7 = errors;
|
|
10286
|
+
if (errors === _errs7) {
|
|
10287
|
+
if (typeof data2 === "string") {
|
|
10288
|
+
if (!pattern5.test(data2)) {
|
|
10289
|
+
validate40.errors = [{ instancePath: instancePath + "/appliedDigest", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DemoCompleteRequest/properties/appliedDigest/pattern", keyword: "pattern", params: { pattern: "^[a-f0-9]{64}$" }, message: 'must match pattern "^[a-f0-9]{64}$"' }];
|
|
10290
|
+
return false;
|
|
10291
|
+
}
|
|
10292
|
+
} else {
|
|
10293
|
+
validate40.errors = [{ instancePath: instancePath + "/appliedDigest", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DemoCompleteRequest/properties/appliedDigest/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
10294
|
+
return false;
|
|
10295
|
+
}
|
|
10296
|
+
}
|
|
10297
|
+
var valid1 = _errs7 === errors;
|
|
10298
|
+
} else {
|
|
10299
|
+
var valid1 = true;
|
|
10300
|
+
}
|
|
10301
|
+
}
|
|
10302
|
+
}
|
|
10303
|
+
}
|
|
10304
|
+
}
|
|
10305
|
+
} else {
|
|
10306
|
+
validate40.errors = [{ instancePath, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DemoCompleteRequest/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
|
|
10307
|
+
return false;
|
|
10308
|
+
}
|
|
10309
|
+
}
|
|
10310
|
+
validate40.errors = vErrors;
|
|
10311
|
+
return errors === 0;
|
|
10312
|
+
}
|
|
10313
|
+
validate40.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
|
|
10314
|
+
var pattern8 = new RegExp("\\S", "u");
|
|
10315
|
+
function validate41(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
10316
|
+
;
|
|
10317
|
+
let vErrors = null;
|
|
10318
|
+
let errors = 0;
|
|
10319
|
+
const evaluated0 = validate41.evaluated;
|
|
10320
|
+
if (evaluated0.dynamicProps) {
|
|
10321
|
+
evaluated0.props = void 0;
|
|
10322
|
+
}
|
|
10323
|
+
if (evaluated0.dynamicItems) {
|
|
10324
|
+
evaluated0.items = void 0;
|
|
10325
|
+
}
|
|
10326
|
+
const _errs1 = errors;
|
|
10327
|
+
let valid1 = false;
|
|
10328
|
+
let passing0 = null;
|
|
10329
|
+
const _errs2 = errors;
|
|
10330
|
+
if (errors === _errs2) {
|
|
10331
|
+
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
10332
|
+
let missing0;
|
|
10333
|
+
if (data.runId === void 0 && (missing0 = "runId") || data.revision === void 0 && (missing0 = "revision") || data.choice === void 0 && (missing0 = "choice")) {
|
|
10334
|
+
const err0 = { instancePath, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DemoResolveRequest/oneOf/0/required", keyword: "required", params: { missingProperty: missing0 }, message: "must have required property '" + missing0 + "'" };
|
|
10335
|
+
if (vErrors === null) {
|
|
10336
|
+
vErrors = [err0];
|
|
10337
|
+
} else {
|
|
10338
|
+
vErrors.push(err0);
|
|
10339
|
+
}
|
|
10340
|
+
errors++;
|
|
10341
|
+
} else {
|
|
10342
|
+
const _errs4 = errors;
|
|
10343
|
+
for (const key0 in data) {
|
|
10344
|
+
if (!(key0 === "runId" || key0 === "revision" || key0 === "choice")) {
|
|
10345
|
+
const err1 = { instancePath, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DemoResolveRequest/oneOf/0/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key0 }, message: "must NOT have additional properties" };
|
|
10346
|
+
if (vErrors === null) {
|
|
10347
|
+
vErrors = [err1];
|
|
10348
|
+
} else {
|
|
10349
|
+
vErrors.push(err1);
|
|
10350
|
+
}
|
|
10351
|
+
errors++;
|
|
10352
|
+
break;
|
|
10353
|
+
}
|
|
10354
|
+
}
|
|
10355
|
+
if (_errs4 === errors) {
|
|
10356
|
+
if (data.runId !== void 0) {
|
|
10357
|
+
let data0 = data.runId;
|
|
10358
|
+
const _errs5 = errors;
|
|
10359
|
+
if (errors === _errs5) {
|
|
10360
|
+
if (typeof data0 === "string") {
|
|
10361
|
+
if (!pattern4.test(data0)) {
|
|
10362
|
+
const err2 = { instancePath: instancePath + "/runId", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DemoResolveRequest/oneOf/0/properties/runId/pattern", keyword: "pattern", params: { pattern: "^[a-zA-Z0-9]{1,64}$" }, message: 'must match pattern "^[a-zA-Z0-9]{1,64}$"' };
|
|
10363
|
+
if (vErrors === null) {
|
|
10364
|
+
vErrors = [err2];
|
|
10365
|
+
} else {
|
|
10366
|
+
vErrors.push(err2);
|
|
10367
|
+
}
|
|
10368
|
+
errors++;
|
|
10369
|
+
}
|
|
10370
|
+
} else {
|
|
10371
|
+
const err3 = { instancePath: instancePath + "/runId", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DemoResolveRequest/oneOf/0/properties/runId/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
10372
|
+
if (vErrors === null) {
|
|
10373
|
+
vErrors = [err3];
|
|
10374
|
+
} else {
|
|
10375
|
+
vErrors.push(err3);
|
|
10376
|
+
}
|
|
10377
|
+
errors++;
|
|
10378
|
+
}
|
|
10379
|
+
}
|
|
10380
|
+
var valid2 = _errs5 === errors;
|
|
10381
|
+
} else {
|
|
10382
|
+
var valid2 = true;
|
|
10383
|
+
}
|
|
10384
|
+
if (valid2) {
|
|
10385
|
+
if (data.revision !== void 0) {
|
|
10386
|
+
let data1 = data.revision;
|
|
10387
|
+
const _errs7 = errors;
|
|
10388
|
+
if (!(typeof data1 == "number" && (!(data1 % 1) && !isNaN(data1)) && isFinite(data1))) {
|
|
10389
|
+
const err4 = { instancePath: instancePath + "/revision", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DemoResolveRequest/oneOf/0/properties/revision/type", keyword: "type", params: { type: "integer" }, message: "must be integer" };
|
|
10390
|
+
if (vErrors === null) {
|
|
10391
|
+
vErrors = [err4];
|
|
10392
|
+
} else {
|
|
10393
|
+
vErrors.push(err4);
|
|
10394
|
+
}
|
|
10395
|
+
errors++;
|
|
10396
|
+
}
|
|
10397
|
+
if (errors === _errs7) {
|
|
10398
|
+
if (typeof data1 == "number" && isFinite(data1)) {
|
|
10399
|
+
if (data1 > 9007199254740991 || isNaN(data1)) {
|
|
10400
|
+
const err5 = { instancePath: instancePath + "/revision", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DemoResolveRequest/oneOf/0/properties/revision/maximum", keyword: "maximum", params: { comparison: "<=", limit: 9007199254740991 }, message: "must be <= 9007199254740991" };
|
|
10401
|
+
if (vErrors === null) {
|
|
10402
|
+
vErrors = [err5];
|
|
10403
|
+
} else {
|
|
10404
|
+
vErrors.push(err5);
|
|
10405
|
+
}
|
|
10406
|
+
errors++;
|
|
10407
|
+
} else {
|
|
10408
|
+
if (data1 < 0 || isNaN(data1)) {
|
|
10409
|
+
const err6 = { instancePath: instancePath + "/revision", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DemoResolveRequest/oneOf/0/properties/revision/minimum", keyword: "minimum", params: { comparison: ">=", limit: 0 }, message: "must be >= 0" };
|
|
10410
|
+
if (vErrors === null) {
|
|
10411
|
+
vErrors = [err6];
|
|
10412
|
+
} else {
|
|
10413
|
+
vErrors.push(err6);
|
|
10414
|
+
}
|
|
10415
|
+
errors++;
|
|
10416
|
+
}
|
|
10417
|
+
}
|
|
10418
|
+
}
|
|
10419
|
+
}
|
|
10420
|
+
var valid2 = _errs7 === errors;
|
|
10421
|
+
} else {
|
|
10422
|
+
var valid2 = true;
|
|
10423
|
+
}
|
|
10424
|
+
if (valid2) {
|
|
10425
|
+
if (data.choice !== void 0) {
|
|
10426
|
+
let data2 = data.choice;
|
|
10427
|
+
const _errs9 = errors;
|
|
10428
|
+
if (typeof data2 !== "string") {
|
|
10429
|
+
const err7 = { instancePath: instancePath + "/choice", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DemoResolveRequest/oneOf/0/properties/choice/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
10430
|
+
if (vErrors === null) {
|
|
10431
|
+
vErrors = [err7];
|
|
10432
|
+
} else {
|
|
10433
|
+
vErrors.push(err7);
|
|
10434
|
+
}
|
|
10435
|
+
errors++;
|
|
10436
|
+
}
|
|
10437
|
+
if ("adhere" !== data2) {
|
|
10438
|
+
const err8 = { instancePath: instancePath + "/choice", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DemoResolveRequest/oneOf/0/properties/choice/const", keyword: "const", params: { allowedValue: "adhere" }, message: "must be equal to constant" };
|
|
10439
|
+
if (vErrors === null) {
|
|
10440
|
+
vErrors = [err8];
|
|
10441
|
+
} else {
|
|
10442
|
+
vErrors.push(err8);
|
|
10443
|
+
}
|
|
10444
|
+
errors++;
|
|
10445
|
+
}
|
|
10446
|
+
var valid2 = _errs9 === errors;
|
|
10447
|
+
} else {
|
|
10448
|
+
var valid2 = true;
|
|
10449
|
+
}
|
|
10450
|
+
}
|
|
10451
|
+
}
|
|
10452
|
+
}
|
|
10453
|
+
}
|
|
10454
|
+
} else {
|
|
10455
|
+
const err9 = { instancePath, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DemoResolveRequest/oneOf/0/type", keyword: "type", params: { type: "object" }, message: "must be object" };
|
|
10456
|
+
if (vErrors === null) {
|
|
10457
|
+
vErrors = [err9];
|
|
10458
|
+
} else {
|
|
10459
|
+
vErrors.push(err9);
|
|
10460
|
+
}
|
|
10461
|
+
errors++;
|
|
10462
|
+
}
|
|
10463
|
+
}
|
|
10464
|
+
var _valid0 = _errs2 === errors;
|
|
10465
|
+
if (_valid0) {
|
|
10466
|
+
valid1 = true;
|
|
10467
|
+
passing0 = 0;
|
|
10468
|
+
var props0 = true;
|
|
10469
|
+
}
|
|
10470
|
+
const _errs11 = errors;
|
|
10471
|
+
if (errors === _errs11) {
|
|
10472
|
+
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
10473
|
+
let missing1;
|
|
10474
|
+
if (data.runId === void 0 && (missing1 = "runId") || data.revision === void 0 && (missing1 = "revision") || data.choice === void 0 && (missing1 = "choice") || data.reason === void 0 && (missing1 = "reason")) {
|
|
10475
|
+
const err10 = { instancePath, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DemoResolveRequest/oneOf/1/required", keyword: "required", params: { missingProperty: missing1 }, message: "must have required property '" + missing1 + "'" };
|
|
10476
|
+
if (vErrors === null) {
|
|
10477
|
+
vErrors = [err10];
|
|
10478
|
+
} else {
|
|
10479
|
+
vErrors.push(err10);
|
|
10480
|
+
}
|
|
10481
|
+
errors++;
|
|
10482
|
+
} else {
|
|
10483
|
+
const _errs13 = errors;
|
|
10484
|
+
for (const key1 in data) {
|
|
10485
|
+
if (!(key1 === "runId" || key1 === "revision" || key1 === "choice" || key1 === "reason")) {
|
|
10486
|
+
const err11 = { instancePath, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DemoResolveRequest/oneOf/1/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key1 }, message: "must NOT have additional properties" };
|
|
10487
|
+
if (vErrors === null) {
|
|
10488
|
+
vErrors = [err11];
|
|
10489
|
+
} else {
|
|
10490
|
+
vErrors.push(err11);
|
|
10491
|
+
}
|
|
10492
|
+
errors++;
|
|
10493
|
+
break;
|
|
10494
|
+
}
|
|
10495
|
+
}
|
|
10496
|
+
if (_errs13 === errors) {
|
|
10497
|
+
if (data.runId !== void 0) {
|
|
10498
|
+
let data3 = data.runId;
|
|
10499
|
+
const _errs14 = errors;
|
|
10500
|
+
if (errors === _errs14) {
|
|
10501
|
+
if (typeof data3 === "string") {
|
|
10502
|
+
if (!pattern4.test(data3)) {
|
|
10503
|
+
const err12 = { instancePath: instancePath + "/runId", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DemoResolveRequest/oneOf/1/properties/runId/pattern", keyword: "pattern", params: { pattern: "^[a-zA-Z0-9]{1,64}$" }, message: 'must match pattern "^[a-zA-Z0-9]{1,64}$"' };
|
|
10504
|
+
if (vErrors === null) {
|
|
10505
|
+
vErrors = [err12];
|
|
10506
|
+
} else {
|
|
10507
|
+
vErrors.push(err12);
|
|
10508
|
+
}
|
|
10509
|
+
errors++;
|
|
10510
|
+
}
|
|
10511
|
+
} else {
|
|
10512
|
+
const err13 = { instancePath: instancePath + "/runId", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DemoResolveRequest/oneOf/1/properties/runId/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
10513
|
+
if (vErrors === null) {
|
|
10514
|
+
vErrors = [err13];
|
|
10515
|
+
} else {
|
|
10516
|
+
vErrors.push(err13);
|
|
10517
|
+
}
|
|
10518
|
+
errors++;
|
|
10519
|
+
}
|
|
10520
|
+
}
|
|
10521
|
+
var valid3 = _errs14 === errors;
|
|
10522
|
+
} else {
|
|
10523
|
+
var valid3 = true;
|
|
10524
|
+
}
|
|
10525
|
+
if (valid3) {
|
|
10526
|
+
if (data.revision !== void 0) {
|
|
10527
|
+
let data4 = data.revision;
|
|
10528
|
+
const _errs16 = errors;
|
|
10529
|
+
if (!(typeof data4 == "number" && (!(data4 % 1) && !isNaN(data4)) && isFinite(data4))) {
|
|
10530
|
+
const err14 = { instancePath: instancePath + "/revision", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DemoResolveRequest/oneOf/1/properties/revision/type", keyword: "type", params: { type: "integer" }, message: "must be integer" };
|
|
10531
|
+
if (vErrors === null) {
|
|
10532
|
+
vErrors = [err14];
|
|
10533
|
+
} else {
|
|
10534
|
+
vErrors.push(err14);
|
|
10535
|
+
}
|
|
10536
|
+
errors++;
|
|
10537
|
+
}
|
|
10538
|
+
if (errors === _errs16) {
|
|
10539
|
+
if (typeof data4 == "number" && isFinite(data4)) {
|
|
10540
|
+
if (data4 > 9007199254740991 || isNaN(data4)) {
|
|
10541
|
+
const err15 = { instancePath: instancePath + "/revision", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DemoResolveRequest/oneOf/1/properties/revision/maximum", keyword: "maximum", params: { comparison: "<=", limit: 9007199254740991 }, message: "must be <= 9007199254740991" };
|
|
10542
|
+
if (vErrors === null) {
|
|
10543
|
+
vErrors = [err15];
|
|
10544
|
+
} else {
|
|
10545
|
+
vErrors.push(err15);
|
|
10546
|
+
}
|
|
10547
|
+
errors++;
|
|
10548
|
+
} else {
|
|
10549
|
+
if (data4 < 0 || isNaN(data4)) {
|
|
10550
|
+
const err16 = { instancePath: instancePath + "/revision", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DemoResolveRequest/oneOf/1/properties/revision/minimum", keyword: "minimum", params: { comparison: ">=", limit: 0 }, message: "must be >= 0" };
|
|
10551
|
+
if (vErrors === null) {
|
|
10552
|
+
vErrors = [err16];
|
|
10553
|
+
} else {
|
|
10554
|
+
vErrors.push(err16);
|
|
10555
|
+
}
|
|
10556
|
+
errors++;
|
|
10557
|
+
}
|
|
10558
|
+
}
|
|
10559
|
+
}
|
|
10560
|
+
}
|
|
10561
|
+
var valid3 = _errs16 === errors;
|
|
10562
|
+
} else {
|
|
10563
|
+
var valid3 = true;
|
|
10564
|
+
}
|
|
10565
|
+
if (valid3) {
|
|
10566
|
+
if (data.choice !== void 0) {
|
|
10567
|
+
let data5 = data.choice;
|
|
10568
|
+
const _errs18 = errors;
|
|
10569
|
+
if (typeof data5 !== "string") {
|
|
10570
|
+
const err17 = { instancePath: instancePath + "/choice", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DemoResolveRequest/oneOf/1/properties/choice/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
10571
|
+
if (vErrors === null) {
|
|
10572
|
+
vErrors = [err17];
|
|
10573
|
+
} else {
|
|
10574
|
+
vErrors.push(err17);
|
|
10575
|
+
}
|
|
10576
|
+
errors++;
|
|
10577
|
+
}
|
|
10578
|
+
if ("supersede" !== data5) {
|
|
10579
|
+
const err18 = { instancePath: instancePath + "/choice", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DemoResolveRequest/oneOf/1/properties/choice/const", keyword: "const", params: { allowedValue: "supersede" }, message: "must be equal to constant" };
|
|
10580
|
+
if (vErrors === null) {
|
|
10581
|
+
vErrors = [err18];
|
|
10582
|
+
} else {
|
|
10583
|
+
vErrors.push(err18);
|
|
10584
|
+
}
|
|
10585
|
+
errors++;
|
|
10586
|
+
}
|
|
10587
|
+
var valid3 = _errs18 === errors;
|
|
10588
|
+
} else {
|
|
10589
|
+
var valid3 = true;
|
|
10590
|
+
}
|
|
10591
|
+
if (valid3) {
|
|
10592
|
+
if (data.reason !== void 0) {
|
|
10593
|
+
let data6 = data.reason;
|
|
10594
|
+
const _errs20 = errors;
|
|
10595
|
+
if (errors === _errs20) {
|
|
10596
|
+
if (typeof data6 === "string") {
|
|
10597
|
+
if (func1(data6) > 500) {
|
|
10598
|
+
const err19 = { instancePath: instancePath + "/reason", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DemoResolveRequest/oneOf/1/properties/reason/maxLength", keyword: "maxLength", params: { limit: 500 }, message: "must NOT have more than 500 characters" };
|
|
10599
|
+
if (vErrors === null) {
|
|
10600
|
+
vErrors = [err19];
|
|
10601
|
+
} else {
|
|
10602
|
+
vErrors.push(err19);
|
|
10603
|
+
}
|
|
10604
|
+
errors++;
|
|
10605
|
+
} else {
|
|
10606
|
+
if (func1(data6) < 1) {
|
|
10607
|
+
const err20 = { instancePath: instancePath + "/reason", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DemoResolveRequest/oneOf/1/properties/reason/minLength", keyword: "minLength", params: { limit: 1 }, message: "must NOT have fewer than 1 characters" };
|
|
10608
|
+
if (vErrors === null) {
|
|
10609
|
+
vErrors = [err20];
|
|
10610
|
+
} else {
|
|
10611
|
+
vErrors.push(err20);
|
|
10612
|
+
}
|
|
10613
|
+
errors++;
|
|
10614
|
+
} else {
|
|
10615
|
+
if (!pattern8.test(data6)) {
|
|
10616
|
+
const err21 = { instancePath: instancePath + "/reason", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DemoResolveRequest/oneOf/1/properties/reason/pattern", keyword: "pattern", params: { pattern: "\\S" }, message: 'must match pattern "\\S"' };
|
|
10617
|
+
if (vErrors === null) {
|
|
10618
|
+
vErrors = [err21];
|
|
10619
|
+
} else {
|
|
10620
|
+
vErrors.push(err21);
|
|
10621
|
+
}
|
|
10622
|
+
errors++;
|
|
10623
|
+
}
|
|
10624
|
+
}
|
|
10625
|
+
}
|
|
10626
|
+
} else {
|
|
10627
|
+
const err22 = { instancePath: instancePath + "/reason", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DemoResolveRequest/oneOf/1/properties/reason/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
10628
|
+
if (vErrors === null) {
|
|
10629
|
+
vErrors = [err22];
|
|
10630
|
+
} else {
|
|
10631
|
+
vErrors.push(err22);
|
|
10632
|
+
}
|
|
10633
|
+
errors++;
|
|
10634
|
+
}
|
|
10635
|
+
}
|
|
10636
|
+
var valid3 = _errs20 === errors;
|
|
10637
|
+
} else {
|
|
10638
|
+
var valid3 = true;
|
|
10639
|
+
}
|
|
10640
|
+
}
|
|
10641
|
+
}
|
|
10642
|
+
}
|
|
10643
|
+
}
|
|
10644
|
+
}
|
|
10645
|
+
} else {
|
|
10646
|
+
const err23 = { instancePath, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DemoResolveRequest/oneOf/1/type", keyword: "type", params: { type: "object" }, message: "must be object" };
|
|
10647
|
+
if (vErrors === null) {
|
|
10648
|
+
vErrors = [err23];
|
|
10649
|
+
} else {
|
|
10650
|
+
vErrors.push(err23);
|
|
10651
|
+
}
|
|
10652
|
+
errors++;
|
|
10653
|
+
}
|
|
10654
|
+
}
|
|
10655
|
+
var _valid0 = _errs11 === errors;
|
|
10656
|
+
if (_valid0 && valid1) {
|
|
10657
|
+
valid1 = false;
|
|
10658
|
+
passing0 = [passing0, 1];
|
|
10659
|
+
} else {
|
|
10660
|
+
if (_valid0) {
|
|
10661
|
+
valid1 = true;
|
|
10662
|
+
passing0 = 1;
|
|
10663
|
+
if (props0 !== true) {
|
|
10664
|
+
props0 = true;
|
|
10665
|
+
}
|
|
10666
|
+
}
|
|
10667
|
+
}
|
|
10668
|
+
if (!valid1) {
|
|
10669
|
+
const err24 = { instancePath, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DemoResolveRequest/oneOf", keyword: "oneOf", params: { passingSchemas: passing0 }, message: "must match exactly one schema in oneOf" };
|
|
10670
|
+
if (vErrors === null) {
|
|
10671
|
+
vErrors = [err24];
|
|
10672
|
+
} else {
|
|
10673
|
+
vErrors.push(err24);
|
|
10674
|
+
}
|
|
10675
|
+
errors++;
|
|
10676
|
+
validate41.errors = vErrors;
|
|
10677
|
+
return false;
|
|
10678
|
+
} else {
|
|
10679
|
+
errors = _errs1;
|
|
10680
|
+
if (vErrors !== null) {
|
|
10681
|
+
if (_errs1) {
|
|
10682
|
+
vErrors.length = _errs1;
|
|
10683
|
+
} else {
|
|
10684
|
+
vErrors = null;
|
|
10685
|
+
}
|
|
10686
|
+
}
|
|
10687
|
+
}
|
|
10688
|
+
validate41.errors = vErrors;
|
|
10689
|
+
evaluated0.props = props0;
|
|
10690
|
+
return errors === 0;
|
|
10691
|
+
}
|
|
10692
|
+
validate41.evaluated = { "dynamicProps": true, "dynamicItems": false };
|
|
10693
|
+
function validate42(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
10694
|
+
;
|
|
10695
|
+
let vErrors = null;
|
|
10696
|
+
let errors = 0;
|
|
10697
|
+
const evaluated0 = validate42.evaluated;
|
|
10698
|
+
if (evaluated0.dynamicProps) {
|
|
10699
|
+
evaluated0.props = void 0;
|
|
10700
|
+
}
|
|
10701
|
+
if (evaluated0.dynamicItems) {
|
|
10702
|
+
evaluated0.items = void 0;
|
|
10703
|
+
}
|
|
10704
|
+
const _errs0 = errors;
|
|
10705
|
+
if (errors === _errs0) {
|
|
10706
|
+
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
10707
|
+
let missing0;
|
|
10708
|
+
if (data.runId === void 0 && (missing0 = "runId") || data.revision === void 0 && (missing0 = "revision")) {
|
|
10709
|
+
validate42.errors = [{ instancePath, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DemoRunRequest/required", keyword: "required", params: { missingProperty: missing0 }, message: "must have required property '" + missing0 + "'" }];
|
|
10710
|
+
return false;
|
|
10711
|
+
} else {
|
|
10712
|
+
const _errs2 = errors;
|
|
10713
|
+
for (const key0 in data) {
|
|
10714
|
+
if (!(key0 === "runId" || key0 === "revision")) {
|
|
10715
|
+
validate42.errors = [{ instancePath, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DemoRunRequest/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key0 }, message: "must NOT have additional properties" }];
|
|
10716
|
+
return false;
|
|
10717
|
+
break;
|
|
10718
|
+
}
|
|
10719
|
+
}
|
|
10720
|
+
if (_errs2 === errors) {
|
|
10721
|
+
if (data.runId !== void 0) {
|
|
10722
|
+
let data0 = data.runId;
|
|
10723
|
+
const _errs3 = errors;
|
|
10724
|
+
if (errors === _errs3) {
|
|
10725
|
+
if (typeof data0 === "string") {
|
|
10726
|
+
if (!pattern4.test(data0)) {
|
|
10727
|
+
validate42.errors = [{ instancePath: instancePath + "/runId", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DemoRunRequest/properties/runId/pattern", keyword: "pattern", params: { pattern: "^[a-zA-Z0-9]{1,64}$" }, message: 'must match pattern "^[a-zA-Z0-9]{1,64}$"' }];
|
|
10728
|
+
return false;
|
|
10729
|
+
}
|
|
10730
|
+
} else {
|
|
10731
|
+
validate42.errors = [{ instancePath: instancePath + "/runId", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DemoRunRequest/properties/runId/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
10732
|
+
return false;
|
|
10733
|
+
}
|
|
10734
|
+
}
|
|
10735
|
+
var valid1 = _errs3 === errors;
|
|
10736
|
+
} else {
|
|
10737
|
+
var valid1 = true;
|
|
10738
|
+
}
|
|
10739
|
+
if (valid1) {
|
|
10740
|
+
if (data.revision !== void 0) {
|
|
10741
|
+
let data1 = data.revision;
|
|
10742
|
+
const _errs5 = errors;
|
|
10743
|
+
if (!(typeof data1 == "number" && (!(data1 % 1) && !isNaN(data1)) && isFinite(data1))) {
|
|
10744
|
+
validate42.errors = [{ instancePath: instancePath + "/revision", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DemoRunRequest/properties/revision/type", keyword: "type", params: { type: "integer" }, message: "must be integer" }];
|
|
10745
|
+
return false;
|
|
10746
|
+
}
|
|
10747
|
+
if (errors === _errs5) {
|
|
10748
|
+
if (typeof data1 == "number" && isFinite(data1)) {
|
|
10749
|
+
if (data1 > 9007199254740991 || isNaN(data1)) {
|
|
10750
|
+
validate42.errors = [{ instancePath: instancePath + "/revision", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DemoRunRequest/properties/revision/maximum", keyword: "maximum", params: { comparison: "<=", limit: 9007199254740991 }, message: "must be <= 9007199254740991" }];
|
|
10751
|
+
return false;
|
|
10752
|
+
} else {
|
|
10753
|
+
if (data1 < 0 || isNaN(data1)) {
|
|
10754
|
+
validate42.errors = [{ instancePath: instancePath + "/revision", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DemoRunRequest/properties/revision/minimum", keyword: "minimum", params: { comparison: ">=", limit: 0 }, message: "must be >= 0" }];
|
|
10755
|
+
return false;
|
|
10756
|
+
}
|
|
10757
|
+
}
|
|
10758
|
+
}
|
|
10759
|
+
}
|
|
10760
|
+
var valid1 = _errs5 === errors;
|
|
10761
|
+
} else {
|
|
10762
|
+
var valid1 = true;
|
|
10763
|
+
}
|
|
10764
|
+
}
|
|
10765
|
+
}
|
|
10766
|
+
}
|
|
10767
|
+
} else {
|
|
10768
|
+
validate42.errors = [{ instancePath, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DemoRunRequest/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
|
|
10769
|
+
return false;
|
|
10770
|
+
}
|
|
10771
|
+
}
|
|
10772
|
+
validate42.errors = vErrors;
|
|
10773
|
+
return errors === 0;
|
|
10774
|
+
}
|
|
10775
|
+
validate42.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
|
|
10776
|
+
var pattern10 = new RegExp("^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$", "u");
|
|
10777
|
+
function validate43(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
10778
|
+
;
|
|
10779
|
+
let vErrors = null;
|
|
10780
|
+
let errors = 0;
|
|
10781
|
+
const evaluated0 = validate43.evaluated;
|
|
10782
|
+
if (evaluated0.dynamicProps) {
|
|
10783
|
+
evaluated0.props = void 0;
|
|
10784
|
+
}
|
|
10785
|
+
if (evaluated0.dynamicItems) {
|
|
10786
|
+
evaluated0.items = void 0;
|
|
10787
|
+
}
|
|
10788
|
+
const _errs0 = errors;
|
|
10789
|
+
if (errors === _errs0) {
|
|
10790
|
+
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
10791
|
+
let missing0;
|
|
10792
|
+
if (data.scenarioVersion === void 0 && (missing0 = "scenarioVersion") || data.localRunId === void 0 && (missing0 = "localRunId")) {
|
|
10793
|
+
validate43.errors = [{ instancePath, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DemoStartRequest/required", keyword: "required", params: { missingProperty: missing0 }, message: "must have required property '" + missing0 + "'" }];
|
|
10794
|
+
return false;
|
|
10795
|
+
} else {
|
|
10796
|
+
const _errs2 = errors;
|
|
10797
|
+
for (const key0 in data) {
|
|
10798
|
+
if (!(key0 === "scenarioVersion" || key0 === "localRunId")) {
|
|
10799
|
+
validate43.errors = [{ instancePath, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DemoStartRequest/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key0 }, message: "must NOT have additional properties" }];
|
|
10800
|
+
return false;
|
|
10801
|
+
break;
|
|
10802
|
+
}
|
|
10803
|
+
}
|
|
10804
|
+
if (_errs2 === errors) {
|
|
10805
|
+
if (data.scenarioVersion !== void 0) {
|
|
10806
|
+
let data0 = data.scenarioVersion;
|
|
10807
|
+
const _errs3 = errors;
|
|
10808
|
+
if (!(typeof data0 == "number" && isFinite(data0))) {
|
|
10809
|
+
validate43.errors = [{ instancePath: instancePath + "/scenarioVersion", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DemoStartRequest/properties/scenarioVersion/type", keyword: "type", params: { type: "number" }, message: "must be number" }];
|
|
10810
|
+
return false;
|
|
10811
|
+
}
|
|
10812
|
+
if (1 !== data0) {
|
|
10813
|
+
validate43.errors = [{ instancePath: instancePath + "/scenarioVersion", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DemoStartRequest/properties/scenarioVersion/const", keyword: "const", params: { allowedValue: 1 }, message: "must be equal to constant" }];
|
|
10814
|
+
return false;
|
|
10815
|
+
}
|
|
10816
|
+
var valid1 = _errs3 === errors;
|
|
10817
|
+
} else {
|
|
10818
|
+
var valid1 = true;
|
|
10819
|
+
}
|
|
10820
|
+
if (valid1) {
|
|
10821
|
+
if (data.localRunId !== void 0) {
|
|
10822
|
+
let data1 = data.localRunId;
|
|
10823
|
+
const _errs5 = errors;
|
|
10824
|
+
if (errors === _errs5) {
|
|
10825
|
+
if (errors === _errs5) {
|
|
10826
|
+
if (typeof data1 === "string") {
|
|
10827
|
+
if (!pattern10.test(data1)) {
|
|
10828
|
+
validate43.errors = [{ instancePath: instancePath + "/localRunId", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DemoStartRequest/properties/localRunId/pattern", keyword: "pattern", params: { pattern: "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$" }, message: 'must match pattern "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"' }];
|
|
10829
|
+
return false;
|
|
10830
|
+
}
|
|
10831
|
+
} else {
|
|
10832
|
+
validate43.errors = [{ instancePath: instancePath + "/localRunId", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DemoStartRequest/properties/localRunId/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
10833
|
+
return false;
|
|
10834
|
+
}
|
|
10835
|
+
}
|
|
10836
|
+
}
|
|
10837
|
+
var valid1 = _errs5 === errors;
|
|
10838
|
+
} else {
|
|
10839
|
+
var valid1 = true;
|
|
10840
|
+
}
|
|
10841
|
+
}
|
|
10842
|
+
}
|
|
10843
|
+
}
|
|
10844
|
+
} else {
|
|
10845
|
+
validate43.errors = [{ instancePath, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DemoStartRequest/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
|
|
10846
|
+
return false;
|
|
10847
|
+
}
|
|
10848
|
+
}
|
|
10849
|
+
validate43.errors = vErrors;
|
|
10850
|
+
return errors === 0;
|
|
10851
|
+
}
|
|
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 };
|
|
10854
|
+
var func34 = Object.prototype.hasOwnProperty;
|
|
10855
|
+
function validate44(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
10856
|
+
;
|
|
10857
|
+
let vErrors = null;
|
|
10858
|
+
let errors = 0;
|
|
10859
|
+
const evaluated0 = validate44.evaluated;
|
|
10860
|
+
if (evaluated0.dynamicProps) {
|
|
10861
|
+
evaluated0.props = void 0;
|
|
10862
|
+
}
|
|
10863
|
+
if (evaluated0.dynamicItems) {
|
|
10864
|
+
evaluated0.items = void 0;
|
|
10865
|
+
}
|
|
10866
|
+
const _errs0 = errors;
|
|
10867
|
+
if (errors === _errs0) {
|
|
10868
|
+
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
10869
|
+
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
|
+
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
|
+
return false;
|
|
10873
|
+
} else {
|
|
10874
|
+
const _errs2 = errors;
|
|
10875
|
+
for (const key0 in data) {
|
|
10876
|
+
if (!func34.call(schema79.properties, key0)) {
|
|
10877
|
+
validate44.errors = [{ instancePath, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DemoStatusResponse/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key0 }, message: "must NOT have additional properties" }];
|
|
10878
|
+
return false;
|
|
10879
|
+
break;
|
|
10880
|
+
}
|
|
10881
|
+
}
|
|
10882
|
+
if (_errs2 === errors) {
|
|
10883
|
+
if (data.scenarioVersion !== void 0) {
|
|
10884
|
+
let data0 = data.scenarioVersion;
|
|
10885
|
+
const _errs3 = errors;
|
|
10886
|
+
if (!(typeof data0 == "number" && isFinite(data0))) {
|
|
10887
|
+
validate44.errors = [{ instancePath: instancePath + "/scenarioVersion", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DemoStatusResponse/properties/scenarioVersion/type", keyword: "type", params: { type: "number" }, message: "must be number" }];
|
|
10888
|
+
return false;
|
|
10889
|
+
}
|
|
10890
|
+
if (1 !== data0) {
|
|
10891
|
+
validate44.errors = [{ instancePath: instancePath + "/scenarioVersion", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DemoStatusResponse/properties/scenarioVersion/const", keyword: "const", params: { allowedValue: 1 }, message: "must be equal to constant" }];
|
|
10892
|
+
return false;
|
|
10893
|
+
}
|
|
10894
|
+
var valid1 = _errs3 === errors;
|
|
10895
|
+
} else {
|
|
10896
|
+
var valid1 = true;
|
|
10897
|
+
}
|
|
10898
|
+
if (valid1) {
|
|
10899
|
+
if (data.fictional !== void 0) {
|
|
10900
|
+
let data1 = data.fictional;
|
|
10901
|
+
const _errs5 = errors;
|
|
10902
|
+
if (typeof data1 !== "boolean") {
|
|
10903
|
+
validate44.errors = [{ instancePath: instancePath + "/fictional", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DemoStatusResponse/properties/fictional/type", keyword: "type", params: { type: "boolean" }, message: "must be boolean" }];
|
|
10904
|
+
return false;
|
|
10905
|
+
}
|
|
10906
|
+
if (true !== data1) {
|
|
10907
|
+
validate44.errors = [{ instancePath: instancePath + "/fictional", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DemoStatusResponse/properties/fictional/const", keyword: "const", params: { allowedValue: true }, message: "must be equal to constant" }];
|
|
10908
|
+
return false;
|
|
10909
|
+
}
|
|
10910
|
+
var valid1 = _errs5 === errors;
|
|
10911
|
+
} else {
|
|
10912
|
+
var valid1 = true;
|
|
10913
|
+
}
|
|
10914
|
+
if (valid1) {
|
|
10915
|
+
if (data.evaluation !== void 0) {
|
|
10916
|
+
let data2 = data.evaluation;
|
|
10917
|
+
const _errs7 = errors;
|
|
10918
|
+
if (typeof data2 !== "string") {
|
|
10919
|
+
validate44.errors = [{ instancePath: instancePath + "/evaluation", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DemoStatusResponse/properties/evaluation/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
10920
|
+
return false;
|
|
10921
|
+
}
|
|
10922
|
+
if ("live" !== data2) {
|
|
10923
|
+
validate44.errors = [{ instancePath: instancePath + "/evaluation", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DemoStatusResponse/properties/evaluation/const", keyword: "const", params: { allowedValue: "live" }, message: "must be equal to constant" }];
|
|
10924
|
+
return false;
|
|
10925
|
+
}
|
|
10926
|
+
var valid1 = _errs7 === errors;
|
|
10927
|
+
} else {
|
|
10928
|
+
var valid1 = true;
|
|
10929
|
+
}
|
|
10930
|
+
if (valid1) {
|
|
10931
|
+
if (data.runId !== void 0) {
|
|
10932
|
+
let data3 = data.runId;
|
|
10933
|
+
const _errs9 = errors;
|
|
10934
|
+
if (errors === _errs9) {
|
|
10935
|
+
if (typeof data3 === "string") {
|
|
10936
|
+
if (!pattern4.test(data3)) {
|
|
10937
|
+
validate44.errors = [{ instancePath: instancePath + "/runId", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DemoStatusResponse/properties/runId/pattern", keyword: "pattern", params: { pattern: "^[a-zA-Z0-9]{1,64}$" }, message: 'must match pattern "^[a-zA-Z0-9]{1,64}$"' }];
|
|
10938
|
+
return false;
|
|
10939
|
+
}
|
|
10940
|
+
} else {
|
|
10941
|
+
validate44.errors = [{ instancePath: instancePath + "/runId", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DemoStatusResponse/properties/runId/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
10942
|
+
return false;
|
|
10943
|
+
}
|
|
10944
|
+
}
|
|
10945
|
+
var valid1 = _errs9 === errors;
|
|
10946
|
+
} else {
|
|
10947
|
+
var valid1 = true;
|
|
10948
|
+
}
|
|
10949
|
+
if (valid1) {
|
|
10950
|
+
if (data.revision !== void 0) {
|
|
10951
|
+
let data4 = data.revision;
|
|
10952
|
+
const _errs11 = errors;
|
|
10953
|
+
if (!(typeof data4 == "number" && (!(data4 % 1) && !isNaN(data4)) && isFinite(data4))) {
|
|
10954
|
+
validate44.errors = [{ instancePath: instancePath + "/revision", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DemoStatusResponse/properties/revision/type", keyword: "type", params: { type: "integer" }, message: "must be integer" }];
|
|
10955
|
+
return false;
|
|
10956
|
+
}
|
|
10957
|
+
if (errors === _errs11) {
|
|
10958
|
+
if (typeof data4 == "number" && isFinite(data4)) {
|
|
10959
|
+
if (data4 > 9007199254740991 || isNaN(data4)) {
|
|
10960
|
+
validate44.errors = [{ instancePath: instancePath + "/revision", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DemoStatusResponse/properties/revision/maximum", keyword: "maximum", params: { comparison: "<=", limit: 9007199254740991 }, message: "must be <= 9007199254740991" }];
|
|
10961
|
+
return false;
|
|
10962
|
+
} else {
|
|
10963
|
+
if (data4 < 0 || isNaN(data4)) {
|
|
10964
|
+
validate44.errors = [{ instancePath: instancePath + "/revision", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DemoStatusResponse/properties/revision/minimum", keyword: "minimum", params: { comparison: ">=", limit: 0 }, message: "must be >= 0" }];
|
|
10965
|
+
return false;
|
|
10966
|
+
}
|
|
10967
|
+
}
|
|
10968
|
+
}
|
|
10969
|
+
}
|
|
10970
|
+
var valid1 = _errs11 === errors;
|
|
10971
|
+
} else {
|
|
10972
|
+
var valid1 = true;
|
|
10973
|
+
}
|
|
10974
|
+
if (valid1) {
|
|
10975
|
+
if (data.stage !== void 0) {
|
|
10976
|
+
let data5 = data.stage;
|
|
10977
|
+
const _errs13 = errors;
|
|
10978
|
+
if (typeof data5 !== "string") {
|
|
10979
|
+
validate44.errors = [{ instancePath: instancePath + "/stage", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DemoStatusResponse/properties/stage/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
10980
|
+
return false;
|
|
10981
|
+
}
|
|
10982
|
+
if (!(data5 === "ready" || data5 === "checking" || data5 === "blocked" || data5 === "approved" || data5 === "completed" || data5 === "skipped" || data5 === "expired")) {
|
|
10983
|
+
validate44.errors = [{ instancePath: instancePath + "/stage", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DemoStatusResponse/properties/stage/enum", keyword: "enum", params: { allowedValues: schema79.properties.stage.enum }, message: "must be equal to one of the allowed values" }];
|
|
10984
|
+
return false;
|
|
10985
|
+
}
|
|
10986
|
+
var valid1 = _errs13 === errors;
|
|
10987
|
+
} else {
|
|
10988
|
+
var valid1 = true;
|
|
10989
|
+
}
|
|
10990
|
+
if (valid1) {
|
|
10991
|
+
if (data.authorName !== void 0) {
|
|
10992
|
+
let data6 = data.authorName;
|
|
10993
|
+
const _errs15 = errors;
|
|
10994
|
+
if (errors === _errs15) {
|
|
10995
|
+
if (typeof data6 === "string") {
|
|
10996
|
+
if (func1(data6) > 200) {
|
|
10997
|
+
validate44.errors = [{ instancePath: instancePath + "/authorName", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DemoStatusResponse/properties/authorName/maxLength", keyword: "maxLength", params: { limit: 200 }, message: "must NOT have more than 200 characters" }];
|
|
10998
|
+
return false;
|
|
10999
|
+
}
|
|
11000
|
+
} else {
|
|
11001
|
+
validate44.errors = [{ instancePath: instancePath + "/authorName", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DemoStatusResponse/properties/authorName/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
11002
|
+
return false;
|
|
11003
|
+
}
|
|
11004
|
+
}
|
|
11005
|
+
var valid1 = _errs15 === errors;
|
|
11006
|
+
} else {
|
|
11007
|
+
var valid1 = true;
|
|
11008
|
+
}
|
|
11009
|
+
if (valid1) {
|
|
11010
|
+
if (data.email !== void 0) {
|
|
11011
|
+
let data7 = data.email;
|
|
11012
|
+
const _errs17 = errors;
|
|
11013
|
+
if (typeof data7 !== "string") {
|
|
11014
|
+
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" }];
|
|
11015
|
+
return false;
|
|
11016
|
+
}
|
|
11017
|
+
if (!(data7 === "not_queued" || data7 === "queued" || data7 === "accepted" || data7 === "failed" || data7 === "suppressed")) {
|
|
11018
|
+
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" }];
|
|
11019
|
+
return false;
|
|
11020
|
+
}
|
|
11021
|
+
var valid1 = _errs17 === errors;
|
|
11022
|
+
} else {
|
|
11023
|
+
var valid1 = true;
|
|
11024
|
+
}
|
|
11025
|
+
if (valid1) {
|
|
11026
|
+
if (data.verdict !== void 0) {
|
|
11027
|
+
let data8 = data.verdict;
|
|
11028
|
+
const _errs19 = errors;
|
|
11029
|
+
if (typeof data8 !== "string") {
|
|
11030
|
+
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" }];
|
|
11031
|
+
return false;
|
|
11032
|
+
}
|
|
11033
|
+
if (!(data8 === "block" || data8 === "pass" || data8 === "pending")) {
|
|
11034
|
+
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" }];
|
|
11035
|
+
return false;
|
|
11036
|
+
}
|
|
11037
|
+
var valid1 = _errs19 === errors;
|
|
11038
|
+
} else {
|
|
11039
|
+
var valid1 = true;
|
|
11040
|
+
}
|
|
11041
|
+
if (valid1) {
|
|
11042
|
+
if (data.reasonCode !== void 0) {
|
|
11043
|
+
let data9 = data.reasonCode;
|
|
11044
|
+
const _errs21 = errors;
|
|
11045
|
+
if (errors === _errs21) {
|
|
11046
|
+
if (typeof data9 === "string") {
|
|
11047
|
+
if (func1(data9) > 100) {
|
|
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
|
+
}
|
|
11055
|
+
}
|
|
11056
|
+
var valid1 = _errs21 === errors;
|
|
11057
|
+
} else {
|
|
11058
|
+
var valid1 = true;
|
|
11059
|
+
}
|
|
11060
|
+
if (valid1) {
|
|
11061
|
+
if (data.choice !== void 0) {
|
|
11062
|
+
let data10 = data.choice;
|
|
11063
|
+
const _errs23 = errors;
|
|
11064
|
+
if (typeof data10 !== "string") {
|
|
11065
|
+
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" }];
|
|
11066
|
+
return false;
|
|
11067
|
+
}
|
|
11068
|
+
if (!(data10 === "adhere" || data10 === "supersede")) {
|
|
11069
|
+
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" }];
|
|
11070
|
+
return false;
|
|
11071
|
+
}
|
|
11072
|
+
var valid1 = _errs23 === errors;
|
|
11073
|
+
} else {
|
|
11074
|
+
var valid1 = true;
|
|
11075
|
+
}
|
|
11076
|
+
if (valid1) {
|
|
11077
|
+
if (data.reason !== void 0) {
|
|
11078
|
+
let data11 = data.reason;
|
|
11079
|
+
const _errs25 = errors;
|
|
11080
|
+
if (errors === _errs25) {
|
|
11081
|
+
if (typeof data11 === "string") {
|
|
11082
|
+
if (func1(data11) > 500) {
|
|
11083
|
+
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" }];
|
|
11084
|
+
return false;
|
|
11085
|
+
}
|
|
11086
|
+
} else {
|
|
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
|
+
}
|
|
11090
|
+
}
|
|
11091
|
+
var valid1 = _errs25 === errors;
|
|
11092
|
+
} else {
|
|
11093
|
+
var valid1 = true;
|
|
11094
|
+
}
|
|
11095
|
+
if (valid1) {
|
|
11096
|
+
if (data.approvedDigest !== void 0) {
|
|
11097
|
+
let data12 = data.approvedDigest;
|
|
11098
|
+
const _errs27 = errors;
|
|
11099
|
+
if (errors === _errs27) {
|
|
11100
|
+
if (typeof data12 === "string") {
|
|
11101
|
+
if (!pattern5.test(data12)) {
|
|
11102
|
+
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}$"' }];
|
|
11103
|
+
return false;
|
|
11104
|
+
}
|
|
11105
|
+
} else {
|
|
11106
|
+
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" }];
|
|
11107
|
+
return false;
|
|
11108
|
+
}
|
|
11109
|
+
}
|
|
11110
|
+
var valid1 = _errs27 === errors;
|
|
11111
|
+
} else {
|
|
11112
|
+
var valid1 = true;
|
|
11113
|
+
}
|
|
11114
|
+
}
|
|
11115
|
+
}
|
|
11116
|
+
}
|
|
11117
|
+
}
|
|
11118
|
+
}
|
|
11119
|
+
}
|
|
11120
|
+
}
|
|
11121
|
+
}
|
|
11122
|
+
}
|
|
11123
|
+
}
|
|
11124
|
+
}
|
|
11125
|
+
}
|
|
11126
|
+
}
|
|
11127
|
+
}
|
|
11128
|
+
} else {
|
|
11129
|
+
validate44.errors = [{ instancePath, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DemoStatusResponse/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
|
|
11130
|
+
return false;
|
|
11131
|
+
}
|
|
11132
|
+
}
|
|
11133
|
+
validate44.errors = vErrors;
|
|
11134
|
+
return errors === 0;
|
|
11135
|
+
}
|
|
11136
|
+
validate44.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
|
|
11137
|
+
function validate45(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
11138
|
+
;
|
|
11139
|
+
let vErrors = null;
|
|
11140
|
+
let errors = 0;
|
|
11141
|
+
const evaluated0 = validate45.evaluated;
|
|
11142
|
+
if (evaluated0.dynamicProps) {
|
|
11143
|
+
evaluated0.props = void 0;
|
|
11144
|
+
}
|
|
11145
|
+
if (evaluated0.dynamicItems) {
|
|
11146
|
+
evaluated0.items = void 0;
|
|
11147
|
+
}
|
|
11148
|
+
const _errs0 = errors;
|
|
10221
11149
|
if (errors === _errs0) {
|
|
10222
11150
|
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
10223
11151
|
let missing0;
|
|
10224
11152
|
if (data.disposition === void 0 && (missing0 = "disposition") || data.acknowledged === void 0 && (missing0 = "acknowledged") || data.accepted === void 0 && (missing0 = "accepted") || data.verdictFooter === void 0 && (missing0 = "verdictFooter")) {
|
|
10225
|
-
|
|
11153
|
+
validate45.errors = [{ instancePath, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DurableMoveIngestResponse/required", keyword: "required", params: { missingProperty: missing0 }, message: "must have required property '" + missing0 + "'" }];
|
|
10226
11154
|
return false;
|
|
10227
11155
|
} else {
|
|
10228
11156
|
const _errs2 = errors;
|
|
10229
11157
|
for (const key0 in data) {
|
|
10230
11158
|
if (!(key0 === "disposition" || key0 === "acknowledged" || key0 === "accepted" || key0 === "verdictFooter" || key0 === "collectScopeVersion")) {
|
|
10231
|
-
|
|
11159
|
+
validate45.errors = [{ instancePath, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DurableMoveIngestResponse/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key0 }, message: "must NOT have additional properties" }];
|
|
10232
11160
|
return false;
|
|
10233
11161
|
break;
|
|
10234
11162
|
}
|
|
@@ -10238,11 +11166,11 @@ function validate40(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
10238
11166
|
let data0 = data.disposition;
|
|
10239
11167
|
const _errs3 = errors;
|
|
10240
11168
|
if (typeof data0 !== "string") {
|
|
10241
|
-
|
|
11169
|
+
validate45.errors = [{ instancePath: instancePath + "/disposition", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DurableMoveIngestResponse/properties/disposition/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
10242
11170
|
return false;
|
|
10243
11171
|
}
|
|
10244
11172
|
if ("persisted" !== data0) {
|
|
10245
|
-
|
|
11173
|
+
validate45.errors = [{ instancePath: instancePath + "/disposition", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DurableMoveIngestResponse/properties/disposition/const", keyword: "const", params: { allowedValue: "persisted" }, message: "must be equal to constant" }];
|
|
10246
11174
|
return false;
|
|
10247
11175
|
}
|
|
10248
11176
|
var valid1 = _errs3 === errors;
|
|
@@ -10254,7 +11182,7 @@ function validate40(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
10254
11182
|
let data1 = data.acknowledged;
|
|
10255
11183
|
const _errs5 = errors;
|
|
10256
11184
|
if (!(typeof data1 == "number" && isFinite(data1))) {
|
|
10257
|
-
|
|
11185
|
+
validate45.errors = [{ instancePath: instancePath + "/acknowledged", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DurableMoveIngestResponse/properties/acknowledged/type", keyword: "type", params: { type: "number" }, message: "must be number" }];
|
|
10258
11186
|
return false;
|
|
10259
11187
|
}
|
|
10260
11188
|
var valid1 = _errs5 === errors;
|
|
@@ -10266,7 +11194,7 @@ function validate40(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
10266
11194
|
let data2 = data.accepted;
|
|
10267
11195
|
const _errs7 = errors;
|
|
10268
11196
|
if (!(typeof data2 == "number" && isFinite(data2))) {
|
|
10269
|
-
|
|
11197
|
+
validate45.errors = [{ instancePath: instancePath + "/accepted", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DurableMoveIngestResponse/properties/accepted/type", keyword: "type", params: { type: "number" }, message: "must be number" }];
|
|
10270
11198
|
return false;
|
|
10271
11199
|
}
|
|
10272
11200
|
var valid1 = _errs7 === errors;
|
|
@@ -10441,7 +11369,7 @@ function validate40(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
10441
11369
|
vErrors.push(err10);
|
|
10442
11370
|
}
|
|
10443
11371
|
errors++;
|
|
10444
|
-
|
|
11372
|
+
validate45.errors = vErrors;
|
|
10445
11373
|
return false;
|
|
10446
11374
|
} else {
|
|
10447
11375
|
errors = _errs10;
|
|
@@ -10462,17 +11390,17 @@ function validate40(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
10462
11390
|
let data10 = data.collectScopeVersion;
|
|
10463
11391
|
const _errs28 = errors;
|
|
10464
11392
|
if (!(typeof data10 == "number" && (!(data10 % 1) && !isNaN(data10)) && isFinite(data10))) {
|
|
10465
|
-
|
|
11393
|
+
validate45.errors = [{ instancePath: instancePath + "/collectScopeVersion", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DurableMoveIngestResponse/properties/collectScopeVersion/type", keyword: "type", params: { type: "integer" }, message: "must be integer" }];
|
|
10466
11394
|
return false;
|
|
10467
11395
|
}
|
|
10468
11396
|
if (errors === _errs28) {
|
|
10469
11397
|
if (typeof data10 == "number" && isFinite(data10)) {
|
|
10470
11398
|
if (data10 > 9007199254740991 || isNaN(data10)) {
|
|
10471
|
-
|
|
11399
|
+
validate45.errors = [{ instancePath: instancePath + "/collectScopeVersion", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DurableMoveIngestResponse/properties/collectScopeVersion/maximum", keyword: "maximum", params: { comparison: "<=", limit: 9007199254740991 }, message: "must be <= 9007199254740991" }];
|
|
10472
11400
|
return false;
|
|
10473
11401
|
} else {
|
|
10474
11402
|
if (data10 < 0 || isNaN(data10)) {
|
|
10475
|
-
|
|
11403
|
+
validate45.errors = [{ instancePath: instancePath + "/collectScopeVersion", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DurableMoveIngestResponse/properties/collectScopeVersion/minimum", keyword: "minimum", params: { comparison: ">=", limit: 0 }, message: "must be >= 0" }];
|
|
10476
11404
|
return false;
|
|
10477
11405
|
}
|
|
10478
11406
|
}
|
|
@@ -10489,19 +11417,19 @@ function validate40(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
10489
11417
|
}
|
|
10490
11418
|
}
|
|
10491
11419
|
} else {
|
|
10492
|
-
|
|
11420
|
+
validate45.errors = [{ instancePath, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DurableMoveIngestResponse/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
|
|
10493
11421
|
return false;
|
|
10494
11422
|
}
|
|
10495
11423
|
}
|
|
10496
|
-
|
|
11424
|
+
validate45.errors = vErrors;
|
|
10497
11425
|
return errors === 0;
|
|
10498
11426
|
}
|
|
10499
|
-
|
|
10500
|
-
function
|
|
11427
|
+
validate45.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
|
|
11428
|
+
function validate46(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
10501
11429
|
;
|
|
10502
11430
|
let vErrors = null;
|
|
10503
11431
|
let errors = 0;
|
|
10504
|
-
const evaluated0 =
|
|
11432
|
+
const evaluated0 = validate46.evaluated;
|
|
10505
11433
|
if (evaluated0.dynamicProps) {
|
|
10506
11434
|
evaluated0.props = void 0;
|
|
10507
11435
|
}
|
|
@@ -10513,13 +11441,13 @@ function validate41(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
10513
11441
|
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
10514
11442
|
let missing0;
|
|
10515
11443
|
if (data.protocolVersion === void 0 && (missing0 = "protocolVersion") || data.workspaceId === void 0 && (missing0 = "workspaceId") || data.deliveries === void 0 && (missing0 = "deliveries")) {
|
|
10516
|
-
|
|
11444
|
+
validate46.errors = [{ instancePath, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/FeedbackAckRequest/required", keyword: "required", params: { missingProperty: missing0 }, message: "must have required property '" + missing0 + "'" }];
|
|
10517
11445
|
return false;
|
|
10518
11446
|
} else {
|
|
10519
11447
|
const _errs3 = errors;
|
|
10520
11448
|
for (const key0 in data) {
|
|
10521
11449
|
if (!(key0 === "protocolVersion" || key0 === "workspaceId" || key0 === "deliveries")) {
|
|
10522
|
-
|
|
11450
|
+
validate46.errors = [{ instancePath, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/FeedbackAckRequest/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key0 }, message: "must NOT have additional properties" }];
|
|
10523
11451
|
return false;
|
|
10524
11452
|
break;
|
|
10525
11453
|
}
|
|
@@ -10529,17 +11457,17 @@ function validate41(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
10529
11457
|
let data0 = data.protocolVersion;
|
|
10530
11458
|
const _errs4 = errors;
|
|
10531
11459
|
if (!(typeof data0 == "number" && (!(data0 % 1) && !isNaN(data0)) && isFinite(data0))) {
|
|
10532
|
-
|
|
11460
|
+
validate46.errors = [{ instancePath: instancePath + "/protocolVersion", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/FeedbackAckRequest/properties/protocolVersion/type", keyword: "type", params: { type: "integer" }, message: "must be integer" }];
|
|
10533
11461
|
return false;
|
|
10534
11462
|
}
|
|
10535
11463
|
if (errors === _errs4) {
|
|
10536
11464
|
if (typeof data0 == "number" && isFinite(data0)) {
|
|
10537
11465
|
if (data0 > 2 || isNaN(data0)) {
|
|
10538
|
-
|
|
11466
|
+
validate46.errors = [{ instancePath: instancePath + "/protocolVersion", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/FeedbackAckRequest/properties/protocolVersion/maximum", keyword: "maximum", params: { comparison: "<=", limit: 2 }, message: "must be <= 2" }];
|
|
10539
11467
|
return false;
|
|
10540
11468
|
} else {
|
|
10541
11469
|
if (data0 < 1 || isNaN(data0)) {
|
|
10542
|
-
|
|
11470
|
+
validate46.errors = [{ instancePath: instancePath + "/protocolVersion", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/FeedbackAckRequest/properties/protocolVersion/minimum", keyword: "minimum", params: { comparison: ">=", limit: 1 }, message: "must be >= 1" }];
|
|
10543
11471
|
return false;
|
|
10544
11472
|
}
|
|
10545
11473
|
}
|
|
@@ -10553,7 +11481,7 @@ function validate41(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
10553
11481
|
if (data.workspaceId !== void 0) {
|
|
10554
11482
|
const _errs6 = errors;
|
|
10555
11483
|
if (typeof data.workspaceId !== "string") {
|
|
10556
|
-
|
|
11484
|
+
validate46.errors = [{ instancePath: instancePath + "/workspaceId", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/FeedbackAckRequest/properties/workspaceId/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
10557
11485
|
return false;
|
|
10558
11486
|
}
|
|
10559
11487
|
var valid1 = _errs6 === errors;
|
|
@@ -10567,11 +11495,11 @@ function validate41(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
10567
11495
|
if (errors === _errs8) {
|
|
10568
11496
|
if (Array.isArray(data2)) {
|
|
10569
11497
|
if (data2.length > 40) {
|
|
10570
|
-
|
|
11498
|
+
validate46.errors = [{ instancePath: instancePath + "/deliveries", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/FeedbackAckRequest/properties/deliveries/maxItems", keyword: "maxItems", params: { limit: 40 }, message: "must NOT have more than 40 items" }];
|
|
10571
11499
|
return false;
|
|
10572
11500
|
} else {
|
|
10573
11501
|
if (data2.length < 1) {
|
|
10574
|
-
|
|
11502
|
+
validate46.errors = [{ instancePath: instancePath + "/deliveries", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/FeedbackAckRequest/properties/deliveries/minItems", keyword: "minItems", params: { limit: 1 }, message: "must NOT have fewer than 1 items" }];
|
|
10575
11503
|
return false;
|
|
10576
11504
|
} else {
|
|
10577
11505
|
var valid2 = true;
|
|
@@ -10583,13 +11511,13 @@ function validate41(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
10583
11511
|
if (data3 && typeof data3 == "object" && !Array.isArray(data3)) {
|
|
10584
11512
|
let missing1;
|
|
10585
11513
|
if (data3.eventId === void 0 && (missing1 = "eventId") || data3.leaseVersion === void 0 && (missing1 = "leaseVersion")) {
|
|
10586
|
-
|
|
11514
|
+
validate46.errors = [{ instancePath: instancePath + "/deliveries/" + i0, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/FeedbackAckRequest/properties/deliveries/items/required", keyword: "required", params: { missingProperty: missing1 }, message: "must have required property '" + missing1 + "'" }];
|
|
10587
11515
|
return false;
|
|
10588
11516
|
} else {
|
|
10589
11517
|
const _errs12 = errors;
|
|
10590
11518
|
for (const key1 in data3) {
|
|
10591
11519
|
if (!(key1 === "eventId" || key1 === "leaseVersion")) {
|
|
10592
|
-
|
|
11520
|
+
validate46.errors = [{ instancePath: instancePath + "/deliveries/" + i0, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/FeedbackAckRequest/properties/deliveries/items/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key1 }, message: "must NOT have additional properties" }];
|
|
10593
11521
|
return false;
|
|
10594
11522
|
break;
|
|
10595
11523
|
}
|
|
@@ -10601,16 +11529,16 @@ function validate41(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
10601
11529
|
if (errors === _errs13) {
|
|
10602
11530
|
if (typeof data4 === "string") {
|
|
10603
11531
|
if (func1(data4) > 128) {
|
|
10604
|
-
|
|
11532
|
+
validate46.errors = [{ instancePath: instancePath + "/deliveries/" + i0 + "/eventId", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/FeedbackAckRequest/properties/deliveries/items/properties/eventId/maxLength", keyword: "maxLength", params: { limit: 128 }, message: "must NOT have more than 128 characters" }];
|
|
10605
11533
|
return false;
|
|
10606
11534
|
} else {
|
|
10607
11535
|
if (func1(data4) < 1) {
|
|
10608
|
-
|
|
11536
|
+
validate46.errors = [{ instancePath: instancePath + "/deliveries/" + i0 + "/eventId", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/FeedbackAckRequest/properties/deliveries/items/properties/eventId/minLength", keyword: "minLength", params: { limit: 1 }, message: "must NOT have fewer than 1 characters" }];
|
|
10609
11537
|
return false;
|
|
10610
11538
|
}
|
|
10611
11539
|
}
|
|
10612
11540
|
} else {
|
|
10613
|
-
|
|
11541
|
+
validate46.errors = [{ instancePath: instancePath + "/deliveries/" + i0 + "/eventId", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/FeedbackAckRequest/properties/deliveries/items/properties/eventId/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
10614
11542
|
return false;
|
|
10615
11543
|
}
|
|
10616
11544
|
}
|
|
@@ -10623,17 +11551,17 @@ function validate41(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
10623
11551
|
let data5 = data3.leaseVersion;
|
|
10624
11552
|
const _errs15 = errors;
|
|
10625
11553
|
if (!(typeof data5 == "number" && (!(data5 % 1) && !isNaN(data5)) && isFinite(data5))) {
|
|
10626
|
-
|
|
11554
|
+
validate46.errors = [{ instancePath: instancePath + "/deliveries/" + i0 + "/leaseVersion", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/FeedbackAckRequest/properties/deliveries/items/properties/leaseVersion/type", keyword: "type", params: { type: "integer" }, message: "must be integer" }];
|
|
10627
11555
|
return false;
|
|
10628
11556
|
}
|
|
10629
11557
|
if (errors === _errs15) {
|
|
10630
11558
|
if (typeof data5 == "number" && isFinite(data5)) {
|
|
10631
11559
|
if (data5 > 9007199254740991 || isNaN(data5)) {
|
|
10632
|
-
|
|
11560
|
+
validate46.errors = [{ instancePath: instancePath + "/deliveries/" + i0 + "/leaseVersion", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/FeedbackAckRequest/properties/deliveries/items/properties/leaseVersion/maximum", keyword: "maximum", params: { comparison: "<=", limit: 9007199254740991 }, message: "must be <= 9007199254740991" }];
|
|
10633
11561
|
return false;
|
|
10634
11562
|
} else {
|
|
10635
11563
|
if (data5 < 1 || isNaN(data5)) {
|
|
10636
|
-
|
|
11564
|
+
validate46.errors = [{ instancePath: instancePath + "/deliveries/" + i0 + "/leaseVersion", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/FeedbackAckRequest/properties/deliveries/items/properties/leaseVersion/minimum", keyword: "minimum", params: { comparison: ">=", limit: 1 }, message: "must be >= 1" }];
|
|
10637
11565
|
return false;
|
|
10638
11566
|
}
|
|
10639
11567
|
}
|
|
@@ -10647,7 +11575,7 @@ function validate41(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
10647
11575
|
}
|
|
10648
11576
|
}
|
|
10649
11577
|
} else {
|
|
10650
|
-
|
|
11578
|
+
validate46.errors = [{ instancePath: instancePath + "/deliveries/" + i0, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/FeedbackAckRequest/properties/deliveries/items/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
|
|
10651
11579
|
return false;
|
|
10652
11580
|
}
|
|
10653
11581
|
}
|
|
@@ -10659,7 +11587,7 @@ function validate41(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
10659
11587
|
}
|
|
10660
11588
|
}
|
|
10661
11589
|
} else {
|
|
10662
|
-
|
|
11590
|
+
validate46.errors = [{ instancePath: instancePath + "/deliveries", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/FeedbackAckRequest/properties/deliveries/type", keyword: "type", params: { type: "array" }, message: "must be array" }];
|
|
10663
11591
|
return false;
|
|
10664
11592
|
}
|
|
10665
11593
|
}
|
|
@@ -10672,19 +11600,19 @@ function validate41(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
10672
11600
|
}
|
|
10673
11601
|
}
|
|
10674
11602
|
} else {
|
|
10675
|
-
|
|
11603
|
+
validate46.errors = [{ instancePath, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/FeedbackAckRequest/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
|
|
10676
11604
|
return false;
|
|
10677
11605
|
}
|
|
10678
11606
|
}
|
|
10679
|
-
|
|
11607
|
+
validate46.errors = vErrors;
|
|
10680
11608
|
return errors === 0;
|
|
10681
11609
|
}
|
|
10682
|
-
|
|
10683
|
-
function
|
|
11610
|
+
validate46.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
|
|
11611
|
+
function validate47(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
10684
11612
|
;
|
|
10685
11613
|
let vErrors = null;
|
|
10686
11614
|
let errors = 0;
|
|
10687
|
-
const evaluated0 =
|
|
11615
|
+
const evaluated0 = validate47.evaluated;
|
|
10688
11616
|
if (evaluated0.dynamicProps) {
|
|
10689
11617
|
evaluated0.props = void 0;
|
|
10690
11618
|
}
|
|
@@ -10968,7 +11896,7 @@ function validate42(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
10968
11896
|
vErrors.push(err19);
|
|
10969
11897
|
}
|
|
10970
11898
|
errors++;
|
|
10971
|
-
|
|
11899
|
+
validate47.errors = vErrors;
|
|
10972
11900
|
return false;
|
|
10973
11901
|
} else {
|
|
10974
11902
|
errors = _errs1;
|
|
@@ -10980,16 +11908,16 @@ function validate42(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
10980
11908
|
}
|
|
10981
11909
|
}
|
|
10982
11910
|
}
|
|
10983
|
-
|
|
11911
|
+
validate47.errors = vErrors;
|
|
10984
11912
|
evaluated0.props = props0;
|
|
10985
11913
|
return errors === 0;
|
|
10986
11914
|
}
|
|
10987
|
-
|
|
10988
|
-
function
|
|
11915
|
+
validate47.evaluated = { "dynamicProps": true, "dynamicItems": false };
|
|
11916
|
+
function validate48(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
10989
11917
|
;
|
|
10990
11918
|
let vErrors = null;
|
|
10991
11919
|
let errors = 0;
|
|
10992
|
-
const evaluated0 =
|
|
11920
|
+
const evaluated0 = validate48.evaluated;
|
|
10993
11921
|
if (evaluated0.dynamicProps) {
|
|
10994
11922
|
evaluated0.props = void 0;
|
|
10995
11923
|
}
|
|
@@ -11001,13 +11929,13 @@ function validate43(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
11001
11929
|
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
11002
11930
|
let missing0;
|
|
11003
11931
|
if (data.protocolVersion === void 0 && (missing0 = "protocolVersion") || data.workspaceId === void 0 && (missing0 = "workspaceId") || data.currentSessionId === void 0 && (missing0 = "currentSessionId")) {
|
|
11004
|
-
|
|
11932
|
+
validate48.errors = [{ instancePath, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/FeedbackLeaseRequest/required", keyword: "required", params: { missingProperty: missing0 }, message: "must have required property '" + missing0 + "'" }];
|
|
11005
11933
|
return false;
|
|
11006
11934
|
} else {
|
|
11007
11935
|
const _errs3 = errors;
|
|
11008
11936
|
for (const key0 in data) {
|
|
11009
11937
|
if (!(key0 === "protocolVersion" || key0 === "workspaceId" || key0 === "currentSessionId")) {
|
|
11010
|
-
|
|
11938
|
+
validate48.errors = [{ instancePath, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/FeedbackLeaseRequest/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key0 }, message: "must NOT have additional properties" }];
|
|
11011
11939
|
return false;
|
|
11012
11940
|
break;
|
|
11013
11941
|
}
|
|
@@ -11017,17 +11945,17 @@ function validate43(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
11017
11945
|
let data0 = data.protocolVersion;
|
|
11018
11946
|
const _errs4 = errors;
|
|
11019
11947
|
if (!(typeof data0 == "number" && (!(data0 % 1) && !isNaN(data0)) && isFinite(data0))) {
|
|
11020
|
-
|
|
11948
|
+
validate48.errors = [{ instancePath: instancePath + "/protocolVersion", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/FeedbackLeaseRequest/properties/protocolVersion/type", keyword: "type", params: { type: "integer" }, message: "must be integer" }];
|
|
11021
11949
|
return false;
|
|
11022
11950
|
}
|
|
11023
11951
|
if (errors === _errs4) {
|
|
11024
11952
|
if (typeof data0 == "number" && isFinite(data0)) {
|
|
11025
11953
|
if (data0 > 2 || isNaN(data0)) {
|
|
11026
|
-
|
|
11954
|
+
validate48.errors = [{ instancePath: instancePath + "/protocolVersion", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/FeedbackLeaseRequest/properties/protocolVersion/maximum", keyword: "maximum", params: { comparison: "<=", limit: 2 }, message: "must be <= 2" }];
|
|
11027
11955
|
return false;
|
|
11028
11956
|
} else {
|
|
11029
11957
|
if (data0 < 1 || isNaN(data0)) {
|
|
11030
|
-
|
|
11958
|
+
validate48.errors = [{ instancePath: instancePath + "/protocolVersion", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/FeedbackLeaseRequest/properties/protocolVersion/minimum", keyword: "minimum", params: { comparison: ">=", limit: 1 }, message: "must be >= 1" }];
|
|
11031
11959
|
return false;
|
|
11032
11960
|
}
|
|
11033
11961
|
}
|
|
@@ -11041,7 +11969,7 @@ function validate43(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
11041
11969
|
if (data.workspaceId !== void 0) {
|
|
11042
11970
|
const _errs6 = errors;
|
|
11043
11971
|
if (typeof data.workspaceId !== "string") {
|
|
11044
|
-
|
|
11972
|
+
validate48.errors = [{ instancePath: instancePath + "/workspaceId", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/FeedbackLeaseRequest/properties/workspaceId/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
11045
11973
|
return false;
|
|
11046
11974
|
}
|
|
11047
11975
|
var valid1 = _errs6 === errors;
|
|
@@ -11052,7 +11980,7 @@ function validate43(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
11052
11980
|
if (data.currentSessionId !== void 0) {
|
|
11053
11981
|
const _errs8 = errors;
|
|
11054
11982
|
if (typeof data.currentSessionId !== "string") {
|
|
11055
|
-
|
|
11983
|
+
validate48.errors = [{ instancePath: instancePath + "/currentSessionId", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/FeedbackLeaseRequest/properties/currentSessionId/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
11056
11984
|
return false;
|
|
11057
11985
|
}
|
|
11058
11986
|
var valid1 = _errs8 === errors;
|
|
@@ -11064,21 +11992,21 @@ function validate43(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
11064
11992
|
}
|
|
11065
11993
|
}
|
|
11066
11994
|
} else {
|
|
11067
|
-
|
|
11995
|
+
validate48.errors = [{ instancePath, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/FeedbackLeaseRequest/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
|
|
11068
11996
|
return false;
|
|
11069
11997
|
}
|
|
11070
11998
|
}
|
|
11071
|
-
|
|
11999
|
+
validate48.errors = vErrors;
|
|
11072
12000
|
return errors === 0;
|
|
11073
12001
|
}
|
|
11074
|
-
|
|
11075
|
-
var
|
|
11076
|
-
var
|
|
11077
|
-
function
|
|
12002
|
+
validate48.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
|
|
12003
|
+
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 pattern13 = new RegExp("^[0-9a-f]{8}$", "u");
|
|
12005
|
+
function validate49(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
11078
12006
|
;
|
|
11079
12007
|
let vErrors = null;
|
|
11080
12008
|
let errors = 0;
|
|
11081
|
-
const evaluated0 =
|
|
12009
|
+
const evaluated0 = validate49.evaluated;
|
|
11082
12010
|
if (evaluated0.dynamicProps) {
|
|
11083
12011
|
evaluated0.props = void 0;
|
|
11084
12012
|
}
|
|
@@ -11412,7 +12340,7 @@ function validate44(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
11412
12340
|
const _errs27 = errors;
|
|
11413
12341
|
if (errors === _errs27) {
|
|
11414
12342
|
if (typeof data9 === "string") {
|
|
11415
|
-
if (!
|
|
12343
|
+
if (!pattern13.test(data9)) {
|
|
11416
12344
|
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}$"' };
|
|
11417
12345
|
if (vErrors === null) {
|
|
11418
12346
|
vErrors = [err24];
|
|
@@ -11520,7 +12448,7 @@ function validate44(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
11520
12448
|
errors++;
|
|
11521
12449
|
}
|
|
11522
12450
|
if (!(data13 === "confirm_prompt" || data13 === "publish_prompt")) {
|
|
11523
|
-
const err32 = { instancePath: instancePath + "/events/" + i0 + "/kind", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/FeedbackLeaseResponse/anyOf/1/properties/events/items/properties/kind/enum", keyword: "enum", params: { allowedValues:
|
|
12451
|
+
const err32 = { instancePath: instancePath + "/events/" + i0 + "/kind", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/FeedbackLeaseResponse/anyOf/1/properties/events/items/properties/kind/enum", keyword: "enum", params: { allowedValues: schema89.anyOf[1].properties.events.items.properties.kind.enum }, message: "must be equal to one of the allowed values" };
|
|
11524
12452
|
if (vErrors === null) {
|
|
11525
12453
|
vErrors = [err32];
|
|
11526
12454
|
} else {
|
|
@@ -11739,7 +12667,7 @@ function validate44(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
11739
12667
|
vErrors.push(err46);
|
|
11740
12668
|
}
|
|
11741
12669
|
errors++;
|
|
11742
|
-
|
|
12670
|
+
validate49.errors = vErrors;
|
|
11743
12671
|
return false;
|
|
11744
12672
|
} else {
|
|
11745
12673
|
errors = _errs1;
|
|
@@ -11751,16 +12679,16 @@ function validate44(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
11751
12679
|
}
|
|
11752
12680
|
}
|
|
11753
12681
|
}
|
|
11754
|
-
|
|
12682
|
+
validate49.errors = vErrors;
|
|
11755
12683
|
evaluated0.props = props0;
|
|
11756
12684
|
return errors === 0;
|
|
11757
12685
|
}
|
|
11758
|
-
|
|
11759
|
-
function
|
|
12686
|
+
validate49.evaluated = { "dynamicProps": true, "dynamicItems": false };
|
|
12687
|
+
function validate50(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
11760
12688
|
;
|
|
11761
12689
|
let vErrors = null;
|
|
11762
12690
|
let errors = 0;
|
|
11763
|
-
const evaluated0 =
|
|
12691
|
+
const evaluated0 = validate50.evaluated;
|
|
11764
12692
|
if (evaluated0.dynamicProps) {
|
|
11765
12693
|
evaluated0.props = void 0;
|
|
11766
12694
|
}
|
|
@@ -11968,7 +12896,7 @@ function validate45(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
11968
12896
|
vErrors.push(err14);
|
|
11969
12897
|
}
|
|
11970
12898
|
errors++;
|
|
11971
|
-
|
|
12899
|
+
validate50.errors = vErrors;
|
|
11972
12900
|
return false;
|
|
11973
12901
|
} else {
|
|
11974
12902
|
errors = _errs1;
|
|
@@ -11980,16 +12908,16 @@ function validate45(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
11980
12908
|
}
|
|
11981
12909
|
}
|
|
11982
12910
|
}
|
|
11983
|
-
|
|
12911
|
+
validate50.errors = vErrors;
|
|
11984
12912
|
evaluated0.props = props0;
|
|
11985
12913
|
return errors === 0;
|
|
11986
12914
|
}
|
|
11987
|
-
|
|
11988
|
-
function
|
|
12915
|
+
validate50.evaluated = { "dynamicProps": true, "dynamicItems": false };
|
|
12916
|
+
function validate51(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
11989
12917
|
;
|
|
11990
12918
|
let vErrors = null;
|
|
11991
12919
|
let errors = 0;
|
|
11992
|
-
const evaluated0 =
|
|
12920
|
+
const evaluated0 = validate51.evaluated;
|
|
11993
12921
|
if (evaluated0.dynamicProps) {
|
|
11994
12922
|
evaluated0.props = void 0;
|
|
11995
12923
|
}
|
|
@@ -12451,7 +13379,7 @@ function validate46(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
12451
13379
|
vErrors.push(err33);
|
|
12452
13380
|
}
|
|
12453
13381
|
errors++;
|
|
12454
|
-
|
|
13382
|
+
validate51.errors = vErrors;
|
|
12455
13383
|
return false;
|
|
12456
13384
|
} else {
|
|
12457
13385
|
errors = _errs1;
|
|
@@ -12463,18 +13391,18 @@ function validate46(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
12463
13391
|
}
|
|
12464
13392
|
}
|
|
12465
13393
|
}
|
|
12466
|
-
|
|
13394
|
+
validate51.errors = vErrors;
|
|
12467
13395
|
evaluated0.props = props0;
|
|
12468
13396
|
return errors === 0;
|
|
12469
13397
|
}
|
|
12470
|
-
|
|
12471
|
-
var
|
|
12472
|
-
var
|
|
12473
|
-
function
|
|
13398
|
+
validate51.evaluated = { "dynamicProps": true, "dynamicItems": false };
|
|
13399
|
+
var pattern14 = new RegExp("^[A-Za-z0-9]{1,128}$", "u");
|
|
13400
|
+
var pattern15 = new RegExp("^https:\\/\\/github\\.com\\/apps\\/primitive(?:-staging)?\\/installations\\/new\\?state=[0-9a-f]{64}$", "u");
|
|
13401
|
+
function validate52(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
12474
13402
|
;
|
|
12475
13403
|
let vErrors = null;
|
|
12476
13404
|
let errors = 0;
|
|
12477
|
-
const evaluated0 =
|
|
13405
|
+
const evaluated0 = validate52.evaluated;
|
|
12478
13406
|
if (evaluated0.dynamicProps) {
|
|
12479
13407
|
evaluated0.props = void 0;
|
|
12480
13408
|
}
|
|
@@ -12486,13 +13414,13 @@ function validate47(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
12486
13414
|
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
12487
13415
|
let missing0;
|
|
12488
13416
|
if (data.protocolVersion === void 0 && (missing0 = "protocolVersion") || data.mode === void 0 && (missing0 = "mode") || data.status === void 0 && (missing0 = "status") || data.intentId === void 0 && (missing0 = "intentId") || data.browserUrl === void 0 && (missing0 = "browserUrl") || data.expiresAt === void 0 && (missing0 = "expiresAt") || data.pollAfterMs === void 0 && (missing0 = "pollAfterMs")) {
|
|
12489
|
-
|
|
13417
|
+
validate52.errors = [{ instancePath, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/GitHubInstallIntentStartResponse/required", keyword: "required", params: { missingProperty: missing0 }, message: "must have required property '" + missing0 + "'" }];
|
|
12490
13418
|
return false;
|
|
12491
13419
|
} else {
|
|
12492
13420
|
const _errs2 = errors;
|
|
12493
13421
|
for (const key0 in data) {
|
|
12494
13422
|
if (!(key0 === "protocolVersion" || key0 === "mode" || key0 === "status" || key0 === "intentId" || key0 === "browserUrl" || key0 === "expiresAt" || key0 === "pollAfterMs")) {
|
|
12495
|
-
|
|
13423
|
+
validate52.errors = [{ instancePath, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/GitHubInstallIntentStartResponse/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key0 }, message: "must NOT have additional properties" }];
|
|
12496
13424
|
return false;
|
|
12497
13425
|
break;
|
|
12498
13426
|
}
|
|
@@ -12502,11 +13430,11 @@ function validate47(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
12502
13430
|
let data0 = data.protocolVersion;
|
|
12503
13431
|
const _errs3 = errors;
|
|
12504
13432
|
if (!(typeof data0 == "number" && isFinite(data0))) {
|
|
12505
|
-
|
|
13433
|
+
validate52.errors = [{ instancePath: instancePath + "/protocolVersion", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/GitHubInstallIntentStartResponse/properties/protocolVersion/type", keyword: "type", params: { type: "number" }, message: "must be number" }];
|
|
12506
13434
|
return false;
|
|
12507
13435
|
}
|
|
12508
13436
|
if (1 !== data0) {
|
|
12509
|
-
|
|
13437
|
+
validate52.errors = [{ instancePath: instancePath + "/protocolVersion", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/GitHubInstallIntentStartResponse/properties/protocolVersion/const", keyword: "const", params: { allowedValue: 1 }, message: "must be equal to constant" }];
|
|
12510
13438
|
return false;
|
|
12511
13439
|
}
|
|
12512
13440
|
var valid1 = _errs3 === errors;
|
|
@@ -12518,11 +13446,11 @@ function validate47(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
12518
13446
|
let data1 = data.mode;
|
|
12519
13447
|
const _errs5 = errors;
|
|
12520
13448
|
if (typeof data1 !== "string") {
|
|
12521
|
-
|
|
13449
|
+
validate52.errors = [{ instancePath: instancePath + "/mode", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/GitHubInstallIntentStartResponse/properties/mode/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
12522
13450
|
return false;
|
|
12523
13451
|
}
|
|
12524
13452
|
if ("install_intent_v1" !== data1) {
|
|
12525
|
-
|
|
13453
|
+
validate52.errors = [{ instancePath: instancePath + "/mode", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/GitHubInstallIntentStartResponse/properties/mode/const", keyword: "const", params: { allowedValue: "install_intent_v1" }, message: "must be equal to constant" }];
|
|
12526
13454
|
return false;
|
|
12527
13455
|
}
|
|
12528
13456
|
var valid1 = _errs5 === errors;
|
|
@@ -12534,11 +13462,11 @@ function validate47(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
12534
13462
|
let data2 = data.status;
|
|
12535
13463
|
const _errs7 = errors;
|
|
12536
13464
|
if (typeof data2 !== "string") {
|
|
12537
|
-
|
|
13465
|
+
validate52.errors = [{ instancePath: instancePath + "/status", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/GitHubInstallIntentStartResponse/properties/status/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
12538
13466
|
return false;
|
|
12539
13467
|
}
|
|
12540
13468
|
if ("pending" !== data2) {
|
|
12541
|
-
|
|
13469
|
+
validate52.errors = [{ instancePath: instancePath + "/status", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/GitHubInstallIntentStartResponse/properties/status/const", keyword: "const", params: { allowedValue: "pending" }, message: "must be equal to constant" }];
|
|
12542
13470
|
return false;
|
|
12543
13471
|
}
|
|
12544
13472
|
var valid1 = _errs7 === errors;
|
|
@@ -12551,12 +13479,12 @@ function validate47(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
12551
13479
|
const _errs9 = errors;
|
|
12552
13480
|
if (errors === _errs9) {
|
|
12553
13481
|
if (typeof data3 === "string") {
|
|
12554
|
-
if (!
|
|
12555
|
-
|
|
13482
|
+
if (!pattern14.test(data3)) {
|
|
13483
|
+
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}$"' }];
|
|
12556
13484
|
return false;
|
|
12557
13485
|
}
|
|
12558
13486
|
} else {
|
|
12559
|
-
|
|
13487
|
+
validate52.errors = [{ instancePath: instancePath + "/intentId", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/GitHubInstallIntentStartResponse/properties/intentId/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
12560
13488
|
return false;
|
|
12561
13489
|
}
|
|
12562
13490
|
}
|
|
@@ -12570,12 +13498,12 @@ function validate47(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
12570
13498
|
const _errs11 = errors;
|
|
12571
13499
|
if (errors === _errs11) {
|
|
12572
13500
|
if (typeof data4 === "string") {
|
|
12573
|
-
if (!
|
|
12574
|
-
|
|
13501
|
+
if (!pattern15.test(data4)) {
|
|
13502
|
+
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}$"' }];
|
|
12575
13503
|
return false;
|
|
12576
13504
|
}
|
|
12577
13505
|
} else {
|
|
12578
|
-
|
|
13506
|
+
validate52.errors = [{ instancePath: instancePath + "/browserUrl", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/GitHubInstallIntentStartResponse/properties/browserUrl/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
12579
13507
|
return false;
|
|
12580
13508
|
}
|
|
12581
13509
|
}
|
|
@@ -12588,17 +13516,17 @@ function validate47(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
12588
13516
|
let data5 = data.expiresAt;
|
|
12589
13517
|
const _errs13 = errors;
|
|
12590
13518
|
if (!(typeof data5 == "number" && (!(data5 % 1) && !isNaN(data5)) && isFinite(data5))) {
|
|
12591
|
-
|
|
13519
|
+
validate52.errors = [{ instancePath: instancePath + "/expiresAt", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/GitHubInstallIntentStartResponse/properties/expiresAt/type", keyword: "type", params: { type: "integer" }, message: "must be integer" }];
|
|
12592
13520
|
return false;
|
|
12593
13521
|
}
|
|
12594
13522
|
if (errors === _errs13) {
|
|
12595
13523
|
if (typeof data5 == "number" && isFinite(data5)) {
|
|
12596
13524
|
if (data5 > 9007199254740991 || isNaN(data5)) {
|
|
12597
|
-
|
|
13525
|
+
validate52.errors = [{ instancePath: instancePath + "/expiresAt", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/GitHubInstallIntentStartResponse/properties/expiresAt/maximum", keyword: "maximum", params: { comparison: "<=", limit: 9007199254740991 }, message: "must be <= 9007199254740991" }];
|
|
12598
13526
|
return false;
|
|
12599
13527
|
} else {
|
|
12600
13528
|
if (data5 < 0 || isNaN(data5)) {
|
|
12601
|
-
|
|
13529
|
+
validate52.errors = [{ instancePath: instancePath + "/expiresAt", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/GitHubInstallIntentStartResponse/properties/expiresAt/minimum", keyword: "minimum", params: { comparison: ">=", limit: 0 }, message: "must be >= 0" }];
|
|
12602
13530
|
return false;
|
|
12603
13531
|
}
|
|
12604
13532
|
}
|
|
@@ -12613,11 +13541,11 @@ function validate47(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
12613
13541
|
let data6 = data.pollAfterMs;
|
|
12614
13542
|
const _errs15 = errors;
|
|
12615
13543
|
if (!(typeof data6 == "number" && isFinite(data6))) {
|
|
12616
|
-
|
|
13544
|
+
validate52.errors = [{ instancePath: instancePath + "/pollAfterMs", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/GitHubInstallIntentStartResponse/properties/pollAfterMs/type", keyword: "type", params: { type: "number" }, message: "must be number" }];
|
|
12617
13545
|
return false;
|
|
12618
13546
|
}
|
|
12619
13547
|
if (1e3 !== data6) {
|
|
12620
|
-
|
|
13548
|
+
validate52.errors = [{ instancePath: instancePath + "/pollAfterMs", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/GitHubInstallIntentStartResponse/properties/pollAfterMs/const", keyword: "const", params: { allowedValue: 1e3 }, message: "must be equal to constant" }];
|
|
12621
13549
|
return false;
|
|
12622
13550
|
}
|
|
12623
13551
|
var valid1 = _errs15 === errors;
|
|
@@ -12633,19 +13561,19 @@ function validate47(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
12633
13561
|
}
|
|
12634
13562
|
}
|
|
12635
13563
|
} else {
|
|
12636
|
-
|
|
13564
|
+
validate52.errors = [{ instancePath, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/GitHubInstallIntentStartResponse/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
|
|
12637
13565
|
return false;
|
|
12638
13566
|
}
|
|
12639
13567
|
}
|
|
12640
|
-
|
|
13568
|
+
validate52.errors = vErrors;
|
|
12641
13569
|
return errors === 0;
|
|
12642
13570
|
}
|
|
12643
|
-
|
|
12644
|
-
function
|
|
13571
|
+
validate52.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
|
|
13572
|
+
function validate53(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
12645
13573
|
;
|
|
12646
13574
|
let vErrors = null;
|
|
12647
13575
|
let errors = 0;
|
|
12648
|
-
const evaluated0 =
|
|
13576
|
+
const evaluated0 = validate53.evaluated;
|
|
12649
13577
|
if (evaluated0.dynamicProps) {
|
|
12650
13578
|
evaluated0.props = void 0;
|
|
12651
13579
|
}
|
|
@@ -12928,7 +13856,7 @@ function validate48(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
12928
13856
|
vErrors.push(err20);
|
|
12929
13857
|
}
|
|
12930
13858
|
errors++;
|
|
12931
|
-
|
|
13859
|
+
validate53.errors = vErrors;
|
|
12932
13860
|
return false;
|
|
12933
13861
|
} else {
|
|
12934
13862
|
errors = _errs1;
|
|
@@ -12940,16 +13868,16 @@ function validate48(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
12940
13868
|
}
|
|
12941
13869
|
}
|
|
12942
13870
|
}
|
|
12943
|
-
|
|
13871
|
+
validate53.errors = vErrors;
|
|
12944
13872
|
evaluated0.props = props0;
|
|
12945
13873
|
return errors === 0;
|
|
12946
13874
|
}
|
|
12947
|
-
|
|
12948
|
-
function
|
|
13875
|
+
validate53.evaluated = { "dynamicProps": true, "dynamicItems": false };
|
|
13876
|
+
function validate54(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
12949
13877
|
;
|
|
12950
13878
|
let vErrors = null;
|
|
12951
13879
|
let errors = 0;
|
|
12952
|
-
const evaluated0 =
|
|
13880
|
+
const evaluated0 = validate54.evaluated;
|
|
12953
13881
|
if (evaluated0.dynamicProps) {
|
|
12954
13882
|
evaluated0.props = void 0;
|
|
12955
13883
|
}
|
|
@@ -12961,13 +13889,13 @@ function validate49(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
12961
13889
|
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
12962
13890
|
let missing0;
|
|
12963
13891
|
if (data.intentId === void 0 && (missing0 = "intentId")) {
|
|
12964
|
-
|
|
13892
|
+
validate54.errors = [{ instancePath, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/GitHubInstallIntentStatusRequest/required", keyword: "required", params: { missingProperty: missing0 }, message: "must have required property '" + missing0 + "'" }];
|
|
12965
13893
|
return false;
|
|
12966
13894
|
} else {
|
|
12967
13895
|
const _errs2 = errors;
|
|
12968
13896
|
for (const key0 in data) {
|
|
12969
13897
|
if (!(key0 === "intentId")) {
|
|
12970
|
-
|
|
13898
|
+
validate54.errors = [{ instancePath, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/GitHubInstallIntentStatusRequest/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key0 }, message: "must NOT have additional properties" }];
|
|
12971
13899
|
return false;
|
|
12972
13900
|
break;
|
|
12973
13901
|
}
|
|
@@ -12978,12 +13906,12 @@ function validate49(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
12978
13906
|
const _errs3 = errors;
|
|
12979
13907
|
if (errors === _errs3) {
|
|
12980
13908
|
if (typeof data0 === "string") {
|
|
12981
|
-
if (!
|
|
12982
|
-
|
|
13909
|
+
if (!pattern14.test(data0)) {
|
|
13910
|
+
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}$"' }];
|
|
12983
13911
|
return false;
|
|
12984
13912
|
}
|
|
12985
13913
|
} else {
|
|
12986
|
-
|
|
13914
|
+
validate54.errors = [{ instancePath: instancePath + "/intentId", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/GitHubInstallIntentStatusRequest/properties/intentId/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
12987
13915
|
return false;
|
|
12988
13916
|
}
|
|
12989
13917
|
}
|
|
@@ -12991,21 +13919,20 @@ function validate49(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
12991
13919
|
}
|
|
12992
13920
|
}
|
|
12993
13921
|
} else {
|
|
12994
|
-
|
|
13922
|
+
validate54.errors = [{ instancePath, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/GitHubInstallIntentStatusRequest/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
|
|
12995
13923
|
return false;
|
|
12996
13924
|
}
|
|
12997
13925
|
}
|
|
12998
|
-
|
|
13926
|
+
validate54.errors = vErrors;
|
|
12999
13927
|
return errors === 0;
|
|
13000
13928
|
}
|
|
13001
|
-
|
|
13002
|
-
var
|
|
13003
|
-
|
|
13004
|
-
function validate50(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
13929
|
+
validate54.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
|
|
13930
|
+
var schema101 = { "anyOf": [{ "type": "object", "properties": { "protocolVersion": { "type": "number", "const": 1 }, "mode": { "type": "string", "const": "install_intent_v1" }, "found": { "type": "boolean", "const": true }, "expiresAt": { "type": "integer", "minimum": 0, "maximum": 9007199254740991 }, "status": { "type": "string", "const": "pending" } }, "required": ["protocolVersion", "mode", "found", "expiresAt", "status"], "additionalProperties": false }, { "type": "object", "properties": { "protocolVersion": { "type": "number", "const": 1 }, "mode": { "type": "string", "const": "install_intent_v1" }, "found": { "type": "boolean", "const": true }, "expiresAt": { "type": "integer", "minimum": 0, "maximum": 9007199254740991 }, "status": { "type": "string", "const": "claimed" }, "leaseExpiresAt": { "type": "integer", "minimum": 0, "maximum": 9007199254740991 } }, "required": ["protocolVersion", "mode", "found", "expiresAt", "status", "leaseExpiresAt"], "additionalProperties": false, "x-primitive-runtime-refinements": ["claim_lease_within_intent_ttl"] }, { "type": "object", "properties": { "protocolVersion": { "type": "number", "const": 1 }, "mode": { "type": "string", "const": "install_intent_v1" }, "found": { "type": "boolean", "const": true }, "expiresAt": { "type": "integer", "minimum": 0, "maximum": 9007199254740991 }, "status": { "type": "string", "const": "consumed" }, "completedAt": { "type": "integer", "minimum": 0, "maximum": 9007199254740991 }, "repositoryCount": { "type": "integer", "minimum": 1, "maximum": 256 }, "adminRepositoryCount": { "type": "integer", "minimum": 1, "maximum": 128 }, "nonAdminRepositoryCount": { "type": "integer", "minimum": 0, "maximum": 256 } }, "required": ["protocolVersion", "mode", "found", "expiresAt", "status", "completedAt", "repositoryCount", "adminRepositoryCount", "nonAdminRepositoryCount"], "additionalProperties": false, "x-primitive-runtime-refinements": ["repository_count_partition", "completion_within_intent_ttl"] }, { "type": "object", "properties": { "protocolVersion": { "type": "number", "const": 1 }, "mode": { "type": "string", "const": "install_intent_v1" }, "found": { "type": "boolean", "const": true }, "expiresAt": { "type": "integer", "minimum": 0, "maximum": 9007199254740991 }, "status": { "type": "string", "const": "expired" }, "closedAt": { "type": "integer", "minimum": 0, "maximum": 9007199254740991 } }, "required": ["protocolVersion", "mode", "found", "expiresAt", "status", "closedAt"], "additionalProperties": false, "x-primitive-runtime-refinements": ["expiry_not_before_intent_ttl"] }, { "type": "object", "properties": { "protocolVersion": { "type": "number", "const": 1 }, "mode": { "type": "string", "const": "install_intent_v1" }, "found": { "type": "boolean", "const": true }, "expiresAt": { "type": "integer", "minimum": 0, "maximum": 9007199254740991 }, "status": { "type": "string", "const": "cancelled" }, "closedAt": { "type": "integer", "minimum": 0, "maximum": 9007199254740991 } }, "required": ["protocolVersion", "mode", "found", "expiresAt", "status", "closedAt"], "additionalProperties": false, "x-primitive-runtime-refinements": ["cancellation_within_intent_ttl"] }, { "type": "object", "properties": { "protocolVersion": { "type": "number", "const": 1 }, "mode": { "type": "string", "const": "install_intent_v1" }, "found": { "type": "boolean", "const": true }, "expiresAt": { "type": "integer", "minimum": 0, "maximum": 9007199254740991 }, "status": { "type": "string", "const": "failed_terminal" }, "closedAt": { "type": "integer", "minimum": 0, "maximum": 9007199254740991 }, "failureCode": { "type": "string", "enum": ["claim_lease_expired", "authority_changed", "oauth_exchange_failed", "installation_not_administered", "repository_enumeration_failed", "repository_bound_exceeded", "installation_changed", "repository_identity_migration_required", "proof_commit_failed"] } }, "required": ["protocolVersion", "mode", "found", "expiresAt", "status", "closedAt", "failureCode"], "additionalProperties": false, "x-primitive-runtime-refinements": ["terminal_failure_within_intent_ttl_except_claim_lease_expired"] }] };
|
|
13931
|
+
function validate55(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
13005
13932
|
;
|
|
13006
13933
|
let vErrors = null;
|
|
13007
13934
|
let errors = 0;
|
|
13008
|
-
const evaluated0 =
|
|
13935
|
+
const evaluated0 = validate55.evaluated;
|
|
13009
13936
|
if (evaluated0.dynamicProps) {
|
|
13010
13937
|
evaluated0.props = void 0;
|
|
13011
13938
|
}
|
|
@@ -13454,7 +14381,7 @@ function validate50(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
13454
14381
|
} else {
|
|
13455
14382
|
const _errs34 = errors;
|
|
13456
14383
|
for (const key2 in data) {
|
|
13457
|
-
if (!
|
|
14384
|
+
if (!func34.call(schema101.anyOf[2].properties, key2)) {
|
|
13458
14385
|
const err32 = { instancePath, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/GitHubInstallIntentStatusResponse/anyOf/2/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key2 }, message: "must NOT have additional properties" };
|
|
13459
14386
|
if (vErrors === null) {
|
|
13460
14387
|
vErrors = [err32];
|
|
@@ -14488,7 +15415,7 @@ function validate50(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
14488
15415
|
errors++;
|
|
14489
15416
|
}
|
|
14490
15417
|
if (!(data38 === "claim_lease_expired" || data38 === "authority_changed" || data38 === "oauth_exchange_failed" || data38 === "installation_not_administered" || data38 === "repository_enumeration_failed" || data38 === "repository_bound_exceeded" || data38 === "installation_changed" || data38 === "repository_identity_migration_required" || data38 === "proof_commit_failed")) {
|
|
14491
|
-
const err108 = { instancePath: instancePath + "/failureCode", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/GitHubInstallIntentStatusResponse/anyOf/5/properties/failureCode/enum", keyword: "enum", params: { allowedValues:
|
|
15418
|
+
const err108 = { instancePath: instancePath + "/failureCode", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/GitHubInstallIntentStatusResponse/anyOf/5/properties/failureCode/enum", keyword: "enum", params: { allowedValues: schema101.anyOf[5].properties.failureCode.enum }, message: "must be equal to one of the allowed values" };
|
|
14492
15419
|
if (vErrors === null) {
|
|
14493
15420
|
vErrors = [err108];
|
|
14494
15421
|
} else {
|
|
@@ -14533,7 +15460,7 @@ function validate50(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
14533
15460
|
vErrors.push(err110);
|
|
14534
15461
|
}
|
|
14535
15462
|
errors++;
|
|
14536
|
-
|
|
15463
|
+
validate55.errors = vErrors;
|
|
14537
15464
|
return false;
|
|
14538
15465
|
} else {
|
|
14539
15466
|
errors = _errs1;
|
|
@@ -14545,18 +15472,18 @@ function validate50(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
14545
15472
|
}
|
|
14546
15473
|
}
|
|
14547
15474
|
}
|
|
14548
|
-
|
|
15475
|
+
validate55.errors = vErrors;
|
|
14549
15476
|
evaluated0.props = props0;
|
|
14550
15477
|
return errors === 0;
|
|
14551
15478
|
}
|
|
14552
|
-
|
|
14553
|
-
var
|
|
14554
|
-
var
|
|
14555
|
-
function
|
|
15479
|
+
validate55.evaluated = { "dynamicProps": true, "dynamicItems": false };
|
|
15480
|
+
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 pattern17 = new RegExp("^[A-Za-z0-9_-]+$", "u");
|
|
15482
|
+
function validate56(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
14556
15483
|
;
|
|
14557
15484
|
let vErrors = null;
|
|
14558
15485
|
let errors = 0;
|
|
14559
|
-
const evaluated0 =
|
|
15486
|
+
const evaluated0 = validate56.evaluated;
|
|
14560
15487
|
if (evaluated0.dynamicProps) {
|
|
14561
15488
|
evaluated0.props = void 0;
|
|
14562
15489
|
}
|
|
@@ -14568,7 +15495,7 @@ function validate51(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
14568
15495
|
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
14569
15496
|
let missing0;
|
|
14570
15497
|
if (data.batch === void 0 && (missing0 = "batch")) {
|
|
14571
|
-
|
|
15498
|
+
validate56.errors = [{ instancePath, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/MoveIngestRequest/required", keyword: "required", params: { missingProperty: missing0 }, message: "must have required property '" + missing0 + "'" }];
|
|
14572
15499
|
return false;
|
|
14573
15500
|
} else {
|
|
14574
15501
|
if (data.batch !== void 0) {
|
|
@@ -14912,7 +15839,7 @@ function validate51(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
14912
15839
|
}
|
|
14913
15840
|
errors++;
|
|
14914
15841
|
} else {
|
|
14915
|
-
if (!
|
|
15842
|
+
if (!pattern17.test(data11)) {
|
|
14916
15843
|
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_-]+$"' };
|
|
14917
15844
|
if (vErrors === null) {
|
|
14918
15845
|
vErrors = [err22];
|
|
@@ -14951,7 +15878,7 @@ function validate51(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
14951
15878
|
errors++;
|
|
14952
15879
|
}
|
|
14953
15880
|
if (!(data12 === "workos" || data12 === "service_token")) {
|
|
14954
|
-
const err25 = { instancePath: instancePath + "/batch/" + i0 + "/captureAuthorityKind", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/MoveIngestRequest/properties/batch/items/anyOf/0/properties/captureAuthorityKind/enum", keyword: "enum", params: { allowedValues:
|
|
15881
|
+
const err25 = { instancePath: instancePath + "/batch/" + i0 + "/captureAuthorityKind", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/MoveIngestRequest/properties/batch/items/anyOf/0/properties/captureAuthorityKind/enum", keyword: "enum", params: { allowedValues: schema103.properties.batch.items.anyOf[0].properties.captureAuthorityKind.enum }, message: "must be equal to one of the allowed values" };
|
|
14955
15882
|
if (vErrors === null) {
|
|
14956
15883
|
vErrors = [err25];
|
|
14957
15884
|
} else {
|
|
@@ -15017,7 +15944,7 @@ function validate51(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
15017
15944
|
errors++;
|
|
15018
15945
|
}
|
|
15019
15946
|
if (!(data14 === "claude_code" || data14 === "codex" || data14 === "cursor" || data14 === "hermes")) {
|
|
15020
|
-
const err30 = { instancePath: instancePath + "/batch/" + i0 + "/producer", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/MoveIngestRequest/properties/batch/items/anyOf/0/properties/producer/enum", keyword: "enum", params: { allowedValues:
|
|
15947
|
+
const err30 = { instancePath: instancePath + "/batch/" + i0 + "/producer", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/MoveIngestRequest/properties/batch/items/anyOf/0/properties/producer/enum", keyword: "enum", params: { allowedValues: schema103.properties.batch.items.anyOf[0].properties.producer.enum }, message: "must be equal to one of the allowed values" };
|
|
15021
15948
|
if (vErrors === null) {
|
|
15022
15949
|
vErrors = [err30];
|
|
15023
15950
|
} else {
|
|
@@ -15043,7 +15970,7 @@ function validate51(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
15043
15970
|
errors++;
|
|
15044
15971
|
}
|
|
15045
15972
|
if (!(data15 === "succeeded" || data15 === "returned" || data15 === "failed" || data15 === "interrupted" || data15 === "prevented" || data15 === "unknown")) {
|
|
15046
|
-
const err32 = { instancePath: instancePath + "/batch/" + i0 + "/toolOutcome", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/MoveIngestRequest/properties/batch/items/anyOf/0/properties/toolOutcome/enum", keyword: "enum", params: { allowedValues:
|
|
15973
|
+
const err32 = { instancePath: instancePath + "/batch/" + i0 + "/toolOutcome", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/MoveIngestRequest/properties/batch/items/anyOf/0/properties/toolOutcome/enum", keyword: "enum", params: { allowedValues: schema103.properties.batch.items.anyOf[0].properties.toolOutcome.enum }, message: "must be equal to one of the allowed values" };
|
|
15047
15974
|
if (vErrors === null) {
|
|
15048
15975
|
vErrors = [err32];
|
|
15049
15976
|
} else {
|
|
@@ -15437,7 +16364,7 @@ function validate51(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
15437
16364
|
}
|
|
15438
16365
|
errors++;
|
|
15439
16366
|
} else {
|
|
15440
|
-
if (!
|
|
16367
|
+
if (!pattern17.test(data26)) {
|
|
15441
16368
|
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_-]+$"' };
|
|
15442
16369
|
if (vErrors === null) {
|
|
15443
16370
|
vErrors = [err58];
|
|
@@ -15476,7 +16403,7 @@ function validate51(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
15476
16403
|
errors++;
|
|
15477
16404
|
}
|
|
15478
16405
|
if (!(data27 === "workos" || data27 === "service_token")) {
|
|
15479
|
-
const err61 = { instancePath: instancePath + "/batch/" + i0 + "/captureAuthorityKind", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/MoveIngestRequest/properties/batch/items/anyOf/1/properties/captureAuthorityKind/enum", keyword: "enum", params: { allowedValues:
|
|
16406
|
+
const err61 = { instancePath: instancePath + "/batch/" + i0 + "/captureAuthorityKind", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/MoveIngestRequest/properties/batch/items/anyOf/1/properties/captureAuthorityKind/enum", keyword: "enum", params: { allowedValues: schema103.properties.batch.items.anyOf[1].properties.captureAuthorityKind.enum }, message: "must be equal to one of the allowed values" };
|
|
15480
16407
|
if (vErrors === null) {
|
|
15481
16408
|
vErrors = [err61];
|
|
15482
16409
|
} else {
|
|
@@ -15542,7 +16469,7 @@ function validate51(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
15542
16469
|
errors++;
|
|
15543
16470
|
}
|
|
15544
16471
|
if (!(data29 === "claude_code" || data29 === "codex" || data29 === "cursor" || data29 === "hermes")) {
|
|
15545
|
-
const err66 = { instancePath: instancePath + "/batch/" + i0 + "/producer", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/MoveIngestRequest/properties/batch/items/anyOf/1/properties/producer/enum", keyword: "enum", params: { allowedValues:
|
|
16472
|
+
const err66 = { instancePath: instancePath + "/batch/" + i0 + "/producer", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/MoveIngestRequest/properties/batch/items/anyOf/1/properties/producer/enum", keyword: "enum", params: { allowedValues: schema103.properties.batch.items.anyOf[1].properties.producer.enum }, message: "must be equal to one of the allowed values" };
|
|
15546
16473
|
if (vErrors === null) {
|
|
15547
16474
|
vErrors = [err66];
|
|
15548
16475
|
} else {
|
|
@@ -15568,7 +16495,7 @@ function validate51(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
15568
16495
|
errors++;
|
|
15569
16496
|
}
|
|
15570
16497
|
if (!(data30 === "succeeded" || data30 === "returned" || data30 === "failed" || data30 === "interrupted" || data30 === "prevented" || data30 === "unknown")) {
|
|
15571
|
-
const err68 = { instancePath: instancePath + "/batch/" + i0 + "/toolOutcome", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/MoveIngestRequest/properties/batch/items/anyOf/1/properties/toolOutcome/enum", keyword: "enum", params: { allowedValues:
|
|
16498
|
+
const err68 = { instancePath: instancePath + "/batch/" + i0 + "/toolOutcome", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/MoveIngestRequest/properties/batch/items/anyOf/1/properties/toolOutcome/enum", keyword: "enum", params: { allowedValues: schema103.properties.batch.items.anyOf[1].properties.toolOutcome.enum }, message: "must be equal to one of the allowed values" };
|
|
15572
16499
|
if (vErrors === null) {
|
|
15573
16500
|
vErrors = [err68];
|
|
15574
16501
|
} else {
|
|
@@ -15646,7 +16573,7 @@ function validate51(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
15646
16573
|
vErrors.push(err72);
|
|
15647
16574
|
}
|
|
15648
16575
|
errors++;
|
|
15649
|
-
|
|
16576
|
+
validate56.errors = vErrors;
|
|
15650
16577
|
return false;
|
|
15651
16578
|
} else {
|
|
15652
16579
|
errors = _errs6;
|
|
@@ -15664,31 +16591,31 @@ function validate51(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
15664
16591
|
}
|
|
15665
16592
|
}
|
|
15666
16593
|
} else {
|
|
15667
|
-
|
|
16594
|
+
validate56.errors = [{ instancePath: instancePath + "/batch", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/MoveIngestRequest/properties/batch/type", keyword: "type", params: { type: "array" }, message: "must be array" }];
|
|
15668
16595
|
return false;
|
|
15669
16596
|
}
|
|
15670
16597
|
}
|
|
15671
16598
|
}
|
|
15672
16599
|
}
|
|
15673
16600
|
} else {
|
|
15674
|
-
|
|
16601
|
+
validate56.errors = [{ instancePath, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/MoveIngestRequest/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
|
|
15675
16602
|
return false;
|
|
15676
16603
|
}
|
|
15677
16604
|
}
|
|
15678
|
-
|
|
16605
|
+
validate56.errors = vErrors;
|
|
15679
16606
|
return errors === 0;
|
|
15680
16607
|
}
|
|
15681
|
-
|
|
15682
|
-
var
|
|
15683
|
-
var
|
|
15684
|
-
var
|
|
15685
|
-
var
|
|
15686
|
-
var
|
|
15687
|
-
function
|
|
16608
|
+
validate56.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
|
|
16609
|
+
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 pattern19 = new RegExp("^[A-Za-z0-9._:-]{1,128}$", "u");
|
|
16611
|
+
var pattern21 = new RegExp("^[A-Za-z0-9]{1,64}$", "u");
|
|
16612
|
+
var pattern22 = new RegExp("^(?!@?$)(?!\\/)(?!.*\\/$)(?!.*\\/\\/)(?!.*(?:^|\\/)\\.{1,2}(?:\\/|$))(?!.*(?:^|\\/)[^/]*\\.lock(?:\\/|$))(?!.*\\.\\.)(?!.*@\\{)(?!.*[~^:?*\\\\]).+$", "u");
|
|
16613
|
+
var pattern23 = new RegExp("^[A-Za-z0-9][A-Za-z0-9._+-]*$", "u");
|
|
16614
|
+
function validate57(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
15688
16615
|
;
|
|
15689
16616
|
let vErrors = null;
|
|
15690
16617
|
let errors = 0;
|
|
15691
|
-
const evaluated0 =
|
|
16618
|
+
const evaluated0 = validate57.evaluated;
|
|
15692
16619
|
if (evaluated0.dynamicProps) {
|
|
15693
16620
|
evaluated0.props = void 0;
|
|
15694
16621
|
}
|
|
@@ -15700,13 +16627,13 @@ function validate52(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
15700
16627
|
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
15701
16628
|
let missing0;
|
|
15702
16629
|
if (data.protocolVersion === void 0 && (missing0 = "protocolVersion") || data.agent === void 0 && (missing0 = "agent") || data.sessionId === void 0 && (missing0 = "sessionId") || data.invocationId === void 0 && (missing0 = "invocationId") || data.repoSyncId === void 0 && (missing0 = "repoSyncId") || data.paths === void 0 && (missing0 = "paths") || data.coverage === void 0 && (missing0 = "coverage") || data.proposal === void 0 && (missing0 = "proposal")) {
|
|
15703
|
-
|
|
16630
|
+
validate57.errors = [{ instancePath, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/PreflightRequestV3/required", keyword: "required", params: { missingProperty: missing0 }, message: "must have required property '" + missing0 + "'" }];
|
|
15704
16631
|
return false;
|
|
15705
16632
|
} else {
|
|
15706
16633
|
const _errs3 = errors;
|
|
15707
16634
|
for (const key0 in data) {
|
|
15708
|
-
if (!
|
|
15709
|
-
|
|
16635
|
+
if (!func34.call(schema105.properties, key0)) {
|
|
16636
|
+
validate57.errors = [{ instancePath, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/PreflightRequestV3/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key0 }, message: "must NOT have additional properties" }];
|
|
15710
16637
|
return false;
|
|
15711
16638
|
break;
|
|
15712
16639
|
}
|
|
@@ -15716,11 +16643,11 @@ function validate52(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
15716
16643
|
let data0 = data.protocolVersion;
|
|
15717
16644
|
const _errs4 = errors;
|
|
15718
16645
|
if (!(typeof data0 == "number" && isFinite(data0))) {
|
|
15719
|
-
|
|
16646
|
+
validate57.errors = [{ instancePath: instancePath + "/protocolVersion", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/PreflightRequestV3/properties/protocolVersion/type", keyword: "type", params: { type: "number" }, message: "must be number" }];
|
|
15720
16647
|
return false;
|
|
15721
16648
|
}
|
|
15722
16649
|
if (3 !== data0) {
|
|
15723
|
-
|
|
16650
|
+
validate57.errors = [{ instancePath: instancePath + "/protocolVersion", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/PreflightRequestV3/properties/protocolVersion/const", keyword: "const", params: { allowedValue: 3 }, message: "must be equal to constant" }];
|
|
15724
16651
|
return false;
|
|
15725
16652
|
}
|
|
15726
16653
|
var valid1 = _errs4 === errors;
|
|
@@ -15732,11 +16659,11 @@ function validate52(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
15732
16659
|
let data1 = data.agent;
|
|
15733
16660
|
const _errs6 = errors;
|
|
15734
16661
|
if (typeof data1 !== "string") {
|
|
15735
|
-
|
|
16662
|
+
validate57.errors = [{ instancePath: instancePath + "/agent", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/PreflightRequestV3/properties/agent/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
15736
16663
|
return false;
|
|
15737
16664
|
}
|
|
15738
16665
|
if (!(data1 === "claude_code" || data1 === "codex" || data1 === "cursor" || data1 === "hermes")) {
|
|
15739
|
-
|
|
16666
|
+
validate57.errors = [{ instancePath: instancePath + "/agent", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/PreflightRequestV3/properties/agent/enum", keyword: "enum", params: { allowedValues: schema105.properties.agent.enum }, message: "must be equal to one of the allowed values" }];
|
|
15740
16667
|
return false;
|
|
15741
16668
|
}
|
|
15742
16669
|
var valid1 = _errs6 === errors;
|
|
@@ -15749,12 +16676,12 @@ function validate52(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
15749
16676
|
const _errs8 = errors;
|
|
15750
16677
|
if (errors === _errs8) {
|
|
15751
16678
|
if (typeof data2 === "string") {
|
|
15752
|
-
if (!
|
|
15753
|
-
|
|
16679
|
+
if (!pattern19.test(data2)) {
|
|
16680
|
+
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}$"' }];
|
|
15754
16681
|
return false;
|
|
15755
16682
|
}
|
|
15756
16683
|
} else {
|
|
15757
|
-
|
|
16684
|
+
validate57.errors = [{ instancePath: instancePath + "/sessionId", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/PreflightRequestV3/properties/sessionId/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
15758
16685
|
return false;
|
|
15759
16686
|
}
|
|
15760
16687
|
}
|
|
@@ -15768,12 +16695,12 @@ function validate52(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
15768
16695
|
const _errs10 = errors;
|
|
15769
16696
|
if (errors === _errs10) {
|
|
15770
16697
|
if (typeof data3 === "string") {
|
|
15771
|
-
if (!
|
|
15772
|
-
|
|
16698
|
+
if (!pattern19.test(data3)) {
|
|
16699
|
+
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}$"' }];
|
|
15773
16700
|
return false;
|
|
15774
16701
|
}
|
|
15775
16702
|
} else {
|
|
15776
|
-
|
|
16703
|
+
validate57.errors = [{ instancePath: instancePath + "/invocationId", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/PreflightRequestV3/properties/invocationId/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
15777
16704
|
return false;
|
|
15778
16705
|
}
|
|
15779
16706
|
}
|
|
@@ -15787,12 +16714,12 @@ function validate52(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
15787
16714
|
const _errs12 = errors;
|
|
15788
16715
|
if (errors === _errs12) {
|
|
15789
16716
|
if (typeof data4 === "string") {
|
|
15790
|
-
if (!
|
|
15791
|
-
|
|
16717
|
+
if (!pattern21.test(data4)) {
|
|
16718
|
+
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}$"' }];
|
|
15792
16719
|
return false;
|
|
15793
16720
|
}
|
|
15794
16721
|
} else {
|
|
15795
|
-
|
|
16722
|
+
validate57.errors = [{ instancePath: instancePath + "/repoSyncId", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/PreflightRequestV3/properties/repoSyncId/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
15796
16723
|
return false;
|
|
15797
16724
|
}
|
|
15798
16725
|
}
|
|
@@ -15807,7 +16734,7 @@ function validate52(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
15807
16734
|
if (errors === _errs14) {
|
|
15808
16735
|
if (Array.isArray(data5)) {
|
|
15809
16736
|
if (data5.length > 32) {
|
|
15810
|
-
|
|
16737
|
+
validate57.errors = [{ instancePath: instancePath + "/paths", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/PreflightRequestV3/properties/paths/maxItems", keyword: "maxItems", params: { limit: 32 }, message: "must NOT have more than 32 items" }];
|
|
15811
16738
|
return false;
|
|
15812
16739
|
} else {
|
|
15813
16740
|
var valid2 = true;
|
|
@@ -15815,7 +16742,7 @@ function validate52(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
15815
16742
|
for (let i0 = 0; i0 < len0; i0++) {
|
|
15816
16743
|
const _errs16 = errors;
|
|
15817
16744
|
if (typeof data5[i0] !== "string") {
|
|
15818
|
-
|
|
16745
|
+
validate57.errors = [{ instancePath: instancePath + "/paths/" + i0, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/PreflightRequestV3/properties/paths/items/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
15819
16746
|
return false;
|
|
15820
16747
|
}
|
|
15821
16748
|
var valid2 = _errs16 === errors;
|
|
@@ -15825,7 +16752,7 @@ function validate52(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
15825
16752
|
}
|
|
15826
16753
|
}
|
|
15827
16754
|
} else {
|
|
15828
|
-
|
|
16755
|
+
validate57.errors = [{ instancePath: instancePath + "/paths", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/PreflightRequestV3/properties/paths/type", keyword: "type", params: { type: "array" }, message: "must be array" }];
|
|
15829
16756
|
return false;
|
|
15830
16757
|
}
|
|
15831
16758
|
}
|
|
@@ -15838,11 +16765,11 @@ function validate52(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
15838
16765
|
let data7 = data.coverage;
|
|
15839
16766
|
const _errs18 = errors;
|
|
15840
16767
|
if (typeof data7 !== "string") {
|
|
15841
|
-
|
|
16768
|
+
validate57.errors = [{ instancePath: instancePath + "/coverage", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/PreflightRequestV3/properties/coverage/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
15842
16769
|
return false;
|
|
15843
16770
|
}
|
|
15844
16771
|
if (!(data7 === "complete" || data7 === "unverified")) {
|
|
15845
|
-
|
|
16772
|
+
validate57.errors = [{ instancePath: instancePath + "/coverage", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/PreflightRequestV3/properties/coverage/enum", keyword: "enum", params: { allowedValues: schema105.properties.coverage.enum }, message: "must be equal to one of the allowed values" }];
|
|
15846
16773
|
return false;
|
|
15847
16774
|
}
|
|
15848
16775
|
var valid1 = _errs18 === errors;
|
|
@@ -15856,16 +16783,16 @@ function validate52(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
15856
16783
|
if (errors === _errs20) {
|
|
15857
16784
|
if (typeof data8 === "string") {
|
|
15858
16785
|
if (func1(data8) > 255) {
|
|
15859
|
-
|
|
16786
|
+
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" }];
|
|
15860
16787
|
return false;
|
|
15861
16788
|
} else {
|
|
15862
|
-
if (!
|
|
15863
|
-
|
|
16789
|
+
if (!pattern22.test(data8)) {
|
|
16790
|
+
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(?:\\/|$))(?!.*\\.\\.)(?!.*@\\{)(?!.*[~^:?*\\\\]).+$"' }];
|
|
15864
16791
|
return false;
|
|
15865
16792
|
}
|
|
15866
16793
|
}
|
|
15867
16794
|
} else {
|
|
15868
|
-
|
|
16795
|
+
validate57.errors = [{ instancePath: instancePath + "/branch", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/PreflightRequestV3/properties/branch/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
15869
16796
|
return false;
|
|
15870
16797
|
}
|
|
15871
16798
|
}
|
|
@@ -15878,11 +16805,11 @@ function validate52(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
15878
16805
|
let data9 = data.clientMode;
|
|
15879
16806
|
const _errs22 = errors;
|
|
15880
16807
|
if (typeof data9 !== "string") {
|
|
15881
|
-
|
|
16808
|
+
validate57.errors = [{ instancePath: instancePath + "/clientMode", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/PreflightRequestV3/properties/clientMode/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
15882
16809
|
return false;
|
|
15883
16810
|
}
|
|
15884
16811
|
if (!(data9 === "block" || data9 === "warn")) {
|
|
15885
|
-
|
|
16812
|
+
validate57.errors = [{ instancePath: instancePath + "/clientMode", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/PreflightRequestV3/properties/clientMode/enum", keyword: "enum", params: { allowedValues: schema105.properties.clientMode.enum }, message: "must be equal to one of the allowed values" }];
|
|
15886
16813
|
return false;
|
|
15887
16814
|
}
|
|
15888
16815
|
var valid1 = _errs22 === errors;
|
|
@@ -15896,16 +16823,16 @@ function validate52(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
15896
16823
|
if (errors === _errs24) {
|
|
15897
16824
|
if (typeof data10 === "string") {
|
|
15898
16825
|
if (func1(data10) > 32) {
|
|
15899
|
-
|
|
16826
|
+
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" }];
|
|
15900
16827
|
return false;
|
|
15901
16828
|
} else {
|
|
15902
|
-
if (!
|
|
15903
|
-
|
|
16829
|
+
if (!pattern23.test(data10)) {
|
|
16830
|
+
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._+-]*$"' }];
|
|
15904
16831
|
return false;
|
|
15905
16832
|
}
|
|
15906
16833
|
}
|
|
15907
16834
|
} else {
|
|
15908
|
-
|
|
16835
|
+
validate57.errors = [{ instancePath: instancePath + "/clientVersion", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/PreflightRequestV3/properties/clientVersion/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
15909
16836
|
return false;
|
|
15910
16837
|
}
|
|
15911
16838
|
}
|
|
@@ -15917,7 +16844,7 @@ function validate52(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
15917
16844
|
if (data.proposal !== void 0) {
|
|
15918
16845
|
const _errs26 = errors;
|
|
15919
16846
|
if (typeof data.proposal !== "string") {
|
|
15920
|
-
|
|
16847
|
+
validate57.errors = [{ instancePath: instancePath + "/proposal", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/PreflightRequestV3/properties/proposal/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
15921
16848
|
return false;
|
|
15922
16849
|
}
|
|
15923
16850
|
var valid1 = _errs26 === errors;
|
|
@@ -15937,20 +16864,20 @@ function validate52(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
15937
16864
|
}
|
|
15938
16865
|
}
|
|
15939
16866
|
} else {
|
|
15940
|
-
|
|
16867
|
+
validate57.errors = [{ instancePath, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/PreflightRequestV3/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
|
|
15941
16868
|
return false;
|
|
15942
16869
|
}
|
|
15943
16870
|
}
|
|
15944
|
-
|
|
16871
|
+
validate57.errors = vErrors;
|
|
15945
16872
|
return errors === 0;
|
|
15946
16873
|
}
|
|
15947
|
-
|
|
15948
|
-
var
|
|
15949
|
-
function
|
|
16874
|
+
validate57.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
|
|
16875
|
+
var schema107 = { "type": "object", "properties": { "protocolVersion": { "type": "number", "const": 3 }, "checkId": { "type": "string", "pattern": "^[A-Za-z0-9._:-]{1,128}$" }, "verdict": { "type": "string", "enum": ["allow", "warn", "ask", "block", "unavailable"] }, "reasonCode": { "type": "string" }, "message": { "type": "string" }, "conflicts": { "type": "array", "items": { "type": "object", "properties": { "decisionId": { "type": "string" }, "shortId": { "type": "string" } }, "required": ["decisionId"], "additionalProperties": {} } }, "bypassed": { "type": "array", "items": { "type": "object", "properties": { "decisionId": { "type": "string" }, "bypassId": { "type": "string" }, "shortId": { "type": "string" } }, "required": ["decisionId"], "additionalProperties": {} } }, "decisionDisclosures": { "minItems": 1, "maxItems": 16, "type": "array", "items": { "type": "object", "properties": { "decisionId": { "type": "string" }, "shortId": { "type": "string" }, "participation": { "type": "string", "enum": ["candidate", "reconcile_bypass"] } }, "required": ["decisionId", "shortId", "participation"], "additionalProperties": false } } }, "required": ["protocolVersion", "verdict", "reasonCode", "message", "conflicts", "bypassed"], "additionalProperties": {} };
|
|
16876
|
+
function validate58(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
15950
16877
|
;
|
|
15951
16878
|
let vErrors = null;
|
|
15952
16879
|
let errors = 0;
|
|
15953
|
-
const evaluated0 =
|
|
16880
|
+
const evaluated0 = validate58.evaluated;
|
|
15954
16881
|
if (evaluated0.dynamicProps) {
|
|
15955
16882
|
evaluated0.props = void 0;
|
|
15956
16883
|
}
|
|
@@ -15962,18 +16889,18 @@ function validate53(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
15962
16889
|
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
15963
16890
|
let missing0;
|
|
15964
16891
|
if (data.protocolVersion === void 0 && (missing0 = "protocolVersion") || data.verdict === void 0 && (missing0 = "verdict") || data.reasonCode === void 0 && (missing0 = "reasonCode") || data.message === void 0 && (missing0 = "message") || data.conflicts === void 0 && (missing0 = "conflicts") || data.bypassed === void 0 && (missing0 = "bypassed")) {
|
|
15965
|
-
|
|
16892
|
+
validate58.errors = [{ instancePath, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/PreflightResponseV3/required", keyword: "required", params: { missingProperty: missing0 }, message: "must have required property '" + missing0 + "'" }];
|
|
15966
16893
|
return false;
|
|
15967
16894
|
} else {
|
|
15968
16895
|
if (data.protocolVersion !== void 0) {
|
|
15969
16896
|
let data0 = data.protocolVersion;
|
|
15970
16897
|
const _errs3 = errors;
|
|
15971
16898
|
if (!(typeof data0 == "number" && isFinite(data0))) {
|
|
15972
|
-
|
|
16899
|
+
validate58.errors = [{ instancePath: instancePath + "/protocolVersion", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/PreflightResponseV3/properties/protocolVersion/type", keyword: "type", params: { type: "number" }, message: "must be number" }];
|
|
15973
16900
|
return false;
|
|
15974
16901
|
}
|
|
15975
16902
|
if (3 !== data0) {
|
|
15976
|
-
|
|
16903
|
+
validate58.errors = [{ instancePath: instancePath + "/protocolVersion", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/PreflightResponseV3/properties/protocolVersion/const", keyword: "const", params: { allowedValue: 3 }, message: "must be equal to constant" }];
|
|
15977
16904
|
return false;
|
|
15978
16905
|
}
|
|
15979
16906
|
var valid1 = _errs3 === errors;
|
|
@@ -15986,12 +16913,12 @@ function validate53(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
15986
16913
|
const _errs5 = errors;
|
|
15987
16914
|
if (errors === _errs5) {
|
|
15988
16915
|
if (typeof data1 === "string") {
|
|
15989
|
-
if (!
|
|
15990
|
-
|
|
16916
|
+
if (!pattern19.test(data1)) {
|
|
16917
|
+
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}$"' }];
|
|
15991
16918
|
return false;
|
|
15992
16919
|
}
|
|
15993
16920
|
} else {
|
|
15994
|
-
|
|
16921
|
+
validate58.errors = [{ instancePath: instancePath + "/checkId", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/PreflightResponseV3/properties/checkId/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
15995
16922
|
return false;
|
|
15996
16923
|
}
|
|
15997
16924
|
}
|
|
@@ -16004,11 +16931,11 @@ function validate53(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
16004
16931
|
let data2 = data.verdict;
|
|
16005
16932
|
const _errs7 = errors;
|
|
16006
16933
|
if (typeof data2 !== "string") {
|
|
16007
|
-
|
|
16934
|
+
validate58.errors = [{ instancePath: instancePath + "/verdict", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/PreflightResponseV3/properties/verdict/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
16008
16935
|
return false;
|
|
16009
16936
|
}
|
|
16010
16937
|
if (!(data2 === "allow" || data2 === "warn" || data2 === "ask" || data2 === "block" || data2 === "unavailable")) {
|
|
16011
|
-
|
|
16938
|
+
validate58.errors = [{ instancePath: instancePath + "/verdict", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/PreflightResponseV3/properties/verdict/enum", keyword: "enum", params: { allowedValues: schema107.properties.verdict.enum }, message: "must be equal to one of the allowed values" }];
|
|
16012
16939
|
return false;
|
|
16013
16940
|
}
|
|
16014
16941
|
var valid1 = _errs7 === errors;
|
|
@@ -16019,7 +16946,7 @@ function validate53(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
16019
16946
|
if (data.reasonCode !== void 0) {
|
|
16020
16947
|
const _errs9 = errors;
|
|
16021
16948
|
if (typeof data.reasonCode !== "string") {
|
|
16022
|
-
|
|
16949
|
+
validate58.errors = [{ instancePath: instancePath + "/reasonCode", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/PreflightResponseV3/properties/reasonCode/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
16023
16950
|
return false;
|
|
16024
16951
|
}
|
|
16025
16952
|
var valid1 = _errs9 === errors;
|
|
@@ -16030,7 +16957,7 @@ function validate53(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
16030
16957
|
if (data.message !== void 0) {
|
|
16031
16958
|
const _errs11 = errors;
|
|
16032
16959
|
if (typeof data.message !== "string") {
|
|
16033
|
-
|
|
16960
|
+
validate58.errors = [{ instancePath: instancePath + "/message", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/PreflightResponseV3/properties/message/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
16034
16961
|
return false;
|
|
16035
16962
|
}
|
|
16036
16963
|
var valid1 = _errs11 === errors;
|
|
@@ -16052,13 +16979,13 @@ function validate53(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
16052
16979
|
if (data6 && typeof data6 == "object" && !Array.isArray(data6)) {
|
|
16053
16980
|
let missing1;
|
|
16054
16981
|
if (data6.decisionId === void 0 && (missing1 = "decisionId")) {
|
|
16055
|
-
|
|
16982
|
+
validate58.errors = [{ instancePath: instancePath + "/conflicts/" + i0, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/PreflightResponseV3/properties/conflicts/items/required", keyword: "required", params: { missingProperty: missing1 }, message: "must have required property '" + missing1 + "'" }];
|
|
16056
16983
|
return false;
|
|
16057
16984
|
} else {
|
|
16058
16985
|
if (data6.decisionId !== void 0) {
|
|
16059
16986
|
const _errs18 = errors;
|
|
16060
16987
|
if (typeof data6.decisionId !== "string") {
|
|
16061
|
-
|
|
16988
|
+
validate58.errors = [{ instancePath: instancePath + "/conflicts/" + i0 + "/decisionId", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/PreflightResponseV3/properties/conflicts/items/properties/decisionId/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
16062
16989
|
return false;
|
|
16063
16990
|
}
|
|
16064
16991
|
var valid3 = _errs18 === errors;
|
|
@@ -16069,7 +16996,7 @@ function validate53(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
16069
16996
|
if (data6.shortId !== void 0) {
|
|
16070
16997
|
const _errs20 = errors;
|
|
16071
16998
|
if (typeof data6.shortId !== "string") {
|
|
16072
|
-
|
|
16999
|
+
validate58.errors = [{ instancePath: instancePath + "/conflicts/" + i0 + "/shortId", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/PreflightResponseV3/properties/conflicts/items/properties/shortId/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
16073
17000
|
return false;
|
|
16074
17001
|
}
|
|
16075
17002
|
var valid3 = _errs20 === errors;
|
|
@@ -16079,7 +17006,7 @@ function validate53(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
16079
17006
|
}
|
|
16080
17007
|
}
|
|
16081
17008
|
} else {
|
|
16082
|
-
|
|
17009
|
+
validate58.errors = [{ instancePath: instancePath + "/conflicts/" + i0, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/PreflightResponseV3/properties/conflicts/items/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
|
|
16083
17010
|
return false;
|
|
16084
17011
|
}
|
|
16085
17012
|
}
|
|
@@ -16089,7 +17016,7 @@ function validate53(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
16089
17016
|
}
|
|
16090
17017
|
}
|
|
16091
17018
|
} else {
|
|
16092
|
-
|
|
17019
|
+
validate58.errors = [{ instancePath: instancePath + "/conflicts", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/PreflightResponseV3/properties/conflicts/type", keyword: "type", params: { type: "array" }, message: "must be array" }];
|
|
16093
17020
|
return false;
|
|
16094
17021
|
}
|
|
16095
17022
|
}
|
|
@@ -16112,13 +17039,13 @@ function validate53(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
16112
17039
|
if (data10 && typeof data10 == "object" && !Array.isArray(data10)) {
|
|
16113
17040
|
let missing2;
|
|
16114
17041
|
if (data10.decisionId === void 0 && (missing2 = "decisionId")) {
|
|
16115
|
-
|
|
17042
|
+
validate58.errors = [{ instancePath: instancePath + "/bypassed/" + i1, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/PreflightResponseV3/properties/bypassed/items/required", keyword: "required", params: { missingProperty: missing2 }, message: "must have required property '" + missing2 + "'" }];
|
|
16116
17043
|
return false;
|
|
16117
17044
|
} else {
|
|
16118
17045
|
if (data10.decisionId !== void 0) {
|
|
16119
17046
|
const _errs27 = errors;
|
|
16120
17047
|
if (typeof data10.decisionId !== "string") {
|
|
16121
|
-
|
|
17048
|
+
validate58.errors = [{ instancePath: instancePath + "/bypassed/" + i1 + "/decisionId", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/PreflightResponseV3/properties/bypassed/items/properties/decisionId/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
16122
17049
|
return false;
|
|
16123
17050
|
}
|
|
16124
17051
|
var valid5 = _errs27 === errors;
|
|
@@ -16129,7 +17056,7 @@ function validate53(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
16129
17056
|
if (data10.bypassId !== void 0) {
|
|
16130
17057
|
const _errs29 = errors;
|
|
16131
17058
|
if (typeof data10.bypassId !== "string") {
|
|
16132
|
-
|
|
17059
|
+
validate58.errors = [{ instancePath: instancePath + "/bypassed/" + i1 + "/bypassId", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/PreflightResponseV3/properties/bypassed/items/properties/bypassId/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
16133
17060
|
return false;
|
|
16134
17061
|
}
|
|
16135
17062
|
var valid5 = _errs29 === errors;
|
|
@@ -16140,7 +17067,7 @@ function validate53(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
16140
17067
|
if (data10.shortId !== void 0) {
|
|
16141
17068
|
const _errs31 = errors;
|
|
16142
17069
|
if (typeof data10.shortId !== "string") {
|
|
16143
|
-
|
|
17070
|
+
validate58.errors = [{ instancePath: instancePath + "/bypassed/" + i1 + "/shortId", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/PreflightResponseV3/properties/bypassed/items/properties/shortId/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
16144
17071
|
return false;
|
|
16145
17072
|
}
|
|
16146
17073
|
var valid5 = _errs31 === errors;
|
|
@@ -16151,7 +17078,7 @@ function validate53(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
16151
17078
|
}
|
|
16152
17079
|
}
|
|
16153
17080
|
} else {
|
|
16154
|
-
|
|
17081
|
+
validate58.errors = [{ instancePath: instancePath + "/bypassed/" + i1, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/PreflightResponseV3/properties/bypassed/items/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
|
|
16155
17082
|
return false;
|
|
16156
17083
|
}
|
|
16157
17084
|
}
|
|
@@ -16161,7 +17088,7 @@ function validate53(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
16161
17088
|
}
|
|
16162
17089
|
}
|
|
16163
17090
|
} else {
|
|
16164
|
-
|
|
17091
|
+
validate58.errors = [{ instancePath: instancePath + "/bypassed", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/PreflightResponseV3/properties/bypassed/type", keyword: "type", params: { type: "array" }, message: "must be array" }];
|
|
16165
17092
|
return false;
|
|
16166
17093
|
}
|
|
16167
17094
|
}
|
|
@@ -16176,11 +17103,11 @@ function validate53(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
16176
17103
|
if (errors === _errs33) {
|
|
16177
17104
|
if (Array.isArray(data14)) {
|
|
16178
17105
|
if (data14.length > 16) {
|
|
16179
|
-
|
|
17106
|
+
validate58.errors = [{ instancePath: instancePath + "/decisionDisclosures", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/PreflightResponseV3/properties/decisionDisclosures/maxItems", keyword: "maxItems", params: { limit: 16 }, message: "must NOT have more than 16 items" }];
|
|
16180
17107
|
return false;
|
|
16181
17108
|
} else {
|
|
16182
17109
|
if (data14.length < 1) {
|
|
16183
|
-
|
|
17110
|
+
validate58.errors = [{ instancePath: instancePath + "/decisionDisclosures", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/PreflightResponseV3/properties/decisionDisclosures/minItems", keyword: "minItems", params: { limit: 1 }, message: "must NOT have fewer than 1 items" }];
|
|
16184
17111
|
return false;
|
|
16185
17112
|
} else {
|
|
16186
17113
|
var valid6 = true;
|
|
@@ -16192,13 +17119,13 @@ function validate53(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
16192
17119
|
if (data15 && typeof data15 == "object" && !Array.isArray(data15)) {
|
|
16193
17120
|
let missing3;
|
|
16194
17121
|
if (data15.decisionId === void 0 && (missing3 = "decisionId") || data15.shortId === void 0 && (missing3 = "shortId") || data15.participation === void 0 && (missing3 = "participation")) {
|
|
16195
|
-
|
|
17122
|
+
validate58.errors = [{ instancePath: instancePath + "/decisionDisclosures/" + i2, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/PreflightResponseV3/properties/decisionDisclosures/items/required", keyword: "required", params: { missingProperty: missing3 }, message: "must have required property '" + missing3 + "'" }];
|
|
16196
17123
|
return false;
|
|
16197
17124
|
} else {
|
|
16198
17125
|
const _errs37 = errors;
|
|
16199
17126
|
for (const key0 in data15) {
|
|
16200
17127
|
if (!(key0 === "decisionId" || key0 === "shortId" || key0 === "participation")) {
|
|
16201
|
-
|
|
17128
|
+
validate58.errors = [{ instancePath: instancePath + "/decisionDisclosures/" + i2, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/PreflightResponseV3/properties/decisionDisclosures/items/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key0 }, message: "must NOT have additional properties" }];
|
|
16202
17129
|
return false;
|
|
16203
17130
|
break;
|
|
16204
17131
|
}
|
|
@@ -16207,7 +17134,7 @@ function validate53(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
16207
17134
|
if (data15.decisionId !== void 0) {
|
|
16208
17135
|
const _errs38 = errors;
|
|
16209
17136
|
if (typeof data15.decisionId !== "string") {
|
|
16210
|
-
|
|
17137
|
+
validate58.errors = [{ instancePath: instancePath + "/decisionDisclosures/" + i2 + "/decisionId", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/PreflightResponseV3/properties/decisionDisclosures/items/properties/decisionId/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
16211
17138
|
return false;
|
|
16212
17139
|
}
|
|
16213
17140
|
var valid7 = _errs38 === errors;
|
|
@@ -16218,7 +17145,7 @@ function validate53(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
16218
17145
|
if (data15.shortId !== void 0) {
|
|
16219
17146
|
const _errs40 = errors;
|
|
16220
17147
|
if (typeof data15.shortId !== "string") {
|
|
16221
|
-
|
|
17148
|
+
validate58.errors = [{ instancePath: instancePath + "/decisionDisclosures/" + i2 + "/shortId", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/PreflightResponseV3/properties/decisionDisclosures/items/properties/shortId/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
16222
17149
|
return false;
|
|
16223
17150
|
}
|
|
16224
17151
|
var valid7 = _errs40 === errors;
|
|
@@ -16230,11 +17157,11 @@ function validate53(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
16230
17157
|
let data18 = data15.participation;
|
|
16231
17158
|
const _errs42 = errors;
|
|
16232
17159
|
if (typeof data18 !== "string") {
|
|
16233
|
-
|
|
17160
|
+
validate58.errors = [{ instancePath: instancePath + "/decisionDisclosures/" + i2 + "/participation", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/PreflightResponseV3/properties/decisionDisclosures/items/properties/participation/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
16234
17161
|
return false;
|
|
16235
17162
|
}
|
|
16236
17163
|
if (!(data18 === "candidate" || data18 === "reconcile_bypass")) {
|
|
16237
|
-
|
|
17164
|
+
validate58.errors = [{ instancePath: instancePath + "/decisionDisclosures/" + i2 + "/participation", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/PreflightResponseV3/properties/decisionDisclosures/items/properties/participation/enum", keyword: "enum", params: { allowedValues: schema107.properties.decisionDisclosures.items.properties.participation.enum }, message: "must be equal to one of the allowed values" }];
|
|
16238
17165
|
return false;
|
|
16239
17166
|
}
|
|
16240
17167
|
var valid7 = _errs42 === errors;
|
|
@@ -16246,7 +17173,7 @@ function validate53(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
16246
17173
|
}
|
|
16247
17174
|
}
|
|
16248
17175
|
} else {
|
|
16249
|
-
|
|
17176
|
+
validate58.errors = [{ instancePath: instancePath + "/decisionDisclosures/" + i2, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/PreflightResponseV3/properties/decisionDisclosures/items/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
|
|
16250
17177
|
return false;
|
|
16251
17178
|
}
|
|
16252
17179
|
}
|
|
@@ -16258,7 +17185,7 @@ function validate53(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
16258
17185
|
}
|
|
16259
17186
|
}
|
|
16260
17187
|
} else {
|
|
16261
|
-
|
|
17188
|
+
validate58.errors = [{ instancePath: instancePath + "/decisionDisclosures", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/PreflightResponseV3/properties/decisionDisclosures/type", keyword: "type", params: { type: "array" }, message: "must be array" }];
|
|
16262
17189
|
return false;
|
|
16263
17190
|
}
|
|
16264
17191
|
}
|
|
@@ -16275,21 +17202,21 @@ function validate53(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
16275
17202
|
}
|
|
16276
17203
|
}
|
|
16277
17204
|
} else {
|
|
16278
|
-
|
|
17205
|
+
validate58.errors = [{ instancePath, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/PreflightResponseV3/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
|
|
16279
17206
|
return false;
|
|
16280
17207
|
}
|
|
16281
17208
|
}
|
|
16282
|
-
|
|
17209
|
+
validate58.errors = vErrors;
|
|
16283
17210
|
return errors === 0;
|
|
16284
17211
|
}
|
|
16285
|
-
|
|
16286
|
-
var
|
|
16287
|
-
var
|
|
16288
|
-
function
|
|
17212
|
+
validate58.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
|
|
17213
|
+
var pattern25 = new RegExp("^[A-Za-z0-9._-]{1,128}$", "u");
|
|
17214
|
+
var pattern26 = new RegExp("^pci_[A-Za-z0-9_-]{43}$", "u");
|
|
17215
|
+
function validate59(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
16289
17216
|
;
|
|
16290
17217
|
let vErrors = null;
|
|
16291
17218
|
let errors = 0;
|
|
16292
|
-
const evaluated0 =
|
|
17219
|
+
const evaluated0 = validate59.evaluated;
|
|
16293
17220
|
if (evaluated0.dynamicProps) {
|
|
16294
17221
|
evaluated0.props = void 0;
|
|
16295
17222
|
}
|
|
@@ -16301,7 +17228,7 @@ function validate54(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
16301
17228
|
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
16302
17229
|
let missing0;
|
|
16303
17230
|
if (data.sessionId === void 0 && (missing0 = "sessionId")) {
|
|
16304
|
-
|
|
17231
|
+
validate59.errors = [{ instancePath, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/PresenceHeartbeatRequest/required", keyword: "required", params: { missingProperty: missing0 }, message: "must have required property '" + missing0 + "'" }];
|
|
16305
17232
|
return false;
|
|
16306
17233
|
} else {
|
|
16307
17234
|
if (data.sessionId !== void 0) {
|
|
@@ -16309,12 +17236,12 @@ function validate54(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
16309
17236
|
const _errs3 = errors;
|
|
16310
17237
|
if (errors === _errs3) {
|
|
16311
17238
|
if (typeof data0 === "string") {
|
|
16312
|
-
if (!
|
|
16313
|
-
|
|
17239
|
+
if (!pattern25.test(data0)) {
|
|
17240
|
+
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}$"' }];
|
|
16314
17241
|
return false;
|
|
16315
17242
|
}
|
|
16316
17243
|
} else {
|
|
16317
|
-
|
|
17244
|
+
validate59.errors = [{ instancePath: instancePath + "/sessionId", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/PresenceHeartbeatRequest/properties/sessionId/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
16318
17245
|
return false;
|
|
16319
17246
|
}
|
|
16320
17247
|
}
|
|
@@ -16328,12 +17255,12 @@ function validate54(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
16328
17255
|
const _errs5 = errors;
|
|
16329
17256
|
if (errors === _errs5) {
|
|
16330
17257
|
if (typeof data1 === "string") {
|
|
16331
|
-
if (!
|
|
16332
|
-
|
|
17258
|
+
if (!pattern26.test(data1)) {
|
|
17259
|
+
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}$"' }];
|
|
16333
17260
|
return false;
|
|
16334
17261
|
}
|
|
16335
17262
|
} else {
|
|
16336
|
-
|
|
17263
|
+
validate59.errors = [{ instancePath: instancePath + "/clientInstanceId", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/PresenceHeartbeatRequest/properties/clientInstanceId/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
16337
17264
|
return false;
|
|
16338
17265
|
}
|
|
16339
17266
|
}
|
|
@@ -16346,17 +17273,17 @@ function validate54(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
16346
17273
|
let data2 = data.decisionLifecycleProtocolVersion;
|
|
16347
17274
|
const _errs7 = errors;
|
|
16348
17275
|
if (!(typeof data2 == "number" && (!(data2 % 1) && !isNaN(data2)) && isFinite(data2))) {
|
|
16349
|
-
|
|
17276
|
+
validate59.errors = [{ instancePath: instancePath + "/decisionLifecycleProtocolVersion", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/PresenceHeartbeatRequest/properties/decisionLifecycleProtocolVersion/type", keyword: "type", params: { type: "integer" }, message: "must be integer" }];
|
|
16350
17277
|
return false;
|
|
16351
17278
|
}
|
|
16352
17279
|
if (errors === _errs7) {
|
|
16353
17280
|
if (typeof data2 == "number" && isFinite(data2)) {
|
|
16354
17281
|
if (data2 > 9007199254740991 || isNaN(data2)) {
|
|
16355
|
-
|
|
17282
|
+
validate59.errors = [{ instancePath: instancePath + "/decisionLifecycleProtocolVersion", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/PresenceHeartbeatRequest/properties/decisionLifecycleProtocolVersion/maximum", keyword: "maximum", params: { comparison: "<=", limit: 9007199254740991 }, message: "must be <= 9007199254740991" }];
|
|
16356
17283
|
return false;
|
|
16357
17284
|
} else {
|
|
16358
17285
|
if (data2 < 1 || isNaN(data2)) {
|
|
16359
|
-
|
|
17286
|
+
validate59.errors = [{ instancePath: instancePath + "/decisionLifecycleProtocolVersion", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/PresenceHeartbeatRequest/properties/decisionLifecycleProtocolVersion/minimum", keyword: "minimum", params: { comparison: ">=", limit: 1 }, message: "must be >= 1" }];
|
|
16360
17287
|
return false;
|
|
16361
17288
|
}
|
|
16362
17289
|
}
|
|
@@ -16370,19 +17297,19 @@ function validate54(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
16370
17297
|
}
|
|
16371
17298
|
}
|
|
16372
17299
|
} else {
|
|
16373
|
-
|
|
17300
|
+
validate59.errors = [{ instancePath, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/PresenceHeartbeatRequest/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
|
|
16374
17301
|
return false;
|
|
16375
17302
|
}
|
|
16376
17303
|
}
|
|
16377
|
-
|
|
17304
|
+
validate59.errors = vErrors;
|
|
16378
17305
|
return errors === 0;
|
|
16379
17306
|
}
|
|
16380
|
-
|
|
16381
|
-
function
|
|
17307
|
+
validate59.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
|
|
17308
|
+
function validate60(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
16382
17309
|
;
|
|
16383
17310
|
let vErrors = null;
|
|
16384
17311
|
let errors = 0;
|
|
16385
|
-
const evaluated0 =
|
|
17312
|
+
const evaluated0 = validate60.evaluated;
|
|
16386
17313
|
if (evaluated0.dynamicProps) {
|
|
16387
17314
|
evaluated0.props = void 0;
|
|
16388
17315
|
}
|
|
@@ -16748,7 +17675,7 @@ function validate55(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
16748
17675
|
vErrors.push(err22);
|
|
16749
17676
|
}
|
|
16750
17677
|
errors++;
|
|
16751
|
-
|
|
17678
|
+
validate60.errors = vErrors;
|
|
16752
17679
|
return false;
|
|
16753
17680
|
} else {
|
|
16754
17681
|
errors = _errs1;
|
|
@@ -16760,17 +17687,17 @@ function validate55(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
16760
17687
|
}
|
|
16761
17688
|
}
|
|
16762
17689
|
}
|
|
16763
|
-
|
|
17690
|
+
validate60.errors = vErrors;
|
|
16764
17691
|
evaluated0.props = props0;
|
|
16765
17692
|
return errors === 0;
|
|
16766
17693
|
}
|
|
16767
|
-
|
|
16768
|
-
var
|
|
16769
|
-
function
|
|
17694
|
+
validate60.evaluated = { "dynamicProps": true, "dynamicItems": false };
|
|
17695
|
+
var schema113 = { "type": "object", "properties": { "idOrShortId": { "type": "string", "minLength": 1, "maxLength": 128 }, "checkId": { "type": "string", "minLength": 1, "maxLength": 128 }, "outcome": { "type": "string", "enum": ["followed", "superseded"] } }, "required": ["idOrShortId", "checkId", "outcome"], "additionalProperties": false };
|
|
17696
|
+
function validate61(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
16770
17697
|
;
|
|
16771
17698
|
let vErrors = null;
|
|
16772
17699
|
let errors = 0;
|
|
16773
|
-
const evaluated0 =
|
|
17700
|
+
const evaluated0 = validate61.evaluated;
|
|
16774
17701
|
if (evaluated0.dynamicProps) {
|
|
16775
17702
|
evaluated0.props = void 0;
|
|
16776
17703
|
}
|
|
@@ -16782,13 +17709,13 @@ function validate56(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
16782
17709
|
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
16783
17710
|
let missing0;
|
|
16784
17711
|
if (data.idOrShortId === void 0 && (missing0 = "idOrShortId") || data.checkId === void 0 && (missing0 = "checkId") || data.outcome === void 0 && (missing0 = "outcome")) {
|
|
16785
|
-
|
|
17712
|
+
validate61.errors = [{ instancePath, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/ReconcileResolutionRequest/required", keyword: "required", params: { missingProperty: missing0 }, message: "must have required property '" + missing0 + "'" }];
|
|
16786
17713
|
return false;
|
|
16787
17714
|
} else {
|
|
16788
17715
|
const _errs2 = errors;
|
|
16789
17716
|
for (const key0 in data) {
|
|
16790
17717
|
if (!(key0 === "idOrShortId" || key0 === "checkId" || key0 === "outcome")) {
|
|
16791
|
-
|
|
17718
|
+
validate61.errors = [{ instancePath, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/ReconcileResolutionRequest/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key0 }, message: "must NOT have additional properties" }];
|
|
16792
17719
|
return false;
|
|
16793
17720
|
break;
|
|
16794
17721
|
}
|
|
@@ -16800,16 +17727,16 @@ function validate56(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
16800
17727
|
if (errors === _errs3) {
|
|
16801
17728
|
if (typeof data0 === "string") {
|
|
16802
17729
|
if (func1(data0) > 128) {
|
|
16803
|
-
|
|
17730
|
+
validate61.errors = [{ instancePath: instancePath + "/idOrShortId", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/ReconcileResolutionRequest/properties/idOrShortId/maxLength", keyword: "maxLength", params: { limit: 128 }, message: "must NOT have more than 128 characters" }];
|
|
16804
17731
|
return false;
|
|
16805
17732
|
} else {
|
|
16806
17733
|
if (func1(data0) < 1) {
|
|
16807
|
-
|
|
17734
|
+
validate61.errors = [{ instancePath: instancePath + "/idOrShortId", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/ReconcileResolutionRequest/properties/idOrShortId/minLength", keyword: "minLength", params: { limit: 1 }, message: "must NOT have fewer than 1 characters" }];
|
|
16808
17735
|
return false;
|
|
16809
17736
|
}
|
|
16810
17737
|
}
|
|
16811
17738
|
} else {
|
|
16812
|
-
|
|
17739
|
+
validate61.errors = [{ instancePath: instancePath + "/idOrShortId", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/ReconcileResolutionRequest/properties/idOrShortId/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
16813
17740
|
return false;
|
|
16814
17741
|
}
|
|
16815
17742
|
}
|
|
@@ -16824,16 +17751,16 @@ function validate56(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
16824
17751
|
if (errors === _errs5) {
|
|
16825
17752
|
if (typeof data1 === "string") {
|
|
16826
17753
|
if (func1(data1) > 128) {
|
|
16827
|
-
|
|
17754
|
+
validate61.errors = [{ instancePath: instancePath + "/checkId", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/ReconcileResolutionRequest/properties/checkId/maxLength", keyword: "maxLength", params: { limit: 128 }, message: "must NOT have more than 128 characters" }];
|
|
16828
17755
|
return false;
|
|
16829
17756
|
} else {
|
|
16830
17757
|
if (func1(data1) < 1) {
|
|
16831
|
-
|
|
17758
|
+
validate61.errors = [{ instancePath: instancePath + "/checkId", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/ReconcileResolutionRequest/properties/checkId/minLength", keyword: "minLength", params: { limit: 1 }, message: "must NOT have fewer than 1 characters" }];
|
|
16832
17759
|
return false;
|
|
16833
17760
|
}
|
|
16834
17761
|
}
|
|
16835
17762
|
} else {
|
|
16836
|
-
|
|
17763
|
+
validate61.errors = [{ instancePath: instancePath + "/checkId", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/ReconcileResolutionRequest/properties/checkId/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
16837
17764
|
return false;
|
|
16838
17765
|
}
|
|
16839
17766
|
}
|
|
@@ -16846,11 +17773,11 @@ function validate56(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
16846
17773
|
let data2 = data.outcome;
|
|
16847
17774
|
const _errs7 = errors;
|
|
16848
17775
|
if (typeof data2 !== "string") {
|
|
16849
|
-
|
|
17776
|
+
validate61.errors = [{ instancePath: instancePath + "/outcome", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/ReconcileResolutionRequest/properties/outcome/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
16850
17777
|
return false;
|
|
16851
17778
|
}
|
|
16852
17779
|
if (!(data2 === "followed" || data2 === "superseded")) {
|
|
16853
|
-
|
|
17780
|
+
validate61.errors = [{ instancePath: instancePath + "/outcome", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/ReconcileResolutionRequest/properties/outcome/enum", keyword: "enum", params: { allowedValues: schema113.properties.outcome.enum }, message: "must be equal to one of the allowed values" }];
|
|
16854
17781
|
return false;
|
|
16855
17782
|
}
|
|
16856
17783
|
var valid1 = _errs7 === errors;
|
|
@@ -16862,20 +17789,20 @@ function validate56(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
16862
17789
|
}
|
|
16863
17790
|
}
|
|
16864
17791
|
} else {
|
|
16865
|
-
|
|
17792
|
+
validate61.errors = [{ instancePath, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/ReconcileResolutionRequest/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
|
|
16866
17793
|
return false;
|
|
16867
17794
|
}
|
|
16868
17795
|
}
|
|
16869
|
-
|
|
17796
|
+
validate61.errors = vErrors;
|
|
16870
17797
|
return errors === 0;
|
|
16871
17798
|
}
|
|
16872
|
-
|
|
16873
|
-
var
|
|
16874
|
-
function
|
|
17799
|
+
validate61.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
|
|
17800
|
+
var schema115 = { "type": "object", "properties": { "ok": { "type": "boolean", "const": true }, "checkId": { "type": "string" }, "decisionId": { "type": "string" }, "outcome": { "type": "string", "enum": ["followed", "superseded"] }, "recordedAt": { "type": "number" }, "duplicate": { "type": "boolean" } }, "required": ["ok", "checkId", "decisionId", "outcome", "recordedAt", "duplicate"], "additionalProperties": false };
|
|
17801
|
+
function validate62(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
16875
17802
|
;
|
|
16876
17803
|
let vErrors = null;
|
|
16877
17804
|
let errors = 0;
|
|
16878
|
-
const evaluated0 =
|
|
17805
|
+
const evaluated0 = validate62.evaluated;
|
|
16879
17806
|
if (evaluated0.dynamicProps) {
|
|
16880
17807
|
evaluated0.props = void 0;
|
|
16881
17808
|
}
|
|
@@ -16887,13 +17814,13 @@ function validate57(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
16887
17814
|
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
16888
17815
|
let missing0;
|
|
16889
17816
|
if (data.ok === void 0 && (missing0 = "ok") || data.checkId === void 0 && (missing0 = "checkId") || data.decisionId === void 0 && (missing0 = "decisionId") || data.outcome === void 0 && (missing0 = "outcome") || data.recordedAt === void 0 && (missing0 = "recordedAt") || data.duplicate === void 0 && (missing0 = "duplicate")) {
|
|
16890
|
-
|
|
17817
|
+
validate62.errors = [{ instancePath, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/ReconcileResolutionResponse/required", keyword: "required", params: { missingProperty: missing0 }, message: "must have required property '" + missing0 + "'" }];
|
|
16891
17818
|
return false;
|
|
16892
17819
|
} else {
|
|
16893
17820
|
const _errs2 = errors;
|
|
16894
17821
|
for (const key0 in data) {
|
|
16895
17822
|
if (!(key0 === "ok" || key0 === "checkId" || key0 === "decisionId" || key0 === "outcome" || key0 === "recordedAt" || key0 === "duplicate")) {
|
|
16896
|
-
|
|
17823
|
+
validate62.errors = [{ instancePath, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/ReconcileResolutionResponse/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key0 }, message: "must NOT have additional properties" }];
|
|
16897
17824
|
return false;
|
|
16898
17825
|
break;
|
|
16899
17826
|
}
|
|
@@ -16903,11 +17830,11 @@ function validate57(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
16903
17830
|
let data0 = data.ok;
|
|
16904
17831
|
const _errs3 = errors;
|
|
16905
17832
|
if (typeof data0 !== "boolean") {
|
|
16906
|
-
|
|
17833
|
+
validate62.errors = [{ instancePath: instancePath + "/ok", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/ReconcileResolutionResponse/properties/ok/type", keyword: "type", params: { type: "boolean" }, message: "must be boolean" }];
|
|
16907
17834
|
return false;
|
|
16908
17835
|
}
|
|
16909
17836
|
if (true !== data0) {
|
|
16910
|
-
|
|
17837
|
+
validate62.errors = [{ instancePath: instancePath + "/ok", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/ReconcileResolutionResponse/properties/ok/const", keyword: "const", params: { allowedValue: true }, message: "must be equal to constant" }];
|
|
16911
17838
|
return false;
|
|
16912
17839
|
}
|
|
16913
17840
|
var valid1 = _errs3 === errors;
|
|
@@ -16918,7 +17845,7 @@ function validate57(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
16918
17845
|
if (data.checkId !== void 0) {
|
|
16919
17846
|
const _errs5 = errors;
|
|
16920
17847
|
if (typeof data.checkId !== "string") {
|
|
16921
|
-
|
|
17848
|
+
validate62.errors = [{ instancePath: instancePath + "/checkId", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/ReconcileResolutionResponse/properties/checkId/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
16922
17849
|
return false;
|
|
16923
17850
|
}
|
|
16924
17851
|
var valid1 = _errs5 === errors;
|
|
@@ -16929,7 +17856,7 @@ function validate57(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
16929
17856
|
if (data.decisionId !== void 0) {
|
|
16930
17857
|
const _errs7 = errors;
|
|
16931
17858
|
if (typeof data.decisionId !== "string") {
|
|
16932
|
-
|
|
17859
|
+
validate62.errors = [{ instancePath: instancePath + "/decisionId", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/ReconcileResolutionResponse/properties/decisionId/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
16933
17860
|
return false;
|
|
16934
17861
|
}
|
|
16935
17862
|
var valid1 = _errs7 === errors;
|
|
@@ -16941,11 +17868,11 @@ function validate57(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
16941
17868
|
let data3 = data.outcome;
|
|
16942
17869
|
const _errs9 = errors;
|
|
16943
17870
|
if (typeof data3 !== "string") {
|
|
16944
|
-
|
|
17871
|
+
validate62.errors = [{ instancePath: instancePath + "/outcome", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/ReconcileResolutionResponse/properties/outcome/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
16945
17872
|
return false;
|
|
16946
17873
|
}
|
|
16947
17874
|
if (!(data3 === "followed" || data3 === "superseded")) {
|
|
16948
|
-
|
|
17875
|
+
validate62.errors = [{ instancePath: instancePath + "/outcome", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/ReconcileResolutionResponse/properties/outcome/enum", keyword: "enum", params: { allowedValues: schema115.properties.outcome.enum }, message: "must be equal to one of the allowed values" }];
|
|
16949
17876
|
return false;
|
|
16950
17877
|
}
|
|
16951
17878
|
var valid1 = _errs9 === errors;
|
|
@@ -16957,7 +17884,7 @@ function validate57(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
16957
17884
|
let data4 = data.recordedAt;
|
|
16958
17885
|
const _errs11 = errors;
|
|
16959
17886
|
if (!(typeof data4 == "number" && isFinite(data4))) {
|
|
16960
|
-
|
|
17887
|
+
validate62.errors = [{ instancePath: instancePath + "/recordedAt", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/ReconcileResolutionResponse/properties/recordedAt/type", keyword: "type", params: { type: "number" }, message: "must be number" }];
|
|
16961
17888
|
return false;
|
|
16962
17889
|
}
|
|
16963
17890
|
var valid1 = _errs11 === errors;
|
|
@@ -16968,7 +17895,7 @@ function validate57(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
16968
17895
|
if (data.duplicate !== void 0) {
|
|
16969
17896
|
const _errs13 = errors;
|
|
16970
17897
|
if (typeof data.duplicate !== "boolean") {
|
|
16971
|
-
|
|
17898
|
+
validate62.errors = [{ instancePath: instancePath + "/duplicate", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/ReconcileResolutionResponse/properties/duplicate/type", keyword: "type", params: { type: "boolean" }, message: "must be boolean" }];
|
|
16972
17899
|
return false;
|
|
16973
17900
|
}
|
|
16974
17901
|
var valid1 = _errs13 === errors;
|
|
@@ -16983,20 +17910,20 @@ function validate57(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
16983
17910
|
}
|
|
16984
17911
|
}
|
|
16985
17912
|
} else {
|
|
16986
|
-
|
|
17913
|
+
validate62.errors = [{ instancePath, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/ReconcileResolutionResponse/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
|
|
16987
17914
|
return false;
|
|
16988
17915
|
}
|
|
16989
17916
|
}
|
|
16990
|
-
|
|
17917
|
+
validate62.errors = vErrors;
|
|
16991
17918
|
return errors === 0;
|
|
16992
17919
|
}
|
|
16993
|
-
|
|
16994
|
-
var
|
|
16995
|
-
function
|
|
17920
|
+
validate62.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
|
|
17921
|
+
var pattern27 = 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
|
+
function validate63(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
16996
17923
|
;
|
|
16997
17924
|
let vErrors = null;
|
|
16998
17925
|
let errors = 0;
|
|
16999
|
-
const evaluated0 =
|
|
17926
|
+
const evaluated0 = validate63.evaluated;
|
|
17000
17927
|
if (evaluated0.dynamicProps) {
|
|
17001
17928
|
evaluated0.props = void 0;
|
|
17002
17929
|
}
|
|
@@ -17008,13 +17935,13 @@ function validate58(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
17008
17935
|
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
17009
17936
|
let missing0;
|
|
17010
17937
|
if (data.repositoryFullName === void 0 && (missing0 = "repositoryFullName")) {
|
|
17011
|
-
|
|
17938
|
+
validate63.errors = [{ instancePath, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/RepositoryBindRequest/required", keyword: "required", params: { missingProperty: missing0 }, message: "must have required property '" + missing0 + "'" }];
|
|
17012
17939
|
return false;
|
|
17013
17940
|
} else {
|
|
17014
17941
|
const _errs2 = errors;
|
|
17015
17942
|
for (const key0 in data) {
|
|
17016
17943
|
if (!(key0 === "repositoryFullName")) {
|
|
17017
|
-
|
|
17944
|
+
validate63.errors = [{ instancePath, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/RepositoryBindRequest/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key0 }, message: "must NOT have additional properties" }];
|
|
17018
17945
|
return false;
|
|
17019
17946
|
break;
|
|
17020
17947
|
}
|
|
@@ -17025,12 +17952,12 @@ function validate58(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
17025
17952
|
const _errs3 = errors;
|
|
17026
17953
|
if (errors === _errs3) {
|
|
17027
17954
|
if (typeof data0 === "string") {
|
|
17028
|
-
if (!
|
|
17029
|
-
|
|
17955
|
+
if (!pattern27.test(data0)) {
|
|
17956
|
+
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}$"' }];
|
|
17030
17957
|
return false;
|
|
17031
17958
|
}
|
|
17032
17959
|
} else {
|
|
17033
|
-
|
|
17960
|
+
validate63.errors = [{ instancePath: instancePath + "/repositoryFullName", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/RepositoryBindRequest/properties/repositoryFullName/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
17034
17961
|
return false;
|
|
17035
17962
|
}
|
|
17036
17963
|
}
|
|
@@ -17038,19 +17965,19 @@ function validate58(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
17038
17965
|
}
|
|
17039
17966
|
}
|
|
17040
17967
|
} else {
|
|
17041
|
-
|
|
17968
|
+
validate63.errors = [{ instancePath, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/RepositoryBindRequest/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
|
|
17042
17969
|
return false;
|
|
17043
17970
|
}
|
|
17044
17971
|
}
|
|
17045
|
-
|
|
17972
|
+
validate63.errors = vErrors;
|
|
17046
17973
|
return errors === 0;
|
|
17047
17974
|
}
|
|
17048
|
-
|
|
17049
|
-
function
|
|
17975
|
+
validate63.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
|
|
17976
|
+
function validate64(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
17050
17977
|
;
|
|
17051
17978
|
let vErrors = null;
|
|
17052
17979
|
let errors = 0;
|
|
17053
|
-
const evaluated0 =
|
|
17980
|
+
const evaluated0 = validate64.evaluated;
|
|
17054
17981
|
if (evaluated0.dynamicProps) {
|
|
17055
17982
|
evaluated0.props = void 0;
|
|
17056
17983
|
}
|
|
@@ -17062,7 +17989,7 @@ function validate59(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
17062
17989
|
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
17063
17990
|
let missing0;
|
|
17064
17991
|
if (data.repoSyncId === void 0 && (missing0 = "repoSyncId")) {
|
|
17065
|
-
|
|
17992
|
+
validate64.errors = [{ instancePath, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/RepositoryBindResponse/required", keyword: "required", params: { missingProperty: missing0 }, message: "must have required property '" + missing0 + "'" }];
|
|
17066
17993
|
return false;
|
|
17067
17994
|
} else {
|
|
17068
17995
|
if (data.repoSyncId !== void 0) {
|
|
@@ -17071,32 +17998,31 @@ function validate59(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
17071
17998
|
if (errors === _errs3) {
|
|
17072
17999
|
if (typeof data0 === "string") {
|
|
17073
18000
|
if (func1(data0) < 1) {
|
|
17074
|
-
|
|
18001
|
+
validate64.errors = [{ instancePath: instancePath + "/repoSyncId", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/RepositoryBindResponse/properties/repoSyncId/minLength", keyword: "minLength", params: { limit: 1 }, message: "must NOT have fewer than 1 characters" }];
|
|
17075
18002
|
return false;
|
|
17076
18003
|
}
|
|
17077
18004
|
} else {
|
|
17078
|
-
|
|
18005
|
+
validate64.errors = [{ instancePath: instancePath + "/repoSyncId", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/RepositoryBindResponse/properties/repoSyncId/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
17079
18006
|
return false;
|
|
17080
18007
|
}
|
|
17081
18008
|
}
|
|
17082
18009
|
}
|
|
17083
18010
|
}
|
|
17084
18011
|
} else {
|
|
17085
|
-
|
|
18012
|
+
validate64.errors = [{ instancePath, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/RepositoryBindResponse/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
|
|
17086
18013
|
return false;
|
|
17087
18014
|
}
|
|
17088
18015
|
}
|
|
17089
|
-
|
|
18016
|
+
validate64.errors = vErrors;
|
|
17090
18017
|
return errors === 0;
|
|
17091
18018
|
}
|
|
17092
|
-
|
|
17093
|
-
var
|
|
17094
|
-
|
|
17095
|
-
function validate60(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
18019
|
+
validate64.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
|
|
18020
|
+
var pattern29 = new RegExp("^api_key_[A-Za-z0-9_-]+$", "u");
|
|
18021
|
+
function validate65(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
17096
18022
|
;
|
|
17097
18023
|
let vErrors = null;
|
|
17098
18024
|
let errors = 0;
|
|
17099
|
-
const evaluated0 =
|
|
18025
|
+
const evaluated0 = validate65.evaluated;
|
|
17100
18026
|
if (evaluated0.dynamicProps) {
|
|
17101
18027
|
evaluated0.props = void 0;
|
|
17102
18028
|
}
|
|
@@ -17108,13 +18034,13 @@ function validate60(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
17108
18034
|
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
17109
18035
|
let missing0;
|
|
17110
18036
|
if (data.requestId === void 0 && (missing0 = "requestId") || data.limit === void 0 && (missing0 = "limit")) {
|
|
17111
|
-
|
|
18037
|
+
validate65.errors = [{ instancePath, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/UserApiKeyListRequest/required", keyword: "required", params: { missingProperty: missing0 }, message: "must have required property '" + missing0 + "'" }];
|
|
17112
18038
|
return false;
|
|
17113
18039
|
} else {
|
|
17114
18040
|
const _errs2 = errors;
|
|
17115
18041
|
for (const key0 in data) {
|
|
17116
18042
|
if (!(key0 === "requestId" || key0 === "limit" || key0 === "after")) {
|
|
17117
|
-
|
|
18043
|
+
validate65.errors = [{ instancePath, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/UserApiKeyListRequest/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key0 }, message: "must NOT have additional properties" }];
|
|
17118
18044
|
return false;
|
|
17119
18045
|
break;
|
|
17120
18046
|
}
|
|
@@ -17125,12 +18051,12 @@ function validate60(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
17125
18051
|
const _errs3 = errors;
|
|
17126
18052
|
if (errors === _errs3) {
|
|
17127
18053
|
if (typeof data0 === "string") {
|
|
17128
|
-
if (!
|
|
17129
|
-
|
|
18054
|
+
if (!pattern5.test(data0)) {
|
|
18055
|
+
validate65.errors = [{ instancePath: instancePath + "/requestId", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/UserApiKeyListRequest/properties/requestId/pattern", keyword: "pattern", params: { pattern: "^[a-f0-9]{64}$" }, message: 'must match pattern "^[a-f0-9]{64}$"' }];
|
|
17130
18056
|
return false;
|
|
17131
18057
|
}
|
|
17132
18058
|
} else {
|
|
17133
|
-
|
|
18059
|
+
validate65.errors = [{ instancePath: instancePath + "/requestId", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/UserApiKeyListRequest/properties/requestId/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
17134
18060
|
return false;
|
|
17135
18061
|
}
|
|
17136
18062
|
}
|
|
@@ -17143,17 +18069,17 @@ function validate60(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
17143
18069
|
let data1 = data.limit;
|
|
17144
18070
|
const _errs5 = errors;
|
|
17145
18071
|
if (!(typeof data1 == "number" && (!(data1 % 1) && !isNaN(data1)) && isFinite(data1))) {
|
|
17146
|
-
|
|
18072
|
+
validate65.errors = [{ instancePath: instancePath + "/limit", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/UserApiKeyListRequest/properties/limit/type", keyword: "type", params: { type: "integer" }, message: "must be integer" }];
|
|
17147
18073
|
return false;
|
|
17148
18074
|
}
|
|
17149
18075
|
if (errors === _errs5) {
|
|
17150
18076
|
if (typeof data1 == "number" && isFinite(data1)) {
|
|
17151
18077
|
if (data1 > 100 || isNaN(data1)) {
|
|
17152
|
-
|
|
18078
|
+
validate65.errors = [{ instancePath: instancePath + "/limit", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/UserApiKeyListRequest/properties/limit/maximum", keyword: "maximum", params: { comparison: "<=", limit: 100 }, message: "must be <= 100" }];
|
|
17153
18079
|
return false;
|
|
17154
18080
|
} else {
|
|
17155
18081
|
if (data1 < 1 || isNaN(data1)) {
|
|
17156
|
-
|
|
18082
|
+
validate65.errors = [{ instancePath: instancePath + "/limit", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/UserApiKeyListRequest/properties/limit/minimum", keyword: "minimum", params: { comparison: ">=", limit: 1 }, message: "must be >= 1" }];
|
|
17157
18083
|
return false;
|
|
17158
18084
|
}
|
|
17159
18085
|
}
|
|
@@ -17170,21 +18096,21 @@ function validate60(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
17170
18096
|
if (errors === _errs7) {
|
|
17171
18097
|
if (typeof data2 === "string") {
|
|
17172
18098
|
if (func1(data2) > 256) {
|
|
17173
|
-
|
|
18099
|
+
validate65.errors = [{ instancePath: instancePath + "/after", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/UserApiKeyListRequest/properties/after/maxLength", keyword: "maxLength", params: { limit: 256 }, message: "must NOT have more than 256 characters" }];
|
|
17174
18100
|
return false;
|
|
17175
18101
|
} else {
|
|
17176
18102
|
if (func1(data2) < 9) {
|
|
17177
|
-
|
|
18103
|
+
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" }];
|
|
17178
18104
|
return false;
|
|
17179
18105
|
} else {
|
|
17180
|
-
if (!
|
|
17181
|
-
|
|
18106
|
+
if (!pattern29.test(data2)) {
|
|
18107
|
+
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_-]+$"' }];
|
|
17182
18108
|
return false;
|
|
17183
18109
|
}
|
|
17184
18110
|
}
|
|
17185
18111
|
}
|
|
17186
18112
|
} else {
|
|
17187
|
-
|
|
18113
|
+
validate65.errors = [{ instancePath: instancePath + "/after", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/UserApiKeyListRequest/properties/after/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
17188
18114
|
return false;
|
|
17189
18115
|
}
|
|
17190
18116
|
}
|
|
@@ -17197,22 +18123,22 @@ function validate60(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
17197
18123
|
}
|
|
17198
18124
|
}
|
|
17199
18125
|
} else {
|
|
17200
|
-
|
|
18126
|
+
validate65.errors = [{ instancePath, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/UserApiKeyListRequest/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
|
|
17201
18127
|
return false;
|
|
17202
18128
|
}
|
|
17203
18129
|
}
|
|
17204
|
-
|
|
18130
|
+
validate65.errors = vErrors;
|
|
17205
18131
|
return errors === 0;
|
|
17206
18132
|
}
|
|
17207
|
-
|
|
17208
|
-
var
|
|
17209
|
-
var
|
|
17210
|
-
var
|
|
17211
|
-
function
|
|
18133
|
+
validate65.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
|
|
18134
|
+
var pattern31 = new RegExp("^[\\x21-\\x7e](?:[\\x20-\\x7e]{0,126}[\\x21-\\x7e])?$", "u");
|
|
18135
|
+
var pattern32 = new RegExp("^[^\\u0000-\\u001f\\u007f-\\u009f\\u2028\\u2029\\u061c\\u200b-\\u200f\\u202a-\\u202e\\u2060\\u2066-\\u2069\\ufeff]+$", "u");
|
|
18136
|
+
var pattern33 = new RegExp("^[\\x21-\\x7e]+$", "u");
|
|
18137
|
+
function validate66(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
17212
18138
|
;
|
|
17213
18139
|
let vErrors = null;
|
|
17214
18140
|
let errors = 0;
|
|
17215
|
-
const evaluated0 =
|
|
18141
|
+
const evaluated0 = validate66.evaluated;
|
|
17216
18142
|
if (evaluated0.dynamicProps) {
|
|
17217
18143
|
evaluated0.props = void 0;
|
|
17218
18144
|
}
|
|
@@ -17224,13 +18150,13 @@ function validate61(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
17224
18150
|
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
17225
18151
|
let missing0;
|
|
17226
18152
|
if (data.apiKeys === void 0 && (missing0 = "apiKeys") || data.nextCursor === void 0 && (missing0 = "nextCursor")) {
|
|
17227
|
-
|
|
18153
|
+
validate66.errors = [{ instancePath, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/UserApiKeyListResponse/required", keyword: "required", params: { missingProperty: missing0 }, message: "must have required property '" + missing0 + "'" }];
|
|
17228
18154
|
return false;
|
|
17229
18155
|
} else {
|
|
17230
18156
|
const _errs2 = errors;
|
|
17231
18157
|
for (const key0 in data) {
|
|
17232
18158
|
if (!(key0 === "apiKeys" || key0 === "nextCursor")) {
|
|
17233
|
-
|
|
18159
|
+
validate66.errors = [{ instancePath, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/UserApiKeyListResponse/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key0 }, message: "must NOT have additional properties" }];
|
|
17234
18160
|
return false;
|
|
17235
18161
|
break;
|
|
17236
18162
|
}
|
|
@@ -17242,7 +18168,7 @@ function validate61(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
17242
18168
|
if (errors === _errs3) {
|
|
17243
18169
|
if (Array.isArray(data0)) {
|
|
17244
18170
|
if (data0.length > 100) {
|
|
17245
|
-
|
|
18171
|
+
validate66.errors = [{ instancePath: instancePath + "/apiKeys", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/UserApiKeyListResponse/properties/apiKeys/maxItems", keyword: "maxItems", params: { limit: 100 }, message: "must NOT have more than 100 items" }];
|
|
17246
18172
|
return false;
|
|
17247
18173
|
} else {
|
|
17248
18174
|
var valid2 = true;
|
|
@@ -17254,13 +18180,13 @@ function validate61(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
17254
18180
|
if (data1 && typeof data1 == "object" && !Array.isArray(data1)) {
|
|
17255
18181
|
let missing1;
|
|
17256
18182
|
if (data1.id === void 0 && (missing1 = "id") || data1.name === void 0 && (missing1 = "name") || data1.obfuscatedValue === void 0 && (missing1 = "obfuscatedValue") || data1.permissions === void 0 && (missing1 = "permissions") || data1.lastUsedAt === void 0 && (missing1 = "lastUsedAt") || data1.expiresAt === void 0 && (missing1 = "expiresAt") || data1.createdAt === void 0 && (missing1 = "createdAt") || data1.updatedAt === void 0 && (missing1 = "updatedAt")) {
|
|
17257
|
-
|
|
18183
|
+
validate66.errors = [{ instancePath: instancePath + "/apiKeys/" + i0, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/UserApiKeyListResponse/properties/apiKeys/items/required", keyword: "required", params: { missingProperty: missing1 }, message: "must have required property '" + missing1 + "'" }];
|
|
17258
18184
|
return false;
|
|
17259
18185
|
} else {
|
|
17260
18186
|
const _errs7 = errors;
|
|
17261
18187
|
for (const key1 in data1) {
|
|
17262
18188
|
if (!(key1 === "id" || key1 === "name" || key1 === "obfuscatedValue" || key1 === "permissions" || key1 === "lastUsedAt" || key1 === "expiresAt" || key1 === "createdAt" || key1 === "updatedAt")) {
|
|
17263
|
-
|
|
18189
|
+
validate66.errors = [{ instancePath: instancePath + "/apiKeys/" + i0, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/UserApiKeyListResponse/properties/apiKeys/items/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key1 }, message: "must NOT have additional properties" }];
|
|
17264
18190
|
return false;
|
|
17265
18191
|
break;
|
|
17266
18192
|
}
|
|
@@ -17272,21 +18198,21 @@ function validate61(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
17272
18198
|
if (errors === _errs8) {
|
|
17273
18199
|
if (typeof data2 === "string") {
|
|
17274
18200
|
if (func1(data2) > 256) {
|
|
17275
|
-
|
|
18201
|
+
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/maxLength", keyword: "maxLength", params: { limit: 256 }, message: "must NOT have more than 256 characters" }];
|
|
17276
18202
|
return false;
|
|
17277
18203
|
} else {
|
|
17278
18204
|
if (func1(data2) < 9) {
|
|
17279
|
-
|
|
18205
|
+
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" }];
|
|
17280
18206
|
return false;
|
|
17281
18207
|
} else {
|
|
17282
|
-
if (!
|
|
17283
|
-
|
|
18208
|
+
if (!pattern29.test(data2)) {
|
|
18209
|
+
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_-]+$"' }];
|
|
17284
18210
|
return false;
|
|
17285
18211
|
}
|
|
17286
18212
|
}
|
|
17287
18213
|
}
|
|
17288
18214
|
} else {
|
|
17289
|
-
|
|
18215
|
+
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/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
17290
18216
|
return false;
|
|
17291
18217
|
}
|
|
17292
18218
|
}
|
|
@@ -17301,21 +18227,21 @@ function validate61(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
17301
18227
|
if (errors === _errs10) {
|
|
17302
18228
|
if (typeof data3 === "string") {
|
|
17303
18229
|
if (func1(data3) > 128) {
|
|
17304
|
-
|
|
18230
|
+
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/maxLength", keyword: "maxLength", params: { limit: 128 }, message: "must NOT have more than 128 characters" }];
|
|
17305
18231
|
return false;
|
|
17306
18232
|
} else {
|
|
17307
18233
|
if (func1(data3) < 1) {
|
|
17308
|
-
|
|
18234
|
+
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" }];
|
|
17309
18235
|
return false;
|
|
17310
18236
|
} else {
|
|
17311
|
-
if (!
|
|
17312
|
-
|
|
18237
|
+
if (!pattern31.test(data3)) {
|
|
18238
|
+
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])?$"' }];
|
|
17313
18239
|
return false;
|
|
17314
18240
|
}
|
|
17315
18241
|
}
|
|
17316
18242
|
}
|
|
17317
18243
|
} else {
|
|
17318
|
-
|
|
18244
|
+
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/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
17319
18245
|
return false;
|
|
17320
18246
|
}
|
|
17321
18247
|
}
|
|
@@ -17330,21 +18256,21 @@ function validate61(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
17330
18256
|
if (errors === _errs12) {
|
|
17331
18257
|
if (typeof data4 === "string") {
|
|
17332
18258
|
if (func1(data4) > 256) {
|
|
17333
|
-
|
|
18259
|
+
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/maxLength", keyword: "maxLength", params: { limit: 256 }, message: "must NOT have more than 256 characters" }];
|
|
17334
18260
|
return false;
|
|
17335
18261
|
} else {
|
|
17336
18262
|
if (func1(data4) < 1) {
|
|
17337
|
-
|
|
18263
|
+
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" }];
|
|
17338
18264
|
return false;
|
|
17339
18265
|
} else {
|
|
17340
|
-
if (!
|
|
17341
|
-
|
|
18266
|
+
if (!pattern32.test(data4)) {
|
|
18267
|
+
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]+$"' }];
|
|
17342
18268
|
return false;
|
|
17343
18269
|
}
|
|
17344
18270
|
}
|
|
17345
18271
|
}
|
|
17346
18272
|
} else {
|
|
17347
|
-
|
|
18273
|
+
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/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
17348
18274
|
return false;
|
|
17349
18275
|
}
|
|
17350
18276
|
}
|
|
@@ -17359,7 +18285,7 @@ function validate61(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
17359
18285
|
if (errors === _errs14) {
|
|
17360
18286
|
if (Array.isArray(data5)) {
|
|
17361
18287
|
if (data5.length > 100) {
|
|
17362
|
-
|
|
18288
|
+
validate66.errors = [{ instancePath: instancePath + "/apiKeys/" + i0 + "/permissions", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/UserApiKeyListResponse/properties/apiKeys/items/properties/permissions/maxItems", keyword: "maxItems", params: { limit: 100 }, message: "must NOT have more than 100 items" }];
|
|
17363
18289
|
return false;
|
|
17364
18290
|
} else {
|
|
17365
18291
|
var valid4 = true;
|
|
@@ -17370,21 +18296,21 @@ function validate61(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
17370
18296
|
if (errors === _errs16) {
|
|
17371
18297
|
if (typeof data6 === "string") {
|
|
17372
18298
|
if (func1(data6) > 128) {
|
|
17373
|
-
|
|
18299
|
+
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/maxLength", keyword: "maxLength", params: { limit: 128 }, message: "must NOT have more than 128 characters" }];
|
|
17374
18300
|
return false;
|
|
17375
18301
|
} else {
|
|
17376
18302
|
if (func1(data6) < 1) {
|
|
17377
|
-
|
|
18303
|
+
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" }];
|
|
17378
18304
|
return false;
|
|
17379
18305
|
} else {
|
|
17380
|
-
if (!
|
|
17381
|
-
|
|
18306
|
+
if (!pattern33.test(data6)) {
|
|
18307
|
+
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]+$"' }];
|
|
17382
18308
|
return false;
|
|
17383
18309
|
}
|
|
17384
18310
|
}
|
|
17385
18311
|
}
|
|
17386
18312
|
} else {
|
|
17387
|
-
|
|
18313
|
+
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/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
17388
18314
|
return false;
|
|
17389
18315
|
}
|
|
17390
18316
|
}
|
|
@@ -17395,7 +18321,7 @@ function validate61(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
17395
18321
|
}
|
|
17396
18322
|
}
|
|
17397
18323
|
} else {
|
|
17398
|
-
|
|
18324
|
+
validate66.errors = [{ instancePath: instancePath + "/apiKeys/" + i0 + "/permissions", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/UserApiKeyListResponse/properties/apiKeys/items/properties/permissions/type", keyword: "type", params: { type: "array" }, message: "must be array" }];
|
|
17399
18325
|
return false;
|
|
17400
18326
|
}
|
|
17401
18327
|
}
|
|
@@ -17464,7 +18390,7 @@ function validate61(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
17464
18390
|
vErrors.push(err4);
|
|
17465
18391
|
}
|
|
17466
18392
|
errors++;
|
|
17467
|
-
|
|
18393
|
+
validate66.errors = vErrors;
|
|
17468
18394
|
return false;
|
|
17469
18395
|
} else {
|
|
17470
18396
|
errors = _errs19;
|
|
@@ -17541,7 +18467,7 @@ function validate61(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
17541
18467
|
vErrors.push(err9);
|
|
17542
18468
|
}
|
|
17543
18469
|
errors++;
|
|
17544
|
-
|
|
18470
|
+
validate66.errors = vErrors;
|
|
17545
18471
|
return false;
|
|
17546
18472
|
} else {
|
|
17547
18473
|
errors = _errs25;
|
|
@@ -17562,17 +18488,17 @@ function validate61(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
17562
18488
|
let data9 = data1.createdAt;
|
|
17563
18489
|
const _errs30 = errors;
|
|
17564
18490
|
if (!(typeof data9 == "number" && (!(data9 % 1) && !isNaN(data9)) && isFinite(data9))) {
|
|
17565
|
-
|
|
18491
|
+
validate66.errors = [{ instancePath: instancePath + "/apiKeys/" + i0 + "/createdAt", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/UserApiKeyListResponse/properties/apiKeys/items/properties/createdAt/type", keyword: "type", params: { type: "integer" }, message: "must be integer" }];
|
|
17566
18492
|
return false;
|
|
17567
18493
|
}
|
|
17568
18494
|
if (errors === _errs30) {
|
|
17569
18495
|
if (typeof data9 == "number" && isFinite(data9)) {
|
|
17570
18496
|
if (data9 > 9007199254740991 || isNaN(data9)) {
|
|
17571
|
-
|
|
18497
|
+
validate66.errors = [{ instancePath: instancePath + "/apiKeys/" + i0 + "/createdAt", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/UserApiKeyListResponse/properties/apiKeys/items/properties/createdAt/maximum", keyword: "maximum", params: { comparison: "<=", limit: 9007199254740991 }, message: "must be <= 9007199254740991" }];
|
|
17572
18498
|
return false;
|
|
17573
18499
|
} else {
|
|
17574
18500
|
if (data9 < 0 || isNaN(data9)) {
|
|
17575
|
-
|
|
18501
|
+
validate66.errors = [{ instancePath: instancePath + "/apiKeys/" + i0 + "/createdAt", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/UserApiKeyListResponse/properties/apiKeys/items/properties/createdAt/minimum", keyword: "minimum", params: { comparison: ">=", limit: 0 }, message: "must be >= 0" }];
|
|
17576
18502
|
return false;
|
|
17577
18503
|
}
|
|
17578
18504
|
}
|
|
@@ -17587,17 +18513,17 @@ function validate61(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
17587
18513
|
let data10 = data1.updatedAt;
|
|
17588
18514
|
const _errs32 = errors;
|
|
17589
18515
|
if (!(typeof data10 == "number" && (!(data10 % 1) && !isNaN(data10)) && isFinite(data10))) {
|
|
17590
|
-
|
|
18516
|
+
validate66.errors = [{ instancePath: instancePath + "/apiKeys/" + i0 + "/updatedAt", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/UserApiKeyListResponse/properties/apiKeys/items/properties/updatedAt/type", keyword: "type", params: { type: "integer" }, message: "must be integer" }];
|
|
17591
18517
|
return false;
|
|
17592
18518
|
}
|
|
17593
18519
|
if (errors === _errs32) {
|
|
17594
18520
|
if (typeof data10 == "number" && isFinite(data10)) {
|
|
17595
18521
|
if (data10 > 9007199254740991 || isNaN(data10)) {
|
|
17596
|
-
|
|
18522
|
+
validate66.errors = [{ instancePath: instancePath + "/apiKeys/" + i0 + "/updatedAt", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/UserApiKeyListResponse/properties/apiKeys/items/properties/updatedAt/maximum", keyword: "maximum", params: { comparison: "<=", limit: 9007199254740991 }, message: "must be <= 9007199254740991" }];
|
|
17597
18523
|
return false;
|
|
17598
18524
|
} else {
|
|
17599
18525
|
if (data10 < 0 || isNaN(data10)) {
|
|
17600
|
-
|
|
18526
|
+
validate66.errors = [{ instancePath: instancePath + "/apiKeys/" + i0 + "/updatedAt", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/UserApiKeyListResponse/properties/apiKeys/items/properties/updatedAt/minimum", keyword: "minimum", params: { comparison: ">=", limit: 0 }, message: "must be >= 0" }];
|
|
17601
18527
|
return false;
|
|
17602
18528
|
}
|
|
17603
18529
|
}
|
|
@@ -17617,7 +18543,7 @@ function validate61(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
17617
18543
|
}
|
|
17618
18544
|
}
|
|
17619
18545
|
} else {
|
|
17620
|
-
|
|
18546
|
+
validate66.errors = [{ instancePath: instancePath + "/apiKeys/" + i0, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/UserApiKeyListResponse/properties/apiKeys/items/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
|
|
17621
18547
|
return false;
|
|
17622
18548
|
}
|
|
17623
18549
|
}
|
|
@@ -17628,7 +18554,7 @@ function validate61(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
17628
18554
|
}
|
|
17629
18555
|
}
|
|
17630
18556
|
} else {
|
|
17631
|
-
|
|
18557
|
+
validate66.errors = [{ instancePath: instancePath + "/apiKeys", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/UserApiKeyListResponse/properties/apiKeys/type", keyword: "type", params: { type: "array" }, message: "must be array" }];
|
|
17632
18558
|
return false;
|
|
17633
18559
|
}
|
|
17634
18560
|
}
|
|
@@ -17663,7 +18589,7 @@ function validate61(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
17663
18589
|
}
|
|
17664
18590
|
errors++;
|
|
17665
18591
|
} else {
|
|
17666
|
-
if (!
|
|
18592
|
+
if (!pattern29.test(data11)) {
|
|
17667
18593
|
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_-]+$"' };
|
|
17668
18594
|
if (vErrors === null) {
|
|
17669
18595
|
vErrors = [err12];
|
|
@@ -17706,7 +18632,7 @@ function validate61(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
17706
18632
|
vErrors.push(err15);
|
|
17707
18633
|
}
|
|
17708
18634
|
errors++;
|
|
17709
|
-
|
|
18635
|
+
validate66.errors = vErrors;
|
|
17710
18636
|
return false;
|
|
17711
18637
|
} else {
|
|
17712
18638
|
errors = _errs35;
|
|
@@ -17726,19 +18652,19 @@ function validate61(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
17726
18652
|
}
|
|
17727
18653
|
}
|
|
17728
18654
|
} else {
|
|
17729
|
-
|
|
18655
|
+
validate66.errors = [{ instancePath, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/UserApiKeyListResponse/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
|
|
17730
18656
|
return false;
|
|
17731
18657
|
}
|
|
17732
18658
|
}
|
|
17733
|
-
|
|
18659
|
+
validate66.errors = vErrors;
|
|
17734
18660
|
return errors === 0;
|
|
17735
18661
|
}
|
|
17736
|
-
|
|
17737
|
-
function
|
|
18662
|
+
validate66.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
|
|
18663
|
+
function validate67(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
17738
18664
|
;
|
|
17739
18665
|
let vErrors = null;
|
|
17740
18666
|
let errors = 0;
|
|
17741
|
-
const evaluated0 =
|
|
18667
|
+
const evaluated0 = validate67.evaluated;
|
|
17742
18668
|
if (evaluated0.dynamicProps) {
|
|
17743
18669
|
evaluated0.props = void 0;
|
|
17744
18670
|
}
|
|
@@ -17750,13 +18676,13 @@ function validate62(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
17750
18676
|
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
17751
18677
|
let missing0;
|
|
17752
18678
|
if (data.id === void 0 && (missing0 = "id") || data.name === void 0 && (missing0 = "name") || data.obfuscatedValue === void 0 && (missing0 = "obfuscatedValue") || data.permissions === void 0 && (missing0 = "permissions") || data.lastUsedAt === void 0 && (missing0 = "lastUsedAt") || data.expiresAt === void 0 && (missing0 = "expiresAt") || data.createdAt === void 0 && (missing0 = "createdAt") || data.updatedAt === void 0 && (missing0 = "updatedAt")) {
|
|
17753
|
-
|
|
18679
|
+
validate67.errors = [{ instancePath, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/UserApiKeyMetadata/required", keyword: "required", params: { missingProperty: missing0 }, message: "must have required property '" + missing0 + "'" }];
|
|
17754
18680
|
return false;
|
|
17755
18681
|
} else {
|
|
17756
18682
|
const _errs2 = errors;
|
|
17757
18683
|
for (const key0 in data) {
|
|
17758
18684
|
if (!(key0 === "id" || key0 === "name" || key0 === "obfuscatedValue" || key0 === "permissions" || key0 === "lastUsedAt" || key0 === "expiresAt" || key0 === "createdAt" || key0 === "updatedAt")) {
|
|
17759
|
-
|
|
18685
|
+
validate67.errors = [{ instancePath, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/UserApiKeyMetadata/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key0 }, message: "must NOT have additional properties" }];
|
|
17760
18686
|
return false;
|
|
17761
18687
|
break;
|
|
17762
18688
|
}
|
|
@@ -17768,21 +18694,21 @@ function validate62(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
17768
18694
|
if (errors === _errs3) {
|
|
17769
18695
|
if (typeof data0 === "string") {
|
|
17770
18696
|
if (func1(data0) > 256) {
|
|
17771
|
-
|
|
18697
|
+
validate67.errors = [{ instancePath: instancePath + "/id", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/UserApiKeyMetadata/properties/id/maxLength", keyword: "maxLength", params: { limit: 256 }, message: "must NOT have more than 256 characters" }];
|
|
17772
18698
|
return false;
|
|
17773
18699
|
} else {
|
|
17774
18700
|
if (func1(data0) < 9) {
|
|
17775
|
-
|
|
18701
|
+
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" }];
|
|
17776
18702
|
return false;
|
|
17777
18703
|
} else {
|
|
17778
|
-
if (!
|
|
17779
|
-
|
|
18704
|
+
if (!pattern29.test(data0)) {
|
|
18705
|
+
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_-]+$"' }];
|
|
17780
18706
|
return false;
|
|
17781
18707
|
}
|
|
17782
18708
|
}
|
|
17783
18709
|
}
|
|
17784
18710
|
} else {
|
|
17785
|
-
|
|
18711
|
+
validate67.errors = [{ instancePath: instancePath + "/id", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/UserApiKeyMetadata/properties/id/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
17786
18712
|
return false;
|
|
17787
18713
|
}
|
|
17788
18714
|
}
|
|
@@ -17797,21 +18723,21 @@ function validate62(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
17797
18723
|
if (errors === _errs5) {
|
|
17798
18724
|
if (typeof data1 === "string") {
|
|
17799
18725
|
if (func1(data1) > 128) {
|
|
17800
|
-
|
|
18726
|
+
validate67.errors = [{ instancePath: instancePath + "/name", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/UserApiKeyMetadata/properties/name/maxLength", keyword: "maxLength", params: { limit: 128 }, message: "must NOT have more than 128 characters" }];
|
|
17801
18727
|
return false;
|
|
17802
18728
|
} else {
|
|
17803
18729
|
if (func1(data1) < 1) {
|
|
17804
|
-
|
|
18730
|
+
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" }];
|
|
17805
18731
|
return false;
|
|
17806
18732
|
} else {
|
|
17807
|
-
if (!
|
|
17808
|
-
|
|
18733
|
+
if (!pattern31.test(data1)) {
|
|
18734
|
+
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])?$"' }];
|
|
17809
18735
|
return false;
|
|
17810
18736
|
}
|
|
17811
18737
|
}
|
|
17812
18738
|
}
|
|
17813
18739
|
} else {
|
|
17814
|
-
|
|
18740
|
+
validate67.errors = [{ instancePath: instancePath + "/name", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/UserApiKeyMetadata/properties/name/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
17815
18741
|
return false;
|
|
17816
18742
|
}
|
|
17817
18743
|
}
|
|
@@ -17826,21 +18752,21 @@ function validate62(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
17826
18752
|
if (errors === _errs7) {
|
|
17827
18753
|
if (typeof data2 === "string") {
|
|
17828
18754
|
if (func1(data2) > 256) {
|
|
17829
|
-
|
|
18755
|
+
validate67.errors = [{ instancePath: instancePath + "/obfuscatedValue", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/UserApiKeyMetadata/properties/obfuscatedValue/maxLength", keyword: "maxLength", params: { limit: 256 }, message: "must NOT have more than 256 characters" }];
|
|
17830
18756
|
return false;
|
|
17831
18757
|
} else {
|
|
17832
18758
|
if (func1(data2) < 1) {
|
|
17833
|
-
|
|
18759
|
+
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" }];
|
|
17834
18760
|
return false;
|
|
17835
18761
|
} else {
|
|
17836
|
-
if (!
|
|
17837
|
-
|
|
18762
|
+
if (!pattern32.test(data2)) {
|
|
18763
|
+
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]+$"' }];
|
|
17838
18764
|
return false;
|
|
17839
18765
|
}
|
|
17840
18766
|
}
|
|
17841
18767
|
}
|
|
17842
18768
|
} else {
|
|
17843
|
-
|
|
18769
|
+
validate67.errors = [{ instancePath: instancePath + "/obfuscatedValue", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/UserApiKeyMetadata/properties/obfuscatedValue/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
17844
18770
|
return false;
|
|
17845
18771
|
}
|
|
17846
18772
|
}
|
|
@@ -17855,7 +18781,7 @@ function validate62(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
17855
18781
|
if (errors === _errs9) {
|
|
17856
18782
|
if (Array.isArray(data3)) {
|
|
17857
18783
|
if (data3.length > 100) {
|
|
17858
|
-
|
|
18784
|
+
validate67.errors = [{ instancePath: instancePath + "/permissions", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/UserApiKeyMetadata/properties/permissions/maxItems", keyword: "maxItems", params: { limit: 100 }, message: "must NOT have more than 100 items" }];
|
|
17859
18785
|
return false;
|
|
17860
18786
|
} else {
|
|
17861
18787
|
var valid2 = true;
|
|
@@ -17866,21 +18792,21 @@ function validate62(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
17866
18792
|
if (errors === _errs11) {
|
|
17867
18793
|
if (typeof data4 === "string") {
|
|
17868
18794
|
if (func1(data4) > 128) {
|
|
17869
|
-
|
|
18795
|
+
validate67.errors = [{ instancePath: instancePath + "/permissions/" + i0, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/UserApiKeyMetadata/properties/permissions/items/maxLength", keyword: "maxLength", params: { limit: 128 }, message: "must NOT have more than 128 characters" }];
|
|
17870
18796
|
return false;
|
|
17871
18797
|
} else {
|
|
17872
18798
|
if (func1(data4) < 1) {
|
|
17873
|
-
|
|
18799
|
+
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" }];
|
|
17874
18800
|
return false;
|
|
17875
18801
|
} else {
|
|
17876
|
-
if (!
|
|
17877
|
-
|
|
18802
|
+
if (!pattern33.test(data4)) {
|
|
18803
|
+
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]+$"' }];
|
|
17878
18804
|
return false;
|
|
17879
18805
|
}
|
|
17880
18806
|
}
|
|
17881
18807
|
}
|
|
17882
18808
|
} else {
|
|
17883
|
-
|
|
18809
|
+
validate67.errors = [{ instancePath: instancePath + "/permissions/" + i0, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/UserApiKeyMetadata/properties/permissions/items/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
17884
18810
|
return false;
|
|
17885
18811
|
}
|
|
17886
18812
|
}
|
|
@@ -17891,7 +18817,7 @@ function validate62(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
17891
18817
|
}
|
|
17892
18818
|
}
|
|
17893
18819
|
} else {
|
|
17894
|
-
|
|
18820
|
+
validate67.errors = [{ instancePath: instancePath + "/permissions", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/UserApiKeyMetadata/properties/permissions/type", keyword: "type", params: { type: "array" }, message: "must be array" }];
|
|
17895
18821
|
return false;
|
|
17896
18822
|
}
|
|
17897
18823
|
}
|
|
@@ -17960,7 +18886,7 @@ function validate62(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
17960
18886
|
vErrors.push(err4);
|
|
17961
18887
|
}
|
|
17962
18888
|
errors++;
|
|
17963
|
-
|
|
18889
|
+
validate67.errors = vErrors;
|
|
17964
18890
|
return false;
|
|
17965
18891
|
} else {
|
|
17966
18892
|
errors = _errs14;
|
|
@@ -18037,7 +18963,7 @@ function validate62(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
18037
18963
|
vErrors.push(err9);
|
|
18038
18964
|
}
|
|
18039
18965
|
errors++;
|
|
18040
|
-
|
|
18966
|
+
validate67.errors = vErrors;
|
|
18041
18967
|
return false;
|
|
18042
18968
|
} else {
|
|
18043
18969
|
errors = _errs20;
|
|
@@ -18058,17 +18984,17 @@ function validate62(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
18058
18984
|
let data7 = data.createdAt;
|
|
18059
18985
|
const _errs25 = errors;
|
|
18060
18986
|
if (!(typeof data7 == "number" && (!(data7 % 1) && !isNaN(data7)) && isFinite(data7))) {
|
|
18061
|
-
|
|
18987
|
+
validate67.errors = [{ instancePath: instancePath + "/createdAt", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/UserApiKeyMetadata/properties/createdAt/type", keyword: "type", params: { type: "integer" }, message: "must be integer" }];
|
|
18062
18988
|
return false;
|
|
18063
18989
|
}
|
|
18064
18990
|
if (errors === _errs25) {
|
|
18065
18991
|
if (typeof data7 == "number" && isFinite(data7)) {
|
|
18066
18992
|
if (data7 > 9007199254740991 || isNaN(data7)) {
|
|
18067
|
-
|
|
18993
|
+
validate67.errors = [{ instancePath: instancePath + "/createdAt", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/UserApiKeyMetadata/properties/createdAt/maximum", keyword: "maximum", params: { comparison: "<=", limit: 9007199254740991 }, message: "must be <= 9007199254740991" }];
|
|
18068
18994
|
return false;
|
|
18069
18995
|
} else {
|
|
18070
18996
|
if (data7 < 0 || isNaN(data7)) {
|
|
18071
|
-
|
|
18997
|
+
validate67.errors = [{ instancePath: instancePath + "/createdAt", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/UserApiKeyMetadata/properties/createdAt/minimum", keyword: "minimum", params: { comparison: ">=", limit: 0 }, message: "must be >= 0" }];
|
|
18072
18998
|
return false;
|
|
18073
18999
|
}
|
|
18074
19000
|
}
|
|
@@ -18083,17 +19009,17 @@ function validate62(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
18083
19009
|
let data8 = data.updatedAt;
|
|
18084
19010
|
const _errs27 = errors;
|
|
18085
19011
|
if (!(typeof data8 == "number" && (!(data8 % 1) && !isNaN(data8)) && isFinite(data8))) {
|
|
18086
|
-
|
|
19012
|
+
validate67.errors = [{ instancePath: instancePath + "/updatedAt", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/UserApiKeyMetadata/properties/updatedAt/type", keyword: "type", params: { type: "integer" }, message: "must be integer" }];
|
|
18087
19013
|
return false;
|
|
18088
19014
|
}
|
|
18089
19015
|
if (errors === _errs27) {
|
|
18090
19016
|
if (typeof data8 == "number" && isFinite(data8)) {
|
|
18091
19017
|
if (data8 > 9007199254740991 || isNaN(data8)) {
|
|
18092
|
-
|
|
19018
|
+
validate67.errors = [{ instancePath: instancePath + "/updatedAt", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/UserApiKeyMetadata/properties/updatedAt/maximum", keyword: "maximum", params: { comparison: "<=", limit: 9007199254740991 }, message: "must be <= 9007199254740991" }];
|
|
18093
19019
|
return false;
|
|
18094
19020
|
} else {
|
|
18095
19021
|
if (data8 < 0 || isNaN(data8)) {
|
|
18096
|
-
|
|
19022
|
+
validate67.errors = [{ instancePath: instancePath + "/updatedAt", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/UserApiKeyMetadata/properties/updatedAt/minimum", keyword: "minimum", params: { comparison: ">=", limit: 0 }, message: "must be >= 0" }];
|
|
18097
19023
|
return false;
|
|
18098
19024
|
}
|
|
18099
19025
|
}
|
|
@@ -18113,19 +19039,19 @@ function validate62(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
18113
19039
|
}
|
|
18114
19040
|
}
|
|
18115
19041
|
} else {
|
|
18116
|
-
|
|
19042
|
+
validate67.errors = [{ instancePath, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/UserApiKeyMetadata/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
|
|
18117
19043
|
return false;
|
|
18118
19044
|
}
|
|
18119
19045
|
}
|
|
18120
|
-
|
|
19046
|
+
validate67.errors = vErrors;
|
|
18121
19047
|
return errors === 0;
|
|
18122
19048
|
}
|
|
18123
|
-
|
|
18124
|
-
function
|
|
19049
|
+
validate67.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
|
|
19050
|
+
function validate68(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
18125
19051
|
;
|
|
18126
19052
|
let vErrors = null;
|
|
18127
19053
|
let errors = 0;
|
|
18128
|
-
const evaluated0 =
|
|
19054
|
+
const evaluated0 = validate68.evaluated;
|
|
18129
19055
|
if (evaluated0.dynamicProps) {
|
|
18130
19056
|
evaluated0.props = void 0;
|
|
18131
19057
|
}
|
|
@@ -18137,13 +19063,13 @@ function validate63(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
18137
19063
|
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
18138
19064
|
let missing0;
|
|
18139
19065
|
if (data.requestId === void 0 && (missing0 = "requestId") || data.name === void 0 && (missing0 = "name")) {
|
|
18140
|
-
|
|
19066
|
+
validate68.errors = [{ instancePath, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/UserApiKeyMintRequest/required", keyword: "required", params: { missingProperty: missing0 }, message: "must have required property '" + missing0 + "'" }];
|
|
18141
19067
|
return false;
|
|
18142
19068
|
} else {
|
|
18143
19069
|
const _errs2 = errors;
|
|
18144
19070
|
for (const key0 in data) {
|
|
18145
19071
|
if (!(key0 === "requestId" || key0 === "name" || key0 === "expiresAt")) {
|
|
18146
|
-
|
|
19072
|
+
validate68.errors = [{ instancePath, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/UserApiKeyMintRequest/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key0 }, message: "must NOT have additional properties" }];
|
|
18147
19073
|
return false;
|
|
18148
19074
|
break;
|
|
18149
19075
|
}
|
|
@@ -18154,12 +19080,12 @@ function validate63(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
18154
19080
|
const _errs3 = errors;
|
|
18155
19081
|
if (errors === _errs3) {
|
|
18156
19082
|
if (typeof data0 === "string") {
|
|
18157
|
-
if (!
|
|
18158
|
-
|
|
19083
|
+
if (!pattern5.test(data0)) {
|
|
19084
|
+
validate68.errors = [{ instancePath: instancePath + "/requestId", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/UserApiKeyMintRequest/properties/requestId/pattern", keyword: "pattern", params: { pattern: "^[a-f0-9]{64}$" }, message: 'must match pattern "^[a-f0-9]{64}$"' }];
|
|
18159
19085
|
return false;
|
|
18160
19086
|
}
|
|
18161
19087
|
} else {
|
|
18162
|
-
|
|
19088
|
+
validate68.errors = [{ instancePath: instancePath + "/requestId", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/UserApiKeyMintRequest/properties/requestId/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
18163
19089
|
return false;
|
|
18164
19090
|
}
|
|
18165
19091
|
}
|
|
@@ -18174,21 +19100,21 @@ function validate63(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
18174
19100
|
if (errors === _errs5) {
|
|
18175
19101
|
if (typeof data1 === "string") {
|
|
18176
19102
|
if (func1(data1) > 128) {
|
|
18177
|
-
|
|
19103
|
+
validate68.errors = [{ instancePath: instancePath + "/name", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/UserApiKeyMintRequest/properties/name/maxLength", keyword: "maxLength", params: { limit: 128 }, message: "must NOT have more than 128 characters" }];
|
|
18178
19104
|
return false;
|
|
18179
19105
|
} else {
|
|
18180
19106
|
if (func1(data1) < 1) {
|
|
18181
|
-
|
|
19107
|
+
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" }];
|
|
18182
19108
|
return false;
|
|
18183
19109
|
} else {
|
|
18184
|
-
if (!
|
|
18185
|
-
|
|
19110
|
+
if (!pattern31.test(data1)) {
|
|
19111
|
+
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])?$"' }];
|
|
18186
19112
|
return false;
|
|
18187
19113
|
}
|
|
18188
19114
|
}
|
|
18189
19115
|
}
|
|
18190
19116
|
} else {
|
|
18191
|
-
|
|
19117
|
+
validate68.errors = [{ instancePath: instancePath + "/name", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/UserApiKeyMintRequest/properties/name/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
18192
19118
|
return false;
|
|
18193
19119
|
}
|
|
18194
19120
|
}
|
|
@@ -18201,17 +19127,17 @@ function validate63(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
18201
19127
|
let data2 = data.expiresAt;
|
|
18202
19128
|
const _errs7 = errors;
|
|
18203
19129
|
if (!(typeof data2 == "number" && (!(data2 % 1) && !isNaN(data2)) && isFinite(data2))) {
|
|
18204
|
-
|
|
19130
|
+
validate68.errors = [{ instancePath: instancePath + "/expiresAt", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/UserApiKeyMintRequest/properties/expiresAt/type", keyword: "type", params: { type: "integer" }, message: "must be integer" }];
|
|
18205
19131
|
return false;
|
|
18206
19132
|
}
|
|
18207
19133
|
if (errors === _errs7) {
|
|
18208
19134
|
if (typeof data2 == "number" && isFinite(data2)) {
|
|
18209
19135
|
if (data2 > 9007199254740991 || isNaN(data2)) {
|
|
18210
|
-
|
|
19136
|
+
validate68.errors = [{ instancePath: instancePath + "/expiresAt", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/UserApiKeyMintRequest/properties/expiresAt/maximum", keyword: "maximum", params: { comparison: "<=", limit: 9007199254740991 }, message: "must be <= 9007199254740991" }];
|
|
18211
19137
|
return false;
|
|
18212
19138
|
} else {
|
|
18213
19139
|
if (data2 < 0 || isNaN(data2)) {
|
|
18214
|
-
|
|
19140
|
+
validate68.errors = [{ instancePath: instancePath + "/expiresAt", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/UserApiKeyMintRequest/properties/expiresAt/minimum", keyword: "minimum", params: { comparison: ">=", limit: 0 }, message: "must be >= 0" }];
|
|
18215
19141
|
return false;
|
|
18216
19142
|
}
|
|
18217
19143
|
}
|
|
@@ -18226,20 +19152,20 @@ function validate63(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
18226
19152
|
}
|
|
18227
19153
|
}
|
|
18228
19154
|
} else {
|
|
18229
|
-
|
|
19155
|
+
validate68.errors = [{ instancePath, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/UserApiKeyMintRequest/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
|
|
18230
19156
|
return false;
|
|
18231
19157
|
}
|
|
18232
19158
|
}
|
|
18233
|
-
|
|
19159
|
+
validate68.errors = vErrors;
|
|
18234
19160
|
return errors === 0;
|
|
18235
19161
|
}
|
|
18236
|
-
|
|
18237
|
-
var
|
|
18238
|
-
function
|
|
19162
|
+
validate68.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
|
|
19163
|
+
var pattern45 = new RegExp("^sk_[\\x21-\\x7e]+(?: [\\x21-\\x7e]+)*$", "u");
|
|
19164
|
+
function validate69(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
18239
19165
|
;
|
|
18240
19166
|
let vErrors = null;
|
|
18241
19167
|
let errors = 0;
|
|
18242
|
-
const evaluated0 =
|
|
19168
|
+
const evaluated0 = validate69.evaluated;
|
|
18243
19169
|
if (evaluated0.dynamicProps) {
|
|
18244
19170
|
evaluated0.props = void 0;
|
|
18245
19171
|
}
|
|
@@ -18251,13 +19177,13 @@ function validate64(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
18251
19177
|
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
18252
19178
|
let missing0;
|
|
18253
19179
|
if (data.apiKey === void 0 && (missing0 = "apiKey") || data.secret === void 0 && (missing0 = "secret")) {
|
|
18254
|
-
|
|
19180
|
+
validate69.errors = [{ instancePath, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/UserApiKeyMintResponse/required", keyword: "required", params: { missingProperty: missing0 }, message: "must have required property '" + missing0 + "'" }];
|
|
18255
19181
|
return false;
|
|
18256
19182
|
} else {
|
|
18257
19183
|
const _errs2 = errors;
|
|
18258
19184
|
for (const key0 in data) {
|
|
18259
19185
|
if (!(key0 === "apiKey" || key0 === "secret")) {
|
|
18260
|
-
|
|
19186
|
+
validate69.errors = [{ instancePath, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/UserApiKeyMintResponse/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key0 }, message: "must NOT have additional properties" }];
|
|
18261
19187
|
return false;
|
|
18262
19188
|
break;
|
|
18263
19189
|
}
|
|
@@ -18270,13 +19196,13 @@ function validate64(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
18270
19196
|
if (data0 && typeof data0 == "object" && !Array.isArray(data0)) {
|
|
18271
19197
|
let missing1;
|
|
18272
19198
|
if (data0.id === void 0 && (missing1 = "id") || data0.name === void 0 && (missing1 = "name") || data0.obfuscatedValue === void 0 && (missing1 = "obfuscatedValue") || data0.permissions === void 0 && (missing1 = "permissions") || data0.lastUsedAt === void 0 && (missing1 = "lastUsedAt") || data0.expiresAt === void 0 && (missing1 = "expiresAt") || data0.createdAt === void 0 && (missing1 = "createdAt") || data0.updatedAt === void 0 && (missing1 = "updatedAt")) {
|
|
18273
|
-
|
|
19199
|
+
validate69.errors = [{ instancePath: instancePath + "/apiKey", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/UserApiKeyMintResponse/properties/apiKey/required", keyword: "required", params: { missingProperty: missing1 }, message: "must have required property '" + missing1 + "'" }];
|
|
18274
19200
|
return false;
|
|
18275
19201
|
} else {
|
|
18276
19202
|
const _errs5 = errors;
|
|
18277
19203
|
for (const key1 in data0) {
|
|
18278
19204
|
if (!(key1 === "id" || key1 === "name" || key1 === "obfuscatedValue" || key1 === "permissions" || key1 === "lastUsedAt" || key1 === "expiresAt" || key1 === "createdAt" || key1 === "updatedAt")) {
|
|
18279
|
-
|
|
19205
|
+
validate69.errors = [{ instancePath: instancePath + "/apiKey", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/UserApiKeyMintResponse/properties/apiKey/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key1 }, message: "must NOT have additional properties" }];
|
|
18280
19206
|
return false;
|
|
18281
19207
|
break;
|
|
18282
19208
|
}
|
|
@@ -18288,21 +19214,21 @@ function validate64(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
18288
19214
|
if (errors === _errs6) {
|
|
18289
19215
|
if (typeof data1 === "string") {
|
|
18290
19216
|
if (func1(data1) > 256) {
|
|
18291
|
-
|
|
19217
|
+
validate69.errors = [{ instancePath: instancePath + "/apiKey/id", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/UserApiKeyMintResponse/properties/apiKey/properties/id/maxLength", keyword: "maxLength", params: { limit: 256 }, message: "must NOT have more than 256 characters" }];
|
|
18292
19218
|
return false;
|
|
18293
19219
|
} else {
|
|
18294
19220
|
if (func1(data1) < 9) {
|
|
18295
|
-
|
|
19221
|
+
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" }];
|
|
18296
19222
|
return false;
|
|
18297
19223
|
} else {
|
|
18298
|
-
if (!
|
|
18299
|
-
|
|
19224
|
+
if (!pattern29.test(data1)) {
|
|
19225
|
+
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_-]+$"' }];
|
|
18300
19226
|
return false;
|
|
18301
19227
|
}
|
|
18302
19228
|
}
|
|
18303
19229
|
}
|
|
18304
19230
|
} else {
|
|
18305
|
-
|
|
19231
|
+
validate69.errors = [{ instancePath: instancePath + "/apiKey/id", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/UserApiKeyMintResponse/properties/apiKey/properties/id/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
18306
19232
|
return false;
|
|
18307
19233
|
}
|
|
18308
19234
|
}
|
|
@@ -18317,21 +19243,21 @@ function validate64(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
18317
19243
|
if (errors === _errs8) {
|
|
18318
19244
|
if (typeof data2 === "string") {
|
|
18319
19245
|
if (func1(data2) > 128) {
|
|
18320
|
-
|
|
19246
|
+
validate69.errors = [{ instancePath: instancePath + "/apiKey/name", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/UserApiKeyMintResponse/properties/apiKey/properties/name/maxLength", keyword: "maxLength", params: { limit: 128 }, message: "must NOT have more than 128 characters" }];
|
|
18321
19247
|
return false;
|
|
18322
19248
|
} else {
|
|
18323
19249
|
if (func1(data2) < 1) {
|
|
18324
|
-
|
|
19250
|
+
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" }];
|
|
18325
19251
|
return false;
|
|
18326
19252
|
} else {
|
|
18327
|
-
if (!
|
|
18328
|
-
|
|
19253
|
+
if (!pattern31.test(data2)) {
|
|
19254
|
+
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])?$"' }];
|
|
18329
19255
|
return false;
|
|
18330
19256
|
}
|
|
18331
19257
|
}
|
|
18332
19258
|
}
|
|
18333
19259
|
} else {
|
|
18334
|
-
|
|
19260
|
+
validate69.errors = [{ instancePath: instancePath + "/apiKey/name", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/UserApiKeyMintResponse/properties/apiKey/properties/name/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
18335
19261
|
return false;
|
|
18336
19262
|
}
|
|
18337
19263
|
}
|
|
@@ -18346,21 +19272,21 @@ function validate64(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
18346
19272
|
if (errors === _errs10) {
|
|
18347
19273
|
if (typeof data3 === "string") {
|
|
18348
19274
|
if (func1(data3) > 256) {
|
|
18349
|
-
|
|
19275
|
+
validate69.errors = [{ instancePath: instancePath + "/apiKey/obfuscatedValue", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/UserApiKeyMintResponse/properties/apiKey/properties/obfuscatedValue/maxLength", keyword: "maxLength", params: { limit: 256 }, message: "must NOT have more than 256 characters" }];
|
|
18350
19276
|
return false;
|
|
18351
19277
|
} else {
|
|
18352
19278
|
if (func1(data3) < 1) {
|
|
18353
|
-
|
|
19279
|
+
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" }];
|
|
18354
19280
|
return false;
|
|
18355
19281
|
} else {
|
|
18356
|
-
if (!
|
|
18357
|
-
|
|
19282
|
+
if (!pattern32.test(data3)) {
|
|
19283
|
+
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]+$"' }];
|
|
18358
19284
|
return false;
|
|
18359
19285
|
}
|
|
18360
19286
|
}
|
|
18361
19287
|
}
|
|
18362
19288
|
} else {
|
|
18363
|
-
|
|
19289
|
+
validate69.errors = [{ instancePath: instancePath + "/apiKey/obfuscatedValue", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/UserApiKeyMintResponse/properties/apiKey/properties/obfuscatedValue/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
18364
19290
|
return false;
|
|
18365
19291
|
}
|
|
18366
19292
|
}
|
|
@@ -18375,7 +19301,7 @@ function validate64(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
18375
19301
|
if (errors === _errs12) {
|
|
18376
19302
|
if (Array.isArray(data4)) {
|
|
18377
19303
|
if (data4.length > 100) {
|
|
18378
|
-
|
|
19304
|
+
validate69.errors = [{ instancePath: instancePath + "/apiKey/permissions", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/UserApiKeyMintResponse/properties/apiKey/properties/permissions/maxItems", keyword: "maxItems", params: { limit: 100 }, message: "must NOT have more than 100 items" }];
|
|
18379
19305
|
return false;
|
|
18380
19306
|
} else {
|
|
18381
19307
|
var valid3 = true;
|
|
@@ -18386,21 +19312,21 @@ function validate64(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
18386
19312
|
if (errors === _errs14) {
|
|
18387
19313
|
if (typeof data5 === "string") {
|
|
18388
19314
|
if (func1(data5) > 128) {
|
|
18389
|
-
|
|
19315
|
+
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/maxLength", keyword: "maxLength", params: { limit: 128 }, message: "must NOT have more than 128 characters" }];
|
|
18390
19316
|
return false;
|
|
18391
19317
|
} else {
|
|
18392
19318
|
if (func1(data5) < 1) {
|
|
18393
|
-
|
|
19319
|
+
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" }];
|
|
18394
19320
|
return false;
|
|
18395
19321
|
} else {
|
|
18396
|
-
if (!
|
|
18397
|
-
|
|
19322
|
+
if (!pattern33.test(data5)) {
|
|
19323
|
+
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]+$"' }];
|
|
18398
19324
|
return false;
|
|
18399
19325
|
}
|
|
18400
19326
|
}
|
|
18401
19327
|
}
|
|
18402
19328
|
} else {
|
|
18403
|
-
|
|
19329
|
+
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/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
18404
19330
|
return false;
|
|
18405
19331
|
}
|
|
18406
19332
|
}
|
|
@@ -18411,7 +19337,7 @@ function validate64(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
18411
19337
|
}
|
|
18412
19338
|
}
|
|
18413
19339
|
} else {
|
|
18414
|
-
|
|
19340
|
+
validate69.errors = [{ instancePath: instancePath + "/apiKey/permissions", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/UserApiKeyMintResponse/properties/apiKey/properties/permissions/type", keyword: "type", params: { type: "array" }, message: "must be array" }];
|
|
18415
19341
|
return false;
|
|
18416
19342
|
}
|
|
18417
19343
|
}
|
|
@@ -18480,7 +19406,7 @@ function validate64(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
18480
19406
|
vErrors.push(err4);
|
|
18481
19407
|
}
|
|
18482
19408
|
errors++;
|
|
18483
|
-
|
|
19409
|
+
validate69.errors = vErrors;
|
|
18484
19410
|
return false;
|
|
18485
19411
|
} else {
|
|
18486
19412
|
errors = _errs17;
|
|
@@ -18557,7 +19483,7 @@ function validate64(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
18557
19483
|
vErrors.push(err9);
|
|
18558
19484
|
}
|
|
18559
19485
|
errors++;
|
|
18560
|
-
|
|
19486
|
+
validate69.errors = vErrors;
|
|
18561
19487
|
return false;
|
|
18562
19488
|
} else {
|
|
18563
19489
|
errors = _errs23;
|
|
@@ -18578,17 +19504,17 @@ function validate64(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
18578
19504
|
let data8 = data0.createdAt;
|
|
18579
19505
|
const _errs28 = errors;
|
|
18580
19506
|
if (!(typeof data8 == "number" && (!(data8 % 1) && !isNaN(data8)) && isFinite(data8))) {
|
|
18581
|
-
|
|
19507
|
+
validate69.errors = [{ instancePath: instancePath + "/apiKey/createdAt", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/UserApiKeyMintResponse/properties/apiKey/properties/createdAt/type", keyword: "type", params: { type: "integer" }, message: "must be integer" }];
|
|
18582
19508
|
return false;
|
|
18583
19509
|
}
|
|
18584
19510
|
if (errors === _errs28) {
|
|
18585
19511
|
if (typeof data8 == "number" && isFinite(data8)) {
|
|
18586
19512
|
if (data8 > 9007199254740991 || isNaN(data8)) {
|
|
18587
|
-
|
|
19513
|
+
validate69.errors = [{ instancePath: instancePath + "/apiKey/createdAt", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/UserApiKeyMintResponse/properties/apiKey/properties/createdAt/maximum", keyword: "maximum", params: { comparison: "<=", limit: 9007199254740991 }, message: "must be <= 9007199254740991" }];
|
|
18588
19514
|
return false;
|
|
18589
19515
|
} else {
|
|
18590
19516
|
if (data8 < 0 || isNaN(data8)) {
|
|
18591
|
-
|
|
19517
|
+
validate69.errors = [{ instancePath: instancePath + "/apiKey/createdAt", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/UserApiKeyMintResponse/properties/apiKey/properties/createdAt/minimum", keyword: "minimum", params: { comparison: ">=", limit: 0 }, message: "must be >= 0" }];
|
|
18592
19518
|
return false;
|
|
18593
19519
|
}
|
|
18594
19520
|
}
|
|
@@ -18603,17 +19529,17 @@ function validate64(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
18603
19529
|
let data9 = data0.updatedAt;
|
|
18604
19530
|
const _errs30 = errors;
|
|
18605
19531
|
if (!(typeof data9 == "number" && (!(data9 % 1) && !isNaN(data9)) && isFinite(data9))) {
|
|
18606
|
-
|
|
19532
|
+
validate69.errors = [{ instancePath: instancePath + "/apiKey/updatedAt", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/UserApiKeyMintResponse/properties/apiKey/properties/updatedAt/type", keyword: "type", params: { type: "integer" }, message: "must be integer" }];
|
|
18607
19533
|
return false;
|
|
18608
19534
|
}
|
|
18609
19535
|
if (errors === _errs30) {
|
|
18610
19536
|
if (typeof data9 == "number" && isFinite(data9)) {
|
|
18611
19537
|
if (data9 > 9007199254740991 || isNaN(data9)) {
|
|
18612
|
-
|
|
19538
|
+
validate69.errors = [{ instancePath: instancePath + "/apiKey/updatedAt", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/UserApiKeyMintResponse/properties/apiKey/properties/updatedAt/maximum", keyword: "maximum", params: { comparison: "<=", limit: 9007199254740991 }, message: "must be <= 9007199254740991" }];
|
|
18613
19539
|
return false;
|
|
18614
19540
|
} else {
|
|
18615
19541
|
if (data9 < 0 || isNaN(data9)) {
|
|
18616
|
-
|
|
19542
|
+
validate69.errors = [{ instancePath: instancePath + "/apiKey/updatedAt", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/UserApiKeyMintResponse/properties/apiKey/properties/updatedAt/minimum", keyword: "minimum", params: { comparison: ">=", limit: 0 }, message: "must be >= 0" }];
|
|
18617
19543
|
return false;
|
|
18618
19544
|
}
|
|
18619
19545
|
}
|
|
@@ -18633,7 +19559,7 @@ function validate64(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
18633
19559
|
}
|
|
18634
19560
|
}
|
|
18635
19561
|
} else {
|
|
18636
|
-
|
|
19562
|
+
validate69.errors = [{ instancePath: instancePath + "/apiKey", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/UserApiKeyMintResponse/properties/apiKey/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
|
|
18637
19563
|
return false;
|
|
18638
19564
|
}
|
|
18639
19565
|
}
|
|
@@ -18648,21 +19574,21 @@ function validate64(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
18648
19574
|
if (errors === _errs32) {
|
|
18649
19575
|
if (typeof data10 === "string") {
|
|
18650
19576
|
if (func1(data10) > 4096) {
|
|
18651
|
-
|
|
19577
|
+
validate69.errors = [{ instancePath: instancePath + "/secret", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/UserApiKeyMintResponse/properties/secret/maxLength", keyword: "maxLength", params: { limit: 4096 }, message: "must NOT have more than 4096 characters" }];
|
|
18652
19578
|
return false;
|
|
18653
19579
|
} else {
|
|
18654
19580
|
if (func1(data10) < 4) {
|
|
18655
|
-
|
|
19581
|
+
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" }];
|
|
18656
19582
|
return false;
|
|
18657
19583
|
} else {
|
|
18658
|
-
if (!
|
|
18659
|
-
|
|
19584
|
+
if (!pattern45.test(data10)) {
|
|
19585
|
+
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]+)*$"' }];
|
|
18660
19586
|
return false;
|
|
18661
19587
|
}
|
|
18662
19588
|
}
|
|
18663
19589
|
}
|
|
18664
19590
|
} else {
|
|
18665
|
-
|
|
19591
|
+
validate69.errors = [{ instancePath: instancePath + "/secret", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/UserApiKeyMintResponse/properties/secret/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
18666
19592
|
return false;
|
|
18667
19593
|
}
|
|
18668
19594
|
}
|
|
@@ -18674,19 +19600,19 @@ function validate64(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
18674
19600
|
}
|
|
18675
19601
|
}
|
|
18676
19602
|
} else {
|
|
18677
|
-
|
|
19603
|
+
validate69.errors = [{ instancePath, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/UserApiKeyMintResponse/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
|
|
18678
19604
|
return false;
|
|
18679
19605
|
}
|
|
18680
19606
|
}
|
|
18681
|
-
|
|
19607
|
+
validate69.errors = vErrors;
|
|
18682
19608
|
return errors === 0;
|
|
18683
19609
|
}
|
|
18684
|
-
|
|
18685
|
-
function
|
|
19610
|
+
validate69.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
|
|
19611
|
+
function validate70(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
18686
19612
|
;
|
|
18687
19613
|
let vErrors = null;
|
|
18688
19614
|
let errors = 0;
|
|
18689
|
-
const evaluated0 =
|
|
19615
|
+
const evaluated0 = validate70.evaluated;
|
|
18690
19616
|
if (evaluated0.dynamicProps) {
|
|
18691
19617
|
evaluated0.props = void 0;
|
|
18692
19618
|
}
|
|
@@ -18698,13 +19624,13 @@ function validate65(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
18698
19624
|
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
18699
19625
|
let missing0;
|
|
18700
19626
|
if (data.requestId === void 0 && (missing0 = "requestId")) {
|
|
18701
|
-
|
|
19627
|
+
validate70.errors = [{ instancePath, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/UserApiKeyRevokeRequest/required", keyword: "required", params: { missingProperty: missing0 }, message: "must have required property '" + missing0 + "'" }];
|
|
18702
19628
|
return false;
|
|
18703
19629
|
} else {
|
|
18704
19630
|
const _errs2 = errors;
|
|
18705
19631
|
for (const key0 in data) {
|
|
18706
19632
|
if (!(key0 === "requestId")) {
|
|
18707
|
-
|
|
19633
|
+
validate70.errors = [{ instancePath, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/UserApiKeyRevokeRequest/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key0 }, message: "must NOT have additional properties" }];
|
|
18708
19634
|
return false;
|
|
18709
19635
|
break;
|
|
18710
19636
|
}
|
|
@@ -18715,12 +19641,12 @@ function validate65(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
18715
19641
|
const _errs3 = errors;
|
|
18716
19642
|
if (errors === _errs3) {
|
|
18717
19643
|
if (typeof data0 === "string") {
|
|
18718
|
-
if (!
|
|
18719
|
-
|
|
19644
|
+
if (!pattern5.test(data0)) {
|
|
19645
|
+
validate70.errors = [{ instancePath: instancePath + "/requestId", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/UserApiKeyRevokeRequest/properties/requestId/pattern", keyword: "pattern", params: { pattern: "^[a-f0-9]{64}$" }, message: 'must match pattern "^[a-f0-9]{64}$"' }];
|
|
18720
19646
|
return false;
|
|
18721
19647
|
}
|
|
18722
19648
|
} else {
|
|
18723
|
-
|
|
19649
|
+
validate70.errors = [{ instancePath: instancePath + "/requestId", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/UserApiKeyRevokeRequest/properties/requestId/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
18724
19650
|
return false;
|
|
18725
19651
|
}
|
|
18726
19652
|
}
|
|
@@ -18728,19 +19654,19 @@ function validate65(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
18728
19654
|
}
|
|
18729
19655
|
}
|
|
18730
19656
|
} else {
|
|
18731
|
-
|
|
19657
|
+
validate70.errors = [{ instancePath, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/UserApiKeyRevokeRequest/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
|
|
18732
19658
|
return false;
|
|
18733
19659
|
}
|
|
18734
19660
|
}
|
|
18735
|
-
|
|
19661
|
+
validate70.errors = vErrors;
|
|
18736
19662
|
return errors === 0;
|
|
18737
19663
|
}
|
|
18738
|
-
|
|
18739
|
-
function
|
|
19664
|
+
validate70.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
|
|
19665
|
+
function validate71(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
18740
19666
|
;
|
|
18741
19667
|
let vErrors = null;
|
|
18742
19668
|
let errors = 0;
|
|
18743
|
-
const evaluated0 =
|
|
19669
|
+
const evaluated0 = validate71.evaluated;
|
|
18744
19670
|
if (evaluated0.dynamicProps) {
|
|
18745
19671
|
evaluated0.props = void 0;
|
|
18746
19672
|
}
|
|
@@ -18752,13 +19678,13 @@ function validate66(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
18752
19678
|
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
18753
19679
|
let missing0;
|
|
18754
19680
|
if (data.apiKeyId === void 0 && (missing0 = "apiKeyId") || data.revoked === void 0 && (missing0 = "revoked")) {
|
|
18755
|
-
|
|
19681
|
+
validate71.errors = [{ instancePath, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/UserApiKeyRevokeResponse/required", keyword: "required", params: { missingProperty: missing0 }, message: "must have required property '" + missing0 + "'" }];
|
|
18756
19682
|
return false;
|
|
18757
19683
|
} else {
|
|
18758
19684
|
const _errs2 = errors;
|
|
18759
19685
|
for (const key0 in data) {
|
|
18760
19686
|
if (!(key0 === "apiKeyId" || key0 === "revoked")) {
|
|
18761
|
-
|
|
19687
|
+
validate71.errors = [{ instancePath, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/UserApiKeyRevokeResponse/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key0 }, message: "must NOT have additional properties" }];
|
|
18762
19688
|
return false;
|
|
18763
19689
|
break;
|
|
18764
19690
|
}
|
|
@@ -18770,21 +19696,21 @@ function validate66(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
18770
19696
|
if (errors === _errs3) {
|
|
18771
19697
|
if (typeof data0 === "string") {
|
|
18772
19698
|
if (func1(data0) > 256) {
|
|
18773
|
-
|
|
19699
|
+
validate71.errors = [{ instancePath: instancePath + "/apiKeyId", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/UserApiKeyRevokeResponse/properties/apiKeyId/maxLength", keyword: "maxLength", params: { limit: 256 }, message: "must NOT have more than 256 characters" }];
|
|
18774
19700
|
return false;
|
|
18775
19701
|
} else {
|
|
18776
19702
|
if (func1(data0) < 9) {
|
|
18777
|
-
|
|
19703
|
+
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" }];
|
|
18778
19704
|
return false;
|
|
18779
19705
|
} else {
|
|
18780
|
-
if (!
|
|
18781
|
-
|
|
19706
|
+
if (!pattern29.test(data0)) {
|
|
19707
|
+
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_-]+$"' }];
|
|
18782
19708
|
return false;
|
|
18783
19709
|
}
|
|
18784
19710
|
}
|
|
18785
19711
|
}
|
|
18786
19712
|
} else {
|
|
18787
|
-
|
|
19713
|
+
validate71.errors = [{ instancePath: instancePath + "/apiKeyId", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/UserApiKeyRevokeResponse/properties/apiKeyId/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
18788
19714
|
return false;
|
|
18789
19715
|
}
|
|
18790
19716
|
}
|
|
@@ -18797,11 +19723,11 @@ function validate66(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
18797
19723
|
let data1 = data.revoked;
|
|
18798
19724
|
const _errs5 = errors;
|
|
18799
19725
|
if (typeof data1 !== "boolean") {
|
|
18800
|
-
|
|
19726
|
+
validate71.errors = [{ instancePath: instancePath + "/revoked", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/UserApiKeyRevokeResponse/properties/revoked/type", keyword: "type", params: { type: "boolean" }, message: "must be boolean" }];
|
|
18801
19727
|
return false;
|
|
18802
19728
|
}
|
|
18803
19729
|
if (true !== data1) {
|
|
18804
|
-
|
|
19730
|
+
validate71.errors = [{ instancePath: instancePath + "/revoked", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/UserApiKeyRevokeResponse/properties/revoked/const", keyword: "const", params: { allowedValue: true }, message: "must be equal to constant" }];
|
|
18805
19731
|
return false;
|
|
18806
19732
|
}
|
|
18807
19733
|
var valid1 = _errs5 === errors;
|
|
@@ -18812,19 +19738,19 @@ function validate66(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
18812
19738
|
}
|
|
18813
19739
|
}
|
|
18814
19740
|
} else {
|
|
18815
|
-
|
|
19741
|
+
validate71.errors = [{ instancePath, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/UserApiKeyRevokeResponse/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
|
|
18816
19742
|
return false;
|
|
18817
19743
|
}
|
|
18818
19744
|
}
|
|
18819
|
-
|
|
19745
|
+
validate71.errors = vErrors;
|
|
18820
19746
|
return errors === 0;
|
|
18821
19747
|
}
|
|
18822
|
-
|
|
18823
|
-
function
|
|
19748
|
+
validate71.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
|
|
19749
|
+
function validate72(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
18824
19750
|
;
|
|
18825
19751
|
let vErrors = null;
|
|
18826
19752
|
let errors = 0;
|
|
18827
|
-
const evaluated0 =
|
|
19753
|
+
const evaluated0 = validate72.evaluated;
|
|
18828
19754
|
if (evaluated0.dynamicProps) {
|
|
18829
19755
|
evaluated0.props = void 0;
|
|
18830
19756
|
}
|
|
@@ -18836,13 +19762,13 @@ function validate67(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
18836
19762
|
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
18837
19763
|
let missing0;
|
|
18838
19764
|
if (data.error === void 0 && (missing0 = "error")) {
|
|
18839
|
-
|
|
19765
|
+
validate72.errors = [{ instancePath, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/WorkosConnectDeviceConfigurationDisabled/required", keyword: "required", params: { missingProperty: missing0 }, message: "must have required property '" + missing0 + "'" }];
|
|
18840
19766
|
return false;
|
|
18841
19767
|
} else {
|
|
18842
19768
|
const _errs2 = errors;
|
|
18843
19769
|
for (const key0 in data) {
|
|
18844
19770
|
if (!(key0 === "error")) {
|
|
18845
|
-
|
|
19771
|
+
validate72.errors = [{ instancePath, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/WorkosConnectDeviceConfigurationDisabled/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key0 }, message: "must NOT have additional properties" }];
|
|
18846
19772
|
return false;
|
|
18847
19773
|
break;
|
|
18848
19774
|
}
|
|
@@ -18851,30 +19777,30 @@ function validate67(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
18851
19777
|
if (data.error !== void 0) {
|
|
18852
19778
|
let data0 = data.error;
|
|
18853
19779
|
if (typeof data0 !== "string") {
|
|
18854
|
-
|
|
19780
|
+
validate72.errors = [{ instancePath: instancePath + "/error", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/WorkosConnectDeviceConfigurationDisabled/properties/error/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
18855
19781
|
return false;
|
|
18856
19782
|
}
|
|
18857
19783
|
if ("Not found" !== data0) {
|
|
18858
|
-
|
|
19784
|
+
validate72.errors = [{ instancePath: instancePath + "/error", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/WorkosConnectDeviceConfigurationDisabled/properties/error/const", keyword: "const", params: { allowedValue: "Not found" }, message: "must be equal to constant" }];
|
|
18859
19785
|
return false;
|
|
18860
19786
|
}
|
|
18861
19787
|
}
|
|
18862
19788
|
}
|
|
18863
19789
|
}
|
|
18864
19790
|
} else {
|
|
18865
|
-
|
|
19791
|
+
validate72.errors = [{ instancePath, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/WorkosConnectDeviceConfigurationDisabled/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
|
|
18866
19792
|
return false;
|
|
18867
19793
|
}
|
|
18868
19794
|
}
|
|
18869
|
-
|
|
19795
|
+
validate72.errors = vErrors;
|
|
18870
19796
|
return errors === 0;
|
|
18871
19797
|
}
|
|
18872
|
-
|
|
18873
|
-
function
|
|
19798
|
+
validate72.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
|
|
19799
|
+
function validate73(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
18874
19800
|
;
|
|
18875
19801
|
let vErrors = null;
|
|
18876
19802
|
let errors = 0;
|
|
18877
|
-
const evaluated0 =
|
|
19803
|
+
const evaluated0 = validate73.evaluated;
|
|
18878
19804
|
if (evaluated0.dynamicProps) {
|
|
18879
19805
|
evaluated0.props = void 0;
|
|
18880
19806
|
}
|
|
@@ -19023,7 +19949,7 @@ function validate68(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
19023
19949
|
vErrors.push(err10);
|
|
19024
19950
|
}
|
|
19025
19951
|
errors++;
|
|
19026
|
-
|
|
19952
|
+
validate73.errors = vErrors;
|
|
19027
19953
|
return false;
|
|
19028
19954
|
} else {
|
|
19029
19955
|
errors = _errs1;
|
|
@@ -19035,18 +19961,18 @@ function validate68(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
19035
19961
|
}
|
|
19036
19962
|
}
|
|
19037
19963
|
}
|
|
19038
|
-
|
|
19964
|
+
validate73.errors = vErrors;
|
|
19039
19965
|
evaluated0.props = props0;
|
|
19040
19966
|
return errors === 0;
|
|
19041
19967
|
}
|
|
19042
|
-
|
|
19043
|
-
var
|
|
19044
|
-
var
|
|
19045
|
-
function
|
|
19968
|
+
validate73.evaluated = { "dynamicProps": true, "dynamicItems": false };
|
|
19969
|
+
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 pattern48 = new RegExp("^client_[A-Za-z0-9_-]+$", "u");
|
|
19971
|
+
function validate74(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
19046
19972
|
;
|
|
19047
19973
|
let vErrors = null;
|
|
19048
19974
|
let errors = 0;
|
|
19049
|
-
const evaluated0 =
|
|
19975
|
+
const evaluated0 = validate74.evaluated;
|
|
19050
19976
|
if (evaluated0.dynamicProps) {
|
|
19051
19977
|
evaluated0.props = void 0;
|
|
19052
19978
|
}
|
|
@@ -19058,13 +19984,13 @@ function validate69(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
19058
19984
|
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
19059
19985
|
let missing0;
|
|
19060
19986
|
if (data.protocol_version === void 0 && (missing0 = "protocol_version") || data.issuer === void 0 && (missing0 = "issuer") || data.client_id === void 0 && (missing0 = "client_id") || data.default_scopes === void 0 && (missing0 = "default_scopes")) {
|
|
19061
|
-
|
|
19987
|
+
validate74.errors = [{ instancePath, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/WorkosConnectDeviceConfigurationSuccess/required", keyword: "required", params: { missingProperty: missing0 }, message: "must have required property '" + missing0 + "'" }];
|
|
19062
19988
|
return false;
|
|
19063
19989
|
} else {
|
|
19064
19990
|
const _errs3 = errors;
|
|
19065
19991
|
for (const key0 in data) {
|
|
19066
19992
|
if (!(key0 === "protocol_version" || key0 === "issuer" || key0 === "client_id" || key0 === "default_scopes")) {
|
|
19067
|
-
|
|
19993
|
+
validate74.errors = [{ instancePath, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/WorkosConnectDeviceConfigurationSuccess/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key0 }, message: "must NOT have additional properties" }];
|
|
19068
19994
|
return false;
|
|
19069
19995
|
break;
|
|
19070
19996
|
}
|
|
@@ -19074,11 +20000,11 @@ function validate69(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
19074
20000
|
let data0 = data.protocol_version;
|
|
19075
20001
|
const _errs4 = errors;
|
|
19076
20002
|
if (!(typeof data0 == "number" && isFinite(data0))) {
|
|
19077
|
-
|
|
20003
|
+
validate74.errors = [{ instancePath: instancePath + "/protocol_version", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/WorkosConnectDeviceConfigurationSuccess/properties/protocol_version/type", keyword: "type", params: { type: "number" }, message: "must be number" }];
|
|
19078
20004
|
return false;
|
|
19079
20005
|
}
|
|
19080
20006
|
if (1 !== data0) {
|
|
19081
|
-
|
|
20007
|
+
validate74.errors = [{ instancePath: instancePath + "/protocol_version", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/WorkosConnectDeviceConfigurationSuccess/properties/protocol_version/const", keyword: "const", params: { allowedValue: 1 }, message: "must be equal to constant" }];
|
|
19082
20008
|
return false;
|
|
19083
20009
|
}
|
|
19084
20010
|
var valid1 = _errs4 === errors;
|
|
@@ -19091,7 +20017,7 @@ function validate69(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
19091
20017
|
if (errors === _errs6) {
|
|
19092
20018
|
if (errors === _errs6) {
|
|
19093
20019
|
if (!(typeof data.issuer === "string")) {
|
|
19094
|
-
|
|
20020
|
+
validate74.errors = [{ instancePath: instancePath + "/issuer", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/WorkosConnectDeviceConfigurationSuccess/properties/issuer/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
19095
20021
|
return false;
|
|
19096
20022
|
}
|
|
19097
20023
|
}
|
|
@@ -19107,16 +20033,16 @@ function validate69(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
19107
20033
|
if (errors === _errs8) {
|
|
19108
20034
|
if (typeof data2 === "string") {
|
|
19109
20035
|
if (func1(data2) > 256) {
|
|
19110
|
-
|
|
20036
|
+
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" }];
|
|
19111
20037
|
return false;
|
|
19112
20038
|
} else {
|
|
19113
|
-
if (!
|
|
19114
|
-
|
|
20039
|
+
if (!pattern48.test(data2)) {
|
|
20040
|
+
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_-]+$"' }];
|
|
19115
20041
|
return false;
|
|
19116
20042
|
}
|
|
19117
20043
|
}
|
|
19118
20044
|
} else {
|
|
19119
|
-
|
|
20045
|
+
validate74.errors = [{ instancePath: instancePath + "/client_id", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/WorkosConnectDeviceConfigurationSuccess/properties/client_id/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
19120
20046
|
return false;
|
|
19121
20047
|
}
|
|
19122
20048
|
}
|
|
@@ -19131,11 +20057,11 @@ function validate69(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
19131
20057
|
if (errors === _errs10) {
|
|
19132
20058
|
if (Array.isArray(data3)) {
|
|
19133
20059
|
if (data3.length > 4) {
|
|
19134
|
-
|
|
20060
|
+
validate74.errors = [{ instancePath: instancePath + "/default_scopes", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/WorkosConnectDeviceConfigurationSuccess/properties/default_scopes/maxItems", keyword: "maxItems", params: { limit: 4 }, message: "must NOT have more than 4 items" }];
|
|
19135
20061
|
return false;
|
|
19136
20062
|
} else {
|
|
19137
20063
|
if (data3.length < 4) {
|
|
19138
|
-
|
|
20064
|
+
validate74.errors = [{ instancePath: instancePath + "/default_scopes", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/WorkosConnectDeviceConfigurationSuccess/properties/default_scopes/minItems", keyword: "minItems", params: { limit: 4 }, message: "must NOT have fewer than 4 items" }];
|
|
19139
20065
|
return false;
|
|
19140
20066
|
} else {
|
|
19141
20067
|
var valid2 = true;
|
|
@@ -19144,11 +20070,11 @@ function validate69(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
19144
20070
|
let data4 = data3[i0];
|
|
19145
20071
|
const _errs12 = errors;
|
|
19146
20072
|
if (typeof data4 !== "string") {
|
|
19147
|
-
|
|
20073
|
+
validate74.errors = [{ instancePath: instancePath + "/default_scopes/" + i0, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/WorkosConnectDeviceConfigurationSuccess/properties/default_scopes/items/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
19148
20074
|
return false;
|
|
19149
20075
|
}
|
|
19150
20076
|
if (!(data4 === "openid" || data4 === "profile" || data4 === "email" || data4 === "offline_access")) {
|
|
19151
|
-
|
|
20077
|
+
validate74.errors = [{ instancePath: instancePath + "/default_scopes/" + i0, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/WorkosConnectDeviceConfigurationSuccess/properties/default_scopes/items/enum", keyword: "enum", params: { allowedValues: schema139.properties.default_scopes.items.enum }, message: "must be equal to one of the allowed values" }];
|
|
19152
20078
|
return false;
|
|
19153
20079
|
}
|
|
19154
20080
|
var valid2 = _errs12 === errors;
|
|
@@ -19159,7 +20085,7 @@ function validate69(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
19159
20085
|
}
|
|
19160
20086
|
}
|
|
19161
20087
|
} else {
|
|
19162
|
-
|
|
20088
|
+
validate74.errors = [{ instancePath: instancePath + "/default_scopes", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/WorkosConnectDeviceConfigurationSuccess/properties/default_scopes/type", keyword: "type", params: { type: "array" }, message: "must be array" }];
|
|
19163
20089
|
return false;
|
|
19164
20090
|
}
|
|
19165
20091
|
}
|
|
@@ -19173,19 +20099,19 @@ function validate69(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
19173
20099
|
}
|
|
19174
20100
|
}
|
|
19175
20101
|
} else {
|
|
19176
|
-
|
|
20102
|
+
validate74.errors = [{ instancePath, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/WorkosConnectDeviceConfigurationSuccess/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
|
|
19177
20103
|
return false;
|
|
19178
20104
|
}
|
|
19179
20105
|
}
|
|
19180
|
-
|
|
20106
|
+
validate74.errors = vErrors;
|
|
19181
20107
|
return errors === 0;
|
|
19182
20108
|
}
|
|
19183
|
-
|
|
19184
|
-
function
|
|
20109
|
+
validate74.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
|
|
20110
|
+
function validate75(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
19185
20111
|
;
|
|
19186
20112
|
let vErrors = null;
|
|
19187
20113
|
let errors = 0;
|
|
19188
|
-
const evaluated0 =
|
|
20114
|
+
const evaluated0 = validate75.evaluated;
|
|
19189
20115
|
if (evaluated0.dynamicProps) {
|
|
19190
20116
|
evaluated0.props = void 0;
|
|
19191
20117
|
}
|
|
@@ -19197,13 +20123,13 @@ function validate70(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
19197
20123
|
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
19198
20124
|
let missing0;
|
|
19199
20125
|
if (data.error === void 0 && (missing0 = "error")) {
|
|
19200
|
-
|
|
20126
|
+
validate75.errors = [{ instancePath, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/WorkosConnectDeviceConfigurationUnavailable/required", keyword: "required", params: { missingProperty: missing0 }, message: "must have required property '" + missing0 + "'" }];
|
|
19201
20127
|
return false;
|
|
19202
20128
|
} else {
|
|
19203
20129
|
const _errs2 = errors;
|
|
19204
20130
|
for (const key0 in data) {
|
|
19205
20131
|
if (!(key0 === "error")) {
|
|
19206
|
-
|
|
20132
|
+
validate75.errors = [{ instancePath, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/WorkosConnectDeviceConfigurationUnavailable/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key0 }, message: "must NOT have additional properties" }];
|
|
19207
20133
|
return false;
|
|
19208
20134
|
break;
|
|
19209
20135
|
}
|
|
@@ -19212,25 +20138,25 @@ function validate70(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
19212
20138
|
if (data.error !== void 0) {
|
|
19213
20139
|
let data0 = data.error;
|
|
19214
20140
|
if (typeof data0 !== "string") {
|
|
19215
|
-
|
|
20141
|
+
validate75.errors = [{ instancePath: instancePath + "/error", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/WorkosConnectDeviceConfigurationUnavailable/properties/error/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
19216
20142
|
return false;
|
|
19217
20143
|
}
|
|
19218
20144
|
if ("connect_device_auth_unavailable" !== data0) {
|
|
19219
|
-
|
|
20145
|
+
validate75.errors = [{ instancePath: instancePath + "/error", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/WorkosConnectDeviceConfigurationUnavailable/properties/error/const", keyword: "const", params: { allowedValue: "connect_device_auth_unavailable" }, message: "must be equal to constant" }];
|
|
19220
20146
|
return false;
|
|
19221
20147
|
}
|
|
19222
20148
|
}
|
|
19223
20149
|
}
|
|
19224
20150
|
}
|
|
19225
20151
|
} else {
|
|
19226
|
-
|
|
20152
|
+
validate75.errors = [{ instancePath, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/WorkosConnectDeviceConfigurationUnavailable/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
|
|
19227
20153
|
return false;
|
|
19228
20154
|
}
|
|
19229
20155
|
}
|
|
19230
|
-
|
|
20156
|
+
validate75.errors = vErrors;
|
|
19231
20157
|
return errors === 0;
|
|
19232
20158
|
}
|
|
19233
|
-
|
|
20159
|
+
validate75.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
|
|
19234
20160
|
|
|
19235
20161
|
// src/lib/scope-glob.ts
|
|
19236
20162
|
var DISALLOWED_PATTERN_CHARACTERS = /* @__PURE__ */ new Set([
|