@stim-cli/core 1.20.1 → 1.20.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.
@@ -10520,6 +10520,10 @@ const schema89 = {
10520
10520
  "properties": { "enabled": { "type": "boolean" } },
10521
10521
  "required": ["enabled"]
10522
10522
  },
10523
+ "hidden": {
10524
+ "type": "boolean",
10525
+ "const": true
10526
+ },
10523
10527
  "memoryMb": { "type": "number" },
10524
10528
  "warnings": {
10525
10529
  "type": "array",
@@ -17354,390 +17358,417 @@ function validate156(data, { instancePath = "", parentData, parentDataProperty,
17354
17358
  var valid0 = _errs144 === errors;
17355
17359
  } else var valid0 = true;
17356
17360
  if (valid0) {
17357
- if (data.memoryMb !== void 0) {
17361
+ if (data.hidden !== void 0) {
17362
+ let data63 = data.hidden;
17358
17363
  const _errs148 = errors;
17359
- if (!(typeof data.memoryMb == "number")) {
17364
+ if (typeof data63 !== "boolean") {
17360
17365
  validate156.errors = [{
17361
- instancePath: instancePath + "/memoryMb",
17362
- schemaPath: "#/properties/memoryMb/type",
17366
+ instancePath: instancePath + "/hidden",
17367
+ schemaPath: "#/properties/hidden/type",
17363
17368
  keyword: "type",
17364
- params: { type: "number" },
17365
- message: "must be number"
17369
+ params: { type: "boolean" },
17370
+ message: "must be boolean"
17371
+ }];
17372
+ return false;
17373
+ }
17374
+ if (true !== data63) {
17375
+ validate156.errors = [{
17376
+ instancePath: instancePath + "/hidden",
17377
+ schemaPath: "#/properties/hidden/const",
17378
+ keyword: "const",
17379
+ params: { allowedValue: true },
17380
+ message: "must be equal to constant"
17366
17381
  }];
17367
17382
  return false;
17368
17383
  }
17369
17384
  var valid0 = _errs148 === errors;
17370
17385
  } else var valid0 = true;
17371
17386
  if (valid0) {
17372
- if (data.warnings !== void 0) {
17373
- let data64 = data.warnings;
17387
+ if (data.memoryMb !== void 0) {
17374
17388
  const _errs150 = errors;
17375
- if (errors === _errs150) {
17376
- if (Array.isArray(data64)) {
17377
- const len8 = data64.length;
17378
- for (let i8 = 0; i8 < len8; i8++) {
17379
- const _errs152 = errors;
17380
- if (typeof data64[i8] !== "string") {
17381
- validate156.errors = [{
17382
- instancePath: instancePath + "/warnings/" + i8,
17383
- schemaPath: "#/properties/warnings/items/type",
17384
- keyword: "type",
17385
- params: { type: "string" },
17386
- message: "must be string"
17387
- }];
17388
- return false;
17389
- }
17390
- if (!(_errs152 === errors)) break;
17391
- }
17392
- } else {
17393
- validate156.errors = [{
17394
- instancePath: instancePath + "/warnings",
17395
- schemaPath: "#/properties/warnings/type",
17396
- keyword: "type",
17397
- params: { type: "array" },
17398
- message: "must be array"
17399
- }];
17400
- return false;
17401
- }
17389
+ if (!(typeof data.memoryMb == "number")) {
17390
+ validate156.errors = [{
17391
+ instancePath: instancePath + "/memoryMb",
17392
+ schemaPath: "#/properties/memoryMb/type",
17393
+ keyword: "type",
17394
+ params: { type: "number" },
17395
+ message: "must be number"
17396
+ }];
17397
+ return false;
17402
17398
  }
17403
17399
  var valid0 = _errs150 === errors;
17404
17400
  } else var valid0 = true;
17405
17401
  if (valid0) {
17406
- if (data.supervisor !== void 0) {
17407
- let data66 = data.supervisor;
17408
- const _errs154 = errors;
17409
- const _errs155 = errors;
17410
- let valid32 = false;
17411
- const _errs156 = errors;
17412
- if (errors === _errs156) {
17413
- if (data66 && typeof data66 == "object" && !Array.isArray(data66)) {
17414
- let missing11;
17415
- if (data66.pid === void 0 && (missing11 = "pid") || data66.mode === void 0 && (missing11 = "mode") || data66.startedAt === void 0 && (missing11 = "startedAt") || data66.healthy === void 0 && (missing11 = "healthy")) {
17416
- const err40 = {
17417
- instancePath: instancePath + "/supervisor",
17418
- schemaPath: "#/properties/supervisor/anyOf/0/required",
17419
- keyword: "required",
17420
- params: { missingProperty: missing11 },
17421
- message: "must have required property '" + missing11 + "'"
17422
- };
17423
- if (vErrors === null) vErrors = [err40];
17424
- else vErrors.push(err40);
17425
- errors++;
17426
- } else {
17427
- if (data66.pid !== void 0) {
17428
- let data67 = data66.pid;
17429
- const _errs158 = errors;
17430
- if (!(typeof data67 == "number") && data67 !== null) {
17431
- const err41 = {
17432
- instancePath: instancePath + "/supervisor/pid",
17433
- schemaPath: "#/properties/supervisor/anyOf/0/properties/pid/type",
17434
- keyword: "type",
17435
- params: { type: schema89.properties.supervisor.anyOf[0].properties.pid.type },
17436
- message: "must be number,null"
17437
- };
17438
- if (vErrors === null) vErrors = [err41];
17439
- else vErrors.push(err41);
17440
- errors++;
17441
- }
17442
- var valid33 = _errs158 === errors;
17443
- } else var valid33 = true;
17444
- if (valid33) {
17445
- if (data66.mode !== void 0) {
17446
- let data68 = data66.mode;
17402
+ if (data.warnings !== void 0) {
17403
+ let data65 = data.warnings;
17404
+ const _errs152 = errors;
17405
+ if (errors === _errs152) {
17406
+ if (Array.isArray(data65)) {
17407
+ const len8 = data65.length;
17408
+ for (let i8 = 0; i8 < len8; i8++) {
17409
+ const _errs154 = errors;
17410
+ if (typeof data65[i8] !== "string") {
17411
+ validate156.errors = [{
17412
+ instancePath: instancePath + "/warnings/" + i8,
17413
+ schemaPath: "#/properties/warnings/items/type",
17414
+ keyword: "type",
17415
+ params: { type: "string" },
17416
+ message: "must be string"
17417
+ }];
17418
+ return false;
17419
+ }
17420
+ if (!(_errs154 === errors)) break;
17421
+ }
17422
+ } else {
17423
+ validate156.errors = [{
17424
+ instancePath: instancePath + "/warnings",
17425
+ schemaPath: "#/properties/warnings/type",
17426
+ keyword: "type",
17427
+ params: { type: "array" },
17428
+ message: "must be array"
17429
+ }];
17430
+ return false;
17431
+ }
17432
+ }
17433
+ var valid0 = _errs152 === errors;
17434
+ } else var valid0 = true;
17435
+ if (valid0) {
17436
+ if (data.supervisor !== void 0) {
17437
+ let data67 = data.supervisor;
17438
+ const _errs156 = errors;
17439
+ const _errs157 = errors;
17440
+ let valid32 = false;
17441
+ const _errs158 = errors;
17442
+ if (errors === _errs158) {
17443
+ if (data67 && typeof data67 == "object" && !Array.isArray(data67)) {
17444
+ let missing11;
17445
+ if (data67.pid === void 0 && (missing11 = "pid") || data67.mode === void 0 && (missing11 = "mode") || data67.startedAt === void 0 && (missing11 = "startedAt") || data67.healthy === void 0 && (missing11 = "healthy")) {
17446
+ const err40 = {
17447
+ instancePath: instancePath + "/supervisor",
17448
+ schemaPath: "#/properties/supervisor/anyOf/0/required",
17449
+ keyword: "required",
17450
+ params: { missingProperty: missing11 },
17451
+ message: "must have required property '" + missing11 + "'"
17452
+ };
17453
+ if (vErrors === null) vErrors = [err40];
17454
+ else vErrors.push(err40);
17455
+ errors++;
17456
+ } else {
17457
+ if (data67.pid !== void 0) {
17458
+ let data68 = data67.pid;
17447
17459
  const _errs160 = errors;
17448
- if (typeof data68 !== "string" && data68 !== null) {
17449
- const err42 = {
17450
- instancePath: instancePath + "/supervisor/mode",
17451
- schemaPath: "#/properties/supervisor/anyOf/0/properties/mode/type",
17460
+ if (!(typeof data68 == "number") && data68 !== null) {
17461
+ const err41 = {
17462
+ instancePath: instancePath + "/supervisor/pid",
17463
+ schemaPath: "#/properties/supervisor/anyOf/0/properties/pid/type",
17452
17464
  keyword: "type",
17453
- params: { type: schema89.properties.supervisor.anyOf[0].properties.mode.type },
17454
- message: "must be string,null"
17465
+ params: { type: schema89.properties.supervisor.anyOf[0].properties.pid.type },
17466
+ message: "must be number,null"
17455
17467
  };
17456
- if (vErrors === null) vErrors = [err42];
17457
- else vErrors.push(err42);
17468
+ if (vErrors === null) vErrors = [err41];
17469
+ else vErrors.push(err41);
17458
17470
  errors++;
17459
17471
  }
17460
17472
  var valid33 = _errs160 === errors;
17461
17473
  } else var valid33 = true;
17462
17474
  if (valid33) {
17463
- if (data66.startedAt !== void 0) {
17464
- let data69 = data66.startedAt;
17475
+ if (data67.mode !== void 0) {
17476
+ let data69 = data67.mode;
17465
17477
  const _errs162 = errors;
17466
17478
  if (typeof data69 !== "string" && data69 !== null) {
17467
- const err43 = {
17468
- instancePath: instancePath + "/supervisor/startedAt",
17469
- schemaPath: "#/properties/supervisor/anyOf/0/properties/startedAt/type",
17479
+ const err42 = {
17480
+ instancePath: instancePath + "/supervisor/mode",
17481
+ schemaPath: "#/properties/supervisor/anyOf/0/properties/mode/type",
17470
17482
  keyword: "type",
17471
- params: { type: schema89.properties.supervisor.anyOf[0].properties.startedAt.type },
17483
+ params: { type: schema89.properties.supervisor.anyOf[0].properties.mode.type },
17472
17484
  message: "must be string,null"
17473
17485
  };
17474
- if (vErrors === null) vErrors = [err43];
17475
- else vErrors.push(err43);
17486
+ if (vErrors === null) vErrors = [err42];
17487
+ else vErrors.push(err42);
17476
17488
  errors++;
17477
17489
  }
17478
17490
  var valid33 = _errs162 === errors;
17479
17491
  } else var valid33 = true;
17480
17492
  if (valid33) {
17481
- if (data66.healthy !== void 0) {
17493
+ if (data67.startedAt !== void 0) {
17494
+ let data70 = data67.startedAt;
17482
17495
  const _errs164 = errors;
17483
- if (typeof data66.healthy !== "boolean") {
17484
- const err44 = {
17485
- instancePath: instancePath + "/supervisor/healthy",
17486
- schemaPath: "#/properties/supervisor/anyOf/0/properties/healthy/type",
17496
+ if (typeof data70 !== "string" && data70 !== null) {
17497
+ const err43 = {
17498
+ instancePath: instancePath + "/supervisor/startedAt",
17499
+ schemaPath: "#/properties/supervisor/anyOf/0/properties/startedAt/type",
17487
17500
  keyword: "type",
17488
- params: { type: "boolean" },
17489
- message: "must be boolean"
17501
+ params: { type: schema89.properties.supervisor.anyOf[0].properties.startedAt.type },
17502
+ message: "must be string,null"
17490
17503
  };
17491
- if (vErrors === null) vErrors = [err44];
17492
- else vErrors.push(err44);
17504
+ if (vErrors === null) vErrors = [err43];
17505
+ else vErrors.push(err43);
17493
17506
  errors++;
17494
17507
  }
17495
17508
  var valid33 = _errs164 === errors;
17496
17509
  } else var valid33 = true;
17497
- }
17498
- }
17499
- }
17500
- }
17501
- } else {
17502
- const err45 = {
17503
- instancePath: instancePath + "/supervisor",
17504
- schemaPath: "#/properties/supervisor/anyOf/0/type",
17505
- keyword: "type",
17506
- params: { type: "object" },
17507
- message: "must be object"
17508
- };
17509
- if (vErrors === null) vErrors = [err45];
17510
- else vErrors.push(err45);
17511
- errors++;
17512
- }
17513
- }
17514
- var _valid9 = _errs156 === errors;
17515
- valid32 = valid32 || _valid9;
17516
- if (!valid32) {
17517
- const _errs166 = errors;
17518
- if (data66 !== null) {
17519
- const err46 = {
17520
- instancePath: instancePath + "/supervisor",
17521
- schemaPath: "#/properties/supervisor/anyOf/1/type",
17522
- keyword: "type",
17523
- params: { type: "null" },
17524
- message: "must be null"
17525
- };
17526
- if (vErrors === null) vErrors = [err46];
17527
- else vErrors.push(err46);
17528
- errors++;
17529
- }
17530
- var _valid9 = _errs166 === errors;
17531
- valid32 = valid32 || _valid9;
17532
- }
17533
- if (!valid32) {
17534
- const err47 = {
17535
- instancePath: instancePath + "/supervisor",
17536
- schemaPath: "#/properties/supervisor/anyOf",
17537
- keyword: "anyOf",
17538
- params: {},
17539
- message: "must match a schema in anyOf"
17540
- };
17541
- if (vErrors === null) vErrors = [err47];
17542
- else vErrors.push(err47);
17543
- errors++;
17544
- validate156.errors = vErrors;
17545
- return false;
17546
- } else {
17547
- errors = _errs155;
17548
- if (vErrors !== null) {
17549
- if (_errs155) vErrors.length = _errs155;
17550
- else vErrors = null;
17551
- }
17552
- }
17553
- var valid0 = _errs154 === errors;
17554
- } else var valid0 = true;
17555
- if (valid0) {
17556
- if (data.logs !== void 0) {
17557
- let data71 = data.logs;
17558
- const _errs168 = errors;
17559
- const _errs169 = errors;
17560
- let valid34 = false;
17561
- const _errs170 = errors;
17562
- if (errors === _errs170) {
17563
- if (data71 && typeof data71 == "object" && !Array.isArray(data71)) {
17564
- let missing12;
17565
- if (data71.dir === void 0 && (missing12 = "dir") || data71.errorsSinceMarker === void 0 && (missing12 = "errorsSinceMarker")) {
17566
- const err48 = {
17567
- instancePath: instancePath + "/logs",
17568
- schemaPath: "#/properties/logs/anyOf/0/required",
17569
- keyword: "required",
17570
- params: { missingProperty: missing12 },
17571
- message: "must have required property '" + missing12 + "'"
17572
- };
17573
- if (vErrors === null) vErrors = [err48];
17574
- else vErrors.push(err48);
17575
- errors++;
17576
- } else {
17577
- if (data71.dir !== void 0) {
17578
- const _errs172 = errors;
17579
- if (typeof data71.dir !== "string") {
17580
- const err49 = {
17581
- instancePath: instancePath + "/logs/dir",
17582
- schemaPath: "#/properties/logs/anyOf/0/properties/dir/type",
17583
- keyword: "type",
17584
- params: { type: "string" },
17585
- message: "must be string"
17586
- };
17587
- if (vErrors === null) vErrors = [err49];
17588
- else vErrors.push(err49);
17589
- errors++;
17590
- }
17591
- var valid35 = _errs172 === errors;
17592
- } else var valid35 = true;
17593
- if (valid35) {
17594
- if (data71.errorsSinceMarker !== void 0) {
17595
- const _errs174 = errors;
17596
- if (!(typeof data71.errorsSinceMarker == "number")) {
17597
- const err50 = {
17598
- instancePath: instancePath + "/logs/errorsSinceMarker",
17599
- schemaPath: "#/properties/logs/anyOf/0/properties/errorsSinceMarker/type",
17600
- keyword: "type",
17601
- params: { type: "number" },
17602
- message: "must be number"
17603
- };
17604
- if (vErrors === null) vErrors = [err50];
17605
- else vErrors.push(err50);
17606
- errors++;
17510
+ if (valid33) {
17511
+ if (data67.healthy !== void 0) {
17512
+ const _errs166 = errors;
17513
+ if (typeof data67.healthy !== "boolean") {
17514
+ const err44 = {
17515
+ instancePath: instancePath + "/supervisor/healthy",
17516
+ schemaPath: "#/properties/supervisor/anyOf/0/properties/healthy/type",
17517
+ keyword: "type",
17518
+ params: { type: "boolean" },
17519
+ message: "must be boolean"
17520
+ };
17521
+ if (vErrors === null) vErrors = [err44];
17522
+ else vErrors.push(err44);
17523
+ errors++;
17524
+ }
17525
+ var valid33 = _errs166 === errors;
17526
+ } else var valid33 = true;
17607
17527
  }
17608
- var valid35 = _errs174 === errors;
17609
- } else var valid35 = true;
17528
+ }
17610
17529
  }
17611
17530
  }
17612
17531
  } else {
17613
- const err51 = {
17614
- instancePath: instancePath + "/logs",
17615
- schemaPath: "#/properties/logs/anyOf/0/type",
17532
+ const err45 = {
17533
+ instancePath: instancePath + "/supervisor",
17534
+ schemaPath: "#/properties/supervisor/anyOf/0/type",
17616
17535
  keyword: "type",
17617
17536
  params: { type: "object" },
17618
17537
  message: "must be object"
17619
17538
  };
17620
- if (vErrors === null) vErrors = [err51];
17621
- else vErrors.push(err51);
17539
+ if (vErrors === null) vErrors = [err45];
17540
+ else vErrors.push(err45);
17622
17541
  errors++;
17623
17542
  }
17624
17543
  }
17625
- var _valid10 = _errs170 === errors;
17626
- valid34 = valid34 || _valid10;
17627
- if (!valid34) {
17628
- const _errs176 = errors;
17629
- if (data71 !== null) {
17630
- const err52 = {
17631
- instancePath: instancePath + "/logs",
17632
- schemaPath: "#/properties/logs/anyOf/1/type",
17544
+ var _valid9 = _errs158 === errors;
17545
+ valid32 = valid32 || _valid9;
17546
+ if (!valid32) {
17547
+ const _errs168 = errors;
17548
+ if (data67 !== null) {
17549
+ const err46 = {
17550
+ instancePath: instancePath + "/supervisor",
17551
+ schemaPath: "#/properties/supervisor/anyOf/1/type",
17633
17552
  keyword: "type",
17634
17553
  params: { type: "null" },
17635
17554
  message: "must be null"
17636
17555
  };
17637
- if (vErrors === null) vErrors = [err52];
17638
- else vErrors.push(err52);
17556
+ if (vErrors === null) vErrors = [err46];
17557
+ else vErrors.push(err46);
17639
17558
  errors++;
17640
17559
  }
17641
- var _valid10 = _errs176 === errors;
17642
- valid34 = valid34 || _valid10;
17560
+ var _valid9 = _errs168 === errors;
17561
+ valid32 = valid32 || _valid9;
17643
17562
  }
17644
- if (!valid34) {
17645
- const err53 = {
17646
- instancePath: instancePath + "/logs",
17647
- schemaPath: "#/properties/logs/anyOf",
17563
+ if (!valid32) {
17564
+ const err47 = {
17565
+ instancePath: instancePath + "/supervisor",
17566
+ schemaPath: "#/properties/supervisor/anyOf",
17648
17567
  keyword: "anyOf",
17649
17568
  params: {},
17650
17569
  message: "must match a schema in anyOf"
17651
17570
  };
17652
- if (vErrors === null) vErrors = [err53];
17653
- else vErrors.push(err53);
17571
+ if (vErrors === null) vErrors = [err47];
17572
+ else vErrors.push(err47);
17654
17573
  errors++;
17655
17574
  validate156.errors = vErrors;
17656
17575
  return false;
17657
17576
  } else {
17658
- errors = _errs169;
17577
+ errors = _errs157;
17659
17578
  if (vErrors !== null) {
17660
- if (_errs169) vErrors.length = _errs169;
17579
+ if (_errs157) vErrors.length = _errs157;
17661
17580
  else vErrors = null;
17662
17581
  }
17663
17582
  }
17664
- var valid0 = _errs168 === errors;
17583
+ var valid0 = _errs156 === errors;
17665
17584
  } else var valid0 = true;
17666
17585
  if (valid0) {
17667
- if (data.agentDevice !== void 0) {
17668
- let data74 = data.agentDevice;
17669
- const _errs178 = errors;
17670
- if (errors === _errs178) {
17671
- if (data74 && typeof data74 == "object" && !Array.isArray(data74)) {
17672
- let missing13;
17673
- if (data74.stateDir === void 0 && (missing13 = "stateDir")) {
17674
- validate156.errors = [{
17675
- instancePath: instancePath + "/agentDevice",
17676
- schemaPath: "#/properties/agentDevice/required",
17586
+ if (data.logs !== void 0) {
17587
+ let data72 = data.logs;
17588
+ const _errs170 = errors;
17589
+ const _errs171 = errors;
17590
+ let valid34 = false;
17591
+ const _errs172 = errors;
17592
+ if (errors === _errs172) {
17593
+ if (data72 && typeof data72 == "object" && !Array.isArray(data72)) {
17594
+ let missing12;
17595
+ if (data72.dir === void 0 && (missing12 = "dir") || data72.errorsSinceMarker === void 0 && (missing12 = "errorsSinceMarker")) {
17596
+ const err48 = {
17597
+ instancePath: instancePath + "/logs",
17598
+ schemaPath: "#/properties/logs/anyOf/0/required",
17677
17599
  keyword: "required",
17678
- params: { missingProperty: missing13 },
17679
- message: "must have required property '" + missing13 + "'"
17680
- }];
17681
- return false;
17600
+ params: { missingProperty: missing12 },
17601
+ message: "must have required property '" + missing12 + "'"
17602
+ };
17603
+ if (vErrors === null) vErrors = [err48];
17604
+ else vErrors.push(err48);
17605
+ errors++;
17682
17606
  } else {
17683
- if (data74.stateDir !== void 0) {
17684
- const _errs180 = errors;
17685
- if (typeof data74.stateDir !== "string") {
17686
- validate156.errors = [{
17687
- instancePath: instancePath + "/agentDevice/stateDir",
17688
- schemaPath: "#/properties/agentDevice/properties/stateDir/type",
17607
+ if (data72.dir !== void 0) {
17608
+ const _errs174 = errors;
17609
+ if (typeof data72.dir !== "string") {
17610
+ const err49 = {
17611
+ instancePath: instancePath + "/logs/dir",
17612
+ schemaPath: "#/properties/logs/anyOf/0/properties/dir/type",
17689
17613
  keyword: "type",
17690
17614
  params: { type: "string" },
17691
17615
  message: "must be string"
17692
- }];
17693
- return false;
17616
+ };
17617
+ if (vErrors === null) vErrors = [err49];
17618
+ else vErrors.push(err49);
17619
+ errors++;
17694
17620
  }
17695
- var valid36 = _errs180 === errors;
17696
- } else var valid36 = true;
17697
- if (valid36) {
17698
- if (data74.installed !== void 0) {
17699
- const _errs182 = errors;
17700
- if (typeof data74.installed !== "boolean") {
17701
- validate156.errors = [{
17702
- instancePath: instancePath + "/agentDevice/installed",
17703
- schemaPath: "#/properties/agentDevice/properties/installed/type",
17621
+ var valid35 = _errs174 === errors;
17622
+ } else var valid35 = true;
17623
+ if (valid35) {
17624
+ if (data72.errorsSinceMarker !== void 0) {
17625
+ const _errs176 = errors;
17626
+ if (!(typeof data72.errorsSinceMarker == "number")) {
17627
+ const err50 = {
17628
+ instancePath: instancePath + "/logs/errorsSinceMarker",
17629
+ schemaPath: "#/properties/logs/anyOf/0/properties/errorsSinceMarker/type",
17704
17630
  keyword: "type",
17705
- params: { type: "boolean" },
17706
- message: "must be boolean"
17707
- }];
17708
- return false;
17631
+ params: { type: "number" },
17632
+ message: "must be number"
17633
+ };
17634
+ if (vErrors === null) vErrors = [err50];
17635
+ else vErrors.push(err50);
17636
+ errors++;
17709
17637
  }
17710
- var valid36 = _errs182 === errors;
17711
- } else var valid36 = true;
17638
+ var valid35 = _errs176 === errors;
17639
+ } else var valid35 = true;
17712
17640
  }
17713
17641
  }
17714
17642
  } else {
17715
- validate156.errors = [{
17716
- instancePath: instancePath + "/agentDevice",
17717
- schemaPath: "#/properties/agentDevice/type",
17643
+ const err51 = {
17644
+ instancePath: instancePath + "/logs",
17645
+ schemaPath: "#/properties/logs/anyOf/0/type",
17718
17646
  keyword: "type",
17719
17647
  params: { type: "object" },
17720
17648
  message: "must be object"
17721
- }];
17722
- return false;
17649
+ };
17650
+ if (vErrors === null) vErrors = [err51];
17651
+ else vErrors.push(err51);
17652
+ errors++;
17653
+ }
17654
+ }
17655
+ var _valid10 = _errs172 === errors;
17656
+ valid34 = valid34 || _valid10;
17657
+ if (!valid34) {
17658
+ const _errs178 = errors;
17659
+ if (data72 !== null) {
17660
+ const err52 = {
17661
+ instancePath: instancePath + "/logs",
17662
+ schemaPath: "#/properties/logs/anyOf/1/type",
17663
+ keyword: "type",
17664
+ params: { type: "null" },
17665
+ message: "must be null"
17666
+ };
17667
+ if (vErrors === null) vErrors = [err52];
17668
+ else vErrors.push(err52);
17669
+ errors++;
17670
+ }
17671
+ var _valid10 = _errs178 === errors;
17672
+ valid34 = valid34 || _valid10;
17673
+ }
17674
+ if (!valid34) {
17675
+ const err53 = {
17676
+ instancePath: instancePath + "/logs",
17677
+ schemaPath: "#/properties/logs/anyOf",
17678
+ keyword: "anyOf",
17679
+ params: {},
17680
+ message: "must match a schema in anyOf"
17681
+ };
17682
+ if (vErrors === null) vErrors = [err53];
17683
+ else vErrors.push(err53);
17684
+ errors++;
17685
+ validate156.errors = vErrors;
17686
+ return false;
17687
+ } else {
17688
+ errors = _errs171;
17689
+ if (vErrors !== null) {
17690
+ if (_errs171) vErrors.length = _errs171;
17691
+ else vErrors = null;
17723
17692
  }
17724
17693
  }
17725
- var valid0 = _errs178 === errors;
17694
+ var valid0 = _errs170 === errors;
17726
17695
  } else var valid0 = true;
17727
17696
  if (valid0) {
17728
- if (data.disk !== void 0) {
17729
- const _errs184 = errors;
17730
- if (!validate225(data.disk, {
17731
- instancePath: instancePath + "/disk",
17732
- parentData: data,
17733
- parentDataProperty: "disk",
17734
- rootData
17735
- })) {
17736
- vErrors = vErrors === null ? validate225.errors : vErrors.concat(validate225.errors);
17737
- errors = vErrors.length;
17697
+ if (data.agentDevice !== void 0) {
17698
+ let data75 = data.agentDevice;
17699
+ const _errs180 = errors;
17700
+ if (errors === _errs180) {
17701
+ if (data75 && typeof data75 == "object" && !Array.isArray(data75)) {
17702
+ let missing13;
17703
+ if (data75.stateDir === void 0 && (missing13 = "stateDir")) {
17704
+ validate156.errors = [{
17705
+ instancePath: instancePath + "/agentDevice",
17706
+ schemaPath: "#/properties/agentDevice/required",
17707
+ keyword: "required",
17708
+ params: { missingProperty: missing13 },
17709
+ message: "must have required property '" + missing13 + "'"
17710
+ }];
17711
+ return false;
17712
+ } else {
17713
+ if (data75.stateDir !== void 0) {
17714
+ const _errs182 = errors;
17715
+ if (typeof data75.stateDir !== "string") {
17716
+ validate156.errors = [{
17717
+ instancePath: instancePath + "/agentDevice/stateDir",
17718
+ schemaPath: "#/properties/agentDevice/properties/stateDir/type",
17719
+ keyword: "type",
17720
+ params: { type: "string" },
17721
+ message: "must be string"
17722
+ }];
17723
+ return false;
17724
+ }
17725
+ var valid36 = _errs182 === errors;
17726
+ } else var valid36 = true;
17727
+ if (valid36) {
17728
+ if (data75.installed !== void 0) {
17729
+ const _errs184 = errors;
17730
+ if (typeof data75.installed !== "boolean") {
17731
+ validate156.errors = [{
17732
+ instancePath: instancePath + "/agentDevice/installed",
17733
+ schemaPath: "#/properties/agentDevice/properties/installed/type",
17734
+ keyword: "type",
17735
+ params: { type: "boolean" },
17736
+ message: "must be boolean"
17737
+ }];
17738
+ return false;
17739
+ }
17740
+ var valid36 = _errs184 === errors;
17741
+ } else var valid36 = true;
17742
+ }
17743
+ }
17744
+ } else {
17745
+ validate156.errors = [{
17746
+ instancePath: instancePath + "/agentDevice",
17747
+ schemaPath: "#/properties/agentDevice/type",
17748
+ keyword: "type",
17749
+ params: { type: "object" },
17750
+ message: "must be object"
17751
+ }];
17752
+ return false;
17753
+ }
17738
17754
  }
17739
- var valid0 = _errs184 === errors;
17755
+ var valid0 = _errs180 === errors;
17740
17756
  } else var valid0 = true;
17757
+ if (valid0) {
17758
+ if (data.disk !== void 0) {
17759
+ const _errs186 = errors;
17760
+ if (!validate225(data.disk, {
17761
+ instancePath: instancePath + "/disk",
17762
+ parentData: data,
17763
+ parentDataProperty: "disk",
17764
+ rootData
17765
+ })) {
17766
+ vErrors = vErrors === null ? validate225.errors : vErrors.concat(validate225.errors);
17767
+ errors = vErrors.length;
17768
+ }
17769
+ var valid0 = _errs186 === errors;
17770
+ } else var valid0 = true;
17771
+ }
17741
17772
  }
17742
17773
  }
17743
17774
  }