@stim-cli/core 1.17.0 → 1.17.2
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/dist/{index-DPp8a4-9.d.mts → index-lRdEfJSb.d.mts} +43 -29
- package/dist/phone-protocol.d.mts +2 -2
- package/dist/{protocol-CfT6YiG_.d.mts → protocol-DcI3hDw9.d.mts} +7 -7
- package/dist/protocol.d.mts +1 -1
- package/dist/protocol.mjs +1 -1
- package/dist/receive-protocol.mjs +907 -530
- package/dist/state.d.mts +2 -2
- package/dist/state.mjs +38 -38
- package/package.json +1 -1
|
@@ -13378,147 +13378,445 @@ function validate191(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
13378
13378
|
validate191.errors = vErrors;
|
|
13379
13379
|
return true;
|
|
13380
13380
|
}
|
|
13381
|
-
function
|
|
13381
|
+
function validate195(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
|
|
13382
13382
|
let vErrors = null;
|
|
13383
13383
|
let errors = 0;
|
|
13384
|
-
|
|
13384
|
+
const _errs0 = errors;
|
|
13385
|
+
let valid0 = false;
|
|
13386
|
+
const _errs1 = errors;
|
|
13387
|
+
if (errors === _errs1) {
|
|
13385
13388
|
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
13386
13389
|
let missing0;
|
|
13387
|
-
if (data.
|
|
13388
|
-
|
|
13390
|
+
if (data.driver === void 0 && (missing0 = "driver") || data.setting === void 0 && (missing0 = "setting")) {
|
|
13391
|
+
const err0 = {
|
|
13389
13392
|
instancePath,
|
|
13390
|
-
schemaPath: "#/required",
|
|
13393
|
+
schemaPath: "#/anyOf/0/required",
|
|
13391
13394
|
keyword: "required",
|
|
13392
13395
|
params: { missingProperty: missing0 },
|
|
13393
13396
|
message: "must have required property '" + missing0 + "'"
|
|
13394
|
-
}
|
|
13395
|
-
|
|
13397
|
+
};
|
|
13398
|
+
if (vErrors === null) vErrors = [err0];
|
|
13399
|
+
else vErrors.push(err0);
|
|
13400
|
+
errors++;
|
|
13396
13401
|
} else {
|
|
13397
|
-
if (data.
|
|
13398
|
-
let data0 = data.
|
|
13399
|
-
const _errs1 = errors;
|
|
13400
|
-
const _errs2 = errors;
|
|
13401
|
-
let valid1 = false;
|
|
13402
|
+
if (data.driver !== void 0) {
|
|
13403
|
+
let data0 = data.driver;
|
|
13402
13404
|
const _errs3 = errors;
|
|
13403
|
-
if (
|
|
13404
|
-
|
|
13405
|
-
|
|
13406
|
-
|
|
13407
|
-
|
|
13408
|
-
|
|
13409
|
-
|
|
13410
|
-
|
|
13411
|
-
|
|
13412
|
-
|
|
13413
|
-
|
|
13414
|
-
|
|
13415
|
-
|
|
13416
|
-
|
|
13417
|
-
|
|
13418
|
-
|
|
13419
|
-
|
|
13420
|
-
|
|
13421
|
-
|
|
13422
|
-
|
|
13423
|
-
|
|
13424
|
-
|
|
13425
|
-
|
|
13426
|
-
|
|
13427
|
-
|
|
13428
|
-
|
|
13429
|
-
|
|
13430
|
-
|
|
13431
|
-
|
|
13432
|
-
|
|
13433
|
-
|
|
13434
|
-
if (valid2) {
|
|
13435
|
-
if (data0.runtime !== void 0) {
|
|
13436
|
-
const _errs7 = errors;
|
|
13437
|
-
if (typeof data0.runtime !== "string") {
|
|
13438
|
-
const err2 = {
|
|
13439
|
-
instancePath: instancePath + "/device/runtime",
|
|
13440
|
-
schemaPath: "#/properties/device/anyOf/0/properties/runtime/type",
|
|
13441
|
-
keyword: "type",
|
|
13442
|
-
params: { type: "string" },
|
|
13443
|
-
message: "must be string"
|
|
13444
|
-
};
|
|
13445
|
-
if (vErrors === null) vErrors = [err2];
|
|
13446
|
-
else vErrors.push(err2);
|
|
13447
|
-
errors++;
|
|
13448
|
-
}
|
|
13449
|
-
var valid2 = _errs7 === errors;
|
|
13450
|
-
} else var valid2 = true;
|
|
13451
|
-
}
|
|
13452
|
-
}
|
|
13453
|
-
} else {
|
|
13405
|
+
if (typeof data0 !== "string") {
|
|
13406
|
+
const err1 = {
|
|
13407
|
+
instancePath: instancePath + "/driver",
|
|
13408
|
+
schemaPath: "#/anyOf/0/properties/driver/type",
|
|
13409
|
+
keyword: "type",
|
|
13410
|
+
params: { type: "string" },
|
|
13411
|
+
message: "must be string"
|
|
13412
|
+
};
|
|
13413
|
+
if (vErrors === null) vErrors = [err1];
|
|
13414
|
+
else vErrors.push(err1);
|
|
13415
|
+
errors++;
|
|
13416
|
+
}
|
|
13417
|
+
if ("none" !== data0) {
|
|
13418
|
+
const err2 = {
|
|
13419
|
+
instancePath: instancePath + "/driver",
|
|
13420
|
+
schemaPath: "#/anyOf/0/properties/driver/const",
|
|
13421
|
+
keyword: "const",
|
|
13422
|
+
params: { allowedValue: "none" },
|
|
13423
|
+
message: "must be equal to constant"
|
|
13424
|
+
};
|
|
13425
|
+
if (vErrors === null) vErrors = [err2];
|
|
13426
|
+
else vErrors.push(err2);
|
|
13427
|
+
errors++;
|
|
13428
|
+
}
|
|
13429
|
+
var valid1 = _errs3 === errors;
|
|
13430
|
+
} else var valid1 = true;
|
|
13431
|
+
if (valid1) {
|
|
13432
|
+
if (data.setting !== void 0) {
|
|
13433
|
+
let data1 = data.setting;
|
|
13434
|
+
const _errs5 = errors;
|
|
13435
|
+
if (typeof data1 !== "string") {
|
|
13454
13436
|
const err3 = {
|
|
13455
|
-
instancePath: instancePath + "/
|
|
13456
|
-
schemaPath: "#/
|
|
13437
|
+
instancePath: instancePath + "/setting",
|
|
13438
|
+
schemaPath: "#/anyOf/0/properties/setting/type",
|
|
13457
13439
|
keyword: "type",
|
|
13458
|
-
params: { type: "
|
|
13459
|
-
message: "must be
|
|
13440
|
+
params: { type: "string" },
|
|
13441
|
+
message: "must be string"
|
|
13460
13442
|
};
|
|
13461
13443
|
if (vErrors === null) vErrors = [err3];
|
|
13462
13444
|
else vErrors.push(err3);
|
|
13463
13445
|
errors++;
|
|
13464
13446
|
}
|
|
13465
|
-
|
|
13466
|
-
var _valid0 = _errs3 === errors;
|
|
13467
|
-
valid1 = valid1 || _valid0;
|
|
13468
|
-
if (!valid1) {
|
|
13469
|
-
const _errs9 = errors;
|
|
13470
|
-
if (data0 !== null) {
|
|
13447
|
+
if ("hosting.agentDriver" !== data1) {
|
|
13471
13448
|
const err4 = {
|
|
13472
|
-
instancePath: instancePath + "/
|
|
13473
|
-
schemaPath: "#/
|
|
13474
|
-
keyword: "
|
|
13475
|
-
params: {
|
|
13476
|
-
message: "must be
|
|
13449
|
+
instancePath: instancePath + "/setting",
|
|
13450
|
+
schemaPath: "#/anyOf/0/properties/setting/const",
|
|
13451
|
+
keyword: "const",
|
|
13452
|
+
params: { allowedValue: "hosting.agentDriver" },
|
|
13453
|
+
message: "must be equal to constant"
|
|
13477
13454
|
};
|
|
13478
13455
|
if (vErrors === null) vErrors = [err4];
|
|
13479
13456
|
else vErrors.push(err4);
|
|
13480
13457
|
errors++;
|
|
13481
13458
|
}
|
|
13482
|
-
var
|
|
13483
|
-
|
|
13459
|
+
var valid1 = _errs5 === errors;
|
|
13460
|
+
} else var valid1 = true;
|
|
13461
|
+
}
|
|
13462
|
+
}
|
|
13463
|
+
} else {
|
|
13464
|
+
const err5 = {
|
|
13465
|
+
instancePath,
|
|
13466
|
+
schemaPath: "#/anyOf/0/type",
|
|
13467
|
+
keyword: "type",
|
|
13468
|
+
params: { type: "object" },
|
|
13469
|
+
message: "must be object"
|
|
13470
|
+
};
|
|
13471
|
+
if (vErrors === null) vErrors = [err5];
|
|
13472
|
+
else vErrors.push(err5);
|
|
13473
|
+
errors++;
|
|
13474
|
+
}
|
|
13475
|
+
}
|
|
13476
|
+
var _valid0 = _errs1 === errors;
|
|
13477
|
+
valid0 = valid0 || _valid0;
|
|
13478
|
+
if (!valid0) {
|
|
13479
|
+
const _errs7 = errors;
|
|
13480
|
+
if (errors === _errs7) {
|
|
13481
|
+
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
13482
|
+
let missing1;
|
|
13483
|
+
if (data.driver === void 0 && (missing1 = "driver") || data.remoteConfig === void 0 && (missing1 = "remoteConfig") || data.command === void 0 && (missing1 = "command")) {
|
|
13484
|
+
const err6 = {
|
|
13485
|
+
instancePath,
|
|
13486
|
+
schemaPath: "#/anyOf/1/required",
|
|
13487
|
+
keyword: "required",
|
|
13488
|
+
params: { missingProperty: missing1 },
|
|
13489
|
+
message: "must have required property '" + missing1 + "'"
|
|
13490
|
+
};
|
|
13491
|
+
if (vErrors === null) vErrors = [err6];
|
|
13492
|
+
else vErrors.push(err6);
|
|
13493
|
+
errors++;
|
|
13494
|
+
} else {
|
|
13495
|
+
if (data.driver !== void 0) {
|
|
13496
|
+
let data2 = data.driver;
|
|
13497
|
+
const _errs9 = errors;
|
|
13498
|
+
if (typeof data2 !== "string") {
|
|
13499
|
+
const err7 = {
|
|
13500
|
+
instancePath: instancePath + "/driver",
|
|
13501
|
+
schemaPath: "#/anyOf/1/properties/driver/type",
|
|
13502
|
+
keyword: "type",
|
|
13503
|
+
params: { type: "string" },
|
|
13504
|
+
message: "must be string"
|
|
13505
|
+
};
|
|
13506
|
+
if (vErrors === null) vErrors = [err7];
|
|
13507
|
+
else vErrors.push(err7);
|
|
13508
|
+
errors++;
|
|
13509
|
+
}
|
|
13510
|
+
if ("agent-device" !== data2) {
|
|
13511
|
+
const err8 = {
|
|
13512
|
+
instancePath: instancePath + "/driver",
|
|
13513
|
+
schemaPath: "#/anyOf/1/properties/driver/const",
|
|
13514
|
+
keyword: "const",
|
|
13515
|
+
params: { allowedValue: "agent-device" },
|
|
13516
|
+
message: "must be equal to constant"
|
|
13517
|
+
};
|
|
13518
|
+
if (vErrors === null) vErrors = [err8];
|
|
13519
|
+
else vErrors.push(err8);
|
|
13520
|
+
errors++;
|
|
13521
|
+
}
|
|
13522
|
+
var valid2 = _errs9 === errors;
|
|
13523
|
+
} else var valid2 = true;
|
|
13524
|
+
if (valid2) {
|
|
13525
|
+
if (data.remoteConfig !== void 0) {
|
|
13526
|
+
const _errs11 = errors;
|
|
13527
|
+
if (typeof data.remoteConfig !== "string") {
|
|
13528
|
+
const err9 = {
|
|
13529
|
+
instancePath: instancePath + "/remoteConfig",
|
|
13530
|
+
schemaPath: "#/anyOf/1/properties/remoteConfig/type",
|
|
13531
|
+
keyword: "type",
|
|
13532
|
+
params: { type: "string" },
|
|
13533
|
+
message: "must be string"
|
|
13534
|
+
};
|
|
13535
|
+
if (vErrors === null) vErrors = [err9];
|
|
13536
|
+
else vErrors.push(err9);
|
|
13537
|
+
errors++;
|
|
13538
|
+
}
|
|
13539
|
+
var valid2 = _errs11 === errors;
|
|
13540
|
+
} else var valid2 = true;
|
|
13541
|
+
if (valid2) {
|
|
13542
|
+
if (data.command !== void 0) {
|
|
13543
|
+
const _errs13 = errors;
|
|
13544
|
+
if (typeof data.command !== "string") {
|
|
13545
|
+
const err10 = {
|
|
13546
|
+
instancePath: instancePath + "/command",
|
|
13547
|
+
schemaPath: "#/anyOf/1/properties/command/type",
|
|
13548
|
+
keyword: "type",
|
|
13549
|
+
params: { type: "string" },
|
|
13550
|
+
message: "must be string"
|
|
13551
|
+
};
|
|
13552
|
+
if (vErrors === null) vErrors = [err10];
|
|
13553
|
+
else vErrors.push(err10);
|
|
13554
|
+
errors++;
|
|
13555
|
+
}
|
|
13556
|
+
var valid2 = _errs13 === errors;
|
|
13557
|
+
} else var valid2 = true;
|
|
13558
|
+
}
|
|
13484
13559
|
}
|
|
13485
|
-
|
|
13486
|
-
|
|
13487
|
-
|
|
13488
|
-
|
|
13489
|
-
|
|
13490
|
-
|
|
13491
|
-
|
|
13492
|
-
|
|
13493
|
-
|
|
13494
|
-
|
|
13495
|
-
|
|
13496
|
-
|
|
13560
|
+
}
|
|
13561
|
+
} else {
|
|
13562
|
+
const err11 = {
|
|
13563
|
+
instancePath,
|
|
13564
|
+
schemaPath: "#/anyOf/1/type",
|
|
13565
|
+
keyword: "type",
|
|
13566
|
+
params: { type: "object" },
|
|
13567
|
+
message: "must be object"
|
|
13568
|
+
};
|
|
13569
|
+
if (vErrors === null) vErrors = [err11];
|
|
13570
|
+
else vErrors.push(err11);
|
|
13571
|
+
errors++;
|
|
13572
|
+
}
|
|
13573
|
+
}
|
|
13574
|
+
var _valid0 = _errs7 === errors;
|
|
13575
|
+
valid0 = valid0 || _valid0;
|
|
13576
|
+
}
|
|
13577
|
+
if (!valid0) {
|
|
13578
|
+
const err12 = {
|
|
13579
|
+
instancePath,
|
|
13580
|
+
schemaPath: "#/anyOf",
|
|
13581
|
+
keyword: "anyOf",
|
|
13582
|
+
params: {},
|
|
13583
|
+
message: "must match a schema in anyOf"
|
|
13584
|
+
};
|
|
13585
|
+
if (vErrors === null) vErrors = [err12];
|
|
13586
|
+
else vErrors.push(err12);
|
|
13587
|
+
errors++;
|
|
13588
|
+
validate195.errors = vErrors;
|
|
13589
|
+
return false;
|
|
13590
|
+
} else {
|
|
13591
|
+
errors = _errs0;
|
|
13592
|
+
if (vErrors !== null) {
|
|
13593
|
+
if (_errs0) vErrors.length = _errs0;
|
|
13594
|
+
else vErrors = null;
|
|
13595
|
+
}
|
|
13596
|
+
}
|
|
13597
|
+
validate195.errors = vErrors;
|
|
13598
|
+
return errors === 0;
|
|
13599
|
+
}
|
|
13600
|
+
function validate194(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
|
|
13601
|
+
let vErrors = null;
|
|
13602
|
+
let errors = 0;
|
|
13603
|
+
if (errors === 0) {
|
|
13604
|
+
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
13605
|
+
let missing0;
|
|
13606
|
+
if (data.machine === void 0 && (missing0 = "machine") || data.session === void 0 && (missing0 = "session") || data.selected === void 0 && (missing0 = "selected") || data.agent === void 0 && (missing0 = "agent") || data.device === void 0 && (missing0 = "device")) {
|
|
13607
|
+
validate194.errors = [{
|
|
13608
|
+
instancePath,
|
|
13609
|
+
schemaPath: "#/required",
|
|
13610
|
+
keyword: "required",
|
|
13611
|
+
params: { missingProperty: missing0 },
|
|
13612
|
+
message: "must have required property '" + missing0 + "'"
|
|
13613
|
+
}];
|
|
13614
|
+
return false;
|
|
13615
|
+
} else {
|
|
13616
|
+
if (data.machine !== void 0) {
|
|
13617
|
+
const _errs1 = errors;
|
|
13618
|
+
if (typeof data.machine !== "string") {
|
|
13619
|
+
validate194.errors = [{
|
|
13620
|
+
instancePath: instancePath + "/machine",
|
|
13621
|
+
schemaPath: "#/properties/machine/type",
|
|
13622
|
+
keyword: "type",
|
|
13623
|
+
params: { type: "string" },
|
|
13624
|
+
message: "must be string"
|
|
13625
|
+
}];
|
|
13497
13626
|
return false;
|
|
13498
|
-
} else {
|
|
13499
|
-
errors = _errs2;
|
|
13500
|
-
if (vErrors !== null) {
|
|
13501
|
-
if (_errs2) vErrors.length = _errs2;
|
|
13502
|
-
else vErrors = null;
|
|
13503
|
-
}
|
|
13504
13627
|
}
|
|
13505
13628
|
var valid0 = _errs1 === errors;
|
|
13506
13629
|
} else var valid0 = true;
|
|
13507
13630
|
if (valid0) {
|
|
13508
|
-
if (data.
|
|
13509
|
-
const
|
|
13510
|
-
if (typeof data.
|
|
13631
|
+
if (data.session !== void 0) {
|
|
13632
|
+
const _errs3 = errors;
|
|
13633
|
+
if (typeof data.session !== "string") {
|
|
13511
13634
|
validate194.errors = [{
|
|
13512
|
-
instancePath: instancePath + "/
|
|
13513
|
-
schemaPath: "#/properties/
|
|
13635
|
+
instancePath: instancePath + "/session",
|
|
13636
|
+
schemaPath: "#/properties/session/type",
|
|
13514
13637
|
keyword: "type",
|
|
13515
13638
|
params: { type: "string" },
|
|
13516
13639
|
message: "must be string"
|
|
13517
13640
|
}];
|
|
13518
13641
|
return false;
|
|
13519
13642
|
}
|
|
13520
|
-
var valid0 =
|
|
13643
|
+
var valid0 = _errs3 === errors;
|
|
13521
13644
|
} else var valid0 = true;
|
|
13645
|
+
if (valid0) {
|
|
13646
|
+
if (data.selected !== void 0) {
|
|
13647
|
+
const _errs5 = errors;
|
|
13648
|
+
if (typeof data.selected !== "string") {
|
|
13649
|
+
validate194.errors = [{
|
|
13650
|
+
instancePath: instancePath + "/selected",
|
|
13651
|
+
schemaPath: "#/properties/selected/type",
|
|
13652
|
+
keyword: "type",
|
|
13653
|
+
params: { type: "string" },
|
|
13654
|
+
message: "must be string"
|
|
13655
|
+
}];
|
|
13656
|
+
return false;
|
|
13657
|
+
}
|
|
13658
|
+
var valid0 = _errs5 === errors;
|
|
13659
|
+
} else var valid0 = true;
|
|
13660
|
+
if (valid0) {
|
|
13661
|
+
if (data.reason !== void 0) {
|
|
13662
|
+
const _errs7 = errors;
|
|
13663
|
+
if (typeof data.reason !== "string") {
|
|
13664
|
+
validate194.errors = [{
|
|
13665
|
+
instancePath: instancePath + "/reason",
|
|
13666
|
+
schemaPath: "#/properties/reason/type",
|
|
13667
|
+
keyword: "type",
|
|
13668
|
+
params: { type: "string" },
|
|
13669
|
+
message: "must be string"
|
|
13670
|
+
}];
|
|
13671
|
+
return false;
|
|
13672
|
+
}
|
|
13673
|
+
var valid0 = _errs7 === errors;
|
|
13674
|
+
} else var valid0 = true;
|
|
13675
|
+
if (valid0) {
|
|
13676
|
+
if (data.agent !== void 0) {
|
|
13677
|
+
const _errs9 = errors;
|
|
13678
|
+
if (!validate195(data.agent, {
|
|
13679
|
+
instancePath: instancePath + "/agent",
|
|
13680
|
+
parentData: data,
|
|
13681
|
+
parentDataProperty: "agent",
|
|
13682
|
+
rootData
|
|
13683
|
+
})) {
|
|
13684
|
+
vErrors = vErrors === null ? validate195.errors : vErrors.concat(validate195.errors);
|
|
13685
|
+
errors = vErrors.length;
|
|
13686
|
+
}
|
|
13687
|
+
var valid0 = _errs9 === errors;
|
|
13688
|
+
} else var valid0 = true;
|
|
13689
|
+
if (valid0) {
|
|
13690
|
+
if (data.device !== void 0) {
|
|
13691
|
+
let data5 = data.device;
|
|
13692
|
+
const _errs10 = errors;
|
|
13693
|
+
const _errs11 = errors;
|
|
13694
|
+
let valid1 = false;
|
|
13695
|
+
const _errs12 = errors;
|
|
13696
|
+
if (errors === _errs12) {
|
|
13697
|
+
if (data5 && typeof data5 == "object" && !Array.isArray(data5)) {
|
|
13698
|
+
let missing1;
|
|
13699
|
+
if (data5.name === void 0 && (missing1 = "name") || data5.runtime === void 0 && (missing1 = "runtime")) {
|
|
13700
|
+
const err0 = {
|
|
13701
|
+
instancePath: instancePath + "/device",
|
|
13702
|
+
schemaPath: "#/properties/device/anyOf/0/required",
|
|
13703
|
+
keyword: "required",
|
|
13704
|
+
params: { missingProperty: missing1 },
|
|
13705
|
+
message: "must have required property '" + missing1 + "'"
|
|
13706
|
+
};
|
|
13707
|
+
if (vErrors === null) vErrors = [err0];
|
|
13708
|
+
else vErrors.push(err0);
|
|
13709
|
+
errors++;
|
|
13710
|
+
} else {
|
|
13711
|
+
if (data5.name !== void 0) {
|
|
13712
|
+
const _errs14 = errors;
|
|
13713
|
+
if (typeof data5.name !== "string") {
|
|
13714
|
+
const err1 = {
|
|
13715
|
+
instancePath: instancePath + "/device/name",
|
|
13716
|
+
schemaPath: "#/properties/device/anyOf/0/properties/name/type",
|
|
13717
|
+
keyword: "type",
|
|
13718
|
+
params: { type: "string" },
|
|
13719
|
+
message: "must be string"
|
|
13720
|
+
};
|
|
13721
|
+
if (vErrors === null) vErrors = [err1];
|
|
13722
|
+
else vErrors.push(err1);
|
|
13723
|
+
errors++;
|
|
13724
|
+
}
|
|
13725
|
+
var valid2 = _errs14 === errors;
|
|
13726
|
+
} else var valid2 = true;
|
|
13727
|
+
if (valid2) {
|
|
13728
|
+
if (data5.runtime !== void 0) {
|
|
13729
|
+
const _errs16 = errors;
|
|
13730
|
+
if (typeof data5.runtime !== "string") {
|
|
13731
|
+
const err2 = {
|
|
13732
|
+
instancePath: instancePath + "/device/runtime",
|
|
13733
|
+
schemaPath: "#/properties/device/anyOf/0/properties/runtime/type",
|
|
13734
|
+
keyword: "type",
|
|
13735
|
+
params: { type: "string" },
|
|
13736
|
+
message: "must be string"
|
|
13737
|
+
};
|
|
13738
|
+
if (vErrors === null) vErrors = [err2];
|
|
13739
|
+
else vErrors.push(err2);
|
|
13740
|
+
errors++;
|
|
13741
|
+
}
|
|
13742
|
+
var valid2 = _errs16 === errors;
|
|
13743
|
+
} else var valid2 = true;
|
|
13744
|
+
}
|
|
13745
|
+
}
|
|
13746
|
+
} else {
|
|
13747
|
+
const err3 = {
|
|
13748
|
+
instancePath: instancePath + "/device",
|
|
13749
|
+
schemaPath: "#/properties/device/anyOf/0/type",
|
|
13750
|
+
keyword: "type",
|
|
13751
|
+
params: { type: "object" },
|
|
13752
|
+
message: "must be object"
|
|
13753
|
+
};
|
|
13754
|
+
if (vErrors === null) vErrors = [err3];
|
|
13755
|
+
else vErrors.push(err3);
|
|
13756
|
+
errors++;
|
|
13757
|
+
}
|
|
13758
|
+
}
|
|
13759
|
+
var _valid0 = _errs12 === errors;
|
|
13760
|
+
valid1 = valid1 || _valid0;
|
|
13761
|
+
if (!valid1) {
|
|
13762
|
+
const _errs18 = errors;
|
|
13763
|
+
if (data5 !== null) {
|
|
13764
|
+
const err4 = {
|
|
13765
|
+
instancePath: instancePath + "/device",
|
|
13766
|
+
schemaPath: "#/properties/device/anyOf/1/type",
|
|
13767
|
+
keyword: "type",
|
|
13768
|
+
params: { type: "null" },
|
|
13769
|
+
message: "must be null"
|
|
13770
|
+
};
|
|
13771
|
+
if (vErrors === null) vErrors = [err4];
|
|
13772
|
+
else vErrors.push(err4);
|
|
13773
|
+
errors++;
|
|
13774
|
+
}
|
|
13775
|
+
var _valid0 = _errs18 === errors;
|
|
13776
|
+
valid1 = valid1 || _valid0;
|
|
13777
|
+
}
|
|
13778
|
+
if (!valid1) {
|
|
13779
|
+
const err5 = {
|
|
13780
|
+
instancePath: instancePath + "/device",
|
|
13781
|
+
schemaPath: "#/properties/device/anyOf",
|
|
13782
|
+
keyword: "anyOf",
|
|
13783
|
+
params: {},
|
|
13784
|
+
message: "must match a schema in anyOf"
|
|
13785
|
+
};
|
|
13786
|
+
if (vErrors === null) vErrors = [err5];
|
|
13787
|
+
else vErrors.push(err5);
|
|
13788
|
+
errors++;
|
|
13789
|
+
validate194.errors = vErrors;
|
|
13790
|
+
return false;
|
|
13791
|
+
} else {
|
|
13792
|
+
errors = _errs11;
|
|
13793
|
+
if (vErrors !== null) {
|
|
13794
|
+
if (_errs11) vErrors.length = _errs11;
|
|
13795
|
+
else vErrors = null;
|
|
13796
|
+
}
|
|
13797
|
+
}
|
|
13798
|
+
var valid0 = _errs10 === errors;
|
|
13799
|
+
} else var valid0 = true;
|
|
13800
|
+
if (valid0) {
|
|
13801
|
+
if (data.state !== void 0) {
|
|
13802
|
+
const _errs20 = errors;
|
|
13803
|
+
if (typeof data.state !== "string") {
|
|
13804
|
+
validate194.errors = [{
|
|
13805
|
+
instancePath: instancePath + "/state",
|
|
13806
|
+
schemaPath: "#/properties/state/type",
|
|
13807
|
+
keyword: "type",
|
|
13808
|
+
params: { type: "string" },
|
|
13809
|
+
message: "must be string"
|
|
13810
|
+
}];
|
|
13811
|
+
return false;
|
|
13812
|
+
}
|
|
13813
|
+
var valid0 = _errs20 === errors;
|
|
13814
|
+
} else var valid0 = true;
|
|
13815
|
+
}
|
|
13816
|
+
}
|
|
13817
|
+
}
|
|
13818
|
+
}
|
|
13819
|
+
}
|
|
13522
13820
|
}
|
|
13523
13821
|
}
|
|
13524
13822
|
} else {
|
|
@@ -13535,12 +13833,12 @@ function validate194(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
13535
13833
|
validate194.errors = vErrors;
|
|
13536
13834
|
return errors === 0;
|
|
13537
13835
|
}
|
|
13538
|
-
function
|
|
13836
|
+
function validate198(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
|
|
13539
13837
|
let vErrors = null;
|
|
13540
13838
|
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
13541
13839
|
let missing0;
|
|
13542
13840
|
if (data.bytes === void 0 && (missing0 = "bytes") || data.measuredAt === void 0 && (missing0 = "measuredAt")) {
|
|
13543
|
-
|
|
13841
|
+
validate198.errors = [{
|
|
13544
13842
|
instancePath,
|
|
13545
13843
|
schemaPath: "#/required",
|
|
13546
13844
|
keyword: "required",
|
|
@@ -13551,7 +13849,7 @@ function validate196(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
13551
13849
|
} else {
|
|
13552
13850
|
if (data.bytes !== void 0) {
|
|
13553
13851
|
if (!(typeof data.bytes == "number")) {
|
|
13554
|
-
|
|
13852
|
+
validate198.errors = [{
|
|
13555
13853
|
instancePath: instancePath + "/bytes",
|
|
13556
13854
|
schemaPath: "#/properties/bytes/type",
|
|
13557
13855
|
keyword: "type",
|
|
@@ -13565,7 +13863,7 @@ function validate196(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
13565
13863
|
if (valid0) {
|
|
13566
13864
|
if (data.measuredAt !== void 0) {
|
|
13567
13865
|
if (typeof data.measuredAt !== "string") {
|
|
13568
|
-
|
|
13866
|
+
validate198.errors = [{
|
|
13569
13867
|
instancePath: instancePath + "/measuredAt",
|
|
13570
13868
|
schemaPath: "#/properties/measuredAt/type",
|
|
13571
13869
|
keyword: "type",
|
|
@@ -13579,7 +13877,7 @@ function validate196(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
13579
13877
|
}
|
|
13580
13878
|
}
|
|
13581
13879
|
} else {
|
|
13582
|
-
|
|
13880
|
+
validate198.errors = [{
|
|
13583
13881
|
instancePath,
|
|
13584
13882
|
schemaPath: "#/type",
|
|
13585
13883
|
keyword: "type",
|
|
@@ -13588,15 +13886,15 @@ function validate196(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
13588
13886
|
}];
|
|
13589
13887
|
return false;
|
|
13590
13888
|
}
|
|
13591
|
-
|
|
13889
|
+
validate198.errors = vErrors;
|
|
13592
13890
|
return true;
|
|
13593
13891
|
}
|
|
13594
|
-
function
|
|
13892
|
+
function validate200(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
|
|
13595
13893
|
let vErrors = null;
|
|
13596
13894
|
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
13597
13895
|
let missing0;
|
|
13598
13896
|
if (data.at === void 0 && (missing0 = "at") || data.idleMinutes === void 0 && (missing0 = "idleMinutes")) {
|
|
13599
|
-
|
|
13897
|
+
validate200.errors = [{
|
|
13600
13898
|
instancePath,
|
|
13601
13899
|
schemaPath: "#/required",
|
|
13602
13900
|
keyword: "required",
|
|
@@ -13607,7 +13905,7 @@ function validate198(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
13607
13905
|
} else {
|
|
13608
13906
|
if (data.at !== void 0) {
|
|
13609
13907
|
if (typeof data.at !== "string") {
|
|
13610
|
-
|
|
13908
|
+
validate200.errors = [{
|
|
13611
13909
|
instancePath: instancePath + "/at",
|
|
13612
13910
|
schemaPath: "#/properties/at/type",
|
|
13613
13911
|
keyword: "type",
|
|
@@ -13621,7 +13919,7 @@ function validate198(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
13621
13919
|
if (valid0) {
|
|
13622
13920
|
if (data.idleMinutes !== void 0) {
|
|
13623
13921
|
if (!(typeof data.idleMinutes == "number")) {
|
|
13624
|
-
|
|
13922
|
+
validate200.errors = [{
|
|
13625
13923
|
instancePath: instancePath + "/idleMinutes",
|
|
13626
13924
|
schemaPath: "#/properties/idleMinutes/type",
|
|
13627
13925
|
keyword: "type",
|
|
@@ -13635,7 +13933,7 @@ function validate198(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
13635
13933
|
if (valid0) {
|
|
13636
13934
|
if (data.reason !== void 0) {
|
|
13637
13935
|
if (typeof data.reason !== "string") {
|
|
13638
|
-
|
|
13936
|
+
validate200.errors = [{
|
|
13639
13937
|
instancePath: instancePath + "/reason",
|
|
13640
13938
|
schemaPath: "#/properties/reason/type",
|
|
13641
13939
|
keyword: "type",
|
|
@@ -13650,7 +13948,7 @@ function validate198(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
13650
13948
|
}
|
|
13651
13949
|
}
|
|
13652
13950
|
} else {
|
|
13653
|
-
|
|
13951
|
+
validate200.errors = [{
|
|
13654
13952
|
instancePath,
|
|
13655
13953
|
schemaPath: "#/type",
|
|
13656
13954
|
keyword: "type",
|
|
@@ -13659,7 +13957,7 @@ function validate198(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
13659
13957
|
}];
|
|
13660
13958
|
return false;
|
|
13661
13959
|
}
|
|
13662
|
-
|
|
13960
|
+
validate200.errors = vErrors;
|
|
13663
13961
|
return true;
|
|
13664
13962
|
}
|
|
13665
13963
|
function validate184(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
|
|
@@ -13811,13 +14109,13 @@ function validate184(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
13811
14109
|
if (valid0) {
|
|
13812
14110
|
if (data.disk !== void 0) {
|
|
13813
14111
|
const _errs14 = errors;
|
|
13814
|
-
if (!
|
|
14112
|
+
if (!validate198(data.disk, {
|
|
13815
14113
|
instancePath: instancePath + "/disk",
|
|
13816
14114
|
parentData: data,
|
|
13817
14115
|
parentDataProperty: "disk",
|
|
13818
14116
|
rootData
|
|
13819
14117
|
})) {
|
|
13820
|
-
vErrors = vErrors === null ?
|
|
14118
|
+
vErrors = vErrors === null ? validate198.errors : vErrors.concat(validate198.errors);
|
|
13821
14119
|
errors = vErrors.length;
|
|
13822
14120
|
}
|
|
13823
14121
|
var valid0 = _errs14 === errors;
|
|
@@ -13825,13 +14123,13 @@ function validate184(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
13825
14123
|
if (valid0) {
|
|
13826
14124
|
if (data.idleShutdown !== void 0) {
|
|
13827
14125
|
const _errs15 = errors;
|
|
13828
|
-
if (!
|
|
14126
|
+
if (!validate200(data.idleShutdown, {
|
|
13829
14127
|
instancePath: instancePath + "/idleShutdown",
|
|
13830
14128
|
parentData: data,
|
|
13831
14129
|
parentDataProperty: "idleShutdown",
|
|
13832
14130
|
rootData
|
|
13833
14131
|
})) {
|
|
13834
|
-
vErrors = vErrors === null ?
|
|
14132
|
+
vErrors = vErrors === null ? validate200.errors : vErrors.concat(validate200.errors);
|
|
13835
14133
|
errors = vErrors.length;
|
|
13836
14134
|
}
|
|
13837
14135
|
var valid0 = _errs15 === errors;
|
|
@@ -13861,7 +14159,7 @@ function validate184(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
13861
14159
|
validate184.errors = vErrors;
|
|
13862
14160
|
return errors === 0;
|
|
13863
14161
|
}
|
|
13864
|
-
const
|
|
14162
|
+
const schema109 = {
|
|
13865
14163
|
"type": "object",
|
|
13866
14164
|
"properties": {
|
|
13867
14165
|
"state": { "type": "string" },
|
|
@@ -13880,14 +14178,14 @@ const schema108 = {
|
|
|
13880
14178
|
},
|
|
13881
14179
|
"required": ["owned", "physical"]
|
|
13882
14180
|
};
|
|
13883
|
-
function
|
|
14181
|
+
function validate208(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
|
|
13884
14182
|
let vErrors = null;
|
|
13885
14183
|
let errors = 0;
|
|
13886
14184
|
if (errors === 0) {
|
|
13887
14185
|
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
13888
14186
|
let missing0;
|
|
13889
|
-
if (data.
|
|
13890
|
-
|
|
14187
|
+
if (data.machine === void 0 && (missing0 = "machine") || data.session === void 0 && (missing0 = "session") || data.selected === void 0 && (missing0 = "selected") || data.agent === void 0 && (missing0 = "agent") || data.device === void 0 && (missing0 = "device")) {
|
|
14188
|
+
validate208.errors = [{
|
|
13891
14189
|
instancePath,
|
|
13892
14190
|
schemaPath: "#/required",
|
|
13893
14191
|
keyword: "required",
|
|
@@ -13895,154 +14193,233 @@ function validate206(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
13895
14193
|
message: "must have required property '" + missing0 + "'"
|
|
13896
14194
|
}];
|
|
13897
14195
|
return false;
|
|
13898
|
-
} else {
|
|
13899
|
-
if (data.
|
|
13900
|
-
|
|
13901
|
-
|
|
13902
|
-
|
|
13903
|
-
|
|
13904
|
-
|
|
13905
|
-
|
|
13906
|
-
|
|
13907
|
-
|
|
13908
|
-
|
|
13909
|
-
const err0 = {
|
|
13910
|
-
instancePath: instancePath + "/device",
|
|
13911
|
-
schemaPath: "#/properties/device/anyOf/0/required",
|
|
13912
|
-
keyword: "required",
|
|
13913
|
-
params: { missingProperty: missing1 },
|
|
13914
|
-
message: "must have required property '" + missing1 + "'"
|
|
13915
|
-
};
|
|
13916
|
-
if (vErrors === null) vErrors = [err0];
|
|
13917
|
-
else vErrors.push(err0);
|
|
13918
|
-
errors++;
|
|
13919
|
-
} else {
|
|
13920
|
-
if (data0.name !== void 0) {
|
|
13921
|
-
const _errs5 = errors;
|
|
13922
|
-
if (typeof data0.name !== "string") {
|
|
13923
|
-
const err1 = {
|
|
13924
|
-
instancePath: instancePath + "/device/name",
|
|
13925
|
-
schemaPath: "#/properties/device/anyOf/0/properties/name/type",
|
|
13926
|
-
keyword: "type",
|
|
13927
|
-
params: { type: "string" },
|
|
13928
|
-
message: "must be string"
|
|
13929
|
-
};
|
|
13930
|
-
if (vErrors === null) vErrors = [err1];
|
|
13931
|
-
else vErrors.push(err1);
|
|
13932
|
-
errors++;
|
|
13933
|
-
}
|
|
13934
|
-
var valid2 = _errs5 === errors;
|
|
13935
|
-
} else var valid2 = true;
|
|
13936
|
-
if (valid2) {
|
|
13937
|
-
if (data0.systemImage !== void 0) {
|
|
13938
|
-
const _errs7 = errors;
|
|
13939
|
-
if (typeof data0.systemImage !== "string") {
|
|
13940
|
-
const err2 = {
|
|
13941
|
-
instancePath: instancePath + "/device/systemImage",
|
|
13942
|
-
schemaPath: "#/properties/device/anyOf/0/properties/systemImage/type",
|
|
13943
|
-
keyword: "type",
|
|
13944
|
-
params: { type: "string" },
|
|
13945
|
-
message: "must be string"
|
|
13946
|
-
};
|
|
13947
|
-
if (vErrors === null) vErrors = [err2];
|
|
13948
|
-
else vErrors.push(err2);
|
|
13949
|
-
errors++;
|
|
13950
|
-
}
|
|
13951
|
-
var valid2 = _errs7 === errors;
|
|
13952
|
-
} else var valid2 = true;
|
|
13953
|
-
if (valid2) {
|
|
13954
|
-
if (data0.api !== void 0) {
|
|
13955
|
-
const _errs9 = errors;
|
|
13956
|
-
if (!(typeof data0.api == "number")) {
|
|
13957
|
-
const err3 = {
|
|
13958
|
-
instancePath: instancePath + "/device/api",
|
|
13959
|
-
schemaPath: "#/properties/device/anyOf/0/properties/api/type",
|
|
13960
|
-
keyword: "type",
|
|
13961
|
-
params: { type: "number" },
|
|
13962
|
-
message: "must be number"
|
|
13963
|
-
};
|
|
13964
|
-
if (vErrors === null) vErrors = [err3];
|
|
13965
|
-
else vErrors.push(err3);
|
|
13966
|
-
errors++;
|
|
13967
|
-
}
|
|
13968
|
-
var valid2 = _errs9 === errors;
|
|
13969
|
-
} else var valid2 = true;
|
|
13970
|
-
}
|
|
13971
|
-
}
|
|
13972
|
-
}
|
|
13973
|
-
} else {
|
|
13974
|
-
const err4 = {
|
|
13975
|
-
instancePath: instancePath + "/device",
|
|
13976
|
-
schemaPath: "#/properties/device/anyOf/0/type",
|
|
13977
|
-
keyword: "type",
|
|
13978
|
-
params: { type: "object" },
|
|
13979
|
-
message: "must be object"
|
|
13980
|
-
};
|
|
13981
|
-
if (vErrors === null) vErrors = [err4];
|
|
13982
|
-
else vErrors.push(err4);
|
|
13983
|
-
errors++;
|
|
13984
|
-
}
|
|
13985
|
-
}
|
|
13986
|
-
var _valid0 = _errs3 === errors;
|
|
13987
|
-
valid1 = valid1 || _valid0;
|
|
13988
|
-
if (!valid1) {
|
|
13989
|
-
const _errs11 = errors;
|
|
13990
|
-
if (data0 !== null) {
|
|
13991
|
-
const err5 = {
|
|
13992
|
-
instancePath: instancePath + "/device",
|
|
13993
|
-
schemaPath: "#/properties/device/anyOf/1/type",
|
|
13994
|
-
keyword: "type",
|
|
13995
|
-
params: { type: "null" },
|
|
13996
|
-
message: "must be null"
|
|
13997
|
-
};
|
|
13998
|
-
if (vErrors === null) vErrors = [err5];
|
|
13999
|
-
else vErrors.push(err5);
|
|
14000
|
-
errors++;
|
|
14001
|
-
}
|
|
14002
|
-
var _valid0 = _errs11 === errors;
|
|
14003
|
-
valid1 = valid1 || _valid0;
|
|
14004
|
-
}
|
|
14005
|
-
if (!valid1) {
|
|
14006
|
-
const err6 = {
|
|
14007
|
-
instancePath: instancePath + "/device",
|
|
14008
|
-
schemaPath: "#/properties/device/anyOf",
|
|
14009
|
-
keyword: "anyOf",
|
|
14010
|
-
params: {},
|
|
14011
|
-
message: "must match a schema in anyOf"
|
|
14012
|
-
};
|
|
14013
|
-
if (vErrors === null) vErrors = [err6];
|
|
14014
|
-
else vErrors.push(err6);
|
|
14015
|
-
errors++;
|
|
14016
|
-
validate206.errors = vErrors;
|
|
14196
|
+
} else {
|
|
14197
|
+
if (data.machine !== void 0) {
|
|
14198
|
+
const _errs1 = errors;
|
|
14199
|
+
if (typeof data.machine !== "string") {
|
|
14200
|
+
validate208.errors = [{
|
|
14201
|
+
instancePath: instancePath + "/machine",
|
|
14202
|
+
schemaPath: "#/properties/machine/type",
|
|
14203
|
+
keyword: "type",
|
|
14204
|
+
params: { type: "string" },
|
|
14205
|
+
message: "must be string"
|
|
14206
|
+
}];
|
|
14017
14207
|
return false;
|
|
14018
|
-
} else {
|
|
14019
|
-
errors = _errs2;
|
|
14020
|
-
if (vErrors !== null) {
|
|
14021
|
-
if (_errs2) vErrors.length = _errs2;
|
|
14022
|
-
else vErrors = null;
|
|
14023
|
-
}
|
|
14024
14208
|
}
|
|
14025
14209
|
var valid0 = _errs1 === errors;
|
|
14026
14210
|
} else var valid0 = true;
|
|
14027
14211
|
if (valid0) {
|
|
14028
|
-
if (data.
|
|
14029
|
-
const
|
|
14030
|
-
if (typeof data.
|
|
14031
|
-
|
|
14032
|
-
instancePath: instancePath + "/
|
|
14033
|
-
schemaPath: "#/properties/
|
|
14212
|
+
if (data.session !== void 0) {
|
|
14213
|
+
const _errs3 = errors;
|
|
14214
|
+
if (typeof data.session !== "string") {
|
|
14215
|
+
validate208.errors = [{
|
|
14216
|
+
instancePath: instancePath + "/session",
|
|
14217
|
+
schemaPath: "#/properties/session/type",
|
|
14034
14218
|
keyword: "type",
|
|
14035
14219
|
params: { type: "string" },
|
|
14036
14220
|
message: "must be string"
|
|
14037
14221
|
}];
|
|
14038
14222
|
return false;
|
|
14039
14223
|
}
|
|
14040
|
-
var valid0 =
|
|
14224
|
+
var valid0 = _errs3 === errors;
|
|
14041
14225
|
} else var valid0 = true;
|
|
14226
|
+
if (valid0) {
|
|
14227
|
+
if (data.selected !== void 0) {
|
|
14228
|
+
const _errs5 = errors;
|
|
14229
|
+
if (typeof data.selected !== "string") {
|
|
14230
|
+
validate208.errors = [{
|
|
14231
|
+
instancePath: instancePath + "/selected",
|
|
14232
|
+
schemaPath: "#/properties/selected/type",
|
|
14233
|
+
keyword: "type",
|
|
14234
|
+
params: { type: "string" },
|
|
14235
|
+
message: "must be string"
|
|
14236
|
+
}];
|
|
14237
|
+
return false;
|
|
14238
|
+
}
|
|
14239
|
+
var valid0 = _errs5 === errors;
|
|
14240
|
+
} else var valid0 = true;
|
|
14241
|
+
if (valid0) {
|
|
14242
|
+
if (data.reason !== void 0) {
|
|
14243
|
+
const _errs7 = errors;
|
|
14244
|
+
if (typeof data.reason !== "string") {
|
|
14245
|
+
validate208.errors = [{
|
|
14246
|
+
instancePath: instancePath + "/reason",
|
|
14247
|
+
schemaPath: "#/properties/reason/type",
|
|
14248
|
+
keyword: "type",
|
|
14249
|
+
params: { type: "string" },
|
|
14250
|
+
message: "must be string"
|
|
14251
|
+
}];
|
|
14252
|
+
return false;
|
|
14253
|
+
}
|
|
14254
|
+
var valid0 = _errs7 === errors;
|
|
14255
|
+
} else var valid0 = true;
|
|
14256
|
+
if (valid0) {
|
|
14257
|
+
if (data.agent !== void 0) {
|
|
14258
|
+
const _errs9 = errors;
|
|
14259
|
+
if (!validate195(data.agent, {
|
|
14260
|
+
instancePath: instancePath + "/agent",
|
|
14261
|
+
parentData: data,
|
|
14262
|
+
parentDataProperty: "agent",
|
|
14263
|
+
rootData
|
|
14264
|
+
})) {
|
|
14265
|
+
vErrors = vErrors === null ? validate195.errors : vErrors.concat(validate195.errors);
|
|
14266
|
+
errors = vErrors.length;
|
|
14267
|
+
}
|
|
14268
|
+
var valid0 = _errs9 === errors;
|
|
14269
|
+
} else var valid0 = true;
|
|
14270
|
+
if (valid0) {
|
|
14271
|
+
if (data.device !== void 0) {
|
|
14272
|
+
let data5 = data.device;
|
|
14273
|
+
const _errs10 = errors;
|
|
14274
|
+
const _errs11 = errors;
|
|
14275
|
+
let valid1 = false;
|
|
14276
|
+
const _errs12 = errors;
|
|
14277
|
+
if (errors === _errs12) {
|
|
14278
|
+
if (data5 && typeof data5 == "object" && !Array.isArray(data5)) {
|
|
14279
|
+
let missing1;
|
|
14280
|
+
if (data5.name === void 0 && (missing1 = "name") || data5.systemImage === void 0 && (missing1 = "systemImage") || data5.api === void 0 && (missing1 = "api")) {
|
|
14281
|
+
const err0 = {
|
|
14282
|
+
instancePath: instancePath + "/device",
|
|
14283
|
+
schemaPath: "#/properties/device/anyOf/0/required",
|
|
14284
|
+
keyword: "required",
|
|
14285
|
+
params: { missingProperty: missing1 },
|
|
14286
|
+
message: "must have required property '" + missing1 + "'"
|
|
14287
|
+
};
|
|
14288
|
+
if (vErrors === null) vErrors = [err0];
|
|
14289
|
+
else vErrors.push(err0);
|
|
14290
|
+
errors++;
|
|
14291
|
+
} else {
|
|
14292
|
+
if (data5.name !== void 0) {
|
|
14293
|
+
const _errs14 = errors;
|
|
14294
|
+
if (typeof data5.name !== "string") {
|
|
14295
|
+
const err1 = {
|
|
14296
|
+
instancePath: instancePath + "/device/name",
|
|
14297
|
+
schemaPath: "#/properties/device/anyOf/0/properties/name/type",
|
|
14298
|
+
keyword: "type",
|
|
14299
|
+
params: { type: "string" },
|
|
14300
|
+
message: "must be string"
|
|
14301
|
+
};
|
|
14302
|
+
if (vErrors === null) vErrors = [err1];
|
|
14303
|
+
else vErrors.push(err1);
|
|
14304
|
+
errors++;
|
|
14305
|
+
}
|
|
14306
|
+
var valid2 = _errs14 === errors;
|
|
14307
|
+
} else var valid2 = true;
|
|
14308
|
+
if (valid2) {
|
|
14309
|
+
if (data5.systemImage !== void 0) {
|
|
14310
|
+
const _errs16 = errors;
|
|
14311
|
+
if (typeof data5.systemImage !== "string") {
|
|
14312
|
+
const err2 = {
|
|
14313
|
+
instancePath: instancePath + "/device/systemImage",
|
|
14314
|
+
schemaPath: "#/properties/device/anyOf/0/properties/systemImage/type",
|
|
14315
|
+
keyword: "type",
|
|
14316
|
+
params: { type: "string" },
|
|
14317
|
+
message: "must be string"
|
|
14318
|
+
};
|
|
14319
|
+
if (vErrors === null) vErrors = [err2];
|
|
14320
|
+
else vErrors.push(err2);
|
|
14321
|
+
errors++;
|
|
14322
|
+
}
|
|
14323
|
+
var valid2 = _errs16 === errors;
|
|
14324
|
+
} else var valid2 = true;
|
|
14325
|
+
if (valid2) {
|
|
14326
|
+
if (data5.api !== void 0) {
|
|
14327
|
+
const _errs18 = errors;
|
|
14328
|
+
if (!(typeof data5.api == "number")) {
|
|
14329
|
+
const err3 = {
|
|
14330
|
+
instancePath: instancePath + "/device/api",
|
|
14331
|
+
schemaPath: "#/properties/device/anyOf/0/properties/api/type",
|
|
14332
|
+
keyword: "type",
|
|
14333
|
+
params: { type: "number" },
|
|
14334
|
+
message: "must be number"
|
|
14335
|
+
};
|
|
14336
|
+
if (vErrors === null) vErrors = [err3];
|
|
14337
|
+
else vErrors.push(err3);
|
|
14338
|
+
errors++;
|
|
14339
|
+
}
|
|
14340
|
+
var valid2 = _errs18 === errors;
|
|
14341
|
+
} else var valid2 = true;
|
|
14342
|
+
}
|
|
14343
|
+
}
|
|
14344
|
+
}
|
|
14345
|
+
} else {
|
|
14346
|
+
const err4 = {
|
|
14347
|
+
instancePath: instancePath + "/device",
|
|
14348
|
+
schemaPath: "#/properties/device/anyOf/0/type",
|
|
14349
|
+
keyword: "type",
|
|
14350
|
+
params: { type: "object" },
|
|
14351
|
+
message: "must be object"
|
|
14352
|
+
};
|
|
14353
|
+
if (vErrors === null) vErrors = [err4];
|
|
14354
|
+
else vErrors.push(err4);
|
|
14355
|
+
errors++;
|
|
14356
|
+
}
|
|
14357
|
+
}
|
|
14358
|
+
var _valid0 = _errs12 === errors;
|
|
14359
|
+
valid1 = valid1 || _valid0;
|
|
14360
|
+
if (!valid1) {
|
|
14361
|
+
const _errs20 = errors;
|
|
14362
|
+
if (data5 !== null) {
|
|
14363
|
+
const err5 = {
|
|
14364
|
+
instancePath: instancePath + "/device",
|
|
14365
|
+
schemaPath: "#/properties/device/anyOf/1/type",
|
|
14366
|
+
keyword: "type",
|
|
14367
|
+
params: { type: "null" },
|
|
14368
|
+
message: "must be null"
|
|
14369
|
+
};
|
|
14370
|
+
if (vErrors === null) vErrors = [err5];
|
|
14371
|
+
else vErrors.push(err5);
|
|
14372
|
+
errors++;
|
|
14373
|
+
}
|
|
14374
|
+
var _valid0 = _errs20 === errors;
|
|
14375
|
+
valid1 = valid1 || _valid0;
|
|
14376
|
+
}
|
|
14377
|
+
if (!valid1) {
|
|
14378
|
+
const err6 = {
|
|
14379
|
+
instancePath: instancePath + "/device",
|
|
14380
|
+
schemaPath: "#/properties/device/anyOf",
|
|
14381
|
+
keyword: "anyOf",
|
|
14382
|
+
params: {},
|
|
14383
|
+
message: "must match a schema in anyOf"
|
|
14384
|
+
};
|
|
14385
|
+
if (vErrors === null) vErrors = [err6];
|
|
14386
|
+
else vErrors.push(err6);
|
|
14387
|
+
errors++;
|
|
14388
|
+
validate208.errors = vErrors;
|
|
14389
|
+
return false;
|
|
14390
|
+
} else {
|
|
14391
|
+
errors = _errs11;
|
|
14392
|
+
if (vErrors !== null) {
|
|
14393
|
+
if (_errs11) vErrors.length = _errs11;
|
|
14394
|
+
else vErrors = null;
|
|
14395
|
+
}
|
|
14396
|
+
}
|
|
14397
|
+
var valid0 = _errs10 === errors;
|
|
14398
|
+
} else var valid0 = true;
|
|
14399
|
+
if (valid0) {
|
|
14400
|
+
if (data.state !== void 0) {
|
|
14401
|
+
const _errs22 = errors;
|
|
14402
|
+
if (typeof data.state !== "string") {
|
|
14403
|
+
validate208.errors = [{
|
|
14404
|
+
instancePath: instancePath + "/state",
|
|
14405
|
+
schemaPath: "#/properties/state/type",
|
|
14406
|
+
keyword: "type",
|
|
14407
|
+
params: { type: "string" },
|
|
14408
|
+
message: "must be string"
|
|
14409
|
+
}];
|
|
14410
|
+
return false;
|
|
14411
|
+
}
|
|
14412
|
+
var valid0 = _errs22 === errors;
|
|
14413
|
+
} else var valid0 = true;
|
|
14414
|
+
}
|
|
14415
|
+
}
|
|
14416
|
+
}
|
|
14417
|
+
}
|
|
14418
|
+
}
|
|
14042
14419
|
}
|
|
14043
14420
|
}
|
|
14044
14421
|
} else {
|
|
14045
|
-
|
|
14422
|
+
validate208.errors = [{
|
|
14046
14423
|
instancePath,
|
|
14047
14424
|
schemaPath: "#/type",
|
|
14048
14425
|
keyword: "type",
|
|
@@ -14052,17 +14429,17 @@ function validate206(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
14052
14429
|
return false;
|
|
14053
14430
|
}
|
|
14054
14431
|
}
|
|
14055
|
-
|
|
14432
|
+
validate208.errors = vErrors;
|
|
14056
14433
|
return errors === 0;
|
|
14057
14434
|
}
|
|
14058
|
-
function
|
|
14435
|
+
function validate203(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
|
|
14059
14436
|
let vErrors = null;
|
|
14060
14437
|
let errors = 0;
|
|
14061
14438
|
if (errors === 0) {
|
|
14062
14439
|
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
14063
14440
|
let missing0;
|
|
14064
14441
|
if (data.owned === void 0 && (missing0 = "owned") || data.physical === void 0 && (missing0 = "physical")) {
|
|
14065
|
-
|
|
14442
|
+
validate203.errors = [{
|
|
14066
14443
|
instancePath,
|
|
14067
14444
|
schemaPath: "#/required",
|
|
14068
14445
|
keyword: "required",
|
|
@@ -14074,7 +14451,7 @@ function validate201(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
14074
14451
|
if (data.state !== void 0) {
|
|
14075
14452
|
const _errs1 = errors;
|
|
14076
14453
|
if (typeof data.state !== "string") {
|
|
14077
|
-
|
|
14454
|
+
validate203.errors = [{
|
|
14078
14455
|
instancePath: instancePath + "/state",
|
|
14079
14456
|
schemaPath: "#/properties/state/type",
|
|
14080
14457
|
keyword: "type",
|
|
@@ -14144,13 +14521,13 @@ function validate201(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
14144
14521
|
if (valid0) {
|
|
14145
14522
|
if (data.host !== void 0) {
|
|
14146
14523
|
const _errs7 = errors;
|
|
14147
|
-
if (!
|
|
14524
|
+
if (!validate208(data.host, {
|
|
14148
14525
|
instancePath: instancePath + "/host",
|
|
14149
14526
|
parentData: data,
|
|
14150
14527
|
parentDataProperty: "host",
|
|
14151
14528
|
rootData
|
|
14152
14529
|
})) {
|
|
14153
|
-
vErrors = vErrors === null ?
|
|
14530
|
+
vErrors = vErrors === null ? validate208.errors : vErrors.concat(validate208.errors);
|
|
14154
14531
|
errors = vErrors.length;
|
|
14155
14532
|
}
|
|
14156
14533
|
var valid0 = _errs7 === errors;
|
|
@@ -14159,7 +14536,7 @@ function validate201(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
14159
14536
|
if (data.owned !== void 0) {
|
|
14160
14537
|
const _errs8 = errors;
|
|
14161
14538
|
if (typeof data.owned !== "boolean") {
|
|
14162
|
-
|
|
14539
|
+
validate203.errors = [{
|
|
14163
14540
|
instancePath: instancePath + "/owned",
|
|
14164
14541
|
schemaPath: "#/properties/owned/type",
|
|
14165
14542
|
keyword: "type",
|
|
@@ -14174,7 +14551,7 @@ function validate201(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
14174
14551
|
if (data.physical !== void 0) {
|
|
14175
14552
|
const _errs10 = errors;
|
|
14176
14553
|
if (typeof data.physical !== "boolean") {
|
|
14177
|
-
|
|
14554
|
+
validate203.errors = [{
|
|
14178
14555
|
instancePath: instancePath + "/physical",
|
|
14179
14556
|
schemaPath: "#/properties/physical/type",
|
|
14180
14557
|
keyword: "type",
|
|
@@ -14190,11 +14567,11 @@ function validate201(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
14190
14567
|
let data8 = data.serial;
|
|
14191
14568
|
const _errs12 = errors;
|
|
14192
14569
|
if (typeof data8 !== "string" && data8 !== null) {
|
|
14193
|
-
|
|
14570
|
+
validate203.errors = [{
|
|
14194
14571
|
instancePath: instancePath + "/serial",
|
|
14195
14572
|
schemaPath: "#/properties/serial/type",
|
|
14196
14573
|
keyword: "type",
|
|
14197
|
-
params: { type:
|
|
14574
|
+
params: { type: schema109.properties.serial.type },
|
|
14198
14575
|
message: "must be string,null"
|
|
14199
14576
|
}];
|
|
14200
14577
|
return false;
|
|
@@ -14206,11 +14583,11 @@ function validate201(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
14206
14583
|
let data9 = data.deviceProfile;
|
|
14207
14584
|
const _errs14 = errors;
|
|
14208
14585
|
if (typeof data9 !== "string" && data9 !== null) {
|
|
14209
|
-
|
|
14586
|
+
validate203.errors = [{
|
|
14210
14587
|
instancePath: instancePath + "/deviceProfile",
|
|
14211
14588
|
schemaPath: "#/properties/deviceProfile/type",
|
|
14212
14589
|
keyword: "type",
|
|
14213
|
-
params: { type:
|
|
14590
|
+
params: { type: schema109.properties.deviceProfile.type },
|
|
14214
14591
|
message: "must be string,null"
|
|
14215
14592
|
}];
|
|
14216
14593
|
return false;
|
|
@@ -14220,13 +14597,13 @@ function validate201(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
14220
14597
|
if (valid0) {
|
|
14221
14598
|
if (data.disk !== void 0) {
|
|
14222
14599
|
const _errs16 = errors;
|
|
14223
|
-
if (!
|
|
14600
|
+
if (!validate198(data.disk, {
|
|
14224
14601
|
instancePath: instancePath + "/disk",
|
|
14225
14602
|
parentData: data,
|
|
14226
14603
|
parentDataProperty: "disk",
|
|
14227
14604
|
rootData
|
|
14228
14605
|
})) {
|
|
14229
|
-
vErrors = vErrors === null ?
|
|
14606
|
+
vErrors = vErrors === null ? validate198.errors : vErrors.concat(validate198.errors);
|
|
14230
14607
|
errors = vErrors.length;
|
|
14231
14608
|
}
|
|
14232
14609
|
var valid0 = _errs16 === errors;
|
|
@@ -14234,13 +14611,13 @@ function validate201(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
14234
14611
|
if (valid0) {
|
|
14235
14612
|
if (data.idleShutdown !== void 0) {
|
|
14236
14613
|
const _errs17 = errors;
|
|
14237
|
-
if (!
|
|
14614
|
+
if (!validate200(data.idleShutdown, {
|
|
14238
14615
|
instancePath: instancePath + "/idleShutdown",
|
|
14239
14616
|
parentData: data,
|
|
14240
14617
|
parentDataProperty: "idleShutdown",
|
|
14241
14618
|
rootData
|
|
14242
14619
|
})) {
|
|
14243
|
-
vErrors = vErrors === null ?
|
|
14620
|
+
vErrors = vErrors === null ? validate200.errors : vErrors.concat(validate200.errors);
|
|
14244
14621
|
errors = vErrors.length;
|
|
14245
14622
|
}
|
|
14246
14623
|
var valid0 = _errs17 === errors;
|
|
@@ -14249,7 +14626,7 @@ function validate201(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
14249
14626
|
if (data.name !== void 0) {
|
|
14250
14627
|
const _errs18 = errors;
|
|
14251
14628
|
if (typeof data.name !== "string") {
|
|
14252
|
-
|
|
14629
|
+
validate203.errors = [{
|
|
14253
14630
|
instancePath: instancePath + "/name",
|
|
14254
14631
|
schemaPath: "#/properties/name/type",
|
|
14255
14632
|
keyword: "type",
|
|
@@ -14274,7 +14651,7 @@ function validate201(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
14274
14651
|
}
|
|
14275
14652
|
}
|
|
14276
14653
|
} else {
|
|
14277
|
-
|
|
14654
|
+
validate203.errors = [{
|
|
14278
14655
|
instancePath,
|
|
14279
14656
|
schemaPath: "#/type",
|
|
14280
14657
|
keyword: "type",
|
|
@@ -14284,10 +14661,10 @@ function validate201(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
14284
14661
|
return false;
|
|
14285
14662
|
}
|
|
14286
14663
|
}
|
|
14287
|
-
|
|
14664
|
+
validate203.errors = vErrors;
|
|
14288
14665
|
return errors === 0;
|
|
14289
14666
|
}
|
|
14290
|
-
const
|
|
14667
|
+
const schema111 = {
|
|
14291
14668
|
"type": "object",
|
|
14292
14669
|
"properties": {
|
|
14293
14670
|
"browser": { "type": "string" },
|
|
@@ -14326,14 +14703,14 @@ const schema110 = {
|
|
|
14326
14703
|
"viewport"
|
|
14327
14704
|
]
|
|
14328
14705
|
};
|
|
14329
|
-
function
|
|
14706
|
+
function validate214(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
|
|
14330
14707
|
let vErrors = null;
|
|
14331
14708
|
let errors = 0;
|
|
14332
14709
|
if (errors === 0) {
|
|
14333
14710
|
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
14334
14711
|
let missing0;
|
|
14335
14712
|
if (data.browser === void 0 && (missing0 = "browser") || data.cdpEndpoint === void 0 && (missing0 = "cdpEndpoint") || data.headless === void 0 && (missing0 = "headless") || data.pid === void 0 && (missing0 = "pid") || data.profile === void 0 && (missing0 = "profile") || data.running === void 0 && (missing0 = "running") || data.supervisorPid === void 0 && (missing0 = "supervisorPid") || data.url === void 0 && (missing0 = "url") || data.version === void 0 && (missing0 = "version") || data.viewport === void 0 && (missing0 = "viewport")) {
|
|
14336
|
-
|
|
14713
|
+
validate214.errors = [{
|
|
14337
14714
|
instancePath,
|
|
14338
14715
|
schemaPath: "#/required",
|
|
14339
14716
|
keyword: "required",
|
|
@@ -14345,7 +14722,7 @@ function validate211(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
14345
14722
|
if (data.browser !== void 0) {
|
|
14346
14723
|
const _errs1 = errors;
|
|
14347
14724
|
if (typeof data.browser !== "string") {
|
|
14348
|
-
|
|
14725
|
+
validate214.errors = [{
|
|
14349
14726
|
instancePath: instancePath + "/browser",
|
|
14350
14727
|
schemaPath: "#/properties/browser/type",
|
|
14351
14728
|
keyword: "type",
|
|
@@ -14360,7 +14737,7 @@ function validate211(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
14360
14737
|
if (data.viewport !== void 0) {
|
|
14361
14738
|
const _errs3 = errors;
|
|
14362
14739
|
if (typeof data.viewport !== "string") {
|
|
14363
|
-
|
|
14740
|
+
validate214.errors = [{
|
|
14364
14741
|
instancePath: instancePath + "/viewport",
|
|
14365
14742
|
schemaPath: "#/properties/viewport/type",
|
|
14366
14743
|
keyword: "type",
|
|
@@ -14507,7 +14884,7 @@ function validate211(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
14507
14884
|
if (vErrors === null) vErrors = [err7];
|
|
14508
14885
|
else vErrors.push(err7);
|
|
14509
14886
|
errors++;
|
|
14510
|
-
|
|
14887
|
+
validate214.errors = vErrors;
|
|
14511
14888
|
return false;
|
|
14512
14889
|
} else {
|
|
14513
14890
|
errors = _errs6;
|
|
@@ -14537,11 +14914,11 @@ function validate211(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
14537
14914
|
let data8 = data.version;
|
|
14538
14915
|
const _errs20 = errors;
|
|
14539
14916
|
if (typeof data8 !== "string" && data8 !== null) {
|
|
14540
|
-
|
|
14917
|
+
validate214.errors = [{
|
|
14541
14918
|
instancePath: instancePath + "/version",
|
|
14542
14919
|
schemaPath: "#/properties/version/type",
|
|
14543
14920
|
keyword: "type",
|
|
14544
|
-
params: { type:
|
|
14921
|
+
params: { type: schema111.properties.version.type },
|
|
14545
14922
|
message: "must be string,null"
|
|
14546
14923
|
}];
|
|
14547
14924
|
return false;
|
|
@@ -14552,7 +14929,7 @@ function validate211(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
14552
14929
|
if (data.running !== void 0) {
|
|
14553
14930
|
const _errs22 = errors;
|
|
14554
14931
|
if (typeof data.running !== "boolean") {
|
|
14555
|
-
|
|
14932
|
+
validate214.errors = [{
|
|
14556
14933
|
instancePath: instancePath + "/running",
|
|
14557
14934
|
schemaPath: "#/properties/running/type",
|
|
14558
14935
|
keyword: "type",
|
|
@@ -14568,11 +14945,11 @@ function validate211(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
14568
14945
|
let data10 = data.pid;
|
|
14569
14946
|
const _errs24 = errors;
|
|
14570
14947
|
if (!(typeof data10 == "number") && data10 !== null) {
|
|
14571
|
-
|
|
14948
|
+
validate214.errors = [{
|
|
14572
14949
|
instancePath: instancePath + "/pid",
|
|
14573
14950
|
schemaPath: "#/properties/pid/type",
|
|
14574
14951
|
keyword: "type",
|
|
14575
|
-
params: { type:
|
|
14952
|
+
params: { type: schema111.properties.pid.type },
|
|
14576
14953
|
message: "must be number,null"
|
|
14577
14954
|
}];
|
|
14578
14955
|
return false;
|
|
@@ -14584,11 +14961,11 @@ function validate211(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
14584
14961
|
let data11 = data.supervisorPid;
|
|
14585
14962
|
const _errs26 = errors;
|
|
14586
14963
|
if (!(typeof data11 == "number") && data11 !== null) {
|
|
14587
|
-
|
|
14964
|
+
validate214.errors = [{
|
|
14588
14965
|
instancePath: instancePath + "/supervisorPid",
|
|
14589
14966
|
schemaPath: "#/properties/supervisorPid/type",
|
|
14590
14967
|
keyword: "type",
|
|
14591
|
-
params: { type:
|
|
14968
|
+
params: { type: schema111.properties.supervisorPid.type },
|
|
14592
14969
|
message: "must be number,null"
|
|
14593
14970
|
}];
|
|
14594
14971
|
return false;
|
|
@@ -14599,7 +14976,7 @@ function validate211(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
14599
14976
|
if (data.url !== void 0) {
|
|
14600
14977
|
const _errs28 = errors;
|
|
14601
14978
|
if (typeof data.url !== "string") {
|
|
14602
|
-
|
|
14979
|
+
validate214.errors = [{
|
|
14603
14980
|
instancePath: instancePath + "/url",
|
|
14604
14981
|
schemaPath: "#/properties/url/type",
|
|
14605
14982
|
keyword: "type",
|
|
@@ -14614,7 +14991,7 @@ function validate211(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
14614
14991
|
if (data.headless !== void 0) {
|
|
14615
14992
|
const _errs30 = errors;
|
|
14616
14993
|
if (typeof data.headless !== "boolean") {
|
|
14617
|
-
|
|
14994
|
+
validate214.errors = [{
|
|
14618
14995
|
instancePath: instancePath + "/headless",
|
|
14619
14996
|
schemaPath: "#/properties/headless/type",
|
|
14620
14997
|
keyword: "type",
|
|
@@ -14629,7 +15006,7 @@ function validate211(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
14629
15006
|
if (data.profile !== void 0) {
|
|
14630
15007
|
const _errs32 = errors;
|
|
14631
15008
|
if (typeof data.profile !== "string") {
|
|
14632
|
-
|
|
15009
|
+
validate214.errors = [{
|
|
14633
15010
|
instancePath: instancePath + "/profile",
|
|
14634
15011
|
schemaPath: "#/properties/profile/type",
|
|
14635
15012
|
keyword: "type",
|
|
@@ -14645,11 +15022,11 @@ function validate211(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
14645
15022
|
let data15 = data.cdpEndpoint;
|
|
14646
15023
|
const _errs34 = errors;
|
|
14647
15024
|
if (typeof data15 !== "string" && data15 !== null) {
|
|
14648
|
-
|
|
15025
|
+
validate214.errors = [{
|
|
14649
15026
|
instancePath: instancePath + "/cdpEndpoint",
|
|
14650
15027
|
schemaPath: "#/properties/cdpEndpoint/type",
|
|
14651
15028
|
keyword: "type",
|
|
14652
|
-
params: { type:
|
|
15029
|
+
params: { type: schema111.properties.cdpEndpoint.type },
|
|
14653
15030
|
message: "must be string,null"
|
|
14654
15031
|
}];
|
|
14655
15032
|
return false;
|
|
@@ -14661,11 +15038,11 @@ function validate211(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
14661
15038
|
let data16 = data.targetId;
|
|
14662
15039
|
const _errs36 = errors;
|
|
14663
15040
|
if (typeof data16 !== "string" && data16 !== null) {
|
|
14664
|
-
|
|
15041
|
+
validate214.errors = [{
|
|
14665
15042
|
instancePath: instancePath + "/targetId",
|
|
14666
15043
|
schemaPath: "#/properties/targetId/type",
|
|
14667
15044
|
keyword: "type",
|
|
14668
|
-
params: { type:
|
|
15045
|
+
params: { type: schema111.properties.targetId.type },
|
|
14669
15046
|
message: "must be string,null"
|
|
14670
15047
|
}];
|
|
14671
15048
|
return false;
|
|
@@ -14686,7 +15063,7 @@ function validate211(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
14686
15063
|
}
|
|
14687
15064
|
}
|
|
14688
15065
|
} else {
|
|
14689
|
-
|
|
15066
|
+
validate214.errors = [{
|
|
14690
15067
|
instancePath,
|
|
14691
15068
|
schemaPath: "#/type",
|
|
14692
15069
|
keyword: "type",
|
|
@@ -14696,15 +15073,15 @@ function validate211(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
14696
15073
|
return false;
|
|
14697
15074
|
}
|
|
14698
15075
|
}
|
|
14699
|
-
|
|
15076
|
+
validate214.errors = vErrors;
|
|
14700
15077
|
return errors === 0;
|
|
14701
15078
|
}
|
|
14702
|
-
function
|
|
15079
|
+
function validate219(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
|
|
14703
15080
|
let vErrors = null;
|
|
14704
15081
|
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
14705
15082
|
let missing0;
|
|
14706
15083
|
if (data.bundling === void 0 && (missing0 = "bundling")) {
|
|
14707
|
-
|
|
15084
|
+
validate219.errors = [{
|
|
14708
15085
|
instancePath,
|
|
14709
15086
|
schemaPath: "#/required",
|
|
14710
15087
|
keyword: "required",
|
|
@@ -14715,7 +15092,7 @@ function validate216(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
14715
15092
|
} else {
|
|
14716
15093
|
if (data.platform !== void 0) {
|
|
14717
15094
|
if (typeof data.platform !== "string") {
|
|
14718
|
-
|
|
15095
|
+
validate219.errors = [{
|
|
14719
15096
|
instancePath: instancePath + "/platform",
|
|
14720
15097
|
schemaPath: "#/properties/platform/type",
|
|
14721
15098
|
keyword: "type",
|
|
@@ -14732,7 +15109,7 @@ function validate216(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
14732
15109
|
if (data1 && typeof data1 == "object" && !Array.isArray(data1)) {
|
|
14733
15110
|
let missing1;
|
|
14734
15111
|
if (data1.durationMs === void 0 && (missing1 = "durationMs") || data1.finishedAt === void 0 && (missing1 = "finishedAt") || data1.platform === void 0 && (missing1 = "platform") || data1.status === void 0 && (missing1 = "status")) {
|
|
14735
|
-
|
|
15112
|
+
validate219.errors = [{
|
|
14736
15113
|
instancePath: instancePath + "/last",
|
|
14737
15114
|
schemaPath: "#/properties/last/required",
|
|
14738
15115
|
keyword: "required",
|
|
@@ -14743,7 +15120,7 @@ function validate216(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
14743
15120
|
} else {
|
|
14744
15121
|
if (data1.platform !== void 0) {
|
|
14745
15122
|
if (typeof data1.platform !== "string") {
|
|
14746
|
-
|
|
15123
|
+
validate219.errors = [{
|
|
14747
15124
|
instancePath: instancePath + "/last/platform",
|
|
14748
15125
|
schemaPath: "#/properties/last/properties/platform/type",
|
|
14749
15126
|
keyword: "type",
|
|
@@ -14757,7 +15134,7 @@ function validate216(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
14757
15134
|
if (valid1) {
|
|
14758
15135
|
if (data1.status !== void 0) {
|
|
14759
15136
|
if (typeof data1.status !== "string") {
|
|
14760
|
-
|
|
15137
|
+
validate219.errors = [{
|
|
14761
15138
|
instancePath: instancePath + "/last/status",
|
|
14762
15139
|
schemaPath: "#/properties/last/properties/status/type",
|
|
14763
15140
|
keyword: "type",
|
|
@@ -14771,7 +15148,7 @@ function validate216(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
14771
15148
|
if (valid1) {
|
|
14772
15149
|
if (data1.durationMs !== void 0) {
|
|
14773
15150
|
if (!(typeof data1.durationMs == "number")) {
|
|
14774
|
-
|
|
15151
|
+
validate219.errors = [{
|
|
14775
15152
|
instancePath: instancePath + "/last/durationMs",
|
|
14776
15153
|
schemaPath: "#/properties/last/properties/durationMs/type",
|
|
14777
15154
|
keyword: "type",
|
|
@@ -14785,7 +15162,7 @@ function validate216(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
14785
15162
|
if (valid1) {
|
|
14786
15163
|
if (data1.finishedAt !== void 0) {
|
|
14787
15164
|
if (typeof data1.finishedAt !== "string") {
|
|
14788
|
-
|
|
15165
|
+
validate219.errors = [{
|
|
14789
15166
|
instancePath: instancePath + "/last/finishedAt",
|
|
14790
15167
|
schemaPath: "#/properties/last/properties/finishedAt/type",
|
|
14791
15168
|
keyword: "type",
|
|
@@ -14801,7 +15178,7 @@ function validate216(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
14801
15178
|
}
|
|
14802
15179
|
}
|
|
14803
15180
|
} else {
|
|
14804
|
-
|
|
15181
|
+
validate219.errors = [{
|
|
14805
15182
|
instancePath: instancePath + "/last",
|
|
14806
15183
|
schemaPath: "#/properties/last/type",
|
|
14807
15184
|
keyword: "type",
|
|
@@ -14815,7 +15192,7 @@ function validate216(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
14815
15192
|
if (valid0) {
|
|
14816
15193
|
if (data.bundling !== void 0) {
|
|
14817
15194
|
if (typeof data.bundling !== "boolean") {
|
|
14818
|
-
|
|
15195
|
+
validate219.errors = [{
|
|
14819
15196
|
instancePath: instancePath + "/bundling",
|
|
14820
15197
|
schemaPath: "#/properties/bundling/type",
|
|
14821
15198
|
keyword: "type",
|
|
@@ -14829,7 +15206,7 @@ function validate216(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
14829
15206
|
if (valid0) {
|
|
14830
15207
|
if (data.startedAt !== void 0) {
|
|
14831
15208
|
if (typeof data.startedAt !== "string") {
|
|
14832
|
-
|
|
15209
|
+
validate219.errors = [{
|
|
14833
15210
|
instancePath: instancePath + "/startedAt",
|
|
14834
15211
|
schemaPath: "#/properties/startedAt/type",
|
|
14835
15212
|
keyword: "type",
|
|
@@ -14843,7 +15220,7 @@ function validate216(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
14843
15220
|
if (valid0) {
|
|
14844
15221
|
if (data.percent !== void 0) {
|
|
14845
15222
|
if (!(typeof data.percent == "number")) {
|
|
14846
|
-
|
|
15223
|
+
validate219.errors = [{
|
|
14847
15224
|
instancePath: instancePath + "/percent",
|
|
14848
15225
|
schemaPath: "#/properties/percent/type",
|
|
14849
15226
|
keyword: "type",
|
|
@@ -14860,7 +15237,7 @@ function validate216(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
14860
15237
|
}
|
|
14861
15238
|
}
|
|
14862
15239
|
} else {
|
|
14863
|
-
|
|
15240
|
+
validate219.errors = [{
|
|
14864
15241
|
instancePath,
|
|
14865
15242
|
schemaPath: "#/type",
|
|
14866
15243
|
keyword: "type",
|
|
@@ -14869,10 +15246,10 @@ function validate216(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
14869
15246
|
}];
|
|
14870
15247
|
return false;
|
|
14871
15248
|
}
|
|
14872
|
-
|
|
15249
|
+
validate219.errors = vErrors;
|
|
14873
15250
|
return true;
|
|
14874
15251
|
}
|
|
14875
|
-
const
|
|
15252
|
+
const schema113 = {
|
|
14876
15253
|
"type": "object",
|
|
14877
15254
|
"properties": {
|
|
14878
15255
|
"worktreeBytes": { "type": ["number", "null"] },
|
|
@@ -14887,12 +15264,12 @@ const schema112 = {
|
|
|
14887
15264
|
"measuredAt"
|
|
14888
15265
|
]
|
|
14889
15266
|
};
|
|
14890
|
-
function
|
|
15267
|
+
function validate221(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
|
|
14891
15268
|
let vErrors = null;
|
|
14892
15269
|
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
14893
15270
|
let missing0;
|
|
14894
15271
|
if (data.worktreeBytes === void 0 && (missing0 = "worktreeBytes") || data.nodeModulesBytes === void 0 && (missing0 = "nodeModulesBytes") || data.buildBytes === void 0 && (missing0 = "buildBytes") || data.measuredAt === void 0 && (missing0 = "measuredAt")) {
|
|
14895
|
-
|
|
15272
|
+
validate221.errors = [{
|
|
14896
15273
|
instancePath,
|
|
14897
15274
|
schemaPath: "#/required",
|
|
14898
15275
|
keyword: "required",
|
|
@@ -14904,11 +15281,11 @@ function validate218(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
14904
15281
|
if (data.worktreeBytes !== void 0) {
|
|
14905
15282
|
let data0 = data.worktreeBytes;
|
|
14906
15283
|
if (!(typeof data0 == "number") && data0 !== null) {
|
|
14907
|
-
|
|
15284
|
+
validate221.errors = [{
|
|
14908
15285
|
instancePath: instancePath + "/worktreeBytes",
|
|
14909
15286
|
schemaPath: "#/properties/worktreeBytes/type",
|
|
14910
15287
|
keyword: "type",
|
|
14911
|
-
params: { type:
|
|
15288
|
+
params: { type: schema113.properties.worktreeBytes.type },
|
|
14912
15289
|
message: "must be number,null"
|
|
14913
15290
|
}];
|
|
14914
15291
|
return false;
|
|
@@ -14919,11 +15296,11 @@ function validate218(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
14919
15296
|
if (data.nodeModulesBytes !== void 0) {
|
|
14920
15297
|
let data1 = data.nodeModulesBytes;
|
|
14921
15298
|
if (!(typeof data1 == "number") && data1 !== null) {
|
|
14922
|
-
|
|
15299
|
+
validate221.errors = [{
|
|
14923
15300
|
instancePath: instancePath + "/nodeModulesBytes",
|
|
14924
15301
|
schemaPath: "#/properties/nodeModulesBytes/type",
|
|
14925
15302
|
keyword: "type",
|
|
14926
|
-
params: { type:
|
|
15303
|
+
params: { type: schema113.properties.nodeModulesBytes.type },
|
|
14927
15304
|
message: "must be number,null"
|
|
14928
15305
|
}];
|
|
14929
15306
|
return false;
|
|
@@ -14934,11 +15311,11 @@ function validate218(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
14934
15311
|
if (data.buildBytes !== void 0) {
|
|
14935
15312
|
let data2 = data.buildBytes;
|
|
14936
15313
|
if (!(typeof data2 == "number") && data2 !== null) {
|
|
14937
|
-
|
|
15314
|
+
validate221.errors = [{
|
|
14938
15315
|
instancePath: instancePath + "/buildBytes",
|
|
14939
15316
|
schemaPath: "#/properties/buildBytes/type",
|
|
14940
15317
|
keyword: "type",
|
|
14941
|
-
params: { type:
|
|
15318
|
+
params: { type: schema113.properties.buildBytes.type },
|
|
14942
15319
|
message: "must be number,null"
|
|
14943
15320
|
}];
|
|
14944
15321
|
return false;
|
|
@@ -14948,7 +15325,7 @@ function validate218(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
14948
15325
|
if (valid0) {
|
|
14949
15326
|
if (data.measuredAt !== void 0) {
|
|
14950
15327
|
if (typeof data.measuredAt !== "string") {
|
|
14951
|
-
|
|
15328
|
+
validate221.errors = [{
|
|
14952
15329
|
instancePath: instancePath + "/measuredAt",
|
|
14953
15330
|
schemaPath: "#/properties/measuredAt/type",
|
|
14954
15331
|
keyword: "type",
|
|
@@ -14964,7 +15341,7 @@ function validate218(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
14964
15341
|
}
|
|
14965
15342
|
}
|
|
14966
15343
|
} else {
|
|
14967
|
-
|
|
15344
|
+
validate221.errors = [{
|
|
14968
15345
|
instancePath,
|
|
14969
15346
|
schemaPath: "#/type",
|
|
14970
15347
|
keyword: "type",
|
|
@@ -14973,7 +15350,7 @@ function validate218(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
14973
15350
|
}];
|
|
14974
15351
|
return false;
|
|
14975
15352
|
}
|
|
14976
|
-
|
|
15353
|
+
validate221.errors = vErrors;
|
|
14977
15354
|
return true;
|
|
14978
15355
|
}
|
|
14979
15356
|
function validate154(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
|
|
@@ -15531,13 +15908,13 @@ function validate154(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
15531
15908
|
const _errs54 = errors;
|
|
15532
15909
|
let valid13 = false;
|
|
15533
15910
|
const _errs55 = errors;
|
|
15534
|
-
if (!
|
|
15911
|
+
if (!validate203(data23, {
|
|
15535
15912
|
instancePath: instancePath + "/android",
|
|
15536
15913
|
parentData: data,
|
|
15537
15914
|
parentDataProperty: "android",
|
|
15538
15915
|
rootData
|
|
15539
15916
|
})) {
|
|
15540
|
-
vErrors = vErrors === null ?
|
|
15917
|
+
vErrors = vErrors === null ? validate203.errors : vErrors.concat(validate203.errors);
|
|
15541
15918
|
errors = vErrors.length;
|
|
15542
15919
|
}
|
|
15543
15920
|
var _valid4 = _errs55 === errors;
|
|
@@ -15603,13 +15980,13 @@ function validate154(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
15603
15980
|
const _errs61 = errors;
|
|
15604
15981
|
let valid14 = false;
|
|
15605
15982
|
const _errs62 = errors;
|
|
15606
|
-
if (!
|
|
15983
|
+
if (!validate214(data25, {
|
|
15607
15984
|
instancePath: instancePath + "/web",
|
|
15608
15985
|
parentData: data,
|
|
15609
15986
|
parentDataProperty: "web",
|
|
15610
15987
|
rootData
|
|
15611
15988
|
})) {
|
|
15612
|
-
vErrors = vErrors === null ?
|
|
15989
|
+
vErrors = vErrors === null ? validate214.errors : vErrors.concat(validate214.errors);
|
|
15613
15990
|
errors = vErrors.length;
|
|
15614
15991
|
}
|
|
15615
15992
|
var _valid5 = _errs62 === errors;
|
|
@@ -15754,13 +16131,13 @@ function validate154(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
15754
16131
|
const _errs77 = errors;
|
|
15755
16132
|
let valid18 = false;
|
|
15756
16133
|
const _errs78 = errors;
|
|
15757
|
-
if (!
|
|
16134
|
+
if (!validate203(data30, {
|
|
15758
16135
|
instancePath: instancePath + "/slots/" + i6 + "/android",
|
|
15759
16136
|
parentData: data27,
|
|
15760
16137
|
parentDataProperty: "android",
|
|
15761
16138
|
rootData
|
|
15762
16139
|
})) {
|
|
15763
|
-
vErrors = vErrors === null ?
|
|
16140
|
+
vErrors = vErrors === null ? validate203.errors : vErrors.concat(validate203.errors);
|
|
15764
16141
|
errors = vErrors.length;
|
|
15765
16142
|
}
|
|
15766
16143
|
var _valid7 = _errs78 === errors;
|
|
@@ -15995,13 +16372,13 @@ function validate154(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
15995
16372
|
if (valid20) {
|
|
15996
16373
|
if (data31.bundle !== void 0) {
|
|
15997
16374
|
const _errs97 = errors;
|
|
15998
|
-
if (!
|
|
16375
|
+
if (!validate219(data31.bundle, {
|
|
15999
16376
|
instancePath: instancePath + "/metro/bundle",
|
|
16000
16377
|
parentData: data31,
|
|
16001
16378
|
parentDataProperty: "bundle",
|
|
16002
16379
|
rootData
|
|
16003
16380
|
})) {
|
|
16004
|
-
vErrors = vErrors === null ?
|
|
16381
|
+
vErrors = vErrors === null ? validate219.errors : vErrors.concat(validate219.errors);
|
|
16005
16382
|
errors = vErrors.length;
|
|
16006
16383
|
}
|
|
16007
16384
|
var valid20 = _errs97 === errors;
|
|
@@ -16793,13 +17170,13 @@ function validate154(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
16793
17170
|
if (valid0) {
|
|
16794
17171
|
if (data.disk !== void 0) {
|
|
16795
17172
|
const _errs172 = errors;
|
|
16796
|
-
if (!
|
|
17173
|
+
if (!validate221(data.disk, {
|
|
16797
17174
|
instancePath: instancePath + "/disk",
|
|
16798
17175
|
parentData: data,
|
|
16799
17176
|
parentDataProperty: "disk",
|
|
16800
17177
|
rootData
|
|
16801
17178
|
})) {
|
|
16802
|
-
vErrors = vErrors === null ?
|
|
17179
|
+
vErrors = vErrors === null ? validate221.errors : vErrors.concat(validate221.errors);
|
|
16803
17180
|
errors = vErrors.length;
|
|
16804
17181
|
}
|
|
16805
17182
|
var valid0 = _errs172 === errors;
|
|
@@ -16850,7 +17227,7 @@ function validate154(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
16850
17227
|
validate154.errors = vErrors;
|
|
16851
17228
|
return errors === 0;
|
|
16852
17229
|
}
|
|
16853
|
-
const
|
|
17230
|
+
const schema115 = {
|
|
16854
17231
|
"type": "object",
|
|
16855
17232
|
"properties": {
|
|
16856
17233
|
"kind": { "$ref": "#/definitions/PhoneMachineOwnerKind" },
|
|
@@ -16875,10 +17252,10 @@ const schema114 = {
|
|
|
16875
17252
|
"workspace"
|
|
16876
17253
|
]
|
|
16877
17254
|
};
|
|
16878
|
-
function
|
|
17255
|
+
function validate226(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
|
|
16879
17256
|
let vErrors = null;
|
|
16880
17257
|
if (typeof data !== "string") {
|
|
16881
|
-
|
|
17258
|
+
validate226.errors = [{
|
|
16882
17259
|
instancePath,
|
|
16883
17260
|
schemaPath: "#/type",
|
|
16884
17261
|
keyword: "type",
|
|
@@ -16887,17 +17264,17 @@ function validate223(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
16887
17264
|
}];
|
|
16888
17265
|
return false;
|
|
16889
17266
|
}
|
|
16890
|
-
|
|
17267
|
+
validate226.errors = vErrors;
|
|
16891
17268
|
return true;
|
|
16892
17269
|
}
|
|
16893
|
-
function
|
|
17270
|
+
function validate225(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
|
|
16894
17271
|
let vErrors = null;
|
|
16895
17272
|
let errors = 0;
|
|
16896
17273
|
if (errors === 0) {
|
|
16897
17274
|
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
16898
17275
|
let missing0;
|
|
16899
17276
|
if (data.cpuPercent === void 0 && (missing0 = "cpuPercent") || data.id === void 0 && (missing0 = "id") || data.kind === void 0 && (missing0 = "kind") || data.name === void 0 && (missing0 = "name") || data.owned === void 0 && (missing0 = "owned") || data.processes === void 0 && (missing0 = "processes") || data.residentMb === void 0 && (missing0 = "residentMb") || data.workspace === void 0 && (missing0 = "workspace")) {
|
|
16900
|
-
|
|
17277
|
+
validate225.errors = [{
|
|
16901
17278
|
instancePath,
|
|
16902
17279
|
schemaPath: "#/required",
|
|
16903
17280
|
keyword: "required",
|
|
@@ -16908,13 +17285,13 @@ function validate222(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
16908
17285
|
} else {
|
|
16909
17286
|
if (data.kind !== void 0) {
|
|
16910
17287
|
const _errs1 = errors;
|
|
16911
|
-
if (!
|
|
17288
|
+
if (!validate226(data.kind, {
|
|
16912
17289
|
instancePath: instancePath + "/kind",
|
|
16913
17290
|
parentData: data,
|
|
16914
17291
|
parentDataProperty: "kind",
|
|
16915
17292
|
rootData
|
|
16916
17293
|
})) {
|
|
16917
|
-
vErrors = vErrors === null ?
|
|
17294
|
+
vErrors = vErrors === null ? validate226.errors : vErrors.concat(validate226.errors);
|
|
16918
17295
|
errors = vErrors.length;
|
|
16919
17296
|
}
|
|
16920
17297
|
var valid0 = _errs1 === errors;
|
|
@@ -16923,7 +17300,7 @@ function validate222(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
16923
17300
|
if (data.name !== void 0) {
|
|
16924
17301
|
const _errs2 = errors;
|
|
16925
17302
|
if (typeof data.name !== "string") {
|
|
16926
|
-
|
|
17303
|
+
validate225.errors = [{
|
|
16927
17304
|
instancePath: instancePath + "/name",
|
|
16928
17305
|
schemaPath: "#/properties/name/type",
|
|
16929
17306
|
keyword: "type",
|
|
@@ -16939,11 +17316,11 @@ function validate222(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
16939
17316
|
let data2 = data.workspace;
|
|
16940
17317
|
const _errs4 = errors;
|
|
16941
17318
|
if (typeof data2 !== "string" && data2 !== null) {
|
|
16942
|
-
|
|
17319
|
+
validate225.errors = [{
|
|
16943
17320
|
instancePath: instancePath + "/workspace",
|
|
16944
17321
|
schemaPath: "#/properties/workspace/type",
|
|
16945
17322
|
keyword: "type",
|
|
16946
|
-
params: { type:
|
|
17323
|
+
params: { type: schema115.properties.workspace.type },
|
|
16947
17324
|
message: "must be string,null"
|
|
16948
17325
|
}];
|
|
16949
17326
|
return false;
|
|
@@ -16954,7 +17331,7 @@ function validate222(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
16954
17331
|
if (data.slot !== void 0) {
|
|
16955
17332
|
const _errs6 = errors;
|
|
16956
17333
|
if (typeof data.slot !== "string") {
|
|
16957
|
-
|
|
17334
|
+
validate225.errors = [{
|
|
16958
17335
|
instancePath: instancePath + "/slot",
|
|
16959
17336
|
schemaPath: "#/properties/slot/type",
|
|
16960
17337
|
keyword: "type",
|
|
@@ -16970,11 +17347,11 @@ function validate222(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
16970
17347
|
let data4 = data.id;
|
|
16971
17348
|
const _errs8 = errors;
|
|
16972
17349
|
if (typeof data4 !== "string" && data4 !== null) {
|
|
16973
|
-
|
|
17350
|
+
validate225.errors = [{
|
|
16974
17351
|
instancePath: instancePath + "/id",
|
|
16975
17352
|
schemaPath: "#/properties/id/type",
|
|
16976
17353
|
keyword: "type",
|
|
16977
|
-
params: { type:
|
|
17354
|
+
params: { type: schema115.properties.id.type },
|
|
16978
17355
|
message: "must be string,null"
|
|
16979
17356
|
}];
|
|
16980
17357
|
return false;
|
|
@@ -16985,7 +17362,7 @@ function validate222(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
16985
17362
|
if (data.owned !== void 0) {
|
|
16986
17363
|
const _errs10 = errors;
|
|
16987
17364
|
if (typeof data.owned !== "boolean") {
|
|
16988
|
-
|
|
17365
|
+
validate225.errors = [{
|
|
16989
17366
|
instancePath: instancePath + "/owned",
|
|
16990
17367
|
schemaPath: "#/properties/owned/type",
|
|
16991
17368
|
keyword: "type",
|
|
@@ -17000,7 +17377,7 @@ function validate222(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
17000
17377
|
if (data.cpuPercent !== void 0) {
|
|
17001
17378
|
const _errs12 = errors;
|
|
17002
17379
|
if (!(typeof data.cpuPercent == "number")) {
|
|
17003
|
-
|
|
17380
|
+
validate225.errors = [{
|
|
17004
17381
|
instancePath: instancePath + "/cpuPercent",
|
|
17005
17382
|
schemaPath: "#/properties/cpuPercent/type",
|
|
17006
17383
|
keyword: "type",
|
|
@@ -17015,7 +17392,7 @@ function validate222(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
17015
17392
|
if (data.residentMb !== void 0) {
|
|
17016
17393
|
const _errs14 = errors;
|
|
17017
17394
|
if (!(typeof data.residentMb == "number")) {
|
|
17018
|
-
|
|
17395
|
+
validate225.errors = [{
|
|
17019
17396
|
instancePath: instancePath + "/residentMb",
|
|
17020
17397
|
schemaPath: "#/properties/residentMb/type",
|
|
17021
17398
|
keyword: "type",
|
|
@@ -17030,7 +17407,7 @@ function validate222(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
17030
17407
|
if (data.processes !== void 0) {
|
|
17031
17408
|
const _errs16 = errors;
|
|
17032
17409
|
if (!(typeof data.processes == "number")) {
|
|
17033
|
-
|
|
17410
|
+
validate225.errors = [{
|
|
17034
17411
|
instancePath: instancePath + "/processes",
|
|
17035
17412
|
schemaPath: "#/properties/processes/type",
|
|
17036
17413
|
keyword: "type",
|
|
@@ -17045,7 +17422,7 @@ function validate222(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
17045
17422
|
if (data.memoryMb !== void 0) {
|
|
17046
17423
|
const _errs18 = errors;
|
|
17047
17424
|
if (!(typeof data.memoryMb == "number")) {
|
|
17048
|
-
|
|
17425
|
+
validate225.errors = [{
|
|
17049
17426
|
instancePath: instancePath + "/memoryMb",
|
|
17050
17427
|
schemaPath: "#/properties/memoryMb/type",
|
|
17051
17428
|
keyword: "type",
|
|
@@ -17067,7 +17444,7 @@ function validate222(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
17067
17444
|
}
|
|
17068
17445
|
}
|
|
17069
17446
|
} else {
|
|
17070
|
-
|
|
17447
|
+
validate225.errors = [{
|
|
17071
17448
|
instancePath,
|
|
17072
17449
|
schemaPath: "#/type",
|
|
17073
17450
|
keyword: "type",
|
|
@@ -17077,17 +17454,17 @@ function validate222(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
17077
17454
|
return false;
|
|
17078
17455
|
}
|
|
17079
17456
|
}
|
|
17080
|
-
|
|
17457
|
+
validate225.errors = vErrors;
|
|
17081
17458
|
return errors === 0;
|
|
17082
17459
|
}
|
|
17083
|
-
function
|
|
17460
|
+
function validate224(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
|
|
17084
17461
|
let vErrors = null;
|
|
17085
17462
|
let errors = 0;
|
|
17086
17463
|
if (errors === 0) {
|
|
17087
17464
|
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
17088
17465
|
let missing0;
|
|
17089
17466
|
if (data.owners === void 0 && (missing0 = "owners")) {
|
|
17090
|
-
|
|
17467
|
+
validate224.errors = [{
|
|
17091
17468
|
instancePath,
|
|
17092
17469
|
schemaPath: "#/required",
|
|
17093
17470
|
keyword: "required",
|
|
@@ -17099,7 +17476,7 @@ function validate221(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
17099
17476
|
if (data.memorySource !== void 0) {
|
|
17100
17477
|
const _errs1 = errors;
|
|
17101
17478
|
if (typeof data.memorySource !== "string") {
|
|
17102
|
-
|
|
17479
|
+
validate224.errors = [{
|
|
17103
17480
|
instancePath: instancePath + "/memorySource",
|
|
17104
17481
|
schemaPath: "#/properties/memorySource/type",
|
|
17105
17482
|
keyword: "type",
|
|
@@ -17119,19 +17496,19 @@ function validate221(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
17119
17496
|
const len0 = data1.length;
|
|
17120
17497
|
for (let i0 = 0; i0 < len0; i0++) {
|
|
17121
17498
|
const _errs5 = errors;
|
|
17122
|
-
if (!
|
|
17499
|
+
if (!validate225(data1[i0], {
|
|
17123
17500
|
instancePath: instancePath + "/owners/" + i0,
|
|
17124
17501
|
parentData: data1,
|
|
17125
17502
|
parentDataProperty: i0,
|
|
17126
17503
|
rootData
|
|
17127
17504
|
})) {
|
|
17128
|
-
vErrors = vErrors === null ?
|
|
17505
|
+
vErrors = vErrors === null ? validate225.errors : vErrors.concat(validate225.errors);
|
|
17129
17506
|
errors = vErrors.length;
|
|
17130
17507
|
}
|
|
17131
17508
|
if (!(_errs5 === errors)) break;
|
|
17132
17509
|
}
|
|
17133
17510
|
} else {
|
|
17134
|
-
|
|
17511
|
+
validate224.errors = [{
|
|
17135
17512
|
instancePath: instancePath + "/owners",
|
|
17136
17513
|
schemaPath: "#/properties/owners/type",
|
|
17137
17514
|
keyword: "type",
|
|
@@ -17146,7 +17523,7 @@ function validate221(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
17146
17523
|
}
|
|
17147
17524
|
}
|
|
17148
17525
|
} else {
|
|
17149
|
-
|
|
17526
|
+
validate224.errors = [{
|
|
17150
17527
|
instancePath,
|
|
17151
17528
|
schemaPath: "#/type",
|
|
17152
17529
|
keyword: "type",
|
|
@@ -17156,15 +17533,15 @@ function validate221(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
17156
17533
|
return false;
|
|
17157
17534
|
}
|
|
17158
17535
|
}
|
|
17159
|
-
|
|
17536
|
+
validate224.errors = vErrors;
|
|
17160
17537
|
return errors === 0;
|
|
17161
17538
|
}
|
|
17162
|
-
function
|
|
17539
|
+
function validate230(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
|
|
17163
17540
|
let vErrors = null;
|
|
17164
17541
|
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
17165
17542
|
let missing0;
|
|
17166
17543
|
if (data.count === void 0 && (missing0 = "count") || data.bytes === void 0 && (missing0 = "bytes") || data.byKind === void 0 && (missing0 = "byKind")) {
|
|
17167
|
-
|
|
17544
|
+
validate230.errors = [{
|
|
17168
17545
|
instancePath,
|
|
17169
17546
|
schemaPath: "#/required",
|
|
17170
17547
|
keyword: "required",
|
|
@@ -17175,7 +17552,7 @@ function validate227(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
17175
17552
|
} else {
|
|
17176
17553
|
if (data.count !== void 0) {
|
|
17177
17554
|
if (!(typeof data.count == "number")) {
|
|
17178
|
-
|
|
17555
|
+
validate230.errors = [{
|
|
17179
17556
|
instancePath: instancePath + "/count",
|
|
17180
17557
|
schemaPath: "#/properties/count/type",
|
|
17181
17558
|
keyword: "type",
|
|
@@ -17189,7 +17566,7 @@ function validate227(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
17189
17566
|
if (valid0) {
|
|
17190
17567
|
if (data.bytes !== void 0) {
|
|
17191
17568
|
if (!(typeof data.bytes == "number")) {
|
|
17192
|
-
|
|
17569
|
+
validate230.errors = [{
|
|
17193
17570
|
instancePath: instancePath + "/bytes",
|
|
17194
17571
|
schemaPath: "#/properties/bytes/type",
|
|
17195
17572
|
keyword: "type",
|
|
@@ -17206,7 +17583,7 @@ function validate227(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
17206
17583
|
if (data2 && typeof data2 == "object" && !Array.isArray(data2)) {
|
|
17207
17584
|
let missing1;
|
|
17208
17585
|
if (data2.logs === void 0 && (missing1 = "logs") || data2.recordings === void 0 && (missing1 = "recordings") || data2.agentActions === void 0 && (missing1 = "agentActions") || data2.record === void 0 && (missing1 = "record")) {
|
|
17209
|
-
|
|
17586
|
+
validate230.errors = [{
|
|
17210
17587
|
instancePath: instancePath + "/byKind",
|
|
17211
17588
|
schemaPath: "#/properties/byKind/required",
|
|
17212
17589
|
keyword: "required",
|
|
@@ -17217,7 +17594,7 @@ function validate227(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
17217
17594
|
} else {
|
|
17218
17595
|
if (data2.logs !== void 0) {
|
|
17219
17596
|
if (!(typeof data2.logs == "number")) {
|
|
17220
|
-
|
|
17597
|
+
validate230.errors = [{
|
|
17221
17598
|
instancePath: instancePath + "/byKind/logs",
|
|
17222
17599
|
schemaPath: "#/properties/byKind/properties/logs/type",
|
|
17223
17600
|
keyword: "type",
|
|
@@ -17231,7 +17608,7 @@ function validate227(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
17231
17608
|
if (valid1) {
|
|
17232
17609
|
if (data2.recordings !== void 0) {
|
|
17233
17610
|
if (!(typeof data2.recordings == "number")) {
|
|
17234
|
-
|
|
17611
|
+
validate230.errors = [{
|
|
17235
17612
|
instancePath: instancePath + "/byKind/recordings",
|
|
17236
17613
|
schemaPath: "#/properties/byKind/properties/recordings/type",
|
|
17237
17614
|
keyword: "type",
|
|
@@ -17245,7 +17622,7 @@ function validate227(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
17245
17622
|
if (valid1) {
|
|
17246
17623
|
if (data2.agentActions !== void 0) {
|
|
17247
17624
|
if (!(typeof data2.agentActions == "number")) {
|
|
17248
|
-
|
|
17625
|
+
validate230.errors = [{
|
|
17249
17626
|
instancePath: instancePath + "/byKind/agentActions",
|
|
17250
17627
|
schemaPath: "#/properties/byKind/properties/agentActions/type",
|
|
17251
17628
|
keyword: "type",
|
|
@@ -17259,7 +17636,7 @@ function validate227(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
17259
17636
|
if (valid1) {
|
|
17260
17637
|
if (data2.record !== void 0) {
|
|
17261
17638
|
if (!(typeof data2.record == "number")) {
|
|
17262
|
-
|
|
17639
|
+
validate230.errors = [{
|
|
17263
17640
|
instancePath: instancePath + "/byKind/record",
|
|
17264
17641
|
schemaPath: "#/properties/byKind/properties/record/type",
|
|
17265
17642
|
keyword: "type",
|
|
@@ -17275,7 +17652,7 @@ function validate227(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
17275
17652
|
}
|
|
17276
17653
|
}
|
|
17277
17654
|
} else {
|
|
17278
|
-
|
|
17655
|
+
validate230.errors = [{
|
|
17279
17656
|
instancePath: instancePath + "/byKind",
|
|
17280
17657
|
schemaPath: "#/properties/byKind/type",
|
|
17281
17658
|
keyword: "type",
|
|
@@ -17290,7 +17667,7 @@ function validate227(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
17290
17667
|
}
|
|
17291
17668
|
}
|
|
17292
17669
|
} else {
|
|
17293
|
-
|
|
17670
|
+
validate230.errors = [{
|
|
17294
17671
|
instancePath,
|
|
17295
17672
|
schemaPath: "#/type",
|
|
17296
17673
|
keyword: "type",
|
|
@@ -17299,15 +17676,15 @@ function validate227(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
17299
17676
|
}];
|
|
17300
17677
|
return false;
|
|
17301
17678
|
}
|
|
17302
|
-
|
|
17679
|
+
validate230.errors = vErrors;
|
|
17303
17680
|
return true;
|
|
17304
17681
|
}
|
|
17305
|
-
function
|
|
17682
|
+
function validate232(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
|
|
17306
17683
|
let vErrors = null;
|
|
17307
17684
|
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
17308
17685
|
let missing0;
|
|
17309
17686
|
if (data.liveCount === void 0 && (missing0 = "liveCount") || data.committedMb === void 0 && (missing0 = "committedMb") || data.totalMemoryMb === void 0 && (missing0 = "totalMemoryMb") || data.overCapacity === void 0 && (missing0 = "overCapacity")) {
|
|
17310
|
-
|
|
17687
|
+
validate232.errors = [{
|
|
17311
17688
|
instancePath,
|
|
17312
17689
|
schemaPath: "#/required",
|
|
17313
17690
|
keyword: "required",
|
|
@@ -17318,7 +17695,7 @@ function validate229(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
17318
17695
|
} else {
|
|
17319
17696
|
if (data.liveCount !== void 0) {
|
|
17320
17697
|
if (!(typeof data.liveCount == "number")) {
|
|
17321
|
-
|
|
17698
|
+
validate232.errors = [{
|
|
17322
17699
|
instancePath: instancePath + "/liveCount",
|
|
17323
17700
|
schemaPath: "#/properties/liveCount/type",
|
|
17324
17701
|
keyword: "type",
|
|
@@ -17332,7 +17709,7 @@ function validate229(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
17332
17709
|
if (valid0) {
|
|
17333
17710
|
if (data.committedMb !== void 0) {
|
|
17334
17711
|
if (!(typeof data.committedMb == "number")) {
|
|
17335
|
-
|
|
17712
|
+
validate232.errors = [{
|
|
17336
17713
|
instancePath: instancePath + "/committedMb",
|
|
17337
17714
|
schemaPath: "#/properties/committedMb/type",
|
|
17338
17715
|
keyword: "type",
|
|
@@ -17346,7 +17723,7 @@ function validate229(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
17346
17723
|
if (valid0) {
|
|
17347
17724
|
if (data.totalMemoryMb !== void 0) {
|
|
17348
17725
|
if (!(typeof data.totalMemoryMb == "number")) {
|
|
17349
|
-
|
|
17726
|
+
validate232.errors = [{
|
|
17350
17727
|
instancePath: instancePath + "/totalMemoryMb",
|
|
17351
17728
|
schemaPath: "#/properties/totalMemoryMb/type",
|
|
17352
17729
|
keyword: "type",
|
|
@@ -17360,7 +17737,7 @@ function validate229(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
17360
17737
|
if (valid0) {
|
|
17361
17738
|
if (data.overCapacity !== void 0) {
|
|
17362
17739
|
if (typeof data.overCapacity !== "boolean") {
|
|
17363
|
-
|
|
17740
|
+
validate232.errors = [{
|
|
17364
17741
|
instancePath: instancePath + "/overCapacity",
|
|
17365
17742
|
schemaPath: "#/properties/overCapacity/type",
|
|
17366
17743
|
keyword: "type",
|
|
@@ -17376,7 +17753,7 @@ function validate229(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
17376
17753
|
}
|
|
17377
17754
|
}
|
|
17378
17755
|
} else {
|
|
17379
|
-
|
|
17756
|
+
validate232.errors = [{
|
|
17380
17757
|
instancePath,
|
|
17381
17758
|
schemaPath: "#/type",
|
|
17382
17759
|
keyword: "type",
|
|
@@ -17385,10 +17762,10 @@ function validate229(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
17385
17762
|
}];
|
|
17386
17763
|
return false;
|
|
17387
17764
|
}
|
|
17388
|
-
|
|
17765
|
+
validate232.errors = vErrors;
|
|
17389
17766
|
return true;
|
|
17390
17767
|
}
|
|
17391
|
-
const
|
|
17768
|
+
const schema119 = {
|
|
17392
17769
|
"type": "object",
|
|
17393
17770
|
"properties": {
|
|
17394
17771
|
"slot": { "type": "string" },
|
|
@@ -17416,12 +17793,12 @@ const schema118 = {
|
|
|
17416
17793
|
"parsed"
|
|
17417
17794
|
]
|
|
17418
17795
|
};
|
|
17419
|
-
function
|
|
17796
|
+
function validate234(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
|
|
17420
17797
|
let vErrors = null;
|
|
17421
17798
|
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
17422
17799
|
let missing0;
|
|
17423
17800
|
if (data.path === void 0 && (missing0 = "path") || data.platform === void 0 && (missing0 = "platform") || data.id === void 0 && (missing0 = "id") || data.deviceName === void 0 && (missing0 = "deviceName") || data.holder === void 0 && (missing0 = "holder") || data.grantedAt === void 0 && (missing0 = "grantedAt") || data.expiresAt === void 0 && (missing0 = "expiresAt") || data.mine === void 0 && (missing0 = "mine") || data.expired === void 0 && (missing0 = "expired") || data.parsed === void 0 && (missing0 = "parsed")) {
|
|
17424
|
-
|
|
17801
|
+
validate234.errors = [{
|
|
17425
17802
|
instancePath,
|
|
17426
17803
|
schemaPath: "#/required",
|
|
17427
17804
|
keyword: "required",
|
|
@@ -17432,7 +17809,7 @@ function validate231(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
17432
17809
|
} else {
|
|
17433
17810
|
if (data.slot !== void 0) {
|
|
17434
17811
|
if (typeof data.slot !== "string") {
|
|
17435
|
-
|
|
17812
|
+
validate234.errors = [{
|
|
17436
17813
|
instancePath: instancePath + "/slot",
|
|
17437
17814
|
schemaPath: "#/properties/slot/type",
|
|
17438
17815
|
keyword: "type",
|
|
@@ -17446,7 +17823,7 @@ function validate231(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
17446
17823
|
if (valid0) {
|
|
17447
17824
|
if (data.path !== void 0) {
|
|
17448
17825
|
if (typeof data.path !== "string") {
|
|
17449
|
-
|
|
17826
|
+
validate234.errors = [{
|
|
17450
17827
|
instancePath: instancePath + "/path",
|
|
17451
17828
|
schemaPath: "#/properties/path/type",
|
|
17452
17829
|
keyword: "type",
|
|
@@ -17460,7 +17837,7 @@ function validate231(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
17460
17837
|
if (valid0) {
|
|
17461
17838
|
if (data.platform !== void 0) {
|
|
17462
17839
|
if (typeof data.platform !== "string") {
|
|
17463
|
-
|
|
17840
|
+
validate234.errors = [{
|
|
17464
17841
|
instancePath: instancePath + "/platform",
|
|
17465
17842
|
schemaPath: "#/properties/platform/type",
|
|
17466
17843
|
keyword: "type",
|
|
@@ -17475,11 +17852,11 @@ function validate231(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
17475
17852
|
if (data.id !== void 0) {
|
|
17476
17853
|
let data3 = data.id;
|
|
17477
17854
|
if (typeof data3 !== "string" && data3 !== null) {
|
|
17478
|
-
|
|
17855
|
+
validate234.errors = [{
|
|
17479
17856
|
instancePath: instancePath + "/id",
|
|
17480
17857
|
schemaPath: "#/properties/id/type",
|
|
17481
17858
|
keyword: "type",
|
|
17482
|
-
params: { type:
|
|
17859
|
+
params: { type: schema119.properties.id.type },
|
|
17483
17860
|
message: "must be string,null"
|
|
17484
17861
|
}];
|
|
17485
17862
|
return false;
|
|
@@ -17490,11 +17867,11 @@ function validate231(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
17490
17867
|
if (data.deviceName !== void 0) {
|
|
17491
17868
|
let data4 = data.deviceName;
|
|
17492
17869
|
if (typeof data4 !== "string" && data4 !== null) {
|
|
17493
|
-
|
|
17870
|
+
validate234.errors = [{
|
|
17494
17871
|
instancePath: instancePath + "/deviceName",
|
|
17495
17872
|
schemaPath: "#/properties/deviceName/type",
|
|
17496
17873
|
keyword: "type",
|
|
17497
|
-
params: { type:
|
|
17874
|
+
params: { type: schema119.properties.deviceName.type },
|
|
17498
17875
|
message: "must be string,null"
|
|
17499
17876
|
}];
|
|
17500
17877
|
return false;
|
|
@@ -17505,11 +17882,11 @@ function validate231(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
17505
17882
|
if (data.holder !== void 0) {
|
|
17506
17883
|
let data5 = data.holder;
|
|
17507
17884
|
if (typeof data5 !== "string" && data5 !== null) {
|
|
17508
|
-
|
|
17885
|
+
validate234.errors = [{
|
|
17509
17886
|
instancePath: instancePath + "/holder",
|
|
17510
17887
|
schemaPath: "#/properties/holder/type",
|
|
17511
17888
|
keyword: "type",
|
|
17512
|
-
params: { type:
|
|
17889
|
+
params: { type: schema119.properties.holder.type },
|
|
17513
17890
|
message: "must be string,null"
|
|
17514
17891
|
}];
|
|
17515
17892
|
return false;
|
|
@@ -17520,11 +17897,11 @@ function validate231(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
17520
17897
|
if (data.grantedAt !== void 0) {
|
|
17521
17898
|
let data6 = data.grantedAt;
|
|
17522
17899
|
if (typeof data6 !== "string" && data6 !== null) {
|
|
17523
|
-
|
|
17900
|
+
validate234.errors = [{
|
|
17524
17901
|
instancePath: instancePath + "/grantedAt",
|
|
17525
17902
|
schemaPath: "#/properties/grantedAt/type",
|
|
17526
17903
|
keyword: "type",
|
|
17527
|
-
params: { type:
|
|
17904
|
+
params: { type: schema119.properties.grantedAt.type },
|
|
17528
17905
|
message: "must be string,null"
|
|
17529
17906
|
}];
|
|
17530
17907
|
return false;
|
|
@@ -17535,11 +17912,11 @@ function validate231(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
17535
17912
|
if (data.expiresAt !== void 0) {
|
|
17536
17913
|
let data7 = data.expiresAt;
|
|
17537
17914
|
if (typeof data7 !== "string" && data7 !== null) {
|
|
17538
|
-
|
|
17915
|
+
validate234.errors = [{
|
|
17539
17916
|
instancePath: instancePath + "/expiresAt",
|
|
17540
17917
|
schemaPath: "#/properties/expiresAt/type",
|
|
17541
17918
|
keyword: "type",
|
|
17542
|
-
params: { type:
|
|
17919
|
+
params: { type: schema119.properties.expiresAt.type },
|
|
17543
17920
|
message: "must be string,null"
|
|
17544
17921
|
}];
|
|
17545
17922
|
return false;
|
|
@@ -17549,7 +17926,7 @@ function validate231(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
17549
17926
|
if (valid0) {
|
|
17550
17927
|
if (data.mine !== void 0) {
|
|
17551
17928
|
if (typeof data.mine !== "boolean") {
|
|
17552
|
-
|
|
17929
|
+
validate234.errors = [{
|
|
17553
17930
|
instancePath: instancePath + "/mine",
|
|
17554
17931
|
schemaPath: "#/properties/mine/type",
|
|
17555
17932
|
keyword: "type",
|
|
@@ -17563,7 +17940,7 @@ function validate231(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
17563
17940
|
if (valid0) {
|
|
17564
17941
|
if (data.expired !== void 0) {
|
|
17565
17942
|
if (typeof data.expired !== "boolean") {
|
|
17566
|
-
|
|
17943
|
+
validate234.errors = [{
|
|
17567
17944
|
instancePath: instancePath + "/expired",
|
|
17568
17945
|
schemaPath: "#/properties/expired/type",
|
|
17569
17946
|
keyword: "type",
|
|
@@ -17577,7 +17954,7 @@ function validate231(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
17577
17954
|
if (valid0) {
|
|
17578
17955
|
if (data.parsed !== void 0) {
|
|
17579
17956
|
if (typeof data.parsed !== "boolean") {
|
|
17580
|
-
|
|
17957
|
+
validate234.errors = [{
|
|
17581
17958
|
instancePath: instancePath + "/parsed",
|
|
17582
17959
|
schemaPath: "#/properties/parsed/type",
|
|
17583
17960
|
keyword: "type",
|
|
@@ -17600,7 +17977,7 @@ function validate231(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
17600
17977
|
}
|
|
17601
17978
|
}
|
|
17602
17979
|
} else {
|
|
17603
|
-
|
|
17980
|
+
validate234.errors = [{
|
|
17604
17981
|
instancePath,
|
|
17605
17982
|
schemaPath: "#/type",
|
|
17606
17983
|
keyword: "type",
|
|
@@ -17609,7 +17986,7 @@ function validate231(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
17609
17986
|
}];
|
|
17610
17987
|
return false;
|
|
17611
17988
|
}
|
|
17612
|
-
|
|
17989
|
+
validate234.errors = vErrors;
|
|
17613
17990
|
return true;
|
|
17614
17991
|
}
|
|
17615
17992
|
function validate130(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
|
|
@@ -18437,13 +18814,13 @@ function validate130(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
18437
18814
|
const _errs82 = errors;
|
|
18438
18815
|
let valid12 = false;
|
|
18439
18816
|
const _errs83 = errors;
|
|
18440
|
-
if (!
|
|
18817
|
+
if (!validate224(data39, {
|
|
18441
18818
|
instancePath: instancePath + "/machine",
|
|
18442
18819
|
parentData: data,
|
|
18443
18820
|
parentDataProperty: "machine",
|
|
18444
18821
|
rootData
|
|
18445
18822
|
})) {
|
|
18446
|
-
vErrors = vErrors === null ?
|
|
18823
|
+
vErrors = vErrors === null ? validate224.errors : vErrors.concat(validate224.errors);
|
|
18447
18824
|
errors = vErrors.length;
|
|
18448
18825
|
}
|
|
18449
18826
|
var _valid2 = _errs83 === errors;
|
|
@@ -18524,13 +18901,13 @@ function validate130(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
18524
18901
|
if (valid0) {
|
|
18525
18902
|
if (data.archivedUsage !== void 0) {
|
|
18526
18903
|
const _errs90 = errors;
|
|
18527
|
-
if (!
|
|
18904
|
+
if (!validate230(data.archivedUsage, {
|
|
18528
18905
|
instancePath: instancePath + "/archivedUsage",
|
|
18529
18906
|
parentData: data,
|
|
18530
18907
|
parentDataProperty: "archivedUsage",
|
|
18531
18908
|
rootData
|
|
18532
18909
|
})) {
|
|
18533
|
-
vErrors = vErrors === null ?
|
|
18910
|
+
vErrors = vErrors === null ? validate230.errors : vErrors.concat(validate230.errors);
|
|
18534
18911
|
errors = vErrors.length;
|
|
18535
18912
|
}
|
|
18536
18913
|
var valid0 = _errs90 === errors;
|
|
@@ -18538,13 +18915,13 @@ function validate130(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
18538
18915
|
if (valid0) {
|
|
18539
18916
|
if (data.capacity !== void 0) {
|
|
18540
18917
|
const _errs91 = errors;
|
|
18541
|
-
if (!
|
|
18918
|
+
if (!validate232(data.capacity, {
|
|
18542
18919
|
instancePath: instancePath + "/capacity",
|
|
18543
18920
|
parentData: data,
|
|
18544
18921
|
parentDataProperty: "capacity",
|
|
18545
18922
|
rootData
|
|
18546
18923
|
})) {
|
|
18547
|
-
vErrors = vErrors === null ?
|
|
18924
|
+
vErrors = vErrors === null ? validate232.errors : vErrors.concat(validate232.errors);
|
|
18548
18925
|
errors = vErrors.length;
|
|
18549
18926
|
}
|
|
18550
18927
|
var valid0 = _errs91 === errors;
|
|
@@ -18558,13 +18935,13 @@ function validate130(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
18558
18935
|
const len5 = data44.length;
|
|
18559
18936
|
for (let i5 = 0; i5 < len5; i5++) {
|
|
18560
18937
|
const _errs94 = errors;
|
|
18561
|
-
if (!
|
|
18938
|
+
if (!validate234(data44[i5], {
|
|
18562
18939
|
instancePath: instancePath + "/deviceLeases/" + i5,
|
|
18563
18940
|
parentData: data44,
|
|
18564
18941
|
parentDataProperty: i5,
|
|
18565
18942
|
rootData
|
|
18566
18943
|
})) {
|
|
18567
|
-
vErrors = vErrors === null ?
|
|
18944
|
+
vErrors = vErrors === null ? validate234.errors : vErrors.concat(validate234.errors);
|
|
18568
18945
|
errors = vErrors.length;
|
|
18569
18946
|
}
|
|
18570
18947
|
if (!(_errs94 === errors)) break;
|
|
@@ -18621,7 +18998,7 @@ function validate130(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
18621
18998
|
validate130.errors = vErrors;
|
|
18622
18999
|
return errors === 0;
|
|
18623
19000
|
}
|
|
18624
|
-
const
|
|
19001
|
+
const schema120 = {
|
|
18625
19002
|
"type": "object",
|
|
18626
19003
|
"properties": {
|
|
18627
19004
|
"devices": {
|
|
@@ -18677,12 +19054,12 @@ const schema119 = {
|
|
|
18677
19054
|
"intervalMs"
|
|
18678
19055
|
]
|
|
18679
19056
|
};
|
|
18680
|
-
function
|
|
19057
|
+
function validate237(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
|
|
18681
19058
|
let vErrors = null;
|
|
18682
19059
|
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
18683
19060
|
let missing0;
|
|
18684
19061
|
if (data.devices === void 0 && (missing0 = "devices") || data.endAt === void 0 && (missing0 = "endAt") || data.environments === void 0 && (missing0 = "environments") || data.intervalMs === void 0 && (missing0 = "intervalMs")) {
|
|
18685
|
-
|
|
19062
|
+
validate237.errors = [{
|
|
18686
19063
|
instancePath,
|
|
18687
19064
|
schemaPath: "#/required",
|
|
18688
19065
|
keyword: "required",
|
|
@@ -18700,7 +19077,7 @@ function validate234(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
18700
19077
|
if (data1 && typeof data1 == "object" && !Array.isArray(data1)) {
|
|
18701
19078
|
let missing1;
|
|
18702
19079
|
if (data1.cpuPercent === void 0 && (missing1 = "cpuPercent") || data1.id === void 0 && (missing1 = "id") || data1.kind === void 0 && (missing1 = "kind") || data1.memoryMb === void 0 && (missing1 = "memoryMb") || data1.workspace === void 0 && (missing1 = "workspace")) {
|
|
18703
|
-
|
|
19080
|
+
validate237.errors = [{
|
|
18704
19081
|
instancePath: instancePath + "/devices/" + i0,
|
|
18705
19082
|
schemaPath: "#/properties/devices/items/required",
|
|
18706
19083
|
keyword: "required",
|
|
@@ -18711,7 +19088,7 @@ function validate234(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
18711
19088
|
} else {
|
|
18712
19089
|
if (data1.kind !== void 0) {
|
|
18713
19090
|
if (typeof data1.kind !== "string") {
|
|
18714
|
-
|
|
19091
|
+
validate237.errors = [{
|
|
18715
19092
|
instancePath: instancePath + "/devices/" + i0 + "/kind",
|
|
18716
19093
|
schemaPath: "#/properties/devices/items/properties/kind/type",
|
|
18717
19094
|
keyword: "type",
|
|
@@ -18725,7 +19102,7 @@ function validate234(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
18725
19102
|
if (valid2) {
|
|
18726
19103
|
if (data1.id !== void 0) {
|
|
18727
19104
|
if (typeof data1.id !== "string") {
|
|
18728
|
-
|
|
19105
|
+
validate237.errors = [{
|
|
18729
19106
|
instancePath: instancePath + "/devices/" + i0 + "/id",
|
|
18730
19107
|
schemaPath: "#/properties/devices/items/properties/id/type",
|
|
18731
19108
|
keyword: "type",
|
|
@@ -18740,11 +19117,11 @@ function validate234(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
18740
19117
|
if (data1.workspace !== void 0) {
|
|
18741
19118
|
let data4 = data1.workspace;
|
|
18742
19119
|
if (typeof data4 !== "string" && data4 !== null) {
|
|
18743
|
-
|
|
19120
|
+
validate237.errors = [{
|
|
18744
19121
|
instancePath: instancePath + "/devices/" + i0 + "/workspace",
|
|
18745
19122
|
schemaPath: "#/properties/devices/items/properties/workspace/type",
|
|
18746
19123
|
keyword: "type",
|
|
18747
|
-
params: { type:
|
|
19124
|
+
params: { type: schema120.properties.devices.items.properties.workspace.type },
|
|
18748
19125
|
message: "must be string,null"
|
|
18749
19126
|
}];
|
|
18750
19127
|
return false;
|
|
@@ -18754,7 +19131,7 @@ function validate234(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
18754
19131
|
if (valid2) {
|
|
18755
19132
|
if (data1.slot !== void 0) {
|
|
18756
19133
|
if (typeof data1.slot !== "string") {
|
|
18757
|
-
|
|
19134
|
+
validate237.errors = [{
|
|
18758
19135
|
instancePath: instancePath + "/devices/" + i0 + "/slot",
|
|
18759
19136
|
schemaPath: "#/properties/devices/items/properties/slot/type",
|
|
18760
19137
|
keyword: "type",
|
|
@@ -18770,7 +19147,7 @@ function validate234(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
18770
19147
|
}
|
|
18771
19148
|
}
|
|
18772
19149
|
} else {
|
|
18773
|
-
|
|
19150
|
+
validate237.errors = [{
|
|
18774
19151
|
instancePath: instancePath + "/devices/" + i0,
|
|
18775
19152
|
schemaPath: "#/properties/devices/items/type",
|
|
18776
19153
|
keyword: "type",
|
|
@@ -18781,7 +19158,7 @@ function validate234(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
18781
19158
|
}
|
|
18782
19159
|
}
|
|
18783
19160
|
} else {
|
|
18784
|
-
|
|
19161
|
+
validate237.errors = [{
|
|
18785
19162
|
instancePath: instancePath + "/devices",
|
|
18786
19163
|
schemaPath: "#/properties/devices/type",
|
|
18787
19164
|
keyword: "type",
|
|
@@ -18795,7 +19172,7 @@ function validate234(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
18795
19172
|
if (valid0) {
|
|
18796
19173
|
if (data.intervalMs !== void 0) {
|
|
18797
19174
|
if (!(typeof data.intervalMs == "number")) {
|
|
18798
|
-
|
|
19175
|
+
validate237.errors = [{
|
|
18799
19176
|
instancePath: instancePath + "/intervalMs",
|
|
18800
19177
|
schemaPath: "#/properties/intervalMs/type",
|
|
18801
19178
|
keyword: "type",
|
|
@@ -18809,7 +19186,7 @@ function validate234(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
18809
19186
|
if (valid0) {
|
|
18810
19187
|
if (data.endAt !== void 0) {
|
|
18811
19188
|
if (!(typeof data.endAt == "number")) {
|
|
18812
|
-
|
|
19189
|
+
validate237.errors = [{
|
|
18813
19190
|
instancePath: instancePath + "/endAt",
|
|
18814
19191
|
schemaPath: "#/properties/endAt/type",
|
|
18815
19192
|
keyword: "type",
|
|
@@ -18830,7 +19207,7 @@ function validate234(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
18830
19207
|
if (data9 && typeof data9 == "object" && !Array.isArray(data9)) {
|
|
18831
19208
|
let missing2;
|
|
18832
19209
|
if (data9.cpuPercent === void 0 && (missing2 = "cpuPercent") || data9.memoryMb === void 0 && (missing2 = "memoryMb") || data9.workspace === void 0 && (missing2 = "workspace")) {
|
|
18833
|
-
|
|
19210
|
+
validate237.errors = [{
|
|
18834
19211
|
instancePath: instancePath + "/environments/" + i1,
|
|
18835
19212
|
schemaPath: "#/properties/environments/items/required",
|
|
18836
19213
|
keyword: "required",
|
|
@@ -18841,7 +19218,7 @@ function validate234(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
18841
19218
|
} else {
|
|
18842
19219
|
if (data9.workspace !== void 0) {
|
|
18843
19220
|
if (typeof data9.workspace !== "string") {
|
|
18844
|
-
|
|
19221
|
+
validate237.errors = [{
|
|
18845
19222
|
instancePath: instancePath + "/environments/" + i1 + "/workspace",
|
|
18846
19223
|
schemaPath: "#/properties/environments/items/properties/workspace/type",
|
|
18847
19224
|
keyword: "type",
|
|
@@ -18860,18 +19237,18 @@ function validate234(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
18860
19237
|
for (let i2 = 0; i2 < len2; i2++) {
|
|
18861
19238
|
let data12 = data11[i2];
|
|
18862
19239
|
if (!(typeof data12 == "number") && data12 !== null) {
|
|
18863
|
-
|
|
19240
|
+
validate237.errors = [{
|
|
18864
19241
|
instancePath: instancePath + "/environments/" + i1 + "/cpuPercent/" + i2,
|
|
18865
19242
|
schemaPath: "#/properties/environments/items/properties/cpuPercent/items/type",
|
|
18866
19243
|
keyword: "type",
|
|
18867
|
-
params: { type:
|
|
19244
|
+
params: { type: schema120.properties.environments.items.properties.cpuPercent.items.type },
|
|
18868
19245
|
message: "must be number,null"
|
|
18869
19246
|
}];
|
|
18870
19247
|
return false;
|
|
18871
19248
|
}
|
|
18872
19249
|
}
|
|
18873
19250
|
} else {
|
|
18874
|
-
|
|
19251
|
+
validate237.errors = [{
|
|
18875
19252
|
instancePath: instancePath + "/environments/" + i1 + "/cpuPercent",
|
|
18876
19253
|
schemaPath: "#/properties/environments/items/properties/cpuPercent/type",
|
|
18877
19254
|
keyword: "type",
|
|
@@ -18890,18 +19267,18 @@ function validate234(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
18890
19267
|
for (let i3 = 0; i3 < len3; i3++) {
|
|
18891
19268
|
let data14 = data13[i3];
|
|
18892
19269
|
if (!(typeof data14 == "number") && data14 !== null) {
|
|
18893
|
-
|
|
19270
|
+
validate237.errors = [{
|
|
18894
19271
|
instancePath: instancePath + "/environments/" + i1 + "/memoryMb/" + i3,
|
|
18895
19272
|
schemaPath: "#/properties/environments/items/properties/memoryMb/items/type",
|
|
18896
19273
|
keyword: "type",
|
|
18897
|
-
params: { type:
|
|
19274
|
+
params: { type: schema120.properties.environments.items.properties.memoryMb.items.type },
|
|
18898
19275
|
message: "must be number,null"
|
|
18899
19276
|
}];
|
|
18900
19277
|
return false;
|
|
18901
19278
|
}
|
|
18902
19279
|
}
|
|
18903
19280
|
} else {
|
|
18904
|
-
|
|
19281
|
+
validate237.errors = [{
|
|
18905
19282
|
instancePath: instancePath + "/environments/" + i1 + "/memoryMb",
|
|
18906
19283
|
schemaPath: "#/properties/environments/items/properties/memoryMb/type",
|
|
18907
19284
|
keyword: "type",
|
|
@@ -18916,7 +19293,7 @@ function validate234(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
18916
19293
|
}
|
|
18917
19294
|
}
|
|
18918
19295
|
} else {
|
|
18919
|
-
|
|
19296
|
+
validate237.errors = [{
|
|
18920
19297
|
instancePath: instancePath + "/environments/" + i1,
|
|
18921
19298
|
schemaPath: "#/properties/environments/items/type",
|
|
18922
19299
|
keyword: "type",
|
|
@@ -18927,7 +19304,7 @@ function validate234(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
18927
19304
|
}
|
|
18928
19305
|
}
|
|
18929
19306
|
} else {
|
|
18930
|
-
|
|
19307
|
+
validate237.errors = [{
|
|
18931
19308
|
instancePath: instancePath + "/environments",
|
|
18932
19309
|
schemaPath: "#/properties/environments/type",
|
|
18933
19310
|
keyword: "type",
|
|
@@ -18943,7 +19320,7 @@ function validate234(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
18943
19320
|
}
|
|
18944
19321
|
}
|
|
18945
19322
|
} else {
|
|
18946
|
-
|
|
19323
|
+
validate237.errors = [{
|
|
18947
19324
|
instancePath,
|
|
18948
19325
|
schemaPath: "#/type",
|
|
18949
19326
|
keyword: "type",
|
|
@@ -18952,7 +19329,7 @@ function validate234(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
18952
19329
|
}];
|
|
18953
19330
|
return false;
|
|
18954
19331
|
}
|
|
18955
|
-
|
|
19332
|
+
validate237.errors = vErrors;
|
|
18956
19333
|
return true;
|
|
18957
19334
|
}
|
|
18958
19335
|
function validate129(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
|
|
@@ -18987,13 +19364,13 @@ function validate129(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
18987
19364
|
if (valid0) {
|
|
18988
19365
|
if (data.usage !== void 0) {
|
|
18989
19366
|
const _errs2 = errors;
|
|
18990
|
-
if (!
|
|
19367
|
+
if (!validate237(data.usage, {
|
|
18991
19368
|
instancePath: instancePath + "/usage",
|
|
18992
19369
|
parentData: data,
|
|
18993
19370
|
parentDataProperty: "usage",
|
|
18994
19371
|
rootData
|
|
18995
19372
|
})) {
|
|
18996
|
-
vErrors = vErrors === null ?
|
|
19373
|
+
vErrors = vErrors === null ? validate237.errors : vErrors.concat(validate237.errors);
|
|
18997
19374
|
errors = vErrors.length;
|
|
18998
19375
|
}
|
|
18999
19376
|
var valid0 = _errs2 === errors;
|
|
@@ -19092,14 +19469,14 @@ function validate129(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
19092
19469
|
validate129.errors = vErrors;
|
|
19093
19470
|
return errors === 0;
|
|
19094
19471
|
}
|
|
19095
|
-
function
|
|
19472
|
+
function validate240(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
|
|
19096
19473
|
let vErrors = null;
|
|
19097
19474
|
let errors = 0;
|
|
19098
19475
|
if (errors === 0) {
|
|
19099
19476
|
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
19100
19477
|
let missing0;
|
|
19101
19478
|
if (data.event === void 0 && (missing0 = "event") || data.records === void 0 && (missing0 = "records") || data.subscription === void 0 && (missing0 = "subscription")) {
|
|
19102
|
-
|
|
19479
|
+
validate240.errors = [{
|
|
19103
19480
|
instancePath,
|
|
19104
19481
|
schemaPath: "#/required",
|
|
19105
19482
|
keyword: "required",
|
|
@@ -19128,7 +19505,7 @@ function validate237(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
19128
19505
|
if (!(_errs3 === errors)) break;
|
|
19129
19506
|
}
|
|
19130
19507
|
} else {
|
|
19131
|
-
|
|
19508
|
+
validate240.errors = [{
|
|
19132
19509
|
instancePath: instancePath + "/records",
|
|
19133
19510
|
schemaPath: "#/properties/records/type",
|
|
19134
19511
|
keyword: "type",
|
|
@@ -19145,7 +19522,7 @@ function validate237(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
19145
19522
|
let data2 = data.event;
|
|
19146
19523
|
const _errs4 = errors;
|
|
19147
19524
|
if (typeof data2 !== "string") {
|
|
19148
|
-
|
|
19525
|
+
validate240.errors = [{
|
|
19149
19526
|
instancePath: instancePath + "/event",
|
|
19150
19527
|
schemaPath: "#/properties/event/type",
|
|
19151
19528
|
keyword: "type",
|
|
@@ -19155,7 +19532,7 @@ function validate237(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
19155
19532
|
return false;
|
|
19156
19533
|
}
|
|
19157
19534
|
if ("logs" !== data2) {
|
|
19158
|
-
|
|
19535
|
+
validate240.errors = [{
|
|
19159
19536
|
instancePath: instancePath + "/event",
|
|
19160
19537
|
schemaPath: "#/properties/event/const",
|
|
19161
19538
|
keyword: "const",
|
|
@@ -19170,7 +19547,7 @@ function validate237(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
19170
19547
|
if (data.subscription !== void 0) {
|
|
19171
19548
|
const _errs6 = errors;
|
|
19172
19549
|
if (typeof data.subscription !== "string") {
|
|
19173
|
-
|
|
19550
|
+
validate240.errors = [{
|
|
19174
19551
|
instancePath: instancePath + "/subscription",
|
|
19175
19552
|
schemaPath: "#/properties/subscription/type",
|
|
19176
19553
|
keyword: "type",
|
|
@@ -19185,7 +19562,7 @@ function validate237(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
19185
19562
|
}
|
|
19186
19563
|
}
|
|
19187
19564
|
} else {
|
|
19188
|
-
|
|
19565
|
+
validate240.errors = [{
|
|
19189
19566
|
instancePath,
|
|
19190
19567
|
schemaPath: "#/type",
|
|
19191
19568
|
keyword: "type",
|
|
@@ -19195,15 +19572,15 @@ function validate237(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
19195
19572
|
return false;
|
|
19196
19573
|
}
|
|
19197
19574
|
}
|
|
19198
|
-
|
|
19575
|
+
validate240.errors = vErrors;
|
|
19199
19576
|
return errors === 0;
|
|
19200
19577
|
}
|
|
19201
|
-
function
|
|
19578
|
+
function validate244(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
|
|
19202
19579
|
let vErrors = null;
|
|
19203
19580
|
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
19204
19581
|
let missing0;
|
|
19205
19582
|
if (data.code === void 0 && (missing0 = "code") || data.message === void 0 && (missing0 = "message")) {
|
|
19206
|
-
|
|
19583
|
+
validate244.errors = [{
|
|
19207
19584
|
instancePath,
|
|
19208
19585
|
schemaPath: "#/required",
|
|
19209
19586
|
keyword: "required",
|
|
@@ -19214,7 +19591,7 @@ function validate241(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
19214
19591
|
} else {
|
|
19215
19592
|
if (data.code !== void 0) {
|
|
19216
19593
|
if (typeof data.code !== "string") {
|
|
19217
|
-
|
|
19594
|
+
validate244.errors = [{
|
|
19218
19595
|
instancePath: instancePath + "/code",
|
|
19219
19596
|
schemaPath: "#/properties/code/type",
|
|
19220
19597
|
keyword: "type",
|
|
@@ -19228,7 +19605,7 @@ function validate241(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
19228
19605
|
if (valid0) {
|
|
19229
19606
|
if (data.message !== void 0) {
|
|
19230
19607
|
if (typeof data.message !== "string") {
|
|
19231
|
-
|
|
19608
|
+
validate244.errors = [{
|
|
19232
19609
|
instancePath: instancePath + "/message",
|
|
19233
19610
|
schemaPath: "#/properties/message/type",
|
|
19234
19611
|
keyword: "type",
|
|
@@ -19242,7 +19619,7 @@ function validate241(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
19242
19619
|
}
|
|
19243
19620
|
}
|
|
19244
19621
|
} else {
|
|
19245
|
-
|
|
19622
|
+
validate244.errors = [{
|
|
19246
19623
|
instancePath,
|
|
19247
19624
|
schemaPath: "#/type",
|
|
19248
19625
|
keyword: "type",
|
|
@@ -19251,17 +19628,17 @@ function validate241(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
19251
19628
|
}];
|
|
19252
19629
|
return false;
|
|
19253
19630
|
}
|
|
19254
|
-
|
|
19631
|
+
validate244.errors = vErrors;
|
|
19255
19632
|
return true;
|
|
19256
19633
|
}
|
|
19257
|
-
function
|
|
19634
|
+
function validate243(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
|
|
19258
19635
|
let vErrors = null;
|
|
19259
19636
|
let errors = 0;
|
|
19260
19637
|
if (errors === 0) {
|
|
19261
19638
|
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
19262
19639
|
let missing0;
|
|
19263
19640
|
if (data.error === void 0 && (missing0 = "error") || data.event === void 0 && (missing0 = "event")) {
|
|
19264
|
-
|
|
19641
|
+
validate243.errors = [{
|
|
19265
19642
|
instancePath,
|
|
19266
19643
|
schemaPath: "#/required",
|
|
19267
19644
|
keyword: "required",
|
|
@@ -19272,13 +19649,13 @@ function validate240(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
19272
19649
|
} else {
|
|
19273
19650
|
if (data.error !== void 0) {
|
|
19274
19651
|
const _errs1 = errors;
|
|
19275
|
-
if (!
|
|
19652
|
+
if (!validate244(data.error, {
|
|
19276
19653
|
instancePath: instancePath + "/error",
|
|
19277
19654
|
parentData: data,
|
|
19278
19655
|
parentDataProperty: "error",
|
|
19279
19656
|
rootData
|
|
19280
19657
|
})) {
|
|
19281
|
-
vErrors = vErrors === null ?
|
|
19658
|
+
vErrors = vErrors === null ? validate244.errors : vErrors.concat(validate244.errors);
|
|
19282
19659
|
errors = vErrors.length;
|
|
19283
19660
|
}
|
|
19284
19661
|
var valid0 = _errs1 === errors;
|
|
@@ -19287,7 +19664,7 @@ function validate240(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
19287
19664
|
if (data.subscription !== void 0) {
|
|
19288
19665
|
const _errs2 = errors;
|
|
19289
19666
|
if (typeof data.subscription !== "string") {
|
|
19290
|
-
|
|
19667
|
+
validate243.errors = [{
|
|
19291
19668
|
instancePath: instancePath + "/subscription",
|
|
19292
19669
|
schemaPath: "#/properties/subscription/type",
|
|
19293
19670
|
keyword: "type",
|
|
@@ -19316,7 +19693,7 @@ function validate240(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
19316
19693
|
if (data.slot !== void 0) {
|
|
19317
19694
|
const _errs5 = errors;
|
|
19318
19695
|
if (typeof data.slot !== "string") {
|
|
19319
|
-
|
|
19696
|
+
validate243.errors = [{
|
|
19320
19697
|
instancePath: instancePath + "/slot",
|
|
19321
19698
|
schemaPath: "#/properties/slot/type",
|
|
19322
19699
|
keyword: "type",
|
|
@@ -19332,7 +19709,7 @@ function validate240(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
19332
19709
|
let data4 = data.event;
|
|
19333
19710
|
const _errs7 = errors;
|
|
19334
19711
|
if (typeof data4 !== "string") {
|
|
19335
|
-
|
|
19712
|
+
validate243.errors = [{
|
|
19336
19713
|
instancePath: instancePath + "/event",
|
|
19337
19714
|
schemaPath: "#/properties/event/type",
|
|
19338
19715
|
keyword: "type",
|
|
@@ -19342,7 +19719,7 @@ function validate240(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
19342
19719
|
return false;
|
|
19343
19720
|
}
|
|
19344
19721
|
if ("error" !== data4) {
|
|
19345
|
-
|
|
19722
|
+
validate243.errors = [{
|
|
19346
19723
|
instancePath: instancePath + "/event",
|
|
19347
19724
|
schemaPath: "#/properties/event/const",
|
|
19348
19725
|
keyword: "const",
|
|
@@ -19359,7 +19736,7 @@ function validate240(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
19359
19736
|
}
|
|
19360
19737
|
}
|
|
19361
19738
|
} else {
|
|
19362
|
-
|
|
19739
|
+
validate243.errors = [{
|
|
19363
19740
|
instancePath,
|
|
19364
19741
|
schemaPath: "#/type",
|
|
19365
19742
|
keyword: "type",
|
|
@@ -19369,15 +19746,15 @@ function validate240(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
19369
19746
|
return false;
|
|
19370
19747
|
}
|
|
19371
19748
|
}
|
|
19372
|
-
|
|
19749
|
+
validate243.errors = vErrors;
|
|
19373
19750
|
return errors === 0;
|
|
19374
19751
|
}
|
|
19375
|
-
function
|
|
19752
|
+
function validate249(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
|
|
19376
19753
|
let vErrors = null;
|
|
19377
19754
|
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
19378
19755
|
let missing0;
|
|
19379
19756
|
if (data.revision === void 0 && (missing0 = "revision") || data.screenID === void 0 && (missing0 = "screenID") || data.angle === void 0 && (missing0 = "angle") || data.orientation === void 0 && (missing0 = "orientation")) {
|
|
19380
|
-
|
|
19757
|
+
validate249.errors = [{
|
|
19381
19758
|
instancePath,
|
|
19382
19759
|
schemaPath: "#/required",
|
|
19383
19760
|
keyword: "required",
|
|
@@ -19388,7 +19765,7 @@ function validate246(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
19388
19765
|
} else {
|
|
19389
19766
|
if (data.revision !== void 0) {
|
|
19390
19767
|
if (typeof data.revision !== "string") {
|
|
19391
|
-
|
|
19768
|
+
validate249.errors = [{
|
|
19392
19769
|
instancePath: instancePath + "/revision",
|
|
19393
19770
|
schemaPath: "#/properties/revision/type",
|
|
19394
19771
|
keyword: "type",
|
|
@@ -19402,7 +19779,7 @@ function validate246(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
19402
19779
|
if (valid0) {
|
|
19403
19780
|
if (data.screenID !== void 0) {
|
|
19404
19781
|
if (!(typeof data.screenID == "number")) {
|
|
19405
|
-
|
|
19782
|
+
validate249.errors = [{
|
|
19406
19783
|
instancePath: instancePath + "/screenID",
|
|
19407
19784
|
schemaPath: "#/properties/screenID/type",
|
|
19408
19785
|
keyword: "type",
|
|
@@ -19416,7 +19793,7 @@ function validate246(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
19416
19793
|
if (valid0) {
|
|
19417
19794
|
if (data.angle !== void 0) {
|
|
19418
19795
|
if (!(typeof data.angle == "number")) {
|
|
19419
|
-
|
|
19796
|
+
validate249.errors = [{
|
|
19420
19797
|
instancePath: instancePath + "/angle",
|
|
19421
19798
|
schemaPath: "#/properties/angle/type",
|
|
19422
19799
|
keyword: "type",
|
|
@@ -19430,7 +19807,7 @@ function validate246(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
19430
19807
|
if (valid0) {
|
|
19431
19808
|
if (data.orientation !== void 0) {
|
|
19432
19809
|
if (!(typeof data.orientation == "number")) {
|
|
19433
|
-
|
|
19810
|
+
validate249.errors = [{
|
|
19434
19811
|
instancePath: instancePath + "/orientation",
|
|
19435
19812
|
schemaPath: "#/properties/orientation/type",
|
|
19436
19813
|
keyword: "type",
|
|
@@ -19446,7 +19823,7 @@ function validate246(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
19446
19823
|
}
|
|
19447
19824
|
}
|
|
19448
19825
|
} else {
|
|
19449
|
-
|
|
19826
|
+
validate249.errors = [{
|
|
19450
19827
|
instancePath,
|
|
19451
19828
|
schemaPath: "#/type",
|
|
19452
19829
|
keyword: "type",
|
|
@@ -19455,17 +19832,17 @@ function validate246(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
19455
19832
|
}];
|
|
19456
19833
|
return false;
|
|
19457
19834
|
}
|
|
19458
|
-
|
|
19835
|
+
validate249.errors = vErrors;
|
|
19459
19836
|
return true;
|
|
19460
19837
|
}
|
|
19461
|
-
function
|
|
19838
|
+
function validate248(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
|
|
19462
19839
|
let vErrors = null;
|
|
19463
19840
|
let errors = 0;
|
|
19464
19841
|
if (errors === 0) {
|
|
19465
19842
|
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
19466
19843
|
let missing0;
|
|
19467
19844
|
if (data.capturedAt === void 0 && (missing0 = "capturedAt") || data.data === void 0 && (missing0 = "data") || data.event === void 0 && (missing0 = "event") || data.height === void 0 && (missing0 = "height") || data.mime === void 0 && (missing0 = "mime") || data.platform === void 0 && (missing0 = "platform") || data.slot === void 0 && (missing0 = "slot") || data.subscription === void 0 && (missing0 = "subscription") || data.width === void 0 && (missing0 = "width")) {
|
|
19468
|
-
|
|
19845
|
+
validate248.errors = [{
|
|
19469
19846
|
instancePath,
|
|
19470
19847
|
schemaPath: "#/required",
|
|
19471
19848
|
keyword: "required",
|
|
@@ -19477,7 +19854,7 @@ function validate245(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
19477
19854
|
if (data.platform !== void 0) {
|
|
19478
19855
|
const _errs1 = errors;
|
|
19479
19856
|
if (typeof data.platform !== "string") {
|
|
19480
|
-
|
|
19857
|
+
validate248.errors = [{
|
|
19481
19858
|
instancePath: instancePath + "/platform",
|
|
19482
19859
|
schemaPath: "#/properties/platform/type",
|
|
19483
19860
|
keyword: "type",
|
|
@@ -19492,7 +19869,7 @@ function validate245(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
19492
19869
|
if (data.posture !== void 0) {
|
|
19493
19870
|
const _errs3 = errors;
|
|
19494
19871
|
if (typeof data.posture !== "string") {
|
|
19495
|
-
|
|
19872
|
+
validate248.errors = [{
|
|
19496
19873
|
instancePath: instancePath + "/posture",
|
|
19497
19874
|
schemaPath: "#/properties/posture/type",
|
|
19498
19875
|
keyword: "type",
|
|
@@ -19507,7 +19884,7 @@ function validate245(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
19507
19884
|
if (data.mime !== void 0) {
|
|
19508
19885
|
const _errs5 = errors;
|
|
19509
19886
|
if (typeof data.mime !== "string") {
|
|
19510
|
-
|
|
19887
|
+
validate248.errors = [{
|
|
19511
19888
|
instancePath: instancePath + "/mime",
|
|
19512
19889
|
schemaPath: "#/properties/mime/type",
|
|
19513
19890
|
keyword: "type",
|
|
@@ -19523,7 +19900,7 @@ function validate245(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
19523
19900
|
let data3 = data.event;
|
|
19524
19901
|
const _errs7 = errors;
|
|
19525
19902
|
if (typeof data3 !== "string") {
|
|
19526
|
-
|
|
19903
|
+
validate248.errors = [{
|
|
19527
19904
|
instancePath: instancePath + "/event",
|
|
19528
19905
|
schemaPath: "#/properties/event/type",
|
|
19529
19906
|
keyword: "type",
|
|
@@ -19533,7 +19910,7 @@ function validate245(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
19533
19910
|
return false;
|
|
19534
19911
|
}
|
|
19535
19912
|
if ("frame" !== data3) {
|
|
19536
|
-
|
|
19913
|
+
validate248.errors = [{
|
|
19537
19914
|
instancePath: instancePath + "/event",
|
|
19538
19915
|
schemaPath: "#/properties/event/const",
|
|
19539
19916
|
keyword: "const",
|
|
@@ -19548,7 +19925,7 @@ function validate245(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
19548
19925
|
if (data.subscription !== void 0) {
|
|
19549
19926
|
const _errs9 = errors;
|
|
19550
19927
|
if (typeof data.subscription !== "string") {
|
|
19551
|
-
|
|
19928
|
+
validate248.errors = [{
|
|
19552
19929
|
instancePath: instancePath + "/subscription",
|
|
19553
19930
|
schemaPath: "#/properties/subscription/type",
|
|
19554
19931
|
keyword: "type",
|
|
@@ -19563,7 +19940,7 @@ function validate245(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
19563
19940
|
if (data.slot !== void 0) {
|
|
19564
19941
|
const _errs11 = errors;
|
|
19565
19942
|
if (typeof data.slot !== "string") {
|
|
19566
|
-
|
|
19943
|
+
validate248.errors = [{
|
|
19567
19944
|
instancePath: instancePath + "/slot",
|
|
19568
19945
|
schemaPath: "#/properties/slot/type",
|
|
19569
19946
|
keyword: "type",
|
|
@@ -19578,7 +19955,7 @@ function validate245(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
19578
19955
|
if (data.width !== void 0) {
|
|
19579
19956
|
const _errs13 = errors;
|
|
19580
19957
|
if (!(typeof data.width == "number")) {
|
|
19581
|
-
|
|
19958
|
+
validate248.errors = [{
|
|
19582
19959
|
instancePath: instancePath + "/width",
|
|
19583
19960
|
schemaPath: "#/properties/width/type",
|
|
19584
19961
|
keyword: "type",
|
|
@@ -19593,7 +19970,7 @@ function validate245(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
19593
19970
|
if (data.height !== void 0) {
|
|
19594
19971
|
const _errs15 = errors;
|
|
19595
19972
|
if (!(typeof data.height == "number")) {
|
|
19596
|
-
|
|
19973
|
+
validate248.errors = [{
|
|
19597
19974
|
instancePath: instancePath + "/height",
|
|
19598
19975
|
schemaPath: "#/properties/height/type",
|
|
19599
19976
|
keyword: "type",
|
|
@@ -19608,7 +19985,7 @@ function validate245(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
19608
19985
|
if (data.capturedAt !== void 0) {
|
|
19609
19986
|
const _errs17 = errors;
|
|
19610
19987
|
if (typeof data.capturedAt !== "string") {
|
|
19611
|
-
|
|
19988
|
+
validate248.errors = [{
|
|
19612
19989
|
instancePath: instancePath + "/capturedAt",
|
|
19613
19990
|
schemaPath: "#/properties/capturedAt/type",
|
|
19614
19991
|
keyword: "type",
|
|
@@ -19623,7 +20000,7 @@ function validate245(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
19623
20000
|
if (data.data !== void 0) {
|
|
19624
20001
|
const _errs19 = errors;
|
|
19625
20002
|
if (typeof data.data !== "string") {
|
|
19626
|
-
|
|
20003
|
+
validate248.errors = [{
|
|
19627
20004
|
instancePath: instancePath + "/data",
|
|
19628
20005
|
schemaPath: "#/properties/data/type",
|
|
19629
20006
|
keyword: "type",
|
|
@@ -19638,7 +20015,7 @@ function validate245(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
19638
20015
|
if (data.artworkTurns !== void 0) {
|
|
19639
20016
|
const _errs21 = errors;
|
|
19640
20017
|
if (!(typeof data.artworkTurns == "number")) {
|
|
19641
|
-
|
|
20018
|
+
validate248.errors = [{
|
|
19642
20019
|
instancePath: instancePath + "/artworkTurns",
|
|
19643
20020
|
schemaPath: "#/properties/artworkTurns/type",
|
|
19644
20021
|
keyword: "type",
|
|
@@ -19652,13 +20029,13 @@ function validate245(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
19652
20029
|
if (valid0) {
|
|
19653
20030
|
if (data.duo !== void 0) {
|
|
19654
20031
|
const _errs23 = errors;
|
|
19655
|
-
if (!
|
|
20032
|
+
if (!validate249(data.duo, {
|
|
19656
20033
|
instancePath: instancePath + "/duo",
|
|
19657
20034
|
parentData: data,
|
|
19658
20035
|
parentDataProperty: "duo",
|
|
19659
20036
|
rootData
|
|
19660
20037
|
})) {
|
|
19661
|
-
vErrors = vErrors === null ?
|
|
20038
|
+
vErrors = vErrors === null ? validate249.errors : vErrors.concat(validate249.errors);
|
|
19662
20039
|
errors = vErrors.length;
|
|
19663
20040
|
}
|
|
19664
20041
|
var valid0 = _errs23 === errors;
|
|
@@ -19676,7 +20053,7 @@ function validate245(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
19676
20053
|
}
|
|
19677
20054
|
}
|
|
19678
20055
|
} else {
|
|
19679
|
-
|
|
20056
|
+
validate248.errors = [{
|
|
19680
20057
|
instancePath,
|
|
19681
20058
|
schemaPath: "#/type",
|
|
19682
20059
|
keyword: "type",
|
|
@@ -19686,13 +20063,13 @@ function validate245(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
19686
20063
|
return false;
|
|
19687
20064
|
}
|
|
19688
20065
|
}
|
|
19689
|
-
|
|
20066
|
+
validate248.errors = vErrors;
|
|
19690
20067
|
return errors === 0;
|
|
19691
20068
|
}
|
|
19692
|
-
function
|
|
20069
|
+
function validate253(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
|
|
19693
20070
|
let vErrors = null;
|
|
19694
20071
|
if (typeof data !== "string") {
|
|
19695
|
-
|
|
20072
|
+
validate253.errors = [{
|
|
19696
20073
|
instancePath,
|
|
19697
20074
|
schemaPath: "#/type",
|
|
19698
20075
|
keyword: "type",
|
|
@@ -19702,7 +20079,7 @@ function validate250(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
19702
20079
|
return false;
|
|
19703
20080
|
}
|
|
19704
20081
|
if (!(data === "ios" || data === "android" || data === "web" || data === "macos")) {
|
|
19705
|
-
|
|
20082
|
+
validate253.errors = [{
|
|
19706
20083
|
instancePath,
|
|
19707
20084
|
schemaPath: "#/enum",
|
|
19708
20085
|
keyword: "enum",
|
|
@@ -19711,17 +20088,17 @@ function validate250(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
19711
20088
|
}];
|
|
19712
20089
|
return false;
|
|
19713
20090
|
}
|
|
19714
|
-
|
|
20091
|
+
validate253.errors = vErrors;
|
|
19715
20092
|
return true;
|
|
19716
20093
|
}
|
|
19717
|
-
function
|
|
20094
|
+
function validate252(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
|
|
19718
20095
|
let vErrors = null;
|
|
19719
20096
|
let errors = 0;
|
|
19720
20097
|
if (errors === 0) {
|
|
19721
20098
|
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
19722
20099
|
let missing0;
|
|
19723
20100
|
if (data.event === void 0 && (missing0 = "event") || data.message === void 0 && (missing0 = "message") || data.reason === void 0 && (missing0 = "reason") || data.session === void 0 && (missing0 = "session")) {
|
|
19724
|
-
|
|
20101
|
+
validate252.errors = [{
|
|
19725
20102
|
instancePath,
|
|
19726
20103
|
schemaPath: "#/required",
|
|
19727
20104
|
keyword: "required",
|
|
@@ -19733,7 +20110,7 @@ function validate249(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
19733
20110
|
if (data.reason !== void 0) {
|
|
19734
20111
|
const _errs1 = errors;
|
|
19735
20112
|
if (typeof data.reason !== "string") {
|
|
19736
|
-
|
|
20113
|
+
validate252.errors = [{
|
|
19737
20114
|
instancePath: instancePath + "/reason",
|
|
19738
20115
|
schemaPath: "#/properties/reason/type",
|
|
19739
20116
|
keyword: "type",
|
|
@@ -19747,13 +20124,13 @@ function validate249(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
19747
20124
|
if (valid0) {
|
|
19748
20125
|
if (data.platform !== void 0) {
|
|
19749
20126
|
const _errs3 = errors;
|
|
19750
|
-
if (!
|
|
20127
|
+
if (!validate253(data.platform, {
|
|
19751
20128
|
instancePath: instancePath + "/platform",
|
|
19752
20129
|
parentData: data,
|
|
19753
20130
|
parentDataProperty: "platform",
|
|
19754
20131
|
rootData
|
|
19755
20132
|
})) {
|
|
19756
|
-
vErrors = vErrors === null ?
|
|
20133
|
+
vErrors = vErrors === null ? validate253.errors : vErrors.concat(validate253.errors);
|
|
19757
20134
|
errors = vErrors.length;
|
|
19758
20135
|
}
|
|
19759
20136
|
var valid0 = _errs3 === errors;
|
|
@@ -19762,7 +20139,7 @@ function validate249(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
19762
20139
|
if (data.slot !== void 0) {
|
|
19763
20140
|
const _errs4 = errors;
|
|
19764
20141
|
if (typeof data.slot !== "string") {
|
|
19765
|
-
|
|
20142
|
+
validate252.errors = [{
|
|
19766
20143
|
instancePath: instancePath + "/slot",
|
|
19767
20144
|
schemaPath: "#/properties/slot/type",
|
|
19768
20145
|
keyword: "type",
|
|
@@ -19778,7 +20155,7 @@ function validate249(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
19778
20155
|
let data3 = data.event;
|
|
19779
20156
|
const _errs6 = errors;
|
|
19780
20157
|
if (typeof data3 !== "string") {
|
|
19781
|
-
|
|
20158
|
+
validate252.errors = [{
|
|
19782
20159
|
instancePath: instancePath + "/event",
|
|
19783
20160
|
schemaPath: "#/properties/event/type",
|
|
19784
20161
|
keyword: "type",
|
|
@@ -19788,7 +20165,7 @@ function validate249(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
19788
20165
|
return false;
|
|
19789
20166
|
}
|
|
19790
20167
|
if ("control-ended" !== data3) {
|
|
19791
|
-
|
|
20168
|
+
validate252.errors = [{
|
|
19792
20169
|
instancePath: instancePath + "/event",
|
|
19793
20170
|
schemaPath: "#/properties/event/const",
|
|
19794
20171
|
keyword: "const",
|
|
@@ -19803,7 +20180,7 @@ function validate249(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
19803
20180
|
if (data.session !== void 0) {
|
|
19804
20181
|
const _errs8 = errors;
|
|
19805
20182
|
if (typeof data.session !== "string") {
|
|
19806
|
-
|
|
20183
|
+
validate252.errors = [{
|
|
19807
20184
|
instancePath: instancePath + "/session",
|
|
19808
20185
|
schemaPath: "#/properties/session/type",
|
|
19809
20186
|
keyword: "type",
|
|
@@ -19818,7 +20195,7 @@ function validate249(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
19818
20195
|
if (data.message !== void 0) {
|
|
19819
20196
|
const _errs10 = errors;
|
|
19820
20197
|
if (typeof data.message !== "string") {
|
|
19821
|
-
|
|
20198
|
+
validate252.errors = [{
|
|
19822
20199
|
instancePath: instancePath + "/message",
|
|
19823
20200
|
schemaPath: "#/properties/message/type",
|
|
19824
20201
|
keyword: "type",
|
|
@@ -19836,7 +20213,7 @@ function validate249(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
19836
20213
|
}
|
|
19837
20214
|
}
|
|
19838
20215
|
} else {
|
|
19839
|
-
|
|
20216
|
+
validate252.errors = [{
|
|
19840
20217
|
instancePath,
|
|
19841
20218
|
schemaPath: "#/type",
|
|
19842
20219
|
keyword: "type",
|
|
@@ -19846,17 +20223,17 @@ function validate249(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
19846
20223
|
return false;
|
|
19847
20224
|
}
|
|
19848
20225
|
}
|
|
19849
|
-
|
|
20226
|
+
validate252.errors = vErrors;
|
|
19850
20227
|
return errors === 0;
|
|
19851
20228
|
}
|
|
19852
|
-
function
|
|
20229
|
+
function validate256(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
|
|
19853
20230
|
let vErrors = null;
|
|
19854
20231
|
let errors = 0;
|
|
19855
20232
|
if (errors === 0) {
|
|
19856
20233
|
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
19857
20234
|
let missing0;
|
|
19858
20235
|
if (data.event === void 0 && (missing0 = "event") || data.log === void 0 && (missing0 = "log") || data.notification === void 0 && (missing0 = "notification")) {
|
|
19859
|
-
|
|
20236
|
+
validate256.errors = [{
|
|
19860
20237
|
instancePath,
|
|
19861
20238
|
schemaPath: "#/required",
|
|
19862
20239
|
keyword: "required",
|
|
@@ -19883,7 +20260,7 @@ function validate253(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
19883
20260
|
let data1 = data.event;
|
|
19884
20261
|
const _errs2 = errors;
|
|
19885
20262
|
if (typeof data1 !== "string") {
|
|
19886
|
-
|
|
20263
|
+
validate256.errors = [{
|
|
19887
20264
|
instancePath: instancePath + "/event",
|
|
19888
20265
|
schemaPath: "#/properties/event/type",
|
|
19889
20266
|
keyword: "type",
|
|
@@ -19893,7 +20270,7 @@ function validate253(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
19893
20270
|
return false;
|
|
19894
20271
|
}
|
|
19895
20272
|
if ("notification" !== data1) {
|
|
19896
|
-
|
|
20273
|
+
validate256.errors = [{
|
|
19897
20274
|
instancePath: instancePath + "/event",
|
|
19898
20275
|
schemaPath: "#/properties/event/const",
|
|
19899
20276
|
keyword: "const",
|
|
@@ -19908,7 +20285,7 @@ function validate253(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
19908
20285
|
if (data.log !== void 0) {
|
|
19909
20286
|
const _errs4 = errors;
|
|
19910
20287
|
if (typeof data.log !== "string") {
|
|
19911
|
-
|
|
20288
|
+
validate256.errors = [{
|
|
19912
20289
|
instancePath: instancePath + "/log",
|
|
19913
20290
|
schemaPath: "#/properties/log/type",
|
|
19914
20291
|
keyword: "type",
|
|
@@ -19923,7 +20300,7 @@ function validate253(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
19923
20300
|
}
|
|
19924
20301
|
}
|
|
19925
20302
|
} else {
|
|
19926
|
-
|
|
20303
|
+
validate256.errors = [{
|
|
19927
20304
|
instancePath,
|
|
19928
20305
|
schemaPath: "#/type",
|
|
19929
20306
|
keyword: "type",
|
|
@@ -19933,7 +20310,7 @@ function validate253(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
19933
20310
|
return false;
|
|
19934
20311
|
}
|
|
19935
20312
|
}
|
|
19936
|
-
|
|
20313
|
+
validate256.errors = vErrors;
|
|
19937
20314
|
return errors === 0;
|
|
19938
20315
|
}
|
|
19939
20316
|
function validate110(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
|
|
@@ -20020,65 +20397,65 @@ function validate110(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
20020
20397
|
valid0 = valid0 || _valid0;
|
|
20021
20398
|
if (!valid0) {
|
|
20022
20399
|
const _errs7 = errors;
|
|
20023
|
-
if (!
|
|
20400
|
+
if (!validate240(data, {
|
|
20024
20401
|
instancePath,
|
|
20025
20402
|
parentData,
|
|
20026
20403
|
parentDataProperty,
|
|
20027
20404
|
rootData
|
|
20028
20405
|
})) {
|
|
20029
|
-
vErrors = vErrors === null ?
|
|
20406
|
+
vErrors = vErrors === null ? validate240.errors : vErrors.concat(validate240.errors);
|
|
20030
20407
|
errors = vErrors.length;
|
|
20031
20408
|
}
|
|
20032
20409
|
var _valid0 = _errs7 === errors;
|
|
20033
20410
|
valid0 = valid0 || _valid0;
|
|
20034
20411
|
if (!valid0) {
|
|
20035
20412
|
const _errs8 = errors;
|
|
20036
|
-
if (!
|
|
20413
|
+
if (!validate243(data, {
|
|
20037
20414
|
instancePath,
|
|
20038
20415
|
parentData,
|
|
20039
20416
|
parentDataProperty,
|
|
20040
20417
|
rootData
|
|
20041
20418
|
})) {
|
|
20042
|
-
vErrors = vErrors === null ?
|
|
20419
|
+
vErrors = vErrors === null ? validate243.errors : vErrors.concat(validate243.errors);
|
|
20043
20420
|
errors = vErrors.length;
|
|
20044
20421
|
}
|
|
20045
20422
|
var _valid0 = _errs8 === errors;
|
|
20046
20423
|
valid0 = valid0 || _valid0;
|
|
20047
20424
|
if (!valid0) {
|
|
20048
20425
|
const _errs9 = errors;
|
|
20049
|
-
if (!
|
|
20426
|
+
if (!validate248(data, {
|
|
20050
20427
|
instancePath,
|
|
20051
20428
|
parentData,
|
|
20052
20429
|
parentDataProperty,
|
|
20053
20430
|
rootData
|
|
20054
20431
|
})) {
|
|
20055
|
-
vErrors = vErrors === null ?
|
|
20432
|
+
vErrors = vErrors === null ? validate248.errors : vErrors.concat(validate248.errors);
|
|
20056
20433
|
errors = vErrors.length;
|
|
20057
20434
|
}
|
|
20058
20435
|
var _valid0 = _errs9 === errors;
|
|
20059
20436
|
valid0 = valid0 || _valid0;
|
|
20060
20437
|
if (!valid0) {
|
|
20061
20438
|
const _errs10 = errors;
|
|
20062
|
-
if (!
|
|
20439
|
+
if (!validate252(data, {
|
|
20063
20440
|
instancePath,
|
|
20064
20441
|
parentData,
|
|
20065
20442
|
parentDataProperty,
|
|
20066
20443
|
rootData
|
|
20067
20444
|
})) {
|
|
20068
|
-
vErrors = vErrors === null ?
|
|
20445
|
+
vErrors = vErrors === null ? validate252.errors : vErrors.concat(validate252.errors);
|
|
20069
20446
|
errors = vErrors.length;
|
|
20070
20447
|
}
|
|
20071
20448
|
var _valid0 = _errs10 === errors;
|
|
20072
20449
|
valid0 = valid0 || _valid0;
|
|
20073
20450
|
if (!valid0) {
|
|
20074
20451
|
const _errs11 = errors;
|
|
20075
|
-
if (!
|
|
20452
|
+
if (!validate256(data, {
|
|
20076
20453
|
instancePath,
|
|
20077
20454
|
parentData,
|
|
20078
20455
|
parentDataProperty,
|
|
20079
20456
|
rootData
|
|
20080
20457
|
})) {
|
|
20081
|
-
vErrors = vErrors === null ?
|
|
20458
|
+
vErrors = vErrors === null ? validate256.errors : vErrors.concat(validate256.errors);
|
|
20082
20459
|
errors = vErrors.length;
|
|
20083
20460
|
}
|
|
20084
20461
|
var _valid0 = _errs11 === errors;
|
|
@@ -20116,13 +20493,13 @@ function validate110(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
20116
20493
|
validate110.errors = vErrors;
|
|
20117
20494
|
return errors === 0;
|
|
20118
20495
|
}
|
|
20119
|
-
const error =
|
|
20120
|
-
function
|
|
20496
|
+
const error = validate259;
|
|
20497
|
+
function validate259(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
|
|
20121
20498
|
let vErrors = null;
|
|
20122
20499
|
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
20123
20500
|
let missing0;
|
|
20124
20501
|
if (data.code === void 0 && (missing0 = "code") || data.message === void 0 && (missing0 = "message")) {
|
|
20125
|
-
|
|
20502
|
+
validate259.errors = [{
|
|
20126
20503
|
instancePath,
|
|
20127
20504
|
schemaPath: "#/required",
|
|
20128
20505
|
keyword: "required",
|
|
@@ -20133,7 +20510,7 @@ function validate256(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
20133
20510
|
} else {
|
|
20134
20511
|
if (data.code !== void 0) {
|
|
20135
20512
|
if (typeof data.code !== "string") {
|
|
20136
|
-
|
|
20513
|
+
validate259.errors = [{
|
|
20137
20514
|
instancePath: instancePath + "/code",
|
|
20138
20515
|
schemaPath: "#/properties/code/type",
|
|
20139
20516
|
keyword: "type",
|
|
@@ -20147,7 +20524,7 @@ function validate256(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
20147
20524
|
if (valid0) {
|
|
20148
20525
|
if (data.message !== void 0) {
|
|
20149
20526
|
if (typeof data.message !== "string") {
|
|
20150
|
-
|
|
20527
|
+
validate259.errors = [{
|
|
20151
20528
|
instancePath: instancePath + "/message",
|
|
20152
20529
|
schemaPath: "#/properties/message/type",
|
|
20153
20530
|
keyword: "type",
|
|
@@ -20161,7 +20538,7 @@ function validate256(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
20161
20538
|
}
|
|
20162
20539
|
}
|
|
20163
20540
|
} else {
|
|
20164
|
-
|
|
20541
|
+
validate259.errors = [{
|
|
20165
20542
|
instancePath,
|
|
20166
20543
|
schemaPath: "#/type",
|
|
20167
20544
|
keyword: "type",
|
|
@@ -20170,7 +20547,7 @@ function validate256(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
20170
20547
|
}];
|
|
20171
20548
|
return false;
|
|
20172
20549
|
}
|
|
20173
|
-
|
|
20550
|
+
validate259.errors = vErrors;
|
|
20174
20551
|
return true;
|
|
20175
20552
|
}
|
|
20176
20553
|
const eventNames = [
|