diff --git a/Cargo.lock b/Cargo.lock index 890fb075..b118f69b 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -6902,7 +6902,7 @@ checksum = "61c41af27dd6d1e27b1b16b489db798443478cef1f06a660c96db617ba5de3b1" [[package]] name = "tauri" version = "2.11.2" -source = "git+https://github.com/tauri-apps/tauri.git?branch=feat/cef#d4b20828b0684b05f7563d49e3a70a8661846ad3" +source = "git+https://github.com/tauri-apps/tauri.git?tag=tauri-cef-v3.0.0-alpha.9#fb7bdd95be319d70a1097d285bb7b170562339f2" dependencies = [ "anyhow", "bytes", @@ -6957,7 +6957,7 @@ dependencies = [ [[package]] name = "tauri-build" version = "2.6.2" -source = "git+https://github.com/tauri-apps/tauri.git?branch=feat/cef#d4b20828b0684b05f7563d49e3a70a8661846ad3" +source = "git+https://github.com/tauri-apps/tauri.git?tag=tauri-cef-v3.0.0-alpha.9#fb7bdd95be319d70a1097d285bb7b170562339f2" dependencies = [ "anyhow", "cargo_toml", @@ -6979,7 +6979,7 @@ dependencies = [ [[package]] name = "tauri-codegen" version = "2.6.2" -source = "git+https://github.com/tauri-apps/tauri.git?branch=feat/cef#d4b20828b0684b05f7563d49e3a70a8661846ad3" +source = "git+https://github.com/tauri-apps/tauri.git?tag=tauri-cef-v3.0.0-alpha.9#fb7bdd95be319d70a1097d285bb7b170562339f2" dependencies = [ "base64 0.22.1", "ico", @@ -7004,7 +7004,7 @@ dependencies = [ [[package]] name = "tauri-macros" version = "2.6.2" -source = "git+https://github.com/tauri-apps/tauri.git?branch=feat/cef#d4b20828b0684b05f7563d49e3a70a8661846ad3" +source = "git+https://github.com/tauri-apps/tauri.git?tag=tauri-cef-v3.0.0-alpha.9#fb7bdd95be319d70a1097d285bb7b170562339f2" dependencies = [ "heck 0.5.0", "proc-macro2", @@ -7017,7 +7017,7 @@ dependencies = [ [[package]] name = "tauri-plugin" version = "2.6.2" -source = "git+https://github.com/tauri-apps/tauri.git?branch=feat/cef#d4b20828b0684b05f7563d49e3a70a8661846ad3" +source = "git+https://github.com/tauri-apps/tauri.git?tag=tauri-cef-v3.0.0-alpha.9#fb7bdd95be319d70a1097d285bb7b170562339f2" dependencies = [ "anyhow", "glob", @@ -7145,9 +7145,7 @@ dependencies = [ "serde_repr", "tauri", "tauri-plugin", - "tauri-utils 2.9.1", "thiserror 2.0.12", - "toml 1.0.7+spec-1.1.0", "url", ] @@ -7521,7 +7519,7 @@ dependencies = [ [[package]] name = "tauri-runtime" version = "2.11.2" -source = "git+https://github.com/tauri-apps/tauri.git?branch=feat/cef#d4b20828b0684b05f7563d49e3a70a8661846ad3" +source = "git+https://github.com/tauri-apps/tauri.git?tag=tauri-cef-v3.0.0-alpha.9#fb7bdd95be319d70a1097d285bb7b170562339f2" dependencies = [ "cookie", "dpi", @@ -7542,7 +7540,7 @@ dependencies = [ [[package]] name = "tauri-runtime-cef" version = "0.1.0" -source = "git+https://github.com/tauri-apps/tauri.git?branch=feat/cef#d4b20828b0684b05f7563d49e3a70a8661846ad3" +source = "git+https://github.com/tauri-apps/tauri.git?tag=tauri-cef-v3.0.0-alpha.9#fb7bdd95be319d70a1097d285bb7b170562339f2" dependencies = [ "base64 0.22.1", "cef", @@ -7573,7 +7571,7 @@ dependencies = [ [[package]] name = "tauri-runtime-wry" version = "2.11.2" -source = "git+https://github.com/tauri-apps/tauri.git?branch=feat/cef#d4b20828b0684b05f7563d49e3a70a8661846ad3" +source = "git+https://github.com/tauri-apps/tauri.git?tag=tauri-cef-v3.0.0-alpha.9#fb7bdd95be319d70a1097d285bb7b170562339f2" dependencies = [ "gtk", "http", @@ -7629,7 +7627,7 @@ dependencies = [ [[package]] name = "tauri-utils" version = "2.9.2" -source = "git+https://github.com/tauri-apps/tauri.git?branch=feat/cef#d4b20828b0684b05f7563d49e3a70a8661846ad3" +source = "git+https://github.com/tauri-apps/tauri.git?tag=tauri-cef-v3.0.0-alpha.9#fb7bdd95be319d70a1097d285bb7b170562339f2" dependencies = [ "aes-gcm", "anyhow", diff --git a/Cargo.toml b/Cargo.toml index aa84dd12..bfd1a207 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -41,7 +41,7 @@ incremental = false opt-level = "s" [patch.crates-io] -tauri = { git = "https://github.com/tauri-apps/tauri.git", branch = "feat/cef" } -tauri-utils = { git = "https://github.com/tauri-apps/tauri.git", branch = "feat/cef" } -tauri-plugin = { git = "https://github.com/tauri-apps/tauri.git", branch = "feat/cef" } -tauri-build = { git = "https://github.com/tauri-apps/tauri.git", branch = "feat/cef" } +tauri = { git = "https://github.com/tauri-apps/tauri.git", tag = "tauri-cef-v3.0.0-alpha.9" } +tauri-utils = { git = "https://github.com/tauri-apps/tauri.git", tag = "tauri-cef-v3.0.0-alpha.9" } +tauri-plugin = { git = "https://github.com/tauri-apps/tauri.git", tag = "tauri-cef-v3.0.0-alpha.9" } +tauri-build = { git = "https://github.com/tauri-apps/tauri.git", tag = "tauri-cef-v3.0.0-alpha.9" } diff --git a/plugins/autostart/permissions/autogenerated/commands/commands.toml b/plugins/autostart/permissions/autogenerated/commands/commands.toml new file mode 100644 index 00000000..68d55b1e --- /dev/null +++ b/plugins/autostart/permissions/autogenerated/commands/commands.toml @@ -0,0 +1,5 @@ +# Automatically generated - DO NOT EDIT! + +"$schema" = "../../schemas/schema.json" + +commands = ["enable","disable","is_enabled"] diff --git a/plugins/autostart/permissions/autogenerated/commands/disable.toml b/plugins/autostart/permissions/autogenerated/commands/disable.toml deleted file mode 100644 index 849c50a2..00000000 --- a/plugins/autostart/permissions/autogenerated/commands/disable.toml +++ /dev/null @@ -1,13 +0,0 @@ -# Automatically generated - DO NOT EDIT! - -"$schema" = "../../schemas/schema.json" - -[[permission]] -identifier = "allow-disable" -description = "Enables the disable command without any pre-configured scope." -commands.allow = ["disable"] - -[[permission]] -identifier = "deny-disable" -description = "Denies the disable command without any pre-configured scope." -commands.deny = ["disable"] diff --git a/plugins/autostart/permissions/autogenerated/commands/enable.toml b/plugins/autostart/permissions/autogenerated/commands/enable.toml deleted file mode 100644 index f931a9e5..00000000 --- a/plugins/autostart/permissions/autogenerated/commands/enable.toml +++ /dev/null @@ -1,13 +0,0 @@ -# Automatically generated - DO NOT EDIT! - -"$schema" = "../../schemas/schema.json" - -[[permission]] -identifier = "allow-enable" -description = "Enables the enable command without any pre-configured scope." -commands.allow = ["enable"] - -[[permission]] -identifier = "deny-enable" -description = "Denies the enable command without any pre-configured scope." -commands.deny = ["enable"] diff --git a/plugins/autostart/permissions/autogenerated/commands/is_enabled.toml b/plugins/autostart/permissions/autogenerated/commands/is_enabled.toml deleted file mode 100644 index 88a6a282..00000000 --- a/plugins/autostart/permissions/autogenerated/commands/is_enabled.toml +++ /dev/null @@ -1,13 +0,0 @@ -# Automatically generated - DO NOT EDIT! - -"$schema" = "../../schemas/schema.json" - -[[permission]] -identifier = "allow-is-enabled" -description = "Enables the is_enabled command without any pre-configured scope." -commands.allow = ["is_enabled"] - -[[permission]] -identifier = "deny-is-enabled" -description = "Denies the is_enabled command without any pre-configured scope." -commands.deny = ["is_enabled"] diff --git a/plugins/autostart/permissions/schemas/schema.json b/plugins/autostart/permissions/schemas/schema.json index 7cc6cab1..df3dad39 100644 --- a/plugins/autostart/permissions/schemas/schema.json +++ b/plugins/autostart/permissions/schemas/schema.json @@ -29,6 +29,13 @@ "$ref": "#/definitions/Permission" }, "default": [] + }, + "commands": { + "description": "A list of command names that get `allow-$command` and `deny-$command` permissions\nautogenerated on demand instead of being stored as explicit permissions.\n\nSee [`Manifest::command_permission`] and the ACL resolver for how these are expanded.", + "type": "array", + "items": { + "type": "string" + } } }, "definitions": { diff --git a/plugins/barcode-scanner/permissions/autogenerated/commands/cancel.toml b/plugins/barcode-scanner/permissions/autogenerated/commands/cancel.toml deleted file mode 100644 index 91efeaa0..00000000 --- a/plugins/barcode-scanner/permissions/autogenerated/commands/cancel.toml +++ /dev/null @@ -1,13 +0,0 @@ -# Automatically generated - DO NOT EDIT! - -"$schema" = "../../schemas/schema.json" - -[[permission]] -identifier = "allow-cancel" -description = "Enables the cancel command without any pre-configured scope." -commands.allow = ["cancel"] - -[[permission]] -identifier = "deny-cancel" -description = "Denies the cancel command without any pre-configured scope." -commands.deny = ["cancel"] diff --git a/plugins/barcode-scanner/permissions/autogenerated/commands/check_permissions.toml b/plugins/barcode-scanner/permissions/autogenerated/commands/check_permissions.toml deleted file mode 100644 index f5af08b1..00000000 --- a/plugins/barcode-scanner/permissions/autogenerated/commands/check_permissions.toml +++ /dev/null @@ -1,13 +0,0 @@ -# Automatically generated - DO NOT EDIT! - -"$schema" = "../../schemas/schema.json" - -[[permission]] -identifier = "allow-check-permissions" -description = "Enables the check_permissions command without any pre-configured scope." -commands.allow = ["check_permissions"] - -[[permission]] -identifier = "deny-check-permissions" -description = "Denies the check_permissions command without any pre-configured scope." -commands.deny = ["check_permissions"] diff --git a/plugins/barcode-scanner/permissions/autogenerated/commands/commands.toml b/plugins/barcode-scanner/permissions/autogenerated/commands/commands.toml new file mode 100644 index 00000000..47c9146e --- /dev/null +++ b/plugins/barcode-scanner/permissions/autogenerated/commands/commands.toml @@ -0,0 +1,5 @@ +# Automatically generated - DO NOT EDIT! + +"$schema" = "../../schemas/schema.json" + +commands = ["scan","cancel","request_permissions","check_permissions","open_app_settings","vibrate"] diff --git a/plugins/barcode-scanner/permissions/autogenerated/commands/open_app_settings.toml b/plugins/barcode-scanner/permissions/autogenerated/commands/open_app_settings.toml deleted file mode 100644 index 9da98d85..00000000 --- a/plugins/barcode-scanner/permissions/autogenerated/commands/open_app_settings.toml +++ /dev/null @@ -1,13 +0,0 @@ -# Automatically generated - DO NOT EDIT! - -"$schema" = "../../schemas/schema.json" - -[[permission]] -identifier = "allow-open-app-settings" -description = "Enables the open_app_settings command without any pre-configured scope." -commands.allow = ["open_app_settings"] - -[[permission]] -identifier = "deny-open-app-settings" -description = "Denies the open_app_settings command without any pre-configured scope." -commands.deny = ["open_app_settings"] diff --git a/plugins/barcode-scanner/permissions/autogenerated/commands/request_permissions.toml b/plugins/barcode-scanner/permissions/autogenerated/commands/request_permissions.toml deleted file mode 100644 index 02dcd627..00000000 --- a/plugins/barcode-scanner/permissions/autogenerated/commands/request_permissions.toml +++ /dev/null @@ -1,13 +0,0 @@ -# Automatically generated - DO NOT EDIT! - -"$schema" = "../../schemas/schema.json" - -[[permission]] -identifier = "allow-request-permissions" -description = "Enables the request_permissions command without any pre-configured scope." -commands.allow = ["request_permissions"] - -[[permission]] -identifier = "deny-request-permissions" -description = "Denies the request_permissions command without any pre-configured scope." -commands.deny = ["request_permissions"] diff --git a/plugins/barcode-scanner/permissions/autogenerated/commands/scan.toml b/plugins/barcode-scanner/permissions/autogenerated/commands/scan.toml deleted file mode 100644 index efa621dd..00000000 --- a/plugins/barcode-scanner/permissions/autogenerated/commands/scan.toml +++ /dev/null @@ -1,13 +0,0 @@ -# Automatically generated - DO NOT EDIT! - -"$schema" = "../../schemas/schema.json" - -[[permission]] -identifier = "allow-scan" -description = "Enables the scan command without any pre-configured scope." -commands.allow = ["scan"] - -[[permission]] -identifier = "deny-scan" -description = "Denies the scan command without any pre-configured scope." -commands.deny = ["scan"] diff --git a/plugins/barcode-scanner/permissions/autogenerated/commands/vibrate.toml b/plugins/barcode-scanner/permissions/autogenerated/commands/vibrate.toml deleted file mode 100644 index 4c2fe94e..00000000 --- a/plugins/barcode-scanner/permissions/autogenerated/commands/vibrate.toml +++ /dev/null @@ -1,13 +0,0 @@ -# Automatically generated - DO NOT EDIT! - -"$schema" = "../../schemas/schema.json" - -[[permission]] -identifier = "allow-vibrate" -description = "Enables the vibrate command without any pre-configured scope." -commands.allow = ["vibrate"] - -[[permission]] -identifier = "deny-vibrate" -description = "Denies the vibrate command without any pre-configured scope." -commands.deny = ["vibrate"] diff --git a/plugins/barcode-scanner/permissions/schemas/schema.json b/plugins/barcode-scanner/permissions/schemas/schema.json index 7cc6cab1..df3dad39 100644 --- a/plugins/barcode-scanner/permissions/schemas/schema.json +++ b/plugins/barcode-scanner/permissions/schemas/schema.json @@ -29,6 +29,13 @@ "$ref": "#/definitions/Permission" }, "default": [] + }, + "commands": { + "description": "A list of command names that get `allow-$command` and `deny-$command` permissions\nautogenerated on demand instead of being stored as explicit permissions.\n\nSee [`Manifest::command_permission`] and the ACL resolver for how these are expanded.", + "type": "array", + "items": { + "type": "string" + } } }, "definitions": { diff --git a/plugins/biometric/permissions/autogenerated/commands/authenticate.toml b/plugins/biometric/permissions/autogenerated/commands/authenticate.toml deleted file mode 100644 index be4c9f9b..00000000 --- a/plugins/biometric/permissions/autogenerated/commands/authenticate.toml +++ /dev/null @@ -1,13 +0,0 @@ -# Automatically generated - DO NOT EDIT! - -"$schema" = "../../schemas/schema.json" - -[[permission]] -identifier = "allow-authenticate" -description = "Enables the authenticate command without any pre-configured scope." -commands.allow = ["authenticate"] - -[[permission]] -identifier = "deny-authenticate" -description = "Denies the authenticate command without any pre-configured scope." -commands.deny = ["authenticate"] diff --git a/plugins/biometric/permissions/autogenerated/commands/commands.toml b/plugins/biometric/permissions/autogenerated/commands/commands.toml new file mode 100644 index 00000000..078eec2f --- /dev/null +++ b/plugins/biometric/permissions/autogenerated/commands/commands.toml @@ -0,0 +1,5 @@ +# Automatically generated - DO NOT EDIT! + +"$schema" = "../../schemas/schema.json" + +commands = ["authenticate","status"] diff --git a/plugins/biometric/permissions/autogenerated/commands/status.toml b/plugins/biometric/permissions/autogenerated/commands/status.toml deleted file mode 100644 index c8ed433c..00000000 --- a/plugins/biometric/permissions/autogenerated/commands/status.toml +++ /dev/null @@ -1,13 +0,0 @@ -# Automatically generated - DO NOT EDIT! - -"$schema" = "../../schemas/schema.json" - -[[permission]] -identifier = "allow-status" -description = "Enables the status command without any pre-configured scope." -commands.allow = ["status"] - -[[permission]] -identifier = "deny-status" -description = "Denies the status command without any pre-configured scope." -commands.deny = ["status"] diff --git a/plugins/biometric/permissions/schemas/schema.json b/plugins/biometric/permissions/schemas/schema.json index 7cc6cab1..df3dad39 100644 --- a/plugins/biometric/permissions/schemas/schema.json +++ b/plugins/biometric/permissions/schemas/schema.json @@ -29,6 +29,13 @@ "$ref": "#/definitions/Permission" }, "default": [] + }, + "commands": { + "description": "A list of command names that get `allow-$command` and `deny-$command` permissions\nautogenerated on demand instead of being stored as explicit permissions.\n\nSee [`Manifest::command_permission`] and the ACL resolver for how these are expanded.", + "type": "array", + "items": { + "type": "string" + } } }, "definitions": { diff --git a/plugins/cli/permissions/autogenerated/commands/cli_matches.toml b/plugins/cli/permissions/autogenerated/commands/cli_matches.toml deleted file mode 100644 index b0a2e8f3..00000000 --- a/plugins/cli/permissions/autogenerated/commands/cli_matches.toml +++ /dev/null @@ -1,13 +0,0 @@ -# Automatically generated - DO NOT EDIT! - -"$schema" = "../../schemas/schema.json" - -[[permission]] -identifier = "allow-cli-matches" -description = "Enables the cli_matches command without any pre-configured scope." -commands.allow = ["cli_matches"] - -[[permission]] -identifier = "deny-cli-matches" -description = "Denies the cli_matches command without any pre-configured scope." -commands.deny = ["cli_matches"] diff --git a/plugins/cli/permissions/autogenerated/commands/commands.toml b/plugins/cli/permissions/autogenerated/commands/commands.toml new file mode 100644 index 00000000..32ade6eb --- /dev/null +++ b/plugins/cli/permissions/autogenerated/commands/commands.toml @@ -0,0 +1,5 @@ +# Automatically generated - DO NOT EDIT! + +"$schema" = "../../schemas/schema.json" + +commands = ["cli_matches"] diff --git a/plugins/cli/permissions/schemas/schema.json b/plugins/cli/permissions/schemas/schema.json index 7cc6cab1..df3dad39 100644 --- a/plugins/cli/permissions/schemas/schema.json +++ b/plugins/cli/permissions/schemas/schema.json @@ -29,6 +29,13 @@ "$ref": "#/definitions/Permission" }, "default": [] + }, + "commands": { + "description": "A list of command names that get `allow-$command` and `deny-$command` permissions\nautogenerated on demand instead of being stored as explicit permissions.\n\nSee [`Manifest::command_permission`] and the ACL resolver for how these are expanded.", + "type": "array", + "items": { + "type": "string" + } } }, "definitions": { diff --git a/plugins/clipboard-manager/permissions/autogenerated/commands/clear.toml b/plugins/clipboard-manager/permissions/autogenerated/commands/clear.toml deleted file mode 100644 index 83de1819..00000000 --- a/plugins/clipboard-manager/permissions/autogenerated/commands/clear.toml +++ /dev/null @@ -1,13 +0,0 @@ -# Automatically generated - DO NOT EDIT! - -"$schema" = "../../schemas/schema.json" - -[[permission]] -identifier = "allow-clear" -description = "Enables the clear command without any pre-configured scope." -commands.allow = ["clear"] - -[[permission]] -identifier = "deny-clear" -description = "Denies the clear command without any pre-configured scope." -commands.deny = ["clear"] diff --git a/plugins/clipboard-manager/permissions/autogenerated/commands/commands.toml b/plugins/clipboard-manager/permissions/autogenerated/commands/commands.toml new file mode 100644 index 00000000..203291fa --- /dev/null +++ b/plugins/clipboard-manager/permissions/autogenerated/commands/commands.toml @@ -0,0 +1,5 @@ +# Automatically generated - DO NOT EDIT! + +"$schema" = "../../schemas/schema.json" + +commands = ["write_text","read_text","write_image","read_image","write_html","clear"] diff --git a/plugins/clipboard-manager/permissions/autogenerated/commands/read_image.toml b/plugins/clipboard-manager/permissions/autogenerated/commands/read_image.toml deleted file mode 100644 index cfed86db..00000000 --- a/plugins/clipboard-manager/permissions/autogenerated/commands/read_image.toml +++ /dev/null @@ -1,13 +0,0 @@ -# Automatically generated - DO NOT EDIT! - -"$schema" = "../../schemas/schema.json" - -[[permission]] -identifier = "allow-read-image" -description = "Enables the read_image command without any pre-configured scope." -commands.allow = ["read_image"] - -[[permission]] -identifier = "deny-read-image" -description = "Denies the read_image command without any pre-configured scope." -commands.deny = ["read_image"] diff --git a/plugins/clipboard-manager/permissions/autogenerated/commands/read_text.toml b/plugins/clipboard-manager/permissions/autogenerated/commands/read_text.toml deleted file mode 100644 index 29844892..00000000 --- a/plugins/clipboard-manager/permissions/autogenerated/commands/read_text.toml +++ /dev/null @@ -1,13 +0,0 @@ -# Automatically generated - DO NOT EDIT! - -"$schema" = "../../schemas/schema.json" - -[[permission]] -identifier = "allow-read-text" -description = "Enables the read_text command without any pre-configured scope." -commands.allow = ["read_text"] - -[[permission]] -identifier = "deny-read-text" -description = "Denies the read_text command without any pre-configured scope." -commands.deny = ["read_text"] diff --git a/plugins/clipboard-manager/permissions/autogenerated/commands/write_html.toml b/plugins/clipboard-manager/permissions/autogenerated/commands/write_html.toml deleted file mode 100644 index 5e292808..00000000 --- a/plugins/clipboard-manager/permissions/autogenerated/commands/write_html.toml +++ /dev/null @@ -1,13 +0,0 @@ -# Automatically generated - DO NOT EDIT! - -"$schema" = "../../schemas/schema.json" - -[[permission]] -identifier = "allow-write-html" -description = "Enables the write_html command without any pre-configured scope." -commands.allow = ["write_html"] - -[[permission]] -identifier = "deny-write-html" -description = "Denies the write_html command without any pre-configured scope." -commands.deny = ["write_html"] diff --git a/plugins/clipboard-manager/permissions/autogenerated/commands/write_image.toml b/plugins/clipboard-manager/permissions/autogenerated/commands/write_image.toml deleted file mode 100644 index 12e8e235..00000000 --- a/plugins/clipboard-manager/permissions/autogenerated/commands/write_image.toml +++ /dev/null @@ -1,13 +0,0 @@ -# Automatically generated - DO NOT EDIT! - -"$schema" = "../../schemas/schema.json" - -[[permission]] -identifier = "allow-write-image" -description = "Enables the write_image command without any pre-configured scope." -commands.allow = ["write_image"] - -[[permission]] -identifier = "deny-write-image" -description = "Denies the write_image command without any pre-configured scope." -commands.deny = ["write_image"] diff --git a/plugins/clipboard-manager/permissions/autogenerated/commands/write_text.toml b/plugins/clipboard-manager/permissions/autogenerated/commands/write_text.toml deleted file mode 100644 index ebff875a..00000000 --- a/plugins/clipboard-manager/permissions/autogenerated/commands/write_text.toml +++ /dev/null @@ -1,13 +0,0 @@ -# Automatically generated - DO NOT EDIT! - -"$schema" = "../../schemas/schema.json" - -[[permission]] -identifier = "allow-write-text" -description = "Enables the write_text command without any pre-configured scope." -commands.allow = ["write_text"] - -[[permission]] -identifier = "deny-write-text" -description = "Denies the write_text command without any pre-configured scope." -commands.deny = ["write_text"] diff --git a/plugins/clipboard-manager/permissions/schemas/schema.json b/plugins/clipboard-manager/permissions/schemas/schema.json index 7cc6cab1..df3dad39 100644 --- a/plugins/clipboard-manager/permissions/schemas/schema.json +++ b/plugins/clipboard-manager/permissions/schemas/schema.json @@ -29,6 +29,13 @@ "$ref": "#/definitions/Permission" }, "default": [] + }, + "commands": { + "description": "A list of command names that get `allow-$command` and `deny-$command` permissions\nautogenerated on demand instead of being stored as explicit permissions.\n\nSee [`Manifest::command_permission`] and the ACL resolver for how these are expanded.", + "type": "array", + "items": { + "type": "string" + } } }, "definitions": { diff --git a/plugins/deep-link/permissions/autogenerated/commands/commands.toml b/plugins/deep-link/permissions/autogenerated/commands/commands.toml new file mode 100644 index 00000000..62db2ee3 --- /dev/null +++ b/plugins/deep-link/permissions/autogenerated/commands/commands.toml @@ -0,0 +1,5 @@ +# Automatically generated - DO NOT EDIT! + +"$schema" = "../../schemas/schema.json" + +commands = ["get_current","register","unregister","is_registered"] diff --git a/plugins/deep-link/permissions/autogenerated/commands/get_current.toml b/plugins/deep-link/permissions/autogenerated/commands/get_current.toml deleted file mode 100644 index e729de11..00000000 --- a/plugins/deep-link/permissions/autogenerated/commands/get_current.toml +++ /dev/null @@ -1,13 +0,0 @@ -# Automatically generated - DO NOT EDIT! - -"$schema" = "../../schemas/schema.json" - -[[permission]] -identifier = "allow-get-current" -description = "Enables the get_current command without any pre-configured scope." -commands.allow = ["get_current"] - -[[permission]] -identifier = "deny-get-current" -description = "Denies the get_current command without any pre-configured scope." -commands.deny = ["get_current"] diff --git a/plugins/deep-link/permissions/autogenerated/commands/is_registered.toml b/plugins/deep-link/permissions/autogenerated/commands/is_registered.toml deleted file mode 100644 index 2dd73ace..00000000 --- a/plugins/deep-link/permissions/autogenerated/commands/is_registered.toml +++ /dev/null @@ -1,13 +0,0 @@ -# Automatically generated - DO NOT EDIT! - -"$schema" = "../../schemas/schema.json" - -[[permission]] -identifier = "allow-is-registered" -description = "Enables the is_registered command without any pre-configured scope." -commands.allow = ["is_registered"] - -[[permission]] -identifier = "deny-is-registered" -description = "Denies the is_registered command without any pre-configured scope." -commands.deny = ["is_registered"] diff --git a/plugins/deep-link/permissions/autogenerated/commands/register.toml b/plugins/deep-link/permissions/autogenerated/commands/register.toml deleted file mode 100644 index 4eec17dc..00000000 --- a/plugins/deep-link/permissions/autogenerated/commands/register.toml +++ /dev/null @@ -1,13 +0,0 @@ -# Automatically generated - DO NOT EDIT! - -"$schema" = "../../schemas/schema.json" - -[[permission]] -identifier = "allow-register" -description = "Enables the register command without any pre-configured scope." -commands.allow = ["register"] - -[[permission]] -identifier = "deny-register" -description = "Denies the register command without any pre-configured scope." -commands.deny = ["register"] diff --git a/plugins/deep-link/permissions/autogenerated/commands/unregister.toml b/plugins/deep-link/permissions/autogenerated/commands/unregister.toml deleted file mode 100644 index 5d33c97c..00000000 --- a/plugins/deep-link/permissions/autogenerated/commands/unregister.toml +++ /dev/null @@ -1,13 +0,0 @@ -# Automatically generated - DO NOT EDIT! - -"$schema" = "../../schemas/schema.json" - -[[permission]] -identifier = "allow-unregister" -description = "Enables the unregister command without any pre-configured scope." -commands.allow = ["unregister"] - -[[permission]] -identifier = "deny-unregister" -description = "Denies the unregister command without any pre-configured scope." -commands.deny = ["unregister"] diff --git a/plugins/deep-link/permissions/schemas/schema.json b/plugins/deep-link/permissions/schemas/schema.json index 7cc6cab1..df3dad39 100644 --- a/plugins/deep-link/permissions/schemas/schema.json +++ b/plugins/deep-link/permissions/schemas/schema.json @@ -29,6 +29,13 @@ "$ref": "#/definitions/Permission" }, "default": [] + }, + "commands": { + "description": "A list of command names that get `allow-$command` and `deny-$command` permissions\nautogenerated on demand instead of being stored as explicit permissions.\n\nSee [`Manifest::command_permission`] and the ACL resolver for how these are expanded.", + "type": "array", + "items": { + "type": "string" + } } }, "definitions": { diff --git a/plugins/dialog/permissions/autogenerated/commands/commands.toml b/plugins/dialog/permissions/autogenerated/commands/commands.toml new file mode 100644 index 00000000..2866c3ca --- /dev/null +++ b/plugins/dialog/permissions/autogenerated/commands/commands.toml @@ -0,0 +1,5 @@ +# Automatically generated - DO NOT EDIT! + +"$schema" = "../../schemas/schema.json" + +commands = ["open","save","message"] diff --git a/plugins/dialog/permissions/autogenerated/commands/message.toml b/plugins/dialog/permissions/autogenerated/commands/message.toml deleted file mode 100644 index d386d91e..00000000 --- a/plugins/dialog/permissions/autogenerated/commands/message.toml +++ /dev/null @@ -1,13 +0,0 @@ -# Automatically generated - DO NOT EDIT! - -"$schema" = "../../schemas/schema.json" - -[[permission]] -identifier = "allow-message" -description = "Enables the message command without any pre-configured scope." -commands.allow = ["message"] - -[[permission]] -identifier = "deny-message" -description = "Denies the message command without any pre-configured scope." -commands.deny = ["message"] diff --git a/plugins/dialog/permissions/autogenerated/commands/open.toml b/plugins/dialog/permissions/autogenerated/commands/open.toml deleted file mode 100644 index 4ea6dff1..00000000 --- a/plugins/dialog/permissions/autogenerated/commands/open.toml +++ /dev/null @@ -1,13 +0,0 @@ -# Automatically generated - DO NOT EDIT! - -"$schema" = "../../schemas/schema.json" - -[[permission]] -identifier = "allow-open" -description = "Enables the open command without any pre-configured scope." -commands.allow = ["open"] - -[[permission]] -identifier = "deny-open" -description = "Denies the open command without any pre-configured scope." -commands.deny = ["open"] diff --git a/plugins/dialog/permissions/autogenerated/commands/save.toml b/plugins/dialog/permissions/autogenerated/commands/save.toml deleted file mode 100644 index d3e84220..00000000 --- a/plugins/dialog/permissions/autogenerated/commands/save.toml +++ /dev/null @@ -1,13 +0,0 @@ -# Automatically generated - DO NOT EDIT! - -"$schema" = "../../schemas/schema.json" - -[[permission]] -identifier = "allow-save" -description = "Enables the save command without any pre-configured scope." -commands.allow = ["save"] - -[[permission]] -identifier = "deny-save" -description = "Denies the save command without any pre-configured scope." -commands.deny = ["save"] diff --git a/plugins/dialog/permissions/schemas/schema.json b/plugins/dialog/permissions/schemas/schema.json index 7cc6cab1..df3dad39 100644 --- a/plugins/dialog/permissions/schemas/schema.json +++ b/plugins/dialog/permissions/schemas/schema.json @@ -29,6 +29,13 @@ "$ref": "#/definitions/Permission" }, "default": [] + }, + "commands": { + "description": "A list of command names that get `allow-$command` and `deny-$command` permissions\nautogenerated on demand instead of being stored as explicit permissions.\n\nSee [`Manifest::command_permission`] and the ACL resolver for how these are expanded.", + "type": "array", + "items": { + "type": "string" + } } }, "definitions": { diff --git a/plugins/fs/Cargo.toml b/plugins/fs/Cargo.toml index 298bcce5..f3ff74f7 100644 --- a/plugins/fs/Cargo.toml +++ b/plugins/fs/Cargo.toml @@ -20,8 +20,6 @@ ios = { level = "partial", notes = "Access is restricted to Application folder b tauri-plugin = { workspace = true, features = ["build"] } schemars = { workspace = true } serde = { workspace = true } -toml = "1.0" -tauri-utils = { workspace = true } [dependencies] serde = { workspace = true } diff --git a/plugins/fs/build.rs b/plugins/fs/build.rs index bc79a019..74e97865 100644 --- a/plugins/fs/build.rs +++ b/plugins/fs/build.rs @@ -7,8 +7,6 @@ use std::{ path::{Path, PathBuf}, }; -use tauri_utils::acl::manifest::PermissionFile; - #[path = "src/scope.rs"] #[allow(dead_code)] mod scope; @@ -77,35 +75,35 @@ const BASE_DIR_VARS: &[&str] = &[ "APPCACHE", "APPLOG", ]; -const COMMANDS: &[(&str, &[&str])] = &[ - ("mkdir", &[]), - ("create", &[]), - ("copy_file", &[]), - ("remove", &[]), - ("rename", &[]), - ("truncate", &[]), - ("ftruncate", &[]), - ("write", &[]), - ("write_file", &["open", "write"]), - ("write_text_file", &[]), - ("read_dir", &[]), - ("read_file", &[]), - ("read", &[]), - ("open", &[]), - ("read_text_file", &[]), - ("read_text_file_lines", &["read_text_file_lines_next"]), - ("read_text_file_lines_next", &[]), - ("seek", &[]), - ("stat", &[]), - ("lstat", &[]), - ("fstat", &[]), - ("exists", &[]), - ("watch", &[]), +// `write_file` and `read_text_file_lines` allow nested commands, so their permissions are +// manually authored in `permissions/commands/` instead of being autogenerated from this list. +const COMMANDS: &[&str] = &[ + "mkdir", + "create", + "copy_file", + "remove", + "rename", + "truncate", + "ftruncate", + "write", + "write_text_file", + "read_dir", + "read_file", + "read", + "open", + "read_text_file", + "read_text_file_lines_next", + "seek", + "stat", + "lstat", + "fstat", + "exists", + "watch", // TODO: Remove this in v3 - ("unwatch", &[]), - ("size", &[]), - ("start_accessing_security_scoped_resource", &[]), - ("stop_accessing_security_scoped_resource", &[]), + "unwatch", + "size", + "start_accessing_security_scoped_resource", + "stop_accessing_security_scoped_resource", ]; fn main() { @@ -211,62 +209,12 @@ permissions = [ } } - tauri_plugin::Builder::new( - &COMMANDS - .iter() - // FIXME: https://docs.rs/crate/tauri-plugin-fs/2.1.0/builds/1571296 - .filter(|c| c.1.is_empty()) - .map(|c| c.0) - .collect::>(), - ) - .global_api_script_path("./api-iife.js") - .global_scope_schema( - schemars::SchemaGenerator::new(schemars::generate::SchemaSettings::draft07()) - .into_root_schema_for::(), - ) - .android_path("android") - .build(); - - // workaround to include nested permissions as `tauri_plugin` doesn't support it - let permissions_dir = autogenerated.join("commands"); - for (command, nested_commands) in COMMANDS { - if nested_commands.is_empty() { - continue; - } - - let permission_path = permissions_dir.join(format!("{command}.toml")); - - let content = std::fs::read_to_string(&permission_path) - .unwrap_or_else(|_| panic!("failed to read {command}.toml")); - - let mut permission_file = toml::from_str::(&content) - .unwrap_or_else(|_| panic!("failed to deserialize {command}.toml")); - - for p in permission_file - .permission - .iter_mut() - .filter(|p| p.identifier.starts_with("allow")) - { - for c in nested_commands.iter().map(|s| s.to_string()) { - if !p.commands.allow.contains(&c) { - p.commands.allow.push(c); - } - } - } - - let out = toml::to_string_pretty(&permission_file) - .unwrap_or_else(|_| panic!("failed to serialize {command}.toml")); - let out = format!( - r#"# Automatically generated - DO NOT EDIT! - -"$schema" = "../../schemas/schema.json" - -{out}"# - ); - - if content != out { - std::fs::write(permission_path, out) - .unwrap_or_else(|_| panic!("failed to write {command}.toml")); - } - } + tauri_plugin::Builder::new(COMMANDS) + .global_api_script_path("./api-iife.js") + .global_scope_schema( + schemars::SchemaGenerator::new(schemars::generate::SchemaSettings::draft07()) + .into_root_schema_for::(), + ) + .android_path("android") + .build(); } diff --git a/plugins/fs/permissions/autogenerated/commands/commands.toml b/plugins/fs/permissions/autogenerated/commands/commands.toml new file mode 100644 index 00000000..96fe2fe2 --- /dev/null +++ b/plugins/fs/permissions/autogenerated/commands/commands.toml @@ -0,0 +1,5 @@ +# Automatically generated - DO NOT EDIT! + +"$schema" = "../../schemas/schema.json" + +commands = ["mkdir","create","copy_file","remove","rename","truncate","ftruncate","write","write_text_file","read_dir","read_file","read","open","read_text_file","read_text_file_lines_next","seek","stat","lstat","fstat","exists","watch","unwatch","size","start_accessing_security_scoped_resource","stop_accessing_security_scoped_resource"] diff --git a/plugins/fs/permissions/autogenerated/commands/copy_file.toml b/plugins/fs/permissions/autogenerated/commands/copy_file.toml deleted file mode 100644 index 61bedf9e..00000000 --- a/plugins/fs/permissions/autogenerated/commands/copy_file.toml +++ /dev/null @@ -1,13 +0,0 @@ -# Automatically generated - DO NOT EDIT! - -"$schema" = "../../schemas/schema.json" - -[[permission]] -identifier = "allow-copy-file" -description = "Enables the copy_file command without any pre-configured scope." -commands.allow = ["copy_file"] - -[[permission]] -identifier = "deny-copy-file" -description = "Denies the copy_file command without any pre-configured scope." -commands.deny = ["copy_file"] diff --git a/plugins/fs/permissions/autogenerated/commands/create.toml b/plugins/fs/permissions/autogenerated/commands/create.toml deleted file mode 100644 index 6646cc6c..00000000 --- a/plugins/fs/permissions/autogenerated/commands/create.toml +++ /dev/null @@ -1,13 +0,0 @@ -# Automatically generated - DO NOT EDIT! - -"$schema" = "../../schemas/schema.json" - -[[permission]] -identifier = "allow-create" -description = "Enables the create command without any pre-configured scope." -commands.allow = ["create"] - -[[permission]] -identifier = "deny-create" -description = "Denies the create command without any pre-configured scope." -commands.deny = ["create"] diff --git a/plugins/fs/permissions/autogenerated/commands/exists.toml b/plugins/fs/permissions/autogenerated/commands/exists.toml deleted file mode 100644 index 0eed148f..00000000 --- a/plugins/fs/permissions/autogenerated/commands/exists.toml +++ /dev/null @@ -1,13 +0,0 @@ -# Automatically generated - DO NOT EDIT! - -"$schema" = "../../schemas/schema.json" - -[[permission]] -identifier = "allow-exists" -description = "Enables the exists command without any pre-configured scope." -commands.allow = ["exists"] - -[[permission]] -identifier = "deny-exists" -description = "Denies the exists command without any pre-configured scope." -commands.deny = ["exists"] diff --git a/plugins/fs/permissions/autogenerated/commands/fstat.toml b/plugins/fs/permissions/autogenerated/commands/fstat.toml deleted file mode 100644 index 30d28112..00000000 --- a/plugins/fs/permissions/autogenerated/commands/fstat.toml +++ /dev/null @@ -1,13 +0,0 @@ -# Automatically generated - DO NOT EDIT! - -"$schema" = "../../schemas/schema.json" - -[[permission]] -identifier = "allow-fstat" -description = "Enables the fstat command without any pre-configured scope." -commands.allow = ["fstat"] - -[[permission]] -identifier = "deny-fstat" -description = "Denies the fstat command without any pre-configured scope." -commands.deny = ["fstat"] diff --git a/plugins/fs/permissions/autogenerated/commands/ftruncate.toml b/plugins/fs/permissions/autogenerated/commands/ftruncate.toml deleted file mode 100644 index 6b54ffe0..00000000 --- a/plugins/fs/permissions/autogenerated/commands/ftruncate.toml +++ /dev/null @@ -1,13 +0,0 @@ -# Automatically generated - DO NOT EDIT! - -"$schema" = "../../schemas/schema.json" - -[[permission]] -identifier = "allow-ftruncate" -description = "Enables the ftruncate command without any pre-configured scope." -commands.allow = ["ftruncate"] - -[[permission]] -identifier = "deny-ftruncate" -description = "Denies the ftruncate command without any pre-configured scope." -commands.deny = ["ftruncate"] diff --git a/plugins/fs/permissions/autogenerated/commands/lstat.toml b/plugins/fs/permissions/autogenerated/commands/lstat.toml deleted file mode 100644 index b224635b..00000000 --- a/plugins/fs/permissions/autogenerated/commands/lstat.toml +++ /dev/null @@ -1,13 +0,0 @@ -# Automatically generated - DO NOT EDIT! - -"$schema" = "../../schemas/schema.json" - -[[permission]] -identifier = "allow-lstat" -description = "Enables the lstat command without any pre-configured scope." -commands.allow = ["lstat"] - -[[permission]] -identifier = "deny-lstat" -description = "Denies the lstat command without any pre-configured scope." -commands.deny = ["lstat"] diff --git a/plugins/fs/permissions/autogenerated/commands/mkdir.toml b/plugins/fs/permissions/autogenerated/commands/mkdir.toml deleted file mode 100644 index 58cdbbc7..00000000 --- a/plugins/fs/permissions/autogenerated/commands/mkdir.toml +++ /dev/null @@ -1,13 +0,0 @@ -# Automatically generated - DO NOT EDIT! - -"$schema" = "../../schemas/schema.json" - -[[permission]] -identifier = "allow-mkdir" -description = "Enables the mkdir command without any pre-configured scope." -commands.allow = ["mkdir"] - -[[permission]] -identifier = "deny-mkdir" -description = "Denies the mkdir command without any pre-configured scope." -commands.deny = ["mkdir"] diff --git a/plugins/fs/permissions/autogenerated/commands/open.toml b/plugins/fs/permissions/autogenerated/commands/open.toml deleted file mode 100644 index 4ea6dff1..00000000 --- a/plugins/fs/permissions/autogenerated/commands/open.toml +++ /dev/null @@ -1,13 +0,0 @@ -# Automatically generated - DO NOT EDIT! - -"$schema" = "../../schemas/schema.json" - -[[permission]] -identifier = "allow-open" -description = "Enables the open command without any pre-configured scope." -commands.allow = ["open"] - -[[permission]] -identifier = "deny-open" -description = "Denies the open command without any pre-configured scope." -commands.deny = ["open"] diff --git a/plugins/fs/permissions/autogenerated/commands/read.toml b/plugins/fs/permissions/autogenerated/commands/read.toml deleted file mode 100644 index 20fa10c6..00000000 --- a/plugins/fs/permissions/autogenerated/commands/read.toml +++ /dev/null @@ -1,13 +0,0 @@ -# Automatically generated - DO NOT EDIT! - -"$schema" = "../../schemas/schema.json" - -[[permission]] -identifier = "allow-read" -description = "Enables the read command without any pre-configured scope." -commands.allow = ["read"] - -[[permission]] -identifier = "deny-read" -description = "Denies the read command without any pre-configured scope." -commands.deny = ["read"] diff --git a/plugins/fs/permissions/autogenerated/commands/read_dir.toml b/plugins/fs/permissions/autogenerated/commands/read_dir.toml deleted file mode 100644 index eef68eba..00000000 --- a/plugins/fs/permissions/autogenerated/commands/read_dir.toml +++ /dev/null @@ -1,13 +0,0 @@ -# Automatically generated - DO NOT EDIT! - -"$schema" = "../../schemas/schema.json" - -[[permission]] -identifier = "allow-read-dir" -description = "Enables the read_dir command without any pre-configured scope." -commands.allow = ["read_dir"] - -[[permission]] -identifier = "deny-read-dir" -description = "Denies the read_dir command without any pre-configured scope." -commands.deny = ["read_dir"] diff --git a/plugins/fs/permissions/autogenerated/commands/read_file.toml b/plugins/fs/permissions/autogenerated/commands/read_file.toml deleted file mode 100644 index b932b71a..00000000 --- a/plugins/fs/permissions/autogenerated/commands/read_file.toml +++ /dev/null @@ -1,13 +0,0 @@ -# Automatically generated - DO NOT EDIT! - -"$schema" = "../../schemas/schema.json" - -[[permission]] -identifier = "allow-read-file" -description = "Enables the read_file command without any pre-configured scope." -commands.allow = ["read_file"] - -[[permission]] -identifier = "deny-read-file" -description = "Denies the read_file command without any pre-configured scope." -commands.deny = ["read_file"] diff --git a/plugins/fs/permissions/autogenerated/commands/read_text_file.toml b/plugins/fs/permissions/autogenerated/commands/read_text_file.toml deleted file mode 100644 index 7a25115d..00000000 --- a/plugins/fs/permissions/autogenerated/commands/read_text_file.toml +++ /dev/null @@ -1,13 +0,0 @@ -# Automatically generated - DO NOT EDIT! - -"$schema" = "../../schemas/schema.json" - -[[permission]] -identifier = "allow-read-text-file" -description = "Enables the read_text_file command without any pre-configured scope." -commands.allow = ["read_text_file"] - -[[permission]] -identifier = "deny-read-text-file" -description = "Denies the read_text_file command without any pre-configured scope." -commands.deny = ["read_text_file"] diff --git a/plugins/fs/permissions/autogenerated/commands/read_text_file_lines.toml b/plugins/fs/permissions/autogenerated/commands/read_text_file_lines.toml deleted file mode 100644 index 84b4ebb2..00000000 --- a/plugins/fs/permissions/autogenerated/commands/read_text_file_lines.toml +++ /dev/null @@ -1,22 +0,0 @@ -# Automatically generated - DO NOT EDIT! - -"$schema" = "../../schemas/schema.json" - -[[permission]] -identifier = "allow-read-text-file-lines" -description = "Enables the read_text_file_lines command without any pre-configured scope." - -[permission.commands] -allow = [ - "read_text_file_lines", - "read_text_file_lines_next", -] -deny = [] - -[[permission]] -identifier = "deny-read-text-file-lines" -description = "Denies the read_text_file_lines command without any pre-configured scope." - -[permission.commands] -allow = [] -deny = ["read_text_file_lines"] diff --git a/plugins/fs/permissions/autogenerated/commands/read_text_file_lines_next.toml b/plugins/fs/permissions/autogenerated/commands/read_text_file_lines_next.toml deleted file mode 100644 index 021ea37c..00000000 --- a/plugins/fs/permissions/autogenerated/commands/read_text_file_lines_next.toml +++ /dev/null @@ -1,13 +0,0 @@ -# Automatically generated - DO NOT EDIT! - -"$schema" = "../../schemas/schema.json" - -[[permission]] -identifier = "allow-read-text-file-lines-next" -description = "Enables the read_text_file_lines_next command without any pre-configured scope." -commands.allow = ["read_text_file_lines_next"] - -[[permission]] -identifier = "deny-read-text-file-lines-next" -description = "Denies the read_text_file_lines_next command without any pre-configured scope." -commands.deny = ["read_text_file_lines_next"] diff --git a/plugins/fs/permissions/autogenerated/commands/remove.toml b/plugins/fs/permissions/autogenerated/commands/remove.toml deleted file mode 100644 index 9c9791eb..00000000 --- a/plugins/fs/permissions/autogenerated/commands/remove.toml +++ /dev/null @@ -1,13 +0,0 @@ -# Automatically generated - DO NOT EDIT! - -"$schema" = "../../schemas/schema.json" - -[[permission]] -identifier = "allow-remove" -description = "Enables the remove command without any pre-configured scope." -commands.allow = ["remove"] - -[[permission]] -identifier = "deny-remove" -description = "Denies the remove command without any pre-configured scope." -commands.deny = ["remove"] diff --git a/plugins/fs/permissions/autogenerated/commands/rename.toml b/plugins/fs/permissions/autogenerated/commands/rename.toml deleted file mode 100644 index 91def18f..00000000 --- a/plugins/fs/permissions/autogenerated/commands/rename.toml +++ /dev/null @@ -1,13 +0,0 @@ -# Automatically generated - DO NOT EDIT! - -"$schema" = "../../schemas/schema.json" - -[[permission]] -identifier = "allow-rename" -description = "Enables the rename command without any pre-configured scope." -commands.allow = ["rename"] - -[[permission]] -identifier = "deny-rename" -description = "Denies the rename command without any pre-configured scope." -commands.deny = ["rename"] diff --git a/plugins/fs/permissions/autogenerated/commands/seek.toml b/plugins/fs/permissions/autogenerated/commands/seek.toml deleted file mode 100644 index cb21bdc3..00000000 --- a/plugins/fs/permissions/autogenerated/commands/seek.toml +++ /dev/null @@ -1,13 +0,0 @@ -# Automatically generated - DO NOT EDIT! - -"$schema" = "../../schemas/schema.json" - -[[permission]] -identifier = "allow-seek" -description = "Enables the seek command without any pre-configured scope." -commands.allow = ["seek"] - -[[permission]] -identifier = "deny-seek" -description = "Denies the seek command without any pre-configured scope." -commands.deny = ["seek"] diff --git a/plugins/fs/permissions/autogenerated/commands/size.toml b/plugins/fs/permissions/autogenerated/commands/size.toml deleted file mode 100644 index 8a0ea55c..00000000 --- a/plugins/fs/permissions/autogenerated/commands/size.toml +++ /dev/null @@ -1,13 +0,0 @@ -# Automatically generated - DO NOT EDIT! - -"$schema" = "../../schemas/schema.json" - -[[permission]] -identifier = "allow-size" -description = "Enables the size command without any pre-configured scope." -commands.allow = ["size"] - -[[permission]] -identifier = "deny-size" -description = "Denies the size command without any pre-configured scope." -commands.deny = ["size"] diff --git a/plugins/fs/permissions/autogenerated/commands/start_accessing_security_scoped_resource.toml b/plugins/fs/permissions/autogenerated/commands/start_accessing_security_scoped_resource.toml deleted file mode 100644 index d14c502f..00000000 --- a/plugins/fs/permissions/autogenerated/commands/start_accessing_security_scoped_resource.toml +++ /dev/null @@ -1,13 +0,0 @@ -# Automatically generated - DO NOT EDIT! - -"$schema" = "../../schemas/schema.json" - -[[permission]] -identifier = "allow-start-accessing-security-scoped-resource" -description = "Enables the start_accessing_security_scoped_resource command without any pre-configured scope." -commands.allow = ["start_accessing_security_scoped_resource"] - -[[permission]] -identifier = "deny-start-accessing-security-scoped-resource" -description = "Denies the start_accessing_security_scoped_resource command without any pre-configured scope." -commands.deny = ["start_accessing_security_scoped_resource"] diff --git a/plugins/fs/permissions/autogenerated/commands/stat.toml b/plugins/fs/permissions/autogenerated/commands/stat.toml deleted file mode 100644 index 56f751bc..00000000 --- a/plugins/fs/permissions/autogenerated/commands/stat.toml +++ /dev/null @@ -1,13 +0,0 @@ -# Automatically generated - DO NOT EDIT! - -"$schema" = "../../schemas/schema.json" - -[[permission]] -identifier = "allow-stat" -description = "Enables the stat command without any pre-configured scope." -commands.allow = ["stat"] - -[[permission]] -identifier = "deny-stat" -description = "Denies the stat command without any pre-configured scope." -commands.deny = ["stat"] diff --git a/plugins/fs/permissions/autogenerated/commands/stop_accessing_security_scoped_resource.toml b/plugins/fs/permissions/autogenerated/commands/stop_accessing_security_scoped_resource.toml deleted file mode 100644 index fae3f19c..00000000 --- a/plugins/fs/permissions/autogenerated/commands/stop_accessing_security_scoped_resource.toml +++ /dev/null @@ -1,13 +0,0 @@ -# Automatically generated - DO NOT EDIT! - -"$schema" = "../../schemas/schema.json" - -[[permission]] -identifier = "allow-stop-accessing-security-scoped-resource" -description = "Enables the stop_accessing_security_scoped_resource command without any pre-configured scope." -commands.allow = ["stop_accessing_security_scoped_resource"] - -[[permission]] -identifier = "deny-stop-accessing-security-scoped-resource" -description = "Denies the stop_accessing_security_scoped_resource command without any pre-configured scope." -commands.deny = ["stop_accessing_security_scoped_resource"] diff --git a/plugins/fs/permissions/autogenerated/commands/truncate.toml b/plugins/fs/permissions/autogenerated/commands/truncate.toml deleted file mode 100644 index 62fbb144..00000000 --- a/plugins/fs/permissions/autogenerated/commands/truncate.toml +++ /dev/null @@ -1,13 +0,0 @@ -# Automatically generated - DO NOT EDIT! - -"$schema" = "../../schemas/schema.json" - -[[permission]] -identifier = "allow-truncate" -description = "Enables the truncate command without any pre-configured scope." -commands.allow = ["truncate"] - -[[permission]] -identifier = "deny-truncate" -description = "Denies the truncate command without any pre-configured scope." -commands.deny = ["truncate"] diff --git a/plugins/fs/permissions/autogenerated/commands/unwatch.toml b/plugins/fs/permissions/autogenerated/commands/unwatch.toml deleted file mode 100644 index 3259e9a6..00000000 --- a/plugins/fs/permissions/autogenerated/commands/unwatch.toml +++ /dev/null @@ -1,13 +0,0 @@ -# Automatically generated - DO NOT EDIT! - -"$schema" = "../../schemas/schema.json" - -[[permission]] -identifier = "allow-unwatch" -description = "Enables the unwatch command without any pre-configured scope." -commands.allow = ["unwatch"] - -[[permission]] -identifier = "deny-unwatch" -description = "Denies the unwatch command without any pre-configured scope." -commands.deny = ["unwatch"] diff --git a/plugins/fs/permissions/autogenerated/commands/watch.toml b/plugins/fs/permissions/autogenerated/commands/watch.toml deleted file mode 100644 index 8dd1b577..00000000 --- a/plugins/fs/permissions/autogenerated/commands/watch.toml +++ /dev/null @@ -1,13 +0,0 @@ -# Automatically generated - DO NOT EDIT! - -"$schema" = "../../schemas/schema.json" - -[[permission]] -identifier = "allow-watch" -description = "Enables the watch command without any pre-configured scope." -commands.allow = ["watch"] - -[[permission]] -identifier = "deny-watch" -description = "Denies the watch command without any pre-configured scope." -commands.deny = ["watch"] diff --git a/plugins/fs/permissions/autogenerated/commands/write.toml b/plugins/fs/permissions/autogenerated/commands/write.toml deleted file mode 100644 index 73d1d387..00000000 --- a/plugins/fs/permissions/autogenerated/commands/write.toml +++ /dev/null @@ -1,13 +0,0 @@ -# Automatically generated - DO NOT EDIT! - -"$schema" = "../../schemas/schema.json" - -[[permission]] -identifier = "allow-write" -description = "Enables the write command without any pre-configured scope." -commands.allow = ["write"] - -[[permission]] -identifier = "deny-write" -description = "Denies the write command without any pre-configured scope." -commands.deny = ["write"] diff --git a/plugins/fs/permissions/autogenerated/commands/write_file.toml b/plugins/fs/permissions/autogenerated/commands/write_file.toml deleted file mode 100644 index ea7d5136..00000000 --- a/plugins/fs/permissions/autogenerated/commands/write_file.toml +++ /dev/null @@ -1,23 +0,0 @@ -# Automatically generated - DO NOT EDIT! - -"$schema" = "../../schemas/schema.json" - -[[permission]] -identifier = "allow-write-file" -description = "Enables the write_file command without any pre-configured scope." - -[permission.commands] -allow = [ - "write_file", - "open", - "write", -] -deny = [] - -[[permission]] -identifier = "deny-write-file" -description = "Denies the write_file command without any pre-configured scope." - -[permission.commands] -allow = [] -deny = ["write_file"] diff --git a/plugins/fs/permissions/autogenerated/commands/write_text_file.toml b/plugins/fs/permissions/autogenerated/commands/write_text_file.toml deleted file mode 100644 index 6b497a70..00000000 --- a/plugins/fs/permissions/autogenerated/commands/write_text_file.toml +++ /dev/null @@ -1,13 +0,0 @@ -# Automatically generated - DO NOT EDIT! - -"$schema" = "../../schemas/schema.json" - -[[permission]] -identifier = "allow-write-text-file" -description = "Enables the write_text_file command without any pre-configured scope." -commands.allow = ["write_text_file"] - -[[permission]] -identifier = "deny-write-text-file" -description = "Denies the write_text_file command without any pre-configured scope." -commands.deny = ["write_text_file"] diff --git a/plugins/fs/permissions/autogenerated/reference.md b/plugins/fs/permissions/autogenerated/reference.md index 8aa25d51..590deca4 100644 --- a/plugins/fs/permissions/autogenerated/reference.md +++ b/plugins/fs/permissions/autogenerated/reference.md @@ -3279,32 +3279,6 @@ Denies the read_text_file command without any pre-configured scope. -`fs:allow-read-text-file-lines` - - - - -Enables the read_text_file_lines command without any pre-configured scope. - - - - - - - -`fs:deny-read-text-file-lines` - - - - -Denies the read_text_file_lines command without any pre-configured scope. - - - - - - - `fs:allow-read-text-file-lines-next` @@ -3617,32 +3591,6 @@ Denies the write command without any pre-configured scope. -`fs:allow-write-file` - - - - -Enables the write_file command without any pre-configured scope. - - - - - - - -`fs:deny-write-file` - - - - -Denies the write_file command without any pre-configured scope. - - - - - - - `fs:allow-write-text-file` @@ -3669,6 +3617,58 @@ Denies the write_text_file command without any pre-configured scope. +`fs:allow-read-text-file-lines` + + + + +Enables the read_text_file_lines command without any pre-configured scope. + + + + + + + +`fs:deny-read-text-file-lines` + + + + +Denies the read_text_file_lines command without any pre-configured scope. + + + + + + + +`fs:allow-write-file` + + + + +Enables the write_file command without any pre-configured scope. + + + + + + + +`fs:deny-write-file` + + + + +Denies the write_file command without any pre-configured scope. + + + + + + + `fs:create-app-specific-dirs` diff --git a/plugins/fs/permissions/commands/read_text_file_lines.toml b/plugins/fs/permissions/commands/read_text_file_lines.toml new file mode 100644 index 00000000..ce4c1c98 --- /dev/null +++ b/plugins/fs/permissions/commands/read_text_file_lines.toml @@ -0,0 +1,17 @@ +"$schema" = "../schemas/schema.json" + +# This command allows nested commands, so its permissions are manually +# authored here instead of being autogenerated from the `COMMANDS` list in `build.rs`. + +[[permission]] +identifier = "allow-read-text-file-lines" +description = "Enables the read_text_file_lines command without any pre-configured scope." +commands.allow = [ + "read_text_file_lines", + "read_text_file_lines_next", +] + +[[permission]] +identifier = "deny-read-text-file-lines" +description = "Denies the read_text_file_lines command without any pre-configured scope." +commands.deny = ["read_text_file_lines"] diff --git a/plugins/fs/permissions/commands/write_file.toml b/plugins/fs/permissions/commands/write_file.toml new file mode 100644 index 00000000..ea8a8a22 --- /dev/null +++ b/plugins/fs/permissions/commands/write_file.toml @@ -0,0 +1,18 @@ +"$schema" = "../schemas/schema.json" + +# This command allows nested commands, so its permissions are manually +# authored here instead of being autogenerated from the `COMMANDS` list in `build.rs`. + +[[permission]] +identifier = "allow-write-file" +description = "Enables the write_file command without any pre-configured scope." +commands.allow = [ + "write_file", + "open", + "write", +] + +[[permission]] +identifier = "deny-write-file" +description = "Denies the write_file command without any pre-configured scope." +commands.deny = ["write_file"] diff --git a/plugins/fs/permissions/schemas/schema.json b/plugins/fs/permissions/schemas/schema.json index 7cc6cab1..df3dad39 100644 --- a/plugins/fs/permissions/schemas/schema.json +++ b/plugins/fs/permissions/schemas/schema.json @@ -29,6 +29,13 @@ "$ref": "#/definitions/Permission" }, "default": [] + }, + "commands": { + "description": "A list of command names that get `allow-$command` and `deny-$command` permissions\nautogenerated on demand instead of being stored as explicit permissions.\n\nSee [`Manifest::command_permission`] and the ACL resolver for how these are expanded.", + "type": "array", + "items": { + "type": "string" + } } }, "definitions": { diff --git a/plugins/geolocation/permissions/autogenerated/commands/check_permissions.toml b/plugins/geolocation/permissions/autogenerated/commands/check_permissions.toml deleted file mode 100644 index f5af08b1..00000000 --- a/plugins/geolocation/permissions/autogenerated/commands/check_permissions.toml +++ /dev/null @@ -1,13 +0,0 @@ -# Automatically generated - DO NOT EDIT! - -"$schema" = "../../schemas/schema.json" - -[[permission]] -identifier = "allow-check-permissions" -description = "Enables the check_permissions command without any pre-configured scope." -commands.allow = ["check_permissions"] - -[[permission]] -identifier = "deny-check-permissions" -description = "Denies the check_permissions command without any pre-configured scope." -commands.deny = ["check_permissions"] diff --git a/plugins/geolocation/permissions/autogenerated/commands/clear_permissions.toml b/plugins/geolocation/permissions/autogenerated/commands/clear_permissions.toml deleted file mode 100644 index a3e6ab5c..00000000 --- a/plugins/geolocation/permissions/autogenerated/commands/clear_permissions.toml +++ /dev/null @@ -1,13 +0,0 @@ -# Automatically generated - DO NOT EDIT! - -"$schema" = "../../schemas/schema.json" - -[[permission]] -identifier = "allow-clear-permissions" -description = "Enables the clear_permissions command without any pre-configured scope." -commands.allow = ["clear_permissions"] - -[[permission]] -identifier = "deny-clear-permissions" -description = "Denies the clear_permissions command without any pre-configured scope." -commands.deny = ["clear_permissions"] diff --git a/plugins/geolocation/permissions/autogenerated/commands/clear_watch.toml b/plugins/geolocation/permissions/autogenerated/commands/clear_watch.toml deleted file mode 100644 index 19fb5776..00000000 --- a/plugins/geolocation/permissions/autogenerated/commands/clear_watch.toml +++ /dev/null @@ -1,13 +0,0 @@ -# Automatically generated - DO NOT EDIT! - -"$schema" = "../../schemas/schema.json" - -[[permission]] -identifier = "allow-clear-watch" -description = "Enables the clear_watch command without any pre-configured scope." -commands.allow = ["clear_watch"] - -[[permission]] -identifier = "deny-clear-watch" -description = "Denies the clear_watch command without any pre-configured scope." -commands.deny = ["clear_watch"] diff --git a/plugins/geolocation/permissions/autogenerated/commands/commands.toml b/plugins/geolocation/permissions/autogenerated/commands/commands.toml new file mode 100644 index 00000000..8e97db14 --- /dev/null +++ b/plugins/geolocation/permissions/autogenerated/commands/commands.toml @@ -0,0 +1,5 @@ +# Automatically generated - DO NOT EDIT! + +"$schema" = "../../schemas/schema.json" + +commands = ["get_current_position","watch_position","clear_watch","check_permissions","request_permissions"] diff --git a/plugins/geolocation/permissions/autogenerated/commands/get_current_position.toml b/plugins/geolocation/permissions/autogenerated/commands/get_current_position.toml deleted file mode 100644 index fefb951b..00000000 --- a/plugins/geolocation/permissions/autogenerated/commands/get_current_position.toml +++ /dev/null @@ -1,13 +0,0 @@ -# Automatically generated - DO NOT EDIT! - -"$schema" = "../../schemas/schema.json" - -[[permission]] -identifier = "allow-get-current-position" -description = "Enables the get_current_position command without any pre-configured scope." -commands.allow = ["get_current_position"] - -[[permission]] -identifier = "deny-get-current-position" -description = "Denies the get_current_position command without any pre-configured scope." -commands.deny = ["get_current_position"] diff --git a/plugins/geolocation/permissions/autogenerated/commands/request_permissions.toml b/plugins/geolocation/permissions/autogenerated/commands/request_permissions.toml deleted file mode 100644 index 02dcd627..00000000 --- a/plugins/geolocation/permissions/autogenerated/commands/request_permissions.toml +++ /dev/null @@ -1,13 +0,0 @@ -# Automatically generated - DO NOT EDIT! - -"$schema" = "../../schemas/schema.json" - -[[permission]] -identifier = "allow-request-permissions" -description = "Enables the request_permissions command without any pre-configured scope." -commands.allow = ["request_permissions"] - -[[permission]] -identifier = "deny-request-permissions" -description = "Denies the request_permissions command without any pre-configured scope." -commands.deny = ["request_permissions"] diff --git a/plugins/geolocation/permissions/autogenerated/commands/watch_position.toml b/plugins/geolocation/permissions/autogenerated/commands/watch_position.toml deleted file mode 100644 index 5878ba1a..00000000 --- a/plugins/geolocation/permissions/autogenerated/commands/watch_position.toml +++ /dev/null @@ -1,13 +0,0 @@ -# Automatically generated - DO NOT EDIT! - -"$schema" = "../../schemas/schema.json" - -[[permission]] -identifier = "allow-watch-position" -description = "Enables the watch_position command without any pre-configured scope." -commands.allow = ["watch_position"] - -[[permission]] -identifier = "deny-watch-position" -description = "Denies the watch_position command without any pre-configured scope." -commands.deny = ["watch_position"] diff --git a/plugins/geolocation/permissions/autogenerated/reference.md b/plugins/geolocation/permissions/autogenerated/reference.md index 0215a998..13e0374b 100644 --- a/plugins/geolocation/permissions/autogenerated/reference.md +++ b/plugins/geolocation/permissions/autogenerated/reference.md @@ -36,32 +36,6 @@ Denies the check_permissions command without any pre-configured scope. -`geolocation:allow-clear-permissions` - - - - -Enables the clear_permissions command without any pre-configured scope. - - - - - - - -`geolocation:deny-clear-permissions` - - - - -Denies the clear_permissions command without any pre-configured scope. - - - - - - - `geolocation:allow-clear-watch` diff --git a/plugins/geolocation/permissions/schemas/schema.json b/plugins/geolocation/permissions/schemas/schema.json index 7cc6cab1..df3dad39 100644 --- a/plugins/geolocation/permissions/schemas/schema.json +++ b/plugins/geolocation/permissions/schemas/schema.json @@ -29,6 +29,13 @@ "$ref": "#/definitions/Permission" }, "default": [] + }, + "commands": { + "description": "A list of command names that get `allow-$command` and `deny-$command` permissions\nautogenerated on demand instead of being stored as explicit permissions.\n\nSee [`Manifest::command_permission`] and the ACL resolver for how these are expanded.", + "type": "array", + "items": { + "type": "string" + } } }, "definitions": { diff --git a/plugins/global-shortcut/permissions/autogenerated/commands/commands.toml b/plugins/global-shortcut/permissions/autogenerated/commands/commands.toml new file mode 100644 index 00000000..2c9d1b85 --- /dev/null +++ b/plugins/global-shortcut/permissions/autogenerated/commands/commands.toml @@ -0,0 +1,5 @@ +# Automatically generated - DO NOT EDIT! + +"$schema" = "../../schemas/schema.json" + +commands = ["register","unregister","unregister_all","is_registered"] diff --git a/plugins/global-shortcut/permissions/autogenerated/commands/is_registered.toml b/plugins/global-shortcut/permissions/autogenerated/commands/is_registered.toml deleted file mode 100644 index 2dd73ace..00000000 --- a/plugins/global-shortcut/permissions/autogenerated/commands/is_registered.toml +++ /dev/null @@ -1,13 +0,0 @@ -# Automatically generated - DO NOT EDIT! - -"$schema" = "../../schemas/schema.json" - -[[permission]] -identifier = "allow-is-registered" -description = "Enables the is_registered command without any pre-configured scope." -commands.allow = ["is_registered"] - -[[permission]] -identifier = "deny-is-registered" -description = "Denies the is_registered command without any pre-configured scope." -commands.deny = ["is_registered"] diff --git a/plugins/global-shortcut/permissions/autogenerated/commands/register.toml b/plugins/global-shortcut/permissions/autogenerated/commands/register.toml deleted file mode 100644 index 4eec17dc..00000000 --- a/plugins/global-shortcut/permissions/autogenerated/commands/register.toml +++ /dev/null @@ -1,13 +0,0 @@ -# Automatically generated - DO NOT EDIT! - -"$schema" = "../../schemas/schema.json" - -[[permission]] -identifier = "allow-register" -description = "Enables the register command without any pre-configured scope." -commands.allow = ["register"] - -[[permission]] -identifier = "deny-register" -description = "Denies the register command without any pre-configured scope." -commands.deny = ["register"] diff --git a/plugins/global-shortcut/permissions/autogenerated/commands/register_all.toml b/plugins/global-shortcut/permissions/autogenerated/commands/register_all.toml deleted file mode 100644 index df5d0ecf..00000000 --- a/plugins/global-shortcut/permissions/autogenerated/commands/register_all.toml +++ /dev/null @@ -1,13 +0,0 @@ -# Automatically generated - DO NOT EDIT! - -"$schema" = "../../schemas/schema.json" - -[[permission]] -identifier = "allow-register-all" -description = "Enables the register_all command without any pre-configured scope." -commands.allow = ["register_all"] - -[[permission]] -identifier = "deny-register-all" -description = "Denies the register_all command without any pre-configured scope." -commands.deny = ["register_all"] diff --git a/plugins/global-shortcut/permissions/autogenerated/commands/unregister.toml b/plugins/global-shortcut/permissions/autogenerated/commands/unregister.toml deleted file mode 100644 index 5d33c97c..00000000 --- a/plugins/global-shortcut/permissions/autogenerated/commands/unregister.toml +++ /dev/null @@ -1,13 +0,0 @@ -# Automatically generated - DO NOT EDIT! - -"$schema" = "../../schemas/schema.json" - -[[permission]] -identifier = "allow-unregister" -description = "Enables the unregister command without any pre-configured scope." -commands.allow = ["unregister"] - -[[permission]] -identifier = "deny-unregister" -description = "Denies the unregister command without any pre-configured scope." -commands.deny = ["unregister"] diff --git a/plugins/global-shortcut/permissions/autogenerated/commands/unregister_all.toml b/plugins/global-shortcut/permissions/autogenerated/commands/unregister_all.toml deleted file mode 100644 index 12c12f8b..00000000 --- a/plugins/global-shortcut/permissions/autogenerated/commands/unregister_all.toml +++ /dev/null @@ -1,13 +0,0 @@ -# Automatically generated - DO NOT EDIT! - -"$schema" = "../../schemas/schema.json" - -[[permission]] -identifier = "allow-unregister-all" -description = "Enables the unregister_all command without any pre-configured scope." -commands.allow = ["unregister_all"] - -[[permission]] -identifier = "deny-unregister-all" -description = "Denies the unregister_all command without any pre-configured scope." -commands.deny = ["unregister_all"] diff --git a/plugins/global-shortcut/permissions/autogenerated/reference.md b/plugins/global-shortcut/permissions/autogenerated/reference.md index 240224cd..8996ec97 100644 --- a/plugins/global-shortcut/permissions/autogenerated/reference.md +++ b/plugins/global-shortcut/permissions/autogenerated/reference.md @@ -69,32 +69,6 @@ Denies the register command without any pre-configured scope. -`global-shortcut:allow-register-all` - - - - -Enables the register_all command without any pre-configured scope. - - - - - - - -`global-shortcut:deny-register-all` - - - - -Denies the register_all command without any pre-configured scope. - - - - - - - `global-shortcut:allow-unregister` diff --git a/plugins/global-shortcut/permissions/schemas/schema.json b/plugins/global-shortcut/permissions/schemas/schema.json index 7cc6cab1..df3dad39 100644 --- a/plugins/global-shortcut/permissions/schemas/schema.json +++ b/plugins/global-shortcut/permissions/schemas/schema.json @@ -29,6 +29,13 @@ "$ref": "#/definitions/Permission" }, "default": [] + }, + "commands": { + "description": "A list of command names that get `allow-$command` and `deny-$command` permissions\nautogenerated on demand instead of being stored as explicit permissions.\n\nSee [`Manifest::command_permission`] and the ACL resolver for how these are expanded.", + "type": "array", + "items": { + "type": "string" + } } }, "definitions": { diff --git a/plugins/haptics/permissions/autogenerated/commands/commands.toml b/plugins/haptics/permissions/autogenerated/commands/commands.toml new file mode 100644 index 00000000..dc26e03c --- /dev/null +++ b/plugins/haptics/permissions/autogenerated/commands/commands.toml @@ -0,0 +1,5 @@ +# Automatically generated - DO NOT EDIT! + +"$schema" = "../../schemas/schema.json" + +commands = ["vibrate","impact_feedback","notification_feedback","selection_feedback"] diff --git a/plugins/haptics/permissions/autogenerated/commands/impact_feedback.toml b/plugins/haptics/permissions/autogenerated/commands/impact_feedback.toml deleted file mode 100644 index 13fce392..00000000 --- a/plugins/haptics/permissions/autogenerated/commands/impact_feedback.toml +++ /dev/null @@ -1,13 +0,0 @@ -# Automatically generated - DO NOT EDIT! - -"$schema" = "../../schemas/schema.json" - -[[permission]] -identifier = "allow-impact-feedback" -description = "Enables the impact_feedback command without any pre-configured scope." -commands.allow = ["impact_feedback"] - -[[permission]] -identifier = "deny-impact-feedback" -description = "Denies the impact_feedback command without any pre-configured scope." -commands.deny = ["impact_feedback"] diff --git a/plugins/haptics/permissions/autogenerated/commands/notification_feedback.toml b/plugins/haptics/permissions/autogenerated/commands/notification_feedback.toml deleted file mode 100644 index 0c2782c5..00000000 --- a/plugins/haptics/permissions/autogenerated/commands/notification_feedback.toml +++ /dev/null @@ -1,13 +0,0 @@ -# Automatically generated - DO NOT EDIT! - -"$schema" = "../../schemas/schema.json" - -[[permission]] -identifier = "allow-notification-feedback" -description = "Enables the notification_feedback command without any pre-configured scope." -commands.allow = ["notification_feedback"] - -[[permission]] -identifier = "deny-notification-feedback" -description = "Denies the notification_feedback command without any pre-configured scope." -commands.deny = ["notification_feedback"] diff --git a/plugins/haptics/permissions/autogenerated/commands/selection_feedback.toml b/plugins/haptics/permissions/autogenerated/commands/selection_feedback.toml deleted file mode 100644 index 63e645d8..00000000 --- a/plugins/haptics/permissions/autogenerated/commands/selection_feedback.toml +++ /dev/null @@ -1,13 +0,0 @@ -# Automatically generated - DO NOT EDIT! - -"$schema" = "../../schemas/schema.json" - -[[permission]] -identifier = "allow-selection-feedback" -description = "Enables the selection_feedback command without any pre-configured scope." -commands.allow = ["selection_feedback"] - -[[permission]] -identifier = "deny-selection-feedback" -description = "Denies the selection_feedback command without any pre-configured scope." -commands.deny = ["selection_feedback"] diff --git a/plugins/haptics/permissions/autogenerated/commands/vibrate.toml b/plugins/haptics/permissions/autogenerated/commands/vibrate.toml deleted file mode 100644 index 4c2fe94e..00000000 --- a/plugins/haptics/permissions/autogenerated/commands/vibrate.toml +++ /dev/null @@ -1,13 +0,0 @@ -# Automatically generated - DO NOT EDIT! - -"$schema" = "../../schemas/schema.json" - -[[permission]] -identifier = "allow-vibrate" -description = "Enables the vibrate command without any pre-configured scope." -commands.allow = ["vibrate"] - -[[permission]] -identifier = "deny-vibrate" -description = "Denies the vibrate command without any pre-configured scope." -commands.deny = ["vibrate"] diff --git a/plugins/haptics/permissions/schemas/schema.json b/plugins/haptics/permissions/schemas/schema.json index 7cc6cab1..df3dad39 100644 --- a/plugins/haptics/permissions/schemas/schema.json +++ b/plugins/haptics/permissions/schemas/schema.json @@ -29,6 +29,13 @@ "$ref": "#/definitions/Permission" }, "default": [] + }, + "commands": { + "description": "A list of command names that get `allow-$command` and `deny-$command` permissions\nautogenerated on demand instead of being stored as explicit permissions.\n\nSee [`Manifest::command_permission`] and the ACL resolver for how these are expanded.", + "type": "array", + "items": { + "type": "string" + } } }, "definitions": { diff --git a/plugins/http/permissions/autogenerated/commands/commands.toml b/plugins/http/permissions/autogenerated/commands/commands.toml new file mode 100644 index 00000000..d1ea85cb --- /dev/null +++ b/plugins/http/permissions/autogenerated/commands/commands.toml @@ -0,0 +1,5 @@ +# Automatically generated - DO NOT EDIT! + +"$schema" = "../../schemas/schema.json" + +commands = ["fetch","fetch_cancel","fetch_send","fetch_read_body","fetch_cancel_body"] diff --git a/plugins/http/permissions/autogenerated/commands/fetch.toml b/plugins/http/permissions/autogenerated/commands/fetch.toml deleted file mode 100644 index c4e068a7..00000000 --- a/plugins/http/permissions/autogenerated/commands/fetch.toml +++ /dev/null @@ -1,13 +0,0 @@ -# Automatically generated - DO NOT EDIT! - -"$schema" = "../../schemas/schema.json" - -[[permission]] -identifier = "allow-fetch" -description = "Enables the fetch command without any pre-configured scope." -commands.allow = ["fetch"] - -[[permission]] -identifier = "deny-fetch" -description = "Denies the fetch command without any pre-configured scope." -commands.deny = ["fetch"] diff --git a/plugins/http/permissions/autogenerated/commands/fetch_cancel.toml b/plugins/http/permissions/autogenerated/commands/fetch_cancel.toml deleted file mode 100644 index 70c1139b..00000000 --- a/plugins/http/permissions/autogenerated/commands/fetch_cancel.toml +++ /dev/null @@ -1,13 +0,0 @@ -# Automatically generated - DO NOT EDIT! - -"$schema" = "../../schemas/schema.json" - -[[permission]] -identifier = "allow-fetch-cancel" -description = "Enables the fetch_cancel command without any pre-configured scope." -commands.allow = ["fetch_cancel"] - -[[permission]] -identifier = "deny-fetch-cancel" -description = "Denies the fetch_cancel command without any pre-configured scope." -commands.deny = ["fetch_cancel"] diff --git a/plugins/http/permissions/autogenerated/commands/fetch_cancel_body.toml b/plugins/http/permissions/autogenerated/commands/fetch_cancel_body.toml deleted file mode 100644 index 19e66520..00000000 --- a/plugins/http/permissions/autogenerated/commands/fetch_cancel_body.toml +++ /dev/null @@ -1,13 +0,0 @@ -# Automatically generated - DO NOT EDIT! - -"$schema" = "../../schemas/schema.json" - -[[permission]] -identifier = "allow-fetch-cancel-body" -description = "Enables the fetch_cancel_body command without any pre-configured scope." -commands.allow = ["fetch_cancel_body"] - -[[permission]] -identifier = "deny-fetch-cancel-body" -description = "Denies the fetch_cancel_body command without any pre-configured scope." -commands.deny = ["fetch_cancel_body"] diff --git a/plugins/http/permissions/autogenerated/commands/fetch_read_body.toml b/plugins/http/permissions/autogenerated/commands/fetch_read_body.toml deleted file mode 100644 index b5867e99..00000000 --- a/plugins/http/permissions/autogenerated/commands/fetch_read_body.toml +++ /dev/null @@ -1,13 +0,0 @@ -# Automatically generated - DO NOT EDIT! - -"$schema" = "../../schemas/schema.json" - -[[permission]] -identifier = "allow-fetch-read-body" -description = "Enables the fetch_read_body command without any pre-configured scope." -commands.allow = ["fetch_read_body"] - -[[permission]] -identifier = "deny-fetch-read-body" -description = "Denies the fetch_read_body command without any pre-configured scope." -commands.deny = ["fetch_read_body"] diff --git a/plugins/http/permissions/autogenerated/commands/fetch_send.toml b/plugins/http/permissions/autogenerated/commands/fetch_send.toml deleted file mode 100644 index f6a55d28..00000000 --- a/plugins/http/permissions/autogenerated/commands/fetch_send.toml +++ /dev/null @@ -1,13 +0,0 @@ -# Automatically generated - DO NOT EDIT! - -"$schema" = "../../schemas/schema.json" - -[[permission]] -identifier = "allow-fetch-send" -description = "Enables the fetch_send command without any pre-configured scope." -commands.allow = ["fetch_send"] - -[[permission]] -identifier = "deny-fetch-send" -description = "Denies the fetch_send command without any pre-configured scope." -commands.deny = ["fetch_send"] diff --git a/plugins/http/permissions/schemas/schema.json b/plugins/http/permissions/schemas/schema.json index 7cc6cab1..df3dad39 100644 --- a/plugins/http/permissions/schemas/schema.json +++ b/plugins/http/permissions/schemas/schema.json @@ -29,6 +29,13 @@ "$ref": "#/definitions/Permission" }, "default": [] + }, + "commands": { + "description": "A list of command names that get `allow-$command` and `deny-$command` permissions\nautogenerated on demand instead of being stored as explicit permissions.\n\nSee [`Manifest::command_permission`] and the ACL resolver for how these are expanded.", + "type": "array", + "items": { + "type": "string" + } } }, "definitions": { diff --git a/plugins/log/permissions/autogenerated/commands/commands.toml b/plugins/log/permissions/autogenerated/commands/commands.toml new file mode 100644 index 00000000..006a89e3 --- /dev/null +++ b/plugins/log/permissions/autogenerated/commands/commands.toml @@ -0,0 +1,5 @@ +# Automatically generated - DO NOT EDIT! + +"$schema" = "../../schemas/schema.json" + +commands = ["log"] diff --git a/plugins/log/permissions/autogenerated/commands/log.toml b/plugins/log/permissions/autogenerated/commands/log.toml deleted file mode 100644 index ba36eff5..00000000 --- a/plugins/log/permissions/autogenerated/commands/log.toml +++ /dev/null @@ -1,13 +0,0 @@ -# Automatically generated - DO NOT EDIT! - -"$schema" = "../../schemas/schema.json" - -[[permission]] -identifier = "allow-log" -description = "Enables the log command without any pre-configured scope." -commands.allow = ["log"] - -[[permission]] -identifier = "deny-log" -description = "Denies the log command without any pre-configured scope." -commands.deny = ["log"] diff --git a/plugins/log/permissions/schemas/schema.json b/plugins/log/permissions/schemas/schema.json index 7cc6cab1..df3dad39 100644 --- a/plugins/log/permissions/schemas/schema.json +++ b/plugins/log/permissions/schemas/schema.json @@ -29,6 +29,13 @@ "$ref": "#/definitions/Permission" }, "default": [] + }, + "commands": { + "description": "A list of command names that get `allow-$command` and `deny-$command` permissions\nautogenerated on demand instead of being stored as explicit permissions.\n\nSee [`Manifest::command_permission`] and the ACL resolver for how these are expanded.", + "type": "array", + "items": { + "type": "string" + } } }, "definitions": { diff --git a/plugins/nfc/permissions/autogenerated/commands/commands.toml b/plugins/nfc/permissions/autogenerated/commands/commands.toml new file mode 100644 index 00000000..92b44750 --- /dev/null +++ b/plugins/nfc/permissions/autogenerated/commands/commands.toml @@ -0,0 +1,5 @@ +# Automatically generated - DO NOT EDIT! + +"$schema" = "../../schemas/schema.json" + +commands = ["is_available","write","scan"] diff --git a/plugins/nfc/permissions/autogenerated/commands/is_available.toml b/plugins/nfc/permissions/autogenerated/commands/is_available.toml deleted file mode 100644 index 6f49c5ab..00000000 --- a/plugins/nfc/permissions/autogenerated/commands/is_available.toml +++ /dev/null @@ -1,13 +0,0 @@ -# Automatically generated - DO NOT EDIT! - -"$schema" = "../../schemas/schema.json" - -[[permission]] -identifier = "allow-is-available" -description = "Enables the is_available command without any pre-configured scope." -commands.allow = ["is_available"] - -[[permission]] -identifier = "deny-is-available" -description = "Denies the is_available command without any pre-configured scope." -commands.deny = ["is_available"] diff --git a/plugins/nfc/permissions/autogenerated/commands/scan.toml b/plugins/nfc/permissions/autogenerated/commands/scan.toml deleted file mode 100644 index efa621dd..00000000 --- a/plugins/nfc/permissions/autogenerated/commands/scan.toml +++ /dev/null @@ -1,13 +0,0 @@ -# Automatically generated - DO NOT EDIT! - -"$schema" = "../../schemas/schema.json" - -[[permission]] -identifier = "allow-scan" -description = "Enables the scan command without any pre-configured scope." -commands.allow = ["scan"] - -[[permission]] -identifier = "deny-scan" -description = "Denies the scan command without any pre-configured scope." -commands.deny = ["scan"] diff --git a/plugins/nfc/permissions/autogenerated/commands/write.toml b/plugins/nfc/permissions/autogenerated/commands/write.toml deleted file mode 100644 index 73d1d387..00000000 --- a/plugins/nfc/permissions/autogenerated/commands/write.toml +++ /dev/null @@ -1,13 +0,0 @@ -# Automatically generated - DO NOT EDIT! - -"$schema" = "../../schemas/schema.json" - -[[permission]] -identifier = "allow-write" -description = "Enables the write command without any pre-configured scope." -commands.allow = ["write"] - -[[permission]] -identifier = "deny-write" -description = "Denies the write command without any pre-configured scope." -commands.deny = ["write"] diff --git a/plugins/nfc/permissions/schemas/schema.json b/plugins/nfc/permissions/schemas/schema.json index 7cc6cab1..df3dad39 100644 --- a/plugins/nfc/permissions/schemas/schema.json +++ b/plugins/nfc/permissions/schemas/schema.json @@ -29,6 +29,13 @@ "$ref": "#/definitions/Permission" }, "default": [] + }, + "commands": { + "description": "A list of command names that get `allow-$command` and `deny-$command` permissions\nautogenerated on demand instead of being stored as explicit permissions.\n\nSee [`Manifest::command_permission`] and the ACL resolver for how these are expanded.", + "type": "array", + "items": { + "type": "string" + } } }, "definitions": { diff --git a/plugins/notification/permissions/autogenerated/commands/batch.toml b/plugins/notification/permissions/autogenerated/commands/batch.toml deleted file mode 100644 index c52cc16d..00000000 --- a/plugins/notification/permissions/autogenerated/commands/batch.toml +++ /dev/null @@ -1,13 +0,0 @@ -# Automatically generated - DO NOT EDIT! - -"$schema" = "../../schemas/schema.json" - -[[permission]] -identifier = "allow-batch" -description = "Enables the batch command without any pre-configured scope." -commands.allow = ["batch"] - -[[permission]] -identifier = "deny-batch" -description = "Denies the batch command without any pre-configured scope." -commands.deny = ["batch"] diff --git a/plugins/notification/permissions/autogenerated/commands/cancel.toml b/plugins/notification/permissions/autogenerated/commands/cancel.toml deleted file mode 100644 index 91efeaa0..00000000 --- a/plugins/notification/permissions/autogenerated/commands/cancel.toml +++ /dev/null @@ -1,13 +0,0 @@ -# Automatically generated - DO NOT EDIT! - -"$schema" = "../../schemas/schema.json" - -[[permission]] -identifier = "allow-cancel" -description = "Enables the cancel command without any pre-configured scope." -commands.allow = ["cancel"] - -[[permission]] -identifier = "deny-cancel" -description = "Denies the cancel command without any pre-configured scope." -commands.deny = ["cancel"] diff --git a/plugins/notification/permissions/autogenerated/commands/check_permissions.toml b/plugins/notification/permissions/autogenerated/commands/check_permissions.toml deleted file mode 100644 index f5af08b1..00000000 --- a/plugins/notification/permissions/autogenerated/commands/check_permissions.toml +++ /dev/null @@ -1,13 +0,0 @@ -# Automatically generated - DO NOT EDIT! - -"$schema" = "../../schemas/schema.json" - -[[permission]] -identifier = "allow-check-permissions" -description = "Enables the check_permissions command without any pre-configured scope." -commands.allow = ["check_permissions"] - -[[permission]] -identifier = "deny-check-permissions" -description = "Denies the check_permissions command without any pre-configured scope." -commands.deny = ["check_permissions"] diff --git a/plugins/notification/permissions/autogenerated/commands/commands.toml b/plugins/notification/permissions/autogenerated/commands/commands.toml new file mode 100644 index 00000000..1ef79787 --- /dev/null +++ b/plugins/notification/permissions/autogenerated/commands/commands.toml @@ -0,0 +1,5 @@ +# Automatically generated - DO NOT EDIT! + +"$schema" = "../../schemas/schema.json" + +commands = ["notify","request_permission","is_permission_granted","register_action_types","register_listener","cancel","get_pending","remove_active","get_active","check_permissions","show","batch","list_channels","delete_channel","create_channel","permission_state"] diff --git a/plugins/notification/permissions/autogenerated/commands/create_channel.toml b/plugins/notification/permissions/autogenerated/commands/create_channel.toml deleted file mode 100644 index 2c931474..00000000 --- a/plugins/notification/permissions/autogenerated/commands/create_channel.toml +++ /dev/null @@ -1,13 +0,0 @@ -# Automatically generated - DO NOT EDIT! - -"$schema" = "../../schemas/schema.json" - -[[permission]] -identifier = "allow-create-channel" -description = "Enables the create_channel command without any pre-configured scope." -commands.allow = ["create_channel"] - -[[permission]] -identifier = "deny-create-channel" -description = "Denies the create_channel command without any pre-configured scope." -commands.deny = ["create_channel"] diff --git a/plugins/notification/permissions/autogenerated/commands/delete_channel.toml b/plugins/notification/permissions/autogenerated/commands/delete_channel.toml deleted file mode 100644 index 0adaf2bb..00000000 --- a/plugins/notification/permissions/autogenerated/commands/delete_channel.toml +++ /dev/null @@ -1,13 +0,0 @@ -# Automatically generated - DO NOT EDIT! - -"$schema" = "../../schemas/schema.json" - -[[permission]] -identifier = "allow-delete-channel" -description = "Enables the delete_channel command without any pre-configured scope." -commands.allow = ["delete_channel"] - -[[permission]] -identifier = "deny-delete-channel" -description = "Denies the delete_channel command without any pre-configured scope." -commands.deny = ["delete_channel"] diff --git a/plugins/notification/permissions/autogenerated/commands/get_active.toml b/plugins/notification/permissions/autogenerated/commands/get_active.toml deleted file mode 100644 index b841eb85..00000000 --- a/plugins/notification/permissions/autogenerated/commands/get_active.toml +++ /dev/null @@ -1,13 +0,0 @@ -# Automatically generated - DO NOT EDIT! - -"$schema" = "../../schemas/schema.json" - -[[permission]] -identifier = "allow-get-active" -description = "Enables the get_active command without any pre-configured scope." -commands.allow = ["get_active"] - -[[permission]] -identifier = "deny-get-active" -description = "Denies the get_active command without any pre-configured scope." -commands.deny = ["get_active"] diff --git a/plugins/notification/permissions/autogenerated/commands/get_pending.toml b/plugins/notification/permissions/autogenerated/commands/get_pending.toml deleted file mode 100644 index f3bae7a8..00000000 --- a/plugins/notification/permissions/autogenerated/commands/get_pending.toml +++ /dev/null @@ -1,13 +0,0 @@ -# Automatically generated - DO NOT EDIT! - -"$schema" = "../../schemas/schema.json" - -[[permission]] -identifier = "allow-get-pending" -description = "Enables the get_pending command without any pre-configured scope." -commands.allow = ["get_pending"] - -[[permission]] -identifier = "deny-get-pending" -description = "Denies the get_pending command without any pre-configured scope." -commands.deny = ["get_pending"] diff --git a/plugins/notification/permissions/autogenerated/commands/is_permission_granted.toml b/plugins/notification/permissions/autogenerated/commands/is_permission_granted.toml deleted file mode 100644 index 5faa73f3..00000000 --- a/plugins/notification/permissions/autogenerated/commands/is_permission_granted.toml +++ /dev/null @@ -1,13 +0,0 @@ -# Automatically generated - DO NOT EDIT! - -"$schema" = "../../schemas/schema.json" - -[[permission]] -identifier = "allow-is-permission-granted" -description = "Enables the is_permission_granted command without any pre-configured scope." -commands.allow = ["is_permission_granted"] - -[[permission]] -identifier = "deny-is-permission-granted" -description = "Denies the is_permission_granted command without any pre-configured scope." -commands.deny = ["is_permission_granted"] diff --git a/plugins/notification/permissions/autogenerated/commands/list_channels.toml b/plugins/notification/permissions/autogenerated/commands/list_channels.toml deleted file mode 100644 index cb20cd57..00000000 --- a/plugins/notification/permissions/autogenerated/commands/list_channels.toml +++ /dev/null @@ -1,13 +0,0 @@ -# Automatically generated - DO NOT EDIT! - -"$schema" = "../../schemas/schema.json" - -[[permission]] -identifier = "allow-list-channels" -description = "Enables the list_channels command without any pre-configured scope." -commands.allow = ["list_channels"] - -[[permission]] -identifier = "deny-list-channels" -description = "Denies the list_channels command without any pre-configured scope." -commands.deny = ["list_channels"] diff --git a/plugins/notification/permissions/autogenerated/commands/notify.toml b/plugins/notification/permissions/autogenerated/commands/notify.toml deleted file mode 100644 index 7d6d46c2..00000000 --- a/plugins/notification/permissions/autogenerated/commands/notify.toml +++ /dev/null @@ -1,13 +0,0 @@ -# Automatically generated - DO NOT EDIT! - -"$schema" = "../../schemas/schema.json" - -[[permission]] -identifier = "allow-notify" -description = "Enables the notify command without any pre-configured scope." -commands.allow = ["notify"] - -[[permission]] -identifier = "deny-notify" -description = "Denies the notify command without any pre-configured scope." -commands.deny = ["notify"] diff --git a/plugins/notification/permissions/autogenerated/commands/permission_state.toml b/plugins/notification/permissions/autogenerated/commands/permission_state.toml deleted file mode 100644 index dddcd86f..00000000 --- a/plugins/notification/permissions/autogenerated/commands/permission_state.toml +++ /dev/null @@ -1,13 +0,0 @@ -# Automatically generated - DO NOT EDIT! - -"$schema" = "../../schemas/schema.json" - -[[permission]] -identifier = "allow-permission-state" -description = "Enables the permission_state command without any pre-configured scope." -commands.allow = ["permission_state"] - -[[permission]] -identifier = "deny-permission-state" -description = "Denies the permission_state command without any pre-configured scope." -commands.deny = ["permission_state"] diff --git a/plugins/notification/permissions/autogenerated/commands/register_action_types.toml b/plugins/notification/permissions/autogenerated/commands/register_action_types.toml deleted file mode 100644 index cb5aa89f..00000000 --- a/plugins/notification/permissions/autogenerated/commands/register_action_types.toml +++ /dev/null @@ -1,13 +0,0 @@ -# Automatically generated - DO NOT EDIT! - -"$schema" = "../../schemas/schema.json" - -[[permission]] -identifier = "allow-register-action-types" -description = "Enables the register_action_types command without any pre-configured scope." -commands.allow = ["register_action_types"] - -[[permission]] -identifier = "deny-register-action-types" -description = "Denies the register_action_types command without any pre-configured scope." -commands.deny = ["register_action_types"] diff --git a/plugins/notification/permissions/autogenerated/commands/register_listener.toml b/plugins/notification/permissions/autogenerated/commands/register_listener.toml deleted file mode 100644 index 48363c0d..00000000 --- a/plugins/notification/permissions/autogenerated/commands/register_listener.toml +++ /dev/null @@ -1,13 +0,0 @@ -# Automatically generated - DO NOT EDIT! - -"$schema" = "../../schemas/schema.json" - -[[permission]] -identifier = "allow-register-listener" -description = "Enables the register_listener command without any pre-configured scope." -commands.allow = ["register_listener"] - -[[permission]] -identifier = "deny-register-listener" -description = "Denies the register_listener command without any pre-configured scope." -commands.deny = ["register_listener"] diff --git a/plugins/notification/permissions/autogenerated/commands/remove_active.toml b/plugins/notification/permissions/autogenerated/commands/remove_active.toml deleted file mode 100644 index 9ad2add1..00000000 --- a/plugins/notification/permissions/autogenerated/commands/remove_active.toml +++ /dev/null @@ -1,13 +0,0 @@ -# Automatically generated - DO NOT EDIT! - -"$schema" = "../../schemas/schema.json" - -[[permission]] -identifier = "allow-remove-active" -description = "Enables the remove_active command without any pre-configured scope." -commands.allow = ["remove_active"] - -[[permission]] -identifier = "deny-remove-active" -description = "Denies the remove_active command without any pre-configured scope." -commands.deny = ["remove_active"] diff --git a/plugins/notification/permissions/autogenerated/commands/request_permission.toml b/plugins/notification/permissions/autogenerated/commands/request_permission.toml deleted file mode 100644 index 0b410d6a..00000000 --- a/plugins/notification/permissions/autogenerated/commands/request_permission.toml +++ /dev/null @@ -1,13 +0,0 @@ -# Automatically generated - DO NOT EDIT! - -"$schema" = "../../schemas/schema.json" - -[[permission]] -identifier = "allow-request-permission" -description = "Enables the request_permission command without any pre-configured scope." -commands.allow = ["request_permission"] - -[[permission]] -identifier = "deny-request-permission" -description = "Denies the request_permission command without any pre-configured scope." -commands.deny = ["request_permission"] diff --git a/plugins/notification/permissions/autogenerated/commands/show.toml b/plugins/notification/permissions/autogenerated/commands/show.toml deleted file mode 100644 index 3d4cbf38..00000000 --- a/plugins/notification/permissions/autogenerated/commands/show.toml +++ /dev/null @@ -1,13 +0,0 @@ -# Automatically generated - DO NOT EDIT! - -"$schema" = "../../schemas/schema.json" - -[[permission]] -identifier = "allow-show" -description = "Enables the show command without any pre-configured scope." -commands.allow = ["show"] - -[[permission]] -identifier = "deny-show" -description = "Denies the show command without any pre-configured scope." -commands.deny = ["show"] diff --git a/plugins/notification/permissions/schemas/schema.json b/plugins/notification/permissions/schemas/schema.json index 7cc6cab1..df3dad39 100644 --- a/plugins/notification/permissions/schemas/schema.json +++ b/plugins/notification/permissions/schemas/schema.json @@ -29,6 +29,13 @@ "$ref": "#/definitions/Permission" }, "default": [] + }, + "commands": { + "description": "A list of command names that get `allow-$command` and `deny-$command` permissions\nautogenerated on demand instead of being stored as explicit permissions.\n\nSee [`Manifest::command_permission`] and the ACL resolver for how these are expanded.", + "type": "array", + "items": { + "type": "string" + } } }, "definitions": { diff --git a/plugins/opener/permissions/autogenerated/commands/commands.toml b/plugins/opener/permissions/autogenerated/commands/commands.toml new file mode 100644 index 00000000..2fa4e66b --- /dev/null +++ b/plugins/opener/permissions/autogenerated/commands/commands.toml @@ -0,0 +1,5 @@ +# Automatically generated - DO NOT EDIT! + +"$schema" = "../../schemas/schema.json" + +commands = ["open_url","open_path","reveal_item_in_dir"] diff --git a/plugins/opener/permissions/autogenerated/commands/open_path.toml b/plugins/opener/permissions/autogenerated/commands/open_path.toml deleted file mode 100644 index ae67b939..00000000 --- a/plugins/opener/permissions/autogenerated/commands/open_path.toml +++ /dev/null @@ -1,13 +0,0 @@ -# Automatically generated - DO NOT EDIT! - -"$schema" = "../../schemas/schema.json" - -[[permission]] -identifier = "allow-open-path" -description = "Enables the open_path command without any pre-configured scope." -commands.allow = ["open_path"] - -[[permission]] -identifier = "deny-open-path" -description = "Denies the open_path command without any pre-configured scope." -commands.deny = ["open_path"] diff --git a/plugins/opener/permissions/autogenerated/commands/open_url.toml b/plugins/opener/permissions/autogenerated/commands/open_url.toml deleted file mode 100644 index f1e694b1..00000000 --- a/plugins/opener/permissions/autogenerated/commands/open_url.toml +++ /dev/null @@ -1,13 +0,0 @@ -# Automatically generated - DO NOT EDIT! - -"$schema" = "../../schemas/schema.json" - -[[permission]] -identifier = "allow-open-url" -description = "Enables the open_url command without any pre-configured scope." -commands.allow = ["open_url"] - -[[permission]] -identifier = "deny-open-url" -description = "Denies the open_url command without any pre-configured scope." -commands.deny = ["open_url"] diff --git a/plugins/opener/permissions/autogenerated/commands/reveal_item_in_dir.toml b/plugins/opener/permissions/autogenerated/commands/reveal_item_in_dir.toml deleted file mode 100644 index e669620f..00000000 --- a/plugins/opener/permissions/autogenerated/commands/reveal_item_in_dir.toml +++ /dev/null @@ -1,13 +0,0 @@ -# Automatically generated - DO NOT EDIT! - -"$schema" = "../../schemas/schema.json" - -[[permission]] -identifier = "allow-reveal-item-in-dir" -description = "Enables the reveal_item_in_dir command without any pre-configured scope." -commands.allow = ["reveal_item_in_dir"] - -[[permission]] -identifier = "deny-reveal-item-in-dir" -description = "Denies the reveal_item_in_dir command without any pre-configured scope." -commands.deny = ["reveal_item_in_dir"] diff --git a/plugins/opener/permissions/schemas/schema.json b/plugins/opener/permissions/schemas/schema.json index 7cc6cab1..df3dad39 100644 --- a/plugins/opener/permissions/schemas/schema.json +++ b/plugins/opener/permissions/schemas/schema.json @@ -29,6 +29,13 @@ "$ref": "#/definitions/Permission" }, "default": [] + }, + "commands": { + "description": "A list of command names that get `allow-$command` and `deny-$command` permissions\nautogenerated on demand instead of being stored as explicit permissions.\n\nSee [`Manifest::command_permission`] and the ACL resolver for how these are expanded.", + "type": "array", + "items": { + "type": "string" + } } }, "definitions": { diff --git a/plugins/os/permissions/autogenerated/commands/arch.toml b/plugins/os/permissions/autogenerated/commands/arch.toml deleted file mode 100644 index 160cce0d..00000000 --- a/plugins/os/permissions/autogenerated/commands/arch.toml +++ /dev/null @@ -1,13 +0,0 @@ -# Automatically generated - DO NOT EDIT! - -"$schema" = "../../schemas/schema.json" - -[[permission]] -identifier = "allow-arch" -description = "Enables the arch command without any pre-configured scope." -commands.allow = ["arch"] - -[[permission]] -identifier = "deny-arch" -description = "Denies the arch command without any pre-configured scope." -commands.deny = ["arch"] diff --git a/plugins/os/permissions/autogenerated/commands/commands.toml b/plugins/os/permissions/autogenerated/commands/commands.toml new file mode 100644 index 00000000..dd6656f4 --- /dev/null +++ b/plugins/os/permissions/autogenerated/commands/commands.toml @@ -0,0 +1,5 @@ +# Automatically generated - DO NOT EDIT! + +"$schema" = "../../schemas/schema.json" + +commands = ["platform","version","os_type","family","arch","exe_extension","locale","hostname"] diff --git a/plugins/os/permissions/autogenerated/commands/exe_extension.toml b/plugins/os/permissions/autogenerated/commands/exe_extension.toml deleted file mode 100644 index aef4d2e6..00000000 --- a/plugins/os/permissions/autogenerated/commands/exe_extension.toml +++ /dev/null @@ -1,13 +0,0 @@ -# Automatically generated - DO NOT EDIT! - -"$schema" = "../../schemas/schema.json" - -[[permission]] -identifier = "allow-exe-extension" -description = "Enables the exe_extension command without any pre-configured scope." -commands.allow = ["exe_extension"] - -[[permission]] -identifier = "deny-exe-extension" -description = "Denies the exe_extension command without any pre-configured scope." -commands.deny = ["exe_extension"] diff --git a/plugins/os/permissions/autogenerated/commands/family.toml b/plugins/os/permissions/autogenerated/commands/family.toml deleted file mode 100644 index 4109be39..00000000 --- a/plugins/os/permissions/autogenerated/commands/family.toml +++ /dev/null @@ -1,13 +0,0 @@ -# Automatically generated - DO NOT EDIT! - -"$schema" = "../../schemas/schema.json" - -[[permission]] -identifier = "allow-family" -description = "Enables the family command without any pre-configured scope." -commands.allow = ["family"] - -[[permission]] -identifier = "deny-family" -description = "Denies the family command without any pre-configured scope." -commands.deny = ["family"] diff --git a/plugins/os/permissions/autogenerated/commands/hostname.toml b/plugins/os/permissions/autogenerated/commands/hostname.toml deleted file mode 100644 index c65376cb..00000000 --- a/plugins/os/permissions/autogenerated/commands/hostname.toml +++ /dev/null @@ -1,13 +0,0 @@ -# Automatically generated - DO NOT EDIT! - -"$schema" = "../../schemas/schema.json" - -[[permission]] -identifier = "allow-hostname" -description = "Enables the hostname command without any pre-configured scope." -commands.allow = ["hostname"] - -[[permission]] -identifier = "deny-hostname" -description = "Denies the hostname command without any pre-configured scope." -commands.deny = ["hostname"] diff --git a/plugins/os/permissions/autogenerated/commands/locale.toml b/plugins/os/permissions/autogenerated/commands/locale.toml deleted file mode 100644 index 2a85e471..00000000 --- a/plugins/os/permissions/autogenerated/commands/locale.toml +++ /dev/null @@ -1,13 +0,0 @@ -# Automatically generated - DO NOT EDIT! - -"$schema" = "../../schemas/schema.json" - -[[permission]] -identifier = "allow-locale" -description = "Enables the locale command without any pre-configured scope." -commands.allow = ["locale"] - -[[permission]] -identifier = "deny-locale" -description = "Denies the locale command without any pre-configured scope." -commands.deny = ["locale"] diff --git a/plugins/os/permissions/autogenerated/commands/os_type.toml b/plugins/os/permissions/autogenerated/commands/os_type.toml deleted file mode 100644 index c91987a3..00000000 --- a/plugins/os/permissions/autogenerated/commands/os_type.toml +++ /dev/null @@ -1,13 +0,0 @@ -# Automatically generated - DO NOT EDIT! - -"$schema" = "../../schemas/schema.json" - -[[permission]] -identifier = "allow-os-type" -description = "Enables the os_type command without any pre-configured scope." -commands.allow = ["os_type"] - -[[permission]] -identifier = "deny-os-type" -description = "Denies the os_type command without any pre-configured scope." -commands.deny = ["os_type"] diff --git a/plugins/os/permissions/autogenerated/commands/platform.toml b/plugins/os/permissions/autogenerated/commands/platform.toml deleted file mode 100644 index 49dc08d6..00000000 --- a/plugins/os/permissions/autogenerated/commands/platform.toml +++ /dev/null @@ -1,13 +0,0 @@ -# Automatically generated - DO NOT EDIT! - -"$schema" = "../../schemas/schema.json" - -[[permission]] -identifier = "allow-platform" -description = "Enables the platform command without any pre-configured scope." -commands.allow = ["platform"] - -[[permission]] -identifier = "deny-platform" -description = "Denies the platform command without any pre-configured scope." -commands.deny = ["platform"] diff --git a/plugins/os/permissions/autogenerated/commands/version.toml b/plugins/os/permissions/autogenerated/commands/version.toml deleted file mode 100644 index 2d65e325..00000000 --- a/plugins/os/permissions/autogenerated/commands/version.toml +++ /dev/null @@ -1,13 +0,0 @@ -# Automatically generated - DO NOT EDIT! - -"$schema" = "../../schemas/schema.json" - -[[permission]] -identifier = "allow-version" -description = "Enables the version command without any pre-configured scope." -commands.allow = ["version"] - -[[permission]] -identifier = "deny-version" -description = "Denies the version command without any pre-configured scope." -commands.deny = ["version"] diff --git a/plugins/os/permissions/schemas/schema.json b/plugins/os/permissions/schemas/schema.json index 7cc6cab1..df3dad39 100644 --- a/plugins/os/permissions/schemas/schema.json +++ b/plugins/os/permissions/schemas/schema.json @@ -29,6 +29,13 @@ "$ref": "#/definitions/Permission" }, "default": [] + }, + "commands": { + "description": "A list of command names that get `allow-$command` and `deny-$command` permissions\nautogenerated on demand instead of being stored as explicit permissions.\n\nSee [`Manifest::command_permission`] and the ACL resolver for how these are expanded.", + "type": "array", + "items": { + "type": "string" + } } }, "definitions": { diff --git a/plugins/positioner/permissions/autogenerated/commands/commands.toml b/plugins/positioner/permissions/autogenerated/commands/commands.toml new file mode 100644 index 00000000..69df2812 --- /dev/null +++ b/plugins/positioner/permissions/autogenerated/commands/commands.toml @@ -0,0 +1,5 @@ +# Automatically generated - DO NOT EDIT! + +"$schema" = "../../schemas/schema.json" + +commands = ["move_window","move_window_constrained","set_tray_icon_state"] diff --git a/plugins/positioner/permissions/autogenerated/commands/move_window.toml b/plugins/positioner/permissions/autogenerated/commands/move_window.toml deleted file mode 100644 index f78f9c78..00000000 --- a/plugins/positioner/permissions/autogenerated/commands/move_window.toml +++ /dev/null @@ -1,13 +0,0 @@ -# Automatically generated - DO NOT EDIT! - -"$schema" = "../../schemas/schema.json" - -[[permission]] -identifier = "allow-move-window" -description = "Enables the move_window command without any pre-configured scope." -commands.allow = ["move_window"] - -[[permission]] -identifier = "deny-move-window" -description = "Denies the move_window command without any pre-configured scope." -commands.deny = ["move_window"] diff --git a/plugins/positioner/permissions/autogenerated/commands/move_window_constrained.toml b/plugins/positioner/permissions/autogenerated/commands/move_window_constrained.toml deleted file mode 100644 index 80343990..00000000 --- a/plugins/positioner/permissions/autogenerated/commands/move_window_constrained.toml +++ /dev/null @@ -1,13 +0,0 @@ -# Automatically generated - DO NOT EDIT! - -"$schema" = "../../schemas/schema.json" - -[[permission]] -identifier = "allow-move-window-constrained" -description = "Enables the move_window_constrained command without any pre-configured scope." -commands.allow = ["move_window_constrained"] - -[[permission]] -identifier = "deny-move-window-constrained" -description = "Denies the move_window_constrained command without any pre-configured scope." -commands.deny = ["move_window_constrained"] diff --git a/plugins/positioner/permissions/autogenerated/commands/set_tray_icon_state.toml b/plugins/positioner/permissions/autogenerated/commands/set_tray_icon_state.toml deleted file mode 100644 index 6b85f635..00000000 --- a/plugins/positioner/permissions/autogenerated/commands/set_tray_icon_state.toml +++ /dev/null @@ -1,13 +0,0 @@ -# Automatically generated - DO NOT EDIT! - -"$schema" = "../../schemas/schema.json" - -[[permission]] -identifier = "allow-set-tray-icon-state" -description = "Enables the set_tray_icon_state command without any pre-configured scope." -commands.allow = ["set_tray_icon_state"] - -[[permission]] -identifier = "deny-set-tray-icon-state" -description = "Denies the set_tray_icon_state command without any pre-configured scope." -commands.deny = ["set_tray_icon_state"] diff --git a/plugins/positioner/permissions/schemas/schema.json b/plugins/positioner/permissions/schemas/schema.json index 7cc6cab1..df3dad39 100644 --- a/plugins/positioner/permissions/schemas/schema.json +++ b/plugins/positioner/permissions/schemas/schema.json @@ -29,6 +29,13 @@ "$ref": "#/definitions/Permission" }, "default": [] + }, + "commands": { + "description": "A list of command names that get `allow-$command` and `deny-$command` permissions\nautogenerated on demand instead of being stored as explicit permissions.\n\nSee [`Manifest::command_permission`] and the ACL resolver for how these are expanded.", + "type": "array", + "items": { + "type": "string" + } } }, "definitions": { diff --git a/plugins/process/permissions/autogenerated/commands/commands.toml b/plugins/process/permissions/autogenerated/commands/commands.toml new file mode 100644 index 00000000..1e9ffcc6 --- /dev/null +++ b/plugins/process/permissions/autogenerated/commands/commands.toml @@ -0,0 +1,5 @@ +# Automatically generated - DO NOT EDIT! + +"$schema" = "../../schemas/schema.json" + +commands = ["exit","restart"] diff --git a/plugins/process/permissions/autogenerated/commands/exit.toml b/plugins/process/permissions/autogenerated/commands/exit.toml deleted file mode 100644 index 8abaf296..00000000 --- a/plugins/process/permissions/autogenerated/commands/exit.toml +++ /dev/null @@ -1,13 +0,0 @@ -# Automatically generated - DO NOT EDIT! - -"$schema" = "../../schemas/schema.json" - -[[permission]] -identifier = "allow-exit" -description = "Enables the exit command without any pre-configured scope." -commands.allow = ["exit"] - -[[permission]] -identifier = "deny-exit" -description = "Denies the exit command without any pre-configured scope." -commands.deny = ["exit"] diff --git a/plugins/process/permissions/autogenerated/commands/restart.toml b/plugins/process/permissions/autogenerated/commands/restart.toml deleted file mode 100644 index 63b228c8..00000000 --- a/plugins/process/permissions/autogenerated/commands/restart.toml +++ /dev/null @@ -1,13 +0,0 @@ -# Automatically generated - DO NOT EDIT! - -"$schema" = "../../schemas/schema.json" - -[[permission]] -identifier = "allow-restart" -description = "Enables the restart command without any pre-configured scope." -commands.allow = ["restart"] - -[[permission]] -identifier = "deny-restart" -description = "Denies the restart command without any pre-configured scope." -commands.deny = ["restart"] diff --git a/plugins/process/permissions/schemas/schema.json b/plugins/process/permissions/schemas/schema.json index 7cc6cab1..df3dad39 100644 --- a/plugins/process/permissions/schemas/schema.json +++ b/plugins/process/permissions/schemas/schema.json @@ -29,6 +29,13 @@ "$ref": "#/definitions/Permission" }, "default": [] + }, + "commands": { + "description": "A list of command names that get `allow-$command` and `deny-$command` permissions\nautogenerated on demand instead of being stored as explicit permissions.\n\nSee [`Manifest::command_permission`] and the ACL resolver for how these are expanded.", + "type": "array", + "items": { + "type": "string" + } } }, "definitions": { diff --git a/plugins/shell/permissions/autogenerated/commands/commands.toml b/plugins/shell/permissions/autogenerated/commands/commands.toml new file mode 100644 index 00000000..6e5fbc07 --- /dev/null +++ b/plugins/shell/permissions/autogenerated/commands/commands.toml @@ -0,0 +1,5 @@ +# Automatically generated - DO NOT EDIT! + +"$schema" = "../../schemas/schema.json" + +commands = ["execute","spawn","stdin_write","kill","open"] diff --git a/plugins/shell/permissions/autogenerated/commands/execute.toml b/plugins/shell/permissions/autogenerated/commands/execute.toml deleted file mode 100644 index d98be899..00000000 --- a/plugins/shell/permissions/autogenerated/commands/execute.toml +++ /dev/null @@ -1,13 +0,0 @@ -# Automatically generated - DO NOT EDIT! - -"$schema" = "../../schemas/schema.json" - -[[permission]] -identifier = "allow-execute" -description = "Enables the execute command without any pre-configured scope." -commands.allow = ["execute"] - -[[permission]] -identifier = "deny-execute" -description = "Denies the execute command without any pre-configured scope." -commands.deny = ["execute"] diff --git a/plugins/shell/permissions/autogenerated/commands/kill.toml b/plugins/shell/permissions/autogenerated/commands/kill.toml deleted file mode 100644 index 11d2f7f0..00000000 --- a/plugins/shell/permissions/autogenerated/commands/kill.toml +++ /dev/null @@ -1,13 +0,0 @@ -# Automatically generated - DO NOT EDIT! - -"$schema" = "../../schemas/schema.json" - -[[permission]] -identifier = "allow-kill" -description = "Enables the kill command without any pre-configured scope." -commands.allow = ["kill"] - -[[permission]] -identifier = "deny-kill" -description = "Denies the kill command without any pre-configured scope." -commands.deny = ["kill"] diff --git a/plugins/shell/permissions/autogenerated/commands/open.toml b/plugins/shell/permissions/autogenerated/commands/open.toml deleted file mode 100644 index 4ea6dff1..00000000 --- a/plugins/shell/permissions/autogenerated/commands/open.toml +++ /dev/null @@ -1,13 +0,0 @@ -# Automatically generated - DO NOT EDIT! - -"$schema" = "../../schemas/schema.json" - -[[permission]] -identifier = "allow-open" -description = "Enables the open command without any pre-configured scope." -commands.allow = ["open"] - -[[permission]] -identifier = "deny-open" -description = "Denies the open command without any pre-configured scope." -commands.deny = ["open"] diff --git a/plugins/shell/permissions/autogenerated/commands/spawn.toml b/plugins/shell/permissions/autogenerated/commands/spawn.toml deleted file mode 100644 index a3802d2a..00000000 --- a/plugins/shell/permissions/autogenerated/commands/spawn.toml +++ /dev/null @@ -1,13 +0,0 @@ -# Automatically generated - DO NOT EDIT! - -"$schema" = "../../schemas/schema.json" - -[[permission]] -identifier = "allow-spawn" -description = "Enables the spawn command without any pre-configured scope." -commands.allow = ["spawn"] - -[[permission]] -identifier = "deny-spawn" -description = "Denies the spawn command without any pre-configured scope." -commands.deny = ["spawn"] diff --git a/plugins/shell/permissions/autogenerated/commands/stdin_write.toml b/plugins/shell/permissions/autogenerated/commands/stdin_write.toml deleted file mode 100644 index 46ca5a73..00000000 --- a/plugins/shell/permissions/autogenerated/commands/stdin_write.toml +++ /dev/null @@ -1,13 +0,0 @@ -# Automatically generated - DO NOT EDIT! - -"$schema" = "../../schemas/schema.json" - -[[permission]] -identifier = "allow-stdin-write" -description = "Enables the stdin_write command without any pre-configured scope." -commands.allow = ["stdin_write"] - -[[permission]] -identifier = "deny-stdin-write" -description = "Denies the stdin_write command without any pre-configured scope." -commands.deny = ["stdin_write"] diff --git a/plugins/shell/permissions/schemas/schema.json b/plugins/shell/permissions/schemas/schema.json index 7cc6cab1..df3dad39 100644 --- a/plugins/shell/permissions/schemas/schema.json +++ b/plugins/shell/permissions/schemas/schema.json @@ -29,6 +29,13 @@ "$ref": "#/definitions/Permission" }, "default": [] + }, + "commands": { + "description": "A list of command names that get `allow-$command` and `deny-$command` permissions\nautogenerated on demand instead of being stored as explicit permissions.\n\nSee [`Manifest::command_permission`] and the ACL resolver for how these are expanded.", + "type": "array", + "items": { + "type": "string" + } } }, "definitions": { diff --git a/plugins/sql/permissions/autogenerated/commands/close.toml b/plugins/sql/permissions/autogenerated/commands/close.toml deleted file mode 100644 index fad12d15..00000000 --- a/plugins/sql/permissions/autogenerated/commands/close.toml +++ /dev/null @@ -1,13 +0,0 @@ -# Automatically generated - DO NOT EDIT! - -"$schema" = "../../schemas/schema.json" - -[[permission]] -identifier = "allow-close" -description = "Enables the close command without any pre-configured scope." -commands.allow = ["close"] - -[[permission]] -identifier = "deny-close" -description = "Denies the close command without any pre-configured scope." -commands.deny = ["close"] diff --git a/plugins/sql/permissions/autogenerated/commands/commands.toml b/plugins/sql/permissions/autogenerated/commands/commands.toml new file mode 100644 index 00000000..eb3b0ca9 --- /dev/null +++ b/plugins/sql/permissions/autogenerated/commands/commands.toml @@ -0,0 +1,5 @@ +# Automatically generated - DO NOT EDIT! + +"$schema" = "../../schemas/schema.json" + +commands = ["load","execute","select","close"] diff --git a/plugins/sql/permissions/autogenerated/commands/execute.toml b/plugins/sql/permissions/autogenerated/commands/execute.toml deleted file mode 100644 index d98be899..00000000 --- a/plugins/sql/permissions/autogenerated/commands/execute.toml +++ /dev/null @@ -1,13 +0,0 @@ -# Automatically generated - DO NOT EDIT! - -"$schema" = "../../schemas/schema.json" - -[[permission]] -identifier = "allow-execute" -description = "Enables the execute command without any pre-configured scope." -commands.allow = ["execute"] - -[[permission]] -identifier = "deny-execute" -description = "Denies the execute command without any pre-configured scope." -commands.deny = ["execute"] diff --git a/plugins/sql/permissions/autogenerated/commands/load.toml b/plugins/sql/permissions/autogenerated/commands/load.toml deleted file mode 100644 index f6e47ad8..00000000 --- a/plugins/sql/permissions/autogenerated/commands/load.toml +++ /dev/null @@ -1,13 +0,0 @@ -# Automatically generated - DO NOT EDIT! - -"$schema" = "../../schemas/schema.json" - -[[permission]] -identifier = "allow-load" -description = "Enables the load command without any pre-configured scope." -commands.allow = ["load"] - -[[permission]] -identifier = "deny-load" -description = "Denies the load command without any pre-configured scope." -commands.deny = ["load"] diff --git a/plugins/sql/permissions/autogenerated/commands/select.toml b/plugins/sql/permissions/autogenerated/commands/select.toml deleted file mode 100644 index 5a13a022..00000000 --- a/plugins/sql/permissions/autogenerated/commands/select.toml +++ /dev/null @@ -1,13 +0,0 @@ -# Automatically generated - DO NOT EDIT! - -"$schema" = "../../schemas/schema.json" - -[[permission]] -identifier = "allow-select" -description = "Enables the select command without any pre-configured scope." -commands.allow = ["select"] - -[[permission]] -identifier = "deny-select" -description = "Denies the select command without any pre-configured scope." -commands.deny = ["select"] diff --git a/plugins/sql/permissions/schemas/schema.json b/plugins/sql/permissions/schemas/schema.json index 7cc6cab1..df3dad39 100644 --- a/plugins/sql/permissions/schemas/schema.json +++ b/plugins/sql/permissions/schemas/schema.json @@ -29,6 +29,13 @@ "$ref": "#/definitions/Permission" }, "default": [] + }, + "commands": { + "description": "A list of command names that get `allow-$command` and `deny-$command` permissions\nautogenerated on demand instead of being stored as explicit permissions.\n\nSee [`Manifest::command_permission`] and the ACL resolver for how these are expanded.", + "type": "array", + "items": { + "type": "string" + } } }, "definitions": { diff --git a/plugins/store/permissions/autogenerated/commands/clear.toml b/plugins/store/permissions/autogenerated/commands/clear.toml deleted file mode 100644 index 83de1819..00000000 --- a/plugins/store/permissions/autogenerated/commands/clear.toml +++ /dev/null @@ -1,13 +0,0 @@ -# Automatically generated - DO NOT EDIT! - -"$schema" = "../../schemas/schema.json" - -[[permission]] -identifier = "allow-clear" -description = "Enables the clear command without any pre-configured scope." -commands.allow = ["clear"] - -[[permission]] -identifier = "deny-clear" -description = "Denies the clear command without any pre-configured scope." -commands.deny = ["clear"] diff --git a/plugins/store/permissions/autogenerated/commands/commands.toml b/plugins/store/permissions/autogenerated/commands/commands.toml new file mode 100644 index 00000000..a5b59509 --- /dev/null +++ b/plugins/store/permissions/autogenerated/commands/commands.toml @@ -0,0 +1,5 @@ +# Automatically generated - DO NOT EDIT! + +"$schema" = "../../schemas/schema.json" + +commands = ["load","get_store","set","get","has","delete","clear","reset","keys","values","entries","length","reload","save"] diff --git a/plugins/store/permissions/autogenerated/commands/delete.toml b/plugins/store/permissions/autogenerated/commands/delete.toml deleted file mode 100644 index 3d9d5234..00000000 --- a/plugins/store/permissions/autogenerated/commands/delete.toml +++ /dev/null @@ -1,13 +0,0 @@ -# Automatically generated - DO NOT EDIT! - -"$schema" = "../../schemas/schema.json" - -[[permission]] -identifier = "allow-delete" -description = "Enables the delete command without any pre-configured scope." -commands.allow = ["delete"] - -[[permission]] -identifier = "deny-delete" -description = "Denies the delete command without any pre-configured scope." -commands.deny = ["delete"] diff --git a/plugins/store/permissions/autogenerated/commands/entries.toml b/plugins/store/permissions/autogenerated/commands/entries.toml deleted file mode 100644 index ce8b5f4b..00000000 --- a/plugins/store/permissions/autogenerated/commands/entries.toml +++ /dev/null @@ -1,13 +0,0 @@ -# Automatically generated - DO NOT EDIT! - -"$schema" = "../../schemas/schema.json" - -[[permission]] -identifier = "allow-entries" -description = "Enables the entries command without any pre-configured scope." -commands.allow = ["entries"] - -[[permission]] -identifier = "deny-entries" -description = "Denies the entries command without any pre-configured scope." -commands.deny = ["entries"] diff --git a/plugins/store/permissions/autogenerated/commands/get.toml b/plugins/store/permissions/autogenerated/commands/get.toml deleted file mode 100644 index d75b4030..00000000 --- a/plugins/store/permissions/autogenerated/commands/get.toml +++ /dev/null @@ -1,13 +0,0 @@ -# Automatically generated - DO NOT EDIT! - -"$schema" = "../../schemas/schema.json" - -[[permission]] -identifier = "allow-get" -description = "Enables the get command without any pre-configured scope." -commands.allow = ["get"] - -[[permission]] -identifier = "deny-get" -description = "Denies the get command without any pre-configured scope." -commands.deny = ["get"] diff --git a/plugins/store/permissions/autogenerated/commands/get_store.toml b/plugins/store/permissions/autogenerated/commands/get_store.toml deleted file mode 100644 index 7c19173a..00000000 --- a/plugins/store/permissions/autogenerated/commands/get_store.toml +++ /dev/null @@ -1,13 +0,0 @@ -# Automatically generated - DO NOT EDIT! - -"$schema" = "../../schemas/schema.json" - -[[permission]] -identifier = "allow-get-store" -description = "Enables the get_store command without any pre-configured scope." -commands.allow = ["get_store"] - -[[permission]] -identifier = "deny-get-store" -description = "Denies the get_store command without any pre-configured scope." -commands.deny = ["get_store"] diff --git a/plugins/store/permissions/autogenerated/commands/has.toml b/plugins/store/permissions/autogenerated/commands/has.toml deleted file mode 100644 index 41d0a938..00000000 --- a/plugins/store/permissions/autogenerated/commands/has.toml +++ /dev/null @@ -1,13 +0,0 @@ -# Automatically generated - DO NOT EDIT! - -"$schema" = "../../schemas/schema.json" - -[[permission]] -identifier = "allow-has" -description = "Enables the has command without any pre-configured scope." -commands.allow = ["has"] - -[[permission]] -identifier = "deny-has" -description = "Denies the has command without any pre-configured scope." -commands.deny = ["has"] diff --git a/plugins/store/permissions/autogenerated/commands/keys.toml b/plugins/store/permissions/autogenerated/commands/keys.toml deleted file mode 100644 index 1808d0e9..00000000 --- a/plugins/store/permissions/autogenerated/commands/keys.toml +++ /dev/null @@ -1,13 +0,0 @@ -# Automatically generated - DO NOT EDIT! - -"$schema" = "../../schemas/schema.json" - -[[permission]] -identifier = "allow-keys" -description = "Enables the keys command without any pre-configured scope." -commands.allow = ["keys"] - -[[permission]] -identifier = "deny-keys" -description = "Denies the keys command without any pre-configured scope." -commands.deny = ["keys"] diff --git a/plugins/store/permissions/autogenerated/commands/length.toml b/plugins/store/permissions/autogenerated/commands/length.toml deleted file mode 100644 index 318c5582..00000000 --- a/plugins/store/permissions/autogenerated/commands/length.toml +++ /dev/null @@ -1,13 +0,0 @@ -# Automatically generated - DO NOT EDIT! - -"$schema" = "../../schemas/schema.json" - -[[permission]] -identifier = "allow-length" -description = "Enables the length command without any pre-configured scope." -commands.allow = ["length"] - -[[permission]] -identifier = "deny-length" -description = "Denies the length command without any pre-configured scope." -commands.deny = ["length"] diff --git a/plugins/store/permissions/autogenerated/commands/load.toml b/plugins/store/permissions/autogenerated/commands/load.toml deleted file mode 100644 index f6e47ad8..00000000 --- a/plugins/store/permissions/autogenerated/commands/load.toml +++ /dev/null @@ -1,13 +0,0 @@ -# Automatically generated - DO NOT EDIT! - -"$schema" = "../../schemas/schema.json" - -[[permission]] -identifier = "allow-load" -description = "Enables the load command without any pre-configured scope." -commands.allow = ["load"] - -[[permission]] -identifier = "deny-load" -description = "Denies the load command without any pre-configured scope." -commands.deny = ["load"] diff --git a/plugins/store/permissions/autogenerated/commands/reload.toml b/plugins/store/permissions/autogenerated/commands/reload.toml deleted file mode 100644 index 92e25253..00000000 --- a/plugins/store/permissions/autogenerated/commands/reload.toml +++ /dev/null @@ -1,13 +0,0 @@ -# Automatically generated - DO NOT EDIT! - -"$schema" = "../../schemas/schema.json" - -[[permission]] -identifier = "allow-reload" -description = "Enables the reload command without any pre-configured scope." -commands.allow = ["reload"] - -[[permission]] -identifier = "deny-reload" -description = "Denies the reload command without any pre-configured scope." -commands.deny = ["reload"] diff --git a/plugins/store/permissions/autogenerated/commands/reset.toml b/plugins/store/permissions/autogenerated/commands/reset.toml deleted file mode 100644 index c32086de..00000000 --- a/plugins/store/permissions/autogenerated/commands/reset.toml +++ /dev/null @@ -1,13 +0,0 @@ -# Automatically generated - DO NOT EDIT! - -"$schema" = "../../schemas/schema.json" - -[[permission]] -identifier = "allow-reset" -description = "Enables the reset command without any pre-configured scope." -commands.allow = ["reset"] - -[[permission]] -identifier = "deny-reset" -description = "Denies the reset command without any pre-configured scope." -commands.deny = ["reset"] diff --git a/plugins/store/permissions/autogenerated/commands/save.toml b/plugins/store/permissions/autogenerated/commands/save.toml deleted file mode 100644 index d3e84220..00000000 --- a/plugins/store/permissions/autogenerated/commands/save.toml +++ /dev/null @@ -1,13 +0,0 @@ -# Automatically generated - DO NOT EDIT! - -"$schema" = "../../schemas/schema.json" - -[[permission]] -identifier = "allow-save" -description = "Enables the save command without any pre-configured scope." -commands.allow = ["save"] - -[[permission]] -identifier = "deny-save" -description = "Denies the save command without any pre-configured scope." -commands.deny = ["save"] diff --git a/plugins/store/permissions/autogenerated/commands/set.toml b/plugins/store/permissions/autogenerated/commands/set.toml deleted file mode 100644 index 1e1cc9e7..00000000 --- a/plugins/store/permissions/autogenerated/commands/set.toml +++ /dev/null @@ -1,13 +0,0 @@ -# Automatically generated - DO NOT EDIT! - -"$schema" = "../../schemas/schema.json" - -[[permission]] -identifier = "allow-set" -description = "Enables the set command without any pre-configured scope." -commands.allow = ["set"] - -[[permission]] -identifier = "deny-set" -description = "Denies the set command without any pre-configured scope." -commands.deny = ["set"] diff --git a/plugins/store/permissions/autogenerated/commands/values.toml b/plugins/store/permissions/autogenerated/commands/values.toml deleted file mode 100644 index 9343fd1a..00000000 --- a/plugins/store/permissions/autogenerated/commands/values.toml +++ /dev/null @@ -1,13 +0,0 @@ -# Automatically generated - DO NOT EDIT! - -"$schema" = "../../schemas/schema.json" - -[[permission]] -identifier = "allow-values" -description = "Enables the values command without any pre-configured scope." -commands.allow = ["values"] - -[[permission]] -identifier = "deny-values" -description = "Denies the values command without any pre-configured scope." -commands.deny = ["values"] diff --git a/plugins/store/permissions/schemas/schema.json b/plugins/store/permissions/schemas/schema.json index 7cc6cab1..df3dad39 100644 --- a/plugins/store/permissions/schemas/schema.json +++ b/plugins/store/permissions/schemas/schema.json @@ -29,6 +29,13 @@ "$ref": "#/definitions/Permission" }, "default": [] + }, + "commands": { + "description": "A list of command names that get `allow-$command` and `deny-$command` permissions\nautogenerated on demand instead of being stored as explicit permissions.\n\nSee [`Manifest::command_permission`] and the ACL resolver for how these are expanded.", + "type": "array", + "items": { + "type": "string" + } } }, "definitions": { diff --git a/plugins/stronghold/permissions/autogenerated/commands/commands.toml b/plugins/stronghold/permissions/autogenerated/commands/commands.toml new file mode 100644 index 00000000..4bdaa744 --- /dev/null +++ b/plugins/stronghold/permissions/autogenerated/commands/commands.toml @@ -0,0 +1,5 @@ +# Automatically generated - DO NOT EDIT! + +"$schema" = "../../schemas/schema.json" + +commands = ["initialize","destroy","save","create_client","load_client","get_store_record","save_store_record","remove_store_record","save_secret","remove_secret","execute_procedure"] diff --git a/plugins/stronghold/permissions/autogenerated/commands/create_client.toml b/plugins/stronghold/permissions/autogenerated/commands/create_client.toml deleted file mode 100644 index 1405d1e2..00000000 --- a/plugins/stronghold/permissions/autogenerated/commands/create_client.toml +++ /dev/null @@ -1,13 +0,0 @@ -# Automatically generated - DO NOT EDIT! - -"$schema" = "../../schemas/schema.json" - -[[permission]] -identifier = "allow-create-client" -description = "Enables the create_client command without any pre-configured scope." -commands.allow = ["create_client"] - -[[permission]] -identifier = "deny-create-client" -description = "Denies the create_client command without any pre-configured scope." -commands.deny = ["create_client"] diff --git a/plugins/stronghold/permissions/autogenerated/commands/destroy.toml b/plugins/stronghold/permissions/autogenerated/commands/destroy.toml deleted file mode 100644 index 79580619..00000000 --- a/plugins/stronghold/permissions/autogenerated/commands/destroy.toml +++ /dev/null @@ -1,13 +0,0 @@ -# Automatically generated - DO NOT EDIT! - -"$schema" = "../../schemas/schema.json" - -[[permission]] -identifier = "allow-destroy" -description = "Enables the destroy command without any pre-configured scope." -commands.allow = ["destroy"] - -[[permission]] -identifier = "deny-destroy" -description = "Denies the destroy command without any pre-configured scope." -commands.deny = ["destroy"] diff --git a/plugins/stronghold/permissions/autogenerated/commands/execute_procedure.toml b/plugins/stronghold/permissions/autogenerated/commands/execute_procedure.toml deleted file mode 100644 index f6c2d2b1..00000000 --- a/plugins/stronghold/permissions/autogenerated/commands/execute_procedure.toml +++ /dev/null @@ -1,13 +0,0 @@ -# Automatically generated - DO NOT EDIT! - -"$schema" = "../../schemas/schema.json" - -[[permission]] -identifier = "allow-execute-procedure" -description = "Enables the execute_procedure command without any pre-configured scope." -commands.allow = ["execute_procedure"] - -[[permission]] -identifier = "deny-execute-procedure" -description = "Denies the execute_procedure command without any pre-configured scope." -commands.deny = ["execute_procedure"] diff --git a/plugins/stronghold/permissions/autogenerated/commands/get_store_record.toml b/plugins/stronghold/permissions/autogenerated/commands/get_store_record.toml deleted file mode 100644 index 84a9e53c..00000000 --- a/plugins/stronghold/permissions/autogenerated/commands/get_store_record.toml +++ /dev/null @@ -1,13 +0,0 @@ -# Automatically generated - DO NOT EDIT! - -"$schema" = "../../schemas/schema.json" - -[[permission]] -identifier = "allow-get-store-record" -description = "Enables the get_store_record command without any pre-configured scope." -commands.allow = ["get_store_record"] - -[[permission]] -identifier = "deny-get-store-record" -description = "Denies the get_store_record command without any pre-configured scope." -commands.deny = ["get_store_record"] diff --git a/plugins/stronghold/permissions/autogenerated/commands/initialize.toml b/plugins/stronghold/permissions/autogenerated/commands/initialize.toml deleted file mode 100644 index 73961d13..00000000 --- a/plugins/stronghold/permissions/autogenerated/commands/initialize.toml +++ /dev/null @@ -1,13 +0,0 @@ -# Automatically generated - DO NOT EDIT! - -"$schema" = "../../schemas/schema.json" - -[[permission]] -identifier = "allow-initialize" -description = "Enables the initialize command without any pre-configured scope." -commands.allow = ["initialize"] - -[[permission]] -identifier = "deny-initialize" -description = "Denies the initialize command without any pre-configured scope." -commands.deny = ["initialize"] diff --git a/plugins/stronghold/permissions/autogenerated/commands/load_client.toml b/plugins/stronghold/permissions/autogenerated/commands/load_client.toml deleted file mode 100644 index 77949c10..00000000 --- a/plugins/stronghold/permissions/autogenerated/commands/load_client.toml +++ /dev/null @@ -1,13 +0,0 @@ -# Automatically generated - DO NOT EDIT! - -"$schema" = "../../schemas/schema.json" - -[[permission]] -identifier = "allow-load-client" -description = "Enables the load_client command without any pre-configured scope." -commands.allow = ["load_client"] - -[[permission]] -identifier = "deny-load-client" -description = "Denies the load_client command without any pre-configured scope." -commands.deny = ["load_client"] diff --git a/plugins/stronghold/permissions/autogenerated/commands/remove_secret.toml b/plugins/stronghold/permissions/autogenerated/commands/remove_secret.toml deleted file mode 100644 index 6dafb68b..00000000 --- a/plugins/stronghold/permissions/autogenerated/commands/remove_secret.toml +++ /dev/null @@ -1,13 +0,0 @@ -# Automatically generated - DO NOT EDIT! - -"$schema" = "../../schemas/schema.json" - -[[permission]] -identifier = "allow-remove-secret" -description = "Enables the remove_secret command without any pre-configured scope." -commands.allow = ["remove_secret"] - -[[permission]] -identifier = "deny-remove-secret" -description = "Denies the remove_secret command without any pre-configured scope." -commands.deny = ["remove_secret"] diff --git a/plugins/stronghold/permissions/autogenerated/commands/remove_store_record.toml b/plugins/stronghold/permissions/autogenerated/commands/remove_store_record.toml deleted file mode 100644 index 20fd1e8a..00000000 --- a/plugins/stronghold/permissions/autogenerated/commands/remove_store_record.toml +++ /dev/null @@ -1,13 +0,0 @@ -# Automatically generated - DO NOT EDIT! - -"$schema" = "../../schemas/schema.json" - -[[permission]] -identifier = "allow-remove-store-record" -description = "Enables the remove_store_record command without any pre-configured scope." -commands.allow = ["remove_store_record"] - -[[permission]] -identifier = "deny-remove-store-record" -description = "Denies the remove_store_record command without any pre-configured scope." -commands.deny = ["remove_store_record"] diff --git a/plugins/stronghold/permissions/autogenerated/commands/save.toml b/plugins/stronghold/permissions/autogenerated/commands/save.toml deleted file mode 100644 index d3e84220..00000000 --- a/plugins/stronghold/permissions/autogenerated/commands/save.toml +++ /dev/null @@ -1,13 +0,0 @@ -# Automatically generated - DO NOT EDIT! - -"$schema" = "../../schemas/schema.json" - -[[permission]] -identifier = "allow-save" -description = "Enables the save command without any pre-configured scope." -commands.allow = ["save"] - -[[permission]] -identifier = "deny-save" -description = "Denies the save command without any pre-configured scope." -commands.deny = ["save"] diff --git a/plugins/stronghold/permissions/autogenerated/commands/save_secret.toml b/plugins/stronghold/permissions/autogenerated/commands/save_secret.toml deleted file mode 100644 index d999f0b2..00000000 --- a/plugins/stronghold/permissions/autogenerated/commands/save_secret.toml +++ /dev/null @@ -1,13 +0,0 @@ -# Automatically generated - DO NOT EDIT! - -"$schema" = "../../schemas/schema.json" - -[[permission]] -identifier = "allow-save-secret" -description = "Enables the save_secret command without any pre-configured scope." -commands.allow = ["save_secret"] - -[[permission]] -identifier = "deny-save-secret" -description = "Denies the save_secret command without any pre-configured scope." -commands.deny = ["save_secret"] diff --git a/plugins/stronghold/permissions/autogenerated/commands/save_store_record.toml b/plugins/stronghold/permissions/autogenerated/commands/save_store_record.toml deleted file mode 100644 index 8292ded0..00000000 --- a/plugins/stronghold/permissions/autogenerated/commands/save_store_record.toml +++ /dev/null @@ -1,13 +0,0 @@ -# Automatically generated - DO NOT EDIT! - -"$schema" = "../../schemas/schema.json" - -[[permission]] -identifier = "allow-save-store-record" -description = "Enables the save_store_record command without any pre-configured scope." -commands.allow = ["save_store_record"] - -[[permission]] -identifier = "deny-save-store-record" -description = "Denies the save_store_record command without any pre-configured scope." -commands.deny = ["save_store_record"] diff --git a/plugins/stronghold/permissions/schemas/schema.json b/plugins/stronghold/permissions/schemas/schema.json index 7cc6cab1..df3dad39 100644 --- a/plugins/stronghold/permissions/schemas/schema.json +++ b/plugins/stronghold/permissions/schemas/schema.json @@ -29,6 +29,13 @@ "$ref": "#/definitions/Permission" }, "default": [] + }, + "commands": { + "description": "A list of command names that get `allow-$command` and `deny-$command` permissions\nautogenerated on demand instead of being stored as explicit permissions.\n\nSee [`Manifest::command_permission`] and the ACL resolver for how these are expanded.", + "type": "array", + "items": { + "type": "string" + } } }, "definitions": { diff --git a/plugins/updater/permissions/autogenerated/commands/check.toml b/plugins/updater/permissions/autogenerated/commands/check.toml deleted file mode 100644 index fca73ce9..00000000 --- a/plugins/updater/permissions/autogenerated/commands/check.toml +++ /dev/null @@ -1,13 +0,0 @@ -# Automatically generated - DO NOT EDIT! - -"$schema" = "../../schemas/schema.json" - -[[permission]] -identifier = "allow-check" -description = "Enables the check command without any pre-configured scope." -commands.allow = ["check"] - -[[permission]] -identifier = "deny-check" -description = "Denies the check command without any pre-configured scope." -commands.deny = ["check"] diff --git a/plugins/updater/permissions/autogenerated/commands/commands.toml b/plugins/updater/permissions/autogenerated/commands/commands.toml new file mode 100644 index 00000000..12fbab7b --- /dev/null +++ b/plugins/updater/permissions/autogenerated/commands/commands.toml @@ -0,0 +1,5 @@ +# Automatically generated - DO NOT EDIT! + +"$schema" = "../../schemas/schema.json" + +commands = ["check","download","install","download_and_install"] diff --git a/plugins/updater/permissions/autogenerated/commands/download.toml b/plugins/updater/permissions/autogenerated/commands/download.toml deleted file mode 100644 index 896b30ce..00000000 --- a/plugins/updater/permissions/autogenerated/commands/download.toml +++ /dev/null @@ -1,13 +0,0 @@ -# Automatically generated - DO NOT EDIT! - -"$schema" = "../../schemas/schema.json" - -[[permission]] -identifier = "allow-download" -description = "Enables the download command without any pre-configured scope." -commands.allow = ["download"] - -[[permission]] -identifier = "deny-download" -description = "Denies the download command without any pre-configured scope." -commands.deny = ["download"] diff --git a/plugins/updater/permissions/autogenerated/commands/download_and_install.toml b/plugins/updater/permissions/autogenerated/commands/download_and_install.toml deleted file mode 100644 index 40858d1b..00000000 --- a/plugins/updater/permissions/autogenerated/commands/download_and_install.toml +++ /dev/null @@ -1,13 +0,0 @@ -# Automatically generated - DO NOT EDIT! - -"$schema" = "../../schemas/schema.json" - -[[permission]] -identifier = "allow-download-and-install" -description = "Enables the download_and_install command without any pre-configured scope." -commands.allow = ["download_and_install"] - -[[permission]] -identifier = "deny-download-and-install" -description = "Denies the download_and_install command without any pre-configured scope." -commands.deny = ["download_and_install"] diff --git a/plugins/updater/permissions/autogenerated/commands/install.toml b/plugins/updater/permissions/autogenerated/commands/install.toml deleted file mode 100644 index 4c6a29d4..00000000 --- a/plugins/updater/permissions/autogenerated/commands/install.toml +++ /dev/null @@ -1,13 +0,0 @@ -# Automatically generated - DO NOT EDIT! - -"$schema" = "../../schemas/schema.json" - -[[permission]] -identifier = "allow-install" -description = "Enables the install command without any pre-configured scope." -commands.allow = ["install"] - -[[permission]] -identifier = "deny-install" -description = "Denies the install command without any pre-configured scope." -commands.deny = ["install"] diff --git a/plugins/updater/permissions/schemas/schema.json b/plugins/updater/permissions/schemas/schema.json index 7cc6cab1..df3dad39 100644 --- a/plugins/updater/permissions/schemas/schema.json +++ b/plugins/updater/permissions/schemas/schema.json @@ -29,6 +29,13 @@ "$ref": "#/definitions/Permission" }, "default": [] + }, + "commands": { + "description": "A list of command names that get `allow-$command` and `deny-$command` permissions\nautogenerated on demand instead of being stored as explicit permissions.\n\nSee [`Manifest::command_permission`] and the ACL resolver for how these are expanded.", + "type": "array", + "items": { + "type": "string" + } } }, "definitions": { diff --git a/plugins/upload/permissions/autogenerated/commands/commands.toml b/plugins/upload/permissions/autogenerated/commands/commands.toml new file mode 100644 index 00000000..15b81aea --- /dev/null +++ b/plugins/upload/permissions/autogenerated/commands/commands.toml @@ -0,0 +1,5 @@ +# Automatically generated - DO NOT EDIT! + +"$schema" = "../../schemas/schema.json" + +commands = ["download","upload"] diff --git a/plugins/upload/permissions/autogenerated/commands/download.toml b/plugins/upload/permissions/autogenerated/commands/download.toml deleted file mode 100644 index 896b30ce..00000000 --- a/plugins/upload/permissions/autogenerated/commands/download.toml +++ /dev/null @@ -1,13 +0,0 @@ -# Automatically generated - DO NOT EDIT! - -"$schema" = "../../schemas/schema.json" - -[[permission]] -identifier = "allow-download" -description = "Enables the download command without any pre-configured scope." -commands.allow = ["download"] - -[[permission]] -identifier = "deny-download" -description = "Denies the download command without any pre-configured scope." -commands.deny = ["download"] diff --git a/plugins/upload/permissions/autogenerated/commands/upload.toml b/plugins/upload/permissions/autogenerated/commands/upload.toml deleted file mode 100644 index d36081c9..00000000 --- a/plugins/upload/permissions/autogenerated/commands/upload.toml +++ /dev/null @@ -1,13 +0,0 @@ -# Automatically generated - DO NOT EDIT! - -"$schema" = "../../schemas/schema.json" - -[[permission]] -identifier = "allow-upload" -description = "Enables the upload command without any pre-configured scope." -commands.allow = ["upload"] - -[[permission]] -identifier = "deny-upload" -description = "Denies the upload command without any pre-configured scope." -commands.deny = ["upload"] diff --git a/plugins/upload/permissions/schemas/schema.json b/plugins/upload/permissions/schemas/schema.json index 7cc6cab1..df3dad39 100644 --- a/plugins/upload/permissions/schemas/schema.json +++ b/plugins/upload/permissions/schemas/schema.json @@ -29,6 +29,13 @@ "$ref": "#/definitions/Permission" }, "default": [] + }, + "commands": { + "description": "A list of command names that get `allow-$command` and `deny-$command` permissions\nautogenerated on demand instead of being stored as explicit permissions.\n\nSee [`Manifest::command_permission`] and the ACL resolver for how these are expanded.", + "type": "array", + "items": { + "type": "string" + } } }, "definitions": { diff --git a/plugins/websocket/permissions/autogenerated/commands/commands.toml b/plugins/websocket/permissions/autogenerated/commands/commands.toml new file mode 100644 index 00000000..3ce7d2c8 --- /dev/null +++ b/plugins/websocket/permissions/autogenerated/commands/commands.toml @@ -0,0 +1,5 @@ +# Automatically generated - DO NOT EDIT! + +"$schema" = "../../schemas/schema.json" + +commands = ["connect","send"] diff --git a/plugins/websocket/permissions/autogenerated/commands/connect.toml b/plugins/websocket/permissions/autogenerated/commands/connect.toml deleted file mode 100644 index 49ce9ad3..00000000 --- a/plugins/websocket/permissions/autogenerated/commands/connect.toml +++ /dev/null @@ -1,13 +0,0 @@ -# Automatically generated - DO NOT EDIT! - -"$schema" = "../../schemas/schema.json" - -[[permission]] -identifier = "allow-connect" -description = "Enables the connect command without any pre-configured scope." -commands.allow = ["connect"] - -[[permission]] -identifier = "deny-connect" -description = "Denies the connect command without any pre-configured scope." -commands.deny = ["connect"] diff --git a/plugins/websocket/permissions/autogenerated/commands/send.toml b/plugins/websocket/permissions/autogenerated/commands/send.toml deleted file mode 100644 index a7bac8f5..00000000 --- a/plugins/websocket/permissions/autogenerated/commands/send.toml +++ /dev/null @@ -1,13 +0,0 @@ -# Automatically generated - DO NOT EDIT! - -"$schema" = "../../schemas/schema.json" - -[[permission]] -identifier = "allow-send" -description = "Enables the send command without any pre-configured scope." -commands.allow = ["send"] - -[[permission]] -identifier = "deny-send" -description = "Denies the send command without any pre-configured scope." -commands.deny = ["send"] diff --git a/plugins/websocket/permissions/schemas/schema.json b/plugins/websocket/permissions/schemas/schema.json index 7cc6cab1..df3dad39 100644 --- a/plugins/websocket/permissions/schemas/schema.json +++ b/plugins/websocket/permissions/schemas/schema.json @@ -29,6 +29,13 @@ "$ref": "#/definitions/Permission" }, "default": [] + }, + "commands": { + "description": "A list of command names that get `allow-$command` and `deny-$command` permissions\nautogenerated on demand instead of being stored as explicit permissions.\n\nSee [`Manifest::command_permission`] and the ACL resolver for how these are expanded.", + "type": "array", + "items": { + "type": "string" + } } }, "definitions": { diff --git a/plugins/window-state/permissions/autogenerated/commands/commands.toml b/plugins/window-state/permissions/autogenerated/commands/commands.toml new file mode 100644 index 00000000..34cb7cd7 --- /dev/null +++ b/plugins/window-state/permissions/autogenerated/commands/commands.toml @@ -0,0 +1,5 @@ +# Automatically generated - DO NOT EDIT! + +"$schema" = "../../schemas/schema.json" + +commands = ["save_window_state","restore_state","filename"] diff --git a/plugins/window-state/permissions/autogenerated/commands/filename.toml b/plugins/window-state/permissions/autogenerated/commands/filename.toml deleted file mode 100644 index 1cfcee45..00000000 --- a/plugins/window-state/permissions/autogenerated/commands/filename.toml +++ /dev/null @@ -1,13 +0,0 @@ -# Automatically generated - DO NOT EDIT! - -"$schema" = "../../schemas/schema.json" - -[[permission]] -identifier = "allow-filename" -description = "Enables the filename command without any pre-configured scope." -commands.allow = ["filename"] - -[[permission]] -identifier = "deny-filename" -description = "Denies the filename command without any pre-configured scope." -commands.deny = ["filename"] diff --git a/plugins/window-state/permissions/autogenerated/commands/restore_state.toml b/plugins/window-state/permissions/autogenerated/commands/restore_state.toml deleted file mode 100644 index 61df5cd4..00000000 --- a/plugins/window-state/permissions/autogenerated/commands/restore_state.toml +++ /dev/null @@ -1,13 +0,0 @@ -# Automatically generated - DO NOT EDIT! - -"$schema" = "../../schemas/schema.json" - -[[permission]] -identifier = "allow-restore-state" -description = "Enables the restore_state command without any pre-configured scope." -commands.allow = ["restore_state"] - -[[permission]] -identifier = "deny-restore-state" -description = "Denies the restore_state command without any pre-configured scope." -commands.deny = ["restore_state"] diff --git a/plugins/window-state/permissions/autogenerated/commands/save_window_state.toml b/plugins/window-state/permissions/autogenerated/commands/save_window_state.toml deleted file mode 100644 index b29e1bf3..00000000 --- a/plugins/window-state/permissions/autogenerated/commands/save_window_state.toml +++ /dev/null @@ -1,13 +0,0 @@ -# Automatically generated - DO NOT EDIT! - -"$schema" = "../../schemas/schema.json" - -[[permission]] -identifier = "allow-save-window-state" -description = "Enables the save_window_state command without any pre-configured scope." -commands.allow = ["save_window_state"] - -[[permission]] -identifier = "deny-save-window-state" -description = "Denies the save_window_state command without any pre-configured scope." -commands.deny = ["save_window_state"] diff --git a/plugins/window-state/permissions/schemas/schema.json b/plugins/window-state/permissions/schemas/schema.json index 7cc6cab1..df3dad39 100644 --- a/plugins/window-state/permissions/schemas/schema.json +++ b/plugins/window-state/permissions/schemas/schema.json @@ -29,6 +29,13 @@ "$ref": "#/definitions/Permission" }, "default": [] + }, + "commands": { + "description": "A list of command names that get `allow-$command` and `deny-$command` permissions\nautogenerated on demand instead of being stored as explicit permissions.\n\nSee [`Manifest::command_permission`] and the ACL resolver for how these are expanded.", + "type": "array", + "items": { + "type": "string" + } } }, "definitions": {