update username regex, normalize usernames, add user info query

This commit is contained in:
creations 2025-03-06 08:30:18 -05:00
parent 774c8e22ce
commit 6fdc82dd49
Signed by: creations
GPG key ID: 8F553AA4320FC711
6 changed files with 127 additions and 7 deletions

16
types/session.d.ts vendored
View file

@ -37,3 +37,19 @@ type Invite = {
max_uses: number;
role: string;
};
type GetUser = {
id?: UUID;
authorization_token?: UUID;
username?: string;
email?: string;
email_verified?: boolean;
password?: string;
avatar?: boolean;
roles?: string[];
timezone?: string;
invited_by?: UUID;
created_at?: Date;
last_seen?: Date;
invites?: Invite[];
};