Skip to content

armgit / macro

Public Imported from GitHub
0

Macro is a unified workspace for teams: email, chat, docs, tasks, agents, calls, and CRM — @-linked together with shared AI memory.

22.1 KB
Raw Blame
{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "title": "PermissionFile",
  "description": "Permission file that can define a default permission, a set of permissions or a list of inlined permissions.",
  "type": "object",
  "properties": {
    "default": {
      "description": "The default permission set for the plugin",
      "anyOf": [
        {
          "$ref": "#/definitions/DefaultPermission"
        },
        {
          "type": "null"
        }
      ]
    },
    "set": {
      "description": "A list of permissions sets defined",
      "type": "array",
      "items": {
        "$ref": "#/definitions/PermissionSet"
      }
    },
    "permission": {
      "description": "A list of inlined permissions",
      "default": [],
      "type": "array",
      "items": {
        "$ref": "#/definitions/Permission"
      }
    }
  },
  "definitions": {
    "DefaultPermission": {
      "description": "The default permission set of the plugin.\n\nWorks similarly to a permission with the \"default\" identifier.",
      "type": "object",
      "required": [
        "permissions"
      ],
      "properties": {
        "version": {
          "description": "The version of the permission.",
          "type": [
            "integer",
            "null"
          ],
          "format": "uint64",
          "minimum": 1.0
        },
        "description": {
          "description": "Human-readable description of what the permission does. Tauri convention is to use `<h4>` headings in markdown content for Tauri documentation generation purposes.",
          "type": [
            "string",
            "null"
          ]
        },
        "permissions": {
          "description": "All permissions this set contains.",
          "type": "array",
          "items": {
            "type": "string"
          }
        }
      }
    },
    "PermissionSet": {
      "description": "A set of direct permissions grouped together under a new name.",
      "type": "object",
      "required": [
        "description",
        "identifier",
        "permissions"
      ],
      "properties": {
        "identifier": {
          "description": "A unique identifier for the permission.",
          "type": "string"
        },
        "description": {
          "description": "Human-readable description of what the permission does.",
          "type": "string"
        },
        "permissions": {
          "description": "All permissions this set contains.",
          "type": "array",
          "items": {
            "$ref": "#/definitions/PermissionKind"
          }
        }
      }
    },
    "Permission": {
      "description": "Descriptions of explicit privileges of commands.\n\nIt can enable commands to be accessible in the frontend of the application.\n\nIf the scope is defined it can be used to fine grain control the access of individual or multiple commands.",
      "type": "object",
      "required": [
        "identifier"
      ],
      "properties": {
        "version": {
          "description": "The version of the permission.",
          "type": [
            "integer",
            "null"
          ],
          "format": "uint64",
          "minimum": 1.0
        },
        "identifier": {
          "description": "A unique identifier for the permission.",
          "type": "string"
        },
        "description": {
          "description": "Human-readable description of what the permission does. Tauri internal convention is to use `<h4>` headings in markdown content for Tauri documentation generation purposes.",
          "type": [
            "string",
            "null"
          ]
        },
        "commands": {
          "description": "Allowed or denied commands when using this permission.",
          "default": {
            "allow": [],
            "deny": []
          },
          "allOf": [
            {
              "$ref": "#/definitions/Commands"
            }
          ]
        },
        "scope": {
          "description": "Allowed or denied scoped when using this permission.",
          "allOf": [
            {
              "$ref": "#/definitions/Scopes"
            }
          ]
        },
        "platforms": {
          "description": "Target platforms this permission applies. By default all platforms are affected by this permission.",
          "type": [
            "array",
            "null"
          ],
          "items": {
            "$ref": "#/definitions/Target"
          }
        }
      }
    },
    "Commands": {
      "description": "Allowed and denied commands inside a permission.\n\nIf two commands clash inside of `allow` and `deny`, it should be denied by default.",
      "type": "object",
      "properties": {
        "allow": {
          "description": "Allowed command.",
          "default": [],
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "deny": {
          "description": "Denied command, which takes priority.",
          "default": [],
          "type": "array",
          "items": {
            "type": "string"
          }
        }
      }
    },
    "Scopes": {
      "description": "An argument for fine grained behavior control of Tauri commands.\n\nIt can be of any serde serializable type and is used to allow or prevent certain actions inside a Tauri command. The configured scope is passed to the command and will be enforced by the command implementation.\n\n## Example\n\n```json { \"allow\": [{ \"path\": \"$HOME/**\" }], \"deny\": [{ \"path\": \"$HOME/secret.txt\" }] } ```",
      "type": "object",
      "properties": {
        "allow": {
          "description": "Data that defines what is allowed by the scope.",
          "type": [
            "array",
            "null"
          ],
          "items": {
            "$ref": "#/definitions/Value"
          }
        },
        "deny": {
          "description": "Data that defines what is denied by the scope. This should be prioritized by validation logic.",
          "type": [
            "array",
            "null"
          ],
          "items": {
            "$ref": "#/definitions/Value"
          }
        }
      }
    },
    "Value": {
      "description": "All supported ACL values.",
      "anyOf": [
        {
          "description": "Represents a null JSON value.",
          "type": "null"
        },
        {
          "description": "Represents a [`bool`].",
          "type": "boolean"
        },
        {
          "description": "Represents a valid ACL [`Number`].",
          "allOf": [
            {
              "$ref": "#/definitions/Number"
            }
          ]
        },
        {
          "description": "Represents a [`String`].",
          "type": "string"
        },
        {
          "description": "Represents a list of other [`Value`]s.",
          "type": "array",
          "items": {
            "$ref": "#/definitions/Value"
          }
        },
        {
          "description": "Represents a map of [`String`] keys to [`Value`]s.",
          "type": "object",
          "additionalProperties": {
            "$ref": "#/definitions/Value"
          }
        }
      ]
    },
    "Number": {
      "description": "A valid ACL number.",
      "anyOf": [
        {
          "description": "Represents an [`i64`].",
          "type": "integer",
          "format": "int64"
        },
        {
          "description": "Represents a [`f64`].",
          "type": "number",
          "format": "double"
        }
      ]
    },
    "Target": {
      "description": "Platform target.",
      "oneOf": [
        {
          "description": "MacOS.",
          "type": "string",
          "enum": [
            "macOS"
          ]
        },
        {
          "description": "Windows.",
          "type": "string",
          "enum": [
            "windows"
          ]
        },
        {
          "description": "Linux.",
          "type": "string",
          "enum": [
            "linux"
          ]
        },
        {
          "description": "Android.",
          "type": "string",
          "enum": [
            "android"
          ]
        },
        {
          "description": "iOS.",
          "type": "string",
          "enum": [
            "iOS"
          ]
        }
      ]
    },
    "PermissionKind": {
      "type": "string",
      "oneOf": [
        {
          "description": "Enables the abort_join command without any pre-configured scope.",
          "type": "string",
          "const": "allow-abort-join",
          "markdownDescription": "Enables the abort_join command without any pre-configured scope."
        },
        {
          "description": "Denies the abort_join command without any pre-configured scope.",
          "type": "string",
          "const": "deny-abort-join",
          "markdownDescription": "Denies the abort_join command without any pre-configured scope."
        },
        {
          "description": "Enables the can_use_full_screen_intent command without any pre-configured scope.",
          "type": "string",
          "const": "allow-can-use-full-screen-intent",
          "markdownDescription": "Enables the can_use_full_screen_intent command without any pre-configured scope."
        },
        {
          "description": "Denies the can_use_full_screen_intent command without any pre-configured scope.",
          "type": "string",
          "const": "deny-can-use-full-screen-intent",
          "markdownDescription": "Denies the can_use_full_screen_intent command without any pre-configured scope."
        },
        {
          "description": "Enables the configure_tracing command without any pre-configured scope.",
          "type": "string",
          "const": "allow-configure-tracing",
          "markdownDescription": "Enables the configure_tracing command without any pre-configured scope."
        },
        {
          "description": "Denies the configure_tracing command without any pre-configured scope.",
          "type": "string",
          "const": "deny-configure-tracing",
          "markdownDescription": "Denies the configure_tracing command without any pre-configured scope."
        },
        {
          "description": "Enables the end_active_call command without any pre-configured scope.",
          "type": "string",
          "const": "allow-end-active-call",
          "markdownDescription": "Enables the end_active_call command without any pre-configured scope."
        },
        {
          "description": "Denies the end_active_call command without any pre-configured scope.",
          "type": "string",
          "const": "deny-end-active-call",
          "markdownDescription": "Denies the end_active_call command without any pre-configured scope."
        },
        {
          "description": "Enables the get_active_call_state command without any pre-configured scope.",
          "type": "string",
          "const": "allow-get-active-call-state",
          "markdownDescription": "Enables the get_active_call_state command without any pre-configured scope."
        },
        {
          "description": "Denies the get_active_call_state command without any pre-configured scope.",
          "type": "string",
          "const": "deny-get-active-call-state",
          "markdownDescription": "Denies the get_active_call_state command without any pre-configured scope."
        },
        {
          "description": "Enables the get_pending_answered_call command without any pre-configured scope.",
          "type": "string",
          "const": "allow-get-pending-answered-call",
          "markdownDescription": "Enables the get_pending_answered_call command without any pre-configured scope."
        },
        {
          "description": "Denies the get_pending_answered_call command without any pre-configured scope.",
          "type": "string",
          "const": "deny-get-pending-answered-call",
          "markdownDescription": "Denies the get_pending_answered_call command without any pre-configured scope."
        },
        {
          "description": "Enables the get_voip_token command without any pre-configured scope.",
          "type": "string",
          "const": "allow-get-voip-token",
          "markdownDescription": "Enables the get_voip_token command without any pre-configured scope."
        },
        {
          "description": "Denies the get_voip_token command without any pre-configured scope.",
          "type": "string",
          "const": "deny-get-voip-token",
          "markdownDescription": "Denies the get_voip_token command without any pre-configured scope."
        },
        {
          "description": "Enables the open_full_screen_intent_settings command without any pre-configured scope.",
          "type": "string",
          "const": "allow-open-full-screen-intent-settings",
          "markdownDescription": "Enables the open_full_screen_intent_settings command without any pre-configured scope."
        },
        {
          "description": "Denies the open_full_screen_intent_settings command without any pre-configured scope.",
          "type": "string",
          "const": "deny-open-full-screen-intent-settings",
          "markdownDescription": "Denies the open_full_screen_intent_settings command without any pre-configured scope."
        },
        {
          "description": "Enables the prepare_join command without any pre-configured scope.",
          "type": "string",
          "const": "allow-prepare-join",
          "markdownDescription": "Enables the prepare_join command without any pre-configured scope."
        },
        {
          "description": "Denies the prepare_join command without any pre-configured scope.",
          "type": "string",
          "const": "deny-prepare-join",
          "markdownDescription": "Denies the prepare_join command without any pre-configured scope."
        },
        {
          "description": "Enables the register_listener command without any pre-configured scope.",
          "type": "string",
          "const": "allow-register-listener",
          "markdownDescription": "Enables the register_listener command without any pre-configured scope."
        },
        {
          "description": "Denies the register_listener command without any pre-configured scope.",
          "type": "string",
          "const": "deny-register-listener",
          "markdownDescription": "Denies the register_listener command without any pre-configured scope."
        },
        {
          "description": "Enables the remove_listener command without any pre-configured scope.",
          "type": "string",
          "const": "allow-remove-listener",
          "markdownDescription": "Enables the remove_listener command without any pre-configured scope."
        },
        {
          "description": "Denies the remove_listener command without any pre-configured scope.",
          "type": "string",
          "const": "deny-remove-listener",
          "markdownDescription": "Denies the remove_listener command without any pre-configured scope."
        },
        {
          "description": "Enables the set_call_drawer_channel_title command without any pre-configured scope.",
          "type": "string",
          "const": "allow-set-call-drawer-channel-title",
          "markdownDescription": "Enables the set_call_drawer_channel_title command without any pre-configured scope."
        },
        {
          "description": "Denies the set_call_drawer_channel_title command without any pre-configured scope.",
          "type": "string",
          "const": "deny-set-call-drawer-channel-title",
          "markdownDescription": "Denies the set_call_drawer_channel_title command without any pre-configured scope."
        },
        {
          "description": "Enables the set_call_drawer_theme command without any pre-configured scope.",
          "type": "string",
          "const": "allow-set-call-drawer-theme",
          "markdownDescription": "Enables the set_call_drawer_theme command without any pre-configured scope."
        },
        {
          "description": "Denies the set_call_drawer_theme command without any pre-configured scope.",
          "type": "string",
          "const": "deny-set-call-drawer-theme",
          "markdownDescription": "Denies the set_call_drawer_theme command without any pre-configured scope."
        },
        {
          "description": "Enables the set_participant_display_name command without any pre-configured scope.",
          "type": "string",
          "const": "allow-set-participant-display-name",
          "markdownDescription": "Enables the set_participant_display_name command without any pre-configured scope."
        },
        {
          "description": "Denies the set_participant_display_name command without any pre-configured scope.",
          "type": "string",
          "const": "deny-set-participant-display-name",
          "markdownDescription": "Denies the set_participant_display_name command without any pre-configured scope."
        },
        {
          "description": "Enables the set_video_enabled command without any pre-configured scope.",
          "type": "string",
          "const": "allow-set-video-enabled",
          "markdownDescription": "Enables the set_video_enabled command without any pre-configured scope."
        },
        {
          "description": "Denies the set_video_enabled command without any pre-configured scope.",
          "type": "string",
          "const": "deny-set-video-enabled",
          "markdownDescription": "Denies the set_video_enabled command without any pre-configured scope."
        },
        {
          "description": "Enables the set_video_overlay_mode command without any pre-configured scope.",
          "type": "string",
          "const": "allow-set-video-overlay-mode",
          "markdownDescription": "Enables the set_video_overlay_mode command without any pre-configured scope."
        },
        {
          "description": "Denies the set_video_overlay_mode command without any pre-configured scope.",
          "type": "string",
          "const": "deny-set-video-overlay-mode",
          "markdownDescription": "Denies the set_video_overlay_mode command without any pre-configured scope."
        },
        {
          "description": "Enables the start_outgoing_call command without any pre-configured scope.",
          "type": "string",
          "const": "allow-start-outgoing-call",
          "markdownDescription": "Enables the start_outgoing_call command without any pre-configured scope."
        },
        {
          "description": "Denies the start_outgoing_call command without any pre-configured scope.",
          "type": "string",
          "const": "deny-start-outgoing-call",
          "markdownDescription": "Denies the start_outgoing_call command without any pre-configured scope."
        },
        {
          "description": "Enables the switch_camera command without any pre-configured scope.",
          "type": "string",
          "const": "allow-switch-camera",
          "markdownDescription": "Enables the switch_camera command without any pre-configured scope."
        },
        {
          "description": "Denies the switch_camera command without any pre-configured scope.",
          "type": "string",
          "const": "deny-switch-camera",
          "markdownDescription": "Denies the switch_camera command without any pre-configured scope."
        },
        {
          "description": "Enables the watch_call_answered command without any pre-configured scope.",
          "type": "string",
          "const": "allow-watch-call-answered",
          "markdownDescription": "Enables the watch_call_answered command without any pre-configured scope."
        },
        {
          "description": "Denies the watch_call_answered command without any pre-configured scope.",
          "type": "string",
          "const": "deny-watch-call-answered",
          "markdownDescription": "Denies the watch_call_answered command without any pre-configured scope."
        },
        {
          "description": "Enables the watch_call_ended command without any pre-configured scope.",
          "type": "string",
          "const": "allow-watch-call-ended",
          "markdownDescription": "Enables the watch_call_ended command without any pre-configured scope."
        },
        {
          "description": "Denies the watch_call_ended command without any pre-configured scope.",
          "type": "string",
          "const": "deny-watch-call-ended",
          "markdownDescription": "Denies the watch_call_ended command without any pre-configured scope."
        },
        {
          "description": "Enables the watch_connection_state command without any pre-configured scope.",
          "type": "string",
          "const": "allow-watch-connection-state",
          "markdownDescription": "Enables the watch_connection_state command without any pre-configured scope."
        },
        {
          "description": "Denies the watch_connection_state command without any pre-configured scope.",
          "type": "string",
          "const": "deny-watch-connection-state",
          "markdownDescription": "Denies the watch_connection_state command without any pre-configured scope."
        },
        {
          "description": "Enables the watch_drawer_opened command without any pre-configured scope.",
          "type": "string",
          "const": "allow-watch-drawer-opened",
          "markdownDescription": "Enables the watch_drawer_opened command without any pre-configured scope."
        },
        {
          "description": "Denies the watch_drawer_opened command without any pre-configured scope.",
          "type": "string",
          "const": "deny-watch-drawer-opened",
          "markdownDescription": "Denies the watch_drawer_opened command without any pre-configured scope."
        },
        {
          "description": "Enables the watch_participant_identities command without any pre-configured scope.",
          "type": "string",
          "const": "allow-watch-participant-identities",
          "markdownDescription": "Enables the watch_participant_identities command without any pre-configured scope."
        },
        {
          "description": "Denies the watch_participant_identities command without any pre-configured scope.",
          "type": "string",
          "const": "deny-watch-participant-identities",
          "markdownDescription": "Denies the watch_participant_identities command without any pre-configured scope."
        }
      ]
    }
  }
}