forked from atums.world/backend
update username regex, normalize usernames, add user info query
This commit is contained in:
parent
774c8e22ce
commit
6fdc82dd49
6 changed files with 127 additions and 7 deletions
16
types/session.d.ts
vendored
16
types/session.d.ts
vendored
|
@ -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[];
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue