mirror of
https://github.com/stoatchat/javascript-client-api.git
synced 2026-07-19 17:13:35 -04:00
24 lines
389 B
TypeScript
24 lines
389 B
TypeScript
import type { Id } from "./_common"
|
|
|
|
export type UserSettings = {
|
|
[key: string]: [ number, string ]
|
|
}
|
|
|
|
export type ChannelCompositeKey = {
|
|
channel: Id,
|
|
user: Id
|
|
}
|
|
|
|
export interface ChannelUnread {
|
|
_id: ChannelCompositeKey,
|
|
|
|
last_id: string,
|
|
mentions?: string[]
|
|
}
|
|
|
|
export interface WebPushSubscription {
|
|
endpoint: String,
|
|
p256dh: String,
|
|
auth: String,
|
|
}
|