export type { SigninCredentials } from '../adapters/types'; /** A signed-in user's profile, as returned by the `auth/user` endpoint. */ export interface AuthUser { /** The unique identifier of the authenticated user. */ id: number; /** The email of the authenticated user. */ email: string; /** The username of the authenticated user. */ username: string; /** The first name of the authenticated user. */ first_name?: string; /** The last name of the authenticated user. */ last_name?: string; /** Indicates whether the user account is active. */ active: boolean; /** The timestamp of the user's last login. */ last_login: string; /** The number of times the user has logged in. */ login_count: number; /** The number of failed login attempts. */ fail_login_count: number; /** The timestamp when the user account was created. */ created_on: string; /** The timestamp when the user account was last changed. */ changed_on: string; /** The full name of the authenticated user. */ full_name: string; /** Indicates whether the user account is active. */ is_active: boolean; /** Indicates whether the user's email is verified. */ is_verified: boolean; /** Indicates whether the user has superuser privileges. */ is_superuser: boolean; /** Indicates whether the user is anonymous. */ is_anonymous: boolean; /** An array of permissions assigned to the user. */ permissions: string[]; /** An array of roles assigned to the user. */ roles: string[]; }