floating-live 0.16.3 → 0.16.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/live/message.d.ts
CHANGED
|
@@ -82,7 +82,7 @@ export declare namespace LiveMessage {
|
|
|
82
82
|
type: "superchat";
|
|
83
83
|
info: {
|
|
84
84
|
/** 留言id */
|
|
85
|
-
id: string;
|
|
85
|
+
id: string | number;
|
|
86
86
|
/** 用户信息 */
|
|
87
87
|
user: UserInfo;
|
|
88
88
|
/** 文本内容 */
|
|
@@ -145,24 +145,36 @@ export declare namespace LiveMessage {
|
|
|
145
145
|
interface Lottery extends Base {
|
|
146
146
|
type: "lottery";
|
|
147
147
|
info: {
|
|
148
|
-
|
|
149
|
-
|
|
148
|
+
title: string;
|
|
149
|
+
role: "user" | "anchor";
|
|
150
|
+
user?: UserInfo;
|
|
151
|
+
gift?: GiftInfo;
|
|
152
|
+
id: string | number;
|
|
153
|
+
award?: GiftInfo | GiftInfo[];
|
|
154
|
+
value?: number;
|
|
155
|
+
valueType?: string | number;
|
|
156
|
+
price?: number;
|
|
157
|
+
currency?: string;
|
|
150
158
|
};
|
|
151
159
|
}
|
|
152
160
|
/** 主播抽奖结果 */
|
|
153
161
|
interface LotteryResult extends Base {
|
|
154
162
|
type: "lottery_result";
|
|
155
163
|
info: {
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
164
|
+
title: string;
|
|
165
|
+
role: "user" | "anchor";
|
|
166
|
+
id: string | number;
|
|
167
|
+
result: {
|
|
168
|
+
user: UserInfo;
|
|
169
|
+
award: GiftInfo | GiftInfo[];
|
|
170
|
+
}[];
|
|
159
171
|
};
|
|
160
172
|
}
|
|
161
173
|
/** 发送红包 */
|
|
162
174
|
interface Redpacket extends Base {
|
|
163
175
|
type: "redpacket";
|
|
164
176
|
info: {
|
|
165
|
-
id: number;
|
|
177
|
+
id: string | number;
|
|
166
178
|
gifts?: GiftInfo[];
|
|
167
179
|
value?: number;
|
|
168
180
|
currency?: string | number;
|
|
@@ -172,7 +184,7 @@ export declare namespace LiveMessage {
|
|
|
172
184
|
interface RedpacketResult extends Base {
|
|
173
185
|
type: "redpacket_result";
|
|
174
186
|
info: {
|
|
175
|
-
id: number;
|
|
187
|
+
id: string | number;
|
|
176
188
|
result: {
|
|
177
189
|
user: UserInfo;
|
|
178
190
|
gift?: GiftInfo;
|
|
@@ -181,5 +193,5 @@ export declare namespace LiveMessage {
|
|
|
181
193
|
}[];
|
|
182
194
|
};
|
|
183
195
|
}
|
|
184
|
-
type All = Comment | Gift | Interact | Membership | Superchat | Block | LiveStart | LiveEnd | LiveCut | LiveDetail | LiveStats | Lottery | LotteryResult
|
|
196
|
+
type All = Comment | Gift | Interact | Membership | Superchat | Block | LiveStart | LiveEnd | LiveCut | LiveDetail | LiveStats | Lottery | LotteryResult;
|
|
185
197
|
}
|
|
@@ -52,18 +52,16 @@ export interface GiftInfo {
|
|
|
52
52
|
value?: number;
|
|
53
53
|
/** 价值类型 */
|
|
54
54
|
valueType?: string | number;
|
|
55
|
-
/** 礼物显示价格(总价,按平台货币计算) */
|
|
56
|
-
price?: number;
|
|
57
55
|
/** 平台货币名称 */
|
|
58
|
-
|
|
56
|
+
valueName?: string;
|
|
59
57
|
/** 礼物连击数 */
|
|
60
|
-
combo?:
|
|
58
|
+
combo?: number;
|
|
61
59
|
/** 礼物连击id */
|
|
62
60
|
comboId?: string;
|
|
63
61
|
/** 礼物金额(总价,按消费现金计算) */
|
|
64
|
-
|
|
62
|
+
price?: number;
|
|
65
63
|
/** 礼物金额货币 */
|
|
66
|
-
|
|
64
|
+
currency?: string;
|
|
67
65
|
/** 行为 */
|
|
68
66
|
action?: string;
|
|
69
67
|
/** 随机礼物信息 */
|
package/dist/live/platform.d.ts
CHANGED
|
@@ -27,14 +27,10 @@ export interface LivePlatformInfo {
|
|
|
27
27
|
/** 统计信息 */
|
|
28
28
|
stats?: Record<string, string>;
|
|
29
29
|
/** 货币信息 */
|
|
30
|
-
|
|
30
|
+
valueType?: {
|
|
31
31
|
[key: string | number]: {
|
|
32
32
|
/** 货币名称 */
|
|
33
33
|
name: string;
|
|
34
|
-
/** 1货币面值等值value (1面值/1数值) */
|
|
35
|
-
ratio: number;
|
|
36
|
-
/** 1单位消费金额等值value (1.00CNY/1数值) (若为0则为免费货币) */
|
|
37
|
-
money?: number;
|
|
38
34
|
};
|
|
39
35
|
};
|
|
40
36
|
}
|