flaschengeist-frontend/src/flaschengeist.d.ts

21 lines
350 B
TypeScript

interface Session {
expires: Date;
token: string;
lifetime: number;
browser: string;
platform: string;
}
interface User {
userid: string;
display_name: string;
firstname: string;
lastname: string;
mail: string;
roles: Array<Role>;
}
type Permission = string;
interface Role {
name: string;
permissions: Array<Permission>;
}