// Copyright 2025 LiveKit, Inc. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. // @generated by protoc-gen-es v1.10.1 with parameter "js_import_style=legacy_commonjs" // @generated from file track.proto (package livekit.proto, syntax proto2) /* eslint-disable */ // @ts-nocheck import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; import { Message, proto2 } from "@bufbuild/protobuf"; import type { RtcStats } from "./stats_pb.js"; import type { EncryptionType } from "./e2ee_pb.js"; import type { FfiOwnedHandle } from "./handle_pb.js"; /** * @generated from enum livekit.proto.TrackKind */ export declare enum TrackKind { /** * @generated from enum value: KIND_UNKNOWN = 0; */ KIND_UNKNOWN = 0, /** * @generated from enum value: KIND_AUDIO = 1; */ KIND_AUDIO = 1, /** * @generated from enum value: KIND_VIDEO = 2; */ KIND_VIDEO = 2, } /** * @generated from enum livekit.proto.TrackSource */ export declare enum TrackSource { /** * @generated from enum value: SOURCE_UNKNOWN = 0; */ SOURCE_UNKNOWN = 0, /** * @generated from enum value: SOURCE_CAMERA = 1; */ SOURCE_CAMERA = 1, /** * @generated from enum value: SOURCE_MICROPHONE = 2; */ SOURCE_MICROPHONE = 2, /** * @generated from enum value: SOURCE_SCREENSHARE = 3; */ SOURCE_SCREENSHARE = 3, /** * @generated from enum value: SOURCE_SCREENSHARE_AUDIO = 4; */ SOURCE_SCREENSHARE_AUDIO = 4, } /** * @generated from enum livekit.proto.StreamState */ export declare enum StreamState { /** * @generated from enum value: STATE_UNKNOWN = 0; */ STATE_UNKNOWN = 0, /** * @generated from enum value: STATE_ACTIVE = 1; */ STATE_ACTIVE = 1, /** * @generated from enum value: STATE_PAUSED = 2; */ STATE_PAUSED = 2, } /** * @generated from enum livekit.proto.AudioTrackFeature */ export declare enum AudioTrackFeature { /** * @generated from enum value: TF_STEREO = 0; */ TF_STEREO = 0, /** * @generated from enum value: TF_NO_DTX = 1; */ TF_NO_DTX = 1, /** * @generated from enum value: TF_AUTO_GAIN_CONTROL = 2; */ TF_AUTO_GAIN_CONTROL = 2, /** * @generated from enum value: TF_ECHO_CANCELLATION = 3; */ TF_ECHO_CANCELLATION = 3, /** * @generated from enum value: TF_NOISE_SUPPRESSION = 4; */ TF_NOISE_SUPPRESSION = 4, /** * @generated from enum value: TF_ENHANCED_NOISE_CANCELLATION = 5; */ TF_ENHANCED_NOISE_CANCELLATION = 5, /** * client will buffer audio once available and send it to the server via bytes stream once connected * * @generated from enum value: TF_PRECONNECT_BUFFER = 6; */ TF_PRECONNECT_BUFFER = 6, } /** * @generated from enum livekit.proto.FrameMetadataFeature */ export declare enum FrameMetadataFeature { /** * @generated from enum value: FMF_USER_TIMESTAMP = 0; */ FMF_USER_TIMESTAMP = 0, /** * @generated from enum value: FMF_FRAME_ID = 1; */ FMF_FRAME_ID = 1, /** * @generated from enum value: FMF_USER_DATA = 2; */ FMF_USER_DATA = 2, } /** * Create a new VideoTrack from a VideoSource * * @generated from message livekit.proto.CreateVideoTrackRequest */ export declare class CreateVideoTrackRequest extends Message { /** * @generated from field: required string name = 1; */ name?: string; /** * @generated from field: required uint64 source_handle = 2; */ sourceHandle?: bigint; constructor(data?: PartialMessage); static readonly runtime: typeof proto2; static readonly typeName = "livekit.proto.CreateVideoTrackRequest"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): CreateVideoTrackRequest; static fromJson(jsonValue: JsonValue, options?: Partial): CreateVideoTrackRequest; static fromJsonString(jsonString: string, options?: Partial): CreateVideoTrackRequest; static equals(a: CreateVideoTrackRequest | PlainMessage | undefined, b: CreateVideoTrackRequest | PlainMessage | undefined): boolean; } /** * @generated from message livekit.proto.CreateVideoTrackResponse */ export declare class CreateVideoTrackResponse extends Message { /** * @generated from field: required livekit.proto.OwnedTrack track = 1; */ track?: OwnedTrack; constructor(data?: PartialMessage); static readonly runtime: typeof proto2; static readonly typeName = "livekit.proto.CreateVideoTrackResponse"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): CreateVideoTrackResponse; static fromJson(jsonValue: JsonValue, options?: Partial): CreateVideoTrackResponse; static fromJsonString(jsonString: string, options?: Partial): CreateVideoTrackResponse; static equals(a: CreateVideoTrackResponse | PlainMessage | undefined, b: CreateVideoTrackResponse | PlainMessage | undefined): boolean; } /** * Create a new AudioTrack from a AudioSource * * @generated from message livekit.proto.CreateAudioTrackRequest */ export declare class CreateAudioTrackRequest extends Message { /** * @generated from field: required string name = 1; */ name?: string; /** * @generated from field: required uint64 source_handle = 2; */ sourceHandle?: bigint; constructor(data?: PartialMessage); static readonly runtime: typeof proto2; static readonly typeName = "livekit.proto.CreateAudioTrackRequest"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): CreateAudioTrackRequest; static fromJson(jsonValue: JsonValue, options?: Partial): CreateAudioTrackRequest; static fromJsonString(jsonString: string, options?: Partial): CreateAudioTrackRequest; static equals(a: CreateAudioTrackRequest | PlainMessage | undefined, b: CreateAudioTrackRequest | PlainMessage | undefined): boolean; } /** * @generated from message livekit.proto.CreateAudioTrackResponse */ export declare class CreateAudioTrackResponse extends Message { /** * @generated from field: required livekit.proto.OwnedTrack track = 1; */ track?: OwnedTrack; constructor(data?: PartialMessage); static readonly runtime: typeof proto2; static readonly typeName = "livekit.proto.CreateAudioTrackResponse"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): CreateAudioTrackResponse; static fromJson(jsonValue: JsonValue, options?: Partial): CreateAudioTrackResponse; static fromJsonString(jsonString: string, options?: Partial): CreateAudioTrackResponse; static equals(a: CreateAudioTrackResponse | PlainMessage | undefined, b: CreateAudioTrackResponse | PlainMessage | undefined): boolean; } /** * @generated from message livekit.proto.GetStatsRequest */ export declare class GetStatsRequest extends Message { /** * @generated from field: required uint64 track_handle = 1; */ trackHandle?: bigint; /** * @generated from field: optional uint64 request_async_id = 2; */ requestAsyncId?: bigint; constructor(data?: PartialMessage); static readonly runtime: typeof proto2; static readonly typeName = "livekit.proto.GetStatsRequest"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): GetStatsRequest; static fromJson(jsonValue: JsonValue, options?: Partial): GetStatsRequest; static fromJsonString(jsonString: string, options?: Partial): GetStatsRequest; static equals(a: GetStatsRequest | PlainMessage | undefined, b: GetStatsRequest | PlainMessage | undefined): boolean; } /** * @generated from message livekit.proto.GetStatsResponse */ export declare class GetStatsResponse extends Message { /** * @generated from field: required uint64 async_id = 1; */ asyncId?: bigint; constructor(data?: PartialMessage); static readonly runtime: typeof proto2; static readonly typeName = "livekit.proto.GetStatsResponse"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): GetStatsResponse; static fromJson(jsonValue: JsonValue, options?: Partial): GetStatsResponse; static fromJsonString(jsonString: string, options?: Partial): GetStatsResponse; static equals(a: GetStatsResponse | PlainMessage | undefined, b: GetStatsResponse | PlainMessage | undefined): boolean; } /** * @generated from message livekit.proto.GetStatsCallback */ export declare class GetStatsCallback extends Message { /** * @generated from field: required uint64 async_id = 1; */ asyncId?: bigint; /** * @generated from field: optional string error = 2; */ error?: string; /** * @generated from field: repeated livekit.proto.RtcStats stats = 3; */ stats: RtcStats[]; constructor(data?: PartialMessage); static readonly runtime: typeof proto2; static readonly typeName = "livekit.proto.GetStatsCallback"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): GetStatsCallback; static fromJson(jsonValue: JsonValue, options?: Partial): GetStatsCallback; static fromJsonString(jsonString: string, options?: Partial): GetStatsCallback; static equals(a: GetStatsCallback | PlainMessage | undefined, b: GetStatsCallback | PlainMessage | undefined): boolean; } /** * @generated from message livekit.proto.TrackEvent */ export declare class TrackEvent extends Message { constructor(data?: PartialMessage); static readonly runtime: typeof proto2; static readonly typeName = "livekit.proto.TrackEvent"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): TrackEvent; static fromJson(jsonValue: JsonValue, options?: Partial): TrackEvent; static fromJsonString(jsonString: string, options?: Partial): TrackEvent; static equals(a: TrackEvent | PlainMessage | undefined, b: TrackEvent | PlainMessage | undefined): boolean; } /** * @generated from message livekit.proto.TrackPublicationInfo */ export declare class TrackPublicationInfo extends Message { /** * @generated from field: required string sid = 1; */ sid?: string; /** * @generated from field: required string name = 2; */ name?: string; /** * @generated from field: required livekit.proto.TrackKind kind = 3; */ kind?: TrackKind; /** * @generated from field: required livekit.proto.TrackSource source = 4; */ source?: TrackSource; /** * @generated from field: required bool simulcasted = 5; */ simulcasted?: boolean; /** * @generated from field: required uint32 width = 6; */ width?: number; /** * @generated from field: required uint32 height = 7; */ height?: number; /** * @generated from field: required string mime_type = 8; */ mimeType?: string; /** * @generated from field: required bool muted = 9; */ muted?: boolean; /** * @generated from field: required bool remote = 10; */ remote?: boolean; /** * @generated from field: required livekit.proto.EncryptionType encryption_type = 11; */ encryptionType?: EncryptionType; /** * @generated from field: repeated livekit.proto.AudioTrackFeature audio_features = 12; */ audioFeatures: AudioTrackFeature[]; /** * @generated from field: repeated livekit.proto.FrameMetadataFeature frame_metadata_features = 13; */ frameMetadataFeatures: FrameMetadataFeature[]; constructor(data?: PartialMessage); static readonly runtime: typeof proto2; static readonly typeName = "livekit.proto.TrackPublicationInfo"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): TrackPublicationInfo; static fromJson(jsonValue: JsonValue, options?: Partial): TrackPublicationInfo; static fromJsonString(jsonString: string, options?: Partial): TrackPublicationInfo; static equals(a: TrackPublicationInfo | PlainMessage | undefined, b: TrackPublicationInfo | PlainMessage | undefined): boolean; } /** * @generated from message livekit.proto.OwnedTrackPublication */ export declare class OwnedTrackPublication extends Message { /** * @generated from field: required livekit.proto.FfiOwnedHandle handle = 1; */ handle?: FfiOwnedHandle; /** * @generated from field: required livekit.proto.TrackPublicationInfo info = 2; */ info?: TrackPublicationInfo; constructor(data?: PartialMessage); static readonly runtime: typeof proto2; static readonly typeName = "livekit.proto.OwnedTrackPublication"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): OwnedTrackPublication; static fromJson(jsonValue: JsonValue, options?: Partial): OwnedTrackPublication; static fromJsonString(jsonString: string, options?: Partial): OwnedTrackPublication; static equals(a: OwnedTrackPublication | PlainMessage | undefined, b: OwnedTrackPublication | PlainMessage | undefined): boolean; } /** * @generated from message livekit.proto.TrackInfo */ export declare class TrackInfo extends Message { /** * @generated from field: required string sid = 1; */ sid?: string; /** * @generated from field: required string name = 2; */ name?: string; /** * @generated from field: required livekit.proto.TrackKind kind = 3; */ kind?: TrackKind; /** * @generated from field: required livekit.proto.StreamState stream_state = 4; */ streamState?: StreamState; /** * @generated from field: required bool muted = 5; */ muted?: boolean; /** * @generated from field: required bool remote = 6; */ remote?: boolean; constructor(data?: PartialMessage); static readonly runtime: typeof proto2; static readonly typeName = "livekit.proto.TrackInfo"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): TrackInfo; static fromJson(jsonValue: JsonValue, options?: Partial): TrackInfo; static fromJsonString(jsonString: string, options?: Partial): TrackInfo; static equals(a: TrackInfo | PlainMessage | undefined, b: TrackInfo | PlainMessage | undefined): boolean; } /** * @generated from message livekit.proto.OwnedTrack */ export declare class OwnedTrack extends Message { /** * @generated from field: required livekit.proto.FfiOwnedHandle handle = 1; */ handle?: FfiOwnedHandle; /** * @generated from field: required livekit.proto.TrackInfo info = 2; */ info?: TrackInfo; constructor(data?: PartialMessage); static readonly runtime: typeof proto2; static readonly typeName = "livekit.proto.OwnedTrack"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): OwnedTrack; static fromJson(jsonValue: JsonValue, options?: Partial): OwnedTrack; static fromJsonString(jsonString: string, options?: Partial): OwnedTrack; static equals(a: OwnedTrack | PlainMessage | undefined, b: OwnedTrack | PlainMessage | undefined): boolean; } /** * Mute/UnMute a track * * @generated from message livekit.proto.LocalTrackMuteRequest */ export declare class LocalTrackMuteRequest extends Message { /** * @generated from field: required uint64 track_handle = 1; */ trackHandle?: bigint; /** * @generated from field: required bool mute = 2; */ mute?: boolean; constructor(data?: PartialMessage); static readonly runtime: typeof proto2; static readonly typeName = "livekit.proto.LocalTrackMuteRequest"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): LocalTrackMuteRequest; static fromJson(jsonValue: JsonValue, options?: Partial): LocalTrackMuteRequest; static fromJsonString(jsonString: string, options?: Partial): LocalTrackMuteRequest; static equals(a: LocalTrackMuteRequest | PlainMessage | undefined, b: LocalTrackMuteRequest | PlainMessage | undefined): boolean; } /** * @generated from message livekit.proto.LocalTrackMuteResponse */ export declare class LocalTrackMuteResponse extends Message { /** * @generated from field: required bool muted = 1; */ muted?: boolean; constructor(data?: PartialMessage); static readonly runtime: typeof proto2; static readonly typeName = "livekit.proto.LocalTrackMuteResponse"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): LocalTrackMuteResponse; static fromJson(jsonValue: JsonValue, options?: Partial): LocalTrackMuteResponse; static fromJsonString(jsonString: string, options?: Partial): LocalTrackMuteResponse; static equals(a: LocalTrackMuteResponse | PlainMessage | undefined, b: LocalTrackMuteResponse | PlainMessage | undefined): boolean; } /** * Enable/Disable a remote track * * @generated from message livekit.proto.EnableRemoteTrackRequest */ export declare class EnableRemoteTrackRequest extends Message { /** * @generated from field: required uint64 track_handle = 1; */ trackHandle?: bigint; /** * @generated from field: required bool enabled = 2; */ enabled?: boolean; constructor(data?: PartialMessage); static readonly runtime: typeof proto2; static readonly typeName = "livekit.proto.EnableRemoteTrackRequest"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): EnableRemoteTrackRequest; static fromJson(jsonValue: JsonValue, options?: Partial): EnableRemoteTrackRequest; static fromJsonString(jsonString: string, options?: Partial): EnableRemoteTrackRequest; static equals(a: EnableRemoteTrackRequest | PlainMessage | undefined, b: EnableRemoteTrackRequest | PlainMessage | undefined): boolean; } /** * @generated from message livekit.proto.EnableRemoteTrackResponse */ export declare class EnableRemoteTrackResponse extends Message { /** * @generated from field: required bool enabled = 1; */ enabled?: boolean; constructor(data?: PartialMessage); static readonly runtime: typeof proto2; static readonly typeName = "livekit.proto.EnableRemoteTrackResponse"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): EnableRemoteTrackResponse; static fromJson(jsonValue: JsonValue, options?: Partial): EnableRemoteTrackResponse; static fromJsonString(jsonString: string, options?: Partial): EnableRemoteTrackResponse; static equals(a: EnableRemoteTrackResponse | PlainMessage | undefined, b: EnableRemoteTrackResponse | PlainMessage | undefined): boolean; } /** * @generated from message livekit.proto.SetTrackSubscriptionPermissionsRequest */ export declare class SetTrackSubscriptionPermissionsRequest extends Message { /** * @generated from field: required uint64 local_participant_handle = 1; */ localParticipantHandle?: bigint; /** * @generated from field: required bool all_participants_allowed = 2; */ allParticipantsAllowed?: boolean; /** * @generated from field: repeated livekit.proto.ParticipantTrackPermission permissions = 3; */ permissions: ParticipantTrackPermission[]; constructor(data?: PartialMessage); static readonly runtime: typeof proto2; static readonly typeName = "livekit.proto.SetTrackSubscriptionPermissionsRequest"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): SetTrackSubscriptionPermissionsRequest; static fromJson(jsonValue: JsonValue, options?: Partial): SetTrackSubscriptionPermissionsRequest; static fromJsonString(jsonString: string, options?: Partial): SetTrackSubscriptionPermissionsRequest; static equals(a: SetTrackSubscriptionPermissionsRequest | PlainMessage | undefined, b: SetTrackSubscriptionPermissionsRequest | PlainMessage | undefined): boolean; } /** * @generated from message livekit.proto.ParticipantTrackPermission */ export declare class ParticipantTrackPermission extends Message { /** * The participant identity this permission applies to. * * @generated from field: required string participant_identity = 1; */ participantIdentity?: string; /** * Grant permission to all all tracks. Takes precedence over allowedTrackSids. * * @generated from field: optional bool allow_all = 2; */ allowAll?: boolean; /** * List of track sids to grant permission to. * * @generated from field: repeated string allowed_track_sids = 3; */ allowedTrackSids: string[]; constructor(data?: PartialMessage); static readonly runtime: typeof proto2; static readonly typeName = "livekit.proto.ParticipantTrackPermission"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): ParticipantTrackPermission; static fromJson(jsonValue: JsonValue, options?: Partial): ParticipantTrackPermission; static fromJsonString(jsonString: string, options?: Partial): ParticipantTrackPermission; static equals(a: ParticipantTrackPermission | PlainMessage | undefined, b: ParticipantTrackPermission | PlainMessage | undefined): boolean; } /** * @generated from message livekit.proto.SetTrackSubscriptionPermissionsResponse */ export declare class SetTrackSubscriptionPermissionsResponse extends Message { constructor(data?: PartialMessage); static readonly runtime: typeof proto2; static readonly typeName = "livekit.proto.SetTrackSubscriptionPermissionsResponse"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): SetTrackSubscriptionPermissionsResponse; static fromJson(jsonValue: JsonValue, options?: Partial): SetTrackSubscriptionPermissionsResponse; static fromJsonString(jsonString: string, options?: Partial): SetTrackSubscriptionPermissionsResponse; static equals(a: SetTrackSubscriptionPermissionsResponse | PlainMessage | undefined, b: SetTrackSubscriptionPermissionsResponse | PlainMessage | undefined): boolean; }