export type Role = 'manager' | 'comedian';
export type Locale = 'it' | 'en';

/** Shape of `auth.user` shared by `HandleInertiaRequests` (see App\Support\UserPayload). */
export type User = {
    id: number;
    name: string;
    email: string;
    role: Role;
    timezone: string;
    locale: Locale;
    email_verified_at: string | null;
    avatar?: string | null;
    two_factor_enabled?: boolean;
    created_at: string;
    updated_at: string;
    [key: string]: unknown;
};

export type Auth = {
    user: User;
};

export type NavCounts = {
    notifications: number;
    messages: number;
};

export type Flash = {
    success?: string | null;
    error?: string | null;
    info?: string | null;
    status?: string | null;
};

export type Passkey = {
    id: number;
    name: string;
    authenticator: string | null;
    created_at_diff: string;
    last_used_at_diff: string | null;
};

export type TwoFactorConfigContent = {
    title: string;
    description: string;
    buttonText: string;
};
