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