// Copyright 2026 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 data_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 { FfiOwnedHandle } from "./handle_pb.js"; /** * @generated from enum livekit.proto.DataTrackErrorCode */ export declare enum DataTrackErrorCode { /** * @generated from enum value: DATA_TRACK_ERROR_CODE_UNKNOWN = 0; */ UNKNOWN = 0, /** * @generated from enum value: DATA_TRACK_ERROR_CODE_INVALID_HANDLE = 1; */ INVALID_HANDLE = 1, /** * @generated from enum value: DATA_TRACK_ERROR_CODE_DUPLICATE_TRACK_NAME = 2; */ DUPLICATE_TRACK_NAME = 2, /** * @generated from enum value: DATA_TRACK_ERROR_CODE_TRACK_UNPUBLISHED = 3; */ TRACK_UNPUBLISHED = 3, /** * @generated from enum value: DATA_TRACK_ERROR_CODE_BUFFER_FULL = 4; */ BUFFER_FULL = 4, /** * @generated from enum value: DATA_TRACK_ERROR_CODE_SUBSCRIPTION_CLOSED = 5; */ SUBSCRIPTION_CLOSED = 5, /** * @generated from enum value: DATA_TRACK_ERROR_CODE_CANCELLED = 6; */ CANCELLED = 6, /** * @generated from enum value: DATA_TRACK_ERROR_CODE_PROTOCOL_ERROR = 7; */ PROTOCOL_ERROR = 7, /** * @generated from enum value: DATA_TRACK_ERROR_CODE_INTERNAL = 8; */ INTERNAL = 8, } /** * @generated from enum livekit.proto.PublishDataTrackErrorCode */ export declare enum PublishDataTrackErrorCode { /** * @generated from enum value: PUBLISH_DATA_TRACK_ERROR_CODE_UNKNOWN = 0; */ UNKNOWN = 0, /** * @generated from enum value: PUBLISH_DATA_TRACK_ERROR_CODE_INVALID_HANDLE = 1; */ INVALID_HANDLE = 1, /** * @generated from enum value: PUBLISH_DATA_TRACK_ERROR_CODE_DUPLICATE_NAME = 2; */ DUPLICATE_NAME = 2, /** * @generated from enum value: PUBLISH_DATA_TRACK_ERROR_CODE_TIMEOUT = 3; */ TIMEOUT = 3, /** * @generated from enum value: PUBLISH_DATA_TRACK_ERROR_CODE_DISCONNECTED = 4; */ DISCONNECTED = 4, /** * @generated from enum value: PUBLISH_DATA_TRACK_ERROR_CODE_NOT_ALLOWED = 5; */ NOT_ALLOWED = 5, /** * @generated from enum value: PUBLISH_DATA_TRACK_ERROR_CODE_INVALID_NAME = 6; */ INVALID_NAME = 6, /** * @generated from enum value: PUBLISH_DATA_TRACK_ERROR_CODE_LIMIT_REACHED = 7; */ LIMIT_REACHED = 7, /** * @generated from enum value: PUBLISH_DATA_TRACK_ERROR_CODE_PROTOCOL_ERROR = 8; */ PROTOCOL_ERROR = 8, /** * @generated from enum value: PUBLISH_DATA_TRACK_ERROR_CODE_INTERNAL = 9; */ INTERNAL = 9, } /** * @generated from enum livekit.proto.LocalDataTrackTryPushErrorCode */ export declare enum LocalDataTrackTryPushErrorCode { /** * @generated from enum value: LOCAL_DATA_TRACK_TRY_PUSH_ERROR_CODE_UNKNOWN = 0; */ UNKNOWN = 0, /** * @generated from enum value: LOCAL_DATA_TRACK_TRY_PUSH_ERROR_CODE_INVALID_HANDLE = 1; */ INVALID_HANDLE = 1, /** * @generated from enum value: LOCAL_DATA_TRACK_TRY_PUSH_ERROR_CODE_TRACK_UNPUBLISHED = 2; */ TRACK_UNPUBLISHED = 2, /** * @generated from enum value: LOCAL_DATA_TRACK_TRY_PUSH_ERROR_CODE_QUEUE_FULL = 3; */ QUEUE_FULL = 3, /** * @generated from enum value: LOCAL_DATA_TRACK_TRY_PUSH_ERROR_CODE_INTERNAL = 4; */ INTERNAL = 4, } /** * @generated from enum livekit.proto.SubscribeDataTrackErrorCode */ export declare enum SubscribeDataTrackErrorCode { /** * @generated from enum value: SUBSCRIBE_DATA_TRACK_ERROR_CODE_UNKNOWN = 0; */ UNKNOWN = 0, /** * @generated from enum value: SUBSCRIBE_DATA_TRACK_ERROR_CODE_INVALID_HANDLE = 1; */ INVALID_HANDLE = 1, /** * @generated from enum value: SUBSCRIBE_DATA_TRACK_ERROR_CODE_UNPUBLISHED = 2; */ UNPUBLISHED = 2, /** * @generated from enum value: SUBSCRIBE_DATA_TRACK_ERROR_CODE_TIMEOUT = 3; */ TIMEOUT = 3, /** * @generated from enum value: SUBSCRIBE_DATA_TRACK_ERROR_CODE_DISCONNECTED = 4; */ DISCONNECTED = 4, /** * @generated from enum value: SUBSCRIBE_DATA_TRACK_ERROR_CODE_PROTOCOL_ERROR = 5; */ PROTOCOL_ERROR = 5, /** * @generated from enum value: SUBSCRIBE_DATA_TRACK_ERROR_CODE_INTERNAL = 6; */ INTERNAL = 6, } /** * Information about a published data track. * * @generated from message livekit.proto.DataTrackInfo */ export declare class DataTrackInfo extends Message { /** * Name of the track assigned by the publisher. * * @generated from field: required string name = 1; */ name?: string; /** * SFU-assigned track identifier. * * @generated from field: required string sid = 2; */ sid?: string; /** * Whether or not frames sent on the track use end-to-end encryption. * * @generated from field: required bool uses_e2ee = 3; */ usesE2ee?: boolean; constructor(data?: PartialMessage); static readonly runtime: typeof proto2; static readonly typeName = "livekit.proto.DataTrackInfo"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): DataTrackInfo; static fromJson(jsonValue: JsonValue, options?: Partial): DataTrackInfo; static fromJsonString(jsonString: string, options?: Partial): DataTrackInfo; static equals(a: DataTrackInfo | PlainMessage | undefined, b: DataTrackInfo | PlainMessage | undefined): boolean; } /** * A frame published on a data track. * * @generated from message livekit.proto.DataTrackFrame */ export declare class DataTrackFrame extends Message { /** * @generated from field: required bytes payload = 1; */ payload?: Uint8Array; /** * @generated from field: optional uint64 user_timestamp = 2; */ userTimestamp?: bigint; constructor(data?: PartialMessage); static readonly runtime: typeof proto2; static readonly typeName = "livekit.proto.DataTrackFrame"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): DataTrackFrame; static fromJson(jsonValue: JsonValue, options?: Partial): DataTrackFrame; static fromJsonString(jsonString: string, options?: Partial): DataTrackFrame; static equals(a: DataTrackFrame | PlainMessage | undefined, b: DataTrackFrame | PlainMessage | undefined): boolean; } /** * @generated from message livekit.proto.DataTrackError */ export declare class DataTrackError extends Message { /** * @generated from field: required livekit.proto.DataTrackErrorCode code = 1; */ code?: DataTrackErrorCode; /** * @generated from field: required string message = 2; */ message?: string; constructor(data?: PartialMessage); static readonly runtime: typeof proto2; static readonly typeName = "livekit.proto.DataTrackError"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): DataTrackError; static fromJson(jsonValue: JsonValue, options?: Partial): DataTrackError; static fromJsonString(jsonString: string, options?: Partial): DataTrackError; static equals(a: DataTrackError | PlainMessage | undefined, b: DataTrackError | PlainMessage | undefined): boolean; } /** * @generated from message livekit.proto.PublishDataTrackError */ export declare class PublishDataTrackError extends Message { /** * @generated from field: required livekit.proto.PublishDataTrackErrorCode code = 1; */ code?: PublishDataTrackErrorCode; /** * @generated from field: required string message = 2; */ message?: string; constructor(data?: PartialMessage); static readonly runtime: typeof proto2; static readonly typeName = "livekit.proto.PublishDataTrackError"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): PublishDataTrackError; static fromJson(jsonValue: JsonValue, options?: Partial): PublishDataTrackError; static fromJsonString(jsonString: string, options?: Partial): PublishDataTrackError; static equals(a: PublishDataTrackError | PlainMessage | undefined, b: PublishDataTrackError | PlainMessage | undefined): boolean; } /** * @generated from message livekit.proto.LocalDataTrackTryPushError */ export declare class LocalDataTrackTryPushError extends Message { /** * @generated from field: required livekit.proto.LocalDataTrackTryPushErrorCode code = 1; */ code?: LocalDataTrackTryPushErrorCode; /** * @generated from field: required string message = 2; */ message?: string; constructor(data?: PartialMessage); static readonly runtime: typeof proto2; static readonly typeName = "livekit.proto.LocalDataTrackTryPushError"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): LocalDataTrackTryPushError; static fromJson(jsonValue: JsonValue, options?: Partial): LocalDataTrackTryPushError; static fromJsonString(jsonString: string, options?: Partial): LocalDataTrackTryPushError; static equals(a: LocalDataTrackTryPushError | PlainMessage | undefined, b: LocalDataTrackTryPushError | PlainMessage | undefined): boolean; } /** * @generated from message livekit.proto.SubscribeDataTrackError */ export declare class SubscribeDataTrackError extends Message { /** * @generated from field: required livekit.proto.SubscribeDataTrackErrorCode code = 1; */ code?: SubscribeDataTrackErrorCode; /** * @generated from field: required string message = 2; */ message?: string; constructor(data?: PartialMessage); static readonly runtime: typeof proto2; static readonly typeName = "livekit.proto.SubscribeDataTrackError"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): SubscribeDataTrackError; static fromJson(jsonValue: JsonValue, options?: Partial): SubscribeDataTrackError; static fromJsonString(jsonString: string, options?: Partial): SubscribeDataTrackError; static equals(a: SubscribeDataTrackError | PlainMessage | undefined, b: SubscribeDataTrackError | PlainMessage | undefined): boolean; } /** * Options for publishing a data track. * * @generated from message livekit.proto.DataTrackOptions */ export declare class DataTrackOptions extends Message { /** * Track name used to identify the track to other participants. * * Must not be empty and must be unique per publisher. * * * @generated from field: required string name = 1; */ name?: string; constructor(data?: PartialMessage); static readonly runtime: typeof proto2; static readonly typeName = "livekit.proto.DataTrackOptions"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): DataTrackOptions; static fromJson(jsonValue: JsonValue, options?: Partial): DataTrackOptions; static fromJsonString(jsonString: string, options?: Partial): DataTrackOptions; static equals(a: DataTrackOptions | PlainMessage | undefined, b: DataTrackOptions | PlainMessage | undefined): boolean; } /** * Publish a data track * * @generated from message livekit.proto.PublishDataTrackRequest */ export declare class PublishDataTrackRequest extends Message { /** * @generated from field: required uint64 local_participant_handle = 1; */ localParticipantHandle?: bigint; /** * @generated from field: required livekit.proto.DataTrackOptions options = 2; */ options?: DataTrackOptions; /** * @generated from field: optional uint64 request_async_id = 3; */ requestAsyncId?: bigint; constructor(data?: PartialMessage); static readonly runtime: typeof proto2; static readonly typeName = "livekit.proto.PublishDataTrackRequest"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): PublishDataTrackRequest; static fromJson(jsonValue: JsonValue, options?: Partial): PublishDataTrackRequest; static fromJsonString(jsonString: string, options?: Partial): PublishDataTrackRequest; static equals(a: PublishDataTrackRequest | PlainMessage | undefined, b: PublishDataTrackRequest | PlainMessage | undefined): boolean; } /** * @generated from message livekit.proto.PublishDataTrackResponse */ export declare class PublishDataTrackResponse 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.PublishDataTrackResponse"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): PublishDataTrackResponse; static fromJson(jsonValue: JsonValue, options?: Partial): PublishDataTrackResponse; static fromJsonString(jsonString: string, options?: Partial): PublishDataTrackResponse; static equals(a: PublishDataTrackResponse | PlainMessage | undefined, b: PublishDataTrackResponse | PlainMessage | undefined): boolean; } /** * @generated from message livekit.proto.PublishDataTrackCallback */ export declare class PublishDataTrackCallback extends Message { /** * @generated from field: required uint64 async_id = 1; */ asyncId?: bigint; /** * @generated from oneof livekit.proto.PublishDataTrackCallback.result */ result: { /** * @generated from field: livekit.proto.OwnedLocalDataTrack track = 2; */ value: OwnedLocalDataTrack; case: "track"; } | { /** * @generated from field: livekit.proto.PublishDataTrackError error = 3; */ value: PublishDataTrackError; case: "error"; } | { case: undefined; value?: undefined }; constructor(data?: PartialMessage); static readonly runtime: typeof proto2; static readonly typeName = "livekit.proto.PublishDataTrackCallback"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): PublishDataTrackCallback; static fromJson(jsonValue: JsonValue, options?: Partial): PublishDataTrackCallback; static fromJsonString(jsonString: string, options?: Partial): PublishDataTrackCallback; static equals(a: PublishDataTrackCallback | PlainMessage | undefined, b: PublishDataTrackCallback | PlainMessage | undefined): boolean; } /** * @generated from message livekit.proto.OwnedLocalDataTrack */ export declare class OwnedLocalDataTrack extends Message { /** * @generated from field: required livekit.proto.FfiOwnedHandle handle = 1; */ handle?: FfiOwnedHandle; /** * @generated from field: required livekit.proto.DataTrackInfo info = 2; */ info?: DataTrackInfo; constructor(data?: PartialMessage); static readonly runtime: typeof proto2; static readonly typeName = "livekit.proto.OwnedLocalDataTrack"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): OwnedLocalDataTrack; static fromJson(jsonValue: JsonValue, options?: Partial): OwnedLocalDataTrack; static fromJsonString(jsonString: string, options?: Partial): OwnedLocalDataTrack; static equals(a: OwnedLocalDataTrack | PlainMessage | undefined, b: OwnedLocalDataTrack | PlainMessage | undefined): boolean; } /** * Try pushing a frame to subscribers of the track. * * @generated from message livekit.proto.LocalDataTrackTryPushRequest */ export declare class LocalDataTrackTryPushRequest extends Message { /** * @generated from field: required uint64 track_handle = 1; */ trackHandle?: bigint; /** * @generated from field: required livekit.proto.DataTrackFrame frame = 2; */ frame?: DataTrackFrame; constructor(data?: PartialMessage); static readonly runtime: typeof proto2; static readonly typeName = "livekit.proto.LocalDataTrackTryPushRequest"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): LocalDataTrackTryPushRequest; static fromJson(jsonValue: JsonValue, options?: Partial): LocalDataTrackTryPushRequest; static fromJsonString(jsonString: string, options?: Partial): LocalDataTrackTryPushRequest; static equals(a: LocalDataTrackTryPushRequest | PlainMessage | undefined, b: LocalDataTrackTryPushRequest | PlainMessage | undefined): boolean; } /** * @generated from message livekit.proto.LocalDataTrackTryPushResponse */ export declare class LocalDataTrackTryPushResponse extends Message { /** * @generated from field: optional livekit.proto.LocalDataTrackTryPushError error = 2; */ error?: LocalDataTrackTryPushError; constructor(data?: PartialMessage); static readonly runtime: typeof proto2; static readonly typeName = "livekit.proto.LocalDataTrackTryPushResponse"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): LocalDataTrackTryPushResponse; static fromJson(jsonValue: JsonValue, options?: Partial): LocalDataTrackTryPushResponse; static fromJsonString(jsonString: string, options?: Partial): LocalDataTrackTryPushResponse; static equals(a: LocalDataTrackTryPushResponse | PlainMessage | undefined, b: LocalDataTrackTryPushResponse | PlainMessage | undefined): boolean; } /** * Checks if the track is still published. * * @generated from message livekit.proto.LocalDataTrackIsPublishedRequest */ export declare class LocalDataTrackIsPublishedRequest extends Message { /** * @generated from field: required uint64 track_handle = 1; */ trackHandle?: bigint; constructor(data?: PartialMessage); static readonly runtime: typeof proto2; static readonly typeName = "livekit.proto.LocalDataTrackIsPublishedRequest"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): LocalDataTrackIsPublishedRequest; static fromJson(jsonValue: JsonValue, options?: Partial): LocalDataTrackIsPublishedRequest; static fromJsonString(jsonString: string, options?: Partial): LocalDataTrackIsPublishedRequest; static equals(a: LocalDataTrackIsPublishedRequest | PlainMessage | undefined, b: LocalDataTrackIsPublishedRequest | PlainMessage | undefined): boolean; } /** * @generated from message livekit.proto.LocalDataTrackIsPublishedResponse */ export declare class LocalDataTrackIsPublishedResponse extends Message { /** * @generated from field: required bool is_published = 1; */ isPublished?: boolean; constructor(data?: PartialMessage); static readonly runtime: typeof proto2; static readonly typeName = "livekit.proto.LocalDataTrackIsPublishedResponse"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): LocalDataTrackIsPublishedResponse; static fromJson(jsonValue: JsonValue, options?: Partial): LocalDataTrackIsPublishedResponse; static fromJsonString(jsonString: string, options?: Partial): LocalDataTrackIsPublishedResponse; static equals(a: LocalDataTrackIsPublishedResponse | PlainMessage | undefined, b: LocalDataTrackIsPublishedResponse | PlainMessage | undefined): boolean; } /** * Unpublishes the track. * * @generated from message livekit.proto.LocalDataTrackUnpublishRequest */ export declare class LocalDataTrackUnpublishRequest extends Message { /** * @generated from field: required uint64 track_handle = 1; */ trackHandle?: bigint; constructor(data?: PartialMessage); static readonly runtime: typeof proto2; static readonly typeName = "livekit.proto.LocalDataTrackUnpublishRequest"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): LocalDataTrackUnpublishRequest; static fromJson(jsonValue: JsonValue, options?: Partial): LocalDataTrackUnpublishRequest; static fromJsonString(jsonString: string, options?: Partial): LocalDataTrackUnpublishRequest; static equals(a: LocalDataTrackUnpublishRequest | PlainMessage | undefined, b: LocalDataTrackUnpublishRequest | PlainMessage | undefined): boolean; } /** * @generated from message livekit.proto.LocalDataTrackUnpublishResponse */ export declare class LocalDataTrackUnpublishResponse extends Message { constructor(data?: PartialMessage); static readonly runtime: typeof proto2; static readonly typeName = "livekit.proto.LocalDataTrackUnpublishResponse"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): LocalDataTrackUnpublishResponse; static fromJson(jsonValue: JsonValue, options?: Partial): LocalDataTrackUnpublishResponse; static fromJsonString(jsonString: string, options?: Partial): LocalDataTrackUnpublishResponse; static equals(a: LocalDataTrackUnpublishResponse | PlainMessage | undefined, b: LocalDataTrackUnpublishResponse | PlainMessage | undefined): boolean; } /** * @generated from message livekit.proto.OwnedRemoteDataTrack */ export declare class OwnedRemoteDataTrack extends Message { /** * @generated from field: required livekit.proto.FfiOwnedHandle handle = 1; */ handle?: FfiOwnedHandle; /** * @generated from field: required livekit.proto.DataTrackInfo info = 2; */ info?: DataTrackInfo; /** * Identity of the remote participant who published the track. * * @generated from field: required string publisher_identity = 3; */ publisherIdentity?: string; constructor(data?: PartialMessage); static readonly runtime: typeof proto2; static readonly typeName = "livekit.proto.OwnedRemoteDataTrack"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): OwnedRemoteDataTrack; static fromJson(jsonValue: JsonValue, options?: Partial): OwnedRemoteDataTrack; static fromJsonString(jsonString: string, options?: Partial): OwnedRemoteDataTrack; static equals(a: OwnedRemoteDataTrack | PlainMessage | undefined, b: OwnedRemoteDataTrack | PlainMessage | undefined): boolean; } /** * Handle to an active data track subscription. * * Dropping the handle will unsubscribe from the track. * * * @generated from message livekit.proto.OwnedDataTrackStream */ export declare class OwnedDataTrackStream extends Message { /** * @generated from field: required livekit.proto.FfiOwnedHandle handle = 1; */ handle?: FfiOwnedHandle; constructor(data?: PartialMessage); static readonly runtime: typeof proto2; static readonly typeName = "livekit.proto.OwnedDataTrackStream"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): OwnedDataTrackStream; static fromJson(jsonValue: JsonValue, options?: Partial): OwnedDataTrackStream; static fromJsonString(jsonString: string, options?: Partial): OwnedDataTrackStream; static equals(a: OwnedDataTrackStream | PlainMessage | undefined, b: OwnedDataTrackStream | PlainMessage | undefined): boolean; } /** * Reserved for future subscription options. * * @generated from message livekit.proto.DataTrackSubscribeOptions */ export declare class DataTrackSubscribeOptions extends Message { /** * Maximum number of frames to buffer internally. * * @generated from field: optional uint32 buffer_size = 1; */ bufferSize?: number; constructor(data?: PartialMessage); static readonly runtime: typeof proto2; static readonly typeName = "livekit.proto.DataTrackSubscribeOptions"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): DataTrackSubscribeOptions; static fromJson(jsonValue: JsonValue, options?: Partial): DataTrackSubscribeOptions; static fromJsonString(jsonString: string, options?: Partial): DataTrackSubscribeOptions; static equals(a: DataTrackSubscribeOptions | PlainMessage | undefined, b: DataTrackSubscribeOptions | PlainMessage | undefined): boolean; } /** * Checks if the track is still published. * * @generated from message livekit.proto.RemoteDataTrackIsPublishedRequest */ export declare class RemoteDataTrackIsPublishedRequest extends Message { /** * @generated from field: required uint64 track_handle = 1; */ trackHandle?: bigint; constructor(data?: PartialMessage); static readonly runtime: typeof proto2; static readonly typeName = "livekit.proto.RemoteDataTrackIsPublishedRequest"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): RemoteDataTrackIsPublishedRequest; static fromJson(jsonValue: JsonValue, options?: Partial): RemoteDataTrackIsPublishedRequest; static fromJsonString(jsonString: string, options?: Partial): RemoteDataTrackIsPublishedRequest; static equals(a: RemoteDataTrackIsPublishedRequest | PlainMessage | undefined, b: RemoteDataTrackIsPublishedRequest | PlainMessage | undefined): boolean; } /** * @generated from message livekit.proto.RemoteDataTrackIsPublishedResponse */ export declare class RemoteDataTrackIsPublishedResponse extends Message { /** * @generated from field: required bool is_published = 1; */ isPublished?: boolean; constructor(data?: PartialMessage); static readonly runtime: typeof proto2; static readonly typeName = "livekit.proto.RemoteDataTrackIsPublishedResponse"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): RemoteDataTrackIsPublishedResponse; static fromJson(jsonValue: JsonValue, options?: Partial): RemoteDataTrackIsPublishedResponse; static fromJsonString(jsonString: string, options?: Partial): RemoteDataTrackIsPublishedResponse; static equals(a: RemoteDataTrackIsPublishedResponse | PlainMessage | undefined, b: RemoteDataTrackIsPublishedResponse | PlainMessage | undefined): boolean; } /** * Track-level options that configure how the incoming-frame pipeline reassembles packets for a remote data track. * * @generated from message livekit.proto.RemoteDataTrackPipelineOptions */ export declare class RemoteDataTrackPipelineOptions extends Message { /** * Maximum number of partial frames the depacketizer will track concurrently for this track. * * Zero is not a valid value; if a value of zero is provided, it will be clamped to one. * * * @generated from field: optional uint32 max_partial_frames = 1; */ maxPartialFrames?: number; constructor(data?: PartialMessage); static readonly runtime: typeof proto2; static readonly typeName = "livekit.proto.RemoteDataTrackPipelineOptions"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): RemoteDataTrackPipelineOptions; static fromJson(jsonValue: JsonValue, options?: Partial): RemoteDataTrackPipelineOptions; static fromJsonString(jsonString: string, options?: Partial): RemoteDataTrackPipelineOptions; static equals(a: RemoteDataTrackPipelineOptions | PlainMessage | undefined, b: RemoteDataTrackPipelineOptions | PlainMessage | undefined): boolean; } /** * @generated from message livekit.proto.RemoteDataTrackSetPipelineOptionsRequest */ export declare class RemoteDataTrackSetPipelineOptionsRequest extends Message { /** * @generated from field: required uint64 track_handle = 1; */ trackHandle?: bigint; /** * @generated from field: required livekit.proto.RemoteDataTrackPipelineOptions options = 2; */ options?: RemoteDataTrackPipelineOptions; constructor(data?: PartialMessage); static readonly runtime: typeof proto2; static readonly typeName = "livekit.proto.RemoteDataTrackSetPipelineOptionsRequest"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): RemoteDataTrackSetPipelineOptionsRequest; static fromJson(jsonValue: JsonValue, options?: Partial): RemoteDataTrackSetPipelineOptionsRequest; static fromJsonString(jsonString: string, options?: Partial): RemoteDataTrackSetPipelineOptionsRequest; static equals(a: RemoteDataTrackSetPipelineOptionsRequest | PlainMessage | undefined, b: RemoteDataTrackSetPipelineOptionsRequest | PlainMessage | undefined): boolean; } /** * @generated from message livekit.proto.RemoteDataTrackSetPipelineOptionsResponse */ export declare class RemoteDataTrackSetPipelineOptionsResponse extends Message { constructor(data?: PartialMessage); static readonly runtime: typeof proto2; static readonly typeName = "livekit.proto.RemoteDataTrackSetPipelineOptionsResponse"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): RemoteDataTrackSetPipelineOptionsResponse; static fromJson(jsonValue: JsonValue, options?: Partial): RemoteDataTrackSetPipelineOptionsResponse; static fromJsonString(jsonString: string, options?: Partial): RemoteDataTrackSetPipelineOptionsResponse; static equals(a: RemoteDataTrackSetPipelineOptionsResponse | PlainMessage | undefined, b: RemoteDataTrackSetPipelineOptionsResponse | PlainMessage | undefined): boolean; } /** * Subscribe to a data track. * * @generated from message livekit.proto.SubscribeDataTrackRequest */ export declare class SubscribeDataTrackRequest extends Message { /** * @generated from field: required uint64 track_handle = 1; */ trackHandle?: bigint; /** * @generated from field: required livekit.proto.DataTrackSubscribeOptions options = 2; */ options?: DataTrackSubscribeOptions; constructor(data?: PartialMessage); static readonly runtime: typeof proto2; static readonly typeName = "livekit.proto.SubscribeDataTrackRequest"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): SubscribeDataTrackRequest; static fromJson(jsonValue: JsonValue, options?: Partial): SubscribeDataTrackRequest; static fromJsonString(jsonString: string, options?: Partial): SubscribeDataTrackRequest; static equals(a: SubscribeDataTrackRequest | PlainMessage | undefined, b: SubscribeDataTrackRequest | PlainMessage | undefined): boolean; } /** * @generated from message livekit.proto.SubscribeDataTrackResponse */ export declare class SubscribeDataTrackResponse extends Message { /** * @generated from field: required livekit.proto.OwnedDataTrackStream stream = 1; */ stream?: OwnedDataTrackStream; constructor(data?: PartialMessage); static readonly runtime: typeof proto2; static readonly typeName = "livekit.proto.SubscribeDataTrackResponse"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): SubscribeDataTrackResponse; static fromJson(jsonValue: JsonValue, options?: Partial): SubscribeDataTrackResponse; static fromJsonString(jsonString: string, options?: Partial): SubscribeDataTrackResponse; static equals(a: SubscribeDataTrackResponse | PlainMessage | undefined, b: SubscribeDataTrackResponse | PlainMessage | undefined): boolean; } /** * Signal readiness to handle the next frame. * * This allows the client to put backpressure on the internal receive buffer. * Sending this request will cause the next frame to be sent via `DataTrackStreamFrameReceived` * once one is available. * * * @generated from message livekit.proto.DataTrackStreamReadRequest */ export declare class DataTrackStreamReadRequest extends Message { /** * @generated from field: required uint64 stream_handle = 1; */ streamHandle?: bigint; constructor(data?: PartialMessage); static readonly runtime: typeof proto2; static readonly typeName = "livekit.proto.DataTrackStreamReadRequest"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): DataTrackStreamReadRequest; static fromJson(jsonValue: JsonValue, options?: Partial): DataTrackStreamReadRequest; static fromJsonString(jsonString: string, options?: Partial): DataTrackStreamReadRequest; static equals(a: DataTrackStreamReadRequest | PlainMessage | undefined, b: DataTrackStreamReadRequest | PlainMessage | undefined): boolean; } /** * @generated from message livekit.proto.DataTrackStreamReadResponse */ export declare class DataTrackStreamReadResponse extends Message { /** * The end-of-stream event if the stream has already ended. * * @generated from field: optional livekit.proto.DataTrackStreamEOS eos_event = 1; */ eosEvent?: DataTrackStreamEOS; constructor(data?: PartialMessage); static readonly runtime: typeof proto2; static readonly typeName = "livekit.proto.DataTrackStreamReadResponse"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): DataTrackStreamReadResponse; static fromJson(jsonValue: JsonValue, options?: Partial): DataTrackStreamReadResponse; static fromJsonString(jsonString: string, options?: Partial): DataTrackStreamReadResponse; static equals(a: DataTrackStreamReadResponse | PlainMessage | undefined, b: DataTrackStreamReadResponse | PlainMessage | undefined): boolean; } /** * Event emitted on an active stream. * * @generated from message livekit.proto.DataTrackStreamEvent */ export declare class DataTrackStreamEvent extends Message { /** * @generated from field: required uint64 stream_handle = 1; */ streamHandle?: bigint; /** * @generated from oneof livekit.proto.DataTrackStreamEvent.detail */ detail: { /** * @generated from field: livekit.proto.DataTrackStreamFrameReceived frame_received = 2; */ value: DataTrackStreamFrameReceived; case: "frameReceived"; } | { /** * @generated from field: livekit.proto.DataTrackStreamEOS eos = 3; */ value: DataTrackStreamEOS; case: "eos"; } | { case: undefined; value?: undefined }; constructor(data?: PartialMessage); static readonly runtime: typeof proto2; static readonly typeName = "livekit.proto.DataTrackStreamEvent"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): DataTrackStreamEvent; static fromJson(jsonValue: JsonValue, options?: Partial): DataTrackStreamEvent; static fromJsonString(jsonString: string, options?: Partial): DataTrackStreamEvent; static equals(a: DataTrackStreamEvent | PlainMessage | undefined, b: DataTrackStreamEvent | PlainMessage | undefined): boolean; } /** * A frame was received. * * @generated from message livekit.proto.DataTrackStreamFrameReceived */ export declare class DataTrackStreamFrameReceived extends Message { /** * @generated from field: required livekit.proto.DataTrackFrame frame = 1; */ frame?: DataTrackFrame; constructor(data?: PartialMessage); static readonly runtime: typeof proto2; static readonly typeName = "livekit.proto.DataTrackStreamFrameReceived"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): DataTrackStreamFrameReceived; static fromJson(jsonValue: JsonValue, options?: Partial): DataTrackStreamFrameReceived; static fromJsonString(jsonString: string, options?: Partial): DataTrackStreamFrameReceived; static equals(a: DataTrackStreamFrameReceived | PlainMessage | undefined, b: DataTrackStreamFrameReceived | PlainMessage | undefined): boolean; } /** * Stream has ended. * * @generated from message livekit.proto.DataTrackStreamEOS */ export declare class DataTrackStreamEOS extends Message { /** * Present if stream ended before any frames were emitted due to subscription establishment failing. * Absent if the stream ended normally (i.e., due to the track being unpublished). * * @generated from field: optional livekit.proto.SubscribeDataTrackError error = 1; */ error?: SubscribeDataTrackError; constructor(data?: PartialMessage); static readonly runtime: typeof proto2; static readonly typeName = "livekit.proto.DataTrackStreamEOS"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): DataTrackStreamEOS; static fromJson(jsonValue: JsonValue, options?: Partial): DataTrackStreamEOS; static fromJsonString(jsonString: string, options?: Partial): DataTrackStreamEOS; static equals(a: DataTrackStreamEOS | PlainMessage | undefined, b: DataTrackStreamEOS | PlainMessage | undefined): boolean; }