tiktok-live-proto 0.1.0 → 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 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
@@ -200,6 +200,7 @@ declare enum EnvelopeBusinessType {
200
200
  BusinessTypePlatformMerch = 5,
201
201
  BusinessTypeEoYDiamond = 6,
202
202
  BusinessTypeFanClubGtM = 7,
203
+ BusinessTypeSuperFanBox = 19,
203
204
  UNRECOGNIZED = -1
204
205
  }
205
206
  declare enum EnvelopeFollowShowStatus {
@@ -1878,12 +1879,12 @@ interface ListUser {
1878
1879
  linkmicId: string;
1879
1880
  linkmicIdStr: string;
1880
1881
  linkStatus: LinkmicRoleType;
1881
- linkType: LinkType;
1882
+ linkType: Buffer;
1882
1883
  userPosition: number;
1883
1884
  silenceStatus: LinkSilenceStatus;
1884
1885
  modifyTime: string;
1885
1886
  linkerId: string;
1886
- roleType: LinkRoleType;
1887
+ roleType: Buffer;
1887
1888
  }
1888
1889
  /** it is just empty */
1889
1890
  interface LinkerCloseContent {}
package/dist/node/v2.js CHANGED
@@ -219,6 +219,7 @@ let EnvelopeBusinessType = /* @__PURE__ */ function(EnvelopeBusinessType) {
219
219
  EnvelopeBusinessType[EnvelopeBusinessType["BusinessTypePlatformMerch"] = 5] = "BusinessTypePlatformMerch";
220
220
  EnvelopeBusinessType[EnvelopeBusinessType["BusinessTypeEoYDiamond"] = 6] = "BusinessTypeEoYDiamond";
221
221
  EnvelopeBusinessType[EnvelopeBusinessType["BusinessTypeFanClubGtM"] = 7] = "BusinessTypeFanClubGtM";
222
+ EnvelopeBusinessType[EnvelopeBusinessType["BusinessTypeSuperFanBox"] = 19] = "BusinessTypeSuperFanBox";
222
223
  EnvelopeBusinessType[EnvelopeBusinessType["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
223
224
  return EnvelopeBusinessType;
224
225
  }({});
@@ -6631,12 +6632,12 @@ function createBaseListUser() {
6631
6632
  linkmicId: "0",
6632
6633
  linkmicIdStr: "",
6633
6634
  linkStatus: 0,
6634
- linkType: 0,
6635
+ linkType: Buffer.alloc(0),
6635
6636
  userPosition: 0,
6636
6637
  silenceStatus: 0,
6637
6638
  modifyTime: "0",
6638
6639
  linkerId: "0",
6639
- roleType: 0
6640
+ roleType: Buffer.alloc(0)
6640
6641
  };
6641
6642
  }
6642
6643
  const ListUser = {
@@ -6645,12 +6646,12 @@ const ListUser = {
6645
6646
  if (message.linkmicId !== "0") writer.uint32(16).int64(message.linkmicId);
6646
6647
  if (message.linkmicIdStr !== "") writer.uint32(26).string(message.linkmicIdStr);
6647
6648
  if (message.linkStatus !== 0) writer.uint32(32).int32(message.linkStatus);
6648
- if (message.linkType !== 0) writer.uint32(40).int32(message.linkType);
6649
+ if (message.linkType.length !== 0) writer.uint32(42).bytes(message.linkType);
6649
6650
  if (message.userPosition !== 0) writer.uint32(48).int32(message.userPosition);
6650
6651
  if (message.silenceStatus !== 0) writer.uint32(56).int32(message.silenceStatus);
6651
6652
  if (message.modifyTime !== "0") writer.uint32(64).int64(message.modifyTime);
6652
6653
  if (message.linkerId !== "0") writer.uint32(72).int64(message.linkerId);
6653
- if (message.roleType !== 0) writer.uint32(80).int32(message.roleType);
6654
+ if (message.roleType.length !== 0) writer.uint32(82).bytes(message.roleType);
6654
6655
  return writer;
6655
6656
  },
6656
6657
  decode(input, length) {
@@ -6677,8 +6678,8 @@ const ListUser = {
6677
6678
  message.linkStatus = reader.int32();
6678
6679
  continue;
6679
6680
  case 5:
6680
- if (tag !== 40) break;
6681
- message.linkType = reader.int32();
6681
+ if (tag !== 42) break;
6682
+ message.linkType = Buffer.from(reader.bytes());
6682
6683
  continue;
6683
6684
  case 6:
6684
6685
  if (tag !== 48) break;
@@ -6697,8 +6698,8 @@ const ListUser = {
6697
6698
  message.linkerId = reader.int64().toString();
6698
6699
  continue;
6699
6700
  case 10:
6700
- if (tag !== 80) break;
6701
- message.roleType = reader.int32();
6701
+ if (tag !== 82) break;
6702
+ message.roleType = Buffer.from(reader.bytes());
6702
6703
  continue;
6703
6704
  }
6704
6705
  if ((tag & 7) === 4 || tag === 0) break;
@@ -8704,7 +8705,7 @@ const AllListUser = {
8704
8705
  function createBaseLinkLayerListUser() {
8705
8706
  return {
8706
8707
  user: void 0,
8707
- linkmicId: "0",
8708
+ linkmicId: "",
8708
8709
  pos: void 0,
8709
8710
  linkedTimeNano: "0",
8710
8711
  appVersion: "",
@@ -8714,7 +8715,7 @@ function createBaseLinkLayerListUser() {
8714
8715
  const LinkLayerListUser = {
8715
8716
  encode(message, writer = new BinaryWriter()) {
8716
8717
  if (message.user !== void 0) User.encode(message.user, writer.uint32(10).fork()).join();
8717
- if (message.linkmicId !== "0") writer.uint32(16).int64(message.linkmicId);
8718
+ if (message.linkmicId !== "") writer.uint32(18).string(message.linkmicId);
8718
8719
  if (message.pos !== void 0) Position.encode(message.pos, writer.uint32(26).fork()).join();
8719
8720
  if (message.linkedTimeNano !== "0") writer.uint32(32).int64(message.linkedTimeNano);
8720
8721
  if (message.appVersion !== "") writer.uint32(42).string(message.appVersion);
@@ -8733,8 +8734,8 @@ const LinkLayerListUser = {
8733
8734
  message.user = User.decode(reader, reader.uint32());
8734
8735
  continue;
8735
8736
  case 2:
8736
- if (tag !== 16) break;
8737
- message.linkmicId = reader.int64().toString();
8737
+ if (tag !== 18) break;
8738
+ message.linkmicId = reader.string();
8738
8739
  continue;
8739
8740
  case 3:
8740
8741
  if (tag !== 26) break;
package/dist/web/v2.d.ts CHANGED
@@ -200,6 +200,7 @@ declare enum EnvelopeBusinessType {
200
200
  BusinessTypePlatformMerch = 5,
201
201
  BusinessTypeEoYDiamond = 6,
202
202
  BusinessTypeFanClubGtM = 7,
203
+ BusinessTypeSuperFanBox = 19,
203
204
  UNRECOGNIZED = -1
204
205
  }
205
206
  declare enum EnvelopeFollowShowStatus {
@@ -1878,12 +1879,12 @@ interface ListUser {
1878
1879
  linkmicId: string;
1879
1880
  linkmicIdStr: string;
1880
1881
  linkStatus: LinkmicRoleType;
1881
- linkType: LinkType;
1882
+ linkType: Uint8Array;
1882
1883
  userPosition: number;
1883
1884
  silenceStatus: LinkSilenceStatus;
1884
1885
  modifyTime: string;
1885
1886
  linkerId: string;
1886
- roleType: LinkRoleType;
1887
+ roleType: Uint8Array;
1887
1888
  }
1888
1889
  /** it is just empty */
1889
1890
  interface LinkerCloseContent {}
package/dist/web/v2.js CHANGED
@@ -219,6 +219,7 @@ let EnvelopeBusinessType = /* @__PURE__ */ function(EnvelopeBusinessType) {
219
219
  EnvelopeBusinessType[EnvelopeBusinessType["BusinessTypePlatformMerch"] = 5] = "BusinessTypePlatformMerch";
220
220
  EnvelopeBusinessType[EnvelopeBusinessType["BusinessTypeEoYDiamond"] = 6] = "BusinessTypeEoYDiamond";
221
221
  EnvelopeBusinessType[EnvelopeBusinessType["BusinessTypeFanClubGtM"] = 7] = "BusinessTypeFanClubGtM";
222
+ EnvelopeBusinessType[EnvelopeBusinessType["BusinessTypeSuperFanBox"] = 19] = "BusinessTypeSuperFanBox";
222
223
  EnvelopeBusinessType[EnvelopeBusinessType["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
223
224
  return EnvelopeBusinessType;
224
225
  }({});
@@ -6631,12 +6632,12 @@ function createBaseListUser() {
6631
6632
  linkmicId: "0",
6632
6633
  linkmicIdStr: "",
6633
6634
  linkStatus: 0,
6634
- linkType: 0,
6635
+ linkType: new Uint8Array(0),
6635
6636
  userPosition: 0,
6636
6637
  silenceStatus: 0,
6637
6638
  modifyTime: "0",
6638
6639
  linkerId: "0",
6639
- roleType: 0
6640
+ roleType: new Uint8Array(0)
6640
6641
  };
6641
6642
  }
6642
6643
  const ListUser = {
@@ -6645,12 +6646,12 @@ const ListUser = {
6645
6646
  if (message.linkmicId !== "0") writer.uint32(16).int64(message.linkmicId);
6646
6647
  if (message.linkmicIdStr !== "") writer.uint32(26).string(message.linkmicIdStr);
6647
6648
  if (message.linkStatus !== 0) writer.uint32(32).int32(message.linkStatus);
6648
- if (message.linkType !== 0) writer.uint32(40).int32(message.linkType);
6649
+ if (message.linkType.length !== 0) writer.uint32(42).bytes(message.linkType);
6649
6650
  if (message.userPosition !== 0) writer.uint32(48).int32(message.userPosition);
6650
6651
  if (message.silenceStatus !== 0) writer.uint32(56).int32(message.silenceStatus);
6651
6652
  if (message.modifyTime !== "0") writer.uint32(64).int64(message.modifyTime);
6652
6653
  if (message.linkerId !== "0") writer.uint32(72).int64(message.linkerId);
6653
- if (message.roleType !== 0) writer.uint32(80).int32(message.roleType);
6654
+ if (message.roleType.length !== 0) writer.uint32(82).bytes(message.roleType);
6654
6655
  return writer;
6655
6656
  },
6656
6657
  decode(input, length) {
@@ -6677,8 +6678,8 @@ const ListUser = {
6677
6678
  message.linkStatus = reader.int32();
6678
6679
  continue;
6679
6680
  case 5:
6680
- if (tag !== 40) break;
6681
- message.linkType = reader.int32();
6681
+ if (tag !== 42) break;
6682
+ message.linkType = reader.bytes();
6682
6683
  continue;
6683
6684
  case 6:
6684
6685
  if (tag !== 48) break;
@@ -6697,8 +6698,8 @@ const ListUser = {
6697
6698
  message.linkerId = reader.int64().toString();
6698
6699
  continue;
6699
6700
  case 10:
6700
- if (tag !== 80) break;
6701
- message.roleType = reader.int32();
6701
+ if (tag !== 82) break;
6702
+ message.roleType = reader.bytes();
6702
6703
  continue;
6703
6704
  }
6704
6705
  if ((tag & 7) === 4 || tag === 0) break;
@@ -8704,7 +8705,7 @@ const AllListUser = {
8704
8705
  function createBaseLinkLayerListUser() {
8705
8706
  return {
8706
8707
  user: void 0,
8707
- linkmicId: "0",
8708
+ linkmicId: "",
8708
8709
  pos: void 0,
8709
8710
  linkedTimeNano: "0",
8710
8711
  appVersion: "",
@@ -8714,7 +8715,7 @@ function createBaseLinkLayerListUser() {
8714
8715
  const LinkLayerListUser = {
8715
8716
  encode(message, writer = new BinaryWriter()) {
8716
8717
  if (message.user !== void 0) User.encode(message.user, writer.uint32(10).fork()).join();
8717
- if (message.linkmicId !== "0") writer.uint32(16).int64(message.linkmicId);
8718
+ if (message.linkmicId !== "") writer.uint32(18).string(message.linkmicId);
8718
8719
  if (message.pos !== void 0) Position.encode(message.pos, writer.uint32(26).fork()).join();
8719
8720
  if (message.linkedTimeNano !== "0") writer.uint32(32).int64(message.linkedTimeNano);
8720
8721
  if (message.appVersion !== "") writer.uint32(42).string(message.appVersion);
@@ -8733,8 +8734,8 @@ const LinkLayerListUser = {
8733
8734
  message.user = User.decode(reader, reader.uint32());
8734
8735
  continue;
8735
8736
  case 2:
8736
- if (tag !== 16) break;
8737
- message.linkmicId = reader.int64().toString();
8737
+ if (tag !== 18) break;
8738
+ message.linkmicId = reader.string();
8738
8739
  continue;
8739
8740
  case 3:
8740
8741
  if (tag !== 26) break;
package/package.json CHANGED
@@ -1,9 +1,12 @@
1
1
  {
2
2
  "name": "tiktok-live-proto",
3
- "version": "0.1.0",
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",
7
+ "repository": {
8
+ "url": "https://github.com/isaackogan/TikTok-Webcast-Protobuf"
9
+ },
7
10
  "sideEffects": false,
8
11
  "files": [
9
12
  "dist",
@@ -31,19 +34,22 @@
31
34
  }
32
35
  }
33
36
  },
37
+ "scripts": {
38
+ "generate": "tsx scripts/generate.mts",
39
+ "build": "tsdown",
40
+ "clean": "rm -rf dist tmp",
41
+ "prepack": "npm run build"
42
+ },
34
43
  "dependencies": {
35
44
  "@bufbuild/protobuf": "^2.2.5"
36
45
  },
37
46
  "devDependencies": {
47
+ "@types/js-yaml": "^4.0.9",
38
48
  "@types/node": "^20.0.0",
49
+ "js-yaml": "^4.1.0",
39
50
  "ts-proto": "^2.11.6",
40
51
  "tsdown": "^0.21.0",
41
52
  "tsx": "^4.19.0",
42
53
  "typescript": "^5.6.0"
43
- },
44
- "scripts": {
45
- "generate": "tsx scripts/generate.mts",
46
- "build": "tsdown",
47
- "clean": "rm -rf dist tmp"
48
54
  }
49
- }
55
+ }