/** Models exported from backend */ declare namespace FG { interface UserSettings { display_name: string; } interface Notification { id: number; plugin: string; text: string; data?: any; time: Date; } interface User { userid: string; deleted: boolean; display_name: string; firstname: string; lastname: string; mail: string; birthday?: Date; roles: Array; permissions?: Array; } interface Session { expires: Date; token: string; lifetime: number; browser: string; platform: string; userid: string; } type Permission = string; interface Role { id: number; name: string; permissions: Array; } interface ApiKey { id: number; name: string; token?: string; description?: string; } }