- 添加项目图标文件(app-icon.png、各平台图标) - 配置开发环境文件(.env、.nvmrc、.npmrc) - 添加静态资源文件(背景图片、字体、音频) - 初始化Tauri后端结构(build.rs、main.rs、模块文件) - 配置前端项目结构(TypeScript、Vue组件、样式) - 添加Node.js API服务基础结构 - 配置构建和开发工具(vite、prettier、gitignore)
4903 lines
201 KiB
JSON
4903 lines
201 KiB
JSON
{
|
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
"title": "CapabilityFile",
|
|
"description": "能力文件中接受的能力格式。",
|
|
"anyOf": [
|
|
{
|
|
"description": "单个能力。",
|
|
"allOf": [
|
|
{
|
|
"$ref": "#/definitions/Capability"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"description": "能力列表。",
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Capability"
|
|
}
|
|
},
|
|
{
|
|
"description": "能力列表。",
|
|
"type": "object",
|
|
"required": ["capabilities"],
|
|
"properties": {
|
|
"capabilities": {
|
|
"description": "能力列表。",
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Capability"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"definitions": {
|
|
"Capability": {
|
|
"description": "开发者可以使用的一种分组和边界机制,用于隔离对 IPC 层的访问。\n\n它控制应用程序窗口和 webview 对 Tauri 核心、应用程序或插件命令的细粒度访问。如果 webview 或其窗口不匹配任何能力,则它根本无法访问 IPC 层。\n\n可以这样做来创建窗口组,基于它们所需的系统访问,这可以减少低权限窗口中前端漏洞的影响。窗口可以通过精确名称(例如 `main-window`)或 glob 模式(如 `*` 或 `admin-*`)添加到能力。一个窗口可以没有、一个或多个关联的能力。\n\n## 示例\n\n```json { \"identifier\": \"main-user-files-write\", \"description\": \"此能力允许 macOS 和 Windows 上的 `main` 窗口访问与 `filesystem` 写入相关的命令和 `dialog` 命令,以实现对用户选择文件的编程访问。\", \"windows\": [ \"main\" ], \"permissions\": [ \"core:default\", \"dialog:open\", { \"identifier\": \"fs:allow-write-text-file\", \"allow\": [{ \"path\": \"$HOME/test.txt\" }] }, ], \"platforms\": [\"macOS\",\"windows\"] } ```",
|
|
"type": "object",
|
|
"required": ["identifier", "permissions"],
|
|
"properties": {
|
|
"identifier": {
|
|
"description": "能力的标识符。\n\n## 示例\n\n`main-user-files-write`",
|
|
"type": "string"
|
|
},
|
|
"description": {
|
|
"description": "描述该能力旨在在关联窗口上允许的内容。\n\n它应包含有关分组权限应允许内容的描述。\n\n## 示例\n\n此能力允许 `main` 窗口访问 `filesystem` 写入相关命令和 `dialog` 命令,以实现对用户选择文件的编程访问。",
|
|
"default": "",
|
|
"type": "string"
|
|
},
|
|
"remote": {
|
|
"description": "配置可以使用此能力权限的远程 URL。\n\n此设置是可选的,默认未设置,因为我们的默认用例是内容从本地应用程序提供。\n\n:::caution 确保你了解为远程源提供本地系统访问的安全影响。 :::\n\n## 示例\n\n```json { \"urls\": [\"https://*.mydomain.dev\"] } ```",
|
|
"anyOf": [
|
|
{
|
|
"$ref": "#/definitions/CapabilityRemote"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
]
|
|
},
|
|
"local": {
|
|
"description": "是否为本地应用URL启用此能力。默认为 `true`。",
|
|
"default": true,
|
|
"type": "boolean"
|
|
},
|
|
"windows": {
|
|
"description": "受此能力影响的窗口列表。可以是 glob 模式。\n\n如果窗口标签匹配此列表中的任何模式,则该能力将在该窗口的所有 webview 上启用,无论 [`Self::webviews`] 的值如何。\n\n在多 webview 窗口上,建议指定 [`Self::webviews`] 并省略 [`Self::windows`] 以实现细粒度访问控制。\n\n## 示例\n\n`[\"main\"]`",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"webviews": {
|
|
"description": "受此能力影响的 webview 列表。可以是 glob 模式。\n\n该能力将在标签匹配此列表中任何模式的所有 webview 上启用,无论 webview 的窗口标签是否匹配 [`Self::windows`] 中的模式。\n\n## 示例\n\n`[\"sub-webview-one\", \"sub-webview-two\"]`",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"permissions": {
|
|
"description": "附加到此能力的权限列表。\n\n必须以 `${plugin-name}:${permission-name}` 的形式包含插件名称作为前缀。对于直接在应用程序本身中实现的命令,只需要 `${permission-name}`。\n\n## 示例\n\n```json [ \"core:default\", \"shell:allow-open\", \"dialog:open\", { \"identifier\": \"fs:allow-write-text-file\", \"allow\": [{ \"path\": \"$HOME/test.txt\" }] } ] ```",
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/PermissionEntry"
|
|
},
|
|
"uniqueItems": true
|
|
},
|
|
"platforms": {
|
|
"description": "限制此能力应用于哪些目标平台。\n\n默认情况下,所有平台都被定位。\n\n## 示例\n\n`[\"macOS\",\"windows\"]`",
|
|
"type": ["array", "null"],
|
|
"items": {
|
|
"$ref": "#/definitions/Target"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"CapabilityRemote": {
|
|
"description": "与能力关联的远程URL的配置。",
|
|
"type": "object",
|
|
"required": ["urls"],
|
|
"properties": {
|
|
"urls": {
|
|
"description": "此能力引用的使用 [URLPattern 标准](https://urlpattern.spec.whatwg.org/)的远程域。\n\n## 示例\n\n- \"https://*.mydomain.dev\": 允许 mydomain.dev 的子域 - \"https://mydomain.dev/api/*\": 允许 mydomain.dev/api 的任何子路径",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"PermissionEntry": {
|
|
"description": "[`Capability`] 中权限值的条目可以是原始权限 [`Identifier`] 或引用权限并扩展其范围的对象。",
|
|
"anyOf": [
|
|
{
|
|
"description": "通过标识符引用权限或权限集。",
|
|
"allOf": [
|
|
{
|
|
"$ref": "#/definitions/Identifier"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"description": "通过标识符引用权限或权限集并扩展其范围。",
|
|
"type": "object",
|
|
"allOf": [
|
|
{
|
|
"if": {
|
|
"properties": {
|
|
"identifier": {
|
|
"anyOf": [
|
|
{
|
|
"description": "这组权限描述了 `fs` 插件默认启用或拒绝的文件系统访问类型。\n\n#### 授予的权限\n\n此默认权限集启用对应用程序特定目录(AppConfig、AppData、AppLocalData、AppCache、AppLog)及其中创建的所有文件和子目录的读取访问。\n\n这些目录的位置取决于运行应用程序的操作系统。\n\n通常,这些目录需要应用程序在运行时手动创建,然后才能访问其中的文件或文件夹。\n\n因此,也允许通过 `mkdir` 命令创建所有这些文件夹。\n\n#### 拒绝的权限\n\n此默认权限集默认阻止对 Tauri 应用程序关键组件的访问。\n在 Windows 上,webview 数据文件夹访问被拒绝。\n\n#### 此默认权限集包括:\n\n- `create-app-specific-dirs`\n- `read-app-specific-dirs-recursive`\n- `deny-default`",
|
|
"type": "string",
|
|
"const": "fs:default",
|
|
"markdownDescription": "这组权限描述了 `fs` 插件默认启用或拒绝的文件系统访问类型。\n\n#### 授予的权限\n\n此默认权限集启用对应用程序特定目录(AppConfig、AppData、AppLocalData、AppCache、AppLog)及其中创建的所有文件和子目录的读取访问。\n\n这些目录的位置取决于运行应用程序的操作系统。\n\n通常,这些目录需要应用程序在运行时手动创建,然后才能访问其中的文件或文件夹。\n\n因此,也允许通过 `mkdir` 命令创建所有这些文件夹。\n\n#### 拒绝的权限\n\n此默认权限集默认阻止对 Tauri 应用程序关键组件的访问。\n在 Windows 上,webview 数据文件夹访问被拒绝。\n\n#### 此默认权限集包括:\n\n- `create-app-specific-dirs`\n- `read-app-specific-dirs-recursive`\n- `deny-default`"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "fs:allow-app-meta"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "fs:allow-app-meta-recursive"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "fs:allow-app-read"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "fs:allow-app-read-recursive"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "fs:allow-app-write"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "fs:allow-app-write-recursive"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "fs:allow-appcache-meta"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "fs:allow-appcache-meta-recursive"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "fs:allow-appcache-read"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "fs:allow-appcache-read-recursive"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "fs:allow-appcache-write"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "fs:allow-appcache-write-recursive"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "fs:allow-appconfig-meta"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "fs:allow-appconfig-meta-recursive"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "fs:allow-appconfig-read"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "fs:allow-appconfig-read-recursive"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "fs:allow-appconfig-write"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "fs:allow-appconfig-write-recursive"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "fs:allow-appdata-meta"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "fs:allow-appdata-meta-recursive"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "fs:allow-appdata-read"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "fs:allow-appdata-read-recursive"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "fs:allow-appdata-write"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "fs:allow-appdata-write-recursive"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "fs:allow-applocaldata-meta"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "fs:allow-applocaldata-meta-recursive"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "fs:allow-applocaldata-read"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "fs:allow-applocaldata-read-recursive"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "fs:allow-applocaldata-write"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "fs:allow-applocaldata-write-recursive"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "fs:allow-applog-meta"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "fs:allow-applog-meta-recursive"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "fs:allow-applog-read"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "fs:allow-applog-read-recursive"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "fs:allow-applog-write"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "fs:allow-applog-write-recursive"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "fs:allow-audio-meta"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "fs:allow-audio-meta-recursive"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "fs:allow-audio-read"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "fs:allow-audio-read-recursive"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "fs:allow-audio-write"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "fs:allow-audio-write-recursive"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "fs:allow-cache-meta"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "fs:allow-cache-meta-recursive"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "fs:allow-cache-read"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "fs:allow-cache-read-recursive"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "fs:allow-cache-write"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "fs:allow-cache-write-recursive"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "fs:allow-config-meta"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "fs:allow-config-meta-recursive"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "fs:allow-config-read"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "fs:allow-config-read-recursive"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "fs:allow-config-write"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "fs:allow-config-write-recursive"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "fs:allow-data-meta"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "fs:allow-data-meta-recursive"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "fs:allow-data-read"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "fs:allow-data-read-recursive"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "fs:allow-data-write"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "fs:allow-data-write-recursive"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "fs:allow-desktop-meta"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "fs:allow-desktop-meta-recursive"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "fs:allow-desktop-read"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "fs:allow-desktop-read-recursive"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "fs:allow-desktop-write"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "fs:allow-desktop-write-recursive"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "fs:allow-document-meta"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "fs:allow-document-meta-recursive"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "fs:allow-document-read"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "fs:allow-document-read-recursive"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "fs:allow-document-write"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "fs:allow-document-write-recursive"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "fs:allow-download-meta"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "fs:allow-download-meta-recursive"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "fs:allow-download-read"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "fs:allow-download-read-recursive"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "fs:allow-download-write"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "fs:allow-download-write-recursive"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "fs:allow-exe-meta"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "fs:allow-exe-meta-recursive"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "fs:allow-exe-read"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "fs:allow-exe-read-recursive"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "fs:allow-exe-write"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "fs:allow-exe-write-recursive"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "fs:allow-font-meta"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "fs:allow-font-meta-recursive"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "fs:allow-font-read"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "fs:allow-font-read-recursive"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "fs:allow-font-write"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "fs:allow-font-write-recursive"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "fs:allow-home-meta"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "fs:allow-home-meta-recursive"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "fs:allow-home-read"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "fs:allow-home-read-recursive"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "fs:allow-home-write"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "fs:allow-home-write-recursive"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "fs:allow-localdata-meta"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "fs:allow-localdata-meta-recursive"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "fs:allow-localdata-read"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "fs:allow-localdata-read-recursive"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "fs:allow-localdata-write"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "fs:allow-localdata-write-recursive"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "fs:allow-log-meta"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "fs:allow-log-meta-recursive"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "fs:allow-log-read"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "fs:allow-log-read-recursive"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "fs:allow-log-write"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "fs:allow-log-write-recursive"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "fs:allow-picture-meta"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "fs:allow-picture-meta-recursive"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "fs:allow-picture-read"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "fs:allow-picture-read-recursive"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "fs:allow-picture-write"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "fs:allow-picture-write-recursive"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "fs:allow-public-meta"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "fs:allow-public-meta-recursive"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "fs:allow-public-read"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "fs:allow-public-read-recursive"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "fs:allow-public-write"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "fs:allow-public-write-recursive"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "fs:allow-resource-meta"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "fs:allow-resource-meta-recursive"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "fs:allow-resource-read"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "fs:allow-resource-read-recursive"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "fs:allow-resource-write"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "fs:allow-resource-write-recursive"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "fs:allow-runtime-meta"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "fs:allow-runtime-meta-recursive"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "fs:allow-runtime-read"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "fs:allow-runtime-read-recursive"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "fs:allow-runtime-write"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "fs:allow-runtime-write-recursive"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "fs:allow-temp-meta"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "fs:allow-temp-meta-recursive"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "fs:allow-temp-read"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "fs:allow-temp-read-recursive"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "fs:allow-temp-write"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "fs:allow-temp-write-recursive"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "fs:allow-template-meta"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "fs:allow-template-meta-recursive"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "fs:allow-template-read"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "fs:allow-template-read-recursive"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "fs:allow-template-write"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "fs:allow-template-write-recursive"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "fs:allow-video-meta"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "fs:allow-video-meta-recursive"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "fs:allow-video-read"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "fs:allow-video-read-recursive"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "fs:allow-video-write"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "fs:allow-video-write-recursive"
|
|
},
|
|
{
|
|
"description": "这默认拒绝访问危险的 Tauri 相关文件和文件夹。\n#### 此权限集包括:\n\n- `deny-webview-data-linux`\n- `deny-webview-data-windows`",
|
|
"type": "string",
|
|
"const": "fs:deny-default",
|
|
"markdownDescription": "这默认拒绝访问危险的 Tauri 相关文件和文件夹。\n#### 此权限集包括:\n\n- `deny-webview-data-linux`\n- `deny-webview-data-windows`"
|
|
},
|
|
{
|
|
"description": "在没有任何预配置范围的情况下启用 copy_file 命令。",
|
|
"type": "string",
|
|
"const": "fs:allow-copy-file",
|
|
"markdownDescription": "在没有任何预配置范围的情况下启用 copy_file 命令。"
|
|
},
|
|
{
|
|
"description": "在没有任何预配置范围的情况下启用 create 命令。",
|
|
"type": "string",
|
|
"const": "fs:allow-create",
|
|
"markdownDescription": "在没有任何预配置范围的情况下启用 create 命令。"
|
|
},
|
|
{
|
|
"description": "在没有任何预配置范围的情况下启用 exists 命令。",
|
|
"type": "string",
|
|
"const": "fs:allow-exists",
|
|
"markdownDescription": "在没有任何预配置范围的情况下启用 exists 命令。"
|
|
},
|
|
{
|
|
"description": "在没有任何预配置范围的情况下启用 fstat 命令。",
|
|
"type": "string",
|
|
"const": "fs:allow-fstat",
|
|
"markdownDescription": "在没有任何预配置范围的情况下启用 fstat 命令。"
|
|
},
|
|
{
|
|
"description": "在没有任何预配置范围的情况下启用 ftruncate 命令。",
|
|
"type": "string",
|
|
"const": "fs:allow-ftruncate",
|
|
"markdownDescription": "在没有任何预配置范围的情况下启用 ftruncate 命令。"
|
|
},
|
|
{
|
|
"description": "在没有任何预配置范围的情况下启用 lstat 命令。",
|
|
"type": "string",
|
|
"const": "fs:allow-lstat",
|
|
"markdownDescription": "在没有任何预配置范围的情况下启用 lstat 命令。"
|
|
},
|
|
{
|
|
"description": "在没有任何预配置范围的情况下启用 mkdir 命令。",
|
|
"type": "string",
|
|
"const": "fs:allow-mkdir",
|
|
"markdownDescription": "在没有任何预配置范围的情况下启用 mkdir 命令。"
|
|
},
|
|
{
|
|
"description": "在没有任何预配置范围的情况下启用 open 命令。",
|
|
"type": "string",
|
|
"const": "fs:allow-open",
|
|
"markdownDescription": "在没有任何预配置范围的情况下启用 open 命令。"
|
|
},
|
|
{
|
|
"description": "在没有任何预配置范围的情况下启用 read 命令。",
|
|
"type": "string",
|
|
"const": "fs:allow-read",
|
|
"markdownDescription": "在没有任何预配置范围的情况下启用 read 命令。"
|
|
},
|
|
{
|
|
"description": "在没有任何预配置范围的情况下启用 read_dir 命令。",
|
|
"type": "string",
|
|
"const": "fs:allow-read-dir",
|
|
"markdownDescription": "在没有任何预配置范围的情况下启用 read_dir 命令。"
|
|
},
|
|
{
|
|
"description": "在没有任何预配置范围的情况下启用 read_file 命令。",
|
|
"type": "string",
|
|
"const": "fs:allow-read-file",
|
|
"markdownDescription": "在没有任何预配置范围的情况下启用 read_file 命令。"
|
|
},
|
|
{
|
|
"description": "在没有任何预配置范围的情况下启用 read_text_file 命令。",
|
|
"type": "string",
|
|
"const": "fs:allow-read-text-file",
|
|
"markdownDescription": "在没有任何预配置范围的情况下启用 read_text_file 命令。"
|
|
},
|
|
{
|
|
"description": "在没有任何预配置范围的情况下启用 read_text_file_lines 命令。",
|
|
"type": "string",
|
|
"const": "fs:allow-read-text-file-lines",
|
|
"markdownDescription": "在没有任何预配置范围的情况下启用 read_text_file_lines 命令。"
|
|
},
|
|
{
|
|
"description": "在没有任何预配置范围的情况下启用 read_text_file_lines_next 命令。",
|
|
"type": "string",
|
|
"const": "fs:allow-read-text-file-lines-next",
|
|
"markdownDescription": "在没有任何预配置范围的情况下启用 read_text_file_lines_next 命令。"
|
|
},
|
|
{
|
|
"description": "在没有任何预配置范围的情况下启用 remove 命令。",
|
|
"type": "string",
|
|
"const": "fs:allow-remove",
|
|
"markdownDescription": "在没有任何预配置范围的情况下启用 remove 命令。"
|
|
},
|
|
{
|
|
"description": "在没有任何预配置范围的情况下启用 rename 命令。",
|
|
"type": "string",
|
|
"const": "fs:allow-rename",
|
|
"markdownDescription": "在没有任何预配置范围的情况下启用 rename 命令。"
|
|
},
|
|
{
|
|
"description": "在没有任何预配置范围的情况下启用 seek 命令。",
|
|
"type": "string",
|
|
"const": "fs:allow-seek",
|
|
"markdownDescription": "在没有任何预配置范围的情况下启用 seek 命令。"
|
|
},
|
|
{
|
|
"description": "在没有任何预配置范围的情况下启用 size 命令。",
|
|
"type": "string",
|
|
"const": "fs:allow-size",
|
|
"markdownDescription": "在没有任何预配置范围的情况下启用 size 命令。"
|
|
},
|
|
{
|
|
"description": "在没有任何预配置范围的情况下启用 stat 命令。",
|
|
"type": "string",
|
|
"const": "fs:allow-stat",
|
|
"markdownDescription": "在没有任何预配置范围的情况下启用 stat 命令。"
|
|
},
|
|
{
|
|
"description": "在没有任何预配置范围的情况下启用 truncate 命令。",
|
|
"type": "string",
|
|
"const": "fs:allow-truncate",
|
|
"markdownDescription": "在没有任何预配置范围的情况下启用 truncate 命令。"
|
|
},
|
|
{
|
|
"description": "在没有任何预配置范围的情况下启用 unwatch 命令。",
|
|
"type": "string",
|
|
"const": "fs:allow-unwatch",
|
|
"markdownDescription": "在没有任何预配置范围的情况下启用 unwatch 命令。"
|
|
},
|
|
{
|
|
"description": "在没有任何预配置范围的情况下启用 watch 命令。",
|
|
"type": "string",
|
|
"const": "fs:allow-watch",
|
|
"markdownDescription": "在没有任何预配置范围的情况下启用 watch 命令。"
|
|
},
|
|
{
|
|
"description": "在没有任何预配置范围的情况下启用 write 命令。",
|
|
"type": "string",
|
|
"const": "fs:allow-write",
|
|
"markdownDescription": "在没有任何预配置范围的情况下启用 write 命令。"
|
|
},
|
|
{
|
|
"description": "在没有任何预配置范围的情况下启用 write_file 命令。",
|
|
"type": "string",
|
|
"const": "fs:allow-write-file",
|
|
"markdownDescription": "在没有任何预配置范围的情况下启用 write_file 命令。"
|
|
},
|
|
{
|
|
"description": "在没有任何预配置范围的情况下启用 write_text_file 命令。",
|
|
"type": "string",
|
|
"const": "fs:allow-write-text-file",
|
|
"markdownDescription": "在没有任何预配置范围的情况下启用 write_text_file 命令。"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "fs:create-app-specific-dirs"
|
|
},
|
|
{
|
|
"description": "在没有任何预配置范围的情况下拒绝 copy_file 命令。",
|
|
"type": "string",
|
|
"const": "fs:deny-copy-file",
|
|
"markdownDescription": "在没有任何预配置范围的情况下拒绝 copy_file 命令。"
|
|
},
|
|
{
|
|
"description": "在没有任何预配置范围的情况下拒绝 create 命令。",
|
|
"type": "string",
|
|
"const": "fs:deny-create",
|
|
"markdownDescription": "在没有任何预配置范围的情况下拒绝 create 命令。"
|
|
},
|
|
{
|
|
"description": "在没有任何预配置范围的情况下拒绝 exists 命令。",
|
|
"type": "string",
|
|
"const": "fs:deny-exists",
|
|
"markdownDescription": "在没有任何预配置范围的情况下拒绝 exists 命令。"
|
|
},
|
|
{
|
|
"description": "在没有任何预配置范围的情况下拒绝 fstat 命令。",
|
|
"type": "string",
|
|
"const": "fs:deny-fstat",
|
|
"markdownDescription": "在没有任何预配置范围的情况下拒绝 fstat 命令。"
|
|
},
|
|
{
|
|
"description": "在没有任何预配置范围的情况下拒绝 ftruncate 命令。",
|
|
"type": "string",
|
|
"const": "fs:deny-ftruncate",
|
|
"markdownDescription": "在没有任何预配置范围的情况下拒绝 ftruncate 命令。"
|
|
},
|
|
{
|
|
"description": "在没有任何预配置范围的情况下拒绝 lstat 命令。",
|
|
"type": "string",
|
|
"const": "fs:deny-lstat",
|
|
"markdownDescription": "在没有任何预配置范围的情况下拒绝 lstat 命令。"
|
|
},
|
|
{
|
|
"description": "在没有任何预配置范围的情况下拒绝 mkdir 命令。",
|
|
"type": "string",
|
|
"const": "fs:deny-mkdir",
|
|
"markdownDescription": "在没有任何预配置范围的情况下拒绝 mkdir 命令。"
|
|
},
|
|
{
|
|
"description": "在没有任何预配置范围的情况下拒绝 open 命令。",
|
|
"type": "string",
|
|
"const": "fs:deny-open",
|
|
"markdownDescription": "在没有任何预配置范围的情况下拒绝 open 命令。"
|
|
},
|
|
{
|
|
"description": "在没有任何预配置范围的情况下拒绝 read 命令。",
|
|
"type": "string",
|
|
"const": "fs:deny-read",
|
|
"markdownDescription": "在没有任何预配置范围的情况下拒绝 read 命令。"
|
|
},
|
|
{
|
|
"description": "在没有任何预配置范围的情况下拒绝 read_dir 命令。",
|
|
"type": "string",
|
|
"const": "fs:deny-read-dir",
|
|
"markdownDescription": "在没有任何预配置范围的情况下拒绝 read_dir 命令。"
|
|
},
|
|
{
|
|
"description": "在没有任何预配置范围的情况下拒绝 read_file 命令。",
|
|
"type": "string",
|
|
"const": "fs:deny-read-file",
|
|
"markdownDescription": "在没有任何预配置范围的情况下拒绝 read_file 命令。"
|
|
},
|
|
{
|
|
"description": "在没有任何预配置范围的情况下拒绝 read_text_file 命令。",
|
|
"type": "string",
|
|
"const": "fs:deny-read-text-file",
|
|
"markdownDescription": "在没有任何预配置范围的情况下拒绝 read_text_file 命令。"
|
|
},
|
|
{
|
|
"description": "在没有任何预配置范围的情况下拒绝 read_text_file_lines 命令。",
|
|
"type": "string",
|
|
"const": "fs:deny-read-text-file-lines",
|
|
"markdownDescription": "在没有任何预配置范围的情况下拒绝 read_text_file_lines 命令。"
|
|
},
|
|
{
|
|
"description": "在没有任何预配置范围的情况下拒绝 read_text_file_lines_next 命令。",
|
|
"type": "string",
|
|
"const": "fs:deny-read-text-file-lines-next",
|
|
"markdownDescription": "在没有任何预配置范围的情况下拒绝 read_text_file_lines_next 命令。"
|
|
},
|
|
{
|
|
"description": "在没有任何预配置范围的情况下拒绝 remove 命令。",
|
|
"type": "string",
|
|
"const": "fs:deny-remove",
|
|
"markdownDescription": "在没有任何预配置范围的情况下拒绝 remove 命令。"
|
|
},
|
|
{
|
|
"description": "在没有任何预配置范围的情况下拒绝 rename 命令。",
|
|
"type": "string",
|
|
"const": "fs:deny-rename",
|
|
"markdownDescription": "在没有任何预配置范围的情况下拒绝 rename 命令。"
|
|
},
|
|
{
|
|
"description": "在没有任何预配置范围的情况下拒绝 seek 命令。",
|
|
"type": "string",
|
|
"const": "fs:deny-seek",
|
|
"markdownDescription": "在没有任何预配置范围的情况下拒绝 seek 命令。"
|
|
},
|
|
{
|
|
"description": "在没有任何预配置范围的情况下拒绝 size 命令。",
|
|
"type": "string",
|
|
"const": "fs:deny-size",
|
|
"markdownDescription": "在没有任何预配置范围的情况下拒绝 size 命令。"
|
|
},
|
|
{
|
|
"description": "在没有任何预配置范围的情况下拒绝 stat 命令。",
|
|
"type": "string",
|
|
"const": "fs:deny-stat",
|
|
"markdownDescription": "在没有任何预配置范围的情况下拒绝 stat 命令。"
|
|
},
|
|
{
|
|
"description": "在没有任何预配置范围的情况下拒绝 truncate 命令。",
|
|
"type": "string",
|
|
"const": "fs:deny-truncate",
|
|
"markdownDescription": "在没有任何预配置范围的情况下拒绝 truncate 命令。"
|
|
},
|
|
{
|
|
"description": "在没有任何预配置范围的情况下拒绝 unwatch 命令。",
|
|
"type": "string",
|
|
"const": "fs:deny-unwatch",
|
|
"markdownDescription": "在没有任何预配置范围的情况下拒绝 unwatch 命令。"
|
|
},
|
|
{
|
|
"description": "在没有任何预配置范围的情况下拒绝 watch 命令。",
|
|
"type": "string",
|
|
"const": "fs:deny-watch",
|
|
"markdownDescription": "在没有任何预配置范围的情况下拒绝 watch 命令。"
|
|
},
|
|
{
|
|
"description": "这拒绝读取 Linux 上的 `$APPLOCALDATA` 文件夹,因为 webview 数据和配置值存储在这里。\n允许访问可能导致敏感信息泄露,应仔细考虑。",
|
|
"type": "string",
|
|
"const": "fs:deny-webview-data-linux",
|
|
"markdownDescription": "这拒绝读取 Linux 上的 `$APPLOCALDATA` 文件夹,因为 webview 数据和配置值存储在这里。\n允许访问可能导致敏感信息泄露,应仔细考虑。"
|
|
},
|
|
{
|
|
"description": "这拒绝读取 Windows 上的 `$APPLOCALDATA/EBWebView` 文件夹,因为 webview 数据和配置值存储在这里。\n允许访问可能导致敏感信息泄露,应仔细考虑。",
|
|
"type": "string",
|
|
"const": "fs:deny-webview-data-windows",
|
|
"markdownDescription": "这拒绝读取 Windows 上的 `$APPLOCALDATA/EBWebView` 文件夹,因为 webview 数据和配置值存储在这里。\n允许访问可能导致敏感信息泄露,应仔细考虑。"
|
|
},
|
|
{
|
|
"description": "在没有任何预配置范围的情况下拒绝 write 命令。",
|
|
"type": "string",
|
|
"const": "fs:deny-write",
|
|
"markdownDescription": "在没有任何预配置范围的情况下拒绝 write 命令。"
|
|
},
|
|
{
|
|
"description": "在没有任何预配置范围的情况下拒绝 write_file 命令。",
|
|
"type": "string",
|
|
"const": "fs:deny-write-file",
|
|
"markdownDescription": "在没有任何预配置范围的情况下拒绝 write_file 命令。"
|
|
},
|
|
{
|
|
"description": "在没有任何预配置范围的情况下拒绝 write_text_file 命令。",
|
|
"type": "string",
|
|
"const": "fs:deny-write-text-file",
|
|
"markdownDescription": "在没有任何预配置范围的情况下拒绝 write_text_file 命令。"
|
|
},
|
|
{
|
|
"description": "这在没有任何预配置可访问路径的情况下启用所有与读取相关的命令。",
|
|
"type": "string",
|
|
"const": "fs:read-all",
|
|
"markdownDescription": "这在没有任何预配置可访问路径的情况下启用所有与读取相关的命令。"
|
|
},
|
|
{
|
|
"description": "此权限允许在应用程序特定的基本目录上进行递归读取功能。",
|
|
"type": "string",
|
|
"const": "fs:read-app-specific-dirs-recursive",
|
|
"markdownDescription": "此权限允许在应用程序特定的基本目录上进行递归读取功能。"
|
|
},
|
|
{
|
|
"description": "这在没有任何预配置可访问路径的情况下启用目录读取和文件元数据相关命令。",
|
|
"type": "string",
|
|
"const": "fs:read-dirs",
|
|
"markdownDescription": "这在没有任何预配置可访问路径的情况下启用目录读取和文件元数据相关命令。"
|
|
},
|
|
{
|
|
"description": "这在没有任何预配置可访问路径的情况下启用文件读取相关命令。",
|
|
"type": "string",
|
|
"const": "fs:read-files",
|
|
"markdownDescription": "这在没有任何预配置可访问路径的情况下启用文件读取相关命令。"
|
|
},
|
|
{
|
|
"description": "这在没有任何预配置可访问路径的情况下启用所有索引或元数据相关命令。",
|
|
"type": "string",
|
|
"const": "fs:read-meta",
|
|
"markdownDescription": "这在没有任何预配置可访问路径的情况下启用所有索引或元数据相关命令。"
|
|
},
|
|
{
|
|
"description": "一个可用于修改全局范围的空权限。\n\n## 示例\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": "fs:scope",
|
|
"markdownDescription": "一个可用于修改全局范围的空权限。\n\n## 示例\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": "fs:scope-app"
|
|
},
|
|
{
|
|
"description": "此范围允许列出应用程序目录中的所有文件和文件夹。",
|
|
"type": "string",
|
|
"const": "fs:scope-app-index",
|
|
"markdownDescription": "此范围允许列出应用程序目录中的所有文件和文件夹。"
|
|
},
|
|
{
|
|
"description": "此范围允许对完整的应用程序文件夹进行递归访问,包括子目录和文件。",
|
|
"type": "string",
|
|
"const": "fs:scope-app-recursive",
|
|
"markdownDescription": "此范围允许对完整的应用程序文件夹进行递归访问,包括子目录和文件。"
|
|
},
|
|
{
|
|
"description": "此范围允许访问 `$APPCACHE` 文件夹中顶级目录的所有文件并列出其内容。",
|
|
"type": "string",
|
|
"const": "fs:scope-appcache",
|
|
"markdownDescription": "此范围允许访问 `$APPCACHE` 文件夹中顶级目录的所有文件并列出其内容。"
|
|
},
|
|
{
|
|
"description": "此范围允许列出 `$APPCACHE` 文件夹中的所有文件和文件夹。",
|
|
"type": "string",
|
|
"const": "fs:scope-appcache-index",
|
|
"markdownDescription": "此范围允许列出 `$APPCACHE` 文件夹中的所有文件和文件夹。"
|
|
},
|
|
{
|
|
"description": "此范围允许对完整的 `$APPCACHE` 文件夹进行递归访问,包括子目录和文件。",
|
|
"type": "string",
|
|
"const": "fs:scope-appcache-recursive",
|
|
"markdownDescription": "此范围允许对完整的 `$APPCACHE` 文件夹进行递归访问,包括子目录和文件。"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "fs:scope-appconfig"
|
|
},
|
|
{
|
|
"description": "此范围允许列出 `$APPCONFIG` 文件夹中的所有文件和文件夹。",
|
|
"type": "string",
|
|
"const": "fs:scope-appconfig-index",
|
|
"markdownDescription": "此范围允许列出 `$APPCONFIG` 文件夹中的所有文件和文件夹。"
|
|
},
|
|
{
|
|
"description": "此范围允许对完整的 `$APPCONFIG` 文件夹进行递归访问,包括子目录和文件。",
|
|
"type": "string",
|
|
"const": "fs:scope-appconfig-recursive",
|
|
"markdownDescription": "此范围允许对完整的 `$APPCONFIG` 文件夹进行递归访问,包括子目录和文件。"
|
|
},
|
|
{
|
|
"description": "此范围允许访问 `$APPDATA` 文件夹中顶级目录的所有文件并列出其内容。",
|
|
"type": "string",
|
|
"const": "fs:scope-appdata",
|
|
"markdownDescription": "此范围允许访问 `$APPDATA` 文件夹中顶级目录的所有文件并列出其内容。"
|
|
},
|
|
{
|
|
"description": "此范围允许列出 `$APPDATA` 文件夹中的所有文件和文件夹。",
|
|
"type": "string",
|
|
"const": "fs:scope-appdata-index",
|
|
"markdownDescription": "此范围允许列出 `$APPDATA` 文件夹中的所有文件和文件夹。"
|
|
},
|
|
{
|
|
"description": "此范围允许对完整的 `$APPDATA` 文件夹进行递归访问,包括子目录和文件。",
|
|
"type": "string",
|
|
"const": "fs:scope-appdata-recursive",
|
|
"markdownDescription": "此范围允许对完整的 `$APPDATA` 文件夹进行递归访问,包括子目录和文件。"
|
|
},
|
|
{
|
|
"description": "此范围允许访问 `$APPLOCALDATA` 文件夹中顶级目录的所有文件并列出其内容。",
|
|
"type": "string",
|
|
"const": "fs:scope-applocaldata",
|
|
"markdownDescription": "此范围允许访问 `$APPLOCALDATA` 文件夹中顶级目录的所有文件并列出其内容。"
|
|
},
|
|
{
|
|
"description": "此范围允许列出 `$APPLOCALDATA` 文件夹中的所有文件和文件夹。",
|
|
"type": "string",
|
|
"const": "fs:scope-applocaldata-index",
|
|
"markdownDescription": "此范围允许列出 `$APPLOCALDATA` 文件夹中的所有文件和文件夹。"
|
|
},
|
|
{
|
|
"description": "此范围允许对完整的 `$APPLOCALDATA` 文件夹进行递归访问,包括子目录和文件。",
|
|
"type": "string",
|
|
"const": "fs:scope-applocaldata-recursive",
|
|
"markdownDescription": "此范围允许对完整的 `$APPLOCALDATA` 文件夹进行递归访问,包括子目录和文件。"
|
|
},
|
|
{
|
|
"description": "此范围允许访问 `$APPLOG` 文件夹中顶级目录的所有文件并列出其内容。",
|
|
"type": "string",
|
|
"const": "fs:scope-applog",
|
|
"markdownDescription": "此范围允许访问 `$APPLOG` 文件夹中顶级目录的所有文件并列出其内容。"
|
|
},
|
|
{
|
|
"description": "此范围允许列出 `$APPLOG` 文件夹中的所有文件和文件夹。",
|
|
"type": "string",
|
|
"const": "fs:scope-applog-index",
|
|
"markdownDescription": "此范围允许列出 `$APPLOG` 文件夹中的所有文件和文件夹。"
|
|
},
|
|
{
|
|
"description": "此范围允许对完整的 `$APPLOG` 文件夹进行递归访问,包括子目录和文件。",
|
|
"type": "string",
|
|
"const": "fs:scope-applog-recursive",
|
|
"markdownDescription": "此范围允许对完整的 `$APPLOG` 文件夹进行递归访问,包括子目录和文件。"
|
|
},
|
|
{
|
|
"description": "此范围允许访问 `$AUDIO` 文件夹中顶级目录的所有文件并列出其内容。",
|
|
"type": "string",
|
|
"const": "fs:scope-audio",
|
|
"markdownDescription": "此范围允许访问 `$AUDIO` 文件夹中顶级目录的所有文件并列出其内容。"
|
|
},
|
|
{
|
|
"description": "此范围允许列出 `$AUDIO` 文件夹中的所有文件和文件夹。",
|
|
"type": "string",
|
|
"const": "fs:scope-audio-index",
|
|
"markdownDescription": "此范围允许列出 `$AUDIO` 文件夹中的所有文件和文件夹。"
|
|
},
|
|
{
|
|
"description": "此范围允许对完整的 `$AUDIO` 文件夹进行递归访问,包括子目录和文件。",
|
|
"type": "string",
|
|
"const": "fs:scope-audio-recursive",
|
|
"markdownDescription": "此范围允许对完整的 `$AUDIO` 文件夹进行递归访问,包括子目录和文件。"
|
|
},
|
|
{
|
|
"description": "此范围允许访问 `$CACHE` 文件夹中顶级目录的所有文件并列出其内容。",
|
|
"type": "string",
|
|
"const": "fs:scope-cache",
|
|
"markdownDescription": "此范围允许访问 `$CACHE` 文件夹中顶级目录的所有文件并列出其内容。"
|
|
},
|
|
{
|
|
"description": "此范围允许列出 `$CACHE` 文件夹中的所有文件和文件夹。",
|
|
"type": "string",
|
|
"const": "fs:scope-cache-index",
|
|
"markdownDescription": "此范围允许列出 `$CACHE` 文件夹中的所有文件和文件夹。"
|
|
},
|
|
{
|
|
"description": "此范围允许对完整的 `$CACHE` 文件夹进行递归访问,包括子目录和文件。",
|
|
"type": "string",
|
|
"const": "fs:scope-cache-recursive",
|
|
"markdownDescription": "此范围允许对完整的 `$CACHE` 文件夹进行递归访问,包括子目录和文件。"
|
|
},
|
|
{
|
|
"description": "此范围允许访问 `$CONFIG` 文件夹中顶级目录的所有文件并列出其内容。",
|
|
"type": "string",
|
|
"const": "fs:scope-config",
|
|
"markdownDescription": "此范围允许访问 `$CONFIG` 文件夹中顶级目录的所有文件并列出其内容。"
|
|
},
|
|
{
|
|
"description": "此范围允许列出 `$CONFIG` 文件夹中的所有文件和文件夹。",
|
|
"type": "string",
|
|
"const": "fs:scope-config-index",
|
|
"markdownDescription": "此范围允许列出 `$CONFIG` 文件夹中的所有文件和文件夹。"
|
|
},
|
|
{
|
|
"description": "此范围允许对完整的 `$CONFIG` 文件夹进行递归访问,包括子目录和文件。",
|
|
"type": "string",
|
|
"const": "fs:scope-config-recursive",
|
|
"markdownDescription": "此范围允许对完整的 `$CONFIG` 文件夹进行递归访问,包括子目录和文件。"
|
|
},
|
|
{
|
|
"description": "此范围允许访问 `$DATA` 文件夹中顶级目录的所有文件并列出其内容。",
|
|
"type": "string",
|
|
"const": "fs:scope-data",
|
|
"markdownDescription": "此范围允许访问 `$DATA` 文件夹中顶级目录的所有文件并列出其内容。"
|
|
},
|
|
{
|
|
"description": "此范围允许列出 `$DATA` 文件夹中的所有文件和文件夹。",
|
|
"type": "string",
|
|
"const": "fs:scope-data-index",
|
|
"markdownDescription": "此范围允许列出 `$DATA` 文件夹中的所有文件和文件夹。"
|
|
},
|
|
{
|
|
"description": "此范围允许对完整的 `$DATA` 文件夹进行递归访问,包括子目录和文件。",
|
|
"type": "string",
|
|
"const": "fs:scope-data-recursive",
|
|
"markdownDescription": "此范围允许对完整的 `$DATA` 文件夹进行递归访问,包括子目录和文件。"
|
|
},
|
|
{
|
|
"description": "此范围允许访问 `$DESKTOP` 文件夹中顶级目录的所有文件并列出其内容。",
|
|
"type": "string",
|
|
"const": "fs:scope-desktop",
|
|
"markdownDescription": "此范围允许访问 `$DESKTOP` 文件夹中顶级目录的所有文件并列出其内容。"
|
|
},
|
|
{
|
|
"description": "此范围允许列出 `$DESKTOP` 文件夹中的所有文件和文件夹。",
|
|
"type": "string",
|
|
"const": "fs:scope-desktop-index",
|
|
"markdownDescription": "此范围允许列出 `$DESKTOP` 文件夹中的所有文件和文件夹。"
|
|
},
|
|
{
|
|
"description": "此范围允许对完整的 `$DESKTOP` 文件夹进行递归访问,包括子目录和文件。",
|
|
"type": "string",
|
|
"const": "fs:scope-desktop-recursive",
|
|
"markdownDescription": "此范围允许对完整的 `$DESKTOP` 文件夹进行递归访问,包括子目录和文件。"
|
|
},
|
|
{
|
|
"description": "此范围允许访问 `$DOCUMENT` 文件夹中顶级目录的所有文件并列出其内容。",
|
|
"type": "string",
|
|
"const": "fs:scope-document",
|
|
"markdownDescription": "此范围允许访问 `$DOCUMENT` 文件夹中顶级目录的所有文件并列出其内容。"
|
|
},
|
|
{
|
|
"description": "此范围允许列出 `$DOCUMENT` 文件夹中的所有文件和文件夹。",
|
|
"type": "string",
|
|
"const": "fs:scope-document-index",
|
|
"markdownDescription": "此范围允许列出 `$DOCUMENT` 文件夹中的所有文件和文件夹。"
|
|
},
|
|
{
|
|
"description": "此范围允许对完整的 `$DOCUMENT` 文件夹进行递归访问,包括子目录和文件。",
|
|
"type": "string",
|
|
"const": "fs:scope-document-recursive",
|
|
"markdownDescription": "此范围允许对完整的 `$DOCUMENT` 文件夹进行递归访问,包括子目录和文件。"
|
|
},
|
|
{
|
|
"description": "此范围允许访问 `$DOWNLOAD` 文件夹中顶级目录的所有文件并列出其内容。",
|
|
"type": "string",
|
|
"const": "fs:scope-download",
|
|
"markdownDescription": "此范围允许访问 `$DOWNLOAD` 文件夹中顶级目录的所有文件并列出其内容。"
|
|
},
|
|
{
|
|
"description": "此范围允许列出 `$DOWNLOAD` 文件夹中的所有文件和文件夹。",
|
|
"type": "string",
|
|
"const": "fs:scope-download-index",
|
|
"markdownDescription": "此范围允许列出 `$DOWNLOAD` 文件夹中的所有文件和文件夹。"
|
|
},
|
|
{
|
|
"description": "此范围允许对完整的 `$DOWNLOAD` 文件夹进行递归访问,包括子目录和文件。",
|
|
"type": "string",
|
|
"const": "fs:scope-download-recursive",
|
|
"markdownDescription": "此范围允许对完整的 `$DOWNLOAD` 文件夹进行递归访问,包括子目录和文件。"
|
|
},
|
|
{
|
|
"description": "此范围允许访问 `$EXE` 文件夹中顶级目录的所有文件并列出其内容。",
|
|
"type": "string",
|
|
"const": "fs:scope-exe",
|
|
"markdownDescription": "此范围允许访问 `$EXE` 文件夹中顶级目录的所有文件并列出其内容。"
|
|
},
|
|
{
|
|
"description": "此范围允许列出 `$EXE` 文件夹中的所有文件和文件夹。",
|
|
"type": "string",
|
|
"const": "fs:scope-exe-index",
|
|
"markdownDescription": "此范围允许列出 `$EXE` 文件夹中的所有文件和文件夹。"
|
|
},
|
|
{
|
|
"description": "此范围允许对完整的 `$EXE` 文件夹进行递归访问,包括子目录和文件。",
|
|
"type": "string",
|
|
"const": "fs:scope-exe-recursive",
|
|
"markdownDescription": "此范围允许对完整的 `$EXE` 文件夹进行递归访问,包括子目录和文件。"
|
|
},
|
|
{
|
|
"description": "此范围允许访问 `$FONT` 文件夹中顶级目录的所有文件并列出其内容。",
|
|
"type": "string",
|
|
"const": "fs:scope-font",
|
|
"markdownDescription": "此范围允许访问 `$FONT` 文件夹中顶级目录的所有文件并列出其内容。"
|
|
},
|
|
{
|
|
"description": "此范围允许列出 `$FONT` 文件夹中的所有文件和文件夹。",
|
|
"type": "string",
|
|
"const": "fs:scope-font-index",
|
|
"markdownDescription": "此范围允许列出 `$FONT` 文件夹中的所有文件和文件夹。"
|
|
},
|
|
{
|
|
"description": "此范围允许对完整的 `$FONT` 文件夹进行递归访问,包括子目录和文件。",
|
|
"type": "string",
|
|
"const": "fs:scope-font-recursive",
|
|
"markdownDescription": "此范围允许对完整的 `$FONT` 文件夹进行递归访问,包括子目录和文件。"
|
|
},
|
|
{
|
|
"description": "此范围允许访问 `$HOME` 文件夹中顶级目录的所有文件并列出其内容。",
|
|
"type": "string",
|
|
"const": "fs:scope-home",
|
|
"markdownDescription": "此范围允许访问 `$HOME` 文件夹中顶级目录的所有文件并列出其内容。"
|
|
},
|
|
{
|
|
"description": "此范围允许列出 `$HOME` 文件夹中的所有文件和文件夹。",
|
|
"type": "string",
|
|
"const": "fs:scope-home-index",
|
|
"markdownDescription": "此范围允许列出 `$HOME` 文件夹中的所有文件和文件夹。"
|
|
},
|
|
{
|
|
"description": "此范围允许对完整的 `$HOME` 文件夹进行递归访问,包括子目录和文件。",
|
|
"type": "string",
|
|
"const": "fs:scope-home-recursive",
|
|
"markdownDescription": "此范围允许对完整的 `$HOME` 文件夹进行递归访问,包括子目录和文件。"
|
|
},
|
|
{
|
|
"description": "此范围允许访问 `$LOCALDATA` 文件夹中顶级目录的所有文件并列出其内容。",
|
|
"type": "string",
|
|
"const": "fs:scope-localdata",
|
|
"markdownDescription": "此范围允许访问 `$LOCALDATA` 文件夹中顶级目录的所有文件并列出其内容。"
|
|
},
|
|
{
|
|
"description": "此范围允许列出 `$LOCALDATA` 文件夹中的所有文件和文件夹。",
|
|
"type": "string",
|
|
"const": "fs:scope-localdata-index",
|
|
"markdownDescription": "此范围允许列出 `$LOCALDATA` 文件夹中的所有文件和文件夹。"
|
|
},
|
|
{
|
|
"description": "此范围允许对完整的 `$LOCALDATA` 文件夹进行递归访问,包括子目录和文件。",
|
|
"type": "string",
|
|
"const": "fs:scope-localdata-recursive",
|
|
"markdownDescription": "此范围允许对完整的 `$LOCALDATA` 文件夹进行递归访问,包括子目录和文件。"
|
|
},
|
|
{
|
|
"description": "此范围允许访问 `$LOG` 文件夹中顶级目录的所有文件并列出其内容。",
|
|
"type": "string",
|
|
"const": "fs:scope-log",
|
|
"markdownDescription": "此范围允许访问 `$LOG` 文件夹中顶级目录的所有文件并列出其内容。"
|
|
},
|
|
{
|
|
"description": "此范围允许列出 `$LOG` 文件夹中的所有文件和文件夹。",
|
|
"type": "string",
|
|
"const": "fs:scope-log-index",
|
|
"markdownDescription": "此范围允许列出 `$LOG` 文件夹中的所有文件和文件夹。"
|
|
},
|
|
{
|
|
"description": "此范围允许对完整的 `$LOG` 文件夹进行递归访问,包括子目录和文件。",
|
|
"type": "string",
|
|
"const": "fs:scope-log-recursive",
|
|
"markdownDescription": "此范围允许对完整的 `$LOG` 文件夹进行递归访问,包括子目录和文件。"
|
|
},
|
|
{
|
|
"description": "此范围允许访问 `$PICTURE` 文件夹中顶级目录的所有文件并列出其内容。",
|
|
"type": "string",
|
|
"const": "fs:scope-picture",
|
|
"markdownDescription": "此范围允许访问 `$PICTURE` 文件夹中顶级目录的所有文件并列出其内容。"
|
|
},
|
|
{
|
|
"description": "此范围允许列出 `$PICTURE` 文件夹中的所有文件和文件夹。",
|
|
"type": "string",
|
|
"const": "fs:scope-picture-index",
|
|
"markdownDescription": "此范围允许列出 `$PICTURE` 文件夹中的所有文件和文件夹。"
|
|
},
|
|
{
|
|
"description": "此范围允许对完整的 `$PICTURE` 文件夹进行递归访问,包括子目录和文件。",
|
|
"type": "string",
|
|
"const": "fs:scope-picture-recursive",
|
|
"markdownDescription": "此范围允许对完整的 `$PICTURE` 文件夹进行递归访问,包括子目录和文件。"
|
|
},
|
|
{
|
|
"description": "此范围允许访问 `$PUBLIC` 文件夹中顶级目录的所有文件并列出其内容。",
|
|
"type": "string",
|
|
"const": "fs:scope-public",
|
|
"markdownDescription": "此范围允许访问 `$PUBLIC` 文件夹中顶级目录的所有文件并列出其内容。"
|
|
},
|
|
{
|
|
"description": "此范围允许列出 `$PUBLIC` 文件夹中的所有文件和文件夹。",
|
|
"type": "string",
|
|
"const": "fs:scope-public-index",
|
|
"markdownDescription": "此范围允许列出 `$PUBLIC` 文件夹中的所有文件和文件夹。"
|
|
},
|
|
{
|
|
"description": "此范围允许对完整的 `$PUBLIC` 文件夹进行递归访问,包括子目录和文件。",
|
|
"type": "string",
|
|
"const": "fs:scope-public-recursive",
|
|
"markdownDescription": "此范围允许对完整的 `$PUBLIC` 文件夹进行递归访问,包括子目录和文件。"
|
|
},
|
|
{
|
|
"description": "此范围允许访问 `$RESOURCE` 文件夹中顶级目录的所有文件并列出其内容。",
|
|
"type": "string",
|
|
"const": "fs:scope-resource",
|
|
"markdownDescription": "此范围允许访问 `$RESOURCE` 文件夹中顶级目录的所有文件并列出其内容。"
|
|
},
|
|
{
|
|
"description": "此范围允许列出 `$RESOURCE` 文件夹中的所有文件和文件夹。",
|
|
"type": "string",
|
|
"const": "fs:scope-resource-index",
|
|
"markdownDescription": "此范围允许列出 `$RESOURCE` 文件夹中的所有文件和文件夹。"
|
|
},
|
|
{
|
|
"description": "此范围允许对完整的 `$RESOURCE` 文件夹进行递归访问,包括子目录和文件。",
|
|
"type": "string",
|
|
"const": "fs:scope-resource-recursive",
|
|
"markdownDescription": "此范围允许对完整的 `$RESOURCE` 文件夹进行递归访问,包括子目录和文件。"
|
|
},
|
|
{
|
|
"description": "此范围允许访问 `$RUNTIME` 文件夹中顶级目录的所有文件并列出其内容。",
|
|
"type": "string",
|
|
"const": "fs:scope-runtime",
|
|
"markdownDescription": "此范围允许访问 `$RUNTIME` 文件夹中顶级目录的所有文件并列出其内容。"
|
|
},
|
|
{
|
|
"description": "此范围允许列出 `$RUNTIME` 文件夹中的所有文件和文件夹。",
|
|
"type": "string",
|
|
"const": "fs:scope-runtime-index",
|
|
"markdownDescription": "此范围允许列出 `$RUNTIME` 文件夹中的所有文件和文件夹。"
|
|
},
|
|
{
|
|
"description": "此范围允许对完整的 `$RUNTIME` 文件夹进行递归访问,包括子目录和文件。",
|
|
"type": "string",
|
|
"const": "fs:scope-runtime-recursive",
|
|
"markdownDescription": "此范围允许对完整的 `$RUNTIME` 文件夹进行递归访问,包括子目录和文件。"
|
|
},
|
|
{
|
|
"description": "此范围允许访问 `$TEMP` 文件夹中顶级目录的所有文件并列出其内容。",
|
|
"type": "string",
|
|
"const": "fs:scope-temp",
|
|
"markdownDescription": "此范围允许访问 `$TEMP` 文件夹中顶级目录的所有文件并列出其内容。"
|
|
},
|
|
{
|
|
"description": "此范围允许列出 `$TEMP` 文件夹中的所有文件和文件夹。",
|
|
"type": "string",
|
|
"const": "fs:scope-temp-index",
|
|
"markdownDescription": "此范围允许列出 `$TEMP` 文件夹中的所有文件和文件夹。"
|
|
},
|
|
{
|
|
"description": "此范围允许对完整的 `$TEMP` 文件夹进行递归访问,包括子目录和文件。",
|
|
"type": "string",
|
|
"const": "fs:scope-temp-recursive",
|
|
"markdownDescription": "此范围允许对完整的 `$TEMP` 文件夹进行递归访问,包括子目录和文件。"
|
|
},
|
|
{
|
|
"description": "此范围允许访问 `$TEMPLATE` 文件夹中顶级目录的所有文件并列出其内容。",
|
|
"type": "string",
|
|
"const": "fs:scope-template",
|
|
"markdownDescription": "此范围允许访问 `$TEMPLATE` 文件夹中顶级目录的所有文件并列出其内容。"
|
|
},
|
|
{
|
|
"description": "此范围允许列出 `$TEMPLATE` 文件夹中的所有文件和文件夹。",
|
|
"type": "string",
|
|
"const": "fs:scope-template-index",
|
|
"markdownDescription": "此范围允许列出 `$TEMPLATE` 文件夹中的所有文件和文件夹。"
|
|
},
|
|
{
|
|
"description": "此范围允许对完整的 `$TEMPLATE` 文件夹进行递归访问,包括子目录和文件。",
|
|
"type": "string",
|
|
"const": "fs:scope-template-recursive",
|
|
"markdownDescription": "此范围允许对完整的 `$TEMPLATE` 文件夹进行递归访问,包括子目录和文件。"
|
|
},
|
|
{
|
|
"description": "此范围允许访问 `$VIDEO` 文件夹中顶级目录的所有文件并列出其内容。",
|
|
"type": "string",
|
|
"const": "fs:scope-video",
|
|
"markdownDescription": "此范围允许访问 `$VIDEO` 文件夹中顶级目录的所有文件并列出其内容。"
|
|
},
|
|
{
|
|
"description": "此范围允许列出 `$VIDEO` 文件夹中的所有文件和文件夹。",
|
|
"type": "string",
|
|
"const": "fs:scope-video-index",
|
|
"markdownDescription": "此范围允许列出 `$VIDEO` 文件夹中的所有文件和文件夹。"
|
|
},
|
|
{
|
|
"description": "此范围允许对完整的 `$VIDEO` 文件夹进行递归访问,包括子目录和文件。",
|
|
"type": "string",
|
|
"const": "fs:scope-video-recursive",
|
|
"markdownDescription": "此范围允许对完整的 `$VIDEO` 文件夹进行递归访问,包括子目录和文件。"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "fs:write-all"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "fs:write-files"
|
|
}
|
|
]
|
|
}
|
|
}
|
|
},
|
|
"then": {
|
|
"properties": {
|
|
"allow": {
|
|
"items": {
|
|
"title": "FsScopeEntry",
|
|
"anyOf": [
|
|
{
|
|
"description": "webview使用fs API时可以访问的路径。",
|
|
"type": "string"
|
|
},
|
|
{
|
|
"type": "object",
|
|
"required": ["path"],
|
|
"properties": {
|
|
"path": {
|
|
"description": "webview使用fs API时可以访问的路径。",
|
|
"type": "string"
|
|
}
|
|
}
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"deny": {
|
|
"items": {
|
|
"title": "FsScopeEntry",
|
|
"anyOf": [
|
|
{
|
|
"description": "webview使用fs API时可以访问的路径。",
|
|
"type": "string"
|
|
},
|
|
{
|
|
"type": "object",
|
|
"required": ["path"],
|
|
"properties": {
|
|
"path": {
|
|
"description": "webview使用fs API时可以访问的路径。",
|
|
"type": "string"
|
|
}
|
|
}
|
|
}
|
|
]
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"properties": {
|
|
"identifier": {
|
|
"allOf": [
|
|
{
|
|
"$ref": "#/definitions/Identifier"
|
|
}
|
|
]
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"if": {
|
|
"properties": {
|
|
"identifier": {
|
|
"anyOf": [
|
|
{
|
|
"description": "此权限集配置从 http 插件可用的 fetch 操作类型。\n\n这启用了所有 fetch 操作,但不明确允许获取任何源。这需要在使用之前手动配置。\n\n#### 授予的权限\n\n所有 fetch 操作都已启用。\n\n\n#### 此默认权限集包括:\n\n- `allow-fetch`\n- `allow-fetch-cancel`\n- `allow-fetch-read-body`\n- `allow-fetch-send`",
|
|
"type": "string",
|
|
"const": "http:default",
|
|
"markdownDescription": "此权限集配置从 http 插件可用的 fetch 操作类型。\n\n这启用了所有 fetch 操作,但不明确允许获取任何源。这需要在使用之前手动配置。\n\n#### 授予的权限\n\n所有 fetch 操作都已启用。\n\n\n#### 此默认权限集包括:\n\n- `allow-fetch`\n- `allow-fetch-cancel`\n- `allow-fetch-read-body`\n- `allow-fetch-send`"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "http:allow-fetch"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "http:allow-fetch-cancel"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "http:allow-fetch-read-body"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "http:allow-fetch-send"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "http:deny-fetch"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "http:deny-fetch-cancel"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "http:deny-fetch-read-body"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "http:deny-fetch-send"
|
|
}
|
|
]
|
|
}
|
|
}
|
|
},
|
|
"then": {
|
|
"properties": {
|
|
"allow": {
|
|
"items": {
|
|
"title": "HttpScopeEntry",
|
|
"anyOf": [
|
|
{
|
|
"description": "webview使用HTTP API时可以访问的URL。可以使用通配符。",
|
|
"type": "string"
|
|
},
|
|
{
|
|
"type": "object",
|
|
"required": ["url"],
|
|
"properties": {
|
|
"url": {
|
|
"description": "webview使用HTTP API时可以访问的URL。可以使用通配符。",
|
|
"type": "string"
|
|
}
|
|
}
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"deny": {
|
|
"items": {
|
|
"title": "HttpScopeEntry",
|
|
"anyOf": [
|
|
{
|
|
"description": "webview使用HTTP API时可以访问的URL。可以使用通配符。",
|
|
"type": "string"
|
|
},
|
|
{
|
|
"type": "object",
|
|
"required": ["url"],
|
|
"properties": {
|
|
"url": {
|
|
"description": "webview使用HTTP API时可以访问的URL。可以使用通配符。",
|
|
"type": "string"
|
|
}
|
|
}
|
|
}
|
|
]
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"properties": {
|
|
"identifier": {
|
|
"allOf": [
|
|
{
|
|
"$ref": "#/definitions/Identifier"
|
|
}
|
|
]
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"properties": {
|
|
"identifier": {
|
|
"allOf": [
|
|
{
|
|
"$ref": "#/definitions/Identifier"
|
|
}
|
|
]
|
|
},
|
|
"allow": {
|
|
"type": ["array", "null"],
|
|
"items": {
|
|
"$ref": "#/definitions/Value"
|
|
}
|
|
},
|
|
"deny": {
|
|
"type": ["array", "null"],
|
|
"items": {
|
|
"$ref": "#/definitions/Value"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"required": ["identifier"]
|
|
}
|
|
]
|
|
},
|
|
"Identifier": {
|
|
"oneOf": [
|
|
{
|
|
"description": "默认核心插件集。\n#### 此默认权限集包括:\n\n- `core:path:default`\n- `core:event:default`\n- `core:window:default`\n- `core:webview:default`\n- `core:app:default`\n- `core:image:default`\n- `core:resources:default`\n- `core:menu:default`\n- `core:tray:default`",
|
|
"type": "string",
|
|
"const": "core:default",
|
|
"markdownDescription": "默认核心插件集。\n#### 此默认权限集包括:\n\n- `core:path:default`\n- `core:event:default`\n- `core:window:default`\n- `core:webview:default`\n- `core:app:default`\n- `core:image:default`\n- `core:resources:default`\n- `core:menu:default`\n- `core:tray:default`"
|
|
},
|
|
{
|
|
"description": "插件的默认权限。\n#### 此默认权限集包括:\n\n- `allow-version`\n- `allow-name`\n- `allow-tauri-version`\n- `allow-identifier`\n- `allow-bundle-type`\n- `allow-register-listener`\n- `allow-remove-listener`",
|
|
"type": "string",
|
|
"const": "core:app:default",
|
|
"markdownDescription": "插件的默认权限。\n#### 此默认权限集包括:\n\n- `allow-version`\n- `allow-name`\n- `allow-tauri-version`\n- `allow-identifier`\n- `allow-bundle-type`\n- `allow-register-listener`\n- `allow-remove-listener`"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "core:app:allow-app-hide"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "core:app:allow-app-show"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "core:app:allow-bundle-type"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "core:app:allow-default-window-icon"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "core:app:allow-fetch-data-store-identifiers"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "core:app:allow-identifier"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "core:app:allow-name"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "core:app:allow-register-listener"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "core:app:allow-remove-data-store"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "core:app:allow-remove-listener"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "core:app:allow-set-app-theme"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "core:app:allow-set-dock-visibility"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "core:app:allow-tauri-version"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "core:app:allow-version"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "core:app:deny-app-hide"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "core:app:deny-app-show"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "core:app:deny-bundle-type"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "core:app:deny-default-window-icon"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "core:app:deny-fetch-data-store-identifiers"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "core:app:deny-identifier"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "core:app:deny-name"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "core:app:deny-register-listener"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "core:app:deny-remove-data-store"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "core:app:deny-remove-listener"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "core:app:deny-set-app-theme"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "core:app:deny-set-dock-visibility"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "core:app:deny-tauri-version"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "core:app:deny-version"
|
|
},
|
|
{
|
|
"description": "插件的默认权限,启用所有命令。\n#### 此默认权限集包括:\n\n- `allow-listen`\n- `allow-unlisten`\n- `allow-emit`\n- `allow-emit-to`",
|
|
"type": "string",
|
|
"const": "core:event:default",
|
|
"markdownDescription": "插件的默认权限,启用所有命令。\n#### 此默认权限集包括:\n\n- `allow-listen`\n- `allow-unlisten`\n- `allow-emit`\n- `allow-emit-to`"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "core:event:allow-emit"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "core:event:allow-emit-to"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "core:event:allow-listen"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "core:event:allow-unlisten"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "core:event:deny-emit"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "core:event:deny-emit-to"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "core:event:deny-listen"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "core:event:deny-unlisten"
|
|
},
|
|
{
|
|
"description": "插件的默认权限,启用所有命令。\n#### 此默认权限集包括:\n\n- `allow-new`\n- `allow-from-bytes`\n- `allow-from-path`\n- `allow-rgba`\n- `allow-size`",
|
|
"type": "string",
|
|
"const": "core:image:default",
|
|
"markdownDescription": "插件的默认权限,启用所有命令。\n#### 此默认权限集包括:\n\n- `allow-new`\n- `allow-from-bytes`\n- `allow-from-path`\n- `allow-rgba`\n- `allow-size`"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "core:image:allow-from-bytes"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "core:image:allow-from-path"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "core:image:allow-new"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "core:image:allow-rgba"
|
|
},
|
|
{
|
|
"description": "在没有任何预配置范围的情况下启用 size 命令。",
|
|
"type": "string",
|
|
"const": "core:image:allow-size",
|
|
"markdownDescription": "在没有任何预配置范围的情况下启用 size 命令。"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "core:image:deny-from-bytes"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "core:image:deny-from-path"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "core:image:deny-new"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "core:image:deny-rgba"
|
|
},
|
|
{
|
|
"description": "在没有任何预配置范围的情况下拒绝 size 命令。",
|
|
"type": "string",
|
|
"const": "core:image:deny-size",
|
|
"markdownDescription": "在没有任何预配置范围的情况下拒绝 size 命令。"
|
|
},
|
|
{
|
|
"description": "插件的默认权限,启用所有命令。\n#### 此默认权限集包括:\n\n- `allow-new`\n- `allow-append`\n- `allow-prepend`\n- `allow-insert`\n- `allow-remove`\n- `allow-remove-at`\n- `allow-items`\n- `allow-get`\n- `allow-popup`\n- `allow-create-default`\n- `allow-set-as-app-menu`\n- `allow-set-as-window-menu`\n- `allow-text`\n- `allow-set-text`\n- `allow-is-enabled`\n- `allow-set-enabled`\n- `allow-set-accelerator`\n- `allow-set-as-windows-menu-for-nsapp`\n- `allow-set-as-help-menu-for-nsapp`\n- `allow-is-checked`\n- `allow-set-checked`\n- `allow-set-icon`",
|
|
"type": "string",
|
|
"const": "core:menu:default",
|
|
"markdownDescription": "插件的默认权限,启用所有命令。\n#### 此默认权限集包括:\n\n- `allow-new`\n- `allow-append`\n- `allow-prepend`\n- `allow-insert`\n- `allow-remove`\n- `allow-remove-at`\n- `allow-items`\n- `allow-get`\n- `allow-popup`\n- `allow-create-default`\n- `allow-set-as-app-menu`\n- `allow-set-as-window-menu`\n- `allow-text`\n- `allow-set-text`\n- `allow-is-enabled`\n- `allow-set-enabled`\n- `allow-set-accelerator`\n- `allow-set-as-windows-menu-for-nsapp`\n- `allow-set-as-help-menu-for-nsapp`\n- `allow-is-checked`\n- `allow-set-checked`\n- `allow-set-icon`"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "core:menu:allow-append"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "core:menu:allow-create-default"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "core:menu:allow-get"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "core:menu:allow-insert"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "core:menu:allow-is-checked"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "core:menu:allow-is-enabled"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "core:menu:allow-items"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "core:menu:allow-new"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "core:menu:allow-popup"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "core:menu:allow-prepend"
|
|
},
|
|
{
|
|
"description": "在没有任何预配置范围的情况下启用 remove 命令。",
|
|
"type": "string",
|
|
"const": "core:menu:allow-remove",
|
|
"markdownDescription": "在没有任何预配置范围的情况下启用 remove 命令。"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "core:menu:allow-remove-at"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "core:menu:allow-set-accelerator"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "core:menu:allow-set-as-app-menu"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "core:menu:allow-set-as-help-menu-for-nsapp"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "core:menu:allow-set-as-window-menu"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "core:menu:allow-set-as-windows-menu-for-nsapp"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "core:menu:allow-set-checked"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "core:menu:allow-set-enabled"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "core:menu:allow-set-icon"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "core:menu:allow-set-text"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "core:menu:allow-text"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "core:menu:deny-append"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "core:menu:deny-create-default"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "core:menu:deny-get"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "core:menu:deny-insert"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "core:menu:deny-is-checked"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "core:menu:deny-is-enabled"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "core:menu:deny-items"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "core:menu:deny-new"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "core:menu:deny-popup"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "core:menu:deny-prepend"
|
|
},
|
|
{
|
|
"description": "在没有任何预配置范围的情况下拒绝 remove 命令。",
|
|
"type": "string",
|
|
"const": "core:menu:deny-remove",
|
|
"markdownDescription": "在没有任何预配置范围的情况下拒绝 remove 命令。"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "core:menu:deny-remove-at"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "core:menu:deny-set-accelerator"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "core:menu:deny-set-as-app-menu"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "core:menu:deny-set-as-help-menu-for-nsapp"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "core:menu:deny-set-as-window-menu"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "core:menu:deny-set-as-windows-menu-for-nsapp"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "core:menu:deny-set-checked"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "core:menu:deny-set-enabled"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "core:menu:deny-set-icon"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "core:menu:deny-set-text"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "core:menu:deny-text"
|
|
},
|
|
{
|
|
"description": "插件的默认权限,启用所有命令。\n#### 此默认权限集包括:\n\n- `allow-resolve-directory`\n- `allow-resolve`\n- `allow-normalize`\n- `allow-join`\n- `allow-dirname`\n- `allow-extname`\n- `allow-basename`\n- `allow-is-absolute`",
|
|
"type": "string",
|
|
"const": "core:path:default",
|
|
"markdownDescription": "插件的默认权限,启用所有命令。\n#### 此默认权限集包括:\n\n- `allow-resolve-directory`\n- `allow-resolve`\n- `allow-normalize`\n- `allow-join`\n- `allow-dirname`\n- `allow-extname`\n- `allow-basename`\n- `allow-is-absolute`"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "core:path:allow-basename"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "core:path:allow-dirname"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "core:path:allow-extname"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "core:path:allow-is-absolute"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "core:path:allow-join"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "core:path:allow-normalize"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "core:path:allow-resolve"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "core:path:allow-resolve-directory"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "core:path:deny-basename"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "core:path:deny-dirname"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "core:path:deny-extname"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "core:path:deny-is-absolute"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "core:path:deny-join"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "core:path:deny-normalize"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "core:path:deny-resolve"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "core:path:deny-resolve-directory"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "core:resources:default"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "core:resources:allow-close"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "core:resources:deny-close"
|
|
},
|
|
{
|
|
"description": "插件的默认权限,启用所有命令。\n#### 此默认权限集包括:\n\n- `allow-new`\n- `allow-get-by-id`\n- `allow-remove-by-id`\n- `allow-set-icon`\n- `allow-set-menu`\n- `allow-set-tooltip`\n- `allow-set-title`\n- `allow-set-visible`\n- `allow-set-temp-dir-path`\n- `allow-set-icon-as-template`\n- `allow-set-show-menu-on-left-click`",
|
|
"type": "string",
|
|
"const": "core:tray:default",
|
|
"markdownDescription": "插件的默认权限,启用所有命令。\n#### 此默认权限集包括:\n\n- `allow-new`\n- `allow-get-by-id`\n- `allow-remove-by-id`\n- `allow-set-icon`\n- `allow-set-menu`\n- `allow-set-tooltip`\n- `allow-set-title`\n- `allow-set-visible`\n- `allow-set-temp-dir-path`\n- `allow-set-icon-as-template`\n- `allow-set-show-menu-on-left-click`"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "core:tray:allow-get-by-id"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "core:tray:allow-new"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "core:tray:allow-remove-by-id"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "core:tray:allow-set-icon"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "core:tray:allow-set-icon-as-template"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "core:tray:allow-set-menu"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "core:tray:allow-set-show-menu-on-left-click"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "core:tray:allow-set-temp-dir-path"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "core:tray:allow-set-title"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "core:tray:allow-set-tooltip"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "core:tray:allow-set-visible"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "core:tray:deny-get-by-id"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "core:tray:deny-new"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "core:tray:deny-remove-by-id"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "core:tray:deny-set-icon"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "core:tray:deny-set-icon-as-template"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "core:tray:deny-set-menu"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "core:tray:deny-set-show-menu-on-left-click"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "core:tray:deny-set-temp-dir-path"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "core:tray:deny-set-title"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "core:tray:deny-set-tooltip"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "core:tray:deny-set-visible"
|
|
},
|
|
{
|
|
"description": "插件的默认权限。\n#### 此默认权限集包括:\n\n- `allow-get-all-webviews`\n- `allow-webview-position`\n- `allow-webview-size`\n- `allow-internal-toggle-devtools`",
|
|
"type": "string",
|
|
"const": "core:webview:default",
|
|
"markdownDescription": "插件的默认权限。\n#### 此默认权限集包括:\n\n- `allow-get-all-webviews`\n- `allow-webview-position`\n- `allow-webview-size`\n- `allow-internal-toggle-devtools`"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "core:webview:allow-clear-all-browsing-data"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "core:webview:allow-create-webview"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "core:webview:allow-create-webview-window"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "core:webview:allow-get-all-webviews"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "core:webview:allow-internal-toggle-devtools"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "core:webview:allow-print"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "core:webview:allow-reparent"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "core:webview:allow-set-webview-auto-resize"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "core:webview:allow-set-webview-background-color"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "core:webview:allow-set-webview-focus"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "core:webview:allow-set-webview-position"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "core:webview:allow-set-webview-size"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "core:webview:allow-set-webview-zoom"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "core:webview:allow-webview-close"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "core:webview:allow-webview-hide"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "core:webview:allow-webview-position"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "core:webview:allow-webview-show"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "core:webview:allow-webview-size"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "core:webview:deny-clear-all-browsing-data"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "core:webview:deny-create-webview"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "core:webview:deny-create-webview-window"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "core:webview:deny-get-all-webviews"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "core:webview:deny-internal-toggle-devtools"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "core:webview:deny-print"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "core:webview:deny-reparent"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "core:webview:deny-set-webview-auto-resize"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "core:webview:deny-set-webview-background-color"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "core:webview:deny-set-webview-focus"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "core:webview:deny-set-webview-position"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "core:webview:deny-set-webview-size"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "core:webview:deny-set-webview-zoom"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "core:webview:deny-webview-close"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "core:webview:deny-webview-hide"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "core:webview:deny-webview-position"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "core:webview:deny-webview-show"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "core:webview:deny-webview-size"
|
|
},
|
|
{
|
|
"description": "插件的默认权限。\n#### 此默认权限集包括:\n\n- `allow-get-all-windows`\n- `allow-scale-factor`\n- `allow-inner-position`\n- `allow-outer-position`\n- `allow-inner-size`\n- `allow-outer-size`\n- `allow-is-fullscreen`\n- `allow-is-minimized`\n- `allow-is-maximized`\n- `allow-is-focused`\n- `allow-is-decorated`\n- `allow-is-resizable`\n- `allow-is-maximizable`\n- `allow-is-minimizable`\n- `allow-is-closable`\n- `allow-is-visible`\n- `allow-is-enabled`\n- `allow-title`\n- `allow-current-monitor`\n- `allow-primary-monitor`\n- `allow-monitor-from-point`\n- `allow-available-monitors`\n- `allow-cursor-position`\n- `allow-theme`\n- `allow-is-always-on-top`\n- `allow-internal-toggle-maximize`",
|
|
"type": "string",
|
|
"const": "core:window:default",
|
|
"markdownDescription": "插件的默认权限。\n#### 此默认权限集包括:\n\n- `allow-get-all-windows`\n- `allow-scale-factor`\n- `allow-inner-position`\n- `allow-outer-position`\n- `allow-inner-size`\n- `allow-outer-size`\n- `allow-is-fullscreen`\n- `allow-is-minimized`\n- `allow-is-maximized`\n- `allow-is-focused`\n- `allow-is-decorated`\n- `allow-is-resizable`\n- `allow-is-maximizable`\n- `allow-is-minimizable`\n- `allow-is-closable`\n- `allow-is-visible`\n- `allow-is-enabled`\n- `allow-title`\n- `allow-current-monitor`\n- `allow-primary-monitor`\n- `allow-monitor-from-point`\n- `allow-available-monitors`\n- `allow-cursor-position`\n- `allow-theme`\n- `allow-is-always-on-top`\n- `allow-internal-toggle-maximize`"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "core:window:allow-available-monitors"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "core:window:allow-center"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "core:window:allow-close"
|
|
},
|
|
{
|
|
"description": "在没有任何预配置范围的情况下启用 create 命令。",
|
|
"type": "string",
|
|
"const": "core:window:allow-create",
|
|
"markdownDescription": "在没有任何预配置范围的情况下启用 create 命令。"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "core:window:allow-current-monitor"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "core:window:allow-cursor-position"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "core:window:allow-destroy"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "core:window:allow-get-all-windows"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "core:window:allow-hide"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "core:window:allow-inner-position"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "core:window:allow-inner-size"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "core:window:allow-internal-toggle-maximize"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "core:window:allow-is-always-on-top"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "core:window:allow-is-closable"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "core:window:allow-is-decorated"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "core:window:allow-is-enabled"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "core:window:allow-is-focused"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "core:window:allow-is-fullscreen"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "core:window:allow-is-maximizable"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "core:window:allow-is-maximized"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "core:window:allow-is-minimizable"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "core:window:allow-is-minimized"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "core:window:allow-is-resizable"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "core:window:allow-is-visible"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "core:window:allow-maximize"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "core:window:allow-minimize"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "core:window:allow-monitor-from-point"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "core:window:allow-outer-position"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "core:window:allow-outer-size"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "core:window:allow-primary-monitor"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "core:window:allow-request-user-attention"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "core:window:allow-scale-factor"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "core:window:allow-set-always-on-bottom"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "core:window:allow-set-always-on-top"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "core:window:allow-set-background-color"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "core:window:allow-set-badge-count"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "core:window:allow-set-badge-label"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "core:window:allow-set-closable"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "core:window:allow-set-content-protected"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "core:window:allow-set-cursor-grab"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "core:window:allow-set-cursor-icon"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "core:window:allow-set-cursor-position"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "core:window:allow-set-cursor-visible"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "core:window:allow-set-decorations"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "core:window:allow-set-effects"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "core:window:allow-set-enabled"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "core:window:allow-set-focus"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "core:window:allow-set-focusable"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "core:window:allow-set-fullscreen"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "core:window:allow-set-icon"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "core:window:allow-set-ignore-cursor-events"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "core:window:allow-set-max-size"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "core:window:allow-set-maximizable"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "core:window:allow-set-min-size"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "core:window:allow-set-minimizable"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "core:window:allow-set-overlay-icon"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "core:window:allow-set-position"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "core:window:allow-set-progress-bar"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "core:window:allow-set-resizable"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "core:window:allow-set-shadow"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "core:window:allow-set-simple-fullscreen"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "core:window:allow-set-size"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "core:window:allow-set-size-constraints"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "core:window:allow-set-skip-taskbar"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "core:window:allow-set-theme"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "core:window:allow-set-title"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "core:window:allow-set-title-bar-style"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "core:window:allow-set-visible-on-all-workspaces"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "core:window:allow-show"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "core:window:allow-start-dragging"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "core:window:allow-start-resize-dragging"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "core:window:allow-theme"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "core:window:allow-title"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "core:window:allow-toggle-maximize"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "core:window:allow-unmaximize"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "core:window:allow-unminimize"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "core:window:deny-available-monitors"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "core:window:deny-center"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "core:window:deny-close"
|
|
},
|
|
{
|
|
"description": "在没有任何预配置范围的情况下拒绝 create 命令。",
|
|
"type": "string",
|
|
"const": "core:window:deny-create",
|
|
"markdownDescription": "在没有任何预配置范围的情况下拒绝 create 命令。"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "core:window:deny-current-monitor"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "core:window:deny-cursor-position"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "core:window:deny-destroy"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "core:window:deny-get-all-windows"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "core:window:deny-hide"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "core:window:deny-inner-position"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "core:window:deny-inner-size"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "core:window:deny-internal-toggle-maximize"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "core:window:deny-is-always-on-top"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "core:window:deny-is-closable"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "core:window:deny-is-decorated"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "core:window:deny-is-enabled"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "core:window:deny-is-focused"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "core:window:deny-is-fullscreen"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "core:window:deny-is-maximizable"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "core:window:deny-is-maximized"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "core:window:deny-is-minimizable"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "core:window:deny-is-minimized"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "core:window:deny-is-resizable"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "core:window:deny-is-visible"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "core:window:deny-maximize"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "core:window:deny-minimize"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "core:window:deny-monitor-from-point"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "core:window:deny-outer-position"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "core:window:deny-outer-size"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "core:window:deny-primary-monitor"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "core:window:deny-request-user-attention"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "core:window:deny-scale-factor"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "core:window:deny-set-always-on-bottom"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "core:window:deny-set-always-on-top"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "core:window:deny-set-background-color"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "core:window:deny-set-badge-count"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "core:window:deny-set-badge-label"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "core:window:deny-set-closable"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "core:window:deny-set-content-protected"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "core:window:deny-set-cursor-grab"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "core:window:deny-set-cursor-icon"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "core:window:deny-set-cursor-position"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "core:window:deny-set-cursor-visible"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "core:window:deny-set-decorations"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "core:window:deny-set-effects"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "core:window:deny-set-enabled"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "core:window:deny-set-focus"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "core:window:deny-set-focusable"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "core:window:deny-set-fullscreen"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "core:window:deny-set-icon"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "core:window:deny-set-ignore-cursor-events"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "core:window:deny-set-max-size"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "core:window:deny-set-maximizable"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "core:window:deny-set-min-size"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "core:window:deny-set-minimizable"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "core:window:deny-set-overlay-icon"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "core:window:deny-set-position"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "core:window:deny-set-progress-bar"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "core:window:deny-set-resizable"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "core:window:deny-set-shadow"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "core:window:deny-set-simple-fullscreen"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "core:window:deny-set-size"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "core:window:deny-set-size-constraints"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "core:window:deny-set-skip-taskbar"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "core:window:deny-set-theme"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "core:window:deny-set-title"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "core:window:deny-set-title-bar-style"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "core:window:deny-set-visible-on-all-workspaces"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "core:window:deny-show"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "core:window:deny-start-dragging"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "core:window:deny-start-resize-dragging"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "core:window:deny-theme"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "core:window:deny-title"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "core:window:deny-toggle-maximize"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "core:window:deny-unmaximize"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "core:window:deny-unminimize"
|
|
},
|
|
{
|
|
"description": "此权限集配置从 dialog 插件可用的对话框类型。\n\n#### 授予的权限\n\n所有对话框类型都已启用。\n\n\n\n#### 此默认权限集包括:\n\n- `allow-ask`\n- `allow-confirm`\n- `allow-message`\n- `allow-save`\n- `allow-open`",
|
|
"type": "string",
|
|
"const": "dialog:default",
|
|
"markdownDescription": "此权限集配置从 dialog 插件可用的对话框类型。\n\n#### 授予的权限\n\n所有对话框类型都已启用。\n\n\n\n#### 此默认权限集包括:\n\n- `allow-ask`\n- `allow-confirm`\n- `allow-message`\n- `allow-save`\n- `allow-open`"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "dialog:allow-ask"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "dialog:allow-confirm"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "dialog:allow-message"
|
|
},
|
|
{
|
|
"description": "在没有任何预配置范围的情况下启用 open 命令。",
|
|
"type": "string",
|
|
"const": "dialog:allow-open",
|
|
"markdownDescription": "在没有任何预配置范围的情况下启用 open 命令。"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "dialog:allow-save"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "dialog:deny-ask"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "dialog:deny-confirm"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "dialog:deny-message"
|
|
},
|
|
{
|
|
"description": "在没有任何预配置范围的情况下拒绝 open 命令。",
|
|
"type": "string",
|
|
"const": "dialog:deny-open",
|
|
"markdownDescription": "在没有任何预配置范围的情况下拒绝 open 命令。"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "dialog:deny-save"
|
|
},
|
|
{
|
|
"description": "这组权限描述了\n文件系统访问类型, `fs` 插件默认启用或拒绝的。\n\n#### Granted Permissions\n\n此默认权限集启用对\n应用程序特定目录(AppConfig、AppData、AppLocalData、AppCache、\nAppLog)及其中创建的所有文件和子目录的读取访问。\n这些目录的位置取决于运行应用程序的操作系统,\n应用程序运行的位置。\n\n通常,这些目录需要应用程序手动创建\n在运行时,然后才能访问其中的文件或文件夹。\n。\n\n因此,也允许通过\n`mkdir` 命令创建所有这些文件夹。\n\n#### 拒绝的权限\n\n此默认权限集默认阻止对\nTauri 应用程序关键组件的访问。\n在 Windows 上,webview 数据文件夹访问被拒绝。\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": "fs:default",
|
|
"markdownDescription": "这组权限描述了\n文件系统访问类型, `fs` 插件默认启用或拒绝的。\n\n#### Granted Permissions\n\n此默认权限集启用对\n应用程序特定目录(AppConfig、AppData、AppLocalData、AppCache、\nAppLog)及其中创建的所有文件和子目录的读取访问。\n这些目录的位置取决于运行应用程序的操作系统,\n应用程序运行的位置。\n\n通常,这些目录需要应用程序手动创建\n在运行时,然后才能访问其中的文件或文件夹。\n。\n\n因此,也允许通过\n`mkdir` 命令创建所有这些文件夹。\n\n#### 拒绝的权限\n\n此默认权限集默认阻止对\nTauri 应用程序关键组件的访问。\n在 Windows 上,webview 数据文件夹访问被拒绝。\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": "fs:allow-app-meta"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "fs:allow-app-meta-recursive"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "fs:allow-app-read"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "fs:allow-app-read-recursive"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "fs:allow-app-write"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "fs:allow-app-write-recursive"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "fs:allow-appcache-meta"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "fs:allow-appcache-meta-recursive"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "fs:allow-appcache-read"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "fs:allow-appcache-read-recursive"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "fs:allow-appcache-write"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "fs:allow-appcache-write-recursive"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "fs:allow-appconfig-meta"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "fs:allow-appconfig-meta-recursive"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "fs:allow-appconfig-read"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "fs:allow-appconfig-read-recursive"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "fs:allow-appconfig-write"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "fs:allow-appconfig-write-recursive"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "fs:allow-appdata-meta"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "fs:allow-appdata-meta-recursive"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "fs:allow-appdata-read"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "fs:allow-appdata-read-recursive"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "fs:allow-appdata-write"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "fs:allow-appdata-write-recursive"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "fs:allow-applocaldata-meta"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "fs:allow-applocaldata-meta-recursive"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "fs:allow-applocaldata-read"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "fs:allow-applocaldata-read-recursive"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "fs:allow-applocaldata-write"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "fs:allow-applocaldata-write-recursive"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "fs:allow-applog-meta"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "fs:allow-applog-meta-recursive"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "fs:allow-applog-read"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "fs:allow-applog-read-recursive"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "fs:allow-applog-write"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "fs:allow-applog-write-recursive"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "fs:allow-audio-meta"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "fs:allow-audio-meta-recursive"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "fs:allow-audio-read"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "fs:allow-audio-read-recursive"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "fs:allow-audio-write"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "fs:allow-audio-write-recursive"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "fs:allow-cache-meta"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "fs:allow-cache-meta-recursive"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "fs:allow-cache-read"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "fs:allow-cache-read-recursive"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "fs:allow-cache-write"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "fs:allow-cache-write-recursive"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "fs:allow-config-meta"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "fs:allow-config-meta-recursive"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "fs:allow-config-read"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "fs:allow-config-read-recursive"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "fs:allow-config-write"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "fs:allow-config-write-recursive"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "fs:allow-data-meta"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "fs:allow-data-meta-recursive"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "fs:allow-data-read"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "fs:allow-data-read-recursive"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "fs:allow-data-write"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "fs:allow-data-write-recursive"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "fs:allow-desktop-meta"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "fs:allow-desktop-meta-recursive"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "fs:allow-desktop-read"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "fs:allow-desktop-read-recursive"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "fs:allow-desktop-write"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "fs:allow-desktop-write-recursive"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "fs:allow-document-meta"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "fs:allow-document-meta-recursive"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "fs:allow-document-read"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "fs:allow-document-read-recursive"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "fs:allow-document-write"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "fs:allow-document-write-recursive"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "fs:allow-download-meta"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "fs:allow-download-meta-recursive"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "fs:allow-download-read"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "fs:allow-download-read-recursive"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "fs:allow-download-write"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "fs:allow-download-write-recursive"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "fs:allow-exe-meta"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "fs:allow-exe-meta-recursive"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "fs:allow-exe-read"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "fs:allow-exe-read-recursive"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "fs:allow-exe-write"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "fs:allow-exe-write-recursive"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "fs:allow-font-meta"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "fs:allow-font-meta-recursive"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "fs:allow-font-read"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "fs:allow-font-read-recursive"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "fs:allow-font-write"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "fs:allow-font-write-recursive"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "fs:allow-home-meta"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "fs:allow-home-meta-recursive"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "fs:allow-home-read"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "fs:allow-home-read-recursive"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "fs:allow-home-write"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "fs:allow-home-write-recursive"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "fs:allow-localdata-meta"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "fs:allow-localdata-meta-recursive"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "fs:allow-localdata-read"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "fs:allow-localdata-read-recursive"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "fs:allow-localdata-write"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "fs:allow-localdata-write-recursive"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "fs:allow-log-meta"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "fs:allow-log-meta-recursive"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "fs:allow-log-read"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "fs:allow-log-read-recursive"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "fs:allow-log-write"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "fs:allow-log-write-recursive"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "fs:allow-picture-meta"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "fs:allow-picture-meta-recursive"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "fs:allow-picture-read"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "fs:allow-picture-read-recursive"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "fs:allow-picture-write"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "fs:allow-picture-write-recursive"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "fs:allow-public-meta"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "fs:allow-public-meta-recursive"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "fs:allow-public-read"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "fs:allow-public-read-recursive"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "fs:allow-public-write"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "fs:allow-public-write-recursive"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "fs:allow-resource-meta"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "fs:allow-resource-meta-recursive"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "fs:allow-resource-read"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "fs:allow-resource-read-recursive"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "fs:allow-resource-write"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "fs:allow-resource-write-recursive"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "fs:allow-runtime-meta"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "fs:allow-runtime-meta-recursive"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "fs:allow-runtime-read"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "fs:allow-runtime-read-recursive"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "fs:allow-runtime-write"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "fs:allow-runtime-write-recursive"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "fs:allow-temp-meta"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "fs:allow-temp-meta-recursive"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "fs:allow-temp-read"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "fs:allow-temp-read-recursive"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "fs:allow-temp-write"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "fs:allow-temp-write-recursive"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "fs:allow-template-meta"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "fs:allow-template-meta-recursive"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "fs:allow-template-read"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "fs:allow-template-read-recursive"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "fs:allow-template-write"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "fs:allow-template-write-recursive"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "fs:allow-video-meta"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "fs:allow-video-meta-recursive"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "fs:allow-video-read"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "fs:allow-video-read-recursive"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "fs:allow-video-write"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "fs:allow-video-write-recursive"
|
|
},
|
|
{
|
|
"description": "这默认拒绝访问危险的 Tauri 相关文件和文件夹。\n#### 此权限集包括:\n\n- `deny-webview-data-linux`\n- `deny-webview-data-windows`",
|
|
"type": "string",
|
|
"const": "fs:deny-default",
|
|
"markdownDescription": "这默认拒绝访问危险的 Tauri 相关文件和文件夹。\n#### 此权限集包括:\n\n- `deny-webview-data-linux`\n- `deny-webview-data-windows`"
|
|
},
|
|
{
|
|
"description": "在没有任何预配置范围的情况下启用 copy_file 命令。",
|
|
"type": "string",
|
|
"const": "fs:allow-copy-file",
|
|
"markdownDescription": "在没有任何预配置范围的情况下启用 copy_file 命令。"
|
|
},
|
|
{
|
|
"description": "在没有任何预配置范围的情况下启用 create 命令。",
|
|
"type": "string",
|
|
"const": "fs:allow-create",
|
|
"markdownDescription": "在没有任何预配置范围的情况下启用 create 命令。"
|
|
},
|
|
{
|
|
"description": "在没有任何预配置范围的情况下启用 exists 命令。",
|
|
"type": "string",
|
|
"const": "fs:allow-exists",
|
|
"markdownDescription": "在没有任何预配置范围的情况下启用 exists 命令。"
|
|
},
|
|
{
|
|
"description": "在没有任何预配置范围的情况下启用 fstat 命令。",
|
|
"type": "string",
|
|
"const": "fs:allow-fstat",
|
|
"markdownDescription": "在没有任何预配置范围的情况下启用 fstat 命令。"
|
|
},
|
|
{
|
|
"description": "在没有任何预配置范围的情况下启用 ftruncate 命令。",
|
|
"type": "string",
|
|
"const": "fs:allow-ftruncate",
|
|
"markdownDescription": "在没有任何预配置范围的情况下启用 ftruncate 命令。"
|
|
},
|
|
{
|
|
"description": "在没有任何预配置范围的情况下启用 lstat 命令。",
|
|
"type": "string",
|
|
"const": "fs:allow-lstat",
|
|
"markdownDescription": "在没有任何预配置范围的情况下启用 lstat 命令。"
|
|
},
|
|
{
|
|
"description": "在没有任何预配置范围的情况下启用 mkdir 命令。",
|
|
"type": "string",
|
|
"const": "fs:allow-mkdir",
|
|
"markdownDescription": "在没有任何预配置范围的情况下启用 mkdir 命令。"
|
|
},
|
|
{
|
|
"description": "在没有任何预配置范围的情况下启用 open 命令。",
|
|
"type": "string",
|
|
"const": "fs:allow-open",
|
|
"markdownDescription": "在没有任何预配置范围的情况下启用 open 命令。"
|
|
},
|
|
{
|
|
"description": "在没有任何预配置范围的情况下启用 read 命令。",
|
|
"type": "string",
|
|
"const": "fs:allow-read",
|
|
"markdownDescription": "在没有任何预配置范围的情况下启用 read 命令。"
|
|
},
|
|
{
|
|
"description": "在没有任何预配置范围的情况下启用 read_dir 命令。",
|
|
"type": "string",
|
|
"const": "fs:allow-read-dir",
|
|
"markdownDescription": "在没有任何预配置范围的情况下启用 read_dir 命令。"
|
|
},
|
|
{
|
|
"description": "在没有任何预配置范围的情况下启用 read_file 命令。",
|
|
"type": "string",
|
|
"const": "fs:allow-read-file",
|
|
"markdownDescription": "在没有任何预配置范围的情况下启用 read_file 命令。"
|
|
},
|
|
{
|
|
"description": "在没有任何预配置范围的情况下启用 read_text_file 命令。",
|
|
"type": "string",
|
|
"const": "fs:allow-read-text-file",
|
|
"markdownDescription": "在没有任何预配置范围的情况下启用 read_text_file 命令。"
|
|
},
|
|
{
|
|
"description": "在没有任何预配置范围的情况下启用 read_text_file_lines 命令。",
|
|
"type": "string",
|
|
"const": "fs:allow-read-text-file-lines",
|
|
"markdownDescription": "在没有任何预配置范围的情况下启用 read_text_file_lines 命令。"
|
|
},
|
|
{
|
|
"description": "在没有任何预配置范围的情况下启用 read_text_file_lines_next 命令。",
|
|
"type": "string",
|
|
"const": "fs:allow-read-text-file-lines-next",
|
|
"markdownDescription": "在没有任何预配置范围的情况下启用 read_text_file_lines_next 命令。"
|
|
},
|
|
{
|
|
"description": "在没有任何预配置范围的情况下启用 remove 命令。",
|
|
"type": "string",
|
|
"const": "fs:allow-remove",
|
|
"markdownDescription": "在没有任何预配置范围的情况下启用 remove 命令。"
|
|
},
|
|
{
|
|
"description": "在没有任何预配置范围的情况下启用 rename 命令。",
|
|
"type": "string",
|
|
"const": "fs:allow-rename",
|
|
"markdownDescription": "在没有任何预配置范围的情况下启用 rename 命令。"
|
|
},
|
|
{
|
|
"description": "在没有任何预配置范围的情况下启用 seek 命令。",
|
|
"type": "string",
|
|
"const": "fs:allow-seek",
|
|
"markdownDescription": "在没有任何预配置范围的情况下启用 seek 命令。"
|
|
},
|
|
{
|
|
"description": "在没有任何预配置范围的情况下启用 size 命令。",
|
|
"type": "string",
|
|
"const": "fs:allow-size",
|
|
"markdownDescription": "在没有任何预配置范围的情况下启用 size 命令。"
|
|
},
|
|
{
|
|
"description": "在没有任何预配置范围的情况下启用 stat 命令。",
|
|
"type": "string",
|
|
"const": "fs:allow-stat",
|
|
"markdownDescription": "在没有任何预配置范围的情况下启用 stat 命令。"
|
|
},
|
|
{
|
|
"description": "在没有任何预配置范围的情况下启用 truncate 命令。",
|
|
"type": "string",
|
|
"const": "fs:allow-truncate",
|
|
"markdownDescription": "在没有任何预配置范围的情况下启用 truncate 命令。"
|
|
},
|
|
{
|
|
"description": "在没有任何预配置范围的情况下启用 unwatch 命令。",
|
|
"type": "string",
|
|
"const": "fs:allow-unwatch",
|
|
"markdownDescription": "在没有任何预配置范围的情况下启用 unwatch 命令。"
|
|
},
|
|
{
|
|
"description": "在没有任何预配置范围的情况下启用 watch 命令。",
|
|
"type": "string",
|
|
"const": "fs:allow-watch",
|
|
"markdownDescription": "在没有任何预配置范围的情况下启用 watch 命令。"
|
|
},
|
|
{
|
|
"description": "在没有任何预配置范围的情况下启用 write 命令。",
|
|
"type": "string",
|
|
"const": "fs:allow-write",
|
|
"markdownDescription": "在没有任何预配置范围的情况下启用 write 命令。"
|
|
},
|
|
{
|
|
"description": "在没有任何预配置范围的情况下启用 write_file 命令。",
|
|
"type": "string",
|
|
"const": "fs:allow-write-file",
|
|
"markdownDescription": "在没有任何预配置范围的情况下启用 write_file 命令。"
|
|
},
|
|
{
|
|
"description": "在没有任何预配置范围的情况下启用 write_text_file 命令。",
|
|
"type": "string",
|
|
"const": "fs:allow-write-text-file",
|
|
"markdownDescription": "在没有任何预配置范围的情况下启用 write_text_file 命令。"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "fs:create-app-specific-dirs"
|
|
},
|
|
{
|
|
"description": "在没有任何预配置范围的情况下拒绝 copy_file 命令。",
|
|
"type": "string",
|
|
"const": "fs:deny-copy-file",
|
|
"markdownDescription": "在没有任何预配置范围的情况下拒绝 copy_file 命令。"
|
|
},
|
|
{
|
|
"description": "在没有任何预配置范围的情况下拒绝 create 命令。",
|
|
"type": "string",
|
|
"const": "fs:deny-create",
|
|
"markdownDescription": "在没有任何预配置范围的情况下拒绝 create 命令。"
|
|
},
|
|
{
|
|
"description": "在没有任何预配置范围的情况下拒绝 exists 命令。",
|
|
"type": "string",
|
|
"const": "fs:deny-exists",
|
|
"markdownDescription": "在没有任何预配置范围的情况下拒绝 exists 命令。"
|
|
},
|
|
{
|
|
"description": "在没有任何预配置范围的情况下拒绝 fstat 命令。",
|
|
"type": "string",
|
|
"const": "fs:deny-fstat",
|
|
"markdownDescription": "在没有任何预配置范围的情况下拒绝 fstat 命令。"
|
|
},
|
|
{
|
|
"description": "在没有任何预配置范围的情况下拒绝 ftruncate 命令。",
|
|
"type": "string",
|
|
"const": "fs:deny-ftruncate",
|
|
"markdownDescription": "在没有任何预配置范围的情况下拒绝 ftruncate 命令。"
|
|
},
|
|
{
|
|
"description": "在没有任何预配置范围的情况下拒绝 lstat 命令。",
|
|
"type": "string",
|
|
"const": "fs:deny-lstat",
|
|
"markdownDescription": "在没有任何预配置范围的情况下拒绝 lstat 命令。"
|
|
},
|
|
{
|
|
"description": "在没有任何预配置范围的情况下拒绝 mkdir 命令。",
|
|
"type": "string",
|
|
"const": "fs:deny-mkdir",
|
|
"markdownDescription": "在没有任何预配置范围的情况下拒绝 mkdir 命令。"
|
|
},
|
|
{
|
|
"description": "在没有任何预配置范围的情况下拒绝 open 命令。",
|
|
"type": "string",
|
|
"const": "fs:deny-open",
|
|
"markdownDescription": "在没有任何预配置范围的情况下拒绝 open 命令。"
|
|
},
|
|
{
|
|
"description": "在没有任何预配置范围的情况下拒绝 read 命令。",
|
|
"type": "string",
|
|
"const": "fs:deny-read",
|
|
"markdownDescription": "在没有任何预配置范围的情况下拒绝 read 命令。"
|
|
},
|
|
{
|
|
"description": "在没有任何预配置范围的情况下拒绝 read_dir 命令。",
|
|
"type": "string",
|
|
"const": "fs:deny-read-dir",
|
|
"markdownDescription": "在没有任何预配置范围的情况下拒绝 read_dir 命令。"
|
|
},
|
|
{
|
|
"description": "在没有任何预配置范围的情况下拒绝 read_file 命令。",
|
|
"type": "string",
|
|
"const": "fs:deny-read-file",
|
|
"markdownDescription": "在没有任何预配置范围的情况下拒绝 read_file 命令。"
|
|
},
|
|
{
|
|
"description": "在没有任何预配置范围的情况下拒绝 read_text_file 命令。",
|
|
"type": "string",
|
|
"const": "fs:deny-read-text-file",
|
|
"markdownDescription": "在没有任何预配置范围的情况下拒绝 read_text_file 命令。"
|
|
},
|
|
{
|
|
"description": "在没有任何预配置范围的情况下拒绝 read_text_file_lines 命令。",
|
|
"type": "string",
|
|
"const": "fs:deny-read-text-file-lines",
|
|
"markdownDescription": "在没有任何预配置范围的情况下拒绝 read_text_file_lines 命令。"
|
|
},
|
|
{
|
|
"description": "在没有任何预配置范围的情况下拒绝 read_text_file_lines_next 命令。",
|
|
"type": "string",
|
|
"const": "fs:deny-read-text-file-lines-next",
|
|
"markdownDescription": "在没有任何预配置范围的情况下拒绝 read_text_file_lines_next 命令。"
|
|
},
|
|
{
|
|
"description": "在没有任何预配置范围的情况下拒绝 remove 命令。",
|
|
"type": "string",
|
|
"const": "fs:deny-remove",
|
|
"markdownDescription": "在没有任何预配置范围的情况下拒绝 remove 命令。"
|
|
},
|
|
{
|
|
"description": "在没有任何预配置范围的情况下拒绝 rename 命令。",
|
|
"type": "string",
|
|
"const": "fs:deny-rename",
|
|
"markdownDescription": "在没有任何预配置范围的情况下拒绝 rename 命令。"
|
|
},
|
|
{
|
|
"description": "在没有任何预配置范围的情况下拒绝 seek 命令。",
|
|
"type": "string",
|
|
"const": "fs:deny-seek",
|
|
"markdownDescription": "在没有任何预配置范围的情况下拒绝 seek 命令。"
|
|
},
|
|
{
|
|
"description": "在没有任何预配置范围的情况下拒绝 size 命令。",
|
|
"type": "string",
|
|
"const": "fs:deny-size",
|
|
"markdownDescription": "在没有任何预配置范围的情况下拒绝 size 命令。"
|
|
},
|
|
{
|
|
"description": "在没有任何预配置范围的情况下拒绝 stat 命令。",
|
|
"type": "string",
|
|
"const": "fs:deny-stat",
|
|
"markdownDescription": "在没有任何预配置范围的情况下拒绝 stat 命令。"
|
|
},
|
|
{
|
|
"description": "在没有任何预配置范围的情况下拒绝 truncate 命令。",
|
|
"type": "string",
|
|
"const": "fs:deny-truncate",
|
|
"markdownDescription": "在没有任何预配置范围的情况下拒绝 truncate 命令。"
|
|
},
|
|
{
|
|
"description": "在没有任何预配置范围的情况下拒绝 unwatch 命令。",
|
|
"type": "string",
|
|
"const": "fs:deny-unwatch",
|
|
"markdownDescription": "在没有任何预配置范围的情况下拒绝 unwatch 命令。"
|
|
},
|
|
{
|
|
"description": "在没有任何预配置范围的情况下拒绝 watch 命令。",
|
|
"type": "string",
|
|
"const": "fs:deny-watch",
|
|
"markdownDescription": "在没有任何预配置范围的情况下拒绝 watch 命令。"
|
|
},
|
|
{
|
|
"description": "这拒绝读取 Linux 上的 `$APPLOCALDATA` 文件夹,因为 webview 数据和配置值存储在这里。\n允许访问可能导致敏感信息泄露,应仔细考虑。",
|
|
"type": "string",
|
|
"const": "fs:deny-webview-data-linux",
|
|
"markdownDescription": "这拒绝读取 Linux 上的 `$APPLOCALDATA` 文件夹,因为 webview 数据和配置值存储在这里。\n允许访问可能导致敏感信息泄露,应仔细考虑。"
|
|
},
|
|
{
|
|
"description": "这拒绝读取 Windows 上的 `$APPLOCALDATA/EBWebView` 文件夹,因为 webview 数据和配置值存储在这里。\n允许访问可能导致敏感信息泄露,应仔细考虑。",
|
|
"type": "string",
|
|
"const": "fs:deny-webview-data-windows",
|
|
"markdownDescription": "这拒绝读取 Windows 上的 `$APPLOCALDATA/EBWebView` 文件夹,因为 webview 数据和配置值存储在这里。\n允许访问可能导致敏感信息泄露,应仔细考虑。"
|
|
},
|
|
{
|
|
"description": "在没有任何预配置范围的情况下拒绝 write 命令。",
|
|
"type": "string",
|
|
"const": "fs:deny-write",
|
|
"markdownDescription": "在没有任何预配置范围的情况下拒绝 write 命令。"
|
|
},
|
|
{
|
|
"description": "在没有任何预配置范围的情况下拒绝 write_file 命令。",
|
|
"type": "string",
|
|
"const": "fs:deny-write-file",
|
|
"markdownDescription": "在没有任何预配置范围的情况下拒绝 write_file 命令。"
|
|
},
|
|
{
|
|
"description": "在没有任何预配置范围的情况下拒绝 write_text_file 命令。",
|
|
"type": "string",
|
|
"const": "fs:deny-write-text-file",
|
|
"markdownDescription": "在没有任何预配置范围的情况下拒绝 write_text_file 命令。"
|
|
},
|
|
{
|
|
"description": "这在没有任何预配置可访问路径的情况下启用所有与读取相关的命令。",
|
|
"type": "string",
|
|
"const": "fs:read-all",
|
|
"markdownDescription": "这在没有任何预配置可访问路径的情况下启用所有与读取相关的命令。"
|
|
},
|
|
{
|
|
"description": "此权限允许在应用程序特定的基本目录上进行递归读取功能。",
|
|
"type": "string",
|
|
"const": "fs:read-app-specific-dirs-recursive",
|
|
"markdownDescription": "此权限允许在应用程序特定的基本目录上进行递归读取功能。"
|
|
},
|
|
{
|
|
"description": "这在没有任何预配置可访问路径的情况下启用目录读取和文件元数据相关命令。",
|
|
"type": "string",
|
|
"const": "fs:read-dirs",
|
|
"markdownDescription": "这在没有任何预配置可访问路径的情况下启用目录读取和文件元数据相关命令。"
|
|
},
|
|
{
|
|
"description": "这在没有任何预配置可访问路径的情况下启用文件读取相关命令。",
|
|
"type": "string",
|
|
"const": "fs:read-files",
|
|
"markdownDescription": "这在没有任何预配置可访问路径的情况下启用文件读取相关命令。"
|
|
},
|
|
{
|
|
"description": "这在没有任何预配置可访问路径的情况下启用所有索引或元数据相关命令。",
|
|
"type": "string",
|
|
"const": "fs:read-meta",
|
|
"markdownDescription": "这在没有任何预配置可访问路径的情况下启用所有索引或元数据相关命令。"
|
|
},
|
|
{
|
|
"description": "一个可用于修改全局范围的空权限。\n\n## 示例\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": "fs:scope",
|
|
"markdownDescription": "一个可用于修改全局范围的空权限。\n\n## 示例\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": "fs:scope-app"
|
|
},
|
|
{
|
|
"description": "此范围允许列出应用程序目录中的所有文件和文件夹。",
|
|
"type": "string",
|
|
"const": "fs:scope-app-index",
|
|
"markdownDescription": "此范围允许列出应用程序目录中的所有文件和文件夹。"
|
|
},
|
|
{
|
|
"description": "此范围允许对完整的应用程序文件夹进行递归访问,包括子目录和文件。",
|
|
"type": "string",
|
|
"const": "fs:scope-app-recursive",
|
|
"markdownDescription": "此范围允许对完整的应用程序文件夹进行递归访问,包括子目录和文件。"
|
|
},
|
|
{
|
|
"description": "此范围允许访问 `$APPCACHE` 文件夹中顶级目录的所有文件并列出其内容。",
|
|
"type": "string",
|
|
"const": "fs:scope-appcache",
|
|
"markdownDescription": "此范围允许访问 `$APPCACHE` 文件夹中顶级目录的所有文件并列出其内容。"
|
|
},
|
|
{
|
|
"description": "此范围允许列出 `$APPCACHE` 文件夹中的所有文件和文件夹。",
|
|
"type": "string",
|
|
"const": "fs:scope-appcache-index",
|
|
"markdownDescription": "此范围允许列出 `$APPCACHE` 文件夹中的所有文件和文件夹。"
|
|
},
|
|
{
|
|
"description": "此范围允许对完整的 `$APPCACHE` 文件夹进行递归访问,包括子目录和文件。",
|
|
"type": "string",
|
|
"const": "fs:scope-appcache-recursive",
|
|
"markdownDescription": "此范围允许对完整的 `$APPCACHE` 文件夹进行递归访问,包括子目录和文件。"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "fs:scope-appconfig"
|
|
},
|
|
{
|
|
"description": "此范围允许列出 `$APPCONFIG` 文件夹中的所有文件和文件夹。",
|
|
"type": "string",
|
|
"const": "fs:scope-appconfig-index",
|
|
"markdownDescription": "此范围允许列出 `$APPCONFIG` 文件夹中的所有文件和文件夹。"
|
|
},
|
|
{
|
|
"description": "此范围允许对完整的 `$APPCONFIG` 文件夹进行递归访问,包括子目录和文件。",
|
|
"type": "string",
|
|
"const": "fs:scope-appconfig-recursive",
|
|
"markdownDescription": "此范围允许对完整的 `$APPCONFIG` 文件夹进行递归访问,包括子目录和文件。"
|
|
},
|
|
{
|
|
"description": "此范围允许访问 `$APPDATA` 文件夹中顶级目录的所有文件并列出其内容。",
|
|
"type": "string",
|
|
"const": "fs:scope-appdata",
|
|
"markdownDescription": "此范围允许访问 `$APPDATA` 文件夹中顶级目录的所有文件并列出其内容。"
|
|
},
|
|
{
|
|
"description": "此范围允许列出 `$APPDATA` 文件夹中的所有文件和文件夹。",
|
|
"type": "string",
|
|
"const": "fs:scope-appdata-index",
|
|
"markdownDescription": "此范围允许列出 `$APPDATA` 文件夹中的所有文件和文件夹。"
|
|
},
|
|
{
|
|
"description": "此范围允许对完整的 `$APPDATA` 文件夹进行递归访问,包括子目录和文件。",
|
|
"type": "string",
|
|
"const": "fs:scope-appdata-recursive",
|
|
"markdownDescription": "此范围允许对完整的 `$APPDATA` 文件夹进行递归访问,包括子目录和文件。"
|
|
},
|
|
{
|
|
"description": "此范围允许访问 `$APPLOCALDATA` 文件夹中顶级目录的所有文件并列出其内容。",
|
|
"type": "string",
|
|
"const": "fs:scope-applocaldata",
|
|
"markdownDescription": "此范围允许访问 `$APPLOCALDATA` 文件夹中顶级目录的所有文件并列出其内容。"
|
|
},
|
|
{
|
|
"description": "此范围允许列出 `$APPLOCALDATA` 文件夹中的所有文件和文件夹。",
|
|
"type": "string",
|
|
"const": "fs:scope-applocaldata-index",
|
|
"markdownDescription": "此范围允许列出 `$APPLOCALDATA` 文件夹中的所有文件和文件夹。"
|
|
},
|
|
{
|
|
"description": "此范围允许对完整的 `$APPLOCALDATA` 文件夹进行递归访问,包括子目录和文件。",
|
|
"type": "string",
|
|
"const": "fs:scope-applocaldata-recursive",
|
|
"markdownDescription": "此范围允许对完整的 `$APPLOCALDATA` 文件夹进行递归访问,包括子目录和文件。"
|
|
},
|
|
{
|
|
"description": "此范围允许访问 `$APPLOG` 文件夹中顶级目录的所有文件并列出其内容。",
|
|
"type": "string",
|
|
"const": "fs:scope-applog",
|
|
"markdownDescription": "此范围允许访问 `$APPLOG` 文件夹中顶级目录的所有文件并列出其内容。"
|
|
},
|
|
{
|
|
"description": "此范围允许列出 `$APPLOG` 文件夹中的所有文件和文件夹。",
|
|
"type": "string",
|
|
"const": "fs:scope-applog-index",
|
|
"markdownDescription": "此范围允许列出 `$APPLOG` 文件夹中的所有文件和文件夹。"
|
|
},
|
|
{
|
|
"description": "此范围允许对完整的 `$APPLOG` 文件夹进行递归访问,包括子目录和文件。",
|
|
"type": "string",
|
|
"const": "fs:scope-applog-recursive",
|
|
"markdownDescription": "此范围允许对完整的 `$APPLOG` 文件夹进行递归访问,包括子目录和文件。"
|
|
},
|
|
{
|
|
"description": "此范围允许访问 `$AUDIO` 文件夹中顶级目录的所有文件并列出其内容。",
|
|
"type": "string",
|
|
"const": "fs:scope-audio",
|
|
"markdownDescription": "此范围允许访问 `$AUDIO` 文件夹中顶级目录的所有文件并列出其内容。"
|
|
},
|
|
{
|
|
"description": "此范围允许列出 `$AUDIO` 文件夹中的所有文件和文件夹。",
|
|
"type": "string",
|
|
"const": "fs:scope-audio-index",
|
|
"markdownDescription": "此范围允许列出 `$AUDIO` 文件夹中的所有文件和文件夹。"
|
|
},
|
|
{
|
|
"description": "此范围允许对完整的 `$AUDIO` 文件夹进行递归访问,包括子目录和文件。",
|
|
"type": "string",
|
|
"const": "fs:scope-audio-recursive",
|
|
"markdownDescription": "此范围允许对完整的 `$AUDIO` 文件夹进行递归访问,包括子目录和文件。"
|
|
},
|
|
{
|
|
"description": "此范围允许访问 `$CACHE` 文件夹中顶级目录的所有文件并列出其内容。",
|
|
"type": "string",
|
|
"const": "fs:scope-cache",
|
|
"markdownDescription": "此范围允许访问 `$CACHE` 文件夹中顶级目录的所有文件并列出其内容。"
|
|
},
|
|
{
|
|
"description": "此范围允许列出 `$CACHE` 文件夹中的所有文件和文件夹。",
|
|
"type": "string",
|
|
"const": "fs:scope-cache-index",
|
|
"markdownDescription": "此范围允许列出 `$CACHE` 文件夹中的所有文件和文件夹。"
|
|
},
|
|
{
|
|
"description": "此范围允许对完整的 `$CACHE` 文件夹进行递归访问,包括子目录和文件。",
|
|
"type": "string",
|
|
"const": "fs:scope-cache-recursive",
|
|
"markdownDescription": "此范围允许对完整的 `$CACHE` 文件夹进行递归访问,包括子目录和文件。"
|
|
},
|
|
{
|
|
"description": "此范围允许访问 `$CONFIG` 文件夹中顶级目录的所有文件并列出其内容。",
|
|
"type": "string",
|
|
"const": "fs:scope-config",
|
|
"markdownDescription": "此范围允许访问 `$CONFIG` 文件夹中顶级目录的所有文件并列出其内容。"
|
|
},
|
|
{
|
|
"description": "此范围允许列出 `$CONFIG` 文件夹中的所有文件和文件夹。",
|
|
"type": "string",
|
|
"const": "fs:scope-config-index",
|
|
"markdownDescription": "此范围允许列出 `$CONFIG` 文件夹中的所有文件和文件夹。"
|
|
},
|
|
{
|
|
"description": "此范围允许对完整的 `$CONFIG` 文件夹进行递归访问,包括子目录和文件。",
|
|
"type": "string",
|
|
"const": "fs:scope-config-recursive",
|
|
"markdownDescription": "此范围允许对完整的 `$CONFIG` 文件夹进行递归访问,包括子目录和文件。"
|
|
},
|
|
{
|
|
"description": "此范围允许访问 `$DATA` 文件夹中顶级目录的所有文件并列出其内容。",
|
|
"type": "string",
|
|
"const": "fs:scope-data",
|
|
"markdownDescription": "此范围允许访问 `$DATA` 文件夹中顶级目录的所有文件并列出其内容。"
|
|
},
|
|
{
|
|
"description": "此范围允许列出 `$DATA` 文件夹中的所有文件和文件夹。",
|
|
"type": "string",
|
|
"const": "fs:scope-data-index",
|
|
"markdownDescription": "此范围允许列出 `$DATA` 文件夹中的所有文件和文件夹。"
|
|
},
|
|
{
|
|
"description": "此范围允许对完整的 `$DATA` 文件夹进行递归访问,包括子目录和文件。",
|
|
"type": "string",
|
|
"const": "fs:scope-data-recursive",
|
|
"markdownDescription": "此范围允许对完整的 `$DATA` 文件夹进行递归访问,包括子目录和文件。"
|
|
},
|
|
{
|
|
"description": "此范围允许访问 `$DESKTOP` 文件夹中顶级目录的所有文件并列出其内容。",
|
|
"type": "string",
|
|
"const": "fs:scope-desktop",
|
|
"markdownDescription": "此范围允许访问 `$DESKTOP` 文件夹中顶级目录的所有文件并列出其内容。"
|
|
},
|
|
{
|
|
"description": "此范围允许列出 `$DESKTOP` 文件夹中的所有文件和文件夹。",
|
|
"type": "string",
|
|
"const": "fs:scope-desktop-index",
|
|
"markdownDescription": "此范围允许列出 `$DESKTOP` 文件夹中的所有文件和文件夹。"
|
|
},
|
|
{
|
|
"description": "此范围允许对完整的 `$DESKTOP` 文件夹进行递归访问,包括子目录和文件。",
|
|
"type": "string",
|
|
"const": "fs:scope-desktop-recursive",
|
|
"markdownDescription": "此范围允许对完整的 `$DESKTOP` 文件夹进行递归访问,包括子目录和文件。"
|
|
},
|
|
{
|
|
"description": "此范围允许访问 `$DOCUMENT` 文件夹中顶级目录的所有文件并列出其内容。",
|
|
"type": "string",
|
|
"const": "fs:scope-document",
|
|
"markdownDescription": "此范围允许访问 `$DOCUMENT` 文件夹中顶级目录的所有文件并列出其内容。"
|
|
},
|
|
{
|
|
"description": "此范围允许列出 `$DOCUMENT` 文件夹中的所有文件和文件夹。",
|
|
"type": "string",
|
|
"const": "fs:scope-document-index",
|
|
"markdownDescription": "此范围允许列出 `$DOCUMENT` 文件夹中的所有文件和文件夹。"
|
|
},
|
|
{
|
|
"description": "此范围允许对完整的 `$DOCUMENT` 文件夹进行递归访问,包括子目录和文件。",
|
|
"type": "string",
|
|
"const": "fs:scope-document-recursive",
|
|
"markdownDescription": "此范围允许对完整的 `$DOCUMENT` 文件夹进行递归访问,包括子目录和文件。"
|
|
},
|
|
{
|
|
"description": "此范围允许访问 `$DOWNLOAD` 文件夹中顶级目录的所有文件并列出其内容。",
|
|
"type": "string",
|
|
"const": "fs:scope-download",
|
|
"markdownDescription": "此范围允许访问 `$DOWNLOAD` 文件夹中顶级目录的所有文件并列出其内容。"
|
|
},
|
|
{
|
|
"description": "此范围允许列出 `$DOWNLOAD` 文件夹中的所有文件和文件夹。",
|
|
"type": "string",
|
|
"const": "fs:scope-download-index",
|
|
"markdownDescription": "此范围允许列出 `$DOWNLOAD` 文件夹中的所有文件和文件夹。"
|
|
},
|
|
{
|
|
"description": "此范围允许对完整的 `$DOWNLOAD` 文件夹进行递归访问,包括子目录和文件。",
|
|
"type": "string",
|
|
"const": "fs:scope-download-recursive",
|
|
"markdownDescription": "此范围允许对完整的 `$DOWNLOAD` 文件夹进行递归访问,包括子目录和文件。"
|
|
},
|
|
{
|
|
"description": "此范围允许访问 `$EXE` 文件夹中顶级目录的所有文件并列出其内容。",
|
|
"type": "string",
|
|
"const": "fs:scope-exe",
|
|
"markdownDescription": "此范围允许访问 `$EXE` 文件夹中顶级目录的所有文件并列出其内容。"
|
|
},
|
|
{
|
|
"description": "此范围允许列出 `$EXE` 文件夹中的所有文件和文件夹。",
|
|
"type": "string",
|
|
"const": "fs:scope-exe-index",
|
|
"markdownDescription": "此范围允许列出 `$EXE` 文件夹中的所有文件和文件夹。"
|
|
},
|
|
{
|
|
"description": "此范围允许对完整的 `$EXE` 文件夹进行递归访问,包括子目录和文件。",
|
|
"type": "string",
|
|
"const": "fs:scope-exe-recursive",
|
|
"markdownDescription": "此范围允许对完整的 `$EXE` 文件夹进行递归访问,包括子目录和文件。"
|
|
},
|
|
{
|
|
"description": "此范围允许访问 `$FONT` 文件夹中顶级目录的所有文件并列出其内容。",
|
|
"type": "string",
|
|
"const": "fs:scope-font",
|
|
"markdownDescription": "此范围允许访问 `$FONT` 文件夹中顶级目录的所有文件并列出其内容。"
|
|
},
|
|
{
|
|
"description": "此范围允许列出 `$FONT` 文件夹中的所有文件和文件夹。",
|
|
"type": "string",
|
|
"const": "fs:scope-font-index",
|
|
"markdownDescription": "此范围允许列出 `$FONT` 文件夹中的所有文件和文件夹。"
|
|
},
|
|
{
|
|
"description": "此范围允许对完整的 `$FONT` 文件夹进行递归访问,包括子目录和文件。",
|
|
"type": "string",
|
|
"const": "fs:scope-font-recursive",
|
|
"markdownDescription": "此范围允许对完整的 `$FONT` 文件夹进行递归访问,包括子目录和文件。"
|
|
},
|
|
{
|
|
"description": "此范围允许访问 `$HOME` 文件夹中顶级目录的所有文件并列出其内容。",
|
|
"type": "string",
|
|
"const": "fs:scope-home",
|
|
"markdownDescription": "此范围允许访问 `$HOME` 文件夹中顶级目录的所有文件并列出其内容。"
|
|
},
|
|
{
|
|
"description": "此范围允许列出 `$HOME` 文件夹中的所有文件和文件夹。",
|
|
"type": "string",
|
|
"const": "fs:scope-home-index",
|
|
"markdownDescription": "此范围允许列出 `$HOME` 文件夹中的所有文件和文件夹。"
|
|
},
|
|
{
|
|
"description": "此范围允许对完整的 `$HOME` 文件夹进行递归访问,包括子目录和文件。",
|
|
"type": "string",
|
|
"const": "fs:scope-home-recursive",
|
|
"markdownDescription": "此范围允许对完整的 `$HOME` 文件夹进行递归访问,包括子目录和文件。"
|
|
},
|
|
{
|
|
"description": "此范围允许访问 `$LOCALDATA` 文件夹中顶级目录的所有文件并列出其内容。",
|
|
"type": "string",
|
|
"const": "fs:scope-localdata",
|
|
"markdownDescription": "此范围允许访问 `$LOCALDATA` 文件夹中顶级目录的所有文件并列出其内容。"
|
|
},
|
|
{
|
|
"description": "此范围允许列出 `$LOCALDATA` 文件夹中的所有文件和文件夹。",
|
|
"type": "string",
|
|
"const": "fs:scope-localdata-index",
|
|
"markdownDescription": "此范围允许列出 `$LOCALDATA` 文件夹中的所有文件和文件夹。"
|
|
},
|
|
{
|
|
"description": "此范围允许对完整的 `$LOCALDATA` 文件夹进行递归访问,包括子目录和文件。",
|
|
"type": "string",
|
|
"const": "fs:scope-localdata-recursive",
|
|
"markdownDescription": "此范围允许对完整的 `$LOCALDATA` 文件夹进行递归访问,包括子目录和文件。"
|
|
},
|
|
{
|
|
"description": "此范围允许访问 `$LOG` 文件夹中顶级目录的所有文件并列出其内容。",
|
|
"type": "string",
|
|
"const": "fs:scope-log",
|
|
"markdownDescription": "此范围允许访问 `$LOG` 文件夹中顶级目录的所有文件并列出其内容。"
|
|
},
|
|
{
|
|
"description": "此范围允许列出 `$LOG` 文件夹中的所有文件和文件夹。",
|
|
"type": "string",
|
|
"const": "fs:scope-log-index",
|
|
"markdownDescription": "此范围允许列出 `$LOG` 文件夹中的所有文件和文件夹。"
|
|
},
|
|
{
|
|
"description": "此范围允许对完整的 `$LOG` 文件夹进行递归访问,包括子目录和文件。",
|
|
"type": "string",
|
|
"const": "fs:scope-log-recursive",
|
|
"markdownDescription": "此范围允许对完整的 `$LOG` 文件夹进行递归访问,包括子目录和文件。"
|
|
},
|
|
{
|
|
"description": "此范围允许访问 `$PICTURE` 文件夹中顶级目录的所有文件并列出其内容。",
|
|
"type": "string",
|
|
"const": "fs:scope-picture",
|
|
"markdownDescription": "此范围允许访问 `$PICTURE` 文件夹中顶级目录的所有文件并列出其内容。"
|
|
},
|
|
{
|
|
"description": "此范围允许列出 `$PICTURE` 文件夹中的所有文件和文件夹。",
|
|
"type": "string",
|
|
"const": "fs:scope-picture-index",
|
|
"markdownDescription": "此范围允许列出 `$PICTURE` 文件夹中的所有文件和文件夹。"
|
|
},
|
|
{
|
|
"description": "此范围允许对完整的 `$PICTURE` 文件夹进行递归访问,包括子目录和文件。",
|
|
"type": "string",
|
|
"const": "fs:scope-picture-recursive",
|
|
"markdownDescription": "此范围允许对完整的 `$PICTURE` 文件夹进行递归访问,包括子目录和文件。"
|
|
},
|
|
{
|
|
"description": "此范围允许访问 `$PUBLIC` 文件夹中顶级目录的所有文件并列出其内容。",
|
|
"type": "string",
|
|
"const": "fs:scope-public",
|
|
"markdownDescription": "此范围允许访问 `$PUBLIC` 文件夹中顶级目录的所有文件并列出其内容。"
|
|
},
|
|
{
|
|
"description": "此范围允许列出 `$PUBLIC` 文件夹中的所有文件和文件夹。",
|
|
"type": "string",
|
|
"const": "fs:scope-public-index",
|
|
"markdownDescription": "此范围允许列出 `$PUBLIC` 文件夹中的所有文件和文件夹。"
|
|
},
|
|
{
|
|
"description": "此范围允许对完整的 `$PUBLIC` 文件夹进行递归访问,包括子目录和文件。",
|
|
"type": "string",
|
|
"const": "fs:scope-public-recursive",
|
|
"markdownDescription": "此范围允许对完整的 `$PUBLIC` 文件夹进行递归访问,包括子目录和文件。"
|
|
},
|
|
{
|
|
"description": "此范围允许访问 `$RESOURCE` 文件夹中顶级目录的所有文件并列出其内容。",
|
|
"type": "string",
|
|
"const": "fs:scope-resource",
|
|
"markdownDescription": "此范围允许访问 `$RESOURCE` 文件夹中顶级目录的所有文件并列出其内容。"
|
|
},
|
|
{
|
|
"description": "此范围允许列出 `$RESOURCE` 文件夹中的所有文件和文件夹。",
|
|
"type": "string",
|
|
"const": "fs:scope-resource-index",
|
|
"markdownDescription": "此范围允许列出 `$RESOURCE` 文件夹中的所有文件和文件夹。"
|
|
},
|
|
{
|
|
"description": "此范围允许对完整的 `$RESOURCE` 文件夹进行递归访问,包括子目录和文件。",
|
|
"type": "string",
|
|
"const": "fs:scope-resource-recursive",
|
|
"markdownDescription": "此范围允许对完整的 `$RESOURCE` 文件夹进行递归访问,包括子目录和文件。"
|
|
},
|
|
{
|
|
"description": "此范围允许访问 `$RUNTIME` 文件夹中顶级目录的所有文件并列出其内容。",
|
|
"type": "string",
|
|
"const": "fs:scope-runtime",
|
|
"markdownDescription": "此范围允许访问 `$RUNTIME` 文件夹中顶级目录的所有文件并列出其内容。"
|
|
},
|
|
{
|
|
"description": "此范围允许列出 `$RUNTIME` 文件夹中的所有文件和文件夹。",
|
|
"type": "string",
|
|
"const": "fs:scope-runtime-index",
|
|
"markdownDescription": "此范围允许列出 `$RUNTIME` 文件夹中的所有文件和文件夹。"
|
|
},
|
|
{
|
|
"description": "此范围允许对完整的 `$RUNTIME` 文件夹进行递归访问,包括子目录和文件。",
|
|
"type": "string",
|
|
"const": "fs:scope-runtime-recursive",
|
|
"markdownDescription": "此范围允许对完整的 `$RUNTIME` 文件夹进行递归访问,包括子目录和文件。"
|
|
},
|
|
{
|
|
"description": "此范围允许访问 `$TEMP` 文件夹中顶级目录的所有文件并列出其内容。",
|
|
"type": "string",
|
|
"const": "fs:scope-temp",
|
|
"markdownDescription": "此范围允许访问 `$TEMP` 文件夹中顶级目录的所有文件并列出其内容。"
|
|
},
|
|
{
|
|
"description": "此范围允许列出 `$TEMP` 文件夹中的所有文件和文件夹。",
|
|
"type": "string",
|
|
"const": "fs:scope-temp-index",
|
|
"markdownDescription": "此范围允许列出 `$TEMP` 文件夹中的所有文件和文件夹。"
|
|
},
|
|
{
|
|
"description": "此范围允许对完整的 `$TEMP` 文件夹进行递归访问,包括子目录和文件。",
|
|
"type": "string",
|
|
"const": "fs:scope-temp-recursive",
|
|
"markdownDescription": "此范围允许对完整的 `$TEMP` 文件夹进行递归访问,包括子目录和文件。"
|
|
},
|
|
{
|
|
"description": "此范围允许访问 `$TEMPLATE` 文件夹中顶级目录的所有文件并列出其内容。",
|
|
"type": "string",
|
|
"const": "fs:scope-template",
|
|
"markdownDescription": "此范围允许访问 `$TEMPLATE` 文件夹中顶级目录的所有文件并列出其内容。"
|
|
},
|
|
{
|
|
"description": "此范围允许列出 `$TEMPLATE` 文件夹中的所有文件和文件夹。",
|
|
"type": "string",
|
|
"const": "fs:scope-template-index",
|
|
"markdownDescription": "此范围允许列出 `$TEMPLATE` 文件夹中的所有文件和文件夹。"
|
|
},
|
|
{
|
|
"description": "此范围允许对完整的 `$TEMPLATE` 文件夹进行递归访问,包括子目录和文件。",
|
|
"type": "string",
|
|
"const": "fs:scope-template-recursive",
|
|
"markdownDescription": "此范围允许对完整的 `$TEMPLATE` 文件夹进行递归访问,包括子目录和文件。"
|
|
},
|
|
{
|
|
"description": "此范围允许访问 `$VIDEO` 文件夹中顶级目录的所有文件并列出其内容。",
|
|
"type": "string",
|
|
"const": "fs:scope-video",
|
|
"markdownDescription": "此范围允许访问 `$VIDEO` 文件夹中顶级目录的所有文件并列出其内容。"
|
|
},
|
|
{
|
|
"description": "此范围允许列出 `$VIDEO` 文件夹中的所有文件和文件夹。",
|
|
"type": "string",
|
|
"const": "fs:scope-video-index",
|
|
"markdownDescription": "此范围允许列出 `$VIDEO` 文件夹中的所有文件和文件夹。"
|
|
},
|
|
{
|
|
"description": "此范围允许对完整的 `$VIDEO` 文件夹进行递归访问,包括子目录和文件。",
|
|
"type": "string",
|
|
"const": "fs:scope-video-recursive",
|
|
"markdownDescription": "此范围允许对完整的 `$VIDEO` 文件夹进行递归访问,包括子目录和文件。"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "fs:write-all"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "fs:write-files"
|
|
},
|
|
{
|
|
"description": "默认情况下不启用任何功能,因为我们认为快捷键如果被误用可能具有危险性。因此,开发人员必须显式启用所有功能。",
|
|
"type": "string",
|
|
"const": "global-shortcut:default",
|
|
"markdownDescription": "默认情况下不启用任何功能,因为我们认为快捷键如果被误用可能具有危险性。因此,开发人员必须显式启用所有功能。"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "global-shortcut:allow-is-registered"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "global-shortcut:allow-register"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "global-shortcut:allow-register-all"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "global-shortcut:allow-unregister"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "global-shortcut:allow-unregister-all"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "global-shortcut:deny-is-registered"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "global-shortcut:deny-register"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "global-shortcut:deny-register-all"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "global-shortcut:deny-unregister"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "global-shortcut:deny-unregister-all"
|
|
},
|
|
{
|
|
"description": "此权限集配置从 http 插件可用的 fetch 操作类型。\n\n这启用了所有 fetch 操作,但不明确允许获取任何源。这需要在使用之前手动配置。\n\n#### 授予的权限\n\n所有 fetch 操作都已启用。\n\n\n#### 此默认权限集包括:\n\n- `allow-fetch`\n- `allow-fetch-cancel`\n- `allow-fetch-read-body`\n- `allow-fetch-send`",
|
|
"type": "string",
|
|
"const": "http:default",
|
|
"markdownDescription": "此权限集配置从 http 插件可用的 fetch 操作类型。\n\n这启用了所有 fetch 操作,但不明确允许获取任何源。这需要在使用之前手动配置。\n\n#### 授予的权限\n\n所有 fetch 操作都已启用。\n\n\n#### 此默认权限集包括:\n\n- `allow-fetch`\n- `allow-fetch-cancel`\n- `allow-fetch-read-body`\n- `allow-fetch-send`"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "http:allow-fetch"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "http:allow-fetch-cancel"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "http:allow-fetch-read-body"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "http:allow-fetch-send"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "http:deny-fetch"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "http:deny-fetch-cancel"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "http:deny-fetch-read-body"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "http:deny-fetch-send"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "log:default"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "log:allow-log"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "log:deny-log"
|
|
},
|
|
{
|
|
"description": "此权限集配置可从前端收集哪些操作系统信息。\n\n#### 授予的权限\n\n除主机名外的所有信息都可用。\n\n\n#### 此默认权限集包括:\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": "os:default",
|
|
"markdownDescription": "此权限集配置可从前端收集哪些操作系统信息。\n\n#### 授予的权限\n\n除主机名外的所有信息都可用。\n\n\n#### 此默认权限集包括:\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": "os:allow-arch"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "os:allow-exe-extension"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "os:allow-family"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "os:allow-hostname"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "os:allow-locale"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "os:allow-os-type"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "os:allow-platform"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "os:allow-version"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "os:deny-arch"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "os:deny-exe-extension"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "os:deny-family"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "os:deny-hostname"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "os:deny-locale"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "os:deny-os-type"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "os:deny-platform"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "os:deny-version"
|
|
},
|
|
{
|
|
"description": "此权限集配置默认暴露哪些进程功能。\n\n#### 授予的权限\n\n这允许通过 `allow-exit` 退出和通过 `allow-restart` 重启应用程序。\n\n#### 此默认权限集包括:\n\n- `allow-exit`\n- `allow-restart`",
|
|
"type": "string",
|
|
"const": "process:default",
|
|
"markdownDescription": "此权限集配置默认暴露哪些进程功能。\n\n#### 授予的权限\n\n这允许通过 `allow-exit` 退出和通过 `allow-restart` 重启应用程序。\n\n#### 此默认权限集包括:\n\n- `allow-exit`\n- `allow-restart`"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "process:allow-exit"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "process:allow-restart"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "process:deny-exit"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "process:deny-restart"
|
|
},
|
|
{
|
|
"description": "此权限集配置向前端暴露哪种更新器功能。\n\n#### 授予的权限\n\n从检查更新到安装它们的完整工作流已启用。\n\n\n#### 此默认权限集包括:\n\n- `allow-check`\n- `allow-download`\n- `allow-install`\n- `allow-download-and-install`",
|
|
"type": "string",
|
|
"const": "updater:default",
|
|
"markdownDescription": "此权限集配置向前端暴露哪种更新器功能。\n\n#### 授予的权限\n\n从检查更新到安装它们的完整工作流已启用。\n\n\n#### 此默认权限集包括:\n\n- `allow-check`\n- `allow-download`\n- `allow-install`\n- `allow-download-and-install`"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "updater:allow-check"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "updater:allow-download"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "updater:allow-download-and-install"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "updater:allow-install"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "updater:deny-check"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "updater:deny-download"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "updater:deny-download-and-install"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "updater:deny-install"
|
|
},
|
|
{
|
|
"description": "允许连接到 WebSocket 服务器并发送数据\n#### 此默认权限集包括:\n\n- `allow-connect`\n- `allow-send`",
|
|
"type": "string",
|
|
"const": "websocket:default",
|
|
"markdownDescription": "允许连接到 WebSocket 服务器并发送数据\n#### 此默认权限集包括:\n\n- `allow-connect`\n- `allow-send`"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "websocket:allow-connect"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "websocket:allow-send"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "websocket:deny-connect"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "websocket:deny-send"
|
|
},
|
|
{
|
|
"description": "此权限集配置从窗口状态插件可用的操作类型。\n\n#### 授予的权限\n\n默认情况下所有操作都已启用。\n\n\n#### 此默认权限集包括:\n\n- `allow-filename`\n- `allow-restore-state`\n- `allow-save-window-state`",
|
|
"type": "string",
|
|
"const": "window-state:default",
|
|
"markdownDescription": "此权限集配置从窗口状态插件可用的操作类型。\n\n#### 授予的权限\n\n默认情况下所有操作都已启用。\n\n\n#### 此默认权限集包括:\n\n- `allow-filename`\n- `allow-restore-state`\n- `allow-save-window-state`"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "window-state:allow-filename"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "window-state:allow-restore-state"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "window-state:allow-save-window-state"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "window-state:deny-filename"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "window-state:deny-restore-state"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "window-state:deny-save-window-state"
|
|
}
|
|
]
|
|
},
|
|
"Value": {
|
|
"anyOf": [
|
|
{
|
|
"type": "null"
|
|
},
|
|
{
|
|
"type": "boolean"
|
|
},
|
|
{
|
|
"allOf": [
|
|
{
|
|
"$ref": "#/definitions/Number"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"type": "string"
|
|
},
|
|
{
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Value"
|
|
}
|
|
},
|
|
{
|
|
"type": "object",
|
|
"additionalProperties": {
|
|
"$ref": "#/definitions/Value"
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"Number": {
|
|
"anyOf": [
|
|
{
|
|
"type": "integer",
|
|
"format": "int64"
|
|
},
|
|
{
|
|
"type": "number",
|
|
"format": "double"
|
|
}
|
|
]
|
|
},
|
|
"Target": {
|
|
"oneOf": [
|
|
{
|
|
"type": "string",
|
|
"enum": ["macOS"]
|
|
},
|
|
{
|
|
"type": "string",
|
|
"enum": ["windows"]
|
|
},
|
|
{
|
|
"type": "string",
|
|
"enum": ["linux"]
|
|
},
|
|
{
|
|
"type": "string",
|
|
"enum": ["android"]
|
|
},
|
|
{
|
|
"type": "string",
|
|
"enum": ["iOS"]
|
|
}
|
|
]
|
|
}
|
|
}
|
|
}
|