UNPKG

soop-chat-client

Version:
82 lines (81 loc) 1.8 kB
export declare enum ConnectedState { STANDBY = 0, CONNECTED = 1, JOINED = 2 } export type ConnectionInfo = { channelId: string; host: string; port: number; password: string; }; export type ChannelEmoteInfo = { title: string; tier: 1 | 2 | 3; pcImg: string; pcAltImg: string; mobileImg: string; mobileAltImg: string; isAnimated: boolean; orderNo: string; blackKeyword: boolean; }; export type SoopChatMessage = { content: SoopChatMessageContent[]; channelId: string; userId: string; normalColor: string; language: string; userType: string; nickname: string; subscription: number; isStreamer: boolean; isFan: boolean; isTopfan: boolean; isManager: boolean; isFemale: boolean; color: string; colorDarkmode: string; userflag1: number; userflag2: number; stickerUrl: string; }; export type SoopChatMessageContent = SoopChatMessageContentText | SoopChatMessageContentEmote; export type SoopChatMessageContentText = { type: SoopChatMessageContentType.TEXT; body: string; }; export type SoopChatMessageContentEmote = { type: SoopChatMessageContentType.EMOTE; body: ChannelEmoteInfo; }; export declare enum SoopChatMessageContentType { TEXT = 0, EMOTE = 1 } export declare enum SoopBalloonType { NORMAL = 0, AD = 1, VOD = 2 } export type SoopBalloon = { type: SoopBalloonType; userId: string; nickname: string; count: number; fanClubOrder: number; isStation: boolean; imageName: string; ttsType: string; }; export declare enum SoopBlockType { TIMEOUT = 0, KICK = 1 } export type SoopBlock = { type: SoopBlockType; duration: number; userId: string; nickname: string; by: string; };