2025-03-07 12:41:57 +01:00
|
|
|
export interface Account {
|
|
|
|
id: number,
|
|
|
|
type: "anonymous" | "regular" | "crew" | "admin",
|
|
|
|
/** Name of the account. Not present on anonymous accounts */
|
|
|
|
name?: string,
|
2025-03-07 20:15:41 +01:00
|
|
|
interestedIds?: string[],
|
2025-03-07 12:41:57 +01:00
|
|
|
}
|
|
|
|
|
2025-03-07 12:30:39 +01:00
|
|
|
export interface Subscription {
|
|
|
|
type: "push",
|
2025-03-07 14:11:07 +01:00
|
|
|
sessionId: number,
|
2025-03-07 12:30:39 +01:00
|
|
|
push: PushSubscriptionJSON,
|
|
|
|
}
|
2025-03-07 12:41:57 +01:00
|
|
|
|
|
|
|
export interface Session {
|
|
|
|
id: number,
|
|
|
|
accountId: number,
|
|
|
|
}
|
|
|
|
|
|
|
|
export interface AccountSession {
|
|
|
|
id: number,
|
|
|
|
account: Account,
|
2025-03-07 14:11:07 +01:00
|
|
|
push: boolean,
|
2025-03-07 12:41:57 +01:00
|
|
|
}
|