@pubby/sdk
Version:
Pubby Development Kit
19 lines (18 loc) • 548 B
TypeScript
import { Playlist } from "./playlist";
import { GlobalRole } from "./global-role";
export declare const UserStatus: readonly ["online", "offline"];
export declare type UserStatus = typeof UserStatus extends ReadonlyArray<infer T> ? T : never;
export interface User {
id: string;
name: string;
email: string;
birthday: Date;
username: string;
avatar?: string;
activePlaylist?: Playlist;
status: UserStatus;
globalRole: GlobalRole;
country: string;
locale: string;
createdAt: Date;
}