import type { OnlineRankV3 } from './protobuf' /** * Leaderboard of the online viewers * * 高能用户列表 * * @see BilibiliInternal.WebSocket.Prod.ONLINE_RANK_V2 for the original version * @see BilibiliInternal.WebSocket.Prod.ONLINE_RANK_V3 for the original version */ export interface OnlineRankUpdate { type: 'online-rank-update' id: string origin: number originIdx: number uid: number username: string timestamp: number timestampNormalized: number /** * 这个字段从 b 站的 ws 中并不会返回。增加此字段是用于让 DashboardUserMetaInfo 组件 * 在传入 event 时可以显示头像,因此特殊处理 */ avatar?: string message: string // list: BilibiliInternal.WebSocket.Prod.ONLINE_RANK_V2['data']['online_list'] list: OnlineRankV3['online_list'] read: boolean }