♻️ 姑且没登录的功能都给试了下

This commit is contained in:
目棃
2024-07-03 17:49:15 +08:00
parent 367307029b
commit 8a2c7d13c6
47 changed files with 1135 additions and 315 deletions

View File

@@ -2466,6 +2466,37 @@
"permission_sets": {},
"global_scope_schema": null
},
"process": {
"default_permission": {
"identifier": "default",
"description": "This permission set configures which\nprocess feeatures are by default exposed.\n\n#### Granted Permissions\n\nThis enables to quit via `allow-exit` and restart via `allow-restart`\nthe application.\n",
"permissions": ["allow-exit", "allow-restart"]
},
"permissions": {
"allow-exit": {
"identifier": "allow-exit",
"description": "Enables the exit command without any pre-configured scope.",
"commands": { "allow": ["exit"], "deny": [] }
},
"allow-restart": {
"identifier": "allow-restart",
"description": "Enables the restart command without any pre-configured scope.",
"commands": { "allow": ["restart"], "deny": [] }
},
"deny-exit": {
"identifier": "deny-exit",
"description": "Denies the exit command without any pre-configured scope.",
"commands": { "allow": [], "deny": ["exit"] }
},
"deny-restart": {
"identifier": "deny-restart",
"description": "Denies the restart command without any pre-configured scope.",
"commands": { "allow": [], "deny": ["restart"] }
}
},
"permission_sets": {},
"global_scope_schema": null
},
"resources": {
"default_permission": {
"identifier": "default",
@@ -2487,6 +2518,125 @@
"permission_sets": {},
"global_scope_schema": null
},
"shell": {
"default_permission": {
"identifier": "default",
"description": "This permission set configures which\nshell functionality is exposed by default.\n\n#### Granted Permissions\n\nIt allows to use the `open` functionality without any specific\nscope pre-configured. It will allow opening `http(s)://`,\n`tel:` and `mailto:` links.\n",
"permissions": ["allow-open"]
},
"permissions": {
"allow-execute": {
"identifier": "allow-execute",
"description": "Enables the execute command without any pre-configured scope.",
"commands": { "allow": ["execute"], "deny": [] }
},
"allow-kill": {
"identifier": "allow-kill",
"description": "Enables the kill command without any pre-configured scope.",
"commands": { "allow": ["kill"], "deny": [] }
},
"allow-open": {
"identifier": "allow-open",
"description": "Enables the open command without any pre-configured scope.",
"commands": { "allow": ["open"], "deny": [] }
},
"allow-spawn": {
"identifier": "allow-spawn",
"description": "Enables the spawn command without any pre-configured scope.",
"commands": { "allow": ["spawn"], "deny": [] }
},
"allow-stdin-write": {
"identifier": "allow-stdin-write",
"description": "Enables the stdin_write command without any pre-configured scope.",
"commands": { "allow": ["stdin_write"], "deny": [] }
},
"deny-execute": {
"identifier": "deny-execute",
"description": "Denies the execute command without any pre-configured scope.",
"commands": { "allow": [], "deny": ["execute"] }
},
"deny-kill": {
"identifier": "deny-kill",
"description": "Denies the kill command without any pre-configured scope.",
"commands": { "allow": [], "deny": ["kill"] }
},
"deny-open": {
"identifier": "deny-open",
"description": "Denies the open command without any pre-configured scope.",
"commands": { "allow": [], "deny": ["open"] }
},
"deny-spawn": {
"identifier": "deny-spawn",
"description": "Denies the spawn command without any pre-configured scope.",
"commands": { "allow": [], "deny": ["spawn"] }
},
"deny-stdin-write": {
"identifier": "deny-stdin-write",
"description": "Denies the stdin_write command without any pre-configured scope.",
"commands": { "allow": [], "deny": ["stdin_write"] }
}
},
"permission_sets": {},
"global_scope_schema": {
"$schema": "http://json-schema.org/draft-07/schema#",
"definitions": {
"ShellAllowedArg": {
"anyOf": [
{
"description": "A non-configurable argument that is passed to the command in the order it was specified.",
"type": "string"
},
{
"additionalProperties": false,
"description": "A variable that is set while calling the command from the webview API.",
"properties": {
"validator": {
"description": "[regex] validator to require passed values to conform to an expected input.\n\nThis will require the argument value passed to this variable to match the `validator` regex before it will be executed.\n\n[regex]: https://docs.rs/regex/latest/regex/#syntax",
"type": "string"
}
},
"required": ["validator"],
"type": "object"
}
],
"description": "A command argument allowed to be executed by the webview API."
},
"ShellAllowedArgs": {
"anyOf": [
{
"description": "Use a simple boolean to allow all or disable all arguments to this command configuration.",
"type": "boolean"
},
{
"description": "A specific set of [`ShellAllowedArg`] that are valid to call for the command configuration.",
"items": { "$ref": "#/definitions/ShellAllowedArg" },
"type": "array"
}
],
"description": "A set of command arguments allowed to be executed by the webview API.\n\nA value of `true` will allow any arguments to be passed to the command. `false` will disable all arguments. A list of [`ShellAllowedArg`] will set those arguments as the only valid arguments to be passed to the attached command configuration."
}
},
"description": "A command allowed to be executed by the webview API.",
"properties": {
"args": {
"allOf": [{ "$ref": "#/definitions/ShellAllowedArgs" }],
"description": "The allowed arguments for the command execution."
},
"cmd": {
"description": "The command name. It can start with a variable that resolves to a system base directory. The variables are: `$AUDIO`, `$CACHE`, `$CONFIG`, `$DATA`, `$LOCALDATA`, `$DESKTOP`, `$DOCUMENT`, `$DOWNLOAD`, `$EXE`, `$FONT`, `$HOME`, `$PICTURE`, `$PUBLIC`, `$RUNTIME`, `$TEMPLATE`, `$VIDEO`, `$RESOURCE`, `$APP`, `$LOG`, `$TEMP`, `$APPCONFIG`, `$APPDATA`, `$APPLOCALDATA`, `$APPCACHE`, `$APPLOG`.",
"type": "string"
},
"name": {
"description": "The name for this allowed shell command configuration.\n\nThis name will be used inside of the webview API to call this command along with any specified arguments.",
"type": "string"
},
"sidecar": { "description": "If this command is a sidecar command.", "type": "boolean" }
},
"required": ["args", "cmd", "name", "sidecar"],
"title": "Entry",
"type": "object"
}
},
"sql": {
"default_permission": {
"identifier": "default",

View File

@@ -5,7 +5,37 @@
"remote": { "urls": ["https://*.mihoyo.com/*", "https://*.miyoushe.com/*"] },
"local": true,
"windows": ["mhy_client"],
"permissions": [],
"permissions": ["event:allow-emit"],
"platforms": ["windows", "macOS"]
},
"SubWindow": {
"identifier": "SubWindow",
"description": "Capability for the sub window",
"local": true,
"windows": ["Sub_window"],
"permissions": [
"app:allow-version",
"app:default",
"event:allow-listen",
"event:default",
"http:allow-fetch",
"log:allow-log",
"log:default",
"path:allow-resolve-directory",
"path:default",
"sql:allow-load",
"sql:allow-execute",
"sql:default",
"window:allow-close",
"window:allow-destroy",
"window:allow-set-title",
"window:allow-set-fullscreen",
"window:allow-show",
{
"identifier": "http:default",
"allow": [{ "url": "https://*.miyoushe.com/*" }, { "url": "https://*.mihoyo.com/*" }]
}
],
"platforms": ["windows", "macOS"]
},
"TeyvatGuide": {
@@ -14,23 +44,48 @@
"local": true,
"windows": ["TeyvatGuide"],
"permissions": [
"path:allow-resolve-directory",
"path:default",
"event:allow-listen",
"event:default",
"app:allow-version",
"app:default",
"window:allow-set-title",
"sql:allow-load",
"sql:default",
"sql:allow-execute",
"event:allow-listen",
"event:default",
"fs:allow-remove",
"fs:default",
"fs:scope-cache-recursive",
"fs:scope-document-recursive",
"http:allow-fetch",
"log:allow-log",
"log:default",
"http:allow-fetch",
"path:allow-resolve-directory",
"path:default",
"process:allow-exit",
"process:allow-restart",
"process:default",
"shell:allow-execute",
"shell:allow-open",
"shell:default",
"sql:allow-load",
"sql:allow-execute",
"sql:default",
"window:allow-close",
"window:allow-destroy",
"window:allow-set-title",
"window:allow-show",
{
"identifier": "http:default",
"allow": [{ "url": "https://*.miyoushe.com/*" }, { "url": "https://*.mihoyo.com/*" }]
"allow": [
{ "url": "https://*.miyoushe.com/*" },
{ "url": "https://*.mihoyo.com/*" },
{ "url": "https://homa.snapgenshin.com/*" }
]
},
{
"identifier": "shell:allow-execute",
"allow": [
{ "args": true, "cmd": "explorer", "name": "win_open" },
{ "args": true, "cmd": "open", "name": "mac_open" }
]
}
]
],
"platforms": ["windows", "macOS"]
}
}

View File

@@ -1706,6 +1706,131 @@
}
}
}
},
{
"type": "object",
"required": ["identifier"],
"properties": {
"identifier": {
"oneOf": [
{
"description": "shell:default -> This permission set configures which\nshell functionality is exposed by default.\n\n#### Granted Permissions\n\nIt allows to use the `open` functionality without any specific\nscope pre-configured. It will allow opening `http(s)://`,\n`tel:` and `mailto:` links.\n",
"type": "string",
"enum": ["shell:default"]
},
{
"description": "shell:allow-execute -> Enables the execute command without any pre-configured scope.",
"type": "string",
"enum": ["shell:allow-execute"]
},
{
"description": "shell:allow-kill -> Enables the kill command without any pre-configured scope.",
"type": "string",
"enum": ["shell:allow-kill"]
},
{
"description": "shell:allow-open -> Enables the open command without any pre-configured scope.",
"type": "string",
"enum": ["shell:allow-open"]
},
{
"description": "shell:allow-spawn -> Enables the spawn command without any pre-configured scope.",
"type": "string",
"enum": ["shell:allow-spawn"]
},
{
"description": "shell:allow-stdin-write -> Enables the stdin_write command without any pre-configured scope.",
"type": "string",
"enum": ["shell:allow-stdin-write"]
},
{
"description": "shell:deny-execute -> Denies the execute command without any pre-configured scope.",
"type": "string",
"enum": ["shell:deny-execute"]
},
{
"description": "shell:deny-kill -> Denies the kill command without any pre-configured scope.",
"type": "string",
"enum": ["shell:deny-kill"]
},
{
"description": "shell:deny-open -> Denies the open command without any pre-configured scope.",
"type": "string",
"enum": ["shell:deny-open"]
},
{
"description": "shell:deny-spawn -> Denies the spawn command without any pre-configured scope.",
"type": "string",
"enum": ["shell:deny-spawn"]
},
{
"description": "shell:deny-stdin-write -> Denies the stdin_write command without any pre-configured scope.",
"type": "string",
"enum": ["shell:deny-stdin-write"]
}
]
},
"allow": {
"items": {
"title": "Entry",
"description": "A command allowed to be executed by the webview API.",
"type": "object",
"required": ["args", "cmd", "name", "sidecar"],
"properties": {
"args": {
"description": "The allowed arguments for the command execution.",
"allOf": [
{
"$ref": "#/definitions/ShellAllowedArgs"
}
]
},
"cmd": {
"description": "The command name. It can start with a variable that resolves to a system base directory. The variables are: `$AUDIO`, `$CACHE`, `$CONFIG`, `$DATA`, `$LOCALDATA`, `$DESKTOP`, `$DOCUMENT`, `$DOWNLOAD`, `$EXE`, `$FONT`, `$HOME`, `$PICTURE`, `$PUBLIC`, `$RUNTIME`, `$TEMPLATE`, `$VIDEO`, `$RESOURCE`, `$APP`, `$LOG`, `$TEMP`, `$APPCONFIG`, `$APPDATA`, `$APPLOCALDATA`, `$APPCACHE`, `$APPLOG`.",
"type": "string"
},
"name": {
"description": "The name for this allowed shell command configuration.\n\nThis name will be used inside of the webview API to call this command along with any specified arguments.",
"type": "string"
},
"sidecar": {
"description": "If this command is a sidecar command.",
"type": "boolean"
}
}
}
},
"deny": {
"items": {
"title": "Entry",
"description": "A command allowed to be executed by the webview API.",
"type": "object",
"required": ["args", "cmd", "name", "sidecar"],
"properties": {
"args": {
"description": "The allowed arguments for the command execution.",
"allOf": [
{
"$ref": "#/definitions/ShellAllowedArgs"
}
]
},
"cmd": {
"description": "The command name. It can start with a variable that resolves to a system base directory. The variables are: `$AUDIO`, `$CACHE`, `$CONFIG`, `$DATA`, `$LOCALDATA`, `$DESKTOP`, `$DOCUMENT`, `$DOWNLOAD`, `$EXE`, `$FONT`, `$HOME`, `$PICTURE`, `$PUBLIC`, `$RUNTIME`, `$TEMPLATE`, `$VIDEO`, `$RESOURCE`, `$APP`, `$LOG`, `$TEMP`, `$APPCONFIG`, `$APPDATA`, `$APPLOCALDATA`, `$APPCACHE`, `$APPLOG`.",
"type": "string"
},
"name": {
"description": "The name for this allowed shell command configuration.\n\nThis name will be used inside of the webview API to call this command along with any specified arguments.",
"type": "string"
},
"sidecar": {
"description": "If this command is a sidecar command.",
"type": "boolean"
}
}
}
}
}
}
]
}
@@ -3863,6 +3988,31 @@
"type": "string",
"enum": ["path:deny-resolve-directory"]
},
{
"description": "process:default -> This permission set configures which\nprocess feeatures are by default exposed.\n\n#### Granted Permissions\n\nThis enables to quit via `allow-exit` and restart via `allow-restart`\nthe application.\n",
"type": "string",
"enum": ["process:default"]
},
{
"description": "process:allow-exit -> Enables the exit command without any pre-configured scope.",
"type": "string",
"enum": ["process:allow-exit"]
},
{
"description": "process:allow-restart -> Enables the restart command without any pre-configured scope.",
"type": "string",
"enum": ["process:allow-restart"]
},
{
"description": "process:deny-exit -> Denies the exit command without any pre-configured scope.",
"type": "string",
"enum": ["process:deny-exit"]
},
{
"description": "process:deny-restart -> Denies the restart command without any pre-configured scope.",
"type": "string",
"enum": ["process:deny-restart"]
},
{
"description": "resources:default -> Default permissions for the plugin.",
"type": "string",
@@ -3878,6 +4028,61 @@
"type": "string",
"enum": ["resources:deny-close"]
},
{
"description": "shell:default -> This permission set configures which\nshell functionality is exposed by default.\n\n#### Granted Permissions\n\nIt allows to use the `open` functionality without any specific\nscope pre-configured. It will allow opening `http(s)://`,\n`tel:` and `mailto:` links.\n",
"type": "string",
"enum": ["shell:default"]
},
{
"description": "shell:allow-execute -> Enables the execute command without any pre-configured scope.",
"type": "string",
"enum": ["shell:allow-execute"]
},
{
"description": "shell:allow-kill -> Enables the kill command without any pre-configured scope.",
"type": "string",
"enum": ["shell:allow-kill"]
},
{
"description": "shell:allow-open -> Enables the open command without any pre-configured scope.",
"type": "string",
"enum": ["shell:allow-open"]
},
{
"description": "shell:allow-spawn -> Enables the spawn command without any pre-configured scope.",
"type": "string",
"enum": ["shell:allow-spawn"]
},
{
"description": "shell:allow-stdin-write -> Enables the stdin_write command without any pre-configured scope.",
"type": "string",
"enum": ["shell:allow-stdin-write"]
},
{
"description": "shell:deny-execute -> Denies the execute command without any pre-configured scope.",
"type": "string",
"enum": ["shell:deny-execute"]
},
{
"description": "shell:deny-kill -> Denies the kill command without any pre-configured scope.",
"type": "string",
"enum": ["shell:deny-kill"]
},
{
"description": "shell:deny-open -> Denies the open command without any pre-configured scope.",
"type": "string",
"enum": ["shell:deny-open"]
},
{
"description": "shell:deny-spawn -> Denies the spawn command without any pre-configured scope.",
"type": "string",
"enum": ["shell:deny-spawn"]
},
{
"description": "shell:deny-stdin-write -> Denies the stdin_write command without any pre-configured scope.",
"type": "string",
"enum": ["shell:deny-stdin-write"]
},
{
"description": "sql:default -> # Tauri SQL Default Permissions\n\nThis permission set configures what kind of\ndatabase operations are available from the sql plugin.\n\n### Granted Permissions\n\nAll reading related operations are enabled.\nAlso allows to load or close a connection.\n\n",
"type": "string",
@@ -4883,6 +5088,43 @@
"enum": ["iOS"]
}
]
},
"ShellAllowedArg": {
"description": "A command argument allowed to be executed by the webview API.",
"anyOf": [
{
"description": "A non-configurable argument that is passed to the command in the order it was specified.",
"type": "string"
},
{
"description": "A variable that is set while calling the command from the webview API.",
"type": "object",
"required": ["validator"],
"properties": {
"validator": {
"description": "[regex] validator to require passed values to conform to an expected input.\n\nThis will require the argument value passed to this variable to match the `validator` regex before it will be executed.\n\n[regex]: https://docs.rs/regex/latest/regex/#syntax",
"type": "string"
}
},
"additionalProperties": false
}
]
},
"ShellAllowedArgs": {
"description": "A set of command arguments allowed to be executed by the webview API.\n\nA value of `true` will allow any arguments to be passed to the command. `false` will disable all arguments. A list of [`ShellAllowedArg`] will set those arguments as the only valid arguments to be passed to the attached command configuration.",
"anyOf": [
{
"description": "Use a simple boolean to allow all or disable all arguments to this command configuration.",
"type": "boolean"
},
{
"description": "A specific set of [`ShellAllowedArg`] that are valid to call for the command configuration.",
"type": "array",
"items": {
"$ref": "#/definitions/ShellAllowedArg"
}
}
]
}
}
}

View File

@@ -1706,6 +1706,131 @@
}
}
}
},
{
"type": "object",
"required": ["identifier"],
"properties": {
"identifier": {
"oneOf": [
{
"description": "shell:default -> This permission set configures which\nshell functionality is exposed by default.\n\n#### Granted Permissions\n\nIt allows to use the `open` functionality without any specific\nscope pre-configured. It will allow opening `http(s)://`,\n`tel:` and `mailto:` links.\n",
"type": "string",
"enum": ["shell:default"]
},
{
"description": "shell:allow-execute -> Enables the execute command without any pre-configured scope.",
"type": "string",
"enum": ["shell:allow-execute"]
},
{
"description": "shell:allow-kill -> Enables the kill command without any pre-configured scope.",
"type": "string",
"enum": ["shell:allow-kill"]
},
{
"description": "shell:allow-open -> Enables the open command without any pre-configured scope.",
"type": "string",
"enum": ["shell:allow-open"]
},
{
"description": "shell:allow-spawn -> Enables the spawn command without any pre-configured scope.",
"type": "string",
"enum": ["shell:allow-spawn"]
},
{
"description": "shell:allow-stdin-write -> Enables the stdin_write command without any pre-configured scope.",
"type": "string",
"enum": ["shell:allow-stdin-write"]
},
{
"description": "shell:deny-execute -> Denies the execute command without any pre-configured scope.",
"type": "string",
"enum": ["shell:deny-execute"]
},
{
"description": "shell:deny-kill -> Denies the kill command without any pre-configured scope.",
"type": "string",
"enum": ["shell:deny-kill"]
},
{
"description": "shell:deny-open -> Denies the open command without any pre-configured scope.",
"type": "string",
"enum": ["shell:deny-open"]
},
{
"description": "shell:deny-spawn -> Denies the spawn command without any pre-configured scope.",
"type": "string",
"enum": ["shell:deny-spawn"]
},
{
"description": "shell:deny-stdin-write -> Denies the stdin_write command without any pre-configured scope.",
"type": "string",
"enum": ["shell:deny-stdin-write"]
}
]
},
"allow": {
"items": {
"title": "Entry",
"description": "A command allowed to be executed by the webview API.",
"type": "object",
"required": ["args", "cmd", "name", "sidecar"],
"properties": {
"args": {
"description": "The allowed arguments for the command execution.",
"allOf": [
{
"$ref": "#/definitions/ShellAllowedArgs"
}
]
},
"cmd": {
"description": "The command name. It can start with a variable that resolves to a system base directory. The variables are: `$AUDIO`, `$CACHE`, `$CONFIG`, `$DATA`, `$LOCALDATA`, `$DESKTOP`, `$DOCUMENT`, `$DOWNLOAD`, `$EXE`, `$FONT`, `$HOME`, `$PICTURE`, `$PUBLIC`, `$RUNTIME`, `$TEMPLATE`, `$VIDEO`, `$RESOURCE`, `$APP`, `$LOG`, `$TEMP`, `$APPCONFIG`, `$APPDATA`, `$APPLOCALDATA`, `$APPCACHE`, `$APPLOG`.",
"type": "string"
},
"name": {
"description": "The name for this allowed shell command configuration.\n\nThis name will be used inside of the webview API to call this command along with any specified arguments.",
"type": "string"
},
"sidecar": {
"description": "If this command is a sidecar command.",
"type": "boolean"
}
}
}
},
"deny": {
"items": {
"title": "Entry",
"description": "A command allowed to be executed by the webview API.",
"type": "object",
"required": ["args", "cmd", "name", "sidecar"],
"properties": {
"args": {
"description": "The allowed arguments for the command execution.",
"allOf": [
{
"$ref": "#/definitions/ShellAllowedArgs"
}
]
},
"cmd": {
"description": "The command name. It can start with a variable that resolves to a system base directory. The variables are: `$AUDIO`, `$CACHE`, `$CONFIG`, `$DATA`, `$LOCALDATA`, `$DESKTOP`, `$DOCUMENT`, `$DOWNLOAD`, `$EXE`, `$FONT`, `$HOME`, `$PICTURE`, `$PUBLIC`, `$RUNTIME`, `$TEMPLATE`, `$VIDEO`, `$RESOURCE`, `$APP`, `$LOG`, `$TEMP`, `$APPCONFIG`, `$APPDATA`, `$APPLOCALDATA`, `$APPCACHE`, `$APPLOG`.",
"type": "string"
},
"name": {
"description": "The name for this allowed shell command configuration.\n\nThis name will be used inside of the webview API to call this command along with any specified arguments.",
"type": "string"
},
"sidecar": {
"description": "If this command is a sidecar command.",
"type": "boolean"
}
}
}
}
}
}
]
}
@@ -3863,6 +3988,31 @@
"type": "string",
"enum": ["path:deny-resolve-directory"]
},
{
"description": "process:default -> This permission set configures which\nprocess feeatures are by default exposed.\n\n#### Granted Permissions\n\nThis enables to quit via `allow-exit` and restart via `allow-restart`\nthe application.\n",
"type": "string",
"enum": ["process:default"]
},
{
"description": "process:allow-exit -> Enables the exit command without any pre-configured scope.",
"type": "string",
"enum": ["process:allow-exit"]
},
{
"description": "process:allow-restart -> Enables the restart command without any pre-configured scope.",
"type": "string",
"enum": ["process:allow-restart"]
},
{
"description": "process:deny-exit -> Denies the exit command without any pre-configured scope.",
"type": "string",
"enum": ["process:deny-exit"]
},
{
"description": "process:deny-restart -> Denies the restart command without any pre-configured scope.",
"type": "string",
"enum": ["process:deny-restart"]
},
{
"description": "resources:default -> Default permissions for the plugin.",
"type": "string",
@@ -3878,6 +4028,61 @@
"type": "string",
"enum": ["resources:deny-close"]
},
{
"description": "shell:default -> This permission set configures which\nshell functionality is exposed by default.\n\n#### Granted Permissions\n\nIt allows to use the `open` functionality without any specific\nscope pre-configured. It will allow opening `http(s)://`,\n`tel:` and `mailto:` links.\n",
"type": "string",
"enum": ["shell:default"]
},
{
"description": "shell:allow-execute -> Enables the execute command without any pre-configured scope.",
"type": "string",
"enum": ["shell:allow-execute"]
},
{
"description": "shell:allow-kill -> Enables the kill command without any pre-configured scope.",
"type": "string",
"enum": ["shell:allow-kill"]
},
{
"description": "shell:allow-open -> Enables the open command without any pre-configured scope.",
"type": "string",
"enum": ["shell:allow-open"]
},
{
"description": "shell:allow-spawn -> Enables the spawn command without any pre-configured scope.",
"type": "string",
"enum": ["shell:allow-spawn"]
},
{
"description": "shell:allow-stdin-write -> Enables the stdin_write command without any pre-configured scope.",
"type": "string",
"enum": ["shell:allow-stdin-write"]
},
{
"description": "shell:deny-execute -> Denies the execute command without any pre-configured scope.",
"type": "string",
"enum": ["shell:deny-execute"]
},
{
"description": "shell:deny-kill -> Denies the kill command without any pre-configured scope.",
"type": "string",
"enum": ["shell:deny-kill"]
},
{
"description": "shell:deny-open -> Denies the open command without any pre-configured scope.",
"type": "string",
"enum": ["shell:deny-open"]
},
{
"description": "shell:deny-spawn -> Denies the spawn command without any pre-configured scope.",
"type": "string",
"enum": ["shell:deny-spawn"]
},
{
"description": "shell:deny-stdin-write -> Denies the stdin_write command without any pre-configured scope.",
"type": "string",
"enum": ["shell:deny-stdin-write"]
},
{
"description": "sql:default -> # Tauri SQL Default Permissions\n\nThis permission set configures what kind of\ndatabase operations are available from the sql plugin.\n\n### Granted Permissions\n\nAll reading related operations are enabled.\nAlso allows to load or close a connection.\n\n",
"type": "string",
@@ -4883,6 +5088,43 @@
"enum": ["iOS"]
}
]
},
"ShellAllowedArg": {
"description": "A command argument allowed to be executed by the webview API.",
"anyOf": [
{
"description": "A non-configurable argument that is passed to the command in the order it was specified.",
"type": "string"
},
{
"description": "A variable that is set while calling the command from the webview API.",
"type": "object",
"required": ["validator"],
"properties": {
"validator": {
"description": "[regex] validator to require passed values to conform to an expected input.\n\nThis will require the argument value passed to this variable to match the `validator` regex before it will be executed.\n\n[regex]: https://docs.rs/regex/latest/regex/#syntax",
"type": "string"
}
},
"additionalProperties": false
}
]
},
"ShellAllowedArgs": {
"description": "A set of command arguments allowed to be executed by the webview API.\n\nA value of `true` will allow any arguments to be passed to the command. `false` will disable all arguments. A list of [`ShellAllowedArg`] will set those arguments as the only valid arguments to be passed to the attached command configuration.",
"anyOf": [
{
"description": "Use a simple boolean to allow all or disable all arguments to this command configuration.",
"type": "boolean"
},
{
"description": "A specific set of [`ShellAllowedArg`] that are valid to call for the command configuration.",
"type": "array",
"items": {
"$ref": "#/definitions/ShellAllowedArg"
}
}
]
}
}
}