import type { FansMedal } from '@laplace.live/internal' /** * Interaction * * 交互 * * @see BilibiliInternal.WebSocket.Prod.INTERACT_WORD for the original data * @see BilibiliInternal.WebSocket.Prod.INTERACT_WORD_V2 for the new protobuf version * @see BilibiliInternal.WebSocket.OpenPlatform.LIVE_OPEN_PLATFORM_LIVE_ROOM_ENTER for the Open Platform version */ export interface Interaction { type: 'interaction' id: string origin: number originIdx: number uid: number username: string /** * 交互行为 * * 1: 进场 * 2: 关注 * 3: 分享 * 4: 特别关注 * 5: 互相关注 */ action: number /** * 舰长状态:该用户在当前直播间的舰长状态 * * 0: 白字 * 1: 总督 * 2: 提督 * 3: 舰长 */ guardType: number avatar: string relation: { type: number icon: string text: string } wealthMedalLevel: number /** 用户当前佩戴的粉丝勋章/粉丝勋章 */ medal: FansMedal /** Raw timestamp in nanoseconds */ timestamp: number /** Normalized timestamp from nanoseconds to milliseconds */ timestampNormalized: number read: boolean }