@stim-cli/core 1.17.2 → 1.19.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.
- package/dist/{index-lRdEfJSb.d.mts → index-BITArGWH.d.mts} +88 -11
- package/dist/oversight.d.mts +6 -0
- package/dist/oversight.mjs +39 -7
- package/dist/phone-protocol.d.mts +11 -4
- package/dist/{protocol-DcI3hDw9.d.mts → protocol-CXPbHten.d.mts} +15 -5
- package/dist/protocol.d.mts +2 -2
- package/dist/protocol.mjs +5 -2
- package/dist/receive-protocol.d.mts +14 -1
- package/dist/receive-protocol.mjs +927 -706
- package/dist/state.d.mts +2 -2
- package/dist/state.mjs +311 -58
- package/package.json +1 -1
|
@@ -1209,7 +1209,8 @@ const schema17 = {
|
|
|
1209
1209
|
"cause": { "$ref": "#/definitions/BuildCause" },
|
|
1210
1210
|
"slot": { "type": "string" },
|
|
1211
1211
|
"configuration": { "type": ["string", "null"] },
|
|
1212
|
-
"cacheKey": { "type": ["string", "null"] }
|
|
1212
|
+
"cacheKey": { "type": ["string", "null"] },
|
|
1213
|
+
"compileSteps": { "type": "number" }
|
|
1213
1214
|
},
|
|
1214
1215
|
"required": [
|
|
1215
1216
|
"cacheHit",
|
|
@@ -1689,7 +1690,8 @@ const schema23 = {
|
|
|
1689
1690
|
"enum": [
|
|
1690
1691
|
"local",
|
|
1691
1692
|
"hosted",
|
|
1692
|
-
"waited-locally"
|
|
1693
|
+
"waited-locally",
|
|
1694
|
+
"eas"
|
|
1693
1695
|
]
|
|
1694
1696
|
},
|
|
1695
1697
|
"reason": { "type": "string" },
|
|
@@ -1723,7 +1725,7 @@ function validate47(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
1723
1725
|
}];
|
|
1724
1726
|
return false;
|
|
1725
1727
|
}
|
|
1726
|
-
if (!(data0 === "local" || data0 === "hosted" || data0 === "waited-locally")) {
|
|
1728
|
+
if (!(data0 === "local" || data0 === "hosted" || data0 === "waited-locally" || data0 === "eas")) {
|
|
1727
1729
|
validate47.errors = [{
|
|
1728
1730
|
instancePath: instancePath + "/decision",
|
|
1729
1731
|
schemaPath: "#/properties/decision/enum",
|
|
@@ -2349,6 +2351,22 @@ function validate36(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
2349
2351
|
}
|
|
2350
2352
|
var valid0 = _errs42 === errors;
|
|
2351
2353
|
} else var valid0 = true;
|
|
2354
|
+
if (valid0) {
|
|
2355
|
+
if (data.compileSteps !== void 0) {
|
|
2356
|
+
const _errs44 = errors;
|
|
2357
|
+
if (!(typeof data.compileSteps == "number")) {
|
|
2358
|
+
validate36.errors = [{
|
|
2359
|
+
instancePath: instancePath + "/compileSteps",
|
|
2360
|
+
schemaPath: "#/properties/compileSteps/type",
|
|
2361
|
+
keyword: "type",
|
|
2362
|
+
params: { type: "number" },
|
|
2363
|
+
message: "must be number"
|
|
2364
|
+
}];
|
|
2365
|
+
return false;
|
|
2366
|
+
}
|
|
2367
|
+
var valid0 = _errs44 === errors;
|
|
2368
|
+
} else var valid0 = true;
|
|
2369
|
+
}
|
|
2352
2370
|
}
|
|
2353
2371
|
}
|
|
2354
2372
|
}
|
|
@@ -2796,7 +2814,8 @@ const schema28 = {
|
|
|
2796
2814
|
"message",
|
|
2797
2815
|
"remedy"
|
|
2798
2816
|
]
|
|
2799
|
-
}
|
|
2817
|
+
},
|
|
2818
|
+
"placement": { "type": "string" }
|
|
2800
2819
|
},
|
|
2801
2820
|
"required": [
|
|
2802
2821
|
"basis",
|
|
@@ -3086,6 +3105,22 @@ function validate57(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
3086
3105
|
}
|
|
3087
3106
|
var valid0 = _errs23 === errors;
|
|
3088
3107
|
} else var valid0 = true;
|
|
3108
|
+
if (valid0) {
|
|
3109
|
+
if (data.placement !== void 0) {
|
|
3110
|
+
const _errs31 = errors;
|
|
3111
|
+
if (typeof data.placement !== "string") {
|
|
3112
|
+
validate57.errors = [{
|
|
3113
|
+
instancePath: instancePath + "/placement",
|
|
3114
|
+
schemaPath: "#/properties/placement/type",
|
|
3115
|
+
keyword: "type",
|
|
3116
|
+
params: { type: "string" },
|
|
3117
|
+
message: "must be string"
|
|
3118
|
+
}];
|
|
3119
|
+
return false;
|
|
3120
|
+
}
|
|
3121
|
+
var valid0 = _errs31 === errors;
|
|
3122
|
+
} else var valid0 = true;
|
|
3123
|
+
}
|
|
3089
3124
|
}
|
|
3090
3125
|
}
|
|
3091
3126
|
}
|
|
@@ -4408,6 +4443,8 @@ const schema40 = {
|
|
|
4408
4443
|
"builds": { "type": "number" },
|
|
4409
4444
|
"maxBuilds": { "type": "number" },
|
|
4410
4445
|
"maxLoadPerCore": { "type": "number" },
|
|
4446
|
+
"memoryUsedBytes": { "type": "number" },
|
|
4447
|
+
"memoryTotalBytes": { "type": "number" },
|
|
4411
4448
|
"declined": { "type": ["string", "null"] }
|
|
4412
4449
|
}
|
|
4413
4450
|
};
|
|
@@ -4541,20 +4578,50 @@ function validate76(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
4541
4578
|
var valid0 = true;
|
|
4542
4579
|
} else var valid0 = true;
|
|
4543
4580
|
if (valid0) {
|
|
4544
|
-
if (data.
|
|
4545
|
-
|
|
4546
|
-
if (typeof data9 !== "string" && data9 !== null) {
|
|
4581
|
+
if (data.memoryUsedBytes !== void 0) {
|
|
4582
|
+
if (!(typeof data.memoryUsedBytes == "number")) {
|
|
4547
4583
|
validate76.errors = [{
|
|
4548
|
-
instancePath: instancePath + "/
|
|
4549
|
-
schemaPath: "#/properties/
|
|
4584
|
+
instancePath: instancePath + "/memoryUsedBytes",
|
|
4585
|
+
schemaPath: "#/properties/memoryUsedBytes/type",
|
|
4550
4586
|
keyword: "type",
|
|
4551
|
-
params: { type:
|
|
4552
|
-
message: "must be
|
|
4587
|
+
params: { type: "number" },
|
|
4588
|
+
message: "must be number"
|
|
4553
4589
|
}];
|
|
4554
4590
|
return false;
|
|
4555
4591
|
}
|
|
4556
4592
|
var valid0 = true;
|
|
4557
4593
|
} else var valid0 = true;
|
|
4594
|
+
if (valid0) {
|
|
4595
|
+
if (data.memoryTotalBytes !== void 0) {
|
|
4596
|
+
if (!(typeof data.memoryTotalBytes == "number")) {
|
|
4597
|
+
validate76.errors = [{
|
|
4598
|
+
instancePath: instancePath + "/memoryTotalBytes",
|
|
4599
|
+
schemaPath: "#/properties/memoryTotalBytes/type",
|
|
4600
|
+
keyword: "type",
|
|
4601
|
+
params: { type: "number" },
|
|
4602
|
+
message: "must be number"
|
|
4603
|
+
}];
|
|
4604
|
+
return false;
|
|
4605
|
+
}
|
|
4606
|
+
var valid0 = true;
|
|
4607
|
+
} else var valid0 = true;
|
|
4608
|
+
if (valid0) {
|
|
4609
|
+
if (data.declined !== void 0) {
|
|
4610
|
+
let data11 = data.declined;
|
|
4611
|
+
if (typeof data11 !== "string" && data11 !== null) {
|
|
4612
|
+
validate76.errors = [{
|
|
4613
|
+
instancePath: instancePath + "/declined",
|
|
4614
|
+
schemaPath: "#/properties/declined/type",
|
|
4615
|
+
keyword: "type",
|
|
4616
|
+
params: { type: schema40.properties.declined.type },
|
|
4617
|
+
message: "must be string,null"
|
|
4618
|
+
}];
|
|
4619
|
+
return false;
|
|
4620
|
+
}
|
|
4621
|
+
var valid0 = true;
|
|
4622
|
+
} else var valid0 = true;
|
|
4623
|
+
}
|
|
4624
|
+
}
|
|
4558
4625
|
}
|
|
4559
4626
|
}
|
|
4560
4627
|
}
|
|
@@ -7563,6 +7630,16 @@ const schema79 = {
|
|
|
7563
7630
|
"type": "object",
|
|
7564
7631
|
"properties": {
|
|
7565
7632
|
"mode": { "type": "string" },
|
|
7633
|
+
"lastChecks": {
|
|
7634
|
+
"type": "object",
|
|
7635
|
+
"properties": {
|
|
7636
|
+
"pressure": { "type": ["number", "null"] },
|
|
7637
|
+
"size": { "type": ["number", "null"] },
|
|
7638
|
+
"worktree": { "type": ["number", "null"] },
|
|
7639
|
+
"sweep": { "type": ["number", "null"] }
|
|
7640
|
+
},
|
|
7641
|
+
"required": ["pressure", "size"]
|
|
7642
|
+
},
|
|
7566
7643
|
"lastPass": { "anyOf": [{
|
|
7567
7644
|
"type": "object",
|
|
7568
7645
|
"properties": {
|
|
@@ -7595,10 +7672,13 @@ const schema79 = {
|
|
|
7595
7672
|
"type": "object",
|
|
7596
7673
|
"properties": {
|
|
7597
7674
|
"kind": { "type": "string" },
|
|
7675
|
+
"check": { "type": "string" },
|
|
7598
7676
|
"target": { "type": "string" },
|
|
7599
7677
|
"bytes": { "type": "number" },
|
|
7600
7678
|
"reason": { "type": "string" },
|
|
7601
|
-
"workspace": { "type": "string" }
|
|
7679
|
+
"workspace": { "type": "string" },
|
|
7680
|
+
"dir": { "type": "string" },
|
|
7681
|
+
"olderThanDays": { "type": "number" }
|
|
7602
7682
|
},
|
|
7603
7683
|
"required": [
|
|
7604
7684
|
"bytes",
|
|
@@ -7652,14 +7732,6 @@ const schema79 = {
|
|
|
7652
7732
|
},
|
|
7653
7733
|
"required": ["unresolved", "removeCommand"]
|
|
7654
7734
|
},
|
|
7655
|
-
"lastChecks": {
|
|
7656
|
-
"type": "object",
|
|
7657
|
-
"properties": {
|
|
7658
|
-
"pressure": { "type": ["number", "null"] },
|
|
7659
|
-
"size": { "type": ["number", "null"] }
|
|
7660
|
-
},
|
|
7661
|
-
"required": ["pressure", "size"]
|
|
7662
|
-
},
|
|
7663
7735
|
"running": { "anyOf": [{
|
|
7664
7736
|
"type": "object",
|
|
7665
7737
|
"properties": {
|
|
@@ -7709,183 +7781,281 @@ function validate131(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
7709
7781
|
var valid0 = _errs1 === errors;
|
|
7710
7782
|
} else var valid0 = true;
|
|
7711
7783
|
if (valid0) {
|
|
7712
|
-
if (data.
|
|
7713
|
-
let data1 = data.
|
|
7784
|
+
if (data.lastChecks !== void 0) {
|
|
7785
|
+
let data1 = data.lastChecks;
|
|
7714
7786
|
const _errs3 = errors;
|
|
7715
|
-
|
|
7716
|
-
let valid1 = false;
|
|
7717
|
-
const _errs5 = errors;
|
|
7718
|
-
if (errors === _errs5) {
|
|
7787
|
+
if (errors === _errs3) {
|
|
7719
7788
|
if (data1 && typeof data1 == "object" && !Array.isArray(data1)) {
|
|
7720
7789
|
let missing1;
|
|
7721
|
-
if (data1.
|
|
7722
|
-
|
|
7723
|
-
instancePath: instancePath + "/
|
|
7724
|
-
schemaPath: "#/properties/
|
|
7790
|
+
if (data1.pressure === void 0 && (missing1 = "pressure") || data1.size === void 0 && (missing1 = "size")) {
|
|
7791
|
+
validate131.errors = [{
|
|
7792
|
+
instancePath: instancePath + "/lastChecks",
|
|
7793
|
+
schemaPath: "#/properties/lastChecks/required",
|
|
7725
7794
|
keyword: "required",
|
|
7726
7795
|
params: { missingProperty: missing1 },
|
|
7727
7796
|
message: "must have required property '" + missing1 + "'"
|
|
7728
|
-
};
|
|
7729
|
-
|
|
7730
|
-
else vErrors.push(err0);
|
|
7731
|
-
errors++;
|
|
7797
|
+
}];
|
|
7798
|
+
return false;
|
|
7732
7799
|
} else {
|
|
7733
|
-
if (data1.
|
|
7734
|
-
|
|
7735
|
-
|
|
7736
|
-
|
|
7737
|
-
|
|
7738
|
-
|
|
7800
|
+
if (data1.pressure !== void 0) {
|
|
7801
|
+
let data2 = data1.pressure;
|
|
7802
|
+
const _errs5 = errors;
|
|
7803
|
+
if (!(typeof data2 == "number") && data2 !== null) {
|
|
7804
|
+
validate131.errors = [{
|
|
7805
|
+
instancePath: instancePath + "/lastChecks/pressure",
|
|
7806
|
+
schemaPath: "#/properties/lastChecks/properties/pressure/type",
|
|
7739
7807
|
keyword: "type",
|
|
7740
|
-
params: { type:
|
|
7741
|
-
message: "must be
|
|
7742
|
-
};
|
|
7743
|
-
|
|
7744
|
-
else vErrors.push(err1);
|
|
7745
|
-
errors++;
|
|
7808
|
+
params: { type: schema79.properties.lastChecks.properties.pressure.type },
|
|
7809
|
+
message: "must be number,null"
|
|
7810
|
+
}];
|
|
7811
|
+
return false;
|
|
7746
7812
|
}
|
|
7747
|
-
var
|
|
7748
|
-
} else var
|
|
7749
|
-
if (
|
|
7750
|
-
if (data1.
|
|
7751
|
-
|
|
7752
|
-
|
|
7753
|
-
|
|
7754
|
-
|
|
7755
|
-
|
|
7813
|
+
var valid1 = _errs5 === errors;
|
|
7814
|
+
} else var valid1 = true;
|
|
7815
|
+
if (valid1) {
|
|
7816
|
+
if (data1.size !== void 0) {
|
|
7817
|
+
let data3 = data1.size;
|
|
7818
|
+
const _errs7 = errors;
|
|
7819
|
+
if (!(typeof data3 == "number") && data3 !== null) {
|
|
7820
|
+
validate131.errors = [{
|
|
7821
|
+
instancePath: instancePath + "/lastChecks/size",
|
|
7822
|
+
schemaPath: "#/properties/lastChecks/properties/size/type",
|
|
7756
7823
|
keyword: "type",
|
|
7757
|
-
params: { type:
|
|
7758
|
-
message: "must be number"
|
|
7824
|
+
params: { type: schema79.properties.lastChecks.properties.size.type },
|
|
7825
|
+
message: "must be number,null"
|
|
7826
|
+
}];
|
|
7827
|
+
return false;
|
|
7828
|
+
}
|
|
7829
|
+
var valid1 = _errs7 === errors;
|
|
7830
|
+
} else var valid1 = true;
|
|
7831
|
+
if (valid1) {
|
|
7832
|
+
if (data1.worktree !== void 0) {
|
|
7833
|
+
let data4 = data1.worktree;
|
|
7834
|
+
const _errs9 = errors;
|
|
7835
|
+
if (!(typeof data4 == "number") && data4 !== null) {
|
|
7836
|
+
validate131.errors = [{
|
|
7837
|
+
instancePath: instancePath + "/lastChecks/worktree",
|
|
7838
|
+
schemaPath: "#/properties/lastChecks/properties/worktree/type",
|
|
7839
|
+
keyword: "type",
|
|
7840
|
+
params: { type: schema79.properties.lastChecks.properties.worktree.type },
|
|
7841
|
+
message: "must be number,null"
|
|
7842
|
+
}];
|
|
7843
|
+
return false;
|
|
7844
|
+
}
|
|
7845
|
+
var valid1 = _errs9 === errors;
|
|
7846
|
+
} else var valid1 = true;
|
|
7847
|
+
if (valid1) {
|
|
7848
|
+
if (data1.sweep !== void 0) {
|
|
7849
|
+
let data5 = data1.sweep;
|
|
7850
|
+
const _errs11 = errors;
|
|
7851
|
+
if (!(typeof data5 == "number") && data5 !== null) {
|
|
7852
|
+
validate131.errors = [{
|
|
7853
|
+
instancePath: instancePath + "/lastChecks/sweep",
|
|
7854
|
+
schemaPath: "#/properties/lastChecks/properties/sweep/type",
|
|
7855
|
+
keyword: "type",
|
|
7856
|
+
params: { type: schema79.properties.lastChecks.properties.sweep.type },
|
|
7857
|
+
message: "must be number,null"
|
|
7858
|
+
}];
|
|
7859
|
+
return false;
|
|
7860
|
+
}
|
|
7861
|
+
var valid1 = _errs11 === errors;
|
|
7862
|
+
} else var valid1 = true;
|
|
7863
|
+
}
|
|
7864
|
+
}
|
|
7865
|
+
}
|
|
7866
|
+
}
|
|
7867
|
+
} else {
|
|
7868
|
+
validate131.errors = [{
|
|
7869
|
+
instancePath: instancePath + "/lastChecks",
|
|
7870
|
+
schemaPath: "#/properties/lastChecks/type",
|
|
7871
|
+
keyword: "type",
|
|
7872
|
+
params: { type: "object" },
|
|
7873
|
+
message: "must be object"
|
|
7874
|
+
}];
|
|
7875
|
+
return false;
|
|
7876
|
+
}
|
|
7877
|
+
}
|
|
7878
|
+
var valid0 = _errs3 === errors;
|
|
7879
|
+
} else var valid0 = true;
|
|
7880
|
+
if (valid0) {
|
|
7881
|
+
if (data.lastPass !== void 0) {
|
|
7882
|
+
let data6 = data.lastPass;
|
|
7883
|
+
const _errs13 = errors;
|
|
7884
|
+
const _errs14 = errors;
|
|
7885
|
+
let valid2 = false;
|
|
7886
|
+
const _errs15 = errors;
|
|
7887
|
+
if (errors === _errs15) {
|
|
7888
|
+
if (data6 && typeof data6 == "object" && !Array.isArray(data6)) {
|
|
7889
|
+
let missing2;
|
|
7890
|
+
if (data6.actions === void 0 && (missing2 = "actions") || data6.blocked === void 0 && (missing2 = "blocked") || data6.durationMs === void 0 && (missing2 = "durationMs") || data6.freedBytes === void 0 && (missing2 = "freedBytes") || data6.mode === void 0 && (missing2 = "mode") || data6.startedAt === void 0 && (missing2 = "startedAt") || data6.stopped === void 0 && (missing2 = "stopped") || data6.trigger === void 0 && (missing2 = "trigger")) {
|
|
7891
|
+
const err0 = {
|
|
7892
|
+
instancePath: instancePath + "/lastPass",
|
|
7893
|
+
schemaPath: "#/properties/lastPass/anyOf/0/required",
|
|
7894
|
+
keyword: "required",
|
|
7895
|
+
params: { missingProperty: missing2 },
|
|
7896
|
+
message: "must have required property '" + missing2 + "'"
|
|
7897
|
+
};
|
|
7898
|
+
if (vErrors === null) vErrors = [err0];
|
|
7899
|
+
else vErrors.push(err0);
|
|
7900
|
+
errors++;
|
|
7901
|
+
} else {
|
|
7902
|
+
if (data6.mode !== void 0) {
|
|
7903
|
+
const _errs17 = errors;
|
|
7904
|
+
if (typeof data6.mode !== "string") {
|
|
7905
|
+
const err1 = {
|
|
7906
|
+
instancePath: instancePath + "/lastPass/mode",
|
|
7907
|
+
schemaPath: "#/properties/lastPass/anyOf/0/properties/mode/type",
|
|
7908
|
+
keyword: "type",
|
|
7909
|
+
params: { type: "string" },
|
|
7910
|
+
message: "must be string"
|
|
7759
7911
|
};
|
|
7760
|
-
if (vErrors === null) vErrors = [
|
|
7761
|
-
else vErrors.push(
|
|
7912
|
+
if (vErrors === null) vErrors = [err1];
|
|
7913
|
+
else vErrors.push(err1);
|
|
7762
7914
|
errors++;
|
|
7763
7915
|
}
|
|
7764
|
-
var
|
|
7765
|
-
} else var
|
|
7766
|
-
if (
|
|
7767
|
-
if (
|
|
7768
|
-
const
|
|
7769
|
-
if (!(typeof
|
|
7770
|
-
const
|
|
7771
|
-
instancePath: instancePath + "/lastPass/
|
|
7772
|
-
schemaPath: "#/properties/lastPass/anyOf/0/properties/
|
|
7916
|
+
var valid3 = _errs17 === errors;
|
|
7917
|
+
} else var valid3 = true;
|
|
7918
|
+
if (valid3) {
|
|
7919
|
+
if (data6.freedBytes !== void 0) {
|
|
7920
|
+
const _errs19 = errors;
|
|
7921
|
+
if (!(typeof data6.freedBytes == "number")) {
|
|
7922
|
+
const err2 = {
|
|
7923
|
+
instancePath: instancePath + "/lastPass/freedBytes",
|
|
7924
|
+
schemaPath: "#/properties/lastPass/anyOf/0/properties/freedBytes/type",
|
|
7773
7925
|
keyword: "type",
|
|
7774
7926
|
params: { type: "number" },
|
|
7775
7927
|
message: "must be number"
|
|
7776
7928
|
};
|
|
7777
|
-
if (vErrors === null) vErrors = [
|
|
7778
|
-
else vErrors.push(
|
|
7929
|
+
if (vErrors === null) vErrors = [err2];
|
|
7930
|
+
else vErrors.push(err2);
|
|
7779
7931
|
errors++;
|
|
7780
7932
|
}
|
|
7781
|
-
var
|
|
7782
|
-
} else var
|
|
7783
|
-
if (
|
|
7784
|
-
if (
|
|
7785
|
-
const
|
|
7786
|
-
if (!(typeof
|
|
7787
|
-
const
|
|
7788
|
-
instancePath: instancePath + "/lastPass/
|
|
7789
|
-
schemaPath: "#/properties/lastPass/anyOf/0/properties/
|
|
7933
|
+
var valid3 = _errs19 === errors;
|
|
7934
|
+
} else var valid3 = true;
|
|
7935
|
+
if (valid3) {
|
|
7936
|
+
if (data6.stopped !== void 0) {
|
|
7937
|
+
const _errs21 = errors;
|
|
7938
|
+
if (!(typeof data6.stopped == "number")) {
|
|
7939
|
+
const err3 = {
|
|
7940
|
+
instancePath: instancePath + "/lastPass/stopped",
|
|
7941
|
+
schemaPath: "#/properties/lastPass/anyOf/0/properties/stopped/type",
|
|
7790
7942
|
keyword: "type",
|
|
7791
7943
|
params: { type: "number" },
|
|
7792
7944
|
message: "must be number"
|
|
7793
7945
|
};
|
|
7794
|
-
if (vErrors === null) vErrors = [
|
|
7795
|
-
else vErrors.push(
|
|
7946
|
+
if (vErrors === null) vErrors = [err3];
|
|
7947
|
+
else vErrors.push(err3);
|
|
7796
7948
|
errors++;
|
|
7797
7949
|
}
|
|
7798
|
-
var
|
|
7799
|
-
} else var
|
|
7800
|
-
if (
|
|
7801
|
-
if (
|
|
7802
|
-
const
|
|
7803
|
-
if (!(typeof
|
|
7804
|
-
const
|
|
7805
|
-
instancePath: instancePath + "/lastPass/
|
|
7806
|
-
schemaPath: "#/properties/lastPass/anyOf/0/properties/
|
|
7950
|
+
var valid3 = _errs21 === errors;
|
|
7951
|
+
} else var valid3 = true;
|
|
7952
|
+
if (valid3) {
|
|
7953
|
+
if (data6.startedAt !== void 0) {
|
|
7954
|
+
const _errs23 = errors;
|
|
7955
|
+
if (!(typeof data6.startedAt == "number")) {
|
|
7956
|
+
const err4 = {
|
|
7957
|
+
instancePath: instancePath + "/lastPass/startedAt",
|
|
7958
|
+
schemaPath: "#/properties/lastPass/anyOf/0/properties/startedAt/type",
|
|
7807
7959
|
keyword: "type",
|
|
7808
7960
|
params: { type: "number" },
|
|
7809
7961
|
message: "must be number"
|
|
7810
7962
|
};
|
|
7811
|
-
if (vErrors === null) vErrors = [
|
|
7812
|
-
else vErrors.push(
|
|
7963
|
+
if (vErrors === null) vErrors = [err4];
|
|
7964
|
+
else vErrors.push(err4);
|
|
7813
7965
|
errors++;
|
|
7814
7966
|
}
|
|
7815
|
-
var
|
|
7816
|
-
} else var
|
|
7817
|
-
if (
|
|
7818
|
-
if (
|
|
7819
|
-
const
|
|
7820
|
-
if (typeof
|
|
7821
|
-
const
|
|
7822
|
-
instancePath: instancePath + "/lastPass/
|
|
7823
|
-
schemaPath: "#/properties/lastPass/anyOf/0/properties/
|
|
7967
|
+
var valid3 = _errs23 === errors;
|
|
7968
|
+
} else var valid3 = true;
|
|
7969
|
+
if (valid3) {
|
|
7970
|
+
if (data6.durationMs !== void 0) {
|
|
7971
|
+
const _errs25 = errors;
|
|
7972
|
+
if (!(typeof data6.durationMs == "number")) {
|
|
7973
|
+
const err5 = {
|
|
7974
|
+
instancePath: instancePath + "/lastPass/durationMs",
|
|
7975
|
+
schemaPath: "#/properties/lastPass/anyOf/0/properties/durationMs/type",
|
|
7824
7976
|
keyword: "type",
|
|
7825
|
-
params: { type: "
|
|
7826
|
-
message: "must be
|
|
7977
|
+
params: { type: "number" },
|
|
7978
|
+
message: "must be number"
|
|
7827
7979
|
};
|
|
7828
|
-
if (vErrors === null) vErrors = [
|
|
7829
|
-
else vErrors.push(
|
|
7980
|
+
if (vErrors === null) vErrors = [err5];
|
|
7981
|
+
else vErrors.push(err5);
|
|
7830
7982
|
errors++;
|
|
7831
7983
|
}
|
|
7832
|
-
var
|
|
7833
|
-
} else var
|
|
7834
|
-
if (
|
|
7835
|
-
if (
|
|
7836
|
-
const
|
|
7837
|
-
if (
|
|
7838
|
-
const
|
|
7839
|
-
instancePath: instancePath + "/lastPass/
|
|
7840
|
-
schemaPath: "#/properties/lastPass/anyOf/0/properties/
|
|
7984
|
+
var valid3 = _errs25 === errors;
|
|
7985
|
+
} else var valid3 = true;
|
|
7986
|
+
if (valid3) {
|
|
7987
|
+
if (data6.trigger !== void 0) {
|
|
7988
|
+
const _errs27 = errors;
|
|
7989
|
+
if (typeof data6.trigger !== "string") {
|
|
7990
|
+
const err6 = {
|
|
7991
|
+
instancePath: instancePath + "/lastPass/trigger",
|
|
7992
|
+
schemaPath: "#/properties/lastPass/anyOf/0/properties/trigger/type",
|
|
7841
7993
|
keyword: "type",
|
|
7842
|
-
params: { type: "
|
|
7843
|
-
message: "must be
|
|
7994
|
+
params: { type: "string" },
|
|
7995
|
+
message: "must be string"
|
|
7844
7996
|
};
|
|
7845
|
-
if (vErrors === null) vErrors = [
|
|
7846
|
-
else vErrors.push(
|
|
7997
|
+
if (vErrors === null) vErrors = [err6];
|
|
7998
|
+
else vErrors.push(err6);
|
|
7847
7999
|
errors++;
|
|
7848
8000
|
}
|
|
7849
|
-
var
|
|
7850
|
-
} else var
|
|
7851
|
-
if (
|
|
7852
|
-
if (
|
|
7853
|
-
|
|
7854
|
-
|
|
7855
|
-
|
|
7856
|
-
|
|
7857
|
-
|
|
7858
|
-
|
|
7859
|
-
|
|
7860
|
-
|
|
7861
|
-
|
|
7862
|
-
|
|
7863
|
-
|
|
7864
|
-
|
|
7865
|
-
|
|
7866
|
-
|
|
7867
|
-
|
|
7868
|
-
|
|
7869
|
-
|
|
7870
|
-
|
|
8001
|
+
var valid3 = _errs27 === errors;
|
|
8002
|
+
} else var valid3 = true;
|
|
8003
|
+
if (valid3) {
|
|
8004
|
+
if (data6.actions !== void 0) {
|
|
8005
|
+
const _errs29 = errors;
|
|
8006
|
+
if (!(typeof data6.actions == "number")) {
|
|
8007
|
+
const err7 = {
|
|
8008
|
+
instancePath: instancePath + "/lastPass/actions",
|
|
8009
|
+
schemaPath: "#/properties/lastPass/anyOf/0/properties/actions/type",
|
|
8010
|
+
keyword: "type",
|
|
8011
|
+
params: { type: "number" },
|
|
8012
|
+
message: "must be number"
|
|
8013
|
+
};
|
|
8014
|
+
if (vErrors === null) vErrors = [err7];
|
|
8015
|
+
else vErrors.push(err7);
|
|
8016
|
+
errors++;
|
|
8017
|
+
}
|
|
8018
|
+
var valid3 = _errs29 === errors;
|
|
8019
|
+
} else var valid3 = true;
|
|
8020
|
+
if (valid3) {
|
|
8021
|
+
if (data6.blocked !== void 0) {
|
|
8022
|
+
let data14 = data6.blocked;
|
|
8023
|
+
const _errs31 = errors;
|
|
8024
|
+
if (errors === _errs31) {
|
|
8025
|
+
if (Array.isArray(data14)) {
|
|
8026
|
+
const len0 = data14.length;
|
|
8027
|
+
for (let i0 = 0; i0 < len0; i0++) {
|
|
8028
|
+
const _errs33 = errors;
|
|
8029
|
+
if (typeof data14[i0] !== "string") {
|
|
8030
|
+
const err8 = {
|
|
8031
|
+
instancePath: instancePath + "/lastPass/blocked/" + i0,
|
|
8032
|
+
schemaPath: "#/properties/lastPass/anyOf/0/properties/blocked/items/type",
|
|
8033
|
+
keyword: "type",
|
|
8034
|
+
params: { type: "string" },
|
|
8035
|
+
message: "must be string"
|
|
8036
|
+
};
|
|
8037
|
+
if (vErrors === null) vErrors = [err8];
|
|
8038
|
+
else vErrors.push(err8);
|
|
8039
|
+
errors++;
|
|
8040
|
+
}
|
|
8041
|
+
if (!(_errs33 === errors)) break;
|
|
7871
8042
|
}
|
|
7872
|
-
|
|
8043
|
+
} else {
|
|
8044
|
+
const err9 = {
|
|
8045
|
+
instancePath: instancePath + "/lastPass/blocked",
|
|
8046
|
+
schemaPath: "#/properties/lastPass/anyOf/0/properties/blocked/type",
|
|
8047
|
+
keyword: "type",
|
|
8048
|
+
params: { type: "array" },
|
|
8049
|
+
message: "must be array"
|
|
8050
|
+
};
|
|
8051
|
+
if (vErrors === null) vErrors = [err9];
|
|
8052
|
+
else vErrors.push(err9);
|
|
8053
|
+
errors++;
|
|
7873
8054
|
}
|
|
7874
|
-
} else {
|
|
7875
|
-
const err9 = {
|
|
7876
|
-
instancePath: instancePath + "/lastPass/blocked",
|
|
7877
|
-
schemaPath: "#/properties/lastPass/anyOf/0/properties/blocked/type",
|
|
7878
|
-
keyword: "type",
|
|
7879
|
-
params: { type: "array" },
|
|
7880
|
-
message: "must be array"
|
|
7881
|
-
};
|
|
7882
|
-
if (vErrors === null) vErrors = [err9];
|
|
7883
|
-
else vErrors.push(err9);
|
|
7884
|
-
errors++;
|
|
7885
8055
|
}
|
|
7886
|
-
|
|
7887
|
-
var
|
|
7888
|
-
}
|
|
8056
|
+
var valid3 = _errs31 === errors;
|
|
8057
|
+
} else var valid3 = true;
|
|
8058
|
+
}
|
|
7889
8059
|
}
|
|
7890
8060
|
}
|
|
7891
8061
|
}
|
|
@@ -7893,594 +8063,578 @@ function validate131(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
7893
8063
|
}
|
|
7894
8064
|
}
|
|
7895
8065
|
}
|
|
8066
|
+
} else {
|
|
8067
|
+
const err10 = {
|
|
8068
|
+
instancePath: instancePath + "/lastPass",
|
|
8069
|
+
schemaPath: "#/properties/lastPass/anyOf/0/type",
|
|
8070
|
+
keyword: "type",
|
|
8071
|
+
params: { type: "object" },
|
|
8072
|
+
message: "must be object"
|
|
8073
|
+
};
|
|
8074
|
+
if (vErrors === null) vErrors = [err10];
|
|
8075
|
+
else vErrors.push(err10);
|
|
8076
|
+
errors++;
|
|
7896
8077
|
}
|
|
7897
|
-
} else {
|
|
7898
|
-
const err10 = {
|
|
7899
|
-
instancePath: instancePath + "/lastPass",
|
|
7900
|
-
schemaPath: "#/properties/lastPass/anyOf/0/type",
|
|
7901
|
-
keyword: "type",
|
|
7902
|
-
params: { type: "object" },
|
|
7903
|
-
message: "must be object"
|
|
7904
|
-
};
|
|
7905
|
-
if (vErrors === null) vErrors = [err10];
|
|
7906
|
-
else vErrors.push(err10);
|
|
7907
|
-
errors++;
|
|
7908
8078
|
}
|
|
7909
|
-
|
|
7910
|
-
|
|
7911
|
-
|
|
7912
|
-
|
|
7913
|
-
|
|
7914
|
-
|
|
7915
|
-
|
|
8079
|
+
var _valid0 = _errs15 === errors;
|
|
8080
|
+
valid2 = valid2 || _valid0;
|
|
8081
|
+
if (!valid2) {
|
|
8082
|
+
const _errs35 = errors;
|
|
8083
|
+
if (data6 !== null) {
|
|
8084
|
+
const err11 = {
|
|
8085
|
+
instancePath: instancePath + "/lastPass",
|
|
8086
|
+
schemaPath: "#/properties/lastPass/anyOf/1/type",
|
|
8087
|
+
keyword: "type",
|
|
8088
|
+
params: { type: "null" },
|
|
8089
|
+
message: "must be null"
|
|
8090
|
+
};
|
|
8091
|
+
if (vErrors === null) vErrors = [err11];
|
|
8092
|
+
else vErrors.push(err11);
|
|
8093
|
+
errors++;
|
|
8094
|
+
}
|
|
8095
|
+
var _valid0 = _errs35 === errors;
|
|
8096
|
+
valid2 = valid2 || _valid0;
|
|
8097
|
+
}
|
|
8098
|
+
if (!valid2) {
|
|
8099
|
+
const err12 = {
|
|
7916
8100
|
instancePath: instancePath + "/lastPass",
|
|
7917
|
-
schemaPath: "#/properties/lastPass/anyOf
|
|
7918
|
-
keyword: "
|
|
7919
|
-
params: {
|
|
7920
|
-
message: "must
|
|
8101
|
+
schemaPath: "#/properties/lastPass/anyOf",
|
|
8102
|
+
keyword: "anyOf",
|
|
8103
|
+
params: {},
|
|
8104
|
+
message: "must match a schema in anyOf"
|
|
7921
8105
|
};
|
|
7922
|
-
if (vErrors === null) vErrors = [
|
|
7923
|
-
else vErrors.push(
|
|
8106
|
+
if (vErrors === null) vErrors = [err12];
|
|
8107
|
+
else vErrors.push(err12);
|
|
7924
8108
|
errors++;
|
|
8109
|
+
validate131.errors = vErrors;
|
|
8110
|
+
return false;
|
|
8111
|
+
} else {
|
|
8112
|
+
errors = _errs14;
|
|
8113
|
+
if (vErrors !== null) {
|
|
8114
|
+
if (_errs14) vErrors.length = _errs14;
|
|
8115
|
+
else vErrors = null;
|
|
8116
|
+
}
|
|
7925
8117
|
}
|
|
7926
|
-
var
|
|
7927
|
-
|
|
7928
|
-
|
|
7929
|
-
|
|
7930
|
-
|
|
7931
|
-
|
|
7932
|
-
|
|
7933
|
-
|
|
7934
|
-
|
|
7935
|
-
|
|
7936
|
-
|
|
7937
|
-
|
|
7938
|
-
|
|
7939
|
-
|
|
7940
|
-
|
|
7941
|
-
|
|
7942
|
-
|
|
7943
|
-
|
|
7944
|
-
|
|
7945
|
-
|
|
7946
|
-
|
|
7947
|
-
|
|
7948
|
-
|
|
7949
|
-
|
|
7950
|
-
|
|
7951
|
-
|
|
7952
|
-
|
|
7953
|
-
|
|
7954
|
-
const _errs27 = errors;
|
|
7955
|
-
if (errors === _errs27) {
|
|
7956
|
-
if (Array.isArray(data11)) {
|
|
7957
|
-
const len1 = data11.length;
|
|
7958
|
-
for (let i1 = 0; i1 < len1; i1++) {
|
|
7959
|
-
let data12 = data11[i1];
|
|
7960
|
-
const _errs29 = errors;
|
|
7961
|
-
if (errors === _errs29) {
|
|
7962
|
-
if (data12 && typeof data12 == "object" && !Array.isArray(data12)) {
|
|
7963
|
-
let missing2;
|
|
7964
|
-
if (data12.bytes === void 0 && (missing2 = "bytes") || data12.kind === void 0 && (missing2 = "kind") || data12.reason === void 0 && (missing2 = "reason") || data12.target === void 0 && (missing2 = "target")) {
|
|
7965
|
-
validate131.errors = [{
|
|
7966
|
-
instancePath: instancePath + "/plan/" + i1,
|
|
7967
|
-
schemaPath: "#/properties/plan/items/required",
|
|
7968
|
-
keyword: "required",
|
|
7969
|
-
params: { missingProperty: missing2 },
|
|
7970
|
-
message: "must have required property '" + missing2 + "'"
|
|
7971
|
-
}];
|
|
7972
|
-
return false;
|
|
7973
|
-
} else {
|
|
7974
|
-
if (data12.kind !== void 0) {
|
|
7975
|
-
const _errs31 = errors;
|
|
7976
|
-
if (typeof data12.kind !== "string") {
|
|
7977
|
-
validate131.errors = [{
|
|
7978
|
-
instancePath: instancePath + "/plan/" + i1 + "/kind",
|
|
7979
|
-
schemaPath: "#/properties/plan/items/properties/kind/type",
|
|
7980
|
-
keyword: "type",
|
|
7981
|
-
params: { type: "string" },
|
|
7982
|
-
message: "must be string"
|
|
7983
|
-
}];
|
|
7984
|
-
return false;
|
|
7985
|
-
}
|
|
7986
|
-
var valid5 = _errs31 === errors;
|
|
7987
|
-
} else var valid5 = true;
|
|
7988
|
-
if (valid5) {
|
|
7989
|
-
if (data12.target !== void 0) {
|
|
7990
|
-
const _errs33 = errors;
|
|
7991
|
-
if (typeof data12.target !== "string") {
|
|
8118
|
+
var valid0 = _errs13 === errors;
|
|
8119
|
+
} else var valid0 = true;
|
|
8120
|
+
if (valid0) {
|
|
8121
|
+
if (data.plan !== void 0) {
|
|
8122
|
+
let data16 = data.plan;
|
|
8123
|
+
const _errs37 = errors;
|
|
8124
|
+
if (errors === _errs37) {
|
|
8125
|
+
if (Array.isArray(data16)) {
|
|
8126
|
+
const len1 = data16.length;
|
|
8127
|
+
for (let i1 = 0; i1 < len1; i1++) {
|
|
8128
|
+
let data17 = data16[i1];
|
|
8129
|
+
const _errs39 = errors;
|
|
8130
|
+
if (errors === _errs39) {
|
|
8131
|
+
if (data17 && typeof data17 == "object" && !Array.isArray(data17)) {
|
|
8132
|
+
let missing3;
|
|
8133
|
+
if (data17.bytes === void 0 && (missing3 = "bytes") || data17.kind === void 0 && (missing3 = "kind") || data17.reason === void 0 && (missing3 = "reason") || data17.target === void 0 && (missing3 = "target")) {
|
|
8134
|
+
validate131.errors = [{
|
|
8135
|
+
instancePath: instancePath + "/plan/" + i1,
|
|
8136
|
+
schemaPath: "#/properties/plan/items/required",
|
|
8137
|
+
keyword: "required",
|
|
8138
|
+
params: { missingProperty: missing3 },
|
|
8139
|
+
message: "must have required property '" + missing3 + "'"
|
|
8140
|
+
}];
|
|
8141
|
+
return false;
|
|
8142
|
+
} else {
|
|
8143
|
+
if (data17.kind !== void 0) {
|
|
8144
|
+
const _errs41 = errors;
|
|
8145
|
+
if (typeof data17.kind !== "string") {
|
|
7992
8146
|
validate131.errors = [{
|
|
7993
|
-
instancePath: instancePath + "/plan/" + i1 + "/
|
|
7994
|
-
schemaPath: "#/properties/plan/items/properties/
|
|
8147
|
+
instancePath: instancePath + "/plan/" + i1 + "/kind",
|
|
8148
|
+
schemaPath: "#/properties/plan/items/properties/kind/type",
|
|
7995
8149
|
keyword: "type",
|
|
7996
8150
|
params: { type: "string" },
|
|
7997
8151
|
message: "must be string"
|
|
7998
8152
|
}];
|
|
7999
8153
|
return false;
|
|
8000
8154
|
}
|
|
8001
|
-
var
|
|
8002
|
-
} else var
|
|
8003
|
-
if (
|
|
8004
|
-
if (
|
|
8005
|
-
const
|
|
8006
|
-
if (
|
|
8155
|
+
var valid6 = _errs41 === errors;
|
|
8156
|
+
} else var valid6 = true;
|
|
8157
|
+
if (valid6) {
|
|
8158
|
+
if (data17.check !== void 0) {
|
|
8159
|
+
const _errs43 = errors;
|
|
8160
|
+
if (typeof data17.check !== "string") {
|
|
8007
8161
|
validate131.errors = [{
|
|
8008
|
-
instancePath: instancePath + "/plan/" + i1 + "/
|
|
8009
|
-
schemaPath: "#/properties/plan/items/properties/
|
|
8162
|
+
instancePath: instancePath + "/plan/" + i1 + "/check",
|
|
8163
|
+
schemaPath: "#/properties/plan/items/properties/check/type",
|
|
8010
8164
|
keyword: "type",
|
|
8011
|
-
params: { type: "
|
|
8012
|
-
message: "must be
|
|
8165
|
+
params: { type: "string" },
|
|
8166
|
+
message: "must be string"
|
|
8013
8167
|
}];
|
|
8014
8168
|
return false;
|
|
8015
8169
|
}
|
|
8016
|
-
var
|
|
8017
|
-
} else var
|
|
8018
|
-
if (
|
|
8019
|
-
if (
|
|
8020
|
-
const
|
|
8021
|
-
if (typeof
|
|
8170
|
+
var valid6 = _errs43 === errors;
|
|
8171
|
+
} else var valid6 = true;
|
|
8172
|
+
if (valid6) {
|
|
8173
|
+
if (data17.target !== void 0) {
|
|
8174
|
+
const _errs45 = errors;
|
|
8175
|
+
if (typeof data17.target !== "string") {
|
|
8022
8176
|
validate131.errors = [{
|
|
8023
|
-
instancePath: instancePath + "/plan/" + i1 + "/
|
|
8024
|
-
schemaPath: "#/properties/plan/items/properties/
|
|
8177
|
+
instancePath: instancePath + "/plan/" + i1 + "/target",
|
|
8178
|
+
schemaPath: "#/properties/plan/items/properties/target/type",
|
|
8025
8179
|
keyword: "type",
|
|
8026
8180
|
params: { type: "string" },
|
|
8027
8181
|
message: "must be string"
|
|
8028
8182
|
}];
|
|
8029
8183
|
return false;
|
|
8030
8184
|
}
|
|
8031
|
-
var
|
|
8032
|
-
} else var
|
|
8033
|
-
if (
|
|
8034
|
-
if (
|
|
8035
|
-
const
|
|
8036
|
-
if (typeof
|
|
8185
|
+
var valid6 = _errs45 === errors;
|
|
8186
|
+
} else var valid6 = true;
|
|
8187
|
+
if (valid6) {
|
|
8188
|
+
if (data17.bytes !== void 0) {
|
|
8189
|
+
const _errs47 = errors;
|
|
8190
|
+
if (!(typeof data17.bytes == "number")) {
|
|
8037
8191
|
validate131.errors = [{
|
|
8038
|
-
instancePath: instancePath + "/plan/" + i1 + "/
|
|
8039
|
-
schemaPath: "#/properties/plan/items/properties/
|
|
8192
|
+
instancePath: instancePath + "/plan/" + i1 + "/bytes",
|
|
8193
|
+
schemaPath: "#/properties/plan/items/properties/bytes/type",
|
|
8040
8194
|
keyword: "type",
|
|
8041
|
-
params: { type: "
|
|
8042
|
-
message: "must be
|
|
8195
|
+
params: { type: "number" },
|
|
8196
|
+
message: "must be number"
|
|
8043
8197
|
}];
|
|
8044
8198
|
return false;
|
|
8045
8199
|
}
|
|
8046
|
-
var
|
|
8047
|
-
} else var
|
|
8200
|
+
var valid6 = _errs47 === errors;
|
|
8201
|
+
} else var valid6 = true;
|
|
8202
|
+
if (valid6) {
|
|
8203
|
+
if (data17.reason !== void 0) {
|
|
8204
|
+
const _errs49 = errors;
|
|
8205
|
+
if (typeof data17.reason !== "string") {
|
|
8206
|
+
validate131.errors = [{
|
|
8207
|
+
instancePath: instancePath + "/plan/" + i1 + "/reason",
|
|
8208
|
+
schemaPath: "#/properties/plan/items/properties/reason/type",
|
|
8209
|
+
keyword: "type",
|
|
8210
|
+
params: { type: "string" },
|
|
8211
|
+
message: "must be string"
|
|
8212
|
+
}];
|
|
8213
|
+
return false;
|
|
8214
|
+
}
|
|
8215
|
+
var valid6 = _errs49 === errors;
|
|
8216
|
+
} else var valid6 = true;
|
|
8217
|
+
if (valid6) {
|
|
8218
|
+
if (data17.workspace !== void 0) {
|
|
8219
|
+
const _errs51 = errors;
|
|
8220
|
+
if (typeof data17.workspace !== "string") {
|
|
8221
|
+
validate131.errors = [{
|
|
8222
|
+
instancePath: instancePath + "/plan/" + i1 + "/workspace",
|
|
8223
|
+
schemaPath: "#/properties/plan/items/properties/workspace/type",
|
|
8224
|
+
keyword: "type",
|
|
8225
|
+
params: { type: "string" },
|
|
8226
|
+
message: "must be string"
|
|
8227
|
+
}];
|
|
8228
|
+
return false;
|
|
8229
|
+
}
|
|
8230
|
+
var valid6 = _errs51 === errors;
|
|
8231
|
+
} else var valid6 = true;
|
|
8232
|
+
if (valid6) {
|
|
8233
|
+
if (data17.dir !== void 0) {
|
|
8234
|
+
const _errs53 = errors;
|
|
8235
|
+
if (typeof data17.dir !== "string") {
|
|
8236
|
+
validate131.errors = [{
|
|
8237
|
+
instancePath: instancePath + "/plan/" + i1 + "/dir",
|
|
8238
|
+
schemaPath: "#/properties/plan/items/properties/dir/type",
|
|
8239
|
+
keyword: "type",
|
|
8240
|
+
params: { type: "string" },
|
|
8241
|
+
message: "must be string"
|
|
8242
|
+
}];
|
|
8243
|
+
return false;
|
|
8244
|
+
}
|
|
8245
|
+
var valid6 = _errs53 === errors;
|
|
8246
|
+
} else var valid6 = true;
|
|
8247
|
+
if (valid6) {
|
|
8248
|
+
if (data17.olderThanDays !== void 0) {
|
|
8249
|
+
const _errs55 = errors;
|
|
8250
|
+
if (!(typeof data17.olderThanDays == "number")) {
|
|
8251
|
+
validate131.errors = [{
|
|
8252
|
+
instancePath: instancePath + "/plan/" + i1 + "/olderThanDays",
|
|
8253
|
+
schemaPath: "#/properties/plan/items/properties/olderThanDays/type",
|
|
8254
|
+
keyword: "type",
|
|
8255
|
+
params: { type: "number" },
|
|
8256
|
+
message: "must be number"
|
|
8257
|
+
}];
|
|
8258
|
+
return false;
|
|
8259
|
+
}
|
|
8260
|
+
var valid6 = _errs55 === errors;
|
|
8261
|
+
} else var valid6 = true;
|
|
8262
|
+
}
|
|
8263
|
+
}
|
|
8264
|
+
}
|
|
8265
|
+
}
|
|
8048
8266
|
}
|
|
8049
8267
|
}
|
|
8050
8268
|
}
|
|
8051
8269
|
}
|
|
8270
|
+
} else {
|
|
8271
|
+
validate131.errors = [{
|
|
8272
|
+
instancePath: instancePath + "/plan/" + i1,
|
|
8273
|
+
schemaPath: "#/properties/plan/items/type",
|
|
8274
|
+
keyword: "type",
|
|
8275
|
+
params: { type: "object" },
|
|
8276
|
+
message: "must be object"
|
|
8277
|
+
}];
|
|
8278
|
+
return false;
|
|
8052
8279
|
}
|
|
8053
|
-
} else {
|
|
8054
|
-
validate131.errors = [{
|
|
8055
|
-
instancePath: instancePath + "/plan/" + i1,
|
|
8056
|
-
schemaPath: "#/properties/plan/items/type",
|
|
8057
|
-
keyword: "type",
|
|
8058
|
-
params: { type: "object" },
|
|
8059
|
-
message: "must be object"
|
|
8060
|
-
}];
|
|
8061
|
-
return false;
|
|
8062
8280
|
}
|
|
8281
|
+
if (!(_errs39 === errors)) break;
|
|
8063
8282
|
}
|
|
8064
|
-
|
|
8283
|
+
} else {
|
|
8284
|
+
validate131.errors = [{
|
|
8285
|
+
instancePath: instancePath + "/plan",
|
|
8286
|
+
schemaPath: "#/properties/plan/type",
|
|
8287
|
+
keyword: "type",
|
|
8288
|
+
params: { type: "array" },
|
|
8289
|
+
message: "must be array"
|
|
8290
|
+
}];
|
|
8291
|
+
return false;
|
|
8065
8292
|
}
|
|
8066
|
-
} else {
|
|
8067
|
-
validate131.errors = [{
|
|
8068
|
-
instancePath: instancePath + "/plan",
|
|
8069
|
-
schemaPath: "#/properties/plan/type",
|
|
8070
|
-
keyword: "type",
|
|
8071
|
-
params: { type: "array" },
|
|
8072
|
-
message: "must be array"
|
|
8073
|
-
}];
|
|
8074
|
-
return false;
|
|
8075
8293
|
}
|
|
8076
|
-
|
|
8077
|
-
var valid0 =
|
|
8078
|
-
|
|
8079
|
-
|
|
8080
|
-
|
|
8081
|
-
|
|
8082
|
-
|
|
8083
|
-
|
|
8084
|
-
|
|
8085
|
-
|
|
8086
|
-
|
|
8087
|
-
|
|
8088
|
-
|
|
8089
|
-
|
|
8090
|
-
|
|
8091
|
-
|
|
8092
|
-
|
|
8093
|
-
|
|
8094
|
-
|
|
8095
|
-
|
|
8096
|
-
|
|
8097
|
-
|
|
8098
|
-
|
|
8099
|
-
|
|
8100
|
-
|
|
8101
|
-
|
|
8102
|
-
|
|
8103
|
-
|
|
8104
|
-
|
|
8105
|
-
|
|
8106
|
-
|
|
8107
|
-
|
|
8108
|
-
|
|
8109
|
-
|
|
8110
|
-
|
|
8111
|
-
|
|
8112
|
-
|
|
8113
|
-
|
|
8114
|
-
|
|
8115
|
-
|
|
8116
|
-
|
|
8117
|
-
|
|
8118
|
-
|
|
8119
|
-
|
|
8120
|
-
|
|
8121
|
-
|
|
8122
|
-
|
|
8123
|
-
|
|
8124
|
-
|
|
8125
|
-
schemaPath: "#/properties/pressure/anyOf/0/properties/memory/properties/level/type",
|
|
8126
|
-
keyword: "type",
|
|
8127
|
-
params: { type: schema79.properties.pressure.anyOf[0].properties.memory.properties.level.type },
|
|
8128
|
-
message: "must be string,null"
|
|
8129
|
-
};
|
|
8130
|
-
if (vErrors === null) vErrors = [err15];
|
|
8131
|
-
else vErrors.push(err15);
|
|
8132
|
-
errors++;
|
|
8133
|
-
}
|
|
8134
|
-
var valid8 = _errs47 === errors;
|
|
8135
|
-
} else var valid8 = true;
|
|
8136
|
-
if (valid8) {
|
|
8137
|
-
if (data19.availableBytes !== void 0) {
|
|
8138
|
-
let data21 = data19.availableBytes;
|
|
8139
|
-
const _errs49 = errors;
|
|
8140
|
-
if (!(typeof data21 == "number") && data21 !== null) {
|
|
8141
|
-
const err16 = {
|
|
8142
|
-
instancePath: instancePath + "/pressure/memory/availableBytes",
|
|
8143
|
-
schemaPath: "#/properties/pressure/anyOf/0/properties/memory/properties/availableBytes/type",
|
|
8294
|
+
var valid0 = _errs37 === errors;
|
|
8295
|
+
} else var valid0 = true;
|
|
8296
|
+
if (valid0) {
|
|
8297
|
+
if (data.pressure !== void 0) {
|
|
8298
|
+
let data26 = data.pressure;
|
|
8299
|
+
const _errs57 = errors;
|
|
8300
|
+
const _errs58 = errors;
|
|
8301
|
+
let valid7 = false;
|
|
8302
|
+
const _errs59 = errors;
|
|
8303
|
+
if (errors === _errs59) {
|
|
8304
|
+
if (data26 && typeof data26 == "object" && !Array.isArray(data26)) {
|
|
8305
|
+
let missing4;
|
|
8306
|
+
if (data26.disk === void 0 && (missing4 = "disk") || data26.memory === void 0 && (missing4 = "memory") || data26.warningSince === void 0 && (missing4 = "warningSince")) {
|
|
8307
|
+
const err13 = {
|
|
8308
|
+
instancePath: instancePath + "/pressure",
|
|
8309
|
+
schemaPath: "#/properties/pressure/anyOf/0/required",
|
|
8310
|
+
keyword: "required",
|
|
8311
|
+
params: { missingProperty: missing4 },
|
|
8312
|
+
message: "must have required property '" + missing4 + "'"
|
|
8313
|
+
};
|
|
8314
|
+
if (vErrors === null) vErrors = [err13];
|
|
8315
|
+
else vErrors.push(err13);
|
|
8316
|
+
errors++;
|
|
8317
|
+
} else {
|
|
8318
|
+
if (data26.memory !== void 0) {
|
|
8319
|
+
let data27 = data26.memory;
|
|
8320
|
+
const _errs61 = errors;
|
|
8321
|
+
if (errors === _errs61) {
|
|
8322
|
+
if (data27 && typeof data27 == "object" && !Array.isArray(data27)) {
|
|
8323
|
+
let missing5;
|
|
8324
|
+
if (data27.availableBytes === void 0 && (missing5 = "availableBytes") || data27.level === void 0 && (missing5 = "level") || data27.pressured === void 0 && (missing5 = "pressured")) {
|
|
8325
|
+
const err14 = {
|
|
8326
|
+
instancePath: instancePath + "/pressure/memory",
|
|
8327
|
+
schemaPath: "#/properties/pressure/anyOf/0/properties/memory/required",
|
|
8328
|
+
keyword: "required",
|
|
8329
|
+
params: { missingProperty: missing5 },
|
|
8330
|
+
message: "must have required property '" + missing5 + "'"
|
|
8331
|
+
};
|
|
8332
|
+
if (vErrors === null) vErrors = [err14];
|
|
8333
|
+
else vErrors.push(err14);
|
|
8334
|
+
errors++;
|
|
8335
|
+
} else {
|
|
8336
|
+
if (data27.level !== void 0) {
|
|
8337
|
+
let data28 = data27.level;
|
|
8338
|
+
const _errs63 = errors;
|
|
8339
|
+
if (typeof data28 !== "string" && data28 !== null) {
|
|
8340
|
+
const err15 = {
|
|
8341
|
+
instancePath: instancePath + "/pressure/memory/level",
|
|
8342
|
+
schemaPath: "#/properties/pressure/anyOf/0/properties/memory/properties/level/type",
|
|
8144
8343
|
keyword: "type",
|
|
8145
|
-
params: { type: schema79.properties.pressure.anyOf[0].properties.memory.properties.
|
|
8146
|
-
message: "must be
|
|
8344
|
+
params: { type: schema79.properties.pressure.anyOf[0].properties.memory.properties.level.type },
|
|
8345
|
+
message: "must be string,null"
|
|
8147
8346
|
};
|
|
8148
|
-
if (vErrors === null) vErrors = [
|
|
8149
|
-
else vErrors.push(
|
|
8347
|
+
if (vErrors === null) vErrors = [err15];
|
|
8348
|
+
else vErrors.push(err15);
|
|
8150
8349
|
errors++;
|
|
8151
8350
|
}
|
|
8152
|
-
var
|
|
8153
|
-
} else var
|
|
8154
|
-
if (
|
|
8155
|
-
if (
|
|
8156
|
-
|
|
8157
|
-
|
|
8158
|
-
|
|
8159
|
-
|
|
8160
|
-
|
|
8351
|
+
var valid9 = _errs63 === errors;
|
|
8352
|
+
} else var valid9 = true;
|
|
8353
|
+
if (valid9) {
|
|
8354
|
+
if (data27.availableBytes !== void 0) {
|
|
8355
|
+
let data29 = data27.availableBytes;
|
|
8356
|
+
const _errs65 = errors;
|
|
8357
|
+
if (!(typeof data29 == "number") && data29 !== null) {
|
|
8358
|
+
const err16 = {
|
|
8359
|
+
instancePath: instancePath + "/pressure/memory/availableBytes",
|
|
8360
|
+
schemaPath: "#/properties/pressure/anyOf/0/properties/memory/properties/availableBytes/type",
|
|
8161
8361
|
keyword: "type",
|
|
8162
|
-
params: { type:
|
|
8163
|
-
message: "must be
|
|
8362
|
+
params: { type: schema79.properties.pressure.anyOf[0].properties.memory.properties.availableBytes.type },
|
|
8363
|
+
message: "must be number,null"
|
|
8164
8364
|
};
|
|
8165
|
-
if (vErrors === null) vErrors = [
|
|
8166
|
-
else vErrors.push(
|
|
8365
|
+
if (vErrors === null) vErrors = [err16];
|
|
8366
|
+
else vErrors.push(err16);
|
|
8167
8367
|
errors++;
|
|
8168
8368
|
}
|
|
8169
|
-
var
|
|
8170
|
-
} else var
|
|
8369
|
+
var valid9 = _errs65 === errors;
|
|
8370
|
+
} else var valid9 = true;
|
|
8371
|
+
if (valid9) {
|
|
8372
|
+
if (data27.pressured !== void 0) {
|
|
8373
|
+
const _errs67 = errors;
|
|
8374
|
+
if (typeof data27.pressured !== "boolean") {
|
|
8375
|
+
const err17 = {
|
|
8376
|
+
instancePath: instancePath + "/pressure/memory/pressured",
|
|
8377
|
+
schemaPath: "#/properties/pressure/anyOf/0/properties/memory/properties/pressured/type",
|
|
8378
|
+
keyword: "type",
|
|
8379
|
+
params: { type: "boolean" },
|
|
8380
|
+
message: "must be boolean"
|
|
8381
|
+
};
|
|
8382
|
+
if (vErrors === null) vErrors = [err17];
|
|
8383
|
+
else vErrors.push(err17);
|
|
8384
|
+
errors++;
|
|
8385
|
+
}
|
|
8386
|
+
var valid9 = _errs67 === errors;
|
|
8387
|
+
} else var valid9 = true;
|
|
8388
|
+
}
|
|
8171
8389
|
}
|
|
8172
8390
|
}
|
|
8391
|
+
} else {
|
|
8392
|
+
const err18 = {
|
|
8393
|
+
instancePath: instancePath + "/pressure/memory",
|
|
8394
|
+
schemaPath: "#/properties/pressure/anyOf/0/properties/memory/type",
|
|
8395
|
+
keyword: "type",
|
|
8396
|
+
params: { type: "object" },
|
|
8397
|
+
message: "must be object"
|
|
8398
|
+
};
|
|
8399
|
+
if (vErrors === null) vErrors = [err18];
|
|
8400
|
+
else vErrors.push(err18);
|
|
8401
|
+
errors++;
|
|
8173
8402
|
}
|
|
8174
|
-
} else {
|
|
8175
|
-
const err18 = {
|
|
8176
|
-
instancePath: instancePath + "/pressure/memory",
|
|
8177
|
-
schemaPath: "#/properties/pressure/anyOf/0/properties/memory/type",
|
|
8178
|
-
keyword: "type",
|
|
8179
|
-
params: { type: "object" },
|
|
8180
|
-
message: "must be object"
|
|
8181
|
-
};
|
|
8182
|
-
if (vErrors === null) vErrors = [err18];
|
|
8183
|
-
else vErrors.push(err18);
|
|
8184
|
-
errors++;
|
|
8185
8403
|
}
|
|
8186
|
-
|
|
8187
|
-
var
|
|
8188
|
-
|
|
8189
|
-
|
|
8190
|
-
|
|
8191
|
-
|
|
8192
|
-
|
|
8193
|
-
|
|
8194
|
-
|
|
8195
|
-
|
|
8196
|
-
|
|
8197
|
-
|
|
8198
|
-
|
|
8199
|
-
|
|
8200
|
-
|
|
8201
|
-
|
|
8202
|
-
|
|
8203
|
-
|
|
8204
|
-
|
|
8205
|
-
|
|
8206
|
-
|
|
8207
|
-
|
|
8208
|
-
|
|
8209
|
-
|
|
8210
|
-
|
|
8211
|
-
|
|
8212
|
-
|
|
8213
|
-
|
|
8214
|
-
|
|
8215
|
-
|
|
8216
|
-
|
|
8217
|
-
|
|
8218
|
-
|
|
8219
|
-
schemaPath: "#/properties/pressure/anyOf/0/properties/disk/items/properties/volume/type",
|
|
8220
|
-
keyword: "type",
|
|
8221
|
-
params: { type: "string" },
|
|
8222
|
-
message: "must be string"
|
|
8223
|
-
};
|
|
8224
|
-
if (vErrors === null) vErrors = [err20];
|
|
8225
|
-
else vErrors.push(err20);
|
|
8226
|
-
errors++;
|
|
8227
|
-
}
|
|
8228
|
-
var valid10 = _errs57 === errors;
|
|
8229
|
-
} else var valid10 = true;
|
|
8230
|
-
if (valid10) {
|
|
8231
|
-
if (data24.freeMb !== void 0) {
|
|
8232
|
-
const _errs59 = errors;
|
|
8233
|
-
if (!(typeof data24.freeMb == "number")) {
|
|
8234
|
-
const err21 = {
|
|
8235
|
-
instancePath: instancePath + "/pressure/disk/" + i2 + "/freeMb",
|
|
8236
|
-
schemaPath: "#/properties/pressure/anyOf/0/properties/disk/items/properties/freeMb/type",
|
|
8404
|
+
var valid8 = _errs61 === errors;
|
|
8405
|
+
} else var valid8 = true;
|
|
8406
|
+
if (valid8) {
|
|
8407
|
+
if (data26.disk !== void 0) {
|
|
8408
|
+
let data31 = data26.disk;
|
|
8409
|
+
const _errs69 = errors;
|
|
8410
|
+
if (errors === _errs69) {
|
|
8411
|
+
if (Array.isArray(data31)) {
|
|
8412
|
+
const len2 = data31.length;
|
|
8413
|
+
for (let i2 = 0; i2 < len2; i2++) {
|
|
8414
|
+
let data32 = data31[i2];
|
|
8415
|
+
const _errs71 = errors;
|
|
8416
|
+
if (errors === _errs71) {
|
|
8417
|
+
if (data32 && typeof data32 == "object" && !Array.isArray(data32)) {
|
|
8418
|
+
let missing6;
|
|
8419
|
+
if (data32.volume === void 0 && (missing6 = "volume") || data32.freeMb === void 0 && (missing6 = "freeMb")) {
|
|
8420
|
+
const err19 = {
|
|
8421
|
+
instancePath: instancePath + "/pressure/disk/" + i2,
|
|
8422
|
+
schemaPath: "#/properties/pressure/anyOf/0/properties/disk/items/required",
|
|
8423
|
+
keyword: "required",
|
|
8424
|
+
params: { missingProperty: missing6 },
|
|
8425
|
+
message: "must have required property '" + missing6 + "'"
|
|
8426
|
+
};
|
|
8427
|
+
if (vErrors === null) vErrors = [err19];
|
|
8428
|
+
else vErrors.push(err19);
|
|
8429
|
+
errors++;
|
|
8430
|
+
} else {
|
|
8431
|
+
if (data32.volume !== void 0) {
|
|
8432
|
+
const _errs73 = errors;
|
|
8433
|
+
if (typeof data32.volume !== "string") {
|
|
8434
|
+
const err20 = {
|
|
8435
|
+
instancePath: instancePath + "/pressure/disk/" + i2 + "/volume",
|
|
8436
|
+
schemaPath: "#/properties/pressure/anyOf/0/properties/disk/items/properties/volume/type",
|
|
8237
8437
|
keyword: "type",
|
|
8238
|
-
params: { type: "
|
|
8239
|
-
message: "must be
|
|
8438
|
+
params: { type: "string" },
|
|
8439
|
+
message: "must be string"
|
|
8240
8440
|
};
|
|
8241
|
-
if (vErrors === null) vErrors = [
|
|
8242
|
-
else vErrors.push(
|
|
8441
|
+
if (vErrors === null) vErrors = [err20];
|
|
8442
|
+
else vErrors.push(err20);
|
|
8243
8443
|
errors++;
|
|
8244
8444
|
}
|
|
8245
|
-
var
|
|
8246
|
-
} else var
|
|
8445
|
+
var valid11 = _errs73 === errors;
|
|
8446
|
+
} else var valid11 = true;
|
|
8447
|
+
if (valid11) {
|
|
8448
|
+
if (data32.freeMb !== void 0) {
|
|
8449
|
+
const _errs75 = errors;
|
|
8450
|
+
if (!(typeof data32.freeMb == "number")) {
|
|
8451
|
+
const err21 = {
|
|
8452
|
+
instancePath: instancePath + "/pressure/disk/" + i2 + "/freeMb",
|
|
8453
|
+
schemaPath: "#/properties/pressure/anyOf/0/properties/disk/items/properties/freeMb/type",
|
|
8454
|
+
keyword: "type",
|
|
8455
|
+
params: { type: "number" },
|
|
8456
|
+
message: "must be number"
|
|
8457
|
+
};
|
|
8458
|
+
if (vErrors === null) vErrors = [err21];
|
|
8459
|
+
else vErrors.push(err21);
|
|
8460
|
+
errors++;
|
|
8461
|
+
}
|
|
8462
|
+
var valid11 = _errs75 === errors;
|
|
8463
|
+
} else var valid11 = true;
|
|
8464
|
+
}
|
|
8247
8465
|
}
|
|
8466
|
+
} else {
|
|
8467
|
+
const err22 = {
|
|
8468
|
+
instancePath: instancePath + "/pressure/disk/" + i2,
|
|
8469
|
+
schemaPath: "#/properties/pressure/anyOf/0/properties/disk/items/type",
|
|
8470
|
+
keyword: "type",
|
|
8471
|
+
params: { type: "object" },
|
|
8472
|
+
message: "must be object"
|
|
8473
|
+
};
|
|
8474
|
+
if (vErrors === null) vErrors = [err22];
|
|
8475
|
+
else vErrors.push(err22);
|
|
8476
|
+
errors++;
|
|
8248
8477
|
}
|
|
8249
|
-
} else {
|
|
8250
|
-
const err22 = {
|
|
8251
|
-
instancePath: instancePath + "/pressure/disk/" + i2,
|
|
8252
|
-
schemaPath: "#/properties/pressure/anyOf/0/properties/disk/items/type",
|
|
8253
|
-
keyword: "type",
|
|
8254
|
-
params: { type: "object" },
|
|
8255
|
-
message: "must be object"
|
|
8256
|
-
};
|
|
8257
|
-
if (vErrors === null) vErrors = [err22];
|
|
8258
|
-
else vErrors.push(err22);
|
|
8259
|
-
errors++;
|
|
8260
8478
|
}
|
|
8479
|
+
if (!(_errs71 === errors)) break;
|
|
8261
8480
|
}
|
|
8262
|
-
|
|
8481
|
+
} else {
|
|
8482
|
+
const err23 = {
|
|
8483
|
+
instancePath: instancePath + "/pressure/disk",
|
|
8484
|
+
schemaPath: "#/properties/pressure/anyOf/0/properties/disk/type",
|
|
8485
|
+
keyword: "type",
|
|
8486
|
+
params: { type: "array" },
|
|
8487
|
+
message: "must be array"
|
|
8488
|
+
};
|
|
8489
|
+
if (vErrors === null) vErrors = [err23];
|
|
8490
|
+
else vErrors.push(err23);
|
|
8491
|
+
errors++;
|
|
8263
8492
|
}
|
|
8264
|
-
} else {
|
|
8265
|
-
const err23 = {
|
|
8266
|
-
instancePath: instancePath + "/pressure/disk",
|
|
8267
|
-
schemaPath: "#/properties/pressure/anyOf/0/properties/disk/type",
|
|
8268
|
-
keyword: "type",
|
|
8269
|
-
params: { type: "array" },
|
|
8270
|
-
message: "must be array"
|
|
8271
|
-
};
|
|
8272
|
-
if (vErrors === null) vErrors = [err23];
|
|
8273
|
-
else vErrors.push(err23);
|
|
8274
|
-
errors++;
|
|
8275
8493
|
}
|
|
8494
|
+
var valid8 = _errs69 === errors;
|
|
8495
|
+
} else var valid8 = true;
|
|
8496
|
+
if (valid8) {
|
|
8497
|
+
if (data26.warningSince !== void 0) {
|
|
8498
|
+
let data35 = data26.warningSince;
|
|
8499
|
+
const _errs77 = errors;
|
|
8500
|
+
if (!(typeof data35 == "number") && data35 !== null) {
|
|
8501
|
+
const err24 = {
|
|
8502
|
+
instancePath: instancePath + "/pressure/warningSince",
|
|
8503
|
+
schemaPath: "#/properties/pressure/anyOf/0/properties/warningSince/type",
|
|
8504
|
+
keyword: "type",
|
|
8505
|
+
params: { type: schema79.properties.pressure.anyOf[0].properties.warningSince.type },
|
|
8506
|
+
message: "must be number,null"
|
|
8507
|
+
};
|
|
8508
|
+
if (vErrors === null) vErrors = [err24];
|
|
8509
|
+
else vErrors.push(err24);
|
|
8510
|
+
errors++;
|
|
8511
|
+
}
|
|
8512
|
+
var valid8 = _errs77 === errors;
|
|
8513
|
+
} else var valid8 = true;
|
|
8276
8514
|
}
|
|
8277
|
-
var valid7 = _errs53 === errors;
|
|
8278
|
-
} else var valid7 = true;
|
|
8279
|
-
if (valid7) {
|
|
8280
|
-
if (data18.warningSince !== void 0) {
|
|
8281
|
-
let data27 = data18.warningSince;
|
|
8282
|
-
const _errs61 = errors;
|
|
8283
|
-
if (!(typeof data27 == "number") && data27 !== null) {
|
|
8284
|
-
const err24 = {
|
|
8285
|
-
instancePath: instancePath + "/pressure/warningSince",
|
|
8286
|
-
schemaPath: "#/properties/pressure/anyOf/0/properties/warningSince/type",
|
|
8287
|
-
keyword: "type",
|
|
8288
|
-
params: { type: schema79.properties.pressure.anyOf[0].properties.warningSince.type },
|
|
8289
|
-
message: "must be number,null"
|
|
8290
|
-
};
|
|
8291
|
-
if (vErrors === null) vErrors = [err24];
|
|
8292
|
-
else vErrors.push(err24);
|
|
8293
|
-
errors++;
|
|
8294
|
-
}
|
|
8295
|
-
var valid7 = _errs61 === errors;
|
|
8296
|
-
} else var valid7 = true;
|
|
8297
8515
|
}
|
|
8298
8516
|
}
|
|
8517
|
+
} else {
|
|
8518
|
+
const err25 = {
|
|
8519
|
+
instancePath: instancePath + "/pressure",
|
|
8520
|
+
schemaPath: "#/properties/pressure/anyOf/0/type",
|
|
8521
|
+
keyword: "type",
|
|
8522
|
+
params: { type: "object" },
|
|
8523
|
+
message: "must be object"
|
|
8524
|
+
};
|
|
8525
|
+
if (vErrors === null) vErrors = [err25];
|
|
8526
|
+
else vErrors.push(err25);
|
|
8527
|
+
errors++;
|
|
8299
8528
|
}
|
|
8300
|
-
} else {
|
|
8301
|
-
const err25 = {
|
|
8302
|
-
instancePath: instancePath + "/pressure",
|
|
8303
|
-
schemaPath: "#/properties/pressure/anyOf/0/type",
|
|
8304
|
-
keyword: "type",
|
|
8305
|
-
params: { type: "object" },
|
|
8306
|
-
message: "must be object"
|
|
8307
|
-
};
|
|
8308
|
-
if (vErrors === null) vErrors = [err25];
|
|
8309
|
-
else vErrors.push(err25);
|
|
8310
|
-
errors++;
|
|
8311
8529
|
}
|
|
8312
|
-
|
|
8313
|
-
|
|
8314
|
-
|
|
8315
|
-
|
|
8316
|
-
|
|
8317
|
-
|
|
8318
|
-
|
|
8530
|
+
var _valid1 = _errs59 === errors;
|
|
8531
|
+
valid7 = valid7 || _valid1;
|
|
8532
|
+
if (!valid7) {
|
|
8533
|
+
const _errs79 = errors;
|
|
8534
|
+
if (data26 !== null) {
|
|
8535
|
+
const err26 = {
|
|
8536
|
+
instancePath: instancePath + "/pressure",
|
|
8537
|
+
schemaPath: "#/properties/pressure/anyOf/1/type",
|
|
8538
|
+
keyword: "type",
|
|
8539
|
+
params: { type: "null" },
|
|
8540
|
+
message: "must be null"
|
|
8541
|
+
};
|
|
8542
|
+
if (vErrors === null) vErrors = [err26];
|
|
8543
|
+
else vErrors.push(err26);
|
|
8544
|
+
errors++;
|
|
8545
|
+
}
|
|
8546
|
+
var _valid1 = _errs79 === errors;
|
|
8547
|
+
valid7 = valid7 || _valid1;
|
|
8548
|
+
}
|
|
8549
|
+
if (!valid7) {
|
|
8550
|
+
const err27 = {
|
|
8319
8551
|
instancePath: instancePath + "/pressure",
|
|
8320
|
-
schemaPath: "#/properties/pressure/anyOf
|
|
8321
|
-
keyword: "
|
|
8322
|
-
params: {
|
|
8323
|
-
message: "must
|
|
8552
|
+
schemaPath: "#/properties/pressure/anyOf",
|
|
8553
|
+
keyword: "anyOf",
|
|
8554
|
+
params: {},
|
|
8555
|
+
message: "must match a schema in anyOf"
|
|
8324
8556
|
};
|
|
8325
|
-
if (vErrors === null) vErrors = [
|
|
8326
|
-
else vErrors.push(
|
|
8557
|
+
if (vErrors === null) vErrors = [err27];
|
|
8558
|
+
else vErrors.push(err27);
|
|
8327
8559
|
errors++;
|
|
8328
|
-
|
|
8329
|
-
var _valid1 = _errs63 === errors;
|
|
8330
|
-
valid6 = valid6 || _valid1;
|
|
8331
|
-
}
|
|
8332
|
-
if (!valid6) {
|
|
8333
|
-
const err27 = {
|
|
8334
|
-
instancePath: instancePath + "/pressure",
|
|
8335
|
-
schemaPath: "#/properties/pressure/anyOf",
|
|
8336
|
-
keyword: "anyOf",
|
|
8337
|
-
params: {},
|
|
8338
|
-
message: "must match a schema in anyOf"
|
|
8339
|
-
};
|
|
8340
|
-
if (vErrors === null) vErrors = [err27];
|
|
8341
|
-
else vErrors.push(err27);
|
|
8342
|
-
errors++;
|
|
8343
|
-
validate131.errors = vErrors;
|
|
8344
|
-
return false;
|
|
8345
|
-
} else {
|
|
8346
|
-
errors = _errs42;
|
|
8347
|
-
if (vErrors !== null) {
|
|
8348
|
-
if (_errs42) vErrors.length = _errs42;
|
|
8349
|
-
else vErrors = null;
|
|
8350
|
-
}
|
|
8351
|
-
}
|
|
8352
|
-
var valid0 = _errs41 === errors;
|
|
8353
|
-
} else var valid0 = true;
|
|
8354
|
-
if (valid0) {
|
|
8355
|
-
if (data.invalid !== void 0) {
|
|
8356
|
-
const _errs65 = errors;
|
|
8357
|
-
if (typeof data.invalid !== "string") {
|
|
8358
|
-
validate131.errors = [{
|
|
8359
|
-
instancePath: instancePath + "/invalid",
|
|
8360
|
-
schemaPath: "#/properties/invalid/type",
|
|
8361
|
-
keyword: "type",
|
|
8362
|
-
params: { type: "string" },
|
|
8363
|
-
message: "must be string"
|
|
8364
|
-
}];
|
|
8560
|
+
validate131.errors = vErrors;
|
|
8365
8561
|
return false;
|
|
8562
|
+
} else {
|
|
8563
|
+
errors = _errs58;
|
|
8564
|
+
if (vErrors !== null) {
|
|
8565
|
+
if (_errs58) vErrors.length = _errs58;
|
|
8566
|
+
else vErrors = null;
|
|
8567
|
+
}
|
|
8366
8568
|
}
|
|
8367
|
-
var valid0 =
|
|
8569
|
+
var valid0 = _errs57 === errors;
|
|
8368
8570
|
} else var valid0 = true;
|
|
8369
8571
|
if (valid0) {
|
|
8370
|
-
if (data.
|
|
8371
|
-
|
|
8372
|
-
|
|
8373
|
-
|
|
8374
|
-
|
|
8375
|
-
|
|
8376
|
-
|
|
8377
|
-
|
|
8378
|
-
|
|
8379
|
-
|
|
8380
|
-
|
|
8381
|
-
params: { missingProperty: missing6 },
|
|
8382
|
-
message: "must have required property '" + missing6 + "'"
|
|
8383
|
-
}];
|
|
8384
|
-
return false;
|
|
8385
|
-
} else {
|
|
8386
|
-
if (data29.unresolved !== void 0) {
|
|
8387
|
-
const _errs69 = errors;
|
|
8388
|
-
if (typeof data29.unresolved !== "string") {
|
|
8389
|
-
validate131.errors = [{
|
|
8390
|
-
instancePath: instancePath + "/claim/unresolved",
|
|
8391
|
-
schemaPath: "#/properties/claim/properties/unresolved/type",
|
|
8392
|
-
keyword: "type",
|
|
8393
|
-
params: { type: "string" },
|
|
8394
|
-
message: "must be string"
|
|
8395
|
-
}];
|
|
8396
|
-
return false;
|
|
8397
|
-
}
|
|
8398
|
-
var valid11 = _errs69 === errors;
|
|
8399
|
-
} else var valid11 = true;
|
|
8400
|
-
if (valid11) {
|
|
8401
|
-
if (data29.removeCommand !== void 0) {
|
|
8402
|
-
const _errs71 = errors;
|
|
8403
|
-
if (typeof data29.removeCommand !== "string") {
|
|
8404
|
-
validate131.errors = [{
|
|
8405
|
-
instancePath: instancePath + "/claim/removeCommand",
|
|
8406
|
-
schemaPath: "#/properties/claim/properties/removeCommand/type",
|
|
8407
|
-
keyword: "type",
|
|
8408
|
-
params: { type: "string" },
|
|
8409
|
-
message: "must be string"
|
|
8410
|
-
}];
|
|
8411
|
-
return false;
|
|
8412
|
-
}
|
|
8413
|
-
var valid11 = _errs71 === errors;
|
|
8414
|
-
} else var valid11 = true;
|
|
8415
|
-
}
|
|
8416
|
-
}
|
|
8417
|
-
} else {
|
|
8418
|
-
validate131.errors = [{
|
|
8419
|
-
instancePath: instancePath + "/claim",
|
|
8420
|
-
schemaPath: "#/properties/claim/type",
|
|
8421
|
-
keyword: "type",
|
|
8422
|
-
params: { type: "object" },
|
|
8423
|
-
message: "must be object"
|
|
8424
|
-
}];
|
|
8425
|
-
return false;
|
|
8426
|
-
}
|
|
8572
|
+
if (data.invalid !== void 0) {
|
|
8573
|
+
const _errs81 = errors;
|
|
8574
|
+
if (typeof data.invalid !== "string") {
|
|
8575
|
+
validate131.errors = [{
|
|
8576
|
+
instancePath: instancePath + "/invalid",
|
|
8577
|
+
schemaPath: "#/properties/invalid/type",
|
|
8578
|
+
keyword: "type",
|
|
8579
|
+
params: { type: "string" },
|
|
8580
|
+
message: "must be string"
|
|
8581
|
+
}];
|
|
8582
|
+
return false;
|
|
8427
8583
|
}
|
|
8428
|
-
var valid0 =
|
|
8584
|
+
var valid0 = _errs81 === errors;
|
|
8429
8585
|
} else var valid0 = true;
|
|
8430
8586
|
if (valid0) {
|
|
8431
|
-
if (data.
|
|
8432
|
-
let
|
|
8433
|
-
const
|
|
8434
|
-
if (errors ===
|
|
8435
|
-
if (
|
|
8587
|
+
if (data.claim !== void 0) {
|
|
8588
|
+
let data37 = data.claim;
|
|
8589
|
+
const _errs83 = errors;
|
|
8590
|
+
if (errors === _errs83) {
|
|
8591
|
+
if (data37 && typeof data37 == "object" && !Array.isArray(data37)) {
|
|
8436
8592
|
let missing7;
|
|
8437
|
-
if (
|
|
8593
|
+
if (data37.unresolved === void 0 && (missing7 = "unresolved") || data37.removeCommand === void 0 && (missing7 = "removeCommand")) {
|
|
8438
8594
|
validate131.errors = [{
|
|
8439
|
-
instancePath: instancePath + "/
|
|
8440
|
-
schemaPath: "#/properties/
|
|
8595
|
+
instancePath: instancePath + "/claim",
|
|
8596
|
+
schemaPath: "#/properties/claim/required",
|
|
8441
8597
|
keyword: "required",
|
|
8442
8598
|
params: { missingProperty: missing7 },
|
|
8443
8599
|
message: "must have required property '" + missing7 + "'"
|
|
8444
8600
|
}];
|
|
8445
8601
|
return false;
|
|
8446
8602
|
} else {
|
|
8447
|
-
if (
|
|
8448
|
-
|
|
8449
|
-
|
|
8450
|
-
if (!(typeof data33 == "number") && data33 !== null) {
|
|
8603
|
+
if (data37.unresolved !== void 0) {
|
|
8604
|
+
const _errs85 = errors;
|
|
8605
|
+
if (typeof data37.unresolved !== "string") {
|
|
8451
8606
|
validate131.errors = [{
|
|
8452
|
-
instancePath: instancePath + "/
|
|
8453
|
-
schemaPath: "#/properties/
|
|
8607
|
+
instancePath: instancePath + "/claim/unresolved",
|
|
8608
|
+
schemaPath: "#/properties/claim/properties/unresolved/type",
|
|
8454
8609
|
keyword: "type",
|
|
8455
|
-
params: { type:
|
|
8456
|
-
message: "must be
|
|
8610
|
+
params: { type: "string" },
|
|
8611
|
+
message: "must be string"
|
|
8457
8612
|
}];
|
|
8458
8613
|
return false;
|
|
8459
8614
|
}
|
|
8460
|
-
var valid12 =
|
|
8615
|
+
var valid12 = _errs85 === errors;
|
|
8461
8616
|
} else var valid12 = true;
|
|
8462
8617
|
if (valid12) {
|
|
8463
|
-
if (
|
|
8464
|
-
|
|
8465
|
-
|
|
8466
|
-
if (!(typeof data34 == "number") && data34 !== null) {
|
|
8618
|
+
if (data37.removeCommand !== void 0) {
|
|
8619
|
+
const _errs87 = errors;
|
|
8620
|
+
if (typeof data37.removeCommand !== "string") {
|
|
8467
8621
|
validate131.errors = [{
|
|
8468
|
-
instancePath: instancePath + "/
|
|
8469
|
-
schemaPath: "#/properties/
|
|
8622
|
+
instancePath: instancePath + "/claim/removeCommand",
|
|
8623
|
+
schemaPath: "#/properties/claim/properties/removeCommand/type",
|
|
8470
8624
|
keyword: "type",
|
|
8471
|
-
params: { type:
|
|
8472
|
-
message: "must be
|
|
8625
|
+
params: { type: "string" },
|
|
8626
|
+
message: "must be string"
|
|
8473
8627
|
}];
|
|
8474
8628
|
return false;
|
|
8475
8629
|
}
|
|
8476
|
-
var valid12 =
|
|
8630
|
+
var valid12 = _errs87 === errors;
|
|
8477
8631
|
} else var valid12 = true;
|
|
8478
8632
|
}
|
|
8479
8633
|
}
|
|
8480
8634
|
} else {
|
|
8481
8635
|
validate131.errors = [{
|
|
8482
|
-
instancePath: instancePath + "/
|
|
8483
|
-
schemaPath: "#/properties/
|
|
8636
|
+
instancePath: instancePath + "/claim",
|
|
8637
|
+
schemaPath: "#/properties/claim/type",
|
|
8484
8638
|
keyword: "type",
|
|
8485
8639
|
params: { type: "object" },
|
|
8486
8640
|
message: "must be object"
|
|
@@ -8488,19 +8642,19 @@ function validate131(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
8488
8642
|
return false;
|
|
8489
8643
|
}
|
|
8490
8644
|
}
|
|
8491
|
-
var valid0 =
|
|
8645
|
+
var valid0 = _errs83 === errors;
|
|
8492
8646
|
} else var valid0 = true;
|
|
8493
8647
|
if (valid0) {
|
|
8494
8648
|
if (data.running !== void 0) {
|
|
8495
|
-
let
|
|
8496
|
-
const
|
|
8497
|
-
const
|
|
8649
|
+
let data40 = data.running;
|
|
8650
|
+
const _errs89 = errors;
|
|
8651
|
+
const _errs90 = errors;
|
|
8498
8652
|
let valid13 = false;
|
|
8499
|
-
const
|
|
8500
|
-
if (errors ===
|
|
8501
|
-
if (
|
|
8653
|
+
const _errs91 = errors;
|
|
8654
|
+
if (errors === _errs91) {
|
|
8655
|
+
if (data40 && typeof data40 == "object" && !Array.isArray(data40)) {
|
|
8502
8656
|
let missing8;
|
|
8503
|
-
if (
|
|
8657
|
+
if (data40.startedAt === void 0 && (missing8 = "startedAt") || data40.trigger === void 0 && (missing8 = "trigger")) {
|
|
8504
8658
|
const err28 = {
|
|
8505
8659
|
instancePath: instancePath + "/running",
|
|
8506
8660
|
schemaPath: "#/properties/running/anyOf/0/required",
|
|
@@ -8512,9 +8666,9 @@ function validate131(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
8512
8666
|
else vErrors.push(err28);
|
|
8513
8667
|
errors++;
|
|
8514
8668
|
} else {
|
|
8515
|
-
if (
|
|
8516
|
-
const
|
|
8517
|
-
if (typeof
|
|
8669
|
+
if (data40.startedAt !== void 0) {
|
|
8670
|
+
const _errs93 = errors;
|
|
8671
|
+
if (typeof data40.startedAt !== "string") {
|
|
8518
8672
|
const err29 = {
|
|
8519
8673
|
instancePath: instancePath + "/running/startedAt",
|
|
8520
8674
|
schemaPath: "#/properties/running/anyOf/0/properties/startedAt/type",
|
|
@@ -8526,12 +8680,12 @@ function validate131(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
8526
8680
|
else vErrors.push(err29);
|
|
8527
8681
|
errors++;
|
|
8528
8682
|
}
|
|
8529
|
-
var valid14 =
|
|
8683
|
+
var valid14 = _errs93 === errors;
|
|
8530
8684
|
} else var valid14 = true;
|
|
8531
8685
|
if (valid14) {
|
|
8532
|
-
if (
|
|
8533
|
-
const
|
|
8534
|
-
if (typeof
|
|
8686
|
+
if (data40.trigger !== void 0) {
|
|
8687
|
+
const _errs95 = errors;
|
|
8688
|
+
if (typeof data40.trigger !== "string") {
|
|
8535
8689
|
const err30 = {
|
|
8536
8690
|
instancePath: instancePath + "/running/trigger",
|
|
8537
8691
|
schemaPath: "#/properties/running/anyOf/0/properties/trigger/type",
|
|
@@ -8543,7 +8697,7 @@ function validate131(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
8543
8697
|
else vErrors.push(err30);
|
|
8544
8698
|
errors++;
|
|
8545
8699
|
}
|
|
8546
|
-
var valid14 =
|
|
8700
|
+
var valid14 = _errs95 === errors;
|
|
8547
8701
|
} else var valid14 = true;
|
|
8548
8702
|
}
|
|
8549
8703
|
}
|
|
@@ -8560,11 +8714,11 @@ function validate131(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
8560
8714
|
errors++;
|
|
8561
8715
|
}
|
|
8562
8716
|
}
|
|
8563
|
-
var _valid2 =
|
|
8717
|
+
var _valid2 = _errs91 === errors;
|
|
8564
8718
|
valid13 = valid13 || _valid2;
|
|
8565
8719
|
if (!valid13) {
|
|
8566
|
-
const
|
|
8567
|
-
if (
|
|
8720
|
+
const _errs97 = errors;
|
|
8721
|
+
if (data40 !== null) {
|
|
8568
8722
|
const err32 = {
|
|
8569
8723
|
instancePath: instancePath + "/running",
|
|
8570
8724
|
schemaPath: "#/properties/running/anyOf/1/type",
|
|
@@ -8576,7 +8730,7 @@ function validate131(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
8576
8730
|
else vErrors.push(err32);
|
|
8577
8731
|
errors++;
|
|
8578
8732
|
}
|
|
8579
|
-
var _valid2 =
|
|
8733
|
+
var _valid2 = _errs97 === errors;
|
|
8580
8734
|
valid13 = valid13 || _valid2;
|
|
8581
8735
|
}
|
|
8582
8736
|
if (!valid13) {
|
|
@@ -8593,13 +8747,13 @@ function validate131(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
8593
8747
|
validate131.errors = vErrors;
|
|
8594
8748
|
return false;
|
|
8595
8749
|
} else {
|
|
8596
|
-
errors =
|
|
8750
|
+
errors = _errs90;
|
|
8597
8751
|
if (vErrors !== null) {
|
|
8598
|
-
if (
|
|
8752
|
+
if (_errs90) vErrors.length = _errs90;
|
|
8599
8753
|
else vErrors = null;
|
|
8600
8754
|
}
|
|
8601
8755
|
}
|
|
8602
|
-
var valid0 =
|
|
8756
|
+
var valid0 = _errs89 === errors;
|
|
8603
8757
|
} else var valid0 = true;
|
|
8604
8758
|
}
|
|
8605
8759
|
}
|
|
@@ -10221,7 +10375,10 @@ const schema88 = {
|
|
|
10221
10375
|
}, { "type": "null" }] },
|
|
10222
10376
|
"agentDevice": {
|
|
10223
10377
|
"type": "object",
|
|
10224
|
-
"properties": {
|
|
10378
|
+
"properties": {
|
|
10379
|
+
"stateDir": { "type": "string" },
|
|
10380
|
+
"installed": { "type": "boolean" }
|
|
10381
|
+
},
|
|
10225
10382
|
"required": ["stateDir"]
|
|
10226
10383
|
},
|
|
10227
10384
|
"disk": { "$ref": "#/definitions/EnvironmentDisk" }
|
|
@@ -10458,6 +10615,7 @@ const schema90 = {
|
|
|
10458
10615
|
"items": { "type": "string" }
|
|
10459
10616
|
},
|
|
10460
10617
|
"product": { "type": "string" },
|
|
10618
|
+
"displayName": { "type": "string" },
|
|
10461
10619
|
"bundle": { "type": "string" },
|
|
10462
10620
|
"bundleId": { "type": "string" },
|
|
10463
10621
|
"executable": { "type": "string" },
|
|
@@ -11049,12 +11207,12 @@ function validate157(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
11049
11207
|
var valid0 = _errs55 === errors;
|
|
11050
11208
|
} else var valid0 = true;
|
|
11051
11209
|
if (valid0) {
|
|
11052
|
-
if (data.
|
|
11210
|
+
if (data.displayName !== void 0) {
|
|
11053
11211
|
const _errs57 = errors;
|
|
11054
|
-
if (typeof data.
|
|
11212
|
+
if (typeof data.displayName !== "string") {
|
|
11055
11213
|
validate157.errors = [{
|
|
11056
|
-
instancePath: instancePath + "/
|
|
11057
|
-
schemaPath: "#/properties/
|
|
11214
|
+
instancePath: instancePath + "/displayName",
|
|
11215
|
+
schemaPath: "#/properties/displayName/type",
|
|
11058
11216
|
keyword: "type",
|
|
11059
11217
|
params: { type: "string" },
|
|
11060
11218
|
message: "must be string"
|
|
@@ -11064,12 +11222,12 @@ function validate157(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
11064
11222
|
var valid0 = _errs57 === errors;
|
|
11065
11223
|
} else var valid0 = true;
|
|
11066
11224
|
if (valid0) {
|
|
11067
|
-
if (data.
|
|
11225
|
+
if (data.bundle !== void 0) {
|
|
11068
11226
|
const _errs59 = errors;
|
|
11069
|
-
if (typeof data.
|
|
11227
|
+
if (typeof data.bundle !== "string") {
|
|
11070
11228
|
validate157.errors = [{
|
|
11071
|
-
instancePath: instancePath + "/
|
|
11072
|
-
schemaPath: "#/properties/
|
|
11229
|
+
instancePath: instancePath + "/bundle",
|
|
11230
|
+
schemaPath: "#/properties/bundle/type",
|
|
11073
11231
|
keyword: "type",
|
|
11074
11232
|
params: { type: "string" },
|
|
11075
11233
|
message: "must be string"
|
|
@@ -11079,12 +11237,12 @@ function validate157(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
11079
11237
|
var valid0 = _errs59 === errors;
|
|
11080
11238
|
} else var valid0 = true;
|
|
11081
11239
|
if (valid0) {
|
|
11082
|
-
if (data.
|
|
11240
|
+
if (data.bundleId !== void 0) {
|
|
11083
11241
|
const _errs61 = errors;
|
|
11084
|
-
if (typeof data.
|
|
11242
|
+
if (typeof data.bundleId !== "string") {
|
|
11085
11243
|
validate157.errors = [{
|
|
11086
|
-
instancePath: instancePath + "/
|
|
11087
|
-
schemaPath: "#/properties/
|
|
11244
|
+
instancePath: instancePath + "/bundleId",
|
|
11245
|
+
schemaPath: "#/properties/bundleId/type",
|
|
11088
11246
|
keyword: "type",
|
|
11089
11247
|
params: { type: "string" },
|
|
11090
11248
|
message: "must be string"
|
|
@@ -11094,33 +11252,49 @@ function validate157(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
11094
11252
|
var valid0 = _errs61 === errors;
|
|
11095
11253
|
} else var valid0 = true;
|
|
11096
11254
|
if (valid0) {
|
|
11097
|
-
if (data.
|
|
11255
|
+
if (data.executable !== void 0) {
|
|
11098
11256
|
const _errs63 = errors;
|
|
11099
|
-
if (
|
|
11100
|
-
|
|
11101
|
-
|
|
11102
|
-
|
|
11103
|
-
|
|
11104
|
-
|
|
11105
|
-
|
|
11106
|
-
|
|
11257
|
+
if (typeof data.executable !== "string") {
|
|
11258
|
+
validate157.errors = [{
|
|
11259
|
+
instancePath: instancePath + "/executable",
|
|
11260
|
+
schemaPath: "#/properties/executable/type",
|
|
11261
|
+
keyword: "type",
|
|
11262
|
+
params: { type: "string" },
|
|
11263
|
+
message: "must be string"
|
|
11264
|
+
}];
|
|
11265
|
+
return false;
|
|
11107
11266
|
}
|
|
11108
11267
|
var valid0 = _errs63 === errors;
|
|
11109
11268
|
} else var valid0 = true;
|
|
11110
11269
|
if (valid0) {
|
|
11111
|
-
if (data.
|
|
11112
|
-
const
|
|
11113
|
-
if (!validate158(data.
|
|
11114
|
-
instancePath: instancePath + "/
|
|
11270
|
+
if (data.supervisor !== void 0) {
|
|
11271
|
+
const _errs65 = errors;
|
|
11272
|
+
if (!validate158(data.supervisor, {
|
|
11273
|
+
instancePath: instancePath + "/supervisor",
|
|
11115
11274
|
parentData: data,
|
|
11116
|
-
parentDataProperty: "
|
|
11275
|
+
parentDataProperty: "supervisor",
|
|
11117
11276
|
rootData
|
|
11118
11277
|
})) {
|
|
11119
11278
|
vErrors = vErrors === null ? validate158.errors : vErrors.concat(validate158.errors);
|
|
11120
11279
|
errors = vErrors.length;
|
|
11121
11280
|
}
|
|
11122
|
-
var valid0 =
|
|
11281
|
+
var valid0 = _errs65 === errors;
|
|
11123
11282
|
} else var valid0 = true;
|
|
11283
|
+
if (valid0) {
|
|
11284
|
+
if (data.app !== void 0) {
|
|
11285
|
+
const _errs66 = errors;
|
|
11286
|
+
if (!validate158(data.app, {
|
|
11287
|
+
instancePath: instancePath + "/app",
|
|
11288
|
+
parentData: data,
|
|
11289
|
+
parentDataProperty: "app",
|
|
11290
|
+
rootData
|
|
11291
|
+
})) {
|
|
11292
|
+
vErrors = vErrors === null ? validate158.errors : vErrors.concat(validate158.errors);
|
|
11293
|
+
errors = vErrors.length;
|
|
11294
|
+
}
|
|
11295
|
+
var valid0 = _errs66 === errors;
|
|
11296
|
+
} else var valid0 = true;
|
|
11297
|
+
}
|
|
11124
11298
|
}
|
|
11125
11299
|
}
|
|
11126
11300
|
}
|
|
@@ -17142,16 +17316,36 @@ function validate154(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
17142
17316
|
message: "must have required property '" + missing11 + "'"
|
|
17143
17317
|
}];
|
|
17144
17318
|
return false;
|
|
17145
|
-
} else
|
|
17146
|
-
if (
|
|
17147
|
-
|
|
17148
|
-
|
|
17149
|
-
|
|
17150
|
-
|
|
17151
|
-
|
|
17152
|
-
|
|
17153
|
-
|
|
17154
|
-
|
|
17319
|
+
} else {
|
|
17320
|
+
if (data69.stateDir !== void 0) {
|
|
17321
|
+
const _errs170 = errors;
|
|
17322
|
+
if (typeof data69.stateDir !== "string") {
|
|
17323
|
+
validate154.errors = [{
|
|
17324
|
+
instancePath: instancePath + "/agentDevice/stateDir",
|
|
17325
|
+
schemaPath: "#/properties/agentDevice/properties/stateDir/type",
|
|
17326
|
+
keyword: "type",
|
|
17327
|
+
params: { type: "string" },
|
|
17328
|
+
message: "must be string"
|
|
17329
|
+
}];
|
|
17330
|
+
return false;
|
|
17331
|
+
}
|
|
17332
|
+
var valid33 = _errs170 === errors;
|
|
17333
|
+
} else var valid33 = true;
|
|
17334
|
+
if (valid33) {
|
|
17335
|
+
if (data69.installed !== void 0) {
|
|
17336
|
+
const _errs172 = errors;
|
|
17337
|
+
if (typeof data69.installed !== "boolean") {
|
|
17338
|
+
validate154.errors = [{
|
|
17339
|
+
instancePath: instancePath + "/agentDevice/installed",
|
|
17340
|
+
schemaPath: "#/properties/agentDevice/properties/installed/type",
|
|
17341
|
+
keyword: "type",
|
|
17342
|
+
params: { type: "boolean" },
|
|
17343
|
+
message: "must be boolean"
|
|
17344
|
+
}];
|
|
17345
|
+
return false;
|
|
17346
|
+
}
|
|
17347
|
+
var valid33 = _errs172 === errors;
|
|
17348
|
+
} else var valid33 = true;
|
|
17155
17349
|
}
|
|
17156
17350
|
}
|
|
17157
17351
|
} else {
|
|
@@ -17169,7 +17363,7 @@ function validate154(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
17169
17363
|
} else var valid0 = true;
|
|
17170
17364
|
if (valid0) {
|
|
17171
17365
|
if (data.disk !== void 0) {
|
|
17172
|
-
const
|
|
17366
|
+
const _errs174 = errors;
|
|
17173
17367
|
if (!validate221(data.disk, {
|
|
17174
17368
|
instancePath: instancePath + "/disk",
|
|
17175
17369
|
parentData: data,
|
|
@@ -17179,7 +17373,7 @@ function validate154(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
17179
17373
|
vErrors = vErrors === null ? validate221.errors : vErrors.concat(validate221.errors);
|
|
17180
17374
|
errors = vErrors.length;
|
|
17181
17375
|
}
|
|
17182
|
-
var valid0 =
|
|
17376
|
+
var valid0 = _errs174 === errors;
|
|
17183
17377
|
} else var valid0 = true;
|
|
17184
17378
|
}
|
|
17185
17379
|
}
|
|
@@ -20619,5 +20813,32 @@ function isRpcError(value) {
|
|
|
20619
20813
|
function isRpcEventName(value) {
|
|
20620
20814
|
return eventNames.includes(value);
|
|
20621
20815
|
}
|
|
20816
|
+
const SCHEMA_PATH = /^#[\w/.$~-]{0,200}$/;
|
|
20817
|
+
const WORD = /^\w{1,40}$/;
|
|
20818
|
+
function issueOf(validator, value) {
|
|
20819
|
+
if (validator(value)) return null;
|
|
20820
|
+
const first = validator.errors?.[0];
|
|
20821
|
+
const issue = {
|
|
20822
|
+
keyword: typeof first?.keyword === "string" && WORD.test(first.keyword) ? first.keyword : "unknown",
|
|
20823
|
+
schemaPath: typeof first?.schemaPath === "string" && SCHEMA_PATH.test(first.schemaPath) ? first.schemaPath : ""
|
|
20824
|
+
};
|
|
20825
|
+
const missing = first?.params?.missingProperty;
|
|
20826
|
+
if (typeof missing === "string" && WORD.test(missing)) issue.missingProperty = missing;
|
|
20827
|
+
const expected = first?.params?.type;
|
|
20828
|
+
if (typeof expected === "string" && WORD.test(expected)) issue.expectedType = expected;
|
|
20829
|
+
return issue;
|
|
20830
|
+
}
|
|
20831
|
+
/** The first schema violation of a result for `method`, or null when it is valid. */
|
|
20832
|
+
function rpcResultIssue(method, value) {
|
|
20833
|
+
return issueOf(responses[method], value);
|
|
20834
|
+
}
|
|
20835
|
+
/** The first schema violation of a phone event, or null when it is valid. */
|
|
20836
|
+
function rpcEventIssue(value) {
|
|
20837
|
+
return issueOf(event, value);
|
|
20838
|
+
}
|
|
20839
|
+
/** The first schema violation of an RPC error object, or null when it is valid. */
|
|
20840
|
+
function rpcErrorIssue(value) {
|
|
20841
|
+
return issueOf(error, value);
|
|
20842
|
+
}
|
|
20622
20843
|
//#endregion
|
|
20623
|
-
export { isRpcError, isRpcEvent, isRpcEventName, isRpcResult };
|
|
20844
|
+
export { isRpcError, isRpcEvent, isRpcEventName, isRpcResult, rpcErrorIssue, rpcEventIssue, rpcResultIssue };
|