@adobe/ccweb-add-on-manifest 3.8.0 → 3.10.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 +5 -1
- package/dist/AddOnManifestTypes.d.ts.map +1 -1
- package/dist/AddOnManifestTypes.js +5 -0
- package/dist/AddOnManifestTypes.js.map +1 -1
- package/dist/AddOnManifestValidator.d.ts.map +1 -1
- package/dist/AddOnManifestValidator.js +7 -0
- package/dist/AddOnManifestValidator.js.map +1 -1
- package/dist/generated/validateManifestSchema.d.mts.map +1 -1
- package/dist/generated/validateManifestSchema.mjs +195 -156
- 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|mobile-ios|mobile-android)$" } } }, "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" }, "formSubmission": { "type": "boolean" }, "epsonPrint": { "type": "boolean" } }, "required": [], "additionalProperties": false } }, "required": ["apps"], "additionalProperties": false }, "entryPoints": { "type": "array", "items": { "type": "object", "properties": { "type": { "type": "string", "pattern": "^(panel|script|share|content-hub|content-hub-home|mobile.your-stuff.files|mobile.media.audio|mobile.more|mobile.share|schedule|contextual.replace|contextual.upload|contextual.bulk-create|command|import-hub|quick-action|review-and-approval)$" }, "id": { "type": "string" }, "main": { "type": "string" }, "script": { "type": "string" }, "documentSandbox": { "type": "string" }, "hostDomain": { "type": "string" }, "commands": { "type": "array", "items": { "type": "object", "properties": { "name": { "type": "string" }, "supportedMimeTypes": { "type": "array", "items": { "type": "string" } }, "discoverable": { "type": "boolean" } }, "required": ["name"], "additionalProperties": false } }, "permissions": { "type": "object", "properties": { "sandbox": { "type": "array", "items": { "type": "string", "pattern": "^(allow-popups|allow-presentation|allow-downloads|allow-popups-to-escape-sandbox|allow-forms)$" } }, "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|mobile-ios|mobile-android)$" } } }, "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" }, "formSubmission": { "type": "boolean" }, "epsonPrint": { "type": "boolean" }, "allowPayment": { "type": "boolean" }, "supportsDarkTheme": { "type": "boolean" } }, "required": [], "additionalProperties": false } }, "required": ["apps"], "additionalProperties": false }, "entryPoints": { "type": "array", "items": { "type": "object", "properties": { "type": { "type": "string", "pattern": "^(panel|script|share|content-hub|content-hub-home|mobile.your-stuff.files|mobile.media.audio|mobile.more|mobile.share|schedule|contextual.replace|contextual.upload|contextual.bulk-create|command|import-hub|quick-action|review-and-approval)$" }, "id": { "type": "string" }, "main": { "type": "string" }, "script": { "type": "string" }, "documentSandbox": { "type": "string" }, "hostDomain": { "type": "string" }, "commands": { "type": "array", "items": { "type": "object", "properties": { "name": { "type": "string" }, "supportedMimeTypes": { "type": "array", "items": { "type": "string" } }, "discoverable": { "type": "boolean" } }, "required": ["name"], "additionalProperties": false } }, "permissions": { "type": "object", "properties": { "sandbox": { "type": "array", "items": { "type": "string", "pattern": "^(allow-popups|allow-presentation|allow-downloads|allow-popups-to-escape-sandbox|allow-forms)$" } }, "oauth": { "type": "array", "items": { "type": "string" } }, "microphone": { "type": "string" }, "camera": { "type": "string" }, "clipboard": { "type": "array", "items": { "type": "string", "pattern": "^(clipboard-write|clipboard-read)$" } }, "payment": { "type": "string" } }, "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|mobile-ios|mobile-android)$", "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 (!((
|
|
2626
|
+
if (!(func2.call(schema13.properties.requirements.properties.trustedPartnerApis.properties, key2))) {
|
|
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;
|
|
@@ -2713,6 +2713,32 @@ function validate12(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
2713
2713
|
else {
|
|
2714
2714
|
var valid5 = true;
|
|
2715
2715
|
}
|
|
2716
|
+
if (valid5) {
|
|
2717
|
+
if (data16.allowPayment !== undefined) {
|
|
2718
|
+
const _errs53 = errors;
|
|
2719
|
+
if (typeof data16.allowPayment !== "boolean") {
|
|
2720
|
+
validate12.errors = [{ instancePath: instancePath + "/requirements/trustedPartnerApis/allowPayment", schemaPath: "#/properties/requirements/properties/trustedPartnerApis/properties/allowPayment/type", keyword: "type", params: { type: "boolean" }, message: "must be boolean" }];
|
|
2721
|
+
return false;
|
|
2722
|
+
}
|
|
2723
|
+
var valid5 = _errs53 === errors;
|
|
2724
|
+
}
|
|
2725
|
+
else {
|
|
2726
|
+
var valid5 = true;
|
|
2727
|
+
}
|
|
2728
|
+
if (valid5) {
|
|
2729
|
+
if (data16.supportsDarkTheme !== undefined) {
|
|
2730
|
+
const _errs55 = errors;
|
|
2731
|
+
if (typeof data16.supportsDarkTheme !== "boolean") {
|
|
2732
|
+
validate12.errors = [{ instancePath: instancePath + "/requirements/trustedPartnerApis/supportsDarkTheme", schemaPath: "#/properties/requirements/properties/trustedPartnerApis/properties/supportsDarkTheme/type", keyword: "type", params: { type: "boolean" }, message: "must be boolean" }];
|
|
2733
|
+
return false;
|
|
2734
|
+
}
|
|
2735
|
+
var valid5 = _errs55 === errors;
|
|
2736
|
+
}
|
|
2737
|
+
else {
|
|
2738
|
+
var valid5 = true;
|
|
2739
|
+
}
|
|
2740
|
+
}
|
|
2741
|
+
}
|
|
2716
2742
|
}
|
|
2717
2743
|
}
|
|
2718
2744
|
}
|
|
@@ -2752,38 +2778,38 @@ function validate12(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
2752
2778
|
}
|
|
2753
2779
|
if (valid0) {
|
|
2754
2780
|
if (data.entryPoints !== undefined) {
|
|
2755
|
-
let
|
|
2756
|
-
const
|
|
2757
|
-
if (errors ===
|
|
2758
|
-
if (Array.isArray(
|
|
2781
|
+
let data26 = data.entryPoints;
|
|
2782
|
+
const _errs57 = errors;
|
|
2783
|
+
if (errors === _errs57) {
|
|
2784
|
+
if (Array.isArray(data26)) {
|
|
2759
2785
|
var valid6 = true;
|
|
2760
|
-
const len2 =
|
|
2786
|
+
const len2 = data26.length;
|
|
2761
2787
|
for (let i2 = 0; i2 < len2; i2++) {
|
|
2762
|
-
let
|
|
2763
|
-
const
|
|
2764
|
-
if (errors ===
|
|
2765
|
-
if (
|
|
2788
|
+
let data27 = data26[i2];
|
|
2789
|
+
const _errs59 = errors;
|
|
2790
|
+
if (errors === _errs59) {
|
|
2791
|
+
if (data27 && typeof data27 == "object" && !Array.isArray(data27)) {
|
|
2766
2792
|
let missing3;
|
|
2767
|
-
if ((((
|
|
2793
|
+
if ((((data27.type === undefined) && (missing3 = "type")) || ((data27.id === undefined) && (missing3 = "id"))) || ((data27.main === undefined) && (missing3 = "main"))) {
|
|
2768
2794
|
validate12.errors = [{ instancePath: instancePath + "/entryPoints/" + i2, schemaPath: "#/properties/entryPoints/items/required", keyword: "required", params: { missingProperty: missing3 }, message: "must have required property '" + missing3 + "'" }];
|
|
2769
2795
|
return false;
|
|
2770
2796
|
}
|
|
2771
2797
|
else {
|
|
2772
|
-
const
|
|
2773
|
-
for (const key3 in
|
|
2798
|
+
const _errs61 = errors;
|
|
2799
|
+
for (const key3 in data27) {
|
|
2774
2800
|
if (!(func2.call(schema13.properties.entryPoints.items.properties, key3))) {
|
|
2775
2801
|
validate12.errors = [{ instancePath: instancePath + "/entryPoints/" + i2, schemaPath: "#/properties/entryPoints/items/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key3 }, message: "must NOT have additional properties" }];
|
|
2776
2802
|
return false;
|
|
2777
2803
|
break;
|
|
2778
2804
|
}
|
|
2779
2805
|
}
|
|
2780
|
-
if (
|
|
2781
|
-
if (
|
|
2782
|
-
let
|
|
2783
|
-
const
|
|
2784
|
-
if (errors ===
|
|
2785
|
-
if (typeof
|
|
2786
|
-
if (!pattern3.test(
|
|
2806
|
+
if (_errs61 === errors) {
|
|
2807
|
+
if (data27.type !== undefined) {
|
|
2808
|
+
let data28 = data27.type;
|
|
2809
|
+
const _errs62 = errors;
|
|
2810
|
+
if (errors === _errs62) {
|
|
2811
|
+
if (typeof data28 === "string") {
|
|
2812
|
+
if (!pattern3.test(data28)) {
|
|
2787
2813
|
validate12.errors = [{ instancePath: instancePath + "/entryPoints/" + i2 + "/type", schemaPath: "#/properties/entryPoints/items/properties/type/pattern", keyword: "pattern", params: { pattern: "^(panel|script|share|content-hub|content-hub-home|mobile.your-stuff.files|mobile.media.audio|mobile.more|mobile.share|schedule|contextual.replace|contextual.upload|contextual.bulk-create|command|import-hub|quick-action|review-and-approval)$" }, message: "must match pattern \"" + "^(panel|script|share|content-hub|content-hub-home|mobile.your-stuff.files|mobile.media.audio|mobile.more|mobile.share|schedule|contextual.replace|contextual.upload|contextual.bulk-create|command|import-hub|quick-action|review-and-approval)$" + "\"" }];
|
|
2788
2814
|
return false;
|
|
2789
2815
|
}
|
|
@@ -2793,125 +2819,125 @@ function validate12(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
2793
2819
|
return false;
|
|
2794
2820
|
}
|
|
2795
2821
|
}
|
|
2796
|
-
var valid7 =
|
|
2822
|
+
var valid7 = _errs62 === errors;
|
|
2797
2823
|
}
|
|
2798
2824
|
else {
|
|
2799
2825
|
var valid7 = true;
|
|
2800
2826
|
}
|
|
2801
2827
|
if (valid7) {
|
|
2802
|
-
if (
|
|
2803
|
-
const
|
|
2804
|
-
if (typeof
|
|
2828
|
+
if (data27.id !== undefined) {
|
|
2829
|
+
const _errs64 = errors;
|
|
2830
|
+
if (typeof data27.id !== "string") {
|
|
2805
2831
|
validate12.errors = [{ instancePath: instancePath + "/entryPoints/" + i2 + "/id", schemaPath: "#/properties/entryPoints/items/properties/id/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
2806
2832
|
return false;
|
|
2807
2833
|
}
|
|
2808
|
-
var valid7 =
|
|
2834
|
+
var valid7 = _errs64 === errors;
|
|
2809
2835
|
}
|
|
2810
2836
|
else {
|
|
2811
2837
|
var valid7 = true;
|
|
2812
2838
|
}
|
|
2813
2839
|
if (valid7) {
|
|
2814
|
-
if (
|
|
2815
|
-
const
|
|
2816
|
-
if (typeof
|
|
2840
|
+
if (data27.main !== undefined) {
|
|
2841
|
+
const _errs66 = errors;
|
|
2842
|
+
if (typeof data27.main !== "string") {
|
|
2817
2843
|
validate12.errors = [{ instancePath: instancePath + "/entryPoints/" + i2 + "/main", schemaPath: "#/properties/entryPoints/items/properties/main/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
2818
2844
|
return false;
|
|
2819
2845
|
}
|
|
2820
|
-
var valid7 =
|
|
2846
|
+
var valid7 = _errs66 === errors;
|
|
2821
2847
|
}
|
|
2822
2848
|
else {
|
|
2823
2849
|
var valid7 = true;
|
|
2824
2850
|
}
|
|
2825
2851
|
if (valid7) {
|
|
2826
|
-
if (
|
|
2827
|
-
const
|
|
2828
|
-
if (typeof
|
|
2852
|
+
if (data27.script !== undefined) {
|
|
2853
|
+
const _errs68 = errors;
|
|
2854
|
+
if (typeof data27.script !== "string") {
|
|
2829
2855
|
validate12.errors = [{ instancePath: instancePath + "/entryPoints/" + i2 + "/script", schemaPath: "#/properties/entryPoints/items/properties/script/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
2830
2856
|
return false;
|
|
2831
2857
|
}
|
|
2832
|
-
var valid7 =
|
|
2858
|
+
var valid7 = _errs68 === errors;
|
|
2833
2859
|
}
|
|
2834
2860
|
else {
|
|
2835
2861
|
var valid7 = true;
|
|
2836
2862
|
}
|
|
2837
2863
|
if (valid7) {
|
|
2838
|
-
if (
|
|
2839
|
-
const
|
|
2840
|
-
if (typeof
|
|
2864
|
+
if (data27.documentSandbox !== undefined) {
|
|
2865
|
+
const _errs70 = errors;
|
|
2866
|
+
if (typeof data27.documentSandbox !== "string") {
|
|
2841
2867
|
validate12.errors = [{ instancePath: instancePath + "/entryPoints/" + i2 + "/documentSandbox", schemaPath: "#/properties/entryPoints/items/properties/documentSandbox/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
2842
2868
|
return false;
|
|
2843
2869
|
}
|
|
2844
|
-
var valid7 =
|
|
2870
|
+
var valid7 = _errs70 === errors;
|
|
2845
2871
|
}
|
|
2846
2872
|
else {
|
|
2847
2873
|
var valid7 = true;
|
|
2848
2874
|
}
|
|
2849
2875
|
if (valid7) {
|
|
2850
|
-
if (
|
|
2851
|
-
const
|
|
2852
|
-
if (typeof
|
|
2876
|
+
if (data27.hostDomain !== undefined) {
|
|
2877
|
+
const _errs72 = errors;
|
|
2878
|
+
if (typeof data27.hostDomain !== "string") {
|
|
2853
2879
|
validate12.errors = [{ instancePath: instancePath + "/entryPoints/" + i2 + "/hostDomain", schemaPath: "#/properties/entryPoints/items/properties/hostDomain/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
2854
2880
|
return false;
|
|
2855
2881
|
}
|
|
2856
|
-
var valid7 =
|
|
2882
|
+
var valid7 = _errs72 === errors;
|
|
2857
2883
|
}
|
|
2858
2884
|
else {
|
|
2859
2885
|
var valid7 = true;
|
|
2860
2886
|
}
|
|
2861
2887
|
if (valid7) {
|
|
2862
|
-
if (
|
|
2863
|
-
let
|
|
2864
|
-
const
|
|
2865
|
-
if (errors ===
|
|
2866
|
-
if (Array.isArray(
|
|
2888
|
+
if (data27.commands !== undefined) {
|
|
2889
|
+
let data34 = data27.commands;
|
|
2890
|
+
const _errs74 = errors;
|
|
2891
|
+
if (errors === _errs74) {
|
|
2892
|
+
if (Array.isArray(data34)) {
|
|
2867
2893
|
var valid8 = true;
|
|
2868
|
-
const len3 =
|
|
2894
|
+
const len3 = data34.length;
|
|
2869
2895
|
for (let i3 = 0; i3 < len3; i3++) {
|
|
2870
|
-
let
|
|
2871
|
-
const
|
|
2872
|
-
if (errors ===
|
|
2873
|
-
if (
|
|
2896
|
+
let data35 = data34[i3];
|
|
2897
|
+
const _errs76 = errors;
|
|
2898
|
+
if (errors === _errs76) {
|
|
2899
|
+
if (data35 && typeof data35 == "object" && !Array.isArray(data35)) {
|
|
2874
2900
|
let missing4;
|
|
2875
|
-
if ((
|
|
2901
|
+
if ((data35.name === undefined) && (missing4 = "name")) {
|
|
2876
2902
|
validate12.errors = [{ instancePath: instancePath + "/entryPoints/" + i2 + "/commands/" + i3, schemaPath: "#/properties/entryPoints/items/properties/commands/items/required", keyword: "required", params: { missingProperty: missing4 }, message: "must have required property '" + missing4 + "'" }];
|
|
2877
2903
|
return false;
|
|
2878
2904
|
}
|
|
2879
2905
|
else {
|
|
2880
|
-
const
|
|
2881
|
-
for (const key4 in
|
|
2906
|
+
const _errs78 = errors;
|
|
2907
|
+
for (const key4 in data35) {
|
|
2882
2908
|
if (!(((key4 === "name") || (key4 === "supportedMimeTypes")) || (key4 === "discoverable"))) {
|
|
2883
2909
|
validate12.errors = [{ instancePath: instancePath + "/entryPoints/" + i2 + "/commands/" + i3, schemaPath: "#/properties/entryPoints/items/properties/commands/items/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key4 }, message: "must NOT have additional properties" }];
|
|
2884
2910
|
return false;
|
|
2885
2911
|
break;
|
|
2886
2912
|
}
|
|
2887
2913
|
}
|
|
2888
|
-
if (
|
|
2889
|
-
if (
|
|
2890
|
-
const
|
|
2891
|
-
if (typeof
|
|
2914
|
+
if (_errs78 === errors) {
|
|
2915
|
+
if (data35.name !== undefined) {
|
|
2916
|
+
const _errs79 = errors;
|
|
2917
|
+
if (typeof data35.name !== "string") {
|
|
2892
2918
|
validate12.errors = [{ instancePath: instancePath + "/entryPoints/" + i2 + "/commands/" + i3 + "/name", schemaPath: "#/properties/entryPoints/items/properties/commands/items/properties/name/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
2893
2919
|
return false;
|
|
2894
2920
|
}
|
|
2895
|
-
var valid9 =
|
|
2921
|
+
var valid9 = _errs79 === errors;
|
|
2896
2922
|
}
|
|
2897
2923
|
else {
|
|
2898
2924
|
var valid9 = true;
|
|
2899
2925
|
}
|
|
2900
2926
|
if (valid9) {
|
|
2901
|
-
if (
|
|
2902
|
-
let
|
|
2903
|
-
const
|
|
2904
|
-
if (errors ===
|
|
2905
|
-
if (Array.isArray(
|
|
2927
|
+
if (data35.supportedMimeTypes !== undefined) {
|
|
2928
|
+
let data37 = data35.supportedMimeTypes;
|
|
2929
|
+
const _errs81 = errors;
|
|
2930
|
+
if (errors === _errs81) {
|
|
2931
|
+
if (Array.isArray(data37)) {
|
|
2906
2932
|
var valid10 = true;
|
|
2907
|
-
const len4 =
|
|
2933
|
+
const len4 = data37.length;
|
|
2908
2934
|
for (let i4 = 0; i4 < len4; i4++) {
|
|
2909
|
-
const
|
|
2910
|
-
if (typeof
|
|
2935
|
+
const _errs83 = errors;
|
|
2936
|
+
if (typeof data37[i4] !== "string") {
|
|
2911
2937
|
validate12.errors = [{ instancePath: instancePath + "/entryPoints/" + i2 + "/commands/" + i3 + "/supportedMimeTypes/" + i4, schemaPath: "#/properties/entryPoints/items/properties/commands/items/properties/supportedMimeTypes/items/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
2912
2938
|
return false;
|
|
2913
2939
|
}
|
|
2914
|
-
var valid10 =
|
|
2940
|
+
var valid10 = _errs83 === errors;
|
|
2915
2941
|
if (!valid10) {
|
|
2916
2942
|
break;
|
|
2917
2943
|
}
|
|
@@ -2922,19 +2948,19 @@ function validate12(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
2922
2948
|
return false;
|
|
2923
2949
|
}
|
|
2924
2950
|
}
|
|
2925
|
-
var valid9 =
|
|
2951
|
+
var valid9 = _errs81 === errors;
|
|
2926
2952
|
}
|
|
2927
2953
|
else {
|
|
2928
2954
|
var valid9 = true;
|
|
2929
2955
|
}
|
|
2930
2956
|
if (valid9) {
|
|
2931
|
-
if (
|
|
2932
|
-
const
|
|
2933
|
-
if (typeof
|
|
2957
|
+
if (data35.discoverable !== undefined) {
|
|
2958
|
+
const _errs85 = errors;
|
|
2959
|
+
if (typeof data35.discoverable !== "boolean") {
|
|
2934
2960
|
validate12.errors = [{ instancePath: instancePath + "/entryPoints/" + i2 + "/commands/" + i3 + "/discoverable", schemaPath: "#/properties/entryPoints/items/properties/commands/items/properties/discoverable/type", keyword: "type", params: { type: "boolean" }, message: "must be boolean" }];
|
|
2935
2961
|
return false;
|
|
2936
2962
|
}
|
|
2937
|
-
var valid9 =
|
|
2963
|
+
var valid9 = _errs85 === errors;
|
|
2938
2964
|
}
|
|
2939
2965
|
else {
|
|
2940
2966
|
var valid9 = true;
|
|
@@ -2949,7 +2975,7 @@ function validate12(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
2949
2975
|
return false;
|
|
2950
2976
|
}
|
|
2951
2977
|
}
|
|
2952
|
-
var valid8 =
|
|
2978
|
+
var valid8 = _errs76 === errors;
|
|
2953
2979
|
if (!valid8) {
|
|
2954
2980
|
break;
|
|
2955
2981
|
}
|
|
@@ -2960,39 +2986,39 @@ function validate12(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
2960
2986
|
return false;
|
|
2961
2987
|
}
|
|
2962
2988
|
}
|
|
2963
|
-
var valid7 =
|
|
2989
|
+
var valid7 = _errs74 === errors;
|
|
2964
2990
|
}
|
|
2965
2991
|
else {
|
|
2966
2992
|
var valid7 = true;
|
|
2967
2993
|
}
|
|
2968
2994
|
if (valid7) {
|
|
2969
|
-
if (
|
|
2970
|
-
let
|
|
2971
|
-
const
|
|
2972
|
-
if (errors ===
|
|
2973
|
-
if (
|
|
2974
|
-
const
|
|
2975
|
-
for (const key5 in
|
|
2976
|
-
if (!(((((key5 === "sandbox") || (key5 === "oauth")) || (key5 === "microphone")) || (key5 === "camera")) || (key5 === "clipboard"))) {
|
|
2995
|
+
if (data27.permissions !== undefined) {
|
|
2996
|
+
let data40 = data27.permissions;
|
|
2997
|
+
const _errs87 = errors;
|
|
2998
|
+
if (errors === _errs87) {
|
|
2999
|
+
if (data40 && typeof data40 == "object" && !Array.isArray(data40)) {
|
|
3000
|
+
const _errs89 = errors;
|
|
3001
|
+
for (const key5 in data40) {
|
|
3002
|
+
if (!((((((key5 === "sandbox") || (key5 === "oauth")) || (key5 === "microphone")) || (key5 === "camera")) || (key5 === "clipboard")) || (key5 === "payment"))) {
|
|
2977
3003
|
validate12.errors = [{ instancePath: instancePath + "/entryPoints/" + i2 + "/permissions", schemaPath: "#/properties/entryPoints/items/properties/permissions/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key5 }, message: "must NOT have additional properties" }];
|
|
2978
3004
|
return false;
|
|
2979
3005
|
break;
|
|
2980
3006
|
}
|
|
2981
3007
|
}
|
|
2982
|
-
if (
|
|
2983
|
-
if (
|
|
2984
|
-
let
|
|
2985
|
-
const
|
|
2986
|
-
if (errors ===
|
|
2987
|
-
if (Array.isArray(
|
|
3008
|
+
if (_errs89 === errors) {
|
|
3009
|
+
if (data40.sandbox !== undefined) {
|
|
3010
|
+
let data41 = data40.sandbox;
|
|
3011
|
+
const _errs90 = errors;
|
|
3012
|
+
if (errors === _errs90) {
|
|
3013
|
+
if (Array.isArray(data41)) {
|
|
2988
3014
|
var valid12 = true;
|
|
2989
|
-
const len5 =
|
|
3015
|
+
const len5 = data41.length;
|
|
2990
3016
|
for (let i5 = 0; i5 < len5; i5++) {
|
|
2991
|
-
let
|
|
2992
|
-
const
|
|
2993
|
-
if (errors ===
|
|
2994
|
-
if (typeof
|
|
2995
|
-
if (!pattern4.test(
|
|
3017
|
+
let data42 = data41[i5];
|
|
3018
|
+
const _errs92 = errors;
|
|
3019
|
+
if (errors === _errs92) {
|
|
3020
|
+
if (typeof data42 === "string") {
|
|
3021
|
+
if (!pattern4.test(data42)) {
|
|
2996
3022
|
validate12.errors = [{ instancePath: instancePath + "/entryPoints/" + i2 + "/permissions/sandbox/" + i5, 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|allow-forms)$" }, message: "must match pattern \"" + "^(allow-popups|allow-presentation|allow-downloads|allow-popups-to-escape-sandbox|allow-forms)$" + "\"" }];
|
|
2997
3023
|
return false;
|
|
2998
3024
|
}
|
|
@@ -3002,7 +3028,7 @@ function validate12(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
3002
3028
|
return false;
|
|
3003
3029
|
}
|
|
3004
3030
|
}
|
|
3005
|
-
var valid12 =
|
|
3031
|
+
var valid12 = _errs92 === errors;
|
|
3006
3032
|
if (!valid12) {
|
|
3007
3033
|
break;
|
|
3008
3034
|
}
|
|
@@ -3013,26 +3039,26 @@ function validate12(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
3013
3039
|
return false;
|
|
3014
3040
|
}
|
|
3015
3041
|
}
|
|
3016
|
-
var valid11 =
|
|
3042
|
+
var valid11 = _errs90 === errors;
|
|
3017
3043
|
}
|
|
3018
3044
|
else {
|
|
3019
3045
|
var valid11 = true;
|
|
3020
3046
|
}
|
|
3021
3047
|
if (valid11) {
|
|
3022
|
-
if (
|
|
3023
|
-
let
|
|
3024
|
-
const
|
|
3025
|
-
if (errors ===
|
|
3026
|
-
if (Array.isArray(
|
|
3048
|
+
if (data40.oauth !== undefined) {
|
|
3049
|
+
let data43 = data40.oauth;
|
|
3050
|
+
const _errs94 = errors;
|
|
3051
|
+
if (errors === _errs94) {
|
|
3052
|
+
if (Array.isArray(data43)) {
|
|
3027
3053
|
var valid13 = true;
|
|
3028
|
-
const len6 =
|
|
3054
|
+
const len6 = data43.length;
|
|
3029
3055
|
for (let i6 = 0; i6 < len6; i6++) {
|
|
3030
|
-
const
|
|
3031
|
-
if (typeof
|
|
3056
|
+
const _errs96 = errors;
|
|
3057
|
+
if (typeof data43[i6] !== "string") {
|
|
3032
3058
|
validate12.errors = [{ instancePath: instancePath + "/entryPoints/" + i2 + "/permissions/oauth/" + i6, schemaPath: "#/properties/entryPoints/items/properties/permissions/properties/oauth/items/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
3033
3059
|
return false;
|
|
3034
3060
|
}
|
|
3035
|
-
var valid13 =
|
|
3061
|
+
var valid13 = _errs96 === errors;
|
|
3036
3062
|
if (!valid13) {
|
|
3037
3063
|
break;
|
|
3038
3064
|
}
|
|
@@ -3043,49 +3069,49 @@ function validate12(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
3043
3069
|
return false;
|
|
3044
3070
|
}
|
|
3045
3071
|
}
|
|
3046
|
-
var valid11 =
|
|
3072
|
+
var valid11 = _errs94 === errors;
|
|
3047
3073
|
}
|
|
3048
3074
|
else {
|
|
3049
3075
|
var valid11 = true;
|
|
3050
3076
|
}
|
|
3051
3077
|
if (valid11) {
|
|
3052
|
-
if (
|
|
3053
|
-
const
|
|
3054
|
-
if (typeof
|
|
3078
|
+
if (data40.microphone !== undefined) {
|
|
3079
|
+
const _errs98 = errors;
|
|
3080
|
+
if (typeof data40.microphone !== "string") {
|
|
3055
3081
|
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" }];
|
|
3056
3082
|
return false;
|
|
3057
3083
|
}
|
|
3058
|
-
var valid11 =
|
|
3084
|
+
var valid11 = _errs98 === errors;
|
|
3059
3085
|
}
|
|
3060
3086
|
else {
|
|
3061
3087
|
var valid11 = true;
|
|
3062
3088
|
}
|
|
3063
3089
|
if (valid11) {
|
|
3064
|
-
if (
|
|
3065
|
-
const
|
|
3066
|
-
if (typeof
|
|
3090
|
+
if (data40.camera !== undefined) {
|
|
3091
|
+
const _errs100 = errors;
|
|
3092
|
+
if (typeof data40.camera !== "string") {
|
|
3067
3093
|
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" }];
|
|
3068
3094
|
return false;
|
|
3069
3095
|
}
|
|
3070
|
-
var valid11 =
|
|
3096
|
+
var valid11 = _errs100 === errors;
|
|
3071
3097
|
}
|
|
3072
3098
|
else {
|
|
3073
3099
|
var valid11 = true;
|
|
3074
3100
|
}
|
|
3075
3101
|
if (valid11) {
|
|
3076
|
-
if (
|
|
3077
|
-
let
|
|
3078
|
-
const
|
|
3079
|
-
if (errors ===
|
|
3080
|
-
if (Array.isArray(
|
|
3102
|
+
if (data40.clipboard !== undefined) {
|
|
3103
|
+
let data47 = data40.clipboard;
|
|
3104
|
+
const _errs102 = errors;
|
|
3105
|
+
if (errors === _errs102) {
|
|
3106
|
+
if (Array.isArray(data47)) {
|
|
3081
3107
|
var valid14 = true;
|
|
3082
|
-
const len7 =
|
|
3108
|
+
const len7 = data47.length;
|
|
3083
3109
|
for (let i7 = 0; i7 < len7; i7++) {
|
|
3084
|
-
let
|
|
3085
|
-
const
|
|
3086
|
-
if (errors ===
|
|
3087
|
-
if (typeof
|
|
3088
|
-
if (!pattern16.test(
|
|
3110
|
+
let data48 = data47[i7];
|
|
3111
|
+
const _errs104 = errors;
|
|
3112
|
+
if (errors === _errs104) {
|
|
3113
|
+
if (typeof data48 === "string") {
|
|
3114
|
+
if (!pattern16.test(data48)) {
|
|
3089
3115
|
validate12.errors = [{ instancePath: instancePath + "/entryPoints/" + i2 + "/permissions/clipboard/" + i7, 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)$" + "\"" }];
|
|
3090
3116
|
return false;
|
|
3091
3117
|
}
|
|
@@ -3095,7 +3121,7 @@ function validate12(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
3095
3121
|
return false;
|
|
3096
3122
|
}
|
|
3097
3123
|
}
|
|
3098
|
-
var valid14 =
|
|
3124
|
+
var valid14 = _errs104 === errors;
|
|
3099
3125
|
if (!valid14) {
|
|
3100
3126
|
break;
|
|
3101
3127
|
}
|
|
@@ -3106,11 +3132,24 @@ function validate12(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
3106
3132
|
return false;
|
|
3107
3133
|
}
|
|
3108
3134
|
}
|
|
3109
|
-
var valid11 =
|
|
3135
|
+
var valid11 = _errs102 === errors;
|
|
3110
3136
|
}
|
|
3111
3137
|
else {
|
|
3112
3138
|
var valid11 = true;
|
|
3113
3139
|
}
|
|
3140
|
+
if (valid11) {
|
|
3141
|
+
if (data40.payment !== undefined) {
|
|
3142
|
+
const _errs106 = errors;
|
|
3143
|
+
if (typeof data40.payment !== "string") {
|
|
3144
|
+
validate12.errors = [{ instancePath: instancePath + "/entryPoints/" + i2 + "/permissions/payment", schemaPath: "#/properties/entryPoints/items/properties/permissions/properties/payment/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
3145
|
+
return false;
|
|
3146
|
+
}
|
|
3147
|
+
var valid11 = _errs106 === errors;
|
|
3148
|
+
}
|
|
3149
|
+
else {
|
|
3150
|
+
var valid11 = true;
|
|
3151
|
+
}
|
|
3152
|
+
}
|
|
3114
3153
|
}
|
|
3115
3154
|
}
|
|
3116
3155
|
}
|
|
@@ -3122,53 +3161,53 @@ function validate12(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
3122
3161
|
return false;
|
|
3123
3162
|
}
|
|
3124
3163
|
}
|
|
3125
|
-
var valid7 =
|
|
3164
|
+
var valid7 = _errs87 === errors;
|
|
3126
3165
|
}
|
|
3127
3166
|
else {
|
|
3128
3167
|
var valid7 = true;
|
|
3129
3168
|
}
|
|
3130
3169
|
if (valid7) {
|
|
3131
|
-
if (
|
|
3132
|
-
let
|
|
3133
|
-
const
|
|
3134
|
-
if (errors ===
|
|
3135
|
-
if (
|
|
3170
|
+
if (data27.defaultSize !== undefined) {
|
|
3171
|
+
let data50 = data27.defaultSize;
|
|
3172
|
+
const _errs108 = errors;
|
|
3173
|
+
if (errors === _errs108) {
|
|
3174
|
+
if (data50 && typeof data50 == "object" && !Array.isArray(data50)) {
|
|
3136
3175
|
let missing5;
|
|
3137
|
-
if (((
|
|
3176
|
+
if (((data50.width === undefined) && (missing5 = "width")) || ((data50.height === undefined) && (missing5 = "height"))) {
|
|
3138
3177
|
validate12.errors = [{ instancePath: instancePath + "/entryPoints/" + i2 + "/defaultSize", schemaPath: "#/properties/entryPoints/items/properties/defaultSize/required", keyword: "required", params: { missingProperty: missing5 }, message: "must have required property '" + missing5 + "'" }];
|
|
3139
3178
|
return false;
|
|
3140
3179
|
}
|
|
3141
3180
|
else {
|
|
3142
|
-
const
|
|
3143
|
-
for (const key6 in
|
|
3181
|
+
const _errs110 = errors;
|
|
3182
|
+
for (const key6 in data50) {
|
|
3144
3183
|
if (!((key6 === "width") || (key6 === "height"))) {
|
|
3145
3184
|
validate12.errors = [{ instancePath: instancePath + "/entryPoints/" + i2 + "/defaultSize", schemaPath: "#/properties/entryPoints/items/properties/defaultSize/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key6 }, message: "must NOT have additional properties" }];
|
|
3146
3185
|
return false;
|
|
3147
3186
|
break;
|
|
3148
3187
|
}
|
|
3149
3188
|
}
|
|
3150
|
-
if (
|
|
3151
|
-
if (
|
|
3152
|
-
let
|
|
3153
|
-
const
|
|
3154
|
-
if (!((typeof
|
|
3189
|
+
if (_errs110 === errors) {
|
|
3190
|
+
if (data50.width !== undefined) {
|
|
3191
|
+
let data51 = data50.width;
|
|
3192
|
+
const _errs111 = errors;
|
|
3193
|
+
if (!((typeof data51 == "number") && (isFinite(data51)))) {
|
|
3155
3194
|
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" }];
|
|
3156
3195
|
return false;
|
|
3157
3196
|
}
|
|
3158
|
-
var valid15 =
|
|
3197
|
+
var valid15 = _errs111 === errors;
|
|
3159
3198
|
}
|
|
3160
3199
|
else {
|
|
3161
3200
|
var valid15 = true;
|
|
3162
3201
|
}
|
|
3163
3202
|
if (valid15) {
|
|
3164
|
-
if (
|
|
3165
|
-
let
|
|
3166
|
-
const
|
|
3167
|
-
if (!((typeof
|
|
3203
|
+
if (data50.height !== undefined) {
|
|
3204
|
+
let data52 = data50.height;
|
|
3205
|
+
const _errs113 = errors;
|
|
3206
|
+
if (!((typeof data52 == "number") && (isFinite(data52)))) {
|
|
3168
3207
|
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" }];
|
|
3169
3208
|
return false;
|
|
3170
3209
|
}
|
|
3171
|
-
var valid15 =
|
|
3210
|
+
var valid15 = _errs113 === errors;
|
|
3172
3211
|
}
|
|
3173
3212
|
else {
|
|
3174
3213
|
var valid15 = true;
|
|
@@ -3182,19 +3221,19 @@ function validate12(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
3182
3221
|
return false;
|
|
3183
3222
|
}
|
|
3184
3223
|
}
|
|
3185
|
-
var valid7 =
|
|
3224
|
+
var valid7 = _errs108 === errors;
|
|
3186
3225
|
}
|
|
3187
3226
|
else {
|
|
3188
3227
|
var valid7 = true;
|
|
3189
3228
|
}
|
|
3190
3229
|
if (valid7) {
|
|
3191
|
-
if (
|
|
3192
|
-
const
|
|
3193
|
-
if (typeof
|
|
3230
|
+
if (data27.discoverable !== undefined) {
|
|
3231
|
+
const _errs115 = errors;
|
|
3232
|
+
if (typeof data27.discoverable !== "boolean") {
|
|
3194
3233
|
validate12.errors = [{ instancePath: instancePath + "/entryPoints/" + i2 + "/discoverable", schemaPath: "#/properties/entryPoints/items/properties/discoverable/type", keyword: "type", params: { type: "boolean" }, message: "must be boolean" }];
|
|
3195
3234
|
return false;
|
|
3196
3235
|
}
|
|
3197
|
-
var valid7 =
|
|
3236
|
+
var valid7 = _errs115 === errors;
|
|
3198
3237
|
}
|
|
3199
3238
|
else {
|
|
3200
3239
|
var valid7 = true;
|
|
@@ -3216,7 +3255,7 @@ function validate12(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
3216
3255
|
return false;
|
|
3217
3256
|
}
|
|
3218
3257
|
}
|
|
3219
|
-
var valid6 =
|
|
3258
|
+
var valid6 = _errs59 === errors;
|
|
3220
3259
|
if (!valid6) {
|
|
3221
3260
|
break;
|
|
3222
3261
|
}
|
|
@@ -3227,7 +3266,7 @@ function validate12(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
3227
3266
|
return false;
|
|
3228
3267
|
}
|
|
3229
3268
|
}
|
|
3230
|
-
var valid0 =
|
|
3269
|
+
var valid0 = _errs57 === errors;
|
|
3231
3270
|
}
|
|
3232
3271
|
else {
|
|
3233
3272
|
var valid0 = true;
|