tiktok-live-proto 0.1.1 → 0.1.2
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 +2 -2
- package/dist/node/v2.d.ts +2 -2
- package/dist/node/v2.js +12 -12
- package/dist/web/v2.d.ts +2 -2
- package/dist/web/v2.js +12 -12
- package/package.json +3 -1
package/README.md
CHANGED
|
@@ -26,10 +26,10 @@ so tsserver only indexes what you import.
|
|
|
26
26
|
|
|
27
27
|
## Layout
|
|
28
28
|
|
|
29
|
-
- `src/v1/**/*.proto`, `src/v2/**/*.proto` (in the repo root) — canonical schemas
|
|
29
|
+
- `src/slim/v1/**/*.proto`, `src/slim/v2/**/*.proto` (in the repo root) — canonical schemas
|
|
30
30
|
- `targets/typescript/tiktok-live-proto/src/generated/{v1,v2}.ts` — generated
|
|
31
31
|
by `ts-proto`, committed to the repo, regenerated by CI when any `.proto`
|
|
32
|
-
under `src/` changes
|
|
32
|
+
under `src/slim/` changes
|
|
33
33
|
- `dist/{node,web,types}/{v1,v2}.*` — bundled output, produced by `tsdown`,
|
|
34
34
|
not committed
|
|
35
35
|
|
package/dist/node/v2.d.ts
CHANGED
|
@@ -1879,12 +1879,12 @@ interface ListUser {
|
|
|
1879
1879
|
linkmicId: string;
|
|
1880
1880
|
linkmicIdStr: string;
|
|
1881
1881
|
linkStatus: LinkmicRoleType;
|
|
1882
|
-
linkType:
|
|
1882
|
+
linkType: Buffer;
|
|
1883
1883
|
userPosition: number;
|
|
1884
1884
|
silenceStatus: LinkSilenceStatus;
|
|
1885
1885
|
modifyTime: string;
|
|
1886
1886
|
linkerId: string;
|
|
1887
|
-
roleType:
|
|
1887
|
+
roleType: Buffer;
|
|
1888
1888
|
}
|
|
1889
1889
|
/** it is just empty */
|
|
1890
1890
|
interface LinkerCloseContent {}
|
package/dist/node/v2.js
CHANGED
|
@@ -6632,12 +6632,12 @@ function createBaseListUser() {
|
|
|
6632
6632
|
linkmicId: "0",
|
|
6633
6633
|
linkmicIdStr: "",
|
|
6634
6634
|
linkStatus: 0,
|
|
6635
|
-
linkType: 0,
|
|
6635
|
+
linkType: Buffer.alloc(0),
|
|
6636
6636
|
userPosition: 0,
|
|
6637
6637
|
silenceStatus: 0,
|
|
6638
6638
|
modifyTime: "0",
|
|
6639
6639
|
linkerId: "0",
|
|
6640
|
-
roleType: 0
|
|
6640
|
+
roleType: Buffer.alloc(0)
|
|
6641
6641
|
};
|
|
6642
6642
|
}
|
|
6643
6643
|
const ListUser = {
|
|
@@ -6646,12 +6646,12 @@ const ListUser = {
|
|
|
6646
6646
|
if (message.linkmicId !== "0") writer.uint32(16).int64(message.linkmicId);
|
|
6647
6647
|
if (message.linkmicIdStr !== "") writer.uint32(26).string(message.linkmicIdStr);
|
|
6648
6648
|
if (message.linkStatus !== 0) writer.uint32(32).int32(message.linkStatus);
|
|
6649
|
-
if (message.linkType !== 0) writer.uint32(
|
|
6649
|
+
if (message.linkType.length !== 0) writer.uint32(42).bytes(message.linkType);
|
|
6650
6650
|
if (message.userPosition !== 0) writer.uint32(48).int32(message.userPosition);
|
|
6651
6651
|
if (message.silenceStatus !== 0) writer.uint32(56).int32(message.silenceStatus);
|
|
6652
6652
|
if (message.modifyTime !== "0") writer.uint32(64).int64(message.modifyTime);
|
|
6653
6653
|
if (message.linkerId !== "0") writer.uint32(72).int64(message.linkerId);
|
|
6654
|
-
if (message.roleType !== 0) writer.uint32(
|
|
6654
|
+
if (message.roleType.length !== 0) writer.uint32(82).bytes(message.roleType);
|
|
6655
6655
|
return writer;
|
|
6656
6656
|
},
|
|
6657
6657
|
decode(input, length) {
|
|
@@ -6678,8 +6678,8 @@ const ListUser = {
|
|
|
6678
6678
|
message.linkStatus = reader.int32();
|
|
6679
6679
|
continue;
|
|
6680
6680
|
case 5:
|
|
6681
|
-
if (tag !==
|
|
6682
|
-
message.linkType = reader.
|
|
6681
|
+
if (tag !== 42) break;
|
|
6682
|
+
message.linkType = Buffer.from(reader.bytes());
|
|
6683
6683
|
continue;
|
|
6684
6684
|
case 6:
|
|
6685
6685
|
if (tag !== 48) break;
|
|
@@ -6698,8 +6698,8 @@ const ListUser = {
|
|
|
6698
6698
|
message.linkerId = reader.int64().toString();
|
|
6699
6699
|
continue;
|
|
6700
6700
|
case 10:
|
|
6701
|
-
if (tag !==
|
|
6702
|
-
message.roleType = reader.
|
|
6701
|
+
if (tag !== 82) break;
|
|
6702
|
+
message.roleType = Buffer.from(reader.bytes());
|
|
6703
6703
|
continue;
|
|
6704
6704
|
}
|
|
6705
6705
|
if ((tag & 7) === 4 || tag === 0) break;
|
|
@@ -8705,7 +8705,7 @@ const AllListUser = {
|
|
|
8705
8705
|
function createBaseLinkLayerListUser() {
|
|
8706
8706
|
return {
|
|
8707
8707
|
user: void 0,
|
|
8708
|
-
linkmicId: "
|
|
8708
|
+
linkmicId: "",
|
|
8709
8709
|
pos: void 0,
|
|
8710
8710
|
linkedTimeNano: "0",
|
|
8711
8711
|
appVersion: "",
|
|
@@ -8715,7 +8715,7 @@ function createBaseLinkLayerListUser() {
|
|
|
8715
8715
|
const LinkLayerListUser = {
|
|
8716
8716
|
encode(message, writer = new BinaryWriter()) {
|
|
8717
8717
|
if (message.user !== void 0) User.encode(message.user, writer.uint32(10).fork()).join();
|
|
8718
|
-
if (message.linkmicId !== "
|
|
8718
|
+
if (message.linkmicId !== "") writer.uint32(18).string(message.linkmicId);
|
|
8719
8719
|
if (message.pos !== void 0) Position.encode(message.pos, writer.uint32(26).fork()).join();
|
|
8720
8720
|
if (message.linkedTimeNano !== "0") writer.uint32(32).int64(message.linkedTimeNano);
|
|
8721
8721
|
if (message.appVersion !== "") writer.uint32(42).string(message.appVersion);
|
|
@@ -8734,8 +8734,8 @@ const LinkLayerListUser = {
|
|
|
8734
8734
|
message.user = User.decode(reader, reader.uint32());
|
|
8735
8735
|
continue;
|
|
8736
8736
|
case 2:
|
|
8737
|
-
if (tag !==
|
|
8738
|
-
message.linkmicId = reader.
|
|
8737
|
+
if (tag !== 18) break;
|
|
8738
|
+
message.linkmicId = reader.string();
|
|
8739
8739
|
continue;
|
|
8740
8740
|
case 3:
|
|
8741
8741
|
if (tag !== 26) break;
|
package/dist/web/v2.d.ts
CHANGED
|
@@ -1879,12 +1879,12 @@ interface ListUser {
|
|
|
1879
1879
|
linkmicId: string;
|
|
1880
1880
|
linkmicIdStr: string;
|
|
1881
1881
|
linkStatus: LinkmicRoleType;
|
|
1882
|
-
linkType:
|
|
1882
|
+
linkType: Uint8Array;
|
|
1883
1883
|
userPosition: number;
|
|
1884
1884
|
silenceStatus: LinkSilenceStatus;
|
|
1885
1885
|
modifyTime: string;
|
|
1886
1886
|
linkerId: string;
|
|
1887
|
-
roleType:
|
|
1887
|
+
roleType: Uint8Array;
|
|
1888
1888
|
}
|
|
1889
1889
|
/** it is just empty */
|
|
1890
1890
|
interface LinkerCloseContent {}
|
package/dist/web/v2.js
CHANGED
|
@@ -6632,12 +6632,12 @@ function createBaseListUser() {
|
|
|
6632
6632
|
linkmicId: "0",
|
|
6633
6633
|
linkmicIdStr: "",
|
|
6634
6634
|
linkStatus: 0,
|
|
6635
|
-
linkType: 0,
|
|
6635
|
+
linkType: new Uint8Array(0),
|
|
6636
6636
|
userPosition: 0,
|
|
6637
6637
|
silenceStatus: 0,
|
|
6638
6638
|
modifyTime: "0",
|
|
6639
6639
|
linkerId: "0",
|
|
6640
|
-
roleType: 0
|
|
6640
|
+
roleType: new Uint8Array(0)
|
|
6641
6641
|
};
|
|
6642
6642
|
}
|
|
6643
6643
|
const ListUser = {
|
|
@@ -6646,12 +6646,12 @@ const ListUser = {
|
|
|
6646
6646
|
if (message.linkmicId !== "0") writer.uint32(16).int64(message.linkmicId);
|
|
6647
6647
|
if (message.linkmicIdStr !== "") writer.uint32(26).string(message.linkmicIdStr);
|
|
6648
6648
|
if (message.linkStatus !== 0) writer.uint32(32).int32(message.linkStatus);
|
|
6649
|
-
if (message.linkType !== 0) writer.uint32(
|
|
6649
|
+
if (message.linkType.length !== 0) writer.uint32(42).bytes(message.linkType);
|
|
6650
6650
|
if (message.userPosition !== 0) writer.uint32(48).int32(message.userPosition);
|
|
6651
6651
|
if (message.silenceStatus !== 0) writer.uint32(56).int32(message.silenceStatus);
|
|
6652
6652
|
if (message.modifyTime !== "0") writer.uint32(64).int64(message.modifyTime);
|
|
6653
6653
|
if (message.linkerId !== "0") writer.uint32(72).int64(message.linkerId);
|
|
6654
|
-
if (message.roleType !== 0) writer.uint32(
|
|
6654
|
+
if (message.roleType.length !== 0) writer.uint32(82).bytes(message.roleType);
|
|
6655
6655
|
return writer;
|
|
6656
6656
|
},
|
|
6657
6657
|
decode(input, length) {
|
|
@@ -6678,8 +6678,8 @@ const ListUser = {
|
|
|
6678
6678
|
message.linkStatus = reader.int32();
|
|
6679
6679
|
continue;
|
|
6680
6680
|
case 5:
|
|
6681
|
-
if (tag !==
|
|
6682
|
-
message.linkType = reader.
|
|
6681
|
+
if (tag !== 42) break;
|
|
6682
|
+
message.linkType = reader.bytes();
|
|
6683
6683
|
continue;
|
|
6684
6684
|
case 6:
|
|
6685
6685
|
if (tag !== 48) break;
|
|
@@ -6698,8 +6698,8 @@ const ListUser = {
|
|
|
6698
6698
|
message.linkerId = reader.int64().toString();
|
|
6699
6699
|
continue;
|
|
6700
6700
|
case 10:
|
|
6701
|
-
if (tag !==
|
|
6702
|
-
message.roleType = reader.
|
|
6701
|
+
if (tag !== 82) break;
|
|
6702
|
+
message.roleType = reader.bytes();
|
|
6703
6703
|
continue;
|
|
6704
6704
|
}
|
|
6705
6705
|
if ((tag & 7) === 4 || tag === 0) break;
|
|
@@ -8705,7 +8705,7 @@ const AllListUser = {
|
|
|
8705
8705
|
function createBaseLinkLayerListUser() {
|
|
8706
8706
|
return {
|
|
8707
8707
|
user: void 0,
|
|
8708
|
-
linkmicId: "
|
|
8708
|
+
linkmicId: "",
|
|
8709
8709
|
pos: void 0,
|
|
8710
8710
|
linkedTimeNano: "0",
|
|
8711
8711
|
appVersion: "",
|
|
@@ -8715,7 +8715,7 @@ function createBaseLinkLayerListUser() {
|
|
|
8715
8715
|
const LinkLayerListUser = {
|
|
8716
8716
|
encode(message, writer = new BinaryWriter()) {
|
|
8717
8717
|
if (message.user !== void 0) User.encode(message.user, writer.uint32(10).fork()).join();
|
|
8718
|
-
if (message.linkmicId !== "
|
|
8718
|
+
if (message.linkmicId !== "") writer.uint32(18).string(message.linkmicId);
|
|
8719
8719
|
if (message.pos !== void 0) Position.encode(message.pos, writer.uint32(26).fork()).join();
|
|
8720
8720
|
if (message.linkedTimeNano !== "0") writer.uint32(32).int64(message.linkedTimeNano);
|
|
8721
8721
|
if (message.appVersion !== "") writer.uint32(42).string(message.appVersion);
|
|
@@ -8734,8 +8734,8 @@ const LinkLayerListUser = {
|
|
|
8734
8734
|
message.user = User.decode(reader, reader.uint32());
|
|
8735
8735
|
continue;
|
|
8736
8736
|
case 2:
|
|
8737
|
-
if (tag !==
|
|
8738
|
-
message.linkmicId = reader.
|
|
8737
|
+
if (tag !== 18) break;
|
|
8738
|
+
message.linkmicId = reader.string();
|
|
8739
8739
|
continue;
|
|
8740
8740
|
case 3:
|
|
8741
8741
|
if (tag !== 26) break;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "tiktok-live-proto",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.2",
|
|
4
4
|
"description": "Clean-room TypeScript bindings for the TikTok Webcast Protobuf schema.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -44,7 +44,9 @@
|
|
|
44
44
|
"@bufbuild/protobuf": "^2.2.5"
|
|
45
45
|
},
|
|
46
46
|
"devDependencies": {
|
|
47
|
+
"@types/js-yaml": "^4.0.9",
|
|
47
48
|
"@types/node": "^20.0.0",
|
|
49
|
+
"js-yaml": "^4.1.0",
|
|
48
50
|
"ts-proto": "^2.11.6",
|
|
49
51
|
"tsdown": "^0.21.0",
|
|
50
52
|
"tsx": "^4.19.0",
|