1export interface User {
2 id: string;
3 username: string;
4 kind?: "guest";
5 guestProvider?: "github" | "astheno";
6 email: string | null;
7 firstName: string | null;
8 lastName: string | null;
9 enabled: boolean;
10 emailVerified: boolean;
11 createdTimestamp: number;
12 requiredActions: string[];
13 groups: Group[];
14 attributes?: Record<string, string[]>;
15}
16
17export interface Group {
18 id: string;
19 name: string;
20}
21
22export interface Credential {
23 id: string;
24 type: "password" | "webauthn-passwordless" | "webauthn" | "otp";
25 userLabel: string | null;
26 createdDate: number;
27}
28
29export interface Session {
30 id: string;
31 ipAddress: string;
32 start: number;
33 lastAccess: number;
34 clients: Record<string, string>;
35}