@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.
@@ -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 (!((((((((key2 === "messaging") || (key2 === "expressPrint")) || (key2 === "toastNotifications")) || (key2 === "addOnLifecycle")) || (key2 === "tiktokcml")) || (key2 === "formSubmission")) || (key2 === "epsonPrint")) || (key2 === "allowPayment"))) {
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 data25 = data.entryPoints;
2769
- const _errs55 = errors;
2770
- if (errors === _errs55) {
2771
- if (Array.isArray(data25)) {
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 = data25.length;
2786
+ const len2 = data26.length;
2774
2787
  for (let i2 = 0; i2 < len2; i2++) {
2775
- let data26 = data25[i2];
2776
- const _errs57 = errors;
2777
- if (errors === _errs57) {
2778
- if (data26 && typeof data26 == "object" && !Array.isArray(data26)) {
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 ((((data26.type === undefined) && (missing3 = "type")) || ((data26.id === undefined) && (missing3 = "id"))) || ((data26.main === undefined) && (missing3 = "main"))) {
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 _errs59 = errors;
2786
- for (const key3 in data26) {
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 (_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)) {
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 = _errs60 === errors;
2822
+ var valid7 = _errs62 === errors;
2810
2823
  }
2811
2824
  else {
2812
2825
  var valid7 = true;
2813
2826
  }
2814
2827
  if (valid7) {
2815
- if (data26.id !== undefined) {
2816
- const _errs62 = errors;
2817
- if (typeof data26.id !== "string") {
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 = _errs62 === errors;
2834
+ var valid7 = _errs64 === errors;
2822
2835
  }
2823
2836
  else {
2824
2837
  var valid7 = true;
2825
2838
  }
2826
2839
  if (valid7) {
2827
- if (data26.main !== undefined) {
2828
- const _errs64 = errors;
2829
- if (typeof data26.main !== "string") {
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 = _errs64 === errors;
2846
+ var valid7 = _errs66 === errors;
2834
2847
  }
2835
2848
  else {
2836
2849
  var valid7 = true;
2837
2850
  }
2838
2851
  if (valid7) {
2839
- if (data26.script !== undefined) {
2840
- const _errs66 = errors;
2841
- if (typeof data26.script !== "string") {
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 = _errs66 === errors;
2858
+ var valid7 = _errs68 === errors;
2846
2859
  }
2847
2860
  else {
2848
2861
  var valid7 = true;
2849
2862
  }
2850
2863
  if (valid7) {
2851
- if (data26.documentSandbox !== undefined) {
2852
- const _errs68 = errors;
2853
- if (typeof data26.documentSandbox !== "string") {
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 = _errs68 === errors;
2870
+ var valid7 = _errs70 === errors;
2858
2871
  }
2859
2872
  else {
2860
2873
  var valid7 = true;
2861
2874
  }
2862
2875
  if (valid7) {
2863
- if (data26.hostDomain !== undefined) {
2864
- const _errs70 = errors;
2865
- if (typeof data26.hostDomain !== "string") {
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 = _errs70 === errors;
2882
+ var valid7 = _errs72 === errors;
2870
2883
  }
2871
2884
  else {
2872
2885
  var valid7 = true;
2873
2886
  }
2874
2887
  if (valid7) {
2875
- if (data26.commands !== undefined) {
2876
- let data33 = data26.commands;
2877
- const _errs72 = errors;
2878
- if (errors === _errs72) {
2879
- if (Array.isArray(data33)) {
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 = data33.length;
2894
+ const len3 = data34.length;
2882
2895
  for (let i3 = 0; i3 < len3; i3++) {
2883
- let data34 = data33[i3];
2884
- const _errs74 = errors;
2885
- if (errors === _errs74) {
2886
- if (data34 && typeof data34 == "object" && !Array.isArray(data34)) {
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 ((data34.name === undefined) && (missing4 = "name")) {
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 _errs76 = errors;
2894
- for (const key4 in data34) {
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 (_errs76 === errors) {
2902
- if (data34.name !== undefined) {
2903
- const _errs77 = errors;
2904
- if (typeof data34.name !== "string") {
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 = _errs77 === errors;
2921
+ var valid9 = _errs79 === errors;
2909
2922
  }
2910
2923
  else {
2911
2924
  var valid9 = true;
2912
2925
  }
2913
2926
  if (valid9) {
2914
- if (data34.supportedMimeTypes !== undefined) {
2915
- let data36 = data34.supportedMimeTypes;
2916
- const _errs79 = errors;
2917
- if (errors === _errs79) {
2918
- if (Array.isArray(data36)) {
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 = data36.length;
2933
+ const len4 = data37.length;
2921
2934
  for (let i4 = 0; i4 < len4; i4++) {
2922
- const _errs81 = errors;
2923
- if (typeof data36[i4] !== "string") {
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 = _errs81 === errors;
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 = _errs79 === errors;
2951
+ var valid9 = _errs81 === errors;
2939
2952
  }
2940
2953
  else {
2941
2954
  var valid9 = true;
2942
2955
  }
2943
2956
  if (valid9) {
2944
- if (data34.discoverable !== undefined) {
2945
- const _errs83 = errors;
2946
- if (typeof data34.discoverable !== "boolean") {
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 = _errs83 === errors;
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 = _errs74 === errors;
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 = _errs72 === errors;
2989
+ var valid7 = _errs74 === errors;
2977
2990
  }
2978
2991
  else {
2979
2992
  var valid7 = true;
2980
2993
  }
2981
2994
  if (valid7) {
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) {
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 (_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)) {
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 = data40.length;
3015
+ const len5 = data41.length;
3003
3016
  for (let i5 = 0; i5 < len5; i5++) {
3004
- let data41 = data40[i5];
3005
- const _errs90 = errors;
3006
- if (errors === _errs90) {
3007
- if (typeof data41 === "string") {
3008
- if (!pattern4.test(data41)) {
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 = _errs90 === errors;
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 = _errs88 === errors;
3042
+ var valid11 = _errs90 === errors;
3030
3043
  }
3031
3044
  else {
3032
3045
  var valid11 = true;
3033
3046
  }
3034
3047
  if (valid11) {
3035
- if (data39.oauth !== undefined) {
3036
- let data42 = data39.oauth;
3037
- const _errs92 = errors;
3038
- if (errors === _errs92) {
3039
- if (Array.isArray(data42)) {
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 = data42.length;
3054
+ const len6 = data43.length;
3042
3055
  for (let i6 = 0; i6 < len6; i6++) {
3043
- const _errs94 = errors;
3044
- if (typeof data42[i6] !== "string") {
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 = _errs94 === errors;
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 = _errs92 === errors;
3072
+ var valid11 = _errs94 === errors;
3060
3073
  }
3061
3074
  else {
3062
3075
  var valid11 = true;
3063
3076
  }
3064
3077
  if (valid11) {
3065
- if (data39.microphone !== undefined) {
3066
- const _errs96 = errors;
3067
- if (typeof data39.microphone !== "string") {
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 = _errs96 === errors;
3084
+ var valid11 = _errs98 === errors;
3072
3085
  }
3073
3086
  else {
3074
3087
  var valid11 = true;
3075
3088
  }
3076
3089
  if (valid11) {
3077
- if (data39.camera !== undefined) {
3078
- const _errs98 = errors;
3079
- if (typeof data39.camera !== "string") {
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 = _errs98 === errors;
3096
+ var valid11 = _errs100 === errors;
3084
3097
  }
3085
3098
  else {
3086
3099
  var valid11 = true;
3087
3100
  }
3088
3101
  if (valid11) {
3089
- if (data39.clipboard !== undefined) {
3090
- let data46 = data39.clipboard;
3091
- const _errs100 = errors;
3092
- if (errors === _errs100) {
3093
- if (Array.isArray(data46)) {
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 = data46.length;
3108
+ const len7 = data47.length;
3096
3109
  for (let i7 = 0; i7 < len7; i7++) {
3097
- let data47 = data46[i7];
3098
- const _errs102 = errors;
3099
- if (errors === _errs102) {
3100
- if (typeof data47 === "string") {
3101
- if (!pattern16.test(data47)) {
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 = _errs102 === errors;
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 = _errs100 === errors;
3135
+ var valid11 = _errs102 === errors;
3123
3136
  }
3124
3137
  else {
3125
3138
  var valid11 = true;
3126
3139
  }
3127
3140
  if (valid11) {
3128
- if (data39.payment !== undefined) {
3129
- const _errs104 = errors;
3130
- if (typeof data39.payment !== "string") {
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 = _errs104 === errors;
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 = _errs85 === errors;
3164
+ var valid7 = _errs87 === errors;
3152
3165
  }
3153
3166
  else {
3154
3167
  var valid7 = true;
3155
3168
  }
3156
3169
  if (valid7) {
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)) {
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 (((data49.width === undefined) && (missing5 = "width")) || ((data49.height === undefined) && (missing5 = "height"))) {
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 _errs108 = errors;
3169
- for (const key6 in data49) {
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 (_errs108 === errors) {
3177
- if (data49.width !== undefined) {
3178
- let data50 = data49.width;
3179
- const _errs109 = errors;
3180
- if (!((typeof data50 == "number") && (isFinite(data50)))) {
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 = _errs109 === errors;
3197
+ var valid15 = _errs111 === errors;
3185
3198
  }
3186
3199
  else {
3187
3200
  var valid15 = true;
3188
3201
  }
3189
3202
  if (valid15) {
3190
- if (data49.height !== undefined) {
3191
- let data51 = data49.height;
3192
- const _errs111 = errors;
3193
- if (!((typeof data51 == "number") && (isFinite(data51)))) {
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 = _errs111 === errors;
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 = _errs106 === errors;
3224
+ var valid7 = _errs108 === errors;
3212
3225
  }
3213
3226
  else {
3214
3227
  var valid7 = true;
3215
3228
  }
3216
3229
  if (valid7) {
3217
- if (data26.discoverable !== undefined) {
3218
- const _errs113 = errors;
3219
- if (typeof data26.discoverable !== "boolean") {
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 = _errs113 === errors;
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 = _errs57 === errors;
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 = _errs55 === errors;
3269
+ var valid0 = _errs57 === errors;
3257
3270
  }
3258
3271
  else {
3259
3272
  var valid0 = true;