@adobe/ccweb-add-on-manifest 3.7.0 → 3.9.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" } }, "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" } }, "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 (!((((((key2 === "messaging") || (key2 === "expressPrint")) || (key2 === "toastNotifications")) || (key2 === "addOnLifecycle")) || (key2 === "tiktokcml")) || (key2 === "formSubmission"))) {
|
|
2626
|
+
if (!((((((((key2 === "messaging") || (key2 === "expressPrint")) || (key2 === "toastNotifications")) || (key2 === "addOnLifecycle")) || (key2 === "tiktokcml")) || (key2 === "formSubmission")) || (key2 === "epsonPrint")) || (key2 === "allowPayment"))) {
|
|
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;
|
|
@@ -2701,6 +2701,32 @@ function validate12(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
2701
2701
|
else {
|
|
2702
2702
|
var valid5 = true;
|
|
2703
2703
|
}
|
|
2704
|
+
if (valid5) {
|
|
2705
|
+
if (data16.epsonPrint !== undefined) {
|
|
2706
|
+
const _errs51 = errors;
|
|
2707
|
+
if (typeof data16.epsonPrint !== "boolean") {
|
|
2708
|
+
validate12.errors = [{ instancePath: instancePath + "/requirements/trustedPartnerApis/epsonPrint", schemaPath: "#/properties/requirements/properties/trustedPartnerApis/properties/epsonPrint/type", keyword: "type", params: { type: "boolean" }, message: "must be boolean" }];
|
|
2709
|
+
return false;
|
|
2710
|
+
}
|
|
2711
|
+
var valid5 = _errs51 === errors;
|
|
2712
|
+
}
|
|
2713
|
+
else {
|
|
2714
|
+
var valid5 = true;
|
|
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
|
+
}
|
|
2729
|
+
}
|
|
2704
2730
|
}
|
|
2705
2731
|
}
|
|
2706
2732
|
}
|
|
@@ -2739,38 +2765,38 @@ function validate12(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
2739
2765
|
}
|
|
2740
2766
|
if (valid0) {
|
|
2741
2767
|
if (data.entryPoints !== undefined) {
|
|
2742
|
-
let
|
|
2743
|
-
const
|
|
2744
|
-
if (errors ===
|
|
2745
|
-
if (Array.isArray(
|
|
2768
|
+
let data25 = data.entryPoints;
|
|
2769
|
+
const _errs55 = errors;
|
|
2770
|
+
if (errors === _errs55) {
|
|
2771
|
+
if (Array.isArray(data25)) {
|
|
2746
2772
|
var valid6 = true;
|
|
2747
|
-
const len2 =
|
|
2773
|
+
const len2 = data25.length;
|
|
2748
2774
|
for (let i2 = 0; i2 < len2; i2++) {
|
|
2749
|
-
let
|
|
2750
|
-
const
|
|
2751
|
-
if (errors ===
|
|
2752
|
-
if (
|
|
2775
|
+
let data26 = data25[i2];
|
|
2776
|
+
const _errs57 = errors;
|
|
2777
|
+
if (errors === _errs57) {
|
|
2778
|
+
if (data26 && typeof data26 == "object" && !Array.isArray(data26)) {
|
|
2753
2779
|
let missing3;
|
|
2754
|
-
if ((((
|
|
2780
|
+
if ((((data26.type === undefined) && (missing3 = "type")) || ((data26.id === undefined) && (missing3 = "id"))) || ((data26.main === undefined) && (missing3 = "main"))) {
|
|
2755
2781
|
validate12.errors = [{ instancePath: instancePath + "/entryPoints/" + i2, schemaPath: "#/properties/entryPoints/items/required", keyword: "required", params: { missingProperty: missing3 }, message: "must have required property '" + missing3 + "'" }];
|
|
2756
2782
|
return false;
|
|
2757
2783
|
}
|
|
2758
2784
|
else {
|
|
2759
|
-
const
|
|
2760
|
-
for (const key3 in
|
|
2785
|
+
const _errs59 = errors;
|
|
2786
|
+
for (const key3 in data26) {
|
|
2761
2787
|
if (!(func2.call(schema13.properties.entryPoints.items.properties, key3))) {
|
|
2762
2788
|
validate12.errors = [{ instancePath: instancePath + "/entryPoints/" + i2, schemaPath: "#/properties/entryPoints/items/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key3 }, message: "must NOT have additional properties" }];
|
|
2763
2789
|
return false;
|
|
2764
2790
|
break;
|
|
2765
2791
|
}
|
|
2766
2792
|
}
|
|
2767
|
-
if (
|
|
2768
|
-
if (
|
|
2769
|
-
let
|
|
2770
|
-
const
|
|
2771
|
-
if (errors ===
|
|
2772
|
-
if (typeof
|
|
2773
|
-
if (!pattern3.test(
|
|
2793
|
+
if (_errs59 === errors) {
|
|
2794
|
+
if (data26.type !== undefined) {
|
|
2795
|
+
let data27 = data26.type;
|
|
2796
|
+
const _errs60 = errors;
|
|
2797
|
+
if (errors === _errs60) {
|
|
2798
|
+
if (typeof data27 === "string") {
|
|
2799
|
+
if (!pattern3.test(data27)) {
|
|
2774
2800
|
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)$" + "\"" }];
|
|
2775
2801
|
return false;
|
|
2776
2802
|
}
|
|
@@ -2780,125 +2806,125 @@ function validate12(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
2780
2806
|
return false;
|
|
2781
2807
|
}
|
|
2782
2808
|
}
|
|
2783
|
-
var valid7 =
|
|
2809
|
+
var valid7 = _errs60 === errors;
|
|
2784
2810
|
}
|
|
2785
2811
|
else {
|
|
2786
2812
|
var valid7 = true;
|
|
2787
2813
|
}
|
|
2788
2814
|
if (valid7) {
|
|
2789
|
-
if (
|
|
2790
|
-
const
|
|
2791
|
-
if (typeof
|
|
2815
|
+
if (data26.id !== undefined) {
|
|
2816
|
+
const _errs62 = errors;
|
|
2817
|
+
if (typeof data26.id !== "string") {
|
|
2792
2818
|
validate12.errors = [{ instancePath: instancePath + "/entryPoints/" + i2 + "/id", schemaPath: "#/properties/entryPoints/items/properties/id/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
2793
2819
|
return false;
|
|
2794
2820
|
}
|
|
2795
|
-
var valid7 =
|
|
2821
|
+
var valid7 = _errs62 === errors;
|
|
2796
2822
|
}
|
|
2797
2823
|
else {
|
|
2798
2824
|
var valid7 = true;
|
|
2799
2825
|
}
|
|
2800
2826
|
if (valid7) {
|
|
2801
|
-
if (
|
|
2802
|
-
const
|
|
2803
|
-
if (typeof
|
|
2827
|
+
if (data26.main !== undefined) {
|
|
2828
|
+
const _errs64 = errors;
|
|
2829
|
+
if (typeof data26.main !== "string") {
|
|
2804
2830
|
validate12.errors = [{ instancePath: instancePath + "/entryPoints/" + i2 + "/main", schemaPath: "#/properties/entryPoints/items/properties/main/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
2805
2831
|
return false;
|
|
2806
2832
|
}
|
|
2807
|
-
var valid7 =
|
|
2833
|
+
var valid7 = _errs64 === errors;
|
|
2808
2834
|
}
|
|
2809
2835
|
else {
|
|
2810
2836
|
var valid7 = true;
|
|
2811
2837
|
}
|
|
2812
2838
|
if (valid7) {
|
|
2813
|
-
if (
|
|
2814
|
-
const
|
|
2815
|
-
if (typeof
|
|
2839
|
+
if (data26.script !== undefined) {
|
|
2840
|
+
const _errs66 = errors;
|
|
2841
|
+
if (typeof data26.script !== "string") {
|
|
2816
2842
|
validate12.errors = [{ instancePath: instancePath + "/entryPoints/" + i2 + "/script", schemaPath: "#/properties/entryPoints/items/properties/script/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
2817
2843
|
return false;
|
|
2818
2844
|
}
|
|
2819
|
-
var valid7 =
|
|
2845
|
+
var valid7 = _errs66 === errors;
|
|
2820
2846
|
}
|
|
2821
2847
|
else {
|
|
2822
2848
|
var valid7 = true;
|
|
2823
2849
|
}
|
|
2824
2850
|
if (valid7) {
|
|
2825
|
-
if (
|
|
2826
|
-
const
|
|
2827
|
-
if (typeof
|
|
2851
|
+
if (data26.documentSandbox !== undefined) {
|
|
2852
|
+
const _errs68 = errors;
|
|
2853
|
+
if (typeof data26.documentSandbox !== "string") {
|
|
2828
2854
|
validate12.errors = [{ instancePath: instancePath + "/entryPoints/" + i2 + "/documentSandbox", schemaPath: "#/properties/entryPoints/items/properties/documentSandbox/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
2829
2855
|
return false;
|
|
2830
2856
|
}
|
|
2831
|
-
var valid7 =
|
|
2857
|
+
var valid7 = _errs68 === errors;
|
|
2832
2858
|
}
|
|
2833
2859
|
else {
|
|
2834
2860
|
var valid7 = true;
|
|
2835
2861
|
}
|
|
2836
2862
|
if (valid7) {
|
|
2837
|
-
if (
|
|
2838
|
-
const
|
|
2839
|
-
if (typeof
|
|
2863
|
+
if (data26.hostDomain !== undefined) {
|
|
2864
|
+
const _errs70 = errors;
|
|
2865
|
+
if (typeof data26.hostDomain !== "string") {
|
|
2840
2866
|
validate12.errors = [{ instancePath: instancePath + "/entryPoints/" + i2 + "/hostDomain", schemaPath: "#/properties/entryPoints/items/properties/hostDomain/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
2841
2867
|
return false;
|
|
2842
2868
|
}
|
|
2843
|
-
var valid7 =
|
|
2869
|
+
var valid7 = _errs70 === errors;
|
|
2844
2870
|
}
|
|
2845
2871
|
else {
|
|
2846
2872
|
var valid7 = true;
|
|
2847
2873
|
}
|
|
2848
2874
|
if (valid7) {
|
|
2849
|
-
if (
|
|
2850
|
-
let
|
|
2851
|
-
const
|
|
2852
|
-
if (errors ===
|
|
2853
|
-
if (Array.isArray(
|
|
2875
|
+
if (data26.commands !== undefined) {
|
|
2876
|
+
let data33 = data26.commands;
|
|
2877
|
+
const _errs72 = errors;
|
|
2878
|
+
if (errors === _errs72) {
|
|
2879
|
+
if (Array.isArray(data33)) {
|
|
2854
2880
|
var valid8 = true;
|
|
2855
|
-
const len3 =
|
|
2881
|
+
const len3 = data33.length;
|
|
2856
2882
|
for (let i3 = 0; i3 < len3; i3++) {
|
|
2857
|
-
let
|
|
2858
|
-
const
|
|
2859
|
-
if (errors ===
|
|
2860
|
-
if (
|
|
2883
|
+
let data34 = data33[i3];
|
|
2884
|
+
const _errs74 = errors;
|
|
2885
|
+
if (errors === _errs74) {
|
|
2886
|
+
if (data34 && typeof data34 == "object" && !Array.isArray(data34)) {
|
|
2861
2887
|
let missing4;
|
|
2862
|
-
if ((
|
|
2888
|
+
if ((data34.name === undefined) && (missing4 = "name")) {
|
|
2863
2889
|
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 + "'" }];
|
|
2864
2890
|
return false;
|
|
2865
2891
|
}
|
|
2866
2892
|
else {
|
|
2867
|
-
const
|
|
2868
|
-
for (const key4 in
|
|
2893
|
+
const _errs76 = errors;
|
|
2894
|
+
for (const key4 in data34) {
|
|
2869
2895
|
if (!(((key4 === "name") || (key4 === "supportedMimeTypes")) || (key4 === "discoverable"))) {
|
|
2870
2896
|
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" }];
|
|
2871
2897
|
return false;
|
|
2872
2898
|
break;
|
|
2873
2899
|
}
|
|
2874
2900
|
}
|
|
2875
|
-
if (
|
|
2876
|
-
if (
|
|
2877
|
-
const
|
|
2878
|
-
if (typeof
|
|
2901
|
+
if (_errs76 === errors) {
|
|
2902
|
+
if (data34.name !== undefined) {
|
|
2903
|
+
const _errs77 = errors;
|
|
2904
|
+
if (typeof data34.name !== "string") {
|
|
2879
2905
|
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" }];
|
|
2880
2906
|
return false;
|
|
2881
2907
|
}
|
|
2882
|
-
var valid9 =
|
|
2908
|
+
var valid9 = _errs77 === errors;
|
|
2883
2909
|
}
|
|
2884
2910
|
else {
|
|
2885
2911
|
var valid9 = true;
|
|
2886
2912
|
}
|
|
2887
2913
|
if (valid9) {
|
|
2888
|
-
if (
|
|
2889
|
-
let
|
|
2890
|
-
const
|
|
2891
|
-
if (errors ===
|
|
2892
|
-
if (Array.isArray(
|
|
2914
|
+
if (data34.supportedMimeTypes !== undefined) {
|
|
2915
|
+
let data36 = data34.supportedMimeTypes;
|
|
2916
|
+
const _errs79 = errors;
|
|
2917
|
+
if (errors === _errs79) {
|
|
2918
|
+
if (Array.isArray(data36)) {
|
|
2893
2919
|
var valid10 = true;
|
|
2894
|
-
const len4 =
|
|
2920
|
+
const len4 = data36.length;
|
|
2895
2921
|
for (let i4 = 0; i4 < len4; i4++) {
|
|
2896
|
-
const
|
|
2897
|
-
if (typeof
|
|
2922
|
+
const _errs81 = errors;
|
|
2923
|
+
if (typeof data36[i4] !== "string") {
|
|
2898
2924
|
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" }];
|
|
2899
2925
|
return false;
|
|
2900
2926
|
}
|
|
2901
|
-
var valid10 =
|
|
2927
|
+
var valid10 = _errs81 === errors;
|
|
2902
2928
|
if (!valid10) {
|
|
2903
2929
|
break;
|
|
2904
2930
|
}
|
|
@@ -2909,19 +2935,19 @@ function validate12(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
2909
2935
|
return false;
|
|
2910
2936
|
}
|
|
2911
2937
|
}
|
|
2912
|
-
var valid9 =
|
|
2938
|
+
var valid9 = _errs79 === errors;
|
|
2913
2939
|
}
|
|
2914
2940
|
else {
|
|
2915
2941
|
var valid9 = true;
|
|
2916
2942
|
}
|
|
2917
2943
|
if (valid9) {
|
|
2918
|
-
if (
|
|
2919
|
-
const
|
|
2920
|
-
if (typeof
|
|
2944
|
+
if (data34.discoverable !== undefined) {
|
|
2945
|
+
const _errs83 = errors;
|
|
2946
|
+
if (typeof data34.discoverable !== "boolean") {
|
|
2921
2947
|
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" }];
|
|
2922
2948
|
return false;
|
|
2923
2949
|
}
|
|
2924
|
-
var valid9 =
|
|
2950
|
+
var valid9 = _errs83 === errors;
|
|
2925
2951
|
}
|
|
2926
2952
|
else {
|
|
2927
2953
|
var valid9 = true;
|
|
@@ -2936,7 +2962,7 @@ function validate12(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
2936
2962
|
return false;
|
|
2937
2963
|
}
|
|
2938
2964
|
}
|
|
2939
|
-
var valid8 =
|
|
2965
|
+
var valid8 = _errs74 === errors;
|
|
2940
2966
|
if (!valid8) {
|
|
2941
2967
|
break;
|
|
2942
2968
|
}
|
|
@@ -2947,39 +2973,39 @@ function validate12(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
2947
2973
|
return false;
|
|
2948
2974
|
}
|
|
2949
2975
|
}
|
|
2950
|
-
var valid7 =
|
|
2976
|
+
var valid7 = _errs72 === errors;
|
|
2951
2977
|
}
|
|
2952
2978
|
else {
|
|
2953
2979
|
var valid7 = true;
|
|
2954
2980
|
}
|
|
2955
2981
|
if (valid7) {
|
|
2956
|
-
if (
|
|
2957
|
-
let
|
|
2958
|
-
const
|
|
2959
|
-
if (errors ===
|
|
2960
|
-
if (
|
|
2961
|
-
const
|
|
2962
|
-
for (const key5 in
|
|
2963
|
-
if (!(((((key5 === "sandbox") || (key5 === "oauth")) || (key5 === "microphone")) || (key5 === "camera")) || (key5 === "clipboard"))) {
|
|
2982
|
+
if (data26.permissions !== undefined) {
|
|
2983
|
+
let data39 = data26.permissions;
|
|
2984
|
+
const _errs85 = errors;
|
|
2985
|
+
if (errors === _errs85) {
|
|
2986
|
+
if (data39 && typeof data39 == "object" && !Array.isArray(data39)) {
|
|
2987
|
+
const _errs87 = errors;
|
|
2988
|
+
for (const key5 in data39) {
|
|
2989
|
+
if (!((((((key5 === "sandbox") || (key5 === "oauth")) || (key5 === "microphone")) || (key5 === "camera")) || (key5 === "clipboard")) || (key5 === "payment"))) {
|
|
2964
2990
|
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" }];
|
|
2965
2991
|
return false;
|
|
2966
2992
|
break;
|
|
2967
2993
|
}
|
|
2968
2994
|
}
|
|
2969
|
-
if (
|
|
2970
|
-
if (
|
|
2971
|
-
let
|
|
2972
|
-
const
|
|
2973
|
-
if (errors ===
|
|
2974
|
-
if (Array.isArray(
|
|
2995
|
+
if (_errs87 === errors) {
|
|
2996
|
+
if (data39.sandbox !== undefined) {
|
|
2997
|
+
let data40 = data39.sandbox;
|
|
2998
|
+
const _errs88 = errors;
|
|
2999
|
+
if (errors === _errs88) {
|
|
3000
|
+
if (Array.isArray(data40)) {
|
|
2975
3001
|
var valid12 = true;
|
|
2976
|
-
const len5 =
|
|
3002
|
+
const len5 = data40.length;
|
|
2977
3003
|
for (let i5 = 0; i5 < len5; i5++) {
|
|
2978
|
-
let
|
|
2979
|
-
const
|
|
2980
|
-
if (errors ===
|
|
2981
|
-
if (typeof
|
|
2982
|
-
if (!pattern4.test(
|
|
3004
|
+
let data41 = data40[i5];
|
|
3005
|
+
const _errs90 = errors;
|
|
3006
|
+
if (errors === _errs90) {
|
|
3007
|
+
if (typeof data41 === "string") {
|
|
3008
|
+
if (!pattern4.test(data41)) {
|
|
2983
3009
|
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)$" + "\"" }];
|
|
2984
3010
|
return false;
|
|
2985
3011
|
}
|
|
@@ -2989,7 +3015,7 @@ function validate12(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
2989
3015
|
return false;
|
|
2990
3016
|
}
|
|
2991
3017
|
}
|
|
2992
|
-
var valid12 =
|
|
3018
|
+
var valid12 = _errs90 === errors;
|
|
2993
3019
|
if (!valid12) {
|
|
2994
3020
|
break;
|
|
2995
3021
|
}
|
|
@@ -3000,26 +3026,26 @@ function validate12(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
3000
3026
|
return false;
|
|
3001
3027
|
}
|
|
3002
3028
|
}
|
|
3003
|
-
var valid11 =
|
|
3029
|
+
var valid11 = _errs88 === errors;
|
|
3004
3030
|
}
|
|
3005
3031
|
else {
|
|
3006
3032
|
var valid11 = true;
|
|
3007
3033
|
}
|
|
3008
3034
|
if (valid11) {
|
|
3009
|
-
if (
|
|
3010
|
-
let
|
|
3011
|
-
const
|
|
3012
|
-
if (errors ===
|
|
3013
|
-
if (Array.isArray(
|
|
3035
|
+
if (data39.oauth !== undefined) {
|
|
3036
|
+
let data42 = data39.oauth;
|
|
3037
|
+
const _errs92 = errors;
|
|
3038
|
+
if (errors === _errs92) {
|
|
3039
|
+
if (Array.isArray(data42)) {
|
|
3014
3040
|
var valid13 = true;
|
|
3015
|
-
const len6 =
|
|
3041
|
+
const len6 = data42.length;
|
|
3016
3042
|
for (let i6 = 0; i6 < len6; i6++) {
|
|
3017
|
-
const
|
|
3018
|
-
if (typeof
|
|
3043
|
+
const _errs94 = errors;
|
|
3044
|
+
if (typeof data42[i6] !== "string") {
|
|
3019
3045
|
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" }];
|
|
3020
3046
|
return false;
|
|
3021
3047
|
}
|
|
3022
|
-
var valid13 =
|
|
3048
|
+
var valid13 = _errs94 === errors;
|
|
3023
3049
|
if (!valid13) {
|
|
3024
3050
|
break;
|
|
3025
3051
|
}
|
|
@@ -3030,49 +3056,49 @@ function validate12(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
3030
3056
|
return false;
|
|
3031
3057
|
}
|
|
3032
3058
|
}
|
|
3033
|
-
var valid11 =
|
|
3059
|
+
var valid11 = _errs92 === errors;
|
|
3034
3060
|
}
|
|
3035
3061
|
else {
|
|
3036
3062
|
var valid11 = true;
|
|
3037
3063
|
}
|
|
3038
3064
|
if (valid11) {
|
|
3039
|
-
if (
|
|
3040
|
-
const
|
|
3041
|
-
if (typeof
|
|
3065
|
+
if (data39.microphone !== undefined) {
|
|
3066
|
+
const _errs96 = errors;
|
|
3067
|
+
if (typeof data39.microphone !== "string") {
|
|
3042
3068
|
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" }];
|
|
3043
3069
|
return false;
|
|
3044
3070
|
}
|
|
3045
|
-
var valid11 =
|
|
3071
|
+
var valid11 = _errs96 === errors;
|
|
3046
3072
|
}
|
|
3047
3073
|
else {
|
|
3048
3074
|
var valid11 = true;
|
|
3049
3075
|
}
|
|
3050
3076
|
if (valid11) {
|
|
3051
|
-
if (
|
|
3052
|
-
const
|
|
3053
|
-
if (typeof
|
|
3077
|
+
if (data39.camera !== undefined) {
|
|
3078
|
+
const _errs98 = errors;
|
|
3079
|
+
if (typeof data39.camera !== "string") {
|
|
3054
3080
|
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" }];
|
|
3055
3081
|
return false;
|
|
3056
3082
|
}
|
|
3057
|
-
var valid11 =
|
|
3083
|
+
var valid11 = _errs98 === errors;
|
|
3058
3084
|
}
|
|
3059
3085
|
else {
|
|
3060
3086
|
var valid11 = true;
|
|
3061
3087
|
}
|
|
3062
3088
|
if (valid11) {
|
|
3063
|
-
if (
|
|
3064
|
-
let
|
|
3065
|
-
const
|
|
3066
|
-
if (errors ===
|
|
3067
|
-
if (Array.isArray(
|
|
3089
|
+
if (data39.clipboard !== undefined) {
|
|
3090
|
+
let data46 = data39.clipboard;
|
|
3091
|
+
const _errs100 = errors;
|
|
3092
|
+
if (errors === _errs100) {
|
|
3093
|
+
if (Array.isArray(data46)) {
|
|
3068
3094
|
var valid14 = true;
|
|
3069
|
-
const len7 =
|
|
3095
|
+
const len7 = data46.length;
|
|
3070
3096
|
for (let i7 = 0; i7 < len7; i7++) {
|
|
3071
|
-
let
|
|
3072
|
-
const
|
|
3073
|
-
if (errors ===
|
|
3074
|
-
if (typeof
|
|
3075
|
-
if (!pattern16.test(
|
|
3097
|
+
let data47 = data46[i7];
|
|
3098
|
+
const _errs102 = errors;
|
|
3099
|
+
if (errors === _errs102) {
|
|
3100
|
+
if (typeof data47 === "string") {
|
|
3101
|
+
if (!pattern16.test(data47)) {
|
|
3076
3102
|
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)$" + "\"" }];
|
|
3077
3103
|
return false;
|
|
3078
3104
|
}
|
|
@@ -3082,7 +3108,7 @@ function validate12(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
3082
3108
|
return false;
|
|
3083
3109
|
}
|
|
3084
3110
|
}
|
|
3085
|
-
var valid14 =
|
|
3111
|
+
var valid14 = _errs102 === errors;
|
|
3086
3112
|
if (!valid14) {
|
|
3087
3113
|
break;
|
|
3088
3114
|
}
|
|
@@ -3093,11 +3119,24 @@ function validate12(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
3093
3119
|
return false;
|
|
3094
3120
|
}
|
|
3095
3121
|
}
|
|
3096
|
-
var valid11 =
|
|
3122
|
+
var valid11 = _errs100 === errors;
|
|
3097
3123
|
}
|
|
3098
3124
|
else {
|
|
3099
3125
|
var valid11 = true;
|
|
3100
3126
|
}
|
|
3127
|
+
if (valid11) {
|
|
3128
|
+
if (data39.payment !== undefined) {
|
|
3129
|
+
const _errs104 = errors;
|
|
3130
|
+
if (typeof data39.payment !== "string") {
|
|
3131
|
+
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" }];
|
|
3132
|
+
return false;
|
|
3133
|
+
}
|
|
3134
|
+
var valid11 = _errs104 === errors;
|
|
3135
|
+
}
|
|
3136
|
+
else {
|
|
3137
|
+
var valid11 = true;
|
|
3138
|
+
}
|
|
3139
|
+
}
|
|
3101
3140
|
}
|
|
3102
3141
|
}
|
|
3103
3142
|
}
|
|
@@ -3109,53 +3148,53 @@ function validate12(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
3109
3148
|
return false;
|
|
3110
3149
|
}
|
|
3111
3150
|
}
|
|
3112
|
-
var valid7 =
|
|
3151
|
+
var valid7 = _errs85 === errors;
|
|
3113
3152
|
}
|
|
3114
3153
|
else {
|
|
3115
3154
|
var valid7 = true;
|
|
3116
3155
|
}
|
|
3117
3156
|
if (valid7) {
|
|
3118
|
-
if (
|
|
3119
|
-
let
|
|
3120
|
-
const
|
|
3121
|
-
if (errors ===
|
|
3122
|
-
if (
|
|
3157
|
+
if (data26.defaultSize !== undefined) {
|
|
3158
|
+
let data49 = data26.defaultSize;
|
|
3159
|
+
const _errs106 = errors;
|
|
3160
|
+
if (errors === _errs106) {
|
|
3161
|
+
if (data49 && typeof data49 == "object" && !Array.isArray(data49)) {
|
|
3123
3162
|
let missing5;
|
|
3124
|
-
if (((
|
|
3163
|
+
if (((data49.width === undefined) && (missing5 = "width")) || ((data49.height === undefined) && (missing5 = "height"))) {
|
|
3125
3164
|
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 + "'" }];
|
|
3126
3165
|
return false;
|
|
3127
3166
|
}
|
|
3128
3167
|
else {
|
|
3129
|
-
const
|
|
3130
|
-
for (const key6 in
|
|
3168
|
+
const _errs108 = errors;
|
|
3169
|
+
for (const key6 in data49) {
|
|
3131
3170
|
if (!((key6 === "width") || (key6 === "height"))) {
|
|
3132
3171
|
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" }];
|
|
3133
3172
|
return false;
|
|
3134
3173
|
break;
|
|
3135
3174
|
}
|
|
3136
3175
|
}
|
|
3137
|
-
if (
|
|
3138
|
-
if (
|
|
3139
|
-
let
|
|
3140
|
-
const
|
|
3141
|
-
if (!((typeof
|
|
3176
|
+
if (_errs108 === errors) {
|
|
3177
|
+
if (data49.width !== undefined) {
|
|
3178
|
+
let data50 = data49.width;
|
|
3179
|
+
const _errs109 = errors;
|
|
3180
|
+
if (!((typeof data50 == "number") && (isFinite(data50)))) {
|
|
3142
3181
|
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" }];
|
|
3143
3182
|
return false;
|
|
3144
3183
|
}
|
|
3145
|
-
var valid15 =
|
|
3184
|
+
var valid15 = _errs109 === errors;
|
|
3146
3185
|
}
|
|
3147
3186
|
else {
|
|
3148
3187
|
var valid15 = true;
|
|
3149
3188
|
}
|
|
3150
3189
|
if (valid15) {
|
|
3151
|
-
if (
|
|
3152
|
-
let
|
|
3153
|
-
const
|
|
3154
|
-
if (!((typeof
|
|
3190
|
+
if (data49.height !== undefined) {
|
|
3191
|
+
let data51 = data49.height;
|
|
3192
|
+
const _errs111 = errors;
|
|
3193
|
+
if (!((typeof data51 == "number") && (isFinite(data51)))) {
|
|
3155
3194
|
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" }];
|
|
3156
3195
|
return false;
|
|
3157
3196
|
}
|
|
3158
|
-
var valid15 =
|
|
3197
|
+
var valid15 = _errs111 === errors;
|
|
3159
3198
|
}
|
|
3160
3199
|
else {
|
|
3161
3200
|
var valid15 = true;
|
|
@@ -3169,19 +3208,19 @@ function validate12(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
3169
3208
|
return false;
|
|
3170
3209
|
}
|
|
3171
3210
|
}
|
|
3172
|
-
var valid7 =
|
|
3211
|
+
var valid7 = _errs106 === errors;
|
|
3173
3212
|
}
|
|
3174
3213
|
else {
|
|
3175
3214
|
var valid7 = true;
|
|
3176
3215
|
}
|
|
3177
3216
|
if (valid7) {
|
|
3178
|
-
if (
|
|
3179
|
-
const
|
|
3180
|
-
if (typeof
|
|
3217
|
+
if (data26.discoverable !== undefined) {
|
|
3218
|
+
const _errs113 = errors;
|
|
3219
|
+
if (typeof data26.discoverable !== "boolean") {
|
|
3181
3220
|
validate12.errors = [{ instancePath: instancePath + "/entryPoints/" + i2 + "/discoverable", schemaPath: "#/properties/entryPoints/items/properties/discoverable/type", keyword: "type", params: { type: "boolean" }, message: "must be boolean" }];
|
|
3182
3221
|
return false;
|
|
3183
3222
|
}
|
|
3184
|
-
var valid7 =
|
|
3223
|
+
var valid7 = _errs113 === errors;
|
|
3185
3224
|
}
|
|
3186
3225
|
else {
|
|
3187
3226
|
var valid7 = true;
|
|
@@ -3203,7 +3242,7 @@ function validate12(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
3203
3242
|
return false;
|
|
3204
3243
|
}
|
|
3205
3244
|
}
|
|
3206
|
-
var valid6 =
|
|
3245
|
+
var valid6 = _errs57 === errors;
|
|
3207
3246
|
if (!valid6) {
|
|
3208
3247
|
break;
|
|
3209
3248
|
}
|
|
@@ -3214,7 +3253,7 @@ function validate12(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
3214
3253
|
return false;
|
|
3215
3254
|
}
|
|
3216
3255
|
}
|
|
3217
|
-
var valid0 =
|
|
3256
|
+
var valid0 = _errs55 === errors;
|
|
3218
3257
|
}
|
|
3219
3258
|
else {
|
|
3220
3259
|
var valid0 = true;
|