@stim-cli/core 1.32.0 → 1.34.0

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.
@@ -12630,6 +12630,10 @@ const schema105 = {
12630
12630
  }
12631
12631
  },
12632
12632
  "live": { "type": "boolean" },
12633
+ "pathMissing": {
12634
+ "type": "boolean",
12635
+ "const": true
12636
+ },
12633
12637
  "phaseSince": { "type": ["string", "null"] },
12634
12638
  "recording": {
12635
12639
  "type": "object",
@@ -19642,362 +19646,389 @@ function validate178(data, { instancePath = "", parentData, parentDataProperty,
19642
19646
  var valid0 = _errs152 === errors;
19643
19647
  } else var valid0 = true;
19644
19648
  if (valid0) {
19645
- if (data.phaseSince !== void 0) {
19646
- let data64 = data.phaseSince;
19649
+ if (data.pathMissing !== void 0) {
19650
+ let data64 = data.pathMissing;
19647
19651
  const _errs154 = errors;
19648
- if (typeof data64 !== "string" && data64 !== null) {
19652
+ if (typeof data64 !== "boolean") {
19649
19653
  validate178.errors = [{
19650
- instancePath: instancePath + "/phaseSince",
19651
- schemaPath: "#/properties/phaseSince/type",
19654
+ instancePath: instancePath + "/pathMissing",
19655
+ schemaPath: "#/properties/pathMissing/type",
19652
19656
  keyword: "type",
19653
- params: { type: schema105.properties.phaseSince.type },
19654
- message: "must be string,null"
19657
+ params: { type: "boolean" },
19658
+ message: "must be boolean"
19659
+ }];
19660
+ return false;
19661
+ }
19662
+ if (true !== data64) {
19663
+ validate178.errors = [{
19664
+ instancePath: instancePath + "/pathMissing",
19665
+ schemaPath: "#/properties/pathMissing/const",
19666
+ keyword: "const",
19667
+ params: { allowedValue: true },
19668
+ message: "must be equal to constant"
19655
19669
  }];
19656
19670
  return false;
19657
19671
  }
19658
19672
  var valid0 = _errs154 === errors;
19659
19673
  } else var valid0 = true;
19660
19674
  if (valid0) {
19661
- if (data.recording !== void 0) {
19662
- let data65 = data.recording;
19675
+ if (data.phaseSince !== void 0) {
19676
+ let data65 = data.phaseSince;
19663
19677
  const _errs156 = errors;
19664
- if (errors === _errs156) {
19665
- if (data65 && typeof data65 == "object" && !Array.isArray(data65)) {
19666
- let missing11;
19667
- if (data65.enabled === void 0 && (missing11 = "enabled")) {
19668
- validate178.errors = [{
19669
- instancePath: instancePath + "/recording",
19670
- schemaPath: "#/properties/recording/required",
19671
- keyword: "required",
19672
- params: { missingProperty: missing11 },
19673
- message: "must have required property '" + missing11 + "'"
19674
- }];
19675
- return false;
19676
- } else if (data65.enabled !== void 0) {
19677
- if (typeof data65.enabled !== "boolean") {
19678
+ if (typeof data65 !== "string" && data65 !== null) {
19679
+ validate178.errors = [{
19680
+ instancePath: instancePath + "/phaseSince",
19681
+ schemaPath: "#/properties/phaseSince/type",
19682
+ keyword: "type",
19683
+ params: { type: schema105.properties.phaseSince.type },
19684
+ message: "must be string,null"
19685
+ }];
19686
+ return false;
19687
+ }
19688
+ var valid0 = _errs156 === errors;
19689
+ } else var valid0 = true;
19690
+ if (valid0) {
19691
+ if (data.recording !== void 0) {
19692
+ let data66 = data.recording;
19693
+ const _errs158 = errors;
19694
+ if (errors === _errs158) {
19695
+ if (data66 && typeof data66 == "object" && !Array.isArray(data66)) {
19696
+ let missing11;
19697
+ if (data66.enabled === void 0 && (missing11 = "enabled")) {
19678
19698
  validate178.errors = [{
19679
- instancePath: instancePath + "/recording/enabled",
19680
- schemaPath: "#/properties/recording/properties/enabled/type",
19681
- keyword: "type",
19682
- params: { type: "boolean" },
19683
- message: "must be boolean"
19699
+ instancePath: instancePath + "/recording",
19700
+ schemaPath: "#/properties/recording/required",
19701
+ keyword: "required",
19702
+ params: { missingProperty: missing11 },
19703
+ message: "must have required property '" + missing11 + "'"
19684
19704
  }];
19685
19705
  return false;
19706
+ } else if (data66.enabled !== void 0) {
19707
+ if (typeof data66.enabled !== "boolean") {
19708
+ validate178.errors = [{
19709
+ instancePath: instancePath + "/recording/enabled",
19710
+ schemaPath: "#/properties/recording/properties/enabled/type",
19711
+ keyword: "type",
19712
+ params: { type: "boolean" },
19713
+ message: "must be boolean"
19714
+ }];
19715
+ return false;
19716
+ }
19686
19717
  }
19718
+ } else {
19719
+ validate178.errors = [{
19720
+ instancePath: instancePath + "/recording",
19721
+ schemaPath: "#/properties/recording/type",
19722
+ keyword: "type",
19723
+ params: { type: "object" },
19724
+ message: "must be object"
19725
+ }];
19726
+ return false;
19687
19727
  }
19688
- } else {
19689
- validate178.errors = [{
19690
- instancePath: instancePath + "/recording",
19691
- schemaPath: "#/properties/recording/type",
19692
- keyword: "type",
19693
- params: { type: "object" },
19694
- message: "must be object"
19695
- }];
19696
- return false;
19697
19728
  }
19698
- }
19699
- var valid0 = _errs156 === errors;
19700
- } else var valid0 = true;
19701
- if (valid0) {
19702
- if (data.hidden !== void 0) {
19703
- let data67 = data.hidden;
19704
- const _errs160 = errors;
19705
- if (typeof data67 !== "boolean") {
19706
- validate178.errors = [{
19707
- instancePath: instancePath + "/hidden",
19708
- schemaPath: "#/properties/hidden/type",
19709
- keyword: "type",
19710
- params: { type: "boolean" },
19711
- message: "must be boolean"
19712
- }];
19713
- return false;
19714
- }
19715
- if (true !== data67) {
19716
- validate178.errors = [{
19717
- instancePath: instancePath + "/hidden",
19718
- schemaPath: "#/properties/hidden/const",
19719
- keyword: "const",
19720
- params: { allowedValue: true },
19721
- message: "must be equal to constant"
19722
- }];
19723
- return false;
19724
- }
19725
- var valid0 = _errs160 === errors;
19729
+ var valid0 = _errs158 === errors;
19726
19730
  } else var valid0 = true;
19727
19731
  if (valid0) {
19728
- if (data.memoryMb !== void 0) {
19732
+ if (data.hidden !== void 0) {
19733
+ let data68 = data.hidden;
19729
19734
  const _errs162 = errors;
19730
- if (!(typeof data.memoryMb == "number")) {
19735
+ if (typeof data68 !== "boolean") {
19731
19736
  validate178.errors = [{
19732
- instancePath: instancePath + "/memoryMb",
19733
- schemaPath: "#/properties/memoryMb/type",
19737
+ instancePath: instancePath + "/hidden",
19738
+ schemaPath: "#/properties/hidden/type",
19734
19739
  keyword: "type",
19735
- params: { type: "number" },
19736
- message: "must be number"
19740
+ params: { type: "boolean" },
19741
+ message: "must be boolean"
19742
+ }];
19743
+ return false;
19744
+ }
19745
+ if (true !== data68) {
19746
+ validate178.errors = [{
19747
+ instancePath: instancePath + "/hidden",
19748
+ schemaPath: "#/properties/hidden/const",
19749
+ keyword: "const",
19750
+ params: { allowedValue: true },
19751
+ message: "must be equal to constant"
19737
19752
  }];
19738
19753
  return false;
19739
19754
  }
19740
19755
  var valid0 = _errs162 === errors;
19741
19756
  } else var valid0 = true;
19742
19757
  if (valid0) {
19743
- if (data.warnings !== void 0) {
19744
- let data69 = data.warnings;
19758
+ if (data.memoryMb !== void 0) {
19745
19759
  const _errs164 = errors;
19746
- if (errors === _errs164) {
19747
- if (Array.isArray(data69)) {
19748
- const len8 = data69.length;
19749
- for (let i8 = 0; i8 < len8; i8++) {
19750
- const _errs166 = errors;
19751
- if (typeof data69[i8] !== "string") {
19752
- validate178.errors = [{
19753
- instancePath: instancePath + "/warnings/" + i8,
19754
- schemaPath: "#/properties/warnings/items/type",
19755
- keyword: "type",
19756
- params: { type: "string" },
19757
- message: "must be string"
19758
- }];
19759
- return false;
19760
- }
19761
- if (!(_errs166 === errors)) break;
19762
- }
19763
- } else {
19764
- validate178.errors = [{
19765
- instancePath: instancePath + "/warnings",
19766
- schemaPath: "#/properties/warnings/type",
19767
- keyword: "type",
19768
- params: { type: "array" },
19769
- message: "must be array"
19770
- }];
19771
- return false;
19772
- }
19760
+ if (!(typeof data.memoryMb == "number")) {
19761
+ validate178.errors = [{
19762
+ instancePath: instancePath + "/memoryMb",
19763
+ schemaPath: "#/properties/memoryMb/type",
19764
+ keyword: "type",
19765
+ params: { type: "number" },
19766
+ message: "must be number"
19767
+ }];
19768
+ return false;
19773
19769
  }
19774
19770
  var valid0 = _errs164 === errors;
19775
19771
  } else var valid0 = true;
19776
19772
  if (valid0) {
19777
- if (data.supervisor !== void 0) {
19778
- let data71 = data.supervisor;
19779
- const _errs168 = errors;
19780
- const _errs169 = errors;
19781
- let valid34 = false;
19782
- const _errs170 = errors;
19783
- if (errors === _errs170) {
19784
- if (data71 && typeof data71 == "object" && !Array.isArray(data71)) {
19785
- let missing12;
19786
- if (data71.pid === void 0 && (missing12 = "pid") || data71.mode === void 0 && (missing12 = "mode") || data71.startedAt === void 0 && (missing12 = "startedAt") || data71.healthy === void 0 && (missing12 = "healthy")) {
19787
- const err46 = {
19788
- instancePath: instancePath + "/supervisor",
19789
- schemaPath: "#/properties/supervisor/anyOf/0/required",
19790
- keyword: "required",
19791
- params: { missingProperty: missing12 },
19792
- message: "must have required property '" + missing12 + "'"
19793
- };
19794
- if (vErrors === null) vErrors = [err46];
19795
- else vErrors.push(err46);
19796
- errors++;
19797
- } else {
19798
- if (data71.pid !== void 0) {
19799
- let data72 = data71.pid;
19800
- const _errs172 = errors;
19801
- if (!(typeof data72 == "number") && data72 !== null) {
19802
- const err47 = {
19803
- instancePath: instancePath + "/supervisor/pid",
19804
- schemaPath: "#/properties/supervisor/anyOf/0/properties/pid/type",
19805
- keyword: "type",
19806
- params: { type: schema105.properties.supervisor.anyOf[0].properties.pid.type },
19807
- message: "must be number,null"
19808
- };
19809
- if (vErrors === null) vErrors = [err47];
19810
- else vErrors.push(err47);
19811
- errors++;
19812
- }
19813
- var valid35 = _errs172 === errors;
19814
- } else var valid35 = true;
19815
- if (valid35) {
19816
- if (data71.mode !== void 0) {
19817
- let data73 = data71.mode;
19773
+ if (data.warnings !== void 0) {
19774
+ let data70 = data.warnings;
19775
+ const _errs166 = errors;
19776
+ if (errors === _errs166) {
19777
+ if (Array.isArray(data70)) {
19778
+ const len8 = data70.length;
19779
+ for (let i8 = 0; i8 < len8; i8++) {
19780
+ const _errs168 = errors;
19781
+ if (typeof data70[i8] !== "string") {
19782
+ validate178.errors = [{
19783
+ instancePath: instancePath + "/warnings/" + i8,
19784
+ schemaPath: "#/properties/warnings/items/type",
19785
+ keyword: "type",
19786
+ params: { type: "string" },
19787
+ message: "must be string"
19788
+ }];
19789
+ return false;
19790
+ }
19791
+ if (!(_errs168 === errors)) break;
19792
+ }
19793
+ } else {
19794
+ validate178.errors = [{
19795
+ instancePath: instancePath + "/warnings",
19796
+ schemaPath: "#/properties/warnings/type",
19797
+ keyword: "type",
19798
+ params: { type: "array" },
19799
+ message: "must be array"
19800
+ }];
19801
+ return false;
19802
+ }
19803
+ }
19804
+ var valid0 = _errs166 === errors;
19805
+ } else var valid0 = true;
19806
+ if (valid0) {
19807
+ if (data.supervisor !== void 0) {
19808
+ let data72 = data.supervisor;
19809
+ const _errs170 = errors;
19810
+ const _errs171 = errors;
19811
+ let valid34 = false;
19812
+ const _errs172 = errors;
19813
+ if (errors === _errs172) {
19814
+ if (data72 && typeof data72 == "object" && !Array.isArray(data72)) {
19815
+ let missing12;
19816
+ if (data72.pid === void 0 && (missing12 = "pid") || data72.mode === void 0 && (missing12 = "mode") || data72.startedAt === void 0 && (missing12 = "startedAt") || data72.healthy === void 0 && (missing12 = "healthy")) {
19817
+ const err46 = {
19818
+ instancePath: instancePath + "/supervisor",
19819
+ schemaPath: "#/properties/supervisor/anyOf/0/required",
19820
+ keyword: "required",
19821
+ params: { missingProperty: missing12 },
19822
+ message: "must have required property '" + missing12 + "'"
19823
+ };
19824
+ if (vErrors === null) vErrors = [err46];
19825
+ else vErrors.push(err46);
19826
+ errors++;
19827
+ } else {
19828
+ if (data72.pid !== void 0) {
19829
+ let data73 = data72.pid;
19818
19830
  const _errs174 = errors;
19819
- if (typeof data73 !== "string" && data73 !== null) {
19820
- const err48 = {
19821
- instancePath: instancePath + "/supervisor/mode",
19822
- schemaPath: "#/properties/supervisor/anyOf/0/properties/mode/type",
19831
+ if (!(typeof data73 == "number") && data73 !== null) {
19832
+ const err47 = {
19833
+ instancePath: instancePath + "/supervisor/pid",
19834
+ schemaPath: "#/properties/supervisor/anyOf/0/properties/pid/type",
19823
19835
  keyword: "type",
19824
- params: { type: schema105.properties.supervisor.anyOf[0].properties.mode.type },
19825
- message: "must be string,null"
19836
+ params: { type: schema105.properties.supervisor.anyOf[0].properties.pid.type },
19837
+ message: "must be number,null"
19826
19838
  };
19827
- if (vErrors === null) vErrors = [err48];
19828
- else vErrors.push(err48);
19839
+ if (vErrors === null) vErrors = [err47];
19840
+ else vErrors.push(err47);
19829
19841
  errors++;
19830
19842
  }
19831
19843
  var valid35 = _errs174 === errors;
19832
19844
  } else var valid35 = true;
19833
19845
  if (valid35) {
19834
- if (data71.startedAt !== void 0) {
19835
- let data74 = data71.startedAt;
19846
+ if (data72.mode !== void 0) {
19847
+ let data74 = data72.mode;
19836
19848
  const _errs176 = errors;
19837
19849
  if (typeof data74 !== "string" && data74 !== null) {
19838
- const err49 = {
19839
- instancePath: instancePath + "/supervisor/startedAt",
19840
- schemaPath: "#/properties/supervisor/anyOf/0/properties/startedAt/type",
19850
+ const err48 = {
19851
+ instancePath: instancePath + "/supervisor/mode",
19852
+ schemaPath: "#/properties/supervisor/anyOf/0/properties/mode/type",
19841
19853
  keyword: "type",
19842
- params: { type: schema105.properties.supervisor.anyOf[0].properties.startedAt.type },
19854
+ params: { type: schema105.properties.supervisor.anyOf[0].properties.mode.type },
19843
19855
  message: "must be string,null"
19844
19856
  };
19845
- if (vErrors === null) vErrors = [err49];
19846
- else vErrors.push(err49);
19857
+ if (vErrors === null) vErrors = [err48];
19858
+ else vErrors.push(err48);
19847
19859
  errors++;
19848
19860
  }
19849
19861
  var valid35 = _errs176 === errors;
19850
19862
  } else var valid35 = true;
19851
19863
  if (valid35) {
19852
- if (data71.healthy !== void 0) {
19864
+ if (data72.startedAt !== void 0) {
19865
+ let data75 = data72.startedAt;
19853
19866
  const _errs178 = errors;
19854
- if (typeof data71.healthy !== "boolean") {
19855
- const err50 = {
19856
- instancePath: instancePath + "/supervisor/healthy",
19857
- schemaPath: "#/properties/supervisor/anyOf/0/properties/healthy/type",
19867
+ if (typeof data75 !== "string" && data75 !== null) {
19868
+ const err49 = {
19869
+ instancePath: instancePath + "/supervisor/startedAt",
19870
+ schemaPath: "#/properties/supervisor/anyOf/0/properties/startedAt/type",
19858
19871
  keyword: "type",
19859
- params: { type: "boolean" },
19860
- message: "must be boolean"
19872
+ params: { type: schema105.properties.supervisor.anyOf[0].properties.startedAt.type },
19873
+ message: "must be string,null"
19861
19874
  };
19862
- if (vErrors === null) vErrors = [err50];
19863
- else vErrors.push(err50);
19875
+ if (vErrors === null) vErrors = [err49];
19876
+ else vErrors.push(err49);
19864
19877
  errors++;
19865
19878
  }
19866
19879
  var valid35 = _errs178 === errors;
19867
19880
  } else var valid35 = true;
19881
+ if (valid35) {
19882
+ if (data72.healthy !== void 0) {
19883
+ const _errs180 = errors;
19884
+ if (typeof data72.healthy !== "boolean") {
19885
+ const err50 = {
19886
+ instancePath: instancePath + "/supervisor/healthy",
19887
+ schemaPath: "#/properties/supervisor/anyOf/0/properties/healthy/type",
19888
+ keyword: "type",
19889
+ params: { type: "boolean" },
19890
+ message: "must be boolean"
19891
+ };
19892
+ if (vErrors === null) vErrors = [err50];
19893
+ else vErrors.push(err50);
19894
+ errors++;
19895
+ }
19896
+ var valid35 = _errs180 === errors;
19897
+ } else var valid35 = true;
19898
+ }
19868
19899
  }
19869
19900
  }
19870
19901
  }
19902
+ } else {
19903
+ const err51 = {
19904
+ instancePath: instancePath + "/supervisor",
19905
+ schemaPath: "#/properties/supervisor/anyOf/0/type",
19906
+ keyword: "type",
19907
+ params: { type: "object" },
19908
+ message: "must be object"
19909
+ };
19910
+ if (vErrors === null) vErrors = [err51];
19911
+ else vErrors.push(err51);
19912
+ errors++;
19871
19913
  }
19872
- } else {
19873
- const err51 = {
19874
- instancePath: instancePath + "/supervisor",
19875
- schemaPath: "#/properties/supervisor/anyOf/0/type",
19876
- keyword: "type",
19877
- params: { type: "object" },
19878
- message: "must be object"
19879
- };
19880
- if (vErrors === null) vErrors = [err51];
19881
- else vErrors.push(err51);
19882
- errors++;
19883
19914
  }
19884
- }
19885
- var _valid10 = _errs170 === errors;
19886
- valid34 = valid34 || _valid10;
19887
- if (!valid34) {
19888
- const _errs180 = errors;
19889
- if (data71 !== null) {
19890
- const err52 = {
19915
+ var _valid10 = _errs172 === errors;
19916
+ valid34 = valid34 || _valid10;
19917
+ if (!valid34) {
19918
+ const _errs182 = errors;
19919
+ if (data72 !== null) {
19920
+ const err52 = {
19921
+ instancePath: instancePath + "/supervisor",
19922
+ schemaPath: "#/properties/supervisor/anyOf/1/type",
19923
+ keyword: "type",
19924
+ params: { type: "null" },
19925
+ message: "must be null"
19926
+ };
19927
+ if (vErrors === null) vErrors = [err52];
19928
+ else vErrors.push(err52);
19929
+ errors++;
19930
+ }
19931
+ var _valid10 = _errs182 === errors;
19932
+ valid34 = valid34 || _valid10;
19933
+ }
19934
+ if (!valid34) {
19935
+ const err53 = {
19891
19936
  instancePath: instancePath + "/supervisor",
19892
- schemaPath: "#/properties/supervisor/anyOf/1/type",
19893
- keyword: "type",
19894
- params: { type: "null" },
19895
- message: "must be null"
19937
+ schemaPath: "#/properties/supervisor/anyOf",
19938
+ keyword: "anyOf",
19939
+ params: {},
19940
+ message: "must match a schema in anyOf"
19896
19941
  };
19897
- if (vErrors === null) vErrors = [err52];
19898
- else vErrors.push(err52);
19942
+ if (vErrors === null) vErrors = [err53];
19943
+ else vErrors.push(err53);
19899
19944
  errors++;
19945
+ validate178.errors = vErrors;
19946
+ return false;
19947
+ } else {
19948
+ errors = _errs171;
19949
+ if (vErrors !== null) {
19950
+ if (_errs171) vErrors.length = _errs171;
19951
+ else vErrors = null;
19952
+ }
19900
19953
  }
19901
- var _valid10 = _errs180 === errors;
19902
- valid34 = valid34 || _valid10;
19903
- }
19904
- if (!valid34) {
19905
- const err53 = {
19906
- instancePath: instancePath + "/supervisor",
19907
- schemaPath: "#/properties/supervisor/anyOf",
19908
- keyword: "anyOf",
19909
- params: {},
19910
- message: "must match a schema in anyOf"
19911
- };
19912
- if (vErrors === null) vErrors = [err53];
19913
- else vErrors.push(err53);
19914
- errors++;
19915
- validate178.errors = vErrors;
19916
- return false;
19917
- } else {
19918
- errors = _errs169;
19919
- if (vErrors !== null) {
19920
- if (_errs169) vErrors.length = _errs169;
19921
- else vErrors = null;
19922
- }
19923
- }
19924
- var valid0 = _errs168 === errors;
19925
- } else var valid0 = true;
19926
- if (valid0) {
19927
- if (data.agentDevice !== void 0) {
19928
- let data76 = data.agentDevice;
19929
- const _errs182 = errors;
19930
- if (errors === _errs182) {
19931
- if (data76 && typeof data76 == "object" && !Array.isArray(data76)) {
19932
- let missing13;
19933
- if (data76.stateDir === void 0 && (missing13 = "stateDir")) {
19934
- validate178.errors = [{
19935
- instancePath: instancePath + "/agentDevice",
19936
- schemaPath: "#/properties/agentDevice/required",
19937
- keyword: "required",
19938
- params: { missingProperty: missing13 },
19939
- message: "must have required property '" + missing13 + "'"
19940
- }];
19941
- return false;
19942
- } else {
19943
- if (data76.stateDir !== void 0) {
19944
- const _errs184 = errors;
19945
- if (typeof data76.stateDir !== "string") {
19946
- validate178.errors = [{
19947
- instancePath: instancePath + "/agentDevice/stateDir",
19948
- schemaPath: "#/properties/agentDevice/properties/stateDir/type",
19949
- keyword: "type",
19950
- params: { type: "string" },
19951
- message: "must be string"
19952
- }];
19953
- return false;
19954
- }
19955
- var valid36 = _errs184 === errors;
19956
- } else var valid36 = true;
19957
- if (valid36) {
19958
- if (data76.installed !== void 0) {
19954
+ var valid0 = _errs170 === errors;
19955
+ } else var valid0 = true;
19956
+ if (valid0) {
19957
+ if (data.agentDevice !== void 0) {
19958
+ let data77 = data.agentDevice;
19959
+ const _errs184 = errors;
19960
+ if (errors === _errs184) {
19961
+ if (data77 && typeof data77 == "object" && !Array.isArray(data77)) {
19962
+ let missing13;
19963
+ if (data77.stateDir === void 0 && (missing13 = "stateDir")) {
19964
+ validate178.errors = [{
19965
+ instancePath: instancePath + "/agentDevice",
19966
+ schemaPath: "#/properties/agentDevice/required",
19967
+ keyword: "required",
19968
+ params: { missingProperty: missing13 },
19969
+ message: "must have required property '" + missing13 + "'"
19970
+ }];
19971
+ return false;
19972
+ } else {
19973
+ if (data77.stateDir !== void 0) {
19959
19974
  const _errs186 = errors;
19960
- if (typeof data76.installed !== "boolean") {
19975
+ if (typeof data77.stateDir !== "string") {
19961
19976
  validate178.errors = [{
19962
- instancePath: instancePath + "/agentDevice/installed",
19963
- schemaPath: "#/properties/agentDevice/properties/installed/type",
19977
+ instancePath: instancePath + "/agentDevice/stateDir",
19978
+ schemaPath: "#/properties/agentDevice/properties/stateDir/type",
19964
19979
  keyword: "type",
19965
- params: { type: "boolean" },
19966
- message: "must be boolean"
19980
+ params: { type: "string" },
19981
+ message: "must be string"
19967
19982
  }];
19968
19983
  return false;
19969
19984
  }
19970
19985
  var valid36 = _errs186 === errors;
19971
19986
  } else var valid36 = true;
19987
+ if (valid36) {
19988
+ if (data77.installed !== void 0) {
19989
+ const _errs188 = errors;
19990
+ if (typeof data77.installed !== "boolean") {
19991
+ validate178.errors = [{
19992
+ instancePath: instancePath + "/agentDevice/installed",
19993
+ schemaPath: "#/properties/agentDevice/properties/installed/type",
19994
+ keyword: "type",
19995
+ params: { type: "boolean" },
19996
+ message: "must be boolean"
19997
+ }];
19998
+ return false;
19999
+ }
20000
+ var valid36 = _errs188 === errors;
20001
+ } else var valid36 = true;
20002
+ }
19972
20003
  }
20004
+ } else {
20005
+ validate178.errors = [{
20006
+ instancePath: instancePath + "/agentDevice",
20007
+ schemaPath: "#/properties/agentDevice/type",
20008
+ keyword: "type",
20009
+ params: { type: "object" },
20010
+ message: "must be object"
20011
+ }];
20012
+ return false;
19973
20013
  }
19974
- } else {
19975
- validate178.errors = [{
19976
- instancePath: instancePath + "/agentDevice",
19977
- schemaPath: "#/properties/agentDevice/type",
19978
- keyword: "type",
19979
- params: { type: "object" },
19980
- message: "must be object"
19981
- }];
19982
- return false;
19983
20014
  }
19984
- }
19985
- var valid0 = _errs182 === errors;
19986
- } else var valid0 = true;
19987
- if (valid0) {
19988
- if (data.disk !== void 0) {
19989
- const _errs188 = errors;
19990
- if (!validate247(data.disk, {
19991
- instancePath: instancePath + "/disk",
19992
- parentData: data,
19993
- parentDataProperty: "disk",
19994
- rootData
19995
- })) {
19996
- vErrors = vErrors === null ? validate247.errors : vErrors.concat(validate247.errors);
19997
- errors = vErrors.length;
19998
- }
19999
- var valid0 = _errs188 === errors;
20015
+ var valid0 = _errs184 === errors;
20000
20016
  } else var valid0 = true;
20017
+ if (valid0) {
20018
+ if (data.disk !== void 0) {
20019
+ const _errs190 = errors;
20020
+ if (!validate247(data.disk, {
20021
+ instancePath: instancePath + "/disk",
20022
+ parentData: data,
20023
+ parentDataProperty: "disk",
20024
+ rootData
20025
+ })) {
20026
+ vErrors = vErrors === null ? validate247.errors : vErrors.concat(validate247.errors);
20027
+ errors = vErrors.length;
20028
+ }
20029
+ var valid0 = _errs190 === errors;
20030
+ } else var valid0 = true;
20031
+ }
20001
20032
  }
20002
20033
  }
20003
20034
  }
@@ -24626,362 +24657,389 @@ function validate280(data, { instancePath = "", parentData, parentDataProperty,
24626
24657
  var valid0 = _errs152 === errors;
24627
24658
  } else var valid0 = true;
24628
24659
  if (valid0) {
24629
- if (data.phaseSince !== void 0) {
24630
- let data64 = data.phaseSince;
24660
+ if (data.pathMissing !== void 0) {
24661
+ let data64 = data.pathMissing;
24631
24662
  const _errs154 = errors;
24632
- if (typeof data64 !== "string" && data64 !== null) {
24663
+ if (typeof data64 !== "boolean") {
24633
24664
  validate280.errors = [{
24634
- instancePath: instancePath + "/phaseSince",
24635
- schemaPath: "#/properties/phaseSince/type",
24665
+ instancePath: instancePath + "/pathMissing",
24666
+ schemaPath: "#/properties/pathMissing/type",
24636
24667
  keyword: "type",
24637
- params: { type: schema105.properties.phaseSince.type },
24638
- message: "must be string,null"
24668
+ params: { type: "boolean" },
24669
+ message: "must be boolean"
24670
+ }];
24671
+ return false;
24672
+ }
24673
+ if (true !== data64) {
24674
+ validate280.errors = [{
24675
+ instancePath: instancePath + "/pathMissing",
24676
+ schemaPath: "#/properties/pathMissing/const",
24677
+ keyword: "const",
24678
+ params: { allowedValue: true },
24679
+ message: "must be equal to constant"
24639
24680
  }];
24640
24681
  return false;
24641
24682
  }
24642
24683
  var valid0 = _errs154 === errors;
24643
24684
  } else var valid0 = true;
24644
24685
  if (valid0) {
24645
- if (data.recording !== void 0) {
24646
- let data65 = data.recording;
24686
+ if (data.phaseSince !== void 0) {
24687
+ let data65 = data.phaseSince;
24647
24688
  const _errs156 = errors;
24648
- if (errors === _errs156) {
24649
- if (data65 && typeof data65 == "object" && !Array.isArray(data65)) {
24650
- let missing11;
24651
- if (data65.enabled === void 0 && (missing11 = "enabled")) {
24652
- validate280.errors = [{
24653
- instancePath: instancePath + "/recording",
24654
- schemaPath: "#/properties/recording/required",
24655
- keyword: "required",
24656
- params: { missingProperty: missing11 },
24657
- message: "must have required property '" + missing11 + "'"
24658
- }];
24659
- return false;
24660
- } else if (data65.enabled !== void 0) {
24661
- if (typeof data65.enabled !== "boolean") {
24689
+ if (typeof data65 !== "string" && data65 !== null) {
24690
+ validate280.errors = [{
24691
+ instancePath: instancePath + "/phaseSince",
24692
+ schemaPath: "#/properties/phaseSince/type",
24693
+ keyword: "type",
24694
+ params: { type: schema105.properties.phaseSince.type },
24695
+ message: "must be string,null"
24696
+ }];
24697
+ return false;
24698
+ }
24699
+ var valid0 = _errs156 === errors;
24700
+ } else var valid0 = true;
24701
+ if (valid0) {
24702
+ if (data.recording !== void 0) {
24703
+ let data66 = data.recording;
24704
+ const _errs158 = errors;
24705
+ if (errors === _errs158) {
24706
+ if (data66 && typeof data66 == "object" && !Array.isArray(data66)) {
24707
+ let missing11;
24708
+ if (data66.enabled === void 0 && (missing11 = "enabled")) {
24662
24709
  validate280.errors = [{
24663
- instancePath: instancePath + "/recording/enabled",
24664
- schemaPath: "#/properties/recording/properties/enabled/type",
24665
- keyword: "type",
24666
- params: { type: "boolean" },
24667
- message: "must be boolean"
24710
+ instancePath: instancePath + "/recording",
24711
+ schemaPath: "#/properties/recording/required",
24712
+ keyword: "required",
24713
+ params: { missingProperty: missing11 },
24714
+ message: "must have required property '" + missing11 + "'"
24668
24715
  }];
24669
24716
  return false;
24717
+ } else if (data66.enabled !== void 0) {
24718
+ if (typeof data66.enabled !== "boolean") {
24719
+ validate280.errors = [{
24720
+ instancePath: instancePath + "/recording/enabled",
24721
+ schemaPath: "#/properties/recording/properties/enabled/type",
24722
+ keyword: "type",
24723
+ params: { type: "boolean" },
24724
+ message: "must be boolean"
24725
+ }];
24726
+ return false;
24727
+ }
24670
24728
  }
24729
+ } else {
24730
+ validate280.errors = [{
24731
+ instancePath: instancePath + "/recording",
24732
+ schemaPath: "#/properties/recording/type",
24733
+ keyword: "type",
24734
+ params: { type: "object" },
24735
+ message: "must be object"
24736
+ }];
24737
+ return false;
24671
24738
  }
24672
- } else {
24673
- validate280.errors = [{
24674
- instancePath: instancePath + "/recording",
24675
- schemaPath: "#/properties/recording/type",
24676
- keyword: "type",
24677
- params: { type: "object" },
24678
- message: "must be object"
24679
- }];
24680
- return false;
24681
24739
  }
24682
- }
24683
- var valid0 = _errs156 === errors;
24684
- } else var valid0 = true;
24685
- if (valid0) {
24686
- if (data.hidden !== void 0) {
24687
- let data67 = data.hidden;
24688
- const _errs160 = errors;
24689
- if (typeof data67 !== "boolean") {
24690
- validate280.errors = [{
24691
- instancePath: instancePath + "/hidden",
24692
- schemaPath: "#/properties/hidden/type",
24693
- keyword: "type",
24694
- params: { type: "boolean" },
24695
- message: "must be boolean"
24696
- }];
24697
- return false;
24698
- }
24699
- if (true !== data67) {
24700
- validate280.errors = [{
24701
- instancePath: instancePath + "/hidden",
24702
- schemaPath: "#/properties/hidden/const",
24703
- keyword: "const",
24704
- params: { allowedValue: true },
24705
- message: "must be equal to constant"
24706
- }];
24707
- return false;
24708
- }
24709
- var valid0 = _errs160 === errors;
24740
+ var valid0 = _errs158 === errors;
24710
24741
  } else var valid0 = true;
24711
24742
  if (valid0) {
24712
- if (data.memoryMb !== void 0) {
24743
+ if (data.hidden !== void 0) {
24744
+ let data68 = data.hidden;
24713
24745
  const _errs162 = errors;
24714
- if (!(typeof data.memoryMb == "number")) {
24746
+ if (typeof data68 !== "boolean") {
24715
24747
  validate280.errors = [{
24716
- instancePath: instancePath + "/memoryMb",
24717
- schemaPath: "#/properties/memoryMb/type",
24748
+ instancePath: instancePath + "/hidden",
24749
+ schemaPath: "#/properties/hidden/type",
24718
24750
  keyword: "type",
24719
- params: { type: "number" },
24720
- message: "must be number"
24751
+ params: { type: "boolean" },
24752
+ message: "must be boolean"
24753
+ }];
24754
+ return false;
24755
+ }
24756
+ if (true !== data68) {
24757
+ validate280.errors = [{
24758
+ instancePath: instancePath + "/hidden",
24759
+ schemaPath: "#/properties/hidden/const",
24760
+ keyword: "const",
24761
+ params: { allowedValue: true },
24762
+ message: "must be equal to constant"
24721
24763
  }];
24722
24764
  return false;
24723
24765
  }
24724
24766
  var valid0 = _errs162 === errors;
24725
24767
  } else var valid0 = true;
24726
24768
  if (valid0) {
24727
- if (data.warnings !== void 0) {
24728
- let data69 = data.warnings;
24769
+ if (data.memoryMb !== void 0) {
24729
24770
  const _errs164 = errors;
24730
- if (errors === _errs164) {
24731
- if (Array.isArray(data69)) {
24732
- const len8 = data69.length;
24733
- for (let i8 = 0; i8 < len8; i8++) {
24734
- const _errs166 = errors;
24735
- if (typeof data69[i8] !== "string") {
24736
- validate280.errors = [{
24737
- instancePath: instancePath + "/warnings/" + i8,
24738
- schemaPath: "#/properties/warnings/items/type",
24739
- keyword: "type",
24740
- params: { type: "string" },
24741
- message: "must be string"
24742
- }];
24743
- return false;
24744
- }
24745
- if (!(_errs166 === errors)) break;
24746
- }
24747
- } else {
24748
- validate280.errors = [{
24749
- instancePath: instancePath + "/warnings",
24750
- schemaPath: "#/properties/warnings/type",
24751
- keyword: "type",
24752
- params: { type: "array" },
24753
- message: "must be array"
24754
- }];
24755
- return false;
24756
- }
24771
+ if (!(typeof data.memoryMb == "number")) {
24772
+ validate280.errors = [{
24773
+ instancePath: instancePath + "/memoryMb",
24774
+ schemaPath: "#/properties/memoryMb/type",
24775
+ keyword: "type",
24776
+ params: { type: "number" },
24777
+ message: "must be number"
24778
+ }];
24779
+ return false;
24757
24780
  }
24758
24781
  var valid0 = _errs164 === errors;
24759
24782
  } else var valid0 = true;
24760
24783
  if (valid0) {
24761
- if (data.supervisor !== void 0) {
24762
- let data71 = data.supervisor;
24763
- const _errs168 = errors;
24764
- const _errs169 = errors;
24765
- let valid34 = false;
24766
- const _errs170 = errors;
24767
- if (errors === _errs170) {
24768
- if (data71 && typeof data71 == "object" && !Array.isArray(data71)) {
24769
- let missing12;
24770
- if (data71.pid === void 0 && (missing12 = "pid") || data71.mode === void 0 && (missing12 = "mode") || data71.startedAt === void 0 && (missing12 = "startedAt") || data71.healthy === void 0 && (missing12 = "healthy")) {
24771
- const err46 = {
24772
- instancePath: instancePath + "/supervisor",
24773
- schemaPath: "#/properties/supervisor/anyOf/0/required",
24774
- keyword: "required",
24775
- params: { missingProperty: missing12 },
24776
- message: "must have required property '" + missing12 + "'"
24777
- };
24778
- if (vErrors === null) vErrors = [err46];
24779
- else vErrors.push(err46);
24780
- errors++;
24781
- } else {
24782
- if (data71.pid !== void 0) {
24783
- let data72 = data71.pid;
24784
- const _errs172 = errors;
24785
- if (!(typeof data72 == "number") && data72 !== null) {
24786
- const err47 = {
24787
- instancePath: instancePath + "/supervisor/pid",
24788
- schemaPath: "#/properties/supervisor/anyOf/0/properties/pid/type",
24789
- keyword: "type",
24790
- params: { type: schema105.properties.supervisor.anyOf[0].properties.pid.type },
24791
- message: "must be number,null"
24792
- };
24793
- if (vErrors === null) vErrors = [err47];
24794
- else vErrors.push(err47);
24795
- errors++;
24796
- }
24797
- var valid35 = _errs172 === errors;
24798
- } else var valid35 = true;
24799
- if (valid35) {
24800
- if (data71.mode !== void 0) {
24801
- let data73 = data71.mode;
24784
+ if (data.warnings !== void 0) {
24785
+ let data70 = data.warnings;
24786
+ const _errs166 = errors;
24787
+ if (errors === _errs166) {
24788
+ if (Array.isArray(data70)) {
24789
+ const len8 = data70.length;
24790
+ for (let i8 = 0; i8 < len8; i8++) {
24791
+ const _errs168 = errors;
24792
+ if (typeof data70[i8] !== "string") {
24793
+ validate280.errors = [{
24794
+ instancePath: instancePath + "/warnings/" + i8,
24795
+ schemaPath: "#/properties/warnings/items/type",
24796
+ keyword: "type",
24797
+ params: { type: "string" },
24798
+ message: "must be string"
24799
+ }];
24800
+ return false;
24801
+ }
24802
+ if (!(_errs168 === errors)) break;
24803
+ }
24804
+ } else {
24805
+ validate280.errors = [{
24806
+ instancePath: instancePath + "/warnings",
24807
+ schemaPath: "#/properties/warnings/type",
24808
+ keyword: "type",
24809
+ params: { type: "array" },
24810
+ message: "must be array"
24811
+ }];
24812
+ return false;
24813
+ }
24814
+ }
24815
+ var valid0 = _errs166 === errors;
24816
+ } else var valid0 = true;
24817
+ if (valid0) {
24818
+ if (data.supervisor !== void 0) {
24819
+ let data72 = data.supervisor;
24820
+ const _errs170 = errors;
24821
+ const _errs171 = errors;
24822
+ let valid34 = false;
24823
+ const _errs172 = errors;
24824
+ if (errors === _errs172) {
24825
+ if (data72 && typeof data72 == "object" && !Array.isArray(data72)) {
24826
+ let missing12;
24827
+ if (data72.pid === void 0 && (missing12 = "pid") || data72.mode === void 0 && (missing12 = "mode") || data72.startedAt === void 0 && (missing12 = "startedAt") || data72.healthy === void 0 && (missing12 = "healthy")) {
24828
+ const err46 = {
24829
+ instancePath: instancePath + "/supervisor",
24830
+ schemaPath: "#/properties/supervisor/anyOf/0/required",
24831
+ keyword: "required",
24832
+ params: { missingProperty: missing12 },
24833
+ message: "must have required property '" + missing12 + "'"
24834
+ };
24835
+ if (vErrors === null) vErrors = [err46];
24836
+ else vErrors.push(err46);
24837
+ errors++;
24838
+ } else {
24839
+ if (data72.pid !== void 0) {
24840
+ let data73 = data72.pid;
24802
24841
  const _errs174 = errors;
24803
- if (typeof data73 !== "string" && data73 !== null) {
24804
- const err48 = {
24805
- instancePath: instancePath + "/supervisor/mode",
24806
- schemaPath: "#/properties/supervisor/anyOf/0/properties/mode/type",
24842
+ if (!(typeof data73 == "number") && data73 !== null) {
24843
+ const err47 = {
24844
+ instancePath: instancePath + "/supervisor/pid",
24845
+ schemaPath: "#/properties/supervisor/anyOf/0/properties/pid/type",
24807
24846
  keyword: "type",
24808
- params: { type: schema105.properties.supervisor.anyOf[0].properties.mode.type },
24809
- message: "must be string,null"
24847
+ params: { type: schema105.properties.supervisor.anyOf[0].properties.pid.type },
24848
+ message: "must be number,null"
24810
24849
  };
24811
- if (vErrors === null) vErrors = [err48];
24812
- else vErrors.push(err48);
24850
+ if (vErrors === null) vErrors = [err47];
24851
+ else vErrors.push(err47);
24813
24852
  errors++;
24814
24853
  }
24815
24854
  var valid35 = _errs174 === errors;
24816
24855
  } else var valid35 = true;
24817
24856
  if (valid35) {
24818
- if (data71.startedAt !== void 0) {
24819
- let data74 = data71.startedAt;
24857
+ if (data72.mode !== void 0) {
24858
+ let data74 = data72.mode;
24820
24859
  const _errs176 = errors;
24821
24860
  if (typeof data74 !== "string" && data74 !== null) {
24822
- const err49 = {
24823
- instancePath: instancePath + "/supervisor/startedAt",
24824
- schemaPath: "#/properties/supervisor/anyOf/0/properties/startedAt/type",
24861
+ const err48 = {
24862
+ instancePath: instancePath + "/supervisor/mode",
24863
+ schemaPath: "#/properties/supervisor/anyOf/0/properties/mode/type",
24825
24864
  keyword: "type",
24826
- params: { type: schema105.properties.supervisor.anyOf[0].properties.startedAt.type },
24865
+ params: { type: schema105.properties.supervisor.anyOf[0].properties.mode.type },
24827
24866
  message: "must be string,null"
24828
24867
  };
24829
- if (vErrors === null) vErrors = [err49];
24830
- else vErrors.push(err49);
24868
+ if (vErrors === null) vErrors = [err48];
24869
+ else vErrors.push(err48);
24831
24870
  errors++;
24832
24871
  }
24833
24872
  var valid35 = _errs176 === errors;
24834
24873
  } else var valid35 = true;
24835
24874
  if (valid35) {
24836
- if (data71.healthy !== void 0) {
24875
+ if (data72.startedAt !== void 0) {
24876
+ let data75 = data72.startedAt;
24837
24877
  const _errs178 = errors;
24838
- if (typeof data71.healthy !== "boolean") {
24839
- const err50 = {
24840
- instancePath: instancePath + "/supervisor/healthy",
24841
- schemaPath: "#/properties/supervisor/anyOf/0/properties/healthy/type",
24878
+ if (typeof data75 !== "string" && data75 !== null) {
24879
+ const err49 = {
24880
+ instancePath: instancePath + "/supervisor/startedAt",
24881
+ schemaPath: "#/properties/supervisor/anyOf/0/properties/startedAt/type",
24842
24882
  keyword: "type",
24843
- params: { type: "boolean" },
24844
- message: "must be boolean"
24883
+ params: { type: schema105.properties.supervisor.anyOf[0].properties.startedAt.type },
24884
+ message: "must be string,null"
24845
24885
  };
24846
- if (vErrors === null) vErrors = [err50];
24847
- else vErrors.push(err50);
24886
+ if (vErrors === null) vErrors = [err49];
24887
+ else vErrors.push(err49);
24848
24888
  errors++;
24849
24889
  }
24850
24890
  var valid35 = _errs178 === errors;
24851
24891
  } else var valid35 = true;
24892
+ if (valid35) {
24893
+ if (data72.healthy !== void 0) {
24894
+ const _errs180 = errors;
24895
+ if (typeof data72.healthy !== "boolean") {
24896
+ const err50 = {
24897
+ instancePath: instancePath + "/supervisor/healthy",
24898
+ schemaPath: "#/properties/supervisor/anyOf/0/properties/healthy/type",
24899
+ keyword: "type",
24900
+ params: { type: "boolean" },
24901
+ message: "must be boolean"
24902
+ };
24903
+ if (vErrors === null) vErrors = [err50];
24904
+ else vErrors.push(err50);
24905
+ errors++;
24906
+ }
24907
+ var valid35 = _errs180 === errors;
24908
+ } else var valid35 = true;
24909
+ }
24852
24910
  }
24853
24911
  }
24854
24912
  }
24913
+ } else {
24914
+ const err51 = {
24915
+ instancePath: instancePath + "/supervisor",
24916
+ schemaPath: "#/properties/supervisor/anyOf/0/type",
24917
+ keyword: "type",
24918
+ params: { type: "object" },
24919
+ message: "must be object"
24920
+ };
24921
+ if (vErrors === null) vErrors = [err51];
24922
+ else vErrors.push(err51);
24923
+ errors++;
24855
24924
  }
24856
- } else {
24857
- const err51 = {
24858
- instancePath: instancePath + "/supervisor",
24859
- schemaPath: "#/properties/supervisor/anyOf/0/type",
24860
- keyword: "type",
24861
- params: { type: "object" },
24862
- message: "must be object"
24863
- };
24864
- if (vErrors === null) vErrors = [err51];
24865
- else vErrors.push(err51);
24866
- errors++;
24867
24925
  }
24868
- }
24869
- var _valid10 = _errs170 === errors;
24870
- valid34 = valid34 || _valid10;
24871
- if (!valid34) {
24872
- const _errs180 = errors;
24873
- if (data71 !== null) {
24874
- const err52 = {
24926
+ var _valid10 = _errs172 === errors;
24927
+ valid34 = valid34 || _valid10;
24928
+ if (!valid34) {
24929
+ const _errs182 = errors;
24930
+ if (data72 !== null) {
24931
+ const err52 = {
24932
+ instancePath: instancePath + "/supervisor",
24933
+ schemaPath: "#/properties/supervisor/anyOf/1/type",
24934
+ keyword: "type",
24935
+ params: { type: "null" },
24936
+ message: "must be null"
24937
+ };
24938
+ if (vErrors === null) vErrors = [err52];
24939
+ else vErrors.push(err52);
24940
+ errors++;
24941
+ }
24942
+ var _valid10 = _errs182 === errors;
24943
+ valid34 = valid34 || _valid10;
24944
+ }
24945
+ if (!valid34) {
24946
+ const err53 = {
24875
24947
  instancePath: instancePath + "/supervisor",
24876
- schemaPath: "#/properties/supervisor/anyOf/1/type",
24877
- keyword: "type",
24878
- params: { type: "null" },
24879
- message: "must be null"
24948
+ schemaPath: "#/properties/supervisor/anyOf",
24949
+ keyword: "anyOf",
24950
+ params: {},
24951
+ message: "must match a schema in anyOf"
24880
24952
  };
24881
- if (vErrors === null) vErrors = [err52];
24882
- else vErrors.push(err52);
24953
+ if (vErrors === null) vErrors = [err53];
24954
+ else vErrors.push(err53);
24883
24955
  errors++;
24956
+ validate280.errors = vErrors;
24957
+ return false;
24958
+ } else {
24959
+ errors = _errs171;
24960
+ if (vErrors !== null) {
24961
+ if (_errs171) vErrors.length = _errs171;
24962
+ else vErrors = null;
24963
+ }
24884
24964
  }
24885
- var _valid10 = _errs180 === errors;
24886
- valid34 = valid34 || _valid10;
24887
- }
24888
- if (!valid34) {
24889
- const err53 = {
24890
- instancePath: instancePath + "/supervisor",
24891
- schemaPath: "#/properties/supervisor/anyOf",
24892
- keyword: "anyOf",
24893
- params: {},
24894
- message: "must match a schema in anyOf"
24895
- };
24896
- if (vErrors === null) vErrors = [err53];
24897
- else vErrors.push(err53);
24898
- errors++;
24899
- validate280.errors = vErrors;
24900
- return false;
24901
- } else {
24902
- errors = _errs169;
24903
- if (vErrors !== null) {
24904
- if (_errs169) vErrors.length = _errs169;
24905
- else vErrors = null;
24906
- }
24907
- }
24908
- var valid0 = _errs168 === errors;
24909
- } else var valid0 = true;
24910
- if (valid0) {
24911
- if (data.agentDevice !== void 0) {
24912
- let data76 = data.agentDevice;
24913
- const _errs182 = errors;
24914
- if (errors === _errs182) {
24915
- if (data76 && typeof data76 == "object" && !Array.isArray(data76)) {
24916
- let missing13;
24917
- if (data76.stateDir === void 0 && (missing13 = "stateDir")) {
24918
- validate280.errors = [{
24919
- instancePath: instancePath + "/agentDevice",
24920
- schemaPath: "#/properties/agentDevice/required",
24921
- keyword: "required",
24922
- params: { missingProperty: missing13 },
24923
- message: "must have required property '" + missing13 + "'"
24924
- }];
24925
- return false;
24926
- } else {
24927
- if (data76.stateDir !== void 0) {
24928
- const _errs184 = errors;
24929
- if (typeof data76.stateDir !== "string") {
24930
- validate280.errors = [{
24931
- instancePath: instancePath + "/agentDevice/stateDir",
24932
- schemaPath: "#/properties/agentDevice/properties/stateDir/type",
24933
- keyword: "type",
24934
- params: { type: "string" },
24935
- message: "must be string"
24936
- }];
24937
- return false;
24938
- }
24939
- var valid36 = _errs184 === errors;
24940
- } else var valid36 = true;
24941
- if (valid36) {
24942
- if (data76.installed !== void 0) {
24965
+ var valid0 = _errs170 === errors;
24966
+ } else var valid0 = true;
24967
+ if (valid0) {
24968
+ if (data.agentDevice !== void 0) {
24969
+ let data77 = data.agentDevice;
24970
+ const _errs184 = errors;
24971
+ if (errors === _errs184) {
24972
+ if (data77 && typeof data77 == "object" && !Array.isArray(data77)) {
24973
+ let missing13;
24974
+ if (data77.stateDir === void 0 && (missing13 = "stateDir")) {
24975
+ validate280.errors = [{
24976
+ instancePath: instancePath + "/agentDevice",
24977
+ schemaPath: "#/properties/agentDevice/required",
24978
+ keyword: "required",
24979
+ params: { missingProperty: missing13 },
24980
+ message: "must have required property '" + missing13 + "'"
24981
+ }];
24982
+ return false;
24983
+ } else {
24984
+ if (data77.stateDir !== void 0) {
24943
24985
  const _errs186 = errors;
24944
- if (typeof data76.installed !== "boolean") {
24986
+ if (typeof data77.stateDir !== "string") {
24945
24987
  validate280.errors = [{
24946
- instancePath: instancePath + "/agentDevice/installed",
24947
- schemaPath: "#/properties/agentDevice/properties/installed/type",
24988
+ instancePath: instancePath + "/agentDevice/stateDir",
24989
+ schemaPath: "#/properties/agentDevice/properties/stateDir/type",
24948
24990
  keyword: "type",
24949
- params: { type: "boolean" },
24950
- message: "must be boolean"
24991
+ params: { type: "string" },
24992
+ message: "must be string"
24951
24993
  }];
24952
24994
  return false;
24953
24995
  }
24954
24996
  var valid36 = _errs186 === errors;
24955
24997
  } else var valid36 = true;
24998
+ if (valid36) {
24999
+ if (data77.installed !== void 0) {
25000
+ const _errs188 = errors;
25001
+ if (typeof data77.installed !== "boolean") {
25002
+ validate280.errors = [{
25003
+ instancePath: instancePath + "/agentDevice/installed",
25004
+ schemaPath: "#/properties/agentDevice/properties/installed/type",
25005
+ keyword: "type",
25006
+ params: { type: "boolean" },
25007
+ message: "must be boolean"
25008
+ }];
25009
+ return false;
25010
+ }
25011
+ var valid36 = _errs188 === errors;
25012
+ } else var valid36 = true;
25013
+ }
24956
25014
  }
25015
+ } else {
25016
+ validate280.errors = [{
25017
+ instancePath: instancePath + "/agentDevice",
25018
+ schemaPath: "#/properties/agentDevice/type",
25019
+ keyword: "type",
25020
+ params: { type: "object" },
25021
+ message: "must be object"
25022
+ }];
25023
+ return false;
24957
25024
  }
24958
- } else {
24959
- validate280.errors = [{
24960
- instancePath: instancePath + "/agentDevice",
24961
- schemaPath: "#/properties/agentDevice/type",
24962
- keyword: "type",
24963
- params: { type: "object" },
24964
- message: "must be object"
24965
- }];
24966
- return false;
24967
- }
24968
- }
24969
- var valid0 = _errs182 === errors;
24970
- } else var valid0 = true;
24971
- if (valid0) {
24972
- if (data.disk !== void 0) {
24973
- const _errs188 = errors;
24974
- if (!validate247(data.disk, {
24975
- instancePath: instancePath + "/disk",
24976
- parentData: data,
24977
- parentDataProperty: "disk",
24978
- rootData
24979
- })) {
24980
- vErrors = vErrors === null ? validate247.errors : vErrors.concat(validate247.errors);
24981
- errors = vErrors.length;
24982
25025
  }
24983
- var valid0 = _errs188 === errors;
25026
+ var valid0 = _errs184 === errors;
24984
25027
  } else var valid0 = true;
25028
+ if (valid0) {
25029
+ if (data.disk !== void 0) {
25030
+ const _errs190 = errors;
25031
+ if (!validate247(data.disk, {
25032
+ instancePath: instancePath + "/disk",
25033
+ parentData: data,
25034
+ parentDataProperty: "disk",
25035
+ rootData
25036
+ })) {
25037
+ vErrors = vErrors === null ? validate247.errors : vErrors.concat(validate247.errors);
25038
+ errors = vErrors.length;
25039
+ }
25040
+ var valid0 = _errs190 === errors;
25041
+ } else var valid0 = true;
25042
+ }
24985
25043
  }
24986
25044
  }
24987
25045
  }