tiktok-live-proto 0.1.0
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/README.md +35 -0
- package/dist/node/v1.d.ts +424 -0
- package/dist/node/v1.js +2489 -0
- package/dist/node/v2.d.ts +4706 -0
- package/dist/node/v2.js +23090 -0
- package/dist/web/v1.d.ts +424 -0
- package/dist/web/v1.js +2489 -0
- package/dist/web/v2.d.ts +4706 -0
- package/dist/web/v2.js +23090 -0
- package/package.json +49 -0
package/README.md
ADDED
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
# tiktok-live-proto
|
|
2
|
+
|
|
3
|
+
TypeScript bindings for the TikTok Webcast Protobuf schema.
|
|
4
|
+
|
|
5
|
+
## Install
|
|
6
|
+
|
|
7
|
+
```sh
|
|
8
|
+
npm install tiktok-live-proto
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
## Usage
|
|
12
|
+
|
|
13
|
+
Import the version you need via subpath:
|
|
14
|
+
|
|
15
|
+
```ts
|
|
16
|
+
// v1 schema
|
|
17
|
+
import { WebcastResponse, WebcastChatMessage } from 'tiktok-live-proto/v1';
|
|
18
|
+
|
|
19
|
+
// v2 schema
|
|
20
|
+
import { WebcastResponse } from 'tiktok-live-proto/v2';
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
The correct runtime build (Node vs. browser) is selected automatically by the
|
|
24
|
+
resolver via the `exports` conditions. Types are a single shared `.d.ts` tree,
|
|
25
|
+
so tsserver only indexes what you import.
|
|
26
|
+
|
|
27
|
+
## Layout
|
|
28
|
+
|
|
29
|
+
- `src/v1/**/*.proto`, `src/v2/**/*.proto` (in the repo root) — canonical schemas
|
|
30
|
+
- `targets/typescript/tiktok-live-proto/src/generated/{v1,v2}.ts` — generated
|
|
31
|
+
by `ts-proto`, committed to the repo, regenerated by CI when any `.proto`
|
|
32
|
+
under `src/` changes
|
|
33
|
+
- `dist/{node,web,types}/{v1,v2}.*` — bundled output, produced by `tsdown`,
|
|
34
|
+
not committed
|
|
35
|
+
|
|
@@ -0,0 +1,424 @@
|
|
|
1
|
+
import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
|
|
2
|
+
|
|
3
|
+
//#region src/generated/node/v1/tiktok-schema.d.ts
|
|
4
|
+
declare const protobufPackage = "TikTok";
|
|
5
|
+
declare enum ControlAction {
|
|
6
|
+
CONTROL_ACTION_FALLBACK_UNKNOWN = 0,
|
|
7
|
+
CONTROL_ACTION_STREAM_PAUSED = 1,
|
|
8
|
+
CONTROL_ACTION_STREAM_UNPAUSED = 2,
|
|
9
|
+
CONTROL_ACTION_STREAM_ENDED = 3,
|
|
10
|
+
CONTROL_ACTION_STREAM_SUSPENDED = 4,
|
|
11
|
+
UNRECOGNIZED = -1
|
|
12
|
+
}
|
|
13
|
+
/** Data structure from im/fetch/ response */
|
|
14
|
+
interface WebcastResponse {
|
|
15
|
+
messages: Message[];
|
|
16
|
+
cursor: string;
|
|
17
|
+
fetchInterval: number;
|
|
18
|
+
serverTimestamp: string;
|
|
19
|
+
internalExt: string;
|
|
20
|
+
/** ws (1) or polling (2) */
|
|
21
|
+
fetchType: number;
|
|
22
|
+
wsParams: WebsocketParam[];
|
|
23
|
+
heartbeatDuration: number;
|
|
24
|
+
needAck: boolean;
|
|
25
|
+
wsUrl: string;
|
|
26
|
+
}
|
|
27
|
+
interface Message {
|
|
28
|
+
type: string;
|
|
29
|
+
binary: Buffer;
|
|
30
|
+
}
|
|
31
|
+
interface WebsocketParam {
|
|
32
|
+
name: string;
|
|
33
|
+
value: string;
|
|
34
|
+
}
|
|
35
|
+
/** Message types depending on Message.tyoe */
|
|
36
|
+
interface WebcastControlMessage {
|
|
37
|
+
action: ControlAction;
|
|
38
|
+
}
|
|
39
|
+
/** Statistics like viewer count */
|
|
40
|
+
interface WebcastRoomUserSeqMessage {
|
|
41
|
+
topViewers: TopUser[];
|
|
42
|
+
viewerCount: number;
|
|
43
|
+
}
|
|
44
|
+
interface TopUser {
|
|
45
|
+
coinCount: string;
|
|
46
|
+
user: User | undefined;
|
|
47
|
+
}
|
|
48
|
+
interface ImageModel {
|
|
49
|
+
mUrls: string[];
|
|
50
|
+
mUri: string;
|
|
51
|
+
height: number;
|
|
52
|
+
width: number;
|
|
53
|
+
avgColor: string;
|
|
54
|
+
imageType: number;
|
|
55
|
+
schema: string;
|
|
56
|
+
content: ImageModel_Content | undefined;
|
|
57
|
+
isAnimated: boolean;
|
|
58
|
+
}
|
|
59
|
+
interface ImageModel_Content {
|
|
60
|
+
name: string;
|
|
61
|
+
fontColor: string;
|
|
62
|
+
level: string;
|
|
63
|
+
}
|
|
64
|
+
interface WebcastChatMessage {
|
|
65
|
+
event: WebcastMessageEvent | undefined;
|
|
66
|
+
user: User | undefined;
|
|
67
|
+
comment: string;
|
|
68
|
+
visibleToSender: boolean;
|
|
69
|
+
background: ImageModel | undefined;
|
|
70
|
+
fullScreenTextColor: string;
|
|
71
|
+
backgroundImageV2: ImageModel | undefined;
|
|
72
|
+
giftImage: ImageModel | undefined;
|
|
73
|
+
inputType: number;
|
|
74
|
+
atUser: User | undefined;
|
|
75
|
+
emotes: WebcastSubEmote[];
|
|
76
|
+
contentLanguage: string;
|
|
77
|
+
quickChatScene: number;
|
|
78
|
+
communityflaggedStatus: number;
|
|
79
|
+
commentQualityScores: WebcastChatMessage_CommentQualityScore[];
|
|
80
|
+
userIdentity: WebcastChatMessage_UserIdentity | undefined;
|
|
81
|
+
commentTag: WebcastChatMessage_CommentTag[];
|
|
82
|
+
screenTime: string;
|
|
83
|
+
signature: string;
|
|
84
|
+
signatureVersion: string;
|
|
85
|
+
ecStreamerKey: string;
|
|
86
|
+
}
|
|
87
|
+
declare enum WebcastChatMessage_CommentTag {
|
|
88
|
+
COMMENT_TAG_NORMAL = 0,
|
|
89
|
+
COMMENT_TAG_CANDIDATE = 1,
|
|
90
|
+
COMMENT_TAG_OVERAGE = 2,
|
|
91
|
+
UNRECOGNIZED = -1
|
|
92
|
+
}
|
|
93
|
+
interface WebcastChatMessage_UserIdentity {
|
|
94
|
+
isGiftGiverOfAnchor: boolean;
|
|
95
|
+
isSubscriberOfAnchor: boolean;
|
|
96
|
+
isMutualFollowingWithAnchor: boolean;
|
|
97
|
+
isFollowerOfAnchor: boolean;
|
|
98
|
+
isModeratorOfAnchor: boolean;
|
|
99
|
+
isAnchor: boolean;
|
|
100
|
+
}
|
|
101
|
+
interface WebcastChatMessage_CommentQualityScore {
|
|
102
|
+
version: string;
|
|
103
|
+
score: string;
|
|
104
|
+
}
|
|
105
|
+
interface EmoteUploadInfo {
|
|
106
|
+
userId: string;
|
|
107
|
+
emoteUploadSource?: EmoteUploadInfo_UserEmoteUploadSource | undefined;
|
|
108
|
+
userInfo: User | undefined;
|
|
109
|
+
userIdStr: string;
|
|
110
|
+
}
|
|
111
|
+
declare enum EmoteUploadInfo_UserEmoteUploadSource {
|
|
112
|
+
USER_EMOTE_UPLOAD_SOURCE_EMOTE_UPLOAD_SOURCE_ANCHOR = 0,
|
|
113
|
+
USER_EMOTE_UPLOAD_SOURCE_EMOTE_UPLOAD_SOURCE_SUBSCRIBER = 1,
|
|
114
|
+
USER_EMOTE_UPLOAD_SOURCE_EMOTE_UPLOAD_SOURCE_MODERATOR = 2,
|
|
115
|
+
UNRECOGNIZED = -1
|
|
116
|
+
}
|
|
117
|
+
/** Chat Emotes (Subscriber) */
|
|
118
|
+
interface WebcastEmoteChatMessage {
|
|
119
|
+
user: User | undefined;
|
|
120
|
+
emote: EmoteDetails | undefined;
|
|
121
|
+
}
|
|
122
|
+
interface WebcastSubEmote {
|
|
123
|
+
/** starting at 0, you insert the emote itself into the comment at that place */
|
|
124
|
+
placeInComment: number;
|
|
125
|
+
emote: EmoteDetails | undefined;
|
|
126
|
+
}
|
|
127
|
+
interface WebcastMemberMessage {
|
|
128
|
+
event: WebcastMessageEvent | undefined;
|
|
129
|
+
user: User | undefined;
|
|
130
|
+
actionId: number;
|
|
131
|
+
}
|
|
132
|
+
interface WebcastGiftMessage {
|
|
133
|
+
event: WebcastMessageEvent | undefined;
|
|
134
|
+
giftId: number;
|
|
135
|
+
repeatCount: number;
|
|
136
|
+
user: User | undefined;
|
|
137
|
+
repeatEnd: number;
|
|
138
|
+
groupId: string;
|
|
139
|
+
giftDetails: WebcastGiftMessageGiftDetails | undefined;
|
|
140
|
+
monitorExtra: string;
|
|
141
|
+
giftExtra: WebcastGiftMessageGiftExtra | undefined;
|
|
142
|
+
}
|
|
143
|
+
interface WebcastGiftMessageGiftDetails {
|
|
144
|
+
giftImage: WebcastGiftMessageGiftImage | undefined;
|
|
145
|
+
giftName: string;
|
|
146
|
+
describe: string;
|
|
147
|
+
giftType: number;
|
|
148
|
+
diamondCount: number;
|
|
149
|
+
}
|
|
150
|
+
/** Taken from https://github.com/Davincible/gotiktoklive/blob/da4630622bc586629a53faae64e8c53509af29de/proto/tiktok.proto#L57 */
|
|
151
|
+
interface WebcastGiftMessageGiftExtra {
|
|
152
|
+
timestamp: string;
|
|
153
|
+
receiverUserId: string;
|
|
154
|
+
}
|
|
155
|
+
interface WebcastGiftMessageGiftImage {
|
|
156
|
+
giftPictureUrl: string;
|
|
157
|
+
}
|
|
158
|
+
/** Battle start */
|
|
159
|
+
interface WebcastLinkMicBattle {
|
|
160
|
+
battleUsers: WebcastLinkMicBattleItems[];
|
|
161
|
+
}
|
|
162
|
+
interface WebcastLinkMicBattleItems {
|
|
163
|
+
battleGroup: WebcastLinkMicBattleGroup | undefined;
|
|
164
|
+
}
|
|
165
|
+
interface WebcastLinkMicBattleGroup {
|
|
166
|
+
user: LinkUser | undefined;
|
|
167
|
+
}
|
|
168
|
+
/** Battle status */
|
|
169
|
+
interface WebcastLinkMicArmies {
|
|
170
|
+
battleItems: WebcastLinkMicArmiesItems[];
|
|
171
|
+
battleStatus: number;
|
|
172
|
+
}
|
|
173
|
+
interface WebcastLinkMicArmiesItems {
|
|
174
|
+
hostUserId: string;
|
|
175
|
+
battleGroups: WebcastLinkMicArmiesGroup[];
|
|
176
|
+
}
|
|
177
|
+
interface WebcastLinkMicArmiesGroup {
|
|
178
|
+
users: User[];
|
|
179
|
+
points: number;
|
|
180
|
+
}
|
|
181
|
+
/** Follow & share event */
|
|
182
|
+
interface WebcastSocialMessage {
|
|
183
|
+
event: WebcastMessageEvent | undefined;
|
|
184
|
+
user: User | undefined;
|
|
185
|
+
}
|
|
186
|
+
/** Like event (is only sent from time to time, not with every like) */
|
|
187
|
+
interface WebcastLikeMessage {
|
|
188
|
+
event: WebcastMessageEvent | undefined;
|
|
189
|
+
user: User | undefined;
|
|
190
|
+
likeCount: number;
|
|
191
|
+
totalLikeCount: number;
|
|
192
|
+
}
|
|
193
|
+
/** New question event */
|
|
194
|
+
interface WebcastQuestionNewMessage {
|
|
195
|
+
questionDetails: QuestionDetails | undefined;
|
|
196
|
+
}
|
|
197
|
+
interface QuestionDetails {
|
|
198
|
+
questionText: string;
|
|
199
|
+
user: User | undefined;
|
|
200
|
+
}
|
|
201
|
+
interface WebcastMessageEvent {
|
|
202
|
+
msgId: string;
|
|
203
|
+
createTime: string;
|
|
204
|
+
eventDetails: WebcastMessageEventDetails | undefined;
|
|
205
|
+
}
|
|
206
|
+
/** Contains UI information */
|
|
207
|
+
interface WebcastMessageEventDetails {
|
|
208
|
+
displayType: string;
|
|
209
|
+
label: string;
|
|
210
|
+
}
|
|
211
|
+
/** Source: Co-opted https://github.com/zerodytrash/TikTok-Livestream-Chat-Connector/issues/19#issuecomment-1074150342 */
|
|
212
|
+
interface WebcastLiveIntroMessage {
|
|
213
|
+
id: string;
|
|
214
|
+
description: string;
|
|
215
|
+
user: User | undefined;
|
|
216
|
+
}
|
|
217
|
+
interface SystemMessage {
|
|
218
|
+
description: string;
|
|
219
|
+
}
|
|
220
|
+
interface WebcastInRoomBannerMessage {
|
|
221
|
+
data: string;
|
|
222
|
+
}
|
|
223
|
+
interface RankItem {
|
|
224
|
+
colour: string;
|
|
225
|
+
id: string;
|
|
226
|
+
}
|
|
227
|
+
interface WeeklyRanking {
|
|
228
|
+
type: string;
|
|
229
|
+
label: string;
|
|
230
|
+
rank: RankItem | undefined;
|
|
231
|
+
}
|
|
232
|
+
interface RankContainer {
|
|
233
|
+
rankings: WeeklyRanking | undefined;
|
|
234
|
+
}
|
|
235
|
+
interface WebcastHourlyRankMessage {
|
|
236
|
+
data: RankContainer | undefined;
|
|
237
|
+
}
|
|
238
|
+
interface EmoteDetails {
|
|
239
|
+
emoteId: string;
|
|
240
|
+
image: EmoteImage | undefined;
|
|
241
|
+
}
|
|
242
|
+
interface EmoteImage {
|
|
243
|
+
imageUrl: string;
|
|
244
|
+
}
|
|
245
|
+
/**
|
|
246
|
+
* Envelope (treasure boxes)
|
|
247
|
+
* Taken from https://github.com/ThanoFish/TikTok-Live-Connector/blob/9b215b96792adfddfb638344b152fa9efa581b4c/src/proto/tiktokSchema.proto
|
|
248
|
+
*/
|
|
249
|
+
interface WebcastEnvelopeMessage {
|
|
250
|
+
treasureBoxData: TreasureBoxData | undefined;
|
|
251
|
+
treasureBoxUser: TreasureBoxUser | undefined;
|
|
252
|
+
}
|
|
253
|
+
interface TreasureBoxUser {
|
|
254
|
+
user2: TreasureBoxUser2 | undefined;
|
|
255
|
+
}
|
|
256
|
+
interface TreasureBoxUser2 {
|
|
257
|
+
user3: TreasureBoxUser3[];
|
|
258
|
+
}
|
|
259
|
+
interface TreasureBoxUser3 {
|
|
260
|
+
user4: TreasureBoxUser4 | undefined;
|
|
261
|
+
}
|
|
262
|
+
interface TreasureBoxUser4 {
|
|
263
|
+
user: User | undefined;
|
|
264
|
+
}
|
|
265
|
+
interface TreasureBoxData {
|
|
266
|
+
coins: number;
|
|
267
|
+
canOpen: number;
|
|
268
|
+
timestamp: string;
|
|
269
|
+
}
|
|
270
|
+
/** New Subscriber message */
|
|
271
|
+
interface WebcastSubNotifyMessage {
|
|
272
|
+
event: WebcastMessageEvent | undefined;
|
|
273
|
+
user: User | undefined;
|
|
274
|
+
exhibitionType: number;
|
|
275
|
+
subMonth: number;
|
|
276
|
+
subscribeType: number;
|
|
277
|
+
oldSubscribeStatus: number;
|
|
278
|
+
subscribingStatus: number;
|
|
279
|
+
}
|
|
280
|
+
interface User {
|
|
281
|
+
userId: string;
|
|
282
|
+
nickname: string;
|
|
283
|
+
profilePicture: ProfilePicture | undefined;
|
|
284
|
+
uniqueId: string;
|
|
285
|
+
secUid: string;
|
|
286
|
+
badges: UserBadgesAttributes[];
|
|
287
|
+
createTime: string;
|
|
288
|
+
bioDescription: string;
|
|
289
|
+
followInfo: FollowInfo | undefined;
|
|
290
|
+
}
|
|
291
|
+
interface FollowInfo {
|
|
292
|
+
followingCount: number;
|
|
293
|
+
followerCount: number;
|
|
294
|
+
followStatus: number;
|
|
295
|
+
pushStatus: number;
|
|
296
|
+
}
|
|
297
|
+
interface LinkUser {
|
|
298
|
+
userId: string;
|
|
299
|
+
nickname: string;
|
|
300
|
+
profilePicture: ProfilePicture | undefined;
|
|
301
|
+
uniqueId: string;
|
|
302
|
+
}
|
|
303
|
+
interface ProfilePicture {
|
|
304
|
+
urls: string[];
|
|
305
|
+
}
|
|
306
|
+
interface UserBadgesAttributes {
|
|
307
|
+
badgeSceneType: number;
|
|
308
|
+
imageBadges: UserImageBadge[];
|
|
309
|
+
badges: UserBadge[];
|
|
310
|
+
privilegeLogExtra: PrivilegeLogExtra | undefined;
|
|
311
|
+
}
|
|
312
|
+
interface PrivilegeLogExtra {
|
|
313
|
+
privilegeId: string;
|
|
314
|
+
level: string;
|
|
315
|
+
}
|
|
316
|
+
interface UserBadge {
|
|
317
|
+
type: string;
|
|
318
|
+
name: string;
|
|
319
|
+
}
|
|
320
|
+
interface UserImageBadge {
|
|
321
|
+
displayType: number;
|
|
322
|
+
image: UserImageBadgeImage | undefined;
|
|
323
|
+
}
|
|
324
|
+
interface UserImageBadgeImage {
|
|
325
|
+
url: string;
|
|
326
|
+
}
|
|
327
|
+
/** Websocket incoming message structure */
|
|
328
|
+
interface WebcastWebsocketMessage {
|
|
329
|
+
id: string;
|
|
330
|
+
type: string;
|
|
331
|
+
binary: Buffer;
|
|
332
|
+
}
|
|
333
|
+
/** Websocket acknowledgment message */
|
|
334
|
+
interface WebcastWebsocketAck {
|
|
335
|
+
id: string;
|
|
336
|
+
type: string;
|
|
337
|
+
}
|
|
338
|
+
interface WebcastBarrageMessage {
|
|
339
|
+
event: WebcastMessageEvent | undefined;
|
|
340
|
+
msgType: number;
|
|
341
|
+
content: WebcastBarrageMessage_Text | undefined;
|
|
342
|
+
}
|
|
343
|
+
interface WebcastBarrageMessage_Text {
|
|
344
|
+
key: string;
|
|
345
|
+
defaultPattern: string;
|
|
346
|
+
pieces: WebcastBarrageMessage_TextPiece[];
|
|
347
|
+
}
|
|
348
|
+
interface WebcastBarrageMessage_TextPiece {
|
|
349
|
+
type: number;
|
|
350
|
+
stringValue: string;
|
|
351
|
+
userValue: WebcastBarrageMessage_TextPieceUser | undefined;
|
|
352
|
+
}
|
|
353
|
+
interface WebcastBarrageMessage_TextPieceUser {
|
|
354
|
+
user: User | undefined;
|
|
355
|
+
withColon: boolean;
|
|
356
|
+
}
|
|
357
|
+
declare const WebcastResponse: MessageFns<WebcastResponse>;
|
|
358
|
+
declare const Message: MessageFns<Message>;
|
|
359
|
+
declare const WebsocketParam: MessageFns<WebsocketParam>;
|
|
360
|
+
declare const WebcastControlMessage: MessageFns<WebcastControlMessage>;
|
|
361
|
+
declare const WebcastRoomUserSeqMessage: MessageFns<WebcastRoomUserSeqMessage>;
|
|
362
|
+
declare const TopUser: MessageFns<TopUser>;
|
|
363
|
+
declare const ImageModel: MessageFns<ImageModel>;
|
|
364
|
+
declare const ImageModel_Content: MessageFns<ImageModel_Content>;
|
|
365
|
+
declare const WebcastChatMessage: MessageFns<WebcastChatMessage>;
|
|
366
|
+
declare const WebcastChatMessage_UserIdentity: MessageFns<WebcastChatMessage_UserIdentity>;
|
|
367
|
+
declare const WebcastChatMessage_CommentQualityScore: MessageFns<WebcastChatMessage_CommentQualityScore>;
|
|
368
|
+
declare const EmoteUploadInfo: MessageFns<EmoteUploadInfo>;
|
|
369
|
+
declare const WebcastEmoteChatMessage: MessageFns<WebcastEmoteChatMessage>;
|
|
370
|
+
declare const WebcastSubEmote: MessageFns<WebcastSubEmote>;
|
|
371
|
+
declare const WebcastMemberMessage: MessageFns<WebcastMemberMessage>;
|
|
372
|
+
declare const WebcastGiftMessage: MessageFns<WebcastGiftMessage>;
|
|
373
|
+
declare const WebcastGiftMessageGiftDetails: MessageFns<WebcastGiftMessageGiftDetails>;
|
|
374
|
+
declare const WebcastGiftMessageGiftExtra: MessageFns<WebcastGiftMessageGiftExtra>;
|
|
375
|
+
declare const WebcastGiftMessageGiftImage: MessageFns<WebcastGiftMessageGiftImage>;
|
|
376
|
+
declare const WebcastLinkMicBattle: MessageFns<WebcastLinkMicBattle>;
|
|
377
|
+
declare const WebcastLinkMicBattleItems: MessageFns<WebcastLinkMicBattleItems>;
|
|
378
|
+
declare const WebcastLinkMicBattleGroup: MessageFns<WebcastLinkMicBattleGroup>;
|
|
379
|
+
declare const WebcastLinkMicArmies: MessageFns<WebcastLinkMicArmies>;
|
|
380
|
+
declare const WebcastLinkMicArmiesItems: MessageFns<WebcastLinkMicArmiesItems>;
|
|
381
|
+
declare const WebcastLinkMicArmiesGroup: MessageFns<WebcastLinkMicArmiesGroup>;
|
|
382
|
+
declare const WebcastSocialMessage: MessageFns<WebcastSocialMessage>;
|
|
383
|
+
declare const WebcastLikeMessage: MessageFns<WebcastLikeMessage>;
|
|
384
|
+
declare const WebcastQuestionNewMessage: MessageFns<WebcastQuestionNewMessage>;
|
|
385
|
+
declare const QuestionDetails: MessageFns<QuestionDetails>;
|
|
386
|
+
declare const WebcastMessageEvent: MessageFns<WebcastMessageEvent>;
|
|
387
|
+
declare const WebcastMessageEventDetails: MessageFns<WebcastMessageEventDetails>;
|
|
388
|
+
declare const WebcastLiveIntroMessage: MessageFns<WebcastLiveIntroMessage>;
|
|
389
|
+
declare const SystemMessage: MessageFns<SystemMessage>;
|
|
390
|
+
declare const WebcastInRoomBannerMessage: MessageFns<WebcastInRoomBannerMessage>;
|
|
391
|
+
declare const RankItem: MessageFns<RankItem>;
|
|
392
|
+
declare const WeeklyRanking: MessageFns<WeeklyRanking>;
|
|
393
|
+
declare const RankContainer: MessageFns<RankContainer>;
|
|
394
|
+
declare const WebcastHourlyRankMessage: MessageFns<WebcastHourlyRankMessage>;
|
|
395
|
+
declare const EmoteDetails: MessageFns<EmoteDetails>;
|
|
396
|
+
declare const EmoteImage: MessageFns<EmoteImage>;
|
|
397
|
+
declare const WebcastEnvelopeMessage: MessageFns<WebcastEnvelopeMessage>;
|
|
398
|
+
declare const TreasureBoxUser: MessageFns<TreasureBoxUser>;
|
|
399
|
+
declare const TreasureBoxUser2: MessageFns<TreasureBoxUser2>;
|
|
400
|
+
declare const TreasureBoxUser3: MessageFns<TreasureBoxUser3>;
|
|
401
|
+
declare const TreasureBoxUser4: MessageFns<TreasureBoxUser4>;
|
|
402
|
+
declare const TreasureBoxData: MessageFns<TreasureBoxData>;
|
|
403
|
+
declare const WebcastSubNotifyMessage: MessageFns<WebcastSubNotifyMessage>;
|
|
404
|
+
declare const User: MessageFns<User>;
|
|
405
|
+
declare const FollowInfo: MessageFns<FollowInfo>;
|
|
406
|
+
declare const LinkUser: MessageFns<LinkUser>;
|
|
407
|
+
declare const ProfilePicture: MessageFns<ProfilePicture>;
|
|
408
|
+
declare const UserBadgesAttributes: MessageFns<UserBadgesAttributes>;
|
|
409
|
+
declare const PrivilegeLogExtra: MessageFns<PrivilegeLogExtra>;
|
|
410
|
+
declare const UserBadge: MessageFns<UserBadge>;
|
|
411
|
+
declare const UserImageBadge: MessageFns<UserImageBadge>;
|
|
412
|
+
declare const UserImageBadgeImage: MessageFns<UserImageBadgeImage>;
|
|
413
|
+
declare const WebcastWebsocketMessage: MessageFns<WebcastWebsocketMessage>;
|
|
414
|
+
declare const WebcastWebsocketAck: MessageFns<WebcastWebsocketAck>;
|
|
415
|
+
declare const WebcastBarrageMessage: MessageFns<WebcastBarrageMessage>;
|
|
416
|
+
declare const WebcastBarrageMessage_Text: MessageFns<WebcastBarrageMessage_Text>;
|
|
417
|
+
declare const WebcastBarrageMessage_TextPiece: MessageFns<WebcastBarrageMessage_TextPiece>;
|
|
418
|
+
declare const WebcastBarrageMessage_TextPieceUser: MessageFns<WebcastBarrageMessage_TextPieceUser>;
|
|
419
|
+
interface MessageFns<T> {
|
|
420
|
+
encode(message: T, writer?: BinaryWriter): BinaryWriter;
|
|
421
|
+
decode(input: BinaryReader | Uint8Array, length?: number): T;
|
|
422
|
+
}
|
|
423
|
+
//#endregion
|
|
424
|
+
export { ControlAction, EmoteDetails, EmoteImage, EmoteUploadInfo, EmoteUploadInfo_UserEmoteUploadSource, FollowInfo, ImageModel, ImageModel_Content, LinkUser, Message, MessageFns, PrivilegeLogExtra, ProfilePicture, QuestionDetails, RankContainer, RankItem, SystemMessage, TopUser, TreasureBoxData, TreasureBoxUser, TreasureBoxUser2, TreasureBoxUser3, TreasureBoxUser4, User, UserBadge, UserBadgesAttributes, UserImageBadge, UserImageBadgeImage, WebcastBarrageMessage, WebcastBarrageMessage_Text, WebcastBarrageMessage_TextPiece, WebcastBarrageMessage_TextPieceUser, WebcastChatMessage, WebcastChatMessage_CommentQualityScore, WebcastChatMessage_CommentTag, WebcastChatMessage_UserIdentity, WebcastControlMessage, WebcastEmoteChatMessage, WebcastEnvelopeMessage, WebcastGiftMessage, WebcastGiftMessageGiftDetails, WebcastGiftMessageGiftExtra, WebcastGiftMessageGiftImage, WebcastHourlyRankMessage, WebcastInRoomBannerMessage, WebcastLikeMessage, WebcastLinkMicArmies, WebcastLinkMicArmiesGroup, WebcastLinkMicArmiesItems, WebcastLinkMicBattle, WebcastLinkMicBattleGroup, WebcastLinkMicBattleItems, WebcastLiveIntroMessage, WebcastMemberMessage, WebcastMessageEvent, WebcastMessageEventDetails, WebcastQuestionNewMessage, WebcastResponse, WebcastRoomUserSeqMessage, WebcastSocialMessage, WebcastSubEmote, WebcastSubNotifyMessage, WebcastWebsocketAck, WebcastWebsocketMessage, WebsocketParam, WeeklyRanking, protobufPackage };
|