// Copyright 2023 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 "target=dts+js" // @generated from file livekit_models.proto (package livekit, syntax proto3) /* eslint-disable */ // @ts-nocheck import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage, Timestamp } from "@bufbuild/protobuf"; import { Message, proto3 } from "@bufbuild/protobuf"; import type { MetricsBatch } from "./livekit_metrics_pb.js"; /** * @generated from enum livekit.AudioCodec */ export declare enum AudioCodec { /** * @generated from enum value: DEFAULT_AC = 0; */ DEFAULT_AC = 0, /** * @generated from enum value: OPUS = 1; */ OPUS = 1, /** * @generated from enum value: AAC = 2; */ AAC = 2, /** * @generated from enum value: AC_MP3 = 3; */ AC_MP3 = 3, } /** * @generated from enum livekit.VideoCodec */ export declare enum VideoCodec { /** * @generated from enum value: DEFAULT_VC = 0; */ DEFAULT_VC = 0, /** * @generated from enum value: H264_BASELINE = 1; */ H264_BASELINE = 1, /** * @generated from enum value: H264_MAIN = 2; */ H264_MAIN = 2, /** * @generated from enum value: H264_HIGH = 3; */ H264_HIGH = 3, /** * @generated from enum value: VP8 = 4; */ VP8 = 4, } /** * @generated from enum livekit.ImageCodec */ export declare enum ImageCodec { /** * @generated from enum value: IC_DEFAULT = 0; */ IC_DEFAULT = 0, /** * @generated from enum value: IC_JPEG = 1; */ IC_JPEG = 1, } /** * Policy for publisher to handle subscribers that are unable to support the primary codec of a track * * @generated from enum livekit.BackupCodecPolicy */ export declare enum BackupCodecPolicy { /** * default behavior, the track prefer to regress to backup codec and all subscribers will receive the backup codec, * the sfu will try to regress codec if possible but not assured. * * @generated from enum value: PREFER_REGRESSION = 0; */ PREFER_REGRESSION = 0, /** * encoding/send the primary and backup codec simultaneously * * @generated from enum value: SIMULCAST = 1; */ SIMULCAST = 1, /** * force the track to regress to backup codec, this option can be used in video conference or the publisher has limited bandwidth/encoding power * * @generated from enum value: REGRESSION = 2; */ REGRESSION = 2, } /** * @generated from enum livekit.TrackType */ export declare enum TrackType { /** * @generated from enum value: AUDIO = 0; */ AUDIO = 0, /** * @generated from enum value: VIDEO = 1; */ VIDEO = 1, /** * @generated from enum value: DATA = 2; */ DATA = 2, } /** * @generated from enum livekit.TrackSource */ export declare enum TrackSource { /** * @generated from enum value: UNKNOWN = 0; */ UNKNOWN = 0, /** * @generated from enum value: CAMERA = 1; */ CAMERA = 1, /** * @generated from enum value: MICROPHONE = 2; */ MICROPHONE = 2, /** * @generated from enum value: SCREEN_SHARE = 3; */ SCREEN_SHARE = 3, /** * @generated from enum value: SCREEN_SHARE_AUDIO = 4; */ SCREEN_SHARE_AUDIO = 4, } /** * @generated from enum livekit.DataTrackExtensionID */ export declare enum DataTrackExtensionID { /** * @generated from enum value: DTEI_INVALID = 0; */ DTEI_INVALID = 0, /** * @generated from enum value: DTEI_PARTICIPANT_SID = 1; */ DTEI_PARTICIPANT_SID = 1, } /** * @generated from enum livekit.VideoQuality */ export declare enum VideoQuality { /** * @generated from enum value: LOW = 0; */ LOW = 0, /** * @generated from enum value: MEDIUM = 1; */ MEDIUM = 1, /** * @generated from enum value: HIGH = 2; */ HIGH = 2, /** * @generated from enum value: OFF = 3; */ OFF = 3, } /** * @generated from enum livekit.ConnectionQuality */ export declare enum ConnectionQuality { /** * @generated from enum value: POOR = 0; */ POOR = 0, /** * @generated from enum value: GOOD = 1; */ GOOD = 1, /** * @generated from enum value: EXCELLENT = 2; */ EXCELLENT = 2, /** * @generated from enum value: LOST = 3; */ LOST = 3, } /** * @generated from enum livekit.ClientConfigSetting */ export declare enum ClientConfigSetting { /** * @generated from enum value: UNSET = 0; */ UNSET = 0, /** * @generated from enum value: DISABLED = 1; */ DISABLED = 1, /** * @generated from enum value: ENABLED = 2; */ ENABLED = 2, } /** * @generated from enum livekit.DisconnectReason */ export declare enum DisconnectReason { /** * @generated from enum value: UNKNOWN_REASON = 0; */ UNKNOWN_REASON = 0, /** * the client initiated the disconnect * * @generated from enum value: CLIENT_INITIATED = 1; */ CLIENT_INITIATED = 1, /** * another participant with the same identity has joined the room * * @generated from enum value: DUPLICATE_IDENTITY = 2; */ DUPLICATE_IDENTITY = 2, /** * the server instance is shutting down * * @generated from enum value: SERVER_SHUTDOWN = 3; */ SERVER_SHUTDOWN = 3, /** * RoomService.RemoveParticipant was called * * @generated from enum value: PARTICIPANT_REMOVED = 4; */ PARTICIPANT_REMOVED = 4, /** * RoomService.DeleteRoom was called * * @generated from enum value: ROOM_DELETED = 5; */ ROOM_DELETED = 5, /** * the client is attempting to resume a session, but server is not aware of it * * @generated from enum value: STATE_MISMATCH = 6; */ STATE_MISMATCH = 6, /** * client was unable to connect fully * * @generated from enum value: JOIN_FAILURE = 7; */ JOIN_FAILURE = 7, /** * Cloud-only, the server requested Participant to migrate the connection elsewhere * * @generated from enum value: MIGRATION = 8; */ MIGRATION = 8, /** * the signal websocket was closed unexpectedly * * @generated from enum value: SIGNAL_CLOSE = 9; */ SIGNAL_CLOSE = 9, /** * the room was closed, due to all Standard and Ingress participants having left * * @generated from enum value: ROOM_CLOSED = 10; */ ROOM_CLOSED = 10, /** * SIP callee did not respond in time * * @generated from enum value: USER_UNAVAILABLE = 11; */ USER_UNAVAILABLE = 11, /** * SIP callee rejected the call (busy) * * @generated from enum value: USER_REJECTED = 12; */ USER_REJECTED = 12, /** * SIP protocol failure or unexpected response * * @generated from enum value: SIP_TRUNK_FAILURE = 13; */ SIP_TRUNK_FAILURE = 13, /** * server timed out a participant session * * @generated from enum value: CONNECTION_TIMEOUT = 14; */ CONNECTION_TIMEOUT = 14, /** * media stream failure or media timeout * * @generated from enum value: MEDIA_FAILURE = 15; */ MEDIA_FAILURE = 15, /** * agent encountered an error * * @generated from enum value: AGENT_ERROR = 16; */ AGENT_ERROR = 16, } /** * @generated from enum livekit.ReconnectReason */ export declare enum ReconnectReason { /** * @generated from enum value: RR_UNKNOWN = 0; */ RR_UNKNOWN = 0, /** * @generated from enum value: RR_SIGNAL_DISCONNECTED = 1; */ RR_SIGNAL_DISCONNECTED = 1, /** * @generated from enum value: RR_PUBLISHER_FAILED = 2; */ RR_PUBLISHER_FAILED = 2, /** * @generated from enum value: RR_SUBSCRIBER_FAILED = 3; */ RR_SUBSCRIBER_FAILED = 3, /** * @generated from enum value: RR_SWITCH_CANDIDATE = 4; */ RR_SWITCH_CANDIDATE = 4, } /** * @generated from enum livekit.SubscriptionError */ export declare enum SubscriptionError { /** * @generated from enum value: SE_UNKNOWN = 0; */ SE_UNKNOWN = 0, /** * @generated from enum value: SE_CODEC_UNSUPPORTED = 1; */ SE_CODEC_UNSUPPORTED = 1, /** * @generated from enum value: SE_TRACK_NOTFOUND = 2; */ SE_TRACK_NOTFOUND = 2, } /** * @generated from enum livekit.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.PacketTrailerFeature */ export declare enum PacketTrailerFeature { /** * @generated from enum value: PTF_USER_TIMESTAMP = 0; */ PTF_USER_TIMESTAMP = 0, /** * @generated from enum value: PTF_FRAME_ID = 1; */ PTF_FRAME_ID = 1, } /** * @generated from message livekit.Pagination */ export declare class Pagination extends Message { /** * list entities which IDs are greater * * @generated from field: string after_id = 1; */ afterId: string; /** * @generated from field: int32 limit = 2; */ limit: number; constructor(data?: PartialMessage); static readonly runtime: typeof proto3; static readonly typeName = "livekit.Pagination"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): Pagination; static fromJson(jsonValue: JsonValue, options?: Partial): Pagination; static fromJsonString(jsonString: string, options?: Partial): Pagination; static equals(a: Pagination | PlainMessage | undefined, b: Pagination | PlainMessage | undefined): boolean; } /** * @generated from message livekit.TokenPagination */ export declare class TokenPagination extends Message { /** * @generated from field: string token = 1; */ token: string; constructor(data?: PartialMessage); static readonly runtime: typeof proto3; static readonly typeName = "livekit.TokenPagination"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): TokenPagination; static fromJson(jsonValue: JsonValue, options?: Partial): TokenPagination; static fromJsonString(jsonString: string, options?: Partial): TokenPagination; static equals(a: TokenPagination | PlainMessage | undefined, b: TokenPagination | PlainMessage | undefined): boolean; } /** * ListUpdate is used for updated APIs where 'repeated string' field is modified. * * @generated from message livekit.ListUpdate */ export declare class ListUpdate extends Message { /** * set the field to a new list * * @generated from field: repeated string set = 1; */ set: string[]; /** * append items to a list, avoiding duplicates * * @generated from field: repeated string add = 2; */ add: string[]; /** * delete items from a list * * @generated from field: repeated string remove = 3; */ remove: string[]; /** * sets the list to an empty list * * @generated from field: bool clear = 4; */ clear: boolean; constructor(data?: PartialMessage); static readonly runtime: typeof proto3; static readonly typeName = "livekit.ListUpdate"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): ListUpdate; static fromJson(jsonValue: JsonValue, options?: Partial): ListUpdate; static fromJsonString(jsonString: string, options?: Partial): ListUpdate; static equals(a: ListUpdate | PlainMessage | undefined, b: ListUpdate | PlainMessage | undefined): boolean; } /** * @generated from message livekit.Room */ export declare class Room extends Message { /** * @generated from field: string sid = 1; */ sid: string; /** * @generated from field: string name = 2; */ name: string; /** * @generated from field: uint32 empty_timeout = 3; */ emptyTimeout: number; /** * @generated from field: uint32 departure_timeout = 14; */ departureTimeout: number; /** * @generated from field: uint32 max_participants = 4; */ maxParticipants: number; /** * @generated from field: int64 creation_time = 5; */ creationTime: bigint; /** * @generated from field: int64 creation_time_ms = 15; */ creationTimeMs: bigint; /** * @generated from field: string turn_password = 6; */ turnPassword: string; /** * @generated from field: repeated livekit.Codec enabled_codecs = 7; */ enabledCodecs: Codec[]; /** * @generated from field: string metadata = 8; */ metadata: string; /** * @generated from field: uint32 num_participants = 9; */ numParticipants: number; /** * @generated from field: uint32 num_publishers = 11; */ numPublishers: number; /** * @generated from field: bool active_recording = 10; */ activeRecording: boolean; /** * @generated from field: livekit.TimedVersion version = 13; */ version?: TimedVersion; constructor(data?: PartialMessage); static readonly runtime: typeof proto3; static readonly typeName = "livekit.Room"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): Room; static fromJson(jsonValue: JsonValue, options?: Partial): Room; static fromJsonString(jsonString: string, options?: Partial): Room; static equals(a: Room | PlainMessage | undefined, b: Room | PlainMessage | undefined): boolean; } /** * @generated from message livekit.Codec */ export declare class Codec extends Message { /** * @generated from field: string mime = 1; */ mime: string; /** * @generated from field: string fmtp_line = 2; */ fmtpLine: string; constructor(data?: PartialMessage); static readonly runtime: typeof proto3; static readonly typeName = "livekit.Codec"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): Codec; static fromJson(jsonValue: JsonValue, options?: Partial): Codec; static fromJsonString(jsonString: string, options?: Partial): Codec; static equals(a: Codec | PlainMessage | undefined, b: Codec | PlainMessage | undefined): boolean; } /** * @generated from message livekit.PlayoutDelay */ export declare class PlayoutDelay extends Message { /** * @generated from field: bool enabled = 1; */ enabled: boolean; /** * @generated from field: uint32 min = 2; */ min: number; /** * @generated from field: uint32 max = 3; */ max: number; constructor(data?: PartialMessage); static readonly runtime: typeof proto3; static readonly typeName = "livekit.PlayoutDelay"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): PlayoutDelay; static fromJson(jsonValue: JsonValue, options?: Partial): PlayoutDelay; static fromJsonString(jsonString: string, options?: Partial): PlayoutDelay; static equals(a: PlayoutDelay | PlainMessage | undefined, b: PlayoutDelay | PlainMessage | undefined): boolean; } /** * @generated from message livekit.ParticipantPermission */ export declare class ParticipantPermission extends Message { /** * allow participant to subscribe to other tracks in the room * * @generated from field: bool can_subscribe = 1; */ canSubscribe: boolean; /** * allow participant to publish new tracks to room * * @generated from field: bool can_publish = 2; */ canPublish: boolean; /** * allow participant to publish data * * @generated from field: bool can_publish_data = 3; */ canPublishData: boolean; /** * sources that are allowed to be published * * @generated from field: repeated livekit.TrackSource can_publish_sources = 9; */ canPublishSources: TrackSource[]; /** * indicates that it's hidden to others * * @generated from field: bool hidden = 7; */ hidden: boolean; /** * indicates it's a recorder instance * deprecated: use ParticipantInfo.kind instead * * @generated from field: bool recorder = 8 [deprecated = true]; * @deprecated */ recorder: boolean; /** * indicates that participant can update own metadata and attributes * * @generated from field: bool can_update_metadata = 10; */ canUpdateMetadata: boolean; /** * indicates that participant is an agent * deprecated: use ParticipantInfo.kind instead * * @generated from field: bool agent = 11 [deprecated = true]; * @deprecated */ agent: boolean; /** * if a participant can subscribe to metrics * * @generated from field: bool can_subscribe_metrics = 12; */ canSubscribeMetrics: boolean; /** * if a participant can manage an agent session via RemoteSession (control and access state) * * @generated from field: bool can_manage_agent_session = 13; */ canManageAgentSession: boolean; constructor(data?: PartialMessage); static readonly runtime: typeof proto3; static readonly typeName = "livekit.ParticipantPermission"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): ParticipantPermission; static fromJson(jsonValue: JsonValue, options?: Partial): ParticipantPermission; static fromJsonString(jsonString: string, options?: Partial): ParticipantPermission; static equals(a: ParticipantPermission | PlainMessage | undefined, b: ParticipantPermission | PlainMessage | undefined): boolean; } /** * @generated from message livekit.ParticipantInfo */ export declare class ParticipantInfo extends Message { /** * @generated from field: string sid = 1; */ sid: string; /** * @generated from field: string identity = 2; */ identity: string; /** * @generated from field: livekit.ParticipantInfo.State state = 3; */ state: ParticipantInfo_State; /** * @generated from field: repeated livekit.TrackInfo tracks = 4; */ tracks: TrackInfo[]; /** * @generated from field: string metadata = 5; */ metadata: string; /** * timestamp when participant joined room, in seconds * * @generated from field: int64 joined_at = 6; */ joinedAt: bigint; /** * timestamp when participant joined room, in milliseconds * * @generated from field: int64 joined_at_ms = 17; */ joinedAtMs: bigint; /** * @generated from field: string name = 9; */ name: string; /** * @generated from field: uint32 version = 10; */ version: number; /** * @generated from field: livekit.ParticipantPermission permission = 11; */ permission?: ParticipantPermission; /** * @generated from field: string region = 12; */ region: string; /** * indicates the participant has an active publisher connection * and can publish to the server * * @generated from field: bool is_publisher = 13; */ isPublisher: boolean; /** * @generated from field: livekit.ParticipantInfo.Kind kind = 14; */ kind: ParticipantInfo_Kind; /** * @generated from field: map attributes = 15; */ attributes: { [key: string]: string }; /** * @generated from field: livekit.DisconnectReason disconnect_reason = 16; */ disconnectReason: DisconnectReason; /** * @generated from field: repeated livekit.ParticipantInfo.KindDetail kind_details = 18; */ kindDetails: ParticipantInfo_KindDetail[]; /** * @generated from field: repeated livekit.DataTrackInfo data_tracks = 19; */ dataTracks: DataTrackInfo[]; /** * protocol version used for client feature compatibility * * @generated from field: int32 client_protocol = 20; */ clientProtocol: number; constructor(data?: PartialMessage); static readonly runtime: typeof proto3; static readonly typeName = "livekit.ParticipantInfo"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): ParticipantInfo; static fromJson(jsonValue: JsonValue, options?: Partial): ParticipantInfo; static fromJsonString(jsonString: string, options?: Partial): ParticipantInfo; static equals(a: ParticipantInfo | PlainMessage | undefined, b: ParticipantInfo | PlainMessage | undefined): boolean; } /** * @generated from enum livekit.ParticipantInfo.State */ export declare enum ParticipantInfo_State { /** * websocket' connected, but not offered yet * * @generated from enum value: JOINING = 0; */ JOINING = 0, /** * server received client offer * * @generated from enum value: JOINED = 1; */ JOINED = 1, /** * ICE connectivity established * * @generated from enum value: ACTIVE = 2; */ ACTIVE = 2, /** * WS disconnected * * @generated from enum value: DISCONNECTED = 3; */ DISCONNECTED = 3, } /** * @generated from enum livekit.ParticipantInfo.Kind */ export declare enum ParticipantInfo_Kind { /** * standard participants, e.g. web clients * * @generated from enum value: STANDARD = 0; */ STANDARD = 0, /** * only ingests streams * * @generated from enum value: INGRESS = 1; */ INGRESS = 1, /** * only consumes streams * * @generated from enum value: EGRESS = 2; */ EGRESS = 2, /** * SIP participants * * @generated from enum value: SIP = 3; */ SIP = 3, /** * LiveKit agents * * @generated from enum value: AGENT = 4; */ AGENT = 4, /** * Connectors participants * * @generated from enum value: CONNECTOR = 7; */ CONNECTOR = 7, /** * Bridge participants * * NEXT_ID: 9 * * @generated from enum value: BRIDGE = 8; */ BRIDGE = 8, } /** * @generated from enum livekit.ParticipantInfo.KindDetail */ export declare enum ParticipantInfo_KindDetail { /** * @generated from enum value: CLOUD_AGENT = 0; */ CLOUD_AGENT = 0, /** * @generated from enum value: FORWARDED = 1; */ FORWARDED = 1, /** * @generated from enum value: CONNECTOR_WHATSAPP = 2; */ CONNECTOR_WHATSAPP = 2, /** * @generated from enum value: CONNECTOR_TWILIO = 3; */ CONNECTOR_TWILIO = 3, /** * NEXT_ID: 5 * * @generated from enum value: BRIDGE_RTSP = 4; */ BRIDGE_RTSP = 4, } /** * @generated from message livekit.Encryption */ export declare class Encryption extends Message { constructor(data?: PartialMessage); static readonly runtime: typeof proto3; static readonly typeName = "livekit.Encryption"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): Encryption; static fromJson(jsonValue: JsonValue, options?: Partial): Encryption; static fromJsonString(jsonString: string, options?: Partial): Encryption; static equals(a: Encryption | PlainMessage | undefined, b: Encryption | PlainMessage | undefined): boolean; } /** * @generated from enum livekit.Encryption.Type */ export declare enum Encryption_Type { /** * @generated from enum value: NONE = 0; */ NONE = 0, /** * @generated from enum value: GCM = 1; */ GCM = 1, /** * @generated from enum value: CUSTOM = 2; */ CUSTOM = 2, } /** * @generated from message livekit.SimulcastCodecInfo */ export declare class SimulcastCodecInfo extends Message { /** * @generated from field: string mime_type = 1; */ mimeType: string; /** * @generated from field: string mid = 2; */ mid: string; /** * @generated from field: string cid = 3; */ cid: string; /** * @generated from field: repeated livekit.VideoLayer layers = 4; */ layers: VideoLayer[]; /** * @generated from field: livekit.VideoLayer.Mode video_layer_mode = 5; */ videoLayerMode: VideoLayer_Mode; /** * cid (client side id for track) could be different between * signalling (AddTrackRequest) and SDP offer. This field * will be populated only if it is different to avoid * duplication and keep the representation concise. * * @generated from field: string sdp_cid = 6; */ sdpCid: string; constructor(data?: PartialMessage); static readonly runtime: typeof proto3; static readonly typeName = "livekit.SimulcastCodecInfo"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): SimulcastCodecInfo; static fromJson(jsonValue: JsonValue, options?: Partial): SimulcastCodecInfo; static fromJsonString(jsonString: string, options?: Partial): SimulcastCodecInfo; static equals(a: SimulcastCodecInfo | PlainMessage | undefined, b: SimulcastCodecInfo | PlainMessage | undefined): boolean; } /** * @generated from message livekit.TrackInfo */ export declare class TrackInfo extends Message { /** * @generated from field: string sid = 1; */ sid: string; /** * @generated from field: livekit.TrackType type = 2; */ type: TrackType; /** * @generated from field: string name = 3; */ name: string; /** * @generated from field: bool muted = 4; */ muted: boolean; /** * original width of video (unset for audio) * clients may receive a lower resolution version with simulcast * * @generated from field: uint32 width = 5; */ width: number; /** * original height of video (unset for audio) * * @generated from field: uint32 height = 6; */ height: number; /** * true if track is simulcasted * * see `video_layer_mode` in `codecs` * * @generated from field: bool simulcast = 7 [deprecated = true]; * @deprecated */ simulcast: boolean; /** * true if DTX (Discontinuous Transmission) is disabled for audio * * deprecated in favor of `audio_features` * * @generated from field: bool disable_dtx = 8 [deprecated = true]; * @deprecated */ disableDtx: boolean; /** * source of media * * @generated from field: livekit.TrackSource source = 9; */ source: TrackSource; /** * see `codecs` for layers of individual codec * * @generated from field: repeated livekit.VideoLayer layers = 10 [deprecated = true]; * @deprecated */ layers: VideoLayer[]; /** * mime type of codec * * @generated from field: string mime_type = 11; */ mimeType: string; /** * @generated from field: string mid = 12; */ mid: string; /** * @generated from field: repeated livekit.SimulcastCodecInfo codecs = 13; */ codecs: SimulcastCodecInfo[]; /** * deprecated in favor of `audio_features` * * @generated from field: bool stereo = 14 [deprecated = true]; * @deprecated */ stereo: boolean; /** * true if RED (Redundant Encoding) is disabled for audio * * @generated from field: bool disable_red = 15; */ disableRed: boolean; /** * @generated from field: livekit.Encryption.Type encryption = 16; */ encryption: Encryption_Type; /** * @generated from field: string stream = 17; */ stream: string; /** * @generated from field: livekit.TimedVersion version = 18; */ version?: TimedVersion; /** * @generated from field: repeated livekit.AudioTrackFeature audio_features = 19; */ audioFeatures: AudioTrackFeature[]; /** * @generated from field: livekit.BackupCodecPolicy backup_codec_policy = 20; */ backupCodecPolicy: BackupCodecPolicy; /** * @generated from field: repeated livekit.PacketTrailerFeature packet_trailer_features = 21; */ packetTrailerFeatures: PacketTrailerFeature[]; constructor(data?: PartialMessage); static readonly runtime: typeof proto3; static readonly typeName = "livekit.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.DataTrackInfo */ export declare class DataTrackInfo extends Message { /** * Client-assigned, 16-bit identifier that will be attached to packets sent by the publisher. * * @generated from field: uint32 pub_handle = 1; */ pubHandle: number; /** * Server-assigned track identifier. * * @generated from field: string sid = 2; */ sid: string; /** * Human-readable identifier (e.g., `geoLocation`, `servoPosition.x`, etc.), unique per publisher. * * @generated from field: string name = 3; */ name: string; /** * Method used for end-to-end encryption (E2EE) on packet payloads. * * @generated from field: livekit.Encryption.Type encryption = 4; */ encryption: Encryption_Type; constructor(data?: PartialMessage); static readonly runtime: typeof proto3; static readonly typeName = "livekit.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; } /** * @generated from message livekit.DataTrackExtensionParticipantSid */ export declare class DataTrackExtensionParticipantSid extends Message { /** * @generated from field: livekit.DataTrackExtensionID id = 1; */ id: DataTrackExtensionID; /** * @generated from field: string participant_sid = 2; */ participantSid: string; constructor(data?: PartialMessage); static readonly runtime: typeof proto3; static readonly typeName = "livekit.DataTrackExtensionParticipantSid"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): DataTrackExtensionParticipantSid; static fromJson(jsonValue: JsonValue, options?: Partial): DataTrackExtensionParticipantSid; static fromJsonString(jsonString: string, options?: Partial): DataTrackExtensionParticipantSid; static equals(a: DataTrackExtensionParticipantSid | PlainMessage | undefined, b: DataTrackExtensionParticipantSid | PlainMessage | undefined): boolean; } /** * @generated from message livekit.DataTrackSubscriptionOptions */ export declare class DataTrackSubscriptionOptions extends Message { /** * Rate in frames per second (FPS) the subscriber wants to receive frames at. * If omitted, the subscriber defaults to the publisher's fps * * @generated from field: optional uint32 target_fps = 1; */ targetFps?: number; constructor(data?: PartialMessage); static readonly runtime: typeof proto3; static readonly typeName = "livekit.DataTrackSubscriptionOptions"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): DataTrackSubscriptionOptions; static fromJson(jsonValue: JsonValue, options?: Partial): DataTrackSubscriptionOptions; static fromJsonString(jsonString: string, options?: Partial): DataTrackSubscriptionOptions; static equals(a: DataTrackSubscriptionOptions | PlainMessage | undefined, b: DataTrackSubscriptionOptions | PlainMessage | undefined): boolean; } /** * provide information about available spatial layers * * @generated from message livekit.VideoLayer */ export declare class VideoLayer extends Message { /** * for tracks with a single layer, this should be HIGH * * @generated from field: livekit.VideoQuality quality = 1; */ quality: VideoQuality; /** * @generated from field: uint32 width = 2; */ width: number; /** * @generated from field: uint32 height = 3; */ height: number; /** * target bitrate in bit per second (bps), server will measure actual * * @generated from field: uint32 bitrate = 4; */ bitrate: number; /** * @generated from field: uint32 ssrc = 5; */ ssrc: number; /** * @generated from field: int32 spatial_layer = 6; */ spatialLayer: number; /** * @generated from field: string rid = 7; */ rid: string; /** * @generated from field: uint32 repair_ssrc = 8; */ repairSsrc: number; constructor(data?: PartialMessage); static readonly runtime: typeof proto3; static readonly typeName = "livekit.VideoLayer"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): VideoLayer; static fromJson(jsonValue: JsonValue, options?: Partial): VideoLayer; static fromJsonString(jsonString: string, options?: Partial): VideoLayer; static equals(a: VideoLayer | PlainMessage | undefined, b: VideoLayer | PlainMessage | undefined): boolean; } /** * @generated from enum livekit.VideoLayer.Mode */ export declare enum VideoLayer_Mode { /** * @generated from enum value: MODE_UNUSED = 0; */ MODE_UNUSED = 0, /** * @generated from enum value: ONE_SPATIAL_LAYER_PER_STREAM = 1; */ ONE_SPATIAL_LAYER_PER_STREAM = 1, /** * @generated from enum value: MULTIPLE_SPATIAL_LAYERS_PER_STREAM = 2; */ MULTIPLE_SPATIAL_LAYERS_PER_STREAM = 2, /** * @generated from enum value: ONE_SPATIAL_LAYER_PER_STREAM_INCOMPLETE_RTCP_SR = 3; */ ONE_SPATIAL_LAYER_PER_STREAM_INCOMPLETE_RTCP_SR = 3, } /** * new DataPacket API * * @generated from message livekit.DataPacket */ export declare class DataPacket extends Message { /** * @generated from field: livekit.DataPacket.Kind kind = 1 [deprecated = true]; * @deprecated */ kind: DataPacket_Kind; /** * participant identity of user that sent the message * * @generated from field: string participant_identity = 4; */ participantIdentity: string; /** * identities of participants who will receive the message (sent to all by default) * * @generated from field: repeated string destination_identities = 5; */ destinationIdentities: string[]; /** * @generated from oneof livekit.DataPacket.value */ value: { /** * @generated from field: livekit.UserPacket user = 2; */ value: UserPacket; case: "user"; } | { /** * @generated from field: livekit.ActiveSpeakerUpdate speaker = 3 [deprecated = true]; * @deprecated */ value: ActiveSpeakerUpdate; case: "speaker"; } | { /** * @generated from field: livekit.SipDTMF sip_dtmf = 6; */ value: SipDTMF; case: "sipDtmf"; } | { /** * @generated from field: livekit.Transcription transcription = 7; */ value: Transcription; case: "transcription"; } | { /** * @generated from field: livekit.MetricsBatch metrics = 8; */ value: MetricsBatch; case: "metrics"; } | { /** * @generated from field: livekit.ChatMessage chat_message = 9; */ value: ChatMessage; case: "chatMessage"; } | { /** * @generated from field: livekit.RpcRequest rpc_request = 10; */ value: RpcRequest; case: "rpcRequest"; } | { /** * @generated from field: livekit.RpcAck rpc_ack = 11; */ value: RpcAck; case: "rpcAck"; } | { /** * @generated from field: livekit.RpcResponse rpc_response = 12; */ value: RpcResponse; case: "rpcResponse"; } | { /** * @generated from field: livekit.DataStream.Header stream_header = 13; */ value: DataStream_Header; case: "streamHeader"; } | { /** * @generated from field: livekit.DataStream.Chunk stream_chunk = 14; */ value: DataStream_Chunk; case: "streamChunk"; } | { /** * @generated from field: livekit.DataStream.Trailer stream_trailer = 15; */ value: DataStream_Trailer; case: "streamTrailer"; } | { /** * @generated from field: livekit.EncryptedPacket encrypted_packet = 18; */ value: EncryptedPacket; case: "encryptedPacket"; } | { case: undefined; value?: undefined }; /** * sequence number of reliable packet * * @generated from field: uint32 sequence = 16; */ sequence: number; /** * sid of the user that sent the message * * @generated from field: string participant_sid = 17; */ participantSid: string; constructor(data?: PartialMessage); static readonly runtime: typeof proto3; static readonly typeName = "livekit.DataPacket"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): DataPacket; static fromJson(jsonValue: JsonValue, options?: Partial): DataPacket; static fromJsonString(jsonString: string, options?: Partial): DataPacket; static equals(a: DataPacket | PlainMessage | undefined, b: DataPacket | PlainMessage | undefined): boolean; } /** * @generated from enum livekit.DataPacket.Kind */ export declare enum DataPacket_Kind { /** * @generated from enum value: RELIABLE = 0; */ RELIABLE = 0, /** * @generated from enum value: LOSSY = 1; */ LOSSY = 1, } /** * @generated from message livekit.EncryptedPacket */ export declare class EncryptedPacket extends Message { /** * @generated from field: livekit.Encryption.Type encryption_type = 1; */ encryptionType: Encryption_Type; /** * @generated from field: bytes iv = 2; */ iv: Uint8Array; /** * @generated from field: uint32 key_index = 3; */ keyIndex: number; /** * This is an encrypted EncryptedPacketPayload message representation * * @generated from field: bytes encrypted_value = 4; */ encryptedValue: Uint8Array; constructor(data?: PartialMessage); static readonly runtime: typeof proto3; static readonly typeName = "livekit.EncryptedPacket"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): EncryptedPacket; static fromJson(jsonValue: JsonValue, options?: Partial): EncryptedPacket; static fromJsonString(jsonString: string, options?: Partial): EncryptedPacket; static equals(a: EncryptedPacket | PlainMessage | undefined, b: EncryptedPacket | PlainMessage | undefined): boolean; } /** * @generated from message livekit.EncryptedPacketPayload */ export declare class EncryptedPacketPayload extends Message { /** * @generated from oneof livekit.EncryptedPacketPayload.value */ value: { /** * @generated from field: livekit.UserPacket user = 1; */ value: UserPacket; case: "user"; } | { /** * @generated from field: livekit.ChatMessage chat_message = 3; */ value: ChatMessage; case: "chatMessage"; } | { /** * @generated from field: livekit.RpcRequest rpc_request = 4; */ value: RpcRequest; case: "rpcRequest"; } | { /** * @generated from field: livekit.RpcAck rpc_ack = 5; */ value: RpcAck; case: "rpcAck"; } | { /** * @generated from field: livekit.RpcResponse rpc_response = 6; */ value: RpcResponse; case: "rpcResponse"; } | { /** * @generated from field: livekit.DataStream.Header stream_header = 7; */ value: DataStream_Header; case: "streamHeader"; } | { /** * @generated from field: livekit.DataStream.Chunk stream_chunk = 8; */ value: DataStream_Chunk; case: "streamChunk"; } | { /** * @generated from field: livekit.DataStream.Trailer stream_trailer = 9; */ value: DataStream_Trailer; case: "streamTrailer"; } | { case: undefined; value?: undefined }; constructor(data?: PartialMessage); static readonly runtime: typeof proto3; static readonly typeName = "livekit.EncryptedPacketPayload"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): EncryptedPacketPayload; static fromJson(jsonValue: JsonValue, options?: Partial): EncryptedPacketPayload; static fromJsonString(jsonString: string, options?: Partial): EncryptedPacketPayload; static equals(a: EncryptedPacketPayload | PlainMessage | undefined, b: EncryptedPacketPayload | PlainMessage | undefined): boolean; } /** * @generated from message livekit.ActiveSpeakerUpdate * @deprecated */ export declare class ActiveSpeakerUpdate extends Message { /** * @generated from field: repeated livekit.SpeakerInfo speakers = 1; */ speakers: SpeakerInfo[]; constructor(data?: PartialMessage); static readonly runtime: typeof proto3; static readonly typeName = "livekit.ActiveSpeakerUpdate"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): ActiveSpeakerUpdate; static fromJson(jsonValue: JsonValue, options?: Partial): ActiveSpeakerUpdate; static fromJsonString(jsonString: string, options?: Partial): ActiveSpeakerUpdate; static equals(a: ActiveSpeakerUpdate | PlainMessage | undefined, b: ActiveSpeakerUpdate | PlainMessage | undefined): boolean; } /** * @generated from message livekit.SpeakerInfo */ export declare class SpeakerInfo extends Message { /** * @generated from field: string sid = 1; */ sid: string; /** * audio level, 0-1.0, 1 is loudest * * @generated from field: float level = 2; */ level: number; /** * true if speaker is currently active * * @generated from field: bool active = 3; */ active: boolean; constructor(data?: PartialMessage); static readonly runtime: typeof proto3; static readonly typeName = "livekit.SpeakerInfo"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): SpeakerInfo; static fromJson(jsonValue: JsonValue, options?: Partial): SpeakerInfo; static fromJsonString(jsonString: string, options?: Partial): SpeakerInfo; static equals(a: SpeakerInfo | PlainMessage | undefined, b: SpeakerInfo | PlainMessage | undefined): boolean; } /** * @generated from message livekit.UserPacket */ export declare class UserPacket extends Message { /** * participant ID of user that sent the message * * @generated from field: string participant_sid = 1 [deprecated = true]; * @deprecated */ participantSid: string; /** * @generated from field: string participant_identity = 5 [deprecated = true]; * @deprecated */ participantIdentity: string; /** * user defined payload * * @generated from field: bytes payload = 2; */ payload: Uint8Array; /** * the ID of the participants who will receive the message (sent to all by default) * * @generated from field: repeated string destination_sids = 3 [deprecated = true]; * @deprecated */ destinationSids: string[]; /** * identities of participants who will receive the message (sent to all by default) * * @generated from field: repeated string destination_identities = 6 [deprecated = true]; * @deprecated */ destinationIdentities: string[]; /** * topic under which the message was published * * @generated from field: optional string topic = 4; */ topic?: string; /** * Unique ID to identify the message * * @generated from field: optional string id = 8; */ id?: string; /** * start and end time allow relating the message to specific media time * * @generated from field: optional uint64 start_time = 9; */ startTime?: bigint; /** * @generated from field: optional uint64 end_time = 10; */ endTime?: bigint; /** * added by SDK to enable de-duping of messages, for INTERNAL USE ONLY * * @generated from field: bytes nonce = 11; */ nonce: Uint8Array; constructor(data?: PartialMessage); static readonly runtime: typeof proto3; static readonly typeName = "livekit.UserPacket"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): UserPacket; static fromJson(jsonValue: JsonValue, options?: Partial): UserPacket; static fromJsonString(jsonString: string, options?: Partial): UserPacket; static equals(a: UserPacket | PlainMessage | undefined, b: UserPacket | PlainMessage | undefined): boolean; } /** * @generated from message livekit.SipDTMF */ export declare class SipDTMF extends Message { /** * @generated from field: uint32 code = 3; */ code: number; /** * @generated from field: string digit = 4; */ digit: string; constructor(data?: PartialMessage); static readonly runtime: typeof proto3; static readonly typeName = "livekit.SipDTMF"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): SipDTMF; static fromJson(jsonValue: JsonValue, options?: Partial): SipDTMF; static fromJsonString(jsonString: string, options?: Partial): SipDTMF; static equals(a: SipDTMF | PlainMessage | undefined, b: SipDTMF | PlainMessage | undefined): boolean; } /** * @generated from message livekit.Transcription */ export declare class Transcription extends Message { /** * Participant that got its speech transcribed * * @generated from field: string transcribed_participant_identity = 2; */ transcribedParticipantIdentity: string; /** * @generated from field: string track_id = 3; */ trackId: string; /** * @generated from field: repeated livekit.TranscriptionSegment segments = 4; */ segments: TranscriptionSegment[]; constructor(data?: PartialMessage); static readonly runtime: typeof proto3; static readonly typeName = "livekit.Transcription"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): Transcription; static fromJson(jsonValue: JsonValue, options?: Partial): Transcription; static fromJsonString(jsonString: string, options?: Partial): Transcription; static equals(a: Transcription | PlainMessage | undefined, b: Transcription | PlainMessage | undefined): boolean; } /** * @generated from message livekit.TranscriptionSegment */ export declare class TranscriptionSegment extends Message { /** * @generated from field: string id = 1; */ id: string; /** * @generated from field: string text = 2; */ text: string; /** * @generated from field: uint64 start_time = 3; */ startTime: bigint; /** * @generated from field: uint64 end_time = 4; */ endTime: bigint; /** * @generated from field: bool final = 5; */ final: boolean; /** * @generated from field: string language = 6; */ language: string; constructor(data?: PartialMessage); static readonly runtime: typeof proto3; static readonly typeName = "livekit.TranscriptionSegment"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): TranscriptionSegment; static fromJson(jsonValue: JsonValue, options?: Partial): TranscriptionSegment; static fromJsonString(jsonString: string, options?: Partial): TranscriptionSegment; static equals(a: TranscriptionSegment | PlainMessage | undefined, b: TranscriptionSegment | PlainMessage | undefined): boolean; } /** * @generated from message livekit.ChatMessage */ export declare class ChatMessage extends Message { /** * uuid * * @generated from field: string id = 1; */ id: string; /** * @generated from field: int64 timestamp = 2; */ timestamp: bigint; /** * populated only if the intent is to edit/update an existing message * * @generated from field: optional int64 edit_timestamp = 3; */ editTimestamp?: bigint; /** * @generated from field: string message = 4; */ message: string; /** * true to remove message * * @generated from field: bool deleted = 5; */ deleted: boolean; /** * true if the chat message has been generated by an agent from a participant's audio transcription * * @generated from field: bool generated = 6; */ generated: boolean; constructor(data?: PartialMessage); static readonly runtime: typeof proto3; static readonly typeName = "livekit.ChatMessage"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): ChatMessage; static fromJson(jsonValue: JsonValue, options?: Partial): ChatMessage; static fromJsonString(jsonString: string, options?: Partial): ChatMessage; static equals(a: ChatMessage | PlainMessage | undefined, b: ChatMessage | PlainMessage | undefined): boolean; } /** * @generated from message livekit.RpcRequest */ export declare class RpcRequest extends Message { /** * @generated from field: string id = 1; */ id: string; /** * @generated from field: string method = 2; */ method: string; /** * @generated from field: string payload = 3; */ payload: string; /** * @generated from field: uint32 response_timeout_ms = 4; */ responseTimeoutMs: number; /** * @generated from field: uint32 version = 5; */ version: number; /** * Compressed payload data. When set, this field is used instead of `payload`. * * @generated from field: bytes compressed_payload = 6; */ compressedPayload: Uint8Array; constructor(data?: PartialMessage); static readonly runtime: typeof proto3; static readonly typeName = "livekit.RpcRequest"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): RpcRequest; static fromJson(jsonValue: JsonValue, options?: Partial): RpcRequest; static fromJsonString(jsonString: string, options?: Partial): RpcRequest; static equals(a: RpcRequest | PlainMessage | undefined, b: RpcRequest | PlainMessage | undefined): boolean; } /** * @generated from message livekit.RpcAck */ export declare class RpcAck extends Message { /** * @generated from field: string request_id = 1; */ requestId: string; constructor(data?: PartialMessage); static readonly runtime: typeof proto3; static readonly typeName = "livekit.RpcAck"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): RpcAck; static fromJson(jsonValue: JsonValue, options?: Partial): RpcAck; static fromJsonString(jsonString: string, options?: Partial): RpcAck; static equals(a: RpcAck | PlainMessage | undefined, b: RpcAck | PlainMessage | undefined): boolean; } /** * @generated from message livekit.RpcResponse */ export declare class RpcResponse extends Message { /** * @generated from field: string request_id = 1; */ requestId: string; /** * @generated from oneof livekit.RpcResponse.value */ value: { /** * @generated from field: string payload = 2; */ value: string; case: "payload"; } | { /** * @generated from field: livekit.RpcError error = 3; */ value: RpcError; case: "error"; } | { /** * Compressed payload data. When set, this field is used instead of `payload`. * * @generated from field: bytes compressed_payload = 4; */ value: Uint8Array; case: "compressedPayload"; } | { case: undefined; value?: undefined }; constructor(data?: PartialMessage); static readonly runtime: typeof proto3; static readonly typeName = "livekit.RpcResponse"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): RpcResponse; static fromJson(jsonValue: JsonValue, options?: Partial): RpcResponse; static fromJsonString(jsonString: string, options?: Partial): RpcResponse; static equals(a: RpcResponse | PlainMessage | undefined, b: RpcResponse | PlainMessage | undefined): boolean; } /** * @generated from message livekit.RpcError */ export declare class RpcError extends Message { /** * @generated from field: uint32 code = 1; */ code: number; /** * @generated from field: string message = 2; */ message: string; /** * @generated from field: string data = 3; */ data: string; constructor(data?: PartialMessage); static readonly runtime: typeof proto3; static readonly typeName = "livekit.RpcError"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): RpcError; static fromJson(jsonValue: JsonValue, options?: Partial): RpcError; static fromJsonString(jsonString: string, options?: Partial): RpcError; static equals(a: RpcError | PlainMessage | undefined, b: RpcError | PlainMessage | undefined): boolean; } /** * @generated from message livekit.ParticipantTracks */ export declare class ParticipantTracks extends Message { /** * participant ID of participant to whom the tracks belong * * @generated from field: string participant_sid = 1; */ participantSid: string; /** * @generated from field: repeated string track_sids = 2; */ trackSids: string[]; constructor(data?: PartialMessage); static readonly runtime: typeof proto3; static readonly typeName = "livekit.ParticipantTracks"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): ParticipantTracks; static fromJson(jsonValue: JsonValue, options?: Partial): ParticipantTracks; static fromJsonString(jsonString: string, options?: Partial): ParticipantTracks; static equals(a: ParticipantTracks | PlainMessage | undefined, b: ParticipantTracks | PlainMessage | undefined): boolean; } /** * details about the server * * @generated from message livekit.ServerInfo */ export declare class ServerInfo extends Message { /** * @generated from field: livekit.ServerInfo.Edition edition = 1; */ edition: ServerInfo_Edition; /** * @generated from field: string version = 2; */ version: string; /** * @generated from field: int32 protocol = 3; */ protocol: number; /** * @generated from field: string region = 4; */ region: string; /** * @generated from field: string node_id = 5; */ nodeId: string; /** * additional debugging information. sent only if server is in development mode * * @generated from field: string debug_info = 6; */ debugInfo: string; /** * @generated from field: int32 agent_protocol = 7; */ agentProtocol: number; constructor(data?: PartialMessage); static readonly runtime: typeof proto3; static readonly typeName = "livekit.ServerInfo"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): ServerInfo; static fromJson(jsonValue: JsonValue, options?: Partial): ServerInfo; static fromJsonString(jsonString: string, options?: Partial): ServerInfo; static equals(a: ServerInfo | PlainMessage | undefined, b: ServerInfo | PlainMessage | undefined): boolean; } /** * @generated from enum livekit.ServerInfo.Edition */ export declare enum ServerInfo_Edition { /** * @generated from enum value: Standard = 0; */ Standard = 0, /** * @generated from enum value: Cloud = 1; */ Cloud = 1, } /** * details about the client * * @generated from message livekit.ClientInfo */ export declare class ClientInfo extends Message { /** * @generated from field: livekit.ClientInfo.SDK sdk = 1; */ sdk: ClientInfo_SDK; /** * @generated from field: string version = 2; */ version: string; /** * @generated from field: int32 protocol = 3; */ protocol: number; /** * @generated from field: string os = 4; */ os: string; /** * @generated from field: string os_version = 5; */ osVersion: string; /** * @generated from field: string device_model = 6; */ deviceModel: string; /** * @generated from field: string browser = 7; */ browser: string; /** * @generated from field: string browser_version = 8; */ browserVersion: string; /** * @generated from field: string address = 9; */ address: string; /** * wifi, wired, cellular, vpn, empty if not known * * @generated from field: string network = 10; */ network: string; /** * comma separated list of additional LiveKit SDKs in use of this client, with versions * e.g. "components-js:1.2.3,track-processors-js:1.2.3" * * @generated from field: string other_sdks = 11; */ otherSdks: string; /** * client protocol version * * @generated from field: int32 client_protocol = 12; */ clientProtocol: number; constructor(data?: PartialMessage); static readonly runtime: typeof proto3; static readonly typeName = "livekit.ClientInfo"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): ClientInfo; static fromJson(jsonValue: JsonValue, options?: Partial): ClientInfo; static fromJsonString(jsonString: string, options?: Partial): ClientInfo; static equals(a: ClientInfo | PlainMessage | undefined, b: ClientInfo | PlainMessage | undefined): boolean; } /** * @generated from enum livekit.ClientInfo.SDK */ export declare enum ClientInfo_SDK { /** * @generated from enum value: UNKNOWN = 0; */ UNKNOWN = 0, /** * @generated from enum value: JS = 1; */ JS = 1, /** * @generated from enum value: SWIFT = 2; */ SWIFT = 2, /** * @generated from enum value: ANDROID = 3; */ ANDROID = 3, /** * @generated from enum value: FLUTTER = 4; */ FLUTTER = 4, /** * @generated from enum value: GO = 5; */ GO = 5, /** * @generated from enum value: UNITY = 6; */ UNITY = 6, /** * @generated from enum value: REACT_NATIVE = 7; */ REACT_NATIVE = 7, /** * @generated from enum value: RUST = 8; */ RUST = 8, /** * @generated from enum value: PYTHON = 9; */ PYTHON = 9, /** * @generated from enum value: CPP = 10; */ CPP = 10, /** * @generated from enum value: UNITY_WEB = 11; */ UNITY_WEB = 11, /** * @generated from enum value: NODE = 12; */ NODE = 12, /** * @generated from enum value: UNREAL = 13; */ UNREAL = 13, /** * @generated from enum value: ESP32 = 14; */ ESP32 = 14, } /** * server provided client configuration * * @generated from message livekit.ClientConfiguration */ export declare class ClientConfiguration extends Message { /** * @generated from field: livekit.VideoConfiguration video = 1; */ video?: VideoConfiguration; /** * @generated from field: livekit.VideoConfiguration screen = 2; */ screen?: VideoConfiguration; /** * @generated from field: livekit.ClientConfigSetting resume_connection = 3; */ resumeConnection: ClientConfigSetting; /** * @generated from field: livekit.DisabledCodecs disabled_codecs = 4; */ disabledCodecs?: DisabledCodecs; /** * @generated from field: livekit.ClientConfigSetting force_relay = 5; */ forceRelay: ClientConfigSetting; constructor(data?: PartialMessage); static readonly runtime: typeof proto3; static readonly typeName = "livekit.ClientConfiguration"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): ClientConfiguration; static fromJson(jsonValue: JsonValue, options?: Partial): ClientConfiguration; static fromJsonString(jsonString: string, options?: Partial): ClientConfiguration; static equals(a: ClientConfiguration | PlainMessage | undefined, b: ClientConfiguration | PlainMessage | undefined): boolean; } /** * @generated from message livekit.VideoConfiguration */ export declare class VideoConfiguration extends Message { /** * @generated from field: livekit.ClientConfigSetting hardware_encoder = 1; */ hardwareEncoder: ClientConfigSetting; constructor(data?: PartialMessage); static readonly runtime: typeof proto3; static readonly typeName = "livekit.VideoConfiguration"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): VideoConfiguration; static fromJson(jsonValue: JsonValue, options?: Partial): VideoConfiguration; static fromJsonString(jsonString: string, options?: Partial): VideoConfiguration; static equals(a: VideoConfiguration | PlainMessage | undefined, b: VideoConfiguration | PlainMessage | undefined): boolean; } /** * @generated from message livekit.DisabledCodecs */ export declare class DisabledCodecs extends Message { /** * disabled for both publish and subscribe * * @generated from field: repeated livekit.Codec codecs = 1; */ codecs: Codec[]; /** * only disable for publish * * @generated from field: repeated livekit.Codec publish = 2; */ publish: Codec[]; constructor(data?: PartialMessage); static readonly runtime: typeof proto3; static readonly typeName = "livekit.DisabledCodecs"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): DisabledCodecs; static fromJson(jsonValue: JsonValue, options?: Partial): DisabledCodecs; static fromJsonString(jsonString: string, options?: Partial): DisabledCodecs; static equals(a: DisabledCodecs | PlainMessage | undefined, b: DisabledCodecs | PlainMessage | undefined): boolean; } /** * @generated from message livekit.RTPDrift */ export declare class RTPDrift extends Message { /** * @generated from field: google.protobuf.Timestamp start_time = 1; */ startTime?: Timestamp; /** * @generated from field: google.protobuf.Timestamp end_time = 2; */ endTime?: Timestamp; /** * @generated from field: double duration = 3; */ duration: number; /** * @generated from field: uint64 start_timestamp = 4; */ startTimestamp: bigint; /** * @generated from field: uint64 end_timestamp = 5; */ endTimestamp: bigint; /** * @generated from field: uint64 rtp_clock_ticks = 6; */ rtpClockTicks: bigint; /** * @generated from field: int64 drift_samples = 7; */ driftSamples: bigint; /** * @generated from field: double drift_ms = 8; */ driftMs: number; /** * @generated from field: double clock_rate = 9; */ clockRate: number; constructor(data?: PartialMessage); static readonly runtime: typeof proto3; static readonly typeName = "livekit.RTPDrift"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): RTPDrift; static fromJson(jsonValue: JsonValue, options?: Partial): RTPDrift; static fromJsonString(jsonString: string, options?: Partial): RTPDrift; static equals(a: RTPDrift | PlainMessage | undefined, b: RTPDrift | PlainMessage | undefined): boolean; } /** * @generated from message livekit.RTPStats */ export declare class RTPStats extends Message { /** * @generated from field: google.protobuf.Timestamp start_time = 1; */ startTime?: Timestamp; /** * @generated from field: google.protobuf.Timestamp end_time = 2; */ endTime?: Timestamp; /** * @generated from field: double duration = 3; */ duration: number; /** * @generated from field: uint32 packets = 4; */ packets: number; /** * @generated from field: double packet_rate = 5; */ packetRate: number; /** * @generated from field: uint64 bytes = 6; */ bytes: bigint; /** * @generated from field: uint64 header_bytes = 39; */ headerBytes: bigint; /** * @generated from field: double bitrate = 7; */ bitrate: number; /** * @generated from field: uint32 packets_lost = 8; */ packetsLost: number; /** * @generated from field: double packet_loss_rate = 9; */ packetLossRate: number; /** * @generated from field: float packet_loss_percentage = 10; */ packetLossPercentage: number; /** * @generated from field: uint32 packets_duplicate = 11; */ packetsDuplicate: number; /** * @generated from field: double packet_duplicate_rate = 12; */ packetDuplicateRate: number; /** * @generated from field: uint64 bytes_duplicate = 13; */ bytesDuplicate: bigint; /** * @generated from field: uint64 header_bytes_duplicate = 40; */ headerBytesDuplicate: bigint; /** * @generated from field: double bitrate_duplicate = 14; */ bitrateDuplicate: number; /** * @generated from field: uint32 packets_padding = 15; */ packetsPadding: number; /** * @generated from field: double packet_padding_rate = 16; */ packetPaddingRate: number; /** * @generated from field: uint64 bytes_padding = 17; */ bytesPadding: bigint; /** * @generated from field: uint64 header_bytes_padding = 41; */ headerBytesPadding: bigint; /** * @generated from field: double bitrate_padding = 18; */ bitratePadding: number; /** * @generated from field: uint32 packets_out_of_order = 19; */ packetsOutOfOrder: number; /** * @generated from field: uint32 frames = 20; */ frames: number; /** * @generated from field: double frame_rate = 21; */ frameRate: number; /** * @generated from field: double jitter_current = 22; */ jitterCurrent: number; /** * @generated from field: double jitter_max = 23; */ jitterMax: number; /** * @generated from field: map gap_histogram = 24; */ gapHistogram: { [key: number]: number }; /** * @generated from field: uint32 nacks = 25; */ nacks: number; /** * @generated from field: uint32 nack_acks = 37; */ nackAcks: number; /** * @generated from field: uint32 nack_misses = 26; */ nackMisses: number; /** * @generated from field: uint32 nack_repeated = 38; */ nackRepeated: number; /** * @generated from field: uint32 plis = 27; */ plis: number; /** * @generated from field: google.protobuf.Timestamp last_pli = 28; */ lastPli?: Timestamp; /** * @generated from field: uint32 firs = 29; */ firs: number; /** * @generated from field: google.protobuf.Timestamp last_fir = 30; */ lastFir?: Timestamp; /** * @generated from field: uint32 rtt_current = 31; */ rttCurrent: number; /** * @generated from field: uint32 rtt_max = 32; */ rttMax: number; /** * @generated from field: uint32 key_frames = 33; */ keyFrames: number; /** * @generated from field: google.protobuf.Timestamp last_key_frame = 34; */ lastKeyFrame?: Timestamp; /** * @generated from field: uint32 layer_lock_plis = 35; */ layerLockPlis: number; /** * @generated from field: google.protobuf.Timestamp last_layer_lock_pli = 36; */ lastLayerLockPli?: Timestamp; /** * @generated from field: livekit.RTPDrift packet_drift = 44; */ packetDrift?: RTPDrift; /** * @generated from field: livekit.RTPDrift ntp_report_drift = 45; */ ntpReportDrift?: RTPDrift; /** * @generated from field: livekit.RTPDrift rebased_report_drift = 46; */ rebasedReportDrift?: RTPDrift; /** * NEXT_ID: 48 * * @generated from field: livekit.RTPDrift received_report_drift = 47; */ receivedReportDrift?: RTPDrift; constructor(data?: PartialMessage); static readonly runtime: typeof proto3; static readonly typeName = "livekit.RTPStats"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): RTPStats; static fromJson(jsonValue: JsonValue, options?: Partial): RTPStats; static fromJsonString(jsonString: string, options?: Partial): RTPStats; static equals(a: RTPStats | PlainMessage | undefined, b: RTPStats | PlainMessage | undefined): boolean; } /** * @generated from message livekit.RTCPSenderReportState */ export declare class RTCPSenderReportState extends Message { /** * @generated from field: uint32 rtp_timestamp = 1; */ rtpTimestamp: number; /** * @generated from field: uint64 rtp_timestamp_ext = 2; */ rtpTimestampExt: bigint; /** * @generated from field: uint64 ntp_timestamp = 3; */ ntpTimestamp: bigint; /** * time at which this happened * * @generated from field: int64 at = 4; */ at: bigint; /** * @generated from field: int64 at_adjusted = 5; */ atAdjusted: bigint; /** * @generated from field: uint32 packets = 6; */ packets: number; /** * @generated from field: uint64 octets = 7; */ octets: bigint; constructor(data?: PartialMessage); static readonly runtime: typeof proto3; static readonly typeName = "livekit.RTCPSenderReportState"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): RTCPSenderReportState; static fromJson(jsonValue: JsonValue, options?: Partial): RTCPSenderReportState; static fromJsonString(jsonString: string, options?: Partial): RTCPSenderReportState; static equals(a: RTCPSenderReportState | PlainMessage | undefined, b: RTCPSenderReportState | PlainMessage | undefined): boolean; } /** * @generated from message livekit.RTPForwarderState */ export declare class RTPForwarderState extends Message { /** * @generated from field: bool started = 1; */ started: boolean; /** * @generated from field: int32 reference_layer_spatial = 2; */ referenceLayerSpatial: number; /** * @generated from field: int64 pre_start_time = 3; */ preStartTime: bigint; /** * @generated from field: uint64 ext_first_timestamp = 4; */ extFirstTimestamp: bigint; /** * @generated from field: uint64 dummy_start_timestamp_offset = 5; */ dummyStartTimestampOffset: bigint; /** * @generated from field: livekit.RTPMungerState rtp_munger = 6; */ rtpMunger?: RTPMungerState; /** * @generated from oneof livekit.RTPForwarderState.codec_munger */ codecMunger: { /** * @generated from field: livekit.VP8MungerState vp8_munger = 7; */ value: VP8MungerState; case: "vp8Munger"; } | { case: undefined; value?: undefined }; /** * @generated from field: repeated livekit.RTCPSenderReportState sender_report_state = 8; */ senderReportState: RTCPSenderReportState[]; constructor(data?: PartialMessage); static readonly runtime: typeof proto3; static readonly typeName = "livekit.RTPForwarderState"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): RTPForwarderState; static fromJson(jsonValue: JsonValue, options?: Partial): RTPForwarderState; static fromJsonString(jsonString: string, options?: Partial): RTPForwarderState; static equals(a: RTPForwarderState | PlainMessage | undefined, b: RTPForwarderState | PlainMessage | undefined): boolean; } /** * @generated from message livekit.RTPMungerState */ export declare class RTPMungerState extends Message { /** * @generated from field: uint64 ext_last_sequence_number = 1; */ extLastSequenceNumber: bigint; /** * @generated from field: uint64 ext_second_last_sequence_number = 2; */ extSecondLastSequenceNumber: bigint; /** * @generated from field: uint64 ext_last_timestamp = 3; */ extLastTimestamp: bigint; /** * @generated from field: uint64 ext_second_last_timestamp = 4; */ extSecondLastTimestamp: bigint; /** * @generated from field: bool last_marker = 5; */ lastMarker: boolean; /** * @generated from field: bool second_last_marker = 6; */ secondLastMarker: boolean; constructor(data?: PartialMessage); static readonly runtime: typeof proto3; static readonly typeName = "livekit.RTPMungerState"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): RTPMungerState; static fromJson(jsonValue: JsonValue, options?: Partial): RTPMungerState; static fromJsonString(jsonString: string, options?: Partial): RTPMungerState; static equals(a: RTPMungerState | PlainMessage | undefined, b: RTPMungerState | PlainMessage | undefined): boolean; } /** * @generated from message livekit.VP8MungerState */ export declare class VP8MungerState extends Message { /** * @generated from field: int32 ext_last_picture_id = 1; */ extLastPictureId: number; /** * @generated from field: bool picture_id_used = 2; */ pictureIdUsed: boolean; /** * @generated from field: uint32 last_tl0_pic_idx = 3; */ lastTl0PicIdx: number; /** * @generated from field: bool tl0_pic_idx_used = 4; */ tl0PicIdxUsed: boolean; /** * @generated from field: bool tid_used = 5; */ tidUsed: boolean; /** * @generated from field: uint32 last_key_idx = 6; */ lastKeyIdx: number; /** * @generated from field: bool key_idx_used = 7; */ keyIdxUsed: boolean; constructor(data?: PartialMessage); static readonly runtime: typeof proto3; static readonly typeName = "livekit.VP8MungerState"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): VP8MungerState; static fromJson(jsonValue: JsonValue, options?: Partial): VP8MungerState; static fromJsonString(jsonString: string, options?: Partial): VP8MungerState; static equals(a: VP8MungerState | PlainMessage | undefined, b: VP8MungerState | PlainMessage | undefined): boolean; } /** * @generated from message livekit.TimedVersion */ export declare class TimedVersion extends Message { /** * @generated from field: int64 unix_micro = 1; */ unixMicro: bigint; /** * @generated from field: int32 ticks = 2; */ ticks: number; constructor(data?: PartialMessage); static readonly runtime: typeof proto3; static readonly typeName = "livekit.TimedVersion"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): TimedVersion; static fromJson(jsonValue: JsonValue, options?: Partial): TimedVersion; static fromJsonString(jsonString: string, options?: Partial): TimedVersion; static equals(a: TimedVersion | PlainMessage | undefined, b: TimedVersion | PlainMessage | undefined): boolean; } /** * @generated from message livekit.DataStream */ export declare class DataStream extends Message { constructor(data?: PartialMessage); static readonly runtime: typeof proto3; static readonly typeName = "livekit.DataStream"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): DataStream; static fromJson(jsonValue: JsonValue, options?: Partial): DataStream; static fromJsonString(jsonString: string, options?: Partial): DataStream; static equals(a: DataStream | PlainMessage | undefined, b: DataStream | PlainMessage | undefined): boolean; } /** * enum for operation types (specific to TextHeader) * * @generated from enum livekit.DataStream.OperationType */ export declare enum DataStream_OperationType { /** * @generated from enum value: CREATE = 0; */ CREATE = 0, /** * @generated from enum value: UPDATE = 1; */ UPDATE = 1, /** * @generated from enum value: DELETE = 2; */ DELETE = 2, /** * @generated from enum value: REACTION = 3; */ REACTION = 3, } /** * header properties specific to text streams * * @generated from message livekit.DataStream.TextHeader */ export declare class DataStream_TextHeader extends Message { /** * @generated from field: livekit.DataStream.OperationType operation_type = 1; */ operationType: DataStream_OperationType; /** * Optional: Version for updates/edits * * @generated from field: int32 version = 2; */ version: number; /** * Optional: Reply to specific message * * @generated from field: string reply_to_stream_id = 3; */ replyToStreamId: string; /** * file attachments for text streams * * @generated from field: repeated string attached_stream_ids = 4; */ attachedStreamIds: string[]; /** * true if the text has been generated by an agent from a participant's audio transcription * * @generated from field: bool generated = 5; */ generated: boolean; constructor(data?: PartialMessage); static readonly runtime: typeof proto3; static readonly typeName = "livekit.DataStream.TextHeader"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): DataStream_TextHeader; static fromJson(jsonValue: JsonValue, options?: Partial): DataStream_TextHeader; static fromJsonString(jsonString: string, options?: Partial): DataStream_TextHeader; static equals(a: DataStream_TextHeader | PlainMessage | undefined, b: DataStream_TextHeader | PlainMessage | undefined): boolean; } /** * header properties specific to byte or file streams * * @generated from message livekit.DataStream.ByteHeader */ export declare class DataStream_ByteHeader extends Message { /** * @generated from field: string name = 1; */ name: string; constructor(data?: PartialMessage); static readonly runtime: typeof proto3; static readonly typeName = "livekit.DataStream.ByteHeader"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): DataStream_ByteHeader; static fromJson(jsonValue: JsonValue, options?: Partial): DataStream_ByteHeader; static fromJsonString(jsonString: string, options?: Partial): DataStream_ByteHeader; static equals(a: DataStream_ByteHeader | PlainMessage | undefined, b: DataStream_ByteHeader | PlainMessage | undefined): boolean; } /** * main DataStream.Header that contains a oneof for specific headers * * @generated from message livekit.DataStream.Header */ export declare class DataStream_Header extends Message { /** * unique identifier for this data stream * * @generated from field: string stream_id = 1; */ streamId: string; /** * using int64 for Unix timestamp * * @generated from field: int64 timestamp = 2; */ timestamp: bigint; /** * @generated from field: string topic = 3; */ topic: string; /** * @generated from field: string mime_type = 4; */ mimeType: string; /** * only populated for finite streams, if it's a stream of unknown size this stays empty * * @generated from field: optional uint64 total_length = 5; */ totalLength?: bigint; /** * this is set on the DataPacket * * @generated from field: livekit.Encryption.Type encryption_type = 7 [deprecated = true]; * @deprecated */ encryptionType: Encryption_Type; /** * user defined attributes map that can carry additional info * * @generated from field: map attributes = 8; */ attributes: { [key: string]: string }; /** * oneof to choose between specific header types * * @generated from oneof livekit.DataStream.Header.content_header */ contentHeader: { /** * @generated from field: livekit.DataStream.TextHeader text_header = 9; */ value: DataStream_TextHeader; case: "textHeader"; } | { /** * @generated from field: livekit.DataStream.ByteHeader byte_header = 10; */ value: DataStream_ByteHeader; case: "byteHeader"; } | { case: undefined; value?: undefined }; constructor(data?: PartialMessage); static readonly runtime: typeof proto3; static readonly typeName = "livekit.DataStream.Header"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): DataStream_Header; static fromJson(jsonValue: JsonValue, options?: Partial): DataStream_Header; static fromJsonString(jsonString: string, options?: Partial): DataStream_Header; static equals(a: DataStream_Header | PlainMessage | undefined, b: DataStream_Header | PlainMessage | undefined): boolean; } /** * @generated from message livekit.DataStream.Chunk */ export declare class DataStream_Chunk extends Message { /** * unique identifier for this data stream to map it to the correct header * * @generated from field: string stream_id = 1; */ streamId: string; /** * @generated from field: uint64 chunk_index = 2; */ chunkIndex: bigint; /** * content as binary (bytes) * * @generated from field: bytes content = 3; */ content: Uint8Array; /** * a version indicating that this chunk_index has been retroactively modified and the original one needs to be replaced * * @generated from field: int32 version = 4; */ version: number; /** * this is set on the DataPacket * * @generated from field: optional bytes iv = 5 [deprecated = true]; * @deprecated */ iv?: Uint8Array; constructor(data?: PartialMessage); static readonly runtime: typeof proto3; static readonly typeName = "livekit.DataStream.Chunk"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): DataStream_Chunk; static fromJson(jsonValue: JsonValue, options?: Partial): DataStream_Chunk; static fromJsonString(jsonString: string, options?: Partial): DataStream_Chunk; static equals(a: DataStream_Chunk | PlainMessage | undefined, b: DataStream_Chunk | PlainMessage | undefined): boolean; } /** * @generated from message livekit.DataStream.Trailer */ export declare class DataStream_Trailer extends Message { /** * unique identifier for this data stream * * @generated from field: string stream_id = 1; */ streamId: string; /** * reason why the stream was closed (could contain "error" / "interrupted" / empty for expected end) * * @generated from field: string reason = 2; */ reason: string; /** * finalizing updates for the stream, can also include additional insights for errors or endTime for transcription * * @generated from field: map attributes = 3; */ attributes: { [key: string]: string }; constructor(data?: PartialMessage); static readonly runtime: typeof proto3; static readonly typeName = "livekit.DataStream.Trailer"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): DataStream_Trailer; static fromJson(jsonValue: JsonValue, options?: Partial): DataStream_Trailer; static fromJsonString(jsonString: string, options?: Partial): DataStream_Trailer; static equals(a: DataStream_Trailer | PlainMessage | undefined, b: DataStream_Trailer | PlainMessage | undefined): boolean; } /** * @generated from message livekit.FilterParams */ export declare class FilterParams extends Message { /** * @generated from field: repeated string include_events = 1; */ includeEvents: string[]; /** * @generated from field: repeated string exclude_events = 2; */ excludeEvents: string[]; constructor(data?: PartialMessage); static readonly runtime: typeof proto3; static readonly typeName = "livekit.FilterParams"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): FilterParams; static fromJson(jsonValue: JsonValue, options?: Partial): FilterParams; static fromJsonString(jsonString: string, options?: Partial): FilterParams; static equals(a: FilterParams | PlainMessage | undefined, b: FilterParams | PlainMessage | undefined): boolean; } /** * @generated from message livekit.WebhookConfig */ export declare class WebhookConfig extends Message { /** * @generated from field: string url = 1; */ url: string; /** * @generated from field: string signing_key = 2; */ signingKey: string; /** * @generated from field: livekit.FilterParams filter_params = 3; */ filterParams?: FilterParams; constructor(data?: PartialMessage); static readonly runtime: typeof proto3; static readonly typeName = "livekit.WebhookConfig"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): WebhookConfig; static fromJson(jsonValue: JsonValue, options?: Partial): WebhookConfig; static fromJsonString(jsonString: string, options?: Partial): WebhookConfig; static equals(a: WebhookConfig | PlainMessage | undefined, b: WebhookConfig | PlainMessage | undefined): boolean; } /** * @generated from message livekit.SubscribedAudioCodec */ export declare class SubscribedAudioCodec extends Message { /** * @generated from field: string codec = 1; */ codec: string; /** * @generated from field: bool enabled = 2; */ enabled: boolean; constructor(data?: PartialMessage); static readonly runtime: typeof proto3; static readonly typeName = "livekit.SubscribedAudioCodec"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): SubscribedAudioCodec; static fromJson(jsonValue: JsonValue, options?: Partial): SubscribedAudioCodec; static fromJsonString(jsonString: string, options?: Partial): SubscribedAudioCodec; static equals(a: SubscribedAudioCodec | PlainMessage | undefined, b: SubscribedAudioCodec | PlainMessage | undefined): boolean; }