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