export interface Role { id: number name: string slug: string description: string | null is_default: boolean app_slugs: string[] capabilities: string[] // ":" strings granted to this role } // One capability an app exposes, as returned by /admin/capabilities. export interface Capability { app_slug: string slug: string name: string description: string | null sort_order: number } export interface App { slug: string name: string description: string base_path: string icon: string theme_color: string category: string | null } export interface User { id: number email: string name: string is_admin: boolean offsite_allowed: boolean apps: App[] }