@adobe/ccweb-add-on-manifest 2.1.0 → 2.2.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 +1 -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 +134 -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 +2 -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" }, "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 };
|
|
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" }, "tiktokcml": { "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")) || (key2 === "toastNotifications")) || (key2 === "addOnLifecycle"))) {
|
|
2626
|
+
if (!(((((key2 === "messaging") || (key2 === "expressPrint")) || (key2 === "toastNotifications")) || (key2 === "addOnLifecycle")) || (key2 === "tiktokcml"))) {
|
|
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;
|
|
@@ -2677,6 +2677,19 @@ function validate12(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
2677
2677
|
else {
|
|
2678
2678
|
var valid5 = true;
|
|
2679
2679
|
}
|
|
2680
|
+
if (valid5) {
|
|
2681
|
+
if (data16.tiktokcml !== undefined) {
|
|
2682
|
+
const _errs47 = errors;
|
|
2683
|
+
if (typeof data16.tiktokcml !== "boolean") {
|
|
2684
|
+
validate12.errors = [{ instancePath: instancePath + "/requirements/trustedPartnerApis/tiktokcml", schemaPath: "#/properties/requirements/properties/trustedPartnerApis/properties/tiktokcml/type", keyword: "type", params: { type: "boolean" }, message: "must be boolean" }];
|
|
2685
|
+
return false;
|
|
2686
|
+
}
|
|
2687
|
+
var valid5 = _errs47 === errors;
|
|
2688
|
+
}
|
|
2689
|
+
else {
|
|
2690
|
+
var valid5 = true;
|
|
2691
|
+
}
|
|
2692
|
+
}
|
|
2680
2693
|
}
|
|
2681
2694
|
}
|
|
2682
2695
|
}
|
|
@@ -2713,38 +2726,38 @@ function validate12(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
2713
2726
|
}
|
|
2714
2727
|
if (valid0) {
|
|
2715
2728
|
if (data.entryPoints !== undefined) {
|
|
2716
|
-
let
|
|
2717
|
-
const
|
|
2718
|
-
if (errors ===
|
|
2719
|
-
if (Array.isArray(
|
|
2729
|
+
let data22 = data.entryPoints;
|
|
2730
|
+
const _errs49 = errors;
|
|
2731
|
+
if (errors === _errs49) {
|
|
2732
|
+
if (Array.isArray(data22)) {
|
|
2720
2733
|
var valid6 = true;
|
|
2721
|
-
const len2 =
|
|
2734
|
+
const len2 = data22.length;
|
|
2722
2735
|
for (let i2 = 0; i2 < len2; i2++) {
|
|
2723
|
-
let
|
|
2724
|
-
const
|
|
2725
|
-
if (errors ===
|
|
2726
|
-
if (
|
|
2736
|
+
let data23 = data22[i2];
|
|
2737
|
+
const _errs51 = errors;
|
|
2738
|
+
if (errors === _errs51) {
|
|
2739
|
+
if (data23 && typeof data23 == "object" && !Array.isArray(data23)) {
|
|
2727
2740
|
let missing3;
|
|
2728
|
-
if ((((
|
|
2741
|
+
if ((((data23.type === undefined) && (missing3 = "type")) || ((data23.id === undefined) && (missing3 = "id"))) || ((data23.main === undefined) && (missing3 = "main"))) {
|
|
2729
2742
|
validate12.errors = [{ instancePath: instancePath + "/entryPoints/" + i2, schemaPath: "#/properties/entryPoints/items/required", keyword: "required", params: { missingProperty: missing3 }, message: "must have required property '" + missing3 + "'" }];
|
|
2730
2743
|
return false;
|
|
2731
2744
|
}
|
|
2732
2745
|
else {
|
|
2733
|
-
const
|
|
2734
|
-
for (const key3 in
|
|
2746
|
+
const _errs53 = errors;
|
|
2747
|
+
for (const key3 in data23) {
|
|
2735
2748
|
if (!(func2.call(schema13.properties.entryPoints.items.properties, key3))) {
|
|
2736
2749
|
validate12.errors = [{ instancePath: instancePath + "/entryPoints/" + i2, schemaPath: "#/properties/entryPoints/items/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key3 }, message: "must NOT have additional properties" }];
|
|
2737
2750
|
return false;
|
|
2738
2751
|
break;
|
|
2739
2752
|
}
|
|
2740
2753
|
}
|
|
2741
|
-
if (
|
|
2742
|
-
if (
|
|
2743
|
-
let
|
|
2744
|
-
const
|
|
2745
|
-
if (errors ===
|
|
2746
|
-
if (typeof
|
|
2747
|
-
if (!pattern3.test(
|
|
2754
|
+
if (_errs53 === errors) {
|
|
2755
|
+
if (data23.type !== undefined) {
|
|
2756
|
+
let data24 = data23.type;
|
|
2757
|
+
const _errs54 = errors;
|
|
2758
|
+
if (errors === _errs54) {
|
|
2759
|
+
if (typeof data24 === "string") {
|
|
2760
|
+
if (!pattern3.test(data24)) {
|
|
2748
2761
|
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)$" + "\"" }];
|
|
2749
2762
|
return false;
|
|
2750
2763
|
}
|
|
@@ -2754,99 +2767,99 @@ function validate12(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
2754
2767
|
return false;
|
|
2755
2768
|
}
|
|
2756
2769
|
}
|
|
2757
|
-
var valid7 =
|
|
2770
|
+
var valid7 = _errs54 === errors;
|
|
2758
2771
|
}
|
|
2759
2772
|
else {
|
|
2760
2773
|
var valid7 = true;
|
|
2761
2774
|
}
|
|
2762
2775
|
if (valid7) {
|
|
2763
|
-
if (
|
|
2764
|
-
const
|
|
2765
|
-
if (typeof
|
|
2776
|
+
if (data23.id !== undefined) {
|
|
2777
|
+
const _errs56 = errors;
|
|
2778
|
+
if (typeof data23.id !== "string") {
|
|
2766
2779
|
validate12.errors = [{ instancePath: instancePath + "/entryPoints/" + i2 + "/id", schemaPath: "#/properties/entryPoints/items/properties/id/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
2767
2780
|
return false;
|
|
2768
2781
|
}
|
|
2769
|
-
var valid7 =
|
|
2782
|
+
var valid7 = _errs56 === errors;
|
|
2770
2783
|
}
|
|
2771
2784
|
else {
|
|
2772
2785
|
var valid7 = true;
|
|
2773
2786
|
}
|
|
2774
2787
|
if (valid7) {
|
|
2775
|
-
if (
|
|
2776
|
-
const
|
|
2777
|
-
if (typeof
|
|
2788
|
+
if (data23.main !== undefined) {
|
|
2789
|
+
const _errs58 = errors;
|
|
2790
|
+
if (typeof data23.main !== "string") {
|
|
2778
2791
|
validate12.errors = [{ instancePath: instancePath + "/entryPoints/" + i2 + "/main", schemaPath: "#/properties/entryPoints/items/properties/main/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
2779
2792
|
return false;
|
|
2780
2793
|
}
|
|
2781
|
-
var valid7 =
|
|
2794
|
+
var valid7 = _errs58 === errors;
|
|
2782
2795
|
}
|
|
2783
2796
|
else {
|
|
2784
2797
|
var valid7 = true;
|
|
2785
2798
|
}
|
|
2786
2799
|
if (valid7) {
|
|
2787
|
-
if (
|
|
2788
|
-
const
|
|
2789
|
-
if (typeof
|
|
2800
|
+
if (data23.script !== undefined) {
|
|
2801
|
+
const _errs60 = errors;
|
|
2802
|
+
if (typeof data23.script !== "string") {
|
|
2790
2803
|
validate12.errors = [{ instancePath: instancePath + "/entryPoints/" + i2 + "/script", schemaPath: "#/properties/entryPoints/items/properties/script/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
2791
2804
|
return false;
|
|
2792
2805
|
}
|
|
2793
|
-
var valid7 =
|
|
2806
|
+
var valid7 = _errs60 === errors;
|
|
2794
2807
|
}
|
|
2795
2808
|
else {
|
|
2796
2809
|
var valid7 = true;
|
|
2797
2810
|
}
|
|
2798
2811
|
if (valid7) {
|
|
2799
|
-
if (
|
|
2800
|
-
const
|
|
2801
|
-
if (typeof
|
|
2812
|
+
if (data23.documentSandbox !== undefined) {
|
|
2813
|
+
const _errs62 = errors;
|
|
2814
|
+
if (typeof data23.documentSandbox !== "string") {
|
|
2802
2815
|
validate12.errors = [{ instancePath: instancePath + "/entryPoints/" + i2 + "/documentSandbox", schemaPath: "#/properties/entryPoints/items/properties/documentSandbox/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
2803
2816
|
return false;
|
|
2804
2817
|
}
|
|
2805
|
-
var valid7 =
|
|
2818
|
+
var valid7 = _errs62 === errors;
|
|
2806
2819
|
}
|
|
2807
2820
|
else {
|
|
2808
2821
|
var valid7 = true;
|
|
2809
2822
|
}
|
|
2810
2823
|
if (valid7) {
|
|
2811
|
-
if (
|
|
2812
|
-
const
|
|
2813
|
-
if (typeof
|
|
2824
|
+
if (data23.hostDomain !== undefined) {
|
|
2825
|
+
const _errs64 = errors;
|
|
2826
|
+
if (typeof data23.hostDomain !== "string") {
|
|
2814
2827
|
validate12.errors = [{ instancePath: instancePath + "/entryPoints/" + i2 + "/hostDomain", schemaPath: "#/properties/entryPoints/items/properties/hostDomain/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
2815
2828
|
return false;
|
|
2816
2829
|
}
|
|
2817
|
-
var valid7 =
|
|
2830
|
+
var valid7 = _errs64 === errors;
|
|
2818
2831
|
}
|
|
2819
2832
|
else {
|
|
2820
2833
|
var valid7 = true;
|
|
2821
2834
|
}
|
|
2822
2835
|
if (valid7) {
|
|
2823
|
-
if (
|
|
2824
|
-
let
|
|
2825
|
-
const
|
|
2826
|
-
if (errors ===
|
|
2827
|
-
if (
|
|
2828
|
-
const
|
|
2829
|
-
for (const key4 in
|
|
2836
|
+
if (data23.permissions !== undefined) {
|
|
2837
|
+
let data30 = data23.permissions;
|
|
2838
|
+
const _errs66 = errors;
|
|
2839
|
+
if (errors === _errs66) {
|
|
2840
|
+
if (data30 && typeof data30 == "object" && !Array.isArray(data30)) {
|
|
2841
|
+
const _errs68 = errors;
|
|
2842
|
+
for (const key4 in data30) {
|
|
2830
2843
|
if (!(((((key4 === "sandbox") || (key4 === "oauth")) || (key4 === "microphone")) || (key4 === "camera")) || (key4 === "clipboard"))) {
|
|
2831
2844
|
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" }];
|
|
2832
2845
|
return false;
|
|
2833
2846
|
break;
|
|
2834
2847
|
}
|
|
2835
2848
|
}
|
|
2836
|
-
if (
|
|
2837
|
-
if (
|
|
2838
|
-
let
|
|
2839
|
-
const
|
|
2840
|
-
if (errors ===
|
|
2841
|
-
if (Array.isArray(
|
|
2849
|
+
if (_errs68 === errors) {
|
|
2850
|
+
if (data30.sandbox !== undefined) {
|
|
2851
|
+
let data31 = data30.sandbox;
|
|
2852
|
+
const _errs69 = errors;
|
|
2853
|
+
if (errors === _errs69) {
|
|
2854
|
+
if (Array.isArray(data31)) {
|
|
2842
2855
|
var valid9 = true;
|
|
2843
|
-
const len3 =
|
|
2856
|
+
const len3 = data31.length;
|
|
2844
2857
|
for (let i3 = 0; i3 < len3; i3++) {
|
|
2845
|
-
let
|
|
2846
|
-
const
|
|
2847
|
-
if (errors ===
|
|
2848
|
-
if (typeof
|
|
2849
|
-
if (!pattern4.test(
|
|
2858
|
+
let data32 = data31[i3];
|
|
2859
|
+
const _errs71 = errors;
|
|
2860
|
+
if (errors === _errs71) {
|
|
2861
|
+
if (typeof data32 === "string") {
|
|
2862
|
+
if (!pattern4.test(data32)) {
|
|
2850
2863
|
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)$" + "\"" }];
|
|
2851
2864
|
return false;
|
|
2852
2865
|
}
|
|
@@ -2856,7 +2869,7 @@ function validate12(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
2856
2869
|
return false;
|
|
2857
2870
|
}
|
|
2858
2871
|
}
|
|
2859
|
-
var valid9 =
|
|
2872
|
+
var valid9 = _errs71 === errors;
|
|
2860
2873
|
if (!valid9) {
|
|
2861
2874
|
break;
|
|
2862
2875
|
}
|
|
@@ -2867,26 +2880,26 @@ function validate12(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
2867
2880
|
return false;
|
|
2868
2881
|
}
|
|
2869
2882
|
}
|
|
2870
|
-
var valid8 =
|
|
2883
|
+
var valid8 = _errs69 === errors;
|
|
2871
2884
|
}
|
|
2872
2885
|
else {
|
|
2873
2886
|
var valid8 = true;
|
|
2874
2887
|
}
|
|
2875
2888
|
if (valid8) {
|
|
2876
|
-
if (
|
|
2877
|
-
let
|
|
2878
|
-
const
|
|
2879
|
-
if (errors ===
|
|
2880
|
-
if (Array.isArray(
|
|
2889
|
+
if (data30.oauth !== undefined) {
|
|
2890
|
+
let data33 = data30.oauth;
|
|
2891
|
+
const _errs73 = errors;
|
|
2892
|
+
if (errors === _errs73) {
|
|
2893
|
+
if (Array.isArray(data33)) {
|
|
2881
2894
|
var valid10 = true;
|
|
2882
|
-
const len4 =
|
|
2895
|
+
const len4 = data33.length;
|
|
2883
2896
|
for (let i4 = 0; i4 < len4; i4++) {
|
|
2884
|
-
const
|
|
2885
|
-
if (typeof
|
|
2897
|
+
const _errs75 = errors;
|
|
2898
|
+
if (typeof data33[i4] !== "string") {
|
|
2886
2899
|
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" }];
|
|
2887
2900
|
return false;
|
|
2888
2901
|
}
|
|
2889
|
-
var valid10 =
|
|
2902
|
+
var valid10 = _errs75 === errors;
|
|
2890
2903
|
if (!valid10) {
|
|
2891
2904
|
break;
|
|
2892
2905
|
}
|
|
@@ -2897,49 +2910,49 @@ function validate12(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
2897
2910
|
return false;
|
|
2898
2911
|
}
|
|
2899
2912
|
}
|
|
2900
|
-
var valid8 =
|
|
2913
|
+
var valid8 = _errs73 === errors;
|
|
2901
2914
|
}
|
|
2902
2915
|
else {
|
|
2903
2916
|
var valid8 = true;
|
|
2904
2917
|
}
|
|
2905
2918
|
if (valid8) {
|
|
2906
|
-
if (
|
|
2907
|
-
const
|
|
2908
|
-
if (typeof
|
|
2919
|
+
if (data30.microphone !== undefined) {
|
|
2920
|
+
const _errs77 = errors;
|
|
2921
|
+
if (typeof data30.microphone !== "string") {
|
|
2909
2922
|
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" }];
|
|
2910
2923
|
return false;
|
|
2911
2924
|
}
|
|
2912
|
-
var valid8 =
|
|
2925
|
+
var valid8 = _errs77 === errors;
|
|
2913
2926
|
}
|
|
2914
2927
|
else {
|
|
2915
2928
|
var valid8 = true;
|
|
2916
2929
|
}
|
|
2917
2930
|
if (valid8) {
|
|
2918
|
-
if (
|
|
2919
|
-
const
|
|
2920
|
-
if (typeof
|
|
2931
|
+
if (data30.camera !== undefined) {
|
|
2932
|
+
const _errs79 = errors;
|
|
2933
|
+
if (typeof data30.camera !== "string") {
|
|
2921
2934
|
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" }];
|
|
2922
2935
|
return false;
|
|
2923
2936
|
}
|
|
2924
|
-
var valid8 =
|
|
2937
|
+
var valid8 = _errs79 === errors;
|
|
2925
2938
|
}
|
|
2926
2939
|
else {
|
|
2927
2940
|
var valid8 = true;
|
|
2928
2941
|
}
|
|
2929
2942
|
if (valid8) {
|
|
2930
|
-
if (
|
|
2931
|
-
let
|
|
2932
|
-
const
|
|
2933
|
-
if (errors ===
|
|
2934
|
-
if (Array.isArray(
|
|
2943
|
+
if (data30.clipboard !== undefined) {
|
|
2944
|
+
let data37 = data30.clipboard;
|
|
2945
|
+
const _errs81 = errors;
|
|
2946
|
+
if (errors === _errs81) {
|
|
2947
|
+
if (Array.isArray(data37)) {
|
|
2935
2948
|
var valid11 = true;
|
|
2936
|
-
const len5 =
|
|
2949
|
+
const len5 = data37.length;
|
|
2937
2950
|
for (let i5 = 0; i5 < len5; i5++) {
|
|
2938
|
-
let
|
|
2939
|
-
const
|
|
2940
|
-
if (errors ===
|
|
2941
|
-
if (typeof
|
|
2942
|
-
if (!pattern16.test(
|
|
2951
|
+
let data38 = data37[i5];
|
|
2952
|
+
const _errs83 = errors;
|
|
2953
|
+
if (errors === _errs83) {
|
|
2954
|
+
if (typeof data38 === "string") {
|
|
2955
|
+
if (!pattern16.test(data38)) {
|
|
2943
2956
|
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)$" + "\"" }];
|
|
2944
2957
|
return false;
|
|
2945
2958
|
}
|
|
@@ -2949,7 +2962,7 @@ function validate12(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
2949
2962
|
return false;
|
|
2950
2963
|
}
|
|
2951
2964
|
}
|
|
2952
|
-
var valid11 =
|
|
2965
|
+
var valid11 = _errs83 === errors;
|
|
2953
2966
|
if (!valid11) {
|
|
2954
2967
|
break;
|
|
2955
2968
|
}
|
|
@@ -2960,7 +2973,7 @@ function validate12(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
2960
2973
|
return false;
|
|
2961
2974
|
}
|
|
2962
2975
|
}
|
|
2963
|
-
var valid8 =
|
|
2976
|
+
var valid8 = _errs81 === errors;
|
|
2964
2977
|
}
|
|
2965
2978
|
else {
|
|
2966
2979
|
var valid8 = true;
|
|
@@ -2976,53 +2989,53 @@ function validate12(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
2976
2989
|
return false;
|
|
2977
2990
|
}
|
|
2978
2991
|
}
|
|
2979
|
-
var valid7 =
|
|
2992
|
+
var valid7 = _errs66 === errors;
|
|
2980
2993
|
}
|
|
2981
2994
|
else {
|
|
2982
2995
|
var valid7 = true;
|
|
2983
2996
|
}
|
|
2984
2997
|
if (valid7) {
|
|
2985
|
-
if (
|
|
2986
|
-
let
|
|
2987
|
-
const
|
|
2988
|
-
if (errors ===
|
|
2989
|
-
if (
|
|
2998
|
+
if (data23.defaultSize !== undefined) {
|
|
2999
|
+
let data39 = data23.defaultSize;
|
|
3000
|
+
const _errs85 = errors;
|
|
3001
|
+
if (errors === _errs85) {
|
|
3002
|
+
if (data39 && typeof data39 == "object" && !Array.isArray(data39)) {
|
|
2990
3003
|
let missing4;
|
|
2991
|
-
if (((
|
|
3004
|
+
if (((data39.width === undefined) && (missing4 = "width")) || ((data39.height === undefined) && (missing4 = "height"))) {
|
|
2992
3005
|
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 + "'" }];
|
|
2993
3006
|
return false;
|
|
2994
3007
|
}
|
|
2995
3008
|
else {
|
|
2996
|
-
const
|
|
2997
|
-
for (const key5 in
|
|
3009
|
+
const _errs87 = errors;
|
|
3010
|
+
for (const key5 in data39) {
|
|
2998
3011
|
if (!((key5 === "width") || (key5 === "height"))) {
|
|
2999
3012
|
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" }];
|
|
3000
3013
|
return false;
|
|
3001
3014
|
break;
|
|
3002
3015
|
}
|
|
3003
3016
|
}
|
|
3004
|
-
if (
|
|
3005
|
-
if (
|
|
3006
|
-
let
|
|
3007
|
-
const
|
|
3008
|
-
if (!((typeof
|
|
3017
|
+
if (_errs87 === errors) {
|
|
3018
|
+
if (data39.width !== undefined) {
|
|
3019
|
+
let data40 = data39.width;
|
|
3020
|
+
const _errs88 = errors;
|
|
3021
|
+
if (!((typeof data40 == "number") && (isFinite(data40)))) {
|
|
3009
3022
|
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" }];
|
|
3010
3023
|
return false;
|
|
3011
3024
|
}
|
|
3012
|
-
var valid12 =
|
|
3025
|
+
var valid12 = _errs88 === errors;
|
|
3013
3026
|
}
|
|
3014
3027
|
else {
|
|
3015
3028
|
var valid12 = true;
|
|
3016
3029
|
}
|
|
3017
3030
|
if (valid12) {
|
|
3018
|
-
if (
|
|
3019
|
-
let
|
|
3020
|
-
const
|
|
3021
|
-
if (!((typeof
|
|
3031
|
+
if (data39.height !== undefined) {
|
|
3032
|
+
let data41 = data39.height;
|
|
3033
|
+
const _errs90 = errors;
|
|
3034
|
+
if (!((typeof data41 == "number") && (isFinite(data41)))) {
|
|
3022
3035
|
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" }];
|
|
3023
3036
|
return false;
|
|
3024
3037
|
}
|
|
3025
|
-
var valid12 =
|
|
3038
|
+
var valid12 = _errs90 === errors;
|
|
3026
3039
|
}
|
|
3027
3040
|
else {
|
|
3028
3041
|
var valid12 = true;
|
|
@@ -3036,19 +3049,19 @@ function validate12(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
3036
3049
|
return false;
|
|
3037
3050
|
}
|
|
3038
3051
|
}
|
|
3039
|
-
var valid7 =
|
|
3052
|
+
var valid7 = _errs85 === errors;
|
|
3040
3053
|
}
|
|
3041
3054
|
else {
|
|
3042
3055
|
var valid7 = true;
|
|
3043
3056
|
}
|
|
3044
3057
|
if (valid7) {
|
|
3045
|
-
if (
|
|
3046
|
-
const
|
|
3047
|
-
if (typeof
|
|
3058
|
+
if (data23.discoverable !== undefined) {
|
|
3059
|
+
const _errs92 = errors;
|
|
3060
|
+
if (typeof data23.discoverable !== "boolean") {
|
|
3048
3061
|
validate12.errors = [{ instancePath: instancePath + "/entryPoints/" + i2 + "/discoverable", schemaPath: "#/properties/entryPoints/items/properties/discoverable/type", keyword: "type", params: { type: "boolean" }, message: "must be boolean" }];
|
|
3049
3062
|
return false;
|
|
3050
3063
|
}
|
|
3051
|
-
var valid7 =
|
|
3064
|
+
var valid7 = _errs92 === errors;
|
|
3052
3065
|
}
|
|
3053
3066
|
else {
|
|
3054
3067
|
var valid7 = true;
|
|
@@ -3069,7 +3082,7 @@ function validate12(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
3069
3082
|
return false;
|
|
3070
3083
|
}
|
|
3071
3084
|
}
|
|
3072
|
-
var valid6 =
|
|
3085
|
+
var valid6 = _errs51 === errors;
|
|
3073
3086
|
if (!valid6) {
|
|
3074
3087
|
break;
|
|
3075
3088
|
}
|
|
@@ -3080,7 +3093,7 @@ function validate12(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
3080
3093
|
return false;
|
|
3081
3094
|
}
|
|
3082
3095
|
}
|
|
3083
|
-
var valid0 =
|
|
3096
|
+
var valid0 = _errs49 === errors;
|
|
3084
3097
|
}
|
|
3085
3098
|
else {
|
|
3086
3099
|
var valid0 = true;
|