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