serveLogin
function serveLogin(res)
changelogkit static export (read-only): 2866 symbols from 1 sources.
Supported languages: Swift、JavaScript/TypeScript、Python、C/C++、Kotlin、Java、Go、Rust、C#、Ruby、Dart
function serveLogin(res)
function createAudienceRoutes(tracker)
export class AutoClipManager
No adjacent doc comment
reset()
observeTransport(meta, now = this.now())
onChatMessage(event, now = this.now())
updateViewers(viewers, now = this.now())
updatePlatformViewers(platform, viewers, now = this.now())
pruneRecentChatters(now = this.now())
recentDistinctUsers(platform, now = this.now())
totalViewers(now = this.now())
soloModeFor(platform, now = this.now())
_metrics(now)
getStats(now = this.now())
getHistory()
clearHistory()
getConfig()
evaluate(now = this.now())
function browserController()
function serveBrowser(req, res, authorized)
async function openTikTokLive(handle)
function json(res, status, value)
No adjacent doc comment
function createDiagnosticsRoutes(store,
function target()
No adjacent doc comment
function authorizedIntake(req)
No adjacent doc comment
function servePage(req, res)
No adjacent doc comment
function serveApi(req, res, authorized = false)
No adjacent doc comment
function serveIntake(req, res)
No adjacent doc comment
function serveSocket(req, res, authorized = false)
No adjacent doc comment
function gitApply(pkgDir, patchFile, extra)
No adjacent doc comment
function run(cmd, args, opts =
No adjacent doc comment
function readVersion(pkg)
No adjacent doc comment
function copyFiltered(src, dest)
No adjacent doc comment
function normalizePaths(patch)
export declare class EventEmitter
No adjacent doc comment
on(event: string, listener: Function): void;
once(event: string, listener: Function): void;
off(event: string, listener: Function): void;
removeAllListeners(event?: string): void;
emit(event: string, ...args: any[]): boolean;
listenerCount(event: string): number;
eventNames(): string[];
setMaxListeners(n: number): void;
getMaxListeners(): number;
prependListener(event: string, listener: Function): void;
prependOnceListener(event: string, listener: Function): void;
export declare class MessageParser
No adjacent doc comment
type: KickEventType;
No adjacent doc comment
data: KickEventData;
No adjacent doc comment
legacyType?: string;
No adjacent doc comment
static isValidMessage(message: string): boolean;
static extractEventType(rawMessage: string): string | null;
export declare class WebSocketManager extends EventEmitter
No adjacent doc comment
constructor(options?: ExtendedKickWebSocketOptions);
No adjacent doc comment
connect(channelName: string): Promise<void>;
setWebSocketConfig(config: WebSocketConfig): void;
getWebSocketConfig(): WebSocketConfig;
resetWebSocketConfig(): void;
addCustomSubscriptions(channels: string[]): void;
addSubscriptionMessages(messages: SubscriptionMessage[]): void;
clearCustomSubscriptions(): void;
subscribeToChannel(channel: string): void;
unsubscribeFromChannel(channel: string): void;
sendPing(): void;
No adjacent doc comment
disconnect(): void;
getChannelInfo(channelName: string): Promise<KickChannel>;
isConnected(): boolean;
getConnectionState(): ConnectionState;
getChannelName(): string;
getChannelId(): number;
updateOptions(newOptions: Partial<ExtendedKickWebSocketOptions>): void;
channels: string[];
No adjacent doc comment
messages: SubscriptionMessage[];
No adjacent doc comment
class EventEmitter
constructor()
No adjacent doc comment
on(event, listener)
once(event, listener)
off(event, listener)
removeAllListeners(event)
emit(event, ...args)
listenerCount(event)
eventNames()
setMaxListeners(n)
getMaxListeners()
prependListener(event, listener)
prependOnceListener(event, listener)
class MessageParser
No adjacent doc comment
static parseMessage(rawMessage)
static parseChatMessage(data)
static parseMessageDeleted(data)
static parseUserBanned(data)
static parseUserUnbanned(data)
static parseSubscription(data)
static parseGiftedSubscriptions(data)
static parsePinnedMessageCreated(data)
static parseStreamHost(data)
static parsePollUpdate(data)
static parsePollDelete(data)
static parseRewardRedeemed(data)
static parseKicksGifted(data)
static cleanEmotes(content)
static isValidMessage(message)
static extractEventType(rawMessage)
class WebSocketManager extends EventEmitter
No adjacent doc comment
async connect(channelName)
async performConnection()
buildWebSocketUrl()
setWebSocketConfig(config)
getWebSocketConfig()
resetWebSocketConfig()
addCustomSubscriptions(channels)
addSubscriptionMessages(messages)
clearCustomSubscriptions()
getCustomSubscriptions()
setupWebSocketHandlers()
subscribeToChannels()
sendSubscription(message)
subscribeToChannel(channel)
unsubscribeFromChannel(channel)
sendPing()
No adjacent doc comment
handleMessage(rawMessage)
isEventFiltered(eventType)
handleDisconnect(code, reason)
handleConnectionError(error)
scheduleReconnect()
disconnect()
async getChannelInfo(channelName)
setConnectionState(state)
log(...args)
on(event, handler)
once(event, handler)
off(event, handler)
isConnected()
getConnectionState()
getChannelName()
getChannelId()
updateOptions(newOptions)
export var KickEvent;
export var KickEvents;
export const LEGACY_EVENT_MAPPING
export const KICK_EVENTS
export class KickWebSocket extends WebSocketManager
onAllEvents(handler)
onChatEvents(handler)
onUserEvents(handler)
onStreamEvents(handler)
static createDebug(channelName)
export declare class KickWebSocket extends WebSocketManager
constructor(options?: ExtendedKickWebSocketOptions);
No adjacent doc comment
onAllEvents(handler: EventHandler<unknown>): void;
onChatEvents(handler: EventHandler<unknown>): void;
onUserEvents(handler: EventHandler<unknown>): void;
onStreamEvents(handler: EventHandler<unknown>): void;
static createDebug(channelName?: string): KickWebSocket;
class EventEmitter
constructor()
No adjacent doc comment
on(event, listener)
once(event, listener)
off(event, listener)
removeAllListeners(event)
emit(event, ...args)
listenerCount(event)
eventNames()
setMaxListeners(n)
getMaxListeners()
prependListener(event, listener)
prependOnceListener(event, listener)
class MessageParser
No adjacent doc comment
static parseMessage(rawMessage)
static parseChatMessage(data)
static parseMessageDeleted(data)
static parseUserBanned(data)
static parseUserUnbanned(data)
static parseSubscription(data)
static parseGiftedSubscriptions(data)
static parsePinnedMessageCreated(data)
static parseStreamHost(data)
static parsePollUpdate(data)
static parsePollDelete(data)
static parseRewardRedeemed(data)
static parseKicksGifted(data)
static cleanEmotes(content)
static isValidMessage(message)
static extractEventType(rawMessage)
class WebSocketManager extends EventEmitter
No adjacent doc comment
async connect(channelName)
async performConnection()
buildWebSocketUrl()
setWebSocketConfig(config)
getWebSocketConfig()
resetWebSocketConfig()
addCustomSubscriptions(channels)
addSubscriptionMessages(messages)
clearCustomSubscriptions()
getCustomSubscriptions()
setupWebSocketHandlers()
subscribeToChannels()
sendSubscription(message)
subscribeToChannel(channel)
unsubscribeFromChannel(channel)
sendPing()
No adjacent doc comment
handleMessage(rawMessage)
isEventFiltered(eventType)
handleDisconnect(code, reason)
handleConnectionError(error)
scheduleReconnect()
disconnect()
async getChannelInfo(channelName)
setConnectionState(state)
log(...args)
on(event, handler)
once(event, handler)
off(event, handler)
isConnected()
getConnectionState()
getChannelName()
getChannelId()
updateOptions(newOptions)
export var KickEvent;
export var KickEvents;
export const LEGACY_EVENT_MAPPING
export const KICK_EVENTS
export class KickWebSocket extends WebSocketManager
onAllEvents(handler)
onChatEvents(handler)
onUserEvents(handler)
onStreamEvents(handler)
static createDebug(channelName)
export declare enum KickEvent
No adjacent doc comment
export declare enum KickEvents
No adjacent doc comment
export declare const LEGACY_EVENT_MAPPING: Record<string, string>;
No adjacent doc comment
export interface KickMessage
No adjacent doc comment
id: string;
No adjacent doc comment
content: string;
No adjacent doc comment
type: "message";
No adjacent doc comment
created_at: string;
No adjacent doc comment
id: number;
No adjacent doc comment
username: string;
No adjacent doc comment
slug: string;
No adjacent doc comment
color: string;
No adjacent doc comment
badges: string[];
No adjacent doc comment
id: number;
No adjacent doc comment
channel_id: number;
No adjacent doc comment
export interface KickUser
No adjacent doc comment
id: number;
No adjacent doc comment
username: string;
No adjacent doc comment
slug: string;
No adjacent doc comment
color: string;
No adjacent doc comment
badges: string[];
No adjacent doc comment
export interface KickChannel
No adjacent doc comment
id: number;
No adjacent doc comment
slug: string;
No adjacent doc comment
username: string;
No adjacent doc comment
id: number;
No adjacent doc comment
export interface ChatMessageEvent
No adjacent doc comment
id: string;
No adjacent doc comment
content: string;
No adjacent doc comment
type: "message";
No adjacent doc comment
created_at: string;
No adjacent doc comment
sender: KickUser;
No adjacent doc comment
id: number;
No adjacent doc comment
export interface MessageDeletedEvent
No adjacent doc comment
message_id: string;
No adjacent doc comment
chatroom_id: number;
No adjacent doc comment
type: "message_deleted";
No adjacent doc comment
export interface UserBannedEvent
No adjacent doc comment
username: string;
No adjacent doc comment
type: "user_banned";
No adjacent doc comment
export interface UserUnbannedEvent
No adjacent doc comment
username: string;
No adjacent doc comment
type: "user_unbanned";
No adjacent doc comment
export interface SubscriptionEvent
No adjacent doc comment
username: string;
No adjacent doc comment
type: "subscription";
No adjacent doc comment
export interface GiftedSubscriptionsEvent
No adjacent doc comment
gifted_by: string;
No adjacent doc comment
recipients: string[];
No adjacent doc comment
type: "gifted_subscriptions";
No adjacent doc comment
export interface PinnedMessageCreatedEvent
No adjacent doc comment
message: ChatMessageEvent;
No adjacent doc comment
type: "pinned_message_created";
No adjacent doc comment
export interface StreamHostEvent
No adjacent doc comment
hoster: string;
No adjacent doc comment
hosted_channel: string;
No adjacent doc comment
type: "stream_host";
No adjacent doc comment
export interface PollUpdateEvent
No adjacent doc comment
poll_id: string;
No adjacent doc comment
question: string;
No adjacent doc comment
type: "poll_update";
No adjacent doc comment
id: string;
No adjacent doc comment
text: string;
No adjacent doc comment
votes: number;
No adjacent doc comment
export interface PollDeleteEvent
No adjacent doc comment
poll_id: string;
No adjacent doc comment
type: "poll_delete";
No adjacent doc comment
export interface RewardRedeemedEvent
No adjacent doc comment
reward_title: string;
No adjacent doc comment
user_id: number;
No adjacent doc comment
channel_id: number;
No adjacent doc comment
username: string;
No adjacent doc comment
user_input: string;
No adjacent doc comment
reward_background_color: string;
No adjacent doc comment
type: "reward_redeemed";
No adjacent doc comment
export interface KicksGiftedEvent
No adjacent doc comment
gift_transaction_id: string;
No adjacent doc comment
message: string;
No adjacent doc comment
type: "kicks_gifted";
No adjacent doc comment
id: number;
No adjacent doc comment
username: string;
No adjacent doc comment
username_color: string;
No adjacent doc comment
gift_id: string;
No adjacent doc comment
name: string;
No adjacent doc comment
amount: number;
No adjacent doc comment
type: string;
No adjacent doc comment
tier: string;
No adjacent doc comment
character_limit: number;
No adjacent doc comment
pinned_time: number;
No adjacent doc comment
export interface PointsUpdatedEvent
No adjacent doc comment
reason: string;
No adjacent doc comment
points: number;
No adjacent doc comment
balance: number;
No adjacent doc comment
user_id: number;
No adjacent doc comment
channel_id: number;
No adjacent doc comment
type: "points_updated";
No adjacent doc comment
export interface SubscriptionSucceededEvent
No adjacent doc comment
channel: string;
No adjacent doc comment
type: "subscription_succeeded";
No adjacent doc comment
export declare const KICK_EVENTS: readonly ["ChatMessage", "MessageDeleted", "UserBanned", "UserUnbanned", "Subscription", "GiftedSubscriptions", "PinnedMessageCreated", "StreamHost", "PollUpdate", "PollDelete", "RewardRedeemed", "KicksGifted", "PointsUpdated", "ready", "disconnect", "error", "rawMessage", "subscriptionSucceeded"];
No adjacent doc comment
export type KickEventType = (typeof KICK_EVENTS)[number];
No adjacent doc comment
export interface EventDataMap
No adjacent doc comment
ChatMessage: ChatMessageEvent;
No adjacent doc comment
MessageDeleted: MessageDeletedEvent;
No adjacent doc comment
UserBanned: UserBannedEvent;
No adjacent doc comment
UserUnbanned: UserUnbannedEvent;
No adjacent doc comment
Subscription: SubscriptionEvent;
No adjacent doc comment
GiftedSubscriptions: GiftedSubscriptionsEvent;
No adjacent doc comment
PinnedMessageCreated: PinnedMessageCreatedEvent;
No adjacent doc comment
StreamHost: StreamHostEvent;
No adjacent doc comment
PollUpdate: PollUpdateEvent;
No adjacent doc comment
PollDelete: PollDeleteEvent;
No adjacent doc comment
RewardRedeemed: RewardRedeemedEvent;
No adjacent doc comment
KicksGifted: KicksGiftedEvent;
No adjacent doc comment
PointsUpdated: PointsUpdatedEvent;
No adjacent doc comment
subscriptionSucceeded: SubscriptionSucceededEvent;
No adjacent doc comment
error: Error;
No adjacent doc comment
rawMessage: string;
No adjacent doc comment
channel: string;
No adjacent doc comment
reason?: string;
No adjacent doc comment
export type KickEventData = ChatMessageEvent | MessageDeletedEvent | UserBannedEvent | UserUnbannedEvent | SubscriptionEvent | GiftedSubscriptionsEvent | PinnedMessageCreatedEvent | StreamHostEvent | PollUpdateEvent | PollDeleteEvent | RewardRedeemedEvent | KicksGiftedEvent | PointsUpdatedEvent | SubscriptionSucceededEvent |
No adjacent doc comment
channel: string;
No adjacent doc comment
reason?: string;
No adjacent doc comment
export interface KickWebSocketOptions
No adjacent doc comment
debug?: boolean;
No adjacent doc comment
autoReconnect?: boolean;
No adjacent doc comment
reconnectInterval?: number;
No adjacent doc comment
connectionTimeout?: number;
No adjacent doc comment
filteredEvents?: KickEventType[];
No adjacent doc comment
export interface WebSocketMessage
No adjacent doc comment
event: string;
No adjacent doc comment
data: string;
No adjacent doc comment
channel?: string;
No adjacent doc comment
export type ConnectionState = "disconnected" | "connecting" | "connected" | "reconnecting" | "error";
No adjacent doc comment
export type EventHandler<T = unknown> = (data: T) => void;
No adjacent doc comment
export interface IKickWebSocket
No adjacent doc comment
connect(channelName: string): Promise<void>;
No adjacent doc comment
disconnect(): void;
No adjacent doc comment
isConnected(): boolean;
No adjacent doc comment
getConnectionState(): ConnectionState;
No adjacent doc comment
export interface RawChatMessageData
No adjacent doc comment
id: string;
No adjacent doc comment
content: string;
No adjacent doc comment
created_at: string;
No adjacent doc comment
id: number;
No adjacent doc comment
username: string;
No adjacent doc comment
slug: string;
No adjacent doc comment
color?: string;
No adjacent doc comment
badges?: string[];
No adjacent doc comment
profile_picture?: string;
No adjacent doc comment
id: number;
No adjacent doc comment
export interface RawMessageDeletedData
No adjacent doc comment
message_id: string;
No adjacent doc comment
chatroom_id: number;
No adjacent doc comment
export interface RawUserBannedData
No adjacent doc comment
username?: string;
No adjacent doc comment
banned_username?: string;
No adjacent doc comment
export interface RawUserUnbannedData
No adjacent doc comment
username?: string;
No adjacent doc comment
unbanned_username?: string;
No adjacent doc comment
export interface RawSubscriptionData
No adjacent doc comment
username?: string;
No adjacent doc comment
username: string;
No adjacent doc comment
export interface RawGiftedSubscriptionsData
No adjacent doc comment
gifted_by?: string;
No adjacent doc comment
username: string;
No adjacent doc comment
username: string;
No adjacent doc comment
export interface RawPinnedMessageCreatedData
No adjacent doc comment
message: RawChatMessageData;
No adjacent doc comment
export interface RawStreamHostData
No adjacent doc comment
username: string;
No adjacent doc comment
username: string;
No adjacent doc comment
export interface RawPollUpdateData
No adjacent doc comment
id: string;
No adjacent doc comment
question: string;
No adjacent doc comment
id: string;
No adjacent doc comment
text: string;
No adjacent doc comment
votes?: number;
No adjacent doc comment
export interface RawPollDeleteData
No adjacent doc comment
id: string;
No adjacent doc comment
export interface RawRewardRedeemedData
No adjacent doc comment
reward_title: string;
No adjacent doc comment
user_id: number;
No adjacent doc comment
channel_id: number;
No adjacent doc comment
username: string;
No adjacent doc comment
user_input: string;
No adjacent doc comment
reward_background_color: string;
No adjacent doc comment
export interface RawKicksGiftedData
No adjacent doc comment
gift_transaction_id: string;
No adjacent doc comment
message: string;
No adjacent doc comment
id: number;
No adjacent doc comment
username: string;
No adjacent doc comment
username_color: string;
No adjacent doc comment
gift_id: string;
No adjacent doc comment
name: string;
No adjacent doc comment
amount: number;
No adjacent doc comment
type: string;
No adjacent doc comment
tier: string;
No adjacent doc comment
character_limit: number;
No adjacent doc comment
pinned_time: number;
No adjacent doc comment
export interface SubscriptionMessage
No adjacent doc comment
event: string;
No adjacent doc comment
auth?: string;
No adjacent doc comment
channel?: string;
No adjacent doc comment
export interface WebSocketConfig
No adjacent doc comment
url?: string;
No adjacent doc comment
params?: Record<string, string>;
No adjacent doc comment
export interface ExtendedKickWebSocketOptions extends KickWebSocketOptions
No adjacent doc comment
websocketConfig?: WebSocketConfig;
No adjacent doc comment
customSubscriptions?: string[];
No adjacent doc comment
subscriptionMessages?: SubscriptionMessage[];
No adjacent doc comment
export var KickEvent;
export var KickEvents;
export async function basicUsage(channelName: string='namechannel')
export async function getChannelInfo(channelName: string='namechannel')
No adjacent doc comment
export async function ws3(channelName: string = 'namechannel')
export function activityLogger()
export function multiChannelMonitor()
function disconnectAll()
export function notificationSystem()
function sendNotification(message: string)
No adjacent doc comment
export const examples
export function runAllExamples()
type LocationPreset =
lang: string;
No adjacent doc comment
lang_country: string;
No adjacent doc comment
country: string;
No adjacent doc comment
tz_name: string;
No adjacent doc comment
type DevicePreset =
No adjacent doc comment
browser_version: string;
No adjacent doc comment
browser_name: string;
No adjacent doc comment
browser_platform: string;
No adjacent doc comment
user_agent: string;
No adjacent doc comment
os: string;
No adjacent doc comment
type ScreenPreset =
No adjacent doc comment
screen_width: number;
No adjacent doc comment
screen_height: number;
No adjacent doc comment
type GetWebConfigParams =
No adjacent doc comment
screen: ScreenPreset;
No adjacent doc comment
location: LocationPreset;
No adjacent doc comment
device: DevicePreset;
No adjacent doc comment
type WebSocketDynamicParams =
No adjacent doc comment
roomId: string;
No adjacent doc comment
baseUrl: string;
No adjacent doc comment
wsParams: WebSocketParams;
No adjacent doc comment
wsHeaders: Record<string, string>;
No adjacent doc comment
type GetWebSocketConfigParams = GetWebConfigParams;
No adjacent doc comment
interface AbstractWebcastCookieJar extends PromiseCookieJar
No adjacent doc comment
processSetCookieHeader(setCookieHeader: unknown): Promise<void>;
No adjacent doc comment
getSessionBundle(): Promise<CookieSessionBundle | null>;
No adjacent doc comment
setSessionBundle(session: CookieSessionBundle): Promise<void>;
No adjacent doc comment
type WebcastGotHttpConfig = Omit<OptionsInit, 'searchParams' | 'cookieJar'> &
searchParams?: Record<string, string>;
No adjacent doc comment
cookieJar: AbstractWebcastCookieJar;
No adjacent doc comment
declare const WebSocketConfigDefaults:
TIKTOK_HOST_WS: string;
No adjacent doc comment
version_code: string;
No adjacent doc comment
aid: string;
No adjacent doc comment
app_language: string;
No adjacent doc comment
app_name: string;
No adjacent doc comment
browser_platform: string;
No adjacent doc comment
browser_language: string;
No adjacent doc comment
browser_name: string;
No adjacent doc comment
browser_version: string;
No adjacent doc comment
browser_online: string;
No adjacent doc comment
cookie_enabled: string;
No adjacent doc comment
tz_name: string;
No adjacent doc comment
device_platform: string;
No adjacent doc comment
identity: string;
No adjacent doc comment
live_id: string;
No adjacent doc comment
webcast_language: string;
No adjacent doc comment
ws_direct: string;
No adjacent doc comment
sup_ws_ds_opt: string;
No adjacent doc comment
update_version_code: string;
No adjacent doc comment
did_rule: string;
No adjacent doc comment
screen_height: string;
No adjacent doc comment
screen_width: string;
No adjacent doc comment
heartbeat_duration: string;
No adjacent doc comment
resp_content_type: string;
No adjacent doc comment
history_comment_count: string;
No adjacent doc comment
client_enter: string;
No adjacent doc comment
last_rtt: string;
No adjacent doc comment
DEFAULT_WS_CLIENT_PARAMS_APPEND_PARAMETER: string;
No adjacent doc comment
DEFAULT_WS_PING_INTERVAL: number;
No adjacent doc comment
type WebcastWebSocketConfigDefaults = typeof WebSocketConfigDefaults;
No adjacent doc comment
type WebcastWebSocketConfig = WebcastWebSocketConfigDefaults & WebSocketDynamicParams;
No adjacent doc comment
declare function getWebSocketConfigDefaults(
declare const WebcastDeserializeConfig: IWebcastDeserializeConfig;
declare function deserializeMessage<T extends keyof WebcastMessage>(protoName: T, binaryMessage: Buffer): WebcastMessage[T];
No adjacent doc comment
declare function deserializeWebSocketMessage(binaryMessage: Uint8Array): Promise<DecodedWebcastPushFrame>;
No adjacent doc comment
declare function validateAndNormalizeUniqueId(uniqueId: unknown): string;
declare function createBaseWebcastPushFrame(overrides: Partial<WebcastPushFrame>): BinaryWriter;
declare function generateUniqId(): string;
declare const WebcastWebConfigDefaults:
TIKTOK_HOST_WEB: string;
No adjacent doc comment
TIKTOK_HOST_WEBCAST: string;
No adjacent doc comment
TIKTOK_HTTP_ORIGIN: string;
No adjacent doc comment
Cookie: string;
No adjacent doc comment
Connection: string;
No adjacent doc comment
Accept: string;
No adjacent doc comment
Referer: string;
No adjacent doc comment
Origin: string;
No adjacent doc comment
aid: string;
No adjacent doc comment
app_language: string;
No adjacent doc comment
app_name: string;
No adjacent doc comment
browser_language: string;
No adjacent doc comment
browser_name: string;
No adjacent doc comment
browser_online: string;
No adjacent doc comment
browser_platform: string;
No adjacent doc comment
browser_version: string;
No adjacent doc comment
cookie_enabled: string;
No adjacent doc comment
device_platform: string;
No adjacent doc comment
focus_state: string;
No adjacent doc comment
from_page: string;
No adjacent doc comment
history_len: string;
No adjacent doc comment
is_fullscreen: string;
No adjacent doc comment
is_page_visible: string;
No adjacent doc comment
screen_height: string;
No adjacent doc comment
screen_width: string;
No adjacent doc comment
tz_name: string;
No adjacent doc comment
referer: string;
No adjacent doc comment
root_referer: string;
No adjacent doc comment
channel: string;
No adjacent doc comment
data_collection_enabled: string;
No adjacent doc comment
os: string;
No adjacent doc comment
priority_region: string;
No adjacent doc comment
region: string;
No adjacent doc comment
user_is_login: string;
No adjacent doc comment
webcast_language: string;
No adjacent doc comment
device_id: string;
No adjacent doc comment
SESSION_COOKIE_NAMES: string[];
No adjacent doc comment
TARGET_IDC_COOKIE_NAME: string;
No adjacent doc comment
type WebcastWebConfigDefaults = typeof WebcastWebConfigDefaults;
No adjacent doc comment
interface MessageFns<T>
encode(message: T, writer?: BinaryWriter): BinaryWriter;
No adjacent doc comment
decode(input: BinaryReader | Uint8Array, length?: number): T;
No adjacent doc comment
type CookieSessionBundle =
No adjacent doc comment
type: 'cookie';
No adjacent doc comment
ttTargetIdc: string;
No adjacent doc comment
sessionId: string;
No adjacent doc comment
type OAuthTokenSessionBundle =
No adjacent doc comment
type: 'oAuthToken';
No adjacent doc comment
value: string;
No adjacent doc comment
type SessionBundle =
No adjacent doc comment
cookie: CookieSessionBundle;
No adjacent doc comment
oAuthToken: OAuthTokenSessionBundle;
No adjacent doc comment
type SessionBundleWithCookie = Omit<Partial<SessionBundle>, 'cookie'> &
No adjacent doc comment
cookie: SessionBundle['cookie'];
No adjacent doc comment
type TikTokLiveConnectionBundledAuthOptions =
No adjacent doc comment
useMobile: true;
No adjacent doc comment
session: SessionBundleWithCookie;
No adjacent doc comment
authenticateWs: true;
No adjacent doc comment
useMobile?: false;
No adjacent doc comment
session: SessionBundleWithCookie;
No adjacent doc comment
authenticateWs?: true;
No adjacent doc comment
useMobile?: false;
No adjacent doc comment
session?: Partial<SessionBundle>;
No adjacent doc comment
authenticateWs?: false;
No adjacent doc comment
type TikTokLiveConnectionProviderOptions =
No adjacent doc comment
signApiKey?: string;
eulerApiInstance?: EulerStreamApiClient;
type TikTokLiveConnectionOptions = TikTokLiveConnectionProviderOptions &
No adjacent doc comment
processInitialData: boolean;
No adjacent doc comment
fetchRoomInfoOnConnect: boolean;
No adjacent doc comment
enableExtendedGiftInfo: boolean;
No adjacent doc comment
clientPresets?: GetWebConfigParams;
No adjacent doc comment
webClientOptions?: WebcastGotHttpConfig;
No adjacent doc comment
wsClientOptions?: ClientOptions;
No adjacent doc comment
webConfigOverrides?: Partial<WebcastWebConfigDefaults>;
No adjacent doc comment
wsConfigOverrides?: Partial<WebcastWebSocketConfigDefaults>;
No adjacent doc comment
type TikTokLiveConstructorConnectionOptions = Partial<TikTokLiveConnectionOptions> & TikTokLiveConnectionProviderOptions;
No adjacent doc comment
type TikTokLiveConnectionMutableOptions = Pick<TikTokLiveConnectionOptions, 'processInitialData' | 'fetchRoomInfoOnConnect' | 'enableExtendedGiftInfo' | 'authenticateWs' | 'useMobile'>;
No adjacent doc comment
type RoomInfo = Record<string, any> &
No adjacent doc comment
status: number;
No adjacent doc comment
type RoomGiftInfo = any;
No adjacent doc comment
type DecodedWebcastPushFrame = WebcastPushFrame &
No adjacent doc comment
protoMessageFetchResult?: ProtoMessageFetchResult;
No adjacent doc comment
type ExtractMessageType<T> = T extends MessageFns<infer U> ? U : never;
No adjacent doc comment
type WebcastMessage =
No adjacent doc comment
type HasCommon<T> = T extends
No adjacent doc comment
common: any;
No adjacent doc comment
type WebcastEventMessage =
No adjacent doc comment
type IWebcastDeserializeConfig =
No adjacent doc comment
skipMessageTypes: (keyof WebcastEventMessage)[] | null;
includeMessageTypes: (keyof WebcastEventMessage)[] | null;
showBase64OnDecodeError: boolean;
type DecodedData =
No adjacent doc comment
type: K;
No adjacent doc comment
data: WebcastEventMessage[K];
No adjacent doc comment
interface BaseProtoMessage
No adjacent doc comment
decodedData?: DecodedData;
No adjacent doc comment
decodeError?: any;
No adjacent doc comment
interface WebcastGiftMessage
No adjacent doc comment
extendedGiftInfo?: any;
No adjacent doc comment
type WebcastHttpClientRequestParams = Omit<OptionsInit, 'url' | 'prefixUrl' | 'searchParams' | 'cookieJar' | 'headers'> &
No adjacent doc comment
host: string;
No adjacent doc comment
path: string;
No adjacent doc comment
headers?: Record<string, string>;
No adjacent doc comment
searchParams?: Record<string, string>;
No adjacent doc comment
signRequest: boolean;
No adjacent doc comment
type WebSocketParams =
No adjacent doc comment
compress?: string;
No adjacent doc comment
room_id: string;
No adjacent doc comment
internal_ext: string;
No adjacent doc comment
cursor: string;
No adjacent doc comment
type WebcastWebSocketEventMap =
type WebcastTypedWebSocket = new (...args: any[]) => WebSocket & TypedEventEmitter<WebcastWebSocketEventMap>;
No adjacent doc comment
declare function createWebSocketProvider(webcastWebSocketConfig: WebcastWebSocketConfigDefaults, wsClientOptions?: ClientOptions): (dynamicParams: WebSocketDynamicParams) => WebcastWebSocketClient;
declare const WebcastWebSocketClient_base: WebcastTypedWebSocket;
No adjacent doc comment
declare class WebcastWebSocketClient extends WebcastWebSocketClient_base
No adjacent doc comment
constructor(webcastWebSocketConfig: WebcastWebSocketConfig, wsClientOptions?: ClientOptions);
No adjacent doc comment
get open(): boolean;
No adjacent doc comment
sendBytes(data: Uint8Array): boolean;
switchRooms(roomId: string): void;
declare enum ControlEvent
declare enum WebcastEvent
No adjacent doc comment
declare enum ConnectState
No adjacent doc comment
type EventHandler<T> = (event: T) => void | Promise<void>;
No adjacent doc comment
type ClientEventMap =
No adjacent doc comment
action: ControlAction;
No adjacent doc comment
code: number;
No adjacent doc comment
reason?: string;
No adjacent doc comment
declare const WebcastEventMap: Record<BasicWebcastEventMessage, keyof ClientEventMap>;
No adjacent doc comment
type BasicWebcastEventMessage = keyof Omit<WebcastEventMessage, 'WebcastGiftMessage'>;
No adjacent doc comment
type TikTokLiveConnectionState =
No adjacent doc comment
isConnected: boolean;
No adjacent doc comment
isConnecting: boolean;
No adjacent doc comment
roomId: string;
No adjacent doc comment
roomInfo: RoomInfo | null;
No adjacent doc comment
availableGifts: RoomGiftInfo | null;
No adjacent doc comment
type WebcastTypedClient = new () => TypedEventEmitter<ClientEventMap>;
No adjacent doc comment
type RateLimitedResponse =
headers: Record<string, string | undefined>;
No adjacent doc comment
declare class ConnectError extends Error
No adjacent doc comment
constructor(message: string);
No adjacent doc comment
declare class InvalidUniqueIdError extends Error
No adjacent doc comment
type InvalidResponseErrorConfig =
No adjacent doc comment
routeId: string;
No adjacent doc comment
requestErr?: Error;
No adjacent doc comment
type InvalidRequestErrorConfig =
No adjacent doc comment
routeId: string;
No adjacent doc comment
declare class InvalidResponseError extends Error
No adjacent doc comment
readonly config: InvalidResponseErrorConfig;
No adjacent doc comment
constructor(config: InvalidResponseErrorConfig, ...args: string[]);
No adjacent doc comment
type InvalidResponseCompositeErrorConfig =
No adjacent doc comment
routeId: string;
No adjacent doc comment
requestErrs?: Error[];
No adjacent doc comment
declare class InvalidResponseCompositeError extends Error
No adjacent doc comment
readonly config: InvalidResponseCompositeErrorConfig;
No adjacent doc comment
constructor(config: InvalidResponseCompositeErrorConfig, ...args: any[]);
No adjacent doc comment
declare class InvalidRequestError extends Error
No adjacent doc comment
readonly config: InvalidRequestErrorConfig;
No adjacent doc comment
constructor(config: InvalidRequestErrorConfig, ...args: string[]);
No adjacent doc comment
declare class AlreadyConnectingError extends ConnectError
No adjacent doc comment
declare class AlreadyConnectedError extends ConnectError
No adjacent doc comment
declare class UserOfflineError extends ConnectError
No adjacent doc comment
declare class ConnectTimeoutError extends ConnectError
No adjacent doc comment
declare class InvalidSchemaNameError extends Error
No adjacent doc comment
declare class SchemaDecodeError extends Error
No adjacent doc comment
declare class TikTokLiveError extends Error
No adjacent doc comment
constructor(message: string);
No adjacent doc comment
declare enum ErrorReason
No adjacent doc comment
declare class SignAPIError extends TikTokLiveError
No adjacent doc comment
reason: ErrorReason;
No adjacent doc comment
readonly requestId?: string;
No adjacent doc comment
readonly agentId?: string;
No adjacent doc comment
constructor(reason: ErrorReason, requestId?: string, agentId?: string, ...args: (string | Error | undefined)[]);
No adjacent doc comment
static formatSignServerMessage(message: string): string;
No adjacent doc comment
declare class SignatureRateLimitError extends SignAPIError
No adjacent doc comment
readonly retryAfter: number;
No adjacent doc comment
readonly resetTime?: number;
No adjacent doc comment
constructor(apiMessage: string | undefined, formatStr: string, response: RateLimitedResponse);
No adjacent doc comment
declare class SignatureMissingTokensError extends SignAPIError
No adjacent doc comment
constructor(...args: string[]);
No adjacent doc comment
declare class PremiumFeatureError extends SignAPIError
No adjacent doc comment
constructor(apiMessage: string, ...args: string[]);
No adjacent doc comment
declare class AuthenticatedWebSocketConnectionError extends SignAPIError
No adjacent doc comment
constructor(...args: string[]);
No adjacent doc comment
type EulerRouteRequestOptions = Record<string, any>;
type WebcastHttpRouteArgs<T =
webClient: WebcastHttpClient;
No adjacent doc comment
type WebcastHttpEulerRouteArgs<T =
apiClient: EulerStreamApiClient;
No adjacent doc comment
options?: EulerRouteRequestOptions;
No adjacent doc comment
type WebcastHttpCompositeRouteArgs<T =
type HttpRoute<P, R> = (args: P) => Promise<R>;
No adjacent doc comment
type WrappedHttpRoute<P, R> = (args: P &
No adjacent doc comment
declare namespace index_d_exports
No adjacent doc comment
declare class WebcastCookieJar implements AbstractWebcastCookieJar
readonly webConfig: WebcastWebConfigDefaults;
No adjacent doc comment
readonly store: Record<string, string>;
constructor(webConfig: WebcastWebConfigDefaults);
setSessionBundle(session: CookieSessionBundle): Promise<void>;
getSessionBundle(): Promise<CookieSessionBundle | null>;
processSetCookieHeader(setCookieHeader: unknown): Promise<void>;
getCookieString(__url?: string): Promise<string>;
setCookie(rawCookie: string, __url?: string): Promise<void>;
static serializeCookieSessionBundle(config: WebcastWebConfigDefaults, session: CookieSessionBundle): string;
declare class WebcastHttpClient
oAuthSessionBundle: OAuthTokenSessionBundle | null;
No adjacent doc comment
readonly clientParams: Record<string, string>;
No adjacent doc comment
readonly clientHeaders: Record<string, string>;
No adjacent doc comment
readonly cookieJar: WebcastCookieJar;
No adjacent doc comment
constructor(webcastWebConfig: WebcastWebConfigDefaults, eulerApiInstance?: EulerStreamApiClient, gotHttpConfig?: WebcastGotHttpConfig);
get apiClient(): EulerStreamApiClient;
set roomId(roomId: string);
get roomId(): string;
getHtmlFromTikTokWebsite(path: string, options?: Partial<WebcastHttpClientRequestParams>): Promise<string>;
declare const LIBRARY_IDENTITY
type SignConfig = Partial<ClientConfiguration> &
cachedInstance?: EulerStreamApiClient;
No adjacent doc comment
declare const SignConfig: SignConfig;
No adjacent doc comment
declare function createEulerClient(): EulerStreamApiClient;
type RoomGiftsFromEulerRouteParams = WebcastHttpEulerRouteArgs<
roomId?: string;
No adjacent doc comment
webcastLanguage?: WebcastLanguage;
No adjacent doc comment
type RoomGiftsFromEulerResponse = RoomGiftsResponse;
No adjacent doc comment
declare const fetchRoomGiftsFromEulerRoute: HttpRoute<RoomGiftsFromEulerRouteParams, RoomGiftsResponse>;
type RoomGiftGalleryFromEulerRouteParams = WebcastHttpEulerRouteArgs<
uniqueId: string;
No adjacent doc comment
type RoomGiftGalleryFromEulerResponse = WebcastGiftGalleryResponse;
No adjacent doc comment
declare const fetchRoomGiftGalleryFromEulerRoute: HttpRoute<RoomGiftGalleryFromEulerRouteParams, WebcastGiftGalleryResponse>;
type FetchRoomIdFromEulerRouteParams = WebcastHttpEulerRouteArgs<
uniqueId: string;
No adjacent doc comment
declare const fetchRoomIdFromEulerRoute: HttpRoute<FetchRoomIdFromEulerRouteParams, WebcastRoomIdRouteResponse>;
type FetchRoomInfoFromEulerRouteParams = WebcastHttpEulerRouteArgs<
uniqueId: string;
No adjacent doc comment
declare const fetchRoomInfoFromEulerRoute: HttpRoute<FetchRoomInfoFromEulerRouteParams, WebcastRoomInfoRouteResponse>;
type FetchSignedWebSocketFromEulerRouteParams = WebcastHttpEulerRouteArgs<TikTokLiveConnectionBundledAuthOptions &
roomId: string;
No adjacent doc comment
country?: PooledProxyRegion;
No adjacent doc comment
cursor?: string;
No adjacent doc comment
type FetchSignedWebSocketFromEulerRouteResponse =
No adjacent doc comment
fetchResult: index_d_exports.ProtoMessageFetchResult;
No adjacent doc comment
fetchResultCookieHeader: string;
No adjacent doc comment
fetchResultRoomId?: string;
No adjacent doc comment
declare const fetchSignedWebSocketFromEulerRoute: HttpRoute<FetchSignedWebSocketFromEulerRouteParams, FetchSignedWebSocketFromEulerRouteResponse>;
type WebcastSignerParams =
url: string | URL;
No adjacent doc comment
method: SignTikTokUrlBodyMethodEnum;
No adjacent doc comment
userAgent: string;
No adjacent doc comment
type WebcastSignerResponse = SignTikTokUrlResponse;
No adjacent doc comment
type FetchWebcastSignatureFromEulerRouteParams = WebcastHttpEulerRouteArgs<WebcastSignerParams>;
No adjacent doc comment
declare const fetchWebcastSignatureFromEulerRoute: HttpRoute<FetchWebcastSignatureFromEulerRouteParams, SignTikTokUrlResponse>;
type SendRoomChatFromEulerRouteParams = WebcastHttpEulerRouteArgs<
roomId: string;
No adjacent doc comment
content: string;
No adjacent doc comment
declare const sendRoomChatFromEulerRoute: HttpRoute<SendRoomChatFromEulerRouteParams, WebcastRoomChatRouteResponse>;
type RoomGiftsRouteParams = WebcastHttpRouteArgs<
roomId?: string;
No adjacent doc comment
type RoomGiftsResponse$1 = any;
No adjacent doc comment
declare const fetchRoomGiftsRoute: HttpRoute<RoomGiftsRouteParams, any>;
type RoomInfoRouteParams = WebcastHttpRouteArgs<
roomId?: string;
No adjacent doc comment
type RoomInfoResponse = any;
No adjacent doc comment
declare const fetchRoomInfoRoute: HttpRoute<RoomInfoRouteParams, any>;
type FetchRoomInfoFromApiRouteParams = WebcastHttpRouteArgs<
uniqueId: string;
No adjacent doc comment
type FetchRoomInfoFromApiRouteResponse =
No adjacent doc comment
statusCode: number;
No adjacent doc comment
message?: string;
No adjacent doc comment
roomId: string;
No adjacent doc comment
status: number;
No adjacent doc comment
roomId: string;
No adjacent doc comment
declare const fetchRoomInfoFromApiLiveRoute: HttpRoute<FetchRoomInfoFromApiRouteParams, FetchRoomInfoFromApiRouteResponse>;
declare const RoomInfoFromHtmlRouteConfig:
extractionPattern: RegExp;
No adjacent doc comment
type FetchRoomInfoFromHtmlRouteParams = WebcastHttpRouteArgs<
No adjacent doc comment
uniqueId: string;
No adjacent doc comment
type FetchRoomInfoFromHtmlRouteResponse = Record<string, any> &
No adjacent doc comment
liveRoomUserInfo?: FetchRoomInfoFromApiRouteResponse['data'];
No adjacent doc comment
declare const fetchRoomInfoFromHtmlRoute: HttpRoute<FetchRoomInfoFromHtmlRouteParams, FetchRoomInfoFromHtmlRouteResponse>;
type FetchRoomIdRouteParams = WebcastHttpCompositeRouteArgs<
uniqueId: string;
No adjacent doc comment
declare const RoomIdRouteConfig:
No adjacent doc comment
skipFetchRoomInfoFromHtmlRoute: boolean;
No adjacent doc comment
skipFetchRoomInfoFromApiLiveRoute: boolean;
No adjacent doc comment
skipFetchRoomIdFromEulerRoute: boolean;
No adjacent doc comment
declare const fetchRoomIdComposite: HttpRoute<FetchRoomIdRouteParams, string>;
type FetchIsLiveRouteParams = WebcastHttpCompositeRouteArgs<
uniqueId: string;
No adjacent doc comment
declare const IsLiveRouteConfig:
No adjacent doc comment
skipFetchRoomInfoFromHtmlRoute: boolean;
No adjacent doc comment
skipFetchRoomInfoFromApiLiveRoute: boolean;
No adjacent doc comment
skipFetchRoomIdFromEulerRoute: boolean;
No adjacent doc comment
declare const fetchIsLiveComposite: HttpRoute<FetchIsLiveRouteParams, boolean>;
declare enum BaseFetchRoute
declare enum CompositeFetchRoute
No adjacent doc comment
declare enum EulerFetchRoute
No adjacent doc comment
declare function HandleError(errMsg: string, exceptionWrapper?: new (err: Error, ...args: any[]) => Error): (_target: object, _propertyKey: string | symbol, descriptor: PropertyDescriptor) => PropertyDescriptor;
declare const TikTokLiveConnection_base: WebcastTypedClient;
declare class TikTokLiveConnection extends TikTokLiveConnection_base
No adjacent doc comment
readonly uniqueId: string;
No adjacent doc comment
readonly options: TikTokLiveConnectionMutableOptions;
No adjacent doc comment
constructor(uniqueId: string, options: TikTokLiveConstructorConnectionOptions);
get webClient(): WebcastHttpClient;
get apiClient(): EulerStreamApiClient;
get wsClient(): WebcastWebSocketClient | null;
get roomInfo(): any;
get availableGifts(): any;
get isConnecting(): boolean;
get isConnected(): boolean;
get clientParams(): Record<string, string>;
get roomId(): string;
get state(): TikTokLiveConnectionState;
connect(roomId?: string): Promise<TikTokLiveConnectionState>;
disconnect(): Promise<void>;
fetchRoomId(uniqueId?: string): Promise<string>;
fetchIsLive(uniqueId?: string): Promise<boolean>;
fetchRoomInfo(roomId?: string): Promise<RoomInfoResponse>;
fetchAvailableGifts(): Promise<RoomGiftInfo>;
sendMessage(content: string, roomId?: string): Promise<WebcastRoomChatRouteResponse>;
waitUntilLive(seconds?: number, abortSignal?: AbortSignal): Promise<void>;
declare const RouteConfig:
fetchRoomGifts: HttpRoute<RoomGiftsRouteParams, any>;
No adjacent doc comment
fetchRoomInfo: HttpRoute<RoomInfoRouteParams, any>;
No adjacent doc comment
fetchRoomInfoFromApiLive: HttpRoute<FetchRoomInfoFromApiRouteParams, FetchRoomInfoFromApiRouteResponse>;
No adjacent doc comment
fetchRoomInfoFromHtml: HttpRoute<FetchRoomInfoFromHtmlRouteParams, FetchRoomInfoFromHtmlRouteResponse>;
No adjacent doc comment
fetchRoomGiftsFromProvider: HttpRoute<RoomGiftsFromEulerRouteParams, _$tiktok_live_api_sdk0.RoomGiftsResponse>;
No adjacent doc comment
fetchRoomGiftGalleryFromProvider: HttpRoute<RoomGiftGalleryFromEulerRouteParams, _$tiktok_live_api_sdk0.WebcastGiftGalleryResponse>;
No adjacent doc comment
fetchRoomIdFromProvider: HttpRoute<FetchRoomIdFromEulerRouteParams, _$tiktok_live_api_sdk0.WebcastRoomIdRouteResponse>;
No adjacent doc comment
fetchRoomInfoFromProvider: HttpRoute<FetchRoomInfoFromEulerRouteParams, _$tiktok_live_api_sdk0.WebcastRoomInfoRouteResponse>;
No adjacent doc comment
fetchSignedWebSocketFromProvider: HttpRoute<FetchSignedWebSocketFromEulerRouteParams, FetchSignedWebSocketFromEulerRouteResponse>;
No adjacent doc comment
fetchWebcastSignatureFromProvider: HttpRoute<FetchWebcastSignatureFromEulerRouteParams, _$tiktok_live_api_sdk0.SignTikTokUrlResponse>;
No adjacent doc comment
sendRoomChatFromProvider: HttpRoute<SendRoomChatFromEulerRouteParams, _$tiktok_live_api_sdk0.WebcastRoomChatRouteResponse>;
No adjacent doc comment
fetchRoomIdComposite: HttpRoute<FetchRoomIdRouteParams, string>;
No adjacent doc comment
fetchIsLiveComposite: HttpRoute<FetchIsLiveRouteParams, boolean>;
No adjacent doc comment
declare const getWebConfig: (
No adjacent doc comment
declare const getRandomPresets: ()
No adjacent doc comment
device: DevicePreset;
No adjacent doc comment
screen: ScreenPreset;
No adjacent doc comment
location: LocationPreset;
No adjacent doc comment
declare const Locations: LocationPreset[];
declare const Screens: ScreenPreset[];
No adjacent doc comment
declare const UserAgents: string[];
No adjacent doc comment
declare function userAgentToDevicePreset(userAgent: string): DevicePreset;
No adjacent doc comment
declare function getRandomDevicePreset(): DevicePreset;
No adjacent doc comment
declare function getRandomLocationPreset(): LocationPreset;
No adjacent doc comment
declare function getRandomScreenPreset(): ScreenPreset;
No adjacent doc comment
declare function generateDeviceId(): string;
No adjacent doc comment
declare const Devices: DevicePreset[];
No adjacent doc comment
declare function createRoute<P extends object, R>(routeId: string, routeHandler: WrappedHttpRoute<P, R>): HttpRoute<P, R>;
declare const VERSION: string;
declare namespace index_d_exports
No adjacent doc comment
declare function simplifyObject(type: keyof WebcastEventMessage, originalObject: any): WebcastEventMessage & Record<string, any>;
declare function getEventAttributes(event: any): any;
No adjacent doc comment
declare function getTopViewerAttributes(topViewers: any): any;
No adjacent doc comment
declare function mapBadges(badges: any): never[];
No adjacent doc comment
declare function getPreferredPictureFormat(pictureUrls: any): any;
No adjacent doc comment
type WebcastPushConnectionBase = new (uniqueId: string, options: TikTokLiveConstructorConnectionOptions) => EventEmitter & TikTokLiveConnection;
declare const WebcastPushConnection_base: WebcastPushConnectionBase;
No adjacent doc comment
declare class WebcastPushConnection extends WebcastPushConnection_base
function getUserAttributes(webcastUser)
No adjacent doc comment
async processProtoMessageFetchResult(fetchResult)
No adjacent doc comment
function parseArgs()
async function makeRequest(host, endpoint)
async function runBenchmark(args)
function percentile(arr, p)
No adjacent doc comment
async function generateSignature()
No adjacent doc comment
async function getSignedUrl(url)
async function fetchFromTikTok(signedData)
async function fetchViaBrowser(url)
function buildCommentsUrl(videoId, cursor = 0, count = 50)
async function fetchComments(videoId, cursor = 0, count = 50)
function displayResults(data)
async function main()
async function getSignedUrl(url)
async function fetchFromTikTok(signedData)
async function fetchViaBrowser(url)
async function fetchVideos(secUid)
No adjacent doc comment
async function getSignedUrl(url)
async function fetchFromTikTok(signedData)
function buildChallengeUrl(challengeId, cursor = 0, count = 30)
async function fetchHashtagVideos(challengeId, cursor = 0, count = 30)
function displayResults(data, challengeName)
async function main()
async function getSignedUrl(url)
async function fetchFromTikTok(signedData)
function buildMusicUrl(musicId, cursor = 0, count = 30)
async function fetchMusicVideos(musicId, cursor = 0, count = 30)
function displayResults(data)
async function main()
async function getSignedUrl(url)
async function fetchFromTikTok(signedData)
function buildSearchUrl(keyword, type = "video", cursor = 0, count = 20)
async function fetchSearchResults( keyword, type = "video", cursor = 0, count = 20, )
function displayVideoResults(data)
function displayUserResults(data)
function displayHashtagResults(data)
async function main()
async function getSignedUrl(url)
async function fetchFromTikTok(signedData)
function buildTrendingUrl(count = 30)
async function fetchTrendingVideos(count = 30)
function displayResults(data)
async function main()
async function getSignedUrl(url)
async function fetchFromTikTok(signedData)
function buildUserSearchUrl(username)
async function fetchUserInfo(username)
function displayUserInfo(data, targetUsername)
async function main()
async function getSignedUrl(url)
async function fetchFromTikTok(signedData)
async function fetchViaBrowser(url)
function buildApiUrl(secUid, cursor = 0, count = 30)
async function fetchUserVideos(secUid, cursor = 0, count = 30)
function displayResults(data)
async function fetchMultiplePages(secUid, maxPages = 3, videosPerPage = 30)
async function main()
function n(t)
No adjacent doc comment
function w()
No adjacent doc comment
function h(n, t)
No adjacent doc comment
function i(n, t)
No adjacent doc comment
function o(n, t, r)
No adjacent doc comment
function f(n)
No adjacent doc comment
function a(t)
No adjacent doc comment
function s(n)
No adjacent doc comment
function d(n)
No adjacent doc comment
function w(n)
No adjacent doc comment
function h(n)
No adjacent doc comment
function A(n)
No adjacent doc comment
function l(n, t)
No adjacent doc comment
function g(n, t)
No adjacent doc comment
function E(n, t)
No adjacent doc comment
function p(n, t)
No adjacent doc comment
function b(n)
No adjacent doc comment
function T()
No adjacent doc comment
i(function ()
No adjacent doc comment
function H(n)
No adjacent doc comment
function C(n, t)
No adjacent doc comment
function P(n, t)
No adjacent doc comment
function z(n, t, r)
No adjacent doc comment
function U()
No adjacent doc comment
function J()
No adjacent doc comment
function L()
No adjacent doc comment
function q()
No adjacent doc comment
function V()
No adjacent doc comment
function X(n)
No adjacent doc comment
function W(n)
No adjacent doc comment
function Z()
No adjacent doc comment
i(function ()
No adjacent doc comment
r(c, function (n)
No adjacent doc comment
r(function ()
No adjacent doc comment
t(function ()
No adjacent doc comment
f(d, function (n, t)
No adjacent doc comment
setTimeout(function ()
No adjacent doc comment
function Ln(n, t, r)
No adjacent doc comment
f(h, function (n, t)
No adjacent doc comment
setTimeout(function ()
No adjacent doc comment
setTimeout(function ()
No adjacent doc comment
t(function ()
No adjacent doc comment
t(function ()
No adjacent doc comment
t(function ()
No adjacent doc comment
function o(n, t)
No adjacent doc comment
cn(n, function (n)
No adjacent doc comment
function zt(n)
No adjacent doc comment
function Vt(n)
No adjacent doc comment
function s()
No adjacent doc comment
function cr(n, t, r)
No adjacent doc comment
setTimeout(function ()
No adjacent doc comment
function sr(n, t, r)
No adjacent doc comment
function dr(n, t, r, i)
No adjacent doc comment
i(u, function ()
No adjacent doc comment
function wr(n, t, r)
No adjacent doc comment
function hr(n, t)
No adjacent doc comment
function Ar(n, t)
No adjacent doc comment
function lr(n, t, r)
No adjacent doc comment
function gr(n)
No adjacent doc comment
function Er(n)
No adjacent doc comment
function pr(n)
No adjacent doc comment
function Ir(n)
No adjacent doc comment
function v()
No adjacent doc comment
function s()
No adjacent doc comment
function Fr(n, t, r, i)
No adjacent doc comment
function Gr(n, t)
No adjacent doc comment
y(n, "plugins." + ft + ".onerror", function (n, t)
No adjacent doc comment
function t()
No adjacent doc comment
Y(function (r)
No adjacent doc comment
cn(a, function ()
No adjacent doc comment
setTimeout(function ()
No adjacent doc comment
setTimeout(function ()
No adjacent doc comment
C(n, t, function ()
No adjacent doc comment
function o(n)
No adjacent doc comment
function a(n, r, i, o, e, u)
No adjacent doc comment
function x(n)
No adjacent doc comment
function P(n)
No adjacent doc comment
function z(n)
No adjacent doc comment
function K(n)
No adjacent doc comment
function W()
No adjacent doc comment
function Z()
No adjacent doc comment
function _()
No adjacent doc comment
function $()
No adjacent doc comment
function nn()
No adjacent doc comment
function b(n)
No adjacent doc comment
function C(n, t)
No adjacent doc comment
function v(n, t, r)
No adjacent doc comment
function s(n, t, r, i)
No adjacent doc comment
function d(n, t, r)
No adjacent doc comment
function E()
No adjacent doc comment
function p()
No adjacent doc comment
function I()
No adjacent doc comment
v(y, c, function ()
No adjacent doc comment
function m(n)
No adjacent doc comment
v(n, t, function (n)
No adjacent doc comment
function M(t, r)
No adjacent doc comment
function i(e, u, c, f)
No adjacent doc comment
function o()
No adjacent doc comment
function B(n, r, i)
No adjacent doc comment
function D(n, r)
No adjacent doc comment
function O(n)
No adjacent doc comment
function S(n)
No adjacent doc comment
function R(n)
No adjacent doc comment
function F(r)
No adjacent doc comment
v(M.prototype, f, function ()
No adjacent doc comment
v(C, c, function ()
No adjacent doc comment
v(C, "toString", function ()
No adjacent doc comment
function n()
No adjacent doc comment
function i(i, o)
No adjacent doc comment
setTimeout(function ()
No adjacent doc comment
C(n, i, function ()
No adjacent doc comment
setTimeout(function ()
No adjacent doc comment
C(n, r, function ()
No adjacent doc comment
C(n, e, function ()
No adjacent doc comment
function v(n, t)
No adjacent doc comment
function s(n, r)
No adjacent doc comment
setTimeout(function ()
No adjacent doc comment
function i()
No adjacent doc comment
function o()
No adjacent doc comment
setTimeout(function ()
No adjacent doc comment
function p(n)
No adjacent doc comment
function I(n)
No adjacent doc comment
function y(n)
No adjacent doc comment
function Q(n, t)
No adjacent doc comment
function b(n, t, r)
No adjacent doc comment
function C(n, t, r)
No adjacent doc comment
function m(n)
No adjacent doc comment
function M(n, t)
No adjacent doc comment
function B(n)
No adjacent doc comment
function D(n, t)
No adjacent doc comment
function O(n, t)
No adjacent doc comment
function S(n, t, r, i, o, e)
No adjacent doc comment
function queueSignatureRequest(signFn)
async function processQueue()
async function initBrowser()
async function dismissTikTokErrorIfPresent(maxAttempts = 2)
async function initWithLocalSdk()
async function closeBrowser()
No adjacent doc comment
async function _signForWebSocket(targetUrl, navigateToUrl = null)
function shouldRefreshSession()
No adjacent doc comment
async function ensurePageReady()
async function generateSignedUrl( targetUrl, userAgent = null, navigateTo = null, )
async function _generateSignedUrlInternal( targetUrl, userAgent = null, navigateTo = null, )
async function _signViaPageIntercept(targetUrl, navigateTo, userAgent = null)
No adjacent doc comment
async function _signDirectly(fetchUrl, userAgent = null)
No adjacent doc comment
function normalizeUrlFingerprint(urlObj)
async function _signWithFetchInterception(fetchUrl, userAgent = null)
async function cleanup()
No adjacent doc comment
function parseResult(url, userAgent = null)
No adjacent doc comment
async function handleRequest(req, res)
function encodeBase64(bytes)
No adjacent doc comment
function quarter(s, a, b, c, d)
No adjacent doc comment
function chachaBlock(initial, rounds)
No adjacent doc comment
function chachaXor(bytes, keyWords, rounds)
No adjacent doc comment
function deriveRounds(keyWords)
No adjacent doc comment
function intToFixedBytes(n, width)
No adjacent doc comment
function encodePayload(fields)
No adjacent doc comment
export function encode( queryString, body, userAgent, counters =
No adjacent doc comment
export function setEmojiMediaResolver(resolver)
export async function loadEmojiMap(filePath = null)
export function replaceEmojis(text)
export function getEmojiMap()
export function addEmoji(code, url)
export function removeEmoji(code)
export async function saveEmojiMap(filePath = EMOJI_MAP_FILE)
async function dispatch(req, res, pathname, authorized)
function serveEmoji(req, res, authorized)
function parseDefaults(text)
function parseLocal(text)
function merge(defaults, local)
class EmojiStore
No adjacent doc comment
constructor(file, localFile = null)
enqueue(action)
No adjacent doc comment
async read()
load()
No adjacent doc comment
currentRevision()
No adjacent doc comment
snapshot()
No adjacent doc comment
imageUrl(code)
watch()
No adjacent doc comment
change(action)
async changeLegacy(action)
No adjacent doc comment
async changeLayered(action)
No adjacent doc comment
function extractObjectLogs(file = "TikTokRun.log")
function createMediaRoutes(cache = defaultMediaCache)
function createMediaAdminRoutes(cache = defaultMediaCache)
export function recordMessageStat(message, metadata =
No adjacent doc comment
export function getTopMessages(limit = 10)
No adjacent doc comment
export function getAllMessageStatsSorted()
No adjacent doc comment
export function getMessageStats()
No adjacent doc comment
export function mergeStats(entries)
No adjacent doc comment
export async function saveStatsToFile(filePath = STATS_FILE)
No adjacent doc comment
export async function loadStatsFromFile(filePath = STATS_FILE)
No adjacent doc comment
export function clearStats()
No adjacent doc comment
export function addFilterRule(rule)
No adjacent doc comment
export function addFilterRules(rules)
No adjacent doc comment
function processWithRules(rules,
export function processFilter(input =
function isAdRule(rule)
export function checkFilter(input)
export function isFiltered(input)
export function clearFilterRules()
export function getFilterRules()
function normalizeForCompare(text)
function editDistance(a, b, limit)
function isSimilar(rule, a, b)
function throttleGroups(state, rule)
function applyThrottle(rule, result, now, state)
export function takeThrottleSummaries(now = Date.now(), state = liveThrottleState, rules = filterRules)
export function simulateSequence(
export function validateFilterRules(rules)
export function normalizePlatform(value)
export function normalizeSource(meta =
export class MessageStats
No adjacent doc comment
constructor()
clear()
merge(rows)
all()
function createMonitorRoutes(store)
class ResizeHandle(QGraphicsRectItem)
No adjacent doc comment
def __init__(self, parent, corner)
No adjacent doc comment
def mousePressEvent(self, event)
No adjacent doc comment
def mouseMoveEvent(self, event)
No adjacent doc comment
def mouseReleaseEvent(self, event)
No adjacent doc comment
def itemChange(self, change, value)
No adjacent doc comment
class ResizableRectItem(QGraphicsRectItem)
No adjacent doc comment
def __init__(self, x, y, w, h)
No adjacent doc comment
def updateHandlesPos(self)
No adjacent doc comment
def updateRectFromHandles(self, corner)
No adjacent doc comment
class ResizablePixmapItem(QGraphicsPixmapItem)
No adjacent doc comment
def __init__(self, pixmap)
No adjacent doc comment
def updateHandlesPos(self)
No adjacent doc comment
def updatePixmapFromHandles(self)
No adjacent doc comment
class TimelineScene(QGraphicsScene)
No adjacent doc comment
def __init__(self, editor, *args, **kwargs)
No adjacent doc comment
def mousePressEvent(self, event)
No adjacent doc comment
class Time_ResizeHandle(QGraphicsRectItem)
No adjacent doc comment
def __init__(self, parent_block)
No adjacent doc comment
def mousePressEvent(self, event)
No adjacent doc comment
def mouseMoveEvent(self, event)
No adjacent doc comment
def itemChange(self, change, value)
No adjacent doc comment
class TimelineBlock(QGraphicsRectItem)
No adjacent doc comment
def __init__(self, start, end, scale=10, editor=None, linked_item=None)
No adjacent doc comment
def updateDuration(self, new_width)
No adjacent doc comment
def mousePressEvent(self, event)
No adjacent doc comment
def itemChange(self, change, value)
No adjacent doc comment
class Playhead(QGraphicsLineItem)
No adjacent doc comment
def __init__(self, scale, player)
No adjacent doc comment
def itemChange(self, change, value)
No adjacent doc comment
def mousePressEvent(self, event)
No adjacent doc comment
def mouseReleaseEvent(self, event)
No adjacent doc comment
def get_video_fps(path)
No adjacent doc comment
def seconds_to_frames(seconds, fps)
No adjacent doc comment
class OverlayEditor(QWidget)
No adjacent doc comment
def draw_ticks(self, start_sec, end_sec)
No adjacent doc comment
def ensure_ticks_cover(self, x)
No adjacent doc comment
def update_playhead(self, pos_ms)
def toggle_play_pause(self)
No adjacent doc comment
def delete_selected(self)
No adjacent doc comment
def export_mode_change(self)
No adjacent doc comment
def apply_display_mode(self)
No adjacent doc comment
def toggle_display_mode(self)
No adjacent doc comment
def update_visible_objects(self, current_time)
No adjacent doc comment
def __init__(self)
No adjacent doc comment
def on_video_size_ready(self)
No adjacent doc comment
def resizeEvent(self, event)
No adjacent doc comment
def get_video_resolution(self, path)
No adjacent doc comment
def item_to_drawbox(self, item, scene, video_w, video_h, start, end,nType=True)
No adjacent doc comment
def rect_to_drawbox(self,rect, scene_w, scene_h, video_w, video_h, start, end)
No adjacent doc comment
def get_video_duration(self, path)
No adjacent doc comment
def load_video(self)
No adjacent doc comment
def add_image(self)
No adjacent doc comment
def add_rect(self)
No adjacent doc comment
def add_text(self)
No adjacent doc comment
def sync_slider(self, pos)
No adjacent doc comment
def update_time(self, value)
def build_ffplay_cmd(self,video_path, start, duration, filters, width, height)
No adjacent doc comment
def run_exp_ffmpeg(self,video_path, filters,filters_main, output_dir=".", mode="auto")
No adjacent doc comment
def run_ffmpeg(self,video_path, filters,output_dir=None)
No adjacent doc comment
def export_ffmpeg(self)
No adjacent doc comment
def send_bark_post(title: str, body: str)
No adjacent doc comment
def process_video(input_path, output_dir="output")
No adjacent doc comment
class AdOverlayNode
No adjacent doc comment
def __init__(self, data, font_size=16)
No adjacent doc comment
def layout(self, font_system, banner_width, user_color=None, text_color=None, show_avatar=True)
No adjacent doc comment
def get_height(self, font_system, banner_width, user_color=None, text_color=None, show_avatar=True)
No adjacent doc comment
def invalidate_height(self)
No adjacent doc comment
def _ensure_log_dir()
No adjacent doc comment
def log(*args, **kwargs)
No adjacent doc comment
def log_error(*args, **kwargs)
No adjacent doc comment
def log_warn(*args, **kwargs)
No adjacent doc comment
def log_debug(*args, **kwargs)
No adjacent doc comment
def clear_log()
No adjacent doc comment
def display_image_url(url: str, tail: int = 40) -> str
No adjacent doc comment
def parse_message(text)
No adjacent doc comment
def strip_image_urls(text)
No adjacent doc comment
class Engine
No adjacent doc comment
def __init__(self, widget=None)
No adjacent doc comment
def set_node_spacing(self, px)
No adjacent doc comment
def set_content_gap(self, px)
No adjacent doc comment
def set_message_ttl(self, seconds)
No adjacent doc comment
def set_fade_speed(self, rate)
No adjacent doc comment
def set_ad_overlay_duration(self, seconds)
No adjacent doc comment
def set_ad_overlay_font_size(self, size)
No adjacent doc comment
def set_ad_avatar_size(self, size)
No adjacent doc comment
def set_ad_show_avatar(self, enabled)
No adjacent doc comment
def set_ad_avatar_offset(self, px)
No adjacent doc comment
def set_ad_bg_color(self, color)
No adjacent doc comment
def set_ad_accent_color(self, color)
No adjacent doc comment
def set_ad_user_color(self, color)
No adjacent doc comment
def set_ad_text_color(self, color)
No adjacent doc comment
def set_ad_bg_opacity(self, pct)
No adjacent doc comment
def start_timer(self)
No adjacent doc comment
def stop_timer(self)
No adjacent doc comment
def reset_timer(self)
No adjacent doc comment
def set_manual_control(self, enabled)
No adjacent doc comment
def get_elapsed(self)
No adjacent doc comment
def get_elapsed_str(self)
No adjacent doc comment
def _sync_tts_settings(self)
No adjacent doc comment
def height(self)
No adjacent doc comment
def width(self)
No adjacent doc comment
def update(self)
No adjacent doc comment
def _handle_ad_overlay(self, data)
No adjacent doc comment
class _PROCESSENTRY32W(ctypes.Structure)
No adjacent doc comment
def _iter_process_names()
No adjacent doc comment
def detect_anticheat()
No adjacent doc comment
def detect_drag_risk()
No adjacent doc comment
class _MONITORINFO(ctypes.Structure)
No adjacent doc comment
def _foreground_covers_monitor()
No adjacent doc comment
class GameGuard(QObject)
No adjacent doc comment
def __init__(self, interval_ms=3000, parent=None)
No adjacent doc comment
def active(self) -> bool
No adjacent doc comment
def start(self)
No adjacent doc comment
def stop(self)
No adjacent doc comment
def _poll(self)
No adjacent doc comment
class _POINT(ctypes.Structure)
No adjacent doc comment
class _MSG(ctypes.Structure)
No adjacent doc comment
def key_token_to_vk(token: str) -> "int | None"
No adjacent doc comment
def vk_to_token(vk: int) -> "str | None"
No adjacent doc comment
def format_hotkey(mods: int, vk: int) -> str
No adjacent doc comment
def parse_hotkey(text: str) -> "tuple[int, int] | None"
No adjacent doc comment
class GlobalHotkey(QObject)
No adjacent doc comment
def __init__(self, widget=None, on_trigger=None, parent=None)
No adjacent doc comment
def _configure_api(self)
No adjacent doc comment
def text(self) -> str
No adjacent doc comment
def registered(self) -> bool
No adjacent doc comment
def _worker(self, mods, vk)
No adjacent doc comment
def set_hotkey(self, text: str) -> bool
No adjacent doc comment
def unregister(self)
No adjacent doc comment
def stop(self)
No adjacent doc comment
class RenderQueue
No adjacent doc comment
def __init__(self)
No adjacent doc comment
def submit_chat(self, node)
No adjacent doc comment
class ChatNode
No adjacent doc comment
def __init__(self, data, inline_font_size=INLINE_FONT_SIZE)
No adjacent doc comment
def get_height(self, font_system, content_gap=2)
No adjacent doc comment
def invalidate_height(self)
No adjacent doc comment
def update(self, ttl=15, fade=0.02)
No adjacent doc comment
def _build_emoji_pattern() -> str
No adjacent doc comment
class SpeechFilterManager
No adjacent doc comment
def __new__(cls)
No adjacent doc comment
def __init__(self)
No adjacent doc comment
def _load(self)
No adjacent doc comment
def _save(self)
No adjacent doc comment
def process_message(self, message: str) -> str
No adjacent doc comment
def add_block_keyword(self, word: str)
No adjacent doc comment
def remove_block_keyword(self, word: str)
No adjacent doc comment
def add_replace_keyword(self, word: str, replacement: str)
No adjacent doc comment
def remove_replace_keyword(self, word: str)
No adjacent doc comment
def set_remove_urls(self, enabled: bool)
No adjacent doc comment
def set_remove_emoji(self, enabled: bool)
No adjacent doc comment
def set_remove_pure_numbers(self, enabled: bool)
No adjacent doc comment
class TTSQueueOverflowAction(IntEnum)
No adjacent doc comment
class TTSService
No adjacent doc comment
def __new__(cls)
No adjacent doc comment
def __init__(self)
No adjacent doc comment
def update_default(self)
No adjacent doc comment
def speak_stream_message( self, user: str, message: str, is_main: bool = True )
No adjacent doc comment
def speak_ad(self, user: str, message: str)
No adjacent doc comment
def _speak_async(self, text: str)
No adjacent doc comment
async def _synthesize_and_play(self, text: str)
No adjacent doc comment
def speak_preview(self)
No adjacent doc comment
def stop(self)
No adjacent doc comment
def run()
No adjacent doc comment
class FontAtlas
No adjacent doc comment
def __init__(self)
No adjacent doc comment
def load(self)
No adjacent doc comment
class FilterSettingsWindow(QWidget)
No adjacent doc comment
def __init__(self)
No adjacent doc comment
def closeEvent(self, event)
No adjacent doc comment
def _build_ui(self)
No adjacent doc comment
def _load_data(self)
No adjacent doc comment
def _add_block_keyword(self)
No adjacent doc comment
def _remove_block_keyword(self)
No adjacent doc comment
def _add_replace_keyword(self)
No adjacent doc comment
def _remove_replace_keyword(self)
No adjacent doc comment
def load_overlay_config() -> dict
No adjacent doc comment
def save_overlay_config(data: dict)
No adjacent doc comment
class LOGFONTW(ctypes.Structure)
No adjacent doc comment
def _get_system_fonts()
No adjacent doc comment
def _enum_cb(lpelfe, lpntme, fonttype, lparam)
No adjacent doc comment
class _ColorButton(QPushButton)
No adjacent doc comment
def __init__(self, color="#FFFFFF", parent=None)
No adjacent doc comment
def _refresh_style(self)
No adjacent doc comment
def color(self)
No adjacent doc comment
def set_color(self, color)
No adjacent doc comment
def _pick(self)
No adjacent doc comment
class _HotkeyButton(QPushButton)
No adjacent doc comment
def __init__(self, text="", parent=None)
No adjacent doc comment
def hotkey(self) -> str
No adjacent doc comment
def set_hotkey(self, text)
No adjacent doc comment
def _refresh(self)
No adjacent doc comment
def _start_recording(self)
No adjacent doc comment
def _stop_recording(self)
No adjacent doc comment
def keyPressEvent(self, event)
No adjacent doc comment
def keyReleaseEvent(self, event)
No adjacent doc comment
class OverlaySettingsWindow(QWidget)
No adjacent doc comment
def __init__(self, overlay=None, engine=None, on_open_tts=None)
No adjacent doc comment
def closeEvent(self, event)
No adjacent doc comment
def _build_ui(self)
No adjacent doc comment
def _build_basic_tab(self, tabs)
No adjacent doc comment
def _get_common_fonts(self)
No adjacent doc comment
def _open_tts_settings(self)
No adjacent doc comment
def _build_spacing_tab(self, tabs)
No adjacent doc comment
def _build_position_tab(self, tabs)
No adjacent doc comment
def _build_timer_tab(self, tabs)
No adjacent doc comment
def _build_ad_tab(self, tabs)
No adjacent doc comment
def _on_drag_toggled(self, state)
No adjacent doc comment
def _update_timer_display(self)
No adjacent doc comment
def _timer_start(self)
No adjacent doc comment
def _timer_stop(self)
No adjacent doc comment
def _timer_reset(self)
No adjacent doc comment
def _on_auto_timer_toggled(self, checked)
No adjacent doc comment
def _on_font_size_changed(self, size)
No adjacent doc comment
def _on_font_face_changed(self, family)
No adjacent doc comment
def _on_spacing_changed(self, px)
No adjacent doc comment
def _on_content_gap_changed(self, px)
No adjacent doc comment
def _on_ttl_changed(self, sec)
No adjacent doc comment
def _on_fade_changed(self, rate)
No adjacent doc comment
def _on_ad_duration_changed(self, sec)
No adjacent doc comment
def _on_ad_font_size_changed(self, size)
No adjacent doc comment
def _on_ad_avatar_size_changed(self, size)
No adjacent doc comment
def _on_ad_show_avatar_changed(self, checked)
No adjacent doc comment
def _on_ad_avatar_offset_changed(self, px)
No adjacent doc comment
def _on_ad_bg_color_changed(self, color)
No adjacent doc comment
def _on_ad_accent_color_changed(self, color)
No adjacent doc comment
def _on_ad_user_color_changed(self, color)
No adjacent doc comment
def _on_ad_text_color_changed(self, color)
No adjacent doc comment
def _on_ad_bg_opacity_changed(self, pct)
No adjacent doc comment
def _on_ad_style_reset(self)
No adjacent doc comment
def _apply_ad_style_to_engine(self)
No adjacent doc comment
def _on_size_changed(self)
No adjacent doc comment
def _on_hotkey_changed(self, text)
No adjacent doc comment
def _on_auto_hide_toggled(self, state)
No adjacent doc comment
def _save_async(self)
No adjacent doc comment
def _load_config(self)
No adjacent doc comment
def _update_pos_label(self, x, y)
No adjacent doc comment
def _refresh_pos_label(self)
No adjacent doc comment
def _sync_drag_state(self, enabled, reason="")
No adjacent doc comment
def toggle_drag_mode(self, enabled: bool)
No adjacent doc comment
def _save_current_position(self)
No adjacent doc comment
def _reset_position(self)
No adjacent doc comment
def _save(self)
No adjacent doc comment
class TTSSettings
No adjacent doc comment
def __new__(cls)
No adjacent doc comment
def _defaults()
No adjacent doc comment
def load(self) -> dict
No adjacent doc comment
def save(self, data: dict)
No adjacent doc comment
def get(self, key: str, default=None)
No adjacent doc comment
def set(self, key: str, value)
No adjacent doc comment
class SystemTray(QObject)
No adjacent doc comment
def __init__(self, parent=None)
No adjacent doc comment
def _quit_app(self)
No adjacent doc comment
def _make_icon(self)
No adjacent doc comment
def show(self)
No adjacent doc comment
def set_overlay_visible(self, visible)
No adjacent doc comment
def set_game_mode(self, active, name="")
No adjacent doc comment
def notify(self, title, message, msecs=4000)
No adjacent doc comment
def _on_toggle(self)
No adjacent doc comment
def _on_activated(self, reason)
No adjacent doc comment
class TTSSettingsWindow(QWidget)
No adjacent doc comment
def __init__(self)
No adjacent doc comment
def closeEvent(self, event)
No adjacent doc comment
def _build_ui(self)
No adjacent doc comment
def _setup_auto_save(self)
No adjacent doc comment
def _schedule_save(self)
No adjacent doc comment
def _load_settings(self)
No adjacent doc comment
def _save_settings(self)
No adjacent doc comment
def _test_tts(self)
No adjacent doc comment
def _stop_tts(self)
No adjacent doc comment
def _open_filter(self)
No adjacent doc comment
def launch_gui()
No adjacent doc comment
def _open_settings()
No adjacent doc comment
def _open_filter()
No adjacent doc comment
def _open_overlay_settings()
No adjacent doc comment
def _toggle_overlay()
No adjacent doc comment
def _on_game_mode(active, name)
No adjacent doc comment
def enqueue_message(message)
No adjacent doc comment
def drain_messages(max_messages=20, budget_seconds=0.004)
No adjacent doc comment
def _open_server(host, port)
No adjacent doc comment
def start_socket()
No adjacent doc comment
def handle(connection, peer=("?", 0))No adjacent doc comment
def _run_connection(connection)
No adjacent doc comment
class FontSystem
No adjacent doc comment
def __init__(self)
No adjacent doc comment
def set_font_family(self, family)
No adjacent doc comment
def clear_cache(self)
No adjacent doc comment
def get_text_texture(self, text, color=QColor("white"), max_width=360, font_size=16, outline_color=None)No adjacent doc comment
class GLRenderer
No adjacent doc comment
def __init__(self)
No adjacent doc comment
def begin(self)
No adjacent doc comment
def draw_box(self, x, y, w, h, alpha)
No adjacent doc comment
def get_text_baseline_y(center_y)
No adjacent doc comment
def get_text_width(text, size=16)
No adjacent doc comment
class Overlay(QOpenGLWidget)
No adjacent doc comment
def __init__(self, on_open_tts=None)
No adjacent doc comment
def set_auto_game_mode(self, enabled)
No adjacent doc comment
def set_game_mode(self, active, name="")
No adjacent doc comment
def is_game_mode(self) -> bool
No adjacent doc comment
def _setup_global_hotkey(self)
No adjacent doc comment
def apply_hotkey(self, text)
No adjacent doc comment
def _open_tts_settings(self)
No adjacent doc comment
def _load_position_and_size(self)
No adjacent doc comment
def resize_overlay(self, w, h)
No adjacent doc comment
def _check_drag_safety(self)
No adjacent doc comment
def start_drag_mode(self)
No adjacent doc comment
def stop_drag_mode(self, reason="")
No adjacent doc comment
def _apply_click_through(self, enabled)
No adjacent doc comment
def showEvent(self, event)
No adjacent doc comment
def mousePressEvent(self, event)
No adjacent doc comment
def mouseMoveEvent(self, event)
No adjacent doc comment
def mouseReleaseEvent(self, event)
No adjacent doc comment
def initializeGL(self)
No adjacent doc comment
def loop(self)
No adjacent doc comment
def paintGL(self)
No adjacent doc comment
def _render_header(self)
No adjacent doc comment
def _render_ad_overlay(self)
No adjacent doc comment
def set_inline_font_size(self, size)
No adjacent doc comment
def set_font_face(self, family)
No adjacent doc comment
def set_content_gap(self, px)
No adjacent doc comment
def _render_chat_nodes(self)
No adjacent doc comment
class ShaderProgram
No adjacent doc comment
def __init__(self, vert_src, frag_src)
No adjacent doc comment
def compile(self, type, source)
No adjacent doc comment
def use(self)
No adjacent doc comment
def inline_data_bytes(url: str) -> bytes
No adjacent doc comment
def _url_key(url: str) -> str
No adjacent doc comment
def _emoji_disk_path(url)
No adjacent doc comment
def qimage_to_bytes(img: QImage)
No adjacent doc comment
def _fetch_bytes(url)
No adjacent doc comment
def _decode(data)
No adjacent doc comment
def _scale(img, size)
No adjacent doc comment
def _circular(src, size)
No adjacent doc comment
class TextureLoader
No adjacent doc comment
def __init__(self)
No adjacent doc comment
def _cache_get(self, key)
def _cache_put(self, key, tex)
No adjacent doc comment
def _request(self, key, url, kind, size=0)
def _fetch_worker(self, key, url, kind, size)
No adjacent doc comment
def _load_emoji_image(self, url, size)
No adjacent doc comment
def load_emoji(self, url, size=24)
def preload_emoji(self, url, size=24)
No adjacent doc comment
def load_url(self, url)
No adjacent doc comment
def load_url_circular(self, url, size)
No adjacent doc comment
def process_pending(self)
No adjacent doc comment
def draw(self, tex, x, y, w, h)
No adjacent doc comment
def qapp()
No adjacent doc comment
class FakeFontSystem
No adjacent doc comment
def get_text_texture(self, text, color, max_width=360, font_size=16, outline_color=None)
No adjacent doc comment
class TestAdOverlayNode
No adjacent doc comment
def test_basic_fields(self)
No adjacent doc comment
def test_server_payload_uses_text_key(self)
No adjacent doc comment
def test_use_tts_token_stripped_from_text(self)
No adjacent doc comment
def test_use_tts_false_by_default(self)
No adjacent doc comment
def test_emoji_parsing(self)
No adjacent doc comment
def test_inline_data_uri_icon_and_message(self)
No adjacent doc comment
def test_default_duration(self)
No adjacent doc comment
def test_get_height_and_invalidate(self)
No adjacent doc comment
def test_layout_without_avatar(self)
No adjacent doc comment
def test_layout_custom_colors(self)
No adjacent doc comment
class TestEngineAdOverlay
No adjacent doc comment
def _drain(self)
No adjacent doc comment
def _make_engine(self)
No adjacent doc comment
def test_ad_overlay_received(self)
No adjacent doc comment
def test_ad_overlay_clears_after_duration(self)
No adjacent doc comment
def test_ad_style_setters(self)
No adjacent doc comment
def test_chat_moves_down_during_ad(self)
No adjacent doc comment
def test_chat_returns_to_top_after_ad(self)
No adjacent doc comment
def test_ttl_paused_during_ad(self)
No adjacent doc comment
class TestParseMessage
No adjacent doc comment
def test_plain_text(self)
No adjacent doc comment
def test_empty(self)
No adjacent doc comment
def test_none(self)
No adjacent doc comment
def test_single_image(self)
No adjacent doc comment
def test_text_before_image(self)
No adjacent doc comment
def test_text_after_image(self)
No adjacent doc comment
def test_multiple_images(self)
No adjacent doc comment
def test_image_extensions(self)
No adjacent doc comment
def test_image_with_query(self)
No adjacent doc comment
def test_http_image(self)
No adjacent doc comment
def test_mixed_content(self)
No adjacent doc comment
def test_inline_data_uri_image(self)
No adjacent doc comment
def test_media_cache_urls(self)
No adjacent doc comment
class TestStripImageUrls
No adjacent doc comment
def test_plain_text(self)
No adjacent doc comment
def test_url_only(self)
No adjacent doc comment
def test_mixed(self)
No adjacent doc comment
def test_no_url(self)
No adjacent doc comment
def test_inline_data_uri_removed(self)
No adjacent doc comment
class TestOverlayConfig
No adjacent doc comment
def test_load_defaults_when_no_file(self, monkeypatch)
No adjacent doc comment
def test_save_and_load(self, tmp_path)
No adjacent doc comment
def test_merge_with_missing_keys(self, tmp_path)
No adjacent doc comment
def test_save_preserves_existing_keys(self, tmp_path)
No adjacent doc comment
class TestChatNodeBasic
No adjacent doc comment
def test_simple_message(self)
No adjacent doc comment
def test_with_emoji_url(self)
No adjacent doc comment
def test_empty_message(self)
No adjacent doc comment
def test_default_values(self)
No adjacent doc comment
def test_avatar_url(self)
No adjacent doc comment
def test_gift_url(self)
No adjacent doc comment
class TestChatNodeLifetime
No adjacent doc comment
def test_initial_alive(self)
No adjacent doc comment
def test_update_reduces_alpha_when_dead(self)
No adjacent doc comment
def test_alpha_stops_at_zero(self)
No adjacent doc comment
def fresh_filter()
No adjacent doc comment
class TestProcessMessage
No adjacent doc comment
def test_plain_text(self, fresh_filter)
No adjacent doc comment
def test_remove_url(self, fresh_filter)
No adjacent doc comment
def test_remove_emoji(self, fresh_filter)
No adjacent doc comment
def test_keep_url_when_disabled(self, fresh_filter)
No adjacent doc comment
def test_block_keyword(self, fresh_filter)
No adjacent doc comment
def test_replace_keyword(self, fresh_filter)
No adjacent doc comment
def test_block_before_replace(self, fresh_filter)
No adjacent doc comment
def test_remove_pure_numbers(self, fresh_filter)
No adjacent doc comment
def test_non_string_input(self, fresh_filter)
No adjacent doc comment
def test_empty_string(self, fresh_filter)
No adjacent doc comment
def test_multiple_replacements(self, fresh_filter)
No adjacent doc comment
def test_emoji_pattern(self, fresh_filter)
No adjacent doc comment
def test_url_pattern_edge(self, fresh_filter)
No adjacent doc comment
def test_strip_result(self, fresh_filter)
No adjacent doc comment
def test_inline_data_uri_decodes_locally()
No adjacent doc comment
def test_inline_data_uri_rejects_svg_and_oversize()
No adjacent doc comment
function sendLogin(res)
No adjacent doc comment
async function handle(req, res, authorized)
No adjacent doc comment
function serveRestream(req, res, authorized = false)
function runtimeSources()
function sendRuntimePage(res)
function serveRuntime(req, res, runtime, start, addPlatform = null, setTransports = null)
No adjacent doc comment
function platformName(value)
function identity(entry)
function computeScore(
function levelFor(
function tenureKey(days)
function labelsFor(
function createAudienceTracker(
export function requestClip(state, row, now)
export function captureEvidence(state, stats, now)
function rowTime(row)
function downsample(rows, maxPoints)
function summarizePlatforms(rows)
class AutoClipHistory
constructor(filename = ':memory:')
finish(sessionId)
listSessions()
clear()
prune(days = 30, now = Date.now())
importLegacy(filename)
close()
export function calculateMetrics(state, now)
function browserConfig(env = process.env)
function findBrowser(config, env = process.env, platform = process.platform)
function launchArgs(config)
function tiktokLiveUrl(input)
function isTikTokLivePage(value)
No adjacent doc comment
function createController(config = browserConfig(), deps =
async function cdp(route, method = 'GET')
No adjacent doc comment
async function tabs()
No adjacent doc comment
async function clearWafToken()
function startWatching()
async function status()
No adjacent doc comment
async function start()
No adjacent doc comment
async function show(id)
No adjacent doc comment
async function openTikTokLive(handle)
function browserPath()
function createHandler(controller)
export class BrowserSession
constructor(connect, config = configModule.browserConfig())
No adjacent doc comment
async connect()
async newPage()
async disconnect()
export async function deleteTikTokWafCookie(page)
export async function clearTikTokWafToken(browserURL, connect)
class DiagnosticsSocketClient
snapshot()
No adjacent doc comment
clearRetry()
No adjacent doc comment
send(payload)
No adjacent doc comment
subscribe(enabled)
No adjacent doc comment
start(host, port)
No adjacent doc comment
unsubscribe()
No adjacent doc comment
stop()
No adjacent doc comment
closeSocket()
No adjacent doc comment
connect()
No adjacent doc comment
onData(chunk)
No adjacent doc comment
onLine(line)
No adjacent doc comment
class DiagnosticsStore
text(value)
No adjacent doc comment
normalizeLog(entry)
No adjacent doc comment
ingestLogs(payload)
ingestDiagnostic(payload)
function parseSocketTarget(raw)
function splitSocketApis(value)
function resolveDiagnosticsTarget(env = process.env)
async function sendPage(res, authorized)
async function getMapping(res, store)
async function changeMapping(req, res, store)
function sendJson(res, status, data)
function httpError(status, message)
async function readJson(req, limit = 32768)
function createImageCache(cacheDir = DEFAULT_CACHE_DIR)
async function readCache(url)
No adjacent doc comment
async function fetchImage(url)
No adjacent doc comment
async function writeCache(url, image)
No adjacent doc comment
async function serve(req, res, code, store)
async function readFileSafe(file)
async function writeFileAtomic(file, data)
export function createGiftNameStore(
async function saveGiftNameMap()
function getTranslatedGiftNameFromMap(giftName)
async function translateGiftNameByApi(giftName)
async function ensureGiftNameTranslation(giftName)
async function saveGiftCatalog(giftList)
async function syncGiftMapFromGiftList(giftList)
async function backfillGiftTranslationsFromGiftList(giftList)
async function loadGiftNameMap()
function guessKickChannelId(channelName)
async function resolveKickChannelId(channelName, logger)
async function getKickUserAvatar(username, userId, ctx)
export async function startKickChat(deps)
function getSenderAvatar(sender)
No adjacent doc comment
function loadKickTokens()
function saveKickTokens(tokens)
async function exchangeKickCode(code, verifier)
async function refreshKickToken(refreshToken)
async function getValidKickToken()
export function createAutoStop(
markLive(platform)
markEnded(platform)
state()
dispose()
function imageExtension(contentType, sourceUrl = '')
function mediaHash(value)
No adjacent doc comment
function detectMediaBaseUrl(
function normalizeImageUrl(value)
function isPrivateAddress(address)
No adjacent doc comment
class MediaCache
filePath(hash)
No adjacent doc comment
localUrl(value)
warm(hash, url)
storeInlineDataUri(value)
pin(hash)
unpinExcept(referenced = new Set())
releaseInlineExcept(referenced = new Set())
prune()
async assertPublicUrl(url)
No adjacent doc comment
async fetchImage(sourceUrl)
No adjacent doc comment
async ensure(hash, url)
No adjacent doc comment
async serve(req, res, hash)
No adjacent doc comment
statusOf(row)
No adjacent doc comment
mapRow(row)
No adjacent doc comment
stats()
No adjacent doc comment
close()
No adjacent doc comment
function isInlineImage(value)
No adjacent doc comment
function parseDataImage(value)
function decodeDataImage(value)
function extractDataImages(text)
function stripInlineImages(text)
function validateInlineImages(
function trimCache(cache)
export function isDuplicate(caches, event, now)
export function mergeStatEntries(...snapshots)
export function messageTime(value)
class MonitorHistoryStore
endSession(id, endedAt = this.now())
No adjacent doc comment
collectLocalHashes(value, hashes)
No adjacent doc comment
storeInline(value, hashes)
No adjacent doc comment
materializeMessage(message, hashes)
No adjacent doc comment
prepareEntry(entry)
syncInlineReferences()
append(sessionId, entry)
trimSession(sessionId)
prune()
getSession(id)
No adjacent doc comment
mapSession(row)
No adjacent doc comment
listSessions(limit = 20)
No adjacent doc comment
close()
No adjacent doc comment
function createMonitorHistoryStore(options)
No adjacent doc comment
export class BarkChannel
get enabled()
export class NtfyChannel
get enabled()
export function stripEmojiUrls(text)
export function pickEmojiIcon(comment, map =
export function stripEmojiCodes(text, keepCode, map =
export function buildNotification(comment, fallbackIcon, map =
export class Notifier
constructor(channels = [])
No adjacent doc comment
get enabled()
setEnabled(name, enabled)
isEnabled(name)
async notify(title = 'Twitch', comment, icon, url)
export function createNotifier(
function parseNtfyTarget(raw)
function notificationAvailability(env)
async function resolveChannelClaimId(axios, channelName)
No adjacent doc comment
async function checkIsLive(axios, claimId)
No adjacent doc comment
function connect(claimId, channelName, deps)
No adjacent doc comment
export async function startOdyseeChat(channelName, deps)
export function stopOdyseeChat(deps)
function normalizeValues(values =
No adjacent doc comment
function sourceUrl(value)
No adjacent doc comment
function normalize(payload, now = Date.now())
function prune(now = Date.now())
No adjacent doc comment
function record(payload, now = Date.now())
function snapshot(showId, now = Date.now())
function list(now = Date.now())
function clear()
No adjacent doc comment
function revision(map)
function startURL(body)
export function createPlatformManager(
async function add(platform)
No adjacent doc comment
function createSampler(proc = process, clock = () => performance.now())
function startReporting(proc = process)
class RuntimeState
_log(...parts)
No adjacent doc comment
attach(child, platforms = [])
addPlatform(platform)
removePlatform(platform)
setPlatformState(platform, state, error = null)
clearStopTimer()
No adjacent doc comment
_armStopTimer(child)
stop(child)
snapshot()
export class MessageDedup
isDuplicate(username, message, variant = '')
remaining(username, message, variant = '')
add(username, message, variant = '')
get size()
export function parseSocketUrl(raw, fallbackPort = 9322)
export class SocketEndpoint
get enabled()
get connected()
accepts(category)
send(payload)
connect()
setEnabled(enabled)
close(finalPayload, timeoutMs)
function normalizeFilter(filter)
export class SocketHub
mediaUrl(value)
get primary()
get enabled()
No adjacent doc comment
setEnabled(enabled)
connect()
async close(finalPayload, timeoutMs = 2000)
send(payload)
export function parseEndpointSpec(entry)
export function splitApis(input)
export function createHub(
export function createMonitorRelay(
forward(payload)
No adjacent doc comment
export class JsonLineReader
constructor(onMessage, maxBytes = 256 * 1024)
push(chunk)
export class SocketTransport
drop(index = 0)
No adjacent doc comment
report()
No adjacent doc comment
send(payload)
expire()
No adjacent doc comment
flush()
No adjacent doc comment
setEnabled(enabled)
connect()
No adjacent doc comment
async close(finalPayload, timeoutMs = 2000)
export function createAdScheduler(
function clear(adId)
function clearAll()
function schedule(adId, userId, intervalMinutes, adData)
function resume()
export function createSentCache(
async function load()
async function save()
function alreadySent(uniqueKey)
export function createSponsorStore(
function load()
function save()
function getOrCreate(userId, displayName)
export function createTikTokConnectionManager(deps)
function fetchViewers()
function onConnected(state)
function cancelReconnect()
function stopViewCache()
function stop()
function scheduleReconnect()
export function getTikTokProfilePic(user)
export function registerTikTokEvents(connection, deps)
function describeException(value)
No adjacent doc comment
function logHandlerError(event, data, error)
function flushLikeBark()
function flushMemberBark()
function likeUserCount(user, likeCount)
function recordGift(userId, increment = 1)
export class TikTokNavigationGuard
async acquire(url = '')
record(status, url = '')
state()
export function logRawEvent(eventName, data, logger = console)
export function buildConnectionOptions(env = process.env, logger = console)
function tiktokChatSource(env = process.env)
export function roomStartTime(roomInfo)
export function createStartTimeProbe(logger = console)
function probe(roomInfo, startedAt)
export function broadcasterForPlatform(platform, identities =
function clearAccess(req,authorized)
function startConfidence(session)
class TrafficDatabase
constructor(filename)
append(event, key, expires)
rememberNativeIdentity(event)
updateSession(event)
openSession(platform, broadcaster)
isContinuous(open, event)
extendOrOpenSession(event)
No adjacent doc comment
applySessionMetrics(sessionId, event)
extendSession(open, event)
extendEarlyWindow(open, event, dt)
closeSession(open, nextTime)
heartbeat(time)
hasHeartbeat(from, to)
observationRuns(platform)
chartSummary(platform, from, to)
platforms()
prune(retentionMs = 7 * 86400000, now = Date.now())
countRange(platform, from, to)
previewRange(platform, from, to, timezone, page = 1)
deleteRange(platform, from, to)
activeUsers(platform, since, now)
adUsers(platform, since, now)
earliest(platform)
series(platform, since, bucketMs, now)
recent(since)
distribution(platform, days, now, timezone)
rankings(platform, days, now, timezone, selection = null)
metrics(platform, days, now, timezone)
close()
No adjacent doc comment
function normalizeBroadcaster(value, platform = null)
function backfillFilter(
function validateBackfill(value =
function calendar(time, timezone)
function notificationSlot(slot)
function collectingWindow(slotStart, leadMs = COLLECTING_LEAD_MS, timezone)
function validateSettings(value)
class TrafficPlanner
settings()
saveSettings(value)
assign(ids, purpose)
markTests(ids)
batchDetails(id, page = 1)
undoBackfill(id)
profiles()
sessions(platform = '', page = 1, status = 'unclassified')
analyses(settings = this.settings())
collecting(analyses = this.analyses(), settings = this.settings())
reconcileCollecting(settings, analyses, moments, now)
upsertCollectingTarget(item)
deactivateCollectingTarget(target)
addCollectingSlot(slot)
removeCollectingSlot(slot)
reconcile()
skip(startAt)
async tick()
snapshot()
function createPlannerRoutes(planner)
export function reportTraffic(data)
function bucketSize(rangeMs)
class TrafficStore
constructor(now = Date.now, database = null)
heartbeat()
record(raw)
reload()
sentAtOf(raw)
kindOf(raw)
streamOf(raw)
expireSeen(receivedAt)
snapshot(platform, range = '30', now = this.now(), window = null)
export async function onChat(event, deps)
function handleGAd(event, deps, icon)
export let apiClient
export let tuser
async function loadTokens()
async function ensureTwitchScopes(tokenData)
export async function getUserIcon(id)
async function pollViewer(deps)
No adjacent doc comment
function registerHandlers(deps)
No adjacent doc comment
export async function startTwitchClient(deps =
export function stopTwitchClient()
export function createClipService(
function loadHistory()
function saveHistory(clips)
function recordHistory(
async function resolveTitle(clipId, title)
function createClip(title = null, icon = DEFAULT_ICON, source = 'manual', context = null)
export function onViewer(stream, deps)
export function onError(err, deps)
export async function onStreamOnline(event, deps)
export async function onStreamOffline(event, deps)
export async function onFollow(event, deps)
export async function onCheer(event, deps)
export async function onSubscription(event, deps)
class ValidationError extends Error
constructor(message)
No adjacent doc comment
function validate(map)
export function createViewerCounts(
function entryFor(platform)
function set(platform, raw,
function reset(platform,
function get(platform)
function combined()
function snapshot()
function log(...args)
No adjacent doc comment
export function youtubeBrowserEnabled()
function watchUrl(videoId)
No adjacent doc comment
function videoIdFromUrl(value)
function channelLiveUrl(input)
async function waitForVideoId(page, timeoutMs = 45000)
async function detectPageChannelId(page)
function profileDir()
No adjacent doc comment
async function waitForChatFrame(page, videoId, timeoutMs = 30000)
function send(el)
No adjacent doc comment
function start()
No adjacent doc comment
async function injectFrame(frame)
No adjacent doc comment
export async function startYoutubeBrowser(
export async function stopYoutubeBrowser()
function loadYoutubeCache()
No adjacent doc comment
function saveYoutubeCache(data)
No adjacent doc comment
async function resolveChannelId(axios, apiKey, input)
No adjacent doc comment
async function checkIsLive(axios, apiKey, channelId)
No adjacent doc comment
function handleYoutubeText(payload, deps, transport = 'native')
function startYoutubeViewerPolling(videoId, deps)
function connect(liveChatId, videoId, channelName, deps)
No adjacent doc comment
function poll()
No adjacent doc comment
export async function startYoutubeChat(channelName, deps)
export async function stopYoutubeChat()
function youtubeChatSource(env = process.env)
function notice(message)
No adjacent doc comment
function bearerAuth(source)
No adjacent doc comment
function apiKeyAuth(apiKey)
function blockRefresh(ms, key, message)
No adjacent doc comment
function loadYoutubeTokens()
function saveYoutubeTokens(tokens)
async function exchangeYoutubeCode(code)
async function getYoutubeAuthParams(apiKey)
function base64URLEncode(buffer)
sessionFor(platform, time)
No adjacent doc comment
recentSessions(platform, limit)
No adjacent doc comment
function pushStreamMessage(payload)
function pushTestResult(payload)
function recordMessageStat(message, metadata =
No adjacent doc comment
function getTopMessages(limit = 10)
No adjacent doc comment
function getAllMessageStatsSorted()
No adjacent doc comment
function processFilter(
No adjacent doc comment
function readFileStats()
No adjacent doc comment
function mergeWithFileStats(previous, snapshot)
No adjacent doc comment
function SaveCacheKeywordDataAll()
No adjacent doc comment
function writeLog(filename="Main_Log.log", message)
function classifyLogLevel(text)
function pushLog(...line)
No adjacent doc comment
function sendToTikTok(obj)
No adjacent doc comment
function saveTokens()
function createToken()
function isValidToken(token)
function maskKey(key, visible = 4)
function parseCookies(req)
No adjacent doc comment
function startRuntime(url)
function setRuntimeTransports(next =
function addRuntimePlatform(platform)
function sendKeywordDataCacheTop()
No adjacent doc comment
function sendKeywordDataCacheAll()
No adjacent doc comment
function sendKeywordData()
No adjacent doc comment
async function handleExit()
No adjacent doc comment
export const SIGN_SERVER_CONFIG
No adjacent doc comment
function createSandbox()
get cookie()
No adjacent doc comment
set cookie(val)
No adjacent doc comment
get length()
No adjacent doc comment
get length()
No adjacent doc comment
export async function initSigner()
No adjacent doc comment
export function signQuery(queryString)
No adjacent doc comment
async function gotoTikTok(target, url, options)
export function signerNavigationState()
export async function initDirectSigner()
async function initialize()
export async function directSign(url)
No adjacent doc comment
export async function signWsUrl(wsUrl)
async function setTikTokCookies(page)
No adjacent doc comment
export async function signWebSocketForUser(username, timeoutMs = 20000)
No adjacent doc comment
export function isLiveWsReady()
No adjacent doc comment
export async function initLivePage(username, timeoutMs = 20000)
No adjacent doc comment
export async function pollLiveMessages()
No adjacent doc comment
export async function wsDiagnostic()
No adjacent doc comment
export async function browserFetchSigned(params)
No adjacent doc comment
export async function sendLiveMessage(data)
No adjacent doc comment
export async function closeLivePage()
No adjacent doc comment
export function resetFetchPage()
No adjacent doc comment
export async function closeDirectSigner()
export function setStreamerName(_name)
No adjacent doc comment
async function ensureSigner()
No adjacent doc comment
export function waitForSigner()
No adjacent doc comment
function hasDirectSignCreds()
No adjacent doc comment
function hasEulerKey()
No adjacent doc comment
export async function setupCustomSignServer()
No adjacent doc comment
function fmt(msg)
No adjacent doc comment
function imFetchPollLoop(roomId, connection, mock)
No adjacent doc comment
function n(t)
No adjacent doc comment
function w()
No adjacent doc comment
function h(n, t)
No adjacent doc comment
function i(n, t)
No adjacent doc comment
function o(n, t, r)
No adjacent doc comment
function f(n)
No adjacent doc comment
function a(t)
No adjacent doc comment
function s(n)
No adjacent doc comment
function d(n)
No adjacent doc comment
function w(n)
No adjacent doc comment
function h(n)
No adjacent doc comment
function A(n)
No adjacent doc comment
function l(n, t)
No adjacent doc comment
function g(n, t)
No adjacent doc comment
function E(n, t)
No adjacent doc comment
function p(n, t)
No adjacent doc comment
function b(n)
No adjacent doc comment
function T()
No adjacent doc comment
i(function ()
No adjacent doc comment
function H(n)
No adjacent doc comment
function C(n, t)
No adjacent doc comment
function P(n, t)
No adjacent doc comment
function z(n, t, r)
No adjacent doc comment
function U()
No adjacent doc comment
function J()
No adjacent doc comment
function L()
No adjacent doc comment
function q()
No adjacent doc comment
function V()
No adjacent doc comment
function X(n)
No adjacent doc comment
function W(n)
No adjacent doc comment
function Z()
No adjacent doc comment
i(function ()
No adjacent doc comment
r(c, function (n)
No adjacent doc comment
r(function ()
No adjacent doc comment
t(function ()
No adjacent doc comment
f(d, function (n, t)
No adjacent doc comment
setTimeout(function ()
No adjacent doc comment
function Ln(n, t, r)
No adjacent doc comment
f(h, function (n, t)
No adjacent doc comment
setTimeout(function ()
No adjacent doc comment
setTimeout(function ()
No adjacent doc comment
t(function ()
No adjacent doc comment
t(function ()
No adjacent doc comment
t(function ()
No adjacent doc comment
function o(n, t)
No adjacent doc comment
cn(n, function (n)
No adjacent doc comment
function zt(n)
No adjacent doc comment
function Vt(n)
No adjacent doc comment
function s()
No adjacent doc comment
function cr(n, t, r)
No adjacent doc comment
setTimeout(function ()
No adjacent doc comment
function sr(n, t, r)
No adjacent doc comment
function dr(n, t, r, i)
No adjacent doc comment
i(u, function ()
No adjacent doc comment
function wr(n, t, r)
No adjacent doc comment
function hr(n, t)
No adjacent doc comment
function Ar(n, t)
No adjacent doc comment
function lr(n, t, r)
No adjacent doc comment
function gr(n)
No adjacent doc comment
function Er(n)
No adjacent doc comment
function pr(n)
No adjacent doc comment
function Ir(n)
No adjacent doc comment
function v()
No adjacent doc comment
function s()
No adjacent doc comment
function Fr(n, t, r, i)
No adjacent doc comment
function Gr(n, t)
No adjacent doc comment
y(n, "plugins." + ft + ".onerror", function (n, t)
No adjacent doc comment
function t()
No adjacent doc comment
Y(function (r)
No adjacent doc comment
cn(a, function ()
No adjacent doc comment
setTimeout(function ()
No adjacent doc comment
setTimeout(function ()
No adjacent doc comment
C(n, t, function ()
No adjacent doc comment
function o(n)
No adjacent doc comment
function a(n, r, i, o, e, u)
No adjacent doc comment
function x(n)
No adjacent doc comment
function P(n)
No adjacent doc comment
function z(n)
No adjacent doc comment
function K(n)
No adjacent doc comment
function W()
No adjacent doc comment
function Z()
No adjacent doc comment
function _()
No adjacent doc comment
function $()
No adjacent doc comment
function nn()
No adjacent doc comment
function b(n)
No adjacent doc comment
function C(n, t)
No adjacent doc comment
function v(n, t, r)
No adjacent doc comment
function s(n, t, r, i)
No adjacent doc comment
function d(n, t, r)
No adjacent doc comment
function E()
No adjacent doc comment
function p()
No adjacent doc comment
function I()
No adjacent doc comment
v(y, c, function ()
No adjacent doc comment
function m(n)
No adjacent doc comment
v(n, t, function (n)
No adjacent doc comment
function M(t, r)
No adjacent doc comment
function i(e, u, c, f)
No adjacent doc comment
function o()
No adjacent doc comment
function B(n, r, i)
No adjacent doc comment
function D(n, r)
No adjacent doc comment
function O(n)
No adjacent doc comment
function S(n)
No adjacent doc comment
function R(n)
No adjacent doc comment
function F(r)
No adjacent doc comment
v(M.prototype, f, function ()
No adjacent doc comment
v(C, c, function ()
No adjacent doc comment
v(C, "toString", function ()
No adjacent doc comment
function n()
No adjacent doc comment
function i(i, o)
No adjacent doc comment
setTimeout(function ()
No adjacent doc comment
C(n, i, function ()
No adjacent doc comment
setTimeout(function ()
No adjacent doc comment
C(n, r, function ()
No adjacent doc comment
C(n, e, function ()
No adjacent doc comment
function v(n, t)
No adjacent doc comment
function s(n, r)
No adjacent doc comment
setTimeout(function ()
No adjacent doc comment
function i()
No adjacent doc comment
function o()
No adjacent doc comment
setTimeout(function ()
No adjacent doc comment
function p(n)
No adjacent doc comment
function I(n)
No adjacent doc comment
function y(n)
No adjacent doc comment
function Q(n, t)
No adjacent doc comment
function b(n, t, r)
No adjacent doc comment
function C(n, t, r)
No adjacent doc comment
function m(n)
No adjacent doc comment
function M(n, t)
No adjacent doc comment
function B(n)
No adjacent doc comment
function D(n, t)
No adjacent doc comment
function O(n, t)
No adjacent doc comment
function S(n, t, r, i, o, e)
No adjacent doc comment
function encodeBase64(bytes)
No adjacent doc comment
function quarter(s, a, b, c, d)
No adjacent doc comment
function chachaBlock(initial, rounds)
No adjacent doc comment
function chachaXor(bytes, keyWords, rounds)
No adjacent doc comment
function deriveRounds(keyWords)
No adjacent doc comment
function intToFixedBytes(n, width)
No adjacent doc comment
function encodePayload(fields)
No adjacent doc comment
export function encode( queryString, body, userAgent, counters =
No adjacent doc comment
function createSocketTestRoutes(
function fixture()
No adjacent doc comment
list(value)
No adjacent doc comment
details(platform, user)
No adjacent doc comment
mergePreview(value)
No adjacent doc comment
merge(value)
No adjacent doc comment
latestMerge(platform)
No adjacent doc comment
undoLastMerge(value)
No adjacent doc comment
function request(serve, url,
No adjacent doc comment
setHeader()
No adjacent doc comment
writeHead(status)
No adjacent doc comment
end(value)
No adjacent doc comment
function fixture(t)
No adjacent doc comment
async function main()
No adjacent doc comment
function clock()
setTimeout(fn, ms)
No adjacent doc comment
clearTimeout(id)
No adjacent doc comment
ids()
No adjacent doc comment
run(id)
No adjacent doc comment
pending()
No adjacent doc comment
class Chart
No adjacent doc comment
constructor(ctx, config)
No adjacent doc comment
update()
No adjacent doc comment
resize()
No adjacent doc comment
async function main()
No adjacent doc comment
function setup(options =
No adjacent doc comment
function browserPath()
class Page extends EventEmitter
async close()
No adjacent doc comment
class Browser extends EventEmitter
No adjacent doc comment
async newPage()
No adjacent doc comment
async disconnect()
No adjacent doc comment
async close()
No adjacent doc comment
function request(handler, method, url, headers, body =
writeHead(status)
No adjacent doc comment
end(data)
No adjacent doc comment
async function invoke(url, authorized, method = 'GET')
No adjacent doc comment
function render(file)
No adjacent doc comment
function previewServer()
No adjacent doc comment
async function main()
No adjacent doc comment
function request(route,
No adjacent doc comment
writeHead(status)
No adjacent doc comment
end(value)
No adjacent doc comment
async function main()
No adjacent doc comment
async function createFixture(t)
function requestMapping(method, authorized, body, url = '/api/emoji')
writeHead(status)
No adjacent doc comment
end(responseBody)
No adjacent doc comment
writeHead(status, headers)
No adjacent doc comment
end(body)
No adjacent doc comment
writeHead(status)
No adjacent doc comment
end(body)
No adjacent doc comment
async function createLayeredFixture(t, local = null)
async function waitForFile(file, predicate)
No adjacent doc comment
async function main()
No adjacent doc comment
function parseGAd(messageText, iconFallback)
No adjacent doc comment
function check(name, got, expected)
No adjacent doc comment
function fakeFs(initial =
No adjacent doc comment
async readFile(path)
No adjacent doc comment
async writeFile(path, data)
No adjacent doc comment
function fakeAxios(map =
No adjacent doc comment
function makeStore(
No adjacent doc comment
dispatchEvent()
No adjacent doc comment
function fakeSocket()
on(ev, cb)
No adjacent doc comment
connect()
No adjacent doc comment
function makeDeps(socket, overrides =
function fakeServe(cache, hash, method = 'GET', headers =
No adjacent doc comment
end(body)
No adjacent doc comment
serve(req, res, hash)
No adjacent doc comment
writeHead()
No adjacent doc comment
function cache()
function event(overrides =
function request(chunks, contentType = 'application/json')
async function main()
No adjacent doc comment
function entry(t, overrides =
No adjacent doc comment
function request(route, path, authorized = true)
No adjacent doc comment
setHeader()
No adjacent doc comment
writeHead(status)
No adjacent doc comment
end(body)
No adjacent doc comment
function fakeAxios()
No adjacent doc comment
async function main()
No adjacent doc comment
async function main()
No adjacent doc comment
function child()
writeHead(code)
No adjacent doc comment
function request(method, origin, body)
No adjacent doc comment
function request(method, origin, body)
No adjacent doc comment
function request(method, origin, body)
No adjacent doc comment
function serveFile(res, file, type)
No adjacent doc comment
function previewServer()
No adjacent doc comment
async function main()
No adjacent doc comment
function fakeEndpoint(name, accepts = () => true)
No adjacent doc comment
setEnabled(enabled)
No adjacent doc comment
class SocketReceiverTests(unittest.TestCase)
No adjacent doc comment
def setUp(self)
No adjacent doc comment
def test_tcp_fragments_utf8_and_malformed_frames(self)
No adjacent doc comment
def test_queue_overload_is_bounded_and_keeps_recent_messages(self)
No adjacent doc comment
def test_ui_budget_includes_message_processing(self)
No adjacent doc comment
def test_oversized_frame_closes_connection(self)
No adjacent doc comment
def test_receive_error_always_closes_and_updates_active_count(self)
No adjacent doc comment
def test_keepalive_probe_then_idle_disconnect(self)
No adjacent doc comment
class BrokenConnection
No adjacent doc comment
def settimeout(self, timeout): pass
No adjacent doc comment
def close(self): self.closed = True
No adjacent doc comment
def recv(self, size): raise ConnectionResetError('test reset')No adjacent doc comment
class SilentConnection
No adjacent doc comment
def settimeout(self, timeout): events.append(('timeout', timeout))No adjacent doc comment
def sendall(self, data): events.append(('send', data))No adjacent doc comment
def close(self): self.closed = True
No adjacent doc comment
def recv(self, size): raise socket.timeout()
No adjacent doc comment
function call(route,
No adjacent doc comment
writeHead(status)
No adjacent doc comment
end(value)
No adjacent doc comment
class FakeSocket extends EventEmitter
No adjacent doc comment
setKeepAlive()
No adjacent doc comment
setNoDelay()
No adjacent doc comment
connect()
No adjacent doc comment
write(line)
No adjacent doc comment
destroy()
No adjacent doc comment
end()
No adjacent doc comment
function setup(t, options =
No adjacent doc comment
function fakeFsSync(files)
function fakeFsAsync(files)
function setup(t,real=false)
No adjacent doc comment
function fixture(t, compiler, server)
No adjacent doc comment
function run(root,args=['--dev'])
No adjacent doc comment
function fakeConnection()
function makeDeps(overrides =
No adjacent doc comment
function makeHarness(overrides =
class FakeDatabase
No adjacent doc comment
prune()
No adjacent doc comment
distribution()
No adjacent doc comment
rankings(platform, days, now, timezone, selection)
No adjacent doc comment
metrics()
No adjacent doc comment
sessionComparison(platform, days, now, timezone, selection)
No adjacent doc comment
hourlyViewing()
No adjacent doc comment
class FakeStore
No adjacent doc comment
class FakeDatabase
No adjacent doc comment
prune()
No adjacent doc comment
countRange()
No adjacent doc comment
previewRange(platform,from,to,timezone,page)
No adjacent doc comment
class FakeStore
No adjacent doc comment
scale()
No adjacent doc comment
arc(x,y)
No adjacent doc comment
fillText(text)
No adjacent doc comment
async function main()
No adjacent doc comment
function fixture(t)
No adjacent doc comment
async function main()
No adjacent doc comment
async function main()
No adjacent doc comment
function makeDeps(overrides =
getOrCreate(userId, name)
No adjacent doc comment
save()
No adjacent doc comment
function makeService(
function makeDeps(overrides =
function contextFor(file, start, end, source = fs.readFileSync(new URL('../UserScript/' + file, import.meta.url), 'utf8'))async function main()
No adjacent doc comment
function makeCounts(overrides =
advance(ms)
No adjacent doc comment
at()
No adjacent doc comment
get cookie()
No adjacent doc comment
set cookie(val)
No adjacent doc comment
function request(url, method='GET', handler=serveWebAsset)
No adjacent doc comment
class WS extends EventTarget
No adjacent doc comment
emit(data)
No adjacent doc comment
function fixtureServer()
No adjacent doc comment
function writeLog(filename="TikTokRun.log", message,type="Other")
function reportTraffic(data)
function applyRelayAudience(data)
No adjacent doc comment
function recordChatHeat(message, metadata)
No adjacent doc comment
function reportFiltered(fr, meta)
function transportSnapshot()
function reportTransportState()
No adjacent doc comment
function applyTransports(next =
function platformSenders(platform)
async function handleExit()
No adjacent doc comment
function describeError(value)
function cachedMediaUrl(value)
No adjacent doc comment
function sendAdOverylayMessage(user, text, iconURL, useTTS)
No adjacent doc comment
function sendAudienceUpdate()
function updateCombinedViewerCount(force = false)
No adjacent doc comment
function sendSocketMessage(user, message,
function handleRawSocketTest(message)
function reportTestResult(testId, status, remainingMs = 0, notify = null, extra = null)
function normalizeTestDispatch(value)
function summarizeNotify(results)
function connectSocket()
No adjacent doc comment
async function startTikTokPlatform()
function fetchAndSyncGifts()
async function startTwitchPlatform()
No adjacent doc comment
function pushAutoClipStats()
No adjacent doc comment
function startOdyseePlatform()
function startYoutubePlatform()
No adjacent doc comment
function startKickPlatform()
No adjacent doc comment
function reportPlatformState(platform, state, error = '')
export function chatMetadata(data)
export class TikTokChatGuard
beginReconnect()
check(data)
function available()
async function send(channel, title, comment)
function startHeartbeat()
function serveTraffic(req, res, authorized = false)
function parseBool(val, defaultValue = false)
No adjacent doc comment
function self_logTo(...DATA)
No adjacent doc comment
function iso6393To1Code(code3 )
No adjacent doc comment
function detectLanguage(text)
No adjacent doc comment
function isChinese(text)
No adjacent doc comment
async function translateByMyMemory(Chat, sourceLang)
async function translateByGoogle(Chat)
No adjacent doc comment
async function translateByBing(Chat, sourceLang)
No adjacent doc comment
export function extractTranslatableText(Chat)
async function translateByApi(Chat)
No adjacent doc comment
async function TranslateText(params="TEST")
No adjacent doc comment
function injectCSS()
function whenBodyReady(callback)
function setupDarkMode()
function updateButton()
No adjacent doc comment
function setupFetchOverride()
function scanDOM()
function scanShadowRoots(root)
function scheduleDOMScan()
No adjacent doc comment
function setupDOMObserver()
No adjacent doc comment
function setupSPAHook()
function routeChanged()
No adjacent doc comment
function setupIframeDetection()
function normalizeEndpoint(value)
No adjacent doc comment
function ttwEndpoint()
No adjacent doc comment
function saveEndpoint(value)
No adjacent doc comment
function changeEndpoint()
No adjacent doc comment
function sendTestMessage()
No adjacent doc comment
function createTestButton()
No adjacent doc comment
function normalizeEndpoint(value)
function ttwEndpoint()
No adjacent doc comment
function saveEndpoint(value)
No adjacent doc comment
function changeEndpoint()
No adjacent doc comment
function loadTarget()
function saveTarget()
No adjacent doc comment
function currentHandle()
function canSend()
function blockedReason()
No adjacent doc comment
function logBlocked()
No adjacent doc comment
function isHydrating()
No adjacent doc comment
function sendAudienceUpdate()
No adjacent doc comment
function sendSocketMessage(user, message, img, giftImg, isMain = true,userNum,userList=null, metadata=
No adjacent doc comment
function startMonitoring()
function stopMonitoring(reason)
No adjacent doc comment
function syncMonitoring()
No adjacent doc comment
function onElementAdded(selector, callback)
function watchEnterMessages(callback)
function waitForContent(el, callback)
No adjacent doc comment
function hasContent(el)
No adjacent doc comment
function getViewerCount()
function getNewChatMessages(node)
function watchGiftMessages(callback)
function getNewGiftMessages(container)
No adjacent doc comment
function getNewEnterMessages(node)
function sentKind(isMain, giftImg)
function flashSent(kind, user, message)
No adjacent doc comment
function h(tag, attrs =
function buildPanel()
No adjacent doc comment
function renderPanelState()
function boot()
No adjacent doc comment
function normalizeEndpoint(value)
function ttwEndpoint()
function saveEndpoint(value)
No adjacent doc comment
function changeEndpoint()
No adjacent doc comment
function normalizeBroadcaster(value)
function loadBroadcaster()
function broadcasterId()
function sendAudienceUpdate(userNum, userList)
No adjacent doc comment
function readMetrics()
function sendMetrics()
function sendSocketMessage(user, message, img, giftImg, isMain = true,userNum = 0, userList = [], metadata =
No adjacent doc comment
function handleChatMessage(element)
function findTopLabel()
No adjacent doc comment
function getTopFanUsers()
No adjacent doc comment
function startObserver()
No adjacent doc comment
function readPreference()
function onMonitorPage()
function shouldRun()
function persistUI()
No adjacent doc comment
function place(x, y)
No adjacent doc comment
function clampPanel()
No adjacent doc comment
function setCollapsed(value)
No adjacent doc comment
function startMonitoring()
No adjacent doc comment
function stopMonitoring()
No adjacent doc comment
function renderPanel()
function apply()
function testEndpoint(target)
No adjacent doc comment
function normalizeEndpoint(value)
No adjacent doc comment
function ttwEndpoint()
No adjacent doc comment
function saveEndpoint(value)
No adjacent doc comment
function changeEndpoint()
No adjacent doc comment
function monitorUrl(raw)
No adjacent doc comment
function observe(state, url, now)
function previewLabel(text)
function shouldAutoPause(
function normalizeHealth(value)
No adjacent doc comment
function parseResolution(value)
No adjacent doc comment
function parseBitrateKbps(value)
No adjacent doc comment
function parseFps(value)
No adjacent doc comment
function parseKeyframeSec(value)
No adjacent doc comment
function persistUI()
No adjacent doc comment
function place(x, y)
No adjacent doc comment
function clampPanel()
No adjacent doc comment
function setCollapsed(value)
No adjacent doc comment
function save()
No adjacent doc comment
function openMonitor()
No adjacent doc comment
function visible(anchor)
No adjacent doc comment
function setPreviewStatus(text)
No adjacent doc comment
function previewControl()
No adjacent doc comment
function previewAction(control)
No adjacent doc comment
function previewVideo(control)
No adjacent doc comment
function isPreviewInteraction(target)
No adjacent doc comment
function pausePreview(control, video)
No adjacent doc comment
function maybePausePreview()
No adjacent doc comment
function setHealthStatus(text)
No adjacent doc comment
function metricText(label)
No adjacent doc comment
function readHealthMetrics()
No adjacent doc comment
function healthSummary(values)
No adjacent doc comment
function sendHealth()
No adjacent doc comment
function scan()
No adjacent doc comment
function testEndpoint(target)
No adjacent doc comment
function removeMeta()
No adjacent doc comment
function removeOpenAppBanner()
No adjacent doc comment
function setTheaterStyle(element, property, value)
function pruneDetachedStyles()
No adjacent doc comment
function applyTheater()
No adjacent doc comment
function restoreTheater()
No adjacent doc comment
function updateButton()
No adjacent doc comment
function setTheater(enabled)
No adjacent doc comment
function clampButton(button)
No adjacent doc comment
function loadButtonPosition(button)
No adjacent doc comment
function saveButtonPosition(button)
No adjacent doc comment
function createButton()
No adjacent doc comment
function createInfoDiv(container)
No adjacent doc comment
function scheduleOverlayUpdate()
No adjacent doc comment
function updateOverlay()
No adjacent doc comment
function detachVideo()
No adjacent doc comment
function findVideo()
No adjacent doc comment
function runMaintenance()
No adjacent doc comment
function scheduleMaintenance(delay = MAINTENANCE_MS)
No adjacent doc comment
function init()
No adjacent doc comment
construct(target, args)
No adjacent doc comment
function normalizeEndpoint(value)
No adjacent doc comment
function ttwEndpoint()
No adjacent doc comment
function saveEndpoint(value)
No adjacent doc comment
function changeEndpoint()
No adjacent doc comment
function post(route, payload)
No adjacent doc comment
function relayBinary(buffer)
No adjacent doc comment
construct(target, args, newTarget)
No adjacent doc comment
function normalizeEndpoint(value)
No adjacent doc comment
function ttwEndpoint()
No adjacent doc comment
function saveEndpoint(value)
No adjacent doc comment
function changeEndpoint()
No adjacent doc comment
function normalizeBroadcaster(value)
function detectChannelId()
function loadState()
No adjacent doc comment
function saveState()
No adjacent doc comment
function videoIdFromUrl(url)
function currentVideoId()
function isTargetChat(target = state.targetVideoId, current = currentVideoId())
function isLiveVideo()
function maybeAutoFollow()
function bindCurrentTarget()
function logBlocked(reason = 'disabled')
No adjacent doc comment
function log(...args)
No adjacent doc comment
function extractMsg(el)
No adjacent doc comment
function flashSent(user, message)
No adjacent doc comment
function send(data)
No adjacent doc comment
onload(r)
No adjacent doc comment
onerror(e)
No adjacent doc comment
function h(tag, attrs =
function loadPanelPosition()
No adjacent doc comment
function savePanelPosition(panel)
No adjacent doc comment
function clampPanel(panel)
function makeDraggable(panel, handle)
function buildPanel()
No adjacent doc comment
function renderPanelState()
function startObserving()
No adjacent doc comment
function createWebAssetHandler(root = __dirname)
function send(status, body, contentType = 'application/json; charset=utf-8')
No adjacent doc comment
function read(file, contentType)
No adjacent doc comment
function cell(content, className = '')
No adjacent doc comment
function labelChips(labels)
No adjacent doc comment
function userCell(user, tenure)
No adjacent doc comment
function levelCell(user)
No adjacent doc comment
function tenureCell(user, tenure)
No adjacent doc comment
function renderRows()
No adjacent doc comment
async function loadList()
No adjacent doc comment
function renderDetails(data)
No adjacent doc comment
async function loadDetails(platform, userKey)
No adjacent doc comment
async function loadMergeStatus()
No adjacent doc comment
async function undoMerge()
No adjacent doc comment
function updateMergeTargetMeta()
No adjacent doc comment
function mergeStatus(message, error = false)
No adjacent doc comment
function mergeSourceText()
No adjacent doc comment
function mergeSummaryColumn(title, summary, lifetime)
No adjacent doc comment
function renderMergePreview(data)
No adjacent doc comment
async function loadMergeCandidates(q = '')
No adjacent doc comment
function openMergeDialog()
No adjacent doc comment
function closeMergeDialog()
No adjacent doc comment
async function previewMerge()
No adjacent doc comment
async function applyMerge()
No adjacent doc comment
function updateTenureLegend()
No adjacent doc comment
function visibleRows(rows)
No adjacent doc comment
function groupTriggerPoints(points)
No adjacent doc comment
function showTriggerGroup(group)
No adjacent doc comment
function compactScoreSeries(rows, readValue, keepTriggers = false)
function scoreDuration(ms)
No adjacent doc comment
function summarizeRows(rows)
function renderPlatformCards()
No adjacent doc comment
function updatePlatformCurves()
No adjacent doc comment
function sourceLabel(platform)
No adjacent doc comment
function transportLabel(value)
No adjacent doc comment
function esc(s)
No adjacent doc comment
function fmtTime(iso)
No adjacent doc comment
function fmtMinute(iso)
No adjacent doc comment
function triggerColor(row)
No adjacent doc comment
function selectTrigger(row)
No adjacent doc comment
function triggerHistoryInfo(row)
No adjacent doc comment
function renderTriggerDetail()
No adjacent doc comment
function buildCharts()
No adjacent doc comment
function updateCharts(stats)
No adjacent doc comment
function renderCards(stats)
No adjacent doc comment
function formatAge(ms)
No adjacent doc comment
function renderAutoclipStatus(runtime, stats, configured =
function setModeBadge(mode, pending = false)
function renderConfig(configured =
No adjacent doc comment
function fmtSessionTime(value)
No adjacent doc comment
function setAutoclipView(mode)
async function loadHistorySessions()
No adjacent doc comment
async function loadHistorySession(sessionId)
No adjacent doc comment
async function load()
No adjacent doc comment
function fmtTime(ms)
No adjacent doc comment
function matches(entry)
No adjacent doc comment
function makeRow(entry)
No adjacent doc comment
function updateCount()
No adjacent doc comment
function renderAll()
No adjacent doc comment
function append(entry)
No adjacent doc comment
function buildFilters()
No adjacent doc comment
function setStatus(key)
No adjacent doc comment
function text(node, value)
No adjacent doc comment
function relative(ms)
No adjacent doc comment
function showCallout(message, link)
No adjacent doc comment
function hideCallout()
No adjacent doc comment
function renderCards()
No adjacent doc comment
function renderRecent()
No adjacent doc comment
function scrollLogsToLatest()
No adjacent doc comment
function renderLogs()
No adjacent doc comment
function render()
No adjacent doc comment
function socketLabel(data)
No adjacent doc comment
async function loadSocketStatus()
No adjacent doc comment
async function applySocketSubscription()
No adjacent doc comment
async function load()
No adjacent doc comment
function schedule()
No adjacent doc comment
function setStatus(text)
function parseImageUrl(value)
function shortHash(text)
function resetForm()
function createCard(entry)
function render()
function startEdit(code, url)
async function request(options)
async function load()
async function mutate(action)
function previewImage()
function schedulePreview()
function onSubmit(event)
function normalizeManifest(value)
function translate(primary, fallback, key, params =
async function load(locale)
No adjacent doc comment
function t(key, params, defaultText)
No adjacent doc comment
function apply()
async function setLanguage(locale)
No adjacent doc comment
function cell(tr, text, className)
function buildTable(rows)
function emptyRow(body, span)
function render()
function buildSnippet()
function highlight(text, regex)
function currentRule()
function applyRule(rule, value)
function outcomeText(outcome)
function appendTokens(parent, line)
function highlightJs(text)
function sample()
function candidateRows(rule, record)
function toast(text, ms = 2600)
function buildOutcomeTable(rows, rule)
function actualText(result)
async function checkActual(record)
async function quickTest(record)
async function loadActiveRules()
async function copyText(text, button)
function insertSnippet(content, snippet)
function renderInsert()
async function showInsert()
function updateSnippetState()
async function runSequence()
function updateRulePreview()
function syncRuleForm()
function candidateThrottleRule()
function applyPreset(id)
No adjacent doc comment
function applySequencePreset(id)
function connect()
function close()
No adjacent doc comment
function fmtTime(ms)
No adjacent doc comment
function updateSession()
function setHistoryStatus(text, error = false)
No adjacent doc comment
function historySessionLabel(session)
No adjacent doc comment
function renderHistory()
No adjacent doc comment
function clearHistoryRows()
No adjacent doc comment
async function loadHistoryMessages(page = 1)
No adjacent doc comment
async function loadHistorySessions()
No adjacent doc comment
function setMode(mode)
No adjacent doc comment
function refreshView()
No adjacent doc comment
function buildEmojiPattern(map)
function emojiParts(text)
function setTestStatus(text)
No adjacent doc comment
function validAvatar(value)
No adjacent doc comment
function isImageSource(value)
No adjacent doc comment
function updateRawImagePreview()
No adjacent doc comment
function updateAvatarPreview()
No adjacent doc comment
function loadTestPrefs()
No adjacent doc comment
function saveTestPrefs()
No adjacent doc comment
function loadRawPrefs()
No adjacent doc comment
function saveRawPrefs()
No adjacent doc comment
function restoreRawPrefs()
No adjacent doc comment
function restoreTestPrefs()
No adjacent doc comment
function restoreTestCategory()
No adjacent doc comment
function buildAvatarOptions()
No adjacent doc comment
function buildRawImageOptions()
No adjacent doc comment
async function loadRawMediaOptions()
No adjacent doc comment
function clearTestPrefs()
No adjacent doc comment
function applyTestI18n()
No adjacent doc comment
function buildTestCategories()
No adjacent doc comment
function addTestMessage()
No adjacent doc comment
function clearTestPending()
No adjacent doc comment
function clearTestCooldown()
No adjacent doc comment
function channelLabel(name)
No adjacent doc comment
function describeNotify(notify)
No adjacent doc comment
function startTestCooldown(remainingMs, duplicate, notifyText = '')
No adjacent doc comment
function handleTestResult(result)
No adjacent doc comment
function setRawStatus(text, error = false)
No adjacent doc comment
function rawPayload()
No adjacent doc comment
async function sendRawSocketTest()
No adjacent doc comment
function formatBytes(bytes)
No adjacent doc comment
function setMediaStatus(text, error = false)
No adjacent doc comment
function copyButtonFeedback(button, label, error = false)
No adjacent doc comment
function copyWithExecCommand(value)
No adjacent doc comment
async function copyText(value)
No adjacent doc comment
async function copyMediaLink(link, button = null)
No adjacent doc comment
function mediaStatusLabel(status)
No adjacent doc comment
function renderMedia()
No adjacent doc comment
async function loadMedia()
No adjacent doc comment
async function sendSocketTest()
No adjacent doc comment
function matches(entry)
No adjacent doc comment
function makeRow(entry)
No adjacent doc comment
function updateCount()
No adjacent doc comment
function updateJump()
No adjacent doc comment
function renderAll()
No adjacent doc comment
function append(entry)
No adjacent doc comment
function buildFilters()
No adjacent doc comment
function setStatus(key)
No adjacent doc comment
function toast(message, tone = 'info')
No adjacent doc comment
function values()
function save()
No adjacent doc comment
function addPlatform(platform)
No adjacent doc comment
function setTransport(key, enabled)
No adjacent doc comment
function transportStateText(item, transports)
No adjacent doc comment
function renderTransports(next)
No adjacent doc comment
function renderAddPlatforms(next)
No adjacent doc comment
function update(next)
No adjacent doc comment
async function init()
function changed(key, value)
No adjacent doc comment
function setText(node, value)
No adjacent doc comment
function schedulePoll()
No adjacent doc comment
function updateTable(id, rows)
function setupTimezone()
function niceStep(value)
No adjacent doc comment
function buildTable(rows)
function renderHeatmap(cells)
function renderDaily(daily)
function renderMetrics(metrics)
function renderComparison(comparison)
function renderRanking(rankings)
function renderHourly(hourly)
async function refresh()
function purposeSelect(value, inherit = false)
async function mutate(action, value)
function toast(message, tone = 'info')
async function save(action, value)
function actionButton(label, action)
No adjacent doc comment
function options(id, count, selected, label)
No adjacent doc comment
function renderSettings()
No adjacent doc comment
function collectingCard()
function renderJobs()
No adjacent doc comment
function openClassification()
function openProfiles()
No adjacent doc comment
function focusReminder()
No adjacent doc comment
function renderHealth()
function renderAnalysisTable()
function renderAnalysis()
No adjacent doc comment
function renderClassification()
No adjacent doc comment
function backfillFilter()
function useEnvIdentity()
function backfillErrorKey(field)
function invalidateBackfill()
function checkedBackfillIds()
function refreshApplyState()
function renderBackfillPreview()
async function previewBackfill()
async function applyBackfill()
async function showBatch()
function renderBatch()
function hideBatch()
async function undoBackfill()
function renderBackfill()
async function refresh()
function poll()
No adjacent doc comment
function changed(key, value)
No adjacent doc comment
function setText(node, value)
No adjacent doc comment
function syncOptions(select, options)
No adjacent doc comment
function prepareCanvas(canvas, width, height, ratio)
No adjacent doc comment
function pollDelay(range, window, now)
No adjacent doc comment
function schedulePoll()
No adjacent doc comment
function chartIndex(offset, left, right, count)
No adjacent doc comment
function sampleRunTarget(rows, current, direction)
function setAnalysisPending(message)
No adjacent doc comment
function chooseWindow(window)
No adjacent doc comment
function chooseRun(index)
No adjacent doc comment
function adjacentRun(direction)
No adjacent doc comment
function boundedWindow(from, duration, start, end)
No adjacent doc comment
function moveWindow(factor = 0, zoom = 1)
No adjacent doc comment
function zonedInput(timestamp, zone)
No adjacent doc comment
function parseZonedInput(value, zone)
function renderSegments(runs)
No adjacent doc comment
function drawOverview()
No adjacent doc comment
function renderCharts()
No adjacent doc comment
function selectBucket(value)
No adjacent doc comment
function buildTable(rows)
function bucketLabel(value)
function renderDetails()
function draw(id, keys)
No adjacent doc comment
function niceStep(value)
function tickText(value, step)
async function refresh()
function parseTime(value)
function cleanRange()
function syncCleanPlatforms()
function invalidateClean()
No adjacent doc comment
async function cleanRequest(confirmDelete, page = 1, paging = false)
No adjacent doc comment
function renderCleanPreview(detail)
function setupCleanup()
No adjacent doc comment
function readJson(file)
No adjacent doc comment
function packageDir(root, name)
No adjacent doc comment
function packageVersion(root, name)
No adjacent doc comment
function resolveCompiler(root = ROOT)
No adjacent doc comment
function hasCompiler(root = ROOT)
No adjacent doc comment
function fingerprint(root = ROOT)
No adjacent doc comment
function walk(dir)
No adjacent doc comment
function inspect(root = ROOT)
No adjacent doc comment
function build(root = ROOT)
No adjacent doc comment
function watch(root = ROOT)
No adjacent doc comment
function launchPlan(
No adjacent doc comment
function start()
No adjacent doc comment