forked from akai/readest
7185dca1a2
* feat(reader): add save/share button to image gallery toolbar Add a button to the top-right toolbar of the fullscreen image viewer that saves the currently viewed image to the device. It uses the native or web Share flow where available (iOS/Android/macOS, navigator.share) and falls back to a save dialog or browser download otherwise, reusing the existing export path via appService.saveFile. The button icon and label reflect the active flow (share vs save). Adds dataUrlToBytes/imageExtensionFromMime helpers, unit and component tests, and translations for the new strings across all locales. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> * fix(share): write shareable file to a Temp subdirectory to avoid 0-byte share On Android, Tauri's Temp dir is the app cache dir, and the sharekit plugin copies the shared file to <cacheDir>/<name> before firing the share intent. When saveFile wrote the shareable file to the Temp root, that copy became a copy onto itself whose output stream truncated the source to 0 bytes, so the shared image (and any shared export) arrived as a 0 KB file. Write the file to a Temp subdirectory instead so the plugin's copy has a distinct source. Verified on a Xiaomi device: sharing a file in the Temp root truncated it to 0 bytes, while sharing from the subdirectory produced a real, non-empty copy. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> * feat(reader): save image to system gallery on Android The Android share sheet cannot save an image to a file (no file manager registers as an ACTION_SEND target), so the Save Image button now writes the image straight into the system photo gallery via MediaStore. It lands in Pictures/Readest, visible in Gallery and the Files app, with no picker and no storage permission on Android 10+. Adds a save_image_to_gallery command to the native-bridge plugin (Rust + Kotlin MediaStore insert) and an appService.saveImageToGallery method. On Android the Save button uses it; iOS/macOS/desktop/web keep the existing share/export flow, and the button label/icon reflect the actual action. Also includes local agent memory notes that were staged alongside. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
798 lines
36 KiB
JSON
798 lines
36 KiB
JSON
{
|
|
"$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",
|
|
"properties": {
|
|
"default": {
|
|
"description": "The default permission set for the plugin",
|
|
"anyOf": [
|
|
{
|
|
"$ref": "#/definitions/DefaultPermission"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
]
|
|
},
|
|
"set": {
|
|
"description": "A list of permissions sets defined",
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/PermissionSet"
|
|
}
|
|
},
|
|
"permission": {
|
|
"description": "A list of inlined permissions",
|
|
"default": [],
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Permission"
|
|
}
|
|
}
|
|
},
|
|
"definitions": {
|
|
"DefaultPermission": {
|
|
"description": "The default permission set of the plugin.\n\nWorks similarly to a permission with the \"default\" identifier.",
|
|
"type": "object",
|
|
"required": [
|
|
"permissions"
|
|
],
|
|
"properties": {
|
|
"version": {
|
|
"description": "The version of the permission.",
|
|
"type": [
|
|
"integer",
|
|
"null"
|
|
],
|
|
"format": "uint64",
|
|
"minimum": 1.0
|
|
},
|
|
"description": {
|
|
"description": "Human-readable description of what the permission does. Tauri convention is to use `<h4>` headings in markdown content for Tauri documentation generation purposes.",
|
|
"type": [
|
|
"string",
|
|
"null"
|
|
]
|
|
},
|
|
"permissions": {
|
|
"description": "All permissions this set contains.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"PermissionSet": {
|
|
"description": "A set of direct permissions grouped together under a new name.",
|
|
"type": "object",
|
|
"required": [
|
|
"description",
|
|
"identifier",
|
|
"permissions"
|
|
],
|
|
"properties": {
|
|
"identifier": {
|
|
"description": "A unique identifier for the permission.",
|
|
"type": "string"
|
|
},
|
|
"description": {
|
|
"description": "Human-readable description of what the permission does.",
|
|
"type": "string"
|
|
},
|
|
"permissions": {
|
|
"description": "All permissions this set contains.",
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/PermissionKind"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"Permission": {
|
|
"description": "Descriptions of explicit privileges of commands.\n\nIt can enable commands to be accessible in the frontend of the application.\n\nIf the scope is defined it can be used to fine grain control the access of individual or multiple commands.",
|
|
"type": "object",
|
|
"required": [
|
|
"identifier"
|
|
],
|
|
"properties": {
|
|
"version": {
|
|
"description": "The version of the permission.",
|
|
"type": [
|
|
"integer",
|
|
"null"
|
|
],
|
|
"format": "uint64",
|
|
"minimum": 1.0
|
|
},
|
|
"identifier": {
|
|
"description": "A unique identifier for the permission.",
|
|
"type": "string"
|
|
},
|
|
"description": {
|
|
"description": "Human-readable description of what the permission does. Tauri internal convention is to use `<h4>` headings in markdown content for Tauri documentation generation purposes.",
|
|
"type": [
|
|
"string",
|
|
"null"
|
|
]
|
|
},
|
|
"commands": {
|
|
"description": "Allowed or denied commands when using this permission.",
|
|
"default": {
|
|
"allow": [],
|
|
"deny": []
|
|
},
|
|
"allOf": [
|
|
{
|
|
"$ref": "#/definitions/Commands"
|
|
}
|
|
]
|
|
},
|
|
"scope": {
|
|
"description": "Allowed or denied scoped when using this permission.",
|
|
"allOf": [
|
|
{
|
|
"$ref": "#/definitions/Scopes"
|
|
}
|
|
]
|
|
},
|
|
"platforms": {
|
|
"description": "Target platforms this permission applies. By default all platforms are affected by this permission.",
|
|
"type": [
|
|
"array",
|
|
"null"
|
|
],
|
|
"items": {
|
|
"$ref": "#/definitions/Target"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"Commands": {
|
|
"description": "Allowed and denied commands inside a permission.\n\nIf two commands clash inside of `allow` and `deny`, it should be denied by default.",
|
|
"type": "object",
|
|
"properties": {
|
|
"allow": {
|
|
"description": "Allowed command.",
|
|
"default": [],
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"deny": {
|
|
"description": "Denied command, which takes priority.",
|
|
"default": [],
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"Scopes": {
|
|
"description": "An argument for fine grained behavior control of Tauri commands.\n\nIt can be of any serde serializable type and is used to allow or prevent certain actions inside a Tauri command. The configured scope is passed to the command and will be enforced by the command implementation.\n\n## Example\n\n```json { \"allow\": [{ \"path\": \"$HOME/**\" }], \"deny\": [{ \"path\": \"$HOME/secret.txt\" }] } ```",
|
|
"type": "object",
|
|
"properties": {
|
|
"allow": {
|
|
"description": "Data that defines what is allowed by the scope.",
|
|
"type": [
|
|
"array",
|
|
"null"
|
|
],
|
|
"items": {
|
|
"$ref": "#/definitions/Value"
|
|
}
|
|
},
|
|
"deny": {
|
|
"description": "Data that defines what is denied by the scope. This should be prioritized by validation logic.",
|
|
"type": [
|
|
"array",
|
|
"null"
|
|
],
|
|
"items": {
|
|
"$ref": "#/definitions/Value"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"Value": {
|
|
"description": "All supported ACL values.",
|
|
"anyOf": [
|
|
{
|
|
"description": "Represents a null JSON value.",
|
|
"type": "null"
|
|
},
|
|
{
|
|
"description": "Represents a [`bool`].",
|
|
"type": "boolean"
|
|
},
|
|
{
|
|
"description": "Represents a valid ACL [`Number`].",
|
|
"allOf": [
|
|
{
|
|
"$ref": "#/definitions/Number"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"description": "Represents a [`String`].",
|
|
"type": "string"
|
|
},
|
|
{
|
|
"description": "Represents a list of other [`Value`]s.",
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Value"
|
|
}
|
|
},
|
|
{
|
|
"description": "Represents a map of [`String`] keys to [`Value`]s.",
|
|
"type": "object",
|
|
"additionalProperties": {
|
|
"$ref": "#/definitions/Value"
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"Number": {
|
|
"description": "A valid ACL number.",
|
|
"anyOf": [
|
|
{
|
|
"description": "Represents an [`i64`].",
|
|
"type": "integer",
|
|
"format": "int64"
|
|
},
|
|
{
|
|
"description": "Represents a [`f64`].",
|
|
"type": "number",
|
|
"format": "double"
|
|
}
|
|
]
|
|
},
|
|
"Target": {
|
|
"description": "Platform target.",
|
|
"oneOf": [
|
|
{
|
|
"description": "MacOS.",
|
|
"type": "string",
|
|
"enum": [
|
|
"macOS"
|
|
]
|
|
},
|
|
{
|
|
"description": "Windows.",
|
|
"type": "string",
|
|
"enum": [
|
|
"windows"
|
|
]
|
|
},
|
|
{
|
|
"description": "Linux.",
|
|
"type": "string",
|
|
"enum": [
|
|
"linux"
|
|
]
|
|
},
|
|
{
|
|
"description": "Android.",
|
|
"type": "string",
|
|
"enum": [
|
|
"android"
|
|
]
|
|
},
|
|
{
|
|
"description": "iOS.",
|
|
"type": "string",
|
|
"enum": [
|
|
"iOS"
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"PermissionKind": {
|
|
"type": "string",
|
|
"oneOf": [
|
|
{
|
|
"description": "Enables the auth_with_custom_tab command without any pre-configured scope.",
|
|
"type": "string",
|
|
"const": "allow-auth-with-custom-tab",
|
|
"markdownDescription": "Enables the auth_with_custom_tab command without any pre-configured scope."
|
|
},
|
|
{
|
|
"description": "Denies the auth_with_custom_tab command without any pre-configured scope.",
|
|
"type": "string",
|
|
"const": "deny-auth-with-custom-tab",
|
|
"markdownDescription": "Denies the auth_with_custom_tab command without any pre-configured scope."
|
|
},
|
|
{
|
|
"description": "Enables the auth_with_safari command without any pre-configured scope.",
|
|
"type": "string",
|
|
"const": "allow-auth-with-safari",
|
|
"markdownDescription": "Enables the auth_with_safari command without any pre-configured scope."
|
|
},
|
|
{
|
|
"description": "Denies the auth_with_safari command without any pre-configured scope.",
|
|
"type": "string",
|
|
"const": "deny-auth-with-safari",
|
|
"markdownDescription": "Denies the auth_with_safari 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 checkPermissions command without any pre-configured scope.",
|
|
"type": "string",
|
|
"const": "allow-checkPermissions",
|
|
"markdownDescription": "Enables the checkPermissions command without any pre-configured scope."
|
|
},
|
|
{
|
|
"description": "Denies the checkPermissions command without any pre-configured scope.",
|
|
"type": "string",
|
|
"const": "deny-checkPermissions",
|
|
"markdownDescription": "Denies the checkPermissions 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 clear_lookup_dictionary command without any pre-configured scope.",
|
|
"type": "string",
|
|
"const": "allow-clear-lookup-dictionary",
|
|
"markdownDescription": "Enables the clear_lookup_dictionary command without any pre-configured scope."
|
|
},
|
|
{
|
|
"description": "Denies the clear_lookup_dictionary command without any pre-configured scope.",
|
|
"type": "string",
|
|
"const": "deny-clear-lookup-dictionary",
|
|
"markdownDescription": "Denies the clear_lookup_dictionary command without any pre-configured scope."
|
|
},
|
|
{
|
|
"description": "Enables the clear_sync_passphrase command without any pre-configured scope.",
|
|
"type": "string",
|
|
"const": "allow-clear-sync-passphrase",
|
|
"markdownDescription": "Enables the clear_sync_passphrase command without any pre-configured scope."
|
|
},
|
|
{
|
|
"description": "Denies the clear_sync_passphrase command without any pre-configured scope.",
|
|
"type": "string",
|
|
"const": "deny-clear-sync-passphrase",
|
|
"markdownDescription": "Denies the clear_sync_passphrase command without any pre-configured scope."
|
|
},
|
|
{
|
|
"description": "Enables the clip_url command without any pre-configured scope.",
|
|
"type": "string",
|
|
"const": "allow-clip-url",
|
|
"markdownDescription": "Enables the clip_url command without any pre-configured scope."
|
|
},
|
|
{
|
|
"description": "Denies the clip_url command without any pre-configured scope.",
|
|
"type": "string",
|
|
"const": "deny-clip-url",
|
|
"markdownDescription": "Denies the clip_url command without any pre-configured scope."
|
|
},
|
|
{
|
|
"description": "Enables the copy_uri_to_path command without any pre-configured scope.",
|
|
"type": "string",
|
|
"const": "allow-copy-uri-to-path",
|
|
"markdownDescription": "Enables the copy_uri_to_path command without any pre-configured scope."
|
|
},
|
|
{
|
|
"description": "Denies the copy_uri_to_path command without any pre-configured scope.",
|
|
"type": "string",
|
|
"const": "deny-copy-uri-to-path",
|
|
"markdownDescription": "Denies the copy_uri_to_path command without any pre-configured scope."
|
|
},
|
|
{
|
|
"description": "Enables the get_external_sdcard_path command without any pre-configured scope.",
|
|
"type": "string",
|
|
"const": "allow-get-external-sdcard-path",
|
|
"markdownDescription": "Enables the get_external_sdcard_path command without any pre-configured scope."
|
|
},
|
|
{
|
|
"description": "Denies the get_external_sdcard_path command without any pre-configured scope.",
|
|
"type": "string",
|
|
"const": "deny-get-external-sdcard-path",
|
|
"markdownDescription": "Denies the get_external_sdcard_path command without any pre-configured scope."
|
|
},
|
|
{
|
|
"description": "Enables the get_lookup_dictionary command without any pre-configured scope.",
|
|
"type": "string",
|
|
"const": "allow-get-lookup-dictionary",
|
|
"markdownDescription": "Enables the get_lookup_dictionary command without any pre-configured scope."
|
|
},
|
|
{
|
|
"description": "Denies the get_lookup_dictionary command without any pre-configured scope.",
|
|
"type": "string",
|
|
"const": "deny-get-lookup-dictionary",
|
|
"markdownDescription": "Denies the get_lookup_dictionary command without any pre-configured scope."
|
|
},
|
|
{
|
|
"description": "Enables the get_safe_area_insets command without any pre-configured scope.",
|
|
"type": "string",
|
|
"const": "allow-get-safe-area-insets",
|
|
"markdownDescription": "Enables the get_safe_area_insets command without any pre-configured scope."
|
|
},
|
|
{
|
|
"description": "Denies the get_safe_area_insets command without any pre-configured scope.",
|
|
"type": "string",
|
|
"const": "deny-get-safe-area-insets",
|
|
"markdownDescription": "Denies the get_safe_area_insets command without any pre-configured scope."
|
|
},
|
|
{
|
|
"description": "Enables the get_screen_brightness command without any pre-configured scope.",
|
|
"type": "string",
|
|
"const": "allow-get-screen-brightness",
|
|
"markdownDescription": "Enables the get_screen_brightness command without any pre-configured scope."
|
|
},
|
|
{
|
|
"description": "Denies the get_screen_brightness command without any pre-configured scope.",
|
|
"type": "string",
|
|
"const": "deny-get-screen-brightness",
|
|
"markdownDescription": "Denies the get_screen_brightness command without any pre-configured scope."
|
|
},
|
|
{
|
|
"description": "Enables the get_status_bar_height command without any pre-configured scope.",
|
|
"type": "string",
|
|
"const": "allow-get-status-bar-height",
|
|
"markdownDescription": "Enables the get_status_bar_height command without any pre-configured scope."
|
|
},
|
|
{
|
|
"description": "Denies the get_status_bar_height command without any pre-configured scope.",
|
|
"type": "string",
|
|
"const": "deny-get-status-bar-height",
|
|
"markdownDescription": "Denies the get_status_bar_height command without any pre-configured scope."
|
|
},
|
|
{
|
|
"description": "Enables the get_storefront_region_code command without any pre-configured scope.",
|
|
"type": "string",
|
|
"const": "allow-get-storefront-region-code",
|
|
"markdownDescription": "Enables the get_storefront_region_code command without any pre-configured scope."
|
|
},
|
|
{
|
|
"description": "Denies the get_storefront_region_code command without any pre-configured scope.",
|
|
"type": "string",
|
|
"const": "deny-get-storefront-region-code",
|
|
"markdownDescription": "Denies the get_storefront_region_code command without any pre-configured scope."
|
|
},
|
|
{
|
|
"description": "Enables the get_sync_passphrase command without any pre-configured scope.",
|
|
"type": "string",
|
|
"const": "allow-get-sync-passphrase",
|
|
"markdownDescription": "Enables the get_sync_passphrase command without any pre-configured scope."
|
|
},
|
|
{
|
|
"description": "Denies the get_sync_passphrase command without any pre-configured scope.",
|
|
"type": "string",
|
|
"const": "deny-get-sync-passphrase",
|
|
"markdownDescription": "Denies the get_sync_passphrase command without any pre-configured scope."
|
|
},
|
|
{
|
|
"description": "Enables the get_sys_fonts_list command without any pre-configured scope.",
|
|
"type": "string",
|
|
"const": "allow-get-sys-fonts-list",
|
|
"markdownDescription": "Enables the get_sys_fonts_list command without any pre-configured scope."
|
|
},
|
|
{
|
|
"description": "Denies the get_sys_fonts_list command without any pre-configured scope.",
|
|
"type": "string",
|
|
"const": "deny-get-sys-fonts-list",
|
|
"markdownDescription": "Denies the get_sys_fonts_list command without any pre-configured scope."
|
|
},
|
|
{
|
|
"description": "Enables the get_system_color_scheme command without any pre-configured scope.",
|
|
"type": "string",
|
|
"const": "allow-get-system-color-scheme",
|
|
"markdownDescription": "Enables the get_system_color_scheme command without any pre-configured scope."
|
|
},
|
|
{
|
|
"description": "Denies the get_system_color_scheme command without any pre-configured scope.",
|
|
"type": "string",
|
|
"const": "deny-get-system-color-scheme",
|
|
"markdownDescription": "Denies the get_system_color_scheme command without any pre-configured scope."
|
|
},
|
|
{
|
|
"description": "Enables the iap_fetch_products command without any pre-configured scope.",
|
|
"type": "string",
|
|
"const": "allow-iap-fetch-products",
|
|
"markdownDescription": "Enables the iap_fetch_products command without any pre-configured scope."
|
|
},
|
|
{
|
|
"description": "Denies the iap_fetch_products command without any pre-configured scope.",
|
|
"type": "string",
|
|
"const": "deny-iap-fetch-products",
|
|
"markdownDescription": "Denies the iap_fetch_products command without any pre-configured scope."
|
|
},
|
|
{
|
|
"description": "Enables the iap_initialize command without any pre-configured scope.",
|
|
"type": "string",
|
|
"const": "allow-iap-initialize",
|
|
"markdownDescription": "Enables the iap_initialize command without any pre-configured scope."
|
|
},
|
|
{
|
|
"description": "Denies the iap_initialize command without any pre-configured scope.",
|
|
"type": "string",
|
|
"const": "deny-iap-initialize",
|
|
"markdownDescription": "Denies the iap_initialize command without any pre-configured scope."
|
|
},
|
|
{
|
|
"description": "Enables the iap_is_available command without any pre-configured scope.",
|
|
"type": "string",
|
|
"const": "allow-iap-is-available",
|
|
"markdownDescription": "Enables the iap_is_available command without any pre-configured scope."
|
|
},
|
|
{
|
|
"description": "Denies the iap_is_available command without any pre-configured scope.",
|
|
"type": "string",
|
|
"const": "deny-iap-is-available",
|
|
"markdownDescription": "Denies the iap_is_available command without any pre-configured scope."
|
|
},
|
|
{
|
|
"description": "Enables the iap_purchase_product command without any pre-configured scope.",
|
|
"type": "string",
|
|
"const": "allow-iap-purchase-product",
|
|
"markdownDescription": "Enables the iap_purchase_product command without any pre-configured scope."
|
|
},
|
|
{
|
|
"description": "Denies the iap_purchase_product command without any pre-configured scope.",
|
|
"type": "string",
|
|
"const": "deny-iap-purchase-product",
|
|
"markdownDescription": "Denies the iap_purchase_product command without any pre-configured scope."
|
|
},
|
|
{
|
|
"description": "Enables the iap_restore_purchases command without any pre-configured scope.",
|
|
"type": "string",
|
|
"const": "allow-iap-restore-purchases",
|
|
"markdownDescription": "Enables the iap_restore_purchases command without any pre-configured scope."
|
|
},
|
|
{
|
|
"description": "Denies the iap_restore_purchases command without any pre-configured scope.",
|
|
"type": "string",
|
|
"const": "deny-iap-restore-purchases",
|
|
"markdownDescription": "Denies the iap_restore_purchases command without any pre-configured scope."
|
|
},
|
|
{
|
|
"description": "Enables the install_package command without any pre-configured scope.",
|
|
"type": "string",
|
|
"const": "allow-install-package",
|
|
"markdownDescription": "Enables the install_package command without any pre-configured scope."
|
|
},
|
|
{
|
|
"description": "Denies the install_package command without any pre-configured scope.",
|
|
"type": "string",
|
|
"const": "deny-install-package",
|
|
"markdownDescription": "Denies the install_package command without any pre-configured scope."
|
|
},
|
|
{
|
|
"description": "Enables the intercept_keys command without any pre-configured scope.",
|
|
"type": "string",
|
|
"const": "allow-intercept-keys",
|
|
"markdownDescription": "Enables the intercept_keys command without any pre-configured scope."
|
|
},
|
|
{
|
|
"description": "Denies the intercept_keys command without any pre-configured scope.",
|
|
"type": "string",
|
|
"const": "deny-intercept-keys",
|
|
"markdownDescription": "Denies the intercept_keys command without any pre-configured scope."
|
|
},
|
|
{
|
|
"description": "Enables the is_sync_keychain_available command without any pre-configured scope.",
|
|
"type": "string",
|
|
"const": "allow-is-sync-keychain-available",
|
|
"markdownDescription": "Enables the is_sync_keychain_available command without any pre-configured scope."
|
|
},
|
|
{
|
|
"description": "Denies the is_sync_keychain_available command without any pre-configured scope.",
|
|
"type": "string",
|
|
"const": "deny-is-sync-keychain-available",
|
|
"markdownDescription": "Denies the is_sync_keychain_available command without any pre-configured scope."
|
|
},
|
|
{
|
|
"description": "Enables the lock_screen_orientation command without any pre-configured scope.",
|
|
"type": "string",
|
|
"const": "allow-lock-screen-orientation",
|
|
"markdownDescription": "Enables the lock_screen_orientation command without any pre-configured scope."
|
|
},
|
|
{
|
|
"description": "Denies the lock_screen_orientation command without any pre-configured scope.",
|
|
"type": "string",
|
|
"const": "deny-lock-screen-orientation",
|
|
"markdownDescription": "Denies the lock_screen_orientation command without any pre-configured scope."
|
|
},
|
|
{
|
|
"description": "Enables the open_external_url command without any pre-configured scope.",
|
|
"type": "string",
|
|
"const": "allow-open-external-url",
|
|
"markdownDescription": "Enables the open_external_url command without any pre-configured scope."
|
|
},
|
|
{
|
|
"description": "Denies the open_external_url command without any pre-configured scope.",
|
|
"type": "string",
|
|
"const": "deny-open-external-url",
|
|
"markdownDescription": "Denies the open_external_url 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_listener command without any pre-configured scope.",
|
|
"type": "string",
|
|
"const": "allow-remove-listener",
|
|
"markdownDescription": "Enables the remove_listener command without any pre-configured scope."
|
|
},
|
|
{
|
|
"description": "Denies the remove_listener command without any pre-configured scope.",
|
|
"type": "string",
|
|
"const": "deny-remove-listener",
|
|
"markdownDescription": "Denies the remove_listener 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 requestPermissions command without any pre-configured scope.",
|
|
"type": "string",
|
|
"const": "allow-requestPermissions",
|
|
"markdownDescription": "Enables the requestPermissions command without any pre-configured scope."
|
|
},
|
|
{
|
|
"description": "Denies the requestPermissions command without any pre-configured scope.",
|
|
"type": "string",
|
|
"const": "deny-requestPermissions",
|
|
"markdownDescription": "Denies the requestPermissions command without any pre-configured scope."
|
|
},
|
|
{
|
|
"description": "Enables the request_manage_storage_permission command without any pre-configured scope.",
|
|
"type": "string",
|
|
"const": "allow-request-manage-storage-permission",
|
|
"markdownDescription": "Enables the request_manage_storage_permission command without any pre-configured scope."
|
|
},
|
|
{
|
|
"description": "Denies the request_manage_storage_permission command without any pre-configured scope.",
|
|
"type": "string",
|
|
"const": "deny-request-manage-storage-permission",
|
|
"markdownDescription": "Denies the request_manage_storage_permission 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 save_image_to_gallery command without any pre-configured scope.",
|
|
"type": "string",
|
|
"const": "allow-save-image-to-gallery",
|
|
"markdownDescription": "Enables the save_image_to_gallery command without any pre-configured scope."
|
|
},
|
|
{
|
|
"description": "Denies the save_image_to_gallery command without any pre-configured scope.",
|
|
"type": "string",
|
|
"const": "deny-save-image-to-gallery",
|
|
"markdownDescription": "Denies the save_image_to_gallery command without any pre-configured scope."
|
|
},
|
|
{
|
|
"description": "Enables the select_directory command without any pre-configured scope.",
|
|
"type": "string",
|
|
"const": "allow-select-directory",
|
|
"markdownDescription": "Enables the select_directory command without any pre-configured scope."
|
|
},
|
|
{
|
|
"description": "Denies the select_directory command without any pre-configured scope.",
|
|
"type": "string",
|
|
"const": "deny-select-directory",
|
|
"markdownDescription": "Denies the select_directory command without any pre-configured scope."
|
|
},
|
|
{
|
|
"description": "Enables the set_screen_brightness command without any pre-configured scope.",
|
|
"type": "string",
|
|
"const": "allow-set-screen-brightness",
|
|
"markdownDescription": "Enables the set_screen_brightness command without any pre-configured scope."
|
|
},
|
|
{
|
|
"description": "Denies the set_screen_brightness command without any pre-configured scope.",
|
|
"type": "string",
|
|
"const": "deny-set-screen-brightness",
|
|
"markdownDescription": "Denies the set_screen_brightness command without any pre-configured scope."
|
|
},
|
|
{
|
|
"description": "Enables the set_sync_passphrase command without any pre-configured scope.",
|
|
"type": "string",
|
|
"const": "allow-set-sync-passphrase",
|
|
"markdownDescription": "Enables the set_sync_passphrase command without any pre-configured scope."
|
|
},
|
|
{
|
|
"description": "Denies the set_sync_passphrase command without any pre-configured scope.",
|
|
"type": "string",
|
|
"const": "deny-set-sync-passphrase",
|
|
"markdownDescription": "Denies the set_sync_passphrase command without any pre-configured scope."
|
|
},
|
|
{
|
|
"description": "Enables the set_system_ui_visibility command without any pre-configured scope.",
|
|
"type": "string",
|
|
"const": "allow-set-system-ui-visibility",
|
|
"markdownDescription": "Enables the set_system_ui_visibility command without any pre-configured scope."
|
|
},
|
|
{
|
|
"description": "Denies the set_system_ui_visibility command without any pre-configured scope.",
|
|
"type": "string",
|
|
"const": "deny-set-system-ui-visibility",
|
|
"markdownDescription": "Denies the set_system_ui_visibility command without any pre-configured scope."
|
|
},
|
|
{
|
|
"description": "Enables the show_lookup_popover command without any pre-configured scope.",
|
|
"type": "string",
|
|
"const": "allow-show-lookup-popover",
|
|
"markdownDescription": "Enables the show_lookup_popover command without any pre-configured scope."
|
|
},
|
|
{
|
|
"description": "Denies the show_lookup_popover command without any pre-configured scope.",
|
|
"type": "string",
|
|
"const": "deny-show-lookup-popover",
|
|
"markdownDescription": "Denies the show_lookup_popover command without any pre-configured scope."
|
|
},
|
|
{
|
|
"description": "Enables the use_background_audio command without any pre-configured scope.",
|
|
"type": "string",
|
|
"const": "allow-use-background-audio",
|
|
"markdownDescription": "Enables the use_background_audio command without any pre-configured scope."
|
|
},
|
|
{
|
|
"description": "Denies the use_background_audio command without any pre-configured scope.",
|
|
"type": "string",
|
|
"const": "deny-use-background-audio",
|
|
"markdownDescription": "Denies the use_background_audio command without any pre-configured scope."
|
|
},
|
|
{
|
|
"description": "Default permissions for the plugin\n#### This default permission set includes:\n\n- `allow-auth-with-safari`\n- `allow-auth-with-custom-tab`\n- `allow-copy-uri-to-path`\n- `allow-save-image-to-gallery`\n- `allow-use-background-audio`\n- `allow-install-package`\n- `allow-set-system-ui-visibility`\n- `allow-get-status-bar-height`\n- `allow-get-sys-fonts-list`\n- `allow-intercept-keys`\n- `allow-lock-screen-orientation`\n- `allow-iap-is-available`\n- `allow-iap-initialize`\n- `allow-iap-fetch-products`\n- `allow-iap-purchase-product`\n- `allow-iap-restore-purchases`\n- `allow-get-system-color-scheme`\n- `allow-get-safe-area-insets`\n- `allow-get-screen-brightness`\n- `allow-set-screen-brightness`\n- `allow-get-external-sdcard-path`\n- `allow-open-external-url`\n- `allow-show-lookup-popover`\n- `allow-get-lookup-dictionary`\n- `allow-clear-lookup-dictionary`\n- `allow-select-directory`\n- `allow-get-storefront-region-code`\n- `allow-request-manage-storage-permission`\n- `allow-register-listener`\n- `allow-remove-listener`\n- `allow-check-permissions`\n- `allow-request-permissions`\n- `allow-checkPermissions`\n- `allow-requestPermissions`\n- `allow-set-sync-passphrase`\n- `allow-get-sync-passphrase`\n- `allow-clear-sync-passphrase`\n- `allow-is-sync-keychain-available`",
|
|
"type": "string",
|
|
"const": "default",
|
|
"markdownDescription": "Default permissions for the plugin\n#### This default permission set includes:\n\n- `allow-auth-with-safari`\n- `allow-auth-with-custom-tab`\n- `allow-copy-uri-to-path`\n- `allow-save-image-to-gallery`\n- `allow-use-background-audio`\n- `allow-install-package`\n- `allow-set-system-ui-visibility`\n- `allow-get-status-bar-height`\n- `allow-get-sys-fonts-list`\n- `allow-intercept-keys`\n- `allow-lock-screen-orientation`\n- `allow-iap-is-available`\n- `allow-iap-initialize`\n- `allow-iap-fetch-products`\n- `allow-iap-purchase-product`\n- `allow-iap-restore-purchases`\n- `allow-get-system-color-scheme`\n- `allow-get-safe-area-insets`\n- `allow-get-screen-brightness`\n- `allow-set-screen-brightness`\n- `allow-get-external-sdcard-path`\n- `allow-open-external-url`\n- `allow-show-lookup-popover`\n- `allow-get-lookup-dictionary`\n- `allow-clear-lookup-dictionary`\n- `allow-select-directory`\n- `allow-get-storefront-region-code`\n- `allow-request-manage-storage-permission`\n- `allow-register-listener`\n- `allow-remove-listener`\n- `allow-check-permissions`\n- `allow-request-permissions`\n- `allow-checkPermissions`\n- `allow-requestPermissions`\n- `allow-set-sync-passphrase`\n- `allow-get-sync-passphrase`\n- `allow-clear-sync-passphrase`\n- `allow-is-sync-keychain-available`"
|
|
}
|
|
]
|
|
}
|
|
}
|
|
} |