@adobe/ccweb-add-on-manifest 2.0.0 → 2.1.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/AddOnManifestTypes.d.ts +2 -0
- package/dist/AddOnManifestTypes.d.ts.map +1 -1
- package/dist/AddOnManifestTypes.js.map +1 -1
- package/dist/generated/validateManifestSchema.d.mts.map +1 -1
- package/dist/generated/validateManifestSchema.mjs +147 -121
- package/dist/generated/validateManifestSchema.mjs.map +1 -1
- package/dist/test/utils/TestManifests.d.ts.map +1 -1
- package/dist/test/utils/TestManifests.js +3 -1
- package/dist/test/utils/TestManifests.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
|
@@ -2329,7 +2329,7 @@ function validate11(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
2329
2329
|
}
|
|
2330
2330
|
} validate11.errors = vErrors; return errors === 0; }
|
|
2331
2331
|
export const validateSchemaV2 = validate12;
|
|
2332
|
-
const schema13 = { "$id": "#/definitions/manifestSchemaV2", "type": "object", "properties": { "testId": { "type": "string" }, "name": { "type": "string", "pattern": "^[a-zA-Z0-9]+[a-zA-Z0-9 ]{2,44}$" }, "version": { "type": "string", "pattern": "^[0-9]+.[0-9]+.[0-9]+$" }, "manifestVersion": { "type": "number" }, "requirements": { "type": "object", "properties": { "apps": { "type": "array", "items": { "type": "object", "properties": { "name": { "type": "string", "pattern": "^(Express)$" }, "apiVersion": { "type": "number" }, "supportedDeviceClass": { "type": "array", "items": { "type": "string", "pattern": "^(desktop|mobile|app)$" } } }, "required": ["name", "apiVersion"], "additionalProperties": false } }, "experimentalApis": { "type": "boolean" }, "supportsTouch": { "type": "boolean" }, "renditionPreview": { "type": "boolean" }, "privilegedApis": { "type": "boolean" }, "_blessedPartnerAccess": { "type": "string" }, "trustedPartnerApis": { "type": "object", "properties": { "messaging": { "type": "boolean" }, "expressPrint": { "type": "boolean" } }, "required": [], "additionalProperties": false } }, "required": ["apps"], "additionalProperties": false }, "entryPoints": { "type": "array", "items": { "type": "object", "properties": { "type": { "type": "string", "pattern": "^(panel|share|content-hub)$" }, "id": { "type": "string" }, "main": { "type": "string" }, "script": { "type": "string" }, "documentSandbox": { "type": "string" }, "hostDomain": { "type": "string" }, "permissions": { "type": "object", "properties": { "sandbox": { "type": "array", "items": { "type": "string", "pattern": "^(allow-popups|allow-presentation|allow-downloads|allow-popups-to-escape-sandbox)$" } }, "oauth": { "type": "array", "items": { "type": "string" } }, "microphone": { "type": "string" }, "camera": { "type": "string" }, "clipboard": { "type": "array", "items": { "type": "string", "pattern": "^(clipboard-write|clipboard-read)$" } } }, "required": [], "additionalProperties": false }, "defaultSize": { "type": "object", "properties": { "width": { "type": "number" }, "height": { "type": "number" } }, "required": ["width", "height"], "additionalProperties": false }, "discoverable": { "type": "boolean" } }, "required": ["type", "id", "main"], "additionalProperties": false } } }, "required": ["version", "manifestVersion", "requirements", "entryPoints"], "additionalProperties": true };
|
|
2332
|
+
const schema13 = { "$id": "#/definitions/manifestSchemaV2", "type": "object", "properties": { "testId": { "type": "string" }, "name": { "type": "string", "pattern": "^[a-zA-Z0-9]+[a-zA-Z0-9 ]{2,44}$" }, "version": { "type": "string", "pattern": "^[0-9]+.[0-9]+.[0-9]+$" }, "manifestVersion": { "type": "number" }, "requirements": { "type": "object", "properties": { "apps": { "type": "array", "items": { "type": "object", "properties": { "name": { "type": "string", "pattern": "^(Express)$" }, "apiVersion": { "type": "number" }, "supportedDeviceClass": { "type": "array", "items": { "type": "string", "pattern": "^(desktop|mobile|app)$" } } }, "required": ["name", "apiVersion"], "additionalProperties": false } }, "experimentalApis": { "type": "boolean" }, "supportsTouch": { "type": "boolean" }, "renditionPreview": { "type": "boolean" }, "privilegedApis": { "type": "boolean" }, "_blessedPartnerAccess": { "type": "string" }, "trustedPartnerApis": { "type": "object", "properties": { "messaging": { "type": "boolean" }, "expressPrint": { "type": "boolean" }, "toastNotifications": { "type": "boolean" }, "addOnLifecycle": { "type": "boolean" } }, "required": [], "additionalProperties": false } }, "required": ["apps"], "additionalProperties": false }, "entryPoints": { "type": "array", "items": { "type": "object", "properties": { "type": { "type": "string", "pattern": "^(panel|share|content-hub)$" }, "id": { "type": "string" }, "main": { "type": "string" }, "script": { "type": "string" }, "documentSandbox": { "type": "string" }, "hostDomain": { "type": "string" }, "permissions": { "type": "object", "properties": { "sandbox": { "type": "array", "items": { "type": "string", "pattern": "^(allow-popups|allow-presentation|allow-downloads|allow-popups-to-escape-sandbox)$" } }, "oauth": { "type": "array", "items": { "type": "string" } }, "microphone": { "type": "string" }, "camera": { "type": "string" }, "clipboard": { "type": "array", "items": { "type": "string", "pattern": "^(clipboard-write|clipboard-read)$" } } }, "required": [], "additionalProperties": false }, "defaultSize": { "type": "object", "properties": { "width": { "type": "number" }, "height": { "type": "number" } }, "required": ["width", "height"], "additionalProperties": false }, "discoverable": { "type": "boolean" } }, "required": ["type", "id", "main"], "additionalProperties": false } } }, "required": ["version", "manifestVersion", "requirements", "entryPoints"], "additionalProperties": true };
|
|
2333
2333
|
const pattern10 = new RegExp("^[a-zA-Z0-9]+[a-zA-Z0-9 ]{2,44}$", "u");
|
|
2334
2334
|
const pattern11 = new RegExp("^[0-9]+.[0-9]+.[0-9]+$", "u");
|
|
2335
2335
|
const pattern13 = new RegExp("^(desktop|mobile|app)$", "u");
|
|
@@ -2623,7 +2623,7 @@ function validate12(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
2623
2623
|
if (data16 && typeof data16 == "object" && !Array.isArray(data16)) {
|
|
2624
2624
|
const _errs38 = errors;
|
|
2625
2625
|
for (const key2 in data16) {
|
|
2626
|
-
if (!((key2 === "messaging") || (key2 === "expressPrint"))) {
|
|
2626
|
+
if (!((((key2 === "messaging") || (key2 === "expressPrint")) || (key2 === "toastNotifications")) || (key2 === "addOnLifecycle"))) {
|
|
2627
2627
|
validate12.errors = [{ instancePath: instancePath + "/requirements/trustedPartnerApis", schemaPath: "#/properties/requirements/properties/trustedPartnerApis/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key2 }, message: "must NOT have additional properties" }];
|
|
2628
2628
|
return false;
|
|
2629
2629
|
break;
|
|
@@ -2653,6 +2653,32 @@ function validate12(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
2653
2653
|
else {
|
|
2654
2654
|
var valid5 = true;
|
|
2655
2655
|
}
|
|
2656
|
+
if (valid5) {
|
|
2657
|
+
if (data16.toastNotifications !== undefined) {
|
|
2658
|
+
const _errs43 = errors;
|
|
2659
|
+
if (typeof data16.toastNotifications !== "boolean") {
|
|
2660
|
+
validate12.errors = [{ instancePath: instancePath + "/requirements/trustedPartnerApis/toastNotifications", schemaPath: "#/properties/requirements/properties/trustedPartnerApis/properties/toastNotifications/type", keyword: "type", params: { type: "boolean" }, message: "must be boolean" }];
|
|
2661
|
+
return false;
|
|
2662
|
+
}
|
|
2663
|
+
var valid5 = _errs43 === errors;
|
|
2664
|
+
}
|
|
2665
|
+
else {
|
|
2666
|
+
var valid5 = true;
|
|
2667
|
+
}
|
|
2668
|
+
if (valid5) {
|
|
2669
|
+
if (data16.addOnLifecycle !== undefined) {
|
|
2670
|
+
const _errs45 = errors;
|
|
2671
|
+
if (typeof data16.addOnLifecycle !== "boolean") {
|
|
2672
|
+
validate12.errors = [{ instancePath: instancePath + "/requirements/trustedPartnerApis/addOnLifecycle", schemaPath: "#/properties/requirements/properties/trustedPartnerApis/properties/addOnLifecycle/type", keyword: "type", params: { type: "boolean" }, message: "must be boolean" }];
|
|
2673
|
+
return false;
|
|
2674
|
+
}
|
|
2675
|
+
var valid5 = _errs45 === errors;
|
|
2676
|
+
}
|
|
2677
|
+
else {
|
|
2678
|
+
var valid5 = true;
|
|
2679
|
+
}
|
|
2680
|
+
}
|
|
2681
|
+
}
|
|
2656
2682
|
}
|
|
2657
2683
|
}
|
|
2658
2684
|
}
|
|
@@ -2687,38 +2713,38 @@ function validate12(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
2687
2713
|
}
|
|
2688
2714
|
if (valid0) {
|
|
2689
2715
|
if (data.entryPoints !== undefined) {
|
|
2690
|
-
let
|
|
2691
|
-
const
|
|
2692
|
-
if (errors ===
|
|
2693
|
-
if (Array.isArray(
|
|
2716
|
+
let data21 = data.entryPoints;
|
|
2717
|
+
const _errs47 = errors;
|
|
2718
|
+
if (errors === _errs47) {
|
|
2719
|
+
if (Array.isArray(data21)) {
|
|
2694
2720
|
var valid6 = true;
|
|
2695
|
-
const len2 =
|
|
2721
|
+
const len2 = data21.length;
|
|
2696
2722
|
for (let i2 = 0; i2 < len2; i2++) {
|
|
2697
|
-
let
|
|
2698
|
-
const
|
|
2699
|
-
if (errors ===
|
|
2700
|
-
if (
|
|
2723
|
+
let data22 = data21[i2];
|
|
2724
|
+
const _errs49 = errors;
|
|
2725
|
+
if (errors === _errs49) {
|
|
2726
|
+
if (data22 && typeof data22 == "object" && !Array.isArray(data22)) {
|
|
2701
2727
|
let missing3;
|
|
2702
|
-
if ((((
|
|
2728
|
+
if ((((data22.type === undefined) && (missing3 = "type")) || ((data22.id === undefined) && (missing3 = "id"))) || ((data22.main === undefined) && (missing3 = "main"))) {
|
|
2703
2729
|
validate12.errors = [{ instancePath: instancePath + "/entryPoints/" + i2, schemaPath: "#/properties/entryPoints/items/required", keyword: "required", params: { missingProperty: missing3 }, message: "must have required property '" + missing3 + "'" }];
|
|
2704
2730
|
return false;
|
|
2705
2731
|
}
|
|
2706
2732
|
else {
|
|
2707
|
-
const
|
|
2708
|
-
for (const key3 in
|
|
2733
|
+
const _errs51 = errors;
|
|
2734
|
+
for (const key3 in data22) {
|
|
2709
2735
|
if (!(func2.call(schema13.properties.entryPoints.items.properties, key3))) {
|
|
2710
2736
|
validate12.errors = [{ instancePath: instancePath + "/entryPoints/" + i2, schemaPath: "#/properties/entryPoints/items/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key3 }, message: "must NOT have additional properties" }];
|
|
2711
2737
|
return false;
|
|
2712
2738
|
break;
|
|
2713
2739
|
}
|
|
2714
2740
|
}
|
|
2715
|
-
if (
|
|
2716
|
-
if (
|
|
2717
|
-
let
|
|
2718
|
-
const
|
|
2719
|
-
if (errors ===
|
|
2720
|
-
if (typeof
|
|
2721
|
-
if (!pattern3.test(
|
|
2741
|
+
if (_errs51 === errors) {
|
|
2742
|
+
if (data22.type !== undefined) {
|
|
2743
|
+
let data23 = data22.type;
|
|
2744
|
+
const _errs52 = errors;
|
|
2745
|
+
if (errors === _errs52) {
|
|
2746
|
+
if (typeof data23 === "string") {
|
|
2747
|
+
if (!pattern3.test(data23)) {
|
|
2722
2748
|
validate12.errors = [{ instancePath: instancePath + "/entryPoints/" + i2 + "/type", schemaPath: "#/properties/entryPoints/items/properties/type/pattern", keyword: "pattern", params: { pattern: "^(panel|share|content-hub)$" }, message: "must match pattern \"" + "^(panel|share|content-hub)$" + "\"" }];
|
|
2723
2749
|
return false;
|
|
2724
2750
|
}
|
|
@@ -2728,99 +2754,99 @@ function validate12(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
2728
2754
|
return false;
|
|
2729
2755
|
}
|
|
2730
2756
|
}
|
|
2731
|
-
var valid7 =
|
|
2757
|
+
var valid7 = _errs52 === errors;
|
|
2732
2758
|
}
|
|
2733
2759
|
else {
|
|
2734
2760
|
var valid7 = true;
|
|
2735
2761
|
}
|
|
2736
2762
|
if (valid7) {
|
|
2737
|
-
if (
|
|
2738
|
-
const
|
|
2739
|
-
if (typeof
|
|
2763
|
+
if (data22.id !== undefined) {
|
|
2764
|
+
const _errs54 = errors;
|
|
2765
|
+
if (typeof data22.id !== "string") {
|
|
2740
2766
|
validate12.errors = [{ instancePath: instancePath + "/entryPoints/" + i2 + "/id", schemaPath: "#/properties/entryPoints/items/properties/id/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
2741
2767
|
return false;
|
|
2742
2768
|
}
|
|
2743
|
-
var valid7 =
|
|
2769
|
+
var valid7 = _errs54 === errors;
|
|
2744
2770
|
}
|
|
2745
2771
|
else {
|
|
2746
2772
|
var valid7 = true;
|
|
2747
2773
|
}
|
|
2748
2774
|
if (valid7) {
|
|
2749
|
-
if (
|
|
2750
|
-
const
|
|
2751
|
-
if (typeof
|
|
2775
|
+
if (data22.main !== undefined) {
|
|
2776
|
+
const _errs56 = errors;
|
|
2777
|
+
if (typeof data22.main !== "string") {
|
|
2752
2778
|
validate12.errors = [{ instancePath: instancePath + "/entryPoints/" + i2 + "/main", schemaPath: "#/properties/entryPoints/items/properties/main/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
2753
2779
|
return false;
|
|
2754
2780
|
}
|
|
2755
|
-
var valid7 =
|
|
2781
|
+
var valid7 = _errs56 === errors;
|
|
2756
2782
|
}
|
|
2757
2783
|
else {
|
|
2758
2784
|
var valid7 = true;
|
|
2759
2785
|
}
|
|
2760
2786
|
if (valid7) {
|
|
2761
|
-
if (
|
|
2762
|
-
const
|
|
2763
|
-
if (typeof
|
|
2787
|
+
if (data22.script !== undefined) {
|
|
2788
|
+
const _errs58 = errors;
|
|
2789
|
+
if (typeof data22.script !== "string") {
|
|
2764
2790
|
validate12.errors = [{ instancePath: instancePath + "/entryPoints/" + i2 + "/script", schemaPath: "#/properties/entryPoints/items/properties/script/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
2765
2791
|
return false;
|
|
2766
2792
|
}
|
|
2767
|
-
var valid7 =
|
|
2793
|
+
var valid7 = _errs58 === errors;
|
|
2768
2794
|
}
|
|
2769
2795
|
else {
|
|
2770
2796
|
var valid7 = true;
|
|
2771
2797
|
}
|
|
2772
2798
|
if (valid7) {
|
|
2773
|
-
if (
|
|
2774
|
-
const
|
|
2775
|
-
if (typeof
|
|
2799
|
+
if (data22.documentSandbox !== undefined) {
|
|
2800
|
+
const _errs60 = errors;
|
|
2801
|
+
if (typeof data22.documentSandbox !== "string") {
|
|
2776
2802
|
validate12.errors = [{ instancePath: instancePath + "/entryPoints/" + i2 + "/documentSandbox", schemaPath: "#/properties/entryPoints/items/properties/documentSandbox/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
2777
2803
|
return false;
|
|
2778
2804
|
}
|
|
2779
|
-
var valid7 =
|
|
2805
|
+
var valid7 = _errs60 === errors;
|
|
2780
2806
|
}
|
|
2781
2807
|
else {
|
|
2782
2808
|
var valid7 = true;
|
|
2783
2809
|
}
|
|
2784
2810
|
if (valid7) {
|
|
2785
|
-
if (
|
|
2786
|
-
const
|
|
2787
|
-
if (typeof
|
|
2811
|
+
if (data22.hostDomain !== undefined) {
|
|
2812
|
+
const _errs62 = errors;
|
|
2813
|
+
if (typeof data22.hostDomain !== "string") {
|
|
2788
2814
|
validate12.errors = [{ instancePath: instancePath + "/entryPoints/" + i2 + "/hostDomain", schemaPath: "#/properties/entryPoints/items/properties/hostDomain/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
2789
2815
|
return false;
|
|
2790
2816
|
}
|
|
2791
|
-
var valid7 =
|
|
2817
|
+
var valid7 = _errs62 === errors;
|
|
2792
2818
|
}
|
|
2793
2819
|
else {
|
|
2794
2820
|
var valid7 = true;
|
|
2795
2821
|
}
|
|
2796
2822
|
if (valid7) {
|
|
2797
|
-
if (
|
|
2798
|
-
let
|
|
2799
|
-
const
|
|
2800
|
-
if (errors ===
|
|
2801
|
-
if (
|
|
2802
|
-
const
|
|
2803
|
-
for (const key4 in
|
|
2823
|
+
if (data22.permissions !== undefined) {
|
|
2824
|
+
let data29 = data22.permissions;
|
|
2825
|
+
const _errs64 = errors;
|
|
2826
|
+
if (errors === _errs64) {
|
|
2827
|
+
if (data29 && typeof data29 == "object" && !Array.isArray(data29)) {
|
|
2828
|
+
const _errs66 = errors;
|
|
2829
|
+
for (const key4 in data29) {
|
|
2804
2830
|
if (!(((((key4 === "sandbox") || (key4 === "oauth")) || (key4 === "microphone")) || (key4 === "camera")) || (key4 === "clipboard"))) {
|
|
2805
2831
|
validate12.errors = [{ instancePath: instancePath + "/entryPoints/" + i2 + "/permissions", schemaPath: "#/properties/entryPoints/items/properties/permissions/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key4 }, message: "must NOT have additional properties" }];
|
|
2806
2832
|
return false;
|
|
2807
2833
|
break;
|
|
2808
2834
|
}
|
|
2809
2835
|
}
|
|
2810
|
-
if (
|
|
2811
|
-
if (
|
|
2812
|
-
let
|
|
2813
|
-
const
|
|
2814
|
-
if (errors ===
|
|
2815
|
-
if (Array.isArray(
|
|
2836
|
+
if (_errs66 === errors) {
|
|
2837
|
+
if (data29.sandbox !== undefined) {
|
|
2838
|
+
let data30 = data29.sandbox;
|
|
2839
|
+
const _errs67 = errors;
|
|
2840
|
+
if (errors === _errs67) {
|
|
2841
|
+
if (Array.isArray(data30)) {
|
|
2816
2842
|
var valid9 = true;
|
|
2817
|
-
const len3 =
|
|
2843
|
+
const len3 = data30.length;
|
|
2818
2844
|
for (let i3 = 0; i3 < len3; i3++) {
|
|
2819
|
-
let
|
|
2820
|
-
const
|
|
2821
|
-
if (errors ===
|
|
2822
|
-
if (typeof
|
|
2823
|
-
if (!pattern4.test(
|
|
2845
|
+
let data31 = data30[i3];
|
|
2846
|
+
const _errs69 = errors;
|
|
2847
|
+
if (errors === _errs69) {
|
|
2848
|
+
if (typeof data31 === "string") {
|
|
2849
|
+
if (!pattern4.test(data31)) {
|
|
2824
2850
|
validate12.errors = [{ instancePath: instancePath + "/entryPoints/" + i2 + "/permissions/sandbox/" + i3, schemaPath: "#/properties/entryPoints/items/properties/permissions/properties/sandbox/items/pattern", keyword: "pattern", params: { pattern: "^(allow-popups|allow-presentation|allow-downloads|allow-popups-to-escape-sandbox)$" }, message: "must match pattern \"" + "^(allow-popups|allow-presentation|allow-downloads|allow-popups-to-escape-sandbox)$" + "\"" }];
|
|
2825
2851
|
return false;
|
|
2826
2852
|
}
|
|
@@ -2830,7 +2856,7 @@ function validate12(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
2830
2856
|
return false;
|
|
2831
2857
|
}
|
|
2832
2858
|
}
|
|
2833
|
-
var valid9 =
|
|
2859
|
+
var valid9 = _errs69 === errors;
|
|
2834
2860
|
if (!valid9) {
|
|
2835
2861
|
break;
|
|
2836
2862
|
}
|
|
@@ -2841,26 +2867,26 @@ function validate12(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
2841
2867
|
return false;
|
|
2842
2868
|
}
|
|
2843
2869
|
}
|
|
2844
|
-
var valid8 =
|
|
2870
|
+
var valid8 = _errs67 === errors;
|
|
2845
2871
|
}
|
|
2846
2872
|
else {
|
|
2847
2873
|
var valid8 = true;
|
|
2848
2874
|
}
|
|
2849
2875
|
if (valid8) {
|
|
2850
|
-
if (
|
|
2851
|
-
let
|
|
2852
|
-
const
|
|
2853
|
-
if (errors ===
|
|
2854
|
-
if (Array.isArray(
|
|
2876
|
+
if (data29.oauth !== undefined) {
|
|
2877
|
+
let data32 = data29.oauth;
|
|
2878
|
+
const _errs71 = errors;
|
|
2879
|
+
if (errors === _errs71) {
|
|
2880
|
+
if (Array.isArray(data32)) {
|
|
2855
2881
|
var valid10 = true;
|
|
2856
|
-
const len4 =
|
|
2882
|
+
const len4 = data32.length;
|
|
2857
2883
|
for (let i4 = 0; i4 < len4; i4++) {
|
|
2858
|
-
const
|
|
2859
|
-
if (typeof
|
|
2884
|
+
const _errs73 = errors;
|
|
2885
|
+
if (typeof data32[i4] !== "string") {
|
|
2860
2886
|
validate12.errors = [{ instancePath: instancePath + "/entryPoints/" + i2 + "/permissions/oauth/" + i4, schemaPath: "#/properties/entryPoints/items/properties/permissions/properties/oauth/items/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
2861
2887
|
return false;
|
|
2862
2888
|
}
|
|
2863
|
-
var valid10 =
|
|
2889
|
+
var valid10 = _errs73 === errors;
|
|
2864
2890
|
if (!valid10) {
|
|
2865
2891
|
break;
|
|
2866
2892
|
}
|
|
@@ -2871,49 +2897,49 @@ function validate12(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
2871
2897
|
return false;
|
|
2872
2898
|
}
|
|
2873
2899
|
}
|
|
2874
|
-
var valid8 =
|
|
2900
|
+
var valid8 = _errs71 === errors;
|
|
2875
2901
|
}
|
|
2876
2902
|
else {
|
|
2877
2903
|
var valid8 = true;
|
|
2878
2904
|
}
|
|
2879
2905
|
if (valid8) {
|
|
2880
|
-
if (
|
|
2881
|
-
const
|
|
2882
|
-
if (typeof
|
|
2906
|
+
if (data29.microphone !== undefined) {
|
|
2907
|
+
const _errs75 = errors;
|
|
2908
|
+
if (typeof data29.microphone !== "string") {
|
|
2883
2909
|
validate12.errors = [{ instancePath: instancePath + "/entryPoints/" + i2 + "/permissions/microphone", schemaPath: "#/properties/entryPoints/items/properties/permissions/properties/microphone/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
2884
2910
|
return false;
|
|
2885
2911
|
}
|
|
2886
|
-
var valid8 =
|
|
2912
|
+
var valid8 = _errs75 === errors;
|
|
2887
2913
|
}
|
|
2888
2914
|
else {
|
|
2889
2915
|
var valid8 = true;
|
|
2890
2916
|
}
|
|
2891
2917
|
if (valid8) {
|
|
2892
|
-
if (
|
|
2893
|
-
const
|
|
2894
|
-
if (typeof
|
|
2918
|
+
if (data29.camera !== undefined) {
|
|
2919
|
+
const _errs77 = errors;
|
|
2920
|
+
if (typeof data29.camera !== "string") {
|
|
2895
2921
|
validate12.errors = [{ instancePath: instancePath + "/entryPoints/" + i2 + "/permissions/camera", schemaPath: "#/properties/entryPoints/items/properties/permissions/properties/camera/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
2896
2922
|
return false;
|
|
2897
2923
|
}
|
|
2898
|
-
var valid8 =
|
|
2924
|
+
var valid8 = _errs77 === errors;
|
|
2899
2925
|
}
|
|
2900
2926
|
else {
|
|
2901
2927
|
var valid8 = true;
|
|
2902
2928
|
}
|
|
2903
2929
|
if (valid8) {
|
|
2904
|
-
if (
|
|
2905
|
-
let
|
|
2906
|
-
const
|
|
2907
|
-
if (errors ===
|
|
2908
|
-
if (Array.isArray(
|
|
2930
|
+
if (data29.clipboard !== undefined) {
|
|
2931
|
+
let data36 = data29.clipboard;
|
|
2932
|
+
const _errs79 = errors;
|
|
2933
|
+
if (errors === _errs79) {
|
|
2934
|
+
if (Array.isArray(data36)) {
|
|
2909
2935
|
var valid11 = true;
|
|
2910
|
-
const len5 =
|
|
2936
|
+
const len5 = data36.length;
|
|
2911
2937
|
for (let i5 = 0; i5 < len5; i5++) {
|
|
2912
|
-
let
|
|
2913
|
-
const
|
|
2914
|
-
if (errors ===
|
|
2915
|
-
if (typeof
|
|
2916
|
-
if (!pattern16.test(
|
|
2938
|
+
let data37 = data36[i5];
|
|
2939
|
+
const _errs81 = errors;
|
|
2940
|
+
if (errors === _errs81) {
|
|
2941
|
+
if (typeof data37 === "string") {
|
|
2942
|
+
if (!pattern16.test(data37)) {
|
|
2917
2943
|
validate12.errors = [{ instancePath: instancePath + "/entryPoints/" + i2 + "/permissions/clipboard/" + i5, schemaPath: "#/properties/entryPoints/items/properties/permissions/properties/clipboard/items/pattern", keyword: "pattern", params: { pattern: "^(clipboard-write|clipboard-read)$" }, message: "must match pattern \"" + "^(clipboard-write|clipboard-read)$" + "\"" }];
|
|
2918
2944
|
return false;
|
|
2919
2945
|
}
|
|
@@ -2923,7 +2949,7 @@ function validate12(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
2923
2949
|
return false;
|
|
2924
2950
|
}
|
|
2925
2951
|
}
|
|
2926
|
-
var valid11 =
|
|
2952
|
+
var valid11 = _errs81 === errors;
|
|
2927
2953
|
if (!valid11) {
|
|
2928
2954
|
break;
|
|
2929
2955
|
}
|
|
@@ -2934,7 +2960,7 @@ function validate12(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
2934
2960
|
return false;
|
|
2935
2961
|
}
|
|
2936
2962
|
}
|
|
2937
|
-
var valid8 =
|
|
2963
|
+
var valid8 = _errs79 === errors;
|
|
2938
2964
|
}
|
|
2939
2965
|
else {
|
|
2940
2966
|
var valid8 = true;
|
|
@@ -2950,53 +2976,53 @@ function validate12(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
2950
2976
|
return false;
|
|
2951
2977
|
}
|
|
2952
2978
|
}
|
|
2953
|
-
var valid7 =
|
|
2979
|
+
var valid7 = _errs64 === errors;
|
|
2954
2980
|
}
|
|
2955
2981
|
else {
|
|
2956
2982
|
var valid7 = true;
|
|
2957
2983
|
}
|
|
2958
2984
|
if (valid7) {
|
|
2959
|
-
if (
|
|
2960
|
-
let
|
|
2961
|
-
const
|
|
2962
|
-
if (errors ===
|
|
2963
|
-
if (
|
|
2985
|
+
if (data22.defaultSize !== undefined) {
|
|
2986
|
+
let data38 = data22.defaultSize;
|
|
2987
|
+
const _errs83 = errors;
|
|
2988
|
+
if (errors === _errs83) {
|
|
2989
|
+
if (data38 && typeof data38 == "object" && !Array.isArray(data38)) {
|
|
2964
2990
|
let missing4;
|
|
2965
|
-
if (((
|
|
2991
|
+
if (((data38.width === undefined) && (missing4 = "width")) || ((data38.height === undefined) && (missing4 = "height"))) {
|
|
2966
2992
|
validate12.errors = [{ instancePath: instancePath + "/entryPoints/" + i2 + "/defaultSize", schemaPath: "#/properties/entryPoints/items/properties/defaultSize/required", keyword: "required", params: { missingProperty: missing4 }, message: "must have required property '" + missing4 + "'" }];
|
|
2967
2993
|
return false;
|
|
2968
2994
|
}
|
|
2969
2995
|
else {
|
|
2970
|
-
const
|
|
2971
|
-
for (const key5 in
|
|
2996
|
+
const _errs85 = errors;
|
|
2997
|
+
for (const key5 in data38) {
|
|
2972
2998
|
if (!((key5 === "width") || (key5 === "height"))) {
|
|
2973
2999
|
validate12.errors = [{ instancePath: instancePath + "/entryPoints/" + i2 + "/defaultSize", schemaPath: "#/properties/entryPoints/items/properties/defaultSize/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key5 }, message: "must NOT have additional properties" }];
|
|
2974
3000
|
return false;
|
|
2975
3001
|
break;
|
|
2976
3002
|
}
|
|
2977
3003
|
}
|
|
2978
|
-
if (
|
|
2979
|
-
if (
|
|
2980
|
-
let
|
|
2981
|
-
const
|
|
2982
|
-
if (!((typeof
|
|
3004
|
+
if (_errs85 === errors) {
|
|
3005
|
+
if (data38.width !== undefined) {
|
|
3006
|
+
let data39 = data38.width;
|
|
3007
|
+
const _errs86 = errors;
|
|
3008
|
+
if (!((typeof data39 == "number") && (isFinite(data39)))) {
|
|
2983
3009
|
validate12.errors = [{ instancePath: instancePath + "/entryPoints/" + i2 + "/defaultSize/width", schemaPath: "#/properties/entryPoints/items/properties/defaultSize/properties/width/type", keyword: "type", params: { type: "number" }, message: "must be number" }];
|
|
2984
3010
|
return false;
|
|
2985
3011
|
}
|
|
2986
|
-
var valid12 =
|
|
3012
|
+
var valid12 = _errs86 === errors;
|
|
2987
3013
|
}
|
|
2988
3014
|
else {
|
|
2989
3015
|
var valid12 = true;
|
|
2990
3016
|
}
|
|
2991
3017
|
if (valid12) {
|
|
2992
|
-
if (
|
|
2993
|
-
let
|
|
2994
|
-
const
|
|
2995
|
-
if (!((typeof
|
|
3018
|
+
if (data38.height !== undefined) {
|
|
3019
|
+
let data40 = data38.height;
|
|
3020
|
+
const _errs88 = errors;
|
|
3021
|
+
if (!((typeof data40 == "number") && (isFinite(data40)))) {
|
|
2996
3022
|
validate12.errors = [{ instancePath: instancePath + "/entryPoints/" + i2 + "/defaultSize/height", schemaPath: "#/properties/entryPoints/items/properties/defaultSize/properties/height/type", keyword: "type", params: { type: "number" }, message: "must be number" }];
|
|
2997
3023
|
return false;
|
|
2998
3024
|
}
|
|
2999
|
-
var valid12 =
|
|
3025
|
+
var valid12 = _errs88 === errors;
|
|
3000
3026
|
}
|
|
3001
3027
|
else {
|
|
3002
3028
|
var valid12 = true;
|
|
@@ -3010,19 +3036,19 @@ function validate12(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
3010
3036
|
return false;
|
|
3011
3037
|
}
|
|
3012
3038
|
}
|
|
3013
|
-
var valid7 =
|
|
3039
|
+
var valid7 = _errs83 === errors;
|
|
3014
3040
|
}
|
|
3015
3041
|
else {
|
|
3016
3042
|
var valid7 = true;
|
|
3017
3043
|
}
|
|
3018
3044
|
if (valid7) {
|
|
3019
|
-
if (
|
|
3020
|
-
const
|
|
3021
|
-
if (typeof
|
|
3045
|
+
if (data22.discoverable !== undefined) {
|
|
3046
|
+
const _errs90 = errors;
|
|
3047
|
+
if (typeof data22.discoverable !== "boolean") {
|
|
3022
3048
|
validate12.errors = [{ instancePath: instancePath + "/entryPoints/" + i2 + "/discoverable", schemaPath: "#/properties/entryPoints/items/properties/discoverable/type", keyword: "type", params: { type: "boolean" }, message: "must be boolean" }];
|
|
3023
3049
|
return false;
|
|
3024
3050
|
}
|
|
3025
|
-
var valid7 =
|
|
3051
|
+
var valid7 = _errs90 === errors;
|
|
3026
3052
|
}
|
|
3027
3053
|
else {
|
|
3028
3054
|
var valid7 = true;
|
|
@@ -3043,7 +3069,7 @@ function validate12(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
3043
3069
|
return false;
|
|
3044
3070
|
}
|
|
3045
3071
|
}
|
|
3046
|
-
var valid6 =
|
|
3072
|
+
var valid6 = _errs49 === errors;
|
|
3047
3073
|
if (!valid6) {
|
|
3048
3074
|
break;
|
|
3049
3075
|
}
|
|
@@ -3054,7 +3080,7 @@ function validate12(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
3054
3080
|
return false;
|
|
3055
3081
|
}
|
|
3056
3082
|
}
|
|
3057
|
-
var valid0 =
|
|
3083
|
+
var valid0 = _errs47 === errors;
|
|
3058
3084
|
}
|
|
3059
3085
|
else {
|
|
3060
3086
|
var valid0 = true;
|