owltide/shared/types/account.d.ts

22 lines
383 B
TypeScript
Raw Normal View History

export interface Account {
id: number,
type: "anonymous" | "regular" | "crew" | "admin",
/** Name of the account. Not present on anonymous accounts */
name?: string,
}
export interface Subscription {
type: "push",
push: PushSubscriptionJSON,
}
export interface Session {
id: number,
accountId: number,
}
export interface AccountSession {
id: number,
account: Account,
}