export interface Permission { /** The permission action's identifier, for example `company:basic:read`. */ action: string; /** Whether an API key can be granted the permission. */ allowed_on_api_key: boolean; /** Whether an app can request and be granted the permission. */ allowed_on_app: boolean; /** Whether the permission can be granted to user tokens. */ allowed_on_user: boolean; /** The category the action is grouped under, or `null` when uncategorized. */ category: string | null; /** What granting the action allows. */ description: string; granted_to_system_roles: Permission.GrantedToSystemRoles.Item[]; /** Human-readable name of the action. */ name: string; } export declare namespace Permission { type GrantedToSystemRoles = GrantedToSystemRoles.Item[]; namespace GrantedToSystemRoles { /** System roles that include the permission. */ const Item: { readonly Owner: "owner"; readonly Admin: "admin"; readonly Moderator: "moderator"; readonly SalesManager: "sales_manager"; readonly Advertiser: "advertiser"; readonly Partner: "partner"; }; type Item = (typeof Item)[keyof typeof Item]; } }