diff --git a/plugins/autostart/permissions/schemas/schema.json b/plugins/autostart/permissions/schemas/schema.json index 594e42188..7cc6cab1d 100644 --- a/plugins/autostart/permissions/schemas/schema.json +++ b/plugins/autostart/permissions/schemas/schema.json @@ -1,5 +1,5 @@ { - "$schema": "https://json-schema.org/draft/2020-12/schema", + "$schema": "http://json-schema.org/draft-07/schema#", "title": "PermissionFile", "description": "Permission file that can define a default permission, a set of permissions or a list of inlined permissions.", "type": "object", @@ -8,7 +8,7 @@ "description": "The default permission set for the plugin", "anyOf": [ { - "$ref": "#/$defs/DefaultPermission" + "$ref": "#/definitions/DefaultPermission" }, { "type": "null" @@ -19,19 +19,19 @@ "description": "A list of permissions sets defined", "type": "array", "items": { - "$ref": "#/$defs/PermissionSet" + "$ref": "#/definitions/PermissionSet" } }, "permission": { "description": "A list of inlined permissions", "type": "array", "items": { - "$ref": "#/$defs/Permission" + "$ref": "#/definitions/Permission" }, "default": [] } }, - "$defs": { + "definitions": { "DefaultPermission": { "description": "The default permission set of the plugin.\n\nWorks similarly to a permission with the \"default\" identifier.", "type": "object", @@ -80,7 +80,7 @@ "description": "All permissions this set contains.", "type": "array", "items": { - "$ref": "#/$defs/PermissionKind" + "type": "string" } } }, @@ -116,15 +116,23 @@ }, "commands": { "description": "Allowed or denied commands when using this permission.", - "$ref": "#/$defs/Commands", "default": { "allow": [], "deny": [] - } + }, + "allOf": [ + { + "$ref": "#/definitions/Commands" + } + ] }, "scope": { "description": "Allowed or denied scoped when using this permission.", - "$ref": "#/$defs/Scopes" + "allOf": [ + { + "$ref": "#/definitions/Scopes" + } + ] }, "platforms": { "description": "Target platforms this permission applies. By default all platforms are affected by this permission.", @@ -133,7 +141,7 @@ "null" ], "items": { - "$ref": "#/$defs/Target" + "$ref": "#/definitions/Target" } } }, @@ -174,7 +182,7 @@ "null" ], "items": { - "$ref": "#/$defs/Value" + "$ref": "#/definitions/Value" } }, "deny": { @@ -184,7 +192,7 @@ "null" ], "items": { - "$ref": "#/$defs/Value" + "$ref": "#/definitions/Value" } } } @@ -202,7 +210,11 @@ }, { "description": "Represents a valid ACL [`Number`].", - "$ref": "#/$defs/Number" + "allOf": [ + { + "$ref": "#/definitions/Number" + } + ] }, { "description": "Represents a [`String`].", @@ -212,14 +224,14 @@ "description": "Represents a list of other [`Value`]s.", "type": "array", "items": { - "$ref": "#/$defs/Value" + "$ref": "#/definitions/Value" } }, { "description": "Represents a map of [`String`] keys to [`Value`]s.", "type": "object", "additionalProperties": { - "$ref": "#/$defs/Value" + "$ref": "#/definitions/Value" } } ] @@ -268,53 +280,6 @@ "const": "iOS" } ] - }, - "PermissionKind": { - "type": "string", - "oneOf": [ - { - "description": "Enables the disable command without any pre-configured scope.", - "type": "string", - "const": "allow-disable", - "markdownDescription": "Enables the disable command without any pre-configured scope." - }, - { - "description": "Denies the disable command without any pre-configured scope.", - "type": "string", - "const": "deny-disable", - "markdownDescription": "Denies the disable command without any pre-configured scope." - }, - { - "description": "Enables the enable command without any pre-configured scope.", - "type": "string", - "const": "allow-enable", - "markdownDescription": "Enables the enable command without any pre-configured scope." - }, - { - "description": "Denies the enable command without any pre-configured scope.", - "type": "string", - "const": "deny-enable", - "markdownDescription": "Denies the enable command without any pre-configured scope." - }, - { - "description": "Enables the is_enabled command without any pre-configured scope.", - "type": "string", - "const": "allow-is-enabled", - "markdownDescription": "Enables the is_enabled command without any pre-configured scope." - }, - { - "description": "Denies the is_enabled command without any pre-configured scope.", - "type": "string", - "const": "deny-is-enabled", - "markdownDescription": "Denies the is_enabled command without any pre-configured scope." - }, - { - "description": "This permission set configures if your\napplication can enable or disable auto\nstarting the application on boot.\n\n#### Granted Permissions\n\nIt allows all to check, enable and\ndisable the automatic start on boot.\n\n\n#### This default permission set includes:\n\n- `allow-enable`\n- `allow-disable`\n- `allow-is-enabled`", - "type": "string", - "const": "default", - "markdownDescription": "This permission set configures if your\napplication can enable or disable auto\nstarting the application on boot.\n\n#### Granted Permissions\n\nIt allows all to check, enable and\ndisable the automatic start on boot.\n\n\n#### This default permission set includes:\n\n- `allow-enable`\n- `allow-disable`\n- `allow-is-enabled`" - } - ] } } } \ No newline at end of file diff --git a/plugins/barcode-scanner/permissions/schemas/schema.json b/plugins/barcode-scanner/permissions/schemas/schema.json index c95ce2a73..7cc6cab1d 100644 --- a/plugins/barcode-scanner/permissions/schemas/schema.json +++ b/plugins/barcode-scanner/permissions/schemas/schema.json @@ -1,5 +1,5 @@ { - "$schema": "https://json-schema.org/draft/2020-12/schema", + "$schema": "http://json-schema.org/draft-07/schema#", "title": "PermissionFile", "description": "Permission file that can define a default permission, a set of permissions or a list of inlined permissions.", "type": "object", @@ -8,7 +8,7 @@ "description": "The default permission set for the plugin", "anyOf": [ { - "$ref": "#/$defs/DefaultPermission" + "$ref": "#/definitions/DefaultPermission" }, { "type": "null" @@ -19,19 +19,19 @@ "description": "A list of permissions sets defined", "type": "array", "items": { - "$ref": "#/$defs/PermissionSet" + "$ref": "#/definitions/PermissionSet" } }, "permission": { "description": "A list of inlined permissions", "type": "array", "items": { - "$ref": "#/$defs/Permission" + "$ref": "#/definitions/Permission" }, "default": [] } }, - "$defs": { + "definitions": { "DefaultPermission": { "description": "The default permission set of the plugin.\n\nWorks similarly to a permission with the \"default\" identifier.", "type": "object", @@ -80,7 +80,7 @@ "description": "All permissions this set contains.", "type": "array", "items": { - "$ref": "#/$defs/PermissionKind" + "type": "string" } } }, @@ -116,15 +116,23 @@ }, "commands": { "description": "Allowed or denied commands when using this permission.", - "$ref": "#/$defs/Commands", "default": { "allow": [], "deny": [] - } + }, + "allOf": [ + { + "$ref": "#/definitions/Commands" + } + ] }, "scope": { "description": "Allowed or denied scoped when using this permission.", - "$ref": "#/$defs/Scopes" + "allOf": [ + { + "$ref": "#/definitions/Scopes" + } + ] }, "platforms": { "description": "Target platforms this permission applies. By default all platforms are affected by this permission.", @@ -133,7 +141,7 @@ "null" ], "items": { - "$ref": "#/$defs/Target" + "$ref": "#/definitions/Target" } } }, @@ -174,7 +182,7 @@ "null" ], "items": { - "$ref": "#/$defs/Value" + "$ref": "#/definitions/Value" } }, "deny": { @@ -184,7 +192,7 @@ "null" ], "items": { - "$ref": "#/$defs/Value" + "$ref": "#/definitions/Value" } } } @@ -202,7 +210,11 @@ }, { "description": "Represents a valid ACL [`Number`].", - "$ref": "#/$defs/Number" + "allOf": [ + { + "$ref": "#/definitions/Number" + } + ] }, { "description": "Represents a [`String`].", @@ -212,14 +224,14 @@ "description": "Represents a list of other [`Value`]s.", "type": "array", "items": { - "$ref": "#/$defs/Value" + "$ref": "#/definitions/Value" } }, { "description": "Represents a map of [`String`] keys to [`Value`]s.", "type": "object", "additionalProperties": { - "$ref": "#/$defs/Value" + "$ref": "#/definitions/Value" } } ] @@ -268,89 +280,6 @@ "const": "iOS" } ] - }, - "PermissionKind": { - "type": "string", - "oneOf": [ - { - "description": "Enables the cancel command without any pre-configured scope.", - "type": "string", - "const": "allow-cancel", - "markdownDescription": "Enables the cancel command without any pre-configured scope." - }, - { - "description": "Denies the cancel command without any pre-configured scope.", - "type": "string", - "const": "deny-cancel", - "markdownDescription": "Denies the cancel command without any pre-configured scope." - }, - { - "description": "Enables the check_permissions command without any pre-configured scope.", - "type": "string", - "const": "allow-check-permissions", - "markdownDescription": "Enables the check_permissions command without any pre-configured scope." - }, - { - "description": "Denies the check_permissions command without any pre-configured scope.", - "type": "string", - "const": "deny-check-permissions", - "markdownDescription": "Denies the check_permissions command without any pre-configured scope." - }, - { - "description": "Enables the open_app_settings command without any pre-configured scope.", - "type": "string", - "const": "allow-open-app-settings", - "markdownDescription": "Enables the open_app_settings command without any pre-configured scope." - }, - { - "description": "Denies the open_app_settings command without any pre-configured scope.", - "type": "string", - "const": "deny-open-app-settings", - "markdownDescription": "Denies the open_app_settings command without any pre-configured scope." - }, - { - "description": "Enables the request_permissions command without any pre-configured scope.", - "type": "string", - "const": "allow-request-permissions", - "markdownDescription": "Enables the request_permissions command without any pre-configured scope." - }, - { - "description": "Denies the request_permissions command without any pre-configured scope.", - "type": "string", - "const": "deny-request-permissions", - "markdownDescription": "Denies the request_permissions command without any pre-configured scope." - }, - { - "description": "Enables the scan command without any pre-configured scope.", - "type": "string", - "const": "allow-scan", - "markdownDescription": "Enables the scan command without any pre-configured scope." - }, - { - "description": "Denies the scan command without any pre-configured scope.", - "type": "string", - "const": "deny-scan", - "markdownDescription": "Denies the scan command without any pre-configured scope." - }, - { - "description": "Enables the vibrate command without any pre-configured scope.", - "type": "string", - "const": "allow-vibrate", - "markdownDescription": "Enables the vibrate command without any pre-configured scope." - }, - { - "description": "Denies the vibrate command without any pre-configured scope.", - "type": "string", - "const": "deny-vibrate", - "markdownDescription": "Denies the vibrate command without any pre-configured scope." - }, - { - "description": "This permission set configures which\nbarcode scanning features are by default exposed.\n\n#### Granted Permissions\n\nIt allows all barcode related features.\n\n\n#### This default permission set includes:\n\n- `allow-cancel`\n- `allow-check-permissions`\n- `allow-open-app-settings`\n- `allow-request-permissions`\n- `allow-scan`\n- `allow-vibrate`", - "type": "string", - "const": "default", - "markdownDescription": "This permission set configures which\nbarcode scanning features are by default exposed.\n\n#### Granted Permissions\n\nIt allows all barcode related features.\n\n\n#### This default permission set includes:\n\n- `allow-cancel`\n- `allow-check-permissions`\n- `allow-open-app-settings`\n- `allow-request-permissions`\n- `allow-scan`\n- `allow-vibrate`" - } - ] } } } \ No newline at end of file diff --git a/plugins/biometric/permissions/schemas/schema.json b/plugins/biometric/permissions/schemas/schema.json index 993744ad5..7cc6cab1d 100644 --- a/plugins/biometric/permissions/schemas/schema.json +++ b/plugins/biometric/permissions/schemas/schema.json @@ -1,5 +1,5 @@ { - "$schema": "https://json-schema.org/draft/2020-12/schema", + "$schema": "http://json-schema.org/draft-07/schema#", "title": "PermissionFile", "description": "Permission file that can define a default permission, a set of permissions or a list of inlined permissions.", "type": "object", @@ -8,7 +8,7 @@ "description": "The default permission set for the plugin", "anyOf": [ { - "$ref": "#/$defs/DefaultPermission" + "$ref": "#/definitions/DefaultPermission" }, { "type": "null" @@ -19,19 +19,19 @@ "description": "A list of permissions sets defined", "type": "array", "items": { - "$ref": "#/$defs/PermissionSet" + "$ref": "#/definitions/PermissionSet" } }, "permission": { "description": "A list of inlined permissions", "type": "array", "items": { - "$ref": "#/$defs/Permission" + "$ref": "#/definitions/Permission" }, "default": [] } }, - "$defs": { + "definitions": { "DefaultPermission": { "description": "The default permission set of the plugin.\n\nWorks similarly to a permission with the \"default\" identifier.", "type": "object", @@ -80,7 +80,7 @@ "description": "All permissions this set contains.", "type": "array", "items": { - "$ref": "#/$defs/PermissionKind" + "type": "string" } } }, @@ -116,15 +116,23 @@ }, "commands": { "description": "Allowed or denied commands when using this permission.", - "$ref": "#/$defs/Commands", "default": { "allow": [], "deny": [] - } + }, + "allOf": [ + { + "$ref": "#/definitions/Commands" + } + ] }, "scope": { "description": "Allowed or denied scoped when using this permission.", - "$ref": "#/$defs/Scopes" + "allOf": [ + { + "$ref": "#/definitions/Scopes" + } + ] }, "platforms": { "description": "Target platforms this permission applies. By default all platforms are affected by this permission.", @@ -133,7 +141,7 @@ "null" ], "items": { - "$ref": "#/$defs/Target" + "$ref": "#/definitions/Target" } } }, @@ -174,7 +182,7 @@ "null" ], "items": { - "$ref": "#/$defs/Value" + "$ref": "#/definitions/Value" } }, "deny": { @@ -184,7 +192,7 @@ "null" ], "items": { - "$ref": "#/$defs/Value" + "$ref": "#/definitions/Value" } } } @@ -202,7 +210,11 @@ }, { "description": "Represents a valid ACL [`Number`].", - "$ref": "#/$defs/Number" + "allOf": [ + { + "$ref": "#/definitions/Number" + } + ] }, { "description": "Represents a [`String`].", @@ -212,14 +224,14 @@ "description": "Represents a list of other [`Value`]s.", "type": "array", "items": { - "$ref": "#/$defs/Value" + "$ref": "#/definitions/Value" } }, { "description": "Represents a map of [`String`] keys to [`Value`]s.", "type": "object", "additionalProperties": { - "$ref": "#/$defs/Value" + "$ref": "#/definitions/Value" } } ] @@ -268,41 +280,6 @@ "const": "iOS" } ] - }, - "PermissionKind": { - "type": "string", - "oneOf": [ - { - "description": "Enables the authenticate command without any pre-configured scope.", - "type": "string", - "const": "allow-authenticate", - "markdownDescription": "Enables the authenticate command without any pre-configured scope." - }, - { - "description": "Denies the authenticate command without any pre-configured scope.", - "type": "string", - "const": "deny-authenticate", - "markdownDescription": "Denies the authenticate command without any pre-configured scope." - }, - { - "description": "Enables the status command without any pre-configured scope.", - "type": "string", - "const": "allow-status", - "markdownDescription": "Enables the status command without any pre-configured scope." - }, - { - "description": "Denies the status command without any pre-configured scope.", - "type": "string", - "const": "deny-status", - "markdownDescription": "Denies the status command without any pre-configured scope." - }, - { - "description": "This permission set configures which\nbiometric features are by default exposed.\n\n#### Granted Permissions\n\nIt allows acccess to all biometric commands.\n\n\n#### This default permission set includes:\n\n- `allow-authenticate`\n- `allow-status`", - "type": "string", - "const": "default", - "markdownDescription": "This permission set configures which\nbiometric features are by default exposed.\n\n#### Granted Permissions\n\nIt allows acccess to all biometric commands.\n\n\n#### This default permission set includes:\n\n- `allow-authenticate`\n- `allow-status`" - } - ] } } } \ No newline at end of file diff --git a/plugins/cli/permissions/schemas/schema.json b/plugins/cli/permissions/schemas/schema.json index 72189483a..7cc6cab1d 100644 --- a/plugins/cli/permissions/schemas/schema.json +++ b/plugins/cli/permissions/schemas/schema.json @@ -1,5 +1,5 @@ { - "$schema": "https://json-schema.org/draft/2020-12/schema", + "$schema": "http://json-schema.org/draft-07/schema#", "title": "PermissionFile", "description": "Permission file that can define a default permission, a set of permissions or a list of inlined permissions.", "type": "object", @@ -8,7 +8,7 @@ "description": "The default permission set for the plugin", "anyOf": [ { - "$ref": "#/$defs/DefaultPermission" + "$ref": "#/definitions/DefaultPermission" }, { "type": "null" @@ -19,19 +19,19 @@ "description": "A list of permissions sets defined", "type": "array", "items": { - "$ref": "#/$defs/PermissionSet" + "$ref": "#/definitions/PermissionSet" } }, "permission": { "description": "A list of inlined permissions", "type": "array", "items": { - "$ref": "#/$defs/Permission" + "$ref": "#/definitions/Permission" }, "default": [] } }, - "$defs": { + "definitions": { "DefaultPermission": { "description": "The default permission set of the plugin.\n\nWorks similarly to a permission with the \"default\" identifier.", "type": "object", @@ -80,7 +80,7 @@ "description": "All permissions this set contains.", "type": "array", "items": { - "$ref": "#/$defs/PermissionKind" + "type": "string" } } }, @@ -116,15 +116,23 @@ }, "commands": { "description": "Allowed or denied commands when using this permission.", - "$ref": "#/$defs/Commands", "default": { "allow": [], "deny": [] - } + }, + "allOf": [ + { + "$ref": "#/definitions/Commands" + } + ] }, "scope": { "description": "Allowed or denied scoped when using this permission.", - "$ref": "#/$defs/Scopes" + "allOf": [ + { + "$ref": "#/definitions/Scopes" + } + ] }, "platforms": { "description": "Target platforms this permission applies. By default all platforms are affected by this permission.", @@ -133,7 +141,7 @@ "null" ], "items": { - "$ref": "#/$defs/Target" + "$ref": "#/definitions/Target" } } }, @@ -174,7 +182,7 @@ "null" ], "items": { - "$ref": "#/$defs/Value" + "$ref": "#/definitions/Value" } }, "deny": { @@ -184,7 +192,7 @@ "null" ], "items": { - "$ref": "#/$defs/Value" + "$ref": "#/definitions/Value" } } } @@ -202,7 +210,11 @@ }, { "description": "Represents a valid ACL [`Number`].", - "$ref": "#/$defs/Number" + "allOf": [ + { + "$ref": "#/definitions/Number" + } + ] }, { "description": "Represents a [`String`].", @@ -212,14 +224,14 @@ "description": "Represents a list of other [`Value`]s.", "type": "array", "items": { - "$ref": "#/$defs/Value" + "$ref": "#/definitions/Value" } }, { "description": "Represents a map of [`String`] keys to [`Value`]s.", "type": "object", "additionalProperties": { - "$ref": "#/$defs/Value" + "$ref": "#/definitions/Value" } } ] @@ -268,29 +280,6 @@ "const": "iOS" } ] - }, - "PermissionKind": { - "type": "string", - "oneOf": [ - { - "description": "Enables the cli_matches command without any pre-configured scope.", - "type": "string", - "const": "allow-cli-matches", - "markdownDescription": "Enables the cli_matches command without any pre-configured scope." - }, - { - "description": "Denies the cli_matches command without any pre-configured scope.", - "type": "string", - "const": "deny-cli-matches", - "markdownDescription": "Denies the cli_matches command without any pre-configured scope." - }, - { - "description": "Allows reading the CLI matches\n#### This default permission set includes:\n\n- `allow-cli-matches`", - "type": "string", - "const": "default", - "markdownDescription": "Allows reading the CLI matches\n#### This default permission set includes:\n\n- `allow-cli-matches`" - } - ] } } } \ No newline at end of file diff --git a/plugins/clipboard-manager/permissions/schemas/schema.json b/plugins/clipboard-manager/permissions/schemas/schema.json index 65c02f502..7cc6cab1d 100644 --- a/plugins/clipboard-manager/permissions/schemas/schema.json +++ b/plugins/clipboard-manager/permissions/schemas/schema.json @@ -1,5 +1,5 @@ { - "$schema": "https://json-schema.org/draft/2020-12/schema", + "$schema": "http://json-schema.org/draft-07/schema#", "title": "PermissionFile", "description": "Permission file that can define a default permission, a set of permissions or a list of inlined permissions.", "type": "object", @@ -8,7 +8,7 @@ "description": "The default permission set for the plugin", "anyOf": [ { - "$ref": "#/$defs/DefaultPermission" + "$ref": "#/definitions/DefaultPermission" }, { "type": "null" @@ -19,19 +19,19 @@ "description": "A list of permissions sets defined", "type": "array", "items": { - "$ref": "#/$defs/PermissionSet" + "$ref": "#/definitions/PermissionSet" } }, "permission": { "description": "A list of inlined permissions", "type": "array", "items": { - "$ref": "#/$defs/Permission" + "$ref": "#/definitions/Permission" }, "default": [] } }, - "$defs": { + "definitions": { "DefaultPermission": { "description": "The default permission set of the plugin.\n\nWorks similarly to a permission with the \"default\" identifier.", "type": "object", @@ -80,7 +80,7 @@ "description": "All permissions this set contains.", "type": "array", "items": { - "$ref": "#/$defs/PermissionKind" + "type": "string" } } }, @@ -116,15 +116,23 @@ }, "commands": { "description": "Allowed or denied commands when using this permission.", - "$ref": "#/$defs/Commands", "default": { "allow": [], "deny": [] - } + }, + "allOf": [ + { + "$ref": "#/definitions/Commands" + } + ] }, "scope": { "description": "Allowed or denied scoped when using this permission.", - "$ref": "#/$defs/Scopes" + "allOf": [ + { + "$ref": "#/definitions/Scopes" + } + ] }, "platforms": { "description": "Target platforms this permission applies. By default all platforms are affected by this permission.", @@ -133,7 +141,7 @@ "null" ], "items": { - "$ref": "#/$defs/Target" + "$ref": "#/definitions/Target" } } }, @@ -174,7 +182,7 @@ "null" ], "items": { - "$ref": "#/$defs/Value" + "$ref": "#/definitions/Value" } }, "deny": { @@ -184,7 +192,7 @@ "null" ], "items": { - "$ref": "#/$defs/Value" + "$ref": "#/definitions/Value" } } } @@ -202,7 +210,11 @@ }, { "description": "Represents a valid ACL [`Number`].", - "$ref": "#/$defs/Number" + "allOf": [ + { + "$ref": "#/definitions/Number" + } + ] }, { "description": "Represents a [`String`].", @@ -212,14 +224,14 @@ "description": "Represents a list of other [`Value`]s.", "type": "array", "items": { - "$ref": "#/$defs/Value" + "$ref": "#/definitions/Value" } }, { "description": "Represents a map of [`String`] keys to [`Value`]s.", "type": "object", "additionalProperties": { - "$ref": "#/$defs/Value" + "$ref": "#/definitions/Value" } } ] @@ -268,89 +280,6 @@ "const": "iOS" } ] - }, - "PermissionKind": { - "type": "string", - "oneOf": [ - { - "description": "Enables the clear command without any pre-configured scope.", - "type": "string", - "const": "allow-clear", - "markdownDescription": "Enables the clear command without any pre-configured scope." - }, - { - "description": "Denies the clear command without any pre-configured scope.", - "type": "string", - "const": "deny-clear", - "markdownDescription": "Denies the clear command without any pre-configured scope." - }, - { - "description": "Enables the read_image command without any pre-configured scope.", - "type": "string", - "const": "allow-read-image", - "markdownDescription": "Enables the read_image command without any pre-configured scope." - }, - { - "description": "Denies the read_image command without any pre-configured scope.", - "type": "string", - "const": "deny-read-image", - "markdownDescription": "Denies the read_image command without any pre-configured scope." - }, - { - "description": "Enables the read_text command without any pre-configured scope.", - "type": "string", - "const": "allow-read-text", - "markdownDescription": "Enables the read_text command without any pre-configured scope." - }, - { - "description": "Denies the read_text command without any pre-configured scope.", - "type": "string", - "const": "deny-read-text", - "markdownDescription": "Denies the read_text command without any pre-configured scope." - }, - { - "description": "Enables the write_html command without any pre-configured scope.", - "type": "string", - "const": "allow-write-html", - "markdownDescription": "Enables the write_html command without any pre-configured scope." - }, - { - "description": "Denies the write_html command without any pre-configured scope.", - "type": "string", - "const": "deny-write-html", - "markdownDescription": "Denies the write_html command without any pre-configured scope." - }, - { - "description": "Enables the write_image command without any pre-configured scope.", - "type": "string", - "const": "allow-write-image", - "markdownDescription": "Enables the write_image command without any pre-configured scope." - }, - { - "description": "Denies the write_image command without any pre-configured scope.", - "type": "string", - "const": "deny-write-image", - "markdownDescription": "Denies the write_image command without any pre-configured scope." - }, - { - "description": "Enables the write_text command without any pre-configured scope.", - "type": "string", - "const": "allow-write-text", - "markdownDescription": "Enables the write_text command without any pre-configured scope." - }, - { - "description": "Denies the write_text command without any pre-configured scope.", - "type": "string", - "const": "deny-write-text", - "markdownDescription": "Denies the write_text command without any pre-configured scope." - }, - { - "description": "No features are enabled by default, as we believe\nthe clipboard can be inherently dangerous and it is \napplication specific if read and/or write access is needed.\n\nClipboard interaction needs to be explicitly enabled.\n", - "type": "string", - "const": "default", - "markdownDescription": "No features are enabled by default, as we believe\nthe clipboard can be inherently dangerous and it is \napplication specific if read and/or write access is needed.\n\nClipboard interaction needs to be explicitly enabled.\n" - } - ] } } } \ No newline at end of file diff --git a/plugins/deep-link/permissions/schemas/schema.json b/plugins/deep-link/permissions/schemas/schema.json index 2dcd454b0..7cc6cab1d 100644 --- a/plugins/deep-link/permissions/schemas/schema.json +++ b/plugins/deep-link/permissions/schemas/schema.json @@ -1,5 +1,5 @@ { - "$schema": "https://json-schema.org/draft/2020-12/schema", + "$schema": "http://json-schema.org/draft-07/schema#", "title": "PermissionFile", "description": "Permission file that can define a default permission, a set of permissions or a list of inlined permissions.", "type": "object", @@ -8,7 +8,7 @@ "description": "The default permission set for the plugin", "anyOf": [ { - "$ref": "#/$defs/DefaultPermission" + "$ref": "#/definitions/DefaultPermission" }, { "type": "null" @@ -19,19 +19,19 @@ "description": "A list of permissions sets defined", "type": "array", "items": { - "$ref": "#/$defs/PermissionSet" + "$ref": "#/definitions/PermissionSet" } }, "permission": { "description": "A list of inlined permissions", "type": "array", "items": { - "$ref": "#/$defs/Permission" + "$ref": "#/definitions/Permission" }, "default": [] } }, - "$defs": { + "definitions": { "DefaultPermission": { "description": "The default permission set of the plugin.\n\nWorks similarly to a permission with the \"default\" identifier.", "type": "object", @@ -80,7 +80,7 @@ "description": "All permissions this set contains.", "type": "array", "items": { - "$ref": "#/$defs/PermissionKind" + "type": "string" } } }, @@ -116,15 +116,23 @@ }, "commands": { "description": "Allowed or denied commands when using this permission.", - "$ref": "#/$defs/Commands", "default": { "allow": [], "deny": [] - } + }, + "allOf": [ + { + "$ref": "#/definitions/Commands" + } + ] }, "scope": { "description": "Allowed or denied scoped when using this permission.", - "$ref": "#/$defs/Scopes" + "allOf": [ + { + "$ref": "#/definitions/Scopes" + } + ] }, "platforms": { "description": "Target platforms this permission applies. By default all platforms are affected by this permission.", @@ -133,7 +141,7 @@ "null" ], "items": { - "$ref": "#/$defs/Target" + "$ref": "#/definitions/Target" } } }, @@ -174,7 +182,7 @@ "null" ], "items": { - "$ref": "#/$defs/Value" + "$ref": "#/definitions/Value" } }, "deny": { @@ -184,7 +192,7 @@ "null" ], "items": { - "$ref": "#/$defs/Value" + "$ref": "#/definitions/Value" } } } @@ -202,7 +210,11 @@ }, { "description": "Represents a valid ACL [`Number`].", - "$ref": "#/$defs/Number" + "allOf": [ + { + "$ref": "#/definitions/Number" + } + ] }, { "description": "Represents a [`String`].", @@ -212,14 +224,14 @@ "description": "Represents a list of other [`Value`]s.", "type": "array", "items": { - "$ref": "#/$defs/Value" + "$ref": "#/definitions/Value" } }, { "description": "Represents a map of [`String`] keys to [`Value`]s.", "type": "object", "additionalProperties": { - "$ref": "#/$defs/Value" + "$ref": "#/definitions/Value" } } ] @@ -268,65 +280,6 @@ "const": "iOS" } ] - }, - "PermissionKind": { - "type": "string", - "oneOf": [ - { - "description": "Enables the get_current command without any pre-configured scope.", - "type": "string", - "const": "allow-get-current", - "markdownDescription": "Enables the get_current command without any pre-configured scope." - }, - { - "description": "Denies the get_current command without any pre-configured scope.", - "type": "string", - "const": "deny-get-current", - "markdownDescription": "Denies the get_current command without any pre-configured scope." - }, - { - "description": "Enables the is_registered command without any pre-configured scope.", - "type": "string", - "const": "allow-is-registered", - "markdownDescription": "Enables the is_registered command without any pre-configured scope." - }, - { - "description": "Denies the is_registered command without any pre-configured scope.", - "type": "string", - "const": "deny-is-registered", - "markdownDescription": "Denies the is_registered command without any pre-configured scope." - }, - { - "description": "Enables the register command without any pre-configured scope.", - "type": "string", - "const": "allow-register", - "markdownDescription": "Enables the register command without any pre-configured scope." - }, - { - "description": "Denies the register command without any pre-configured scope.", - "type": "string", - "const": "deny-register", - "markdownDescription": "Denies the register command without any pre-configured scope." - }, - { - "description": "Enables the unregister command without any pre-configured scope.", - "type": "string", - "const": "allow-unregister", - "markdownDescription": "Enables the unregister command without any pre-configured scope." - }, - { - "description": "Denies the unregister command without any pre-configured scope.", - "type": "string", - "const": "deny-unregister", - "markdownDescription": "Denies the unregister command without any pre-configured scope." - }, - { - "description": "Allows reading the opened deep link via the get_current command\n#### This default permission set includes:\n\n- `allow-get-current`", - "type": "string", - "const": "default", - "markdownDescription": "Allows reading the opened deep link via the get_current command\n#### This default permission set includes:\n\n- `allow-get-current`" - } - ] } } } \ No newline at end of file diff --git a/plugins/dialog/permissions/schemas/schema.json b/plugins/dialog/permissions/schemas/schema.json index 988a2fdab..7cc6cab1d 100644 --- a/plugins/dialog/permissions/schemas/schema.json +++ b/plugins/dialog/permissions/schemas/schema.json @@ -1,5 +1,5 @@ { - "$schema": "https://json-schema.org/draft/2020-12/schema", + "$schema": "http://json-schema.org/draft-07/schema#", "title": "PermissionFile", "description": "Permission file that can define a default permission, a set of permissions or a list of inlined permissions.", "type": "object", @@ -8,7 +8,7 @@ "description": "The default permission set for the plugin", "anyOf": [ { - "$ref": "#/$defs/DefaultPermission" + "$ref": "#/definitions/DefaultPermission" }, { "type": "null" @@ -19,19 +19,19 @@ "description": "A list of permissions sets defined", "type": "array", "items": { - "$ref": "#/$defs/PermissionSet" + "$ref": "#/definitions/PermissionSet" } }, "permission": { "description": "A list of inlined permissions", "type": "array", "items": { - "$ref": "#/$defs/Permission" + "$ref": "#/definitions/Permission" }, "default": [] } }, - "$defs": { + "definitions": { "DefaultPermission": { "description": "The default permission set of the plugin.\n\nWorks similarly to a permission with the \"default\" identifier.", "type": "object", @@ -80,7 +80,7 @@ "description": "All permissions this set contains.", "type": "array", "items": { - "$ref": "#/$defs/PermissionKind" + "type": "string" } } }, @@ -116,15 +116,23 @@ }, "commands": { "description": "Allowed or denied commands when using this permission.", - "$ref": "#/$defs/Commands", "default": { "allow": [], "deny": [] - } + }, + "allOf": [ + { + "$ref": "#/definitions/Commands" + } + ] }, "scope": { "description": "Allowed or denied scoped when using this permission.", - "$ref": "#/$defs/Scopes" + "allOf": [ + { + "$ref": "#/definitions/Scopes" + } + ] }, "platforms": { "description": "Target platforms this permission applies. By default all platforms are affected by this permission.", @@ -133,7 +141,7 @@ "null" ], "items": { - "$ref": "#/$defs/Target" + "$ref": "#/definitions/Target" } } }, @@ -174,7 +182,7 @@ "null" ], "items": { - "$ref": "#/$defs/Value" + "$ref": "#/definitions/Value" } }, "deny": { @@ -184,7 +192,7 @@ "null" ], "items": { - "$ref": "#/$defs/Value" + "$ref": "#/definitions/Value" } } } @@ -202,7 +210,11 @@ }, { "description": "Represents a valid ACL [`Number`].", - "$ref": "#/$defs/Number" + "allOf": [ + { + "$ref": "#/definitions/Number" + } + ] }, { "description": "Represents a [`String`].", @@ -212,14 +224,14 @@ "description": "Represents a list of other [`Value`]s.", "type": "array", "items": { - "$ref": "#/$defs/Value" + "$ref": "#/definitions/Value" } }, { "description": "Represents a map of [`String`] keys to [`Value`]s.", "type": "object", "additionalProperties": { - "$ref": "#/$defs/Value" + "$ref": "#/definitions/Value" } } ] @@ -268,77 +280,6 @@ "const": "iOS" } ] - }, - "PermissionKind": { - "type": "string", - "oneOf": [ - { - "description": "Enables the ask command without any pre-configured scope. (**DEPRECATED**: This is now an alias to `allow-message` and will be removed in v3)", - "type": "string", - "const": "allow-ask", - "markdownDescription": "Enables the ask command without any pre-configured scope. (**DEPRECATED**: This is now an alias to `allow-message` and will be removed in v3)" - }, - { - "description": "Denies the ask command without any pre-configured scope. (**DEPRECATED**: This is now an alias to `deny-message` and will be removed in v3)", - "type": "string", - "const": "deny-ask", - "markdownDescription": "Denies the ask command without any pre-configured scope. (**DEPRECATED**: This is now an alias to `deny-message` and will be removed in v3)" - }, - { - "description": "Enables the message command without any pre-configured scope.", - "type": "string", - "const": "allow-message", - "markdownDescription": "Enables the message command without any pre-configured scope." - }, - { - "description": "Denies the message command without any pre-configured scope.", - "type": "string", - "const": "deny-message", - "markdownDescription": "Denies the message command without any pre-configured scope." - }, - { - "description": "Enables the open command without any pre-configured scope.", - "type": "string", - "const": "allow-open", - "markdownDescription": "Enables the open command without any pre-configured scope." - }, - { - "description": "Denies the open command without any pre-configured scope.", - "type": "string", - "const": "deny-open", - "markdownDescription": "Denies the open command without any pre-configured scope." - }, - { - "description": "Enables the save command without any pre-configured scope.", - "type": "string", - "const": "allow-save", - "markdownDescription": "Enables the save command without any pre-configured scope." - }, - { - "description": "Denies the save command without any pre-configured scope.", - "type": "string", - "const": "deny-save", - "markdownDescription": "Denies the save command without any pre-configured scope." - }, - { - "description": "Enables the confirm command without any pre-configured scope. (**DEPRECATED**: This is now an alias to `allow-message` and will be removed in v3)", - "type": "string", - "const": "allow-confirm", - "markdownDescription": "Enables the confirm command without any pre-configured scope. (**DEPRECATED**: This is now an alias to `allow-message` and will be removed in v3)" - }, - { - "description": "Denies the confirm command without any pre-configured scope. (**DEPRECATED**: This is now an alias to `deny-message` and will be removed in v3)", - "type": "string", - "const": "deny-confirm", - "markdownDescription": "Denies the confirm command without any pre-configured scope. (**DEPRECATED**: This is now an alias to `deny-message` and will be removed in v3)" - }, - { - "description": "This permission set configures the types of dialogs\navailable from the dialog plugin.\n\n#### Granted Permissions\n\nAll dialog types are enabled.\n\n\n\n#### This default permission set includes:\n\n- `allow-message`\n- `allow-save`\n- `allow-open`", - "type": "string", - "const": "default", - "markdownDescription": "This permission set configures the types of dialogs\navailable from the dialog plugin.\n\n#### Granted Permissions\n\nAll dialog types are enabled.\n\n\n\n#### This default permission set includes:\n\n- `allow-message`\n- `allow-save`\n- `allow-open`" - } - ] } } } \ No newline at end of file diff --git a/plugins/fs/build.rs b/plugins/fs/build.rs index 34b9475df..bc79a019f 100644 --- a/plugins/fs/build.rs +++ b/plugins/fs/build.rs @@ -220,7 +220,10 @@ permissions = [ .collect::>(), ) .global_api_script_path("./api-iife.js") - .global_scope_schema(schemars::schema_for!(FsScopeEntry)) + .global_scope_schema( + schemars::SchemaGenerator::new(schemars::generate::SchemaSettings::draft07()) + .into_root_schema_for::(), + ) .android_path("android") .build(); diff --git a/plugins/fs/permissions/schemas/schema.json b/plugins/fs/permissions/schemas/schema.json index b4b9d2c41..7cc6cab1d 100644 --- a/plugins/fs/permissions/schemas/schema.json +++ b/plugins/fs/permissions/schemas/schema.json @@ -1,5 +1,5 @@ { - "$schema": "https://json-schema.org/draft/2020-12/schema", + "$schema": "http://json-schema.org/draft-07/schema#", "title": "PermissionFile", "description": "Permission file that can define a default permission, a set of permissions or a list of inlined permissions.", "type": "object", @@ -8,7 +8,7 @@ "description": "The default permission set for the plugin", "anyOf": [ { - "$ref": "#/$defs/DefaultPermission" + "$ref": "#/definitions/DefaultPermission" }, { "type": "null" @@ -19,19 +19,19 @@ "description": "A list of permissions sets defined", "type": "array", "items": { - "$ref": "#/$defs/PermissionSet" + "$ref": "#/definitions/PermissionSet" } }, "permission": { "description": "A list of inlined permissions", "type": "array", "items": { - "$ref": "#/$defs/Permission" + "$ref": "#/definitions/Permission" }, "default": [] } }, - "$defs": { + "definitions": { "DefaultPermission": { "description": "The default permission set of the plugin.\n\nWorks similarly to a permission with the \"default\" identifier.", "type": "object", @@ -80,7 +80,7 @@ "description": "All permissions this set contains.", "type": "array", "items": { - "$ref": "#/$defs/PermissionKind" + "type": "string" } } }, @@ -116,15 +116,23 @@ }, "commands": { "description": "Allowed or denied commands when using this permission.", - "$ref": "#/$defs/Commands", "default": { "allow": [], "deny": [] - } + }, + "allOf": [ + { + "$ref": "#/definitions/Commands" + } + ] }, "scope": { "description": "Allowed or denied scoped when using this permission.", - "$ref": "#/$defs/Scopes" + "allOf": [ + { + "$ref": "#/definitions/Scopes" + } + ] }, "platforms": { "description": "Target platforms this permission applies. By default all platforms are affected by this permission.", @@ -133,7 +141,7 @@ "null" ], "items": { - "$ref": "#/$defs/Target" + "$ref": "#/definitions/Target" } } }, @@ -174,7 +182,7 @@ "null" ], "items": { - "$ref": "#/$defs/Value" + "$ref": "#/definitions/Value" } }, "deny": { @@ -184,7 +192,7 @@ "null" ], "items": { - "$ref": "#/$defs/Value" + "$ref": "#/definitions/Value" } } } @@ -202,7 +210,11 @@ }, { "description": "Represents a valid ACL [`Number`].", - "$ref": "#/$defs/Number" + "allOf": [ + { + "$ref": "#/definitions/Number" + } + ] }, { "description": "Represents a [`String`].", @@ -212,14 +224,14 @@ "description": "Represents a list of other [`Value`]s.", "type": "array", "items": { - "$ref": "#/$defs/Value" + "$ref": "#/definitions/Value" } }, { "description": "Represents a map of [`String`] keys to [`Value`]s.", "type": "object", "additionalProperties": { - "$ref": "#/$defs/Value" + "$ref": "#/definitions/Value" } } ] @@ -268,1763 +280,6 @@ "const": "iOS" } ] - }, - "PermissionKind": { - "type": "string", - "oneOf": [ - { - "description": "This allows full recursive read access to the complete application folders, files and subdirectories.\n#### This permission set includes:\n\n- `read-all`\n- `scope-app-recursive`", - "type": "string", - "const": "allow-app-read-recursive", - "markdownDescription": "This allows full recursive read access to the complete application folders, files and subdirectories.\n#### This permission set includes:\n\n- `read-all`\n- `scope-app-recursive`" - }, - { - "description": "This allows full recursive write access to the complete application folders, files and subdirectories.\n#### This permission set includes:\n\n- `write-all`\n- `scope-app-recursive`", - "type": "string", - "const": "allow-app-write-recursive", - "markdownDescription": "This allows full recursive write access to the complete application folders, files and subdirectories.\n#### This permission set includes:\n\n- `write-all`\n- `scope-app-recursive`" - }, - { - "description": "This allows non-recursive read access to the application folders.\n#### This permission set includes:\n\n- `read-all`\n- `scope-app`", - "type": "string", - "const": "allow-app-read", - "markdownDescription": "This allows non-recursive read access to the application folders.\n#### This permission set includes:\n\n- `read-all`\n- `scope-app`" - }, - { - "description": "This allows non-recursive write access to the application folders.\n#### This permission set includes:\n\n- `write-all`\n- `scope-app`", - "type": "string", - "const": "allow-app-write", - "markdownDescription": "This allows non-recursive write access to the application folders.\n#### This permission set includes:\n\n- `write-all`\n- `scope-app`" - }, - { - "description": "This allows full recursive read access to metadata of the application folders, including file listing and statistics.\n#### This permission set includes:\n\n- `read-meta`\n- `scope-app-recursive`", - "type": "string", - "const": "allow-app-meta-recursive", - "markdownDescription": "This allows full recursive read access to metadata of the application folders, including file listing and statistics.\n#### This permission set includes:\n\n- `read-meta`\n- `scope-app-recursive`" - }, - { - "description": "This allows non-recursive read access to metadata of the application folders, including file listing and statistics.\n#### This permission set includes:\n\n- `read-meta`\n- `scope-app-index`", - "type": "string", - "const": "allow-app-meta", - "markdownDescription": "This allows non-recursive read access to metadata of the application folders, including file listing and statistics.\n#### This permission set includes:\n\n- `read-meta`\n- `scope-app-index`" - }, - { - "description": "This scope permits recursive access to the complete application folders, including sub directories and files.", - "type": "string", - "const": "scope-app-recursive", - "markdownDescription": "This scope permits recursive access to the complete application folders, including sub directories and files." - }, - { - "description": "This scope permits access to all files and list content of top level directories in the application folders.", - "type": "string", - "const": "scope-app", - "markdownDescription": "This scope permits access to all files and list content of top level directories in the application folders." - }, - { - "description": "This scope permits to list all files and folders in the application directories.", - "type": "string", - "const": "scope-app-index", - "markdownDescription": "This scope permits to list all files and folders in the application directories." - }, - { - "description": "This allows full recursive read access to the complete `$APPCACHE` folder, files and subdirectories.\n#### This permission set includes:\n\n- `read-all`\n- `scope-appcache-recursive`", - "type": "string", - "const": "allow-appcache-read-recursive", - "markdownDescription": "This allows full recursive read access to the complete `$APPCACHE` folder, files and subdirectories.\n#### This permission set includes:\n\n- `read-all`\n- `scope-appcache-recursive`" - }, - { - "description": "This allows full recursive write access to the complete `$APPCACHE` folder, files and subdirectories.\n#### This permission set includes:\n\n- `write-all`\n- `scope-appcache-recursive`", - "type": "string", - "const": "allow-appcache-write-recursive", - "markdownDescription": "This allows full recursive write access to the complete `$APPCACHE` folder, files and subdirectories.\n#### This permission set includes:\n\n- `write-all`\n- `scope-appcache-recursive`" - }, - { - "description": "This allows non-recursive read access to the `$APPCACHE` folder.\n#### This permission set includes:\n\n- `read-all`\n- `scope-appcache`", - "type": "string", - "const": "allow-appcache-read", - "markdownDescription": "This allows non-recursive read access to the `$APPCACHE` folder.\n#### This permission set includes:\n\n- `read-all`\n- `scope-appcache`" - }, - { - "description": "This allows non-recursive write access to the `$APPCACHE` folder.\n#### This permission set includes:\n\n- `write-all`\n- `scope-appcache`", - "type": "string", - "const": "allow-appcache-write", - "markdownDescription": "This allows non-recursive write access to the `$APPCACHE` folder.\n#### This permission set includes:\n\n- `write-all`\n- `scope-appcache`" - }, - { - "description": "This allows full recursive read access to metadata of the `$APPCACHE` folder, including file listing and statistics.\n#### This permission set includes:\n\n- `read-meta`\n- `scope-appcache-recursive`", - "type": "string", - "const": "allow-appcache-meta-recursive", - "markdownDescription": "This allows full recursive read access to metadata of the `$APPCACHE` folder, including file listing and statistics.\n#### This permission set includes:\n\n- `read-meta`\n- `scope-appcache-recursive`" - }, - { - "description": "This allows non-recursive read access to metadata of the `$APPCACHE` folder, including file listing and statistics.\n#### This permission set includes:\n\n- `read-meta`\n- `scope-appcache-index`", - "type": "string", - "const": "allow-appcache-meta", - "markdownDescription": "This allows non-recursive read access to metadata of the `$APPCACHE` folder, including file listing and statistics.\n#### This permission set includes:\n\n- `read-meta`\n- `scope-appcache-index`" - }, - { - "description": "This scope permits recursive access to the complete `$APPCACHE` folder, including sub directories and files.", - "type": "string", - "const": "scope-appcache-recursive", - "markdownDescription": "This scope permits recursive access to the complete `$APPCACHE` folder, including sub directories and files." - }, - { - "description": "This scope permits access to all files and list content of top level directories in the `$APPCACHE` folder.", - "type": "string", - "const": "scope-appcache", - "markdownDescription": "This scope permits access to all files and list content of top level directories in the `$APPCACHE` folder." - }, - { - "description": "This scope permits to list all files and folders in the `$APPCACHE`folder.", - "type": "string", - "const": "scope-appcache-index", - "markdownDescription": "This scope permits to list all files and folders in the `$APPCACHE`folder." - }, - { - "description": "This allows full recursive read access to the complete `$APPCONFIG` folder, files and subdirectories.\n#### This permission set includes:\n\n- `read-all`\n- `scope-appconfig-recursive`", - "type": "string", - "const": "allow-appconfig-read-recursive", - "markdownDescription": "This allows full recursive read access to the complete `$APPCONFIG` folder, files and subdirectories.\n#### This permission set includes:\n\n- `read-all`\n- `scope-appconfig-recursive`" - }, - { - "description": "This allows full recursive write access to the complete `$APPCONFIG` folder, files and subdirectories.\n#### This permission set includes:\n\n- `write-all`\n- `scope-appconfig-recursive`", - "type": "string", - "const": "allow-appconfig-write-recursive", - "markdownDescription": "This allows full recursive write access to the complete `$APPCONFIG` folder, files and subdirectories.\n#### This permission set includes:\n\n- `write-all`\n- `scope-appconfig-recursive`" - }, - { - "description": "This allows non-recursive read access to the `$APPCONFIG` folder.\n#### This permission set includes:\n\n- `read-all`\n- `scope-appconfig`", - "type": "string", - "const": "allow-appconfig-read", - "markdownDescription": "This allows non-recursive read access to the `$APPCONFIG` folder.\n#### This permission set includes:\n\n- `read-all`\n- `scope-appconfig`" - }, - { - "description": "This allows non-recursive write access to the `$APPCONFIG` folder.\n#### This permission set includes:\n\n- `write-all`\n- `scope-appconfig`", - "type": "string", - "const": "allow-appconfig-write", - "markdownDescription": "This allows non-recursive write access to the `$APPCONFIG` folder.\n#### This permission set includes:\n\n- `write-all`\n- `scope-appconfig`" - }, - { - "description": "This allows full recursive read access to metadata of the `$APPCONFIG` folder, including file listing and statistics.\n#### This permission set includes:\n\n- `read-meta`\n- `scope-appconfig-recursive`", - "type": "string", - "const": "allow-appconfig-meta-recursive", - "markdownDescription": "This allows full recursive read access to metadata of the `$APPCONFIG` folder, including file listing and statistics.\n#### This permission set includes:\n\n- `read-meta`\n- `scope-appconfig-recursive`" - }, - { - "description": "This allows non-recursive read access to metadata of the `$APPCONFIG` folder, including file listing and statistics.\n#### This permission set includes:\n\n- `read-meta`\n- `scope-appconfig-index`", - "type": "string", - "const": "allow-appconfig-meta", - "markdownDescription": "This allows non-recursive read access to metadata of the `$APPCONFIG` folder, including file listing and statistics.\n#### This permission set includes:\n\n- `read-meta`\n- `scope-appconfig-index`" - }, - { - "description": "This scope permits recursive access to the complete `$APPCONFIG` folder, including sub directories and files.", - "type": "string", - "const": "scope-appconfig-recursive", - "markdownDescription": "This scope permits recursive access to the complete `$APPCONFIG` folder, including sub directories and files." - }, - { - "description": "This scope permits access to all files and list content of top level directories in the `$APPCONFIG` folder.", - "type": "string", - "const": "scope-appconfig", - "markdownDescription": "This scope permits access to all files and list content of top level directories in the `$APPCONFIG` folder." - }, - { - "description": "This scope permits to list all files and folders in the `$APPCONFIG`folder.", - "type": "string", - "const": "scope-appconfig-index", - "markdownDescription": "This scope permits to list all files and folders in the `$APPCONFIG`folder." - }, - { - "description": "This allows full recursive read access to the complete `$APPDATA` folder, files and subdirectories.\n#### This permission set includes:\n\n- `read-all`\n- `scope-appdata-recursive`", - "type": "string", - "const": "allow-appdata-read-recursive", - "markdownDescription": "This allows full recursive read access to the complete `$APPDATA` folder, files and subdirectories.\n#### This permission set includes:\n\n- `read-all`\n- `scope-appdata-recursive`" - }, - { - "description": "This allows full recursive write access to the complete `$APPDATA` folder, files and subdirectories.\n#### This permission set includes:\n\n- `write-all`\n- `scope-appdata-recursive`", - "type": "string", - "const": "allow-appdata-write-recursive", - "markdownDescription": "This allows full recursive write access to the complete `$APPDATA` folder, files and subdirectories.\n#### This permission set includes:\n\n- `write-all`\n- `scope-appdata-recursive`" - }, - { - "description": "This allows non-recursive read access to the `$APPDATA` folder.\n#### This permission set includes:\n\n- `read-all`\n- `scope-appdata`", - "type": "string", - "const": "allow-appdata-read", - "markdownDescription": "This allows non-recursive read access to the `$APPDATA` folder.\n#### This permission set includes:\n\n- `read-all`\n- `scope-appdata`" - }, - { - "description": "This allows non-recursive write access to the `$APPDATA` folder.\n#### This permission set includes:\n\n- `write-all`\n- `scope-appdata`", - "type": "string", - "const": "allow-appdata-write", - "markdownDescription": "This allows non-recursive write access to the `$APPDATA` folder.\n#### This permission set includes:\n\n- `write-all`\n- `scope-appdata`" - }, - { - "description": "This allows full recursive read access to metadata of the `$APPDATA` folder, including file listing and statistics.\n#### This permission set includes:\n\n- `read-meta`\n- `scope-appdata-recursive`", - "type": "string", - "const": "allow-appdata-meta-recursive", - "markdownDescription": "This allows full recursive read access to metadata of the `$APPDATA` folder, including file listing and statistics.\n#### This permission set includes:\n\n- `read-meta`\n- `scope-appdata-recursive`" - }, - { - "description": "This allows non-recursive read access to metadata of the `$APPDATA` folder, including file listing and statistics.\n#### This permission set includes:\n\n- `read-meta`\n- `scope-appdata-index`", - "type": "string", - "const": "allow-appdata-meta", - "markdownDescription": "This allows non-recursive read access to metadata of the `$APPDATA` folder, including file listing and statistics.\n#### This permission set includes:\n\n- `read-meta`\n- `scope-appdata-index`" - }, - { - "description": "This scope permits recursive access to the complete `$APPDATA` folder, including sub directories and files.", - "type": "string", - "const": "scope-appdata-recursive", - "markdownDescription": "This scope permits recursive access to the complete `$APPDATA` folder, including sub directories and files." - }, - { - "description": "This scope permits access to all files and list content of top level directories in the `$APPDATA` folder.", - "type": "string", - "const": "scope-appdata", - "markdownDescription": "This scope permits access to all files and list content of top level directories in the `$APPDATA` folder." - }, - { - "description": "This scope permits to list all files and folders in the `$APPDATA`folder.", - "type": "string", - "const": "scope-appdata-index", - "markdownDescription": "This scope permits to list all files and folders in the `$APPDATA`folder." - }, - { - "description": "This allows full recursive read access to the complete `$APPLOCALDATA` folder, files and subdirectories.\n#### This permission set includes:\n\n- `read-all`\n- `scope-applocaldata-recursive`", - "type": "string", - "const": "allow-applocaldata-read-recursive", - "markdownDescription": "This allows full recursive read access to the complete `$APPLOCALDATA` folder, files and subdirectories.\n#### This permission set includes:\n\n- `read-all`\n- `scope-applocaldata-recursive`" - }, - { - "description": "This allows full recursive write access to the complete `$APPLOCALDATA` folder, files and subdirectories.\n#### This permission set includes:\n\n- `write-all`\n- `scope-applocaldata-recursive`", - "type": "string", - "const": "allow-applocaldata-write-recursive", - "markdownDescription": "This allows full recursive write access to the complete `$APPLOCALDATA` folder, files and subdirectories.\n#### This permission set includes:\n\n- `write-all`\n- `scope-applocaldata-recursive`" - }, - { - "description": "This allows non-recursive read access to the `$APPLOCALDATA` folder.\n#### This permission set includes:\n\n- `read-all`\n- `scope-applocaldata`", - "type": "string", - "const": "allow-applocaldata-read", - "markdownDescription": "This allows non-recursive read access to the `$APPLOCALDATA` folder.\n#### This permission set includes:\n\n- `read-all`\n- `scope-applocaldata`" - }, - { - "description": "This allows non-recursive write access to the `$APPLOCALDATA` folder.\n#### This permission set includes:\n\n- `write-all`\n- `scope-applocaldata`", - "type": "string", - "const": "allow-applocaldata-write", - "markdownDescription": "This allows non-recursive write access to the `$APPLOCALDATA` folder.\n#### This permission set includes:\n\n- `write-all`\n- `scope-applocaldata`" - }, - { - "description": "This allows full recursive read access to metadata of the `$APPLOCALDATA` folder, including file listing and statistics.\n#### This permission set includes:\n\n- `read-meta`\n- `scope-applocaldata-recursive`", - "type": "string", - "const": "allow-applocaldata-meta-recursive", - "markdownDescription": "This allows full recursive read access to metadata of the `$APPLOCALDATA` folder, including file listing and statistics.\n#### This permission set includes:\n\n- `read-meta`\n- `scope-applocaldata-recursive`" - }, - { - "description": "This allows non-recursive read access to metadata of the `$APPLOCALDATA` folder, including file listing and statistics.\n#### This permission set includes:\n\n- `read-meta`\n- `scope-applocaldata-index`", - "type": "string", - "const": "allow-applocaldata-meta", - "markdownDescription": "This allows non-recursive read access to metadata of the `$APPLOCALDATA` folder, including file listing and statistics.\n#### This permission set includes:\n\n- `read-meta`\n- `scope-applocaldata-index`" - }, - { - "description": "This scope permits recursive access to the complete `$APPLOCALDATA` folder, including sub directories and files.", - "type": "string", - "const": "scope-applocaldata-recursive", - "markdownDescription": "This scope permits recursive access to the complete `$APPLOCALDATA` folder, including sub directories and files." - }, - { - "description": "This scope permits access to all files and list content of top level directories in the `$APPLOCALDATA` folder.", - "type": "string", - "const": "scope-applocaldata", - "markdownDescription": "This scope permits access to all files and list content of top level directories in the `$APPLOCALDATA` folder." - }, - { - "description": "This scope permits to list all files and folders in the `$APPLOCALDATA`folder.", - "type": "string", - "const": "scope-applocaldata-index", - "markdownDescription": "This scope permits to list all files and folders in the `$APPLOCALDATA`folder." - }, - { - "description": "This allows full recursive read access to the complete `$APPLOG` folder, files and subdirectories.\n#### This permission set includes:\n\n- `read-all`\n- `scope-applog-recursive`", - "type": "string", - "const": "allow-applog-read-recursive", - "markdownDescription": "This allows full recursive read access to the complete `$APPLOG` folder, files and subdirectories.\n#### This permission set includes:\n\n- `read-all`\n- `scope-applog-recursive`" - }, - { - "description": "This allows full recursive write access to the complete `$APPLOG` folder, files and subdirectories.\n#### This permission set includes:\n\n- `write-all`\n- `scope-applog-recursive`", - "type": "string", - "const": "allow-applog-write-recursive", - "markdownDescription": "This allows full recursive write access to the complete `$APPLOG` folder, files and subdirectories.\n#### This permission set includes:\n\n- `write-all`\n- `scope-applog-recursive`" - }, - { - "description": "This allows non-recursive read access to the `$APPLOG` folder.\n#### This permission set includes:\n\n- `read-all`\n- `scope-applog`", - "type": "string", - "const": "allow-applog-read", - "markdownDescription": "This allows non-recursive read access to the `$APPLOG` folder.\n#### This permission set includes:\n\n- `read-all`\n- `scope-applog`" - }, - { - "description": "This allows non-recursive write access to the `$APPLOG` folder.\n#### This permission set includes:\n\n- `write-all`\n- `scope-applog`", - "type": "string", - "const": "allow-applog-write", - "markdownDescription": "This allows non-recursive write access to the `$APPLOG` folder.\n#### This permission set includes:\n\n- `write-all`\n- `scope-applog`" - }, - { - "description": "This allows full recursive read access to metadata of the `$APPLOG` folder, including file listing and statistics.\n#### This permission set includes:\n\n- `read-meta`\n- `scope-applog-recursive`", - "type": "string", - "const": "allow-applog-meta-recursive", - "markdownDescription": "This allows full recursive read access to metadata of the `$APPLOG` folder, including file listing and statistics.\n#### This permission set includes:\n\n- `read-meta`\n- `scope-applog-recursive`" - }, - { - "description": "This allows non-recursive read access to metadata of the `$APPLOG` folder, including file listing and statistics.\n#### This permission set includes:\n\n- `read-meta`\n- `scope-applog-index`", - "type": "string", - "const": "allow-applog-meta", - "markdownDescription": "This allows non-recursive read access to metadata of the `$APPLOG` folder, including file listing and statistics.\n#### This permission set includes:\n\n- `read-meta`\n- `scope-applog-index`" - }, - { - "description": "This scope permits recursive access to the complete `$APPLOG` folder, including sub directories and files.", - "type": "string", - "const": "scope-applog-recursive", - "markdownDescription": "This scope permits recursive access to the complete `$APPLOG` folder, including sub directories and files." - }, - { - "description": "This scope permits access to all files and list content of top level directories in the `$APPLOG` folder.", - "type": "string", - "const": "scope-applog", - "markdownDescription": "This scope permits access to all files and list content of top level directories in the `$APPLOG` folder." - }, - { - "description": "This scope permits to list all files and folders in the `$APPLOG`folder.", - "type": "string", - "const": "scope-applog-index", - "markdownDescription": "This scope permits to list all files and folders in the `$APPLOG`folder." - }, - { - "description": "This allows full recursive read access to the complete `$AUDIO` folder, files and subdirectories.\n#### This permission set includes:\n\n- `read-all`\n- `scope-audio-recursive`", - "type": "string", - "const": "allow-audio-read-recursive", - "markdownDescription": "This allows full recursive read access to the complete `$AUDIO` folder, files and subdirectories.\n#### This permission set includes:\n\n- `read-all`\n- `scope-audio-recursive`" - }, - { - "description": "This allows full recursive write access to the complete `$AUDIO` folder, files and subdirectories.\n#### This permission set includes:\n\n- `write-all`\n- `scope-audio-recursive`", - "type": "string", - "const": "allow-audio-write-recursive", - "markdownDescription": "This allows full recursive write access to the complete `$AUDIO` folder, files and subdirectories.\n#### This permission set includes:\n\n- `write-all`\n- `scope-audio-recursive`" - }, - { - "description": "This allows non-recursive read access to the `$AUDIO` folder.\n#### This permission set includes:\n\n- `read-all`\n- `scope-audio`", - "type": "string", - "const": "allow-audio-read", - "markdownDescription": "This allows non-recursive read access to the `$AUDIO` folder.\n#### This permission set includes:\n\n- `read-all`\n- `scope-audio`" - }, - { - "description": "This allows non-recursive write access to the `$AUDIO` folder.\n#### This permission set includes:\n\n- `write-all`\n- `scope-audio`", - "type": "string", - "const": "allow-audio-write", - "markdownDescription": "This allows non-recursive write access to the `$AUDIO` folder.\n#### This permission set includes:\n\n- `write-all`\n- `scope-audio`" - }, - { - "description": "This allows full recursive read access to metadata of the `$AUDIO` folder, including file listing and statistics.\n#### This permission set includes:\n\n- `read-meta`\n- `scope-audio-recursive`", - "type": "string", - "const": "allow-audio-meta-recursive", - "markdownDescription": "This allows full recursive read access to metadata of the `$AUDIO` folder, including file listing and statistics.\n#### This permission set includes:\n\n- `read-meta`\n- `scope-audio-recursive`" - }, - { - "description": "This allows non-recursive read access to metadata of the `$AUDIO` folder, including file listing and statistics.\n#### This permission set includes:\n\n- `read-meta`\n- `scope-audio-index`", - "type": "string", - "const": "allow-audio-meta", - "markdownDescription": "This allows non-recursive read access to metadata of the `$AUDIO` folder, including file listing and statistics.\n#### This permission set includes:\n\n- `read-meta`\n- `scope-audio-index`" - }, - { - "description": "This scope permits recursive access to the complete `$AUDIO` folder, including sub directories and files.", - "type": "string", - "const": "scope-audio-recursive", - "markdownDescription": "This scope permits recursive access to the complete `$AUDIO` folder, including sub directories and files." - }, - { - "description": "This scope permits access to all files and list content of top level directories in the `$AUDIO` folder.", - "type": "string", - "const": "scope-audio", - "markdownDescription": "This scope permits access to all files and list content of top level directories in the `$AUDIO` folder." - }, - { - "description": "This scope permits to list all files and folders in the `$AUDIO`folder.", - "type": "string", - "const": "scope-audio-index", - "markdownDescription": "This scope permits to list all files and folders in the `$AUDIO`folder." - }, - { - "description": "This allows full recursive read access to the complete `$CACHE` folder, files and subdirectories.\n#### This permission set includes:\n\n- `read-all`\n- `scope-cache-recursive`", - "type": "string", - "const": "allow-cache-read-recursive", - "markdownDescription": "This allows full recursive read access to the complete `$CACHE` folder, files and subdirectories.\n#### This permission set includes:\n\n- `read-all`\n- `scope-cache-recursive`" - }, - { - "description": "This allows full recursive write access to the complete `$CACHE` folder, files and subdirectories.\n#### This permission set includes:\n\n- `write-all`\n- `scope-cache-recursive`", - "type": "string", - "const": "allow-cache-write-recursive", - "markdownDescription": "This allows full recursive write access to the complete `$CACHE` folder, files and subdirectories.\n#### This permission set includes:\n\n- `write-all`\n- `scope-cache-recursive`" - }, - { - "description": "This allows non-recursive read access to the `$CACHE` folder.\n#### This permission set includes:\n\n- `read-all`\n- `scope-cache`", - "type": "string", - "const": "allow-cache-read", - "markdownDescription": "This allows non-recursive read access to the `$CACHE` folder.\n#### This permission set includes:\n\n- `read-all`\n- `scope-cache`" - }, - { - "description": "This allows non-recursive write access to the `$CACHE` folder.\n#### This permission set includes:\n\n- `write-all`\n- `scope-cache`", - "type": "string", - "const": "allow-cache-write", - "markdownDescription": "This allows non-recursive write access to the `$CACHE` folder.\n#### This permission set includes:\n\n- `write-all`\n- `scope-cache`" - }, - { - "description": "This allows full recursive read access to metadata of the `$CACHE` folder, including file listing and statistics.\n#### This permission set includes:\n\n- `read-meta`\n- `scope-cache-recursive`", - "type": "string", - "const": "allow-cache-meta-recursive", - "markdownDescription": "This allows full recursive read access to metadata of the `$CACHE` folder, including file listing and statistics.\n#### This permission set includes:\n\n- `read-meta`\n- `scope-cache-recursive`" - }, - { - "description": "This allows non-recursive read access to metadata of the `$CACHE` folder, including file listing and statistics.\n#### This permission set includes:\n\n- `read-meta`\n- `scope-cache-index`", - "type": "string", - "const": "allow-cache-meta", - "markdownDescription": "This allows non-recursive read access to metadata of the `$CACHE` folder, including file listing and statistics.\n#### This permission set includes:\n\n- `read-meta`\n- `scope-cache-index`" - }, - { - "description": "This scope permits recursive access to the complete `$CACHE` folder, including sub directories and files.", - "type": "string", - "const": "scope-cache-recursive", - "markdownDescription": "This scope permits recursive access to the complete `$CACHE` folder, including sub directories and files." - }, - { - "description": "This scope permits access to all files and list content of top level directories in the `$CACHE` folder.", - "type": "string", - "const": "scope-cache", - "markdownDescription": "This scope permits access to all files and list content of top level directories in the `$CACHE` folder." - }, - { - "description": "This scope permits to list all files and folders in the `$CACHE`folder.", - "type": "string", - "const": "scope-cache-index", - "markdownDescription": "This scope permits to list all files and folders in the `$CACHE`folder." - }, - { - "description": "This allows full recursive read access to the complete `$CONFIG` folder, files and subdirectories.\n#### This permission set includes:\n\n- `read-all`\n- `scope-config-recursive`", - "type": "string", - "const": "allow-config-read-recursive", - "markdownDescription": "This allows full recursive read access to the complete `$CONFIG` folder, files and subdirectories.\n#### This permission set includes:\n\n- `read-all`\n- `scope-config-recursive`" - }, - { - "description": "This allows full recursive write access to the complete `$CONFIG` folder, files and subdirectories.\n#### This permission set includes:\n\n- `write-all`\n- `scope-config-recursive`", - "type": "string", - "const": "allow-config-write-recursive", - "markdownDescription": "This allows full recursive write access to the complete `$CONFIG` folder, files and subdirectories.\n#### This permission set includes:\n\n- `write-all`\n- `scope-config-recursive`" - }, - { - "description": "This allows non-recursive read access to the `$CONFIG` folder.\n#### This permission set includes:\n\n- `read-all`\n- `scope-config`", - "type": "string", - "const": "allow-config-read", - "markdownDescription": "This allows non-recursive read access to the `$CONFIG` folder.\n#### This permission set includes:\n\n- `read-all`\n- `scope-config`" - }, - { - "description": "This allows non-recursive write access to the `$CONFIG` folder.\n#### This permission set includes:\n\n- `write-all`\n- `scope-config`", - "type": "string", - "const": "allow-config-write", - "markdownDescription": "This allows non-recursive write access to the `$CONFIG` folder.\n#### This permission set includes:\n\n- `write-all`\n- `scope-config`" - }, - { - "description": "This allows full recursive read access to metadata of the `$CONFIG` folder, including file listing and statistics.\n#### This permission set includes:\n\n- `read-meta`\n- `scope-config-recursive`", - "type": "string", - "const": "allow-config-meta-recursive", - "markdownDescription": "This allows full recursive read access to metadata of the `$CONFIG` folder, including file listing and statistics.\n#### This permission set includes:\n\n- `read-meta`\n- `scope-config-recursive`" - }, - { - "description": "This allows non-recursive read access to metadata of the `$CONFIG` folder, including file listing and statistics.\n#### This permission set includes:\n\n- `read-meta`\n- `scope-config-index`", - "type": "string", - "const": "allow-config-meta", - "markdownDescription": "This allows non-recursive read access to metadata of the `$CONFIG` folder, including file listing and statistics.\n#### This permission set includes:\n\n- `read-meta`\n- `scope-config-index`" - }, - { - "description": "This scope permits recursive access to the complete `$CONFIG` folder, including sub directories and files.", - "type": "string", - "const": "scope-config-recursive", - "markdownDescription": "This scope permits recursive access to the complete `$CONFIG` folder, including sub directories and files." - }, - { - "description": "This scope permits access to all files and list content of top level directories in the `$CONFIG` folder.", - "type": "string", - "const": "scope-config", - "markdownDescription": "This scope permits access to all files and list content of top level directories in the `$CONFIG` folder." - }, - { - "description": "This scope permits to list all files and folders in the `$CONFIG`folder.", - "type": "string", - "const": "scope-config-index", - "markdownDescription": "This scope permits to list all files and folders in the `$CONFIG`folder." - }, - { - "description": "This allows full recursive read access to the complete `$DATA` folder, files and subdirectories.\n#### This permission set includes:\n\n- `read-all`\n- `scope-data-recursive`", - "type": "string", - "const": "allow-data-read-recursive", - "markdownDescription": "This allows full recursive read access to the complete `$DATA` folder, files and subdirectories.\n#### This permission set includes:\n\n- `read-all`\n- `scope-data-recursive`" - }, - { - "description": "This allows full recursive write access to the complete `$DATA` folder, files and subdirectories.\n#### This permission set includes:\n\n- `write-all`\n- `scope-data-recursive`", - "type": "string", - "const": "allow-data-write-recursive", - "markdownDescription": "This allows full recursive write access to the complete `$DATA` folder, files and subdirectories.\n#### This permission set includes:\n\n- `write-all`\n- `scope-data-recursive`" - }, - { - "description": "This allows non-recursive read access to the `$DATA` folder.\n#### This permission set includes:\n\n- `read-all`\n- `scope-data`", - "type": "string", - "const": "allow-data-read", - "markdownDescription": "This allows non-recursive read access to the `$DATA` folder.\n#### This permission set includes:\n\n- `read-all`\n- `scope-data`" - }, - { - "description": "This allows non-recursive write access to the `$DATA` folder.\n#### This permission set includes:\n\n- `write-all`\n- `scope-data`", - "type": "string", - "const": "allow-data-write", - "markdownDescription": "This allows non-recursive write access to the `$DATA` folder.\n#### This permission set includes:\n\n- `write-all`\n- `scope-data`" - }, - { - "description": "This allows full recursive read access to metadata of the `$DATA` folder, including file listing and statistics.\n#### This permission set includes:\n\n- `read-meta`\n- `scope-data-recursive`", - "type": "string", - "const": "allow-data-meta-recursive", - "markdownDescription": "This allows full recursive read access to metadata of the `$DATA` folder, including file listing and statistics.\n#### This permission set includes:\n\n- `read-meta`\n- `scope-data-recursive`" - }, - { - "description": "This allows non-recursive read access to metadata of the `$DATA` folder, including file listing and statistics.\n#### This permission set includes:\n\n- `read-meta`\n- `scope-data-index`", - "type": "string", - "const": "allow-data-meta", - "markdownDescription": "This allows non-recursive read access to metadata of the `$DATA` folder, including file listing and statistics.\n#### This permission set includes:\n\n- `read-meta`\n- `scope-data-index`" - }, - { - "description": "This scope permits recursive access to the complete `$DATA` folder, including sub directories and files.", - "type": "string", - "const": "scope-data-recursive", - "markdownDescription": "This scope permits recursive access to the complete `$DATA` folder, including sub directories and files." - }, - { - "description": "This scope permits access to all files and list content of top level directories in the `$DATA` folder.", - "type": "string", - "const": "scope-data", - "markdownDescription": "This scope permits access to all files and list content of top level directories in the `$DATA` folder." - }, - { - "description": "This scope permits to list all files and folders in the `$DATA`folder.", - "type": "string", - "const": "scope-data-index", - "markdownDescription": "This scope permits to list all files and folders in the `$DATA`folder." - }, - { - "description": "This allows full recursive read access to the complete `$DESKTOP` folder, files and subdirectories.\n#### This permission set includes:\n\n- `read-all`\n- `scope-desktop-recursive`", - "type": "string", - "const": "allow-desktop-read-recursive", - "markdownDescription": "This allows full recursive read access to the complete `$DESKTOP` folder, files and subdirectories.\n#### This permission set includes:\n\n- `read-all`\n- `scope-desktop-recursive`" - }, - { - "description": "This allows full recursive write access to the complete `$DESKTOP` folder, files and subdirectories.\n#### This permission set includes:\n\n- `write-all`\n- `scope-desktop-recursive`", - "type": "string", - "const": "allow-desktop-write-recursive", - "markdownDescription": "This allows full recursive write access to the complete `$DESKTOP` folder, files and subdirectories.\n#### This permission set includes:\n\n- `write-all`\n- `scope-desktop-recursive`" - }, - { - "description": "This allows non-recursive read access to the `$DESKTOP` folder.\n#### This permission set includes:\n\n- `read-all`\n- `scope-desktop`", - "type": "string", - "const": "allow-desktop-read", - "markdownDescription": "This allows non-recursive read access to the `$DESKTOP` folder.\n#### This permission set includes:\n\n- `read-all`\n- `scope-desktop`" - }, - { - "description": "This allows non-recursive write access to the `$DESKTOP` folder.\n#### This permission set includes:\n\n- `write-all`\n- `scope-desktop`", - "type": "string", - "const": "allow-desktop-write", - "markdownDescription": "This allows non-recursive write access to the `$DESKTOP` folder.\n#### This permission set includes:\n\n- `write-all`\n- `scope-desktop`" - }, - { - "description": "This allows full recursive read access to metadata of the `$DESKTOP` folder, including file listing and statistics.\n#### This permission set includes:\n\n- `read-meta`\n- `scope-desktop-recursive`", - "type": "string", - "const": "allow-desktop-meta-recursive", - "markdownDescription": "This allows full recursive read access to metadata of the `$DESKTOP` folder, including file listing and statistics.\n#### This permission set includes:\n\n- `read-meta`\n- `scope-desktop-recursive`" - }, - { - "description": "This allows non-recursive read access to metadata of the `$DESKTOP` folder, including file listing and statistics.\n#### This permission set includes:\n\n- `read-meta`\n- `scope-desktop-index`", - "type": "string", - "const": "allow-desktop-meta", - "markdownDescription": "This allows non-recursive read access to metadata of the `$DESKTOP` folder, including file listing and statistics.\n#### This permission set includes:\n\n- `read-meta`\n- `scope-desktop-index`" - }, - { - "description": "This scope permits recursive access to the complete `$DESKTOP` folder, including sub directories and files.", - "type": "string", - "const": "scope-desktop-recursive", - "markdownDescription": "This scope permits recursive access to the complete `$DESKTOP` folder, including sub directories and files." - }, - { - "description": "This scope permits access to all files and list content of top level directories in the `$DESKTOP` folder.", - "type": "string", - "const": "scope-desktop", - "markdownDescription": "This scope permits access to all files and list content of top level directories in the `$DESKTOP` folder." - }, - { - "description": "This scope permits to list all files and folders in the `$DESKTOP`folder.", - "type": "string", - "const": "scope-desktop-index", - "markdownDescription": "This scope permits to list all files and folders in the `$DESKTOP`folder." - }, - { - "description": "This allows full recursive read access to the complete `$DOCUMENT` folder, files and subdirectories.\n#### This permission set includes:\n\n- `read-all`\n- `scope-document-recursive`", - "type": "string", - "const": "allow-document-read-recursive", - "markdownDescription": "This allows full recursive read access to the complete `$DOCUMENT` folder, files and subdirectories.\n#### This permission set includes:\n\n- `read-all`\n- `scope-document-recursive`" - }, - { - "description": "This allows full recursive write access to the complete `$DOCUMENT` folder, files and subdirectories.\n#### This permission set includes:\n\n- `write-all`\n- `scope-document-recursive`", - "type": "string", - "const": "allow-document-write-recursive", - "markdownDescription": "This allows full recursive write access to the complete `$DOCUMENT` folder, files and subdirectories.\n#### This permission set includes:\n\n- `write-all`\n- `scope-document-recursive`" - }, - { - "description": "This allows non-recursive read access to the `$DOCUMENT` folder.\n#### This permission set includes:\n\n- `read-all`\n- `scope-document`", - "type": "string", - "const": "allow-document-read", - "markdownDescription": "This allows non-recursive read access to the `$DOCUMENT` folder.\n#### This permission set includes:\n\n- `read-all`\n- `scope-document`" - }, - { - "description": "This allows non-recursive write access to the `$DOCUMENT` folder.\n#### This permission set includes:\n\n- `write-all`\n- `scope-document`", - "type": "string", - "const": "allow-document-write", - "markdownDescription": "This allows non-recursive write access to the `$DOCUMENT` folder.\n#### This permission set includes:\n\n- `write-all`\n- `scope-document`" - }, - { - "description": "This allows full recursive read access to metadata of the `$DOCUMENT` folder, including file listing and statistics.\n#### This permission set includes:\n\n- `read-meta`\n- `scope-document-recursive`", - "type": "string", - "const": "allow-document-meta-recursive", - "markdownDescription": "This allows full recursive read access to metadata of the `$DOCUMENT` folder, including file listing and statistics.\n#### This permission set includes:\n\n- `read-meta`\n- `scope-document-recursive`" - }, - { - "description": "This allows non-recursive read access to metadata of the `$DOCUMENT` folder, including file listing and statistics.\n#### This permission set includes:\n\n- `read-meta`\n- `scope-document-index`", - "type": "string", - "const": "allow-document-meta", - "markdownDescription": "This allows non-recursive read access to metadata of the `$DOCUMENT` folder, including file listing and statistics.\n#### This permission set includes:\n\n- `read-meta`\n- `scope-document-index`" - }, - { - "description": "This scope permits recursive access to the complete `$DOCUMENT` folder, including sub directories and files.", - "type": "string", - "const": "scope-document-recursive", - "markdownDescription": "This scope permits recursive access to the complete `$DOCUMENT` folder, including sub directories and files." - }, - { - "description": "This scope permits access to all files and list content of top level directories in the `$DOCUMENT` folder.", - "type": "string", - "const": "scope-document", - "markdownDescription": "This scope permits access to all files and list content of top level directories in the `$DOCUMENT` folder." - }, - { - "description": "This scope permits to list all files and folders in the `$DOCUMENT`folder.", - "type": "string", - "const": "scope-document-index", - "markdownDescription": "This scope permits to list all files and folders in the `$DOCUMENT`folder." - }, - { - "description": "This allows full recursive read access to the complete `$DOWNLOAD` folder, files and subdirectories.\n#### This permission set includes:\n\n- `read-all`\n- `scope-download-recursive`", - "type": "string", - "const": "allow-download-read-recursive", - "markdownDescription": "This allows full recursive read access to the complete `$DOWNLOAD` folder, files and subdirectories.\n#### This permission set includes:\n\n- `read-all`\n- `scope-download-recursive`" - }, - { - "description": "This allows full recursive write access to the complete `$DOWNLOAD` folder, files and subdirectories.\n#### This permission set includes:\n\n- `write-all`\n- `scope-download-recursive`", - "type": "string", - "const": "allow-download-write-recursive", - "markdownDescription": "This allows full recursive write access to the complete `$DOWNLOAD` folder, files and subdirectories.\n#### This permission set includes:\n\n- `write-all`\n- `scope-download-recursive`" - }, - { - "description": "This allows non-recursive read access to the `$DOWNLOAD` folder.\n#### This permission set includes:\n\n- `read-all`\n- `scope-download`", - "type": "string", - "const": "allow-download-read", - "markdownDescription": "This allows non-recursive read access to the `$DOWNLOAD` folder.\n#### This permission set includes:\n\n- `read-all`\n- `scope-download`" - }, - { - "description": "This allows non-recursive write access to the `$DOWNLOAD` folder.\n#### This permission set includes:\n\n- `write-all`\n- `scope-download`", - "type": "string", - "const": "allow-download-write", - "markdownDescription": "This allows non-recursive write access to the `$DOWNLOAD` folder.\n#### This permission set includes:\n\n- `write-all`\n- `scope-download`" - }, - { - "description": "This allows full recursive read access to metadata of the `$DOWNLOAD` folder, including file listing and statistics.\n#### This permission set includes:\n\n- `read-meta`\n- `scope-download-recursive`", - "type": "string", - "const": "allow-download-meta-recursive", - "markdownDescription": "This allows full recursive read access to metadata of the `$DOWNLOAD` folder, including file listing and statistics.\n#### This permission set includes:\n\n- `read-meta`\n- `scope-download-recursive`" - }, - { - "description": "This allows non-recursive read access to metadata of the `$DOWNLOAD` folder, including file listing and statistics.\n#### This permission set includes:\n\n- `read-meta`\n- `scope-download-index`", - "type": "string", - "const": "allow-download-meta", - "markdownDescription": "This allows non-recursive read access to metadata of the `$DOWNLOAD` folder, including file listing and statistics.\n#### This permission set includes:\n\n- `read-meta`\n- `scope-download-index`" - }, - { - "description": "This scope permits recursive access to the complete `$DOWNLOAD` folder, including sub directories and files.", - "type": "string", - "const": "scope-download-recursive", - "markdownDescription": "This scope permits recursive access to the complete `$DOWNLOAD` folder, including sub directories and files." - }, - { - "description": "This scope permits access to all files and list content of top level directories in the `$DOWNLOAD` folder.", - "type": "string", - "const": "scope-download", - "markdownDescription": "This scope permits access to all files and list content of top level directories in the `$DOWNLOAD` folder." - }, - { - "description": "This scope permits to list all files and folders in the `$DOWNLOAD`folder.", - "type": "string", - "const": "scope-download-index", - "markdownDescription": "This scope permits to list all files and folders in the `$DOWNLOAD`folder." - }, - { - "description": "This allows full recursive read access to the complete `$EXE` folder, files and subdirectories.\n#### This permission set includes:\n\n- `read-all`\n- `scope-exe-recursive`", - "type": "string", - "const": "allow-exe-read-recursive", - "markdownDescription": "This allows full recursive read access to the complete `$EXE` folder, files and subdirectories.\n#### This permission set includes:\n\n- `read-all`\n- `scope-exe-recursive`" - }, - { - "description": "This allows full recursive write access to the complete `$EXE` folder, files and subdirectories.\n#### This permission set includes:\n\n- `write-all`\n- `scope-exe-recursive`", - "type": "string", - "const": "allow-exe-write-recursive", - "markdownDescription": "This allows full recursive write access to the complete `$EXE` folder, files and subdirectories.\n#### This permission set includes:\n\n- `write-all`\n- `scope-exe-recursive`" - }, - { - "description": "This allows non-recursive read access to the `$EXE` folder.\n#### This permission set includes:\n\n- `read-all`\n- `scope-exe`", - "type": "string", - "const": "allow-exe-read", - "markdownDescription": "This allows non-recursive read access to the `$EXE` folder.\n#### This permission set includes:\n\n- `read-all`\n- `scope-exe`" - }, - { - "description": "This allows non-recursive write access to the `$EXE` folder.\n#### This permission set includes:\n\n- `write-all`\n- `scope-exe`", - "type": "string", - "const": "allow-exe-write", - "markdownDescription": "This allows non-recursive write access to the `$EXE` folder.\n#### This permission set includes:\n\n- `write-all`\n- `scope-exe`" - }, - { - "description": "This allows full recursive read access to metadata of the `$EXE` folder, including file listing and statistics.\n#### This permission set includes:\n\n- `read-meta`\n- `scope-exe-recursive`", - "type": "string", - "const": "allow-exe-meta-recursive", - "markdownDescription": "This allows full recursive read access to metadata of the `$EXE` folder, including file listing and statistics.\n#### This permission set includes:\n\n- `read-meta`\n- `scope-exe-recursive`" - }, - { - "description": "This allows non-recursive read access to metadata of the `$EXE` folder, including file listing and statistics.\n#### This permission set includes:\n\n- `read-meta`\n- `scope-exe-index`", - "type": "string", - "const": "allow-exe-meta", - "markdownDescription": "This allows non-recursive read access to metadata of the `$EXE` folder, including file listing and statistics.\n#### This permission set includes:\n\n- `read-meta`\n- `scope-exe-index`" - }, - { - "description": "This scope permits recursive access to the complete `$EXE` folder, including sub directories and files.", - "type": "string", - "const": "scope-exe-recursive", - "markdownDescription": "This scope permits recursive access to the complete `$EXE` folder, including sub directories and files." - }, - { - "description": "This scope permits access to all files and list content of top level directories in the `$EXE` folder.", - "type": "string", - "const": "scope-exe", - "markdownDescription": "This scope permits access to all files and list content of top level directories in the `$EXE` folder." - }, - { - "description": "This scope permits to list all files and folders in the `$EXE`folder.", - "type": "string", - "const": "scope-exe-index", - "markdownDescription": "This scope permits to list all files and folders in the `$EXE`folder." - }, - { - "description": "This allows full recursive read access to the complete `$FONT` folder, files and subdirectories.\n#### This permission set includes:\n\n- `read-all`\n- `scope-font-recursive`", - "type": "string", - "const": "allow-font-read-recursive", - "markdownDescription": "This allows full recursive read access to the complete `$FONT` folder, files and subdirectories.\n#### This permission set includes:\n\n- `read-all`\n- `scope-font-recursive`" - }, - { - "description": "This allows full recursive write access to the complete `$FONT` folder, files and subdirectories.\n#### This permission set includes:\n\n- `write-all`\n- `scope-font-recursive`", - "type": "string", - "const": "allow-font-write-recursive", - "markdownDescription": "This allows full recursive write access to the complete `$FONT` folder, files and subdirectories.\n#### This permission set includes:\n\n- `write-all`\n- `scope-font-recursive`" - }, - { - "description": "This allows non-recursive read access to the `$FONT` folder.\n#### This permission set includes:\n\n- `read-all`\n- `scope-font`", - "type": "string", - "const": "allow-font-read", - "markdownDescription": "This allows non-recursive read access to the `$FONT` folder.\n#### This permission set includes:\n\n- `read-all`\n- `scope-font`" - }, - { - "description": "This allows non-recursive write access to the `$FONT` folder.\n#### This permission set includes:\n\n- `write-all`\n- `scope-font`", - "type": "string", - "const": "allow-font-write", - "markdownDescription": "This allows non-recursive write access to the `$FONT` folder.\n#### This permission set includes:\n\n- `write-all`\n- `scope-font`" - }, - { - "description": "This allows full recursive read access to metadata of the `$FONT` folder, including file listing and statistics.\n#### This permission set includes:\n\n- `read-meta`\n- `scope-font-recursive`", - "type": "string", - "const": "allow-font-meta-recursive", - "markdownDescription": "This allows full recursive read access to metadata of the `$FONT` folder, including file listing and statistics.\n#### This permission set includes:\n\n- `read-meta`\n- `scope-font-recursive`" - }, - { - "description": "This allows non-recursive read access to metadata of the `$FONT` folder, including file listing and statistics.\n#### This permission set includes:\n\n- `read-meta`\n- `scope-font-index`", - "type": "string", - "const": "allow-font-meta", - "markdownDescription": "This allows non-recursive read access to metadata of the `$FONT` folder, including file listing and statistics.\n#### This permission set includes:\n\n- `read-meta`\n- `scope-font-index`" - }, - { - "description": "This scope permits recursive access to the complete `$FONT` folder, including sub directories and files.", - "type": "string", - "const": "scope-font-recursive", - "markdownDescription": "This scope permits recursive access to the complete `$FONT` folder, including sub directories and files." - }, - { - "description": "This scope permits access to all files and list content of top level directories in the `$FONT` folder.", - "type": "string", - "const": "scope-font", - "markdownDescription": "This scope permits access to all files and list content of top level directories in the `$FONT` folder." - }, - { - "description": "This scope permits to list all files and folders in the `$FONT`folder.", - "type": "string", - "const": "scope-font-index", - "markdownDescription": "This scope permits to list all files and folders in the `$FONT`folder." - }, - { - "description": "This allows full recursive read access to the complete `$HOME` folder, files and subdirectories.\n#### This permission set includes:\n\n- `read-all`\n- `scope-home-recursive`", - "type": "string", - "const": "allow-home-read-recursive", - "markdownDescription": "This allows full recursive read access to the complete `$HOME` folder, files and subdirectories.\n#### This permission set includes:\n\n- `read-all`\n- `scope-home-recursive`" - }, - { - "description": "This allows full recursive write access to the complete `$HOME` folder, files and subdirectories.\n#### This permission set includes:\n\n- `write-all`\n- `scope-home-recursive`", - "type": "string", - "const": "allow-home-write-recursive", - "markdownDescription": "This allows full recursive write access to the complete `$HOME` folder, files and subdirectories.\n#### This permission set includes:\n\n- `write-all`\n- `scope-home-recursive`" - }, - { - "description": "This allows non-recursive read access to the `$HOME` folder.\n#### This permission set includes:\n\n- `read-all`\n- `scope-home`", - "type": "string", - "const": "allow-home-read", - "markdownDescription": "This allows non-recursive read access to the `$HOME` folder.\n#### This permission set includes:\n\n- `read-all`\n- `scope-home`" - }, - { - "description": "This allows non-recursive write access to the `$HOME` folder.\n#### This permission set includes:\n\n- `write-all`\n- `scope-home`", - "type": "string", - "const": "allow-home-write", - "markdownDescription": "This allows non-recursive write access to the `$HOME` folder.\n#### This permission set includes:\n\n- `write-all`\n- `scope-home`" - }, - { - "description": "This allows full recursive read access to metadata of the `$HOME` folder, including file listing and statistics.\n#### This permission set includes:\n\n- `read-meta`\n- `scope-home-recursive`", - "type": "string", - "const": "allow-home-meta-recursive", - "markdownDescription": "This allows full recursive read access to metadata of the `$HOME` folder, including file listing and statistics.\n#### This permission set includes:\n\n- `read-meta`\n- `scope-home-recursive`" - }, - { - "description": "This allows non-recursive read access to metadata of the `$HOME` folder, including file listing and statistics.\n#### This permission set includes:\n\n- `read-meta`\n- `scope-home-index`", - "type": "string", - "const": "allow-home-meta", - "markdownDescription": "This allows non-recursive read access to metadata of the `$HOME` folder, including file listing and statistics.\n#### This permission set includes:\n\n- `read-meta`\n- `scope-home-index`" - }, - { - "description": "This scope permits recursive access to the complete `$HOME` folder, including sub directories and files.", - "type": "string", - "const": "scope-home-recursive", - "markdownDescription": "This scope permits recursive access to the complete `$HOME` folder, including sub directories and files." - }, - { - "description": "This scope permits access to all files and list content of top level directories in the `$HOME` folder.", - "type": "string", - "const": "scope-home", - "markdownDescription": "This scope permits access to all files and list content of top level directories in the `$HOME` folder." - }, - { - "description": "This scope permits to list all files and folders in the `$HOME`folder.", - "type": "string", - "const": "scope-home-index", - "markdownDescription": "This scope permits to list all files and folders in the `$HOME`folder." - }, - { - "description": "This allows full recursive read access to the complete `$LOCALDATA` folder, files and subdirectories.\n#### This permission set includes:\n\n- `read-all`\n- `scope-localdata-recursive`", - "type": "string", - "const": "allow-localdata-read-recursive", - "markdownDescription": "This allows full recursive read access to the complete `$LOCALDATA` folder, files and subdirectories.\n#### This permission set includes:\n\n- `read-all`\n- `scope-localdata-recursive`" - }, - { - "description": "This allows full recursive write access to the complete `$LOCALDATA` folder, files and subdirectories.\n#### This permission set includes:\n\n- `write-all`\n- `scope-localdata-recursive`", - "type": "string", - "const": "allow-localdata-write-recursive", - "markdownDescription": "This allows full recursive write access to the complete `$LOCALDATA` folder, files and subdirectories.\n#### This permission set includes:\n\n- `write-all`\n- `scope-localdata-recursive`" - }, - { - "description": "This allows non-recursive read access to the `$LOCALDATA` folder.\n#### This permission set includes:\n\n- `read-all`\n- `scope-localdata`", - "type": "string", - "const": "allow-localdata-read", - "markdownDescription": "This allows non-recursive read access to the `$LOCALDATA` folder.\n#### This permission set includes:\n\n- `read-all`\n- `scope-localdata`" - }, - { - "description": "This allows non-recursive write access to the `$LOCALDATA` folder.\n#### This permission set includes:\n\n- `write-all`\n- `scope-localdata`", - "type": "string", - "const": "allow-localdata-write", - "markdownDescription": "This allows non-recursive write access to the `$LOCALDATA` folder.\n#### This permission set includes:\n\n- `write-all`\n- `scope-localdata`" - }, - { - "description": "This allows full recursive read access to metadata of the `$LOCALDATA` folder, including file listing and statistics.\n#### This permission set includes:\n\n- `read-meta`\n- `scope-localdata-recursive`", - "type": "string", - "const": "allow-localdata-meta-recursive", - "markdownDescription": "This allows full recursive read access to metadata of the `$LOCALDATA` folder, including file listing and statistics.\n#### This permission set includes:\n\n- `read-meta`\n- `scope-localdata-recursive`" - }, - { - "description": "This allows non-recursive read access to metadata of the `$LOCALDATA` folder, including file listing and statistics.\n#### This permission set includes:\n\n- `read-meta`\n- `scope-localdata-index`", - "type": "string", - "const": "allow-localdata-meta", - "markdownDescription": "This allows non-recursive read access to metadata of the `$LOCALDATA` folder, including file listing and statistics.\n#### This permission set includes:\n\n- `read-meta`\n- `scope-localdata-index`" - }, - { - "description": "This scope permits recursive access to the complete `$LOCALDATA` folder, including sub directories and files.", - "type": "string", - "const": "scope-localdata-recursive", - "markdownDescription": "This scope permits recursive access to the complete `$LOCALDATA` folder, including sub directories and files." - }, - { - "description": "This scope permits access to all files and list content of top level directories in the `$LOCALDATA` folder.", - "type": "string", - "const": "scope-localdata", - "markdownDescription": "This scope permits access to all files and list content of top level directories in the `$LOCALDATA` folder." - }, - { - "description": "This scope permits to list all files and folders in the `$LOCALDATA`folder.", - "type": "string", - "const": "scope-localdata-index", - "markdownDescription": "This scope permits to list all files and folders in the `$LOCALDATA`folder." - }, - { - "description": "This allows full recursive read access to the complete `$LOG` folder, files and subdirectories.\n#### This permission set includes:\n\n- `read-all`\n- `scope-log-recursive`", - "type": "string", - "const": "allow-log-read-recursive", - "markdownDescription": "This allows full recursive read access to the complete `$LOG` folder, files and subdirectories.\n#### This permission set includes:\n\n- `read-all`\n- `scope-log-recursive`" - }, - { - "description": "This allows full recursive write access to the complete `$LOG` folder, files and subdirectories.\n#### This permission set includes:\n\n- `write-all`\n- `scope-log-recursive`", - "type": "string", - "const": "allow-log-write-recursive", - "markdownDescription": "This allows full recursive write access to the complete `$LOG` folder, files and subdirectories.\n#### This permission set includes:\n\n- `write-all`\n- `scope-log-recursive`" - }, - { - "description": "This allows non-recursive read access to the `$LOG` folder.\n#### This permission set includes:\n\n- `read-all`\n- `scope-log`", - "type": "string", - "const": "allow-log-read", - "markdownDescription": "This allows non-recursive read access to the `$LOG` folder.\n#### This permission set includes:\n\n- `read-all`\n- `scope-log`" - }, - { - "description": "This allows non-recursive write access to the `$LOG` folder.\n#### This permission set includes:\n\n- `write-all`\n- `scope-log`", - "type": "string", - "const": "allow-log-write", - "markdownDescription": "This allows non-recursive write access to the `$LOG` folder.\n#### This permission set includes:\n\n- `write-all`\n- `scope-log`" - }, - { - "description": "This allows full recursive read access to metadata of the `$LOG` folder, including file listing and statistics.\n#### This permission set includes:\n\n- `read-meta`\n- `scope-log-recursive`", - "type": "string", - "const": "allow-log-meta-recursive", - "markdownDescription": "This allows full recursive read access to metadata of the `$LOG` folder, including file listing and statistics.\n#### This permission set includes:\n\n- `read-meta`\n- `scope-log-recursive`" - }, - { - "description": "This allows non-recursive read access to metadata of the `$LOG` folder, including file listing and statistics.\n#### This permission set includes:\n\n- `read-meta`\n- `scope-log-index`", - "type": "string", - "const": "allow-log-meta", - "markdownDescription": "This allows non-recursive read access to metadata of the `$LOG` folder, including file listing and statistics.\n#### This permission set includes:\n\n- `read-meta`\n- `scope-log-index`" - }, - { - "description": "This scope permits recursive access to the complete `$LOG` folder, including sub directories and files.", - "type": "string", - "const": "scope-log-recursive", - "markdownDescription": "This scope permits recursive access to the complete `$LOG` folder, including sub directories and files." - }, - { - "description": "This scope permits access to all files and list content of top level directories in the `$LOG` folder.", - "type": "string", - "const": "scope-log", - "markdownDescription": "This scope permits access to all files and list content of top level directories in the `$LOG` folder." - }, - { - "description": "This scope permits to list all files and folders in the `$LOG`folder.", - "type": "string", - "const": "scope-log-index", - "markdownDescription": "This scope permits to list all files and folders in the `$LOG`folder." - }, - { - "description": "This allows full recursive read access to the complete `$PICTURE` folder, files and subdirectories.\n#### This permission set includes:\n\n- `read-all`\n- `scope-picture-recursive`", - "type": "string", - "const": "allow-picture-read-recursive", - "markdownDescription": "This allows full recursive read access to the complete `$PICTURE` folder, files and subdirectories.\n#### This permission set includes:\n\n- `read-all`\n- `scope-picture-recursive`" - }, - { - "description": "This allows full recursive write access to the complete `$PICTURE` folder, files and subdirectories.\n#### This permission set includes:\n\n- `write-all`\n- `scope-picture-recursive`", - "type": "string", - "const": "allow-picture-write-recursive", - "markdownDescription": "This allows full recursive write access to the complete `$PICTURE` folder, files and subdirectories.\n#### This permission set includes:\n\n- `write-all`\n- `scope-picture-recursive`" - }, - { - "description": "This allows non-recursive read access to the `$PICTURE` folder.\n#### This permission set includes:\n\n- `read-all`\n- `scope-picture`", - "type": "string", - "const": "allow-picture-read", - "markdownDescription": "This allows non-recursive read access to the `$PICTURE` folder.\n#### This permission set includes:\n\n- `read-all`\n- `scope-picture`" - }, - { - "description": "This allows non-recursive write access to the `$PICTURE` folder.\n#### This permission set includes:\n\n- `write-all`\n- `scope-picture`", - "type": "string", - "const": "allow-picture-write", - "markdownDescription": "This allows non-recursive write access to the `$PICTURE` folder.\n#### This permission set includes:\n\n- `write-all`\n- `scope-picture`" - }, - { - "description": "This allows full recursive read access to metadata of the `$PICTURE` folder, including file listing and statistics.\n#### This permission set includes:\n\n- `read-meta`\n- `scope-picture-recursive`", - "type": "string", - "const": "allow-picture-meta-recursive", - "markdownDescription": "This allows full recursive read access to metadata of the `$PICTURE` folder, including file listing and statistics.\n#### This permission set includes:\n\n- `read-meta`\n- `scope-picture-recursive`" - }, - { - "description": "This allows non-recursive read access to metadata of the `$PICTURE` folder, including file listing and statistics.\n#### This permission set includes:\n\n- `read-meta`\n- `scope-picture-index`", - "type": "string", - "const": "allow-picture-meta", - "markdownDescription": "This allows non-recursive read access to metadata of the `$PICTURE` folder, including file listing and statistics.\n#### This permission set includes:\n\n- `read-meta`\n- `scope-picture-index`" - }, - { - "description": "This scope permits recursive access to the complete `$PICTURE` folder, including sub directories and files.", - "type": "string", - "const": "scope-picture-recursive", - "markdownDescription": "This scope permits recursive access to the complete `$PICTURE` folder, including sub directories and files." - }, - { - "description": "This scope permits access to all files and list content of top level directories in the `$PICTURE` folder.", - "type": "string", - "const": "scope-picture", - "markdownDescription": "This scope permits access to all files and list content of top level directories in the `$PICTURE` folder." - }, - { - "description": "This scope permits to list all files and folders in the `$PICTURE`folder.", - "type": "string", - "const": "scope-picture-index", - "markdownDescription": "This scope permits to list all files and folders in the `$PICTURE`folder." - }, - { - "description": "This allows full recursive read access to the complete `$PUBLIC` folder, files and subdirectories.\n#### This permission set includes:\n\n- `read-all`\n- `scope-public-recursive`", - "type": "string", - "const": "allow-public-read-recursive", - "markdownDescription": "This allows full recursive read access to the complete `$PUBLIC` folder, files and subdirectories.\n#### This permission set includes:\n\n- `read-all`\n- `scope-public-recursive`" - }, - { - "description": "This allows full recursive write access to the complete `$PUBLIC` folder, files and subdirectories.\n#### This permission set includes:\n\n- `write-all`\n- `scope-public-recursive`", - "type": "string", - "const": "allow-public-write-recursive", - "markdownDescription": "This allows full recursive write access to the complete `$PUBLIC` folder, files and subdirectories.\n#### This permission set includes:\n\n- `write-all`\n- `scope-public-recursive`" - }, - { - "description": "This allows non-recursive read access to the `$PUBLIC` folder.\n#### This permission set includes:\n\n- `read-all`\n- `scope-public`", - "type": "string", - "const": "allow-public-read", - "markdownDescription": "This allows non-recursive read access to the `$PUBLIC` folder.\n#### This permission set includes:\n\n- `read-all`\n- `scope-public`" - }, - { - "description": "This allows non-recursive write access to the `$PUBLIC` folder.\n#### This permission set includes:\n\n- `write-all`\n- `scope-public`", - "type": "string", - "const": "allow-public-write", - "markdownDescription": "This allows non-recursive write access to the `$PUBLIC` folder.\n#### This permission set includes:\n\n- `write-all`\n- `scope-public`" - }, - { - "description": "This allows full recursive read access to metadata of the `$PUBLIC` folder, including file listing and statistics.\n#### This permission set includes:\n\n- `read-meta`\n- `scope-public-recursive`", - "type": "string", - "const": "allow-public-meta-recursive", - "markdownDescription": "This allows full recursive read access to metadata of the `$PUBLIC` folder, including file listing and statistics.\n#### This permission set includes:\n\n- `read-meta`\n- `scope-public-recursive`" - }, - { - "description": "This allows non-recursive read access to metadata of the `$PUBLIC` folder, including file listing and statistics.\n#### This permission set includes:\n\n- `read-meta`\n- `scope-public-index`", - "type": "string", - "const": "allow-public-meta", - "markdownDescription": "This allows non-recursive read access to metadata of the `$PUBLIC` folder, including file listing and statistics.\n#### This permission set includes:\n\n- `read-meta`\n- `scope-public-index`" - }, - { - "description": "This scope permits recursive access to the complete `$PUBLIC` folder, including sub directories and files.", - "type": "string", - "const": "scope-public-recursive", - "markdownDescription": "This scope permits recursive access to the complete `$PUBLIC` folder, including sub directories and files." - }, - { - "description": "This scope permits access to all files and list content of top level directories in the `$PUBLIC` folder.", - "type": "string", - "const": "scope-public", - "markdownDescription": "This scope permits access to all files and list content of top level directories in the `$PUBLIC` folder." - }, - { - "description": "This scope permits to list all files and folders in the `$PUBLIC`folder.", - "type": "string", - "const": "scope-public-index", - "markdownDescription": "This scope permits to list all files and folders in the `$PUBLIC`folder." - }, - { - "description": "This allows full recursive read access to the complete `$RESOURCE` folder, files and subdirectories.\n#### This permission set includes:\n\n- `read-all`\n- `scope-resource-recursive`", - "type": "string", - "const": "allow-resource-read-recursive", - "markdownDescription": "This allows full recursive read access to the complete `$RESOURCE` folder, files and subdirectories.\n#### This permission set includes:\n\n- `read-all`\n- `scope-resource-recursive`" - }, - { - "description": "This allows full recursive write access to the complete `$RESOURCE` folder, files and subdirectories.\n#### This permission set includes:\n\n- `write-all`\n- `scope-resource-recursive`", - "type": "string", - "const": "allow-resource-write-recursive", - "markdownDescription": "This allows full recursive write access to the complete `$RESOURCE` folder, files and subdirectories.\n#### This permission set includes:\n\n- `write-all`\n- `scope-resource-recursive`" - }, - { - "description": "This allows non-recursive read access to the `$RESOURCE` folder.\n#### This permission set includes:\n\n- `read-all`\n- `scope-resource`", - "type": "string", - "const": "allow-resource-read", - "markdownDescription": "This allows non-recursive read access to the `$RESOURCE` folder.\n#### This permission set includes:\n\n- `read-all`\n- `scope-resource`" - }, - { - "description": "This allows non-recursive write access to the `$RESOURCE` folder.\n#### This permission set includes:\n\n- `write-all`\n- `scope-resource`", - "type": "string", - "const": "allow-resource-write", - "markdownDescription": "This allows non-recursive write access to the `$RESOURCE` folder.\n#### This permission set includes:\n\n- `write-all`\n- `scope-resource`" - }, - { - "description": "This allows full recursive read access to metadata of the `$RESOURCE` folder, including file listing and statistics.\n#### This permission set includes:\n\n- `read-meta`\n- `scope-resource-recursive`", - "type": "string", - "const": "allow-resource-meta-recursive", - "markdownDescription": "This allows full recursive read access to metadata of the `$RESOURCE` folder, including file listing and statistics.\n#### This permission set includes:\n\n- `read-meta`\n- `scope-resource-recursive`" - }, - { - "description": "This allows non-recursive read access to metadata of the `$RESOURCE` folder, including file listing and statistics.\n#### This permission set includes:\n\n- `read-meta`\n- `scope-resource-index`", - "type": "string", - "const": "allow-resource-meta", - "markdownDescription": "This allows non-recursive read access to metadata of the `$RESOURCE` folder, including file listing and statistics.\n#### This permission set includes:\n\n- `read-meta`\n- `scope-resource-index`" - }, - { - "description": "This scope permits recursive access to the complete `$RESOURCE` folder, including sub directories and files.", - "type": "string", - "const": "scope-resource-recursive", - "markdownDescription": "This scope permits recursive access to the complete `$RESOURCE` folder, including sub directories and files." - }, - { - "description": "This scope permits access to all files and list content of top level directories in the `$RESOURCE` folder.", - "type": "string", - "const": "scope-resource", - "markdownDescription": "This scope permits access to all files and list content of top level directories in the `$RESOURCE` folder." - }, - { - "description": "This scope permits to list all files and folders in the `$RESOURCE`folder.", - "type": "string", - "const": "scope-resource-index", - "markdownDescription": "This scope permits to list all files and folders in the `$RESOURCE`folder." - }, - { - "description": "This allows full recursive read access to the complete `$RUNTIME` folder, files and subdirectories.\n#### This permission set includes:\n\n- `read-all`\n- `scope-runtime-recursive`", - "type": "string", - "const": "allow-runtime-read-recursive", - "markdownDescription": "This allows full recursive read access to the complete `$RUNTIME` folder, files and subdirectories.\n#### This permission set includes:\n\n- `read-all`\n- `scope-runtime-recursive`" - }, - { - "description": "This allows full recursive write access to the complete `$RUNTIME` folder, files and subdirectories.\n#### This permission set includes:\n\n- `write-all`\n- `scope-runtime-recursive`", - "type": "string", - "const": "allow-runtime-write-recursive", - "markdownDescription": "This allows full recursive write access to the complete `$RUNTIME` folder, files and subdirectories.\n#### This permission set includes:\n\n- `write-all`\n- `scope-runtime-recursive`" - }, - { - "description": "This allows non-recursive read access to the `$RUNTIME` folder.\n#### This permission set includes:\n\n- `read-all`\n- `scope-runtime`", - "type": "string", - "const": "allow-runtime-read", - "markdownDescription": "This allows non-recursive read access to the `$RUNTIME` folder.\n#### This permission set includes:\n\n- `read-all`\n- `scope-runtime`" - }, - { - "description": "This allows non-recursive write access to the `$RUNTIME` folder.\n#### This permission set includes:\n\n- `write-all`\n- `scope-runtime`", - "type": "string", - "const": "allow-runtime-write", - "markdownDescription": "This allows non-recursive write access to the `$RUNTIME` folder.\n#### This permission set includes:\n\n- `write-all`\n- `scope-runtime`" - }, - { - "description": "This allows full recursive read access to metadata of the `$RUNTIME` folder, including file listing and statistics.\n#### This permission set includes:\n\n- `read-meta`\n- `scope-runtime-recursive`", - "type": "string", - "const": "allow-runtime-meta-recursive", - "markdownDescription": "This allows full recursive read access to metadata of the `$RUNTIME` folder, including file listing and statistics.\n#### This permission set includes:\n\n- `read-meta`\n- `scope-runtime-recursive`" - }, - { - "description": "This allows non-recursive read access to metadata of the `$RUNTIME` folder, including file listing and statistics.\n#### This permission set includes:\n\n- `read-meta`\n- `scope-runtime-index`", - "type": "string", - "const": "allow-runtime-meta", - "markdownDescription": "This allows non-recursive read access to metadata of the `$RUNTIME` folder, including file listing and statistics.\n#### This permission set includes:\n\n- `read-meta`\n- `scope-runtime-index`" - }, - { - "description": "This scope permits recursive access to the complete `$RUNTIME` folder, including sub directories and files.", - "type": "string", - "const": "scope-runtime-recursive", - "markdownDescription": "This scope permits recursive access to the complete `$RUNTIME` folder, including sub directories and files." - }, - { - "description": "This scope permits access to all files and list content of top level directories in the `$RUNTIME` folder.", - "type": "string", - "const": "scope-runtime", - "markdownDescription": "This scope permits access to all files and list content of top level directories in the `$RUNTIME` folder." - }, - { - "description": "This scope permits to list all files and folders in the `$RUNTIME`folder.", - "type": "string", - "const": "scope-runtime-index", - "markdownDescription": "This scope permits to list all files and folders in the `$RUNTIME`folder." - }, - { - "description": "This allows full recursive read access to the complete `$TEMP` folder, files and subdirectories.\n#### This permission set includes:\n\n- `read-all`\n- `scope-temp-recursive`", - "type": "string", - "const": "allow-temp-read-recursive", - "markdownDescription": "This allows full recursive read access to the complete `$TEMP` folder, files and subdirectories.\n#### This permission set includes:\n\n- `read-all`\n- `scope-temp-recursive`" - }, - { - "description": "This allows full recursive write access to the complete `$TEMP` folder, files and subdirectories.\n#### This permission set includes:\n\n- `write-all`\n- `scope-temp-recursive`", - "type": "string", - "const": "allow-temp-write-recursive", - "markdownDescription": "This allows full recursive write access to the complete `$TEMP` folder, files and subdirectories.\n#### This permission set includes:\n\n- `write-all`\n- `scope-temp-recursive`" - }, - { - "description": "This allows non-recursive read access to the `$TEMP` folder.\n#### This permission set includes:\n\n- `read-all`\n- `scope-temp`", - "type": "string", - "const": "allow-temp-read", - "markdownDescription": "This allows non-recursive read access to the `$TEMP` folder.\n#### This permission set includes:\n\n- `read-all`\n- `scope-temp`" - }, - { - "description": "This allows non-recursive write access to the `$TEMP` folder.\n#### This permission set includes:\n\n- `write-all`\n- `scope-temp`", - "type": "string", - "const": "allow-temp-write", - "markdownDescription": "This allows non-recursive write access to the `$TEMP` folder.\n#### This permission set includes:\n\n- `write-all`\n- `scope-temp`" - }, - { - "description": "This allows full recursive read access to metadata of the `$TEMP` folder, including file listing and statistics.\n#### This permission set includes:\n\n- `read-meta`\n- `scope-temp-recursive`", - "type": "string", - "const": "allow-temp-meta-recursive", - "markdownDescription": "This allows full recursive read access to metadata of the `$TEMP` folder, including file listing and statistics.\n#### This permission set includes:\n\n- `read-meta`\n- `scope-temp-recursive`" - }, - { - "description": "This allows non-recursive read access to metadata of the `$TEMP` folder, including file listing and statistics.\n#### This permission set includes:\n\n- `read-meta`\n- `scope-temp-index`", - "type": "string", - "const": "allow-temp-meta", - "markdownDescription": "This allows non-recursive read access to metadata of the `$TEMP` folder, including file listing and statistics.\n#### This permission set includes:\n\n- `read-meta`\n- `scope-temp-index`" - }, - { - "description": "This scope permits recursive access to the complete `$TEMP` folder, including sub directories and files.", - "type": "string", - "const": "scope-temp-recursive", - "markdownDescription": "This scope permits recursive access to the complete `$TEMP` folder, including sub directories and files." - }, - { - "description": "This scope permits access to all files and list content of top level directories in the `$TEMP` folder.", - "type": "string", - "const": "scope-temp", - "markdownDescription": "This scope permits access to all files and list content of top level directories in the `$TEMP` folder." - }, - { - "description": "This scope permits to list all files and folders in the `$TEMP`folder.", - "type": "string", - "const": "scope-temp-index", - "markdownDescription": "This scope permits to list all files and folders in the `$TEMP`folder." - }, - { - "description": "This allows full recursive read access to the complete `$TEMPLATE` folder, files and subdirectories.\n#### This permission set includes:\n\n- `read-all`\n- `scope-template-recursive`", - "type": "string", - "const": "allow-template-read-recursive", - "markdownDescription": "This allows full recursive read access to the complete `$TEMPLATE` folder, files and subdirectories.\n#### This permission set includes:\n\n- `read-all`\n- `scope-template-recursive`" - }, - { - "description": "This allows full recursive write access to the complete `$TEMPLATE` folder, files and subdirectories.\n#### This permission set includes:\n\n- `write-all`\n- `scope-template-recursive`", - "type": "string", - "const": "allow-template-write-recursive", - "markdownDescription": "This allows full recursive write access to the complete `$TEMPLATE` folder, files and subdirectories.\n#### This permission set includes:\n\n- `write-all`\n- `scope-template-recursive`" - }, - { - "description": "This allows non-recursive read access to the `$TEMPLATE` folder.\n#### This permission set includes:\n\n- `read-all`\n- `scope-template`", - "type": "string", - "const": "allow-template-read", - "markdownDescription": "This allows non-recursive read access to the `$TEMPLATE` folder.\n#### This permission set includes:\n\n- `read-all`\n- `scope-template`" - }, - { - "description": "This allows non-recursive write access to the `$TEMPLATE` folder.\n#### This permission set includes:\n\n- `write-all`\n- `scope-template`", - "type": "string", - "const": "allow-template-write", - "markdownDescription": "This allows non-recursive write access to the `$TEMPLATE` folder.\n#### This permission set includes:\n\n- `write-all`\n- `scope-template`" - }, - { - "description": "This allows full recursive read access to metadata of the `$TEMPLATE` folder, including file listing and statistics.\n#### This permission set includes:\n\n- `read-meta`\n- `scope-template-recursive`", - "type": "string", - "const": "allow-template-meta-recursive", - "markdownDescription": "This allows full recursive read access to metadata of the `$TEMPLATE` folder, including file listing and statistics.\n#### This permission set includes:\n\n- `read-meta`\n- `scope-template-recursive`" - }, - { - "description": "This allows non-recursive read access to metadata of the `$TEMPLATE` folder, including file listing and statistics.\n#### This permission set includes:\n\n- `read-meta`\n- `scope-template-index`", - "type": "string", - "const": "allow-template-meta", - "markdownDescription": "This allows non-recursive read access to metadata of the `$TEMPLATE` folder, including file listing and statistics.\n#### This permission set includes:\n\n- `read-meta`\n- `scope-template-index`" - }, - { - "description": "This scope permits recursive access to the complete `$TEMPLATE` folder, including sub directories and files.", - "type": "string", - "const": "scope-template-recursive", - "markdownDescription": "This scope permits recursive access to the complete `$TEMPLATE` folder, including sub directories and files." - }, - { - "description": "This scope permits access to all files and list content of top level directories in the `$TEMPLATE` folder.", - "type": "string", - "const": "scope-template", - "markdownDescription": "This scope permits access to all files and list content of top level directories in the `$TEMPLATE` folder." - }, - { - "description": "This scope permits to list all files and folders in the `$TEMPLATE`folder.", - "type": "string", - "const": "scope-template-index", - "markdownDescription": "This scope permits to list all files and folders in the `$TEMPLATE`folder." - }, - { - "description": "This allows full recursive read access to the complete `$VIDEO` folder, files and subdirectories.\n#### This permission set includes:\n\n- `read-all`\n- `scope-video-recursive`", - "type": "string", - "const": "allow-video-read-recursive", - "markdownDescription": "This allows full recursive read access to the complete `$VIDEO` folder, files and subdirectories.\n#### This permission set includes:\n\n- `read-all`\n- `scope-video-recursive`" - }, - { - "description": "This allows full recursive write access to the complete `$VIDEO` folder, files and subdirectories.\n#### This permission set includes:\n\n- `write-all`\n- `scope-video-recursive`", - "type": "string", - "const": "allow-video-write-recursive", - "markdownDescription": "This allows full recursive write access to the complete `$VIDEO` folder, files and subdirectories.\n#### This permission set includes:\n\n- `write-all`\n- `scope-video-recursive`" - }, - { - "description": "This allows non-recursive read access to the `$VIDEO` folder.\n#### This permission set includes:\n\n- `read-all`\n- `scope-video`", - "type": "string", - "const": "allow-video-read", - "markdownDescription": "This allows non-recursive read access to the `$VIDEO` folder.\n#### This permission set includes:\n\n- `read-all`\n- `scope-video`" - }, - { - "description": "This allows non-recursive write access to the `$VIDEO` folder.\n#### This permission set includes:\n\n- `write-all`\n- `scope-video`", - "type": "string", - "const": "allow-video-write", - "markdownDescription": "This allows non-recursive write access to the `$VIDEO` folder.\n#### This permission set includes:\n\n- `write-all`\n- `scope-video`" - }, - { - "description": "This allows full recursive read access to metadata of the `$VIDEO` folder, including file listing and statistics.\n#### This permission set includes:\n\n- `read-meta`\n- `scope-video-recursive`", - "type": "string", - "const": "allow-video-meta-recursive", - "markdownDescription": "This allows full recursive read access to metadata of the `$VIDEO` folder, including file listing and statistics.\n#### This permission set includes:\n\n- `read-meta`\n- `scope-video-recursive`" - }, - { - "description": "This allows non-recursive read access to metadata of the `$VIDEO` folder, including file listing and statistics.\n#### This permission set includes:\n\n- `read-meta`\n- `scope-video-index`", - "type": "string", - "const": "allow-video-meta", - "markdownDescription": "This allows non-recursive read access to metadata of the `$VIDEO` folder, including file listing and statistics.\n#### This permission set includes:\n\n- `read-meta`\n- `scope-video-index`" - }, - { - "description": "This scope permits recursive access to the complete `$VIDEO` folder, including sub directories and files.", - "type": "string", - "const": "scope-video-recursive", - "markdownDescription": "This scope permits recursive access to the complete `$VIDEO` folder, including sub directories and files." - }, - { - "description": "This scope permits access to all files and list content of top level directories in the `$VIDEO` folder.", - "type": "string", - "const": "scope-video", - "markdownDescription": "This scope permits access to all files and list content of top level directories in the `$VIDEO` folder." - }, - { - "description": "This scope permits to list all files and folders in the `$VIDEO`folder.", - "type": "string", - "const": "scope-video-index", - "markdownDescription": "This scope permits to list all files and folders in the `$VIDEO`folder." - }, - { - "description": "Enables the copy_file command without any pre-configured scope.", - "type": "string", - "const": "allow-copy-file", - "markdownDescription": "Enables the copy_file command without any pre-configured scope." - }, - { - "description": "Denies the copy_file command without any pre-configured scope.", - "type": "string", - "const": "deny-copy-file", - "markdownDescription": "Denies the copy_file command without any pre-configured scope." - }, - { - "description": "Enables the create command without any pre-configured scope.", - "type": "string", - "const": "allow-create", - "markdownDescription": "Enables the create command without any pre-configured scope." - }, - { - "description": "Denies the create command without any pre-configured scope.", - "type": "string", - "const": "deny-create", - "markdownDescription": "Denies the create command without any pre-configured scope." - }, - { - "description": "Enables the exists command without any pre-configured scope.", - "type": "string", - "const": "allow-exists", - "markdownDescription": "Enables the exists command without any pre-configured scope." - }, - { - "description": "Denies the exists command without any pre-configured scope.", - "type": "string", - "const": "deny-exists", - "markdownDescription": "Denies the exists command without any pre-configured scope." - }, - { - "description": "Enables the fstat command without any pre-configured scope.", - "type": "string", - "const": "allow-fstat", - "markdownDescription": "Enables the fstat command without any pre-configured scope." - }, - { - "description": "Denies the fstat command without any pre-configured scope.", - "type": "string", - "const": "deny-fstat", - "markdownDescription": "Denies the fstat command without any pre-configured scope." - }, - { - "description": "Enables the ftruncate command without any pre-configured scope.", - "type": "string", - "const": "allow-ftruncate", - "markdownDescription": "Enables the ftruncate command without any pre-configured scope." - }, - { - "description": "Denies the ftruncate command without any pre-configured scope.", - "type": "string", - "const": "deny-ftruncate", - "markdownDescription": "Denies the ftruncate command without any pre-configured scope." - }, - { - "description": "Enables the lstat command without any pre-configured scope.", - "type": "string", - "const": "allow-lstat", - "markdownDescription": "Enables the lstat command without any pre-configured scope." - }, - { - "description": "Denies the lstat command without any pre-configured scope.", - "type": "string", - "const": "deny-lstat", - "markdownDescription": "Denies the lstat command without any pre-configured scope." - }, - { - "description": "Enables the mkdir command without any pre-configured scope.", - "type": "string", - "const": "allow-mkdir", - "markdownDescription": "Enables the mkdir command without any pre-configured scope." - }, - { - "description": "Denies the mkdir command without any pre-configured scope.", - "type": "string", - "const": "deny-mkdir", - "markdownDescription": "Denies the mkdir command without any pre-configured scope." - }, - { - "description": "Enables the open command without any pre-configured scope.", - "type": "string", - "const": "allow-open", - "markdownDescription": "Enables the open command without any pre-configured scope." - }, - { - "description": "Denies the open command without any pre-configured scope.", - "type": "string", - "const": "deny-open", - "markdownDescription": "Denies the open command without any pre-configured scope." - }, - { - "description": "Enables the read command without any pre-configured scope.", - "type": "string", - "const": "allow-read", - "markdownDescription": "Enables the read command without any pre-configured scope." - }, - { - "description": "Denies the read command without any pre-configured scope.", - "type": "string", - "const": "deny-read", - "markdownDescription": "Denies the read command without any pre-configured scope." - }, - { - "description": "Enables the read_dir command without any pre-configured scope.", - "type": "string", - "const": "allow-read-dir", - "markdownDescription": "Enables the read_dir command without any pre-configured scope." - }, - { - "description": "Denies the read_dir command without any pre-configured scope.", - "type": "string", - "const": "deny-read-dir", - "markdownDescription": "Denies the read_dir command without any pre-configured scope." - }, - { - "description": "Enables the read_file command without any pre-configured scope.", - "type": "string", - "const": "allow-read-file", - "markdownDescription": "Enables the read_file command without any pre-configured scope." - }, - { - "description": "Denies the read_file command without any pre-configured scope.", - "type": "string", - "const": "deny-read-file", - "markdownDescription": "Denies the read_file command without any pre-configured scope." - }, - { - "description": "Enables the read_text_file command without any pre-configured scope.", - "type": "string", - "const": "allow-read-text-file", - "markdownDescription": "Enables the read_text_file command without any pre-configured scope." - }, - { - "description": "Denies the read_text_file command without any pre-configured scope.", - "type": "string", - "const": "deny-read-text-file", - "markdownDescription": "Denies the read_text_file command without any pre-configured scope." - }, - { - "description": "Enables the read_text_file_lines command without any pre-configured scope.", - "type": "string", - "const": "allow-read-text-file-lines", - "markdownDescription": "Enables the read_text_file_lines command without any pre-configured scope." - }, - { - "description": "Denies the read_text_file_lines command without any pre-configured scope.", - "type": "string", - "const": "deny-read-text-file-lines", - "markdownDescription": "Denies the read_text_file_lines command without any pre-configured scope." - }, - { - "description": "Enables the read_text_file_lines_next command without any pre-configured scope.", - "type": "string", - "const": "allow-read-text-file-lines-next", - "markdownDescription": "Enables the read_text_file_lines_next command without any pre-configured scope." - }, - { - "description": "Denies the read_text_file_lines_next command without any pre-configured scope.", - "type": "string", - "const": "deny-read-text-file-lines-next", - "markdownDescription": "Denies the read_text_file_lines_next command without any pre-configured scope." - }, - { - "description": "Enables the remove command without any pre-configured scope.", - "type": "string", - "const": "allow-remove", - "markdownDescription": "Enables the remove command without any pre-configured scope." - }, - { - "description": "Denies the remove command without any pre-configured scope.", - "type": "string", - "const": "deny-remove", - "markdownDescription": "Denies the remove command without any pre-configured scope." - }, - { - "description": "Enables the rename command without any pre-configured scope.", - "type": "string", - "const": "allow-rename", - "markdownDescription": "Enables the rename command without any pre-configured scope." - }, - { - "description": "Denies the rename command without any pre-configured scope.", - "type": "string", - "const": "deny-rename", - "markdownDescription": "Denies the rename command without any pre-configured scope." - }, - { - "description": "Enables the seek command without any pre-configured scope.", - "type": "string", - "const": "allow-seek", - "markdownDescription": "Enables the seek command without any pre-configured scope." - }, - { - "description": "Denies the seek command without any pre-configured scope.", - "type": "string", - "const": "deny-seek", - "markdownDescription": "Denies the seek command without any pre-configured scope." - }, - { - "description": "Enables the size command without any pre-configured scope.", - "type": "string", - "const": "allow-size", - "markdownDescription": "Enables the size command without any pre-configured scope." - }, - { - "description": "Denies the size command without any pre-configured scope.", - "type": "string", - "const": "deny-size", - "markdownDescription": "Denies the size command without any pre-configured scope." - }, - { - "description": "Enables the start_accessing_security_scoped_resource command without any pre-configured scope.", - "type": "string", - "const": "allow-start-accessing-security-scoped-resource", - "markdownDescription": "Enables the start_accessing_security_scoped_resource command without any pre-configured scope." - }, - { - "description": "Denies the start_accessing_security_scoped_resource command without any pre-configured scope.", - "type": "string", - "const": "deny-start-accessing-security-scoped-resource", - "markdownDescription": "Denies the start_accessing_security_scoped_resource command without any pre-configured scope." - }, - { - "description": "Enables the stat command without any pre-configured scope.", - "type": "string", - "const": "allow-stat", - "markdownDescription": "Enables the stat command without any pre-configured scope." - }, - { - "description": "Denies the stat command without any pre-configured scope.", - "type": "string", - "const": "deny-stat", - "markdownDescription": "Denies the stat command without any pre-configured scope." - }, - { - "description": "Enables the stop_accessing_security_scoped_resource command without any pre-configured scope.", - "type": "string", - "const": "allow-stop-accessing-security-scoped-resource", - "markdownDescription": "Enables the stop_accessing_security_scoped_resource command without any pre-configured scope." - }, - { - "description": "Denies the stop_accessing_security_scoped_resource command without any pre-configured scope.", - "type": "string", - "const": "deny-stop-accessing-security-scoped-resource", - "markdownDescription": "Denies the stop_accessing_security_scoped_resource command without any pre-configured scope." - }, - { - "description": "Enables the truncate command without any pre-configured scope.", - "type": "string", - "const": "allow-truncate", - "markdownDescription": "Enables the truncate command without any pre-configured scope." - }, - { - "description": "Denies the truncate command without any pre-configured scope.", - "type": "string", - "const": "deny-truncate", - "markdownDescription": "Denies the truncate command without any pre-configured scope." - }, - { - "description": "Enables the unwatch command without any pre-configured scope.", - "type": "string", - "const": "allow-unwatch", - "markdownDescription": "Enables the unwatch command without any pre-configured scope." - }, - { - "description": "Denies the unwatch command without any pre-configured scope.", - "type": "string", - "const": "deny-unwatch", - "markdownDescription": "Denies the unwatch command without any pre-configured scope." - }, - { - "description": "Enables the watch command without any pre-configured scope.", - "type": "string", - "const": "allow-watch", - "markdownDescription": "Enables the watch command without any pre-configured scope." - }, - { - "description": "Denies the watch command without any pre-configured scope.", - "type": "string", - "const": "deny-watch", - "markdownDescription": "Denies the watch command without any pre-configured scope." - }, - { - "description": "Enables the write command without any pre-configured scope.", - "type": "string", - "const": "allow-write", - "markdownDescription": "Enables the write command without any pre-configured scope." - }, - { - "description": "Denies the write command without any pre-configured scope.", - "type": "string", - "const": "deny-write", - "markdownDescription": "Denies the write command without any pre-configured scope." - }, - { - "description": "Enables the write_file command without any pre-configured scope.", - "type": "string", - "const": "allow-write-file", - "markdownDescription": "Enables the write_file command without any pre-configured scope." - }, - { - "description": "Denies the write_file command without any pre-configured scope.", - "type": "string", - "const": "deny-write-file", - "markdownDescription": "Denies the write_file command without any pre-configured scope." - }, - { - "description": "Enables the write_text_file command without any pre-configured scope.", - "type": "string", - "const": "allow-write-text-file", - "markdownDescription": "Enables the write_text_file command without any pre-configured scope." - }, - { - "description": "Denies the write_text_file command without any pre-configured scope.", - "type": "string", - "const": "deny-write-text-file", - "markdownDescription": "Denies the write_text_file command without any pre-configured scope." - }, - { - "description": "This permissions allows to create the application specific directories.\n", - "type": "string", - "const": "create-app-specific-dirs", - "markdownDescription": "This permissions allows to create the application specific directories.\n" - }, - { - "description": "This set of permissions describes the what kind of\nfile system access the `fs` plugin has enabled or denied by default.\n\n#### Granted Permissions\n\nThis default permission set enables read access to the\napplication specific directories (AppConfig, AppData, AppLocalData, AppCache,\nAppLog) and all files and sub directories created in it.\nThe location of these directories depends on the operating system,\nwhere the application is run.\n\nIn general these directories need to be manually created\nby the application at runtime, before accessing files or folders\nin it is possible.\n\nTherefore, it is also allowed to create all of these folders via\nthe `mkdir` command.\n\n#### Denied Permissions\n\nThis default permission set prevents access to critical components\nof the Tauri application by default.\nOn Windows the webview data folder access is denied.\n\n#### This default permission set includes:\n\n- `create-app-specific-dirs`\n- `read-app-specific-dirs-recursive`\n- `deny-default`", - "type": "string", - "const": "default", - "markdownDescription": "This set of permissions describes the what kind of\nfile system access the `fs` plugin has enabled or denied by default.\n\n#### Granted Permissions\n\nThis default permission set enables read access to the\napplication specific directories (AppConfig, AppData, AppLocalData, AppCache,\nAppLog) and all files and sub directories created in it.\nThe location of these directories depends on the operating system,\nwhere the application is run.\n\nIn general these directories need to be manually created\nby the application at runtime, before accessing files or folders\nin it is possible.\n\nTherefore, it is also allowed to create all of these folders via\nthe `mkdir` command.\n\n#### Denied Permissions\n\nThis default permission set prevents access to critical components\nof the Tauri application by default.\nOn Windows the webview data folder access is denied.\n\n#### This default permission set includes:\n\n- `create-app-specific-dirs`\n- `read-app-specific-dirs-recursive`\n- `deny-default`" - }, - { - "description": "This denies access to dangerous Tauri relevant files and folders by default.\n#### This permission set includes:\n\n- `deny-webview-data-linux`\n- `deny-webview-data-windows`", - "type": "string", - "const": "deny-default", - "markdownDescription": "This denies access to dangerous Tauri relevant files and folders by default.\n#### This permission set includes:\n\n- `deny-webview-data-linux`\n- `deny-webview-data-windows`" - }, - { - "description": "This denies read access to the\n`$APPLOCALDATA` folder on linux as the webview data and configuration values are stored here.\nAllowing access can lead to sensitive information disclosure and should be well considered.", - "type": "string", - "const": "deny-webview-data-linux", - "markdownDescription": "This denies read access to the\n`$APPLOCALDATA` folder on linux as the webview data and configuration values are stored here.\nAllowing access can lead to sensitive information disclosure and should be well considered." - }, - { - "description": "This denies read access to the\n`$APPLOCALDATA/EBWebView` folder on windows as the webview data and configuration values are stored here.\nAllowing access can lead to sensitive information disclosure and should be well considered.", - "type": "string", - "const": "deny-webview-data-windows", - "markdownDescription": "This denies read access to the\n`$APPLOCALDATA/EBWebView` folder on windows as the webview data and configuration values are stored here.\nAllowing access can lead to sensitive information disclosure and should be well considered." - }, - { - "description": "This enables all read related commands without any pre-configured accessible paths.", - "type": "string", - "const": "read-all", - "markdownDescription": "This enables all read related commands without any pre-configured accessible paths." - }, - { - "description": "This permission allows recursive read functionality on the application\nspecific base directories. \n", - "type": "string", - "const": "read-app-specific-dirs-recursive", - "markdownDescription": "This permission allows recursive read functionality on the application\nspecific base directories. \n" - }, - { - "description": "This enables directory read and file metadata related commands without any pre-configured accessible paths.", - "type": "string", - "const": "read-dirs", - "markdownDescription": "This enables directory read and file metadata related commands without any pre-configured accessible paths." - }, - { - "description": "This enables file read related commands without any pre-configured accessible paths.", - "type": "string", - "const": "read-files", - "markdownDescription": "This enables file read related commands without any pre-configured accessible paths." - }, - { - "description": "This enables all index or metadata related commands without any pre-configured accessible paths.", - "type": "string", - "const": "read-meta", - "markdownDescription": "This enables all index or metadata related commands without any pre-configured accessible paths." - }, - { - "description": "An empty permission you can use to modify the global scope.\n\n## Example\n\n```json\n{\n \"identifier\": \"read-documents\",\n \"windows\": [\"main\"],\n \"permissions\": [\n \"fs:allow-read\",\n {\n \"identifier\": \"fs:scope\",\n \"allow\": [\n \"$APPDATA/documents/**/*\"\n ],\n \"deny\": [\n \"$APPDATA/documents/secret.txt\"\n ]\n }\n ]\n}\n```\n", - "type": "string", - "const": "scope", - "markdownDescription": "An empty permission you can use to modify the global scope.\n\n## Example\n\n```json\n{\n \"identifier\": \"read-documents\",\n \"windows\": [\"main\"],\n \"permissions\": [\n \"fs:allow-read\",\n {\n \"identifier\": \"fs:scope\",\n \"allow\": [\n \"$APPDATA/documents/**/*\"\n ],\n \"deny\": [\n \"$APPDATA/documents/secret.txt\"\n ]\n }\n ]\n}\n```\n" - }, - { - "description": "This enables all write related commands without any pre-configured accessible paths.", - "type": "string", - "const": "write-all", - "markdownDescription": "This enables all write related commands without any pre-configured accessible paths." - }, - { - "description": "This enables all file write related commands without any pre-configured accessible paths.", - "type": "string", - "const": "write-files", - "markdownDescription": "This enables all file write related commands without any pre-configured accessible paths." - } - ] } } } \ No newline at end of file diff --git a/plugins/geolocation/permissions/schemas/schema.json b/plugins/geolocation/permissions/schemas/schema.json index 6ac8e2cc6..7cc6cab1d 100644 --- a/plugins/geolocation/permissions/schemas/schema.json +++ b/plugins/geolocation/permissions/schemas/schema.json @@ -1,5 +1,5 @@ { - "$schema": "https://json-schema.org/draft/2020-12/schema", + "$schema": "http://json-schema.org/draft-07/schema#", "title": "PermissionFile", "description": "Permission file that can define a default permission, a set of permissions or a list of inlined permissions.", "type": "object", @@ -8,7 +8,7 @@ "description": "The default permission set for the plugin", "anyOf": [ { - "$ref": "#/$defs/DefaultPermission" + "$ref": "#/definitions/DefaultPermission" }, { "type": "null" @@ -19,19 +19,19 @@ "description": "A list of permissions sets defined", "type": "array", "items": { - "$ref": "#/$defs/PermissionSet" + "$ref": "#/definitions/PermissionSet" } }, "permission": { "description": "A list of inlined permissions", "type": "array", "items": { - "$ref": "#/$defs/Permission" + "$ref": "#/definitions/Permission" }, "default": [] } }, - "$defs": { + "definitions": { "DefaultPermission": { "description": "The default permission set of the plugin.\n\nWorks similarly to a permission with the \"default\" identifier.", "type": "object", @@ -80,7 +80,7 @@ "description": "All permissions this set contains.", "type": "array", "items": { - "$ref": "#/$defs/PermissionKind" + "type": "string" } } }, @@ -116,15 +116,23 @@ }, "commands": { "description": "Allowed or denied commands when using this permission.", - "$ref": "#/$defs/Commands", "default": { "allow": [], "deny": [] - } + }, + "allOf": [ + { + "$ref": "#/definitions/Commands" + } + ] }, "scope": { "description": "Allowed or denied scoped when using this permission.", - "$ref": "#/$defs/Scopes" + "allOf": [ + { + "$ref": "#/definitions/Scopes" + } + ] }, "platforms": { "description": "Target platforms this permission applies. By default all platforms are affected by this permission.", @@ -133,7 +141,7 @@ "null" ], "items": { - "$ref": "#/$defs/Target" + "$ref": "#/definitions/Target" } } }, @@ -174,7 +182,7 @@ "null" ], "items": { - "$ref": "#/$defs/Value" + "$ref": "#/definitions/Value" } }, "deny": { @@ -184,7 +192,7 @@ "null" ], "items": { - "$ref": "#/$defs/Value" + "$ref": "#/definitions/Value" } } } @@ -202,7 +210,11 @@ }, { "description": "Represents a valid ACL [`Number`].", - "$ref": "#/$defs/Number" + "allOf": [ + { + "$ref": "#/definitions/Number" + } + ] }, { "description": "Represents a [`String`].", @@ -212,14 +224,14 @@ "description": "Represents a list of other [`Value`]s.", "type": "array", "items": { - "$ref": "#/$defs/Value" + "$ref": "#/definitions/Value" } }, { "description": "Represents a map of [`String`] keys to [`Value`]s.", "type": "object", "additionalProperties": { - "$ref": "#/$defs/Value" + "$ref": "#/definitions/Value" } } ] @@ -268,83 +280,6 @@ "const": "iOS" } ] - }, - "PermissionKind": { - "type": "string", - "oneOf": [ - { - "description": "Enables the check_permissions command without any pre-configured scope.", - "type": "string", - "const": "allow-check-permissions", - "markdownDescription": "Enables the check_permissions command without any pre-configured scope." - }, - { - "description": "Denies the check_permissions command without any pre-configured scope.", - "type": "string", - "const": "deny-check-permissions", - "markdownDescription": "Denies the check_permissions command without any pre-configured scope." - }, - { - "description": "Enables the clear_permissions command without any pre-configured scope.", - "type": "string", - "const": "allow-clear-permissions", - "markdownDescription": "Enables the clear_permissions command without any pre-configured scope." - }, - { - "description": "Denies the clear_permissions command without any pre-configured scope.", - "type": "string", - "const": "deny-clear-permissions", - "markdownDescription": "Denies the clear_permissions command without any pre-configured scope." - }, - { - "description": "Enables the clear_watch command without any pre-configured scope.", - "type": "string", - "const": "allow-clear-watch", - "markdownDescription": "Enables the clear_watch command without any pre-configured scope." - }, - { - "description": "Denies the clear_watch command without any pre-configured scope.", - "type": "string", - "const": "deny-clear-watch", - "markdownDescription": "Denies the clear_watch command without any pre-configured scope." - }, - { - "description": "Enables the get_current_position command without any pre-configured scope.", - "type": "string", - "const": "allow-get-current-position", - "markdownDescription": "Enables the get_current_position command without any pre-configured scope." - }, - { - "description": "Denies the get_current_position command without any pre-configured scope.", - "type": "string", - "const": "deny-get-current-position", - "markdownDescription": "Denies the get_current_position command without any pre-configured scope." - }, - { - "description": "Enables the request_permissions command without any pre-configured scope.", - "type": "string", - "const": "allow-request-permissions", - "markdownDescription": "Enables the request_permissions command without any pre-configured scope." - }, - { - "description": "Denies the request_permissions command without any pre-configured scope.", - "type": "string", - "const": "deny-request-permissions", - "markdownDescription": "Denies the request_permissions command without any pre-configured scope." - }, - { - "description": "Enables the watch_position command without any pre-configured scope.", - "type": "string", - "const": "allow-watch-position", - "markdownDescription": "Enables the watch_position command without any pre-configured scope." - }, - { - "description": "Denies the watch_position command without any pre-configured scope.", - "type": "string", - "const": "deny-watch-position", - "markdownDescription": "Denies the watch_position command without any pre-configured scope." - } - ] } } } \ No newline at end of file diff --git a/plugins/global-shortcut/permissions/schemas/schema.json b/plugins/global-shortcut/permissions/schemas/schema.json index e2dd045f9..7cc6cab1d 100644 --- a/plugins/global-shortcut/permissions/schemas/schema.json +++ b/plugins/global-shortcut/permissions/schemas/schema.json @@ -1,5 +1,5 @@ { - "$schema": "https://json-schema.org/draft/2020-12/schema", + "$schema": "http://json-schema.org/draft-07/schema#", "title": "PermissionFile", "description": "Permission file that can define a default permission, a set of permissions or a list of inlined permissions.", "type": "object", @@ -8,7 +8,7 @@ "description": "The default permission set for the plugin", "anyOf": [ { - "$ref": "#/$defs/DefaultPermission" + "$ref": "#/definitions/DefaultPermission" }, { "type": "null" @@ -19,19 +19,19 @@ "description": "A list of permissions sets defined", "type": "array", "items": { - "$ref": "#/$defs/PermissionSet" + "$ref": "#/definitions/PermissionSet" } }, "permission": { "description": "A list of inlined permissions", "type": "array", "items": { - "$ref": "#/$defs/Permission" + "$ref": "#/definitions/Permission" }, "default": [] } }, - "$defs": { + "definitions": { "DefaultPermission": { "description": "The default permission set of the plugin.\n\nWorks similarly to a permission with the \"default\" identifier.", "type": "object", @@ -80,7 +80,7 @@ "description": "All permissions this set contains.", "type": "array", "items": { - "$ref": "#/$defs/PermissionKind" + "type": "string" } } }, @@ -116,15 +116,23 @@ }, "commands": { "description": "Allowed or denied commands when using this permission.", - "$ref": "#/$defs/Commands", "default": { "allow": [], "deny": [] - } + }, + "allOf": [ + { + "$ref": "#/definitions/Commands" + } + ] }, "scope": { "description": "Allowed or denied scoped when using this permission.", - "$ref": "#/$defs/Scopes" + "allOf": [ + { + "$ref": "#/definitions/Scopes" + } + ] }, "platforms": { "description": "Target platforms this permission applies. By default all platforms are affected by this permission.", @@ -133,7 +141,7 @@ "null" ], "items": { - "$ref": "#/$defs/Target" + "$ref": "#/definitions/Target" } } }, @@ -174,7 +182,7 @@ "null" ], "items": { - "$ref": "#/$defs/Value" + "$ref": "#/definitions/Value" } }, "deny": { @@ -184,7 +192,7 @@ "null" ], "items": { - "$ref": "#/$defs/Value" + "$ref": "#/definitions/Value" } } } @@ -202,7 +210,11 @@ }, { "description": "Represents a valid ACL [`Number`].", - "$ref": "#/$defs/Number" + "allOf": [ + { + "$ref": "#/definitions/Number" + } + ] }, { "description": "Represents a [`String`].", @@ -212,14 +224,14 @@ "description": "Represents a list of other [`Value`]s.", "type": "array", "items": { - "$ref": "#/$defs/Value" + "$ref": "#/definitions/Value" } }, { "description": "Represents a map of [`String`] keys to [`Value`]s.", "type": "object", "additionalProperties": { - "$ref": "#/$defs/Value" + "$ref": "#/definitions/Value" } } ] @@ -268,77 +280,6 @@ "const": "iOS" } ] - }, - "PermissionKind": { - "type": "string", - "oneOf": [ - { - "description": "Enables the is_registered command without any pre-configured scope.", - "type": "string", - "const": "allow-is-registered", - "markdownDescription": "Enables the is_registered command without any pre-configured scope." - }, - { - "description": "Denies the is_registered command without any pre-configured scope.", - "type": "string", - "const": "deny-is-registered", - "markdownDescription": "Denies the is_registered command without any pre-configured scope." - }, - { - "description": "Enables the register command without any pre-configured scope.", - "type": "string", - "const": "allow-register", - "markdownDescription": "Enables the register command without any pre-configured scope." - }, - { - "description": "Denies the register command without any pre-configured scope.", - "type": "string", - "const": "deny-register", - "markdownDescription": "Denies the register command without any pre-configured scope." - }, - { - "description": "Enables the register_all command without any pre-configured scope.", - "type": "string", - "const": "allow-register-all", - "markdownDescription": "Enables the register_all command without any pre-configured scope." - }, - { - "description": "Denies the register_all command without any pre-configured scope.", - "type": "string", - "const": "deny-register-all", - "markdownDescription": "Denies the register_all command without any pre-configured scope." - }, - { - "description": "Enables the unregister command without any pre-configured scope.", - "type": "string", - "const": "allow-unregister", - "markdownDescription": "Enables the unregister command without any pre-configured scope." - }, - { - "description": "Denies the unregister command without any pre-configured scope.", - "type": "string", - "const": "deny-unregister", - "markdownDescription": "Denies the unregister command without any pre-configured scope." - }, - { - "description": "Enables the unregister_all command without any pre-configured scope.", - "type": "string", - "const": "allow-unregister-all", - "markdownDescription": "Enables the unregister_all command without any pre-configured scope." - }, - { - "description": "Denies the unregister_all command without any pre-configured scope.", - "type": "string", - "const": "deny-unregister-all", - "markdownDescription": "Denies the unregister_all command without any pre-configured scope." - }, - { - "description": "No features are enabled by default, as we believe\nthe shortcuts can be inherently dangerous and it is\napplication specific if specific shortcuts should be\nregistered or unregistered.\n", - "type": "string", - "const": "default", - "markdownDescription": "No features are enabled by default, as we believe\nthe shortcuts can be inherently dangerous and it is\napplication specific if specific shortcuts should be\nregistered or unregistered.\n" - } - ] } } } \ No newline at end of file diff --git a/plugins/haptics/permissions/schemas/schema.json b/plugins/haptics/permissions/schemas/schema.json index dbff5c23e..7cc6cab1d 100644 --- a/plugins/haptics/permissions/schemas/schema.json +++ b/plugins/haptics/permissions/schemas/schema.json @@ -1,5 +1,5 @@ { - "$schema": "https://json-schema.org/draft/2020-12/schema", + "$schema": "http://json-schema.org/draft-07/schema#", "title": "PermissionFile", "description": "Permission file that can define a default permission, a set of permissions or a list of inlined permissions.", "type": "object", @@ -8,7 +8,7 @@ "description": "The default permission set for the plugin", "anyOf": [ { - "$ref": "#/$defs/DefaultPermission" + "$ref": "#/definitions/DefaultPermission" }, { "type": "null" @@ -19,19 +19,19 @@ "description": "A list of permissions sets defined", "type": "array", "items": { - "$ref": "#/$defs/PermissionSet" + "$ref": "#/definitions/PermissionSet" } }, "permission": { "description": "A list of inlined permissions", "type": "array", "items": { - "$ref": "#/$defs/Permission" + "$ref": "#/definitions/Permission" }, "default": [] } }, - "$defs": { + "definitions": { "DefaultPermission": { "description": "The default permission set of the plugin.\n\nWorks similarly to a permission with the \"default\" identifier.", "type": "object", @@ -80,7 +80,7 @@ "description": "All permissions this set contains.", "type": "array", "items": { - "$ref": "#/$defs/PermissionKind" + "type": "string" } } }, @@ -116,15 +116,23 @@ }, "commands": { "description": "Allowed or denied commands when using this permission.", - "$ref": "#/$defs/Commands", "default": { "allow": [], "deny": [] - } + }, + "allOf": [ + { + "$ref": "#/definitions/Commands" + } + ] }, "scope": { "description": "Allowed or denied scoped when using this permission.", - "$ref": "#/$defs/Scopes" + "allOf": [ + { + "$ref": "#/definitions/Scopes" + } + ] }, "platforms": { "description": "Target platforms this permission applies. By default all platforms are affected by this permission.", @@ -133,7 +141,7 @@ "null" ], "items": { - "$ref": "#/$defs/Target" + "$ref": "#/definitions/Target" } } }, @@ -174,7 +182,7 @@ "null" ], "items": { - "$ref": "#/$defs/Value" + "$ref": "#/definitions/Value" } }, "deny": { @@ -184,7 +192,7 @@ "null" ], "items": { - "$ref": "#/$defs/Value" + "$ref": "#/definitions/Value" } } } @@ -202,7 +210,11 @@ }, { "description": "Represents a valid ACL [`Number`].", - "$ref": "#/$defs/Number" + "allOf": [ + { + "$ref": "#/definitions/Number" + } + ] }, { "description": "Represents a [`String`].", @@ -212,14 +224,14 @@ "description": "Represents a list of other [`Value`]s.", "type": "array", "items": { - "$ref": "#/$defs/Value" + "$ref": "#/definitions/Value" } }, { "description": "Represents a map of [`String`] keys to [`Value`]s.", "type": "object", "additionalProperties": { - "$ref": "#/$defs/Value" + "$ref": "#/definitions/Value" } } ] @@ -268,59 +280,6 @@ "const": "iOS" } ] - }, - "PermissionKind": { - "type": "string", - "oneOf": [ - { - "description": "Enables the impact_feedback command without any pre-configured scope.", - "type": "string", - "const": "allow-impact-feedback", - "markdownDescription": "Enables the impact_feedback command without any pre-configured scope." - }, - { - "description": "Denies the impact_feedback command without any pre-configured scope.", - "type": "string", - "const": "deny-impact-feedback", - "markdownDescription": "Denies the impact_feedback command without any pre-configured scope." - }, - { - "description": "Enables the notification_feedback command without any pre-configured scope.", - "type": "string", - "const": "allow-notification-feedback", - "markdownDescription": "Enables the notification_feedback command without any pre-configured scope." - }, - { - "description": "Denies the notification_feedback command without any pre-configured scope.", - "type": "string", - "const": "deny-notification-feedback", - "markdownDescription": "Denies the notification_feedback command without any pre-configured scope." - }, - { - "description": "Enables the selection_feedback command without any pre-configured scope.", - "type": "string", - "const": "allow-selection-feedback", - "markdownDescription": "Enables the selection_feedback command without any pre-configured scope." - }, - { - "description": "Denies the selection_feedback command without any pre-configured scope.", - "type": "string", - "const": "deny-selection-feedback", - "markdownDescription": "Denies the selection_feedback command without any pre-configured scope." - }, - { - "description": "Enables the vibrate command without any pre-configured scope.", - "type": "string", - "const": "allow-vibrate", - "markdownDescription": "Enables the vibrate command without any pre-configured scope." - }, - { - "description": "Denies the vibrate command without any pre-configured scope.", - "type": "string", - "const": "deny-vibrate", - "markdownDescription": "Denies the vibrate command without any pre-configured scope." - } - ] } } } \ No newline at end of file diff --git a/plugins/http/build.rs b/plugins/http/build.rs index 31fa0237a..53fb826c0 100644 --- a/plugins/http/build.rs +++ b/plugins/http/build.rs @@ -68,6 +68,9 @@ fn _f() { fn main() { tauri_plugin::Builder::new(COMMANDS) .global_api_script_path("./api-iife.js") - .global_scope_schema(schemars::schema_for!(HttpScopeEntry)) + .global_scope_schema( + schemars::SchemaGenerator::new(schemars::generate::SchemaSettings::draft07()) + .into_root_schema_for::(), + ) .build(); } diff --git a/plugins/http/permissions/schemas/schema.json b/plugins/http/permissions/schemas/schema.json index 9458c3cee..7cc6cab1d 100644 --- a/plugins/http/permissions/schemas/schema.json +++ b/plugins/http/permissions/schemas/schema.json @@ -1,5 +1,5 @@ { - "$schema": "https://json-schema.org/draft/2020-12/schema", + "$schema": "http://json-schema.org/draft-07/schema#", "title": "PermissionFile", "description": "Permission file that can define a default permission, a set of permissions or a list of inlined permissions.", "type": "object", @@ -8,7 +8,7 @@ "description": "The default permission set for the plugin", "anyOf": [ { - "$ref": "#/$defs/DefaultPermission" + "$ref": "#/definitions/DefaultPermission" }, { "type": "null" @@ -19,19 +19,19 @@ "description": "A list of permissions sets defined", "type": "array", "items": { - "$ref": "#/$defs/PermissionSet" + "$ref": "#/definitions/PermissionSet" } }, "permission": { "description": "A list of inlined permissions", "type": "array", "items": { - "$ref": "#/$defs/Permission" + "$ref": "#/definitions/Permission" }, "default": [] } }, - "$defs": { + "definitions": { "DefaultPermission": { "description": "The default permission set of the plugin.\n\nWorks similarly to a permission with the \"default\" identifier.", "type": "object", @@ -80,7 +80,7 @@ "description": "All permissions this set contains.", "type": "array", "items": { - "$ref": "#/$defs/PermissionKind" + "type": "string" } } }, @@ -116,15 +116,23 @@ }, "commands": { "description": "Allowed or denied commands when using this permission.", - "$ref": "#/$defs/Commands", "default": { "allow": [], "deny": [] - } + }, + "allOf": [ + { + "$ref": "#/definitions/Commands" + } + ] }, "scope": { "description": "Allowed or denied scoped when using this permission.", - "$ref": "#/$defs/Scopes" + "allOf": [ + { + "$ref": "#/definitions/Scopes" + } + ] }, "platforms": { "description": "Target platforms this permission applies. By default all platforms are affected by this permission.", @@ -133,7 +141,7 @@ "null" ], "items": { - "$ref": "#/$defs/Target" + "$ref": "#/definitions/Target" } } }, @@ -174,7 +182,7 @@ "null" ], "items": { - "$ref": "#/$defs/Value" + "$ref": "#/definitions/Value" } }, "deny": { @@ -184,7 +192,7 @@ "null" ], "items": { - "$ref": "#/$defs/Value" + "$ref": "#/definitions/Value" } } } @@ -202,7 +210,11 @@ }, { "description": "Represents a valid ACL [`Number`].", - "$ref": "#/$defs/Number" + "allOf": [ + { + "$ref": "#/definitions/Number" + } + ] }, { "description": "Represents a [`String`].", @@ -212,14 +224,14 @@ "description": "Represents a list of other [`Value`]s.", "type": "array", "items": { - "$ref": "#/$defs/Value" + "$ref": "#/definitions/Value" } }, { "description": "Represents a map of [`String`] keys to [`Value`]s.", "type": "object", "additionalProperties": { - "$ref": "#/$defs/Value" + "$ref": "#/definitions/Value" } } ] @@ -268,77 +280,6 @@ "const": "iOS" } ] - }, - "PermissionKind": { - "type": "string", - "oneOf": [ - { - "description": "Enables the fetch command without any pre-configured scope.", - "type": "string", - "const": "allow-fetch", - "markdownDescription": "Enables the fetch command without any pre-configured scope." - }, - { - "description": "Denies the fetch command without any pre-configured scope.", - "type": "string", - "const": "deny-fetch", - "markdownDescription": "Denies the fetch command without any pre-configured scope." - }, - { - "description": "Enables the fetch_cancel command without any pre-configured scope.", - "type": "string", - "const": "allow-fetch-cancel", - "markdownDescription": "Enables the fetch_cancel command without any pre-configured scope." - }, - { - "description": "Denies the fetch_cancel command without any pre-configured scope.", - "type": "string", - "const": "deny-fetch-cancel", - "markdownDescription": "Denies the fetch_cancel command without any pre-configured scope." - }, - { - "description": "Enables the fetch_cancel_body command without any pre-configured scope.", - "type": "string", - "const": "allow-fetch-cancel-body", - "markdownDescription": "Enables the fetch_cancel_body command without any pre-configured scope." - }, - { - "description": "Denies the fetch_cancel_body command without any pre-configured scope.", - "type": "string", - "const": "deny-fetch-cancel-body", - "markdownDescription": "Denies the fetch_cancel_body command without any pre-configured scope." - }, - { - "description": "Enables the fetch_read_body command without any pre-configured scope.", - "type": "string", - "const": "allow-fetch-read-body", - "markdownDescription": "Enables the fetch_read_body command without any pre-configured scope." - }, - { - "description": "Denies the fetch_read_body command without any pre-configured scope.", - "type": "string", - "const": "deny-fetch-read-body", - "markdownDescription": "Denies the fetch_read_body command without any pre-configured scope." - }, - { - "description": "Enables the fetch_send command without any pre-configured scope.", - "type": "string", - "const": "allow-fetch-send", - "markdownDescription": "Enables the fetch_send command without any pre-configured scope." - }, - { - "description": "Denies the fetch_send command without any pre-configured scope.", - "type": "string", - "const": "deny-fetch-send", - "markdownDescription": "Denies the fetch_send command without any pre-configured scope." - }, - { - "description": "This permission set configures what kind of\nfetch operations are available from the http plugin.\n\nThis enables all fetch operations but does not\nallow explicitly any origins to be fetched. This needs to\nbe manually configured before usage.\n\n#### Granted Permissions\n\nAll fetch operations are enabled.\n\n\n#### This default permission set includes:\n\n- `allow-fetch`\n- `allow-fetch-cancel`\n- `allow-fetch-send`\n- `allow-fetch-read-body`\n- `allow-fetch-cancel-body`", - "type": "string", - "const": "default", - "markdownDescription": "This permission set configures what kind of\nfetch operations are available from the http plugin.\n\nThis enables all fetch operations but does not\nallow explicitly any origins to be fetched. This needs to\nbe manually configured before usage.\n\n#### Granted Permissions\n\nAll fetch operations are enabled.\n\n\n#### This default permission set includes:\n\n- `allow-fetch`\n- `allow-fetch-cancel`\n- `allow-fetch-send`\n- `allow-fetch-read-body`\n- `allow-fetch-cancel-body`" - } - ] } } } \ No newline at end of file diff --git a/plugins/log/permissions/schemas/schema.json b/plugins/log/permissions/schemas/schema.json index 06f998e0d..7cc6cab1d 100644 --- a/plugins/log/permissions/schemas/schema.json +++ b/plugins/log/permissions/schemas/schema.json @@ -1,5 +1,5 @@ { - "$schema": "https://json-schema.org/draft/2020-12/schema", + "$schema": "http://json-schema.org/draft-07/schema#", "title": "PermissionFile", "description": "Permission file that can define a default permission, a set of permissions or a list of inlined permissions.", "type": "object", @@ -8,7 +8,7 @@ "description": "The default permission set for the plugin", "anyOf": [ { - "$ref": "#/$defs/DefaultPermission" + "$ref": "#/definitions/DefaultPermission" }, { "type": "null" @@ -19,19 +19,19 @@ "description": "A list of permissions sets defined", "type": "array", "items": { - "$ref": "#/$defs/PermissionSet" + "$ref": "#/definitions/PermissionSet" } }, "permission": { "description": "A list of inlined permissions", "type": "array", "items": { - "$ref": "#/$defs/Permission" + "$ref": "#/definitions/Permission" }, "default": [] } }, - "$defs": { + "definitions": { "DefaultPermission": { "description": "The default permission set of the plugin.\n\nWorks similarly to a permission with the \"default\" identifier.", "type": "object", @@ -80,7 +80,7 @@ "description": "All permissions this set contains.", "type": "array", "items": { - "$ref": "#/$defs/PermissionKind" + "type": "string" } } }, @@ -116,15 +116,23 @@ }, "commands": { "description": "Allowed or denied commands when using this permission.", - "$ref": "#/$defs/Commands", "default": { "allow": [], "deny": [] - } + }, + "allOf": [ + { + "$ref": "#/definitions/Commands" + } + ] }, "scope": { "description": "Allowed or denied scoped when using this permission.", - "$ref": "#/$defs/Scopes" + "allOf": [ + { + "$ref": "#/definitions/Scopes" + } + ] }, "platforms": { "description": "Target platforms this permission applies. By default all platforms are affected by this permission.", @@ -133,7 +141,7 @@ "null" ], "items": { - "$ref": "#/$defs/Target" + "$ref": "#/definitions/Target" } } }, @@ -174,7 +182,7 @@ "null" ], "items": { - "$ref": "#/$defs/Value" + "$ref": "#/definitions/Value" } }, "deny": { @@ -184,7 +192,7 @@ "null" ], "items": { - "$ref": "#/$defs/Value" + "$ref": "#/definitions/Value" } } } @@ -202,7 +210,11 @@ }, { "description": "Represents a valid ACL [`Number`].", - "$ref": "#/$defs/Number" + "allOf": [ + { + "$ref": "#/definitions/Number" + } + ] }, { "description": "Represents a [`String`].", @@ -212,14 +224,14 @@ "description": "Represents a list of other [`Value`]s.", "type": "array", "items": { - "$ref": "#/$defs/Value" + "$ref": "#/definitions/Value" } }, { "description": "Represents a map of [`String`] keys to [`Value`]s.", "type": "object", "additionalProperties": { - "$ref": "#/$defs/Value" + "$ref": "#/definitions/Value" } } ] @@ -268,29 +280,6 @@ "const": "iOS" } ] - }, - "PermissionKind": { - "type": "string", - "oneOf": [ - { - "description": "Enables the log command without any pre-configured scope.", - "type": "string", - "const": "allow-log", - "markdownDescription": "Enables the log command without any pre-configured scope." - }, - { - "description": "Denies the log command without any pre-configured scope.", - "type": "string", - "const": "deny-log", - "markdownDescription": "Denies the log command without any pre-configured scope." - }, - { - "description": "Allows the log command\n#### This default permission set includes:\n\n- `allow-log`", - "type": "string", - "const": "default", - "markdownDescription": "Allows the log command\n#### This default permission set includes:\n\n- `allow-log`" - } - ] } } } \ No newline at end of file diff --git a/plugins/nfc/permissions/schemas/schema.json b/plugins/nfc/permissions/schemas/schema.json index bd18de3e2..7cc6cab1d 100644 --- a/plugins/nfc/permissions/schemas/schema.json +++ b/plugins/nfc/permissions/schemas/schema.json @@ -1,5 +1,5 @@ { - "$schema": "https://json-schema.org/draft/2020-12/schema", + "$schema": "http://json-schema.org/draft-07/schema#", "title": "PermissionFile", "description": "Permission file that can define a default permission, a set of permissions or a list of inlined permissions.", "type": "object", @@ -8,7 +8,7 @@ "description": "The default permission set for the plugin", "anyOf": [ { - "$ref": "#/$defs/DefaultPermission" + "$ref": "#/definitions/DefaultPermission" }, { "type": "null" @@ -19,19 +19,19 @@ "description": "A list of permissions sets defined", "type": "array", "items": { - "$ref": "#/$defs/PermissionSet" + "$ref": "#/definitions/PermissionSet" } }, "permission": { "description": "A list of inlined permissions", "type": "array", "items": { - "$ref": "#/$defs/Permission" + "$ref": "#/definitions/Permission" }, "default": [] } }, - "$defs": { + "definitions": { "DefaultPermission": { "description": "The default permission set of the plugin.\n\nWorks similarly to a permission with the \"default\" identifier.", "type": "object", @@ -80,7 +80,7 @@ "description": "All permissions this set contains.", "type": "array", "items": { - "$ref": "#/$defs/PermissionKind" + "type": "string" } } }, @@ -116,15 +116,23 @@ }, "commands": { "description": "Allowed or denied commands when using this permission.", - "$ref": "#/$defs/Commands", "default": { "allow": [], "deny": [] - } + }, + "allOf": [ + { + "$ref": "#/definitions/Commands" + } + ] }, "scope": { "description": "Allowed or denied scoped when using this permission.", - "$ref": "#/$defs/Scopes" + "allOf": [ + { + "$ref": "#/definitions/Scopes" + } + ] }, "platforms": { "description": "Target platforms this permission applies. By default all platforms are affected by this permission.", @@ -133,7 +141,7 @@ "null" ], "items": { - "$ref": "#/$defs/Target" + "$ref": "#/definitions/Target" } } }, @@ -174,7 +182,7 @@ "null" ], "items": { - "$ref": "#/$defs/Value" + "$ref": "#/definitions/Value" } }, "deny": { @@ -184,7 +192,7 @@ "null" ], "items": { - "$ref": "#/$defs/Value" + "$ref": "#/definitions/Value" } } } @@ -202,7 +210,11 @@ }, { "description": "Represents a valid ACL [`Number`].", - "$ref": "#/$defs/Number" + "allOf": [ + { + "$ref": "#/definitions/Number" + } + ] }, { "description": "Represents a [`String`].", @@ -212,14 +224,14 @@ "description": "Represents a list of other [`Value`]s.", "type": "array", "items": { - "$ref": "#/$defs/Value" + "$ref": "#/definitions/Value" } }, { "description": "Represents a map of [`String`] keys to [`Value`]s.", "type": "object", "additionalProperties": { - "$ref": "#/$defs/Value" + "$ref": "#/definitions/Value" } } ] @@ -268,53 +280,6 @@ "const": "iOS" } ] - }, - "PermissionKind": { - "type": "string", - "oneOf": [ - { - "description": "Enables the is_available command without any pre-configured scope.", - "type": "string", - "const": "allow-is-available", - "markdownDescription": "Enables the is_available command without any pre-configured scope." - }, - { - "description": "Denies the is_available command without any pre-configured scope.", - "type": "string", - "const": "deny-is-available", - "markdownDescription": "Denies the is_available command without any pre-configured scope." - }, - { - "description": "Enables the scan command without any pre-configured scope.", - "type": "string", - "const": "allow-scan", - "markdownDescription": "Enables the scan command without any pre-configured scope." - }, - { - "description": "Denies the scan command without any pre-configured scope.", - "type": "string", - "const": "deny-scan", - "markdownDescription": "Denies the scan command without any pre-configured scope." - }, - { - "description": "Enables the write command without any pre-configured scope.", - "type": "string", - "const": "allow-write", - "markdownDescription": "Enables the write command without any pre-configured scope." - }, - { - "description": "Denies the write command without any pre-configured scope.", - "type": "string", - "const": "deny-write", - "markdownDescription": "Denies the write command without any pre-configured scope." - }, - { - "description": "This permission set configures what kind of\noperations are available from the nfc plugin.\n\n#### Granted Permissions\n\nChecking if the NFC functionality is available\nand scanning nearby tags is allowed.\nWriting to tags needs to be manually enabled.\n\n\n#### This default permission set includes:\n\n- `allow-is-available`\n- `allow-scan`", - "type": "string", - "const": "default", - "markdownDescription": "This permission set configures what kind of\noperations are available from the nfc plugin.\n\n#### Granted Permissions\n\nChecking if the NFC functionality is available\nand scanning nearby tags is allowed.\nWriting to tags needs to be manually enabled.\n\n\n#### This default permission set includes:\n\n- `allow-is-available`\n- `allow-scan`" - } - ] } } } \ No newline at end of file diff --git a/plugins/notification/permissions/schemas/schema.json b/plugins/notification/permissions/schemas/schema.json index 7d1cf05b7..7cc6cab1d 100644 --- a/plugins/notification/permissions/schemas/schema.json +++ b/plugins/notification/permissions/schemas/schema.json @@ -1,5 +1,5 @@ { - "$schema": "https://json-schema.org/draft/2020-12/schema", + "$schema": "http://json-schema.org/draft-07/schema#", "title": "PermissionFile", "description": "Permission file that can define a default permission, a set of permissions or a list of inlined permissions.", "type": "object", @@ -8,7 +8,7 @@ "description": "The default permission set for the plugin", "anyOf": [ { - "$ref": "#/$defs/DefaultPermission" + "$ref": "#/definitions/DefaultPermission" }, { "type": "null" @@ -19,19 +19,19 @@ "description": "A list of permissions sets defined", "type": "array", "items": { - "$ref": "#/$defs/PermissionSet" + "$ref": "#/definitions/PermissionSet" } }, "permission": { "description": "A list of inlined permissions", "type": "array", "items": { - "$ref": "#/$defs/Permission" + "$ref": "#/definitions/Permission" }, "default": [] } }, - "$defs": { + "definitions": { "DefaultPermission": { "description": "The default permission set of the plugin.\n\nWorks similarly to a permission with the \"default\" identifier.", "type": "object", @@ -80,7 +80,7 @@ "description": "All permissions this set contains.", "type": "array", "items": { - "$ref": "#/$defs/PermissionKind" + "type": "string" } } }, @@ -116,15 +116,23 @@ }, "commands": { "description": "Allowed or denied commands when using this permission.", - "$ref": "#/$defs/Commands", "default": { "allow": [], "deny": [] - } + }, + "allOf": [ + { + "$ref": "#/definitions/Commands" + } + ] }, "scope": { "description": "Allowed or denied scoped when using this permission.", - "$ref": "#/$defs/Scopes" + "allOf": [ + { + "$ref": "#/definitions/Scopes" + } + ] }, "platforms": { "description": "Target platforms this permission applies. By default all platforms are affected by this permission.", @@ -133,7 +141,7 @@ "null" ], "items": { - "$ref": "#/$defs/Target" + "$ref": "#/definitions/Target" } } }, @@ -174,7 +182,7 @@ "null" ], "items": { - "$ref": "#/$defs/Value" + "$ref": "#/definitions/Value" } }, "deny": { @@ -184,7 +192,7 @@ "null" ], "items": { - "$ref": "#/$defs/Value" + "$ref": "#/definitions/Value" } } } @@ -202,7 +210,11 @@ }, { "description": "Represents a valid ACL [`Number`].", - "$ref": "#/$defs/Number" + "allOf": [ + { + "$ref": "#/definitions/Number" + } + ] }, { "description": "Represents a [`String`].", @@ -212,14 +224,14 @@ "description": "Represents a list of other [`Value`]s.", "type": "array", "items": { - "$ref": "#/$defs/Value" + "$ref": "#/definitions/Value" } }, { "description": "Represents a map of [`String`] keys to [`Value`]s.", "type": "object", "additionalProperties": { - "$ref": "#/$defs/Value" + "$ref": "#/definitions/Value" } } ] @@ -268,209 +280,6 @@ "const": "iOS" } ] - }, - "PermissionKind": { - "type": "string", - "oneOf": [ - { - "description": "Enables the batch command without any pre-configured scope.", - "type": "string", - "const": "allow-batch", - "markdownDescription": "Enables the batch command without any pre-configured scope." - }, - { - "description": "Denies the batch command without any pre-configured scope.", - "type": "string", - "const": "deny-batch", - "markdownDescription": "Denies the batch command without any pre-configured scope." - }, - { - "description": "Enables the cancel command without any pre-configured scope.", - "type": "string", - "const": "allow-cancel", - "markdownDescription": "Enables the cancel command without any pre-configured scope." - }, - { - "description": "Denies the cancel command without any pre-configured scope.", - "type": "string", - "const": "deny-cancel", - "markdownDescription": "Denies the cancel command without any pre-configured scope." - }, - { - "description": "Enables the check_permissions command without any pre-configured scope.", - "type": "string", - "const": "allow-check-permissions", - "markdownDescription": "Enables the check_permissions command without any pre-configured scope." - }, - { - "description": "Denies the check_permissions command without any pre-configured scope.", - "type": "string", - "const": "deny-check-permissions", - "markdownDescription": "Denies the check_permissions command without any pre-configured scope." - }, - { - "description": "Enables the create_channel command without any pre-configured scope.", - "type": "string", - "const": "allow-create-channel", - "markdownDescription": "Enables the create_channel command without any pre-configured scope." - }, - { - "description": "Denies the create_channel command without any pre-configured scope.", - "type": "string", - "const": "deny-create-channel", - "markdownDescription": "Denies the create_channel command without any pre-configured scope." - }, - { - "description": "Enables the delete_channel command without any pre-configured scope.", - "type": "string", - "const": "allow-delete-channel", - "markdownDescription": "Enables the delete_channel command without any pre-configured scope." - }, - { - "description": "Denies the delete_channel command without any pre-configured scope.", - "type": "string", - "const": "deny-delete-channel", - "markdownDescription": "Denies the delete_channel command without any pre-configured scope." - }, - { - "description": "Enables the get_active command without any pre-configured scope.", - "type": "string", - "const": "allow-get-active", - "markdownDescription": "Enables the get_active command without any pre-configured scope." - }, - { - "description": "Denies the get_active command without any pre-configured scope.", - "type": "string", - "const": "deny-get-active", - "markdownDescription": "Denies the get_active command without any pre-configured scope." - }, - { - "description": "Enables the get_pending command without any pre-configured scope.", - "type": "string", - "const": "allow-get-pending", - "markdownDescription": "Enables the get_pending command without any pre-configured scope." - }, - { - "description": "Denies the get_pending command without any pre-configured scope.", - "type": "string", - "const": "deny-get-pending", - "markdownDescription": "Denies the get_pending command without any pre-configured scope." - }, - { - "description": "Enables the is_permission_granted command without any pre-configured scope.", - "type": "string", - "const": "allow-is-permission-granted", - "markdownDescription": "Enables the is_permission_granted command without any pre-configured scope." - }, - { - "description": "Denies the is_permission_granted command without any pre-configured scope.", - "type": "string", - "const": "deny-is-permission-granted", - "markdownDescription": "Denies the is_permission_granted command without any pre-configured scope." - }, - { - "description": "Enables the list_channels command without any pre-configured scope.", - "type": "string", - "const": "allow-list-channels", - "markdownDescription": "Enables the list_channels command without any pre-configured scope." - }, - { - "description": "Denies the list_channels command without any pre-configured scope.", - "type": "string", - "const": "deny-list-channels", - "markdownDescription": "Denies the list_channels command without any pre-configured scope." - }, - { - "description": "Enables the notify command without any pre-configured scope.", - "type": "string", - "const": "allow-notify", - "markdownDescription": "Enables the notify command without any pre-configured scope." - }, - { - "description": "Denies the notify command without any pre-configured scope.", - "type": "string", - "const": "deny-notify", - "markdownDescription": "Denies the notify command without any pre-configured scope." - }, - { - "description": "Enables the permission_state command without any pre-configured scope.", - "type": "string", - "const": "allow-permission-state", - "markdownDescription": "Enables the permission_state command without any pre-configured scope." - }, - { - "description": "Denies the permission_state command without any pre-configured scope.", - "type": "string", - "const": "deny-permission-state", - "markdownDescription": "Denies the permission_state command without any pre-configured scope." - }, - { - "description": "Enables the register_action_types command without any pre-configured scope.", - "type": "string", - "const": "allow-register-action-types", - "markdownDescription": "Enables the register_action_types command without any pre-configured scope." - }, - { - "description": "Denies the register_action_types command without any pre-configured scope.", - "type": "string", - "const": "deny-register-action-types", - "markdownDescription": "Denies the register_action_types command without any pre-configured scope." - }, - { - "description": "Enables the register_listener command without any pre-configured scope.", - "type": "string", - "const": "allow-register-listener", - "markdownDescription": "Enables the register_listener command without any pre-configured scope." - }, - { - "description": "Denies the register_listener command without any pre-configured scope.", - "type": "string", - "const": "deny-register-listener", - "markdownDescription": "Denies the register_listener command without any pre-configured scope." - }, - { - "description": "Enables the remove_active command without any pre-configured scope.", - "type": "string", - "const": "allow-remove-active", - "markdownDescription": "Enables the remove_active command without any pre-configured scope." - }, - { - "description": "Denies the remove_active command without any pre-configured scope.", - "type": "string", - "const": "deny-remove-active", - "markdownDescription": "Denies the remove_active command without any pre-configured scope." - }, - { - "description": "Enables the request_permission command without any pre-configured scope.", - "type": "string", - "const": "allow-request-permission", - "markdownDescription": "Enables the request_permission command without any pre-configured scope." - }, - { - "description": "Denies the request_permission command without any pre-configured scope.", - "type": "string", - "const": "deny-request-permission", - "markdownDescription": "Denies the request_permission command without any pre-configured scope." - }, - { - "description": "Enables the show command without any pre-configured scope.", - "type": "string", - "const": "allow-show", - "markdownDescription": "Enables the show command without any pre-configured scope." - }, - { - "description": "Denies the show command without any pre-configured scope.", - "type": "string", - "const": "deny-show", - "markdownDescription": "Denies the show command without any pre-configured scope." - }, - { - "description": "This permission set configures which\nnotification features are by default exposed.\n\n#### Granted Permissions\n\nIt allows all notification related features.\n\n\n#### This default permission set includes:\n\n- `allow-is-permission-granted`\n- `allow-request-permission`\n- `allow-notify`\n- `allow-register-action-types`\n- `allow-register-listener`\n- `allow-cancel`\n- `allow-get-pending`\n- `allow-remove-active`\n- `allow-get-active`\n- `allow-check-permissions`\n- `allow-show`\n- `allow-batch`\n- `allow-list-channels`\n- `allow-delete-channel`\n- `allow-create-channel`\n- `allow-permission-state`", - "type": "string", - "const": "default", - "markdownDescription": "This permission set configures which\nnotification features are by default exposed.\n\n#### Granted Permissions\n\nIt allows all notification related features.\n\n\n#### This default permission set includes:\n\n- `allow-is-permission-granted`\n- `allow-request-permission`\n- `allow-notify`\n- `allow-register-action-types`\n- `allow-register-listener`\n- `allow-cancel`\n- `allow-get-pending`\n- `allow-remove-active`\n- `allow-get-active`\n- `allow-check-permissions`\n- `allow-show`\n- `allow-batch`\n- `allow-list-channels`\n- `allow-delete-channel`\n- `allow-create-channel`\n- `allow-permission-state`" - } - ] } } } \ No newline at end of file diff --git a/plugins/opener/build.rs b/plugins/opener/build.rs index 676903578..64aecd91a 100644 --- a/plugins/opener/build.rs +++ b/plugins/opener/build.rs @@ -113,7 +113,10 @@ fn main() { .global_api_script_path("./api-iife.js") .android_path("android") .ios_path("ios") - .global_scope_schema(schemars::schema_for!(OpenerScopeEntry)) + .global_scope_schema( + schemars::SchemaGenerator::new(schemars::generate::SchemaSettings::draft07()) + .into_root_schema_for::(), + ) .build(); let target_os = std::env::var("CARGO_CFG_TARGET_OS").unwrap(); diff --git a/plugins/opener/permissions/schemas/schema.json b/plugins/opener/permissions/schemas/schema.json index 69f3d9d98..7cc6cab1d 100644 --- a/plugins/opener/permissions/schemas/schema.json +++ b/plugins/opener/permissions/schemas/schema.json @@ -1,5 +1,5 @@ { - "$schema": "https://json-schema.org/draft/2020-12/schema", + "$schema": "http://json-schema.org/draft-07/schema#", "title": "PermissionFile", "description": "Permission file that can define a default permission, a set of permissions or a list of inlined permissions.", "type": "object", @@ -8,7 +8,7 @@ "description": "The default permission set for the plugin", "anyOf": [ { - "$ref": "#/$defs/DefaultPermission" + "$ref": "#/definitions/DefaultPermission" }, { "type": "null" @@ -19,19 +19,19 @@ "description": "A list of permissions sets defined", "type": "array", "items": { - "$ref": "#/$defs/PermissionSet" + "$ref": "#/definitions/PermissionSet" } }, "permission": { "description": "A list of inlined permissions", "type": "array", "items": { - "$ref": "#/$defs/Permission" + "$ref": "#/definitions/Permission" }, "default": [] } }, - "$defs": { + "definitions": { "DefaultPermission": { "description": "The default permission set of the plugin.\n\nWorks similarly to a permission with the \"default\" identifier.", "type": "object", @@ -80,7 +80,7 @@ "description": "All permissions this set contains.", "type": "array", "items": { - "$ref": "#/$defs/PermissionKind" + "type": "string" } } }, @@ -116,15 +116,23 @@ }, "commands": { "description": "Allowed or denied commands when using this permission.", - "$ref": "#/$defs/Commands", "default": { "allow": [], "deny": [] - } + }, + "allOf": [ + { + "$ref": "#/definitions/Commands" + } + ] }, "scope": { "description": "Allowed or denied scoped when using this permission.", - "$ref": "#/$defs/Scopes" + "allOf": [ + { + "$ref": "#/definitions/Scopes" + } + ] }, "platforms": { "description": "Target platforms this permission applies. By default all platforms are affected by this permission.", @@ -133,7 +141,7 @@ "null" ], "items": { - "$ref": "#/$defs/Target" + "$ref": "#/definitions/Target" } } }, @@ -174,7 +182,7 @@ "null" ], "items": { - "$ref": "#/$defs/Value" + "$ref": "#/definitions/Value" } }, "deny": { @@ -184,7 +192,7 @@ "null" ], "items": { - "$ref": "#/$defs/Value" + "$ref": "#/definitions/Value" } } } @@ -202,7 +210,11 @@ }, { "description": "Represents a valid ACL [`Number`].", - "$ref": "#/$defs/Number" + "allOf": [ + { + "$ref": "#/definitions/Number" + } + ] }, { "description": "Represents a [`String`].", @@ -212,14 +224,14 @@ "description": "Represents a list of other [`Value`]s.", "type": "array", "items": { - "$ref": "#/$defs/Value" + "$ref": "#/definitions/Value" } }, { "description": "Represents a map of [`String`] keys to [`Value`]s.", "type": "object", "additionalProperties": { - "$ref": "#/$defs/Value" + "$ref": "#/definitions/Value" } } ] @@ -268,59 +280,6 @@ "const": "iOS" } ] - }, - "PermissionKind": { - "type": "string", - "oneOf": [ - { - "description": "This enables opening `mailto:`, `tel:`, `https://` and `http://` urls using their default application.", - "type": "string", - "const": "allow-default-urls", - "markdownDescription": "This enables opening `mailto:`, `tel:`, `https://` and `http://` urls using their default application." - }, - { - "description": "Enables the open_path command without any pre-configured scope.", - "type": "string", - "const": "allow-open-path", - "markdownDescription": "Enables the open_path command without any pre-configured scope." - }, - { - "description": "Denies the open_path command without any pre-configured scope.", - "type": "string", - "const": "deny-open-path", - "markdownDescription": "Denies the open_path command without any pre-configured scope." - }, - { - "description": "Enables the open_url command without any pre-configured scope.", - "type": "string", - "const": "allow-open-url", - "markdownDescription": "Enables the open_url command without any pre-configured scope." - }, - { - "description": "Denies the open_url command without any pre-configured scope.", - "type": "string", - "const": "deny-open-url", - "markdownDescription": "Denies the open_url command without any pre-configured scope." - }, - { - "description": "Enables the reveal_item_in_dir command without any pre-configured scope.", - "type": "string", - "const": "allow-reveal-item-in-dir", - "markdownDescription": "Enables the reveal_item_in_dir command without any pre-configured scope." - }, - { - "description": "Denies the reveal_item_in_dir command without any pre-configured scope.", - "type": "string", - "const": "deny-reveal-item-in-dir", - "markdownDescription": "Denies the reveal_item_in_dir command without any pre-configured scope." - }, - { - "description": "This permission set allows opening `mailto:`, `tel:`, `https://` and `http://` urls using their default application\nas well as reveal file in directories using default file explorer\n#### This default permission set includes:\n\n- `allow-open-url`\n- `allow-reveal-item-in-dir`\n- `allow-default-urls`", - "type": "string", - "const": "default", - "markdownDescription": "This permission set allows opening `mailto:`, `tel:`, `https://` and `http://` urls using their default application\nas well as reveal file in directories using default file explorer\n#### This default permission set includes:\n\n- `allow-open-url`\n- `allow-reveal-item-in-dir`\n- `allow-default-urls`" - } - ] } } } \ No newline at end of file diff --git a/plugins/os/permissions/schemas/schema.json b/plugins/os/permissions/schemas/schema.json index 1fcbb875e..7cc6cab1d 100644 --- a/plugins/os/permissions/schemas/schema.json +++ b/plugins/os/permissions/schemas/schema.json @@ -1,5 +1,5 @@ { - "$schema": "https://json-schema.org/draft/2020-12/schema", + "$schema": "http://json-schema.org/draft-07/schema#", "title": "PermissionFile", "description": "Permission file that can define a default permission, a set of permissions or a list of inlined permissions.", "type": "object", @@ -8,7 +8,7 @@ "description": "The default permission set for the plugin", "anyOf": [ { - "$ref": "#/$defs/DefaultPermission" + "$ref": "#/definitions/DefaultPermission" }, { "type": "null" @@ -19,19 +19,19 @@ "description": "A list of permissions sets defined", "type": "array", "items": { - "$ref": "#/$defs/PermissionSet" + "$ref": "#/definitions/PermissionSet" } }, "permission": { "description": "A list of inlined permissions", "type": "array", "items": { - "$ref": "#/$defs/Permission" + "$ref": "#/definitions/Permission" }, "default": [] } }, - "$defs": { + "definitions": { "DefaultPermission": { "description": "The default permission set of the plugin.\n\nWorks similarly to a permission with the \"default\" identifier.", "type": "object", @@ -80,7 +80,7 @@ "description": "All permissions this set contains.", "type": "array", "items": { - "$ref": "#/$defs/PermissionKind" + "type": "string" } } }, @@ -116,15 +116,23 @@ }, "commands": { "description": "Allowed or denied commands when using this permission.", - "$ref": "#/$defs/Commands", "default": { "allow": [], "deny": [] - } + }, + "allOf": [ + { + "$ref": "#/definitions/Commands" + } + ] }, "scope": { "description": "Allowed or denied scoped when using this permission.", - "$ref": "#/$defs/Scopes" + "allOf": [ + { + "$ref": "#/definitions/Scopes" + } + ] }, "platforms": { "description": "Target platforms this permission applies. By default all platforms are affected by this permission.", @@ -133,7 +141,7 @@ "null" ], "items": { - "$ref": "#/$defs/Target" + "$ref": "#/definitions/Target" } } }, @@ -174,7 +182,7 @@ "null" ], "items": { - "$ref": "#/$defs/Value" + "$ref": "#/definitions/Value" } }, "deny": { @@ -184,7 +192,7 @@ "null" ], "items": { - "$ref": "#/$defs/Value" + "$ref": "#/definitions/Value" } } } @@ -202,7 +210,11 @@ }, { "description": "Represents a valid ACL [`Number`].", - "$ref": "#/$defs/Number" + "allOf": [ + { + "$ref": "#/definitions/Number" + } + ] }, { "description": "Represents a [`String`].", @@ -212,14 +224,14 @@ "description": "Represents a list of other [`Value`]s.", "type": "array", "items": { - "$ref": "#/$defs/Value" + "$ref": "#/definitions/Value" } }, { "description": "Represents a map of [`String`] keys to [`Value`]s.", "type": "object", "additionalProperties": { - "$ref": "#/$defs/Value" + "$ref": "#/definitions/Value" } } ] @@ -268,113 +280,6 @@ "const": "iOS" } ] - }, - "PermissionKind": { - "type": "string", - "oneOf": [ - { - "description": "Enables the arch command without any pre-configured scope.", - "type": "string", - "const": "allow-arch", - "markdownDescription": "Enables the arch command without any pre-configured scope." - }, - { - "description": "Denies the arch command without any pre-configured scope.", - "type": "string", - "const": "deny-arch", - "markdownDescription": "Denies the arch command without any pre-configured scope." - }, - { - "description": "Enables the exe_extension command without any pre-configured scope.", - "type": "string", - "const": "allow-exe-extension", - "markdownDescription": "Enables the exe_extension command without any pre-configured scope." - }, - { - "description": "Denies the exe_extension command without any pre-configured scope.", - "type": "string", - "const": "deny-exe-extension", - "markdownDescription": "Denies the exe_extension command without any pre-configured scope." - }, - { - "description": "Enables the family command without any pre-configured scope.", - "type": "string", - "const": "allow-family", - "markdownDescription": "Enables the family command without any pre-configured scope." - }, - { - "description": "Denies the family command without any pre-configured scope.", - "type": "string", - "const": "deny-family", - "markdownDescription": "Denies the family command without any pre-configured scope." - }, - { - "description": "Enables the hostname command without any pre-configured scope.", - "type": "string", - "const": "allow-hostname", - "markdownDescription": "Enables the hostname command without any pre-configured scope." - }, - { - "description": "Denies the hostname command without any pre-configured scope.", - "type": "string", - "const": "deny-hostname", - "markdownDescription": "Denies the hostname command without any pre-configured scope." - }, - { - "description": "Enables the locale command without any pre-configured scope.", - "type": "string", - "const": "allow-locale", - "markdownDescription": "Enables the locale command without any pre-configured scope." - }, - { - "description": "Denies the locale command without any pre-configured scope.", - "type": "string", - "const": "deny-locale", - "markdownDescription": "Denies the locale command without any pre-configured scope." - }, - { - "description": "Enables the os_type command without any pre-configured scope.", - "type": "string", - "const": "allow-os-type", - "markdownDescription": "Enables the os_type command without any pre-configured scope." - }, - { - "description": "Denies the os_type command without any pre-configured scope.", - "type": "string", - "const": "deny-os-type", - "markdownDescription": "Denies the os_type command without any pre-configured scope." - }, - { - "description": "Enables the platform command without any pre-configured scope.", - "type": "string", - "const": "allow-platform", - "markdownDescription": "Enables the platform command without any pre-configured scope." - }, - { - "description": "Denies the platform command without any pre-configured scope.", - "type": "string", - "const": "deny-platform", - "markdownDescription": "Denies the platform command without any pre-configured scope." - }, - { - "description": "Enables the version command without any pre-configured scope.", - "type": "string", - "const": "allow-version", - "markdownDescription": "Enables the version command without any pre-configured scope." - }, - { - "description": "Denies the version command without any pre-configured scope.", - "type": "string", - "const": "deny-version", - "markdownDescription": "Denies the version command without any pre-configured scope." - }, - { - "description": "This permission set configures which\noperating system information are available\nto gather from the frontend.\n\n#### Granted Permissions\n\nAll information except the host name are available.\n\n\n#### This default permission set includes:\n\n- `allow-arch`\n- `allow-exe-extension`\n- `allow-family`\n- `allow-locale`\n- `allow-os-type`\n- `allow-platform`\n- `allow-version`", - "type": "string", - "const": "default", - "markdownDescription": "This permission set configures which\noperating system information are available\nto gather from the frontend.\n\n#### Granted Permissions\n\nAll information except the host name are available.\n\n\n#### This default permission set includes:\n\n- `allow-arch`\n- `allow-exe-extension`\n- `allow-family`\n- `allow-locale`\n- `allow-os-type`\n- `allow-platform`\n- `allow-version`" - } - ] } } } \ No newline at end of file diff --git a/plugins/positioner/permissions/schemas/schema.json b/plugins/positioner/permissions/schemas/schema.json index 82476734a..7cc6cab1d 100644 --- a/plugins/positioner/permissions/schemas/schema.json +++ b/plugins/positioner/permissions/schemas/schema.json @@ -1,5 +1,5 @@ { - "$schema": "https://json-schema.org/draft/2020-12/schema", + "$schema": "http://json-schema.org/draft-07/schema#", "title": "PermissionFile", "description": "Permission file that can define a default permission, a set of permissions or a list of inlined permissions.", "type": "object", @@ -8,7 +8,7 @@ "description": "The default permission set for the plugin", "anyOf": [ { - "$ref": "#/$defs/DefaultPermission" + "$ref": "#/definitions/DefaultPermission" }, { "type": "null" @@ -19,19 +19,19 @@ "description": "A list of permissions sets defined", "type": "array", "items": { - "$ref": "#/$defs/PermissionSet" + "$ref": "#/definitions/PermissionSet" } }, "permission": { "description": "A list of inlined permissions", "type": "array", "items": { - "$ref": "#/$defs/Permission" + "$ref": "#/definitions/Permission" }, "default": [] } }, - "$defs": { + "definitions": { "DefaultPermission": { "description": "The default permission set of the plugin.\n\nWorks similarly to a permission with the \"default\" identifier.", "type": "object", @@ -80,7 +80,7 @@ "description": "All permissions this set contains.", "type": "array", "items": { - "$ref": "#/$defs/PermissionKind" + "type": "string" } } }, @@ -116,15 +116,23 @@ }, "commands": { "description": "Allowed or denied commands when using this permission.", - "$ref": "#/$defs/Commands", "default": { "allow": [], "deny": [] - } + }, + "allOf": [ + { + "$ref": "#/definitions/Commands" + } + ] }, "scope": { "description": "Allowed or denied scoped when using this permission.", - "$ref": "#/$defs/Scopes" + "allOf": [ + { + "$ref": "#/definitions/Scopes" + } + ] }, "platforms": { "description": "Target platforms this permission applies. By default all platforms are affected by this permission.", @@ -133,7 +141,7 @@ "null" ], "items": { - "$ref": "#/$defs/Target" + "$ref": "#/definitions/Target" } } }, @@ -174,7 +182,7 @@ "null" ], "items": { - "$ref": "#/$defs/Value" + "$ref": "#/definitions/Value" } }, "deny": { @@ -184,7 +192,7 @@ "null" ], "items": { - "$ref": "#/$defs/Value" + "$ref": "#/definitions/Value" } } } @@ -202,7 +210,11 @@ }, { "description": "Represents a valid ACL [`Number`].", - "$ref": "#/$defs/Number" + "allOf": [ + { + "$ref": "#/definitions/Number" + } + ] }, { "description": "Represents a [`String`].", @@ -212,14 +224,14 @@ "description": "Represents a list of other [`Value`]s.", "type": "array", "items": { - "$ref": "#/$defs/Value" + "$ref": "#/definitions/Value" } }, { "description": "Represents a map of [`String`] keys to [`Value`]s.", "type": "object", "additionalProperties": { - "$ref": "#/$defs/Value" + "$ref": "#/definitions/Value" } } ] @@ -268,53 +280,6 @@ "const": "iOS" } ] - }, - "PermissionKind": { - "type": "string", - "oneOf": [ - { - "description": "Enables the move_window command without any pre-configured scope.", - "type": "string", - "const": "allow-move-window", - "markdownDescription": "Enables the move_window command without any pre-configured scope." - }, - { - "description": "Denies the move_window command without any pre-configured scope.", - "type": "string", - "const": "deny-move-window", - "markdownDescription": "Denies the move_window command without any pre-configured scope." - }, - { - "description": "Enables the move_window_constrained command without any pre-configured scope.", - "type": "string", - "const": "allow-move-window-constrained", - "markdownDescription": "Enables the move_window_constrained command without any pre-configured scope." - }, - { - "description": "Denies the move_window_constrained command without any pre-configured scope.", - "type": "string", - "const": "deny-move-window-constrained", - "markdownDescription": "Denies the move_window_constrained command without any pre-configured scope." - }, - { - "description": "Enables the set_tray_icon_state command without any pre-configured scope.", - "type": "string", - "const": "allow-set-tray-icon-state", - "markdownDescription": "Enables the set_tray_icon_state command without any pre-configured scope." - }, - { - "description": "Denies the set_tray_icon_state command without any pre-configured scope.", - "type": "string", - "const": "deny-set-tray-icon-state", - "markdownDescription": "Denies the set_tray_icon_state command without any pre-configured scope." - }, - { - "description": "Allows the moveWindow and handleIconState APIs\n#### This default permission set includes:\n\n- `allow-move-window`\n- `allow-move-window-constrained`\n- `allow-set-tray-icon-state`", - "type": "string", - "const": "default", - "markdownDescription": "Allows the moveWindow and handleIconState APIs\n#### This default permission set includes:\n\n- `allow-move-window`\n- `allow-move-window-constrained`\n- `allow-set-tray-icon-state`" - } - ] } } } \ No newline at end of file diff --git a/plugins/process/permissions/schemas/schema.json b/plugins/process/permissions/schemas/schema.json index 5ad076402..7cc6cab1d 100644 --- a/plugins/process/permissions/schemas/schema.json +++ b/plugins/process/permissions/schemas/schema.json @@ -1,5 +1,5 @@ { - "$schema": "https://json-schema.org/draft/2020-12/schema", + "$schema": "http://json-schema.org/draft-07/schema#", "title": "PermissionFile", "description": "Permission file that can define a default permission, a set of permissions or a list of inlined permissions.", "type": "object", @@ -8,7 +8,7 @@ "description": "The default permission set for the plugin", "anyOf": [ { - "$ref": "#/$defs/DefaultPermission" + "$ref": "#/definitions/DefaultPermission" }, { "type": "null" @@ -19,19 +19,19 @@ "description": "A list of permissions sets defined", "type": "array", "items": { - "$ref": "#/$defs/PermissionSet" + "$ref": "#/definitions/PermissionSet" } }, "permission": { "description": "A list of inlined permissions", "type": "array", "items": { - "$ref": "#/$defs/Permission" + "$ref": "#/definitions/Permission" }, "default": [] } }, - "$defs": { + "definitions": { "DefaultPermission": { "description": "The default permission set of the plugin.\n\nWorks similarly to a permission with the \"default\" identifier.", "type": "object", @@ -80,7 +80,7 @@ "description": "All permissions this set contains.", "type": "array", "items": { - "$ref": "#/$defs/PermissionKind" + "type": "string" } } }, @@ -116,15 +116,23 @@ }, "commands": { "description": "Allowed or denied commands when using this permission.", - "$ref": "#/$defs/Commands", "default": { "allow": [], "deny": [] - } + }, + "allOf": [ + { + "$ref": "#/definitions/Commands" + } + ] }, "scope": { "description": "Allowed or denied scoped when using this permission.", - "$ref": "#/$defs/Scopes" + "allOf": [ + { + "$ref": "#/definitions/Scopes" + } + ] }, "platforms": { "description": "Target platforms this permission applies. By default all platforms are affected by this permission.", @@ -133,7 +141,7 @@ "null" ], "items": { - "$ref": "#/$defs/Target" + "$ref": "#/definitions/Target" } } }, @@ -174,7 +182,7 @@ "null" ], "items": { - "$ref": "#/$defs/Value" + "$ref": "#/definitions/Value" } }, "deny": { @@ -184,7 +192,7 @@ "null" ], "items": { - "$ref": "#/$defs/Value" + "$ref": "#/definitions/Value" } } } @@ -202,7 +210,11 @@ }, { "description": "Represents a valid ACL [`Number`].", - "$ref": "#/$defs/Number" + "allOf": [ + { + "$ref": "#/definitions/Number" + } + ] }, { "description": "Represents a [`String`].", @@ -212,14 +224,14 @@ "description": "Represents a list of other [`Value`]s.", "type": "array", "items": { - "$ref": "#/$defs/Value" + "$ref": "#/definitions/Value" } }, { "description": "Represents a map of [`String`] keys to [`Value`]s.", "type": "object", "additionalProperties": { - "$ref": "#/$defs/Value" + "$ref": "#/definitions/Value" } } ] @@ -268,41 +280,6 @@ "const": "iOS" } ] - }, - "PermissionKind": { - "type": "string", - "oneOf": [ - { - "description": "Enables the exit command without any pre-configured scope.", - "type": "string", - "const": "allow-exit", - "markdownDescription": "Enables the exit command without any pre-configured scope." - }, - { - "description": "Denies the exit command without any pre-configured scope.", - "type": "string", - "const": "deny-exit", - "markdownDescription": "Denies the exit command without any pre-configured scope." - }, - { - "description": "Enables the restart command without any pre-configured scope.", - "type": "string", - "const": "allow-restart", - "markdownDescription": "Enables the restart command without any pre-configured scope." - }, - { - "description": "Denies the restart command without any pre-configured scope.", - "type": "string", - "const": "deny-restart", - "markdownDescription": "Denies the restart command without any pre-configured scope." - }, - { - "description": "This permission set configures which\nprocess features are by default exposed.\n\n#### Granted Permissions\n\nThis enables to quit via `allow-exit` and restart via `allow-restart`\nthe application.\n\n#### This default permission set includes:\n\n- `allow-exit`\n- `allow-restart`", - "type": "string", - "const": "default", - "markdownDescription": "This permission set configures which\nprocess features are by default exposed.\n\n#### Granted Permissions\n\nThis enables to quit via `allow-exit` and restart via `allow-restart`\nthe application.\n\n#### This default permission set includes:\n\n- `allow-exit`\n- `allow-restart`" - } - ] } } } \ No newline at end of file diff --git a/plugins/shell/build.rs b/plugins/shell/build.rs index 4e19ccd84..cb0404f07 100644 --- a/plugins/shell/build.rs +++ b/plugins/shell/build.rs @@ -168,7 +168,10 @@ const COMMANDS: &[&str] = &["execute", "spawn", "stdin_write", "kill", "open"]; fn main() { tauri_plugin::Builder::new(COMMANDS) .global_api_script_path("./api-iife.js") - .global_scope_schema(schemars::schema_for!(ShellScopeEntry)) + .global_scope_schema( + schemars::SchemaGenerator::new(schemars::generate::SchemaSettings::draft07()) + .into_root_schema_for::(), + ) .android_path("android") .ios_path("ios") .build(); diff --git a/plugins/shell/permissions/schemas/schema.json b/plugins/shell/permissions/schemas/schema.json index bad58705c..7cc6cab1d 100644 --- a/plugins/shell/permissions/schemas/schema.json +++ b/plugins/shell/permissions/schemas/schema.json @@ -1,5 +1,5 @@ { - "$schema": "https://json-schema.org/draft/2020-12/schema", + "$schema": "http://json-schema.org/draft-07/schema#", "title": "PermissionFile", "description": "Permission file that can define a default permission, a set of permissions or a list of inlined permissions.", "type": "object", @@ -8,7 +8,7 @@ "description": "The default permission set for the plugin", "anyOf": [ { - "$ref": "#/$defs/DefaultPermission" + "$ref": "#/definitions/DefaultPermission" }, { "type": "null" @@ -19,19 +19,19 @@ "description": "A list of permissions sets defined", "type": "array", "items": { - "$ref": "#/$defs/PermissionSet" + "$ref": "#/definitions/PermissionSet" } }, "permission": { "description": "A list of inlined permissions", "type": "array", "items": { - "$ref": "#/$defs/Permission" + "$ref": "#/definitions/Permission" }, "default": [] } }, - "$defs": { + "definitions": { "DefaultPermission": { "description": "The default permission set of the plugin.\n\nWorks similarly to a permission with the \"default\" identifier.", "type": "object", @@ -80,7 +80,7 @@ "description": "All permissions this set contains.", "type": "array", "items": { - "$ref": "#/$defs/PermissionKind" + "type": "string" } } }, @@ -116,15 +116,23 @@ }, "commands": { "description": "Allowed or denied commands when using this permission.", - "$ref": "#/$defs/Commands", "default": { "allow": [], "deny": [] - } + }, + "allOf": [ + { + "$ref": "#/definitions/Commands" + } + ] }, "scope": { "description": "Allowed or denied scoped when using this permission.", - "$ref": "#/$defs/Scopes" + "allOf": [ + { + "$ref": "#/definitions/Scopes" + } + ] }, "platforms": { "description": "Target platforms this permission applies. By default all platforms are affected by this permission.", @@ -133,7 +141,7 @@ "null" ], "items": { - "$ref": "#/$defs/Target" + "$ref": "#/definitions/Target" } } }, @@ -174,7 +182,7 @@ "null" ], "items": { - "$ref": "#/$defs/Value" + "$ref": "#/definitions/Value" } }, "deny": { @@ -184,7 +192,7 @@ "null" ], "items": { - "$ref": "#/$defs/Value" + "$ref": "#/definitions/Value" } } } @@ -202,7 +210,11 @@ }, { "description": "Represents a valid ACL [`Number`].", - "$ref": "#/$defs/Number" + "allOf": [ + { + "$ref": "#/definitions/Number" + } + ] }, { "description": "Represents a [`String`].", @@ -212,14 +224,14 @@ "description": "Represents a list of other [`Value`]s.", "type": "array", "items": { - "$ref": "#/$defs/Value" + "$ref": "#/definitions/Value" } }, { "description": "Represents a map of [`String`] keys to [`Value`]s.", "type": "object", "additionalProperties": { - "$ref": "#/$defs/Value" + "$ref": "#/definitions/Value" } } ] @@ -268,77 +280,6 @@ "const": "iOS" } ] - }, - "PermissionKind": { - "type": "string", - "oneOf": [ - { - "description": "Enables the execute command without any pre-configured scope.", - "type": "string", - "const": "allow-execute", - "markdownDescription": "Enables the execute command without any pre-configured scope." - }, - { - "description": "Denies the execute command without any pre-configured scope.", - "type": "string", - "const": "deny-execute", - "markdownDescription": "Denies the execute command without any pre-configured scope." - }, - { - "description": "Enables the kill command without any pre-configured scope.", - "type": "string", - "const": "allow-kill", - "markdownDescription": "Enables the kill command without any pre-configured scope." - }, - { - "description": "Denies the kill command without any pre-configured scope.", - "type": "string", - "const": "deny-kill", - "markdownDescription": "Denies the kill command without any pre-configured scope." - }, - { - "description": "Enables the open command without any pre-configured scope.", - "type": "string", - "const": "allow-open", - "markdownDescription": "Enables the open command without any pre-configured scope." - }, - { - "description": "Denies the open command without any pre-configured scope.", - "type": "string", - "const": "deny-open", - "markdownDescription": "Denies the open command without any pre-configured scope." - }, - { - "description": "Enables the spawn command without any pre-configured scope.", - "type": "string", - "const": "allow-spawn", - "markdownDescription": "Enables the spawn command without any pre-configured scope." - }, - { - "description": "Denies the spawn command without any pre-configured scope.", - "type": "string", - "const": "deny-spawn", - "markdownDescription": "Denies the spawn command without any pre-configured scope." - }, - { - "description": "Enables the stdin_write command without any pre-configured scope.", - "type": "string", - "const": "allow-stdin-write", - "markdownDescription": "Enables the stdin_write command without any pre-configured scope." - }, - { - "description": "Denies the stdin_write command without any pre-configured scope.", - "type": "string", - "const": "deny-stdin-write", - "markdownDescription": "Denies the stdin_write command without any pre-configured scope." - }, - { - "description": "This permission set configures which\nshell functionality is exposed by default.\n\n#### Granted Permissions\n\nIt allows to use the `open` functionality with a reasonable\nscope pre-configured. It will allow opening `http(s)://`,\n`tel:` and `mailto:` links.\n\n#### This default permission set includes:\n\n- `allow-open`", - "type": "string", - "const": "default", - "markdownDescription": "This permission set configures which\nshell functionality is exposed by default.\n\n#### Granted Permissions\n\nIt allows to use the `open` functionality with a reasonable\nscope pre-configured. It will allow opening `http(s)://`,\n`tel:` and `mailto:` links.\n\n#### This default permission set includes:\n\n- `allow-open`" - } - ] } } } \ No newline at end of file diff --git a/plugins/sql/permissions/schemas/schema.json b/plugins/sql/permissions/schemas/schema.json index 58a48732b..7cc6cab1d 100644 --- a/plugins/sql/permissions/schemas/schema.json +++ b/plugins/sql/permissions/schemas/schema.json @@ -1,5 +1,5 @@ { - "$schema": "https://json-schema.org/draft/2020-12/schema", + "$schema": "http://json-schema.org/draft-07/schema#", "title": "PermissionFile", "description": "Permission file that can define a default permission, a set of permissions or a list of inlined permissions.", "type": "object", @@ -8,7 +8,7 @@ "description": "The default permission set for the plugin", "anyOf": [ { - "$ref": "#/$defs/DefaultPermission" + "$ref": "#/definitions/DefaultPermission" }, { "type": "null" @@ -19,19 +19,19 @@ "description": "A list of permissions sets defined", "type": "array", "items": { - "$ref": "#/$defs/PermissionSet" + "$ref": "#/definitions/PermissionSet" } }, "permission": { "description": "A list of inlined permissions", "type": "array", "items": { - "$ref": "#/$defs/Permission" + "$ref": "#/definitions/Permission" }, "default": [] } }, - "$defs": { + "definitions": { "DefaultPermission": { "description": "The default permission set of the plugin.\n\nWorks similarly to a permission with the \"default\" identifier.", "type": "object", @@ -80,7 +80,7 @@ "description": "All permissions this set contains.", "type": "array", "items": { - "$ref": "#/$defs/PermissionKind" + "type": "string" } } }, @@ -116,15 +116,23 @@ }, "commands": { "description": "Allowed or denied commands when using this permission.", - "$ref": "#/$defs/Commands", "default": { "allow": [], "deny": [] - } + }, + "allOf": [ + { + "$ref": "#/definitions/Commands" + } + ] }, "scope": { "description": "Allowed or denied scoped when using this permission.", - "$ref": "#/$defs/Scopes" + "allOf": [ + { + "$ref": "#/definitions/Scopes" + } + ] }, "platforms": { "description": "Target platforms this permission applies. By default all platforms are affected by this permission.", @@ -133,7 +141,7 @@ "null" ], "items": { - "$ref": "#/$defs/Target" + "$ref": "#/definitions/Target" } } }, @@ -174,7 +182,7 @@ "null" ], "items": { - "$ref": "#/$defs/Value" + "$ref": "#/definitions/Value" } }, "deny": { @@ -184,7 +192,7 @@ "null" ], "items": { - "$ref": "#/$defs/Value" + "$ref": "#/definitions/Value" } } } @@ -202,7 +210,11 @@ }, { "description": "Represents a valid ACL [`Number`].", - "$ref": "#/$defs/Number" + "allOf": [ + { + "$ref": "#/definitions/Number" + } + ] }, { "description": "Represents a [`String`].", @@ -212,14 +224,14 @@ "description": "Represents a list of other [`Value`]s.", "type": "array", "items": { - "$ref": "#/$defs/Value" + "$ref": "#/definitions/Value" } }, { "description": "Represents a map of [`String`] keys to [`Value`]s.", "type": "object", "additionalProperties": { - "$ref": "#/$defs/Value" + "$ref": "#/definitions/Value" } } ] @@ -268,65 +280,6 @@ "const": "iOS" } ] - }, - "PermissionKind": { - "type": "string", - "oneOf": [ - { - "description": "Enables the close command without any pre-configured scope.", - "type": "string", - "const": "allow-close", - "markdownDescription": "Enables the close command without any pre-configured scope." - }, - { - "description": "Denies the close command without any pre-configured scope.", - "type": "string", - "const": "deny-close", - "markdownDescription": "Denies the close command without any pre-configured scope." - }, - { - "description": "Enables the execute command without any pre-configured scope.", - "type": "string", - "const": "allow-execute", - "markdownDescription": "Enables the execute command without any pre-configured scope." - }, - { - "description": "Denies the execute command without any pre-configured scope.", - "type": "string", - "const": "deny-execute", - "markdownDescription": "Denies the execute command without any pre-configured scope." - }, - { - "description": "Enables the load command without any pre-configured scope.", - "type": "string", - "const": "allow-load", - "markdownDescription": "Enables the load command without any pre-configured scope." - }, - { - "description": "Denies the load command without any pre-configured scope.", - "type": "string", - "const": "deny-load", - "markdownDescription": "Denies the load command without any pre-configured scope." - }, - { - "description": "Enables the select command without any pre-configured scope.", - "type": "string", - "const": "allow-select", - "markdownDescription": "Enables the select command without any pre-configured scope." - }, - { - "description": "Denies the select command without any pre-configured scope.", - "type": "string", - "const": "deny-select", - "markdownDescription": "Denies the select command without any pre-configured scope." - }, - { - "description": "### Default Permissions\n\nThis permission set configures what kind of\ndatabase operations are available from the sql plugin.\n\n### Granted Permissions\n\nAll reading related operations are enabled.\nAlso allows to load or close a connection.\n\n\n#### This default permission set includes:\n\n- `allow-close`\n- `allow-load`\n- `allow-select`", - "type": "string", - "const": "default", - "markdownDescription": "### Default Permissions\n\nThis permission set configures what kind of\ndatabase operations are available from the sql plugin.\n\n### Granted Permissions\n\nAll reading related operations are enabled.\nAlso allows to load or close a connection.\n\n\n#### This default permission set includes:\n\n- `allow-close`\n- `allow-load`\n- `allow-select`" - } - ] } } } \ No newline at end of file diff --git a/plugins/store/permissions/schemas/schema.json b/plugins/store/permissions/schemas/schema.json index 5806c074b..7cc6cab1d 100644 --- a/plugins/store/permissions/schemas/schema.json +++ b/plugins/store/permissions/schemas/schema.json @@ -1,5 +1,5 @@ { - "$schema": "https://json-schema.org/draft/2020-12/schema", + "$schema": "http://json-schema.org/draft-07/schema#", "title": "PermissionFile", "description": "Permission file that can define a default permission, a set of permissions or a list of inlined permissions.", "type": "object", @@ -8,7 +8,7 @@ "description": "The default permission set for the plugin", "anyOf": [ { - "$ref": "#/$defs/DefaultPermission" + "$ref": "#/definitions/DefaultPermission" }, { "type": "null" @@ -19,19 +19,19 @@ "description": "A list of permissions sets defined", "type": "array", "items": { - "$ref": "#/$defs/PermissionSet" + "$ref": "#/definitions/PermissionSet" } }, "permission": { "description": "A list of inlined permissions", "type": "array", "items": { - "$ref": "#/$defs/Permission" + "$ref": "#/definitions/Permission" }, "default": [] } }, - "$defs": { + "definitions": { "DefaultPermission": { "description": "The default permission set of the plugin.\n\nWorks similarly to a permission with the \"default\" identifier.", "type": "object", @@ -80,7 +80,7 @@ "description": "All permissions this set contains.", "type": "array", "items": { - "$ref": "#/$defs/PermissionKind" + "type": "string" } } }, @@ -116,15 +116,23 @@ }, "commands": { "description": "Allowed or denied commands when using this permission.", - "$ref": "#/$defs/Commands", "default": { "allow": [], "deny": [] - } + }, + "allOf": [ + { + "$ref": "#/definitions/Commands" + } + ] }, "scope": { "description": "Allowed or denied scoped when using this permission.", - "$ref": "#/$defs/Scopes" + "allOf": [ + { + "$ref": "#/definitions/Scopes" + } + ] }, "platforms": { "description": "Target platforms this permission applies. By default all platforms are affected by this permission.", @@ -133,7 +141,7 @@ "null" ], "items": { - "$ref": "#/$defs/Target" + "$ref": "#/definitions/Target" } } }, @@ -174,7 +182,7 @@ "null" ], "items": { - "$ref": "#/$defs/Value" + "$ref": "#/definitions/Value" } }, "deny": { @@ -184,7 +192,7 @@ "null" ], "items": { - "$ref": "#/$defs/Value" + "$ref": "#/definitions/Value" } } } @@ -202,7 +210,11 @@ }, { "description": "Represents a valid ACL [`Number`].", - "$ref": "#/$defs/Number" + "allOf": [ + { + "$ref": "#/definitions/Number" + } + ] }, { "description": "Represents a [`String`].", @@ -212,14 +224,14 @@ "description": "Represents a list of other [`Value`]s.", "type": "array", "items": { - "$ref": "#/$defs/Value" + "$ref": "#/definitions/Value" } }, { "description": "Represents a map of [`String`] keys to [`Value`]s.", "type": "object", "additionalProperties": { - "$ref": "#/$defs/Value" + "$ref": "#/definitions/Value" } } ] @@ -268,185 +280,6 @@ "const": "iOS" } ] - }, - "PermissionKind": { - "type": "string", - "oneOf": [ - { - "description": "Enables the clear command without any pre-configured scope.", - "type": "string", - "const": "allow-clear", - "markdownDescription": "Enables the clear command without any pre-configured scope." - }, - { - "description": "Denies the clear command without any pre-configured scope.", - "type": "string", - "const": "deny-clear", - "markdownDescription": "Denies the clear command without any pre-configured scope." - }, - { - "description": "Enables the delete command without any pre-configured scope.", - "type": "string", - "const": "allow-delete", - "markdownDescription": "Enables the delete command without any pre-configured scope." - }, - { - "description": "Denies the delete command without any pre-configured scope.", - "type": "string", - "const": "deny-delete", - "markdownDescription": "Denies the delete command without any pre-configured scope." - }, - { - "description": "Enables the entries command without any pre-configured scope.", - "type": "string", - "const": "allow-entries", - "markdownDescription": "Enables the entries command without any pre-configured scope." - }, - { - "description": "Denies the entries command without any pre-configured scope.", - "type": "string", - "const": "deny-entries", - "markdownDescription": "Denies the entries command without any pre-configured scope." - }, - { - "description": "Enables the get command without any pre-configured scope.", - "type": "string", - "const": "allow-get", - "markdownDescription": "Enables the get command without any pre-configured scope." - }, - { - "description": "Denies the get command without any pre-configured scope.", - "type": "string", - "const": "deny-get", - "markdownDescription": "Denies the get command without any pre-configured scope." - }, - { - "description": "Enables the get_store command without any pre-configured scope.", - "type": "string", - "const": "allow-get-store", - "markdownDescription": "Enables the get_store command without any pre-configured scope." - }, - { - "description": "Denies the get_store command without any pre-configured scope.", - "type": "string", - "const": "deny-get-store", - "markdownDescription": "Denies the get_store command without any pre-configured scope." - }, - { - "description": "Enables the has command without any pre-configured scope.", - "type": "string", - "const": "allow-has", - "markdownDescription": "Enables the has command without any pre-configured scope." - }, - { - "description": "Denies the has command without any pre-configured scope.", - "type": "string", - "const": "deny-has", - "markdownDescription": "Denies the has command without any pre-configured scope." - }, - { - "description": "Enables the keys command without any pre-configured scope.", - "type": "string", - "const": "allow-keys", - "markdownDescription": "Enables the keys command without any pre-configured scope." - }, - { - "description": "Denies the keys command without any pre-configured scope.", - "type": "string", - "const": "deny-keys", - "markdownDescription": "Denies the keys command without any pre-configured scope." - }, - { - "description": "Enables the length command without any pre-configured scope.", - "type": "string", - "const": "allow-length", - "markdownDescription": "Enables the length command without any pre-configured scope." - }, - { - "description": "Denies the length command without any pre-configured scope.", - "type": "string", - "const": "deny-length", - "markdownDescription": "Denies the length command without any pre-configured scope." - }, - { - "description": "Enables the load command without any pre-configured scope.", - "type": "string", - "const": "allow-load", - "markdownDescription": "Enables the load command without any pre-configured scope." - }, - { - "description": "Denies the load command without any pre-configured scope.", - "type": "string", - "const": "deny-load", - "markdownDescription": "Denies the load command without any pre-configured scope." - }, - { - "description": "Enables the reload command without any pre-configured scope.", - "type": "string", - "const": "allow-reload", - "markdownDescription": "Enables the reload command without any pre-configured scope." - }, - { - "description": "Denies the reload command without any pre-configured scope.", - "type": "string", - "const": "deny-reload", - "markdownDescription": "Denies the reload command without any pre-configured scope." - }, - { - "description": "Enables the reset command without any pre-configured scope.", - "type": "string", - "const": "allow-reset", - "markdownDescription": "Enables the reset command without any pre-configured scope." - }, - { - "description": "Denies the reset command without any pre-configured scope.", - "type": "string", - "const": "deny-reset", - "markdownDescription": "Denies the reset command without any pre-configured scope." - }, - { - "description": "Enables the save command without any pre-configured scope.", - "type": "string", - "const": "allow-save", - "markdownDescription": "Enables the save command without any pre-configured scope." - }, - { - "description": "Denies the save command without any pre-configured scope.", - "type": "string", - "const": "deny-save", - "markdownDescription": "Denies the save command without any pre-configured scope." - }, - { - "description": "Enables the set command without any pre-configured scope.", - "type": "string", - "const": "allow-set", - "markdownDescription": "Enables the set command without any pre-configured scope." - }, - { - "description": "Denies the set command without any pre-configured scope.", - "type": "string", - "const": "deny-set", - "markdownDescription": "Denies the set command without any pre-configured scope." - }, - { - "description": "Enables the values command without any pre-configured scope.", - "type": "string", - "const": "allow-values", - "markdownDescription": "Enables the values command without any pre-configured scope." - }, - { - "description": "Denies the values command without any pre-configured scope.", - "type": "string", - "const": "deny-values", - "markdownDescription": "Denies the values command without any pre-configured scope." - }, - { - "description": "This permission set configures what kind of\noperations are available from the store plugin.\n\n#### Granted Permissions\n\nAll operations are enabled by default.\n\n\n#### This default permission set includes:\n\n- `allow-load`\n- `allow-get-store`\n- `allow-set`\n- `allow-get`\n- `allow-has`\n- `allow-delete`\n- `allow-clear`\n- `allow-reset`\n- `allow-keys`\n- `allow-values`\n- `allow-entries`\n- `allow-length`\n- `allow-reload`\n- `allow-save`", - "type": "string", - "const": "default", - "markdownDescription": "This permission set configures what kind of\noperations are available from the store plugin.\n\n#### Granted Permissions\n\nAll operations are enabled by default.\n\n\n#### This default permission set includes:\n\n- `allow-load`\n- `allow-get-store`\n- `allow-set`\n- `allow-get`\n- `allow-has`\n- `allow-delete`\n- `allow-clear`\n- `allow-reset`\n- `allow-keys`\n- `allow-values`\n- `allow-entries`\n- `allow-length`\n- `allow-reload`\n- `allow-save`" - } - ] } } } \ No newline at end of file diff --git a/plugins/stronghold/permissions/schemas/schema.json b/plugins/stronghold/permissions/schemas/schema.json index 4ca2c61a1..7cc6cab1d 100644 --- a/plugins/stronghold/permissions/schemas/schema.json +++ b/plugins/stronghold/permissions/schemas/schema.json @@ -1,5 +1,5 @@ { - "$schema": "https://json-schema.org/draft/2020-12/schema", + "$schema": "http://json-schema.org/draft-07/schema#", "title": "PermissionFile", "description": "Permission file that can define a default permission, a set of permissions or a list of inlined permissions.", "type": "object", @@ -8,7 +8,7 @@ "description": "The default permission set for the plugin", "anyOf": [ { - "$ref": "#/$defs/DefaultPermission" + "$ref": "#/definitions/DefaultPermission" }, { "type": "null" @@ -19,19 +19,19 @@ "description": "A list of permissions sets defined", "type": "array", "items": { - "$ref": "#/$defs/PermissionSet" + "$ref": "#/definitions/PermissionSet" } }, "permission": { "description": "A list of inlined permissions", "type": "array", "items": { - "$ref": "#/$defs/Permission" + "$ref": "#/definitions/Permission" }, "default": [] } }, - "$defs": { + "definitions": { "DefaultPermission": { "description": "The default permission set of the plugin.\n\nWorks similarly to a permission with the \"default\" identifier.", "type": "object", @@ -80,7 +80,7 @@ "description": "All permissions this set contains.", "type": "array", "items": { - "$ref": "#/$defs/PermissionKind" + "type": "string" } } }, @@ -116,15 +116,23 @@ }, "commands": { "description": "Allowed or denied commands when using this permission.", - "$ref": "#/$defs/Commands", "default": { "allow": [], "deny": [] - } + }, + "allOf": [ + { + "$ref": "#/definitions/Commands" + } + ] }, "scope": { "description": "Allowed or denied scoped when using this permission.", - "$ref": "#/$defs/Scopes" + "allOf": [ + { + "$ref": "#/definitions/Scopes" + } + ] }, "platforms": { "description": "Target platforms this permission applies. By default all platforms are affected by this permission.", @@ -133,7 +141,7 @@ "null" ], "items": { - "$ref": "#/$defs/Target" + "$ref": "#/definitions/Target" } } }, @@ -174,7 +182,7 @@ "null" ], "items": { - "$ref": "#/$defs/Value" + "$ref": "#/definitions/Value" } }, "deny": { @@ -184,7 +192,7 @@ "null" ], "items": { - "$ref": "#/$defs/Value" + "$ref": "#/definitions/Value" } } } @@ -202,7 +210,11 @@ }, { "description": "Represents a valid ACL [`Number`].", - "$ref": "#/$defs/Number" + "allOf": [ + { + "$ref": "#/definitions/Number" + } + ] }, { "description": "Represents a [`String`].", @@ -212,14 +224,14 @@ "description": "Represents a list of other [`Value`]s.", "type": "array", "items": { - "$ref": "#/$defs/Value" + "$ref": "#/definitions/Value" } }, { "description": "Represents a map of [`String`] keys to [`Value`]s.", "type": "object", "additionalProperties": { - "$ref": "#/$defs/Value" + "$ref": "#/definitions/Value" } } ] @@ -268,149 +280,6 @@ "const": "iOS" } ] - }, - "PermissionKind": { - "type": "string", - "oneOf": [ - { - "description": "Enables the create_client command without any pre-configured scope.", - "type": "string", - "const": "allow-create-client", - "markdownDescription": "Enables the create_client command without any pre-configured scope." - }, - { - "description": "Denies the create_client command without any pre-configured scope.", - "type": "string", - "const": "deny-create-client", - "markdownDescription": "Denies the create_client command without any pre-configured scope." - }, - { - "description": "Enables the destroy command without any pre-configured scope.", - "type": "string", - "const": "allow-destroy", - "markdownDescription": "Enables the destroy command without any pre-configured scope." - }, - { - "description": "Denies the destroy command without any pre-configured scope.", - "type": "string", - "const": "deny-destroy", - "markdownDescription": "Denies the destroy command without any pre-configured scope." - }, - { - "description": "Enables the execute_procedure command without any pre-configured scope.", - "type": "string", - "const": "allow-execute-procedure", - "markdownDescription": "Enables the execute_procedure command without any pre-configured scope." - }, - { - "description": "Denies the execute_procedure command without any pre-configured scope.", - "type": "string", - "const": "deny-execute-procedure", - "markdownDescription": "Denies the execute_procedure command without any pre-configured scope." - }, - { - "description": "Enables the get_store_record command without any pre-configured scope.", - "type": "string", - "const": "allow-get-store-record", - "markdownDescription": "Enables the get_store_record command without any pre-configured scope." - }, - { - "description": "Denies the get_store_record command without any pre-configured scope.", - "type": "string", - "const": "deny-get-store-record", - "markdownDescription": "Denies the get_store_record command without any pre-configured scope." - }, - { - "description": "Enables the initialize command without any pre-configured scope.", - "type": "string", - "const": "allow-initialize", - "markdownDescription": "Enables the initialize command without any pre-configured scope." - }, - { - "description": "Denies the initialize command without any pre-configured scope.", - "type": "string", - "const": "deny-initialize", - "markdownDescription": "Denies the initialize command without any pre-configured scope." - }, - { - "description": "Enables the load_client command without any pre-configured scope.", - "type": "string", - "const": "allow-load-client", - "markdownDescription": "Enables the load_client command without any pre-configured scope." - }, - { - "description": "Denies the load_client command without any pre-configured scope.", - "type": "string", - "const": "deny-load-client", - "markdownDescription": "Denies the load_client command without any pre-configured scope." - }, - { - "description": "Enables the remove_secret command without any pre-configured scope.", - "type": "string", - "const": "allow-remove-secret", - "markdownDescription": "Enables the remove_secret command without any pre-configured scope." - }, - { - "description": "Denies the remove_secret command without any pre-configured scope.", - "type": "string", - "const": "deny-remove-secret", - "markdownDescription": "Denies the remove_secret command without any pre-configured scope." - }, - { - "description": "Enables the remove_store_record command without any pre-configured scope.", - "type": "string", - "const": "allow-remove-store-record", - "markdownDescription": "Enables the remove_store_record command without any pre-configured scope." - }, - { - "description": "Denies the remove_store_record command without any pre-configured scope.", - "type": "string", - "const": "deny-remove-store-record", - "markdownDescription": "Denies the remove_store_record command without any pre-configured scope." - }, - { - "description": "Enables the save command without any pre-configured scope.", - "type": "string", - "const": "allow-save", - "markdownDescription": "Enables the save command without any pre-configured scope." - }, - { - "description": "Denies the save command without any pre-configured scope.", - "type": "string", - "const": "deny-save", - "markdownDescription": "Denies the save command without any pre-configured scope." - }, - { - "description": "Enables the save_secret command without any pre-configured scope.", - "type": "string", - "const": "allow-save-secret", - "markdownDescription": "Enables the save_secret command without any pre-configured scope." - }, - { - "description": "Denies the save_secret command without any pre-configured scope.", - "type": "string", - "const": "deny-save-secret", - "markdownDescription": "Denies the save_secret command without any pre-configured scope." - }, - { - "description": "Enables the save_store_record command without any pre-configured scope.", - "type": "string", - "const": "allow-save-store-record", - "markdownDescription": "Enables the save_store_record command without any pre-configured scope." - }, - { - "description": "Denies the save_store_record command without any pre-configured scope.", - "type": "string", - "const": "deny-save-store-record", - "markdownDescription": "Denies the save_store_record command without any pre-configured scope." - }, - { - "description": "This permission set configures what kind of\noperations are available from the stronghold plugin.\n\n#### Granted Permissions\n\nAll non-destructive operations are enabled by default.\n\n\n#### This default permission set includes:\n\n- `allow-create-client`\n- `allow-get-store-record`\n- `allow-initialize`\n- `allow-execute-procedure`\n- `allow-load-client`\n- `allow-save-secret`\n- `allow-save-store-record`\n- `allow-save`", - "type": "string", - "const": "default", - "markdownDescription": "This permission set configures what kind of\noperations are available from the stronghold plugin.\n\n#### Granted Permissions\n\nAll non-destructive operations are enabled by default.\n\n\n#### This default permission set includes:\n\n- `allow-create-client`\n- `allow-get-store-record`\n- `allow-initialize`\n- `allow-execute-procedure`\n- `allow-load-client`\n- `allow-save-secret`\n- `allow-save-store-record`\n- `allow-save`" - } - ] } } } \ No newline at end of file diff --git a/plugins/updater/permissions/schemas/schema.json b/plugins/updater/permissions/schemas/schema.json index a065aff6a..7cc6cab1d 100644 --- a/plugins/updater/permissions/schemas/schema.json +++ b/plugins/updater/permissions/schemas/schema.json @@ -1,5 +1,5 @@ { - "$schema": "https://json-schema.org/draft/2020-12/schema", + "$schema": "http://json-schema.org/draft-07/schema#", "title": "PermissionFile", "description": "Permission file that can define a default permission, a set of permissions or a list of inlined permissions.", "type": "object", @@ -8,7 +8,7 @@ "description": "The default permission set for the plugin", "anyOf": [ { - "$ref": "#/$defs/DefaultPermission" + "$ref": "#/definitions/DefaultPermission" }, { "type": "null" @@ -19,19 +19,19 @@ "description": "A list of permissions sets defined", "type": "array", "items": { - "$ref": "#/$defs/PermissionSet" + "$ref": "#/definitions/PermissionSet" } }, "permission": { "description": "A list of inlined permissions", "type": "array", "items": { - "$ref": "#/$defs/Permission" + "$ref": "#/definitions/Permission" }, "default": [] } }, - "$defs": { + "definitions": { "DefaultPermission": { "description": "The default permission set of the plugin.\n\nWorks similarly to a permission with the \"default\" identifier.", "type": "object", @@ -80,7 +80,7 @@ "description": "All permissions this set contains.", "type": "array", "items": { - "$ref": "#/$defs/PermissionKind" + "type": "string" } } }, @@ -116,15 +116,23 @@ }, "commands": { "description": "Allowed or denied commands when using this permission.", - "$ref": "#/$defs/Commands", "default": { "allow": [], "deny": [] - } + }, + "allOf": [ + { + "$ref": "#/definitions/Commands" + } + ] }, "scope": { "description": "Allowed or denied scoped when using this permission.", - "$ref": "#/$defs/Scopes" + "allOf": [ + { + "$ref": "#/definitions/Scopes" + } + ] }, "platforms": { "description": "Target platforms this permission applies. By default all platforms are affected by this permission.", @@ -133,7 +141,7 @@ "null" ], "items": { - "$ref": "#/$defs/Target" + "$ref": "#/definitions/Target" } } }, @@ -174,7 +182,7 @@ "null" ], "items": { - "$ref": "#/$defs/Value" + "$ref": "#/definitions/Value" } }, "deny": { @@ -184,7 +192,7 @@ "null" ], "items": { - "$ref": "#/$defs/Value" + "$ref": "#/definitions/Value" } } } @@ -202,7 +210,11 @@ }, { "description": "Represents a valid ACL [`Number`].", - "$ref": "#/$defs/Number" + "allOf": [ + { + "$ref": "#/definitions/Number" + } + ] }, { "description": "Represents a [`String`].", @@ -212,14 +224,14 @@ "description": "Represents a list of other [`Value`]s.", "type": "array", "items": { - "$ref": "#/$defs/Value" + "$ref": "#/definitions/Value" } }, { "description": "Represents a map of [`String`] keys to [`Value`]s.", "type": "object", "additionalProperties": { - "$ref": "#/$defs/Value" + "$ref": "#/definitions/Value" } } ] @@ -268,65 +280,6 @@ "const": "iOS" } ] - }, - "PermissionKind": { - "type": "string", - "oneOf": [ - { - "description": "Enables the check command without any pre-configured scope.", - "type": "string", - "const": "allow-check", - "markdownDescription": "Enables the check command without any pre-configured scope." - }, - { - "description": "Denies the check command without any pre-configured scope.", - "type": "string", - "const": "deny-check", - "markdownDescription": "Denies the check command without any pre-configured scope." - }, - { - "description": "Enables the download command without any pre-configured scope.", - "type": "string", - "const": "allow-download", - "markdownDescription": "Enables the download command without any pre-configured scope." - }, - { - "description": "Denies the download command without any pre-configured scope.", - "type": "string", - "const": "deny-download", - "markdownDescription": "Denies the download command without any pre-configured scope." - }, - { - "description": "Enables the download_and_install command without any pre-configured scope.", - "type": "string", - "const": "allow-download-and-install", - "markdownDescription": "Enables the download_and_install command without any pre-configured scope." - }, - { - "description": "Denies the download_and_install command without any pre-configured scope.", - "type": "string", - "const": "deny-download-and-install", - "markdownDescription": "Denies the download_and_install command without any pre-configured scope." - }, - { - "description": "Enables the install command without any pre-configured scope.", - "type": "string", - "const": "allow-install", - "markdownDescription": "Enables the install command without any pre-configured scope." - }, - { - "description": "Denies the install command without any pre-configured scope.", - "type": "string", - "const": "deny-install", - "markdownDescription": "Denies the install command without any pre-configured scope." - }, - { - "description": "This permission set configures which kind of\nupdater functions are exposed to the frontend.\n\n#### Granted Permissions\n\nThe full workflow from checking for updates to installing them\nis enabled.\n\n\n#### This default permission set includes:\n\n- `allow-check`\n- `allow-download`\n- `allow-install`\n- `allow-download-and-install`", - "type": "string", - "const": "default", - "markdownDescription": "This permission set configures which kind of\nupdater functions are exposed to the frontend.\n\n#### Granted Permissions\n\nThe full workflow from checking for updates to installing them\nis enabled.\n\n\n#### This default permission set includes:\n\n- `allow-check`\n- `allow-download`\n- `allow-install`\n- `allow-download-and-install`" - } - ] } } } \ No newline at end of file diff --git a/plugins/upload/permissions/schemas/schema.json b/plugins/upload/permissions/schemas/schema.json index 8ebd136b9..7cc6cab1d 100644 --- a/plugins/upload/permissions/schemas/schema.json +++ b/plugins/upload/permissions/schemas/schema.json @@ -1,5 +1,5 @@ { - "$schema": "https://json-schema.org/draft/2020-12/schema", + "$schema": "http://json-schema.org/draft-07/schema#", "title": "PermissionFile", "description": "Permission file that can define a default permission, a set of permissions or a list of inlined permissions.", "type": "object", @@ -8,7 +8,7 @@ "description": "The default permission set for the plugin", "anyOf": [ { - "$ref": "#/$defs/DefaultPermission" + "$ref": "#/definitions/DefaultPermission" }, { "type": "null" @@ -19,19 +19,19 @@ "description": "A list of permissions sets defined", "type": "array", "items": { - "$ref": "#/$defs/PermissionSet" + "$ref": "#/definitions/PermissionSet" } }, "permission": { "description": "A list of inlined permissions", "type": "array", "items": { - "$ref": "#/$defs/Permission" + "$ref": "#/definitions/Permission" }, "default": [] } }, - "$defs": { + "definitions": { "DefaultPermission": { "description": "The default permission set of the plugin.\n\nWorks similarly to a permission with the \"default\" identifier.", "type": "object", @@ -80,7 +80,7 @@ "description": "All permissions this set contains.", "type": "array", "items": { - "$ref": "#/$defs/PermissionKind" + "type": "string" } } }, @@ -116,15 +116,23 @@ }, "commands": { "description": "Allowed or denied commands when using this permission.", - "$ref": "#/$defs/Commands", "default": { "allow": [], "deny": [] - } + }, + "allOf": [ + { + "$ref": "#/definitions/Commands" + } + ] }, "scope": { "description": "Allowed or denied scoped when using this permission.", - "$ref": "#/$defs/Scopes" + "allOf": [ + { + "$ref": "#/definitions/Scopes" + } + ] }, "platforms": { "description": "Target platforms this permission applies. By default all platforms are affected by this permission.", @@ -133,7 +141,7 @@ "null" ], "items": { - "$ref": "#/$defs/Target" + "$ref": "#/definitions/Target" } } }, @@ -174,7 +182,7 @@ "null" ], "items": { - "$ref": "#/$defs/Value" + "$ref": "#/definitions/Value" } }, "deny": { @@ -184,7 +192,7 @@ "null" ], "items": { - "$ref": "#/$defs/Value" + "$ref": "#/definitions/Value" } } } @@ -202,7 +210,11 @@ }, { "description": "Represents a valid ACL [`Number`].", - "$ref": "#/$defs/Number" + "allOf": [ + { + "$ref": "#/definitions/Number" + } + ] }, { "description": "Represents a [`String`].", @@ -212,14 +224,14 @@ "description": "Represents a list of other [`Value`]s.", "type": "array", "items": { - "$ref": "#/$defs/Value" + "$ref": "#/definitions/Value" } }, { "description": "Represents a map of [`String`] keys to [`Value`]s.", "type": "object", "additionalProperties": { - "$ref": "#/$defs/Value" + "$ref": "#/definitions/Value" } } ] @@ -268,41 +280,6 @@ "const": "iOS" } ] - }, - "PermissionKind": { - "type": "string", - "oneOf": [ - { - "description": "Enables the download command without any pre-configured scope.", - "type": "string", - "const": "allow-download", - "markdownDescription": "Enables the download command without any pre-configured scope." - }, - { - "description": "Denies the download command without any pre-configured scope.", - "type": "string", - "const": "deny-download", - "markdownDescription": "Denies the download command without any pre-configured scope." - }, - { - "description": "Enables the upload command without any pre-configured scope.", - "type": "string", - "const": "allow-upload", - "markdownDescription": "Enables the upload command without any pre-configured scope." - }, - { - "description": "Denies the upload command without any pre-configured scope.", - "type": "string", - "const": "deny-upload", - "markdownDescription": "Denies the upload command without any pre-configured scope." - }, - { - "description": "This permission set configures what kind of\noperations are available from the upload plugin.\n\n#### Granted Permissions\n\nAll operations are enabled by default.\n\n\n#### This default permission set includes:\n\n- `allow-upload`\n- `allow-download`", - "type": "string", - "const": "default", - "markdownDescription": "This permission set configures what kind of\noperations are available from the upload plugin.\n\n#### Granted Permissions\n\nAll operations are enabled by default.\n\n\n#### This default permission set includes:\n\n- `allow-upload`\n- `allow-download`" - } - ] } } } \ No newline at end of file diff --git a/plugins/websocket/permissions/schemas/schema.json b/plugins/websocket/permissions/schemas/schema.json index f89e81d17..7cc6cab1d 100644 --- a/plugins/websocket/permissions/schemas/schema.json +++ b/plugins/websocket/permissions/schemas/schema.json @@ -1,5 +1,5 @@ { - "$schema": "https://json-schema.org/draft/2020-12/schema", + "$schema": "http://json-schema.org/draft-07/schema#", "title": "PermissionFile", "description": "Permission file that can define a default permission, a set of permissions or a list of inlined permissions.", "type": "object", @@ -8,7 +8,7 @@ "description": "The default permission set for the plugin", "anyOf": [ { - "$ref": "#/$defs/DefaultPermission" + "$ref": "#/definitions/DefaultPermission" }, { "type": "null" @@ -19,19 +19,19 @@ "description": "A list of permissions sets defined", "type": "array", "items": { - "$ref": "#/$defs/PermissionSet" + "$ref": "#/definitions/PermissionSet" } }, "permission": { "description": "A list of inlined permissions", "type": "array", "items": { - "$ref": "#/$defs/Permission" + "$ref": "#/definitions/Permission" }, "default": [] } }, - "$defs": { + "definitions": { "DefaultPermission": { "description": "The default permission set of the plugin.\n\nWorks similarly to a permission with the \"default\" identifier.", "type": "object", @@ -80,7 +80,7 @@ "description": "All permissions this set contains.", "type": "array", "items": { - "$ref": "#/$defs/PermissionKind" + "type": "string" } } }, @@ -116,15 +116,23 @@ }, "commands": { "description": "Allowed or denied commands when using this permission.", - "$ref": "#/$defs/Commands", "default": { "allow": [], "deny": [] - } + }, + "allOf": [ + { + "$ref": "#/definitions/Commands" + } + ] }, "scope": { "description": "Allowed or denied scoped when using this permission.", - "$ref": "#/$defs/Scopes" + "allOf": [ + { + "$ref": "#/definitions/Scopes" + } + ] }, "platforms": { "description": "Target platforms this permission applies. By default all platforms are affected by this permission.", @@ -133,7 +141,7 @@ "null" ], "items": { - "$ref": "#/$defs/Target" + "$ref": "#/definitions/Target" } } }, @@ -174,7 +182,7 @@ "null" ], "items": { - "$ref": "#/$defs/Value" + "$ref": "#/definitions/Value" } }, "deny": { @@ -184,7 +192,7 @@ "null" ], "items": { - "$ref": "#/$defs/Value" + "$ref": "#/definitions/Value" } } } @@ -202,7 +210,11 @@ }, { "description": "Represents a valid ACL [`Number`].", - "$ref": "#/$defs/Number" + "allOf": [ + { + "$ref": "#/definitions/Number" + } + ] }, { "description": "Represents a [`String`].", @@ -212,14 +224,14 @@ "description": "Represents a list of other [`Value`]s.", "type": "array", "items": { - "$ref": "#/$defs/Value" + "$ref": "#/definitions/Value" } }, { "description": "Represents a map of [`String`] keys to [`Value`]s.", "type": "object", "additionalProperties": { - "$ref": "#/$defs/Value" + "$ref": "#/definitions/Value" } } ] @@ -268,41 +280,6 @@ "const": "iOS" } ] - }, - "PermissionKind": { - "type": "string", - "oneOf": [ - { - "description": "Enables the connect command without any pre-configured scope.", - "type": "string", - "const": "allow-connect", - "markdownDescription": "Enables the connect command without any pre-configured scope." - }, - { - "description": "Denies the connect command without any pre-configured scope.", - "type": "string", - "const": "deny-connect", - "markdownDescription": "Denies the connect command without any pre-configured scope." - }, - { - "description": "Enables the send command without any pre-configured scope.", - "type": "string", - "const": "allow-send", - "markdownDescription": "Enables the send command without any pre-configured scope." - }, - { - "description": "Denies the send command without any pre-configured scope.", - "type": "string", - "const": "deny-send", - "markdownDescription": "Denies the send command without any pre-configured scope." - }, - { - "description": "Allows connecting and sending data to a WebSocket server\n#### This default permission set includes:\n\n- `allow-connect`\n- `allow-send`", - "type": "string", - "const": "default", - "markdownDescription": "Allows connecting and sending data to a WebSocket server\n#### This default permission set includes:\n\n- `allow-connect`\n- `allow-send`" - } - ] } } } \ No newline at end of file diff --git a/plugins/window-state/permissions/schemas/schema.json b/plugins/window-state/permissions/schemas/schema.json index dc83b3481..7cc6cab1d 100644 --- a/plugins/window-state/permissions/schemas/schema.json +++ b/plugins/window-state/permissions/schemas/schema.json @@ -1,5 +1,5 @@ { - "$schema": "https://json-schema.org/draft/2020-12/schema", + "$schema": "http://json-schema.org/draft-07/schema#", "title": "PermissionFile", "description": "Permission file that can define a default permission, a set of permissions or a list of inlined permissions.", "type": "object", @@ -8,7 +8,7 @@ "description": "The default permission set for the plugin", "anyOf": [ { - "$ref": "#/$defs/DefaultPermission" + "$ref": "#/definitions/DefaultPermission" }, { "type": "null" @@ -19,19 +19,19 @@ "description": "A list of permissions sets defined", "type": "array", "items": { - "$ref": "#/$defs/PermissionSet" + "$ref": "#/definitions/PermissionSet" } }, "permission": { "description": "A list of inlined permissions", "type": "array", "items": { - "$ref": "#/$defs/Permission" + "$ref": "#/definitions/Permission" }, "default": [] } }, - "$defs": { + "definitions": { "DefaultPermission": { "description": "The default permission set of the plugin.\n\nWorks similarly to a permission with the \"default\" identifier.", "type": "object", @@ -80,7 +80,7 @@ "description": "All permissions this set contains.", "type": "array", "items": { - "$ref": "#/$defs/PermissionKind" + "type": "string" } } }, @@ -116,15 +116,23 @@ }, "commands": { "description": "Allowed or denied commands when using this permission.", - "$ref": "#/$defs/Commands", "default": { "allow": [], "deny": [] - } + }, + "allOf": [ + { + "$ref": "#/definitions/Commands" + } + ] }, "scope": { "description": "Allowed or denied scoped when using this permission.", - "$ref": "#/$defs/Scopes" + "allOf": [ + { + "$ref": "#/definitions/Scopes" + } + ] }, "platforms": { "description": "Target platforms this permission applies. By default all platforms are affected by this permission.", @@ -133,7 +141,7 @@ "null" ], "items": { - "$ref": "#/$defs/Target" + "$ref": "#/definitions/Target" } } }, @@ -174,7 +182,7 @@ "null" ], "items": { - "$ref": "#/$defs/Value" + "$ref": "#/definitions/Value" } }, "deny": { @@ -184,7 +192,7 @@ "null" ], "items": { - "$ref": "#/$defs/Value" + "$ref": "#/definitions/Value" } } } @@ -202,7 +210,11 @@ }, { "description": "Represents a valid ACL [`Number`].", - "$ref": "#/$defs/Number" + "allOf": [ + { + "$ref": "#/definitions/Number" + } + ] }, { "description": "Represents a [`String`].", @@ -212,14 +224,14 @@ "description": "Represents a list of other [`Value`]s.", "type": "array", "items": { - "$ref": "#/$defs/Value" + "$ref": "#/definitions/Value" } }, { "description": "Represents a map of [`String`] keys to [`Value`]s.", "type": "object", "additionalProperties": { - "$ref": "#/$defs/Value" + "$ref": "#/definitions/Value" } } ] @@ -268,53 +280,6 @@ "const": "iOS" } ] - }, - "PermissionKind": { - "type": "string", - "oneOf": [ - { - "description": "Enables the filename command without any pre-configured scope.", - "type": "string", - "const": "allow-filename", - "markdownDescription": "Enables the filename command without any pre-configured scope." - }, - { - "description": "Denies the filename command without any pre-configured scope.", - "type": "string", - "const": "deny-filename", - "markdownDescription": "Denies the filename command without any pre-configured scope." - }, - { - "description": "Enables the restore_state command without any pre-configured scope.", - "type": "string", - "const": "allow-restore-state", - "markdownDescription": "Enables the restore_state command without any pre-configured scope." - }, - { - "description": "Denies the restore_state command without any pre-configured scope.", - "type": "string", - "const": "deny-restore-state", - "markdownDescription": "Denies the restore_state command without any pre-configured scope." - }, - { - "description": "Enables the save_window_state command without any pre-configured scope.", - "type": "string", - "const": "allow-save-window-state", - "markdownDescription": "Enables the save_window_state command without any pre-configured scope." - }, - { - "description": "Denies the save_window_state command without any pre-configured scope.", - "type": "string", - "const": "deny-save-window-state", - "markdownDescription": "Denies the save_window_state command without any pre-configured scope." - }, - { - "description": "This permission set configures what kind of\noperations are available from the window state plugin.\n\n#### Granted Permissions\n\nAll operations are enabled by default.\n\n\n#### This default permission set includes:\n\n- `allow-filename`\n- `allow-restore-state`\n- `allow-save-window-state`", - "type": "string", - "const": "default", - "markdownDescription": "This permission set configures what kind of\noperations are available from the window state plugin.\n\n#### Granted Permissions\n\nAll operations are enabled by default.\n\n\n#### This default permission set includes:\n\n- `allow-filename`\n- `allow-restore-state`\n- `allow-save-window-state`" - } - ] } } } \ No newline at end of file