Explorar el Código

chore: preserve order on schemas (#8724)

Lucas Fernandes Nogueira hace 1 año
padre
commit
7315189e76

+ 1 - 1
core/tauri-build/Cargo.toml

@@ -41,7 +41,7 @@ semver = "1"
 dirs-next = "2"
 glob = "0.3"
 toml = "0.8"
-schemars = "0.8"
+schemars = { version = "0.8", features = [ "preserve_order" ] }
 
 [target."cfg(target_os = \"macos\")".dependencies]
 swift-rs = { version = "1.0.6", features = [ "build" ] }

+ 1 - 1
core/tauri-plugin/Cargo.toml

@@ -26,7 +26,7 @@ tauri = { version = "2.0.0-alpha.20", default-features = false, path = "../tauri
 serde_json = { version = "1", optional = true }
 glob = { version = "0.3", optional = true }
 toml = { version = "0.8", optional = true }
-schemars = "0.8"
+schemars = { version = "0.8", features = [ "preserve_order" ] }
 
 [package.metadata.docs.rs]
 features = ["build", "runtime"]

+ 0 - 315
core/tauri/permissions/event/schemas/schema.json

@@ -1,315 +0,0 @@
-{
-  "$schema": "http://json-schema.org/draft-07/schema#",
-  "title": "PermissionFile",
-  "description": "Permission file that can define a default permission, a set of permissions or a list of inlined permissions.",
-  "type": "object",
-  "properties": {
-    "default": {
-      "description": "The default permission set for the plugin",
-      "anyOf": [
-        {
-          "$ref": "#/definitions/DefaultPermission"
-        },
-        {
-          "type": "null"
-        }
-      ]
-    },
-    "set": {
-      "description": "A list of permissions sets defined",
-      "default": [],
-      "type": "array",
-      "items": {
-        "$ref": "#/definitions/PermissionSet"
-      }
-    },
-    "permission": {
-      "description": "A list of inlined permissions",
-      "default": [],
-      "type": "array",
-      "items": {
-        "$ref": "#/definitions/Permission"
-      }
-    }
-  },
-  "definitions": {
-    "DefaultPermission": {
-      "description": "The default permission set of the plugin.\n\nWorks similarly to a permission with the \"default\" identifier.",
-      "type": "object",
-      "required": [
-        "permissions"
-      ],
-      "properties": {
-        "version": {
-          "description": "The version of the permission.",
-          "type": [
-            "integer",
-            "null"
-          ],
-          "format": "uint64",
-          "minimum": 1.0
-        },
-        "description": {
-          "description": "Human-readable description of what the permission does.",
-          "type": [
-            "string",
-            "null"
-          ]
-        },
-        "permissions": {
-          "description": "All permissions this set contains.",
-          "type": "array",
-          "items": {
-            "type": "string"
-          }
-        }
-      }
-    },
-    "PermissionSet": {
-      "description": "A set of direct permissions grouped together under a new name.",
-      "type": "object",
-      "required": [
-        "description",
-        "identifier",
-        "permissions"
-      ],
-      "properties": {
-        "identifier": {
-          "description": "A unique identifier for the permission.",
-          "type": "string"
-        },
-        "description": {
-          "description": "Human-readable description of what the permission does.",
-          "type": "string"
-        },
-        "permissions": {
-          "description": "All permissions this set contains.",
-          "type": "array",
-          "items": {
-            "$ref": "#/definitions/PermissionKind"
-          }
-        }
-      }
-    },
-    "Permission": {
-      "description": "Descriptions of explicit privileges of commands.\n\nIt can enable commands to be accessible in the frontend of the application.\n\nIf the scope is defined it can be used to fine grain control the access of individual or multiple commands.",
-      "type": "object",
-      "required": [
-        "identifier"
-      ],
-      "properties": {
-        "version": {
-          "description": "The version of the permission.",
-          "type": [
-            "integer",
-            "null"
-          ],
-          "format": "uint64",
-          "minimum": 1.0
-        },
-        "identifier": {
-          "description": "A unique identifier for the permission.",
-          "type": "string"
-        },
-        "description": {
-          "description": "Human-readable description of what the permission does.",
-          "type": [
-            "string",
-            "null"
-          ]
-        },
-        "commands": {
-          "description": "Allowed or denied commands when using this permission.",
-          "default": {
-            "allow": [],
-            "deny": []
-          },
-          "allOf": [
-            {
-              "$ref": "#/definitions/Commands"
-            }
-          ]
-        },
-        "scope": {
-          "description": "Allowed or denied scoped when using this permission.",
-          "default": {},
-          "allOf": [
-            {
-              "$ref": "#/definitions/Scopes"
-            }
-          ]
-        }
-      }
-    },
-    "Commands": {
-      "description": "Allowed and denied commands inside a permission.\n\nIf two commands clash inside of `allow` and `deny`, it should be denied by default.",
-      "type": "object",
-      "properties": {
-        "allow": {
-          "description": "Allowed command.",
-          "default": [],
-          "type": "array",
-          "items": {
-            "type": "string"
-          }
-        },
-        "deny": {
-          "description": "Denied command, which takes priority.",
-          "default": [],
-          "type": "array",
-          "items": {
-            "type": "string"
-          }
-        }
-      }
-    },
-    "Scopes": {
-      "description": "A restriction of the command/endpoint functionality.\n\nIt can be of any serde serializable type and is used for allowing or preventing certain actions inside a Tauri command.\n\nThe scope is passed to the command and handled/enforced by the command itself.",
-      "type": "object",
-      "properties": {
-        "allow": {
-          "description": "Data that defines what is allowed by the scope.",
-          "type": [
-            "array",
-            "null"
-          ],
-          "items": {
-            "$ref": "#/definitions/Value"
-          }
-        },
-        "deny": {
-          "description": "Data that defines what is denied by the scope.",
-          "type": [
-            "array",
-            "null"
-          ],
-          "items": {
-            "$ref": "#/definitions/Value"
-          }
-        }
-      }
-    },
-    "Value": {
-      "description": "All supported ACL values.",
-      "anyOf": [
-        {
-          "description": "Represents a null JSON value.",
-          "type": "null"
-        },
-        {
-          "description": "Represents a [`bool`].",
-          "type": "boolean"
-        },
-        {
-          "description": "Represents a valid ACL [`Number`].",
-          "allOf": [
-            {
-              "$ref": "#/definitions/Number"
-            }
-          ]
-        },
-        {
-          "description": "Represents a [`String`].",
-          "type": "string"
-        },
-        {
-          "description": "Represents a list of other [`Value`]s.",
-          "type": "array",
-          "items": {
-            "$ref": "#/definitions/Value"
-          }
-        },
-        {
-          "description": "Represents a map of [`String`] keys to [`Value`]s.",
-          "type": "object",
-          "additionalProperties": {
-            "$ref": "#/definitions/Value"
-          }
-        }
-      ]
-    },
-    "Number": {
-      "description": "A valid ACL number.",
-      "anyOf": [
-        {
-          "description": "Represents an [`i64`].",
-          "type": "integer",
-          "format": "int64"
-        },
-        {
-          "description": "Represents a [`f64`].",
-          "type": "number",
-          "format": "double"
-        }
-      ]
-    },
-    "PermissionKind": {
-      "type": "string",
-      "oneOf": [
-        {
-          "description": "allow-emit -> Enables the emit command without any pre-configured scope.",
-          "type": "string",
-          "enum": [
-            "allow-emit"
-          ]
-        },
-        {
-          "description": "deny-emit -> Denies the emit command without any pre-configured scope.",
-          "type": "string",
-          "enum": [
-            "deny-emit"
-          ]
-        },
-        {
-          "description": "allow-emit-to -> Enables the emit_to command without any pre-configured scope.",
-          "type": "string",
-          "enum": [
-            "allow-emit-to"
-          ]
-        },
-        {
-          "description": "deny-emit-to -> Denies the emit_to command without any pre-configured scope.",
-          "type": "string",
-          "enum": [
-            "deny-emit-to"
-          ]
-        },
-        {
-          "description": "allow-listen -> Enables the listen command without any pre-configured scope.",
-          "type": "string",
-          "enum": [
-            "allow-listen"
-          ]
-        },
-        {
-          "description": "deny-listen -> Denies the listen command without any pre-configured scope.",
-          "type": "string",
-          "enum": [
-            "deny-listen"
-          ]
-        },
-        {
-          "description": "allow-unlisten -> Enables the unlisten command without any pre-configured scope.",
-          "type": "string",
-          "enum": [
-            "allow-unlisten"
-          ]
-        },
-        {
-          "description": "deny-unlisten -> Denies the unlisten command without any pre-configured scope.",
-          "type": "string",
-          "enum": [
-            "deny-unlisten"
-          ]
-        },
-        {
-          "description": "default -> Default permissions for the plugin.",
-          "type": "string",
-          "enum": [
-            "default"
-          ]
-        }
-      ]
-    }
-  }
-}

+ 0 - 567
core/tauri/permissions/menu/schemas/schema.json

@@ -1,567 +0,0 @@
-{
-  "$schema": "http://json-schema.org/draft-07/schema#",
-  "title": "PermissionFile",
-  "description": "Permission file that can define a default permission, a set of permissions or a list of inlined permissions.",
-  "type": "object",
-  "properties": {
-    "default": {
-      "description": "The default permission set for the plugin",
-      "anyOf": [
-        {
-          "$ref": "#/definitions/DefaultPermission"
-        },
-        {
-          "type": "null"
-        }
-      ]
-    },
-    "set": {
-      "description": "A list of permissions sets defined",
-      "default": [],
-      "type": "array",
-      "items": {
-        "$ref": "#/definitions/PermissionSet"
-      }
-    },
-    "permission": {
-      "description": "A list of inlined permissions",
-      "default": [],
-      "type": "array",
-      "items": {
-        "$ref": "#/definitions/Permission"
-      }
-    }
-  },
-  "definitions": {
-    "DefaultPermission": {
-      "description": "The default permission set of the plugin.\n\nWorks similarly to a permission with the \"default\" identifier.",
-      "type": "object",
-      "required": [
-        "permissions"
-      ],
-      "properties": {
-        "version": {
-          "description": "The version of the permission.",
-          "type": [
-            "integer",
-            "null"
-          ],
-          "format": "uint64",
-          "minimum": 1.0
-        },
-        "description": {
-          "description": "Human-readable description of what the permission does.",
-          "type": [
-            "string",
-            "null"
-          ]
-        },
-        "permissions": {
-          "description": "All permissions this set contains.",
-          "type": "array",
-          "items": {
-            "type": "string"
-          }
-        }
-      }
-    },
-    "PermissionSet": {
-      "description": "A set of direct permissions grouped together under a new name.",
-      "type": "object",
-      "required": [
-        "description",
-        "identifier",
-        "permissions"
-      ],
-      "properties": {
-        "identifier": {
-          "description": "A unique identifier for the permission.",
-          "type": "string"
-        },
-        "description": {
-          "description": "Human-readable description of what the permission does.",
-          "type": "string"
-        },
-        "permissions": {
-          "description": "All permissions this set contains.",
-          "type": "array",
-          "items": {
-            "$ref": "#/definitions/PermissionKind"
-          }
-        }
-      }
-    },
-    "Permission": {
-      "description": "Descriptions of explicit privileges of commands.\n\nIt can enable commands to be accessible in the frontend of the application.\n\nIf the scope is defined it can be used to fine grain control the access of individual or multiple commands.",
-      "type": "object",
-      "required": [
-        "identifier"
-      ],
-      "properties": {
-        "version": {
-          "description": "The version of the permission.",
-          "type": [
-            "integer",
-            "null"
-          ],
-          "format": "uint64",
-          "minimum": 1.0
-        },
-        "identifier": {
-          "description": "A unique identifier for the permission.",
-          "type": "string"
-        },
-        "description": {
-          "description": "Human-readable description of what the permission does.",
-          "type": [
-            "string",
-            "null"
-          ]
-        },
-        "commands": {
-          "description": "Allowed or denied commands when using this permission.",
-          "default": {
-            "allow": [],
-            "deny": []
-          },
-          "allOf": [
-            {
-              "$ref": "#/definitions/Commands"
-            }
-          ]
-        },
-        "scope": {
-          "description": "Allowed or denied scoped when using this permission.",
-          "default": {},
-          "allOf": [
-            {
-              "$ref": "#/definitions/Scopes"
-            }
-          ]
-        }
-      }
-    },
-    "Commands": {
-      "description": "Allowed and denied commands inside a permission.\n\nIf two commands clash inside of `allow` and `deny`, it should be denied by default.",
-      "type": "object",
-      "properties": {
-        "allow": {
-          "description": "Allowed command.",
-          "default": [],
-          "type": "array",
-          "items": {
-            "type": "string"
-          }
-        },
-        "deny": {
-          "description": "Denied command, which takes priority.",
-          "default": [],
-          "type": "array",
-          "items": {
-            "type": "string"
-          }
-        }
-      }
-    },
-    "Scopes": {
-      "description": "A restriction of the command/endpoint functionality.\n\nIt can be of any serde serializable type and is used for allowing or preventing certain actions inside a Tauri command.\n\nThe scope is passed to the command and handled/enforced by the command itself.",
-      "type": "object",
-      "properties": {
-        "allow": {
-          "description": "Data that defines what is allowed by the scope.",
-          "type": [
-            "array",
-            "null"
-          ],
-          "items": {
-            "$ref": "#/definitions/Value"
-          }
-        },
-        "deny": {
-          "description": "Data that defines what is denied by the scope.",
-          "type": [
-            "array",
-            "null"
-          ],
-          "items": {
-            "$ref": "#/definitions/Value"
-          }
-        }
-      }
-    },
-    "Value": {
-      "description": "All supported ACL values.",
-      "anyOf": [
-        {
-          "description": "Represents a null JSON value.",
-          "type": "null"
-        },
-        {
-          "description": "Represents a [`bool`].",
-          "type": "boolean"
-        },
-        {
-          "description": "Represents a valid ACL [`Number`].",
-          "allOf": [
-            {
-              "$ref": "#/definitions/Number"
-            }
-          ]
-        },
-        {
-          "description": "Represents a [`String`].",
-          "type": "string"
-        },
-        {
-          "description": "Represents a list of other [`Value`]s.",
-          "type": "array",
-          "items": {
-            "$ref": "#/definitions/Value"
-          }
-        },
-        {
-          "description": "Represents a map of [`String`] keys to [`Value`]s.",
-          "type": "object",
-          "additionalProperties": {
-            "$ref": "#/definitions/Value"
-          }
-        }
-      ]
-    },
-    "Number": {
-      "description": "A valid ACL number.",
-      "anyOf": [
-        {
-          "description": "Represents an [`i64`].",
-          "type": "integer",
-          "format": "int64"
-        },
-        {
-          "description": "Represents a [`f64`].",
-          "type": "number",
-          "format": "double"
-        }
-      ]
-    },
-    "PermissionKind": {
-      "type": "string",
-      "oneOf": [
-        {
-          "description": "allow-append -> Enables the append command without any pre-configured scope.",
-          "type": "string",
-          "enum": [
-            "allow-append"
-          ]
-        },
-        {
-          "description": "deny-append -> Denies the append command without any pre-configured scope.",
-          "type": "string",
-          "enum": [
-            "deny-append"
-          ]
-        },
-        {
-          "description": "allow-create-default -> Enables the create_default command without any pre-configured scope.",
-          "type": "string",
-          "enum": [
-            "allow-create-default"
-          ]
-        },
-        {
-          "description": "deny-create-default -> Denies the create_default command without any pre-configured scope.",
-          "type": "string",
-          "enum": [
-            "deny-create-default"
-          ]
-        },
-        {
-          "description": "allow-get -> Enables the get command without any pre-configured scope.",
-          "type": "string",
-          "enum": [
-            "allow-get"
-          ]
-        },
-        {
-          "description": "deny-get -> Denies the get command without any pre-configured scope.",
-          "type": "string",
-          "enum": [
-            "deny-get"
-          ]
-        },
-        {
-          "description": "allow-insert -> Enables the insert command without any pre-configured scope.",
-          "type": "string",
-          "enum": [
-            "allow-insert"
-          ]
-        },
-        {
-          "description": "deny-insert -> Denies the insert command without any pre-configured scope.",
-          "type": "string",
-          "enum": [
-            "deny-insert"
-          ]
-        },
-        {
-          "description": "allow-is-checked -> Enables the is_checked command without any pre-configured scope.",
-          "type": "string",
-          "enum": [
-            "allow-is-checked"
-          ]
-        },
-        {
-          "description": "deny-is-checked -> Denies the is_checked command without any pre-configured scope.",
-          "type": "string",
-          "enum": [
-            "deny-is-checked"
-          ]
-        },
-        {
-          "description": "allow-is-enabled -> Enables the is_enabled command without any pre-configured scope.",
-          "type": "string",
-          "enum": [
-            "allow-is-enabled"
-          ]
-        },
-        {
-          "description": "deny-is-enabled -> Denies the is_enabled command without any pre-configured scope.",
-          "type": "string",
-          "enum": [
-            "deny-is-enabled"
-          ]
-        },
-        {
-          "description": "allow-items -> Enables the items command without any pre-configured scope.",
-          "type": "string",
-          "enum": [
-            "allow-items"
-          ]
-        },
-        {
-          "description": "deny-items -> Denies the items command without any pre-configured scope.",
-          "type": "string",
-          "enum": [
-            "deny-items"
-          ]
-        },
-        {
-          "description": "allow-new -> Enables the new command without any pre-configured scope.",
-          "type": "string",
-          "enum": [
-            "allow-new"
-          ]
-        },
-        {
-          "description": "deny-new -> Denies the new command without any pre-configured scope.",
-          "type": "string",
-          "enum": [
-            "deny-new"
-          ]
-        },
-        {
-          "description": "allow-popup -> Enables the popup command without any pre-configured scope.",
-          "type": "string",
-          "enum": [
-            "allow-popup"
-          ]
-        },
-        {
-          "description": "deny-popup -> Denies the popup command without any pre-configured scope.",
-          "type": "string",
-          "enum": [
-            "deny-popup"
-          ]
-        },
-        {
-          "description": "allow-prepend -> Enables the prepend command without any pre-configured scope.",
-          "type": "string",
-          "enum": [
-            "allow-prepend"
-          ]
-        },
-        {
-          "description": "deny-prepend -> Denies the prepend command without any pre-configured scope.",
-          "type": "string",
-          "enum": [
-            "deny-prepend"
-          ]
-        },
-        {
-          "description": "allow-remove -> Enables the remove command without any pre-configured scope.",
-          "type": "string",
-          "enum": [
-            "allow-remove"
-          ]
-        },
-        {
-          "description": "deny-remove -> Denies the remove command without any pre-configured scope.",
-          "type": "string",
-          "enum": [
-            "deny-remove"
-          ]
-        },
-        {
-          "description": "allow-remove-at -> Enables the remove_at command without any pre-configured scope.",
-          "type": "string",
-          "enum": [
-            "allow-remove-at"
-          ]
-        },
-        {
-          "description": "deny-remove-at -> Denies the remove_at command without any pre-configured scope.",
-          "type": "string",
-          "enum": [
-            "deny-remove-at"
-          ]
-        },
-        {
-          "description": "allow-set-accelerator -> Enables the set_accelerator command without any pre-configured scope.",
-          "type": "string",
-          "enum": [
-            "allow-set-accelerator"
-          ]
-        },
-        {
-          "description": "deny-set-accelerator -> Denies the set_accelerator command without any pre-configured scope.",
-          "type": "string",
-          "enum": [
-            "deny-set-accelerator"
-          ]
-        },
-        {
-          "description": "allow-set-as-app-menu -> Enables the set_as_app_menu command without any pre-configured scope.",
-          "type": "string",
-          "enum": [
-            "allow-set-as-app-menu"
-          ]
-        },
-        {
-          "description": "deny-set-as-app-menu -> Denies the set_as_app_menu command without any pre-configured scope.",
-          "type": "string",
-          "enum": [
-            "deny-set-as-app-menu"
-          ]
-        },
-        {
-          "description": "allow-set-as-help-menu-for-nsapp -> Enables the set_as_help_menu_for_nsapp command without any pre-configured scope.",
-          "type": "string",
-          "enum": [
-            "allow-set-as-help-menu-for-nsapp"
-          ]
-        },
-        {
-          "description": "deny-set-as-help-menu-for-nsapp -> Denies the set_as_help_menu_for_nsapp command without any pre-configured scope.",
-          "type": "string",
-          "enum": [
-            "deny-set-as-help-menu-for-nsapp"
-          ]
-        },
-        {
-          "description": "allow-set-as-window-menu -> Enables the set_as_window_menu command without any pre-configured scope.",
-          "type": "string",
-          "enum": [
-            "allow-set-as-window-menu"
-          ]
-        },
-        {
-          "description": "deny-set-as-window-menu -> Denies the set_as_window_menu command without any pre-configured scope.",
-          "type": "string",
-          "enum": [
-            "deny-set-as-window-menu"
-          ]
-        },
-        {
-          "description": "allow-set-as-windows-menu-for-nsapp -> Enables the set_as_windows_menu_for_nsapp command without any pre-configured scope.",
-          "type": "string",
-          "enum": [
-            "allow-set-as-windows-menu-for-nsapp"
-          ]
-        },
-        {
-          "description": "deny-set-as-windows-menu-for-nsapp -> Denies the set_as_windows_menu_for_nsapp command without any pre-configured scope.",
-          "type": "string",
-          "enum": [
-            "deny-set-as-windows-menu-for-nsapp"
-          ]
-        },
-        {
-          "description": "allow-set-checked -> Enables the set_checked command without any pre-configured scope.",
-          "type": "string",
-          "enum": [
-            "allow-set-checked"
-          ]
-        },
-        {
-          "description": "deny-set-checked -> Denies the set_checked command without any pre-configured scope.",
-          "type": "string",
-          "enum": [
-            "deny-set-checked"
-          ]
-        },
-        {
-          "description": "allow-set-enabled -> Enables the set_enabled command without any pre-configured scope.",
-          "type": "string",
-          "enum": [
-            "allow-set-enabled"
-          ]
-        },
-        {
-          "description": "deny-set-enabled -> Denies the set_enabled command without any pre-configured scope.",
-          "type": "string",
-          "enum": [
-            "deny-set-enabled"
-          ]
-        },
-        {
-          "description": "allow-set-icon -> Enables the set_icon command without any pre-configured scope.",
-          "type": "string",
-          "enum": [
-            "allow-set-icon"
-          ]
-        },
-        {
-          "description": "deny-set-icon -> Denies the set_icon command without any pre-configured scope.",
-          "type": "string",
-          "enum": [
-            "deny-set-icon"
-          ]
-        },
-        {
-          "description": "allow-set-text -> Enables the set_text command without any pre-configured scope.",
-          "type": "string",
-          "enum": [
-            "allow-set-text"
-          ]
-        },
-        {
-          "description": "deny-set-text -> Denies the set_text command without any pre-configured scope.",
-          "type": "string",
-          "enum": [
-            "deny-set-text"
-          ]
-        },
-        {
-          "description": "allow-text -> Enables the text command without any pre-configured scope.",
-          "type": "string",
-          "enum": [
-            "allow-text"
-          ]
-        },
-        {
-          "description": "deny-text -> Denies the text command without any pre-configured scope.",
-          "type": "string",
-          "enum": [
-            "deny-text"
-          ]
-        },
-        {
-          "description": "default -> Default permissions for the plugin.",
-          "type": "string",
-          "enum": [
-            "default"
-          ]
-        }
-      ]
-    }
-  }
-}

+ 0 - 371
core/tauri/permissions/path/schemas/schema.json

@@ -1,371 +0,0 @@
-{
-  "$schema": "http://json-schema.org/draft-07/schema#",
-  "title": "PermissionFile",
-  "description": "Permission file that can define a default permission, a set of permissions or a list of inlined permissions.",
-  "type": "object",
-  "properties": {
-    "default": {
-      "description": "The default permission set for the plugin",
-      "anyOf": [
-        {
-          "$ref": "#/definitions/DefaultPermission"
-        },
-        {
-          "type": "null"
-        }
-      ]
-    },
-    "set": {
-      "description": "A list of permissions sets defined",
-      "default": [],
-      "type": "array",
-      "items": {
-        "$ref": "#/definitions/PermissionSet"
-      }
-    },
-    "permission": {
-      "description": "A list of inlined permissions",
-      "default": [],
-      "type": "array",
-      "items": {
-        "$ref": "#/definitions/Permission"
-      }
-    }
-  },
-  "definitions": {
-    "DefaultPermission": {
-      "description": "The default permission set of the plugin.\n\nWorks similarly to a permission with the \"default\" identifier.",
-      "type": "object",
-      "required": [
-        "permissions"
-      ],
-      "properties": {
-        "version": {
-          "description": "The version of the permission.",
-          "type": [
-            "integer",
-            "null"
-          ],
-          "format": "uint64",
-          "minimum": 1.0
-        },
-        "description": {
-          "description": "Human-readable description of what the permission does.",
-          "type": [
-            "string",
-            "null"
-          ]
-        },
-        "permissions": {
-          "description": "All permissions this set contains.",
-          "type": "array",
-          "items": {
-            "type": "string"
-          }
-        }
-      }
-    },
-    "PermissionSet": {
-      "description": "A set of direct permissions grouped together under a new name.",
-      "type": "object",
-      "required": [
-        "description",
-        "identifier",
-        "permissions"
-      ],
-      "properties": {
-        "identifier": {
-          "description": "A unique identifier for the permission.",
-          "type": "string"
-        },
-        "description": {
-          "description": "Human-readable description of what the permission does.",
-          "type": "string"
-        },
-        "permissions": {
-          "description": "All permissions this set contains.",
-          "type": "array",
-          "items": {
-            "$ref": "#/definitions/PermissionKind"
-          }
-        }
-      }
-    },
-    "Permission": {
-      "description": "Descriptions of explicit privileges of commands.\n\nIt can enable commands to be accessible in the frontend of the application.\n\nIf the scope is defined it can be used to fine grain control the access of individual or multiple commands.",
-      "type": "object",
-      "required": [
-        "identifier"
-      ],
-      "properties": {
-        "version": {
-          "description": "The version of the permission.",
-          "type": [
-            "integer",
-            "null"
-          ],
-          "format": "uint64",
-          "minimum": 1.0
-        },
-        "identifier": {
-          "description": "A unique identifier for the permission.",
-          "type": "string"
-        },
-        "description": {
-          "description": "Human-readable description of what the permission does.",
-          "type": [
-            "string",
-            "null"
-          ]
-        },
-        "commands": {
-          "description": "Allowed or denied commands when using this permission.",
-          "default": {
-            "allow": [],
-            "deny": []
-          },
-          "allOf": [
-            {
-              "$ref": "#/definitions/Commands"
-            }
-          ]
-        },
-        "scope": {
-          "description": "Allowed or denied scoped when using this permission.",
-          "default": {},
-          "allOf": [
-            {
-              "$ref": "#/definitions/Scopes"
-            }
-          ]
-        }
-      }
-    },
-    "Commands": {
-      "description": "Allowed and denied commands inside a permission.\n\nIf two commands clash inside of `allow` and `deny`, it should be denied by default.",
-      "type": "object",
-      "properties": {
-        "allow": {
-          "description": "Allowed command.",
-          "default": [],
-          "type": "array",
-          "items": {
-            "type": "string"
-          }
-        },
-        "deny": {
-          "description": "Denied command, which takes priority.",
-          "default": [],
-          "type": "array",
-          "items": {
-            "type": "string"
-          }
-        }
-      }
-    },
-    "Scopes": {
-      "description": "A restriction of the command/endpoint functionality.\n\nIt can be of any serde serializable type and is used for allowing or preventing certain actions inside a Tauri command.\n\nThe scope is passed to the command and handled/enforced by the command itself.",
-      "type": "object",
-      "properties": {
-        "allow": {
-          "description": "Data that defines what is allowed by the scope.",
-          "type": [
-            "array",
-            "null"
-          ],
-          "items": {
-            "$ref": "#/definitions/Value"
-          }
-        },
-        "deny": {
-          "description": "Data that defines what is denied by the scope.",
-          "type": [
-            "array",
-            "null"
-          ],
-          "items": {
-            "$ref": "#/definitions/Value"
-          }
-        }
-      }
-    },
-    "Value": {
-      "description": "All supported ACL values.",
-      "anyOf": [
-        {
-          "description": "Represents a null JSON value.",
-          "type": "null"
-        },
-        {
-          "description": "Represents a [`bool`].",
-          "type": "boolean"
-        },
-        {
-          "description": "Represents a valid ACL [`Number`].",
-          "allOf": [
-            {
-              "$ref": "#/definitions/Number"
-            }
-          ]
-        },
-        {
-          "description": "Represents a [`String`].",
-          "type": "string"
-        },
-        {
-          "description": "Represents a list of other [`Value`]s.",
-          "type": "array",
-          "items": {
-            "$ref": "#/definitions/Value"
-          }
-        },
-        {
-          "description": "Represents a map of [`String`] keys to [`Value`]s.",
-          "type": "object",
-          "additionalProperties": {
-            "$ref": "#/definitions/Value"
-          }
-        }
-      ]
-    },
-    "Number": {
-      "description": "A valid ACL number.",
-      "anyOf": [
-        {
-          "description": "Represents an [`i64`].",
-          "type": "integer",
-          "format": "int64"
-        },
-        {
-          "description": "Represents a [`f64`].",
-          "type": "number",
-          "format": "double"
-        }
-      ]
-    },
-    "PermissionKind": {
-      "type": "string",
-      "oneOf": [
-        {
-          "description": "allow-basename -> Enables the basename command without any pre-configured scope.",
-          "type": "string",
-          "enum": [
-            "allow-basename"
-          ]
-        },
-        {
-          "description": "deny-basename -> Denies the basename command without any pre-configured scope.",
-          "type": "string",
-          "enum": [
-            "deny-basename"
-          ]
-        },
-        {
-          "description": "allow-dirname -> Enables the dirname command without any pre-configured scope.",
-          "type": "string",
-          "enum": [
-            "allow-dirname"
-          ]
-        },
-        {
-          "description": "deny-dirname -> Denies the dirname command without any pre-configured scope.",
-          "type": "string",
-          "enum": [
-            "deny-dirname"
-          ]
-        },
-        {
-          "description": "allow-extname -> Enables the extname command without any pre-configured scope.",
-          "type": "string",
-          "enum": [
-            "allow-extname"
-          ]
-        },
-        {
-          "description": "deny-extname -> Denies the extname command without any pre-configured scope.",
-          "type": "string",
-          "enum": [
-            "deny-extname"
-          ]
-        },
-        {
-          "description": "allow-is-absolute -> Enables the is_absolute command without any pre-configured scope.",
-          "type": "string",
-          "enum": [
-            "allow-is-absolute"
-          ]
-        },
-        {
-          "description": "deny-is-absolute -> Denies the is_absolute command without any pre-configured scope.",
-          "type": "string",
-          "enum": [
-            "deny-is-absolute"
-          ]
-        },
-        {
-          "description": "allow-join -> Enables the join command without any pre-configured scope.",
-          "type": "string",
-          "enum": [
-            "allow-join"
-          ]
-        },
-        {
-          "description": "deny-join -> Denies the join command without any pre-configured scope.",
-          "type": "string",
-          "enum": [
-            "deny-join"
-          ]
-        },
-        {
-          "description": "allow-normalize -> Enables the normalize command without any pre-configured scope.",
-          "type": "string",
-          "enum": [
-            "allow-normalize"
-          ]
-        },
-        {
-          "description": "deny-normalize -> Denies the normalize command without any pre-configured scope.",
-          "type": "string",
-          "enum": [
-            "deny-normalize"
-          ]
-        },
-        {
-          "description": "allow-resolve -> Enables the resolve command without any pre-configured scope.",
-          "type": "string",
-          "enum": [
-            "allow-resolve"
-          ]
-        },
-        {
-          "description": "deny-resolve -> Denies the resolve command without any pre-configured scope.",
-          "type": "string",
-          "enum": [
-            "deny-resolve"
-          ]
-        },
-        {
-          "description": "allow-resolve-directory -> Enables the resolve_directory command without any pre-configured scope.",
-          "type": "string",
-          "enum": [
-            "allow-resolve-directory"
-          ]
-        },
-        {
-          "description": "deny-resolve-directory -> Denies the resolve_directory command without any pre-configured scope.",
-          "type": "string",
-          "enum": [
-            "deny-resolve-directory"
-          ]
-        },
-        {
-          "description": "default -> Default permissions for the plugin.",
-          "type": "string",
-          "enum": [
-            "default"
-          ]
-        }
-      ]
-    }
-  }
-}

+ 0 - 273
core/tauri/permissions/resources/schemas/schema.json

@@ -1,273 +0,0 @@
-{
-  "$schema": "http://json-schema.org/draft-07/schema#",
-  "title": "PermissionFile",
-  "description": "Permission file that can define a default permission, a set of permissions or a list of inlined permissions.",
-  "type": "object",
-  "properties": {
-    "default": {
-      "description": "The default permission set for the plugin",
-      "anyOf": [
-        {
-          "$ref": "#/definitions/DefaultPermission"
-        },
-        {
-          "type": "null"
-        }
-      ]
-    },
-    "set": {
-      "description": "A list of permissions sets defined",
-      "default": [],
-      "type": "array",
-      "items": {
-        "$ref": "#/definitions/PermissionSet"
-      }
-    },
-    "permission": {
-      "description": "A list of inlined permissions",
-      "default": [],
-      "type": "array",
-      "items": {
-        "$ref": "#/definitions/Permission"
-      }
-    }
-  },
-  "definitions": {
-    "DefaultPermission": {
-      "description": "The default permission set of the plugin.\n\nWorks similarly to a permission with the \"default\" identifier.",
-      "type": "object",
-      "required": [
-        "permissions"
-      ],
-      "properties": {
-        "version": {
-          "description": "The version of the permission.",
-          "type": [
-            "integer",
-            "null"
-          ],
-          "format": "uint64",
-          "minimum": 1.0
-        },
-        "description": {
-          "description": "Human-readable description of what the permission does.",
-          "type": [
-            "string",
-            "null"
-          ]
-        },
-        "permissions": {
-          "description": "All permissions this set contains.",
-          "type": "array",
-          "items": {
-            "type": "string"
-          }
-        }
-      }
-    },
-    "PermissionSet": {
-      "description": "A set of direct permissions grouped together under a new name.",
-      "type": "object",
-      "required": [
-        "description",
-        "identifier",
-        "permissions"
-      ],
-      "properties": {
-        "identifier": {
-          "description": "A unique identifier for the permission.",
-          "type": "string"
-        },
-        "description": {
-          "description": "Human-readable description of what the permission does.",
-          "type": "string"
-        },
-        "permissions": {
-          "description": "All permissions this set contains.",
-          "type": "array",
-          "items": {
-            "$ref": "#/definitions/PermissionKind"
-          }
-        }
-      }
-    },
-    "Permission": {
-      "description": "Descriptions of explicit privileges of commands.\n\nIt can enable commands to be accessible in the frontend of the application.\n\nIf the scope is defined it can be used to fine grain control the access of individual or multiple commands.",
-      "type": "object",
-      "required": [
-        "identifier"
-      ],
-      "properties": {
-        "version": {
-          "description": "The version of the permission.",
-          "type": [
-            "integer",
-            "null"
-          ],
-          "format": "uint64",
-          "minimum": 1.0
-        },
-        "identifier": {
-          "description": "A unique identifier for the permission.",
-          "type": "string"
-        },
-        "description": {
-          "description": "Human-readable description of what the permission does.",
-          "type": [
-            "string",
-            "null"
-          ]
-        },
-        "commands": {
-          "description": "Allowed or denied commands when using this permission.",
-          "default": {
-            "allow": [],
-            "deny": []
-          },
-          "allOf": [
-            {
-              "$ref": "#/definitions/Commands"
-            }
-          ]
-        },
-        "scope": {
-          "description": "Allowed or denied scoped when using this permission.",
-          "default": {},
-          "allOf": [
-            {
-              "$ref": "#/definitions/Scopes"
-            }
-          ]
-        }
-      }
-    },
-    "Commands": {
-      "description": "Allowed and denied commands inside a permission.\n\nIf two commands clash inside of `allow` and `deny`, it should be denied by default.",
-      "type": "object",
-      "properties": {
-        "allow": {
-          "description": "Allowed command.",
-          "default": [],
-          "type": "array",
-          "items": {
-            "type": "string"
-          }
-        },
-        "deny": {
-          "description": "Denied command, which takes priority.",
-          "default": [],
-          "type": "array",
-          "items": {
-            "type": "string"
-          }
-        }
-      }
-    },
-    "Scopes": {
-      "description": "A restriction of the command/endpoint functionality.\n\nIt can be of any serde serializable type and is used for allowing or preventing certain actions inside a Tauri command.\n\nThe scope is passed to the command and handled/enforced by the command itself.",
-      "type": "object",
-      "properties": {
-        "allow": {
-          "description": "Data that defines what is allowed by the scope.",
-          "type": [
-            "array",
-            "null"
-          ],
-          "items": {
-            "$ref": "#/definitions/Value"
-          }
-        },
-        "deny": {
-          "description": "Data that defines what is denied by the scope.",
-          "type": [
-            "array",
-            "null"
-          ],
-          "items": {
-            "$ref": "#/definitions/Value"
-          }
-        }
-      }
-    },
-    "Value": {
-      "description": "All supported ACL values.",
-      "anyOf": [
-        {
-          "description": "Represents a null JSON value.",
-          "type": "null"
-        },
-        {
-          "description": "Represents a [`bool`].",
-          "type": "boolean"
-        },
-        {
-          "description": "Represents a valid ACL [`Number`].",
-          "allOf": [
-            {
-              "$ref": "#/definitions/Number"
-            }
-          ]
-        },
-        {
-          "description": "Represents a [`String`].",
-          "type": "string"
-        },
-        {
-          "description": "Represents a list of other [`Value`]s.",
-          "type": "array",
-          "items": {
-            "$ref": "#/definitions/Value"
-          }
-        },
-        {
-          "description": "Represents a map of [`String`] keys to [`Value`]s.",
-          "type": "object",
-          "additionalProperties": {
-            "$ref": "#/definitions/Value"
-          }
-        }
-      ]
-    },
-    "Number": {
-      "description": "A valid ACL number.",
-      "anyOf": [
-        {
-          "description": "Represents an [`i64`].",
-          "type": "integer",
-          "format": "int64"
-        },
-        {
-          "description": "Represents a [`f64`].",
-          "type": "number",
-          "format": "double"
-        }
-      ]
-    },
-    "PermissionKind": {
-      "type": "string",
-      "oneOf": [
-        {
-          "description": "allow-close -> Enables the close command without any pre-configured scope.",
-          "type": "string",
-          "enum": [
-            "allow-close"
-          ]
-        },
-        {
-          "description": "deny-close -> Denies the close command without any pre-configured scope.",
-          "type": "string",
-          "enum": [
-            "deny-close"
-          ]
-        },
-        {
-          "description": "default -> Default permissions for the plugin.",
-          "type": "string",
-          "enum": [
-            "default"
-          ]
-        }
-      ]
-    }
-  }
-}

+ 0 - 385
core/tauri/permissions/tray/schemas/schema.json

@@ -1,385 +0,0 @@
-{
-  "$schema": "http://json-schema.org/draft-07/schema#",
-  "title": "PermissionFile",
-  "description": "Permission file that can define a default permission, a set of permissions or a list of inlined permissions.",
-  "type": "object",
-  "properties": {
-    "default": {
-      "description": "The default permission set for the plugin",
-      "anyOf": [
-        {
-          "$ref": "#/definitions/DefaultPermission"
-        },
-        {
-          "type": "null"
-        }
-      ]
-    },
-    "set": {
-      "description": "A list of permissions sets defined",
-      "default": [],
-      "type": "array",
-      "items": {
-        "$ref": "#/definitions/PermissionSet"
-      }
-    },
-    "permission": {
-      "description": "A list of inlined permissions",
-      "default": [],
-      "type": "array",
-      "items": {
-        "$ref": "#/definitions/Permission"
-      }
-    }
-  },
-  "definitions": {
-    "DefaultPermission": {
-      "description": "The default permission set of the plugin.\n\nWorks similarly to a permission with the \"default\" identifier.",
-      "type": "object",
-      "required": [
-        "permissions"
-      ],
-      "properties": {
-        "version": {
-          "description": "The version of the permission.",
-          "type": [
-            "integer",
-            "null"
-          ],
-          "format": "uint64",
-          "minimum": 1.0
-        },
-        "description": {
-          "description": "Human-readable description of what the permission does.",
-          "type": [
-            "string",
-            "null"
-          ]
-        },
-        "permissions": {
-          "description": "All permissions this set contains.",
-          "type": "array",
-          "items": {
-            "type": "string"
-          }
-        }
-      }
-    },
-    "PermissionSet": {
-      "description": "A set of direct permissions grouped together under a new name.",
-      "type": "object",
-      "required": [
-        "description",
-        "identifier",
-        "permissions"
-      ],
-      "properties": {
-        "identifier": {
-          "description": "A unique identifier for the permission.",
-          "type": "string"
-        },
-        "description": {
-          "description": "Human-readable description of what the permission does.",
-          "type": "string"
-        },
-        "permissions": {
-          "description": "All permissions this set contains.",
-          "type": "array",
-          "items": {
-            "$ref": "#/definitions/PermissionKind"
-          }
-        }
-      }
-    },
-    "Permission": {
-      "description": "Descriptions of explicit privileges of commands.\n\nIt can enable commands to be accessible in the frontend of the application.\n\nIf the scope is defined it can be used to fine grain control the access of individual or multiple commands.",
-      "type": "object",
-      "required": [
-        "identifier"
-      ],
-      "properties": {
-        "version": {
-          "description": "The version of the permission.",
-          "type": [
-            "integer",
-            "null"
-          ],
-          "format": "uint64",
-          "minimum": 1.0
-        },
-        "identifier": {
-          "description": "A unique identifier for the permission.",
-          "type": "string"
-        },
-        "description": {
-          "description": "Human-readable description of what the permission does.",
-          "type": [
-            "string",
-            "null"
-          ]
-        },
-        "commands": {
-          "description": "Allowed or denied commands when using this permission.",
-          "default": {
-            "allow": [],
-            "deny": []
-          },
-          "allOf": [
-            {
-              "$ref": "#/definitions/Commands"
-            }
-          ]
-        },
-        "scope": {
-          "description": "Allowed or denied scoped when using this permission.",
-          "default": {},
-          "allOf": [
-            {
-              "$ref": "#/definitions/Scopes"
-            }
-          ]
-        }
-      }
-    },
-    "Commands": {
-      "description": "Allowed and denied commands inside a permission.\n\nIf two commands clash inside of `allow` and `deny`, it should be denied by default.",
-      "type": "object",
-      "properties": {
-        "allow": {
-          "description": "Allowed command.",
-          "default": [],
-          "type": "array",
-          "items": {
-            "type": "string"
-          }
-        },
-        "deny": {
-          "description": "Denied command, which takes priority.",
-          "default": [],
-          "type": "array",
-          "items": {
-            "type": "string"
-          }
-        }
-      }
-    },
-    "Scopes": {
-      "description": "A restriction of the command/endpoint functionality.\n\nIt can be of any serde serializable type and is used for allowing or preventing certain actions inside a Tauri command.\n\nThe scope is passed to the command and handled/enforced by the command itself.",
-      "type": "object",
-      "properties": {
-        "allow": {
-          "description": "Data that defines what is allowed by the scope.",
-          "type": [
-            "array",
-            "null"
-          ],
-          "items": {
-            "$ref": "#/definitions/Value"
-          }
-        },
-        "deny": {
-          "description": "Data that defines what is denied by the scope.",
-          "type": [
-            "array",
-            "null"
-          ],
-          "items": {
-            "$ref": "#/definitions/Value"
-          }
-        }
-      }
-    },
-    "Value": {
-      "description": "All supported ACL values.",
-      "anyOf": [
-        {
-          "description": "Represents a null JSON value.",
-          "type": "null"
-        },
-        {
-          "description": "Represents a [`bool`].",
-          "type": "boolean"
-        },
-        {
-          "description": "Represents a valid ACL [`Number`].",
-          "allOf": [
-            {
-              "$ref": "#/definitions/Number"
-            }
-          ]
-        },
-        {
-          "description": "Represents a [`String`].",
-          "type": "string"
-        },
-        {
-          "description": "Represents a list of other [`Value`]s.",
-          "type": "array",
-          "items": {
-            "$ref": "#/definitions/Value"
-          }
-        },
-        {
-          "description": "Represents a map of [`String`] keys to [`Value`]s.",
-          "type": "object",
-          "additionalProperties": {
-            "$ref": "#/definitions/Value"
-          }
-        }
-      ]
-    },
-    "Number": {
-      "description": "A valid ACL number.",
-      "anyOf": [
-        {
-          "description": "Represents an [`i64`].",
-          "type": "integer",
-          "format": "int64"
-        },
-        {
-          "description": "Represents a [`f64`].",
-          "type": "number",
-          "format": "double"
-        }
-      ]
-    },
-    "PermissionKind": {
-      "type": "string",
-      "oneOf": [
-        {
-          "description": "allow-new -> Enables the new command without any pre-configured scope.",
-          "type": "string",
-          "enum": [
-            "allow-new"
-          ]
-        },
-        {
-          "description": "deny-new -> Denies the new command without any pre-configured scope.",
-          "type": "string",
-          "enum": [
-            "deny-new"
-          ]
-        },
-        {
-          "description": "allow-set-icon -> Enables the set_icon command without any pre-configured scope.",
-          "type": "string",
-          "enum": [
-            "allow-set-icon"
-          ]
-        },
-        {
-          "description": "deny-set-icon -> Denies the set_icon command without any pre-configured scope.",
-          "type": "string",
-          "enum": [
-            "deny-set-icon"
-          ]
-        },
-        {
-          "description": "allow-set-icon-as-template -> Enables the set_icon_as_template command without any pre-configured scope.",
-          "type": "string",
-          "enum": [
-            "allow-set-icon-as-template"
-          ]
-        },
-        {
-          "description": "deny-set-icon-as-template -> Denies the set_icon_as_template command without any pre-configured scope.",
-          "type": "string",
-          "enum": [
-            "deny-set-icon-as-template"
-          ]
-        },
-        {
-          "description": "allow-set-menu -> Enables the set_menu command without any pre-configured scope.",
-          "type": "string",
-          "enum": [
-            "allow-set-menu"
-          ]
-        },
-        {
-          "description": "deny-set-menu -> Denies the set_menu command without any pre-configured scope.",
-          "type": "string",
-          "enum": [
-            "deny-set-menu"
-          ]
-        },
-        {
-          "description": "allow-set-show-menu-on-left-click -> Enables the set_show_menu_on_left_click command without any pre-configured scope.",
-          "type": "string",
-          "enum": [
-            "allow-set-show-menu-on-left-click"
-          ]
-        },
-        {
-          "description": "deny-set-show-menu-on-left-click -> Denies the set_show_menu_on_left_click command without any pre-configured scope.",
-          "type": "string",
-          "enum": [
-            "deny-set-show-menu-on-left-click"
-          ]
-        },
-        {
-          "description": "allow-set-temp-dir-path -> Enables the set_temp_dir_path command without any pre-configured scope.",
-          "type": "string",
-          "enum": [
-            "allow-set-temp-dir-path"
-          ]
-        },
-        {
-          "description": "deny-set-temp-dir-path -> Denies the set_temp_dir_path command without any pre-configured scope.",
-          "type": "string",
-          "enum": [
-            "deny-set-temp-dir-path"
-          ]
-        },
-        {
-          "description": "allow-set-title -> Enables the set_title command without any pre-configured scope.",
-          "type": "string",
-          "enum": [
-            "allow-set-title"
-          ]
-        },
-        {
-          "description": "deny-set-title -> Denies the set_title command without any pre-configured scope.",
-          "type": "string",
-          "enum": [
-            "deny-set-title"
-          ]
-        },
-        {
-          "description": "allow-set-tooltip -> Enables the set_tooltip command without any pre-configured scope.",
-          "type": "string",
-          "enum": [
-            "allow-set-tooltip"
-          ]
-        },
-        {
-          "description": "deny-set-tooltip -> Denies the set_tooltip command without any pre-configured scope.",
-          "type": "string",
-          "enum": [
-            "deny-set-tooltip"
-          ]
-        },
-        {
-          "description": "allow-set-visible -> Enables the set_visible command without any pre-configured scope.",
-          "type": "string",
-          "enum": [
-            "allow-set-visible"
-          ]
-        },
-        {
-          "description": "deny-set-visible -> Denies the set_visible command without any pre-configured scope.",
-          "type": "string",
-          "enum": [
-            "deny-set-visible"
-          ]
-        },
-        {
-          "description": "default -> Default permissions for the plugin.",
-          "type": "string",
-          "enum": [
-            "default"
-          ]
-        }
-      ]
-    }
-  }
-}

+ 0 - 399
core/tauri/permissions/webview/schemas/schema.json

@@ -1,399 +0,0 @@
-{
-  "$schema": "http://json-schema.org/draft-07/schema#",
-  "title": "PermissionFile",
-  "description": "Permission file that can define a default permission, a set of permissions or a list of inlined permissions.",
-  "type": "object",
-  "properties": {
-    "default": {
-      "description": "The default permission set for the plugin",
-      "anyOf": [
-        {
-          "$ref": "#/definitions/DefaultPermission"
-        },
-        {
-          "type": "null"
-        }
-      ]
-    },
-    "set": {
-      "description": "A list of permissions sets defined",
-      "default": [],
-      "type": "array",
-      "items": {
-        "$ref": "#/definitions/PermissionSet"
-      }
-    },
-    "permission": {
-      "description": "A list of inlined permissions",
-      "default": [],
-      "type": "array",
-      "items": {
-        "$ref": "#/definitions/Permission"
-      }
-    }
-  },
-  "definitions": {
-    "DefaultPermission": {
-      "description": "The default permission set of the plugin.\n\nWorks similarly to a permission with the \"default\" identifier.",
-      "type": "object",
-      "required": [
-        "permissions"
-      ],
-      "properties": {
-        "version": {
-          "description": "The version of the permission.",
-          "type": [
-            "integer",
-            "null"
-          ],
-          "format": "uint64",
-          "minimum": 1.0
-        },
-        "description": {
-          "description": "Human-readable description of what the permission does.",
-          "type": [
-            "string",
-            "null"
-          ]
-        },
-        "permissions": {
-          "description": "All permissions this set contains.",
-          "type": "array",
-          "items": {
-            "type": "string"
-          }
-        }
-      }
-    },
-    "PermissionSet": {
-      "description": "A set of direct permissions grouped together under a new name.",
-      "type": "object",
-      "required": [
-        "description",
-        "identifier",
-        "permissions"
-      ],
-      "properties": {
-        "identifier": {
-          "description": "A unique identifier for the permission.",
-          "type": "string"
-        },
-        "description": {
-          "description": "Human-readable description of what the permission does.",
-          "type": "string"
-        },
-        "permissions": {
-          "description": "All permissions this set contains.",
-          "type": "array",
-          "items": {
-            "$ref": "#/definitions/PermissionKind"
-          }
-        }
-      }
-    },
-    "Permission": {
-      "description": "Descriptions of explicit privileges of commands.\n\nIt can enable commands to be accessible in the frontend of the application.\n\nIf the scope is defined it can be used to fine grain control the access of individual or multiple commands.",
-      "type": "object",
-      "required": [
-        "identifier"
-      ],
-      "properties": {
-        "version": {
-          "description": "The version of the permission.",
-          "type": [
-            "integer",
-            "null"
-          ],
-          "format": "uint64",
-          "minimum": 1.0
-        },
-        "identifier": {
-          "description": "A unique identifier for the permission.",
-          "type": "string"
-        },
-        "description": {
-          "description": "Human-readable description of what the permission does.",
-          "type": [
-            "string",
-            "null"
-          ]
-        },
-        "commands": {
-          "description": "Allowed or denied commands when using this permission.",
-          "default": {
-            "allow": [],
-            "deny": []
-          },
-          "allOf": [
-            {
-              "$ref": "#/definitions/Commands"
-            }
-          ]
-        },
-        "scope": {
-          "description": "Allowed or denied scoped when using this permission.",
-          "default": {},
-          "allOf": [
-            {
-              "$ref": "#/definitions/Scopes"
-            }
-          ]
-        }
-      }
-    },
-    "Commands": {
-      "description": "Allowed and denied commands inside a permission.\n\nIf two commands clash inside of `allow` and `deny`, it should be denied by default.",
-      "type": "object",
-      "properties": {
-        "allow": {
-          "description": "Allowed command.",
-          "default": [],
-          "type": "array",
-          "items": {
-            "type": "string"
-          }
-        },
-        "deny": {
-          "description": "Denied command, which takes priority.",
-          "default": [],
-          "type": "array",
-          "items": {
-            "type": "string"
-          }
-        }
-      }
-    },
-    "Scopes": {
-      "description": "A restriction of the command/endpoint functionality.\n\nIt can be of any serde serializable type and is used for allowing or preventing certain actions inside a Tauri command.\n\nThe scope is passed to the command and handled/enforced by the command itself.",
-      "type": "object",
-      "properties": {
-        "allow": {
-          "description": "Data that defines what is allowed by the scope.",
-          "type": [
-            "array",
-            "null"
-          ],
-          "items": {
-            "$ref": "#/definitions/Value"
-          }
-        },
-        "deny": {
-          "description": "Data that defines what is denied by the scope.",
-          "type": [
-            "array",
-            "null"
-          ],
-          "items": {
-            "$ref": "#/definitions/Value"
-          }
-        }
-      }
-    },
-    "Value": {
-      "description": "All supported ACL values.",
-      "anyOf": [
-        {
-          "description": "Represents a null JSON value.",
-          "type": "null"
-        },
-        {
-          "description": "Represents a [`bool`].",
-          "type": "boolean"
-        },
-        {
-          "description": "Represents a valid ACL [`Number`].",
-          "allOf": [
-            {
-              "$ref": "#/definitions/Number"
-            }
-          ]
-        },
-        {
-          "description": "Represents a [`String`].",
-          "type": "string"
-        },
-        {
-          "description": "Represents a list of other [`Value`]s.",
-          "type": "array",
-          "items": {
-            "$ref": "#/definitions/Value"
-          }
-        },
-        {
-          "description": "Represents a map of [`String`] keys to [`Value`]s.",
-          "type": "object",
-          "additionalProperties": {
-            "$ref": "#/definitions/Value"
-          }
-        }
-      ]
-    },
-    "Number": {
-      "description": "A valid ACL number.",
-      "anyOf": [
-        {
-          "description": "Represents an [`i64`].",
-          "type": "integer",
-          "format": "int64"
-        },
-        {
-          "description": "Represents a [`f64`].",
-          "type": "number",
-          "format": "double"
-        }
-      ]
-    },
-    "PermissionKind": {
-      "type": "string",
-      "oneOf": [
-        {
-          "description": "allow-create-webview -> Enables the create_webview command without any pre-configured scope.",
-          "type": "string",
-          "enum": [
-            "allow-create-webview"
-          ]
-        },
-        {
-          "description": "deny-create-webview -> Denies the create_webview command without any pre-configured scope.",
-          "type": "string",
-          "enum": [
-            "deny-create-webview"
-          ]
-        },
-        {
-          "description": "allow-create-webview-window -> Enables the create_webview_window command without any pre-configured scope.",
-          "type": "string",
-          "enum": [
-            "allow-create-webview-window"
-          ]
-        },
-        {
-          "description": "deny-create-webview-window -> Denies the create_webview_window command without any pre-configured scope.",
-          "type": "string",
-          "enum": [
-            "deny-create-webview-window"
-          ]
-        },
-        {
-          "description": "allow-internal-toggle-devtools -> Enables the internal_toggle_devtools command without any pre-configured scope.",
-          "type": "string",
-          "enum": [
-            "allow-internal-toggle-devtools"
-          ]
-        },
-        {
-          "description": "deny-internal-toggle-devtools -> Denies the internal_toggle_devtools command without any pre-configured scope.",
-          "type": "string",
-          "enum": [
-            "deny-internal-toggle-devtools"
-          ]
-        },
-        {
-          "description": "allow-print -> Enables the print command without any pre-configured scope.",
-          "type": "string",
-          "enum": [
-            "allow-print"
-          ]
-        },
-        {
-          "description": "deny-print -> Denies the print command without any pre-configured scope.",
-          "type": "string",
-          "enum": [
-            "deny-print"
-          ]
-        },
-        {
-          "description": "allow-set-webview-focus -> Enables the set_webview_focus command without any pre-configured scope.",
-          "type": "string",
-          "enum": [
-            "allow-set-webview-focus"
-          ]
-        },
-        {
-          "description": "deny-set-webview-focus -> Denies the set_webview_focus command without any pre-configured scope.",
-          "type": "string",
-          "enum": [
-            "deny-set-webview-focus"
-          ]
-        },
-        {
-          "description": "allow-set-webview-position -> Enables the set_webview_position command without any pre-configured scope.",
-          "type": "string",
-          "enum": [
-            "allow-set-webview-position"
-          ]
-        },
-        {
-          "description": "deny-set-webview-position -> Denies the set_webview_position command without any pre-configured scope.",
-          "type": "string",
-          "enum": [
-            "deny-set-webview-position"
-          ]
-        },
-        {
-          "description": "allow-set-webview-size -> Enables the set_webview_size command without any pre-configured scope.",
-          "type": "string",
-          "enum": [
-            "allow-set-webview-size"
-          ]
-        },
-        {
-          "description": "deny-set-webview-size -> Denies the set_webview_size command without any pre-configured scope.",
-          "type": "string",
-          "enum": [
-            "deny-set-webview-size"
-          ]
-        },
-        {
-          "description": "allow-webview-close -> Enables the webview_close command without any pre-configured scope.",
-          "type": "string",
-          "enum": [
-            "allow-webview-close"
-          ]
-        },
-        {
-          "description": "deny-webview-close -> Denies the webview_close command without any pre-configured scope.",
-          "type": "string",
-          "enum": [
-            "deny-webview-close"
-          ]
-        },
-        {
-          "description": "allow-webview-position -> Enables the webview_position command without any pre-configured scope.",
-          "type": "string",
-          "enum": [
-            "allow-webview-position"
-          ]
-        },
-        {
-          "description": "deny-webview-position -> Denies the webview_position command without any pre-configured scope.",
-          "type": "string",
-          "enum": [
-            "deny-webview-position"
-          ]
-        },
-        {
-          "description": "allow-webview-size -> Enables the webview_size command without any pre-configured scope.",
-          "type": "string",
-          "enum": [
-            "allow-webview-size"
-          ]
-        },
-        {
-          "description": "deny-webview-size -> Denies the webview_size command without any pre-configured scope.",
-          "type": "string",
-          "enum": [
-            "deny-webview-size"
-          ]
-        },
-        {
-          "description": "default -> Default permissions for the plugin.",
-          "type": "string",
-          "enum": [
-            "default"
-          ]
-        }
-      ]
-    }
-  }
-}

+ 0 - 1127
core/tauri/permissions/window/schemas/schema.json

@@ -1,1127 +0,0 @@
-{
-  "$schema": "http://json-schema.org/draft-07/schema#",
-  "title": "PermissionFile",
-  "description": "Permission file that can define a default permission, a set of permissions or a list of inlined permissions.",
-  "type": "object",
-  "properties": {
-    "default": {
-      "description": "The default permission set for the plugin",
-      "anyOf": [
-        {
-          "$ref": "#/definitions/DefaultPermission"
-        },
-        {
-          "type": "null"
-        }
-      ]
-    },
-    "set": {
-      "description": "A list of permissions sets defined",
-      "default": [],
-      "type": "array",
-      "items": {
-        "$ref": "#/definitions/PermissionSet"
-      }
-    },
-    "permission": {
-      "description": "A list of inlined permissions",
-      "default": [],
-      "type": "array",
-      "items": {
-        "$ref": "#/definitions/Permission"
-      }
-    }
-  },
-  "definitions": {
-    "DefaultPermission": {
-      "description": "The default permission set of the plugin.\n\nWorks similarly to a permission with the \"default\" identifier.",
-      "type": "object",
-      "required": [
-        "permissions"
-      ],
-      "properties": {
-        "version": {
-          "description": "The version of the permission.",
-          "type": [
-            "integer",
-            "null"
-          ],
-          "format": "uint64",
-          "minimum": 1.0
-        },
-        "description": {
-          "description": "Human-readable description of what the permission does.",
-          "type": [
-            "string",
-            "null"
-          ]
-        },
-        "permissions": {
-          "description": "All permissions this set contains.",
-          "type": "array",
-          "items": {
-            "type": "string"
-          }
-        }
-      }
-    },
-    "PermissionSet": {
-      "description": "A set of direct permissions grouped together under a new name.",
-      "type": "object",
-      "required": [
-        "description",
-        "identifier",
-        "permissions"
-      ],
-      "properties": {
-        "identifier": {
-          "description": "A unique identifier for the permission.",
-          "type": "string"
-        },
-        "description": {
-          "description": "Human-readable description of what the permission does.",
-          "type": "string"
-        },
-        "permissions": {
-          "description": "All permissions this set contains.",
-          "type": "array",
-          "items": {
-            "$ref": "#/definitions/PermissionKind"
-          }
-        }
-      }
-    },
-    "Permission": {
-      "description": "Descriptions of explicit privileges of commands.\n\nIt can enable commands to be accessible in the frontend of the application.\n\nIf the scope is defined it can be used to fine grain control the access of individual or multiple commands.",
-      "type": "object",
-      "required": [
-        "identifier"
-      ],
-      "properties": {
-        "version": {
-          "description": "The version of the permission.",
-          "type": [
-            "integer",
-            "null"
-          ],
-          "format": "uint64",
-          "minimum": 1.0
-        },
-        "identifier": {
-          "description": "A unique identifier for the permission.",
-          "type": "string"
-        },
-        "description": {
-          "description": "Human-readable description of what the permission does.",
-          "type": [
-            "string",
-            "null"
-          ]
-        },
-        "commands": {
-          "description": "Allowed or denied commands when using this permission.",
-          "default": {
-            "allow": [],
-            "deny": []
-          },
-          "allOf": [
-            {
-              "$ref": "#/definitions/Commands"
-            }
-          ]
-        },
-        "scope": {
-          "description": "Allowed or denied scoped when using this permission.",
-          "default": {},
-          "allOf": [
-            {
-              "$ref": "#/definitions/Scopes"
-            }
-          ]
-        }
-      }
-    },
-    "Commands": {
-      "description": "Allowed and denied commands inside a permission.\n\nIf two commands clash inside of `allow` and `deny`, it should be denied by default.",
-      "type": "object",
-      "properties": {
-        "allow": {
-          "description": "Allowed command.",
-          "default": [],
-          "type": "array",
-          "items": {
-            "type": "string"
-          }
-        },
-        "deny": {
-          "description": "Denied command, which takes priority.",
-          "default": [],
-          "type": "array",
-          "items": {
-            "type": "string"
-          }
-        }
-      }
-    },
-    "Scopes": {
-      "description": "A restriction of the command/endpoint functionality.\n\nIt can be of any serde serializable type and is used for allowing or preventing certain actions inside a Tauri command.\n\nThe scope is passed to the command and handled/enforced by the command itself.",
-      "type": "object",
-      "properties": {
-        "allow": {
-          "description": "Data that defines what is allowed by the scope.",
-          "type": [
-            "array",
-            "null"
-          ],
-          "items": {
-            "$ref": "#/definitions/Value"
-          }
-        },
-        "deny": {
-          "description": "Data that defines what is denied by the scope.",
-          "type": [
-            "array",
-            "null"
-          ],
-          "items": {
-            "$ref": "#/definitions/Value"
-          }
-        }
-      }
-    },
-    "Value": {
-      "description": "All supported ACL values.",
-      "anyOf": [
-        {
-          "description": "Represents a null JSON value.",
-          "type": "null"
-        },
-        {
-          "description": "Represents a [`bool`].",
-          "type": "boolean"
-        },
-        {
-          "description": "Represents a valid ACL [`Number`].",
-          "allOf": [
-            {
-              "$ref": "#/definitions/Number"
-            }
-          ]
-        },
-        {
-          "description": "Represents a [`String`].",
-          "type": "string"
-        },
-        {
-          "description": "Represents a list of other [`Value`]s.",
-          "type": "array",
-          "items": {
-            "$ref": "#/definitions/Value"
-          }
-        },
-        {
-          "description": "Represents a map of [`String`] keys to [`Value`]s.",
-          "type": "object",
-          "additionalProperties": {
-            "$ref": "#/definitions/Value"
-          }
-        }
-      ]
-    },
-    "Number": {
-      "description": "A valid ACL number.",
-      "anyOf": [
-        {
-          "description": "Represents an [`i64`].",
-          "type": "integer",
-          "format": "int64"
-        },
-        {
-          "description": "Represents a [`f64`].",
-          "type": "number",
-          "format": "double"
-        }
-      ]
-    },
-    "PermissionKind": {
-      "type": "string",
-      "oneOf": [
-        {
-          "description": "allow-available-monitors -> Enables the available_monitors command without any pre-configured scope.",
-          "type": "string",
-          "enum": [
-            "allow-available-monitors"
-          ]
-        },
-        {
-          "description": "deny-available-monitors -> Denies the available_monitors command without any pre-configured scope.",
-          "type": "string",
-          "enum": [
-            "deny-available-monitors"
-          ]
-        },
-        {
-          "description": "allow-center -> Enables the center command without any pre-configured scope.",
-          "type": "string",
-          "enum": [
-            "allow-center"
-          ]
-        },
-        {
-          "description": "deny-center -> Denies the center command without any pre-configured scope.",
-          "type": "string",
-          "enum": [
-            "deny-center"
-          ]
-        },
-        {
-          "description": "allow-close -> Enables the close command without any pre-configured scope.",
-          "type": "string",
-          "enum": [
-            "allow-close"
-          ]
-        },
-        {
-          "description": "deny-close -> Denies the close command without any pre-configured scope.",
-          "type": "string",
-          "enum": [
-            "deny-close"
-          ]
-        },
-        {
-          "description": "allow-create -> Enables the create command without any pre-configured scope.",
-          "type": "string",
-          "enum": [
-            "allow-create"
-          ]
-        },
-        {
-          "description": "deny-create -> Denies the create command without any pre-configured scope.",
-          "type": "string",
-          "enum": [
-            "deny-create"
-          ]
-        },
-        {
-          "description": "allow-current-monitor -> Enables the current_monitor command without any pre-configured scope.",
-          "type": "string",
-          "enum": [
-            "allow-current-monitor"
-          ]
-        },
-        {
-          "description": "deny-current-monitor -> Denies the current_monitor command without any pre-configured scope.",
-          "type": "string",
-          "enum": [
-            "deny-current-monitor"
-          ]
-        },
-        {
-          "description": "allow-destroy -> Enables the destroy command without any pre-configured scope.",
-          "type": "string",
-          "enum": [
-            "allow-destroy"
-          ]
-        },
-        {
-          "description": "deny-destroy -> Denies the destroy command without any pre-configured scope.",
-          "type": "string",
-          "enum": [
-            "deny-destroy"
-          ]
-        },
-        {
-          "description": "allow-hide -> Enables the hide command without any pre-configured scope.",
-          "type": "string",
-          "enum": [
-            "allow-hide"
-          ]
-        },
-        {
-          "description": "deny-hide -> Denies the hide command without any pre-configured scope.",
-          "type": "string",
-          "enum": [
-            "deny-hide"
-          ]
-        },
-        {
-          "description": "allow-inner-position -> Enables the inner_position command without any pre-configured scope.",
-          "type": "string",
-          "enum": [
-            "allow-inner-position"
-          ]
-        },
-        {
-          "description": "deny-inner-position -> Denies the inner_position command without any pre-configured scope.",
-          "type": "string",
-          "enum": [
-            "deny-inner-position"
-          ]
-        },
-        {
-          "description": "allow-inner-size -> Enables the inner_size command without any pre-configured scope.",
-          "type": "string",
-          "enum": [
-            "allow-inner-size"
-          ]
-        },
-        {
-          "description": "deny-inner-size -> Denies the inner_size command without any pre-configured scope.",
-          "type": "string",
-          "enum": [
-            "deny-inner-size"
-          ]
-        },
-        {
-          "description": "allow-internal-on-mousedown -> Enables the internal_on_mousedown command without any pre-configured scope.",
-          "type": "string",
-          "enum": [
-            "allow-internal-on-mousedown"
-          ]
-        },
-        {
-          "description": "deny-internal-on-mousedown -> Denies the internal_on_mousedown command without any pre-configured scope.",
-          "type": "string",
-          "enum": [
-            "deny-internal-on-mousedown"
-          ]
-        },
-        {
-          "description": "allow-internal-on-mousemove -> Enables the internal_on_mousemove command without any pre-configured scope.",
-          "type": "string",
-          "enum": [
-            "allow-internal-on-mousemove"
-          ]
-        },
-        {
-          "description": "deny-internal-on-mousemove -> Denies the internal_on_mousemove command without any pre-configured scope.",
-          "type": "string",
-          "enum": [
-            "deny-internal-on-mousemove"
-          ]
-        },
-        {
-          "description": "allow-internal-toggle-maximize -> Enables the internal_toggle_maximize command without any pre-configured scope.",
-          "type": "string",
-          "enum": [
-            "allow-internal-toggle-maximize"
-          ]
-        },
-        {
-          "description": "deny-internal-toggle-maximize -> Denies the internal_toggle_maximize command without any pre-configured scope.",
-          "type": "string",
-          "enum": [
-            "deny-internal-toggle-maximize"
-          ]
-        },
-        {
-          "description": "allow-is-closable -> Enables the is_closable command without any pre-configured scope.",
-          "type": "string",
-          "enum": [
-            "allow-is-closable"
-          ]
-        },
-        {
-          "description": "deny-is-closable -> Denies the is_closable command without any pre-configured scope.",
-          "type": "string",
-          "enum": [
-            "deny-is-closable"
-          ]
-        },
-        {
-          "description": "allow-is-decorated -> Enables the is_decorated command without any pre-configured scope.",
-          "type": "string",
-          "enum": [
-            "allow-is-decorated"
-          ]
-        },
-        {
-          "description": "deny-is-decorated -> Denies the is_decorated command without any pre-configured scope.",
-          "type": "string",
-          "enum": [
-            "deny-is-decorated"
-          ]
-        },
-        {
-          "description": "allow-is-focused -> Enables the is_focused command without any pre-configured scope.",
-          "type": "string",
-          "enum": [
-            "allow-is-focused"
-          ]
-        },
-        {
-          "description": "deny-is-focused -> Denies the is_focused command without any pre-configured scope.",
-          "type": "string",
-          "enum": [
-            "deny-is-focused"
-          ]
-        },
-        {
-          "description": "allow-is-fullscreen -> Enables the is_fullscreen command without any pre-configured scope.",
-          "type": "string",
-          "enum": [
-            "allow-is-fullscreen"
-          ]
-        },
-        {
-          "description": "deny-is-fullscreen -> Denies the is_fullscreen command without any pre-configured scope.",
-          "type": "string",
-          "enum": [
-            "deny-is-fullscreen"
-          ]
-        },
-        {
-          "description": "allow-is-maximizable -> Enables the is_maximizable command without any pre-configured scope.",
-          "type": "string",
-          "enum": [
-            "allow-is-maximizable"
-          ]
-        },
-        {
-          "description": "deny-is-maximizable -> Denies the is_maximizable command without any pre-configured scope.",
-          "type": "string",
-          "enum": [
-            "deny-is-maximizable"
-          ]
-        },
-        {
-          "description": "allow-is-maximized -> Enables the is_maximized command without any pre-configured scope.",
-          "type": "string",
-          "enum": [
-            "allow-is-maximized"
-          ]
-        },
-        {
-          "description": "deny-is-maximized -> Denies the is_maximized command without any pre-configured scope.",
-          "type": "string",
-          "enum": [
-            "deny-is-maximized"
-          ]
-        },
-        {
-          "description": "allow-is-minimizable -> Enables the is_minimizable command without any pre-configured scope.",
-          "type": "string",
-          "enum": [
-            "allow-is-minimizable"
-          ]
-        },
-        {
-          "description": "deny-is-minimizable -> Denies the is_minimizable command without any pre-configured scope.",
-          "type": "string",
-          "enum": [
-            "deny-is-minimizable"
-          ]
-        },
-        {
-          "description": "allow-is-minimized -> Enables the is_minimized command without any pre-configured scope.",
-          "type": "string",
-          "enum": [
-            "allow-is-minimized"
-          ]
-        },
-        {
-          "description": "deny-is-minimized -> Denies the is_minimized command without any pre-configured scope.",
-          "type": "string",
-          "enum": [
-            "deny-is-minimized"
-          ]
-        },
-        {
-          "description": "allow-is-resizable -> Enables the is_resizable command without any pre-configured scope.",
-          "type": "string",
-          "enum": [
-            "allow-is-resizable"
-          ]
-        },
-        {
-          "description": "deny-is-resizable -> Denies the is_resizable command without any pre-configured scope.",
-          "type": "string",
-          "enum": [
-            "deny-is-resizable"
-          ]
-        },
-        {
-          "description": "allow-is-visible -> Enables the is_visible command without any pre-configured scope.",
-          "type": "string",
-          "enum": [
-            "allow-is-visible"
-          ]
-        },
-        {
-          "description": "deny-is-visible -> Denies the is_visible command without any pre-configured scope.",
-          "type": "string",
-          "enum": [
-            "deny-is-visible"
-          ]
-        },
-        {
-          "description": "allow-maximize -> Enables the maximize command without any pre-configured scope.",
-          "type": "string",
-          "enum": [
-            "allow-maximize"
-          ]
-        },
-        {
-          "description": "deny-maximize -> Denies the maximize command without any pre-configured scope.",
-          "type": "string",
-          "enum": [
-            "deny-maximize"
-          ]
-        },
-        {
-          "description": "allow-minimize -> Enables the minimize command without any pre-configured scope.",
-          "type": "string",
-          "enum": [
-            "allow-minimize"
-          ]
-        },
-        {
-          "description": "deny-minimize -> Denies the minimize command without any pre-configured scope.",
-          "type": "string",
-          "enum": [
-            "deny-minimize"
-          ]
-        },
-        {
-          "description": "allow-outer-position -> Enables the outer_position command without any pre-configured scope.",
-          "type": "string",
-          "enum": [
-            "allow-outer-position"
-          ]
-        },
-        {
-          "description": "deny-outer-position -> Denies the outer_position command without any pre-configured scope.",
-          "type": "string",
-          "enum": [
-            "deny-outer-position"
-          ]
-        },
-        {
-          "description": "allow-outer-size -> Enables the outer_size command without any pre-configured scope.",
-          "type": "string",
-          "enum": [
-            "allow-outer-size"
-          ]
-        },
-        {
-          "description": "deny-outer-size -> Denies the outer_size command without any pre-configured scope.",
-          "type": "string",
-          "enum": [
-            "deny-outer-size"
-          ]
-        },
-        {
-          "description": "allow-primary-monitor -> Enables the primary_monitor command without any pre-configured scope.",
-          "type": "string",
-          "enum": [
-            "allow-primary-monitor"
-          ]
-        },
-        {
-          "description": "deny-primary-monitor -> Denies the primary_monitor command without any pre-configured scope.",
-          "type": "string",
-          "enum": [
-            "deny-primary-monitor"
-          ]
-        },
-        {
-          "description": "allow-request-user-attention -> Enables the request_user_attention command without any pre-configured scope.",
-          "type": "string",
-          "enum": [
-            "allow-request-user-attention"
-          ]
-        },
-        {
-          "description": "deny-request-user-attention -> Denies the request_user_attention command without any pre-configured scope.",
-          "type": "string",
-          "enum": [
-            "deny-request-user-attention"
-          ]
-        },
-        {
-          "description": "allow-scale-factor -> Enables the scale_factor command without any pre-configured scope.",
-          "type": "string",
-          "enum": [
-            "allow-scale-factor"
-          ]
-        },
-        {
-          "description": "deny-scale-factor -> Denies the scale_factor command without any pre-configured scope.",
-          "type": "string",
-          "enum": [
-            "deny-scale-factor"
-          ]
-        },
-        {
-          "description": "allow-set-always-on-bottom -> Enables the set_always_on_bottom command without any pre-configured scope.",
-          "type": "string",
-          "enum": [
-            "allow-set-always-on-bottom"
-          ]
-        },
-        {
-          "description": "deny-set-always-on-bottom -> Denies the set_always_on_bottom command without any pre-configured scope.",
-          "type": "string",
-          "enum": [
-            "deny-set-always-on-bottom"
-          ]
-        },
-        {
-          "description": "allow-set-always-on-top -> Enables the set_always_on_top command without any pre-configured scope.",
-          "type": "string",
-          "enum": [
-            "allow-set-always-on-top"
-          ]
-        },
-        {
-          "description": "deny-set-always-on-top -> Denies the set_always_on_top command without any pre-configured scope.",
-          "type": "string",
-          "enum": [
-            "deny-set-always-on-top"
-          ]
-        },
-        {
-          "description": "allow-set-closable -> Enables the set_closable command without any pre-configured scope.",
-          "type": "string",
-          "enum": [
-            "allow-set-closable"
-          ]
-        },
-        {
-          "description": "deny-set-closable -> Denies the set_closable command without any pre-configured scope.",
-          "type": "string",
-          "enum": [
-            "deny-set-closable"
-          ]
-        },
-        {
-          "description": "allow-set-content-protected -> Enables the set_content_protected command without any pre-configured scope.",
-          "type": "string",
-          "enum": [
-            "allow-set-content-protected"
-          ]
-        },
-        {
-          "description": "deny-set-content-protected -> Denies the set_content_protected command without any pre-configured scope.",
-          "type": "string",
-          "enum": [
-            "deny-set-content-protected"
-          ]
-        },
-        {
-          "description": "allow-set-cursor-grab -> Enables the set_cursor_grab command without any pre-configured scope.",
-          "type": "string",
-          "enum": [
-            "allow-set-cursor-grab"
-          ]
-        },
-        {
-          "description": "deny-set-cursor-grab -> Denies the set_cursor_grab command without any pre-configured scope.",
-          "type": "string",
-          "enum": [
-            "deny-set-cursor-grab"
-          ]
-        },
-        {
-          "description": "allow-set-cursor-icon -> Enables the set_cursor_icon command without any pre-configured scope.",
-          "type": "string",
-          "enum": [
-            "allow-set-cursor-icon"
-          ]
-        },
-        {
-          "description": "deny-set-cursor-icon -> Denies the set_cursor_icon command without any pre-configured scope.",
-          "type": "string",
-          "enum": [
-            "deny-set-cursor-icon"
-          ]
-        },
-        {
-          "description": "allow-set-cursor-position -> Enables the set_cursor_position command without any pre-configured scope.",
-          "type": "string",
-          "enum": [
-            "allow-set-cursor-position"
-          ]
-        },
-        {
-          "description": "deny-set-cursor-position -> Denies the set_cursor_position command without any pre-configured scope.",
-          "type": "string",
-          "enum": [
-            "deny-set-cursor-position"
-          ]
-        },
-        {
-          "description": "allow-set-cursor-visible -> Enables the set_cursor_visible command without any pre-configured scope.",
-          "type": "string",
-          "enum": [
-            "allow-set-cursor-visible"
-          ]
-        },
-        {
-          "description": "deny-set-cursor-visible -> Denies the set_cursor_visible command without any pre-configured scope.",
-          "type": "string",
-          "enum": [
-            "deny-set-cursor-visible"
-          ]
-        },
-        {
-          "description": "allow-set-decorations -> Enables the set_decorations command without any pre-configured scope.",
-          "type": "string",
-          "enum": [
-            "allow-set-decorations"
-          ]
-        },
-        {
-          "description": "deny-set-decorations -> Denies the set_decorations command without any pre-configured scope.",
-          "type": "string",
-          "enum": [
-            "deny-set-decorations"
-          ]
-        },
-        {
-          "description": "allow-set-effects -> Enables the set_effects command without any pre-configured scope.",
-          "type": "string",
-          "enum": [
-            "allow-set-effects"
-          ]
-        },
-        {
-          "description": "deny-set-effects -> Denies the set_effects command without any pre-configured scope.",
-          "type": "string",
-          "enum": [
-            "deny-set-effects"
-          ]
-        },
-        {
-          "description": "allow-set-focus -> Enables the set_focus command without any pre-configured scope.",
-          "type": "string",
-          "enum": [
-            "allow-set-focus"
-          ]
-        },
-        {
-          "description": "deny-set-focus -> Denies the set_focus command without any pre-configured scope.",
-          "type": "string",
-          "enum": [
-            "deny-set-focus"
-          ]
-        },
-        {
-          "description": "allow-set-fullscreen -> Enables the set_fullscreen command without any pre-configured scope.",
-          "type": "string",
-          "enum": [
-            "allow-set-fullscreen"
-          ]
-        },
-        {
-          "description": "deny-set-fullscreen -> Denies the set_fullscreen command without any pre-configured scope.",
-          "type": "string",
-          "enum": [
-            "deny-set-fullscreen"
-          ]
-        },
-        {
-          "description": "allow-set-icon -> Enables the set_icon command without any pre-configured scope.",
-          "type": "string",
-          "enum": [
-            "allow-set-icon"
-          ]
-        },
-        {
-          "description": "deny-set-icon -> Denies the set_icon command without any pre-configured scope.",
-          "type": "string",
-          "enum": [
-            "deny-set-icon"
-          ]
-        },
-        {
-          "description": "allow-set-ignore-cursor-events -> Enables the set_ignore_cursor_events command without any pre-configured scope.",
-          "type": "string",
-          "enum": [
-            "allow-set-ignore-cursor-events"
-          ]
-        },
-        {
-          "description": "deny-set-ignore-cursor-events -> Denies the set_ignore_cursor_events command without any pre-configured scope.",
-          "type": "string",
-          "enum": [
-            "deny-set-ignore-cursor-events"
-          ]
-        },
-        {
-          "description": "allow-set-max-size -> Enables the set_max_size command without any pre-configured scope.",
-          "type": "string",
-          "enum": [
-            "allow-set-max-size"
-          ]
-        },
-        {
-          "description": "deny-set-max-size -> Denies the set_max_size command without any pre-configured scope.",
-          "type": "string",
-          "enum": [
-            "deny-set-max-size"
-          ]
-        },
-        {
-          "description": "allow-set-maximizable -> Enables the set_maximizable command without any pre-configured scope.",
-          "type": "string",
-          "enum": [
-            "allow-set-maximizable"
-          ]
-        },
-        {
-          "description": "deny-set-maximizable -> Denies the set_maximizable command without any pre-configured scope.",
-          "type": "string",
-          "enum": [
-            "deny-set-maximizable"
-          ]
-        },
-        {
-          "description": "allow-set-min-size -> Enables the set_min_size command without any pre-configured scope.",
-          "type": "string",
-          "enum": [
-            "allow-set-min-size"
-          ]
-        },
-        {
-          "description": "deny-set-min-size -> Denies the set_min_size command without any pre-configured scope.",
-          "type": "string",
-          "enum": [
-            "deny-set-min-size"
-          ]
-        },
-        {
-          "description": "allow-set-minimizable -> Enables the set_minimizable command without any pre-configured scope.",
-          "type": "string",
-          "enum": [
-            "allow-set-minimizable"
-          ]
-        },
-        {
-          "description": "deny-set-minimizable -> Denies the set_minimizable command without any pre-configured scope.",
-          "type": "string",
-          "enum": [
-            "deny-set-minimizable"
-          ]
-        },
-        {
-          "description": "allow-set-position -> Enables the set_position command without any pre-configured scope.",
-          "type": "string",
-          "enum": [
-            "allow-set-position"
-          ]
-        },
-        {
-          "description": "deny-set-position -> Denies the set_position command without any pre-configured scope.",
-          "type": "string",
-          "enum": [
-            "deny-set-position"
-          ]
-        },
-        {
-          "description": "allow-set-progress-bar -> Enables the set_progress_bar command without any pre-configured scope.",
-          "type": "string",
-          "enum": [
-            "allow-set-progress-bar"
-          ]
-        },
-        {
-          "description": "deny-set-progress-bar -> Denies the set_progress_bar command without any pre-configured scope.",
-          "type": "string",
-          "enum": [
-            "deny-set-progress-bar"
-          ]
-        },
-        {
-          "description": "allow-set-resizable -> Enables the set_resizable command without any pre-configured scope.",
-          "type": "string",
-          "enum": [
-            "allow-set-resizable"
-          ]
-        },
-        {
-          "description": "deny-set-resizable -> Denies the set_resizable command without any pre-configured scope.",
-          "type": "string",
-          "enum": [
-            "deny-set-resizable"
-          ]
-        },
-        {
-          "description": "allow-set-shadow -> Enables the set_shadow command without any pre-configured scope.",
-          "type": "string",
-          "enum": [
-            "allow-set-shadow"
-          ]
-        },
-        {
-          "description": "deny-set-shadow -> Denies the set_shadow command without any pre-configured scope.",
-          "type": "string",
-          "enum": [
-            "deny-set-shadow"
-          ]
-        },
-        {
-          "description": "allow-set-size -> Enables the set_size command without any pre-configured scope.",
-          "type": "string",
-          "enum": [
-            "allow-set-size"
-          ]
-        },
-        {
-          "description": "deny-set-size -> Denies the set_size command without any pre-configured scope.",
-          "type": "string",
-          "enum": [
-            "deny-set-size"
-          ]
-        },
-        {
-          "description": "allow-set-skip-taskbar -> Enables the set_skip_taskbar command without any pre-configured scope.",
-          "type": "string",
-          "enum": [
-            "allow-set-skip-taskbar"
-          ]
-        },
-        {
-          "description": "deny-set-skip-taskbar -> Denies the set_skip_taskbar command without any pre-configured scope.",
-          "type": "string",
-          "enum": [
-            "deny-set-skip-taskbar"
-          ]
-        },
-        {
-          "description": "allow-set-title -> Enables the set_title command without any pre-configured scope.",
-          "type": "string",
-          "enum": [
-            "allow-set-title"
-          ]
-        },
-        {
-          "description": "deny-set-title -> Denies the set_title command without any pre-configured scope.",
-          "type": "string",
-          "enum": [
-            "deny-set-title"
-          ]
-        },
-        {
-          "description": "allow-set-visible-on-all-workspaces -> Enables the set_visible_on_all_workspaces command without any pre-configured scope.",
-          "type": "string",
-          "enum": [
-            "allow-set-visible-on-all-workspaces"
-          ]
-        },
-        {
-          "description": "deny-set-visible-on-all-workspaces -> Denies the set_visible_on_all_workspaces command without any pre-configured scope.",
-          "type": "string",
-          "enum": [
-            "deny-set-visible-on-all-workspaces"
-          ]
-        },
-        {
-          "description": "allow-show -> Enables the show command without any pre-configured scope.",
-          "type": "string",
-          "enum": [
-            "allow-show"
-          ]
-        },
-        {
-          "description": "deny-show -> Denies the show command without any pre-configured scope.",
-          "type": "string",
-          "enum": [
-            "deny-show"
-          ]
-        },
-        {
-          "description": "allow-start-dragging -> Enables the start_dragging command without any pre-configured scope.",
-          "type": "string",
-          "enum": [
-            "allow-start-dragging"
-          ]
-        },
-        {
-          "description": "deny-start-dragging -> Denies the start_dragging command without any pre-configured scope.",
-          "type": "string",
-          "enum": [
-            "deny-start-dragging"
-          ]
-        },
-        {
-          "description": "allow-theme -> Enables the theme command without any pre-configured scope.",
-          "type": "string",
-          "enum": [
-            "allow-theme"
-          ]
-        },
-        {
-          "description": "deny-theme -> Denies the theme command without any pre-configured scope.",
-          "type": "string",
-          "enum": [
-            "deny-theme"
-          ]
-        },
-        {
-          "description": "allow-title -> Enables the title command without any pre-configured scope.",
-          "type": "string",
-          "enum": [
-            "allow-title"
-          ]
-        },
-        {
-          "description": "deny-title -> Denies the title command without any pre-configured scope.",
-          "type": "string",
-          "enum": [
-            "deny-title"
-          ]
-        },
-        {
-          "description": "allow-toggle-maximize -> Enables the toggle_maximize command without any pre-configured scope.",
-          "type": "string",
-          "enum": [
-            "allow-toggle-maximize"
-          ]
-        },
-        {
-          "description": "deny-toggle-maximize -> Denies the toggle_maximize command without any pre-configured scope.",
-          "type": "string",
-          "enum": [
-            "deny-toggle-maximize"
-          ]
-        },
-        {
-          "description": "allow-unmaximize -> Enables the unmaximize command without any pre-configured scope.",
-          "type": "string",
-          "enum": [
-            "allow-unmaximize"
-          ]
-        },
-        {
-          "description": "deny-unmaximize -> Denies the unmaximize command without any pre-configured scope.",
-          "type": "string",
-          "enum": [
-            "deny-unmaximize"
-          ]
-        },
-        {
-          "description": "allow-unminimize -> Enables the unminimize command without any pre-configured scope.",
-          "type": "string",
-          "enum": [
-            "allow-unminimize"
-          ]
-        },
-        {
-          "description": "deny-unminimize -> Denies the unminimize command without any pre-configured scope.",
-          "type": "string",
-          "enum": [
-            "deny-unminimize"
-          ]
-        },
-        {
-          "description": "default -> Default permissions for the plugin.",
-          "type": "string",
-          "enum": [
-            "default"
-          ]
-        }
-      ]
-    }
-  }
-}

+ 14 - 4
examples/api/src-tauri/Cargo.lock

@@ -3131,6 +3131,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
 checksum = "45a28f4c49489add4ce10783f7911893516f15afe45d015608d41faca6bc4d29"
 dependencies = [
  "dyn-clone",
+ "indexmap 1.9.3",
  "schemars_derive",
  "serde",
  "serde_json",
@@ -3598,8 +3599,7 @@ dependencies = [
 [[package]]
 name = "tao"
 version = "0.24.1"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "75d4a64cfac8e487c61d778fe4ab8480f162451e8af7f247aafadcb3b2560852"
+source = "git+https://github.com/tauri-apps/tao?branch=dev#ae4b693dc0a5d4f556bb9e6dcdbbeb1cfbf8f862"
 dependencies = [
  "bitflags 1.3.2",
  "cc",
@@ -3627,7 +3627,7 @@ dependencies = [
  "raw-window-handle 0.5.2",
  "raw-window-handle 0.6.0",
  "scopeguard",
- "tao-macros",
+ "tao-macros 0.1.2 (git+https://github.com/tauri-apps/tao?branch=dev)",
  "unicode-segmentation",
  "url",
  "windows 0.52.0",
@@ -3648,6 +3648,16 @@ dependencies = [
  "syn 1.0.109",
 ]
 
+[[package]]
+name = "tao-macros"
+version = "0.1.2"
+source = "git+https://github.com/tauri-apps/tao?branch=dev#ae4b693dc0a5d4f556bb9e6dcdbbeb1cfbf8f862"
+dependencies = [
+ "proc-macro2",
+ "quote",
+ "syn 1.0.109",
+]
+
 [[package]]
 name = "target-lexicon"
 version = "0.12.13"
@@ -4947,7 +4957,7 @@ dependencies = [
  "serde_json",
  "sha2",
  "soup3",
- "tao-macros",
+ "tao-macros 0.1.2 (registry+https://github.com/rust-lang/crates.io-index)",
  "thiserror",
  "url",
  "webkit2gtk",

+ 0 - 290
examples/api/src-tauri/tauri-plugin-sample/permissions/.schema.json

@@ -1,290 +0,0 @@
-{
-  "$schema": "http://json-schema.org/draft-07/schema#",
-  "title": "PermissionFile",
-  "description": "Permission file that can define a default permission, a set of permissions or a list of inlined permissions.",
-  "type": "object",
-  "properties": {
-    "default": {
-      "description": "The default permission set for the plugin",
-      "anyOf": [
-        {
-          "$ref": "#/definitions/DefaultPermission"
-        },
-        {
-          "type": "null"
-        }
-      ]
-    },
-    "permission": {
-      "description": "A list of inlined permissions",
-      "default": [],
-      "type": "array",
-      "items": {
-        "$ref": "#/definitions/Permission"
-      }
-    },
-    "set": {
-      "description": "A list of permissions sets defined",
-      "default": [],
-      "type": "array",
-      "items": {
-        "$ref": "#/definitions/PermissionSet"
-      }
-    },
-    "test": {
-      "description": "Test something!!",
-      "anyOf": [
-        {
-          "$ref": "#/definitions/PermissionSet"
-        },
-        {
-          "type": "null"
-        }
-      ]
-    }
-  },
-  "definitions": {
-    "Commands": {
-      "description": "Allowed and denied commands inside a permission.\n\nIf two commands clash inside of `allow` and `deny`, it should be denied by default.",
-      "type": "object",
-      "properties": {
-        "allow": {
-          "description": "Allowed command.",
-          "default": [],
-          "type": "array",
-          "items": {
-            "type": "string"
-          }
-        },
-        "deny": {
-          "description": "Denied command, which takes priority.",
-          "default": [],
-          "type": "array",
-          "items": {
-            "type": "string"
-          }
-        }
-      }
-    },
-    "DefaultPermission": {
-      "description": "The default permission set of the plugin.\n\nWorks similarly to a permission with the \"default\" identifier.",
-      "type": "object",
-      "required": [
-        "permissions"
-      ],
-      "properties": {
-        "description": {
-          "description": "Human-readable description of what the permission does.",
-          "type": [
-            "string",
-            "null"
-          ]
-        },
-        "permissions": {
-          "description": "All permissions this set contains.",
-          "type": "array",
-          "items": {
-            "type": "string"
-          }
-        },
-        "version": {
-          "description": "The version of the permission.",
-          "type": [
-            "integer",
-            "null"
-          ],
-          "format": "uint64",
-          "minimum": 1.0
-        }
-      }
-    },
-    "Number": {
-      "description": "A valid ACL number.",
-      "anyOf": [
-        {
-          "description": "Represents an [`i64`].",
-          "type": "integer",
-          "format": "int64"
-        },
-        {
-          "description": "Represents a [`f64`].",
-          "type": "number",
-          "format": "double"
-        }
-      ]
-    },
-    "Permission": {
-      "description": "Descriptions of explicit privileges of commands.\n\nIt can enable commands to be accessible in the frontend of the application.\n\nIf the scope is defined it can be used to fine grain control the access of individual or multiple commands.",
-      "type": "object",
-      "required": [
-        "identifier"
-      ],
-      "properties": {
-        "commands": {
-          "description": "Allowed or denied commands when using this permission.",
-          "default": {
-            "allow": [],
-            "deny": []
-          },
-          "allOf": [
-            {
-              "$ref": "#/definitions/Commands"
-            }
-          ]
-        },
-        "description": {
-          "description": "Human-readable description of what the permission does.",
-          "type": [
-            "string",
-            "null"
-          ]
-        },
-        "identifier": {
-          "description": "A unique identifier for the permission.",
-          "type": "string"
-        },
-        "scope": {
-          "description": "Allowed or denied scoped when using this permission.",
-          "default": {
-            "allow": null,
-            "deny": null
-          },
-          "allOf": [
-            {
-              "$ref": "#/definitions/Scopes"
-            }
-          ]
-        },
-        "version": {
-          "description": "The version of the permission.",
-          "type": [
-            "integer",
-            "null"
-          ],
-          "format": "uint64",
-          "minimum": 1.0
-        }
-      }
-    },
-    "PermissionKind": {
-      "type": "string",
-      "oneOf": [
-        {
-          "description": "allow-ping -> Enables the ping command without any pre-configured scope.",
-          "type": "string",
-          "enum": [
-            "allow-ping"
-          ]
-        },
-        {
-          "description": "deny-ping -> Denies the ping command without any pre-configured scope.",
-          "type": "string",
-          "enum": [
-            "deny-ping"
-          ]
-        },
-        {
-          "description": "global-scope -> Sets a global scope.",
-          "type": "string",
-          "enum": [
-            "global-scope"
-          ]
-        },
-        {
-          "description": "allow-ping-scoped -> Enables the ping command with a test scope.",
-          "type": "string",
-          "enum": [
-            "allow-ping-scoped"
-          ]
-        }
-      ]
-    },
-    "PermissionSet": {
-      "description": "A set of direct permissions grouped together under a new name.",
-      "type": "object",
-      "required": [
-        "description",
-        "identifier",
-        "permissions"
-      ],
-      "properties": {
-        "description": {
-          "description": "Human-readable description of what the permission does.",
-          "type": "string"
-        },
-        "identifier": {
-          "description": "A unique identifier for the permission.",
-          "type": "string"
-        },
-        "permissions": {
-          "description": "All permissions this set contains.",
-          "type": "array",
-          "items": {
-            "$ref": "#/definitions/PermissionKind"
-          }
-        }
-      }
-    },
-    "Scopes": {
-      "description": "A restriction of the command/endpoint functionality.\n\nIt can be of any serde serializable type and is used for allowing or preventing certain actions inside a Tauri command.\n\nThe scope is passed to the command and handled/enforced by the command itself.",
-      "type": "object",
-      "properties": {
-        "allow": {
-          "description": "Data that defines what is allowed by the scope.",
-          "type": [
-            "array",
-            "null"
-          ],
-          "items": {
-            "$ref": "#/definitions/Value"
-          }
-        },
-        "deny": {
-          "description": "Data that defines what is denied by the scope.",
-          "type": [
-            "array",
-            "null"
-          ],
-          "items": {
-            "$ref": "#/definitions/Value"
-          }
-        }
-      }
-    },
-    "Value": {
-      "description": "All supported ACL values.",
-      "anyOf": [
-        {
-          "description": "Represents a [`bool`].",
-          "type": "boolean"
-        },
-        {
-          "description": "Represents a valid ACL [`Number`].",
-          "allOf": [
-            {
-              "$ref": "#/definitions/Number"
-            }
-          ]
-        },
-        {
-          "description": "Represents a [`String`].",
-          "type": "string"
-        },
-        {
-          "description": "Represents a list of other [`Value`]s.",
-          "type": "array",
-          "items": {
-            "$ref": "#/definitions/Value"
-          }
-        },
-        {
-          "description": "Represents a map of [`String`] keys to [`Value`]s.",
-          "type": "object",
-          "additionalProperties": {
-            "$ref": "#/definitions/Value"
-          }
-        }
-      ]
-    }
-  }
-}

+ 119 - 119
examples/api/src-tauri/tauri-plugin-sample/permissions/schemas/schema.json

@@ -15,46 +15,24 @@
         }
       ]
     },
-    "permission": {
-      "description": "A list of inlined permissions",
+    "set": {
+      "description": "A list of permissions sets defined",
       "default": [],
       "type": "array",
       "items": {
-        "$ref": "#/definitions/Permission"
+        "$ref": "#/definitions/PermissionSet"
       }
     },
-    "set": {
-      "description": "A list of permissions sets defined",
+    "permission": {
+      "description": "A list of inlined permissions",
       "default": [],
       "type": "array",
       "items": {
-        "$ref": "#/definitions/PermissionSet"
+        "$ref": "#/definitions/Permission"
       }
     }
   },
   "definitions": {
-    "Commands": {
-      "description": "Allowed and denied commands inside a permission.\n\nIf two commands clash inside of `allow` and `deny`, it should be denied by default.",
-      "type": "object",
-      "properties": {
-        "allow": {
-          "description": "Allowed command.",
-          "default": [],
-          "type": "array",
-          "items": {
-            "type": "string"
-          }
-        },
-        "deny": {
-          "description": "Denied command, which takes priority.",
-          "default": [],
-          "type": "array",
-          "items": {
-            "type": "string"
-          }
-        }
-      }
-    },
     "DefaultPermission": {
       "description": "The default permission set of the plugin.\n\nWorks similarly to a permission with the \"default\" identifier.",
       "type": "object",
@@ -62,6 +40,15 @@
         "permissions"
       ],
       "properties": {
+        "version": {
+          "description": "The version of the permission.",
+          "type": [
+            "integer",
+            "null"
+          ],
+          "format": "uint64",
+          "minimum": 1.0
+        },
         "description": {
           "description": "Human-readable description of what the permission does.",
           "type": [
@@ -75,32 +62,34 @@
           "items": {
             "type": "string"
           }
-        },
-        "version": {
-          "description": "The version of the permission.",
-          "type": [
-            "integer",
-            "null"
-          ],
-          "format": "uint64",
-          "minimum": 1.0
         }
       }
     },
-    "Number": {
-      "description": "A valid ACL number.",
-      "anyOf": [
-        {
-          "description": "Represents an [`i64`].",
-          "type": "integer",
-          "format": "int64"
+    "PermissionSet": {
+      "description": "A set of direct permissions grouped together under a new name.",
+      "type": "object",
+      "required": [
+        "description",
+        "identifier",
+        "permissions"
+      ],
+      "properties": {
+        "identifier": {
+          "description": "A unique identifier for the permission.",
+          "type": "string"
         },
-        {
-          "description": "Represents a [`f64`].",
-          "type": "number",
-          "format": "double"
+        "description": {
+          "description": "Human-readable description of what the permission does.",
+          "type": "string"
+        },
+        "permissions": {
+          "description": "All permissions this set contains.",
+          "type": "array",
+          "items": {
+            "$ref": "#/definitions/PermissionKind"
+          }
         }
-      ]
+      }
     },
     "Permission": {
       "description": "Descriptions of explicit privileges of commands.\n\nIt can enable commands to be accessible in the frontend of the application.\n\nIf the scope is defined it can be used to fine grain control the access of individual or multiple commands.",
@@ -109,6 +98,26 @@
         "identifier"
       ],
       "properties": {
+        "version": {
+          "description": "The version of the permission.",
+          "type": [
+            "integer",
+            "null"
+          ],
+          "format": "uint64",
+          "minimum": 1.0
+        },
+        "identifier": {
+          "description": "A unique identifier for the permission.",
+          "type": "string"
+        },
+        "description": {
+          "description": "Human-readable description of what the permission does.",
+          "type": [
+            "string",
+            "null"
+          ]
+        },
         "commands": {
           "description": "Allowed or denied commands when using this permission.",
           "default": {
@@ -121,17 +130,6 @@
             }
           ]
         },
-        "description": {
-          "description": "Human-readable description of what the permission does.",
-          "type": [
-            "string",
-            "null"
-          ]
-        },
-        "identifier": {
-          "description": "A unique identifier for the permission.",
-          "type": "string"
-        },
         "scope": {
           "description": "Allowed or denied scoped when using this permission.",
           "default": {},
@@ -140,73 +138,27 @@
               "$ref": "#/definitions/Scopes"
             }
           ]
-        },
-        "version": {
-          "description": "The version of the permission.",
-          "type": [
-            "integer",
-            "null"
-          ],
-          "format": "uint64",
-          "minimum": 1.0
         }
       }
     },
-    "PermissionKind": {
-      "type": "string",
-      "oneOf": [
-        {
-          "description": "allow-ping -> Enables the ping command without any pre-configured scope.",
-          "type": "string",
-          "enum": [
-            "allow-ping"
-          ]
-        },
-        {
-          "description": "deny-ping -> Denies the ping command without any pre-configured scope.",
-          "type": "string",
-          "enum": [
-            "deny-ping"
-          ]
-        },
-        {
-          "description": "global-scope -> Sets a global scope.",
-          "type": "string",
-          "enum": [
-            "global-scope"
-          ]
-        },
-        {
-          "description": "allow-ping-scoped -> Enables the ping command with a test scope.",
-          "type": "string",
-          "enum": [
-            "allow-ping-scoped"
-          ]
-        }
-      ]
-    },
-    "PermissionSet": {
-      "description": "A set of direct permissions grouped together under a new name.",
+    "Commands": {
+      "description": "Allowed and denied commands inside a permission.\n\nIf two commands clash inside of `allow` and `deny`, it should be denied by default.",
       "type": "object",
-      "required": [
-        "description",
-        "identifier",
-        "permissions"
-      ],
       "properties": {
-        "description": {
-          "description": "Human-readable description of what the permission does.",
-          "type": "string"
-        },
-        "identifier": {
-          "description": "A unique identifier for the permission.",
-          "type": "string"
+        "allow": {
+          "description": "Allowed command.",
+          "default": [],
+          "type": "array",
+          "items": {
+            "type": "string"
+          }
         },
-        "permissions": {
-          "description": "All permissions this set contains.",
+        "deny": {
+          "description": "Denied command, which takes priority.",
+          "default": [],
           "type": "array",
           "items": {
-            "$ref": "#/definitions/PermissionKind"
+            "type": "string"
           }
         }
       }
@@ -275,6 +227,54 @@
           }
         }
       ]
+    },
+    "Number": {
+      "description": "A valid ACL number.",
+      "anyOf": [
+        {
+          "description": "Represents an [`i64`].",
+          "type": "integer",
+          "format": "int64"
+        },
+        {
+          "description": "Represents a [`f64`].",
+          "type": "number",
+          "format": "double"
+        }
+      ]
+    },
+    "PermissionKind": {
+      "type": "string",
+      "oneOf": [
+        {
+          "description": "allow-ping -> Enables the ping command without any pre-configured scope.",
+          "type": "string",
+          "enum": [
+            "allow-ping"
+          ]
+        },
+        {
+          "description": "deny-ping -> Denies the ping command without any pre-configured scope.",
+          "type": "string",
+          "enum": [
+            "deny-ping"
+          ]
+        },
+        {
+          "description": "global-scope -> Sets a global scope.",
+          "type": "string",
+          "enum": [
+            "global-scope"
+          ]
+        },
+        {
+          "description": "allow-ping-scoped -> Enables the ping command with a test scope.",
+          "type": "string",
+          "enum": [
+            "allow-ping-scoped"
+          ]
+        }
+      ]
     }
   }
 }