@primitive.ai/prim 0.1.0-alpha.104 → 0.1.0-alpha.106
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 -15
- package/SKILL.md +54 -48
- package/dist/{chunk-IDMLJ4TM.js → chunk-4CO4A6NR.js} +1 -1
- package/dist/{chunk-H6JAQVW4.js → chunk-6VFUHQ4J.js} +1 -1
- package/dist/{chunk-5HFTJEA6.js → chunk-72CQVK4E.js} +1 -1
- package/dist/{chunk-6WCBVSND.js → chunk-7GSBXHK4.js} +67 -5
- package/dist/{chunk-GSBHBU7N.js → chunk-FFYZ3XMX.js} +1469 -533
- package/dist/{chunk-LNFWFYSN.js → chunk-HT2CJ3YD.js} +14 -17
- package/dist/{chunk-MZEVEPL3.js → chunk-LVRD562C.js} +1 -1
- package/dist/{chunk-C4D2LMTS.js → chunk-TPWJQD5E.js} +1 -1
- package/dist/{chunk-RCFDZ4DY.js → chunk-XY4CRWTF.js} +3 -3
- 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 +4916 -3958
- package/dist/hook-runtime/hooks/pre-tool-use.js +3110 -2150
- package/dist/hook-runtime/hooks/prim-hook.js +2660 -1700
- package/dist/hook-runtime/hooks/session-start.js +1454 -528
- package/dist/hook-runtime/index.js +1997 -909
- 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 +480 -346
- package/package.json +1 -1
|
@@ -10151,6 +10151,8 @@ function validate39(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
10151
10151
|
return errors === 0;
|
|
10152
10152
|
}
|
|
10153
10153
|
validate39.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
|
|
10154
|
+
var pattern4 = new RegExp("^[a-zA-Z0-9]{1,64}$", "u");
|
|
10155
|
+
var pattern5 = new RegExp("^[a-f0-9]{64}$", "u");
|
|
10154
10156
|
function validate40(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
10155
10157
|
;
|
|
10156
10158
|
let vErrors = null;
|
|
@@ -10163,17 +10165,943 @@ function validate40(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
10163
10165
|
evaluated0.items = void 0;
|
|
10164
10166
|
}
|
|
10165
10167
|
const _errs0 = errors;
|
|
10168
|
+
if (errors === _errs0) {
|
|
10169
|
+
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
10170
|
+
let missing0;
|
|
10171
|
+
if (data.runId === void 0 && (missing0 = "runId") || data.revision === void 0 && (missing0 = "revision") || data.appliedDigest === void 0 && (missing0 = "appliedDigest")) {
|
|
10172
|
+
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 + "'" }];
|
|
10173
|
+
return false;
|
|
10174
|
+
} else {
|
|
10175
|
+
const _errs2 = errors;
|
|
10176
|
+
for (const key0 in data) {
|
|
10177
|
+
if (!(key0 === "runId" || key0 === "revision" || key0 === "appliedDigest")) {
|
|
10178
|
+
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" }];
|
|
10179
|
+
return false;
|
|
10180
|
+
break;
|
|
10181
|
+
}
|
|
10182
|
+
}
|
|
10183
|
+
if (_errs2 === errors) {
|
|
10184
|
+
if (data.runId !== void 0) {
|
|
10185
|
+
let data0 = data.runId;
|
|
10186
|
+
const _errs3 = errors;
|
|
10187
|
+
if (errors === _errs3) {
|
|
10188
|
+
if (typeof data0 === "string") {
|
|
10189
|
+
if (!pattern4.test(data0)) {
|
|
10190
|
+
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}$"' }];
|
|
10191
|
+
return false;
|
|
10192
|
+
}
|
|
10193
|
+
} else {
|
|
10194
|
+
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" }];
|
|
10195
|
+
return false;
|
|
10196
|
+
}
|
|
10197
|
+
}
|
|
10198
|
+
var valid1 = _errs3 === errors;
|
|
10199
|
+
} else {
|
|
10200
|
+
var valid1 = true;
|
|
10201
|
+
}
|
|
10202
|
+
if (valid1) {
|
|
10203
|
+
if (data.revision !== void 0) {
|
|
10204
|
+
let data1 = data.revision;
|
|
10205
|
+
const _errs5 = errors;
|
|
10206
|
+
if (!(typeof data1 == "number" && (!(data1 % 1) && !isNaN(data1)) && isFinite(data1))) {
|
|
10207
|
+
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" }];
|
|
10208
|
+
return false;
|
|
10209
|
+
}
|
|
10210
|
+
if (errors === _errs5) {
|
|
10211
|
+
if (typeof data1 == "number" && isFinite(data1)) {
|
|
10212
|
+
if (data1 > 9007199254740991 || isNaN(data1)) {
|
|
10213
|
+
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" }];
|
|
10214
|
+
return false;
|
|
10215
|
+
} else {
|
|
10216
|
+
if (data1 < 0 || isNaN(data1)) {
|
|
10217
|
+
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" }];
|
|
10218
|
+
return false;
|
|
10219
|
+
}
|
|
10220
|
+
}
|
|
10221
|
+
}
|
|
10222
|
+
}
|
|
10223
|
+
var valid1 = _errs5 === errors;
|
|
10224
|
+
} else {
|
|
10225
|
+
var valid1 = true;
|
|
10226
|
+
}
|
|
10227
|
+
if (valid1) {
|
|
10228
|
+
if (data.appliedDigest !== void 0) {
|
|
10229
|
+
let data2 = data.appliedDigest;
|
|
10230
|
+
const _errs7 = errors;
|
|
10231
|
+
if (errors === _errs7) {
|
|
10232
|
+
if (typeof data2 === "string") {
|
|
10233
|
+
if (!pattern5.test(data2)) {
|
|
10234
|
+
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}$"' }];
|
|
10235
|
+
return false;
|
|
10236
|
+
}
|
|
10237
|
+
} else {
|
|
10238
|
+
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" }];
|
|
10239
|
+
return false;
|
|
10240
|
+
}
|
|
10241
|
+
}
|
|
10242
|
+
var valid1 = _errs7 === errors;
|
|
10243
|
+
} else {
|
|
10244
|
+
var valid1 = true;
|
|
10245
|
+
}
|
|
10246
|
+
}
|
|
10247
|
+
}
|
|
10248
|
+
}
|
|
10249
|
+
}
|
|
10250
|
+
} else {
|
|
10251
|
+
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" }];
|
|
10252
|
+
return false;
|
|
10253
|
+
}
|
|
10254
|
+
}
|
|
10255
|
+
validate40.errors = vErrors;
|
|
10256
|
+
return errors === 0;
|
|
10257
|
+
}
|
|
10258
|
+
validate40.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
|
|
10259
|
+
var pattern8 = new RegExp("\\S", "u");
|
|
10260
|
+
function validate41(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
10261
|
+
;
|
|
10262
|
+
let vErrors = null;
|
|
10263
|
+
let errors = 0;
|
|
10264
|
+
const evaluated0 = validate41.evaluated;
|
|
10265
|
+
if (evaluated0.dynamicProps) {
|
|
10266
|
+
evaluated0.props = void 0;
|
|
10267
|
+
}
|
|
10268
|
+
if (evaluated0.dynamicItems) {
|
|
10269
|
+
evaluated0.items = void 0;
|
|
10270
|
+
}
|
|
10271
|
+
const _errs1 = errors;
|
|
10272
|
+
let valid1 = false;
|
|
10273
|
+
let passing0 = null;
|
|
10274
|
+
const _errs2 = errors;
|
|
10275
|
+
if (errors === _errs2) {
|
|
10276
|
+
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
10277
|
+
let missing0;
|
|
10278
|
+
if (data.runId === void 0 && (missing0 = "runId") || data.revision === void 0 && (missing0 = "revision") || data.choice === void 0 && (missing0 = "choice")) {
|
|
10279
|
+
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 + "'" };
|
|
10280
|
+
if (vErrors === null) {
|
|
10281
|
+
vErrors = [err0];
|
|
10282
|
+
} else {
|
|
10283
|
+
vErrors.push(err0);
|
|
10284
|
+
}
|
|
10285
|
+
errors++;
|
|
10286
|
+
} else {
|
|
10287
|
+
const _errs4 = errors;
|
|
10288
|
+
for (const key0 in data) {
|
|
10289
|
+
if (!(key0 === "runId" || key0 === "revision" || key0 === "choice")) {
|
|
10290
|
+
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" };
|
|
10291
|
+
if (vErrors === null) {
|
|
10292
|
+
vErrors = [err1];
|
|
10293
|
+
} else {
|
|
10294
|
+
vErrors.push(err1);
|
|
10295
|
+
}
|
|
10296
|
+
errors++;
|
|
10297
|
+
break;
|
|
10298
|
+
}
|
|
10299
|
+
}
|
|
10300
|
+
if (_errs4 === errors) {
|
|
10301
|
+
if (data.runId !== void 0) {
|
|
10302
|
+
let data0 = data.runId;
|
|
10303
|
+
const _errs5 = errors;
|
|
10304
|
+
if (errors === _errs5) {
|
|
10305
|
+
if (typeof data0 === "string") {
|
|
10306
|
+
if (!pattern4.test(data0)) {
|
|
10307
|
+
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}$"' };
|
|
10308
|
+
if (vErrors === null) {
|
|
10309
|
+
vErrors = [err2];
|
|
10310
|
+
} else {
|
|
10311
|
+
vErrors.push(err2);
|
|
10312
|
+
}
|
|
10313
|
+
errors++;
|
|
10314
|
+
}
|
|
10315
|
+
} else {
|
|
10316
|
+
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" };
|
|
10317
|
+
if (vErrors === null) {
|
|
10318
|
+
vErrors = [err3];
|
|
10319
|
+
} else {
|
|
10320
|
+
vErrors.push(err3);
|
|
10321
|
+
}
|
|
10322
|
+
errors++;
|
|
10323
|
+
}
|
|
10324
|
+
}
|
|
10325
|
+
var valid2 = _errs5 === errors;
|
|
10326
|
+
} else {
|
|
10327
|
+
var valid2 = true;
|
|
10328
|
+
}
|
|
10329
|
+
if (valid2) {
|
|
10330
|
+
if (data.revision !== void 0) {
|
|
10331
|
+
let data1 = data.revision;
|
|
10332
|
+
const _errs7 = errors;
|
|
10333
|
+
if (!(typeof data1 == "number" && (!(data1 % 1) && !isNaN(data1)) && isFinite(data1))) {
|
|
10334
|
+
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" };
|
|
10335
|
+
if (vErrors === null) {
|
|
10336
|
+
vErrors = [err4];
|
|
10337
|
+
} else {
|
|
10338
|
+
vErrors.push(err4);
|
|
10339
|
+
}
|
|
10340
|
+
errors++;
|
|
10341
|
+
}
|
|
10342
|
+
if (errors === _errs7) {
|
|
10343
|
+
if (typeof data1 == "number" && isFinite(data1)) {
|
|
10344
|
+
if (data1 > 9007199254740991 || isNaN(data1)) {
|
|
10345
|
+
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" };
|
|
10346
|
+
if (vErrors === null) {
|
|
10347
|
+
vErrors = [err5];
|
|
10348
|
+
} else {
|
|
10349
|
+
vErrors.push(err5);
|
|
10350
|
+
}
|
|
10351
|
+
errors++;
|
|
10352
|
+
} else {
|
|
10353
|
+
if (data1 < 0 || isNaN(data1)) {
|
|
10354
|
+
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" };
|
|
10355
|
+
if (vErrors === null) {
|
|
10356
|
+
vErrors = [err6];
|
|
10357
|
+
} else {
|
|
10358
|
+
vErrors.push(err6);
|
|
10359
|
+
}
|
|
10360
|
+
errors++;
|
|
10361
|
+
}
|
|
10362
|
+
}
|
|
10363
|
+
}
|
|
10364
|
+
}
|
|
10365
|
+
var valid2 = _errs7 === errors;
|
|
10366
|
+
} else {
|
|
10367
|
+
var valid2 = true;
|
|
10368
|
+
}
|
|
10369
|
+
if (valid2) {
|
|
10370
|
+
if (data.choice !== void 0) {
|
|
10371
|
+
let data2 = data.choice;
|
|
10372
|
+
const _errs9 = errors;
|
|
10373
|
+
if (typeof data2 !== "string") {
|
|
10374
|
+
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" };
|
|
10375
|
+
if (vErrors === null) {
|
|
10376
|
+
vErrors = [err7];
|
|
10377
|
+
} else {
|
|
10378
|
+
vErrors.push(err7);
|
|
10379
|
+
}
|
|
10380
|
+
errors++;
|
|
10381
|
+
}
|
|
10382
|
+
if ("adhere" !== data2) {
|
|
10383
|
+
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" };
|
|
10384
|
+
if (vErrors === null) {
|
|
10385
|
+
vErrors = [err8];
|
|
10386
|
+
} else {
|
|
10387
|
+
vErrors.push(err8);
|
|
10388
|
+
}
|
|
10389
|
+
errors++;
|
|
10390
|
+
}
|
|
10391
|
+
var valid2 = _errs9 === errors;
|
|
10392
|
+
} else {
|
|
10393
|
+
var valid2 = true;
|
|
10394
|
+
}
|
|
10395
|
+
}
|
|
10396
|
+
}
|
|
10397
|
+
}
|
|
10398
|
+
}
|
|
10399
|
+
} else {
|
|
10400
|
+
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" };
|
|
10401
|
+
if (vErrors === null) {
|
|
10402
|
+
vErrors = [err9];
|
|
10403
|
+
} else {
|
|
10404
|
+
vErrors.push(err9);
|
|
10405
|
+
}
|
|
10406
|
+
errors++;
|
|
10407
|
+
}
|
|
10408
|
+
}
|
|
10409
|
+
var _valid0 = _errs2 === errors;
|
|
10410
|
+
if (_valid0) {
|
|
10411
|
+
valid1 = true;
|
|
10412
|
+
passing0 = 0;
|
|
10413
|
+
var props0 = true;
|
|
10414
|
+
}
|
|
10415
|
+
const _errs11 = errors;
|
|
10416
|
+
if (errors === _errs11) {
|
|
10417
|
+
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
10418
|
+
let missing1;
|
|
10419
|
+
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")) {
|
|
10420
|
+
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 + "'" };
|
|
10421
|
+
if (vErrors === null) {
|
|
10422
|
+
vErrors = [err10];
|
|
10423
|
+
} else {
|
|
10424
|
+
vErrors.push(err10);
|
|
10425
|
+
}
|
|
10426
|
+
errors++;
|
|
10427
|
+
} else {
|
|
10428
|
+
const _errs13 = errors;
|
|
10429
|
+
for (const key1 in data) {
|
|
10430
|
+
if (!(key1 === "runId" || key1 === "revision" || key1 === "choice" || key1 === "reason")) {
|
|
10431
|
+
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" };
|
|
10432
|
+
if (vErrors === null) {
|
|
10433
|
+
vErrors = [err11];
|
|
10434
|
+
} else {
|
|
10435
|
+
vErrors.push(err11);
|
|
10436
|
+
}
|
|
10437
|
+
errors++;
|
|
10438
|
+
break;
|
|
10439
|
+
}
|
|
10440
|
+
}
|
|
10441
|
+
if (_errs13 === errors) {
|
|
10442
|
+
if (data.runId !== void 0) {
|
|
10443
|
+
let data3 = data.runId;
|
|
10444
|
+
const _errs14 = errors;
|
|
10445
|
+
if (errors === _errs14) {
|
|
10446
|
+
if (typeof data3 === "string") {
|
|
10447
|
+
if (!pattern4.test(data3)) {
|
|
10448
|
+
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}$"' };
|
|
10449
|
+
if (vErrors === null) {
|
|
10450
|
+
vErrors = [err12];
|
|
10451
|
+
} else {
|
|
10452
|
+
vErrors.push(err12);
|
|
10453
|
+
}
|
|
10454
|
+
errors++;
|
|
10455
|
+
}
|
|
10456
|
+
} else {
|
|
10457
|
+
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" };
|
|
10458
|
+
if (vErrors === null) {
|
|
10459
|
+
vErrors = [err13];
|
|
10460
|
+
} else {
|
|
10461
|
+
vErrors.push(err13);
|
|
10462
|
+
}
|
|
10463
|
+
errors++;
|
|
10464
|
+
}
|
|
10465
|
+
}
|
|
10466
|
+
var valid3 = _errs14 === errors;
|
|
10467
|
+
} else {
|
|
10468
|
+
var valid3 = true;
|
|
10469
|
+
}
|
|
10470
|
+
if (valid3) {
|
|
10471
|
+
if (data.revision !== void 0) {
|
|
10472
|
+
let data4 = data.revision;
|
|
10473
|
+
const _errs16 = errors;
|
|
10474
|
+
if (!(typeof data4 == "number" && (!(data4 % 1) && !isNaN(data4)) && isFinite(data4))) {
|
|
10475
|
+
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" };
|
|
10476
|
+
if (vErrors === null) {
|
|
10477
|
+
vErrors = [err14];
|
|
10478
|
+
} else {
|
|
10479
|
+
vErrors.push(err14);
|
|
10480
|
+
}
|
|
10481
|
+
errors++;
|
|
10482
|
+
}
|
|
10483
|
+
if (errors === _errs16) {
|
|
10484
|
+
if (typeof data4 == "number" && isFinite(data4)) {
|
|
10485
|
+
if (data4 > 9007199254740991 || isNaN(data4)) {
|
|
10486
|
+
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" };
|
|
10487
|
+
if (vErrors === null) {
|
|
10488
|
+
vErrors = [err15];
|
|
10489
|
+
} else {
|
|
10490
|
+
vErrors.push(err15);
|
|
10491
|
+
}
|
|
10492
|
+
errors++;
|
|
10493
|
+
} else {
|
|
10494
|
+
if (data4 < 0 || isNaN(data4)) {
|
|
10495
|
+
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" };
|
|
10496
|
+
if (vErrors === null) {
|
|
10497
|
+
vErrors = [err16];
|
|
10498
|
+
} else {
|
|
10499
|
+
vErrors.push(err16);
|
|
10500
|
+
}
|
|
10501
|
+
errors++;
|
|
10502
|
+
}
|
|
10503
|
+
}
|
|
10504
|
+
}
|
|
10505
|
+
}
|
|
10506
|
+
var valid3 = _errs16 === errors;
|
|
10507
|
+
} else {
|
|
10508
|
+
var valid3 = true;
|
|
10509
|
+
}
|
|
10510
|
+
if (valid3) {
|
|
10511
|
+
if (data.choice !== void 0) {
|
|
10512
|
+
let data5 = data.choice;
|
|
10513
|
+
const _errs18 = errors;
|
|
10514
|
+
if (typeof data5 !== "string") {
|
|
10515
|
+
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" };
|
|
10516
|
+
if (vErrors === null) {
|
|
10517
|
+
vErrors = [err17];
|
|
10518
|
+
} else {
|
|
10519
|
+
vErrors.push(err17);
|
|
10520
|
+
}
|
|
10521
|
+
errors++;
|
|
10522
|
+
}
|
|
10523
|
+
if ("supersede" !== data5) {
|
|
10524
|
+
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" };
|
|
10525
|
+
if (vErrors === null) {
|
|
10526
|
+
vErrors = [err18];
|
|
10527
|
+
} else {
|
|
10528
|
+
vErrors.push(err18);
|
|
10529
|
+
}
|
|
10530
|
+
errors++;
|
|
10531
|
+
}
|
|
10532
|
+
var valid3 = _errs18 === errors;
|
|
10533
|
+
} else {
|
|
10534
|
+
var valid3 = true;
|
|
10535
|
+
}
|
|
10536
|
+
if (valid3) {
|
|
10537
|
+
if (data.reason !== void 0) {
|
|
10538
|
+
let data6 = data.reason;
|
|
10539
|
+
const _errs20 = errors;
|
|
10540
|
+
if (errors === _errs20) {
|
|
10541
|
+
if (typeof data6 === "string") {
|
|
10542
|
+
if (func1(data6) > 500) {
|
|
10543
|
+
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" };
|
|
10544
|
+
if (vErrors === null) {
|
|
10545
|
+
vErrors = [err19];
|
|
10546
|
+
} else {
|
|
10547
|
+
vErrors.push(err19);
|
|
10548
|
+
}
|
|
10549
|
+
errors++;
|
|
10550
|
+
} else {
|
|
10551
|
+
if (func1(data6) < 1) {
|
|
10552
|
+
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" };
|
|
10553
|
+
if (vErrors === null) {
|
|
10554
|
+
vErrors = [err20];
|
|
10555
|
+
} else {
|
|
10556
|
+
vErrors.push(err20);
|
|
10557
|
+
}
|
|
10558
|
+
errors++;
|
|
10559
|
+
} else {
|
|
10560
|
+
if (!pattern8.test(data6)) {
|
|
10561
|
+
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"' };
|
|
10562
|
+
if (vErrors === null) {
|
|
10563
|
+
vErrors = [err21];
|
|
10564
|
+
} else {
|
|
10565
|
+
vErrors.push(err21);
|
|
10566
|
+
}
|
|
10567
|
+
errors++;
|
|
10568
|
+
}
|
|
10569
|
+
}
|
|
10570
|
+
}
|
|
10571
|
+
} else {
|
|
10572
|
+
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" };
|
|
10573
|
+
if (vErrors === null) {
|
|
10574
|
+
vErrors = [err22];
|
|
10575
|
+
} else {
|
|
10576
|
+
vErrors.push(err22);
|
|
10577
|
+
}
|
|
10578
|
+
errors++;
|
|
10579
|
+
}
|
|
10580
|
+
}
|
|
10581
|
+
var valid3 = _errs20 === errors;
|
|
10582
|
+
} else {
|
|
10583
|
+
var valid3 = true;
|
|
10584
|
+
}
|
|
10585
|
+
}
|
|
10586
|
+
}
|
|
10587
|
+
}
|
|
10588
|
+
}
|
|
10589
|
+
}
|
|
10590
|
+
} else {
|
|
10591
|
+
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" };
|
|
10592
|
+
if (vErrors === null) {
|
|
10593
|
+
vErrors = [err23];
|
|
10594
|
+
} else {
|
|
10595
|
+
vErrors.push(err23);
|
|
10596
|
+
}
|
|
10597
|
+
errors++;
|
|
10598
|
+
}
|
|
10599
|
+
}
|
|
10600
|
+
var _valid0 = _errs11 === errors;
|
|
10601
|
+
if (_valid0 && valid1) {
|
|
10602
|
+
valid1 = false;
|
|
10603
|
+
passing0 = [passing0, 1];
|
|
10604
|
+
} else {
|
|
10605
|
+
if (_valid0) {
|
|
10606
|
+
valid1 = true;
|
|
10607
|
+
passing0 = 1;
|
|
10608
|
+
if (props0 !== true) {
|
|
10609
|
+
props0 = true;
|
|
10610
|
+
}
|
|
10611
|
+
}
|
|
10612
|
+
}
|
|
10613
|
+
if (!valid1) {
|
|
10614
|
+
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" };
|
|
10615
|
+
if (vErrors === null) {
|
|
10616
|
+
vErrors = [err24];
|
|
10617
|
+
} else {
|
|
10618
|
+
vErrors.push(err24);
|
|
10619
|
+
}
|
|
10620
|
+
errors++;
|
|
10621
|
+
validate41.errors = vErrors;
|
|
10622
|
+
return false;
|
|
10623
|
+
} else {
|
|
10624
|
+
errors = _errs1;
|
|
10625
|
+
if (vErrors !== null) {
|
|
10626
|
+
if (_errs1) {
|
|
10627
|
+
vErrors.length = _errs1;
|
|
10628
|
+
} else {
|
|
10629
|
+
vErrors = null;
|
|
10630
|
+
}
|
|
10631
|
+
}
|
|
10632
|
+
}
|
|
10633
|
+
validate41.errors = vErrors;
|
|
10634
|
+
evaluated0.props = props0;
|
|
10635
|
+
return errors === 0;
|
|
10636
|
+
}
|
|
10637
|
+
validate41.evaluated = { "dynamicProps": true, "dynamicItems": false };
|
|
10638
|
+
function validate42(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
10639
|
+
;
|
|
10640
|
+
let vErrors = null;
|
|
10641
|
+
let errors = 0;
|
|
10642
|
+
const evaluated0 = validate42.evaluated;
|
|
10643
|
+
if (evaluated0.dynamicProps) {
|
|
10644
|
+
evaluated0.props = void 0;
|
|
10645
|
+
}
|
|
10646
|
+
if (evaluated0.dynamicItems) {
|
|
10647
|
+
evaluated0.items = void 0;
|
|
10648
|
+
}
|
|
10649
|
+
const _errs0 = errors;
|
|
10650
|
+
if (errors === _errs0) {
|
|
10651
|
+
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
10652
|
+
let missing0;
|
|
10653
|
+
if (data.runId === void 0 && (missing0 = "runId") || data.revision === void 0 && (missing0 = "revision")) {
|
|
10654
|
+
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 + "'" }];
|
|
10655
|
+
return false;
|
|
10656
|
+
} else {
|
|
10657
|
+
const _errs2 = errors;
|
|
10658
|
+
for (const key0 in data) {
|
|
10659
|
+
if (!(key0 === "runId" || key0 === "revision")) {
|
|
10660
|
+
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" }];
|
|
10661
|
+
return false;
|
|
10662
|
+
break;
|
|
10663
|
+
}
|
|
10664
|
+
}
|
|
10665
|
+
if (_errs2 === errors) {
|
|
10666
|
+
if (data.runId !== void 0) {
|
|
10667
|
+
let data0 = data.runId;
|
|
10668
|
+
const _errs3 = errors;
|
|
10669
|
+
if (errors === _errs3) {
|
|
10670
|
+
if (typeof data0 === "string") {
|
|
10671
|
+
if (!pattern4.test(data0)) {
|
|
10672
|
+
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}$"' }];
|
|
10673
|
+
return false;
|
|
10674
|
+
}
|
|
10675
|
+
} else {
|
|
10676
|
+
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" }];
|
|
10677
|
+
return false;
|
|
10678
|
+
}
|
|
10679
|
+
}
|
|
10680
|
+
var valid1 = _errs3 === errors;
|
|
10681
|
+
} else {
|
|
10682
|
+
var valid1 = true;
|
|
10683
|
+
}
|
|
10684
|
+
if (valid1) {
|
|
10685
|
+
if (data.revision !== void 0) {
|
|
10686
|
+
let data1 = data.revision;
|
|
10687
|
+
const _errs5 = errors;
|
|
10688
|
+
if (!(typeof data1 == "number" && (!(data1 % 1) && !isNaN(data1)) && isFinite(data1))) {
|
|
10689
|
+
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" }];
|
|
10690
|
+
return false;
|
|
10691
|
+
}
|
|
10692
|
+
if (errors === _errs5) {
|
|
10693
|
+
if (typeof data1 == "number" && isFinite(data1)) {
|
|
10694
|
+
if (data1 > 9007199254740991 || isNaN(data1)) {
|
|
10695
|
+
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" }];
|
|
10696
|
+
return false;
|
|
10697
|
+
} else {
|
|
10698
|
+
if (data1 < 0 || isNaN(data1)) {
|
|
10699
|
+
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" }];
|
|
10700
|
+
return false;
|
|
10701
|
+
}
|
|
10702
|
+
}
|
|
10703
|
+
}
|
|
10704
|
+
}
|
|
10705
|
+
var valid1 = _errs5 === errors;
|
|
10706
|
+
} else {
|
|
10707
|
+
var valid1 = true;
|
|
10708
|
+
}
|
|
10709
|
+
}
|
|
10710
|
+
}
|
|
10711
|
+
}
|
|
10712
|
+
} else {
|
|
10713
|
+
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" }];
|
|
10714
|
+
return false;
|
|
10715
|
+
}
|
|
10716
|
+
}
|
|
10717
|
+
validate42.errors = vErrors;
|
|
10718
|
+
return errors === 0;
|
|
10719
|
+
}
|
|
10720
|
+
validate42.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
|
|
10721
|
+
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");
|
|
10722
|
+
function validate43(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
10723
|
+
;
|
|
10724
|
+
let vErrors = null;
|
|
10725
|
+
let errors = 0;
|
|
10726
|
+
const evaluated0 = validate43.evaluated;
|
|
10727
|
+
if (evaluated0.dynamicProps) {
|
|
10728
|
+
evaluated0.props = void 0;
|
|
10729
|
+
}
|
|
10730
|
+
if (evaluated0.dynamicItems) {
|
|
10731
|
+
evaluated0.items = void 0;
|
|
10732
|
+
}
|
|
10733
|
+
const _errs0 = errors;
|
|
10734
|
+
if (errors === _errs0) {
|
|
10735
|
+
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
10736
|
+
let missing0;
|
|
10737
|
+
if (data.scenarioVersion === void 0 && (missing0 = "scenarioVersion") || data.localRunId === void 0 && (missing0 = "localRunId")) {
|
|
10738
|
+
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 + "'" }];
|
|
10739
|
+
return false;
|
|
10740
|
+
} else {
|
|
10741
|
+
const _errs2 = errors;
|
|
10742
|
+
for (const key0 in data) {
|
|
10743
|
+
if (!(key0 === "scenarioVersion" || key0 === "localRunId")) {
|
|
10744
|
+
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" }];
|
|
10745
|
+
return false;
|
|
10746
|
+
break;
|
|
10747
|
+
}
|
|
10748
|
+
}
|
|
10749
|
+
if (_errs2 === errors) {
|
|
10750
|
+
if (data.scenarioVersion !== void 0) {
|
|
10751
|
+
let data0 = data.scenarioVersion;
|
|
10752
|
+
const _errs3 = errors;
|
|
10753
|
+
if (!(typeof data0 == "number" && isFinite(data0))) {
|
|
10754
|
+
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" }];
|
|
10755
|
+
return false;
|
|
10756
|
+
}
|
|
10757
|
+
if (1 !== data0) {
|
|
10758
|
+
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" }];
|
|
10759
|
+
return false;
|
|
10760
|
+
}
|
|
10761
|
+
var valid1 = _errs3 === errors;
|
|
10762
|
+
} else {
|
|
10763
|
+
var valid1 = true;
|
|
10764
|
+
}
|
|
10765
|
+
if (valid1) {
|
|
10766
|
+
if (data.localRunId !== void 0) {
|
|
10767
|
+
let data1 = data.localRunId;
|
|
10768
|
+
const _errs5 = errors;
|
|
10769
|
+
if (errors === _errs5) {
|
|
10770
|
+
if (errors === _errs5) {
|
|
10771
|
+
if (typeof data1 === "string") {
|
|
10772
|
+
if (!pattern10.test(data1)) {
|
|
10773
|
+
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)$"' }];
|
|
10774
|
+
return false;
|
|
10775
|
+
}
|
|
10776
|
+
} else {
|
|
10777
|
+
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" }];
|
|
10778
|
+
return false;
|
|
10779
|
+
}
|
|
10780
|
+
}
|
|
10781
|
+
}
|
|
10782
|
+
var valid1 = _errs5 === errors;
|
|
10783
|
+
} else {
|
|
10784
|
+
var valid1 = true;
|
|
10785
|
+
}
|
|
10786
|
+
}
|
|
10787
|
+
}
|
|
10788
|
+
}
|
|
10789
|
+
} else {
|
|
10790
|
+
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" }];
|
|
10791
|
+
return false;
|
|
10792
|
+
}
|
|
10793
|
+
}
|
|
10794
|
+
validate43.errors = vErrors;
|
|
10795
|
+
return errors === 0;
|
|
10796
|
+
}
|
|
10797
|
+
validate43.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
|
|
10798
|
+
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 };
|
|
10799
|
+
var func34 = Object.prototype.hasOwnProperty;
|
|
10800
|
+
function validate44(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
10801
|
+
;
|
|
10802
|
+
let vErrors = null;
|
|
10803
|
+
let errors = 0;
|
|
10804
|
+
const evaluated0 = validate44.evaluated;
|
|
10805
|
+
if (evaluated0.dynamicProps) {
|
|
10806
|
+
evaluated0.props = void 0;
|
|
10807
|
+
}
|
|
10808
|
+
if (evaluated0.dynamicItems) {
|
|
10809
|
+
evaluated0.items = void 0;
|
|
10810
|
+
}
|
|
10811
|
+
const _errs0 = errors;
|
|
10812
|
+
if (errors === _errs0) {
|
|
10813
|
+
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
10814
|
+
let missing0;
|
|
10815
|
+
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")) {
|
|
10816
|
+
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 + "'" }];
|
|
10817
|
+
return false;
|
|
10818
|
+
} else {
|
|
10819
|
+
const _errs2 = errors;
|
|
10820
|
+
for (const key0 in data) {
|
|
10821
|
+
if (!func34.call(schema79.properties, key0)) {
|
|
10822
|
+
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" }];
|
|
10823
|
+
return false;
|
|
10824
|
+
break;
|
|
10825
|
+
}
|
|
10826
|
+
}
|
|
10827
|
+
if (_errs2 === errors) {
|
|
10828
|
+
if (data.scenarioVersion !== void 0) {
|
|
10829
|
+
let data0 = data.scenarioVersion;
|
|
10830
|
+
const _errs3 = errors;
|
|
10831
|
+
if (!(typeof data0 == "number" && isFinite(data0))) {
|
|
10832
|
+
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" }];
|
|
10833
|
+
return false;
|
|
10834
|
+
}
|
|
10835
|
+
if (1 !== data0) {
|
|
10836
|
+
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" }];
|
|
10837
|
+
return false;
|
|
10838
|
+
}
|
|
10839
|
+
var valid1 = _errs3 === errors;
|
|
10840
|
+
} else {
|
|
10841
|
+
var valid1 = true;
|
|
10842
|
+
}
|
|
10843
|
+
if (valid1) {
|
|
10844
|
+
if (data.fictional !== void 0) {
|
|
10845
|
+
let data1 = data.fictional;
|
|
10846
|
+
const _errs5 = errors;
|
|
10847
|
+
if (typeof data1 !== "boolean") {
|
|
10848
|
+
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" }];
|
|
10849
|
+
return false;
|
|
10850
|
+
}
|
|
10851
|
+
if (true !== data1) {
|
|
10852
|
+
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" }];
|
|
10853
|
+
return false;
|
|
10854
|
+
}
|
|
10855
|
+
var valid1 = _errs5 === errors;
|
|
10856
|
+
} else {
|
|
10857
|
+
var valid1 = true;
|
|
10858
|
+
}
|
|
10859
|
+
if (valid1) {
|
|
10860
|
+
if (data.evaluation !== void 0) {
|
|
10861
|
+
let data2 = data.evaluation;
|
|
10862
|
+
const _errs7 = errors;
|
|
10863
|
+
if (typeof data2 !== "string") {
|
|
10864
|
+
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" }];
|
|
10865
|
+
return false;
|
|
10866
|
+
}
|
|
10867
|
+
if ("live" !== data2) {
|
|
10868
|
+
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" }];
|
|
10869
|
+
return false;
|
|
10870
|
+
}
|
|
10871
|
+
var valid1 = _errs7 === errors;
|
|
10872
|
+
} else {
|
|
10873
|
+
var valid1 = true;
|
|
10874
|
+
}
|
|
10875
|
+
if (valid1) {
|
|
10876
|
+
if (data.runId !== void 0) {
|
|
10877
|
+
let data3 = data.runId;
|
|
10878
|
+
const _errs9 = errors;
|
|
10879
|
+
if (errors === _errs9) {
|
|
10880
|
+
if (typeof data3 === "string") {
|
|
10881
|
+
if (!pattern4.test(data3)) {
|
|
10882
|
+
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}$"' }];
|
|
10883
|
+
return false;
|
|
10884
|
+
}
|
|
10885
|
+
} else {
|
|
10886
|
+
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" }];
|
|
10887
|
+
return false;
|
|
10888
|
+
}
|
|
10889
|
+
}
|
|
10890
|
+
var valid1 = _errs9 === errors;
|
|
10891
|
+
} else {
|
|
10892
|
+
var valid1 = true;
|
|
10893
|
+
}
|
|
10894
|
+
if (valid1) {
|
|
10895
|
+
if (data.revision !== void 0) {
|
|
10896
|
+
let data4 = data.revision;
|
|
10897
|
+
const _errs11 = errors;
|
|
10898
|
+
if (!(typeof data4 == "number" && (!(data4 % 1) && !isNaN(data4)) && isFinite(data4))) {
|
|
10899
|
+
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" }];
|
|
10900
|
+
return false;
|
|
10901
|
+
}
|
|
10902
|
+
if (errors === _errs11) {
|
|
10903
|
+
if (typeof data4 == "number" && isFinite(data4)) {
|
|
10904
|
+
if (data4 > 9007199254740991 || isNaN(data4)) {
|
|
10905
|
+
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" }];
|
|
10906
|
+
return false;
|
|
10907
|
+
} else {
|
|
10908
|
+
if (data4 < 0 || isNaN(data4)) {
|
|
10909
|
+
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" }];
|
|
10910
|
+
return false;
|
|
10911
|
+
}
|
|
10912
|
+
}
|
|
10913
|
+
}
|
|
10914
|
+
}
|
|
10915
|
+
var valid1 = _errs11 === errors;
|
|
10916
|
+
} else {
|
|
10917
|
+
var valid1 = true;
|
|
10918
|
+
}
|
|
10919
|
+
if (valid1) {
|
|
10920
|
+
if (data.stage !== void 0) {
|
|
10921
|
+
let data5 = data.stage;
|
|
10922
|
+
const _errs13 = errors;
|
|
10923
|
+
if (typeof data5 !== "string") {
|
|
10924
|
+
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" }];
|
|
10925
|
+
return false;
|
|
10926
|
+
}
|
|
10927
|
+
if (!(data5 === "ready" || data5 === "checking" || data5 === "blocked" || data5 === "approved" || data5 === "completed" || data5 === "skipped" || data5 === "expired")) {
|
|
10928
|
+
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" }];
|
|
10929
|
+
return false;
|
|
10930
|
+
}
|
|
10931
|
+
var valid1 = _errs13 === errors;
|
|
10932
|
+
} else {
|
|
10933
|
+
var valid1 = true;
|
|
10934
|
+
}
|
|
10935
|
+
if (valid1) {
|
|
10936
|
+
if (data.authorName !== void 0) {
|
|
10937
|
+
let data6 = data.authorName;
|
|
10938
|
+
const _errs15 = errors;
|
|
10939
|
+
if (errors === _errs15) {
|
|
10940
|
+
if (typeof data6 === "string") {
|
|
10941
|
+
if (func1(data6) > 200) {
|
|
10942
|
+
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" }];
|
|
10943
|
+
return false;
|
|
10944
|
+
}
|
|
10945
|
+
} else {
|
|
10946
|
+
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" }];
|
|
10947
|
+
return false;
|
|
10948
|
+
}
|
|
10949
|
+
}
|
|
10950
|
+
var valid1 = _errs15 === errors;
|
|
10951
|
+
} else {
|
|
10952
|
+
var valid1 = true;
|
|
10953
|
+
}
|
|
10954
|
+
if (valid1) {
|
|
10955
|
+
if (data.email !== void 0) {
|
|
10956
|
+
let data7 = data.email;
|
|
10957
|
+
const _errs17 = errors;
|
|
10958
|
+
if (typeof data7 !== "string") {
|
|
10959
|
+
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" }];
|
|
10960
|
+
return false;
|
|
10961
|
+
}
|
|
10962
|
+
if (!(data7 === "not_queued" || data7 === "queued" || data7 === "accepted" || data7 === "failed" || data7 === "suppressed")) {
|
|
10963
|
+
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" }];
|
|
10964
|
+
return false;
|
|
10965
|
+
}
|
|
10966
|
+
var valid1 = _errs17 === errors;
|
|
10967
|
+
} else {
|
|
10968
|
+
var valid1 = true;
|
|
10969
|
+
}
|
|
10970
|
+
if (valid1) {
|
|
10971
|
+
if (data.verdict !== void 0) {
|
|
10972
|
+
let data8 = data.verdict;
|
|
10973
|
+
const _errs19 = errors;
|
|
10974
|
+
if (typeof data8 !== "string") {
|
|
10975
|
+
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" }];
|
|
10976
|
+
return false;
|
|
10977
|
+
}
|
|
10978
|
+
if (!(data8 === "block" || data8 === "pass" || data8 === "pending")) {
|
|
10979
|
+
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" }];
|
|
10980
|
+
return false;
|
|
10981
|
+
}
|
|
10982
|
+
var valid1 = _errs19 === errors;
|
|
10983
|
+
} else {
|
|
10984
|
+
var valid1 = true;
|
|
10985
|
+
}
|
|
10986
|
+
if (valid1) {
|
|
10987
|
+
if (data.reasonCode !== void 0) {
|
|
10988
|
+
let data9 = data.reasonCode;
|
|
10989
|
+
const _errs21 = errors;
|
|
10990
|
+
if (errors === _errs21) {
|
|
10991
|
+
if (typeof data9 === "string") {
|
|
10992
|
+
if (func1(data9) > 100) {
|
|
10993
|
+
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" }];
|
|
10994
|
+
return false;
|
|
10995
|
+
}
|
|
10996
|
+
} else {
|
|
10997
|
+
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" }];
|
|
10998
|
+
return false;
|
|
10999
|
+
}
|
|
11000
|
+
}
|
|
11001
|
+
var valid1 = _errs21 === errors;
|
|
11002
|
+
} else {
|
|
11003
|
+
var valid1 = true;
|
|
11004
|
+
}
|
|
11005
|
+
if (valid1) {
|
|
11006
|
+
if (data.choice !== void 0) {
|
|
11007
|
+
let data10 = data.choice;
|
|
11008
|
+
const _errs23 = errors;
|
|
11009
|
+
if (typeof data10 !== "string") {
|
|
11010
|
+
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" }];
|
|
11011
|
+
return false;
|
|
11012
|
+
}
|
|
11013
|
+
if (!(data10 === "adhere" || data10 === "supersede")) {
|
|
11014
|
+
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" }];
|
|
11015
|
+
return false;
|
|
11016
|
+
}
|
|
11017
|
+
var valid1 = _errs23 === errors;
|
|
11018
|
+
} else {
|
|
11019
|
+
var valid1 = true;
|
|
11020
|
+
}
|
|
11021
|
+
if (valid1) {
|
|
11022
|
+
if (data.reason !== void 0) {
|
|
11023
|
+
let data11 = data.reason;
|
|
11024
|
+
const _errs25 = errors;
|
|
11025
|
+
if (errors === _errs25) {
|
|
11026
|
+
if (typeof data11 === "string") {
|
|
11027
|
+
if (func1(data11) > 500) {
|
|
11028
|
+
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" }];
|
|
11029
|
+
return false;
|
|
11030
|
+
}
|
|
11031
|
+
} else {
|
|
11032
|
+
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" }];
|
|
11033
|
+
return false;
|
|
11034
|
+
}
|
|
11035
|
+
}
|
|
11036
|
+
var valid1 = _errs25 === errors;
|
|
11037
|
+
} else {
|
|
11038
|
+
var valid1 = true;
|
|
11039
|
+
}
|
|
11040
|
+
if (valid1) {
|
|
11041
|
+
if (data.approvedDigest !== void 0) {
|
|
11042
|
+
let data12 = data.approvedDigest;
|
|
11043
|
+
const _errs27 = errors;
|
|
11044
|
+
if (errors === _errs27) {
|
|
11045
|
+
if (typeof data12 === "string") {
|
|
11046
|
+
if (!pattern5.test(data12)) {
|
|
11047
|
+
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}$"' }];
|
|
11048
|
+
return false;
|
|
11049
|
+
}
|
|
11050
|
+
} else {
|
|
11051
|
+
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" }];
|
|
11052
|
+
return false;
|
|
11053
|
+
}
|
|
11054
|
+
}
|
|
11055
|
+
var valid1 = _errs27 === errors;
|
|
11056
|
+
} else {
|
|
11057
|
+
var valid1 = true;
|
|
11058
|
+
}
|
|
11059
|
+
}
|
|
11060
|
+
}
|
|
11061
|
+
}
|
|
11062
|
+
}
|
|
11063
|
+
}
|
|
11064
|
+
}
|
|
11065
|
+
}
|
|
11066
|
+
}
|
|
11067
|
+
}
|
|
11068
|
+
}
|
|
11069
|
+
}
|
|
11070
|
+
}
|
|
11071
|
+
}
|
|
11072
|
+
}
|
|
11073
|
+
} else {
|
|
11074
|
+
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" }];
|
|
11075
|
+
return false;
|
|
11076
|
+
}
|
|
11077
|
+
}
|
|
11078
|
+
validate44.errors = vErrors;
|
|
11079
|
+
return errors === 0;
|
|
11080
|
+
}
|
|
11081
|
+
validate44.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
|
|
11082
|
+
function validate45(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
11083
|
+
;
|
|
11084
|
+
let vErrors = null;
|
|
11085
|
+
let errors = 0;
|
|
11086
|
+
const evaluated0 = validate45.evaluated;
|
|
11087
|
+
if (evaluated0.dynamicProps) {
|
|
11088
|
+
evaluated0.props = void 0;
|
|
11089
|
+
}
|
|
11090
|
+
if (evaluated0.dynamicItems) {
|
|
11091
|
+
evaluated0.items = void 0;
|
|
11092
|
+
}
|
|
11093
|
+
const _errs0 = errors;
|
|
10166
11094
|
if (errors === _errs0) {
|
|
10167
11095
|
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
10168
11096
|
let missing0;
|
|
10169
11097
|
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")) {
|
|
10170
|
-
|
|
11098
|
+
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 + "'" }];
|
|
10171
11099
|
return false;
|
|
10172
11100
|
} else {
|
|
10173
11101
|
const _errs2 = errors;
|
|
10174
11102
|
for (const key0 in data) {
|
|
10175
11103
|
if (!(key0 === "disposition" || key0 === "acknowledged" || key0 === "accepted" || key0 === "verdictFooter" || key0 === "collectScopeVersion")) {
|
|
10176
|
-
|
|
11104
|
+
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" }];
|
|
10177
11105
|
return false;
|
|
10178
11106
|
break;
|
|
10179
11107
|
}
|
|
@@ -10183,11 +11111,11 @@ function validate40(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
10183
11111
|
let data0 = data.disposition;
|
|
10184
11112
|
const _errs3 = errors;
|
|
10185
11113
|
if (typeof data0 !== "string") {
|
|
10186
|
-
|
|
11114
|
+
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" }];
|
|
10187
11115
|
return false;
|
|
10188
11116
|
}
|
|
10189
11117
|
if ("persisted" !== data0) {
|
|
10190
|
-
|
|
11118
|
+
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" }];
|
|
10191
11119
|
return false;
|
|
10192
11120
|
}
|
|
10193
11121
|
var valid1 = _errs3 === errors;
|
|
@@ -10199,7 +11127,7 @@ function validate40(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
10199
11127
|
let data1 = data.acknowledged;
|
|
10200
11128
|
const _errs5 = errors;
|
|
10201
11129
|
if (!(typeof data1 == "number" && isFinite(data1))) {
|
|
10202
|
-
|
|
11130
|
+
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" }];
|
|
10203
11131
|
return false;
|
|
10204
11132
|
}
|
|
10205
11133
|
var valid1 = _errs5 === errors;
|
|
@@ -10211,7 +11139,7 @@ function validate40(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
10211
11139
|
let data2 = data.accepted;
|
|
10212
11140
|
const _errs7 = errors;
|
|
10213
11141
|
if (!(typeof data2 == "number" && isFinite(data2))) {
|
|
10214
|
-
|
|
11142
|
+
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" }];
|
|
10215
11143
|
return false;
|
|
10216
11144
|
}
|
|
10217
11145
|
var valid1 = _errs7 === errors;
|
|
@@ -10386,7 +11314,7 @@ function validate40(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
10386
11314
|
vErrors.push(err10);
|
|
10387
11315
|
}
|
|
10388
11316
|
errors++;
|
|
10389
|
-
|
|
11317
|
+
validate45.errors = vErrors;
|
|
10390
11318
|
return false;
|
|
10391
11319
|
} else {
|
|
10392
11320
|
errors = _errs10;
|
|
@@ -10407,17 +11335,17 @@ function validate40(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
10407
11335
|
let data10 = data.collectScopeVersion;
|
|
10408
11336
|
const _errs28 = errors;
|
|
10409
11337
|
if (!(typeof data10 == "number" && (!(data10 % 1) && !isNaN(data10)) && isFinite(data10))) {
|
|
10410
|
-
|
|
11338
|
+
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" }];
|
|
10411
11339
|
return false;
|
|
10412
11340
|
}
|
|
10413
11341
|
if (errors === _errs28) {
|
|
10414
11342
|
if (typeof data10 == "number" && isFinite(data10)) {
|
|
10415
11343
|
if (data10 > 9007199254740991 || isNaN(data10)) {
|
|
10416
|
-
|
|
11344
|
+
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" }];
|
|
10417
11345
|
return false;
|
|
10418
11346
|
} else {
|
|
10419
11347
|
if (data10 < 0 || isNaN(data10)) {
|
|
10420
|
-
|
|
11348
|
+
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" }];
|
|
10421
11349
|
return false;
|
|
10422
11350
|
}
|
|
10423
11351
|
}
|
|
@@ -10434,19 +11362,19 @@ function validate40(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
10434
11362
|
}
|
|
10435
11363
|
}
|
|
10436
11364
|
} else {
|
|
10437
|
-
|
|
11365
|
+
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" }];
|
|
10438
11366
|
return false;
|
|
10439
11367
|
}
|
|
10440
11368
|
}
|
|
10441
|
-
|
|
11369
|
+
validate45.errors = vErrors;
|
|
10442
11370
|
return errors === 0;
|
|
10443
11371
|
}
|
|
10444
|
-
|
|
10445
|
-
function
|
|
11372
|
+
validate45.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
|
|
11373
|
+
function validate46(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
10446
11374
|
;
|
|
10447
11375
|
let vErrors = null;
|
|
10448
11376
|
let errors = 0;
|
|
10449
|
-
const evaluated0 =
|
|
11377
|
+
const evaluated0 = validate46.evaluated;
|
|
10450
11378
|
if (evaluated0.dynamicProps) {
|
|
10451
11379
|
evaluated0.props = void 0;
|
|
10452
11380
|
}
|
|
@@ -10458,13 +11386,13 @@ function validate41(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
10458
11386
|
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
10459
11387
|
let missing0;
|
|
10460
11388
|
if (data.protocolVersion === void 0 && (missing0 = "protocolVersion") || data.workspaceId === void 0 && (missing0 = "workspaceId") || data.deliveries === void 0 && (missing0 = "deliveries")) {
|
|
10461
|
-
|
|
11389
|
+
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 + "'" }];
|
|
10462
11390
|
return false;
|
|
10463
11391
|
} else {
|
|
10464
11392
|
const _errs3 = errors;
|
|
10465
11393
|
for (const key0 in data) {
|
|
10466
11394
|
if (!(key0 === "protocolVersion" || key0 === "workspaceId" || key0 === "deliveries")) {
|
|
10467
|
-
|
|
11395
|
+
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" }];
|
|
10468
11396
|
return false;
|
|
10469
11397
|
break;
|
|
10470
11398
|
}
|
|
@@ -10474,17 +11402,17 @@ function validate41(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
10474
11402
|
let data0 = data.protocolVersion;
|
|
10475
11403
|
const _errs4 = errors;
|
|
10476
11404
|
if (!(typeof data0 == "number" && (!(data0 % 1) && !isNaN(data0)) && isFinite(data0))) {
|
|
10477
|
-
|
|
11405
|
+
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" }];
|
|
10478
11406
|
return false;
|
|
10479
11407
|
}
|
|
10480
11408
|
if (errors === _errs4) {
|
|
10481
11409
|
if (typeof data0 == "number" && isFinite(data0)) {
|
|
10482
11410
|
if (data0 > 2 || isNaN(data0)) {
|
|
10483
|
-
|
|
11411
|
+
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" }];
|
|
10484
11412
|
return false;
|
|
10485
11413
|
} else {
|
|
10486
11414
|
if (data0 < 1 || isNaN(data0)) {
|
|
10487
|
-
|
|
11415
|
+
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" }];
|
|
10488
11416
|
return false;
|
|
10489
11417
|
}
|
|
10490
11418
|
}
|
|
@@ -10498,7 +11426,7 @@ function validate41(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
10498
11426
|
if (data.workspaceId !== void 0) {
|
|
10499
11427
|
const _errs6 = errors;
|
|
10500
11428
|
if (typeof data.workspaceId !== "string") {
|
|
10501
|
-
|
|
11429
|
+
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" }];
|
|
10502
11430
|
return false;
|
|
10503
11431
|
}
|
|
10504
11432
|
var valid1 = _errs6 === errors;
|
|
@@ -10512,11 +11440,11 @@ function validate41(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
10512
11440
|
if (errors === _errs8) {
|
|
10513
11441
|
if (Array.isArray(data2)) {
|
|
10514
11442
|
if (data2.length > 40) {
|
|
10515
|
-
|
|
11443
|
+
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" }];
|
|
10516
11444
|
return false;
|
|
10517
11445
|
} else {
|
|
10518
11446
|
if (data2.length < 1) {
|
|
10519
|
-
|
|
11447
|
+
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" }];
|
|
10520
11448
|
return false;
|
|
10521
11449
|
} else {
|
|
10522
11450
|
var valid2 = true;
|
|
@@ -10528,13 +11456,13 @@ function validate41(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
10528
11456
|
if (data3 && typeof data3 == "object" && !Array.isArray(data3)) {
|
|
10529
11457
|
let missing1;
|
|
10530
11458
|
if (data3.eventId === void 0 && (missing1 = "eventId") || data3.leaseVersion === void 0 && (missing1 = "leaseVersion")) {
|
|
10531
|
-
|
|
11459
|
+
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 + "'" }];
|
|
10532
11460
|
return false;
|
|
10533
11461
|
} else {
|
|
10534
11462
|
const _errs12 = errors;
|
|
10535
11463
|
for (const key1 in data3) {
|
|
10536
11464
|
if (!(key1 === "eventId" || key1 === "leaseVersion")) {
|
|
10537
|
-
|
|
11465
|
+
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" }];
|
|
10538
11466
|
return false;
|
|
10539
11467
|
break;
|
|
10540
11468
|
}
|
|
@@ -10546,16 +11474,16 @@ function validate41(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
10546
11474
|
if (errors === _errs13) {
|
|
10547
11475
|
if (typeof data4 === "string") {
|
|
10548
11476
|
if (func1(data4) > 128) {
|
|
10549
|
-
|
|
11477
|
+
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" }];
|
|
10550
11478
|
return false;
|
|
10551
11479
|
} else {
|
|
10552
11480
|
if (func1(data4) < 1) {
|
|
10553
|
-
|
|
11481
|
+
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" }];
|
|
10554
11482
|
return false;
|
|
10555
11483
|
}
|
|
10556
11484
|
}
|
|
10557
11485
|
} else {
|
|
10558
|
-
|
|
11486
|
+
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" }];
|
|
10559
11487
|
return false;
|
|
10560
11488
|
}
|
|
10561
11489
|
}
|
|
@@ -10568,17 +11496,17 @@ function validate41(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
10568
11496
|
let data5 = data3.leaseVersion;
|
|
10569
11497
|
const _errs15 = errors;
|
|
10570
11498
|
if (!(typeof data5 == "number" && (!(data5 % 1) && !isNaN(data5)) && isFinite(data5))) {
|
|
10571
|
-
|
|
11499
|
+
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" }];
|
|
10572
11500
|
return false;
|
|
10573
11501
|
}
|
|
10574
11502
|
if (errors === _errs15) {
|
|
10575
11503
|
if (typeof data5 == "number" && isFinite(data5)) {
|
|
10576
11504
|
if (data5 > 9007199254740991 || isNaN(data5)) {
|
|
10577
|
-
|
|
11505
|
+
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" }];
|
|
10578
11506
|
return false;
|
|
10579
11507
|
} else {
|
|
10580
11508
|
if (data5 < 1 || isNaN(data5)) {
|
|
10581
|
-
|
|
11509
|
+
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" }];
|
|
10582
11510
|
return false;
|
|
10583
11511
|
}
|
|
10584
11512
|
}
|
|
@@ -10592,7 +11520,7 @@ function validate41(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
10592
11520
|
}
|
|
10593
11521
|
}
|
|
10594
11522
|
} else {
|
|
10595
|
-
|
|
11523
|
+
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" }];
|
|
10596
11524
|
return false;
|
|
10597
11525
|
}
|
|
10598
11526
|
}
|
|
@@ -10604,7 +11532,7 @@ function validate41(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
10604
11532
|
}
|
|
10605
11533
|
}
|
|
10606
11534
|
} else {
|
|
10607
|
-
|
|
11535
|
+
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" }];
|
|
10608
11536
|
return false;
|
|
10609
11537
|
}
|
|
10610
11538
|
}
|
|
@@ -10617,19 +11545,19 @@ function validate41(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
10617
11545
|
}
|
|
10618
11546
|
}
|
|
10619
11547
|
} else {
|
|
10620
|
-
|
|
11548
|
+
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" }];
|
|
10621
11549
|
return false;
|
|
10622
11550
|
}
|
|
10623
11551
|
}
|
|
10624
|
-
|
|
11552
|
+
validate46.errors = vErrors;
|
|
10625
11553
|
return errors === 0;
|
|
10626
11554
|
}
|
|
10627
|
-
|
|
10628
|
-
function
|
|
11555
|
+
validate46.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
|
|
11556
|
+
function validate47(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
10629
11557
|
;
|
|
10630
11558
|
let vErrors = null;
|
|
10631
11559
|
let errors = 0;
|
|
10632
|
-
const evaluated0 =
|
|
11560
|
+
const evaluated0 = validate47.evaluated;
|
|
10633
11561
|
if (evaluated0.dynamicProps) {
|
|
10634
11562
|
evaluated0.props = void 0;
|
|
10635
11563
|
}
|
|
@@ -10913,7 +11841,7 @@ function validate42(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
10913
11841
|
vErrors.push(err19);
|
|
10914
11842
|
}
|
|
10915
11843
|
errors++;
|
|
10916
|
-
|
|
11844
|
+
validate47.errors = vErrors;
|
|
10917
11845
|
return false;
|
|
10918
11846
|
} else {
|
|
10919
11847
|
errors = _errs1;
|
|
@@ -10925,16 +11853,16 @@ function validate42(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
10925
11853
|
}
|
|
10926
11854
|
}
|
|
10927
11855
|
}
|
|
10928
|
-
|
|
11856
|
+
validate47.errors = vErrors;
|
|
10929
11857
|
evaluated0.props = props0;
|
|
10930
11858
|
return errors === 0;
|
|
10931
11859
|
}
|
|
10932
|
-
|
|
10933
|
-
function
|
|
11860
|
+
validate47.evaluated = { "dynamicProps": true, "dynamicItems": false };
|
|
11861
|
+
function validate48(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
10934
11862
|
;
|
|
10935
11863
|
let vErrors = null;
|
|
10936
11864
|
let errors = 0;
|
|
10937
|
-
const evaluated0 =
|
|
11865
|
+
const evaluated0 = validate48.evaluated;
|
|
10938
11866
|
if (evaluated0.dynamicProps) {
|
|
10939
11867
|
evaluated0.props = void 0;
|
|
10940
11868
|
}
|
|
@@ -10946,13 +11874,13 @@ function validate43(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
10946
11874
|
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
10947
11875
|
let missing0;
|
|
10948
11876
|
if (data.protocolVersion === void 0 && (missing0 = "protocolVersion") || data.workspaceId === void 0 && (missing0 = "workspaceId") || data.currentSessionId === void 0 && (missing0 = "currentSessionId")) {
|
|
10949
|
-
|
|
11877
|
+
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 + "'" }];
|
|
10950
11878
|
return false;
|
|
10951
11879
|
} else {
|
|
10952
11880
|
const _errs3 = errors;
|
|
10953
11881
|
for (const key0 in data) {
|
|
10954
11882
|
if (!(key0 === "protocolVersion" || key0 === "workspaceId" || key0 === "currentSessionId")) {
|
|
10955
|
-
|
|
11883
|
+
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" }];
|
|
10956
11884
|
return false;
|
|
10957
11885
|
break;
|
|
10958
11886
|
}
|
|
@@ -10962,17 +11890,17 @@ function validate43(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
10962
11890
|
let data0 = data.protocolVersion;
|
|
10963
11891
|
const _errs4 = errors;
|
|
10964
11892
|
if (!(typeof data0 == "number" && (!(data0 % 1) && !isNaN(data0)) && isFinite(data0))) {
|
|
10965
|
-
|
|
11893
|
+
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" }];
|
|
10966
11894
|
return false;
|
|
10967
11895
|
}
|
|
10968
11896
|
if (errors === _errs4) {
|
|
10969
11897
|
if (typeof data0 == "number" && isFinite(data0)) {
|
|
10970
11898
|
if (data0 > 2 || isNaN(data0)) {
|
|
10971
|
-
|
|
11899
|
+
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" }];
|
|
10972
11900
|
return false;
|
|
10973
11901
|
} else {
|
|
10974
11902
|
if (data0 < 1 || isNaN(data0)) {
|
|
10975
|
-
|
|
11903
|
+
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" }];
|
|
10976
11904
|
return false;
|
|
10977
11905
|
}
|
|
10978
11906
|
}
|
|
@@ -10986,7 +11914,7 @@ function validate43(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
10986
11914
|
if (data.workspaceId !== void 0) {
|
|
10987
11915
|
const _errs6 = errors;
|
|
10988
11916
|
if (typeof data.workspaceId !== "string") {
|
|
10989
|
-
|
|
11917
|
+
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" }];
|
|
10990
11918
|
return false;
|
|
10991
11919
|
}
|
|
10992
11920
|
var valid1 = _errs6 === errors;
|
|
@@ -10997,7 +11925,7 @@ function validate43(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
10997
11925
|
if (data.currentSessionId !== void 0) {
|
|
10998
11926
|
const _errs8 = errors;
|
|
10999
11927
|
if (typeof data.currentSessionId !== "string") {
|
|
11000
|
-
|
|
11928
|
+
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" }];
|
|
11001
11929
|
return false;
|
|
11002
11930
|
}
|
|
11003
11931
|
var valid1 = _errs8 === errors;
|
|
@@ -11009,21 +11937,21 @@ function validate43(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
11009
11937
|
}
|
|
11010
11938
|
}
|
|
11011
11939
|
} else {
|
|
11012
|
-
|
|
11940
|
+
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" }];
|
|
11013
11941
|
return false;
|
|
11014
11942
|
}
|
|
11015
11943
|
}
|
|
11016
|
-
|
|
11944
|
+
validate48.errors = vErrors;
|
|
11017
11945
|
return errors === 0;
|
|
11018
11946
|
}
|
|
11019
|
-
|
|
11020
|
-
var
|
|
11021
|
-
var
|
|
11022
|
-
function
|
|
11947
|
+
validate48.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
|
|
11948
|
+
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"] };
|
|
11949
|
+
var pattern13 = new RegExp("^[0-9a-f]{8}$", "u");
|
|
11950
|
+
function validate49(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
11023
11951
|
;
|
|
11024
11952
|
let vErrors = null;
|
|
11025
11953
|
let errors = 0;
|
|
11026
|
-
const evaluated0 =
|
|
11954
|
+
const evaluated0 = validate49.evaluated;
|
|
11027
11955
|
if (evaluated0.dynamicProps) {
|
|
11028
11956
|
evaluated0.props = void 0;
|
|
11029
11957
|
}
|
|
@@ -11357,7 +12285,7 @@ function validate44(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
11357
12285
|
const _errs27 = errors;
|
|
11358
12286
|
if (errors === _errs27) {
|
|
11359
12287
|
if (typeof data9 === "string") {
|
|
11360
|
-
if (!
|
|
12288
|
+
if (!pattern13.test(data9)) {
|
|
11361
12289
|
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}$"' };
|
|
11362
12290
|
if (vErrors === null) {
|
|
11363
12291
|
vErrors = [err24];
|
|
@@ -11465,7 +12393,7 @@ function validate44(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
11465
12393
|
errors++;
|
|
11466
12394
|
}
|
|
11467
12395
|
if (!(data13 === "confirm_prompt" || data13 === "publish_prompt")) {
|
|
11468
|
-
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:
|
|
12396
|
+
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" };
|
|
11469
12397
|
if (vErrors === null) {
|
|
11470
12398
|
vErrors = [err32];
|
|
11471
12399
|
} else {
|
|
@@ -11684,7 +12612,7 @@ function validate44(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
11684
12612
|
vErrors.push(err46);
|
|
11685
12613
|
}
|
|
11686
12614
|
errors++;
|
|
11687
|
-
|
|
12615
|
+
validate49.errors = vErrors;
|
|
11688
12616
|
return false;
|
|
11689
12617
|
} else {
|
|
11690
12618
|
errors = _errs1;
|
|
@@ -11696,16 +12624,16 @@ function validate44(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
11696
12624
|
}
|
|
11697
12625
|
}
|
|
11698
12626
|
}
|
|
11699
|
-
|
|
12627
|
+
validate49.errors = vErrors;
|
|
11700
12628
|
evaluated0.props = props0;
|
|
11701
12629
|
return errors === 0;
|
|
11702
12630
|
}
|
|
11703
|
-
|
|
11704
|
-
function
|
|
12631
|
+
validate49.evaluated = { "dynamicProps": true, "dynamicItems": false };
|
|
12632
|
+
function validate50(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
11705
12633
|
;
|
|
11706
12634
|
let vErrors = null;
|
|
11707
12635
|
let errors = 0;
|
|
11708
|
-
const evaluated0 =
|
|
12636
|
+
const evaluated0 = validate50.evaluated;
|
|
11709
12637
|
if (evaluated0.dynamicProps) {
|
|
11710
12638
|
evaluated0.props = void 0;
|
|
11711
12639
|
}
|
|
@@ -11913,7 +12841,7 @@ function validate45(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
11913
12841
|
vErrors.push(err14);
|
|
11914
12842
|
}
|
|
11915
12843
|
errors++;
|
|
11916
|
-
|
|
12844
|
+
validate50.errors = vErrors;
|
|
11917
12845
|
return false;
|
|
11918
12846
|
} else {
|
|
11919
12847
|
errors = _errs1;
|
|
@@ -11925,16 +12853,16 @@ function validate45(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
11925
12853
|
}
|
|
11926
12854
|
}
|
|
11927
12855
|
}
|
|
11928
|
-
|
|
12856
|
+
validate50.errors = vErrors;
|
|
11929
12857
|
evaluated0.props = props0;
|
|
11930
12858
|
return errors === 0;
|
|
11931
12859
|
}
|
|
11932
|
-
|
|
11933
|
-
function
|
|
12860
|
+
validate50.evaluated = { "dynamicProps": true, "dynamicItems": false };
|
|
12861
|
+
function validate51(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
11934
12862
|
;
|
|
11935
12863
|
let vErrors = null;
|
|
11936
12864
|
let errors = 0;
|
|
11937
|
-
const evaluated0 =
|
|
12865
|
+
const evaluated0 = validate51.evaluated;
|
|
11938
12866
|
if (evaluated0.dynamicProps) {
|
|
11939
12867
|
evaluated0.props = void 0;
|
|
11940
12868
|
}
|
|
@@ -12396,7 +13324,7 @@ function validate46(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
12396
13324
|
vErrors.push(err33);
|
|
12397
13325
|
}
|
|
12398
13326
|
errors++;
|
|
12399
|
-
|
|
13327
|
+
validate51.errors = vErrors;
|
|
12400
13328
|
return false;
|
|
12401
13329
|
} else {
|
|
12402
13330
|
errors = _errs1;
|
|
@@ -12408,18 +13336,18 @@ function validate46(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
12408
13336
|
}
|
|
12409
13337
|
}
|
|
12410
13338
|
}
|
|
12411
|
-
|
|
13339
|
+
validate51.errors = vErrors;
|
|
12412
13340
|
evaluated0.props = props0;
|
|
12413
13341
|
return errors === 0;
|
|
12414
13342
|
}
|
|
12415
|
-
|
|
12416
|
-
var
|
|
12417
|
-
var
|
|
12418
|
-
function
|
|
13343
|
+
validate51.evaluated = { "dynamicProps": true, "dynamicItems": false };
|
|
13344
|
+
var pattern14 = new RegExp("^[A-Za-z0-9]{1,128}$", "u");
|
|
13345
|
+
var pattern15 = new RegExp("^https:\\/\\/github\\.com\\/apps\\/primitive(?:-staging)?\\/installations\\/new\\?state=[0-9a-f]{64}$", "u");
|
|
13346
|
+
function validate52(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
12419
13347
|
;
|
|
12420
13348
|
let vErrors = null;
|
|
12421
13349
|
let errors = 0;
|
|
12422
|
-
const evaluated0 =
|
|
13350
|
+
const evaluated0 = validate52.evaluated;
|
|
12423
13351
|
if (evaluated0.dynamicProps) {
|
|
12424
13352
|
evaluated0.props = void 0;
|
|
12425
13353
|
}
|
|
@@ -12431,13 +13359,13 @@ function validate47(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
12431
13359
|
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
12432
13360
|
let missing0;
|
|
12433
13361
|
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")) {
|
|
12434
|
-
|
|
13362
|
+
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 + "'" }];
|
|
12435
13363
|
return false;
|
|
12436
13364
|
} else {
|
|
12437
13365
|
const _errs2 = errors;
|
|
12438
13366
|
for (const key0 in data) {
|
|
12439
13367
|
if (!(key0 === "protocolVersion" || key0 === "mode" || key0 === "status" || key0 === "intentId" || key0 === "browserUrl" || key0 === "expiresAt" || key0 === "pollAfterMs")) {
|
|
12440
|
-
|
|
13368
|
+
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" }];
|
|
12441
13369
|
return false;
|
|
12442
13370
|
break;
|
|
12443
13371
|
}
|
|
@@ -12447,11 +13375,11 @@ function validate47(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
12447
13375
|
let data0 = data.protocolVersion;
|
|
12448
13376
|
const _errs3 = errors;
|
|
12449
13377
|
if (!(typeof data0 == "number" && isFinite(data0))) {
|
|
12450
|
-
|
|
13378
|
+
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" }];
|
|
12451
13379
|
return false;
|
|
12452
13380
|
}
|
|
12453
13381
|
if (1 !== data0) {
|
|
12454
|
-
|
|
13382
|
+
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" }];
|
|
12455
13383
|
return false;
|
|
12456
13384
|
}
|
|
12457
13385
|
var valid1 = _errs3 === errors;
|
|
@@ -12463,11 +13391,11 @@ function validate47(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
12463
13391
|
let data1 = data.mode;
|
|
12464
13392
|
const _errs5 = errors;
|
|
12465
13393
|
if (typeof data1 !== "string") {
|
|
12466
|
-
|
|
13394
|
+
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" }];
|
|
12467
13395
|
return false;
|
|
12468
13396
|
}
|
|
12469
13397
|
if ("install_intent_v1" !== data1) {
|
|
12470
|
-
|
|
13398
|
+
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" }];
|
|
12471
13399
|
return false;
|
|
12472
13400
|
}
|
|
12473
13401
|
var valid1 = _errs5 === errors;
|
|
@@ -12479,11 +13407,11 @@ function validate47(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
12479
13407
|
let data2 = data.status;
|
|
12480
13408
|
const _errs7 = errors;
|
|
12481
13409
|
if (typeof data2 !== "string") {
|
|
12482
|
-
|
|
13410
|
+
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" }];
|
|
12483
13411
|
return false;
|
|
12484
13412
|
}
|
|
12485
13413
|
if ("pending" !== data2) {
|
|
12486
|
-
|
|
13414
|
+
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" }];
|
|
12487
13415
|
return false;
|
|
12488
13416
|
}
|
|
12489
13417
|
var valid1 = _errs7 === errors;
|
|
@@ -12496,12 +13424,12 @@ function validate47(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
12496
13424
|
const _errs9 = errors;
|
|
12497
13425
|
if (errors === _errs9) {
|
|
12498
13426
|
if (typeof data3 === "string") {
|
|
12499
|
-
if (!
|
|
12500
|
-
|
|
13427
|
+
if (!pattern14.test(data3)) {
|
|
13428
|
+
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}$"' }];
|
|
12501
13429
|
return false;
|
|
12502
13430
|
}
|
|
12503
13431
|
} else {
|
|
12504
|
-
|
|
13432
|
+
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" }];
|
|
12505
13433
|
return false;
|
|
12506
13434
|
}
|
|
12507
13435
|
}
|
|
@@ -12515,12 +13443,12 @@ function validate47(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
12515
13443
|
const _errs11 = errors;
|
|
12516
13444
|
if (errors === _errs11) {
|
|
12517
13445
|
if (typeof data4 === "string") {
|
|
12518
|
-
if (!
|
|
12519
|
-
|
|
13446
|
+
if (!pattern15.test(data4)) {
|
|
13447
|
+
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}$"' }];
|
|
12520
13448
|
return false;
|
|
12521
13449
|
}
|
|
12522
13450
|
} else {
|
|
12523
|
-
|
|
13451
|
+
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" }];
|
|
12524
13452
|
return false;
|
|
12525
13453
|
}
|
|
12526
13454
|
}
|
|
@@ -12533,17 +13461,17 @@ function validate47(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
12533
13461
|
let data5 = data.expiresAt;
|
|
12534
13462
|
const _errs13 = errors;
|
|
12535
13463
|
if (!(typeof data5 == "number" && (!(data5 % 1) && !isNaN(data5)) && isFinite(data5))) {
|
|
12536
|
-
|
|
13464
|
+
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" }];
|
|
12537
13465
|
return false;
|
|
12538
13466
|
}
|
|
12539
13467
|
if (errors === _errs13) {
|
|
12540
13468
|
if (typeof data5 == "number" && isFinite(data5)) {
|
|
12541
13469
|
if (data5 > 9007199254740991 || isNaN(data5)) {
|
|
12542
|
-
|
|
13470
|
+
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" }];
|
|
12543
13471
|
return false;
|
|
12544
13472
|
} else {
|
|
12545
13473
|
if (data5 < 0 || isNaN(data5)) {
|
|
12546
|
-
|
|
13474
|
+
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" }];
|
|
12547
13475
|
return false;
|
|
12548
13476
|
}
|
|
12549
13477
|
}
|
|
@@ -12558,11 +13486,11 @@ function validate47(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
12558
13486
|
let data6 = data.pollAfterMs;
|
|
12559
13487
|
const _errs15 = errors;
|
|
12560
13488
|
if (!(typeof data6 == "number" && isFinite(data6))) {
|
|
12561
|
-
|
|
13489
|
+
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" }];
|
|
12562
13490
|
return false;
|
|
12563
13491
|
}
|
|
12564
13492
|
if (1e3 !== data6) {
|
|
12565
|
-
|
|
13493
|
+
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" }];
|
|
12566
13494
|
return false;
|
|
12567
13495
|
}
|
|
12568
13496
|
var valid1 = _errs15 === errors;
|
|
@@ -12578,19 +13506,19 @@ function validate47(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
12578
13506
|
}
|
|
12579
13507
|
}
|
|
12580
13508
|
} else {
|
|
12581
|
-
|
|
13509
|
+
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" }];
|
|
12582
13510
|
return false;
|
|
12583
13511
|
}
|
|
12584
13512
|
}
|
|
12585
|
-
|
|
13513
|
+
validate52.errors = vErrors;
|
|
12586
13514
|
return errors === 0;
|
|
12587
13515
|
}
|
|
12588
|
-
|
|
12589
|
-
function
|
|
13516
|
+
validate52.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
|
|
13517
|
+
function validate53(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
12590
13518
|
;
|
|
12591
13519
|
let vErrors = null;
|
|
12592
13520
|
let errors = 0;
|
|
12593
|
-
const evaluated0 =
|
|
13521
|
+
const evaluated0 = validate53.evaluated;
|
|
12594
13522
|
if (evaluated0.dynamicProps) {
|
|
12595
13523
|
evaluated0.props = void 0;
|
|
12596
13524
|
}
|
|
@@ -12873,7 +13801,7 @@ function validate48(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
12873
13801
|
vErrors.push(err20);
|
|
12874
13802
|
}
|
|
12875
13803
|
errors++;
|
|
12876
|
-
|
|
13804
|
+
validate53.errors = vErrors;
|
|
12877
13805
|
return false;
|
|
12878
13806
|
} else {
|
|
12879
13807
|
errors = _errs1;
|
|
@@ -12885,16 +13813,16 @@ function validate48(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
12885
13813
|
}
|
|
12886
13814
|
}
|
|
12887
13815
|
}
|
|
12888
|
-
|
|
13816
|
+
validate53.errors = vErrors;
|
|
12889
13817
|
evaluated0.props = props0;
|
|
12890
13818
|
return errors === 0;
|
|
12891
13819
|
}
|
|
12892
|
-
|
|
12893
|
-
function
|
|
13820
|
+
validate53.evaluated = { "dynamicProps": true, "dynamicItems": false };
|
|
13821
|
+
function validate54(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
12894
13822
|
;
|
|
12895
13823
|
let vErrors = null;
|
|
12896
13824
|
let errors = 0;
|
|
12897
|
-
const evaluated0 =
|
|
13825
|
+
const evaluated0 = validate54.evaluated;
|
|
12898
13826
|
if (evaluated0.dynamicProps) {
|
|
12899
13827
|
evaluated0.props = void 0;
|
|
12900
13828
|
}
|
|
@@ -12906,13 +13834,13 @@ function validate49(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
12906
13834
|
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
12907
13835
|
let missing0;
|
|
12908
13836
|
if (data.intentId === void 0 && (missing0 = "intentId")) {
|
|
12909
|
-
|
|
13837
|
+
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 + "'" }];
|
|
12910
13838
|
return false;
|
|
12911
13839
|
} else {
|
|
12912
13840
|
const _errs2 = errors;
|
|
12913
13841
|
for (const key0 in data) {
|
|
12914
13842
|
if (!(key0 === "intentId")) {
|
|
12915
|
-
|
|
13843
|
+
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" }];
|
|
12916
13844
|
return false;
|
|
12917
13845
|
break;
|
|
12918
13846
|
}
|
|
@@ -12923,12 +13851,12 @@ function validate49(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
12923
13851
|
const _errs3 = errors;
|
|
12924
13852
|
if (errors === _errs3) {
|
|
12925
13853
|
if (typeof data0 === "string") {
|
|
12926
|
-
if (!
|
|
12927
|
-
|
|
13854
|
+
if (!pattern14.test(data0)) {
|
|
13855
|
+
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}$"' }];
|
|
12928
13856
|
return false;
|
|
12929
13857
|
}
|
|
12930
13858
|
} else {
|
|
12931
|
-
|
|
13859
|
+
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" }];
|
|
12932
13860
|
return false;
|
|
12933
13861
|
}
|
|
12934
13862
|
}
|
|
@@ -12936,21 +13864,20 @@ function validate49(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
12936
13864
|
}
|
|
12937
13865
|
}
|
|
12938
13866
|
} else {
|
|
12939
|
-
|
|
13867
|
+
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" }];
|
|
12940
13868
|
return false;
|
|
12941
13869
|
}
|
|
12942
13870
|
}
|
|
12943
|
-
|
|
13871
|
+
validate54.errors = vErrors;
|
|
12944
13872
|
return errors === 0;
|
|
12945
13873
|
}
|
|
12946
|
-
|
|
12947
|
-
var
|
|
12948
|
-
|
|
12949
|
-
function validate50(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
13874
|
+
validate54.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
|
|
13875
|
+
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"] }] };
|
|
13876
|
+
function validate55(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
12950
13877
|
;
|
|
12951
13878
|
let vErrors = null;
|
|
12952
13879
|
let errors = 0;
|
|
12953
|
-
const evaluated0 =
|
|
13880
|
+
const evaluated0 = validate55.evaluated;
|
|
12954
13881
|
if (evaluated0.dynamicProps) {
|
|
12955
13882
|
evaluated0.props = void 0;
|
|
12956
13883
|
}
|
|
@@ -13399,7 +14326,7 @@ function validate50(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
13399
14326
|
} else {
|
|
13400
14327
|
const _errs34 = errors;
|
|
13401
14328
|
for (const key2 in data) {
|
|
13402
|
-
if (!
|
|
14329
|
+
if (!func34.call(schema101.anyOf[2].properties, key2)) {
|
|
13403
14330
|
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" };
|
|
13404
14331
|
if (vErrors === null) {
|
|
13405
14332
|
vErrors = [err32];
|
|
@@ -14433,7 +15360,7 @@ function validate50(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
14433
15360
|
errors++;
|
|
14434
15361
|
}
|
|
14435
15362
|
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")) {
|
|
14436
|
-
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:
|
|
15363
|
+
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" };
|
|
14437
15364
|
if (vErrors === null) {
|
|
14438
15365
|
vErrors = [err108];
|
|
14439
15366
|
} else {
|
|
@@ -14478,7 +15405,7 @@ function validate50(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
14478
15405
|
vErrors.push(err110);
|
|
14479
15406
|
}
|
|
14480
15407
|
errors++;
|
|
14481
|
-
|
|
15408
|
+
validate55.errors = vErrors;
|
|
14482
15409
|
return false;
|
|
14483
15410
|
} else {
|
|
14484
15411
|
errors = _errs1;
|
|
@@ -14490,18 +15417,18 @@ function validate50(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
14490
15417
|
}
|
|
14491
15418
|
}
|
|
14492
15419
|
}
|
|
14493
|
-
|
|
15420
|
+
validate55.errors = vErrors;
|
|
14494
15421
|
evaluated0.props = props0;
|
|
14495
15422
|
return errors === 0;
|
|
14496
15423
|
}
|
|
14497
|
-
|
|
14498
|
-
var
|
|
14499
|
-
var
|
|
14500
|
-
function
|
|
15424
|
+
validate55.evaluated = { "dynamicProps": true, "dynamicItems": false };
|
|
15425
|
+
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": {} };
|
|
15426
|
+
var pattern17 = new RegExp("^[A-Za-z0-9_-]+$", "u");
|
|
15427
|
+
function validate56(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
14501
15428
|
;
|
|
14502
15429
|
let vErrors = null;
|
|
14503
15430
|
let errors = 0;
|
|
14504
|
-
const evaluated0 =
|
|
15431
|
+
const evaluated0 = validate56.evaluated;
|
|
14505
15432
|
if (evaluated0.dynamicProps) {
|
|
14506
15433
|
evaluated0.props = void 0;
|
|
14507
15434
|
}
|
|
@@ -14513,7 +15440,7 @@ function validate51(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
14513
15440
|
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
14514
15441
|
let missing0;
|
|
14515
15442
|
if (data.batch === void 0 && (missing0 = "batch")) {
|
|
14516
|
-
|
|
15443
|
+
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 + "'" }];
|
|
14517
15444
|
return false;
|
|
14518
15445
|
} else {
|
|
14519
15446
|
if (data.batch !== void 0) {
|
|
@@ -14857,7 +15784,7 @@ function validate51(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
14857
15784
|
}
|
|
14858
15785
|
errors++;
|
|
14859
15786
|
} else {
|
|
14860
|
-
if (!
|
|
15787
|
+
if (!pattern17.test(data11)) {
|
|
14861
15788
|
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_-]+$"' };
|
|
14862
15789
|
if (vErrors === null) {
|
|
14863
15790
|
vErrors = [err22];
|
|
@@ -14896,7 +15823,7 @@ function validate51(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
14896
15823
|
errors++;
|
|
14897
15824
|
}
|
|
14898
15825
|
if (!(data12 === "workos" || data12 === "service_token")) {
|
|
14899
|
-
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:
|
|
15826
|
+
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" };
|
|
14900
15827
|
if (vErrors === null) {
|
|
14901
15828
|
vErrors = [err25];
|
|
14902
15829
|
} else {
|
|
@@ -14962,7 +15889,7 @@ function validate51(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
14962
15889
|
errors++;
|
|
14963
15890
|
}
|
|
14964
15891
|
if (!(data14 === "claude_code" || data14 === "codex" || data14 === "cursor" || data14 === "hermes")) {
|
|
14965
|
-
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:
|
|
15892
|
+
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" };
|
|
14966
15893
|
if (vErrors === null) {
|
|
14967
15894
|
vErrors = [err30];
|
|
14968
15895
|
} else {
|
|
@@ -14988,7 +15915,7 @@ function validate51(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
14988
15915
|
errors++;
|
|
14989
15916
|
}
|
|
14990
15917
|
if (!(data15 === "succeeded" || data15 === "returned" || data15 === "failed" || data15 === "interrupted" || data15 === "prevented" || data15 === "unknown")) {
|
|
14991
|
-
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:
|
|
15918
|
+
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" };
|
|
14992
15919
|
if (vErrors === null) {
|
|
14993
15920
|
vErrors = [err32];
|
|
14994
15921
|
} else {
|
|
@@ -15382,7 +16309,7 @@ function validate51(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
15382
16309
|
}
|
|
15383
16310
|
errors++;
|
|
15384
16311
|
} else {
|
|
15385
|
-
if (!
|
|
16312
|
+
if (!pattern17.test(data26)) {
|
|
15386
16313
|
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_-]+$"' };
|
|
15387
16314
|
if (vErrors === null) {
|
|
15388
16315
|
vErrors = [err58];
|
|
@@ -15421,7 +16348,7 @@ function validate51(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
15421
16348
|
errors++;
|
|
15422
16349
|
}
|
|
15423
16350
|
if (!(data27 === "workos" || data27 === "service_token")) {
|
|
15424
|
-
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:
|
|
16351
|
+
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" };
|
|
15425
16352
|
if (vErrors === null) {
|
|
15426
16353
|
vErrors = [err61];
|
|
15427
16354
|
} else {
|
|
@@ -15487,7 +16414,7 @@ function validate51(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
15487
16414
|
errors++;
|
|
15488
16415
|
}
|
|
15489
16416
|
if (!(data29 === "claude_code" || data29 === "codex" || data29 === "cursor" || data29 === "hermes")) {
|
|
15490
|
-
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:
|
|
16417
|
+
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" };
|
|
15491
16418
|
if (vErrors === null) {
|
|
15492
16419
|
vErrors = [err66];
|
|
15493
16420
|
} else {
|
|
@@ -15513,7 +16440,7 @@ function validate51(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
15513
16440
|
errors++;
|
|
15514
16441
|
}
|
|
15515
16442
|
if (!(data30 === "succeeded" || data30 === "returned" || data30 === "failed" || data30 === "interrupted" || data30 === "prevented" || data30 === "unknown")) {
|
|
15516
|
-
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:
|
|
16443
|
+
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" };
|
|
15517
16444
|
if (vErrors === null) {
|
|
15518
16445
|
vErrors = [err68];
|
|
15519
16446
|
} else {
|
|
@@ -15591,7 +16518,7 @@ function validate51(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
15591
16518
|
vErrors.push(err72);
|
|
15592
16519
|
}
|
|
15593
16520
|
errors++;
|
|
15594
|
-
|
|
16521
|
+
validate56.errors = vErrors;
|
|
15595
16522
|
return false;
|
|
15596
16523
|
} else {
|
|
15597
16524
|
errors = _errs6;
|
|
@@ -15609,31 +16536,31 @@ function validate51(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
15609
16536
|
}
|
|
15610
16537
|
}
|
|
15611
16538
|
} else {
|
|
15612
|
-
|
|
16539
|
+
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" }];
|
|
15613
16540
|
return false;
|
|
15614
16541
|
}
|
|
15615
16542
|
}
|
|
15616
16543
|
}
|
|
15617
16544
|
}
|
|
15618
16545
|
} else {
|
|
15619
|
-
|
|
16546
|
+
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" }];
|
|
15620
16547
|
return false;
|
|
15621
16548
|
}
|
|
15622
16549
|
}
|
|
15623
|
-
|
|
16550
|
+
validate56.errors = vErrors;
|
|
15624
16551
|
return errors === 0;
|
|
15625
16552
|
}
|
|
15626
|
-
|
|
15627
|
-
var
|
|
15628
|
-
var
|
|
15629
|
-
var
|
|
15630
|
-
var
|
|
15631
|
-
var
|
|
15632
|
-
function
|
|
16553
|
+
validate56.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
|
|
16554
|
+
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"] };
|
|
16555
|
+
var pattern19 = new RegExp("^[A-Za-z0-9._:-]{1,128}$", "u");
|
|
16556
|
+
var pattern21 = new RegExp("^[A-Za-z0-9]{1,64}$", "u");
|
|
16557
|
+
var pattern22 = new RegExp("^(?!@?$)(?!\\/)(?!.*\\/$)(?!.*\\/\\/)(?!.*(?:^|\\/)\\.{1,2}(?:\\/|$))(?!.*(?:^|\\/)[^/]*\\.lock(?:\\/|$))(?!.*\\.\\.)(?!.*@\\{)(?!.*[~^:?*\\\\]).+$", "u");
|
|
16558
|
+
var pattern23 = new RegExp("^[A-Za-z0-9][A-Za-z0-9._+-]*$", "u");
|
|
16559
|
+
function validate57(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
15633
16560
|
;
|
|
15634
16561
|
let vErrors = null;
|
|
15635
16562
|
let errors = 0;
|
|
15636
|
-
const evaluated0 =
|
|
16563
|
+
const evaluated0 = validate57.evaluated;
|
|
15637
16564
|
if (evaluated0.dynamicProps) {
|
|
15638
16565
|
evaluated0.props = void 0;
|
|
15639
16566
|
}
|
|
@@ -15645,13 +16572,13 @@ function validate52(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
15645
16572
|
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
15646
16573
|
let missing0;
|
|
15647
16574
|
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")) {
|
|
15648
|
-
|
|
16575
|
+
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 + "'" }];
|
|
15649
16576
|
return false;
|
|
15650
16577
|
} else {
|
|
15651
16578
|
const _errs3 = errors;
|
|
15652
16579
|
for (const key0 in data) {
|
|
15653
|
-
if (!
|
|
15654
|
-
|
|
16580
|
+
if (!func34.call(schema105.properties, key0)) {
|
|
16581
|
+
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" }];
|
|
15655
16582
|
return false;
|
|
15656
16583
|
break;
|
|
15657
16584
|
}
|
|
@@ -15661,11 +16588,11 @@ function validate52(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
15661
16588
|
let data0 = data.protocolVersion;
|
|
15662
16589
|
const _errs4 = errors;
|
|
15663
16590
|
if (!(typeof data0 == "number" && isFinite(data0))) {
|
|
15664
|
-
|
|
16591
|
+
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" }];
|
|
15665
16592
|
return false;
|
|
15666
16593
|
}
|
|
15667
16594
|
if (3 !== data0) {
|
|
15668
|
-
|
|
16595
|
+
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" }];
|
|
15669
16596
|
return false;
|
|
15670
16597
|
}
|
|
15671
16598
|
var valid1 = _errs4 === errors;
|
|
@@ -15677,11 +16604,11 @@ function validate52(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
15677
16604
|
let data1 = data.agent;
|
|
15678
16605
|
const _errs6 = errors;
|
|
15679
16606
|
if (typeof data1 !== "string") {
|
|
15680
|
-
|
|
16607
|
+
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" }];
|
|
15681
16608
|
return false;
|
|
15682
16609
|
}
|
|
15683
16610
|
if (!(data1 === "claude_code" || data1 === "codex" || data1 === "cursor" || data1 === "hermes")) {
|
|
15684
|
-
|
|
16611
|
+
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" }];
|
|
15685
16612
|
return false;
|
|
15686
16613
|
}
|
|
15687
16614
|
var valid1 = _errs6 === errors;
|
|
@@ -15694,12 +16621,12 @@ function validate52(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
15694
16621
|
const _errs8 = errors;
|
|
15695
16622
|
if (errors === _errs8) {
|
|
15696
16623
|
if (typeof data2 === "string") {
|
|
15697
|
-
if (!
|
|
15698
|
-
|
|
16624
|
+
if (!pattern19.test(data2)) {
|
|
16625
|
+
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}$"' }];
|
|
15699
16626
|
return false;
|
|
15700
16627
|
}
|
|
15701
16628
|
} else {
|
|
15702
|
-
|
|
16629
|
+
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" }];
|
|
15703
16630
|
return false;
|
|
15704
16631
|
}
|
|
15705
16632
|
}
|
|
@@ -15713,12 +16640,12 @@ function validate52(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
15713
16640
|
const _errs10 = errors;
|
|
15714
16641
|
if (errors === _errs10) {
|
|
15715
16642
|
if (typeof data3 === "string") {
|
|
15716
|
-
if (!
|
|
15717
|
-
|
|
16643
|
+
if (!pattern19.test(data3)) {
|
|
16644
|
+
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}$"' }];
|
|
15718
16645
|
return false;
|
|
15719
16646
|
}
|
|
15720
16647
|
} else {
|
|
15721
|
-
|
|
16648
|
+
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" }];
|
|
15722
16649
|
return false;
|
|
15723
16650
|
}
|
|
15724
16651
|
}
|
|
@@ -15732,12 +16659,12 @@ function validate52(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
15732
16659
|
const _errs12 = errors;
|
|
15733
16660
|
if (errors === _errs12) {
|
|
15734
16661
|
if (typeof data4 === "string") {
|
|
15735
|
-
if (!
|
|
15736
|
-
|
|
16662
|
+
if (!pattern21.test(data4)) {
|
|
16663
|
+
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}$"' }];
|
|
15737
16664
|
return false;
|
|
15738
16665
|
}
|
|
15739
16666
|
} else {
|
|
15740
|
-
|
|
16667
|
+
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" }];
|
|
15741
16668
|
return false;
|
|
15742
16669
|
}
|
|
15743
16670
|
}
|
|
@@ -15752,7 +16679,7 @@ function validate52(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
15752
16679
|
if (errors === _errs14) {
|
|
15753
16680
|
if (Array.isArray(data5)) {
|
|
15754
16681
|
if (data5.length > 32) {
|
|
15755
|
-
|
|
16682
|
+
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" }];
|
|
15756
16683
|
return false;
|
|
15757
16684
|
} else {
|
|
15758
16685
|
var valid2 = true;
|
|
@@ -15760,7 +16687,7 @@ function validate52(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
15760
16687
|
for (let i0 = 0; i0 < len0; i0++) {
|
|
15761
16688
|
const _errs16 = errors;
|
|
15762
16689
|
if (typeof data5[i0] !== "string") {
|
|
15763
|
-
|
|
16690
|
+
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" }];
|
|
15764
16691
|
return false;
|
|
15765
16692
|
}
|
|
15766
16693
|
var valid2 = _errs16 === errors;
|
|
@@ -15770,7 +16697,7 @@ function validate52(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
15770
16697
|
}
|
|
15771
16698
|
}
|
|
15772
16699
|
} else {
|
|
15773
|
-
|
|
16700
|
+
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" }];
|
|
15774
16701
|
return false;
|
|
15775
16702
|
}
|
|
15776
16703
|
}
|
|
@@ -15783,11 +16710,11 @@ function validate52(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
15783
16710
|
let data7 = data.coverage;
|
|
15784
16711
|
const _errs18 = errors;
|
|
15785
16712
|
if (typeof data7 !== "string") {
|
|
15786
|
-
|
|
16713
|
+
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" }];
|
|
15787
16714
|
return false;
|
|
15788
16715
|
}
|
|
15789
16716
|
if (!(data7 === "complete" || data7 === "unverified")) {
|
|
15790
|
-
|
|
16717
|
+
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" }];
|
|
15791
16718
|
return false;
|
|
15792
16719
|
}
|
|
15793
16720
|
var valid1 = _errs18 === errors;
|
|
@@ -15801,16 +16728,16 @@ function validate52(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
15801
16728
|
if (errors === _errs20) {
|
|
15802
16729
|
if (typeof data8 === "string") {
|
|
15803
16730
|
if (func1(data8) > 255) {
|
|
15804
|
-
|
|
16731
|
+
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" }];
|
|
15805
16732
|
return false;
|
|
15806
16733
|
} else {
|
|
15807
|
-
if (!
|
|
15808
|
-
|
|
16734
|
+
if (!pattern22.test(data8)) {
|
|
16735
|
+
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(?:\\/|$))(?!.*\\.\\.)(?!.*@\\{)(?!.*[~^:?*\\\\]).+$"' }];
|
|
15809
16736
|
return false;
|
|
15810
16737
|
}
|
|
15811
16738
|
}
|
|
15812
16739
|
} else {
|
|
15813
|
-
|
|
16740
|
+
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" }];
|
|
15814
16741
|
return false;
|
|
15815
16742
|
}
|
|
15816
16743
|
}
|
|
@@ -15823,11 +16750,11 @@ function validate52(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
15823
16750
|
let data9 = data.clientMode;
|
|
15824
16751
|
const _errs22 = errors;
|
|
15825
16752
|
if (typeof data9 !== "string") {
|
|
15826
|
-
|
|
16753
|
+
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" }];
|
|
15827
16754
|
return false;
|
|
15828
16755
|
}
|
|
15829
16756
|
if (!(data9 === "block" || data9 === "warn")) {
|
|
15830
|
-
|
|
16757
|
+
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" }];
|
|
15831
16758
|
return false;
|
|
15832
16759
|
}
|
|
15833
16760
|
var valid1 = _errs22 === errors;
|
|
@@ -15841,16 +16768,16 @@ function validate52(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
15841
16768
|
if (errors === _errs24) {
|
|
15842
16769
|
if (typeof data10 === "string") {
|
|
15843
16770
|
if (func1(data10) > 32) {
|
|
15844
|
-
|
|
16771
|
+
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" }];
|
|
15845
16772
|
return false;
|
|
15846
16773
|
} else {
|
|
15847
|
-
if (!
|
|
15848
|
-
|
|
16774
|
+
if (!pattern23.test(data10)) {
|
|
16775
|
+
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._+-]*$"' }];
|
|
15849
16776
|
return false;
|
|
15850
16777
|
}
|
|
15851
16778
|
}
|
|
15852
16779
|
} else {
|
|
15853
|
-
|
|
16780
|
+
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" }];
|
|
15854
16781
|
return false;
|
|
15855
16782
|
}
|
|
15856
16783
|
}
|
|
@@ -15862,7 +16789,7 @@ function validate52(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
15862
16789
|
if (data.proposal !== void 0) {
|
|
15863
16790
|
const _errs26 = errors;
|
|
15864
16791
|
if (typeof data.proposal !== "string") {
|
|
15865
|
-
|
|
16792
|
+
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" }];
|
|
15866
16793
|
return false;
|
|
15867
16794
|
}
|
|
15868
16795
|
var valid1 = _errs26 === errors;
|
|
@@ -15882,20 +16809,20 @@ function validate52(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
15882
16809
|
}
|
|
15883
16810
|
}
|
|
15884
16811
|
} else {
|
|
15885
|
-
|
|
16812
|
+
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" }];
|
|
15886
16813
|
return false;
|
|
15887
16814
|
}
|
|
15888
16815
|
}
|
|
15889
|
-
|
|
16816
|
+
validate57.errors = vErrors;
|
|
15890
16817
|
return errors === 0;
|
|
15891
16818
|
}
|
|
15892
|
-
|
|
15893
|
-
var
|
|
15894
|
-
function
|
|
16819
|
+
validate57.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
|
|
16820
|
+
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": {} };
|
|
16821
|
+
function validate58(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
15895
16822
|
;
|
|
15896
16823
|
let vErrors = null;
|
|
15897
16824
|
let errors = 0;
|
|
15898
|
-
const evaluated0 =
|
|
16825
|
+
const evaluated0 = validate58.evaluated;
|
|
15899
16826
|
if (evaluated0.dynamicProps) {
|
|
15900
16827
|
evaluated0.props = void 0;
|
|
15901
16828
|
}
|
|
@@ -15907,18 +16834,18 @@ function validate53(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
15907
16834
|
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
15908
16835
|
let missing0;
|
|
15909
16836
|
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")) {
|
|
15910
|
-
|
|
16837
|
+
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 + "'" }];
|
|
15911
16838
|
return false;
|
|
15912
16839
|
} else {
|
|
15913
16840
|
if (data.protocolVersion !== void 0) {
|
|
15914
16841
|
let data0 = data.protocolVersion;
|
|
15915
16842
|
const _errs3 = errors;
|
|
15916
16843
|
if (!(typeof data0 == "number" && isFinite(data0))) {
|
|
15917
|
-
|
|
16844
|
+
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" }];
|
|
15918
16845
|
return false;
|
|
15919
16846
|
}
|
|
15920
16847
|
if (3 !== data0) {
|
|
15921
|
-
|
|
16848
|
+
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" }];
|
|
15922
16849
|
return false;
|
|
15923
16850
|
}
|
|
15924
16851
|
var valid1 = _errs3 === errors;
|
|
@@ -15931,12 +16858,12 @@ function validate53(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
15931
16858
|
const _errs5 = errors;
|
|
15932
16859
|
if (errors === _errs5) {
|
|
15933
16860
|
if (typeof data1 === "string") {
|
|
15934
|
-
if (!
|
|
15935
|
-
|
|
16861
|
+
if (!pattern19.test(data1)) {
|
|
16862
|
+
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}$"' }];
|
|
15936
16863
|
return false;
|
|
15937
16864
|
}
|
|
15938
16865
|
} else {
|
|
15939
|
-
|
|
16866
|
+
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" }];
|
|
15940
16867
|
return false;
|
|
15941
16868
|
}
|
|
15942
16869
|
}
|
|
@@ -15949,11 +16876,11 @@ function validate53(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
15949
16876
|
let data2 = data.verdict;
|
|
15950
16877
|
const _errs7 = errors;
|
|
15951
16878
|
if (typeof data2 !== "string") {
|
|
15952
|
-
|
|
16879
|
+
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" }];
|
|
15953
16880
|
return false;
|
|
15954
16881
|
}
|
|
15955
16882
|
if (!(data2 === "allow" || data2 === "warn" || data2 === "ask" || data2 === "block" || data2 === "unavailable")) {
|
|
15956
|
-
|
|
16883
|
+
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" }];
|
|
15957
16884
|
return false;
|
|
15958
16885
|
}
|
|
15959
16886
|
var valid1 = _errs7 === errors;
|
|
@@ -15964,7 +16891,7 @@ function validate53(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
15964
16891
|
if (data.reasonCode !== void 0) {
|
|
15965
16892
|
const _errs9 = errors;
|
|
15966
16893
|
if (typeof data.reasonCode !== "string") {
|
|
15967
|
-
|
|
16894
|
+
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" }];
|
|
15968
16895
|
return false;
|
|
15969
16896
|
}
|
|
15970
16897
|
var valid1 = _errs9 === errors;
|
|
@@ -15975,7 +16902,7 @@ function validate53(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
15975
16902
|
if (data.message !== void 0) {
|
|
15976
16903
|
const _errs11 = errors;
|
|
15977
16904
|
if (typeof data.message !== "string") {
|
|
15978
|
-
|
|
16905
|
+
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" }];
|
|
15979
16906
|
return false;
|
|
15980
16907
|
}
|
|
15981
16908
|
var valid1 = _errs11 === errors;
|
|
@@ -15997,13 +16924,13 @@ function validate53(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
15997
16924
|
if (data6 && typeof data6 == "object" && !Array.isArray(data6)) {
|
|
15998
16925
|
let missing1;
|
|
15999
16926
|
if (data6.decisionId === void 0 && (missing1 = "decisionId")) {
|
|
16000
|
-
|
|
16927
|
+
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 + "'" }];
|
|
16001
16928
|
return false;
|
|
16002
16929
|
} else {
|
|
16003
16930
|
if (data6.decisionId !== void 0) {
|
|
16004
16931
|
const _errs18 = errors;
|
|
16005
16932
|
if (typeof data6.decisionId !== "string") {
|
|
16006
|
-
|
|
16933
|
+
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" }];
|
|
16007
16934
|
return false;
|
|
16008
16935
|
}
|
|
16009
16936
|
var valid3 = _errs18 === errors;
|
|
@@ -16014,7 +16941,7 @@ function validate53(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
16014
16941
|
if (data6.shortId !== void 0) {
|
|
16015
16942
|
const _errs20 = errors;
|
|
16016
16943
|
if (typeof data6.shortId !== "string") {
|
|
16017
|
-
|
|
16944
|
+
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" }];
|
|
16018
16945
|
return false;
|
|
16019
16946
|
}
|
|
16020
16947
|
var valid3 = _errs20 === errors;
|
|
@@ -16024,7 +16951,7 @@ function validate53(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
16024
16951
|
}
|
|
16025
16952
|
}
|
|
16026
16953
|
} else {
|
|
16027
|
-
|
|
16954
|
+
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" }];
|
|
16028
16955
|
return false;
|
|
16029
16956
|
}
|
|
16030
16957
|
}
|
|
@@ -16034,7 +16961,7 @@ function validate53(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
16034
16961
|
}
|
|
16035
16962
|
}
|
|
16036
16963
|
} else {
|
|
16037
|
-
|
|
16964
|
+
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" }];
|
|
16038
16965
|
return false;
|
|
16039
16966
|
}
|
|
16040
16967
|
}
|
|
@@ -16057,13 +16984,13 @@ function validate53(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
16057
16984
|
if (data10 && typeof data10 == "object" && !Array.isArray(data10)) {
|
|
16058
16985
|
let missing2;
|
|
16059
16986
|
if (data10.decisionId === void 0 && (missing2 = "decisionId")) {
|
|
16060
|
-
|
|
16987
|
+
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 + "'" }];
|
|
16061
16988
|
return false;
|
|
16062
16989
|
} else {
|
|
16063
16990
|
if (data10.decisionId !== void 0) {
|
|
16064
16991
|
const _errs27 = errors;
|
|
16065
16992
|
if (typeof data10.decisionId !== "string") {
|
|
16066
|
-
|
|
16993
|
+
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" }];
|
|
16067
16994
|
return false;
|
|
16068
16995
|
}
|
|
16069
16996
|
var valid5 = _errs27 === errors;
|
|
@@ -16074,7 +17001,7 @@ function validate53(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
16074
17001
|
if (data10.bypassId !== void 0) {
|
|
16075
17002
|
const _errs29 = errors;
|
|
16076
17003
|
if (typeof data10.bypassId !== "string") {
|
|
16077
|
-
|
|
17004
|
+
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" }];
|
|
16078
17005
|
return false;
|
|
16079
17006
|
}
|
|
16080
17007
|
var valid5 = _errs29 === errors;
|
|
@@ -16085,7 +17012,7 @@ function validate53(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
16085
17012
|
if (data10.shortId !== void 0) {
|
|
16086
17013
|
const _errs31 = errors;
|
|
16087
17014
|
if (typeof data10.shortId !== "string") {
|
|
16088
|
-
|
|
17015
|
+
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" }];
|
|
16089
17016
|
return false;
|
|
16090
17017
|
}
|
|
16091
17018
|
var valid5 = _errs31 === errors;
|
|
@@ -16096,7 +17023,7 @@ function validate53(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
16096
17023
|
}
|
|
16097
17024
|
}
|
|
16098
17025
|
} else {
|
|
16099
|
-
|
|
17026
|
+
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" }];
|
|
16100
17027
|
return false;
|
|
16101
17028
|
}
|
|
16102
17029
|
}
|
|
@@ -16106,7 +17033,7 @@ function validate53(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
16106
17033
|
}
|
|
16107
17034
|
}
|
|
16108
17035
|
} else {
|
|
16109
|
-
|
|
17036
|
+
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" }];
|
|
16110
17037
|
return false;
|
|
16111
17038
|
}
|
|
16112
17039
|
}
|
|
@@ -16121,11 +17048,11 @@ function validate53(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
16121
17048
|
if (errors === _errs33) {
|
|
16122
17049
|
if (Array.isArray(data14)) {
|
|
16123
17050
|
if (data14.length > 16) {
|
|
16124
|
-
|
|
17051
|
+
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" }];
|
|
16125
17052
|
return false;
|
|
16126
17053
|
} else {
|
|
16127
17054
|
if (data14.length < 1) {
|
|
16128
|
-
|
|
17055
|
+
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" }];
|
|
16129
17056
|
return false;
|
|
16130
17057
|
} else {
|
|
16131
17058
|
var valid6 = true;
|
|
@@ -16137,13 +17064,13 @@ function validate53(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
16137
17064
|
if (data15 && typeof data15 == "object" && !Array.isArray(data15)) {
|
|
16138
17065
|
let missing3;
|
|
16139
17066
|
if (data15.decisionId === void 0 && (missing3 = "decisionId") || data15.shortId === void 0 && (missing3 = "shortId") || data15.participation === void 0 && (missing3 = "participation")) {
|
|
16140
|
-
|
|
17067
|
+
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 + "'" }];
|
|
16141
17068
|
return false;
|
|
16142
17069
|
} else {
|
|
16143
17070
|
const _errs37 = errors;
|
|
16144
17071
|
for (const key0 in data15) {
|
|
16145
17072
|
if (!(key0 === "decisionId" || key0 === "shortId" || key0 === "participation")) {
|
|
16146
|
-
|
|
17073
|
+
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" }];
|
|
16147
17074
|
return false;
|
|
16148
17075
|
break;
|
|
16149
17076
|
}
|
|
@@ -16152,7 +17079,7 @@ function validate53(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
16152
17079
|
if (data15.decisionId !== void 0) {
|
|
16153
17080
|
const _errs38 = errors;
|
|
16154
17081
|
if (typeof data15.decisionId !== "string") {
|
|
16155
|
-
|
|
17082
|
+
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" }];
|
|
16156
17083
|
return false;
|
|
16157
17084
|
}
|
|
16158
17085
|
var valid7 = _errs38 === errors;
|
|
@@ -16163,7 +17090,7 @@ function validate53(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
16163
17090
|
if (data15.shortId !== void 0) {
|
|
16164
17091
|
const _errs40 = errors;
|
|
16165
17092
|
if (typeof data15.shortId !== "string") {
|
|
16166
|
-
|
|
17093
|
+
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" }];
|
|
16167
17094
|
return false;
|
|
16168
17095
|
}
|
|
16169
17096
|
var valid7 = _errs40 === errors;
|
|
@@ -16175,11 +17102,11 @@ function validate53(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
16175
17102
|
let data18 = data15.participation;
|
|
16176
17103
|
const _errs42 = errors;
|
|
16177
17104
|
if (typeof data18 !== "string") {
|
|
16178
|
-
|
|
17105
|
+
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" }];
|
|
16179
17106
|
return false;
|
|
16180
17107
|
}
|
|
16181
17108
|
if (!(data18 === "candidate" || data18 === "reconcile_bypass")) {
|
|
16182
|
-
|
|
17109
|
+
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" }];
|
|
16183
17110
|
return false;
|
|
16184
17111
|
}
|
|
16185
17112
|
var valid7 = _errs42 === errors;
|
|
@@ -16191,7 +17118,7 @@ function validate53(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
16191
17118
|
}
|
|
16192
17119
|
}
|
|
16193
17120
|
} else {
|
|
16194
|
-
|
|
17121
|
+
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" }];
|
|
16195
17122
|
return false;
|
|
16196
17123
|
}
|
|
16197
17124
|
}
|
|
@@ -16203,7 +17130,7 @@ function validate53(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
16203
17130
|
}
|
|
16204
17131
|
}
|
|
16205
17132
|
} else {
|
|
16206
|
-
|
|
17133
|
+
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" }];
|
|
16207
17134
|
return false;
|
|
16208
17135
|
}
|
|
16209
17136
|
}
|
|
@@ -16220,21 +17147,21 @@ function validate53(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
16220
17147
|
}
|
|
16221
17148
|
}
|
|
16222
17149
|
} else {
|
|
16223
|
-
|
|
17150
|
+
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" }];
|
|
16224
17151
|
return false;
|
|
16225
17152
|
}
|
|
16226
17153
|
}
|
|
16227
|
-
|
|
17154
|
+
validate58.errors = vErrors;
|
|
16228
17155
|
return errors === 0;
|
|
16229
17156
|
}
|
|
16230
|
-
|
|
16231
|
-
var
|
|
16232
|
-
var
|
|
16233
|
-
function
|
|
17157
|
+
validate58.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
|
|
17158
|
+
var pattern25 = new RegExp("^[A-Za-z0-9._-]{1,128}$", "u");
|
|
17159
|
+
var pattern26 = new RegExp("^pci_[A-Za-z0-9_-]{43}$", "u");
|
|
17160
|
+
function validate59(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
16234
17161
|
;
|
|
16235
17162
|
let vErrors = null;
|
|
16236
17163
|
let errors = 0;
|
|
16237
|
-
const evaluated0 =
|
|
17164
|
+
const evaluated0 = validate59.evaluated;
|
|
16238
17165
|
if (evaluated0.dynamicProps) {
|
|
16239
17166
|
evaluated0.props = void 0;
|
|
16240
17167
|
}
|
|
@@ -16246,7 +17173,7 @@ function validate54(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
16246
17173
|
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
16247
17174
|
let missing0;
|
|
16248
17175
|
if (data.sessionId === void 0 && (missing0 = "sessionId")) {
|
|
16249
|
-
|
|
17176
|
+
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 + "'" }];
|
|
16250
17177
|
return false;
|
|
16251
17178
|
} else {
|
|
16252
17179
|
if (data.sessionId !== void 0) {
|
|
@@ -16254,12 +17181,12 @@ function validate54(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
16254
17181
|
const _errs3 = errors;
|
|
16255
17182
|
if (errors === _errs3) {
|
|
16256
17183
|
if (typeof data0 === "string") {
|
|
16257
|
-
if (!
|
|
16258
|
-
|
|
17184
|
+
if (!pattern25.test(data0)) {
|
|
17185
|
+
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}$"' }];
|
|
16259
17186
|
return false;
|
|
16260
17187
|
}
|
|
16261
17188
|
} else {
|
|
16262
|
-
|
|
17189
|
+
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" }];
|
|
16263
17190
|
return false;
|
|
16264
17191
|
}
|
|
16265
17192
|
}
|
|
@@ -16273,12 +17200,12 @@ function validate54(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
16273
17200
|
const _errs5 = errors;
|
|
16274
17201
|
if (errors === _errs5) {
|
|
16275
17202
|
if (typeof data1 === "string") {
|
|
16276
|
-
if (!
|
|
16277
|
-
|
|
17203
|
+
if (!pattern26.test(data1)) {
|
|
17204
|
+
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}$"' }];
|
|
16278
17205
|
return false;
|
|
16279
17206
|
}
|
|
16280
17207
|
} else {
|
|
16281
|
-
|
|
17208
|
+
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" }];
|
|
16282
17209
|
return false;
|
|
16283
17210
|
}
|
|
16284
17211
|
}
|
|
@@ -16291,17 +17218,17 @@ function validate54(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
16291
17218
|
let data2 = data.decisionLifecycleProtocolVersion;
|
|
16292
17219
|
const _errs7 = errors;
|
|
16293
17220
|
if (!(typeof data2 == "number" && (!(data2 % 1) && !isNaN(data2)) && isFinite(data2))) {
|
|
16294
|
-
|
|
17221
|
+
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" }];
|
|
16295
17222
|
return false;
|
|
16296
17223
|
}
|
|
16297
17224
|
if (errors === _errs7) {
|
|
16298
17225
|
if (typeof data2 == "number" && isFinite(data2)) {
|
|
16299
17226
|
if (data2 > 9007199254740991 || isNaN(data2)) {
|
|
16300
|
-
|
|
17227
|
+
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" }];
|
|
16301
17228
|
return false;
|
|
16302
17229
|
} else {
|
|
16303
17230
|
if (data2 < 1 || isNaN(data2)) {
|
|
16304
|
-
|
|
17231
|
+
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" }];
|
|
16305
17232
|
return false;
|
|
16306
17233
|
}
|
|
16307
17234
|
}
|
|
@@ -16315,19 +17242,19 @@ function validate54(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
16315
17242
|
}
|
|
16316
17243
|
}
|
|
16317
17244
|
} else {
|
|
16318
|
-
|
|
17245
|
+
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" }];
|
|
16319
17246
|
return false;
|
|
16320
17247
|
}
|
|
16321
17248
|
}
|
|
16322
|
-
|
|
17249
|
+
validate59.errors = vErrors;
|
|
16323
17250
|
return errors === 0;
|
|
16324
17251
|
}
|
|
16325
|
-
|
|
16326
|
-
function
|
|
17252
|
+
validate59.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
|
|
17253
|
+
function validate60(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
16327
17254
|
;
|
|
16328
17255
|
let vErrors = null;
|
|
16329
17256
|
let errors = 0;
|
|
16330
|
-
const evaluated0 =
|
|
17257
|
+
const evaluated0 = validate60.evaluated;
|
|
16331
17258
|
if (evaluated0.dynamicProps) {
|
|
16332
17259
|
evaluated0.props = void 0;
|
|
16333
17260
|
}
|
|
@@ -16693,7 +17620,7 @@ function validate55(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
16693
17620
|
vErrors.push(err22);
|
|
16694
17621
|
}
|
|
16695
17622
|
errors++;
|
|
16696
|
-
|
|
17623
|
+
validate60.errors = vErrors;
|
|
16697
17624
|
return false;
|
|
16698
17625
|
} else {
|
|
16699
17626
|
errors = _errs1;
|
|
@@ -16705,17 +17632,17 @@ function validate55(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
16705
17632
|
}
|
|
16706
17633
|
}
|
|
16707
17634
|
}
|
|
16708
|
-
|
|
17635
|
+
validate60.errors = vErrors;
|
|
16709
17636
|
evaluated0.props = props0;
|
|
16710
17637
|
return errors === 0;
|
|
16711
17638
|
}
|
|
16712
|
-
|
|
16713
|
-
var
|
|
16714
|
-
function
|
|
17639
|
+
validate60.evaluated = { "dynamicProps": true, "dynamicItems": false };
|
|
17640
|
+
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 };
|
|
17641
|
+
function validate61(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
16715
17642
|
;
|
|
16716
17643
|
let vErrors = null;
|
|
16717
17644
|
let errors = 0;
|
|
16718
|
-
const evaluated0 =
|
|
17645
|
+
const evaluated0 = validate61.evaluated;
|
|
16719
17646
|
if (evaluated0.dynamicProps) {
|
|
16720
17647
|
evaluated0.props = void 0;
|
|
16721
17648
|
}
|
|
@@ -16727,13 +17654,13 @@ function validate56(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
16727
17654
|
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
16728
17655
|
let missing0;
|
|
16729
17656
|
if (data.idOrShortId === void 0 && (missing0 = "idOrShortId") || data.checkId === void 0 && (missing0 = "checkId") || data.outcome === void 0 && (missing0 = "outcome")) {
|
|
16730
|
-
|
|
17657
|
+
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 + "'" }];
|
|
16731
17658
|
return false;
|
|
16732
17659
|
} else {
|
|
16733
17660
|
const _errs2 = errors;
|
|
16734
17661
|
for (const key0 in data) {
|
|
16735
17662
|
if (!(key0 === "idOrShortId" || key0 === "checkId" || key0 === "outcome")) {
|
|
16736
|
-
|
|
17663
|
+
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" }];
|
|
16737
17664
|
return false;
|
|
16738
17665
|
break;
|
|
16739
17666
|
}
|
|
@@ -16745,16 +17672,16 @@ function validate56(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
16745
17672
|
if (errors === _errs3) {
|
|
16746
17673
|
if (typeof data0 === "string") {
|
|
16747
17674
|
if (func1(data0) > 128) {
|
|
16748
|
-
|
|
17675
|
+
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" }];
|
|
16749
17676
|
return false;
|
|
16750
17677
|
} else {
|
|
16751
17678
|
if (func1(data0) < 1) {
|
|
16752
|
-
|
|
17679
|
+
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" }];
|
|
16753
17680
|
return false;
|
|
16754
17681
|
}
|
|
16755
17682
|
}
|
|
16756
17683
|
} else {
|
|
16757
|
-
|
|
17684
|
+
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" }];
|
|
16758
17685
|
return false;
|
|
16759
17686
|
}
|
|
16760
17687
|
}
|
|
@@ -16769,16 +17696,16 @@ function validate56(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
16769
17696
|
if (errors === _errs5) {
|
|
16770
17697
|
if (typeof data1 === "string") {
|
|
16771
17698
|
if (func1(data1) > 128) {
|
|
16772
|
-
|
|
17699
|
+
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" }];
|
|
16773
17700
|
return false;
|
|
16774
17701
|
} else {
|
|
16775
17702
|
if (func1(data1) < 1) {
|
|
16776
|
-
|
|
17703
|
+
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" }];
|
|
16777
17704
|
return false;
|
|
16778
17705
|
}
|
|
16779
17706
|
}
|
|
16780
17707
|
} else {
|
|
16781
|
-
|
|
17708
|
+
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" }];
|
|
16782
17709
|
return false;
|
|
16783
17710
|
}
|
|
16784
17711
|
}
|
|
@@ -16791,11 +17718,11 @@ function validate56(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
16791
17718
|
let data2 = data.outcome;
|
|
16792
17719
|
const _errs7 = errors;
|
|
16793
17720
|
if (typeof data2 !== "string") {
|
|
16794
|
-
|
|
17721
|
+
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" }];
|
|
16795
17722
|
return false;
|
|
16796
17723
|
}
|
|
16797
17724
|
if (!(data2 === "followed" || data2 === "superseded")) {
|
|
16798
|
-
|
|
17725
|
+
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" }];
|
|
16799
17726
|
return false;
|
|
16800
17727
|
}
|
|
16801
17728
|
var valid1 = _errs7 === errors;
|
|
@@ -16807,20 +17734,20 @@ function validate56(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
16807
17734
|
}
|
|
16808
17735
|
}
|
|
16809
17736
|
} else {
|
|
16810
|
-
|
|
17737
|
+
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" }];
|
|
16811
17738
|
return false;
|
|
16812
17739
|
}
|
|
16813
17740
|
}
|
|
16814
|
-
|
|
17741
|
+
validate61.errors = vErrors;
|
|
16815
17742
|
return errors === 0;
|
|
16816
17743
|
}
|
|
16817
|
-
|
|
16818
|
-
var
|
|
16819
|
-
function
|
|
17744
|
+
validate61.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
|
|
17745
|
+
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 };
|
|
17746
|
+
function validate62(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
16820
17747
|
;
|
|
16821
17748
|
let vErrors = null;
|
|
16822
17749
|
let errors = 0;
|
|
16823
|
-
const evaluated0 =
|
|
17750
|
+
const evaluated0 = validate62.evaluated;
|
|
16824
17751
|
if (evaluated0.dynamicProps) {
|
|
16825
17752
|
evaluated0.props = void 0;
|
|
16826
17753
|
}
|
|
@@ -16832,13 +17759,13 @@ function validate57(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
16832
17759
|
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
16833
17760
|
let missing0;
|
|
16834
17761
|
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")) {
|
|
16835
|
-
|
|
17762
|
+
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 + "'" }];
|
|
16836
17763
|
return false;
|
|
16837
17764
|
} else {
|
|
16838
17765
|
const _errs2 = errors;
|
|
16839
17766
|
for (const key0 in data) {
|
|
16840
17767
|
if (!(key0 === "ok" || key0 === "checkId" || key0 === "decisionId" || key0 === "outcome" || key0 === "recordedAt" || key0 === "duplicate")) {
|
|
16841
|
-
|
|
17768
|
+
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" }];
|
|
16842
17769
|
return false;
|
|
16843
17770
|
break;
|
|
16844
17771
|
}
|
|
@@ -16848,11 +17775,11 @@ function validate57(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
16848
17775
|
let data0 = data.ok;
|
|
16849
17776
|
const _errs3 = errors;
|
|
16850
17777
|
if (typeof data0 !== "boolean") {
|
|
16851
|
-
|
|
17778
|
+
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" }];
|
|
16852
17779
|
return false;
|
|
16853
17780
|
}
|
|
16854
17781
|
if (true !== data0) {
|
|
16855
|
-
|
|
17782
|
+
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" }];
|
|
16856
17783
|
return false;
|
|
16857
17784
|
}
|
|
16858
17785
|
var valid1 = _errs3 === errors;
|
|
@@ -16863,7 +17790,7 @@ function validate57(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
16863
17790
|
if (data.checkId !== void 0) {
|
|
16864
17791
|
const _errs5 = errors;
|
|
16865
17792
|
if (typeof data.checkId !== "string") {
|
|
16866
|
-
|
|
17793
|
+
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" }];
|
|
16867
17794
|
return false;
|
|
16868
17795
|
}
|
|
16869
17796
|
var valid1 = _errs5 === errors;
|
|
@@ -16874,7 +17801,7 @@ function validate57(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
16874
17801
|
if (data.decisionId !== void 0) {
|
|
16875
17802
|
const _errs7 = errors;
|
|
16876
17803
|
if (typeof data.decisionId !== "string") {
|
|
16877
|
-
|
|
17804
|
+
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" }];
|
|
16878
17805
|
return false;
|
|
16879
17806
|
}
|
|
16880
17807
|
var valid1 = _errs7 === errors;
|
|
@@ -16886,11 +17813,11 @@ function validate57(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
16886
17813
|
let data3 = data.outcome;
|
|
16887
17814
|
const _errs9 = errors;
|
|
16888
17815
|
if (typeof data3 !== "string") {
|
|
16889
|
-
|
|
17816
|
+
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" }];
|
|
16890
17817
|
return false;
|
|
16891
17818
|
}
|
|
16892
17819
|
if (!(data3 === "followed" || data3 === "superseded")) {
|
|
16893
|
-
|
|
17820
|
+
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" }];
|
|
16894
17821
|
return false;
|
|
16895
17822
|
}
|
|
16896
17823
|
var valid1 = _errs9 === errors;
|
|
@@ -16902,7 +17829,7 @@ function validate57(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
16902
17829
|
let data4 = data.recordedAt;
|
|
16903
17830
|
const _errs11 = errors;
|
|
16904
17831
|
if (!(typeof data4 == "number" && isFinite(data4))) {
|
|
16905
|
-
|
|
17832
|
+
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" }];
|
|
16906
17833
|
return false;
|
|
16907
17834
|
}
|
|
16908
17835
|
var valid1 = _errs11 === errors;
|
|
@@ -16913,7 +17840,7 @@ function validate57(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
16913
17840
|
if (data.duplicate !== void 0) {
|
|
16914
17841
|
const _errs13 = errors;
|
|
16915
17842
|
if (typeof data.duplicate !== "boolean") {
|
|
16916
|
-
|
|
17843
|
+
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" }];
|
|
16917
17844
|
return false;
|
|
16918
17845
|
}
|
|
16919
17846
|
var valid1 = _errs13 === errors;
|
|
@@ -16928,20 +17855,20 @@ function validate57(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
16928
17855
|
}
|
|
16929
17856
|
}
|
|
16930
17857
|
} else {
|
|
16931
|
-
|
|
17858
|
+
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" }];
|
|
16932
17859
|
return false;
|
|
16933
17860
|
}
|
|
16934
17861
|
}
|
|
16935
|
-
|
|
17862
|
+
validate62.errors = vErrors;
|
|
16936
17863
|
return errors === 0;
|
|
16937
17864
|
}
|
|
16938
|
-
|
|
16939
|
-
var
|
|
16940
|
-
function
|
|
17865
|
+
validate62.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
|
|
17866
|
+
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");
|
|
17867
|
+
function validate63(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
16941
17868
|
;
|
|
16942
17869
|
let vErrors = null;
|
|
16943
17870
|
let errors = 0;
|
|
16944
|
-
const evaluated0 =
|
|
17871
|
+
const evaluated0 = validate63.evaluated;
|
|
16945
17872
|
if (evaluated0.dynamicProps) {
|
|
16946
17873
|
evaluated0.props = void 0;
|
|
16947
17874
|
}
|
|
@@ -16953,13 +17880,13 @@ function validate58(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
16953
17880
|
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
16954
17881
|
let missing0;
|
|
16955
17882
|
if (data.repositoryFullName === void 0 && (missing0 = "repositoryFullName")) {
|
|
16956
|
-
|
|
17883
|
+
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 + "'" }];
|
|
16957
17884
|
return false;
|
|
16958
17885
|
} else {
|
|
16959
17886
|
const _errs2 = errors;
|
|
16960
17887
|
for (const key0 in data) {
|
|
16961
17888
|
if (!(key0 === "repositoryFullName")) {
|
|
16962
|
-
|
|
17889
|
+
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" }];
|
|
16963
17890
|
return false;
|
|
16964
17891
|
break;
|
|
16965
17892
|
}
|
|
@@ -16970,12 +17897,12 @@ function validate58(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
16970
17897
|
const _errs3 = errors;
|
|
16971
17898
|
if (errors === _errs3) {
|
|
16972
17899
|
if (typeof data0 === "string") {
|
|
16973
|
-
if (!
|
|
16974
|
-
|
|
17900
|
+
if (!pattern27.test(data0)) {
|
|
17901
|
+
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}$"' }];
|
|
16975
17902
|
return false;
|
|
16976
17903
|
}
|
|
16977
17904
|
} else {
|
|
16978
|
-
|
|
17905
|
+
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" }];
|
|
16979
17906
|
return false;
|
|
16980
17907
|
}
|
|
16981
17908
|
}
|
|
@@ -16983,19 +17910,19 @@ function validate58(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
16983
17910
|
}
|
|
16984
17911
|
}
|
|
16985
17912
|
} else {
|
|
16986
|
-
|
|
17913
|
+
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" }];
|
|
16987
17914
|
return false;
|
|
16988
17915
|
}
|
|
16989
17916
|
}
|
|
16990
|
-
|
|
17917
|
+
validate63.errors = vErrors;
|
|
16991
17918
|
return errors === 0;
|
|
16992
17919
|
}
|
|
16993
|
-
|
|
16994
|
-
function
|
|
17920
|
+
validate63.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
|
|
17921
|
+
function validate64(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
16995
17922
|
;
|
|
16996
17923
|
let vErrors = null;
|
|
16997
17924
|
let errors = 0;
|
|
16998
|
-
const evaluated0 =
|
|
17925
|
+
const evaluated0 = validate64.evaluated;
|
|
16999
17926
|
if (evaluated0.dynamicProps) {
|
|
17000
17927
|
evaluated0.props = void 0;
|
|
17001
17928
|
}
|
|
@@ -17007,7 +17934,7 @@ function validate59(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
17007
17934
|
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
17008
17935
|
let missing0;
|
|
17009
17936
|
if (data.repoSyncId === void 0 && (missing0 = "repoSyncId")) {
|
|
17010
|
-
|
|
17937
|
+
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 + "'" }];
|
|
17011
17938
|
return false;
|
|
17012
17939
|
} else {
|
|
17013
17940
|
if (data.repoSyncId !== void 0) {
|
|
@@ -17016,32 +17943,31 @@ function validate59(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
17016
17943
|
if (errors === _errs3) {
|
|
17017
17944
|
if (typeof data0 === "string") {
|
|
17018
17945
|
if (func1(data0) < 1) {
|
|
17019
|
-
|
|
17946
|
+
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" }];
|
|
17020
17947
|
return false;
|
|
17021
17948
|
}
|
|
17022
17949
|
} else {
|
|
17023
|
-
|
|
17950
|
+
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" }];
|
|
17024
17951
|
return false;
|
|
17025
17952
|
}
|
|
17026
17953
|
}
|
|
17027
17954
|
}
|
|
17028
17955
|
}
|
|
17029
17956
|
} else {
|
|
17030
|
-
|
|
17957
|
+
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" }];
|
|
17031
17958
|
return false;
|
|
17032
17959
|
}
|
|
17033
17960
|
}
|
|
17034
|
-
|
|
17961
|
+
validate64.errors = vErrors;
|
|
17035
17962
|
return errors === 0;
|
|
17036
17963
|
}
|
|
17037
|
-
|
|
17038
|
-
var
|
|
17039
|
-
|
|
17040
|
-
function validate60(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
17964
|
+
validate64.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
|
|
17965
|
+
var pattern29 = new RegExp("^api_key_[A-Za-z0-9_-]+$", "u");
|
|
17966
|
+
function validate65(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
17041
17967
|
;
|
|
17042
17968
|
let vErrors = null;
|
|
17043
17969
|
let errors = 0;
|
|
17044
|
-
const evaluated0 =
|
|
17970
|
+
const evaluated0 = validate65.evaluated;
|
|
17045
17971
|
if (evaluated0.dynamicProps) {
|
|
17046
17972
|
evaluated0.props = void 0;
|
|
17047
17973
|
}
|
|
@@ -17053,13 +17979,13 @@ function validate60(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
17053
17979
|
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
17054
17980
|
let missing0;
|
|
17055
17981
|
if (data.requestId === void 0 && (missing0 = "requestId") || data.limit === void 0 && (missing0 = "limit")) {
|
|
17056
|
-
|
|
17982
|
+
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 + "'" }];
|
|
17057
17983
|
return false;
|
|
17058
17984
|
} else {
|
|
17059
17985
|
const _errs2 = errors;
|
|
17060
17986
|
for (const key0 in data) {
|
|
17061
17987
|
if (!(key0 === "requestId" || key0 === "limit" || key0 === "after")) {
|
|
17062
|
-
|
|
17988
|
+
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" }];
|
|
17063
17989
|
return false;
|
|
17064
17990
|
break;
|
|
17065
17991
|
}
|
|
@@ -17070,12 +17996,12 @@ function validate60(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
17070
17996
|
const _errs3 = errors;
|
|
17071
17997
|
if (errors === _errs3) {
|
|
17072
17998
|
if (typeof data0 === "string") {
|
|
17073
|
-
if (!
|
|
17074
|
-
|
|
17999
|
+
if (!pattern5.test(data0)) {
|
|
18000
|
+
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}$"' }];
|
|
17075
18001
|
return false;
|
|
17076
18002
|
}
|
|
17077
18003
|
} else {
|
|
17078
|
-
|
|
18004
|
+
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" }];
|
|
17079
18005
|
return false;
|
|
17080
18006
|
}
|
|
17081
18007
|
}
|
|
@@ -17088,17 +18014,17 @@ function validate60(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
17088
18014
|
let data1 = data.limit;
|
|
17089
18015
|
const _errs5 = errors;
|
|
17090
18016
|
if (!(typeof data1 == "number" && (!(data1 % 1) && !isNaN(data1)) && isFinite(data1))) {
|
|
17091
|
-
|
|
18017
|
+
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" }];
|
|
17092
18018
|
return false;
|
|
17093
18019
|
}
|
|
17094
18020
|
if (errors === _errs5) {
|
|
17095
18021
|
if (typeof data1 == "number" && isFinite(data1)) {
|
|
17096
18022
|
if (data1 > 100 || isNaN(data1)) {
|
|
17097
|
-
|
|
18023
|
+
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" }];
|
|
17098
18024
|
return false;
|
|
17099
18025
|
} else {
|
|
17100
18026
|
if (data1 < 1 || isNaN(data1)) {
|
|
17101
|
-
|
|
18027
|
+
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" }];
|
|
17102
18028
|
return false;
|
|
17103
18029
|
}
|
|
17104
18030
|
}
|
|
@@ -17115,21 +18041,21 @@ function validate60(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
17115
18041
|
if (errors === _errs7) {
|
|
17116
18042
|
if (typeof data2 === "string") {
|
|
17117
18043
|
if (func1(data2) > 256) {
|
|
17118
|
-
|
|
18044
|
+
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" }];
|
|
17119
18045
|
return false;
|
|
17120
18046
|
} else {
|
|
17121
18047
|
if (func1(data2) < 9) {
|
|
17122
|
-
|
|
18048
|
+
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" }];
|
|
17123
18049
|
return false;
|
|
17124
18050
|
} else {
|
|
17125
|
-
if (!
|
|
17126
|
-
|
|
18051
|
+
if (!pattern29.test(data2)) {
|
|
18052
|
+
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_-]+$"' }];
|
|
17127
18053
|
return false;
|
|
17128
18054
|
}
|
|
17129
18055
|
}
|
|
17130
18056
|
}
|
|
17131
18057
|
} else {
|
|
17132
|
-
|
|
18058
|
+
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" }];
|
|
17133
18059
|
return false;
|
|
17134
18060
|
}
|
|
17135
18061
|
}
|
|
@@ -17142,22 +18068,22 @@ function validate60(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
17142
18068
|
}
|
|
17143
18069
|
}
|
|
17144
18070
|
} else {
|
|
17145
|
-
|
|
18071
|
+
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" }];
|
|
17146
18072
|
return false;
|
|
17147
18073
|
}
|
|
17148
18074
|
}
|
|
17149
|
-
|
|
18075
|
+
validate65.errors = vErrors;
|
|
17150
18076
|
return errors === 0;
|
|
17151
18077
|
}
|
|
17152
|
-
|
|
17153
|
-
var
|
|
17154
|
-
var
|
|
17155
|
-
var
|
|
17156
|
-
function
|
|
18078
|
+
validate65.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
|
|
18079
|
+
var pattern31 = new RegExp("^[\\x21-\\x7e](?:[\\x20-\\x7e]{0,126}[\\x21-\\x7e])?$", "u");
|
|
18080
|
+
var pattern32 = new RegExp("^[^\\u0000-\\u001f\\u007f-\\u009f\\u2028\\u2029\\u061c\\u200b-\\u200f\\u202a-\\u202e\\u2060\\u2066-\\u2069\\ufeff]+$", "u");
|
|
18081
|
+
var pattern33 = new RegExp("^[\\x21-\\x7e]+$", "u");
|
|
18082
|
+
function validate66(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
17157
18083
|
;
|
|
17158
18084
|
let vErrors = null;
|
|
17159
18085
|
let errors = 0;
|
|
17160
|
-
const evaluated0 =
|
|
18086
|
+
const evaluated0 = validate66.evaluated;
|
|
17161
18087
|
if (evaluated0.dynamicProps) {
|
|
17162
18088
|
evaluated0.props = void 0;
|
|
17163
18089
|
}
|
|
@@ -17169,13 +18095,13 @@ function validate61(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
17169
18095
|
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
17170
18096
|
let missing0;
|
|
17171
18097
|
if (data.apiKeys === void 0 && (missing0 = "apiKeys") || data.nextCursor === void 0 && (missing0 = "nextCursor")) {
|
|
17172
|
-
|
|
18098
|
+
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 + "'" }];
|
|
17173
18099
|
return false;
|
|
17174
18100
|
} else {
|
|
17175
18101
|
const _errs2 = errors;
|
|
17176
18102
|
for (const key0 in data) {
|
|
17177
18103
|
if (!(key0 === "apiKeys" || key0 === "nextCursor")) {
|
|
17178
|
-
|
|
18104
|
+
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" }];
|
|
17179
18105
|
return false;
|
|
17180
18106
|
break;
|
|
17181
18107
|
}
|
|
@@ -17187,7 +18113,7 @@ function validate61(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
17187
18113
|
if (errors === _errs3) {
|
|
17188
18114
|
if (Array.isArray(data0)) {
|
|
17189
18115
|
if (data0.length > 100) {
|
|
17190
|
-
|
|
18116
|
+
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" }];
|
|
17191
18117
|
return false;
|
|
17192
18118
|
} else {
|
|
17193
18119
|
var valid2 = true;
|
|
@@ -17199,13 +18125,13 @@ function validate61(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
17199
18125
|
if (data1 && typeof data1 == "object" && !Array.isArray(data1)) {
|
|
17200
18126
|
let missing1;
|
|
17201
18127
|
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")) {
|
|
17202
|
-
|
|
18128
|
+
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 + "'" }];
|
|
17203
18129
|
return false;
|
|
17204
18130
|
} else {
|
|
17205
18131
|
const _errs7 = errors;
|
|
17206
18132
|
for (const key1 in data1) {
|
|
17207
18133
|
if (!(key1 === "id" || key1 === "name" || key1 === "obfuscatedValue" || key1 === "permissions" || key1 === "lastUsedAt" || key1 === "expiresAt" || key1 === "createdAt" || key1 === "updatedAt")) {
|
|
17208
|
-
|
|
18134
|
+
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" }];
|
|
17209
18135
|
return false;
|
|
17210
18136
|
break;
|
|
17211
18137
|
}
|
|
@@ -17217,21 +18143,21 @@ function validate61(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
17217
18143
|
if (errors === _errs8) {
|
|
17218
18144
|
if (typeof data2 === "string") {
|
|
17219
18145
|
if (func1(data2) > 256) {
|
|
17220
|
-
|
|
18146
|
+
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" }];
|
|
17221
18147
|
return false;
|
|
17222
18148
|
} else {
|
|
17223
18149
|
if (func1(data2) < 9) {
|
|
17224
|
-
|
|
18150
|
+
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" }];
|
|
17225
18151
|
return false;
|
|
17226
18152
|
} else {
|
|
17227
|
-
if (!
|
|
17228
|
-
|
|
18153
|
+
if (!pattern29.test(data2)) {
|
|
18154
|
+
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_-]+$"' }];
|
|
17229
18155
|
return false;
|
|
17230
18156
|
}
|
|
17231
18157
|
}
|
|
17232
18158
|
}
|
|
17233
18159
|
} else {
|
|
17234
|
-
|
|
18160
|
+
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" }];
|
|
17235
18161
|
return false;
|
|
17236
18162
|
}
|
|
17237
18163
|
}
|
|
@@ -17246,21 +18172,21 @@ function validate61(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
17246
18172
|
if (errors === _errs10) {
|
|
17247
18173
|
if (typeof data3 === "string") {
|
|
17248
18174
|
if (func1(data3) > 128) {
|
|
17249
|
-
|
|
18175
|
+
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" }];
|
|
17250
18176
|
return false;
|
|
17251
18177
|
} else {
|
|
17252
18178
|
if (func1(data3) < 1) {
|
|
17253
|
-
|
|
18179
|
+
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" }];
|
|
17254
18180
|
return false;
|
|
17255
18181
|
} else {
|
|
17256
|
-
if (!
|
|
17257
|
-
|
|
18182
|
+
if (!pattern31.test(data3)) {
|
|
18183
|
+
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])?$"' }];
|
|
17258
18184
|
return false;
|
|
17259
18185
|
}
|
|
17260
18186
|
}
|
|
17261
18187
|
}
|
|
17262
18188
|
} else {
|
|
17263
|
-
|
|
18189
|
+
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" }];
|
|
17264
18190
|
return false;
|
|
17265
18191
|
}
|
|
17266
18192
|
}
|
|
@@ -17275,21 +18201,21 @@ function validate61(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
17275
18201
|
if (errors === _errs12) {
|
|
17276
18202
|
if (typeof data4 === "string") {
|
|
17277
18203
|
if (func1(data4) > 256) {
|
|
17278
|
-
|
|
18204
|
+
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" }];
|
|
17279
18205
|
return false;
|
|
17280
18206
|
} else {
|
|
17281
18207
|
if (func1(data4) < 1) {
|
|
17282
|
-
|
|
18208
|
+
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" }];
|
|
17283
18209
|
return false;
|
|
17284
18210
|
} else {
|
|
17285
|
-
if (!
|
|
17286
|
-
|
|
18211
|
+
if (!pattern32.test(data4)) {
|
|
18212
|
+
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]+$"' }];
|
|
17287
18213
|
return false;
|
|
17288
18214
|
}
|
|
17289
18215
|
}
|
|
17290
18216
|
}
|
|
17291
18217
|
} else {
|
|
17292
|
-
|
|
18218
|
+
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" }];
|
|
17293
18219
|
return false;
|
|
17294
18220
|
}
|
|
17295
18221
|
}
|
|
@@ -17304,7 +18230,7 @@ function validate61(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
17304
18230
|
if (errors === _errs14) {
|
|
17305
18231
|
if (Array.isArray(data5)) {
|
|
17306
18232
|
if (data5.length > 100) {
|
|
17307
|
-
|
|
18233
|
+
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" }];
|
|
17308
18234
|
return false;
|
|
17309
18235
|
} else {
|
|
17310
18236
|
var valid4 = true;
|
|
@@ -17315,21 +18241,21 @@ function validate61(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
17315
18241
|
if (errors === _errs16) {
|
|
17316
18242
|
if (typeof data6 === "string") {
|
|
17317
18243
|
if (func1(data6) > 128) {
|
|
17318
|
-
|
|
18244
|
+
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" }];
|
|
17319
18245
|
return false;
|
|
17320
18246
|
} else {
|
|
17321
18247
|
if (func1(data6) < 1) {
|
|
17322
|
-
|
|
18248
|
+
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" }];
|
|
17323
18249
|
return false;
|
|
17324
18250
|
} else {
|
|
17325
|
-
if (!
|
|
17326
|
-
|
|
18251
|
+
if (!pattern33.test(data6)) {
|
|
18252
|
+
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]+$"' }];
|
|
17327
18253
|
return false;
|
|
17328
18254
|
}
|
|
17329
18255
|
}
|
|
17330
18256
|
}
|
|
17331
18257
|
} else {
|
|
17332
|
-
|
|
18258
|
+
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" }];
|
|
17333
18259
|
return false;
|
|
17334
18260
|
}
|
|
17335
18261
|
}
|
|
@@ -17340,7 +18266,7 @@ function validate61(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
17340
18266
|
}
|
|
17341
18267
|
}
|
|
17342
18268
|
} else {
|
|
17343
|
-
|
|
18269
|
+
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" }];
|
|
17344
18270
|
return false;
|
|
17345
18271
|
}
|
|
17346
18272
|
}
|
|
@@ -17409,7 +18335,7 @@ function validate61(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
17409
18335
|
vErrors.push(err4);
|
|
17410
18336
|
}
|
|
17411
18337
|
errors++;
|
|
17412
|
-
|
|
18338
|
+
validate66.errors = vErrors;
|
|
17413
18339
|
return false;
|
|
17414
18340
|
} else {
|
|
17415
18341
|
errors = _errs19;
|
|
@@ -17486,7 +18412,7 @@ function validate61(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
17486
18412
|
vErrors.push(err9);
|
|
17487
18413
|
}
|
|
17488
18414
|
errors++;
|
|
17489
|
-
|
|
18415
|
+
validate66.errors = vErrors;
|
|
17490
18416
|
return false;
|
|
17491
18417
|
} else {
|
|
17492
18418
|
errors = _errs25;
|
|
@@ -17507,17 +18433,17 @@ function validate61(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
17507
18433
|
let data9 = data1.createdAt;
|
|
17508
18434
|
const _errs30 = errors;
|
|
17509
18435
|
if (!(typeof data9 == "number" && (!(data9 % 1) && !isNaN(data9)) && isFinite(data9))) {
|
|
17510
|
-
|
|
18436
|
+
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" }];
|
|
17511
18437
|
return false;
|
|
17512
18438
|
}
|
|
17513
18439
|
if (errors === _errs30) {
|
|
17514
18440
|
if (typeof data9 == "number" && isFinite(data9)) {
|
|
17515
18441
|
if (data9 > 9007199254740991 || isNaN(data9)) {
|
|
17516
|
-
|
|
18442
|
+
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" }];
|
|
17517
18443
|
return false;
|
|
17518
18444
|
} else {
|
|
17519
18445
|
if (data9 < 0 || isNaN(data9)) {
|
|
17520
|
-
|
|
18446
|
+
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" }];
|
|
17521
18447
|
return false;
|
|
17522
18448
|
}
|
|
17523
18449
|
}
|
|
@@ -17532,17 +18458,17 @@ function validate61(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
17532
18458
|
let data10 = data1.updatedAt;
|
|
17533
18459
|
const _errs32 = errors;
|
|
17534
18460
|
if (!(typeof data10 == "number" && (!(data10 % 1) && !isNaN(data10)) && isFinite(data10))) {
|
|
17535
|
-
|
|
18461
|
+
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" }];
|
|
17536
18462
|
return false;
|
|
17537
18463
|
}
|
|
17538
18464
|
if (errors === _errs32) {
|
|
17539
18465
|
if (typeof data10 == "number" && isFinite(data10)) {
|
|
17540
18466
|
if (data10 > 9007199254740991 || isNaN(data10)) {
|
|
17541
|
-
|
|
18467
|
+
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" }];
|
|
17542
18468
|
return false;
|
|
17543
18469
|
} else {
|
|
17544
18470
|
if (data10 < 0 || isNaN(data10)) {
|
|
17545
|
-
|
|
18471
|
+
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" }];
|
|
17546
18472
|
return false;
|
|
17547
18473
|
}
|
|
17548
18474
|
}
|
|
@@ -17562,7 +18488,7 @@ function validate61(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
17562
18488
|
}
|
|
17563
18489
|
}
|
|
17564
18490
|
} else {
|
|
17565
|
-
|
|
18491
|
+
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" }];
|
|
17566
18492
|
return false;
|
|
17567
18493
|
}
|
|
17568
18494
|
}
|
|
@@ -17573,7 +18499,7 @@ function validate61(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
17573
18499
|
}
|
|
17574
18500
|
}
|
|
17575
18501
|
} else {
|
|
17576
|
-
|
|
18502
|
+
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" }];
|
|
17577
18503
|
return false;
|
|
17578
18504
|
}
|
|
17579
18505
|
}
|
|
@@ -17608,7 +18534,7 @@ function validate61(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
17608
18534
|
}
|
|
17609
18535
|
errors++;
|
|
17610
18536
|
} else {
|
|
17611
|
-
if (!
|
|
18537
|
+
if (!pattern29.test(data11)) {
|
|
17612
18538
|
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_-]+$"' };
|
|
17613
18539
|
if (vErrors === null) {
|
|
17614
18540
|
vErrors = [err12];
|
|
@@ -17651,7 +18577,7 @@ function validate61(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
17651
18577
|
vErrors.push(err15);
|
|
17652
18578
|
}
|
|
17653
18579
|
errors++;
|
|
17654
|
-
|
|
18580
|
+
validate66.errors = vErrors;
|
|
17655
18581
|
return false;
|
|
17656
18582
|
} else {
|
|
17657
18583
|
errors = _errs35;
|
|
@@ -17671,19 +18597,19 @@ function validate61(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
17671
18597
|
}
|
|
17672
18598
|
}
|
|
17673
18599
|
} else {
|
|
17674
|
-
|
|
18600
|
+
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" }];
|
|
17675
18601
|
return false;
|
|
17676
18602
|
}
|
|
17677
18603
|
}
|
|
17678
|
-
|
|
18604
|
+
validate66.errors = vErrors;
|
|
17679
18605
|
return errors === 0;
|
|
17680
18606
|
}
|
|
17681
|
-
|
|
17682
|
-
function
|
|
18607
|
+
validate66.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
|
|
18608
|
+
function validate67(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
17683
18609
|
;
|
|
17684
18610
|
let vErrors = null;
|
|
17685
18611
|
let errors = 0;
|
|
17686
|
-
const evaluated0 =
|
|
18612
|
+
const evaluated0 = validate67.evaluated;
|
|
17687
18613
|
if (evaluated0.dynamicProps) {
|
|
17688
18614
|
evaluated0.props = void 0;
|
|
17689
18615
|
}
|
|
@@ -17695,13 +18621,13 @@ function validate62(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
17695
18621
|
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
17696
18622
|
let missing0;
|
|
17697
18623
|
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")) {
|
|
17698
|
-
|
|
18624
|
+
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 + "'" }];
|
|
17699
18625
|
return false;
|
|
17700
18626
|
} else {
|
|
17701
18627
|
const _errs2 = errors;
|
|
17702
18628
|
for (const key0 in data) {
|
|
17703
18629
|
if (!(key0 === "id" || key0 === "name" || key0 === "obfuscatedValue" || key0 === "permissions" || key0 === "lastUsedAt" || key0 === "expiresAt" || key0 === "createdAt" || key0 === "updatedAt")) {
|
|
17704
|
-
|
|
18630
|
+
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" }];
|
|
17705
18631
|
return false;
|
|
17706
18632
|
break;
|
|
17707
18633
|
}
|
|
@@ -17713,21 +18639,21 @@ function validate62(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
17713
18639
|
if (errors === _errs3) {
|
|
17714
18640
|
if (typeof data0 === "string") {
|
|
17715
18641
|
if (func1(data0) > 256) {
|
|
17716
|
-
|
|
18642
|
+
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" }];
|
|
17717
18643
|
return false;
|
|
17718
18644
|
} else {
|
|
17719
18645
|
if (func1(data0) < 9) {
|
|
17720
|
-
|
|
18646
|
+
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" }];
|
|
17721
18647
|
return false;
|
|
17722
18648
|
} else {
|
|
17723
|
-
if (!
|
|
17724
|
-
|
|
18649
|
+
if (!pattern29.test(data0)) {
|
|
18650
|
+
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_-]+$"' }];
|
|
17725
18651
|
return false;
|
|
17726
18652
|
}
|
|
17727
18653
|
}
|
|
17728
18654
|
}
|
|
17729
18655
|
} else {
|
|
17730
|
-
|
|
18656
|
+
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" }];
|
|
17731
18657
|
return false;
|
|
17732
18658
|
}
|
|
17733
18659
|
}
|
|
@@ -17742,21 +18668,21 @@ function validate62(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
17742
18668
|
if (errors === _errs5) {
|
|
17743
18669
|
if (typeof data1 === "string") {
|
|
17744
18670
|
if (func1(data1) > 128) {
|
|
17745
|
-
|
|
18671
|
+
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" }];
|
|
17746
18672
|
return false;
|
|
17747
18673
|
} else {
|
|
17748
18674
|
if (func1(data1) < 1) {
|
|
17749
|
-
|
|
18675
|
+
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" }];
|
|
17750
18676
|
return false;
|
|
17751
18677
|
} else {
|
|
17752
|
-
if (!
|
|
17753
|
-
|
|
18678
|
+
if (!pattern31.test(data1)) {
|
|
18679
|
+
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])?$"' }];
|
|
17754
18680
|
return false;
|
|
17755
18681
|
}
|
|
17756
18682
|
}
|
|
17757
18683
|
}
|
|
17758
18684
|
} else {
|
|
17759
|
-
|
|
18685
|
+
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" }];
|
|
17760
18686
|
return false;
|
|
17761
18687
|
}
|
|
17762
18688
|
}
|
|
@@ -17771,21 +18697,21 @@ function validate62(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
17771
18697
|
if (errors === _errs7) {
|
|
17772
18698
|
if (typeof data2 === "string") {
|
|
17773
18699
|
if (func1(data2) > 256) {
|
|
17774
|
-
|
|
18700
|
+
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" }];
|
|
17775
18701
|
return false;
|
|
17776
18702
|
} else {
|
|
17777
18703
|
if (func1(data2) < 1) {
|
|
17778
|
-
|
|
18704
|
+
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" }];
|
|
17779
18705
|
return false;
|
|
17780
18706
|
} else {
|
|
17781
|
-
if (!
|
|
17782
|
-
|
|
18707
|
+
if (!pattern32.test(data2)) {
|
|
18708
|
+
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]+$"' }];
|
|
17783
18709
|
return false;
|
|
17784
18710
|
}
|
|
17785
18711
|
}
|
|
17786
18712
|
}
|
|
17787
18713
|
} else {
|
|
17788
|
-
|
|
18714
|
+
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" }];
|
|
17789
18715
|
return false;
|
|
17790
18716
|
}
|
|
17791
18717
|
}
|
|
@@ -17800,7 +18726,7 @@ function validate62(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
17800
18726
|
if (errors === _errs9) {
|
|
17801
18727
|
if (Array.isArray(data3)) {
|
|
17802
18728
|
if (data3.length > 100) {
|
|
17803
|
-
|
|
18729
|
+
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" }];
|
|
17804
18730
|
return false;
|
|
17805
18731
|
} else {
|
|
17806
18732
|
var valid2 = true;
|
|
@@ -17811,21 +18737,21 @@ function validate62(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
17811
18737
|
if (errors === _errs11) {
|
|
17812
18738
|
if (typeof data4 === "string") {
|
|
17813
18739
|
if (func1(data4) > 128) {
|
|
17814
|
-
|
|
18740
|
+
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" }];
|
|
17815
18741
|
return false;
|
|
17816
18742
|
} else {
|
|
17817
18743
|
if (func1(data4) < 1) {
|
|
17818
|
-
|
|
18744
|
+
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" }];
|
|
17819
18745
|
return false;
|
|
17820
18746
|
} else {
|
|
17821
|
-
if (!
|
|
17822
|
-
|
|
18747
|
+
if (!pattern33.test(data4)) {
|
|
18748
|
+
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]+$"' }];
|
|
17823
18749
|
return false;
|
|
17824
18750
|
}
|
|
17825
18751
|
}
|
|
17826
18752
|
}
|
|
17827
18753
|
} else {
|
|
17828
|
-
|
|
18754
|
+
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" }];
|
|
17829
18755
|
return false;
|
|
17830
18756
|
}
|
|
17831
18757
|
}
|
|
@@ -17836,7 +18762,7 @@ function validate62(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
17836
18762
|
}
|
|
17837
18763
|
}
|
|
17838
18764
|
} else {
|
|
17839
|
-
|
|
18765
|
+
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" }];
|
|
17840
18766
|
return false;
|
|
17841
18767
|
}
|
|
17842
18768
|
}
|
|
@@ -17905,7 +18831,7 @@ function validate62(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
17905
18831
|
vErrors.push(err4);
|
|
17906
18832
|
}
|
|
17907
18833
|
errors++;
|
|
17908
|
-
|
|
18834
|
+
validate67.errors = vErrors;
|
|
17909
18835
|
return false;
|
|
17910
18836
|
} else {
|
|
17911
18837
|
errors = _errs14;
|
|
@@ -17982,7 +18908,7 @@ function validate62(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
17982
18908
|
vErrors.push(err9);
|
|
17983
18909
|
}
|
|
17984
18910
|
errors++;
|
|
17985
|
-
|
|
18911
|
+
validate67.errors = vErrors;
|
|
17986
18912
|
return false;
|
|
17987
18913
|
} else {
|
|
17988
18914
|
errors = _errs20;
|
|
@@ -18003,17 +18929,17 @@ function validate62(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
18003
18929
|
let data7 = data.createdAt;
|
|
18004
18930
|
const _errs25 = errors;
|
|
18005
18931
|
if (!(typeof data7 == "number" && (!(data7 % 1) && !isNaN(data7)) && isFinite(data7))) {
|
|
18006
|
-
|
|
18932
|
+
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" }];
|
|
18007
18933
|
return false;
|
|
18008
18934
|
}
|
|
18009
18935
|
if (errors === _errs25) {
|
|
18010
18936
|
if (typeof data7 == "number" && isFinite(data7)) {
|
|
18011
18937
|
if (data7 > 9007199254740991 || isNaN(data7)) {
|
|
18012
|
-
|
|
18938
|
+
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" }];
|
|
18013
18939
|
return false;
|
|
18014
18940
|
} else {
|
|
18015
18941
|
if (data7 < 0 || isNaN(data7)) {
|
|
18016
|
-
|
|
18942
|
+
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" }];
|
|
18017
18943
|
return false;
|
|
18018
18944
|
}
|
|
18019
18945
|
}
|
|
@@ -18028,17 +18954,17 @@ function validate62(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
18028
18954
|
let data8 = data.updatedAt;
|
|
18029
18955
|
const _errs27 = errors;
|
|
18030
18956
|
if (!(typeof data8 == "number" && (!(data8 % 1) && !isNaN(data8)) && isFinite(data8))) {
|
|
18031
|
-
|
|
18957
|
+
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" }];
|
|
18032
18958
|
return false;
|
|
18033
18959
|
}
|
|
18034
18960
|
if (errors === _errs27) {
|
|
18035
18961
|
if (typeof data8 == "number" && isFinite(data8)) {
|
|
18036
18962
|
if (data8 > 9007199254740991 || isNaN(data8)) {
|
|
18037
|
-
|
|
18963
|
+
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" }];
|
|
18038
18964
|
return false;
|
|
18039
18965
|
} else {
|
|
18040
18966
|
if (data8 < 0 || isNaN(data8)) {
|
|
18041
|
-
|
|
18967
|
+
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" }];
|
|
18042
18968
|
return false;
|
|
18043
18969
|
}
|
|
18044
18970
|
}
|
|
@@ -18058,19 +18984,19 @@ function validate62(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
18058
18984
|
}
|
|
18059
18985
|
}
|
|
18060
18986
|
} else {
|
|
18061
|
-
|
|
18987
|
+
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" }];
|
|
18062
18988
|
return false;
|
|
18063
18989
|
}
|
|
18064
18990
|
}
|
|
18065
|
-
|
|
18991
|
+
validate67.errors = vErrors;
|
|
18066
18992
|
return errors === 0;
|
|
18067
18993
|
}
|
|
18068
|
-
|
|
18069
|
-
function
|
|
18994
|
+
validate67.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
|
|
18995
|
+
function validate68(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
18070
18996
|
;
|
|
18071
18997
|
let vErrors = null;
|
|
18072
18998
|
let errors = 0;
|
|
18073
|
-
const evaluated0 =
|
|
18999
|
+
const evaluated0 = validate68.evaluated;
|
|
18074
19000
|
if (evaluated0.dynamicProps) {
|
|
18075
19001
|
evaluated0.props = void 0;
|
|
18076
19002
|
}
|
|
@@ -18082,13 +19008,13 @@ function validate63(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
18082
19008
|
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
18083
19009
|
let missing0;
|
|
18084
19010
|
if (data.requestId === void 0 && (missing0 = "requestId") || data.name === void 0 && (missing0 = "name")) {
|
|
18085
|
-
|
|
19011
|
+
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 + "'" }];
|
|
18086
19012
|
return false;
|
|
18087
19013
|
} else {
|
|
18088
19014
|
const _errs2 = errors;
|
|
18089
19015
|
for (const key0 in data) {
|
|
18090
19016
|
if (!(key0 === "requestId" || key0 === "name" || key0 === "expiresAt")) {
|
|
18091
|
-
|
|
19017
|
+
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" }];
|
|
18092
19018
|
return false;
|
|
18093
19019
|
break;
|
|
18094
19020
|
}
|
|
@@ -18099,12 +19025,12 @@ function validate63(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
18099
19025
|
const _errs3 = errors;
|
|
18100
19026
|
if (errors === _errs3) {
|
|
18101
19027
|
if (typeof data0 === "string") {
|
|
18102
|
-
if (!
|
|
18103
|
-
|
|
19028
|
+
if (!pattern5.test(data0)) {
|
|
19029
|
+
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}$"' }];
|
|
18104
19030
|
return false;
|
|
18105
19031
|
}
|
|
18106
19032
|
} else {
|
|
18107
|
-
|
|
19033
|
+
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" }];
|
|
18108
19034
|
return false;
|
|
18109
19035
|
}
|
|
18110
19036
|
}
|
|
@@ -18119,21 +19045,21 @@ function validate63(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
18119
19045
|
if (errors === _errs5) {
|
|
18120
19046
|
if (typeof data1 === "string") {
|
|
18121
19047
|
if (func1(data1) > 128) {
|
|
18122
|
-
|
|
19048
|
+
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" }];
|
|
18123
19049
|
return false;
|
|
18124
19050
|
} else {
|
|
18125
19051
|
if (func1(data1) < 1) {
|
|
18126
|
-
|
|
19052
|
+
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" }];
|
|
18127
19053
|
return false;
|
|
18128
19054
|
} else {
|
|
18129
|
-
if (!
|
|
18130
|
-
|
|
19055
|
+
if (!pattern31.test(data1)) {
|
|
19056
|
+
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])?$"' }];
|
|
18131
19057
|
return false;
|
|
18132
19058
|
}
|
|
18133
19059
|
}
|
|
18134
19060
|
}
|
|
18135
19061
|
} else {
|
|
18136
|
-
|
|
19062
|
+
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" }];
|
|
18137
19063
|
return false;
|
|
18138
19064
|
}
|
|
18139
19065
|
}
|
|
@@ -18146,17 +19072,17 @@ function validate63(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
18146
19072
|
let data2 = data.expiresAt;
|
|
18147
19073
|
const _errs7 = errors;
|
|
18148
19074
|
if (!(typeof data2 == "number" && (!(data2 % 1) && !isNaN(data2)) && isFinite(data2))) {
|
|
18149
|
-
|
|
19075
|
+
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" }];
|
|
18150
19076
|
return false;
|
|
18151
19077
|
}
|
|
18152
19078
|
if (errors === _errs7) {
|
|
18153
19079
|
if (typeof data2 == "number" && isFinite(data2)) {
|
|
18154
19080
|
if (data2 > 9007199254740991 || isNaN(data2)) {
|
|
18155
|
-
|
|
19081
|
+
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" }];
|
|
18156
19082
|
return false;
|
|
18157
19083
|
} else {
|
|
18158
19084
|
if (data2 < 0 || isNaN(data2)) {
|
|
18159
|
-
|
|
19085
|
+
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" }];
|
|
18160
19086
|
return false;
|
|
18161
19087
|
}
|
|
18162
19088
|
}
|
|
@@ -18171,20 +19097,20 @@ function validate63(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
18171
19097
|
}
|
|
18172
19098
|
}
|
|
18173
19099
|
} else {
|
|
18174
|
-
|
|
19100
|
+
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" }];
|
|
18175
19101
|
return false;
|
|
18176
19102
|
}
|
|
18177
19103
|
}
|
|
18178
|
-
|
|
19104
|
+
validate68.errors = vErrors;
|
|
18179
19105
|
return errors === 0;
|
|
18180
19106
|
}
|
|
18181
|
-
|
|
18182
|
-
var
|
|
18183
|
-
function
|
|
19107
|
+
validate68.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
|
|
19108
|
+
var pattern45 = new RegExp("^sk_[\\x21-\\x7e]+(?: [\\x21-\\x7e]+)*$", "u");
|
|
19109
|
+
function validate69(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
18184
19110
|
;
|
|
18185
19111
|
let vErrors = null;
|
|
18186
19112
|
let errors = 0;
|
|
18187
|
-
const evaluated0 =
|
|
19113
|
+
const evaluated0 = validate69.evaluated;
|
|
18188
19114
|
if (evaluated0.dynamicProps) {
|
|
18189
19115
|
evaluated0.props = void 0;
|
|
18190
19116
|
}
|
|
@@ -18196,13 +19122,13 @@ function validate64(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
18196
19122
|
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
18197
19123
|
let missing0;
|
|
18198
19124
|
if (data.apiKey === void 0 && (missing0 = "apiKey") || data.secret === void 0 && (missing0 = "secret")) {
|
|
18199
|
-
|
|
19125
|
+
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 + "'" }];
|
|
18200
19126
|
return false;
|
|
18201
19127
|
} else {
|
|
18202
19128
|
const _errs2 = errors;
|
|
18203
19129
|
for (const key0 in data) {
|
|
18204
19130
|
if (!(key0 === "apiKey" || key0 === "secret")) {
|
|
18205
|
-
|
|
19131
|
+
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" }];
|
|
18206
19132
|
return false;
|
|
18207
19133
|
break;
|
|
18208
19134
|
}
|
|
@@ -18215,13 +19141,13 @@ function validate64(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
18215
19141
|
if (data0 && typeof data0 == "object" && !Array.isArray(data0)) {
|
|
18216
19142
|
let missing1;
|
|
18217
19143
|
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")) {
|
|
18218
|
-
|
|
19144
|
+
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 + "'" }];
|
|
18219
19145
|
return false;
|
|
18220
19146
|
} else {
|
|
18221
19147
|
const _errs5 = errors;
|
|
18222
19148
|
for (const key1 in data0) {
|
|
18223
19149
|
if (!(key1 === "id" || key1 === "name" || key1 === "obfuscatedValue" || key1 === "permissions" || key1 === "lastUsedAt" || key1 === "expiresAt" || key1 === "createdAt" || key1 === "updatedAt")) {
|
|
18224
|
-
|
|
19150
|
+
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" }];
|
|
18225
19151
|
return false;
|
|
18226
19152
|
break;
|
|
18227
19153
|
}
|
|
@@ -18233,21 +19159,21 @@ function validate64(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
18233
19159
|
if (errors === _errs6) {
|
|
18234
19160
|
if (typeof data1 === "string") {
|
|
18235
19161
|
if (func1(data1) > 256) {
|
|
18236
|
-
|
|
19162
|
+
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" }];
|
|
18237
19163
|
return false;
|
|
18238
19164
|
} else {
|
|
18239
19165
|
if (func1(data1) < 9) {
|
|
18240
|
-
|
|
19166
|
+
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" }];
|
|
18241
19167
|
return false;
|
|
18242
19168
|
} else {
|
|
18243
|
-
if (!
|
|
18244
|
-
|
|
19169
|
+
if (!pattern29.test(data1)) {
|
|
19170
|
+
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_-]+$"' }];
|
|
18245
19171
|
return false;
|
|
18246
19172
|
}
|
|
18247
19173
|
}
|
|
18248
19174
|
}
|
|
18249
19175
|
} else {
|
|
18250
|
-
|
|
19176
|
+
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" }];
|
|
18251
19177
|
return false;
|
|
18252
19178
|
}
|
|
18253
19179
|
}
|
|
@@ -18262,21 +19188,21 @@ function validate64(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
18262
19188
|
if (errors === _errs8) {
|
|
18263
19189
|
if (typeof data2 === "string") {
|
|
18264
19190
|
if (func1(data2) > 128) {
|
|
18265
|
-
|
|
19191
|
+
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" }];
|
|
18266
19192
|
return false;
|
|
18267
19193
|
} else {
|
|
18268
19194
|
if (func1(data2) < 1) {
|
|
18269
|
-
|
|
19195
|
+
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" }];
|
|
18270
19196
|
return false;
|
|
18271
19197
|
} else {
|
|
18272
|
-
if (!
|
|
18273
|
-
|
|
19198
|
+
if (!pattern31.test(data2)) {
|
|
19199
|
+
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])?$"' }];
|
|
18274
19200
|
return false;
|
|
18275
19201
|
}
|
|
18276
19202
|
}
|
|
18277
19203
|
}
|
|
18278
19204
|
} else {
|
|
18279
|
-
|
|
19205
|
+
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" }];
|
|
18280
19206
|
return false;
|
|
18281
19207
|
}
|
|
18282
19208
|
}
|
|
@@ -18291,21 +19217,21 @@ function validate64(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
18291
19217
|
if (errors === _errs10) {
|
|
18292
19218
|
if (typeof data3 === "string") {
|
|
18293
19219
|
if (func1(data3) > 256) {
|
|
18294
|
-
|
|
19220
|
+
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" }];
|
|
18295
19221
|
return false;
|
|
18296
19222
|
} else {
|
|
18297
19223
|
if (func1(data3) < 1) {
|
|
18298
|
-
|
|
19224
|
+
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" }];
|
|
18299
19225
|
return false;
|
|
18300
19226
|
} else {
|
|
18301
|
-
if (!
|
|
18302
|
-
|
|
19227
|
+
if (!pattern32.test(data3)) {
|
|
19228
|
+
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]+$"' }];
|
|
18303
19229
|
return false;
|
|
18304
19230
|
}
|
|
18305
19231
|
}
|
|
18306
19232
|
}
|
|
18307
19233
|
} else {
|
|
18308
|
-
|
|
19234
|
+
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" }];
|
|
18309
19235
|
return false;
|
|
18310
19236
|
}
|
|
18311
19237
|
}
|
|
@@ -18320,7 +19246,7 @@ function validate64(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
18320
19246
|
if (errors === _errs12) {
|
|
18321
19247
|
if (Array.isArray(data4)) {
|
|
18322
19248
|
if (data4.length > 100) {
|
|
18323
|
-
|
|
19249
|
+
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" }];
|
|
18324
19250
|
return false;
|
|
18325
19251
|
} else {
|
|
18326
19252
|
var valid3 = true;
|
|
@@ -18331,21 +19257,21 @@ function validate64(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
18331
19257
|
if (errors === _errs14) {
|
|
18332
19258
|
if (typeof data5 === "string") {
|
|
18333
19259
|
if (func1(data5) > 128) {
|
|
18334
|
-
|
|
19260
|
+
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" }];
|
|
18335
19261
|
return false;
|
|
18336
19262
|
} else {
|
|
18337
19263
|
if (func1(data5) < 1) {
|
|
18338
|
-
|
|
19264
|
+
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" }];
|
|
18339
19265
|
return false;
|
|
18340
19266
|
} else {
|
|
18341
|
-
if (!
|
|
18342
|
-
|
|
19267
|
+
if (!pattern33.test(data5)) {
|
|
19268
|
+
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]+$"' }];
|
|
18343
19269
|
return false;
|
|
18344
19270
|
}
|
|
18345
19271
|
}
|
|
18346
19272
|
}
|
|
18347
19273
|
} else {
|
|
18348
|
-
|
|
19274
|
+
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" }];
|
|
18349
19275
|
return false;
|
|
18350
19276
|
}
|
|
18351
19277
|
}
|
|
@@ -18356,7 +19282,7 @@ function validate64(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
18356
19282
|
}
|
|
18357
19283
|
}
|
|
18358
19284
|
} else {
|
|
18359
|
-
|
|
19285
|
+
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" }];
|
|
18360
19286
|
return false;
|
|
18361
19287
|
}
|
|
18362
19288
|
}
|
|
@@ -18425,7 +19351,7 @@ function validate64(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
18425
19351
|
vErrors.push(err4);
|
|
18426
19352
|
}
|
|
18427
19353
|
errors++;
|
|
18428
|
-
|
|
19354
|
+
validate69.errors = vErrors;
|
|
18429
19355
|
return false;
|
|
18430
19356
|
} else {
|
|
18431
19357
|
errors = _errs17;
|
|
@@ -18502,7 +19428,7 @@ function validate64(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
18502
19428
|
vErrors.push(err9);
|
|
18503
19429
|
}
|
|
18504
19430
|
errors++;
|
|
18505
|
-
|
|
19431
|
+
validate69.errors = vErrors;
|
|
18506
19432
|
return false;
|
|
18507
19433
|
} else {
|
|
18508
19434
|
errors = _errs23;
|
|
@@ -18523,17 +19449,17 @@ function validate64(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
18523
19449
|
let data8 = data0.createdAt;
|
|
18524
19450
|
const _errs28 = errors;
|
|
18525
19451
|
if (!(typeof data8 == "number" && (!(data8 % 1) && !isNaN(data8)) && isFinite(data8))) {
|
|
18526
|
-
|
|
19452
|
+
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" }];
|
|
18527
19453
|
return false;
|
|
18528
19454
|
}
|
|
18529
19455
|
if (errors === _errs28) {
|
|
18530
19456
|
if (typeof data8 == "number" && isFinite(data8)) {
|
|
18531
19457
|
if (data8 > 9007199254740991 || isNaN(data8)) {
|
|
18532
|
-
|
|
19458
|
+
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" }];
|
|
18533
19459
|
return false;
|
|
18534
19460
|
} else {
|
|
18535
19461
|
if (data8 < 0 || isNaN(data8)) {
|
|
18536
|
-
|
|
19462
|
+
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" }];
|
|
18537
19463
|
return false;
|
|
18538
19464
|
}
|
|
18539
19465
|
}
|
|
@@ -18548,17 +19474,17 @@ function validate64(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
18548
19474
|
let data9 = data0.updatedAt;
|
|
18549
19475
|
const _errs30 = errors;
|
|
18550
19476
|
if (!(typeof data9 == "number" && (!(data9 % 1) && !isNaN(data9)) && isFinite(data9))) {
|
|
18551
|
-
|
|
19477
|
+
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" }];
|
|
18552
19478
|
return false;
|
|
18553
19479
|
}
|
|
18554
19480
|
if (errors === _errs30) {
|
|
18555
19481
|
if (typeof data9 == "number" && isFinite(data9)) {
|
|
18556
19482
|
if (data9 > 9007199254740991 || isNaN(data9)) {
|
|
18557
|
-
|
|
19483
|
+
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" }];
|
|
18558
19484
|
return false;
|
|
18559
19485
|
} else {
|
|
18560
19486
|
if (data9 < 0 || isNaN(data9)) {
|
|
18561
|
-
|
|
19487
|
+
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" }];
|
|
18562
19488
|
return false;
|
|
18563
19489
|
}
|
|
18564
19490
|
}
|
|
@@ -18578,7 +19504,7 @@ function validate64(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
18578
19504
|
}
|
|
18579
19505
|
}
|
|
18580
19506
|
} else {
|
|
18581
|
-
|
|
19507
|
+
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" }];
|
|
18582
19508
|
return false;
|
|
18583
19509
|
}
|
|
18584
19510
|
}
|
|
@@ -18593,21 +19519,21 @@ function validate64(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
18593
19519
|
if (errors === _errs32) {
|
|
18594
19520
|
if (typeof data10 === "string") {
|
|
18595
19521
|
if (func1(data10) > 4096) {
|
|
18596
|
-
|
|
19522
|
+
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" }];
|
|
18597
19523
|
return false;
|
|
18598
19524
|
} else {
|
|
18599
19525
|
if (func1(data10) < 4) {
|
|
18600
|
-
|
|
19526
|
+
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" }];
|
|
18601
19527
|
return false;
|
|
18602
19528
|
} else {
|
|
18603
|
-
if (!
|
|
18604
|
-
|
|
19529
|
+
if (!pattern45.test(data10)) {
|
|
19530
|
+
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]+)*$"' }];
|
|
18605
19531
|
return false;
|
|
18606
19532
|
}
|
|
18607
19533
|
}
|
|
18608
19534
|
}
|
|
18609
19535
|
} else {
|
|
18610
|
-
|
|
19536
|
+
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" }];
|
|
18611
19537
|
return false;
|
|
18612
19538
|
}
|
|
18613
19539
|
}
|
|
@@ -18619,19 +19545,19 @@ function validate64(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
18619
19545
|
}
|
|
18620
19546
|
}
|
|
18621
19547
|
} else {
|
|
18622
|
-
|
|
19548
|
+
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" }];
|
|
18623
19549
|
return false;
|
|
18624
19550
|
}
|
|
18625
19551
|
}
|
|
18626
|
-
|
|
19552
|
+
validate69.errors = vErrors;
|
|
18627
19553
|
return errors === 0;
|
|
18628
19554
|
}
|
|
18629
|
-
|
|
18630
|
-
function
|
|
19555
|
+
validate69.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
|
|
19556
|
+
function validate70(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
18631
19557
|
;
|
|
18632
19558
|
let vErrors = null;
|
|
18633
19559
|
let errors = 0;
|
|
18634
|
-
const evaluated0 =
|
|
19560
|
+
const evaluated0 = validate70.evaluated;
|
|
18635
19561
|
if (evaluated0.dynamicProps) {
|
|
18636
19562
|
evaluated0.props = void 0;
|
|
18637
19563
|
}
|
|
@@ -18643,13 +19569,13 @@ function validate65(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
18643
19569
|
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
18644
19570
|
let missing0;
|
|
18645
19571
|
if (data.requestId === void 0 && (missing0 = "requestId")) {
|
|
18646
|
-
|
|
19572
|
+
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 + "'" }];
|
|
18647
19573
|
return false;
|
|
18648
19574
|
} else {
|
|
18649
19575
|
const _errs2 = errors;
|
|
18650
19576
|
for (const key0 in data) {
|
|
18651
19577
|
if (!(key0 === "requestId")) {
|
|
18652
|
-
|
|
19578
|
+
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" }];
|
|
18653
19579
|
return false;
|
|
18654
19580
|
break;
|
|
18655
19581
|
}
|
|
@@ -18660,12 +19586,12 @@ function validate65(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
18660
19586
|
const _errs3 = errors;
|
|
18661
19587
|
if (errors === _errs3) {
|
|
18662
19588
|
if (typeof data0 === "string") {
|
|
18663
|
-
if (!
|
|
18664
|
-
|
|
19589
|
+
if (!pattern5.test(data0)) {
|
|
19590
|
+
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}$"' }];
|
|
18665
19591
|
return false;
|
|
18666
19592
|
}
|
|
18667
19593
|
} else {
|
|
18668
|
-
|
|
19594
|
+
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" }];
|
|
18669
19595
|
return false;
|
|
18670
19596
|
}
|
|
18671
19597
|
}
|
|
@@ -18673,19 +19599,19 @@ function validate65(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
18673
19599
|
}
|
|
18674
19600
|
}
|
|
18675
19601
|
} else {
|
|
18676
|
-
|
|
19602
|
+
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" }];
|
|
18677
19603
|
return false;
|
|
18678
19604
|
}
|
|
18679
19605
|
}
|
|
18680
|
-
|
|
19606
|
+
validate70.errors = vErrors;
|
|
18681
19607
|
return errors === 0;
|
|
18682
19608
|
}
|
|
18683
|
-
|
|
18684
|
-
function
|
|
19609
|
+
validate70.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
|
|
19610
|
+
function validate71(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
18685
19611
|
;
|
|
18686
19612
|
let vErrors = null;
|
|
18687
19613
|
let errors = 0;
|
|
18688
|
-
const evaluated0 =
|
|
19614
|
+
const evaluated0 = validate71.evaluated;
|
|
18689
19615
|
if (evaluated0.dynamicProps) {
|
|
18690
19616
|
evaluated0.props = void 0;
|
|
18691
19617
|
}
|
|
@@ -18697,13 +19623,13 @@ function validate66(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
18697
19623
|
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
18698
19624
|
let missing0;
|
|
18699
19625
|
if (data.apiKeyId === void 0 && (missing0 = "apiKeyId") || data.revoked === void 0 && (missing0 = "revoked")) {
|
|
18700
|
-
|
|
19626
|
+
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 + "'" }];
|
|
18701
19627
|
return false;
|
|
18702
19628
|
} else {
|
|
18703
19629
|
const _errs2 = errors;
|
|
18704
19630
|
for (const key0 in data) {
|
|
18705
19631
|
if (!(key0 === "apiKeyId" || key0 === "revoked")) {
|
|
18706
|
-
|
|
19632
|
+
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" }];
|
|
18707
19633
|
return false;
|
|
18708
19634
|
break;
|
|
18709
19635
|
}
|
|
@@ -18715,21 +19641,21 @@ function validate66(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
18715
19641
|
if (errors === _errs3) {
|
|
18716
19642
|
if (typeof data0 === "string") {
|
|
18717
19643
|
if (func1(data0) > 256) {
|
|
18718
|
-
|
|
19644
|
+
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" }];
|
|
18719
19645
|
return false;
|
|
18720
19646
|
} else {
|
|
18721
19647
|
if (func1(data0) < 9) {
|
|
18722
|
-
|
|
19648
|
+
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" }];
|
|
18723
19649
|
return false;
|
|
18724
19650
|
} else {
|
|
18725
|
-
if (!
|
|
18726
|
-
|
|
19651
|
+
if (!pattern29.test(data0)) {
|
|
19652
|
+
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_-]+$"' }];
|
|
18727
19653
|
return false;
|
|
18728
19654
|
}
|
|
18729
19655
|
}
|
|
18730
19656
|
}
|
|
18731
19657
|
} else {
|
|
18732
|
-
|
|
19658
|
+
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" }];
|
|
18733
19659
|
return false;
|
|
18734
19660
|
}
|
|
18735
19661
|
}
|
|
@@ -18742,11 +19668,11 @@ function validate66(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
18742
19668
|
let data1 = data.revoked;
|
|
18743
19669
|
const _errs5 = errors;
|
|
18744
19670
|
if (typeof data1 !== "boolean") {
|
|
18745
|
-
|
|
19671
|
+
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" }];
|
|
18746
19672
|
return false;
|
|
18747
19673
|
}
|
|
18748
19674
|
if (true !== data1) {
|
|
18749
|
-
|
|
19675
|
+
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" }];
|
|
18750
19676
|
return false;
|
|
18751
19677
|
}
|
|
18752
19678
|
var valid1 = _errs5 === errors;
|
|
@@ -18757,19 +19683,19 @@ function validate66(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
18757
19683
|
}
|
|
18758
19684
|
}
|
|
18759
19685
|
} else {
|
|
18760
|
-
|
|
19686
|
+
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" }];
|
|
18761
19687
|
return false;
|
|
18762
19688
|
}
|
|
18763
19689
|
}
|
|
18764
|
-
|
|
19690
|
+
validate71.errors = vErrors;
|
|
18765
19691
|
return errors === 0;
|
|
18766
19692
|
}
|
|
18767
|
-
|
|
18768
|
-
function
|
|
19693
|
+
validate71.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
|
|
19694
|
+
function validate72(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
18769
19695
|
;
|
|
18770
19696
|
let vErrors = null;
|
|
18771
19697
|
let errors = 0;
|
|
18772
|
-
const evaluated0 =
|
|
19698
|
+
const evaluated0 = validate72.evaluated;
|
|
18773
19699
|
if (evaluated0.dynamicProps) {
|
|
18774
19700
|
evaluated0.props = void 0;
|
|
18775
19701
|
}
|
|
@@ -18781,13 +19707,13 @@ function validate67(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
18781
19707
|
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
18782
19708
|
let missing0;
|
|
18783
19709
|
if (data.error === void 0 && (missing0 = "error")) {
|
|
18784
|
-
|
|
19710
|
+
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 + "'" }];
|
|
18785
19711
|
return false;
|
|
18786
19712
|
} else {
|
|
18787
19713
|
const _errs2 = errors;
|
|
18788
19714
|
for (const key0 in data) {
|
|
18789
19715
|
if (!(key0 === "error")) {
|
|
18790
|
-
|
|
19716
|
+
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" }];
|
|
18791
19717
|
return false;
|
|
18792
19718
|
break;
|
|
18793
19719
|
}
|
|
@@ -18796,30 +19722,30 @@ function validate67(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
18796
19722
|
if (data.error !== void 0) {
|
|
18797
19723
|
let data0 = data.error;
|
|
18798
19724
|
if (typeof data0 !== "string") {
|
|
18799
|
-
|
|
19725
|
+
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" }];
|
|
18800
19726
|
return false;
|
|
18801
19727
|
}
|
|
18802
19728
|
if ("Not found" !== data0) {
|
|
18803
|
-
|
|
19729
|
+
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" }];
|
|
18804
19730
|
return false;
|
|
18805
19731
|
}
|
|
18806
19732
|
}
|
|
18807
19733
|
}
|
|
18808
19734
|
}
|
|
18809
19735
|
} else {
|
|
18810
|
-
|
|
19736
|
+
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" }];
|
|
18811
19737
|
return false;
|
|
18812
19738
|
}
|
|
18813
19739
|
}
|
|
18814
|
-
|
|
19740
|
+
validate72.errors = vErrors;
|
|
18815
19741
|
return errors === 0;
|
|
18816
19742
|
}
|
|
18817
|
-
|
|
18818
|
-
function
|
|
19743
|
+
validate72.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
|
|
19744
|
+
function validate73(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
18819
19745
|
;
|
|
18820
19746
|
let vErrors = null;
|
|
18821
19747
|
let errors = 0;
|
|
18822
|
-
const evaluated0 =
|
|
19748
|
+
const evaluated0 = validate73.evaluated;
|
|
18823
19749
|
if (evaluated0.dynamicProps) {
|
|
18824
19750
|
evaluated0.props = void 0;
|
|
18825
19751
|
}
|
|
@@ -18968,7 +19894,7 @@ function validate68(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
18968
19894
|
vErrors.push(err10);
|
|
18969
19895
|
}
|
|
18970
19896
|
errors++;
|
|
18971
|
-
|
|
19897
|
+
validate73.errors = vErrors;
|
|
18972
19898
|
return false;
|
|
18973
19899
|
} else {
|
|
18974
19900
|
errors = _errs1;
|
|
@@ -18980,18 +19906,18 @@ function validate68(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
18980
19906
|
}
|
|
18981
19907
|
}
|
|
18982
19908
|
}
|
|
18983
|
-
|
|
19909
|
+
validate73.errors = vErrors;
|
|
18984
19910
|
evaluated0.props = props0;
|
|
18985
19911
|
return errors === 0;
|
|
18986
19912
|
}
|
|
18987
|
-
|
|
18988
|
-
var
|
|
18989
|
-
var
|
|
18990
|
-
function
|
|
19913
|
+
validate73.evaluated = { "dynamicProps": true, "dynamicItems": false };
|
|
19914
|
+
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"] };
|
|
19915
|
+
var pattern48 = new RegExp("^client_[A-Za-z0-9_-]+$", "u");
|
|
19916
|
+
function validate74(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
18991
19917
|
;
|
|
18992
19918
|
let vErrors = null;
|
|
18993
19919
|
let errors = 0;
|
|
18994
|
-
const evaluated0 =
|
|
19920
|
+
const evaluated0 = validate74.evaluated;
|
|
18995
19921
|
if (evaluated0.dynamicProps) {
|
|
18996
19922
|
evaluated0.props = void 0;
|
|
18997
19923
|
}
|
|
@@ -19003,13 +19929,13 @@ function validate69(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
19003
19929
|
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
19004
19930
|
let missing0;
|
|
19005
19931
|
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")) {
|
|
19006
|
-
|
|
19932
|
+
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 + "'" }];
|
|
19007
19933
|
return false;
|
|
19008
19934
|
} else {
|
|
19009
19935
|
const _errs3 = errors;
|
|
19010
19936
|
for (const key0 in data) {
|
|
19011
19937
|
if (!(key0 === "protocol_version" || key0 === "issuer" || key0 === "client_id" || key0 === "default_scopes")) {
|
|
19012
|
-
|
|
19938
|
+
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" }];
|
|
19013
19939
|
return false;
|
|
19014
19940
|
break;
|
|
19015
19941
|
}
|
|
@@ -19019,11 +19945,11 @@ function validate69(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
19019
19945
|
let data0 = data.protocol_version;
|
|
19020
19946
|
const _errs4 = errors;
|
|
19021
19947
|
if (!(typeof data0 == "number" && isFinite(data0))) {
|
|
19022
|
-
|
|
19948
|
+
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" }];
|
|
19023
19949
|
return false;
|
|
19024
19950
|
}
|
|
19025
19951
|
if (1 !== data0) {
|
|
19026
|
-
|
|
19952
|
+
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" }];
|
|
19027
19953
|
return false;
|
|
19028
19954
|
}
|
|
19029
19955
|
var valid1 = _errs4 === errors;
|
|
@@ -19036,7 +19962,7 @@ function validate69(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
19036
19962
|
if (errors === _errs6) {
|
|
19037
19963
|
if (errors === _errs6) {
|
|
19038
19964
|
if (!(typeof data.issuer === "string")) {
|
|
19039
|
-
|
|
19965
|
+
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" }];
|
|
19040
19966
|
return false;
|
|
19041
19967
|
}
|
|
19042
19968
|
}
|
|
@@ -19052,16 +19978,16 @@ function validate69(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
19052
19978
|
if (errors === _errs8) {
|
|
19053
19979
|
if (typeof data2 === "string") {
|
|
19054
19980
|
if (func1(data2) > 256) {
|
|
19055
|
-
|
|
19981
|
+
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" }];
|
|
19056
19982
|
return false;
|
|
19057
19983
|
} else {
|
|
19058
|
-
if (!
|
|
19059
|
-
|
|
19984
|
+
if (!pattern48.test(data2)) {
|
|
19985
|
+
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_-]+$"' }];
|
|
19060
19986
|
return false;
|
|
19061
19987
|
}
|
|
19062
19988
|
}
|
|
19063
19989
|
} else {
|
|
19064
|
-
|
|
19990
|
+
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" }];
|
|
19065
19991
|
return false;
|
|
19066
19992
|
}
|
|
19067
19993
|
}
|
|
@@ -19076,11 +20002,11 @@ function validate69(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
19076
20002
|
if (errors === _errs10) {
|
|
19077
20003
|
if (Array.isArray(data3)) {
|
|
19078
20004
|
if (data3.length > 4) {
|
|
19079
|
-
|
|
20005
|
+
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" }];
|
|
19080
20006
|
return false;
|
|
19081
20007
|
} else {
|
|
19082
20008
|
if (data3.length < 4) {
|
|
19083
|
-
|
|
20009
|
+
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" }];
|
|
19084
20010
|
return false;
|
|
19085
20011
|
} else {
|
|
19086
20012
|
var valid2 = true;
|
|
@@ -19089,11 +20015,11 @@ function validate69(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
19089
20015
|
let data4 = data3[i0];
|
|
19090
20016
|
const _errs12 = errors;
|
|
19091
20017
|
if (typeof data4 !== "string") {
|
|
19092
|
-
|
|
20018
|
+
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" }];
|
|
19093
20019
|
return false;
|
|
19094
20020
|
}
|
|
19095
20021
|
if (!(data4 === "openid" || data4 === "profile" || data4 === "email" || data4 === "offline_access")) {
|
|
19096
|
-
|
|
20022
|
+
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" }];
|
|
19097
20023
|
return false;
|
|
19098
20024
|
}
|
|
19099
20025
|
var valid2 = _errs12 === errors;
|
|
@@ -19104,7 +20030,7 @@ function validate69(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
19104
20030
|
}
|
|
19105
20031
|
}
|
|
19106
20032
|
} else {
|
|
19107
|
-
|
|
20033
|
+
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" }];
|
|
19108
20034
|
return false;
|
|
19109
20035
|
}
|
|
19110
20036
|
}
|
|
@@ -19118,19 +20044,19 @@ function validate69(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
19118
20044
|
}
|
|
19119
20045
|
}
|
|
19120
20046
|
} else {
|
|
19121
|
-
|
|
20047
|
+
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" }];
|
|
19122
20048
|
return false;
|
|
19123
20049
|
}
|
|
19124
20050
|
}
|
|
19125
|
-
|
|
20051
|
+
validate74.errors = vErrors;
|
|
19126
20052
|
return errors === 0;
|
|
19127
20053
|
}
|
|
19128
|
-
|
|
19129
|
-
function
|
|
20054
|
+
validate74.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
|
|
20055
|
+
function validate75(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
19130
20056
|
;
|
|
19131
20057
|
let vErrors = null;
|
|
19132
20058
|
let errors = 0;
|
|
19133
|
-
const evaluated0 =
|
|
20059
|
+
const evaluated0 = validate75.evaluated;
|
|
19134
20060
|
if (evaluated0.dynamicProps) {
|
|
19135
20061
|
evaluated0.props = void 0;
|
|
19136
20062
|
}
|
|
@@ -19142,13 +20068,13 @@ function validate70(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
19142
20068
|
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
19143
20069
|
let missing0;
|
|
19144
20070
|
if (data.error === void 0 && (missing0 = "error")) {
|
|
19145
|
-
|
|
20071
|
+
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 + "'" }];
|
|
19146
20072
|
return false;
|
|
19147
20073
|
} else {
|
|
19148
20074
|
const _errs2 = errors;
|
|
19149
20075
|
for (const key0 in data) {
|
|
19150
20076
|
if (!(key0 === "error")) {
|
|
19151
|
-
|
|
20077
|
+
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" }];
|
|
19152
20078
|
return false;
|
|
19153
20079
|
break;
|
|
19154
20080
|
}
|
|
@@ -19157,25 +20083,25 @@ function validate70(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
19157
20083
|
if (data.error !== void 0) {
|
|
19158
20084
|
let data0 = data.error;
|
|
19159
20085
|
if (typeof data0 !== "string") {
|
|
19160
|
-
|
|
20086
|
+
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" }];
|
|
19161
20087
|
return false;
|
|
19162
20088
|
}
|
|
19163
20089
|
if ("connect_device_auth_unavailable" !== data0) {
|
|
19164
|
-
|
|
20090
|
+
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" }];
|
|
19165
20091
|
return false;
|
|
19166
20092
|
}
|
|
19167
20093
|
}
|
|
19168
20094
|
}
|
|
19169
20095
|
}
|
|
19170
20096
|
} else {
|
|
19171
|
-
|
|
20097
|
+
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" }];
|
|
19172
20098
|
return false;
|
|
19173
20099
|
}
|
|
19174
20100
|
}
|
|
19175
|
-
|
|
20101
|
+
validate75.errors = vErrors;
|
|
19176
20102
|
return errors === 0;
|
|
19177
20103
|
}
|
|
19178
|
-
|
|
20104
|
+
validate75.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
|
|
19179
20105
|
|
|
19180
20106
|
// src/lib/scope-glob.ts
|
|
19181
20107
|
var DISALLOWED_PATTERN_CHARACTERS = /* @__PURE__ */ new Set([
|