@adobe/ccweb-add-on-manifest 2.2.0 → 2.4.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/AddOnManifest.d.ts +4 -4
- package/dist/AddOnManifest.d.ts.map +1 -1
- package/dist/AddOnManifest.js.map +1 -1
- package/dist/AddOnManifestTypes.d.ts +24 -20
- package/dist/AddOnManifestTypes.d.ts.map +1 -1
- package/dist/AddOnManifestTypes.js +8 -4
- package/dist/AddOnManifestTypes.js.map +1 -1
- package/dist/AddOnManifestValidator.d.ts.map +1 -1
- package/dist/AddOnManifestValidator.js +8 -0
- package/dist/AddOnManifestValidator.js.map +1 -1
- package/dist/ValidationUtils.js.map +1 -1
- package/dist/generated/validateManifestSchema.d.mts.map +1 -1
- package/dist/generated/validateManifestSchema.mjs +146 -133
- package/dist/generated/validateManifestSchema.mjs.map +1 -1
- package/dist/index.js.map +1 -1
- package/dist/manifest-field/AddOnManifestApp.js.map +1 -1
- package/dist/manifest-field/AddOnManifestEntrypoint.d.ts +1 -1
- package/dist/manifest-field/AddOnManifestEntrypoint.d.ts.map +1 -1
- package/dist/manifest-field/AddOnManifestEntrypoint.js.map +1 -1
- package/dist/manifest-field/AddOnManifestRequirement.d.ts +1 -1
- package/dist/manifest-field/AddOnManifestRequirement.d.ts.map +1 -1
- package/dist/manifest-field/AddOnManifestRequirement.js.map +1 -1
- package/dist/test/utils/TestManifests.d.ts +3 -3
- package/dist/test/utils/TestManifests.d.ts.map +1 -1
- package/dist/test/utils/TestManifests.js +35 -11
- package/dist/test/utils/TestManifests.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +6 -5
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
export const validateSchemaV1 = validate10;
|
|
3
|
-
const schema11 = { "$id": "#/definitions/manifestSchemaV1", "type": "object", "properties": { "id": { "type": "string" }, "name": { "anyOf": [{ "type": "string" }, { "type": "object", "properties": { "default": { "type": "string" } }, "required": ["default"], "additionalProperties": true }] }, "version": { "type": "string" }, "manifestVersion": { "type": "number" }, "requirements": { "type": "object", "properties": { "apps": { "type": "array", "items": { "type": "string", "pattern": "^(Express)$" } }, "experimentalApis": { "type": "boolean" } }, "required": ["apps"], "additionalProperties": false }, "icon": { "anyOf": [{ "type": "object", "properties": { "width": { "type": "number" }, "height": { "type": "number" }, "href": { "type": "string" }, "theme": { "type": "array", "items": { "type": "string", "pattern": "^(lightest|light|medium|dark|darkest|all)$" } }, "scale": { "type": "array", "items": { "type": "number" } } }, "required": ["href", "theme"], "additionalProperties": false }, { "type": "array", "items": { "type": "object", "properties": { "width": { "type": "number" }, "height": { "type": "number" }, "href": { "type": "string" }, "theme": { "type": "array", "items": { "type": "string", "pattern": "^(lightest|light|medium|dark|darkest|all)$" } }, "scale": { "type": "array", "items": { "type": "number" } } }, "required": ["href", "theme"], "additionalProperties": false } }] }, "entryPoints": { "type": "array", "items": { "type": "object", "properties": { "type": { "type": "string", "pattern": "^(panel|share|content-hub)$" }, "id": { "type": "string" }, "main": { "type": "string" }, "label": { "anyOf": [{ "type": "string" }, { "type": "object", "properties": { "default": { "type": "string" } }, "required": ["default"], "additionalProperties": true }] }, "permissions": { "type": "object", "properties": { "sandbox": { "type": "array", "items": { "type": "string", "pattern": "^(allow-popups|allow-presentation|allow-downloads|allow-popups-to-escape-sandbox)$" } }, "oauth": { "type": "array", "items": { "type": "string" } }, "microphone": { "type": "string" }, "camera": { "type": "string" } }, "required": [], "additionalProperties": false }, "defaultSize": { "type": "object", "properties": { "width": { "type": "number" }, "height": { "type": "number" } }, "required": ["width", "height"], "additionalProperties": false } }, "required": ["type", "id", "label", "main"], "additionalProperties": false } }, "authorInfo": { "type": "object", "properties": { "name": { "type": "string" }, "email": { "type": "string" }, "url": { "type": "string" } }, "required": ["name", "email"], "additionalProperties": false } }, "required": ["id", "name", "version", "manifestVersion", "requirements", "icon", "entryPoints"], "additionalProperties": false };
|
|
3
|
+
const schema11 = { "$id": "#/definitions/manifestSchemaV1", "type": "object", "properties": { "id": { "type": "string" }, "name": { "anyOf": [{ "type": "string" }, { "type": "object", "properties": { "default": { "type": "string" } }, "required": ["default"], "additionalProperties": true }] }, "version": { "type": "string" }, "manifestVersion": { "type": "number" }, "requirements": { "type": "object", "properties": { "apps": { "type": "array", "items": { "type": "string", "pattern": "^(Express)$" } }, "experimentalApis": { "type": "boolean" } }, "required": ["apps"], "additionalProperties": false }, "icon": { "anyOf": [{ "type": "object", "properties": { "width": { "type": "number" }, "height": { "type": "number" }, "href": { "type": "string" }, "theme": { "type": "array", "items": { "type": "string", "pattern": "^(lightest|light|medium|dark|darkest|all)$" } }, "scale": { "type": "array", "items": { "type": "number" } } }, "required": ["href", "theme"], "additionalProperties": false }, { "type": "array", "items": { "type": "object", "properties": { "width": { "type": "number" }, "height": { "type": "number" }, "href": { "type": "string" }, "theme": { "type": "array", "items": { "type": "string", "pattern": "^(lightest|light|medium|dark|darkest|all)$" } }, "scale": { "type": "array", "items": { "type": "number" } } }, "required": ["href", "theme"], "additionalProperties": false } }] }, "entryPoints": { "type": "array", "items": { "type": "object", "properties": { "type": { "type": "string", "pattern": "^(panel|share|content-hub|mobile.your-stuff.files|mobile.media.audio|mobile.more)$" }, "id": { "type": "string" }, "main": { "type": "string" }, "label": { "anyOf": [{ "type": "string" }, { "type": "object", "properties": { "default": { "type": "string" } }, "required": ["default"], "additionalProperties": true }] }, "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" } }, "required": [], "additionalProperties": false }, "defaultSize": { "type": "object", "properties": { "width": { "type": "number" }, "height": { "type": "number" } }, "required": ["width", "height"], "additionalProperties": false } }, "required": ["type", "id", "label", "main"], "additionalProperties": false } }, "authorInfo": { "type": "object", "properties": { "name": { "type": "string" }, "email": { "type": "string" }, "url": { "type": "string" } }, "required": ["name", "email"], "additionalProperties": false } }, "required": ["id", "name", "version", "manifestVersion", "requirements", "icon", "entryPoints"], "additionalProperties": false };
|
|
4
4
|
const pattern0 = new RegExp("^(Express)$", "u");
|
|
5
5
|
const pattern1 = new RegExp("^(lightest|light|medium|dark|darkest|all)$", "u");
|
|
6
|
-
const pattern3 = new RegExp("^(panel|share|content-hub)$", "u");
|
|
7
|
-
const pattern4 = new RegExp("^(allow-popups|allow-presentation|allow-downloads|allow-popups-to-escape-sandbox)$", "u");
|
|
6
|
+
const pattern3 = new RegExp("^(panel|share|content-hub|mobile.your-stuff.files|mobile.media.audio|mobile.more)$", "u");
|
|
7
|
+
const pattern4 = new RegExp("^(allow-popups|allow-presentation|allow-downloads|allow-popups-to-escape-sandbox|allow-forms)$", "u");
|
|
8
8
|
function validate10(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) { /*# sourceURL="#/definitions/manifestSchemaV1" */ ; let vErrors = null; let errors = 0; if (errors === 0) {
|
|
9
9
|
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
10
10
|
let missing0;
|
|
@@ -738,7 +738,7 @@ function validate10(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
738
738
|
if (errors === _errs69) {
|
|
739
739
|
if (typeof data27 === "string") {
|
|
740
740
|
if (!pattern3.test(data27)) {
|
|
741
|
-
validate10.errors = [{ instancePath: instancePath + "/entryPoints/" + i6 + "/type", schemaPath: "#/properties/entryPoints/items/properties/type/pattern", keyword: "pattern", params: { pattern: "^(panel|share|content-hub)$" }, message: "must match pattern \"" + "^(panel|share|content-hub)$" + "\"" }];
|
|
741
|
+
validate10.errors = [{ instancePath: instancePath + "/entryPoints/" + i6 + "/type", schemaPath: "#/properties/entryPoints/items/properties/type/pattern", keyword: "pattern", params: { pattern: "^(panel|share|content-hub|mobile.your-stuff.files|mobile.media.audio|mobile.more)$" }, message: "must match pattern \"" + "^(panel|share|content-hub|mobile.your-stuff.files|mobile.media.audio|mobile.more)$" + "\"" }];
|
|
742
742
|
return false;
|
|
743
743
|
}
|
|
744
744
|
}
|
|
@@ -895,7 +895,7 @@ function validate10(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
895
895
|
if (errors === _errs89) {
|
|
896
896
|
if (typeof data34 === "string") {
|
|
897
897
|
if (!pattern4.test(data34)) {
|
|
898
|
-
validate10.errors = [{ instancePath: instancePath + "/entryPoints/" + i6 + "/permissions/sandbox/" + i7, 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)$" }, message: "must match pattern \"" + "^(allow-popups|allow-presentation|allow-downloads|allow-popups-to-escape-sandbox)$" + "\"" }];
|
|
898
|
+
validate10.errors = [{ instancePath: instancePath + "/entryPoints/" + i6 + "/permissions/sandbox/" + i7, 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)$" + "\"" }];
|
|
899
899
|
return false;
|
|
900
900
|
}
|
|
901
901
|
}
|
|
@@ -1165,7 +1165,7 @@ function validate10(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
1165
1165
|
}
|
|
1166
1166
|
} validate10.errors = vErrors; return errors === 0; }
|
|
1167
1167
|
export const validateSchemaDeveloperV1 = validate11;
|
|
1168
|
-
const schema12 = { "$id": "#/definitions/manifestSchemaDeveloperV1", "type": "object", "properties": { "id": { "type": "string" }, "name": { "anyOf": [{ "type": "string" }, { "type": "object", "properties": { "default": { "type": "string" } }, "required": ["default"], "additionalProperties": true }] }, "version": { "type": "string" }, "manifestVersion": { "type": "number" }, "requirements": { "type": "object", "properties": { "apps": { "type": "array", "items": { "type": "string", "pattern": "^(Express)$" } }, "experimentalApis": { "type": "boolean" } }, "required": ["apps"], "additionalProperties": false }, "icon": { "anyOf": [{ "type": "object", "properties": { "width": { "type": "number" }, "height": { "type": "number" }, "href": { "type": "string" }, "theme": { "type": "array", "items": { "type": "string", "pattern": "^(lightest|light|medium|dark|darkest|all)$" } }, "scale": { "type": "array", "items": { "type": "number" } } }, "required": ["href", "theme"], "additionalProperties": false }, { "type": "array", "items": { "type": "object", "properties": { "width": { "type": "number" }, "height": { "type": "number" }, "href": { "type": "string" }, "theme": { "type": "array", "items": { "type": "string", "pattern": "^(lightest|light|medium|dark|darkest|all)$" } }, "scale": { "type": "array", "items": { "type": "number" } } }, "required": ["href", "theme"], "additionalProperties": false } }] }, "entryPoints": { "type": "array", "items": { "type": "object", "properties": { "type": { "type": "string", "pattern": "^(panel|share|content-hub)$" }, "id": { "type": "string" }, "main": { "type": "string" }, "label": { "anyOf": [{ "type": "string" }, { "type": "object", "properties": { "default": { "type": "string" } }, "required": ["default"], "additionalProperties": true }] }, "permissions": { "type": "object", "properties": { "sandbox": { "type": "array", "items": { "type": "string", "pattern": "^(allow-popups|allow-presentation|allow-downloads|allow-popups-to-escape-sandbox)$" } }, "oauth": { "type": "array", "items": { "type": "string" } }, "microphone": { "type": "string" }, "camera": { "type": "string" } }, "required": [], "additionalProperties": false }, "defaultSize": { "type": "object", "properties": { "width": { "type": "number" }, "height": { "type": "number" } }, "required": ["width", "height"], "additionalProperties": false } }, "required": ["type", "id", "label", "main"], "additionalProperties": false } }, "externalURL": { "type": "string" }, "authorInfo": { "type": "object", "properties": { "name": { "type": "string" }, "email": { "type": "string" }, "url": { "type": "string" } }, "required": ["name", "email"], "additionalProperties": false } }, "required": ["id", "entryPoints"], "additionalProperties": true };
|
|
1168
|
+
const schema12 = { "$id": "#/definitions/manifestSchemaDeveloperV1", "type": "object", "properties": { "id": { "type": "string" }, "name": { "anyOf": [{ "type": "string" }, { "type": "object", "properties": { "default": { "type": "string" } }, "required": ["default"], "additionalProperties": true }] }, "version": { "type": "string" }, "manifestVersion": { "type": "number" }, "requirements": { "type": "object", "properties": { "apps": { "type": "array", "items": { "type": "string", "pattern": "^(Express)$" } }, "experimentalApis": { "type": "boolean" } }, "required": ["apps"], "additionalProperties": false }, "icon": { "anyOf": [{ "type": "object", "properties": { "width": { "type": "number" }, "height": { "type": "number" }, "href": { "type": "string" }, "theme": { "type": "array", "items": { "type": "string", "pattern": "^(lightest|light|medium|dark|darkest|all)$" } }, "scale": { "type": "array", "items": { "type": "number" } } }, "required": ["href", "theme"], "additionalProperties": false }, { "type": "array", "items": { "type": "object", "properties": { "width": { "type": "number" }, "height": { "type": "number" }, "href": { "type": "string" }, "theme": { "type": "array", "items": { "type": "string", "pattern": "^(lightest|light|medium|dark|darkest|all)$" } }, "scale": { "type": "array", "items": { "type": "number" } } }, "required": ["href", "theme"], "additionalProperties": false } }] }, "entryPoints": { "type": "array", "items": { "type": "object", "properties": { "type": { "type": "string", "pattern": "^(panel|share|content-hub|mobile.your-stuff.files|mobile.media.audio|mobile.more)$" }, "id": { "type": "string" }, "main": { "type": "string" }, "label": { "anyOf": [{ "type": "string" }, { "type": "object", "properties": { "default": { "type": "string" } }, "required": ["default"], "additionalProperties": true }] }, "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" } }, "required": [], "additionalProperties": false }, "defaultSize": { "type": "object", "properties": { "width": { "type": "number" }, "height": { "type": "number" } }, "required": ["width", "height"], "additionalProperties": false } }, "required": ["type", "id", "label", "main"], "additionalProperties": false } }, "externalURL": { "type": "string" }, "authorInfo": { "type": "object", "properties": { "name": { "type": "string" }, "email": { "type": "string" }, "url": { "type": "string" } }, "required": ["name", "email"], "additionalProperties": false } }, "required": ["id", "entryPoints"], "additionalProperties": true };
|
|
1169
1169
|
function validate11(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) { /*# sourceURL="#/definitions/manifestSchemaDeveloperV1" */ ; let vErrors = null; let errors = 0; if (errors === 0) {
|
|
1170
1170
|
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
1171
1171
|
let missing0;
|
|
@@ -1890,7 +1890,7 @@ function validate11(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
1890
1890
|
if (errors === _errs69) {
|
|
1891
1891
|
if (typeof data27 === "string") {
|
|
1892
1892
|
if (!pattern3.test(data27)) {
|
|
1893
|
-
validate11.errors = [{ instancePath: instancePath + "/entryPoints/" + i6 + "/type", schemaPath: "#/properties/entryPoints/items/properties/type/pattern", keyword: "pattern", params: { pattern: "^(panel|share|content-hub)$" }, message: "must match pattern \"" + "^(panel|share|content-hub)$" + "\"" }];
|
|
1893
|
+
validate11.errors = [{ instancePath: instancePath + "/entryPoints/" + i6 + "/type", schemaPath: "#/properties/entryPoints/items/properties/type/pattern", keyword: "pattern", params: { pattern: "^(panel|share|content-hub|mobile.your-stuff.files|mobile.media.audio|mobile.more)$" }, message: "must match pattern \"" + "^(panel|share|content-hub|mobile.your-stuff.files|mobile.media.audio|mobile.more)$" + "\"" }];
|
|
1894
1894
|
return false;
|
|
1895
1895
|
}
|
|
1896
1896
|
}
|
|
@@ -2047,7 +2047,7 @@ function validate11(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
2047
2047
|
if (errors === _errs89) {
|
|
2048
2048
|
if (typeof data34 === "string") {
|
|
2049
2049
|
if (!pattern4.test(data34)) {
|
|
2050
|
-
validate11.errors = [{ instancePath: instancePath + "/entryPoints/" + i6 + "/permissions/sandbox/" + i7, 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)$" }, message: "must match pattern \"" + "^(allow-popups|allow-presentation|allow-downloads|allow-popups-to-escape-sandbox)$" + "\"" }];
|
|
2050
|
+
validate11.errors = [{ instancePath: instancePath + "/entryPoints/" + i6 + "/permissions/sandbox/" + i7, 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)$" + "\"" }];
|
|
2051
2051
|
return false;
|
|
2052
2052
|
}
|
|
2053
2053
|
}
|
|
@@ -2329,10 +2329,10 @@ 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)$" } } }, "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" } }, "required": [], "additionalProperties": false } }, "required": ["apps"], "additionalProperties": false }, "entryPoints": { "type": "array", "items": { "type": "object", "properties": { "type": { "type": "string", "pattern": "^(panel|share|content-hub)$" }, "id": { "type": "string" }, "main": { "type": "string" }, "script": { "type": "string" }, "documentSandbox": { "type": "string" }, "hostDomain": { "type": "string" }, "permissions": { "type": "object", "properties": { "sandbox": { "type": "array", "items": { "type": "string", "pattern": "^(allow-popups|allow-presentation|allow-downloads|allow-popups-to-escape-sandbox)$" } }, "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" } }, "required": [], "additionalProperties": false } }, "required": ["apps"], "additionalProperties": false }, "entryPoints": { "type": "array", "items": { "type": "object", "properties": { "type": { "type": "string", "pattern": "^(panel|share|content-hub|mobile.your-stuff.files|mobile.media.audio|mobile.more)$" }, "id": { "type": "string" }, "main": { "type": "string" }, "script": { "type": "string" }, "documentSandbox": { "type": "string" }, "hostDomain": { "type": "string" }, "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 };
|
|
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
|
-
const pattern13 = new RegExp("^(desktop|mobile|app)$", "u");
|
|
2335
|
+
const pattern13 = new RegExp("^(desktop|mobile|app|mobile-ios|mobile-android)$", "u");
|
|
2336
2336
|
const pattern16 = new RegExp("^(clipboard-write|clipboard-read)$", "u");
|
|
2337
2337
|
const func2 = Object.prototype.hasOwnProperty;
|
|
2338
2338
|
function validate12(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) { /*# sourceURL="#/definitions/manifestSchemaV2" */ ; let vErrors = null; let errors = 0; if (errors === 0) {
|
|
@@ -2504,7 +2504,7 @@ function validate12(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
2504
2504
|
if (errors === _errs24) {
|
|
2505
2505
|
if (typeof data10 === "string") {
|
|
2506
2506
|
if (!pattern13.test(data10)) {
|
|
2507
|
-
validate12.errors = [{ instancePath: instancePath + "/requirements/apps/" + i0 + "/supportedDeviceClass/" + i1, schemaPath: "#/properties/requirements/properties/apps/items/properties/supportedDeviceClass/items/pattern", keyword: "pattern", params: { pattern: "^(desktop|mobile|app)$" }, message: "must match pattern \"" + "^(desktop|mobile|app)$" + "\"" }];
|
|
2507
|
+
validate12.errors = [{ instancePath: instancePath + "/requirements/apps/" + i0 + "/supportedDeviceClass/" + i1, schemaPath: "#/properties/requirements/properties/apps/items/properties/supportedDeviceClass/items/pattern", keyword: "pattern", params: { pattern: "^(desktop|mobile|app|mobile-ios|mobile-android)$" }, message: "must match pattern \"" + "^(desktop|mobile|app|mobile-ios|mobile-android)$" + "\"" }];
|
|
2508
2508
|
return false;
|
|
2509
2509
|
}
|
|
2510
2510
|
}
|
|
@@ -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"))) {
|
|
2626
|
+
if (!((((((key2 === "messaging") || (key2 === "expressPrint")) || (key2 === "toastNotifications")) || (key2 === "addOnLifecycle")) || (key2 === "tiktokcml")) || (key2 === "formSubmission"))) {
|
|
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;
|
|
@@ -2689,6 +2689,19 @@ function validate12(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
2689
2689
|
else {
|
|
2690
2690
|
var valid5 = true;
|
|
2691
2691
|
}
|
|
2692
|
+
if (valid5) {
|
|
2693
|
+
if (data16.formSubmission !== undefined) {
|
|
2694
|
+
const _errs49 = errors;
|
|
2695
|
+
if (typeof data16.formSubmission !== "boolean") {
|
|
2696
|
+
validate12.errors = [{ instancePath: instancePath + "/requirements/trustedPartnerApis/formSubmission", schemaPath: "#/properties/requirements/properties/trustedPartnerApis/properties/formSubmission/type", keyword: "type", params: { type: "boolean" }, message: "must be boolean" }];
|
|
2697
|
+
return false;
|
|
2698
|
+
}
|
|
2699
|
+
var valid5 = _errs49 === errors;
|
|
2700
|
+
}
|
|
2701
|
+
else {
|
|
2702
|
+
var valid5 = true;
|
|
2703
|
+
}
|
|
2704
|
+
}
|
|
2692
2705
|
}
|
|
2693
2706
|
}
|
|
2694
2707
|
}
|
|
@@ -2726,39 +2739,39 @@ function validate12(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
2726
2739
|
}
|
|
2727
2740
|
if (valid0) {
|
|
2728
2741
|
if (data.entryPoints !== undefined) {
|
|
2729
|
-
let
|
|
2730
|
-
const
|
|
2731
|
-
if (errors ===
|
|
2732
|
-
if (Array.isArray(
|
|
2742
|
+
let data23 = data.entryPoints;
|
|
2743
|
+
const _errs51 = errors;
|
|
2744
|
+
if (errors === _errs51) {
|
|
2745
|
+
if (Array.isArray(data23)) {
|
|
2733
2746
|
var valid6 = true;
|
|
2734
|
-
const len2 =
|
|
2747
|
+
const len2 = data23.length;
|
|
2735
2748
|
for (let i2 = 0; i2 < len2; i2++) {
|
|
2736
|
-
let
|
|
2737
|
-
const
|
|
2738
|
-
if (errors ===
|
|
2739
|
-
if (
|
|
2749
|
+
let data24 = data23[i2];
|
|
2750
|
+
const _errs53 = errors;
|
|
2751
|
+
if (errors === _errs53) {
|
|
2752
|
+
if (data24 && typeof data24 == "object" && !Array.isArray(data24)) {
|
|
2740
2753
|
let missing3;
|
|
2741
|
-
if ((((
|
|
2754
|
+
if ((((data24.type === undefined) && (missing3 = "type")) || ((data24.id === undefined) && (missing3 = "id"))) || ((data24.main === undefined) && (missing3 = "main"))) {
|
|
2742
2755
|
validate12.errors = [{ instancePath: instancePath + "/entryPoints/" + i2, schemaPath: "#/properties/entryPoints/items/required", keyword: "required", params: { missingProperty: missing3 }, message: "must have required property '" + missing3 + "'" }];
|
|
2743
2756
|
return false;
|
|
2744
2757
|
}
|
|
2745
2758
|
else {
|
|
2746
|
-
const
|
|
2747
|
-
for (const key3 in
|
|
2759
|
+
const _errs55 = errors;
|
|
2760
|
+
for (const key3 in data24) {
|
|
2748
2761
|
if (!(func2.call(schema13.properties.entryPoints.items.properties, key3))) {
|
|
2749
2762
|
validate12.errors = [{ instancePath: instancePath + "/entryPoints/" + i2, schemaPath: "#/properties/entryPoints/items/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key3 }, message: "must NOT have additional properties" }];
|
|
2750
2763
|
return false;
|
|
2751
2764
|
break;
|
|
2752
2765
|
}
|
|
2753
2766
|
}
|
|
2754
|
-
if (
|
|
2755
|
-
if (
|
|
2756
|
-
let
|
|
2757
|
-
const
|
|
2758
|
-
if (errors ===
|
|
2759
|
-
if (typeof
|
|
2760
|
-
if (!pattern3.test(
|
|
2761
|
-
validate12.errors = [{ instancePath: instancePath + "/entryPoints/" + i2 + "/type", schemaPath: "#/properties/entryPoints/items/properties/type/pattern", keyword: "pattern", params: { pattern: "^(panel|share|content-hub)$" }, message: "must match pattern \"" + "^(panel|share|content-hub)$" + "\"" }];
|
|
2767
|
+
if (_errs55 === errors) {
|
|
2768
|
+
if (data24.type !== undefined) {
|
|
2769
|
+
let data25 = data24.type;
|
|
2770
|
+
const _errs56 = errors;
|
|
2771
|
+
if (errors === _errs56) {
|
|
2772
|
+
if (typeof data25 === "string") {
|
|
2773
|
+
if (!pattern3.test(data25)) {
|
|
2774
|
+
validate12.errors = [{ instancePath: instancePath + "/entryPoints/" + i2 + "/type", schemaPath: "#/properties/entryPoints/items/properties/type/pattern", keyword: "pattern", params: { pattern: "^(panel|share|content-hub|mobile.your-stuff.files|mobile.media.audio|mobile.more)$" }, message: "must match pattern \"" + "^(panel|share|content-hub|mobile.your-stuff.files|mobile.media.audio|mobile.more)$" + "\"" }];
|
|
2762
2775
|
return false;
|
|
2763
2776
|
}
|
|
2764
2777
|
}
|
|
@@ -2767,100 +2780,100 @@ function validate12(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
2767
2780
|
return false;
|
|
2768
2781
|
}
|
|
2769
2782
|
}
|
|
2770
|
-
var valid7 =
|
|
2783
|
+
var valid7 = _errs56 === errors;
|
|
2771
2784
|
}
|
|
2772
2785
|
else {
|
|
2773
2786
|
var valid7 = true;
|
|
2774
2787
|
}
|
|
2775
2788
|
if (valid7) {
|
|
2776
|
-
if (
|
|
2777
|
-
const
|
|
2778
|
-
if (typeof
|
|
2789
|
+
if (data24.id !== undefined) {
|
|
2790
|
+
const _errs58 = errors;
|
|
2791
|
+
if (typeof data24.id !== "string") {
|
|
2779
2792
|
validate12.errors = [{ instancePath: instancePath + "/entryPoints/" + i2 + "/id", schemaPath: "#/properties/entryPoints/items/properties/id/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
2780
2793
|
return false;
|
|
2781
2794
|
}
|
|
2782
|
-
var valid7 =
|
|
2795
|
+
var valid7 = _errs58 === errors;
|
|
2783
2796
|
}
|
|
2784
2797
|
else {
|
|
2785
2798
|
var valid7 = true;
|
|
2786
2799
|
}
|
|
2787
2800
|
if (valid7) {
|
|
2788
|
-
if (
|
|
2789
|
-
const
|
|
2790
|
-
if (typeof
|
|
2801
|
+
if (data24.main !== undefined) {
|
|
2802
|
+
const _errs60 = errors;
|
|
2803
|
+
if (typeof data24.main !== "string") {
|
|
2791
2804
|
validate12.errors = [{ instancePath: instancePath + "/entryPoints/" + i2 + "/main", schemaPath: "#/properties/entryPoints/items/properties/main/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
2792
2805
|
return false;
|
|
2793
2806
|
}
|
|
2794
|
-
var valid7 =
|
|
2807
|
+
var valid7 = _errs60 === errors;
|
|
2795
2808
|
}
|
|
2796
2809
|
else {
|
|
2797
2810
|
var valid7 = true;
|
|
2798
2811
|
}
|
|
2799
2812
|
if (valid7) {
|
|
2800
|
-
if (
|
|
2801
|
-
const
|
|
2802
|
-
if (typeof
|
|
2813
|
+
if (data24.script !== undefined) {
|
|
2814
|
+
const _errs62 = errors;
|
|
2815
|
+
if (typeof data24.script !== "string") {
|
|
2803
2816
|
validate12.errors = [{ instancePath: instancePath + "/entryPoints/" + i2 + "/script", schemaPath: "#/properties/entryPoints/items/properties/script/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
2804
2817
|
return false;
|
|
2805
2818
|
}
|
|
2806
|
-
var valid7 =
|
|
2819
|
+
var valid7 = _errs62 === errors;
|
|
2807
2820
|
}
|
|
2808
2821
|
else {
|
|
2809
2822
|
var valid7 = true;
|
|
2810
2823
|
}
|
|
2811
2824
|
if (valid7) {
|
|
2812
|
-
if (
|
|
2813
|
-
const
|
|
2814
|
-
if (typeof
|
|
2825
|
+
if (data24.documentSandbox !== undefined) {
|
|
2826
|
+
const _errs64 = errors;
|
|
2827
|
+
if (typeof data24.documentSandbox !== "string") {
|
|
2815
2828
|
validate12.errors = [{ instancePath: instancePath + "/entryPoints/" + i2 + "/documentSandbox", schemaPath: "#/properties/entryPoints/items/properties/documentSandbox/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
2816
2829
|
return false;
|
|
2817
2830
|
}
|
|
2818
|
-
var valid7 =
|
|
2831
|
+
var valid7 = _errs64 === errors;
|
|
2819
2832
|
}
|
|
2820
2833
|
else {
|
|
2821
2834
|
var valid7 = true;
|
|
2822
2835
|
}
|
|
2823
2836
|
if (valid7) {
|
|
2824
|
-
if (
|
|
2825
|
-
const
|
|
2826
|
-
if (typeof
|
|
2837
|
+
if (data24.hostDomain !== undefined) {
|
|
2838
|
+
const _errs66 = errors;
|
|
2839
|
+
if (typeof data24.hostDomain !== "string") {
|
|
2827
2840
|
validate12.errors = [{ instancePath: instancePath + "/entryPoints/" + i2 + "/hostDomain", schemaPath: "#/properties/entryPoints/items/properties/hostDomain/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
2828
2841
|
return false;
|
|
2829
2842
|
}
|
|
2830
|
-
var valid7 =
|
|
2843
|
+
var valid7 = _errs66 === errors;
|
|
2831
2844
|
}
|
|
2832
2845
|
else {
|
|
2833
2846
|
var valid7 = true;
|
|
2834
2847
|
}
|
|
2835
2848
|
if (valid7) {
|
|
2836
|
-
if (
|
|
2837
|
-
let
|
|
2838
|
-
const
|
|
2839
|
-
if (errors ===
|
|
2840
|
-
if (
|
|
2841
|
-
const
|
|
2842
|
-
for (const key4 in
|
|
2849
|
+
if (data24.permissions !== undefined) {
|
|
2850
|
+
let data31 = data24.permissions;
|
|
2851
|
+
const _errs68 = errors;
|
|
2852
|
+
if (errors === _errs68) {
|
|
2853
|
+
if (data31 && typeof data31 == "object" && !Array.isArray(data31)) {
|
|
2854
|
+
const _errs70 = errors;
|
|
2855
|
+
for (const key4 in data31) {
|
|
2843
2856
|
if (!(((((key4 === "sandbox") || (key4 === "oauth")) || (key4 === "microphone")) || (key4 === "camera")) || (key4 === "clipboard"))) {
|
|
2844
2857
|
validate12.errors = [{ instancePath: instancePath + "/entryPoints/" + i2 + "/permissions", schemaPath: "#/properties/entryPoints/items/properties/permissions/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key4 }, message: "must NOT have additional properties" }];
|
|
2845
2858
|
return false;
|
|
2846
2859
|
break;
|
|
2847
2860
|
}
|
|
2848
2861
|
}
|
|
2849
|
-
if (
|
|
2850
|
-
if (
|
|
2851
|
-
let
|
|
2852
|
-
const
|
|
2853
|
-
if (errors ===
|
|
2854
|
-
if (Array.isArray(
|
|
2862
|
+
if (_errs70 === errors) {
|
|
2863
|
+
if (data31.sandbox !== undefined) {
|
|
2864
|
+
let data32 = data31.sandbox;
|
|
2865
|
+
const _errs71 = errors;
|
|
2866
|
+
if (errors === _errs71) {
|
|
2867
|
+
if (Array.isArray(data32)) {
|
|
2855
2868
|
var valid9 = true;
|
|
2856
|
-
const len3 =
|
|
2869
|
+
const len3 = data32.length;
|
|
2857
2870
|
for (let i3 = 0; i3 < len3; i3++) {
|
|
2858
|
-
let
|
|
2859
|
-
const
|
|
2860
|
-
if (errors ===
|
|
2861
|
-
if (typeof
|
|
2862
|
-
if (!pattern4.test(
|
|
2863
|
-
validate12.errors = [{ instancePath: instancePath + "/entryPoints/" + i2 + "/permissions/sandbox/" + i3, 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)$" }, message: "must match pattern \"" + "^(allow-popups|allow-presentation|allow-downloads|allow-popups-to-escape-sandbox)$" + "\"" }];
|
|
2871
|
+
let data33 = data32[i3];
|
|
2872
|
+
const _errs73 = errors;
|
|
2873
|
+
if (errors === _errs73) {
|
|
2874
|
+
if (typeof data33 === "string") {
|
|
2875
|
+
if (!pattern4.test(data33)) {
|
|
2876
|
+
validate12.errors = [{ instancePath: instancePath + "/entryPoints/" + i2 + "/permissions/sandbox/" + i3, 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)$" + "\"" }];
|
|
2864
2877
|
return false;
|
|
2865
2878
|
}
|
|
2866
2879
|
}
|
|
@@ -2869,7 +2882,7 @@ function validate12(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
2869
2882
|
return false;
|
|
2870
2883
|
}
|
|
2871
2884
|
}
|
|
2872
|
-
var valid9 =
|
|
2885
|
+
var valid9 = _errs73 === errors;
|
|
2873
2886
|
if (!valid9) {
|
|
2874
2887
|
break;
|
|
2875
2888
|
}
|
|
@@ -2880,26 +2893,26 @@ function validate12(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
2880
2893
|
return false;
|
|
2881
2894
|
}
|
|
2882
2895
|
}
|
|
2883
|
-
var valid8 =
|
|
2896
|
+
var valid8 = _errs71 === errors;
|
|
2884
2897
|
}
|
|
2885
2898
|
else {
|
|
2886
2899
|
var valid8 = true;
|
|
2887
2900
|
}
|
|
2888
2901
|
if (valid8) {
|
|
2889
|
-
if (
|
|
2890
|
-
let
|
|
2891
|
-
const
|
|
2892
|
-
if (errors ===
|
|
2893
|
-
if (Array.isArray(
|
|
2902
|
+
if (data31.oauth !== undefined) {
|
|
2903
|
+
let data34 = data31.oauth;
|
|
2904
|
+
const _errs75 = errors;
|
|
2905
|
+
if (errors === _errs75) {
|
|
2906
|
+
if (Array.isArray(data34)) {
|
|
2894
2907
|
var valid10 = true;
|
|
2895
|
-
const len4 =
|
|
2908
|
+
const len4 = data34.length;
|
|
2896
2909
|
for (let i4 = 0; i4 < len4; i4++) {
|
|
2897
|
-
const
|
|
2898
|
-
if (typeof
|
|
2910
|
+
const _errs77 = errors;
|
|
2911
|
+
if (typeof data34[i4] !== "string") {
|
|
2899
2912
|
validate12.errors = [{ instancePath: instancePath + "/entryPoints/" + i2 + "/permissions/oauth/" + i4, schemaPath: "#/properties/entryPoints/items/properties/permissions/properties/oauth/items/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
2900
2913
|
return false;
|
|
2901
2914
|
}
|
|
2902
|
-
var valid10 =
|
|
2915
|
+
var valid10 = _errs77 === errors;
|
|
2903
2916
|
if (!valid10) {
|
|
2904
2917
|
break;
|
|
2905
2918
|
}
|
|
@@ -2910,49 +2923,49 @@ function validate12(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
2910
2923
|
return false;
|
|
2911
2924
|
}
|
|
2912
2925
|
}
|
|
2913
|
-
var valid8 =
|
|
2926
|
+
var valid8 = _errs75 === errors;
|
|
2914
2927
|
}
|
|
2915
2928
|
else {
|
|
2916
2929
|
var valid8 = true;
|
|
2917
2930
|
}
|
|
2918
2931
|
if (valid8) {
|
|
2919
|
-
if (
|
|
2920
|
-
const
|
|
2921
|
-
if (typeof
|
|
2932
|
+
if (data31.microphone !== undefined) {
|
|
2933
|
+
const _errs79 = errors;
|
|
2934
|
+
if (typeof data31.microphone !== "string") {
|
|
2922
2935
|
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" }];
|
|
2923
2936
|
return false;
|
|
2924
2937
|
}
|
|
2925
|
-
var valid8 =
|
|
2938
|
+
var valid8 = _errs79 === errors;
|
|
2926
2939
|
}
|
|
2927
2940
|
else {
|
|
2928
2941
|
var valid8 = true;
|
|
2929
2942
|
}
|
|
2930
2943
|
if (valid8) {
|
|
2931
|
-
if (
|
|
2932
|
-
const
|
|
2933
|
-
if (typeof
|
|
2944
|
+
if (data31.camera !== undefined) {
|
|
2945
|
+
const _errs81 = errors;
|
|
2946
|
+
if (typeof data31.camera !== "string") {
|
|
2934
2947
|
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" }];
|
|
2935
2948
|
return false;
|
|
2936
2949
|
}
|
|
2937
|
-
var valid8 =
|
|
2950
|
+
var valid8 = _errs81 === errors;
|
|
2938
2951
|
}
|
|
2939
2952
|
else {
|
|
2940
2953
|
var valid8 = true;
|
|
2941
2954
|
}
|
|
2942
2955
|
if (valid8) {
|
|
2943
|
-
if (
|
|
2944
|
-
let
|
|
2945
|
-
const
|
|
2946
|
-
if (errors ===
|
|
2947
|
-
if (Array.isArray(
|
|
2956
|
+
if (data31.clipboard !== undefined) {
|
|
2957
|
+
let data38 = data31.clipboard;
|
|
2958
|
+
const _errs83 = errors;
|
|
2959
|
+
if (errors === _errs83) {
|
|
2960
|
+
if (Array.isArray(data38)) {
|
|
2948
2961
|
var valid11 = true;
|
|
2949
|
-
const len5 =
|
|
2962
|
+
const len5 = data38.length;
|
|
2950
2963
|
for (let i5 = 0; i5 < len5; i5++) {
|
|
2951
|
-
let
|
|
2952
|
-
const
|
|
2953
|
-
if (errors ===
|
|
2954
|
-
if (typeof
|
|
2955
|
-
if (!pattern16.test(
|
|
2964
|
+
let data39 = data38[i5];
|
|
2965
|
+
const _errs85 = errors;
|
|
2966
|
+
if (errors === _errs85) {
|
|
2967
|
+
if (typeof data39 === "string") {
|
|
2968
|
+
if (!pattern16.test(data39)) {
|
|
2956
2969
|
validate12.errors = [{ instancePath: instancePath + "/entryPoints/" + i2 + "/permissions/clipboard/" + i5, 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)$" + "\"" }];
|
|
2957
2970
|
return false;
|
|
2958
2971
|
}
|
|
@@ -2962,7 +2975,7 @@ function validate12(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
2962
2975
|
return false;
|
|
2963
2976
|
}
|
|
2964
2977
|
}
|
|
2965
|
-
var valid11 =
|
|
2978
|
+
var valid11 = _errs85 === errors;
|
|
2966
2979
|
if (!valid11) {
|
|
2967
2980
|
break;
|
|
2968
2981
|
}
|
|
@@ -2973,7 +2986,7 @@ function validate12(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
2973
2986
|
return false;
|
|
2974
2987
|
}
|
|
2975
2988
|
}
|
|
2976
|
-
var valid8 =
|
|
2989
|
+
var valid8 = _errs83 === errors;
|
|
2977
2990
|
}
|
|
2978
2991
|
else {
|
|
2979
2992
|
var valid8 = true;
|
|
@@ -2989,53 +3002,53 @@ function validate12(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
2989
3002
|
return false;
|
|
2990
3003
|
}
|
|
2991
3004
|
}
|
|
2992
|
-
var valid7 =
|
|
3005
|
+
var valid7 = _errs68 === errors;
|
|
2993
3006
|
}
|
|
2994
3007
|
else {
|
|
2995
3008
|
var valid7 = true;
|
|
2996
3009
|
}
|
|
2997
3010
|
if (valid7) {
|
|
2998
|
-
if (
|
|
2999
|
-
let
|
|
3000
|
-
const
|
|
3001
|
-
if (errors ===
|
|
3002
|
-
if (
|
|
3011
|
+
if (data24.defaultSize !== undefined) {
|
|
3012
|
+
let data40 = data24.defaultSize;
|
|
3013
|
+
const _errs87 = errors;
|
|
3014
|
+
if (errors === _errs87) {
|
|
3015
|
+
if (data40 && typeof data40 == "object" && !Array.isArray(data40)) {
|
|
3003
3016
|
let missing4;
|
|
3004
|
-
if (((
|
|
3017
|
+
if (((data40.width === undefined) && (missing4 = "width")) || ((data40.height === undefined) && (missing4 = "height"))) {
|
|
3005
3018
|
validate12.errors = [{ instancePath: instancePath + "/entryPoints/" + i2 + "/defaultSize", schemaPath: "#/properties/entryPoints/items/properties/defaultSize/required", keyword: "required", params: { missingProperty: missing4 }, message: "must have required property '" + missing4 + "'" }];
|
|
3006
3019
|
return false;
|
|
3007
3020
|
}
|
|
3008
3021
|
else {
|
|
3009
|
-
const
|
|
3010
|
-
for (const key5 in
|
|
3022
|
+
const _errs89 = errors;
|
|
3023
|
+
for (const key5 in data40) {
|
|
3011
3024
|
if (!((key5 === "width") || (key5 === "height"))) {
|
|
3012
3025
|
validate12.errors = [{ instancePath: instancePath + "/entryPoints/" + i2 + "/defaultSize", schemaPath: "#/properties/entryPoints/items/properties/defaultSize/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key5 }, message: "must NOT have additional properties" }];
|
|
3013
3026
|
return false;
|
|
3014
3027
|
break;
|
|
3015
3028
|
}
|
|
3016
3029
|
}
|
|
3017
|
-
if (
|
|
3018
|
-
if (
|
|
3019
|
-
let
|
|
3020
|
-
const
|
|
3021
|
-
if (!((typeof
|
|
3030
|
+
if (_errs89 === errors) {
|
|
3031
|
+
if (data40.width !== undefined) {
|
|
3032
|
+
let data41 = data40.width;
|
|
3033
|
+
const _errs90 = errors;
|
|
3034
|
+
if (!((typeof data41 == "number") && (isFinite(data41)))) {
|
|
3022
3035
|
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" }];
|
|
3023
3036
|
return false;
|
|
3024
3037
|
}
|
|
3025
|
-
var valid12 =
|
|
3038
|
+
var valid12 = _errs90 === errors;
|
|
3026
3039
|
}
|
|
3027
3040
|
else {
|
|
3028
3041
|
var valid12 = true;
|
|
3029
3042
|
}
|
|
3030
3043
|
if (valid12) {
|
|
3031
|
-
if (
|
|
3032
|
-
let
|
|
3033
|
-
const
|
|
3034
|
-
if (!((typeof
|
|
3044
|
+
if (data40.height !== undefined) {
|
|
3045
|
+
let data42 = data40.height;
|
|
3046
|
+
const _errs92 = errors;
|
|
3047
|
+
if (!((typeof data42 == "number") && (isFinite(data42)))) {
|
|
3035
3048
|
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" }];
|
|
3036
3049
|
return false;
|
|
3037
3050
|
}
|
|
3038
|
-
var valid12 =
|
|
3051
|
+
var valid12 = _errs92 === errors;
|
|
3039
3052
|
}
|
|
3040
3053
|
else {
|
|
3041
3054
|
var valid12 = true;
|
|
@@ -3049,19 +3062,19 @@ function validate12(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
3049
3062
|
return false;
|
|
3050
3063
|
}
|
|
3051
3064
|
}
|
|
3052
|
-
var valid7 =
|
|
3065
|
+
var valid7 = _errs87 === errors;
|
|
3053
3066
|
}
|
|
3054
3067
|
else {
|
|
3055
3068
|
var valid7 = true;
|
|
3056
3069
|
}
|
|
3057
3070
|
if (valid7) {
|
|
3058
|
-
if (
|
|
3059
|
-
const
|
|
3060
|
-
if (typeof
|
|
3071
|
+
if (data24.discoverable !== undefined) {
|
|
3072
|
+
const _errs94 = errors;
|
|
3073
|
+
if (typeof data24.discoverable !== "boolean") {
|
|
3061
3074
|
validate12.errors = [{ instancePath: instancePath + "/entryPoints/" + i2 + "/discoverable", schemaPath: "#/properties/entryPoints/items/properties/discoverable/type", keyword: "type", params: { type: "boolean" }, message: "must be boolean" }];
|
|
3062
3075
|
return false;
|
|
3063
3076
|
}
|
|
3064
|
-
var valid7 =
|
|
3077
|
+
var valid7 = _errs94 === errors;
|
|
3065
3078
|
}
|
|
3066
3079
|
else {
|
|
3067
3080
|
var valid7 = true;
|
|
@@ -3082,7 +3095,7 @@ function validate12(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
3082
3095
|
return false;
|
|
3083
3096
|
}
|
|
3084
3097
|
}
|
|
3085
|
-
var valid6 =
|
|
3098
|
+
var valid6 = _errs53 === errors;
|
|
3086
3099
|
if (!valid6) {
|
|
3087
3100
|
break;
|
|
3088
3101
|
}
|
|
@@ -3093,7 +3106,7 @@ function validate12(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
3093
3106
|
return false;
|
|
3094
3107
|
}
|
|
3095
3108
|
}
|
|
3096
|
-
var valid0 =
|
|
3109
|
+
var valid0 = _errs51 === errors;
|
|
3097
3110
|
}
|
|
3098
3111
|
else {
|
|
3099
3112
|
var valid0 = true;
|