tiktok-live-proto
v0.2.2
Published
Clean-room TypeScript bindings for the TikTok Webcast Protobuf schema.
Downloads
1,132
Readme
tiktok-live-proto
TypeScript bindings for the TikTok Webcast Protobuf schema.
Install
npm install tiktok-live-protoUsage
Import the version you need via subpath:
// v1 schema
import { WebcastResponse, WebcastChatMessage } from 'tiktok-live-proto/v1';
// v2 schema
import { WebcastResponse } from 'tiktok-live-proto/v2';
// v3 schema (multi-package; collisions disambiguated via disambiguation.yaml)
import { EnvelopeEnigmaInfo, AnchorSubWaveChallengeSettings } from 'tiktok-live-proto/v3';The correct runtime build (Node vs. browser) is selected automatically by the
resolver via the exports conditions. Types are a single shared .d.ts tree,
so tsserver only indexes what you import.
Layout
src/slim/v1/**/*.proto,src/slim/v2/**/*.proto(in the repo root) — canonical schemastargets/typescript/tiktok-live-proto/src/generated/{v1,v2}.ts— generated byts-proto, committed to the repo, regenerated by CI when any.protoundersrc/slim/changesdist/{node,web,types}/{v1,v2}.*— bundled output, produced bytsdown, not committed
