tiktok-live-api 1.1.0 → 1.2.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 +1 -1
- package/dist/index.d.mts +5 -0
- package/dist/index.d.ts +5 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -173,7 +173,7 @@ client.connect();
|
|
|
173
173
|
|
|
174
174
|
| Event | Description | Key Fields |
|
|
175
175
|
|-------|-------------|------------|
|
|
176
|
-
| `chat` | Chat message | `user`, `comment`, `emotes` |
|
|
176
|
+
| `chat` | Chat message | `user`, `comment`, `emotes`, `starred?` |
|
|
177
177
|
| `gift` | Virtual gift | `user`, `giftName`, `diamondCount`, `repeatCount` |
|
|
178
178
|
| `like` | Like event | `user`, `likeCount`, `totalLikes` |
|
|
179
179
|
| `follow` | New follower | `user` |
|
package/dist/index.d.mts
CHANGED
|
@@ -23,6 +23,11 @@ interface ChatEvent {
|
|
|
23
23
|
emoteId: string;
|
|
24
24
|
image: string;
|
|
25
25
|
}>;
|
|
26
|
+
/** Present only for starred (paid highlighted) chat messages. */
|
|
27
|
+
starred?: {
|
|
28
|
+
claps: number;
|
|
29
|
+
score: number;
|
|
30
|
+
};
|
|
26
31
|
}
|
|
27
32
|
/** Payload for `gift` events. */
|
|
28
33
|
interface GiftEvent {
|
package/dist/index.d.ts
CHANGED
|
@@ -23,6 +23,11 @@ interface ChatEvent {
|
|
|
23
23
|
emoteId: string;
|
|
24
24
|
image: string;
|
|
25
25
|
}>;
|
|
26
|
+
/** Present only for starred (paid highlighted) chat messages. */
|
|
27
|
+
starred?: {
|
|
28
|
+
claps: number;
|
|
29
|
+
score: number;
|
|
30
|
+
};
|
|
26
31
|
}
|
|
27
32
|
/** Payload for `gift` events. */
|
|
28
33
|
interface GiftEvent {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "tiktok-live-api",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.2.0",
|
|
4
4
|
"description": "Unofficial TikTok LIVE API Client — Real-time chat, gifts, viewers, battles, and AI live captions from any TikTok livestream. Managed WebSocket API with 99.9% uptime.",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.mjs",
|